diff --git a/plugins/saladict-ztools/ext-saladic/_locales/np/messages.json b/plugins/saladict-ztools/ext-saladic/_locales/np/messages.json new file mode 100644 index 00000000..21ec7008 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/_locales/np/messages.json @@ -0,0 +1,68 @@ +{ + "extension_name": { + "description": "Extension name", + "message": "सलाडिक्ट - पप-अप शब्दकोश र पृष्ठ अनुवादक" + }, + "extension_short_name": { + "description": "Extension short name", + "message": "सलाडिक्ट" + }, + "extension_description": { + "description": "Description of extension", + "message": "सलाडिक्ट एक पेशेवर पप-अप शब्दकोश र पृष्ठ अनुवादक हो जसले बहु भाषा खोज , पृष्ठ अनुवाद, नयाँ शब्द नोटबुक र PDF खोजीलाई समर्थ छ।" + }, + "command_toggle_active": { + "message": "इनलाइन अनुवादक टगल गर्नुहोस्" + }, + "command_toggle_instant": { + "message": "तत्काल क्याप्चर टगल गर्नुहोस्" + }, + "command_open_quick_search": { + "message": "स्ट्यान्डअलोन डिक्ट प्यानल खोल्नुहोस् वा हाइलाइट गर्नुहोस्" + }, + "command_open_google": { + "message": "Google अनुवादक खोल्नुहोस्" + }, + "command_open_youdao": { + "message": "Youdao अनुवाद खोल्नुहोस्" + }, + "command_open_caiyun": { + "message": "LingoCloud अनुवाद खोल्नुहोस्" + }, + "command_open_pdf": { + "message": "हालको PDF सलाडिक्टमा खोल्नुहोस् " + }, + "command_search_clipboard": { + "message": "स्ट्यान्डअलोन प्यानलमा क्लिपबोर्ड सामग्री खोज्नुहोस्" + }, + "command_next_history": { + "message": "अर्को खोज इतिहास" + }, + "command_prev_history": { + "message": "अघिल्लो खोज इतिहास" + }, + "command_next_profile": { + "message": "अर्को प्रोफाइल" + }, + "command_prev_profile": { + "message": "अघिल्लो प्रोफाइल" + }, + "command_profile_1": { + "message": "पहिलो प्रोफाइल" + }, + "command_profile_2": { + "message": "दोस्रो प्रोफाइल" + }, + "command_profile_3": { + "message": "तेस्रो प्रोफाइल" + }, + "command_profile_4": { + "message": "चौथो प्रोफाइल" + }, + "command_profile_5": { + "message": "पाँचौं प्रोफाइल" + }, + "command_add_notebook": { + "message": "नोटबुकमा थप्नुहोस्" + } +} diff --git a/plugins/saladict-ztools/ext-saladic/assets/100.853b5fbf.js b/plugins/saladict-ztools/ext-saladic/assets/100.853b5fbf.js new file mode 100644 index 00000000..a34a63a4 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/100.853b5fbf.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[100],{429:function(o,a,e){"use strict";e.r(a),e.d(a,"locale",(function(){return n}));const n={baidu_page_translate:"बाइडु पृष्ठ अनुवाद",baidu_search:"बाइडु खोजी",bing_dict:"बिङ शब्दकोश",bing_search:"बिङ खोजी",caiyuntrs:"Lingocloud पृष्ठ अनुवाद",cambridge:"क्याम्ब्रिज",copy_pdf_url:"पीडीएफ यूआरएल क्लिपबोर्डमा प्रतिलिपि गर्नुहोस्",dictcn:"Dictcn",etymonline:"Etymonline",google_cn_page_translate:"Google cn पृष्ठ अनुवाद",google_page_translate:"Google पृष्ठ अनुवाद",google_search:"Google खोजी",google_translate:"Google अनुवाद",google_cn_translate:"Google.cn अनुवाद",guoyu:"國語辭典",history_title:"खोज इतिहास",iciba:"iciba",liangan:"兩岸詞典",longman_business:"Longman Business",manual_title:"मैनुअल",merriam_webster:"Merriam Webster",microsoft_page_translate:"Microsoft पृष्ठ अनुवाद",notebook_title:"नयाँ शब्द सूची",notification_youdao_err:"यूडाओ पृष्ठ अनुवाद 2.0ले प्रतिक्रिया दिएन ।\nसलाडिक्ट यस पृष्ठमा पहुँच प्राप्त गर्न सक्दैन।\nयदि यूडाओ प्यानल देखाइएको छ भने यो सन्देश अवहेलना गर्नुहोस्।",oxford:"अक्सफोर्ड",page_permission_err:'सलाडिक्ट "{{name}}" यस पृष्ठमा पहुँच प्राप्त गर्न अनुमति छैन।',page_translations:"पृष्ठ अनुवाद",saladict:"सलाडिक्ट",saladict_standalone:"सलाडिक्ट स्ट्यान्डअलोन प्यानल",sogou:"सोगो अनुवाद",sogou_page_translate:"सोगो पृष्ठ अनुवाद",termonline:"Termonline",view_as_pdf:"पीडीएफ भिउमा खोल्नुहोस्",youdao:"यौडाओ",youdao_page_translate:"यौडाओ पृष्ठ अनुवाद",youglish:"यौग्लिश"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/100.da630f72.js b/plugins/saladict-ztools/ext-saladic/assets/100.da630f72.js deleted file mode 100644 index 71da73e7..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/100.da630f72.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[100],{1327:function(e,a,t){"use strict";t.d(a,"a",(function(){return h}));var n=t(0),r=t.n(n),s=t(182),c=t(119),l=t(1),u=t(9);const i=new Set(["ar","ara","az","fa","he","iw","ku","ug","ur"]),o=r.a.memo(({source:e,lang:a})=>r.a.createElement("div",{className:"MachineTrans-Lines"},r.a.createElement(c.c,{src:e.tts}),e.paragraphs.map((e,t)=>r.a.createElement("p",{key:t,className:"MachineTrans-lang-"+a},e)))),m=r.a.memo(({source:e,lang:a})=>{const[t,s]=Object(n.useState)(!1),l=Object(n.useCallback)(()=>s(!1),[s]),u=Object(n.useRef)(null);return Object(n.useLayoutEffect)(()=>{if(t||!u.current)return;if(u.current.querySelectorAll("p").length>1)return void s(!0);const e=u.current.querySelector("p span");e&&e.getClientRects().length>1&&s(!0)},[]),r.a.createElement("div",{ref:u,className:"MachineTrans-Lines"},r.a.createElement(c.c,{src:e.tts}),t?r.a.createElement("div",{className:"MachineTrans-Lines-collapse MachineTrans-lang-"+a},r.a.createElement("button",{onClick:l},e.paragraphs.join(" "))):e.paragraphs.map((e,t)=>r.a.createElement("p",{key:t,className:"MachineTrans-lang-"+a},r.a.createElement("span",null,e))))}),h=e=>{const{trans:a,searchText:t,tl:c,sl:h}=e.result,[p,d]=Object(n.useState)(e.result.slInitial);return Object(s.a)(e.catalogSelect$,({key:a,value:t})=>{switch(a){case"showSl":d("full");break;case"sl":case"tl":e.searchText({id:e.result.id,payload:{sl:h,tl:c,[a]:t}});break;case"copySrc":l.a.send({type:"SET_CLIPBOARD",payload:e.result.searchText.paragraphs.join("\n")});break;case"copyTrans":l.a.send({type:"SET_CLIPBOARD",payload:e.result.trans.paragraphs.join("\n")})}}),e.result.requireCredential?function(){const{t:e}=Object(u.e)("content");return r.a.createElement(u.c,{message:e("machineTrans.login")},r.a.createElement("a",{href:browser.runtime.getURL("options.html?menuselected=DictAuths"),target:"_blank",rel:"nofollow noopener noreferrer"},e("machineTrans.dictAccount")))}():r.a.createElement("div",{className:i.has(h)||i.has(c)?"MachineTrans-has-rtl":void 0},r.a.createElement("div",{className:"MachineTrans-Text"},"full"===p?r.a.createElement(o,{source:t,lang:h}):"collapse"===p?r.a.createElement(m,{source:t,lang:h}):null,r.a.createElement(o,{source:a,lang:c})))}},640:function(e,a,t){"use strict";t.r(a);var n=t(1327);t.d(a,"default",(function(){return n.a}))}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/101.6925c139.js b/plugins/saladict-ztools/ext-saladic/assets/101.6925c139.js deleted file mode 100644 index 97249634..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/101.6925c139.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[101],{1327:function(e,a,t){"use strict";t.d(a,"a",(function(){return h}));var n=t(0),r=t.n(n),s=t(182),c=t(119),l=t(1),u=t(9);const i=new Set(["ar","ara","az","fa","he","iw","ku","ug","ur"]),o=r.a.memo(({source:e,lang:a})=>r.a.createElement("div",{className:"MachineTrans-Lines"},r.a.createElement(c.c,{src:e.tts}),e.paragraphs.map((e,t)=>r.a.createElement("p",{key:t,className:"MachineTrans-lang-"+a},e)))),m=r.a.memo(({source:e,lang:a})=>{const[t,s]=Object(n.useState)(!1),l=Object(n.useCallback)(()=>s(!1),[s]),u=Object(n.useRef)(null);return Object(n.useLayoutEffect)(()=>{if(t||!u.current)return;if(u.current.querySelectorAll("p").length>1)return void s(!0);const e=u.current.querySelector("p span");e&&e.getClientRects().length>1&&s(!0)},[]),r.a.createElement("div",{ref:u,className:"MachineTrans-Lines"},r.a.createElement(c.c,{src:e.tts}),t?r.a.createElement("div",{className:"MachineTrans-Lines-collapse MachineTrans-lang-"+a},r.a.createElement("button",{onClick:l},e.paragraphs.join(" "))):e.paragraphs.map((e,t)=>r.a.createElement("p",{key:t,className:"MachineTrans-lang-"+a},r.a.createElement("span",null,e))))}),h=e=>{const{trans:a,searchText:t,tl:c,sl:h}=e.result,[p,d]=Object(n.useState)(e.result.slInitial);return Object(s.a)(e.catalogSelect$,({key:a,value:t})=>{switch(a){case"showSl":d("full");break;case"sl":case"tl":e.searchText({id:e.result.id,payload:{sl:h,tl:c,[a]:t}});break;case"copySrc":l.a.send({type:"SET_CLIPBOARD",payload:e.result.searchText.paragraphs.join("\n")});break;case"copyTrans":l.a.send({type:"SET_CLIPBOARD",payload:e.result.trans.paragraphs.join("\n")})}}),e.result.requireCredential?function(){const{t:e}=Object(u.e)("content");return r.a.createElement(u.c,{message:e("machineTrans.login")},r.a.createElement("a",{href:browser.runtime.getURL("options.html?menuselected=DictAuths"),target:"_blank",rel:"nofollow noopener noreferrer"},e("machineTrans.dictAccount")))}():r.a.createElement("div",{className:i.has(h)||i.has(c)?"MachineTrans-has-rtl":void 0},r.a.createElement("div",{className:"MachineTrans-Text"},"full"===p?r.a.createElement(o,{source:t,lang:h}):"collapse"===p?r.a.createElement(m,{source:t,lang:h}):null,r.a.createElement(o,{source:a,lang:c})))}},646:function(e,a,t){"use strict";t.r(a);var n=t(1327);t.d(a,"default",(function(){return n.a}))}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/101.fed14e06.js b/plugins/saladict-ztools/ext-saladic/assets/101.fed14e06.js new file mode 100644 index 00000000..6197f2f3 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/101.fed14e06.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[101],{430:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));const o={title:"Saladict Options",previewPanel:"Preview Dict Panel",shortcuts:"Set Shortcuts",msg_update_error:"Unable to update",msg_updated:"Successfully updated",msg_first_time_notice:"First time notice",msg_err_permission:'Unable to request "{{permission}}" permission.',unsave_confirm:"Settings not saved. Sure to leave?",nativeSearch:"search selected text outside of browser",firefox_shortcuts:'Open about:addons, click the top right "gear" button, choose the last "Manage extension shortcuts".',tutorial:"Tutorial",page_selection:"Page Selection",nav:{General:"General",Notebook:"Notebook",Profiles:"Profiles",DictPanel:"Dict Panel",SearchModes:"Search Modes",Dictionaries:"Dictionaries",DictAuths:"Access Tokens",Popup:"Popup Panel",QuickSearch:"Quick Search",Pronunciation:"Pronunciation",PDF:"PDF",ContextMenus:"Context Menus",BlackWhiteList:"Black/White List",ImportExport:"Import/Export",Privacy:"Privacy",Permissions:"Permissions"},config:{active:"Enable Inline Translator",active_help:'"Quick Search" is still available even if Inline translation is turned off.',animation:"Animation transitions",animation_help:"Switch off animation transitions to reduce runtime cost.",runInBg:"Keep in Background",runInBg_help:"Keep the browser running in background after close so that global shortcuts still work.",darkMode:"Dark Mode",langCode:"App Language",editOnFav:"Open WordEditor when saving",editOnFav_help:"When turned off, new words will be added to notebook directly.",searchHistory:"Keep search history",searchHistory_help:"Your browsing history could be unintentionally revealed in Search history.",searchHistoryInco:"Also in incognito mode",ctxTrans:"Context Translate Engines",ctxTrans_help:"Context sentence will be translated before being added to notebook.",searchSuggests:"Search suggests",panelMaxHeightRatio:"Panel max height ratio",panelWidth:"Panel width",fontSize:"Font size for search reasults",bowlOffsetX:"Saladict icon Offset X",bowlOffsetY:"Saladict icon Offset Y",panelCSS:"Custom Dict Panel Styles",panelCSS_help:"Custom CSS. For Dict Panel use .dictPanel-Root as root. For dictionaries use .dictRoot or .d-{id} as root",noTypeField:"No selection on editable regions",noTypeField_help:"If selection making in editable regions is banned, the extension will identify Input Boxes, TextAreas and other common text editors like CodeMirror, ACE and Monaco.",touchMode:"Touch Mode",touchMode_help:"Enable touch related selection",language:"Selection Languages",language_help:"Search when selection contains words in the chosen languages.",language_extra:"Note that Japanese and Korean also include Chinese. French, Deutsch and Spanish also include English. If Chinese or English is cancelled while others are selected, only the exclusive parts of those languages are tested. E.g. kana characters in Japanese.",doubleClickDelay:"Double Click Delay",mode:"Normal Selection",panelMode:"Inside Dict Panel",pinMode:"When Panel is Pinned",qsPanelMode:"When Standalone Panel is Opened",bowlHover:"Icon Mouse Hover",bowlHover_help:"Hover on the bowl icon to trigger searching instead of clicking.",autopron:{cn:{dict:"Chinese Auto-Pronounce"},en:{dict:"English Auto-Pronounce",accent:"Accent Preference"},machine:{dict:"Machine Auto-Pronounce",src:"Machine Pronounce",src_help:"Machine Translation Dictionary needs to be added and enabled on the list below to enable auto-pronunciation.",src_search:"Read Source Text",src_trans:"Read Translation Text"}},pdfSniff:"Enable PDF Sniffer",pdfSniff_help:"If turned on, PDF links will be automatically captured (including local files, if file URL access is enabled on the extensions page).",pdfSniff_extra:"It is recommended to {search selected text outside of browser} with your own favorite local reader.",pdfStandalone:"Standalone Panel",pdfStandalone_help:"Open PDF viewer in standalone panel.",baWidth:"Width",baWidth_help:"Browser Action Panel wdith. Dict Panel width will be used if a negative value is chosen.",baHeight:"Height",baHeight_help:"Browser Action Panel height.",baOpen:"Browser Action",baOpen_help:"When clicking the browser action icon in toolbar (next to the address bar). Items are same as Context Menus, which can be added or edited on the Context Menus config page.",tripleCtrl:"Enable Ctrl Shortkey",tripleCtrl_help:"Press {⌘ Command}(macOS) or {Ctrl}(Others) three times (or with browser shortkey) to summon the dictionary panel. ",defaultPinned:"Pinned when shows up",qsLocation:"Location",qsFocus:"Focus when shows up",qsStandalone:"Standalone",qsStandalone_help:"Render dict panel in a standalone window. You can {search selected text outside of browser}.",qssaSidebar:"Sidebar Layout",qssaSidebar_help:"Rearrange windows to sidebar-like layout.",qssaHeight:"Window Height",qssaPageSel:"Selection Response",qssaPageSel_help:"Response to page selection.",qssaRectMemo:"Remember size and position",qssaRectMemo_help:"Remember standalone panel size and position on close.",updateCheck:"Check Update",updateCheck_help:"Check update automatically.",analytics:"Enable Google Analytics",analytics_help:"Share anonymous device browser version information. Saladict author will offer prioritized support to popular devices and browsers.",opt:{reset:"Reset Configs",reset_confirm:"Reset to default settings. Confirm?",upload_error:"Unable to save settings.",accent:{uk:"UK",us:"US"},sel_blackwhitelist:"Selection Black/White List",sel_blackwhitelist_help:"Saladict will not react to selection in blacklisted pages.",pdf_blackwhitelist_help:"Blacklisted PDF links will not jump to Saladict PDF Viewer.",contextMenus_description:"Each context menus item can also be customized. Youdao and Google page translate are deprecated in favor of the official extensions.",contextMenus_edit:"Edit Context Menus Items",contextMenus_url_rules:"URL with %s in place of query.",baOpen:{popup_panel:"Dict Panel",popup_fav:"Add to Notebook",popup_options:"Open Saladict Options",popup_standalone:"Open Saladict Standalone Panel"},openQsStandalone:"Standalone Panel Options",pdfStandalone:{default:"Never",always:"Always",manual:"Manual"}}},matchPattern:{description:"Specify URL as {URL Match Pattern} or {Regular Expression}. Empty fields will be removed.",url:"URL Match Pattern",url_error:"Incorrect URL Match Pattern.",regex:"Regular Expression",regex_error:"Incorrect Regular Expression."},searchMode:{icon:"Show Icon",icon_help:"A cute little icon pops up nearby the cursor.",direct:"Direct Search",direct_help:"Show dict panel directly.",double:"Double Click",double_help:"Show dict panel after double click selection.",holding:"Hold a key",holding_help:'After a selection is made, the selected key must be pressing when releasing mouse (Alt is "⌥ Option" on macOS. Meta key is "⌘ Command" on macOS and "⊞ Windows" for others.).',instant:"Instant Capture",instant_help:"Selection is automatically made near by the cursor.",instantDirect:"Direct",instantKey:"Key",instantKey_help:'If "Direct" is chosen it is also recommeded setting browser shortkey to toggle Instant Capture. Otherwise browser text selection could be unable to perform.',instantDelay:"Capture delay"},profiles:{opt:{add_name:"Add Profile Name",delete_confirm:'Delete Profile "{{name}}". Confirm?',edit_name:"Change Profile Name",help:"Each profile represents an independent set of settings. Some of the settings (with {*} prefix) change according to profile. One may switch profiles by hovering on the menu icon on Dict Panel, or focus on the icon then hit {↓}."}},profile:{mtaAutoUnfold:"Auto unfold multiline search box",waveform:"Waveform Control",waveform_help:"Display a button at the bottom of the Dict Panel for expanding the Waveform Control Panel which is only loaded after expansion.",stickyFold:"Sticky Folding",stickyFold_help:"Remembers manual dictionary folding/unfolding states when searching. Only last on the same page.",opt:{item_extra:'This option may change base on "Profile".',mtaAutoUnfold:{always:"Keep Unfolding",never:"Never Unfold",once:"Unfold Once",popup:"Only On Browser Action",hide:"Hide"},dict_selected:"Selected Dicts"}},dict:{add:"Add dicts",more_options:"More Options",selectionLang:"Selection Languages",selectionLang_help:"Show this dictionary when selection contains words in the chosen languages.",defaultUnfold:"Default Unfold",defaultUnfold_help:"If turned off, this dictionary won't start searching unless it's title bar is clicked.",selectionWC:"Selection Word Count",selectionWC_help:"Show this dictionary when selection word count meets the requirements. Set 999999 for unlimited words.",preferredHeight:"Default Panel Height",preferredHeight_help:"Maximum height on first appearance. Contents exceeding this height will be hidden. Set 999999 for unlimited height.",lang:{de:"De",en:"En",es:"Es",fr:"Fr",ja:"Ja",kor:"Kor",zhs:"Zhs",zht:"Zht"}},syncService:{description:"Sync settings.",start:"Syncing. Do not close this page until finished.",finished:"Syncing finished",success:"Syncing success",failed:"Syncing failed",close_confirm:"Settings not saved. Close?",delete_confirm:"Delete?",shanbay:{description:"Go to shanbay.com and log in first(must stay logged in). Note that it's a one-way sync(from Saladict to Shanbay). Only the new added words are synced. Words also need to be supported by Shanbay's database.",login:"Will open shanbay.com. Please log in then come back and enable again.",sync_all:"Upload all existing new words",sync_all_confirm:"Too many new words in notebook. Saladict will upload in batches. Note that uploading too many words in short period would cause account banning which is unrecoverable. Confirm?",sync_last:"Upload the last new word"},eudic:{description:"Before using Eudic to synchronize words, you must first create a default new word book on Eudic official website (my.eudic.net/home/index) (generally, it will be automatically generated and cannot be deleted after the first manual import). Pay attention not to synchronize frequently in a short time, which may cause temporary lock.",token:"Authorization information",getToken:"Get authorization",verify:"Check authorization information",verified:"Eudic authorization information checked successfully",enable_help:"After opening, each new word added will be automatically synchronized to the Eudic default word book (salad to Eudic word book) in one direction, and only the new word itself will be synchronized (deleted out of synchronization)",token_help:"Please confirm to set valid personal authorization information, otherwise the synchronization will fail. You can click the button at the bottom to check.",sync_all:"Synchronize all new words",sync_help:"Synchronize all existing new words in salad word book to the Eudic default word book (turn on the synchronization switch above at the same time and click save)",sync_all_confirm:"Note that frequent synchronization in a short time may lead to lock temporarily. Are you sure to continue?"},webdav:{description:"Extension settings (including this) are synced via browser. New words notebook can be synced via WebDAV through settings here.",jianguo:"See Jianguoyun for example",checking:"Connecting...",exist_confirm:"Saladict directory exists on server. Download it and merge with local data?",upload_confirm:"Upload local data to Server right away?",verify:"Verify server",verified:"Successfully verified WebDAV server.",duration:"Duration",duration_help:"Data is guaranteed to be updated before upload. If you do not need real-time syncing across browsers, set a longer polling cycle to reduce CPU and memory footprint.",passwd:"Password",url:"Server Address",user:"User Account"},ankiconnect:{description:"Please make sure Anki Connect plugin is installed and Anki is running. You can also update word to Anki in Word Editor.",checking:"Checking...",deck_confirm:'Deck "{{deck}}" does not exist in Anki. Generate a new deck?',deck_error:'Unable to create deck "{{deck}}".',notetype_confirm:'Note type "{{noteType}}" does not exist in Anki. Generate a new note type.',notetype_error:'Unable to create note type "{{noteType}}".',upload_confirm:"Sync local new words to Anki right away? Duplicated words (with same timestamp) will be skipped.",add_yourself:"Please add it youself in Anki.",verify:"Verify Anki Connect",verified:"Successfully verified Anki Connect",enable_help:'When enabled, each time a new word is added to Notebook it will also be ported to Anki automatically. Words that exist in Anki(with same "Date") can be force-updated in Word Editor.',host:"Address",port:"port",key:"Key",key_help:"Optional key can be added in Anki Connect config for identification.",deckName:"Deck",deckName_help:'If deck does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below.',noteType:"Note Type",noteType_help:'Anki note type includes a set of fields and card type. If note type does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below. DO NOT change field names when editing or adding card templates in Anki',tags:"Tags",tags_help:"Anki notes can include tags separated with commas.",escapeHTML:"Escape HTML",escapeHTML_help:"Escape HTML entities. Turn off if using HTML for manual layout.",syncServer:"Sync Server",syncServer_help:"Sync to server(e.g. AnkiWeb) after new words being added to local Anki."}},titlebarOffset:{title:"Calibrate Titlebar Height",help:"Different systems or browser settings may result in different titlebar height. Saladict will attempt to calibrate automatically. If you may adjust manually.",main:"Normal",main_help:"Normal windows may not have titlebar.",panel:"Panel",panel_help:"Saladict standalone quick search panel is a type of panel window.",calibrate:"Auto-calibrate",calibrateSuccess:"Calibration success",calibrateError:"Calibration failed"},headInfo:{acknowledgement:{title:"Acknowledgement",yipanhuasheng:"for adding Merriam Webster's Dict, American Heritage Dict, Oxford Learner's Dict and Eudic Notebook sync service; and updating Urban Dict and Naver Dict",naver:"for helping add Naver dict",shanbay:"for adding Shanbay dict",trans_tw:"for traditional Chinese translation",weblio:"for helping add Weblio dict"},contact_author:"Contact Author",donate:"Donate",instructions:"Instructions",report_issue:"Report Issue"},form:{url_error:"Incorrect URL.",number_error:"Incorrect number."},preload:{title:"Preload",auto:"Auto search",auto_help:"Search automatically when panel shows up.",clipboard:"Clipboard",help:"Preload content in search box when panel shows up.",selection:"Page Selection"},locations:{CENTER:"Center",TOP:"Top",RIGHT:"Right",BOTTOM:"Bottom",LEFT:"Left",TOP_LEFT:"Top Left",TOP_RIGHT:"Top Right",BOTTOM_LEFT:"Bottom Left",BOTTOM_RIGHT:"Bottom Right"},import_export_help:"Configs are auto-synced via browser. Here you can also import/export manually. Backups are exported as plain text files. Please encrypt it yourself if needed.",import:{title:"Import Configs",error:{title:"Import Error",parse:"Unable to parse backup. Incorrect format.",load:"Unable to load backup. Browser cannot obtain the local file.",empty:"No valid data found in the backup."}},export:{title:"Export Configs",error:{title:"Export Error",empty:"No config to export.",parse:"Unable to parse configs."}},dictAuth:{description:"As the number of Saladict users grows, if you make heavily use of machine translation services it is recommended to register an account for better stability and accuracy. The account data will only be stored in the browser.",dictHelp:"See the official website of {dict}.",manage:"Manage Translator Accounts"},third_party_privacy:"Third Party Privacy",third_party_privacy_help:'Saladict will not collect further information but search text and releated cookies will be sent to third party dictionary services(just like how you would search on their websites). If you do not want third party services to collect you data, remove the corresponding dictionaries at "Dictionaries" settings.',third_party_privacy_extra:"Cannot be turned off as it is the core functionality of Saladict.",permissions:{success:"Permission requested",cancel_success:"Permission cancelled",failed:"Permission request failed",cancelled:"Permission request cancelled by user",missing:'Missing permission "{{permission}}". Either grant it or disable related functions.',clipboardRead:"Read Clipboard",clipboardRead_help:"This permission is needed when clipboard preload is enable for popup panel or quick search panel.",clipboardWrite:"Write Clipboard",clipboardWrite_help:"This permission is needed when using titlebar menus to copy source/target text from machine translator."},unsupportedFeatures:{ff:'Feature "{{feature}}" is not supported in Firefox.'}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/102.26f6911b.js b/plugins/saladict-ztools/ext-saladic/assets/102.26f6911b.js new file mode 100644 index 00000000..fe6390c5 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/102.26f6911b.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[102],{431:function(t,e,n){"use strict";n.r(e),n.d(e,"locale",(function(){return o}));const o={title:"सलाडिक्ट ब्राउजर एक्सन प्यानल",app_active_title:"ईनलाइन अनुवादक सक्षम गर्नुहोस्",app_temp_active_title:"पृष्ठमा अस्थायी रूपमा असक्षम गरियो",instant_capture_pinned:" (ताराङकित)",instant_capture_title:"तत्काल क्याप्चर सक्षम गर्नुहोस्",notebook_added:"थपियो",notebook_empty:"हालको पृष्ठमा कुनै चयन फेला परेन",notebook_error:"नोटबुकमा चयन गरिएको पाठ थप्न सकिएन",page_no_response:"पृष्ठको कुनै प्रतिक्रिया छैन",qrcode_title:"पृष्ठको क्युआर कोड"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/102.d1c97143.js b/plugins/saladict-ztools/ext-saladic/assets/102.d1c97143.js deleted file mode 100644 index 165398a7..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/102.d1c97143.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[102],{1327:function(e,a,t){"use strict";t.d(a,"a",(function(){return h}));var n=t(0),r=t.n(n),s=t(182),c=t(119),l=t(1),u=t(9);const i=new Set(["ar","ara","az","fa","he","iw","ku","ug","ur"]),o=r.a.memo(({source:e,lang:a})=>r.a.createElement("div",{className:"MachineTrans-Lines"},r.a.createElement(c.c,{src:e.tts}),e.paragraphs.map((e,t)=>r.a.createElement("p",{key:t,className:"MachineTrans-lang-"+a},e)))),m=r.a.memo(({source:e,lang:a})=>{const[t,s]=Object(n.useState)(!1),l=Object(n.useCallback)(()=>s(!1),[s]),u=Object(n.useRef)(null);return Object(n.useLayoutEffect)(()=>{if(t||!u.current)return;if(u.current.querySelectorAll("p").length>1)return void s(!0);const e=u.current.querySelector("p span");e&&e.getClientRects().length>1&&s(!0)},[]),r.a.createElement("div",{ref:u,className:"MachineTrans-Lines"},r.a.createElement(c.c,{src:e.tts}),t?r.a.createElement("div",{className:"MachineTrans-Lines-collapse MachineTrans-lang-"+a},r.a.createElement("button",{onClick:l},e.paragraphs.join(" "))):e.paragraphs.map((e,t)=>r.a.createElement("p",{key:t,className:"MachineTrans-lang-"+a},r.a.createElement("span",null,e))))}),h=e=>{const{trans:a,searchText:t,tl:c,sl:h}=e.result,[p,d]=Object(n.useState)(e.result.slInitial);return Object(s.a)(e.catalogSelect$,({key:a,value:t})=>{switch(a){case"showSl":d("full");break;case"sl":case"tl":e.searchText({id:e.result.id,payload:{sl:h,tl:c,[a]:t}});break;case"copySrc":l.a.send({type:"SET_CLIPBOARD",payload:e.result.searchText.paragraphs.join("\n")});break;case"copyTrans":l.a.send({type:"SET_CLIPBOARD",payload:e.result.trans.paragraphs.join("\n")})}}),e.result.requireCredential?function(){const{t:e}=Object(u.e)("content");return r.a.createElement(u.c,{message:e("machineTrans.login")},r.a.createElement("a",{href:browser.runtime.getURL("options.html?menuselected=DictAuths"),target:"_blank",rel:"nofollow noopener noreferrer"},e("machineTrans.dictAccount")))}():r.a.createElement("div",{className:i.has(h)||i.has(c)?"MachineTrans-has-rtl":void 0},r.a.createElement("div",{className:"MachineTrans-Text"},"full"===p?r.a.createElement(o,{source:t,lang:h}):"collapse"===p?r.a.createElement(m,{source:t,lang:h}):null,r.a.createElement(o,{source:a,lang:c})))}},659:function(e,a,t){"use strict";t.r(a);var n=t(1327);t.d(a,"default",(function(){return n.a}))}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/103.3e12b71e.js b/plugins/saladict-ztools/ext-saladic/assets/103.3e12b71e.js deleted file mode 100644 index be5f2d59..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/103.3e12b71e.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[103],{1327:function(e,a,t){"use strict";t.d(a,"a",(function(){return h}));var n=t(0),r=t.n(n),s=t(182),c=t(119),l=t(1),u=t(9);const i=new Set(["ar","ara","az","fa","he","iw","ku","ug","ur"]),o=r.a.memo(({source:e,lang:a})=>r.a.createElement("div",{className:"MachineTrans-Lines"},r.a.createElement(c.c,{src:e.tts}),e.paragraphs.map((e,t)=>r.a.createElement("p",{key:t,className:"MachineTrans-lang-"+a},e)))),m=r.a.memo(({source:e,lang:a})=>{const[t,s]=Object(n.useState)(!1),l=Object(n.useCallback)(()=>s(!1),[s]),u=Object(n.useRef)(null);return Object(n.useLayoutEffect)(()=>{if(t||!u.current)return;if(u.current.querySelectorAll("p").length>1)return void s(!0);const e=u.current.querySelector("p span");e&&e.getClientRects().length>1&&s(!0)},[]),r.a.createElement("div",{ref:u,className:"MachineTrans-Lines"},r.a.createElement(c.c,{src:e.tts}),t?r.a.createElement("div",{className:"MachineTrans-Lines-collapse MachineTrans-lang-"+a},r.a.createElement("button",{onClick:l},e.paragraphs.join(" "))):e.paragraphs.map((e,t)=>r.a.createElement("p",{key:t,className:"MachineTrans-lang-"+a},r.a.createElement("span",null,e))))}),h=e=>{const{trans:a,searchText:t,tl:c,sl:h}=e.result,[p,d]=Object(n.useState)(e.result.slInitial);return Object(s.a)(e.catalogSelect$,({key:a,value:t})=>{switch(a){case"showSl":d("full");break;case"sl":case"tl":e.searchText({id:e.result.id,payload:{sl:h,tl:c,[a]:t}});break;case"copySrc":l.a.send({type:"SET_CLIPBOARD",payload:e.result.searchText.paragraphs.join("\n")});break;case"copyTrans":l.a.send({type:"SET_CLIPBOARD",payload:e.result.trans.paragraphs.join("\n")})}}),e.result.requireCredential?function(){const{t:e}=Object(u.e)("content");return r.a.createElement(u.c,{message:e("machineTrans.login")},r.a.createElement("a",{href:browser.runtime.getURL("options.html?menuselected=DictAuths"),target:"_blank",rel:"nofollow noopener noreferrer"},e("machineTrans.dictAccount")))}():r.a.createElement("div",{className:i.has(h)||i.has(c)?"MachineTrans-has-rtl":void 0},r.a.createElement("div",{className:"MachineTrans-Text"},"full"===p?r.a.createElement(o,{source:t,lang:h}):"collapse"===p?r.a.createElement(m,{source:t,lang:h}):null,r.a.createElement(o,{source:a,lang:c})))}},660:function(e,a,t){"use strict";t.r(a);var n=t(1327);t.d(a,"default",(function(){return n.a}))}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/103.fedf68ea.js b/plugins/saladict-ztools/ext-saladic/assets/103.fedf68ea.js new file mode 100644 index 00000000..3e5ab2ef --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/103.fedf68ea.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[103],{432:function(t,e,l){"use strict";l.r(e),l.d(e,"locale",(function(){return o}));const o={title:{history:"सलाडिक्ट खोज इतिहास",notebook:"सलाडिक्ट नोटबुक"},localonly:"स्थानीयमा मात्र",column:{add:"थप्नुहोस्",date:"मिति",edit:"सम्पादन",note:"टिप्पणी",source:"स्रोत",trans:"अनुवाद",word:"शब्द"},delete:{title:"मेटाउनुहोस्",all:"सबै मेटाउनुहोस्",confirm:". साच्चै ?",page:"पृष्ठ मेटाउनुहोस्",selected:"चयन गरिएको मेटाउनुहोस्"},export:{title:"निर्यात",all:"सबै निर्यात गर्नुहोस्",description:"हरेक रेकर्डको आकार बताउनुहोस्:",explain:"एन्की र अन्य उपकरणमा कसरी निर्यात गर्ने",gencontent:"निर्मित सामग्री",linebreak:{default:"पूर्वनिर्धारित लाइनब्रेक राख्नुहोस्",n:"लाइनब्रेकहरूलाई \\n संग स्थानान्तरण गर्नुहोस्",br:"लाइनब्रेकहरूलाई
संग स्थानान्तरण गर्नुहोस्",p:"लाइनब्रेकहरूलाई

संग स्थानान्तरण गर्नुहोस्",space:"लाइनब्रेकहरूलाई स्पेस संग स्थानान्तरण गर्नुहोस्"},page:"पृष्ठ निर्यात गर्नुहोस्",placeholder:"प्लेसहोल्डर",htmlescape:{title:"टिप्पणीहरूमा HTML वर्णहरू ऐस्केप गर्नुहोस्",text:"HTML ऐस्केप गर्नुहोस्"},selected:"चयन गरिएको निर्यात गर्नुहोस्"},filterWord:{chs:"चिनियाँ",eng:"अंग्रेजी",word:"शब्द",phrase:"वाक्यांश"},wordCount:{selected:"{{count}} बस्तु चयन गरिएको",selected_plural:"{{count}} बस्तुहरु चयन गरिएको",total:"{{count}} बस्तु जम्मा",total_plural:"{{count}} बस्तुहरु जम्मा"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/117.9cfcefe3.js b/plugins/saladict-ztools/ext-saladic/assets/104.5d5bfc82.js similarity index 83% rename from plugins/saladict-ztools/ext-saladic/assets/117.9cfcefe3.js rename to plugins/saladict-ztools/ext-saladic/assets/104.5d5bfc82.js index 7854431e..3cc74d04 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/117.9cfcefe3.js +++ b/plugins/saladict-ztools/ext-saladic/assets/104.5d5bfc82.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[117],{443:function(t,n,o){"use strict";o.r(n),o.d(n,"locale",(function(){return c}));const c={app:{off:"沙拉查词已关闭(快捷查词依然可用)",tempOff:"沙拉查词已对当前标签关闭(快捷查词依然可用)",unsupported:"内嵌查词面板不支持此类页面(独立窗口查词面板依然可用)"}}}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[104],{433:function(t,n,o){"use strict";o.r(n),o.d(n,"locale",(function(){return c}));const c={app:{off:"沙拉查词已关闭(快捷查词依然可用)",tempOff:"沙拉查词已对当前标签关闭(快捷查词依然可用)",unsupported:"内嵌查词面板不支持此类页面(独立窗口查词面板依然可用)"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/104.5e26e770.js b/plugins/saladict-ztools/ext-saladic/assets/104.5e26e770.js deleted file mode 100644 index bab34708..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/104.5e26e770.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[104],{1327:function(e,a,t){"use strict";t.d(a,"a",(function(){return h}));var n=t(0),r=t.n(n),s=t(182),c=t(119),l=t(1),u=t(9);const i=new Set(["ar","ara","az","fa","he","iw","ku","ug","ur"]),o=r.a.memo(({source:e,lang:a})=>r.a.createElement("div",{className:"MachineTrans-Lines"},r.a.createElement(c.c,{src:e.tts}),e.paragraphs.map((e,t)=>r.a.createElement("p",{key:t,className:"MachineTrans-lang-"+a},e)))),m=r.a.memo(({source:e,lang:a})=>{const[t,s]=Object(n.useState)(!1),l=Object(n.useCallback)(()=>s(!1),[s]),u=Object(n.useRef)(null);return Object(n.useLayoutEffect)(()=>{if(t||!u.current)return;if(u.current.querySelectorAll("p").length>1)return void s(!0);const e=u.current.querySelector("p span");e&&e.getClientRects().length>1&&s(!0)},[]),r.a.createElement("div",{ref:u,className:"MachineTrans-Lines"},r.a.createElement(c.c,{src:e.tts}),t?r.a.createElement("div",{className:"MachineTrans-Lines-collapse MachineTrans-lang-"+a},r.a.createElement("button",{onClick:l},e.paragraphs.join(" "))):e.paragraphs.map((e,t)=>r.a.createElement("p",{key:t,className:"MachineTrans-lang-"+a},r.a.createElement("span",null,e))))}),h=e=>{const{trans:a,searchText:t,tl:c,sl:h}=e.result,[p,d]=Object(n.useState)(e.result.slInitial);return Object(s.a)(e.catalogSelect$,({key:a,value:t})=>{switch(a){case"showSl":d("full");break;case"sl":case"tl":e.searchText({id:e.result.id,payload:{sl:h,tl:c,[a]:t}});break;case"copySrc":l.a.send({type:"SET_CLIPBOARD",payload:e.result.searchText.paragraphs.join("\n")});break;case"copyTrans":l.a.send({type:"SET_CLIPBOARD",payload:e.result.trans.paragraphs.join("\n")})}}),e.result.requireCredential?function(){const{t:e}=Object(u.e)("content");return r.a.createElement(u.c,{message:e("machineTrans.login")},r.a.createElement("a",{href:browser.runtime.getURL("options.html?menuselected=DictAuths"),target:"_blank",rel:"nofollow noopener noreferrer"},e("machineTrans.dictAccount")))}():r.a.createElement("div",{className:i.has(h)||i.has(c)?"MachineTrans-has-rtl":void 0},r.a.createElement("div",{className:"MachineTrans-Text"},"full"===p?r.a.createElement(o,{source:t,lang:h}):"collapse"===p?r.a.createElement(m,{source:t,lang:h}):null,r.a.createElement(o,{source:a,lang:c})))}},668:function(e,a,t){"use strict";t.r(a);var n=t(1327);t.d(a,"default",(function(){return n.a}))}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/118.fb73b062.js b/plugins/saladict-ztools/ext-saladic/assets/105.757b1b8a.js similarity index 64% rename from plugins/saladict-ztools/ext-saladic/assets/118.fb73b062.js rename to plugins/saladict-ztools/ext-saladic/assets/105.757b1b8a.js index 98f17e08..e807a16f 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/118.fb73b062.js +++ b/plugins/saladict-ztools/ext-saladic/assets/105.757b1b8a.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[118],{550:function(n,e,t){"use strict";t.r(e),t.d(e,"locale",(function(){return a}));const a={add:"添加",delete:"删除",save:"保存",cancel:"取消",edit:"编辑",sort:"排序",rename:"重命名",confirm:"确认",changes_confirm:"修改未保存。确认关闭?",delete_confirm:"确定完全删除该条目?",max:"最大",min:"最小",name:"名称",none:"无",enable:"开启",enabled:"已开启",disabled:"已关闭",blacklist:"黑名单",whitelist:"白名单",import:"导入",export:"导出",lang:{chinese:"中文",chs:"中文",deutsch:"德文",eng:"英文",english:"英文",french:"法文",japanese:"日文",korean:"韩文",minor:"其它语言",matchAll:"所有的字符都必须匹配",others:"其它字符",spanish:"西班牙文"},unit:{mins:"分钟",ms:"毫秒",s:"秒",word:"个"},note:{word:"单词",trans:"翻译",note:"笔记",context:"上下文",date:"日期",srcTitle:"来源标题",srcLink:"来源链接",srcFavicon:"来源图标"},profile:{daily:"日常模式",sentence:"句库模式",default:"默认模式",scholar:"学术模式",translation:"翻译模式",nihongo:"日语模式"}}}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[105],{434:function(e,n,t){"use strict";t.r(n),t.d(n,"locale",(function(){return a}));const a={add:"添加",delete:"删除",save:"保存",cancel:"取消",edit:"编辑",sort:"排序",rename:"重命名",confirm:"确认",changes_confirm:"修改未保存。确认关闭?",delete_confirm:"确定完全删除该条目?",max:"最大",min:"最小",name:"名称",none:"无",enable:"开启",enabled:"已开启",disabled:"已关闭",blacklist:"黑名单",whitelist:"白名单",import:"导入",export:"导出",lang:{chinese:"中文",chs:"中文",deutsch:"德文",eng:"英文",english:"英文",french:"法文",japanese:"日文",korean:"韩文",minor:"其它语言",matchAll:"所有的字符都必须匹配",others:"其它字符",spanish:"西班牙文"},unit:{mins:"分钟",ms:"毫秒",s:"秒",word:"个"},note:{word:"单词",trans:"翻译",note:"笔记",context:"上下文",contextCloze:"上下文填空",date:"日期",srcTitle:"来源标题",srcLink:"来源链接",srcFavicon:"来源图标"},profile:{daily:"日常模式",sentence:"句库模式",default:"默认模式",scholar:"学术模式",translation:"翻译模式",nihongo:"日语模式"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/105.b8e9e2c0.js b/plugins/saladict-ztools/ext-saladic/assets/105.b8e9e2c0.js deleted file mode 100644 index 83a16ec5..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/105.b8e9e2c0.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[105],{1329:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var s=a(0),n=a.n(s);class r extends n.a.PureComponent{render(){const e=this.props.className||"widget-StarRates",t=this.props.max||5,a=Number(this.props.rate)%(t+1)||0,s=this.props.height||"1.5em",r=this.props.gutter||"0.3em",l={height:s,...this.props.style||{}};return n.a.createElement("div",{className:e,style:l},Array.from(Array(t)).map((e,l)=>n.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.67 426.67",key:l+a,width:s,height:s,style:{marginRight:l===t-1?"":r}},n.a.createElement("path",{fill:l{switch(e.type){case"ciba":return function(e){return n.a.createElement(n.a.Fragment,null,n.a.createElement("h1",{className:"dictCOBUILD-Title"},e.title),e.prons&&n.a.createElement("ul",{className:"dictCOBUILD-Pron"},e.prons.map(e=>n.a.createElement("li",{key:e.phsym,className:"dictCOBUILD-PronItem"},e.phsym,n.a.createElement(r.a,{src:e.audio})))),n.a.createElement("div",{className:"dictCOBUILD-Rate"},e.star>=0&&n.a.createElement(l.a,{rate:e.star}),e.level&&n.a.createElement("span",{className:"dictCOBUILD-Level"},e.level)),e.defs&&n.a.createElement("ol",{className:"dictCOBUILD-Defs"},e.defs.map((e,t)=>n.a.createElement("li",{className:"dictCOBUILD-Def",key:t,dangerouslySetInnerHTML:{__html:e}}))))}(e);case"collins":return function(e){const[t,a]=Object(s.useState)("0"),r=e.sections[t];return n.a.createElement("div",{className:"dictCOBUILD-ColEntry"},e.sections.length>0&&n.a.createElement("select",{value:t,onChange:e=>a(e.currentTarget.value)},e.sections.map((e,t)=>n.a.createElement("option",{key:e.id,value:t},e.type,e.title?" :"+e.title:"",e.num?" "+e.num:""))),n.a.createElement("div",{className:"dictionary"},n.a.createElement("div",{className:"dc"},n.a.createElement("div",{className:"he"},n.a.createElement("div",{className:"page"},n.a.createElement("div",{className:"dictionary"},n.a.createElement("div",{className:"dictentry"},n.a.createElement("div",{className:"dictlink"},n.a.createElement("div",{key:r,className:r.className,dangerouslySetInnerHTML:{__html:r.content}})))))))))}(e)}return null};t.default=c}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/106.06fdee6f.js b/plugins/saladict-ztools/ext-saladic/assets/106.06fdee6f.js deleted file mode 100644 index 313d518a..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/106.06fdee6f.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[106],{1329:function(e,a,t){"use strict";t.d(a,"a",(function(){return s}));var n=t(0),l=t.n(n);class s extends l.a.PureComponent{render(){const e=this.props.className||"widget-StarRates",a=this.props.max||5,t=Number(this.props.rate)%(a+1)||0,n=this.props.height||"1.5em",s=this.props.gutter||"0.3em",r={height:n,...this.props.style||{}};return l.a.createElement("div",{className:e,style:r},Array.from(Array(a)).map((e,r)=>l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.67 426.67",key:r+t,width:n,height:n,style:{marginRight:r===a-1?"":s}},l.a.createElement("path",{fill:r"lex"===e.type?function(e){const a=e.bussinessFirst?["bussiness","contemporary"]:["contemporary","bussiness"];return l.a.createElement(l.a.Fragment,null,e.wordfams&&l.a.createElement("div",{className:"dictLongman-Wordfams",dangerouslySetInnerHTML:{__html:e.wordfams}}),a.map((a,t)=>e[a].length>0?l.a.createElement("div",{className:"dictLongman-Dict",key:a+t},e[a].map(c)):null))}(e):"related"===e.type?function(e){return l.a.createElement(l.a.Fragment,null,l.a.createElement("p",null,"Did you mean:"),l.a.createElement("ul",{className:"dictLongman-Related",dangerouslySetInnerHTML:{__html:e.list}}))}(e):null;function c(e){return l.a.createElement("section",{key:e.title.HWD+e.title.HOMNUM,className:"dictLongman-Entry"},l.a.createElement("header",null,l.a.createElement("div",{className:"dictLongman-HeaderContainer"},l.a.createElement("h1",{className:"dictLongman-Title"},l.a.createElement("span",{className:"dictLongman-Title_HWD"},e.title.HWD),l.a.createElement("span",{className:"dictLongman-Title_HYPHENATION"},e.title.HYPHENATION),l.a.createElement("span",{className:"dictLongman-Title_HOMNUM"},e.title.HOMNUM)),e.level?l.a.createElement("span",{title:e.level.title,className:"dictLongman-Level"},l.a.createElement(r.a,{max:3,rate:e.level.rate,className:"dictLongman-Level_Rate"})):null,e.freq&&e.freq.map(e=>l.a.createElement("span",{key:e.rank,className:"dictLongman-FREQ",title:e.title},e.rank))),l.a.createElement("div",{className:"dictLongman-HeaderContainer"},l.a.createElement("span",{className:"dictLongman-Pos"},e.pos),l.a.createElement("span",{className:"dictLongman-Phsym"},e.phsym),e.prons&&e.prons.map(e=>l.a.createElement(l.a.Fragment,{key:e.pron},e.lang.toUpperCase(),": ",l.a.createElement(s.c,{src:e.pron}))),e.topic&&l.a.createElement(l.a.Fragment,null,"Topic:"," ",l.a.createElement("a",{href:e.topic.href,rel:"nofollow noopener noreferrer"},e.topic.title)))),e.senses.map(e=>l.a.createElement("div",{key:e,className:"dictLongman-Sense",dangerouslySetInnerHTML:{__html:e}})),e.collocations&&l.a.createElement("div",{className:"dictLongman-Box",dangerouslySetInnerHTML:{__html:e.collocations}}),e.grammar&&l.a.createElement("div",{className:"dictLongman-Box",dangerouslySetInnerHTML:{__html:e.grammar}}),e.thesaurus&&l.a.createElement("div",{className:"dictLongman-Box",dangerouslySetInnerHTML:{__html:e.thesaurus}}),e.examples&&e.examples.length>0&&l.a.createElement(l.a.Fragment,null,l.a.createElement("h2",{className:"dictLongman-Examples_Title"},"Examples from the Corpus"),e.examples.map(e=>l.a.createElement("div",{key:e,className:"dictLongman-Examples",dangerouslySetInnerHTML:{__html:e}}))))}a.default=m}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/119.91c167dc.js b/plugins/saladict-ztools/ext-saladic/assets/106.3827b5e4.js similarity index 74% rename from plugins/saladict-ztools/ext-saladic/assets/119.91c167dc.js rename to plugins/saladict-ztools/ext-saladic/assets/106.3827b5e4.js index e23049b4..72c15282 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/119.91c167dc.js +++ b/plugins/saladict-ztools/ext-saladic/assets/106.3827b5e4.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[119],{551:function(t,o,e){"use strict";e.r(o),e.d(o,"locale",(function(){return n}));const n={chooseLang:"-选择其它语言-",standalone:"沙拉查词-独立查词窗口",fetchLangList:"获取全部语言列表",transContext:"重新翻译",neverShow:"不再弹出",fromSaladict:"来自沙拉查词面板",tip:{historyBack:"上一个查词记录",historyNext:"下一个查词记录",searchText:"查单词",openOptions:"打开设置",addToNotebook:"保存单词到生词本,右键打开生词本",openNotebook:"打开生词本",openHistory:"打开查词记录",shareImg:"以图片方式分享查词结果",pinPanel:"钉住查词面板",closePanel:"关闭查词面板",sidebar:"切换侧边栏模式,右键切换右侧",focusPanel:"查词时面板获取焦点",unfocusPanel:"查词时面板不获取焦点"},wordEditor:{title:"保存到生词本",wordCardsTitle:"生词本其它记录",deleteConfirm:"从单词本中移除?",closeConfirm:"记录尚未保存,确认关闭?",chooseCtxTitle:"选择翻译结果",ctxHelp:"如需兼容选择翻译结果以及 Anki 生成表格请保持 [:: xxx ::] 和 --------------- 格式。"},machineTrans:{switch:"更改语言",sl:"来源语言",tl:"目标语言",auto:"自动检测",stext:"原文",showSl:"显示原文",copySrc:"复制原文",copyTrans:"复制译文",login:"请登录{词典帐号}以使用。",dictAccount:"词典帐号"},updateAnki:{title:"更新到 Anki",success:"更新到 Anki 成功。",failed:"更新单词到 Anki 失败。"}}}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[106],{435:function(t,e,o){"use strict";o.r(e),o.d(e,"locale",(function(){return n}));const n={chooseLang:"-选择其它语言-",standalone:"沙拉查词-独立查词窗口",fetchLangList:"获取全部语言列表",transContext:"重新翻译",neverShow:"不再弹出",fromSaladict:"来自沙拉查词面板",tip:{historyBack:"上一个查词记录",historyNext:"下一个查词记录",searchText:"查单词",openOptions:"打开设置",addToNotebook:"保存单词到生词本,右键打开生词本",openNotebook:"打开生词本",openHistory:"打开查词记录",shareImg:"以图片方式分享查词结果",pinPanel:"钉住查词面板",closePanel:"关闭查词面板",sidebar:"切换侧边栏模式,右键切换右侧",focusPanel:"查词时面板获取焦点",unfocusPanel:"查词时面板不获取焦点"},wordEditor:{title:"保存到生词本",wordCardsTitle:"生词本其它记录",deleteConfirm:"从单词本中移除?",closeConfirm:"记录尚未保存,确认关闭?",chooseCtxTitle:"选择翻译结果",ctxHelp:"如需兼容选择翻译结果以及 Anki 生成表格请保持 [:: xxx ::] 和 --------------- 格式。"},machineTrans:{switch:"更改语言",sl:"来源语言",tl:"目标语言",auto:"自动检测",stext:"原文",showSl:"显示原文",copySrc:"复制原文",copyTrans:"复制译文",login:"请登录{词典帐号}以使用。",dictAccount:"词典帐号"},manualVerification:{title:"需要手动验证",message:"请打开词典原网页完成人机验证,然后回到沙拉查词重新查询。",openPage:"打开词典网页"},updateAnki:{title:"更新到 Anki",success:"更新到 Anki 成功。",failed:"更新单词到 Anki 失败。"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/120.6779c736.js b/plugins/saladict-ztools/ext-saladic/assets/107.b5cd70fd.js similarity index 95% rename from plugins/saladict-ztools/ext-saladic/assets/120.6779c736.js rename to plugins/saladict-ztools/ext-saladic/assets/107.b5cd70fd.js index 841039d7..39f8d6a2 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/120.6779c736.js +++ b/plugins/saladict-ztools/ext-saladic/assets/107.b5cd70fd.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[120],{553:function(a,t,e){"use strict";e.r(t),e.d(t,"locale",(function(){return n}));const n={baidu_page_translate:"百度网页翻译",baidu_search:"百度搜索",bing_dict:"必应词典",bing_search:"必应搜索",caiyuntrs:"彩云小译网页翻译",cambridge:"剑桥词典",copy_pdf_url:"复制PDF链接到剪贴板",dictcn:"海词词典",etymonline:"培根词源",google_cn_page_translate:"谷歌cn网页翻译",google_page_translate:"谷歌网页翻译",google_search:"谷歌搜索",google_translate:"谷歌翻译",google_cn_translate:"谷歌CN翻译",guoyu:"国语辞典",history_title:"查词历史记录",iciba:"金山词霸",liangan:"两岸词典",longman_business:"朗文商务",manual_title:"详细使用说明",merriam_webster:"韦氏词典",microsoft_page_translate:"微软网页翻译",notebook_title:"生词本",notification_youdao_err:"有道网页翻译2.0 加载无响应,\n可能扩展无权访问该页面,\n如加载成功请忽略本消息。",oxford:"牛津词典",page_permission_err:"沙拉查词「{{name}}」无权访问此页面。",page_translations:"网页翻译",saladict:"沙拉查词",saladict_standalone:"沙拉查词独立窗口",sogou:"搜狗翻译",sogou_page_translate:"搜狗网页翻译",termonline:"术语在线",view_as_pdf:"在 PDF 阅读器中打开",youdao:"有道词典",youdao_page_translate:"有道网页翻译",youglish:"YouGlish"}}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[107],{437:function(a,t,e){"use strict";e.r(t),e.d(t,"locale",(function(){return n}));const n={baidu_page_translate:"百度网页翻译",baidu_search:"百度搜索",bing_dict:"必应词典",bing_search:"必应搜索",caiyuntrs:"彩云小译网页翻译",cambridge:"剑桥词典",copy_pdf_url:"复制PDF链接到剪贴板",dictcn:"海词词典",etymonline:"培根词源",google_cn_page_translate:"谷歌cn网页翻译",google_page_translate:"谷歌网页翻译",google_search:"谷歌搜索",google_translate:"谷歌翻译",google_cn_translate:"谷歌CN翻译",guoyu:"国语辞典",history_title:"查词历史记录",iciba:"金山词霸",liangan:"两岸词典",longman_business:"朗文商务",manual_title:"详细使用说明",merriam_webster:"韦氏词典",microsoft_page_translate:"微软网页翻译",notebook_title:"生词本",notification_youdao_err:"有道网页翻译2.0 加载无响应,\n可能扩展无权访问该页面,\n如加载成功请忽略本消息。",oxford:"牛津词典",page_permission_err:"沙拉查词「{{name}}」无权访问此页面。",page_translations:"网页翻译",saladict:"沙拉查词",saladict_standalone:"沙拉查词独立窗口",sogou:"搜狗翻译",sogou_page_translate:"搜狗网页翻译",termonline:"术语在线",view_as_pdf:"在 PDF 阅读器中打开",youdao:"有道词典",youdao_page_translate:"有道网页翻译",youglish:"YouGlish"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/107.d059361d.js b/plugins/saladict-ztools/ext-saladic/assets/107.d059361d.js deleted file mode 100644 index 189b81c9..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/107.d059361d.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[107],{1329:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(0),l=a.n(n);class r extends l.a.PureComponent{render(){const e=this.props.className||"widget-StarRates",t=this.props.max||5,a=Number(this.props.rate)%(t+1)||0,n=this.props.height||"1.5em",r=this.props.gutter||"0.3em",s={height:n,...this.props.style||{}};return l.a.createElement("div",{className:e,style:s},Array.from(Array(t)).map((e,s)=>l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.67 426.67",key:s+a,width:n,height:n,style:{marginRight:s===t-1?"":r}},l.a.createElement("path",{fill:s{switch(e.type){case"lex":return function(e,t){return l.a.createElement("section",{onClick:i},t,l.a.createElement("header",{className:"dictMacmillan-Header"},e.ratting>0&&l.a.createElement(s.a,{rate:e.ratting}),l.a.createElement("span",{className:"dictMacmillan-Header_Info"},e.phsym," ",l.a.createElement(r.c,{src:e.pron})," ",e.pos," ",e.sc)),l.a.createElement("ol",{className:"dictMacmillan-Sences",dangerouslySetInnerHTML:{__html:e.senses}}),e.toggleables.map((e,t)=>l.a.createElement("div",{key:t,dangerouslySetInnerHTML:{__html:e}})))}(e,function(e,t){return e.relatedEntries.length>0?l.a.createElement("select",{value:"",onChange:e=>{e.currentTarget.value&&t({id:"macmillan",payload:{href:e.currentTarget.value}})}},l.a.createElement("option",{value:""},e.title+(e.pos?" "+e.pos.toUpperCase():"")),e.relatedEntries.map(({title:e,href:t})=>l.a.createElement("option",{key:t,value:t},e))):null}(e,t));case"related":return function(e){return l.a.createElement(l.a.Fragment,null,l.a.createElement("p",null,"Did you mean:"),l.a.createElement("ul",{className:"dictMacmillan-Related"},e.list.map(({title:e,href:t})=>l.a.createElement("li",{key:t},l.a.createElement("a",{href:t},e)))))}(e);default:return null}};function i(e){if(!e.target.classList)return;const t=e.target;let a=t.classList.contains("toggle-open")||t.classList.contains("toggle-close");if(!a)for(let e=t;e;e=e.parentElement)if(e.classList.contains("toggle-toggle")){a=!0;break}if(a)for(let a=t;a;a=a.parentElement)if(a.classList.contains("toggleable")){a.classList.toggle("closed"),e.preventDefault(),e.stopPropagation();break}}t.default=c}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/108.48148983.js b/plugins/saladict-ztools/ext-saladic/assets/108.48148983.js deleted file mode 100644 index d47d84b8..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/108.48148983.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[108,136],{636:function(e,a,t){"use strict";t.r(a),t.d(a,"DictGuoyu",(function(){return l}));var n=t(0),s=t.n(n),c=t(119);const l=({result:e})=>s.a.createElement(s.a.Fragment,null,e.h&&e.h.map(a=>s.a.createElement("div",{className:"dictMoe-H",key:a.p},s.a.createElement("h1",{className:"dictMoe-Title"},i(e.t)),s.a.createElement("span",{className:"dictMoe-Pinyin"},a.p||""),s.a.createElement(c.c,{src:a["="]}),a.d&&s.a.createElement("ol",{className:"dictMoe-Defs"},a.d.map(e=>s.a.createElement("li",{key:e.f},s.a.createElement("p",{className:"dictMoe-Defs_F"},i(e.f)),e.e&&e.e.map(e=>s.a.createElement("p",{key:e,className:"dictMoe-Defs_E"},i(e)))))))),e.translation&&s.a.createElement(s.a.Fragment,null,e.translation.English&&s.a.createElement("div",{className:"dictMoe-Trans"},s.a.createElement("span",{className:"dictMoe-Trans_Pos"},"英."),s.a.createElement("span",{className:"dictMoe-Trans_Def"},e.translation.English.join(", "))),e.translation.francais&&s.a.createElement("div",{className:"dictMoe-Trans"},s.a.createElement("span",{className:"dictMoe-Trans_Pos"},"法."),s.a.createElement("span",{className:"dictMoe-Trans_Def"},e.translation.francais.join(", "))),e.translation.Deutsch&&s.a.createElement("div",{className:"dictMoe-Trans"},s.a.createElement("span",{className:"dictMoe-Trans_Pos"},"德."),s.a.createElement("span",{className:"dictMoe-Trans_Def"},e.translation.Deutsch.join(", ")))));function i(e){return e?e.split(/`(.*?)~/g).map((e,a)=>a%2==0?e.replace("例⃝",""):s.a.createElement("a",{key:a,className:"dictMoe-Link",href:"https://www.moedict.tw/"+e},e)):""}a.default=l},652:function(e,a,t){"use strict";t.r(a),t.d(a,"DictLiangAn",(function(){return n}));const n=t(636).DictGuoyu;n.displayName="LiangAn",a.default=n}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/121.01a1fc53.js b/plugins/saladict-ztools/ext-saladic/assets/108.895d59a6.js similarity index 60% rename from plugins/saladict-ztools/ext-saladic/assets/121.01a1fc53.js rename to plugins/saladict-ztools/ext-saladic/assets/108.895d59a6.js index b7867320..db4bf20a 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/121.01a1fc53.js +++ b/plugins/saladict-ztools/ext-saladic/assets/108.895d59a6.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[121],{554:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"沙拉查词设置",previewPanel:"预览查词面板",shortcuts:"设置快捷键",msg_update_error:"设置更新失败",msg_updated:"设置已更新",msg_first_time_notice:"初次使用注意",msg_err_permission:"权限“{{permission}}”申请失败。",unsave_confirm:"修改尚未保存,确定放弃?",nativeSearch:"浏览器外划词",firefox_shortcuts:"地址栏输入 about:addons 打开,点击右上方的齿轮,选择最后一项管理扩展快捷键。",tutorial:"教程",page_selection:"网页划词",nav:{General:"基本选项",Notebook:"单词管理",Profiles:"情景模式",DictPanel:"查词面板",SearchModes:"查词习惯",Dictionaries:"词典设置",DictAuths:"词典帐号",Popup:"右上弹框",QuickSearch:"快捷查词",Pronunciation:"发音设置",PDF:"PDF 设置",ContextMenus:"右键菜单",BlackWhiteList:"黑白名单",ImportExport:"导入导出",Privacy:"隐私设置",Permissions:"权限管理"},config:{active:"启用划词翻译",active_help:"关闭后「快捷查词」功能依然可用。",animation:"开启动画过渡",animation_help:"在低性能设备上关闭过渡动画可减少渲染负担。",runInBg:"后台保持运行",runInBg_help:"让浏览器关闭后依然保持后台运行,从而继续响应快捷键以及浏览器外划词。",darkMode:"黑暗模式",langCode:"界面语言",editOnFav:"红心单词时弹出编辑面板",editOnFav_help:"关闭后,点击红心生词将自动添加到生词本,上下文翻译亦会自动获取。",searchHistory:"记录查词历史",searchHistory_help:"查词记录可能会泄漏您的浏览痕迹。",searchHistoryInco:"在私隐模式中记录",ctxTrans:"上下文翻译引擎",ctxTrans_help:"单词被添加进生词本前会自动翻译上下文。",searchSuggests:"输入时显示候选",panelMaxHeightRatio:"查词面板最高占屏幕比例",panelWidth:"查词面板宽度",fontSize:"词典内容字体大小",bowlOffsetX:"沙拉图标水平偏移",bowlOffsetY:"沙拉图标垂直偏移",panelCSS:"自定义查词面板样式",panelCSS_help:"为查词面板添加自定义 CSS 。词典面板使用 .dictPanel-Root 作为根,词典使用 .dictRoot 或者 .d-词典ID 作为根。",noTypeField:"不在输入框划词",noTypeField_help:"开启后,本扩展会自动识别输入框以及常见编辑器,如 CodeMirror、ACE 和 Monaco。",touchMode:"触摸模式",touchMode_help:"支持触摸相关选词。",language:"划词语言",language_help:"当选中的文字包含相应的语言时才进行查找。",language_extra:"注意日语与韩语也包含了汉字。法语、德语和西语也包含了英文。若取消了中文或英语而勾选了其它语言,则只匹配那些语言独有的部分,如日语只匹配假名。",doubleClickDelay:"双击间隔",mode:"普通划词",defaultPinned:"出现时钉住查词面板",panelMode:"查词面板内部划词",pinMode:"查词面板钉住后划词",qsPanelMode:"独立窗口响应页面划词",bowlHover:"图标悬停查词",bowlHover_help:"鼠标悬停在沙拉图标上触发查词,否则需要点击。",autopron:{cn:{dict:"中文自动发音"},en:{dict:"英文自动发音",accent:"优先口音"},machine:{dict:"机器自动发音",src:"机器发音部分",src_help:"机器翻译词典需要在下方添加并启用才会自动发音。",src_search:"朗读原文",src_trans:"朗读翻译"}},pdfSniff:"嗅探 PDF 链接",pdfSniff_help:"开启后所有 PDF 链接将自动跳转到本扩展打开(包括本地,如果在扩展管理页面勾选了允许)。",pdfSniff_extra:"现在更推荐使用自己喜欢的本地阅读器搭配{浏览器外划词}。",pdfStandalone:"独立窗口",pdfStandalone_help:"在独立窗口中打开 PDF 阅读器。独立窗口只有标题栏,占用更少空间,但不能复制链接等操作。",baWidth:"弹窗宽度",baWidth_help:"右上弹框面板宽度。若为负数则取查词面板的宽度。",baHeight:"弹窗高度",baHeight_help:"右上弹框面板高度。",baOpen:"点击地址栏旁图标",baOpen_help:"点击地址栏旁 Saladict 图标时发生的操作。沿用了「右键菜单」的项目,可以前往该设置页面进行增加或编辑。",tripleCtrl:"启用 Ctrl 快捷键",tripleCtrl_help:"连续按三次{⌘ Command}(Mac)或者{Ctrl}(其它键盘)(或设置浏览器快捷键)将弹出词典界面。",qsLocation:"出现位置",qsFocus:"出现时获取焦点",qsStandalone:"独立窗口",qsStandalone_help:"显示为单独的窗口,支持响应{浏览器以外划词}。",qssaSidebar:"类侧边栏",qssaSidebar_help:"并排显示窗口以达到类似侧边栏的布局。",qssaHeight:"窗口高度",qssaPageSel:"响应划词",qssaPageSel_help:"响应网页划词。",qssaRectMemo:"记住位置与大小",qssaRectMemo_help:"独立窗口关闭时记住位置与大小。",updateCheck:"检查更新",updateCheck_help:"自动检查更新",analytics:"启用 Google Analytics",analytics_help:"提供匿名设备浏览器版本信息。因精力有限,沙拉查词作者会尽可能支持用户量更多的设备和浏览器。",opt:{reset:"重置设定",reset_confirm:"所有设定将还原到默认值,确定?",upload_error:"设置保存失败",accent:{uk:"英式",us:"美式"},sel_blackwhitelist:"划词黑白名单",sel_blackwhitelist_help:"黑名单匹配的页面 Saladict 将不会响应鼠标划词。",pdf_blackwhitelist_help:"黑名单匹配的 PDF 链接将不会跳转到 Saladict 打开。",contextMenus_description:"设置右键菜单,可添加可自定义链接。网页翻译其实不需要沙拉查词,故已有的有道和谷歌网页翻译目前处于维护状态,没有计划添加新功能,请用其它官方扩展如彩云小译和谷歌翻译。",contextMenus_edit:"编辑右键菜单项目",contextMenus_url_rules:"链接中的 %s 会被替换为选词。",baOpen:{popup_panel:"显示查词面板",popup_fav:"添加选词到生词本",popup_options:"打开 Saladict 设置",popup_standalone:"打开快捷查词独立窗口"},openQsStandalone:"打开独立窗口设置",pdfStandalone:{default:"从不",always:"总是",manual:"手动"}}},matchPattern:{description:"网址支持{超链匹配}和{正则匹配}。留空保存即可清除。",url:"超链匹配",url_error:"不正确的超链接模式表达式。",regex:"正则匹配",regex_error:"不正确的正则表达式。"},searchMode:{icon:"显示图标",icon_help:"在鼠标附近显示一个图标,鼠标移上去后才显示词典面板。",direct:"直接搜索",direct_help:"直接显示词典面板。",double:"双击搜索",double_help:"双击选择文本之后直接显示词典面板。",holding:"按住按键",holding_help:'在放开鼠标之前按住选择的按键才显示词典面板(Alt 为 macOS 上的 "⌥ Option"键。 Meta 键为 macOS 上的「⌘ Command」键以及其它键盘的「⊞ Windows」键)。',instant:"鼠标悬浮取词",instant_help:"自动选取鼠标附近的单词。",instantDirect:"直接取词",instantKey:"按键",instantKey_help:"因技术限制,悬浮取词通过自动选择鼠标附近单词实现,不设置按键直接取词可导致无法选词,建议配合快捷键开启关闭。",instantDelay:"取词延时"},profiles:{opt:{add_name:"新增情景模式名称",delete_confirm:"「{{name}}」将被删除,确认?",edit_name:"更改情景模式名称",help:"每个情景模式相当于一套独立的设置,一些选项(带 {*})会随着情景模式变化。鼠标悬浮在查词面板的菜单图标上可快速切换,或者焦点选中菜单图标然后按{↓}。"}},profile:{mtaAutoUnfold:"自动展开多行搜索框",waveform:"波形控制按钮",waveform_help:"在词典面板下方显示音频控制面板展开按钮。控制面板只會在展開時才載入。",stickyFold:"记忆折叠",stickyFold_help:"查词时记住之前手动展开与折叠词典的状态,仅在同个页面生效。",opt:{item_extra:"此选项会因「情景模式」而改变。",mtaAutoUnfold:{always:"保持展开",never:"从不展开",once:"展开一次",popup:"只在右上弹框展开",hide:"隐藏"},dict_selected:"已选词典"}},dict:{add:"添加词典",more_options:"更多设置",selectionLang:"划词语言",selectionLang_help:"当选中的文字包含相应的语言时才显示该词典。",defaultUnfold:"默认展开",defaultUnfold_help:"关闭后该词典将不会自动搜索,除非点击「展开」箭头。适合一些需要时再深入了解的词典,以加快初次查词速度。",selectionWC:"划词字数",selectionWC_help:"当选中文字的字数符合条件时才显示该词典。可设置 999999 如果不希望限制字数。",preferredHeight:"词典默认高度",preferredHeight_help:"词典初次出现的最大高度。超出此高度的内容将被隐藏并显示下箭头。可设置 999999 如果不希望限制高度。",lang:{de:"德",en:"英",es:"西",fr:"法",ja:"日",kor:"韩",zhs:"简",zht:"繁"}},syncService:{description:"数据同步设置。",start:"同步进行中,结束前请勿关闭此页面。",finished:"同步结束",success:"同步成功",failed:"同步失败",close_confirm:"设置未保存,关闭?",delete_confirm:"清空同步设置?",shanbay:{description:"先去 shanbay.com 登录扇贝(退出后将失效)。开启后每次添加生词将自动单向同步到扇贝生词本(只从沙拉查词到扇贝),只同步新增单词(删除不同步),只同步单词本身(上下文等均不能同步)。生词需要扇贝单词库支持才能被添加。",login:"将打开扇贝官网,请登录再回来重新开启。",sync_all:"上传现有的所有生词",sync_all_confirm:"生词本存在较多单词,将分批上传。注意短时间上传太多有可能会导致封号,且不可恢复,确定继续?",sync_last:"上传最近的一个生词"},webdav:{description:"应用设置(包括本设置)已通过浏览器自动同步。生词本可通过本设置实现 WebDAV 同步。",jianguo:"参考坚果云设置",checking:"连接中...",exist_confirm:"服务器上已存在 Saladict 目录。是否下载合并到本地?",upload_confirm:"马上上传本地数据到服务器?",verify:"验证服务器",verified:"成功验证服务器",duration:"同步周期",duration_help:"添加生词后会马上上传,数据会在上传前保证同步,所以如果不需要多个浏览器实时查看更新,可将更新检测周期调大些以减少资源占用及避免服务器拒绝响应。",passwd:"密码",url:"服务器地址",user:"账户"},ankiconnect:{description:"请确保 Anki Connect 插件已安装且 Anki 在后台运行。",checking:"连接中...",deck_confirm:"牌组「{{deck}}」不存在 Anki 中,是否自动添加?",deck_error:"无法创建牌组「{{deck}}」。",notetype_confirm:"笔记类型「{{noteType}}」不存在 Anki 中,是否自动添加?",notetype_error:"无法创建笔记类型「{{noteType}}」。",upload_confirm:"马上同步本地生词到 Anki?重复的单词(相同“Date”)会被跳过。",add_yourself:"请在 Anki 中自行添加。",verify:"检查 Anki Connect",verified:"成功检查 Anki Connect",enable_help:"开启后每次保存新生词都会自动同步到 Anki。Anki 上已存在的单词(以“Date”为准)可以在单词编辑器中编辑强制更新覆盖到 Anki。",host:"地址",port:"端口",key:"Key",key_help:"可在 Anki Connect 插件中设置 key 以做简单令牌。",deckName:"牌组",deckName_help:"如果不存在的话可以点下方「检查 Anki Connect」让本设置生成默认牌组。",noteType:"笔记类型",noteType_help:"Anki 笔记类型包括一套字段和卡片类型。如果不存在的话可以点下方「检查 Anki Connect」让本设置生成一套默认的笔记类型。如需自行在 Anki 添加或修改卡片模板请不要更改字段名字。",tags:"标签",tags_help:"Anki 笔记可以附带标签。以逗号分割。",escapeHTML:"转义 HTML",escapeHTML_help:"对笔记内容中的 HTML 字符进行转义。如手动进行 HTML 排版请关闭选项。",syncServer:"同步服务器",syncServer_help:"单词添加到本地 Anki 后自动同步到服务器(如 AnkiWeb)。"}},titlebarOffset:{title:"校准标题栏高度",help:"不同的系统以及不同的浏览器设置会影响标题栏高度,沙拉查词会尝试自动校准,如弹出窗口依然出现偏移可自行调整。",main:"普通窗口",main_help:"普通窗口可能没有标题栏。",panel:"简化窗口",panel_help:"沙拉查词的独立窗口快捷查词面板为简化窗口。",calibrate:"自动校准",calibrateSuccess:"自动校准成功",calibrateError:"自动校准失败"},headInfo:{acknowledgement:{title:"特别鸣谢",naver:"协助添加 Naver 韩国语词典",shanbay:"编写扇贝词典模块",trans_tw:"提供部分繁体中文翻译",weblio:"协助添加 Weblio 辞書"},contact_author:"联系作者",donate:"支持项目",instructions:"使用说明",report_issue:"反馈问题"},form:{url_error:"不正确的超链接格式。",number_error:"不正确的数字"},preload:{title:"预先加载",auto:"自动查词",auto_help:"查词面板出现时自动搜索预加载内容。",clipboard:"剪贴板",help:"查词面板出现时预先加载内容到搜索框。",selection:"页面划词"},locations:{CENTER:"居中",TOP:"上方",RIGHT:"右方",BOTTOM:"下方",LEFT:"左方",TOP_LEFT:"左上",TOP_RIGHT:"右上",BOTTOM_LEFT:"左下",BOTTOM_RIGHT:"右下"},import_export_help:"设定已通过浏览器自动同步,也可以手动导入导出。备份为明文保存,对安全性有要求的请自行加密。",import:{title:"导入设定",error:{title:"导入失败",parse:"备份解析失败,格式不正确。",load:"备份加载失败,浏览器无法获得本地备份。",empty:"备份中没有发现有效数据。"}},export:{title:"导出设定",error:{title:"导出失败",empty:"没有设置可以导出。",parse:"设置解析失败,无法导出。"}},dictAuth:{description:"随着沙拉查词用户增多,如经常使用机器翻译,建议到官网申请帐号以获得更稳定的体验以及更准确的结果。以下帐号数据只会保留在浏览器中。",dictHelp:"见{词典}官网。",manage:"管理私用帐号"},third_party_privacy:"第三方隐私",third_party_privacy_help:"沙拉查词不会收集更多数据,但在查词时单词以及相关 cookies 数据会发送给第三方词典服务(与在该网站上查词一样),如果你不希望被该服务获取数据,请在「词典设置」中关闭相应词典。",third_party_privacy_extra:"本特性为沙拉查词核心功能,无法关闭。",permissions:{success:"申请权限成功",cancel_success:"取消权限成功",failed:"申请权限失败",cancelled:"申请权限被用户取消",missing:"缺少权限「{{permission}}」。请给予权限或者关闭相关功能。",clipboardRead:"读取剪贴板",clipboardRead_help:"快捷查词或者右上弹框设置预加载剪贴板时需要读取剪贴板权限。",clipboardWrite:"写入剪贴板",clipboardWrite_help:"机器翻译词典标题栏菜单复制原文译文或生词本导出到剪贴板需要写入剪贴板权限。"},unsupportedFeatures:{ff:"火狐尚不支持「{{feature}}」功能。"}}}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[108],{438:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"沙拉查词设置",previewPanel:"预览查词面板",shortcuts:"设置快捷键",msg_update_error:"设置更新失败",msg_updated:"设置已更新",msg_first_time_notice:"初次使用注意",msg_err_permission:"权限“{{permission}}”申请失败。",unsave_confirm:"修改尚未保存,确定放弃?",nativeSearch:"浏览器外划词",firefox_shortcuts:"地址栏输入 about:addons 打开,点击右上方的齿轮,选择最后一项管理扩展快捷键。",tutorial:"教程",page_selection:"网页划词",nav:{General:"基本选项",Notebook:"单词管理",Profiles:"情景模式",DictPanel:"查词面板",SearchModes:"查词习惯",Dictionaries:"词典设置",DictAuths:"词典帐号",Popup:"右上弹框",QuickSearch:"快捷查词",Pronunciation:"发音设置",PDF:"PDF 设置",ContextMenus:"右键菜单",BlackWhiteList:"黑白名单",ImportExport:"导入导出",Privacy:"隐私设置",Permissions:"权限管理"},config:{active:"启用划词翻译",active_help:"关闭后「快捷查词」功能依然可用。",animation:"开启动画过渡",animation_help:"在低性能设备上关闭过渡动画可减少渲染负担。",runInBg:"后台保持运行",runInBg_help:"让浏览器关闭后依然保持后台运行,从而继续响应快捷键以及浏览器外划词。",darkMode:"黑暗模式",langCode:"界面语言",editOnFav:"红心单词时弹出编辑面板",editOnFav_help:"关闭后,点击红心生词将自动添加到生词本,上下文翻译亦会自动获取。",searchHistory:"记录查词历史",searchHistory_help:"查词记录可能会泄漏您的浏览痕迹。",searchHistoryInco:"在私隐模式中记录",ctxTrans:"上下文翻译引擎",ctxTrans_help:"单词被添加进生词本前会自动翻译上下文。",searchSuggests:"输入时显示候选",panelMaxHeightRatio:"查词面板最高占屏幕比例",panelWidth:"查词面板宽度",fontSize:"词典内容字体大小",bowlOffsetX:"沙拉图标水平偏移",bowlOffsetY:"沙拉图标垂直偏移",panelCSS:"自定义查词面板样式",panelCSS_help:"为查词面板添加自定义 CSS 。词典面板使用 .dictPanel-Root 作为根,词典使用 .dictRoot 或者 .d-词典ID 作为根。",noTypeField:"不在输入框划词",noTypeField_help:"开启后,本扩展会自动识别输入框以及常见编辑器,如 CodeMirror、ACE 和 Monaco。",touchMode:"触摸模式",touchMode_help:"支持触摸相关选词。",language:"划词语言",language_help:"当选中的文字包含相应的语言时才进行查找。",language_extra:"注意日语与韩语也包含了汉字。法语、德语和西语也包含了英文。若取消了中文或英语而勾选了其它语言,则只匹配那些语言独有的部分,如日语只匹配假名。",doubleClickDelay:"双击间隔",mode:"普通划词",defaultPinned:"出现时钉住查词面板",panelMode:"查词面板内部划词",pinMode:"查词面板钉住后划词",qsPanelMode:"独立窗口响应页面划词",bowlHover:"图标悬停查词",bowlHover_help:"鼠标悬停在沙拉图标上触发查词,否则需要点击。",autopron:{cn:{dict:"中文自动发音"},en:{dict:"英文自动发音",accent:"优先口音"},machine:{dict:"机器自动发音",src:"机器发音部分",src_help:"机器翻译词典需要在下方添加并启用才会自动发音。",src_search:"朗读原文",src_trans:"朗读翻译"}},pdfSniff:"嗅探 PDF 链接",pdfSniff_help:"开启后所有 PDF 链接将自动跳转到本扩展打开(包括本地,如果在扩展管理页面勾选了允许)。",pdfSniff_extra:"现在更推荐使用自己喜欢的本地阅读器搭配{浏览器外划词}。",pdfStandalone:"独立窗口",pdfStandalone_help:"在独立窗口中打开 PDF 阅读器。独立窗口只有标题栏,占用更少空间,但不能复制链接等操作。",baWidth:"弹窗宽度",baWidth_help:"右上弹框面板宽度。若为负数则取查词面板的宽度。",baHeight:"弹窗高度",baHeight_help:"右上弹框面板高度。",baOpen:"点击地址栏旁图标",baOpen_help:"点击地址栏旁 Saladict 图标时发生的操作。沿用了「右键菜单」的项目,可以前往该设置页面进行增加或编辑。",tripleCtrl:"启用 Ctrl 快捷键",tripleCtrl_help:"连续按三次{⌘ Command}(Mac)或者{Ctrl}(其它键盘)(或设置浏览器快捷键)将弹出词典界面。",qsLocation:"出现位置",qsFocus:"出现时获取焦点",qsStandalone:"独立窗口",qsStandalone_help:"显示为单独的窗口,支持响应{浏览器以外划词}。",qssaSidebar:"类侧边栏",qssaSidebar_help:"并排显示窗口以达到类似侧边栏的布局。",qssaHeight:"窗口高度",qssaPageSel:"响应划词",qssaPageSel_help:"响应网页划词。",qssaRectMemo:"记住位置与大小",qssaRectMemo_help:"独立窗口关闭时记住位置与大小。",updateCheck:"检查更新",updateCheck_help:"自动检查更新",analytics:"启用 Google Analytics",analytics_help:"提供匿名设备浏览器版本信息。因精力有限,沙拉查词作者会尽可能支持用户量更多的设备和浏览器。",opt:{reset:"重置设定",reset_confirm:"所有设定将还原到默认值,确定?",upload_error:"设置保存失败",accent:{uk:"英式",us:"美式"},sel_blackwhitelist:"划词黑白名单",sel_blackwhitelist_help:"黑名单匹配的页面 Saladict 将不会响应鼠标划词。",pdf_blackwhitelist_help:"黑名单匹配的 PDF 链接将不会跳转到 Saladict 打开。",contextMenus_description:"设置右键菜单,可添加可自定义链接。网页翻译其实不需要沙拉查词,故已有的有道和谷歌网页翻译目前处于维护状态,没有计划添加新功能,请用其它官方扩展如彩云小译和谷歌翻译。",contextMenus_edit:"编辑右键菜单项目",contextMenus_url_rules:"链接中的 %s 会被替换为选词。",baOpen:{popup_panel:"显示查词面板",popup_fav:"添加选词到生词本",popup_options:"打开 Saladict 设置",popup_standalone:"打开快捷查词独立窗口"},openQsStandalone:"打开独立窗口设置",pdfStandalone:{default:"从不",always:"总是",manual:"手动"}}},matchPattern:{description:"网址支持{超链匹配}和{正则匹配}。留空保存即可清除。",url:"超链匹配",url_error:"不正确的超链接模式表达式。",regex:"正则匹配",regex_error:"不正确的正则表达式。"},searchMode:{icon:"显示图标",icon_help:"在鼠标附近显示一个图标,鼠标移上去后才显示词典面板。",direct:"直接搜索",direct_help:"直接显示词典面板。",double:"双击搜索",double_help:"双击选择文本之后直接显示词典面板。",holding:"按住按键",holding_help:'在放开鼠标之前按住选择的按键才显示词典面板(Alt 为 macOS 上的 "⌥ Option"键。 Meta 键为 macOS 上的「⌘ Command」键以及其它键盘的「⊞ Windows」键)。',instant:"鼠标悬浮取词",instant_help:"自动选取鼠标附近的单词。",instantDirect:"直接取词",instantKey:"按键",instantKey_help:"因技术限制,悬浮取词通过自动选择鼠标附近单词实现,不设置按键直接取词可导致无法选词,建议配合快捷键开启关闭。",instantDelay:"取词延时"},profiles:{opt:{add_name:"新增情景模式名称",delete_confirm:"「{{name}}」将被删除,确认?",edit_name:"更改情景模式名称",help:"每个情景模式相当于一套独立的设置,一些选项(带 {*})会随着情景模式变化。鼠标悬浮在查词面板的菜单图标上可快速切换,或者焦点选中菜单图标然后按{↓}。"}},profile:{mtaAutoUnfold:"自动展开多行搜索框",waveform:"波形控制按钮",waveform_help:"在词典面板下方显示音频控制面板展开按钮。控制面板只會在展開時才載入。",stickyFold:"记忆折叠",stickyFold_help:"查词时记住之前手动展开与折叠词典的状态,仅在同个页面生效。",opt:{item_extra:"此选项会因「情景模式」而改变。",mtaAutoUnfold:{always:"保持展开",never:"从不展开",once:"展开一次",popup:"只在右上弹框展开",hide:"隐藏"},dict_selected:"已选词典"}},dict:{add:"添加词典",more_options:"更多设置",selectionLang:"划词语言",selectionLang_help:"当选中的文字包含相应的语言时才显示该词典。",defaultUnfold:"默认展开",defaultUnfold_help:"关闭后该词典将不会自动搜索,除非点击「展开」箭头。适合一些需要时再深入了解的词典,以加快初次查词速度。",selectionWC:"划词字数",selectionWC_help:"当选中文字的字数符合条件时才显示该词典。可设置 999999 如果不希望限制字数。",preferredHeight:"词典默认高度",preferredHeight_help:"词典初次出现的最大高度。超出此高度的内容将被隐藏并显示下箭头。可设置 999999 如果不希望限制高度。",lang:{de:"德",en:"英",es:"西",fr:"法",ja:"日",kor:"韩",zhs:"简",zht:"繁"}},syncService:{description:"数据同步设置。",start:"同步进行中,结束前请勿关闭此页面。",finished:"同步结束",success:"同步成功",failed:"同步失败",close_confirm:"设置未保存,关闭?",delete_confirm:"清空同步设置?",shanbay:{description:"先去 shanbay.com 登录扇贝(退出后将失效)。开启后每次添加生词将自动单向同步到扇贝生词本(只从沙拉查词到扇贝),只同步新增单词(删除不同步),只同步单词本身(上下文等均不能同步)。生词需要扇贝单词库支持才能被添加。",login:"将打开扇贝官网,请登录再回来重新开启。",sync_all:"上传现有的所有生词",sync_all_confirm:"生词本存在较多单词,将分批上传。注意短时间上传太多有可能会导致封号,且不可恢复,确定继续?",sync_last:"上传最近的一个生词"},eudic:{description:"使用欧路词典同步单词前,必须先在欧路官网(my.eudic.net/home/index)创建默认生词本(一般初次手动导入会自动生成且无法删除)。注意短时间内不要频繁同步,可能会造成暂时封停。",token:"授权信息",getToken:"获取授权",verify:"检查 授权信息",verified:"成功检查 欧路授权信息",enable_help:"开启后每次添加生词将自动单向同步到欧路默认生词本(salad到欧路生词本),只同步新增单词本身(删除不同步)",token_help:"请确认设置有效的个人授权信息,否则将同步失败。可点击底部按钮检查。",sync_all:"同步全部生词",sync_help:"将salad单词本中现有的所有生词,同步到欧路词典默认生词本中(需同时开启上方同步开关,点击保存)",sync_all_confirm:"注意短时间内频繁同步有可能会导致接下来一小段时间的封停,确定继续?"},webdav:{description:"应用设置(包括本设置)已通过浏览器自动同步。生词本可通过本设置实现 WebDAV 同步。",jianguo:"参考坚果云设置",checking:"连接中...",exist_confirm:"服务器上已存在 Saladict 目录。是否下载合并到本地?",upload_confirm:"马上上传本地数据到服务器?",verify:"验证服务器",verified:"成功验证服务器",duration:"同步周期",duration_help:"添加生词后会马上上传,数据会在上传前保证同步,所以如果不需要多个浏览器实时查看更新,可将更新检测周期调大些以减少资源占用及避免服务器拒绝响应。",passwd:"密码",url:"服务器地址",user:"账户"},ankiconnect:{description:"请确保 Anki Connect 插件已安装且 Anki 在后台运行。",checking:"连接中...",deck_confirm:"牌组「{{deck}}」不存在 Anki 中,是否自动添加?",deck_error:"无法创建牌组「{{deck}}」。",notetype_confirm:"笔记类型「{{noteType}}」不存在 Anki 中,是否自动添加?",notetype_error:"无法创建笔记类型「{{noteType}}」。",upload_confirm:"马上同步本地生词到 Anki?重复的单词(相同“Date”)会被跳过。",add_yourself:"请在 Anki 中自行添加。",verify:"检查 Anki Connect",verified:"成功检查 Anki Connect",enable_help:"开启后每次保存新生词都会自动同步到 Anki。Anki 上已存在的单词(以“Date”为准)可以在单词编辑器中编辑强制更新覆盖到 Anki。",host:"地址",port:"端口",key:"Key",key_help:"可在 Anki Connect 插件中设置 key 以做简单令牌。",deckName:"牌组",deckName_help:"如果不存在的话可以点下方「检查 Anki Connect」让本设置生成默认牌组。",noteType:"笔记类型",noteType_help:"Anki 笔记类型包括一套字段和卡片类型。如果不存在的话可以点下方「检查 Anki Connect」让本设置生成一套默认的笔记类型。如需自行在 Anki 添加或修改卡片模板请不要更改字段名字。",tags:"标签",tags_help:"Anki 笔记可以附带标签。以逗号分割。",escapeHTML:"转义 HTML",escapeHTML_help:"对笔记内容中的 HTML 字符进行转义。如手动进行 HTML 排版请关闭选项。",syncServer:"同步服务器",syncServer_help:"单词添加到本地 Anki 后自动同步到服务器(如 AnkiWeb)。"}},titlebarOffset:{title:"校准标题栏高度",help:"不同的系统以及不同的浏览器设置会影响标题栏高度,沙拉查词会尝试自动校准,如弹出窗口依然出现偏移可自行调整。",main:"普通窗口",main_help:"普通窗口可能没有标题栏。",panel:"简化窗口",panel_help:"沙拉查词的独立窗口快捷查词面板为简化窗口。",calibrate:"自动校准",calibrateSuccess:"自动校准成功",calibrateError:"自动校准失败"},headInfo:{acknowledgement:{title:"特别鸣谢",yipanhuasheng:"添加韦氏词典、美国传统词典、牛津学习词典与欧路生词同步;更新 Urban 词典与 Naver 词典",naver:"协助添加 Naver 韩国语词典",shanbay:"编写扇贝词典模块",trans_tw:"提供部分繁体中文翻译",weblio:"协助添加 Weblio 辞書"},contact_author:"联系作者",donate:"支持项目",instructions:"使用说明",report_issue:"反馈问题"},form:{url_error:"不正确的超链接格式。",number_error:"不正确的数字"},preload:{title:"预先加载",auto:"自动查词",auto_help:"查词面板出现时自动搜索预加载内容。",clipboard:"剪贴板",help:"查词面板出现时预先加载内容到搜索框。",selection:"页面划词"},locations:{CENTER:"居中",TOP:"上方",RIGHT:"右方",BOTTOM:"下方",LEFT:"左方",TOP_LEFT:"左上",TOP_RIGHT:"右上",BOTTOM_LEFT:"左下",BOTTOM_RIGHT:"右下"},import_export_help:"设定已通过浏览器自动同步,也可以手动导入导出。备份为明文保存,对安全性有要求的请自行加密。",import:{title:"导入设定",error:{title:"导入失败",parse:"备份解析失败,格式不正确。",load:"备份加载失败,浏览器无法获得本地备份。",empty:"备份中没有发现有效数据。"}},export:{title:"导出设定",error:{title:"导出失败",empty:"没有设置可以导出。",parse:"设置解析失败,无法导出。"}},dictAuth:{description:"随着沙拉查词用户增多,如经常使用机器翻译,建议到官网申请帐号以获得更稳定的体验以及更准确的结果。以下帐号数据只会保留在浏览器中。",dictHelp:"见{词典}官网。",manage:"管理私用帐号"},third_party_privacy:"第三方隐私",third_party_privacy_help:"沙拉查词不会收集更多数据,但在查词时单词以及相关 cookies 数据会发送给第三方词典服务(与在该网站上查词一样),如果你不希望被该服务获取数据,请在「词典设置」中关闭相应词典。",third_party_privacy_extra:"本特性为沙拉查词核心功能,无法关闭。",permissions:{success:"申请权限成功",cancel_success:"取消权限成功",failed:"申请权限失败",cancelled:"申请权限被用户取消",missing:"缺少权限「{{permission}}」。请给予权限或者关闭相关功能。",clipboardRead:"读取剪贴板",clipboardRead_help:"快捷查词或者右上弹框设置预加载剪贴板时需要读取剪贴板权限。",clipboardWrite:"写入剪贴板",clipboardWrite_help:"机器翻译词典标题栏菜单复制原文译文或生词本导出到剪贴板需要写入剪贴板权限。"},unsupportedFeatures:{ff:"火狐尚不支持「{{feature}}」功能。"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/109.0c67a153.js b/plugins/saladict-ztools/ext-saladic/assets/109.0c67a153.js deleted file mode 100644 index 45639e84..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/109.0c67a153.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[109],{1321:function(t,n,r){"use strict";r.r(n),r.d(n,"chsToChz",(function(){return i}));const e=new Map([["与","與"],["丒","囟"],["专","專"],["丗","卅"],["业","業"],["丛","叢"],["东","東"],["丝","絲"],["両","兩"],["丢","丟"],["两","兩"],["严","嚴"],["丧","喪"],["个","個"],["丬","爿"],["丯","丰"],["临","臨"],["丶","⼂"],["为","為"],["丽","麗"],["举","舉"],["义","義"],["乌","烏"],["乐","樂"],["乔","喬"],["习","習"],["乡","鄉"],["书","書"],["买","買"],["乱","亂"],["亀","龜"],["亁","乾"],["争","爭"],["亏","虧"],["亘","亙"],["亚","亞"],["产","產"],["亩","畝"],["亲","親"],["亵","褻"],["亸","嚲"],["亻","人"],["亿","億"],["仅","僅"],["从","從"],["仑","崙"],["仓","倉"],["仪","儀"],["们","們"],["仮","假"],["众","眾"],["会","會"],["伛","傴"],["伞","傘"],["伟","偉"],["传","傳"],["伤","傷"],["伥","倀"],["伦","倫"],["伧","傖"],["伪","偽"],["伫","佇"],["体","體"],["佥","僉"],["侠","俠"],["侣","侶"],["侥","僥"],["侦","偵"],["侧","側"],["侨","僑"],["侩","儈"],["侪","儕"],["侬","儂"],["俣","俁"],["俦","儔"],["俨","儼"],["俩","倆"],["俪","儷"],["俭","儉"],["债","債"],["倾","傾"],["偬","傯"],["偻","僂"],["偾","僨"],["偿","償"],["傥","儻"],["傧","儐"],["储","儲"],["傩","儺"],["兎","兔"],["兑","兌"],["兖","兗"],["兪","俞"],["兰","蘭"],["关","關"],["兴","興"],["兹","茲"],["养","養"],["兽","獸"],["兾","糞"],["兿","藝"],["冁","囅"],["内","內"],["円","丹"],["冈","岡"],["册","冊"],["写","寫"],["军","軍"],["农","農"],["冝","宜"],["冦","寇"],["冧","霖"],["冨","富"],["冩","寫"],["冮","江"],["冯","馮"],["冲","沖"],["决","決"],["况","況"],["冸","泮"],["冺","泯"],["冻","凍"],["冿","津"],["净","淨"],["凁","涑"],["凂","浼"],["凃","涂"],["凄","淒"],["凉","涼"],["减","減"],["凑","湊"],["凒","溰"],["凓","溧"],["凕","溟"],["凖","準"],["凙","澤"],["凛","凜"],["凟","瀆"],["凤","鳳"],["凥","尻"],["処","處"],["凨","云"],["凫","鳧"],["凬","凰"],["凭","憑"],["凮","鳳"],["凯","凱"],["凴","憑"],["击","擊"],["凼","窞"],["凾","亟"],["凿","鑿"],["刄","刃"],["刅","刃"],["刋","刊"],["刍","芻"],["刘","劉"],["则","則"],["刚","剛"],["创","創"],["删","刪"],["刦","劫"],["刧","劫"],["别","別"],["刭","剄"],["刴","剁"],["刹","剎"],["刼","劫"],["刽","劊"],["刿","劌"],["剀","剴"],["剂","劑"],["剐","剮"],["剑","劍"],["剥","剝"],["剧","劇"],["剰","剩"],["劎","劍"],["劒","劍"],["劔","劍"],["劝","勸"],["办","辦"],["务","務"],["劢","勱"],["动","動"],["励","勵"],["劲","勁"],["劳","勞"],["労","勞"],["劵","卷"],["効","效"],["劽","裂"],["势","勢"],["勅","敕"],["勋","勛"],["勐","猛"],["勚","勩"],["勠","戮"],["勥","強"],["勧","勸"],["匀","勻"],["匦","匭"],["匮","匱"],["区","區"],["医","醫"],["华","華"],["协","協"],["单","單"],["卖","賣"],["単","單"],["卙","斟"],["卛","攣"],["卟","嚇"],["卢","盧"],["卤","鹵"],["卥","囟"],["卧","臥"],["卫","衛"],["却","卻"],["卺","巹"],["厅","廳"],["历","歷"],["厉","厲"],["压","壓"],["厌","厭"],["厕","廁"],["厛","廳"],["厠","廁"],["厢","廂"],["厣","厴"],["厦","廈"],["厨","廚"],["厩","廄"],["厮","廝"],["厰","廠"],["厳","嚴"],["厶","⼛"],["县","縣"],["叁","參"],["叄","參"],["叆","靉"],["叇","靆"],["双","雙"],["収","收"],["叏","發"],["叐","發"],["发","發"],["变","變"],["叙","敘"],["叠","疊"],["叧","另"],["叶","葉"],["号","號"],["叹","嘆"],["叽","嘰"],["吓","嚇"],["吕","呂"],["吖","嗄"],["吗","嗎"],["吣","唚"],["吨","噸"],["启","啟"],["吴","吳"],["吿","告"],["呋","咐"],["呐","吶"],["呑","吞"],["呒","嘸"],["呓","囈"],["呕","嘔"],["呖","嚦"],["呗","唄"],["员","員"],["呙","咼"],["呛","嗆"],["呜","嗚"],["呪","咒"],["咏","詠"],["咙","嚨"],["咛","嚀"],["咝","吱"],["咣","光"],["咤","吒"],["哌","呱"],["响","響"],["哐","匡"],["哑","啞"],["哒","噠"],["哓","嘵"],["哔","嗶"],["哕","噦"],["哗","嘩"],["哙","噲"],["哜","嚌"],["哝","噥"],["哟","喲"],["唝","嗊"],["唠","嘮"],["唡","啢"],["唢","嗩"],["唣","嗦"],["唤","喚"],["唿","呼"],["啧","嘖"],["啬","嗇"],["啭","囀"],["啰","囉"],["啴","嘽"],["啸","嘯"],["喷","噴"],["喹","奎"],["喽","嘍"],["喾","嚳"],["嗪","唚"],["嗫","囁"],["嗬","呵"],["嗳","噯"],["嗵","通"],["嘘","噓"],["嘞","咧"],["嘠","嘎"],["嘣","迸"],["嘤","嚶"],["嘨","嘯"],["嘭","膨"],["嘱","囑"],["嘷","嚎"],["噜","嚕"],["噻","塞"],["噼","劈"],["嚔","涕"],["嚢","囊"],["嚣","囂"],["嚯","謔"],["团","團"],["园","園"],["囱","囪"],["围","圍"],["囵","圇"],["国","國"],["图","圖"],["圆","圓"],["圣","聖"],["圹","壙"],["场","場"],["块","塊"],["坚","堅"],["坛","壇"],["坜","壢"],["坝","壩"],["坞","塢"],["坟","墳"],["坠","墜"],["垄","壟"],["垅","壟"],["垆","壚"],["垒","壘"],["垦","墾"],["垧","坰"],["垩","堊"],["垫","墊"],["垲","塏"],["垴","瑙"],["埘","塒"],["埚","堝"],["堑","塹"],["堕","墮"],["塡","填"],["塬","原"],["墙","牆"],["壮","壯"],["声","聲"],["壳","殼"],["壶","壺"],["壸","壼"],["夂","⼢"],["处","處"],["备","備"],["夊","⼢"],["够","夠"],["头","頭"],["夹","夾"],["夺","奪"],["奁","奩"],["奂","奐"],["奋","奮"],["奖","獎"],["奥","奧"],["妆","妝"],["妇","婦"],["妈","媽"],["妩","嫵"],["妪","嫗"],["妫","媯"],["姗","姍"],["姹","奼"],["娄","婁"],["娅","婭"],["娆","嬈"],["娇","嬌"],["娈","孌"],["娱","娛"],["娲","媧"],["娴","嫻"],["婳","嫿"],["婴","嬰"],["婵","嬋"],["婶","嬸"],["媪","媼"],["嫒","嬡"],["嫔","嬪"],["嫱","嬙"],["嬷","嬤"],["孙","孫"],["学","學"],["孪","孿"],["孶","孳"],["宝","寶"],["实","實"],["宠","寵"],["审","審"],["宪","憲"],["宫","宮"],["宽","寬"],["宾","賓"],["寝","寢"],["对","對"],["寻","尋"],["导","導"],["対","對"],["寿","壽"],["専","專"],["尅","剋"],["将","將"],["尓","爾"],["尔","爾"],["尘","塵"],["尝","嘗"],["尧","堯"],["尴","尷"],["尽","盡"],["层","層"],["屃","屭"],["屉","屜"],["届","屆"],["屛","屏"],["属","屬"],["屡","屢"],["屦","屨"],["屿","嶼"],["岁","歲"],["岂","豈"],["岖","嶇"],["岗","崗"],["岘","峴"],["岙","嶴"],["岚","嵐"],["岛","島"],["岭","嶺"],["岿","巋"],["峄","嶧"],["峡","峽"],["峣","嶢"],["峤","嶠"],["峥","崢"],["峦","巒"],["峯","峰"],["崂","嶗"],["崃","崍"],["崄","嶮"],["崭","嶄"],["崾","要"],["嵘","嶸"],["嵚","嶔"],["嵝","嶁"],["巄","巃"],["巅","巔"],["巌","巖"],["巓","巔"],["巩","鞏"],["币","幣"],["帅","帥"],["师","師"],["帏","幃"],["帐","帳"],["帜","幟"],["带","帶"],["帧","幀"],["帮","幫"],["帯","帶"],["帱","幬"],["帻","幘"],["帼","幗"],["幂","冪"],["幇","幫"],["幚","幫"],["幞","襆"],["幷","并"],["广","廣"],["庁","廳"],["広","麼"],["庄","莊"],["庅","麼"],["庆","慶"],["庐","廬"],["庑","廡"],["库","庫"],["应","應"],["庙","廟"],["庞","龐"],["废","廢"],["庼","廎"],["廏","廄"],["廐","廄"],["廪","廩"],["廴","⼵"],["廵","巡"],["开","開"],["异","異"],["弃","棄"],["弑","弒"],["张","張"],["弥","彌"],["弯","彎"],["弹","彈"],["强","強"],["归","歸"],["当","當"],["录","錄"],["彚","彙"],["彛","羿"],["彜","羿"],["彟","獲"],["彠","獲"],["彡","⼺"],["彦","彥"],["彻","徹"],["径","徑"],["徕","徠"],["徸","德"],["忄","心"],["忆","憶"],["忏","懺"],["忧","憂"],["忾","愾"],["怀","懷"],["态","態"],["怂","慫"],["怃","憮"],["怅","悵"],["怆","愴"],["怜","憐"],["总","總"],["怼","懟"],["怿","懌"],["恋","戀"],["恒","恆"],["恳","懇"],["恶","惡"],["恸","慟"],["恹","懨"],["恺","愷"],["恻","惻"],["恼","惱"],["恽","惲"],["悦","悅"],["悫","愨"],["悬","懸"],["悭","慳"],["悯","憫"],["惊","驚"],["惧","懼"],["惨","慘"],["惩","懲"],["惫","憊"],["惬","愜"],["惭","慚"],["惮","憚"],["惯","慣"],["惽","惛"],["愠","慍"],["愤","憤"],["愦","憒"],["慑","懾"],["慭","憖"],["懑","懣"],["懒","懶"],["懔","懍"],["懴","懺"],["戅","戇"],["戆","戇"],["戋","戔"],["戏","戲"],["戗","戧"],["战","戰"],["戝","敗"],["戦","戰"],["戬","戩"],["戯","戲"],["戱","戲"],["户","戶"],["戸","戶"],["扌","手"],["执","執"],["扩","擴"],["扪","捫"],["扫","掃"],["扬","揚"],["扰","擾"],["抅","拘"],["抚","撫"],["抛","拋"],["抟","摶"],["抠","摳"],["抡","掄"],["抢","搶"],["护","護"],["报","報"],["担","擔"],["拟","擬"],["拢","攏"],["拣","揀"],["拥","擁"],["拦","攔"],["拧","擰"],["拨","撥"],["择","擇"],["挚","摯"],["挛","攣"],["挜","掗"],["挝","撾"],["挞","撻"],["挟","挾"],["挠","撓"],["挡","擋"],["挢","撟"],["挣","掙"],["挤","擠"],["挥","揮"],["挦","撏"],["捞","撈"],["损","損"],["捡","撿"],["换","換"],["捣","搗"],["掳","擄"],["掴","摑"],["掷","擲"],["掸","撣"],["掺","摻"],["掼","摜"],["揸","喳"],["揽","攬"],["揿","撳"],["搀","攙"],["搁","擱"],["搂","摟"],["搃","摠"],["搅","攪"],["携","攜"],["摄","攝"],["摅","攄"],["摆","擺"],["摇","搖"],["摈","擯"],["摊","攤"],["撃","擊"],["撄","攖"],["撑","撐"],["撪","攆"],["撵","攆"],["撷","擷"],["撹","攪"],["撺","攛"],["擕","攜"],["擞","擻"],["擡","抬"],["擥","掔"],["擧","舉"],["擪","壓"],["攒","攢"],["攵","又"],["敇","敕"],["敌","敵"],["敛","斂"],["敮","歃"],["数","數"],["斉","齊"],["斋","齋"],["斎","齋"],["斓","斕"],["斩","斬"],["断","斷"],["旧","舊"],["时","時"],["旷","曠"],["旸","暘"],["昙","曇"],["昼","晝"],["昽","曨"],["显","顯"],["晋","晉"],["晓","曉"],["晔","曄"],["晕","暈"],["晖","暉"],["暂","暫"],["暧","曖"],["术","術"],["杀","殺"],["杂","雜"],["权","權"],["条","條"],["来","來"],["杨","楊"],["极","極"],["枞","樅"],["枢","樞"],["枣","棗"],["枥","櫪"],["枧","見"],["枨","棖"],["枪","槍"],["枫","楓"],["枭","梟"],["柠","檸"],["柽","檉"],["栀","梔"],["栅","柵"],["标","標"],["栈","棧"],["栉","櫛"],["栊","櫳"],["栋","棟"],["栌","櫨"],["栎","櫟"],["栏","欄"],["树","樹"],["样","樣"],["栾","欒"],["桊","棬"],["桠","椏"],["桡","橈"],["桢","楨"],["档","檔"],["桤","榿"],["桥","橋"],["桦","樺"],["桧","檜"],["桨","槳"],["桩","樁"],["梦","夢"],["梼","檮"],["梾","棶"],["检","檢"],["棂","欞"],["椁","槨"],["椟","櫝"],["椠","槧"],["椭","橢"],["楼","樓"],["楽","樂"],["榄","欖"],["榇","櫬"],["榈","櫚"],["榉","櫸"],["榘","矩"],["槚","檟"],["槛","檻"],["槟","檳"],["槠","櫧"],["横","橫"],["樯","檣"],["樱","櫻"],["橥","櫫"],["橱","櫥"],["橹","櫓"],["橼","櫞"],["檪","櫟"],["檫","察"],["欢","歡"],["欤","歟"],["欧","歐"],["歳","歲"],["歴","曆"],["歺","歲"],["歼","殲"],["殁","歿"],["殇","殤"],["残","殘"],["殒","殞"],["殓","殮"],["殚","殫"],["殡","殯"],["殱","殲"],["殴","毆"],["毁","毀"],["毂","轂"],["毕","畢"],["毙","斃"],["毡","氈"],["毵","毿"],["毶","鞠"],["気","氣"],["氢","氫"],["氩","氬"],["氲","氳"],["氵","水"],["氽","汆"],["汇","匯"],["汉","漢"],["污","汙"],["汤","湯"],["汹","洶"],["沟","溝"],["没","沒"],["沣","灃"],["沤","漚"],["沥","瀝"],["沦","淪"],["沧","滄"],["沨","渢"],["沩","溈"],["沪","滬"],["沵","濔"],["泞","濘"],["泪","淚"],["泶","澩"],["泷","瀧"],["泸","瀘"],["泺","濼"],["泻","瀉"],["泼","潑"],["泽","澤"],["泾","涇"],["洁","潔"],["浃","浹"],["浅","淺"],["浆","漿"],["浇","澆"],["浈","湞"],["浊","濁"],["测","測"],["浍","澮"],["济","濟"],["浏","瀏"],["浐","滻"],["浑","渾"],["浒","滸"],["浓","濃"],["浔","潯"],["浕","濜"],["浜","濱"],["涙","淚"],["涛","濤"],["涝","澇"],["涞","淶"],["涟","漣"],["涡","渦"],["涣","渙"],["涤","滌"],["润","潤"],["涧","澗"],["涨","漲"],["涩","澀"],["淀","澱"],["渊","淵"],["渌","淥"],["渍","漬"],["渎","瀆"],["渐","漸"],["渑","澠"],["渔","漁"],["渖","瀋"],["渗","滲"],["温","溫"],["湼","涅"],["湾","灣"],["湿","濕"],["溃","潰"],["溅","濺"],["溆","漵"],["溇","漊"],["滙","匯"],["滚","滾"],["滝","瀧"],["滞","滯"],["滟","灩"],["滠","灄"],["满","滿"],["滢","瀅"],["滤","濾"],["滥","濫"],["滦","灤"],["滨","濱"],["滩","灘"],["滪","澦"],["漑","溉"],["潆","瀠"],["潇","瀟"],["潋","瀲"],["潍","濰"],["潜","潛"],["潴","瀦"],["澜","瀾"],["濑","瀨"],["濒","瀕"],["灎","灩"],["灏","灝"],["灔","灩"],["灜","瀛"],["灧","灩"],["灬","火"],["灭","滅"],["灯","燈"],["灵","靈"],["灾","災"],["灿","燦"],["炀","煬"],["炉","爐"],["炖","燉"],["炜","煒"],["炝","熗"],["点","點"],["炼","煉"],["炽","熾"],["烁","爍"],["烂","爛"],["烃","烴"],["烛","燭"],["烟","煙"],["烦","煩"],["烧","燒"],["烨","燁"],["烩","燴"],["烫","燙"],["烬","燼"],["热","熱"],["焕","煥"],["焖","燜"],["焘","燾"],["煅","煆"],["煳","糊"],["煺","退"],["熘","溜"],["爱","愛"],["爲","為"],["爷","爺"],["牍","牘"],["牜","牛"],["牦","犛"],["牵","牽"],["牺","犧"],["犊","犢"],["犟","強"],["犭","犬"],["状","狀"],["犷","獷"],["犸","馬"],["犹","猶"],["狈","狽"],["狍","包"],["狝","獮"],["狞","獰"],["独","獨"],["狭","狹"],["狮","獅"],["狯","獪"],["狰","猙"],["狱","獄"],["狲","猻"],["猃","獫"],["猎","獵"],["猕","獼"],["猡","玀"],["猪","豬"],["猫","貓"],["猬","蝟"],["献","獻"],["獭","獺"],["玑","璣"],["玙","璵"],["玚","瑒"],["玛","瑪"],["玮","瑋"],["环","環"],["现","現"],["玱","瑲"],["玺","璽"],["珏","玨"],["珐","琺"],["珑","瓏"],["珰","璫"],["珱","瓔"],["珲","琿"],["琏","璉"],["琐","瑣"],["琼","瓊"],["瑶","瑤"],["瑷","璦"],["璎","瓔"],["瓒","瓚"],["瓯","甌"],["産","產"],["电","電"],["画","畫"],["畅","暢"],["畲","畬"],["畳","疊"],["畴","疇"],["畵","畫"],["疎","疏"],["疖","癤"],["疗","療"],["疟","瘧"],["疠","癘"],["疡","瘍"],["疬","癆"],["疮","瘡"],["疯","瘋"],["疴","痾"],["痈","癰"],["痉","痙"],["痖","啞"],["痨","癆"],["痩","瘦"],["痪","瘓"],["痫","癇"],["痬","瘍"],["瘅","癉"],["瘆","疹"],["瘗","瘞"],["瘘","瘺"],["瘪","癟"],["瘫","癱"],["瘾","癮"],["瘿","癭"],["癀","廣"],["癍","斑"],["癎","癇"],["癞","癩"],["癣","癬"],["癫","癲"],["発","發"],["皑","皚"],["皱","皺"],["皲","皸"],["盏","盞"],["盐","鹽"],["监","監"],["盖","蓋"],["盗","盜"],["盘","盤"],["県","縣"],["眍","區"],["眞","真"],["眦","眥"],["眬","矓"],["着","著"],["睁","睜"],["睐","睞"],["睑","瞼"],["瞒","瞞"],["瞩","矚"],["矤","病"],["矫","矯"],["矶","磯"],["矾","礬"],["矿","礦"],["砀","碭"],["码","碼"],["砖","磚"],["砗","硨"],["砚","硯"],["砜","風"],["砺","礪"],["砻","礱"],["砾","礫"],["础","礎"],["硁","硜"],["硕","碩"],["硖","硤"],["硗","磽"],["硙","磑"],["硚","礄"],["硷","鹼"],["碍","礙"],["碛","磧"],["碜","磣"],["碱","鹼"],["碹","宣"],["磙","袞"],["礻","示"],["礼","禮"],["祎","禕"],["祢","禰"],["祯","禎"],["祷","禱"],["祸","禍"],["禀","稟"],["禄","祿"],["禅","禪"],["离","離"],["秃","禿"],["秆","稈"],["积","積"],["称","稱"],["秽","穢"],["秾","穠"],["税","稅"],["稣","穌"],["稳","穩"],["穑","穡"],["穷","窮"],["窃","竊"],["窍","竅"],["窑","窯"],["窜","竄"],["窝","窩"],["窥","窺"],["窦","竇"],["窭","窶"],["竖","豎"],["竜","龍"],["竞","競"],["笃","篤"],["笋","筍"],["笔","筆"],["笕","筧"],["笺","箋"],["笼","籠"],["笾","籩"],["筚","篳"],["筛","篩"],["筜","簹"],["筝","箏"],["筹","籌"],["签","簽"],["简","簡"],["箓","籙"],["箢","宛"],["箦","簀"],["箧","篋"],["箨","籜"],["箩","籮"],["箪","簞"],["箫","簫"],["篑","簣"],["篓","簍"],["篮","籃"],["篱","籬"],["簖","籪"],["籁","籟"],["籴","糴"],["类","類"],["籼","秈"],["粜","糶"],["粝","糲"],["粤","粵"],["粪","糞"],["粮","糧"],["糁","糝"],["糇","餱"],["糹","糸"],["紧","緊"],["絵","繪"],["絶","絕"],["絷","縶"],["綘","健"],["継","繼"],["続","續"],["緜","綿"],["縂","總"],["縄","繩"],["繋","繫"],["繍","繡"],["纟","糸"],["纠","糾"],["纡","紆"],["红","紅"],["纣","紂"],["纤","纖"],["纥","紇"],["约","約"],["级","級"],["纨","紈"],["纩","纊"],["纪","紀"],["纫","紉"],["纬","緯"],["纭","紜"],["纮","紘"],["纯","純"],["纰","紕"],["纱","紗"],["纲","綱"],["纳","納"],["纴","紝"],["纵","縱"],["纶","綸"],["纷","紛"],["纸","紙"],["纹","紋"],["纺","紡"],["纻","紵"],["纼","紖"],["纽","紐"],["纾","紓"],["线","線"],["绀","紺"],["绁","紲"],["绂","紱"],["练","練"],["组","組"],["绅","紳"],["细","細"],["织","織"],["终","終"],["绉","縐"],["绊","絆"],["绋","紼"],["绌","絀"],["绍","紹"],["绎","繹"],["经","經"],["绐","紿"],["绑","綁"],["绒","絨"],["结","結"],["绔","褲"],["绕","繞"],["绖","絰"],["绗","絎"],["绘","繪"],["给","給"],["绚","絢"],["绛","絳"],["络","絡"],["绝","絕"],["绞","絞"],["统","統"],["绠","綆"],["绡","綃"],["绢","絹"],["绣","繡"],["绤","綌"],["绥","綏"],["绦","絛"],["继","繼"],["绨","綈"],["绩","績"],["绪","緒"],["绫","綾"],["续","續"],["绮","綺"],["绯","緋"],["绰","綽"],["绱","鞜"],["绲","緄"],["绳","繩"],["维","維"],["绵","綿"],["绶","綬"],["绷","繃"],["绸","綢"],["绹","綯"],["绺","綹"],["绻","綣"],["综","綜"],["绽","綻"],["绾","綰"],["绿","綠"],["缀","綴"],["缁","緇"],["缂","緙"],["缃","緗"],["缄","緘"],["缅","緬"],["缆","纜"],["缇","緹"],["缈","緲"],["缉","緝"],["缊","縕"],["缋","繢"],["缌","緦"],["缍","綞"],["缎","緞"],["缏","緶"],["缐","線"],["缑","緱"],["缒","縋"],["缓","緩"],["缔","締"],["缕","縷"],["编","編"],["缗","緡"],["缘","緣"],["缙","縉"],["缚","縛"],["缛","縟"],["缜","縝"],["缝","縫"],["缞","縗"],["缟","縞"],["缠","纏"],["缡","縭"],["缢","縊"],["缣","縑"],["缤","繽"],["缥","縹"],["缦","縵"],["缧","縲"],["缨","纓"],["缩","縮"],["缪","繆"],["缫","繅"],["缬","纈"],["缭","繚"],["缮","繕"],["缯","繒"],["缰","韁"],["缱","繾"],["缲","繰"],["缳","繯"],["缴","繳"],["缵","纘"],["罂","罌"],["罗","羅"],["罚","罰"],["罢","罷"],["罴","羆"],["羁","羈"],["羗","羌"],["羟","羥"],["羡","羨"],["羣","群"],["羮","羹"],["翘","翹"],["翙","翽"],["翚","翬"],["耢","勞"],["耥","尚"],["耧","耬"],["耸","聳"],["耻","恥"],["聂","聶"],["聋","聾"],["职","職"],["聍","聹"],["联","聯"],["聩","聵"],["聪","聰"],["肀","聿"],["肃","肅"],["肠","腸"],["肤","膚"],["肷","欠"],["肾","腎"],["肿","腫"],["胀","脹"],["胁","脅"],["胆","膽"],["胧","朧"],["胨","東"],["胪","臚"],["胫","脛"],["胶","膠"],["脉","脈"],["脍","膾"],["脏","髒"],["脐","臍"],["脑","腦"],["脓","膿"],["脔","臠"],["脚","腳"],["脱","脫"],["脲","反"],["脶","腡"],["脸","臉"],["腭","齶"],["腻","膩"],["腽","膃"],["腾","騰"],["膑","臏"],["臓","摹"],["臜","臢"],["舆","輿"],["舣","艤"],["舰","艦"],["舱","艙"],["舻","艫"],["艰","艱"],["艹","艸"],["艺","藝"],["节","節"],["芈","羋"],["芗","薌"],["芜","蕪"],["芦","蘆"],["苁","蓯"],["苇","葦"],["苋","莧"],["苌","萇"],["苍","蒼"],["苎","苧"],["苏","蘇"],["苘","萵"],["茎","莖"],["茏","蘢"],["茑","蔦"],["茔","塋"],["茕","煢"],["茧","繭"],["荆","荊"],["荚","莢"],["荛","蕘"],["荜","蓽"],["荞","蕎"],["荟","薈"],["荠","薺"],["荡","蕩"],["荣","榮"],["荤","葷"],["荥","滎"],["荦","犖"],["荧","熒"],["荨","蕁"],["荩","藎"],["荪","蓀"],["荫","蔭"],["荬","賣"],["荭","葒"],["荮","紂"],["药","藥"],["莅","蒞"],["莱","萊"],["莲","蓮"],["莳","蒔"],["莴","萵"],["获","獲"],["莸","蕕"],["莹","瑩"],["莺","鶯"],["莼","蓴"],["菭","恰"],["萚","蘀"],["萝","蘿"],["萤","螢"],["营","營"],["萦","縈"],["萧","蕭"],["萨","薩"],["葱","蔥"],["蒇","蕆"],["蒉","蕢"],["蒋","蔣"],["蒌","蔞"],["蓝","藍"],["蓟","薊"],["蓠","蘺"],["蓦","驀"],["蔷","薔"],["蔹","蘞"],["蔺","藺"],["蔼","藹"],["蕲","蘄"],["蕴","蘊"],["薮","藪"],["藁","槁"],["藓","蘚"],["蘖","蘗"],["虏","虜"],["虑","慮"],["虚","虛"],["虬","虯"],["虮","蟣"],["虽","雖"],["虾","蝦"],["虿","蠆"],["蚀","蝕"],["蚁","蟻"],["蚂","螞"],["蚕","蠶"],["蚬","蜆"],["蛊","蠱"],["蛎","蠣"],["蛏","蟶"],["蛮","蠻"],["蛰","蟄"],["蛱","蛺"],["蛲","蟯"],["蛳","螄"],["蛴","蠐"],["蜕","蛻"],["蜖","汀"],["蜗","蝸"],["蝇","蠅"],["蝈","蟈"],["蝉","蟬"],["蝼","螻"],["蝾","蠑"],["蝿","蠅"],["螀","螿"],["螨","顢"],["蟏","蠨"],["蟮","蟺"],["蠎","蟒"],["衅","釁"],["衔","銜"],["衤","衣"],["补","補"],["衬","襯"],["衮","袞"],["袄","襖"],["袅","裊"],["袆","褘"],["袭","襲"],["袯","襏"],["袴","褲"],["装","裝"],["裆","襠"],["裈","褌"],["裢","褳"],["裣","襝"],["裤","褲"],["裥","襉"],["褛","褸"],["褴","襤"],["襕","襴"],["覇","霸"],["覚","覺"],["覧","覽"],["覩","睹"],["见","見"],["观","觀"],["规","規"],["觅","覓"],["视","視"],["觇","覘"],["览","覽"],["觉","覺"],["觊","覬"],["觋","覡"],["觌","覿"],["觎","覦"],["觏","覯"],["觐","覲"],["觑","覷"],["觗","觝"],["觞","觴"],["触","觸"],["觯","觶"],["訡","吟"],["詟","讋"],["詤","謊"],["誀","浴"],["誉","譽"],["誊","謄"],["説","說"],["読","讀"],["讁","謫"],["讠","言"],["计","計"],["订","訂"],["讣","訃"],["认","認"],["讥","譏"],["讦","訐"],["讧","訌"],["讨","討"],["让","讓"],["讪","訕"],["讫","訖"],["训","訓"],["议","議"],["讯","訊"],["记","記"],["讱","訒"],["讲","講"],["讳","諱"],["讴","謳"],["讵","詎"],["讶","訝"],["讷","訥"],["许","許"],["讹","訛"],["论","論"],["讼","訟"],["讽","諷"],["设","設"],["访","訪"],["诀","訣"],["证","證"],["诂","詁"],["诃","訶"],["评","評"],["诅","詛"],["识","識"],["诇","詗"],["诈","詐"],["诉","訴"],["诊","診"],["诋","詆"],["诌","謅"],["词","詞"],["诎","詘"],["诏","詔"],["诐","詖"],["译","譯"],["诒","詒"],["诓","誆"],["诔","誄"],["试","試"],["诖","詿"],["诗","詩"],["诘","詰"],["诙","詼"],["诚","誠"],["诛","誅"],["诜","詵"],["话","話"],["诞","誕"],["诟","詬"],["诠","詮"],["诡","詭"],["询","詢"],["诣","詣"],["诤","諍"],["该","該"],["详","詳"],["诧","詫"],["诨","諢"],["诩","詡"],["诪","譸"],["诫","誡"],["诬","誣"],["语","語"],["诮","誚"],["误","誤"],["诰","誥"],["诱","誘"],["诲","誨"],["诳","誑"],["说","說"],["诵","誦"],["诶","誒"],["请","請"],["诸","諸"],["诹","諏"],["诺","諾"],["读","讀"],["诼","諑"],["诽","誹"],["课","課"],["诿","諉"],["谀","諛"],["谁","誰"],["谂","諗"],["调","調"],["谄","諂"],["谅","諒"],["谆","諄"],["谇","誶"],["谈","談"],["谊","誼"],["谋","謀"],["谌","諶"],["谍","諜"],["谎","謊"],["谏","諫"],["谐","諧"],["谑","謔"],["谒","謁"],["谓","謂"],["谔","諤"],["谕","諭"],["谖","諼"],["谗","讒"],["谘","諮"],["谙","諳"],["谚","諺"],["谛","諦"],["谜","謎"],["谝","諞"],["谞","住"],["谟","謨"],["谠","讜"],["谡","謖"],["谢","謝"],["谣","謠"],["谤","謗"],["谥","謚"],["谦","謙"],["谧","謐"],["谨","謹"],["谩","謾"],["谪","謫"],["谫","譾"],["谬","謬"],["谭","譚"],["谮","譖"],["谯","譙"],["谰","讕"],["谱","譜"],["谲","譎"],["谳","讞"],["谴","譴"],["谵","譫"],["谶","讖"],["豮","豶"],["貭","亍"],["貮","貳"],["賍","贓"],["賎","賤"],["賖","賒"],["賘","髒"],["贋","贗"],["贘","償"],["贝","貝"],["贞","貞"],["负","負"],["贡","貢"],["财","財"],["责","責"],["贤","賢"],["败","敗"],["账","賬"],["货","貨"],["质","質"],["贩","販"],["贪","貪"],["贫","貧"],["贬","貶"],["购","購"],["贮","貯"],["贯","貫"],["贰","貳"],["贱","賤"],["贲","賁"],["贳","貰"],["贴","貼"],["贵","貴"],["贶","貺"],["贷","貸"],["贸","貿"],["费","費"],["贺","賀"],["贻","貽"],["贼","賊"],["贽","贄"],["贾","賈"],["贿","賄"],["赀","貲"],["赁","賃"],["赂","賂"],["赃","贓"],["资","資"],["赅","賅"],["赆","贐"],["赇","賕"],["赈","賑"],["赉","賚"],["赊","賒"],["赋","賦"],["赌","賭"],["赍","齎"],["赎","贖"],["赏","賞"],["赐","賜"],["赑","贔"],["赒","賙"],["赓","賡"],["赔","賠"],["赖","賴"],["赗","賵"],["赘","贅"],["赙","賻"],["赚","賺"],["赛","賽"],["赜","賾"],["赝","贗"],["赞","贊"],["赟","贇"],["赠","贈"],["赡","贍"],["赢","贏"],["赣","贛"],["赪","赬"],["赵","趙"],["趋","趨"],["趱","趲"],["趸","躉"],["跃","躍"],["跄","蹌"],["跞","躒"],["践","踐"],["跶","躂"],["跷","蹺"],["跸","蹕"],["跹","躚"],["跻","躋"],["踌","躊"],["踪","蹤"],["踬","躓"],["踯","躑"],["蹑","躡"],["蹒","蹣"],["蹰","躕"],["蹿","躥"],["躏","躪"],["躜","躦"],["躯","軀"],["车","車"],["轧","軋"],["轨","軌"],["轩","軒"],["轪","軑"],["轫","軔"],["转","轉"],["轭","軛"],["轮","輪"],["软","軟"],["轰","轟"],["轱","古"],["轲","軻"],["轳","轤"],["轴","軸"],["轵","軹"],["轶","軼"],["轷","乎"],["轸","軫"],["轹","轢"],["轺","軺"],["轻","輕"],["轼","軾"],["载","載"],["轾","輊"],["轿","轎"],["辀","輈"],["辁","輇"],["辂","輅"],["较","較"],["辄","輒"],["辅","輔"],["辆","輛"],["辇","輦"],["辈","輩"],["辉","輝"],["辊","輥"],["辋","輞"],["辌","輬"],["辍","輟"],["辎","輜"],["辏","輳"],["辐","輻"],["辑","輯"],["辒","轀"],["输","輸"],["辔","轡"],["辕","轅"],["辖","轄"],["辗","輾"],["辘","轆"],["辙","轍"],["辚","轔"],["辞","辭"],["辩","辯"],["辫","辮"],["辬","辨"],["边","邊"],["辽","遼"],["达","達"],["迁","遷"],["过","過"],["迈","邁"],["运","運"],["还","還"],["这","這"],["进","進"],["远","遠"],["违","違"],["连","連"],["迟","遲"],["迩","邇"],["迳","逕"],["迹","跡"],["选","選"],["逊","遜"],["递","遞"],["逦","邐"],["逻","邏"],["遗","遺"],["遥","遙"],["邓","鄧"],["邝","鄺"],["邬","鄔"],["邮","郵"],["邹","鄒"],["邺","鄴"],["邻","鄰"],["郄","卻"],["郏","郟"],["郐","鄶"],["郑","鄭"],["郓","鄆"],["郦","酈"],["郧","鄖"],["郷","鄉"],["郸","鄲"],["鄊","鄉"],["鄕","鄉"],["鄷","酆"],["酝","醞"],["酦","醱"],["酱","醬"],["酽","釅"],["酾","釃"],["酿","釀"],["释","釋"],["釡","斧"],["鉴","鑒"],["銮","鑾"],["錾","鏨"],["鎻","鎖"],["钅","金"],["钆","釓"],["钇","釔"],["针","針"],["钉","釘"],["钊","釗"],["钋","釙"],["钌","釕"],["钍","釷"],["钏","釧"],["钐","釤"],["钑","鈒"],["钒","釩"],["钓","釣"],["钔","鍆"],["钕","釹"],["钖","鍚"],["钗","釵"],["钘","鈃"],["钙","鈣"],["钚","鈽"],["钛","鈦"],["钜","鉅"],["钝","鈍"],["钞","鈔"],["钟","鐘"],["钠","鈉"],["钡","鋇"],["钢","鋼"],["钣","鈑"],["钤","鈐"],["钥","鑰"],["钦","欽"],["钧","鈞"],["钨","鎢"],["钩","鉤"],["钪","鈧"],["钫","鈁"],["钬","鈥"],["钮","鈕"],["钯","鈀"],["钰","鈺"],["钱","錢"],["钲","鉦"],["钳","鉗"],["钴","鈷"],["钵","缽"],["钶","鈳"],["钸","鈽"],["钹","鈸"],["钺","鉞"],["钻","鑽"],["钼","鉬"],["钽","鉭"],["钾","鉀"],["钿","鈿"],["铀","鈾"],["铁","鐵"],["铂","鉑"],["铃","鈴"],["铄","鑠"],["铅","鉛"],["铆","鉚"],["铈","鈰"],["铉","鉉"],["铊","鉈"],["铋","鉍"],["铌","鈮"],["铍","鈹"],["铎","鐸"],["铏","鉶"],["铐","銬"],["铑","銠"],["铒","鉺"],["铓","鋩"],["铔","錏"],["铕","銪"],["铖","鋮"],["铗","鋏"],["铘","邪"],["铙","鐃"],["铚","銍"],["铛","鐺"],["铜","銅"],["铝","鋁"],["铞","吊"],["铟","銦"],["铠","鎧"],["铡","鍘"],["铢","銖"],["铣","銑"],["铤","鋌"],["铥","銩"],["铦","銛"],["铧","鏵"],["铨","銓"],["铩","鎩"],["铪","鉿"],["铫","銚"],["铬","鉻"],["铭","銘"],["铮","錚"],["铯","銫"],["铰","鉸"],["铱","銥"],["铲","鏟"],["铳","銃"],["铴","鐋"],["铵","銨"],["银","銀"],["铷","銣"],["铸","鑄"],["铹","鐒"],["铺","鋪"],["铻","鋙"],["铼","錸"],["铽","鋱"],["链","鏈"],["铿","鏗"],["销","銷"],["锁","鎖"],["锂","鋰"],["锃","呈"],["锄","鋤"],["锅","鍋"],["锆","鋯"],["锇","鋨"],["锈","鏽"],["锉","銼"],["锊","鋝"],["锋","鋒"],["锌","鋅"],["锍","琉"],["锎","鉲"],["锏","閒"],["锐","銳"],["锑","銻"],["锒","鋃"],["锓","鋟"],["锔","鋦"],["锕","錒"],["锖","錆"],["锗","鍺"],["锘","若"],["错","錯"],["锚","錨"],["锛","錛"],["锜","錡"],["锝","鎝"],["锞","錁"],["锟","錕"],["锠","琛"],["锡","錫"],["锢","錮"],["锣","鑼"],["锤","錘"],["锥","錐"],["锦","錦"],["锧","鑕"],["锨","杴"],["锪","忽"],["锫","培"],["锬","錟"],["锭","錠"],["键","鍵"],["锯","鋸"],["锰","錳"],["锱","錙"],["锲","鍥"],["锴","鍇"],["锵","鏘"],["锶","鍶"],["锷","鍔"],["锸","鍤"],["锹","鍬"],["锺","鍾"],["锻","鍛"],["锼","鎪"],["锽","鍠"],["锾","鍰"],["锿","鑀"],["镀","鍍"],["镁","鎂"],["镂","鏤"],["镃","鎡"],["镄","鐨"],["镅","鋂"],["镆","鏌"],["镇","鎮"],["镈","鎛"],["镉","鎘"],["镊","鑷"],["镋","钂"],["镌","鐫"],["镍","鎳"],["镎","拿"],["镏","鎦"],["镐","鎬"],["镑","鎊"],["镒","鎰"],["镓","鎵"],["镔","鑌"],["镕","鎔"],["镖","鏢"],["镗","鏜"],["镘","鏝"],["镙","鏍"],["镛","鏞"],["镜","鏡"],["镝","鏑"],["镞","鏃"],["镟","鏇"],["镠","鏐"],["镡","鐔"],["镢","钁"],["镣","鐐"],["镤","鏷"],["镥","魯"],["镧","鑭"],["镨","鐠"],["镩","串"],["镪","鏹"],["镫","鐙"],["镬","鑊"],["镭","鐳"],["镮","鐶"],["镯","鐲"],["镰","鐮"],["镱","鐿"],["镲","察"],["镳","鑣"],["镴","鑞"],["镵","鑱"],["镶","鑲"],["长","長"],["閲","閱"],["门","門"],["闩","閂"],["闪","閃"],["闫","閆"],["闬","閈"],["闭","閉"],["问","問"],["闯","闖"],["闰","閏"],["闱","闈"],["闲","閒"],["闳","閎"],["间","間"],["闵","閔"],["闶","閌"],["闷","悶"],["闸","閘"],["闹","鬧"],["闺","閨"],["闻","聞"],["闼","闥"],["闽","閩"],["闾","閭"],["闿","闓"],["阀","閥"],["阁","閣"],["阂","閡"],["阃","閫"],["阄","鬮"],["阅","閱"],["阆","閬"],["阇","闍"],["阈","閾"],["阉","閹"],["阊","閶"],["阋","鬩"],["阌","閿"],["阍","閽"],["阎","閻"],["阏","閼"],["阐","闡"],["阑","闌"],["阒","闃"],["阓","闠"],["阔","闊"],["阕","闋"],["阖","闔"],["阗","闐"],["阘","闒"],["阙","闕"],["阚","闞"],["阛","闤"],["阝","阜"],["队","隊"],["阳","陽"],["阴","陰"],["阵","陣"],["阶","階"],["际","際"],["陆","陸"],["陇","隴"],["陈","陳"],["陉","陘"],["陕","陝"],["陧","隉"],["陨","隕"],["险","險"],["隂","陰"],["隌","暗"],["随","隨"],["隐","隱"],["隠","隱"],["隷","隸"],["隽","雋"],["难","難"],["雏","雛"],["雠","讎"],["雳","靂"],["雾","霧"],["霁","霽"],["霊","靈"],["霭","靄"],["靓","靚"],["静","靜"],["靥","靨"],["鞑","韃"],["鞒","轎"],["鞯","韉"],["鞲","韝"],["鞽","轎"],["韦","韋"],["韧","韌"],["韨","韍"],["韩","韓"],["韪","韙"],["韫","韞"],["韬","韜"],["韯","籤"],["韲","齋"],["韵","韻"],["顋","腮"],["顔","顏"],["顕","顯"],["页","頁"],["顶","頂"],["顷","頃"],["顸","頇"],["项","項"],["顺","順"],["须","須"],["顼","頊"],["顽","頑"],["顾","顧"],["顿","頓"],["颀","頎"],["颁","頒"],["颂","頌"],["颃","頏"],["预","預"],["颅","顱"],["领","領"],["颇","頗"],["颈","頸"],["颉","頡"],["颊","頰"],["颋","頲"],["颌","頜"],["颍","潁"],["颎","熲"],["颏","頦"],["颐","頤"],["频","頻"],["颓","頹"],["颔","頷"],["颕","穎"],["颖","穎"],["颗","顆"],["题","題"],["颙","顒"],["颚","顎"],["颛","顓"],["颜","顏"],["额","額"],["颞","顳"],["颟","顢"],["颠","顛"],["颡","顙"],["颢","顥"],["颣","纇"],["颤","顫"],["颥","須"],["颦","顰"],["颧","顴"],["颷","飆"],["风","風"],["飏","颺"],["飐","颭"],["飑","颮"],["飒","颯"],["飓","颶"],["飔","颸"],["飕","颼"],["飖","颻"],["飗","飀"],["飘","飄"],["飙","飆"],["飚","飆"],["飞","飛"],["飨","饗"],["飬","養"],["飮","飲"],["飱","餐"],["餍","饜"],["饣","食"],["饤","飣"],["饥","飢"],["饦","飥"],["饧","餳"],["饨","飩"],["饩","餼"],["饪","飪"],["饫","飫"],["饬","飭"],["饭","飯"],["饮","飲"],["饯","餞"],["饰","飾"],["饱","飽"],["饲","飼"],["饴","飴"],["饵","餌"],["饶","饒"],["饷","餉"],["饺","餃"],["饼","餅"],["饽","餑"],["饾","餖"],["饿","餓"],["馀","餘"],["馁","餒"],["馂","餕"],["馄","餛"],["馅","餡"],["馆","館"],["馇","查"],["馈","饋"],["馉","稹"],["馊","餿"],["馋","饞"],["馌","饁"],["馍","饃"],["馎","餺"],["馏","餾"],["馐","饈"],["馑","饉"],["馒","饅"],["馓","饊"],["馔","饌"],["馕","囊"],["马","馬"],["驭","馭"],["驮","馱"],["驯","馴"],["驰","馳"],["驱","驅"],["驲","馹"],["驳","駁"],["驴","驢"],["驵","駔"],["驶","駛"],["驷","駟"],["驸","駙"],["驹","駒"],["驺","騶"],["驻","駐"],["驼","駝"],["驽","駑"],["驾","駕"],["驿","驛"],["骀","駘"],["骁","驍"],["骂","罵"],["骃","駰"],["骄","驕"],["骅","驊"],["骆","駱"],["骇","駭"],["骈","駢"],["骊","驪"],["骋","騁"],["验","驗"],["骍","騂"],["骎","駸"],["骏","駿"],["骐","騏"],["骑","騎"],["骒","騍"],["骓","騅"],["骕","驌"],["骖","驂"],["骗","騙"],["骘","騭"],["骙","騤"],["骚","騷"],["骛","騖"],["骜","驁"],["骝","騮"],["骞","騫"],["骟","騸"],["骠","驃"],["骡","騾"],["骢","驄"],["骣","驏"],["骤","驟"],["骥","驥"],["骦","驦"],["骧","驤"],["髅","髏"],["髋","髖"],["髌","髕"],["鬓","鬢"],["魇","魘"],["魉","魎"],["鱼","魚"],["鱿","魷"],["鲀","魨"],["鲁","魯"],["鲂","魴"],["鲅","鱍"],["鲆","平"],["鲇","占"],["鲈","鱸"],["鲊","鮓"],["鲋","鮒"],["鲍","鮑"],["鲎","鱟"],["鲐","鮐"],["鲑","鮭"],["鲒","鮚"],["鲔","鮪"],["鲕","鮞"],["鲖","鮦"],["鲙","鱠"],["鲚","鱭"],["鲛","鮫"],["鲜","鮮"],["鲞","鯗"],["鲟","鱘"],["鲠","鯁"],["鲡","鱺"],["鲢","鰱"],["鲣","鰹"],["鲤","鯉"],["鲥","鰣"],["鲦","鰷"],["鲧","鯀"],["鲨","鯊"],["鲩","鯇"],["鲫","鯽"],["鲭","鯖"],["鲮","鯪"],["鲰","鯫"],["鲱","鯡"],["鲲","鯤"],["鲳","鯧"],["鲴","固"],["鲵","鯢"],["鲶","鯰"],["鲷","鯛"],["鲸","鯨"],["鲺","虱"],["鲻","鯔"],["鲼","賁"],["鲽","鰈"],["鲿","鱨"],["鳀","鯷"],["鳃","鰓"],["鳄","鱷"],["鳅","鰍"],["鳆","鰒"],["鳇","鰉"],["鳊","扁"],["鳋","蚤"],["鳌","鰲"],["鳍","鰭"],["鳏","鰥"],["鳐","鰩"],["鳒","鰜"],["鳔","鰾"],["鳕","鱈"],["鳖","鱉"],["鳗","鰻"],["鳘","鱉"],["鳙","庸"],["鳛","鰼"],["鳜","鱖"],["鳝","鱔"],["鳞","鱗"],["鳟","鱒"],["鳡","鰲"],["鳢","鱧"],["鳣","鱣"],["鸟","鳥"],["鸠","鳩"],["鸡","雞"],["鸢","鳶"],["鸣","鳴"],["鸤","鳲"],["鸥","鷗"],["鸦","鴉"],["鸧","鶬"],["鸨","鴇"],["鸩","鴆"],["鸪","鴣"],["鸬","鸕"],["鸭","鴨"],["鸮","鴞"],["鸯","鴦"],["鸰","鴒"],["鸱","鴟"],["鸲","鴝"],["鸳","鴛"],["鸵","鴕"],["鸶","鷥"],["鸷","鷙"],["鸹","鴰"],["鸺","鵂"],["鸼","鵃"],["鸽","鴿"],["鸾","鸞"],["鸿","鴻"],["鹁","鵓"],["鹂","鸝"],["鹃","鵑"],["鹄","鵠"],["鹅","鵝"],["鹆","鵒"],["鹇","鷳"],["鹈","鵜"],["鹉","鵡"],["鹊","鵲"],["鹋","苗"],["鹌","鵪"],["鹎","鵯"],["鹏","鵬"],["鹑","鶉"],["鹒","鶊"],["鹓","鵷"],["鹔","鷫"],["鹕","鶘"],["鹖","鶡"],["鹗","鶚"],["鹘","鶻"],["鹙","鶖"],["鹚","鶿"],["鹛","眉"],["鹜","鶩"],["鹝","鷊"],["鹞","鷂"],["鹠","鶹"],["鹡","鶺"],["鹢","鷁"],["鹣","鶼"],["鹤","鶴"],["鹥","鷖"],["鹦","鸚"],["鹧","鷓"],["鹨","鷚"],["鹩","鷯"],["鹪","鷦"],["鹫","鷲"],["鹬","鷸"],["鹭","鷺"],["鹯","鸇"],["鹰","鷹"],["鹱","獲"],["鹲","鸏"],["鹳","鸛"],["鹾","鹺"],["麦","麥"],["麸","麩"],["麹","麴"],["麺","麵"],["麽","麼"],["黄","黃"],["黉","黌"],["黒","黑"],["黙","默"],["黡","黶"],["黩","黷"],["黪","黲"],["黾","黽"],["鼋","黿"],["鼍","鼉"],["鼗","鞀"],["鼹","鼴"],["齄","皻"],["齐","齊"],["齑","齏"],["齿","齒"],["龀","齔"],["龁","齕"],["龂","齗"],["龃","齟"],["龄","齡"],["龅","齙"],["龆","齠"],["龇","齜"],["龈","齦"],["龉","齬"],["龊","齪"],["龋","齲"],["龌","齷"],["龙","龍"],["龚","龔"],["龛","龕"],["龟","龜"]]);function i(t){if(!t)return"";let n="";for(let r=0;r",p:"换行替换为

",space:"换行替换为空格"},page:"导出本页单词",placeholder:"替换符",htmlescape:{title:"对笔记内容中的 HTML 字符进行转义",text:"转义 HTML"},selected:"导出选中单词"},filterWord:{chs:"中文",eng:"英文",word:"单词",phrase:"词组和句子"},wordCount:{selected:"已选 {{count}} 项",selected_plural:"已选 {{count}} 项",total:"共 {{count}} 项",total_plural:"共 {{count}} 项"}}}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[110],{440:function(t,e,l){"use strict";l.r(e),l.d(e,"locale",(function(){return o}));const o={title:{history:"沙拉查词-查词记录",notebook:"沙拉查词-生词本"},localonly:"仅本地保存",column:{add:"添加",date:"日期",edit:"编辑",note:"笔记",source:"来源",trans:"翻译",word:"单词"},delete:{title:"删除单词",all:"删除所有单词",confirm:",确定?",page:"删除本页单词",selected:"删除选中单词"},export:{title:"导出文本",all:"导出所有单词",description:"编写生成模板,描述每条记录生成的样子:",explain:"如何配合 ANKI 等工具",gencontent:"代表的内容",linebreak:{default:"保留换行",n:"换行替换为 \\n",br:"换行替换为
",p:"换行替换为

",space:"换行替换为空格"},page:"导出本页单词",placeholder:"替换符",htmlescape:{title:"对笔记内容中的 HTML 字符进行转义",text:"转义 HTML"},selected:"导出选中单词"},filterWord:{chs:"中文",eng:"英文",word:"单词",phrase:"词组和句子"},wordCount:{selected:"已选 {{count}} 项",selected_plural:"已选 {{count}} 项",total:"共 {{count}} 项",total_plural:"共 {{count}} 项"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/124.2f4c10c5.js b/plugins/saladict-ztools/ext-saladic/assets/111.81921728.js similarity index 83% rename from plugins/saladict-ztools/ext-saladic/assets/124.2f4c10c5.js rename to plugins/saladict-ztools/ext-saladic/assets/111.81921728.js index 9d2900c4..45980298 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/124.2f4c10c5.js +++ b/plugins/saladict-ztools/ext-saladic/assets/111.81921728.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[124],{444:function(t,n,o){"use strict";o.r(n),o.d(n,"locale",(function(){return c}));const c={app:{off:"沙拉查詞已關閉(快捷查詞依然可用)",tempOff:"沙拉查詞已對當前標籤關閉(快捷查詞依然可用)",unsupported:"內嵌查字介面不支援此類頁面(獨立視窗查字介面依然可用)"}}}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[111],{441:function(t,n,o){"use strict";o.r(n),o.d(n,"locale",(function(){return c}));const c={app:{off:"沙拉查詞已關閉(快捷查詞依然可用)",tempOff:"沙拉查詞已對當前標籤關閉(快捷查詞依然可用)",unsupported:"內嵌查字介面不支援此類頁面(獨立視窗查字介面依然可用)"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/111.b29b12e3.js b/plugins/saladict-ztools/ext-saladic/assets/111.b29b12e3.js deleted file mode 100644 index 66d0cbbf..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/111.b29b12e3.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[111],{543:function(e,n,a){"use strict";a.r(n),a.d(n,"locale",(function(){return t}));const t={add:"Add",delete:"Delete",save:"Save",cancel:"Cancel",edit:"Edit",sort:"Sort",rename:"Rename",confirm:"Confirm",changes_confirm:"Changes not saved. Close anyway?",delete_confirm:"Deleted item completely?",max:"Max",min:"Min",name:"Name",none:"None",enable:"Enable",enabled:"Enabled",disabled:"Disabled",blacklist:"Blacklist",whitelist:"Whitelist",import:"Import",export:"Export",lang:{chinese:"Chinese",chs:"Chinese",deutsch:"Deutsch",eng:"English",english:"English",french:"French",japanese:"Japanese",korean:"Korean",matchAll:"Match every character",minor:"Minor",others:"Others",spanish:"Spanish"},unit:{mins:"minutes",ms:"ms",s:"s",word:"words"},note:{word:"Word",trans:"Translation",note:"Note",context:"Context",date:"Date",srcTitle:"Source Title",srcLink:"Source Link",srcFavicon:"Source Favicon"},profile:{daily:"Daily Mode",sentence:"Sentence Mode",default:"Default Mode",scholar:"Scholar Mode",translation:"Translation Mode",nihongo:"Japanese Mode"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/125.6d8ce444.js b/plugins/saladict-ztools/ext-saladic/assets/112.a17600ab.js similarity index 64% rename from plugins/saladict-ztools/ext-saladic/assets/125.6d8ce444.js rename to plugins/saladict-ztools/ext-saladic/assets/112.a17600ab.js index 439dddf7..ee07d501 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/125.6d8ce444.js +++ b/plugins/saladict-ztools/ext-saladic/assets/112.a17600ab.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[125],{557:function(n,e,t){"use strict";t.r(e),t.d(e,"locale",(function(){return a}));const a={add:"新增",delete:"删除",save:"保存",cancel:"取消",edit:"編輯",sort:"排序",rename:"重新命名",confirm:"確認",changes_confirm:"變更未儲存。確定關閉?",delete_confirm:"確定完全刪除該條目?",max:"最大",min:"最小",name:"名稱",none:"無",enable:"開啟",enabled:"已開啟",disabled:"已關閉",blacklist:"黑名單",whitelist:"白名單",import:"匯入",export:"匯出",lang:{chinese:"漢字",chs:"漢字",deutsch:"德文",eng:"英文",english:"英文",french:"法文",japanese:"日文",korean:"韓文",minor:"其它語言",matchAll:"所有的字元都必須匹配",others:"其它字元",spanish:"西班牙文"},unit:{mins:"分鐘",ms:"毫秒",s:"秒",word:"个"},note:{word:"單字",trans:"翻譯",note:"筆記",context:"上下文",date:"日期",srcTitle:"來源標題",srcLink:"來源連結",srcFavicon:"來源圖示"},profile:{daily:"日常模式",sentence:"句庫模式",default:"預設模式",scholar:"學術模式",translation:"翻譯模式",nihongo:"日語模式"}}}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[112],{442:function(e,n,t){"use strict";t.r(n),t.d(n,"locale",(function(){return a}));const a={add:"新增",delete:"删除",save:"保存",cancel:"取消",edit:"編輯",sort:"排序",rename:"重新命名",confirm:"確認",changes_confirm:"變更未儲存。確定關閉?",delete_confirm:"確定完全刪除該條目?",max:"最大",min:"最小",name:"名稱",none:"無",enable:"開啟",enabled:"已開啟",disabled:"已關閉",blacklist:"黑名單",whitelist:"白名單",import:"匯入",export:"匯出",lang:{chinese:"漢字",chs:"漢字",deutsch:"德文",eng:"英文",english:"英文",french:"法文",japanese:"日文",korean:"韓文",minor:"其它語言",matchAll:"所有的字元都必須匹配",others:"其它字元",spanish:"西班牙文"},unit:{mins:"分鐘",ms:"毫秒",s:"秒",word:"个"},note:{word:"單字",trans:"翻譯",note:"筆記",context:"上下文",contextCloze:"上下文填空",date:"日期",srcTitle:"來源標題",srcLink:"來源連結",srcFavicon:"來源圖示"},profile:{daily:"日常模式",sentence:"句庫模式",default:"預設模式",scholar:"學術模式",translation:"翻譯模式",nihongo:"日語模式"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/112.ea44aa6c.js b/plugins/saladict-ztools/ext-saladic/assets/112.ea44aa6c.js deleted file mode 100644 index e58cd90c..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/112.ea44aa6c.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[112],{544:function(e,o,t){"use strict";t.r(o),t.d(o,"locale",(function(){return a}));const a={chooseLang:"Choose another language",standalone:"Saladict Standalone Panel",fetchLangList:"Fetch full language list",transContext:"Retranslate",neverShow:"Stop showing",fromSaladict:"From Saladict Panel",tip:{historyBack:"Previous search history",historyNext:"Next search history",searchText:"Search text",openOptions:"Open Options",addToNotebook:"Add to Notebook. Right click to open Notebook",openNotebook:"Open Notebook",openHistory:"Open History",shareImg:"Share as image",pinPanel:"Pin the panel",closePanel:"Close the panel",sidebar:"Switch to sidebar mode. Right click to right side.",focusPanel:"Panel gains focus when searching",unfocusPanel:"Panel does not gain focus when searching"},wordEditor:{title:"Add to Notebook",wordCardsTitle:"Other results from Notebook",deleteConfirm:"Delete from Notebook?",closeConfirm:"Changes will not be saved. Are you sure to close?",chooseCtxTitle:"Pick translated results",ctxHelp:"Keep the [:: xxx ::] and --------------- format if you want Saladict to handle translation selection and generate Anki table."},machineTrans:{switch:"Switch Language",sl:"Source Language",tl:"Target Language",auto:"Detect language",stext:"Original",showSl:"Show Source",copySrc:"Copy Source",copyTrans:"Copy Translation",login:"Please provide {access token}.",dictAccount:"access token"},updateAnki:{title:"Update to Anki",success:"Successfully update word to Anki.",failed:"Failed to update word to Anki."}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/126.52072ce4.js b/plugins/saladict-ztools/ext-saladic/assets/113.dffb2dda.js similarity index 73% rename from plugins/saladict-ztools/ext-saladic/assets/126.52072ce4.js rename to plugins/saladict-ztools/ext-saladic/assets/113.dffb2dda.js index 4f2c30d5..0d62e17e 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/126.52072ce4.js +++ b/plugins/saladict-ztools/ext-saladic/assets/113.dffb2dda.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[126],{558:function(t,o,e){"use strict";e.r(o),e.d(o,"locale",(function(){return n}));const n={chooseLang:"-選擇其它語言-",standalone:"沙拉查詞-獨立查詞視窗",fetchLangList:"取得全部語言清單",transContext:"重新翻譯",neverShow:"不再彈出",fromSaladict:"来自沙拉查詞介面",tip:{historyBack:"上一個查單字記錄",historyNext:"下一個查單字記錄",searchText:"查單字",openOptions:"開啟設定",addToNotebook:"儲存單字到單字本,右点击開啟單字本",openNotebook:"開啟單字本",openHistory:"開啟查單字記錄",shareImg:"以圖片方式分享查單字結果",pinPanel:"釘選字典視窗",closePanel:"關閉字典視窗",sidebar:"切換側邊欄模式,右點選切換右側",focusPanel:"查詞時面板獲取焦點",unfocusPanel:"查詞時面板不獲取焦點"},wordEditor:{title:"儲存到單字本",wordCardsTitle:"單字本其它記錄",deleteConfirm:"從單字本中移除?",closeConfirm:"記錄尚未儲存,確定關閉?",chooseCtxTitle:"選擇翻譯結果",ctxHelp:"如需相容選擇翻譯結果以及 Anki 生成表格請保持 [:: xxx ::] 和 --------------- 格式。"},machineTrans:{switch:"變更語言",sl:"來源語言",tl:"目標語言",auto:"偵測語言",stext:"原文",showSl:"顯示原文",copySrc:"複製原文",copyTrans:"複製譯文",login:"請登入{詞典帳號}以使用。",dictAccount:"詞典帳號"},updateAnki:{title:"更新到 Anki",success:"更新到 Anki 成功。",failed:"更新單詞到 Anki 失敗。"}}}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[113],{443:function(t,e,o){"use strict";o.r(e),o.d(e,"locale",(function(){return n}));const n={chooseLang:"-選擇其它語言-",standalone:"沙拉查詞-獨立查詞視窗",fetchLangList:"取得全部語言清單",transContext:"重新翻譯",neverShow:"不再彈出",fromSaladict:"来自沙拉查詞介面",tip:{historyBack:"上一個查單字記錄",historyNext:"下一個查單字記錄",searchText:"查單字",openOptions:"開啟設定",addToNotebook:"儲存單字到單字本,右点击開啟單字本",openNotebook:"開啟單字本",openHistory:"開啟查單字記錄",shareImg:"以圖片方式分享查單字結果",pinPanel:"釘選字典視窗",closePanel:"關閉字典視窗",sidebar:"切換側邊欄模式,右點選切換右側",focusPanel:"查詞時面板獲取焦點",unfocusPanel:"查詞時面板不獲取焦點"},wordEditor:{title:"儲存到單字本",wordCardsTitle:"單字本其它記錄",deleteConfirm:"從單字本中移除?",closeConfirm:"記錄尚未儲存,確定關閉?",chooseCtxTitle:"選擇翻譯結果",ctxHelp:"如需相容選擇翻譯結果以及 Anki 生成表格請保持 [:: xxx ::] 和 --------------- 格式。"},machineTrans:{switch:"變更語言",sl:"來源語言",tl:"目標語言",auto:"偵測語言",stext:"原文",showSl:"顯示原文",copySrc:"複製原文",copyTrans:"複製譯文",login:"請登入{詞典帳號}以使用。",dictAccount:"詞典帳號"},manualVerification:{title:"需要手動驗證",message:"請開啟詞典原網頁完成人機驗證,然後回到沙拉查詞重新查詢。",openPage:"開啟詞典網頁"},updateAnki:{title:"更新到 Anki",success:"更新到 Anki 成功。",failed:"更新單詞到 Anki 失敗。"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/113.f1f7f7de.js b/plugins/saladict-ztools/ext-saladic/assets/113.f1f7f7de.js deleted file mode 100644 index 77adf0bf..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/113.f1f7f7de.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[113],{546:function(a,e,o){"use strict";o.r(e),o.d(e,"locale",(function(){return n}));const n={baidu_page_translate:"Baidu Page Translate",baidu_search:"Baidu Search",bing_dict:"Bing Dict",bing_search:"Bing Search",caiyuntrs:"Lingocloud Page Translate",cambridge:"Cambridge",copy_pdf_url:"Copy PDF URL to Clipboard",dictcn:"Dictcn",etymonline:"Etymonline",google_cn_page_translate:"Google cn Page Translate",google_page_translate:"Google Page Translate",google_search:"Google Search",google_translate:"Google Translate",google_cn_translate:"Google.cn Translate",guoyu:"國語辭典",history_title:"Search History",iciba:"iciba",liangan:"兩岸詞典",longman_business:"Longman Business",manual_title:"Manual",merriam_webster:"Merriam Webster",microsoft_page_translate:"Microsoft Page Translate",notebook_title:"New Word List",notification_youdao_err:"Youdao Page Translate 2.0 not responding.\nSaladict might not have permission to access this page.\nIgnore this message if Youdao panal is shown.",oxford:"Oxford",page_permission_err:'Saladict "{{name}}" does not have permission to access this page.',page_translations:"Page Translations",saladict:"Saladict",saladict_standalone:"Saladict Standalone Panel",sogou:"Sogou Translate",sogou_page_translate:"Sogou Page Translate",termonline:"Termonline",view_as_pdf:"Open in PDF Viewer",youdao:"Youdao",youdao_page_translate:"Youdao Page Translate",youglish:"YouGlish"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/114.26e5d991.js b/plugins/saladict-ztools/ext-saladic/assets/114.26e5d991.js deleted file mode 100644 index 6e298753..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/114.26e5d991.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[114],{547:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));const o={title:"Saladict Options",previewPanel:"Preview Dict Panel",shortcuts:"Set Shortcuts",msg_update_error:"Unable to update",msg_updated:"Successfully updated",msg_first_time_notice:"First time notice",msg_err_permission:'Unable to request "{{permission}}" permission.',unsave_confirm:"Settings not saved. Sure to leave?",nativeSearch:"search selected text outside of browser",firefox_shortcuts:'Open about:addons, click the top right "gear" button, choose the last "Manage extension shortcuts".',tutorial:"Tutorial",page_selection:"Page Selection",nav:{General:"General",Notebook:"Notebook",Profiles:"Profiles",DictPanel:"Dict Panel",SearchModes:"Search Modes",Dictionaries:"Dictionaries",DictAuths:"Access Tokens",Popup:"Popup Panel",QuickSearch:"Quick Search",Pronunciation:"Pronunciation",PDF:"PDF",ContextMenus:"Context Menus",BlackWhiteList:"Black/White List",ImportExport:"Import/Export",Privacy:"Privacy",Permissions:"Permissions"},config:{active:"Enable Inline Translator",active_help:'"Quick Search" is still available even if Inline translation is turned off.',animation:"Animation transitions",animation_help:"Switch off animation transitions to reduce runtime cost.",runInBg:"Keep in Background",runInBg_help:"Keep the browser running in background after close so that global shortcuts still work.",darkMode:"Dark Mode",langCode:"App Language",editOnFav:"Open WordEditor when saving",editOnFav_help:"When turned off, new words will be added to notebook directly.",searchHistory:"Keep search history",searchHistory_help:"Your browsing history could be unintentionally revealed in Search history.",searchHistoryInco:"Also in incognito mode",ctxTrans:"Context Translate Engines",ctxTrans_help:"Context sentence will be translated before being added to notebook.",searchSuggests:"Search suggests",panelMaxHeightRatio:"Panel max height ratio",panelWidth:"Panel width",fontSize:"Font size for search reasults",bowlOffsetX:"Saladict icon Offset X",bowlOffsetY:"Saladict icon Offset Y",panelCSS:"Custom Dict Panel Styles",panelCSS_help:"Custom CSS. For Dict Panel use .dictPanel-Root as root. For dictionaries use .dictRoot or .d-{id} as root",noTypeField:"No selection on editable regions",noTypeField_help:"If selection making in editable regions is banned, the extension will identify Input Boxes, TextAreas and other common text editors like CodeMirror, ACE and Monaco.",touchMode:"Touch Mode",touchMode_help:"Enable touch related selection",language:"Selection Languages",language_help:"Search when selection contains words in the chosen languages.",language_extra:"Note that Japanese and Korean also include Chinese. French, Deutsch and Spanish also include English. If Chinese or English is cancelled while others are selected, only the exclusive parts of those languages are tested. E.g. kana characters in Japanese.",doubleClickDelay:"Double Click Delay",mode:"Normal Selection",panelMode:"Inside Dict Panel",pinMode:"When Panel is Pinned",qsPanelMode:"When Standalone Panel is Opened",bowlHover:"Icon Mouse Hover",bowlHover_help:"Hover on the bowl icon to trigger searching instead of clicking.",autopron:{cn:{dict:"Chinese Auto-Pronounce"},en:{dict:"English Auto-Pronounce",accent:"Accent Preference"},machine:{dict:"Machine Auto-Pronounce",src:"Machine Pronounce",src_help:"Machine Translation Dictionary needs to be added and enabled on the list below to enable auto-pronunciation.",src_search:"Read Source Text",src_trans:"Read Translation Text"}},pdfSniff:"Enable PDF Sniffer",pdfSniff_help:"If turned on, PDF links will be automatically captured.",pdfSniff_extra:"It is recommended to {search selected text outside of browser} with your own favorite local reader.",pdfStandalone:"Standalone Panel",pdfStandalone_help:"Open PDF viewer in standalone panel.",baWidth:"Width",baWidth_help:"Browser Action Panel wdith. Dict Panel width will be used if a negative value is chosen.",baHeight:"Height",baHeight_help:"Browser Action Panel height.",baOpen:"Browser Action",baOpen_help:"When clicking the browser action icon in toolbar (next to the address bar). Items are same as Context Menus, which can be added or edited on the Context Menus config page.",tripleCtrl:"Enable Ctrl Shortkey",tripleCtrl_help:"Press {⌘ Command}(macOS) or {Ctrl}(Others) three times (or with browser shortkey) to summon the dictionary panel. ",defaultPinned:"Pinned when shows up",qsLocation:"Location",qsFocus:"Focus when shows up",qsStandalone:"Standalone",qsStandalone_help:"Render dict panel in a standalone window. You can {search selected text outside of browser}.",qssaSidebar:"Sidebar Layout",qssaSidebar_help:"Rearrange windows to sidebar-like layout.",qssaHeight:"Window Height",qssaPageSel:"Selection Response",qssaPageSel_help:"Response to page selection.",qssaRectMemo:"Remember size and position",qssaRectMemo_help:"Remember standalone panel size and position on close.",updateCheck:"Check Update",updateCheck_help:"Check update automatically.",analytics:"Enable Google Analytics",analytics_help:"Share anonymous device browser version information. Saladict author will offer prioritized support to popular devices and browsers.",opt:{reset:"Reset Configs",reset_confirm:"Reset to default settings. Confirm?",upload_error:"Unable to save settings.",accent:{uk:"UK",us:"US"},sel_blackwhitelist:"Selection Black/White List",sel_blackwhitelist_help:"Saladict will not react to selection in blacklisted pages.",pdf_blackwhitelist_help:"Blacklisted PDF links will not jump to Saladict PDF Viewer.",contextMenus_description:"Each context menus item can also be customized. Youdao and Google page translate are deprecated in favor of the official extensions.",contextMenus_edit:"Edit Context Menus Items",contextMenus_url_rules:"URL with %s in place of query.",baOpen:{popup_panel:"Dict Panel",popup_fav:"Add to Notebook",popup_options:"Open Saladict Options",popup_standalone:"Open Saladict Standalone Panel"},openQsStandalone:"Standalone Panel Options",pdfStandalone:{default:"Never",always:"Always",manual:"Manual"}}},matchPattern:{description:"Specify URL as {URL Match Pattern} or {Regular Expression}. Empty fields will be removed.",url:"URL Match Pattern",url_error:"Incorrect URL Match Pattern.",regex:"Regular Expression",regex_error:"Incorrect Regular Expression."},searchMode:{icon:"Show Icon",icon_help:"A cute little icon pops up nearby the cursor.",direct:"Direct Search",direct_help:"Show dict panel directly.",double:"Double Click",double_help:"Show dict panel after double click selection.",holding:"Hold a key",holding_help:'After a selection is made, the selected key must be pressing when releasing mouse (Alt is "⌥ Option" on macOS. Meta key is "⌘ Command" on macOS and "⊞ Windows" for others.).',instant:"Instant Capture",instant_help:"Selection is automatically made near by the cursor.",instantDirect:"Direct",instantKey:"Key",instantKey_help:'If "Direct" is chosen it is also recommeded setting browser shortkey to toggle Instant Capture. Otherwise browser text selection could be unable to perform.',instantDelay:"Capture delay"},profiles:{opt:{add_name:"Add Profile Name",delete_confirm:'Delete Profile "{{name}}". Confirm?',edit_name:"Change Profile Name",help:"Each profile represents an independent set of settings. Some of the settings (with {*} prefix) change according to profile. One may switch profiles by hovering on the menu icon on Dict Panel, or focus on the icon then hit {↓}."}},profile:{mtaAutoUnfold:"Auto unfold multiline search box",waveform:"Waveform Control",waveform_help:"Display a button at the bottom of the Dict Panel for expanding the Waveform Control Panel which is only loaded after expansion.",stickyFold:"Sticky Folding",stickyFold_help:"Remembers manual dictionary folding/unfolding states when searching. Only last on the same page.",opt:{item_extra:'This option may change base on "Profile".',mtaAutoUnfold:{always:"Keep Unfolding",never:"Never Unfold",once:"Unfold Once",popup:"Only On Browser Action",hide:"Hide"},dict_selected:"Selected Dicts"}},dict:{add:"Add dicts",more_options:"More Options",selectionLang:"Selection Languages",selectionLang_help:"Show this dictionary when selection contains words in the chosen languages.",defaultUnfold:"Default Unfold",defaultUnfold_help:"If turned off, this dictionary won't start searching unless it's title bar is clicked.",selectionWC:"Selection Word Count",selectionWC_help:"Show this dictionary when selection word count meets the requirements. Set 999999 for unlimited words.",preferredHeight:"Default Panel Height",preferredHeight_help:"Maximum height on first appearance. Contents exceeding this height will be hidden. Set 999999 for unlimited height.",lang:{de:"De",en:"En",es:"Es",fr:"Fr",ja:"Ja",kor:"Kor",zhs:"Zhs",zht:"Zht"}},syncService:{description:"Sync settings.",start:"Syncing. Do not close this page until finished.",finished:"Syncing finished",success:"Syncing success",failed:"Syncing failed",close_confirm:"Settings not saved. Close?",delete_confirm:"Delete?",shanbay:{description:"Go to shanbay.com and log in first(must stay logged in). Note that it's a one-way sync(from Saladict to Shanbay). Only the new added words are synced. Words also need to be supported by Shanbay's database.",login:"Will open shanbay.com. Please log in then come back and enable again.",sync_all:"Upload all existing new words",sync_all_confirm:"Too many new words in notebook. Saladict will upload in batches. Note that uploading too many words in short period would cause account banning which is unrecoverable. Confirm?",sync_last:"Upload the last new word"},webdav:{description:"Extension settings (including this) are synced via browser. New words notebook can be synced via WebDAV through settings here.",jianguo:"See Jianguoyun for example",checking:"Connecting...",exist_confirm:"Saladict directory exists on server. Download it and merge with local data?",upload_confirm:"Upload local data to Server right away?",verify:"Verify server",verified:"Successfully verified WebDAV server.",duration:"Duration",duration_help:"Data is guaranteed to be updated before upload. If you do not need real-time syncing across browsers, set a longer polling cycle to reduce CPU and memory footprint.",passwd:"Password",url:"Server Address",user:"User Account"},ankiconnect:{description:"Please make sure Anki Connect plugin is installed and Anki is running. You can also update word to Anki in Word Editor.",checking:"Checking...",deck_confirm:'Deck "{{deck}}" does not exist in Anki. Generate a new deck?',deck_error:'Unable to create deck "{{deck}}".',notetype_confirm:'Note type "{{noteType}}" does not exist in Anki. Generate a new note type.',notetype_error:'Unable to create note type "{{noteType}}".',upload_confirm:"Sync local new words to Anki right away? Duplicated words (with same timestamp) will be skipped.",add_yourself:"Please add it youself in Anki.",verify:"Verify Anki Connect",verified:"Successfully verified Anki Connect",enable_help:'When enabled, each time a new word is added to Notebook it will also be ported to Anki automatically. Words that exist in Anki(with same "Date") can be force-updated in Word Editor.',host:"Address",port:"port",key:"Key",key_help:"Optional key can be added in Anki Connect config for identification.",deckName:"Deck",deckName_help:'If deck does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below.',noteType:"Note Type",noteType_help:'Anki note type includes a set of fields and card type. If note type does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below. DO NOT change field names when editing or adding card templates in Anki',tags:"Tags",tags_help:"Anki notes can include tags separated with commas.",escapeHTML:"Escape HTML",escapeHTML_help:"Escape HTML entities. Turn off if using HTML for manual layout.",syncServer:"Sync Server",syncServer_help:"Sync to server(e.g. AnkiWeb) after new words being added to local Anki."}},titlebarOffset:{title:"Calibrate Titlebar Height",help:"Different systems or browser settings may result in different titlebar height. Saladict will attempt to calibrate automatically. If you may adjust manually.",main:"Normal",main_help:"Normal windows may not have titlebar.",panel:"Panel",panel_help:"Saladict standalone quick search panel is a type of panel window.",calibrate:"Auto-calibrate",calibrateSuccess:"Calibration success",calibrateError:"Calibration failed"},headInfo:{acknowledgement:{title:"Acknowledgement",naver:"for helping add Naver dict",shanbay:"for adding Shanbay dict",trans_tw:"for traditional Chinese translation",weblio:"for helping add Weblio dict"},contact_author:"Contact Author",donate:"Donate",instructions:"Instructions",report_issue:"Report Issue"},form:{url_error:"Incorrect URL.",number_error:"Incorrect number."},preload:{title:"Preload",auto:"Auto search",auto_help:"Search automatically when panel shows up.",clipboard:"Clipboard",help:"Preload content in search box when panel shows up.",selection:"Page Selection"},locations:{CENTER:"Center",TOP:"Top",RIGHT:"Right",BOTTOM:"Bottom",LEFT:"Left",TOP_LEFT:"Top Left",TOP_RIGHT:"Top Right",BOTTOM_LEFT:"Bottom Left",BOTTOM_RIGHT:"Bottom Right"},import_export_help:"Configs are auto-synced via browser. Here you can also import/export manually. Backups are exported as plain text files. Please encrypt it yourself if needed.",import:{title:"Import Configs",error:{title:"Import Error",parse:"Unable to parse backup. Incorrect format.",load:"Unable to load backup. Browser cannot obtain the local file.",empty:"No valid data found in the backup."}},export:{title:"Export Configs",error:{title:"Export Error",empty:"No config to export.",parse:"Unable to parse configs."}},dictAuth:{description:"As the number of Saladict users grows, if you make heavily use of machine translation services it is recommended to register an account for better stability and accuracy. The account data will only be stored in the browser.",dictHelp:"See the official website of {dict}.",manage:"Manage Translator Accounts"},third_party_privacy:"Third Party Privacy",third_party_privacy_help:'Saladict will not collect further information but search text and releated cookies will be sent to third party dictionary services(just like how you would search on their websites). If you do not want third party services to collect you data, remove the corresponding dictionaries at "Dictionaries" settings.',third_party_privacy_extra:"Cannot be turned off as it is the core functionality of Saladict.",permissions:{success:"Permission requested",cancel_success:"Permission cancelled",failed:"Permission request failed",cancelled:"Permission request cancelled by user",missing:'Missing permission "{{permission}}". Either grant it or disable related functions.',clipboardRead:"Read Clipboard",clipboardRead_help:"This permission is needed when clipboard preload is enable for popup panel or quick search panel.",clipboardWrite:"Write Clipboard",clipboardWrite_help:"This permission is needed when using titlebar menus to copy source/target text from machine translator."},unsupportedFeatures:{ff:'Feature "{{feature}}" is not supported in Firefox.'}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/127.542962a5.js b/plugins/saladict-ztools/ext-saladic/assets/114.e245b2b5.js similarity index 95% rename from plugins/saladict-ztools/ext-saladic/assets/127.542962a5.js rename to plugins/saladict-ztools/ext-saladic/assets/114.e245b2b5.js index 17abd1e0..1168e969 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/127.542962a5.js +++ b/plugins/saladict-ztools/ext-saladic/assets/114.e245b2b5.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[127],{560:function(a,o,e){"use strict";e.r(o),e.d(o,"locale",(function(){return n}));const n={baidu_page_translate:"百度網頁翻譯",baidu_search:"百度搜尋",bing_dict:"Bing 字典",bing_search:"Bing 搜尋",caiyuntrs:"彩雲小譯網頁翻譯",cambridge:"劍橋字典",copy_pdf_url:"複製PDF連結到剪貼簿",dictcn:"海詞字典",etymonline:"培根字根",google_cn_page_translate:"Google cn 網頁翻譯",google_page_translate:"Google 網頁翻譯",google_search:"Google 搜尋",google_translate:"Google 翻譯",google_cn_translate:"Google.cn 翻譯",guoyu:"國語字典",history_title:"查單字歷史記錄",iciba:"金山詞霸",liangan:"兩岸字典",longman_business:"朗文商務",manual_title:"詳細使用說明",merriam_webster:"韋氏字典",microsoft_page_translate:"微軟網頁翻譯",notebook_title:"生字本",notification_youdao_err:"有道網頁翻譯2.0 下載後無回應,\n可能是套件無權造訪該網站,\n如果下載成功後,請忽略本訊息。",oxford:"牛津字典",page_permission_err:"沙拉查詞「{{name}}」無權訪問此頁面。",page_translations:"網頁翻譯",saladict:"沙拉查詞",saladict_standalone:"沙拉查詞獨立視窗",sogou:"搜狗翻譯",sogou_page_translate:"搜狗網頁翻譯",termonline:"術語在線",view_as_pdf:"在 PDF 閱讀器中開啟",youdao:"有道字典",youdao_page_translate:"有道網頁翻譯",youglish:"YouGlish"}}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[114],{445:function(a,o,e){"use strict";e.r(o),e.d(o,"locale",(function(){return n}));const n={baidu_page_translate:"百度網頁翻譯",baidu_search:"百度搜尋",bing_dict:"Bing 字典",bing_search:"Bing 搜尋",caiyuntrs:"彩雲小譯網頁翻譯",cambridge:"劍橋字典",copy_pdf_url:"複製PDF連結到剪貼簿",dictcn:"海詞字典",etymonline:"培根字根",google_cn_page_translate:"Google cn 網頁翻譯",google_page_translate:"Google 網頁翻譯",google_search:"Google 搜尋",google_translate:"Google 翻譯",google_cn_translate:"Google.cn 翻譯",guoyu:"國語字典",history_title:"查單字歷史記錄",iciba:"金山詞霸",liangan:"兩岸字典",longman_business:"朗文商務",manual_title:"詳細使用說明",merriam_webster:"韋氏字典",microsoft_page_translate:"微軟網頁翻譯",notebook_title:"生字本",notification_youdao_err:"有道網頁翻譯2.0 下載後無回應,\n可能是套件無權造訪該網站,\n如果下載成功後,請忽略本訊息。",oxford:"牛津字典",page_permission_err:"沙拉查詞「{{name}}」無權訪問此頁面。",page_translations:"網頁翻譯",saladict:"沙拉查詞",saladict_standalone:"沙拉查詞獨立視窗",sogou:"搜狗翻譯",sogou_page_translate:"搜狗網頁翻譯",termonline:"術語在線",view_as_pdf:"在 PDF 閱讀器中開啟",youdao:"有道字典",youdao_page_translate:"有道網頁翻譯",youglish:"YouGlish"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/115.3977c4d8.js b/plugins/saladict-ztools/ext-saladic/assets/115.3977c4d8.js deleted file mode 100644 index c51bfadf..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/115.3977c4d8.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[115],{548:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));const o={title:"Saladict Browser Action Panel",app_active_title:"Enable Inline Translator",app_temp_active_title:"Temporary disabled to the page",instant_capture_pinned:" (pinned) ",instant_capture_title:"Enable Instant Capture",notebook_added:"Added",notebook_empty:"No selection found on the current page",notebook_error:"Cannot add selected text to Notebook",page_no_response:"Page no response",qrcode_title:"Qrcode of the page"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/128.f6ed0885.js b/plugins/saladict-ztools/ext-saladic/assets/115.49b36566.js similarity index 60% rename from plugins/saladict-ztools/ext-saladic/assets/128.f6ed0885.js rename to plugins/saladict-ztools/ext-saladic/assets/115.49b36566.js index 04ee7c1d..97ffe4b1 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/128.f6ed0885.js +++ b/plugins/saladict-ztools/ext-saladic/assets/115.49b36566.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[128],{561:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"沙拉查詞設定",previewPanel:"預覽字典介面",shortcuts:"設定快速鍵",msg_update_error:"設定更新失敗",msg_updated:"設定已更新",msg_first_time_notice:"初次使用注意",msg_err_permission:"許可權“{{permission}}”申請失敗。",unsave_confirm:"修改尚未儲存,確定放棄?",nativeSearch:"瀏覽器外選字翻譯",firefox_shortcuts:"位址列跳轉到 about:addons,點選右上方的齒輪,選擇最後一項管理擴充套件快捷鍵",tutorial:"教程",page_selection:"網頁選字",nav:{General:"基本選項",Notebook:"單字管理",Profiles:"情景模式",DictPanel:"字典介面",SearchModes:"查字習慣",Dictionaries:"字典設定",DictAuths:"詞典帳號",Popup:"右上彈出式視窗",QuickSearch:"迅速查字",Pronunciation:"朗讀設定",PDF:"PDF 設定",ContextMenus:"右鍵選單",BlackWhiteList:"黑白名單",ImportExport:"匯入匯出",Privacy:"隱私設定",Permissions:"許可權管理"},config:{active:"啟用滑鼠選字翻譯",active_help:"關閉後「迅速查字」功能依然可用。",animation:"啟用轉換動畫",animation_help:"在低效能裝置上關閉過渡動畫可減少渲染負擔。",runInBg:"保持瀏覽器執行",runInBg_help:"讓瀏覽器關閉後依然保持執行,從而繼續響應快捷鍵以及瀏覽器外劃字(見右上角官網使用說明)。",darkMode:"黑暗模式",langCode:"介面語言",editOnFav:"紅心單字時彈出編輯介面",editOnFav_help:"關閉後,點選紅心生詞將自動新增到生詞本,上下文翻譯亦會自動獲取。",searchHistory:"記錄查字歷史",searchHistory_help:"查字典記錄可能會泄漏您的瀏覽痕跡。",searchHistoryInco:"在無痕模式中記錄",ctxTrans:"上下文翻譯引擎",ctxTrans_help:"單字加入生字本前會自動翻譯上下文。",searchSuggests:"輸入時顯示候選",panelMaxHeightRatio:"字典介面最高占螢幕高度比例",panelWidth:"查字典介面寬度",fontSize:"字典內容字型大小",bowlOffsetX:"沙拉圖示水平偏移",bowlOffsetY:"沙拉圖示垂直偏移",panelCSS:"自訂查字介面樣式",panelCSS_help:"為查詞面板新增自定義 CSS 。詞典面板使用 .dictPanel-Root 作為根,詞典使用 .dictRoot 或者 .d-詞典ID 作為根。",noTypeField:"不在輸入框滑鼠滑字",noTypeField_help:"開啟後,本程式會自動識別輸入框以及常見編輯器,如 CodeMirror、ACE 和 Monaco。",touchMode:"觸控模式",touchMode_help:"支援觸控相關選字",language:"選詞語言",language_help:"當選取的文字包含相對應的語言時,才進行尋找。",language_extra:"注意日語與韓語也包含了漢字。法語、德語和西語也包含了英文。若取消了中文或英語而勾選了其它語言,則只翻譯那些語言獨有的部分,如日語只翻譯假名。",doubleClickDelay:"滑鼠按兩下間隔",mode:"普通選字",panelMode:"字典視窗介面內部選字",defaultPinned:"出現時釘住面板",pinMode:"字典視窗介面釘住后選字",qsPanelMode:"獨立字典視窗介面響應頁面選字",bowlHover:"圖示暫留查字",bowlHover_help:"滑鼠暫留在沙拉圖示上開啟字典介面,否則需要點選。",autopron:{cn:{dict:"中文自動發音"},en:{dict:"英文自動發音",accent:"優先口音"},machine:{dict:"機器自動發音",src:"機器發音部分",src_help:"機器翻譯字典需要在下方新增並啟用才會自動發音。",src_search:"朗讀原文",src_trans:"朗讀翻譯"}},pdfSniff:"嗅探 PDF 連結",pdfSniff_help:"開啟後所有 PDF 連結將自動跳至本套件開啟(包括本機,如果在套件管理頁面勾選了允許)。",pdfSniff_extra:"現在更推薦使用自己喜歡的本地閱讀器搭配{瀏覽器外選字翻譯}。",pdfStandalone:"獨立視窗",pdfStandalone_help:"在獨立視窗中開啟 PDF 閱讀器。獨立視窗只有標題欄,佔用更少空間,但不能複製連結等操作。",baWidth:"彈窗寬度",baWidth_help:"右上彈框面板寬度。若為負數則取查字介面的寬度。",baHeight:"彈窗高度",baHeight_help:"右上彈框面板高度。",baOpen:"點選網址列旁圖示",baOpen_help:"點選網址列旁 Saladict 圖示時發生的操作。沿用了「右鍵選單」的條目,可以前往該設定頁面增加或編輯。",tripleCtrl:"啟用 Ctrl 快速鍵",tripleCtrl_help:"連續按三次{⌘ Command}(macOS)或者{Ctrl}(其它鍵盤)(或設定瀏覽器快速鍵),將會彈出字典視窗介面。",qsLocation:"出現位置",qsFocus:"出現時獲取焦點",qsStandalone:"獨立視窗",qsStandalone_help:"顯示為獨立的視窗,支援{瀏覽器外選字翻譯}。",qssaSidebar:"類側邊欄",qssaSidebar_help:"並排顯示視窗以達到類似側邊欄的配置。",qssaHeight:"視窗高度",qssaPageSel:"響應滑字",qssaPageSel_help:"對網頁滑鼠滑字作出反應。",qssaRectMemo:"記住位置和大小",qssaRectMemo_help:"獨立視窗關閉時記住位置和大小。",updateCheck:"檢查更新",updateCheck_help:"自動檢查更新",analytics:"啟用 Google Analytics",analytics_help:"提供匿名裝置瀏覽器版本資訊。因精力有限,沙拉查詞作者會盡可能支援使用者量更多的裝置和瀏覽器。",opt:{reset:"重設設定",reset_confirm:"所有設定將還原至預設值,確定?",upload_error:"設定儲存失敗",accent:{uk:"英式",us:"美式"},sel_blackwhitelist:"選詞黑白名單",sel_blackwhitelist_help:"黑名單相符的頁面 Saladict 將不會響應滑鼠劃詞。",pdf_blackwhitelist_help:"黑名單相符的 PDF 連結將不會跳至 Saladict 開啟。",contextMenus_description:"設定右鍵選單,可新增可自定義連結。網頁翻譯其實不需要沙拉查詞,故已有的有道和谷歌網頁翻譯目前處於維護狀態,沒有計劃新增新功能,請用其它官方擴充套件如彩雲小譯和谷歌翻譯。",contextMenus_edit:"編輯右鍵選單項目",contextMenus_url_rules:"連結中的 %s 會被取代為選詞。",baOpen:{popup_panel:"開啟字典介面",popup_fav:"新增選詞到生字本",popup_options:"進入 Saladict 設定",popup_standalone:"開啟快捷查詞獨立視窗"},openQsStandalone:"獨立視窗設定",pdfStandalone:{default:"從不",always:"總是",manual:"手動"}}},matchPattern:{description:"網址支援{超鏈匹配}和{正則匹配}。留空儲存即可清除。",url:"連結匹配",url_error:"不正確的超連結模式匹配表示式。",regex:"正則匹配",regex_error:"不正確的正則表示式。"},searchMode:{icon:"顯示圖示",icon_help:"在滑鼠附近顯示一個圖示,滑鼠移動到圖示後,會顯示出字典的視窗介面。",direct:"直接搜尋",direct_help:"直接顯示字典視窗介面。",double:"滑鼠按兩下",double_help:"滑鼠按兩下所選擇的句子或單字後,會直接顯示字典視窗介面。",holding:"按住按键",holding_help:'在放開滑鼠之前,需按住選擇的按鍵才顯示字典視窗介面(Alt 為 macOS 上的 "⌥ Option"鍵。Meta 鍵為 macOS 上的「⌘ Command」鍵以及其它鍵盤的「⊞ Windows」鍵)。',instant:"滑鼠懸浮取詞",instant_help:"自動選取滑鼠附近的單字。",instantDirect:"直接取詞",instantKey:"按鍵",instantKey_help:"因技術限制,懸浮取詞通過自動選擇滑鼠附近單字實現,不設定按鍵直接取詞可能導致滑鼠無法選字,建議配合快速鍵開啟關閉。",instantDelay:"取詞等待"},profiles:{opt:{add_name:"新增情景模式名稱",delete_confirm:"「{{name}}」將被刪除,確認?",edit_name:"變更情景模式名稱",help:"每個情景模式相當於一套獨立的設定,一些選項(帶有 {*})會隨著情景模式變化。滑鼠懸浮在字典介面的選單圖示上可快速切換,或者焦點選中選單圖示然後按{↓}。"}},profile:{mtaAutoUnfold:"自動展開多行搜尋框",waveform:"波形控制",waveform_help:"在字典介面下方顯示音訊控制面板展開按鈕。關閉依然可以播放音訊。",stickyFold:"記憶摺疊",stickyFold_help:"查字時記住之前手動展開和收起字典的狀態,只在同個頁面生效。",opt:{item_extra:"此選項會因「情景模式」而改變。",mtaAutoUnfold:{always:"保持展開",never:"永遠不展開",once:"展開一次",popup:"只在右上彈框展開",hide:"隱藏"},dict_selected:"已選字典"}},dict:{add:"新增字典",more_options:"更多設定",selectionLang:"選詞語言",selectionLang_help:"當選中的文字包含相對應的語言時才顯示這個字典。",defaultUnfold:"自動展開",defaultUnfold_help:"關閉後此字典將不會自動搜尋,除非點選「展開」箭頭。適合一些需要時再深入瞭解的字典,以加快初次查字典速度。",selectionWC:"選詞字數",selectionWC_help:"當選中文字的字數符合條件時才顯示該詞典。可設定 999999 如果不希望限制字數。",preferredHeight:"字典預設高度",preferredHeight_help:"字典初次出現的最大高度。超出此高度的內容將被隱藏並顯示下箭頭。可設定 999999 如果不希望限制高度。",lang:{de:"德",en:"英",es:"西",fr:"法",ja:"日",kor:"韓",zhs:"简",zht:"繁"}},syncService:{description:"資料同步設定。",start:"同步進行中,結束前請勿關閉此頁面。",finished:"同步結束",success:"同步成功",failed:"同步失敗",close_confirm:"設定未儲存,關閉?",delete_confirm:"清空同步設定?",shanbay:{description:"先去 shanbay.com 登入扇貝(退出後將失效)。開啟後將單向同步到扇貝生詞本(只從沙拉查詞到扇貝),只同步新增單詞(刪除不同步),只同步單詞本身(上下文等均不能同步)。生詞需要扇貝單詞庫支援才能被新增。",login:"將開啟扇貝官網,請登入再回來重新開啟。",sync_all:"上傳現有的所有生字",sync_all_confirm:"生詞本存在較多單詞,將分批上傳。注意短時間上傳太多有可能會導致封號,且不可恢復,確定繼續?",sync_last:"上傳最近的一個生字"},webdav:{description:"應用設定(包括本設定)已通過瀏覽器自動同步。生詞本可通過本設定實現 WebDAV 同步。",jianguo:"參考堅果雲設定",checking:"連線中...",exist_confirm:"伺服器上已存在 Saladict 目錄。是否下載合併到本地?",upload_confirm:"馬上上傳本地資料到伺服器?",verify:"驗證伺服器",verified:"成功驗證伺服器",duration:"同步頻率",duration_help:"新增生字後會馬上上傳,資料會在上傳前保證同步,所以如果不需要多個瀏覽器即時檢視更新,可將更新檢查週期調大些以減少資源佔用及避免伺服器拒絕回應。",passwd:"密碼",url:"伺服器位址",user:"帳戶"},ankiconnect:{description:"請確保 Anki Connect 已安裝且 Anki 在執行。",checking:"連線中...",deck_confirm:"牌組「{{deck}}」不存在 Anki 中,是否自動新增?",deck_error:"無法建立牌組「{{deck}}」。",notetype_confirm:"筆記型別「{{noteType}}」不存在 Anki 中,是否自動新增?",notetype_error:"無法建立筆記型別「{{noteType}}」。",upload_confirm:"馬上同步本地生詞到 Anki?重複的單詞(相同“Date”)會被跳過。",add_yourself:"請在 Anki 中自行新增。",verify:"檢查 Anki Connect",verified:"成功檢查 Anki Connect",enable_help:"開啟後每次儲存新單字都會自動同步到 Anki。Anki 上已存在的單字(以“Date”為準)可以在單字編輯器中編輯強制更新覆蓋到 Anki。",host:"地址",port:"埠",key:"Key",key_help:"可在 Anki Connect 外掛中設定 key 以做簡單令牌。",deckName:"牌組",deckName_help:"如果不存在的話可以點下方「檢查 Anki Connect」讓本設定生成預設牌組。",noteType:"筆記型別",noteType_help:"Anki 筆記型別包括一套欄位和卡片型別。如果不存在的話可以點下方「檢查 Anki Connect」讓本設定生成一套預設的筆記型別。如需自行在 Anki 新增或修改卡片模板請不要更改欄位名字。",tags:"標籤",tags_help:"Anki 筆記可以附帶標籤。以逗號分割。",escapeHTML:"轉義 HTML",escapeHTML_help:"對筆記內容中的 HTML 字元進行轉義。如手動進行 HTML 排版請關閉選項。",syncServer:"同步伺服器",syncServer_help:"單詞新增到本地 Anki 後自動同步到伺服器(如 AnkiWeb)。"}},titlebarOffset:{title:"校準標題欄高度",help:"不同的系統以及不同的瀏覽器設定會影響標題欄高度,沙拉查詞會嘗試自動校準,如彈出視窗依然出現偏移可自行調整。",main:"普通視窗",main_help:"普通視窗可能沒有標題欄。",panel:"簡化視窗",panel_help:"沙拉查詞的獨立視窗快捷查詞介面為簡化視窗。",calibrate:"自動校準",calibrateSuccess:"自動校準成功",calibrateError:"自動校準失敗"},headInfo:{acknowledgement:{title:"特別鳴謝",naver:"協助新增 Naver 韓國語字典",shanbay:"編寫扇貝詞典模組",trans_tw:"提供部分繁體中文翻譯",weblio:"協助新增 Weblio 辭書"},contact_author:"聯絡作者",donate:"支援項目",instructions:"使用說明",report_issue:"軟體使用疑問和建言"},form:{url_error:"不正確的超連結格式。",number_error:"不正確的數字"},preload:{title:"預先下載",auto:"自動查字",auto_help:"字典介面出現時自動搜尋預先載入內容。",clipboard:"剪貼簿",help:"字典介面出現時預先載入內容到搜尋框。",selection:"滑鼠選字"},locations:{CENTER:"居中",TOP:"上方",RIGHT:"右方",BOTTOM:"下方",LEFT:"左方",TOP_LEFT:"左上",TOP_RIGHT:"右上",BOTTOM_LEFT:"左下",BOTTOM_RIGHT:"右下"},import_export_help:"設定已通過瀏覽器自動同步,也可以手動匯入匯出。備份為明文儲存,對安全性有要求的請自行加密。",import:{title:"匯入設定",error:{title:"匯入失敗",parse:"備份解析失敗,格式不正確。",load:"備份載入失敗,瀏覽器無法獲得本地備份。",empty:"備份中沒有發現有效資料。"}},export:{title:"匯出設定",error:{title:"匯出失敗",empty:"沒有設定可以匯出。",parse:"設定解析失敗,無法匯出。"}},dictAuth:{description:"隨著沙拉查詞使用者增多,如經常使用機器翻譯,建議到官網申請帳號以獲得更穩定的體驗以及更準確的結果。以下帳號資料只會保留在瀏覽器中。",dictHelp:"見{詞典}官網。",manage:"管理私用帳號"},third_party_privacy:"第三方隱私",third_party_privacy_help:"沙拉查詞不會收集更多資料,但在查詞時單詞以及相關 cookies 資料會發送給第三方詞典服務(與在該網站上查詞一樣),如果你不希望被該服務獲取資料,請在「詞典設定」中關閉相應詞典。",third_party_privacy_extra:"本特性為沙拉查詞核心功能,無法關閉。",permissions:{success:"申請許可權成功",cancel_success:"取消許可權成功",failed:"申請許可權失敗",cancelled:"申請許可權被使用者取消",missing:"缺少許可權「{{permission}}」。請給予許可權或者關閉相關功能。",clipboardRead:"讀取剪貼簿",clipboardRead_help:"快捷查詞或者右上彈框設定預載入剪貼簿時需要讀取剪貼簿許可權。",clipboardWrite:"寫入剪貼簿",clipboardWrite_help:"機器翻譯詞典標題欄選單複製原文譯文或生詞本匯出到剪貼簿需要寫入剪貼簿許可權。"},unsupportedFeatures:{ff:"火狐尚不支援「{{feature}}」功能。"}}}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[115],{446:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"沙拉查詞設定",previewPanel:"預覽字典介面",shortcuts:"設定快速鍵",msg_update_error:"設定更新失敗",msg_updated:"設定已更新",msg_first_time_notice:"初次使用注意",msg_err_permission:"許可權“{{permission}}”申請失敗。",unsave_confirm:"修改尚未儲存,確定放棄?",nativeSearch:"瀏覽器外選字翻譯",firefox_shortcuts:"位址列跳轉到 about:addons,點選右上方的齒輪,選擇最後一項管理擴充套件快捷鍵",tutorial:"教程",page_selection:"網頁選字",nav:{General:"基本選項",Notebook:"單字管理",Profiles:"情景模式",DictPanel:"字典介面",SearchModes:"查字習慣",Dictionaries:"字典設定",DictAuths:"詞典帳號",Popup:"右上彈出式視窗",QuickSearch:"迅速查字",Pronunciation:"朗讀設定",PDF:"PDF 設定",ContextMenus:"右鍵選單",BlackWhiteList:"黑白名單",ImportExport:"匯入匯出",Privacy:"隱私設定",Permissions:"許可權管理"},config:{active:"啟用滑鼠選字翻譯",active_help:"關閉後「迅速查字」功能依然可用。",animation:"啟用轉換動畫",animation_help:"在低效能裝置上關閉過渡動畫可減少渲染負擔。",runInBg:"保持瀏覽器執行",runInBg_help:"讓瀏覽器關閉後依然保持執行,從而繼續響應快捷鍵以及瀏覽器外劃字(見右上角官網使用說明)。",darkMode:"黑暗模式",langCode:"介面語言",editOnFav:"紅心單字時彈出編輯介面",editOnFav_help:"關閉後,點選紅心生詞將自動新增到生詞本,上下文翻譯亦會自動獲取。",searchHistory:"記錄查字歷史",searchHistory_help:"查字典記錄可能會泄漏您的瀏覽痕跡。",searchHistoryInco:"在無痕模式中記錄",ctxTrans:"上下文翻譯引擎",ctxTrans_help:"單字加入生字本前會自動翻譯上下文。",searchSuggests:"輸入時顯示候選",panelMaxHeightRatio:"字典介面最高占螢幕高度比例",panelWidth:"查字典介面寬度",fontSize:"字典內容字型大小",bowlOffsetX:"沙拉圖示水平偏移",bowlOffsetY:"沙拉圖示垂直偏移",panelCSS:"自訂查字介面樣式",panelCSS_help:"為查詞面板新增自定義 CSS 。詞典面板使用 .dictPanel-Root 作為根,詞典使用 .dictRoot 或者 .d-詞典ID 作為根。",noTypeField:"不在輸入框滑鼠滑字",noTypeField_help:"開啟後,本程式會自動識別輸入框以及常見編輯器,如 CodeMirror、ACE 和 Monaco。",touchMode:"觸控模式",touchMode_help:"支援觸控相關選字",language:"選詞語言",language_help:"當選取的文字包含相對應的語言時,才進行尋找。",language_extra:"注意日語與韓語也包含了漢字。法語、德語和西語也包含了英文。若取消了中文或英語而勾選了其它語言,則只翻譯那些語言獨有的部分,如日語只翻譯假名。",doubleClickDelay:"滑鼠按兩下間隔",mode:"普通選字",panelMode:"字典視窗介面內部選字",defaultPinned:"出現時釘住面板",pinMode:"字典視窗介面釘住后選字",qsPanelMode:"獨立字典視窗介面響應頁面選字",bowlHover:"圖示暫留查字",bowlHover_help:"滑鼠暫留在沙拉圖示上開啟字典介面,否則需要點選。",autopron:{cn:{dict:"中文自動發音"},en:{dict:"英文自動發音",accent:"優先口音"},machine:{dict:"機器自動發音",src:"機器發音部分",src_help:"機器翻譯字典需要在下方新增並啟用才會自動發音。",src_search:"朗讀原文",src_trans:"朗讀翻譯"}},pdfSniff:"嗅探 PDF 連結",pdfSniff_help:"開啟後所有 PDF 連結將自動跳至本套件開啟(包括本機,如果在套件管理頁面勾選了允許)。",pdfSniff_extra:"現在更推薦使用自己喜歡的本地閱讀器搭配{瀏覽器外選字翻譯}。",pdfStandalone:"獨立視窗",pdfStandalone_help:"在獨立視窗中開啟 PDF 閱讀器。獨立視窗只有標題欄,佔用更少空間,但不能複製連結等操作。",baWidth:"彈窗寬度",baWidth_help:"右上彈框面板寬度。若為負數則取查字介面的寬度。",baHeight:"彈窗高度",baHeight_help:"右上彈框面板高度。",baOpen:"點選網址列旁圖示",baOpen_help:"點選網址列旁 Saladict 圖示時發生的操作。沿用了「右鍵選單」的條目,可以前往該設定頁面增加或編輯。",tripleCtrl:"啟用 Ctrl 快速鍵",tripleCtrl_help:"連續按三次{⌘ Command}(macOS)或者{Ctrl}(其它鍵盤)(或設定瀏覽器快速鍵),將會彈出字典視窗介面。",qsLocation:"出現位置",qsFocus:"出現時獲取焦點",qsStandalone:"獨立視窗",qsStandalone_help:"顯示為獨立的視窗,支援{瀏覽器外選字翻譯}。",qssaSidebar:"類側邊欄",qssaSidebar_help:"並排顯示視窗以達到類似側邊欄的配置。",qssaHeight:"視窗高度",qssaPageSel:"響應滑字",qssaPageSel_help:"對網頁滑鼠滑字作出反應。",qssaRectMemo:"記住位置和大小",qssaRectMemo_help:"獨立視窗關閉時記住位置和大小。",updateCheck:"檢查更新",updateCheck_help:"自動檢查更新",analytics:"啟用 Google Analytics",analytics_help:"提供匿名裝置瀏覽器版本資訊。因精力有限,沙拉查詞作者會盡可能支援使用者量更多的裝置和瀏覽器。",opt:{reset:"重設設定",reset_confirm:"所有設定將還原至預設值,確定?",upload_error:"設定儲存失敗",accent:{uk:"英式",us:"美式"},sel_blackwhitelist:"選詞黑白名單",sel_blackwhitelist_help:"黑名單相符的頁面 Saladict 將不會響應滑鼠劃詞。",pdf_blackwhitelist_help:"黑名單相符的 PDF 連結將不會跳至 Saladict 開啟。",contextMenus_description:"設定右鍵選單,可新增可自定義連結。網頁翻譯其實不需要沙拉查詞,故已有的有道和谷歌網頁翻譯目前處於維護狀態,沒有計劃新增新功能,請用其它官方擴充套件如彩雲小譯和谷歌翻譯。",contextMenus_edit:"編輯右鍵選單項目",contextMenus_url_rules:"連結中的 %s 會被取代為選詞。",baOpen:{popup_panel:"開啟字典介面",popup_fav:"新增選詞到生字本",popup_options:"進入 Saladict 設定",popup_standalone:"開啟快捷查詞獨立視窗"},openQsStandalone:"獨立視窗設定",pdfStandalone:{default:"從不",always:"總是",manual:"手動"}}},matchPattern:{description:"網址支援{超鏈匹配}和{正則匹配}。留空儲存即可清除。",url:"連結匹配",url_error:"不正確的超連結模式匹配表示式。",regex:"正則匹配",regex_error:"不正確的正則表示式。"},searchMode:{icon:"顯示圖示",icon_help:"在滑鼠附近顯示一個圖示,滑鼠移動到圖示後,會顯示出字典的視窗介面。",direct:"直接搜尋",direct_help:"直接顯示字典視窗介面。",double:"滑鼠按兩下",double_help:"滑鼠按兩下所選擇的句子或單字後,會直接顯示字典視窗介面。",holding:"按住按键",holding_help:'在放開滑鼠之前,需按住選擇的按鍵才顯示字典視窗介面(Alt 為 macOS 上的 "⌥ Option"鍵。Meta 鍵為 macOS 上的「⌘ Command」鍵以及其它鍵盤的「⊞ Windows」鍵)。',instant:"滑鼠懸浮取詞",instant_help:"自動選取滑鼠附近的單字。",instantDirect:"直接取詞",instantKey:"按鍵",instantKey_help:"因技術限制,懸浮取詞通過自動選擇滑鼠附近單字實現,不設定按鍵直接取詞可能導致滑鼠無法選字,建議配合快速鍵開啟關閉。",instantDelay:"取詞等待"},profiles:{opt:{add_name:"新增情景模式名稱",delete_confirm:"「{{name}}」將被刪除,確認?",edit_name:"變更情景模式名稱",help:"每個情景模式相當於一套獨立的設定,一些選項(帶有 {*})會隨著情景模式變化。滑鼠懸浮在字典介面的選單圖示上可快速切換,或者焦點選中選單圖示然後按{↓}。"}},profile:{mtaAutoUnfold:"自動展開多行搜尋框",waveform:"波形控制",waveform_help:"在字典介面下方顯示音訊控制面板展開按鈕。關閉依然可以播放音訊。",stickyFold:"記憶摺疊",stickyFold_help:"查字時記住之前手動展開和收起字典的狀態,只在同個頁面生效。",opt:{item_extra:"此選項會因「情景模式」而改變。",mtaAutoUnfold:{always:"保持展開",never:"永遠不展開",once:"展開一次",popup:"只在右上彈框展開",hide:"隱藏"},dict_selected:"已選字典"}},dict:{add:"新增字典",more_options:"更多設定",selectionLang:"選詞語言",selectionLang_help:"當選中的文字包含相對應的語言時才顯示這個字典。",defaultUnfold:"自動展開",defaultUnfold_help:"關閉後此字典將不會自動搜尋,除非點選「展開」箭頭。適合一些需要時再深入瞭解的字典,以加快初次查字典速度。",selectionWC:"選詞字數",selectionWC_help:"當選中文字的字數符合條件時才顯示該詞典。可設定 999999 如果不希望限制字數。",preferredHeight:"字典預設高度",preferredHeight_help:"字典初次出現的最大高度。超出此高度的內容將被隱藏並顯示下箭頭。可設定 999999 如果不希望限制高度。",lang:{de:"德",en:"英",es:"西",fr:"法",ja:"日",kor:"韓",zhs:"简",zht:"繁"}},syncService:{description:"資料同步設定。",start:"同步進行中,結束前請勿關閉此頁面。",finished:"同步結束",success:"同步成功",failed:"同步失敗",close_confirm:"設定未儲存,關閉?",delete_confirm:"清空同步設定?",shanbay:{description:"先去 shanbay.com 登入扇貝(退出後將失效)。開啟後將單向同步到扇貝生詞本(只從沙拉查詞到扇貝),只同步新增單詞(刪除不同步),只同步單詞本身(上下文等均不能同步)。生詞需要扇貝單詞庫支援才能被新增。",login:"將開啟扇貝官網,請登入再回來重新開啟。",sync_all:"上傳現有的所有生字",sync_all_confirm:"生詞本存在較多單詞,將分批上傳。注意短時間上傳太多有可能會導致封號,且不可恢復,確定繼續?",sync_last:"上傳最近的一個生字"},eudic:{description:"使用歐路詞典同步單詞前,必須先在歐路官網(my.eudic.net/home/index)創建默認生詞本(一般初次手動導入會自動生成且無法删除)。注意短時間內不要頻繁同步,可能會造成暫時封停。",token:"授權資訊",getToken:"獲取授權",verify:"檢查 授權資訊",verified:"成功檢查 歐路授權資訊",enable_help:"開啟後每次添加生詞將自動單向同步到歐路默認生詞本(salad到歐路生詞本),只同步新增單詞本身(删除不同步)",token_help:"請確認設定有效的個人授權資訊,否則將同步失敗。可點擊底部按鈕檢查。",sync_all:"同步全部生詞",sync_help:"將salad單詞本中現有的所有生詞,同步到歐路詞典默認生詞本中(需同時開啟上方同步開關,點擊保存)",sync_all_confirm:"注意短時間內頻繁同步有可能會導致接下來一小段時間的封停,確定繼續?"},webdav:{description:"應用設定(包括本設定)已通過瀏覽器自動同步。生詞本可通過本設定實現 WebDAV 同步。",jianguo:"參考堅果雲設定",checking:"連線中...",exist_confirm:"伺服器上已存在 Saladict 目錄。是否下載合併到本地?",upload_confirm:"馬上上傳本地資料到伺服器?",verify:"驗證伺服器",verified:"成功驗證伺服器",duration:"同步頻率",duration_help:"新增生字後會馬上上傳,資料會在上傳前保證同步,所以如果不需要多個瀏覽器即時檢視更新,可將更新檢查週期調大些以減少資源佔用及避免伺服器拒絕回應。",passwd:"密碼",url:"伺服器位址",user:"帳戶"},ankiconnect:{description:"請確保 Anki Connect 已安裝且 Anki 在執行。",checking:"連線中...",deck_confirm:"牌組「{{deck}}」不存在 Anki 中,是否自動新增?",deck_error:"無法建立牌組「{{deck}}」。",notetype_confirm:"筆記型別「{{noteType}}」不存在 Anki 中,是否自動新增?",notetype_error:"無法建立筆記型別「{{noteType}}」。",upload_confirm:"馬上同步本地生詞到 Anki?重複的單詞(相同“Date”)會被跳過。",add_yourself:"請在 Anki 中自行新增。",verify:"檢查 Anki Connect",verified:"成功檢查 Anki Connect",enable_help:"開啟後每次儲存新單字都會自動同步到 Anki。Anki 上已存在的單字(以“Date”為準)可以在單字編輯器中編輯強制更新覆蓋到 Anki。",host:"地址",port:"埠",key:"Key",key_help:"可在 Anki Connect 外掛中設定 key 以做簡單令牌。",deckName:"牌組",deckName_help:"如果不存在的話可以點下方「檢查 Anki Connect」讓本設定生成預設牌組。",noteType:"筆記型別",noteType_help:"Anki 筆記型別包括一套欄位和卡片型別。如果不存在的話可以點下方「檢查 Anki Connect」讓本設定生成一套預設的筆記型別。如需自行在 Anki 新增或修改卡片模板請不要更改欄位名字。",tags:"標籤",tags_help:"Anki 筆記可以附帶標籤。以逗號分割。",escapeHTML:"轉義 HTML",escapeHTML_help:"對筆記內容中的 HTML 字元進行轉義。如手動進行 HTML 排版請關閉選項。",syncServer:"同步伺服器",syncServer_help:"單詞新增到本地 Anki 後自動同步到伺服器(如 AnkiWeb)。"}},titlebarOffset:{title:"校準標題欄高度",help:"不同的系統以及不同的瀏覽器設定會影響標題欄高度,沙拉查詞會嘗試自動校準,如彈出視窗依然出現偏移可自行調整。",main:"普通視窗",main_help:"普通視窗可能沒有標題欄。",panel:"簡化視窗",panel_help:"沙拉查詞的獨立視窗快捷查詞介面為簡化視窗。",calibrate:"自動校準",calibrateSuccess:"自動校準成功",calibrateError:"自動校準失敗"},headInfo:{acknowledgement:{title:"特別鳴謝",yipanhuasheng:"新增韋氏詞典、美國傳統詞典、牛津學習詞典與歐路生詞同步;更新 Urban 詞典與 Naver 詞典",naver:"協助新增 Naver 韓國語字典",shanbay:"編寫扇貝詞典模組",trans_tw:"提供部分繁體中文翻譯",weblio:"協助新增 Weblio 辭書"},contact_author:"聯絡作者",donate:"支援項目",instructions:"使用說明",report_issue:"軟體使用疑問和建言"},form:{url_error:"不正確的超連結格式。",number_error:"不正確的數字"},preload:{title:"預先下載",auto:"自動查字",auto_help:"字典介面出現時自動搜尋預先載入內容。",clipboard:"剪貼簿",help:"字典介面出現時預先載入內容到搜尋框。",selection:"滑鼠選字"},locations:{CENTER:"居中",TOP:"上方",RIGHT:"右方",BOTTOM:"下方",LEFT:"左方",TOP_LEFT:"左上",TOP_RIGHT:"右上",BOTTOM_LEFT:"左下",BOTTOM_RIGHT:"右下"},import_export_help:"設定已通過瀏覽器自動同步,也可以手動匯入匯出。備份為明文儲存,對安全性有要求的請自行加密。",import:{title:"匯入設定",error:{title:"匯入失敗",parse:"備份解析失敗,格式不正確。",load:"備份載入失敗,瀏覽器無法獲得本地備份。",empty:"備份中沒有發現有效資料。"}},export:{title:"匯出設定",error:{title:"匯出失敗",empty:"沒有設定可以匯出。",parse:"設定解析失敗,無法匯出。"}},dictAuth:{description:"隨著沙拉查詞使用者增多,如經常使用機器翻譯,建議到官網申請帳號以獲得更穩定的體驗以及更準確的結果。以下帳號資料只會保留在瀏覽器中。",dictHelp:"見{詞典}官網。",manage:"管理私用帳號"},third_party_privacy:"第三方隱私",third_party_privacy_help:"沙拉查詞不會收集更多資料,但在查詞時單詞以及相關 cookies 資料會發送給第三方詞典服務(與在該網站上查詞一樣),如果你不希望被該服務獲取資料,請在「詞典設定」中關閉相應詞典。",third_party_privacy_extra:"本特性為沙拉查詞核心功能,無法關閉。",permissions:{success:"申請許可權成功",cancel_success:"取消許可權成功",failed:"申請許可權失敗",cancelled:"申請許可權被使用者取消",missing:"缺少許可權「{{permission}}」。請給予許可權或者關閉相關功能。",clipboardRead:"讀取剪貼簿",clipboardRead_help:"快捷查詞或者右上彈框設定預載入剪貼簿時需要讀取剪貼簿許可權。",clipboardWrite:"寫入剪貼簿",clipboardWrite_help:"機器翻譯詞典標題欄選單複製原文譯文或生詞本匯出到剪貼簿需要寫入剪貼簿許可權。"},unsupportedFeatures:{ff:"火狐尚不支援「{{feature}}」功能。"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/129.17a85eeb.js b/plugins/saladict-ztools/ext-saladic/assets/116.252b0515.js similarity index 88% rename from plugins/saladict-ztools/ext-saladic/assets/129.17a85eeb.js rename to plugins/saladict-ztools/ext-saladic/assets/116.252b0515.js index d3e7f29a..0abf6ba6 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/129.17a85eeb.js +++ b/plugins/saladict-ztools/ext-saladic/assets/116.252b0515.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[129],{562:function(t,e,n){"use strict";n.r(e),n.d(e,"locale",(function(){return o}));const o={title:"沙拉查詞-右上彈框",app_active_title:"啟用滑鼠選字",app_temp_active_title:"對目前頁面暫時關閉滑鼠選字",instant_capture_pinned:"(釘選)",instant_capture_title:"啟用滑鼠懸浮取詞",notebook_added:"已新增",notebook_empty:"目前頁面沒有發現選詞",notebook_error:"無法新增選詞到生字本",page_no_response:"頁面無回應",qrcode_title:"目前頁面二維條碼"}}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[116],{447:function(t,e,n){"use strict";n.r(e),n.d(e,"locale",(function(){return o}));const o={title:"沙拉查詞-右上彈框",app_active_title:"啟用滑鼠選字",app_temp_active_title:"對目前頁面暫時關閉滑鼠選字",instant_capture_pinned:"(釘選)",instant_capture_title:"啟用滑鼠懸浮取詞",notebook_added:"已新增",notebook_empty:"目前頁面沒有發現選詞",notebook_error:"無法新增選詞到生字本",page_no_response:"頁面無回應",qrcode_title:"目前頁面二維條碼"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/116.8b88f77c.js b/plugins/saladict-ztools/ext-saladic/assets/116.8b88f77c.js deleted file mode 100644 index 0a124322..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/116.8b88f77c.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[116],{549:function(e,t,l){"use strict";l.r(t),l.d(t,"locale",(function(){return o}));const o={title:{history:"Saladict Search History",notebook:"Saladict Notebook"},localonly:"local only",column:{add:"Add",date:"Date",edit:"Edit",note:"Note",source:"Source",trans:"Translation",word:"Word"},delete:{title:"Delete",all:"Delete all",confirm:". Confirm?",page:"Delete page",selected:"Delete selected"},export:{title:"Export",all:"Export all",description:"Describe the shape of each record: ",explain:"How to export to ANKI and other tools",gencontent:"Generated Content",linebreak:{default:"Keep default linebreaks",n:"replace linebreaks with \\n",br:"replace linebreaks with
",p:"replace linebreaks with

",space:"replace linebreaks with space"},page:"Export page",placeholder:"Placeholder",htmlescape:{title:"Escape HTML characters in notes",text:"Escape HTML"},selected:"Export selected"},filterWord:{chs:"Chinese",eng:"English",word:"Word",phrase:"Phrase"},wordCount:{selected:"{{count}} item selected",selected_plural:"{{count}} item selected",total:"{{count}} item total",total_plural:"{{count}} item total"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/130.6dcf3152.js b/plugins/saladict-ztools/ext-saladic/assets/117.88a00360.js similarity index 94% rename from plugins/saladict-ztools/ext-saladic/assets/130.6dcf3152.js rename to plugins/saladict-ztools/ext-saladic/assets/117.88a00360.js index a6fec3d2..9b71d3d9 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/130.6dcf3152.js +++ b/plugins/saladict-ztools/ext-saladic/assets/117.88a00360.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[130],{563:function(t,e,l){"use strict";l.r(e),l.d(e,"locale",(function(){return o}));const o={title:{history:"沙拉查詞-查單字紀錄",notebook:"沙拉查詞-生字本"},localonly:"僅本機儲存",column:{add:"新增",date:"日期",edit:"編輯",note:"筆記",source:"來源",trans:"翻譯",word:"單字"},delete:{title:"刪除單字",all:"刪除所有單字",confirm:",確認?",page:"刪除本頁單字",selected:"刪除選取單字"},export:{title:"匯出文字",all:"匯出所有單字",description:"編寫產生的範本,描述每條記錄產生的樣子:",explain:"如何配合 ANKI 等工具",gencontent:"代表的內容",linebreak:{default:"保留換行",n:"換行替換為 \\n",br:"換行替換為
",p:"換行替換為

",space:"換行替換為空格"},page:"輸出本頁單字",placeholder:"預留位置",htmlescape:{title:"對筆記內容中的 HTML 字元進行轉義",text:"轉義 HTML"},selected:"輸出選中單字"},filterWord:{chs:"中文",eng:"英文",word:"單字",phrase:"片語和句子"},wordCount:{selected:"選中 {{count}} 個",selected_plural:"選中 {{count}} 個",total:"共 {{count}} 個",total_plural:"共 {{count}} 個"}}}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[117],{448:function(t,e,l){"use strict";l.r(e),l.d(e,"locale",(function(){return o}));const o={title:{history:"沙拉查詞-查單字紀錄",notebook:"沙拉查詞-生字本"},localonly:"僅本機儲存",column:{add:"新增",date:"日期",edit:"編輯",note:"筆記",source:"來源",trans:"翻譯",word:"單字"},delete:{title:"刪除單字",all:"刪除所有單字",confirm:",確認?",page:"刪除本頁單字",selected:"刪除選取單字"},export:{title:"匯出文字",all:"匯出所有單字",description:"編寫產生的範本,描述每條記錄產生的樣子:",explain:"如何配合 ANKI 等工具",gencontent:"代表的內容",linebreak:{default:"保留換行",n:"換行替換為 \\n",br:"換行替換為
",p:"換行替換為

",space:"換行替換為空格"},page:"輸出本頁單字",placeholder:"預留位置",htmlescape:{title:"對筆記內容中的 HTML 字元進行轉義",text:"轉義 HTML"},selected:"輸出選中單字"},filterWord:{chs:"中文",eng:"英文",word:"單字",phrase:"片語和句子"},wordCount:{selected:"選中 {{count}} 個",selected_plural:"選中 {{count}} 個",total:"共 {{count}} 個",total_plural:"共 {{count}} 個"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/118.3da51d76.js b/plugins/saladict-ztools/ext-saladic/assets/118.3da51d76.js new file mode 100644 index 00000000..5e816bc0 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/118.3da51d76.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[118],{685:function(e,t,a){"use strict";a.r(t),a.d(t,"DictEudic",(function(){return i}));var c=a(0),n=a.n(c),l=a(97);const i=({result:e})=>n.a.createElement("ul",{className:"dictEudic-List"},e.map(e=>n.a.createElement("li",{key:e.chs,className:"dictEudic-Item"},n.a.createElement("p",null,e.eng," ",n.a.createElement(l.c,{src:e.mp3})),n.a.createElement("p",null,e.chs),n.a.createElement("footer",null,e.channel&&n.a.createElement("p",{className:"dictEudic-Channel"},e.channel)))));t.default=i}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/119.5a66ec96.js b/plugins/saladict-ztools/ext-saladic/assets/119.5a66ec96.js new file mode 100644 index 00000000..0f7e0d09 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/119.5a66ec96.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[119],{677:function(e,a,t){"use strict";t.r(a),t.d(a,"DictGuoyu",(function(){return l}));var n=t(0),s=t.n(n),c=t(97);const l=({result:e})=>s.a.createElement(s.a.Fragment,null,e.h&&e.h.map(a=>s.a.createElement("div",{className:"dictMoe-H",key:a.p},s.a.createElement("h1",{className:"dictMoe-Title"},r(e.t)),s.a.createElement("span",{className:"dictMoe-Pinyin"},a.p||""),s.a.createElement(c.c,{src:a["="]}),a.d&&s.a.createElement("ol",{className:"dictMoe-Defs"},a.d.map(e=>s.a.createElement("li",{key:e.f},s.a.createElement("p",{className:"dictMoe-Defs_F"},r(e.f)),e.e&&e.e.map(e=>s.a.createElement("p",{key:e,className:"dictMoe-Defs_E"},r(e)))))))),e.translation&&s.a.createElement(s.a.Fragment,null,e.translation.English&&s.a.createElement("div",{className:"dictMoe-Trans"},s.a.createElement("span",{className:"dictMoe-Trans_Pos"},"英."),s.a.createElement("span",{className:"dictMoe-Trans_Def"},e.translation.English.join(", "))),e.translation.francais&&s.a.createElement("div",{className:"dictMoe-Trans"},s.a.createElement("span",{className:"dictMoe-Trans_Pos"},"法."),s.a.createElement("span",{className:"dictMoe-Trans_Def"},e.translation.francais.join(", "))),e.translation.Deutsch&&s.a.createElement("div",{className:"dictMoe-Trans"},s.a.createElement("span",{className:"dictMoe-Trans_Pos"},"德."),s.a.createElement("span",{className:"dictMoe-Trans_Def"},e.translation.Deutsch.join(", ")))));function r(e){return e?e.split(/`(.*?)~/g).map((e,a)=>a%2==0?e.replace("例⃝",""):s.a.createElement("a",{key:a,className:"dictMoe-Link",href:"https://www.moedict.tw/"+e},e)):""}a.default=l}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/120.42b7a63d.js b/plugins/saladict-ztools/ext-saladic/assets/120.42b7a63d.js new file mode 100644 index 00000000..5b4f69b7 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/120.42b7a63d.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[120],{690:function(e,a,t){"use strict";t.r(a),t.d(a,"DictMerriamWebster",(function(){return i}));var m=t(0),l=t.n(m),n=t(97);const i=({result:e})=>{var a,t;return l.a.createElement("ul",null,e.groups.map((e,a)=>{var t,m,i,s;return l.a.createElement("li",{key:"mw-g-"+a,className:"mw-item"},l.a.createElement("div",{className:"mw-top-container"},l.a.createElement("div",{className:"mw-title-area"},l.a.createElement("span",{className:"mw-title"},e.title),l.a.createElement("span",{className:"mw-pos"},"(",e.pos,")")),l.a.createElement("div",{className:"mw-prs"},(null===(t=e.pr)||void 0===t?void 0:t.syllable)&&l.a.createElement("span",{className:"mw-syllable"},null===(m=e.pr)||void 0===m?void 0:m.syllable),(null===(i=e.pr)||void 0===i?void 0:i.phonetics)&&(null===(s=e.pr)||void 0===s?void 0:s.phonetics.map((e,a)=>l.a.createElement("div",{key:"mw-pt-"+a,className:e.audio?"mw-pt":"mw-pt-text"},e.symbol,e.audio&&l.a.createElement(n.c,{src:e.audio})))))),e.sections.map((e,a)=>l.a.createElement("div",{key:"mw-section-"+a,className:"mw-section"},e.title&&l.a.createElement("div",{className:"mw-section-title"},e.title),l.a.createElement("div",null,e.meaningGroups.map((e,a)=>l.a.createElement("div",{key:"mw-mg-"+a,className:"mw-mg-area"},l.a.createElement("div",{className:"mw-mg-left"},l.a.createElement("div",{className:"mw-mg-sign"}," ",a+1),l.a.createElement("div",{className:"mw-mg-line"})),l.a.createElement("div",{className:"mw-mg-right"},e.map((a,t)=>{var m;return l.a.createElement("div",{key:"mw-meaning-"+t,className:"mw-mean-area"},(a.examples||a.explaining)&&e.length>1&&l.a.createElement("span",{className:"mw-mean-sign"},String.fromCharCode(t+97)),a.explaining&&l.a.createElement("div",{className:"mw-mean-text"},a.explaining),a.examples&&l.a.createElement("div",{className:"mw-mean-ex-area"},null===(m=a.examples)||void 0===m?void 0:m.map((e,a)=>l.a.createElement("div",{key:"mw-example-"+a,className:"mw-mean-ex-item"},e))))}))))))))}),e.etymology&&l.a.createElement("li",null,l.a.createElement("div",{className:"mw-extra mw-title-area"},l.a.createElement("div",{className:"mw-extra-title mw-title"},"Etymology"),null===(a=e.etymology)||void 0===a?void 0:a.map((e,a)=>l.a.createElement("div",{key:"mw-etymolog"+a},e[0]&&l.a.createElement("div",{className:"mw-section-title"},e[0]),l.a.createElement("div",null,e[1]))))),e.synonyms&&l.a.createElement("li",null,l.a.createElement("div",{className:"mw-extra mw-title-area"},l.a.createElement("div",{className:"mw-extra-title mw-title"},"Synonyms"),null===(t=e.synonyms)||void 0===t?void 0:t.map((e,a)=>l.a.createElement("div",{key:"mw-etymolog"+a},e[0]&&l.a.createElement("div",{className:"mw-section-title"},e[0]),l.a.createElement("div",null,e[1].join("; ")))))))};a.default=i}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/145.c8dea7fc.js b/plugins/saladict-ztools/ext-saladic/assets/121.e4996da1.js similarity index 82% rename from plugins/saladict-ztools/ext-saladic/assets/145.c8dea7fc.js rename to plugins/saladict-ztools/ext-saladic/assets/121.e4996da1.js index 397950ef..3e2b0b72 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/145.c8dea7fc.js +++ b/plugins/saladict-ztools/ext-saladic/assets/121.e4996da1.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[145],{662:function(a,t,e){"use strict";e.r(t),e.d(t,"DictVocabulary",(function(){return r}));var n=e(0),c=e.n(n);const r=({result:a})=>c.a.createElement(c.a.Fragment,null,c.a.createElement("p",{className:"dictVocabulary-Short"},a.short),c.a.createElement("p",{className:"dictVocabulary-Long"},a.long));t.default=r}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[121],{699:function(a,t,e){"use strict";e.r(t),e.d(t,"DictVocabulary",(function(){return r}));var n=e(0),c=e.n(n);const r=({result:a})=>c.a.createElement(c.a.Fragment,null,c.a.createElement("p",{className:"dictVocabulary-Short"},a.short),c.a.createElement("p",{className:"dictVocabulary-Long"},a.long));t.default=r}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/131.cc87f411.js b/plugins/saladict-ztools/ext-saladic/assets/131.cc87f411.js deleted file mode 100644 index 7ad38f97..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/131.cc87f411.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[131],{639:function(e,t,a){"use strict";a.r(t),a.d(t,"DictBing",(function(){return s}));var n=a(0),c=a.n(n),l=a(119);const s=({result:e})=>{switch(e.type){case"lex":return function(e){return c.a.createElement(c.a.Fragment,null,c.a.createElement("h1",{className:"dictBing-Title"},e.title),e.phsym&&c.a.createElement("ul",{className:"dictBing-Phsym"},e.phsym.map(e=>c.a.createElement("li",{className:"dictBing-PhsymItem",key:e.lang+e.pron},e.lang," ",c.a.createElement(l.c,{src:e.pron})))),e.cdef&&c.a.createElement("ul",{className:"dictBing-Cdef"},e.cdef.map(e=>c.a.createElement("li",{className:"dictBing-CdefItem",key:e.pos},c.a.createElement("span",{className:"dictBing-CdefItem_Pos"},e.pos),c.a.createElement("span",{className:"dictBing-CdefItem_Def"},e.def)))),e.infs&&c.a.createElement("ul",{className:"dictBing-Inf"},"词形:",e.infs.map(e=>c.a.createElement("li",{className:"dictBing-InfItem",key:e},e))),e.sentences&&c.a.createElement("ol",{className:"dictBing-SentenceList"},e.sentences.map(e=>c.a.createElement("li",{className:"dictBing-SentenceItem",key:e.en},e.en&&c.a.createElement("p",null,c.a.createElement("span",{dangerouslySetInnerHTML:{__html:e.en}})," ",c.a.createElement(l.c,{src:e.mp3})),e.chs&&c.a.createElement("p",{dangerouslySetInnerHTML:{__html:e.chs}}),e.source&&c.a.createElement("footer",{className:"dictBing-SentenceSource"},e.source)))))}(e);case"machine":return function(e){return c.a.createElement("p",null,e.mt)}(e);case"related":return function(e){return c.a.createElement(c.a.Fragment,null,c.a.createElement("h1",{className:"dictBing-Related_Title"},e.title),e.defs.map(e=>c.a.createElement(c.a.Fragment,{key:e.title},c.a.createElement("h2",{className:"dictBing-Related_Title"},e.title),c.a.createElement("ul",null,e.meanings.map(e=>c.a.createElement("li",{className:"dictBing-Related_Meaning",key:e.word},c.a.createElement("a",{className:"dictBing-Related_Meaning_Word",href:e.href},e.word),c.a.createElement("span",{className:"dictBing-Related_Meaning_Def"},e.def)))))))}(e);default:return null}};t.default=s}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/132.16a83c04.js b/plugins/saladict-ztools/ext-saladic/assets/132.16a83c04.js deleted file mode 100644 index 498aa57a..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/132.16a83c04.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[132],{641:function(t,e,n){"use strict";n.r(e),n.d(e,"DictCambridge",(function(){return c}));var a=n(0),s=n.n(a);const c=t=>s.a.createElement(s.a.Fragment,null,t.result.map(t=>s.a.createElement("section",{key:t.id,id:t.id,className:"dictCambridge-Entry",onClick:i},s.a.createElement("div",{dangerouslySetInnerHTML:{__html:t.html}}))));function i(t){const e=t.nativeEvent.target;e&&e.classList&&(e.classList.contains("js-accord")&&e.classList.toggle("open"),e.classList.contains("daccord_h")&&e.parentElement.classList.toggle("open"))}e.default=c}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/133.7ae496be.js b/plugins/saladict-ztools/ext-saladic/assets/133.7ae496be.js deleted file mode 100644 index 75501031..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/133.7ae496be.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[133],{644:function(e,t,n){"use strict";n.r(t),n.d(t,"DictEtymonline",(function(){return r}));var l=n(0),a=n.n(l);const r=({result:e})=>a.a.createElement("ul",{className:"dictEtymonline-List"},e.map(e=>a.a.createElement("li",{key:e.title,className:"dictEtymonline-Item"},a.a.createElement("h2",{id:e.id,className:"dictEtymonline-Title"},e.href?a.a.createElement("a",{href:e.href,target:"_blank",rel:"nofollow noopener noreferrer"},e.title):e.title),a.a.createElement("p",{className:"dictEtymonline-Def",dangerouslySetInnerHTML:{__html:e.def}}),e.chart?a.a.createElement("img",{src:e.chart,alt:"Origin of "+e.title}):null)));t.default=r}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/134.bc25c6c5.js b/plugins/saladict-ztools/ext-saladic/assets/134.bc25c6c5.js deleted file mode 100644 index f06436d1..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/134.bc25c6c5.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[134],{645:function(e,t,a){"use strict";a.r(t),a.d(t,"DictEudic",(function(){return i}));var c=a(0),n=a.n(c),l=a(119);const i=({result:e})=>n.a.createElement("ul",{className:"dictEudic-List"},e.map(e=>n.a.createElement("li",{key:e.chs,className:"dictEudic-Item"},n.a.createElement("p",null,e.eng," ",n.a.createElement(l.c,{src:e.mp3})),n.a.createElement("p",null,e.chs),n.a.createElement("footer",null,e.channel&&n.a.createElement("p",{className:"dictEudic-Channel"},e.channel)))));t.default=i}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/135.58376c6c.js b/plugins/saladict-ztools/ext-saladic/assets/135.58376c6c.js deleted file mode 100644 index 54d9437b..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/135.58376c6c.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[135],{647:function(t,e,n){"use strict";n.r(e),n.d(e,"DictGoogleDict",(function(){return s}));var a=n(0),l=n.n(a);const s=({result:t})=>l.a.createElement("div",null,t.styles.map((t,e)=>l.a.createElement("style",{key:e},t)),l.a.createElement("div",{onClick:i,className:"xpdopen",dangerouslySetInnerHTML:{__html:t.entry}}));function i(t){for(let e=null,n=t.target;n;n=n.parentElement)if("Stv3Z"===n.getAttribute("jsname")?e=!0:"hj0qK"===n.getAttribute("jsname")&&(e=!1),n.classList&&n.classList.contains("P2Dfkf")){if(null===e)continue;e?n.classList.replace("SkSOXb","KAwqid"):n.classList.replace("KAwqid","SkSOXb");break}}e.default=s}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/136.4bdc65cf.js b/plugins/saladict-ztools/ext-saladic/assets/136.4bdc65cf.js deleted file mode 100644 index 02c57b81..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/136.4bdc65cf.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[136],{636:function(e,a,t){"use strict";t.r(a),t.d(a,"DictGuoyu",(function(){return l}));var n=t(0),s=t.n(n),c=t(119);const l=({result:e})=>s.a.createElement(s.a.Fragment,null,e.h&&e.h.map(a=>s.a.createElement("div",{className:"dictMoe-H",key:a.p},s.a.createElement("h1",{className:"dictMoe-Title"},r(e.t)),s.a.createElement("span",{className:"dictMoe-Pinyin"},a.p||""),s.a.createElement(c.c,{src:a["="]}),a.d&&s.a.createElement("ol",{className:"dictMoe-Defs"},a.d.map(e=>s.a.createElement("li",{key:e.f},s.a.createElement("p",{className:"dictMoe-Defs_F"},r(e.f)),e.e&&e.e.map(e=>s.a.createElement("p",{key:e,className:"dictMoe-Defs_E"},r(e)))))))),e.translation&&s.a.createElement(s.a.Fragment,null,e.translation.English&&s.a.createElement("div",{className:"dictMoe-Trans"},s.a.createElement("span",{className:"dictMoe-Trans_Pos"},"英."),s.a.createElement("span",{className:"dictMoe-Trans_Def"},e.translation.English.join(", "))),e.translation.francais&&s.a.createElement("div",{className:"dictMoe-Trans"},s.a.createElement("span",{className:"dictMoe-Trans_Pos"},"法."),s.a.createElement("span",{className:"dictMoe-Trans_Def"},e.translation.francais.join(", "))),e.translation.Deutsch&&s.a.createElement("div",{className:"dictMoe-Trans"},s.a.createElement("span",{className:"dictMoe-Trans_Pos"},"德."),s.a.createElement("span",{className:"dictMoe-Trans_Def"},e.translation.Deutsch.join(", ")))));function r(e){return e?e.split(/`(.*?)~/g).map((e,a)=>a%2==0?e.replace("例⃝",""):s.a.createElement("a",{key:a,className:"dictMoe-Link",href:"https://www.moedict.tw/"+e},e)):""}a.default=l}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/137.f53685a2.js b/plugins/saladict-ztools/ext-saladic/assets/137.f53685a2.js deleted file mode 100644 index f2148c1a..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/137.f53685a2.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[137],{648:function(e,t,a){"use strict";a.r(t),a.d(t,"DictHjDict",(function(){return c}));var n=a(0),r=a.n(n),s=a(9);const c=e=>"lex"===e.result.type?r.a.createElement(l,{...e}):"related"===e.result.type?r.a.createElement(i,{...e}):null;function l(e){const{header:t,entries:a}=e.result;return r.a.createElement("div",{className:"dictHjdict-Entry",onClick:u},r.a.createElement(o,{...e}),t&&r.a.createElement("header",{className:"word-details-header",dangerouslySetInnerHTML:{__html:t}}),a.map((e,t)=>r.a.createElement("div",{dangerouslySetInnerHTML:{__html:e},key:t})))}function i(e){const{content:t}=e.result;return r.a.createElement("div",null,r.a.createElement(o,{...e}),r.a.createElement("div",{className:"dictHjdict-Entry",dangerouslySetInnerHTML:{__html:t}}))}t.default=c;const d=["w","jp/cj","jp/jc","kr","fr","de","es"];function o(e){const{langCode:t}=e.result,{t:a}=Object(s.e)("dicts");return r.a.createElement("select",{value:t,onChange:t=>e.searchText({id:"hjdict",payload:{langCode:t.target.value}})},d.map(e=>r.a.createElement("option",{key:e,value:e},a("hjdict.options.chsas-"+e))))}function u(e){const t=function(e){for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains("word-details-tab"))return t;return null}(e.target);if(t){if(t.classList.contains("word-details-tab-active"))return;const a=e.currentTarget;if(a){const e=+(t.dataset.categories||"0"),n=a.querySelectorAll(".word-details-pane");a.querySelectorAll(".word-details-tab").forEach((t,a)=>{a===e?(t.classList.add("word-details-tab-active"),n[a].classList.add("word-details-pane-active")):(t.classList.remove("word-details-tab-active"),n[a].classList.remove("word-details-pane-active"))})}}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/138.e9badec3.js b/plugins/saladict-ztools/ext-saladic/assets/138.e9badec3.js deleted file mode 100644 index 213c2d9b..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/138.e9badec3.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[138],{649:function(e,t,a){"use strict";a.r(t),a.d(t,"Jikipedia",(function(){return r}));var i=a(0),l=a.n(i);const r=({result:e})=>l.a.createElement("ul",{className:"dictJikipedia-List"},e.map(e=>l.a.createElement("li",{key:e.title+e.url,className:"dictJikipedia-Item"},l.a.createElement("h2",{className:"dictJikipedia-Title"},l.a.createElement("a",{href:e.url,target:"_blank",rel:"nofollow noopener noreferrer"},e.title)),e.content&&l.a.createElement("div",{className:"dictJikipedia-Content",dangerouslySetInnerHTML:{__html:e.content}}),l.a.createElement("footer",{className:"dictJikipedia-Footer"},e.author&&l.a.createElement("a",{className:"dictJikipedia-Author",href:e.author.url,target:"_blank",rel:"nofollow noopener noreferrer"},e.author.name),e.likes>0&&l.a.createElement("span",{className:"dictJikipedia-Thumbs"},l.a.createElement("svg",{className:"dictJikipedia-IconThumbsUp",width:"0.9em",height:"0.9em",fill:"#666",viewBox:"0 0 561 561"},l.a.createElement("path",{d:"M0 535.5h102v-306H0v306zM561 255c0-28.05-22.95-51-51-51H349.35l25.5-117.3v-7.65c0-10.2-5.1-20.4-10.2-28.05L336.6 25.5 168.3 193.8c-10.2 7.65-15.3 20.4-15.3 35.7v255c0 28.05 22.95 51 51 51h229.5c20.4 0 38.25-12.75 45.9-30.6l76.5-181.05c2.55-5.1 2.55-12.75 2.55-17.85v-51H561c0 2.55 0 0 0 0z"})),e.likes)))));t.default=r}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/139.d9112d3f.js b/plugins/saladict-ztools/ext-saladic/assets/139.d9112d3f.js deleted file mode 100644 index f9fcc289..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/139.d9112d3f.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[139],{650:function(e,t,a){"use strict";a.r(t),a.d(t,"DictJukuu",(function(){return c}));var n=a(0),u=a.n(n),l=a(9);const c=e=>{const{result:t,searchText:a}=e,{t:n}=Object(l.e)("dicts");return u.a.createElement(u.a.Fragment,null,u.a.createElement("select",{onChange:e=>{e.target.value&&a({id:"jukuu",payload:{lang:e.target.value}})}},u.a.createElement("option",{value:"zheng",selected:"zheng"===t.lang},n("jukuu.options.lang-zheng")),u.a.createElement("option",{value:"engjp",selected:"engjp"===t.lang},n("jukuu.options.lang-engjp")),u.a.createElement("option",{value:"zhjp",selected:"zhjp"===t.lang},n("jukuu.options.lang-zhjp"))),u.a.createElement("ul",{className:"dictJukuu-Sens"},t.sens.map((e,t)=>u.a.createElement("li",{key:t,className:"dictJukuu-Sen"},u.a.createElement("p",{dangerouslySetInnerHTML:{__html:e.trans}}),u.a.createElement("p",{className:"dictJukuu-Ori"},e.original),u.a.createElement("p",{className:"dictJukuu-Src"},e.src)))))};t.default=c}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/140.3ffc4a19.js b/plugins/saladict-ztools/ext-saladic/assets/140.3ffc4a19.js deleted file mode 100644 index b24ad487..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/140.3ffc4a19.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[140],{651:function(e,t,n){"use strict";n.r(t),n.d(t,"DictLexico",(function(){return r}));var l=n(0),a=n.n(l);const r=({result:e})=>{switch(e.type){case"lex":return function(e){return a.a.createElement("div",{className:"dictLexico-Lex",dangerouslySetInnerHTML:{__html:e.entry},onClick:c})}(e);case"related":return function(e){return a.a.createElement(a.a.Fragment,null,a.a.createElement("p",null,"Did you mean:"),a.a.createElement("ul",{className:"dictLexico-Related"},e.list.map((e,t)=>a.a.createElement("li",{key:t},a.a.createElement("a",{rel:"nofollow noopener noreferrer",target:"_blank",href:e.href},e.text)))))}(e);default:return null}};function c(e){var t,n,l;const a=e.target,r=(null===(t=a.classList)||void 0===t?void 0:t.contains("moreInfo"))?a:(null===(n=a.parentElement)||void 0===n||null===(l=n.classList)||void 0===l?void 0:l.contains("moreInfo"))?a.parentElement:null;r&&r.classList.toggle("active")}t.default=r}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/141.3ed03089.js b/plugins/saladict-ztools/ext-saladic/assets/141.3ed03089.js deleted file mode 100644 index bc679b80..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/141.3ed03089.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[141],{656:function(e,a,t){"use strict";t.r(a),t.d(a,"DictNaver",(function(){return r}));var n=t(0),l=t.n(n);const r=e=>l.a.createElement(l.a.Fragment,null,l.a.createElement("select",{onChange:a=>e.searchText({id:"naver",payload:{lang:a.target.value}}),value:e.result.lang},l.a.createElement("option",{key:"zh",value:"zh"},"中韩"),l.a.createElement("option",{key:"ja",value:"ja"},"日韓")),l.a.createElement("div",{className:"dictNaver-Entry-"+e.result.lang,dangerouslySetInnerHTML:{__html:e.result.entry}}));a.default=r}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/142.47432457.js b/plugins/saladict-ztools/ext-saladic/assets/142.47432457.js deleted file mode 100644 index 5f4465d3..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/142.47432457.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[142],{657:function(e,t,a){"use strict";a.r(t),a.d(t,"DictRenren",(function(){return s}));var n=a(0),c=a.n(n),l=a(119),r=a(1);const i=({slide:e})=>{const[t,a]=Object(n.useState)(240),[r,i]=Object(n.useState)(!1);return Object(n.useEffect)(()=>{i(!1)},[e.cover]),c.a.createElement("div",{className:"dictRenren-Slide"},c.a.createElement("div",{className:"dictRenren-Slide_Speaker"},c.a.createElement(l.c,{src:e.mp3,width:20})),c.a.createElement("figure",{style:{height:t}},c.a.createElement("img",{src:e.cover,alt:e.en,className:"dictRenren-Slide_Cover"+(r?" isLoaded":""),onLoad:e=>{a(e.currentTarget.height),i(!0)}}),c.a.createElement("figcaption",null,c.a.createElement("p",{dangerouslySetInnerHTML:{__html:e.en},className:"dictRenren-Slide_En"}),c.a.createElement("p",{className:"dictRenren-Slide_Chs"},e.chs))))},s=({result:e})=>{const[t,a]=Object(n.useState)(0),[l,s]=Object(n.useState)({});Object(n.useEffect)(()=>{a(0)},[e]);return c.a.createElement(c.a.Fragment,null,c.a.createElement("select",{onChange:e=>a(Number(e.currentTarget.value)||0),value:t},e.map((e,t)=>c.a.createElement("option",{key:e.key,value:t},e.title))),l[e[t].key]?l[e[t].key].map(e=>c.a.createElement(i,{key:e.cover+e.mp3,slide:e})):c.a.createElement(c.a.Fragment,null,c.a.createElement(i,{slide:e[t].slide}),c.a.createElement("a",{className:"dictRenren-Detail",href:e[t].detail,onClick:async a=>{a.preventDefault(),a.stopPropagation();const n=e[t],c=await r.a.send({type:"DICT_ENGINE_METHOD",payload:{id:"renren",method:"getDetail",args:[n.detail]}});c&&c.length>0&&s(e=>({...e,[n.key]:c}))}},"⤋查看详情"),e[t].context.map(e=>c.a.createElement("div",{key:e.title,className:"dictRenren-Ctx"},c.a.createElement("p",{className:"dictRenren-Ctx_Title"},e.title),c.a.createElement("div",{className:"dictRenren-Ctx_Subtitles"},e.content.map(e=>c.a.createElement("p",{key:e},e)))))))};t.default=s}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/143.51016056.js b/plugins/saladict-ztools/ext-saladic/assets/143.51016056.js deleted file mode 100644 index 4bfb6146..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/143.51016056.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[143],{658:function(e,a,t){"use strict";t.r(a),t.d(a,"DictShanbay",(function(){return r}));var n=t(0),c=t.n(n),l=t(119);const r=({result:e})=>c.a.createElement(c.a.Fragment,null,e.title&&c.a.createElement("div",{className:"dictShanbay-HeaderContainer"},c.a.createElement("h1",{className:"dictShanbay-Title"},e.title),c.a.createElement("span",{className:"dictShanbay-Pattern"},e.pattern)),e.prons.length>0&&c.a.createElement("div",{className:"dictShanBay-HeaderContainer"},e.prons.map(({phsym:e,url:a})=>c.a.createElement(c.a.Fragment,{key:a},e," ",c.a.createElement(l.c,{src:a})))),e.basic&&c.a.createElement("div",{className:"dictShanbay-Basic",dangerouslySetInnerHTML:{__html:e.basic}}),e.sentences&&c.a.createElement("div",null,c.a.createElement("h1",{className:"dictShanbay-SecTitle"},"权威例句"),c.a.createElement("ol",{className:"dictShanbay-Sentence"},e.sentences.map(e=>c.a.createElement("li",{key:e.annotation},c.a.createElement("p",{dangerouslySetInnerHTML:{__html:e.annotation}}),c.a.createElement("p",null,e.translation))))));a.default=r}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/144.4013d498.js b/plugins/saladict-ztools/ext-saladic/assets/144.4013d498.js deleted file mode 100644 index 6e42bd89..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/144.4013d498.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[144],{661:function(e,a,t){"use strict";t.r(a),t.d(a,"DictUrban",(function(){return l}));var n=t(0),c=t.n(n),r=t(119);const l=({result:e})=>c.a.createElement("ul",{className:"dictUrban-List"},e.map(e=>c.a.createElement("li",{key:e.meaning,className:"dictUrban-Item"},c.a.createElement("h2",{className:"dictUrban-Title"},e.title," ",c.a.createElement(r.c,{src:e.pron})),e.meaning&&c.a.createElement("p",{className:"dictUrban-Meaning",dangerouslySetInnerHTML:{__html:e.meaning}}),e.example&&c.a.createElement("p",{className:"dictUrban-Example",dangerouslySetInnerHTML:{__html:e.example}}),e.gif&&c.a.createElement("figure",{className:"dictUrban-Gif"},c.a.createElement("img",{src:e.gif.src,alt:e.gif.attr}),c.a.createElement("figcaption",null,e.gif.attr)),e.tags&&c.a.createElement("ul",{className:"dictUrban-Tags"},e.tags.map(e=>c.a.createElement("a",{key:e,className:"dictUrban-TagItem",href:"https://www.urbandictionary.com/tags.php?tag="+e,rel:"nofollow noopener noreferrer"},"#",e," "))),c.a.createElement("footer",{className:"dictUrban-Footer"},e.contributor&&c.a.createElement("span",{className:"dictUrban-Contributor"},e.contributor),e.thumbsUp&&c.a.createElement("span",{className:"dictUrban-Thumbs"},c.a.createElement("svg",{className:"dictUrban-IconThumbsUp",width:"0.9em",height:"0.9em",fill:"#666",viewBox:"0 0 561 561"},c.a.createElement("path",{d:"M0 535.5h102v-306H0v306zM561 255c0-28.05-22.95-51-51-51H349.35l25.5-117.3v-7.65c0-10.2-5.1-20.4-10.2-28.05L336.6 25.5 168.3 193.8c-10.2 7.65-15.3 20.4-15.3 35.7v255c0 28.05 22.95 51 51 51h229.5c20.4 0 38.25-12.75 45.9-30.6l76.5-181.05c2.55-5.1 2.55-12.75 2.55-17.85v-51H561c0 2.55 0 0 0 0z"})),e.thumbsUp),e.thumbsDown&&c.a.createElement("span",{className:"dictUrban-Thumbs"},c.a.createElement("svg",{className:"dictUrban-IconThumbsDown",width:"0.95em",height:"0.95em",fill:"#666",viewBox:"0 0 561 561"},c.a.createElement("path",{d:"M357 25.5H127.5c-20.4 0-38.25 12.75-45.9 30.6L5.1 237.15C2.55 242.25 0 247.35 0 255v51c0 28.05 22.95 51 51 51h160.65l-25.5 117.3v7.65c0 10.2 5.1 20.4 10.2 28.05l28.05 25.5 168.3-168.3c10.2-10.2 15.3-22.95 15.3-35.7v-255c0-28.05-22.95-51-51-51zm102 0v306h102v-306H459z"})),e.thumbsDown)))));a.default=l}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/146.26e6bdeb.js b/plugins/saladict-ztools/ext-saladic/assets/146.26e6bdeb.js deleted file mode 100644 index c0fe25c7..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/146.26e6bdeb.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[146],{665:function(e,a,t){"use strict";t.r(a),t.d(a,"DictWebsterLearner",(function(){return l}));var r=t(0),n=t.n(r),s=t(119);const l=({result:e})=>{switch(e.type){case"lex":return function(e){return n.a.createElement(n.a.Fragment,null,e.items.map(e=>n.a.createElement("section",{key:e.title,className:"dictWebsterLearner-Entry"},n.a.createElement("header",{className:"dictWebsterLearner-Header"},n.a.createElement("span",{className:"hw_d hw_0",dangerouslySetInnerHTML:{__html:e.title}}),n.a.createElement(s.c,{src:e.pron})),e.infs&&n.a.createElement("div",{className:"dictWebsterLearner-Header"},n.a.createElement("span",{className:"hw_infs_d",dangerouslySetInnerHTML:{__html:e.infs}}),n.a.createElement(s.c,{src:e.infsPron})),e.labels&&n.a.createElement("div",{className:"labels",dangerouslySetInnerHTML:{__html:e.labels}}),e.senses&&n.a.createElement("div",{className:"sblocks",dangerouslySetInnerHTML:{__html:e.senses}}),e.arts&&e.arts.length>0&&e.arts.map(e=>n.a.createElement("img",{key:e,src:e})),e.phrases&&n.a.createElement("div",{className:"dros",dangerouslySetInnerHTML:{__html:e.phrases}}),e.derived&&n.a.createElement("div",{className:"uros",dangerouslySetInnerHTML:{__html:e.derived}}))))}(e);case"related":return function(e){return n.a.createElement(n.a.Fragment,null,n.a.createElement("p",null,"Did you mean:"),n.a.createElement("ul",{className:"dictWebsterLearner-Related",dangerouslySetInnerHTML:{__html:e.list}}))}(e);default:return null}};a.default=l}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/147.75f88f62.js b/plugins/saladict-ztools/ext-saladic/assets/147.75f88f62.js deleted file mode 100644 index 7bd2b3a9..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/147.75f88f62.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[147],{666:function(e,t,a){"use strict";a.r(t),a.d(t,"DictWikipedia",(function(){return s}));var n=a(0),i=a.n(n),l=a(1),c=a(9);const s=({result:e,searchText:t})=>{const[a,s]=Object(n.useState)(),{t:r}=Object(c.e)("content");Object(n.useEffect)(()=>{s([])},[e.langSelector]);const u=e=>{e.target.value&&t({id:"wikipedia",payload:{url:e.target.value}})};let d=null;return a&&a.length>0?d=i.a.createElement("select",{onChange:u,defaultValue:""},i.a.createElement("option",{key:"",value:""},r("chooseLang")),a.map(e=>i.a.createElement("option",{key:e.url,value:e.url},e.title))):e.langSelector&&(d=i.a.createElement("button",{className:"dictWikipedia-LangSelectorBtn",onClick:async()=>{s(await l.a.send({type:"DICT_ENGINE_METHOD",payload:{id:"wikipedia",method:"fetchLangList",args:[e.langSelector]}}))}},r("fetchLangList"))),i.a.createElement(i.a.Fragment,null,i.a.createElement("h1",{className:"dictWikipedia-Title"},e.title),d,i.a.createElement("div",{className:"dictWikipedia-Content",onClick:o},i.a.createElement("div",{className:"client-js",dangerouslySetInnerHTML:{__html:e.content}})))};function o(e){if(!e.target.classList)return;let t=e.target;if(!t.classList.contains("section-heading")&&(t=t.parentElement,!t||!t.classList.contains("section-heading")))return;e.stopPropagation(),e.preventDefault(),t.classList.toggle("open-block");const a=t.nextElementSibling;if(a){const e=t.classList.contains("open-block").toString();a.classList.toggle("open-block"),a.setAttribute("aria-pressed",e),a.setAttribute("aria-expanded",e)}const n=t.querySelector(".mw-ui-icon-mf-arrow");n&&n.classList.toggle("mf-mw-ui-icon-rotate-flip")}t.default=s}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/18.827da3d5.js b/plugins/saladict-ztools/ext-saladic/assets/18.827da3d5.js deleted file mode 100644 index 8a921231..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/18.827da3d5.js +++ /dev/null @@ -1,42 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[18,19],[,,,function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return i})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return f})),n.d(e,"__generator",(function(){return l})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return b})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return _})),n.d(e,"__asyncGenerator",(function(){return m})),n.d(e,"__asyncDelegator",(function(){return g})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return x})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return j})),n.d(e,"__classPrivateFieldGet",(function(){return S})),n.d(e,"__classPrivateFieldSet",(function(){return E})); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function f(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(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 l(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=o[t](e)).value instanceof _?Promise.resolve(n.value.v).then(u,c):f(i[0][2],n)}catch(t){f(i[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function f(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}}function g(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:_(t[r](e)),done:"return"===r}:o?o(e):e}:o}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function j(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){var r; -/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e=0;r--){var o=e[r](t);if(o)return o}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function F(t,e){return t===e}function L(t){var e=void 0===t?{}:t,n=e.connectHOC,r=void 0===n?j:n,o=e.mapStateToPropsFactories,i=void 0===o?N:o,a=e.mapDispatchToPropsFactories,s=void 0===a?T:a,u=e.mergePropsFactories,c=void 0===u?R:u,f=e.selectorFactory,d=void 0===f?I:f;return function(t,e,n,o){void 0===o&&(o={});var a=o,u=a.pure,f=void 0===u||u,p=a.areStatesEqual,b=void 0===p?F:p,v=a.areOwnPropsEqual,y=void 0===v?E:v,_=a.areStatePropsEqual,m=void 0===_?E:_,g=a.areMergedPropsEqual,w=void 0===g?E:g,x=Object(h.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),O=B(t,i,"mapStateToProps"),j=B(e,s,"mapDispatchToProps"),S=B(n,c,"mergeProps");return r(d,Object(l.a)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:O,initMapDispatchToProps:j,initMergeProps:S,pure:f,areStatesEqual:b,areOwnPropsEqual:y,areStatePropsEqual:m,areMergedPropsEqual:w},x))}}var U=L();function H(){return Object(r.useContext)(i)}function V(t){void 0===t&&(t=i);var e=t===i?H:function(){return Object(r.useContext)(t)};return function(){return e().store}}var Z=V();function $(t){void 0===t&&(t=i);var e=t===i?Z:V(t);return function(){return e().dispatch}}var q=$(),W=function(t,e){return t===e};function K(t){void 0===t&&(t=i);var e=t===i?H:function(){return Object(r.useContext)(t)};return function(t,n){void 0===n&&(n=W);var o=e();return function(t,e,n,o){var i,a=Object(r.useReducer)((function(t){return t+1}),0)[1],s=Object(r.useMemo)((function(){return new c(n,o)}),[n,o]),u=Object(r.useRef)(),f=Object(r.useRef)(),l=Object(r.useRef)();try{i=t!==f.current||u.current?t(n.getState()):l.current}catch(t){throw u.current&&(t.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),t}return v((function(){f.current=t,l.current=i,u.current=void 0})),v((function(){function t(){try{var t=f.current(n.getState());if(e(t,l.current))return;l.current=t}catch(t){u.current=t}a({})}return s.onStateChange=t,s.trySubscribe(),t(),function(){return s.tryUnsubscribe()}}),[n,s]),i}(t,n,o.store,o.subscription)}}var Y,G=K(),X=n(20);Y=X.unstable_batchedUpdates,a=Y},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},,function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(391)()},function(t,e,n){var r=n(357);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(215);var o=n(139),i=n(216);function a(t,e){return Object(r.a)(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=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){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,e)||Object(o.a)(t,e)||Object(i.a)()}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return f}));var r=n(0),o=n(91),i=n(161);function a(t){return t}function s(t){return Object(i.a)(0)(t)}function u(){return new o.a}function c(t){var e=Object(r.useRef)(!0),n=Object(r.useRef)(null);return e.current&&(e.current=!1,n.current=t()),n}function f(){var t=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return t(l)})).current}function l(t){return(t+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(127);var o=n(214),i=n(139);function a(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(i.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(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(94),o=n(126),i=n(8);function a(t,e,n,a,s){if(void 0===s&&(s=new r.a(t,n,a)),!s.closed)return e instanceof i.a?e.subscribe(s):Object(o.a)(e)(s)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(7).a)},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=n(7);function i(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(o.a)},,,,function(t,e,n){"use strict";function r(t,e=window){if(t){const e=t.toString().trim();if(e)return e}const n=e.document.activeElement;if(n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName)){const t=n;return t.value.slice(t.selectionStart||0,t.selectionEnd||0)}return""}function o(t=window){return r(t.getSelection(),t)}function i(t){if(!t||t.rangeCount<=0)return"";const e=t.toString();if(!e.trim())return"";const n=t.getRangeAt(0);return n?(function(t){if(t){const e=/[.?!。?!…]/,n=/[^\s.?!。?!…]/;for(let r=t.length-1;r>=0;r--){const o=t[r];if(e.test(o)){if("."===o&&n.test(t[r+1]))continue;return t.slice(r+1)}}}return t}(s(n))+e+function(t){const e=/^((\.(?![\s.?!。?!…]))|[^.?!。?!…])*([.?!。?!…]){0,3}/.exec(t);return e?e[0]:""}(u(n))).replace(/\s+/g," ").trim():""}function a(t=window){return i(t.getSelection())}function s(t){let e=t.startContainer,n="";switch(e.nodeType){case Node.TEXT_NODE:{const r=e.textContent;r&&(n=r.slice(0,t.startOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:e=e.childNodes[t.startOffset]}for(let t=e;f(t);t=t.parentElement)for(let e=t.previousSibling;f(e);e=e.previousSibling)n=c(e)+n;return n}function u(t){let e=t.endContainer,n="";switch(e.nodeType){case Node.TEXT_NODE:{const r=e.textContent;r&&(n=r.slice(t.endOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:e=e.childNodes[t.endOffset-1]}for(let t=e;f(t);t=t.parentElement)for(let e=t.nextSibling;f(e);e=e.nextSibling)n+=c(e);return n}function c(t){return t.nodeType===Node.TEXT_NODE?t.nodeValue||"":t.nodeType===Node.ELEMENT_NODE&&t.innerText||""}function f(t){if(!t)return!1;switch(t.nodeType){case Node.TEXT_NODE:case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:return!0;case Node.ELEMENT_NODE:switch(t.tagName){case"A":case"ABBR":case"B":case"BDI":case"BDO":case"BR":case"CITE":case"CODE":case"DATA":case"DFN":case"EM":case"I":case"KBD":case"MARK":case"Q":case"RP":case"RT":case"RTC":case"RUBY":case"S":case"SAMP":case"SMALL":case"SPAN":case"STRONG":case"SUB":case"SUP":case"TIME":case"U":case"VAR":case"WBR":return!0}}return!1}n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(66),o=n(58);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==r(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},,,function(t,e,n){var r=n(198),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},,function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(8),o=n(126),i=n(13),a=n(47);var s=n(93),u=n(67);var c=n(125),f=n(123);function l(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new r.a((function(n){var r=new i.a;return r.add(e.schedule((function(){var o=t[a.a]();r.add(o.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a((function(n){var r=new i.a;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Object(f.a)(t))return Object(s.a)(t,e);if(function(t){return t&&"function"==typeof t[u.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,o=new i.a;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(e.schedule((function(){r=t[u.a](),o.add(e.schedule((function(){if(!n.closed){var t,e;try{var o=r.next();t=o.value,e=o.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function h(t,e){return e?l(t,e):t instanceof r.a?t:new r.a(Object(o.a)(t))}},function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)o(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,o){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),o);else for(var i=0;i1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(i.a)(n)(Object(a.a)(t,s))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(112),o=new(n(111).a)(r.a)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),o=n(35),i=n(94),a=n(34),s=n(10),u=n(64);function c(t,e){return"function"==typeof e?function(n){return n.pipe(c((function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)((function(t,o){return e(n,t,r,o)})))})))}:function(e){return e.lift(new f(t))}}var f=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project))},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new i.a(this,e,n),s=this.destination;s.add(o),this.innerSubscription=Object(a.a)(this,t,void 0,void 0,o),this.innerSubscription!==o&&s.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(o.a)},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(144);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),i=function(t){function e(n,r){void 0===r&&(r=o.now);var i=t.call(this,n,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return r.__extends(e,t),e.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,o):t.prototype.schedule.call(this,n,r,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(o)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(13).a))},,function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),o=n(30);function i(t,e){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return t(n.current)}));return[Object(r.useRef)((function(){for(var t=[],r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0){var a=i.indexOf(n);-1!==a&&i.splice(a,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.a)},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),o=n(308),i=n(30);function a(t,e){if(!e)return Object(i.e)(t).current;var n=Object(i.e)((function(){return new o.a(e)})),a=Object(i.e)((function(){return t(n.current)})),s=Object(r.useRef)(!0);return Object(r.useEffect)((function(){s.current?s.current=!1:n.current.next(e)}),e),a.current}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(145),o=n(115);function i(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(o.a,t)}},,function(t,e,n){var r=n(203),o=n(208),i=n(393);t.exports=function(t,e){var n={};return e=i(e,3),o(t,(function(t,o,i){r(n,o,e(t,o,i))})),n}},,,function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(346),o=n(347),i=n(348),a=n(349),s=n(350);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(54);function o(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},,,,,function(t,e,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(t,e,n){var r=n(255),o=n(328),i=n(153);t.exports=function(t){return i(t)?r(t):o(t)}},function(t,e,n){var r=n(200),o=n(157);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e,n){"use strict";t.exports=n(509)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),o=n(106),i=n(146),a=n(59);function s(t,e,n){void 0===t&&(t=0);var s=-1;return Object(i.a)(e)?s=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=o.a),new r.a((function(e){var r=Object(i.a)(t)?t:+t-n.now();return n.schedule(u,r,{index:0,period:s,subscriber:e})}))}function u(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=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-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(10);function o(){for(var t=[],e=0;e0&&n[0].time-r.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var i=Math.max(0,n[0].time-r.now());this.schedule(t,i)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new f(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()},e}(i.a),f=function(){return function(t,e){this.time=t,this.notification=e}}()},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var t=[],e=0;e{const r=t.firstChild,o=r.nextSibling,i=r.firstChild;i.style.width=e+1e3+"px",i.style.height=n+1e3+"px",this._setScrollPositionTicket=window.setTimeout(()=>{r.scrollLeft=e+1e3,r.scrollTop=n+1e3,o.scrollLeft=2.5*e,o.scrollTop=2.5*n},0)},this.checkSize=()=>{if(this.containerRef.current){const t=this.containerRef.current.parentElement;if(t){const e=t.getBoundingClientRect(),{width:n,height:r}=e;this.props.onSizeChanged&&(n===this.lastWidth&&r===this.lastHeight||this.props.onSizeChanged(n,r,e)),this.props.onWidthChanged&&n!==this.lastWidth&&this.props.onWidthChanged(n,e),this.props.onHeightChanged&&r!==this.lastHeight&&this.props.onHeightChanged(r,e),this.resetPosition(this.containerRef.current,n,r),this.lastWidth=n,this.lastHeight=r}}},this.onScroll=()=>{this._debounceTicket&&(window.clearTimeout(this._debounceTicket),this._debounceTicket=null),this._debounceTicket=window.setTimeout(this.checkSize,this.props.debounce||0)}}componentDidMount(){if(this.containerRef.current){const t=this.containerRef.current.parentElement;if(t)if(this.props.reportInit)this.checkSize();else{const e=t.getBoundingClientRect();this.lastWidth=e.width,this.lastHeight=e.height,this.resetPosition(this.containerRef.current,this.lastWidth,this.lastHeight)}}}componentWillUnmount(){this._debounceTicket&&(window.clearTimeout(this._debounceTicket),this._debounceTicket=null),this._setScrollPositionTicket&&(window.clearTimeout(this._setScrollPositionTicket),this._setScrollPositionTicket=null)}render(){const{reportInit:t,debounce:e,onSizeChanged:n,onWidthChanged:r,onHeightChanged:o,children:i,...f}=this.props;return a.default.createElement("div",Object.assign({"aria-hidden":!0,"aria-label":"react-resize-reporter",tabIndex:-1},f,{ref:this.containerRef}),a.default.createElement("div",{style:s,onScroll:this.onScroll},a.default.createElement("div",{style:u})),a.default.createElement("div",{style:s,onScroll:this.onScroll},a.default.createElement("div",{style:c})),i)}}e.ResizeReporter=f,e.default=f},,,,,,,,function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var o=65535&t|0,i=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(o=o+e[r++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16|0}},function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,o){var i=r,a=o+n;t^=-1;for(var s=o;s>>8^i[255&(t^e[s])];return-1^t}},function(t,e,n){"use strict";var r=n(65),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(t){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){i=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&i||!t.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,o=e.length;n4)c[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&n1?c[r++]=65533:o<65536?c[r++]=o:(o-=65536,c[r++]=55296|o>>10&1023,c[r++]=56320|1023&o)}return u(c,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,n){var r=n(323),o=n(58),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},function(t,e,n){(function(t){var r=n(62),o=n(326),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===i?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;t.exports=u}).call(this,n(183)(t))},function(t,e,n){var r=n(66),o=n(109);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(143),o=n(110);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},d=c((function(t){!function(e){var n=function(t,e,r){if(!u(e)||f(e)||l(e)||h(e)||s(e))return e;var o,i=0,a=0;if(c(e))for(o=[],a=e.length;i0&&void 0!==arguments[0]?arguments[0]:{};return new Proxy(t,{get:function(t,e){var n,i,a=d(e,{separator:"-"});return b.has(a)||b.set(a,(n={tag:a},(i=Object(r.forwardRef)((function(t,e){var i=t.mode,a=t.delegatesFocus,s=t.styleSheets,u=t.children,c=h(t,["mode","delegatesFocus","styleSheets","children"]),d=Object(r.useState)(null),b=l(d,2),v=b[0],y=b[1],_=Object(r.useState)(null),m=l(_,2),g=m[0],w=m[1];return Object(r.useEffect)((function(){if(v){var t=v.attachShadow({mode:i,delegatesFocus:a});s.length>0&&(t.adoptedStyleSheets=s),e&&"function"==typeof e&&e(v),e&&"current"in e&&(e.current=v),w(t)}}),[v]),o.a.createElement(n.tag,f({ref:y},c),g&&o.a.createElement(p,{root:g},u))}))).propTypes={mode:s.a.oneOf(["open","closed"]),delegatesFocus:s.a.bool,styleSheets:s.a.arrayOf(s.a.string),children:s.a.node.isRequired},i.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[]},i)),b.get(a)}})}();e.a=v},,,function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),i=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(i).concat([o]).join("\n")}var a,s,u;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i{switch(e.length){case 0:return{type:t};case 1:return{type:t,payload:e[0]};default:return{type:t,payload:e[0],meta:e[1]}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(177);e.createDefaultActionCreators=function(t,e,n){const o={};if(n)for(const t in n)r.hasOwnProperty.call(n,t)&&(o[t]=n[t]);for(const i in e)r.hasOwnProperty.call(e,i)&&(n&&r.hasOwnProperty.call(o,i)||(o[i]=t(i)));return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createActionCreator=function(t){return(...e)=>{switch(e.length){case 0:return{type:t};case 1:return{type:t,payload:e[0]};case 2:return{type:t,payload:e[0],error:e[1]};default:return{type:t,payload:e[0],error:e[1],meta:e[2]}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineObjects=function(...t){return Object.assign({},...t)}},,function(t,e,n){"use strict";(function(t){var r,o=n(362);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:t;var i=Object(o.a)(r);e.a=i}).call(this,n(510)(t))},,,function(t,e,n){var r=n(402),o=n(405),i=n(406);t.exports=function(t,e,n,a,s,u){var c=1&n,f=t.length,l=e.length;if(f!=l&&!(c&&l>f))return!1;var h=u.get(t);if(h&&u.get(e))return h==e;var d=-1,p=!0,b=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++d0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?i.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=r.deflateSetDictionary(this.strm,f)))throw new Error(a[n]);this._dict_set=!0}}function f(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}c.prototype.push=function(t,e){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=i.string2buf(t):"[object ArrayBuffer]"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new o.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(s.output,s.next_out))):this.onData(o.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=c,e.deflate=f,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},function(t,e,n){"use strict";var r,o=n(65),i=n(314),a=n(192),s=n(193),u=n(151);function c(t,e){return t.msg=u[e],e}function f(t){return(t<<1)-(t>4?9:0)}function l(t){for(var e=t.length;--e>=0;)t[e]=0}function h(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(o.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function d(t,e){i._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,h(t.strm)}function p(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function v(t,e){var n,r,o=t.max_chain_length,i=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+258,d=c[i+a-1],p=c[i+a];t.prev_length>=t.good_match&&(o>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===p&&c[n+a-1]===d&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&ia){if(t.match_start=e,a=r,r>=s)break;d=c[i+a-1],p=c[i+a]}}}while((e=l[e&f])>u&&0!=--o);return a<=t.lookahead?a:t.lookahead}function y(t){var e,n,r,i,u,c,f,l,h,d,p=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-262)){o.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=p?r-p:0}while(--n);e=n=p;do{r=t.prev[--e],t.prev[e]=r>=p?r-p:0}while(--n);i+=p}if(0===t.strm.avail_in)break;if(c=t.strm,f=t.window,l=t.strstart+t.lookahead,h=i,d=void 0,(d=c.avail_in)>h&&(d=h),n=0===d?0:(c.avail_in-=d,o.arraySet(f,c.input,c.next_in,d,l),1===c.state.wrap?c.adler=a(c.adler,f,d,l):2===c.state.wrap&&(c.adler=s(c.adler,f,d,l)),c.next_in+=d,c.total_in+=d,d),t.lookahead+=n,t.lookahead+t.insert>=3)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<=3)if(r=i._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){o=t.strstart+t.lookahead-3,r=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=o&&(t.ins_h=(t.ins_h<15&&(s=2,r-=16),i<1||i>9||8!==n||r<8||r>15||e<0||e>9||a<0||a>4)return c(t,-2);8===r&&(r=9);var u=new w;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,d(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(d(t,!1),t.strm.avail_out),1)})),new g(4,4,8,4,_),new g(4,5,16,8,_),new g(4,6,32,32,_),new g(4,4,16,16,m),new g(8,16,32,32,m),new g(8,16,128,128,m),new g(8,32,128,256,m),new g(32,128,258,1024,m),new g(32,258,258,4096,m)],e.deflateInit=function(t,e){return j(t,e,8,15,8,0)},e.deflateInit2=j,e.deflateReset=O,e.deflateResetKeep=x,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var n,o,a,u;if(!t||!t.state||e>5||e<0)return t?c(t,-2):-2;if(o=t.state,!t.output||!t.input&&0!==t.avail_in||666===o.status&&4!==e)return c(t,0===t.avail_out?-5:-2);if(o.strm=t,n=o.last_flush,o.last_flush=e,42===o.status)if(2===o.wrap)t.adler=0,p(o,31),p(o,139),p(o,8),o.gzhead?(p(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),p(o,255&o.gzhead.time),p(o,o.gzhead.time>>8&255),p(o,o.gzhead.time>>16&255),p(o,o.gzhead.time>>24&255),p(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),p(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(p(o,255&o.gzhead.extra.length),p(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(t.adler=s(t.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(p(o,0),p(o,0),p(o,0),p(o,0),p(o,0),p(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),p(o,3),o.status=113);else{var v=8+(o.w_bits-8<<4)<<8;v|=(o.strategy>=2||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(v|=32),v+=31-v%31,o.status=113,b(o,v),0!==o.strstart&&(b(o,t.adler>>>16),b(o,65535&t.adler)),t.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),h(t),a=o.pending,o.pending!==o.pending_buf_size));)p(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),h(t),a=o.pending,o.pending===o.pending_buf_size)){u=1;break}u=o.gzindexa&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),0===u&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),h(t),a=o.pending,o.pending===o.pending_buf_size)){u=1;break}u=o.gzindexa&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),0===u&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&h(t),o.pending+2<=o.pending_buf_size&&(p(o,255&t.adler),p(o,t.adler>>8&255),t.adler=0,o.status=113)):o.status=113),0!==o.pending){if(h(t),0===t.avail_out)return o.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(n)&&4!==e)return c(t,-5);if(666===o.status&&0!==t.avail_in)return c(t,-5);if(0!==t.avail_in||0!==o.lookahead||0!==e&&666!==o.status){var _=2===o.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(o,e):3===o.strategy?function(t,e){for(var n,r,o,a,s=t.window;;){if(t.lookahead<=258){if(y(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=s[o=t.strstart-1])===s[++o]&&r===s[++o]&&r===s[++o]){a=t.strstart+258;do{}while(r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&ot.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=i._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(o,e):r[o.level].func(o,e);if(3!==_&&4!==_||(o.status=666),1===_||3===_)return 0===t.avail_out&&(o.last_flush=-1),0;if(2===_&&(1===e?i._tr_align(o):5!==e&&(i._tr_stored_block(o,0,0,!1),3===e&&(l(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),h(t),0===t.avail_out))return o.last_flush=-1,0}return 4!==e?0:o.wrap<=0?1:(2===o.wrap?(p(o,255&t.adler),p(o,t.adler>>8&255),p(o,t.adler>>16&255),p(o,t.adler>>24&255),p(o,255&t.total_in),p(o,t.total_in>>8&255),p(o,t.total_in>>16&255),p(o,t.total_in>>24&255)):(b(o,t.adler>>>16),b(o,65535&t.adler)),h(t),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?c(t,-2):(t.state=null,113===e?c(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var n,r,i,s,u,c,f,h,d=e.length;if(!t||!t.state)return-2;if(2===(s=(n=t.state).wrap)||1===s&&42!==n.status||n.lookahead)return-2;for(1===s&&(t.adler=a(t.adler,e,d,0)),n.wrap=0,d>=n.w_size&&(0===s&&(l(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new o.Buf8(n.w_size),o.arraySet(h,e,d-n.w_size,n.w_size,0),e=h,d=n.w_size),u=t.avail_in,c=t.next_in,f=t.input,t.avail_in=d,t.next_in=0,t.input=e,y(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<=0;)t[e]=0}var i=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);o(c);var f=new Array(60);o(f);var l=new Array(512);o(l);var h=new Array(256);o(h);var d=new Array(29);o(d);var p,b,v,y=new Array(30);function _(t,e,n,r,o){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function g(t){return t<256?l[t]:l[256+(t>>>7)]}function w(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<>>=1,n<<=1}while(--e>0);return n>>>1}function S(t,e,n){var r,o,i=new Array(16),a=0;for(r=1;r<=15;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=e;o++){var s=t[2*o+1];0!==s&&(t[2*o]=j(i[s]++,s))}}function E(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function k(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function C(t,e,n,r){var o=2*e,i=2*n;return t[o]>1;n>=1;n--)P(t,i,n);o=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],P(t,i,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,i[2*o]=i[2*n]+i[2*r],t.depth[o]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,i[2*n+1]=i[2*r+1]=o,t.heap[1]=o++,P(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,o,i,a,s,u=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,b=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(i=u[2*u[2*(r=t.heap[n])+1]+1]+1)>p&&(i=p,b++),u[2*r+1]=i,r>c||(t.bl_count[i]++,a=0,r>=d&&(a=h[r-d]),s=u[2*r],t.opt_len+=s*(i+a),l&&(t.static_len+=s*(f[2*r+1]+a)));if(0!==b){do{for(i=p-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[p]--,b-=2}while(b>0);for(i=p;0!==i;i--)for(r=t.bl_count[i];0!==r;)(o=t.heap[--n])>c||(u[2*o+1]!==i&&(t.opt_len+=(i-u[2*o+1])*u[2*o],u[2*o+1]=i),r--)}}(t,e),S(i,c,t.bl_count)}function N(t,e,n){var r,o,i=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=e[2*(r+1)+1],++s>=7;r<30;r++)for(y[r]=o<<7,t=0;t<1<0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),T(t,t.l_desc),T(t,t.d_desc),a=function(t){var e;for(N(t,t.dyn_ltree,t.l_desc.max_code),N(t,t.dyn_dtree,t.d_desc.max_code),T(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(i=t.static_len+3+7>>>3)<=o&&(o=i)):o=i=n+5,n+4<=o&&-1!==e?D(t,e,n,r):4===t.strategy||i===o?(x(t,2+(r?1:0),3),A(t,c,f)):(x(t,4+(r?1:0),3),function(t,e,n,r){var o;for(x(t,e-257,5),x(t,n-1,5),x(t,r-4,4),o=0;o>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(h[n]+256+1)]++,t.dyn_dtree[2*g(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),O(t,256,c),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){"use strict";var r=n(316),o=n(65),i=n(194),a=n(196),s=n(151),u=n(195),c=n(319),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=i.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[n])}function h(t,e){var n=new l(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}l.prototype.push=function(t,e){var n,s,u,c,l,h=this.strm,d=this.options.chunkSize,p=this.options.dictionary,b=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?h.input=i.binstring2buf(t):"[object ArrayBuffer]"===f.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new o.Buf8(d),h.next_out=0,h.avail_out=d),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(n=r.inflateSetDictionary(this.strm,p)),n===a.Z_BUF_ERROR&&!0===b&&(n=a.Z_OK,b=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=i.utf8border(h.output,h.next_out),c=h.next_out-u,l=i.buf2string(h.output,u),h.next_out=c,h.avail_out=d-c,c&&o.arraySet(h.output,h.output,u,c,0),this.onData(l)):this.onData(o.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(b=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},function(t,e,n){"use strict";var r=n(65),o=n(192),i=n(193),a=n(317),s=n(318);function u(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(852),e.distcode=e.distdyn=new r.Buf32(592),e.sane=1,e.back=-1,0):-2}function l(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):-2}function h(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,l(t))):-2}function d(t,e){var n,r;return t?(r=new c,t.state=r,r.window=null,0!==(n=h(t,e))&&(t.state=null),n):-2}var p,b,v=!0;function y(t){if(v){var e;for(p=new r.Buf32(512),b=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,p,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,b,0,t.work,{bits:5}),v=!1}t.lencode=p,t.lenbits=9,t.distcode=b,t.distbits=5}function _(t,e,n,o){var i,a=t.state;return null===a.window&&(a.wsize=1<=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>o&&(i=o),r.arraySet(a.window,e,n-o,i,a.wnext),(o-=i)?(r.arraySet(a.window,e,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=i(n.check,D,2,0),b=0,v=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",n.mode=30;break}if(v-=4,A=8+(15&(b>>>=4)),0===n.wbits)n.wbits=A;else if(A>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=i(n.check,D,2,0)),b=0,v=0,n.mode=3;case 3:for(;v<32;){if(0===d)break t;d--,b+=c[l++]<>>8&255,D[2]=b>>>16&255,D[3]=b>>>24&255,n.check=i(n.check,D,4,0)),b=0,v=0,n.mode=4;case 4:for(;v<16;){if(0===d)break t;d--,b+=c[l++]<>8),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=i(n.check,D,2,0)),b=0,v=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===d)break t;d--,b+=c[l++]<>>8&255,n.check=i(n.check,D,2,0)),b=0,v=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((w=n.length)>d&&(w=d),w&&(n.head&&(A=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,l,w,A)),512&n.flags&&(n.check=i(n.check,c,w,l)),d-=w,l+=w,n.length-=w),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===d)break t;w=0;do{A=c[l+w++],n.head&&A&&n.length<65536&&(n.head.name+=String.fromCharCode(A))}while(A&&w>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===d)break t;d--,b+=c[l++]<>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===d)break t;d--,b+=c[l++]<>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6===e){b>>>=2,v-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===d)break t;d--,b+=c[l++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,b=0,v=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(w=n.length){if(w>d&&(w=d),w>p&&(w=p),0===w)break t;r.arraySet(f,c,l,w,h),d-=w,l+=w,p-=w,h+=w,n.length-=w;break}n.mode=12;break;case 17:for(;v<14;){if(0===d)break t;d--,b+=c[l++]<>>=5,v-=5,n.ndist=1+(31&b),b>>>=5,v-=5,n.ncode=4+(15&b),b>>>=4,v-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have>>=3,v-=3}for(;n.have<19;)n.lens[M[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},T=s(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,T){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,E=65535&R,!((j=R>>>24)<=v);){if(0===d)break t;d--,b+=c[l++]<>>=j,v-=j,n.lens[n.have++]=E;else{if(16===E){for(z=j+2;v>>=j,v-=j,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}A=n.lens[n.have-1],w=3+(3&b),b>>>=2,v-=2}else if(17===E){for(z=j+3;v>>=j)),b>>>=3,v-=3}else{for(z=j+7;v>>=j)),b>>>=7,v-=7}if(n.have+w>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;w--;)n.lens[n.have++]=A}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,N={bits:n.lenbits},T=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,T){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},T=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,T){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(d>=6&&p>=258){t.next_out=h,t.avail_out=p,t.next_in=l,t.avail_in=d,n.hold=b,n.bits=v,a(t,g),h=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,c=t.input,d=t.avail_in,b=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;S=(R=n.lencode[b&(1<>>16&255,E=65535&R,!((j=R>>>24)<=v);){if(0===d)break t;d--,b+=c[l++]<>k)])>>>16&255,E=65535&R,!(k+(j=R>>>24)<=v);){if(0===d)break t;d--,b+=c[l++]<>>=k,v-=k,n.back+=k}if(b>>>=j,v-=j,n.back+=j,n.length=E,0===S){n.mode=26;break}if(32&S){n.back=-1,n.mode=12;break}if(64&S){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&S,n.mode=22;case 22:if(n.extra){for(z=n.extra;v>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;S=(R=n.distcode[b&(1<>>16&255,E=65535&R,!((j=R>>>24)<=v);){if(0===d)break t;d--,b+=c[l++]<>k)])>>>16&255,E=65535&R,!(k+(j=R>>>24)<=v);){if(0===d)break t;d--,b+=c[l++]<>>=k,v-=k,n.back+=k}if(b>>>=j,v-=j,n.back+=j,64&S){t.msg="invalid distance code",n.mode=30;break}n.offset=E,n.extra=15&S,n.mode=24;case 24:if(n.extra){for(z=n.extra;v>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===p)break t;if(w=g-p,n.offset>w){if((w=n.offset-w)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}w>n.wnext?(w-=n.wnext,x=n.wsize-w):x=n.wnext-w,w>n.length&&(w=n.length),O=n.window}else O=f,x=h-n.offset,w=n.length;w>p&&(w=p),p-=w,n.length-=w;do{f[h++]=O[x++]}while(--w);0===n.length&&(n.mode=21);break;case 26:if(0===p)break t;f[h++]=n.length,p--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===d)break t;d--,b|=c[l++]<>>=g=m>>>24,p-=g,0===(g=m>>>16&255))E[i++]=65535&m;else{if(!(16&g)){if(0==(64&g)){m=b[(65535&m)+(d&(1<>>=g,p-=g),p<15&&(d+=S[r++]<>>=g=m>>>24,p-=g,!(16&(g=m>>>16&255))){if(0==(64&g)){m=v[(65535&m)+(d&(1<u){t.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=g,p-=g,x>(g=i-a)){if((g=x-g)>f&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(O=0,j=h,0===l){if(O+=c-g,g2;)E[i++]=j[O++],E[i++]=j[O++],E[i++]=j[O++],w-=3;w&&(E[i++]=j[O++],w>1&&(E[i++]=j[O++]))}else{O=i-x;do{E[i++]=E[O++],E[i++]=E[O++],E[i++]=E[O++],w-=3}while(w>2);w&&(E[i++]=E[O++],w>1&&(E[i++]=E[O++]))}break}}break}}while(r>3,d&=(1<<(p-=w<<3))-1,t.next_in=r,t.next_out=i,t.avail_in=r=1&&0===D[E];E--);if(k>E&&(k=E),0===E)return c[f++]=20971520,c[f++]=20971520,h.bits=1,0;for(S=1;S0&&(0===t||1!==E))return-1;for(M[1]=0,O=1;O<15;O++)M[O+1]=M[O]+D[O];for(j=0;j852||2===t&&T>592)return 1;for(;;){m=O-P,l[j]<_?(g=0,w=l[j]):l[j]>_?(g=I[B+l[j]],w=z[R+l[j]]):(g=96,w=0),d=1<>P)+(p-=d)]=m<<24|g<<16|w|0}while(0!==p);for(d=1<>=1;if(0!==d?(N&=d-1,N+=d):N=0,j++,0==--D[O]){if(O===E)break;O=e[n+l[j]]}if(O>k&&(N&v)!==b){for(0===P&&(P=k),y+=S,A=1<<(C=O-P);C+P852||2===t&&T>592)return 1;c[b=N&v]=k<<24|C<<16|y-f|0}}return 0!==N&&(c[y+N]=O-P<<24|64<<16|0),h.bits=k,0}},function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e,n){var r=n(208),o=n(330)(r);t.exports=o},function(t,e,n){var r=n(322)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++o];if(!1===n(i[u],u,i))break}return e}}},function(t,e,n){var r=n(66),o=n(58);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(117),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[s]=n:delete t[s]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(66),o=n(157),i=n(58),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,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(245),o=n(329),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(256)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(153);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,a=e?i:-1,s=Object(n);(e?a--:++a-1}},function(t,e,n){var r=n(121);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(122);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(122);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(122);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(122);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(117),o=n(202),i=n(51),a=n(144),s=r?r.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(246),o=n(143),i=n(156),a=n(109),s=n(110);t.exports=function(t,e,n,u){if(!a(t))return t;for(var c=-1,f=(e=o(e,t)).length,l=f-1,h=t;null!=h&&++cr.hasOwnProperty.call(o,i)?o[i]:n&&r.hasOwnProperty.call(n,i)?o[i]=n[i]:r.hasOwnProperty.call(e,i)?o[i]=t(i):void 0,ownKeys:()=>(i||(i=new Set([...Object.keys(e),...Object.keys(n||{})])),[...i]),getOwnPropertyDescriptor:(o,i)=>r.hasOwnProperty.call(o,i)?{value:o[i],configurable:!0,enumerable:!0}:n&&r.hasOwnProperty.call(n,i)?(o[i]=n[i],{value:o[i],configurable:!0,enumerable:!0}):r.hasOwnProperty.call(e,i)?(o[i]=t(i),{value:o[i],configurable:!0,enumerable:!0}):void 0};try{return new Proxy({},a)}catch(r){return o.createDefaultActionCreators(t,e,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(177),o=n(226);e.proxyCombineObjects=function(...t){let e,n;const i={get(e,o){if(r.hasOwnProperty.call(e,o))return e[o];if(!n||!n.has(o)){for(let n=t.length-1;n>=0;n--){const i=t[n];if(r.hasOwnProperty.call(i,o))return e[o]=i[o]}n?n.size>=100&&n.clear():n=new Set,n.add(o)}},ownKeys:()=>(e||(e=new Set(t.reduce((t,e)=>t.concat(Object.keys(e)),[]))),[...e]),getOwnPropertyDescriptor(e,o){if(r.hasOwnProperty.call(e,o))return{value:e[o],configurable:!0,enumerable:!0};if(!n||!n.has(o)){for(let n=t.length-1;n>=0;n--){const i=t[n];if(r.hasOwnProperty.call(i,o))return e[o]=i[o],{value:e[o],configurable:!0,enumerable:!0}}n?n.size>=100&&n.clear():n=new Set,n.add(o)}}};try{return new Proxy(Object.create(null),i)}catch(e){return o.combineObjects(...t)}}},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(38),o=function(t,e){return t===e||"function"==typeof e&&t===e.toString()},i=function(){for(var t=arguments.length,e=Array(t),n=0;n=x},s=function(){},e.unstable_forceFrameRate=function(t){0>t||125>>1,o=t[r];if(!(void 0!==o&&0C(a,n))void 0!==u&&0>C(u,a)?(t[r]=u,t[s]=n,r=s):(t[r]=a,t[i]=n,r=i);else{if(!(void 0!==u&&0>C(u,n)))break t;t[r]=u,t[s]=n,r=s}}}return e}return null}function C(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var P=[],A=[],T=1,N=null,z=3,R=!1,D=!1,M=!1;function I(t){for(var e=E(A);null!==e;){if(null===e.callback)k(A);else{if(!(e.startTime<=t))break;k(A),e.sortIndex=e.expirationTime,S(P,e)}e=E(A)}}function B(t){if(M=!1,I(t),!D)if(null!==E(P))D=!0,r(F);else{var e=E(A);null!==e&&o(B,e.startTime-t)}}function F(t,n){D=!1,M&&(M=!1,i()),R=!0;var r=z;try{for(I(n),N=E(P);null!==N&&(!(N.expirationTime>n)||t&&!a());){var s=N.callback;if(null!==s){N.callback=null,z=N.priorityLevel;var u=s(N.expirationTime<=n);n=e.unstable_now(),"function"==typeof u?N.callback=u:N===E(P)&&k(P),I(n)}else k(P);N=E(P)}if(null!==N)var c=!0;else{var f=E(A);null!==f&&o(B,f.startTime-n),c=!1}return c}finally{N=null,z=r,R=!1}}function L(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){D||R||(D=!0,r(F))},e.unstable_getCurrentPriorityLevel=function(){return z},e.unstable_getFirstCallbackNode=function(){return E(P)},e.unstable_next=function(t){switch(z){case 1:case 2:case 3:var e=3;break;default:e=z}var n=z;z=e;try{return t()}finally{z=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=U,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=z;z=t;try{return e()}finally{z=n}},e.unstable_scheduleCallback=function(t,n,a){var s=e.unstable_now();if("object"==typeof a&&null!==a){var u=a.delay;u="number"==typeof u&&0s?(t.sortIndex=u,S(A,t),null===E(P)&&t===E(A)&&(M?i():M=!0,o(B,u-s))):(t.sortIndex=a,S(P,t),D||R||(D=!0,r(F))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();I(t);var n=E(P);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(232),o=n(202),i=n(235),a=n(209),s=n(428),u=Math.max;t.exports=function(t){if(!t||!t.length)return[];var e=0;return t=r(t,(function(t){if(s(t))return e=u(t.length,e),!0})),a(e,(function(e){return o(t,i(e))}))}},function(t,e,n){var r=n(153),o=n(58);t.exports=function(t){return o(t)&&r(t)}},,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(95),o=n(59);function i(){for(var t=[],e=0;e=2&&(n=!0),function(r){return r.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return r.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(o.a)},,,,,,,function(t,e,n){"use strict"; -/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case o:switch(t=t.type){case l:case h:case a:case u:case s:case p:return t;default:switch(t=t&&t.$$typeof){case f:case d:case y:case v:case c:return t;default:return e}}case i:return e}}}function O(t){return x(t)===h}e.AsyncMode=l,e.ConcurrentMode=h,e.ContextConsumer=f,e.ContextProvider=c,e.Element=o,e.ForwardRef=d,e.Fragment=a,e.Lazy=y,e.Memo=v,e.Portal=i,e.Profiler=u,e.StrictMode=s,e.Suspense=p,e.isAsyncMode=function(t){return O(t)||x(t)===l},e.isConcurrentMode=O,e.isContextConsumer=function(t){return x(t)===f},e.isContextProvider=function(t){return x(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===o},e.isForwardRef=function(t){return x(t)===d},e.isFragment=function(t){return x(t)===a},e.isLazy=function(t){return x(t)===y},e.isMemo=function(t){return x(t)===v},e.isPortal=function(t){return x(t)===i},e.isProfiler=function(t){return x(t)===u},e.isStrictMode=function(t){return x(t)===s},e.isSuspense=function(t){return x(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===h||t===u||t===s||t===p||t===b||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===v||t.$$typeof===c||t.$$typeof===f||t.$$typeof===d||t.$$typeof===m||t.$$typeof===g||t.$$typeof===w||t.$$typeof===_)},e.typeOf=x},function(t,e){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,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(223);e.createActionCreator=r.createActionCreator;var o=n(515);e.createActionCreators=o.createActionCreators;var i=n(516);e.proxyActionCreators=i.proxyActionCreators},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(223),o=n(224);e.createActionCreators=function(t,e){return o.createDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(223),o=n(360);e.proxyActionCreators=function(t,e){return o.proxyDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(225);e.createActionCreator=r.createActionCreator;var o=n(518);e.createActionCreators=o.createActionCreators;var i=n(519);e.proxyActionCreators=i.proxyActionCreators},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(225),o=n(224);e.createActionCreators=function(t,e){return o.createDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(225),o=n(360);e.proxyActionCreators=function(t,e){return o.proxyDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(226);e.combineUniqueObjects=function(...t){return r.combineObjects(...t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(361);e.proxyCombineUniqueObjects=function(...t){return r.proxyCombineObjects(...t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(177);e.createReducer=function(t,e){return function(n=t,o){return r.hasOwnProperty.call(e,o.type)?e[o.type](n,o):n}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";t.exports=n(390)},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkParent=void 0,e.checkParent=function(t){if(!t)return void console.error(new Error("react-resize-reporter: empty parent element"));switch(t.tagName){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"menuitem":case"meta":case"param":case"source":case"track":case"wbr":case"script":case"style":case"textarea":case"title":console.error(new Error("react-resize-reporter: Unsupported parent tag name "+t.tagName.toLowerCase()+"."+t.className.replace(/\s+/,".")+" . Change the tag or wrap it in a supported tag(e.g. div)."))}const e=window.getComputedStyle(t);e&&"static"===e.getPropertyValue("position")&&console.warn(new Error("react-resize-reporter: The 'position' CSS property of element "+t.tagName.toLowerCase()+"."+t.className.replace(/\s+/,".")+" should not be 'static'."))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(3),o=n(7);function i(){}var a=n(45);function s(t,e,n){return function(r){return r.lift(new u(t,e,n))}}var u=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))},t}(),c=function(t){function e(e,n,r,o){var s=t.call(this,e)||this;return s._tapNext=i,s._tapError=i,s._tapComplete=i,s._tapError=r||i,s._tapComplete=o||i,Object(a.a)(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||i,s._tapError=n.error||i,s._tapComplete=n.complete||i),s}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(o.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(3),o=n(59),i=n(54),a=n(35),s=n(34),u=n(99),c={};function f(){for(var t=[],e=0;e1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),l=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t},e.prototype.refCount=function(){return u()(this)},e}(i.a),h=function(){var t=l.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),d=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.b);a.a;var p=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();function b(){return new o.a}function v(){return function(t){return u()((e=b,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new p(r,n));var o=Object.create(t,h);return o.source=t,o.subjectFactory=r,o})(t));var e,n}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(108);function o(t,e){return e?Object(r.a)((function(){return t}),e):Object(r.a)((function(){return t}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(104);function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e")+"\" does not return a stream. Double check you're not missing a return statement!");return e}))))};try{Object.defineProperty(i,"name",{value:"combineEpics("+e.map((function(t){return t.name||""})).join(", ")+")"})}catch(t){}return i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=n(7);function i(){return function(t){return t.lift(new a)}}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.__extends(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(o.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return M}));var r=n(3),o=n(112),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(o.a),a=n(111),s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(a.a))(i),u=n(91),c=n(64),f=n(7),l=n(103);function h(t,e){return void 0===e&&(e=0),function(n){return n.lift(new d(t,e))}}var d=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.scheduler,this.delay))},t}(),p=function(t){function e(e,n,r){void 0===r&&(r=0);var o=t.call(this,e)||this;return o.scheduler=n,o.delay=r,o}return r.__extends(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new b(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(l.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(l.a.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(l.a.createComplete()),this.unsubscribe()},e}(f.a),b=function(){return function(t,e){this.notification=t,this.destination=e}}(),v=n(10),y=n(145),_=n(8),m=1,g=function(){return Promise.resolve()}(),w={};function x(t){return t in w&&(delete w[t],!0)}var O=function(t){var e=m++;return w[e]=!0,g.then((function(){return x(e)&&t()})),e},j=function(t){x(t)},S=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=O(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(j(n),e.scheduled=void 0)},e}(o.a),E=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r0&&void 0!==arguments[0]?arguments[0]:{},e=s.constructor,n=new e(s.SchedulerAction);var r=new u.a,o=void 0,i=function(e){o=e;var i=(new u.a).pipe(h(n)),a=(new u.a).pipe(h(n)),s=new R(i),f=new D(a,o.getState());return r.pipe(Object(v.a)((function(e){var n="dependencies"in t?e(s,f,t.dependencies):e(s,f);if(!n)throw new TypeError('Your root Epic "'+(e.name||"")+"\" does not return a stream. Double check you're not missing a return statement!");return n})),Object(y.a)((function(t){return Object(c.a)(t).pipe(P(n),h(n))}))).subscribe(o.dispatch),function(t){return function(e){var n=t(e);return a.next(o.getState()),i.next(e),n}}};return i.run=function(t){r.next(t)},i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(3),o=n(7),i=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),a=n(118);function s(t){return function(e){return 0===t?Object(a.b)():e.lift(new u(t))}}var u=function(){function t(t){if(this.total=t,this.total<0)throw new i}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.a)}]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/18.dfab4f7a.js b/plugins/saladict-ztools/ext-saladic/assets/18.dfab4f7a.js new file mode 100644 index 00000000..bfae026b --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/18.dfab4f7a.js @@ -0,0 +1,55 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[18],[,,,,function(t,e,r){"use strict";r.r(e),r.d(e,"__extends",(function(){return i})),r.d(e,"__assign",(function(){return o})),r.d(e,"__rest",(function(){return a})),r.d(e,"__decorate",(function(){return s})),r.d(e,"__param",(function(){return c})),r.d(e,"__metadata",(function(){return u})),r.d(e,"__awaiter",(function(){return l})),r.d(e,"__generator",(function(){return f})),r.d(e,"__createBinding",(function(){return h})),r.d(e,"__exportStar",(function(){return d})),r.d(e,"__values",(function(){return p})),r.d(e,"__read",(function(){return b})),r.d(e,"__spread",(function(){return y})),r.d(e,"__spreadArrays",(function(){return v})),r.d(e,"__await",(function(){return g})),r.d(e,"__asyncGenerator",(function(){return m})),r.d(e,"__asyncDelegator",(function(){return _})),r.d(e,"__asyncValues",(function(){return w})),r.d(e,"__makeTemplateObject",(function(){return x})),r.d(e,"__importStar",(function(){return k})),r.d(e,"__importDefault",(function(){return S})),r.d(e,"__classPrivateFieldGet",(function(){return E})),r.d(e,"__classPrivateFieldSet",(function(){return A})); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var o=function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}function c(t,e){return function(r,n){e(r,n,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{c(n.next(t))}catch(t){o(t)}}function s(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((n=n.apply(t,e||[])).next())}))}function f(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function y(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(r=i[t](e)).value instanceof g?Promise.resolve(r.value.v).then(c,u):l(o[0][2],r)}catch(t){l(o[0][3],t)}var r}function c(t){s("next",t)}function u(t){s("throw",t)}function l(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:g(t[n](e)),done:"return"===n}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=p(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,i,(e=t[r](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function k(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function A(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}},,function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(4),i=r(46),o=r(82),a=r(14),s=r(72),c=r(24),u=r(52),l=function(t){function e(r,n,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!r){a.destination=o.a;break}if("object"==typeof r){r instanceof e?(a.syncErrorThrowable=r.syncErrorThrowable,a.destination=r,r.add(a)):(a.syncErrorThrowable=!0,a.destination=new f(a,r));break}default:a.syncErrorThrowable=!0,a.destination=new f(a,r,n,i)}return a}return n.__extends(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a.a),f=function(t){function e(e,r,n,a){var s,c=t.call(this)||this;c._parentSubscriber=e;var u=c;return Object(i.a)(r)?s=r:r&&(s=r.next,n=r.error,a=r.complete,r!==o.a&&(u=Object.create(r),Object(i.a)(u.unsubscribe)&&c.add(u.unsubscribe.bind(u)),u.unsubscribe=c.unsubscribe.bind(c))),c._context=u,c._next=s,c._error=n,c._complete=a,c}return n.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=c.a.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(u.a)(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;Object(u.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};c.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.a.useDeprecatedSynchronousErrorHandling)throw t;Object(u.a)(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!c.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(e){return c.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(u.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(7);var i=r(72),o=r(82);var a=r(51),s=r(120);function c(t){return 0===t.length?s.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var u=r(24),l=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var a=this.operator,s=function(t,e,r){if(t){if(t instanceof n.a)return t;if(t[i.a])return t[i.a]()}return t||e||r?new n.a(t,e,r):new n.a(o.a)}(t,e,r);if(a?s.add(a.call(s,this.source)):s.add(this.source||u.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),u.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){u.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,r=e.closed,i=e.destination,o=e.isStopped;if(r||o)return!1;t=i&&i instanceof n.a?i:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=f(e))((function(e,n){var i;i=r.subscribe((function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e>>2]>>>24-o%4*8&255;e[n+o>>>2]|=a<<24-(n+o)%4*8}else for(o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var r,n=[],i=function(e){e=e;var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new a.init(r,e/2)}},u=s.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new a.init(r,e)}},l=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=i/(4*o),c=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,u=t.min(4*c,i);if(c){for(var l=0;l>>2];t.sigBytes-=e}},o.BlockCipher=h.extend({cfg:h.cfg.extend({mode:b,padding:y}),reset:function(){h.reset.call(this);var t=this.cfg,e=t.iv,r=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else n=r.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==n?this._mode.init(this,e&&e.words):(this._mode=n.call(r,this,e&&e.words),this._mode.__creator=n)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4}),v=o.CipherParams=a.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),g=(i.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,r=t.salt;if(r)var n=s.create([1398893684,1701076831]).concat(r).concat(e);else n=e;return n.toString(l)},parse:function(t){var e=l.parse(t),r=e.words;if(1398893684==r[0]&&1701076831==r[1]){var n=s.create(r.slice(2,4));r.splice(0,4),e.sigBytes-=16}return v.create({ciphertext:e,salt:n})}},m=o.SerializableCipher=a.extend({cfg:a.extend({format:g}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=t.createEncryptor(r,n),o=i.finalize(e),a=i.cfg;return v.create({ciphertext:o,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(r,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),_=(i.kdf={}).OpenSSL={execute:function(t,e,r,n){n||(n=s.random(8));var i=f.create({keySize:e+r}).compute(t,n),o=s.create(i.words.slice(e),4*r);return i.sigBytes=4*e,v.create({key:i,iv:o,salt:n})}},w=o.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:_}),encrypt:function(t,e,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,t.keySize,t.ivSize);n.iv=i.iv;var o=m.encrypt.call(this,t,e,i.key,n);return o.mixIn(i),o},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var i=n.kdf.execute(r,t.keySize,t.ivSize,e.salt);return n.iv=i.iv,m.decrypt.call(this,t,e,i.key,n)}}))))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(118),i=new(r(117).a)(n.a)},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(151);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(4),i=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}(),o=function(t){function e(r,n){void 0===n&&(n=i.now);var o=t.call(this,r,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():n()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return n.__extends(e,t),e.prototype.schedule=function(r,n,i){return void 0===n&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(i)},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(4),i=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n.pending=!1,n}return n.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,r){return t.call(this)||this}return n.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(r(14).a))},function(t,e,r){"use strict";function n(t){return null!==t&&"object"==typeof t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t){return t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(4),i=r(37),o=r(99),a=r(36),s=r(10),c=r(67);function u(t,e){return"function"==typeof e?function(r){return r.pipe(u((function(r,n){return Object(c.a)(t(r,n)).pipe(Object(s.a)((function(t,i){return e(r,t,n,i)})))})))}:function(e){return e.lift(new l(t))}}var l=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},t}(),f=function(t){function e(e,r){var n=t.call(this,e)||this;return n.project=r,n.index=0,n}return n.__extends(e,t),e.prototype._next=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){var n=this.innerSubscription;n&&n.unsubscribe();var i=new o.a(this,e,r),s=this.destination;s.add(i),this.innerSubscription=Object(a.a)(this,t,void 0,void 0,i),this.innerSubscription!==i&&s.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e}(i.a)},,function(t,e,r){var n=r(66).Symbol;t.exports=n},function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o}));var n=r(8),i=new n.a((function(t){return t.complete()}));function o(t){return t?function(t){return new n.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(0),i=r(30);function o(t,e){var r=Object(i.e)(i.a),o=Object(i.e)((function(){return t(r.current)}));return[Object(n.useRef)((function(){for(var t=[],n=0;nt.length)&&(e=t.length);for(var r=0,n=new Array(e);r1?r-1:0),i=1;i/gm),I=o(/^data-[\-\w.\u00B7-\uFFFF]/),q=o(/^aria-[\-\w]+$/),F=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=o(/^(?:\w+script|data):/i),L=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W="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 X(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:K(),r=function(e){return t(e)};if(r.version="2.0.17",r.removed=[],!e||!e.document||9!==e.document.nodeType)return r.isSupported=!1,r;var o=e.document,a=!1,s=e.document,c=e.DocumentFragment,u=e.HTMLTemplateElement,S=e.Node,E=e.NodeFilter,Z=e.NamedNodeMap,$=void 0===Z?e.NamedNodeMap||e.MozNamedAttrMap:Z,G=e.Text,Y=e.Comment,J=e.DOMParser,Q=e.trustedTypes;if("function"==typeof u){var tt=s.createElement("template");tt.content&&tt.content.ownerDocument&&(s=tt.content.ownerDocument)}var et=V(Q,o),rt=et&&Mt?et.createHTML(""):"",nt=s,it=nt.implementation,ot=nt.createNodeIterator,at=nt.getElementsByTagName,st=nt.createDocumentFragment,ct=o.importNode,ut={};try{ut=O(s).documentMode?s.documentMode:{}}catch(t){}var lt={};r.isSupported=it&&void 0!==it.createHTMLDocument&&9!==ut;var ft=D,ht=P,dt=I,pt=q,bt=U,yt=L,vt=F,gt=null,mt=A({},[].concat(X(R),X(T),X(j),X(C),X(B))),_t=null,wt=A({},[].concat(X(H),X(z),X(M),X(N))),xt=null,kt=null,St=!0,Et=!0,At=!1,Ot=!1,Rt=!1,Tt=!1,jt=!1,Ct=!1,Bt=!1,Ht=!1,zt=!1,Mt=!1,Nt=!0,Dt=!0,Pt=!1,It={},qt=A({},["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"]),Ft=null,Ut=A({},["audio","video","img","source","image","track"]),Lt=null,Wt=A({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Xt=null,Kt=s.createElement("form"),Vt=function(t){Xt&&Xt===t||(t&&"object"===(void 0===t?"undefined":W(t))||(t={}),t=O(t),gt="ALLOWED_TAGS"in t?A({},t.ALLOWED_TAGS):mt,_t="ALLOWED_ATTR"in t?A({},t.ALLOWED_ATTR):wt,Lt="ADD_URI_SAFE_ATTR"in t?A(O(Wt),t.ADD_URI_SAFE_ATTR):Wt,Ft="ADD_DATA_URI_TAGS"in t?A(O(Ut),t.ADD_DATA_URI_TAGS):Ut,xt="FORBID_TAGS"in t?A({},t.FORBID_TAGS):{},kt="FORBID_ATTR"in t?A({},t.FORBID_ATTR):{},It="USE_PROFILES"in t&&t.USE_PROFILES,St=!1!==t.ALLOW_ARIA_ATTR,Et=!1!==t.ALLOW_DATA_ATTR,At=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ot=t.SAFE_FOR_JQUERY||!1,Rt=t.SAFE_FOR_TEMPLATES||!1,Tt=t.WHOLE_DOCUMENT||!1,Bt=t.RETURN_DOM||!1,Ht=t.RETURN_DOM_FRAGMENT||!1,zt=t.RETURN_DOM_IMPORT||!1,Mt=t.RETURN_TRUSTED_TYPE||!1,Ct=t.FORCE_BODY||!1,Nt=!1!==t.SANITIZE_DOM,Dt=!1!==t.KEEP_CONTENT,Pt=t.IN_PLACE||!1,vt=t.ALLOWED_URI_REGEXP||vt,Rt&&(Et=!1),Ht&&(Bt=!0),It&&(gt=A({},[].concat(X(B))),_t=[],!0===It.html&&(A(gt,R),A(_t,H)),!0===It.svg&&(A(gt,T),A(_t,z),A(_t,N)),!0===It.svgFilters&&(A(gt,j),A(_t,z),A(_t,N)),!0===It.mathMl&&(A(gt,C),A(_t,M),A(_t,N))),t.ADD_TAGS&&(gt===mt&&(gt=O(gt)),A(gt,t.ADD_TAGS)),t.ADD_ATTR&&(_t===wt&&(_t=O(_t)),A(_t,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&A(Lt,t.ADD_URI_SAFE_ATTR),Dt&&(gt["#text"]=!0),Tt&&A(gt,["html","head","body"]),gt.table&&(A(gt,["tbody"]),delete xt.tbody),i&&i(t),Xt=t)},Zt=function(t){p(r.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.outerHTML=rt}},$t=function(t,e){try{p(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){p(r.removed,{attribute:null,from:e})}e.removeAttribute(t)},Gt=function(t){var e=void 0,r=void 0;if(Ct)t=""+t;else{var n=v(t,/^[\r\n\t ]+/);r=n&&n[0]}var i=et?et.createHTML(t):t;try{e=(new J).parseFromString(i,"text/html")}catch(t){}if(a&&A(xt,["title"]),!e||!e.documentElement){var o=(e=it.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=i}return t&&r&&e.body.insertBefore(s.createTextNode(r),e.body.childNodes[0]||null),at.call(e,Tt?"html":"body")[0]};r.isSupported&&function(){try{var t=Gt("</title><img>");w(/<\/title/,t.querySelector("title").innerHTML)&&(a=!0)}catch(t){}}();var Yt=function(t){return ot.call(t.ownerDocument||t,t,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT,(function(){return E.FILTER_ACCEPT}),!1)},Jt=function(t){return!(t instanceof G||t instanceof Y||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof $&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI)},Qt=function(t){return"object"===(void 0===S?"undefined":W(S))?t instanceof S:t&&"object"===(void 0===t?"undefined":W(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},te=function(t,e,n){lt[t]&&l(lt[t],(function(t){t.call(r,e,n,Xt)}))},ee=function(t){var e=void 0;if(te("beforeSanitizeElements",t,null),Jt(t))return Zt(t),!0;if(v(t.nodeName,/[\u0080-\uFFFF]/))return Zt(t),!0;var n=y(t.nodeName);if(te("uponSanitizeElement",t,{tagName:n,allowedTags:gt}),("svg"===n||"math"===n)&&0!==t.querySelectorAll("p, br, form, table").length)return Zt(t),!0;if(!gt[n]||xt[n]){if(Dt&&!qt[n]&&"function"==typeof t.insertAdjacentHTML)try{var i=t.innerHTML;t.insertAdjacentHTML("AfterEnd",et?et.createHTML(i):i)}catch(t){}return Zt(t),!0}return"noscript"===n&&w(/<\/noscript/i,t.innerHTML)||"noembed"===n&&w(/<\/noembed/i,t.innerHTML)?(Zt(t),!0):(!Ot||Qt(t.firstElementChild)||Qt(t.content)&&Qt(t.content.firstElementChild)||!w(/</g,t.textContent)||(p(r.removed,{element:t.cloneNode()}),t.innerHTML?t.innerHTML=g(t.innerHTML,/</g,"<"):t.innerHTML=g(t.textContent,/</g,"<")),Rt&&3===t.nodeType&&(e=t.textContent,e=g(e,ft," "),e=g(e,ht," "),t.textContent!==e&&(p(r.removed,{element:t.cloneNode()}),t.textContent=e)),te("afterSanitizeElements",t,null),!1)},re=function(t,e,r){if(Nt&&("id"===e||"name"===e)&&(r in s||r in Kt))return!1;if(Et&&w(dt,e));else if(St&&w(pt,e));else{if(!_t[e]||kt[e])return!1;if(Lt[e]);else if(w(vt,g(r,yt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==m(r,"data:")||!Ft[t])if(At&&!w(bt,g(r,yt,"")));else if(r)return!1}return!0},ne=function(t){var e=void 0,i=void 0,o=void 0,a=void 0,s=void 0;te("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_t};for(s=c.length;s--;){var l=e=c[s],p=l.name,v=l.namespaceURI;if(i=_(e.value),o=y(p),u.attrName=o,u.attrValue=i,u.keepAttr=!0,u.forceKeepAttr=void 0,te("uponSanitizeAttribute",t,u),i=u.attrValue,!u.forceKeepAttr){if("name"===o&&"IMG"===t.nodeName&&c.id)a=c.id,c=b(c,[]),$t("id",t),$t(p,t),f(c,a)>s&&t.setAttribute("id",a.value);else{if("INPUT"===t.nodeName&&"type"===o&&"file"===i&&u.keepAttr&&(_t[o]||!kt[o]))continue;"id"===p&&t.setAttribute(p,""),$t(p,t)}if(u.keepAttr)if(Ot&&w(/\/>/i,i))$t(p,t);else if(w(/svg|math/i,t.namespaceURI)&&w(x("</("+h(n(qt),"|")+")","i"),i))$t(p,t);else{Rt&&(i=g(i,ft," "),i=g(i,ht," "));var m=t.nodeName.toLowerCase();if(re(m,o,i))try{v?t.setAttributeNS(v,p,i):t.setAttribute(p,i),d(r.removed)}catch(t){}}}}te("afterSanitizeAttributes",t,null)}},ie=function t(e){var r=void 0,n=Yt(e);for(te("beforeSanitizeShadowDOM",e,null);r=n.nextNode();)te("uponSanitizeShadowNode",r,null),ee(r)||(r.content instanceof c&&t(r.content),ne(r));te("afterSanitizeShadowDOM",e,null)};return r.sanitize=function(t,n){var i=void 0,a=void 0,s=void 0,u=void 0,l=void 0;if(t||(t="\x3c!--\x3e"),"string"!=typeof t&&!Qt(t)){if("function"!=typeof t.toString)throw k("toString is not a function");if("string"!=typeof(t=t.toString()))throw k("dirty is not a string, aborting")}if(!r.isSupported){if("object"===W(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof t)return e.toStaticHTML(t);if(Qt(t))return e.toStaticHTML(t.outerHTML)}return t}if(jt||Vt(n),r.removed=[],"string"==typeof t&&(Pt=!1),Pt);else if(t instanceof S)1===(a=(i=Gt("\x3c!--\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!Bt&&!Rt&&!Tt&&-1===t.indexOf("<"))return et&&Mt?et.createHTML(t):t;if(!(i=Gt(t)))return Bt?null:rt}i&&Ct&&Zt(i.firstChild);for(var f=Yt(Pt?t:i);s=f.nextNode();)3===s.nodeType&&s===u||ee(s)||(s.content instanceof c&&ie(s.content),ne(s),u=s);if(u=null,Pt)return t;if(Bt){if(Ht)for(l=st.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return zt&&(l=ct.call(o,l,!0)),l}var h=Tt?i.outerHTML:i.innerHTML;return Rt&&(h=g(h,ft," "),h=g(h,ht," ")),et&&Mt?et.createHTML(h):h},r.setConfig=function(t){Vt(t),jt=!0},r.clearConfig=function(){Xt=null,jt=!1},r.isValidAttribute=function(t,e,r){Xt||Vt({});var n=y(t),i=y(e);return re(n,i,r)},r.addHook=function(t,e){"function"==typeof e&&(lt[t]=lt[t]||[],p(lt[t],e))},r.removeHook=function(t){lt[t]&&d(lt[t])},r.removeHooks=function(t){lt[t]&&(lt[t]=[])},r.removeAllHooks=function(){lt={}},r}()}()},,function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(10);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.length;if(0===r)throw new Error("list of properties cannot be empty.");return function(e){return Object(n.a)(o(t,r))(e)}}function o(t,e){return function(r){for(var n=r,i=0;i<e;i++){var o=null!=n?n[t[i]]:void 0;if(void 0===o)return;n=o}return n}}},,function(t,e,r){var n=r(334),i=r(335),o=r(336),a=r(337),s=r(338);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(133);function i(t,e){if(t){if("string"==typeof t)return Object(n.a)(t,e);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)?Object(n.a)(t,e):void 0}}},,,,,function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(56),i=r(168),o=r(320),a=r(261);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e,r){var n=r(69),i=r(64);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(4),i=r(36),o=r(37),a=r(99),s=r(10),c=r(67);function u(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof e?function(n){return n.pipe(u((function(r,n){return Object(c.a)(t(r,n)).pipe(Object(s.a)((function(t,i){return e(r,t,n,i)})))}),r))}:("number"==typeof e&&(r=e),function(e){return e.lift(new l(t,r))})}var l=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project,this.concurrent))},t}(),f=function(t){function e(e,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return n.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){var n=new a.a(this,e,r),o=this.destination;o.add(n);var s=Object(i.a)(this,t,void 0,void 0,n);s!==n&&o.add(s)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},,function(t,e,r){var n=r(208),i=r(213),o=r(452);t.exports=function(t,e){var r={};return e=o(e,3),i(t,(function(t,i,o){n(r,i,e(t,i,o))})),r}},,function(t,e,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(t,e,r){var n=r(278),i=r(316),o=r(162);t.exports=function(t){return o(t)?n(t):i(t)}},,,function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,r){var n=r(206),i=r(161);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},,,,,function(t,e,r){var n=r(56),i=r(151),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,r){var n=r(323),i=r(339),o=r(341),a=r(342),s=r(343);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},function(t,e,r){var n=r(93)(r(66),"Map");t.exports=n},,,,,,,,,,,,function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(4),i=r(7);function o(t,e){return function(r){return r.lift(new a(t,e))}}var a=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))},t}(),s=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.keySelector=n,i.hasKey=!1,"function"==typeof r&&(i.compare=r),i}return n.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var r=this.keySelector;e=r?r(t):t}catch(t){return this.destination.error(t)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))},e}(i.a)},,,,function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(6);function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),i.forEach((function(e){Object(n.a)(t,e,r[e])}))}return t}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(4),i=r(114);var o=r(7),a=r(111);function s(t,e){void 0===e&&(e=i.a);var r,n=(r=t)instanceof Date&&!isNaN(+r)?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(n,e))}}var c=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.delay,this.scheduler))},t}(),u=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.delay=r,i.scheduler=n,i.queue=[],i.active=!1,i.errored=!1,i}return n.__extends(e,t),e.dispatch=function(t){for(var e=t.source,r=e.queue,n=t.scheduler,i=t.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var o=Math.max(0,r[0].time-n.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,r=new l(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()},e}(o.a),l=function(){return function(t,e){this.time=t,this.notification=e}}()},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},,function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(30),i=r(0);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Object(i.useRef)(t);r.current=t;var o=Object(n.d)(),a=Object(i.useRef)(),s=Object(i.useRef)();if(Object(i.useEffect)((function(){s.current=null;var t=r.current[0],e=t.subscribe({next:function(e){if(t===r.current[0])return r.current[1]?r.current[1](e):void 0},error:function(e){if(t===r.current[0]){if(r.current[2])return s.current=null,r.current[2](e);s.current=e,o()}},complete:function(){if(t===r.current[0])return r.current[3]?r.current[3]():void 0}});return a.current=e,function(){e.unsubscribe()}}),[t[0]]),s.current)throw s.current;return a}},,,,,,,,function(t,e,r){"use strict";t.exports=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,r){"use strict";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var o=n,a=i+r;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},function(t,e,r){"use strict";var n=r(68),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function c(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",a=0;a<e;a++)r+=String.fromCharCode(t[a]);return r}a[254]=a[254]=1,e.string2buf=function(t){var e,r,i,o,a,s=t.length,c=0;for(o=0;o<s;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),c+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(c),a=0,o=0;a<c;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},e.buf2binstring=function(t){return c(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},e.buf2string=function(t,e){var r,n,i,o,s=e||t.length,u=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)u[n++]=i;else if((o=a[i])>4)u[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<s;)i=i<<6|63&t[r++],o--;o>1?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return c(u,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+a[t[r]]>e?r:e}},function(t,e,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){var n=r(311),i=r(64),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},function(t,e){var r="object"==typeof global&&global&&global.Object===Object&&global;t.exports=r},function(t,e,r){(function(t){var n=r(66),i=r(314),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c}).call(this,r(188)(t))},function(t,e,r){var n=r(69),i=r(115);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,r){var n=r(150),i=r(116);t.exports=function(t,e){for(var r=0,o=(e=n(e,t)).length;null!=t&&r<o;)t=t[i(e[r++])];return r&&r==o?t:void 0}},function(t,e,r){var n=r(228);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},,,,,function(t,e,r){var n=r(309),i=r(157);t.exports=function(t,e){return t&&n(t,e,i)}},function(t,e,r){var n=r(315),i=r(258),o=r(259),a=o&&o.isTypedArray,s=a?i(a):n;t.exports=s},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},function(t,e,r){var n=r(460),i=r(64);t.exports=function t(e,r,o,a,s){return e===r||(null==e||null==r||!i(e)&&!i(r)?e!=e&&r!=r:n(e,r,o,a,t,s))}},function(t,e,r){"use strict";function n(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t){if(Array.isArray(t))return t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(e,"a",(function(){return n}))},function(t,e,r){var n;!function(i,o){"use strict";var a="model",s="name",c="type",u="vendor",l="version",f="mobile",h="tablet",d="smarttv",p=function(t){for(var e={},r=0;r<t.length;r++)e[t[r].toUpperCase()]=t[r];return e},b=function(t,e){return"string"==typeof t&&-1!==y(e).indexOf(y(t))},y=function(t){return t.toLowerCase()},v=function(t,e){if("string"==typeof t)return t=t.replace(/^\s\s*/,""),void 0===e?t:t.substring(0,350)},g=function(t,e){for(var r,n,i,o,a,s,c=0;c<e.length&&!a;){var u=e[c],l=e[c+1];for(r=n=0;r<u.length&&!a;)if(a=u[r++].exec(t))for(i=0;i<l.length;i++)s=a[++n],"object"==typeof(o=l[i])&&o.length>0?2===o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3===o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4===o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;c+=2}},m=function(t,e){for(var r in e)if("object"==typeof e[r]&&e[r].length>0){for(var n=0;n<e[r].length;n++)if(b(e[r][n],t))return"?"===r?void 0:r}else if(b(e[r],t))return"?"===r?void 0:r;return t},_={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},w={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,l],[/opios[\/ ]+([\w\.]+)/i],[l,[s,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[l,[s,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[s,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[s,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[s,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[s,"IE"]],[/yabrowser\/([\w\.]+)/i],[l,[s,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],l],[/\bfocus\/([\w\.]+)/i],[l,[s,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[l,[s,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[s,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[s,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[l,[s,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 Browser"]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],l],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[s,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,"Facebook"],l],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[s,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[s,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[s,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[s,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[l,m,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[s,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[s,l],[/(cobalt)\/([\w\.]+)/i],[s,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",y]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",y]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",y]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[u,"Samsung"],[c,h]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[u,"Samsung"],[c,f]],[/\((ip(?:hone|od)[\w ]*);/i],[a,[u,"Apple"],[c,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[u,"Apple"],[c,h]],[/(macintosh);/i],[a,[u,"Apple"]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,h]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[u,"Huawei"],[c,f]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[u,"Xiaomi"],[c,f]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[u,"Xiaomi"],[c,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[u,"OPPO"],[c,f]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[u,"Vivo"],[c,f]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[u,"Realme"],[c,f]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[u,"Motorola"],[c,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[u,"Motorola"],[c,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[u,"LG"],[c,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[u,"LG"],[c,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[u,"Lenovo"],[c,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[u,"Nokia"],[c,f]],[/(pixel c)\b/i],[a,[u,"Google"],[c,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[u,"Google"],[c,f]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[u,"Sony"],[c,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[u,"Sony"],[c,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[u,"OnePlus"],[c,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[u,"Amazon"],[c,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[u,"Amazon"],[c,f]],[/(playbook);[-\w\),; ]+(rim)/i],[a,u,[c,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[u,"BlackBerry"],[c,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[u,"ASUS"],[c,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[u,"ASUS"],[c,f]],[/(nexus 9)/i],[a,[u,"HTC"],[c,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[a,/_/g," "],[c,f]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[u,"Acer"],[c,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[u,"Meizu"],[c,f]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[u,"Sharp"],[c,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[u,a,[c,f]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,a,[c,h]],[/(surface duo)/i],[a,[u,"Microsoft"],[c,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[u,"Fairphone"],[c,f]],[/(u304aa)/i],[a,[u,"AT&T"],[c,f]],[/\bsie-(\w*)/i],[a,[u,"Siemens"],[c,f]],[/\b(rct\w+) b/i],[a,[u,"RCA"],[c,h]],[/\b(venue[\d ]{2,7}) b/i],[a,[u,"Dell"],[c,h]],[/\b(q(?:mv|ta)\w+) b/i],[a,[u,"Verizon"],[c,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[u,"Barnes & Noble"],[c,h]],[/\b(tm\d{3}\w+) b/i],[a,[u,"NuVision"],[c,h]],[/\b(k88) b/i],[a,[u,"ZTE"],[c,h]],[/\b(nx\d{3}j) b/i],[a,[u,"ZTE"],[c,f]],[/\b(gen\d{3}) b.+49h/i],[a,[u,"Swiss"],[c,f]],[/\b(zur\d{3}) b/i],[a,[u,"Swiss"],[c,h]],[/\b((zeki)?tb.*\b) b/i],[a,[u,"Zeki"],[c,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],a,[c,h]],[/\b(ns-?\w{0,9}) b/i],[a,[u,"Insignia"],[c,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[u,"NextBook"],[c,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],a,[c,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],a,[c,f]],[/\b(ph-1) /i],[a,[u,"Essential"],[c,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[u,"Envizen"],[c,h]],[/\b(trio[-\w\. ]+) b/i],[a,[u,"MachSpeed"],[c,h]],[/\btu_(1491) b/i],[a,[u,"Rotor"],[c,h]],[/(shield[\w ]+) b/i],[a,[u,"Nvidia"],[c,h]],[/(sprint) (\w+)/i],[u,a,[c,f]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[u,"Microsoft"],[c,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[u,"Zebra"],[c,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[u,"Zebra"],[c,f]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,a,[c,"console"]],[/droid.+; (shield) bui/i],[a,[u,"Nvidia"],[c,"console"]],[/(playstation [345portablevi]+)/i],[a,[u,"Sony"],[c,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[u,"Microsoft"],[c,"console"]],[/smart-tv.+(samsung)/i],[u,[c,d]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[u,"Samsung"],[c,d]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,"LG"],[c,d]],[/(apple) ?tv/i],[u,[a,"Apple TV"],[c,d]],[/crkey/i],[[a,"Chromecast"],[u,"Google"],[c,d]],[/droid.+aft(\w)( bui|\))/i],[a,[u,"Amazon"],[c,d]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[u,"Sharp"],[c,d]],[/(bravia[\w ]+)( bui|\))/i],[a,[u,"Sony"],[c,d]],[/(mitv-\w{5}) bui/i],[a,[u,"Xiaomi"],[c,d]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[u,v],[a,v],[c,d]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,d]],[/((pebble))app/i],[u,a,[c,"wearable"]],[/droid.+; (glass) \d/i],[a,[u,"Google"],[c,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[a,[u,"Zebra"],[c,"wearable"]],[/(quest( 2)?)/i],[a,[u,"Facebook"],[c,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[c,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[c,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[c,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,h]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,f]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[s,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[s,[l,m,_]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,"Windows"],[l,m,_]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,"Mac OS"],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,l],[/\(bb(10);/i],[l,[s,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[s,"webOS"]],[/crkey\/([\d\.]+)/i],[l,[s,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[s,"Chromium OS"],l],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,l],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[s,l]]},x=function(t,e){if("object"==typeof t&&(e=t,t=void 0),!(this instanceof x))return new x(t,e).getResult();var r=t||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),n=e?function(t,e){var r={};for(var n in t)e[n]&&e[n].length%2==0?r[n]=e[n].concat(t[n]):r[n]=t[n];return r}(w,e):w;return this.getBrowser=function(){var t,e={};return e[s]=void 0,e[l]=void 0,g.call(e,r,n.browser),e.major="string"==typeof(t=e.version)?t.replace(/[^\d\.]/g,"").split(".")[0]:void 0,e},this.getCPU=function(){var t={architecture:void 0};return g.call(t,r,n.cpu),t},this.getDevice=function(){var t={vendor:void 0,model:void 0,type:void 0};return g.call(t,r,n.device),t},this.getEngine=function(){var t={name:void 0,version:void 0};return g.call(t,r,n.engine),t},this.getOS=function(){var t={name:void 0,version:void 0};return g.call(t,r,n.os),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(t){return r="string"==typeof t&&t.length>350?v(t,350):t,this},this.setUA(r),this};x.VERSION="0.7.33",x.BROWSER=p([s,l,"major"]),x.CPU=p(["architecture"]),x.DEVICE=p([a,u,c,"console",f,d,h,"wearable","embedded"]),x.ENGINE=x.OS=p([s,l]),void 0!==e?(void 0!==t&&t.exports&&(e=t.exports=x),e.UAParser=x):r(348)?void 0===(n=function(){return x}.call(e,r,e,t))||(t.exports=n):void 0!==i&&(i.UAParser=x);var k=void 0!==i&&(i.jQuery||i.Zepto);if(k&&!k.ua){var S=new x;k.ua=S.getResult(),k.ua.get=function(){return S.getUA()},k.ua.set=function(t){S.setUA(t);var e=S.getResult();for(var r in e)k.ua[r]=e[r]}}}("object"==typeof window?window:this)},function(t,e,r){var n=r(498),i=r(499);t.exports=function(t,e,r){var o=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[o+s]=a[s];return e||i(a)}},,,,,function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(93),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,r){var n=r(143),i=r(455),o=r(456),a=r(457),s=r(458),c=r(459);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,t.exports=u},function(t,e,r){"use strict";var n=r(50);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var o;if(r)o=r(e);else if(n.isURLSearchParams(e))o=e.toString();else{var a=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},,,,,,function(t,e,r){"use strict";var n=r(830),i=r(831),o=r(650);t.exports={formats:o,parse:i,stringify:n}},function(t,e,r){var n,i,o,a,s,c,u,l;t.exports=(l=r(49),window.axios,r(501),i=(n=l).lib,o=i.Base,a=i.WordArray,s=n.algo,c=s.MD5,u=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=r.hasher.create(),i=a.create(),o=i.words,s=r.keySize,c=r.iterations;o.length<s;){u&&n.update(u);var u=n.update(t).finalize(e);n.reset();for(var l=1;l<c;l++)u=n.finalize(u),n.reset();i.concat(u)}return i.sigBytes=4*s,i}}),n.EvpKDF=function(t,e,r){return u.create(r).compute(t,e)},l.EvpKDF)},,,,,function(t,e,r){var n=r(461),i=r(464),o=r(465);t.exports=function(t,e,r,a,s,c){var u=1&r,l=t.length,f=e.length;if(l!=f&&!(u&&f>l))return!1;var h=c.get(t),d=c.get(e);if(h&&d)return h==e&&d==t;var p=-1,b=!0,y=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++p<l;){var v=t[p],g=e[p];if(a)var m=u?a(g,v,p,e,t,c):a(v,g,p,t,e,c);if(void 0!==m){if(m)continue;b=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(v===t||s(v,t,r,a,c)))return y.push(e)}))){b=!1;break}}else if(v!==g&&!s(v,g,r,a,c)){b=!1;break}}return c.delete(t),c.delete(e),b}},function(t,e,r){var n=r(115);t.exports=function(t){return t==t&&!n(t)}},function(t,e){t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,r){"use strict";var n=r(50),i=r(487),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=r(248)),s),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){c.headers[t]=n.merge(o)})),t.exports=c},function(t,e,r){"use strict";var n=r(50),i=r(488),o=r(490),a=r(230),s=r(400),c=r(493),u=r(494),l=r(249);t.exports=function(t){return new Promise((function(e,r){var f=t.data,h=t.headers;n.isFormData(f)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",b=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";h.Authorization="Basic "+btoa(p+":"+b)}var y=s(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),a(y,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?c(d.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:t,request:d};i(e,r,o),d=null}},d.onabort=function(){d&&(r(l("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){r(l("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(l(e,t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var v=(t.withCredentials||u(y))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;v&&(h[t.xsrfHeaderName]=v)}if("setRequestHeader"in d&&n.forEach(h,(function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),r(t),d=null)})),f||(f=null),d.send(f)}))}},function(t,e,r){"use strict";var n=r(489);t.exports=function(t,e,r,i,o){var a=new Error(t);return n(a,e,r,i,o)}},function(t,e,r){"use strict";var n=r(50);t.exports=function(t,e){e=e||{};var r={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function u(i){n.isUndefined(e[i])?n.isUndefined(t[i])||(r[i]=c(void 0,t[i])):r[i]=c(t[i],e[i])}n.forEach(i,(function(t){n.isUndefined(e[t])||(r[t]=c(void 0,e[t]))})),n.forEach(o,u),n.forEach(a,(function(i){n.isUndefined(e[i])?n.isUndefined(t[i])||(r[i]=c(void 0,t[i])):r[i]=c(void 0,e[i])})),n.forEach(s,(function(n){n in e?r[n]=c(t[n],e[n]):n in t&&(r[n]=c(void 0,t[n]))}));var l=i.concat(o).concat(a).concat(s),f=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===l.indexOf(t)}));return n.forEach(f,u),r}},function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},,,,,,,function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,r){(function(t){var n=r(204),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&n.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,r(188)(t))},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,r){var n=r(344);t.exports=function(t){return null==t?"":n(t)}},function(t,e,r){var n=r(208),i=r(163),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];o.call(t,e)&&i(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},,function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(4);n.__exportStar(r(819),e),n.__exportStar(r(821),e),n.__exportStar(r(822),e)},function(t,e,r){var n,i,o;t.exports=(o=r(49),i=(n=o).lib.WordArray,n.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(t){var e=t.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return function(t,e,r){for(var n=[],o=0,a=0;a<e;a++)if(a%4){var s=r[t.charCodeAt(a-1)]<<a%4*2,c=r[t.charCodeAt(a)]>>>6-a%4*2;n[o>>>2]|=(s|c)<<24-o%4*8,o++}return i.create(n,o)}(t,e,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},o.enc.Base64)},function(t,e,r){var n;t.exports=(n=r(49),function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],c=t[e+1],d=t[e+2],p=t[e+3],b=t[e+4],y=t[e+5],v=t[e+6],g=t[e+7],m=t[e+8],_=t[e+9],w=t[e+10],x=t[e+11],k=t[e+12],S=t[e+13],E=t[e+14],A=t[e+15],O=o[0],R=o[1],T=o[2],j=o[3];O=u(O,R,T,j,a,7,s[0]),j=u(j,O,R,T,c,12,s[1]),T=u(T,j,O,R,d,17,s[2]),R=u(R,T,j,O,p,22,s[3]),O=u(O,R,T,j,b,7,s[4]),j=u(j,O,R,T,y,12,s[5]),T=u(T,j,O,R,v,17,s[6]),R=u(R,T,j,O,g,22,s[7]),O=u(O,R,T,j,m,7,s[8]),j=u(j,O,R,T,_,12,s[9]),T=u(T,j,O,R,w,17,s[10]),R=u(R,T,j,O,x,22,s[11]),O=u(O,R,T,j,k,7,s[12]),j=u(j,O,R,T,S,12,s[13]),T=u(T,j,O,R,E,17,s[14]),O=l(O,R=u(R,T,j,O,A,22,s[15]),T,j,c,5,s[16]),j=l(j,O,R,T,v,9,s[17]),T=l(T,j,O,R,x,14,s[18]),R=l(R,T,j,O,a,20,s[19]),O=l(O,R,T,j,y,5,s[20]),j=l(j,O,R,T,w,9,s[21]),T=l(T,j,O,R,A,14,s[22]),R=l(R,T,j,O,b,20,s[23]),O=l(O,R,T,j,_,5,s[24]),j=l(j,O,R,T,E,9,s[25]),T=l(T,j,O,R,p,14,s[26]),R=l(R,T,j,O,m,20,s[27]),O=l(O,R,T,j,S,5,s[28]),j=l(j,O,R,T,d,9,s[29]),T=l(T,j,O,R,g,14,s[30]),O=f(O,R=l(R,T,j,O,k,20,s[31]),T,j,y,4,s[32]),j=f(j,O,R,T,m,11,s[33]),T=f(T,j,O,R,x,16,s[34]),R=f(R,T,j,O,E,23,s[35]),O=f(O,R,T,j,c,4,s[36]),j=f(j,O,R,T,b,11,s[37]),T=f(T,j,O,R,g,16,s[38]),R=f(R,T,j,O,w,23,s[39]),O=f(O,R,T,j,S,4,s[40]),j=f(j,O,R,T,a,11,s[41]),T=f(T,j,O,R,p,16,s[42]),R=f(R,T,j,O,v,23,s[43]),O=f(O,R,T,j,_,4,s[44]),j=f(j,O,R,T,k,11,s[45]),T=f(T,j,O,R,A,16,s[46]),O=h(O,R=f(R,T,j,O,d,23,s[47]),T,j,a,6,s[48]),j=h(j,O,R,T,g,10,s[49]),T=h(T,j,O,R,E,15,s[50]),R=h(R,T,j,O,y,21,s[51]),O=h(O,R,T,j,k,6,s[52]),j=h(j,O,R,T,p,10,s[53]),T=h(T,j,O,R,w,15,s[54]),R=h(R,T,j,O,c,21,s[55]),O=h(O,R,T,j,m,6,s[56]),j=h(j,O,R,T,A,10,s[57]),T=h(T,j,O,R,v,15,s[58]),R=h(R,T,j,O,S,21,s[59]),O=h(O,R,T,j,b,6,s[60]),j=h(j,O,R,T,x,10,s[61]),T=h(T,j,O,R,d,15,s[62]),R=h(R,T,j,O,_,21,s[63]),o[0]=o[0]+O|0,o[1]=o[1]+R|0,o[2]=o[2]+T|0,o[3]=o[3]+j|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function u(t,e,r,n,i,o,a){var s=t+(e&r|~e&n)+i+a;return(s<<o|s>>>32-o)+e}function l(t,e,r,n,i,o,a){var s=t+(e&n|r&~n)+i+a;return(s<<o|s>>>32-o)+e}function f(t,e,r,n,i,o,a){var s=t+(e^r^n)+i+a;return(s<<o|s>>>32-o)+e}function h(t,e,r,n,i,o,a){var s=t+(r^(e|~n))+i+a;return(s<<o|s>>>32-o)+e}e.MD5=o._createHelper(c),e.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)},function(t){t.exports=JSON.parse('{"af":"Afrikaans","am":"Amharic","ar":"Arabic","auto":"Detect language","az":"Azerbaijani","be":"Belarusian","bg":"Bulgarian","bn":"Bengali","bs":"Bosnian","ca":"Catalan","ceb":"Cebuano","co":"Corsican","cs":"Czech","cy":"Welsh","da":"Danish","de":"German","el":"Greek","en":"English","eo":"Esperanto","es":"Spanish","et":"Estonian","eu":"Basque","fa":"Persian","fi":"Finnish","fil":"Filipino","fj":"Fijian","fr":"French","fy":"Frisian","ga":"Irish","gd":"Scots Gaelic","gl":"Galician","gu":"Gujarati","ha":"Hausa","haw":"Hawaiian","he":"Hebrew","hi":"Hindi","hmn":"Hmong","hr":"Croatian","ht":"Haitian Creole","hu":"Hungarian","hy":"Armenian","id":"Indonesian","ig":"Igbo","is":"Icelandic","it":"Italian","ja":"Japanese","jw":"Javanese","ka":"Georgian","kk":"Kazakh","km":"Khmer","kn":"Kannada","ko":"Korean","ku":"Kurdish (Kurmanji)","ky":"Kyrgyz","la":"Latin","lb":"Luxembourgish","lo":"Lao","lt":"Lithuanian","lv":"Latvian","mg":"Malagasy","mi":"Maori","mk":"Macedonian","ml":"Malayalam","mn":"Mongolian","mr":"Marathi","ms":"Malay","mt":"Maltese","mww":"Bai Miao Wen","my":"Myanmar (Burmese)","ne":"Nepali","nl":"Dutch","no":"Norwegian","ny":"Nyanja (Chichewa)","otq":"Cretaro Ottomi","pa":"Punjabi","pl":"Polish","ps":"Pashto","pt":"Portuguese (Portugal, Brazil)","ro":"Romanian","ru":"Russian","sd":"Sindhi","si":"Sinhala (Sinhalese)","sk":"Slovak","sl":"Slovenian","sm":"Samoan","sn":"Shona","so":"Somali","sq":"Albanian","sr":"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)","st":"Sesotho","su":"Sundanese","sv":"Swedish","sw":"Swahili","ta":"Tamil","te":"Telugu","tg":"Tajik","th":"Thai","tlh":"Klingon","tlh-Qaak":"Klingon (piqaD)","to":"Tongan","tr":"Turkish","ty":"Tahiti","ug":"Uighur","uk":"Ukrainian","ur":"Urdu","uz":"Uzbek","vi":"Vietnamese","wyw":"Classical Chinese","xh":"Xhosa","yi":"Yiddish","yo":"Yoruba","yua":"Yucatan Mayan","yue":"Cantonese (Traditional)","zh-CN":"Chinese (Simplified)","zh-TW":"Chinese (Traditional)","zu":"Zulu"}')},,,,,,,,function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},function(t,e,r){var n=r(227),i=r(203),o=r(56),a=r(205),s=r(160),c=r(214),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),l=!r&&i(t),f=!r&&!l&&a(t),h=!r&&!l&&!f&&c(t),d=r||l||f||h,p=d?n(t.length,String):[],b=p.length;for(var y in t)!e&&!u.call(t,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,b))||p.push(y);return p}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(470),i=r(170),o=r(471),a=r(472),s=r(473),c=r(69),u=r(215),l=u(n),f=u(i),h=u(o),d=u(a),p=u(s),b=c;(n&&"[object DataView]"!=b(new n(new ArrayBuffer(1)))||i&&"[object Map]"!=b(new i)||o&&"[object Promise]"!=b(o.resolve())||a&&"[object Set]"!=b(new a)||s&&"[object WeakMap]"!=b(new s))&&(b=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case l:return"[object DataView]";case f:return"[object Map]";case h:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=b},,,,,,,,,,,,,function(t,e,r){"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,c=a(t),u=1;u<arguments.length;u++){for(var l in r=Object(arguments[u]))i.call(r,l)&&(c[l]=r[l]);if(n){s=n(r);for(var f=0;f<s.length;f++)o.call(r,s[f])&&(c[s[f]]=r[s[f]])}}return c}},,,,,,,function(t,e,r){"use strict";var n=r(301),i=r(68),o=r(200),a=r(156),s=r(201),c=Object.prototype.toString;function u(t){if(!(this instanceof u))return new u(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error(a[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var l;if(l="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=n.deflateSetDictionary(this.strm,l)))throw new Error(a[r]);this._dict_set=!0}}function l(t,e){var r=new u(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}u.prototype.push=function(t,e){var r,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===c.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(r=n.deflate(s,a))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),s.avail_out=0,!0)},u.prototype.onData=function(t){this.chunks.push(t)},u.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=u,e.deflate=l,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,l(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,l(t,e)}},function(t,e,r){"use strict";var n,i=r(68),o=r(302),a=r(198),s=r(199),c=r(156);function u(t,e){return t.msg=c[e],e}function l(t){return(t<<1)-(t>4?9:0)}function f(t){for(var e=t.length;--e>=0;)t[e]=0}function h(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function d(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,h(t.strm)}function p(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function y(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,c=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,u=t.window,l=t.w_mask,f=t.prev,h=t.strstart+258,d=u[o+a-1],p=u[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(r=e)+a]===p&&u[r+a-1]===d&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<h);if(n=258-(h-o),o=h-258,n>a){if(t.match_start=e,a=n,n>=s)break;d=u[o+a-1],p=u[o+a]}}}while((e=f[e&l])>c&&0!=--i);return a<=t.lookahead?a:t.lookahead}function v(t){var e,r,n,o,c,u,l,f,h,d,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-262)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=p?n-p:0}while(--r);e=r=p;do{n=t.prev[--e],t.prev[e]=n>=p?n-p:0}while(--r);o+=p}if(0===t.strm.avail_in)break;if(u=t.strm,l=t.window,f=t.strstart+t.lookahead,h=o,d=void 0,(d=u.avail_in)>h&&(d=h),r=0===d?0:(u.avail_in-=d,i.arraySet(l,u.input,u.next_in,d,f),1===u.state.wrap?u.adler=a(u.adler,l,d,f):2===u.state.wrap&&(u.adler=s(u.adler,l,d,f)),u.next_in+=d,u.total_in+=d,d),t.lookahead+=r,t.lookahead+t.insert>=3)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+3-1])&t.hash_mask,t.prev[c&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=c,c++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function g(t,e){for(var r,n;;){if(t.lookahead<262){if(v(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-262&&(t.match_length=y(t,r)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}function m(t,e){for(var r,n,i;;){if(t.lookahead<262){if(v(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-262&&(t.match_length=y(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(d(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&d(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}function _(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function w(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):u(t,-2)}function k(t){var e,r=x(t);return 0===r&&((e=t.state).window_size=2*e.w_size,f(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function S(t,e,r,n,o,a){if(!t)return-2;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>9||8!==r||n<8||n>15||e<0||e>9||a<0||a>4)return u(t,-2);8===n&&(n=9);var c=new w;return t.state=c,c.strm=t,c.wrap=s,c.gzhead=null,c.w_bits=n,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=e,c.strategy=a,c.method=r,k(t)}n=[new _(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(v(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,d(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(d(t,!1),t.strm.avail_out),1)})),new _(4,4,8,4,g),new _(4,5,16,8,g),new _(4,6,32,32,g),new _(4,4,16,16,m),new _(8,16,32,32,m),new _(8,16,128,128,m),new _(8,32,128,256,m),new _(32,128,258,1024,m),new _(32,258,258,4096,m)],e.deflateInit=function(t,e){return S(t,e,8,15,8,0)},e.deflateInit2=S,e.deflateReset=k,e.deflateResetKeep=x,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var r,i,a,c;if(!t||!t.state||e>5||e<0)return t?u(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return u(t,0===t.avail_out?-5:-2);if(i.strm=t,r=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,3),i.status=113);else{var y=8+(i.w_bits-8<<4)<<8;y|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(y|=32),y+=31-y%31,i.status=113,b(i,y),0!==i.strstart&&(b(i,t.adler>>>16),b(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,p(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,p(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&h(t),i.pending+2<=i.pending_buf_size&&(p(i,255&t.adler),p(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(h(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&l(e)<=l(r)&&4!==e)return u(t,-5);if(666===i.status&&0!==t.avail_in)return u(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var g=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(v(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=258){if(v(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=t.strstart+258;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(i,e):n[i.level].func(i,e);if(3!==g&&4!==g||(i.status=666),1===g||3===g)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===g&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(f(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),h(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&t.adler),p(i,t.adler>>8&255),p(i,t.adler>>16&255),p(i,t.adler>>24&255),p(i,255&t.total_in),p(i,t.total_in>>8&255),p(i,t.total_in>>16&255),p(i,t.total_in>>24&255)):(b(i,t.adler>>>16),b(i,65535&t.adler)),h(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?u(t,-2):(t.state=null,113===e?u(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var r,n,o,s,c,u,l,h,d=e.length;if(!t||!t.state)return-2;if(2===(s=(r=t.state).wrap)||1===s&&42!==r.status||r.lookahead)return-2;for(1===s&&(t.adler=a(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(f(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,e,d-r.w_size,r.w_size,0),e=h,d=r.w_size),c=t.avail_in,u=t.next_in,l=t.input,t.avail_in=d,t.next_in=0,t.input=e,v(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=2,v(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=u,t.input=l,t.avail_in=c,r.wrap=s,0},e.deflateInfo="pako deflate (from Nodeca project)"},function(t,e,r){"use strict";var n=r(68);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var l=new Array(60);i(l);var f=new Array(512);i(f);var h=new Array(256);i(h);var d=new Array(29);i(d);var p,b,y,v=new Array(30);function g(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function _(t){return t<256?f[t]:f[256+(t>>>7)]}function w(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function k(t,e,r){x(t,r[2*e],r[2*e+1])}function S(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function E(t,e,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=S(o[s]++,s))}}function A(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function O(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function R(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function T(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&R(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!R(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function j(t,e,r){var n,i,s,c,u=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*u]<<8|t.pending_buf[t.d_buf+2*u+1],i=t.pending_buf[t.l_buf+u],u++,0===n?k(t,i,e):(k(t,(s=h[i])+256+1,e),0!==(c=o[s])&&x(t,i-=d[s],c),k(t,s=_(--n),r),0!==(c=a[s])&&x(t,n-=v[s],c))}while(u<t.last_lit);k(t,256,e)}function C(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,c=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<c;r++)0!==o[2*r]?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=u,r=t.heap_len>>1;r>=1;r--)T(t,o,r);i=c;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],T(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,T(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,c=e.dyn_tree,u=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,b=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(c[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(o=c[2*c[2*(n=t.heap[r])+1]+1]+1)>p&&(o=p,b++),c[2*n+1]=o,n>u||(t.bl_count[o]++,a=0,n>=d&&(a=h[n-d]),s=c[2*n],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(l[2*n+1]+a)));if(0!==b){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,b-=2}while(b>0);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>u||(c[2*i+1]!==o&&(t.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),n--)}}(t,e),E(o,u,t.bl_count)}function B(t,e,r){var n,i,o=-1,a=e[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<c&&i===a||(s<u?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4))}function H(t,e,r){var n,i,o=-1,a=e[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<c&&i===a)){if(s<u)do{k(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(k(t,i,t.bl_tree),s--),k(t,16,t.bl_tree),x(t,s-3,2)):s<=10?(k(t,17,t.bl_tree),x(t,s-3,3)):(k(t,18,t.bl_tree),x(t,s-11,7));s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4)}}i(v);var z=!1;function M(t,e,r,i){x(t,0+(i?1:0),3),function(t,e,r,i){O(t),i&&(w(t,r),w(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){z||(!function(){var t,e,r,n,i,c=new Array(16);for(r=0,n=0;n<28;n++)for(d[n]=r,t=0;t<1<<o[n];t++)h[r++]=n;for(h[r-1]=n,i=0,n=0;n<16;n++)for(v[n]=i,t=0;t<1<<a[n];t++)f[i++]=n;for(i>>=7;n<30;n++)for(v[n]=i<<7,t=0;t<1<<a[n]-7;t++)f[256+i++]=n;for(e=0;e<=15;e++)c[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,c[8]++;for(;t<=255;)u[2*t+1]=9,t++,c[9]++;for(;t<=279;)u[2*t+1]=7,t++,c[7]++;for(;t<=287;)u[2*t+1]=8,t++,c[8]++;for(E(u,287,c),t=0;t<30;t++)l[2*t+1]=5,l[2*t]=S(t,5);p=new g(u,o,257,286,15),b=new g(l,a,0,30,15),y=new g(new Array(0),s,0,19,7)}(),z=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,b),t.bl_desc=new m(t.bl_tree,y),t.bi_buf=0,t.bi_valid=0,A(t)},e._tr_stored_block=M,e._tr_flush_block=function(t,e,r,n){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),C(t,t.l_desc),C(t,t.d_desc),a=function(t){var e;for(B(t,t.dyn_ltree,t.l_desc.max_code),B(t,t.dyn_dtree,t.d_desc.max_code),C(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*c[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?M(t,e,r,n):4===t.strategy||o===i?(x(t,2+(n?1:0),3),j(t,u,l)):(x(t,4+(n?1:0),3),function(t,e,r,n){var i;for(x(t,e-257,5),x(t,r-1,5),x(t,n-4,4),i=0;i<n;i++)x(t,t.bl_tree[2*c[i]+1],3);H(t,t.dyn_ltree,e-1),H(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),j(t,t.dyn_ltree,t.dyn_dtree)),A(t),n&&O(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(h[r]+256+1)]++,t.dyn_dtree[2*_(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),k(t,256,u),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){"use strict";var n=r(304),i=r(68),o=r(200),a=r(202),s=r(156),c=r(201),u=r(307),l=Object.prototype.toString;function f(t){if(!(this instanceof f))return new f(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);if(this.header=new u,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[r])}function h(t,e){var r=new f(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}f.prototype.push=function(t,e){var r,s,c,u,f,h=this.strm,d=this.options.chunkSize,p=this.options.dictionary,b=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?h.input=o.binstring2buf(t):"[object ArrayBuffer]"===l.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(d),h.next_out=0,h.avail_out=d),(r=n.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===a.Z_BUF_ERROR&&!0===b&&(r=a.Z_OK,b=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&r!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(h.output,h.next_out),u=h.next_out-c,f=o.buf2string(h.output,c),h.next_out=u,h.avail_out=d-u,u&&i.arraySet(h.output,h.output,c,u,0),this.onData(f)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(b=!0)}while((h.avail_in>0||0===h.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=f,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},function(t,e,r){"use strict";var n=r(68),i=r(198),o=r(199),a=r(305),s=r(306);function c(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function l(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):-2}function f(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,l(t)):-2}function h(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,f(t))):-2}function d(t,e){var r,n;return t?(n=new u,t.state=n,n.window=null,0!==(r=h(t,e))&&(t.state=null),r):-2}var p,b,y=!0;function v(t){if(y){var e;for(p=new n.Buf32(512),b=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,p,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,b,0,t.work,{bits:5}),y=!1}t.lencode=p,t.lenbits=9,t.distcode=b,t.distbits=5}function g(t,e,r,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,e,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,e,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=f,e.inflateReset2=h,e.inflateResetKeep=l,e.inflateInit=function(t){return d(t,15)},e.inflateInit2=d,e.inflate=function(t,e){var r,u,l,f,h,d,p,b,y,m,_,w,x,k,S,E,A,O,R,T,j,C,B,H,z=0,M=new n.Buf8(4),N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(r=t.state).mode&&(r.mode=13),h=t.next_out,l=t.output,p=t.avail_out,f=t.next_in,u=t.input,d=t.avail_in,b=r.hold,y=r.bits,m=d,_=p,C=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;y<16;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}if(2&r.wrap&&35615===b){r.check=0,M[0]=255&b,M[1]=b>>>8&255,r.check=o(r.check,M,2,0),b=0,y=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",r.mode=30;break}if(y-=4,j=8+(15&(b>>>=4)),0===r.wbits)r.wbits=j;else if(j>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<j,t.adler=r.check=1,r.mode=512&b?10:12,b=0,y=0;break;case 2:for(;y<16;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}if(r.flags=b,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=b>>8&1),512&r.flags&&(M[0]=255&b,M[1]=b>>>8&255,r.check=o(r.check,M,2,0)),b=0,y=0,r.mode=3;case 3:for(;y<32;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}r.head&&(r.head.time=b),512&r.flags&&(M[0]=255&b,M[1]=b>>>8&255,M[2]=b>>>16&255,M[3]=b>>>24&255,r.check=o(r.check,M,4,0)),b=0,y=0,r.mode=4;case 4:for(;y<16;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}r.head&&(r.head.xflags=255&b,r.head.os=b>>8),512&r.flags&&(M[0]=255&b,M[1]=b>>>8&255,r.check=o(r.check,M,2,0)),b=0,y=0,r.mode=5;case 5:if(1024&r.flags){for(;y<16;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}r.length=b,r.head&&(r.head.extra_len=b),512&r.flags&&(M[0]=255&b,M[1]=b>>>8&255,r.check=o(r.check,M,2,0)),b=0,y=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((w=r.length)>d&&(w=d),w&&(r.head&&(j=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,f,w,j)),512&r.flags&&(r.check=o(r.check,u,w,f)),d-=w,f+=w,r.length-=w),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===d)break t;w=0;do{j=u[f+w++],r.head&&j&&r.length<65536&&(r.head.name+=String.fromCharCode(j))}while(j&&w<d);if(512&r.flags&&(r.check=o(r.check,u,w,f)),d-=w,f+=w,j)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===d)break t;w=0;do{j=u[f+w++],r.head&&j&&r.length<65536&&(r.head.comment+=String.fromCharCode(j))}while(j&&w<d);if(512&r.flags&&(r.check=o(r.check,u,w,f)),d-=w,f+=w,j)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;y<16;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}if(b!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}b=0,y=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;y<32;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}t.adler=r.check=c(b),b=0,y=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=h,t.avail_out=p,t.next_in=f,t.avail_in=d,r.hold=b,r.bits=y,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){b>>>=7&y,y-=7&y,r.mode=27;break}for(;y<3;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}switch(r.last=1&b,y-=1,3&(b>>>=1)){case 0:r.mode=14;break;case 1:if(v(r),r.mode=20,6===e){b>>>=2,y-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}b>>>=2,y-=2;break;case 14:for(b>>>=7&y,y-=7&y;y<32;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&b,b=0,y=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(w=r.length){if(w>d&&(w=d),w>p&&(w=p),0===w)break t;n.arraySet(l,u,f,w,h),d-=w,f+=w,p-=w,h+=w,r.length-=w;break}r.mode=12;break;case 17:for(;y<14;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}if(r.nlen=257+(31&b),b>>>=5,y-=5,r.ndist=1+(31&b),b>>>=5,y-=5,r.ncode=4+(15&b),b>>>=4,y-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;y<3;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}r.lens[N[r.have++]]=7&b,b>>>=3,y-=3}for(;r.have<19;)r.lens[N[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},C=s(0,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,C){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;E=(z=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,A=65535&z,!((S=z>>>24)<=y);){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}if(A<16)b>>>=S,y-=S,r.lens[r.have++]=A;else{if(16===A){for(H=S+2;y<H;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}if(b>>>=S,y-=S,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}j=r.lens[r.have-1],w=3+(3&b),b>>>=2,y-=2}else if(17===A){for(H=S+3;y<H;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}y-=S,j=0,w=3+(7&(b>>>=S)),b>>>=3,y-=3}else{for(H=S+7;y<H;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}y-=S,j=0,w=11+(127&(b>>>=S)),b>>>=7,y-=7}if(r.have+w>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;w--;)r.lens[r.have++]=j}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,B={bits:r.lenbits},C=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,C){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},C=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,C){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(d>=6&&p>=258){t.next_out=h,t.avail_out=p,t.next_in=f,t.avail_in=d,r.hold=b,r.bits=y,a(t,_),h=t.next_out,l=t.output,p=t.avail_out,f=t.next_in,u=t.input,d=t.avail_in,b=r.hold,y=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;E=(z=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,A=65535&z,!((S=z>>>24)<=y);){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}if(E&&0==(240&E)){for(O=S,R=E,T=A;E=(z=r.lencode[T+((b&(1<<O+R)-1)>>O)])>>>16&255,A=65535&z,!(O+(S=z>>>24)<=y);){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}b>>>=O,y-=O,r.back+=O}if(b>>>=S,y-=S,r.back+=S,r.length=A,0===E){r.mode=26;break}if(32&E){r.back=-1,r.mode=12;break}if(64&E){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&E,r.mode=22;case 22:if(r.extra){for(H=r.extra;y<H;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}r.length+=b&(1<<r.extra)-1,b>>>=r.extra,y-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;E=(z=r.distcode[b&(1<<r.distbits)-1])>>>16&255,A=65535&z,!((S=z>>>24)<=y);){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}if(0==(240&E)){for(O=S,R=E,T=A;E=(z=r.distcode[T+((b&(1<<O+R)-1)>>O)])>>>16&255,A=65535&z,!(O+(S=z>>>24)<=y);){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}b>>>=O,y-=O,r.back+=O}if(b>>>=S,y-=S,r.back+=S,64&E){t.msg="invalid distance code",r.mode=30;break}r.offset=A,r.extra=15&E,r.mode=24;case 24:if(r.extra){for(H=r.extra;y<H;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}r.offset+=b&(1<<r.extra)-1,b>>>=r.extra,y-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===p)break t;if(w=_-p,r.offset>w){if((w=r.offset-w)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}w>r.wnext?(w-=r.wnext,x=r.wsize-w):x=r.wnext-w,w>r.length&&(w=r.length),k=r.window}else k=l,x=h-r.offset,w=r.length;w>p&&(w=p),p-=w,r.length-=w;do{l[h++]=k[x++]}while(--w);0===r.length&&(r.mode=21);break;case 26:if(0===p)break t;l[h++]=r.length,p--,r.mode=21;break;case 27:if(r.wrap){for(;y<32;){if(0===d)break t;d--,b|=u[f++]<<y,y+=8}if(_-=p,t.total_out+=_,r.total+=_,_&&(t.adler=r.check=r.flags?o(r.check,l,_,h-_):i(r.check,l,_,h-_)),_=p,(r.flags?b:c(b))!==r.check){t.msg="incorrect data check",r.mode=30;break}b=0,y=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;y<32;){if(0===d)break t;d--,b+=u[f++]<<y,y+=8}if(b!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}b=0,y=0}r.mode=29;case 29:C=1;break t;case 30:C=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=h,t.avail_out=p,t.next_in=f,t.avail_in=d,r.hold=b,r.bits=y,(r.wsize||_!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&g(t,t.output,t.next_out,_-t.avail_out)?(r.mode=31,-4):(m-=t.avail_in,_-=t.avail_out,t.total_in+=m,t.total_out+=_,r.total+=_,r.wrap&&_&&(t.adler=r.check=r.flags?o(r.check,l,_,t.next_out-_):i(r.check,l,_,t.next_out-_)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===m&&0===_||4===e)&&0===C&&(C=-5),C)},e.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?-2:(r.head=e,e.done=!1,0):-2},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?-2:11===r.mode&&i(1,e,n,0)!==r.check?-3:g(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},e.inflateInfo="pako inflate (from Nodeca project)"},function(t,e,r){"use strict";t.exports=function(t,e){var r,n,i,o,a,s,c,u,l,f,h,d,p,b,y,v,g,m,_,w,x,k,S,E,A;r=t.state,n=t.next_in,E=t.input,i=n+(t.avail_in-5),o=t.next_out,A=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),c=r.dmax,u=r.wsize,l=r.whave,f=r.wnext,h=r.window,d=r.hold,p=r.bits,b=r.lencode,y=r.distcode,v=(1<<r.lenbits)-1,g=(1<<r.distbits)-1;t:do{p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),m=b[d&v];e:for(;;){if(d>>>=_=m>>>24,p-=_,0===(_=m>>>16&255))A[o++]=65535&m;else{if(!(16&_)){if(0==(64&_)){m=b[(65535&m)+(d&(1<<_)-1)];continue e}if(32&_){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}w=65535&m,(_&=15)&&(p<_&&(d+=E[n++]<<p,p+=8),w+=d&(1<<_)-1,d>>>=_,p-=_),p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),m=y[d&g];r:for(;;){if(d>>>=_=m>>>24,p-=_,!(16&(_=m>>>16&255))){if(0==(64&_)){m=y[(65535&m)+(d&(1<<_)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(x=65535&m,p<(_&=15)&&(d+=E[n++]<<p,(p+=8)<_&&(d+=E[n++]<<p,p+=8)),(x+=d&(1<<_)-1)>c){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=_,p-=_,x>(_=o-a)){if((_=x-_)>l&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(k=0,S=h,0===f){if(k+=u-_,_<w){w-=_;do{A[o++]=h[k++]}while(--_);k=o-x,S=A}}else if(f<_){if(k+=u+f-_,(_-=f)<w){w-=_;do{A[o++]=h[k++]}while(--_);if(k=0,f<w){w-=_=f;do{A[o++]=h[k++]}while(--_);k=o-x,S=A}}}else if(k+=f-_,_<w){w-=_;do{A[o++]=h[k++]}while(--_);k=o-x,S=A}for(;w>2;)A[o++]=S[k++],A[o++]=S[k++],A[o++]=S[k++],w-=3;w&&(A[o++]=S[k++],w>1&&(A[o++]=S[k++]))}else{k=o-x;do{A[o++]=A[k++],A[o++]=A[k++],A[o++]=A[k++],w-=3}while(w>2);w&&(A[o++]=A[k++],w>1&&(A[o++]=A[k++]))}break}}break}}while(n<i&&o<s);n-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=d,r.bits=p}},function(t,e,r){"use strict";var n=r(68),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,c,u,l,f,h){var d,p,b,y,v,g,m,_,w,x=h.bits,k=0,S=0,E=0,A=0,O=0,R=0,T=0,j=0,C=0,B=0,H=null,z=0,M=new n.Buf16(16),N=new n.Buf16(16),D=null,P=0;for(k=0;k<=15;k++)M[k]=0;for(S=0;S<c;S++)M[e[r+S]]++;for(O=x,A=15;A>=1&&0===M[A];A--);if(O>A&&(O=A),0===A)return u[l++]=20971520,u[l++]=20971520,h.bits=1,0;for(E=1;E<A&&0===M[E];E++);for(O<E&&(O=E),j=1,k=1;k<=15;k++)if(j<<=1,(j-=M[k])<0)return-1;if(j>0&&(0===t||1!==A))return-1;for(N[1]=0,k=1;k<15;k++)N[k+1]=N[k]+M[k];for(S=0;S<c;S++)0!==e[r+S]&&(f[N[e[r+S]]++]=S);if(0===t?(H=D=f,g=19):1===t?(H=i,z-=257,D=o,P-=257,g=256):(H=a,D=s,g=-1),B=0,S=0,k=E,v=l,R=O,T=0,b=-1,y=(C=1<<O)-1,1===t&&C>852||2===t&&C>592)return 1;for(;;){m=k-T,f[S]<g?(_=0,w=f[S]):f[S]>g?(_=D[P+f[S]],w=H[z+f[S]]):(_=96,w=0),d=1<<k-T,E=p=1<<R;do{u[v+(B>>T)+(p-=d)]=m<<24|_<<16|w|0}while(0!==p);for(d=1<<k-1;B&d;)d>>=1;if(0!==d?(B&=d-1,B+=d):B=0,S++,0==--M[k]){if(k===A)break;k=e[r+f[S]]}if(k>O&&(B&y)!==b){for(0===T&&(T=O),v+=E,j=1<<(R=k-T);R+T<A&&!((j-=M[R+T])<=0);)R++,j<<=1;if(C+=1<<R,1===t&&C>852||2===t&&C>592)return 1;u[b=B&y]=O<<24|R<<16|v-l|0}}return 0!==B&&(u[v+B]=k-T<<24|64<<16|0),h.bits=O,0}},function(t,e,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e,r){var n=r(213),i=r(318)(n);t.exports=i},function(t,e,r){var n=r(310)();t.exports=n},function(t,e){t.exports=function(t){return function(e,r,n){for(var i=-1,o=Object(e),a=n(e),s=a.length;s--;){var c=a[t?s:++i];if(!1===r(o[c],c,o))break}return e}}},function(t,e,r){var n=r(69),i=r(64);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},function(t,e,r){var n=r(123),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=a.call(t);return n&&(e?t[s]=r:delete t[s]),i}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,r){var n=r(69),i=r(161),o=r(64),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,t.exports=function(t){return o(t)&&i(t.length)&&!!a[n(t)]}},function(t,e,r){var n=r(260),i=r(317),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e,r){var n=r(279)(Object.keys,Object);t.exports=n},function(t,e,r){var n=r(162);t.exports=function(t,e){return function(r,i){if(null==r)return r;if(!n(r))return t(r,i);for(var o=r.length,a=e?o:-1,s=Object(r);(e?a--:++a<o)&&!1!==i(s[a],a,s););return r}}},function(t,e,r){var n=r(149);t.exports=function(t){return"function"==typeof t?t:n}},function(t,e,r){var n=r(321),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)})),e}));t.exports=a},function(t,e,r){var n=r(322);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},function(t,e,r){var n=r(169);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},function(t,e,r){var n=r(324),i=r(143),o=r(170);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},function(t,e,r){var n=r(325),i=r(330),o=r(331),a=r(332),s=r(333);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},function(t,e,r){var n=r(126);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e,r){var n=r(206),i=r(327),o=r(115),a=r(215),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(n(t)?h:s).test(a(t))}},function(t,e,r){var n,i=r(328),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},function(t,e,r){var n=r(66)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(126),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(126),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},function(t,e,r){var n=r(126);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(127),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():i.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(127);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(127);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(127);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},function(t,e,r){var n=r(128);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(128);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(128);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(128);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},function(t,e,r){var n=r(123),i=r(216),o=r(56),a=r(151),s=n?n.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},function(t,e,r){var n=r(262),i=r(150),o=r(160),a=r(115),s=r(116);t.exports=function(t,e,r,c){if(!a(t))return t;for(var u=-1,l=(e=i(e,t)).length,f=l-1,h=t;null!=h&&++u<l;){var d=s(e[u]),p=r;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(u!=f){var b=h[d];void 0===(p=c?c(b,d,h):void 0)&&(p=a(b)?b:o(e[u+1])?[]:{})}n(h,d,p),h=h[d]}return t}},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},function(t,e,r){var n=r(263),i=r(368),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},function(t,e){(function(e){t.exports=e}).call(this,{})},,,,,,,,,,,,,,function(t,e,r){"use strict";var n=r(0);e.a=function(t,e){var r=Object(n.useRef)(!0);Object(n.useEffect)((function(){if(!r.current)return t();r.current=!1}),e)}},,,function(t,e,r){var n=r(66).Uint8Array;t.exports=n},function(t,e,r){var n=r(367),i=r(347),o=r(157);t.exports=function(t){return n(t,o,i)}},function(t,e,r){var n=r(346),i=r(56);t.exports=function(t,e,r){var o=e(t);return i(t)?o:n(o,r(t))}},function(t,e){t.exports=function(){return[]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";var n=r(491),i=r(492);t.exports=function(t,e){return t&&!n(e)?i(t,e):e}},,,,function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(4),i=r(7),o=r(114);function a(t,e){return void 0===e&&(e=o.a),function(r){return r.lift(new s(t,e))}}var s=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.dueTime,this.scheduler))},t}(),c=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.dueTime=r,i.scheduler=n,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return n.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(u,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(i.a);function u(t){t.debouncedNext()}},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(4),i=r(95),o=r(73),a=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return n.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){var n=r(453),i=r(475),o=r(149),a=r(56),s=r(479);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):n(t):s(t)}},function(t,e,r){var n=r(454),i=r(474),o=r(244);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},function(t,e,r){var n=r(229),i=r(217);t.exports=function(t,e,r,o){var a=r.length,s=a,c=!o;if(null==t)return!s;for(t=Object(t);a--;){var u=r[a];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a<s;){var l=(u=r[a])[0],f=t[l],h=u[1];if(c&&u[2]){if(void 0===f&&!(l in t))return!1}else{var d=new n;if(o)var p=o(f,h,l,t,e,d);if(!(void 0===p?i(h,f,3,o,d):p))return!1}}return!0}},function(t,e,r){var n=r(143);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(143),i=r(170),o=r(169);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(229),i=r(242),o=r(466),a=r(469),s=r(280),c=r(56),u=r(205),l=r(214),f="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,d,p,b){var y=c(t),v=c(e),g=y?"[object Array]":s(t),m=v?"[object Array]":s(e),_=(g="[object Arguments]"==g?f:g)==f,w=(m="[object Arguments]"==m?f:m)==f,x=g==m;if(x&&u(t)){if(!u(e))return!1;y=!0,_=!1}if(x&&!_)return b||(b=new n),y||l(t)?i(t,e,r,d,p,b):o(t,e,g,r,d,p,b);if(!(1&r)){var k=_&&h.call(t,"__wrapped__"),S=w&&h.call(e,"__wrapped__");if(k||S){var E=k?t.value():t,A=S?e.value():e;return b||(b=new n),p(E,A,r,d,b)}}return!!x&&(b||(b=new n),a(t,e,r,d,p,b))}},function(t,e,r){var n=r(169),i=r(462),o=r(463);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(123),i=r(365),o=r(163),a=r(242),s=r(467),c=r(468),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;t.exports=function(t,e,r,n,u,f,h){switch(r){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||!f(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+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 d=s;case"[object Set]":var p=1&n;if(d||(d=c),t.size!=e.size&&!p)return!1;var b=h.get(t);if(b)return b==e;n|=2,h.set(t,e);var y=a(d(t),d(e),n,u,f,h);return h.delete(t),y;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},function(t,e,r){var n=r(366),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,o,a,s){var c=1&r,u=n(t),l=u.length;if(l!=n(e).length&&!c)return!1;for(var f=l;f--;){var h=u[f];if(!(c?h in e:i.call(e,h)))return!1}var d=s.get(t),p=s.get(e);if(d&&p)return d==e&&p==t;var b=!0;s.set(t,e),s.set(e,t);for(var y=c;++f<l;){var v=t[h=u[f]],g=e[h];if(o)var m=c?o(g,v,h,e,t,s):o(v,g,h,t,e,s);if(!(void 0===m?v===g||a(v,g,r,o,s):m)){b=!1;break}y||(y="constructor"==h)}if(b&&!y){var _=t.constructor,w=e.constructor;_==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(b=!1)}return s.delete(t),s.delete(e),b}},function(t,e,r){var n=r(93)(r(66),"DataView");t.exports=n},function(t,e,r){var n=r(93)(r(66),"Promise");t.exports=n},function(t,e,r){var n=r(93)(r(66),"Set");t.exports=n},function(t,e,r){var n=r(93)(r(66),"WeakMap");t.exports=n},function(t,e,r){var n=r(243),i=r(157);t.exports=function(t){for(var e=i(t),r=e.length;r--;){var o=e[r],a=t[o];e[r]=[o,a,n(a)]}return e}},function(t,e,r){var n=r(217),i=r(22),o=r(476),a=r(168),s=r(243),c=r(244),u=r(116);t.exports=function(t,e){return a(t)&&s(e)?c(u(t),e):function(r){var a=i(r,t);return void 0===a&&a===e?o(r,t):n(e,a,3)}}},function(t,e,r){var n=r(477),i=r(478);t.exports=function(t,e){return null!=t&&i(t,e,n)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,r){var n=r(150),i=r(203),o=r(56),a=r(160),s=r(161),c=r(116);t.exports=function(t,e,r){for(var u=-1,l=(e=n(e,t)).length,f=!1;++u<l;){var h=c(e[u]);if(!(f=null!=t&&r(t,h)))break;t=t[h]}return f||++u!=l?f:!!(l=null==t?0:t.length)&&s(l)&&a(h,l)&&(o(t)||i(t))}},function(t,e,r){var n=r(264),i=r(480),o=r(168),a=r(116);t.exports=function(t){return o(t)?n(a(t)):i(t)}},function(t,e,r){var n=r(207);t.exports=function(t){return function(e){return n(e,t)}}},,function(t,e,r){"use strict";var n=r(50),i=r(245),o=r(483),a=r(250);function s(t){var e=new o(t),r=i(o.prototype.request,e);return n.extend(r,o.prototype,e),n.extend(r,e),r}var c=s(r(247));c.Axios=o,c.create=function(t){return s(a(c.defaults,t))},c.Cancel=r(251),c.CancelToken=r(495),c.isCancel=r(246),c.all=function(t){return Promise.all(t)},c.spread=r(496),c.isAxiosError=r(497),t.exports=c,t.exports.default=c},function(t,e,r){"use strict";var n=r(50),i=r(230),o=r(484),a=r(485),s=r(250);function c(t){this.defaults=t,this.interceptors={request:new o,response:new o}}c.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)r=r.then(e.shift(),e.shift());return r},c.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,r,n){return this.request(s(n||{},{method:t,url:e,data:r}))}})),t.exports=c},function(t,e,r){"use strict";var n=r(50);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,r){"use strict";var n=r(50),i=r(486),o=r(246),a=r(247);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,r){"use strict";var n=r(50);t.exports=function(t,e,r){return n.forEach(r,(function(r){t=r(t,e)})),t}},function(t,e,r){"use strict";var n=r(50);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},function(t,e,r){"use strict";var n=r(249);t.exports=function(t,e,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},function(t,e,r){"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,r){"use strict";var n=r(50);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,r){"use strict";var n=r(50),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,o,a={};return t?(n.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=n.trim(t.substr(0,o)).toLowerCase(),r=n.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},function(t,e,r){"use strict";var n=r(50);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(e){var r=n.isString(e)?i(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(t,e,r){"use strict";var n=r(251);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);t.exports=function(){return r(n),n}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,i=r;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,r){var n;t.exports=(n=r(49),function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[],c=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),c[i]=r(t.pow(n,1/3)),i++),n++}();var u=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],f=r[6],h=r[7],d=0;d<64;d++){if(d<16)u[d]=0|t[e+d];else{var p=u[d-15],b=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,y=u[d-2],v=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;u[d]=b+u[d-7]+v+u[d-16]}var g=n&i^n&o^i&o,m=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+c[d]+u[d];h=f,f=l,l=s,s=a+_|0,a=o,o=i,i=n,n=_+(m+g)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(l),e.HmacSHA256=o._createHmacHelper(l)}(Math),n.SHA256)},function(t,e,r){var n,i,o,a;t.exports=(n=r(49),o=(i=n).lib.Base,a=i.enc.Utf8,void(i.algo.HMAC=o.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=a.parse(e));var r=t.blockSize,n=4*r;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),o=this._iKey=e.clone(),s=i.words,c=o.words,u=0;u<r;u++)s[u]^=1549556828,c[u]^=909522486;i.sigBytes=o.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}})))},function(t,e,r){var n,i,o,a,s,c;t.exports=(c=r(49),i=(n=c).lib,o=i.Base,a=i.WordArray,(s=n.x64={}).Word=o.extend({init:function(t,e){this.high=t,this.low=e}}),s.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var i=t[n];r.push(i.high),r.push(i.low)}return a.create(r,this.sigBytes)},clone:function(){for(var t=o.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;n<r;n++)e[n]=e[n].clone();return t}}),c)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){var n=r(217);t.exports=function(t,e){return n(t,e)}},,,,,,,function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(4),i=r(37),o=r(36);function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var r=new c(t),n=Object(o.a)(r,this.notifier);return n&&!r.seenValue?(r.add(n),e.subscribe(r)):r},t}(),c=function(t){function e(e){var r=t.call(this,e)||this;return r.seenValue=!1,r}return n.__extends(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){var n,i,o,a,s;n=r(828),i=r(649).utf8,o=r(829),a=r(649).bin,(s=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?a.stringToBytes(t):i.stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());for(var r=n.bytesToWords(t),c=8*t.length,u=1732584193,l=-271733879,f=-1732584194,h=271733878,d=0;d<r.length;d++)r[d]=16711935&(r[d]<<8|r[d]>>>24)|4278255360&(r[d]<<24|r[d]>>>8);r[c>>>5]|=128<<c%32,r[14+(c+64>>>9<<4)]=c;var p=s._ff,b=s._gg,y=s._hh,v=s._ii;for(d=0;d<r.length;d+=16){var g=u,m=l,_=f,w=h;u=p(u,l,f,h,r[d+0],7,-680876936),h=p(h,u,l,f,r[d+1],12,-389564586),f=p(f,h,u,l,r[d+2],17,606105819),l=p(l,f,h,u,r[d+3],22,-1044525330),u=p(u,l,f,h,r[d+4],7,-176418897),h=p(h,u,l,f,r[d+5],12,1200080426),f=p(f,h,u,l,r[d+6],17,-1473231341),l=p(l,f,h,u,r[d+7],22,-45705983),u=p(u,l,f,h,r[d+8],7,1770035416),h=p(h,u,l,f,r[d+9],12,-1958414417),f=p(f,h,u,l,r[d+10],17,-42063),l=p(l,f,h,u,r[d+11],22,-1990404162),u=p(u,l,f,h,r[d+12],7,1804603682),h=p(h,u,l,f,r[d+13],12,-40341101),f=p(f,h,u,l,r[d+14],17,-1502002290),u=b(u,l=p(l,f,h,u,r[d+15],22,1236535329),f,h,r[d+1],5,-165796510),h=b(h,u,l,f,r[d+6],9,-1069501632),f=b(f,h,u,l,r[d+11],14,643717713),l=b(l,f,h,u,r[d+0],20,-373897302),u=b(u,l,f,h,r[d+5],5,-701558691),h=b(h,u,l,f,r[d+10],9,38016083),f=b(f,h,u,l,r[d+15],14,-660478335),l=b(l,f,h,u,r[d+4],20,-405537848),u=b(u,l,f,h,r[d+9],5,568446438),h=b(h,u,l,f,r[d+14],9,-1019803690),f=b(f,h,u,l,r[d+3],14,-187363961),l=b(l,f,h,u,r[d+8],20,1163531501),u=b(u,l,f,h,r[d+13],5,-1444681467),h=b(h,u,l,f,r[d+2],9,-51403784),f=b(f,h,u,l,r[d+7],14,1735328473),u=y(u,l=b(l,f,h,u,r[d+12],20,-1926607734),f,h,r[d+5],4,-378558),h=y(h,u,l,f,r[d+8],11,-2022574463),f=y(f,h,u,l,r[d+11],16,1839030562),l=y(l,f,h,u,r[d+14],23,-35309556),u=y(u,l,f,h,r[d+1],4,-1530992060),h=y(h,u,l,f,r[d+4],11,1272893353),f=y(f,h,u,l,r[d+7],16,-155497632),l=y(l,f,h,u,r[d+10],23,-1094730640),u=y(u,l,f,h,r[d+13],4,681279174),h=y(h,u,l,f,r[d+0],11,-358537222),f=y(f,h,u,l,r[d+3],16,-722521979),l=y(l,f,h,u,r[d+6],23,76029189),u=y(u,l,f,h,r[d+9],4,-640364487),h=y(h,u,l,f,r[d+12],11,-421815835),f=y(f,h,u,l,r[d+15],16,530742520),u=v(u,l=y(l,f,h,u,r[d+2],23,-995338651),f,h,r[d+0],6,-198630844),h=v(h,u,l,f,r[d+7],10,1126891415),f=v(f,h,u,l,r[d+14],15,-1416354905),l=v(l,f,h,u,r[d+5],21,-57434055),u=v(u,l,f,h,r[d+12],6,1700485571),h=v(h,u,l,f,r[d+3],10,-1894986606),f=v(f,h,u,l,r[d+10],15,-1051523),l=v(l,f,h,u,r[d+1],21,-2054922799),u=v(u,l,f,h,r[d+8],6,1873313359),h=v(h,u,l,f,r[d+15],10,-30611744),f=v(f,h,u,l,r[d+6],15,-1560198380),l=v(l,f,h,u,r[d+13],21,1309151649),u=v(u,l,f,h,r[d+4],6,-145523070),h=v(h,u,l,f,r[d+11],10,-1120210379),f=v(f,h,u,l,r[d+2],15,718787259),l=v(l,f,h,u,r[d+9],21,-343485551),u=u+g>>>0,l=l+m>>>0,f=f+_>>>0,h=h+w>>>0}return n.endian([u,l,f,h])})._ff=function(t,e,r,n,i,o,a){var s=t+(e&r|~e&n)+(i>>>0)+a;return(s<<o|s>>>32-o)+e},s._gg=function(t,e,r,n,i,o,a){var s=t+(e&n|r&~n)+(i>>>0)+a;return(s<<o|s>>>32-o)+e},s._hh=function(t,e,r,n,i,o,a){var s=t+(e^r^n)+(i>>>0)+a;return(s<<o|s>>>32-o)+e},s._ii=function(t,e,r,n,i,o,a){var s=t+(r^(e|~n))+(i>>>0)+a;return(s<<o|s>>>32-o)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(s(t,e));return e&&e.asBytes?r:e&&e.asString?a.bytesToString(r):n.bytesToHex(r)}},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=a[u];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:a,prop:u}),r.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r){if(0===t.length)return t;var n=t;if("symbol"==typeof t?n=Symbol.prototype.toString.call(t):"string"!=typeof t&&(n=String(t)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var i="",a=0;a<n.length;++a){var s=n.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=n.charAt(a):s<128?i+=o[s]:s<2048?i+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?i+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(a)),i+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return i},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var s=e;return i(e)&&!i(r)&&(s=a(e,o)),i(e)&&i(r)?(r.forEach((function(r,i){if(n.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,o):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),s)}}},function(t,e,r){var n,i,o,a,s,c,u,l;t.exports=(l=r(49),i=(n=l).lib,o=i.WordArray,a=i.Hasher,s=n.algo,c=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=0;u<80;u++){if(u<16)c[u]=0|t[e+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var f=(n<<5|n>>>27)+s+c[u];f+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}}),n.SHA1=a._createHelper(u),n.HmacSHA1=a._createHmacHelper(u),l.SHA1)},,,,,function(t,e,r){var n=r(887),i=r(261),o=/[&<>"']/g,a=RegExp(o.source);t.exports=function(t){return(t=i(t))&&a.test(t)?t.replace(o,n):t}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){var r={utf8:{stringToBytes:function(t){return r.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(r.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=r},function(t,e,r){"use strict";var n=String.prototype.replace,i=/%20/g,o=r(595),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=o.assign({default:a.RFC3986,formatters:{RFC1738:function(t){return n.call(t,i,"+")},RFC3986:function(t){return String(t)}}},a)},function(t,e,r){"use strict";function n(t,e){for(let r=0;r<e.length-2;r+=3){const n=e.charAt(r+2);let i="a"<=n?n.charCodeAt(0)-87:Number(n);i="+"==e.charAt(r+1)?t>>>i:t<<i,t="+"==e.charAt(r)?t+i&4294967295:t^i}return t}Object.defineProperty(e,"__esModule",{value:!0}),e.getTK=function(t,e,r){e=Number(e)||0,r=Number(r)||0;const i=[];for(let e=0;e<t.length;e++){let r=t.charCodeAt(e);128>r?i.push(r):(2048>r?i.push(r>>6|192):(55296==(64512&r)&&e+1<t.length&&56320==(64512&t.charCodeAt(e+1))?(r=65536+((1023&r)<<10)+(1023&t.charCodeAt(++e)),i.push(r>>18|240),i.push(r>>12&63|128)):i.push(r>>12|224),i.push(r>>6&63|128)),i.push(63&r|128))}let o=e;for(let t=0;t<i.length;t++)o+=i[t],o=n(o,"+-a^+6");return o=n(o,"+-3^+b+-f"),o^=r,0>o&&(o=2147483648+(2147483647&o)),o%=1e6,o.toString()+"."+(o^e)},e.fetchScheduled=async function(t,e){if(e)return new Promise((e,r)=>{let n=0;for(let i=0;i<t.length;i++)t[i]().then(e).catch(()=>{++n===t.length&&r(new Error("All rejected"))})});for(let e=0;e<t.length;e++)try{return await t[e]()}catch(t){}return Promise.reject(new Error("All rejected"))}},function(t,e,r){var n;t.exports=(n=r(49),r(502),function(){var t=n,e=t.lib.Hasher,r=t.x64,i=r.Word,o=r.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var t=0;t<80;t++)u[t]=s()}();var l=a.SHA512=e.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],f=r[6],h=r[7],d=n.high,p=n.low,b=i.high,y=i.low,v=o.high,g=o.low,m=a.high,_=a.low,w=s.high,x=s.low,k=l.high,S=l.low,E=f.high,A=f.low,O=h.high,R=h.low,T=d,j=p,C=b,B=y,H=v,z=g,M=m,N=_,D=w,P=x,I=k,q=S,F=E,U=A,L=O,W=R,X=0;X<80;X++){var K=u[X];if(X<16)var V=K.high=0|t[e+2*X],Z=K.low=0|t[e+2*X+1];else{var $=u[X-15],G=$.high,Y=$.low,J=(G>>>1|Y<<31)^(G>>>8|Y<<24)^G>>>7,Q=(Y>>>1|G<<31)^(Y>>>8|G<<24)^(Y>>>7|G<<25),tt=u[X-2],et=tt.high,rt=tt.low,nt=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6,it=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26),ot=u[X-7],at=ot.high,st=ot.low,ct=u[X-16],ut=ct.high,lt=ct.low;V=(V=(V=J+at+((Z=Q+st)>>>0<Q>>>0?1:0))+nt+((Z+=it)>>>0<it>>>0?1:0))+ut+((Z+=lt)>>>0<lt>>>0?1:0),K.high=V,K.low=Z}var ft,ht=D&I^~D&F,dt=P&q^~P&U,pt=T&C^T&H^C&H,bt=j&B^j&z^B&z,yt=(T>>>28|j<<4)^(T<<30|j>>>2)^(T<<25|j>>>7),vt=(j>>>28|T<<4)^(j<<30|T>>>2)^(j<<25|T>>>7),gt=(D>>>14|P<<18)^(D>>>18|P<<14)^(D<<23|P>>>9),mt=(P>>>14|D<<18)^(P>>>18|D<<14)^(P<<23|D>>>9),_t=c[X],wt=_t.high,xt=_t.low,kt=L+gt+((ft=W+mt)>>>0<W>>>0?1:0),St=vt+bt;L=F,W=U,F=I,U=q,I=D,q=P,D=M+(kt=(kt=(kt=kt+ht+((ft+=dt)>>>0<dt>>>0?1:0))+wt+((ft+=xt)>>>0<xt>>>0?1:0))+V+((ft+=Z)>>>0<Z>>>0?1:0))+((P=N+ft|0)>>>0<N>>>0?1:0)|0,M=H,N=z,H=C,z=B,C=T,B=j,T=kt+(yt+pt+(St>>>0<vt>>>0?1:0))+((j=ft+St|0)>>>0<ft>>>0?1:0)|0}p=n.low=p+j,n.high=d+T+(p>>>0<j>>>0?1:0),y=i.low=y+B,i.high=b+C+(y>>>0<B>>>0?1:0),g=o.low=g+z,o.high=v+H+(g>>>0<z>>>0?1:0),_=a.low=_+N,a.high=m+M+(_>>>0<N>>>0?1:0),x=s.low=x+P,s.high=w+D+(x>>>0<P>>>0?1:0),S=l.low=S+q,l.high=k+I+(S>>>0<q>>>0?1:0),A=f.low=A+U,f.high=E+F+(A>>>0<U>>>0?1:0),R=h.low=R+W,h.high=O+L+(R>>>0<W>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(n+128>>>10<<5)]=r,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(l),t.HmacSHA512=e._createHmacHelper(l)}(),n.SHA512)},function(t){t.exports=JSON.parse('{"af":"南非荷兰语","am":"阿姆哈拉语","ar":"阿拉伯语","auto":"检测语言","az":"阿塞拜疆语","be":"白俄罗斯语","bg":"保加利亚语","bn":"孟加拉语","bs":"波斯尼亚语","ca":"加泰罗尼亚语","ceb":"宿务语","co":"科西嘉语","cs":"捷克语","cy":"威尔士语","da":"丹麦语","de":"德语","el":"希腊语","en":"英语","eo":"世界语","es":"西班牙语","et":"爱沙尼亚语","eu":"巴斯克语","fa":"波斯语","fi":"芬兰语","fil":"菲律宾语","fj":"斐济语","fr":"法语","fy":"弗里斯兰语","ga":"爱尔兰语","gd":"苏格兰盖尔语","gl":"加利西亚语","gu":"古吉拉特语","ha":"豪萨语","haw":"夏威夷语","he":"希伯来语","hi":"印地语","hmn":"苗语","hr":"克罗地亚语","ht":"海地克里奥尔语","hu":"匈牙利语","hy":"亚美尼亚语","id":"印度尼西亚语","ig":"伊博语","is":"冰岛语","it":"意大利语","ja":"日语","jw":"爪哇语","ka":"格鲁吉亚语","kk":"哈萨克语","km":"高棉语","kn":"卡纳达语","ko":"韩语","ku":"库尔德语","ky":"吉尔吉斯语","la":"拉丁语","lb":"卢森堡语","lo":"老挝语","lt":"立陶宛语","lv":"拉脱维亚语","mg":"马尔加什语","mi":"毛利语","mk":"马其顿语","ml":"马拉雅拉姆语","mn":"蒙古语","mr":"马拉地语","ms":"马来语","mt":"马耳他语","mww":"白苗文","my":"缅甸语","ne":"尼泊尔语","nl":"荷兰语","no":"挪威语","ny":"尼杨扎语(齐切瓦语)","otq":"克雷塔罗奥托米语","pa":"旁遮普语","pl":"波兰语","ps":"普什图语","pt":"葡萄牙语(葡萄牙、巴西)","ro":"罗马尼亚语","ru":"俄语","sd":"信德语","si":"僧伽罗语","sk":"斯洛伐克语","sl":"斯洛文尼亚语","sm":"萨摩亚语","sn":"修纳语","so":"索马里语","sq":"阿尔巴尼亚语","sr":"塞尔维亚语","sr-Cyrl":"塞尔维亚语(西里尔文)","sr-Latn":"塞尔维亚语(拉丁文)","st":"塞索托语","su":"巽他语","sv":"瑞典语","sw":"斯瓦希里语","ta":"泰米尔语","te":"泰卢固语","tg":"塔吉克语","th":"泰语","tlh":"克林贡语","tlh-Qaak":"克林贡语(piqaD)","to":"汤加语","tr":"土耳其语","ty":"塔希提语","ug":"维吾尔语","uk":"乌克兰语","ur":"乌尔都语","uz":"乌兹别克语","vi":"越南语","wyw":"文言文","xh":"班图语","yi":"意第绪语","yo":"约鲁巴语","yua":"尤卡坦玛雅语","yue":"粤语(繁体)","zh-CN":"中文(简体)","zh-TW":"中文(繁体)","zu":"祖鲁语"}')},function(t){t.exports=JSON.parse('{"af":"南非荷蘭語","am":"阿姆哈拉語","ar":"阿拉伯語","auto":"偵測語言","az":"亞塞拜然語","be":"白俄羅斯語","bg":"保加利亞語","bn":"孟加拉語","bs":"波斯尼亞語","ca":"加泰羅尼亞語","ceb":"宿務語","co":"科西嘉語","cs":"捷克語","cy":"威爾士語","da":"丹麥語","de":"德語","el":"希臘語","en":"英語","eo":"世界語","es":"西班牙語","et":"愛沙尼亞語","eu":"巴斯克語","fa":"波斯語","fi":"芬蘭語","fil":"菲律賓語","fj":"斐濟語","fr":"法語","fy":"弗里斯蘭語","ga":"愛爾蘭語","gd":"蘇格蘭蓋爾語","gl":"加利西亞語","gu":"古吉拉特語","ha":"豪薩語","haw":"夏威夷語","he":"希伯來語","hi":"印地語","hmn":"苗語","hr":"克羅埃西亞語","ht":"海地克里奧爾語","hu":"匈牙利語","hy":"亞美尼亞語","id":"印度尼西亞語","ig":"伊博語","is":"冰島語","it":"義大利語","ja":"日語","jw":"爪哇語","ka":"喬治亞語","kk":"哈薩克語","km":"高棉語","kn":"卡納達語","ko":"韓語","ku":"庫爾德語","ky":"吉爾吉斯語","la":"拉丁語","lb":"盧森堡語","lo":"寮國語","lt":"立陶宛語","lv":"拉脫維亞語","mg":"馬爾加什語","mi":"毛利語","mk":"馬其頓語","ml":"馬拉雅拉姆語","mn":"蒙古語","mr":"馬拉地語","ms":"馬來語","mt":"馬耳他語","mww":"白苗文","my":"緬甸語","ne":"尼泊爾語","nl":"荷蘭語","no":"挪威語","ny":"尼楊扎語(齊切瓦語)","otq":"克雷塔羅奧托米語","pa":"旁遮普語","pl":"波蘭語","ps":"普什圖語","pt":"葡萄牙語(葡萄牙、巴西)","ro":"羅馬尼亞語","ru":"俄語","sd":"信德語","si":"僧伽羅語","sk":"斯洛伐克語","sl":"斯洛維尼亞語","sm":"薩摩亞語","sn":"修納語","so":"索馬利亞語","sq":"阿爾巴尼亞語","sr":"塞爾維亞語","sr-Cyrl":"塞爾維亞語(西里爾文)","sr-Latn":"塞爾維亞語(拉丁文)","st":"塞索托語","su":"巽他語","sv":"瑞典語","sw":"斯瓦希里語","ta":"泰米爾語","te":"泰盧固語","tg":"塔吉克語","th":"泰語","tlh":"克林貢語","tlh-Qaak":"克林貢語(piqaD)","to":"湯加語","tr":"土耳其語","ty":"塔希提語","ug":"維吾爾語","uk":"烏克蘭語","ur":"烏爾都語","uz":"烏茲別克語","vi":"越南語","wyw":"文言文","xh":"班圖語","yi":"意第緒語","yo":"約魯巴語","yua":"尤卡坦瑪雅語","yue":"粵語(繁體)","zh-CN":"中文(簡體)","zh-TW":"中文(繁體)","zu":"祖魯語"}')},,,,,,,,,,function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(4),i=r(266),o=n.__importDefault(r(594)),a=n.__importDefault(r(236)),s=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]];class c extends i.Translator{constructor(){super(...arguments),this.name="baidu",this.endpoint="http://api.fanyi.baidu.com/api/trans/vip/translate",this.appid="20151211000007653",this.key="IFJB6jBORFuMmVGDRude"}async query(t,e,r,n){const s=Date.now(),u=n.appid||this.appid,l=n.key||this.key,f=await this.request(this.endpoint,{params:{from:c.langMap.get(e),to:c.langMap.get(r),q:t,salt:s,appid:u,sign:o.default(u+t+s+l)}}).then(this.checkData).catch(()=>this.request("http://openapi.baidu.com/public/2.0/bmt/translate?"+a.default.stringify({client_id:"AVhF9A0GExzkU5gCkZ0Gbht7",from:c.langMap.get(e),to:c.langMap.get(r),q:t})).then(this.checkData)).catch(()=>{throw new i.TranslateError("NETWORK_ERROR")}),{trans_result:h,from:d}=f,p=c.langMapReverse.get(d)||e;return{text:t,from:p,to:r,origin:{paragraphs:h.map(({src:t})=>t),tts:await this.textToSpeech(t,p)},trans:{paragraphs:h.map(({dst:t})=>t),tts:await this.textToSpeech(h[0].dst,r)}}}async textToSpeech(t,e){return"https://fanyi.baidu.com/gettts?"+a.default.stringify({lan:c.langMap.get("auto"!==e?e:"zh-CN")||"zh",spd:5,text:t})}checkData({data:t}){if(t.error_code)throw new i.TranslateError("API_SERVER_ERROR");return t}getSupportLanguages(){return[...c.langMap.keys()]}}e.Baidu=c,c.langMap=new Map(s),c.langMapReverse=new Map(s.map(([t,e])=>[e,t])),e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(4),i=r(266),o=n.__importDefault(r(236)),a=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]];class s extends i.Translator{constructor(){super(...arguments),this.token="ukiw3nrioeilf0mlpam7",this.name="caiyun"}getSupportLanguages(){return[...s.langMap.keys()]}async textToSpeech(t,e){return"https://fanyi.baidu.com/gettts?"+o.default.stringify({lan:s.langMap.get("auto"!==e?e:"zh-CN")||"zh",spd:5,text:t})}async query(t,e,r,n){const o="auto"===e,a=t.split(/\n+/),c=await this.request("https://api.interpreter.caiyunai.com/v1/translator",{headers:{"content-type":"application/json","x-authorization":"token "+(n.token||this.token)},method:"POST",data:JSON.stringify({source:a,trans_type:`${s.langMap.get(e)}2${s.langMap.get(r)}`,detect:o})}).catch(()=>{});if(!c||!c.data)throw new i.TranslateError("NETWORK_ERROR");const u=c.data,l=o?await this.detect(t):e;return{text:t,from:l,to:r,origin:{paragraphs:a,tts:await this.textToSpeech(t,l)},trans:{paragraphs:u.target,tts:await this.textToSpeech(u.target.join(" "),r)}}}}e.Caiyun=s,s.langMap=new Map(a),s.langMapReverse=new Map(a.map(([t,e])=>[e,t])),e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(266),i=r(651),o=r(839),a=r(840),s=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]];class c extends n.Translator{constructor(){super(...arguments),this.config={token:"",order:["cn","com"],concurrent:!0,apiAsFallback:!0},this.single={com:new o.Single("com",this.request.bind(this),c.langMap,c.langMapReverse),cn:new o.Single("cn",this.request.bind(this),c.langMap,c.langMapReverse),api:new o.Single("api",this.request.bind(this),c.langMap,c.langMapReverse)},this.batchExecute={com:new a.BatchExecute("com",this.request.bind(this),c.langMap,c.langMapReverse),cn:new a.BatchExecute("cn",this.request.bind(this),c.langMap,c.langMapReverse)},this.name="google"}async query(t,e,r,n){let o;if(o=await i.fetchScheduled(n.order.map(n=>()=>"api"===n?this.single.api.translate(t,e,r):this.batchExecute[n].translate(t,e,r)),n.concurrent).catch(()=>{}),o||(o=await i.fetchScheduled(n.order.map(n=>()=>"api"===n?Promise.reject():this.single[n].translate(t,e,r)),n.concurrent).catch(()=>{})),!o&&n.apiAsFallback&&(o=await this.single.api.translate(t,e,r)),!o)throw new Error("NETWORK_ERROR");return o}getSupportLanguages(){return[...c.langMap.keys()]}async detect(t){try{return(await this.translate(t,"auto","zh-CN")).from}catch(t){return"auto"}}async textToSpeech(t,e){let r=null;return r=await i.fetchScheduled(this.config.order.map(r=>()=>"api"===r?Promise.reject():this.batchExecute[r].textToSpeech(t,e)),this.config.concurrent).catch(()=>null),r||(r=await i.fetchScheduled(this.config.order.map(r=>()=>"api"===r?Promise.reject():this.single[r].textToSpeech(t,e)),this.config.concurrent).catch(()=>null)),r}}e.Google=c,c.langMap=new Map(s),c.langMapReverse=new Map(s.map(([t,e])=>[e,t])),e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(4),i=r(266),o=n.__importDefault(r(594)),a=n.__importDefault(r(236)),s=[["auto","auto"],["zh-CN","zh-CHS"],["zh-TW","zh-CHT"],["en","en"],["af","af"],["ar","ar"],["bg","bg"],["bn","bn"],["bs","bs-Latn"],["ca","ca"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["es","es"],["et","et"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["lt","lt"],["lv","lv"],["mg","mg"],["ms","ms"],["mt","mt"],["mww","mww"],["nl","nl"],["no","no"],["otq","otq"],["pl","pl"],["pt","pt"],["ro","ro"],["ru","ru"],["sk","sk"],["sl","sl"],["sm","sm"],["sr-Cyrl","sr-Cyrl"],["sr-Latn","sr-Latn"],["sv","sv"],["sw","sw"],["th","th"],["tlh","tlh"],["tlh-Qaak","tlh-Qaak"],["to","to"],["tr","tr"],["ty","ty"],["uk","uk"],["ur","ur"],["vi","vi"],["yua","yua"],["yue","yue"]];class c extends i.Translator{constructor(){super(...arguments),this.name="sogou"}async query(t,e,r,n){const s=o.default(n.pid+t+c.salt+n.key),u=(await this.request("http://fanyi.sogou.com/reventondc/api/sogouTranslate",{method:"post",data:a.default.stringify({from:c.langMap.get(e),to:c.langMap.get(r),pid:n.pid,q:t,sign:s,salt:c.salt}),headers:{"content-type":"application/x-www-form-urlencoded",accept:"application/json"}}).catch(()=>{throw new i.TranslateError("NETWORK_ERROR")})).data;return{text:t,from:c.langMapReverse.get(u.detect)||"auto",to:r,origin:{paragraphs:t.split(/\n+/),tts:await this.textToSpeech(t,e)||""},trans:{paragraphs:[u.translation],tts:await this.textToSpeech(u.translation,r)||""}}}getSupportLanguages(){return[...c.langMap.keys()]}async detect(t){return(await this.translate(t,"auto","en")).from}async textToSpeech(t,e){return"zh-TW"===e?"https://fanyi.sogou.com/reventondc/microsoftGetSpeakFile?"+a.default.stringify({text:t,spokenDialect:"zh-CHT",from:"translateweb"}):"https://fanyi.sogou.com/reventondc/synthesis?"+a.default.stringify({text:t,speed:"1",lang:c.langMap.get(e)||"en",from:"translateweb"})}}e.Sogou=c,c.langMap=new Map(s),c.salt="1508404016012",c.langMapReverse=new Map(s.map(([t,e])=>[e,t])),e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(4),i=r(266),o=n.__importDefault(r(236)),a=n.__importDefault(r(500)),s=n.__importDefault(r(851)),c=n.__importDefault(r(852)),u=r(853),l=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["en","en"],["ko","kr"],["ja","jp"],["de","de"],["fr","fr"],["es","es"],["it","it"],["tr","tr"],["ru","ru"],["pt","pt"],["vi","vi"],["id","id"],["ms","ms"],["th","th"]],f={qtv:"65ef44a0cc5d299c",qtk:"+AANhO9ht72y/9Y7BlcdM9epx0JveTbF9gMqzdjvZrAD9wy/914A6AhaEoo5GbOpP3MxiI8T7paPN2qikKSl2lF1A0GAd4mXEtFtITyYMKmqvqGhRT0iEz8jqbkd7zWyOnW2BlfxaetS57uJXrvz7g==",date:0};class h extends i.Translator{constructor(){super(...arguments),this.token={...f},this.name="tencent"}static getUTCDate(t){return`${t.getUTCFullYear()}-${(""+(t.getUTCMonth()+1)).padStart(2,"0")}-${(""+t.getUTCDate()).padStart(2,"0")}`}static isManifestV3(t){if(!t||!t.runtime||"function"!=typeof t.runtime.getManifest)return!1;const e=t.runtime.getManifest();return!(!e||3!==e.manifest_version)}static escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}static getChromeApi(){return"undefined"!=typeof chrome?chrome:"undefined"!=typeof self&&self.chrome?self.chrome:null}static getDeclarativeNetRequest(t){const e=h.getChromeApi();return e&&e.declarativeNetRequest?e.declarativeNetRequest:t&&t.declarativeNetRequest?t.declarativeNetRequest:void 0}static getTabIdNone(t){if(t&&t.tabs&&"number"==typeof t.tabs.TAB_ID_NONE)return t.tabs.TAB_ID_NONE;const e=h.getChromeApi();return e&&e.tabs&&"number"==typeof e.tabs.TAB_ID_NONE?e.tabs.TAB_ID_NONE:void 0}static getHostRuleId(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=Math.imul(e,16777619);return 2097593+(e>>>0)%1e9}static updateSessionRules(t,e,r){if(t.updateSessionRules.length>=2)return new Promise((n,i)=>{t.updateSessionRules(r,()=>{const t=h.getChromeApi(),r=t&&t.runtime||e&&e.runtime||null;r&&r.lastError?i(new Error(r.lastError.message)):n()})});const n=t.updateSessionRules(r);return n&&"function"==typeof n.then?n:Promise.resolve()}static setupMv2HostModifier(t,e){const r=["blocking","requestHeaders"];t.webRequest.OnBeforeSendHeadersOptions&&t.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS")&&r.push("extraHeaders"),t.webRequest.onBeforeSendHeaders.addListener(t=>{if(t&&t.requestHeaders){const r=t.requestHeaders.filter(t=>!/Host/i.test(t.name));return r.push({name:"Host",value:e}),{requestHeaders:r}}return t},{urls:[`*://${e}/*`]},r)}static setupMv3HostModifier(t,e){const r=h.getDeclarativeNetRequest(t);if(!r)return Promise.resolve();const n=[{id:h.getHostRuleId(e),priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"host",operation:"set",value:e}]},condition:{regexFilter:`^https://${h.escapeRegExp(e)}/.*`}}],i=h.getTabIdNone(t);return"number"==typeof i&&(n[0].condition.tabIds=[i]),h.updateSessionRules(r,t,{removeRuleIds:[n[0].id],addRules:n})}async ensureStubHeaders(t){if("ext"!==this.env||h.headerModifiers[t])return void(h.headerModifiers[t]&&!0!==h.headerModifiers[t]&&await h.headerModifiers[t]);const e="undefined"!=typeof browser?browser:"undefined"!=typeof chrome?chrome:null;if(e){if(h.isManifestV3(e)&&h.getDeclarativeNetRequest(e)){const r=h.setupMv3HostModifier(e,t).then(()=>{h.headerModifiers[t]=!0}).catch(e=>{throw delete h.headerModifiers[t],e});return h.headerModifiers[t]=r,void await r}e.webRequest&&e.webRequest.onBeforeSendHeaders&&"function"==typeof e.webRequest.onBeforeSendHeaders.addListener&&(h.setupMv2HostModifier(e,t),h.headerModifiers[t]=!0)}}signedRequest({secretId:t,secretKey:e,action:r,payload:n,service:i,version:o}){const u=i+".tencentcloudapi.com",l=new Date,f=(""+(new Date).valueOf()).slice(0,10),d=["POST","/","","content-type:application/json; charset=utf-8","host:"+u,"","content-type;host",a.default(n).toString(c.default)].join("\n"),p=h.getUTCDate(l),b=["TC3-HMAC-SHA256",f,`${p}/${i}/tc3_request`,a.default(d).toString(c.default)].join("\n"),y=s.default(p,"TC3"+e),v=s.default(i,y),g=s.default("tc3_request",v),m=s.default(b,g).toString(c.default);return this.ensureStubHeaders(u).then(()=>this.request(`https://${i}.tencentcloudapi.com`,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:u,"X-TC-Action":r,"X-TC-Timestamp":f,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${p}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${m}`},data:n}))}async updateToken(){const t={...f};try{const e=(await this.request("https://fanyi.qq.com")).data,r=/reauthuri = \"([^"]+)\"/.exec(e);let n="reauth1232f";r&&(n=r[1]);const i="https://fanyi.qq.com/api/"+n,o=await this.request(i,{method:"POST"});t.qtk=o.data.qtk,t.qtv=o.data.qtv}catch(t){}this.token={...t,date:Date.now()}}async getToken(){return Date.now()-this.token.date>36e4&&await this.updateToken(),this.token}async query(t,e,r,n){if(n.secretKey){const i=JSON.stringify({ProjectId:0,Source:h.langMap.get(e),SourceText:t,Target:h.langMap.get(r)}),{data:o}=await this.signedRequest({secretId:n.secretId,secretKey:n.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:t,from:h.langMapReverse.get(o.Response.Source)||e,to:h.langMapReverse.get(o.Response.Target)||r,origin:{paragraphs:t.split(/\n+/)},trans:{paragraphs:u.decodeHTMLEntities(o.Response.TargetText).split(/\n+/)}}}const{qtv:a,qtk:s}=await this.getToken(),c=o.default.stringify({source:h.langMap.get(e),target:h.langMap.get(r),sourceText:t,qtv:a,qtk:s,sessionUuid:"translate_uuid"+Date.now()}),l=await this.request("https://fanyi.qq.com/api/translate",{method:"post",withCredentials:!1,headers:{Origin:"https://fanyi.qq.com",Accept:"application/json, text/javascript, */*; q=0.01","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","X-Requested-With":"XMLHttpRequest"},data:c});if(!l||!l.data)throw new i.TranslateError("NETWORK_ERROR");const f=l.data,d=u.decodeHTMLEntities(f.translate.records.map(t=>t.targetText).join(" ").replace(/\s*↵\s*/g,"\n")),p=u.decodeHTMLEntities(f.translate.records.map(t=>t.sourceText).join(" ").replace(/\s*↵\s*/g,"\n"));return{text:t,from:h.langMapReverse.get(f.translate.source)||("auto"!==e?e:await this.detect(t)),to:r,origin:{paragraphs:p.split("\n"),tts:await this.textToSpeech(p,h.langMapReverse.get(f.translate.source)||e)},trans:{paragraphs:d.split("\n"),tts:await this.textToSpeech(d,h.langMapReverse.get(f.translate.target)||r)}}}getSupportLanguages(){return[...h.langMap.keys()]}async detect(t){if(this.config.secretKey){const e=JSON.stringify({ProjectId:0,Text:t}),{data:r}=await this.signedRequest({secretId:this.config.secretId,secretKey:this.config.secretKey,action:"LanguageDetect",payload:e,service:"tmt",version:"2018-03-21"});return h.langMapReverse.get(r.Response.Lang)||"auto"}return super.detect(t)}async textToSpeech(t,e){if(this.config.secretKey){const r=JSON.stringify({ProjectId:0,Text:encodeURIComponent(t),SessionId:""+Date.now(),ModelType:-1,PrimaryLanguage:e.startsWith("zh")?1:2,Codec:"mp3"}),{data:n}=await this.signedRequest({secretId:this.config.secretId,secretKey:this.config.secretKey,action:"TextToVoice",payload:r,service:"tts",version:"2019-08-23"});return n.Response.Audio||""}return"https://fanyi.qq.com/api/tts?"+o.default.stringify({lang:h.langMap.get("auto"!==e?e:"zh-CN")||"zh",text:t})}}e.Tencent=h,h.langMap=new Map(l),h.langMapReverse=new Map(l.map(([t,e])=>[e,t])),h.headerModifiers={},e.default=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(4),i=r(266),o=n.__importDefault(r(861)),a=n.__importDefault(r(594)),s=n.__importDefault(r(236)),c=r(885);const u=[["auto","AUTO"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]];class l extends i.Translator{constructor(){super(...arguments),this.yduuid=a.default(`${Date.now()}-${Math.random()}`),this.name="youdao"}async query(t,e,r,n){if(n.appKey){const o=Date.now(),a=Math.round(Date.now()/1e3),u=n.appKey+function(t){const e=t.length;return e<=20?t:t.substring(0,10)+e+t.substring(e-10,e)}(t)+o+a+n.key,f=c.sha256(u),h=(await this.request("https://openapi.youdao.com/api",{method:"post",data:s.default.stringify({q:t,appKey:n.appKey,salt:o,from:l.langMap.get(e),to:l.langMap.get(r),sign:f,signType:"v3",curtime:a}),headers:{"Content-Type":"application/x-www-form-urlencoded",Origin:"https://fanyi.youdao.com",Referer:"https://fanyi.youdao.com/"}}).catch(()=>{throw new i.TranslateError("NETWORK_ERROR")})).data;if("0"!==h.errorCode||!h.translation)throw new i.TranslateError("API_SERVER_ERROR");return{text:t,from:e,to:r,origin:{paragraphs:t.split(/\n+/),tts:await this.textToSpeech(t,e)||void 0},trans:{paragraphs:h.translation,tts:await this.textToSpeech(h.translation.join("\n"),r)||void 0}}}t=t.slice(0,5e3);try{return await this.queryByWebMain(t,e,r)}catch(n){return this.queryByWebTranslate(t,e,r)}}async transformRaw(t,e){if(0!==t.code)throw new i.TranslateError("API_SERVER_ERROR");const[r,n]=t.type.split("2"),o=l.langMapReverse.get(r)||"auto",a=l.langMapReverse.get(n)||"auto",s=t.translateResult.map(t=>t.map(t=>t.tgt.trim()).join(""));return{text:e,from:o,to:a,origin:{paragraphs:e.split(/\n+/),tts:await this.textToSpeech(e,o)||void 0},trans:{paragraphs:s,tts:await this.textToSpeech(s.join("\n"),a)||void 0}}}getSupportLanguages(){return[...l.langMap.keys()]}async queryByWebMain(t,e,r){const{secretKey:n,token:o}=await this.getWebMainSecret(),a=(await this.request("https://dict-trans.youdao.com/webtranslate/sse",{method:"post",data:s.default.stringify({...this.genParamV3({token:o,source:"webmain"},n,"translate-webfanyi-webmain","webfanyi","webfanyi.webmain","webmain"),modelName:"llmLite",useTerm:!1,i:encodeURIComponent(t),from:l.langMap.get(e),to:l.langMap.get(r)}),headers:{"Content-Type":"application/x-www-form-urlencoded",Origin:"https://fanyi.youdao.com",Referer:"https://fanyi.youdao.com/"},transformResponse:[t=>t],responseType:"text"}).catch(()=>{throw new i.TranslateError("NETWORK_ERROR")})).data;return this.transformRaw(this.parseWebMainSsePayload(a,t),t)}async queryByWebTranslate(t,e,r){const{secretKey:n,aesKey:o,aesIv:a}=await this.getWebSecret(),c=(await this.request("https://dict.youdao.com/webtranslate",{method:"post",data:s.default.stringify({i:t,from:l.langMap.get(e),to:l.langMap.get(r),useTerm:!1,dictResult:!0,keyid:"webfanyi",noCheckPrivate:!1,...this.buildWebTranslateCommon(n)}),headers:{"Content-Type":"application/x-www-form-urlencoded",Origin:"https://fanyi.youdao.com",Referer:"https://fanyi.youdao.com/"},transformResponse:[t=>t],responseType:"text"}).catch(()=>{throw new i.TranslateError("NETWORK_ERROR")})).data;let u;try{u=JSON.parse(this.decodeWebTranslatePayload(c,o,a))}catch(t){throw new i.TranslateError("API_SERVER_ERROR")}return this.transformRaw(u,t)}buildWebTranslateCommon(t){const e=Date.now();return{sign:a.default("client=fanyideskweb&mysticTime="+e+"&product=webfanyi&key="+t),client:"fanyideskweb",product:"webfanyi",appVersion:"12.0.0",vendor:"web",pointParam:"client,mysticTime,product",mysticTime:e,keyfrom:"fanyi.web",mid:1,screen:1,model:1,network:"wifi",abtest:0,yduuid:this.yduuid}}genParamV3(t,e,r,n,i,o="web",s="12.0.0"){const c={product:n,appVersion:s,client:o,mid:1,vendor:"web",screen:1,model:1,imei:1,network:"wifi",keyfrom:i,keyid:r,mysticTime:Date.now(),yduuid:this.yduuid,abtest:0,...t},u=Object.keys(c).filter(t=>void 0!==c[t]&&""!==c[t]).sort(),l=[...u,"key"].join(","),f=a.default([...u,"key"].map(t=>`${t}=${"key"===t?e:c[t]}`).join("&"));return{...c,sign:f,pointParam:l}}async getWebSecret(){if(this.webSecret&&Date.now()-this.webSecret.fetchedAt<36e5)return this.webSecret;const t=(await this.request("https://dict.youdao.com/webtranslate/key",{params:{keyid:"webfanyi-key-getter-2025",...this.buildWebTranslateCommon("yU5nT5dK3eZ1pI4j")},headers:{Origin:"https://fanyi.youdao.com",Referer:"https://fanyi.youdao.com/"}}).catch(()=>{throw new i.TranslateError("NETWORK_ERROR")})).data;if(0!==t.code||!t.data)throw new i.TranslateError("API_SERVER_ERROR");return this.webSecret={...t.data,fetchedAt:Date.now()},this.webSecret}async getWebMainSecret(t=!0){const e={targetKeyid:"translate-webfanyi-webmain"};t&&this.webMainToken&&(e.token=this.webMainToken);const r=(await this.request("https://dict-trans.youdao.com/translate/key",{method:"post",params:this.genParamV3(e,"kSy5gtKA4yRUxAVPJPrdYKZ0jBKyd3t1","translate-webmain-key-getter","webfanyi","webfanyi.webmain","webmain"),headers:{Origin:"https://fanyi.youdao.com",Referer:"https://fanyi.youdao.com/"},data:""}).catch(()=>{throw new i.TranslateError("NETWORK_ERROR")})).data;if(0===r.code&&r.data)return this.webMainToken=r.data.token,r.data;if(t&&this.webMainToken)return this.webMainToken=void 0,this.getWebMainSecret(!1);throw new i.TranslateError("API_SERVER_ERROR")}decodeWebTranslatePayload(t,e,r){const n=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(4*Math.ceil(t.length/4),"="),i=o.default.lib.CipherParams.create({ciphertext:o.default.enc.Base64.parse(n)});return o.default.AES.decrypt(i,o.default.MD5(e),{iv:o.default.MD5(r)}).toString(o.default.enc.Utf8)}parseWebMainSsePayload(t,e){const r=t.trim();if(!r)throw new i.TranslateError("API_SERVER_ERROR");if(r.startsWith("{")){if(0!==JSON.parse(r).code)throw new i.TranslateError("API_SERVER_ERROR")}let n="",o="",a="";if(r.split(/\r?\n/).forEach(t=>{if(t.startsWith("event:"))return void(n=t.slice(6).trim());if(!t.startsWith("data:"))return;const e=t.slice(5).trim();if(!e)return;const r=JSON.parse(e);"begin"===n&&r.type&&(o=r.type),"message"===n&&r.transIncre&&(a+=r.transIncre),"end"===n&&!o&&r.type&&(o=r.type)}),!o||!a)throw new i.TranslateError("API_SERVER_ERROR");return{code:0,translateResult:[[{src:e,tgt:a}]],type:o}}async textToSpeech(t,e){const r={"zh-CN":"zh","zh-TW":"zh",en:"en",ja:"ja",ko:"ko",fr:"fr"}[e];if(!r)return null;const n={product:"webfanyi",appVersion:1,client:"web",mid:1,vendor:"web",screen:1,model:1,imei:1,network:"wifi",keyfrom:"webfanyi",keyid:"voiceFanyiWeb",mysticTime:Date.now(),yduuid:"abcdefg",le:r,phonetic:"",rate:4,word:t,type:1,id:""},i=Object.keys(n).filter(t=>""!==n[t]).sort(),o=a.default([...i,"key"].map(t=>`${t}=${"key"===t?"qCG2vdP92hOXDcKa":n[t]}`).join("&"));return"https://dict.youdao.com/pronounce/base?"+s.default.stringify({...n,sign:o,pointParam:[...i,"key"].join(",")})}}e.Youdao=l,l.langMap=new Map(u),l.langMapReverse=new Map(u.map(([t,e])=>[e,t])),e.default=l},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(4),i=r(65),o=r(60),a=r(37),s=r(36),c=r(106),u={};function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=null,n=null;return Object(i.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&Object(o.a)(t[0])&&(t=t[0]),Object(c.a)(t,n).lift(new f(r))}var f=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},t}(),h=function(t){function e(e,r){var n=t.call(this,e)||this;return n.resultSelector=r,n.active=0,n.values=[],n.observables=[],n}return n.__extends(e,t),e.prototype._next=function(t){this.values.push(u),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var n=t[r];this.add(Object(s.a)(this,n,n,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,i){var o=this.values,a=o[r],s=this.toRespond?a===u?--this.toRespond:this.toRespond:0;o[r]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.a)},,,,,,,,,,,,,,,,function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(4),i=r(7);function o(){}var a=r(46);function s(t,e,r){return function(n){return n.lift(new c(t,e,r))}}var c=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.nextOrObserver,this.error,this.complete))},t}(),u=function(t){function e(e,r,n,i){var s=t.call(this,e)||this;return s._tapNext=o,s._tapError=o,s._tapComplete=o,s._tapError=n||o,s._tapComplete=i||o,Object(a.a)(r)?(s._context=s,s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||o,s._tapError=r.error||o,s._tapComplete=r.complete||o),s}return n.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(i.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});r(4).__exportStar(r(820),e)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.languages=["af","am","ar","auto","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","de","el","en","eo","es","et","eu","fa","fi","fil","fj","fr","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","id","ig","is","it","ja","jw","ka","kk","km","kn","ko","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","pt","ro","ru","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","th","tlh","tlh-Qaak","to","tr","ty","ug","uk","ur","uz","vi","wyw","xh","yi","yo","yua","yue","zh-CN","zh-TW","zu"]},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(t){super(t)}}e.TranslateError=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(4).__importDefault(r(47)),i=r(823),o=r(824);e.Translator=class{constructor(t={}){this.env=t.env||"node",this.axios=t.axios||n.default,this.config=t.config||{}}async translate(t,e,r,n={}){return{...await this.query(t,e,r,{...this.config,...n}),engine:this.name}}request(t,e){return"ext"===this.env&&e&&e.headers?i.modifyExtraHeaders(t,e).then(e=>this.axios(t,e)):this.axios(t,e)}async detect(t){return o.detectLang(t)}textToSpeech(t,e,r){return Promise.resolve(null)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n="undefined"!=typeof browser?browser:"undefined"!=typeof chrome?chrome:null,i={},o={},a=/^(Origin|Referer|Host|Cookie|User-Agent|DNT|Accept-Charset|Accept-Encoding)$/i,s=/^(Origin|Referer)$/i;function c(t){console.warn(t)}function u(){return"undefined"!=typeof chrome?chrome:"undefined"!=typeof self&&self.chrome?self.chrome:null}function l(){const t=u();return t&&t.declarativeNetRequest?t.declarativeNetRequest:n&&n.declarativeNetRequest?n.declarativeNetRequest:void 0}async function f(t,e,r){const i=l();if(!i)throw new Error("declarativeNetRequest is unavailable in MV3 context.");const o=[];e&&o.push({header:"origin",operation:"set",value:e}),r&&o.push({header:"referer",operation:"set",value:r});const a={regexFilter:`^${s=t.slice(0,-1),s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}.*`};var s;const c=function(){if(n&&n.tabs&&"number"==typeof n.tabs.TAB_ID_NONE)return n.tabs.TAB_ID_NONE;const t=u();return t&&t.tabs&&"number"==typeof t.tabs.TAB_ID_NONE?t.tabs.TAB_ID_NONE:void 0}();"number"==typeof c&&(a.tabIds=[c]);const f=function(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=Math.imul(e,16777619);return 104729+(e>>>0)%1e9}(t);await function(t,e){if(t.updateSessionRules.length>=2)return new Promise((r,i)=>{t.updateSessionRules(e,()=>{const t=u(),e=t&&t.runtime||n&&n.runtime||null;e&&e.lastError?i(new Error(e.lastError.message)):r()})});const r=t.updateSessionRules(e);return r&&"function"==typeof r.then?r:Promise.resolve()}(i,{removeRuleIds:[f],addRules:[{id:f,priority:1,action:{type:"modifyHeaders",requestHeaders:o},condition:a}]})}async function h(t,e,r){if(!n)return void c("Missing Browser Global");const a=new URL(t).origin+"/*";if(!e&&!r)return;const u=o[a];if(u)return u.origin===e&&u.referer===r||c("Header modifier conflict detected for "+a),void(!0!==i[a]&&await i[a]);if(o[a]={origin:e,referer:r},function(){if(!n||!n.runtime||"function"!=typeof n.runtime.getManifest)return!1;const t=n.runtime.getManifest();return!(!t||3!==t.manifest_version)}()&&l()){const t=f(a,e,r).then(()=>{i[a]=!0}).catch(t=>{throw delete i[a],delete o[a],t});return i[a]=t,void await t}!function(t,e,r){if(!n||!n.webRequest||!n.webRequest.onBeforeSendHeaders)return void c("Missing Browser webRequest API");const i=["blocking","requestHeaders"];n.webRequest.OnBeforeSendHeadersOptions&&n.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS")&&i.push("extraHeaders"),n.webRequest.onBeforeSendHeaders.addListener(t=>{if(t&&t.requestHeaders){const n=t.requestHeaders.filter(t=>!s.test(t.name));return e&&n.push({name:"Origin",value:e}),r&&n.push({name:"Referer",value:r}),{requestHeaders:n}}return t},{urls:[t]},i)}(a,e,r),i[a]=!0}e.modifyExtraHeaders=(t,e)=>{if(!e.headers)return Promise.resolve(e);const r=Object.keys(e.headers),n={};let i,o;for(let t=0;t<r.length;t++){const s=r[t];a.test(s)?/^Origin$/i.test(s)?i=e.headers[s]:/^Referer$/i.test(s)&&(o=e.headers[s]):n[s]=e.headers[s]}return h(t,i||o,o||i).then(()=>({...e,headers:n}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(4).__importDefault(r(955)),i=new Map([["eng","en"],["jpn","ja"],["kor","ko"],["cmn","zh-CN"]]),o={minLength:1,whitelist:[...i.keys()]};e.detectLang=function(t){return i.get(n.default(t,o))||"auto"}},function(t,e,r){"use strict";function n(t){if("number"!=typeof t||isNaN(t)||t<1||t===1/0)throw new Error("`"+t+"` is not a valid argument for n-gram");return function(e){var r,n=[];if(null==e)return n;if(e=e.slice?e:String(e),(r=e.length-t+1)<1)return n;for(;r--;)n[r]=e.slice(r,r+t);return n}}t.exports=n,n.bigram=n(2),n.trigram=n(3)},function(t,e,r){"use strict";t.exports=function(t){return String(t).replace(/\s+/g," ")}},function(t,e){(e=t.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},e.right=function(t){return t.replace(/\s*$/,"")}},function(t,e){var r,n;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var e=[],n=0;n<t.length;n+=3)for(var i=t[n]<<16|t[n+1]<<8|t[n+2],o=0;o<4;o++)8*n+6*o<=8*t.length?e.push(r.charAt(i>>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],n=0,i=0;n<t.length;i=++n%4)0!=i&&e.push((r.indexOf(t.charAt(n-1))&Math.pow(2,-2*i+8)-1)<<2*i|r.indexOf(t.charAt(n))>>>6-2*i);return e}},t.exports=n},function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)} +/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh <https://feross.org> + * @license MIT + */ +t.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,r){"use strict";var n=r(595),i=r(650),o=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,c=Array.prototype.push,u=function(t,e){c.apply(t,s(e)?e:[e])},l=Date.prototype.toISOString,f=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,r,i,o,a,c,l,f,d,p,b,y,v){var g,m=e;if("function"==typeof l?m=l(r,m):m instanceof Date?m=p(m):"comma"===i&&s(m)&&(m=n.maybeMap(m,(function(t){return t instanceof Date?p(t):t})).join(",")),null===m){if(o)return c&&!y?c(r,h.encoder,v,"key"):r;m=""}if("string"==typeof(g=m)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||n.isBuffer(m))return c?[b(y?r:c(r,h.encoder,v,"key"))+"="+b(c(m,h.encoder,v,"value"))]:[b(r)+"="+b(String(m))];var _,w=[];if(void 0===m)return w;if(s(l))_=l;else{var x=Object.keys(m);_=f?x.sort(f):x}for(var k=0;k<_.length;++k){var S=_[k],E=m[S];if(!a||null!==E){var A=s(m)?"function"==typeof i?i(r,S):r:r+(d?"."+S:"["+S+"]");u(w,t(E,A,i,o,a,c,l,f,d,p,b,y,v))}}return w};t.exports=function(t,e){var r,n=t,c=function(t){if(!t)return h;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||h.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!o.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=i.formatters[r],a=h.filter;return("function"==typeof t.filter||s(t.filter))&&(a=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:a,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof c.filter?n=(0,c.filter)("",n):s(c.filter)&&(r=c.filter);var l,f=[];if("object"!=typeof n||null===n)return"";l=e&&e.arrayFormat in a?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var p=a[l];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var b=0;b<r.length;++b){var y=r[b];c.skipNulls&&null===n[y]||u(f,d(n[y],y,p,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var v=f.join(c.delimiter),g=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),v.length>0?g+v:""}},function(t,e,r){"use strict";var n=r(595),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,l=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var f=0;r.depth>0&&null!==(s=a.exec(o))&&f<r.depth;){if(f+=1,!r.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+o.slice(s.index)+"]"),function(t,e,r,n){for(var i=n?e:c(e,r),o=t.length-1;o>=0;--o){var a,s=t[o];if("[]"===s&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=i:a[u]=i:a={0:i}}i=a}return i}(l,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var r,u={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,h=l.split(e.delimiter,f),d=-1,p=e.charset;if(e.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?p="utf-8":"utf8=%26%2310003%3B"===h[r]&&(p="iso-8859-1"),d=r,r=h.length);for(r=0;r<h.length;++r)if(r!==d){var b,y,v=h[r],g=v.indexOf("]="),m=-1===g?v.indexOf("="):g+1;-1===m?(b=e.decoder(v,a.decoder,p,"key"),y=e.strictNullHandling?null:""):(b=e.decoder(v.slice(0,m),a.decoder,p,"key"),y=n.maybeMap(c(v.slice(m+1),e),(function(t){return e.decoder(t,a.decoder,p,"value")}))),y&&e.interpretNumericEntities&&"iso-8859-1"===p&&(y=s(y)),v.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(u,b)?u[b]=n.combine(u[b],y):u[b]=y}return u}(t,r):t,f=r.plainObjects?Object.create(null):{},h=Object.keys(l),d=0;d<h.length;++d){var p=h[d],b=u(p,l[p],r,"string"==typeof t);f=n.merge(f,b,r)}return n.compact(f)}},,,,,,,,function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(4).__importDefault(r(236)),i=r(651);e.Single=class{constructor(t,e,r,n){this.base=t,this.request=e,this.langMap=r,this.langMapReverse=n,this.token={date:0}}async translate(t,e,r){const n="api"===this.base?await this.queryAPI(t,e,r):await this.query(t,e,r);if(!n)throw new Error("NETWORK_ERROR");if(!n[0]||n[0].length<=0)throw new Error("API_SERVER_ERROR");const i=n[0].map(t=>t[0]).filter(Boolean).join(" ");return{text:t,from:this.langMapReverse.get(n[2])||"auto",to:r,origin:{paragraphs:t.split(/\n+/),tts:await this.textToSpeech(t,e)||""},trans:{paragraphs:i.split(/(\n ?)+/),tts:await this.textToSpeech(i,r)||""}}}async queryAPI(t,e,r){const{data:i}=await this.request("https://translate.googleapis.com/translate_a/single?"+n.default.stringify({client:"gtx",dt:"t",sl:this.langMap.get(e),tl:this.langMap.get(r),q:t}),{method:"GET",headers:{Referer:"https://translate.google.com",Origin:"https://translate.google.com"}});return i}async query(t,e,r){if(Date.now()-this.token.date>3e5)try{await this.updateToken()}catch(t){}if(!this.token.value)throw new Error("API_SERVER_ERROR");const{data:o}=await this.request(`https://translate.google.${this.base}/translate_a/single?`+n.default.stringify({client:"gtx",sl:this.langMap.get(e),tl:this.langMap.get(r),hl:"en",dt:["at","bd","ex","ld","md","qca","rw","rm","sos","ss","t"],otf:"1",ssel:"0",tsel:"0",kc:"1",tk:i.getTK(t,this.token.value.tk1,this.token.value.tk2),q:t},{indices:!1}),{method:"GET",headers:{Referer:"https://translate.google.com",Origin:"https://translate.google.com"}});return o}async fetchPlainText(t,e={}){const{data:r}=await this.request(t,{withCredentials:!1,...e,transformResponse:[t=>t],responseType:"text"});return r}async updateToken(){const t=await this.fetchPlainText(`https://translate.google.${this.base}/translate_a/element.js`,{method:"GET",headers:{Referer:"https://translate.google.com",Origin:"https://translate.google.com"}});if(!t)throw new Error("API_SERVER_ERROR");const e=t.match(/(?:_ctkk|TKK)[=:]['"](\d+?)\.(\d+?)['"]/i);if(e)this.token.value={tk1:Number(e[1]),tk2:Number(e[2])},this.token.date=Date.now();else{const e=(t.match(/TKK=(.*?)\(\)\)'\);/i)||[""])[0].replace(/\\x([0-9A-Fa-f]{2})/g,"").match(/[+-]?\d+/g);e&&(this.token.value={tk1:Number(e[2]),tk2:Number(e[0])+Number(e[1])},this.token.date=Date.now())}}async textToSpeech(t,e){if(Date.now()-this.token.date>3e5)try{await this.updateToken()}catch(t){}return this.token.value?`https://translate.google.${this.base}/translate_tts?ie=UTF-8&total=1&idx=0&client=webapp&prev=input&`+n.default.stringify({q:t,textlen:t.length,tl:this.langMap.get(e)||"en",tk:i.getTK(t,this.token.value.tk1,this.token.value.tk2)}):null}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(4).__importDefault(r(236));e.BatchExecute=class{constructor(t,e,r,n){this.base=t,this.request=e,this.langMap=r,this.langMapReverse=n,this.token={date:0}}async translate(t,e,r){const n=await this.searchInternal(t,e,r);return{text:t,from:(n.from.language.iso?this.langMapReverse.get(n.from.language.iso):e)||"auto",to:r,origin:{paragraphs:t.split(/\n+/),tts:"#"},trans:{paragraphs:n.text.split(/(\n ?)+/),tts:"#"}}}async searchInternal(t,e,r){if(Date.now()-this.token.date>3e5)try{await this.updateToken()}catch(t){}if(!this.token.value)throw new Error("API_SERVER_ERROR");const i=await this.fetchPlainText(`https://translate.google.${this.base}/_/TranslateWebserverUi/data/batchexecute?`+n.default.stringify({rpcids:"MkEWBc","f.sid":this.token.value.sid,bl:this.token.value.bl,hl:"en","soc-app":1,"soc-platform":1,"soc-device":1,_reqid:Math.floor(1e3+9e3*Math.random()),rt:"c"},{indices:!1}),{method:"POST",headers:{Referer:"https://translate.google.com",Origin:"https://translate.google.com","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},data:n.default.stringify({"f.req":JSON.stringify([[["MkEWBc",JSON.stringify([[t,this.langMap.get(e),this.langMap.get(r),!0],[null]]),null,"generic"]]]),at:this.token.value.at||void 0})}),o={text:"",pronunciation:"",from:{language:{didYouMean:!1,iso:""},text:{autoCorrected:!1,value:"",didYouMean:!1}},raw:""};let a;a=i.slice(6);const s=(/^\d+/.exec(a)||[""])[0];if(a=JSON.parse(a.slice(s.length,parseInt(s,10)+s.length)),a=JSON.parse(a[0][2]),void 0===a[1][0][0][5]||null===a[1][0][0][5]?o.text=a[1][0][0][0]:a[1][0][0][5].forEach(t=>{t[0]&&(o.text+=t[0])}),o.pronunciation=a[1][0][0][1],a[0]&&a[0][1]&&a[0][1][1]?(o.from.language.didYouMean=!0,o.from.language.iso=a[0][1][1][0]):"auto"===a[1][3]?o.from.language.iso=a[2]:o.from.language.iso=a[1][3],a[0]&&a[0][1]&&a[0][1][0]){let t=a[0][1][0][0][1];t=t.replace(/<b>(<i>)?/g,"["),t=t.replace(/(<\/i>)?<\/b>/g,"]"),o.from.text.value=t,1===a[0][1][0][2]?o.from.text.autoCorrected=!0:o.from.text.didYouMean=!0}return o}async fetchPlainText(t,e={}){const{data:r}=await this.request(t,{withCredentials:!1,...e,transformResponse:[t=>t],responseType:"text"});return r}async updateToken(){const t=await this.fetchPlainText("https://translate.google."+this.base,{method:"GET",headers:{Referer:"https://translate.google.com",Origin:"https://translate.google.com"}});if(!t)throw new Error("API_SERVER_ERROR");this.token.value={sid:this.extract("FdrFJe",t),bl:this.extract("cfb2h",t),at:this.extract("SNlM0e",t)},this.token.date=Date.now()}extract(t,e){const r=new RegExp(`"${t}":".*?"`).exec(e);return null!==r?r[0].replace(`"${t}":"`,"").slice(0,-1):""}async textToSpeech(t,e){if(Date.now()-this.token.date>3e5)try{await this.updateToken()}catch(t){}if(!this.token.value)throw new Error("API_SERVER_ERROR");let r;r=(await this.fetchPlainText(`https://translate.google.${this.base}/_/TranslateWebserverUi/data/batchexecute?`+n.default.stringify({rpcids:"jQ1olc","f.sid":this.token.value.sid,bl:this.token.value.bl,hl:"en","soc-app":1,"soc-platform":1,"soc-device":1,_reqid:Math.floor(1e3+9e3*Math.random()),rt:"c"},{indices:!1}),{method:"POST",headers:{Referer:"https://translate.google.com",Origin:"https://translate.google.com","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},data:n.default.stringify({"f.req":JSON.stringify([[["jQ1olc",`[${t},${this.langMap.get(e)},null,"null"]`,null,"generic"]]]),at:this.token.value.at||void 0})})).slice(6);const i=(/^\d+/.exec(r)||[""])[0];return r=JSON.parse(r.slice(i.length,parseInt(i,10)+i.length)),r=JSON.parse(r[0][2]),r[0]?"data:audio/mpeg;base64,"+r[0]:null}}},,,,,,,,,,,function(t,e,r){var n;t.exports=(n=r(49),r(500),r(501),n.HmacSHA256)},function(t,e,r){var n;t.exports=(n=r(49),n.enc.Hex)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTMLEntities=function(t){return t.replace(/&([^;]+);/gm,(t,e)=>{switch(e){case"amp":return"&";case"apos":case"#x27":return"'";case"#x2F":return"/";case"#39":return"'";case"#47":return"/";case"lt":return"<";case"gt":return">";case"nbsp":return" ";case"quot":return'"';default:return t}})}},,,,,,,,function(t,e,r){var n;t.exports=(n=r(49),r(502),r(862),r(863),r(267),r(268),window.axios,r(500),r(864),r(652),r(865),r(866),r(867),r(501),r(868),r(237),r(113),r(869),r(870),r(871),r(872),r(873),r(874),r(875),r(876),r(877),r(878),r(879),r(880),r(881),r(882),r(883),r(884),n)},function(t,e,r){var n;t.exports=(n=r(49),function(){if("function"==typeof ArrayBuffer){var t=n.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var r=t.byteLength,n=[],i=0;i<r;i++)n[i>>>2]|=t[i]<<24-i%4*8;e.call(this,n,r)}else e.apply(this,arguments)}).prototype=t}}(),n.lib.WordArray)},function(t,e,r){var n;t.exports=(n=r(49),function(){var t=n,e=t.lib.WordArray,r=t.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var r=t.length,n=[],i=0;i<r;i++)n[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(n,2*r)}},r.Utf16LE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o+=2){var a=i(e[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var r=t.length,n=[],o=0;o<r;o++)n[o>>>1]|=i(t.charCodeAt(o)<<16-o%2*16);return e.create(n,2*r)}}}(),n.enc.Utf16)},function(t,e,r){var n,i,o,a,s,c;t.exports=(c=r(49),r(500),i=(n=c).lib.WordArray,o=n.algo,a=o.SHA256,s=o.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=4,t}}),n.SHA224=a._createHelper(s),n.HmacSHA224=a._createHmacHelper(s),c.SHA224)},function(t,e,r){var n,i,o,a,s,c,u,l;t.exports=(l=r(49),r(502),r(652),i=(n=l).x64,o=i.Word,a=i.WordArray,s=n.algo,c=s.SHA512,u=s.SHA384=c.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var t=c._doFinalize.call(this);return t.sigBytes-=16,t}}),n.SHA384=c._createHelper(u),n.HmacSHA384=c._createHmacHelper(u),l.SHA384)},function(t,e,r){var n;t.exports=(n=r(49),r(502),function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.x64.Word,s=e.algo,c=[],u=[],l=[];!function(){for(var t=1,e=0,r=0;r<24;r++){c[t+5*e]=(r+1)*(r+2)/2%64;var n=(2*t+3*e)%5;t=e%5,e=n}for(t=0;t<5;t++)for(e=0;e<5;e++)u[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,h=0;h<7;h++){if(1&i){var d=(1<<h)-1;d<32?f^=1<<d:s^=1<<d-32}128&i?i=i<<1^113:i<<=1}l[o]=a.create(s,f)}}();var f=[];!function(){for(var t=0;t<25;t++)f[t]=a.create()}();var h=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=t[e+2*i],a=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(R=r[i]).high^=a,R.low^=o}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var d=0,p=0,b=0;b<5;b++)d^=(R=r[h+5*b]).high,p^=R.low;var y=f[h];y.high=d,y.low=p}for(h=0;h<5;h++){var v=f[(h+4)%5],g=f[(h+1)%5],m=g.high,_=g.low;for(d=v.high^(m<<1|_>>>31),p=v.low^(_<<1|m>>>31),b=0;b<5;b++)(R=r[h+5*b]).high^=d,R.low^=p}for(var w=1;w<25;w++){var x=(R=r[w]).high,k=R.low,S=c[w];S<32?(d=x<<S|k>>>32-S,p=k<<S|x>>>32-S):(d=k<<S-32|x>>>64-S,p=x<<S-32|k>>>64-S);var E=f[u[w]];E.high=d,E.low=p}var A=f[0],O=r[0];for(A.high=O.high,A.low=O.low,h=0;h<5;h++)for(b=0;b<5;b++){var R=r[w=h+5*b],T=f[w],j=f[(h+1)%5+5*b],C=f[(h+2)%5+5*b];R.high=T.high^~j.high&C.high,R.low=T.low^~j.low&C.low}R=r[0];var B=l[s];R.high^=B.high,R.low^=B.low}},_doFinalize:function(){var e=this._data,r=e.words,n=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,u=[],l=0;l<c;l++){var f=a[l],h=f.high,d=f.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),u.push(d),u.push(h)}return new i.init(u,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),r=0;r<25;r++)e[r]=e[r].clone();return t}});e.SHA3=o._createHelper(h),e.HmacSHA3=o._createHmacHelper(h)}(Math),n.SHA3)},function(t,e,r){var n;t.exports=(n=r(49), +/** @preserve + (c) 2012 by Cédric Mesnil. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,d,_,w,x,k,S,E,A,O,R=this._hash.words,T=f.words,j=h.words,C=s.words,B=c.words,H=u.words,z=l.words;for(x=o=R[0],k=a=R[1],S=d=R[2],E=_=R[3],A=w=R[4],r=0;r<80;r+=1)O=o+t[e+C[r]]|0,O+=r<16?p(a,d,_)+T[0]:r<32?b(a,d,_)+T[1]:r<48?y(a,d,_)+T[2]:r<64?v(a,d,_)+T[3]:g(a,d,_)+T[4],O=(O=m(O|=0,H[r]))+w|0,o=w,w=_,_=m(d,10),d=a,a=O,O=x+t[e+B[r]]|0,O+=r<16?g(k,S,E)+j[0]:r<32?v(k,S,E)+j[1]:r<48?y(k,S,E)+j[2]:r<64?b(k,S,E)+j[3]:p(k,S,E)+j[4],O=(O=m(O|=0,z[r]))+A|0,x=A,A=E,E=m(S,10),S=k,k=O;O=R[1]+d+E|0,R[1]=R[2]+_+A|0,R[2]=R[3]+w+x|0,R[3]=R[4]+o+k|0,R[4]=R[0]+a+S|0,R[0]=O},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function b(t,e,r){return t&e|~t&r}function y(t,e,r){return(t|~e)^r}function v(t,e,r){return t&r|e&~r}function g(t,e,r){return t^(e|~r)}function m(t,e){return t<<e|t>>>32-e}e.RIPEMD160=o._createHelper(d),e.HmacRIPEMD160=o._createHmacHelper(d)}(Math),n.RIPEMD160)},function(t,e,r){var n,i,o,a,s,c,u,l,f;t.exports=(f=r(49),window.axios,r(501),i=(n=f).lib,o=i.Base,a=i.WordArray,s=n.algo,c=s.SHA1,u=s.HMAC,l=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=u.create(r.hasher,t),i=a.create(),o=a.create([1]),s=i.words,c=o.words,l=r.keySize,f=r.iterations;s.length<l;){var h=n.update(e).finalize(o);n.reset();for(var d=h.words,p=d.length,b=h,y=1;y<f;y++){b=n.finalize(b),n.reset();for(var v=b.words,g=0;g<p;g++)d[g]^=v[g]}i.concat(h),c[0]++}return i.sigBytes=4*l,i}}),n.PBKDF2=function(t,e,r){return l.create(r).compute(t,e)},f.PBKDF2)},function(t,e,r){var n;t.exports=(n=r(49),r(113),n.mode.CFB=function(){var t=n.lib.BlockCipherMode.extend();function e(t,e,r,n){var i=this._iv;if(i){var o=i.slice(0);this._iv=void 0}else o=this._prevBlock;n.encryptBlock(o,0);for(var a=0;a<r;a++)t[e+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize;e.call(this,t,r,i,n),this._prevBlock=t.slice(r,r+i)}}),t.Decryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize,o=t.slice(r,r+i);e.call(this,t,r,i,n),this._prevBlock=o}}),t}(),n.mode.CFB)},function(t,e,r){var n,i,o;t.exports=(o=r(49),r(113),o.mode.CTR=(n=o.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var s=0;s<n;s++)t[e+s]^=a[s]}}),n.Decryptor=i,n),o.mode.CTR)},function(t,e,r){var n;t.exports=(n=r(49),r(113), +/** @preserve + * Counter block mode compatible with Dr Brian Gladman fileenc.c + * derived from CryptoJS.mode.CTR + * Jan Hruby jhruby.web@gmail.com + */ +n.mode.CTRGladman=function(){var t=n.lib.BlockCipherMode.extend();function e(t){if(255==(t>>24&255)){var e=t>>16&255,r=t>>8&255,n=255&t;255===e?(e=0,255===r?(r=0,255===n?n=0:++n):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=n}else t+=1<<24;return t}var r=t.Encryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(t){0===(t[0]=e(t[0]))&&(t[1]=e(t[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var c=0;c<i;c++)t[r+c]^=s[c]}});return t.Decryptor=r,t}(),n.mode.CTRGladman)},function(t,e,r){var n,i,o;t.exports=(o=r(49),r(113),o.mode.OFB=(n=o.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a<n;a++)t[e+a]^=o[a]}}),n.Decryptor=i,n),o.mode.OFB)},function(t,e,r){var n,i;t.exports=(i=r(49),r(113),i.mode.ECB=((n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),n.Decryptor=n.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),n),i.mode.ECB)},function(t,e,r){var n;t.exports=(n=r(49),r(113),n.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,i=n-r%n,o=r+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Ansix923)},function(t,e,r){var n;t.exports=(n=r(49),r(113),n.pad.Iso10126={pad:function(t,e){var r=4*e,i=r-t.sigBytes%r;t.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Iso10126)},function(t,e,r){var n;t.exports=(n=r(49),r(113),n.pad.Iso97971={pad:function(t,e){t.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(t,e)},unpad:function(t){n.pad.ZeroPadding.unpad(t),t.sigBytes--}},n.pad.Iso97971)},function(t,e,r){var n;t.exports=(n=r(49),r(113),n.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){for(var e=t.words,r=t.sigBytes-1;!(e[r>>>2]>>>24-r%4*8&255);)r--;t.sigBytes=r+1}},n.pad.ZeroPadding)},function(t,e,r){var n;t.exports=(n=r(49),r(113),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},function(t,e,r){var n,i,o,a;t.exports=(a=r(49),r(113),i=(n=a).lib.CipherParams,o=n.enc.Hex,n.format.Hex={stringify:function(t){return t.ciphertext.toString(o)},parse:function(t){var e=o.parse(t);return i.create({ciphertext:e})}},a.format.Hex)},function(t,e,r){var n;t.exports=(n=r(49),r(267),r(268),r(237),r(113),function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],o=[],a=[],s=[],c=[],u=[],l=[],f=[],h=[],d=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var b=t[r],y=t[b],v=t[y],g=257*t[p]^16843008*p;a[r]=g<<24|g>>>8,s[r]=g<<16|g>>>16,c[r]=g<<8|g>>>24,u[r]=g,g=16843009*v^65537*y^257*b^16843008*r,l[p]=g<<24|g>>>8,f[p]=g<<16|g>>>16,h[p]=g<<8|g>>>24,d[p]=g,r?(r=b^t[t[t[v^b]]],n^=t[t[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)if(a<r)o[a]=e[a];else{var s=o[a-1];a%r?r>6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var c=this._invKeySchedule=[],u=0;u<n;u++)a=n-u,s=u%4?o[a]:o[a-4],c[u]=u<4||a<=4?s:l[i[s>>>24]]^f[i[s>>>16&255]]^h[i[s>>>8&255]]^d[i[255&s]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,c,u,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,l,f,h,d,o),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,a,s){for(var c=this._nRounds,u=t[e]^r[0],l=t[e+1]^r[1],f=t[e+2]^r[2],h=t[e+3]^r[3],d=4,p=1;p<c;p++){var b=n[u>>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&h]^r[d++],y=n[l>>>24]^i[f>>>16&255]^o[h>>>8&255]^a[255&u]^r[d++],v=n[f>>>24]^i[h>>>16&255]^o[u>>>8&255]^a[255&l]^r[d++],g=n[h>>>24]^i[u>>>16&255]^o[l>>>8&255]^a[255&f]^r[d++];u=b,l=y,f=v,h=g}b=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[d++],y=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^r[d++],v=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[d++],g=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^r[d++],t[e]=b,t[e+1]=y,t[e+2]=v,t[e+3]=g},keySize:8});t.AES=e._createHelper(b)}(),n.AES)},function(t,e,r){var n;t.exports=(n=r(49),r(267),r(268),r(237),r(113),function(){var t=n,e=t.lib,r=e.WordArray,i=e.BlockCipher,o=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],r=0;r<56;r++){var n=a[r]-1;e[r]=t[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var u=i[o]=[],l=c[o];for(r=0;r<24;r++)u[r/6|0]|=e[(s[r]-1+l)%28]<<31-r%6,u[4+(r/6|0)]|=e[28+(s[r+24]-1+l)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=i[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e],this._rBlock=t[e+1],h.call(this,4,252645135),h.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=u[c][((a^i[c])&l[c])>>>0];this._lBlock=a,this._rBlock=o^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,h.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r,this._lBlock^=r<<t}function d(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r,this._rBlock^=r<<t}t.DES=i._createHelper(f);var p=o.TripleDES=i.extend({_doReset:function(){var t=this._key.words;this._des1=f.createEncryptor(r.create(t.slice(0,2))),this._des2=f.createEncryptor(r.create(t.slice(2,4))),this._des3=f.createEncryptor(r.create(t.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),n.TripleDES)},function(t,e,r){var n;t.exports=(n=r(49),r(267),r(268),r(237),r(113),function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=r.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=e[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}t.RC4=e._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});t.RC4Drop=e._createHelper(a)}(),n.RC4)},function(t,e,r){var n;t.exports=(n=r(49),r(267),r(268),r(237),r(113),function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],s=r.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=u>>>16|4294901760&l,h=l<<16|65535&u;for(i[0]^=u,i[1]^=f,i[2]^=l,i[3]^=h,i[4]^=u,i[5]^=f,i[6]^=l,i[7]^=h,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=e._createHelper(s)}(),n.Rabbit)},function(t,e,r){var n;t.exports=(n=r(49),r(267),r(268),r(237),r(113),function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],s=r.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(e){var o=e.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=u>>>16|4294901760&l,h=l<<16|65535&u;for(n[0]^=u,n[1]^=f,n[2]^=l,n[3]^=h,n[4]^=u,n[5]^=f,n[6]^=l,n[7]^=h,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=e._createHelper(s)}(),n.RabbitLegacy)},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__; +/** + * [js-sha256]{@link https://github.com/emn178/js-sha256} + * + * @version 0.9.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2014-2017 + * @license MIT + */!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__(348),ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(r){return new Sha256(e,!0).update(r)[t]()}},createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var r=0;r<OUTPUT_TYPES.length;++r){var n=OUTPUT_TYPES[r];e[n]=createOutputMethod(n,t)}return e},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(t){if("string"==typeof t)return crypto.createHash(algorithm).update(t,"utf8").digest("hex");if(null==t)throw new Error(ERROR);return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod},createHmacOutputMethod=function(t,e){return function(r,n){return new HmacSha256(r,e,!0).update(n)[t]()}},createHmacMethod=function(t){var e=createHmacOutputMethod("hex",t);e.create=function(e){return new HmacSha256(e,t)},e.update=function(t,r){return e.create(t).update(r)};for(var r=0;r<OUTPUT_TYPES.length;++r){var n=OUTPUT_TYPES[r];e[n]=createHmacOutputMethod(n,t)}return e};function Sha256(t,e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=t}function HmacSha256(t,e,r){var n,i=typeof t;if("string"===i){var o,a=[],s=t.length,c=0;for(n=0;n<s;++n)(o=t.charCodeAt(n))<128?a[c++]=o:o<2048?(a[c++]=192|o>>6,a[c++]=128|63&o):o<55296||o>=57344?(a[c++]=224|o>>12,a[c++]=128|o>>6&63,a[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),a[c++]=240|o>>18,a[c++]=128|o>>12&63,a[c++]=128|o>>6&63,a[c++]=128|63&o);t=a}else{if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],l=[];for(n=0;n<64;++n){var f=t[n]||0;u[n]=92^f,l[n]=54^f}Sha256.call(this,e,r),this.update(l),this.oKeyPad=u,this.inner=!0,this.sharedMemory=r}Sha256.prototype.update=function(t){if(!this.finalized){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var n,i,o=0,a=t.length,s=this.blocks;o<a;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),e)for(i=this.start;o<a&&i<64;++o)s[i>>2]|=t[o]<<SHIFT[3&i++];else for(i=this.start;o<a&&i<64;++o)(n=t.charCodeAt(o))<128?s[i>>2]|=n<<SHIFT[3&i++]:n<2048?(s[i>>2]|=(192|n>>6)<<SHIFT[3&i++],s[i>>2]|=(128|63&n)<<SHIFT[3&i++]):n<55296||n>=57344?(s[i>>2]|=(224|n>>12)<<SHIFT[3&i++],s[i>>2]|=(128|n>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&n)<<SHIFT[3&i++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++o)),s[i>>2]|=(240|n>>18)<<SHIFT[3&i++],s[i>>2]|=(128|n>>12&63)<<SHIFT[3&i++],s[i>>2]|=(128|n>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&n)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,r,n,i,o,a,s,c,u=this.h0,l=this.h1,f=this.h2,h=this.h3,d=this.h4,p=this.h5,b=this.h6,y=this.h7,v=this.blocks;for(t=16;t<64;++t)e=((i=v[t-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,r=((i=v[t-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,v[t]=v[t-16]+e+v[t-7]+r<<0;for(c=l&f,t=0;t<64;t+=4)this.first?(this.is224?(o=300032,y=(i=v[0]-1413257819)-150054599<<0,h=i+24177077<<0):(o=704751109,y=(i=v[0]-210244248)-1521486534<<0,h=i+143694565<<0),this.first=!1):(e=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),n=(o=u&l)^u&f^c,y=h+(i=y+(r=(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&b)+K[t]+v[t])<<0,h=i+(e+n)<<0),e=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),n=(a=h&u)^h&l^o,b=f+(i=b+(r=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&d^~y&p)+K[t+1]+v[t+1])<<0,e=((f=i+(e+n)<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),n=(s=f&h)^f&u^a,p=l+(i=p+(r=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&y^~b&d)+K[t+2]+v[t+2])<<0,e=((l=i+(e+n)<<0)>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),n=(c=l&f)^l&h^s,d=u+(i=d+(r=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&b^~p&y)+K[t+3]+v[t+3])<<0,u=i+(e+n)<<0;this.h0=this.h0+u<<0,this.h1=this.h1+l<<0,this.h2=this.h2+f<<0,this.h3=this.h3+h<<0,this.h4=this.h4+d<<0,this.h5=this.h5+p<<0,this.h6=this.h6+b<<0,this.h7=this.h7+y<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,c=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(c+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||c.push(s>>24&255,s>>16&255,s>>8&255,255&s),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()},,function(t,e,r){var n=r(888)({"&":"&","<":"<",">":">",'"':""","'":"'"});t.exports=n},function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";var n=r(825).trigram,i=r(826),o=r(827),a={}.hasOwnProperty;function s(t){return null==t?"":o(i(String(t).replace(/[\u0021-\u0040]+/g," "))).toLowerCase()}function c(t){return n(" "+s(t)+" ")}function u(t){for(var e,r=c(t),n=r.length,i={};n--;)e=r[n],a.call(i,e)?i[e]++:i[e]=1;return i}function l(t,e){return t[1]-e[1]}e.clean=s,e.trigrams=c,e.asDictionary=u,e.asTuples=function(t){var e,r=u(t),n=[];for(e in r)n.push([e,r[e]]);return n.sort(l),n},e.tuplesAsDictionary=function(t){var e,r=t.length,n={};for(;r--;)e=t[r],n[e[0]]=e[1];return n}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){const r="undefined"!=typeof chrome;(r?chrome:browser).runtime.onMessage.addListener((t,e,n)=>{if(t&&"WTW_INJECT"===t.type&&e&&e.tab&&null!=e.tab.id&&t.file){const i={frameId:e.tab.frameId,file:t.file},o=()=>n();return r?chrome.tabs.executeScript(e.tab.id,i,o):browser.tabs.executeScript(e.tab.id,i).then(o),!0}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(152);function i(t,e){return Object(n.a)(t,e,1)}}]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/19.3bd8a896.js b/plugins/saladict-ztools/ext-saladic/assets/19.3bd8a896.js deleted file mode 100644 index 0ee74031..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/19.3bd8a896.js +++ /dev/null @@ -1,37 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[19],[,,,function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return i})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return u})),n.d(e,"__param",(function(){return s})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return f})),n.d(e,"__generator",(function(){return l})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return d})),n.d(e,"__read",(function(){return b})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return _})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return m})),n.d(e,"__asyncDelegator",(function(){return w})),n.d(e,"__asyncValues",(function(){return g})),n.d(e,"__makeTemplateObject",(function(){return x})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return j})),n.d(e,"__classPrivateFieldGet",(function(){return k})),n.d(e,"__classPrivateFieldSet",(function(){return E})); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function u(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function s(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function f(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))}function l(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function h(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function p(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function _(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function m(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){i.push([t,e,n,r])>1||u(t,e)}))})}function u(t,e){try{(n=o[t](e)).value instanceof y?Promise.resolve(n.value.v).then(s,c):f(i[0][2],n)}catch(t){f(i[0][3],t)}var n}function s(t){u("next",t)}function c(t){u("throw",t)}function f(t,e){t(e),i.shift(),i.length&&u(i[0][0],i[0][1])}}function w(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:o?o(e):e}:o}}function g(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function j(t){return t&&t.__esModule?t:{default:t}}function k(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},,,function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(3),o=n(45),i=n(77),a=n(13),u=n(68),s=n(23),c=n(48),f=function(t){function e(n,r,o){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.a;break;case 1:if(!n){a.destination=i.a;break}if("object"==typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new l(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new l(a,n,r,o)}return a}return r.__extends(e,t),e.prototype[u.a]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a.a),l=function(t){function e(e,n,r,a){var u,s=t.call(this)||this;s._parentSubscriber=e;var c=s;return Object(o.a)(n)?u=n:n&&(u=n.next,r=n.error,a=n.complete,n!==i.a&&(c=Object.create(n),Object(o.a)(c.unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=u,s._error=r,s._complete=a,s}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),s.a.useDeprecatedSynchronousErrorHandling)throw t;Object(c.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!s.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return s.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(c.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(f)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(7);var o=n(68),i=n(77);var a=n(47),u=n(115);function s(t){return 0===t.length?u.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var c=n(23),f=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var a=this.operator,u=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[o.a])return t[o.a]()}return t||e||n?new r.a(t,e,n):new r.a(i.a)}(t,e,n);if(a?u.add(a.call(u,this.source)):u.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),c.a.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,o=e.destination,i=e.isStopped;if(n||i)return!1;t=o&&o instanceof r.a?o:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=l(e))((function(e,r){var o;o=n.subscribe((function(e){try{t(e)}catch(t){r(t),o&&o.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:s(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=l(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function l(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=n(7);function i(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.thisArg))},t}(),u=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.a)},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(54),o=n(114),i=n(45),a=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),u=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,u=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var f=0;f<n.length;++f){n[f].remove(this)}if(Object(i.a)(u))try{u.call(this)}catch(t){e=t instanceof a?s(t.errors):[t]}if(Object(r.a)(c)){f=-1;for(var l=c.length;++f<l;){var h=c[f];if(Object(o.a)(h))try{h.unsubscribe()}catch(t){e=e||[],t instanceof a?e=e.concat(s(t.errors)):e.push(t)}}}if(e)throw new a(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof t){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function s(t){return t.reduce((function(t,e){return t.concat(e instanceof a?e.errors:e)}),[])}},,,function(t,e,n){"use strict";function r(){return(r=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)}n.d(e,"a",(function(){return r}))},,,function(t,e,n){"use strict";function r(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}e.a=function(t,e){var n;void 0===e&&(e=r);var o,i=[],a=!1;return function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];return a&&n===this&&e(r,i)||(o=t.apply(this,r),a=!0,n=this,i=r),o}}},,function(t,e,n){var r=n(201);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return L})),n.d(e,"d",(function(){return q})),n.d(e,"e",(function(){return G})),n.d(e,"f",(function(){return H})),n.d(e,"c",(function(){return E}));var r=n(0),o=n.n(r),i=(n(26),o.a.createContext(null));var a=function(t){t()},u={notify:function(){}};function s(){var t=a,e=null,n=null;return{clear:function(){e=null,n=null},notify:function(){t((function(){for(var t=e;t;)t.callback(),t=t.next}))},get:function(){for(var t=[],n=e;n;)t.push(n),n=n.next;return t},subscribe:function(t){var r=!0,o=n={callback:t,next:null,prev:n};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var c=function(){function t(t,e){this.store=t,this.parentSub=e,this.unsubscribe=null,this.listeners=u,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var e=t.prototype;return e.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},e.notifyNestedSubs=function(){this.listeners.notify()},e.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},e.isSubscribed=function(){return Boolean(this.unsubscribe)},e.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=s())},e.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=u)},t}();var f=function(t){var e=t.store,n=t.context,a=t.children,u=Object(r.useMemo)((function(){var t=new c(e);return t.onStateChange=t.notifyNestedSubs,{store:e,subscription:t}}),[e]),s=Object(r.useMemo)((function(){return e.getState()}),[e]);Object(r.useEffect)((function(){var t=u.subscription;return t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),function(){t.tryUnsubscribe(),t.onStateChange=null}}),[u,s]);var f=n||i;return o.a.createElement(f.Provider,{value:u},a)},l=n(16),h=n(55),p=n(170),d=n.n(p),b=n(154),v="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,_=[],y=[null,null];function m(t,e){var n=t[1];return[e.payload,n+1]}function w(t,e,n){v((function(){return t.apply(void 0,e)}),n)}function g(t,e,n,r,o,i,a){t.current=r,e.current=o,n.current=!1,i.current&&(i.current=null,a())}function x(t,e,n,r,o,i,a,u,s,c){if(t){var f=!1,l=null,h=function(){if(!f){var t,n,h=e.getState();try{t=r(h,o.current)}catch(t){n=t,l=t}n||(l=null),t===i.current?a.current||s():(i.current=t,u.current=t,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=h,n.trySubscribe(),h();return function(){if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,l)throw l}}}var O=function(){return[null,0]};function j(t,e){void 0===e&&(e={});var n=e,a=n.getDisplayName,u=void 0===a?function(t){return"ConnectAdvanced("+t+")"}:a,s=n.methodName,f=void 0===s?"connectAdvanced":s,p=n.renderCountProp,v=void 0===p?void 0:p,j=n.shouldHandleStateChanges,k=void 0===j||j,E=n.storeKey,S=void 0===E?"store":E,P=(n.withRef,n.forwardRef),C=void 0!==P&&P,A=n.context,T=void 0===A?i:A,N=Object(h.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),z=T;return function(e){var n=e.displayName||e.name||"Component",i=u(n),a=Object(l.a)({},N,{getDisplayName:u,methodName:f,renderCountProp:v,shouldHandleStateChanges:k,storeKey:S,displayName:i,wrappedComponentName:n,WrappedComponent:e}),s=N.pure;var p=s?r.useMemo:function(t){return t()};function j(n){var i=Object(r.useMemo)((function(){var t=n.forwardedRef,e=Object(h.a)(n,["forwardedRef"]);return[n.context,t,e]}),[n]),u=i[0],s=i[1],f=i[2],d=Object(r.useMemo)((function(){return u&&u.Consumer&&Object(b.isContextConsumer)(o.a.createElement(u.Consumer,null))?u:z}),[u,z]),v=Object(r.useContext)(d),j=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(v)&&Boolean(v.store);var E=j?n.store:v.store,S=Object(r.useMemo)((function(){return function(e){return t(e.dispatch,a)}(E)}),[E]),P=Object(r.useMemo)((function(){if(!k)return y;var t=new c(E,j?null:v.subscription),e=t.notifyNestedSubs.bind(t);return[t,e]}),[E,j,v]),C=P[0],A=P[1],T=Object(r.useMemo)((function(){return j?v:Object(l.a)({},v,{subscription:C})}),[j,v,C]),N=Object(r.useReducer)(m,_,O),I=N[0][0],R=N[1];if(I&&I.error)throw I.error;var D=Object(r.useRef)(),M=Object(r.useRef)(f),B=Object(r.useRef)(),F=Object(r.useRef)(!1),U=p((function(){return B.current&&f===M.current?B.current:S(E.getState(),f)}),[E,I,f]);w(g,[M,D,F,f,U,B,A]),w(x,[k,E,C,S,M,D,F,B,A,R],[E,C,S]);var L=Object(r.useMemo)((function(){return o.a.createElement(e,Object(l.a)({},U,{ref:s}))}),[s,e,U]);return Object(r.useMemo)((function(){return k?o.a.createElement(d.Provider,{value:T},L):L}),[d,L,T])}var E=s?o.a.memo(j):j;if(E.WrappedComponent=e,E.displayName=i,C){var P=o.a.forwardRef((function(t,e){return o.a.createElement(E,Object(l.a)({},t,{forwardedRef:e}))}));return P.displayName=i,P.WrappedComponent=e,d()(P,e)}return d()(E,e)}}function k(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function E(t,e){if(k(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(e,n[o])||!k(t[n[o]],e[n[o]]))return!1;return!0}var S=n(98);function P(t){return function(e,n){var r=t(e,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function C(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function A(t,e){return function(e,n){n.displayName;var r=function(t,e){return r.dependsOnOwnProps?r.mapToProps(t,e):r.mapToProps(t)};return r.dependsOnOwnProps=!0,r.mapToProps=function(e,n){r.mapToProps=t,r.dependsOnOwnProps=C(t);var o=r(e,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=C(o),o=r(e,n)),o},r}}var T=[function(t){return"function"==typeof t?A(t):void 0},function(t){return t?void 0:P((function(t){return{dispatch:t}}))},function(t){return t&&"object"==typeof t?P((function(e){return Object(S.b)(t,e)})):void 0}];var N=[function(t){return"function"==typeof t?A(t):void 0},function(t){return t?void 0:P((function(){return{}}))}];function z(t,e,n){return Object(l.a)({},n,{},t,{},e)}var I=[function(t){return"function"==typeof t?function(t){return function(e,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(e,n,u){var s=t(e,n,u);return a?o&&i(s,r)||(r=s):(a=!0,r=s),r}}}(t):void 0},function(t){return t?void 0:function(){return z}}];function R(t,e,n,r){return function(o,i){return n(t(o,i),e(r,i),i)}}function D(t,e,n,r,o){var i,a,u,s,c,f=o.areStatesEqual,l=o.areOwnPropsEqual,h=o.areStatePropsEqual,p=!1;function d(o,p){var d,b,v=!l(p,a),_=!f(o,i);return i=o,a=p,v&&_?(u=t(i,a),e.dependsOnOwnProps&&(s=e(r,a)),c=n(u,s,a)):v?(t.dependsOnOwnProps&&(u=t(i,a)),e.dependsOnOwnProps&&(s=e(r,a)),c=n(u,s,a)):_?(d=t(i,a),b=!h(d,u),u=d,b&&(c=n(u,s,a)),c):c}return function(o,f){return p?d(o,f):(u=t(i=o,a=f),s=e(r,a),c=n(u,s,a),p=!0,c)}}function M(t,e){var n=e.initMapStateToProps,r=e.initMapDispatchToProps,o=e.initMergeProps,i=Object(h.a)(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(t,i),u=r(t,i),s=o(t,i);return(i.pure?D:R)(a,u,s,t,i)}function B(t,e,n){for(var r=e.length-1;r>=0;r--){var o=e[r](t);if(o)return o}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function F(t,e){return t===e}function U(t){var e=void 0===t?{}:t,n=e.connectHOC,r=void 0===n?j:n,o=e.mapStateToPropsFactories,i=void 0===o?N:o,a=e.mapDispatchToPropsFactories,u=void 0===a?T:a,s=e.mergePropsFactories,c=void 0===s?I:s,f=e.selectorFactory,p=void 0===f?M:f;return function(t,e,n,o){void 0===o&&(o={});var a=o,s=a.pure,f=void 0===s||s,d=a.areStatesEqual,b=void 0===d?F:d,v=a.areOwnPropsEqual,_=void 0===v?E:v,y=a.areStatePropsEqual,m=void 0===y?E:y,w=a.areMergedPropsEqual,g=void 0===w?E:w,x=Object(h.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),O=B(t,i,"mapStateToProps"),j=B(e,u,"mapDispatchToProps"),k=B(n,c,"mergeProps");return r(p,Object(l.a)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:O,initMapDispatchToProps:j,initMergeProps:k,pure:f,areStatesEqual:b,areOwnPropsEqual:_,areStatePropsEqual:m,areMergedPropsEqual:g},x))}}var L=U();function Z(){return Object(r.useContext)(i)}function $(t){void 0===t&&(t=i);var e=t===i?Z:function(){return Object(r.useContext)(t)};return function(){return e().store}}var H=$();function V(t){void 0===t&&(t=i);var e=t===i?H:$(t);return function(){return e().dispatch}}var q=V(),Y=function(t,e){return t===e};function K(t){void 0===t&&(t=i);var e=t===i?Z:function(){return Object(r.useContext)(t)};return function(t,n){void 0===n&&(n=Y);var o=e();return function(t,e,n,o){var i,a=Object(r.useReducer)((function(t){return t+1}),0)[1],u=Object(r.useMemo)((function(){return new c(n,o)}),[n,o]),s=Object(r.useRef)(),f=Object(r.useRef)(),l=Object(r.useRef)();try{i=t!==f.current||s.current?t(n.getState()):l.current}catch(t){throw s.current&&(t.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),t}return v((function(){f.current=t,l.current=i,s.current=void 0})),v((function(){function t(){try{var t=f.current(n.getState());if(e(t,l.current))return;l.current=t}catch(t){s.current=t}a({})}return u.onStateChange=t,u.trySubscribe(),t(),function(){return u.tryUnsubscribe()}}),[n,u]),i}(t,n,o.store,o.subscription)}}var W,G=K(),X=n(20);W=X.unstable_batchedUpdates,a=W},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},,function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(391)()},function(t,e,n){var r=n(357);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(215);var o=n(139),i=n(216);function a(t,e){return Object(r.a)(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(t,e)||Object(o.a)(t,e)||Object(i.a)()}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return s})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return f}));var r=n(0),o=n(91),i=n(161);function a(t){return t}function u(t){return Object(i.a)(0)(t)}function s(){return new o.a}function c(t){var e=Object(r.useRef)(!0),n=Object(r.useRef)(null);return e.current&&(e.current=!1,n.current=t()),n}function f(){var t=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return t(l)})).current}function l(t){return(t+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(127);var o=n(214),i=n(139);function a(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(i.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(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(94),o=n(126),i=n(8);function a(t,e,n,a,u){if(void 0===u&&(u=new r.a(t,n,a)),!u.closed)return e instanceof i.a?e.subscribe(u):Object(o.a)(e)(u)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(7).a)},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=n(7);function i(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.thisArg))},t}(),u=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(o.a)},,,,,function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(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 o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(71),o=n(32);function i(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(o.a)(t):e}},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(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)}n.d(e,"a",(function(){return o}))},function(t,e){var n=Array.isArray;t.exports=n},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(66),o=n(58);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==r(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},,,function(t,e,n){var r=n(198),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},,function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(8),o=n(126),i=n(13),a=n(47);var u=n(93),s=n(67);var c=n(125),f=n(123);function l(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new r.a((function(n){var r=new i.a;return r.add(e.schedule((function(){var o=t[a.a]();r.add(o.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a((function(n){var r=new i.a;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Object(f.a)(t))return Object(u.a)(t,e);if(function(t){return t&&"function"==typeof t[s.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,o=new i.a;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(e.schedule((function(){r=t[s.a](),o.add(e.schedule((function(){if(!n.closed){var t,e;try{var o=r.next();t=o.value,e=o.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function h(t,e){return e?l(t,e):t instanceof r.a?t:new r.a(Object(o.a)(t))}},function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)o(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,o){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),o);else for(var i=0;i<r;i++)t[o+i]=e[n+i]},flattenChunks:function(t){var e,n,r,o,i,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),o=0,e=0,n=t.length;e<n;e++)i=t[e],a.set(i,o),o+=i.length;return a}},a={arraySet:function(t,e,n,r,o){for(var i=0;i<r;i++)t[o+i]=e[n+i]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(r)},function(t,e,n){var r=n(117),o=n(324),i=n(325),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return o}));var o=r()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},,function(t,e,n){"use strict";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)}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(254),o=n(320),i=n(331),a=n(51);t.exports=function(t,e){return(a(t)?r:o)(t,i(e))}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8),o=n(54),i=n(45),a=n(10);function u(t,e,n){return n?u(t,e).pipe(Object(a.a)((function(t){return Object(o.a)(t)?n.apply(void 0,t):n(t)}))):new r.a((function(n){var r,o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(o)}catch(t){return void n.error(t)}if(Object(i.a)(e))return function(){return e(o,r)}}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(23),o=n(48),i={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(o.a)(t)},complete:function(){}}},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=n(7);function i(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.value))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(o.a)},,function(t,e,n){"use strict";var r={};(0,n(65).assign)(r,n(312),n(315),n(196)),t.exports=r},,,function(t,e,n){var r=n(338),o=n(341);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t,e,n){"use strict";var r=n(16),o=n(55),i=n(129);n(26);function a(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var u=n(0),s=n.n(u),c=n(20),f=n.n(c),l=!1,h=s.a.createContext(null),p=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(i.a)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(e="entering"):"entering"!==n&&"entered"!==n||(e="exiting")}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),"entering"===e?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,o=this.props.nodeRef?[r]:[f.a.findDOMNode(this),r],i=o[0],a=o[1],u=this.getTimeouts(),s=r?u.appear:u.enter;!t&&!n||l?this.safeSetState({status:"entered"},(function(){e.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){e.props.onEntering(i,a),e.onTransitionEnd(s,(function(){e.safeSetState({status:"entered"},(function(){e.props.onEntered(i,a)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:f.a.findDOMNode(this);e&&!l?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:f.a.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,r=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Object(o.a)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.a.createElement(h.Provider,{value:null},"function"==typeof n?n(t,r):s.a.cloneElement(s.a.Children.only(n),r))},e}(s.a.Component);function d(){}p.contextType=h,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},p.UNMOUNTED="unmounted",p.EXITED="exited",p.ENTERING="entering",p.ENTERED="entered",p.EXITING="exiting";var b=p,v=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return r=e,void((n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},_=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1];e.removeClasses(o,"exit"),e.addClass(o,i?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1]?"appear":"enter";e.addClass(o,i,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1]?"appear":"enter";e.removeClasses(o,i),e.addClass(o,i,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+t:n[t];return{baseClassName:o,activeClassName:r?o+"-active":n[t+"Active"],doneClassName:r?o+"-done":n[t+"Done"]}},e}Object(i.a)(e,t);var n=e.prototype;return n.addClass=function(t,e,n){var r=this.getClassNames(e)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===e&&"done"===n&&o&&(r+=" "+o),"active"===n&&t&&t.scrollTop,r&&(this.appliedClasses[e][n]=r,function(t,e){t&&e&&e.split(" ").forEach((function(e){return r=e,void((n=t).classList?n.classList.add(r):function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(t,r))},n.removeClasses=function(t,e){var n=this.appliedClasses[e],r=n.base,o=n.active,i=n.done;this.appliedClasses[e]={},r&&v(t,r),o&&v(t,o),i&&v(t,i)},n.render=function(){var t=this.props,e=(t.classNames,Object(o.a)(t,["classNames"]));return s.a.createElement(b,Object(r.a)({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(s.a.Component);_.defaultProps={classNames:""},_.propTypes={};e.a=_},function(t,e,n){var r=n(66),o=n(58);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==r(t)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return l}));var r=n(3),o=n(8),i=n(7),a=n(13),u=n(69),s=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(a.a),c=n(68),f=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.__extends(e,t),e}(i.a),l=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.__extends(e,t),e.prototype[c.a]=function(){return new f(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new u.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new u.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new u.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new u.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new u.a;return this.hasError?(t.error(this.thrownError),a.a.EMPTY):this.isStopped?(t.complete(),a.a.EMPTY):(this.observers.push(t),new s(this,t))},e.prototype.asObservable=function(){var t=new o.a;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(o.a),h=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.__extends(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):a.a.EMPTY},e}(l)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(13);function i(t,e){return new r.a((function(n){var r=new o.a,i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),o=function(t){function e(e,n,r){var o=t.call(this)||this;return o.parent=e,o.outerValue=n,o.outerIndex=r,o.index=0,o}return r.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(7).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(96),o=n(132);function i(){return Object(o.a)(1)}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i()(r.a.apply(void 0,t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(59),o=n(99),i=n(93);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r.a)(n)?(t.pop(),Object(i.a)(t,n)):Object(o.a)(t)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return u}));var r=n(228),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function u(t,e,n){var o;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(u)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var s=t,c=e,f=[],l=f,h=!1;function p(){l===f&&(l=f.slice())}function d(){if(h)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function b(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(h)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var e=!0;return p(),l.push(t),function(){if(e){if(h)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");e=!1,p();var n=l.indexOf(t);l.splice(n,1),f=null}}}function v(t){if(!a(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,c=s(c,t)}finally{h=!1}for(var e=f=l,n=0;n<e.length;n++){(0,e[n])()}return t}function _(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");s=t,v({type:i.REPLACE})}function y(){var t,e=b;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(d())}return n(),{unsubscribe:e(n)}}})[r.a]=function(){return this},t}return v({type:i.INIT}),(o={dispatch:v,subscribe:b,getState:d,replaceReducer:_})[r.a]=y,o}function s(t,e){return function(){return e(t.apply(this,arguments))}}function c(t,e){if("function"==typeof t)return s(t,e);if("object"!=typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in t){var o=t[r];"function"==typeof o&&(n[r]=s(o,e))}return n}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(n,!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function d(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(o)}));return h({},n,{dispatch:r=p.apply(void 0,i)(n.dispatch)})}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),o=n(124),i=n(93);function a(t,e){return e?Object(i.a)(t,e):new r.a(Object(o.a)(t))}},function(t,e,n){var r=n(66),o=n(51),i=n(58);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==r(t)}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r,o=n(118),i=n(96),a=n(8);function u(t){var e=t.error;t.subscriber.error(e)}r||(r={});var s=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return t=this.error,e?new a.a((function(n){return e.schedule(u,0,{error:t,subscriber:n})})):new a.a((function(e){return e.error(t)}));case"C":return Object(o.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8),o=n(59),i=n(132),a=n(99);function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,u=null,s=t[t.length-1];return Object(o.a)(s)?(u=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof s&&(n=t.pop()),null===u&&1===t.length&&t[0]instanceof r.a?t[0]:Object(i.a)(n)(Object(a.a)(t,u))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(112),o=new(n(111).a)(r.a)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),o=n(35),i=n(94),a=n(34),u=n(10),s=n(64);function c(t,e){return"function"==typeof e?function(n){return n.pipe(c((function(n,r){return Object(s.a)(t(n,r)).pipe(Object(u.a)((function(t,o){return e(n,t,r,o)})))})))}:function(e){return e.lift(new f(t))}}var f=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project))},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new i.a(this,e,n),u=this.destination;u.add(o),this.innerSubscription=Object(a.a)(this,t,void 0,void 0,o),this.innerSubscription!==o&&u.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(o.a)},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(144);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),i=function(t){function e(n,r){void 0===r&&(r=o.now);var i=t.call(this,n,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return r.__extends(e,t),e.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,o):t.prototype.schedule.call(this,n,r,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(o)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(13).a))},,function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),o=n(30);function i(t,e){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return t(n.current)}));return[Object(r.useRef)((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];n.current.next(e?e(t):t[0])})).current,i.current]}},function(t,e,n){var r=n(62).Symbol;t.exports=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=n(8),o=new r.a((function(t){return t.complete()}));function i(t){return t?function(t){return new r.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):o}},,function(t,e,n){var r=n(88)(Object,"create");t.exports=r},function(t,e,n){var r=n(158);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(352);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(124),o=n(48),i=n(67),a=n(47),u=n(123),s=n(125),c=n(114),f=function(t){if(t&&"function"==typeof t[a.a])return f=t,function(t){var e=f[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(u.a)(t))return Object(r.a)(t);if(Object(s.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,o.a),t};if(t&&"function"==typeof t[i.a])return e=t,function(t){for(var n=e[i.a]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,f,l=Object(c.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+l+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(t,e,n){"use strict";function r(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.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),o=n(35),i=n(34);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new u(r,n))}}var u=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.observables,this.project))},t}(),s=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.observables=n,o.project=r,o.toRespond=[];var a=n.length;o.values=new Array(a);for(var u=0;u<a;u++)o.toRespond.push(u);for(u=0;u<a;u++){var s=n[u];o.add(Object(i.a)(o,s,s,u))}return o}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e;var i=this.toRespond;if(i.length>0){var a=i.indexOf(n);-1!==a&&i.splice(a,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.a)},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),o=n(308),i=n(30);function a(t,e){if(!e)return Object(i.e)(t).current;var n=Object(i.e)((function(){return new o.a(e)})),a=Object(i.e)((function(){return t(n.current)})),u=Object(r.useRef)(!0);return Object(r.useEffect)((function(){u.current?u.current=!1:n.current.next(e)}),e),a.current}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(145),o=n(115);function i(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(o.a,t)}},,function(t,e,n){var r=n(203),o=n(208),i=n(393);t.exports=function(t,e){var n={};return e=i(e,3),o(t,(function(t,o,i){r(n,o,e(t,o,i))})),n}},,,function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(346),o=n(347),i=n(348),a=n(349),u=n(350);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=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(127);function o(t,e){if(t){if("string"==typeof t)return Object(r.a)(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)?Object(r.a)(t,e):void 0}}},,,,function(t,e,n){var r=n(51),o=n(162),i=n(332),a=n(257);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,n){var r=n(66),o=n(58);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),o=n(34),i=n(35),a=n(94),u=n(10),s=n(64);function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c((function(n,r){return Object(s.a)(t(n,r)).pipe(Object(u.a)((function(t,o){return e(n,t,r,o)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new f(t,n))})}var f=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent))},t}(),l=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new a.a(this,e,n),i=this.destination;i.add(r);var u=Object(o.a)(this,t,void 0,void 0,r);u!==r&&i.add(u)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(54);function o(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},,,,,function(t,e,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(t,e,n){var r=n(255),o=n(328),i=n(153);t.exports=function(t){return i(t)?r(t):o(t)}},function(t,e,n){var r=n(200),o=n(157);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e,n){"use strict";t.exports=n(509)},,function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=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){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(10);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Object(r.a)(i(t,n))(e)}}function i(t,e){return function(n){for(var r=n,o=0;o<e;o++){var i=null!=r?r[t[o]]:void 0;if(void 0===i)return;r=i}return r}}},function(t,e,n){var r=n(51),o=n(144),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(335),o=n(351),i=n(353),a=n(354),u=n(355);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=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,n){var r=n(88)(n(62),"Map");t.exports=r},,,,,,function(t,e,n){"use strict";var r=n(154),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function s(t){return r.isMemo(t)?a:u[t.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var c=Object.defineProperty,f=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(d){var o=p(n);o&&o!==d&&t(e,o,r)}var a=f(n);l&&(a=a.concat(l(n)));for(var u=s(e),b=s(n),v=0;v<a.length;++v){var _=a[v];if(!(i[_]||r&&r[_]||b&&b[_]||u&&u[_])){var y=h(n,_);try{c(e,_,y)}catch(t){}}}}return e}},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=n(7);function i(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.compare,this.keySelector))},t}(),u=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return r.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(o.a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasOwnProperty=Object.prototype.hasOwnProperty},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){Object(r.a)(t,e,n[e])}))}return t}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Object(o.useRef)(t);n.current=t;var i=Object(r.d)(),a=Object(o.useRef)(),u=Object(o.useRef)();if(Object(o.useEffect)((function(){u.current=null;var t=n.current[0],e=t.subscribe({next:function(e){if(t===n.current[0])return n.current[1]?n.current[1](e):void 0},error:function(e){if(t===n.current[0]){if(n.current[2])return u.current=null,n.current[2](e);u.current=e,i()}},complete:function(){if(t===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=e,function(){e.unsubscribe()}}),[t[0]]),u.current)throw u.current;return a}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},,,,,,,,,function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var o=65535&t|0,i=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(o=o+e[r++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16|0}},function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,o){var i=r,a=o+n;t^=-1;for(var u=o;u<a;u++)t=t>>>8^i[255&(t^e[u])];return-1^t}},function(t,e,n){"use strict";var r=n(65),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(t){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){i=!1}for(var a=new r.Buf8(256),u=0;u<256;u++)a[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;function s(t,e){if(e<65534&&(t.subarray&&i||!t.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,e.string2buf=function(t){var e,n,o,i,a,u=t.length,s=0;for(i=0;i<u;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<u&&56320==(64512&(o=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(s),a=0,i=0;a<s;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<u&&56320==(64512&(o=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),n<128?e[a++]=n:n<2048?(e[a++]=192|n>>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return s(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,o=e.length;n<o;n++)e[n]=t.charCodeAt(n);return e},e.buf2string=function(t,e){var n,r,o,i,u=e||t.length,c=new Array(2*u);for(r=0,n=0;n<u;)if((o=t[n++])<128)c[r++]=o;else if((i=a[o])>4)c[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&n<u;)o=o<<6|63&t[n++],i--;i>1?c[r++]=65533:o<65536?c[r++]=o:(o-=65536,c[r++]=55296|o>>10&1023,c[r++]=56320|1023&o)}return s(c,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,n){var r=n(323),o=n(58),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},function(t,e,n){(function(t){var r=n(62),o=n(326),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===i?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;t.exports=s}).call(this,n(183)(t))},function(t,e,n){var r=n(66),o=n(109);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(143),o=n(110);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e,n){var r=n(212);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},,,,,function(t,e,n){var r=n(321),o=n(152);t.exports=function(t,e){return t&&r(t,e,o)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(327),o=n(243),i=n(244),a=i&&i.isTypedArray,u=a?o(a):r;t.exports=u},function(t,e){var n=Function.prototype.toString;t.exports=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(88),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){var r=n(401),o=n(58);t.exports=function t(e,n,i,a,u){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,u))}},function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(422)(n(427));t.exports=r},,,,,function(t,e,n){var r=n(138),o=n(396),i=n(397),a=n(398),u=n(399),s=n(400);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,t.exports=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createActionCreator=function(t){return(...e)=>{switch(e.length){case 0:return{type:t};case 1:return{type:t,payload:e[0]};default:return{type:t,payload:e[0],meta:e[1]}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(177);e.createDefaultActionCreators=function(t,e,n){const o={};if(n)for(const t in n)r.hasOwnProperty.call(n,t)&&(o[t]=n[t]);for(const i in e)r.hasOwnProperty.call(e,i)&&(n&&r.hasOwnProperty.call(o,i)||(o[i]=t(i)));return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createActionCreator=function(t){return(...e)=>{switch(e.length){case 0:return{type:t};case 1:return{type:t,payload:e[0]};case 2:return{type:t,payload:e[0],error:e[1]};default:return{type:t,payload:e[0],error:e[1],meta:e[2]}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineObjects=function(...t){return Object.assign({},...t)}},,function(t,e,n){"use strict";(function(t){var r,o=n(362);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:t;var i=Object(o.a)(r);e.a=i}).call(this,n(510)(t))},,,function(t,e,n){var r=n(402),o=n(405),i=n(406);t.exports=function(t,e,n,a,u,s){var c=1&n,f=t.length,l=e.length;if(f!=l&&!(c&&l>f))return!1;var h=s.get(t);if(h&&s.get(e))return h==e;var p=-1,d=!0,b=2&n?new r:void 0;for(s.set(t,e),s.set(e,t);++p<f;){var v=t[p],_=e[p];if(a)var y=c?a(_,v,p,e,t,s):a(v,_,p,t,e,s);if(void 0!==y){if(y)continue;d=!1;break}if(b){if(!o(e,(function(t,e){if(!i(b,e)&&(v===t||u(v,t,n,a,s)))return b.push(e)}))){d=!1;break}}else if(v!==_&&!u(v,_,n,a,s)){d=!1;break}}return s.delete(t),s.delete(e),d}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},function(t,e,n){var r=n(109);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8);var o=n(0),i=n(182),a=n(30);function u(t,e){var n,u,s,c=Object(o.useState)(e),f=c[0],l=c[1];if((s=t)&&(s instanceof r.a||"function"==typeof s.lift&&"function"==typeof s.subscribe))u=t;else{var h=t,p=Object(a.e)(a.a);u=Object(a.e)((function(){return h(p.current,f)})).current,n=Object(o.useRef)((function(t){return p.current.next(t)})).current}return Object(i.a)(u,l),Object(o.useDebugValue)(f),n?[f,n]:f}},,,function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(198),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u}).call(this,n(183)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(203),o=n(158),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},,function(t,e,n){"use strict";function r(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(o){return"function"==typeof o?o(n,r,t):e(o)}}}}var o=r();o.withExtraArgument=r,e.a=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(514);e.createActionCreator=r.createActionCreator,e.createActionCreators=r.createActionCreators,e.proxyActionCreators=r.proxyActionCreators;var o=n(517);e.createFSACreator=o.createActionCreator,e.createFSACreators=o.createActionCreators,e.proxyFSACreators=o.proxyActionCreators;var i=n(226);e.combineObjects=i.combineObjects;var a=n(520);e.combineUniqueObjects=a.combineUniqueObjects;var u=n(361);e.proxyCombineObjects=u.proxyCombineObjects;var s=n(521);e.proxyCombineUniqueObjects=s.proxyCombineUniqueObjects;var c=n(522);e.createReducer=c.createReducer},,,,,function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(209),o=n(197),i=n(51),a=n(199),u=n(156),s=n(210),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),f=!n&&o(t),l=!n&&!f&&a(t),h=!n&&!f&&!l&&s(t),p=n||f||l||h,d=p?r(t.length,String):[],b=d.length;for(var v in t)!e&&!c.call(t,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,b))||d.push(v);return d}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(356);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(411),o=n(164),i=n(412),a=n(413),u=n(414),s=n(66),c=n(211),f=c(r),l=c(o),h=c(i),p=c(a),d=c(u),b=s;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=b(new o)||i&&"[object Promise]"!=b(i.resolve())||a&&"[object Set]"!=b(new a)||u&&"[object WeakMap]"!=b(new u))&&(b=function(t){var e=s(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case f:return"[object DataView]";case l:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=b},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,u,s=a(t),c=1;c<arguments.length;c++){for(var f in n=Object(arguments[c]))o.call(n,f)&&(s[f]=n[f]);if(r){u=r(n);for(var l=0;l<u.length;l++)i.call(n,u[l])&&(s[u[l]]=n[u[l]])}}return s}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),o=n(91),i=n(69),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.a)},,,,function(t,e,n){"use strict";var r=n(313),o=n(65),i=n(194),a=n(151),u=n(195),s=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?i.string2buf(e.dictionary):"[object ArrayBuffer]"===s.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=r.deflateSetDictionary(this.strm,f)))throw new Error(a[n]);this._dict_set=!0}}function f(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}c.prototype.push=function(t,e){var n,a,u=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?u.input=i.string2buf(t):"[object ArrayBuffer]"===s.call(t)?u.input=new Uint8Array(t):u.input=t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new o.Buf8(c),u.next_out=0,u.avail_out=c),1!==(n=r.deflate(u,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==u.avail_out&&(0!==u.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(u.output,u.next_out))):this.onData(o.shrinkBuf(u.output,u.next_out)))}while((u.avail_in>0||0===u.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),u.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=c,e.deflate=f,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},function(t,e,n){"use strict";var r,o=n(65),i=n(314),a=n(192),u=n(193),s=n(151);function c(t,e){return t.msg=s[e],e}function f(t){return(t<<1)-(t>4?9:0)}function l(t){for(var e=t.length;--e>=0;)t[e]=0}function h(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(o.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function p(t,e){i._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,h(t.strm)}function d(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function v(t,e){var n,r,o=t.max_chain_length,i=t.strstart,a=t.prev_length,u=t.nice_match,s=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+258,p=c[i+a-1],d=c[i+a];t.prev_length>=t.good_match&&(o>>=2),u>t.lookahead&&(u=t.lookahead);do{if(c[(n=e)+a]===d&&c[n+a-1]===p&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<h);if(r=258-(h-i),i=h-258,r>a){if(t.match_start=e,a=r,r>=u)break;p=c[i+a-1],d=c[i+a]}}}while((e=l[e&f])>s&&0!=--o);return a<=t.lookahead?a:t.lookahead}function _(t){var e,n,r,i,s,c,f,l,h,p,d=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-262)){o.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=d?r-d:0}while(--n);e=n=d;do{r=t.prev[--e],t.prev[e]=r>=d?r-d:0}while(--n);i+=d}if(0===t.strm.avail_in)break;if(c=t.strm,f=t.window,l=t.strstart+t.lookahead,h=i,p=void 0,(p=c.avail_in)>h&&(p=h),n=0===p?0:(c.avail_in-=p,o.arraySet(f,c.input,c.next_in,p,l),1===c.state.wrap?c.adler=a(c.adler,f,p,l):2===c.state.wrap&&(c.adler=u(c.adler,f,p,l)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=n,t.lookahead+t.insert>=3)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+3-1])&t.hash_mask,t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function y(t,e){for(var n,r;;){if(t.lookahead<262){if(_(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=v(t,n)),t.match_length>=3)if(r=i._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}function m(t,e){for(var n,r,o;;){if(t.lookahead<262){if(_(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=v(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){o=t.strstart+t.lookahead-3,r=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=o&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(p(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=i._tr_tally(t,0,t.window[t.strstart-1]))&&p(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=i._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}function w(t,e,n,r,o){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=o}function g(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),l(this.dyn_ltree),l(this.dyn_dtree),l(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),l(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),l(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,i._tr_init(e),0):c(t,-2)}function O(t){var e,n=x(t);return 0===n&&((e=t.state).window_size=2*e.w_size,l(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function j(t,e,n,r,i,a){if(!t)return-2;var u=1;if(-1===e&&(e=6),r<0?(u=0,r=-r):r>15&&(u=2,r-=16),i<1||i>9||8!==n||r<8||r>15||e<0||e>9||a<0||a>4)return c(t,-2);8===r&&(r=9);var s=new g;return t.state=s,s.strm=t,s.wrap=u,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new o.Buf8(2*s.w_size),s.head=new o.Buf16(s.hash_size),s.prev=new o.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new o.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=a,s.method=n,O(t)}r=[new w(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(_(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,p(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(p(t,!1),t.strm.avail_out),1)})),new w(4,4,8,4,y),new w(4,5,16,8,y),new w(4,6,32,32,y),new w(4,4,16,16,m),new w(8,16,32,32,m),new w(8,16,128,128,m),new w(8,32,128,256,m),new w(32,128,258,1024,m),new w(32,258,258,4096,m)],e.deflateInit=function(t,e){return j(t,e,8,15,8,0)},e.deflateInit2=j,e.deflateReset=O,e.deflateResetKeep=x,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var n,o,a,s;if(!t||!t.state||e>5||e<0)return t?c(t,-2):-2;if(o=t.state,!t.output||!t.input&&0!==t.avail_in||666===o.status&&4!==e)return c(t,0===t.avail_out?-5:-2);if(o.strm=t,n=o.last_flush,o.last_flush=e,42===o.status)if(2===o.wrap)t.adler=0,d(o,31),d(o,139),d(o,8),o.gzhead?(d(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),d(o,255&o.gzhead.time),d(o,o.gzhead.time>>8&255),d(o,o.gzhead.time>>16&255),d(o,o.gzhead.time>>24&255),d(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),d(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(d(o,255&o.gzhead.extra.length),d(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(t.adler=u(t.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(d(o,0),d(o,0),d(o,0),d(o,0),d(o,0),d(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),d(o,3),o.status=113);else{var v=8+(o.w_bits-8<<4)<<8;v|=(o.strategy>=2||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(v|=32),v+=31-v%31,o.status=113,b(o,v),0!==o.strstart&&(b(o,t.adler>>>16),b(o,65535&t.adler)),t.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(t.adler=u(t.adler,o.pending_buf,o.pending-a,a)),h(t),a=o.pending,o.pending!==o.pending_buf_size));)d(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(t.adler=u(t.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(t.adler=u(t.adler,o.pending_buf,o.pending-a,a)),h(t),a=o.pending,o.pending===o.pending_buf_size)){s=1;break}s=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,d(o,s)}while(0!==s);o.gzhead.hcrc&&o.pending>a&&(t.adler=u(t.adler,o.pending_buf,o.pending-a,a)),0===s&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(t.adler=u(t.adler,o.pending_buf,o.pending-a,a)),h(t),a=o.pending,o.pending===o.pending_buf_size)){s=1;break}s=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,d(o,s)}while(0!==s);o.gzhead.hcrc&&o.pending>a&&(t.adler=u(t.adler,o.pending_buf,o.pending-a,a)),0===s&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&h(t),o.pending+2<=o.pending_buf_size&&(d(o,255&t.adler),d(o,t.adler>>8&255),t.adler=0,o.status=113)):o.status=113),0!==o.pending){if(h(t),0===t.avail_out)return o.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(n)&&4!==e)return c(t,-5);if(666===o.status&&0!==t.avail_in)return c(t,-5);if(0!==t.avail_in||0!==o.lookahead||0!==e&&666!==o.status){var y=2===o.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(_(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(o,e):3===o.strategy?function(t,e){for(var n,r,o,a,u=t.window;;){if(t.lookahead<=258){if(_(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=u[o=t.strstart-1])===u[++o]&&r===u[++o]&&r===u[++o]){a=t.strstart+258;do{}while(r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&o<a);t.match_length=258-(a-o),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=i._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(o,e):r[o.level].func(o,e);if(3!==y&&4!==y||(o.status=666),1===y||3===y)return 0===t.avail_out&&(o.last_flush=-1),0;if(2===y&&(1===e?i._tr_align(o):5!==e&&(i._tr_stored_block(o,0,0,!1),3===e&&(l(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),h(t),0===t.avail_out))return o.last_flush=-1,0}return 4!==e?0:o.wrap<=0?1:(2===o.wrap?(d(o,255&t.adler),d(o,t.adler>>8&255),d(o,t.adler>>16&255),d(o,t.adler>>24&255),d(o,255&t.total_in),d(o,t.total_in>>8&255),d(o,t.total_in>>16&255),d(o,t.total_in>>24&255)):(b(o,t.adler>>>16),b(o,65535&t.adler)),h(t),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?c(t,-2):(t.state=null,113===e?c(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var n,r,i,u,s,c,f,h,p=e.length;if(!t||!t.state)return-2;if(2===(u=(n=t.state).wrap)||1===u&&42!==n.status||n.lookahead)return-2;for(1===u&&(t.adler=a(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===u&&(l(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new o.Buf8(n.w_size),o.arraySet(h,e,p-n.w_size,n.w_size,0),e=h,p=n.w_size),s=t.avail_in,c=t.next_in,f=t.input,t.avail_in=p,t.next_in=0,t.input=e,_(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=2,_(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=c,t.input=f,t.avail_in=s,n.wrap=u,0},e.deflateInfo="pako deflate (from Nodeca project)"},function(t,e,n){"use strict";var r=n(65);function o(t){for(var e=t.length;--e>=0;)t[e]=0}var i=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],s=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);o(c);var f=new Array(60);o(f);var l=new Array(512);o(l);var h=new Array(256);o(h);var p=new Array(29);o(p);var d,b,v,_=new Array(30);function y(t,e,n,r,o){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function w(t){return t<256?l[t]:l[256+(t>>>7)]}function g(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,g(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function O(t,e,n){x(t,n[2*e],n[2*e+1])}function j(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function k(t,e,n){var r,o,i=new Array(16),a=0;for(r=1;r<=15;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=e;o++){var u=t[2*o+1];0!==u&&(t[2*o]=j(i[u]++,u))}}function E(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function S(t){t.bi_valid>8?g(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function P(t,e,n,r){var o=2*e,i=2*n;return t[o]<t[i]||t[o]===t[i]&&r[e]<=r[n]}function C(t,e,n){for(var r=t.heap[n],o=n<<1;o<=t.heap_len&&(o<t.heap_len&&P(e,t.heap[o+1],t.heap[o],t.depth)&&o++,!P(e,r,t.heap[o],t.depth));)t.heap[n]=t.heap[o],n=o,o<<=1;t.heap[n]=r}function A(t,e,n){var r,o,u,s,c=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*c]<<8|t.pending_buf[t.d_buf+2*c+1],o=t.pending_buf[t.l_buf+c],c++,0===r?O(t,o,e):(O(t,(u=h[o])+256+1,e),0!==(s=i[u])&&x(t,o-=p[u],s),O(t,u=w(--r),n),0!==(s=a[u])&&x(t,r-=_[u],s))}while(c<t.last_lit);O(t,256,e)}function T(t,e){var n,r,o,i=e.dyn_tree,a=e.stat_desc.static_tree,u=e.stat_desc.has_stree,s=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<s;n++)0!==i[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):i[2*n+1]=0;for(;t.heap_len<2;)i[2*(o=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[o]=0,t.opt_len--,u&&(t.static_len-=a[2*o+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)C(t,i,n);o=s;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],C(t,i,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,i[2*o]=i[2*n]+i[2*r],t.depth[o]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,i[2*n+1]=i[2*r+1]=o,t.heap[1]=o++,C(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,o,i,a,u,s=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,d=e.stat_desc.max_length,b=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(s[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(i=s[2*s[2*(r=t.heap[n])+1]+1]+1)>d&&(i=d,b++),s[2*r+1]=i,r>c||(t.bl_count[i]++,a=0,r>=p&&(a=h[r-p]),u=s[2*r],t.opt_len+=u*(i+a),l&&(t.static_len+=u*(f[2*r+1]+a)));if(0!==b){do{for(i=d-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[d]--,b-=2}while(b>0);for(i=d;0!==i;i--)for(r=t.bl_count[i];0!==r;)(o=t.heap[--n])>c||(s[2*o+1]!==i&&(t.opt_len+=(i-s[2*o+1])*s[2*o],s[2*o+1]=i),r--)}}(t,e),k(i,c,t.bl_count)}function N(t,e,n){var r,o,i=-1,a=e[1],u=0,s=7,c=4;for(0===a&&(s=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=e[2*(r+1)+1],++u<s&&o===a||(u<c?t.bl_tree[2*o]+=u:0!==o?(o!==i&&t.bl_tree[2*o]++,t.bl_tree[32]++):u<=10?t.bl_tree[34]++:t.bl_tree[36]++,u=0,i=o,0===a?(s=138,c=3):o===a?(s=6,c=3):(s=7,c=4))}function z(t,e,n){var r,o,i=-1,a=e[1],u=0,s=7,c=4;for(0===a&&(s=138,c=3),r=0;r<=n;r++)if(o=a,a=e[2*(r+1)+1],!(++u<s&&o===a)){if(u<c)do{O(t,o,t.bl_tree)}while(0!=--u);else 0!==o?(o!==i&&(O(t,o,t.bl_tree),u--),O(t,16,t.bl_tree),x(t,u-3,2)):u<=10?(O(t,17,t.bl_tree),x(t,u-3,3)):(O(t,18,t.bl_tree),x(t,u-11,7));u=0,i=o,0===a?(s=138,c=3):o===a?(s=6,c=3):(s=7,c=4)}}o(_);var I=!1;function R(t,e,n,o){x(t,0+(o?1:0),3),function(t,e,n,o){S(t),o&&(g(t,n),g(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}e._tr_init=function(t){I||(!function(){var t,e,n,r,o,s=new Array(16);for(n=0,r=0;r<28;r++)for(p[r]=n,t=0;t<1<<i[r];t++)h[n++]=r;for(h[n-1]=r,o=0,r=0;r<16;r++)for(_[r]=o,t=0;t<1<<a[r];t++)l[o++]=r;for(o>>=7;r<30;r++)for(_[r]=o<<7,t=0;t<1<<a[r]-7;t++)l[256+o++]=r;for(e=0;e<=15;e++)s[e]=0;for(t=0;t<=143;)c[2*t+1]=8,t++,s[8]++;for(;t<=255;)c[2*t+1]=9,t++,s[9]++;for(;t<=279;)c[2*t+1]=7,t++,s[7]++;for(;t<=287;)c[2*t+1]=8,t++,s[8]++;for(k(c,287,s),t=0;t<30;t++)f[2*t+1]=5,f[2*t]=j(t,5);d=new y(c,i,257,286,15),b=new y(f,a,0,30,15),v=new y(new Array(0),u,0,19,7)}(),I=!0),t.l_desc=new m(t.dyn_ltree,d),t.d_desc=new m(t.dyn_dtree,b),t.bl_desc=new m(t.bl_tree,v),t.bi_buf=0,t.bi_valid=0,E(t)},e._tr_stored_block=R,e._tr_flush_block=function(t,e,n,r){var o,i,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),T(t,t.l_desc),T(t,t.d_desc),a=function(t){var e;for(N(t,t.dyn_ltree,t.l_desc.max_code),N(t,t.dyn_dtree,t.d_desc.max_code),T(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*s[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(i=t.static_len+3+7>>>3)<=o&&(o=i)):o=i=n+5,n+4<=o&&-1!==e?R(t,e,n,r):4===t.strategy||i===o?(x(t,2+(r?1:0),3),A(t,c,f)):(x(t,4+(r?1:0),3),function(t,e,n,r){var o;for(x(t,e-257,5),x(t,n-1,5),x(t,r-4,4),o=0;o<r;o++)x(t,t.bl_tree[2*s[o]+1],3);z(t,t.dyn_ltree,e-1),z(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),A(t,t.dyn_ltree,t.dyn_dtree)),E(t),r&&S(t)},e._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(h[n]+256+1)]++,t.dyn_dtree[2*w(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),O(t,256,c),function(t){16===t.bi_valid?(g(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){"use strict";var r=n(316),o=n(65),i=n(194),a=n(196),u=n(151),s=n(195),c=n(319),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(u[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=i.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(u[n])}function h(t,e){var n=new l(e);if(n.push(t,!0),n.err)throw n.msg||u[n.err];return n.result}l.prototype.push=function(t,e){var n,u,s,c,l,h=this.strm,p=this.options.chunkSize,d=this.options.dictionary,b=!1;if(this.ended)return!1;u=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?h.input=i.binstring2buf(t):"[object ArrayBuffer]"===f.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new o.Buf8(p),h.next_out=0,h.avail_out=p),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&d&&(n=r.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===b&&(n=a.Z_OK,b=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||u!==a.Z_FINISH&&u!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(s=i.utf8border(h.output,h.next_out),c=h.next_out-s,l=i.buf2string(h.output,s),h.next_out=c,h.avail_out=p-c,c&&o.arraySet(h.output,h.output,s,c,0),this.onData(l)):this.onData(o.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(b=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(u=a.Z_FINISH),u===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):u!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},function(t,e,n){"use strict";var r=n(65),o=n(192),i=n(193),a=n(317),u=n(318);function s(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(852),e.distcode=e.distdyn=new r.Buf32(592),e.sane=1,e.back=-1,0):-2}function l(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):-2}function h(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,l(t))):-2}function p(t,e){var n,r;return t?(r=new c,t.state=r,r.window=null,0!==(n=h(t,e))&&(t.state=null),n):-2}var d,b,v=!0;function _(t){if(v){var e;for(d=new r.Buf32(512),b=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(u(1,t.lens,0,288,d,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;u(2,t.lens,0,32,b,0,t.work,{bits:5}),v=!1}t.lencode=d,t.lenbits=9,t.distcode=b,t.distbits=5}function y(t,e,n,o){var i,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),o>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>o&&(i=o),r.arraySet(a.window,e,n-o,i,a.wnext),(o-=i)?(r.arraySet(a.window,e,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}e.inflateReset=l,e.inflateReset2=h,e.inflateResetKeep=f,e.inflateInit=function(t){return p(t,15)},e.inflateInit2=p,e.inflate=function(t,e){var n,c,f,l,h,p,d,b,v,m,w,g,x,O,j,k,E,S,P,C,A,T,N,z,I=0,R=new r.Buf8(4),D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(n=t.state).mode&&(n.mode=13),h=t.next_out,f=t.output,d=t.avail_out,l=t.next_in,c=t.input,p=t.avail_in,b=n.hold,v=n.bits,m=p,w=d,T=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(2&n.wrap&&35615===b){n.check=0,R[0]=255&b,R[1]=b>>>8&255,n.check=i(n.check,R,2,0),b=0,v=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",n.mode=30;break}if(v-=4,A=8+(15&(b>>>=4)),0===n.wbits)n.wbits=A;else if(A>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<A,t.adler=n.check=1,n.mode=512&b?10:12,b=0,v=0;break;case 2:for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(n.flags=b,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(R[0]=255&b,R[1]=b>>>8&255,n.check=i(n.check,R,2,0)),b=0,v=0,n.mode=3;case 3:for(;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.head&&(n.head.time=b),512&n.flags&&(R[0]=255&b,R[1]=b>>>8&255,R[2]=b>>>16&255,R[3]=b>>>24&255,n.check=i(n.check,R,4,0)),b=0,v=0,n.mode=4;case 4:for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(R[0]=255&b,R[1]=b>>>8&255,n.check=i(n.check,R,2,0)),b=0,v=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(R[0]=255&b,R[1]=b>>>8&255,n.check=i(n.check,R,2,0)),b=0,v=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((g=n.length)>p&&(g=p),g&&(n.head&&(A=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,l,g,A)),512&n.flags&&(n.check=i(n.check,c,g,l)),p-=g,l+=g,n.length-=g),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break t;g=0;do{A=c[l+g++],n.head&&A&&n.length<65536&&(n.head.name+=String.fromCharCode(A))}while(A&&g<p);if(512&n.flags&&(n.check=i(n.check,c,g,l)),p-=g,l+=g,A)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break t;g=0;do{A=c[l+g++],n.head&&A&&n.length<65536&&(n.head.comment+=String.fromCharCode(A))}while(A&&g<p);if(512&n.flags&&(n.check=i(n.check,c,g,l)),p-=g,l+=g,A)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(b!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}b=0,v=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}t.adler=n.check=s(b),b=0,v=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=h,t.avail_out=d,t.next_in=l,t.avail_in=p,n.hold=b,n.bits=v,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){b>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}switch(n.last=1&b,v-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(_(n),n.mode=20,6===e){b>>>=2,v-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,b=0,v=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(g=n.length){if(g>p&&(g=p),g>d&&(g=d),0===g)break t;r.arraySet(f,c,l,g,h),p-=g,l+=g,d-=g,h+=g,n.length-=g;break}n.mode=12;break;case 17:for(;v<14;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(n.nlen=257+(31&b),b>>>=5,v-=5,n.ndist=1+(31&b),b>>>=5,v-=5,n.ncode=4+(15&b),b>>>=4,v-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.lens[D[n.have++]]=7&b,b>>>=3,v-=3}for(;n.have<19;)n.lens[D[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},T=u(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,T){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;k=(I=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,E=65535&I,!((j=I>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(E<16)b>>>=j,v-=j,n.lens[n.have++]=E;else{if(16===E){for(z=j+2;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(b>>>=j,v-=j,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}A=n.lens[n.have-1],g=3+(3&b),b>>>=2,v-=2}else if(17===E){for(z=j+3;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}v-=j,A=0,g=3+(7&(b>>>=j)),b>>>=3,v-=3}else{for(z=j+7;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}v-=j,A=0,g=11+(127&(b>>>=j)),b>>>=7,v-=7}if(n.have+g>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;g--;)n.lens[n.have++]=A}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,N={bits:n.lenbits},T=u(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,T){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},T=u(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,T){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(p>=6&&d>=258){t.next_out=h,t.avail_out=d,t.next_in=l,t.avail_in=p,n.hold=b,n.bits=v,a(t,w),h=t.next_out,f=t.output,d=t.avail_out,l=t.next_in,c=t.input,p=t.avail_in,b=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;k=(I=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,E=65535&I,!((j=I>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(k&&0==(240&k)){for(S=j,P=k,C=E;k=(I=n.lencode[C+((b&(1<<S+P)-1)>>S)])>>>16&255,E=65535&I,!(S+(j=I>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}b>>>=S,v-=S,n.back+=S}if(b>>>=j,v-=j,n.back+=j,n.length=E,0===k){n.mode=26;break}if(32&k){n.back=-1,n.mode=12;break}if(64&k){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&k,n.mode=22;case 22:if(n.extra){for(z=n.extra;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;k=(I=n.distcode[b&(1<<n.distbits)-1])>>>16&255,E=65535&I,!((j=I>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(0==(240&k)){for(S=j,P=k,C=E;k=(I=n.distcode[C+((b&(1<<S+P)-1)>>S)])>>>16&255,E=65535&I,!(S+(j=I>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}b>>>=S,v-=S,n.back+=S}if(b>>>=j,v-=j,n.back+=j,64&k){t.msg="invalid distance code",n.mode=30;break}n.offset=E,n.extra=15&k,n.mode=24;case 24:if(n.extra){for(z=n.extra;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===d)break t;if(g=w-d,n.offset>g){if((g=n.offset-g)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}g>n.wnext?(g-=n.wnext,x=n.wsize-g):x=n.wnext-g,g>n.length&&(g=n.length),O=n.window}else O=f,x=h-n.offset,g=n.length;g>d&&(g=d),d-=g,n.length-=g;do{f[h++]=O[x++]}while(--g);0===n.length&&(n.mode=21);break;case 26:if(0===d)break t;f[h++]=n.length,d--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===p)break t;p--,b|=c[l++]<<v,v+=8}if(w-=d,t.total_out+=w,n.total+=w,w&&(t.adler=n.check=n.flags?i(n.check,f,w,h-w):o(n.check,f,w,h-w)),w=d,(n.flags?b:s(b))!==n.check){t.msg="incorrect data check",n.mode=30;break}b=0,v=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(b!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}b=0,v=0}n.mode=29;case 29:T=1;break t;case 30:T=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=h,t.avail_out=d,t.next_in=l,t.avail_in=p,n.hold=b,n.bits=v,(n.wsize||w!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&y(t,t.output,t.next_out,w-t.avail_out)?(n.mode=31,-4):(m-=t.avail_in,w-=t.avail_out,t.total_in+=m,t.total_out+=w,n.total+=w,n.wrap&&w&&(t.adler=n.check=n.flags?i(n.check,f,w,t.next_out-w):o(n.check,f,w,t.next_out-w)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===m&&0===w||4===e)&&0===T&&(T=-5),T)},e.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?-2:(n.head=e,e.done=!1,0):-2},e.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?-2:11===n.mode&&o(1,e,r,0)!==n.check?-3:y(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},e.inflateInfo="pako inflate (from Nodeca project)"},function(t,e,n){"use strict";t.exports=function(t,e){var n,r,o,i,a,u,s,c,f,l,h,p,d,b,v,_,y,m,w,g,x,O,j,k,E;n=t.state,r=t.next_in,k=t.input,o=r+(t.avail_in-5),i=t.next_out,E=t.output,a=i-(e-t.avail_out),u=i+(t.avail_out-257),s=n.dmax,c=n.wsize,f=n.whave,l=n.wnext,h=n.window,p=n.hold,d=n.bits,b=n.lencode,v=n.distcode,_=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{d<15&&(p+=k[r++]<<d,d+=8,p+=k[r++]<<d,d+=8),m=b[p&_];e:for(;;){if(p>>>=w=m>>>24,d-=w,0===(w=m>>>16&255))E[i++]=65535&m;else{if(!(16&w)){if(0==(64&w)){m=b[(65535&m)+(p&(1<<w)-1)];continue e}if(32&w){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}g=65535&m,(w&=15)&&(d<w&&(p+=k[r++]<<d,d+=8),g+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=k[r++]<<d,d+=8,p+=k[r++]<<d,d+=8),m=v[p&y];n:for(;;){if(p>>>=w=m>>>24,d-=w,!(16&(w=m>>>16&255))){if(0==(64&w)){m=v[(65535&m)+(p&(1<<w)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&m,d<(w&=15)&&(p+=k[r++]<<d,(d+=8)<w&&(p+=k[r++]<<d,d+=8)),(x+=p&(1<<w)-1)>s){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=w,d-=w,x>(w=i-a)){if((w=x-w)>f&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(O=0,j=h,0===l){if(O+=c-w,w<g){g-=w;do{E[i++]=h[O++]}while(--w);O=i-x,j=E}}else if(l<w){if(O+=c+l-w,(w-=l)<g){g-=w;do{E[i++]=h[O++]}while(--w);if(O=0,l<g){g-=w=l;do{E[i++]=h[O++]}while(--w);O=i-x,j=E}}}else if(O+=l-w,w<g){g-=w;do{E[i++]=h[O++]}while(--w);O=i-x,j=E}for(;g>2;)E[i++]=j[O++],E[i++]=j[O++],E[i++]=j[O++],g-=3;g&&(E[i++]=j[O++],g>1&&(E[i++]=j[O++]))}else{O=i-x;do{E[i++]=E[O++],E[i++]=E[O++],E[i++]=E[O++],g-=3}while(g>2);g&&(E[i++]=E[O++],g>1&&(E[i++]=E[O++]))}break}}break}}while(r<o&&i<u);r-=g=d>>3,p&=(1<<(d-=g<<3))-1,t.next_in=r,t.next_out=i,t.avail_in=r<o?o-r+5:5-(r-o),t.avail_out=i<u?u-i+257:257-(i-u),n.hold=p,n.bits=d}},function(t,e,n){"use strict";var r=n(65),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,n,s,c,f,l,h){var p,d,b,v,_,y,m,w,g,x=h.bits,O=0,j=0,k=0,E=0,S=0,P=0,C=0,A=0,T=0,N=0,z=null,I=0,R=new r.Buf16(16),D=new r.Buf16(16),M=null,B=0;for(O=0;O<=15;O++)R[O]=0;for(j=0;j<s;j++)R[e[n+j]]++;for(S=x,E=15;E>=1&&0===R[E];E--);if(S>E&&(S=E),0===E)return c[f++]=20971520,c[f++]=20971520,h.bits=1,0;for(k=1;k<E&&0===R[k];k++);for(S<k&&(S=k),A=1,O=1;O<=15;O++)if(A<<=1,(A-=R[O])<0)return-1;if(A>0&&(0===t||1!==E))return-1;for(D[1]=0,O=1;O<15;O++)D[O+1]=D[O]+R[O];for(j=0;j<s;j++)0!==e[n+j]&&(l[D[e[n+j]]++]=j);if(0===t?(z=M=l,y=19):1===t?(z=o,I-=257,M=i,B-=257,y=256):(z=a,M=u,y=-1),N=0,j=0,O=k,_=f,P=S,C=0,b=-1,v=(T=1<<S)-1,1===t&&T>852||2===t&&T>592)return 1;for(;;){m=O-C,l[j]<y?(w=0,g=l[j]):l[j]>y?(w=M[B+l[j]],g=z[I+l[j]]):(w=96,g=0),p=1<<O-C,k=d=1<<P;do{c[_+(N>>C)+(d-=p)]=m<<24|w<<16|g|0}while(0!==d);for(p=1<<O-1;N&p;)p>>=1;if(0!==p?(N&=p-1,N+=p):N=0,j++,0==--R[O]){if(O===E)break;O=e[n+l[j]]}if(O>S&&(N&v)!==b){for(0===C&&(C=S),_+=k,A=1<<(P=O-C);P+C<E&&!((A-=R[P+C])<=0);)P++,A<<=1;if(T+=1<<P,1===t&&T>852||2===t&&T>592)return 1;c[b=N&v]=S<<24|P<<16|_-f|0}}return 0!==N&&(c[_+N]=O-C<<24|64<<16|0),h.bits=S,0}},function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e,n){var r=n(208),o=n(330)(r);t.exports=o},function(t,e,n){var r=n(322)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===n(i[s],s,i))break}return e}}},function(t,e,n){var r=n(66),o=n(58);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(117),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[u]=n:delete t[u]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(66),o=n(157),i=n(58),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,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(245),o=n(329),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(256)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(153);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,a=e?i:-1,u=Object(n);(e?a--:++a<i)&&!1!==o(u[a],a,u););return n}}},function(t,e,n){var r=n(137);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(333),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)})),e}));t.exports=a},function(t,e,n){var r=n(334);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=n(163);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},function(t,e,n){var r=n(336),o=n(138),i=n(164);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(337),o=n(342),i=n(343),a=n(344),u=n(345);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=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,n){var r=n(120);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e,n){var r=n(200),o=n(339),i=n(109),a=n(211),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,f=s.toString,l=c.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?h:u).test(a(t))}},function(t,e,n){var r,o=n(340),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(62)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(120),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(120),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(120);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(121),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(121);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(121);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(121);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(122);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(122);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(122);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(122);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(117),o=n(202),i=n(51),a=n(144),u=r?r.prototype:void 0,s=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return s?s.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(246),o=n(143),i=n(156),a=n(109),u=n(110);t.exports=function(t,e,n,s){if(!a(t))return t;for(var c=-1,f=(e=o(e,t)).length,l=f-1,h=t;null!=h&&++c<f;){var p=u(e[c]),d=n;if(c!=l){var b=h[p];void 0===(d=s?s(b,p,h):void 0)&&(d=a(b)?b:i(e[c+1])?[]:{})}r(h,p,d),h=h[p]}return t}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e,n){var r=n(232),o=n(378),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(177),o=n(224);e.proxyDefaultActionCreators=function(t,e,n){let i;const a={get:(o,i)=>r.hasOwnProperty.call(o,i)?o[i]:n&&r.hasOwnProperty.call(n,i)?o[i]=n[i]:r.hasOwnProperty.call(e,i)?o[i]=t(i):void 0,ownKeys:()=>(i||(i=new Set([...Object.keys(e),...Object.keys(n||{})])),[...i]),getOwnPropertyDescriptor:(o,i)=>r.hasOwnProperty.call(o,i)?{value:o[i],configurable:!0,enumerable:!0}:n&&r.hasOwnProperty.call(n,i)?(o[i]=n[i],{value:o[i],configurable:!0,enumerable:!0}):r.hasOwnProperty.call(e,i)?(o[i]=t(i),{value:o[i],configurable:!0,enumerable:!0}):void 0};try{return new Proxy({},a)}catch(r){return o.createDefaultActionCreators(t,e,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(177),o=n(226);e.proxyCombineObjects=function(...t){let e,n;const i={get(e,o){if(r.hasOwnProperty.call(e,o))return e[o];if(!n||!n.has(o)){for(let n=t.length-1;n>=0;n--){const i=t[n];if(r.hasOwnProperty.call(i,o))return e[o]=i[o]}n?n.size>=100&&n.clear():n=new Set,n.add(o)}},ownKeys:()=>(e||(e=new Set(t.reduce((t,e)=>t.concat(Object.keys(e)),[]))),[...e]),getOwnPropertyDescriptor(e,o){if(r.hasOwnProperty.call(e,o))return{value:e[o],configurable:!0,enumerable:!0};if(!n||!n.has(o)){for(let n=t.length-1;n>=0;n--){const i=t[n];if(r.hasOwnProperty.call(i,o))return e[o]=i[o],{value:e[o],configurable:!0,enumerable:!0}}n?n.size>=100&&n.clear():n=new Set,n.add(o)}}};try{return new Proxy(Object.create(null),i)}catch(e){return o.combineObjects(...t)}}},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(38),o=function(t,e){return t===e||"function"==typeof e&&t===e.toString()},i=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return t.pipe(Object(r.a)((function(t){var n=t.type,r=e.length;if(1===r)return o(n,e[0]);for(var i=0;i<r;i++)if(o(n,e[i]))return!0;return!1})))}}},,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),o=n(7),i=n(106);function a(t,e){return void 0===e&&(e=i.a),function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.dueTime,this.scheduler))},t}(),s=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.dueTime=n,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return r.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(o.a);function c(t){t.debouncedNext()}},,,,function(t,e,n){var r=n(62).Uint8Array;t.exports=r},function(t,e,n){var r=n(377),o=n(359),i=n(152);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(358),o=n(51);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(423),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),s=Array(u);++a<u;)s[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=n(s),r(t,this,c)}}},function(t,e,n){var r=n(424),o=n(426)(r);t.exports=o},,,,,,,,,function(t,e,n){"use strict";var r=n(0);e.a=function(t,e){var n=Object(r.useRef)(!0);Object(r.useEffect)((function(){if(!n.current)return t();n.current=!1}),e)}},function(t,e,n){"use strict"; -/** @license React v0.19.1 - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r,o,i,a,u;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var t=e.unstable_now();s(!0,t),s=null}catch(t){throw setTimeout(f,0),t}},l=Date.now();e.unstable_now=function(){return Date.now()-l},r=function(t){null!==s?setTimeout(r,0,t):(s=t,setTimeout(f,0))},o=function(t,e){c=setTimeout(t,e)},i=function(){clearTimeout(c)},a=function(){return!1},u=e.unstable_forceFrameRate=function(){}}else{var h=window.performance,p=window.Date,d=window.setTimeout,b=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof h&&"function"==typeof h.now)e.unstable_now=function(){return h.now()};else{var _=p.now();e.unstable_now=function(){return p.now()-_}}var y=!1,m=null,w=-1,g=5,x=0;a=function(){return e.unstable_now()>=x},u=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):g=0<t?Math.floor(1e3/t):5};var O=new MessageChannel,j=O.port2;O.port1.onmessage=function(){if(null!==m){var t=e.unstable_now();x=t+g;try{m(!0,t)?j.postMessage(null):(y=!1,m=null)}catch(t){throw j.postMessage(null),t}}else y=!1},r=function(t){m=t,y||(y=!0,j.postMessage(null))},o=function(t,n){w=d((function(){t(e.unstable_now())}),n)},i=function(){b(w),w=-1}}function k(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,o=t[r];if(!(void 0!==o&&0<P(o,e)))break t;t[r]=e,t[n]=o,n=r}}function E(t){return void 0===(t=t[0])?null:t}function S(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,o=t.length;r<o;){var i=2*(r+1)-1,a=t[i],u=i+1,s=t[u];if(void 0!==a&&0>P(a,n))void 0!==s&&0>P(s,a)?(t[r]=s,t[u]=n,r=u):(t[r]=a,t[i]=n,r=i);else{if(!(void 0!==s&&0>P(s,n)))break t;t[r]=s,t[u]=n,r=u}}}return e}return null}function P(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var C=[],A=[],T=1,N=null,z=3,I=!1,R=!1,D=!1;function M(t){for(var e=E(A);null!==e;){if(null===e.callback)S(A);else{if(!(e.startTime<=t))break;S(A),e.sortIndex=e.expirationTime,k(C,e)}e=E(A)}}function B(t){if(D=!1,M(t),!R)if(null!==E(C))R=!0,r(F);else{var e=E(A);null!==e&&o(B,e.startTime-t)}}function F(t,n){R=!1,D&&(D=!1,i()),I=!0;var r=z;try{for(M(n),N=E(C);null!==N&&(!(N.expirationTime>n)||t&&!a());){var u=N.callback;if(null!==u){N.callback=null,z=N.priorityLevel;var s=u(N.expirationTime<=n);n=e.unstable_now(),"function"==typeof s?N.callback=s:N===E(C)&&S(C),M(n)}else S(C);N=E(C)}if(null!==N)var c=!0;else{var f=E(A);null!==f&&o(B,f.startTime-n),c=!1}return c}finally{N=null,z=r,I=!1}}function U(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var L=u;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){R||I||(R=!0,r(F))},e.unstable_getCurrentPriorityLevel=function(){return z},e.unstable_getFirstCallbackNode=function(){return E(C)},e.unstable_next=function(t){switch(z){case 1:case 2:case 3:var e=3;break;default:e=z}var n=z;z=e;try{return t()}finally{z=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=L,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=z;z=t;try{return e()}finally{z=n}},e.unstable_scheduleCallback=function(t,n,a){var u=e.unstable_now();if("object"==typeof a&&null!==a){var s=a.delay;s="number"==typeof s&&0<s?u+s:u,a="number"==typeof a.timeout?a.timeout:U(t)}else a=U(t),s=u;return t={id:T++,callback:n,priorityLevel:t,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>u?(t.sortIndex=s,k(A,t),null===E(C)&&t===E(A)&&(D?i():D=!0,o(B,s-u))):(t.sortIndex=a,k(C,t),R||I||(R=!0,r(F))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();M(t);var n=E(C);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<N.expirationTime||a()},e.unstable_wrapCallback=function(t){var e=z;return function(){var n=z;z=e;try{return t.apply(this,arguments)}finally{z=n}}}},function(t,e,n){"use strict";var r=n(392);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(394),o=n(416),i=n(137),a=n(51),u=n(420);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):u(t)}},function(t,e,n){var r=n(395),o=n(415),i=n(234);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(222),o=n(213);t.exports=function(t,e,n,i){var a=n.length,u=a,s=!i;if(null==t)return!u;for(t=Object(t);a--;){var c=n[a];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<u;){var f=(c=n[a])[0],l=t[f],h=c[1];if(s&&c[2]){if(void 0===l&&!(f in t))return!1}else{var p=new r;if(i)var d=i(l,h,f,t,e,p);if(!(void 0===d?o(h,l,3,i,p):d))return!1}}return!0}},function(t,e,n){var r=n(138);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(138),o=n(164),i=n(163);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(222),o=n(231),i=n(407),a=n(410),u=n(258),s=n(51),c=n(199),f=n(210),l="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,d,b){var v=s(t),_=s(e),y=v?"[object Array]":u(t),m=_?"[object Array]":u(e),w=(y="[object Arguments]"==y?l:y)==l,g=(m="[object Arguments]"==m?l:m)==l,x=y==m;if(x&&c(t)){if(!c(e))return!1;v=!0,w=!1}if(x&&!w)return b||(b=new r),v||f(t)?o(t,e,n,p,d,b):i(t,e,y,n,p,d,b);if(!(1&n)){var O=w&&h.call(t,"__wrapped__"),j=g&&h.call(e,"__wrapped__");if(O||j){var k=O?t.value():t,E=j?e.value():e;return b||(b=new r),d(k,E,n,p,b)}}return!!x&&(b||(b=new r),a(t,e,n,p,d,b))}},function(t,e,n){var r=n(163),o=n(403),i=n(404);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=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}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(117),o=n(375),i=n(158),a=n(231),u=n(408),s=n(409),c=r?r.prototype:void 0,f=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,l,h){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||!l(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+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 p=u;case"[object Set]":var d=1&r;if(p||(p=s),t.size!=e.size&&!d)return!1;var b=h.get(t);if(b)return b==e;r|=2,h.set(t,e);var v=a(p(t),p(e),r,c,l,h);return h.delete(t),v;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(376),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,u){var s=1&n,c=r(t),f=c.length;if(f!=r(e).length&&!s)return!1;for(var l=f;l--;){var h=c[l];if(!(s?h in e:o.call(e,h)))return!1}var p=u.get(t);if(p&&u.get(e))return p==e;var d=!0;u.set(t,e),u.set(e,t);for(var b=s;++l<f;){var v=t[h=c[l]],_=e[h];if(i)var y=s?i(_,v,h,e,t,u):i(v,_,h,t,e,u);if(!(void 0===y?v===_||a(v,_,n,i,u):y)){d=!1;break}b||(b="constructor"==h)}if(d&&!b){var m=t.constructor,w=e.constructor;m==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof w&&w instanceof w||(d=!1)}return u.delete(t),u.delete(e),d}},function(t,e,n){var r=n(88)(n(62),"DataView");t.exports=r},function(t,e,n){var r=n(88)(n(62),"Promise");t.exports=r},function(t,e,n){var r=n(88)(n(62),"Set");t.exports=r},function(t,e,n){var r=n(88)(n(62),"WeakMap");t.exports=r},function(t,e,n){var r=n(233),o=n(152);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},function(t,e,n){var r=n(213),o=n(21),i=n(417),a=n(162),u=n(233),s=n(234),c=n(110);t.exports=function(t,e){return a(t)&&u(e)?s(c(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},function(t,e,n){var r=n(418),o=n(419);t.exports=function(t,e){return null!=t&&o(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(143),o=n(197),i=n(51),a=n(156),u=n(157),s=n(110);t.exports=function(t,e,n){for(var c=-1,f=(e=r(e,t)).length,l=!1;++c<f;){var h=s(e[c]);if(!(l=null!=t&&n(t,h)))break;t=t[h]}return l||++c!=f?l:!!(f=null==t?0:t.length)&&u(f)&&a(h,f)&&(i(t)||o(t))}},function(t,e,n){var r=n(235),o=n(421),i=n(162),a=n(110);t.exports=function(t){return i(t)?r(a(t)):o(t)}},function(t,e,n){var r=n(201);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){var r=n(137),o=n(379),i=n(380);t.exports=function(t,e){return i(o(t,e,r),t+"")}},function(t,e){t.exports=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)}},function(t,e,n){var r=n(425),o=n(212),i=n(137),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(232),o=n(202),i=n(235),a=n(209),u=n(428),s=Math.max;t.exports=function(t){if(!t||!t.length)return[];var e=0;return t=r(t,(function(t){if(u(t))return e=s(t.length,e),!0})),a(e,(function(e){return o(t,i(e))}))}},function(t,e,n){var r=n(153),o=n(58);t.exports=function(t){return o(t)&&r(t)}},,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(95),o=n(59);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(o.a)(n)?(t.pop(),function(e){return Object(r.a)(t,e,n)}):function(e){return Object(r.a)(t,e)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict"; -/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,_=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,g=r?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case o:switch(t=t.type){case l:case h:case a:case s:case u:case d:return t;default:switch(t=t&&t.$$typeof){case f:case p:case _:case v:case c:return t;default:return e}}case i:return e}}}function O(t){return x(t)===h}e.AsyncMode=l,e.ConcurrentMode=h,e.ContextConsumer=f,e.ContextProvider=c,e.Element=o,e.ForwardRef=p,e.Fragment=a,e.Lazy=_,e.Memo=v,e.Portal=i,e.Profiler=s,e.StrictMode=u,e.Suspense=d,e.isAsyncMode=function(t){return O(t)||x(t)===l},e.isConcurrentMode=O,e.isContextConsumer=function(t){return x(t)===f},e.isContextProvider=function(t){return x(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===o},e.isForwardRef=function(t){return x(t)===p},e.isFragment=function(t){return x(t)===a},e.isLazy=function(t){return x(t)===_},e.isMemo=function(t){return x(t)===v},e.isPortal=function(t){return x(t)===i},e.isProfiler=function(t){return x(t)===s},e.isStrictMode=function(t){return x(t)===u},e.isSuspense=function(t){return x(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===h||t===s||t===u||t===d||t===b||"object"==typeof t&&null!==t&&(t.$$typeof===_||t.$$typeof===v||t.$$typeof===c||t.$$typeof===f||t.$$typeof===p||t.$$typeof===m||t.$$typeof===w||t.$$typeof===g||t.$$typeof===y)},e.typeOf=x},function(t,e){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,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(223);e.createActionCreator=r.createActionCreator;var o=n(515);e.createActionCreators=o.createActionCreators;var i=n(516);e.proxyActionCreators=i.proxyActionCreators},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(223),o=n(224);e.createActionCreators=function(t,e){return o.createDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(223),o=n(360);e.proxyActionCreators=function(t,e){return o.proxyDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(225);e.createActionCreator=r.createActionCreator;var o=n(518);e.createActionCreators=o.createActionCreators;var i=n(519);e.proxyActionCreators=i.proxyActionCreators},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(225),o=n(224);e.createActionCreators=function(t,e){return o.createDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(225),o=n(360);e.proxyActionCreators=function(t,e){return o.proxyDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(226);e.combineUniqueObjects=function(...t){return r.combineObjects(...t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(361);e.proxyCombineUniqueObjects=function(...t){return r.proxyCombineObjects(...t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(177);e.createReducer=function(t,e){return function(n=t,o){return r.hasOwnProperty.call(e,o.type)?e[o.type](n,o):n}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";t.exports=n(390)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),o=n(7);function i(){}var a=n(45);function u(t,e,n){return function(r){return r.lift(new s(t,e,n))}}var s=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))},t}(),c=function(t){function e(e,n,r,o){var u=t.call(this,e)||this;return u._tapNext=i,u._tapError=i,u._tapComplete=i,u._tapError=r||i,u._tapComplete=o||i,Object(a.a)(n)?(u._context=u,u._tapNext=n):n&&(u._context=n,u._tapNext=n.next||i,u._tapError=n.error||i,u._tapComplete=n.complete||i),u}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(o.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(3),o=n(91),i=n(8),a=n(7),u=n(13);function s(){return function(t){return t.lift(new c(t))}}var c=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new f(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),l=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new u.a).add(this.source.subscribe(new p(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.a.EMPTY)),t},e.prototype.refCount=function(){return s()(this)},e}(i.a),h=function(){var t=l.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.b);a.a;var d=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();function b(){return new o.a}function v(){return function(t){return s()((e=b,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new d(r,n));var o=Object.create(t,h);return o.source=t,o.subjectFactory=r,o})(t));var e,n}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(108);function o(t,e){return e?Object(r.a)((function(){return t}),e):Object(r.a)((function(){return t}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(104);function o(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 i=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return r.a.apply(void 0,o(e.map((function(t){var e=t.apply(void 0,n);if(!e)throw new TypeError('combineEpics: one of the provided Epics "'+(t.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return e}))))};try{Object.defineProperty(i,"name",{value:"combineEpics("+e.map((function(t){return t.name||"<anonymous>"})).join(", ")+")"})}catch(t){}return i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=n(7);function i(){return function(t){return t.lift(new a)}}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.__extends(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(o.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));var r=n(3),o=n(112),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(o.a),a=n(111),u=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(a.a))(i),s=n(91),c=n(64),f=n(7),l=n(103);function h(t,e){return void 0===e&&(e=0),function(n){return n.lift(new p(t,e))}}var p=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.scheduler,this.delay))},t}(),d=function(t){function e(e,n,r){void 0===r&&(r=0);var o=t.call(this,e)||this;return o.scheduler=n,o.delay=r,o}return r.__extends(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new b(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(l.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(l.a.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(l.a.createComplete()),this.unsubscribe()},e}(f.a),b=function(){return function(t,e){this.notification=t,this.destination=e}}(),v=n(10),_=n(145),y=n(8),m=1,w=function(){return Promise.resolve()}(),g={};function x(t){return t in g&&(delete g[t],!0)}var O=function(t){var e=m++;return g[e]=!0,w.then((function(){return x(e)&&t()})),e},j=function(t){x(t)},k=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=O(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(j(n),e.scheduled=void 0)},e}(o.a),E=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<o&&(t=n.shift()));if(this.active=!1,e){for(;++r<o&&(t=n.shift());)t.unsubscribe();throw e}},e}(a.a))(k),S=n(146),P=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=E);var o=t.call(this)||this;return o.source=e,o.delayTime=n,o.scheduler=r,(!Object(S.a)(n)||n<0)&&(o.delayTime=0),r&&"function"==typeof r.schedule||(o.scheduler=E),o}return r.__extends(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=E),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(y.a);function C(t,e){return void 0===e&&(e=0),function(n){return n.lift(new A(t,e))}}var A=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new P(e,this.delay,this.scheduler).subscribe(t)},t}(),T=n(96),N=n(363),z=function(){function t(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)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var I=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.source=t,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),z(e,null,[{key:"of",value:function(){return new this(T.a.apply(void 0,arguments))}},{key:"from",value:function(t,e){return new this(Object(c.a)(t,e))}}]),z(e,[{key:"lift",value:function(t){var n=new e(this);return n.operator=t,n}},{key:"ofType",value:function(){return N.a.apply(void 0,arguments)(this)}}]),e}(y.a);var R=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(function(t){var e=r.__notifier.subscribe(t);return e&&!e.closed&&t.next(r.value),e})));return r.value=n,r.__notifier=new s.a,r.__subscription=t.subscribe((function(t){t!==r.value&&(r.value=t,r.__notifier.next(t))})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(y.a);function D(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=u.constructor,n=new e(u.SchedulerAction);var r=new s.a,o=void 0,i=function(e){o=e;var i=(new s.a).pipe(h(n)),a=(new s.a).pipe(h(n)),u=new I(i),f=new R(a,o.getState());return r.pipe(Object(v.a)((function(e){var n="dependencies"in t?e(u,f,t.dependencies):e(u,f);if(!n)throw new TypeError('Your root Epic "'+(e.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return n})),Object(_.a)((function(t){return Object(c.a)(t).pipe(C(n),h(n))}))).subscribe(o.dispatch),function(t){return function(e){var n=t(e);return a.next(o.getState()),i.next(e),n}}};return i.run=function(t){r.next(t)},i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),o=n(7),i=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),a=n(118);function u(t){return function(e){return 0===t?Object(a.b)():e.lift(new s(t))}}var s=function(){function t(t){if(this.total=t,this.total<0)throw new i}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.a)}]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/19.cadfd0fd.js b/plugins/saladict-ztools/ext-saladic/assets/19.cadfd0fd.js new file mode 100644 index 00000000..e3465c3c --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/19.cadfd0fd.js @@ -0,0 +1,44 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[19,20],[,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return l})),n.d(e,"__generator",(function(){return f})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return h})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return b})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return m})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return g})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return x})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return j})),n.d(e,"__classPrivateFieldGet",(function(){return S})),n.d(e,"__classPrivateFieldSet",(function(){return k})); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(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 f(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function d(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function h(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function m(t){return this instanceof m?(this.v=t,this):new m(t)}function _(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof m?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(t){l(o[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function g(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:m(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function j(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function k(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){var r; +/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&t.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(4),i=n(46),o=n(82),a=n(14),s=n(72),u=n(24),c=n(52),l=function(t){function e(n,r,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!n){a.destination=o.a;break}if("object"==typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new f(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new f(a,n,r,i)}return a}return r.__extends(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a.a),f=function(t){function e(e,n,r,a){var s,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==o.a&&(c=Object.create(n),Object(i.a)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=r,u._complete=a,u}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw t;Object(c.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(c.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(7);var i=n(72),o=n(82);var a=n(51),s=n(120);function u(t){return 0===t.length?s.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var c=n(24),l=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var a=this.operator,s=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)}(t,e,n);if(a?s.add(a.call(s,this.source)):s.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.a?i:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=f(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:u(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=f(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function f(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(60),i=n(119),o=n(46),a=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var l=0;l<n.length;++l){n[l].remove(this)}if(Object(o.a)(s))try{s.call(this)}catch(t){e=t instanceof a?u(t.errors):[t]}if(Object(r.a)(c)){l=-1;for(var f=c.length;++l<f;){var d=c[l];if(Object(i.a)(d))try{d.unsubscribe()}catch(t){e=e||[],t instanceof a?e=e.concat(u(t.errors)):e.push(t)}}}if(e)throw new a(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function u(t){return t.reduce((function(t,e){return t.concat(e instanceof a?e.errors:e)}),[])}},,function(t,e,n){"use strict";function r(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}e.a=function(t,e){var n;void 0===e&&(e=r);var i,o=[],a=!1;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return a&&n===this&&e(r,o)||(i=t.apply(this,r),a=!0,n=this,o=r),i}}},,function(t,e,n){"use strict";function r(){return(r=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)}n.d(e,"a",(function(){return r}))},,,,function(t,e,n){var r=n(207);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return U})),n.d(e,"d",(function(){return $})),n.d(e,"e",(function(){return Y})),n.d(e,"f",(function(){return V})),n.d(e,"c",(function(){return k}));var r=n(0),i=n.n(r),o=(n(26),i.a.createContext(null));var a=function(t){t()},s={notify:function(){}};function u(){var t=a,e=null,n=null;return{clear:function(){e=null,n=null},notify:function(){t((function(){for(var t=e;t;)t.callback(),t=t.next}))},get:function(){for(var t=[],n=e;n;)t.push(n),n=n.next;return t},subscribe:function(t){var r=!0,i=n={callback:t,next:null,prev:n};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var c=function(){function t(t,e){this.store=t,this.parentSub=e,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var e=t.prototype;return e.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},e.notifyNestedSubs=function(){this.listeners.notify()},e.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},e.isSubscribed=function(){return Boolean(this.unsubscribe)},e.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=u())},e.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},t}();var l=function(t){var e=t.store,n=t.context,a=t.children,s=Object(r.useMemo)((function(){var t=new c(e);return t.onStateChange=t.notifyNestedSubs,{store:e,subscription:t}}),[e]),u=Object(r.useMemo)((function(){return e.getState()}),[e]);Object(r.useEffect)((function(){var t=s.subscription;return t.trySubscribe(),u!==e.getState()&&t.notifyNestedSubs(),function(){t.tryUnsubscribe(),t.onStateChange=null}}),[s,u]);var l=n||o;return i.a.createElement(l.Provider,{value:s},a)},f=n(18),d=n(61),h=n(176),p=n.n(h),b=n(158),v="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,y=[],m=[null,null];function _(t,e){var n=t[1];return[e.payload,n+1]}function g(t,e,n){v((function(){return t.apply(void 0,e)}),n)}function w(t,e,n,r,i,o,a){t.current=r,e.current=i,n.current=!1,o.current&&(o.current=null,a())}function x(t,e,n,r,i,o,a,s,u,c){if(t){var l=!1,f=null,d=function(){if(!l){var t,n,d=e.getState();try{t=r(d,i.current)}catch(t){n=t,f=t}n||(f=null),t===o.current?a.current||u():(o.current=t,s.current=t,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var O=function(){return[null,0]};function j(t,e){void 0===e&&(e={});var n=e,a=n.getDisplayName,s=void 0===a?function(t){return"ConnectAdvanced("+t+")"}:a,u=n.methodName,l=void 0===u?"connectAdvanced":u,h=n.renderCountProp,v=void 0===h?void 0:h,j=n.shouldHandleStateChanges,S=void 0===j||j,k=n.storeKey,E=void 0===k?"store":k,C=(n.withRef,n.forwardRef),A=void 0!==C&&C,T=n.context,P=void 0===T?o:T,N=Object(d.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),R=P;return function(e){var n=e.displayName||e.name||"Component",o=s(n),a=Object(f.a)({},N,{getDisplayName:s,methodName:l,renderCountProp:v,shouldHandleStateChanges:S,storeKey:E,displayName:o,wrappedComponentName:n,WrappedComponent:e}),u=N.pure;var h=u?r.useMemo:function(t){return t()};function j(n){var o=Object(r.useMemo)((function(){var t=n.forwardedRef,e=Object(d.a)(n,["forwardedRef"]);return[n.context,t,e]}),[n]),s=o[0],u=o[1],l=o[2],p=Object(r.useMemo)((function(){return s&&s.Consumer&&Object(b.isContextConsumer)(i.a.createElement(s.Consumer,null))?s:R}),[s,R]),v=Object(r.useContext)(p),j=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(v)&&Boolean(v.store);var k=j?n.store:v.store,E=Object(r.useMemo)((function(){return function(e){return t(e.dispatch,a)}(k)}),[k]),C=Object(r.useMemo)((function(){if(!S)return m;var t=new c(k,j?null:v.subscription),e=t.notifyNestedSubs.bind(t);return[t,e]}),[k,j,v]),A=C[0],T=C[1],P=Object(r.useMemo)((function(){return j?v:Object(f.a)({},v,{subscription:A})}),[j,v,A]),N=Object(r.useReducer)(_,y,O),z=N[0][0],D=N[1];if(z&&z.error)throw z.error;var M=Object(r.useRef)(),I=Object(r.useRef)(l),L=Object(r.useRef)(),B=Object(r.useRef)(!1),F=h((function(){return L.current&&l===I.current?L.current:E(k.getState(),l)}),[k,z,l]);g(w,[I,M,B,l,F,L,T]),g(x,[S,k,A,E,I,M,B,L,T,D],[k,A,E]);var U=Object(r.useMemo)((function(){return i.a.createElement(e,Object(f.a)({},F,{ref:u}))}),[u,e,F]);return Object(r.useMemo)((function(){return S?i.a.createElement(p.Provider,{value:P},U):U}),[p,U,P])}var k=u?i.a.memo(j):j;if(k.WrappedComponent=e,k.displayName=o,A){var C=i.a.forwardRef((function(t,e){return i.a.createElement(k,Object(f.a)({},t,{forwardedRef:e}))}));return C.displayName=o,C.WrappedComponent=e,p()(C,e)}return p()(k,e)}}function S(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function k(t,e){if(S(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(e,n[i])||!S(t[n[i]],e[n[i]]))return!1;return!0}var E=n(104);function C(t){return function(e,n){var r=t(e,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function A(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function T(t,e){return function(e,n){n.displayName;var r=function(t,e){return r.dependsOnOwnProps?r.mapToProps(t,e):r.mapToProps(t)};return r.dependsOnOwnProps=!0,r.mapToProps=function(e,n){r.mapToProps=t,r.dependsOnOwnProps=A(t);var i=r(e,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=A(i),i=r(e,n)),i},r}}var P=[function(t){return"function"==typeof t?T(t):void 0},function(t){return t?void 0:C((function(t){return{dispatch:t}}))},function(t){return t&&"object"==typeof t?C((function(e){return Object(E.b)(t,e)})):void 0}];var N=[function(t){return"function"==typeof t?T(t):void 0},function(t){return t?void 0:C((function(){return{}}))}];function R(t,e,n){return Object(f.a)({},n,{},t,{},e)}var z=[function(t){return"function"==typeof t?function(t){return function(e,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(e,n,s){var u=t(e,n,s);return a?i&&o(u,r)||(r=u):(a=!0,r=u),r}}}(t):void 0},function(t){return t?void 0:function(){return R}}];function D(t,e,n,r){return function(i,o){return n(t(i,o),e(r,o),o)}}function M(t,e,n,r,i){var o,a,s,u,c,l=i.areStatesEqual,f=i.areOwnPropsEqual,d=i.areStatePropsEqual,h=!1;function p(i,h){var p,b,v=!f(h,a),y=!l(i,o);return o=i,a=h,v&&y?(s=t(o,a),e.dependsOnOwnProps&&(u=e(r,a)),c=n(s,u,a)):v?(t.dependsOnOwnProps&&(s=t(o,a)),e.dependsOnOwnProps&&(u=e(r,a)),c=n(s,u,a)):y?(p=t(o,a),b=!d(p,s),s=p,b&&(c=n(s,u,a)),c):c}return function(i,l){return h?p(i,l):(s=t(o=i,a=l),u=e(r,a),c=n(s,u,a),h=!0,c)}}function I(t,e){var n=e.initMapStateToProps,r=e.initMapDispatchToProps,i=e.initMergeProps,o=Object(d.a)(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(t,o),s=r(t,o),u=i(t,o);return(o.pure?M:D)(a,s,u,t,o)}function L(t,e,n){for(var r=e.length-1;r>=0;r--){var i=e[r](t);if(i)return i}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function B(t,e){return t===e}function F(t){var e=void 0===t?{}:t,n=e.connectHOC,r=void 0===n?j:n,i=e.mapStateToPropsFactories,o=void 0===i?N:i,a=e.mapDispatchToPropsFactories,s=void 0===a?P:a,u=e.mergePropsFactories,c=void 0===u?z:u,l=e.selectorFactory,h=void 0===l?I:l;return function(t,e,n,i){void 0===i&&(i={});var a=i,u=a.pure,l=void 0===u||u,p=a.areStatesEqual,b=void 0===p?B:p,v=a.areOwnPropsEqual,y=void 0===v?k:v,m=a.areStatePropsEqual,_=void 0===m?k:m,g=a.areMergedPropsEqual,w=void 0===g?k:g,x=Object(d.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),O=L(t,o,"mapStateToProps"),j=L(e,s,"mapDispatchToProps"),S=L(n,c,"mergeProps");return r(h,Object(f.a)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:O,initMapDispatchToProps:j,initMergeProps:S,pure:l,areStatesEqual:b,areOwnPropsEqual:y,areStatePropsEqual:_,areMergedPropsEqual:w},x))}}var U=F();function H(){return Object(r.useContext)(o)}function q(t){void 0===t&&(t=o);var e=t===o?H:function(){return Object(r.useContext)(t)};return function(){return e().store}}var V=q();function Z(t){void 0===t&&(t=o);var e=t===o?V:q(t);return function(){return e().dispatch}}var $=Z(),W=function(t,e){return t===e};function K(t){void 0===t&&(t=o);var e=t===o?H:function(){return Object(r.useContext)(t)};return function(t,n){void 0===n&&(n=W);var i=e();return function(t,e,n,i){var o,a=Object(r.useReducer)((function(t){return t+1}),0)[1],s=Object(r.useMemo)((function(){return new c(n,i)}),[n,i]),u=Object(r.useRef)(),l=Object(r.useRef)(),f=Object(r.useRef)();try{o=t!==l.current||u.current?t(n.getState()):f.current}catch(t){throw u.current&&(t.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),t}return v((function(){l.current=t,f.current=o,u.current=void 0})),v((function(){function t(){try{var t=l.current(n.getState());if(e(t,f.current))return;f.current=t}catch(t){u.current=t}a({})}return s.onStateChange=t,s.trySubscribe(),t(),function(){return s.tryUnsubscribe()}}),[n,s]),o}(t,n,i.store,i.subscription)}}var G,Y=K(),X=n(21);G=X.unstable_batchedUpdates,a=G},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(450)()},function(t,e,n){var r=n(345);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(219);var i=n(144),o=n(220);function a(t,e){return Object(r.a)(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)||Object(i.a)(t,e)||Object(o.a)()}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return l}));var r=n(0),i=n(95),o=n(141);function a(t){return t}function s(t){return Object(o.a)(0)(t)}function u(){return new i.a}function c(t){var e=Object(r.useRef)(!0),n=Object(r.useRef)(null);return e.current&&(e.current=!1,n.current=t()),n}function l(){var t=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return t(f)})).current}function f(t){return(t+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(133);var i=n(218),o=n(144);function a(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(i.a)(t)||Object(o.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(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(99),i=n(132),o=n(8);function a(t,e,n,a,s){if(void 0===s&&(s=new r.a(t,n,a)),!s.closed)return e instanceof o.a?e.subscribe(s):Object(i.a)(e)(s)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(7).a)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.a)},,,,,function(t,e,n){"use strict";function r(t,e=window){if(t){const e=t.toString().trim();if(e)return e}const n=e.document.activeElement;if(n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName)){const t=n;return t.value.slice(t.selectionStart||0,t.selectionEnd||0)}return""}function i(t=window){return r(t.getSelection(),t)}function o(t){if(!t||t.rangeCount<=0)return"";const e=t.toString();if(!e.trim())return"";const n=t.getRangeAt(0);return n?(function(t){if(t){const e=/[.?!。?!…]/,n=/[^\s.?!。?!…]/;for(let r=t.length-1;r>=0;r--){const i=t[r];if(e.test(i)){if("."===i&&n.test(t[r+1]))continue;return t.slice(r+1)}}}return t}(s(n))+e+function(t){const e=/^((\.(?![\s.?!。?!…]))|[^.?!。?!…])*([.?!。?!…]){0,3}/.exec(t);return e?e[0]:""}(u(n))).replace(/\s+/g," ").trim():""}function a(t=window){return o(t.getSelection())}function s(t){let e=t.startContainer,n="";switch(e.nodeType){case Node.TEXT_NODE:{const r=e.textContent;r&&(n=r.slice(0,t.startOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:e=e.childNodes[t.startOffset]}for(let t=e;l(t);t=t.parentElement)for(let e=t.previousSibling;l(e);e=e.previousSibling)n=c(e)+n;return n}function u(t){let e=t.endContainer,n="";switch(e.nodeType){case Node.TEXT_NODE:{const r=e.textContent;r&&(n=r.slice(t.endOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:e=e.childNodes[t.endOffset-1]}for(let t=e;l(t);t=t.parentElement)for(let e=t.nextSibling;l(e);e=e.nextSibling)n+=c(e);return n}function c(t){return t.nodeType===Node.TEXT_NODE?t.nodeValue||"":t.nodeType===Node.ELEMENT_NODE&&t.innerText||""}function l(t){if(!t)return!1;switch(t.nodeType){case Node.TEXT_NODE:case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:return!0;case Node.ELEMENT_NODE:switch(t.tagName){case"A":case"ABBR":case"B":case"BDI":case"BDO":case"BR":case"CITE":case"CODE":case"DATA":case"DFN":case"EM":case"I":case"KBD":case"MARK":case"Q":case"RP":case"RT":case"RTC":case"RUBY":case"S":case"SAMP":case"SMALL":case"SPAN":case"STRONG":case"SUB":case"SUP":case"TIME":case"U":case"VAR":case"WBR":return!0}}return!1}n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(482)},function(t,e,n){"use strict";function r(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 i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return i}))},,function(t,e,n){"use strict";var r=n(245),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===i.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function t(){var e={};function n(n,r){u(e[r])&&u(n)?e[r]=t(e[r],n):u(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return e},extend:function(t,e,n){return l(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(75),i=n(34);function o(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(i.a)(t):e}},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(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)}n.d(e,"a",(function(){return i}))},,function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(60),o=n(46),a=n(10);function s(t,e,n,u){return Object(o.a)(n)&&(u=n,n=void 0),u?s(t,e,n).pipe(Object(a.a)((function(t){return Object(i.a)(t)?u.apply(void 0,t):u(t)}))):new r.a((function(r){!function t(e,n,r,i,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),a=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,r),a=function(){return c.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,f=e.length;l<f;l++)t(e[l],n,r,i,o)}i.add(a)}(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(204),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(8),i=n(132),o=n(14),a=n(51);var s=n(98),u=n(70);var c=n(131),l=n(129);function f(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new r.a((function(n){var r=new o.a;return r.add(e.schedule((function(){var i=t[a.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a((function(n){var r=new o.a;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Object(l.a)(t))return Object(s.a)(t,e);if(function(t){return t&&"function"==typeof t[u.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,i=new o.a;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[u.a](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function d(t,e){return e?f(t,e):t instanceof r.a?t:new r.a(Object(i.a)(t))}},function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},a={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(r)},function(t,e,n){var r=n(123),i=n(312),o=n(313),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));var i=r()},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},,function(t,e,n){"use strict";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)}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(277),i=n(308),o=n(319),a=n(56);t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(60),o=n(46),a=n(10);function s(t,e,n){return n?s(t,e).pipe(Object(a.a)((function(t){return Object(i.a)(t)?n.apply(void 0,t):n(t)}))):new r.a((function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void n.error(t)}if(Object(o.a)(e))return function(){return e(i,r)}}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(24),i=n(52),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.value))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(i.a)},,function(t,e,n){"use strict";var r={};(0,n(68).assign)(r,n(300),n(303),n(202)),t.exports=r},,,function(t,e,n){var r=n(326),i=n(329);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){"use strict";var r=n(18),i=n(61),o=n(135);n(26);function a(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(0),u=n.n(s),c=n(21),l=n.n(c),f=!1,d=u.a.createContext(null),h=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var i,o=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?o?(i="exited",r.appearStatus="entering"):i="entered":i=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}Object(o.a)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(e="entering"):"entering"!==n&&"entered"!==n||(e="exiting")}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),"entering"===e?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,i=this.props.nodeRef?[r]:[l.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!t&&!n||f?this.safeSetState({status:"entered"},(function(){e.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:"entering"},(function(){e.props.onEntering(o,a),e.onTransitionEnd(u,(function(){e.safeSetState({status:"entered"},(function(){e.props.onEntered(o,a)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.a.findDOMNode(this);e&&!f?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:l.a.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,r=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Object(i.a)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return u.a.createElement(d.Provider,{value:null},"function"==typeof n?n(t,r):u.a.cloneElement(u.a.Children.only(n),r))},e}(u.a.Component);function p(){}h.contextType=d,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},h.UNMOUNTED="unmounted",h.EXITED="exited",h.ENTERING="entering",h.ENTERED="entered",h.EXITING="exiting";var b=h,v=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return r=e,void((n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},y=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var r=e.resolveArguments(t,n),i=r[0],o=r[1];e.removeClasses(i,"exit"),e.addClass(i,o?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.resolveArguments(t,n),i=r[0],o=r[1]?"appear":"enter";e.addClass(i,o,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.resolveArguments(t,n),i=r[0],o=r[1]?"appear":"enter";e.removeClasses(i,o),e.addClass(i,o,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+t:n[t];return{baseClassName:i,activeClassName:r?i+"-active":n[t+"Active"],doneClassName:r?i+"-done":n[t+"Done"]}},e}Object(o.a)(e,t);var n=e.prototype;return n.addClass=function(t,e,n){var r=this.getClassNames(e)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===e&&"done"===n&&i&&(r+=" "+i),"active"===n&&t&&t.scrollTop,r&&(this.appliedClasses[e][n]=r,function(t,e){t&&e&&e.split(" ").forEach((function(e){return r=e,void((n=t).classList?n.classList.add(r):function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(t,r))},n.removeClasses=function(t,e){var n=this.appliedClasses[e],r=n.base,i=n.active,o=n.done;this.appliedClasses[e]={},r&&v(t,r),i&&v(t,i),o&&v(t,o)},n.render=function(){var t=this.props,e=(t.classNames,Object(i.a)(t,["classNames"]));return u.a.createElement(b,Object(r.a)({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(u.a.Component);y.defaultProps={classNames:""},y.propTypes={};e.a=y},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return f}));var r=n(4),i=n(8),o=n(7),a=n(14),s=n(73),u=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(a.a),c=n(72),l=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.__extends(e,t),e}(o.a),f=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.__extends(e,t),e.prototype[c.a]=function(){return new l(this)},e.prototype.lift=function(t){var e=new d(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new s.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),a.a.EMPTY):this.isStopped?(t.complete(),a.a.EMPTY):(this.observers.push(t),new u(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new d(t,e)},e}(i.a),d=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.__extends(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):a.a.EMPTY},e}(f)},function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(8),i=n(14);function o(t,e){return new r.a((function(n){var r=new i.a,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(7).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(102),i=n(137);function o(){return Object(i.a)(1)}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o()(r.a.apply(void 0,t))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(65),i=n(106),o=n(98);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r.a)(n)?(t.pop(),Object(o.a)(t,n)):Object(i.a)(t)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return s}));var r=n(238),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function a(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function s(t,e,n){var i;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var u=t,c=e,l=[],f=l,d=!1;function h(){f===l&&(f=l.slice())}function p(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function b(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var e=!0;return h(),f.push(t),function(){if(e){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");e=!1,h();var n=f.indexOf(t);f.splice(n,1),l=null}}}function v(t){if(!a(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,c=u(c,t)}finally{d=!1}for(var e=l=f,n=0;n<e.length;n++){(0,e[n])()}return t}function y(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");u=t,v({type:o.REPLACE})}function m(){var t,e=b;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(p())}return n(),{unsubscribe:e(n)}}})[r.a]=function(){return this},t}return v({type:o.INIT}),(i={dispatch:v,subscribe:b,getState:p,replaceReducer:y})[r.a]=m,i}function u(t,e){return function(){return e(t.apply(this,arguments))}}function c(t,e){if("function"==typeof t)return u(t,e);if("object"!=typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in t){var i=t[r];"function"==typeof i&&(n[r]=u(i,e))}return n}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(n,!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function p(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=e.map((function(t){return t(i)}));return d({},n,{dispatch:r=h.apply(void 0,o)(n.dispatch)})}}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),i=n(130),o=n(98);function a(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}},,function(t,e,n){var r=n(69),i=n(56),o=n(64);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r,i=n(124),o=n(102),a=n(8);function s(t){var e=t.error;t.subscriber.error(e)}r||(r={});var u=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return Object(o.a)(this.value);case"E":return t=this.error,e?new a.a((function(n){return e.schedule(s,0,{error:t,subscriber:n})})):new a.a((function(e){return e.error(t)}));case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(65),o=n(137),a=n(106);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,s=null,u=t[t.length-1];return Object(i.a)(u)?(s=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(n)(Object(a.a)(t,s))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(118),i=new(n(117).a)(r.a)},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(151);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),o=function(t){function e(n,r){void 0===r&&(r=i.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.__extends(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(14).a))},function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(4),i=n(37),o=n(99),a=n(36),s=n(10),u=n(67);function c(t,e){return"function"==typeof e?function(n){return n.pipe(c((function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new l(t))}}var l=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new o.a(this,e,n),s=this.destination;s.add(i),this.innerSubscription=Object(a.a)(this,t,void 0,void 0,i),this.innerSubscription!==i&&s.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(i.a)},,function(t,e,n){var r=n(66).Symbol;t.exports=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(8),i=new r.a((function(t){return t.complete()}));function o(t){return t?function(t){return new r.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(30);function o(t,e){var n=Object(i.e)(i.a),o=Object(i.e)((function(){return t(n.current)}));return[Object(r.useRef)((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];n.current.next(e?e(t):t[0])})).current,o.current]}},function(t,e,n){var r=n(93)(Object,"create");t.exports=r},function(t,e,n){var r=n(163);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(340);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(130),i=n(52),o=n(70),a=n(51),s=n(129),u=n(131),c=n(119),l=function(t){if(t&&"function"==typeof t[a.a])return l=t,function(t){var e=l[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(s.a)(t))return Object(r.a)(t);if(Object(u.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,l,f=Object(c.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+f+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(t,e,n){"use strict";function r(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.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(37),o=n(36);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new s(r,n))}}var s=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observables,this.project))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var a=n.length;i.values=new Array(a);for(var s=0;s<a;s++)i.toRespond.push(s);for(s=0;s<a;s++){var u=n[s];i.add(Object(o.a)(i,u,u,s))}return i}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),i=n(405),o=n(30);function a(t,e){if(!e)return Object(o.e)(t).current;var n=Object(o.e)((function(){return new i.a(e)})),a=Object(o.e)((function(){return t(n.current)})),s=Object(r.useRef)(!0);return Object(r.useEffect)((function(){s.current?s.current=!1:n.current.next(e)}),e),a.current}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(152),i=n(120);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(i.a,t)}},,function(t,e,n){ +/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */ +t.exports=function(){"use strict";var t=Object.hasOwnProperty,e=Object.setPrototypeOf,n=Object.isFrozen,r=Object.keys,i=Object.freeze,o=Object.seal,a=Object.create,s="undefined"!=typeof Reflect&&Reflect,u=s.apply,c=s.construct;u||(u=function(t,e,n){return t.apply(e,n)}),i||(i=function(t){return t}),o||(o=function(t){return t}),c||(c=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=j(Array.prototype.forEach),f=j(Array.prototype.indexOf),d=j(Array.prototype.join),h=j(Array.prototype.pop),p=j(Array.prototype.push),b=j(Array.prototype.slice),v=j(String.prototype.toLowerCase),y=j(String.prototype.match),m=j(String.prototype.replace),_=j(String.prototype.indexOf),g=j(String.prototype.trim),w=j(RegExp.prototype.test),x=S(RegExp),O=S(TypeError);function j(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 u(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 c(t,n)}}function k(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 E(e){var n=a(null),r=void 0;for(r in e)u(t,e,[r])&&(n[r]=e[r]);return n}var C=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"]),A=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"]),T=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=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"]),N=i(["#text"]),R=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"]),z=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","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","systemlanguage","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"]),D=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"]),M=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),I=o(/\{\{[\s\S]*|[\s\S]*\}\}/gm),L=o(/<%[\s\S]*|[\s\S]*%>/gm),B=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),H=o(/^(?:\w+script|data):/i),q=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 Z(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 $=function(){return"undefined"==typeof window?null:window},W=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]:$(),n=function(e){return t(e)};if(n.version="2.0.17",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,c=e.HTMLTemplateElement,j=e.Node,S=e.NodeFilter,K=e.NamedNodeMap,G=void 0===K?e.NamedNodeMap||e.MozNamedAttrMap:K,Y=e.Text,X=e.Comment,J=e.DOMParser,Q=e.trustedTypes;if("function"==typeof c){var tt=s.createElement("template");tt.content&&tt.content.ownerDocument&&(s=tt.content.ownerDocument)}var et=W(Q,o),nt=et&&Dt?et.createHTML(""):"",rt=s,it=rt.implementation,ot=rt.createNodeIterator,at=rt.getElementsByTagName,st=rt.createDocumentFragment,ut=o.importNode,ct={};try{ct=E(s).documentMode?s.documentMode:{}}catch(t){}var lt={};n.isSupported=it&&void 0!==it.createHTMLDocument&&9!==ct;var ft=I,dt=L,ht=B,pt=F,bt=H,vt=q,yt=U,mt=null,_t=k({},[].concat(Z(C),Z(A),Z(T),Z(P),Z(N))),gt=null,wt=k({},[].concat(Z(R),Z(z),Z(D),Z(M))),xt=null,Ot=null,jt=!0,St=!0,kt=!1,Et=!1,Ct=!1,At=!1,Tt=!1,Pt=!1,Nt=!1,Rt=!1,zt=!1,Dt=!1,Mt=!0,It=!0,Lt=!1,Bt={},Ft=k({},["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,Ht=k({},["audio","video","img","source","image","track"]),qt=null,Vt=k({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Zt=null,$t=s.createElement("form"),Wt=function(t){Zt&&Zt===t||(t&&"object"===(void 0===t?"undefined":V(t))||(t={}),t=E(t),mt="ALLOWED_TAGS"in t?k({},t.ALLOWED_TAGS):_t,gt="ALLOWED_ATTR"in t?k({},t.ALLOWED_ATTR):wt,qt="ADD_URI_SAFE_ATTR"in t?k(E(Vt),t.ADD_URI_SAFE_ATTR):Vt,Ut="ADD_DATA_URI_TAGS"in t?k(E(Ht),t.ADD_DATA_URI_TAGS):Ht,xt="FORBID_TAGS"in t?k({},t.FORBID_TAGS):{},Ot="FORBID_ATTR"in t?k({},t.FORBID_ATTR):{},Bt="USE_PROFILES"in t&&t.USE_PROFILES,jt=!1!==t.ALLOW_ARIA_ATTR,St=!1!==t.ALLOW_DATA_ATTR,kt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Et=t.SAFE_FOR_JQUERY||!1,Ct=t.SAFE_FOR_TEMPLATES||!1,At=t.WHOLE_DOCUMENT||!1,Nt=t.RETURN_DOM||!1,Rt=t.RETURN_DOM_FRAGMENT||!1,zt=t.RETURN_DOM_IMPORT||!1,Dt=t.RETURN_TRUSTED_TYPE||!1,Pt=t.FORCE_BODY||!1,Mt=!1!==t.SANITIZE_DOM,It=!1!==t.KEEP_CONTENT,Lt=t.IN_PLACE||!1,yt=t.ALLOWED_URI_REGEXP||yt,Ct&&(St=!1),Rt&&(Nt=!0),Bt&&(mt=k({},[].concat(Z(N))),gt=[],!0===Bt.html&&(k(mt,C),k(gt,R)),!0===Bt.svg&&(k(mt,A),k(gt,z),k(gt,M)),!0===Bt.svgFilters&&(k(mt,T),k(gt,z),k(gt,M)),!0===Bt.mathMl&&(k(mt,P),k(gt,D),k(gt,M))),t.ADD_TAGS&&(mt===_t&&(mt=E(mt)),k(mt,t.ADD_TAGS)),t.ADD_ATTR&&(gt===wt&&(gt=E(gt)),k(gt,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&k(qt,t.ADD_URI_SAFE_ATTR),It&&(mt["#text"]=!0),At&&k(mt,["html","head","body"]),mt.table&&(k(mt,["tbody"]),delete xt.tbody),i&&i(t),Zt=t)},Kt=function(t){p(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.outerHTML=nt}},Gt=function(t,e){try{p(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){p(n.removed,{attribute:null,from:e})}e.removeAttribute(t)},Yt=function(t){var e=void 0,n=void 0;if(Pt)t="<remove></remove>"+t;else{var r=y(t,/^[\r\n\t ]+/);n=r&&r[0]}var i=et?et.createHTML(t):t;try{e=(new J).parseFromString(i,"text/html")}catch(t){}if(a&&k(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,At?"html":"body")[0]};n.isSupported&&function(){try{var t=Yt("<x/><title></title><img>");w(/<\/title/,t.querySelector("title").innerHTML)&&(a=!0)}catch(t){}}();var Xt=function(t){return ot.call(t.ownerDocument||t,t,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT,(function(){return S.FILTER_ACCEPT}),!1)},Jt=function(t){return!(t instanceof Y||t instanceof X||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof G&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI)},Qt=function(t){return"object"===(void 0===j?"undefined":V(j))?t instanceof j:t&&"object"===(void 0===t?"undefined":V(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},te=function(t,e,r){lt[t]&&l(lt[t],(function(t){t.call(n,e,r,Zt)}))},ee=function(t){var e=void 0;if(te("beforeSanitizeElements",t,null),Jt(t))return Kt(t),!0;if(y(t.nodeName,/[\u0080-\uFFFF]/))return Kt(t),!0;var r=v(t.nodeName);if(te("uponSanitizeElement",t,{tagName:r,allowedTags:mt}),("svg"===r||"math"===r)&&0!==t.querySelectorAll("p, br, form, table").length)return Kt(t),!0;if(!mt[r]||xt[r]){if(It&&!Ft[r]&&"function"==typeof t.insertAdjacentHTML)try{var i=t.innerHTML;t.insertAdjacentHTML("AfterEnd",et?et.createHTML(i):i)}catch(t){}return Kt(t),!0}return"noscript"===r&&w(/<\/noscript/i,t.innerHTML)||"noembed"===r&&w(/<\/noembed/i,t.innerHTML)?(Kt(t),!0):(!Et||Qt(t.firstElementChild)||Qt(t.content)&&Qt(t.content.firstElementChild)||!w(/</g,t.textContent)||(p(n.removed,{element:t.cloneNode()}),t.innerHTML?t.innerHTML=m(t.innerHTML,/</g,"<"):t.innerHTML=m(t.textContent,/</g,"<")),Ct&&3===t.nodeType&&(e=t.textContent,e=m(e,ft," "),e=m(e,dt," "),t.textContent!==e&&(p(n.removed,{element:t.cloneNode()}),t.textContent=e)),te("afterSanitizeElements",t,null),!1)},ne=function(t,e,n){if(Mt&&("id"===e||"name"===e)&&(n in s||n in $t))return!1;if(St&&w(ht,e));else if(jt&&w(pt,e));else{if(!gt[e]||Ot[e])return!1;if(qt[e]);else if(w(yt,m(n,vt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==_(n,"data:")||!Ut[t])if(kt&&!w(bt,m(n,vt,"")));else if(n)return!1}return!0},re=function(t){var e=void 0,i=void 0,o=void 0,a=void 0,s=void 0;te("beforeSanitizeAttributes",t,null);var u=t.attributes;if(u){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:gt};for(s=u.length;s--;){var l=e=u[s],p=l.name,y=l.namespaceURI;if(i=g(e.value),o=v(p),c.attrName=o,c.attrValue=i,c.keepAttr=!0,c.forceKeepAttr=void 0,te("uponSanitizeAttribute",t,c),i=c.attrValue,!c.forceKeepAttr){if("name"===o&&"IMG"===t.nodeName&&u.id)a=u.id,u=b(u,[]),Gt("id",t),Gt(p,t),f(u,a)>s&&t.setAttribute("id",a.value);else{if("INPUT"===t.nodeName&&"type"===o&&"file"===i&&c.keepAttr&&(gt[o]||!Ot[o]))continue;"id"===p&&t.setAttribute(p,""),Gt(p,t)}if(c.keepAttr)if(Et&&w(/\/>/i,i))Gt(p,t);else if(w(/svg|math/i,t.namespaceURI)&&w(x("</("+d(r(Ft),"|")+")","i"),i))Gt(p,t);else{Ct&&(i=m(i,ft," "),i=m(i,dt," "));var _=t.nodeName.toLowerCase();if(ne(_,o,i))try{y?t.setAttributeNS(y,p,i):t.setAttribute(p,i),h(n.removed)}catch(t){}}}}te("afterSanitizeAttributes",t,null)}},ie=function t(e){var n=void 0,r=Xt(e);for(te("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)te("uponSanitizeShadowNode",n,null),ee(n)||(n.content instanceof u&&t(n.content),re(n));te("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t,r){var i=void 0,a=void 0,s=void 0,c=void 0,l=void 0;if(t||(t="\x3c!--\x3e"),"string"!=typeof t&&!Qt(t)){if("function"!=typeof t.toString)throw O("toString is not a function");if("string"!=typeof(t=t.toString()))throw O("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(Qt(t))return e.toStaticHTML(t.outerHTML)}return t}if(Tt||Wt(r),n.removed=[],"string"==typeof t&&(Lt=!1),Lt);else if(t instanceof j)1===(a=(i=Yt("\x3c!--\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!Nt&&!Ct&&!At&&-1===t.indexOf("<"))return et&&Dt?et.createHTML(t):t;if(!(i=Yt(t)))return Nt?null:nt}i&&Pt&&Kt(i.firstChild);for(var f=Xt(Lt?t:i);s=f.nextNode();)3===s.nodeType&&s===c||ee(s)||(s.content instanceof u&&ie(s.content),re(s),c=s);if(c=null,Lt)return t;if(Nt){if(Rt)for(l=st.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return zt&&(l=ut.call(o,l,!0)),l}var d=At?i.outerHTML:i.innerHTML;return Ct&&(d=m(d,ft," "),d=m(d,dt," ")),et&&Dt?et.createHTML(d):d},n.setConfig=function(t){Wt(t),Tt=!0},n.clearConfig=function(){Zt=null,Tt=!1},n.isValidAttribute=function(t,e,n){Zt||Wt({});var r=v(t),i=v(e);return ne(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&(lt[t]=lt[t]||[],p(lt[t],e))},n.removeHook=function(t){lt[t]&&h(lt[t])},n.removeHooks=function(t){lt[t]&&(lt[t]=[])},n.removeAllHooks=function(){lt={}},n}()}()},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(10);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Object(r.a)(o(t,n))(e)}}function o(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}},,function(t,e,n){var r=n(334),i=n(335),o=n(336),a=n(337),s=n(338);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(133);function i(t,e){if(t){if("string"==typeof t)return Object(r.a)(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)?Object(r.a)(t,e):void 0}}},,,,,function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(56),i=n(168),o=n(320),a=n(261);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(4),i=n(36),o=n(37),a=n(99),s=n(10),u=n(67);function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c((function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new l(t,n))})}var l=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project,this.concurrent))},t}(),f=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new a.a(this,e,n),o=this.destination;o.add(r);var s=Object(i.a)(this,t,void 0,void 0,r);s!==r&&o.add(s)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(60);function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},function(t,e,n){var r=n(208),i=n(213),o=n(452);t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}},,function(t,e,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(t,e,n){var r=n(278),i=n(316),o=n(162);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e,n){"use strict";t.exports=n(569)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(114),o=n(153),a=n(65);function s(t,e,n){void 0===t&&(t=0);var s=-1;return Object(o.a)(e)?s=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=i.a),new r.a((function(e){var r=Object(o.a)(t)?t:+t-n.now();return n.schedule(u,r,{index:0,period:s,subscriber:e})}))}function u(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=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){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(206),i=n(161);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},,,,,function(t,e,n){var r=n(56),i=n(151),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(323),i=n(339),o=n(341),a=n(342),s=n(343);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(93)(n(66),"Map");t.exports=r},,,,,,function(t,e,n){"use strict";var r=n(158),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(t){return r.isMemo(t)?a:s[t.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&t(e,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(e),b=u(n),v=0;v<a.length;++v){var y=a[v];if(!(o[y]||r&&r[y]||b&&b[y]||s&&s[y])){var m=d(n,y);try{c(e,y,m)}catch(t){}}}}return e}},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(i.a)},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasOwnProperty=Object.prototype.hasOwnProperty},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Object(r.a)(t,e,n[e])}))}return t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i=n(114);var o=n(7),a=n(111);function s(t,e){void 0===e&&(e=i.a);var n,r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new u(r,e))}}var u=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.__extends(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new l(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()},e}(o.a),l=function(){return function(t,e){this.time=t,this.notification=e}}()},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.ResizeReporter=void 0;const a=o(n(0)),s=(n(640),{overflow:"hidden",position:"absolute",zIndex:-1e3,top:0,right:0,width:"100%",height:"100%",opacity:0,pointerEvents:"none"}),u={transition:"0s",animation:"none"},c={transition:"0s",animation:"none",width:"250%",height:"250%"};class l extends a.PureComponent{constructor(){super(...arguments),this.containerRef=a.default.createRef(),this.lastWidth=-1,this.lastHeight=-1,this.resetPosition=(t,e,n)=>{const r=t.firstChild,i=r.nextSibling,o=r.firstChild;o.style.width=e+1e3+"px",o.style.height=n+1e3+"px",this._setScrollPositionTicket=window.setTimeout(()=>{r.scrollLeft=e+1e3,r.scrollTop=n+1e3,i.scrollLeft=2.5*e,i.scrollTop=2.5*n},0)},this.checkSize=()=>{if(this.containerRef.current){const t=this.containerRef.current.parentElement;if(t){const e=t.getBoundingClientRect(),{width:n,height:r}=e;this.props.onSizeChanged&&(n===this.lastWidth&&r===this.lastHeight||this.props.onSizeChanged(n,r,e)),this.props.onWidthChanged&&n!==this.lastWidth&&this.props.onWidthChanged(n,e),this.props.onHeightChanged&&r!==this.lastHeight&&this.props.onHeightChanged(r,e),this.resetPosition(this.containerRef.current,n,r),this.lastWidth=n,this.lastHeight=r}}},this.onScroll=()=>{this._debounceTicket&&(window.clearTimeout(this._debounceTicket),this._debounceTicket=null),this._debounceTicket=window.setTimeout(this.checkSize,this.props.debounce||0)}}componentDidMount(){if(this.containerRef.current){const t=this.containerRef.current.parentElement;if(t)if(this.props.reportInit)this.checkSize();else{const e=t.getBoundingClientRect();this.lastWidth=e.width,this.lastHeight=e.height,this.resetPosition(this.containerRef.current,this.lastWidth,this.lastHeight)}}}componentWillUnmount(){this._debounceTicket&&(window.clearTimeout(this._debounceTicket),this._debounceTicket=null),this._setScrollPositionTicket&&(window.clearTimeout(this._setScrollPositionTicket),this._setScrollPositionTicket=null)}render(){const{reportInit:t,debounce:e,onSizeChanged:n,onWidthChanged:r,onHeightChanged:i,children:o,...l}=this.props;return a.default.createElement("div",Object.assign({"aria-hidden":!0,"aria-label":"react-resize-reporter",tabIndex:-1},l,{ref:this.containerRef}),a.default.createElement("div",{style:s,onScroll:this.onScroll},a.default.createElement("div",{style:u})),a.default.createElement("div",{style:s,onScroll:this.onScroll},a.default.createElement("div",{style:c})),o)}}e.ResizeReporter=l,e.default=l},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(30),i=n(0);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Object(i.useRef)(t);n.current=t;var o=Object(r.d)(),a=Object(i.useRef)(),s=Object(i.useRef)();if(Object(i.useEffect)((function(){s.current=null;var t=n.current[0],e=t.subscribe({next:function(e){if(t===n.current[0])return n.current[1]?n.current[1](e):void 0},error:function(e){if(t===n.current[0]){if(n.current[2])return s.current=null,n.current[2](e);s.current=e,o()}},complete:function(){if(t===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=e,function(){e.unsubscribe()}}),[t[0]]),s.current)throw s.current;return a}},,,,,,,,function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},function(t,e,n){"use strict";var r=n(68),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,e.string2buf=function(t){var e,n,i,o,a,s=t.length,u=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(u),a=0,o=0;a<u;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[a++]=n:n<2048?(e[a++]=192|n>>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},e.buf2string=function(t,e){var n,r,i,o,s=e||t.length,c=new Array(2*s);for(r=0,n=0;n<s;)if((i=t[n++])<128)c[r++]=i;else if((o=a[i])>4)c[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<s;)i=i<<6|63&t[n++],o--;o>1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return u(c,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,n){var r=n(311),i=n(64),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},function(t,e,n){(function(t){var r=n(66),i=n(314),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;t.exports=u}).call(this,n(188)(t))},function(t,e,n){var r=n(69),i=n(115);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(150),i=n(116);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(228);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},,,,,function(t,e,n){var r=n(309),i=n(157);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var r=n(315),i=n(258),o=n(259),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=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,n){var r=n(460),i=n(64);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,"a",(function(){return r}))},function(t,e,n){var r;!function(i,o){"use strict";var a="model",s="name",u="type",c="vendor",l="version",f="mobile",d="tablet",h="smarttv",p=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},b=function(t,e){return"string"==typeof t&&-1!==v(e).indexOf(v(t))},v=function(t){return t.toLowerCase()},y=function(t,e){if("string"==typeof t)return t=t.replace(/^\s\s*/,""),void 0===e?t:t.substring(0,350)},m=function(t,e){for(var n,r,i,o,a,s,u=0;u<e.length&&!a;){var c=e[u],l=e[u+1];for(n=r=0;n<c.length&&!a;)if(a=c[n++].exec(t))for(i=0;i<l.length;i++)s=a[++r],"object"==typeof(o=l[i])&&o.length>0?2===o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3===o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4===o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;u+=2}},_=function(t,e){for(var n in e)if("object"==typeof e[n]&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(b(e[n][r],t))return"?"===n?void 0:n}else if(b(e[n],t))return"?"===n?void 0:n;return t},g={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},w={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,l],[/opios[\/ ]+([\w\.]+)/i],[l,[s,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[l,[s,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[s,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[s,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[s,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[s,"IE"]],[/yabrowser\/([\w\.]+)/i],[l,[s,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],l],[/\bfocus\/([\w\.]+)/i],[l,[s,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[l,[s,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[s,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[s,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[l,[s,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 Browser"]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],l],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[s,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,"Facebook"],l],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[s,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[s,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[s,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[s,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[l,_,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[s,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[s,l],[/(cobalt)\/([\w\.]+)/i],[s,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",v]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",v]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",v]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[c,"Samsung"],[u,d]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[c,"Samsung"],[u,f]],[/\((ip(?:hone|od)[\w ]*);/i],[a,[c,"Apple"],[u,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[c,"Apple"],[u,d]],[/(macintosh);/i],[a,[c,"Apple"]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[c,"Huawei"],[u,d]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[c,"Huawei"],[u,f]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[c,"Xiaomi"],[u,f]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[c,"Xiaomi"],[u,d]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[c,"OPPO"],[u,f]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[c,"Vivo"],[u,f]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[c,"Realme"],[u,f]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[c,"Motorola"],[u,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[c,"Motorola"],[u,d]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[c,"LG"],[u,d]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[c,"LG"],[u,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[c,"Lenovo"],[u,d]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[c,"Nokia"],[u,f]],[/(pixel c)\b/i],[a,[c,"Google"],[u,d]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[c,"Google"],[u,f]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[c,"Sony"],[u,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[c,"Sony"],[u,d]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[c,"OnePlus"],[u,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[c,"Amazon"],[u,d]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[c,"Amazon"],[u,f]],[/(playbook);[-\w\),; ]+(rim)/i],[a,c,[u,d]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[c,"BlackBerry"],[u,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[c,"ASUS"],[u,d]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[c,"ASUS"],[u,f]],[/(nexus 9)/i],[a,[c,"HTC"],[u,d]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[c,[a,/_/g," "],[u,f]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[c,"Acer"],[u,d]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[c,"Meizu"],[u,f]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[c,"Sharp"],[u,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[c,a,[u,f]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[c,a,[u,d]],[/(surface duo)/i],[a,[c,"Microsoft"],[u,d]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[c,"Fairphone"],[u,f]],[/(u304aa)/i],[a,[c,"AT&T"],[u,f]],[/\bsie-(\w*)/i],[a,[c,"Siemens"],[u,f]],[/\b(rct\w+) b/i],[a,[c,"RCA"],[u,d]],[/\b(venue[\d ]{2,7}) b/i],[a,[c,"Dell"],[u,d]],[/\b(q(?:mv|ta)\w+) b/i],[a,[c,"Verizon"],[u,d]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[c,"Barnes & Noble"],[u,d]],[/\b(tm\d{3}\w+) b/i],[a,[c,"NuVision"],[u,d]],[/\b(k88) b/i],[a,[c,"ZTE"],[u,d]],[/\b(nx\d{3}j) b/i],[a,[c,"ZTE"],[u,f]],[/\b(gen\d{3}) b.+49h/i],[a,[c,"Swiss"],[u,f]],[/\b(zur\d{3}) b/i],[a,[c,"Swiss"],[u,d]],[/\b((zeki)?tb.*\b) b/i],[a,[c,"Zeki"],[u,d]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[c,"Dragon Touch"],a,[u,d]],[/\b(ns-?\w{0,9}) b/i],[a,[c,"Insignia"],[u,d]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[c,"NextBook"],[u,d]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[c,"Voice"],a,[u,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[c,"LvTel"],a,[u,f]],[/\b(ph-1) /i],[a,[c,"Essential"],[u,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[c,"Envizen"],[u,d]],[/\b(trio[-\w\. ]+) b/i],[a,[c,"MachSpeed"],[u,d]],[/\btu_(1491) b/i],[a,[c,"Rotor"],[u,d]],[/(shield[\w ]+) b/i],[a,[c,"Nvidia"],[u,d]],[/(sprint) (\w+)/i],[c,a,[u,f]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[c,"Microsoft"],[u,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[c,"Zebra"],[u,d]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[c,"Zebra"],[u,f]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[c,a,[u,"console"]],[/droid.+; (shield) bui/i],[a,[c,"Nvidia"],[u,"console"]],[/(playstation [345portablevi]+)/i],[a,[c,"Sony"],[u,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[c,"Microsoft"],[u,"console"]],[/smart-tv.+(samsung)/i],[c,[u,h]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[c,"Samsung"],[u,h]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[c,"LG"],[u,h]],[/(apple) ?tv/i],[c,[a,"Apple TV"],[u,h]],[/crkey/i],[[a,"Chromecast"],[c,"Google"],[u,h]],[/droid.+aft(\w)( bui|\))/i],[a,[c,"Amazon"],[u,h]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[c,"Sharp"],[u,h]],[/(bravia[\w ]+)( bui|\))/i],[a,[c,"Sony"],[u,h]],[/(mitv-\w{5}) bui/i],[a,[c,"Xiaomi"],[u,h]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[c,y],[a,y],[u,h]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,h]],[/((pebble))app/i],[c,a,[u,"wearable"]],[/droid.+; (glass) \d/i],[a,[c,"Google"],[u,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[a,[c,"Zebra"],[u,"wearable"]],[/(quest( 2)?)/i],[a,[c,"Facebook"],[u,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[c,[u,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[u,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[u,d]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,d]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,f]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[c,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[s,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[s,[l,_,g]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,"Windows"],[l,_,g]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,"Mac OS"],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,l],[/\(bb(10);/i],[l,[s,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[s,"webOS"]],[/crkey\/([\d\.]+)/i],[l,[s,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[s,"Chromium OS"],l],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,l],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[s,l]]},x=function(t,e){if("object"==typeof t&&(e=t,t=void 0),!(this instanceof x))return new x(t,e).getResult();var n=t||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=e?function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n}(w,e):w;return this.getBrowser=function(){var t,e={};return e[s]=void 0,e[l]=void 0,m.call(e,n,r.browser),e.major="string"==typeof(t=e.version)?t.replace(/[^\d\.]/g,"").split(".")[0]:void 0,e},this.getCPU=function(){var t={architecture:void 0};return m.call(t,n,r.cpu),t},this.getDevice=function(){var t={vendor:void 0,model:void 0,type:void 0};return m.call(t,n,r.device),t},this.getEngine=function(){var t={name:void 0,version:void 0};return m.call(t,n,r.engine),t},this.getOS=function(){var t={name:void 0,version:void 0};return m.call(t,n,r.os),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(t){return n="string"==typeof t&&t.length>350?y(t,350):t,this},this.setUA(n),this};x.VERSION="0.7.33",x.BROWSER=p([s,l,"major"]),x.CPU=p(["architecture"]),x.DEVICE=p([a,c,u,"console",f,h,d,"wearable","embedded"]),x.ENGINE=x.OS=p([s,l]),void 0!==e?(void 0!==t&&t.exports&&(e=t.exports=x),e.UAParser=x):n(348)?void 0===(r=function(){return x}.call(e,n,e,t))||(t.exports=r):void 0!==i&&(i.UAParser=x);var O=void 0!==i&&(i.jQuery||i.Zepto);if(O&&!O.ua){var j=new x;O.ua=j.getResult(),O.ua.get=function(){return j.getUA()},O.ua.set=function(t){j.setUA(t);var e=j.getResult();for(var n in e)O.ua[n]=e[n]}}}("object"==typeof window?window:this)},function(t,e,n){var r=n(498),i=n(499);t.exports=function(t,e,n){var o=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[o+s]=a[s];return e||i(a)}},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(21),a=n(26),s=n.n(a),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t,e){return t(e={exports:{}},e.exports),e.exports}var l=c((function(t){function e(){return t.exports=e=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},e.apply(this,arguments)}t.exports=e})),f=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(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)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()},d=function(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++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},h=c((function(t){!function(e){var n=function(t,e,r){if(!u(e)||l(e)||f(e)||d(e)||s(e))return e;var i,o=0,a=0;if(c(e))for(i=[],a=e.length;o<a;o++)i.push(n(t,e[o],r));else for(var h in i={},e)Object.prototype.hasOwnProperty.call(e,h)&&(i[t(h,r)]=n(t,e[h],r));return i},r=function(t){return h(t)?t:(t=t.replace(/[\-_\s]+(.)?/g,(function(t,e){return e?e.toUpperCase():""}))).substr(0,1).toLowerCase()+t.substr(1)},i=function(t){var e=r(t);return e.substr(0,1).toUpperCase()+e.substr(1)},o=function(t,e){return function(t,e){var n=(e=e||{}).separator||"_",r=e.split||/(?=[A-Z])/;return t.split(r).join(n)}(t,e).toLowerCase()},a=Object.prototype.toString,s=function(t){return"function"==typeof t},u=function(t){return t===Object(t)},c=function(t){return"[object Array]"==a.call(t)},l=function(t){return"[object Date]"==a.call(t)},f=function(t){return"[object RegExp]"==a.call(t)},d=function(t){return"[object Boolean]"==a.call(t)},h=function(t){return(t-=0)==t},p=function(t,e){var n=e&&"process"in e?e.process:e;return"function"!=typeof n?t:function(e,r){return n(e,t,r)}},b={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(t,e){return n(p(r,e),t)},decamelizeKeys:function(t,e){return n(p(o,e),t,e)},pascalizeKeys:function(t,e){return n(p(i,e),t)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=b:e.humps=b}(u)})).decamelize;function p(t){var e=t.root,n=t.children;return Object(o.createPortal)(n,e)}p.propTypes={root:s.a.object.isRequired,children:s.a.node.isRequired};var b=new Map;var v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Proxy(t,{get:function(t,e){var n,o,a=h(e,{separator:"-"});return b.has(a)||b.set(a,(n={tag:a},(o=Object(r.forwardRef)((function(t,e){var o=t.mode,a=t.delegatesFocus,s=t.styleSheets,u=t.children,c=d(t,["mode","delegatesFocus","styleSheets","children"]),h=Object(r.useState)(null),b=f(h,2),v=b[0],y=b[1],m=Object(r.useState)(null),_=f(m,2),g=_[0],w=_[1];return Object(r.useEffect)((function(){if(v){var t=v.attachShadow({mode:o,delegatesFocus:a});s.length>0&&(t.adoptedStyleSheets=s),e&&"function"==typeof e&&e(v),e&&"current"in e&&(e.current=v),w(t)}}),[v]),i.a.createElement(n.tag,l({ref:y},c),g&&i.a.createElement(p,{root:g},u))}))).propTypes={mode:s.a.oneOf(["open","closed"]),delegatesFocus:s.a.bool,styleSheets:s.a.arrayOf(s.a.string),children:s.a.node.isRequired},o.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[]},o)),b.get(a)}})}();e.a=v},,,function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,u;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(93),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(143),i=n(455),o=n(456),a=n(457),s=n(458),u=n(459);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},function(t,e,n){"use strict";var r=n(50);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createActionCreator=function(t){return(...e)=>{switch(e.length){case 0:return{type:t};case 1:return{type:t,payload:e[0]};default:return{type:t,payload:e[0],meta:e[1]}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(184);e.createDefaultActionCreators=function(t,e,n){const i={};if(n)for(const t in n)r.hasOwnProperty.call(n,t)&&(i[t]=n[t]);for(const o in e)r.hasOwnProperty.call(e,o)&&(n&&r.hasOwnProperty.call(i,o)||(i[o]=t(o)));return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createActionCreator=function(t){return(...e)=>{switch(e.length){case 0:return{type:t};case 1:return{type:t,payload:e[0]};case 2:return{type:t,payload:e[0],error:e[1]};default:return{type:t,payload:e[0],error:e[1],meta:e[2]}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineObjects=function(...t){return Object.assign({},...t)}},,,,function(t,e,n){"use strict";(function(t){var r,i=n(351);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:t;var o=Object(i.a)(r);e.a=o}).call(this,n(570)(t))},,,,function(t,e,n){var r=n(461),i=n(464),o=n(465);t.exports=function(t,e,n,a,s,u){var c=1&n,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var d=u.get(t),h=u.get(e);if(d&&h)return d==e&&h==t;var p=-1,b=!0,v=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p<l;){var y=t[p],m=e[p];if(a)var _=c?a(m,y,p,e,t,u):a(y,m,p,t,e,u);if(void 0!==_){if(_)continue;b=!1;break}if(v){if(!i(e,(function(t,e){if(!o(v,e)&&(y===t||s(y,t,n,a,u)))return v.push(e)}))){b=!1;break}}else if(y!==m&&!s(y,m,n,a,u)){b=!1;break}}return u.delete(t),u.delete(e),b}},function(t,e,n){var r=n(115);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";var r=n(50),i=n(487),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(248)),s),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(o)})),t.exports=u},function(t,e,n){"use strict";var r=n(50),i=n(488),o=n(490),a=n(230),s=n(400),u=n(493),c=n(494),l=n(249);t.exports=function(t){return new Promise((function(e,n){var f=t.data,d=t.headers;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",b=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(p+":"+b)}var v=s(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),a(v,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:t,request:h};i(e,n,o),h=null}},h.onabort=function(){h&&(n(l("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(l("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var y=(t.withCredentials||c(v))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;y&&(d[t.xsrfHeaderName]=y)}if("setRequestHeader"in h&&r.forEach(d,(function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),n(t),h=null)})),f||(f=null),h.send(f)}))}},function(t,e,n){"use strict";var r=n(489);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},function(t,e,n){"use strict";var r=n(50);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function c(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=u(void 0,e[t]))})),r.forEach(o,c),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=u(t[r],e[r]):r in t&&(n[r]=u(void 0,t[r]))}));var l=i.concat(o).concat(a).concat(s),f=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===l.indexOf(t)}));return r.forEach(f,c),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8);var i=n(0),o=n(190),a=n(30);function s(t,e){var n,s,u,c=Object(i.useState)(e),l=c[0],f=c[1];if((u=t)&&(u instanceof r.a||"function"==typeof u.lift&&"function"==typeof u.subscribe))s=t;else{var d=t,h=Object(a.e)(a.a);s=Object(a.e)((function(){return d(h.current,l)})).current,n=Object(i.useRef)((function(t){return h.current.next(t)})).current}return Object(o.a)(s,f),Object(i.useDebugValue)(l),n?[l,n]:l}},,function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(204),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n(188)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(344);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(208),i=n(163),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e){t.exports=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){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},,,,,,function(t,e,n){var r=n(571)(n(576));t.exports=r},,function(t,e,n){"use strict";function r(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(n,r,t):e(i)}}}}var i=r();i.withExtraArgument=r,e.a=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(581);e.createActionCreator=r.createActionCreator,e.createActionCreators=r.createActionCreators,e.proxyActionCreators=r.proxyActionCreators;var i=n(584);e.createFSACreator=i.createActionCreator,e.createFSACreators=i.createActionCreators,e.proxyFSACreators=i.proxyActionCreators;var o=n(234);e.combineObjects=o.combineObjects;var a=n(587);e.combineUniqueObjects=a.combineUniqueObjects;var s=n(350);e.proxyCombineObjects=s.proxyCombineObjects;var u=n(588);e.proxyCombineUniqueObjects=u.proxyCombineUniqueObjects;var c=n(589);e.createReducer=c.createReducer},,,,function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(227),i=n(203),o=n(56),a=n(205),s=n(160),u=n(214),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),f=!n&&!l&&a(t),d=!n&&!l&&!f&&u(t),h=n||l||f||d,p=h?r(t.length,String):[],b=p.length;for(var v in t)!e&&!c.call(t,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,b))||p.push(v);return p}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(470),i=n(170),o=n(471),a=n(472),s=n(473),u=n(69),c=n(215),l=c(r),f=c(i),d=c(o),h=c(a),p=c(s),b=u;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=b(new i)||o&&"[object Promise]"!=b(o.resolve())||a&&"[object Set]"!=b(new a)||s&&"[object WeakMap]"!=b(new s))&&(b=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=b},,,,,,,,,,,,,function(t,e,n){"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,u=a(t),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},,,,,,,function(t,e,n){"use strict";var r=n(301),i=n(68),o=n(200),a=n(156),s=n(201),u=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var l;if(l="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=r.deflateSetDictionary(this.strm,l)))throw new Error(a[n]);this._dict_set=!0}}function l(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}c.prototype.push=function(t,e){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=c,e.deflate=l,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,l(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,l(t,e)}},function(t,e,n){"use strict";var r,i=n(68),o=n(302),a=n(198),s=n(199),u=n(156);function c(t,e){return t.msg=u[e],e}function l(t){return(t<<1)-(t>4?9:0)}function f(t){for(var e=t.length;--e>=0;)t[e]=0}function d(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function h(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,d(t.strm)}function p(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function v(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,l=t.w_mask,f=t.prev,d=t.strstart+258,h=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===p&&c[n+a-1]===h&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<d);if(r=258-(d-o),o=d-258,r>a){if(t.match_start=e,a=r,r>=s)break;h=c[o+a-1],p=c[o+a]}}}while((e=f[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function y(t){var e,n,r,o,u,c,l,f,d,h,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-262)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=p?r-p:0}while(--n);e=n=p;do{r=t.prev[--e],t.prev[e]=r>=p?r-p:0}while(--n);o+=p}if(0===t.strm.avail_in)break;if(c=t.strm,l=t.window,f=t.strstart+t.lookahead,d=o,h=void 0,(h=c.avail_in)>d&&(h=d),n=0===h?0:(c.avail_in-=h,i.arraySet(l,c.input,c.next_in,h,f),1===c.state.wrap?c.adler=a(c.adler,l,h,f):2===c.state.wrap&&(c.adler=s(c.adler,l,h,f)),c.next_in+=h,c.total_in+=h,h),t.lookahead+=n,t.lookahead+t.insert>=3)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+3-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function m(t,e){for(var n,r;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=v(t,n)),t.match_length>=3)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}function _(t,e){for(var n,r,i;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=v(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(h(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=o._tr_tally(t,0,t.window[t.strstart-1]))&&h(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}function g(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function w(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):c(t,-2)}function O(t){var e,n=x(t);return 0===n&&((e=t.state).window_size=2*e.w_size,f(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function j(t,e,n,r,o,a){if(!t)return-2;var s=1;if(-1===e&&(e=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||e<0||e>9||a<0||a>4)return c(t,-2);8===r&&(r=9);var u=new w;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=n,O(t)}r=[new g(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,h(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(h(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(h(t,!1),t.strm.avail_out),1)})),new g(4,4,8,4,m),new g(4,5,16,8,m),new g(4,6,32,32,m),new g(4,4,16,16,_),new g(8,16,32,32,_),new g(8,16,128,128,_),new g(8,32,128,256,_),new g(32,128,258,1024,_),new g(32,258,258,4096,_)],e.deflateInit=function(t,e){return j(t,e,8,15,8,0)},e.deflateInit2=j,e.deflateReset=O,e.deflateResetKeep=x,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var n,i,a,u;if(!t||!t.state||e>5||e<0)return t?c(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return c(t,0===t.avail_out?-5:-2);if(i.strm=t,n=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,3),i.status=113);else{var v=8+(i.w_bits-8<<4)<<8;v|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(v|=32),v+=31-v%31,i.status=113,b(i,v),0!==i.strstart&&(b(i,t.adler>>>16),b(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,p(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,p(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&d(t),i.pending+2<=i.pending_buf_size&&(p(i,255&t.adler),p(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(d(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&l(e)<=l(n)&&4!==e)return c(t,-5);if(666===i.status&&0!==t.avail_in)return c(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var m=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=258){if(y(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+258;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}(i,e):r[i.level].func(i,e);if(3!==m&&4!==m||(i.status=666),1===m||3===m)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===m&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(f(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),d(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&t.adler),p(i,t.adler>>8&255),p(i,t.adler>>16&255),p(i,t.adler>>24&255),p(i,255&t.total_in),p(i,t.total_in>>8&255),p(i,t.total_in>>16&255),p(i,t.total_in>>24&255)):(b(i,t.adler>>>16),b(i,65535&t.adler)),d(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?c(t,-2):(t.state=null,113===e?c(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var n,r,o,s,u,c,l,d,h=e.length;if(!t||!t.state)return-2;if(2===(s=(n=t.state).wrap)||1===s&&42!==n.status||n.lookahead)return-2;for(1===s&&(t.adler=a(t.adler,e,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(f(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,e,h-n.w_size,n.w_size,0),e=d,h=n.w_size),u=t.avail_in,c=t.next_in,l=t.input,t.avail_in=h,t.next_in=0,t.input=e,y(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=2,y(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=c,t.input=l,t.avail_in=u,n.wrap=s,0},e.deflateInfo="pako deflate (from Nodeca project)"},function(t,e,n){"use strict";var r=n(68);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var l=new Array(60);i(l);var f=new Array(512);i(f);var d=new Array(256);i(d);var h=new Array(29);i(h);var p,b,v,y=new Array(30);function m(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function _(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function g(t){return t<256?f[t]:f[256+(t>>>7)]}function w(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function O(t,e,n){x(t,n[2*e],n[2*e+1])}function j(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function S(t,e,n){var r,i,o=new Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=j(o[s]++,s))}}function k(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function E(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function C(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function A(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&C(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!C(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function T(t,e,n){var r,i,s,u,c=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*c]<<8|t.pending_buf[t.d_buf+2*c+1],i=t.pending_buf[t.l_buf+c],c++,0===r?O(t,i,e):(O(t,(s=d[i])+256+1,e),0!==(u=o[s])&&x(t,i-=h[s],u),O(t,s=g(--r),n),0!==(u=a[s])&&x(t,r-=y[s],u))}while(c<t.last_lit);O(t,256,e)}function P(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)A(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,A(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,h=e.stat_desc.extra_base,p=e.stat_desc.max_length,b=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,b++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=h&&(a=d[r-h]),s=u[2*r],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(l[2*r+1]+a)));if(0!==b){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,b-=2}while(b>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),S(o,c,t.bl_count)}function N(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function R(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{O(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(O(t,i,t.bl_tree),s--),O(t,16,t.bl_tree),x(t,s-3,2)):s<=10?(O(t,17,t.bl_tree),x(t,s-3,3)):(O(t,18,t.bl_tree),x(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}i(y);var z=!1;function D(t,e,n,i){x(t,0+(i?1:0),3),function(t,e,n,i){E(t),i&&(w(t,n),w(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}e._tr_init=function(t){z||(!function(){var t,e,n,r,i,u=new Array(16);for(n=0,r=0;r<28;r++)for(h[r]=n,t=0;t<1<<o[r];t++)d[n++]=r;for(d[n-1]=r,i=0,r=0;r<16;r++)for(y[r]=i,t=0;t<1<<a[r];t++)f[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,t=0;t<1<<a[r]-7;t++)f[256+i++]=r;for(e=0;e<=15;e++)u[e]=0;for(t=0;t<=143;)c[2*t+1]=8,t++,u[8]++;for(;t<=255;)c[2*t+1]=9,t++,u[9]++;for(;t<=279;)c[2*t+1]=7,t++,u[7]++;for(;t<=287;)c[2*t+1]=8,t++,u[8]++;for(S(c,287,u),t=0;t<30;t++)l[2*t+1]=5,l[2*t]=j(t,5);p=new m(c,o,257,286,15),b=new m(l,a,0,30,15),v=new m(new Array(0),s,0,19,7)}(),z=!0),t.l_desc=new _(t.dyn_ltree,p),t.d_desc=new _(t.dyn_dtree,b),t.bl_desc=new _(t.bl_tree,v),t.bi_buf=0,t.bi_valid=0,k(t)},e._tr_stored_block=D,e._tr_flush_block=function(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),P(t,t.l_desc),P(t,t.d_desc),a=function(t){var e;for(N(t,t.dyn_ltree,t.l_desc.max_code),N(t,t.dyn_dtree,t.d_desc.max_code),P(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?D(t,e,n,r):4===t.strategy||o===i?(x(t,2+(r?1:0),3),T(t,c,l)):(x(t,4+(r?1:0),3),function(t,e,n,r){var i;for(x(t,e-257,5),x(t,n-1,5),x(t,r-4,4),i=0;i<r;i++)x(t,t.bl_tree[2*u[i]+1],3);R(t,t.dyn_ltree,e-1),R(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),T(t,t.dyn_ltree,t.dyn_dtree)),k(t),r&&E(t)},e._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(d[n]+256+1)]++,t.dyn_dtree[2*g(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),O(t,256,c),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){"use strict";var r=n(304),i=n(68),o=n(200),a=n(202),s=n(156),u=n(201),c=n(307),l=Object.prototype.toString;function f(t){if(!(this instanceof f))return new f(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[n])}function d(t,e){var n=new f(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}f.prototype.push=function(t,e){var n,s,u,c,f,d=this.strm,h=this.options.chunkSize,p=this.options.dictionary,b=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?d.input=o.binstring2buf(t):"[object ArrayBuffer]"===l.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(h),d.next_out=0,d.avail_out=h),(n=r.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(n=r.inflateSetDictionary(this.strm,p)),n===a.Z_BUF_ERROR&&!0===b&&(n=a.Z_OK,b=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&n!==a.Z_STREAM_END&&(0!==d.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=o.utf8border(d.output,d.next_out),c=d.next_out-u,f=o.buf2string(d.output,u),d.next_out=c,d.avail_out=h-c,c&&i.arraySet(d.output,d.output,u,c,0),this.onData(f)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(b=!0)}while((d.avail_in>0||0===d.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),d.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=f,e.inflate=d,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.ungzip=d},function(t,e,n){"use strict";var r=n(68),i=n(198),o=n(199),a=n(305),s=n(306);function u(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function l(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(852),e.distcode=e.distdyn=new r.Buf32(592),e.sane=1,e.back=-1,0):-2}function f(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,l(t)):-2}function d(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,f(t))):-2}function h(t,e){var n,r;return t?(r=new c,t.state=r,r.window=null,0!==(n=d(t,e))&&(t.state=null),n):-2}var p,b,v=!0;function y(t){if(v){var e;for(p=new r.Buf32(512),b=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,p,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,b,0,t.work,{bits:5}),v=!1}t.lencode=p,t.lenbits=9,t.distcode=b,t.distbits=5}function m(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=f,e.inflateReset2=d,e.inflateResetKeep=l,e.inflateInit=function(t){return h(t,15)},e.inflateInit2=h,e.inflate=function(t,e){var n,c,l,f,d,h,p,b,v,_,g,w,x,O,j,S,k,E,C,A,T,P,N,R,z=0,D=new r.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(n=t.state).mode&&(n.mode=13),d=t.next_out,l=t.output,p=t.avail_out,f=t.next_in,c=t.input,h=t.avail_in,b=n.hold,v=n.bits,_=h,g=p,P=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}if(2&n.wrap&&35615===b){n.check=0,D[0]=255&b,D[1]=b>>>8&255,n.check=o(n.check,D,2,0),b=0,v=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",n.mode=30;break}if(v-=4,T=8+(15&(b>>>=4)),0===n.wbits)n.wbits=T;else if(T>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<T,t.adler=n.check=1,n.mode=512&b?10:12,b=0,v=0;break;case 2:for(;v<16;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}if(n.flags=b,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=o(n.check,D,2,0)),b=0,v=0,n.mode=3;case 3:for(;v<32;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}n.head&&(n.head.time=b),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,D[2]=b>>>16&255,D[3]=b>>>24&255,n.check=o(n.check,D,4,0)),b=0,v=0,n.mode=4;case 4:for(;v<16;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=o(n.check,D,2,0)),b=0,v=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=o(n.check,D,2,0)),b=0,v=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((w=n.length)>h&&(w=h),w&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,f,w,T)),512&n.flags&&(n.check=o(n.check,c,w,f)),h-=w,f+=w,n.length-=w),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===h)break t;w=0;do{T=c[f+w++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T))}while(T&&w<h);if(512&n.flags&&(n.check=o(n.check,c,w,f)),h-=w,f+=w,T)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===h)break t;w=0;do{T=c[f+w++],n.head&&T&&n.length<65536&&(n.head.comment+=String.fromCharCode(T))}while(T&&w<h);if(512&n.flags&&(n.check=o(n.check,c,w,f)),h-=w,f+=w,T)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}if(b!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}b=0,v=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}t.adler=n.check=u(b),b=0,v=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=d,t.avail_out=p,t.next_in=f,t.avail_in=h,n.hold=b,n.bits=v,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){b>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}switch(n.last=1&b,v-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6===e){b>>>=2,v-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,b=0,v=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(w=n.length){if(w>h&&(w=h),w>p&&(w=p),0===w)break t;r.arraySet(l,c,f,w,d),h-=w,f+=w,p-=w,d+=w,n.length-=w;break}n.mode=12;break;case 17:for(;v<14;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}if(n.nlen=257+(31&b),b>>>=5,v-=5,n.ndist=1+(31&b),b>>>=5,v-=5,n.ncode=4+(15&b),b>>>=4,v-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}n.lens[M[n.have++]]=7&b,b>>>=3,v-=3}for(;n.have<19;)n.lens[M[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},P=s(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,P){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;S=(z=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,k=65535&z,!((j=z>>>24)<=v);){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}if(k<16)b>>>=j,v-=j,n.lens[n.have++]=k;else{if(16===k){for(R=j+2;v<R;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}if(b>>>=j,v-=j,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}T=n.lens[n.have-1],w=3+(3&b),b>>>=2,v-=2}else if(17===k){for(R=j+3;v<R;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}v-=j,T=0,w=3+(7&(b>>>=j)),b>>>=3,v-=3}else{for(R=j+7;v<R;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}v-=j,T=0,w=11+(127&(b>>>=j)),b>>>=7,v-=7}if(n.have+w>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;w--;)n.lens[n.have++]=T}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,N={bits:n.lenbits},P=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,P){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},P=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,P){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(h>=6&&p>=258){t.next_out=d,t.avail_out=p,t.next_in=f,t.avail_in=h,n.hold=b,n.bits=v,a(t,g),d=t.next_out,l=t.output,p=t.avail_out,f=t.next_in,c=t.input,h=t.avail_in,b=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;S=(z=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,k=65535&z,!((j=z>>>24)<=v);){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}if(S&&0==(240&S)){for(E=j,C=S,A=k;S=(z=n.lencode[A+((b&(1<<E+C)-1)>>E)])>>>16&255,k=65535&z,!(E+(j=z>>>24)<=v);){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}b>>>=E,v-=E,n.back+=E}if(b>>>=j,v-=j,n.back+=j,n.length=k,0===S){n.mode=26;break}if(32&S){n.back=-1,n.mode=12;break}if(64&S){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&S,n.mode=22;case 22:if(n.extra){for(R=n.extra;v<R;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;S=(z=n.distcode[b&(1<<n.distbits)-1])>>>16&255,k=65535&z,!((j=z>>>24)<=v);){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}if(0==(240&S)){for(E=j,C=S,A=k;S=(z=n.distcode[A+((b&(1<<E+C)-1)>>E)])>>>16&255,k=65535&z,!(E+(j=z>>>24)<=v);){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}b>>>=E,v-=E,n.back+=E}if(b>>>=j,v-=j,n.back+=j,64&S){t.msg="invalid distance code",n.mode=30;break}n.offset=k,n.extra=15&S,n.mode=24;case 24:if(n.extra){for(R=n.extra;v<R;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===p)break t;if(w=g-p,n.offset>w){if((w=n.offset-w)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}w>n.wnext?(w-=n.wnext,x=n.wsize-w):x=n.wnext-w,w>n.length&&(w=n.length),O=n.window}else O=l,x=d-n.offset,w=n.length;w>p&&(w=p),p-=w,n.length-=w;do{l[d++]=O[x++]}while(--w);0===n.length&&(n.mode=21);break;case 26:if(0===p)break t;l[d++]=n.length,p--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===h)break t;h--,b|=c[f++]<<v,v+=8}if(g-=p,t.total_out+=g,n.total+=g,g&&(t.adler=n.check=n.flags?o(n.check,l,g,d-g):i(n.check,l,g,d-g)),g=p,(n.flags?b:u(b))!==n.check){t.msg="incorrect data check",n.mode=30;break}b=0,v=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===h)break t;h--,b+=c[f++]<<v,v+=8}if(b!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}b=0,v=0}n.mode=29;case 29:P=1;break t;case 30:P=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=d,t.avail_out=p,t.next_in=f,t.avail_in=h,n.hold=b,n.bits=v,(n.wsize||g!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&m(t,t.output,t.next_out,g-t.avail_out)?(n.mode=31,-4):(_-=t.avail_in,g-=t.avail_out,t.total_in+=_,t.total_out+=g,n.total+=g,n.wrap&&g&&(t.adler=n.check=n.flags?o(n.check,l,g,t.next_out-g):i(n.check,l,g,t.next_out-g)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===_&&0===g||4===e)&&0===P&&(P=-5),P)},e.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?-2:(n.head=e,e.done=!1,0):-2},e.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?-2:11===n.mode&&i(1,e,r,0)!==n.check?-3:m(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},e.inflateInfo="pako inflate (from Nodeca project)"},function(t,e,n){"use strict";t.exports=function(t,e){var n,r,i,o,a,s,u,c,l,f,d,h,p,b,v,y,m,_,g,w,x,O,j,S,k;n=t.state,r=t.next_in,S=t.input,i=r+(t.avail_in-5),o=t.next_out,k=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,c=n.wsize,l=n.whave,f=n.wnext,d=n.window,h=n.hold,p=n.bits,b=n.lencode,v=n.distcode,y=(1<<n.lenbits)-1,m=(1<<n.distbits)-1;t:do{p<15&&(h+=S[r++]<<p,p+=8,h+=S[r++]<<p,p+=8),_=b[h&y];e:for(;;){if(h>>>=g=_>>>24,p-=g,0===(g=_>>>16&255))k[o++]=65535&_;else{if(!(16&g)){if(0==(64&g)){_=b[(65535&_)+(h&(1<<g)-1)];continue e}if(32&g){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&_,(g&=15)&&(p<g&&(h+=S[r++]<<p,p+=8),w+=h&(1<<g)-1,h>>>=g,p-=g),p<15&&(h+=S[r++]<<p,p+=8,h+=S[r++]<<p,p+=8),_=v[h&m];n:for(;;){if(h>>>=g=_>>>24,p-=g,!(16&(g=_>>>16&255))){if(0==(64&g)){_=v[(65535&_)+(h&(1<<g)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&_,p<(g&=15)&&(h+=S[r++]<<p,(p+=8)<g&&(h+=S[r++]<<p,p+=8)),(x+=h&(1<<g)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(h>>>=g,p-=g,x>(g=o-a)){if((g=x-g)>l&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(O=0,j=d,0===f){if(O+=c-g,g<w){w-=g;do{k[o++]=d[O++]}while(--g);O=o-x,j=k}}else if(f<g){if(O+=c+f-g,(g-=f)<w){w-=g;do{k[o++]=d[O++]}while(--g);if(O=0,f<w){w-=g=f;do{k[o++]=d[O++]}while(--g);O=o-x,j=k}}}else if(O+=f-g,g<w){w-=g;do{k[o++]=d[O++]}while(--g);O=o-x,j=k}for(;w>2;)k[o++]=j[O++],k[o++]=j[O++],k[o++]=j[O++],w-=3;w&&(k[o++]=j[O++],w>1&&(k[o++]=j[O++]))}else{O=o-x;do{k[o++]=k[O++],k[o++]=k[O++],k[o++]=k[O++],w-=3}while(w>2);w&&(k[o++]=k[O++],w>1&&(k[o++]=k[O++]))}break}}break}}while(r<i&&o<s);r-=w=p>>3,h&=(1<<(p-=w<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=h,n.bits=p}},function(t,e,n){"use strict";var r=n(68),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,n,u,c,l,f,d){var h,p,b,v,y,m,_,g,w,x=d.bits,O=0,j=0,S=0,k=0,E=0,C=0,A=0,T=0,P=0,N=0,R=null,z=0,D=new r.Buf16(16),M=new r.Buf16(16),I=null,L=0;for(O=0;O<=15;O++)D[O]=0;for(j=0;j<u;j++)D[e[n+j]]++;for(E=x,k=15;k>=1&&0===D[k];k--);if(E>k&&(E=k),0===k)return c[l++]=20971520,c[l++]=20971520,d.bits=1,0;for(S=1;S<k&&0===D[S];S++);for(E<S&&(E=S),T=1,O=1;O<=15;O++)if(T<<=1,(T-=D[O])<0)return-1;if(T>0&&(0===t||1!==k))return-1;for(M[1]=0,O=1;O<15;O++)M[O+1]=M[O]+D[O];for(j=0;j<u;j++)0!==e[n+j]&&(f[M[e[n+j]]++]=j);if(0===t?(R=I=f,m=19):1===t?(R=i,z-=257,I=o,L-=257,m=256):(R=a,I=s,m=-1),N=0,j=0,O=S,y=l,C=E,A=0,b=-1,v=(P=1<<E)-1,1===t&&P>852||2===t&&P>592)return 1;for(;;){_=O-A,f[j]<m?(g=0,w=f[j]):f[j]>m?(g=I[L+f[j]],w=R[z+f[j]]):(g=96,w=0),h=1<<O-A,S=p=1<<C;do{c[y+(N>>A)+(p-=h)]=_<<24|g<<16|w|0}while(0!==p);for(h=1<<O-1;N&h;)h>>=1;if(0!==h?(N&=h-1,N+=h):N=0,j++,0==--D[O]){if(O===k)break;O=e[n+f[j]]}if(O>E&&(N&v)!==b){for(0===A&&(A=E),y+=S,T=1<<(C=O-A);C+A<k&&!((T-=D[C+A])<=0);)C++,T<<=1;if(P+=1<<C,1===t&&P>852||2===t&&P>592)return 1;c[b=N&v]=E<<24|C<<16|y-l|0}}return 0!==N&&(c[y+N]=O-A<<24|64<<16|0),d.bits=E,0}},function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e,n){var r=n(213),i=n(318)(r);t.exports=i},function(t,e,n){var r=n(310)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}},function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(123),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=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}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(69),i=n(161),o=n(64),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,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(260),i=n(317),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(279)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(162);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(t,e,n){var r=n(149);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(321),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},function(t,e,n){var r=n(322);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=n(169);function i(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(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(324),i=n(143),o=n(170);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(325),i=n(330),o=n(331),a=n(332),s=n(333);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(126);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e,n){var r=n(206),i=n(327),o=n(115),a=n(215),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?d:s).test(a(t))}},function(t,e,n){var r,i=n(328),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(66)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(126),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(126),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(126);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(127),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(127);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(127);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(127);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(128);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(128);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(128);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(128);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(123),i=n(216),o=n(56),a=n(151),s=r?r.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(262),i=n(150),o=n(160),a=n(115),s=n(116);t.exports=function(t,e,n,u){if(!a(t))return t;for(var c=-1,l=(e=i(e,t)).length,f=l-1,d=t;null!=d&&++c<l;){var h=s(e[c]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;if(c!=f){var b=d[h];void 0===(p=u?u(b,h,d):void 0)&&(p=a(b)?b:o(e[c+1])?[]:{})}r(d,h,p),d=d[h]}return t}},function(t,e){t.exports=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(263),i=n(368),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(184),i=n(232);e.proxyDefaultActionCreators=function(t,e,n){let o;const a={get:(i,o)=>r.hasOwnProperty.call(i,o)?i[o]:n&&r.hasOwnProperty.call(n,o)?i[o]=n[o]:r.hasOwnProperty.call(e,o)?i[o]=t(o):void 0,ownKeys:()=>(o||(o=new Set([...Object.keys(e),...Object.keys(n||{})])),[...o]),getOwnPropertyDescriptor:(i,o)=>r.hasOwnProperty.call(i,o)?{value:i[o],configurable:!0,enumerable:!0}:n&&r.hasOwnProperty.call(n,o)?(i[o]=n[o],{value:i[o],configurable:!0,enumerable:!0}):r.hasOwnProperty.call(e,o)?(i[o]=t(o),{value:i[o],configurable:!0,enumerable:!0}):void 0};try{return new Proxy({},a)}catch(r){return i.createDefaultActionCreators(t,e,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(184),i=n(234);e.proxyCombineObjects=function(...t){let e,n;const o={get(e,i){if(r.hasOwnProperty.call(e,i))return e[i];if(!n||!n.has(i)){for(let n=t.length-1;n>=0;n--){const o=t[n];if(r.hasOwnProperty.call(o,i))return e[i]=o[i]}n?n.size>=100&&n.clear():n=new Set,n.add(i)}},ownKeys:()=>(e||(e=new Set(t.reduce((t,e)=>t.concat(Object.keys(e)),[]))),[...e]),getOwnPropertyDescriptor(e,i){if(r.hasOwnProperty.call(e,i))return{value:e[i],configurable:!0,enumerable:!0};if(!n||!n.has(i)){for(let n=t.length-1;n>=0;n--){const o=t[n];if(r.hasOwnProperty.call(o,i))return e[i]=o[i],{value:e[i],configurable:!0,enumerable:!0}}n?n.size>=100&&n.clear():n=new Set,n.add(i)}}};try{return new Proxy(Object.create(null),o)}catch(e){return i.combineObjects(...t)}}},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(39),i=function(t,e){return t===e||"function"==typeof e&&t===e.toString()},o=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return t.pipe(Object(r.a)((function(t){var n=t.type,r=e.length;if(1===r)return i(n,e[0]);for(var o=0;o<r;o++)if(i(n,e[o]))return!0;return!1})))}}},,,,,,,,,,function(t,e,n){"use strict";var r=n(0);e.a=function(t,e){var n=Object(r.useRef)(!0);Object(r.useEffect)((function(){if(!n.current)return t();n.current=!1}),e)}},,,function(t,e,n){var r=n(66).Uint8Array;t.exports=r},function(t,e,n){var r=n(367),i=n(347),o=n(157);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(346),i=n(56);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},function(t,e){t.exports=function(){return[]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(491),i=n(492);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},,function(t,e,n){"use strict";var r=n(18),i=n(61),o=n(34),a=n(135),s=n(0),u=(n(26),!!document.documentElement.currentStyle),c={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},l=["letter-spacing","line-height","font-family","font-weight","font-size","font-style","tab-size","text-rendering","text-transform","width","text-indent","padding-top","padding-right","padding-bottom","padding-left","border-top-width","border-right-width","border-bottom-width","border-left-width","box-sizing"],f={},d=document.createElement("textarea"),h=function(t){Object.keys(c).forEach((function(e){t.style.setProperty(e,c[e],"important")}))};function p(t,e,n,r,i){void 0===n&&(n=!1),void 0===r&&(r=null),void 0===i&&(i=null),null===d.parentNode&&document.body.appendChild(d);var o=function(t,e,n){void 0===n&&(n=!1);if(n&&f[e])return f[e];var r=window.getComputedStyle(t);if(null===r)return null;var i=l.reduce((function(t,e){return t[e]=r.getPropertyValue(e),t}),{}),o=i["box-sizing"];if(""===o)return null;u&&"border-box"===o&&(i.width=parseFloat(i.width)+parseFloat(r["border-right-width"])+parseFloat(r["border-left-width"])+parseFloat(r["padding-right"])+parseFloat(r["padding-left"])+"px");var a=parseFloat(i["padding-bottom"])+parseFloat(i["padding-top"]),s=parseFloat(i["border-bottom-width"])+parseFloat(i["border-top-width"]),c={sizingStyle:i,paddingSize:a,borderSize:s,boxSizing:o};n&&(f[e]=c);return c}(t,e,n);if(null===o)return null;var a=o.paddingSize,s=o.borderSize,c=o.boxSizing,p=o.sizingStyle;Object.keys(p).forEach((function(t){d.style[t]=p[t]})),h(d),d.value=t.value||t.placeholder||"x";var b=-1/0,v=1/0,y=d.scrollHeight;"border-box"===c?y+=s:"content-box"===c&&(y-=a),d.value="x";var m=d.scrollHeight-a,_=Math.floor(y/m);return null!==r&&(b=m*r,"border-box"===c&&(b=b+a+s),y=Math.max(b,y)),null!==i&&(v=m*i,"border-box"===c&&(v=v+a+s),y=Math.min(v,y)),{height:y,minHeight:b,maxHeight:v,rowCount:Math.floor(y/m),valueRowCount:_}}d.setAttribute("tab-index","-1"),d.setAttribute("aria-hidden","true"),h(d);var b=function(){},v=0,y=function(t){function e(e){var n;return(n=t.call(this,e)||this)._onRef=function(t){n._ref=t;var e=n.props.inputRef;"function"!=typeof e?e.current=t:e(t)},n._onChange=function(t){n._controlled||n._resizeComponent(),n.props.onChange(t,Object(o.a)(n))},n._resizeComponent=function(t){void 0===t&&(t=b);var e=p(n._ref,n._uid,n.props.useCacheForDOMMeasurements,n.props.minRows,n.props.maxRows);if(null!==e){var r=e.height,i=e.minHeight,o=e.maxHeight,a=e.rowCount,s=e.valueRowCount;n.rowCount=a,n.valueRowCount=s,n.state.height===r&&n.state.minHeight===i&&n.state.maxHeight===o?t():n.setState({height:r,minHeight:i,maxHeight:o},t)}else t()},n.state={height:e.style&&e.style.height||0,minHeight:-1/0,maxHeight:1/0},n._uid=v++,n._controlled=void 0!==e.value,n._resizeLock=!1,n}Object(a.a)(e,t);var n=e.prototype;return n.render=function(){var t=this.props,e=(t.inputRef,t.maxRows,t.minRows,t.onHeightChange,t.useCacheForDOMMeasurements,Object(i.a)(t,["inputRef","maxRows","minRows","onHeightChange","useCacheForDOMMeasurements"]));return e.style=Object(r.a)({},e.style,{height:this.state.height}),Math.max(e.style.maxHeight||1/0,this.state.maxHeight)<this.state.height&&(e.style.overflow="hidden"),Object(s.createElement)("textarea",Object(r.a)({},e,{onChange:this._onChange,ref:this._onRef}))},n.componentDidMount=function(){var t=this;this._resizeComponent(),this._resizeListener=function(){t._resizeLock||(t._resizeLock=!0,t._resizeComponent((function(){t._resizeLock=!1})))},window.addEventListener("resize",this._resizeListener)},n.componentDidUpdate=function(t,e){t!==this.props&&this._resizeComponent(),this.state.height!==e.height&&this.props.onHeightChange(this.state.height,this)},n.componentWillUnmount=function(){window.removeEventListener("resize",this._resizeListener),function(t){delete f[t]}(this._uid)},e}(s.Component);y.defaultProps={inputRef:b,onChange:b,onHeightChange:b,useCacheForDOMMeasurements:!1},e.a=y},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(7),o=n(114);function a(t,e){return void 0===e&&(e=o.a),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.dueTime,this.scheduler))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(i.a);function c(t){t.debouncedNext()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(95),o=n(73),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict"; +/** @license React v0.19.1 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r,i,o,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,l=function(){if(null!==u)try{var t=e.unstable_now();u(!0,t),u=null}catch(t){throw setTimeout(l,0),t}},f=Date.now();e.unstable_now=function(){return Date.now()-f},r=function(t){null!==u?setTimeout(r,0,t):(u=t,setTimeout(l,0))},i=function(t,e){c=setTimeout(t,e)},o=function(){clearTimeout(c)},a=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var d=window.performance,h=window.Date,p=window.setTimeout,b=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)e.unstable_now=function(){return d.now()};else{var y=h.now();e.unstable_now=function(){return h.now()-y}}var m=!1,_=null,g=-1,w=5,x=0;a=function(){return e.unstable_now()>=x},s=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<t?Math.floor(1e3/t):5};var O=new MessageChannel,j=O.port2;O.port1.onmessage=function(){if(null!==_){var t=e.unstable_now();x=t+w;try{_(!0,t)?j.postMessage(null):(m=!1,_=null)}catch(t){throw j.postMessage(null),t}}else m=!1},r=function(t){_=t,m||(m=!0,j.postMessage(null))},i=function(t,n){g=p((function(){t(e.unstable_now())}),n)},o=function(){b(g),g=-1}}function S(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<C(i,e)))break t;t[r]=e,t[n]=i,n=r}}function k(t){return void 0===(t=t[0])?null:t}function E(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,a=t[o],s=o+1,u=t[s];if(void 0!==a&&0>C(a,n))void 0!==u&&0>C(u,a)?(t[r]=u,t[s]=n,r=s):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==u&&0>C(u,n)))break t;t[r]=u,t[s]=n,r=s}}}return e}return null}function C(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var A=[],T=[],P=1,N=null,R=3,z=!1,D=!1,M=!1;function I(t){for(var e=k(T);null!==e;){if(null===e.callback)E(T);else{if(!(e.startTime<=t))break;E(T),e.sortIndex=e.expirationTime,S(A,e)}e=k(T)}}function L(t){if(M=!1,I(t),!D)if(null!==k(A))D=!0,r(B);else{var e=k(T);null!==e&&i(L,e.startTime-t)}}function B(t,n){D=!1,M&&(M=!1,o()),z=!0;var r=R;try{for(I(n),N=k(A);null!==N&&(!(N.expirationTime>n)||t&&!a());){var s=N.callback;if(null!==s){N.callback=null,R=N.priorityLevel;var u=s(N.expirationTime<=n);n=e.unstable_now(),"function"==typeof u?N.callback=u:N===k(A)&&E(A),I(n)}else E(A);N=k(A)}if(null!==N)var c=!0;else{var l=k(T);null!==l&&i(L,l.startTime-n),c=!1}return c}finally{N=null,R=r,z=!1}}function F(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){D||z||(D=!0,r(B))},e.unstable_getCurrentPriorityLevel=function(){return R},e.unstable_getFirstCallbackNode=function(){return k(A)},e.unstable_next=function(t){switch(R){case 1:case 2:case 3:var e=3;break;default:e=R}var n=R;R=e;try{return t()}finally{R=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=U,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=R;R=t;try{return e()}finally{R=n}},e.unstable_scheduleCallback=function(t,n,a){var s=e.unstable_now();if("object"==typeof a&&null!==a){var u=a.delay;u="number"==typeof u&&0<u?s+u:s,a="number"==typeof a.timeout?a.timeout:F(t)}else a=F(t),u=s;return t={id:P++,callback:n,priorityLevel:t,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>s?(t.sortIndex=u,S(T,t),null===k(A)&&t===k(T)&&(M?o():M=!0,i(L,u-s))):(t.sortIndex=a,S(A,t),D||z||(D=!0,r(B))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();I(t);var n=k(A);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<N.expirationTime||a()},e.unstable_wrapCallback=function(t){var e=R;return function(){var n=R;R=e;try{return t.apply(this,arguments)}finally{R=n}}}},function(t,e,n){"use strict";var r=n(451);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(453),i=n(475),o=n(149),a=n(56),s=n(479);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(454),i=n(474),o=n(244);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(229),i=n(217);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var l=(c=n[a])[0],f=t[l],d=c[1];if(u&&c[2]){if(void 0===f&&!(l in t))return!1}else{var h=new r;if(o)var p=o(f,d,l,t,e,h);if(!(void 0===p?i(d,f,3,o,h):p))return!1}}return!0}},function(t,e,n){var r=n(143);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(143),i=n(170),o=n(169);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(229),i=n(242),o=n(466),a=n(469),s=n(280),u=n(56),c=n(205),l=n(214),f="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,h,p,b){var v=u(t),y=u(e),m=v?"[object Array]":s(t),_=y?"[object Array]":s(e),g=(m="[object Arguments]"==m?f:m)==f,w=(_="[object Arguments]"==_?f:_)==f,x=m==_;if(x&&c(t)){if(!c(e))return!1;v=!0,g=!1}if(x&&!g)return b||(b=new r),v||l(t)?i(t,e,n,h,p,b):o(t,e,m,n,h,p,b);if(!(1&n)){var O=g&&d.call(t,"__wrapped__"),j=w&&d.call(e,"__wrapped__");if(O||j){var S=O?t.value():t,k=j?e.value():e;return b||(b=new r),p(S,k,n,h,b)}}return!!x&&(b||(b=new r),a(t,e,n,h,p,b))}},function(t,e,n){var r=n(169),i=n(462),o=n(463);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=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}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(123),i=n(365),o=n(163),a=n(242),s=n(467),u=n(468),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,f,d){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||!f(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+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 h=s;case"[object Set]":var p=1&r;if(h||(h=u),t.size!=e.size&&!p)return!1;var b=d.get(t);if(b)return b==e;r|=2,d.set(t,e);var v=a(h(t),h(e),r,c,f,d);return d.delete(t),v;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(366),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var u=1&n,c=r(t),l=c.length;if(l!=r(e).length&&!u)return!1;for(var f=l;f--;){var d=c[f];if(!(u?d in e:i.call(e,d)))return!1}var h=s.get(t),p=s.get(e);if(h&&p)return h==e&&p==t;var b=!0;s.set(t,e),s.set(e,t);for(var v=u;++f<l;){var y=t[d=c[f]],m=e[d];if(o)var _=u?o(m,y,d,e,t,s):o(y,m,d,t,e,s);if(!(void 0===_?y===m||a(y,m,n,o,s):_)){b=!1;break}v||(v="constructor"==d)}if(b&&!v){var g=t.constructor,w=e.constructor;g==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(b=!1)}return s.delete(t),s.delete(e),b}},function(t,e,n){var r=n(93)(n(66),"DataView");t.exports=r},function(t,e,n){var r=n(93)(n(66),"Promise");t.exports=r},function(t,e,n){var r=n(93)(n(66),"Set");t.exports=r},function(t,e,n){var r=n(93)(n(66),"WeakMap");t.exports=r},function(t,e,n){var r=n(243),i=n(157);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},function(t,e,n){var r=n(217),i=n(22),o=n(476),a=n(168),s=n(243),u=n(244),c=n(116);t.exports=function(t,e){return a(t)&&s(e)?u(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},function(t,e,n){var r=n(477),i=n(478);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(150),i=n(203),o=n(56),a=n(160),s=n(161),u=n(116);t.exports=function(t,e,n){for(var c=-1,l=(e=r(e,t)).length,f=!1;++c<l;){var d=u(e[c]);if(!(f=null!=t&&n(t,d)))break;t=t[d]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&s(l)&&a(d,l)&&(o(t)||i(t))}},function(t,e,n){var r=n(264),i=n(480),o=n(168),a=n(116);t.exports=function(t){return o(t)?r(a(t)):i(t)}},function(t,e,n){var r=n(207);t.exports=function(t){return function(e){return r(e,t)}}},,function(t,e,n){"use strict";var r=n(50),i=n(245),o=n(483),a=n(250);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=s(n(247));u.Axios=o,u.create=function(t){return s(a(u.defaults,t))},u.Cancel=n(251),u.CancelToken=n(495),u.isCancel=n(246),u.all=function(t){return Promise.all(t)},u.spread=n(496),u.isAxiosError=n(497),t.exports=u,t.exports.default=u},function(t,e,n){"use strict";var r=n(50),i=n(230),o=n(484),a=n(485),s=n(250);function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=u},function(t,e,n){"use strict";var r=n(50);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var r=n(50),i=n(486),o=n(246),a=n(247);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(50);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";var r=n(50);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(249);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(50);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(50),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(50);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(251);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},function(t,e){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0,i=n;return[i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]]].join("")}},,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(100),i=n(65);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(i.a)(n)?(t.pop(),function(e){return Object(r.a)(t,e,n)}):function(e){return Object(r.a)(t,e)}}},,,,,,,,function(t,e,n){var r=n(572),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(u),r(t,this,c)}}},function(t,e,n){var r=n(573),i=n(575)(r);t.exports=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(37),o=n(36);function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new u(t),r=Object(o.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),u=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(37),o=n(36);function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return r.__extends(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(o.a)(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i=n(37),o=n(36),a={leading:!0,trailing:!1};function s(t,e){return void 0===e&&(e=a),function(n){return n.lift(new u(t,e.leading,e.trailing))}}var u=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.durationSelector,this.leading,this.trailing))},t}(),c=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r.__extends(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(o.a)(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(i.a)},,,,,,function(t,e,n){"use strict"; +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,_=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case f:case d:case a:case u:case s:case p:return t;default:switch(t=t&&t.$$typeof){case l:case h:case y:case v:case c:return t;default:return e}}case o:return e}}}function O(t){return x(t)===d}e.AsyncMode=f,e.ConcurrentMode=d,e.ContextConsumer=l,e.ContextProvider=c,e.Element=i,e.ForwardRef=h,e.Fragment=a,e.Lazy=y,e.Memo=v,e.Portal=o,e.Profiler=u,e.StrictMode=s,e.Suspense=p,e.isAsyncMode=function(t){return O(t)||x(t)===f},e.isConcurrentMode=O,e.isContextConsumer=function(t){return x(t)===l},e.isContextProvider=function(t){return x(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return x(t)===h},e.isFragment=function(t){return x(t)===a},e.isLazy=function(t){return x(t)===y},e.isMemo=function(t){return x(t)===v},e.isPortal=function(t){return x(t)===o},e.isProfiler=function(t){return x(t)===u},e.isStrictMode=function(t){return x(t)===s},e.isSuspense=function(t){return x(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===d||t===u||t===s||t===p||t===b||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===v||t.$$typeof===c||t.$$typeof===l||t.$$typeof===h||t.$$typeof===_||t.$$typeof===g||t.$$typeof===w||t.$$typeof===m)},e.typeOf=x},function(t,e){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,n){var r=n(149),i=n(516),o=n(517);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e){t.exports=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)}},function(t,e,n){var r=n(574),i=n(228),o=n(149),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(263),i=n(216),o=n(264),a=n(227),s=n(577),u=Math.max;t.exports=function(t){if(!t||!t.length)return[];var e=0;return t=r(t,(function(t){if(s(t))return e=u(t.length,e),!0})),a(e,(function(e){return i(t,o(e))}))}},function(t,e,n){var r=n(162),i=n(64);t.exports=function(t){return i(t)&&r(t)}},,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(231);e.createActionCreator=r.createActionCreator;var i=n(582);e.createActionCreators=i.createActionCreators;var o=n(583);e.proxyActionCreators=o.proxyActionCreators},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(231),i=n(232);e.createActionCreators=function(t,e){return i.createDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(231),i=n(349);e.proxyActionCreators=function(t,e){return i.proxyDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(233);e.createActionCreator=r.createActionCreator;var i=n(585);e.createActionCreators=i.createActionCreators;var o=n(586);e.proxyActionCreators=o.proxyActionCreators},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(233),i=n(232);e.createActionCreators=function(t,e){return i.createDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(233),i=n(349);e.proxyActionCreators=function(t,e){return i.proxyDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(234);e.combineUniqueObjects=function(...t){return r.combineObjects(...t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(350);e.proxyCombineUniqueObjects=function(...t){return r.proxyCombineObjects(...t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(184);e.createReducer=function(t,e){return function(n=t,i){return r.hasOwnProperty.call(e,i.type)?e[i.type](n,i):n}}},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";t.exports=n(449)},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkParent=void 0,e.checkParent=function(t){if(!t)return void console.error(new Error("react-resize-reporter: empty parent element"));switch(t.tagName){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"menuitem":case"meta":case"param":case"source":case"track":case"wbr":case"script":case"style":case"textarea":case"title":console.error(new Error("react-resize-reporter: Unsupported parent tag name "+t.tagName.toLowerCase()+"."+t.className.replace(/\s+/,".")+" . Change the tag or wrap it in a supported tag(e.g. div)."))}const e=window.getComputedStyle(t);e&&"static"===e.getPropertyValue("position")&&console.warn(new Error("react-resize-reporter: The 'position' CSS property of element "+t.tagName.toLowerCase()+"."+t.className.replace(/\s+/,".")+" should not be 'static'."))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(4),i=n(65),o=n(60),a=n(37),s=n(36),u=n(106),c={};function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return Object(i.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(o.a)(t[0])&&(t=t[0]),Object(u.a)(t,r).lift(new f(n))}var f=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.resultSelector))},t}(),d=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.__extends(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Object(s.a)(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,a=o[n],s=this.toRespond?a===c?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.a)},,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(4),i=n(95),o=n(8),a=n(7),s=n(14);function u(){return function(t){return t.lift(new c(t))}}var c=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new l(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),f=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new h(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t},e.prototype.refCount=function(){return u()(this)},e}(o.a),d=function(){var t=f.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.b);a.a;var p=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();function b(){return new i.a}function v(){return function(t){return u()((e=b,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new p(r,n));var i=Object.create(t,d);return i.source=t,i.subjectFactory=r,i})(t));var e,n}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i=n(7);function o(){}var a=n(46);function s(t,e,n){return function(r){return r.lift(new u(t,e,n))}}var u=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))},t}(),c=function(t){function e(e,n,r,i){var s=t.call(this,e)||this;return s._tapNext=o,s._tapError=o,s._tapComplete=o,s._tapError=r||o,s._tapComplete=i||o,Object(a.a)(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||o,s._tapError=n.error||o,s._tapComplete=n.complete||o),s}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(i.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(121);function i(t,e){return e?Object(r.a)((function(){return t}),e):Object(r.a)((function(){return t}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(112);function i(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 o=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return r.a.apply(void 0,i(e.map((function(t){var e=t.apply(void 0,n);if(!e)throw new TypeError('combineEpics: one of the provided Epics "'+(t.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return e}))))};try{Object.defineProperty(o,"name",{value:"combineEpics("+e.map((function(t){return t.name||"<anonymous>"})).join(", ")+")"})}catch(t){}return o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(){return function(t){return t.lift(new a)}}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.__extends(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(i.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return M}));var r=n(4),i=n(118),o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(i.a),a=n(117),s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(a.a))(o),u=n(95),c=n(67),l=n(7),f=n(111);function d(t,e){return void 0===e&&(e=0),function(n){return n.lift(new h(t,e))}}var h=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.scheduler,this.delay))},t}(),p=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.__extends(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new b(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(f.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(f.a.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(f.a.createComplete()),this.unsubscribe()},e}(l.a),b=function(){return function(t,e){this.notification=t,this.destination=e}}(),v=n(10),y=n(152),m=n(8),_=1,g=function(){return Promise.resolve()}(),w={};function x(t){return t in w&&(delete w[t],!0)}var O=function(t){var e=_++;return w[e]=!0,g.then((function(){return x(e)&&t()})),e},j=function(t){x(t)},S=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=O(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(j(n),e.scheduled=void 0)},e}(i.a),k=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(a.a))(S),E=n(153),C=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=k);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!Object(E.a)(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=k),i}return r.__extends(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=k),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(m.a);function A(t,e){return void 0===e&&(e=0),function(n){return n.lift(new T(t,e))}}var T=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new C(e,this.delay,this.scheduler).subscribe(t)},t}(),P=n(102),N=n(352),R=function(){function t(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)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var z=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.source=t,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),R(e,null,[{key:"of",value:function(){return new this(P.a.apply(void 0,arguments))}},{key:"from",value:function(t,e){return new this(Object(c.a)(t,e))}}]),R(e,[{key:"lift",value:function(t){var n=new e(this);return n.operator=t,n}},{key:"ofType",value:function(){return N.a.apply(void 0,arguments)(this)}}]),e}(m.a);var D=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(function(t){var e=r.__notifier.subscribe(t);return e&&!e.closed&&t.next(r.value),e})));return r.value=n,r.__notifier=new u.a,r.__subscription=t.subscribe((function(t){t!==r.value&&(r.value=t,r.__notifier.next(t))})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(m.a);function M(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=s.constructor,n=new e(s.SchedulerAction);var r=new u.a,i=void 0,o=function(e){i=e;var o=(new u.a).pipe(d(n)),a=(new u.a).pipe(d(n)),s=new z(o),l=new D(a,i.getState());return r.pipe(Object(v.a)((function(e){var n="dependencies"in t?e(s,l,t.dependencies):e(s,l);if(!n)throw new TypeError('Your root Epic "'+(e.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return n})),Object(y.a)((function(t){return Object(c.a)(t).pipe(A(n),d(n))}))).subscribe(i.dispatch),function(t){return function(e){var n=t(e);return a.next(i.getState()),o.next(e),n}}};return o.run=function(t){r.next(t)},o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i=n(7),o=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),a=n(124);function s(t){return function(e){return 0===t?Object(a.b)():e.lift(new u(t))}}var u=function(){function t(t){if(this.total=t,this.total<0)throw new o}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.a)}]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/20.473a1c38.js b/plugins/saladict-ztools/ext-saladic/assets/20.473a1c38.js deleted file mode 100644 index d10ac8e0..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/20.473a1c38.js +++ /dev/null @@ -1,29 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[20],{10:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n(7);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},100:function(t,e,n){var r=n(66),i=n(51),o=n(58);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},103:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r,i=n(118),o=n(96),s=n(8);function a(t){var e=t.error;t.subscriber.error(e)}r||(r={});var u=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return Object(o.a)(this.value);case"E":return t=this.error,e?new s.a((function(n){return e.schedule(a,0,{error:t,subscriber:n})})):new s.a((function(e){return e.error(t)}));case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},106:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(112),i=new(n(111).a)(r.a)},108:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),i=n(35),o=n(94),s=n(34),a=n(10),u=n(64);function c(t,e){return"function"==typeof e?function(n){return n.pipe(c((function(n,r){return Object(u.a)(t(n,r)).pipe(Object(a.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new f(t))}}var f=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project))},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new o.a(this,e,n),a=this.destination;a.add(i),this.innerSubscription=Object(s.a)(this,t,void 0,void 0,i),this.innerSubscription!==i&&a.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(i.a)},109:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},110:function(t,e,n){var r=n(144);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},111:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),o=function(t){function e(n,r){void 0===r&&(r=i.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.__extends(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i)},112:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(13).a))},114:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},115:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},117:function(t,e,n){var r=n(62).Symbol;t.exports=r},118:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(8),i=new r.a((function(t){return t.complete()}));function o(t){return t?function(t){return new r.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},120:function(t,e,n){var r=n(88)(Object,"create");t.exports=r},1208:function(t,e){const n="undefined"!=typeof chrome;(n?chrome:browser).runtime.onMessage.addListener((t,e,r)=>{if(t&&"WTW_INJECT"===t.type&&e&&e.tab&&null!=e.tab.id&&t.file){const i={frameId:e.tab.frameId,file:t.file},o=()=>r();return n?chrome.tabs.executeScript(e.tab.id,i,o):browser.tabs.executeScript(e.tab.id,i).then(o),!0}})},121:function(t,e,n){var r=n(158);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},122:function(t,e,n){var r=n(352);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},123:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},124:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},125:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},126:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(124),i=n(48),o=n(67),s=n(47),a=n(123),u=n(125),c=n(114),f=function(t){if(t&&"function"==typeof t[s.a])return f=t,function(t){var e=f[s.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(r.a)(t);if(Object(u.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,f,l=Object(c.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+l+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},127:function(t,e,n){"use strict";function r(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.d(e,"a",(function(){return r}))},13:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(54),i=n(114),o=n(45),s=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),a=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,a=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var f=0;f<n.length;++f){n[f].remove(this)}if(Object(o.a)(a))try{a.call(this)}catch(t){e=t instanceof s?u(t.errors):[t]}if(Object(r.a)(c)){f=-1;for(var l=c.length;++f<l;){var h=c[f];if(Object(i.a)(h))try{h.unsubscribe()}catch(t){e=e||[],t instanceof s?e=e.concat(u(t.errors)):e.push(t)}}}if(e)throw new s(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function u(t){return t.reduce((function(t,e){return t.concat(e instanceof s?e.errors:e)}),[])}},131:function(t,e,n){t.exports=window.axios},132:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(145),i=n(115);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(i.a,t)}},1323:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(145);function i(t,e){return Object(r.a)(t,e,1)}},134:function(t,e,n){var r=n(203),i=n(208),o=n(393);t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}},137:function(t,e){t.exports=function(t){return t}},138:function(t,e,n){var r=n(346),i=n(347),o=n(348),s=n(349),a=n(350);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},139:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(127);function i(t,e){if(t){if("string"==typeof t)return Object(r.a)(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)?Object(r.a)(t,e):void 0}}},143:function(t,e,n){var r=n(51),i=n(162),o=n(332),s=n(257);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},144:function(t,e,n){var r=n(66),i=n(58);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},145:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),i=n(34),o=n(35),s=n(94),a=n(10),u=n(64);function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c((function(n,r){return Object(u.a)(t(n,r)).pipe(Object(a.a)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new f(t,n))})}var f=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent))},t}(),l=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new s.a(this,e,n),o=this.destination;o.add(r);var a=Object(i.a)(this,t,void 0,void 0,r);a!==r&&o.add(a)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},151:function(t,e,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},152:function(t,e,n){var r=n(255),i=n(328),o=n(153);t.exports=function(t){return o(t)?r(t):i(t)}},153:function(t,e,n){var r=n(200),i=n(157);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},156:function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=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}},157:function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},158:function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},161:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(10);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Object(r.a)(o(t,n))(e)}}function o(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}},162:function(t,e,n){var r=n(51),i=n(144),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},163:function(t,e,n){var r=n(335),i=n(351),o=n(353),s=n(354),a=n(355);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},164:function(t,e,n){var r=n(88)(n(62),"Map");t.exports=r},176:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n(7);function o(t,e){return function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.compare,this.keySelector))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(i.a)},179:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Object(r.a)(t,e,n[e])}))}return t}},180:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),i=n(106);var o=n(7),s=n(103);function a(t,e){void 0===e&&(e=i.a);var n,r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new u(r,e))}}var u=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.__extends(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new f(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(s.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(s.a.createComplete()),this.unsubscribe()},e}(o.a),f=function(){return function(t,e){this.time=t,this.notification=e}}()},183:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},19:function(t,e,n){"use strict";function r(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}e.a=function(t,e){var n;void 0===e&&(e=r);var i,o=[],s=!1;return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return s&&n===this&&e(r,o)||(i=t.apply(this,r),s=!0,n=this,o=r),i}}},192:function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,s=0;0!==n;){n-=s=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--s);i%=65521,o%=65521}return i|o<<16|0}},193:function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,s=i+n;t^=-1;for(var a=i;a<s;a++)t=t>>>8^o[255&(t^e[a])];return-1^t}},194:function(t,e,n){"use strict";var r=n(65),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new r.Buf8(256),a=0;a<256;a++)s[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",s=0;s<e;s++)n+=String.fromCharCode(t[s]);return n}s[254]=s[254]=1,e.string2buf=function(t){var e,n,i,o,s,a=t.length,u=0;for(o=0;o<a;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(u),s=0,o=0;s<u;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[s++]=n:n<2048?(e[s++]=192|n>>>6,e[s++]=128|63&n):n<65536?(e[s++]=224|n>>>12,e[s++]=128|n>>>6&63,e[s++]=128|63&n):(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63,e[s++]=128|n>>>6&63,e[s++]=128|63&n);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},e.buf2string=function(t,e){var n,r,i,o,a=e||t.length,c=new Array(2*a);for(r=0,n=0;n<a;)if((i=t[n++])<128)c[r++]=i;else if((o=s[i])>4)c[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<a;)i=i<<6|63&t[n++],o--;o>1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return u(c,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}},195:function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},196:function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},197:function(t,e,n){var r=n(323),i=n(58),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},198:function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},199:function(t,e,n){(function(t){var r=n(62),i=n(326),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||i;t.exports=u}).call(this,n(183)(t))},200:function(t,e,n){var r=n(66),i=n(109);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},201:function(t,e,n){var r=n(143),i=n(110);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},202:function(t,e){t.exports=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}},203:function(t,e,n){var r=n(212);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},208:function(t,e,n){var r=n(321),i=n(152);t.exports=function(t,e){return t&&r(t,e,i)}},209:function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},21:function(t,e,n){var r=n(201);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},210:function(t,e,n){var r=n(327),i=n(243),o=n(244),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},211:function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},212:function(t,e,n){var r=n(88),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},213:function(t,e,n){var r=n(401),i=n(58);t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,s,t,a))}},214:function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},215:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return r}))},216:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,"a",(function(){return r}))},217:function(t,e,n){var r=n(422)(n(427));t.exports=r},222:function(t,e,n){var r=n(138),i=n(396),o=n(397),s=n(398),a=n(399),u=n(400);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},23:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},231:function(t,e,n){var r=n(402),i=n(405),o=n(406);t.exports=function(t,e,n,s,a,u){var c=1&n,f=t.length,l=e.length;if(f!=l&&!(c&&l>f))return!1;var h=u.get(t);if(h&&u.get(e))return h==e;var d=-1,p=!0,b=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++d<f;){var v=t[d],_=e[d];if(s)var w=c?s(_,v,d,e,t,u):s(v,_,d,t,e,u);if(void 0!==w){if(w)continue;p=!1;break}if(b){if(!i(e,(function(t,e){if(!o(b,e)&&(v===t||a(v,t,n,s,u)))return b.push(e)}))){p=!1;break}}else if(v!==_&&!a(v,_,n,s,u)){p=!1;break}}return u.delete(t),u.delete(e),p}},232:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},233:function(t,e,n){var r=n(109);t.exports=function(t){return t==t&&!r(t)}},234:function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},235:function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},243:function(t,e){t.exports=function(t){return function(e){return t(e)}}},244:function(t,e,n){(function(t){var r=n(198),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(this,n(183)(t))},245:function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},246:function(t,e,n){var r=n(203),i=n(158),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},25:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},254:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},255:function(t,e,n){var r=n(209),i=n(197),o=n(51),s=n(199),a=n(156),u=n(210),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),f=!n&&i(t),l=!n&&!f&&s(t),h=!n&&!f&&!l&&u(t),d=n||f||l||h,p=d?r(t.length,String):[],b=p.length;for(var v in t)!e&&!c.call(t,v)||d&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||a(v,b))||p.push(v);return p}},256:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},257:function(t,e,n){var r=n(356);t.exports=function(t){return null==t?"":r(t)}},258:function(t,e,n){var r=n(411),i=n(164),o=n(412),s=n(413),a=n(414),u=n(66),c=n(211),f=c(r),l=c(i),h=c(o),d=c(s),p=c(a),b=u;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=b(new i)||o&&"[object Promise]"!=b(o.resolve())||s&&"[object Set]"!=b(new s)||a&&"[object WeakMap]"!=b(new a))&&(b=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case f:return"[object DataView]";case l:return"[object Map]";case h:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=b},27:function(t,e,n){var r=n(357);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},28:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(215);var i=n(139),o=n(216);function s(t,e){return Object(r.a)(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 s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(t,e)||Object(i.a)(t,e)||Object(o.a)()}},3:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return a})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return f})),n.d(e,"__generator",(function(){return l})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return b})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return _})),n.d(e,"__await",(function(){return w})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return m})),n.d(e,"__asyncValues",(function(){return g})),n.d(e,"__makeTemplateObject",(function(){return x})),n.d(e,"__importStar",(function(){return k})),n.d(e,"__importDefault",(function(){return j})),n.d(e,"__classPrivateFieldGet",(function(){return S})),n.d(e,"__classPrivateFieldSet",(function(){return O})); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function a(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function f(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(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(s,a)}u((r=r.apply(t,e||[])).next())}))}function l(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function h(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function d(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function _(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function w(t){return this instanceof w?(this.v=t,this):new w(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{(n=i[t](e)).value instanceof w?Promise.resolve(n.value.v).then(u,c):f(o[0][2],n)}catch(t){f(o[0][3],t)}var n}function u(t){a("next",t)}function c(t){a("throw",t)}function f(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function m(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:w(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function g(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function k(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function j(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function O(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},304:function(t,e,n){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,u=s(t),c=1;c<arguments.length;c++){for(var f in n=Object(arguments[c]))i.call(n,f)&&(u[f]=n[f]);if(r){a=r(n);for(var l=0;l<a.length;l++)o.call(n,a[l])&&(u[a[l]]=n[a[l]])}}return u}},308:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(3),i=n(91),o=n(69),s=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},31:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(127);var i=n(214),o=n(139);function s(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(i.a)(t)||Object(o.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.")}()}},312:function(t,e,n){"use strict";var r=n(313),i=n(65),o=n(194),s=n(151),a=n(195),u=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(s[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=r.deflateSetDictionary(this.strm,f)))throw new Error(s[n]);this._dict_set=!0}}function f(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}c.prototype.push=function(t,e){var n,s,a=this.strm,c=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=o.string2buf(t):"[object ArrayBuffer]"===u.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new i.Buf8(c),a.next_out=0,a.avail_out=c),1!==(n=r.deflate(a,s))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(a.output,a.next_out))):this.onData(i.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==n);return 4===s?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==s||(this.onEnd(0),a.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=c,e.deflate=f,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},313:function(t,e,n){"use strict";var r,i=n(65),o=n(314),s=n(192),a=n(193),u=n(151);function c(t,e){return t.msg=u[e],e}function f(t){return(t<<1)-(t>4?9:0)}function l(t){for(var e=t.length;--e>=0;)t[e]=0}function h(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function d(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,h(t.strm)}function p(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function v(t,e){var n,r,i=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+258,d=c[o+s-1],p=c[o+s];t.prev_length>=t.good_match&&(i>>=2),a>t.lookahead&&(a=t.lookahead);do{if(c[(n=e)+s]===p&&c[n+s-1]===d&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<h);if(r=258-(h-o),o=h-258,r>s){if(t.match_start=e,s=r,r>=a)break;d=c[o+s-1],p=c[o+s]}}}while((e=l[e&f])>u&&0!=--i);return s<=t.lookahead?s:t.lookahead}function _(t){var e,n,r,o,u,c,f,l,h,d,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-262)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=p?r-p:0}while(--n);e=n=p;do{r=t.prev[--e],t.prev[e]=r>=p?r-p:0}while(--n);o+=p}if(0===t.strm.avail_in)break;if(c=t.strm,f=t.window,l=t.strstart+t.lookahead,h=o,d=void 0,(d=c.avail_in)>h&&(d=h),n=0===d?0:(c.avail_in-=d,i.arraySet(f,c.input,c.next_in,d,l),1===c.state.wrap?c.adler=s(c.adler,f,d,l):2===c.state.wrap&&(c.adler=a(c.adler,f,d,l)),c.next_in+=d,c.total_in+=d,d),t.lookahead+=n,t.lookahead+t.insert>=3)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+3-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function w(t,e){for(var n,r;;){if(t.lookahead<262){if(_(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=v(t,n)),t.match_length>=3)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}function y(t,e){for(var n,r,i;;){if(t.lookahead<262){if(_(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=v(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(d(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=o._tr_tally(t,0,t.window[t.strstart-1]))&&d(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}function m(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function g(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),l(this.dyn_ltree),l(this.dyn_dtree),l(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),l(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),l(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):c(t,-2)}function k(t){var e,n=x(t);return 0===n&&((e=t.state).window_size=2*e.w_size,l(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function j(t,e,n,r,o,s){if(!t)return-2;var a=1;if(-1===e&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),o<1||o>9||8!==n||r<8||r>15||e<0||e>9||s<0||s>4)return c(t,-2);8===r&&(r=9);var u=new g;return t.state=u,u.strm=t,u.wrap=a,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=s,u.method=n,k(t)}r=[new m(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(_(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,d(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(d(t,!1),t.strm.avail_out),1)})),new m(4,4,8,4,w),new m(4,5,16,8,w),new m(4,6,32,32,w),new m(4,4,16,16,y),new m(8,16,32,32,y),new m(8,16,128,128,y),new m(8,32,128,256,y),new m(32,128,258,1024,y),new m(32,258,258,4096,y)],e.deflateInit=function(t,e){return j(t,e,8,15,8,0)},e.deflateInit2=j,e.deflateReset=k,e.deflateResetKeep=x,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var n,i,s,u;if(!t||!t.state||e>5||e<0)return t?c(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return c(t,0===t.avail_out?-5:-2);if(i.strm=t,n=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=a(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,3),i.status=113);else{var v=8+(i.w_bits-8<<4)<<8;v|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(v|=32),v+=31-v%31,i.status=113,b(i,v),0!==i.strstart&&(b(i,t.adler>>>16),b(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),h(t),s=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),h(t),s=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,p(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),h(t),s=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,p(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),0===u&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&h(t),i.pending+2<=i.pending_buf_size&&(p(i,255&t.adler),p(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(h(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(n)&&4!==e)return c(t,-5);if(666===i.status&&0!==t.avail_in)return c(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var w=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(_(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var n,r,i,s,a=t.window;;){if(t.lookahead<=258){if(_(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){s=t.strstart+258;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<s);t.match_length=258-(s-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(i,e):r[i.level].func(i,e);if(3!==w&&4!==w||(i.status=666),1===w||3===w)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===w&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(l(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),h(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&t.adler),p(i,t.adler>>8&255),p(i,t.adler>>16&255),p(i,t.adler>>24&255),p(i,255&t.total_in),p(i,t.total_in>>8&255),p(i,t.total_in>>16&255),p(i,t.total_in>>24&255)):(b(i,t.adler>>>16),b(i,65535&t.adler)),h(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?c(t,-2):(t.state=null,113===e?c(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var n,r,o,a,u,c,f,h,d=e.length;if(!t||!t.state)return-2;if(2===(a=(n=t.state).wrap)||1===a&&42!==n.status||n.lookahead)return-2;for(1===a&&(t.adler=s(t.adler,e,d,0)),n.wrap=0,d>=n.w_size&&(0===a&&(l(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,e,d-n.w_size,n.w_size,0),e=h,d=n.w_size),u=t.avail_in,c=t.next_in,f=t.input,t.avail_in=d,t.next_in=0,t.input=e,_(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=2,_(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=c,t.input=f,t.avail_in=u,n.wrap=a,0},e.deflateInfo="pako deflate (from Nodeca project)"},314:function(t,e,n){"use strict";var r=n(65);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],s=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var f=new Array(60);i(f);var l=new Array(512);i(l);var h=new Array(256);i(h);var d=new Array(29);i(d);var p,b,v,_=new Array(30);function w(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function y(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function m(t){return t<256?l[t]:l[256+(t>>>7)]}function g(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,g(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function k(t,e,n){x(t,n[2*e],n[2*e+1])}function j(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function S(t,e,n){var r,i,o=new Array(16),s=0;for(r=1;r<=15;r++)o[r]=s=s+n[r-1]<<1;for(i=0;i<=e;i++){var a=t[2*i+1];0!==a&&(t[2*i]=j(o[a]++,a))}}function O(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function E(t){t.bi_valid>8?g(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function A(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function z(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&A(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!A(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function T(t,e,n){var r,i,a,u,c=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*c]<<8|t.pending_buf[t.d_buf+2*c+1],i=t.pending_buf[t.l_buf+c],c++,0===r?k(t,i,e):(k(t,(a=h[i])+256+1,e),0!==(u=o[a])&&x(t,i-=d[a],u),k(t,a=m(--r),n),0!==(u=s[a])&&x(t,r-=_[a],u))}while(c<t.last_lit);k(t,256,e)}function N(t,e){var n,r,i,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,a&&(t.static_len-=s[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)z(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],z(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,z(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,s,a,u=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,b=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,b++),u[2*r+1]=o,r>c||(t.bl_count[o]++,s=0,r>=d&&(s=h[r-d]),a=u[2*r],t.opt_len+=a*(o+s),l&&(t.static_len+=a*(f[2*r+1]+s)));if(0!==b){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,b-=2}while(b>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),S(o,c,t.bl_count)}function B(t,e,n){var r,i,o=-1,s=e[1],a=0,u=7,c=4;for(0===s&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=s,s=e[2*(r+1)+1],++a<u&&i===s||(a<c?t.bl_tree[2*i]+=a:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,a=0,o=i,0===s?(u=138,c=3):i===s?(u=6,c=3):(u=7,c=4))}function C(t,e,n){var r,i,o=-1,s=e[1],a=0,u=7,c=4;for(0===s&&(u=138,c=3),r=0;r<=n;r++)if(i=s,s=e[2*(r+1)+1],!(++a<u&&i===s)){if(a<c)do{k(t,i,t.bl_tree)}while(0!=--a);else 0!==i?(i!==o&&(k(t,i,t.bl_tree),a--),k(t,16,t.bl_tree),x(t,a-3,2)):a<=10?(k(t,17,t.bl_tree),x(t,a-3,3)):(k(t,18,t.bl_tree),x(t,a-11,7));a=0,o=i,0===s?(u=138,c=3):i===s?(u=6,c=3):(u=7,c=4)}}i(_);var R=!1;function P(t,e,n,i){x(t,0+(i?1:0),3),function(t,e,n,i){E(t),i&&(g(t,n),g(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}e._tr_init=function(t){R||(!function(){var t,e,n,r,i,u=new Array(16);for(n=0,r=0;r<28;r++)for(d[r]=n,t=0;t<1<<o[r];t++)h[n++]=r;for(h[n-1]=r,i=0,r=0;r<16;r++)for(_[r]=i,t=0;t<1<<s[r];t++)l[i++]=r;for(i>>=7;r<30;r++)for(_[r]=i<<7,t=0;t<1<<s[r]-7;t++)l[256+i++]=r;for(e=0;e<=15;e++)u[e]=0;for(t=0;t<=143;)c[2*t+1]=8,t++,u[8]++;for(;t<=255;)c[2*t+1]=9,t++,u[9]++;for(;t<=279;)c[2*t+1]=7,t++,u[7]++;for(;t<=287;)c[2*t+1]=8,t++,u[8]++;for(S(c,287,u),t=0;t<30;t++)f[2*t+1]=5,f[2*t]=j(t,5);p=new w(c,o,257,286,15),b=new w(f,s,0,30,15),v=new w(new Array(0),a,0,19,7)}(),R=!0),t.l_desc=new y(t.dyn_ltree,p),t.d_desc=new y(t.dyn_dtree,b),t.bl_desc=new y(t.bl_tree,v),t.bi_buf=0,t.bi_valid=0,O(t)},e._tr_stored_block=P,e._tr_flush_block=function(t,e,n,r){var i,o,s=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),N(t,t.l_desc),N(t,t.d_desc),s=function(t){var e;for(B(t,t.dyn_ltree,t.l_desc.max_code),B(t,t.dyn_dtree,t.d_desc.max_code),N(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?P(t,e,n,r):4===t.strategy||o===i?(x(t,2+(r?1:0),3),T(t,c,f)):(x(t,4+(r?1:0),3),function(t,e,n,r){var i;for(x(t,e-257,5),x(t,n-1,5),x(t,r-4,4),i=0;i<r;i++)x(t,t.bl_tree[2*u[i]+1],3);C(t,t.dyn_ltree,e-1),C(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),T(t,t.dyn_ltree,t.dyn_dtree)),O(t),r&&E(t)},e._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(h[n]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),k(t,256,c),function(t){16===t.bi_valid?(g(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},315:function(t,e,n){"use strict";var r=n(316),i=n(65),o=n(194),s=n(196),a=n(151),u=n(195),c=n(319),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==s.Z_OK)throw new Error(a[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==s.Z_OK))throw new Error(a[n])}function h(t,e){var n=new l(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}l.prototype.push=function(t,e){var n,a,u,c,l,h=this.strm,d=this.options.chunkSize,p=this.options.dictionary,b=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?h.input=o.binstring2buf(t):"[object ArrayBuffer]"===f.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(d),h.next_out=0,h.avail_out=d),(n=r.inflate(h,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&p&&(n=r.inflateSetDictionary(this.strm,p)),n===s.Z_BUF_ERROR&&!0===b&&(n=s.Z_OK,b=!1),n!==s.Z_STREAM_END&&n!==s.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==s.Z_STREAM_END&&(0!==h.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(u=o.utf8border(h.output,h.next_out),c=h.next_out-u,l=o.buf2string(h.output,u),h.next_out=c,h.avail_out=d-c,c&&i.arraySet(h.output,h.output,u,c,0),this.onData(l)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(b=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==s.Z_STREAM_END);return n===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),h.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},316:function(t,e,n){"use strict";var r=n(65),i=n(192),o=n(193),s=n(317),a=n(318);function u(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(852),e.distcode=e.distdyn=new r.Buf32(592),e.sane=1,e.back=-1,0):-2}function l(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):-2}function h(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,l(t))):-2}function d(t,e){var n,r;return t?(r=new c,t.state=r,r.window=null,0!==(n=h(t,e))&&(t.state=null),n):-2}var p,b,v=!0;function _(t){if(v){var e;for(p=new r.Buf32(512),b=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,p,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,b,0,t.work,{bits:5}),v=!1}t.lencode=p,t.lenbits=9,t.distcode=b,t.distbits=5}function w(t,e,n,i){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new r.Buf8(s.wsize)),i>=s.wsize?(r.arraySet(s.window,e,n-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((o=s.wsize-s.wnext)>i&&(o=i),r.arraySet(s.window,e,n-i,o,s.wnext),(i-=o)?(r.arraySet(s.window,e,n-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}e.inflateReset=l,e.inflateReset2=h,e.inflateResetKeep=f,e.inflateInit=function(t){return d(t,15)},e.inflateInit2=d,e.inflate=function(t,e){var n,c,f,l,h,d,p,b,v,y,m,g,x,k,j,S,O,E,A,z,T,N,B,C,R=0,P=new r.Buf8(4),I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(n=t.state).mode&&(n.mode=13),h=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,c=t.input,d=t.avail_in,b=n.hold,v=n.bits,y=d,m=p,N=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}if(2&n.wrap&&35615===b){n.check=0,P[0]=255&b,P[1]=b>>>8&255,n.check=o(n.check,P,2,0),b=0,v=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",n.mode=30;break}if(v-=4,T=8+(15&(b>>>=4)),0===n.wbits)n.wbits=T;else if(T>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<T,t.adler=n.check=1,n.mode=512&b?10:12,b=0,v=0;break;case 2:for(;v<16;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}if(n.flags=b,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(P[0]=255&b,P[1]=b>>>8&255,n.check=o(n.check,P,2,0)),b=0,v=0,n.mode=3;case 3:for(;v<32;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}n.head&&(n.head.time=b),512&n.flags&&(P[0]=255&b,P[1]=b>>>8&255,P[2]=b>>>16&255,P[3]=b>>>24&255,n.check=o(n.check,P,4,0)),b=0,v=0,n.mode=4;case 4:for(;v<16;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(P[0]=255&b,P[1]=b>>>8&255,n.check=o(n.check,P,2,0)),b=0,v=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(P[0]=255&b,P[1]=b>>>8&255,n.check=o(n.check,P,2,0)),b=0,v=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((g=n.length)>d&&(g=d),g&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,l,g,T)),512&n.flags&&(n.check=o(n.check,c,g,l)),d-=g,l+=g,n.length-=g),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===d)break t;g=0;do{T=c[l+g++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T))}while(T&&g<d);if(512&n.flags&&(n.check=o(n.check,c,g,l)),d-=g,l+=g,T)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===d)break t;g=0;do{T=c[l+g++],n.head&&T&&n.length<65536&&(n.head.comment+=String.fromCharCode(T))}while(T&&g<d);if(512&n.flags&&(n.check=o(n.check,c,g,l)),d-=g,l+=g,T)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}if(b!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}b=0,v=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}t.adler=n.check=u(b),b=0,v=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=h,t.avail_out=p,t.next_in=l,t.avail_in=d,n.hold=b,n.bits=v,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){b>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}switch(n.last=1&b,v-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(_(n),n.mode=20,6===e){b>>>=2,v-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,b=0,v=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(g=n.length){if(g>d&&(g=d),g>p&&(g=p),0===g)break t;r.arraySet(f,c,l,g,h),d-=g,l+=g,p-=g,h+=g,n.length-=g;break}n.mode=12;break;case 17:for(;v<14;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}if(n.nlen=257+(31&b),b>>>=5,v-=5,n.ndist=1+(31&b),b>>>=5,v-=5,n.ncode=4+(15&b),b>>>=4,v-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}n.lens[I[n.have++]]=7&b,b>>>=3,v-=3}for(;n.have<19;)n.lens[I[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,B={bits:n.lenbits},N=a(0,n.lens,0,19,n.lencode,0,n.work,B),n.lenbits=B.bits,N){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;S=(R=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,O=65535&R,!((j=R>>>24)<=v);){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}if(O<16)b>>>=j,v-=j,n.lens[n.have++]=O;else{if(16===O){for(C=j+2;v<C;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}if(b>>>=j,v-=j,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}T=n.lens[n.have-1],g=3+(3&b),b>>>=2,v-=2}else if(17===O){for(C=j+3;v<C;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}v-=j,T=0,g=3+(7&(b>>>=j)),b>>>=3,v-=3}else{for(C=j+7;v<C;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}v-=j,T=0,g=11+(127&(b>>>=j)),b>>>=7,v-=7}if(n.have+g>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;g--;)n.lens[n.have++]=T}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,B={bits:n.lenbits},N=a(1,n.lens,0,n.nlen,n.lencode,0,n.work,B),n.lenbits=B.bits,N){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,B={bits:n.distbits},N=a(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,B),n.distbits=B.bits,N){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(d>=6&&p>=258){t.next_out=h,t.avail_out=p,t.next_in=l,t.avail_in=d,n.hold=b,n.bits=v,s(t,m),h=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,c=t.input,d=t.avail_in,b=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;S=(R=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,O=65535&R,!((j=R>>>24)<=v);){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}if(S&&0==(240&S)){for(E=j,A=S,z=O;S=(R=n.lencode[z+((b&(1<<E+A)-1)>>E)])>>>16&255,O=65535&R,!(E+(j=R>>>24)<=v);){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}b>>>=E,v-=E,n.back+=E}if(b>>>=j,v-=j,n.back+=j,n.length=O,0===S){n.mode=26;break}if(32&S){n.back=-1,n.mode=12;break}if(64&S){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&S,n.mode=22;case 22:if(n.extra){for(C=n.extra;v<C;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;S=(R=n.distcode[b&(1<<n.distbits)-1])>>>16&255,O=65535&R,!((j=R>>>24)<=v);){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}if(0==(240&S)){for(E=j,A=S,z=O;S=(R=n.distcode[z+((b&(1<<E+A)-1)>>E)])>>>16&255,O=65535&R,!(E+(j=R>>>24)<=v);){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}b>>>=E,v-=E,n.back+=E}if(b>>>=j,v-=j,n.back+=j,64&S){t.msg="invalid distance code",n.mode=30;break}n.offset=O,n.extra=15&S,n.mode=24;case 24:if(n.extra){for(C=n.extra;v<C;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===p)break t;if(g=m-p,n.offset>g){if((g=n.offset-g)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}g>n.wnext?(g-=n.wnext,x=n.wsize-g):x=n.wnext-g,g>n.length&&(g=n.length),k=n.window}else k=f,x=h-n.offset,g=n.length;g>p&&(g=p),p-=g,n.length-=g;do{f[h++]=k[x++]}while(--g);0===n.length&&(n.mode=21);break;case 26:if(0===p)break t;f[h++]=n.length,p--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===d)break t;d--,b|=c[l++]<<v,v+=8}if(m-=p,t.total_out+=m,n.total+=m,m&&(t.adler=n.check=n.flags?o(n.check,f,m,h-m):i(n.check,f,m,h-m)),m=p,(n.flags?b:u(b))!==n.check){t.msg="incorrect data check",n.mode=30;break}b=0,v=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===d)break t;d--,b+=c[l++]<<v,v+=8}if(b!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}b=0,v=0}n.mode=29;case 29:N=1;break t;case 30:N=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=h,t.avail_out=p,t.next_in=l,t.avail_in=d,n.hold=b,n.bits=v,(n.wsize||m!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&w(t,t.output,t.next_out,m-t.avail_out)?(n.mode=31,-4):(y-=t.avail_in,m-=t.avail_out,t.total_in+=y,t.total_out+=m,n.total+=m,n.wrap&&m&&(t.adler=n.check=n.flags?o(n.check,f,m,t.next_out-m):i(n.check,f,m,t.next_out-m)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===y&&0===m||4===e)&&0===N&&(N=-5),N)},e.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?-2:(n.head=e,e.done=!1,0):-2},e.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?-2:11===n.mode&&i(1,e,r,0)!==n.check?-3:w(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},e.inflateInfo="pako inflate (from Nodeca project)"},317:function(t,e,n){"use strict";t.exports=function(t,e){var n,r,i,o,s,a,u,c,f,l,h,d,p,b,v,_,w,y,m,g,x,k,j,S,O;n=t.state,r=t.next_in,S=t.input,i=r+(t.avail_in-5),o=t.next_out,O=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),u=n.dmax,c=n.wsize,f=n.whave,l=n.wnext,h=n.window,d=n.hold,p=n.bits,b=n.lencode,v=n.distcode,_=(1<<n.lenbits)-1,w=(1<<n.distbits)-1;t:do{p<15&&(d+=S[r++]<<p,p+=8,d+=S[r++]<<p,p+=8),y=b[d&_];e:for(;;){if(d>>>=m=y>>>24,p-=m,0===(m=y>>>16&255))O[o++]=65535&y;else{if(!(16&m)){if(0==(64&m)){y=b[(65535&y)+(d&(1<<m)-1)];continue e}if(32&m){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}g=65535&y,(m&=15)&&(p<m&&(d+=S[r++]<<p,p+=8),g+=d&(1<<m)-1,d>>>=m,p-=m),p<15&&(d+=S[r++]<<p,p+=8,d+=S[r++]<<p,p+=8),y=v[d&w];n:for(;;){if(d>>>=m=y>>>24,p-=m,!(16&(m=y>>>16&255))){if(0==(64&m)){y=v[(65535&y)+(d&(1<<m)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&y,p<(m&=15)&&(d+=S[r++]<<p,(p+=8)<m&&(d+=S[r++]<<p,p+=8)),(x+=d&(1<<m)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=m,p-=m,x>(m=o-s)){if((m=x-m)>f&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=0,j=h,0===l){if(k+=c-m,m<g){g-=m;do{O[o++]=h[k++]}while(--m);k=o-x,j=O}}else if(l<m){if(k+=c+l-m,(m-=l)<g){g-=m;do{O[o++]=h[k++]}while(--m);if(k=0,l<g){g-=m=l;do{O[o++]=h[k++]}while(--m);k=o-x,j=O}}}else if(k+=l-m,m<g){g-=m;do{O[o++]=h[k++]}while(--m);k=o-x,j=O}for(;g>2;)O[o++]=j[k++],O[o++]=j[k++],O[o++]=j[k++],g-=3;g&&(O[o++]=j[k++],g>1&&(O[o++]=j[k++]))}else{k=o-x;do{O[o++]=O[k++],O[o++]=O[k++],O[o++]=O[k++],g-=3}while(g>2);g&&(O[o++]=O[k++],g>1&&(O[o++]=O[k++]))}break}}break}}while(r<i&&o<a);r-=g=p>>3,d&=(1<<(p-=g<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<a?a-o+257:257-(o-a),n.hold=d,n.bits=p}},318:function(t,e,n){"use strict";var r=n(65),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,n,u,c,f,l,h){var d,p,b,v,_,w,y,m,g,x=h.bits,k=0,j=0,S=0,O=0,E=0,A=0,z=0,T=0,N=0,B=0,C=null,R=0,P=new r.Buf16(16),I=new r.Buf16(16),D=null,U=0;for(k=0;k<=15;k++)P[k]=0;for(j=0;j<u;j++)P[e[n+j]]++;for(E=x,O=15;O>=1&&0===P[O];O--);if(E>O&&(E=O),0===O)return c[f++]=20971520,c[f++]=20971520,h.bits=1,0;for(S=1;S<O&&0===P[S];S++);for(E<S&&(E=S),T=1,k=1;k<=15;k++)if(T<<=1,(T-=P[k])<0)return-1;if(T>0&&(0===t||1!==O))return-1;for(I[1]=0,k=1;k<15;k++)I[k+1]=I[k]+P[k];for(j=0;j<u;j++)0!==e[n+j]&&(l[I[e[n+j]]++]=j);if(0===t?(C=D=l,w=19):1===t?(C=i,R-=257,D=o,U-=257,w=256):(C=s,D=a,w=-1),B=0,j=0,k=S,_=f,A=E,z=0,b=-1,v=(N=1<<E)-1,1===t&&N>852||2===t&&N>592)return 1;for(;;){y=k-z,l[j]<w?(m=0,g=l[j]):l[j]>w?(m=D[U+l[j]],g=C[R+l[j]]):(m=96,g=0),d=1<<k-z,S=p=1<<A;do{c[_+(B>>z)+(p-=d)]=y<<24|m<<16|g|0}while(0!==p);for(d=1<<k-1;B&d;)d>>=1;if(0!==d?(B&=d-1,B+=d):B=0,j++,0==--P[k]){if(k===O)break;k=e[n+l[j]]}if(k>E&&(B&v)!==b){for(0===z&&(z=E),_+=S,T=1<<(A=k-z);A+z<O&&!((T-=P[A+z])<=0);)A++,T<<=1;if(N+=1<<A,1===t&&N>852||2===t&&N>592)return 1;c[b=B&v]=E<<24|A<<16|_-f|0}}return 0!==B&&(c[_+B]=k-z<<24|64<<16|0),h.bits=E,0}},319:function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},32:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},320:function(t,e,n){var r=n(208),i=n(330)(r);t.exports=i},321:function(t,e,n){var r=n(322)();t.exports=r},322:function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var u=s[t?a:++i];if(!1===n(o[u],u,o))break}return e}}},323:function(t,e,n){var r=n(66),i=n(58);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},324:function(t,e,n){var r=n(117),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},325:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},326:function(t,e){t.exports=function(){return!1}},327:function(t,e,n){var r=n(66),i=n(157),o=n(58),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},328:function(t,e,n){var r=n(245),i=n(329),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},329:function(t,e,n){var r=n(256)(Object.keys,Object);t.exports=r},330:function(t,e,n){var r=n(153);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},331:function(t,e,n){var r=n(137);t.exports=function(t){return"function"==typeof t?t:r}},332:function(t,e,n){var r=n(333),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=s},333:function(t,e,n){var r=n(334);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},334:function(t,e,n){var r=n(163);function i(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 s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},335:function(t,e,n){var r=n(336),i=n(138),o=n(164);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},336:function(t,e,n){var r=n(337),i=n(342),o=n(343),s=n(344),a=n(345);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},337:function(t,e,n){var r=n(120);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},338:function(t,e,n){var r=n(200),i=n(339),o=n(109),s=n(211),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,f=u.toString,l=c.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:a).test(s(t))}},339:function(t,e,n){var r,i=n(340),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},34:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(94),i=n(126),o=n(8);function s(t,e,n,s,a){if(void 0===a&&(a=new r.a(t,n,s)),!a.closed)return e instanceof o.a?e.subscribe(a):Object(i.a)(e)(a)}},340:function(t,e,n){var r=n(62)["__core-js_shared__"];t.exports=r},341:function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},342:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},343:function(t,e,n){var r=n(120),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},344:function(t,e,n){var r=n(120),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},345:function(t,e,n){var r=n(120);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},346:function(t,e){t.exports=function(){this.__data__=[],this.size=0}},347:function(t,e,n){var r=n(121),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},348:function(t,e,n){var r=n(121);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},349:function(t,e,n){var r=n(121);t.exports=function(t){return r(this.__data__,t)>-1}},35:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(7).a)},350:function(t,e,n){var r=n(121);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},351:function(t,e,n){var r=n(122);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},352:function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},353:function(t,e,n){var r=n(122);t.exports=function(t){return r(this,t).get(t)}},354:function(t,e,n){var r=n(122);t.exports=function(t){return r(this,t).has(t)}},355:function(t,e,n){var r=n(122);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},356:function(t,e,n){var r=n(117),i=n(202),o=n(51),s=n(144),a=r?r.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},357:function(t,e,n){var r=n(246),i=n(143),o=n(156),s=n(109),a=n(110);t.exports=function(t,e,n,u){if(!s(t))return t;for(var c=-1,f=(e=i(e,t)).length,l=f-1,h=t;null!=h&&++c<f;){var d=a(e[c]),p=n;if(c!=l){var b=h[d];void 0===(p=u?u(b,d,h):void 0)&&(p=s(b)?b:o(e[c+1])?[]:{})}r(h,d,p),h=h[d]}return t}},358:function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},359:function(t,e,n){var r=n(232),i=n(378),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=a},371:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(3),i=n(7),o=n(106);function s(t,e){return void 0===e&&(e=o.a),function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.dueTime,this.scheduler))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(i.a);function c(t){t.debouncedNext()}},375:function(t,e,n){var r=n(62).Uint8Array;t.exports=r},376:function(t,e,n){var r=n(377),i=n(359),o=n(152);t.exports=function(t){return r(t,o,i)}},377:function(t,e,n){var r=n(358),i=n(51);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},378:function(t,e){t.exports=function(){return[]}},379:function(t,e,n){var r=n(423),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),u=Array(a);++s<a;)u[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(u),r(t,this,c)}}},38:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n(7);function o(t,e){return function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.a)},380:function(t,e,n){var r=n(424),i=n(426)(r);t.exports=i},383:function(t,e,n){var r; -/*! - * UAParser.js v0.7.21 - * Lightweight JavaScript-based User-Agent string parser - * https://github.com/faisalman/ua-parser-js - * - * Copyright © 2012-2019 Faisal Salman <f@faisalman.com> - * Licensed under MIT License - */!function(i,o){"use strict";var s="model",a="name",u="type",c="vendor",f="version",l="mobile",h="tablet",d="smarttv",p={extend:function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n},has:function(t,e){return"string"==typeof t&&-1!==e.toLowerCase().indexOf(t.toLowerCase())},lowerize:function(t){return t.toLowerCase()},major:function(t){return"string"==typeof t?t.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},b={rgx:function(t,e){for(var n,r,i,o,s,a,u=0;u<e.length&&!s;){var c=e[u],f=e[u+1];for(n=r=0;n<c.length&&!s;)if(s=c[n++].exec(t))for(i=0;i<f.length;i++)a=s[++r],"object"==typeof(o=f[i])&&o.length>0?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):void 0:this[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):this[o]=a||void 0;u+=2}},str:function(t,e){for(var n in e)if("object"==typeof e[n]&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(p.has(e[n][r],t))return"?"===n?void 0:n}else if(p.has(e[n],t))return"?"===n?void 0:n;return t}},v={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},_={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[a,f],[/(opios)[\/\s]+([\w\.]+)/i],[[a,"Opera Mini"],f],[/\s(opr)\/([\w\.]+)/i],[[a,"Opera"],f],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[a,f],[/(konqueror)\/([\w\.]+)/i],[[a,"Konqueror"],f],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[a,"IE"],f],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[a,"Edge"],f],[/(yabrowser)\/([\w\.]+)/i],[[a,"Yandex"],f],[/(Avast)\/([\w\.]+)/i],[[a,"Avast Secure Browser"],f],[/(AVG)\/([\w\.]+)/i],[[a,"AVG Secure Browser"],f],[/(puffin)\/([\w\.]+)/i],[[a,"Puffin"],f],[/(focus)\/([\w\.]+)/i],[[a,"Firefox Focus"],f],[/(opt)\/([\w\.]+)/i],[[a,"Opera Touch"],f],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[a,"UCBrowser"],f],[/(comodo_dragon)\/([\w\.]+)/i],[[a,/_/g," "],f],[/(windowswechat qbcore)\/([\w\.]+)/i],[[a,"WeChat(Win) Desktop"],f],[/(micromessenger)\/([\w\.]+)/i],[[a,"WeChat"],f],[/(brave)\/([\w\.]+)/i],[[a,"Brave"],f],[/(qqbrowserlite)\/([\w\.]+)/i],[a,f],[/(QQ)\/([\d\.]+)/i],[a,f],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[a,f],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[a,f],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[a,f],[/(MetaSr)[\/\s]?([\w\.]+)/i],[a],[/(LBBROWSER)/i],[a],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[f,[a,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[f,[a,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[a,f],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[f,[a,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[a,/(.+)/,"$1 WebView"],f],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[a,/(.+(?:g|us))(.+)/,"$1 $2"],f],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[f,[a,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[a,"Sailfish Browser"],f],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[a,f],[/(dolfin)\/([\w\.]+)/i],[[a,"Dolphin"],f],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[a,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[a,"Chrome"],f],[/(coast)\/([\w\.]+)/i],[[a,"Opera Coast"],f],[/fxios\/([\w\.-]+)/i],[f,[a,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[f,[a,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[f,a],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[a,"GSA"],f],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[a,[f,b.str,v.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[a,f],[/(navigator|netscape)\/([\w\.-]+)/i],[[a,"Netscape"],f],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[a,f]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",p.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",p.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",p.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[s,c,[u,h]],[/applecoremedia\/[\w\.]+ \((ipad)/],[s,[c,"Apple"],[u,h]],[/(apple\s{0,1}tv)/i],[[s,"Apple TV"],[c,"Apple"],[u,d]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[c,s,[u,h]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[s,[c,"Amazon"],[u,h]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[s,b.str,v.device.amazon.model],[c,"Amazon"],[u,l]],[/android.+aft([bms])\sbuild/i],[s,[c,"Amazon"],[u,d]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[s,c,[u,l]],[/\((ip[honed|\s\w*]+);/i],[s,[c,"Apple"],[u,l]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[c,s,[u,l]],[/\(bb10;\s(\w+)/i],[s,[c,"BlackBerry"],[u,l]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[s,[c,"Asus"],[u,h]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[c,"Sony"],[s,"Xperia Tablet"],[u,h]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[c,"Sony"],[u,l]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[c,s,[u,"console"]],[/android.+;\s(shield)\sbuild/i],[s,[c,"Nvidia"],[u,"console"]],[/(playstation\s[34portablevi]+)/i],[s,[c,"Sony"],[u,"console"]],[/(sprint\s(\w+))/i],[[c,b.str,v.device.sprint.vendor],[s,b.str,v.device.sprint.model],[u,l]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[c,[s,/_/g," "],[u,l]],[/(nexus\s9)/i],[s,[c,"HTC"],[u,h]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[s,[c,"Huawei"],[u,l]],[/android.+(bah2?-a?[lw]\d{2})/i],[s,[c,"Huawei"],[u,h]],[/(microsoft);\s(lumia[\s\w]+)/i],[c,s,[u,l]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[s,[c,"Microsoft"],[u,"console"]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[c,"Microsoft"],[u,l]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[s,[c,"Motorola"],[u,l]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[s,[c,"Motorola"],[u,h]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[c,p.trim],[s,p.trim],[u,d]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[c,"Samsung"],[u,d]],[/\(dtv[\);].+(aquos)/i],[s,[c,"Sharp"],[u,d]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[c,"Samsung"],s,[u,h]],[/smart-tv.+(samsung)/i],[c,[u,d],s],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[c,"Samsung"],s,[u,l]],[/sie-(\w*)/i],[s,[c,"Siemens"],[u,l]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[c,"Nokia"],s,[u,l]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[s,[c,"Acer"],[u,h]],[/android.+([vl]k\-?\d{3})\s+build/i],[s,[c,"LG"],[u,h]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[c,"LG"],s,[u,h]],[/(lg) netcast\.tv/i],[c,s,[u,d]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[s,[c,"LG"],[u,l]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[c,s,[u,h]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[s,[c,"Lenovo"],[u,h]],[/(lenovo)[_\s-]?([\w-]+)/i],[c,s,[u,l]],[/linux;.+((jolla));/i],[c,s,[u,l]],[/((pebble))app\/[\d\.]+\s/i],[c,s,[u,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[c,s,[u,l]],[/crkey/i],[[s,"Chromecast"],[c,"Google"],[u,d]],[/android.+;\s(glass)\s\d/i],[s,[c,"Google"],[u,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[s,[c,"Google"],[u,h]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[s,[c,"Google"],[u,l]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[s,/_/g," "],[c,"Xiaomi"],[u,l]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[s,/_/g," "],[c,"Xiaomi"],[u,h]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[s,[c,"Meizu"],[u,l]],[/(mz)-([\w-]{2,})/i],[[c,"Meizu"],s,[u,l]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[s,[c,"OnePlus"],[u,l]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[s,[c,"RCA"],[u,h]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[s,[c,"Dell"],[u,h]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[s,[c,"Verizon"],[u,h]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[c,"Barnes & Noble"],s,[u,h]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[s,[c,"NuVision"],[u,h]],[/android.+;\s(k88)\sbuild/i],[s,[c,"ZTE"],[u,h]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[s,[c,"Swiss"],[u,l]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[s,[c,"Swiss"],[u,h]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[s,[c,"Zeki"],[u,h]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[c,"Dragon Touch"],s,[u,h]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[s,[c,"Insignia"],[u,h]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[s,[c,"NextBook"],[u,h]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[c,"Voice"],s,[u,l]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[c,"LvTel"],s,[u,l]],[/android.+;\s(PH-1)\s/i],[s,[c,"Essential"],[u,l]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[s,[c,"Envizen"],[u,h]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[c,s,[u,h]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[s,[c,"MachSpeed"],[u,h]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[c,s,[u,h]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[s,[c,"Rotor"],[u,h]],[/android.+(KS(.+))\s+build/i],[s,[c,"Amazon"],[u,h]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[c,s,[u,h]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[u,p.lowerize],c,s],[/[\s\/\(](smart-?tv)[;\)]/i],[[u,d]],[/(android[\w\.\s\-]{0,9});.+build/i],[s,[c,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[f,[a,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[a,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[a,f],[/rv\:([\w\.]{1,9}).+(gecko)/i],[f,a]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[a,f],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[a,[f,b.str,v.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[a,"Windows"],[f,b.str,v.os.windows.version]],[/\((bb)(10);/i],[[a,"BlackBerry"],f],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[a,f],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[a,"Symbian"],f],[/\((series40);/i],[a],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[a,"Firefox OS"],f],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[a,f],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[a,"Chromium OS"],f],[/(sunos)\s?([\w\.\d]*)/i],[[a,"Solaris"],f],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[a,f],[/(haiku)\s(\w+)/i],[a,f],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[f,/_/g,"."],[a,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[a,"Mac OS"],[f,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[a,f]]},w=function(t,e){if("object"==typeof t&&(e=t,t=void 0),!(this instanceof w))return new w(t,e).getResult();var n=t||(i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=e?p.extend(_,e):_;return this.getBrowser=function(){var t={name:void 0,version:void 0};return b.rgx.call(t,n,r.browser),t.major=p.major(t.version),t},this.getCPU=function(){var t={architecture:void 0};return b.rgx.call(t,n,r.cpu),t},this.getDevice=function(){var t={vendor:void 0,model:void 0,type:void 0};return b.rgx.call(t,n,r.device),t},this.getEngine=function(){var t={name:void 0,version:void 0};return b.rgx.call(t,n,r.engine),t},this.getOS=function(){var t={name:void 0,version:void 0};return b.rgx.call(t,n,r.os),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(t){return n=t,this},this};w.VERSION="0.7.21",w.BROWSER={NAME:a,MAJOR:"major",VERSION:f},w.CPU={ARCHITECTURE:"architecture"},w.DEVICE={MODEL:s,VENDOR:c,TYPE:u,CONSOLE:"console",MOBILE:l,SMARTTV:d,TABLET:h,WEARABLE:"wearable",EMBEDDED:"embedded"},w.ENGINE={NAME:a,VERSION:f},w.OS={NAME:a,VERSION:f},void 0!==e?(void 0!==t&&t.exports&&(e=t.exports=w),e.UAParser=w):void 0===(r=function(){return w}.call(e,n,e,t))||(t.exports=r);var y=i&&(i.jQuery||i.Zepto);if(y&&!y.ua){var m=new w;y.ua=m.getResult(),y.ua.get=function(){return m.getUA()},y.ua.set=function(t){m.setUA(t);var e=m.getResult();for(var n in e)y.ua[n]=e[n]}}}("object"==typeof window?window:this)},384:function(t,e,n){var r=n(612),i=n(613);t.exports=function(t,e,n){var o=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var s=(t=t||{}).random||(t.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e)for(var a=0;a<16;++a)e[o+a]=s[a];return e||i(s)}},393:function(t,e,n){var r=n(394),i=n(416),o=n(137),s=n(51),a=n(420);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},394:function(t,e,n){var r=n(395),i=n(415),o=n(234);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},395:function(t,e,n){var r=n(222),i=n(213);t.exports=function(t,e,n,o){var s=n.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var c=n[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var f=(c=n[s])[0],l=t[f],h=c[1];if(u&&c[2]){if(void 0===l&&!(f in t))return!1}else{var d=new r;if(o)var p=o(l,h,f,t,e,d);if(!(void 0===p?i(h,l,3,o,d):p))return!1}}return!0}},396:function(t,e,n){var r=n(138);t.exports=function(){this.__data__=new r,this.size=0}},397:function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},398:function(t,e){t.exports=function(t){return this.__data__.get(t)}},399:function(t,e){t.exports=function(t){return this.__data__.has(t)}},400:function(t,e,n){var r=n(138),i=n(164),o=n(163);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},401:function(t,e,n){var r=n(222),i=n(231),o=n(407),s=n(410),a=n(258),u=n(51),c=n(199),f=n(210),l="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,p,b){var v=u(t),_=u(e),w=v?"[object Array]":a(t),y=_?"[object Array]":a(e),m=(w="[object Arguments]"==w?l:w)==l,g=(y="[object Arguments]"==y?l:y)==l,x=w==y;if(x&&c(t)){if(!c(e))return!1;v=!0,m=!1}if(x&&!m)return b||(b=new r),v||f(t)?i(t,e,n,d,p,b):o(t,e,w,n,d,p,b);if(!(1&n)){var k=m&&h.call(t,"__wrapped__"),j=g&&h.call(e,"__wrapped__");if(k||j){var S=k?t.value():t,O=j?e.value():e;return b||(b=new r),p(S,O,n,d,b)}}return!!x&&(b||(b=new r),s(t,e,n,d,p,b))}},402:function(t,e,n){var r=n(163),i=n(403),o=n(404);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},403:function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},404:function(t,e){t.exports=function(t){return this.__data__.has(t)}},405:function(t,e){t.exports=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}},406:function(t,e){t.exports=function(t,e){return t.has(e)}},407:function(t,e,n){var r=n(117),i=n(375),o=n(158),s=n(231),a=n(408),u=n(409),c=r?r.prototype:void 0,f=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,l,h){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||!l(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+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 d=a;case"[object Set]":var p=1&r;if(d||(d=u),t.size!=e.size&&!p)return!1;var b=h.get(t);if(b)return b==e;r|=2,h.set(t,e);var v=s(d(t),d(e),r,c,l,h);return h.delete(t),v;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},408:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},409:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},410:function(t,e,n){var r=n(376),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var u=1&n,c=r(t),f=c.length;if(f!=r(e).length&&!u)return!1;for(var l=f;l--;){var h=c[l];if(!(u?h in e:i.call(e,h)))return!1}var d=a.get(t);if(d&&a.get(e))return d==e;var p=!0;a.set(t,e),a.set(e,t);for(var b=u;++l<f;){var v=t[h=c[l]],_=e[h];if(o)var w=u?o(_,v,h,e,t,a):o(v,_,h,t,e,a);if(!(void 0===w?v===_||s(v,_,n,o,a):w)){p=!1;break}b||(b="constructor"==h)}if(p&&!b){var y=t.constructor,m=e.constructor;y==m||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(p=!1)}return a.delete(t),a.delete(e),p}},411:function(t,e,n){var r=n(88)(n(62),"DataView");t.exports=r},412:function(t,e,n){var r=n(88)(n(62),"Promise");t.exports=r},413:function(t,e,n){var r=n(88)(n(62),"Set");t.exports=r},414:function(t,e,n){var r=n(88)(n(62),"WeakMap");t.exports=r},415:function(t,e,n){var r=n(233),i=n(152);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},416:function(t,e,n){var r=n(213),i=n(21),o=n(417),s=n(162),a=n(233),u=n(234),c=n(110);t.exports=function(t,e){return s(t)&&a(e)?u(c(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},417:function(t,e,n){var r=n(418),i=n(419);t.exports=function(t,e){return null!=t&&i(t,e,r)}},418:function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},419:function(t,e,n){var r=n(143),i=n(197),o=n(51),s=n(156),a=n(157),u=n(110);t.exports=function(t,e,n){for(var c=-1,f=(e=r(e,t)).length,l=!1;++c<f;){var h=u(e[c]);if(!(l=null!=t&&n(t,h)))break;t=t[h]}return l||++c!=f?l:!!(f=null==t?0:t.length)&&a(f)&&s(h,f)&&(o(t)||i(t))}},420:function(t,e,n){var r=n(235),i=n(421),o=n(162),s=n(110);t.exports=function(t){return o(t)?r(s(t)):i(t)}},421:function(t,e,n){var r=n(201);t.exports=function(t){return function(e){return r(e,t)}}},422:function(t,e,n){var r=n(137),i=n(379),o=n(380);t.exports=function(t,e){return o(i(t,e,r),t+"")}},423:function(t,e){t.exports=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)}},424:function(t,e,n){var r=n(425),i=n(212),o=n(137),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=s},425:function(t,e){t.exports=function(t){return function(){return t}}},426:function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},427:function(t,e,n){var r=n(232),i=n(202),o=n(235),s=n(209),a=n(428),u=Math.max;t.exports=function(t){if(!t||!t.length)return[];var e=0;return t=r(t,(function(t){if(a(t))return e=u(t.length,e),!0})),s(e,(function(e){return i(t,o(e))}))}},428:function(t,e,n){var r=n(153),i=n(58);t.exports=function(t){return i(t)&&r(t)}},43:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},44:function(t,e,n){"use strict";function r(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 i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return i}))},45:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},47:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},48:function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},480:function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},481:function(t,e,n){"use strict";var r=n(92);function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var s=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))})))})),o=s.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},482:function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},483:function(t,e,n){"use strict";var r=n(92),i=n(601),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(a=n(484)),a),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(o)})),t.exports=u},484:function(t,e,n){"use strict";var r=n(92),i=n(602),o=n(481),s=n(604),a=n(607),u=n(608),c=n(485);t.exports=function(t){return new Promise((function(e,f){var l=t.data,h=t.headers;r.isFormData(l)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",b=t.auth.password||"";h.Authorization="Basic "+btoa(p+":"+b)}var v=s(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),o(v,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:t,request:d};i(e,f,r),d=null}},d.onabort=function(){d&&(f(c("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){f(c("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),f(c(e,t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var _=n(609),w=(t.withCredentials||u(v))&&t.xsrfCookieName?_.read(t.xsrfCookieName):void 0;w&&(h[t.xsrfHeaderName]=w)}if("setRequestHeader"in d&&r.forEach(h,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),f(t),d=null)})),void 0===l&&(l=null),d.send(l)}))}},485:function(t,e,n){"use strict";var r=n(603);t.exports=function(t,e,n,i,o){var s=new Error(t);return r(s,e,n,i,o)}},486:function(t,e,n){"use strict";var r=n(92);t.exports=function(t,e){e=e||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(t){void 0!==e[t]&&(n[t]=e[t])})),r.forEach(o,(function(i){r.isObject(e[i])?n[i]=r.deepMerge(t[i],e[i]):void 0!==e[i]?n[i]=e[i]:r.isObject(t[i])?n[i]=r.deepMerge(t[i]):void 0!==t[i]&&(n[i]=t[i])})),r.forEach(s,(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])}));var a=i.concat(o).concat(s),u=Object.keys(e).filter((function(t){return-1===a.indexOf(t)}));return r.forEach(u,(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])})),n}},487:function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},49:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(71),i=n(32);function o(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(i.a)(t):e}},492:function(t,e,n){var r=n(213);t.exports=function(t,e){return r(t,e)}},499:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(3),i=n(35),o=n(34);function s(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new u(t),r=Object(o.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),u=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.a)},50:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(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)}n.d(e,"a",(function(){return i}))},51:function(t,e){var n=Array.isArray;t.exports=n},54:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},57:function(t,e,n){var r=n(66),i=n(58);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},58:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},59:function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},596:function(t,e,n){"use strict";var r=n(92),i=n(480),o=n(597),s=n(486);function a(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=a(n(483));u.Axios=o,u.create=function(t){return a(s(u.defaults,t))},u.Cancel=n(487),u.CancelToken=n(610),u.isCancel=n(482),u.all=function(t){return Promise.all(t)},u.spread=n(611),t.exports=u,t.exports.default=u},597:function(t,e,n){"use strict";var r=n(92),i=n(481),o=n(598),s=n(599),a=n(486);function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=a(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,i){return this.request(r.merge(i||{},{method:t,url:e,data:n}))}})),t.exports=u},598:function(t,e,n){"use strict";var r=n(92);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},599:function(t,e,n){"use strict";var r=n(92),i=n(600),o=n(482),s=n(483);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return a(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(a(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},6:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},600:function(t,e,n){"use strict";var r=n(92);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},601:function(t,e,n){"use strict";var r=n(92);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},602:function(t,e,n){"use strict";var r=n(485);t.exports=function(t,e,n){var i=n.config.validateStatus;!i||i(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},603:function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},604:function(t,e,n){"use strict";var r=n(605),i=n(606);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},605:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},606:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},607:function(t,e,n){"use strict";var r=n(92),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,s={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}})),s):s}},608:function(t,e,n){"use strict";var r=n(92);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},609:function(t,e,n){"use strict";var r=n(92);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},610:function(t,e,n){"use strict";var r=n(487);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},611:function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},612:function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},613:function(t,e){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0,i=n;return[i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]]].join("")}},62:function(t,e,n){var r=n(198),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},64:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(8),i=n(126),o=n(13),s=n(47);var a=n(93),u=n(67);var c=n(125),f=n(123);function l(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[s.a]}(t))return function(t,e){return new r.a((function(n){var r=new o.a;return r.add(e.schedule((function(){var i=t[s.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a((function(n){var r=new o.a;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Object(f.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[u.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,i=new o.a;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[u.a](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function h(t,e){return e?l(t,e):t instanceof r.a?t:new r.a(Object(i.a)(t))}},65:function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,s;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(s=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],s.set(o,i),i+=o.length;return s}},s={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(r)},66:function(t,e,n){var r=n(117),i=n(324),o=n(325),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},67:function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));var i=r()},68:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},69:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},7:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(3),i=n(45),o=n(77),s=n(13),a=n(68),u=n(23),c=n(48),f=function(t){function e(n,r,i){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.a;break;case 1:if(!n){s.destination=o.a;break}if("object"==typeof n){n instanceof e?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new l(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new l(s,n,r,i)}return s}return r.__extends(e,t),e.prototype[a.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(s.a),l=function(t){function e(e,n,r,s){var a,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return Object(i.a)(n)?a=n:n&&(a=n.next,r=n.error,s=n.complete,n!==o.a&&(c=Object.create(n),Object(i.a)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=a,u._error=r,u._complete=s,u}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw t;Object(c.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(c.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(f)},704:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(3),i=n(59),o=n(54),s=n(35),a=n(34),u=n(99),c={};function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return Object(i.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(o.a)(t[0])&&(t=t[0]),Object(u.a)(t,r).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},t}(),h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.__extends(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Object(a.a)(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,s=o[n],a=this.toRespond?s===c?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(s.a)},71:function(t,e,n){"use strict";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)}n.d(e,"a",(function(){return r}))},73:function(t,e,n){var r=n(254),i=n(320),o=n(331),s=n(51);t.exports=function(t,e){return(s(t)?r:i)(t,o(e))}},76:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),i=n(54),o=n(45),s=n(10);function a(t,e,n){return n?a(t,e).pipe(Object(s.a)((function(t){return Object(i.a)(t)?n.apply(void 0,t):n(t)}))):new r.a((function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void n.error(t)}if(Object(o.a)(e))return function(){return e(i,r)}}))}},77:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(23),i=n(48),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},8:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(7);var i=n(68),o=n(77);var s=n(47),a=n(115);function u(t){return 0===t.length?a.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var c=n(23),f=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var s=this.operator,a=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)}(t,e,n);if(s?a.add(s.call(a,this.source)):a.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.a?i:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=l(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[s.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:u(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=l(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function l(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},83:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n(7);function o(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.value))},t}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(i.a)},85:function(t,e,n){"use strict";var r={};(0,n(65).assign)(r,n(312),n(315),n(196)),t.exports=r},88:function(t,e,n){var r=n(338),i=n(341);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},90:function(t,e,n){var r=n(66),i=n(58);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},91:function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return l}));var r=n(3),i=n(8),o=n(7),s=n(13),a=n(69),u=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(s.a),c=n(68),f=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.__extends(e,t),e}(o.a),l=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.__extends(e,t),e.prototype[c.a]=function(){return new f(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.a;return this.hasError?(t.error(this.thrownError),s.a.EMPTY):this.isStopped?(t.complete(),s.a.EMPTY):(this.observers.push(t),new u(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.a),h=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.__extends(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.a.EMPTY},e}(l)},92:function(t,e,n){"use strict";var r=n(480),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function s(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function u(t){return"[object Function]"===i.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isUndefined:s,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:u,isStream:function(t){return a(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return e},deepMerge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]="object"==typeof n?t({},n):n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},93:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(8),i=n(13);function o(t,e){return new r.a((function(n){var r=new i.a,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},94:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(7).a)},95:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(96),i=n(132);function o(){return Object(i.a)(1)}function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o()(r.a.apply(void 0,t))}},96:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(59),i=n(99),o=n(93);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r.a)(n)?(t.pop(),Object(o.a)(t,n)):Object(i.a)(t)}},99:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(124),o=n(93);function s(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/20.5b787f2c.js b/plugins/saladict-ztools/ext-saladic/assets/20.5b787f2c.js new file mode 100644 index 00000000..5c2a7e4f --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/20.5b787f2c.js @@ -0,0 +1,37 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[20],[,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return f})),n.d(e,"__generator",(function(){return l})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return d})),n.d(e,"__read",(function(){return b})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return _})),n.d(e,"__asyncGenerator",(function(){return w})),n.d(e,"__asyncDelegator",(function(){return m})),n.d(e,"__asyncValues",(function(){return g})),n.d(e,"__makeTemplateObject",(function(){return x})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return j})),n.d(e,"__classPrivateFieldGet",(function(){return k})),n.d(e,"__classPrivateFieldSet",(function(){return E})); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function f(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 l(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function p(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function _(t){return this instanceof _?(this.v=t,this):new _(t)}function w(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof _?Promise.resolve(n.value.v).then(u,c):f(o[0][2],n)}catch(t){f(o[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function f(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function m(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:_(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function g(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function j(t){return t&&t.__esModule?t:{default:t}}function k(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},,function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(4),i=n(46),o=n(82),a=n(14),s=n(72),u=n(24),c=n(52),f=function(t){function e(n,r,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!n){a.destination=o.a;break}if("object"==typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new l(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new l(a,n,r,i)}return a}return r.__extends(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a.a),l=function(t){function e(e,n,r,a){var s,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==o.a&&(c=Object.create(n),Object(i.a)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=r,u._complete=a,u}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw t;Object(c.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(c.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(f)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(7);var i=n(72),o=n(82);var a=n(51),s=n(120);function u(t){return 0===t.length?s.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var c=n(24),f=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var a=this.operator,s=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)}(t,e,n);if(a?s.add(a.call(s,this.source)):s.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.a?i:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=l(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:u(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=l(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function l(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(60),i=n(119),o=n(46),a=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var f=0;f<n.length;++f){n[f].remove(this)}if(Object(o.a)(s))try{s.call(this)}catch(t){e=t instanceof a?u(t.errors):[t]}if(Object(r.a)(c)){f=-1;for(var l=c.length;++f<l;){var h=c[f];if(Object(i.a)(h))try{h.unsubscribe()}catch(t){e=e||[],t instanceof a?e=e.concat(u(t.errors)):e.push(t)}}}if(e)throw new a(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function u(t){return t.reduce((function(t,e){return t.concat(e instanceof a?e.errors:e)}),[])}},,function(t,e,n){"use strict";function r(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}e.a=function(t,e){var n;void 0===e&&(e=r);var i,o=[],a=!1;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return a&&n===this&&e(r,o)||(i=t.apply(this,r),a=!0,n=this,o=r),i}}},,function(t,e,n){"use strict";function r(){return(r=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)}n.d(e,"a",(function(){return r}))},,,,function(t,e,n){var r=n(207);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return q})),n.d(e,"d",(function(){return H})),n.d(e,"e",(function(){return G})),n.d(e,"f",(function(){return Z})),n.d(e,"c",(function(){return E}));var r=n(0),i=n.n(r),o=(n(26),i.a.createContext(null));var a=function(t){t()},s={notify:function(){}};function u(){var t=a,e=null,n=null;return{clear:function(){e=null,n=null},notify:function(){t((function(){for(var t=e;t;)t.callback(),t=t.next}))},get:function(){for(var t=[],n=e;n;)t.push(n),n=n.next;return t},subscribe:function(t){var r=!0,i=n={callback:t,next:null,prev:n};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var c=function(){function t(t,e){this.store=t,this.parentSub=e,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var e=t.prototype;return e.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},e.notifyNestedSubs=function(){this.listeners.notify()},e.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},e.isSubscribed=function(){return Boolean(this.unsubscribe)},e.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=u())},e.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},t}();var f=function(t){var e=t.store,n=t.context,a=t.children,s=Object(r.useMemo)((function(){var t=new c(e);return t.onStateChange=t.notifyNestedSubs,{store:e,subscription:t}}),[e]),u=Object(r.useMemo)((function(){return e.getState()}),[e]);Object(r.useEffect)((function(){var t=s.subscription;return t.trySubscribe(),u!==e.getState()&&t.notifyNestedSubs(),function(){t.tryUnsubscribe(),t.onStateChange=null}}),[s,u]);var f=n||o;return i.a.createElement(f.Provider,{value:s},a)},l=n(18),h=n(61),p=n(176),d=n.n(p),b=n(158),v="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,y=[],_=[null,null];function w(t,e){var n=t[1];return[e.payload,n+1]}function m(t,e,n){v((function(){return t.apply(void 0,e)}),n)}function g(t,e,n,r,i,o,a){t.current=r,e.current=i,n.current=!1,o.current&&(o.current=null,a())}function x(t,e,n,r,i,o,a,s,u,c){if(t){var f=!1,l=null,h=function(){if(!f){var t,n,h=e.getState();try{t=r(h,i.current)}catch(t){n=t,l=t}n||(l=null),t===o.current?a.current||u():(o.current=t,s.current=t,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=h,n.trySubscribe(),h();return function(){if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,l)throw l}}}var O=function(){return[null,0]};function j(t,e){void 0===e&&(e={});var n=e,a=n.getDisplayName,s=void 0===a?function(t){return"ConnectAdvanced("+t+")"}:a,u=n.methodName,f=void 0===u?"connectAdvanced":u,p=n.renderCountProp,v=void 0===p?void 0:p,j=n.shouldHandleStateChanges,k=void 0===j||j,E=n.storeKey,S=void 0===E?"store":E,C=(n.withRef,n.forwardRef),P=void 0!==C&&C,A=n.context,T=void 0===A?o:A,N=Object(h.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),z=T;return function(e){var n=e.displayName||e.name||"Component",o=s(n),a=Object(l.a)({},N,{getDisplayName:s,methodName:f,renderCountProp:v,shouldHandleStateChanges:k,storeKey:S,displayName:o,wrappedComponentName:n,WrappedComponent:e}),u=N.pure;var p=u?r.useMemo:function(t){return t()};function j(n){var o=Object(r.useMemo)((function(){var t=n.forwardedRef,e=Object(h.a)(n,["forwardedRef"]);return[n.context,t,e]}),[n]),s=o[0],u=o[1],f=o[2],d=Object(r.useMemo)((function(){return s&&s.Consumer&&Object(b.isContextConsumer)(i.a.createElement(s.Consumer,null))?s:z}),[s,z]),v=Object(r.useContext)(d),j=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(v)&&Boolean(v.store);var E=j?n.store:v.store,S=Object(r.useMemo)((function(){return function(e){return t(e.dispatch,a)}(E)}),[E]),C=Object(r.useMemo)((function(){if(!k)return _;var t=new c(E,j?null:v.subscription),e=t.notifyNestedSubs.bind(t);return[t,e]}),[E,j,v]),P=C[0],A=C[1],T=Object(r.useMemo)((function(){return j?v:Object(l.a)({},v,{subscription:P})}),[j,v,P]),N=Object(r.useReducer)(w,y,O),R=N[0][0],B=N[1];if(R&&R.error)throw R.error;var I=Object(r.useRef)(),D=Object(r.useRef)(f),M=Object(r.useRef)(),U=Object(r.useRef)(!1),F=p((function(){return M.current&&f===D.current?M.current:S(E.getState(),f)}),[E,R,f]);m(g,[D,I,U,f,F,M,A]),m(x,[k,E,P,S,D,I,U,M,A,B],[E,P,S]);var q=Object(r.useMemo)((function(){return i.a.createElement(e,Object(l.a)({},F,{ref:u}))}),[u,e,F]);return Object(r.useMemo)((function(){return k?i.a.createElement(d.Provider,{value:T},q):q}),[d,q,T])}var E=u?i.a.memo(j):j;if(E.WrappedComponent=e,E.displayName=o,P){var C=i.a.forwardRef((function(t,e){return i.a.createElement(E,Object(l.a)({},t,{forwardedRef:e}))}));return C.displayName=o,C.WrappedComponent=e,d()(C,e)}return d()(E,e)}}function k(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function E(t,e){if(k(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(e,n[i])||!k(t[n[i]],e[n[i]]))return!1;return!0}var S=n(104);function C(t){return function(e,n){var r=t(e,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function P(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function A(t,e){return function(e,n){n.displayName;var r=function(t,e){return r.dependsOnOwnProps?r.mapToProps(t,e):r.mapToProps(t)};return r.dependsOnOwnProps=!0,r.mapToProps=function(e,n){r.mapToProps=t,r.dependsOnOwnProps=P(t);var i=r(e,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=P(i),i=r(e,n)),i},r}}var T=[function(t){return"function"==typeof t?A(t):void 0},function(t){return t?void 0:C((function(t){return{dispatch:t}}))},function(t){return t&&"object"==typeof t?C((function(e){return Object(S.b)(t,e)})):void 0}];var N=[function(t){return"function"==typeof t?A(t):void 0},function(t){return t?void 0:C((function(){return{}}))}];function z(t,e,n){return Object(l.a)({},n,{},t,{},e)}var R=[function(t){return"function"==typeof t?function(t){return function(e,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(e,n,s){var u=t(e,n,s);return a?i&&o(u,r)||(r=u):(a=!0,r=u),r}}}(t):void 0},function(t){return t?void 0:function(){return z}}];function B(t,e,n,r){return function(i,o){return n(t(i,o),e(r,o),o)}}function I(t,e,n,r,i){var o,a,s,u,c,f=i.areStatesEqual,l=i.areOwnPropsEqual,h=i.areStatePropsEqual,p=!1;function d(i,p){var d,b,v=!l(p,a),y=!f(i,o);return o=i,a=p,v&&y?(s=t(o,a),e.dependsOnOwnProps&&(u=e(r,a)),c=n(s,u,a)):v?(t.dependsOnOwnProps&&(s=t(o,a)),e.dependsOnOwnProps&&(u=e(r,a)),c=n(s,u,a)):y?(d=t(o,a),b=!h(d,s),s=d,b&&(c=n(s,u,a)),c):c}return function(i,f){return p?d(i,f):(s=t(o=i,a=f),u=e(r,a),c=n(s,u,a),p=!0,c)}}function D(t,e){var n=e.initMapStateToProps,r=e.initMapDispatchToProps,i=e.initMergeProps,o=Object(h.a)(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(t,o),s=r(t,o),u=i(t,o);return(o.pure?I:B)(a,s,u,t,o)}function M(t,e,n){for(var r=e.length-1;r>=0;r--){var i=e[r](t);if(i)return i}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function U(t,e){return t===e}function F(t){var e=void 0===t?{}:t,n=e.connectHOC,r=void 0===n?j:n,i=e.mapStateToPropsFactories,o=void 0===i?N:i,a=e.mapDispatchToPropsFactories,s=void 0===a?T:a,u=e.mergePropsFactories,c=void 0===u?R:u,f=e.selectorFactory,p=void 0===f?D:f;return function(t,e,n,i){void 0===i&&(i={});var a=i,u=a.pure,f=void 0===u||u,d=a.areStatesEqual,b=void 0===d?U:d,v=a.areOwnPropsEqual,y=void 0===v?E:v,_=a.areStatePropsEqual,w=void 0===_?E:_,m=a.areMergedPropsEqual,g=void 0===m?E:m,x=Object(h.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),O=M(t,o,"mapStateToProps"),j=M(e,s,"mapDispatchToProps"),k=M(n,c,"mergeProps");return r(p,Object(l.a)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:O,initMapDispatchToProps:j,initMergeProps:k,pure:f,areStatesEqual:b,areOwnPropsEqual:y,areStatePropsEqual:w,areMergedPropsEqual:g},x))}}var q=F();function L(){return Object(r.useContext)(o)}function V(t){void 0===t&&(t=o);var e=t===o?L:function(){return Object(r.useContext)(t)};return function(){return e().store}}var Z=V();function $(t){void 0===t&&(t=o);var e=t===o?Z:V(t);return function(){return e().dispatch}}var H=$(),W=function(t,e){return t===e};function Y(t){void 0===t&&(t=o);var e=t===o?L:function(){return Object(r.useContext)(t)};return function(t,n){void 0===n&&(n=W);var i=e();return function(t,e,n,i){var o,a=Object(r.useReducer)((function(t){return t+1}),0)[1],s=Object(r.useMemo)((function(){return new c(n,i)}),[n,i]),u=Object(r.useRef)(),f=Object(r.useRef)(),l=Object(r.useRef)();try{o=t!==f.current||u.current?t(n.getState()):l.current}catch(t){throw u.current&&(t.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),t}return v((function(){f.current=t,l.current=o,u.current=void 0})),v((function(){function t(){try{var t=f.current(n.getState());if(e(t,l.current))return;l.current=t}catch(t){u.current=t}a({})}return s.onStateChange=t,s.trySubscribe(),t(),function(){return s.tryUnsubscribe()}}),[n,s]),o}(t,n,i.store,i.subscription)}}var K,G=Y(),X=n(21);K=X.unstable_batchedUpdates,a=K},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(450)()},function(t,e,n){var r=n(345);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(219);var i=n(144),o=n(220);function a(t,e){return Object(r.a)(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)||Object(i.a)(t,e)||Object(o.a)()}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return f}));var r=n(0),i=n(95),o=n(141);function a(t){return t}function s(t){return Object(o.a)(0)(t)}function u(){return new i.a}function c(t){var e=Object(r.useRef)(!0),n=Object(r.useRef)(null);return e.current&&(e.current=!1,n.current=t()),n}function f(){var t=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return t(l)})).current}function l(t){return(t+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(133);var i=n(218),o=n(144);function a(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(i.a)(t)||Object(o.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(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(99),i=n(132),o=n(8);function a(t,e,n,a,s){if(void 0===s&&(s=new r.a(t,n,a)),!s.closed)return e instanceof o.a?e.subscribe(s):Object(i.a)(e)(s)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(7).a)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.a)},,,,,,function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(482)},function(t,e,n){"use strict";function r(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 i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return i}))},,function(t,e,n){"use strict";var r=n(245),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===i.call(t)}function f(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:f,merge:function t(){var e={};function n(n,r){u(e[r])&&u(n)?e[r]=t(e[r],n):u(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)f(arguments[r],n);return e},extend:function(t,e,n){return f(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(75),i=n(34);function o(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(i.a)(t):e}},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(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)}n.d(e,"a",(function(){return i}))},,function(t,e){var n=Array.isArray;t.exports=n},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(204),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(8),i=n(132),o=n(14),a=n(51);var s=n(98),u=n(70);var c=n(131),f=n(129);function l(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new r.a((function(n){var r=new o.a;return r.add(e.schedule((function(){var i=t[a.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a((function(n){var r=new o.a;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Object(f.a)(t))return Object(s.a)(t,e);if(function(t){return t&&"function"==typeof t[u.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,i=new o.a;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[u.a](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function h(t,e){return e?l(t,e):t instanceof r.a?t:new r.a(Object(i.a)(t))}},function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},a={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(r)},function(t,e,n){var r=n(123),i=n(312),o=n(313),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));var i=r()},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},,function(t,e,n){"use strict";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)}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(277),i=n(308),o=n(319),a=n(56);t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(60),o=n(46),a=n(10);function s(t,e,n){return n?s(t,e).pipe(Object(a.a)((function(t){return Object(i.a)(t)?n.apply(void 0,t):n(t)}))):new r.a((function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void n.error(t)}if(Object(o.a)(e))return function(){return e(i,r)}}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(24),i=n(52),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.value))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(i.a)},,function(t,e,n){"use strict";var r={};(0,n(68).assign)(r,n(300),n(303),n(202)),t.exports=r},,,function(t,e,n){var r=n(326),i=n(329);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){"use strict";var r=n(18),i=n(61),o=n(135);n(26);function a(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(0),u=n.n(s),c=n(21),f=n.n(c),l=!1,h=u.a.createContext(null),p=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var i,o=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?o?(i="exited",r.appearStatus="entering"):i="entered":i=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}Object(o.a)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(e="entering"):"entering"!==n&&"entered"!==n||(e="exiting")}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),"entering"===e?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,i=this.props.nodeRef?[r]:[f.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!t&&!n||l?this.safeSetState({status:"entered"},(function(){e.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:"entering"},(function(){e.props.onEntering(o,a),e.onTransitionEnd(u,(function(){e.safeSetState({status:"entered"},(function(){e.props.onEntered(o,a)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:f.a.findDOMNode(this);e&&!l?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:f.a.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,r=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Object(i.a)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return u.a.createElement(h.Provider,{value:null},"function"==typeof n?n(t,r):u.a.cloneElement(u.a.Children.only(n),r))},e}(u.a.Component);function d(){}p.contextType=h,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},p.UNMOUNTED="unmounted",p.EXITED="exited",p.ENTERING="entering",p.ENTERED="entered",p.EXITING="exiting";var b=p,v=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return r=e,void((n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},y=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var r=e.resolveArguments(t,n),i=r[0],o=r[1];e.removeClasses(i,"exit"),e.addClass(i,o?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.resolveArguments(t,n),i=r[0],o=r[1]?"appear":"enter";e.addClass(i,o,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.resolveArguments(t,n),i=r[0],o=r[1]?"appear":"enter";e.removeClasses(i,o),e.addClass(i,o,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+t:n[t];return{baseClassName:i,activeClassName:r?i+"-active":n[t+"Active"],doneClassName:r?i+"-done":n[t+"Done"]}},e}Object(o.a)(e,t);var n=e.prototype;return n.addClass=function(t,e,n){var r=this.getClassNames(e)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===e&&"done"===n&&i&&(r+=" "+i),"active"===n&&t&&t.scrollTop,r&&(this.appliedClasses[e][n]=r,function(t,e){t&&e&&e.split(" ").forEach((function(e){return r=e,void((n=t).classList?n.classList.add(r):function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(t,r))},n.removeClasses=function(t,e){var n=this.appliedClasses[e],r=n.base,i=n.active,o=n.done;this.appliedClasses[e]={},r&&v(t,r),i&&v(t,i),o&&v(t,o)},n.render=function(){var t=this.props,e=(t.classNames,Object(i.a)(t,["classNames"]));return u.a.createElement(b,Object(r.a)({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(u.a.Component);y.defaultProps={classNames:""},y.propTypes={};e.a=y},function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return l}));var r=n(4),i=n(8),o=n(7),a=n(14),s=n(73),u=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(a.a),c=n(72),f=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.__extends(e,t),e}(o.a),l=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.__extends(e,t),e.prototype[c.a]=function(){return new f(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new s.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),a.a.EMPTY):this.isStopped?(t.complete(),a.a.EMPTY):(this.observers.push(t),new u(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.a),h=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.__extends(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):a.a.EMPTY},e}(l)},function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(8),i=n(14);function o(t,e){return new r.a((function(n){var r=new i.a,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(7).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(102),i=n(137);function o(){return Object(i.a)(1)}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o()(r.a.apply(void 0,t))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(65),i=n(106),o=n(98);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r.a)(n)?(t.pop(),Object(o.a)(t,n)):Object(i.a)(t)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return s}));var r=n(238),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function a(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function s(t,e,n){var i;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var u=t,c=e,f=[],l=f,h=!1;function p(){l===f&&(l=f.slice())}function d(){if(h)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function b(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(h)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var e=!0;return p(),l.push(t),function(){if(e){if(h)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");e=!1,p();var n=l.indexOf(t);l.splice(n,1),f=null}}}function v(t){if(!a(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,c=u(c,t)}finally{h=!1}for(var e=f=l,n=0;n<e.length;n++){(0,e[n])()}return t}function y(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");u=t,v({type:o.REPLACE})}function _(){var t,e=b;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(d())}return n(),{unsubscribe:e(n)}}})[r.a]=function(){return this},t}return v({type:o.INIT}),(i={dispatch:v,subscribe:b,getState:d,replaceReducer:y})[r.a]=_,i}function u(t,e){return function(){return e(t.apply(this,arguments))}}function c(t,e){if("function"==typeof t)return u(t,e);if("object"!=typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in t){var i=t[r];"function"==typeof i&&(n[r]=u(i,e))}return n}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(n,!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function d(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=e.map((function(t){return t(i)}));return h({},n,{dispatch:r=p.apply(void 0,o)(n.dispatch)})}}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),i=n(130),o=n(98);function a(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}},,function(t,e,n){var r=n(69),i=n(56),o=n(64);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r,i=n(124),o=n(102),a=n(8);function s(t){var e=t.error;t.subscriber.error(e)}r||(r={});var u=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return Object(o.a)(this.value);case"E":return t=this.error,e?new a.a((function(n){return e.schedule(s,0,{error:t,subscriber:n})})):new a.a((function(e){return e.error(t)}));case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(65),o=n(137),a=n(106);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,s=null,u=t[t.length-1];return Object(i.a)(u)?(s=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(n)(Object(a.a)(t,s))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(118),i=new(n(117).a)(r.a)},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(151);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),o=function(t){function e(n,r){void 0===r&&(r=i.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.__extends(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(14).a))},function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(4),i=n(37),o=n(99),a=n(36),s=n(10),u=n(67);function c(t,e){return"function"==typeof e?function(n){return n.pipe(c((function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new f(t))}}var f=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project))},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new o.a(this,e,n),s=this.destination;s.add(i),this.innerSubscription=Object(a.a)(this,t,void 0,void 0,i),this.innerSubscription!==i&&s.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(i.a)},,function(t,e,n){var r=n(66).Symbol;t.exports=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(8),i=new r.a((function(t){return t.complete()}));function o(t){return t?function(t){return new r.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(30);function o(t,e){var n=Object(i.e)(i.a),o=Object(i.e)((function(){return t(n.current)}));return[Object(r.useRef)((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];n.current.next(e?e(t):t[0])})).current,o.current]}},function(t,e,n){var r=n(93)(Object,"create");t.exports=r},function(t,e,n){var r=n(163);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(340);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(130),i=n(52),o=n(70),a=n(51),s=n(129),u=n(131),c=n(119),f=function(t){if(t&&"function"==typeof t[a.a])return f=t,function(t){var e=f[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(s.a)(t))return Object(r.a)(t);if(Object(u.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,f,l=Object(c.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+l+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(t,e,n){"use strict";function r(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.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(37),o=n(36);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new s(r,n))}}var s=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observables,this.project))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var a=n.length;i.values=new Array(a);for(var s=0;s<a;s++)i.toRespond.push(s);for(s=0;s<a;s++){var u=n[s];i.add(Object(o.a)(i,u,u,s))}return i}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),i=n(405),o=n(30);function a(t,e){if(!e)return Object(o.e)(t).current;var n=Object(o.e)((function(){return new i.a(e)})),a=Object(o.e)((function(){return t(n.current)})),s=Object(r.useRef)(!0);return Object(r.useEffect)((function(){s.current?s.current=!1:n.current.next(e)}),e),a.current}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(152),i=n(120);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(i.a,t)}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(10);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Object(r.a)(o(t,n))(e)}}function o(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}},,function(t,e,n){var r=n(334),i=n(335),o=n(336),a=n(337),s=n(338);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(133);function i(t,e){if(t){if("string"==typeof t)return Object(r.a)(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)?Object(r.a)(t,e):void 0}}},,,,,function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(56),i=n(168),o=n(320),a=n(261);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(4),i=n(36),o=n(37),a=n(99),s=n(10),u=n(67);function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c((function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new f(t,n))})}var f=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent))},t}(),l=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new a.a(this,e,n),o=this.destination;o.add(r);var s=Object(i.a)(this,t,void 0,void 0,r);s!==r&&o.add(s)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(60);function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},function(t,e,n){var r=n(208),i=n(213),o=n(452);t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}},,function(t,e,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(t,e,n){var r=n(278),i=n(316),o=n(162);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e,n){"use strict";t.exports=n(569)},,function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=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){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(206),i=n(161);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},,,,,function(t,e,n){var r=n(56),i=n(151),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(323),i=n(339),o=n(341),a=n(342),s=n(343);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(93)(n(66),"Map");t.exports=r},,,,,,function(t,e,n){"use strict";var r=n(158),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(t){return r.isMemo(t)?a:s[t.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,f=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(d){var i=p(n);i&&i!==d&&t(e,i,r)}var a=f(n);l&&(a=a.concat(l(n)));for(var s=u(e),b=u(n),v=0;v<a.length;++v){var y=a[v];if(!(o[y]||r&&r[y]||b&&b[y]||s&&s[y])){var _=h(n,y);try{c(e,y,_)}catch(t){}}}}return e}},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(i.a)},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasOwnProperty=Object.prototype.hasOwnProperty},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Object(r.a)(t,e,n[e])}))}return t}},,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(30),i=n(0);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Object(i.useRef)(t);n.current=t;var o=Object(r.d)(),a=Object(i.useRef)(),s=Object(i.useRef)();if(Object(i.useEffect)((function(){s.current=null;var t=n.current[0],e=t.subscribe({next:function(e){if(t===n.current[0])return n.current[1]?n.current[1](e):void 0},error:function(e){if(t===n.current[0]){if(n.current[2])return s.current=null,n.current[2](e);s.current=e,o()}},complete:function(){if(t===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=e,function(){e.unsubscribe()}}),[t[0]]),s.current)throw s.current;return a}},,,,,,,,function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},function(t,e,n){"use strict";var r=n(68),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,e.string2buf=function(t){var e,n,i,o,a,s=t.length,u=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(u),a=0,o=0;a<u;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[a++]=n:n<2048?(e[a++]=192|n>>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},e.buf2string=function(t,e){var n,r,i,o,s=e||t.length,c=new Array(2*s);for(r=0,n=0;n<s;)if((i=t[n++])<128)c[r++]=i;else if((o=a[i])>4)c[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<s;)i=i<<6|63&t[n++],o--;o>1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return u(c,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,n){var r=n(311),i=n(64),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},function(t,e,n){(function(t){var r=n(66),i=n(314),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;t.exports=u}).call(this,n(188)(t))},function(t,e,n){var r=n(69),i=n(115);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(150),i=n(116);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(228);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},,,,,function(t,e,n){var r=n(309),i=n(157);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var r=n(315),i=n(258),o=n(259),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=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,n){var r=n(460),i=n(64);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,"a",(function(){return r}))},function(t,e,n){var r;!function(i,o){"use strict";var a="model",s="name",u="type",c="vendor",f="version",l="mobile",h="tablet",p="smarttv",d=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},b=function(t,e){return"string"==typeof t&&-1!==v(e).indexOf(v(t))},v=function(t){return t.toLowerCase()},y=function(t,e){if("string"==typeof t)return t=t.replace(/^\s\s*/,""),void 0===e?t:t.substring(0,350)},_=function(t,e){for(var n,r,i,o,a,s,u=0;u<e.length&&!a;){var c=e[u],f=e[u+1];for(n=r=0;n<c.length&&!a;)if(a=c[n++].exec(t))for(i=0;i<f.length;i++)s=a[++r],"object"==typeof(o=f[i])&&o.length>0?2===o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3===o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4===o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;u+=2}},w=function(t,e){for(var n in e)if("object"==typeof e[n]&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(b(e[n][r],t))return"?"===n?void 0:n}else if(b(e[n],t))return"?"===n?void 0:n;return t},m={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},g={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,f],[/opios[\/ ]+([\w\.]+)/i],[f,[s,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[f,[s,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[s,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[s,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[f,[s,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[s,"IE"]],[/yabrowser\/([\w\.]+)/i],[f,[s,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],f],[/\bfocus\/([\w\.]+)/i],[f,[s,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[f,[s,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[s,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[s,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[f,[s,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 Browser"]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],f],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[s,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,"Facebook"],f],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[s,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[s,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[s,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[s,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[f,w,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[s,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[s,f],[/(cobalt)\/([\w\.]+)/i],[s,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",v]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",v]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",v]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[c,"Samsung"],[u,h]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[c,"Samsung"],[u,l]],[/\((ip(?:hone|od)[\w ]*);/i],[a,[c,"Apple"],[u,l]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[c,"Apple"],[u,h]],[/(macintosh);/i],[a,[c,"Apple"]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[c,"Huawei"],[u,h]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[c,"Huawei"],[u,l]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[c,"Xiaomi"],[u,l]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[c,"Xiaomi"],[u,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[c,"OPPO"],[u,l]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[c,"Vivo"],[u,l]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[c,"Realme"],[u,l]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[c,"Motorola"],[u,l]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[c,"Motorola"],[u,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[c,"LG"],[u,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[c,"LG"],[u,l]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[c,"Lenovo"],[u,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[c,"Nokia"],[u,l]],[/(pixel c)\b/i],[a,[c,"Google"],[u,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[c,"Google"],[u,l]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[c,"Sony"],[u,l]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[c,"Sony"],[u,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[c,"OnePlus"],[u,l]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[c,"Amazon"],[u,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[c,"Amazon"],[u,l]],[/(playbook);[-\w\),; ]+(rim)/i],[a,c,[u,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[c,"BlackBerry"],[u,l]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[c,"ASUS"],[u,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[c,"ASUS"],[u,l]],[/(nexus 9)/i],[a,[c,"HTC"],[u,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[c,[a,/_/g," "],[u,l]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[c,"Acer"],[u,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[c,"Meizu"],[u,l]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[c,"Sharp"],[u,l]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[c,a,[u,l]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[c,a,[u,h]],[/(surface duo)/i],[a,[c,"Microsoft"],[u,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[c,"Fairphone"],[u,l]],[/(u304aa)/i],[a,[c,"AT&T"],[u,l]],[/\bsie-(\w*)/i],[a,[c,"Siemens"],[u,l]],[/\b(rct\w+) b/i],[a,[c,"RCA"],[u,h]],[/\b(venue[\d ]{2,7}) b/i],[a,[c,"Dell"],[u,h]],[/\b(q(?:mv|ta)\w+) b/i],[a,[c,"Verizon"],[u,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[c,"Barnes & Noble"],[u,h]],[/\b(tm\d{3}\w+) b/i],[a,[c,"NuVision"],[u,h]],[/\b(k88) b/i],[a,[c,"ZTE"],[u,h]],[/\b(nx\d{3}j) b/i],[a,[c,"ZTE"],[u,l]],[/\b(gen\d{3}) b.+49h/i],[a,[c,"Swiss"],[u,l]],[/\b(zur\d{3}) b/i],[a,[c,"Swiss"],[u,h]],[/\b((zeki)?tb.*\b) b/i],[a,[c,"Zeki"],[u,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[c,"Dragon Touch"],a,[u,h]],[/\b(ns-?\w{0,9}) b/i],[a,[c,"Insignia"],[u,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[c,"NextBook"],[u,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[c,"Voice"],a,[u,l]],[/\b(lvtel\-)?(v1[12]) b/i],[[c,"LvTel"],a,[u,l]],[/\b(ph-1) /i],[a,[c,"Essential"],[u,l]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[c,"Envizen"],[u,h]],[/\b(trio[-\w\. ]+) b/i],[a,[c,"MachSpeed"],[u,h]],[/\btu_(1491) b/i],[a,[c,"Rotor"],[u,h]],[/(shield[\w ]+) b/i],[a,[c,"Nvidia"],[u,h]],[/(sprint) (\w+)/i],[c,a,[u,l]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[c,"Microsoft"],[u,l]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[c,"Zebra"],[u,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[c,"Zebra"],[u,l]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[c,a,[u,"console"]],[/droid.+; (shield) bui/i],[a,[c,"Nvidia"],[u,"console"]],[/(playstation [345portablevi]+)/i],[a,[c,"Sony"],[u,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[c,"Microsoft"],[u,"console"]],[/smart-tv.+(samsung)/i],[c,[u,p]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[c,"Samsung"],[u,p]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[c,"LG"],[u,p]],[/(apple) ?tv/i],[c,[a,"Apple TV"],[u,p]],[/crkey/i],[[a,"Chromecast"],[c,"Google"],[u,p]],[/droid.+aft(\w)( bui|\))/i],[a,[c,"Amazon"],[u,p]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[c,"Sharp"],[u,p]],[/(bravia[\w ]+)( bui|\))/i],[a,[c,"Sony"],[u,p]],[/(mitv-\w{5}) bui/i],[a,[c,"Xiaomi"],[u,p]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[c,y],[a,y],[u,p]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,p]],[/((pebble))app/i],[c,a,[u,"wearable"]],[/droid.+; (glass) \d/i],[a,[c,"Google"],[u,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[a,[c,"Zebra"],[u,"wearable"]],[/(quest( 2)?)/i],[a,[c,"Facebook"],[u,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[c,[u,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[u,l]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[u,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,h]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,l]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[c,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[s,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[s,[f,w,m]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,"Windows"],[f,w,m]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,"Mac OS"],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,f],[/\(bb(10);/i],[f,[s,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[s,"webOS"]],[/crkey\/([\d\.]+)/i],[f,[s,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[s,"Chromium OS"],f],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,f],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[s,f]]},x=function(t,e){if("object"==typeof t&&(e=t,t=void 0),!(this instanceof x))return new x(t,e).getResult();var n=t||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=e?function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n}(g,e):g;return this.getBrowser=function(){var t,e={};return e[s]=void 0,e[f]=void 0,_.call(e,n,r.browser),e.major="string"==typeof(t=e.version)?t.replace(/[^\d\.]/g,"").split(".")[0]:void 0,e},this.getCPU=function(){var t={architecture:void 0};return _.call(t,n,r.cpu),t},this.getDevice=function(){var t={vendor:void 0,model:void 0,type:void 0};return _.call(t,n,r.device),t},this.getEngine=function(){var t={name:void 0,version:void 0};return _.call(t,n,r.engine),t},this.getOS=function(){var t={name:void 0,version:void 0};return _.call(t,n,r.os),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(t){return n="string"==typeof t&&t.length>350?y(t,350):t,this},this.setUA(n),this};x.VERSION="0.7.33",x.BROWSER=d([s,f,"major"]),x.CPU=d(["architecture"]),x.DEVICE=d([a,c,u,"console",l,p,h,"wearable","embedded"]),x.ENGINE=x.OS=d([s,f]),void 0!==e?(void 0!==t&&t.exports&&(e=t.exports=x),e.UAParser=x):n(348)?void 0===(r=function(){return x}.call(e,n,e,t))||(t.exports=r):void 0!==i&&(i.UAParser=x);var O=void 0!==i&&(i.jQuery||i.Zepto);if(O&&!O.ua){var j=new x;O.ua=j.getResult(),O.ua.get=function(){return j.getUA()},O.ua.set=function(t){j.setUA(t);var e=j.getResult();for(var n in e)O.ua[n]=e[n]}}}("object"==typeof window?window:this)},function(t,e,n){var r=n(498),i=n(499);t.exports=function(t,e,n){var o=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[o+s]=a[s];return e||i(a)}},,,,,function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(93),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(143),i=n(455),o=n(456),a=n(457),s=n(458),u=n(459);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},function(t,e,n){"use strict";var r=n(50);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createActionCreator=function(t){return(...e)=>{switch(e.length){case 0:return{type:t};case 1:return{type:t,payload:e[0]};default:return{type:t,payload:e[0],meta:e[1]}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(184);e.createDefaultActionCreators=function(t,e,n){const i={};if(n)for(const t in n)r.hasOwnProperty.call(n,t)&&(i[t]=n[t]);for(const o in e)r.hasOwnProperty.call(e,o)&&(n&&r.hasOwnProperty.call(i,o)||(i[o]=t(o)));return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createActionCreator=function(t){return(...e)=>{switch(e.length){case 0:return{type:t};case 1:return{type:t,payload:e[0]};case 2:return{type:t,payload:e[0],error:e[1]};default:return{type:t,payload:e[0],error:e[1],meta:e[2]}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineObjects=function(...t){return Object.assign({},...t)}},,,,function(t,e,n){"use strict";(function(t){var r,i=n(351);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:t;var o=Object(i.a)(r);e.a=o}).call(this,n(570)(t))},,,,function(t,e,n){var r=n(461),i=n(464),o=n(465);t.exports=function(t,e,n,a,s,u){var c=1&n,f=t.length,l=e.length;if(f!=l&&!(c&&l>f))return!1;var h=u.get(t),p=u.get(e);if(h&&p)return h==e&&p==t;var d=-1,b=!0,v=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++d<f;){var y=t[d],_=e[d];if(a)var w=c?a(_,y,d,e,t,u):a(y,_,d,t,e,u);if(void 0!==w){if(w)continue;b=!1;break}if(v){if(!i(e,(function(t,e){if(!o(v,e)&&(y===t||s(y,t,n,a,u)))return v.push(e)}))){b=!1;break}}else if(y!==_&&!s(y,_,n,a,u)){b=!1;break}}return u.delete(t),u.delete(e),b}},function(t,e,n){var r=n(115);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";var r=n(50),i=n(487),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(248)),s),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(o)})),t.exports=u},function(t,e,n){"use strict";var r=n(50),i=n(488),o=n(490),a=n(230),s=n(400),u=n(493),c=n(494),f=n(249);t.exports=function(t){return new Promise((function(e,n){var l=t.data,h=t.headers;r.isFormData(l)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",b=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";h.Authorization="Basic "+btoa(d+":"+b)}var v=s(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),a(v,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?u(p.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:t,request:p};i(e,n,o),p=null}},p.onabort=function(){p&&(n(f("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(f("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(f(e,t,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=(t.withCredentials||c(v))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;y&&(h[t.xsrfHeaderName]=y)}if("setRequestHeader"in p&&r.forEach(h,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete h[e]:p.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),l||(l=null),p.send(l)}))}},function(t,e,n){"use strict";var r=n(489);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},function(t,e,n){"use strict";var r=n(50);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function c(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=u(void 0,e[t]))})),r.forEach(o,c),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=u(t[r],e[r]):r in t&&(n[r]=u(void 0,t[r]))}));var f=i.concat(o).concat(a).concat(s),l=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return r.forEach(l,c),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8);var i=n(0),o=n(190),a=n(30);function s(t,e){var n,s,u,c=Object(i.useState)(e),f=c[0],l=c[1];if((u=t)&&(u instanceof r.a||"function"==typeof u.lift&&"function"==typeof u.subscribe))s=t;else{var h=t,p=Object(a.e)(a.a);s=Object(a.e)((function(){return h(p.current,f)})).current,n=Object(i.useRef)((function(t){return p.current.next(t)})).current}return Object(o.a)(s,l),Object(i.useDebugValue)(f),n?[f,n]:f}},,function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(204),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n(188)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(344);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(208),i=n(163),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e){t.exports=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){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},,,,,,function(t,e,n){var r=n(571)(n(576));t.exports=r},,function(t,e,n){"use strict";function r(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(n,r,t):e(i)}}}}var i=r();i.withExtraArgument=r,e.a=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(581);e.createActionCreator=r.createActionCreator,e.createActionCreators=r.createActionCreators,e.proxyActionCreators=r.proxyActionCreators;var i=n(584);e.createFSACreator=i.createActionCreator,e.createFSACreators=i.createActionCreators,e.proxyFSACreators=i.proxyActionCreators;var o=n(234);e.combineObjects=o.combineObjects;var a=n(587);e.combineUniqueObjects=a.combineUniqueObjects;var s=n(350);e.proxyCombineObjects=s.proxyCombineObjects;var u=n(588);e.proxyCombineUniqueObjects=u.proxyCombineUniqueObjects;var c=n(589);e.createReducer=c.createReducer},,,,function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(227),i=n(203),o=n(56),a=n(205),s=n(160),u=n(214),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),f=!n&&i(t),l=!n&&!f&&a(t),h=!n&&!f&&!l&&u(t),p=n||f||l||h,d=p?r(t.length,String):[],b=d.length;for(var v in t)!e&&!c.call(t,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,b))||d.push(v);return d}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(470),i=n(170),o=n(471),a=n(472),s=n(473),u=n(69),c=n(215),f=c(r),l=c(i),h=c(o),p=c(a),d=c(s),b=u;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=b(new i)||o&&"[object Promise]"!=b(o.resolve())||a&&"[object Set]"!=b(new a)||s&&"[object WeakMap]"!=b(new s))&&(b=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case f:return"[object DataView]";case l:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=b},,,,,,,,,,,,,function(t,e,n){"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,u=a(t),c=1;c<arguments.length;c++){for(var f in n=Object(arguments[c]))i.call(n,f)&&(u[f]=n[f]);if(r){s=r(n);for(var l=0;l<s.length;l++)o.call(n,s[l])&&(u[s[l]]=n[s[l]])}}return u}},,,,,,,function(t,e,n){"use strict";var r=n(301),i=n(68),o=n(200),a=n(156),s=n(201),u=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=r.deflateSetDictionary(this.strm,f)))throw new Error(a[n]);this._dict_set=!0}}function f(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}c.prototype.push=function(t,e){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=c,e.deflate=f,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},function(t,e,n){"use strict";var r,i=n(68),o=n(302),a=n(198),s=n(199),u=n(156);function c(t,e){return t.msg=u[e],e}function f(t){return(t<<1)-(t>4?9:0)}function l(t){for(var e=t.length;--e>=0;)t[e]=0}function h(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function p(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,h(t.strm)}function d(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function v(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+258,p=c[o+a-1],d=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===d&&c[n+a-1]===p&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<h);if(r=258-(h-o),o=h-258,r>a){if(t.match_start=e,a=r,r>=s)break;p=c[o+a-1],d=c[o+a]}}}while((e=l[e&f])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function y(t){var e,n,r,o,u,c,f,l,h,p,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-262)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=d?r-d:0}while(--n);e=n=d;do{r=t.prev[--e],t.prev[e]=r>=d?r-d:0}while(--n);o+=d}if(0===t.strm.avail_in)break;if(c=t.strm,f=t.window,l=t.strstart+t.lookahead,h=o,p=void 0,(p=c.avail_in)>h&&(p=h),n=0===p?0:(c.avail_in-=p,i.arraySet(f,c.input,c.next_in,p,l),1===c.state.wrap?c.adler=a(c.adler,f,p,l):2===c.state.wrap&&(c.adler=s(c.adler,f,p,l)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=n,t.lookahead+t.insert>=3)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+3-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function _(t,e){for(var n,r;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=v(t,n)),t.match_length>=3)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}function w(t,e){for(var n,r,i;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=v(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(p(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=o._tr_tally(t,0,t.window[t.strstart-1]))&&p(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}function m(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function g(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),l(this.dyn_ltree),l(this.dyn_dtree),l(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),l(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),l(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):c(t,-2)}function O(t){var e,n=x(t);return 0===n&&((e=t.state).window_size=2*e.w_size,l(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function j(t,e,n,r,o,a){if(!t)return-2;var s=1;if(-1===e&&(e=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||e<0||e>9||a<0||a>4)return c(t,-2);8===r&&(r=9);var u=new g;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=n,O(t)}r=[new m(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,p(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(p(t,!1),t.strm.avail_out),1)})),new m(4,4,8,4,_),new m(4,5,16,8,_),new m(4,6,32,32,_),new m(4,4,16,16,w),new m(8,16,32,32,w),new m(8,16,128,128,w),new m(8,32,128,256,w),new m(32,128,258,1024,w),new m(32,258,258,4096,w)],e.deflateInit=function(t,e){return j(t,e,8,15,8,0)},e.deflateInit2=j,e.deflateReset=O,e.deflateResetKeep=x,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var n,i,a,u;if(!t||!t.state||e>5||e<0)return t?c(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return c(t,0===t.avail_out?-5:-2);if(i.strm=t,n=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,d(i,31),d(i,139),d(i,8),i.gzhead?(d(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),d(i,255&i.gzhead.time),d(i,i.gzhead.time>>8&255),d(i,i.gzhead.time>>16&255),d(i,i.gzhead.time>>24&255),d(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),d(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(d(i,255&i.gzhead.extra.length),d(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(d(i,0),d(i,0),d(i,0),d(i,0),d(i,0),d(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),d(i,3),i.status=113);else{var v=8+(i.w_bits-8<<4)<<8;v|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(v|=32),v+=31-v%31,i.status=113,b(i,v),0!==i.strstart&&(b(i,t.adler>>>16),b(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending!==i.pending_buf_size));)d(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,d(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,d(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&h(t),i.pending+2<=i.pending_buf_size&&(d(i,255&t.adler),d(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(h(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(n)&&4!==e)return c(t,-5);if(666===i.status&&0!==t.avail_in)return c(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var _=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=258){if(y(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+258;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(i,e):r[i.level].func(i,e);if(3!==_&&4!==_||(i.status=666),1===_||3===_)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===_&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(l(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),h(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(d(i,255&t.adler),d(i,t.adler>>8&255),d(i,t.adler>>16&255),d(i,t.adler>>24&255),d(i,255&t.total_in),d(i,t.total_in>>8&255),d(i,t.total_in>>16&255),d(i,t.total_in>>24&255)):(b(i,t.adler>>>16),b(i,65535&t.adler)),h(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?c(t,-2):(t.state=null,113===e?c(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var n,r,o,s,u,c,f,h,p=e.length;if(!t||!t.state)return-2;if(2===(s=(n=t.state).wrap)||1===s&&42!==n.status||n.lookahead)return-2;for(1===s&&(t.adler=a(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(l(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,e,p-n.w_size,n.w_size,0),e=h,p=n.w_size),u=t.avail_in,c=t.next_in,f=t.input,t.avail_in=p,t.next_in=0,t.input=e,y(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=2,y(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=c,t.input=f,t.avail_in=u,n.wrap=s,0},e.deflateInfo="pako deflate (from Nodeca project)"},function(t,e,n){"use strict";var r=n(68);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var f=new Array(60);i(f);var l=new Array(512);i(l);var h=new Array(256);i(h);var p=new Array(29);i(p);var d,b,v,y=new Array(30);function _(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function m(t){return t<256?l[t]:l[256+(t>>>7)]}function g(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,g(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function O(t,e,n){x(t,n[2*e],n[2*e+1])}function j(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function k(t,e,n){var r,i,o=new Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=j(o[s]++,s))}}function E(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function S(t){t.bi_valid>8?g(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function C(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function P(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&C(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!C(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function A(t,e,n){var r,i,s,u,c=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*c]<<8|t.pending_buf[t.d_buf+2*c+1],i=t.pending_buf[t.l_buf+c],c++,0===r?O(t,i,e):(O(t,(s=h[i])+256+1,e),0!==(u=o[s])&&x(t,i-=p[s],u),O(t,s=m(--r),n),0!==(u=a[s])&&x(t,r-=y[s],u))}while(c<t.last_lit);O(t,256,e)}function T(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)P(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],P(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,P(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,d=e.stat_desc.max_length,b=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>d&&(o=d,b++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=p&&(a=h[r-p]),s=u[2*r],t.opt_len+=s*(o+a),l&&(t.static_len+=s*(f[2*r+1]+a)));if(0!==b){do{for(o=d-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[d]--,b-=2}while(b>0);for(o=d;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),k(o,c,t.bl_count)}function N(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function z(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{O(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(O(t,i,t.bl_tree),s--),O(t,16,t.bl_tree),x(t,s-3,2)):s<=10?(O(t,17,t.bl_tree),x(t,s-3,3)):(O(t,18,t.bl_tree),x(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}i(y);var R=!1;function B(t,e,n,i){x(t,0+(i?1:0),3),function(t,e,n,i){S(t),i&&(g(t,n),g(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}e._tr_init=function(t){R||(!function(){var t,e,n,r,i,u=new Array(16);for(n=0,r=0;r<28;r++)for(p[r]=n,t=0;t<1<<o[r];t++)h[n++]=r;for(h[n-1]=r,i=0,r=0;r<16;r++)for(y[r]=i,t=0;t<1<<a[r];t++)l[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,t=0;t<1<<a[r]-7;t++)l[256+i++]=r;for(e=0;e<=15;e++)u[e]=0;for(t=0;t<=143;)c[2*t+1]=8,t++,u[8]++;for(;t<=255;)c[2*t+1]=9,t++,u[9]++;for(;t<=279;)c[2*t+1]=7,t++,u[7]++;for(;t<=287;)c[2*t+1]=8,t++,u[8]++;for(k(c,287,u),t=0;t<30;t++)f[2*t+1]=5,f[2*t]=j(t,5);d=new _(c,o,257,286,15),b=new _(f,a,0,30,15),v=new _(new Array(0),s,0,19,7)}(),R=!0),t.l_desc=new w(t.dyn_ltree,d),t.d_desc=new w(t.dyn_dtree,b),t.bl_desc=new w(t.bl_tree,v),t.bi_buf=0,t.bi_valid=0,E(t)},e._tr_stored_block=B,e._tr_flush_block=function(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),T(t,t.l_desc),T(t,t.d_desc),a=function(t){var e;for(N(t,t.dyn_ltree,t.l_desc.max_code),N(t,t.dyn_dtree,t.d_desc.max_code),T(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?B(t,e,n,r):4===t.strategy||o===i?(x(t,2+(r?1:0),3),A(t,c,f)):(x(t,4+(r?1:0),3),function(t,e,n,r){var i;for(x(t,e-257,5),x(t,n-1,5),x(t,r-4,4),i=0;i<r;i++)x(t,t.bl_tree[2*u[i]+1],3);z(t,t.dyn_ltree,e-1),z(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),A(t,t.dyn_ltree,t.dyn_dtree)),E(t),r&&S(t)},e._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(h[n]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),O(t,256,c),function(t){16===t.bi_valid?(g(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){"use strict";var r=n(304),i=n(68),o=n(200),a=n(202),s=n(156),u=n(201),c=n(307),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[n])}function h(t,e){var n=new l(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}l.prototype.push=function(t,e){var n,s,u,c,l,h=this.strm,p=this.options.chunkSize,d=this.options.dictionary,b=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?h.input=o.binstring2buf(t):"[object ArrayBuffer]"===f.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&d&&(n=r.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===b&&(n=a.Z_OK,b=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=o.utf8border(h.output,h.next_out),c=h.next_out-u,l=o.buf2string(h.output,u),h.next_out=c,h.avail_out=p-c,c&&i.arraySet(h.output,h.output,u,c,0),this.onData(l)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(b=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},function(t,e,n){"use strict";var r=n(68),i=n(198),o=n(199),a=n(305),s=n(306);function u(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(852),e.distcode=e.distdyn=new r.Buf32(592),e.sane=1,e.back=-1,0):-2}function l(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):-2}function h(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,l(t))):-2}function p(t,e){var n,r;return t?(r=new c,t.state=r,r.window=null,0!==(n=h(t,e))&&(t.state=null),n):-2}var d,b,v=!0;function y(t){if(v){var e;for(d=new r.Buf32(512),b=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,d,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,b,0,t.work,{bits:5}),v=!1}t.lencode=d,t.lenbits=9,t.distcode=b,t.distbits=5}function _(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=l,e.inflateReset2=h,e.inflateResetKeep=f,e.inflateInit=function(t){return p(t,15)},e.inflateInit2=p,e.inflate=function(t,e){var n,c,f,l,h,p,d,b,v,w,m,g,x,O,j,k,E,S,C,P,A,T,N,z,R=0,B=new r.Buf8(4),I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(n=t.state).mode&&(n.mode=13),h=t.next_out,f=t.output,d=t.avail_out,l=t.next_in,c=t.input,p=t.avail_in,b=n.hold,v=n.bits,w=p,m=d,T=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(2&n.wrap&&35615===b){n.check=0,B[0]=255&b,B[1]=b>>>8&255,n.check=o(n.check,B,2,0),b=0,v=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",n.mode=30;break}if(v-=4,A=8+(15&(b>>>=4)),0===n.wbits)n.wbits=A;else if(A>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<A,t.adler=n.check=1,n.mode=512&b?10:12,b=0,v=0;break;case 2:for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(n.flags=b,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(B[0]=255&b,B[1]=b>>>8&255,n.check=o(n.check,B,2,0)),b=0,v=0,n.mode=3;case 3:for(;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.head&&(n.head.time=b),512&n.flags&&(B[0]=255&b,B[1]=b>>>8&255,B[2]=b>>>16&255,B[3]=b>>>24&255,n.check=o(n.check,B,4,0)),b=0,v=0,n.mode=4;case 4:for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(B[0]=255&b,B[1]=b>>>8&255,n.check=o(n.check,B,2,0)),b=0,v=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(B[0]=255&b,B[1]=b>>>8&255,n.check=o(n.check,B,2,0)),b=0,v=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((g=n.length)>p&&(g=p),g&&(n.head&&(A=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,l,g,A)),512&n.flags&&(n.check=o(n.check,c,g,l)),p-=g,l+=g,n.length-=g),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break t;g=0;do{A=c[l+g++],n.head&&A&&n.length<65536&&(n.head.name+=String.fromCharCode(A))}while(A&&g<p);if(512&n.flags&&(n.check=o(n.check,c,g,l)),p-=g,l+=g,A)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break t;g=0;do{A=c[l+g++],n.head&&A&&n.length<65536&&(n.head.comment+=String.fromCharCode(A))}while(A&&g<p);if(512&n.flags&&(n.check=o(n.check,c,g,l)),p-=g,l+=g,A)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(b!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}b=0,v=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}t.adler=n.check=u(b),b=0,v=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=h,t.avail_out=d,t.next_in=l,t.avail_in=p,n.hold=b,n.bits=v,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){b>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}switch(n.last=1&b,v-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6===e){b>>>=2,v-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,b=0,v=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(g=n.length){if(g>p&&(g=p),g>d&&(g=d),0===g)break t;r.arraySet(f,c,l,g,h),p-=g,l+=g,d-=g,h+=g,n.length-=g;break}n.mode=12;break;case 17:for(;v<14;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(n.nlen=257+(31&b),b>>>=5,v-=5,n.ndist=1+(31&b),b>>>=5,v-=5,n.ncode=4+(15&b),b>>>=4,v-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.lens[I[n.have++]]=7&b,b>>>=3,v-=3}for(;n.have<19;)n.lens[I[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},T=s(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,T){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;k=(R=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,E=65535&R,!((j=R>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(E<16)b>>>=j,v-=j,n.lens[n.have++]=E;else{if(16===E){for(z=j+2;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(b>>>=j,v-=j,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}A=n.lens[n.have-1],g=3+(3&b),b>>>=2,v-=2}else if(17===E){for(z=j+3;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}v-=j,A=0,g=3+(7&(b>>>=j)),b>>>=3,v-=3}else{for(z=j+7;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}v-=j,A=0,g=11+(127&(b>>>=j)),b>>>=7,v-=7}if(n.have+g>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;g--;)n.lens[n.have++]=A}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,N={bits:n.lenbits},T=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,T){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},T=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,T){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(p>=6&&d>=258){t.next_out=h,t.avail_out=d,t.next_in=l,t.avail_in=p,n.hold=b,n.bits=v,a(t,m),h=t.next_out,f=t.output,d=t.avail_out,l=t.next_in,c=t.input,p=t.avail_in,b=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;k=(R=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,E=65535&R,!((j=R>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(k&&0==(240&k)){for(S=j,C=k,P=E;k=(R=n.lencode[P+((b&(1<<S+C)-1)>>S)])>>>16&255,E=65535&R,!(S+(j=R>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}b>>>=S,v-=S,n.back+=S}if(b>>>=j,v-=j,n.back+=j,n.length=E,0===k){n.mode=26;break}if(32&k){n.back=-1,n.mode=12;break}if(64&k){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&k,n.mode=22;case 22:if(n.extra){for(z=n.extra;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;k=(R=n.distcode[b&(1<<n.distbits)-1])>>>16&255,E=65535&R,!((j=R>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(0==(240&k)){for(S=j,C=k,P=E;k=(R=n.distcode[P+((b&(1<<S+C)-1)>>S)])>>>16&255,E=65535&R,!(S+(j=R>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}b>>>=S,v-=S,n.back+=S}if(b>>>=j,v-=j,n.back+=j,64&k){t.msg="invalid distance code",n.mode=30;break}n.offset=E,n.extra=15&k,n.mode=24;case 24:if(n.extra){for(z=n.extra;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===d)break t;if(g=m-d,n.offset>g){if((g=n.offset-g)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}g>n.wnext?(g-=n.wnext,x=n.wsize-g):x=n.wnext-g,g>n.length&&(g=n.length),O=n.window}else O=f,x=h-n.offset,g=n.length;g>d&&(g=d),d-=g,n.length-=g;do{f[h++]=O[x++]}while(--g);0===n.length&&(n.mode=21);break;case 26:if(0===d)break t;f[h++]=n.length,d--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===p)break t;p--,b|=c[l++]<<v,v+=8}if(m-=d,t.total_out+=m,n.total+=m,m&&(t.adler=n.check=n.flags?o(n.check,f,m,h-m):i(n.check,f,m,h-m)),m=d,(n.flags?b:u(b))!==n.check){t.msg="incorrect data check",n.mode=30;break}b=0,v=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(b!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}b=0,v=0}n.mode=29;case 29:T=1;break t;case 30:T=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=h,t.avail_out=d,t.next_in=l,t.avail_in=p,n.hold=b,n.bits=v,(n.wsize||m!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&_(t,t.output,t.next_out,m-t.avail_out)?(n.mode=31,-4):(w-=t.avail_in,m-=t.avail_out,t.total_in+=w,t.total_out+=m,n.total+=m,n.wrap&&m&&(t.adler=n.check=n.flags?o(n.check,f,m,t.next_out-m):i(n.check,f,m,t.next_out-m)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===w&&0===m||4===e)&&0===T&&(T=-5),T)},e.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?-2:(n.head=e,e.done=!1,0):-2},e.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?-2:11===n.mode&&i(1,e,r,0)!==n.check?-3:_(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},e.inflateInfo="pako inflate (from Nodeca project)"},function(t,e,n){"use strict";t.exports=function(t,e){var n,r,i,o,a,s,u,c,f,l,h,p,d,b,v,y,_,w,m,g,x,O,j,k,E;n=t.state,r=t.next_in,k=t.input,i=r+(t.avail_in-5),o=t.next_out,E=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,c=n.wsize,f=n.whave,l=n.wnext,h=n.window,p=n.hold,d=n.bits,b=n.lencode,v=n.distcode,y=(1<<n.lenbits)-1,_=(1<<n.distbits)-1;t:do{d<15&&(p+=k[r++]<<d,d+=8,p+=k[r++]<<d,d+=8),w=b[p&y];e:for(;;){if(p>>>=m=w>>>24,d-=m,0===(m=w>>>16&255))E[o++]=65535&w;else{if(!(16&m)){if(0==(64&m)){w=b[(65535&w)+(p&(1<<m)-1)];continue e}if(32&m){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}g=65535&w,(m&=15)&&(d<m&&(p+=k[r++]<<d,d+=8),g+=p&(1<<m)-1,p>>>=m,d-=m),d<15&&(p+=k[r++]<<d,d+=8,p+=k[r++]<<d,d+=8),w=v[p&_];n:for(;;){if(p>>>=m=w>>>24,d-=m,!(16&(m=w>>>16&255))){if(0==(64&m)){w=v[(65535&w)+(p&(1<<m)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&w,d<(m&=15)&&(p+=k[r++]<<d,(d+=8)<m&&(p+=k[r++]<<d,d+=8)),(x+=p&(1<<m)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=m,d-=m,x>(m=o-a)){if((m=x-m)>f&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(O=0,j=h,0===l){if(O+=c-m,m<g){g-=m;do{E[o++]=h[O++]}while(--m);O=o-x,j=E}}else if(l<m){if(O+=c+l-m,(m-=l)<g){g-=m;do{E[o++]=h[O++]}while(--m);if(O=0,l<g){g-=m=l;do{E[o++]=h[O++]}while(--m);O=o-x,j=E}}}else if(O+=l-m,m<g){g-=m;do{E[o++]=h[O++]}while(--m);O=o-x,j=E}for(;g>2;)E[o++]=j[O++],E[o++]=j[O++],E[o++]=j[O++],g-=3;g&&(E[o++]=j[O++],g>1&&(E[o++]=j[O++]))}else{O=o-x;do{E[o++]=E[O++],E[o++]=E[O++],E[o++]=E[O++],g-=3}while(g>2);g&&(E[o++]=E[O++],g>1&&(E[o++]=E[O++]))}break}}break}}while(r<i&&o<s);r-=g=d>>3,p&=(1<<(d-=g<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=d}},function(t,e,n){"use strict";var r=n(68),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,n,u,c,f,l,h){var p,d,b,v,y,_,w,m,g,x=h.bits,O=0,j=0,k=0,E=0,S=0,C=0,P=0,A=0,T=0,N=0,z=null,R=0,B=new r.Buf16(16),I=new r.Buf16(16),D=null,M=0;for(O=0;O<=15;O++)B[O]=0;for(j=0;j<u;j++)B[e[n+j]]++;for(S=x,E=15;E>=1&&0===B[E];E--);if(S>E&&(S=E),0===E)return c[f++]=20971520,c[f++]=20971520,h.bits=1,0;for(k=1;k<E&&0===B[k];k++);for(S<k&&(S=k),A=1,O=1;O<=15;O++)if(A<<=1,(A-=B[O])<0)return-1;if(A>0&&(0===t||1!==E))return-1;for(I[1]=0,O=1;O<15;O++)I[O+1]=I[O]+B[O];for(j=0;j<u;j++)0!==e[n+j]&&(l[I[e[n+j]]++]=j);if(0===t?(z=D=l,_=19):1===t?(z=i,R-=257,D=o,M-=257,_=256):(z=a,D=s,_=-1),N=0,j=0,O=k,y=f,C=S,P=0,b=-1,v=(T=1<<S)-1,1===t&&T>852||2===t&&T>592)return 1;for(;;){w=O-P,l[j]<_?(m=0,g=l[j]):l[j]>_?(m=D[M+l[j]],g=z[R+l[j]]):(m=96,g=0),p=1<<O-P,k=d=1<<C;do{c[y+(N>>P)+(d-=p)]=w<<24|m<<16|g|0}while(0!==d);for(p=1<<O-1;N&p;)p>>=1;if(0!==p?(N&=p-1,N+=p):N=0,j++,0==--B[O]){if(O===E)break;O=e[n+l[j]]}if(O>S&&(N&v)!==b){for(0===P&&(P=S),y+=k,A=1<<(C=O-P);C+P<E&&!((A-=B[C+P])<=0);)C++,A<<=1;if(T+=1<<C,1===t&&T>852||2===t&&T>592)return 1;c[b=N&v]=S<<24|C<<16|y-f|0}}return 0!==N&&(c[y+N]=O-P<<24|64<<16|0),h.bits=S,0}},function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e,n){var r=n(213),i=n(318)(r);t.exports=i},function(t,e,n){var r=n(310)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}},function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(123),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=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}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(69),i=n(161),o=n(64),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,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(260),i=n(317),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(279)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(162);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(t,e,n){var r=n(149);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(321),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},function(t,e,n){var r=n(322);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=n(169);function i(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(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(324),i=n(143),o=n(170);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(325),i=n(330),o=n(331),a=n(332),s=n(333);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(126);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e,n){var r=n(206),i=n(327),o=n(115),a=n(215),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,f=u.toString,l=c.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:s).test(a(t))}},function(t,e,n){var r,i=n(328),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(66)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(126),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(126),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(126);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(127),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(127);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(127);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(127);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(128);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(128);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(128);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(128);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(123),i=n(216),o=n(56),a=n(151),s=r?r.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(262),i=n(150),o=n(160),a=n(115),s=n(116);t.exports=function(t,e,n,u){if(!a(t))return t;for(var c=-1,f=(e=i(e,t)).length,l=f-1,h=t;null!=h&&++c<f;){var p=s(e[c]),d=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(c!=l){var b=h[p];void 0===(d=u?u(b,p,h):void 0)&&(d=a(b)?b:o(e[c+1])?[]:{})}r(h,p,d),h=h[p]}return t}},function(t,e){t.exports=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(263),i=n(368),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(184),i=n(232);e.proxyDefaultActionCreators=function(t,e,n){let o;const a={get:(i,o)=>r.hasOwnProperty.call(i,o)?i[o]:n&&r.hasOwnProperty.call(n,o)?i[o]=n[o]:r.hasOwnProperty.call(e,o)?i[o]=t(o):void 0,ownKeys:()=>(o||(o=new Set([...Object.keys(e),...Object.keys(n||{})])),[...o]),getOwnPropertyDescriptor:(i,o)=>r.hasOwnProperty.call(i,o)?{value:i[o],configurable:!0,enumerable:!0}:n&&r.hasOwnProperty.call(n,o)?(i[o]=n[o],{value:i[o],configurable:!0,enumerable:!0}):r.hasOwnProperty.call(e,o)?(i[o]=t(o),{value:i[o],configurable:!0,enumerable:!0}):void 0};try{return new Proxy({},a)}catch(r){return i.createDefaultActionCreators(t,e,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(184),i=n(234);e.proxyCombineObjects=function(...t){let e,n;const o={get(e,i){if(r.hasOwnProperty.call(e,i))return e[i];if(!n||!n.has(i)){for(let n=t.length-1;n>=0;n--){const o=t[n];if(r.hasOwnProperty.call(o,i))return e[i]=o[i]}n?n.size>=100&&n.clear():n=new Set,n.add(i)}},ownKeys:()=>(e||(e=new Set(t.reduce((t,e)=>t.concat(Object.keys(e)),[]))),[...e]),getOwnPropertyDescriptor(e,i){if(r.hasOwnProperty.call(e,i))return{value:e[i],configurable:!0,enumerable:!0};if(!n||!n.has(i)){for(let n=t.length-1;n>=0;n--){const o=t[n];if(r.hasOwnProperty.call(o,i))return e[i]=o[i],{value:e[i],configurable:!0,enumerable:!0}}n?n.size>=100&&n.clear():n=new Set,n.add(i)}}};try{return new Proxy(Object.create(null),o)}catch(e){return i.combineObjects(...t)}}},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(39),i=function(t,e){return t===e||"function"==typeof e&&t===e.toString()},o=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return t.pipe(Object(r.a)((function(t){var n=t.type,r=e.length;if(1===r)return i(n,e[0]);for(var o=0;o<r;o++)if(i(n,e[o]))return!0;return!1})))}}},,,,,,,,,,function(t,e,n){"use strict";var r=n(0);e.a=function(t,e){var n=Object(r.useRef)(!0);Object(r.useEffect)((function(){if(!n.current)return t();n.current=!1}),e)}},,,function(t,e,n){var r=n(66).Uint8Array;t.exports=r},function(t,e,n){var r=n(367),i=n(347),o=n(157);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(346),i=n(56);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},function(t,e){t.exports=function(){return[]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(491),i=n(492);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(7),o=n(114);function a(t,e){return void 0===e&&(e=o.a),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.dueTime,this.scheduler))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(i.a);function c(t){t.debouncedNext()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(95),o=n(73),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict"; +/** @license React v0.19.1 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r,i,o,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,f=function(){if(null!==u)try{var t=e.unstable_now();u(!0,t),u=null}catch(t){throw setTimeout(f,0),t}},l=Date.now();e.unstable_now=function(){return Date.now()-l},r=function(t){null!==u?setTimeout(r,0,t):(u=t,setTimeout(f,0))},i=function(t,e){c=setTimeout(t,e)},o=function(){clearTimeout(c)},a=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var h=window.performance,p=window.Date,d=window.setTimeout,b=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof h&&"function"==typeof h.now)e.unstable_now=function(){return h.now()};else{var y=p.now();e.unstable_now=function(){return p.now()-y}}var _=!1,w=null,m=-1,g=5,x=0;a=function(){return e.unstable_now()>=x},s=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):g=0<t?Math.floor(1e3/t):5};var O=new MessageChannel,j=O.port2;O.port1.onmessage=function(){if(null!==w){var t=e.unstable_now();x=t+g;try{w(!0,t)?j.postMessage(null):(_=!1,w=null)}catch(t){throw j.postMessage(null),t}}else _=!1},r=function(t){w=t,_||(_=!0,j.postMessage(null))},i=function(t,n){m=d((function(){t(e.unstable_now())}),n)},o=function(){b(m),m=-1}}function k(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<C(i,e)))break t;t[r]=e,t[n]=i,n=r}}function E(t){return void 0===(t=t[0])?null:t}function S(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,a=t[o],s=o+1,u=t[s];if(void 0!==a&&0>C(a,n))void 0!==u&&0>C(u,a)?(t[r]=u,t[s]=n,r=s):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==u&&0>C(u,n)))break t;t[r]=u,t[s]=n,r=s}}}return e}return null}function C(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var P=[],A=[],T=1,N=null,z=3,R=!1,B=!1,I=!1;function D(t){for(var e=E(A);null!==e;){if(null===e.callback)S(A);else{if(!(e.startTime<=t))break;S(A),e.sortIndex=e.expirationTime,k(P,e)}e=E(A)}}function M(t){if(I=!1,D(t),!B)if(null!==E(P))B=!0,r(U);else{var e=E(A);null!==e&&i(M,e.startTime-t)}}function U(t,n){B=!1,I&&(I=!1,o()),R=!0;var r=z;try{for(D(n),N=E(P);null!==N&&(!(N.expirationTime>n)||t&&!a());){var s=N.callback;if(null!==s){N.callback=null,z=N.priorityLevel;var u=s(N.expirationTime<=n);n=e.unstable_now(),"function"==typeof u?N.callback=u:N===E(P)&&S(P),D(n)}else S(P);N=E(P)}if(null!==N)var c=!0;else{var f=E(A);null!==f&&i(M,f.startTime-n),c=!1}return c}finally{N=null,z=r,R=!1}}function F(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var q=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){B||R||(B=!0,r(U))},e.unstable_getCurrentPriorityLevel=function(){return z},e.unstable_getFirstCallbackNode=function(){return E(P)},e.unstable_next=function(t){switch(z){case 1:case 2:case 3:var e=3;break;default:e=z}var n=z;z=e;try{return t()}finally{z=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=q,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=z;z=t;try{return e()}finally{z=n}},e.unstable_scheduleCallback=function(t,n,a){var s=e.unstable_now();if("object"==typeof a&&null!==a){var u=a.delay;u="number"==typeof u&&0<u?s+u:s,a="number"==typeof a.timeout?a.timeout:F(t)}else a=F(t),u=s;return t={id:T++,callback:n,priorityLevel:t,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>s?(t.sortIndex=u,k(A,t),null===E(P)&&t===E(A)&&(I?o():I=!0,i(M,u-s))):(t.sortIndex=a,k(P,t),B||R||(B=!0,r(U))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();D(t);var n=E(P);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<N.expirationTime||a()},e.unstable_wrapCallback=function(t){var e=z;return function(){var n=z;z=e;try{return t.apply(this,arguments)}finally{z=n}}}},function(t,e,n){"use strict";var r=n(451);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(453),i=n(475),o=n(149),a=n(56),s=n(479);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(454),i=n(474),o=n(244);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(229),i=n(217);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var f=(c=n[a])[0],l=t[f],h=c[1];if(u&&c[2]){if(void 0===l&&!(f in t))return!1}else{var p=new r;if(o)var d=o(l,h,f,t,e,p);if(!(void 0===d?i(h,l,3,o,p):d))return!1}}return!0}},function(t,e,n){var r=n(143);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(143),i=n(170),o=n(169);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(229),i=n(242),o=n(466),a=n(469),s=n(280),u=n(56),c=n(205),f=n(214),l="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,d,b){var v=u(t),y=u(e),_=v?"[object Array]":s(t),w=y?"[object Array]":s(e),m=(_="[object Arguments]"==_?l:_)==l,g=(w="[object Arguments]"==w?l:w)==l,x=_==w;if(x&&c(t)){if(!c(e))return!1;v=!0,m=!1}if(x&&!m)return b||(b=new r),v||f(t)?i(t,e,n,p,d,b):o(t,e,_,n,p,d,b);if(!(1&n)){var O=m&&h.call(t,"__wrapped__"),j=g&&h.call(e,"__wrapped__");if(O||j){var k=O?t.value():t,E=j?e.value():e;return b||(b=new r),d(k,E,n,p,b)}}return!!x&&(b||(b=new r),a(t,e,n,p,d,b))}},function(t,e,n){var r=n(169),i=n(462),o=n(463);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=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}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(123),i=n(365),o=n(163),a=n(242),s=n(467),u=n(468),c=r?r.prototype:void 0,f=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,l,h){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||!l(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+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 p=s;case"[object Set]":var d=1&r;if(p||(p=u),t.size!=e.size&&!d)return!1;var b=h.get(t);if(b)return b==e;r|=2,h.set(t,e);var v=a(p(t),p(e),r,c,l,h);return h.delete(t),v;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(366),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var u=1&n,c=r(t),f=c.length;if(f!=r(e).length&&!u)return!1;for(var l=f;l--;){var h=c[l];if(!(u?h in e:i.call(e,h)))return!1}var p=s.get(t),d=s.get(e);if(p&&d)return p==e&&d==t;var b=!0;s.set(t,e),s.set(e,t);for(var v=u;++l<f;){var y=t[h=c[l]],_=e[h];if(o)var w=u?o(_,y,h,e,t,s):o(y,_,h,t,e,s);if(!(void 0===w?y===_||a(y,_,n,o,s):w)){b=!1;break}v||(v="constructor"==h)}if(b&&!v){var m=t.constructor,g=e.constructor;m==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof g&&g instanceof g||(b=!1)}return s.delete(t),s.delete(e),b}},function(t,e,n){var r=n(93)(n(66),"DataView");t.exports=r},function(t,e,n){var r=n(93)(n(66),"Promise");t.exports=r},function(t,e,n){var r=n(93)(n(66),"Set");t.exports=r},function(t,e,n){var r=n(93)(n(66),"WeakMap");t.exports=r},function(t,e,n){var r=n(243),i=n(157);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},function(t,e,n){var r=n(217),i=n(22),o=n(476),a=n(168),s=n(243),u=n(244),c=n(116);t.exports=function(t,e){return a(t)&&s(e)?u(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},function(t,e,n){var r=n(477),i=n(478);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(150),i=n(203),o=n(56),a=n(160),s=n(161),u=n(116);t.exports=function(t,e,n){for(var c=-1,f=(e=r(e,t)).length,l=!1;++c<f;){var h=u(e[c]);if(!(l=null!=t&&n(t,h)))break;t=t[h]}return l||++c!=f?l:!!(f=null==t?0:t.length)&&s(f)&&a(h,f)&&(o(t)||i(t))}},function(t,e,n){var r=n(264),i=n(480),o=n(168),a=n(116);t.exports=function(t){return o(t)?r(a(t)):i(t)}},function(t,e,n){var r=n(207);t.exports=function(t){return function(e){return r(e,t)}}},,function(t,e,n){"use strict";var r=n(50),i=n(245),o=n(483),a=n(250);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=s(n(247));u.Axios=o,u.create=function(t){return s(a(u.defaults,t))},u.Cancel=n(251),u.CancelToken=n(495),u.isCancel=n(246),u.all=function(t){return Promise.all(t)},u.spread=n(496),u.isAxiosError=n(497),t.exports=u,t.exports.default=u},function(t,e,n){"use strict";var r=n(50),i=n(230),o=n(484),a=n(485),s=n(250);function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=u},function(t,e,n){"use strict";var r=n(50);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var r=n(50),i=n(486),o=n(246),a=n(247);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(50);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";var r=n(50);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(249);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(50);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(50),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(50);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(251);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},function(t,e){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0,i=n;return[i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]]].join("")}},,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(100),i=n(65);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(i.a)(n)?(t.pop(),function(e){return Object(r.a)(t,e,n)}):function(e){return Object(r.a)(t,e)}}},,,,,,,,function(t,e,n){var r=n(572),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(u),r(t,this,c)}}},function(t,e,n){var r=n(573),i=n(575)(r);t.exports=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict"; +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,w=r?Symbol.for("react.fundamental"):60117,m=r?Symbol.for("react.responder"):60118,g=r?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case l:case h:case a:case u:case s:case d:return t;default:switch(t=t&&t.$$typeof){case f:case p:case y:case v:case c:return t;default:return e}}case o:return e}}}function O(t){return x(t)===h}e.AsyncMode=l,e.ConcurrentMode=h,e.ContextConsumer=f,e.ContextProvider=c,e.Element=i,e.ForwardRef=p,e.Fragment=a,e.Lazy=y,e.Memo=v,e.Portal=o,e.Profiler=u,e.StrictMode=s,e.Suspense=d,e.isAsyncMode=function(t){return O(t)||x(t)===l},e.isConcurrentMode=O,e.isContextConsumer=function(t){return x(t)===f},e.isContextProvider=function(t){return x(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return x(t)===p},e.isFragment=function(t){return x(t)===a},e.isLazy=function(t){return x(t)===y},e.isMemo=function(t){return x(t)===v},e.isPortal=function(t){return x(t)===o},e.isProfiler=function(t){return x(t)===u},e.isStrictMode=function(t){return x(t)===s},e.isSuspense=function(t){return x(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===h||t===u||t===s||t===d||t===b||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===v||t.$$typeof===c||t.$$typeof===f||t.$$typeof===p||t.$$typeof===w||t.$$typeof===m||t.$$typeof===g||t.$$typeof===_)},e.typeOf=x},function(t,e){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,n){var r=n(149),i=n(516),o=n(517);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e){t.exports=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)}},function(t,e,n){var r=n(574),i=n(228),o=n(149),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(263),i=n(216),o=n(264),a=n(227),s=n(577),u=Math.max;t.exports=function(t){if(!t||!t.length)return[];var e=0;return t=r(t,(function(t){if(s(t))return e=u(t.length,e),!0})),a(e,(function(e){return i(t,o(e))}))}},function(t,e,n){var r=n(162),i=n(64);t.exports=function(t){return i(t)&&r(t)}},,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(231);e.createActionCreator=r.createActionCreator;var i=n(582);e.createActionCreators=i.createActionCreators;var o=n(583);e.proxyActionCreators=o.proxyActionCreators},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(231),i=n(232);e.createActionCreators=function(t,e){return i.createDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(231),i=n(349);e.proxyActionCreators=function(t,e){return i.proxyDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(233);e.createActionCreator=r.createActionCreator;var i=n(585);e.createActionCreators=i.createActionCreators;var o=n(586);e.proxyActionCreators=o.proxyActionCreators},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(233),i=n(232);e.createActionCreators=function(t,e){return i.createDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(233),i=n(349);e.proxyActionCreators=function(t,e){return i.proxyDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(234);e.combineUniqueObjects=function(...t){return r.combineObjects(...t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(350);e.proxyCombineUniqueObjects=function(...t){return r.proxyCombineObjects(...t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(184);e.createReducer=function(t,e){return function(n=t,i){return r.hasOwnProperty.call(e,i.type)?e[i.type](n,i):n}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";t.exports=n(449)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(4),i=n(95),o=n(8),a=n(7),s=n(14);function u(){return function(t){return t.lift(new c(t))}}var c=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new f(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),l=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new p(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t},e.prototype.refCount=function(){return u()(this)},e}(o.a),h=function(){var t=l.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.b);a.a;var d=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();function b(){return new i.a}function v(){return function(t){return u()((e=b,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new d(r,n));var i=Object.create(t,h);return i.source=t,i.subjectFactory=r,i})(t));var e,n}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i=n(7);function o(){}var a=n(46);function s(t,e,n){return function(r){return r.lift(new u(t,e,n))}}var u=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))},t}(),c=function(t){function e(e,n,r,i){var s=t.call(this,e)||this;return s._tapNext=o,s._tapError=o,s._tapComplete=o,s._tapError=r||o,s._tapComplete=i||o,Object(a.a)(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||o,s._tapError=n.error||o,s._tapComplete=n.complete||o),s}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(i.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(121);function i(t,e){return e?Object(r.a)((function(){return t}),e):Object(r.a)((function(){return t}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(112);function i(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 o=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return r.a.apply(void 0,i(e.map((function(t){var e=t.apply(void 0,n);if(!e)throw new TypeError('combineEpics: one of the provided Epics "'+(t.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return e}))))};try{Object.defineProperty(o,"name",{value:"combineEpics("+e.map((function(t){return t.name||"<anonymous>"})).join(", ")+")"})}catch(t){}return o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(){return function(t){return t.lift(new a)}}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.__extends(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(i.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return I}));var r=n(4),i=n(118),o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(i.a),a=n(117),s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(a.a))(o),u=n(95),c=n(67),f=n(7),l=n(111);function h(t,e){return void 0===e&&(e=0),function(n){return n.lift(new p(t,e))}}var p=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.scheduler,this.delay))},t}(),d=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.__extends(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new b(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(l.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(l.a.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(l.a.createComplete()),this.unsubscribe()},e}(f.a),b=function(){return function(t,e){this.notification=t,this.destination=e}}(),v=n(10),y=n(152),_=n(8),w=1,m=function(){return Promise.resolve()}(),g={};function x(t){return t in g&&(delete g[t],!0)}var O=function(t){var e=w++;return g[e]=!0,m.then((function(){return x(e)&&t()})),e},j=function(t){x(t)},k=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=O(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(j(n),e.scheduled=void 0)},e}(i.a),E=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(a.a))(k),S=n(153),C=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=E);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!Object(S.a)(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=E),i}return r.__extends(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=E),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(_.a);function P(t,e){return void 0===e&&(e=0),function(n){return n.lift(new A(t,e))}}var A=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new C(e,this.delay,this.scheduler).subscribe(t)},t}(),T=n(102),N=n(352),z=function(){function t(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)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var R=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.source=t,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),z(e,null,[{key:"of",value:function(){return new this(T.a.apply(void 0,arguments))}},{key:"from",value:function(t,e){return new this(Object(c.a)(t,e))}}]),z(e,[{key:"lift",value:function(t){var n=new e(this);return n.operator=t,n}},{key:"ofType",value:function(){return N.a.apply(void 0,arguments)(this)}}]),e}(_.a);var B=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(function(t){var e=r.__notifier.subscribe(t);return e&&!e.closed&&t.next(r.value),e})));return r.value=n,r.__notifier=new u.a,r.__subscription=t.subscribe((function(t){t!==r.value&&(r.value=t,r.__notifier.next(t))})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(_.a);function I(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=s.constructor,n=new e(s.SchedulerAction);var r=new u.a,i=void 0,o=function(e){i=e;var o=(new u.a).pipe(h(n)),a=(new u.a).pipe(h(n)),s=new R(o),f=new B(a,i.getState());return r.pipe(Object(v.a)((function(e){var n="dependencies"in t?e(s,f,t.dependencies):e(s,f);if(!n)throw new TypeError('Your root Epic "'+(e.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return n})),Object(y.a)((function(t){return Object(c.a)(t).pipe(P(n),h(n))}))).subscribe(i.dispatch),function(t){return function(e){var n=t(e);return a.next(i.getState()),o.next(e),n}}};return o.run=function(t){r.next(t)},o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i=n(7),o=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),a=n(124);function s(t){return function(e){return 0===t?Object(a.b)():e.lift(new u(t))}}var u=function(){function t(t){if(this.total=t,this.total<0)throw new o}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.a)}]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/21.40c03899.js b/plugins/saladict-ztools/ext-saladic/assets/21.40c03899.js new file mode 100644 index 00000000..b5a44c98 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/21.40c03899.js @@ -0,0 +1,21 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[21],{10:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},100:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(102),i=n(137);function o(){return Object(i.a)(1)}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o()(r.a.apply(void 0,t))}},102:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(65),i=n(106),o=n(98);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r.a)(n)?(t.pop(),Object(o.a)(t,n)):Object(i.a)(t)}},106:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),i=n(130),o=n(98);function a(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}},108:function(t,e,n){var r=n(69),i=n(56),o=n(64);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},111:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r,i=n(124),o=n(102),a=n(8);function s(t){var e=t.error;t.subscriber.error(e)}r||(r={});var u=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return Object(o.a)(this.value);case"E":return t=this.error,e?new a.a((function(n){return e.schedule(s,0,{error:t,subscriber:n})})):new a.a((function(e){return e.error(t)}));case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},112:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(65),o=n(137),a=n(106);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,s=null,u=t[t.length-1];return Object(i.a)(u)?(s=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(n)(Object(a.a)(t,s))}},114:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(118),i=new(n(117).a)(r.a)},115:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},116:function(t,e,n){var r=n(151);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},117:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),o=function(t){function e(n,r){void 0===r&&(r=i.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.__extends(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i)},118:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(14).a))},119:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},120:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},121:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(4),i=n(37),o=n(99),a=n(36),s=n(10),u=n(67);function c(t,e){return"function"==typeof e?function(n){return n.pipe(c((function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new f(t))}}var f=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project))},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new o.a(this,e,n),s=this.destination;s.add(i),this.innerSubscription=Object(a.a)(this,t,void 0,void 0,i),this.innerSubscription!==i&&s.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(i.a)},123:function(t,e,n){var r=n(66).Symbol;t.exports=r},124:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(8),i=new r.a((function(t){return t.complete()}));function o(t){return t?function(t){return new r.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},125:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(30);function o(t,e){var n=Object(i.e)(i.a),o=Object(i.e)((function(){return t(n.current)}));return[Object(r.useRef)((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];n.current.next(e?e(t):t[0])})).current,o.current]}},126:function(t,e,n){var r=n(93)(Object,"create");t.exports=r},127:function(t,e,n){var r=n(163);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},128:function(t,e,n){var r=n(340);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},129:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},130:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},131:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},132:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(130),i=n(52),o=n(70),a=n(51),s=n(129),u=n(131),c=n(119),f=function(t){if(t&&"function"==typeof t[a.a])return f=t,function(t){var e=f[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(s.a)(t))return Object(r.a)(t);if(Object(u.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,f,l=Object(c.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+l+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},134:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(37),o=n(36);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new s(r,n))}}var s=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observables,this.project))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var a=n.length;i.values=new Array(a);for(var s=0;s<a;s++)i.toRespond.push(s);for(s=0;s<a;s++){var u=n[s];i.add(Object(o.a)(i,u,u,s))}return i}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},136:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),i=n(405),o=n(30);function a(t,e){if(!e)return Object(o.e)(t).current;var n=Object(o.e)((function(){return new i.a(e)})),a=Object(o.e)((function(){return t(n.current)})),s=Object(r.useRef)(!0);return Object(r.useEffect)((function(){s.current?s.current=!1:n.current.next(e)}),e),a.current}},137:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(152),i=n(120);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(i.a,t)}},14:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(60),i=n(119),o=n(46),a=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var f=0;f<n.length;++f){n[f].remove(this)}if(Object(o.a)(s))try{s.call(this)}catch(t){e=t instanceof a?u(t.errors):[t]}if(Object(r.a)(c)){f=-1;for(var l=c.length;++f<l;){var h=c[f];if(Object(i.a)(h))try{h.unsubscribe()}catch(t){e=e||[],t instanceof a?e=e.concat(u(t.errors)):e.push(t)}}}if(e)throw new a(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function u(t){return t.reduce((function(t,e){return t.concat(e instanceof a?e.errors:e)}),[])}},141:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(10);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Object(r.a)(o(t,n))(e)}}function o(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}},143:function(t,e,n){var r=n(334),i=n(335),o=n(336),a=n(337),s=n(338);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},149:function(t,e){t.exports=function(t){return t}},150:function(t,e,n){var r=n(56),i=n(168),o=n(320),a=n(261);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},151:function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},152:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(4),i=n(36),o=n(37),a=n(99),s=n(10),u=n(67);function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c((function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new f(t,n))})}var f=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent))},t}(),l=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new a.a(this,e,n),o=this.destination;o.add(r);var s=Object(i.a)(this,t,void 0,void 0,r);s!==r&&o.add(s)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},153:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(60);function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},156:function(t,e,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},157:function(t,e,n){var r=n(278),i=n(316),o=n(162);t.exports=function(t){return o(t)?r(t):i(t)}},159:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(114),o=n(153),a=n(65);function s(t,e,n){void 0===t&&(t=0);var s=-1;return Object(o.a)(e)?s=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=i.a),new r.a((function(e){var r=Object(o.a)(t)?t:+t-n.now();return n.schedule(u,r,{index:0,period:s,subscriber:e})}))}function u(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},16:function(t,e,n){"use strict";function r(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}e.a=function(t,e){var n;void 0===e&&(e=r);var i,o=[],a=!1;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return a&&n===this&&e(r,o)||(i=t.apply(this,r),a=!0,n=this,o=r),i}}},160:function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=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}},161:function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},162:function(t,e,n){var r=n(206),i=n(161);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},163:function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},168:function(t,e,n){var r=n(56),i=n(151),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},169:function(t,e,n){var r=n(323),i=n(339),o=n(341),a=n(342),s=n(343);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},170:function(t,e,n){var r=n(93)(n(66),"Map");t.exports=r},182:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(i.a)},187:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i=n(114);var o=n(7),a=n(111);function s(t,e){void 0===e&&(e=i.a);var n,r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new u(r,e))}}var u=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.__extends(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new f(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()},e}(o.a),f=function(){return function(t,e){this.time=t,this.notification=e}}()},188:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},190:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(30),i=n(0);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Object(i.useRef)(t);n.current=t;var o=Object(r.d)(),a=Object(i.useRef)(),s=Object(i.useRef)();if(Object(i.useEffect)((function(){s.current=null;var t=n.current[0],e=t.subscribe({next:function(e){if(t===n.current[0])return n.current[1]?n.current[1](e):void 0},error:function(e){if(t===n.current[0]){if(n.current[2])return s.current=null,n.current[2](e);s.current=e,o()}},complete:function(){if(t===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=e,function(){e.unsubscribe()}}),[t[0]]),s.current)throw s.current;return a}},198:function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},199:function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},200:function(t,e,n){"use strict";var r=n(68),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,e.string2buf=function(t){var e,n,i,o,a,s=t.length,u=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(u),a=0,o=0;a<u;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[a++]=n:n<2048?(e[a++]=192|n>>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},e.buf2string=function(t,e){var n,r,i,o,s=e||t.length,c=new Array(2*s);for(r=0,n=0;n<s;)if((i=t[n++])<128)c[r++]=i;else if((o=a[i])>4)c[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<s;)i=i<<6|63&t[n++],o--;o>1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return u(c,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},201:function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},202:function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},203:function(t,e,n){var r=n(311),i=n(64),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},204:function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},205:function(t,e,n){(function(t){var r=n(66),i=n(314),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;t.exports=u}).call(this,n(188)(t))},206:function(t,e,n){var r=n(69),i=n(115);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},207:function(t,e,n){var r=n(150),i=n(116);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},208:function(t,e,n){var r=n(228);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},213:function(t,e,n){var r=n(309),i=n(157);t.exports=function(t,e){return t&&r(t,e,i)}},214:function(t,e,n){var r=n(315),i=n(258),o=n(259),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},215:function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},216:function(t,e){t.exports=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}},22:function(t,e,n){var r=n(207);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},227:function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},228:function(t,e,n){var r=n(93),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},24:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},258:function(t,e){t.exports=function(t){return function(e){return t(e)}}},259:function(t,e,n){(function(t){var r=n(204),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n(188)(t))},260:function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},261:function(t,e,n){var r=n(344);t.exports=function(t){return null==t?"":r(t)}},262:function(t,e,n){var r=n(208),i=n(163),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},27:function(t,e,n){var r=n(345);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},277:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},278:function(t,e,n){var r=n(227),i=n(203),o=n(56),a=n(205),s=n(160),u=n(214),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),f=!n&&i(t),l=!n&&!f&&a(t),h=!n&&!f&&!l&&u(t),d=n||f||l||h,p=d?r(t.length,String):[],_=p.length;for(var b in t)!e&&!c.call(t,b)||d&&("length"==b||l&&("offset"==b||"parent"==b)||h&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,_))||p.push(b);return p}},279:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},293:function(t,e,n){"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,u=a(t),c=1;c<arguments.length;c++){for(var f in n=Object(arguments[c]))i.call(n,f)&&(u[f]=n[f]);if(r){s=r(n);for(var l=0;l<s.length;l++)o.call(n,s[l])&&(u[s[l]]=n[s[l]])}}return u}},30:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return f}));var r=n(0),i=n(95),o=n(141);function a(t){return t}function s(t){return Object(o.a)(0)(t)}function u(){return new i.a}function c(t){var e=Object(r.useRef)(!0),n=Object(r.useRef)(null);return e.current&&(e.current=!1,n.current=t()),n}function f(){var t=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return t(l)})).current}function l(t){return(t+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},300:function(t,e,n){"use strict";var r=n(301),i=n(68),o=n(200),a=n(156),s=n(201),u=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=r.deflateSetDictionary(this.strm,f)))throw new Error(a[n]);this._dict_set=!0}}function f(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}c.prototype.push=function(t,e){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=c,e.deflate=f,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},301:function(t,e,n){"use strict";var r,i=n(68),o=n(302),a=n(198),s=n(199),u=n(156);function c(t,e){return t.msg=u[e],e}function f(t){return(t<<1)-(t>4?9:0)}function l(t){for(var e=t.length;--e>=0;)t[e]=0}function h(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function d(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,h(t.strm)}function p(t,e){t.pending_buf[t.pending++]=e}function _(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function b(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+258,d=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===p&&c[n+a-1]===d&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<h);if(r=258-(h-o),o=h-258,r>a){if(t.match_start=e,a=r,r>=s)break;d=c[o+a-1],p=c[o+a]}}}while((e=l[e&f])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function v(t){var e,n,r,o,u,c,f,l,h,d,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-262)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=p?r-p:0}while(--n);e=n=p;do{r=t.prev[--e],t.prev[e]=r>=p?r-p:0}while(--n);o+=p}if(0===t.strm.avail_in)break;if(c=t.strm,f=t.window,l=t.strstart+t.lookahead,h=o,d=void 0,(d=c.avail_in)>h&&(d=h),n=0===d?0:(c.avail_in-=d,i.arraySet(f,c.input,c.next_in,d,l),1===c.state.wrap?c.adler=a(c.adler,f,d,l):2===c.state.wrap&&(c.adler=s(c.adler,f,d,l)),c.next_in+=d,c.total_in+=d,d),t.lookahead+=n,t.lookahead+t.insert>=3)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+3-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function y(t,e){for(var n,r;;){if(t.lookahead<262){if(v(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=b(t,n)),t.match_length>=3)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}function w(t,e){for(var n,r,i;;){if(t.lookahead<262){if(v(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=b(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(d(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=o._tr_tally(t,0,t.window[t.strstart-1]))&&d(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}function g(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function m(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),l(this.dyn_ltree),l(this.dyn_dtree),l(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),l(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),l(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):c(t,-2)}function k(t){var e,n=x(t);return 0===n&&((e=t.state).window_size=2*e.w_size,l(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function O(t,e,n,r,o,a){if(!t)return-2;var s=1;if(-1===e&&(e=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||e<0||e>9||a<0||a>4)return c(t,-2);8===r&&(r=9);var u=new m;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=n,k(t)}r=[new g(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(v(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,d(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(d(t,!1),t.strm.avail_out),1)})),new g(4,4,8,4,y),new g(4,5,16,8,y),new g(4,6,32,32,y),new g(4,4,16,16,w),new g(8,16,32,32,w),new g(8,16,128,128,w),new g(8,32,128,256,w),new g(32,128,258,1024,w),new g(32,258,258,4096,w)],e.deflateInit=function(t,e){return O(t,e,8,15,8,0)},e.deflateInit2=O,e.deflateReset=k,e.deflateResetKeep=x,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var n,i,a,u;if(!t||!t.state||e>5||e<0)return t?c(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return c(t,0===t.avail_out?-5:-2);if(i.strm=t,n=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,3),i.status=113);else{var b=8+(i.w_bits-8<<4)<<8;b|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(b|=32),b+=31-b%31,i.status=113,_(i,b),0!==i.strstart&&(_(i,t.adler>>>16),_(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,p(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,p(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&h(t),i.pending+2<=i.pending_buf_size&&(p(i,255&t.adler),p(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(h(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(n)&&4!==e)return c(t,-5);if(666===i.status&&0!==t.avail_in)return c(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var y=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(v(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=258){if(v(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+258;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(i,e):r[i.level].func(i,e);if(3!==y&&4!==y||(i.status=666),1===y||3===y)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===y&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(l(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),h(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&t.adler),p(i,t.adler>>8&255),p(i,t.adler>>16&255),p(i,t.adler>>24&255),p(i,255&t.total_in),p(i,t.total_in>>8&255),p(i,t.total_in>>16&255),p(i,t.total_in>>24&255)):(_(i,t.adler>>>16),_(i,65535&t.adler)),h(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?c(t,-2):(t.state=null,113===e?c(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var n,r,o,s,u,c,f,h,d=e.length;if(!t||!t.state)return-2;if(2===(s=(n=t.state).wrap)||1===s&&42!==n.status||n.lookahead)return-2;for(1===s&&(t.adler=a(t.adler,e,d,0)),n.wrap=0,d>=n.w_size&&(0===s&&(l(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,e,d-n.w_size,n.w_size,0),e=h,d=n.w_size),u=t.avail_in,c=t.next_in,f=t.input,t.avail_in=d,t.next_in=0,t.input=e,v(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=2,v(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=c,t.input=f,t.avail_in=u,n.wrap=s,0},e.deflateInfo="pako deflate (from Nodeca project)"},302:function(t,e,n){"use strict";var r=n(68);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var f=new Array(60);i(f);var l=new Array(512);i(l);var h=new Array(256);i(h);var d=new Array(29);i(d);var p,_,b,v=new Array(30);function y(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function g(t){return t<256?l[t]:l[256+(t>>>7)]}function m(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,m(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function k(t,e,n){x(t,n[2*e],n[2*e+1])}function O(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function j(t,e,n){var r,i,o=new Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=O(o[s]++,s))}}function S(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function E(t){t.bi_valid>8?m(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function z(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function N(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&z(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!z(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function T(t,e,n){var r,i,s,u,c=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*c]<<8|t.pending_buf[t.d_buf+2*c+1],i=t.pending_buf[t.l_buf+c],c++,0===r?k(t,i,e):(k(t,(s=h[i])+256+1,e),0!==(u=o[s])&&x(t,i-=d[s],u),k(t,s=g(--r),n),0!==(u=a[s])&&x(t,r-=v[s],u))}while(c<t.last_lit);k(t,256,e)}function A(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)N(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],N(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,N(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,_=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,_++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=d&&(a=h[r-d]),s=u[2*r],t.opt_len+=s*(o+a),l&&(t.static_len+=s*(f[2*r+1]+a)));if(0!==_){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,_-=2}while(_>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),j(o,c,t.bl_count)}function I(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function B(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{k(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(k(t,i,t.bl_tree),s--),k(t,16,t.bl_tree),x(t,s-3,2)):s<=10?(k(t,17,t.bl_tree),x(t,s-3,3)):(k(t,18,t.bl_tree),x(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}i(v);var C=!1;function P(t,e,n,i){x(t,0+(i?1:0),3),function(t,e,n,i){E(t),i&&(m(t,n),m(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}e._tr_init=function(t){C||(!function(){var t,e,n,r,i,u=new Array(16);for(n=0,r=0;r<28;r++)for(d[r]=n,t=0;t<1<<o[r];t++)h[n++]=r;for(h[n-1]=r,i=0,r=0;r<16;r++)for(v[r]=i,t=0;t<1<<a[r];t++)l[i++]=r;for(i>>=7;r<30;r++)for(v[r]=i<<7,t=0;t<1<<a[r]-7;t++)l[256+i++]=r;for(e=0;e<=15;e++)u[e]=0;for(t=0;t<=143;)c[2*t+1]=8,t++,u[8]++;for(;t<=255;)c[2*t+1]=9,t++,u[9]++;for(;t<=279;)c[2*t+1]=7,t++,u[7]++;for(;t<=287;)c[2*t+1]=8,t++,u[8]++;for(j(c,287,u),t=0;t<30;t++)f[2*t+1]=5,f[2*t]=O(t,5);p=new y(c,o,257,286,15),_=new y(f,a,0,30,15),b=new y(new Array(0),s,0,19,7)}(),C=!0),t.l_desc=new w(t.dyn_ltree,p),t.d_desc=new w(t.dyn_dtree,_),t.bl_desc=new w(t.bl_tree,b),t.bi_buf=0,t.bi_valid=0,S(t)},e._tr_stored_block=P,e._tr_flush_block=function(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),A(t,t.l_desc),A(t,t.d_desc),a=function(t){var e;for(I(t,t.dyn_ltree,t.l_desc.max_code),I(t,t.dyn_dtree,t.d_desc.max_code),A(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?P(t,e,n,r):4===t.strategy||o===i?(x(t,2+(r?1:0),3),T(t,c,f)):(x(t,4+(r?1:0),3),function(t,e,n,r){var i;for(x(t,e-257,5),x(t,n-1,5),x(t,r-4,4),i=0;i<r;i++)x(t,t.bl_tree[2*u[i]+1],3);B(t,t.dyn_ltree,e-1),B(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),T(t,t.dyn_ltree,t.dyn_dtree)),S(t),r&&E(t)},e._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(h[n]+256+1)]++,t.dyn_dtree[2*g(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),k(t,256,c),function(t){16===t.bi_valid?(m(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},303:function(t,e,n){"use strict";var r=n(304),i=n(68),o=n(200),a=n(202),s=n(156),u=n(201),c=n(307),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[n])}function h(t,e){var n=new l(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}l.prototype.push=function(t,e){var n,s,u,c,l,h=this.strm,d=this.options.chunkSize,p=this.options.dictionary,_=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?h.input=o.binstring2buf(t):"[object ArrayBuffer]"===f.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(d),h.next_out=0,h.avail_out=d),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(n=r.inflateSetDictionary(this.strm,p)),n===a.Z_BUF_ERROR&&!0===_&&(n=a.Z_OK,_=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=o.utf8border(h.output,h.next_out),c=h.next_out-u,l=o.buf2string(h.output,u),h.next_out=c,h.avail_out=d-c,c&&i.arraySet(h.output,h.output,u,c,0),this.onData(l)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(_=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},304:function(t,e,n){"use strict";var r=n(68),i=n(198),o=n(199),a=n(305),s=n(306);function u(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(852),e.distcode=e.distdyn=new r.Buf32(592),e.sane=1,e.back=-1,0):-2}function l(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):-2}function h(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,l(t))):-2}function d(t,e){var n,r;return t?(r=new c,t.state=r,r.window=null,0!==(n=h(t,e))&&(t.state=null),n):-2}var p,_,b=!0;function v(t){if(b){var e;for(p=new r.Buf32(512),_=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,p,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,_,0,t.work,{bits:5}),b=!1}t.lencode=p,t.lenbits=9,t.distcode=_,t.distbits=5}function y(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=l,e.inflateReset2=h,e.inflateResetKeep=f,e.inflateInit=function(t){return d(t,15)},e.inflateInit2=d,e.inflate=function(t,e){var n,c,f,l,h,d,p,_,b,w,g,m,x,k,O,j,S,E,z,N,T,A,I,B,C=0,P=new r.Buf8(4),D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(n=t.state).mode&&(n.mode=13),h=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,c=t.input,d=t.avail_in,_=n.hold,b=n.bits,w=d,g=p,A=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(2&n.wrap&&35615===_){n.check=0,P[0]=255&_,P[1]=_>>>8&255,n.check=o(n.check,P,2,0),_=0,b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&_)<<8)+(_>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&_)){t.msg="unknown compression method",n.mode=30;break}if(b-=4,T=8+(15&(_>>>=4)),0===n.wbits)n.wbits=T;else if(T>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<T,t.adler=n.check=1,n.mode=512&_?10:12,_=0,b=0;break;case 2:for(;b<16;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(n.flags=_,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=_>>8&1),512&n.flags&&(P[0]=255&_,P[1]=_>>>8&255,n.check=o(n.check,P,2,0)),_=0,b=0,n.mode=3;case 3:for(;b<32;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}n.head&&(n.head.time=_),512&n.flags&&(P[0]=255&_,P[1]=_>>>8&255,P[2]=_>>>16&255,P[3]=_>>>24&255,n.check=o(n.check,P,4,0)),_=0,b=0,n.mode=4;case 4:for(;b<16;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}n.head&&(n.head.xflags=255&_,n.head.os=_>>8),512&n.flags&&(P[0]=255&_,P[1]=_>>>8&255,n.check=o(n.check,P,2,0)),_=0,b=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}n.length=_,n.head&&(n.head.extra_len=_),512&n.flags&&(P[0]=255&_,P[1]=_>>>8&255,n.check=o(n.check,P,2,0)),_=0,b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((m=n.length)>d&&(m=d),m&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,l,m,T)),512&n.flags&&(n.check=o(n.check,c,m,l)),d-=m,l+=m,n.length-=m),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===d)break t;m=0;do{T=c[l+m++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T))}while(T&&m<d);if(512&n.flags&&(n.check=o(n.check,c,m,l)),d-=m,l+=m,T)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===d)break t;m=0;do{T=c[l+m++],n.head&&T&&n.length<65536&&(n.head.comment+=String.fromCharCode(T))}while(T&&m<d);if(512&n.flags&&(n.check=o(n.check,c,m,l)),d-=m,l+=m,T)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(_!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}_=0,b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;b<32;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}t.adler=n.check=u(_),_=0,b=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=h,t.avail_out=p,t.next_in=l,t.avail_in=d,n.hold=_,n.bits=b,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){_>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}switch(n.last=1&_,b-=1,3&(_>>>=1)){case 0:n.mode=14;break;case 1:if(v(n),n.mode=20,6===e){_>>>=2,b-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}_>>>=2,b-=2;break;case 14:for(_>>>=7&b,b-=7&b;b<32;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if((65535&_)!=(_>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&_,_=0,b=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(m=n.length){if(m>d&&(m=d),m>p&&(m=p),0===m)break t;r.arraySet(f,c,l,m,h),d-=m,l+=m,p-=m,h+=m,n.length-=m;break}n.mode=12;break;case 17:for(;b<14;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(n.nlen=257+(31&_),_>>>=5,b-=5,n.ndist=1+(31&_),_>>>=5,b-=5,n.ncode=4+(15&_),_>>>=4,b-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}n.lens[D[n.have++]]=7&_,_>>>=3,b-=3}for(;n.have<19;)n.lens[D[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},A=s(0,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,A){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;j=(C=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,S=65535&C,!((O=C>>>24)<=b);){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(S<16)_>>>=O,b-=O,n.lens[n.have++]=S;else{if(16===S){for(B=O+2;b<B;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(_>>>=O,b-=O,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}T=n.lens[n.have-1],m=3+(3&_),_>>>=2,b-=2}else if(17===S){for(B=O+3;b<B;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}b-=O,T=0,m=3+(7&(_>>>=O)),_>>>=3,b-=3}else{for(B=O+7;b<B;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}b-=O,T=0,m=11+(127&(_>>>=O)),_>>>=7,b-=7}if(n.have+m>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;m--;)n.lens[n.have++]=T}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,I={bits:n.lenbits},A=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,A){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},A=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,A){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(d>=6&&p>=258){t.next_out=h,t.avail_out=p,t.next_in=l,t.avail_in=d,n.hold=_,n.bits=b,a(t,g),h=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,c=t.input,d=t.avail_in,_=n.hold,b=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;j=(C=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,S=65535&C,!((O=C>>>24)<=b);){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(j&&0==(240&j)){for(E=O,z=j,N=S;j=(C=n.lencode[N+((_&(1<<E+z)-1)>>E)])>>>16&255,S=65535&C,!(E+(O=C>>>24)<=b);){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}_>>>=E,b-=E,n.back+=E}if(_>>>=O,b-=O,n.back+=O,n.length=S,0===j){n.mode=26;break}if(32&j){n.back=-1,n.mode=12;break}if(64&j){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&j,n.mode=22;case 22:if(n.extra){for(B=n.extra;b<B;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}n.length+=_&(1<<n.extra)-1,_>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;j=(C=n.distcode[_&(1<<n.distbits)-1])>>>16&255,S=65535&C,!((O=C>>>24)<=b);){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(0==(240&j)){for(E=O,z=j,N=S;j=(C=n.distcode[N+((_&(1<<E+z)-1)>>E)])>>>16&255,S=65535&C,!(E+(O=C>>>24)<=b);){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}_>>>=E,b-=E,n.back+=E}if(_>>>=O,b-=O,n.back+=O,64&j){t.msg="invalid distance code",n.mode=30;break}n.offset=S,n.extra=15&j,n.mode=24;case 24:if(n.extra){for(B=n.extra;b<B;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}n.offset+=_&(1<<n.extra)-1,_>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===p)break t;if(m=g-p,n.offset>m){if((m=n.offset-m)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}m>n.wnext?(m-=n.wnext,x=n.wsize-m):x=n.wnext-m,m>n.length&&(m=n.length),k=n.window}else k=f,x=h-n.offset,m=n.length;m>p&&(m=p),p-=m,n.length-=m;do{f[h++]=k[x++]}while(--m);0===n.length&&(n.mode=21);break;case 26:if(0===p)break t;f[h++]=n.length,p--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===d)break t;d--,_|=c[l++]<<b,b+=8}if(g-=p,t.total_out+=g,n.total+=g,g&&(t.adler=n.check=n.flags?o(n.check,f,g,h-g):i(n.check,f,g,h-g)),g=p,(n.flags?_:u(_))!==n.check){t.msg="incorrect data check",n.mode=30;break}_=0,b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(_!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}_=0,b=0}n.mode=29;case 29:A=1;break t;case 30:A=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=h,t.avail_out=p,t.next_in=l,t.avail_in=d,n.hold=_,n.bits=b,(n.wsize||g!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&y(t,t.output,t.next_out,g-t.avail_out)?(n.mode=31,-4):(w-=t.avail_in,g-=t.avail_out,t.total_in+=w,t.total_out+=g,n.total+=g,n.wrap&&g&&(t.adler=n.check=n.flags?o(n.check,f,g,t.next_out-g):i(n.check,f,g,t.next_out-g)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===w&&0===g||4===e)&&0===A&&(A=-5),A)},e.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?-2:(n.head=e,e.done=!1,0):-2},e.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?-2:11===n.mode&&i(1,e,r,0)!==n.check?-3:y(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},e.inflateInfo="pako inflate (from Nodeca project)"},305:function(t,e,n){"use strict";t.exports=function(t,e){var n,r,i,o,a,s,u,c,f,l,h,d,p,_,b,v,y,w,g,m,x,k,O,j,S;n=t.state,r=t.next_in,j=t.input,i=r+(t.avail_in-5),o=t.next_out,S=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,c=n.wsize,f=n.whave,l=n.wnext,h=n.window,d=n.hold,p=n.bits,_=n.lencode,b=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{p<15&&(d+=j[r++]<<p,p+=8,d+=j[r++]<<p,p+=8),w=_[d&v];e:for(;;){if(d>>>=g=w>>>24,p-=g,0===(g=w>>>16&255))S[o++]=65535&w;else{if(!(16&g)){if(0==(64&g)){w=_[(65535&w)+(d&(1<<g)-1)];continue e}if(32&g){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}m=65535&w,(g&=15)&&(p<g&&(d+=j[r++]<<p,p+=8),m+=d&(1<<g)-1,d>>>=g,p-=g),p<15&&(d+=j[r++]<<p,p+=8,d+=j[r++]<<p,p+=8),w=b[d&y];n:for(;;){if(d>>>=g=w>>>24,p-=g,!(16&(g=w>>>16&255))){if(0==(64&g)){w=b[(65535&w)+(d&(1<<g)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&w,p<(g&=15)&&(d+=j[r++]<<p,(p+=8)<g&&(d+=j[r++]<<p,p+=8)),(x+=d&(1<<g)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=g,p-=g,x>(g=o-a)){if((g=x-g)>f&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=0,O=h,0===l){if(k+=c-g,g<m){m-=g;do{S[o++]=h[k++]}while(--g);k=o-x,O=S}}else if(l<g){if(k+=c+l-g,(g-=l)<m){m-=g;do{S[o++]=h[k++]}while(--g);if(k=0,l<m){m-=g=l;do{S[o++]=h[k++]}while(--g);k=o-x,O=S}}}else if(k+=l-g,g<m){m-=g;do{S[o++]=h[k++]}while(--g);k=o-x,O=S}for(;m>2;)S[o++]=O[k++],S[o++]=O[k++],S[o++]=O[k++],m-=3;m&&(S[o++]=O[k++],m>1&&(S[o++]=O[k++]))}else{k=o-x;do{S[o++]=S[k++],S[o++]=S[k++],S[o++]=S[k++],m-=3}while(m>2);m&&(S[o++]=S[k++],m>1&&(S[o++]=S[k++]))}break}}break}}while(r<i&&o<s);r-=m=p>>3,d&=(1<<(p-=m<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=d,n.bits=p}},306:function(t,e,n){"use strict";var r=n(68),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,n,u,c,f,l,h){var d,p,_,b,v,y,w,g,m,x=h.bits,k=0,O=0,j=0,S=0,E=0,z=0,N=0,T=0,A=0,I=0,B=null,C=0,P=new r.Buf16(16),D=new r.Buf16(16),R=null,Z=0;for(k=0;k<=15;k++)P[k]=0;for(O=0;O<u;O++)P[e[n+O]]++;for(E=x,S=15;S>=1&&0===P[S];S--);if(E>S&&(E=S),0===S)return c[f++]=20971520,c[f++]=20971520,h.bits=1,0;for(j=1;j<S&&0===P[j];j++);for(E<j&&(E=j),T=1,k=1;k<=15;k++)if(T<<=1,(T-=P[k])<0)return-1;if(T>0&&(0===t||1!==S))return-1;for(D[1]=0,k=1;k<15;k++)D[k+1]=D[k]+P[k];for(O=0;O<u;O++)0!==e[n+O]&&(l[D[e[n+O]]++]=O);if(0===t?(B=R=l,y=19):1===t?(B=i,C-=257,R=o,Z-=257,y=256):(B=a,R=s,y=-1),I=0,O=0,k=j,v=f,z=E,N=0,_=-1,b=(A=1<<E)-1,1===t&&A>852||2===t&&A>592)return 1;for(;;){w=k-N,l[O]<y?(g=0,m=l[O]):l[O]>y?(g=R[Z+l[O]],m=B[C+l[O]]):(g=96,m=0),d=1<<k-N,j=p=1<<z;do{c[v+(I>>N)+(p-=d)]=w<<24|g<<16|m|0}while(0!==p);for(d=1<<k-1;I&d;)d>>=1;if(0!==d?(I&=d-1,I+=d):I=0,O++,0==--P[k]){if(k===S)break;k=e[n+l[O]]}if(k>E&&(I&b)!==_){for(0===N&&(N=E),v+=j,T=1<<(z=k-N);z+N<S&&!((T-=P[z+N])<=0);)z++,T<<=1;if(A+=1<<z,1===t&&A>852||2===t&&A>592)return 1;c[_=I&b]=E<<24|z<<16|v-f|0}}return 0!==I&&(c[v+I]=k-N<<24|64<<16|0),h.bits=E,0}},307:function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},308:function(t,e,n){var r=n(213),i=n(318)(r);t.exports=i},309:function(t,e,n){var r=n(310)();t.exports=r},310:function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}},311:function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},312:function(t,e,n){var r=n(123),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=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}},313:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},314:function(t,e){t.exports=function(){return!1}},315:function(t,e,n){var r=n(69),i=n(161),o=n(64),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,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},316:function(t,e,n){var r=n(260),i=n(317),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},317:function(t,e,n){var r=n(279)(Object.keys,Object);t.exports=r},318:function(t,e,n){var r=n(162);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},319:function(t,e,n){var r=n(149);t.exports=function(t){return"function"==typeof t?t:r}},320:function(t,e,n){var r=n(321),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},321:function(t,e,n){var r=n(322);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},322:function(t,e,n){var r=n(169);function i(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(i.Cache||r),n}i.Cache=r,t.exports=i},323:function(t,e,n){var r=n(324),i=n(143),o=n(170);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},324:function(t,e,n){var r=n(325),i=n(330),o=n(331),a=n(332),s=n(333);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},325:function(t,e,n){var r=n(126);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},326:function(t,e,n){var r=n(206),i=n(327),o=n(115),a=n(215),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,f=u.toString,l=c.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:s).test(a(t))}},327:function(t,e,n){var r,i=n(328),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},328:function(t,e,n){var r=n(66)["__core-js_shared__"];t.exports=r},329:function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},330:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},331:function(t,e,n){var r=n(126),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},332:function(t,e,n){var r=n(126),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},333:function(t,e,n){var r=n(126);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},334:function(t,e){t.exports=function(){this.__data__=[],this.size=0}},335:function(t,e,n){var r=n(127),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},336:function(t,e,n){var r=n(127);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},337:function(t,e,n){var r=n(127);t.exports=function(t){return r(this.__data__,t)>-1}},338:function(t,e,n){var r=n(127);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},339:function(t,e,n){var r=n(128);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},340:function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},341:function(t,e,n){var r=n(128);t.exports=function(t){return r(this,t).get(t)}},342:function(t,e,n){var r=n(128);t.exports=function(t){return r(this,t).has(t)}},343:function(t,e,n){var r=n(128);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},344:function(t,e,n){var r=n(123),i=n(216),o=n(56),a=n(151),s=r?r.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},345:function(t,e,n){var r=n(262),i=n(150),o=n(160),a=n(115),s=n(116);t.exports=function(t,e,n,u){if(!a(t))return t;for(var c=-1,f=(e=i(e,t)).length,l=f-1,h=t;null!=h&&++c<f;){var d=s(e[c]),p=n;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(c!=l){var _=h[d];void 0===(p=u?u(_,d,h):void 0)&&(p=a(_)?_:o(e[c+1])?[]:{})}r(h,d,p),h=h[d]}return t}},36:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(99),i=n(132),o=n(8);function a(t,e,n,a,s){if(void 0===s&&(s=new r.a(t,n,a)),!s.closed)return e instanceof o.a?e.subscribe(s):Object(i.a)(e)(s)}},37:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(7).a)},39:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.a)},4:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return f})),n.d(e,"__generator",(function(){return l})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return _})),n.d(e,"__spread",(function(){return b})),n.d(e,"__spreadArrays",(function(){return v})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return w})),n.d(e,"__asyncDelegator",(function(){return g})),n.d(e,"__asyncValues",(function(){return m})),n.d(e,"__makeTemplateObject",(function(){return x})),n.d(e,"__importStar",(function(){return k})),n.d(e,"__importDefault",(function(){return O})),n.d(e,"__classPrivateFieldGet",(function(){return j})),n.d(e,"__classPrivateFieldSet",(function(){return S})); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function f(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 l(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function d(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function b(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(_(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function w(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,c):f(o[0][2],n)}catch(t){f(o[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function f(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function g(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function m(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function k(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function O(t){return t&&t.__esModule?t:{default:t}}function j(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},404:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(7),o=n(114);function a(t,e){return void 0===e&&(e=o.a),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.dueTime,this.scheduler))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(i.a);function c(t){t.debouncedNext()}},405:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(95),o=n(73),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},44:function(t,e,n){"use strict";function r(t,e=window){if(t){const e=t.toString().trim();if(e)return e}const n=e.document.activeElement;if(n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName)){const t=n;return t.value.slice(t.selectionStart||0,t.selectionEnd||0)}return""}function i(t=window){return r(t.getSelection(),t)}function o(t){if(!t||t.rangeCount<=0)return"";const e=t.toString();if(!e.trim())return"";const n=t.getRangeAt(0);return n?(function(t){if(t){const e=/[.?!。?!…]/,n=/[^\s.?!。?!…]/;for(let r=t.length-1;r>=0;r--){const i=t[r];if(e.test(i)){if("."===i&&n.test(t[r+1]))continue;return t.slice(r+1)}}}return t}(s(n))+e+function(t){const e=/^((\.(?![\s.?!。?!…]))|[^.?!。?!…])*([.?!。?!…]){0,3}/.exec(t);return e?e[0]:""}(u(n))).replace(/\s+/g," ").trim():""}function a(t=window){return o(t.getSelection())}function s(t){let e=t.startContainer,n="";switch(e.nodeType){case Node.TEXT_NODE:{const r=e.textContent;r&&(n=r.slice(0,t.startOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:e=e.childNodes[t.startOffset]}for(let t=e;f(t);t=t.parentElement)for(let e=t.previousSibling;f(e);e=e.previousSibling)n=c(e)+n;return n}function u(t){let e=t.endContainer,n="";switch(e.nodeType){case Node.TEXT_NODE:{const r=e.textContent;r&&(n=r.slice(t.endOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:e=e.childNodes[t.endOffset-1]}for(let t=e;f(t);t=t.parentElement)for(let e=t.nextSibling;f(e);e=e.nextSibling)n+=c(e);return n}function c(t){return t.nodeType===Node.TEXT_NODE?t.nodeValue||"":t.nodeType===Node.ELEMENT_NODE&&t.innerText||""}function f(t){if(!t)return!1;switch(t.nodeType){case Node.TEXT_NODE:case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:return!0;case Node.ELEMENT_NODE:switch(t.tagName){case"A":case"ABBR":case"B":case"BDI":case"BDO":case"BR":case"CITE":case"CODE":case"DATA":case"DFN":case"EM":case"I":case"KBD":case"MARK":case"Q":case"RP":case"RT":case"RTC":case"RUBY":case"S":case"SAMP":case"SMALL":case"SPAN":case"STRONG":case"SUB":case"SUP":case"TIME":case"U":case"VAR":case"WBR":return!0}}return!1}n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return r}))},46:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},508:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(100),i=n(65);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(i.a)(n)?(t.pop(),function(e){return Object(r.a)(t,e,n)}):function(e){return Object(r.a)(t,e)}}},51:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},52:function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},56:function(t,e){var n=Array.isArray;t.exports=n},561:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(37),o=n(36);function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return r.__extends(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(o.a)(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.a)},562:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i=n(37),o=n(36),a={leading:!0,trailing:!1};function s(t,e){return void 0===e&&(e=a),function(n){return n.lift(new u(t,e.leading,e.trailing))}}var u=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.durationSelector,this.leading,this.trailing))},t}(),c=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r.__extends(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(o.a)(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(i.a)},563:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(i.a)},57:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(60),o=n(46),a=n(10);function s(t,e,n,u){return Object(o.a)(n)&&(u=n,n=void 0),u?s(t,e,n).pipe(Object(a.a)((function(t){return Object(i.a)(t)?u.apply(void 0,t):u(t)}))):new r.a((function(r){!function t(e,n,r,i,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),a=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,r),a=function(){return c.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var f=0,l=e.length;f<l;f++)t(e[f],n,r,i,o)}i.add(a)}(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}},60:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},63:function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},64:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},65:function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},66:function(t,e,n){var r=n(204),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},67:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(8),i=n(132),o=n(14),a=n(51);var s=n(98),u=n(70);var c=n(131),f=n(129);function l(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new r.a((function(n){var r=new o.a;return r.add(e.schedule((function(){var i=t[a.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a((function(n){var r=new o.a;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Object(f.a)(t))return Object(s.a)(t,e);if(function(t){return t&&"function"==typeof t[u.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,i=new o.a;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[u.a](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function h(t,e){return e?l(t,e):t instanceof r.a?t:new r.a(Object(i.a)(t))}},68:function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},a={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(r)},69:function(t,e,n){var r=n(123),i=n(312),o=n(313),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},7:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(4),i=n(46),o=n(82),a=n(14),s=n(72),u=n(24),c=n(52),f=function(t){function e(n,r,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!n){a.destination=o.a;break}if("object"==typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new l(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new l(a,n,r,i)}return a}return r.__extends(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a.a),l=function(t){function e(e,n,r,a){var s,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==o.a&&(c=Object.create(n),Object(i.a)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=r,u._complete=a,u}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw t;Object(c.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(c.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(f)},70:function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));var i=r()},72:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},73:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},736:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(4),i=n(65),o=n(60),a=n(37),s=n(36),u=n(106),c={};function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return Object(i.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(o.a)(t[0])&&(t=t[0]),Object(u.a)(t,r).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},t}(),h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.__extends(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Object(s.a)(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,a=o[n],s=this.toRespond?a===c?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.a)},751:function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(4),i=n(95),o=n(8),a=n(7),s=n(14);function u(){return function(t){return t.lift(new c(t))}}var c=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new f(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),l=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t},e.prototype.refCount=function(){return u()(this)},e}(o.a),h=function(){var t=l.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),d=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.b);a.a;var p=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();function _(){return new i.a}function b(){return function(t){return u()((e=_,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new p(r,n));var i=Object.create(t,h);return i.source=t,i.subjectFactory=r,i})(t));var e,n}}},77:function(t,e,n){var r=n(277),i=n(308),o=n(319),a=n(56);t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},8:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(7);var i=n(72),o=n(82);var a=n(51),s=n(120);function u(t){return 0===t.length?s.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var c=n(24),f=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var a=this.operator,s=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)}(t,e,n);if(a?s.add(a.call(s,this.source)):s.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.a?i:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=l(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:u(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=l(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function l(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},81:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(60),o=n(46),a=n(10);function s(t,e,n){return n?s(t,e).pipe(Object(a.a)((function(t){return Object(i.a)(t)?n.apply(void 0,t):n(t)}))):new r.a((function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void n.error(t)}if(Object(o.a)(e))return function(){return e(i,r)}}))}},82:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(24),i=n(52),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},88:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.value))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(i.a)},90:function(t,e,n){"use strict";var r={};(0,n(68).assign)(r,n(300),n(303),n(202)),t.exports=r},922:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(37),o=n(36);function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.closingNotifier))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Object(o.a)(r,n)),r}return r.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(i.a)},93:function(t,e,n){var r=n(326),i=n(329);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},95:function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return l}));var r=n(4),i=n(8),o=n(7),a=n(14),s=n(73),u=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(a.a),c=n(72),f=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.__extends(e,t),e}(o.a),l=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.__extends(e,t),e.prototype[c.a]=function(){return new f(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new s.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),a.a.EMPTY):this.isStopped?(t.complete(),a.a.EMPTY):(this.observers.push(t),new u(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.a),h=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.__extends(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):a.a.EMPTY},e}(l)},96:function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},98:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(8),i=n(14);function o(t,e){return new r.a((function(n){var r=new i.a,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},99:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(7).a)}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/21.fa5a96c8.js b/plugins/saladict-ztools/ext-saladic/assets/21.fa5a96c8.js deleted file mode 100644 index 20d02eb6..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/21.fa5a96c8.js +++ /dev/null @@ -1,21 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[21],{10:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n(7);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},100:function(t,e,n){var r=n(66),i=n(51),o=n(58);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},103:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r,i=n(118),o=n(96),a=n(8);function s(t){var e=t.error;t.subscriber.error(e)}r||(r={});var u=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return Object(o.a)(this.value);case"E":return t=this.error,e?new a.a((function(n){return e.schedule(s,0,{error:t,subscriber:n})})):new a.a((function(e){return e.error(t)}));case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},104:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(59),o=n(132),a=n(99);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,s=null,u=t[t.length-1];return Object(i.a)(u)?(s=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(n)(Object(a.a)(t,s))}},106:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(112),i=new(n(111).a)(r.a)},108:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),i=n(35),o=n(94),a=n(34),s=n(10),u=n(64);function c(t,e){return"function"==typeof e?function(n){return n.pipe(c((function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new f(t))}}var f=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project))},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new o.a(this,e,n),s=this.destination;s.add(i),this.innerSubscription=Object(a.a)(this,t,void 0,void 0,i),this.innerSubscription!==i&&s.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(i.a)},109:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},110:function(t,e,n){var r=n(144);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},111:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),o=function(t){function e(n,r){void 0===r&&(r=i.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.__extends(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i)},112:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(13).a))},114:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},115:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},116:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(30);function o(t,e){var n=Object(i.e)(i.a),o=Object(i.e)((function(){return t(n.current)}));return[Object(r.useRef)((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];n.current.next(e?e(t):t[0])})).current,o.current]}},117:function(t,e,n){var r=n(62).Symbol;t.exports=r},118:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(8),i=new r.a((function(t){return t.complete()}));function o(t){return t?function(t){return new r.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},120:function(t,e,n){var r=n(88)(Object,"create");t.exports=r},121:function(t,e,n){var r=n(158);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},122:function(t,e,n){var r=n(352);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},123:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},124:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},125:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},126:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(124),i=n(48),o=n(67),a=n(47),s=n(123),u=n(125),c=n(114),f=function(t){if(t&&"function"==typeof t[a.a])return f=t,function(t){var e=f[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(s.a)(t))return Object(r.a)(t);if(Object(u.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,f,l=Object(c.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+l+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},128:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),i=n(35),o=n(34);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new s(r,n))}}var s=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observables,this.project))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var a=n.length;i.values=new Array(a);for(var s=0;s<a;s++)i.toRespond.push(s);for(s=0;s<a;s++){var u=n[s];i.add(Object(o.a)(i,u,u,s))}return i}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},13:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(54),i=n(114),o=n(45),a=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var f=0;f<n.length;++f){n[f].remove(this)}if(Object(o.a)(s))try{s.call(this)}catch(t){e=t instanceof a?u(t.errors):[t]}if(Object(r.a)(c)){f=-1;for(var l=c.length;++f<l;){var h=c[f];if(Object(i.a)(h))try{h.unsubscribe()}catch(t){e=e||[],t instanceof a?e=e.concat(u(t.errors)):e.push(t)}}}if(e)throw new a(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function u(t){return t.reduce((function(t,e){return t.concat(e instanceof a?e.errors:e)}),[])}},130:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),i=n(308),o=n(30);function a(t,e){if(!e)return Object(o.e)(t).current;var n=Object(o.e)((function(){return new i.a(e)})),a=Object(o.e)((function(){return t(n.current)})),s=Object(r.useRef)(!0);return Object(r.useEffect)((function(){s.current?s.current=!1:n.current.next(e)}),e),a.current}},132:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(145),i=n(115);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(i.a,t)}},137:function(t,e){t.exports=function(t){return t}},138:function(t,e,n){var r=n(346),i=n(347),o=n(348),a=n(349),s=n(350);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},143:function(t,e,n){var r=n(51),i=n(162),o=n(332),a=n(257);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},144:function(t,e,n){var r=n(66),i=n(58);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},145:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),i=n(34),o=n(35),a=n(94),s=n(10),u=n(64);function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c((function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new f(t,n))})}var f=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent))},t}(),l=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new a.a(this,e,n),o=this.destination;o.add(r);var s=Object(i.a)(this,t,void 0,void 0,r);s!==r&&o.add(s)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},146:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(54);function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},151:function(t,e,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},152:function(t,e,n){var r=n(255),i=n(328),o=n(153);t.exports=function(t){return o(t)?r(t):i(t)}},153:function(t,e,n){var r=n(200),i=n(157);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},155:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(106),o=n(146),a=n(59);function s(t,e,n){void 0===t&&(t=0);var s=-1;return Object(o.a)(e)?s=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=i.a),new r.a((function(e){var r=Object(o.a)(t)?t:+t-n.now();return n.schedule(u,r,{index:0,period:s,subscriber:e})}))}function u(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},156:function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=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}},157:function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},158:function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},161:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(10);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Object(r.a)(o(t,n))(e)}}function o(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}},162:function(t,e,n){var r=n(51),i=n(144),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},163:function(t,e,n){var r=n(335),i=n(351),o=n(353),a=n(354),s=n(355);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},164:function(t,e,n){var r=n(88)(n(62),"Map");t.exports=r},176:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n(7);function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(i.a)},180:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(3),i=n(106);var o=n(7),a=n(103);function s(t,e){void 0===e&&(e=i.a);var n,r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new u(r,e))}}var u=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.__extends(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new f(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()},e}(o.a),f=function(){return function(t,e){this.time=t,this.notification=e}}()},182:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(30),i=n(0);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Object(i.useRef)(t);n.current=t;var o=Object(r.d)(),a=Object(i.useRef)(),s=Object(i.useRef)();if(Object(i.useEffect)((function(){s.current=null;var t=n.current[0],e=t.subscribe({next:function(e){if(t===n.current[0])return n.current[1]?n.current[1](e):void 0},error:function(e){if(t===n.current[0]){if(n.current[2])return s.current=null,n.current[2](e);s.current=e,o()}},complete:function(){if(t===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=e,function(){e.unsubscribe()}}),[t[0]]),s.current)throw s.current;return a}},183:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},19:function(t,e,n){"use strict";function r(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}e.a=function(t,e){var n;void 0===e&&(e=r);var i,o=[],a=!1;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return a&&n===this&&e(r,o)||(i=t.apply(this,r),a=!0,n=this,o=r),i}}},192:function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},193:function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},194:function(t,e,n){"use strict";var r=n(65),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,e.string2buf=function(t){var e,n,i,o,a,s=t.length,u=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(u),a=0,o=0;a<u;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[a++]=n:n<2048?(e[a++]=192|n>>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},e.buf2string=function(t,e){var n,r,i,o,s=e||t.length,c=new Array(2*s);for(r=0,n=0;n<s;)if((i=t[n++])<128)c[r++]=i;else if((o=a[i])>4)c[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<s;)i=i<<6|63&t[n++],o--;o>1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return u(c,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},195:function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},196:function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},197:function(t,e,n){var r=n(323),i=n(58),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},198:function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},199:function(t,e,n){(function(t){var r=n(62),i=n(326),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;t.exports=u}).call(this,n(183)(t))},200:function(t,e,n){var r=n(66),i=n(109);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},201:function(t,e,n){var r=n(143),i=n(110);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},202:function(t,e){t.exports=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}},203:function(t,e,n){var r=n(212);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},208:function(t,e,n){var r=n(321),i=n(152);t.exports=function(t,e){return t&&r(t,e,i)}},209:function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},21:function(t,e,n){var r=n(201);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},210:function(t,e,n){var r=n(327),i=n(243),o=n(244),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},211:function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},212:function(t,e,n){var r=n(88),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},23:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},243:function(t,e){t.exports=function(t){return function(e){return t(e)}}},244:function(t,e,n){(function(t){var r=n(198),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n(183)(t))},245:function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},246:function(t,e,n){var r=n(203),i=n(158),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},254:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},255:function(t,e,n){var r=n(209),i=n(197),o=n(51),a=n(199),s=n(156),u=n(210),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),f=!n&&i(t),l=!n&&!f&&a(t),h=!n&&!f&&!l&&u(t),d=n||f||l||h,p=d?r(t.length,String):[],_=p.length;for(var b in t)!e&&!c.call(t,b)||d&&("length"==b||l&&("offset"==b||"parent"==b)||h&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,_))||p.push(b);return p}},256:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},257:function(t,e,n){var r=n(356);t.exports=function(t){return null==t?"":r(t)}},27:function(t,e,n){var r=n(357);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},3:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return f})),n.d(e,"__generator",(function(){return l})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return _})),n.d(e,"__spread",(function(){return b})),n.d(e,"__spreadArrays",(function(){return v})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return w})),n.d(e,"__asyncDelegator",(function(){return g})),n.d(e,"__asyncValues",(function(){return m})),n.d(e,"__makeTemplateObject",(function(){return x})),n.d(e,"__importStar",(function(){return k})),n.d(e,"__importDefault",(function(){return O})),n.d(e,"__classPrivateFieldGet",(function(){return j})),n.d(e,"__classPrivateFieldSet",(function(){return S})); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function f(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 l(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function d(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function b(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(_(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function w(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,c):f(o[0][2],n)}catch(t){f(o[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function f(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function g(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function m(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function k(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function O(t){return t&&t.__esModule?t:{default:t}}function j(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},30:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return f}));var r=n(0),i=n(91),o=n(161);function a(t){return t}function s(t){return Object(o.a)(0)(t)}function u(){return new i.a}function c(t){var e=Object(r.useRef)(!0),n=Object(r.useRef)(null);return e.current&&(e.current=!1,n.current=t()),n}function f(){var t=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return t(l)})).current}function l(t){return(t+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},304:function(t,e,n){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,u=a(t),c=1;c<arguments.length;c++){for(var f in n=Object(arguments[c]))i.call(n,f)&&(u[f]=n[f]);if(r){s=r(n);for(var l=0;l<s.length;l++)o.call(n,s[l])&&(u[s[l]]=n[s[l]])}}return u}},308:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),i=n(91),o=n(69),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},312:function(t,e,n){"use strict";var r=n(313),i=n(65),o=n(194),a=n(151),s=n(195),u=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=r.deflateSetDictionary(this.strm,f)))throw new Error(a[n]);this._dict_set=!0}}function f(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}c.prototype.push=function(t,e){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=c,e.deflate=f,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},313:function(t,e,n){"use strict";var r,i=n(65),o=n(314),a=n(192),s=n(193),u=n(151);function c(t,e){return t.msg=u[e],e}function f(t){return(t<<1)-(t>4?9:0)}function l(t){for(var e=t.length;--e>=0;)t[e]=0}function h(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function d(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,h(t.strm)}function p(t,e){t.pending_buf[t.pending++]=e}function _(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function b(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+258,d=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===p&&c[n+a-1]===d&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<h);if(r=258-(h-o),o=h-258,r>a){if(t.match_start=e,a=r,r>=s)break;d=c[o+a-1],p=c[o+a]}}}while((e=l[e&f])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function v(t){var e,n,r,o,u,c,f,l,h,d,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-262)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=p?r-p:0}while(--n);e=n=p;do{r=t.prev[--e],t.prev[e]=r>=p?r-p:0}while(--n);o+=p}if(0===t.strm.avail_in)break;if(c=t.strm,f=t.window,l=t.strstart+t.lookahead,h=o,d=void 0,(d=c.avail_in)>h&&(d=h),n=0===d?0:(c.avail_in-=d,i.arraySet(f,c.input,c.next_in,d,l),1===c.state.wrap?c.adler=a(c.adler,f,d,l):2===c.state.wrap&&(c.adler=s(c.adler,f,d,l)),c.next_in+=d,c.total_in+=d,d),t.lookahead+=n,t.lookahead+t.insert>=3)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+3-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function y(t,e){for(var n,r;;){if(t.lookahead<262){if(v(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=b(t,n)),t.match_length>=3)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}function w(t,e){for(var n,r,i;;){if(t.lookahead<262){if(v(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=b(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(d(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=o._tr_tally(t,0,t.window[t.strstart-1]))&&d(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}function g(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function m(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),l(this.dyn_ltree),l(this.dyn_dtree),l(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),l(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),l(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):c(t,-2)}function k(t){var e,n=x(t);return 0===n&&((e=t.state).window_size=2*e.w_size,l(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function O(t,e,n,r,o,a){if(!t)return-2;var s=1;if(-1===e&&(e=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||e<0||e>9||a<0||a>4)return c(t,-2);8===r&&(r=9);var u=new m;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=n,k(t)}r=[new g(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(v(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,d(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(d(t,!1),t.strm.avail_out),1)})),new g(4,4,8,4,y),new g(4,5,16,8,y),new g(4,6,32,32,y),new g(4,4,16,16,w),new g(8,16,32,32,w),new g(8,16,128,128,w),new g(8,32,128,256,w),new g(32,128,258,1024,w),new g(32,258,258,4096,w)],e.deflateInit=function(t,e){return O(t,e,8,15,8,0)},e.deflateInit2=O,e.deflateReset=k,e.deflateResetKeep=x,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var n,i,a,u;if(!t||!t.state||e>5||e<0)return t?c(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return c(t,0===t.avail_out?-5:-2);if(i.strm=t,n=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,3),i.status=113);else{var b=8+(i.w_bits-8<<4)<<8;b|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(b|=32),b+=31-b%31,i.status=113,_(i,b),0!==i.strstart&&(_(i,t.adler>>>16),_(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,p(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),h(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,p(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&h(t),i.pending+2<=i.pending_buf_size&&(p(i,255&t.adler),p(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(h(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(n)&&4!==e)return c(t,-5);if(666===i.status&&0!==t.avail_in)return c(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var y=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(v(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=258){if(v(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+258;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(i,e):r[i.level].func(i,e);if(3!==y&&4!==y||(i.status=666),1===y||3===y)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===y&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(l(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),h(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&t.adler),p(i,t.adler>>8&255),p(i,t.adler>>16&255),p(i,t.adler>>24&255),p(i,255&t.total_in),p(i,t.total_in>>8&255),p(i,t.total_in>>16&255),p(i,t.total_in>>24&255)):(_(i,t.adler>>>16),_(i,65535&t.adler)),h(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?c(t,-2):(t.state=null,113===e?c(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var n,r,o,s,u,c,f,h,d=e.length;if(!t||!t.state)return-2;if(2===(s=(n=t.state).wrap)||1===s&&42!==n.status||n.lookahead)return-2;for(1===s&&(t.adler=a(t.adler,e,d,0)),n.wrap=0,d>=n.w_size&&(0===s&&(l(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,e,d-n.w_size,n.w_size,0),e=h,d=n.w_size),u=t.avail_in,c=t.next_in,f=t.input,t.avail_in=d,t.next_in=0,t.input=e,v(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=2,v(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=c,t.input=f,t.avail_in=u,n.wrap=s,0},e.deflateInfo="pako deflate (from Nodeca project)"},314:function(t,e,n){"use strict";var r=n(65);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var f=new Array(60);i(f);var l=new Array(512);i(l);var h=new Array(256);i(h);var d=new Array(29);i(d);var p,_,b,v=new Array(30);function y(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function g(t){return t<256?l[t]:l[256+(t>>>7)]}function m(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,m(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function k(t,e,n){x(t,n[2*e],n[2*e+1])}function O(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function j(t,e,n){var r,i,o=new Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=O(o[s]++,s))}}function S(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function E(t){t.bi_valid>8?m(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function z(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function N(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&z(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!z(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function T(t,e,n){var r,i,s,u,c=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*c]<<8|t.pending_buf[t.d_buf+2*c+1],i=t.pending_buf[t.l_buf+c],c++,0===r?k(t,i,e):(k(t,(s=h[i])+256+1,e),0!==(u=o[s])&&x(t,i-=d[s],u),k(t,s=g(--r),n),0!==(u=a[s])&&x(t,r-=v[s],u))}while(c<t.last_lit);k(t,256,e)}function A(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)N(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],N(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,N(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,_=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,_++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=d&&(a=h[r-d]),s=u[2*r],t.opt_len+=s*(o+a),l&&(t.static_len+=s*(f[2*r+1]+a)));if(0!==_){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,_-=2}while(_>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),j(o,c,t.bl_count)}function I(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function B(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{k(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(k(t,i,t.bl_tree),s--),k(t,16,t.bl_tree),x(t,s-3,2)):s<=10?(k(t,17,t.bl_tree),x(t,s-3,3)):(k(t,18,t.bl_tree),x(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}i(v);var C=!1;function P(t,e,n,i){x(t,0+(i?1:0),3),function(t,e,n,i){E(t),i&&(m(t,n),m(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}e._tr_init=function(t){C||(!function(){var t,e,n,r,i,u=new Array(16);for(n=0,r=0;r<28;r++)for(d[r]=n,t=0;t<1<<o[r];t++)h[n++]=r;for(h[n-1]=r,i=0,r=0;r<16;r++)for(v[r]=i,t=0;t<1<<a[r];t++)l[i++]=r;for(i>>=7;r<30;r++)for(v[r]=i<<7,t=0;t<1<<a[r]-7;t++)l[256+i++]=r;for(e=0;e<=15;e++)u[e]=0;for(t=0;t<=143;)c[2*t+1]=8,t++,u[8]++;for(;t<=255;)c[2*t+1]=9,t++,u[9]++;for(;t<=279;)c[2*t+1]=7,t++,u[7]++;for(;t<=287;)c[2*t+1]=8,t++,u[8]++;for(j(c,287,u),t=0;t<30;t++)f[2*t+1]=5,f[2*t]=O(t,5);p=new y(c,o,257,286,15),_=new y(f,a,0,30,15),b=new y(new Array(0),s,0,19,7)}(),C=!0),t.l_desc=new w(t.dyn_ltree,p),t.d_desc=new w(t.dyn_dtree,_),t.bl_desc=new w(t.bl_tree,b),t.bi_buf=0,t.bi_valid=0,S(t)},e._tr_stored_block=P,e._tr_flush_block=function(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),A(t,t.l_desc),A(t,t.d_desc),a=function(t){var e;for(I(t,t.dyn_ltree,t.l_desc.max_code),I(t,t.dyn_dtree,t.d_desc.max_code),A(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?P(t,e,n,r):4===t.strategy||o===i?(x(t,2+(r?1:0),3),T(t,c,f)):(x(t,4+(r?1:0),3),function(t,e,n,r){var i;for(x(t,e-257,5),x(t,n-1,5),x(t,r-4,4),i=0;i<r;i++)x(t,t.bl_tree[2*u[i]+1],3);B(t,t.dyn_ltree,e-1),B(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),T(t,t.dyn_ltree,t.dyn_dtree)),S(t),r&&E(t)},e._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(h[n]+256+1)]++,t.dyn_dtree[2*g(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),k(t,256,c),function(t){16===t.bi_valid?(m(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},315:function(t,e,n){"use strict";var r=n(316),i=n(65),o=n(194),a=n(196),s=n(151),u=n(195),c=n(319),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[n])}function h(t,e){var n=new l(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}l.prototype.push=function(t,e){var n,s,u,c,l,h=this.strm,d=this.options.chunkSize,p=this.options.dictionary,_=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?h.input=o.binstring2buf(t):"[object ArrayBuffer]"===f.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(d),h.next_out=0,h.avail_out=d),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(n=r.inflateSetDictionary(this.strm,p)),n===a.Z_BUF_ERROR&&!0===_&&(n=a.Z_OK,_=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=o.utf8border(h.output,h.next_out),c=h.next_out-u,l=o.buf2string(h.output,u),h.next_out=c,h.avail_out=d-c,c&&i.arraySet(h.output,h.output,u,c,0),this.onData(l)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(_=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},316:function(t,e,n){"use strict";var r=n(65),i=n(192),o=n(193),a=n(317),s=n(318);function u(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(852),e.distcode=e.distdyn=new r.Buf32(592),e.sane=1,e.back=-1,0):-2}function l(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):-2}function h(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,l(t))):-2}function d(t,e){var n,r;return t?(r=new c,t.state=r,r.window=null,0!==(n=h(t,e))&&(t.state=null),n):-2}var p,_,b=!0;function v(t){if(b){var e;for(p=new r.Buf32(512),_=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,p,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,_,0,t.work,{bits:5}),b=!1}t.lencode=p,t.lenbits=9,t.distcode=_,t.distbits=5}function y(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=l,e.inflateReset2=h,e.inflateResetKeep=f,e.inflateInit=function(t){return d(t,15)},e.inflateInit2=d,e.inflate=function(t,e){var n,c,f,l,h,d,p,_,b,w,g,m,x,k,O,j,S,E,z,N,T,A,I,B,C=0,P=new r.Buf8(4),D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(n=t.state).mode&&(n.mode=13),h=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,c=t.input,d=t.avail_in,_=n.hold,b=n.bits,w=d,g=p,A=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(2&n.wrap&&35615===_){n.check=0,P[0]=255&_,P[1]=_>>>8&255,n.check=o(n.check,P,2,0),_=0,b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&_)<<8)+(_>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&_)){t.msg="unknown compression method",n.mode=30;break}if(b-=4,T=8+(15&(_>>>=4)),0===n.wbits)n.wbits=T;else if(T>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<T,t.adler=n.check=1,n.mode=512&_?10:12,_=0,b=0;break;case 2:for(;b<16;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(n.flags=_,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=_>>8&1),512&n.flags&&(P[0]=255&_,P[1]=_>>>8&255,n.check=o(n.check,P,2,0)),_=0,b=0,n.mode=3;case 3:for(;b<32;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}n.head&&(n.head.time=_),512&n.flags&&(P[0]=255&_,P[1]=_>>>8&255,P[2]=_>>>16&255,P[3]=_>>>24&255,n.check=o(n.check,P,4,0)),_=0,b=0,n.mode=4;case 4:for(;b<16;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}n.head&&(n.head.xflags=255&_,n.head.os=_>>8),512&n.flags&&(P[0]=255&_,P[1]=_>>>8&255,n.check=o(n.check,P,2,0)),_=0,b=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}n.length=_,n.head&&(n.head.extra_len=_),512&n.flags&&(P[0]=255&_,P[1]=_>>>8&255,n.check=o(n.check,P,2,0)),_=0,b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((m=n.length)>d&&(m=d),m&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,l,m,T)),512&n.flags&&(n.check=o(n.check,c,m,l)),d-=m,l+=m,n.length-=m),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===d)break t;m=0;do{T=c[l+m++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T))}while(T&&m<d);if(512&n.flags&&(n.check=o(n.check,c,m,l)),d-=m,l+=m,T)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===d)break t;m=0;do{T=c[l+m++],n.head&&T&&n.length<65536&&(n.head.comment+=String.fromCharCode(T))}while(T&&m<d);if(512&n.flags&&(n.check=o(n.check,c,m,l)),d-=m,l+=m,T)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(_!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}_=0,b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;b<32;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}t.adler=n.check=u(_),_=0,b=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=h,t.avail_out=p,t.next_in=l,t.avail_in=d,n.hold=_,n.bits=b,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){_>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}switch(n.last=1&_,b-=1,3&(_>>>=1)){case 0:n.mode=14;break;case 1:if(v(n),n.mode=20,6===e){_>>>=2,b-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}_>>>=2,b-=2;break;case 14:for(_>>>=7&b,b-=7&b;b<32;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if((65535&_)!=(_>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&_,_=0,b=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(m=n.length){if(m>d&&(m=d),m>p&&(m=p),0===m)break t;r.arraySet(f,c,l,m,h),d-=m,l+=m,p-=m,h+=m,n.length-=m;break}n.mode=12;break;case 17:for(;b<14;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(n.nlen=257+(31&_),_>>>=5,b-=5,n.ndist=1+(31&_),_>>>=5,b-=5,n.ncode=4+(15&_),_>>>=4,b-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}n.lens[D[n.have++]]=7&_,_>>>=3,b-=3}for(;n.have<19;)n.lens[D[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},A=s(0,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,A){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;j=(C=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,S=65535&C,!((O=C>>>24)<=b);){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(S<16)_>>>=O,b-=O,n.lens[n.have++]=S;else{if(16===S){for(B=O+2;b<B;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(_>>>=O,b-=O,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}T=n.lens[n.have-1],m=3+(3&_),_>>>=2,b-=2}else if(17===S){for(B=O+3;b<B;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}b-=O,T=0,m=3+(7&(_>>>=O)),_>>>=3,b-=3}else{for(B=O+7;b<B;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}b-=O,T=0,m=11+(127&(_>>>=O)),_>>>=7,b-=7}if(n.have+m>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;m--;)n.lens[n.have++]=T}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,I={bits:n.lenbits},A=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,A){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},A=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,A){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(d>=6&&p>=258){t.next_out=h,t.avail_out=p,t.next_in=l,t.avail_in=d,n.hold=_,n.bits=b,a(t,g),h=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,c=t.input,d=t.avail_in,_=n.hold,b=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;j=(C=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,S=65535&C,!((O=C>>>24)<=b);){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(j&&0==(240&j)){for(E=O,z=j,N=S;j=(C=n.lencode[N+((_&(1<<E+z)-1)>>E)])>>>16&255,S=65535&C,!(E+(O=C>>>24)<=b);){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}_>>>=E,b-=E,n.back+=E}if(_>>>=O,b-=O,n.back+=O,n.length=S,0===j){n.mode=26;break}if(32&j){n.back=-1,n.mode=12;break}if(64&j){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&j,n.mode=22;case 22:if(n.extra){for(B=n.extra;b<B;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}n.length+=_&(1<<n.extra)-1,_>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;j=(C=n.distcode[_&(1<<n.distbits)-1])>>>16&255,S=65535&C,!((O=C>>>24)<=b);){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(0==(240&j)){for(E=O,z=j,N=S;j=(C=n.distcode[N+((_&(1<<E+z)-1)>>E)])>>>16&255,S=65535&C,!(E+(O=C>>>24)<=b);){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}_>>>=E,b-=E,n.back+=E}if(_>>>=O,b-=O,n.back+=O,64&j){t.msg="invalid distance code",n.mode=30;break}n.offset=S,n.extra=15&j,n.mode=24;case 24:if(n.extra){for(B=n.extra;b<B;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}n.offset+=_&(1<<n.extra)-1,_>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===p)break t;if(m=g-p,n.offset>m){if((m=n.offset-m)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}m>n.wnext?(m-=n.wnext,x=n.wsize-m):x=n.wnext-m,m>n.length&&(m=n.length),k=n.window}else k=f,x=h-n.offset,m=n.length;m>p&&(m=p),p-=m,n.length-=m;do{f[h++]=k[x++]}while(--m);0===n.length&&(n.mode=21);break;case 26:if(0===p)break t;f[h++]=n.length,p--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===d)break t;d--,_|=c[l++]<<b,b+=8}if(g-=p,t.total_out+=g,n.total+=g,g&&(t.adler=n.check=n.flags?o(n.check,f,g,h-g):i(n.check,f,g,h-g)),g=p,(n.flags?_:u(_))!==n.check){t.msg="incorrect data check",n.mode=30;break}_=0,b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===d)break t;d--,_+=c[l++]<<b,b+=8}if(_!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}_=0,b=0}n.mode=29;case 29:A=1;break t;case 30:A=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=h,t.avail_out=p,t.next_in=l,t.avail_in=d,n.hold=_,n.bits=b,(n.wsize||g!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&y(t,t.output,t.next_out,g-t.avail_out)?(n.mode=31,-4):(w-=t.avail_in,g-=t.avail_out,t.total_in+=w,t.total_out+=g,n.total+=g,n.wrap&&g&&(t.adler=n.check=n.flags?o(n.check,f,g,t.next_out-g):i(n.check,f,g,t.next_out-g)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===w&&0===g||4===e)&&0===A&&(A=-5),A)},e.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?-2:(n.head=e,e.done=!1,0):-2},e.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?-2:11===n.mode&&i(1,e,r,0)!==n.check?-3:y(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},e.inflateInfo="pako inflate (from Nodeca project)"},317:function(t,e,n){"use strict";t.exports=function(t,e){var n,r,i,o,a,s,u,c,f,l,h,d,p,_,b,v,y,w,g,m,x,k,O,j,S;n=t.state,r=t.next_in,j=t.input,i=r+(t.avail_in-5),o=t.next_out,S=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,c=n.wsize,f=n.whave,l=n.wnext,h=n.window,d=n.hold,p=n.bits,_=n.lencode,b=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{p<15&&(d+=j[r++]<<p,p+=8,d+=j[r++]<<p,p+=8),w=_[d&v];e:for(;;){if(d>>>=g=w>>>24,p-=g,0===(g=w>>>16&255))S[o++]=65535&w;else{if(!(16&g)){if(0==(64&g)){w=_[(65535&w)+(d&(1<<g)-1)];continue e}if(32&g){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}m=65535&w,(g&=15)&&(p<g&&(d+=j[r++]<<p,p+=8),m+=d&(1<<g)-1,d>>>=g,p-=g),p<15&&(d+=j[r++]<<p,p+=8,d+=j[r++]<<p,p+=8),w=b[d&y];n:for(;;){if(d>>>=g=w>>>24,p-=g,!(16&(g=w>>>16&255))){if(0==(64&g)){w=b[(65535&w)+(d&(1<<g)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&w,p<(g&=15)&&(d+=j[r++]<<p,(p+=8)<g&&(d+=j[r++]<<p,p+=8)),(x+=d&(1<<g)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=g,p-=g,x>(g=o-a)){if((g=x-g)>f&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=0,O=h,0===l){if(k+=c-g,g<m){m-=g;do{S[o++]=h[k++]}while(--g);k=o-x,O=S}}else if(l<g){if(k+=c+l-g,(g-=l)<m){m-=g;do{S[o++]=h[k++]}while(--g);if(k=0,l<m){m-=g=l;do{S[o++]=h[k++]}while(--g);k=o-x,O=S}}}else if(k+=l-g,g<m){m-=g;do{S[o++]=h[k++]}while(--g);k=o-x,O=S}for(;m>2;)S[o++]=O[k++],S[o++]=O[k++],S[o++]=O[k++],m-=3;m&&(S[o++]=O[k++],m>1&&(S[o++]=O[k++]))}else{k=o-x;do{S[o++]=S[k++],S[o++]=S[k++],S[o++]=S[k++],m-=3}while(m>2);m&&(S[o++]=S[k++],m>1&&(S[o++]=S[k++]))}break}}break}}while(r<i&&o<s);r-=m=p>>3,d&=(1<<(p-=m<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=d,n.bits=p}},318:function(t,e,n){"use strict";var r=n(65),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,n,u,c,f,l,h){var d,p,_,b,v,y,w,g,m,x=h.bits,k=0,O=0,j=0,S=0,E=0,z=0,N=0,T=0,A=0,I=0,B=null,C=0,P=new r.Buf16(16),D=new r.Buf16(16),R=null,Z=0;for(k=0;k<=15;k++)P[k]=0;for(O=0;O<u;O++)P[e[n+O]]++;for(E=x,S=15;S>=1&&0===P[S];S--);if(E>S&&(E=S),0===S)return c[f++]=20971520,c[f++]=20971520,h.bits=1,0;for(j=1;j<S&&0===P[j];j++);for(E<j&&(E=j),T=1,k=1;k<=15;k++)if(T<<=1,(T-=P[k])<0)return-1;if(T>0&&(0===t||1!==S))return-1;for(D[1]=0,k=1;k<15;k++)D[k+1]=D[k]+P[k];for(O=0;O<u;O++)0!==e[n+O]&&(l[D[e[n+O]]++]=O);if(0===t?(B=R=l,y=19):1===t?(B=i,C-=257,R=o,Z-=257,y=256):(B=a,R=s,y=-1),I=0,O=0,k=j,v=f,z=E,N=0,_=-1,b=(A=1<<E)-1,1===t&&A>852||2===t&&A>592)return 1;for(;;){w=k-N,l[O]<y?(g=0,m=l[O]):l[O]>y?(g=R[Z+l[O]],m=B[C+l[O]]):(g=96,m=0),d=1<<k-N,j=p=1<<z;do{c[v+(I>>N)+(p-=d)]=w<<24|g<<16|m|0}while(0!==p);for(d=1<<k-1;I&d;)d>>=1;if(0!==d?(I&=d-1,I+=d):I=0,O++,0==--P[k]){if(k===S)break;k=e[n+l[O]]}if(k>E&&(I&b)!==_){for(0===N&&(N=E),v+=j,T=1<<(z=k-N);z+N<S&&!((T-=P[z+N])<=0);)z++,T<<=1;if(A+=1<<z,1===t&&A>852||2===t&&A>592)return 1;c[_=I&b]=E<<24|z<<16|v-f|0}}return 0!==I&&(c[v+I]=k-N<<24|64<<16|0),h.bits=E,0}},319:function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},320:function(t,e,n){var r=n(208),i=n(330)(r);t.exports=i},321:function(t,e,n){var r=n(322)();t.exports=r},322:function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}},323:function(t,e,n){var r=n(66),i=n(58);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},324:function(t,e,n){var r=n(117),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=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}},325:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},326:function(t,e){t.exports=function(){return!1}},327:function(t,e,n){var r=n(66),i=n(157),o=n(58),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,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},328:function(t,e,n){var r=n(245),i=n(329),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},329:function(t,e,n){var r=n(256)(Object.keys,Object);t.exports=r},330:function(t,e,n){var r=n(153);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},331:function(t,e,n){var r=n(137);t.exports=function(t){return"function"==typeof t?t:r}},332:function(t,e,n){var r=n(333),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},333:function(t,e,n){var r=n(334);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},334:function(t,e,n){var r=n(163);function i(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(i.Cache||r),n}i.Cache=r,t.exports=i},335:function(t,e,n){var r=n(336),i=n(138),o=n(164);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},336:function(t,e,n){var r=n(337),i=n(342),o=n(343),a=n(344),s=n(345);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},337:function(t,e,n){var r=n(120);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},338:function(t,e,n){var r=n(200),i=n(339),o=n(109),a=n(211),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,f=u.toString,l=c.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:s).test(a(t))}},339:function(t,e,n){var r,i=n(340),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},34:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(94),i=n(126),o=n(8);function a(t,e,n,a,s){if(void 0===s&&(s=new r.a(t,n,a)),!s.closed)return e instanceof o.a?e.subscribe(s):Object(i.a)(e)(s)}},340:function(t,e,n){var r=n(62)["__core-js_shared__"];t.exports=r},341:function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},342:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},343:function(t,e,n){var r=n(120),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},344:function(t,e,n){var r=n(120),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},345:function(t,e,n){var r=n(120);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},346:function(t,e){t.exports=function(){this.__data__=[],this.size=0}},347:function(t,e,n){var r=n(121),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},348:function(t,e,n){var r=n(121);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},349:function(t,e,n){var r=n(121);t.exports=function(t){return r(this.__data__,t)>-1}},35:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(7).a)},350:function(t,e,n){var r=n(121);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},351:function(t,e,n){var r=n(122);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},352:function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},353:function(t,e,n){var r=n(122);t.exports=function(t){return r(this,t).get(t)}},354:function(t,e,n){var r=n(122);t.exports=function(t){return r(this,t).has(t)}},355:function(t,e,n){var r=n(122);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},356:function(t,e,n){var r=n(117),i=n(202),o=n(51),a=n(144),s=r?r.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},357:function(t,e,n){var r=n(246),i=n(143),o=n(156),a=n(109),s=n(110);t.exports=function(t,e,n,u){if(!a(t))return t;for(var c=-1,f=(e=i(e,t)).length,l=f-1,h=t;null!=h&&++c<f;){var d=s(e[c]),p=n;if(c!=l){var _=h[d];void 0===(p=u?u(_,d,h):void 0)&&(p=a(_)?_:o(e[c+1])?[]:{})}r(h,d,p),h=h[d]}return t}},371:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),i=n(7),o=n(106);function a(t,e){return void 0===e&&(e=o.a),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.dueTime,this.scheduler))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(i.a);function c(t){t.debouncedNext()}},38:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n(7);function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.a)},42:function(t,e,n){"use strict";function r(t,e=window){if(t){const e=t.toString().trim();if(e)return e}const n=e.document.activeElement;if(n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName)){const t=n;return t.value.slice(t.selectionStart||0,t.selectionEnd||0)}return""}function i(t=window){return r(t.getSelection(),t)}function o(t){if(!t||t.rangeCount<=0)return"";const e=t.toString();if(!e.trim())return"";const n=t.getRangeAt(0);return n?(function(t){if(t){const e=/[.?!。?!…]/,n=/[^\s.?!。?!…]/;for(let r=t.length-1;r>=0;r--){const i=t[r];if(e.test(i)){if("."===i&&n.test(t[r+1]))continue;return t.slice(r+1)}}}return t}(s(n))+e+function(t){const e=/^((\.(?![\s.?!。?!…]))|[^.?!。?!…])*([.?!。?!…]){0,3}/.exec(t);return e?e[0]:""}(u(n))).replace(/\s+/g," ").trim():""}function a(t=window){return o(t.getSelection())}function s(t){let e=t.startContainer,n="";switch(e.nodeType){case Node.TEXT_NODE:{const r=e.textContent;r&&(n=r.slice(0,t.startOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:e=e.childNodes[t.startOffset]}for(let t=e;f(t);t=t.parentElement)for(let e=t.previousSibling;f(e);e=e.previousSibling)n=c(e)+n;return n}function u(t){let e=t.endContainer,n="";switch(e.nodeType){case Node.TEXT_NODE:{const r=e.textContent;r&&(n=r.slice(t.endOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:e=e.childNodes[t.endOffset-1]}for(let t=e;f(t);t=t.parentElement)for(let e=t.nextSibling;f(e);e=e.nextSibling)n+=c(e);return n}function c(t){return t.nodeType===Node.TEXT_NODE?t.nodeValue||"":t.nodeType===Node.ELEMENT_NODE&&t.innerText||""}function f(t){if(!t)return!1;switch(t.nodeType){case Node.TEXT_NODE:case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:return!0;case Node.ELEMENT_NODE:switch(t.tagName){case"A":case"ABBR":case"B":case"BDI":case"BDO":case"BR":case"CITE":case"CODE":case"DATA":case"DFN":case"EM":case"I":case"KBD":case"MARK":case"Q":case"RP":case"RT":case"RTC":case"RUBY":case"S":case"SAMP":case"SMALL":case"SPAN":case"STRONG":case"SUB":case"SUP":case"TIME":case"U":case"VAR":case"WBR":return!0}}return!1}n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return r}))},435:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(95),i=n(59);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(i.a)(n)?(t.pop(),function(e){return Object(r.a)(t,e,n)}):function(e){return Object(r.a)(t,e)}}},45:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},47:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},48:function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},500:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),i=n(35),o=n(34);function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return r.__extends(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(o.a)(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.a)},501:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(3),i=n(35),o=n(34),a={leading:!0,trailing:!1};function s(t,e){return void 0===e&&(e=a),function(n){return n.lift(new u(t,e.leading,e.trailing))}}var u=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.durationSelector,this.leading,this.trailing))},t}(),c=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r.__extends(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(o.a)(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(i.a)},502:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n(7);function o(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(i.a)},51:function(t,e){var n=Array.isArray;t.exports=n},52:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(54),o=n(45),a=n(10);function s(t,e,n,u){return Object(o.a)(n)&&(u=n,n=void 0),u?s(t,e,n).pipe(Object(a.a)((function(t){return Object(i.a)(t)?u.apply(void 0,t):u(t)}))):new r.a((function(r){!function t(e,n,r,i,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),a=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,r),a=function(){return c.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var f=0,l=e.length;f<l;f++)t(e[f],n,r,i,o)}i.add(a)}(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}},54:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},57:function(t,e,n){var r=n(66),i=n(58);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},58:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},59:function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},62:function(t,e,n){var r=n(198),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},64:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(8),i=n(126),o=n(13),a=n(47);var s=n(93),u=n(67);var c=n(125),f=n(123);function l(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new r.a((function(n){var r=new o.a;return r.add(e.schedule((function(){var i=t[a.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a((function(n){var r=new o.a;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Object(f.a)(t))return Object(s.a)(t,e);if(function(t){return t&&"function"==typeof t[u.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,i=new o.a;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[u.a](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function h(t,e){return e?l(t,e):t instanceof r.a?t:new r.a(Object(i.a)(t))}},65:function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},a={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(r)},66:function(t,e,n){var r=n(117),i=n(324),o=n(325),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},67:function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));var i=r()},68:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},69:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},7:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(3),i=n(45),o=n(77),a=n(13),s=n(68),u=n(23),c=n(48),f=function(t){function e(n,r,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!n){a.destination=o.a;break}if("object"==typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new l(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new l(a,n,r,i)}return a}return r.__extends(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a.a),l=function(t){function e(e,n,r,a){var s,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==o.a&&(c=Object.create(n),Object(i.a)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=r,u._complete=a,u}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw t;Object(c.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(c.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(f)},704:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(3),i=n(59),o=n(54),a=n(35),s=n(34),u=n(99),c={};function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return Object(i.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(o.a)(t[0])&&(t=t[0]),Object(u.a)(t,r).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},t}(),h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.__extends(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Object(s.a)(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,a=o[n],s=this.toRespond?a===c?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.a)},720:function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(3),i=n(91),o=n(8),a=n(7),s=n(13);function u(){return function(t){return t.lift(new c(t))}}var c=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new f(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),l=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t},e.prototype.refCount=function(){return u()(this)},e}(o.a),h=function(){var t=l.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),d=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.b);a.a;var p=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();function _(){return new i.a}function b(){return function(t){return u()((e=_,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new p(r,n));var i=Object.create(t,h);return i.source=t,i.subjectFactory=r,i})(t));var e,n}}},73:function(t,e,n){var r=n(254),i=n(320),o=n(331),a=n(51);t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},76:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(54),o=n(45),a=n(10);function s(t,e,n){return n?s(t,e).pipe(Object(a.a)((function(t){return Object(i.a)(t)?n.apply(void 0,t):n(t)}))):new r.a((function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void n.error(t)}if(Object(o.a)(e))return function(){return e(i,r)}}))}},77:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(23),i=n(48),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},8:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(7);var i=n(68),o=n(77);var a=n(47),s=n(115);function u(t){return 0===t.length?s.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var c=n(23),f=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var a=this.operator,s=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)}(t,e,n);if(a?s.add(a.call(s,this.source)):s.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.a?i:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=l(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:u(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=l(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function l(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},83:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n(7);function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.value))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(i.a)},85:function(t,e,n){"use strict";var r={};(0,n(65).assign)(r,n(312),n(315),n(196)),t.exports=r},857:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),i=n(35),o=n(34);function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.closingNotifier))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Object(o.a)(r,n)),r}return r.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(i.a)},88:function(t,e,n){var r=n(338),i=n(341);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},90:function(t,e,n){var r=n(66),i=n(58);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},91:function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return l}));var r=n(3),i=n(8),o=n(7),a=n(13),s=n(69),u=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(a.a),c=n(68),f=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.__extends(e,t),e}(o.a),l=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.__extends(e,t),e.prototype[c.a]=function(){return new f(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new s.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),a.a.EMPTY):this.isStopped?(t.complete(),a.a.EMPTY):(this.observers.push(t),new u(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.a),h=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.__extends(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):a.a.EMPTY},e}(l)},93:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(8),i=n(13);function o(t,e){return new r.a((function(n){var r=new i.a,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},94:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(7).a)},95:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(96),i=n(132);function o(){return Object(i.a)(1)}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o()(r.a.apply(void 0,t))}},96:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(59),i=n(99),o=n(93);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r.a)(n)?(t.pop(),Object(o.a)(t,n)):Object(i.a)(t)}},99:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),i=n(124),o=n(93);function a(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/22.aba35291.js b/plugins/saladict-ztools/ext-saladic/assets/22.aba35291.js new file mode 100644 index 00000000..92f0ef97 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/22.aba35291.js @@ -0,0 +1,34 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[22],{10:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(4),i=r(7);function o(e,t){return function(r){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new s(e,t))}}var s=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))},e}(),a=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return n.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.a)},1024:function(e,t,r){window,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ajax",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"getId",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"max",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"min",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Observer",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"extend",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"style",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"requestAnimationFrame",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"frame",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"preventClick",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"fetchFile",{enumerable:!0,get:function(){return p.default}});var n=v(r(7)),i=v(r(2)),o=v(r(8)),s=v(r(9)),a=v(r(1)),u=v(r(10)),c=v(r(3)),l=v(r(4)),h=v(r(11)),f=v(r(12)),d=v(r(13)),p=v(r(14));function v(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.handlers=null}var t,r;return t=e,(r=[{key:"on",value:function(e,t){var r=this;this.handlers||(this.handlers={});var n=this.handlers[e];return n||(n=this.handlers[e]=[]),n.push(t),{name:e,callback:t,un:function(e,t){return r.un(e,t)}}}},{key:"un",value:function(e,t){if(this.handlers){var r,n=this.handlers[e];if(n)if(t)for(r=n.length-1;r>=0;r--)n[r]==t&&n.splice(r,1);else n.length=0}}},{key:"unAll",value:function(){this.handlers=null}},{key:"once",value:function(e,t){var r=this;return this.on(e,(function n(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];t.apply(r,o),setTimeout((function(){r.un(e,n)}),0)}))}},{key:"fireEvent",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(this.handlers){var i=this.handlers[e];i&&i.forEach((function(e){e.apply(void 0,r)}))}}}])&&n(t.prototype,r),e}();t.default=i,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return void 0===e&&(e="wavesurfer_"),e+Math.random().toString(32).substring(2)},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Object.keys(t).forEach((function(r){e.style[r]!==t[r]&&(e.style[r]=t[r])})),e},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){return setTimeout(e,1e3/60)}).bind(window);t.default=n,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(0));function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h="playing",f="paused",d="finished",p=function(e){function t(e){var r,n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=s(this,a(t).call(this))).audioContext=null,i.offlineAudioContext=null,i.stateBehaviors=(o(r={},h,{init:function(){this.addOnAudioProcess()},getPlayedPercents:function(){var e=this.getDuration();return this.getCurrentTime()/e||0},getCurrentTime:function(){return this.startPosition+this.getPlayedTime()}}),o(r,f,{init:function(){this.removeOnAudioProcess()},getPlayedPercents:function(){var e=this.getDuration();return this.getCurrentTime()/e||0},getCurrentTime:function(){return this.startPosition}}),o(r,d,{init:function(){this.removeOnAudioProcess(),this.fireEvent("finish")},getPlayedPercents:function(){return 1},getCurrentTime:function(){return this.getDuration()}}),r),i.params=e,i.ac=e.audioContext||(i.supportsWebAudio()?i.getAudioContext():{}),i.lastPlay=i.ac.currentTime,i.startPosition=0,i.scheduledPause=null,i.states=(o(n={},h,Object.create(i.stateBehaviors[h])),o(n,f,Object.create(i.stateBehaviors[f])),o(n,d,Object.create(i.stateBehaviors[d])),n),i.analyser=null,i.buffer=null,i.filters=[],i.gainNode=null,i.mergedPeaks=null,i.offlineAc=null,i.peaks=null,i.playbackRate=1,i.analyser=null,i.scriptNode=null,i.source=null,i.splitPeaks=[],i.state=null,i.explicitDuration=e.duration,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,n.Observer),c(t,[{key:"supportsWebAudio",value:function(){return!(!window.AudioContext&&!window.webkitAudioContext)}},{key:"getAudioContext",value:function(){return window.WaveSurferAudioContext||(window.WaveSurferAudioContext=new(window.AudioContext||window.webkitAudioContext)),window.WaveSurferAudioContext}},{key:"getOfflineAudioContext",value:function(e){return window.WaveSurferOfflineAudioContext||(window.WaveSurferOfflineAudioContext=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,2,e)),window.WaveSurferOfflineAudioContext}}]),c(t,[{key:"init",value:function(){this.createVolumeNode(),this.createScriptNode(),this.createAnalyserNode(),this.setState(f),this.setPlaybackRate(this.params.audioRate),this.setLength(0)}},{key:"disconnectFilters",value:function(){this.filters&&(this.filters.forEach((function(e){e&&e.disconnect()})),this.filters=null,this.analyser.connect(this.gainNode))}},{key:"setState",value:function(e){this.state!==this.states[e]&&(this.state=this.states[e],this.state.init.call(this))}},{key:"setFilter",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.setFilters(t)}},{key:"setFilters",value:function(e){this.disconnectFilters(),e&&e.length&&(this.filters=e,this.analyser.disconnect(),e.reduce((function(e,t){return e.connect(t),t}),this.analyser).connect(this.gainNode))}},{key:"createScriptNode",value:function(){this.params.audioScriptProcessor?this.scriptNode=this.params.audioScriptProcessor:this.ac.createScriptProcessor?this.scriptNode=this.ac.createScriptProcessor(t.scriptBufferSize):this.scriptNode=this.ac.createJavaScriptNode(t.scriptBufferSize),this.scriptNode.connect(this.ac.destination)}},{key:"addOnAudioProcess",value:function(){var e=this;this.scriptNode.onaudioprocess=function(){var t=e.getCurrentTime();t>=e.getDuration()?(e.setState(d),e.fireEvent("pause")):t>=e.scheduledPause?e.pause():e.state===e.states[h]&&e.fireEvent("audioprocess",t)}}},{key:"removeOnAudioProcess",value:function(){this.scriptNode.onaudioprocess=function(){}}},{key:"createAnalyserNode",value:function(){this.analyser=this.ac.createAnalyser(),this.analyser.connect(this.gainNode)}},{key:"createVolumeNode",value:function(){this.ac.createGain?this.gainNode=this.ac.createGain():this.gainNode=this.ac.createGainNode(),this.gainNode.connect(this.ac.destination)}},{key:"setSinkId",value:function(e){if(e){var t=new window.Audio;if(!t.setSinkId)return Promise.reject(new Error("setSinkId is not supported in your browser"));t.autoplay=!0;var r=this.ac.createMediaStreamDestination();return this.gainNode.disconnect(),this.gainNode.connect(r),t.srcObject=r.stream,t.setSinkId(e)}return Promise.reject(new Error("Invalid deviceId: "+e))}},{key:"setVolume",value:function(e){this.gainNode.gain.setValueAtTime(e,this.ac.currentTime)}},{key:"getVolume",value:function(){return this.gainNode.gain.value}},{key:"decodeArrayBuffer",value:function(e,t,r){this.offlineAc||(this.offlineAc=this.getOfflineAudioContext(this.ac&&this.ac.sampleRate?this.ac.sampleRate:44100)),this.offlineAc.decodeAudioData(e,(function(e){return t(e)}),r)}},{key:"setPeaks",value:function(e,t){null!=t&&(this.explicitDuration=t),this.peaks=e}},{key:"setLength",value:function(e){if(!this.mergedPeaks||e!=2*this.mergedPeaks.length-1+2){this.splitPeaks=[],this.mergedPeaks=[];var t,r=this.buffer?this.buffer.numberOfChannels:1;for(t=0;t<r;t++)this.splitPeaks[t]=[],this.splitPeaks[t][2*(e-1)]=0,this.splitPeaks[t][2*(e-1)+1]=0;this.mergedPeaks[2*(e-1)]=0,this.mergedPeaks[2*(e-1)+1]=0}}},{key:"getPeaks",value:function(e,t,r){if(this.peaks)return this.peaks;if(!this.buffer)return[];if(t=t||0,r=r||e-1,this.setLength(e),!this.buffer)return this.params.splitChannels?this.splitPeaks:this.mergedPeaks;if(!this.buffer.length){var n=this.createBuffer(1,4096,this.sampleRate);this.buffer=n.buffer}var i,o=this.buffer.length/e,s=~~(o/10)||1,a=this.buffer.numberOfChannels;for(i=0;i<a;i++){var u=this.splitPeaks[i],c=this.buffer.getChannelData(i),l=void 0;for(l=t;l<=r;l++){var h=~~(l*o),f=~~(h+o),d=0,p=0,v=void 0;for(v=h;v<f;v+=s){var y=c[v];y>p&&(p=y),y<d&&(d=y)}u[2*l]=p,u[2*l+1]=d,(0==i||p>this.mergedPeaks[2*l])&&(this.mergedPeaks[2*l]=p),(0==i||d<this.mergedPeaks[2*l+1])&&(this.mergedPeaks[2*l+1]=d)}}return this.params.splitChannels?this.splitPeaks:this.mergedPeaks}},{key:"getPlayedPercents",value:function(){return this.state.getPlayedPercents.call(this)}},{key:"disconnectSource",value:function(){this.source&&this.source.disconnect()}},{key:"destroy",value:function(){this.isPaused()||this.pause(),this.unAll(),this.buffer=null,this.disconnectFilters(),this.disconnectSource(),this.gainNode.disconnect(),this.scriptNode.disconnect(),this.analyser.disconnect(),this.params.closeAudioContext&&("function"==typeof this.ac.close&&"closed"!=this.ac.state&&this.ac.close(),this.ac=null,this.params.audioContext?this.params.audioContext=null:window.WaveSurferAudioContext=null,window.WaveSurferOfflineAudioContext=null)}},{key:"load",value:function(e){this.startPosition=0,this.lastPlay=this.ac.currentTime,this.buffer=e,this.createSource()}},{key:"createSource",value:function(){this.disconnectSource(),this.source=this.ac.createBufferSource(),this.source.start=this.source.start||this.source.noteGrainOn,this.source.stop=this.source.stop||this.source.noteOff,this.source.playbackRate.setValueAtTime(this.playbackRate,this.ac.currentTime),this.source.buffer=this.buffer,this.source.connect(this.analyser)}},{key:"isPaused",value:function(){return this.state!==this.states[h]}},{key:"getDuration",value:function(){return this.explicitDuration?this.explicitDuration:this.buffer?this.buffer.duration:0}},{key:"seekTo",value:function(e,t){if(this.buffer)return this.scheduledPause=null,null==e&&(e=this.getCurrentTime())>=this.getDuration()&&(e=0),null==t&&(t=this.getDuration()),this.startPosition=e,this.lastPlay=this.ac.currentTime,this.state===this.states[d]&&this.setState(f),{start:e,end:t}}},{key:"getPlayedTime",value:function(){return(this.ac.currentTime-this.lastPlay)*this.playbackRate}},{key:"play",value:function(e,t){if(this.buffer){this.createSource();var r=this.seekTo(e,t);e=r.start,t=r.end,this.scheduledPause=t,this.source.start(0,e,t-e),"suspended"==this.ac.state&&this.ac.resume&&this.ac.resume(),this.setState(h),this.fireEvent("play")}}},{key:"pause",value:function(){this.scheduledPause=null,this.startPosition+=this.getPlayedTime(),this.source&&this.source.stop(0),this.setState(f),this.fireEvent("pause")}},{key:"getCurrentTime",value:function(){return this.state.getCurrentTime.call(this)}},{key:"getPlaybackRate",value:function(){return this.playbackRate}},{key:"setPlaybackRate",value:function(e){e=e||1,this.isPaused()?this.playbackRate=e:(this.pause(),this.playbackRate=e,this.play())}}]),t}();t.default=p,p.scriptBufferSize=256,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(0)),i=u(r(15)),o=u(r(5)),s=u(r(18)),a=u(r(19));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?f(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}var y=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=l(this,h(t).call(this))).defaultParams={audioContext:null,audioScriptProcessor:null,audioRate:1,autoCenter:!0,backend:"WebAudio",backgroundColor:null,barHeight:1,barGap:null,container:null,cursorColor:"#333",cursorWidth:1,dragSelection:!0,duration:null,fillParent:!0,forceDecode:!1,height:128,hideScrollbar:!1,interact:!0,loopSelection:!0,maxCanvasWidth:4e3,mediaContainer:null,mediaControls:!1,mediaType:"audio",minPxPerSec:20,normalize:!1,partialRender:!1,pixelRatio:window.devicePixelRatio||screen.deviceXDPI/screen.logicalXDPI,plugins:[],progressColor:"#555",removeMediaElementOnDestroy:!0,renderer:i.default,responsive:!1,rtl:!1,scrollParent:!1,skipLength:2,splitChannels:!1,waveColor:"#999",xhr:{}},r.backends={MediaElement:s.default,WebAudio:o.default},r.util=n,r.params=n.extend({},r.defaultParams,e),r.container="string"==typeof e.container?document.querySelector(r.params.container):r.params.container,!r.container)throw new Error("Container element not found");if(null==r.params.mediaContainer?r.mediaContainer=r.container:"string"==typeof r.params.mediaContainer?r.mediaContainer=document.querySelector(r.params.mediaContainer):r.mediaContainer=r.params.mediaContainer,!r.mediaContainer)throw new Error("Media Container element not found");if(r.params.maxCanvasWidth<=1)throw new Error("maxCanvasWidth must be greater than 1");if(r.params.maxCanvasWidth%2==1)throw new Error("maxCanvasWidth must be an even number");if(!0===r.params.rtl&&n.style(r.container,{transform:"rotateY(180deg)"}),r.params.backgroundColor&&r.setBackgroundColor(r.params.backgroundColor),r.savedVolume=0,r.isMuted=!1,r.tmpEvents=[],r.currentRequest=null,r.arraybuffer=null,r.drawer=null,r.backend=null,r.peakCache=null,"function"!=typeof r.params.renderer)throw new Error("Renderer parameter is invalid");r.Drawer=r.params.renderer,r.Backend=r.backends[r.params.backend],r.initialisedPluginList={},r.isDestroyed=!1,r.isReady=!1;var a=0;return r._onResize=n.debounce((function(){a==r.drawer.wrapper.clientWidth||r.params.scrollParent||(a=r.drawer.wrapper.clientWidth,r.drawer.fireEvent("redraw"))}),"number"==typeof r.params.responsive?r.params.responsive:100),l(r,f(r))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,n.Observer),v(t,null,[{key:"create",value:function(e){return new t(e).init()}}]),v(t,[{key:"init",value:function(){return this.registerPlugins(this.params.plugins),this.createDrawer(),this.createBackend(),this.createPeakCache(),this}},{key:"registerPlugins",value:function(e){var t=this;return e.forEach((function(e){return t.addPlugin(e)})),e.forEach((function(e){e.deferInit||t.initPlugin(e.name)})),this.fireEvent("plugins-registered",e),this}},{key:"getActivePlugins",value:function(){return this.initialisedPluginList}},{key:"addPlugin",value:function(e){var t=this;if(!e.name)throw new Error("Plugin does not have a name!");if(!e.instance)throw new Error("Plugin ".concat(e.name," does not have an instance property!"));e.staticProps&&Object.keys(e.staticProps).forEach((function(r){t[r]=e.staticProps[r]}));var r=e.instance;return Object.getOwnPropertyNames(n.Observer.prototype).forEach((function(e){r.prototype[e]=n.Observer.prototype[e]})),this[e.name]=new r(e.params||{},this),this.fireEvent("plugin-added",e.name),this}},{key:"initPlugin",value:function(e){if(!this[e])throw new Error("Plugin ".concat(e," has not been added yet!"));return this.initialisedPluginList[e]&&this.destroyPlugin(e),this[e].init(),this.initialisedPluginList[e]=!0,this.fireEvent("plugin-initialised",e),this}},{key:"destroyPlugin",value:function(e){if(!this[e])throw new Error("Plugin ".concat(e," has not been added yet and cannot be destroyed!"));if(!this.initialisedPluginList[e])throw new Error("Plugin ".concat(e," is not active and cannot be destroyed!"));if("function"!=typeof this[e].destroy)throw new Error("Plugin ".concat(e," does not have a destroy function!"));return this[e].destroy(),delete this.initialisedPluginList[e],this.fireEvent("plugin-destroyed",e),this}},{key:"destroyAllPlugins",value:function(){var e=this;Object.keys(this.initialisedPluginList).forEach((function(t){return e.destroyPlugin(t)}))}},{key:"createDrawer",value:function(){var e=this;this.drawer=new this.Drawer(this.container,this.params),this.drawer.init(),this.fireEvent("drawer-created",this.drawer),!1!==this.params.responsive&&(window.addEventListener("resize",this._onResize,!0),window.addEventListener("orientationchange",this._onResize,!0)),this.drawer.on("redraw",(function(){e.drawBuffer(),e.drawer.progress(e.backend.getPlayedPercents())})),this.drawer.on("click",(function(t,r){setTimeout((function(){return e.seekTo(r)}),0)})),this.drawer.on("scroll",(function(t){e.params.partialRender&&e.drawBuffer(),e.fireEvent("scroll",t)}))}},{key:"createBackend",value:function(){var e=this;this.backend&&this.backend.destroy(),"AudioElement"==this.params.backend&&(this.params.backend="MediaElement"),"WebAudio"!=this.params.backend||this.Backend.prototype.supportsWebAudio.call(null)||(this.params.backend="MediaElement"),this.backend=new this.Backend(this.params),this.backend.init(),this.fireEvent("backend-created",this.backend),this.backend.on("finish",(function(){e.drawer.progress(e.backend.getPlayedPercents()),e.fireEvent("finish")})),this.backend.on("play",(function(){return e.fireEvent("play")})),this.backend.on("pause",(function(){return e.fireEvent("pause")})),this.backend.on("audioprocess",(function(t){e.drawer.progress(e.backend.getPlayedPercents()),e.fireEvent("audioprocess",t)})),"MediaElement"===this.params.backend&&(this.backend.on("seek",(function(){e.drawer.progress(e.backend.getPlayedPercents())})),this.backend.on("volume",(function(){var t=e.getVolume();e.fireEvent("volume",t),e.backend.isMuted!==e.isMuted&&(e.isMuted=e.backend.isMuted,e.fireEvent("mute",e.isMuted))})))}},{key:"createPeakCache",value:function(){this.params.partialRender&&(this.peakCache=new a.default)}},{key:"getDuration",value:function(){return this.backend.getDuration()}},{key:"getCurrentTime",value:function(){return this.backend.getCurrentTime()}},{key:"setCurrentTime",value:function(e){e>=this.getDuration()?this.seekTo(1):this.seekTo(e/this.getDuration())}},{key:"play",value:function(e,t){var r=this;return this.fireEvent("interaction",(function(){return r.play(e,t)})),this.backend.play(e,t)}},{key:"pause",value:function(){if(!this.backend.isPaused())return this.backend.pause()}},{key:"playPause",value:function(){return this.backend.isPaused()?this.play():this.pause()}},{key:"isPlaying",value:function(){return!this.backend.isPaused()}},{key:"skipBackward",value:function(e){this.skip(-e||-this.params.skipLength)}},{key:"skipForward",value:function(e){this.skip(e||this.params.skipLength)}},{key:"skip",value:function(e){var t=this.getDuration()||1,r=this.getCurrentTime()||0;r=Math.max(0,Math.min(t,r+(e||0))),this.seekAndCenter(r/t)}},{key:"seekAndCenter",value:function(e){this.seekTo(e),this.drawer.recenter(e)}},{key:"seekTo",value:function(e){var t=this;if("number"!=typeof e||!isFinite(e)||e<0||e>1)throw new Error("Error calling wavesurfer.seekTo, parameter must be a number between 0 and 1!");this.fireEvent("interaction",(function(){return t.seekTo(e)}));var r=this.backend.isPaused();r||this.backend.pause();var n=this.params.scrollParent;this.params.scrollParent=!1,this.backend.seekTo(e*this.getDuration()),this.drawer.progress(e),r||this.backend.play(),this.params.scrollParent=n,this.fireEvent("seek",e)}},{key:"stop",value:function(){this.pause(),this.seekTo(0),this.drawer.progress(0)}},{key:"setSinkId",value:function(e){return this.backend.setSinkId(e)}},{key:"setVolume",value:function(e){this.backend.setVolume(e),this.fireEvent("volume",e)}},{key:"getVolume",value:function(){return this.backend.getVolume()}},{key:"setPlaybackRate",value:function(e){this.backend.setPlaybackRate(e)}},{key:"getPlaybackRate",value:function(){return this.backend.getPlaybackRate()}},{key:"toggleMute",value:function(){this.setMute(!this.isMuted)}},{key:"setMute",value:function(e){e!==this.isMuted?(e?(this.savedVolume=this.backend.getVolume(),this.backend.setVolume(0),this.isMuted=!0,this.fireEvent("volume",0)):(this.backend.setVolume(this.savedVolume),this.isMuted=!1,this.fireEvent("volume",this.savedVolume)),this.fireEvent("mute",this.isMuted)):this.fireEvent("mute",this.isMuted)}},{key:"getMute",value:function(){return this.isMuted}},{key:"getFilters",value:function(){return this.backend.filters||[]}},{key:"toggleScroll",value:function(){this.params.scrollParent=!this.params.scrollParent,this.drawBuffer()}},{key:"toggleInteraction",value:function(){this.params.interact=!this.params.interact}},{key:"getWaveColor",value:function(){return this.params.waveColor}},{key:"setWaveColor",value:function(e){this.params.waveColor=e,this.drawBuffer()}},{key:"getProgressColor",value:function(){return this.params.progressColor}},{key:"setProgressColor",value:function(e){this.params.progressColor=e,this.drawBuffer()}},{key:"getBackgroundColor",value:function(){return this.params.backgroundColor}},{key:"setBackgroundColor",value:function(e){this.params.backgroundColor=e,n.style(this.container,{background:this.params.backgroundColor})}},{key:"getCursorColor",value:function(){return this.params.cursorColor}},{key:"setCursorColor",value:function(e){this.params.cursorColor=e,this.drawer.updateCursor()}},{key:"getHeight",value:function(){return this.params.height}},{key:"setHeight",value:function(e){this.params.height=e,this.drawer.setHeight(e*this.params.pixelRatio),this.drawBuffer()}},{key:"drawBuffer",value:function(){var e,t=Math.round(this.getDuration()*this.params.minPxPerSec*this.params.pixelRatio),r=this.drawer.getWidth(),n=t,i=0,o=Math.max(i+r,n);if(this.params.fillParent&&(!this.params.scrollParent||t<r)&&(i=0,o=n=r),this.params.partialRender){var s,a=this.peakCache.addRangeToPeakCache(n,i,o);for(s=0;s<a.length;s++)e=this.backend.getPeaks(n,a[s][0],a[s][1]),this.drawer.drawPeaks(e,n,a[s][0],a[s][1])}else e=this.backend.getPeaks(n,i,o),this.drawer.drawPeaks(e,n,i,o);this.fireEvent("redraw",e,n)}},{key:"zoom",value:function(e){e?(this.params.minPxPerSec=e,this.params.scrollParent=!0):(this.params.minPxPerSec=this.defaultParams.minPxPerSec,this.params.scrollParent=!1),this.drawBuffer(),this.drawer.progress(this.backend.getPlayedPercents()),this.drawer.recenter(this.getCurrentTime()/this.getDuration()),this.fireEvent("zoom",e)}},{key:"loadArrayBuffer",value:function(e){var t=this;this.decodeArrayBuffer(e,(function(e){t.isDestroyed||t.loadDecodedBuffer(e)}))}},{key:"loadDecodedBuffer",value:function(e){this.backend.load(e),this.drawBuffer(),this.fireEvent("ready"),this.isReady=!0}},{key:"loadBlob",value:function(e){var t=this,r=new FileReader;r.addEventListener("progress",(function(e){return t.onProgress(e)})),r.addEventListener("load",(function(e){return t.loadArrayBuffer(e.target.result)})),r.addEventListener("error",(function(){return t.fireEvent("error","Error reading file")})),r.readAsArrayBuffer(e),this.empty()}},{key:"load",value:function(e,t,r,n){if(this.empty(),r){var i={"Preload is not 'auto', 'none' or 'metadata'":-1===["auto","metadata","none"].indexOf(r),"Peaks are not provided":!t,"Backend is not of type MediaElement":"MediaElement"!==this.params.backend,"Url is not of type string":"string"!=typeof e},o=Object.keys(i).filter((function(e){return i[e]}));o.length&&(console.warn("Preload parameter of wavesurfer.load will be ignored because:\n\t- "+o.join("\n\t- ")),r=null)}switch(this.params.backend){case"WebAudio":return this.loadBuffer(e,t,n);case"MediaElement":return this.loadMediaElement(e,t,r,n)}}},{key:"loadBuffer",value:function(e,t,r){var n=this,i=function(t){return t&&n.tmpEvents.push(n.once("ready",t)),n.getArrayBuffer(e,(function(e){return n.loadArrayBuffer(e)}))};if(!t)return i();this.backend.setPeaks(t,r),this.drawBuffer(),this.tmpEvents.push(this.once("interaction",i))}},{key:"loadMediaElement",value:function(e,t,r,n){var i=this,o=e;if("string"==typeof e)this.backend.load(o,this.mediaContainer,t,r);else{var s=e;this.backend.loadElt(s,t),o=s.src}this.tmpEvents.push(this.backend.once("canplay",(function(){i.drawBuffer(),i.fireEvent("ready"),i.isReady=!0})),this.backend.once("error",(function(e){return i.fireEvent("error",e)}))),t&&this.backend.setPeaks(t,n),t&&!this.params.forceDecode||!this.backend.supportsWebAudio()||this.getArrayBuffer(o,(function(e){i.decodeArrayBuffer(e,(function(e){i.backend.buffer=e,i.backend.setPeaks(null),i.drawBuffer(),i.fireEvent("waveform-ready")}))}))}},{key:"decodeArrayBuffer",value:function(e,t){var r=this;this.arraybuffer=e,this.backend.decodeArrayBuffer(e,(function(n){r.isDestroyed||r.arraybuffer!=e||(t(n),r.arraybuffer=null)}),(function(){return r.fireEvent("error","Error decoding audiobuffer")}))}},{key:"getArrayBuffer",value:function(e,t){var r=this,i=n.extend({url:e,responseType:"arraybuffer"},this.params.xhr),o=n.fetchFile(i);return this.currentRequest=o,this.tmpEvents.push(o.on("progress",(function(e){r.onProgress(e)})),o.on("success",(function(e){t(e),r.currentRequest=null})),o.on("error",(function(e){r.fireEvent("error","fetch error: "+e.message),r.currentRequest=null}))),o}},{key:"onProgress",value:function(e){var t;t=e.lengthComputable?e.loaded/e.total:e.loaded/(e.loaded+1e6),this.fireEvent("loading",Math.round(100*t),e.target)}},{key:"exportPCM",value:function(e,t,r,n){e=e||1024,n=n||0,t=t||1e4,r=r||!1;var i=this.backend.getPeaks(e,n),o=[].map.call(i,(function(e){return Math.round(e*t)/t})),s=JSON.stringify(o);return r||window.open("data:application/json;charset=utf-8,"+encodeURIComponent(s)),s}},{key:"exportImage",value:function(e,t,r){return e||(e="image/png"),t||(t=1),r||(r="dataURL"),this.drawer.getImage(e,t,r)}},{key:"cancelAjax",value:function(){this.currentRequest&&this.currentRequest.controller&&(this.currentRequest.controller.abort(),this.currentRequest=null)}},{key:"clearTmpEvents",value:function(){this.tmpEvents.forEach((function(e){return e.un()}))}},{key:"empty",value:function(){this.backend.isPaused()||(this.stop(),this.backend.disconnectSource()),this.isReady=!1,this.cancelAjax(),this.clearTmpEvents(),this.drawer.progress(0),this.drawer.setWidth(0),this.drawer.drawPeaks({length:this.drawer.getWidth()},0)}},{key:"destroy",value:function(){this.destroyAllPlugins(),this.fireEvent("destroy"),this.cancelAjax(),this.clearTmpEvents(),this.unAll(),!1!==this.params.responsive&&(window.removeEventListener("resize",this._onResize,!0),window.removeEventListener("orientationchange",this._onResize,!0)),this.backend.destroy(),this.drawer.destroy(),this.isDestroyed=!0,this.isReady=!1,this.arraybuffer=null}}]),t}();t.default=y,y.VERSION="3.0.0",y.util=n,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new i.default,r=new XMLHttpRequest,n=!1;return r.open(e.method||"GET",e.url,!0),r.responseType=e.responseType||"json",e.xhr&&(e.xhr.requestHeaders&&e.xhr.requestHeaders.forEach((function(e){r.setRequestHeader(e.key,e.value)})),e.xhr.withCredentials&&(r.withCredentials=!0)),r.addEventListener("progress",(function(e){t.fireEvent("progress",e),e.lengthComputable&&e.loaded==e.total&&(n=!0)})),r.addEventListener("load",(function(e){n||t.fireEvent("progress",e),t.fireEvent("load",e),200==r.status||206==r.status?t.fireEvent("success",r.response,e):t.fireEvent("error",e)})),r.addEventListener("error",(function(e){return t.fireEvent("error",e)})),r.send(),t.xhr=r,t};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=-1/0;return Object.keys(e).forEach((function(r){e[r]>t&&(t=e[r])})),t},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=Number(1/0);return Object.keys(e).forEach((function(r){e[r]<t&&(t=e[r])})),t},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach((function(t){Object.keys(t).forEach((function(r){e[r]=t[r]}))})),e},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(0,i.default)((function(){return e.apply(void 0,r)}))}};var n,i=(n=r(4))&&n.__esModule?n:{default:n};e.exports=t.default},function(e,t){function r(e,t,r){var n,i,o,s,a;function u(){var c=Date.now()-s;c<t&&c>=0?n=setTimeout(u,t-c):(n=null,r||(a=e.apply(o,i),o=i=null))}null==t&&(t=100);var c=function(){o=this,i=arguments,s=Date.now();var c=r&&!n;return n||(n=setTimeout(u,t)),c&&(a=e.apply(o,i),o=i=null),a};return c.clear=function(){n&&(clearTimeout(n),n=null)},c.flush=function(){n&&(a=e.apply(o,i),o=i=null,clearTimeout(n),n=null)},c}r.debounce=r,e.exports=r},function(e,t,r){"use strict";function n(e){e.stopPropagation(),document.body.removeEventListener("click",n,!0)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){document.body.addEventListener("click",n,!0)},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)throw new Error("fetch options missing");if(!e.url)throw new Error("fetch url missing");var t=new i.default,r=new Headers,n=new Request(e.url);t.controller=new AbortController,e&&e.requestHeaders&&e.requestHeaders.forEach((function(e){r.append(e.key,e.value)}));var o=e.responseType||"json",a={method:e.method||"GET",headers:r,mode:e.mode||"cors",credentials:e.credentials||"same-origin",cache:e.cache||"default",redirect:e.redirect||"follow",referrer:e.referrer||"client",signal:t.controller.signal};return fetch(n,a).then((function(e){t.response=e;var r=!0;e.body||(r=!1);var n=e.headers.get("content-length");return null===n&&(r=!1),r?(t.onProgress=function(e){t.fireEvent("progress",e)},new Response(new ReadableStream(new s(t,n,e)),a)):e})).then((function(e){var t;if(e.ok)switch(o){case"arraybuffer":return e.arrayBuffer();case"json":return e.json();case"blob":return e.blob();case"text":return e.text();default:t="Unknown responseType: "+o}throw t||(t="HTTP error status: "+e.status),new Error(t)})).then((function(e){t.fireEvent("success",e)})).catch((function(e){t.fireEvent("error",e)})),t.fetchRequest=n,t};var n,i=(n=r(1))&&n.__esModule?n:{default:n};function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.instance=t,this.instance._reader=n.body.getReader(),this.total=parseInt(r,10),this.loaded=0}var t,r;return t=e,(r=[{key:"start",value:function(e){var t=this;!function r(){t.instance._reader.read().then((function(n){var i=n.done,o=n.value;if(i)return 0===t.total&&t.instance.onProgress.call(t.instance,{loaded:t.loaded,total:t.total,lengthComputable:!1}),void e.close();t.loaded+=o.byteLength,t.instance.onProgress.call(t.instance,{loaded:t.loaded,total:t.total,lengthComputable:!(0===t.total)}),e.enqueue(o),r()})).catch((function(t){e.error(t)}))}()}}])&&o(t.prototype,r),e}();e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(r(16)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(0)),o=s(r(17));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=c(this,l(t).call(this,e,r))).maxCanvasWidth=r.maxCanvasWidth,n.maxCanvasElementWidth=Math.round(r.maxCanvasWidth/r.pixelRatio),n.hasProgressCanvas=r.waveColor!=r.progressColor,n.halfPixel=.5/r.pixelRatio,n.canvases=[],n.progressWave=null,n.EntryClass=o.default,n.overlap=2*Math.ceil(r.pixelRatio/2),n}var r,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,n.default),r=t,(s=[{key:"init",value:function(){this.createWrapper(),this.createElements()}},{key:"createElements",value:function(){this.progressWave=this.wrapper.appendChild(this.style(document.createElement("wave"),{position:"absolute",zIndex:3,left:0,top:0,bottom:0,overflow:"hidden",width:"0",display:"none",boxSizing:"border-box",borderRightStyle:"solid",pointerEvents:"none"})),this.addCanvas(),this.updateCursor()}},{key:"updateCursor",value:function(){this.style(this.progressWave,{borderRightWidth:this.params.cursorWidth+"px",borderRightColor:this.params.cursorColor})}},{key:"updateSize",value:function(){for(var e=this,t=Math.round(this.width/this.params.pixelRatio),r=Math.ceil(t/(this.maxCanvasElementWidth+this.overlap));this.canvases.length<r;)this.addCanvas();for(;this.canvases.length>r;)this.removeCanvas();var n=this.maxCanvasWidth+this.overlap,i=this.canvases.length-1;this.canvases.forEach((function(t,r){r==i&&(n=e.width-e.maxCanvasWidth*i),e.updateDimensions(t,n,e.height),t.clearWave()}))}},{key:"addCanvas",value:function(){var e=new this.EntryClass;e.hasProgressCanvas=this.hasProgressCanvas,e.halfPixel=this.halfPixel;var t=this.maxCanvasElementWidth*this.canvases.length;e.initWave(this.wrapper.appendChild(this.style(document.createElement("canvas"),{position:"absolute",zIndex:2,left:t+"px",top:0,bottom:0,height:"100%",pointerEvents:"none"}))),this.hasProgressCanvas&&e.initProgress(this.progressWave.appendChild(this.style(document.createElement("canvas"),{position:"absolute",left:t+"px",top:0,bottom:0,height:"100%"}))),this.canvases.push(e)}},{key:"removeCanvas",value:function(){var e=this.canvases[this.canvases.length-1];e.wave.parentElement.removeChild(e.wave),this.hasProgressCanvas&&e.progress.parentElement.removeChild(e.progress),e&&(e.destroy(),e=null),this.canvases.pop()}},{key:"updateDimensions",value:function(e,t,r){var n=Math.round(t/this.params.pixelRatio),i=Math.round(this.width/this.params.pixelRatio);e.updateDimensions(n,i,t,r),this.style(this.progressWave,{display:"block"})}},{key:"clearWave",value:function(){this.canvases.forEach((function(e){return e.clearWave()}))}},{key:"drawBars",value:function(e,t,r,n){var i=this;return this.prepareDraw(e,t,r,n,(function(e){var t=e.absmax,o=e.hasMinVals,s=(e.height,e.offsetY),a=e.halfH,u=e.peaks;if(void 0!==r)for(var c=o?2:1,l=u.length/c,h=i.params.barWidth*i.params.pixelRatio,f=h+(null===i.params.barGap?Math.max(i.params.pixelRatio,~~(h/2)):Math.max(i.params.pixelRatio,i.params.barGap*i.params.pixelRatio)),d=l/i.width,p=n,v=r;v<p;v+=f){var y=u[Math.floor(v*d*c)]||0,m=Math.round(y/t*a);i.fillRect(v+i.halfPixel,a-m+s,h+i.halfPixel,2*m)}}))}},{key:"drawWave",value:function(e,t,r,n){var i=this;return this.prepareDraw(e,t,r,n,(function(e){var t=e.absmax,o=e.hasMinVals,s=(e.height,e.offsetY),a=e.halfH,u=e.peaks;if(!o){for(var c=[],l=u.length,h=0;h<l;h++)c[2*h]=u[h],c[2*h+1]=-u[h];u=c}void 0!==r&&i.drawLine(u,t,a,s,r,n),i.fillRect(0,a+s-i.halfPixel,i.width,i.halfPixel)}))}},{key:"drawLine",value:function(e,t,r,n,i,o){var s=this;this.canvases.forEach((function(a){s.setFillStyles(a),a.drawLines(e,t,r,n,i,o)}))}},{key:"fillRect",value:function(e,t,r,n){for(var i=Math.floor(e/this.maxCanvasWidth),o=Math.min(Math.ceil((e+r)/this.maxCanvasWidth)+1,this.canvases.length),s=i;s<o;s++){var a=this.canvases[s],u=s*this.maxCanvasWidth,c={x1:Math.max(e,s*this.maxCanvasWidth),y1:t,x2:Math.min(e+r,s*this.maxCanvasWidth+a.wave.width),y2:t+n};c.x1<c.x2&&(this.setFillStyles(a),a.fillRects(c.x1-u,c.y1,c.x2-c.x1,c.y2-c.y1))}}},{key:"prepareDraw",value:function(e,t,r,n,o){var s=this;return i.frame((function(){if(e[0]instanceof Array){var a=e;if(s.params.splitChannels)return s.setHeight(a.length*s.params.height*s.params.pixelRatio),a.forEach((function(e,t){return s.prepareDraw(e,t,r,n,o)}));e=a[0]}var u=1/s.params.barHeight;if(s.params.normalize){var c=i.max(e),l=i.min(e);u=-l>c?-l:c}var h=[].some.call(e,(function(e){return e<0})),f=s.params.height*s.params.pixelRatio;return o({absmax:u,hasMinVals:h,height:f,offsetY:f*t||0,halfH:f/2,peaks:e})}))()}},{key:"setFillStyles",value:function(e){e.setFillStyles(this.params.waveColor,this.params.progressColor)}},{key:"getImage",value:function(e,t,r){if("blob"===r)return Promise.all(this.canvases.map((function(n){return n.getImage(e,t,r)})));if("dataURL"===r){var n=this.canvases.map((function(n){return n.getImage(e,t,r)}));return n.length>1?n:n[0]}}},{key:"updateProgress",value:function(e){this.style(this.progressWave,{width:e+"px"})}}])&&u(r.prototype,s),t}();t.default=f,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(0));function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,a(t).call(this))).container=e,n.params=r,n.width=0,n.height=r.height*n.params.pixelRatio,n.lastPos=0,n.wrapper=null,n}var r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,n.Observer),r=t,(i=[{key:"style",value:function(e,t){return n.style(e,t)}},{key:"createWrapper",value:function(){this.wrapper=this.container.appendChild(document.createElement("wave")),this.style(this.wrapper,{display:"block",position:"relative",userSelect:"none",webkitUserSelect:"none",height:this.params.height+"px"}),(this.params.fillParent||this.params.scrollParent)&&this.style(this.wrapper,{width:"100%",overflowX:this.params.hideScrollbar?"hidden":"auto",overflowY:"hidden"}),this.setupWrapperEvents()}},{key:"handleEvent",value:function(e,t){!t&&e.preventDefault();var r,n=e.targetTouches?e.targetTouches[0].clientX:e.clientX,i=this.wrapper.getBoundingClientRect(),o=this.width,s=this.getWidth();return!this.params.fillParent&&o<s?(r=(this.params.rtl?i.right-n:n-i.left)*(this.params.pixelRatio/o)||0)>1&&(r=1):r=((this.params.rtl?i.right-n:n-i.left)+this.wrapper.scrollLeft)/this.wrapper.scrollWidth||0,r}},{key:"setupWrapperEvents",value:function(){var e=this;this.wrapper.addEventListener("click",(function(t){var r=e.wrapper.offsetHeight-e.wrapper.clientHeight;if(0!=r){var n=e.wrapper.getBoundingClientRect();if(t.clientY>=n.bottom-r)return}e.params.interact&&e.fireEvent("click",t,e.handleEvent(t))})),this.wrapper.addEventListener("scroll",(function(t){return e.fireEvent("scroll",t)}))}},{key:"drawPeaks",value:function(e,t,r,n){this.setWidth(t)||this.clearWave(),this.params.barWidth?this.drawBars(e,0,r,n):this.drawWave(e,0,r,n)}},{key:"resetScroll",value:function(){null!==this.wrapper&&(this.wrapper.scrollLeft=0)}},{key:"recenter",value:function(e){var t=this.wrapper.scrollWidth*e;this.recenterOnPosition(t,!0)}},{key:"recenterOnPosition",value:function(e,t){var r=this.wrapper.scrollLeft,n=~~(this.wrapper.clientWidth/2),i=this.wrapper.scrollWidth-this.wrapper.clientWidth,o=e-n,s=o-r;0!=i&&(!t&&-n<=s&&s<n&&(o=r+(s=Math.max(-5,Math.min(5,s)))),(o=Math.max(0,Math.min(i,o)))!=r&&(this.wrapper.scrollLeft=o))}},{key:"getScrollX",value:function(){var e=0;if(this.wrapper){var t=this.params.pixelRatio;if(e=Math.round(this.wrapper.scrollLeft*t),this.params.scrollParent){var r=~~(this.wrapper.scrollWidth*t-this.getWidth());e=Math.min(r,Math.max(0,e))}}return e}},{key:"getWidth",value:function(){return Math.round(this.container.clientWidth*this.params.pixelRatio)}},{key:"setWidth",value:function(e){return this.width!=e&&(this.width=e,this.params.fillParent||this.params.scrollParent?this.style(this.wrapper,{width:""}):this.style(this.wrapper,{width:~~(this.width/this.params.pixelRatio)+"px"}),this.updateSize(),!0)}},{key:"setHeight",value:function(e){return e!=this.height&&(this.height=e,this.style(this.wrapper,{height:~~(this.height/this.params.pixelRatio)+"px"}),this.updateSize(),!0)}},{key:"progress",value:function(e){var t=1/this.params.pixelRatio,r=Math.round(e*this.width)*t;if(r<this.lastPos||r-this.lastPos>=t){if(this.lastPos=r,this.params.scrollParent&&this.params.autoCenter){var n=~~(this.wrapper.scrollWidth*e);this.recenterOnPosition(n)}this.updateProgress(r)}}},{key:"destroy",value:function(){this.unAll(),this.wrapper&&(this.wrapper.parentNode==this.container&&this.container.removeChild(this.wrapper),this.wrapper=null)}},{key:"updateCursor",value:function(){}},{key:"updateSize",value:function(){}},{key:"drawBars",value:function(e,t,r,n){}},{key:"drawWave",value:function(e,t,r,n){}},{key:"clearWave",value:function(){}},{key:"updateProgress",value:function(e){}}])&&o(r.prototype,i),t}();t.default=c,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(3)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wave=null,this.waveCtx=null,this.progress=null,this.progressCtx=null,this.start=0,this.end=1,this.id=(0,i.default)(this.constructor.name.toLowerCase()+"_")}var t,r;return t=e,(r=[{key:"initWave",value:function(e){this.wave=e,this.waveCtx=this.wave.getContext("2d")}},{key:"initProgress",value:function(e){this.progress=e,this.progressCtx=this.progress.getContext("2d")}},{key:"updateDimensions",value:function(e,t,r,i){this.start=this.wave.offsetLeft/t||0,this.end=this.start+e/t,this.wave.width=r,this.wave.height=i;var o={width:e+"px"};(0,n.default)(this.wave,o),this.hasProgressCanvas&&(this.progress.width=r,this.progress.height=i,(0,n.default)(this.progress,o))}},{key:"clearWave",value:function(){this.waveCtx.clearRect(0,0,this.waveCtx.canvas.width,this.waveCtx.canvas.height),this.hasProgressCanvas&&this.progressCtx.clearRect(0,0,this.progressCtx.canvas.width,this.progressCtx.canvas.height)}},{key:"setFillStyles",value:function(e,t){this.waveCtx.fillStyle=e,this.hasProgressCanvas&&(this.progressCtx.fillStyle=t)}},{key:"fillRects",value:function(e,t,r,n){this.fillRectToContext(this.waveCtx,e,t,r,n),this.hasProgressCanvas&&this.fillRectToContext(this.progressCtx,e,t,r,n)}},{key:"fillRectToContext",value:function(e,t,r,n,i){e&&e.fillRect(t,r,n,i)}},{key:"drawLines",value:function(e,t,r,n,i,o){this.drawLineToContext(this.waveCtx,e,t,r,n,i,o),this.hasProgressCanvas&&this.drawLineToContext(this.progressCtx,e,t,r,n,i,o)}},{key:"drawLineToContext",value:function(e,t,r,n,i,o,s){if(e){var a,u,c,l=t.length/2,h=Math.round(l*this.start),f=h,d=Math.round(l*this.end)+1,p=this.wave.width/(d-f-1),v=n+i,y=r/n;for(e.beginPath(),e.moveTo((f-h)*p,v),e.lineTo((f-h)*p,v-Math.round((t[2*f]||0)/y)),a=f;a<d;a++)u=t[2*a]||0,c=Math.round(u/y),e.lineTo((a-h)*p+this.halfPixel,v-c);for(var m=d-1;m>=f;m--)u=t[2*m+1]||0,c=Math.round(u/y),e.lineTo((m-h)*p+this.halfPixel,v-c);e.lineTo((f-h)*p,v-Math.round((t[2*f+1]||0)/y)),e.closePath(),e.fill()}}},{key:"destroy",value:function(){this.waveCtx=null,this.wave=null,this.progressCtx=null,this.progress=null}},{key:"getImage",value:function(e,t,r){var n=this;return"blob"===r?new Promise((function(r){n.wave.toBlob(r,e,t)})):"dataURL"===r?this.wave.toDataURL(e,t):void 0}}])&&s(t.prototype,r),e}();t.default=a,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(5))&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(0));function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e,t,r){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(r):i.value}})(e,t,r||e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=u(this,l(t).call(this,e))).params=e,r.media={currentTime:0,duration:0,paused:!0,playbackRate:1,play:function(){},pause:function(){},volume:0},r.mediaType=e.mediaType.toLowerCase(),r.elementPosition=e.elementPosition,r.peaks=null,r.playbackRate=1,r.volume=1,r.isMuted=!1,r.buffer=null,r.onPlayEnd=null,r}var r,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,i.default),r=t,(n=[{key:"init",value:function(){this.setPlaybackRate(this.params.audioRate),this.createTimer()}},{key:"createTimer",value:function(){var e=this;this.on("play",(function t(){e.isPaused()||(e.fireEvent("audioprocess",e.getCurrentTime()),o.frame(t)())})),this.on("pause",(function(){e.fireEvent("audioprocess",e.getCurrentTime())}))}},{key:"load",value:function(e,t,r,n){var i=document.createElement(this.mediaType);i.controls=this.params.mediaControls,i.autoplay=this.params.autoplay||!1,i.preload=null==n?"auto":n,i.src=e,i.style.width="100%";var o=t.querySelector(this.mediaType);o&&t.removeChild(o),t.appendChild(i),this._load(i,r)}},{key:"loadElt",value:function(e,t){e.controls=this.params.mediaControls,e.autoplay=this.params.autoplay||!1,this._load(e,t)}},{key:"_load",value:function(e,t){var r=this;"function"==typeof e.load&&e.load(),e.addEventListener("error",(function(){r.fireEvent("error","Error loading media element")})),e.addEventListener("canplay",(function(){r.fireEvent("canplay")})),e.addEventListener("ended",(function(){r.fireEvent("finish")})),e.addEventListener("play",(function(){r.fireEvent("play")})),e.addEventListener("pause",(function(){r.fireEvent("pause")})),e.addEventListener("seeked",(function(e){r.fireEvent("seek")})),e.addEventListener("volumechange",(function(t){r.isMuted=e.muted,r.isMuted?r.volume=0:r.volume=e.volume,r.fireEvent("volume")})),this.media=e,this.peaks=t,this.onPlayEnd=null,this.buffer=null,this.isMuted=e.muted,this.setPlaybackRate(this.playbackRate),this.setVolume(this.volume)}},{key:"isPaused",value:function(){return!this.media||this.media.paused}},{key:"getDuration",value:function(){if(this.explicitDuration)return this.explicitDuration;var e=(this.buffer||this.media).duration;return e>=1/0&&(e=this.media.seekable.end(0)),e}},{key:"getCurrentTime",value:function(){return this.media&&this.media.currentTime}},{key:"getPlayedPercents",value:function(){return this.getCurrentTime()/this.getDuration()||0}},{key:"getPlaybackRate",value:function(){return this.playbackRate||this.media.playbackRate}},{key:"setPlaybackRate",value:function(e){this.playbackRate=e||1,this.media.playbackRate=this.playbackRate}},{key:"seekTo",value:function(e){null!=e&&(this.media.currentTime=e),this.clearPlayEnd()}},{key:"play",value:function(e,t){this.seekTo(e);var r=this.media.play();return t&&this.setPlayEnd(t),r}},{key:"pause",value:function(){var e;return this.media&&(e=this.media.pause()),this.clearPlayEnd(),e}},{key:"setPlayEnd",value:function(e){var t=this;this._onPlayEnd=function(r){r>=e&&(t.pause(),t.seekTo(e))},this.on("audioprocess",this._onPlayEnd)}},{key:"clearPlayEnd",value:function(){this._onPlayEnd&&(this.un("audioprocess",this._onPlayEnd),this._onPlayEnd=null)}},{key:"getPeaks",value:function(e,r,n){return this.buffer?c(l(t.prototype),"getPeaks",this).call(this,e,r,n):this.peaks||[]}},{key:"setSinkId",value:function(e){return e?this.media.setSinkId?this.media.setSinkId(e):Promise.reject(new Error("setSinkId is not supported in your browser")):Promise.reject(new Error("Invalid deviceId: "+e))}},{key:"getVolume",value:function(){return this.volume}},{key:"setVolume",value:function(e){this.volume=e,this.media.volume!==this.volume&&(this.media.volume=this.volume)}},{key:"destroy",value:function(){this.pause(),this.unAll(),this.params.removeMediaElementOnDestroy&&this.media&&this.media.parentNode&&this.media.parentNode.removeChild(this.media),this.media=null}}])&&a(r.prototype,n),t}();t.default=f,e.exports=t.default},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clearPeakCache()}var t,r;return t=e,(r=[{key:"clearPeakCache",value:function(){this.peakCacheRanges=[],this.peakCacheLength=-1}},{key:"addRangeToPeakCache",value:function(e,t,r){e!=this.peakCacheLength&&(this.clearPeakCache(),this.peakCacheLength=e);for(var n=[],i=0;i<this.peakCacheRanges.length&&this.peakCacheRanges[i]<t;)i++;for(i%2==0&&n.push(t);i<this.peakCacheRanges.length&&this.peakCacheRanges[i]<=r;)n.push(this.peakCacheRanges[i]),i++;i%2==0&&n.push(r),n=n.filter((function(e,t,r){return 0==t?e!=r[t+1]:t==r.length-1?e!=r[t-1]:e!=r[t-1]&&e!=r[t+1]})),this.peakCacheRanges=this.peakCacheRanges.concat(n),this.peakCacheRanges=this.peakCacheRanges.sort((function(e,t){return e-t})).filter((function(e,t,r){return 0==t?e!=r[t+1]:t==r.length-1?e!=r[t-1]:e!=r[t-1]&&e!=r[t+1]}));var o=[];for(i=0;i<n.length;i+=2)o.push([n[i],n[i+1]]);return o}},{key:"getCacheRanges",value:function(){var e,t=[];for(e=0;e<this.peakCacheRanges.length;e+=2)t.push([this.peakCacheRanges[e],this.peakCacheRanges[e+1]]);return t}}])&&n(t.prototype,r),e}();t.default=i,e.exports=t.default}])},1025:function(e,t,r){window,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="localhost:8080/dist/plugin/",r(r.s=5)}({5:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(){function e(t,r){var i=this;n(this,e),this.wavesurfer=r,this.wrapper=r.drawer.wrapper,this.util=r.util,this.style=this.util.style,this.id=null==t.id?r.util.getId():t.id,this.start=Number(t.start)||0,this.end=null==t.end?this.start+4/this.wrapper.scrollWidth*this.wavesurfer.getDuration():Number(t.end),this.resize=void 0===t.resize||Boolean(t.resize),this.drag=void 0===t.drag||Boolean(t.drag),this.loop=Boolean(t.loop),this.color=t.color||"rgba(0, 0, 0, 0.1)",this.data=t.data||{},this.attributes=t.attributes||{},this.maxLength=t.maxLength,this.minLength=t.minLength,this._onRedraw=function(){return i.updateRender()},this.scroll=!1!==t.scroll&&r.params.scrollParent,this.scrollSpeed=t.scrollSpeed||1,this.scrollThreshold=t.scrollThreshold||10,this.bindInOut(),this.render(),this.wavesurfer.on("zoom",this._onRedraw),this.wavesurfer.on("redraw",this._onRedraw),this.wavesurfer.fireEvent("region-created",this)}return o(e,[{key:"update",value:function(e){null!=e.start&&(this.start=Number(e.start)),null!=e.end&&(this.end=Number(e.end)),null!=e.loop&&(this.loop=Boolean(e.loop)),null!=e.color&&(this.color=e.color),null!=e.data&&(this.data=e.data),null!=e.resize&&(this.resize=Boolean(e.resize)),null!=e.drag&&(this.drag=Boolean(e.drag)),null!=e.maxLength&&(this.maxLength=Number(e.maxLength)),null!=e.minLength&&(this.minLength=Number(e.minLength)),null!=e.attributes&&(this.attributes=e.attributes),this.updateRender(),this.fireEvent("update"),this.wavesurfer.fireEvent("region-updated",this)}},{key:"remove",value:function(){this.element&&(this.wrapper.removeChild(this.element),this.element=null,this.fireEvent("remove"),this.wavesurfer.un("zoom",this._onRedraw),this.wavesurfer.un("redraw",this._onRedraw),this.wavesurfer.fireEvent("region-removed",this))}},{key:"play",value:function(){this.wavesurfer.play(this.start,this.end),this.fireEvent("play"),this.wavesurfer.fireEvent("region-play",this)}},{key:"playLoop",value:function(){var e=this;this.play(),this.once("out",(function(){return e.playLoop()}))}},{key:"render",value:function(){var e=document.createElement("region");for(var t in e.className="wavesurfer-region",e.title=this.formatTime(this.start,this.end),e.setAttribute("data-id",this.id),this.attributes)e.setAttribute("data-region-"+t,this.attributes[t]);if(this.wrapper.scrollWidth,this.style(e,{position:"absolute",zIndex:2,height:"100%",top:"0px"}),this.resize){var r=e.appendChild(document.createElement("handle")),n=e.appendChild(document.createElement("handle"));r.className="wavesurfer-handle wavesurfer-handle-start",n.className="wavesurfer-handle wavesurfer-handle-end";var i={cursor:"col-resize",position:"absolute",left:"0px",top:"0px",width:"1%",maxWidth:"4px",height:"100%"};this.style(r,i),this.style(n,i),this.style(n,{left:"100%"})}this.element=this.wrapper.appendChild(e),this.updateRender(),this.bindEvents(e)}},{key:"formatTime",value:function(e,t){return(e==t?[e]:[e,t]).map((function(e){return[Math.floor(e%3600/60),("00"+Math.floor(e%60)).slice(-2)].join(":")})).join("-")}},{key:"getWidth",value:function(){return this.wavesurfer.drawer.width/this.wavesurfer.params.pixelRatio}},{key:"updateRender",value:function(){var e=this.wavesurfer.getDuration(),t=this.getWidth(),r=this.start,n=this.end;if(r<0&&(n-=r=0),n>e&&(r=e-((n=e)-r)),null!=this.minLength&&(n=Math.max(r+this.minLength,n)),null!=this.maxLength&&(n=Math.min(r+this.maxLength,n)),null!=this.element){var i=Math.round(r/e*t),o=Math.round(n/e*t)-i;for(var s in this.style(this.element,{left:i+"px",width:o+"px",backgroundColor:this.color,cursor:this.drag?"move":"default"}),this.attributes)this.element.setAttribute("data-region-"+s,this.attributes[s]);this.element.title=this.formatTime(this.start,this.end)}}},{key:"bindInOut",value:function(){var e=this;this.firedIn=!1,this.firedOut=!1;var t=function(t){!e.firedOut&&e.firedIn&&(e.start>=Math.round(100*t)/100||e.end<=Math.round(100*t)/100)&&(e.firedOut=!0,e.firedIn=!1,e.fireEvent("out"),e.wavesurfer.fireEvent("region-out",e)),!e.firedIn&&e.start<=t&&e.end>t&&(e.firedIn=!0,e.firedOut=!1,e.fireEvent("in"),e.wavesurfer.fireEvent("region-in",e))};this.wavesurfer.backend.on("audioprocess",t),this.on("remove",(function(){e.wavesurfer.backend.un("audioprocess",t)})),this.on("out",(function(){e.loop&&e.wavesurfer.play(e.start)}))}},{key:"bindEvents",value:function(){var e,t,r,n,i,o,s,a,u,c,l,h,f,d,p=this;this.element.addEventListener("mouseenter",(function(e){p.fireEvent("mouseenter",e),p.wavesurfer.fireEvent("region-mouseenter",p,e)})),this.element.addEventListener("mouseleave",(function(e){p.fireEvent("mouseleave",e),p.wavesurfer.fireEvent("region-mouseleave",p,e)})),this.element.addEventListener("click",(function(e){e.preventDefault(),p.fireEvent("click",e),p.wavesurfer.fireEvent("region-click",p,e)})),this.element.addEventListener("dblclick",(function(e){e.stopPropagation(),e.preventDefault(),p.fireEvent("dblclick",e),p.wavesurfer.fireEvent("region-dblclick",p,e)})),(this.drag||this.resize)&&(a=p.wavesurfer.drawer.container,u=p.scrollSpeed,c=p.scrollThreshold,l=!1,h=function(o){var a=p.wavesurfer.getDuration();o.touches&&o.touches.length>1||(t=o.targetTouches?o.targetTouches[0].identifier:null,(p.drag||p.resize)&&o.stopPropagation(),e=p.wavesurfer.regions.util.getRegionSnapToGridValue(p.wavesurfer.drawer.handleEvent(o,!0)*a),n=p.wrapper.scrollWidth-p.wrapper.clientWidth,s=p.wrapper.getBoundingClientRect(),"handle"==o.target.tagName.toLowerCase()?i=o.target.classList.contains("wavesurfer-handle-start")?"start":"end":(r=!0,i=!1))},f=function(e){e.touches&&e.touches.length>1||((r||i)&&(r=!1,o=null,i=!1),l&&(l=!1,p.util.preventClick(),p.fireEvent("update-end",e),p.wavesurfer.fireEvent("region-update-end",p,e)))},d=function(h){var f=p.wavesurfer.getDuration();if(!(h.touches&&h.touches.length>1)&&(!h.targetTouches||h.targetTouches[0].identifier==t)&&(r||i)){var d=e,v=p.wavesurfer.regions.util.getRegionSnapToGridValue(p.wavesurfer.drawer.handleEvent(h)*f),y=v-e;if(e=v,p.drag&&r&&(l=l||!!y,p.onDrag(y)),p.resize&&i&&(l=l||!!y,p.onResize(y,i)),p.scroll&&a.clientWidth<p.wrapper.scrollWidth){if(r){var m=p.element.getBoundingClientRect(),b=m.left-s.left;v<d&&b>=0?o=-1:v>d&&b+m.width<=s.right&&(o=1),(-1===o&&b>c||1===o&&b+m.width<s.right-c)&&(o=null)}else{var g=h.clientX-s.left;o=g<=c?-1:g>=s.right-c?1:null}o&&function t(s){var a=p.wavesurfer.getDuration();if(o&&(r||i)){var c=p.wrapper.scrollLeft+u*o;p.wrapper.scrollLeft=c=Math.min(n,Math.max(0,c));var l=p.wavesurfer.regions.util.getRegionSnapToGridValue(p.wavesurfer.drawer.handleEvent(s)*a),h=l-e;e=l,r?p.onDrag(h):p.onResize(h,i),window.requestAnimationFrame((function(){t(s)}))}}(h)}}},p.element.addEventListener("mousedown",h),p.element.addEventListener("touchstart",h),p.wrapper.addEventListener("mousemove",d),p.wrapper.addEventListener("touchmove",d),document.body.addEventListener("mouseup",f),document.body.addEventListener("touchend",f),p.on("remove",(function(){document.body.removeEventListener("mouseup",f),document.body.removeEventListener("touchend",f),p.wrapper.removeEventListener("mousemove",d),p.wrapper.removeEventListener("touchmove",d)})),p.wavesurfer.on("destroy",(function(){document.body.removeEventListener("mouseup",f),document.body.removeEventListener("touchend",f)})))}},{key:"onDrag",value:function(e){var t=this.wavesurfer.getDuration();this.end+e>t||this.start+e<0||this.update({start:this.start+e,end:this.end+e})}},{key:"onResize",value:function(e,t){"start"==t?this.update({start:Math.min(this.start+e,this.end),end:Math.max(this.start+e,this.end)}):this.update({start:Math.min(this.end+e,this.start),end:Math.max(this.end+e,this.start)})}}]),e}(),a=function(){function e(t,r){var i=this;n(this,e),this.params=t,this.wavesurfer=r,this.util=r.util,this.util.getRegionSnapToGridValue=function(e){return i.getRegionSnapToGridValue(e,t)},Object.getOwnPropertyNames(this.util.Observer.prototype).forEach((function(e){s.prototype[e]=i.util.Observer.prototype[e]})),this.wavesurfer.Region=s,this._onBackendCreated=function(){i.wrapper=i.wavesurfer.drawer.wrapper,i.params.regions&&i.params.regions.forEach((function(e){i.add(e)}))},this.list={},this._onReady=function(){i.params.dragSelection&&i.enableDragSelection(i.params),Object.keys(i.list).forEach((function(e){i.list[e].updateRender()}))}}return o(e,null,[{key:"create",value:function(t){return{name:"regions",deferInit:!(!t||!t.deferInit)&&t.deferInit,params:t,staticProps:{addRegion:function(e){return this.initialisedPluginList.regions||this.initPlugin("regions"),this.regions.add(e)},clearRegions:function(){this.regions&&this.regions.clear()},enableDragSelection:function(e){this.initialisedPluginList.regions||this.initPlugin("regions"),this.regions.enableDragSelection(e)},disableDragSelection:function(){this.regions.disableDragSelection()}},instance:e}}}]),o(e,[{key:"init",value:function(){this.wavesurfer.isReady?(this._onBackendCreated(),this._onReady()):(this.wavesurfer.once("ready",this._onReady),this.wavesurfer.once("backend-created",this._onBackendCreated))}},{key:"destroy",value:function(){this.wavesurfer.un("ready",this._onReady),this.wavesurfer.un("backend-created",this._onBackendCreated),this.disableDragSelection(),this.clear()}},{key:"add",value:function(e){var t=this,r=new this.wavesurfer.Region(e,this.wavesurfer);return this.list[r.id]=r,r.on("remove",(function(){delete t.list[r.id]})),r}},{key:"clear",value:function(){var e=this;Object.keys(this.list).forEach((function(t){e.list[t].remove()}))}},{key:"enableDragSelection",value:function(e){var t,r,n,i,o,s,a,u=this,c=e.slop||2,l=this.wavesurfer.drawer.container,h=!1!==e.scroll&&this.wavesurfer.params.scrollParent,f=e.scrollSpeed||1,d=e.scrollThreshold||10,p=this.wavesurfer.getDuration(),v=0,y=function(e){e.touches&&e.touches.length>1||(p=u.wavesurfer.getDuration(),o=e.targetTouches?e.targetTouches[0].identifier:null,r=u.wrapper.scrollWidth-u.wrapper.clientWidth,a=u.wrapper.getBoundingClientRect(),t=!0,n=u.wavesurfer.drawer.handleEvent(e,!0),i=null,s=null)};this.wrapper.addEventListener("mousedown",y),this.wrapper.addEventListener("touchstart",y),this.on("disable-drag-selection",(function(){u.wrapper.removeEventListener("touchstart",y),u.wrapper.removeEventListener("mousedown",y)}));var m=function(e){e.touches&&e.touches.length>1||(t=!1,v=0,s=null,i&&(u.util.preventClick(),i.fireEvent("update-end",e),u.wavesurfer.fireEvent("region-update-end",i,e)),i=null)};this.wrapper.addEventListener("mouseup",m),this.wrapper.addEventListener("touchend",m),document.body.addEventListener("mouseup",m),document.body.addEventListener("touchend",m),this.on("disable-drag-selection",(function(){document.body.removeEventListener("mouseup",m),document.body.removeEventListener("touchend",m),u.wrapper.removeEventListener("touchend",m),u.wrapper.removeEventListener("mouseup",m)}));var b=function(y){if(t&&!(++v<=c||y.touches&&y.touches.length>1||y.targetTouches&&y.targetTouches[0].identifier!=o)){i||(i=u.add(e||{}));var m=u.wavesurfer.drawer.handleEvent(y),b=u.wavesurfer.regions.util.getRegionSnapToGridValue(n*p),g=u.wavesurfer.regions.util.getRegionSnapToGridValue(m*p);if(i.update({start:Math.min(g,b),end:Math.max(g,b)}),h&&l.clientWidth<u.wrapper.scrollWidth){var w=y.clientX-a.left;(s=w<=d?-1:w>=a.right-d?1:null)&&function e(t){if(i&&s){var o=u.wrapper.scrollLeft+f*s;u.wrapper.scrollLeft=o=Math.min(r,Math.max(0,o));var a=u.wavesurfer.drawer.handleEvent(t);i.update({start:Math.min(a*p,n*p),end:Math.max(a*p,n*p)}),o<r&&o>0&&window.requestAnimationFrame((function(){e(t)}))}}(y)}}};this.wrapper.addEventListener("mousemove",b),this.wrapper.addEventListener("touchmove",b),this.on("disable-drag-selection",(function(){u.wrapper.removeEventListener("touchmove",b),u.wrapper.removeEventListener("mousemove",b)}))}},{key:"disableDragSelection",value:function(){this.fireEvent("disable-drag-selection")}},{key:"getCurrentRegion",value:function(){var e=this,t=this.wavesurfer.getCurrentTime(),r=null;return Object.keys(this.list).forEach((function(n){var i=e.list[n];i.start<=t&&i.end>=t&&(!r||i.end-i.start<r.end-r.start)&&(r=i)})),r}},{key:"getRegionSnapToGridValue",value:function(e,t){if(t.snapToGridInterval){var r=t.snapToGridOffset||0;return Math.round((e-r)/t.snapToGridInterval)*t.snapToGridInterval+r}return e}}]),e}();t.default=a,e.exports=t.default}})},1026:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=c(r(0)),s=c(r(26)),a=c(r(1353)),u=c(r(1354));function c(e){return e&&e.__esModule?e:{default:e}}var l=38,h=40,f=13,d=8,p=[8,9,35,36,37,39,46,48,49,50,51,52,53,54,55,56,57,190,189,173,96,97,98,99,100,101,102,103,104,105,109,110],v={className:s.default.string,decimals:s.default.number,max:s.default.number,min:s.default.number,onValueChange:s.default.func,step:s.default.number,stepModifier:s.default.number,style:s.default.object,value:s.default.oneOfType([s.default.string,s.default.number]).isRequired,onKeyDown:s.default.func},y={className:"",decimals:0,max:Number.MAX_VALUE,min:-Number.MAX_VALUE,onValueChange:function(){},step:1,stepModifier:10,style:{}},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.onKeyDown=r.onKeyDown.bind(r),r.onDoubleClick=r.onDoubleClick.bind(r),r.onChange=r.onChange.bind(r),r.onBlur=r.onBlur.bind(r),r.state={startEditing:!1,wasUsingSpecialKeys:!1,dragStartValue:Number(e.value)},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentWillReceiveProps",value:function(e){if(e.dataDrag.isMouseDown&&!e.dataDrag.isMoving&&this.setState({dragStartValue:Number(this.props.value)}),e.dataDrag.isMoving){var t=this.getStepValue(e.dataDrag,this.props.step);this.changeValue(this.state.dragStartValue+e.dataDrag.moveDeltaX*(t/2))}}},{key:"onDoubleClick",value:function(){this.setState({startEditing:!0})}},{key:"onChange",value:function(e){this.props.onValueChange(e.target.value)}},{key:"onBlur",value:function(e){this.changeValue(Number(e.target.value)),this.setState({startEditing:!1})}},{key:"onKeyDown",value:function(e){var t=this.getStepValue(e,this.props.step),r=Number(this.props.value),n=e.which;n===l?(e.preventDefault(),this.changeValue(r+t)):n===h?(e.preventDefault(),this.changeValue(r-t)):n===f?(e.preventDefault(),this.state.startEditing?this.onBlur(e):(this.setState({startEditing:!0}),e.target.select())):n!==d||this.state.startEditing?-1===p.indexOf(n)&&e.preventDefault():e.preventDefault(),this.props.onKeyDown&&this.props.onKeyDown(e)}},{key:"getStepValue",value:function(e,t){var r=t;return e.metaKey||e.ctrlKey?r/=this.props.stepModifier:e.shiftKey&&(r*=this.props.stepModifier),r}},{key:"changeValue",value:function(e){var t=(0,u.default)(e.toFixed(this.props.decimals),this.props.min,this.props.max);Number(this.props.value)!==Number(t)&&this.props.onValueChange(t)}},{key:"render",value:function(){var e="ew-resize",t=!0,r=this.props.value;return this.state.startEditing&&(e="auto",t=!1),this.state.startEditing||(r=Number(r).toFixed(this.props.decimals)),o.default.createElement("input",{type:"text",className:this.props.className,readOnly:t,value:r,style:n({},this.props.style,{cursor:e}),onKeyDown:this.onKeyDown,onDoubleClick:this.onDoubleClick,onChange:this.onChange,onBlur:this.onBlur})}}]),t}(o.default.Component);m.propTypes=v,m.defaultProps=y,t.default=(0,a.default)(m,{resetOnSpecialKeys:!0,touch:!0,getSpecificEventData:function(e){return{metaKey:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey}},onDragMove:function(e){e.preventDefault()}})},119:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,"a",(function(){return n}))},120:function(e,t,r){"use strict";function n(e){return e}r.d(t,"a",(function(){return n}))},1353:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(0),a=(n=s)&&n.__esModule?n:{default:n},u=r(21);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(){};t.default=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=t.touch||!1,n=t.resetOnSpecialKeys||!1,s=t.getSpecificEventData||function(){return{}},d=t.onDragStart||f,p=t.onDragStop||f,v=t.onDragMove||f,y=function(t){function f(e){c(this,f);var t=l(this,Object.getPrototypeOf(f).call(this,e));return t.onMouseDown=t.onMouseDown.bind(t),t.onMouseUp=t.onMouseUp.bind(t),t.onMouseMove=t.onMouseMove.bind(t),t.state={isMouseDown:!1,isMoving:!1,mouseDownPositionX:0,mouseDownPositionY:0,moveDeltaX:0,moveDeltaY:0},t.wasUsingSpecialKeys=!1,t}return h(f,t),o(f,[{key:"componentDidMount",value:function(){var e=(0,u.findDOMNode)(this);e.addEventListener("mousedown",this.onMouseDown),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),r&&(e.addEventListener("touchstart",this.onMouseDown),document.addEventListener("touchmove",this.onMouseMove),document.addEventListener("touchend",this.onMouseUp))}},{key:"componentWillUnmount",value:function(){var e=(0,u.findDOMNode)(this);e.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),r&&(e.removeEventListener("touchstart",this.onMouseDown),document.removeEventListener("touchmove",this.onMouseMove),document.removeEventListener("touchend",this.onMouseUp))}},{key:"onMouseDown",value:function(e){if(r||0===e.button){var t=e.changedTouches&&e.changedTouches[0]||e;this.setMousePosition(t.clientX,t.clientY),d(e)}}},{key:"onMouseUp",value:function(e){this.state.isMouseDown&&(this.setState({isMouseDown:!1,isMoving:!1}),p(e))}},{key:"onMouseMove",value:function(e){if(this.state.isMouseDown){var t=e.changedTouches&&e.changedTouches[0]||e,r=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;n&&this.wasUsingSpecialKeys!==r?(this.wasUsingSpecialKeys=r,this.setMousePosition(t.clientX,t.clientY)):this.setState(i({isMoving:!0,moveDeltaX:t.clientX-this.state.mouseDownPositionX,moveDeltaY:t.clientY-this.state.mouseDownPositionY},s(e))),v(e)}}},{key:"setMousePosition",value:function(e,t){this.setState({isMouseDown:!0,isMoving:!1,mouseDownPositionX:e,mouseDownPositionY:t,moveDeltaX:0,moveDeltaY:0})}},{key:"render",value:function(){return a.default.createElement(e,i({},this.props,{dataDrag:this.state}))}}]),f}(a.default.Component);return y}},1354:function(e,t){e.exports=function(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(60),i=r(119),o=r(46),s=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),a=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var r=this._parentOrParents,a=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(null!==r)for(var l=0;l<r.length;++l){r[l].remove(this)}if(Object(o.a)(a))try{a.call(this)}catch(e){t=e instanceof s?u(e.errors):[e]}if(Object(n.a)(c)){l=-1;for(var h=c.length;++l<h;){var f=c[l];if(Object(i.a)(f))try{f.unsubscribe()}catch(e){t=t||[],e instanceof s?t=t.concat(u(e.errors)):t.push(e)}}}if(t)throw new s(t)}},e.prototype.add=function(t){var r=t;if(!t)return e.EMPTY;switch(typeof t){case"function":r=new e(t);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof e)){var n=r;(r=new e)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof e){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[r]:o.push(r),r},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function u(e){return e.reduce((function(e,t){return e.concat(t instanceof s?t.errors:t)}),[])}},24:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;n=e},get useDeprecatedSynchronousErrorHandling(){return n}}},26:function(e,t,r){e.exports=r(450)()},293:function(e,t,r){"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,u=s(e),c=1;c<arguments.length;c++){for(var l in r=Object(arguments[c]))i.call(r,l)&&(u[l]=r[l]);if(n){a=n(r);for(var h=0;h<a.length;h++)o.call(r,a[h])&&(u[a[h]]=r[a[h]])}}return u}},39:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(4),i=r(7);function o(e,t){return function(r){return r.lift(new s(e,t))}}var s=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))},e}(),a=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return n.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(i.a)},4:function(e,t,r){"use strict";r.r(t),r.d(t,"__extends",(function(){return i})),r.d(t,"__assign",(function(){return o})),r.d(t,"__rest",(function(){return s})),r.d(t,"__decorate",(function(){return a})),r.d(t,"__param",(function(){return u})),r.d(t,"__metadata",(function(){return c})),r.d(t,"__awaiter",(function(){return l})),r.d(t,"__generator",(function(){return h})),r.d(t,"__createBinding",(function(){return f})),r.d(t,"__exportStar",(function(){return d})),r.d(t,"__values",(function(){return p})),r.d(t,"__read",(function(){return v})),r.d(t,"__spread",(function(){return y})),r.d(t,"__spreadArrays",(function(){return m})),r.d(t,"__await",(function(){return b})),r.d(t,"__asyncGenerator",(function(){return g})),r.d(t,"__asyncDelegator",(function(){return w})),r.d(t,"__asyncValues",(function(){return k})),r.d(t,"__makeTemplateObject",(function(){return _})),r.d(t,"__importStar",(function(){return P})),r.d(t,"__importDefault",(function(){return E})),r.d(t,"__classPrivateFieldGet",(function(){return C})),r.d(t,"__classPrivateFieldSet",(function(){return O})); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function a(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))}function h(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function d(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function m(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function g(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function k(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},449:function(e,t,r){"use strict"; +/** @license React v0.19.1 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var n,i,o,s,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,l=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(l,0),e}},h=Date.now();t.unstable_now=function(){return Date.now()-h},n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(l,0))},i=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},s=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,v=window.clearTimeout;if("undefined"!=typeof console){var y=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var m=d.now();t.unstable_now=function(){return d.now()-m}}var b=!1,g=null,w=-1,k=5,_=0;s=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):k=0<e?Math.floor(1e3/e):5};var P=new MessageChannel,E=P.port2;P.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();_=e+k;try{g(!0,e)?E.postMessage(null):(b=!1,g=null)}catch(e){throw E.postMessage(null),e}}else b=!1},n=function(e){g=e,b||(b=!0,E.postMessage(null))},i=function(e,r){w=p((function(){e(t.unstable_now())}),r)},o=function(){v(w),w=-1}}function C(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,i=e[n];if(!(void 0!==i&&0<S(i,t)))break e;e[n]=t,e[r]=i,r=n}}function O(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length;n<i;){var o=2*(n+1)-1,s=e[o],a=o+1,u=e[a];if(void 0!==s&&0>S(s,r))void 0!==u&&0>S(u,s)?(e[n]=u,e[a]=r,n=a):(e[n]=s,e[o]=r,n=o);else{if(!(void 0!==u&&0>S(u,r)))break e;e[n]=u,e[a]=r,n=a}}}return t}return null}function S(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var M=[],j=[],R=1,T=null,B=3,L=!1,D=!1,A=!1;function W(e){for(var t=O(j);null!==t;){if(null===t.callback)x(j);else{if(!(t.startTime<=e))break;x(j),t.sortIndex=t.expirationTime,C(M,t)}t=O(j)}}function I(e){if(A=!1,W(e),!D)if(null!==O(M))D=!0,n(N);else{var t=O(j);null!==t&&i(I,t.startTime-e)}}function N(e,r){D=!1,A&&(A=!1,o()),L=!0;var n=B;try{for(W(r),T=O(M);null!==T&&(!(T.expirationTime>r)||e&&!s());){var a=T.callback;if(null!==a){T.callback=null,B=T.priorityLevel;var u=a(T.expirationTime<=r);r=t.unstable_now(),"function"==typeof u?T.callback=u:T===O(M)&&x(M),W(r)}else x(M);T=O(M)}if(null!==T)var c=!0;else{var l=O(j);null!==l&&i(I,l.startTime-r),c=!1}return c}finally{T=null,B=n,L=!1}}function V(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var q=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||L||(D=!0,n(N))},t.unstable_getCurrentPriorityLevel=function(){return B},t.unstable_getFirstCallbackNode=function(){return O(M)},t.unstable_next=function(e){switch(B){case 1:case 2:case 3:var t=3;break;default:t=B}var r=B;B=t;try{return e()}finally{B=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=q,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=B;B=e;try{return t()}finally{B=r}},t.unstable_scheduleCallback=function(e,r,s){var a=t.unstable_now();if("object"==typeof s&&null!==s){var u=s.delay;u="number"==typeof u&&0<u?a+u:a,s="number"==typeof s.timeout?s.timeout:V(e)}else s=V(e),u=a;return e={id:R++,callback:r,priorityLevel:e,startTime:u,expirationTime:s=u+s,sortIndex:-1},u>a?(e.sortIndex=u,C(j,e),null===O(M)&&e===O(j)&&(A?o():A=!0,i(I,u-a))):(e.sortIndex=s,C(M,e),D||L||(D=!0,n(N))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();W(e);var r=O(M);return r!==T&&null!==T&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<T.expirationTime||s()},t.unstable_wrapCallback=function(e){var t=B;return function(){var r=B;B=t;try{return e.apply(this,arguments)}finally{B=r}}}},450:function(e,t,r){"use strict";var n=r(451);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},451:function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},46:function(e,t,r){"use strict";function n(e){return"function"==typeof e}r.d(t,"a",(function(){return n}))},5:function(e,t,r){var n; +/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},51:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},52:function(e,t,r){"use strict";function n(e){setTimeout((function(){throw e}),0)}r.d(t,"a",(function(){return n}))},60:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},637:function(e,t,r){"use strict";e.exports=r(449)},7:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(4),i=r(46),o=r(82),s=r(14),a=r(72),u=r(24),c=r(52),l=function(e){function t(r,n,i){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.a;break;case 1:if(!r){s.destination=o.a;break}if("object"==typeof r){r instanceof t?(s.syncErrorThrowable=r.syncErrorThrowable,s.destination=r,r.add(s)):(s.syncErrorThrowable=!0,s.destination=new h(s,r));break}default:s.syncErrorThrowable=!0,s.destination=new h(s,r,n,i)}return s}return n.__extends(t,e),t.prototype[a.a]=function(){return this},t.create=function(e,r,n){var i=new t(e,r,n);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(s.a),h=function(e){function t(t,r,n,s){var a,u=e.call(this)||this;u._parentSubscriber=t;var c=u;return Object(i.a)(r)?a=r:r&&(a=r.next,n=r.error,s=r.complete,r!==o.a&&(c=Object.create(r),Object(i.a)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=a,u._error=n,u._complete=s,u}return n.__extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,r=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)r&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)r?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(c.a)(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;Object(c.a)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var r=function(){return e._complete.call(e._context)};u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw e;Object(c.a)(e)}},t.prototype.__tryOrSetError=function(e,t,r){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,r)}catch(t){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(Object(c.a)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l)},72:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},792:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return h})),r.d(t,"c",(function(){return f}));class n{constructor(){this._vector=new Float32Array,this._position=0,this._frameCount=0}get vector(){return this._vector}get position(){return this._position}get startIndex(){return 2*this._position}get frameCount(){return this._frameCount}get endIndex(){return 2*(this._position+this._frameCount)}clear(){this.receive(this._frameCount),this.rewind()}put(e){this._frameCount+=e}putSamples(e,t,r=0){const n=2*(t=t||0);r>=0||(r=(e.length-n)/2);const i=2*r;this.ensureCapacity(r+this._frameCount);const o=this.endIndex;this.vector.set(e.subarray(n,n+i),o),this._frameCount+=r}putBuffer(e,t,r=0){t=t||0,r>=0||(r=e.frameCount-t),this.putSamples(e.vector,e.position+t,r)}receive(e){e>=0&&!(e>this._frameCount)||(e=this.frameCount),this._frameCount-=e,this._position+=e}receiveSamples(e,t=0){const r=2*t,n=this.startIndex;e.set(this._vector.subarray(n,n+r)),this.receive(t)}extract(e,t=0,r=0){const n=this.startIndex+2*t,i=2*r;e.set(this._vector.subarray(n,n+i))}ensureCapacity(e=0){const t=parseInt(2*e);if(this._vector.length<t){const e=new Float32Array(t);e.set(this._vector.subarray(this.startIndex,this.endIndex)),this._vector=e,this._position=0}else this.rewind()}ensureAdditionalCapacity(e=0){this.ensureCapacity(this._frameCount+e)}rewind(){this._position>0&&(this._vector.set(this._vector.subarray(this.startIndex,this.endIndex)),this._position=0)}}class i{constructor(e){e?(this._inputBuffer=new n,this._outputBuffer=new n):this._inputBuffer=this._outputBuffer=null}get inputBuffer(){return this._inputBuffer}set inputBuffer(e){this._inputBuffer=e}get outputBuffer(){return this._outputBuffer}set outputBuffer(e){this._outputBuffer=e}clear(){this._inputBuffer.clear(),this._outputBuffer.clear()}}class o extends i{constructor(e){super(e),this.reset(),this._rate=1}set rate(e){this._rate=e}reset(){this.slopeCount=0,this.prevSampleL=0,this.prevSampleR=0}clone(){const e=new o;return e.rate=this._rate,e}process(){const e=this._inputBuffer.frameCount;this._outputBuffer.ensureAdditionalCapacity(e/this._rate+1);const t=this.transpose(e);this._inputBuffer.receive(),this._outputBuffer.put(t)}transpose(e=0){if(0===e)return 0;const t=this._inputBuffer.vector,r=this._inputBuffer.startIndex,n=this._outputBuffer.vector,i=this._outputBuffer.endIndex;let o=0,s=0;for(;this.slopeCount<1;)n[i+2*s]=(1-this.slopeCount)*this.prevSampleL+this.slopeCount*t[r],n[i+2*s+1]=(1-this.slopeCount)*this.prevSampleR+this.slopeCount*t[r+1],s+=1,this.slopeCount+=this._rate;if(this.slopeCount-=1,1!==e)e:for(;;){for(;this.slopeCount>1;)if(this.slopeCount-=1,o+=1,o>=e-1)break e;const a=r+2*o;n[i+2*s]=(1-this.slopeCount)*t[a]+this.slopeCount*t[a+2],n[i+2*s+1]=(1-this.slopeCount)*t[a+1]+this.slopeCount*t[a+3],s+=1,this.slopeCount+=this._rate}return this.prevSampleL=t[r+2*e-2],this.prevSampleR=t[r+2*e-1],s}}const s=function(){};class a extends class{constructor(e){this._pipe=e}get pipe(){return this._pipe}get inputBuffer(){return this._pipe.inputBuffer}get outputBuffer(){return this._pipe.outputBuffer}fillInputBuffer(){throw new Error("fillInputBuffer() not overridden")}fillOutputBuffer(e=0){for(;this.outputBuffer.frameCount<e;){const e=16384-this.inputBuffer.frameCount;if(this.fillInputBuffer(e),this.inputBuffer.frameCount<16384)break;this._pipe.process()}}clear(){this._pipe.clear()}}{constructor(e,t,r=s){super(t),this.callback=r,this.sourceSound=e,this.historyBufferSize=22050,this._sourcePosition=0,this.outputBufferPosition=0,this._position=0}get position(){return this._position}set position(e){if(e>this._position)throw new RangeError("New position may not be greater than current position");const t=this.outputBufferPosition-(this._position-e);if(t<0)throw new RangeError("New position falls outside of history buffer");this.outputBufferPosition=t,this._position=e}get sourcePosition(){return this._sourcePosition}set sourcePosition(e){this.clear(),this._sourcePosition=e}onEnd(){this.callback()}fillInputBuffer(e=0){const t=new Float32Array(2*e),r=this.sourceSound.extract(t,e,this._sourcePosition);this._sourcePosition+=r,this.inputBuffer.putSamples(t,0,r)}extract(e,t=0){this.fillOutputBuffer(this.outputBufferPosition+t);const r=Math.min(t,this.outputBuffer.frameCount-this.outputBufferPosition);this.outputBuffer.extract(e,this.outputBufferPosition,r);const n=this.outputBufferPosition+r;return this.outputBufferPosition=Math.min(this.historyBufferSize,n),this.outputBuffer.receive(Math.max(n-this.historyBufferSize,0)),this._position+=r,r}handleSampleData(e){this.extract(e.data,4096)}clear(){super.clear(),this.outputBufferPosition=0}}const u=[[124,186,248,310,372,434,496,558,620,682,744,806,868,930,992,1054,1116,1178,1240,1302,1364,1426,1488,0],[-100,-75,-50,-25,25,50,75,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-20,-15,-10,-5,5,10,15,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-4,-3,-2,-1,1,2,3,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]];class c extends i{constructor(e){super(e),this._quickSeek=!0,this.midBufferDirty=!1,this.midBuffer=null,this.overlapLength=0,this.autoSeqSetting=!0,this.autoSeekSetting=!0,this._tempo=1,this.setParameters(44100,0,0,8)}clear(){super.clear(),this.clearMidBuffer()}clearMidBuffer(){this.midBufferDirty&&(this.midBufferDirty=!1,this.midBuffer=null)}setParameters(e,t,r,n){e>0&&(this.sampleRate=e),n>0&&(this.overlapMs=n),t>0?(this.sequenceMs=t,this.autoSeqSetting=!1):this.autoSeqSetting=!0,r>0?(this.seekWindowMs=r,this.autoSeekSetting=!1):this.autoSeekSetting=!0,this.calculateSequenceParameters(),this.calculateOverlapLength(this.overlapMs),this.tempo=this._tempo}set tempo(e){let t;this._tempo=e,this.calculateSequenceParameters(),this.nominalSkip=this._tempo*(this.seekWindowLength-this.overlapLength),this.skipFract=0,t=Math.floor(this.nominalSkip+.5),this.sampleReq=Math.max(t+this.overlapLength,this.seekWindowLength)+this.seekLength}get tempo(){return this._tempo}get inputChunkSize(){return this.sampleReq}get outputChunkSize(){return this.overlapLength+Math.max(0,this.seekWindowLength-2*this.overlapLength)}calculateOverlapLength(e=0){let t;t=this.sampleRate*e/1e3,t=t<16?16:t,t-=t%8,this.overlapLength=t,this.refMidBuffer=new Float32Array(2*this.overlapLength),this.midBuffer=new Float32Array(2*this.overlapLength)}checkLimits(e,t,r){return e<t?t:e>r?r:e}calculateSequenceParameters(){let e,t;this.autoSeqSetting&&(e=150+-50*this._tempo,e=this.checkLimits(e,50,125),this.sequenceMs=Math.floor(e+.5)),this.autoSeekSetting&&(t=25- -10/1.5*.5+-10/1.5*this._tempo,t=this.checkLimits(t,15,25),this.seekWindowMs=Math.floor(t+.5)),this.seekWindowLength=Math.floor(this.sampleRate*this.sequenceMs/1e3),this.seekLength=Math.floor(this.sampleRate*this.seekWindowMs/1e3)}set quickSeek(e){this._quickSeek=e}clone(){const e=new c;return e.tempo=this._tempo,e.setParameters(this.sampleRate,this.sequenceMs,this.seekWindowMs,this.overlapMs),e}seekBestOverlapPosition(){return this._quickSeek?this.seekBestOverlapPositionStereoQuick():this.seekBestOverlapPositionStereo()}seekBestOverlapPositionStereo(){let e,t,r,n=0;for(this.preCalculateCorrelationReferenceStereo(),e=0,t=Number.MIN_VALUE;n<this.seekLength;n+=1)r=this.calculateCrossCorrelationStereo(2*n,this.refMidBuffer),r>t&&(t=r,e=n);return e}seekBestOverlapPositionStereoQuick(){let e,t,r,n,i,o=0;for(this.preCalculateCorrelationReferenceStereo(),t=Number.MIN_VALUE,e=0,n=0,i=0;o<4;o+=1){let s=0;for(;u[o][s]&&(i=n+u[o][s],!(i>=this.seekLength));)r=this.calculateCrossCorrelationStereo(2*i,this.refMidBuffer),r>t&&(t=r,e=i),s+=1;n=e}return e}preCalculateCorrelationReferenceStereo(){let e,t,r=0;for(;r<this.overlapLength;r+=1)t=r*(this.overlapLength-r),e=2*r,this.refMidBuffer[e]=this.midBuffer[e]*t,this.refMidBuffer[e+1]=this.midBuffer[e+1]*t}calculateCrossCorrelationStereo(e,t){const r=this._inputBuffer.vector;e+=this._inputBuffer.startIndex;let n=0,i=2;const o=2*this.overlapLength;let s;for(;i<o;i+=2)s=i+e,n+=r[s]*t[i]+r[s+1]*t[i+1];return n}overlap(e){this.overlapStereo(2*e)}overlapStereo(e){const t=this._inputBuffer.vector;e+=this._inputBuffer.startIndex;const r=this._outputBuffer.vector,n=this._outputBuffer.endIndex;let i,o,s=0;const a=1/this.overlapLength;let u,c,l;for(;s<this.overlapLength;s+=1)o=(this.overlapLength-s)*a,u=s*a,i=2*s,c=i+e,l=i+n,r[l+0]=t[c+0]*u+this.midBuffer[i+0]*o,r[l+1]=t[c+1]*u+this.midBuffer[i+1]*o}process(){let e,t,r;if(null===this.midBuffer){if(this._inputBuffer.frameCount<this.overlapLength)return;this.midBuffer=new Float32Array(2*this.overlapLength),this._inputBuffer.receiveSamples(this.midBuffer,this.overlapLength)}for(;this._inputBuffer.frameCount>=this.sampleReq;){e=this.seekBestOverlapPosition(),this._outputBuffer.ensureAdditionalCapacity(this.overlapLength),this.overlap(Math.floor(e)),this._outputBuffer.put(this.overlapLength),t=this.seekWindowLength-2*this.overlapLength,t>0&&this._outputBuffer.putBuffer(this._inputBuffer,e+this.overlapLength,t);const n=this._inputBuffer.startIndex+2*(e+this.seekWindowLength-this.overlapLength);this.midBuffer.set(this._inputBuffer.vector.subarray(n,n+2*this.overlapLength)),this.skipFract+=this.nominalSkip,r=Math.floor(this.skipFract),this.skipFract-=r,this._inputBuffer.receive(r)}}}const l=function(e,t){return(e>t?e-t:t-e)>1e-10};class h{constructor(){this.transposer=new o(!1),this.stretch=new c(!1),this._inputBuffer=new n,this._intermediateBuffer=new n,this._outputBuffer=new n,this._rate=0,this._tempo=0,this.virtualPitch=1,this.virtualRate=1,this.virtualTempo=1,this.calculateEffectiveRateAndTempo()}clear(){this.transposer.clear(),this.stretch.clear()}clone(){const e=new h;return e.rate=this.rate,e.tempo=this.tempo,e}get rate(){return this._rate}set rate(e){this.virtualRate=e,this.calculateEffectiveRateAndTempo()}set rateChange(e){this._rate=1+.01*e}get tempo(){return this._tempo}set tempo(e){this.virtualTempo=e,this.calculateEffectiveRateAndTempo()}set tempoChange(e){this.tempo=1+.01*e}set pitch(e){this.virtualPitch=e,this.calculateEffectiveRateAndTempo()}set pitchOctaves(e){this.pitch=Math.exp(.69314718056*e),this.calculateEffectiveRateAndTempo()}set pitchSemitones(e){this.pitchOctaves=e/12}get inputBuffer(){return this._inputBuffer}get outputBuffer(){return this._outputBuffer}calculateEffectiveRateAndTempo(){const e=this._tempo,t=this._rate;this._tempo=this.virtualTempo/this.virtualPitch,this._rate=this.virtualRate*this.virtualPitch,l(this._tempo,e)&&(this.stretch.tempo=this._tempo),l(this._rate,t)&&(this.transposer.rate=this._rate),this._rate>1?this._outputBuffer!=this.transposer.outputBuffer&&(this.stretch.inputBuffer=this._inputBuffer,this.stretch.outputBuffer=this._intermediateBuffer,this.transposer.inputBuffer=this._intermediateBuffer,this.transposer.outputBuffer=this._outputBuffer):this._outputBuffer!=this.stretch.outputBuffer&&(this.transposer.inputBuffer=this._inputBuffer,this.transposer.outputBuffer=this._intermediateBuffer,this.stretch.inputBuffer=this._intermediateBuffer,this.stretch.outputBuffer=this._outputBuffer)}process(){this._rate>1?(this.stretch.process(),this.transposer.process()):(this.transposer.process(),this.stretch.process())}}const f=function(e,t,r=s,n=4096){const i=e.createScriptProcessor(n,2,2),o=new Float32Array(2*n);return i.onaudioprocess=e=>{let i=e.outputBuffer.getChannelData(0),s=e.outputBuffer.getChannelData(1),a=t.extract(o,n);r(t.sourcePosition),0===a&&t.onEnd();let u=0;for(;u<a;u++)i[u]=o[2*u],s[u]=o[2*u+1]},i}},8:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(7);var i=r(72),o=r(82);var s=r(51),a=r(120);function u(e){return 0===e.length?a.a:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var c=r(24),l=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var s=this.operator,a=function(e,t,r){if(e){if(e instanceof n.a)return e;if(e[i.a])return e[i.a]()}return e||t||r?new n.a(e,t,r):new n.a(o.a)}(e,t,r);if(s?a.add(s.call(a,this.source)):a.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,r=t.closed,i=t.destination,o=t.isStopped;if(r||o)return!1;e=i&&i instanceof n.a?i:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=h(t))((function(t,n){var i;i=r.subscribe((function(t){try{e(t)}catch(e){n(e),i&&i.unsubscribe()}}),n,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[s.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:u(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=h(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function h(e){if(e||(e=c.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},81:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(8),i=r(60),o=r(46),s=r(10);function a(e,t,r){return r?a(e,t).pipe(Object(s.a)((function(e){return Object(i.a)(e)?r.apply(void 0,e):r(e)}))):new n.a((function(r){var n,i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.next(1===e.length?e[0]:e)};try{n=e(i)}catch(e){return void r.error(e)}if(Object(o.a)(t))return function(){return t(i,n)}}))}},82:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(24),i=r(52),o={closed:!0,next:function(e){},error:function(e){if(n.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/22.d4d5f7fa.js b/plugins/saladict-ztools/ext-saladic/assets/22.d4d5f7fa.js deleted file mode 100644 index fb5adc22..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/22.d4d5f7fa.js +++ /dev/null @@ -1,9 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[22],{1e3:function(e,t){function r(){this.buffer=new Array,this.length=0}r.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=r},1001:function(e,t,r){var n=r(858),o=r(860),i=r(861),s=0,a=1,u=2,c=3,l=4,f=5,d=6,h=7,p={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;p.getBCHDigit(t)-p.getBCHDigit(p.G15)>=0;)t^=p.G15<<p.getBCHDigit(t)-p.getBCHDigit(p.G15);return(e<<10|t)^p.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;p.getBCHDigit(t)-p.getBCHDigit(p.G18)>=0;)t^=p.G18<<p.getBCHDigit(t)-p.getBCHDigit(p.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return p.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case s:return(t+r)%2==0;case a:return t%2==0;case u:return r%3==0;case c:return(t+r)%3==0;case l:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case f:return t*r%2+t*r%3==0;case d:return(t*r%2+t*r%3)%2==0;case h:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new o([1],0),r=0;r<e;r++)t=t.multiply(new o([1,i.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n++)for(var o=0;o<t;o++){for(var i=0,s=e.isDark(n,o),a=-1;a<=1;a++)if(!(n+a<0||t<=n+a))for(var u=-1;u<=1;u++)o+u<0||t<=o+u||0==a&&0==u||s==e.isDark(n+a,o+u)&&i++;i>5&&(r+=3+i-5)}for(n=0;n<t-1;n++)for(o=0;o<t-1;o++){var c=0;e.isDark(n,o)&&c++,e.isDark(n+1,o)&&c++,e.isDark(n,o+1)&&c++,e.isDark(n+1,o+1)&&c++,0!=c&&4!=c||(r+=3)}for(n=0;n<t;n++)for(o=0;o<t-6;o++)e.isDark(n,o)&&!e.isDark(n,o+1)&&e.isDark(n,o+2)&&e.isDark(n,o+3)&&e.isDark(n,o+4)&&!e.isDark(n,o+5)&&e.isDark(n,o+6)&&(r+=40);for(o=0;o<t;o++)for(n=0;n<t-6;n++)e.isDark(n,o)&&!e.isDark(n+1,o)&&e.isDark(n+2,o)&&e.isDark(n+3,o)&&e.isDark(n+4,o)&&!e.isDark(n+5,o)&&e.isDark(n+6,o)&&(r+=40);var l=0;for(o=0;o<t;o++)for(n=0;n<t;n++)e.isDark(n,o)&&l++;return r+=10*(Math.abs(100*l/t/t-50)/5)}};e.exports=p},131:function(e,t,r){e.exports=window.axios},383:function(e,t,r){var n; -/*! - * UAParser.js v0.7.21 - * Lightweight JavaScript-based User-Agent string parser - * https://github.com/faisalman/ua-parser-js - * - * Copyright © 2012-2019 Faisal Salman <f@faisalman.com> - * Licensed under MIT License - */!function(o,i){"use strict";var s="model",a="name",u="type",c="vendor",l="version",f="mobile",d="tablet",h="smarttv",p={extend:function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},m={rgx:function(e,t){for(var r,n,o,i,s,a,u=0;u<t.length&&!s;){var c=t[u],l=t[u+1];for(r=n=0;r<c.length&&!s;)if(s=c[r++].exec(e))for(o=0;o<l.length;o++)a=s[++n],"object"==typeof(i=l[o])&&i.length>0?2==i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,a):this[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=a?a.replace(i[1],i[2]):void 0:this[i[0]]=a?i[1].call(this,a,i[2]):void 0:4==i.length&&(this[i[0]]=a?i[3].call(this,a.replace(i[1],i[2])):void 0):this[i]=a||void 0;u+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(p.has(t[r][n],e))return"?"===r?void 0:r}else if(p.has(t[r],e))return"?"===r?void 0:r;return e}},g={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},w={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[a,l],[/(opios)[\/\s]+([\w\.]+)/i],[[a,"Opera Mini"],l],[/\s(opr)\/([\w\.]+)/i],[[a,"Opera"],l],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[a,l],[/(konqueror)\/([\w\.]+)/i],[[a,"Konqueror"],l],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[a,"IE"],l],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[a,"Edge"],l],[/(yabrowser)\/([\w\.]+)/i],[[a,"Yandex"],l],[/(Avast)\/([\w\.]+)/i],[[a,"Avast Secure Browser"],l],[/(AVG)\/([\w\.]+)/i],[[a,"AVG Secure Browser"],l],[/(puffin)\/([\w\.]+)/i],[[a,"Puffin"],l],[/(focus)\/([\w\.]+)/i],[[a,"Firefox Focus"],l],[/(opt)\/([\w\.]+)/i],[[a,"Opera Touch"],l],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[a,"UCBrowser"],l],[/(comodo_dragon)\/([\w\.]+)/i],[[a,/_/g," "],l],[/(windowswechat qbcore)\/([\w\.]+)/i],[[a,"WeChat(Win) Desktop"],l],[/(micromessenger)\/([\w\.]+)/i],[[a,"WeChat"],l],[/(brave)\/([\w\.]+)/i],[[a,"Brave"],l],[/(qqbrowserlite)\/([\w\.]+)/i],[a,l],[/(QQ)\/([\d\.]+)/i],[a,l],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[a,l],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[a,l],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[a,l],[/(MetaSr)[\/\s]?([\w\.]+)/i],[a],[/(LBBROWSER)/i],[a],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[l,[a,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[l,[a,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[a,l],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[l,[a,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[a,/(.+)/,"$1 WebView"],l],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[a,/(.+(?:g|us))(.+)/,"$1 $2"],l],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[l,[a,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[a,"Sailfish Browser"],l],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[a,l],[/(dolfin)\/([\w\.]+)/i],[[a,"Dolphin"],l],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[a,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[a,"Chrome"],l],[/(coast)\/([\w\.]+)/i],[[a,"Opera Coast"],l],[/fxios\/([\w\.-]+)/i],[l,[a,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[l,[a,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[l,a],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[a,"GSA"],l],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[a,[l,m.str,g.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[a,l],[/(navigator|netscape)\/([\w\.-]+)/i],[[a,"Netscape"],l],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[a,l]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",p.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",p.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",p.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[s,c,[u,d]],[/applecoremedia\/[\w\.]+ \((ipad)/],[s,[c,"Apple"],[u,d]],[/(apple\s{0,1}tv)/i],[[s,"Apple TV"],[c,"Apple"],[u,h]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[c,s,[u,d]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[s,[c,"Amazon"],[u,d]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[s,m.str,g.device.amazon.model],[c,"Amazon"],[u,f]],[/android.+aft([bms])\sbuild/i],[s,[c,"Amazon"],[u,h]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[s,c,[u,f]],[/\((ip[honed|\s\w*]+);/i],[s,[c,"Apple"],[u,f]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[c,s,[u,f]],[/\(bb10;\s(\w+)/i],[s,[c,"BlackBerry"],[u,f]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[s,[c,"Asus"],[u,d]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[c,"Sony"],[s,"Xperia Tablet"],[u,d]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[c,"Sony"],[u,f]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[c,s,[u,"console"]],[/android.+;\s(shield)\sbuild/i],[s,[c,"Nvidia"],[u,"console"]],[/(playstation\s[34portablevi]+)/i],[s,[c,"Sony"],[u,"console"]],[/(sprint\s(\w+))/i],[[c,m.str,g.device.sprint.vendor],[s,m.str,g.device.sprint.model],[u,f]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[c,[s,/_/g," "],[u,f]],[/(nexus\s9)/i],[s,[c,"HTC"],[u,d]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[s,[c,"Huawei"],[u,f]],[/android.+(bah2?-a?[lw]\d{2})/i],[s,[c,"Huawei"],[u,d]],[/(microsoft);\s(lumia[\s\w]+)/i],[c,s,[u,f]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[s,[c,"Microsoft"],[u,"console"]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[c,"Microsoft"],[u,f]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[s,[c,"Motorola"],[u,f]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[s,[c,"Motorola"],[u,d]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[c,p.trim],[s,p.trim],[u,h]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[c,"Samsung"],[u,h]],[/\(dtv[\);].+(aquos)/i],[s,[c,"Sharp"],[u,h]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[c,"Samsung"],s,[u,d]],[/smart-tv.+(samsung)/i],[c,[u,h],s],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[c,"Samsung"],s,[u,f]],[/sie-(\w*)/i],[s,[c,"Siemens"],[u,f]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[c,"Nokia"],s,[u,f]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[s,[c,"Acer"],[u,d]],[/android.+([vl]k\-?\d{3})\s+build/i],[s,[c,"LG"],[u,d]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[c,"LG"],s,[u,d]],[/(lg) netcast\.tv/i],[c,s,[u,h]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[s,[c,"LG"],[u,f]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[c,s,[u,d]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[s,[c,"Lenovo"],[u,d]],[/(lenovo)[_\s-]?([\w-]+)/i],[c,s,[u,f]],[/linux;.+((jolla));/i],[c,s,[u,f]],[/((pebble))app\/[\d\.]+\s/i],[c,s,[u,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[c,s,[u,f]],[/crkey/i],[[s,"Chromecast"],[c,"Google"],[u,h]],[/android.+;\s(glass)\s\d/i],[s,[c,"Google"],[u,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[s,[c,"Google"],[u,d]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[s,[c,"Google"],[u,f]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[s,/_/g," "],[c,"Xiaomi"],[u,f]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[s,/_/g," "],[c,"Xiaomi"],[u,d]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[s,[c,"Meizu"],[u,f]],[/(mz)-([\w-]{2,})/i],[[c,"Meizu"],s,[u,f]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[s,[c,"OnePlus"],[u,f]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[s,[c,"RCA"],[u,d]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[s,[c,"Dell"],[u,d]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[s,[c,"Verizon"],[u,d]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[c,"Barnes & Noble"],s,[u,d]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[s,[c,"NuVision"],[u,d]],[/android.+;\s(k88)\sbuild/i],[s,[c,"ZTE"],[u,d]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[s,[c,"Swiss"],[u,f]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[s,[c,"Swiss"],[u,d]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[s,[c,"Zeki"],[u,d]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[c,"Dragon Touch"],s,[u,d]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[s,[c,"Insignia"],[u,d]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[s,[c,"NextBook"],[u,d]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[c,"Voice"],s,[u,f]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[c,"LvTel"],s,[u,f]],[/android.+;\s(PH-1)\s/i],[s,[c,"Essential"],[u,f]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[s,[c,"Envizen"],[u,d]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[c,s,[u,d]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[s,[c,"MachSpeed"],[u,d]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[c,s,[u,d]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[s,[c,"Rotor"],[u,d]],[/android.+(KS(.+))\s+build/i],[s,[c,"Amazon"],[u,d]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[c,s,[u,d]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[u,p.lowerize],c,s],[/[\s\/\(](smart-?tv)[;\)]/i],[[u,h]],[/(android[\w\.\s\-]{0,9});.+build/i],[s,[c,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[l,[a,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[a,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[a,l],[/rv\:([\w\.]{1,9}).+(gecko)/i],[l,a]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[a,l],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[a,[l,m.str,g.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[a,"Windows"],[l,m.str,g.os.windows.version]],[/\((bb)(10);/i],[[a,"BlackBerry"],l],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[a,l],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[a,"Symbian"],l],[/\((series40);/i],[a],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[a,"Firefox OS"],l],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[a,l],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[a,"Chromium OS"],l],[/(sunos)\s?([\w\.\d]*)/i],[[a,"Solaris"],l],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[a,l],[/(haiku)\s(\w+)/i],[a,l],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[l,/_/g,"."],[a,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[a,"Mac OS"],[l,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[a,l]]},v=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof v))return new v(e,t).getResult();var r=e||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),n=t?p.extend(w,t):w;return this.getBrowser=function(){var e={name:void 0,version:void 0};return m.rgx.call(e,r,n.browser),e.major=p.major(e.version),e},this.getCPU=function(){var e={architecture:void 0};return m.rgx.call(e,r,n.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return m.rgx.call(e,r,n.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return m.rgx.call(e,r,n.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return m.rgx.call(e,r,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=e,this},this};v.VERSION="0.7.21",v.BROWSER={NAME:a,MAJOR:"major",VERSION:l},v.CPU={ARCHITECTURE:"architecture"},v.DEVICE={MODEL:s,VENDOR:c,TYPE:u,CONSOLE:"console",MOBILE:f,SMARTTV:h,TABLET:d,WEARABLE:"wearable",EMBEDDED:"embedded"},v.ENGINE={NAME:a,VERSION:l},v.OS={NAME:a,VERSION:l},void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=v),t.UAParser=v):void 0===(n=function(){return v}.call(t,r,t,e))||(e.exports=n);var b=o&&(o.jQuery||o.Zepto);if(b&&!b.ua){var y=new v;b.ua=y.getResult(),b.ua.get=function(){return y.getUA()},b.ua.set=function(e){y.setUA(e);var t=y.getResult();for(var r in t)b.ua[r]=t[r]}}}("object"==typeof window?window:this)},384:function(e,t,r){var n=r(612),o=r(613);e.exports=function(e,t,r){var i=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||n)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[i+a]=s[a];return t||o(s)}},480:function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},481:function(e,t,r){"use strict";var n=r(92);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var s=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},482:function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},483:function(e,t,r){"use strict";var n=r(92),o=r(601),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var a,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(a=r(484)),a),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(i)})),e.exports=u},484:function(e,t,r){"use strict";var n=r(92),o=r(602),i=r(481),s=r(604),a=r(607),u=r(608),c=r(485);e.exports=function(e){return new Promise((function(t,l){var f=e.data,d=e.headers;n.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",m=e.auth.password||"";d.Authorization="Basic "+btoa(p+":"+m)}var g=s(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),i(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,l,n),h=null}},h.onabort=function(){h&&(l(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){l(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),l(c(t,e,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var w=r(609),v=(e.withCredentials||u(g))&&e.xsrfCookieName?w.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in h&&n.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),l(e),h=null)})),void 0===f&&(f=null),h.send(f)}))}},485:function(e,t,r){"use strict";var n=r(603);e.exports=function(e,t,r,o,i){var s=new Error(e);return n(s,t,r,o,i)}},486:function(e,t,r){"use strict";var n=r(92);e.exports=function(e,t){t=t||{};var r={},o=["url","method","params","data"],i=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(o,(function(e){void 0!==t[e]&&(r[e]=t[e])})),n.forEach(i,(function(o){n.isObject(t[o])?r[o]=n.deepMerge(e[o],t[o]):void 0!==t[o]?r[o]=t[o]:n.isObject(e[o])?r[o]=n.deepMerge(e[o]):void 0!==e[o]&&(r[o]=e[o])})),n.forEach(s,(function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])}));var a=o.concat(i).concat(s),u=Object.keys(t).filter((function(e){return-1===a.indexOf(e)}));return n.forEach(u,(function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])})),r}},487:function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},596:function(e,t,r){"use strict";var n=r(92),o=r(480),i=r(597),s=r(486);function a(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var u=a(r(483));u.Axios=i,u.create=function(e){return a(s(u.defaults,e))},u.Cancel=r(487),u.CancelToken=r(610),u.isCancel=r(482),u.all=function(e){return Promise.all(e)},u.spread=r(611),e.exports=u,e.exports.default=u},597:function(e,t,r){"use strict";var n=r(92),o=r(481),i=r(598),s=r(599),a=r(486);function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[s,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)r=r.then(t.shift(),t.shift());return r},u.prototype.getUri=function(e){return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,r){return this.request(n.merge(r||{},{method:e,url:t}))}})),n.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,r,o){return this.request(n.merge(o||{},{method:e,url:t,data:r}))}})),e.exports=u},598:function(e,t,r){"use strict";var n=r(92);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},599:function(e,t,r){"use strict";var n=r(92),o=r(600),i=r(482),s=r(483);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return a(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(a(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},600:function(e,t,r){"use strict";var n=r(92);e.exports=function(e,t,r){return n.forEach(r,(function(r){e=r(e,t)})),e}},601:function(e,t,r){"use strict";var n=r(92);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},602:function(e,t,r){"use strict";var n=r(485);e.exports=function(e,t,r){var o=r.config.validateStatus;!o||o(r.status)?e(r):t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},603:function(e,t,r){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},604:function(e,t,r){"use strict";var n=r(605),o=r(606);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},605:function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},606:function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},607:function(e,t,r){"use strict";var n=r(92),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,s={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},608:function(e,t,r){"use strict";var n=r(92);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},609:function(e,t,r){"use strict";var n=r(92);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},610:function(e,t,r){"use strict";var n=r(487);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},611:function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},612:function(e,t){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},613:function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,o=r;return[o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]]].join("")}},858:function(e,t){e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},859:function(e,t){e.exports={L:1,M:0,Q:3,H:2}},860:function(e,t,r){var n=r(861);function o(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var r=0;r<e.length&&0==e[r];)r++;this.num=new Array(e.length-r+t);for(var n=0;n<e.length-r;n++)this.num[n]=e[n+r]}o.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var i=0;i<e.getLength();i++)t[r+i]^=n.gexp(n.glog(this.get(r))+n.glog(e.get(i)));return new o(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=n.glog(this.get(0))-n.glog(e.get(0)),r=new Array(this.getLength()),i=0;i<this.getLength();i++)r[i]=this.get(i);for(i=0;i<e.getLength();i++)r[i]^=n.gexp(n.glog(e.get(i))+t);return new o(r,0).mod(e)}},e.exports=o},861:function(e,t){for(var r={glog:function(e){if(e<1)throw new Error("glog("+e+")");return r.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return r.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)r.EXP_TABLE[n]=1<<n;for(n=8;n<256;n++)r.EXP_TABLE[n]=r.EXP_TABLE[n-4]^r.EXP_TABLE[n-5]^r.EXP_TABLE[n-6]^r.EXP_TABLE[n-8];for(n=0;n<255;n++)r.LOG_TABLE[r.EXP_TABLE[n]]=n;e.exports=r},92:function(e,t,r){"use strict";var n=r(480),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isUndefined:s,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return a(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]=r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return t},deepMerge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]="object"==typeof r?e({},r):r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return t},extend:function(e,t,r){return c(t,(function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},926:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){m(e,t,r[t])}))}return e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?p(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=r(0),w=r(26),v=r(997),b=r(859);function y(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t+=String.fromCharCode(n):n<2048?(t+=String.fromCharCode(192|n>>6),t+=String.fromCharCode(128|63&n)):n<55296||n>=57344?(t+=String.fromCharCode(224|n>>12),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|63&n)):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t+=String.fromCharCode(240|n>>18),t+=String.fromCharCode(128|n>>12&63),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|63&n))}return t}var C={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},E={value:w.string.isRequired,size:w.number,level:w.oneOf(["L","M","Q","H"]),bgColor:w.string,fgColor:w.string,includeMargin:w.bool};function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[];return e.forEach((function(e,n){var o=null;e.forEach((function(i,s){if(!i&&null!==o)return r.push("M".concat(o+t," ").concat(n+t,"h").concat(s-o,"v1H").concat(o+t,"z")),void(o=null);if(s!==e.length-1)i&&null===o&&(o=s);else{if(!i)return;null===o?r.push("M".concat(s+t,",").concat(n+t," h1v1H").concat(s+t,"z")):r.push("M".concat(o+t,",").concat(n+t," h").concat(s+1-o,"v1H").concat(o+t,"z"))}}))})),r.join("")}var A=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),k=function(e){function t(){var e,r;a(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return m(p(p(r=l(this,(e=f(t)).call.apply(e,[this].concat(o))))),"_canvas",void 0),r}return d(t,e),c(t,[{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var e=this.props,t=e.value,r=e.size,n=e.level,o=e.bgColor,i=e.fgColor,s=e.includeMargin,a=new v(-1,b[n]);if(a.addData(y(t)),a.make(),null!=this._canvas){var u=this._canvas,c=u.getContext("2d");if(!c)return;var l=a.modules;if(null===l)return;var f=s?4:0,d=l.length+2*f,h=window.devicePixelRatio||1;u.height=u.width=r*h;var p=r/d*h;c.scale(p,p),c.fillStyle=o,c.fillRect(0,0,d,d),c.fillStyle=i,A?c.fill(new Path2D(x(l,f))):l.forEach((function(e,t){e.forEach((function(e,r){e&&c.fillRect(r+f,t+f,1,1)}))}))}}},{key:"render",value:function(){var e=this,t=this.props,r=(t.value,t.size),n=(t.level,t.bgColor,t.fgColor,t.style),a=(t.includeMargin,s(t,["value","size","level","bgColor","fgColor","style","includeMargin"])),u=i({height:r,width:r},n);return g.createElement("canvas",o({style:u,height:r,width:r,ref:function(t){return e._canvas=t}},a))}}]),t}(g.PureComponent);m(k,"defaultProps",C),m(k,"propTypes",E);var T=function(e){function t(){return a(this,t),l(this,f(t).apply(this,arguments))}return d(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.value,r=e.size,n=e.level,i=e.bgColor,a=e.fgColor,u=e.includeMargin,c=s(e,["value","size","level","bgColor","fgColor","includeMargin"]),l=new v(-1,b[n]);l.addData(y(t)),l.make();var f=l.modules;if(null===f)return null;var d=u?4:0,h=x(f,d),p=f.length+2*d;return g.createElement("svg",o({shapeRendering:"crispEdges",height:r,width:r,viewBox:"0 0 ".concat(p," ").concat(p)},c),g.createElement("path",{fill:i,d:"M0,0 h".concat(p,"v").concat(p,"H0z")}),g.createElement("path",{fill:a,d:h}))}}]),t}(g.PureComponent);m(T,"defaultProps",C),m(T,"propTypes",E);var B=function(e){var t=e.renderAs,r=s(e,["renderAs"]),n="svg"===t?T:k;return g.createElement(n,r)};B.defaultProps=i({renderAs:"canvas"},C),e.exports=B},997:function(e,t,r){var n=r(998),o=r(999),i=r(1e3),s=r(1001),a=r(860);function u(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var c=u.prototype;c.addData=function(e){var t=new n(e);this.dataList.push(t),this.dataCache=null},c.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},c.getModuleCount=function(){return this.moduleCount},c.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=o.getRSBlocks(e,this.errorCorrectLevel),r=new i,n=0,a=0;a<t.length;a++)n+=t[a].dataCount;for(a=0;a<this.dataList.length;a++){var u=this.dataList[a];r.put(u.mode,4),r.put(u.getLength(),s.getLengthInBits(u.mode,e)),u.write(r)}if(r.getLengthInBits()<=8*n)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},c.makeImpl=function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=u.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},c.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},c.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=s.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},c.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var o=0;o<this.modules.length;o++)for(var i=1*o,s=0;s<this.modules[o].length;s++){var a=1*s;this.modules[o][s]&&(n.beginFill(0,100),n.moveTo(a,i),n.lineTo(a+1,i),n.lineTo(a+1,i+1),n.lineTo(a,i+1),n.endFill())}return n},c.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},c.setupPositionAdjustPattern=function(){for(var e=s.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var r=0;r<e.length;r++){var n=e[t],o=e[r];if(null==this.modules[n][o])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)this.modules[n+i][o+a]=-2==i||2==i||-2==a||2==a||0==i&&0==a}},c.setupTypeNumber=function(e){for(var t=s.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!e&&1==(t>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},c.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=s.getBCHTypeInfo(r),o=0;o<15;o++){var i=!e&&1==(n>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!e&&1==(n>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},c.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var u=0;u<2;u++)if(null==this.modules[n][a-u]){var c=!1;i<e.length&&(c=1==(e[i]>>>o&1)),s.getMask(t,n,a-u)&&(c=!c),this.modules[n][a-u]=c,-1==--o&&(i++,o=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},u.PAD0=236,u.PAD1=17,u.createData=function(e,t,r){for(var n=o.getRSBlocks(e,t),a=new i,c=0;c<r.length;c++){var l=r[c];a.put(l.mode,4),a.put(l.getLength(),s.getLengthInBits(l.mode,e)),l.write(a)}var f=0;for(c=0;c<n.length;c++)f+=n[c].dataCount;if(a.getLengthInBits()>8*f)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*f+")");for(a.getLengthInBits()+4<=8*f&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*f||(a.put(u.PAD0,8),a.getLengthInBits()>=8*f));)a.put(u.PAD1,8);return u.createBytes(a,n)},u.createBytes=function(e,t){for(var r=0,n=0,o=0,i=new Array(t.length),u=new Array(t.length),c=0;c<t.length;c++){var l=t[c].dataCount,f=t[c].totalCount-l;n=Math.max(n,l),o=Math.max(o,f),i[c]=new Array(l);for(var d=0;d<i[c].length;d++)i[c][d]=255&e.buffer[d+r];r+=l;var h=s.getErrorCorrectPolynomial(f),p=new a(i[c],h.getLength()-1).mod(h);u[c]=new Array(h.getLength()-1);for(d=0;d<u[c].length;d++){var m=d+p.getLength()-u[c].length;u[c][d]=m>=0?p.get(m):0}}var g=0;for(d=0;d<t.length;d++)g+=t[d].totalCount;var w=new Array(g),v=0;for(d=0;d<n;d++)for(c=0;c<t.length;c++)d<i[c].length&&(w[v++]=i[c][d]);for(d=0;d<o;d++)for(c=0;c<t.length;c++)d<u[c].length&&(w[v++]=u[c][d]);return w},e.exports=u},998:function(e,t,r){var n=r(858);function o(e){this.mode=n.MODE_8BIT_BYTE,this.data=e}o.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},e.exports=o},999:function(e,t,r){var n=r(859);function o(e,t){this.totalCount=e,this.dataCount=t}o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(e,t){var r=o.getRsBlockTable(e,t);if(null==r)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var n=r.length/3,i=new Array,s=0;s<n;s++)for(var a=r[3*s+0],u=r[3*s+1],c=r[3*s+2],l=0;l<a;l++)i.push(new o(u,c));return i},o.getRsBlockTable=function(e,t){switch(t){case n.L:return o.RS_BLOCK_TABLE[4*(e-1)+0];case n.M:return o.RS_BLOCK_TABLE[4*(e-1)+1];case n.Q:return o.RS_BLOCK_TABLE[4*(e-1)+2];case n.H:return o.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},e.exports=o}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/23.36fc25dc.js b/plugins/saladict-ztools/ext-saladic/assets/23.36fc25dc.js deleted file mode 100644 index 286facaa..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/23.36fc25dc.js +++ /dev/null @@ -1,8 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[23,27],{540:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3);n.__exportStar(r(966),e),n.__exportStar(r(968),e),n.__exportStar(r(969),e)},541:function(t,e,r){"use strict";var n=r(975),i=r(976),o=r(817);t.exports={formats:o,parse:i,stringify:n}},542:function(t,e,r){"use strict";r.r(e),r.d(e,"getTranslator",(function(){return a})),r.d(e,"getSrcPage",(function(){return s})),r.d(e,"search",(function(){return c}));var n=r(19),i=r(819),o=r(17);const a=Object(n.a)(()=>new i.Baidu({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_APPID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_KEY?{appid:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_APPID,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_KEY}:void 0})),s=(t,e,r)=>`https://fanyi.baidu.com/#auto/${"default"===r.dicts.all.baidu.options.tl?"zh-CN"===e.langCode?"zh":"zh-TW"===e.langCode?"cht":"en":r.dicts.all.baidu.options.tl}/${t}`,c=async(t,e,r,n)=>{const i=a(),{sl:s,tl:c,text:u}=await Object(o.a)(i,t,r.dicts.all.baidu,e,n),l=e.dictAuth.baidu.appid,f=e.dictAuth.baidu.key,p=l&&f?{appid:l,key:f}:void 0;try{const t=await i.translate(u,s,c,p);return Object(o.c)({result:{id:"baidu",slInitial:r.dicts.all.baidu.options.slInitial,sl:t.from,tl:t.to,searchText:t.origin,trans:t.trans},audio:{py:t.trans.tts,us:t.trans.tts}},i.getSupportLanguages())}catch(t){return Object(o.c)({result:{id:"baidu",slInitial:"hide",sl:s,tl:c,searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},i.getSupportLanguages())}}},635:function(t,e,r){var n;t.exports=(n=n||function(t,e){var r=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),n={},i=n.lib={},o=i.Base={extend:function(t){var e=r(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=a<<24-(n+o)%4*8}else for(o=0;o<i;o+=4)e[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var r,n=[],i=function(e){e=e;var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}},o=0;o<e;o+=4){var s=i(4294967296*(r||t.random()));r=987654071*s(),n.push(4294967296*s()|0)}return new a.init(n,e)}}),s=n.enc={},c=s.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new a.init(r,e/2)}},u=s.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new a.init(r,e)}},l=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=i/(4*o),c=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,u=t.min(4*c,i);if(c){for(var l=0;l<c;l+=o)this._doProcessBlock(n,l);var f=n.splice(0,c);r.sigBytes-=u}return new a.init(f,u)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),p=(i.Hasher=f.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new p.HMAC.init(t,r).finalize(e)}}}),n.algo={});return n}(Math),n)},762:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=a[u];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:a,prop:u}),r.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r){if(0===t.length)return t;var n=t;if("symbol"==typeof t?n=Symbol.prototype.toString.call(t):"string"!=typeof t&&(n=String(t)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var i="",a=0;a<n.length;++a){var s=n.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=n.charAt(a):s<128?i+=o[s]:s<2048?i+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?i+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(a)),i+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return i},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var s=e;return i(e)&&!i(r)&&(s=a(e,o)),i(e)&&i(r)?(r.forEach((function(r,i){if(n.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,o):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),s)}}},763:function(t,e,r){var n,i,o,a,s;n=r(977),i=r(818).utf8,o=r(978),a=r(818).bin,(s=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?a.stringToBytes(t):i.stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());for(var r=n.bytesToWords(t),c=8*t.length,u=1732584193,l=-271733879,f=-1732584194,p=271733878,d=0;d<r.length;d++)r[d]=16711935&(r[d]<<8|r[d]>>>24)|4278255360&(r[d]<<24|r[d]>>>8);r[c>>>5]|=128<<c%32,r[14+(c+64>>>9<<4)]=c;var h=s._ff,g=s._gg,y=s._hh,m=s._ii;for(d=0;d<r.length;d+=16){var v=u,b=l,T=f,O=p;u=h(u,l,f,p,r[d+0],7,-680876936),p=h(p,u,l,f,r[d+1],12,-389564586),f=h(f,p,u,l,r[d+2],17,606105819),l=h(l,f,p,u,r[d+3],22,-1044525330),u=h(u,l,f,p,r[d+4],7,-176418897),p=h(p,u,l,f,r[d+5],12,1200080426),f=h(f,p,u,l,r[d+6],17,-1473231341),l=h(l,f,p,u,r[d+7],22,-45705983),u=h(u,l,f,p,r[d+8],7,1770035416),p=h(p,u,l,f,r[d+9],12,-1958414417),f=h(f,p,u,l,r[d+10],17,-42063),l=h(l,f,p,u,r[d+11],22,-1990404162),u=h(u,l,f,p,r[d+12],7,1804603682),p=h(p,u,l,f,r[d+13],12,-40341101),f=h(f,p,u,l,r[d+14],17,-1502002290),u=g(u,l=h(l,f,p,u,r[d+15],22,1236535329),f,p,r[d+1],5,-165796510),p=g(p,u,l,f,r[d+6],9,-1069501632),f=g(f,p,u,l,r[d+11],14,643717713),l=g(l,f,p,u,r[d+0],20,-373897302),u=g(u,l,f,p,r[d+5],5,-701558691),p=g(p,u,l,f,r[d+10],9,38016083),f=g(f,p,u,l,r[d+15],14,-660478335),l=g(l,f,p,u,r[d+4],20,-405537848),u=g(u,l,f,p,r[d+9],5,568446438),p=g(p,u,l,f,r[d+14],9,-1019803690),f=g(f,p,u,l,r[d+3],14,-187363961),l=g(l,f,p,u,r[d+8],20,1163531501),u=g(u,l,f,p,r[d+13],5,-1444681467),p=g(p,u,l,f,r[d+2],9,-51403784),f=g(f,p,u,l,r[d+7],14,1735328473),u=y(u,l=g(l,f,p,u,r[d+12],20,-1926607734),f,p,r[d+5],4,-378558),p=y(p,u,l,f,r[d+8],11,-2022574463),f=y(f,p,u,l,r[d+11],16,1839030562),l=y(l,f,p,u,r[d+14],23,-35309556),u=y(u,l,f,p,r[d+1],4,-1530992060),p=y(p,u,l,f,r[d+4],11,1272893353),f=y(f,p,u,l,r[d+7],16,-155497632),l=y(l,f,p,u,r[d+10],23,-1094730640),u=y(u,l,f,p,r[d+13],4,681279174),p=y(p,u,l,f,r[d+0],11,-358537222),f=y(f,p,u,l,r[d+3],16,-722521979),l=y(l,f,p,u,r[d+6],23,76029189),u=y(u,l,f,p,r[d+9],4,-640364487),p=y(p,u,l,f,r[d+12],11,-421815835),f=y(f,p,u,l,r[d+15],16,530742520),u=m(u,l=y(l,f,p,u,r[d+2],23,-995338651),f,p,r[d+0],6,-198630844),p=m(p,u,l,f,r[d+7],10,1126891415),f=m(f,p,u,l,r[d+14],15,-1416354905),l=m(l,f,p,u,r[d+5],21,-57434055),u=m(u,l,f,p,r[d+12],6,1700485571),p=m(p,u,l,f,r[d+3],10,-1894986606),f=m(f,p,u,l,r[d+10],15,-1051523),l=m(l,f,p,u,r[d+1],21,-2054922799),u=m(u,l,f,p,r[d+8],6,1873313359),p=m(p,u,l,f,r[d+15],10,-30611744),f=m(f,p,u,l,r[d+6],15,-1560198380),l=m(l,f,p,u,r[d+13],21,1309151649),u=m(u,l,f,p,r[d+4],6,-145523070),p=m(p,u,l,f,r[d+11],10,-1120210379),f=m(f,p,u,l,r[d+2],15,718787259),l=m(l,f,p,u,r[d+9],21,-343485551),u=u+v>>>0,l=l+b>>>0,f=f+T>>>0,p=p+O>>>0}return n.endian([u,l,f,p])})._ff=function(t,e,r,n,i,o,a){var s=t+(e&r|~e&n)+(i>>>0)+a;return(s<<o|s>>>32-o)+e},s._gg=function(t,e,r,n,i,o,a){var s=t+(e&n|r&~n)+(i>>>0)+a;return(s<<o|s>>>32-o)+e},s._hh=function(t,e,r,n,i,o,a){var s=t+(e^r^n)+(i>>>0)+a;return(s<<o|s>>>32-o)+e},s._ii=function(t,e,r,n,i,o,a){var s=t+(r^(e|~n))+(i>>>0)+a;return(s<<o|s>>>32-o)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(s(t,e));return e&&e.asBytes?r:e&&e.asString?a.bytesToString(r):n.bytesToHex(r)}},817:function(t,e,r){"use strict";var n=String.prototype.replace,i=/%20/g,o=r(762),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=o.assign({default:a.RFC3986,formatters:{RFC1738:function(t){return n.call(t,i,"+")},RFC3986:function(t){return String(t)}}},a)},818:function(t,e){var r={utf8:{stringToBytes:function(t){return r.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(r.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=r},819:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3),i=r(540),o=n.__importDefault(r(763)),a=n.__importDefault(r(541)),s=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]];class c extends i.Translator{constructor(){super(...arguments),this.name="baidu",this.endpoint="http://api.fanyi.baidu.com/api/trans/vip/translate",this.appid="20151211000007653",this.key="IFJB6jBORFuMmVGDRude"}async query(t,e,r,n){const s=Date.now(),u=n.appid||this.appid,l=n.key||this.key,f=await this.request(this.endpoint,{params:{from:c.langMap.get(e),to:c.langMap.get(r),q:t,salt:s,appid:u,sign:o.default(u+t+s+l)}}).then(this.checkData).catch(()=>this.request("http://openapi.baidu.com/public/2.0/bmt/translate?"+a.default.stringify({client_id:"AVhF9A0GExzkU5gCkZ0Gbht7",from:c.langMap.get(e),to:c.langMap.get(r),q:t})).then(this.checkData)).catch(()=>{throw new i.TranslateError("NETWORK_ERROR")}),{trans_result:p,from:d}=f,h=c.langMapReverse.get(d)||e;return{text:t,from:h,to:r,origin:{paragraphs:p.map(({src:t})=>t),tts:await this.textToSpeech(t,h)},trans:{paragraphs:p.map(({dst:t})=>t),tts:await this.textToSpeech(p[0].dst,r)}}}async textToSpeech(t,e){return"http://tts.baidu.com/text2audio?"+a.default.stringify({lan:c.langMap.get("auto"!==e?e:"zh-CN")||"zh",ie:"UTF-8",spd:5,text:t})}checkData({data:t}){if(t.error_code)throw new i.TranslateError("API_SERVER_ERROR");return t}getSupportLanguages(){return[...c.langMap.keys()]}}e.Baidu=c,c.langMap=new Map(s),c.langMapReverse=new Map(s.map(([t,e])=>[e,t])),e.default=c},820:function(t,e,r){var n;t.exports=(n=r(635),function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[],c=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),c[i]=r(t.pow(n,1/3)),i++),n++}();var u=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],f=r[6],p=r[7],d=0;d<64;d++){if(d<16)u[d]=0|t[e+d];else{var h=u[d-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,y=u[d-2],m=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;u[d]=g+u[d-7]+m+u[d-16]}var v=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),T=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+c[d]+u[d];p=f,f=l,l=s,s=a+T|0,a=o,o=i,i=n,n=T+(b+v)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+p|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(l),e.HmacSHA256=o._createHmacHelper(l)}(Math),n.SHA256)},845:function(t,e,r){"use strict";r.r(e),r.d(e,"getTranslator",(function(){return s})),r.d(e,"getSrcPage",(function(){return c})),r.d(e,"search",(function(){return u}));var n=r(19),i=r(846),o=r(17),a=r(542);const s=Object(n.a)(()=>new i.Tencent({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.TENCENT_SECRETID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.TENCENT_SECRETKEY?{secretId:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.TENCENT_SECRETID,secretKey:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.TENCENT_SECRETKEY}:void 0})),c=(t,e,r)=>`https://fanyi.qq.com/#auto/${"default"===r.dicts.all.tencent.options.tl?"zh-CN"===e.langCode?"zh-CHS":"zh-TW"===e.langCode?"zh-CHT":"en":r.dicts.all.tencent.options.tl}/${t}`,u=async(t,e,r,n)=>{const i=s(),{sl:c,tl:u,text:l}=await Object(o.a)(i,t,r.dicts.all.tencent,e,n),f=e.dictAuth.tencent.secretId,p=e.dictAuth.tencent.secretKey,d=f&&p?{secretId:f,secretKey:p}:void 0;try{const t=await i.translate(l,c,u,d),e=Object(a.getTranslator)();return t.origin.tts=await e.textToSpeech(t.origin.paragraphs.join("\n"),t.from),t.trans.tts=await e.textToSpeech(t.trans.paragraphs.join("\n"),t.to),Object(o.c)({result:{id:"tencent",sl:t.from,tl:t.to,slInitial:r.dicts.all.tencent.options.slInitial,searchText:t.origin,trans:t.trans},audio:{py:t.trans.tts,us:t.trans.tts}},i.getSupportLanguages())}catch(t){return Object(o.c)({result:{id:"tencent",sl:c,tl:u,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},i.getSupportLanguages())}}},846:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3),i=r(540),o=n.__importDefault(r(541)),a=n.__importDefault(r(820)),s=n.__importDefault(r(982)),c=n.__importDefault(r(984)),u=r(985),l=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["en","en"],["ko","kr"],["ja","jp"],["de","de"],["fr","fr"],["es","es"],["it","it"],["tr","tr"],["ru","ru"],["pt","pt"],["vi","vi"],["id","id"],["ms","ms"],["th","th"]],f={qtv:"1f287950babc6f41",qtk:"7ZL+2Pxljmav9j1z8Q7RuhmVeN5nkYZrLJH0kfWZ8rin6SYxcu62TsMramShwVod/uNYNIKWAu7I4x09lVkCEou4pIVE5E1GuDDrHuNjLUHQCSPssTaFUOOiIomtcwFYQAxap7Kp9beMz+rxnUL9pg==",date:0};class p extends i.Translator{constructor(){super(...arguments),this.token={...f},this.name="tencent"}static getUTCDate(t){return`${t.getUTCFullYear()}-${(""+(t.getUTCMonth()+1)).padStart(2,"0")}-${(""+t.getUTCDate()).padStart(2,"0")}`}stubHeaders(t){if("ext"!==this.env||p.isStubHeaders[t])return;p.isStubHeaders[t]=!0;const e="undefined"!=typeof browser?browser:"undefined"!=typeof chrome?chrome:null,r=["blocking","requestHeaders"];e.webRequest.OnBeforeSendHeadersOptions&&e.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS")&&r.push("extraHeaders"),e.webRequest.onBeforeSendHeaders.addListener(e=>{if(e&&e.requestHeaders){const r=e.requestHeaders.filter(t=>!/Host/i.test(t.name));return r.push({name:"Host",value:t}),{requestHeaders:r}}return e},{urls:[`*://${t}/*`]},r)}signedRequest({secretId:t,secretKey:e,action:r,payload:n,service:i,version:o}){const u=i+".tencentcloudapi.com";this.stubHeaders(u);const l=new Date,f=(""+(new Date).valueOf()).slice(0,10),d=["POST","/","","content-type:application/json; charset=utf-8","host:"+u,"","content-type;host",a.default(n).toString(c.default)].join("\n"),h=p.getUTCDate(l),g=["TC3-HMAC-SHA256",f,`${h}/${i}/tc3_request`,a.default(d).toString(c.default)].join("\n"),y=s.default(h,"TC3"+e),m=s.default(i,y),v=s.default("tc3_request",m),b=s.default(g,v).toString(c.default);return this.request(`https://${i}.tencentcloudapi.com`,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:u,"X-TC-Action":r,"X-TC-Timestamp":f,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${h}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},data:n})}async updateToken(){const t={...f};try{const e=(await this.request("https://fanyi.qq.com")).data,r=e.match(/"qtv=([^"]+)/);r&&(t.qtv=r[1]);const n=e.match(/"qtk=([^"]+)/);n&&(t.qtk=n[1])}catch(t){}this.token={...t,date:Date.now()}}async getToken(){return Date.now()-this.token.date>36e4&&await this.updateToken(),this.token}async query(t,e,r,n){if(n.secretKey){const i=JSON.stringify({ProjectId:0,Source:p.langMap.get(e),SourceText:t,Target:p.langMap.get(r)}),{data:o}=await this.signedRequest({secretId:n.secretId,secretKey:n.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:t,from:p.langMapReverse.get(o.Response.Source)||e,to:p.langMapReverse.get(o.Response.Target)||r,origin:{paragraphs:t.split(/\n+/)},trans:{paragraphs:u.decodeHTMLEntities(o.Response.TargetText).split(/\n+/)}}}const{qtv:a,qtk:s}=await this.getToken(),c=o.default.stringify({source:p.langMap.get(e),target:p.langMap.get(r),sourceText:t,qtv:a,qtk:s,sessionUuid:"translate_uuid"+Date.now()}),l=await this.request("https://fanyi.qq.com/api/translate",{method:"post",withCredentials:!1,headers:{Origin:"https://fanyi.qq.com",Accept:"application/json, text/javascript, */*; q=0.01","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","X-Requested-With":"XMLHttpRequest"},data:c});if(!l||!l.data)throw new i.TranslateError("NETWORK_ERROR");const f=l.data,d=u.decodeHTMLEntities(f.translate.records.map(t=>t.targetText).join(" ").replace(/\s*↵\s*/g,"\n")),h=u.decodeHTMLEntities(f.translate.records.map(t=>t.sourceText).join(" ").replace(/\s*↵\s*/g,"\n"));return{text:t,from:p.langMapReverse.get(f.translate.source)||("auto"!==e?e:await this.detect(t)),to:r,origin:{paragraphs:h.split("\n"),tts:await this.textToSpeech(h,p.langMapReverse.get(f.translate.source)||e)},trans:{paragraphs:d.split("\n"),tts:await this.textToSpeech(d,p.langMapReverse.get(f.translate.target)||r)}}}getSupportLanguages(){return[...p.langMap.keys()]}async detect(t){if(this.config.secretKey){const e=JSON.stringify({ProjectId:0,Text:t}),{data:r}=await this.signedRequest({secretId:this.config.secretId,secretKey:this.config.secretKey,action:"LanguageDetect",payload:e,service:"tmt",version:"2018-03-21"});return p.langMapReverse.get(r.Response.Lang)||"auto"}return super.detect(t)}async textToSpeech(t,e){if(this.config.secretKey){const r=JSON.stringify({ProjectId:0,Text:encodeURIComponent(t),SessionId:""+Date.now(),ModelType:-1,PrimaryLanguage:e.startsWith("zh")?1:2,Codec:"mp3"}),{data:n}=await this.signedRequest({secretId:this.config.secretId,secretKey:this.config.secretKey,action:"TextToVoice",payload:r,service:"tts",version:"2019-08-23"});return n.Response.Audio||""}return"https://fanyi.qq.com/api/tts?"+o.default.stringify({lang:p.langMap.get("auto"!==e?e:"zh-CN")||"zh",text:t})}}e.Tencent=p,p.langMap=new Map(l),p.langMapReverse=new Map(l.map(([t,e])=>[e,t])),p.isStubHeaders={},e.default=p},966:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});r(3).__exportStar(r(967),e)},967:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.languages=["af","am","ar","auto","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","de","el","en","eo","es","et","eu","fa","fi","fil","fj","fr","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","id","ig","is","it","ja","jw","ka","kk","km","kn","ko","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","pt","ro","ru","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","th","tlh","tlh-Qaak","to","tr","ty","ug","uk","ur","uz","vi","wyw","xh","yi","yo","yua","yue","zh-CN","zh-TW","zu"]},968:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(t){super(t)}}e.TranslateError=n},969:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3).__importDefault(r(131)),i=r(970),o=r(971);e.Translator=class{constructor(t={}){this.env=t.env||"node",this.axios=t.axios||n.default,this.config=t.config||{}}async translate(t,e,r,n={}){return{...await this.query(t,e,r,{...this.config,...n}),engine:this.name}}request(t,e){return"ext"===this.env&&e&&e.headers?this.axios(t,i.modifyExtraHeaders(t,e)):this.axios(t,e)}async detect(t){return o.detectLang(t)}textToSpeech(t,e,r){return Promise.resolve(null)}}},970:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n="undefined"!=typeof browser?browser:"undefined"!=typeof chrome?chrome:null,i={},o=/^(Origin|Referer|Host|Cookie|User-Agent|DNT|Accept-Charset|Accept-Encoding)$/i,a=/^(Origin|Referer)$/i;e.modifyExtraHeaders=(t,e)=>{if(!e.headers)return e;const r=Object.keys(e.headers),s={};let c;for(let t=0;t<r.length;t++){const n=r[t];o.test(n)?a.test(n)&&(c=e.headers[n]):s[n]=e.headers[n]}return c&&function(t,e){if(!n)return void console.warn("Missing Browser Global");const r=new URL(t).origin+"/*";if(i[r])return;i[r]=!0;const o=["blocking","requestHeaders"];n.webRequest.OnBeforeSendHeadersOptions&&n.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS")&&o.push("extraHeaders"),n.webRequest.onBeforeSendHeaders.addListener(t=>{if(t&&t.requestHeaders){const r=t.requestHeaders.filter(t=>!a.test(t.name));return r.push({name:"Origin",value:e},{name:"Referer",value:e}),{requestHeaders:r}}return t},{urls:[r]},o)}(t,c),{...e,headers:s}}},971:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3).__importDefault(r(979)),i=new Map([["eng","en"],["jpn","ja"],["kor","ko"],["cmn","zh-CN"]]),o={minLength:1,whitelist:[...i.keys()]};e.detectLang=function(t){return i.get(n.default(t,o))||"auto"}},972:function(t,e,r){"use strict";function n(t){if("number"!=typeof t||isNaN(t)||t<1||t===1/0)throw new Error("`"+t+"` is not a valid argument for n-gram");return function(e){var r,n=[];if(null==e)return n;if(e=e.slice?e:String(e),(r=e.length-t+1)<1)return n;for(;r--;)n[r]=e.slice(r,r+t);return n}}t.exports=n,n.bigram=n(2),n.trigram=n(3)},973:function(t,e,r){"use strict";t.exports=function(t){return String(t).replace(/\s+/g," ")}},974:function(t,e){(e=t.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},e.right=function(t){return t.replace(/\s*$/,"")}},975:function(t,e,r){"use strict";var n=r(762),i=r(817),o=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,c=Array.prototype.push,u=function(t,e){c.apply(t,s(e)?e:[e])},l=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,r,i,o,a,c,l,f,d,h,g,y,m){var v,b=e;if("function"==typeof l?b=l(r,b):b instanceof Date?b=h(b):"comma"===i&&s(b)&&(b=n.maybeMap(b,(function(t){return t instanceof Date?h(t):t})).join(",")),null===b){if(o)return c&&!y?c(r,p.encoder,m,"key"):r;b=""}if("string"==typeof(v=b)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||n.isBuffer(b))return c?[g(y?r:c(r,p.encoder,m,"key"))+"="+g(c(b,p.encoder,m,"value"))]:[g(r)+"="+g(String(b))];var T,O=[];if(void 0===b)return O;if(s(l))T=l;else{var _=Object.keys(b);T=f?_.sort(f):_}for(var w=0;w<T.length;++w){var S=T[w],P=b[S];if(!a||null!==P){var x=s(b)?"function"==typeof i?i(r,S):r:r+(d?"."+S:"["+S+"]");u(O,t(P,x,i,o,a,c,l,f,d,h,g,y,m))}}return O};t.exports=function(t,e){var r,n=t,c=function(t){if(!t)return p;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||p.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!o.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=i.formatters[r],a=p.filter;return("function"==typeof t.filter||s(t.filter))&&(a=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===t.allowDots?p.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:p.charsetSentinel,delimiter:void 0===t.delimiter?p.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:p.encode,encoder:"function"==typeof t.encoder?t.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:p.encodeValuesOnly,filter:a,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:p.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:p.strictNullHandling}}(e);"function"==typeof c.filter?n=(0,c.filter)("",n):s(c.filter)&&(r=c.filter);var l,f=[];if("object"!=typeof n||null===n)return"";l=e&&e.arrayFormat in a?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var h=a[l];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var g=0;g<r.length;++g){var y=r[g];c.skipNulls&&null===n[y]||u(f,d(n[y],y,h,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var m=f.join(c.delimiter),v=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),m.length>0?v+m:""}},976:function(t,e,r){"use strict";var n=r(762),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,l=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var f=0;r.depth>0&&null!==(s=a.exec(o))&&f<r.depth;){if(f+=1,!r.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+o.slice(s.index)+"]"),function(t,e,r,n){for(var i=n?e:c(e,r),o=t.length-1;o>=0;--o){var a,s=t[o];if("[]"===s&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=i:a[u]=i:a={0:i}}i=a}return i}(l,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var r,u={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,p=l.split(e.delimiter,f),d=-1,h=e.charset;if(e.charsetSentinel)for(r=0;r<p.length;++r)0===p[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[r]?h="utf-8":"utf8=%26%2310003%3B"===p[r]&&(h="iso-8859-1"),d=r,r=p.length);for(r=0;r<p.length;++r)if(r!==d){var g,y,m=p[r],v=m.indexOf("]="),b=-1===v?m.indexOf("="):v+1;-1===b?(g=e.decoder(m,a.decoder,h,"key"),y=e.strictNullHandling?null:""):(g=e.decoder(m.slice(0,b),a.decoder,h,"key"),y=n.maybeMap(c(m.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,h,"value")}))),y&&e.interpretNumericEntities&&"iso-8859-1"===h&&(y=s(y)),m.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(u,g)?u[g]=n.combine(u[g],y):u[g]=y}return u}(t,r):t,f=r.plainObjects?Object.create(null):{},p=Object.keys(l),d=0;d<p.length;++d){var h=p[d],g=u(h,l[h],r,"string"==typeof t);f=n.merge(f,g,r)}return n.compact(f)}},977:function(t,e){var r,n;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var e=[],n=0;n<t.length;n+=3)for(var i=t[n]<<16|t[n+1]<<8|t[n+2],o=0;o<4;o++)8*n+6*o<=8*t.length?e.push(r.charAt(i>>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],n=0,i=0;n<t.length;i=++n%4)0!=i&&e.push((r.indexOf(t.charAt(n-1))&Math.pow(2,-2*i+8)-1)<<2*i|r.indexOf(t.charAt(n))>>>6-2*i);return e}},t.exports=n},978:function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)} -/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh <https://feross.org> - * @license MIT - */ -t.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},980:function(t,e,r){"use strict";var n=r(972).trigram,i=r(973),o=r(974),a={}.hasOwnProperty;function s(t){return null==t?"":o(i(String(t).replace(/[\u0021-\u0040]+/g," "))).toLowerCase()}function c(t){return n(" "+s(t)+" ")}function u(t){for(var e,r=c(t),n=r.length,i={};n--;)e=r[n],a.call(i,e)?i[e]++:i[e]=1;return i}function l(t,e){return t[1]-e[1]}e.clean=s,e.trigrams=c,e.asDictionary=u,e.asTuples=function(t){var e,r=u(t),n=[];for(e in r)n.push([e,r[e]]);return n.sort(l),n},e.tuplesAsDictionary=function(t){var e,r=t.length,n={};for(;r--;)e=t[r],n[e[0]]=e[1];return n}},982:function(t,e,r){var n;t.exports=(n=r(635),r(820),r(983),n.HmacSHA256)},983:function(t,e,r){var n,i,o,a;t.exports=(n=r(635),o=(i=n).lib.Base,a=i.enc.Utf8,void(i.algo.HMAC=o.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=a.parse(e));var r=t.blockSize,n=4*r;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),o=this._iKey=e.clone(),s=i.words,c=o.words,u=0;u<r;u++)s[u]^=1549556828,c[u]^=909522486;i.sigBytes=o.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}})))},984:function(t,e,r){var n;t.exports=(n=r(635),n.enc.Hex)},985:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTMLEntities=function(t){return t.replace(/&([^;]+);/gm,(t,e)=>{switch(e){case"amp":return"&";case"apos":case"#x27":return"'";case"#x2F":return"/";case"#39":return"'";case"#47":return"/";case"lt":return"<";case"gt":return">";case"nbsp":return" ";case"quot":return'"';default:return t}})}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/23.682fd775.js b/plugins/saladict-ztools/ext-saladic/assets/23.682fd775.js new file mode 100644 index 00000000..b173d0a1 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/23.682fd775.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[23],{1040:function(t,e,r){var n=r(1041),o=r(1042),i=r(1043),a=r(1044),u=r(925);function s(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var l=s.prototype;l.addData=function(t){var e=new n(t);this.dataList.push(e),this.dataCache=null},l.isDark=function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},l.getModuleCount=function(){return this.moduleCount},l.make=function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=o.getRSBlocks(t,this.errorCorrectLevel),r=new i,n=0,u=0;u<e.length;u++)n+=e[u].dataCount;for(u=0;u<this.dataList.length;u++){var s=this.dataList[u];r.put(s.mode,4),r.put(s.getLength(),a.getLengthInBits(s.mode,t)),s.write(r)}if(r.getLengthInBits()<=8*n)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},l.makeImpl=function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=s.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},l.setupPositionProbePattern=function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},l.getBestMaskPattern=function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=a.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e},l.createMovieClip=function(t,e,r){var n=t.createEmptyMovieClip(e,r);this.make();for(var o=0;o<this.modules.length;o++)for(var i=1*o,a=0;a<this.modules[o].length;a++){var u=1*a;this.modules[o][a]&&(n.beginFill(0,100),n.moveTo(u,i),n.lineTo(u+1,i),n.lineTo(u+1,i+1),n.lineTo(u,i+1),n.endFill())}return n},l.setupTimingPattern=function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},l.setupPositionAdjustPattern=function(){for(var t=a.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var n=t[e],o=t[r];if(null==this.modules[n][o])for(var i=-2;i<=2;i++)for(var u=-2;u<=2;u++)this.modules[n+i][o+u]=-2==i||2==i||-2==u||2==u||0==i&&0==u}},l.setupTypeNumber=function(t){for(var e=a.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},l.setupTypeInfo=function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=a.getBCHTypeInfo(r),o=0;o<15;o++){var i=!t&&1==(n>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!t&&1==(n>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!t},l.mapData=function(t,e){for(var r=-1,n=this.moduleCount-1,o=7,i=0,u=this.moduleCount-1;u>0;u-=2)for(6==u&&u--;;){for(var s=0;s<2;s++)if(null==this.modules[n][u-s]){var l=!1;i<t.length&&(l=1==(t[i]>>>o&1)),a.getMask(e,n,u-s)&&(l=!l),this.modules[n][u-s]=l,-1==--o&&(i++,o=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},s.PAD0=236,s.PAD1=17,s.createData=function(t,e,r){for(var n=o.getRSBlocks(t,e),u=new i,l=0;l<r.length;l++){var h=r[l];u.put(h.mode,4),u.put(h.getLength(),a.getLengthInBits(h.mode,t)),h.write(u)}var f=0;for(l=0;l<n.length;l++)f+=n[l].dataCount;if(u.getLengthInBits()>8*f)throw new Error("code length overflow. ("+u.getLengthInBits()+">"+8*f+")");for(u.getLengthInBits()+4<=8*f&&u.put(0,4);u.getLengthInBits()%8!=0;)u.putBit(!1);for(;!(u.getLengthInBits()>=8*f||(u.put(s.PAD0,8),u.getLengthInBits()>=8*f));)u.put(s.PAD1,8);return s.createBytes(u,n)},s.createBytes=function(t,e){for(var r=0,n=0,o=0,i=new Array(e.length),s=new Array(e.length),l=0;l<e.length;l++){var h=e[l].dataCount,f=e[l].totalCount-h;n=Math.max(n,h),o=Math.max(o,f),i[l]=new Array(h);for(var c=0;c<i[l].length;c++)i[l][c]=255&t.buffer[c+r];r+=h;var g=a.getErrorCorrectPolynomial(f),d=new u(i[l],g.getLength()-1).mod(g);s[l]=new Array(g.getLength()-1);for(c=0;c<s[l].length;c++){var p=c+d.getLength()-s[l].length;s[l][c]=p>=0?d.get(p):0}}var v=0;for(c=0;c<e.length;c++)v+=e[c].totalCount;var m=new Array(v),y=0;for(c=0;c<n;c++)for(l=0;l<e.length;l++)c<i[l].length&&(m[y++]=i[l][c]);for(c=0;c<o;c++)for(l=0;l<e.length;l++)c<s[l].length&&(m[y++]=s[l][c]);return m},t.exports=s},1041:function(t,e,r){var n=r(923);function o(t){this.mode=n.MODE_8BIT_BYTE,this.data=t}o.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},t.exports=o},1042:function(t,e,r){var n=r(924);function o(t,e){this.totalCount=t,this.dataCount=e}o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(t,e){var r=o.getRsBlockTable(t,e);if(null==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var n=r.length/3,i=new Array,a=0;a<n;a++)for(var u=r[3*a+0],s=r[3*a+1],l=r[3*a+2],h=0;h<u;h++)i.push(new o(s,l));return i},o.getRsBlockTable=function(t,e){switch(e){case n.L:return o.RS_BLOCK_TABLE[4*(t-1)+0];case n.M:return o.RS_BLOCK_TABLE[4*(t-1)+1];case n.Q:return o.RS_BLOCK_TABLE[4*(t-1)+2];case n.H:return o.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},t.exports=o},1043:function(t,e){function r(){this.buffer=new Array,this.length=0}r.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=r},1044:function(t,e,r){var n=r(923),o=r(925),i=r(926),a=0,u=1,s=2,l=3,h=4,f=5,c=6,g=7,d={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;d.getBCHDigit(e)-d.getBCHDigit(d.G15)>=0;)e^=d.G15<<d.getBCHDigit(e)-d.getBCHDigit(d.G15);return(t<<10|e)^d.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;d.getBCHDigit(e)-d.getBCHDigit(d.G18)>=0;)e^=d.G18<<d.getBCHDigit(e)-d.getBCHDigit(d.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return d.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case a:return(e+r)%2==0;case u:return e%2==0;case s:return r%3==0;case l:return(e+r)%3==0;case h:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case f:return e*r%2+e*r%3==0;case c:return(e*r%2+e*r%3)%2==0;case g:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new o([1],0),r=0;r<t;r++)e=e.multiply(new o([1,i.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,n=0;n<e;n++)for(var o=0;o<e;o++){for(var i=0,a=t.isDark(n,o),u=-1;u<=1;u++)if(!(n+u<0||e<=n+u))for(var s=-1;s<=1;s++)o+s<0||e<=o+s||0==u&&0==s||a==t.isDark(n+u,o+s)&&i++;i>5&&(r+=3+i-5)}for(n=0;n<e-1;n++)for(o=0;o<e-1;o++){var l=0;t.isDark(n,o)&&l++,t.isDark(n+1,o)&&l++,t.isDark(n,o+1)&&l++,t.isDark(n+1,o+1)&&l++,0!=l&&4!=l||(r+=3)}for(n=0;n<e;n++)for(o=0;o<e-6;o++)t.isDark(n,o)&&!t.isDark(n,o+1)&&t.isDark(n,o+2)&&t.isDark(n,o+3)&&t.isDark(n,o+4)&&!t.isDark(n,o+5)&&t.isDark(n,o+6)&&(r+=40);for(o=0;o<e;o++)for(n=0;n<e-6;n++)t.isDark(n,o)&&!t.isDark(n+1,o)&&t.isDark(n+2,o)&&t.isDark(n+3,o)&&t.isDark(n+4,o)&&!t.isDark(n+5,o)&&t.isDark(n+6,o)&&(r+=40);var h=0;for(o=0;o<e;o++)for(n=0;n<e;n++)t.isDark(n,o)&&h++;return r+=10*(Math.abs(100*h/e/e-50)/5)}};t.exports=d},923:function(t,e){t.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},924:function(t,e){t.exports={L:1,M:0,Q:3,H:2}},925:function(t,e,r){var n=r(926);function o(t,e){if(null==t.length)throw new Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var n=0;n<t.length-r;n++)this.num[n]=t[n+r]}o.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var i=0;i<t.getLength();i++)e[r+i]^=n.gexp(n.glog(this.get(r))+n.glog(t.get(i)));return new o(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=n.glog(this.get(0))-n.glog(t.get(0)),r=new Array(this.getLength()),i=0;i<this.getLength();i++)r[i]=this.get(i);for(i=0;i<t.getLength();i++)r[i]^=n.gexp(n.glog(t.get(i))+e);return new o(r,0).mod(t)}},t.exports=o},926:function(t,e){for(var r={glog:function(t){if(t<1)throw new Error("glog("+t+")");return r.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return r.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)r.EXP_TABLE[n]=1<<n;for(n=8;n<256;n++)r.EXP_TABLE[n]=r.EXP_TABLE[n-4]^r.EXP_TABLE[n-5]^r.EXP_TABLE[n-6]^r.EXP_TABLE[n-8];for(n=0;n<255;n++)r.LOG_TABLE[r.EXP_TABLE[n]]=n;t.exports=r},993:function(t,e,r){"use strict";function n(t){return(n="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(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){p(t,e,r[e])}))}return t}function a(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),t}function h(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(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&&g(t,e)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v=r(0),m=r(26),y=r(1040),C=r(924);function E(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e+=String.fromCharCode(n):n<2048?(e+=String.fromCharCode(192|n>>6),e+=String.fromCharCode(128|63&n)):n<55296||n>=57344?(e+=String.fromCharCode(224|n>>12),e+=String.fromCharCode(128|n>>6&63),e+=String.fromCharCode(128|63&n)):(r++,n=65536+((1023&n)<<10|1023&t.charCodeAt(r)),e+=String.fromCharCode(240|n>>18),e+=String.fromCharCode(128|n>>12&63),e+=String.fromCharCode(128|n>>6&63),e+=String.fromCharCode(128|63&n))}return e}var b={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},w={value:m.string.isRequired,size:m.number,level:m.oneOf(["L","M","Q","H"]),bgColor:m.string,fgColor:m.string,includeMargin:m.bool};function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[];return t.forEach((function(t,n){var o=null;t.forEach((function(i,a){if(!i&&null!==o)return r.push("M".concat(o+e," ").concat(n+e,"h").concat(a-o,"v1H").concat(o+e,"z")),void(o=null);if(a!==t.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?r.push("M".concat(a+e,",").concat(n+e," h1v1H").concat(a+e,"z")):r.push("M".concat(o+e,",").concat(n+e," h").concat(a+1-o,"v1H").concat(o+e,"z"))}}))})),r.join("")}var L=function(){try{(new Path2D).addPath(new Path2D)}catch(t){return!1}return!0}(),P=function(t){function e(){var t,r;u(this,e);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return p(d(d(r=h(this,(t=f(e)).call.apply(t,[this].concat(o))))),"_canvas",void 0),r}return c(e,t),l(e,[{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var t=this.props,e=t.value,r=t.size,n=t.level,o=t.bgColor,i=t.fgColor,a=t.includeMargin,u=new y(-1,C[n]);if(u.addData(E(e)),u.make(),null!=this._canvas){var s=this._canvas,l=s.getContext("2d");if(!l)return;var h=u.modules;if(null===h)return;var f=a?4:0,c=h.length+2*f,g=window.devicePixelRatio||1;s.height=s.width=r*g;var d=r/c*g;l.scale(d,d),l.fillStyle=o,l.fillRect(0,0,c,c),l.fillStyle=i,L?l.fill(new Path2D(B(h,f))):h.forEach((function(t,e){t.forEach((function(t,r){t&&l.fillRect(r+f,e+f,1,1)}))}))}}},{key:"render",value:function(){var t=this,e=this.props,r=(e.value,e.size),n=(e.level,e.bgColor,e.fgColor,e.style),u=(e.includeMargin,a(e,["value","size","level","bgColor","fgColor","style","includeMargin"])),s=i({height:r,width:r},n);return v.createElement("canvas",o({style:s,height:r,width:r,ref:function(e){return t._canvas=e}},u))}}]),e}(v.PureComponent);p(P,"defaultProps",b),p(P,"propTypes",w);var _=function(t){function e(){return u(this,e),h(this,f(e).apply(this,arguments))}return c(e,t),l(e,[{key:"render",value:function(){var t=this.props,e=t.value,r=t.size,n=t.level,i=t.bgColor,u=t.fgColor,s=t.includeMargin,l=a(t,["value","size","level","bgColor","fgColor","includeMargin"]),h=new y(-1,C[n]);h.addData(E(e)),h.make();var f=h.modules;if(null===f)return null;var c=s?4:0,g=B(f,c),d=f.length+2*c;return v.createElement("svg",o({shapeRendering:"crispEdges",height:r,width:r,viewBox:"0 0 ".concat(d," ").concat(d)},l),v.createElement("path",{fill:i,d:"M0,0 h".concat(d,"v").concat(d,"H0z")}),v.createElement("path",{fill:u,d:g}))}}]),e}(v.PureComponent);p(_,"defaultProps",b),p(_,"propTypes",w);var D=function(t){var e=t.renderAs,r=a(t,["renderAs"]),n="svg"===e?_:P;return v.createElement(n,r)};D.defaultProps=i({renderAs:"canvas"},b),t.exports=D}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/24.3213c019.js b/plugins/saladict-ztools/ext-saladic/assets/24.3213c019.js deleted file mode 100644 index a1452582..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/24.3213c019.js +++ /dev/null @@ -1,34 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[24],{10:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(3),i=r(7);function o(e,t){return function(r){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new s(e,t))}}var s=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))},e}(),a=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return n.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.a)},114:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,"a",(function(){return n}))},115:function(e,t,r){"use strict";function n(e){return e}r.d(t,"a",(function(){return n}))},13:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(54),i=r(114),o=r(45),s=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),a=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var r=this._parentOrParents,a=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(null!==r)for(var l=0;l<r.length;++l){r[l].remove(this)}if(Object(o.a)(a))try{a.call(this)}catch(e){t=e instanceof s?u(e.errors):[e]}if(Object(n.a)(c)){l=-1;for(var h=c.length;++l<h;){var f=c[l];if(Object(i.a)(f))try{f.unsubscribe()}catch(e){t=t||[],e instanceof s?t=t.concat(u(e.errors)):t.push(e)}}}if(t)throw new s(t)}},e.prototype.add=function(t){var r=t;if(!t)return e.EMPTY;switch(typeof t){case"function":r=new e(t);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof e)){var n=r;(r=new e)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof e){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[r]:o.push(r),r},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function u(e){return e.reduce((function(e,t){return e.concat(t instanceof s?t.errors:t)}),[])}},1307:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(0),a=(n=s)&&n.__esModule?n:{default:n},u=r(20);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(){};t.default=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=t.touch||!1,n=t.resetOnSpecialKeys||!1,s=t.getSpecificEventData||function(){return{}},d=t.onDragStart||f,p=t.onDragStop||f,v=t.onDragMove||f,y=function(t){function f(e){c(this,f);var t=l(this,Object.getPrototypeOf(f).call(this,e));return t.onMouseDown=t.onMouseDown.bind(t),t.onMouseUp=t.onMouseUp.bind(t),t.onMouseMove=t.onMouseMove.bind(t),t.state={isMouseDown:!1,isMoving:!1,mouseDownPositionX:0,mouseDownPositionY:0,moveDeltaX:0,moveDeltaY:0},t.wasUsingSpecialKeys=!1,t}return h(f,t),o(f,[{key:"componentDidMount",value:function(){var e=(0,u.findDOMNode)(this);e.addEventListener("mousedown",this.onMouseDown),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),r&&(e.addEventListener("touchstart",this.onMouseDown),document.addEventListener("touchmove",this.onMouseMove),document.addEventListener("touchend",this.onMouseUp))}},{key:"componentWillUnmount",value:function(){var e=(0,u.findDOMNode)(this);e.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),r&&(e.removeEventListener("touchstart",this.onMouseDown),document.removeEventListener("touchmove",this.onMouseMove),document.removeEventListener("touchend",this.onMouseUp))}},{key:"onMouseDown",value:function(e){if(r||0===e.button){var t=e.changedTouches&&e.changedTouches[0]||e;this.setMousePosition(t.clientX,t.clientY),d(e)}}},{key:"onMouseUp",value:function(e){this.state.isMouseDown&&(this.setState({isMouseDown:!1,isMoving:!1}),p(e))}},{key:"onMouseMove",value:function(e){if(this.state.isMouseDown){var t=e.changedTouches&&e.changedTouches[0]||e,r=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;n&&this.wasUsingSpecialKeys!==r?(this.wasUsingSpecialKeys=r,this.setMousePosition(t.clientX,t.clientY)):this.setState(i({isMoving:!0,moveDeltaX:t.clientX-this.state.mouseDownPositionX,moveDeltaY:t.clientY-this.state.mouseDownPositionY},s(e))),v(e)}}},{key:"setMousePosition",value:function(e,t){this.setState({isMouseDown:!0,isMoving:!1,mouseDownPositionX:e,mouseDownPositionY:t,moveDeltaX:0,moveDeltaY:0})}},{key:"render",value:function(){return a.default.createElement(e,i({},this.props,{dataDrag:this.state}))}}]),f}(a.default.Component);return y}},1308:function(e,t){e.exports=function(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}},23:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;n=e},get useDeprecatedSynchronousErrorHandling(){return n}}},26:function(e,t,r){e.exports=r(391)()},3:function(e,t,r){"use strict";r.r(t),r.d(t,"__extends",(function(){return i})),r.d(t,"__assign",(function(){return o})),r.d(t,"__rest",(function(){return s})),r.d(t,"__decorate",(function(){return a})),r.d(t,"__param",(function(){return u})),r.d(t,"__metadata",(function(){return c})),r.d(t,"__awaiter",(function(){return l})),r.d(t,"__generator",(function(){return h})),r.d(t,"__createBinding",(function(){return f})),r.d(t,"__exportStar",(function(){return d})),r.d(t,"__values",(function(){return p})),r.d(t,"__read",(function(){return v})),r.d(t,"__spread",(function(){return y})),r.d(t,"__spreadArrays",(function(){return m})),r.d(t,"__await",(function(){return b})),r.d(t,"__asyncGenerator",(function(){return g})),r.d(t,"__asyncDelegator",(function(){return w})),r.d(t,"__asyncValues",(function(){return k})),r.d(t,"__makeTemplateObject",(function(){return _})),r.d(t,"__importStar",(function(){return P})),r.d(t,"__importDefault",(function(){return E})),r.d(t,"__classPrivateFieldGet",(function(){return C})),r.d(t,"__classPrivateFieldSet",(function(){return O})); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function a(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))}function h(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function d(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function m(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function g(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function k(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},304:function(e,t,r){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,u=s(e),c=1;c<arguments.length;c++){for(var l in r=Object(arguments[c]))i.call(r,l)&&(u[l]=r[l]);if(n){a=n(r);for(var h=0;h<a.length;h++)o.call(r,a[h])&&(u[a[h]]=r[a[h]])}}return u}},38:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(3),i=r(7);function o(e,t){return function(r){return r.lift(new s(e,t))}}var s=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))},e}(),a=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return n.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(i.a)},390:function(e,t,r){"use strict"; -/** @license React v0.19.1 - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n,i,o,s,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,l=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(l,0),e}},h=Date.now();t.unstable_now=function(){return Date.now()-h},n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(l,0))},i=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},s=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,v=window.clearTimeout;if("undefined"!=typeof console){var y=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var m=d.now();t.unstable_now=function(){return d.now()-m}}var b=!1,g=null,w=-1,k=5,_=0;s=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):k=0<e?Math.floor(1e3/e):5};var P=new MessageChannel,E=P.port2;P.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();_=e+k;try{g(!0,e)?E.postMessage(null):(b=!1,g=null)}catch(e){throw E.postMessage(null),e}}else b=!1},n=function(e){g=e,b||(b=!0,E.postMessage(null))},i=function(e,r){w=p((function(){e(t.unstable_now())}),r)},o=function(){v(w),w=-1}}function C(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,i=e[n];if(!(void 0!==i&&0<S(i,t)))break e;e[n]=t,e[r]=i,r=n}}function O(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length;n<i;){var o=2*(n+1)-1,s=e[o],a=o+1,u=e[a];if(void 0!==s&&0>S(s,r))void 0!==u&&0>S(u,s)?(e[n]=u,e[a]=r,n=a):(e[n]=s,e[o]=r,n=o);else{if(!(void 0!==u&&0>S(u,r)))break e;e[n]=u,e[a]=r,n=a}}}return t}return null}function S(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var M=[],j=[],R=1,T=null,B=3,L=!1,D=!1,A=!1;function W(e){for(var t=O(j);null!==t;){if(null===t.callback)x(j);else{if(!(t.startTime<=e))break;x(j),t.sortIndex=t.expirationTime,C(M,t)}t=O(j)}}function I(e){if(A=!1,W(e),!D)if(null!==O(M))D=!0,n(N);else{var t=O(j);null!==t&&i(I,t.startTime-e)}}function N(e,r){D=!1,A&&(A=!1,o()),L=!0;var n=B;try{for(W(r),T=O(M);null!==T&&(!(T.expirationTime>r)||e&&!s());){var a=T.callback;if(null!==a){T.callback=null,B=T.priorityLevel;var u=a(T.expirationTime<=r);r=t.unstable_now(),"function"==typeof u?T.callback=u:T===O(M)&&x(M),W(r)}else x(M);T=O(M)}if(null!==T)var c=!0;else{var l=O(j);null!==l&&i(I,l.startTime-r),c=!1}return c}finally{T=null,B=n,L=!1}}function V(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var q=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||L||(D=!0,n(N))},t.unstable_getCurrentPriorityLevel=function(){return B},t.unstable_getFirstCallbackNode=function(){return O(M)},t.unstable_next=function(e){switch(B){case 1:case 2:case 3:var t=3;break;default:t=B}var r=B;B=t;try{return e()}finally{B=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=q,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=B;B=e;try{return t()}finally{B=r}},t.unstable_scheduleCallback=function(e,r,s){var a=t.unstable_now();if("object"==typeof s&&null!==s){var u=s.delay;u="number"==typeof u&&0<u?a+u:a,s="number"==typeof s.timeout?s.timeout:V(e)}else s=V(e),u=a;return e={id:R++,callback:r,priorityLevel:e,startTime:u,expirationTime:s=u+s,sortIndex:-1},u>a?(e.sortIndex=u,C(j,e),null===O(M)&&e===O(j)&&(A?o():A=!0,i(I,u-a))):(e.sortIndex=s,C(M,e),D||L||(D=!0,n(N))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();W(e);var r=O(M);return r!==T&&null!==T&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<T.expirationTime||s()},t.unstable_wrapCallback=function(e){var t=B;return function(){var r=B;B=t;try{return e.apply(this,arguments)}finally{B=r}}}},391:function(e,t,r){"use strict";var n=r(392);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},392:function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4:function(e,t,r){var n; -/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},45:function(e,t,r){"use strict";function n(e){return"function"==typeof e}r.d(t,"a",(function(){return n}))},47:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},48:function(e,t,r){"use strict";function n(e){setTimeout((function(){throw e}),0)}r.d(t,"a",(function(){return n}))},54:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},588:function(e,t,r){"use strict";e.exports=r(390)},68:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},7:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(3),i=r(45),o=r(77),s=r(13),a=r(68),u=r(23),c=r(48),l=function(e){function t(r,n,i){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.a;break;case 1:if(!r){s.destination=o.a;break}if("object"==typeof r){r instanceof t?(s.syncErrorThrowable=r.syncErrorThrowable,s.destination=r,r.add(s)):(s.syncErrorThrowable=!0,s.destination=new h(s,r));break}default:s.syncErrorThrowable=!0,s.destination=new h(s,r,n,i)}return s}return n.__extends(t,e),t.prototype[a.a]=function(){return this},t.create=function(e,r,n){var i=new t(e,r,n);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(s.a),h=function(e){function t(t,r,n,s){var a,u=e.call(this)||this;u._parentSubscriber=t;var c=u;return Object(i.a)(r)?a=r:r&&(a=r.next,n=r.error,s=r.complete,r!==o.a&&(c=Object.create(r),Object(i.a)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=a,u._error=n,u._complete=s,u}return n.__extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,r=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)r&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)r?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(c.a)(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;Object(c.a)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var r=function(){return e._complete.call(e._context)};u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw e;Object(c.a)(e)}},t.prototype.__tryOrSetError=function(e,t,r){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,r)}catch(t){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(Object(c.a)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l)},759:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return h})),r.d(t,"c",(function(){return f}));class n{constructor(){this._vector=new Float32Array,this._position=0,this._frameCount=0}get vector(){return this._vector}get position(){return this._position}get startIndex(){return 2*this._position}get frameCount(){return this._frameCount}get endIndex(){return 2*(this._position+this._frameCount)}clear(){this.receive(this._frameCount),this.rewind()}put(e){this._frameCount+=e}putSamples(e,t,r=0){const n=2*(t=t||0);r>=0||(r=(e.length-n)/2);const i=2*r;this.ensureCapacity(r+this._frameCount);const o=this.endIndex;this.vector.set(e.subarray(n,n+i),o),this._frameCount+=r}putBuffer(e,t,r=0){t=t||0,r>=0||(r=e.frameCount-t),this.putSamples(e.vector,e.position+t,r)}receive(e){e>=0&&!(e>this._frameCount)||(e=this.frameCount),this._frameCount-=e,this._position+=e}receiveSamples(e,t=0){const r=2*t,n=this.startIndex;e.set(this._vector.subarray(n,n+r)),this.receive(t)}extract(e,t=0,r=0){const n=this.startIndex+2*t,i=2*r;e.set(this._vector.subarray(n,n+i))}ensureCapacity(e=0){const t=parseInt(2*e);if(this._vector.length<t){const e=new Float32Array(t);e.set(this._vector.subarray(this.startIndex,this.endIndex)),this._vector=e,this._position=0}else this.rewind()}ensureAdditionalCapacity(e=0){this.ensureCapacity(this._frameCount+e)}rewind(){this._position>0&&(this._vector.set(this._vector.subarray(this.startIndex,this.endIndex)),this._position=0)}}class i{constructor(e){e?(this._inputBuffer=new n,this._outputBuffer=new n):this._inputBuffer=this._outputBuffer=null}get inputBuffer(){return this._inputBuffer}set inputBuffer(e){this._inputBuffer=e}get outputBuffer(){return this._outputBuffer}set outputBuffer(e){this._outputBuffer=e}clear(){this._inputBuffer.clear(),this._outputBuffer.clear()}}class o extends i{constructor(e){super(e),this.reset(),this._rate=1}set rate(e){this._rate=e}reset(){this.slopeCount=0,this.prevSampleL=0,this.prevSampleR=0}clone(){const e=new o;return e.rate=this._rate,e}process(){const e=this._inputBuffer.frameCount;this._outputBuffer.ensureAdditionalCapacity(e/this._rate+1);const t=this.transpose(e);this._inputBuffer.receive(),this._outputBuffer.put(t)}transpose(e=0){if(0===e)return 0;const t=this._inputBuffer.vector,r=this._inputBuffer.startIndex,n=this._outputBuffer.vector,i=this._outputBuffer.endIndex;let o=0,s=0;for(;this.slopeCount<1;)n[i+2*s]=(1-this.slopeCount)*this.prevSampleL+this.slopeCount*t[r],n[i+2*s+1]=(1-this.slopeCount)*this.prevSampleR+this.slopeCount*t[r+1],s+=1,this.slopeCount+=this._rate;if(this.slopeCount-=1,1!==e)e:for(;;){for(;this.slopeCount>1;)if(this.slopeCount-=1,o+=1,o>=e-1)break e;const a=r+2*o;n[i+2*s]=(1-this.slopeCount)*t[a]+this.slopeCount*t[a+2],n[i+2*s+1]=(1-this.slopeCount)*t[a+1]+this.slopeCount*t[a+3],s+=1,this.slopeCount+=this._rate}return this.prevSampleL=t[r+2*e-2],this.prevSampleR=t[r+2*e-1],s}}const s=function(){};class a extends class{constructor(e){this._pipe=e}get pipe(){return this._pipe}get inputBuffer(){return this._pipe.inputBuffer}get outputBuffer(){return this._pipe.outputBuffer}fillInputBuffer(){throw new Error("fillInputBuffer() not overridden")}fillOutputBuffer(e=0){for(;this.outputBuffer.frameCount<e;){const e=16384-this.inputBuffer.frameCount;if(this.fillInputBuffer(e),this.inputBuffer.frameCount<16384)break;this._pipe.process()}}clear(){this._pipe.clear()}}{constructor(e,t,r=s){super(t),this.callback=r,this.sourceSound=e,this.historyBufferSize=22050,this._sourcePosition=0,this.outputBufferPosition=0,this._position=0}get position(){return this._position}set position(e){if(e>this._position)throw new RangeError("New position may not be greater than current position");const t=this.outputBufferPosition-(this._position-e);if(t<0)throw new RangeError("New position falls outside of history buffer");this.outputBufferPosition=t,this._position=e}get sourcePosition(){return this._sourcePosition}set sourcePosition(e){this.clear(),this._sourcePosition=e}onEnd(){this.callback()}fillInputBuffer(e=0){const t=new Float32Array(2*e),r=this.sourceSound.extract(t,e,this._sourcePosition);this._sourcePosition+=r,this.inputBuffer.putSamples(t,0,r)}extract(e,t=0){this.fillOutputBuffer(this.outputBufferPosition+t);const r=Math.min(t,this.outputBuffer.frameCount-this.outputBufferPosition);this.outputBuffer.extract(e,this.outputBufferPosition,r);const n=this.outputBufferPosition+r;return this.outputBufferPosition=Math.min(this.historyBufferSize,n),this.outputBuffer.receive(Math.max(n-this.historyBufferSize,0)),this._position+=r,r}handleSampleData(e){this.extract(e.data,4096)}clear(){super.clear(),this.outputBufferPosition=0}}const u=[[124,186,248,310,372,434,496,558,620,682,744,806,868,930,992,1054,1116,1178,1240,1302,1364,1426,1488,0],[-100,-75,-50,-25,25,50,75,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-20,-15,-10,-5,5,10,15,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-4,-3,-2,-1,1,2,3,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]];class c extends i{constructor(e){super(e),this._quickSeek=!0,this.midBufferDirty=!1,this.midBuffer=null,this.overlapLength=0,this.autoSeqSetting=!0,this.autoSeekSetting=!0,this._tempo=1,this.setParameters(44100,0,0,8)}clear(){super.clear(),this.clearMidBuffer()}clearMidBuffer(){this.midBufferDirty&&(this.midBufferDirty=!1,this.midBuffer=null)}setParameters(e,t,r,n){e>0&&(this.sampleRate=e),n>0&&(this.overlapMs=n),t>0?(this.sequenceMs=t,this.autoSeqSetting=!1):this.autoSeqSetting=!0,r>0?(this.seekWindowMs=r,this.autoSeekSetting=!1):this.autoSeekSetting=!0,this.calculateSequenceParameters(),this.calculateOverlapLength(this.overlapMs),this.tempo=this._tempo}set tempo(e){let t;this._tempo=e,this.calculateSequenceParameters(),this.nominalSkip=this._tempo*(this.seekWindowLength-this.overlapLength),this.skipFract=0,t=Math.floor(this.nominalSkip+.5),this.sampleReq=Math.max(t+this.overlapLength,this.seekWindowLength)+this.seekLength}get tempo(){return this._tempo}get inputChunkSize(){return this.sampleReq}get outputChunkSize(){return this.overlapLength+Math.max(0,this.seekWindowLength-2*this.overlapLength)}calculateOverlapLength(e=0){let t;t=this.sampleRate*e/1e3,t=t<16?16:t,t-=t%8,this.overlapLength=t,this.refMidBuffer=new Float32Array(2*this.overlapLength),this.midBuffer=new Float32Array(2*this.overlapLength)}checkLimits(e,t,r){return e<t?t:e>r?r:e}calculateSequenceParameters(){let e,t;this.autoSeqSetting&&(e=150+-50*this._tempo,e=this.checkLimits(e,50,125),this.sequenceMs=Math.floor(e+.5)),this.autoSeekSetting&&(t=25- -10/1.5*.5+-10/1.5*this._tempo,t=this.checkLimits(t,15,25),this.seekWindowMs=Math.floor(t+.5)),this.seekWindowLength=Math.floor(this.sampleRate*this.sequenceMs/1e3),this.seekLength=Math.floor(this.sampleRate*this.seekWindowMs/1e3)}set quickSeek(e){this._quickSeek=e}clone(){const e=new c;return e.tempo=this._tempo,e.setParameters(this.sampleRate,this.sequenceMs,this.seekWindowMs,this.overlapMs),e}seekBestOverlapPosition(){return this._quickSeek?this.seekBestOverlapPositionStereoQuick():this.seekBestOverlapPositionStereo()}seekBestOverlapPositionStereo(){let e,t,r,n=0;for(this.preCalculateCorrelationReferenceStereo(),e=0,t=Number.MIN_VALUE;n<this.seekLength;n+=1)r=this.calculateCrossCorrelationStereo(2*n,this.refMidBuffer),r>t&&(t=r,e=n);return e}seekBestOverlapPositionStereoQuick(){let e,t,r,n,i,o=0;for(this.preCalculateCorrelationReferenceStereo(),t=Number.MIN_VALUE,e=0,n=0,i=0;o<4;o+=1){let s=0;for(;u[o][s]&&(i=n+u[o][s],!(i>=this.seekLength));)r=this.calculateCrossCorrelationStereo(2*i,this.refMidBuffer),r>t&&(t=r,e=i),s+=1;n=e}return e}preCalculateCorrelationReferenceStereo(){let e,t,r=0;for(;r<this.overlapLength;r+=1)t=r*(this.overlapLength-r),e=2*r,this.refMidBuffer[e]=this.midBuffer[e]*t,this.refMidBuffer[e+1]=this.midBuffer[e+1]*t}calculateCrossCorrelationStereo(e,t){const r=this._inputBuffer.vector;e+=this._inputBuffer.startIndex;let n=0,i=2;const o=2*this.overlapLength;let s;for(;i<o;i+=2)s=i+e,n+=r[s]*t[i]+r[s+1]*t[i+1];return n}overlap(e){this.overlapStereo(2*e)}overlapStereo(e){const t=this._inputBuffer.vector;e+=this._inputBuffer.startIndex;const r=this._outputBuffer.vector,n=this._outputBuffer.endIndex;let i,o,s=0;const a=1/this.overlapLength;let u,c,l;for(;s<this.overlapLength;s+=1)o=(this.overlapLength-s)*a,u=s*a,i=2*s,c=i+e,l=i+n,r[l+0]=t[c+0]*u+this.midBuffer[i+0]*o,r[l+1]=t[c+1]*u+this.midBuffer[i+1]*o}process(){let e,t,r;if(null===this.midBuffer){if(this._inputBuffer.frameCount<this.overlapLength)return;this.midBuffer=new Float32Array(2*this.overlapLength),this._inputBuffer.receiveSamples(this.midBuffer,this.overlapLength)}for(;this._inputBuffer.frameCount>=this.sampleReq;){e=this.seekBestOverlapPosition(),this._outputBuffer.ensureAdditionalCapacity(this.overlapLength),this.overlap(Math.floor(e)),this._outputBuffer.put(this.overlapLength),t=this.seekWindowLength-2*this.overlapLength,t>0&&this._outputBuffer.putBuffer(this._inputBuffer,e+this.overlapLength,t);const n=this._inputBuffer.startIndex+2*(e+this.seekWindowLength-this.overlapLength);this.midBuffer.set(this._inputBuffer.vector.subarray(n,n+2*this.overlapLength)),this.skipFract+=this.nominalSkip,r=Math.floor(this.skipFract),this.skipFract-=r,this._inputBuffer.receive(r)}}}const l=function(e,t){return(e>t?e-t:t-e)>1e-10};class h{constructor(){this.transposer=new o(!1),this.stretch=new c(!1),this._inputBuffer=new n,this._intermediateBuffer=new n,this._outputBuffer=new n,this._rate=0,this._tempo=0,this.virtualPitch=1,this.virtualRate=1,this.virtualTempo=1,this.calculateEffectiveRateAndTempo()}clear(){this.transposer.clear(),this.stretch.clear()}clone(){const e=new h;return e.rate=this.rate,e.tempo=this.tempo,e}get rate(){return this._rate}set rate(e){this.virtualRate=e,this.calculateEffectiveRateAndTempo()}set rateChange(e){this._rate=1+.01*e}get tempo(){return this._tempo}set tempo(e){this.virtualTempo=e,this.calculateEffectiveRateAndTempo()}set tempoChange(e){this.tempo=1+.01*e}set pitch(e){this.virtualPitch=e,this.calculateEffectiveRateAndTempo()}set pitchOctaves(e){this.pitch=Math.exp(.69314718056*e),this.calculateEffectiveRateAndTempo()}set pitchSemitones(e){this.pitchOctaves=e/12}get inputBuffer(){return this._inputBuffer}get outputBuffer(){return this._outputBuffer}calculateEffectiveRateAndTempo(){const e=this._tempo,t=this._rate;this._tempo=this.virtualTempo/this.virtualPitch,this._rate=this.virtualRate*this.virtualPitch,l(this._tempo,e)&&(this.stretch.tempo=this._tempo),l(this._rate,t)&&(this.transposer.rate=this._rate),this._rate>1?this._outputBuffer!=this.transposer.outputBuffer&&(this.stretch.inputBuffer=this._inputBuffer,this.stretch.outputBuffer=this._intermediateBuffer,this.transposer.inputBuffer=this._intermediateBuffer,this.transposer.outputBuffer=this._outputBuffer):this._outputBuffer!=this.stretch.outputBuffer&&(this.transposer.inputBuffer=this._inputBuffer,this.transposer.outputBuffer=this._intermediateBuffer,this.stretch.inputBuffer=this._intermediateBuffer,this.stretch.outputBuffer=this._outputBuffer)}process(){this._rate>1?(this.stretch.process(),this.transposer.process()):(this.transposer.process(),this.stretch.process())}}const f=function(e,t,r=s,n=4096){const i=e.createScriptProcessor(n,2,2),o=new Float32Array(2*n);return i.onaudioprocess=e=>{let i=e.outputBuffer.getChannelData(0),s=e.outputBuffer.getChannelData(1),a=t.extract(o,n);r(t.sourcePosition),0===a&&t.onEnd();let u=0;for(;u<a;u++)i[u]=o[2*u],s[u]=o[2*u+1]},i}},76:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(8),i=r(54),o=r(45),s=r(10);function a(e,t,r){return r?a(e,t).pipe(Object(s.a)((function(e){return Object(i.a)(e)?r.apply(void 0,e):r(e)}))):new n.a((function(r){var n,i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.next(1===e.length?e[0]:e)};try{n=e(i)}catch(e){return void r.error(e)}if(Object(o.a)(t))return function(){return t(i,n)}}))}},77:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(23),i=r(48),o={closed:!0,next:function(e){},error:function(e){if(n.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}},8:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(7);var i=r(68),o=r(77);var s=r(47),a=r(115);function u(e){return 0===e.length?a.a:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var c=r(23),l=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var s=this.operator,a=function(e,t,r){if(e){if(e instanceof n.a)return e;if(e[i.a])return e[i.a]()}return e||t||r?new n.a(e,t,r):new n.a(o.a)}(e,t,r);if(s?a.add(s.call(a,this.source)):a.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,r=t.closed,i=t.destination,o=t.isStopped;if(r||o)return!1;e=i&&i instanceof n.a?i:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=h(t))((function(t,n){var i;i=r.subscribe((function(t){try{e(t)}catch(e){n(e),i&&i.unsubscribe()}}),n,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[s.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:u(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=h(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function h(e){if(e||(e=c.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},958:function(e,t,r){window,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ajax",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"getId",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"max",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"min",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Observer",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"extend",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"style",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"requestAnimationFrame",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"frame",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"preventClick",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"fetchFile",{enumerable:!0,get:function(){return p.default}});var n=v(r(7)),i=v(r(2)),o=v(r(8)),s=v(r(9)),a=v(r(1)),u=v(r(10)),c=v(r(3)),l=v(r(4)),h=v(r(11)),f=v(r(12)),d=v(r(13)),p=v(r(14));function v(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.handlers=null}var t,r;return t=e,(r=[{key:"on",value:function(e,t){var r=this;this.handlers||(this.handlers={});var n=this.handlers[e];return n||(n=this.handlers[e]=[]),n.push(t),{name:e,callback:t,un:function(e,t){return r.un(e,t)}}}},{key:"un",value:function(e,t){if(this.handlers){var r,n=this.handlers[e];if(n)if(t)for(r=n.length-1;r>=0;r--)n[r]==t&&n.splice(r,1);else n.length=0}}},{key:"unAll",value:function(){this.handlers=null}},{key:"once",value:function(e,t){var r=this;return this.on(e,(function n(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];t.apply(r,o),setTimeout((function(){r.un(e,n)}),0)}))}},{key:"fireEvent",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(this.handlers){var i=this.handlers[e];i&&i.forEach((function(e){e.apply(void 0,r)}))}}}])&&n(t.prototype,r),e}();t.default=i,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return void 0===e&&(e="wavesurfer_"),e+Math.random().toString(32).substring(2)},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Object.keys(t).forEach((function(r){e.style[r]!==t[r]&&(e.style[r]=t[r])})),e},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){return setTimeout(e,1e3/60)}).bind(window);t.default=n,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(0));function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h="playing",f="paused",d="finished",p=function(e){function t(e){var r,n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=s(this,a(t).call(this))).audioContext=null,i.offlineAudioContext=null,i.stateBehaviors=(o(r={},h,{init:function(){this.addOnAudioProcess()},getPlayedPercents:function(){var e=this.getDuration();return this.getCurrentTime()/e||0},getCurrentTime:function(){return this.startPosition+this.getPlayedTime()}}),o(r,f,{init:function(){this.removeOnAudioProcess()},getPlayedPercents:function(){var e=this.getDuration();return this.getCurrentTime()/e||0},getCurrentTime:function(){return this.startPosition}}),o(r,d,{init:function(){this.removeOnAudioProcess(),this.fireEvent("finish")},getPlayedPercents:function(){return 1},getCurrentTime:function(){return this.getDuration()}}),r),i.params=e,i.ac=e.audioContext||(i.supportsWebAudio()?i.getAudioContext():{}),i.lastPlay=i.ac.currentTime,i.startPosition=0,i.scheduledPause=null,i.states=(o(n={},h,Object.create(i.stateBehaviors[h])),o(n,f,Object.create(i.stateBehaviors[f])),o(n,d,Object.create(i.stateBehaviors[d])),n),i.analyser=null,i.buffer=null,i.filters=[],i.gainNode=null,i.mergedPeaks=null,i.offlineAc=null,i.peaks=null,i.playbackRate=1,i.analyser=null,i.scriptNode=null,i.source=null,i.splitPeaks=[],i.state=null,i.explicitDuration=e.duration,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,n.Observer),c(t,[{key:"supportsWebAudio",value:function(){return!(!window.AudioContext&&!window.webkitAudioContext)}},{key:"getAudioContext",value:function(){return window.WaveSurferAudioContext||(window.WaveSurferAudioContext=new(window.AudioContext||window.webkitAudioContext)),window.WaveSurferAudioContext}},{key:"getOfflineAudioContext",value:function(e){return window.WaveSurferOfflineAudioContext||(window.WaveSurferOfflineAudioContext=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,2,e)),window.WaveSurferOfflineAudioContext}}]),c(t,[{key:"init",value:function(){this.createVolumeNode(),this.createScriptNode(),this.createAnalyserNode(),this.setState(f),this.setPlaybackRate(this.params.audioRate),this.setLength(0)}},{key:"disconnectFilters",value:function(){this.filters&&(this.filters.forEach((function(e){e&&e.disconnect()})),this.filters=null,this.analyser.connect(this.gainNode))}},{key:"setState",value:function(e){this.state!==this.states[e]&&(this.state=this.states[e],this.state.init.call(this))}},{key:"setFilter",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.setFilters(t)}},{key:"setFilters",value:function(e){this.disconnectFilters(),e&&e.length&&(this.filters=e,this.analyser.disconnect(),e.reduce((function(e,t){return e.connect(t),t}),this.analyser).connect(this.gainNode))}},{key:"createScriptNode",value:function(){this.params.audioScriptProcessor?this.scriptNode=this.params.audioScriptProcessor:this.ac.createScriptProcessor?this.scriptNode=this.ac.createScriptProcessor(t.scriptBufferSize):this.scriptNode=this.ac.createJavaScriptNode(t.scriptBufferSize),this.scriptNode.connect(this.ac.destination)}},{key:"addOnAudioProcess",value:function(){var e=this;this.scriptNode.onaudioprocess=function(){var t=e.getCurrentTime();t>=e.getDuration()?(e.setState(d),e.fireEvent("pause")):t>=e.scheduledPause?e.pause():e.state===e.states[h]&&e.fireEvent("audioprocess",t)}}},{key:"removeOnAudioProcess",value:function(){this.scriptNode.onaudioprocess=function(){}}},{key:"createAnalyserNode",value:function(){this.analyser=this.ac.createAnalyser(),this.analyser.connect(this.gainNode)}},{key:"createVolumeNode",value:function(){this.ac.createGain?this.gainNode=this.ac.createGain():this.gainNode=this.ac.createGainNode(),this.gainNode.connect(this.ac.destination)}},{key:"setSinkId",value:function(e){if(e){var t=new window.Audio;if(!t.setSinkId)return Promise.reject(new Error("setSinkId is not supported in your browser"));t.autoplay=!0;var r=this.ac.createMediaStreamDestination();return this.gainNode.disconnect(),this.gainNode.connect(r),t.srcObject=r.stream,t.setSinkId(e)}return Promise.reject(new Error("Invalid deviceId: "+e))}},{key:"setVolume",value:function(e){this.gainNode.gain.setValueAtTime(e,this.ac.currentTime)}},{key:"getVolume",value:function(){return this.gainNode.gain.value}},{key:"decodeArrayBuffer",value:function(e,t,r){this.offlineAc||(this.offlineAc=this.getOfflineAudioContext(this.ac&&this.ac.sampleRate?this.ac.sampleRate:44100)),this.offlineAc.decodeAudioData(e,(function(e){return t(e)}),r)}},{key:"setPeaks",value:function(e,t){null!=t&&(this.explicitDuration=t),this.peaks=e}},{key:"setLength",value:function(e){if(!this.mergedPeaks||e!=2*this.mergedPeaks.length-1+2){this.splitPeaks=[],this.mergedPeaks=[];var t,r=this.buffer?this.buffer.numberOfChannels:1;for(t=0;t<r;t++)this.splitPeaks[t]=[],this.splitPeaks[t][2*(e-1)]=0,this.splitPeaks[t][2*(e-1)+1]=0;this.mergedPeaks[2*(e-1)]=0,this.mergedPeaks[2*(e-1)+1]=0}}},{key:"getPeaks",value:function(e,t,r){if(this.peaks)return this.peaks;if(!this.buffer)return[];if(t=t||0,r=r||e-1,this.setLength(e),!this.buffer)return this.params.splitChannels?this.splitPeaks:this.mergedPeaks;if(!this.buffer.length){var n=this.createBuffer(1,4096,this.sampleRate);this.buffer=n.buffer}var i,o=this.buffer.length/e,s=~~(o/10)||1,a=this.buffer.numberOfChannels;for(i=0;i<a;i++){var u=this.splitPeaks[i],c=this.buffer.getChannelData(i),l=void 0;for(l=t;l<=r;l++){var h=~~(l*o),f=~~(h+o),d=0,p=0,v=void 0;for(v=h;v<f;v+=s){var y=c[v];y>p&&(p=y),y<d&&(d=y)}u[2*l]=p,u[2*l+1]=d,(0==i||p>this.mergedPeaks[2*l])&&(this.mergedPeaks[2*l]=p),(0==i||d<this.mergedPeaks[2*l+1])&&(this.mergedPeaks[2*l+1]=d)}}return this.params.splitChannels?this.splitPeaks:this.mergedPeaks}},{key:"getPlayedPercents",value:function(){return this.state.getPlayedPercents.call(this)}},{key:"disconnectSource",value:function(){this.source&&this.source.disconnect()}},{key:"destroy",value:function(){this.isPaused()||this.pause(),this.unAll(),this.buffer=null,this.disconnectFilters(),this.disconnectSource(),this.gainNode.disconnect(),this.scriptNode.disconnect(),this.analyser.disconnect(),this.params.closeAudioContext&&("function"==typeof this.ac.close&&"closed"!=this.ac.state&&this.ac.close(),this.ac=null,this.params.audioContext?this.params.audioContext=null:window.WaveSurferAudioContext=null,window.WaveSurferOfflineAudioContext=null)}},{key:"load",value:function(e){this.startPosition=0,this.lastPlay=this.ac.currentTime,this.buffer=e,this.createSource()}},{key:"createSource",value:function(){this.disconnectSource(),this.source=this.ac.createBufferSource(),this.source.start=this.source.start||this.source.noteGrainOn,this.source.stop=this.source.stop||this.source.noteOff,this.source.playbackRate.setValueAtTime(this.playbackRate,this.ac.currentTime),this.source.buffer=this.buffer,this.source.connect(this.analyser)}},{key:"isPaused",value:function(){return this.state!==this.states[h]}},{key:"getDuration",value:function(){return this.explicitDuration?this.explicitDuration:this.buffer?this.buffer.duration:0}},{key:"seekTo",value:function(e,t){if(this.buffer)return this.scheduledPause=null,null==e&&(e=this.getCurrentTime())>=this.getDuration()&&(e=0),null==t&&(t=this.getDuration()),this.startPosition=e,this.lastPlay=this.ac.currentTime,this.state===this.states[d]&&this.setState(f),{start:e,end:t}}},{key:"getPlayedTime",value:function(){return(this.ac.currentTime-this.lastPlay)*this.playbackRate}},{key:"play",value:function(e,t){if(this.buffer){this.createSource();var r=this.seekTo(e,t);e=r.start,t=r.end,this.scheduledPause=t,this.source.start(0,e,t-e),"suspended"==this.ac.state&&this.ac.resume&&this.ac.resume(),this.setState(h),this.fireEvent("play")}}},{key:"pause",value:function(){this.scheduledPause=null,this.startPosition+=this.getPlayedTime(),this.source&&this.source.stop(0),this.setState(f),this.fireEvent("pause")}},{key:"getCurrentTime",value:function(){return this.state.getCurrentTime.call(this)}},{key:"getPlaybackRate",value:function(){return this.playbackRate}},{key:"setPlaybackRate",value:function(e){e=e||1,this.isPaused()?this.playbackRate=e:(this.pause(),this.playbackRate=e,this.play())}}]),t}();t.default=p,p.scriptBufferSize=256,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(0)),i=u(r(15)),o=u(r(5)),s=u(r(18)),a=u(r(19));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?f(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}var y=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=l(this,h(t).call(this))).defaultParams={audioContext:null,audioScriptProcessor:null,audioRate:1,autoCenter:!0,backend:"WebAudio",backgroundColor:null,barHeight:1,barGap:null,container:null,cursorColor:"#333",cursorWidth:1,dragSelection:!0,duration:null,fillParent:!0,forceDecode:!1,height:128,hideScrollbar:!1,interact:!0,loopSelection:!0,maxCanvasWidth:4e3,mediaContainer:null,mediaControls:!1,mediaType:"audio",minPxPerSec:20,normalize:!1,partialRender:!1,pixelRatio:window.devicePixelRatio||screen.deviceXDPI/screen.logicalXDPI,plugins:[],progressColor:"#555",removeMediaElementOnDestroy:!0,renderer:i.default,responsive:!1,rtl:!1,scrollParent:!1,skipLength:2,splitChannels:!1,waveColor:"#999",xhr:{}},r.backends={MediaElement:s.default,WebAudio:o.default},r.util=n,r.params=n.extend({},r.defaultParams,e),r.container="string"==typeof e.container?document.querySelector(r.params.container):r.params.container,!r.container)throw new Error("Container element not found");if(null==r.params.mediaContainer?r.mediaContainer=r.container:"string"==typeof r.params.mediaContainer?r.mediaContainer=document.querySelector(r.params.mediaContainer):r.mediaContainer=r.params.mediaContainer,!r.mediaContainer)throw new Error("Media Container element not found");if(r.params.maxCanvasWidth<=1)throw new Error("maxCanvasWidth must be greater than 1");if(r.params.maxCanvasWidth%2==1)throw new Error("maxCanvasWidth must be an even number");if(!0===r.params.rtl&&n.style(r.container,{transform:"rotateY(180deg)"}),r.params.backgroundColor&&r.setBackgroundColor(r.params.backgroundColor),r.savedVolume=0,r.isMuted=!1,r.tmpEvents=[],r.currentRequest=null,r.arraybuffer=null,r.drawer=null,r.backend=null,r.peakCache=null,"function"!=typeof r.params.renderer)throw new Error("Renderer parameter is invalid");r.Drawer=r.params.renderer,r.Backend=r.backends[r.params.backend],r.initialisedPluginList={},r.isDestroyed=!1,r.isReady=!1;var a=0;return r._onResize=n.debounce((function(){a==r.drawer.wrapper.clientWidth||r.params.scrollParent||(a=r.drawer.wrapper.clientWidth,r.drawer.fireEvent("redraw"))}),"number"==typeof r.params.responsive?r.params.responsive:100),l(r,f(r))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,n.Observer),v(t,null,[{key:"create",value:function(e){return new t(e).init()}}]),v(t,[{key:"init",value:function(){return this.registerPlugins(this.params.plugins),this.createDrawer(),this.createBackend(),this.createPeakCache(),this}},{key:"registerPlugins",value:function(e){var t=this;return e.forEach((function(e){return t.addPlugin(e)})),e.forEach((function(e){e.deferInit||t.initPlugin(e.name)})),this.fireEvent("plugins-registered",e),this}},{key:"getActivePlugins",value:function(){return this.initialisedPluginList}},{key:"addPlugin",value:function(e){var t=this;if(!e.name)throw new Error("Plugin does not have a name!");if(!e.instance)throw new Error("Plugin ".concat(e.name," does not have an instance property!"));e.staticProps&&Object.keys(e.staticProps).forEach((function(r){t[r]=e.staticProps[r]}));var r=e.instance;return Object.getOwnPropertyNames(n.Observer.prototype).forEach((function(e){r.prototype[e]=n.Observer.prototype[e]})),this[e.name]=new r(e.params||{},this),this.fireEvent("plugin-added",e.name),this}},{key:"initPlugin",value:function(e){if(!this[e])throw new Error("Plugin ".concat(e," has not been added yet!"));return this.initialisedPluginList[e]&&this.destroyPlugin(e),this[e].init(),this.initialisedPluginList[e]=!0,this.fireEvent("plugin-initialised",e),this}},{key:"destroyPlugin",value:function(e){if(!this[e])throw new Error("Plugin ".concat(e," has not been added yet and cannot be destroyed!"));if(!this.initialisedPluginList[e])throw new Error("Plugin ".concat(e," is not active and cannot be destroyed!"));if("function"!=typeof this[e].destroy)throw new Error("Plugin ".concat(e," does not have a destroy function!"));return this[e].destroy(),delete this.initialisedPluginList[e],this.fireEvent("plugin-destroyed",e),this}},{key:"destroyAllPlugins",value:function(){var e=this;Object.keys(this.initialisedPluginList).forEach((function(t){return e.destroyPlugin(t)}))}},{key:"createDrawer",value:function(){var e=this;this.drawer=new this.Drawer(this.container,this.params),this.drawer.init(),this.fireEvent("drawer-created",this.drawer),!1!==this.params.responsive&&(window.addEventListener("resize",this._onResize,!0),window.addEventListener("orientationchange",this._onResize,!0)),this.drawer.on("redraw",(function(){e.drawBuffer(),e.drawer.progress(e.backend.getPlayedPercents())})),this.drawer.on("click",(function(t,r){setTimeout((function(){return e.seekTo(r)}),0)})),this.drawer.on("scroll",(function(t){e.params.partialRender&&e.drawBuffer(),e.fireEvent("scroll",t)}))}},{key:"createBackend",value:function(){var e=this;this.backend&&this.backend.destroy(),"AudioElement"==this.params.backend&&(this.params.backend="MediaElement"),"WebAudio"!=this.params.backend||this.Backend.prototype.supportsWebAudio.call(null)||(this.params.backend="MediaElement"),this.backend=new this.Backend(this.params),this.backend.init(),this.fireEvent("backend-created",this.backend),this.backend.on("finish",(function(){e.drawer.progress(e.backend.getPlayedPercents()),e.fireEvent("finish")})),this.backend.on("play",(function(){return e.fireEvent("play")})),this.backend.on("pause",(function(){return e.fireEvent("pause")})),this.backend.on("audioprocess",(function(t){e.drawer.progress(e.backend.getPlayedPercents()),e.fireEvent("audioprocess",t)})),"MediaElement"===this.params.backend&&(this.backend.on("seek",(function(){e.drawer.progress(e.backend.getPlayedPercents())})),this.backend.on("volume",(function(){var t=e.getVolume();e.fireEvent("volume",t),e.backend.isMuted!==e.isMuted&&(e.isMuted=e.backend.isMuted,e.fireEvent("mute",e.isMuted))})))}},{key:"createPeakCache",value:function(){this.params.partialRender&&(this.peakCache=new a.default)}},{key:"getDuration",value:function(){return this.backend.getDuration()}},{key:"getCurrentTime",value:function(){return this.backend.getCurrentTime()}},{key:"setCurrentTime",value:function(e){e>=this.getDuration()?this.seekTo(1):this.seekTo(e/this.getDuration())}},{key:"play",value:function(e,t){var r=this;return this.fireEvent("interaction",(function(){return r.play(e,t)})),this.backend.play(e,t)}},{key:"pause",value:function(){if(!this.backend.isPaused())return this.backend.pause()}},{key:"playPause",value:function(){return this.backend.isPaused()?this.play():this.pause()}},{key:"isPlaying",value:function(){return!this.backend.isPaused()}},{key:"skipBackward",value:function(e){this.skip(-e||-this.params.skipLength)}},{key:"skipForward",value:function(e){this.skip(e||this.params.skipLength)}},{key:"skip",value:function(e){var t=this.getDuration()||1,r=this.getCurrentTime()||0;r=Math.max(0,Math.min(t,r+(e||0))),this.seekAndCenter(r/t)}},{key:"seekAndCenter",value:function(e){this.seekTo(e),this.drawer.recenter(e)}},{key:"seekTo",value:function(e){var t=this;if("number"!=typeof e||!isFinite(e)||e<0||e>1)throw new Error("Error calling wavesurfer.seekTo, parameter must be a number between 0 and 1!");this.fireEvent("interaction",(function(){return t.seekTo(e)}));var r=this.backend.isPaused();r||this.backend.pause();var n=this.params.scrollParent;this.params.scrollParent=!1,this.backend.seekTo(e*this.getDuration()),this.drawer.progress(e),r||this.backend.play(),this.params.scrollParent=n,this.fireEvent("seek",e)}},{key:"stop",value:function(){this.pause(),this.seekTo(0),this.drawer.progress(0)}},{key:"setSinkId",value:function(e){return this.backend.setSinkId(e)}},{key:"setVolume",value:function(e){this.backend.setVolume(e),this.fireEvent("volume",e)}},{key:"getVolume",value:function(){return this.backend.getVolume()}},{key:"setPlaybackRate",value:function(e){this.backend.setPlaybackRate(e)}},{key:"getPlaybackRate",value:function(){return this.backend.getPlaybackRate()}},{key:"toggleMute",value:function(){this.setMute(!this.isMuted)}},{key:"setMute",value:function(e){e!==this.isMuted?(e?(this.savedVolume=this.backend.getVolume(),this.backend.setVolume(0),this.isMuted=!0,this.fireEvent("volume",0)):(this.backend.setVolume(this.savedVolume),this.isMuted=!1,this.fireEvent("volume",this.savedVolume)),this.fireEvent("mute",this.isMuted)):this.fireEvent("mute",this.isMuted)}},{key:"getMute",value:function(){return this.isMuted}},{key:"getFilters",value:function(){return this.backend.filters||[]}},{key:"toggleScroll",value:function(){this.params.scrollParent=!this.params.scrollParent,this.drawBuffer()}},{key:"toggleInteraction",value:function(){this.params.interact=!this.params.interact}},{key:"getWaveColor",value:function(){return this.params.waveColor}},{key:"setWaveColor",value:function(e){this.params.waveColor=e,this.drawBuffer()}},{key:"getProgressColor",value:function(){return this.params.progressColor}},{key:"setProgressColor",value:function(e){this.params.progressColor=e,this.drawBuffer()}},{key:"getBackgroundColor",value:function(){return this.params.backgroundColor}},{key:"setBackgroundColor",value:function(e){this.params.backgroundColor=e,n.style(this.container,{background:this.params.backgroundColor})}},{key:"getCursorColor",value:function(){return this.params.cursorColor}},{key:"setCursorColor",value:function(e){this.params.cursorColor=e,this.drawer.updateCursor()}},{key:"getHeight",value:function(){return this.params.height}},{key:"setHeight",value:function(e){this.params.height=e,this.drawer.setHeight(e*this.params.pixelRatio),this.drawBuffer()}},{key:"drawBuffer",value:function(){var e,t=Math.round(this.getDuration()*this.params.minPxPerSec*this.params.pixelRatio),r=this.drawer.getWidth(),n=t,i=0,o=Math.max(i+r,n);if(this.params.fillParent&&(!this.params.scrollParent||t<r)&&(i=0,o=n=r),this.params.partialRender){var s,a=this.peakCache.addRangeToPeakCache(n,i,o);for(s=0;s<a.length;s++)e=this.backend.getPeaks(n,a[s][0],a[s][1]),this.drawer.drawPeaks(e,n,a[s][0],a[s][1])}else e=this.backend.getPeaks(n,i,o),this.drawer.drawPeaks(e,n,i,o);this.fireEvent("redraw",e,n)}},{key:"zoom",value:function(e){e?(this.params.minPxPerSec=e,this.params.scrollParent=!0):(this.params.minPxPerSec=this.defaultParams.minPxPerSec,this.params.scrollParent=!1),this.drawBuffer(),this.drawer.progress(this.backend.getPlayedPercents()),this.drawer.recenter(this.getCurrentTime()/this.getDuration()),this.fireEvent("zoom",e)}},{key:"loadArrayBuffer",value:function(e){var t=this;this.decodeArrayBuffer(e,(function(e){t.isDestroyed||t.loadDecodedBuffer(e)}))}},{key:"loadDecodedBuffer",value:function(e){this.backend.load(e),this.drawBuffer(),this.fireEvent("ready"),this.isReady=!0}},{key:"loadBlob",value:function(e){var t=this,r=new FileReader;r.addEventListener("progress",(function(e){return t.onProgress(e)})),r.addEventListener("load",(function(e){return t.loadArrayBuffer(e.target.result)})),r.addEventListener("error",(function(){return t.fireEvent("error","Error reading file")})),r.readAsArrayBuffer(e),this.empty()}},{key:"load",value:function(e,t,r,n){if(this.empty(),r){var i={"Preload is not 'auto', 'none' or 'metadata'":-1===["auto","metadata","none"].indexOf(r),"Peaks are not provided":!t,"Backend is not of type MediaElement":"MediaElement"!==this.params.backend,"Url is not of type string":"string"!=typeof e},o=Object.keys(i).filter((function(e){return i[e]}));o.length&&(console.warn("Preload parameter of wavesurfer.load will be ignored because:\n\t- "+o.join("\n\t- ")),r=null)}switch(this.params.backend){case"WebAudio":return this.loadBuffer(e,t,n);case"MediaElement":return this.loadMediaElement(e,t,r,n)}}},{key:"loadBuffer",value:function(e,t,r){var n=this,i=function(t){return t&&n.tmpEvents.push(n.once("ready",t)),n.getArrayBuffer(e,(function(e){return n.loadArrayBuffer(e)}))};if(!t)return i();this.backend.setPeaks(t,r),this.drawBuffer(),this.tmpEvents.push(this.once("interaction",i))}},{key:"loadMediaElement",value:function(e,t,r,n){var i=this,o=e;if("string"==typeof e)this.backend.load(o,this.mediaContainer,t,r);else{var s=e;this.backend.loadElt(s,t),o=s.src}this.tmpEvents.push(this.backend.once("canplay",(function(){i.drawBuffer(),i.fireEvent("ready"),i.isReady=!0})),this.backend.once("error",(function(e){return i.fireEvent("error",e)}))),t&&this.backend.setPeaks(t,n),t&&!this.params.forceDecode||!this.backend.supportsWebAudio()||this.getArrayBuffer(o,(function(e){i.decodeArrayBuffer(e,(function(e){i.backend.buffer=e,i.backend.setPeaks(null),i.drawBuffer(),i.fireEvent("waveform-ready")}))}))}},{key:"decodeArrayBuffer",value:function(e,t){var r=this;this.arraybuffer=e,this.backend.decodeArrayBuffer(e,(function(n){r.isDestroyed||r.arraybuffer!=e||(t(n),r.arraybuffer=null)}),(function(){return r.fireEvent("error","Error decoding audiobuffer")}))}},{key:"getArrayBuffer",value:function(e,t){var r=this,i=n.extend({url:e,responseType:"arraybuffer"},this.params.xhr),o=n.fetchFile(i);return this.currentRequest=o,this.tmpEvents.push(o.on("progress",(function(e){r.onProgress(e)})),o.on("success",(function(e){t(e),r.currentRequest=null})),o.on("error",(function(e){r.fireEvent("error","fetch error: "+e.message),r.currentRequest=null}))),o}},{key:"onProgress",value:function(e){var t;t=e.lengthComputable?e.loaded/e.total:e.loaded/(e.loaded+1e6),this.fireEvent("loading",Math.round(100*t),e.target)}},{key:"exportPCM",value:function(e,t,r,n){e=e||1024,n=n||0,t=t||1e4,r=r||!1;var i=this.backend.getPeaks(e,n),o=[].map.call(i,(function(e){return Math.round(e*t)/t})),s=JSON.stringify(o);return r||window.open("data:application/json;charset=utf-8,"+encodeURIComponent(s)),s}},{key:"exportImage",value:function(e,t,r){return e||(e="image/png"),t||(t=1),r||(r="dataURL"),this.drawer.getImage(e,t,r)}},{key:"cancelAjax",value:function(){this.currentRequest&&this.currentRequest.controller&&(this.currentRequest.controller.abort(),this.currentRequest=null)}},{key:"clearTmpEvents",value:function(){this.tmpEvents.forEach((function(e){return e.un()}))}},{key:"empty",value:function(){this.backend.isPaused()||(this.stop(),this.backend.disconnectSource()),this.isReady=!1,this.cancelAjax(),this.clearTmpEvents(),this.drawer.progress(0),this.drawer.setWidth(0),this.drawer.drawPeaks({length:this.drawer.getWidth()},0)}},{key:"destroy",value:function(){this.destroyAllPlugins(),this.fireEvent("destroy"),this.cancelAjax(),this.clearTmpEvents(),this.unAll(),!1!==this.params.responsive&&(window.removeEventListener("resize",this._onResize,!0),window.removeEventListener("orientationchange",this._onResize,!0)),this.backend.destroy(),this.drawer.destroy(),this.isDestroyed=!0,this.isReady=!1,this.arraybuffer=null}}]),t}();t.default=y,y.VERSION="3.0.0",y.util=n,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new i.default,r=new XMLHttpRequest,n=!1;return r.open(e.method||"GET",e.url,!0),r.responseType=e.responseType||"json",e.xhr&&(e.xhr.requestHeaders&&e.xhr.requestHeaders.forEach((function(e){r.setRequestHeader(e.key,e.value)})),e.xhr.withCredentials&&(r.withCredentials=!0)),r.addEventListener("progress",(function(e){t.fireEvent("progress",e),e.lengthComputable&&e.loaded==e.total&&(n=!0)})),r.addEventListener("load",(function(e){n||t.fireEvent("progress",e),t.fireEvent("load",e),200==r.status||206==r.status?t.fireEvent("success",r.response,e):t.fireEvent("error",e)})),r.addEventListener("error",(function(e){return t.fireEvent("error",e)})),r.send(),t.xhr=r,t};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=-1/0;return Object.keys(e).forEach((function(r){e[r]>t&&(t=e[r])})),t},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=Number(1/0);return Object.keys(e).forEach((function(r){e[r]<t&&(t=e[r])})),t},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach((function(t){Object.keys(t).forEach((function(r){e[r]=t[r]}))})),e},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(0,i.default)((function(){return e.apply(void 0,r)}))}};var n,i=(n=r(4))&&n.__esModule?n:{default:n};e.exports=t.default},function(e,t){function r(e,t,r){var n,i,o,s,a;function u(){var c=Date.now()-s;c<t&&c>=0?n=setTimeout(u,t-c):(n=null,r||(a=e.apply(o,i),o=i=null))}null==t&&(t=100);var c=function(){o=this,i=arguments,s=Date.now();var c=r&&!n;return n||(n=setTimeout(u,t)),c&&(a=e.apply(o,i),o=i=null),a};return c.clear=function(){n&&(clearTimeout(n),n=null)},c.flush=function(){n&&(a=e.apply(o,i),o=i=null,clearTimeout(n),n=null)},c}r.debounce=r,e.exports=r},function(e,t,r){"use strict";function n(e){e.stopPropagation(),document.body.removeEventListener("click",n,!0)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){document.body.addEventListener("click",n,!0)},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)throw new Error("fetch options missing");if(!e.url)throw new Error("fetch url missing");var t=new i.default,r=new Headers,n=new Request(e.url);t.controller=new AbortController,e&&e.requestHeaders&&e.requestHeaders.forEach((function(e){r.append(e.key,e.value)}));var o=e.responseType||"json",a={method:e.method||"GET",headers:r,mode:e.mode||"cors",credentials:e.credentials||"same-origin",cache:e.cache||"default",redirect:e.redirect||"follow",referrer:e.referrer||"client",signal:t.controller.signal};return fetch(n,a).then((function(e){t.response=e;var r=!0;e.body||(r=!1);var n=e.headers.get("content-length");return null===n&&(r=!1),r?(t.onProgress=function(e){t.fireEvent("progress",e)},new Response(new ReadableStream(new s(t,n,e)),a)):e})).then((function(e){var t;if(e.ok)switch(o){case"arraybuffer":return e.arrayBuffer();case"json":return e.json();case"blob":return e.blob();case"text":return e.text();default:t="Unknown responseType: "+o}throw t||(t="HTTP error status: "+e.status),new Error(t)})).then((function(e){t.fireEvent("success",e)})).catch((function(e){t.fireEvent("error",e)})),t.fetchRequest=n,t};var n,i=(n=r(1))&&n.__esModule?n:{default:n};function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.instance=t,this.instance._reader=n.body.getReader(),this.total=parseInt(r,10),this.loaded=0}var t,r;return t=e,(r=[{key:"start",value:function(e){var t=this;!function r(){t.instance._reader.read().then((function(n){var i=n.done,o=n.value;if(i)return 0===t.total&&t.instance.onProgress.call(t.instance,{loaded:t.loaded,total:t.total,lengthComputable:!1}),void e.close();t.loaded+=o.byteLength,t.instance.onProgress.call(t.instance,{loaded:t.loaded,total:t.total,lengthComputable:!(0===t.total)}),e.enqueue(o),r()})).catch((function(t){e.error(t)}))}()}}])&&o(t.prototype,r),e}();e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(r(16)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(0)),o=s(r(17));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=c(this,l(t).call(this,e,r))).maxCanvasWidth=r.maxCanvasWidth,n.maxCanvasElementWidth=Math.round(r.maxCanvasWidth/r.pixelRatio),n.hasProgressCanvas=r.waveColor!=r.progressColor,n.halfPixel=.5/r.pixelRatio,n.canvases=[],n.progressWave=null,n.EntryClass=o.default,n.overlap=2*Math.ceil(r.pixelRatio/2),n}var r,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,n.default),r=t,(s=[{key:"init",value:function(){this.createWrapper(),this.createElements()}},{key:"createElements",value:function(){this.progressWave=this.wrapper.appendChild(this.style(document.createElement("wave"),{position:"absolute",zIndex:3,left:0,top:0,bottom:0,overflow:"hidden",width:"0",display:"none",boxSizing:"border-box",borderRightStyle:"solid",pointerEvents:"none"})),this.addCanvas(),this.updateCursor()}},{key:"updateCursor",value:function(){this.style(this.progressWave,{borderRightWidth:this.params.cursorWidth+"px",borderRightColor:this.params.cursorColor})}},{key:"updateSize",value:function(){for(var e=this,t=Math.round(this.width/this.params.pixelRatio),r=Math.ceil(t/(this.maxCanvasElementWidth+this.overlap));this.canvases.length<r;)this.addCanvas();for(;this.canvases.length>r;)this.removeCanvas();var n=this.maxCanvasWidth+this.overlap,i=this.canvases.length-1;this.canvases.forEach((function(t,r){r==i&&(n=e.width-e.maxCanvasWidth*i),e.updateDimensions(t,n,e.height),t.clearWave()}))}},{key:"addCanvas",value:function(){var e=new this.EntryClass;e.hasProgressCanvas=this.hasProgressCanvas,e.halfPixel=this.halfPixel;var t=this.maxCanvasElementWidth*this.canvases.length;e.initWave(this.wrapper.appendChild(this.style(document.createElement("canvas"),{position:"absolute",zIndex:2,left:t+"px",top:0,bottom:0,height:"100%",pointerEvents:"none"}))),this.hasProgressCanvas&&e.initProgress(this.progressWave.appendChild(this.style(document.createElement("canvas"),{position:"absolute",left:t+"px",top:0,bottom:0,height:"100%"}))),this.canvases.push(e)}},{key:"removeCanvas",value:function(){var e=this.canvases[this.canvases.length-1];e.wave.parentElement.removeChild(e.wave),this.hasProgressCanvas&&e.progress.parentElement.removeChild(e.progress),e&&(e.destroy(),e=null),this.canvases.pop()}},{key:"updateDimensions",value:function(e,t,r){var n=Math.round(t/this.params.pixelRatio),i=Math.round(this.width/this.params.pixelRatio);e.updateDimensions(n,i,t,r),this.style(this.progressWave,{display:"block"})}},{key:"clearWave",value:function(){this.canvases.forEach((function(e){return e.clearWave()}))}},{key:"drawBars",value:function(e,t,r,n){var i=this;return this.prepareDraw(e,t,r,n,(function(e){var t=e.absmax,o=e.hasMinVals,s=(e.height,e.offsetY),a=e.halfH,u=e.peaks;if(void 0!==r)for(var c=o?2:1,l=u.length/c,h=i.params.barWidth*i.params.pixelRatio,f=h+(null===i.params.barGap?Math.max(i.params.pixelRatio,~~(h/2)):Math.max(i.params.pixelRatio,i.params.barGap*i.params.pixelRatio)),d=l/i.width,p=n,v=r;v<p;v+=f){var y=u[Math.floor(v*d*c)]||0,m=Math.round(y/t*a);i.fillRect(v+i.halfPixel,a-m+s,h+i.halfPixel,2*m)}}))}},{key:"drawWave",value:function(e,t,r,n){var i=this;return this.prepareDraw(e,t,r,n,(function(e){var t=e.absmax,o=e.hasMinVals,s=(e.height,e.offsetY),a=e.halfH,u=e.peaks;if(!o){for(var c=[],l=u.length,h=0;h<l;h++)c[2*h]=u[h],c[2*h+1]=-u[h];u=c}void 0!==r&&i.drawLine(u,t,a,s,r,n),i.fillRect(0,a+s-i.halfPixel,i.width,i.halfPixel)}))}},{key:"drawLine",value:function(e,t,r,n,i,o){var s=this;this.canvases.forEach((function(a){s.setFillStyles(a),a.drawLines(e,t,r,n,i,o)}))}},{key:"fillRect",value:function(e,t,r,n){for(var i=Math.floor(e/this.maxCanvasWidth),o=Math.min(Math.ceil((e+r)/this.maxCanvasWidth)+1,this.canvases.length),s=i;s<o;s++){var a=this.canvases[s],u=s*this.maxCanvasWidth,c={x1:Math.max(e,s*this.maxCanvasWidth),y1:t,x2:Math.min(e+r,s*this.maxCanvasWidth+a.wave.width),y2:t+n};c.x1<c.x2&&(this.setFillStyles(a),a.fillRects(c.x1-u,c.y1,c.x2-c.x1,c.y2-c.y1))}}},{key:"prepareDraw",value:function(e,t,r,n,o){var s=this;return i.frame((function(){if(e[0]instanceof Array){var a=e;if(s.params.splitChannels)return s.setHeight(a.length*s.params.height*s.params.pixelRatio),a.forEach((function(e,t){return s.prepareDraw(e,t,r,n,o)}));e=a[0]}var u=1/s.params.barHeight;if(s.params.normalize){var c=i.max(e),l=i.min(e);u=-l>c?-l:c}var h=[].some.call(e,(function(e){return e<0})),f=s.params.height*s.params.pixelRatio;return o({absmax:u,hasMinVals:h,height:f,offsetY:f*t||0,halfH:f/2,peaks:e})}))()}},{key:"setFillStyles",value:function(e){e.setFillStyles(this.params.waveColor,this.params.progressColor)}},{key:"getImage",value:function(e,t,r){if("blob"===r)return Promise.all(this.canvases.map((function(n){return n.getImage(e,t,r)})));if("dataURL"===r){var n=this.canvases.map((function(n){return n.getImage(e,t,r)}));return n.length>1?n:n[0]}}},{key:"updateProgress",value:function(e){this.style(this.progressWave,{width:e+"px"})}}])&&u(r.prototype,s),t}();t.default=f,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(0));function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,a(t).call(this))).container=e,n.params=r,n.width=0,n.height=r.height*n.params.pixelRatio,n.lastPos=0,n.wrapper=null,n}var r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,n.Observer),r=t,(i=[{key:"style",value:function(e,t){return n.style(e,t)}},{key:"createWrapper",value:function(){this.wrapper=this.container.appendChild(document.createElement("wave")),this.style(this.wrapper,{display:"block",position:"relative",userSelect:"none",webkitUserSelect:"none",height:this.params.height+"px"}),(this.params.fillParent||this.params.scrollParent)&&this.style(this.wrapper,{width:"100%",overflowX:this.params.hideScrollbar?"hidden":"auto",overflowY:"hidden"}),this.setupWrapperEvents()}},{key:"handleEvent",value:function(e,t){!t&&e.preventDefault();var r,n=e.targetTouches?e.targetTouches[0].clientX:e.clientX,i=this.wrapper.getBoundingClientRect(),o=this.width,s=this.getWidth();return!this.params.fillParent&&o<s?(r=(this.params.rtl?i.right-n:n-i.left)*(this.params.pixelRatio/o)||0)>1&&(r=1):r=((this.params.rtl?i.right-n:n-i.left)+this.wrapper.scrollLeft)/this.wrapper.scrollWidth||0,r}},{key:"setupWrapperEvents",value:function(){var e=this;this.wrapper.addEventListener("click",(function(t){var r=e.wrapper.offsetHeight-e.wrapper.clientHeight;if(0!=r){var n=e.wrapper.getBoundingClientRect();if(t.clientY>=n.bottom-r)return}e.params.interact&&e.fireEvent("click",t,e.handleEvent(t))})),this.wrapper.addEventListener("scroll",(function(t){return e.fireEvent("scroll",t)}))}},{key:"drawPeaks",value:function(e,t,r,n){this.setWidth(t)||this.clearWave(),this.params.barWidth?this.drawBars(e,0,r,n):this.drawWave(e,0,r,n)}},{key:"resetScroll",value:function(){null!==this.wrapper&&(this.wrapper.scrollLeft=0)}},{key:"recenter",value:function(e){var t=this.wrapper.scrollWidth*e;this.recenterOnPosition(t,!0)}},{key:"recenterOnPosition",value:function(e,t){var r=this.wrapper.scrollLeft,n=~~(this.wrapper.clientWidth/2),i=this.wrapper.scrollWidth-this.wrapper.clientWidth,o=e-n,s=o-r;0!=i&&(!t&&-n<=s&&s<n&&(o=r+(s=Math.max(-5,Math.min(5,s)))),(o=Math.max(0,Math.min(i,o)))!=r&&(this.wrapper.scrollLeft=o))}},{key:"getScrollX",value:function(){var e=0;if(this.wrapper){var t=this.params.pixelRatio;if(e=Math.round(this.wrapper.scrollLeft*t),this.params.scrollParent){var r=~~(this.wrapper.scrollWidth*t-this.getWidth());e=Math.min(r,Math.max(0,e))}}return e}},{key:"getWidth",value:function(){return Math.round(this.container.clientWidth*this.params.pixelRatio)}},{key:"setWidth",value:function(e){return this.width!=e&&(this.width=e,this.params.fillParent||this.params.scrollParent?this.style(this.wrapper,{width:""}):this.style(this.wrapper,{width:~~(this.width/this.params.pixelRatio)+"px"}),this.updateSize(),!0)}},{key:"setHeight",value:function(e){return e!=this.height&&(this.height=e,this.style(this.wrapper,{height:~~(this.height/this.params.pixelRatio)+"px"}),this.updateSize(),!0)}},{key:"progress",value:function(e){var t=1/this.params.pixelRatio,r=Math.round(e*this.width)*t;if(r<this.lastPos||r-this.lastPos>=t){if(this.lastPos=r,this.params.scrollParent&&this.params.autoCenter){var n=~~(this.wrapper.scrollWidth*e);this.recenterOnPosition(n)}this.updateProgress(r)}}},{key:"destroy",value:function(){this.unAll(),this.wrapper&&(this.wrapper.parentNode==this.container&&this.container.removeChild(this.wrapper),this.wrapper=null)}},{key:"updateCursor",value:function(){}},{key:"updateSize",value:function(){}},{key:"drawBars",value:function(e,t,r,n){}},{key:"drawWave",value:function(e,t,r,n){}},{key:"clearWave",value:function(){}},{key:"updateProgress",value:function(e){}}])&&o(r.prototype,i),t}();t.default=c,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(3)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wave=null,this.waveCtx=null,this.progress=null,this.progressCtx=null,this.start=0,this.end=1,this.id=(0,i.default)(this.constructor.name.toLowerCase()+"_")}var t,r;return t=e,(r=[{key:"initWave",value:function(e){this.wave=e,this.waveCtx=this.wave.getContext("2d")}},{key:"initProgress",value:function(e){this.progress=e,this.progressCtx=this.progress.getContext("2d")}},{key:"updateDimensions",value:function(e,t,r,i){this.start=this.wave.offsetLeft/t||0,this.end=this.start+e/t,this.wave.width=r,this.wave.height=i;var o={width:e+"px"};(0,n.default)(this.wave,o),this.hasProgressCanvas&&(this.progress.width=r,this.progress.height=i,(0,n.default)(this.progress,o))}},{key:"clearWave",value:function(){this.waveCtx.clearRect(0,0,this.waveCtx.canvas.width,this.waveCtx.canvas.height),this.hasProgressCanvas&&this.progressCtx.clearRect(0,0,this.progressCtx.canvas.width,this.progressCtx.canvas.height)}},{key:"setFillStyles",value:function(e,t){this.waveCtx.fillStyle=e,this.hasProgressCanvas&&(this.progressCtx.fillStyle=t)}},{key:"fillRects",value:function(e,t,r,n){this.fillRectToContext(this.waveCtx,e,t,r,n),this.hasProgressCanvas&&this.fillRectToContext(this.progressCtx,e,t,r,n)}},{key:"fillRectToContext",value:function(e,t,r,n,i){e&&e.fillRect(t,r,n,i)}},{key:"drawLines",value:function(e,t,r,n,i,o){this.drawLineToContext(this.waveCtx,e,t,r,n,i,o),this.hasProgressCanvas&&this.drawLineToContext(this.progressCtx,e,t,r,n,i,o)}},{key:"drawLineToContext",value:function(e,t,r,n,i,o,s){if(e){var a,u,c,l=t.length/2,h=Math.round(l*this.start),f=h,d=Math.round(l*this.end)+1,p=this.wave.width/(d-f-1),v=n+i,y=r/n;for(e.beginPath(),e.moveTo((f-h)*p,v),e.lineTo((f-h)*p,v-Math.round((t[2*f]||0)/y)),a=f;a<d;a++)u=t[2*a]||0,c=Math.round(u/y),e.lineTo((a-h)*p+this.halfPixel,v-c);for(var m=d-1;m>=f;m--)u=t[2*m+1]||0,c=Math.round(u/y),e.lineTo((m-h)*p+this.halfPixel,v-c);e.lineTo((f-h)*p,v-Math.round((t[2*f+1]||0)/y)),e.closePath(),e.fill()}}},{key:"destroy",value:function(){this.waveCtx=null,this.wave=null,this.progressCtx=null,this.progress=null}},{key:"getImage",value:function(e,t,r){var n=this;return"blob"===r?new Promise((function(r){n.wave.toBlob(r,e,t)})):"dataURL"===r?this.wave.toDataURL(e,t):void 0}}])&&s(t.prototype,r),e}();t.default=a,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(5))&&n.__esModule?n:{default:n},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(0));function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e,t,r){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(r):i.value}})(e,t,r||e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=u(this,l(t).call(this,e))).params=e,r.media={currentTime:0,duration:0,paused:!0,playbackRate:1,play:function(){},pause:function(){},volume:0},r.mediaType=e.mediaType.toLowerCase(),r.elementPosition=e.elementPosition,r.peaks=null,r.playbackRate=1,r.volume=1,r.isMuted=!1,r.buffer=null,r.onPlayEnd=null,r}var r,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,i.default),r=t,(n=[{key:"init",value:function(){this.setPlaybackRate(this.params.audioRate),this.createTimer()}},{key:"createTimer",value:function(){var e=this;this.on("play",(function t(){e.isPaused()||(e.fireEvent("audioprocess",e.getCurrentTime()),o.frame(t)())})),this.on("pause",(function(){e.fireEvent("audioprocess",e.getCurrentTime())}))}},{key:"load",value:function(e,t,r,n){var i=document.createElement(this.mediaType);i.controls=this.params.mediaControls,i.autoplay=this.params.autoplay||!1,i.preload=null==n?"auto":n,i.src=e,i.style.width="100%";var o=t.querySelector(this.mediaType);o&&t.removeChild(o),t.appendChild(i),this._load(i,r)}},{key:"loadElt",value:function(e,t){e.controls=this.params.mediaControls,e.autoplay=this.params.autoplay||!1,this._load(e,t)}},{key:"_load",value:function(e,t){var r=this;"function"==typeof e.load&&e.load(),e.addEventListener("error",(function(){r.fireEvent("error","Error loading media element")})),e.addEventListener("canplay",(function(){r.fireEvent("canplay")})),e.addEventListener("ended",(function(){r.fireEvent("finish")})),e.addEventListener("play",(function(){r.fireEvent("play")})),e.addEventListener("pause",(function(){r.fireEvent("pause")})),e.addEventListener("seeked",(function(e){r.fireEvent("seek")})),e.addEventListener("volumechange",(function(t){r.isMuted=e.muted,r.isMuted?r.volume=0:r.volume=e.volume,r.fireEvent("volume")})),this.media=e,this.peaks=t,this.onPlayEnd=null,this.buffer=null,this.isMuted=e.muted,this.setPlaybackRate(this.playbackRate),this.setVolume(this.volume)}},{key:"isPaused",value:function(){return!this.media||this.media.paused}},{key:"getDuration",value:function(){if(this.explicitDuration)return this.explicitDuration;var e=(this.buffer||this.media).duration;return e>=1/0&&(e=this.media.seekable.end(0)),e}},{key:"getCurrentTime",value:function(){return this.media&&this.media.currentTime}},{key:"getPlayedPercents",value:function(){return this.getCurrentTime()/this.getDuration()||0}},{key:"getPlaybackRate",value:function(){return this.playbackRate||this.media.playbackRate}},{key:"setPlaybackRate",value:function(e){this.playbackRate=e||1,this.media.playbackRate=this.playbackRate}},{key:"seekTo",value:function(e){null!=e&&(this.media.currentTime=e),this.clearPlayEnd()}},{key:"play",value:function(e,t){this.seekTo(e);var r=this.media.play();return t&&this.setPlayEnd(t),r}},{key:"pause",value:function(){var e;return this.media&&(e=this.media.pause()),this.clearPlayEnd(),e}},{key:"setPlayEnd",value:function(e){var t=this;this._onPlayEnd=function(r){r>=e&&(t.pause(),t.seekTo(e))},this.on("audioprocess",this._onPlayEnd)}},{key:"clearPlayEnd",value:function(){this._onPlayEnd&&(this.un("audioprocess",this._onPlayEnd),this._onPlayEnd=null)}},{key:"getPeaks",value:function(e,r,n){return this.buffer?c(l(t.prototype),"getPeaks",this).call(this,e,r,n):this.peaks||[]}},{key:"setSinkId",value:function(e){return e?this.media.setSinkId?this.media.setSinkId(e):Promise.reject(new Error("setSinkId is not supported in your browser")):Promise.reject(new Error("Invalid deviceId: "+e))}},{key:"getVolume",value:function(){return this.volume}},{key:"setVolume",value:function(e){this.volume=e,this.media.volume!==this.volume&&(this.media.volume=this.volume)}},{key:"destroy",value:function(){this.pause(),this.unAll(),this.params.removeMediaElementOnDestroy&&this.media&&this.media.parentNode&&this.media.parentNode.removeChild(this.media),this.media=null}}])&&a(r.prototype,n),t}();t.default=f,e.exports=t.default},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clearPeakCache()}var t,r;return t=e,(r=[{key:"clearPeakCache",value:function(){this.peakCacheRanges=[],this.peakCacheLength=-1}},{key:"addRangeToPeakCache",value:function(e,t,r){e!=this.peakCacheLength&&(this.clearPeakCache(),this.peakCacheLength=e);for(var n=[],i=0;i<this.peakCacheRanges.length&&this.peakCacheRanges[i]<t;)i++;for(i%2==0&&n.push(t);i<this.peakCacheRanges.length&&this.peakCacheRanges[i]<=r;)n.push(this.peakCacheRanges[i]),i++;i%2==0&&n.push(r),n=n.filter((function(e,t,r){return 0==t?e!=r[t+1]:t==r.length-1?e!=r[t-1]:e!=r[t-1]&&e!=r[t+1]})),this.peakCacheRanges=this.peakCacheRanges.concat(n),this.peakCacheRanges=this.peakCacheRanges.sort((function(e,t){return e-t})).filter((function(e,t,r){return 0==t?e!=r[t+1]:t==r.length-1?e!=r[t-1]:e!=r[t-1]&&e!=r[t+1]}));var o=[];for(i=0;i<n.length;i+=2)o.push([n[i],n[i+1]]);return o}},{key:"getCacheRanges",value:function(){var e,t=[];for(e=0;e<this.peakCacheRanges.length;e+=2)t.push([this.peakCacheRanges[e],this.peakCacheRanges[e+1]]);return t}}])&&n(t.prototype,r),e}();t.default=i,e.exports=t.default}])},959:function(e,t,r){window,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="localhost:8080/dist/plugin/",r(r.s=5)}({5:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(){function e(t,r){var i=this;n(this,e),this.wavesurfer=r,this.wrapper=r.drawer.wrapper,this.util=r.util,this.style=this.util.style,this.id=null==t.id?r.util.getId():t.id,this.start=Number(t.start)||0,this.end=null==t.end?this.start+4/this.wrapper.scrollWidth*this.wavesurfer.getDuration():Number(t.end),this.resize=void 0===t.resize||Boolean(t.resize),this.drag=void 0===t.drag||Boolean(t.drag),this.loop=Boolean(t.loop),this.color=t.color||"rgba(0, 0, 0, 0.1)",this.data=t.data||{},this.attributes=t.attributes||{},this.maxLength=t.maxLength,this.minLength=t.minLength,this._onRedraw=function(){return i.updateRender()},this.scroll=!1!==t.scroll&&r.params.scrollParent,this.scrollSpeed=t.scrollSpeed||1,this.scrollThreshold=t.scrollThreshold||10,this.bindInOut(),this.render(),this.wavesurfer.on("zoom",this._onRedraw),this.wavesurfer.on("redraw",this._onRedraw),this.wavesurfer.fireEvent("region-created",this)}return o(e,[{key:"update",value:function(e){null!=e.start&&(this.start=Number(e.start)),null!=e.end&&(this.end=Number(e.end)),null!=e.loop&&(this.loop=Boolean(e.loop)),null!=e.color&&(this.color=e.color),null!=e.data&&(this.data=e.data),null!=e.resize&&(this.resize=Boolean(e.resize)),null!=e.drag&&(this.drag=Boolean(e.drag)),null!=e.maxLength&&(this.maxLength=Number(e.maxLength)),null!=e.minLength&&(this.minLength=Number(e.minLength)),null!=e.attributes&&(this.attributes=e.attributes),this.updateRender(),this.fireEvent("update"),this.wavesurfer.fireEvent("region-updated",this)}},{key:"remove",value:function(){this.element&&(this.wrapper.removeChild(this.element),this.element=null,this.fireEvent("remove"),this.wavesurfer.un("zoom",this._onRedraw),this.wavesurfer.un("redraw",this._onRedraw),this.wavesurfer.fireEvent("region-removed",this))}},{key:"play",value:function(){this.wavesurfer.play(this.start,this.end),this.fireEvent("play"),this.wavesurfer.fireEvent("region-play",this)}},{key:"playLoop",value:function(){var e=this;this.play(),this.once("out",(function(){return e.playLoop()}))}},{key:"render",value:function(){var e=document.createElement("region");for(var t in e.className="wavesurfer-region",e.title=this.formatTime(this.start,this.end),e.setAttribute("data-id",this.id),this.attributes)e.setAttribute("data-region-"+t,this.attributes[t]);if(this.wrapper.scrollWidth,this.style(e,{position:"absolute",zIndex:2,height:"100%",top:"0px"}),this.resize){var r=e.appendChild(document.createElement("handle")),n=e.appendChild(document.createElement("handle"));r.className="wavesurfer-handle wavesurfer-handle-start",n.className="wavesurfer-handle wavesurfer-handle-end";var i={cursor:"col-resize",position:"absolute",left:"0px",top:"0px",width:"1%",maxWidth:"4px",height:"100%"};this.style(r,i),this.style(n,i),this.style(n,{left:"100%"})}this.element=this.wrapper.appendChild(e),this.updateRender(),this.bindEvents(e)}},{key:"formatTime",value:function(e,t){return(e==t?[e]:[e,t]).map((function(e){return[Math.floor(e%3600/60),("00"+Math.floor(e%60)).slice(-2)].join(":")})).join("-")}},{key:"getWidth",value:function(){return this.wavesurfer.drawer.width/this.wavesurfer.params.pixelRatio}},{key:"updateRender",value:function(){var e=this.wavesurfer.getDuration(),t=this.getWidth(),r=this.start,n=this.end;if(r<0&&(n-=r=0),n>e&&(r=e-((n=e)-r)),null!=this.minLength&&(n=Math.max(r+this.minLength,n)),null!=this.maxLength&&(n=Math.min(r+this.maxLength,n)),null!=this.element){var i=Math.round(r/e*t),o=Math.round(n/e*t)-i;for(var s in this.style(this.element,{left:i+"px",width:o+"px",backgroundColor:this.color,cursor:this.drag?"move":"default"}),this.attributes)this.element.setAttribute("data-region-"+s,this.attributes[s]);this.element.title=this.formatTime(this.start,this.end)}}},{key:"bindInOut",value:function(){var e=this;this.firedIn=!1,this.firedOut=!1;var t=function(t){!e.firedOut&&e.firedIn&&(e.start>=Math.round(100*t)/100||e.end<=Math.round(100*t)/100)&&(e.firedOut=!0,e.firedIn=!1,e.fireEvent("out"),e.wavesurfer.fireEvent("region-out",e)),!e.firedIn&&e.start<=t&&e.end>t&&(e.firedIn=!0,e.firedOut=!1,e.fireEvent("in"),e.wavesurfer.fireEvent("region-in",e))};this.wavesurfer.backend.on("audioprocess",t),this.on("remove",(function(){e.wavesurfer.backend.un("audioprocess",t)})),this.on("out",(function(){e.loop&&e.wavesurfer.play(e.start)}))}},{key:"bindEvents",value:function(){var e,t,r,n,i,o,s,a,u,c,l,h,f,d,p=this;this.element.addEventListener("mouseenter",(function(e){p.fireEvent("mouseenter",e),p.wavesurfer.fireEvent("region-mouseenter",p,e)})),this.element.addEventListener("mouseleave",(function(e){p.fireEvent("mouseleave",e),p.wavesurfer.fireEvent("region-mouseleave",p,e)})),this.element.addEventListener("click",(function(e){e.preventDefault(),p.fireEvent("click",e),p.wavesurfer.fireEvent("region-click",p,e)})),this.element.addEventListener("dblclick",(function(e){e.stopPropagation(),e.preventDefault(),p.fireEvent("dblclick",e),p.wavesurfer.fireEvent("region-dblclick",p,e)})),(this.drag||this.resize)&&(a=p.wavesurfer.drawer.container,u=p.scrollSpeed,c=p.scrollThreshold,l=!1,h=function(o){var a=p.wavesurfer.getDuration();o.touches&&o.touches.length>1||(t=o.targetTouches?o.targetTouches[0].identifier:null,(p.drag||p.resize)&&o.stopPropagation(),e=p.wavesurfer.regions.util.getRegionSnapToGridValue(p.wavesurfer.drawer.handleEvent(o,!0)*a),n=p.wrapper.scrollWidth-p.wrapper.clientWidth,s=p.wrapper.getBoundingClientRect(),"handle"==o.target.tagName.toLowerCase()?i=o.target.classList.contains("wavesurfer-handle-start")?"start":"end":(r=!0,i=!1))},f=function(e){e.touches&&e.touches.length>1||((r||i)&&(r=!1,o=null,i=!1),l&&(l=!1,p.util.preventClick(),p.fireEvent("update-end",e),p.wavesurfer.fireEvent("region-update-end",p,e)))},d=function(h){var f=p.wavesurfer.getDuration();if(!(h.touches&&h.touches.length>1)&&(!h.targetTouches||h.targetTouches[0].identifier==t)&&(r||i)){var d=e,v=p.wavesurfer.regions.util.getRegionSnapToGridValue(p.wavesurfer.drawer.handleEvent(h)*f),y=v-e;if(e=v,p.drag&&r&&(l=l||!!y,p.onDrag(y)),p.resize&&i&&(l=l||!!y,p.onResize(y,i)),p.scroll&&a.clientWidth<p.wrapper.scrollWidth){if(r){var m=p.element.getBoundingClientRect(),b=m.left-s.left;v<d&&b>=0?o=-1:v>d&&b+m.width<=s.right&&(o=1),(-1===o&&b>c||1===o&&b+m.width<s.right-c)&&(o=null)}else{var g=h.clientX-s.left;o=g<=c?-1:g>=s.right-c?1:null}o&&function t(s){var a=p.wavesurfer.getDuration();if(o&&(r||i)){var c=p.wrapper.scrollLeft+u*o;p.wrapper.scrollLeft=c=Math.min(n,Math.max(0,c));var l=p.wavesurfer.regions.util.getRegionSnapToGridValue(p.wavesurfer.drawer.handleEvent(s)*a),h=l-e;e=l,r?p.onDrag(h):p.onResize(h,i),window.requestAnimationFrame((function(){t(s)}))}}(h)}}},p.element.addEventListener("mousedown",h),p.element.addEventListener("touchstart",h),p.wrapper.addEventListener("mousemove",d),p.wrapper.addEventListener("touchmove",d),document.body.addEventListener("mouseup",f),document.body.addEventListener("touchend",f),p.on("remove",(function(){document.body.removeEventListener("mouseup",f),document.body.removeEventListener("touchend",f),p.wrapper.removeEventListener("mousemove",d),p.wrapper.removeEventListener("touchmove",d)})),p.wavesurfer.on("destroy",(function(){document.body.removeEventListener("mouseup",f),document.body.removeEventListener("touchend",f)})))}},{key:"onDrag",value:function(e){var t=this.wavesurfer.getDuration();this.end+e>t||this.start+e<0||this.update({start:this.start+e,end:this.end+e})}},{key:"onResize",value:function(e,t){"start"==t?this.update({start:Math.min(this.start+e,this.end),end:Math.max(this.start+e,this.end)}):this.update({start:Math.min(this.end+e,this.start),end:Math.max(this.end+e,this.start)})}}]),e}(),a=function(){function e(t,r){var i=this;n(this,e),this.params=t,this.wavesurfer=r,this.util=r.util,this.util.getRegionSnapToGridValue=function(e){return i.getRegionSnapToGridValue(e,t)},Object.getOwnPropertyNames(this.util.Observer.prototype).forEach((function(e){s.prototype[e]=i.util.Observer.prototype[e]})),this.wavesurfer.Region=s,this._onBackendCreated=function(){i.wrapper=i.wavesurfer.drawer.wrapper,i.params.regions&&i.params.regions.forEach((function(e){i.add(e)}))},this.list={},this._onReady=function(){i.params.dragSelection&&i.enableDragSelection(i.params),Object.keys(i.list).forEach((function(e){i.list[e].updateRender()}))}}return o(e,null,[{key:"create",value:function(t){return{name:"regions",deferInit:!(!t||!t.deferInit)&&t.deferInit,params:t,staticProps:{addRegion:function(e){return this.initialisedPluginList.regions||this.initPlugin("regions"),this.regions.add(e)},clearRegions:function(){this.regions&&this.regions.clear()},enableDragSelection:function(e){this.initialisedPluginList.regions||this.initPlugin("regions"),this.regions.enableDragSelection(e)},disableDragSelection:function(){this.regions.disableDragSelection()}},instance:e}}}]),o(e,[{key:"init",value:function(){this.wavesurfer.isReady?(this._onBackendCreated(),this._onReady()):(this.wavesurfer.once("ready",this._onReady),this.wavesurfer.once("backend-created",this._onBackendCreated))}},{key:"destroy",value:function(){this.wavesurfer.un("ready",this._onReady),this.wavesurfer.un("backend-created",this._onBackendCreated),this.disableDragSelection(),this.clear()}},{key:"add",value:function(e){var t=this,r=new this.wavesurfer.Region(e,this.wavesurfer);return this.list[r.id]=r,r.on("remove",(function(){delete t.list[r.id]})),r}},{key:"clear",value:function(){var e=this;Object.keys(this.list).forEach((function(t){e.list[t].remove()}))}},{key:"enableDragSelection",value:function(e){var t,r,n,i,o,s,a,u=this,c=e.slop||2,l=this.wavesurfer.drawer.container,h=!1!==e.scroll&&this.wavesurfer.params.scrollParent,f=e.scrollSpeed||1,d=e.scrollThreshold||10,p=this.wavesurfer.getDuration(),v=0,y=function(e){e.touches&&e.touches.length>1||(p=u.wavesurfer.getDuration(),o=e.targetTouches?e.targetTouches[0].identifier:null,r=u.wrapper.scrollWidth-u.wrapper.clientWidth,a=u.wrapper.getBoundingClientRect(),t=!0,n=u.wavesurfer.drawer.handleEvent(e,!0),i=null,s=null)};this.wrapper.addEventListener("mousedown",y),this.wrapper.addEventListener("touchstart",y),this.on("disable-drag-selection",(function(){u.wrapper.removeEventListener("touchstart",y),u.wrapper.removeEventListener("mousedown",y)}));var m=function(e){e.touches&&e.touches.length>1||(t=!1,v=0,s=null,i&&(u.util.preventClick(),i.fireEvent("update-end",e),u.wavesurfer.fireEvent("region-update-end",i,e)),i=null)};this.wrapper.addEventListener("mouseup",m),this.wrapper.addEventListener("touchend",m),document.body.addEventListener("mouseup",m),document.body.addEventListener("touchend",m),this.on("disable-drag-selection",(function(){document.body.removeEventListener("mouseup",m),document.body.removeEventListener("touchend",m),u.wrapper.removeEventListener("touchend",m),u.wrapper.removeEventListener("mouseup",m)}));var b=function(y){if(t&&!(++v<=c||y.touches&&y.touches.length>1||y.targetTouches&&y.targetTouches[0].identifier!=o)){i||(i=u.add(e||{}));var m=u.wavesurfer.drawer.handleEvent(y),b=u.wavesurfer.regions.util.getRegionSnapToGridValue(n*p),g=u.wavesurfer.regions.util.getRegionSnapToGridValue(m*p);if(i.update({start:Math.min(g,b),end:Math.max(g,b)}),h&&l.clientWidth<u.wrapper.scrollWidth){var w=y.clientX-a.left;(s=w<=d?-1:w>=a.right-d?1:null)&&function e(t){if(i&&s){var o=u.wrapper.scrollLeft+f*s;u.wrapper.scrollLeft=o=Math.min(r,Math.max(0,o));var a=u.wavesurfer.drawer.handleEvent(t);i.update({start:Math.min(a*p,n*p),end:Math.max(a*p,n*p)}),o<r&&o>0&&window.requestAnimationFrame((function(){e(t)}))}}(y)}}};this.wrapper.addEventListener("mousemove",b),this.wrapper.addEventListener("touchmove",b),this.on("disable-drag-selection",(function(){u.wrapper.removeEventListener("touchmove",b),u.wrapper.removeEventListener("mousemove",b)}))}},{key:"disableDragSelection",value:function(){this.fireEvent("disable-drag-selection")}},{key:"getCurrentRegion",value:function(){var e=this,t=this.wavesurfer.getCurrentTime(),r=null;return Object.keys(this.list).forEach((function(n){var i=e.list[n];i.start<=t&&i.end>=t&&(!r||i.end-i.start<r.end-r.start)&&(r=i)})),r}},{key:"getRegionSnapToGridValue",value:function(e,t){if(t.snapToGridInterval){var r=t.snapToGridOffset||0;return Math.round((e-r)/t.snapToGridInterval)*t.snapToGridInterval+r}return e}}]),e}();t.default=a,e.exports=t.default}})},960:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=c(r(0)),s=c(r(26)),a=c(r(1307)),u=c(r(1308));function c(e){return e&&e.__esModule?e:{default:e}}var l=38,h=40,f=13,d=8,p=[8,9,35,36,37,39,46,48,49,50,51,52,53,54,55,56,57,190,189,173,96,97,98,99,100,101,102,103,104,105,109,110],v={className:s.default.string,decimals:s.default.number,max:s.default.number,min:s.default.number,onValueChange:s.default.func,step:s.default.number,stepModifier:s.default.number,style:s.default.object,value:s.default.oneOfType([s.default.string,s.default.number]).isRequired,onKeyDown:s.default.func},y={className:"",decimals:0,max:Number.MAX_VALUE,min:-Number.MAX_VALUE,onValueChange:function(){},step:1,stepModifier:10,style:{}},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.onKeyDown=r.onKeyDown.bind(r),r.onDoubleClick=r.onDoubleClick.bind(r),r.onChange=r.onChange.bind(r),r.onBlur=r.onBlur.bind(r),r.state={startEditing:!1,wasUsingSpecialKeys:!1,dragStartValue:Number(e.value)},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentWillReceiveProps",value:function(e){if(e.dataDrag.isMouseDown&&!e.dataDrag.isMoving&&this.setState({dragStartValue:Number(this.props.value)}),e.dataDrag.isMoving){var t=this.getStepValue(e.dataDrag,this.props.step);this.changeValue(this.state.dragStartValue+e.dataDrag.moveDeltaX*(t/2))}}},{key:"onDoubleClick",value:function(){this.setState({startEditing:!0})}},{key:"onChange",value:function(e){this.props.onValueChange(e.target.value)}},{key:"onBlur",value:function(e){this.changeValue(Number(e.target.value)),this.setState({startEditing:!1})}},{key:"onKeyDown",value:function(e){var t=this.getStepValue(e,this.props.step),r=Number(this.props.value),n=e.which;n===l?(e.preventDefault(),this.changeValue(r+t)):n===h?(e.preventDefault(),this.changeValue(r-t)):n===f?(e.preventDefault(),this.state.startEditing?this.onBlur(e):(this.setState({startEditing:!0}),e.target.select())):n!==d||this.state.startEditing?-1===p.indexOf(n)&&e.preventDefault():e.preventDefault(),this.props.onKeyDown&&this.props.onKeyDown(e)}},{key:"getStepValue",value:function(e,t){var r=t;return e.metaKey||e.ctrlKey?r/=this.props.stepModifier:e.shiftKey&&(r*=this.props.stepModifier),r}},{key:"changeValue",value:function(e){var t=(0,u.default)(e.toFixed(this.props.decimals),this.props.min,this.props.max);Number(this.props.value)!==Number(t)&&this.props.onValueChange(t)}},{key:"render",value:function(){var e="ew-resize",t=!0,r=this.props.value;return this.state.startEditing&&(e="auto",t=!1),this.state.startEditing||(r=Number(r).toFixed(this.props.decimals)),o.default.createElement("input",{type:"text",className:this.props.className,readOnly:t,value:r,style:n({},this.props.style,{cursor:e}),onKeyDown:this.onKeyDown,onDoubleClick:this.onDoubleClick,onChange:this.onChange,onBlur:this.onBlur})}}]),t}(o.default.Component);m.propTypes=v,m.defaultProps=y,t.default=(0,a.default)(m,{resetOnSpecialKeys:!0,touch:!0,getSpecificEventData:function(e){return{metaKey:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey}},onDragMove:function(e){e.preventDefault()}})}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/24.a422a39c.js b/plugins/saladict-ztools/ext-saladic/assets/24.a422a39c.js new file mode 100644 index 00000000..e896bff7 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/24.a422a39c.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[24],{1372:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(0),r=a.n(n),s="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const l=e=>{const{tag:t="div",html:a,...l}=e,c=Object(n.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[i,o]=Object(n.useState)(null);return s(()=>{if(c&&i){for(;i.childNodes.length>0;)i.childNodes[0].remove();i.appendChild(c)}},[c,i]),r.a.createElement(t,{...l,ref:o})}},1374:function(e,t,a){"use strict";var n=a(0),r=a.n(n);t.a=e=>{const{title:t,className:a,children:n,...s}=e;return r.a.createElement("div",{className:"entryBox-Wrap"+(a?" "+a:""),...s},r.a.createElement("section",{className:"entryBox"},r.a.createElement("h1",{className:"entryBox-Title"},t),r.a.createElement("div",null,n)))}},1375:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(0),r=a.n(n);class s extends r.a.PureComponent{render(){const e=this.props.className||"widget-StarRates",t=this.props.max||5,a=Number(this.props.rate)%(t+1)||0,n=this.props.height||"1.5em",s=this.props.gutter||"0.3em",l={height:n,...this.props.style||{}};return r.a.createElement("div",{className:e,style:l},Array.from(Array(t)).map((e,l)=>r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.67 426.67",key:l+a,width:n,height:n,style:{marginRight:l===t-1?"":s}},r.a.createElement("path",{fill:l<a?"#FAC917":"#d1d8de",d:"M213.33 10.44l65.92 133.58 147.42 21.42L320 269.4l25.17 146.83-131.84-69.32-131.85 69.34 25.2-146.82L0 165.45l147.4-21.42"}))))}}},703:function(e,t,a){"use strict";a.r(t),a.d(t,"DictYoudao",(function(){return o}));var n=a(0),r=a.n(n),s=a(97),l=a(1375),c=a(1374),i=a(1372);const o=({result:e})=>{const[t,a]=Object(n.useState)(0);return"related"===e.type?r.a.createElement(i.a,{className:"dictYoudao-Related",html:e.list}):r.a.createElement(r.a.Fragment,null,e.title&&r.a.createElement("div",{className:"dictYoudao-HeaderContainer"},r.a.createElement("h1",{className:"dictYoudao-Title"},e.title),r.a.createElement("span",{className:"dictYoudao-Pattern"},e.pattern)),(e.stars>0||e.prons.length>0)&&r.a.createElement("div",{className:"dictYoudao-HeaderContainer"},e.stars>0&&r.a.createElement(l.a,{className:"dictYoudao-Stars",rate:e.stars}),e.prons.map(({phsym:e,url:t})=>r.a.createElement(r.a.Fragment,{key:t},e," ",r.a.createElement(s.c,{src:t}))),r.a.createElement("span",{className:"dictYoudao-Rank"},e.rank)),e.basic&&r.a.createElement(i.a,{className:"dictYoudao-Basic",html:e.basic}),e.collins.length>0&&r.a.createElement(c.a,{title:"柯林斯英汉双解"},e.collins.length>1&&r.a.createElement("select",{value:t,onChange:e=>a(e.currentTarget.value)},e.collins.map((e,t)=>r.a.createElement("option",{key:t,value:t},e.title))),r.a.createElement(i.a,{className:"dictYoudao-Collins",html:e.collins[t].content})),e.discrimination&&r.a.createElement("div",{className:"dictYoudao-Discrimination"},r.a.createElement("h1",{className:"dictYoudao-Discrimination_Title"},"词义辨析"),r.a.createElement(i.a,{html:e.discrimination})),e.sentence&&r.a.createElement(c.a,{title:"权威例句"},r.a.createElement(i.a,{tag:"ol",className:"dictYoudao-Sentence",html:e.sentence})),e.translation&&r.a.createElement(c.a,{title:"机器翻译"},r.a.createElement(i.a,{className:"dictYoudao-Translation",html:e.translation})))};t.default=o}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/25.a17665b1.js b/plugins/saladict-ztools/ext-saladic/assets/25.a17665b1.js deleted file mode 100644 index 9fea0419..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/25.a17665b1.js +++ /dev/null @@ -1,16 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[25],{540:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3);n.__exportStar(r(966),e),n.__exportStar(r(968),e),n.__exportStar(r(969),e)},541:function(t,e,r){"use strict";var n=r(975),o=r(976),i=r(817);t.exports={formats:i,parse:o,stringify:n}},762:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var i=e[n],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=a[u];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:a,prop:u}),r.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r){if(0===t.length)return t;var n=t;if("symbol"==typeof t?n=Symbol.prototype.toString.call(t):"string"!=typeof t&&(n=String(t)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var o="",a=0;a<n.length;++a){var s=n.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=n.charAt(a):s<128?o+=i[s]:s<2048?o+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?o+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(a)),o+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return o},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,i){if(!r)return e;if("object"!=typeof r){if(o(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var s=e;return o(e)&&!o(r)&&(s=a(e,i)),o(e)&&o(r)?(r.forEach((function(r,o){if(n.call(e,o)){var a=e[o];a&&"object"==typeof a&&r&&"object"==typeof r?e[o]=t(a,r,i):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var a=r[o];return n.call(e,o)?e[o]=t(e[o],a,i):e[o]=a,e}),s)}}},763:function(t,e,r){var n,o,i,a,s;n=r(977),o=r(818).utf8,i=r(978),a=r(818).bin,(s=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?a.stringToBytes(t):o.stringToBytes(t):i(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());for(var r=n.bytesToWords(t),c=8*t.length,u=1732584193,l=-271733879,h=-1732584194,f=271733878,p=0;p<r.length;p++)r[p]=16711935&(r[p]<<8|r[p]>>>24)|4278255360&(r[p]<<24|r[p]>>>8);r[c>>>5]|=128<<c%32,r[14+(c+64>>>9<<4)]=c;var d=s._ff,y=s._gg,_=s._hh,g=s._ii;for(p=0;p<r.length;p+=16){var S=u,m=l,A=h,H=f;u=d(u,l,h,f,r[p+0],7,-680876936),f=d(f,u,l,h,r[p+1],12,-389564586),h=d(h,f,u,l,r[p+2],17,606105819),l=d(l,h,f,u,r[p+3],22,-1044525330),u=d(u,l,h,f,r[p+4],7,-176418897),f=d(f,u,l,h,r[p+5],12,1200080426),h=d(h,f,u,l,r[p+6],17,-1473231341),l=d(l,h,f,u,r[p+7],22,-45705983),u=d(u,l,h,f,r[p+8],7,1770035416),f=d(f,u,l,h,r[p+9],12,-1958414417),h=d(h,f,u,l,r[p+10],17,-42063),l=d(l,h,f,u,r[p+11],22,-1990404162),u=d(u,l,h,f,r[p+12],7,1804603682),f=d(f,u,l,h,r[p+13],12,-40341101),h=d(h,f,u,l,r[p+14],17,-1502002290),u=y(u,l=d(l,h,f,u,r[p+15],22,1236535329),h,f,r[p+1],5,-165796510),f=y(f,u,l,h,r[p+6],9,-1069501632),h=y(h,f,u,l,r[p+11],14,643717713),l=y(l,h,f,u,r[p+0],20,-373897302),u=y(u,l,h,f,r[p+5],5,-701558691),f=y(f,u,l,h,r[p+10],9,38016083),h=y(h,f,u,l,r[p+15],14,-660478335),l=y(l,h,f,u,r[p+4],20,-405537848),u=y(u,l,h,f,r[p+9],5,568446438),f=y(f,u,l,h,r[p+14],9,-1019803690),h=y(h,f,u,l,r[p+3],14,-187363961),l=y(l,h,f,u,r[p+8],20,1163531501),u=y(u,l,h,f,r[p+13],5,-1444681467),f=y(f,u,l,h,r[p+2],9,-51403784),h=y(h,f,u,l,r[p+7],14,1735328473),u=_(u,l=y(l,h,f,u,r[p+12],20,-1926607734),h,f,r[p+5],4,-378558),f=_(f,u,l,h,r[p+8],11,-2022574463),h=_(h,f,u,l,r[p+11],16,1839030562),l=_(l,h,f,u,r[p+14],23,-35309556),u=_(u,l,h,f,r[p+1],4,-1530992060),f=_(f,u,l,h,r[p+4],11,1272893353),h=_(h,f,u,l,r[p+7],16,-155497632),l=_(l,h,f,u,r[p+10],23,-1094730640),u=_(u,l,h,f,r[p+13],4,681279174),f=_(f,u,l,h,r[p+0],11,-358537222),h=_(h,f,u,l,r[p+3],16,-722521979),l=_(l,h,f,u,r[p+6],23,76029189),u=_(u,l,h,f,r[p+9],4,-640364487),f=_(f,u,l,h,r[p+12],11,-421815835),h=_(h,f,u,l,r[p+15],16,530742520),u=g(u,l=_(l,h,f,u,r[p+2],23,-995338651),h,f,r[p+0],6,-198630844),f=g(f,u,l,h,r[p+7],10,1126891415),h=g(h,f,u,l,r[p+14],15,-1416354905),l=g(l,h,f,u,r[p+5],21,-57434055),u=g(u,l,h,f,r[p+12],6,1700485571),f=g(f,u,l,h,r[p+3],10,-1894986606),h=g(h,f,u,l,r[p+10],15,-1051523),l=g(l,h,f,u,r[p+1],21,-2054922799),u=g(u,l,h,f,r[p+8],6,1873313359),f=g(f,u,l,h,r[p+15],10,-30611744),h=g(h,f,u,l,r[p+6],15,-1560198380),l=g(l,h,f,u,r[p+13],21,1309151649),u=g(u,l,h,f,r[p+4],6,-145523070),f=g(f,u,l,h,r[p+11],10,-1120210379),h=g(h,f,u,l,r[p+2],15,718787259),l=g(l,h,f,u,r[p+9],21,-343485551),u=u+S>>>0,l=l+m>>>0,h=h+A>>>0,f=f+H>>>0}return n.endian([u,l,h,f])})._ff=function(t,e,r,n,o,i,a){var s=t+(e&r|~e&n)+(o>>>0)+a;return(s<<i|s>>>32-i)+e},s._gg=function(t,e,r,n,o,i,a){var s=t+(e&n|r&~n)+(o>>>0)+a;return(s<<i|s>>>32-i)+e},s._hh=function(t,e,r,n,o,i,a){var s=t+(e^r^n)+(o>>>0)+a;return(s<<i|s>>>32-i)+e},s._ii=function(t,e,r,n,o,i,a){var s=t+(r^(e|~n))+(o>>>0)+a;return(s<<i|s>>>32-i)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(s(t,e));return e&&e.asBytes?r:e&&e.asString?a.bytesToString(r):n.bytesToHex(r)}},817:function(t,e,r){"use strict";var n=String.prototype.replace,o=/%20/g,i=r(762),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(t){return n.call(t,o,"+")},RFC3986:function(t){return String(t)}}},a)},818:function(t,e){var r={utf8:{stringToBytes:function(t){return r.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(r.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=r},854:function(t,e,r){"use strict";r.r(e),r.d(e,"getTranslator",(function(){return a})),r.d(e,"getSrcPage",(function(){return s})),r.d(e,"search",(function(){return c}));var n=r(19),o=r(855),i=r(17);const a=Object(n.a)(()=>new o.Youdao({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.YOUDAO_APPKEY&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.YOUDAO_KEY?{appKey:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.YOUDAO_APPKEY,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.YOUDAO_KEY}:void 0})),s=(t,e,r)=>"http://fanyi.youdao.com",c=async(t,e,r,n)=>{const o=a(),{sl:s,tl:c,text:u}=await Object(i.a)(o,t,r.dicts.all.youdaotrans,e,n),l=e.dictAuth.youdaotrans.appKey,h=e.dictAuth.youdaotrans.key,f=l&&h?{appKey:l,key:h}:void 0;try{const t=await o.translate(u,s,c,f);return Object(i.c)({result:{id:"youdaotrans",sl:t.from,tl:t.to,slInitial:r.dicts.all.youdaotrans.options.slInitial,searchText:t.origin,trans:t.trans},audio:{py:t.trans.tts,us:t.trans.tts}},o.getSupportLanguages())}catch(t){return Object(i.c)({result:{id:"youdaotrans",sl:s,tl:c,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},855:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3),o=r(540),i=n.__importDefault(r(541)),a=n.__importDefault(r(986)),s=r(987);const c=[["auto","AUTO"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],u="http://fanyi.youdao.com";class l extends o.Translator{constructor(){super(...arguments),this.name="youdao",this.token="mmbP%A-r6U3Nw(n]BjuEU",this.tokenUpdateTamp=0}async query(t,e,r,n){if(n.appKey){const a=(new Date).getTime(),c=Math.round((new Date).getTime()/1e3),u=n.appKey+function(t){const e=t.length;return e<=20?t:t.substring(0,10)+e+t.substring(e-10,e)}(t)+a+c+n.key,h=s.sha256(u),f=(await this.request("http://openapi.youdao.com/api",{method:"post",data:i.default.stringify({q:t,appKey:n.appKey,salt:a,from:l.langMap.get(e),to:l.langMap.get(r),sign:h,signType:"v3",curtime:c,headers:{"Content-Type":"application/x-www-form-urlencoded"}})}).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")})).data;return{text:t,from:e,to:r,origin:{paragraphs:t.split(/\n+/),tts:await this.textToSpeech(t,e)||void 0},trans:{paragraphs:f.translation,tts:await this.textToSpeech(f.translation.join("\n"),r)||void 0}}}if(("auto"!==e||"auto"!==r)&&"zh-CN"!==e&&"zh-CN"!==r)throw new o.TranslateError("UNSUPPORTED_LANG");return t=t.slice(0,5e3),this.transformRaw((await this.request("http://fanyi.youdao.com/translate_o?smartresult=dict&smartresult=rule",{method:"post",data:i.default.stringify({i:t,from:l.langMap.get(e),to:l.langMap.get(r),smartresult:"dict",doctype:"json",version:"2.1",keyfrom:"fanyi.web",action:"FY_BY_REALTIME",typoResult:"false",...a.default(t,await this.getToken())}),headers:{"Content-Type":"application/x-www-form-urlencoded",Referer:u,Cookie:"OUTFOX_SEARCH_USER_ID=-1799202939@10.168.8.64"}})).data,t)}async transformRaw(t,e){if(0!==t.errorCode)throw new o.TranslateError("API_SERVER_ERROR");const[r,n]=t.type.split("2"),i=l.langMapReverse.get(r)||"auto",a=l.langMapReverse.get(n)||"auto",s=t.translateResult.map(t=>t.map(t=>t.tgt.trim()).join(""));return{text:e,from:i,to:a,origin:{paragraphs:e.split(/\n+/),tts:await this.textToSpeech(e,i)||void 0},trans:{paragraphs:s,tts:await this.textToSpeech(s.join("\n"),a)||void 0}}}getSupportLanguages(){return[...l.langMap.keys()]}async updateToken(){const t=(await this.request("http://fanyi.youdao.com")).data.match(/<script.*?src="([^"]+?\/fanyi\.min\.js)"/);if(!t)return;const e=(await this.request(t[1])).data.match(/sign:n\.md5\("fanyideskweb"\+e\+i\+"([^"]+?)"\)/);e&&(this.token=e[1],this.tokenUpdateTamp=Date.now())}async getToken(){return Date.now()-this.tokenUpdateTamp>36e5&&await this.updateToken(),this.token}async textToSpeech(t,e){const r={en:"eng",ja:"jap",ko:"ko",fr:"fr"}[e];return r?"http://tts.youdao.com/fanyivoice?"+i.default.stringify({word:t,le:r,keyfrom:"speaker-target"}):null}}e.Youdao=l,l.langMap=new Map(c),l.langMapReverse=new Map(c.map(([t,e])=>[e,t])),e.default=l},966:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});r(3).__exportStar(r(967),e)},967:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.languages=["af","am","ar","auto","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","de","el","en","eo","es","et","eu","fa","fi","fil","fj","fr","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","id","ig","is","it","ja","jw","ka","kk","km","kn","ko","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","pt","ro","ru","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","th","tlh","tlh-Qaak","to","tr","ty","ug","uk","ur","uz","vi","wyw","xh","yi","yo","yua","yue","zh-CN","zh-TW","zu"]},968:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(t){super(t)}}e.TranslateError=n},969:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3).__importDefault(r(131)),o=r(970),i=r(971);e.Translator=class{constructor(t={}){this.env=t.env||"node",this.axios=t.axios||n.default,this.config=t.config||{}}async translate(t,e,r,n={}){return{...await this.query(t,e,r,{...this.config,...n}),engine:this.name}}request(t,e){return"ext"===this.env&&e&&e.headers?this.axios(t,o.modifyExtraHeaders(t,e)):this.axios(t,e)}async detect(t){return i.detectLang(t)}textToSpeech(t,e,r){return Promise.resolve(null)}}},970:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n="undefined"!=typeof browser?browser:"undefined"!=typeof chrome?chrome:null,o={},i=/^(Origin|Referer|Host|Cookie|User-Agent|DNT|Accept-Charset|Accept-Encoding)$/i,a=/^(Origin|Referer)$/i;e.modifyExtraHeaders=(t,e)=>{if(!e.headers)return e;const r=Object.keys(e.headers),s={};let c;for(let t=0;t<r.length;t++){const n=r[t];i.test(n)?a.test(n)&&(c=e.headers[n]):s[n]=e.headers[n]}return c&&function(t,e){if(!n)return void console.warn("Missing Browser Global");const r=new URL(t).origin+"/*";if(o[r])return;o[r]=!0;const i=["blocking","requestHeaders"];n.webRequest.OnBeforeSendHeadersOptions&&n.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS")&&i.push("extraHeaders"),n.webRequest.onBeforeSendHeaders.addListener(t=>{if(t&&t.requestHeaders){const r=t.requestHeaders.filter(t=>!a.test(t.name));return r.push({name:"Origin",value:e},{name:"Referer",value:e}),{requestHeaders:r}}return t},{urls:[r]},i)}(t,c),{...e,headers:s}}},971:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3).__importDefault(r(979)),o=new Map([["eng","en"],["jpn","ja"],["kor","ko"],["cmn","zh-CN"]]),i={minLength:1,whitelist:[...o.keys()]};e.detectLang=function(t){return o.get(n.default(t,i))||"auto"}},972:function(t,e,r){"use strict";function n(t){if("number"!=typeof t||isNaN(t)||t<1||t===1/0)throw new Error("`"+t+"` is not a valid argument for n-gram");return function(e){var r,n=[];if(null==e)return n;if(e=e.slice?e:String(e),(r=e.length-t+1)<1)return n;for(;r--;)n[r]=e.slice(r,r+t);return n}}t.exports=n,n.bigram=n(2),n.trigram=n(3)},973:function(t,e,r){"use strict";t.exports=function(t){return String(t).replace(/\s+/g," ")}},974:function(t,e){(e=t.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},e.right=function(t){return t.replace(/\s*$/,"")}},975:function(t,e,r){"use strict";var n=r(762),o=r(817),i=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,c=Array.prototype.push,u=function(t,e){c.apply(t,s(e)?e:[e])},l=Date.prototype.toISOString,h=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},p=function t(e,r,o,i,a,c,l,h,p,d,y,_,g){var S,m=e;if("function"==typeof l?m=l(r,m):m instanceof Date?m=d(m):"comma"===o&&s(m)&&(m=n.maybeMap(m,(function(t){return t instanceof Date?d(t):t})).join(",")),null===m){if(i)return c&&!_?c(r,f.encoder,g,"key"):r;m=""}if("string"==typeof(S=m)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||n.isBuffer(m))return c?[y(_?r:c(r,f.encoder,g,"key"))+"="+y(c(m,f.encoder,g,"value"))]:[y(r)+"="+y(String(m))];var A,H=[];if(void 0===m)return H;if(s(l))A=l;else{var b=Object.keys(m);A=h?b.sort(h):b}for(var E=0;E<A.length;++E){var R=A[E],O=m[R];if(!a||null!==O){var v=s(m)?"function"==typeof o?o(r,R):r:r+(p?"."+R:"["+R+"]");u(H,t(O,v,o,i,a,c,l,h,p,d,y,_,g))}}return H};t.exports=function(t,e){var r,n=t,c=function(t){if(!t)return f;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==t.format){if(!i.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=o.formatters[r],a=f.filter;return("function"==typeof t.filter||s(t.filter))&&(a=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===t.allowDots?f.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:a,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(e);"function"==typeof c.filter?n=(0,c.filter)("",n):s(c.filter)&&(r=c.filter);var l,h=[];if("object"!=typeof n||null===n)return"";l=e&&e.arrayFormat in a?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=a[l];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var y=0;y<r.length;++y){var _=r[y];c.skipNulls&&null===n[_]||u(h,p(n[_],_,d,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var g=h.join(c.delimiter),S=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),g.length>0?S+g:""}},976:function(t,e,r){"use strict";var n=r(762),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,n){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),u=s?i.slice(0,s.index):i,l=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var h=0;r.depth>0&&null!==(s=a.exec(i))&&h<r.depth;){if(h+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),function(t,e,r,n){for(var o=n?e:c(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:a[u]=o:a={0:o}}o=a}return o}(l,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var r,u={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,h=e.parameterLimit===1/0?void 0:e.parameterLimit,f=l.split(e.delimiter,h),p=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?d="utf-8":"utf8=%26%2310003%3B"===f[r]&&(d="iso-8859-1"),p=r,r=f.length);for(r=0;r<f.length;++r)if(r!==p){var y,_,g=f[r],S=g.indexOf("]="),m=-1===S?g.indexOf("="):S+1;-1===m?(y=e.decoder(g,a.decoder,d,"key"),_=e.strictNullHandling?null:""):(y=e.decoder(g.slice(0,m),a.decoder,d,"key"),_=n.maybeMap(c(g.slice(m+1),e),(function(t){return e.decoder(t,a.decoder,d,"value")}))),_&&e.interpretNumericEntities&&"iso-8859-1"===d&&(_=s(_)),g.indexOf("[]=")>-1&&(_=i(_)?[_]:_),o.call(u,y)?u[y]=n.combine(u[y],_):u[y]=_}return u}(t,r):t,h=r.plainObjects?Object.create(null):{},f=Object.keys(l),p=0;p<f.length;++p){var d=f[p],y=u(d,l[d],r,"string"==typeof t);h=n.merge(h,y,r)}return n.compact(h)}},977:function(t,e){var r,n;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var e=[],n=0;n<t.length;n+=3)for(var o=t[n]<<16|t[n+1]<<8|t[n+2],i=0;i<4;i++)8*n+6*i<=8*t.length?e.push(r.charAt(o>>>6*(3-i)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],n=0,o=0;n<t.length;o=++n%4)0!=o&&e.push((r.indexOf(t.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|r.indexOf(t.charAt(n))>>>6-2*o);return e}},t.exports=n},978:function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)} -/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh <https://feross.org> - * @license MIT - */ -t.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},980:function(t,e,r){"use strict";var n=r(972).trigram,o=r(973),i=r(974),a={}.hasOwnProperty;function s(t){return null==t?"":i(o(String(t).replace(/[\u0021-\u0040]+/g," "))).toLowerCase()}function c(t){return n(" "+s(t)+" ")}function u(t){for(var e,r=c(t),n=r.length,o={};n--;)e=r[n],a.call(o,e)?o[e]++:o[e]=1;return o}function l(t,e){return t[1]-e[1]}e.clean=s,e.trigrams=c,e.asDictionary=u,e.asTuples=function(t){var e,r=u(t),n=[];for(e in r)n.push([e,r[e]]);return n.sort(l),n},e.tuplesAsDictionary=function(t){var e,r=t.length,n={};for(;r--;)e=t[r],n[e[0]]=e[1];return n}},986:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3).__importDefault(r(763)),o="undefined"==typeof window?"5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36":window.navigator.appVersion,i=n.default(o);e.default=function(t,e){const r=Date.now()+"",o=r+parseInt(10*Math.random()+"",10);return{client:"fanyideskweb",ts:r,bv:i,salt:o,sign:n.default("fanyideskweb"+t+o+e)}}},987:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__; -/** - * [js-sha256]{@link https://github.com/emn178/js-sha256} - * - * @version 0.9.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2014-2017 - * @license MIT - */!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__(988),ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(r){return new Sha256(e,!0).update(r)[t]()}},createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var r=0;r<OUTPUT_TYPES.length;++r){var n=OUTPUT_TYPES[r];e[n]=createOutputMethod(n,t)}return e},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(t){if("string"==typeof t)return crypto.createHash(algorithm).update(t,"utf8").digest("hex");if(null==t)throw new Error(ERROR);return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod},createHmacOutputMethod=function(t,e){return function(r,n){return new HmacSha256(r,e,!0).update(n)[t]()}},createHmacMethod=function(t){var e=createHmacOutputMethod("hex",t);e.create=function(e){return new HmacSha256(e,t)},e.update=function(t,r){return e.create(t).update(r)};for(var r=0;r<OUTPUT_TYPES.length;++r){var n=OUTPUT_TYPES[r];e[n]=createHmacOutputMethod(n,t)}return e};function Sha256(t,e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=t}function HmacSha256(t,e,r){var n,o=typeof t;if("string"===o){var i,a=[],s=t.length,c=0;for(n=0;n<s;++n)(i=t.charCodeAt(n))<128?a[c++]=i:i<2048?(a[c++]=192|i>>6,a[c++]=128|63&i):i<55296||i>=57344?(a[c++]=224|i>>12,a[c++]=128|i>>6&63,a[c++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++n)),a[c++]=240|i>>18,a[c++]=128|i>>12&63,a[c++]=128|i>>6&63,a[c++]=128|63&i);t=a}else{if("object"!==o)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],l=[];for(n=0;n<64;++n){var h=t[n]||0;u[n]=92^h,l[n]=54^h}Sha256.call(this,e,r),this.update(l),this.oKeyPad=u,this.inner=!0,this.sharedMemory=r}Sha256.prototype.update=function(t){if(!this.finalized){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var n,o,i=0,a=t.length,s=this.blocks;i<a;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),e)for(o=this.start;i<a&&o<64;++i)s[o>>2]|=t[i]<<SHIFT[3&o++];else for(o=this.start;i<a&&o<64;++i)(n=t.charCodeAt(i))<128?s[o>>2]|=n<<SHIFT[3&o++]:n<2048?(s[o>>2]|=(192|n>>6)<<SHIFT[3&o++],s[o>>2]|=(128|63&n)<<SHIFT[3&o++]):n<55296||n>=57344?(s[o>>2]|=(224|n>>12)<<SHIFT[3&o++],s[o>>2]|=(128|n>>6&63)<<SHIFT[3&o++],s[o>>2]|=(128|63&n)<<SHIFT[3&o++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++i)),s[o>>2]|=(240|n>>18)<<SHIFT[3&o++],s[o>>2]|=(128|n>>12&63)<<SHIFT[3&o++],s[o>>2]|=(128|n>>6&63)<<SHIFT[3&o++],s[o>>2]|=(128|63&n)<<SHIFT[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.block=s[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,r,n,o,i,a,s,c,u=this.h0,l=this.h1,h=this.h2,f=this.h3,p=this.h4,d=this.h5,y=this.h6,_=this.h7,g=this.blocks;for(t=16;t<64;++t)e=((o=g[t-15])>>>7|o<<25)^(o>>>18|o<<14)^o>>>3,r=((o=g[t-2])>>>17|o<<15)^(o>>>19|o<<13)^o>>>10,g[t]=g[t-16]+e+g[t-7]+r<<0;for(c=l&h,t=0;t<64;t+=4)this.first?(this.is224?(i=300032,_=(o=g[0]-1413257819)-150054599<<0,f=o+24177077<<0):(i=704751109,_=(o=g[0]-210244248)-1521486534<<0,f=o+143694565<<0),this.first=!1):(e=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),n=(i=u&l)^u&h^c,_=f+(o=_+(r=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&d^~p&y)+K[t]+g[t])<<0,f=o+(e+n)<<0),e=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),n=(a=f&u)^f&l^i,y=h+(o=y+(r=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&p^~_&d)+K[t+1]+g[t+1])<<0,e=((h=o+(e+n)<<0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),n=(s=h&f)^h&u^a,d=l+(o=d+(r=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&_^~y&p)+K[t+2]+g[t+2])<<0,e=((l=o+(e+n)<<0)>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),n=(c=l&h)^l&f^s,p=u+(o=p+(r=(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&y^~d&_)+K[t+3]+g[t+3])<<0,u=o+(e+n)<<0;this.h0=this.h0+u<<0,this.h1=this.h1+l<<0,this.h2=this.h2+h<<0,this.h3=this.h3+f<<0,this.h4=this.h4+p<<0,this.h5=this.h5+d<<0,this.h6=this.h6+y<<0,this.h7=this.h7+_<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,o=this.h4,i=this.h5,a=this.h6,s=this.h7,c=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(c+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3,o=this.h4,i=this.h5,a=this.h6,s=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n,o>>24&255,o>>16&255,o>>8&255,255&o,i>>24&255,i>>16&255,i>>8&255,255&i,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||c.push(s>>24&255,s>>16&255,s>>8&255,255&s),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()},988:function(t,e){(function(e){t.exports=e}).call(this,{})}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/25.a8c83970.js b/plugins/saladict-ztools/ext-saladic/assets/25.a8c83970.js new file mode 100644 index 00000000..309d9977 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/25.a8c83970.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[25],{1372:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var l=a(0),c=a.n(l),i="undefined"!=typeof window?l.useLayoutEffect:l.useEffect;const r=e=>{const{tag:t="div",html:a,...r}=e,s=Object(l.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[d,n]=Object(l.useState)(null);return i(()=>{if(s&&d){for(;d.childNodes.length>0;)d.childNodes[0].remove();d.appendChild(s)}},[s,d]),c.a.createElement(t,{...r,ref:n})}},1374:function(e,t,a){"use strict";var l=a(0),c=a.n(l);t.a=e=>{const{title:t,className:a,children:l,...i}=e;return c.a.createElement("div",{className:"entryBox-Wrap"+(a?" "+a:""),...i},c.a.createElement("section",{className:"entryBox"},c.a.createElement("h1",{className:"entryBox-Title"},t),c.a.createElement("div",null,l)))}},691:function(e,t,a){"use strict";a.r(t),a.d(t,"DictMojidict",(function(){return m}));var l=a(0),c=a.n(l),i=a(97),r=a(1374),s=a(1),d=a(11),n=a(1372);const m=e=>c.a.createElement(c.a.Fragment,null,e.result.word&&c.a.createElement("div",{className:"dictMojidict-Head"},c.a.createElement("div",{className:"dictMojidict-Head_Main"},c.a.createElement("h1",null,e.result.word.spell),c.a.createElement("span",{className:"dictMojidict-Pron"},e.result.word.pron)," ",c.a.createElement(i.c,{src:e.result.word.tts||(()=>{var t;return s.a.send({type:"DICT_ENGINE_METHOD",payload:{id:"mojidict",method:"getTTS",args:[null===(t=e.result.word)||void 0===t?void 0:t.tarId,102]}})})}),e.result.word.excerpt&&c.a.createElement("p",{className:"dictMojidict-Excerpt"},e.result.word.excerpt)),e.result.word.imgUrl&&c.a.createElement("img",{className:"dictMojidict-Word_Image",src:e.result.word.imgUrl,alt:e.result.word.spell})),e.result.details&&e.result.details.map(e=>c.a.createElement(r.a,{key:e.objectId,title:e.title},e.subdetails&&c.a.createElement("ol",{className:"dictMojidict-List"},e.subdetails.map(e=>c.a.createElement("li",{key:e.objectId,className:"dictMojidict-ListItem"},c.a.createElement("p",{className:"dictMojidict-Word_Title"},e.title),e.titleJa&&c.a.createElement("p",{className:"dictMojidict-Word_Ja"},e.titleJa),e.examples&&e.examples.length>0&&c.a.createElement("ul",{className:"dictMojidict-Sublist"},e.examples.map(e=>c.a.createElement("li",{key:e.objectId},c.a.createElement("p",{className:"dictMojidict-Word_Title"},c.a.createElement(o,{html:e.notationTitle},e.title),c.a.createElement(i.c,{src:()=>s.a.send({type:"DICT_ENGINE_METHOD",payload:{id:"mojidict",method:"getTTS",args:[e.objectId,103]}})})),e.trans&&c.a.createElement("p",{className:"dictMojidict-Word_Trans"},e.trans))))))))),e.result.examples&&e.result.examples.length>0&&c.a.createElement(r.a,{title:"例句"},c.a.createElement("ul",{className:"dictMojidict-List dictMojidict-Plain_List"},e.result.examples.map(e=>c.a.createElement("li",{key:e.objectId},c.a.createElement("p",{className:"dictMojidict-Word_Title"},c.a.createElement(o,{html:e.notationTitle},e.title)),e.trans&&c.a.createElement("p",{className:"dictMojidict-Word_Trans"},e.trans),e.source&&c.a.createElement("p",{className:"dictMojidict-Source"},e.source))))),e.result.examQuestions&&e.result.examQuestions.length>0&&c.a.createElement(r.a,{title:"真题"},c.a.createElement("ul",{className:"dictMojidict-List dictMojidict-Plain_List"},e.result.examQuestions.map(e=>c.a.createElement("li",{key:e.objectId},c.a.createElement("p",{className:"dictMojidict-Word_Title"},e.title),c.a.createElement("p",{className:"dictMojidict-Word_Trans"},e.excerpt))))),e.result.related&&e.result.related.map(t=>c.a.createElement(r.a,{key:t.title,title:t.title},c.a.createElement("ul",{className:"dictMojidict-Related_List"},t.words.map(t=>c.a.createElement("li",{key:t.objectId||t.title},c.a.createElement(u,{className:"dictMojidict-Related_Title",text:t.title,searchText:e.searchText}),t.excerpt&&c.a.createElement(u,{className:"dictMojidict-Related_Excerpt",text:t.excerpt,searchText:e.searchText}))))))),o=({html:e,children:t})=>e?c.a.createElement(n.a,{tag:"span",html:e}):c.a.createElement(c.a.Fragment,null,t),u=({className:e,text:t,searchText:a})=>c.a.createElement("button",{type:"button",className:"dictMojidict-Search_Tag "+e,onClick:()=>a({word:Object(d.e)({text:t})})},t);t.default=m}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/26.59deaa63.js b/plugins/saladict-ztools/ext-saladic/assets/26.59deaa63.js new file mode 100644 index 00000000..f1544395 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/26.59deaa63.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[26],{1372:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(0),r=a.n(n),c="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const l=e=>{const{tag:t="div",html:a,...l}=e,i=Object(n.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[s,o]=Object(n.useState)(null);return c(()=>{if(i&&s){for(;s.childNodes.length>0;)s.childNodes[0].remove();s.appendChild(i)}},[i,s]),r.a.createElement(t,{...l,ref:o})}},1374:function(e,t,a){"use strict";var n=a(0),r=a.n(n);t.a=e=>{const{title:t,className:a,children:n,...c}=e;return r.a.createElement("div",{className:"entryBox-Wrap"+(a?" "+a:""),...c},r.a.createElement("section",{className:"entryBox"},r.a.createElement("h1",{className:"entryBox-Title"},t),r.a.createElement("div",null,n)))}},700:function(e,t,a){"use strict";a.r(t),a.d(t,"DictWeblio",(function(){return i}));var n=a(0),r=a.n(n),c=a(1374),l=a(1372);const i=({result:e})=>r.a.createElement("div",{className:"dictWeblio-Container"},e.map(({title:e,def:t})=>r.a.createElement(c.a,{key:e,className:"dictWeblio-Entry",title:r.a.createElement(l.a,{tag:"span",html:e})},r.a.createElement(l.a,{html:t}))));t.default=i}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/26.f0b018c7.js b/plugins/saladict-ztools/ext-saladic/assets/26.f0b018c7.js deleted file mode 100644 index 6360093a..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/26.f0b018c7.js +++ /dev/null @@ -1,8 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[26,27],{540:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3);n.__exportStar(r(966),e),n.__exportStar(r(968),e),n.__exportStar(r(969),e)},541:function(t,e,r){"use strict";var n=r(975),o=r(976),a=r(817);t.exports={formats:a,parse:o,stringify:n}},542:function(t,e,r){"use strict";r.r(e),r.d(e,"getTranslator",(function(){return i})),r.d(e,"getSrcPage",(function(){return s})),r.d(e,"search",(function(){return c}));var n=r(19),o=r(819),a=r(17);const i=Object(n.a)(()=>new o.Baidu({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_APPID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_KEY?{appid:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_APPID,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_KEY}:void 0})),s=(t,e,r)=>`https://fanyi.baidu.com/#auto/${"default"===r.dicts.all.baidu.options.tl?"zh-CN"===e.langCode?"zh":"zh-TW"===e.langCode?"cht":"en":r.dicts.all.baidu.options.tl}/${t}`,c=async(t,e,r,n)=>{const o=i(),{sl:s,tl:c,text:u}=await Object(a.a)(o,t,r.dicts.all.baidu,e,n),l=e.dictAuth.baidu.appid,f=e.dictAuth.baidu.key,p=l&&f?{appid:l,key:f}:void 0;try{const t=await o.translate(u,s,c,p);return Object(a.c)({result:{id:"baidu",slInitial:r.dicts.all.baidu.options.slInitial,sl:t.from,tl:t.to,searchText:t.origin,trans:t.trans},audio:{py:t.trans.tts,us:t.trans.tts}},o.getSupportLanguages())}catch(t){return Object(a.c)({result:{id:"baidu",slInitial:"hide",sl:s,tl:c,searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},762:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var a=e[n],i=a.obj[a.prop],s=Object.keys(i),c=0;c<s.length;++c){var u=s[c],l=i[u];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:i,prop:u}),r.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(o(r)){for(var n=[],a=0;a<r.length;++a)void 0!==r[a]&&n.push(r[a]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r){if(0===t.length)return t;var n=t;if("symbol"==typeof t?n=Symbol.prototype.toString.call(t):"string"!=typeof t&&(n=String(t)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var o="",i=0;i<n.length;++i){var s=n.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=n.charAt(i):s<128?o+=a[s]:s<2048?o+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?o+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(i)),o+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return o},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,a){if(!r)return e;if("object"!=typeof r){if(o(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(a&&(a.plainObjects||a.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var s=e;return o(e)&&!o(r)&&(s=i(e,a)),o(e)&&o(r)?(r.forEach((function(r,o){if(n.call(e,o)){var i=e[o];i&&"object"==typeof i&&r&&"object"==typeof r?e[o]=t(i,r,a):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var i=r[o];return n.call(e,o)?e[o]=t(e[o],i,a):e[o]=i,e}),s)}}},763:function(t,e,r){var n,o,a,i,s;n=r(977),o=r(818).utf8,a=r(978),i=r(818).bin,(s=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?i.stringToBytes(t):o.stringToBytes(t):a(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());for(var r=n.bytesToWords(t),c=8*t.length,u=1732584193,l=-271733879,f=-1732584194,p=271733878,d=0;d<r.length;d++)r[d]=16711935&(r[d]<<8|r[d]>>>24)|4278255360&(r[d]<<24|r[d]>>>8);r[c>>>5]|=128<<c%32,r[14+(c+64>>>9<<4)]=c;var h=s._ff,y=s._gg,g=s._hh,m=s._ii;for(d=0;d<r.length;d+=16){var b=u,O=l,v=f,w=p;u=h(u,l,f,p,r[d+0],7,-680876936),p=h(p,u,l,f,r[d+1],12,-389564586),f=h(f,p,u,l,r[d+2],17,606105819),l=h(l,f,p,u,r[d+3],22,-1044525330),u=h(u,l,f,p,r[d+4],7,-176418897),p=h(p,u,l,f,r[d+5],12,1200080426),f=h(f,p,u,l,r[d+6],17,-1473231341),l=h(l,f,p,u,r[d+7],22,-45705983),u=h(u,l,f,p,r[d+8],7,1770035416),p=h(p,u,l,f,r[d+9],12,-1958414417),f=h(f,p,u,l,r[d+10],17,-42063),l=h(l,f,p,u,r[d+11],22,-1990404162),u=h(u,l,f,p,r[d+12],7,1804603682),p=h(p,u,l,f,r[d+13],12,-40341101),f=h(f,p,u,l,r[d+14],17,-1502002290),u=y(u,l=h(l,f,p,u,r[d+15],22,1236535329),f,p,r[d+1],5,-165796510),p=y(p,u,l,f,r[d+6],9,-1069501632),f=y(f,p,u,l,r[d+11],14,643717713),l=y(l,f,p,u,r[d+0],20,-373897302),u=y(u,l,f,p,r[d+5],5,-701558691),p=y(p,u,l,f,r[d+10],9,38016083),f=y(f,p,u,l,r[d+15],14,-660478335),l=y(l,f,p,u,r[d+4],20,-405537848),u=y(u,l,f,p,r[d+9],5,568446438),p=y(p,u,l,f,r[d+14],9,-1019803690),f=y(f,p,u,l,r[d+3],14,-187363961),l=y(l,f,p,u,r[d+8],20,1163531501),u=y(u,l,f,p,r[d+13],5,-1444681467),p=y(p,u,l,f,r[d+2],9,-51403784),f=y(f,p,u,l,r[d+7],14,1735328473),u=g(u,l=y(l,f,p,u,r[d+12],20,-1926607734),f,p,r[d+5],4,-378558),p=g(p,u,l,f,r[d+8],11,-2022574463),f=g(f,p,u,l,r[d+11],16,1839030562),l=g(l,f,p,u,r[d+14],23,-35309556),u=g(u,l,f,p,r[d+1],4,-1530992060),p=g(p,u,l,f,r[d+4],11,1272893353),f=g(f,p,u,l,r[d+7],16,-155497632),l=g(l,f,p,u,r[d+10],23,-1094730640),u=g(u,l,f,p,r[d+13],4,681279174),p=g(p,u,l,f,r[d+0],11,-358537222),f=g(f,p,u,l,r[d+3],16,-722521979),l=g(l,f,p,u,r[d+6],23,76029189),u=g(u,l,f,p,r[d+9],4,-640364487),p=g(p,u,l,f,r[d+12],11,-421815835),f=g(f,p,u,l,r[d+15],16,530742520),u=m(u,l=g(l,f,p,u,r[d+2],23,-995338651),f,p,r[d+0],6,-198630844),p=m(p,u,l,f,r[d+7],10,1126891415),f=m(f,p,u,l,r[d+14],15,-1416354905),l=m(l,f,p,u,r[d+5],21,-57434055),u=m(u,l,f,p,r[d+12],6,1700485571),p=m(p,u,l,f,r[d+3],10,-1894986606),f=m(f,p,u,l,r[d+10],15,-1051523),l=m(l,f,p,u,r[d+1],21,-2054922799),u=m(u,l,f,p,r[d+8],6,1873313359),p=m(p,u,l,f,r[d+15],10,-30611744),f=m(f,p,u,l,r[d+6],15,-1560198380),l=m(l,f,p,u,r[d+13],21,1309151649),u=m(u,l,f,p,r[d+4],6,-145523070),p=m(p,u,l,f,r[d+11],10,-1120210379),f=m(f,p,u,l,r[d+2],15,718787259),l=m(l,f,p,u,r[d+9],21,-343485551),u=u+b>>>0,l=l+O>>>0,f=f+v>>>0,p=p+w>>>0}return n.endian([u,l,f,p])})._ff=function(t,e,r,n,o,a,i){var s=t+(e&r|~e&n)+(o>>>0)+i;return(s<<a|s>>>32-a)+e},s._gg=function(t,e,r,n,o,a,i){var s=t+(e&n|r&~n)+(o>>>0)+i;return(s<<a|s>>>32-a)+e},s._hh=function(t,e,r,n,o,a,i){var s=t+(e^r^n)+(o>>>0)+i;return(s<<a|s>>>32-a)+e},s._ii=function(t,e,r,n,o,a,i){var s=t+(r^(e|~n))+(o>>>0)+i;return(s<<a|s>>>32-a)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(s(t,e));return e&&e.asBytes?r:e&&e.asString?i.bytesToString(r):n.bytesToHex(r)}},817:function(t,e,r){"use strict";var n=String.prototype.replace,o=/%20/g,a=r(762),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=a.assign({default:i.RFC3986,formatters:{RFC1738:function(t){return n.call(t,o,"+")},RFC3986:function(t){return String(t)}}},i)},818:function(t,e){var r={utf8:{stringToBytes:function(t){return r.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(r.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=r},819:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3),o=r(540),a=n.__importDefault(r(763)),i=n.__importDefault(r(541)),s=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]];class c extends o.Translator{constructor(){super(...arguments),this.name="baidu",this.endpoint="http://api.fanyi.baidu.com/api/trans/vip/translate",this.appid="20151211000007653",this.key="IFJB6jBORFuMmVGDRude"}async query(t,e,r,n){const s=Date.now(),u=n.appid||this.appid,l=n.key||this.key,f=await this.request(this.endpoint,{params:{from:c.langMap.get(e),to:c.langMap.get(r),q:t,salt:s,appid:u,sign:a.default(u+t+s+l)}}).then(this.checkData).catch(()=>this.request("http://openapi.baidu.com/public/2.0/bmt/translate?"+i.default.stringify({client_id:"AVhF9A0GExzkU5gCkZ0Gbht7",from:c.langMap.get(e),to:c.langMap.get(r),q:t})).then(this.checkData)).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")}),{trans_result:p,from:d}=f,h=c.langMapReverse.get(d)||e;return{text:t,from:h,to:r,origin:{paragraphs:p.map(({src:t})=>t),tts:await this.textToSpeech(t,h)},trans:{paragraphs:p.map(({dst:t})=>t),tts:await this.textToSpeech(p[0].dst,r)}}}async textToSpeech(t,e){return"http://tts.baidu.com/text2audio?"+i.default.stringify({lan:c.langMap.get("auto"!==e?e:"zh-CN")||"zh",ie:"UTF-8",spd:5,text:t})}checkData({data:t}){if(t.error_code)throw new o.TranslateError("API_SERVER_ERROR");return t}getSupportLanguages(){return[...c.langMap.keys()]}}e.Baidu=c,c.langMap=new Map(s),c.langMapReverse=new Map(s.map(([t,e])=>[e,t])),e.default=c},822:function(t,e,r){"use strict";r.r(e),r.d(e,"getTranslator",(function(){return s})),r.d(e,"getSrcPage",(function(){return c})),r.d(e,"search",(function(){return u}));var n=r(19),o=r(823),a=r(17),i=r(542);const s=Object(n.a)(()=>new o.Caiyun({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.CAIYUN_TOKEN?{token:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.CAIYUN_TOKEN}:void 0})),c=()=>"https://fanyi.caiyunapp.com/",u=async(t,e,r,n)=>{const o=s(),c=o.getSupportLanguages();let{sl:u,tl:l,text:f}=await Object(a.a)(o,t,r.dicts.all.caiyun,e,n);const p=Object(i.getTranslator)();let d;try{d=await p.translate(f,u,l),c.includes(d.from)&&(u=d.from)}catch(t){}const h=e.dictAuth.caiyun.token,y=h?{token:h}:void 0;try{const t=await o.translate(f,u,l,y);return t.origin.tts=await p.textToSpeech(t.origin.paragraphs.join("\n"),t.from),t.trans.tts=await p.textToSpeech(t.trans.paragraphs.join("\n"),t.to),Object(a.c)({result:{id:"caiyun",sl:t.from,tl:t.to,slInitial:r.dicts.all.caiyun.options.slInitial,searchText:t.origin,trans:t.trans},audio:{py:t.trans.tts,us:t.trans.tts}},c)}catch(t){return Object(a.c)({result:{id:"caiyun",sl:u,tl:l,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},823:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3),o=r(540),a=n.__importDefault(r(541)),i=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]];class s extends o.Translator{constructor(){super(...arguments),this.token="ukiw3nrioeilf0mlpam7",this.name="caiyun"}getSupportLanguages(){return[...s.langMap.keys()]}async textToSpeech(t,e){return"http://tts.baidu.com/text2audio?"+a.default.stringify({lan:s.langMap.get("auto"!==e?e:"zh-CN")||"zh",ie:"UTF-8",spd:5,text:t})}async query(t,e,r,n){const a="auto"===e,i=t.split(/\n+/),c=await this.request("https://api.interpreter.caiyunai.com/v1/translator",{headers:{"content-type":"application/json","x-authorization":"token "+(n.token||this.token)},method:"POST",data:JSON.stringify({source:i,trans_type:`${s.langMap.get(e)}2${s.langMap.get(r)}`,detect:a})}).catch(()=>{});if(!c||!c.data)throw new o.TranslateError("NETWORK_ERROR");const u=c.data,l=a?await this.detect(t):e;return{text:t,from:l,to:r,origin:{paragraphs:i,tts:await this.textToSpeech(t,l)},trans:{paragraphs:u.target,tts:await this.textToSpeech(u.target.join(" "),r)}}}}e.Caiyun=s,s.langMap=new Map(i),s.langMapReverse=new Map(i.map(([t,e])=>[e,t])),e.default=s},966:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});r(3).__exportStar(r(967),e)},967:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.languages=["af","am","ar","auto","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","de","el","en","eo","es","et","eu","fa","fi","fil","fj","fr","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","id","ig","is","it","ja","jw","ka","kk","km","kn","ko","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","pt","ro","ru","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","th","tlh","tlh-Qaak","to","tr","ty","ug","uk","ur","uz","vi","wyw","xh","yi","yo","yua","yue","zh-CN","zh-TW","zu"]},968:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(t){super(t)}}e.TranslateError=n},969:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3).__importDefault(r(131)),o=r(970),a=r(971);e.Translator=class{constructor(t={}){this.env=t.env||"node",this.axios=t.axios||n.default,this.config=t.config||{}}async translate(t,e,r,n={}){return{...await this.query(t,e,r,{...this.config,...n}),engine:this.name}}request(t,e){return"ext"===this.env&&e&&e.headers?this.axios(t,o.modifyExtraHeaders(t,e)):this.axios(t,e)}async detect(t){return a.detectLang(t)}textToSpeech(t,e,r){return Promise.resolve(null)}}},970:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n="undefined"!=typeof browser?browser:"undefined"!=typeof chrome?chrome:null,o={},a=/^(Origin|Referer|Host|Cookie|User-Agent|DNT|Accept-Charset|Accept-Encoding)$/i,i=/^(Origin|Referer)$/i;e.modifyExtraHeaders=(t,e)=>{if(!e.headers)return e;const r=Object.keys(e.headers),s={};let c;for(let t=0;t<r.length;t++){const n=r[t];a.test(n)?i.test(n)&&(c=e.headers[n]):s[n]=e.headers[n]}return c&&function(t,e){if(!n)return void console.warn("Missing Browser Global");const r=new URL(t).origin+"/*";if(o[r])return;o[r]=!0;const a=["blocking","requestHeaders"];n.webRequest.OnBeforeSendHeadersOptions&&n.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS")&&a.push("extraHeaders"),n.webRequest.onBeforeSendHeaders.addListener(t=>{if(t&&t.requestHeaders){const r=t.requestHeaders.filter(t=>!i.test(t.name));return r.push({name:"Origin",value:e},{name:"Referer",value:e}),{requestHeaders:r}}return t},{urls:[r]},a)}(t,c),{...e,headers:s}}},971:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(3).__importDefault(r(979)),o=new Map([["eng","en"],["jpn","ja"],["kor","ko"],["cmn","zh-CN"]]),a={minLength:1,whitelist:[...o.keys()]};e.detectLang=function(t){return o.get(n.default(t,a))||"auto"}},972:function(t,e,r){"use strict";function n(t){if("number"!=typeof t||isNaN(t)||t<1||t===1/0)throw new Error("`"+t+"` is not a valid argument for n-gram");return function(e){var r,n=[];if(null==e)return n;if(e=e.slice?e:String(e),(r=e.length-t+1)<1)return n;for(;r--;)n[r]=e.slice(r,r+t);return n}}t.exports=n,n.bigram=n(2),n.trigram=n(3)},973:function(t,e,r){"use strict";t.exports=function(t){return String(t).replace(/\s+/g," ")}},974:function(t,e){(e=t.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},e.right=function(t){return t.replace(/\s*$/,"")}},975:function(t,e,r){"use strict";var n=r(762),o=r(817),a=Object.prototype.hasOwnProperty,i={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,c=Array.prototype.push,u=function(t,e){c.apply(t,s(e)?e:[e])},l=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,r,o,a,i,c,l,f,d,h,y,g,m){var b,O=e;if("function"==typeof l?O=l(r,O):O instanceof Date?O=h(O):"comma"===o&&s(O)&&(O=n.maybeMap(O,(function(t){return t instanceof Date?h(t):t})).join(",")),null===O){if(a)return c&&!g?c(r,p.encoder,m,"key"):r;O=""}if("string"==typeof(b=O)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||n.isBuffer(O))return c?[y(g?r:c(r,p.encoder,m,"key"))+"="+y(c(O,p.encoder,m,"value"))]:[y(r)+"="+y(String(O))];var v,w=[];if(void 0===O)return w;if(s(l))v=l;else{var T=Object.keys(O);v=f?T.sort(f):T}for(var _=0;_<v.length;++_){var P=v[_],S=O[P];if(!i||null!==S){var j=s(O)?"function"==typeof o?o(r,P):r:r+(d?"."+P:"["+P+"]");u(w,t(S,j,o,a,i,c,l,f,d,h,y,g,m))}}return w};t.exports=function(t,e){var r,n=t,c=function(t){if(!t)return p;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||p.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=o.formatters[r],i=p.filter;return("function"==typeof t.filter||s(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===t.allowDots?p.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:p.charsetSentinel,delimiter:void 0===t.delimiter?p.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:p.encode,encoder:"function"==typeof t.encoder?t.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:p.encodeValuesOnly,filter:i,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:p.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:p.strictNullHandling}}(e);"function"==typeof c.filter?n=(0,c.filter)("",n):s(c.filter)&&(r=c.filter);var l,f=[];if("object"!=typeof n||null===n)return"";l=e&&e.arrayFormat in i?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var h=i[l];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var y=0;y<r.length;++y){var g=r[y];c.skipNulls&&null===n[g]||u(f,d(n[g],g,h,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var m=f.join(c.delimiter),b=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),m.length>0?b+m:""}},976:function(t,e,r){"use strict";var n=r(762),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,n){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(a),u=s?a.slice(0,s.index):a,l=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var f=0;r.depth>0&&null!==(s=i.exec(a))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+a.slice(s.index)+"]"),function(t,e,r,n){for(var o=n?e:c(e,r),a=t.length-1;a>=0;--a){var i,s=t[a];if("[]"===s&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(i=[])[l]=o:i[u]=o:i={0:o}}o=i}return o}(l,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var r,u={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,p=l.split(e.delimiter,f),d=-1,h=e.charset;if(e.charsetSentinel)for(r=0;r<p.length;++r)0===p[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[r]?h="utf-8":"utf8=%26%2310003%3B"===p[r]&&(h="iso-8859-1"),d=r,r=p.length);for(r=0;r<p.length;++r)if(r!==d){var y,g,m=p[r],b=m.indexOf("]="),O=-1===b?m.indexOf("="):b+1;-1===O?(y=e.decoder(m,i.decoder,h,"key"),g=e.strictNullHandling?null:""):(y=e.decoder(m.slice(0,O),i.decoder,h,"key"),g=n.maybeMap(c(m.slice(O+1),e),(function(t){return e.decoder(t,i.decoder,h,"value")}))),g&&e.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),m.indexOf("[]=")>-1&&(g=a(g)?[g]:g),o.call(u,y)?u[y]=n.combine(u[y],g):u[y]=g}return u}(t,r):t,f=r.plainObjects?Object.create(null):{},p=Object.keys(l),d=0;d<p.length;++d){var h=p[d],y=u(h,l[h],r,"string"==typeof t);f=n.merge(f,y,r)}return n.compact(f)}},977:function(t,e){var r,n;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var e=[],n=0;n<t.length;n+=3)for(var o=t[n]<<16|t[n+1]<<8|t[n+2],a=0;a<4;a++)8*n+6*a<=8*t.length?e.push(r.charAt(o>>>6*(3-a)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],n=0,o=0;n<t.length;o=++n%4)0!=o&&e.push((r.indexOf(t.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|r.indexOf(t.charAt(n))>>>6-2*o);return e}},t.exports=n},978:function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)} -/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh <https://feross.org> - * @license MIT - */ -t.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},980:function(t,e,r){"use strict";var n=r(972).trigram,o=r(973),a=r(974),i={}.hasOwnProperty;function s(t){return null==t?"":a(o(String(t).replace(/[\u0021-\u0040]+/g," "))).toLowerCase()}function c(t){return n(" "+s(t)+" ")}function u(t){for(var e,r=c(t),n=r.length,o={};n--;)e=r[n],i.call(o,e)?o[e]++:o[e]=1;return o}function l(t,e){return t[1]-e[1]}e.clean=s,e.trigrams=c,e.asDictionary=u,e.asTuples=function(t){var e,r=u(t),n=[];for(e in r)n.push([e,r[e]]);return n.sort(l),n},e.tuplesAsDictionary=function(t){var e,r=t.length,n={};for(;r--;)e=t[r],n[e[0]]=e[1];return n}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/27.5af28182.js b/plugins/saladict-ztools/ext-saladic/assets/27.5af28182.js new file mode 100644 index 00000000..1f875713 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/27.5af28182.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[27],{1372:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),c="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;const l=e=>{const{tag:t="div",html:n,...l}=e,i=Object(a.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(n,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[n]),[o,s]=Object(a.useState)(null);return c(()=>{if(i&&o){for(;o.childNodes.length>0;)o.childNodes[0].remove();o.appendChild(i)}},[i,o]),r.a.createElement(t,{...l,ref:s})}},1374:function(e,t,n){"use strict";var a=n(0),r=n.n(a);t.a=e=>{const{title:t,className:n,children:a,...c}=e;return r.a.createElement("div",{className:"entryBox-Wrap"+(n?" "+n:""),...c},r.a.createElement("section",{className:"entryBox"},r.a.createElement("h1",{className:"entryBox-Title"},t),r.a.createElement("div",null,a)))}},701:function(e,t,n){"use strict";n.r(t),n.d(t,"DictWeblioejje",(function(){return i}));var a=n(0),r=n.n(a),c=n(1374),l=n(1372);const i=({result:e})=>r.a.createElement("div",null,e.map((e,t)=>e.title?r.a.createElement(c.a,{key:e.title+t,title:e.title},r.a.createElement(l.a,{html:e.content})):r.a.createElement(l.a,{key:t,className:"dictWeblioejje-Box",html:e.content})));t.default=i}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/27.fb5837ae.js b/plugins/saladict-ztools/ext-saladic/assets/27.fb5837ae.js deleted file mode 100644 index f88df196..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/27.fb5837ae.js +++ /dev/null @@ -1,8 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[27],{540:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3);n.__exportStar(r(966),t),n.__exportStar(r(968),t),n.__exportStar(r(969),t)},541:function(e,t,r){"use strict";var n=r(975),o=r(976),i=r(817);e.exports={formats:i,parse:o,stringify:n}},542:function(e,t,r){"use strict";r.r(t),r.d(t,"getTranslator",(function(){return a})),r.d(t,"getSrcPage",(function(){return s})),r.d(t,"search",(function(){return u}));var n=r(19),o=r(819),i=r(17);const a=Object(n.a)(()=>new o.Baidu({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_APPID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_KEY?{appid:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_APPID,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_KEY}:void 0})),s=(e,t,r)=>`https://fanyi.baidu.com/#auto/${"default"===r.dicts.all.baidu.options.tl?"zh-CN"===t.langCode?"zh":"zh-TW"===t.langCode?"cht":"en":r.dicts.all.baidu.options.tl}/${e}`,u=async(e,t,r,n)=>{const o=a(),{sl:s,tl:u,text:c}=await Object(i.a)(o,e,r.dicts.all.baidu,t,n),l=t.dictAuth.baidu.appid,f=t.dictAuth.baidu.key,p=l&&f?{appid:l,key:f}:void 0;try{const e=await o.translate(c,s,u,p);return Object(i.c)({result:{id:"baidu",slInitial:r.dicts.all.baidu.options.slInitial,sl:e.from,tl:e.to,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(i.c)({result:{id:"baidu",slInitial:"hide",sl:s,tl:u,searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},762:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:c}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r){if(0===e.length)return e;var n=e;if("symbol"==typeof e?n=Symbol.prototype.toString.call(e):"string"!=typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<n.length;++a){var s=n.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=n.charAt(a):s<128?o+=i[s]:s<2048?o+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?o+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(a)),o+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,i){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return o(t)&&!o(r)&&(s=a(t,i)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,i):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var a=r[o];return n.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),s)}}},763:function(e,t,r){var n,o,i,a,s;n=r(977),o=r(818).utf8,i=r(978),a=r(818).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var r=n.bytesToWords(e),u=8*e.length,c=1732584193,l=-271733879,f=-1732584194,p=271733878,d=0;d<r.length;d++)r[d]=16711935&(r[d]<<8|r[d]>>>24)|4278255360&(r[d]<<24|r[d]>>>8);r[u>>>5]|=128<<u%32,r[14+(u+64>>>9<<4)]=u;var h=s._ff,y=s._gg,g=s._hh,m=s._ii;for(d=0;d<r.length;d+=16){var b=c,v=l,O=f,w=p;c=h(c,l,f,p,r[d+0],7,-680876936),p=h(p,c,l,f,r[d+1],12,-389564586),f=h(f,p,c,l,r[d+2],17,606105819),l=h(l,f,p,c,r[d+3],22,-1044525330),c=h(c,l,f,p,r[d+4],7,-176418897),p=h(p,c,l,f,r[d+5],12,1200080426),f=h(f,p,c,l,r[d+6],17,-1473231341),l=h(l,f,p,c,r[d+7],22,-45705983),c=h(c,l,f,p,r[d+8],7,1770035416),p=h(p,c,l,f,r[d+9],12,-1958414417),f=h(f,p,c,l,r[d+10],17,-42063),l=h(l,f,p,c,r[d+11],22,-1990404162),c=h(c,l,f,p,r[d+12],7,1804603682),p=h(p,c,l,f,r[d+13],12,-40341101),f=h(f,p,c,l,r[d+14],17,-1502002290),c=y(c,l=h(l,f,p,c,r[d+15],22,1236535329),f,p,r[d+1],5,-165796510),p=y(p,c,l,f,r[d+6],9,-1069501632),f=y(f,p,c,l,r[d+11],14,643717713),l=y(l,f,p,c,r[d+0],20,-373897302),c=y(c,l,f,p,r[d+5],5,-701558691),p=y(p,c,l,f,r[d+10],9,38016083),f=y(f,p,c,l,r[d+15],14,-660478335),l=y(l,f,p,c,r[d+4],20,-405537848),c=y(c,l,f,p,r[d+9],5,568446438),p=y(p,c,l,f,r[d+14],9,-1019803690),f=y(f,p,c,l,r[d+3],14,-187363961),l=y(l,f,p,c,r[d+8],20,1163531501),c=y(c,l,f,p,r[d+13],5,-1444681467),p=y(p,c,l,f,r[d+2],9,-51403784),f=y(f,p,c,l,r[d+7],14,1735328473),c=g(c,l=y(l,f,p,c,r[d+12],20,-1926607734),f,p,r[d+5],4,-378558),p=g(p,c,l,f,r[d+8],11,-2022574463),f=g(f,p,c,l,r[d+11],16,1839030562),l=g(l,f,p,c,r[d+14],23,-35309556),c=g(c,l,f,p,r[d+1],4,-1530992060),p=g(p,c,l,f,r[d+4],11,1272893353),f=g(f,p,c,l,r[d+7],16,-155497632),l=g(l,f,p,c,r[d+10],23,-1094730640),c=g(c,l,f,p,r[d+13],4,681279174),p=g(p,c,l,f,r[d+0],11,-358537222),f=g(f,p,c,l,r[d+3],16,-722521979),l=g(l,f,p,c,r[d+6],23,76029189),c=g(c,l,f,p,r[d+9],4,-640364487),p=g(p,c,l,f,r[d+12],11,-421815835),f=g(f,p,c,l,r[d+15],16,530742520),c=m(c,l=g(l,f,p,c,r[d+2],23,-995338651),f,p,r[d+0],6,-198630844),p=m(p,c,l,f,r[d+7],10,1126891415),f=m(f,p,c,l,r[d+14],15,-1416354905),l=m(l,f,p,c,r[d+5],21,-57434055),c=m(c,l,f,p,r[d+12],6,1700485571),p=m(p,c,l,f,r[d+3],10,-1894986606),f=m(f,p,c,l,r[d+10],15,-1051523),l=m(l,f,p,c,r[d+1],21,-2054922799),c=m(c,l,f,p,r[d+8],6,1873313359),p=m(p,c,l,f,r[d+15],10,-30611744),f=m(f,p,c,l,r[d+6],15,-1560198380),l=m(l,f,p,c,r[d+13],21,1309151649),c=m(c,l,f,p,r[d+4],6,-145523070),p=m(p,c,l,f,r[d+11],10,-1120210379),f=m(f,p,c,l,r[d+2],15,718787259),l=m(l,f,p,c,r[d+9],21,-343485551),c=c+b>>>0,l=l+v>>>0,f=f+O>>>0,p=p+w>>>0}return n.endian([c,l,f,p])})._ff=function(e,t,r,n,o,i,a){var s=e+(t&r|~t&n)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._gg=function(e,t,r,n,o,i,a){var s=e+(t&n|r&~n)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._hh=function(e,t,r,n,o,i,a){var s=e+(t^r^n)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._ii=function(e,t,r,n,o,i,a){var s=e+(r^(t|~n))+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var r=n.wordsToBytes(s(e,t));return t&&t.asBytes?r:t&&t.asString?a.bytesToString(r):n.bytesToHex(r)}},817:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g,i=r(762),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},818:function(e,t){var r={utf8:{stringToBytes:function(e){return r.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(r.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}};e.exports=r},819:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3),o=r(540),i=n.__importDefault(r(763)),a=n.__importDefault(r(541)),s=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]];class u extends o.Translator{constructor(){super(...arguments),this.name="baidu",this.endpoint="http://api.fanyi.baidu.com/api/trans/vip/translate",this.appid="20151211000007653",this.key="IFJB6jBORFuMmVGDRude"}async query(e,t,r,n){const s=Date.now(),c=n.appid||this.appid,l=n.key||this.key,f=await this.request(this.endpoint,{params:{from:u.langMap.get(t),to:u.langMap.get(r),q:e,salt:s,appid:c,sign:i.default(c+e+s+l)}}).then(this.checkData).catch(()=>this.request("http://openapi.baidu.com/public/2.0/bmt/translate?"+a.default.stringify({client_id:"AVhF9A0GExzkU5gCkZ0Gbht7",from:u.langMap.get(t),to:u.langMap.get(r),q:e})).then(this.checkData)).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")}),{trans_result:p,from:d}=f,h=u.langMapReverse.get(d)||t;return{text:e,from:h,to:r,origin:{paragraphs:p.map(({src:e})=>e),tts:await this.textToSpeech(e,h)},trans:{paragraphs:p.map(({dst:e})=>e),tts:await this.textToSpeech(p[0].dst,r)}}}async textToSpeech(e,t){return"http://tts.baidu.com/text2audio?"+a.default.stringify({lan:u.langMap.get("auto"!==t?t:"zh-CN")||"zh",ie:"UTF-8",spd:5,text:e})}checkData({data:e}){if(e.error_code)throw new o.TranslateError("API_SERVER_ERROR");return e}getSupportLanguages(){return[...u.langMap.keys()]}}t.Baidu=u,u.langMap=new Map(s),u.langMapReverse=new Map(s.map(([e,t])=>[t,e])),t.default=u},966:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(3).__exportStar(r(967),t)},967:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.languages=["af","am","ar","auto","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","de","el","en","eo","es","et","eu","fa","fi","fil","fj","fr","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","id","ig","is","it","ja","jw","ka","kk","km","kn","ko","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","pt","ro","ru","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","th","tlh","tlh-Qaak","to","tr","ty","ug","uk","ur","uz","vi","wyw","xh","yi","yo","yua","yue","zh-CN","zh-TW","zu"]},968:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super(e)}}t.TranslateError=n},969:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3).__importDefault(r(131)),o=r(970),i=r(971);t.Translator=class{constructor(e={}){this.env=e.env||"node",this.axios=e.axios||n.default,this.config=e.config||{}}async translate(e,t,r,n={}){return{...await this.query(e,t,r,{...this.config,...n}),engine:this.name}}request(e,t){return"ext"===this.env&&t&&t.headers?this.axios(e,o.modifyExtraHeaders(e,t)):this.axios(e,t)}async detect(e){return i.detectLang(e)}textToSpeech(e,t,r){return Promise.resolve(null)}}},970:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="undefined"!=typeof browser?browser:"undefined"!=typeof chrome?chrome:null,o={},i=/^(Origin|Referer|Host|Cookie|User-Agent|DNT|Accept-Charset|Accept-Encoding)$/i,a=/^(Origin|Referer)$/i;t.modifyExtraHeaders=(e,t)=>{if(!t.headers)return t;const r=Object.keys(t.headers),s={};let u;for(let e=0;e<r.length;e++){const n=r[e];i.test(n)?a.test(n)&&(u=t.headers[n]):s[n]=t.headers[n]}return u&&function(e,t){if(!n)return void console.warn("Missing Browser Global");const r=new URL(e).origin+"/*";if(o[r])return;o[r]=!0;const i=["blocking","requestHeaders"];n.webRequest.OnBeforeSendHeadersOptions&&n.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS")&&i.push("extraHeaders"),n.webRequest.onBeforeSendHeaders.addListener(e=>{if(e&&e.requestHeaders){const r=e.requestHeaders.filter(e=>!a.test(e.name));return r.push({name:"Origin",value:t},{name:"Referer",value:t}),{requestHeaders:r}}return e},{urls:[r]},i)}(e,u),{...t,headers:s}}},971:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3).__importDefault(r(979)),o=new Map([["eng","en"],["jpn","ja"],["kor","ko"],["cmn","zh-CN"]]),i={minLength:1,whitelist:[...o.keys()]};t.detectLang=function(e){return o.get(n.default(e,i))||"auto"}},972:function(e,t,r){"use strict";function n(e){if("number"!=typeof e||isNaN(e)||e<1||e===1/0)throw new Error("`"+e+"` is not a valid argument for n-gram");return function(t){var r,n=[];if(null==t)return n;if(t=t.slice?t:String(t),(r=t.length-e+1)<1)return n;for(;r--;)n[r]=t.slice(r,r+e);return n}}e.exports=n,n.bigram=n(2),n.trigram=n(3)},973:function(e,t,r){"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},974:function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},975:function(e,t,r){"use strict";var n=r(762),o=r(817),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,s(t)?t:[t])},l=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,r,o,i,a,u,l,f,d,h,y,g,m){var b,v=t;if("function"==typeof l?v=l(r,v):v instanceof Date?v=h(v):"comma"===o&&s(v)&&(v=n.maybeMap(v,(function(e){return e instanceof Date?h(e):e})).join(",")),null===v){if(i)return u&&!g?u(r,p.encoder,m,"key"):r;v=""}if("string"==typeof(b=v)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||n.isBuffer(v))return u?[y(g?r:u(r,p.encoder,m,"key"))+"="+y(u(v,p.encoder,m,"value"))]:[y(r)+"="+y(String(v))];var O,w=[];if(void 0===v)return w;if(s(l))O=l;else{var _=Object.keys(v);O=f?_.sort(f):_}for(var P=0;P<O.length;++P){var j=O[P],S=v[j];if(!a||null!==S){var T=s(v)?"function"==typeof o?o(r,j):r:r+(d?"."+j:"["+j+"]");c(w,e(S,T,o,i,a,u,l,f,d,h,y,g,m))}}return w};e.exports=function(e,t){var r,n=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],a=p.filter;return("function"==typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:a,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?n=(0,u.filter)("",n):s(u.filter)&&(r=u.filter);var l,f=[];if("object"!=typeof n||null===n)return"";l=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=a[l];r||(r=Object.keys(n)),u.sort&&r.sort(u.sort);for(var y=0;y<r.length;++y){var g=r[y];u.skipNulls&&null===n[g]||c(f,d(n[g],g,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var m=f.join(u.delimiter),b=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),m.length>0?b+m:""}},976:function(e,t,r){"use strict";var n=r(762),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var f=0;r.depth>0&&null!==(s=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),function(e,t,r,n){for(var o=n?t:u(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:a[c]=o:a={0:o}}o=a}return o}(l,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,c={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=l.split(t.delimiter,f),d=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r<p.length;++r)0===p[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[r]?h="utf-8":"utf8=%26%2310003%3B"===p[r]&&(h="iso-8859-1"),d=r,r=p.length);for(r=0;r<p.length;++r)if(r!==d){var y,g,m=p[r],b=m.indexOf("]="),v=-1===b?m.indexOf("="):b+1;-1===v?(y=t.decoder(m,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(y=t.decoder(m.slice(0,v),a.decoder,h,"key"),g=n.maybeMap(u(m.slice(v+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),m.indexOf("[]=")>-1&&(g=i(g)?[g]:g),o.call(c,y)?c[y]=n.combine(c[y],g):c[y]=g}return c}(e,r):e,f=r.plainObjects?Object.create(null):{},p=Object.keys(l),d=0;d<p.length;++d){var h=p[d],y=c(h,l[h],r,"string"==typeof e);f=n.merge(f,y,r)}return n.compact(f)}},977:function(e,t){var r,n;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var t=[],n=0;n<e.length;n+=3)for(var o=e[n]<<16|e[n+1]<<8|e[n+2],i=0;i<4;i++)8*n+6*i<=8*e.length?t.push(r.charAt(o>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,o=0;n<e.length;o=++n%4)0!=o&&t.push((r.indexOf(e.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|r.indexOf(e.charAt(n))>>>6-2*o);return t}},e.exports=n},978:function(e,t){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)} -/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh <https://feross.org> - * @license MIT - */ -e.exports=function(e){return null!=e&&(r(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}(e)||!!e._isBuffer)}},980:function(e,t,r){"use strict";var n=r(972).trigram,o=r(973),i=r(974),a={}.hasOwnProperty;function s(e){return null==e?"":i(o(String(e).replace(/[\u0021-\u0040]+/g," "))).toLowerCase()}function u(e){return n(" "+s(e)+" ")}function c(e){for(var t,r=u(e),n=r.length,o={};n--;)t=r[n],a.call(o,t)?o[t]++:o[t]=1;return o}function l(e,t){return e[1]-t[1]}t.clean=s,t.trigrams=u,t.asDictionary=c,t.asTuples=function(e){var t,r=c(e),n=[];for(t in r)n.push([t,r[t]]);return n.sort(l),n},t.tuplesAsDictionary=function(e){var t,r=e.length,n={};for(;r--;)t=e[r],n[t[0]]=t[1];return n}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/28.404d0b5f.js b/plugins/saladict-ztools/ext-saladic/assets/28.404d0b5f.js deleted file mode 100644 index a4252ca4..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/28.404d0b5f.js +++ /dev/null @@ -1,8 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[28],{540:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3);n.__exportStar(r(966),t),n.__exportStar(r(968),t),n.__exportStar(r(969),t)},541:function(e,t,r){"use strict";var n=r(975),o=r(976),i=r(817);e.exports={formats:i,parse:o,stringify:n}},762:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:c}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r){if(0===e.length)return e;var n=e;if("symbol"==typeof e?n=Symbol.prototype.toString.call(e):"string"!=typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<n.length;++a){var s=n.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=n.charAt(a):s<128?o+=i[s]:s<2048?o+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?o+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(a)),o+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,i){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return o(t)&&!o(r)&&(s=a(t,i)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,i):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var a=r[o];return n.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),s)}}},763:function(e,t,r){var n,o,i,a,s;n=r(977),o=r(818).utf8,i=r(978),a=r(818).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var r=n.bytesToWords(e),u=8*e.length,c=1732584193,l=-271733879,f=-1732584194,p=271733878,d=0;d<r.length;d++)r[d]=16711935&(r[d]<<8|r[d]>>>24)|4278255360&(r[d]<<24|r[d]>>>8);r[u>>>5]|=128<<u%32,r[14+(u+64>>>9<<4)]=u;var h=s._ff,y=s._gg,g=s._hh,m=s._ii;for(d=0;d<r.length;d+=16){var b=c,v=l,O=f,w=p;c=h(c,l,f,p,r[d+0],7,-680876936),p=h(p,c,l,f,r[d+1],12,-389564586),f=h(f,p,c,l,r[d+2],17,606105819),l=h(l,f,p,c,r[d+3],22,-1044525330),c=h(c,l,f,p,r[d+4],7,-176418897),p=h(p,c,l,f,r[d+5],12,1200080426),f=h(f,p,c,l,r[d+6],17,-1473231341),l=h(l,f,p,c,r[d+7],22,-45705983),c=h(c,l,f,p,r[d+8],7,1770035416),p=h(p,c,l,f,r[d+9],12,-1958414417),f=h(f,p,c,l,r[d+10],17,-42063),l=h(l,f,p,c,r[d+11],22,-1990404162),c=h(c,l,f,p,r[d+12],7,1804603682),p=h(p,c,l,f,r[d+13],12,-40341101),f=h(f,p,c,l,r[d+14],17,-1502002290),c=y(c,l=h(l,f,p,c,r[d+15],22,1236535329),f,p,r[d+1],5,-165796510),p=y(p,c,l,f,r[d+6],9,-1069501632),f=y(f,p,c,l,r[d+11],14,643717713),l=y(l,f,p,c,r[d+0],20,-373897302),c=y(c,l,f,p,r[d+5],5,-701558691),p=y(p,c,l,f,r[d+10],9,38016083),f=y(f,p,c,l,r[d+15],14,-660478335),l=y(l,f,p,c,r[d+4],20,-405537848),c=y(c,l,f,p,r[d+9],5,568446438),p=y(p,c,l,f,r[d+14],9,-1019803690),f=y(f,p,c,l,r[d+3],14,-187363961),l=y(l,f,p,c,r[d+8],20,1163531501),c=y(c,l,f,p,r[d+13],5,-1444681467),p=y(p,c,l,f,r[d+2],9,-51403784),f=y(f,p,c,l,r[d+7],14,1735328473),c=g(c,l=y(l,f,p,c,r[d+12],20,-1926607734),f,p,r[d+5],4,-378558),p=g(p,c,l,f,r[d+8],11,-2022574463),f=g(f,p,c,l,r[d+11],16,1839030562),l=g(l,f,p,c,r[d+14],23,-35309556),c=g(c,l,f,p,r[d+1],4,-1530992060),p=g(p,c,l,f,r[d+4],11,1272893353),f=g(f,p,c,l,r[d+7],16,-155497632),l=g(l,f,p,c,r[d+10],23,-1094730640),c=g(c,l,f,p,r[d+13],4,681279174),p=g(p,c,l,f,r[d+0],11,-358537222),f=g(f,p,c,l,r[d+3],16,-722521979),l=g(l,f,p,c,r[d+6],23,76029189),c=g(c,l,f,p,r[d+9],4,-640364487),p=g(p,c,l,f,r[d+12],11,-421815835),f=g(f,p,c,l,r[d+15],16,530742520),c=m(c,l=g(l,f,p,c,r[d+2],23,-995338651),f,p,r[d+0],6,-198630844),p=m(p,c,l,f,r[d+7],10,1126891415),f=m(f,p,c,l,r[d+14],15,-1416354905),l=m(l,f,p,c,r[d+5],21,-57434055),c=m(c,l,f,p,r[d+12],6,1700485571),p=m(p,c,l,f,r[d+3],10,-1894986606),f=m(f,p,c,l,r[d+10],15,-1051523),l=m(l,f,p,c,r[d+1],21,-2054922799),c=m(c,l,f,p,r[d+8],6,1873313359),p=m(p,c,l,f,r[d+15],10,-30611744),f=m(f,p,c,l,r[d+6],15,-1560198380),l=m(l,f,p,c,r[d+13],21,1309151649),c=m(c,l,f,p,r[d+4],6,-145523070),p=m(p,c,l,f,r[d+11],10,-1120210379),f=m(f,p,c,l,r[d+2],15,718787259),l=m(l,f,p,c,r[d+9],21,-343485551),c=c+b>>>0,l=l+v>>>0,f=f+O>>>0,p=p+w>>>0}return n.endian([c,l,f,p])})._ff=function(e,t,r,n,o,i,a){var s=e+(t&r|~t&n)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._gg=function(e,t,r,n,o,i,a){var s=e+(t&n|r&~n)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._hh=function(e,t,r,n,o,i,a){var s=e+(t^r^n)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._ii=function(e,t,r,n,o,i,a){var s=e+(r^(t|~n))+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var r=n.wordsToBytes(s(e,t));return t&&t.asBytes?r:t&&t.asString?a.bytesToString(r):n.bytesToHex(r)}},817:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g,i=r(762),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},818:function(e,t){var r={utf8:{stringToBytes:function(e){return r.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(r.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}};e.exports=r},843:function(e,t,r){"use strict";r.r(t),r.d(t,"getTranslator",(function(){return a})),r.d(t,"getSrcPage",(function(){return s})),r.d(t,"search",(function(){return u}));var n=r(19),o=r(844),i=r(17);const a=Object(n.a)(()=>new o.Sogou({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.SOGOU_PID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.SOGOU_KEY?{pid:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.SOGOU_PID,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.SOGOU_KEY}:void 0})),s=(e,t,r)=>`https://fanyi.sogou.com/#auto/${"default"===r.dicts.all.sogou.options.tl?"zh-CN"===t.langCode?"zh-CHS":"zh-TW"===t.langCode?"zh-CHT":"en":r.dicts.all.sogou.options.tl}/${e}`,u=async(e,t,r,n)=>{if(!t.dictAuth.sogou.pid)return Object(i.c)({result:{requireCredential:!0,id:"sogou",sl:"auto",tl:"auto",slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},[]);const o=a(),{sl:s,tl:u,text:c}=await Object(i.a)(o,e,r.dicts.all.sogou,t,n),l={pid:t.dictAuth.sogou.pid,key:t.dictAuth.sogou.key};try{const e=await o.translate(c,s,u,l);return Object(i.c)({result:{id:"sogou",sl:e.from,tl:e.to,slInitial:r.dicts.all.sogou.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(i.c)({result:{id:"sogou",sl:s,tl:u,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},844:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3),o=r(540),i=n.__importDefault(r(763)),a=n.__importDefault(r(541)),s=[["auto","auto"],["zh-CN","zh-CHS"],["zh-TW","zh-CHT"],["en","en"],["af","af"],["ar","ar"],["bg","bg"],["bn","bn"],["bs","bs-Latn"],["ca","ca"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["es","es"],["et","et"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["lt","lt"],["lv","lv"],["mg","mg"],["ms","ms"],["mt","mt"],["mww","mww"],["nl","nl"],["no","no"],["otq","otq"],["pl","pl"],["pt","pt"],["ro","ro"],["ru","ru"],["sk","sk"],["sl","sl"],["sm","sm"],["sr-Cyrl","sr-Cyrl"],["sr-Latn","sr-Latn"],["sv","sv"],["sw","sw"],["th","th"],["tlh","tlh"],["tlh-Qaak","tlh-Qaak"],["to","to"],["tr","tr"],["ty","ty"],["uk","uk"],["ur","ur"],["vi","vi"],["yua","yua"],["yue","yue"]];class u extends o.Translator{constructor(){super(...arguments),this.name="sogou"}async query(e,t,r,n){const s=i.default(n.pid+e+u.salt+n.key),c=(await this.request("http://fanyi.sogou.com/reventondc/api/sogouTranslate",{method:"post",data:a.default.stringify({from:u.langMap.get(t),to:u.langMap.get(r),pid:n.pid,q:e,sign:s,salt:u.salt}),headers:{"content-type":"application/x-www-form-urlencoded",accept:"application/json"}}).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")})).data;return{text:e,from:u.langMapReverse.get(c.detect)||"auto",to:r,origin:{paragraphs:e.split(/\n+/),tts:await this.textToSpeech(e,t)||""},trans:{paragraphs:[c.translation],tts:await this.textToSpeech(c.translation,r)||""}}}getSupportLanguages(){return[...u.langMap.keys()]}async detect(e){return(await this.translate(e,"auto","en")).from}async textToSpeech(e,t){return"zh-TW"===t?"https://fanyi.sogou.com/reventondc/microsoftGetSpeakFile?"+a.default.stringify({text:e,spokenDialect:"zh-CHT",from:"translateweb"}):"https://fanyi.sogou.com/reventondc/synthesis?"+a.default.stringify({text:e,speed:"1",lang:u.langMap.get(t)||"en",from:"translateweb"})}}t.Sogou=u,u.langMap=new Map(s),u.salt="1508404016012",u.langMapReverse=new Map(s.map(([e,t])=>[t,e])),t.default=u},966:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(3).__exportStar(r(967),t)},967:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.languages=["af","am","ar","auto","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","de","el","en","eo","es","et","eu","fa","fi","fil","fj","fr","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","id","ig","is","it","ja","jw","ka","kk","km","kn","ko","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","pt","ro","ru","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","th","tlh","tlh-Qaak","to","tr","ty","ug","uk","ur","uz","vi","wyw","xh","yi","yo","yua","yue","zh-CN","zh-TW","zu"]},968:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super(e)}}t.TranslateError=n},969:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3).__importDefault(r(131)),o=r(970),i=r(971);t.Translator=class{constructor(e={}){this.env=e.env||"node",this.axios=e.axios||n.default,this.config=e.config||{}}async translate(e,t,r,n={}){return{...await this.query(e,t,r,{...this.config,...n}),engine:this.name}}request(e,t){return"ext"===this.env&&t&&t.headers?this.axios(e,o.modifyExtraHeaders(e,t)):this.axios(e,t)}async detect(e){return i.detectLang(e)}textToSpeech(e,t,r){return Promise.resolve(null)}}},970:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="undefined"!=typeof browser?browser:"undefined"!=typeof chrome?chrome:null,o={},i=/^(Origin|Referer|Host|Cookie|User-Agent|DNT|Accept-Charset|Accept-Encoding)$/i,a=/^(Origin|Referer)$/i;t.modifyExtraHeaders=(e,t)=>{if(!t.headers)return t;const r=Object.keys(t.headers),s={};let u;for(let e=0;e<r.length;e++){const n=r[e];i.test(n)?a.test(n)&&(u=t.headers[n]):s[n]=t.headers[n]}return u&&function(e,t){if(!n)return void console.warn("Missing Browser Global");const r=new URL(e).origin+"/*";if(o[r])return;o[r]=!0;const i=["blocking","requestHeaders"];n.webRequest.OnBeforeSendHeadersOptions&&n.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS")&&i.push("extraHeaders"),n.webRequest.onBeforeSendHeaders.addListener(e=>{if(e&&e.requestHeaders){const r=e.requestHeaders.filter(e=>!a.test(e.name));return r.push({name:"Origin",value:t},{name:"Referer",value:t}),{requestHeaders:r}}return e},{urls:[r]},i)}(e,u),{...t,headers:s}}},971:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3).__importDefault(r(979)),o=new Map([["eng","en"],["jpn","ja"],["kor","ko"],["cmn","zh-CN"]]),i={minLength:1,whitelist:[...o.keys()]};t.detectLang=function(e){return o.get(n.default(e,i))||"auto"}},972:function(e,t,r){"use strict";function n(e){if("number"!=typeof e||isNaN(e)||e<1||e===1/0)throw new Error("`"+e+"` is not a valid argument for n-gram");return function(t){var r,n=[];if(null==t)return n;if(t=t.slice?t:String(t),(r=t.length-e+1)<1)return n;for(;r--;)n[r]=t.slice(r,r+e);return n}}e.exports=n,n.bigram=n(2),n.trigram=n(3)},973:function(e,t,r){"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},974:function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},975:function(e,t,r){"use strict";var n=r(762),o=r(817),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,s(t)?t:[t])},l=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,r,o,i,a,u,l,f,d,h,y,g,m){var b,v=t;if("function"==typeof l?v=l(r,v):v instanceof Date?v=h(v):"comma"===o&&s(v)&&(v=n.maybeMap(v,(function(e){return e instanceof Date?h(e):e})).join(",")),null===v){if(i)return u&&!g?u(r,p.encoder,m,"key"):r;v=""}if("string"==typeof(b=v)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||n.isBuffer(v))return u?[y(g?r:u(r,p.encoder,m,"key"))+"="+y(u(v,p.encoder,m,"value"))]:[y(r)+"="+y(String(v))];var O,w=[];if(void 0===v)return w;if(s(l))O=l;else{var S=Object.keys(v);O=f?S.sort(f):S}for(var T=0;T<O.length;++T){var j=O[T],_=v[j];if(!a||null!==_){var P=s(v)?"function"==typeof o?o(r,j):r:r+(d?"."+j:"["+j+"]");c(w,e(_,P,o,i,a,u,l,f,d,h,y,g,m))}}return w};e.exports=function(e,t){var r,n=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],a=p.filter;return("function"==typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:a,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?n=(0,u.filter)("",n):s(u.filter)&&(r=u.filter);var l,f=[];if("object"!=typeof n||null===n)return"";l=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=a[l];r||(r=Object.keys(n)),u.sort&&r.sort(u.sort);for(var y=0;y<r.length;++y){var g=r[y];u.skipNulls&&null===n[g]||c(f,d(n[g],g,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var m=f.join(u.delimiter),b=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),m.length>0?b+m:""}},976:function(e,t,r){"use strict";var n=r(762),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var f=0;r.depth>0&&null!==(s=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),function(e,t,r,n){for(var o=n?t:u(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:a[c]=o:a={0:o}}o=a}return o}(l,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,c={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=l.split(t.delimiter,f),d=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r<p.length;++r)0===p[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[r]?h="utf-8":"utf8=%26%2310003%3B"===p[r]&&(h="iso-8859-1"),d=r,r=p.length);for(r=0;r<p.length;++r)if(r!==d){var y,g,m=p[r],b=m.indexOf("]="),v=-1===b?m.indexOf("="):b+1;-1===v?(y=t.decoder(m,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(y=t.decoder(m.slice(0,v),a.decoder,h,"key"),g=n.maybeMap(u(m.slice(v+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),m.indexOf("[]=")>-1&&(g=i(g)?[g]:g),o.call(c,y)?c[y]=n.combine(c[y],g):c[y]=g}return c}(e,r):e,f=r.plainObjects?Object.create(null):{},p=Object.keys(l),d=0;d<p.length;++d){var h=p[d],y=c(h,l[h],r,"string"==typeof e);f=n.merge(f,y,r)}return n.compact(f)}},977:function(e,t){var r,n;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var t=[],n=0;n<e.length;n+=3)for(var o=e[n]<<16|e[n+1]<<8|e[n+2],i=0;i<4;i++)8*n+6*i<=8*e.length?t.push(r.charAt(o>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,o=0;n<e.length;o=++n%4)0!=o&&t.push((r.indexOf(e.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|r.indexOf(e.charAt(n))>>>6-2*o);return t}},e.exports=n},978:function(e,t){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)} -/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh <https://feross.org> - * @license MIT - */ -e.exports=function(e){return null!=e&&(r(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}(e)||!!e._isBuffer)}},980:function(e,t,r){"use strict";var n=r(972).trigram,o=r(973),i=r(974),a={}.hasOwnProperty;function s(e){return null==e?"":i(o(String(e).replace(/[\u0021-\u0040]+/g," "))).toLowerCase()}function u(e){return n(" "+s(e)+" ")}function c(e){for(var t,r=u(e),n=r.length,o={};n--;)t=r[n],a.call(o,t)?o[t]++:o[t]=1;return o}function l(e,t){return e[1]-t[1]}t.clean=s,t.trigrams=u,t.asDictionary=c,t.asTuples=function(e){var t,r=c(e),n=[];for(t in r)n.push([t,r[t]]);return n.sort(l),n},t.tuplesAsDictionary=function(e){var t,r=e.length,n={};for(;r--;)t=e[r],n[t[0]]=t[1];return n}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/28.62a8aeee.js b/plugins/saladict-ztools/ext-saladic/assets/28.62a8aeee.js new file mode 100644 index 00000000..6086da4c --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/28.62a8aeee.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[28],{1372:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),c="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;const l=e=>{const{tag:t="div",html:n,...l}=e,i=Object(a.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(n,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[n]),[s,o]=Object(a.useState)(null);return c(()=>{if(i&&s){for(;s.childNodes.length>0;)s.childNodes[0].remove();s.appendChild(i)}},[i,s]),r.a.createElement(t,{...l,ref:o})}},1374:function(e,t,n){"use strict";var a=n(0),r=n.n(a);t.a=e=>{const{title:t,className:n,children:a,...c}=e;return r.a.createElement("div",{className:"entryBox-Wrap"+(n?" "+n:""),...c},r.a.createElement("section",{className:"entryBox"},r.a.createElement("h1",{className:"entryBox-Title"},t),r.a.createElement("div",null,a)))}},705:function(e,t,n){"use strict";n.r(t),n.d(t,"DictZdic",(function(){return i}));var a=n(0),r=n.n(a),c=n(1374),l=n(1372);const i=({result:e})=>r.a.createElement("div",null,e.map(e=>r.a.createElement(c.a,{title:e.title,key:e.title},r.a.createElement(l.a,{html:e.content}))));t.default=i}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/29.32b51b84.js b/plugins/saladict-ztools/ext-saladic/assets/29.32b51b84.js deleted file mode 100644 index c839405e..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/29.32b51b84.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[29],{540:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3);n.__exportStar(r(966),t),n.__exportStar(r(968),t),n.__exportStar(r(969),t)},541:function(e,t,r){"use strict";var n=r(975),o=r(976),a=r(817);e.exports={formats:a,parse:o,stringify:n}},762:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:i,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var a=t[n],i=a.obj[a.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:c}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],a=0;a<r.length;++a)void 0!==r[a]&&n.push(r[a]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r){if(0===e.length)return e;var n=e;if("symbol"==typeof e?n=Symbol.prototype.toString.call(e):"string"!=typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",i=0;i<n.length;++i){var s=n.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=n.charAt(i):s<128?o+=a[s]:s<2048?o+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?o+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(i)),o+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,a){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(a&&(a.plainObjects||a.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return o(t)&&!o(r)&&(s=i(t,a)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,a):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return n.call(t,o)?t[o]=e(t[o],i,a):t[o]=i,t}),s)}}},817:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g,a=r(762),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=a.assign({default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return String(e)}}},i)},829:function(e,t,r){"use strict";r.r(t),r.d(t,"getTranslator",(function(){return i})),r.d(t,"getSrcPage",(function(){return s})),r.d(t,"search",(function(){return l}));var n=r(19),o=r(830),a=r(17);const i=Object(n.a)(()=>new o.Google({env:"ext"})),s=(e,t,r)=>`https://translate.google.${r.dicts.all.google.options.cnfirst?"cn":"com"}/#auto/${"default"===r.dicts.all.google.options.tl?t.langCode:r.dicts.all.google.options.tl}/${e}`,l=async(e,t,r,n)=>{const o=r.dicts.all.google.options,s=i(),{sl:l,tl:c,text:u}=await Object(a.a)(s,e,r.dicts.all.google,t,n);try{const e=await s.translate(u,l,c,{token:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.GOOGLE_TOKEN||"",concurrent:o.concurrent,order:o.cnfirst?["cn","com"]:["com","cn"],apiAsFallback:!0});return Object(a.c)({result:{id:"google",sl:e.from,tl:e.to,slInitial:r.dicts.all.google.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},s.getSupportLanguages())}catch(e){return Object(a.c)({result:{id:"google",sl:l,tl:c,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},s.getSupportLanguages())}}},830:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3),o=r(540),a=r(981),i=n.__importDefault(r(541)),s=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]];class l extends o.Translator{constructor(){super(...arguments),this.token={date:0},this.config={token:"",order:["cn","com"],concurrent:!0,apiAsFallback:!0},this.name="google"}async fetchPlainText(e,t={}){const{data:r}=await this.axios(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"});return r}async fetchWithToken(e,t,r,n){if(!this.token.value)throw new Error("API_SERVER_ERROR");const{data:o}=await this.axios.get(e+"/translate_a/single?"+i.default.stringify({client:"webapp",sl:r,tl:n,hl:"en",dt:["at","bd","ex","ld","md","qca","rw","rm","ss","t"],source:"bh",ssel:"0",tsel:"0",kc:"1",tk:a.getTK(t,this.token.value.tk1,this.token.value.tk2),q:t},{indices:!1}));return{base:e,data:o}}async fetchWithoutToken(e,t,r){const{data:n}=await this.axios.get("https://translate.googleapis.com/translate_a/single?"+i.default.stringify({client:"gtx",dt:"t",sl:t,tl:r,q:e}));return{base:"https://translate.google.cn",data:n}}async query(e,t,r,n){if(Date.now()-this.token.date>3e5)try{await this.updateToken(n)}catch(e){}let o=await a.fetchScheduled(n.order.map(n=>()=>"api"===n?this.fetchWithoutToken(e,t,r):this.fetchWithToken("https://translate.google."+n,e,t,r)),n.concurrent).catch(()=>{});if(!o&&n.apiAsFallback&&(o=await this.fetchWithoutToken(e,t,r)),!o)throw new Error("NETWORK_ERROR");if(!o.data[0]||o.data[0].length<=0)throw new Error("API_SERVER_ERROR");const i=o.data[0].map(e=>e[0]).filter(Boolean).join(" ");return{text:e,from:l.langMapReverse.get(o.data[2])||"auto",to:r,origin:{paragraphs:e.split(/\n+/),tts:await this.textToSpeech(e,t,{base:o.base,token:this.token.value})||""},trans:{paragraphs:i.split(/(\n ?)+/),tts:await this.textToSpeech(i,r,{base:o.base,token:this.token.value})||""}}}async updateToken(e=this.config){const t=await a.fetchScheduled(e.order.map(e=>()=>"api"===e?Promise.reject():this.fetchPlainText(`https://translate.google.${e}/translate_a/element.js`)),e.concurrent);if(!t)throw new Error("API_SERVER_ERROR");const r=t.match(/(?:_ctkk|TKK)[=:]['"](\d+?)\.(\d+?)['"]/i);if(r)this.token.value={tk1:Number(r[1]),tk2:Number(r[2])},this.token.date=Date.now();else{const e=(t.match(/TKK=(.*?)\(\)\)'\);/i)||[""])[0].replace(/\\x([0-9A-Fa-f]{2})/g,"").match(/[+-]?\d+/g);e&&(this.token.value={tk1:Number(e[2]),tk2:Number(e[0])+Number(e[1])},this.token.date=Date.now())}}getSupportLanguages(){return[...l.langMap.keys()]}async detect(e){try{return(await this.translate(e,"auto","zh-CN")).from}catch(e){return"auto"}}async textToSpeech(e,t,r){return r&&r.token?r.base+"/translate_tts?ie=UTF-8&total=1&idx=0&client=webapp&prev=input&"+i.default.stringify({q:e,textlen:e.length,tl:l.langMapReverse.get(t)||"en",tk:a.getTK(e,r.token.tk1,r.token.tk2)}):null}}t.Google=l,l.langMap=new Map(s),l.langMapReverse=new Map(s.map(([e,t])=>[t,e])),t.default=l},966:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(3).__exportStar(r(967),t)},967:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.languages=["af","am","ar","auto","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","de","el","en","eo","es","et","eu","fa","fi","fil","fj","fr","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","id","ig","is","it","ja","jw","ka","kk","km","kn","ko","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","pt","ro","ru","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","th","tlh","tlh-Qaak","to","tr","ty","ug","uk","ur","uz","vi","wyw","xh","yi","yo","yua","yue","zh-CN","zh-TW","zu"]},968:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super(e)}}t.TranslateError=n},969:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3).__importDefault(r(131)),o=r(970),a=r(971);t.Translator=class{constructor(e={}){this.env=e.env||"node",this.axios=e.axios||n.default,this.config=e.config||{}}async translate(e,t,r,n={}){return{...await this.query(e,t,r,{...this.config,...n}),engine:this.name}}request(e,t){return"ext"===this.env&&t&&t.headers?this.axios(e,o.modifyExtraHeaders(e,t)):this.axios(e,t)}async detect(e){return a.detectLang(e)}textToSpeech(e,t,r){return Promise.resolve(null)}}},970:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="undefined"!=typeof browser?browser:"undefined"!=typeof chrome?chrome:null,o={},a=/^(Origin|Referer|Host|Cookie|User-Agent|DNT|Accept-Charset|Accept-Encoding)$/i,i=/^(Origin|Referer)$/i;t.modifyExtraHeaders=(e,t)=>{if(!t.headers)return t;const r=Object.keys(t.headers),s={};let l;for(let e=0;e<r.length;e++){const n=r[e];a.test(n)?i.test(n)&&(l=t.headers[n]):s[n]=t.headers[n]}return l&&function(e,t){if(!n)return void console.warn("Missing Browser Global");const r=new URL(e).origin+"/*";if(o[r])return;o[r]=!0;const a=["blocking","requestHeaders"];n.webRequest.OnBeforeSendHeadersOptions&&n.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS")&&a.push("extraHeaders"),n.webRequest.onBeforeSendHeaders.addListener(e=>{if(e&&e.requestHeaders){const r=e.requestHeaders.filter(e=>!i.test(e.name));return r.push({name:"Origin",value:t},{name:"Referer",value:t}),{requestHeaders:r}}return e},{urls:[r]},a)}(e,l),{...t,headers:s}}},971:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3).__importDefault(r(979)),o=new Map([["eng","en"],["jpn","ja"],["kor","ko"],["cmn","zh-CN"]]),a={minLength:1,whitelist:[...o.keys()]};t.detectLang=function(e){return o.get(n.default(e,a))||"auto"}},972:function(e,t,r){"use strict";function n(e){if("number"!=typeof e||isNaN(e)||e<1||e===1/0)throw new Error("`"+e+"` is not a valid argument for n-gram");return function(t){var r,n=[];if(null==t)return n;if(t=t.slice?t:String(t),(r=t.length-e+1)<1)return n;for(;r--;)n[r]=t.slice(r,r+e);return n}}e.exports=n,n.bigram=n(2),n.trigram=n(3)},973:function(e,t,r){"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},974:function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},975:function(e,t,r){"use strict";var n=r(762),o=r(817),a=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,r,o,a,i,l,u,f,d,h,g,y,m){var b,v=t;if("function"==typeof u?v=u(r,v):v instanceof Date?v=h(v):"comma"===o&&s(v)&&(v=n.maybeMap(v,(function(e){return e instanceof Date?h(e):e})).join(",")),null===v){if(a)return l&&!y?l(r,p.encoder,m,"key"):r;v=""}if("string"==typeof(b=v)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||n.isBuffer(v))return l?[g(y?r:l(r,p.encoder,m,"key"))+"="+g(l(v,p.encoder,m,"value"))]:[g(r)+"="+g(String(v))];var k,w=[];if(void 0===v)return w;if(s(u))k=u;else{var O=Object.keys(v);k=f?O.sort(f):O}for(var j=0;j<k.length;++j){var x=k[j],S=v[x];if(!i||null!==S){var E=s(v)?"function"==typeof o?o(r,x):r:r+(d?"."+x:"["+x+"]");c(w,e(S,E,o,a,i,l,u,f,d,h,g,y,m))}}return w};e.exports=function(e,t){var r,n=e,l=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],i=p.filter;return("function"==typeof e.filter||s(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof l.filter?n=(0,l.filter)("",n):s(l.filter)&&(r=l.filter);var u,f=[];if("object"!=typeof n||null===n)return"";u=t&&t.arrayFormat in i?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=i[u];r||(r=Object.keys(n)),l.sort&&r.sort(l.sort);for(var g=0;g<r.length;++g){var y=r[g];l.skipNulls&&null===n[y]||c(f,d(n[y],y,h,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.formatter,l.encodeValuesOnly,l.charset))}var m=f.join(l.delimiter),b=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),m.length>0?b+m:""}},976:function(e,t,r){"use strict";var n=r(762),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,r,n){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var f=0;r.depth>0&&null!==(s=i.exec(a))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+a.slice(s.index)+"]"),function(e,t,r,n){for(var o=n?t:l(t,r),a=e.length-1;a>=0;--a){var i,s=e[a];if("[]"===s&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);r.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[])[u]=o:i[c]=o:i={0:o}}o=i}return o}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=u.split(t.delimiter,f),d=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r<p.length;++r)0===p[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[r]?h="utf-8":"utf8=%26%2310003%3B"===p[r]&&(h="iso-8859-1"),d=r,r=p.length);for(r=0;r<p.length;++r)if(r!==d){var g,y,m=p[r],b=m.indexOf("]="),v=-1===b?m.indexOf("="):b+1;-1===v?(g=t.decoder(m,i.decoder,h,"key"),y=t.strictNullHandling?null:""):(g=t.decoder(m.slice(0,v),i.decoder,h,"key"),y=n.maybeMap(l(m.slice(v+1),t),(function(e){return t.decoder(e,i.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=s(y)),m.indexOf("[]=")>-1&&(y=a(y)?[y]:y),o.call(c,g)?c[g]=n.combine(c[g],y):c[g]=y}return c}(e,r):e,f=r.plainObjects?Object.create(null):{},p=Object.keys(u),d=0;d<p.length;++d){var h=p[d],g=c(h,u[h],r,"string"==typeof e);f=n.merge(f,g,r)}return n.compact(f)}},980:function(e,t,r){"use strict";var n=r(972).trigram,o=r(973),a=r(974),i={}.hasOwnProperty;function s(e){return null==e?"":a(o(String(e).replace(/[\u0021-\u0040]+/g," "))).toLowerCase()}function l(e){return n(" "+s(e)+" ")}function c(e){for(var t,r=l(e),n=r.length,o={};n--;)t=r[n],i.call(o,t)?o[t]++:o[t]=1;return o}function u(e,t){return e[1]-t[1]}t.clean=s,t.trigrams=l,t.asDictionary=c,t.asTuples=function(e){var t,r=c(e),n=[];for(t in r)n.push([t,r[t]]);return n.sort(u),n},t.tuplesAsDictionary=function(e){var t,r=e.length,n={};for(;r--;)t=e[r],n[t[0]]=t[1];return n}},981:function(e,t,r){"use strict";function n(e,t){for(let r=0;r<t.length-2;r+=3){const n=t.charAt(r+2);let o="a"<=n?n.charCodeAt(0)-87:Number(n);o="+"==t.charAt(r+1)?e>>>o:e<<o,e="+"==t.charAt(r)?e+o&4294967295:e^o}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.getTK=function(e,t,r){t=Number(t)||0,r=Number(r)||0;const o=[];for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);128>r?o.push(r):(2048>r?o.push(r>>6|192):(55296==(64512&r)&&t+1<e.length&&56320==(64512&e.charCodeAt(t+1))?(r=65536+((1023&r)<<10)+(1023&e.charCodeAt(++t)),o.push(r>>18|240),o.push(r>>12&63|128)):o.push(r>>12|224),o.push(r>>6&63|128)),o.push(63&r|128))}let a=t;for(let e=0;e<o.length;e++)a+=o[e],a=n(a,"+-a^+6");return a=n(a,"+-3^+b+-f"),a^=r,0>a&&(a=2147483648+(2147483647&a)),a%=1e6,a.toString()+"."+(a^t)},t.fetchScheduled=async function(e,t){if(t)return new Promise((t,r)=>{let n=0;for(let o=0;o<e.length;o++)e[o]().then(t).catch(()=>{++n===e.length&&r(new Error("All rejected"))})});for(let t=0;t<e.length;t++)try{return await e[t]()}catch(e){}return Promise.reject(new Error("All rejected"))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/29.8db1ad61.js b/plugins/saladict-ztools/ext-saladic/assets/29.8db1ad61.js new file mode 100644 index 00000000..749215c8 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/29.8db1ad61.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[29],{1372:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a(0),r=a.n(n),s="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const c=e=>{const{tag:t="div",html:a,...c}=e,l=Object(n.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[i,m]=Object(n.useState)(null);return s(()=>{if(l&&i){for(;i.childNodes.length>0;)i.childNodes[0].remove();i.appendChild(l)}},[l,i]),r.a.createElement(t,{...c,ref:m})}},1375:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(0),r=a.n(n);class s extends r.a.PureComponent{render(){const e=this.props.className||"widget-StarRates",t=this.props.max||5,a=Number(this.props.rate)%(t+1)||0,n=this.props.height||"1.5em",s=this.props.gutter||"0.3em",c={height:n,...this.props.style||{}};return r.a.createElement("div",{className:e,style:c},Array.from(Array(t)).map((e,c)=>r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.67 426.67",key:c+a,width:n,height:n,style:{marginRight:c===t-1?"":s}},r.a.createElement("path",{fill:c<a?"#FAC917":"#d1d8de",d:"M213.33 10.44l65.92 133.58 147.42 21.42L320 269.4l25.17 146.83-131.84-69.32-131.85 69.34 25.2-146.82L0 165.45l147.4-21.42"}))))}}},683:function(e,t,a){"use strict";a.r(t),a.d(t,"DictCOBUILD",(function(){return i}));var n=a(0),r=a.n(n),s=a(97),c=a(1375),l=a(1372);const i=({result:e})=>{switch(e.type){case"ciba":return function(e){return r.a.createElement(r.a.Fragment,null,r.a.createElement("h1",{className:"dictCOBUILD-Title"},e.title),e.prons&&r.a.createElement("ul",{className:"dictCOBUILD-Pron"},e.prons.map(e=>r.a.createElement("li",{key:e.phsym,className:"dictCOBUILD-PronItem"},e.phsym,r.a.createElement(s.a,{src:e.audio})))),r.a.createElement("div",{className:"dictCOBUILD-Rate"},e.star>=0&&r.a.createElement(c.a,{rate:e.star}),e.level&&r.a.createElement("span",{className:"dictCOBUILD-Level"},e.level)),e.defs&&r.a.createElement("ol",{className:"dictCOBUILD-Defs"},e.defs.map((e,t)=>r.a.createElement(l.a,{tag:"li",className:"dictCOBUILD-Def",key:t,html:e}))))}(e);case"collins":return function(e){const[t,a]=Object(n.useState)("0"),s=e.sections[t];return r.a.createElement("div",{className:"dictCOBUILD-ColEntry"},e.sections.length>0&&r.a.createElement("select",{value:t,onChange:e=>a(e.currentTarget.value)},e.sections.map((e,t)=>r.a.createElement("option",{key:e.id+t,value:t},e.type,e.title?" :"+e.title:"",e.num?" "+e.num:""))),r.a.createElement("div",{className:"dictionary"},r.a.createElement("div",{className:"dc"},r.a.createElement("div",{className:"he"},r.a.createElement("div",{className:"page"},r.a.createElement("div",{className:"dictionary"},r.a.createElement("div",{className:"dictentry"},r.a.createElement("div",{className:"dictlink"},r.a.createElement(l.a,{key:s,className:s.className,html:s.content})))))))))}(e);default:return null}};t.default=i}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/30.47228a8d.js b/plugins/saladict-ztools/ext-saladic/assets/30.47228a8d.js new file mode 100644 index 00000000..411a51b9 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/30.47228a8d.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[30],{1372:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(0),l=a.n(n),r="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const s=e=>{const{tag:t="div",html:a,...s}=e,m=Object(n.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[c,o]=Object(n.useState)(null);return r(()=>{if(m&&c){for(;c.childNodes.length>0;)c.childNodes[0].remove();c.appendChild(m)}},[m,c]),l.a.createElement(t,{...s,ref:o})}},1375:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(0),l=a.n(n);class r extends l.a.PureComponent{render(){const e=this.props.className||"widget-StarRates",t=this.props.max||5,a=Number(this.props.rate)%(t+1)||0,n=this.props.height||"1.5em",r=this.props.gutter||"0.3em",s={height:n,...this.props.style||{}};return l.a.createElement("div",{className:e,style:s},Array.from(Array(t)).map((e,s)=>l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.67 426.67",key:s+a,width:n,height:n,style:{marginRight:s===t-1?"":r}},l.a.createElement("path",{fill:s<a?"#FAC917":"#d1d8de",d:"M213.33 10.44l65.92 133.58 147.42 21.42L320 269.4l25.17 146.83-131.84-69.32-131.85 69.34 25.2-146.82L0 165.45l147.4-21.42"}))))}}},689:function(e,t,a){"use strict";a.r(t),a.d(t,"DictLongman",(function(){return c}));var n=a(0),l=a.n(n),r=a(97),s=a(1375),m=a(1372);const c=({result:e})=>"lex"===e.type?function(e){const t=e.bussinessFirst?["bussiness","contemporary"]:["contemporary","bussiness"];return l.a.createElement(l.a.Fragment,null,e.wordfams&&l.a.createElement(m.a,{className:"dictLongman-Wordfams",html:e.wordfams}),t.map((t,a)=>e[t].length>0?l.a.createElement("div",{className:"dictLongman-Dict",key:t+a},e[t].map(o)):null))}(e):"related"===e.type?function(e){return l.a.createElement(l.a.Fragment,null,l.a.createElement("p",null,"Did you mean:"),l.a.createElement(m.a,{tag:"ul",className:"dictLongman-Related",html:e.list}))}(e):null;function o(e){return l.a.createElement("section",{key:e.title.HWD+e.title.HOMNUM,className:"dictLongman-Entry"},l.a.createElement("header",null,l.a.createElement("div",{className:"dictLongman-HeaderContainer"},l.a.createElement("h1",{className:"dictLongman-Title"},l.a.createElement("span",{className:"dictLongman-Title_HWD"},e.title.HWD),l.a.createElement("span",{className:"dictLongman-Title_HYPHENATION"},e.title.HYPHENATION),l.a.createElement("span",{className:"dictLongman-Title_HOMNUM"},e.title.HOMNUM)),e.level?l.a.createElement("span",{title:e.level.title,className:"dictLongman-Level"},l.a.createElement(s.a,{max:3,rate:e.level.rate,className:"dictLongman-Level_Rate"})):null,e.freq&&e.freq.map(e=>l.a.createElement("span",{key:e.rank,className:"dictLongman-FREQ",title:e.title},e.rank))),l.a.createElement("div",{className:"dictLongman-HeaderContainer"},l.a.createElement("span",{className:"dictLongman-Pos"},e.pos),l.a.createElement("span",{className:"dictLongman-Phsym"},e.phsym),e.prons&&e.prons.map(e=>l.a.createElement(l.a.Fragment,{key:e.pron},e.lang.toUpperCase(),": ",l.a.createElement(r.c,{src:e.pron}))),e.topic&&l.a.createElement(l.a.Fragment,null,"Topic:"," ",l.a.createElement("a",{href:e.topic.href,rel:"nofollow noopener noreferrer"},e.topic.title)))),e.senses.map(e=>l.a.createElement(m.a,{key:e,className:"dictLongman-Sense",html:e})),e.collocations&&l.a.createElement(m.a,{className:"dictLongman-Box",html:e.collocations}),e.grammar&&l.a.createElement(m.a,{className:"dictLongman-Box",html:e.grammar}),e.thesaurus&&l.a.createElement(m.a,{className:"dictLongman-Box",html:e.thesaurus}),e.examples&&e.examples.length>0&&l.a.createElement(l.a.Fragment,null,l.a.createElement("h2",{className:"dictLongman-Examples_Title"},"Examples from the Corpus"),e.examples.map(e=>l.a.createElement(m.a,{key:e,className:"dictLongman-Examples",html:e}))))}t.default=c}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/30.ef324903.js b/plugins/saladict-ztools/ext-saladic/assets/30.ef324903.js deleted file mode 100644 index f9719700..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/30.ef324903.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[30],{116:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),o=r(30);function i(e,t){var r=Object(o.e)(o.a),i=Object(o.e)((function(){return e(r.current)}));return[Object(n.useRef)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.current.next(t?t(e):e[0])})).current,i.current]}},119:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return f}));var n=r(0),o=r.n(n),i=r(389),a=r(46);const c=o.a.createContext(async()=>{}),s=e=>{const[t,r]=Object(n.useState)(()=>"string"==typeof e.src?e.src:"#"),a=Object(n.useContext)(c);if(Object(i.a)(()=>{r("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const s=e.width||e.height||"1.2em",u=e.height||s;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:s,height:u},onClick:async n=>{if("#"===t&&"function"==typeof e.src){n.stopPropagation(),n.preventDefault();const t=await e.src();a(t),r(t)}}})};t.c=o.a.memo(s);const u=e=>{const{onPlayStart:t,...r}=e,i=Object(n.useCallback)(e=>{if(e.target&&"A"===e.target.tagName&&e.target.href&&"#"!==e.target.href&&e.target.classList&&e.target.classList.contains("saladict-Speaker")){e.preventDefault(),e.stopPropagation();const r=e.target;r.classList.add("isActive"),Object(a.b)([Object(a.d)(1e3),t(r.href)]).then(()=>{r.classList.remove("isActive")})}},[t]);return o.a.createElement(c.Provider,{value:t},o.a.createElement("div",{onClick:i,...r}))},l=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},f=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""},182:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(30),o=r(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object(o.useRef)(e);r.current=e;var i=Object(n.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=r.current[0],t=e.subscribe({next:function(t){if(e===r.current[0])return r.current[1]?r.current[1](t):void 0},error:function(t){if(e===r.current[0]){if(r.current[2])return c.current=null,r.current[2](t);c.current=t,i()}},complete:function(){if(e===r.current[0])return r.current[3]?r.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"a",(function(){return s})),r.d(t,"e",(function(){return u})),r.d(t,"d",(function(){return l}));var n=r(0),o=r(91),i=r(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function s(){return new o.a}function u(e){var t=Object(n.useRef)(!0),r=Object(n.useRef)(null);return t.current&&(t.current=!1,r.current=e()),r}function l(){var e=Object(n.useState)(0)[1];return Object(n.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect},389:function(e,t,r){"use strict";var n=r(0);t.a=function(e,t){var r=Object(n.useRef)(!0);Object(n.useEffect)((function(){if(!r.current)return e();r.current=!1}),t)}},5:function(e,t,r){"use strict";r.d(t,"h",(function(){return i})),r.d(t,"g",(function(){return a})),r.d(t,"b",(function(){return c})),r.d(t,"f",(function(){return s})),r.d(t,"d",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"i",(function(){return p})),r.d(t,"j",(function(){return m})),r.d(t,"a",(function(){return h})),r.d(t,"c",(function(){return g}));var n=r(507),o=r.n(n);r(0),r(116),r(182),r(10),r(371),r(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await r.e(109).then(r.bind(null,1321))).chsToChz:null}function s(e,...t){if(!e)return"";let r="",n=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?r=t[e]:"function"==typeof t[e]&&(n=t[e]);const o=r?e.querySelector(r):e;if(!o)return"";const i=o.textContent||"";return n?n(i):i}const u={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function l(e,{mode:t="innerHTML",selector:r,transform:n,host:i,config:a=u}={}){const c=r?e.querySelector(r):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",g(i,e,"href")),e.setAttribute("src",g(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const s=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),l=s.firstChild?s.firstChild[t]:"";return n?n(l):l}function f(e,t,r={}){return l(t,"string"==typeof r?{selector:r,host:e,mode:"innerHTML"}:{...r,host:e,mode:"innerHTML"})}function d(e,t,r={}){return l(t,"string"==typeof r?{selector:r,host:e,mode:"outerHTML"}:{...r,host:e,mode:"outerHTML"})}function p(e,t){const r=e.querySelector(t);r&&r.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function g(e,t,r){e.endsWith("/")&&(e=e.slice(0,-1));const n=e.startsWith("https")?"https:":"http:",o=t.getAttribute(r);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?n+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,r){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),r=e(["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"]),n=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),s=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),u=a(["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"]),l=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var r=t.length;r--;){var n=t[r];if("string"==typeof n){var o=n.toLowerCase();o!==n&&(Object.isFrozen(t)||(t[r]=o),n=o)}e[n]=!0}return e}function h(e){var t={},r=void 0;for(r in e)p(f,e,[r])&&(t[r]=e[r]);return t}p||(p=function(e,t,r){return e.apply(t,r)});var g=Object.seal||function(e){return e},y=g(/\{\{[\s\S]*|[\s\S]*\}\}/gm),b=g(/<%[\s\S]*|[\s\S]*%>/gm),v=g(/^data-[\-\w.\u00B7-\uFFFF]/),T=g(/^aria-[\-\w]+$/),A=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),O=g(/^(?:\w+script|data):/i),x=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function S(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var _=("undefined"!=typeof Reflect&&Reflect).apply,w=Array.prototype.slice,L=Object.freeze,k=function(){return"undefined"==typeof window?null:window};_||(_=function(e,t,r){return e.apply(t,r)});var R=function(e,t){if("object"!==(void 0===e?"undefined":E(e))||"function"!=typeof e.createPolicy)return null;var r=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=t.currentScript.getAttribute("data-tt-policy-suffix"));var n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,g=!1,N=a.document,M=a.DocumentFragment,j=a.HTMLTemplateElement,C=a.Node,D=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,q=a.Comment,I=a.DOMParser,P=a.TrustedTypes;if("function"==typeof j){var U=N.createElement("template");U.content&&U.content.ownerDocument&&(N=U.content.ownerDocument)}var W=R(P,d),B=W?W.createHTML(""):"",G=N,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,$=G.createDocumentFragment,X=d.importNode,Z={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==N.documentMode;var J=y,Q=b,ee=v,te=T,re=O,ne=x,oe=A,ie=null,ae=m({},[].concat(S(t),S(r),S(n),S(o),S(i))),ce=null,se=m({},[].concat(S(c),S(s),S(u),S(l))),ue=null,le=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ge=!1,ye=!1,be=!1,ve=!1,Te=!1,Ae=!1,Oe=!1,xe=!0,Ee=!0,Se=!1,_e={},we=m({},["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"]),Le=m({},["audio","video","img","source","image"]),ke=null,Re=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,Me=N.createElement("form"),je=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":E(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):se,ke="ADD_URI_SAFE_ATTR"in e?m(h(Re),e.ADD_URI_SAFE_ATTR):Re,ue="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},le="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},_e="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ge=e.WHOLE_DOCUMENT||!1,ve=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,xe=!1!==e.SANITIZE_DOM,Ee=!1!==e.KEEP_CONTENT,Se=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(ve=!0),_e&&(ie=m({},[].concat(S(i))),ce=[],!0===_e.html&&(m(ie,t),m(ce,c)),!0===_e.svg&&(m(ie,r),m(ce,s),m(ce,l)),!0===_e.svgFilters&&(m(ie,n),m(ce,s),m(ce,l)),!0===_e.mathMl&&(m(ie,o),m(ce,u),m(ce,l))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===se&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(ke,e.ADD_URI_SAFE_ATTR),Ee&&(ie["#text"]=!0),ge&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete ue.tbody),L&&L(e),Ne=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},De=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,r=void 0;if(be)e="<remove></remove>"+e;else{var n=e.match(/^[\s]+/);(r=n&&n[0])&&(e=e.slice(r.length))}if(p)try{t=(new I).parseFromString(e,"text/html")}catch(e){}if(g&&m(ue,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&r&&t.body.insertBefore(N.createTextNode(r),t.body.childNodes[0]||null),Y.call(t,ge?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(g=!0)}catch(e){}}());var ze=function(e){return V.call(e.ownerDocument||e,e,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,(function(){return D.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},qe=function(e){return"object"===(void 0===C?"undefined":E(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":E(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ie=function(e,t,r){Z[e]&&Z[e].forEach((function(e){e.call(f,t,r,Ne)}))},Pe=function(e){var t=void 0;if(Ie("beforeSanitizeElements",e,null),Fe(e))return Ce(e),!0;var r=e.nodeName.toLowerCase();if(Ie("uponSanitizeElement",e,{tagName:r,allowedTags:ie}),("svg"===r||"math"===r)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[r]||ue[r]){if(Ee&&!we[r]&&"function"==typeof e.insertAdjacentHTML)try{var n=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(n):n)}catch(e){}return Ce(e),!0}return"noscript"===r&&/<\/noscript/i.test(e.innerHTML)||"noembed"===r&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ie("afterSanitizeElements",e,null),!1)},Ue=function(e,t,r){if(xe&&("id"===t||"name"===t)&&(r in N||r in Me))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||le[t])return!1;if(ke[t]);else if(oe.test(r.replace(ne,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==r.indexOf("data:")||!Le[e])if(pe&&!re.test(r.replace(ne,"")));else if(r)return!1}return!0},We=function(e){var t=void 0,r=void 0,n=void 0,o=void 0,i=void 0;Ie("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var s=t=a[i],u=s.name,l=s.namespaceURI;if(r=t.value.trim(),n=u.toLowerCase(),c.attrName=n,c.attrValue=r,c.keepAttr=!0,Ie("uponSanitizeAttribute",e,c),r=c.attrValue,"name"===n&&"IMG"===e.nodeName&&a.id)o=a.id,a=_(w,a,[]),De("id",e),De(u,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===n&&"file"===r&&c.keepAttr&&(ce[n]||!le[n]))continue;"id"===u&&e.setAttribute(u,""),De(u,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(we).join("|")+")","i").test(r))De(u,e);else{he&&(r=(r=r.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Ue(d,n,r))try{l?e.setAttributeNS(l,u,r):e.setAttribute(u,r),f.removed.pop()}catch(e){}}}Ie("afterSanitizeAttributes",e,null)}},Be=function e(t){var r=void 0,n=ze(t);for(Ie("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)Ie("uponSanitizeShadowNode",r,null),Pe(r)||(r.content instanceof M&&e(r.content),We(r));Ie("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var r=void 0,n=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!qe(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===E(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(qe(e))return a.toStaticHTML(e.outerHTML)}return e}if(ye||je(t),f.removed=[],Se);else if(e instanceof C)1===(n=(r=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?r=n:r.appendChild(n);else{if(!ve&&!he&&!ge&&Oe&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(r=He(e)))return ve?null:B}r&&be&&Ce(r.firstChild);for(var s=ze(Se?e:r);o=s.nextNode();)3===o.nodeType&&o===i||Pe(o)||(o.content instanceof M&&Be(o.content),We(o),i=o);if(i=null,Se)return e;if(ve){if(Te)for(c=$.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return Ae&&(c=X.call(d,c,!0)),c}var u=ge?r.outerHTML:r.innerHTML;return he&&(u=(u=u.replace(J," ")).replace(Q," ")),W&&Oe?W.createHTML(u):u},f.setConfig=function(e){je(e),ye=!0},f.clearConfig=function(){Ne=null,ye=!1},f.isValidAttribute=function(e,t,r){Ne||je({});var n=e.toLowerCase(),o=t.toLowerCase();return Ue(n,o,r)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));r(507);var n=r(131),o=r.n(n);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(3),o=r(7);function i(){}var a=r(45);function c(e,t,r){return function(n){return n.lift(new s(e,t,r))}}var s=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.nextOrObserver,this.error,this.complete))},e}(),u=function(e){function t(t,r,n,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=n||i,c._tapComplete=o||i,Object(a.a)(r)?(c._context=c,c._tapNext=r):r&&(c._context=r,c._tapNext=r.next||i,c._tapError=r.error||i,c._tapComplete=r.complete||i),c}return n.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},824:function(e,t,r){"use strict";r.r(t),r.d(t,"getSrcPage",(function(){return a})),r.d(t,"search",(function(){return s}));var n=r(61),o=r(119),i=r(5);const a=async(e,t,r)=>{let{lang:n}=r.dicts.all.cambridge.options;if("default"===n)switch(t.langCode){case"zh-CN":n="en-chs";break;case"zh-TW":n="en-chz";break;default:n="en"}switch(n){case"en":return"https://dictionary.cambridge.org/search/direct/?datasetsearch=english&q="+encodeURIComponent(e.trim().split(/\s+/).join("-"));case"en-chs":return"https://dictionary.cambridge.org/zhs/%E6%90%9C%E7%B4%A2/direct/?datasetsearch=english-chinese-simplified&q="+encodeURIComponent(e);case"en-chz":{const t=await Object(i.b)();return"https://dictionary.cambridge.org/zht/%E6%90%9C%E7%B4%A2/direct/?datasetsearch=english-chinese-traditional&q="+encodeURIComponent(t(e))}}},c="https://dictionary.cambridge.org",s=async(e,t,r,s)=>Object(n.a)(await a(e,t,r)).catch(i.g).then(e=>function(e,t){const r=[],n=[],a={};if(e.querySelectorAll(".entry-body__el").forEach((e,t)=>{if(!Object(i.f)(e,".headword"))return;const s=e.querySelector(".pos-header");s&&(s.querySelectorAll(".dpron-i").forEach(e=>{const t=e.querySelector(".daud");if(!t)return;const r=t.querySelector('source[type="audio/mpeg"]');if(!r)return;const n=Object(i.c)(c,r,"src");n&&(t.replaceWith(Object(o.d)(n)),!a.uk&&e.classList.contains("uk")&&(a.uk=n),!a.us&&e.classList.contains("us")&&(a.us=n))}),Object(i.i)(s,".share")),u(e);const l="d-cambridge-entry"+t;r.push({id:l,html:Object(i.d)(c,e)}),n.push({key:"#"+t,value:l,label:"#"+Object(i.f)(e,".di-title")+" "+Object(i.f)(e,".posgram")})}),r.length<=0){const t=e.querySelector(".idiom-block");t&&(Object(i.i)(t,".bb.hax"),u(t),r.push({id:"d-cambridge-entry-idiom",html:Object(i.d)(c,t)}))}if(r.length<=0&&t.related){const t=e.querySelector("link[rel=canonical]");if(t&&/dictionary\.cambridge\.org\/([^/]+\/)?spellcheck\//.test(t.getAttribute("href")||"")){const t=e.querySelector(".hfl-s.lt2b.lmt-10.lmb-25.lp-s_r-20");t&&r.push({id:"d-cambridge-entry-related",html:Object(i.d)(c,t)})}}if(r.length>0)return{result:r,audio:a,catalog:n};return Object(i.h)()}(e,r.dicts.all.cambridge.options));function u(e){return e.querySelectorAll(".daccord_h").forEach(e=>{e.parentElement.classList.add("amp-accordion")}),e.querySelectorAll("amp-img").forEach(e=>{const t=document.createElement("img");t.setAttribute("src",Object(i.c)(c,e,"src"));const r=["width","height","title"];for(const n of r){const r=e.getAttribute(n);r&&t.setAttribute(n,r)}e.replaceWith(t)}),e.querySelectorAll("amp-audio").forEach(e=>{const t=e.querySelector("source");if(t){const r=Object(i.c)(c,t,"src");if(r)return void e.replaceWith(Object(o.d)(r))}e.remove()}),e.querySelectorAll("a.had").forEach(i.a),e}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/31.3a18975c.js b/plugins/saladict-ztools/ext-saladic/assets/31.3a18975c.js new file mode 100644 index 00000000..871acfd9 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/31.3a18975c.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[31],{1376:function(t,i,o){(i=o(226)(!1)).push([t.i,".dictAh-WordBox{border-bottom:1px solid var(--color-font-grey)}.dictAh-WordBox:last-child{border-bottom:none}.dictAh-Title>span{font-size:1.2em;font-weight:700;vertical-align:-1px}.dictAh-Meaning>i{font-weight:700}.dictAh-Meaning .ds-list,.dictAh-Meaning .sds-list{margin-left:1em}.dictAh-idiomTitle{font-size:1.2em;font-weight:700}.dictAh-idiomWords{font-style:italic;font-weight:700;margin-right:2px}.dictAh-idiomEg{margin-left:1em}.dictAh-Hr{width:25%;display:flex;clear:both;background-color:--color-font-grey;padding:0;margin:2px 0;height:1px}.dictAh-UsageNote{border-left:1px solid;padding-left:5px;color:var(--color-font-grey)}.dictAh-UseNoteTitle{font-size:1.2em;font-weight:700}.ds-single{margin-left:1em}",""]),t.exports=i},706:function(t,i,o){var e=o(1376);t.exports="string"==typeof e?e:e.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/31.6242d803.js b/plugins/saladict-ztools/ext-saladic/assets/31.6242d803.js deleted file mode 100644 index 3f3aca99..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/31.6242d803.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[31],{116:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),o=r(30);function i(e,t){var r=Object(o.e)(o.a),i=Object(o.e)((function(){return e(r.current)}));return[Object(n.useRef)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.current.next(t?t(e):e[0])})).current,i.current]}},119:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return f}));var n=r(0),o=r.n(n),i=r(389),a=r(46);const c=o.a.createContext(async()=>{}),s=e=>{const[t,r]=Object(n.useState)(()=>"string"==typeof e.src?e.src:"#"),a=Object(n.useContext)(c);if(Object(i.a)(()=>{r("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const s=e.width||e.height||"1.2em",u=e.height||s;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:s,height:u},onClick:async n=>{if("#"===t&&"function"==typeof e.src){n.stopPropagation(),n.preventDefault();const t=await e.src();a(t),r(t)}}})};t.c=o.a.memo(s);const u=e=>{const{onPlayStart:t,...r}=e,i=Object(n.useCallback)(e=>{if(e.target&&"A"===e.target.tagName&&e.target.href&&"#"!==e.target.href&&e.target.classList&&e.target.classList.contains("saladict-Speaker")){e.preventDefault(),e.stopPropagation();const r=e.target;r.classList.add("isActive"),Object(a.b)([Object(a.d)(1e3),t(r.href)]).then(()=>{r.classList.remove("isActive")})}},[t]);return o.a.createElement(c.Provider,{value:t},o.a.createElement("div",{onClick:i,...r}))},l=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},f=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""},182:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(30),o=r(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object(o.useRef)(e);r.current=e;var i=Object(n.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=r.current[0],t=e.subscribe({next:function(t){if(e===r.current[0])return r.current[1]?r.current[1](t):void 0},error:function(t){if(e===r.current[0]){if(r.current[2])return c.current=null,r.current[2](t);c.current=t,i()}},complete:function(){if(e===r.current[0])return r.current[3]?r.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"a",(function(){return s})),r.d(t,"e",(function(){return u})),r.d(t,"d",(function(){return l}));var n=r(0),o=r(91),i=r(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function s(){return new o.a}function u(e){var t=Object(n.useRef)(!0),r=Object(n.useRef)(null);return t.current&&(t.current=!1,r.current=e()),r}function l(){var e=Object(n.useState)(0)[1];return Object(n.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect},389:function(e,t,r){"use strict";var n=r(0);t.a=function(e,t){var r=Object(n.useRef)(!0);Object(n.useEffect)((function(){if(!r.current)return e();r.current=!1}),t)}},5:function(e,t,r){"use strict";r.d(t,"h",(function(){return i})),r.d(t,"g",(function(){return a})),r.d(t,"b",(function(){return c})),r.d(t,"f",(function(){return s})),r.d(t,"d",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"i",(function(){return p})),r.d(t,"j",(function(){return m})),r.d(t,"a",(function(){return h})),r.d(t,"c",(function(){return y}));var n=r(507),o=r.n(n);r(0),r(116),r(182),r(10),r(371),r(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await r.e(109).then(r.bind(null,1321))).chsToChz:null}function s(e,...t){if(!e)return"";let r="",n=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?r=t[e]:"function"==typeof t[e]&&(n=t[e]);const o=r?e.querySelector(r):e;if(!o)return"";const i=o.textContent||"";return n?n(i):i}const u={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function l(e,{mode:t="innerHTML",selector:r,transform:n,host:i,config:a=u}={}){const c=r?e.querySelector(r):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const s=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),l=s.firstChild?s.firstChild[t]:"";return n?n(l):l}function f(e,t,r={}){return l(t,"string"==typeof r?{selector:r,host:e,mode:"innerHTML"}:{...r,host:e,mode:"innerHTML"})}function d(e,t,r={}){return l(t,"string"==typeof r?{selector:r,host:e,mode:"outerHTML"}:{...r,host:e,mode:"outerHTML"})}function p(e,t){const r=e.querySelector(t);r&&r.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,r){e.endsWith("/")&&(e=e.slice(0,-1));const n=e.startsWith("https")?"https:":"http:",o=t.getAttribute(r);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?n+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,r){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),r=e(["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"]),n=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),s=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),u=a(["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"]),l=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var r=t.length;r--;){var n=t[r];if("string"==typeof n){var o=n.toLowerCase();o!==n&&(Object.isFrozen(t)||(t[r]=o),n=o)}e[n]=!0}return e}function h(e){var t={},r=void 0;for(r in e)p(f,e,[r])&&(t[r]=e[r]);return t}p||(p=function(e,t,r){return e.apply(t,r)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),w=y(/^(?:\w+script|data):/i),x=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function _(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var E=("undefined"!=typeof Reflect&&Reflect).apply,S=Array.prototype.slice,k=Object.freeze,L=function(){return"undefined"==typeof window?null:window};E||(E=function(e,t,r){return e.apply(t,r)});var R=function(e,t){if("object"!==(void 0===e?"undefined":O(e))||"function"!=typeof e.createPolicy)return null;var r=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=t.currentScript.getAttribute("data-tt-policy-suffix"));var n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,N=a.document,M=a.DocumentFragment,C=a.HTMLTemplateElement,D=a.Node,j=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,P=a.DOMParser,q=a.TrustedTypes;if("function"==typeof C){var U=N.createElement("template");U.content&&U.content.ownerDocument&&(N=U.content.ownerDocument)}var W=R(q,d),B=W?W.createHTML(""):"",G=N,$=G.implementation,V=G.createNodeIterator,K=G.getElementsByTagName,Y=G.createDocumentFragment,X=d.importNode,Z={};f.isSupported=$&&void 0!==$.createHTMLDocument&&9!==N.documentMode;var J=g,Q=v,ee=b,te=T,re=w,ne=x,oe=A,ie=null,ae=m({},[].concat(_(t),_(r),_(n),_(o),_(i))),ce=null,se=m({},[].concat(_(c),_(s),_(u),_(l))),ue=null,le=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,Te=!1,Ae=!1,we=!1,xe=!0,Oe=!0,_e=!1,Ee={},Se=m({},["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"]),ke=m({},["audio","video","img","source","image"]),Le=null,Re=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,Me=N.createElement("form"),Ce=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":O(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):se,Le="ADD_URI_SAFE_ATTR"in e?m(h(Re),e.ADD_URI_SAFE_ATTR):Re,ue="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},le="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Ee="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,we=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,xe=!1!==e.SANITIZE_DOM,Oe=!1!==e.KEEP_CONTENT,_e=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Ee&&(ie=m({},[].concat(_(i))),ce=[],!0===Ee.html&&(m(ie,t),m(ce,c)),!0===Ee.svg&&(m(ie,r),m(ce,s),m(ce,l)),!0===Ee.svgFilters&&(m(ie,n),m(ce,s),m(ce,l)),!0===Ee.mathMl&&(m(ie,o),m(ce,u),m(ce,l))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===se&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Le,e.ADD_URI_SAFE_ATTR),Oe&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete ue.tbody),k&&k(e),Ne=e)},De=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},je=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,r=void 0;if(ve)e="<remove></remove>"+e;else{var n=e.match(/^[\s]+/);(r=n&&n[0])&&(e=e.slice(r.length))}if(p)try{t=(new P).parseFromString(e,"text/html")}catch(e){}if(y&&m(ue,["title"]),!t||!t.documentElement){var o=(t=$.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&r&&t.body.insertBefore(N.createTextNode(r),t.body.childNodes[0]||null),K.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return V.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,(function(){return j.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===D?"undefined":O(D))?e instanceof D:e&&"object"===(void 0===e?"undefined":O(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Pe=function(e,t,r){Z[e]&&Z[e].forEach((function(e){e.call(f,t,r,Ne)}))},qe=function(e){var t=void 0;if(Pe("beforeSanitizeElements",e,null),Fe(e))return De(e),!0;var r=e.nodeName.toLowerCase();if(Pe("uponSanitizeElement",e,{tagName:r,allowedTags:ie}),("svg"===r||"math"===r)&&0!==e.querySelectorAll("p, br").length)return De(e),!0;if(!ie[r]||ue[r]){if(Oe&&!Se[r]&&"function"==typeof e.insertAdjacentHTML)try{var n=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(n):n)}catch(e){}return De(e),!0}return"noscript"===r&&/<\/noscript/i.test(e.innerHTML)||"noembed"===r&&/<\/noembed/i.test(e.innerHTML)?(De(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Pe("afterSanitizeElements",e,null),!1)},Ue=function(e,t,r){if(xe&&("id"===t||"name"===t)&&(r in N||r in Me))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||le[t])return!1;if(Le[t]);else if(oe.test(r.replace(ne,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==r.indexOf("data:")||!ke[e])if(pe&&!re.test(r.replace(ne,"")));else if(r)return!1}return!0},We=function(e){var t=void 0,r=void 0,n=void 0,o=void 0,i=void 0;Pe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var s=t=a[i],u=s.name,l=s.namespaceURI;if(r=t.value.trim(),n=u.toLowerCase(),c.attrName=n,c.attrValue=r,c.keepAttr=!0,Pe("uponSanitizeAttribute",e,c),r=c.attrValue,"name"===n&&"IMG"===e.nodeName&&a.id)o=a.id,a=E(S,a,[]),je("id",e),je(u,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===n&&"file"===r&&c.keepAttr&&(ce[n]||!le[n]))continue;"id"===u&&e.setAttribute(u,""),je(u,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Se).join("|")+")","i").test(r))je(u,e);else{he&&(r=(r=r.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Ue(d,n,r))try{l?e.setAttributeNS(l,u,r):e.setAttribute(u,r),f.removed.pop()}catch(e){}}}Pe("afterSanitizeAttributes",e,null)}},Be=function e(t){var r=void 0,n=ze(t);for(Pe("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)Pe("uponSanitizeShadowNode",r,null),qe(r)||(r.content instanceof M&&e(r.content),We(r));Pe("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var r=void 0,n=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===O(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||Ce(t),f.removed=[],_e);else if(e instanceof D)1===(n=(r=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?r=n:r.appendChild(n);else{if(!be&&!he&&!ye&&we&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(r=He(e)))return be?null:B}r&&ve&&De(r.firstChild);for(var s=ze(_e?e:r);o=s.nextNode();)3===o.nodeType&&o===i||qe(o)||(o.content instanceof M&&Be(o.content),We(o),i=o);if(i=null,_e)return e;if(be){if(Te)for(c=Y.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return Ae&&(c=X.call(d,c,!0)),c}var u=ye?r.outerHTML:r.innerHTML;return he&&(u=(u=u.replace(J," ")).replace(Q," ")),W&&we?W.createHTML(u):u},f.setConfig=function(e){Ce(e),ge=!0},f.clearConfig=function(){Ne=null,ge=!1},f.isValidAttribute=function(e,t,r){Ne||Ce({});var n=e.toLowerCase(),o=t.toLowerCase();return Ue(n,o,r)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));r(507);var n=r(131),o=r.n(n);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(3),o=r(7);function i(){}var a=r(45);function c(e,t,r){return function(n){return n.lift(new s(e,t,r))}}var s=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.nextOrObserver,this.error,this.complete))},e}(),u=function(e){function t(t,r,n,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=n||i,c._tapComplete=o||i,Object(a.a)(r)?(c._context=c,c._tapNext=r):r&&(c._context=r,c._tapNext=r.next||i,c._tapError=r.error||i,c._tapComplete=r.complete||i),c}return n.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},826:function(e,t,r){"use strict";r.r(t),r.d(t,"getSrcPage",(function(){return a})),r.d(t,"search",(function(){return c}));var n=r(61),o=r(5),i=r(119);const a=e=>"https://www.collinsdictionary.com/dictionary/english/"+encodeURIComponent(e.replace(/\s+/g,"-")),c=async(e,t,r,i)=>{e=encodeURIComponent(e.replace(/\s+/g,"-"));const{options:a}=r.dicts.all.cobuild,c=["https://www.collinsdictionary.com/dictionary/english/","https://www.collinsdictionary.com/zh/dictionary/english/"];a.cibaFirst&&c.reverse();try{return s(await Object(n.a)(c[0]+e),t)}catch(r){let i;try{i=await Object(n.a)(c[1]+e)}catch(e){return Object(o.g)()}return s(i,t)}};async function s(e,t){const r=await Object(o.b)(t.langCode),n={type:"collins",sections:[]},a={};return n.sections=[...e.querySelectorAll("[data-type-block]")].filter(e=>{const t=e.dataset.typeBlock||"";return t&&"Video"!==t&&"Trends"!==t&&"英语词汇表"!==t&&"趋势"!==t}).map(e=>{const n=e.dataset.typeBlock||"",c=e.dataset.titleBlock||"",s=e.dataset.numBlock||"",l=n+c+s,f=e.className||"";if("Learner"===n){if(!a.uk){const t=u(e);t&&(a.uk=t)}}else"English"===n?a.uk=u(e):"American"===n&&(a.us=u(e));const d=e.querySelector("#videos .video");if(d){const e=d.querySelector(".youtube-video");if(e&&e.dataset.embed){const r=t.panelWidth-25;return{id:l,className:f,type:n,title:c,num:s,content:`<iframe width="${r}" height="${r/560*315}" src="https://www.youtube-nocookie.com/embed/${e.dataset.embed}" frameborder="0" allow="accelerometer; encrypted-media"></iframe>`}}}return e.querySelectorAll(".audio_play_button").forEach(e=>{e.replaceWith(Object(i.d)(e.dataset.srcMp3))}),e.querySelectorAll("a.type-thesaurus").forEach(o.a),{id:l,className:f,type:n,title:c,num:s,content:Object(o.d)("https://www.collinsdictionary.com",e,{transform:r})}}),n.sections.length>0?{result:n,audio:a}:Object(o.h)()}function u(e){const t=e.querySelector(".pron .audio_play_button");if(t){const e=t.dataset.srcMp3;if(e)return e}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/80.27fd2225.js b/plugins/saladict-ztools/ext-saladic/assets/32.449cf52a.js similarity index 92% rename from plugins/saladict-ztools/ext-saladic/assets/80.27fd2225.js rename to plugins/saladict-ztools/ext-saladic/assets/32.449cf52a.js index abb5d92a..3e52cb3c 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/80.27fd2225.js +++ b/plugins/saladict-ztools/ext-saladic/assets/32.449cf52a.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[80],{1355:function(a,n,e){(n=e(221)(!1)).push([a.i,'.MachineTrans-Text .saladict-Speaker{position:absolute;left:0;top:2px;margin:0}.MachineTrans-Text summary{cursor:pointer}.MachineTrans-Lines{position:relative;margin:.5em 0;padding-left:1.5em}.MachineTrans-Lines p{margin:.3em 0}.MachineTrans-Lines-collapse{overflow:hidden;position:relative}.MachineTrans-Lines-collapse::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;background:linear-gradient(90deg,rgba(255,255,255,0) 50%,var(--color-background) 90%);pointer-events:none}.MachineTrans-Lines-collapse button{height:1.5em;padding:0;text-align:start;word-break:keep-all;white-space:nowrap;font-size:1em;font-weight:400;font-family:inherit;color:currentColor;cursor:pointer}.MachineTrans-lang-ar,.MachineTrans-lang-ara,.MachineTrans-lang-az,.MachineTrans-lang-fa,.MachineTrans-lang-he,.MachineTrans-lang-iw,.MachineTrans-lang-ku,.MachineTrans-lang-ug,.MachineTrans-lang-ur{direction:rtl!important}.MachineTrans-lang-ar.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ara.MachineTrans-Lines-collapse::after,.MachineTrans-lang-az.MachineTrans-Lines-collapse::after,.MachineTrans-lang-fa.MachineTrans-Lines-collapse::after,.MachineTrans-lang-he.MachineTrans-Lines-collapse::after,.MachineTrans-lang-iw.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ku.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ug.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ur.MachineTrans-Lines-collapse::after{background:linear-gradient(270deg,rgba(255,255,255,0) 50%,var(--color-background) 90%)}.MachineTrans-has-rtl{text-align:right}.MachineTrans-has-rtl .MachineTrans-Lines{padding-left:0;padding-right:1.5em}.MachineTrans-has-rtl .saladict-Speaker{left:auto;right:0}@font-face{font-family:"UKIJ Tuz Basma";src:url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff2) format("woff2"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff) format("woff"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.ttf) format("truetype"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.svg#UKIJTuzBasma-Bold) format("svg");font-style:normal}.MachineTrans-lang-ug{font-family:"UKIJ Tuz Basma"!important}',""]),a.exports=n},692:function(a,n,e){var r=e(1355);a.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[32],{1377:function(a,n,e){(n=e(226)(!1)).push([a.i,'.MachineTrans-Text .saladict-Speaker{position:absolute;left:0;top:2px;margin:0}.MachineTrans-Text summary{cursor:pointer}.MachineTrans-Lines{position:relative;margin:.5em 0;padding-left:1.5em}.MachineTrans-Lines p{margin:.3em 0}.MachineTrans-Lines-collapse{overflow:hidden;position:relative}.MachineTrans-Lines-collapse::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;background:linear-gradient(90deg,rgba(255,255,255,0) 50%,var(--color-background) 90%);pointer-events:none}.MachineTrans-Lines-collapse button{height:1.5em;padding:0;text-align:start;word-break:keep-all;white-space:nowrap;font-size:1em;font-weight:400;font-family:inherit;color:currentColor;cursor:pointer}.MachineTrans-lang-ar,.MachineTrans-lang-ara,.MachineTrans-lang-az,.MachineTrans-lang-fa,.MachineTrans-lang-he,.MachineTrans-lang-iw,.MachineTrans-lang-ku,.MachineTrans-lang-ug,.MachineTrans-lang-ur{direction:rtl!important}.MachineTrans-lang-ar.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ara.MachineTrans-Lines-collapse::after,.MachineTrans-lang-az.MachineTrans-Lines-collapse::after,.MachineTrans-lang-fa.MachineTrans-Lines-collapse::after,.MachineTrans-lang-he.MachineTrans-Lines-collapse::after,.MachineTrans-lang-iw.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ku.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ug.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ur.MachineTrans-Lines-collapse::after{background:linear-gradient(270deg,rgba(255,255,255,0) 50%,var(--color-background) 90%)}.MachineTrans-has-rtl{text-align:right}.MachineTrans-has-rtl .MachineTrans-Lines{padding-left:0;padding-right:1.5em}.MachineTrans-has-rtl .saladict-Speaker{left:auto;right:0}@font-face{font-family:"UKIJ Tuz Basma";src:url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff2) format("woff2"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff) format("woff"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.ttf) format("truetype"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.svg#UKIJTuzBasma-Bold) format("svg");font-style:normal}.MachineTrans-lang-ug{font-family:"UKIJ Tuz Basma"!important}',""]),a.exports=n},707:function(a,n,e){var r=e(1377);a.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/32.8876f084.js b/plugins/saladict-ztools/ext-saladic/assets/32.8876f084.js deleted file mode 100644 index ec0fb50f..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/32.8876f084.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[32],{116:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),o=r(30);function i(e,t){var r=Object(o.e)(o.a),i=Object(o.e)((function(){return e(r.current)}));return[Object(n.useRef)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.current.next(t?t(e):e[0])})).current,i.current]}},119:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"e",(function(){return f}));var n=r(0),o=r.n(n),i=r(389),a=r(46);const c=o.a.createContext(async()=>{}),s=e=>{const[t,r]=Object(n.useState)(()=>"string"==typeof e.src?e.src:"#"),a=Object(n.useContext)(c);if(Object(i.a)(()=>{r("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const s=e.width||e.height||"1.2em",l=e.height||s;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:s,height:l},onClick:async n=>{if("#"===t&&"function"==typeof e.src){n.stopPropagation(),n.preventDefault();const t=await e.src();a(t),r(t)}}})};t.c=o.a.memo(s);const l=e=>{const{onPlayStart:t,...r}=e,i=Object(n.useCallback)(e=>{if(e.target&&"A"===e.target.tagName&&e.target.href&&"#"!==e.target.href&&e.target.classList&&e.target.classList.contains("saladict-Speaker")){e.preventDefault(),e.stopPropagation();const r=e.target;r.classList.add("isActive"),Object(a.b)([Object(a.d)(1e3),t(r.href)]).then(()=>{r.classList.remove("isActive")})}},[t]);return o.a.createElement(c.Provider,{value:t},o.a.createElement("div",{onClick:i,...r}))},u=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},f=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""},182:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(30),o=r(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object(o.useRef)(e);r.current=e;var i=Object(n.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=r.current[0],t=e.subscribe({next:function(t){if(e===r.current[0])return r.current[1]?r.current[1](t):void 0},error:function(t){if(e===r.current[0]){if(r.current[2])return c.current=null,r.current[2](t);c.current=t,i()}},complete:function(){if(e===r.current[0])return r.current[3]?r.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"a",(function(){return s})),r.d(t,"e",(function(){return l})),r.d(t,"d",(function(){return u}));var n=r(0),o=r(91),i=r(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function s(){return new o.a}function l(e){var t=Object(n.useRef)(!0),r=Object(n.useRef)(null);return t.current&&(t.current=!1,r.current=e()),r}function u(){var e=Object(n.useState)(0)[1];return Object(n.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect},389:function(e,t,r){"use strict";var n=r(0);t.a=function(e,t){var r=Object(n.useRef)(!0);Object(n.useEffect)((function(){if(!r.current)return e();r.current=!1}),t)}},5:function(e,t,r){"use strict";r.d(t,"h",(function(){return i})),r.d(t,"g",(function(){return a})),r.d(t,"b",(function(){return c})),r.d(t,"f",(function(){return s})),r.d(t,"d",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"i",(function(){return p})),r.d(t,"j",(function(){return m})),r.d(t,"a",(function(){return h})),r.d(t,"c",(function(){return g}));var n=r(507),o=r.n(n);r(0),r(116),r(182),r(10),r(371),r(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await r.e(109).then(r.bind(null,1321))).chsToChz:null}function s(e,...t){if(!e)return"";let r="",n=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?r=t[e]:"function"==typeof t[e]&&(n=t[e]);const o=r?e.querySelector(r):e;if(!o)return"";const i=o.textContent||"";return n?n(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function u(e,{mode:t="innerHTML",selector:r,transform:n,host:i,config:a=l}={}){const c=r?e.querySelector(r):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",g(i,e,"href")),e.setAttribute("src",g(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const s=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),u=s.firstChild?s.firstChild[t]:"";return n?n(u):u}function f(e,t,r={}){return u(t,"string"==typeof r?{selector:r,host:e,mode:"innerHTML"}:{...r,host:e,mode:"innerHTML"})}function d(e,t,r={}){return u(t,"string"==typeof r?{selector:r,host:e,mode:"outerHTML"}:{...r,host:e,mode:"outerHTML"})}function p(e,t){const r=e.querySelector(t);r&&r.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function g(e,t,r){e.endsWith("/")&&(e=e.slice(0,-1));const n=e.startsWith("https")?"https:":"http:",o=t.getAttribute(r);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?n+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,r){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),r=e(["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"]),n=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),s=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),u=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var r=t.length;r--;){var n=t[r];if("string"==typeof n){var o=n.toLowerCase();o!==n&&(Object.isFrozen(t)||(t[r]=o),n=o)}e[n]=!0}return e}function h(e){var t={},r=void 0;for(r in e)p(f,e,[r])&&(t[r]=e[r]);return t}p||(p=function(e,t,r){return e.apply(t,r)});var g=Object.seal||function(e){return e},y=g(/\{\{[\s\S]*|[\s\S]*\}\}/gm),b=g(/<%[\s\S]*|[\s\S]*%>/gm),v=g(/^data-[\-\w.\u00B7-\uFFFF]/),T=g(/^aria-[\-\w]+$/),A=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),w=g(/^(?:\w+script|data):/i),x=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function S(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var _=("undefined"!=typeof Reflect&&Reflect).apply,E=Array.prototype.slice,L=Object.freeze,R=function(){return"undefined"==typeof window?null:window};_||(_=function(e,t,r){return e.apply(t,r)});var M=function(e,t){if("object"!==(void 0===e?"undefined":O(e))||"function"!=typeof e.createPolicy)return null;var r=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=t.currentScript.getAttribute("data-tt-policy-suffix"));var n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,g=!1,k=a.document,j=a.DocumentFragment,N=a.HTMLTemplateElement,C=a.Node,D=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,q=a.Comment,I=a.DOMParser,P=a.TrustedTypes;if("function"==typeof N){var U=k.createElement("template");U.content&&U.content.ownerDocument&&(k=U.content.ownerDocument)}var W=M(P,d),G=W?W.createHTML(""):"",B=k,$=B.implementation,V=B.createNodeIterator,K=B.getElementsByTagName,Y=B.createDocumentFragment,X=d.importNode,Z={};f.isSupported=$&&void 0!==$.createHTMLDocument&&9!==k.documentMode;var J=y,Q=b,ee=v,te=T,re=w,ne=x,oe=A,ie=null,ae=m({},[].concat(S(t),S(r),S(n),S(o),S(i))),ce=null,se=m({},[].concat(S(c),S(s),S(l),S(u))),le=null,ue=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ge=!1,ye=!1,be=!1,ve=!1,Te=!1,Ae=!1,we=!1,xe=!0,Oe=!0,Se=!1,_e={},Ee=m({},["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"]),Le=m({},["audio","video","img","source","image"]),Re=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),ke=null,je=k.createElement("form"),Ne=function(e){ke&&ke===e||(e&&"object"===(void 0===e?"undefined":O(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):se,Re="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},ue="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},_e="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ge=e.WHOLE_DOCUMENT||!1,ve=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,we=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,xe=!1!==e.SANITIZE_DOM,Oe=!1!==e.KEEP_CONTENT,Se=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(ve=!0),_e&&(ie=m({},[].concat(S(i))),ce=[],!0===_e.html&&(m(ie,t),m(ce,c)),!0===_e.svg&&(m(ie,r),m(ce,s),m(ce,u)),!0===_e.svgFilters&&(m(ie,n),m(ce,s),m(ce,u)),!0===_e.mathMl&&(m(ie,o),m(ce,l),m(ce,u))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===se&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Re,e.ADD_URI_SAFE_ATTR),Oe&&(ie["#text"]=!0),ge&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),L&&L(e),ke=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=G}},De=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,r=void 0;if(be)e="<remove></remove>"+e;else{var n=e.match(/^[\s]+/);(r=n&&n[0])&&(e=e.slice(r.length))}if(p)try{t=(new I).parseFromString(e,"text/html")}catch(e){}if(g&&m(le,["title"]),!t||!t.documentElement){var o=(t=$.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&r&&t.body.insertBefore(k.createTextNode(r),t.body.childNodes[0]||null),K.call(t,ge?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(g=!0)}catch(e){}}());var ze=function(e){return V.call(e.ownerDocument||e,e,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,(function(){return D.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},qe=function(e){return"object"===(void 0===C?"undefined":O(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":O(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ie=function(e,t,r){Z[e]&&Z[e].forEach((function(e){e.call(f,t,r,ke)}))},Pe=function(e){var t=void 0;if(Ie("beforeSanitizeElements",e,null),Fe(e))return Ce(e),!0;var r=e.nodeName.toLowerCase();if(Ie("uponSanitizeElement",e,{tagName:r,allowedTags:ie}),("svg"===r||"math"===r)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[r]||le[r]){if(Oe&&!Ee[r]&&"function"==typeof e.insertAdjacentHTML)try{var n=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(n):n)}catch(e){}return Ce(e),!0}return"noscript"===r&&/<\/noscript/i.test(e.innerHTML)||"noembed"===r&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ie("afterSanitizeElements",e,null),!1)},Ue=function(e,t,r){if(xe&&("id"===t||"name"===t)&&(r in k||r in je))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||ue[t])return!1;if(Re[t]);else if(oe.test(r.replace(ne,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==r.indexOf("data:")||!Le[e])if(pe&&!re.test(r.replace(ne,"")));else if(r)return!1}return!0},We=function(e){var t=void 0,r=void 0,n=void 0,o=void 0,i=void 0;Ie("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var s=t=a[i],l=s.name,u=s.namespaceURI;if(r=t.value.trim(),n=l.toLowerCase(),c.attrName=n,c.attrValue=r,c.keepAttr=!0,Ie("uponSanitizeAttribute",e,c),r=c.attrValue,"name"===n&&"IMG"===e.nodeName&&a.id)o=a.id,a=_(E,a,[]),De("id",e),De(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===n&&"file"===r&&c.keepAttr&&(ce[n]||!ue[n]))continue;"id"===l&&e.setAttribute(l,""),De(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Ee).join("|")+")","i").test(r))De(l,e);else{he&&(r=(r=r.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Ue(d,n,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),f.removed.pop()}catch(e){}}}Ie("afterSanitizeAttributes",e,null)}},Ge=function e(t){var r=void 0,n=ze(t);for(Ie("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)Ie("uponSanitizeShadowNode",r,null),Pe(r)||(r.content instanceof j&&e(r.content),We(r));Ie("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var r=void 0,n=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!qe(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===O(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(qe(e))return a.toStaticHTML(e.outerHTML)}return e}if(ye||Ne(t),f.removed=[],Se);else if(e instanceof C)1===(n=(r=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?r=n:r.appendChild(n);else{if(!ve&&!he&&!ge&&we&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(r=He(e)))return ve?null:G}r&&be&&Ce(r.firstChild);for(var s=ze(Se?e:r);o=s.nextNode();)3===o.nodeType&&o===i||Pe(o)||(o.content instanceof j&&Ge(o.content),We(o),i=o);if(i=null,Se)return e;if(ve){if(Te)for(c=Y.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return Ae&&(c=X.call(d,c,!0)),c}var l=ge?r.outerHTML:r.innerHTML;return he&&(l=(l=l.replace(J," ")).replace(Q," ")),W&&we?W.createHTML(l):l},f.setConfig=function(e){Ne(e),ye=!0},f.clearConfig=function(){ke=null,ye=!1},f.isValidAttribute=function(e,t,r){ke||Ne({});var n=e.toLowerCase(),o=t.toLowerCase();return Ue(n,o,r)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));r(507);var n=r(131),o=r.n(n);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(3),o=r(7);function i(){}var a=r(45);function c(e,t,r){return function(n){return n.lift(new s(e,t,r))}}var s=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,r,n,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=n||i,c._tapComplete=o||i,Object(a.a)(r)?(c._context=c,c._tapNext=r):r&&(c._context=r,c._tapNext=r.next||i,c._tapError=r.error||i,c._tapComplete=r.complete||i),c}return n.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},831:function(e,t,r){"use strict";r.r(t),r.d(t,"getSrcPage",(function(){return a})),r.d(t,"search",(function(){return c}));var n=r(5),o=r(119),i=r(61);const a=e=>"https://www.google.com.hk/search?hl=en&safe=off&q=meaning:"+encodeURIComponent(e.toLowerCase().replace(/\s+/g,"+")),c=async(e,t,r,a)=>{const c=r.dicts.all.googledict.options.enresult?"hl=en&gl=en&":"",l=encodeURIComponent(e.toLowerCase().replace(/\s+/g,"+"));try{return await Object(i.b)(`https://www.google.com/search?hl=en&safe=off&${c}q=meaning:${l}`).catch(n.g).then(u)}catch(e){return await Object(i.b)(`https://www.google.com/search?hl=en&safe=off&${c}q=define:${l}`).catch(n.g).then(u)}function u(t){const r=(new DOMParser).parseFromString(t,"text/html");(function(e){const t=[],r=/\(function\(\)\{window\.jsl\.dh\('([^']+)','([^']+)'\);\}\)\(\);/g;let n;for(;n=r.exec(e);)t.push({id:n[1],innerHTML:n[2].replace(/\\x([\da-f]{2})/gi,s).replace(/\\[u]([\da-f]{4})/gi,s)});return t})(t).forEach(({id:e,innerHTML:t})=>{try{const n=r.querySelector("#"+e);n&&(n.innerHTML=t)}catch(e){}});const i=r.querySelector(".lr_container");if(i){i.querySelectorAll(".vkc_np").forEach(e=>{(e.querySelector(".zbA8Me")||e.querySelector("#dw-siw")||e.querySelector("#tl_select"))&&e.remove()}),Object(n.j)(i,".lr_dct_trns_h"),Object(n.j)(i,".S5TwIf"),Object(n.j)(i,".VZVCid"),Object(n.j)(i,".u7XA4b"),Object(n.i)(i,"[jsname=L4Nn5e]"),i.querySelectorAll("audio").forEach(t=>{const r=t.querySelector("source");let i=r&&Object(n.c)("https://ssl.gstatic.com",r,"src");i||(i="https://www.google.com/speech-api/v1/synthesize?enc=mpeg&lang=zh-cn&speed=0.4&client=lr-language-tts&use_google_only_voices=1&text="+encodeURIComponent(e)),t.replaceWith(Object(o.d)(i))}),i.querySelectorAll("[role=listitem] > [jsname=F457ec]").forEach(e=>{e.innerHTML=`<a>${Object(n.f)(e)}</a>`,e.removeAttribute("style"),e.classList.add("MR2UAc"),e.classList.add("I6a0ee"),e.classList.remove("cO53qb")}),i.querySelectorAll("g-img > img").forEach(e=>{const t=e.getAttribute("title");t&&e.setAttribute("src",t)}),function(e){const t=/google.ldi={([^}]+)}/.exec(e);if(t)try{const e=JSON.parse(`{${t[1]}}`);return Object.keys(e).map(t=>({id:t,src:e[t]}))}catch(e){}return[]}(t).forEach(({id:e,src:t})=>{try{const r=i.querySelector("#"+e);r&&r.setAttribute("src",t)}catch(e){}});const a=Object(n.d)("https://www.google.com",i,{config:{ADD_TAGS:["g-img"],ADD_ATTR:["jsname","jsaction"]}}).replace(/synonyms:/g,"syn:").replace(/antonyms:/g,"ant:"),c=[];return r.querySelectorAll("style").forEach(e=>{const t=Object(n.f)(e);t&&/\.xpdxpnd|\.lr_container/.test(t)&&c.push(t)}),{result:{entry:a,styles:c}}}return Object(n.h)()}};function s(e,t){return String.fromCharCode(parseInt(t,16))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/59.bd5a60d1.js b/plugins/saladict-ztools/ext-saladic/assets/33.c5396e7f.js similarity index 79% rename from plugins/saladict-ztools/ext-saladic/assets/59.bd5a60d1.js rename to plugins/saladict-ztools/ext-saladic/assets/33.c5396e7f.js index 71d862dc..c22b9a47 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/59.bd5a60d1.js +++ b/plugins/saladict-ztools/ext-saladic/assets/33.c5396e7f.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[59],{1334:function(i,t,e){(t=e(221)(!1)).push([i.i,".dictBing-Title{font-size:1.5em}.dictBing-Phsym{display:flex;margin-bottom:5px}.dictBing-PhsymItem{margin-right:1em}.dictBing-Cdef{margin-bottom:5px}.dictBing-CdefItem{display:table}.dictBing-CdefItem_Pos{display:table-cell;width:3em;font-weight:700;text-align:right}.dictBing-CdefItem_Def{display:table-cell;padding:0 12px}.dictBing-Inf{display:flex;flex-wrap:wrap;margin-bottom:5px;font-size:12px;color:#777}.dictBing-InfItem{margin-right:1em}.dictBing-SentenceList{padding:0 0 0 1.5em}.dictBing-SentenceItem{margin-bottom:10px}.dictBing-SentenceItem p{margin:0}.dictBing-SentenceItem_HL{color:#f9690e}.dictBing-SentenceSource{color:#999}.dictBing-Related_Title{font-size:1em;margin:5px 0}.dictBing-Related_DefTitle{font-size:1.2em;margin:5px 0 0 0}.dictBing-Related_Meaning{display:table;margin-bottom:2px}.dictBing-Related_Meaning_Word{display:table-cell;width:8em;text-align:right;color:#16a085;text-decoration:none;cursor:pointer}.dictBing-Related_Meaning_Def{display:table-cell;padding:0 12px}",""]),i.exports=t},671:function(i,t,e){var n=e(1334);i.exports="string"==typeof n?n:n.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[33],{1378:function(i,t,e){(t=e(226)(!1)).push([i.i,".dictBing-Title{font-size:1.5em}.dictBing-Phsym{display:flex;margin-bottom:5px}.dictBing-PhsymItem{margin-right:1em}.dictBing-Cdef{margin-bottom:5px}.dictBing-CdefItem{display:table}.dictBing-CdefItem_Pos{display:table-cell;width:3em;font-weight:700;text-align:right}.dictBing-CdefItem_Def{display:table-cell;padding:0 12px}.dictBing-Inf{display:flex;flex-wrap:wrap;margin-bottom:5px;font-size:12px;color:#777}.dictBing-InfItem{margin-right:1em}.dictBing-SentenceList{padding:0 0 0 1.5em}.dictBing-SentenceItem{margin-bottom:10px}.dictBing-SentenceItem p{margin:0}.dictBing-SentenceItem_HL{color:#f9690e}.dictBing-SentenceSource{color:#999}.dictBing-Related_Title{font-size:1em;margin:5px 0}.dictBing-Related_DefTitle{font-size:1.2em;margin:5px 0 0 0}.dictBing-Related_Meaning{display:table;margin-bottom:2px}.dictBing-Related_Meaning_Word{display:table-cell;width:8em;text-align:right;color:#16a085;text-decoration:none;cursor:pointer}.dictBing-Related_Meaning_Def{display:table-cell;padding:0 12px}",""]),i.exports=t},708:function(i,t,e){var n=e(1378);i.exports="string"==typeof n?n:n.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/33.cfeea615.js b/plugins/saladict-ztools/ext-saladic/assets/33.cfeea615.js deleted file mode 100644 index 5577168c..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/33.cfeea615.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[33],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},119:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return d}));var r=n(0),o=n.n(r),i=n(389),a=n(46);const c=o.a.createContext(async()=>{}),s=e=>{const[t,n]=Object(r.useState)(()=>"string"==typeof e.src?e.src:"#"),a=Object(r.useContext)(c);if(Object(i.a)(()=>{n("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const s=e.width||e.height||"1.2em",l=e.height||s;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:s,height:l},onClick:async r=>{if("#"===t&&"function"==typeof e.src){r.stopPropagation(),r.preventDefault();const t=await e.src();a(t),n(t)}}})};t.c=o.a.memo(s);const l=e=>{const{onPlayStart:t,...n}=e,i=Object(r.useCallback)(e=>{if(e.target&&"A"===e.target.tagName&&e.target.href&&"#"!==e.target.href&&e.target.classList&&e.target.classList.contains("saladict-Speaker")){e.preventDefault(),e.stopPropagation();const n=e.target;n.classList.add("isActive"),Object(a.b)([Object(a.d)(1e3),t(n.href)]).then(()=>{n.classList.remove("isActive")})}},[t]);return o.a.createElement(c.Provider,{value:t},o.a.createElement("div",{onClick:i,...n}))},u=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},d=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function s(){return new o.a}function l(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function u(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(d)})).current}function d(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},389:function(e,t,n){"use strict";var r=n(0);t.a=function(e,t){var n=Object(r.useRef)(!0);Object(r.useEffect)((function(){if(!n.current)return e();n.current=!1}),t)}},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function s(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function u(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=l}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const s=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),u=s.firstChild?s.firstChild[t]:"";return r?r(u):u}function d(e,t,n={}){return u(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function f(e,t,n={}){return u(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),s=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),u=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),d=Object.hasOwnProperty,f=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){f&&f(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(d,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),x=y(/^aria-[\-\w]+$/),T=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),w=y(/^(?:\w+script|data):/i),A=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function O(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var _=("undefined"!=typeof Reflect&&Reflect).apply,E=Array.prototype.slice,L=Object.freeze,R=function(){return"undefined"==typeof window?null:window};_||(_=function(e,t,n){return e.apply(t,n)});var j=function(e,t){if("object"!==(void 0===e?"undefined":S(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),d=function(t){return e(t)};if(d.version="2.0.7",d.removed=[],!a||!a.document||9!==a.document.nodeType)return d.isSupported=!1,d;var f=a.document,p=!1,y=!1,k=a.document,M=a.DocumentFragment,N=a.HTMLTemplateElement,C=a.Node,D=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,P=a.DOMParser,U=a.TrustedTypes;if("function"==typeof N){var q=k.createElement("template");q.content&&q.content.ownerDocument&&(k=q.content.ownerDocument)}var W=j(U,f),B=W?W.createHTML(""):"",G=k,J=G.implementation,$=G.createNodeIterator,V=G.getElementsByTagName,K=G.createDocumentFragment,Y=f.importNode,X={};d.isSupported=J&&void 0!==J.createHTMLDocument&&9!==k.documentMode;var Z=g,Q=v,ee=b,te=x,ne=w,re=A,oe=T,ie=null,ae=m({},[].concat(O(t),O(n),O(r),O(o),O(i))),ce=null,se=m({},[].concat(O(c),O(s),O(l),O(u))),le=null,ue=null,de=!0,fe=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,xe=!1,Te=!1,we=!1,Ae=!0,Se=!0,Oe=!1,_e={},Ee=m({},["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"]),Le=m({},["audio","video","img","source","image"]),Re=null,je=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),ke=null,Me=k.createElement("form"),Ne=function(e){ke&&ke===e||(e&&"object"===(void 0===e?"undefined":S(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):se,Re="ADD_URI_SAFE_ATTR"in e?m(h(je),e.ADD_URI_SAFE_ATTR):je,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},ue="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},_e="USE_PROFILES"in e&&e.USE_PROFILES,de=!1!==e.ALLOW_ARIA_ATTR,fe=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,xe=e.RETURN_DOM_FRAGMENT||!1,Te=e.RETURN_DOM_IMPORT||!1,we=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,Ae=!1!==e.SANITIZE_DOM,Se=!1!==e.KEEP_CONTENT,Oe=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(fe=!1),xe&&(be=!0),_e&&(ie=m({},[].concat(O(i))),ce=[],!0===_e.html&&(m(ie,t),m(ce,c)),!0===_e.svg&&(m(ie,n),m(ce,s),m(ce,u)),!0===_e.svgFilters&&(m(ie,r),m(ce,s),m(ce,u)),!0===_e.mathMl&&(m(ie,o),m(ce,l),m(ce,u))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===se&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Re,e.ADD_URI_SAFE_ATTR),Se&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),L&&L(e),ke=e)},Ce=function(e){d.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},De=function(e,t){try{d.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){d.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new P).parseFromString(e,"text/html")}catch(e){}if(y&&m(le,["title"]),!t||!t.documentElement){var o=(t=J.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(k.createTextNode(n),t.body.childNodes[0]||null),V.call(t,ye?"html":"body")[0]};d.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return $.call(e.ownerDocument||e,e,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,(function(){return D.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===C?"undefined":S(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":S(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Pe=function(e,t,n){X[e]&&X[e].forEach((function(e){e.call(d,t,n,ke)}))},Ue=function(e){var t=void 0;if(Pe("beforeSanitizeElements",e,null),Fe(e))return Ce(e),!0;var n=e.nodeName.toLowerCase();if(Pe("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[n]||le[n]){if(Se&&!Ee[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return Ce(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(d.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(Z," ")).replace(Q," "),e.textContent!==t&&(d.removed.push({element:e.cloneNode()}),e.textContent=t)),Pe("afterSanitizeElements",e,null),!1)},qe=function(e,t,n){if(Ae&&("id"===t||"name"===t)&&(n in k||n in Me))return!1;if(fe&&ee.test(t));else if(de&&te.test(t));else{if(!ce[t]||ue[t])return!1;if(Re[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Le[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;Pe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var s=t=a[i],l=s.name,u=s.namespaceURI;if(n=t.value.trim(),r=l.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,Pe("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=_(E,a,[]),De("id",e),De(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!ue[r]))continue;"id"===l&&e.setAttribute(l,""),De(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Ee).join("|")+")","i").test(n))De(l,e);else{he&&(n=(n=n.replace(Z," ")).replace(Q," "));var f=e.nodeName.toLowerCase();if(qe(f,r,n))try{u?e.setAttributeNS(u,l,n):e.setAttribute(l,n),d.removed.pop()}catch(e){}}}Pe("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(Pe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Pe("uponSanitizeShadowNode",n,null),Ue(n)||(n.content instanceof M&&e(n.content),We(n));Pe("afterSanitizeShadowDOM",t,null)};return d.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!d.isSupported){if("object"===S(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||Ne(t),d.removed=[],Oe);else if(e instanceof C)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ye&&we&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return be?null:B}n&&ve&&Ce(n.firstChild);for(var s=ze(Oe?e:n);o=s.nextNode();)3===o.nodeType&&o===i||Ue(o)||(o.content instanceof M&&Be(o.content),We(o),i=o);if(i=null,Oe)return e;if(be){if(xe)for(c=K.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Te&&(c=Y.call(f,c,!0)),c}var l=ye?n.outerHTML:n.innerHTML;return he&&(l=(l=l.replace(Z," ")).replace(Q," ")),W&&we?W.createHTML(l):l},d.setConfig=function(e){Ne(e),ge=!0},d.clearConfig=function(){ke=null,ge=!1},d.isValidAttribute=function(e,t,n){ke||Ne({});var r=e.toLowerCase(),o=t.toLowerCase();return qe(r,o,n)},d.addHook=function(e,t){"function"==typeof t&&(X[e]=X[e]||[],X[e].push(t))},d.removeHook=function(e){X[e]&&X[e].pop()},d.removeHooks=function(e){X[e]&&(X[e]=[])},d.removeAllHooks=function(){X={}},d}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new s(e,t,n))}}var s=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},832:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return l}));var r=n(24),o=n(5),i=n(119),a=n(61);const c=(e,t,n)=>`https://www.hjdict.com/${d(e,n)}/${encodeURIComponent(e)}`,s="https://www.hjdict.com",l=async(e,t,n,r)=>{const c={HJ_SITEID:3,HJ_UID:f(),HJ_SID:f(),HJ_SSID:f(),HJID:0,HJ_VT:2,HJ_SST:1,HJ_CSST:1,HJ_ST:1,HJ_CST:1,HJ_T:+new Date,_:f(16)};await Promise.all(Object.keys(c).map(e=>browser.cookies.set({url:"https://www.hjdict.com",domain:"hjdict.com",name:e,value:String(c[e])})));const l=r.langCode||d(e,n);return Object(a.a)(`https://www.hjdict.com/${l}/${encodeURIComponent(e)}`,{withCredentials:!0}).catch(o.g).then(e=>function(e,t,n){if(e.querySelector(".word-notfound"))return u(n);const r=e.querySelector(".word-suggestions");if(r)return t.related?{result:{type:"related",langCode:n,content:Object(o.d)(s,r)}}:u(n);let a="";const c=e.querySelector(".word-details-multi .word-details-header");c&&(c.querySelectorAll(".word-details-tab").forEach((e,t)=>{e.dataset.categories=String(t)}),a=Object(o.d)(s,c));e.querySelectorAll(".word-audio").forEach(e=>{e.replaceWith(Object(i.d)(e.dataset.src))});const l=[...e.querySelectorAll(".word-details-pane")].map((e,t)=>`\n <div class="word-details-pane${0===t?" word-details-pane-active":""}">\n <div class="word-details-pane-header">\n ${Object(o.d)(s,e,".word-details-pane-header")}\n </div>\n <div class="word-details-pane-content">\n ${Object(o.d)(s,e,".word-details-pane-content")}\n </div>\n </div>\n `);return l.length>0?{result:{type:"lex",header:a,entries:l,langCode:n}}:u(n)}(e,n.dicts.all.hjdict.options,l))};function u(e){return{result:{type:"related",langCode:e,content:'<p style="text-align:center;">No Result</p>'}}}function d(e,t){return/\u00fc/i.test(e)?t.dicts.all.hjdict.options.uas:/\u00e4/i.test(e)?t.dicts.all.hjdict.options.aas:/\u00e9/i.test(e)?t.dicts.all.hjdict.options.eas:Object(r.f)(e)?"fr":Object(r.d)(e)?"de":Object(r.i)(e)?"es":Object(r.e)(e)?t.dicts.all.hjdict.options.engas:Object(r.g)(e)?"jp/jc":Object(r.h)(e)?"kr":Object(r.c)(e)?t.dicts.all.hjdict.options.chsas:"w"}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n="";if("number"==typeof e)for(let t=0;t<e;t++){n+=Math.floor(10*Math.random())%2==0?"x":"y"}else n=e||"xxxxxxxx-xyxx-yxxx-xxxy-xxyxxxxxxxxx";return("number"!=typeof t||t<2||t>36)&&(t=16),n.replace(/[xy]/g,(function(e){const n=Math.random()*t|0;return("x"===e?n:3&n|8).toString(t)}))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/34.612302b4.js b/plugins/saladict-ztools/ext-saladic/assets/34.612302b4.js deleted file mode 100644 index f97aefd9..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/34.612302b4.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[34],{116:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),o=r(30);function i(e,t){var r=Object(o.e)(o.a),i=Object(o.e)((function(){return e(r.current)}));return[Object(n.useRef)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.current.next(t?t(e):e[0])})).current,i.current]}},119:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return f}));var n=r(0),o=r.n(n),i=r(389),a=r(46);const c=o.a.createContext(async()=>{}),s=e=>{const[t,r]=Object(n.useState)(()=>"string"==typeof e.src?e.src:"#"),a=Object(n.useContext)(c);if(Object(i.a)(()=>{r("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const s=e.width||e.height||"1.2em",u=e.height||s;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:s,height:u},onClick:async n=>{if("#"===t&&"function"==typeof e.src){n.stopPropagation(),n.preventDefault();const t=await e.src();a(t),r(t)}}})};t.c=o.a.memo(s);const u=e=>{const{onPlayStart:t,...r}=e,i=Object(n.useCallback)(e=>{if(e.target&&"A"===e.target.tagName&&e.target.href&&"#"!==e.target.href&&e.target.classList&&e.target.classList.contains("saladict-Speaker")){e.preventDefault(),e.stopPropagation();const r=e.target;r.classList.add("isActive"),Object(a.b)([Object(a.d)(1e3),t(r.href)]).then(()=>{r.classList.remove("isActive")})}},[t]);return o.a.createElement(c.Provider,{value:t},o.a.createElement("div",{onClick:i,...r}))},l=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},f=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""},182:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(30),o=r(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object(o.useRef)(e);r.current=e;var i=Object(n.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=r.current[0],t=e.subscribe({next:function(t){if(e===r.current[0])return r.current[1]?r.current[1](t):void 0},error:function(t){if(e===r.current[0]){if(r.current[2])return c.current=null,r.current[2](t);c.current=t,i()}},complete:function(){if(e===r.current[0])return r.current[3]?r.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"a",(function(){return s})),r.d(t,"e",(function(){return u})),r.d(t,"d",(function(){return l}));var n=r(0),o=r(91),i=r(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function s(){return new o.a}function u(e){var t=Object(n.useRef)(!0),r=Object(n.useRef)(null);return t.current&&(t.current=!1,r.current=e()),r}function l(){var e=Object(n.useState)(0)[1];return Object(n.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect},389:function(e,t,r){"use strict";var n=r(0);t.a=function(e,t){var r=Object(n.useRef)(!0);Object(n.useEffect)((function(){if(!r.current)return e();r.current=!1}),t)}},5:function(e,t,r){"use strict";r.d(t,"h",(function(){return i})),r.d(t,"g",(function(){return a})),r.d(t,"b",(function(){return c})),r.d(t,"f",(function(){return s})),r.d(t,"d",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"i",(function(){return p})),r.d(t,"j",(function(){return m})),r.d(t,"a",(function(){return h})),r.d(t,"c",(function(){return y}));var n=r(507),o=r.n(n);r(0),r(116),r(182),r(10),r(371),r(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await r.e(109).then(r.bind(null,1321))).chsToChz:null}function s(e,...t){if(!e)return"";let r="",n=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?r=t[e]:"function"==typeof t[e]&&(n=t[e]);const o=r?e.querySelector(r):e;if(!o)return"";const i=o.textContent||"";return n?n(i):i}const u={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function l(e,{mode:t="innerHTML",selector:r,transform:n,host:i,config:a=u}={}){const c=r?e.querySelector(r):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const s=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),l=s.firstChild?s.firstChild[t]:"";return n?n(l):l}function f(e,t,r={}){return l(t,"string"==typeof r?{selector:r,host:e,mode:"innerHTML"}:{...r,host:e,mode:"innerHTML"})}function d(e,t,r={}){return l(t,"string"==typeof r?{selector:r,host:e,mode:"outerHTML"}:{...r,host:e,mode:"outerHTML"})}function p(e,t){const r=e.querySelector(t);r&&r.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,r){e.endsWith("/")&&(e=e.slice(0,-1));const n=e.startsWith("https")?"https:":"http:",o=t.getAttribute(r);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?n+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,r){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),r=e(["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"]),n=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),s=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),u=a(["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"]),l=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var r=t.length;r--;){var n=t[r];if("string"==typeof n){var o=n.toLowerCase();o!==n&&(Object.isFrozen(t)||(t[r]=o),n=o)}e[n]=!0}return e}function h(e){var t={},r=void 0;for(r in e)p(f,e,[r])&&(t[r]=e[r]);return t}p||(p=function(e,t,r){return e.apply(t,r)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x=y(/^(?:\w+script|data):/i),O=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function w(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var E=("undefined"!=typeof Reflect&&Reflect).apply,_=Array.prototype.slice,L=Object.freeze,R=function(){return"undefined"==typeof window?null:window};E||(E=function(e,t,r){return e.apply(t,r)});var k=function(e,t){if("object"!==(void 0===e?"undefined":S(e))||"function"!=typeof e.createPolicy)return null;var r=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=t.currentScript.getAttribute("data-tt-policy-suffix"));var n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,M=a.document,N=a.DocumentFragment,j=a.HTMLTemplateElement,C=a.Node,D=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,q=a.DOMParser,P=a.TrustedTypes;if("function"==typeof j){var U=M.createElement("template");U.content&&U.content.ownerDocument&&(M=U.content.ownerDocument)}var W=k(P,d),B=W?W.createHTML(""):"",G=M,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,$=G.createDocumentFragment,X=d.importNode,Z={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==M.documentMode;var J=g,Q=v,ee=b,te=T,re=x,ne=O,oe=A,ie=null,ae=m({},[].concat(w(t),w(r),w(n),w(o),w(i))),ce=null,se=m({},[].concat(w(c),w(s),w(u),w(l))),ue=null,le=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,Te=!1,Ae=!1,xe=!1,Oe=!0,Se=!0,we=!1,Ee={},_e=m({},["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"]),Le=m({},["audio","video","img","source","image"]),Re=null,ke=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Me=null,Ne=M.createElement("form"),je=function(e){Me&&Me===e||(e&&"object"===(void 0===e?"undefined":S(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):se,Re="ADD_URI_SAFE_ATTR"in e?m(h(ke),e.ADD_URI_SAFE_ATTR):ke,ue="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},le="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Ee="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,xe=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,Oe=!1!==e.SANITIZE_DOM,Se=!1!==e.KEEP_CONTENT,we=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Ee&&(ie=m({},[].concat(w(i))),ce=[],!0===Ee.html&&(m(ie,t),m(ce,c)),!0===Ee.svg&&(m(ie,r),m(ce,s),m(ce,l)),!0===Ee.svgFilters&&(m(ie,n),m(ce,s),m(ce,l)),!0===Ee.mathMl&&(m(ie,o),m(ce,u),m(ce,l))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===se&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Re,e.ADD_URI_SAFE_ATTR),Se&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete ue.tbody),L&&L(e),Me=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},De=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,r=void 0;if(ve)e="<remove></remove>"+e;else{var n=e.match(/^[\s]+/);(r=n&&n[0])&&(e=e.slice(r.length))}if(p)try{t=(new q).parseFromString(e,"text/html")}catch(e){}if(y&&m(ue,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&r&&t.body.insertBefore(M.createTextNode(r),t.body.childNodes[0]||null),Y.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return V.call(e.ownerDocument||e,e,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,(function(){return D.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===C?"undefined":S(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":S(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},qe=function(e,t,r){Z[e]&&Z[e].forEach((function(e){e.call(f,t,r,Me)}))},Pe=function(e){var t=void 0;if(qe("beforeSanitizeElements",e,null),Fe(e))return Ce(e),!0;var r=e.nodeName.toLowerCase();if(qe("uponSanitizeElement",e,{tagName:r,allowedTags:ie}),("svg"===r||"math"===r)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[r]||ue[r]){if(Se&&!_e[r]&&"function"==typeof e.insertAdjacentHTML)try{var n=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(n):n)}catch(e){}return Ce(e),!0}return"noscript"===r&&/<\/noscript/i.test(e.innerHTML)||"noembed"===r&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),qe("afterSanitizeElements",e,null),!1)},Ue=function(e,t,r){if(Oe&&("id"===t||"name"===t)&&(r in M||r in Ne))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||le[t])return!1;if(Re[t]);else if(oe.test(r.replace(ne,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==r.indexOf("data:")||!Le[e])if(pe&&!re.test(r.replace(ne,"")));else if(r)return!1}return!0},We=function(e){var t=void 0,r=void 0,n=void 0,o=void 0,i=void 0;qe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var s=t=a[i],u=s.name,l=s.namespaceURI;if(r=t.value.trim(),n=u.toLowerCase(),c.attrName=n,c.attrValue=r,c.keepAttr=!0,qe("uponSanitizeAttribute",e,c),r=c.attrValue,"name"===n&&"IMG"===e.nodeName&&a.id)o=a.id,a=E(_,a,[]),De("id",e),De(u,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===n&&"file"===r&&c.keepAttr&&(ce[n]||!le[n]))continue;"id"===u&&e.setAttribute(u,""),De(u,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(_e).join("|")+")","i").test(r))De(u,e);else{he&&(r=(r=r.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Ue(d,n,r))try{l?e.setAttributeNS(l,u,r):e.setAttribute(u,r),f.removed.pop()}catch(e){}}}qe("afterSanitizeAttributes",e,null)}},Be=function e(t){var r=void 0,n=ze(t);for(qe("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)qe("uponSanitizeShadowNode",r,null),Pe(r)||(r.content instanceof N&&e(r.content),We(r));qe("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var r=void 0,n=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===S(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||je(t),f.removed=[],we);else if(e instanceof C)1===(n=(r=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?r=n:r.appendChild(n);else{if(!be&&!he&&!ye&&xe&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(r=He(e)))return be?null:B}r&&ve&&Ce(r.firstChild);for(var s=ze(we?e:r);o=s.nextNode();)3===o.nodeType&&o===i||Pe(o)||(o.content instanceof N&&Be(o.content),We(o),i=o);if(i=null,we)return e;if(be){if(Te)for(c=$.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return Ae&&(c=X.call(d,c,!0)),c}var u=ye?r.outerHTML:r.innerHTML;return he&&(u=(u=u.replace(J," ")).replace(Q," ")),W&&xe?W.createHTML(u):u},f.setConfig=function(e){je(e),ge=!0},f.clearConfig=function(){Me=null,ge=!1},f.isValidAttribute=function(e,t,r){Me||je({});var n=e.toLowerCase(),o=t.toLowerCase();return Ue(n,o,r)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));r(507);var n=r(131),o=r.n(n);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(3),o=r(7);function i(){}var a=r(45);function c(e,t,r){return function(n){return n.lift(new s(e,t,r))}}var s=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.nextOrObserver,this.error,this.complete))},e}(),u=function(e){function t(t,r,n,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=n||i,c._tapComplete=o||i,Object(a.a)(r)?(c._context=c,c._tapNext=r):r&&(c._context=r,c._tapNext=r.next||i,c._tapError=r.error||i,c._tapComplete=r.complete||i),c}return n.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},835:function(e,t,r){"use strict";r.r(t),r.d(t,"getSrcPage",(function(){return c})),r.d(t,"search",(function(){return u}));var n=r(61),o=r(5),i=r(119);const a=e=>"https://www.lexico.com/definition/"+e.trim().replace(/\s+/g,"_"),c=a,s="https://www.lexico.com",u=(e,t,r,c)=>{const{options:u}=r.dicts.all.lexico;return Object(n.a)(a(e)).catch(o.g).then(e=>{const t=e.querySelector(".no-exact-matches");if(t){if(u.related){const e=t.querySelectorAll(".similar-results .search-results li a");if(e.length>0){return{result:{type:"related",list:[...e].map(e=>({href:Object(o.c)(s,e,"href"),text:Object(o.f)(e)}))}}}}return Object(o.h)()}return function(e){const t=e.querySelector(".entryWrapper");if(t){let e;return Object(o.i)(t,".breadcrumbs"),Object(o.j)(t,".socials"),Object(o.j)(t,".homographs"),Object(o.j)(t,".associatedTranslation"),t.querySelectorAll(".entryHead header > h1").forEach(e=>{var t;(null===(t=e.textContent)||void 0===t?void 0:t.trim().startsWith("Meaning of"))&&e.remove()}),t.querySelectorAll('a[data-value="view synonyms"]').forEach(e=>Object(o.a)(e)),[...t.querySelectorAll(".headwordAudio"),...t.querySelectorAll(".speaker")].forEach(t=>{const r=t.querySelector("audio"),n=r&&Object(o.c)(s,r,"src");t.replaceWith(Object(i.d)(n)),n&&!e&&(e=n)}),{result:{type:"lex",entry:Object(o.d)(s,t)},audio:e?{uk:e}:void 0}}return Object(o.h)()}(e)})}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/58.5a43db16.js b/plugins/saladict-ztools/ext-saladic/assets/34.8fa3a051.js similarity index 92% rename from plugins/saladict-ztools/ext-saladic/assets/58.5a43db16.js rename to plugins/saladict-ztools/ext-saladic/assets/34.8fa3a051.js index 2f86344e..c426b697 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/58.5a43db16.js +++ b/plugins/saladict-ztools/ext-saladic/assets/34.8fa3a051.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[58],{1333:function(a,n,e){(n=e(221)(!1)).push([a.i,'.MachineTrans-Text .saladict-Speaker{position:absolute;left:0;top:2px;margin:0}.MachineTrans-Text summary{cursor:pointer}.MachineTrans-Lines{position:relative;margin:.5em 0;padding-left:1.5em}.MachineTrans-Lines p{margin:.3em 0}.MachineTrans-Lines-collapse{overflow:hidden;position:relative}.MachineTrans-Lines-collapse::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;background:linear-gradient(90deg,rgba(255,255,255,0) 50%,var(--color-background) 90%);pointer-events:none}.MachineTrans-Lines-collapse button{height:1.5em;padding:0;text-align:start;word-break:keep-all;white-space:nowrap;font-size:1em;font-weight:400;font-family:inherit;color:currentColor;cursor:pointer}.MachineTrans-lang-ar,.MachineTrans-lang-ara,.MachineTrans-lang-az,.MachineTrans-lang-fa,.MachineTrans-lang-he,.MachineTrans-lang-iw,.MachineTrans-lang-ku,.MachineTrans-lang-ug,.MachineTrans-lang-ur{direction:rtl!important}.MachineTrans-lang-ar.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ara.MachineTrans-Lines-collapse::after,.MachineTrans-lang-az.MachineTrans-Lines-collapse::after,.MachineTrans-lang-fa.MachineTrans-Lines-collapse::after,.MachineTrans-lang-he.MachineTrans-Lines-collapse::after,.MachineTrans-lang-iw.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ku.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ug.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ur.MachineTrans-Lines-collapse::after{background:linear-gradient(270deg,rgba(255,255,255,0) 50%,var(--color-background) 90%)}.MachineTrans-has-rtl{text-align:right}.MachineTrans-has-rtl .MachineTrans-Lines{padding-left:0;padding-right:1.5em}.MachineTrans-has-rtl .saladict-Speaker{left:auto;right:0}@font-face{font-family:"UKIJ Tuz Basma";src:url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff2) format("woff2"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff) format("woff"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.ttf) format("truetype"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.svg#UKIJTuzBasma-Bold) format("svg");font-style:normal}.MachineTrans-lang-ug{font-family:"UKIJ Tuz Basma"!important}',""]),a.exports=n},670:function(a,n,e){var r=e(1333);a.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[34],{1379:function(a,n,e){(n=e(226)(!1)).push([a.i,'.MachineTrans-Text .saladict-Speaker{position:absolute;left:0;top:2px;margin:0}.MachineTrans-Text summary{cursor:pointer}.MachineTrans-Lines{position:relative;margin:.5em 0;padding-left:1.5em}.MachineTrans-Lines p{margin:.3em 0}.MachineTrans-Lines-collapse{overflow:hidden;position:relative}.MachineTrans-Lines-collapse::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;background:linear-gradient(90deg,rgba(255,255,255,0) 50%,var(--color-background) 90%);pointer-events:none}.MachineTrans-Lines-collapse button{height:1.5em;padding:0;text-align:start;word-break:keep-all;white-space:nowrap;font-size:1em;font-weight:400;font-family:inherit;color:currentColor;cursor:pointer}.MachineTrans-lang-ar,.MachineTrans-lang-ara,.MachineTrans-lang-az,.MachineTrans-lang-fa,.MachineTrans-lang-he,.MachineTrans-lang-iw,.MachineTrans-lang-ku,.MachineTrans-lang-ug,.MachineTrans-lang-ur{direction:rtl!important}.MachineTrans-lang-ar.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ara.MachineTrans-Lines-collapse::after,.MachineTrans-lang-az.MachineTrans-Lines-collapse::after,.MachineTrans-lang-fa.MachineTrans-Lines-collapse::after,.MachineTrans-lang-he.MachineTrans-Lines-collapse::after,.MachineTrans-lang-iw.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ku.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ug.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ur.MachineTrans-Lines-collapse::after{background:linear-gradient(270deg,rgba(255,255,255,0) 50%,var(--color-background) 90%)}.MachineTrans-has-rtl{text-align:right}.MachineTrans-has-rtl .MachineTrans-Lines{padding-left:0;padding-right:1.5em}.MachineTrans-has-rtl .saladict-Speaker{left:auto;right:0}@font-face{font-family:"UKIJ Tuz Basma";src:url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff2) format("woff2"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff) format("woff"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.ttf) format("truetype"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.svg#UKIJTuzBasma-Bold) format("svg");font-style:normal}.MachineTrans-lang-ug{font-family:"UKIJ Tuz Basma"!important}',""]),a.exports=n},709:function(a,n,e){var r=e(1379);a.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/61.8ed70de6.js b/plugins/saladict-ztools/ext-saladic/assets/35.0fda0bbf.js similarity index 99% rename from plugins/saladict-ztools/ext-saladic/assets/61.8ed70de6.js rename to plugins/saladict-ztools/ext-saladic/assets/35.0fda0bbf.js index a1cad718..1ec2a0fb 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/61.8ed70de6.js +++ b/plugins/saladict-ztools/ext-saladic/assets/35.0fda0bbf.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[61],{1336:function(t,o,e){(o=e(221)(!1)).push([t.i,'.dictCambridge-Header{display:flex;align-items:baseline}.dictCambridge-Title{font-size:1.5em;margin-right:.5em}.dictCambridge-Entry{margin-bottom:1em}.dictCambridge-Entry a{color:inherit}#d-cambridge-entry-related ul{padding-left:1em}#d-cambridge-entry-related ul li{list-style-type:disc}#d-cambridge-entry-related ul li a{color:#f9690e}.dimg{text-align:center}.dimg img{display:inline-block}.inline{margin-left:0;list-style:none}.inline li{display:inline;margin:0 15px 0 0}.unstyled,.unstyled-nest li ul{margin-left:0;padding:0;list-style:none}.unstyled li{margin:0 0 5px 0}.unstyled-nest li ul{margin-top:5px}.link-list{margin:5px 0 10px}.link-list a{font-weight:700;text-decoration:none}.link-list a:hover{text-decoration:underline}.divided li{margin:0;padding:20px 5px;border-bottom:solid 1px #e3e3e8}.divided li:first-child{padding-top:10px}.divided li:last-child{border-width:0}.checklist{margin-left:0;padding-left:25px;list-style:none}.checklist li:before{font-weight:300;content:"";position:absolute;margin-left:-25px;color:#d1a14c}.tiles__tile{float:left;width:50%;padding:0 2px}.tiles__tile label{float:left;width:100%;margin-bottom:10px;padding:10px 0;background:#fff;text-align:center;border:solid 3px #e0e0e5;cursor:pointer;position:relative}.tiles__tile input[type=checkbox],.tiles__tile input[type=radio]{display:none}.tiles__tile input[type=checkbox]:checked+label,.tiles__tile input[type=radio]:checked+label{background:#d0a44c;border-color:#d0a44c}.tiles__tile input[type=checkbox]:checked+label:before,.tiles__tile input[type=radio]:checked+label:before{content:"";font-weight:300;padding-right:7px;color:#fff;font-size:.9em}.form .tiles{margin-bottom:0}.with-el{position:relative}.with-el__el{position:absolute;top:0;right:0}.with-el__el--l{right:auto;left:0}.with-el__el--b{top:auto;bottom:0}.with-el__el--icons{top:-5px;vertical-align:0}.with-icons__content{display:inline-block;padding:5px 0}.with-icons__icons{float:right}.trend{position:relative;display:inline-block;vertical-align:1px;color:rgba(36,46,78,.65);text-transform:uppercase;font-weight:700;font-size:.6em}.trend i{color:#0096ac;font-size:1.75em}.trend--down i{color:#e84427}.prefix{display:inline-block;margin-right:5px;width:40px;color:#a9b3d0;font-size:2em;vertical-align:-8px;text-align:center}.divided .prefix{margin-left:-5px}.prefix-float .prefix{float:left;display:block}.prefix-float .prefix-item{overflow:hidden;display:block}.prefix-block>*{position:relative;margin:0 0 5px;padding:10px 10px 10px 50px;background:#eef1f5}.prefix-block .prefix{position:absolute;top:0;left:0;padding-top:10px;height:100%;font-size:1em;color:#fff}.progress{position:relative;width:95px;height:95px}.progress svg{position:absolute;top:0;left:0}.progress__indicator{position:relative;border:solid 8px #ccd2e1;width:100%;height:100%;border-radius:50%}.progress__indicator__done{background:#d0a44c}.progress__label{position:absolute;top:50%;left:50%;height:40px;line-height:40px;width:65px;margin:-20px 0 0 -32.5px;text-align:center;font-size:1.5em;color:#848fae}.cycler{position:relative;padding:0 20px;background:#11326f;color:#fff}.cycler>div{overflow:hidden;width:100%;padding:0 20px 10px}.cycler__nav{position:absolute;top:10px;left:7px;height:40px;line-height:32px;padding:0 15px;text-align:center;color:#fff;font-size:2.5em}.cycler__nav--next{left:auto;right:7px}.cycler__items{overflow:hidden;white-space:nowrap;width:100%}.cycler__items>*{white-space:normal;display:inline-block;width:20%;text-align:center}.cycler__items.unstyled>li{margin:0}.cycler__items a{color:#acb7c5;font-size:2.8125em;line-height:1.3em}.cycler__items .on a,.cycler__items a.on,.cycler__items a:hover{color:#fff}.contain--pad{padding:15px 0}.nocontain{margin:0 -10px}.h1.hw,h1.hw{margin-bottom:10px;font-size:1em;font-weight:700}.definition-src{margin-bottom:40px}.di{margin-bottom:10px}.entry-body__el--smalltop{padding-top:10px}.entry-body__el:last-child,.entry-box__el:last-child{margin-bottom:10px}.mod.entry .h3,.mod.entry h3{font-size:1em}.di-head{padding:12px 20px;border-left:solid 1px #e6e6eb;border-right:solid 1px #e6e6eb}.di-head .h2,.di-head h2{font-size:1em}.di-head .see-all-translations{margin-left:1px;display:table;line-height:22px}.di-title{font-size:1.2em;font-weight:700;line-height:1.3}.normal-entry .di-title{line-height:1.3em}.di-head.normal-entry{position:relative;background:#fff;margin-bottom:20px;padding:0;border-width:0}.di .pos-header{position:relative;margin:5px 0 15px;color:rgba(17,50,111,.91)}.di .inf,.di .irreg-infls{color:#292929}.di .pos-head .pos-info{margin:0 0 20px}.cdo-section-title-hw{display:inline;word-wrap:break-word}.cdo-section-title-hw .headword,.di-head.normal-entry .cdo-section-title-hw{display:block;margin:0 0 10px;font-size:2.5em;line-height:1.075em;font-weight:700}.di-head.normal-entry .cdo-section-title-hw{margin:0}.HeadwordCtn .GeographicalUsage,.cdo-section-title-hw .posgram,.di-head.normal-entry .posgram,.pos-head .pos-info .posgram{font-style:italic;color:#444}.gcs{vertical-align:-1px}.pos-head .pos-info .posgram{margin-right:5px}.di-head.normal-entry .pron,.pos-head .pos-info .pron{margin-left:5px}.epp-xref,.freq{margin-right:3px;padding:2px 5px;color:#fff;font-weight:700;font-size:.8em;min-width:14px;text-align:center;background-color:#444;border-radius:8px}.freq{display:none}.cdo-topic{font-weight:700}.extraexamps li[class=eg]{position:relative;margin-left:1.2em;list-style-type:disc}.runon-info .posgram .pos{color:#555}.i{font-style:italic}.lab{display:inline;font-variant:small-caps}.lu{font-weight:700}.superentry .irreg-infls,.uk,.us{margin-left:5px}.uk>.region,.us>.region{text-transform:uppercase;color:#e84427;font-size:1em;font-weight:700}.superentry .pron{font-size:1.063em}.sense-block .hw,.sense-block .phrase{font-weight:700;font-size:1.1em}.sense-block .pos{font-style:italic}.gram{color:#555;margin-right:3px}.gram a{color:inherit}.sense-block .guideword{margin-left:8px}.sense-block .guideword span{vertical-align:-1px}.emphasized .gram{font-style:normal}.pos-head .pos-info .fcdo{font-size:14px;vertical-align:-2px}.fav-entry{width:22px;height:22px}.fav-entry .fcdo{line-height:22px}.def-block{position:relative}.def-block .fav-entry{position:absolute;top:2px;left:0}.phrase-block .def-block .fav-entry{top:4px}.entry-divide{position:relative;border-top:solid 1px #e6e6eb;border-bottom:solid 1px #e6e6eb;height:20px}.results.link-list a{font-weight:400}.results.link-list em{font-style:italic;color:#242b4e}.results.link-list a:hover{text-decoration:none}.results.link-list a:hover b{text-decoration:underline}.feature-w,.feature-w-big{font-size:1.25em;line-height:1em;font-weight:400}.feature-w-big{font-size:2.2em;line-height:.9em}.resp{display:none}.resp.open{display:block}.oflow-hide{overflow:hidden}.center{text-align:center}.left{text-align:left}.right{text-align:right}.lower{text-transform:lowercase}.upper{text-transform:uppercase}.clr{clear:both}.clr-left{clear:left}.clr-right{clear:right}.f-left{float:left}.f-right{float:right}.title{padding-bottom:5px;border-bottom:solid 1px #e6e6eb}.fade{opacity:.7}.hide{display:none}.hide.open{display:block}.hide-txt{text-indent:100%;white-space:nowrap;overflow:hidden}.hidden{visibility:hidden}.flush,div.flush{margin-bottom:0}.semi-flush,.tight{margin-bottom:5px}.nudge-top{margin-top:2px}.normal-top{margin-top:15px}.normal-base{margin-bottom:15px}.space-top{margin-top:5px}.space-base{margin-bottom:10px}.space-both{margin-top:5px;margin-bottom:10px}.spaced{margin-bottom:20px}.spaced-top{margin-top:20px}.spaced-out{margin:5px 0 25px}.spaced-big{margin-bottom:30px}.spaced-big-top{margin-top:30px}.pad{padding:0 5px}.pad-indent{padding-left:1em}.pad-indent-both{padding-left:1em;padding-right:1em}.pad-all{padding:1em}.pad-all-sml{padding:.5em}.pad-extra{padding:0 .5em}.pad-l-flush{padding-left:0}.pad-l-sml{padding-left:5px}.pad-l{padding-left:10px}.pad-l-lrg{padding-left:15px}.pad-r-flush{padding-right:0}.pad-r-sml{padding-right:5px}.pad-r{padding-right:10px}.pad-r-lrg{padding-right:15px}.pad-t-flush{padding-top:0}.pad-t-sml{padding-top:5px}.pad-t{padding-top:10px}.pad-t-lrg{padding-top:15px}.pad-b-flush{padding-bottom:0}.pad-b-sml{padding-bottom:5px}.pad-b{padding-bottom:10px}.pad-b-lrg{padding-bottom:15px}.pad-sides{padding-left:10px;padding-right:10px}.pad-sides-sml{padding-left:5px;padding-right:5px}.underline{text-decoration:underline}.fig-frame{width:100%;text-align:center}.fig-frame img{border:solid 6px #fff}.leader{font-size:1.25em;line-height:1.4em}.meta{color:#686868}.standout{color:#242e4e}.pointer{cursor:pointer}.small{font-size:.875em}.smaller{font-size:.8em}.bigger{font-size:1.125em}.light{color:#888}.bg-h:after{content:" ";position:absolute;top:0;left:0;height:100%;width:0;z-index:1}.accessibility{overflow:hidden;position:absolute;top:-9999px;left:-9999px;float:none;width:auto;margin:0;padding:0}.cdo-search:before,.clrd:before,.contain:before,.stacks:before,.tabs:before,.tabs__content>.block-wrap:before,.tiles:before{content:" ";display:table}.cdo-search:after,.clrd:after,.contain:after,.stacks:after,.tabs:after,.tabs__content>.block-wrap:after,.tiles:after{content:" ";display:table;clear:both}.dropdown__box{z-index:9000}.site-msg{z-index:9999}.english-french .pad-indent .runon.pad-indent,.french-english .pad-indent .runon.pad-indent{margin-left:-30px}.english-french .runon-body.pad-indent,.french-english .runon-body.pad-indent{margin-left:-20px}.relativDiv{position:relative}.divBlock{display:block}.img-thumb{margin-bottom:10px}a.a--b{font-weight:700!important}a.a--none,a.a--rev{text-decoration:none!important}a.a--rev:hover{text-decoration:underline!important}.label,label{display:block;margin:0;padding:11px 0;font-weight:700}input.text,input[type=email],input[type=password],input[type=text],select,textarea{padding:11px;width:100%;border:1px solid #ddd;background:#f1f1f1;box-sizing:border-box;border-radius:2px;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.1);color:#444}input.text,input[type=email],input[type=password],input[type=text]{height:44px}.input-wrap{display:inline-block;width:100%;vertical-align:bottom}.form div em{display:block;margin:5px 0 20px;color:var(--color-font-grey)}.form>div{clear:both;margin-bottom:10px}.form input.btn{margin:20px 0 10px}.form__inline label{float:none;display:inline;padding:0 10px 0 0;font-weight:400}.form__inline input{float:left;clear:left;margin:3px 5px 5px 0;width:auto;border:0 none}.form__list{display:inline-block;line-height:1.3em;padding-top:11px}.form--restrict input.text,.form--restrict input[type=email],.form--restrict input[type=password],.form--restrict input[type=text],.form--restrict select,.form--restrict textarea{max-width:450px}.text--ico-key input.text,.text--ico-key select,.text--ico-key textarea{padding-right:40px}.csstransforms3d .point{display:block!important;position:absolute;top:0;left:0;height:10px;width:10px;background:#fff;transform:rotate(45deg)}.csstransforms3d .tiles--pointer input[type=radio]:checked+label:after{content:"";position:absolute;bottom:-8px;left:50%;height:16px;width:16px;margin-left:-8px;background:#d0a44c;transform:rotate(45deg)}.btn{display:inline-block;padding:10px 12px;text-align:center;color:#fff;text-decoration:none;line-height:1em;cursor:pointer;border-radius:2px}.btn--impact{background:#caa54c;border-color:#caa54c;color:#111;font-weight:700}.btn--impact:hover{background:#b79441}.btn--impact2{padding:11px 13px;border-width:0;background:rgba(0,0,0,.34);font-weight:700}.btn--impact2:hover{background:rgba(0,0,0,.45)}.btn--alt{background:#dde2f0;border-color:#dde2f0}.btn--alt:hover{background:#c7cee2}.btn--white{background:#fff;border-color:#fff}.btn--white:hover{background:#f4f4f4}.btn--alt,.btn--alt2,.btn--white{color:#292929}.btn--lrg{font-size:1.1em;font-weight:700;padding:12px 20px}.btn--small{font-size:.875em}.btn--bold,input.btn{font-weight:700}.btn--dropdown{padding-right:30px}.btn--dropdown-pad{padding-right:40px}.btn--dropdown:after{position:absolute;content:"";top:50%;right:10px;margin-top:-8px;font-size:16px;line-height:1em;color:#d0a44c;font-weight:300}.btn--dropdown.on:after{content:""}.btn--options{font-size:.8em;padding:10px 30px 10px 10px;background:#dde2f0;color:#292929;border:0;border-radius:0}.btn--options:hover{background:#dde2f0}.btn--options:after{font-size:.9em;margin-top:-5px}.btn--plus.on{border-radius:2px 2px 0 0}.btn--plus.on .fcdo:before{content:""}.btn--input{height:44px;padding:12px 16px;border-radius:0 2px 2px 0}.btn--input--nudge{padding-bottom:13px}.btn--translate:before{content:" ";position:absolute}.btn--translate{position:relative;padding:12px 12px 12px 43px}.btn--translate:before{width:31px;height:31px;top:4px;left:10px;background-position:-550px 0}.btn--social{display:block;border:0;padding:12px;margin:0 auto 10px;font-weight:700;max-width:300px}.btn--social .fcdo{font-size:1.2em;padding-right:5px}.btn .fcdo{color:inherit}.btn--alt .fcdo{color:#354da5}.btn--small .fcdo{font-size:1.14286em}.btn--ico-l{position:relative;padding-left:33px}.btn--ico-l--extra-pad{padding-left:40px}.btn--ico-l .fcdo{position:absolute;top:50%;left:10px;height:100%;margin-top:-12px;line-height:100%;font-size:22px}.btn--ico-l .fcdo-quiz{left:10px;margin-top:-13px;font-size:26px}.cols,.cols__col{box-sizing:border-box}.cols .cols__col:first-child{margin-left:0}.cols--icons .cols__col{padding:70px 0 20px}.txt-block{display:block;font-weight:400;box-sizing:border-box;text-decoration:none;border-bottom:1px solid rgba(199,110,6,.5)}.txt-block--shallow{padding:4px 20px}.txt-block--padder{padding:15px 20px}.txt-block--alt3{background:#e84427;color:#fff}.txt-block--impact{background:#d0a44c;color:#111}.txt-block--padl{padding-left:70px}.txt-block--padr{padding-right:70px}.txt-block--alt .h2,.txt-block--alt .h3,.txt-block--alt .h4,.txt-block--alt .h5,.txt-block--alt h2,.txt-block--alt h3,.txt-block--alt h4,.txt-block--alt h5,.txt-block--alt2 .h2,.txt-block--alt2 .h3,.txt-block--alt2 .h4,.txt-block--alt2 .h5,.txt-block--alt2 h2,.txt-block--alt2 h3,.txt-block--alt2 h4,.txt-block--alt2 h5{color:inherit}.txt-block--alt .h3 span,.txt-block--alt h3 span{color:#a7b5c9}a.txt-block:hover span{text-decoration:underline}a.txt-block{font-weight:700}a.txt-block--impact .fcdo{color:#303076}a.txt-block:hover{opacity:.9}.txt-block .with-el__el{top:13px;right:20px}.txt-block .with-el__el--icons{top:8px}.txt-block.with-icons{padding:8px 20px}.txt-block.item-tag{position:relative}.txt-block.item-tag .h2,.txt-block.item-tag .h3,.txt-block.item-tag .h4,.txt-block.item-tag .h5,.txt-block.item-tag h2,.txt-block.item-tag h3,.txt-block.item-tag h4,.txt-block.item-tag h5,.txt-block.item-tag p{margin-bottom:0}.txt-block .item-tag__tag--clear{background:0 0}.cols__col--product{position:relative}.cols__col--product-img{height:100px;margin:0 0 15px;position:absolute;top:0;left:0}.cols__col--product .cols__col--product-img{float:left;position:initial;margin-right:1em}.section .smaller,ul.accord>li>ul li a span.alt{position:relative;top:-.1em}.spr--ico-key-translation:before{background-position:-114px -239px;width:47px;height:47px}.trends--egt .title{padding-bottom:0;border-bottom:0}.circle.bg--more .bg--more,.circle.bg--more.open .fcdo-minus{display:inline-block}.bg--white{background:#fff}.bg--def,.bg--more{background:#e84427}.bg--di{background:#0091ff}.bg--fb{background:#3b5998}.bg--gp{background:#dc4e41}.bg--re{background:#ff4500}.bg--su{background:#eb4924}.bg--tu{background:#36465d}.bg--tw{background:#55acee}.helper{background:#bfcdea;padding:20px;margin-top:15px;color:#111;border-radius:3px;font-size:.875em}.helper .point{display:none;background:#bfcdea;top:0;left:50%;margin:-5px 0 0 -5px}a.helper{display:block;padding:11px 30px 11px 20px;text-decoration:none;font-weight:700;cursor:pointer}a.helper p{overflow:hidden;margin:0;white-space:nowrap;line-height:1em;text-overflow:ellipsis}a.helper:hover,a.helper:hover .point{background:#b2c0de}.circle.bg--more .fcdo-minus,.circle.bg--more.open .fcdo-plus,.translator_layout .content1,.translator_layout .content2{display:none}.translator_layout .translate-tool .virtualKeyboard{z-index:5}.kernerman-copyright-img{height:20px;margin-right:5px}.translator_layout .dropdown[data-selectbox-id=languageTo] .dropdown__box{right:0}.translator_layout .cdo-tpl-alt{margin-top:5px}.translator_layout .with-el{border-top:0}.translator_layout .translate-tool__from__input{border:0;resize:none;margin-bottom:30px;outline:0}.translator_layout .translate-tool__from__keyboard-trig{background:0 0}.translator_layout .translate-tool__from__keyboard-trig{bottom:0}.cdo-search__button,.cdo-search__dataset{float:right}.cdo-hdr__blocks--home .cdo-search.cdo-search-centered{float:none;width:100%}.cdo-hdr__profile a.hdr-btn .fcdo{opacity:.5;color:inherit}.cdo-hdr__profile a.hdr-btn.on .fcdo,.cdo-hdr__profile a.hdr-btn:hover .fcdo{opacity:1;color:inherit}.mod-browser .pos{color:gray;font-style:italic}.sense-block .cdo-cloud-content .pos{color:inherit}.dropdown--options .dropdown__box .btn{text-align:inherit;font-weight:inherit}.dropdown--options .dropdown__box a{margin-bottom:5px}.modal-confirm{max-width:400px;min-height:0}a{cursor:pointer}.mod-quiz .incorrect{color:red}.mod-quiz .correct{color:#2e8b57}.mod-quiz .virtualKeyboard{margin-top:1em}.mod-quiz .fcdo{color:inherit;vertical-align:top;font-size:1.33333333em;line-height:.75em}.mod-quiz .circle .fcdo{vertical-align:middle;font-size:inherit;line-height:inherit}#informational-content .circle-btn--sml{line-height:22px}#informational-content .txt-block{padding:11px 20px}#informational-content .txt-block--alt4{background:#bfcce9;padding:5px 20px}#informational-content pre.linktous{white-space:normal;word-break:break-word;overflow:hidden;background-color:#f0f0f0;font-size:1.2em;padding:.5em;margin:.25em 1px}.mod-quiz .questionary-resume-item{padding:10px 20px;margin-bottom:1em}.mod-quiz .questionary-resume{text-align:left}.di.english-chinese-simplified .trans,.di.english-chinese-traditional .trans{font-weight:400}div.entry_title .results .pos{font-style:italic;font-size:95%}.mod-define>a:before{content:""}.pronunciation-english.entry-body__el{min-height:0}.pronunciation-english .pronunciation-item{margin-bottom:10px}.pronunciation-english .sound{display:inline-block;background:#e84427;color:#fff;border-radius:3px;padding:2px 10px 0;text-transform:uppercase;font-weight:700;margin-right:5px}.pronunciation-english .sound .fcdo{font-size:1.5em;display:inline-block;margin:0 5px 3px 0}.lab{font-size:1.1em}.lab .region{text-transform:lowercase;font-style:normal}.pronVideos{max-width:560px;margin:0 auto 20px auto}.pronVideo{width:100%;height:315px;margin-bottom:10px}#browseGroups div{display:inline}.caro__el img{min-width:100%}#mobEntryDictName{text-transform:capitalize}body{padding-top:111px}.default_layout .cdo-search,.translator_layout .cdo-search{padding:7px 20px 6px}.wordlist-popup *{box-sizing:border-box}.wordlist-popup{position:absolute;bottom:25px;right:-10px;width:240px;margin:10px 0;z-index:6;background:#fff;border:1px solid #c5c5c5;box-shadow:0 0 15px rgba(0,0,0,.18);font-size:14px;text-align:left}.wordlist-popup:before{content:"";display:inline-block;position:absolute;right:11px;width:0;height:0;border-style:solid;bottom:-10px;border-width:10px 10px 0 10px;border-color:#c5c5c5 transparent transparent transparent}.wordlist-popup.under{top:25px;bottom:auto}.wordlist-popup.right{right:auto;left:0}.wordlist-popup.right:before{right:auto;left:0}.wordlist-popup.under:before{bottom:auto;top:-10px;border-width:0 10px 10px 10px;border-color:transparent transparent #c5c5c5 transparent}.wordlist-popup ul{max-height:200px;overflow-y:auto;overflow-x:hidden;margin:0}.wordlist-popup li{margin:0;clear:both}.wordlist-popup .login-button,.wordlist-popup .title{text-decoration:underline}.wordlist-popup .title{font-weight:700;padding:8px;border-bottom:1px solid #c5c5c5;margin:0;display:block}.wordlist-popup .spinner{display:table;margin:30px auto}.wordlist-popup .name{float:left;display:block;padding:8px;text-overflow:ellipsis;width:180px;overflow:hidden;white-space:nowrap}.wordlist-popup .name:hover{background:#d8d8ff;text-decoration:underline}.wordlist-popup .add{margin:3px 5px;float:right}.wordlist-popup .error{padding:8px;background:#a22f1b;color:#fff;font-size:14px}.wordlist-popup .info{padding:8px;background:#bfcce9;color:#11326f;text-overflow:ellipsis;width:240px;overflow:hidden;font-size:14px}.wordlist-popup .circle i{font-size:1.2em;line-height:1.9rem}.wordlist-popup form{position:relative;border-top:solid 1px #c5c5c5;padding:2px 0}.wordlist-popup form input{border:0}.wordlist-popup form input[type=submit]{float:right;line-height:24px}.wordlist-popup form input[type=text]{width:100%;margin:3px;margin-right:0;outline:0;padding:8px;background:0;box-shadow:none;margin:0}.word-list{word-wrap:break-word;line-break:after-white-space}.cdo-search__input[type=text]{outline:0}.tiles__tile{text-transform:capitalize}.ipa{display:inline-block;padding:0 2px 0 1px}.cycler__items a{white-space:nowrap}.i{font-style:italic}.gl{font-style:normal}.lex{text-transform:none;font-style:italic}.b{font-weight:700}.nu,.sp{font-size:66%;position:relative;bottom:.5em}.dn,.sb{font-size:66%;position:relative;top:.3em}.cle-xeg,.xeg{text-decoration:line-through}.u{text-decoration:underline}.email-form{text-align:center}.tiles__tile label{padding:20px 0}.tiles__tile input[type=checkbox]:checked+label:before,.tiles__tile input[type=radio]:checked+label:before{padding:1px 3px 2px 2px;position:absolute;top:0;left:0;color:#000;background:rgba(255,255,255,.8);border-radius:0 0 8px 0}.wordlist-panel h1{font-size:1.5em}.wordlist-panel h1.breadcrumb{font-size:1em}.wordlist-panel h1 a{text-decoration:none}.wordlist-panel h1 a:hover{text-decoration:underline}.fav-entry .fcdo.fcdo-plus{line-height:31px}.sect.sect--bg h2{margin-bottom:15px;font-size:1.35em;font-weight:400}h1.cdo-hero__title span{color:#d0a44c}.margin-bottom{margin-bottom:50px}#browseResults .title{padding:0;border:0 none}.padding-15{padding:15px 0}.margin-top-15{margin-top:15px}.txt-block--alt a:hover,.txt-block--alt2 a:hover{text-decoration:underline}.trans[lang=ar]{font-size:2em;font-weight:400;unicode-bidi:-webkit-plaintext}.rv+.rv:before{content:" / "}.img-thumb~.extraexamps,.img-thumb~.smartt{clear:both}.sense-body:after{content:"";display:table;clear:both}.img-thumb{position:relative;border:1px solid #bfcce9;display:inline-block}.img-thumb .img-copyright{border-radius:0;top:auto;left:auto;right:0;bottom:0;color:#fff;background:rgba(0,0,0,.2);z-index:2}.img-thumb .img-copyright span{word-break:normal}.entry-body.british-grammar .section{margin-top:20px}.entry-body.british-grammar .section~.section{margin-top:40px}.entry-body.british-grammar .section_anchor{height:0}.entry-body.british-grammar .panel{margin:20px 0}.entry-body.british-grammar blockquote{font-size:inherit;font-style:inherit;color:var(--color-font-grey)}.entry-body.british-grammar blockquote .utterance{clear:both;padding-left:2em}.entry-body.british-grammar blockquote .speaker{float:left;font-weight:700;font-style:normal;margin-left:-2em;margin-top:2px}.entry-body.british-grammar .nav p,.entry-body.british-grammar td p{margin:0}.entry-body.british-grammar .nav>p{margin-top:20px;line-height:1.5em;font-weight:700}.entry-body.british-grammar .nav ul{margin-left:30px;list-style-type:none}.entry-body.british-grammar .nav a{font-weight:700;text-decoration:none}.entry-body.british-grammar .nav a:hover{text-decoration:underline}.entry-body.british-grammar td{background:#eef1f5}.entry-body.british-grammar blockquote::before{content:""}.ruby{display:inline-block;text-align:text-bottom}.rt{display:block;font-size:80%;text-align:center;font-style:normal}.rb{display:block}.intonation-arrow{display:inline-block;height:2.25em;vertical-align:bottom;width:0;font-weight:400}.entry-body.british-grammar h1{margin:0 0 5px}.entry-body.british-grammar .header{margin-bottom:20px}.cloud{margin-bottom:15px}.cloud.txt-block{padding-right:0;background:#eff1f6}.cloud ul{margin-bottom:10px;text-align:center;line-height:1.8em}.cloud li{display:inline-block;margin-right:25px}.cloud li a{color:#16a085}.cloud li a i{font-style:normal}.cloud li a .pos{font-style:italic}.cloud li a.odd{color:#16a085}.cloud .topic_0{font-size:.9em}.cloud .topic_2{font-size:1.15em}.cloud .topic_3{font-size:1.5em}.cloud .topic_4{font-size:1.8em}.def-body{display:list}.def-body .trans{display:block;margin:0 0 5px 0;font-style:normal;color:var(--color-font-grey)}.def-body .trans:first-child{font-weight:700}.def-body .examp{margin-left:1.3em;display:list-item}.phrase-body.pad-indent{padding:0}.cols .item{display:list-item;margin-left:2.2em}.cols a{color:inherit}.js-accord{margin-left:1em;display:inline-block;padding:0 8px;border-radius:5px;color:#fff;background:#797979;cursor:pointer;-moz-user-select:none;user-select:none}.js-accord::before{content:"+ "}.js-accord+*{display:none}.js-accord+* a[title^="Synonyms and related"]{color:inherit}.js-accord.open+*{display:block}.see_also a{margin-left:1em;color:#16a085}.def-head{margin-bottom:0}.def-head a{color:inherit}.share{display:none!important}ul.daccord_b{padding-left:1.3em}li.dexamp{list-style-type:disc}.amp-accordion>.daccord_h{font-weight:700;cursor:pointer}.amp-accordion>:last-child{display:none;padding:0 1em 1em}.amp-accordion>:last-child ul{padding-left:1em}.amp-accordion>:last-child li{list-style-type:disc}.amp-accordion .i-plus:before{content:"+"}.amp-accordion.open .i-plus:before{content:"-"}.amp-accordion.open>:last-child{display:block}.dphrase-block{padding:5px}.dwl{position:relative;margin-top:2px;border-top:solid thin #c76e06}',""]),t.exports=o},673:function(t,o,e){var i=e(1336);t.exports="string"==typeof i?i:i.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[35],{1380:function(t,o,e){(o=e(226)(!1)).push([t.i,'.dictCambridge-Header{display:flex;align-items:baseline}.dictCambridge-Title{font-size:1.5em;margin-right:.5em}.dictCambridge-Entry{margin-bottom:1em}.dictCambridge-Entry a{color:inherit}#d-cambridge-entry-related ul{padding-left:1em}#d-cambridge-entry-related ul li{list-style-type:disc}#d-cambridge-entry-related ul li a{color:#f9690e}.dimg{text-align:center}.dimg img{display:inline-block}.inline{margin-left:0;list-style:none}.inline li{display:inline;margin:0 15px 0 0}.unstyled,.unstyled-nest li ul{margin-left:0;padding:0;list-style:none}.unstyled li{margin:0 0 5px 0}.unstyled-nest li ul{margin-top:5px}.link-list{margin:5px 0 10px}.link-list a{font-weight:700;text-decoration:none}.link-list a:hover{text-decoration:underline}.divided li{margin:0;padding:20px 5px;border-bottom:solid 1px #e3e3e8}.divided li:first-child{padding-top:10px}.divided li:last-child{border-width:0}.checklist{margin-left:0;padding-left:25px;list-style:none}.checklist li:before{font-weight:300;content:"";position:absolute;margin-left:-25px;color:#d1a14c}.tiles__tile{float:left;width:50%;padding:0 2px}.tiles__tile label{float:left;width:100%;margin-bottom:10px;padding:10px 0;background:#fff;text-align:center;border:solid 3px #e0e0e5;cursor:pointer;position:relative}.tiles__tile input[type=checkbox],.tiles__tile input[type=radio]{display:none}.tiles__tile input[type=checkbox]:checked+label,.tiles__tile input[type=radio]:checked+label{background:#d0a44c;border-color:#d0a44c}.tiles__tile input[type=checkbox]:checked+label:before,.tiles__tile input[type=radio]:checked+label:before{content:"";font-weight:300;padding-right:7px;color:#fff;font-size:.9em}.form .tiles{margin-bottom:0}.with-el{position:relative}.with-el__el{position:absolute;top:0;right:0}.with-el__el--l{right:auto;left:0}.with-el__el--b{top:auto;bottom:0}.with-el__el--icons{top:-5px;vertical-align:0}.with-icons__content{display:inline-block;padding:5px 0}.with-icons__icons{float:right}.trend{position:relative;display:inline-block;vertical-align:1px;color:rgba(36,46,78,.65);text-transform:uppercase;font-weight:700;font-size:.6em}.trend i{color:#0096ac;font-size:1.75em}.trend--down i{color:#e84427}.prefix{display:inline-block;margin-right:5px;width:40px;color:#a9b3d0;font-size:2em;vertical-align:-8px;text-align:center}.divided .prefix{margin-left:-5px}.prefix-float .prefix{float:left;display:block}.prefix-float .prefix-item{overflow:hidden;display:block}.prefix-block>*{position:relative;margin:0 0 5px;padding:10px 10px 10px 50px;background:#eef1f5}.prefix-block .prefix{position:absolute;top:0;left:0;padding-top:10px;height:100%;font-size:1em;color:#fff}.progress{position:relative;width:95px;height:95px}.progress svg{position:absolute;top:0;left:0}.progress__indicator{position:relative;border:solid 8px #ccd2e1;width:100%;height:100%;border-radius:50%}.progress__indicator__done{background:#d0a44c}.progress__label{position:absolute;top:50%;left:50%;height:40px;line-height:40px;width:65px;margin:-20px 0 0 -32.5px;text-align:center;font-size:1.5em;color:#848fae}.cycler{position:relative;padding:0 20px;background:#11326f;color:#fff}.cycler>div{overflow:hidden;width:100%;padding:0 20px 10px}.cycler__nav{position:absolute;top:10px;left:7px;height:40px;line-height:32px;padding:0 15px;text-align:center;color:#fff;font-size:2.5em}.cycler__nav--next{left:auto;right:7px}.cycler__items{overflow:hidden;white-space:nowrap;width:100%}.cycler__items>*{white-space:normal;display:inline-block;width:20%;text-align:center}.cycler__items.unstyled>li{margin:0}.cycler__items a{color:#acb7c5;font-size:2.8125em;line-height:1.3em}.cycler__items .on a,.cycler__items a.on,.cycler__items a:hover{color:#fff}.contain--pad{padding:15px 0}.nocontain{margin:0 -10px}.h1.hw,h1.hw{margin-bottom:10px;font-size:1em;font-weight:700}.definition-src{margin-bottom:40px}.di{margin-bottom:10px}.entry-body__el--smalltop{padding-top:10px}.entry-body__el:last-child,.entry-box__el:last-child{margin-bottom:10px}.mod.entry .h3,.mod.entry h3{font-size:1em}.di-head{padding:12px 20px;border-left:solid 1px #e6e6eb;border-right:solid 1px #e6e6eb}.di-head .h2,.di-head h2{font-size:1em}.di-head .see-all-translations{margin-left:1px;display:table;line-height:22px}.di-title{font-size:1.2em;font-weight:700;line-height:1.3}.normal-entry .di-title{line-height:1.3em}.di-head.normal-entry{position:relative;background:#fff;margin-bottom:20px;padding:0;border-width:0}.di .pos-header{position:relative;margin:5px 0 15px;color:rgba(17,50,111,.91)}.di .inf,.di .irreg-infls{color:#292929}.di .pos-head .pos-info{margin:0 0 20px}.cdo-section-title-hw{display:inline;word-wrap:break-word}.cdo-section-title-hw .headword,.di-head.normal-entry .cdo-section-title-hw{display:block;margin:0 0 10px;font-size:2.5em;line-height:1.075em;font-weight:700}.di-head.normal-entry .cdo-section-title-hw{margin:0}.HeadwordCtn .GeographicalUsage,.cdo-section-title-hw .posgram,.di-head.normal-entry .posgram,.pos-head .pos-info .posgram{font-style:italic;color:#444}.gcs{vertical-align:-1px}.pos-head .pos-info .posgram{margin-right:5px}.di-head.normal-entry .pron,.pos-head .pos-info .pron{margin-left:5px}.epp-xref,.freq{margin-right:3px;padding:2px 5px;color:#fff;font-weight:700;font-size:.8em;min-width:14px;text-align:center;background-color:#444;border-radius:8px}.freq{display:none}.cdo-topic{font-weight:700}.extraexamps li[class=eg]{position:relative;margin-left:1.2em;list-style-type:disc}.runon-info .posgram .pos{color:#555}.i{font-style:italic}.lab{display:inline;font-variant:small-caps}.lu{font-weight:700}.superentry .irreg-infls,.uk,.us{margin-left:5px}.uk>.region,.us>.region{text-transform:uppercase;color:#e84427;font-size:1em;font-weight:700}.superentry .pron{font-size:1.063em}.sense-block .hw,.sense-block .phrase{font-weight:700;font-size:1.1em}.sense-block .pos{font-style:italic}.gram{color:#555;margin-right:3px}.gram a{color:inherit}.sense-block .guideword{margin-left:8px}.sense-block .guideword span{vertical-align:-1px}.emphasized .gram{font-style:normal}.pos-head .pos-info .fcdo{font-size:14px;vertical-align:-2px}.fav-entry{width:22px;height:22px}.fav-entry .fcdo{line-height:22px}.def-block{position:relative}.def-block .fav-entry{position:absolute;top:2px;left:0}.phrase-block .def-block .fav-entry{top:4px}.entry-divide{position:relative;border-top:solid 1px #e6e6eb;border-bottom:solid 1px #e6e6eb;height:20px}.results.link-list a{font-weight:400}.results.link-list em{font-style:italic;color:#242b4e}.results.link-list a:hover{text-decoration:none}.results.link-list a:hover b{text-decoration:underline}.feature-w,.feature-w-big{font-size:1.25em;line-height:1em;font-weight:400}.feature-w-big{font-size:2.2em;line-height:.9em}.resp{display:none}.resp.open{display:block}.oflow-hide{overflow:hidden}.center{text-align:center}.left{text-align:left}.right{text-align:right}.lower{text-transform:lowercase}.upper{text-transform:uppercase}.clr{clear:both}.clr-left{clear:left}.clr-right{clear:right}.f-left{float:left}.f-right{float:right}.title{padding-bottom:5px;border-bottom:solid 1px #e6e6eb}.fade{opacity:.7}.hide{display:none}.hide.open{display:block}.hide-txt{text-indent:100%;white-space:nowrap;overflow:hidden}.hidden{visibility:hidden}.flush,div.flush{margin-bottom:0}.semi-flush,.tight{margin-bottom:5px}.nudge-top{margin-top:2px}.normal-top{margin-top:15px}.normal-base{margin-bottom:15px}.space-top{margin-top:5px}.space-base{margin-bottom:10px}.space-both{margin-top:5px;margin-bottom:10px}.spaced{margin-bottom:20px}.spaced-top{margin-top:20px}.spaced-out{margin:5px 0 25px}.spaced-big{margin-bottom:30px}.spaced-big-top{margin-top:30px}.pad{padding:0 5px}.pad-indent{padding-left:1em}.pad-indent-both{padding-left:1em;padding-right:1em}.pad-all{padding:1em}.pad-all-sml{padding:.5em}.pad-extra{padding:0 .5em}.pad-l-flush{padding-left:0}.pad-l-sml{padding-left:5px}.pad-l{padding-left:10px}.pad-l-lrg{padding-left:15px}.pad-r-flush{padding-right:0}.pad-r-sml{padding-right:5px}.pad-r{padding-right:10px}.pad-r-lrg{padding-right:15px}.pad-t-flush{padding-top:0}.pad-t-sml{padding-top:5px}.pad-t{padding-top:10px}.pad-t-lrg{padding-top:15px}.pad-b-flush{padding-bottom:0}.pad-b-sml{padding-bottom:5px}.pad-b{padding-bottom:10px}.pad-b-lrg{padding-bottom:15px}.pad-sides{padding-left:10px;padding-right:10px}.pad-sides-sml{padding-left:5px;padding-right:5px}.underline{text-decoration:underline}.fig-frame{width:100%;text-align:center}.fig-frame img{border:solid 6px #fff}.leader{font-size:1.25em;line-height:1.4em}.meta{color:#686868}.standout{color:#242e4e}.pointer{cursor:pointer}.small{font-size:.875em}.smaller{font-size:.8em}.bigger{font-size:1.125em}.light{color:#888}.bg-h:after{content:" ";position:absolute;top:0;left:0;height:100%;width:0;z-index:1}.accessibility{overflow:hidden;position:absolute;top:-9999px;left:-9999px;float:none;width:auto;margin:0;padding:0}.cdo-search:before,.clrd:before,.contain:before,.stacks:before,.tabs:before,.tabs__content>.block-wrap:before,.tiles:before{content:" ";display:table}.cdo-search:after,.clrd:after,.contain:after,.stacks:after,.tabs:after,.tabs__content>.block-wrap:after,.tiles:after{content:" ";display:table;clear:both}.dropdown__box{z-index:9000}.site-msg{z-index:9999}.english-french .pad-indent .runon.pad-indent,.french-english .pad-indent .runon.pad-indent{margin-left:-30px}.english-french .runon-body.pad-indent,.french-english .runon-body.pad-indent{margin-left:-20px}.relativDiv{position:relative}.divBlock{display:block}.img-thumb{margin-bottom:10px}a.a--b{font-weight:700!important}a.a--none,a.a--rev{text-decoration:none!important}a.a--rev:hover{text-decoration:underline!important}.label,label{display:block;margin:0;padding:11px 0;font-weight:700}input.text,input[type=email],input[type=password],input[type=text],select,textarea{padding:11px;width:100%;border:1px solid #ddd;background:#f1f1f1;box-sizing:border-box;border-radius:2px;box-shadow:inset 1px 1px 2px 0 rgba(0,0,0,.1);color:#444}input.text,input[type=email],input[type=password],input[type=text]{height:44px}.input-wrap{display:inline-block;width:100%;vertical-align:bottom}.form div em{display:block;margin:5px 0 20px;color:var(--color-font-grey)}.form>div{clear:both;margin-bottom:10px}.form input.btn{margin:20px 0 10px}.form__inline label{float:none;display:inline;padding:0 10px 0 0;font-weight:400}.form__inline input{float:left;clear:left;margin:3px 5px 5px 0;width:auto;border:0 none}.form__list{display:inline-block;line-height:1.3em;padding-top:11px}.form--restrict input.text,.form--restrict input[type=email],.form--restrict input[type=password],.form--restrict input[type=text],.form--restrict select,.form--restrict textarea{max-width:450px}.text--ico-key input.text,.text--ico-key select,.text--ico-key textarea{padding-right:40px}.csstransforms3d .point{display:block!important;position:absolute;top:0;left:0;height:10px;width:10px;background:#fff;transform:rotate(45deg)}.csstransforms3d .tiles--pointer input[type=radio]:checked+label:after{content:"";position:absolute;bottom:-8px;left:50%;height:16px;width:16px;margin-left:-8px;background:#d0a44c;transform:rotate(45deg)}.btn{display:inline-block;padding:10px 12px;text-align:center;color:#fff;text-decoration:none;line-height:1em;cursor:pointer;border-radius:2px}.btn--impact{background:#caa54c;border-color:#caa54c;color:#111;font-weight:700}.btn--impact:hover{background:#b79441}.btn--impact2{padding:11px 13px;border-width:0;background:rgba(0,0,0,.34);font-weight:700}.btn--impact2:hover{background:rgba(0,0,0,.45)}.btn--alt{background:#dde2f0;border-color:#dde2f0}.btn--alt:hover{background:#c7cee2}.btn--white{background:#fff;border-color:#fff}.btn--white:hover{background:#f4f4f4}.btn--alt,.btn--alt2,.btn--white{color:#292929}.btn--lrg{font-size:1.1em;font-weight:700;padding:12px 20px}.btn--small{font-size:.875em}.btn--bold,input.btn{font-weight:700}.btn--dropdown{padding-right:30px}.btn--dropdown-pad{padding-right:40px}.btn--dropdown:after{position:absolute;content:"";top:50%;right:10px;margin-top:-8px;font-size:16px;line-height:1em;color:#d0a44c;font-weight:300}.btn--dropdown.on:after{content:""}.btn--options{font-size:.8em;padding:10px 30px 10px 10px;background:#dde2f0;color:#292929;border:0;border-radius:0}.btn--options:hover{background:#dde2f0}.btn--options:after{font-size:.9em;margin-top:-5px}.btn--plus.on{border-radius:2px 2px 0 0}.btn--plus.on .fcdo:before{content:""}.btn--input{height:44px;padding:12px 16px;border-radius:0 2px 2px 0}.btn--input--nudge{padding-bottom:13px}.btn--translate:before{content:" ";position:absolute}.btn--translate{position:relative;padding:12px 12px 12px 43px}.btn--translate:before{width:31px;height:31px;top:4px;left:10px;background-position:-550px 0}.btn--social{display:block;border:0;padding:12px;margin:0 auto 10px;font-weight:700;max-width:300px}.btn--social .fcdo{font-size:1.2em;padding-right:5px}.btn .fcdo{color:inherit}.btn--alt .fcdo{color:#354da5}.btn--small .fcdo{font-size:1.14286em}.btn--ico-l{position:relative;padding-left:33px}.btn--ico-l--extra-pad{padding-left:40px}.btn--ico-l .fcdo{position:absolute;top:50%;left:10px;height:100%;margin-top:-12px;line-height:100%;font-size:22px}.btn--ico-l .fcdo-quiz{left:10px;margin-top:-13px;font-size:26px}.cols,.cols__col{box-sizing:border-box}.cols .cols__col:first-child{margin-left:0}.cols--icons .cols__col{padding:70px 0 20px}.txt-block{display:block;font-weight:400;box-sizing:border-box;text-decoration:none;border-bottom:1px solid rgba(199,110,6,.5)}.txt-block--shallow{padding:4px 20px}.txt-block--padder{padding:15px 20px}.txt-block--alt3{background:#e84427;color:#fff}.txt-block--impact{background:#d0a44c;color:#111}.txt-block--padl{padding-left:70px}.txt-block--padr{padding-right:70px}.txt-block--alt .h2,.txt-block--alt .h3,.txt-block--alt .h4,.txt-block--alt .h5,.txt-block--alt h2,.txt-block--alt h3,.txt-block--alt h4,.txt-block--alt h5,.txt-block--alt2 .h2,.txt-block--alt2 .h3,.txt-block--alt2 .h4,.txt-block--alt2 .h5,.txt-block--alt2 h2,.txt-block--alt2 h3,.txt-block--alt2 h4,.txt-block--alt2 h5{color:inherit}.txt-block--alt .h3 span,.txt-block--alt h3 span{color:#a7b5c9}a.txt-block:hover span{text-decoration:underline}a.txt-block{font-weight:700}a.txt-block--impact .fcdo{color:#303076}a.txt-block:hover{opacity:.9}.txt-block .with-el__el{top:13px;right:20px}.txt-block .with-el__el--icons{top:8px}.txt-block.with-icons{padding:8px 20px}.txt-block.item-tag{position:relative}.txt-block.item-tag .h2,.txt-block.item-tag .h3,.txt-block.item-tag .h4,.txt-block.item-tag .h5,.txt-block.item-tag h2,.txt-block.item-tag h3,.txt-block.item-tag h4,.txt-block.item-tag h5,.txt-block.item-tag p{margin-bottom:0}.txt-block .item-tag__tag--clear{background:0 0}.cols__col--product{position:relative}.cols__col--product-img{height:100px;margin:0 0 15px;position:absolute;top:0;left:0}.cols__col--product .cols__col--product-img{float:left;position:initial;margin-right:1em}.section .smaller,ul.accord>li>ul li a span.alt{position:relative;top:-.1em}.spr--ico-key-translation:before{background-position:-114px -239px;width:47px;height:47px}.trends--egt .title{padding-bottom:0;border-bottom:0}.circle.bg--more .bg--more,.circle.bg--more.open .fcdo-minus{display:inline-block}.bg--white{background:#fff}.bg--def,.bg--more{background:#e84427}.bg--di{background:#0091ff}.bg--fb{background:#3b5998}.bg--gp{background:#dc4e41}.bg--re{background:#ff4500}.bg--su{background:#eb4924}.bg--tu{background:#36465d}.bg--tw{background:#55acee}.helper{background:#bfcdea;padding:20px;margin-top:15px;color:#111;border-radius:3px;font-size:.875em}.helper .point{display:none;background:#bfcdea;top:0;left:50%;margin:-5px 0 0 -5px}a.helper{display:block;padding:11px 30px 11px 20px;text-decoration:none;font-weight:700;cursor:pointer}a.helper p{overflow:hidden;margin:0;white-space:nowrap;line-height:1em;text-overflow:ellipsis}a.helper:hover,a.helper:hover .point{background:#b2c0de}.circle.bg--more .fcdo-minus,.circle.bg--more.open .fcdo-plus,.translator_layout .content1,.translator_layout .content2{display:none}.translator_layout .translate-tool .virtualKeyboard{z-index:5}.kernerman-copyright-img{height:20px;margin-right:5px}.translator_layout .dropdown[data-selectbox-id=languageTo] .dropdown__box{right:0}.translator_layout .cdo-tpl-alt{margin-top:5px}.translator_layout .with-el{border-top:0}.translator_layout .translate-tool__from__input{border:0;resize:none;margin-bottom:30px;outline:0}.translator_layout .translate-tool__from__keyboard-trig{background:0 0}.translator_layout .translate-tool__from__keyboard-trig{bottom:0}.cdo-search__button,.cdo-search__dataset{float:right}.cdo-hdr__blocks--home .cdo-search.cdo-search-centered{float:none;width:100%}.cdo-hdr__profile a.hdr-btn .fcdo{opacity:.5;color:inherit}.cdo-hdr__profile a.hdr-btn.on .fcdo,.cdo-hdr__profile a.hdr-btn:hover .fcdo{opacity:1;color:inherit}.mod-browser .pos{color:gray;font-style:italic}.sense-block .cdo-cloud-content .pos{color:inherit}.dropdown--options .dropdown__box .btn{text-align:inherit;font-weight:inherit}.dropdown--options .dropdown__box a{margin-bottom:5px}.modal-confirm{max-width:400px;min-height:0}a{cursor:pointer}.mod-quiz .incorrect{color:red}.mod-quiz .correct{color:#2e8b57}.mod-quiz .virtualKeyboard{margin-top:1em}.mod-quiz .fcdo{color:inherit;vertical-align:top;font-size:1.33333333em;line-height:.75em}.mod-quiz .circle .fcdo{vertical-align:middle;font-size:inherit;line-height:inherit}#informational-content .circle-btn--sml{line-height:22px}#informational-content .txt-block{padding:11px 20px}#informational-content .txt-block--alt4{background:#bfcce9;padding:5px 20px}#informational-content pre.linktous{white-space:normal;word-break:break-word;overflow:hidden;background-color:#f0f0f0;font-size:1.2em;padding:.5em;margin:.25em 1px}.mod-quiz .questionary-resume-item{padding:10px 20px;margin-bottom:1em}.mod-quiz .questionary-resume{text-align:left}.di.english-chinese-simplified .trans,.di.english-chinese-traditional .trans{font-weight:400}div.entry_title .results .pos{font-style:italic;font-size:95%}.mod-define>a:before{content:""}.pronunciation-english.entry-body__el{min-height:0}.pronunciation-english .pronunciation-item{margin-bottom:10px}.pronunciation-english .sound{display:inline-block;background:#e84427;color:#fff;border-radius:3px;padding:2px 10px 0;text-transform:uppercase;font-weight:700;margin-right:5px}.pronunciation-english .sound .fcdo{font-size:1.5em;display:inline-block;margin:0 5px 3px 0}.lab{font-size:1.1em}.lab .region{text-transform:lowercase;font-style:normal}.pronVideos{max-width:560px;margin:0 auto 20px auto}.pronVideo{width:100%;height:315px;margin-bottom:10px}#browseGroups div{display:inline}.caro__el img{min-width:100%}#mobEntryDictName{text-transform:capitalize}body{padding-top:111px}.default_layout .cdo-search,.translator_layout .cdo-search{padding:7px 20px 6px}.wordlist-popup *{box-sizing:border-box}.wordlist-popup{position:absolute;bottom:25px;right:-10px;width:240px;margin:10px 0;z-index:6;background:#fff;border:1px solid #c5c5c5;box-shadow:0 0 15px rgba(0,0,0,.18);font-size:14px;text-align:left}.wordlist-popup:before{content:"";display:inline-block;position:absolute;right:11px;width:0;height:0;border-style:solid;bottom:-10px;border-width:10px 10px 0 10px;border-color:#c5c5c5 transparent transparent transparent}.wordlist-popup.under{top:25px;bottom:auto}.wordlist-popup.right{right:auto;left:0}.wordlist-popup.right:before{right:auto;left:0}.wordlist-popup.under:before{bottom:auto;top:-10px;border-width:0 10px 10px 10px;border-color:transparent transparent #c5c5c5 transparent}.wordlist-popup ul{max-height:200px;overflow-y:auto;overflow-x:hidden;margin:0}.wordlist-popup li{margin:0;clear:both}.wordlist-popup .login-button,.wordlist-popup .title{text-decoration:underline}.wordlist-popup .title{font-weight:700;padding:8px;border-bottom:1px solid #c5c5c5;margin:0;display:block}.wordlist-popup .spinner{display:table;margin:30px auto}.wordlist-popup .name{float:left;display:block;padding:8px;text-overflow:ellipsis;width:180px;overflow:hidden;white-space:nowrap}.wordlist-popup .name:hover{background:#d8d8ff;text-decoration:underline}.wordlist-popup .add{margin:3px 5px;float:right}.wordlist-popup .error{padding:8px;background:#a22f1b;color:#fff;font-size:14px}.wordlist-popup .info{padding:8px;background:#bfcce9;color:#11326f;text-overflow:ellipsis;width:240px;overflow:hidden;font-size:14px}.wordlist-popup .circle i{font-size:1.2em;line-height:1.9rem}.wordlist-popup form{position:relative;border-top:solid 1px #c5c5c5;padding:2px 0}.wordlist-popup form input{border:0}.wordlist-popup form input[type=submit]{float:right;line-height:24px}.wordlist-popup form input[type=text]{width:100%;margin:3px;margin-right:0;outline:0;padding:8px;background:0;box-shadow:none;margin:0}.word-list{word-wrap:break-word;line-break:after-white-space}.cdo-search__input[type=text]{outline:0}.tiles__tile{text-transform:capitalize}.ipa{display:inline-block;padding:0 2px 0 1px}.cycler__items a{white-space:nowrap}.i{font-style:italic}.gl{font-style:normal}.lex{text-transform:none;font-style:italic}.b{font-weight:700}.nu,.sp{font-size:66%;position:relative;bottom:.5em}.dn,.sb{font-size:66%;position:relative;top:.3em}.cle-xeg,.xeg{text-decoration:line-through}.u{text-decoration:underline}.email-form{text-align:center}.tiles__tile label{padding:20px 0}.tiles__tile input[type=checkbox]:checked+label:before,.tiles__tile input[type=radio]:checked+label:before{padding:1px 3px 2px 2px;position:absolute;top:0;left:0;color:#000;background:rgba(255,255,255,.8);border-radius:0 0 8px 0}.wordlist-panel h1{font-size:1.5em}.wordlist-panel h1.breadcrumb{font-size:1em}.wordlist-panel h1 a{text-decoration:none}.wordlist-panel h1 a:hover{text-decoration:underline}.fav-entry .fcdo.fcdo-plus{line-height:31px}.sect.sect--bg h2{margin-bottom:15px;font-size:1.35em;font-weight:400}h1.cdo-hero__title span{color:#d0a44c}.margin-bottom{margin-bottom:50px}#browseResults .title{padding:0;border:0 none}.padding-15{padding:15px 0}.margin-top-15{margin-top:15px}.txt-block--alt a:hover,.txt-block--alt2 a:hover{text-decoration:underline}.trans[lang=ar]{font-size:2em;font-weight:400;unicode-bidi:-webkit-plaintext}.rv+.rv:before{content:" / "}.img-thumb~.extraexamps,.img-thumb~.smartt{clear:both}.sense-body:after{content:"";display:table;clear:both}.img-thumb{position:relative;border:1px solid #bfcce9;display:inline-block}.img-thumb .img-copyright{border-radius:0;top:auto;left:auto;right:0;bottom:0;color:#fff;background:rgba(0,0,0,.2);z-index:2}.img-thumb .img-copyright span{word-break:normal}.entry-body.british-grammar .section{margin-top:20px}.entry-body.british-grammar .section~.section{margin-top:40px}.entry-body.british-grammar .section_anchor{height:0}.entry-body.british-grammar .panel{margin:20px 0}.entry-body.british-grammar blockquote{font-size:inherit;font-style:inherit;color:var(--color-font-grey)}.entry-body.british-grammar blockquote .utterance{clear:both;padding-left:2em}.entry-body.british-grammar blockquote .speaker{float:left;font-weight:700;font-style:normal;margin-left:-2em;margin-top:2px}.entry-body.british-grammar .nav p,.entry-body.british-grammar td p{margin:0}.entry-body.british-grammar .nav>p{margin-top:20px;line-height:1.5em;font-weight:700}.entry-body.british-grammar .nav ul{margin-left:30px;list-style-type:none}.entry-body.british-grammar .nav a{font-weight:700;text-decoration:none}.entry-body.british-grammar .nav a:hover{text-decoration:underline}.entry-body.british-grammar td{background:#eef1f5}.entry-body.british-grammar blockquote::before{content:""}.ruby{display:inline-block;text-align:text-bottom}.rt{display:block;font-size:80%;text-align:center;font-style:normal}.rb{display:block}.intonation-arrow{display:inline-block;height:2.25em;vertical-align:bottom;width:0;font-weight:400}.entry-body.british-grammar h1{margin:0 0 5px}.entry-body.british-grammar .header{margin-bottom:20px}.cloud{margin-bottom:15px}.cloud.txt-block{padding-right:0;background:#eff1f6}.cloud ul{margin-bottom:10px;text-align:center;line-height:1.8em}.cloud li{display:inline-block;margin-right:25px}.cloud li a{color:#16a085}.cloud li a i{font-style:normal}.cloud li a .pos{font-style:italic}.cloud li a.odd{color:#16a085}.cloud .topic_0{font-size:.9em}.cloud .topic_2{font-size:1.15em}.cloud .topic_3{font-size:1.5em}.cloud .topic_4{font-size:1.8em}.def-body{display:list}.def-body .trans{display:block;margin:0 0 5px 0;font-style:normal;color:var(--color-font-grey)}.def-body .trans:first-child{font-weight:700}.def-body .examp{margin-left:1.3em;display:list-item}.phrase-body.pad-indent{padding:0}.cols .item{display:list-item;margin-left:2.2em}.cols a{color:inherit}.js-accord{margin-left:1em;display:inline-block;padding:0 8px;border-radius:5px;color:#fff;background:#797979;cursor:pointer;-moz-user-select:none;user-select:none}.js-accord::before{content:"+ "}.js-accord+*{display:none}.js-accord+* a[title^="Synonyms and related"]{color:inherit}.js-accord.open+*{display:block}.see_also a{margin-left:1em;color:#16a085}.def-head{margin-bottom:0}.def-head a{color:inherit}.share{display:none!important}ul.daccord_b{padding-left:1.3em}li.dexamp{list-style-type:disc}.amp-accordion>.daccord_h{font-weight:700;cursor:pointer}.amp-accordion>:last-child{display:none;padding:0 1em 1em}.amp-accordion>:last-child ul{padding-left:1em}.amp-accordion>:last-child li{list-style-type:disc}.amp-accordion .i-plus:before{content:"+"}.amp-accordion.open .i-plus:before{content:"-"}.amp-accordion.open>:last-child{display:block}.dphrase-block{padding:5px}.dwl{position:relative;margin-top:2px;border-top:solid thin #c76e06}',""]),t.exports=o},710:function(t,o,e){var i=e(1380);t.exports="string"==typeof i?i:i.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/35.5877ec6e.js b/plugins/saladict-ztools/ext-saladic/assets/35.5877ec6e.js deleted file mode 100644 index 836c0b9b..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/35.5877ec6e.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[35],{116:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),o=r(30);function i(e,t){var r=Object(o.e)(o.a),i=Object(o.e)((function(){return e(r.current)}));return[Object(n.useRef)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.current.next(t?t(e):e[0])})).current,i.current]}},119:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"e",(function(){return f}));var n=r(0),o=r.n(n),i=r(389),a=r(46);const c=o.a.createContext(async()=>{}),s=e=>{const[t,r]=Object(n.useState)(()=>"string"==typeof e.src?e.src:"#"),a=Object(n.useContext)(c);if(Object(i.a)(()=>{r("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const s=e.width||e.height||"1.2em",l=e.height||s;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:s,height:l},onClick:async n=>{if("#"===t&&"function"==typeof e.src){n.stopPropagation(),n.preventDefault();const t=await e.src();a(t),r(t)}}})};t.c=o.a.memo(s);const l=e=>{const{onPlayStart:t,...r}=e,i=Object(n.useCallback)(e=>{if(e.target&&"A"===e.target.tagName&&e.target.href&&"#"!==e.target.href&&e.target.classList&&e.target.classList.contains("saladict-Speaker")){e.preventDefault(),e.stopPropagation();const r=e.target;r.classList.add("isActive"),Object(a.b)([Object(a.d)(1e3),t(r.href)]).then(()=>{r.classList.remove("isActive")})}},[t]);return o.a.createElement(c.Provider,{value:t},o.a.createElement("div",{onClick:i,...r}))},u=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},f=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""},182:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(30),o=r(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object(o.useRef)(e);r.current=e;var i=Object(n.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=r.current[0],t=e.subscribe({next:function(t){if(e===r.current[0])return r.current[1]?r.current[1](t):void 0},error:function(t){if(e===r.current[0]){if(r.current[2])return c.current=null,r.current[2](t);c.current=t,i()}},complete:function(){if(e===r.current[0])return r.current[3]?r.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"a",(function(){return s})),r.d(t,"e",(function(){return l})),r.d(t,"d",(function(){return u}));var n=r(0),o=r(91),i=r(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function s(){return new o.a}function l(e){var t=Object(n.useRef)(!0),r=Object(n.useRef)(null);return t.current&&(t.current=!1,r.current=e()),r}function u(){var e=Object(n.useState)(0)[1];return Object(n.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect},389:function(e,t,r){"use strict";var n=r(0);t.a=function(e,t){var r=Object(n.useRef)(!0);Object(n.useEffect)((function(){if(!r.current)return e();r.current=!1}),t)}},5:function(e,t,r){"use strict";r.d(t,"h",(function(){return i})),r.d(t,"g",(function(){return a})),r.d(t,"b",(function(){return c})),r.d(t,"f",(function(){return s})),r.d(t,"d",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"i",(function(){return p})),r.d(t,"j",(function(){return m})),r.d(t,"a",(function(){return h})),r.d(t,"c",(function(){return y}));var n=r(507),o=r.n(n);r(0),r(116),r(182),r(10),r(371),r(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await r.e(109).then(r.bind(null,1321))).chsToChz:null}function s(e,...t){if(!e)return"";let r="",n=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?r=t[e]:"function"==typeof t[e]&&(n=t[e]);const o=r?e.querySelector(r):e;if(!o)return"";const i=o.textContent||"";return n?n(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function u(e,{mode:t="innerHTML",selector:r,transform:n,host:i,config:a=l}={}){const c=r?e.querySelector(r):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const s=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),u=s.firstChild?s.firstChild[t]:"";return n?n(u):u}function f(e,t,r={}){return u(t,"string"==typeof r?{selector:r,host:e,mode:"innerHTML"}:{...r,host:e,mode:"innerHTML"})}function d(e,t,r={}){return u(t,"string"==typeof r?{selector:r,host:e,mode:"outerHTML"}:{...r,host:e,mode:"outerHTML"})}function p(e,t){const r=e.querySelector(t);r&&r.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,r){e.endsWith("/")&&(e=e.slice(0,-1));const n=e.startsWith("https")?"https:":"http:",o=t.getAttribute(r);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?n+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,r){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),r=e(["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"]),n=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),s=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),u=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var r=t.length;r--;){var n=t[r];if("string"==typeof n){var o=n.toLowerCase();o!==n&&(Object.isFrozen(t)||(t[r]=o),n=o)}e[n]=!0}return e}function h(e){var t={},r=void 0;for(r in e)p(f,e,[r])&&(t[r]=e[r]);return t}p||(p=function(e,t,r){return e.apply(t,r)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),b=y(/<%[\s\S]*|[\s\S]*%>/gm),v=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),O=y(/^(?:\w+script|data):/i),x=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function E(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var w=("undefined"!=typeof Reflect&&Reflect).apply,_=Array.prototype.slice,L=Object.freeze,N=function(){return"undefined"==typeof window?null:window};w||(w=function(e,t,r){return e.apply(t,r)});var R=function(e,t){if("object"!==(void 0===e?"undefined":S(e))||"function"!=typeof e.createPolicy)return null;var r=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=t.currentScript.getAttribute("data-tt-policy-suffix"));var n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,k=a.document,M=a.DocumentFragment,j=a.HTMLTemplateElement,C=a.Node,D=a.NodeFilter,H=a.NamedNodeMap,F=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,z=a.Text,q=a.Comment,P=a.DOMParser,I=a.TrustedTypes;if("function"==typeof j){var U=k.createElement("template");U.content&&U.content.ownerDocument&&(k=U.content.ownerDocument)}var W=R(I,d),B=W?W.createHTML(""):"",G=k,Y=G.implementation,V=G.createNodeIterator,K=G.getElementsByTagName,X=G.createDocumentFragment,Z=d.importNode,$={};f.isSupported=Y&&void 0!==Y.createHTMLDocument&&9!==k.documentMode;var Q=g,J=b,ee=v,te=T,re=O,ne=x,oe=A,ie=null,ae=m({},[].concat(E(t),E(r),E(n),E(o),E(i))),ce=null,se=m({},[].concat(E(c),E(s),E(l),E(u))),le=null,ue=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,be=!1,ve=!1,Te=!1,Ae=!1,Oe=!1,xe=!0,Se=!0,Ee=!1,we={},_e=m({},["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"]),Le=m({},["audio","video","img","source","image"]),Ne=null,Re=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),ke=null,Me=k.createElement("form"),je=function(e){ke&&ke===e||(e&&"object"===(void 0===e?"undefined":S(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):se,Ne="ADD_URI_SAFE_ATTR"in e?m(h(Re),e.ADD_URI_SAFE_ATTR):Re,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},ue="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},we="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,ve=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,xe=!1!==e.SANITIZE_DOM,Se=!1!==e.KEEP_CONTENT,Ee=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(ve=!0),we&&(ie=m({},[].concat(E(i))),ce=[],!0===we.html&&(m(ie,t),m(ce,c)),!0===we.svg&&(m(ie,r),m(ce,s),m(ce,u)),!0===we.svgFilters&&(m(ie,n),m(ce,s),m(ce,u)),!0===we.mathMl&&(m(ie,o),m(ce,l),m(ce,u))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===se&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Ne,e.ADD_URI_SAFE_ATTR),Se&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),L&&L(e),ke=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},De=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,r=void 0;if(be)e="<remove></remove>"+e;else{var n=e.match(/^[\s]+/);(r=n&&n[0])&&(e=e.slice(r.length))}if(p)try{t=(new P).parseFromString(e,"text/html")}catch(e){}if(y&&m(le,["title"]),!t||!t.documentElement){var o=(t=Y.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&r&&t.body.insertBefore(k.createTextNode(r),t.body.childNodes[0]||null),K.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var Fe=function(e){return V.call(e.ownerDocument||e,e,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,(function(){return D.FILTER_ACCEPT}),!1)},ze=function(e){return!(e instanceof z||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof F&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},qe=function(e){return"object"===(void 0===C?"undefined":S(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":S(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Pe=function(e,t,r){$[e]&&$[e].forEach((function(e){e.call(f,t,r,ke)}))},Ie=function(e){var t=void 0;if(Pe("beforeSanitizeElements",e,null),ze(e))return Ce(e),!0;var r=e.nodeName.toLowerCase();if(Pe("uponSanitizeElement",e,{tagName:r,allowedTags:ie}),("svg"===r||"math"===r)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[r]||le[r]){if(Se&&!_e[r]&&"function"==typeof e.insertAdjacentHTML)try{var n=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(n):n)}catch(e){}return Ce(e),!0}return"noscript"===r&&/<\/noscript/i.test(e.innerHTML)||"noembed"===r&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(Q," ")).replace(J," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Pe("afterSanitizeElements",e,null),!1)},Ue=function(e,t,r){if(xe&&("id"===t||"name"===t)&&(r in k||r in Me))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||ue[t])return!1;if(Ne[t]);else if(oe.test(r.replace(ne,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==r.indexOf("data:")||!Le[e])if(pe&&!re.test(r.replace(ne,"")));else if(r)return!1}return!0},We=function(e){var t=void 0,r=void 0,n=void 0,o=void 0,i=void 0;Pe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var s=t=a[i],l=s.name,u=s.namespaceURI;if(r=t.value.trim(),n=l.toLowerCase(),c.attrName=n,c.attrValue=r,c.keepAttr=!0,Pe("uponSanitizeAttribute",e,c),r=c.attrValue,"name"===n&&"IMG"===e.nodeName&&a.id)o=a.id,a=w(_,a,[]),De("id",e),De(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===n&&"file"===r&&c.keepAttr&&(ce[n]||!ue[n]))continue;"id"===l&&e.setAttribute(l,""),De(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(_e).join("|")+")","i").test(r))De(l,e);else{he&&(r=(r=r.replace(Q," ")).replace(J," "));var d=e.nodeName.toLowerCase();if(Ue(d,n,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),f.removed.pop()}catch(e){}}}Pe("afterSanitizeAttributes",e,null)}},Be=function e(t){var r=void 0,n=Fe(t);for(Pe("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)Pe("uponSanitizeShadowNode",r,null),Ie(r)||(r.content instanceof M&&e(r.content),We(r));Pe("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var r=void 0,n=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!qe(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===S(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(qe(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||je(t),f.removed=[],Ee);else if(e instanceof C)1===(n=(r=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?r=n:r.appendChild(n);else{if(!ve&&!he&&!ye&&Oe&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(r=He(e)))return ve?null:B}r&&be&&Ce(r.firstChild);for(var s=Fe(Ee?e:r);o=s.nextNode();)3===o.nodeType&&o===i||Ie(o)||(o.content instanceof M&&Be(o.content),We(o),i=o);if(i=null,Ee)return e;if(ve){if(Te)for(c=X.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return Ae&&(c=Z.call(d,c,!0)),c}var l=ye?r.outerHTML:r.innerHTML;return he&&(l=(l=l.replace(Q," ")).replace(J," ")),W&&Oe?W.createHTML(l):l},f.setConfig=function(e){je(e),ge=!0},f.clearConfig=function(){ke=null,ge=!1},f.isValidAttribute=function(e,t,r){ke||je({});var n=e.toLowerCase(),o=t.toLowerCase();return Ue(n,o,r)},f.addHook=function(e,t){"function"==typeof t&&($[e]=$[e]||[],$[e].push(t))},f.removeHook=function(e){$[e]&&$[e].pop()},f.removeHooks=function(e){$[e]&&($[e]=[])},f.removeAllHooks=function(){$={}},f}()}()},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));r(507);var n=r(131),o=r.n(n);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(3),o=r(7);function i(){}var a=r(45);function c(e,t,r){return function(n){return n.lift(new s(e,t,r))}}var s=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,r,n,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=n||i,c._tapComplete=o||i,Object(a.a)(r)?(c._context=c,c._tapNext=r):r&&(c._context=r,c._tapNext=r.next||i,c._tapError=r.error||i,c._tapComplete=r.complete||i),c}return n.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},837:function(e,t,r){"use strict";r.r(t),r.d(t,"getSrcPage",(function(){return a})),r.d(t,"search",(function(){return s}));var n=r(61),o=r(5),i=r(119);const a=e=>"https://www.ldoceonline.com/dictionary/"+e.trim().split(/\s+/).join("-"),c="https://www.ldoceonline.com",s=(e,t,r,a)=>{const s=r.dicts.all.longman.options;return Object(n.a)("http://www.ldoceonline.com/dictionary/"+e.toLocaleLowerCase().replace(/[^A-Za-z0-9]+/g,"-")).catch(o.g).then(e=>function(e,t){if(e.querySelector(".dictentry"))return function(e,t){const r={type:"lex",bussinessFirst:t.bussinessFirst,contemporary:[],bussiness:[]},n={};e.querySelectorAll(".speaker.exafile").forEach(e=>{const t=e.dataset.srcMp3;if(t){const r=e.parentElement;e.replaceWith(Object(i.d)(t)),r&&r.classList.contains("EXAMPLE")&&r.classList.add("withSpeaker")}}),t.wordfams&&(r.wordfams=Object(o.d)(c,e,".wordfams"));const a=e.querySelectorAll(".dictentry");let s="";for(let e=0;e<a.length;e++){const i=a[e],l=i.querySelector(".dictionary_intro");if(l){const e=l.textContent||"";s=e.includes("Contemporary")?"contemporary":e.includes("Business")?"bussiness":""}if(!s)continue;const u={title:{HWD:"",HYPHENATION:"",HOMNUM:""},prons:[],senses:[]},f=i.querySelector("a.topic");f&&(u.topic={title:f.textContent||"",href:Object(o.c)(c,f,"href")});const d=i.querySelector(".Head");if(!d)continue;u.title.HWD=Object(o.f)(d,".HWD"),u.title.HYPHENATION=Object(o.f)(d,".HYPHENATION"),u.title.HOMNUM=Object(o.f)(d,".HOMNUM"),u.phsym=Object(o.f)(d,".PronCodes");const p=d.querySelector(".LEVEL");if(p){const e={rate:0,title:""};e.rate=((p.textContent||"").match(/●/g)||[]).length,e.title=p.title,u.level=e}u.freq=Array.from(d.querySelectorAll(".FREQ")).map(e=>({title:e.title,rank:e.textContent||""})),u.pos=Object(o.f)(d,".POS"),d.querySelectorAll(".speaker").forEach(e=>{let t="us";e.title.includes("British")&&(t="uk");const r=e.getAttribute("data-src-mp3")||"";n[t]=r,u.prons.push({lang:t,pron:r})}),u.senses=Array.from(i.querySelectorAll(".Sense")).map(e=>Object(o.d)(c,e)),t.collocations&&(u.collocations=Object(o.d)(c,i,".ColloBox")),t.grammar&&(u.grammar=Object(o.d)(c,i,".GramBox")),t.thesaurus&&(u.thesaurus=Object(o.d)(c,i,".ThesBox")),t.examples&&(u.examples=Array.from(i.querySelectorAll(".exaGroup")).map(e=>Object(o.d)(c,e))),r[s].push(u)}if(r.contemporary.length<=0&&r.bussiness.length<=0)return Object(o.h)();return{result:r,audio:n}}(e,t);if(t.related)return function(e){const t=e.querySelector(".didyoumean");if(t)return{result:{type:"related",list:Object(o.d)(c,t)}};return Object(o.h)()}(e);return Object(o.h)()}(e,s))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/36.d7593ada.js b/plugins/saladict-ztools/ext-saladic/assets/36.d7593ada.js deleted file mode 100644 index 00484e33..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/36.d7593ada.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[36],{116:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),o=r(30);function i(e,t){var r=Object(o.e)(o.a),i=Object(o.e)((function(){return e(r.current)}));return[Object(n.useRef)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.current.next(t?t(e):e[0])})).current,i.current]}},119:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return f}));var n=r(0),o=r.n(n),i=r(389),a=r(46);const c=o.a.createContext(async()=>{}),s=e=>{const[t,r]=Object(n.useState)(()=>"string"==typeof e.src?e.src:"#"),a=Object(n.useContext)(c);if(Object(i.a)(()=>{r("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const s=e.width||e.height||"1.2em",u=e.height||s;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:s,height:u},onClick:async n=>{if("#"===t&&"function"==typeof e.src){n.stopPropagation(),n.preventDefault();const t=await e.src();a(t),r(t)}}})};t.c=o.a.memo(s);const u=e=>{const{onPlayStart:t,...r}=e,i=Object(n.useCallback)(e=>{if(e.target&&"A"===e.target.tagName&&e.target.href&&"#"!==e.target.href&&e.target.classList&&e.target.classList.contains("saladict-Speaker")){e.preventDefault(),e.stopPropagation();const r=e.target;r.classList.add("isActive"),Object(a.b)([Object(a.d)(1e3),t(r.href)]).then(()=>{r.classList.remove("isActive")})}},[t]);return o.a.createElement(c.Provider,{value:t},o.a.createElement("div",{onClick:i,...r}))},l=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},f=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""},182:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(30),o=r(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object(o.useRef)(e);r.current=e;var i=Object(n.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=r.current[0],t=e.subscribe({next:function(t){if(e===r.current[0])return r.current[1]?r.current[1](t):void 0},error:function(t){if(e===r.current[0]){if(r.current[2])return c.current=null,r.current[2](t);c.current=t,i()}},complete:function(){if(e===r.current[0])return r.current[3]?r.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"a",(function(){return s})),r.d(t,"e",(function(){return u})),r.d(t,"d",(function(){return l}));var n=r(0),o=r(91),i=r(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function s(){return new o.a}function u(e){var t=Object(n.useRef)(!0),r=Object(n.useRef)(null);return t.current&&(t.current=!1,r.current=e()),r}function l(){var e=Object(n.useState)(0)[1];return Object(n.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect},389:function(e,t,r){"use strict";var n=r(0);t.a=function(e,t){var r=Object(n.useRef)(!0);Object(n.useEffect)((function(){if(!r.current)return e();r.current=!1}),t)}},5:function(e,t,r){"use strict";r.d(t,"h",(function(){return i})),r.d(t,"g",(function(){return a})),r.d(t,"b",(function(){return c})),r.d(t,"f",(function(){return s})),r.d(t,"d",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"i",(function(){return p})),r.d(t,"j",(function(){return m})),r.d(t,"a",(function(){return h})),r.d(t,"c",(function(){return y}));var n=r(507),o=r.n(n);r(0),r(116),r(182),r(10),r(371),r(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await r.e(109).then(r.bind(null,1321))).chsToChz:null}function s(e,...t){if(!e)return"";let r="",n=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?r=t[e]:"function"==typeof t[e]&&(n=t[e]);const o=r?e.querySelector(r):e;if(!o)return"";const i=o.textContent||"";return n?n(i):i}const u={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function l(e,{mode:t="innerHTML",selector:r,transform:n,host:i,config:a=u}={}){const c=r?e.querySelector(r):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const s=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),l=s.firstChild?s.firstChild[t]:"";return n?n(l):l}function f(e,t,r={}){return l(t,"string"==typeof r?{selector:r,host:e,mode:"innerHTML"}:{...r,host:e,mode:"innerHTML"})}function d(e,t,r={}){return l(t,"string"==typeof r?{selector:r,host:e,mode:"outerHTML"}:{...r,host:e,mode:"outerHTML"})}function p(e,t){const r=e.querySelector(t);r&&r.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,r){e.endsWith("/")&&(e=e.slice(0,-1));const n=e.startsWith("https")?"https:":"http:",o=t.getAttribute(r);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?n+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,r){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),r=e(["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"]),n=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),s=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),u=a(["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"]),l=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var r=t.length;r--;){var n=t[r];if("string"==typeof n){var o=n.toLowerCase();o!==n&&(Object.isFrozen(t)||(t[r]=o),n=o)}e[n]=!0}return e}function h(e){var t={},r=void 0;for(r in e)p(f,e,[r])&&(t[r]=e[r]);return t}p||(p=function(e,t,r){return e.apply(t,r)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),b=y(/<%[\s\S]*|[\s\S]*%>/gm),v=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),O=y(/^(?:\w+script|data):/i),x=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function E(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var _=("undefined"!=typeof Reflect&&Reflect).apply,L=Array.prototype.slice,w=Object.freeze,j=function(){return"undefined"==typeof window?null:window};_||(_=function(e,t,r){return e.apply(t,r)});var R=function(e,t){if("object"!==(void 0===e?"undefined":S(e))||"function"!=typeof e.createPolicy)return null;var r=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=t.currentScript.getAttribute("data-tt-policy-suffix"));var n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,k=a.document,N=a.DocumentFragment,M=a.HTMLTemplateElement,C=a.Node,D=a.NodeFilter,H=a.NamedNodeMap,F=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,z=a.Text,q=a.Comment,I=a.DOMParser,P=a.TrustedTypes;if("function"==typeof M){var W=k.createElement("template");W.content&&W.content.ownerDocument&&(k=W.content.ownerDocument)}var U=R(P,d),B=U?U.createHTML(""):"",G=k,$=G.implementation,K=G.createNodeIterator,V=G.getElementsByTagName,Y=G.createDocumentFragment,X=d.importNode,Z={};f.isSupported=$&&void 0!==$.createHTMLDocument&&9!==k.documentMode;var J=g,Q=b,ee=v,te=T,re=O,ne=x,oe=A,ie=null,ae=m({},[].concat(E(t),E(r),E(n),E(o),E(i))),ce=null,se=m({},[].concat(E(c),E(s),E(u),E(l))),ue=null,le=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,be=!1,ve=!1,Te=!1,Ae=!1,Oe=!1,xe=!0,Se=!0,Ee=!1,_e={},Le=m({},["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"]),we=m({},["audio","video","img","source","image"]),je=null,Re=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),ke=null,Ne=k.createElement("form"),Me=function(e){ke&&ke===e||(e&&"object"===(void 0===e?"undefined":S(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):se,je="ADD_URI_SAFE_ATTR"in e?m(h(Re),e.ADD_URI_SAFE_ATTR):Re,ue="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},le="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},_e="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,ve=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,xe=!1!==e.SANITIZE_DOM,Se=!1!==e.KEEP_CONTENT,Ee=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(ve=!0),_e&&(ie=m({},[].concat(E(i))),ce=[],!0===_e.html&&(m(ie,t),m(ce,c)),!0===_e.svg&&(m(ie,r),m(ce,s),m(ce,l)),!0===_e.svgFilters&&(m(ie,n),m(ce,s),m(ce,l)),!0===_e.mathMl&&(m(ie,o),m(ce,u),m(ce,l))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===se&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(je,e.ADD_URI_SAFE_ATTR),Se&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete ue.tbody),w&&w(e),ke=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},De=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,r=void 0;if(be)e="<remove></remove>"+e;else{var n=e.match(/^[\s]+/);(r=n&&n[0])&&(e=e.slice(r.length))}if(p)try{t=(new I).parseFromString(e,"text/html")}catch(e){}if(y&&m(ue,["title"]),!t||!t.documentElement){var o=(t=$.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=U?U.createHTML(e):e}return e&&r&&t.body.insertBefore(k.createTextNode(r),t.body.childNodes[0]||null),V.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var Fe=function(e){return K.call(e.ownerDocument||e,e,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,(function(){return D.FILTER_ACCEPT}),!1)},ze=function(e){return!(e instanceof z||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof F&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},qe=function(e){return"object"===(void 0===C?"undefined":S(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":S(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ie=function(e,t,r){Z[e]&&Z[e].forEach((function(e){e.call(f,t,r,ke)}))},Pe=function(e){var t=void 0;if(Ie("beforeSanitizeElements",e,null),ze(e))return Ce(e),!0;var r=e.nodeName.toLowerCase();if(Ie("uponSanitizeElement",e,{tagName:r,allowedTags:ie}),("svg"===r||"math"===r)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[r]||ue[r]){if(Se&&!Le[r]&&"function"==typeof e.insertAdjacentHTML)try{var n=e.innerHTML;e.insertAdjacentHTML("AfterEnd",U?U.createHTML(n):n)}catch(e){}return Ce(e),!0}return"noscript"===r&&/<\/noscript/i.test(e.innerHTML)||"noembed"===r&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ie("afterSanitizeElements",e,null),!1)},We=function(e,t,r){if(xe&&("id"===t||"name"===t)&&(r in k||r in Ne))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||le[t])return!1;if(je[t]);else if(oe.test(r.replace(ne,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==r.indexOf("data:")||!we[e])if(pe&&!re.test(r.replace(ne,"")));else if(r)return!1}return!0},Ue=function(e){var t=void 0,r=void 0,n=void 0,o=void 0,i=void 0;Ie("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var s=t=a[i],u=s.name,l=s.namespaceURI;if(r=t.value.trim(),n=u.toLowerCase(),c.attrName=n,c.attrValue=r,c.keepAttr=!0,Ie("uponSanitizeAttribute",e,c),r=c.attrValue,"name"===n&&"IMG"===e.nodeName&&a.id)o=a.id,a=_(L,a,[]),De("id",e),De(u,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===n&&"file"===r&&c.keepAttr&&(ce[n]||!le[n]))continue;"id"===u&&e.setAttribute(u,""),De(u,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Le).join("|")+")","i").test(r))De(u,e);else{he&&(r=(r=r.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(We(d,n,r))try{l?e.setAttributeNS(l,u,r):e.setAttribute(u,r),f.removed.pop()}catch(e){}}}Ie("afterSanitizeAttributes",e,null)}},Be=function e(t){var r=void 0,n=Fe(t);for(Ie("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)Ie("uponSanitizeShadowNode",r,null),Pe(r)||(r.content instanceof N&&e(r.content),Ue(r));Ie("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var r=void 0,n=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!qe(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===S(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(qe(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||Me(t),f.removed=[],Ee);else if(e instanceof C)1===(n=(r=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?r=n:r.appendChild(n);else{if(!ve&&!he&&!ye&&Oe&&-1===e.indexOf("<"))return U?U.createHTML(e):e;if(!(r=He(e)))return ve?null:B}r&&be&&Ce(r.firstChild);for(var s=Fe(Ee?e:r);o=s.nextNode();)3===o.nodeType&&o===i||Pe(o)||(o.content instanceof N&&Be(o.content),Ue(o),i=o);if(i=null,Ee)return e;if(ve){if(Te)for(c=Y.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return Ae&&(c=X.call(d,c,!0)),c}var u=ye?r.outerHTML:r.innerHTML;return he&&(u=(u=u.replace(J," ")).replace(Q," ")),U&&Oe?U.createHTML(u):u},f.setConfig=function(e){Me(e),ge=!0},f.clearConfig=function(){ke=null,ge=!1},f.isValidAttribute=function(e,t,r){ke||Me({});var n=e.toLowerCase(),o=t.toLowerCase();return We(n,o,r)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));r(507);var n=r(131),o=r.n(n);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(3),o=r(7);function i(){}var a=r(45);function c(e,t,r){return function(n){return n.lift(new s(e,t,r))}}var s=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.nextOrObserver,this.error,this.complete))},e}(),u=function(e){function t(t,r,n,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=n||i,c._tapComplete=o||i,Object(a.a)(r)?(c._context=c,c._tapNext=r):r&&(c._context=r,c._tapNext=r.next||i,c._tapError=r.error||i,c._tapComplete=r.complete||i),c}return n.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},850:function(e,t,r){"use strict";r.r(t),r.d(t,"getSrcPage",(function(){return a})),r.d(t,"search",(function(){return s}));var n=r(61),o=r(5),i=r(119);const a=e=>"https://ejje.weblio.jp/content/"+encodeURIComponent(e.replace(/\s+/g,"+")),c="https://ejje.weblio.jp",s=(e,t,r,i)=>Object(n.a)(a(e,t,r)).catch(o.g).then(u);function u(e){const t=[];return e.querySelectorAll(".mainBlock").forEach(e=>{if("summary"===e.id){let r="";const n=e.querySelector(".summaryTbl");if(n){r+=Object(o.e)(c,n,".summaryL h1");const e=n.querySelector(".summaryC audio source");e&&(r+=Object(i.e)(e.getAttribute("src"))),n.outerHTML=`<div class="summaryHead">${r}</div>`}return Object(o.j)(e,"#leadBtnWrp"),Object(o.j)(e,".addLmFdWr"),Object(o.j)(e,".flex-rectangle-ads-frame"),Object(o.j)(e,".outsideLlTable"),void t.push({content:Object(o.e)(c,e)})}if(!e.className.includes("hlt_")||e.classList.contains("hlt_CPRHT")||e.classList.contains("hlt_RLTED"))return;let r="",n=e.querySelector(".wrp");if(n){if(r=Object(o.f)(n,".dictNm"),r.includes("Wiktionary"))return;n.remove()}else n=e.querySelector(".qotH"),n&&(r=Object(o.f)(n,".qotHT"),n.remove());Object(o.j)(e,".hideDictWrp"),Object(o.j)(e,".kijiFoot"),Object(o.j)(e,".addToSlBtnCntner"),e.querySelectorAll(".fa-volume-up").forEach(e=>{const t=e.querySelector("source");t&&e.replaceWith(Object(i.d)(t.getAttribute("src")))}),e.querySelectorAll("br").forEach(e=>{e.classList.add("br"),e.outerHTML=`<div class="${e.className}"></div>`}),e.querySelectorAll("a").forEach(e=>{e.classList.contains("crosslink")||Object(o.a)(e)}),t.push({title:r,content:Object(o.e)(c,e)})}),t.length>0?{result:t}:Object(o.h)()}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/63.08a5b88c.js b/plugins/saladict-ztools/ext-saladic/assets/36.f8aea283.js similarity index 99% rename from plugins/saladict-ztools/ext-saladic/assets/63.08a5b88c.js rename to plugins/saladict-ztools/ext-saladic/assets/36.f8aea283.js index efb7c0e9..f9c77dd3 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/63.08a5b88c.js +++ b/plugins/saladict-ztools/ext-saladic/assets/36.f8aea283.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[63],{1338:function(t,n,o){(n=o(221)(!1)).push([t.i,'.dictCOBUILD-Title{font-size:1.5em;font-weight:700}.dictCOBUILD-Pron{display:flex;margin-bottom:5px}.dictCOBUILD-PronItem{margin-right:1em}.dictCOBUILD-PronItem .icon-Speaker{margin-left:2px}.dictCOBUILD-Rate{display:flex;margin-bottom:5px}.dictCOBUILD-Level{margin-left:10px;color:#aaa}.dictCOBUILD-Defs{margin:0;padding-left:15px}.dictCOBUILD-Def p{margin:0}.dictCOBUILD-Def b{color:#f9690e}.dictCOBUILD-Def .prep-en{display:block;margin-bottom:5px}.dictCOBUILD-Def .text-sentence{padding-left:10px;padding-bottom:5px;color:var(--color-font-grey);border-left:var(--color-font-grey) solid 1px}.dictCOBUILD-Def .text-sentence:last-child{padding-bottom:0;margin-bottom:10px}.dictCOBUILD-ColEntry *{word-wrap:break-word;margin:0;padding:0;border:0;box-sizing:border-box}.dictCOBUILD-ColEntry .padLeft{padding-left:20px}.dictCOBUILD-ColEntry .textCenter{text-align:center}.dictCOBUILD-ColEntry ol,.dictCOBUILD-ColEntry ul{list-style-type:none}.dictCOBUILD-ColEntry q{quotes:none}.dictCOBUILD-ColEntry button,.dictCOBUILD-ColEntry input,.dictCOBUILD-ColEntry select{font-size:inherit;color:inherit;padding:.5em;border:solid 1px #c3c3c3}.dictCOBUILD-ColEntry label{display:block}.dictCOBUILD-ColEntry label.inline{display:inline}.dictCOBUILD-ColEntry button{cursor:pointer}.dictCOBUILD-ColEntry h1{font-size:2em;line-height:1.4em}.dictCOBUILD-ColEntry h2{font-size:1.2em}.dictCOBUILD-ColEntry .center{display:table;margin:0 auto}.dictCOBUILD-ColEntry .clear:after,.dictCOBUILD-ColEntry .clear:before{content:" ";display:block;height:0;overflow:hidden}.dictCOBUILD-ColEntry .clear:after{clear:both}.dictCOBUILD-ColEntry .floatRight{float:right}.dictCOBUILD-ColEntry .discrete{font-size:.85em;color:#888}.dictCOBUILD-ColEntry .text-right{text-align:right}.dictCOBUILD-ColEntry .columns-block{page-break-inside:avoid;break-inside:avoid;display:table;width:100%}.dictCOBUILD-ColEntry .white .topslot_container{margin-left:auto;margin-right:auto}.dictCOBUILD-ColEntry #ad_rightslot,.dictCOBUILD-ColEntry #ad_rightslot2,.dictCOBUILD-ColEntry .topslot_container{margin-bottom:20px}.dictCOBUILD-ColEntry .ac_leftslot_a{min-height:600px}.dictCOBUILD-ColEntry .btmslot_a-container{width:100%}.dictCOBUILD-ColEntry .content-box{padding:0;margin-bottom:1em;page-break-inside:avoid;break-inside:avoid}.dictCOBUILD-ColEntry .content-box .h2,.dictCOBUILD-ColEntry .content-box h2{margin-bottom:.5em}.dictCOBUILD-ColEntry .content-box .view_more a{opacity:.7;text-decoration:none;margin-top:1em;display:block;font-size:.8em}.dictCOBUILD-ColEntry .lsw{font-weight:700}.dictCOBUILD-ColEntry .lsw a{text-decoration:none}.dictCOBUILD-ColEntry .lsw[data-type=trends] a{margin-left:.5em}.dictCOBUILD-ColEntry .lsw[data-type=trends] .percentVariation .icon-fiber_new{font-size:2em}.dictCOBUILD-ColEntry .lsw[data-type=trends] .percentVariation{display:inline-block;min-width:3em;text-align:right}.dictCOBUILD-ColEntry .lsw i{font-size:1.3em;vertical-align:sub;margin-right:5px}.dictCOBUILD-ColEntry .lsw .lsw_title{font-size:1.5em;margin-bottom:1em}.dictCOBUILD-ColEntry .lsw[data-type=trends] .lsw_title{margin-bottom:.3em}.dictCOBUILD-ColEntry .lsw .lsw_title i{font-size:3em;color:#7e7b87;margin-right:10px}.dictCOBUILD-ColEntry .lsw .view_more{border:solid 1px #1c4b8b;padding:20px;display:inline-block;background:#e8e8e8;margin:1em 20px 0;font-size:1.1em;padding:15px 25px}.dictCOBUILD-ColEntry .lsw .lsw_list{margin-left:1em}.dictCOBUILD-ColEntry .lsw[data-type=trends] .lsw_list{line-height:1.2em}.dictCOBUILD-ColEntry .lsw .lsw_list li{margin-bottom:5px}.dictCOBUILD-ColEntry .lsw .lsw_list span{font-size:.7em;color:gray}.dictCOBUILD-ColEntry .lsw i.green{color:green}.dictCOBUILD-ColEntry .lsw i.red{color:#e05555}.dictCOBUILD-ColEntry .lgg{background:0;font-weight:700;border:0;box-shadow:none;font-size:1.2em;padding:0}.dictCOBUILD-ColEntry .lgg .margin,.dictCOBUILD-ColEntry .lgg h2{color:var(--color-font-grey);text-align:center;padding:21px 5px;margin-bottom:5px}.dictCOBUILD-ColEntry .lgg a{text-decoration:none;margin-bottom:5px;text-align:center;padding:10px;border:1px solid rgba(216,216,216,.7);border-radius:5px;background-color:#e5ebf3;display:block}.dictCOBUILD-ColEntry .lgg a:hover{border:1px solid rgba(144,144,144,.7);background-color:rgba(187,183,183,.37)}.dictCOBUILD-ColEntry .def-dict{text-decoration:none;display:block;box-shadow:0 0 3px rgba(0,0,0,.2);background:#e5ebf3;color:#194885}.dictCOBUILD-ColEntry .def-dict-title{font-size:1.6em;margin:.5em 0 1em 0;font-weight:700}.dictCOBUILD-ColEntry .def-dict-footer{margin-top:1em;font-weight:700;color:#1c4b8b}.dictCOBUILD-ColEntry .def-dict-footer i{font-size:1.5em;vertical-align:text-top;margin-right:10px}.dictCOBUILD-ColEntry .toc{padding:0 10px;text-align:center;margin-bottom:.5em}.dictCOBUILD-ColEntry .toc-group{display:inline-block;margin-right:1em}.dictCOBUILD-ColEntry .related{page-break-inside:avoid;break-inside:avoid}.dictCOBUILD-ColEntry .related-title{font-weight:700;text-decoration:none;border-bottom:1px dotted}.dictCOBUILD-ColEntry .related-definition{font-style:italic}.dictCOBUILD-ColEntry .promoBoxGrammar{overflow:hidden}.dictCOBUILD-ColEntry .promoBoxGrammar .entry_container ul{overflow:hidden}.dictCOBUILD-ColEntry .promoBoxGrammar .entry_container{box-shadow:none;background-color:#fff;overflow-y:auto;max-height:400px}.dictCOBUILD-ColEntry .browse-block{page-break-inside:avoid;break-inside:avoid}.dictCOBUILD-ColEntry .dc .cobuild-logo{display:none;width:150px;height:20px;background-size:contain;background-repeat:no-repeat;background-position:center center;float:right;text-decoration:none;border:0;margin-top:5px}.dictCOBUILD-ColEntry .dc .cobuild-logo.partner{width:200px;background-image:url(https://www.collinsdictionary.com/external/images/cobuild-word-partner.png?version=3.1.211);margin-right:.5em;margin-top:10px}.dictCOBUILD-ColEntry .beta{background-image:url(https://www.collinsdictionary.com/external/images/beta.png?version=3.1.211);background-repeat:no-repeat;background-position:50% 50%;background-size:75%;display:inline-block;width:80px}.dictCOBUILD-ColEntry .dc .cobuild-partner{float:right}.dictCOBUILD-ColEntry .dc .expandable-list{padding:.1em}.dictCOBUILD-ColEntry .dc .content-box{padding-top:0}.dictCOBUILD-ColEntry .dc .content-box-thesaurus{margin-top:20px}.dictCOBUILD-ColEntry .dc .content-box-header:after{content:" ";display:block;clear:both}.dictCOBUILD-ColEntry .dc .content-box-header{background:#e5ebf3;padding:.5em 15px}.dictCOBUILD-ColEntry .cdet .dc .content-box .content-box-header,.dictCOBUILD-ColEntry .dc .content .content-box-header{background:0;padding:0;margin:0}.dictCOBUILD-ColEntry .dc .content-box-collocation.cobuild .content-box-header,.dictCOBUILD-ColEntry .dc .content-box-definition.cobuild .content-box-header,.dictCOBUILD-ColEntry .dc .content-box-learners .content-box-header{background:#ccedf0}.dictCOBUILD-ColEntry .dc .content-box-examples .content-box-header{background:#deefe3}.dictCOBUILD-ColEntry .dc .content-box-translations .content-box-header{background:#fff6dd}.dictCOBUILD-ColEntry .dc .content-box-nearby-words .content-box-header{background:#ffefeb}.dictCOBUILD-ColEntry .dc .content-box-origin .content-box-header{background:#eff7ff}.dictCOBUILD-ColEntry .dc .content-box-comments .content-box-header{background:#dbf7dc}.dictCOBUILD-ColEntry .dc .content-box-usage .content-box-header{background:#e9ffe3}.dictCOBUILD-ColEntry .dc .content-box-images .content-box-header{background:#f4ffd4}.dictCOBUILD-ColEntry .dc .content-box-videos .content-box-header{background:#ffebeb}.dictCOBUILD-ColEntry .dc .content-box-wordlists .content-box-header{background:#fff1e6}.dictCOBUILD-ColEntry .dc .content-box-quotations .content-box-header{background:#fff1e6}.dictCOBUILD-ColEntry .dc .content-box-related-terms .content-box-header{background:#fffeec}.dictCOBUILD-ColEntry .dc .content-box-header .h2_entry{margin-bottom:0}.dictCOBUILD-ColEntry .dc .content-box-videos .entryVideo{width:100%;max-width:640px;height:320px}.dictCOBUILD-ColEntry .dc .h2_entry{display:none;font-size:1.4em;margin-bottom:.5em}.dictCOBUILD-ColEntry .dc .content-box-definition h2.h2_entry{font-size:1.8em;line-height:1}.dictCOBUILD-ColEntry .dc .content-box-examples h2.h2_entry{display:inline-block}.dictCOBUILD-ColEntry .dc .definitions .thes{margin-top:.8em}.dictCOBUILD-ColEntry .dc .example_box,.dictCOBUILD-ColEntry .dc .link-right.verbtable,.dictCOBUILD-ColEntry .dc .thesaurus_synonyms,.dictCOBUILD-ColEntry .dc ol li,.dictCOBUILD-ColEntry .verbtable_content .headword_link{margin-bottom:1em}.dictCOBUILD-ColEntry .dc .h3_entry{font-size:1.3em;margin:.5em 0}.dictCOBUILD-ColEntry .dc .sense_list .scbold{display:block;font-style:italic;font-family:"Times New Roman",Times,serif;border-bottom:1px dotted #c5c5c5}.dictCOBUILD-ColEntry .dc .blackbold,.dictCOBUILD-ColEntry .dc .cit-type-example .orth,.dictCOBUILD-ColEntry .dc .content-box-nearby-words .current,.dictCOBUILD-ColEntry .dc .content-box-synonyms .firstSyn,.dictCOBUILD-ColEntry .dc .content-box-translation .phr,.dictCOBUILD-ColEntry .dc .example_box .author,.dictCOBUILD-ColEntry .dc .mini_h2 .orth,.dictCOBUILD-ColEntry .dc .thesaurus_synonyms .synonym:first-of-type,.dictCOBUILD-ColEntry .dc strong{font-weight:700}.dictCOBUILD-ColEntry .dc .blackbold{color:#000}.dictCOBUILD-ColEntry .dc .school .def{display:inline}.dictCOBUILD-ColEntry .dc .def{font-size:1.15em;margin-bottom:.5em;line-height:1.5em}.dictCOBUILD-ColEntry .dc .sensenumdef .def{font-size:1.1em;margin:.5em 0}.dictCOBUILD-ColEntry .dc .hom ol ol{list-style-type:lower-alpha}.dictCOBUILD-ColEntry .dc #synonyms_content:first-of-type{border:0}.dictCOBUILD-ColEntry .dc #synonyms_content{border-top:1px dotted #c5c5c5;padding-top:12px}.dictCOBUILD-ColEntry .dc #synonyms_content .thesaurus_synonyms .lbl,.dictCOBUILD-ColEntry .dc #synonyms_content .thesaurus_synonyms .misc,.dictCOBUILD-ColEntry .dc .colloc,.dictCOBUILD-ColEntry .dc .lbl.misc,.dictCOBUILD-ColEntry .dc .lbl.type-register{font-style:italic}.dictCOBUILD-ColEntry .dc .lbl.type-curric{font-variant:small-caps}.dictCOBUILD-ColEntry .school .form.type-drv .orth,.dictCOBUILD-ColEntry .school .form.type-phrasalverb .orth{font-weight:700;font-size:1.1em}.dictCOBUILD-ColEntry .school .fraction{display:inline-block;position:relative;vertical-align:middle;letter-spacing:.001em;text-align:center;padding-left:3px;padding-right:3px;font-size:.7em;line-height:1.1em}.dictCOBUILD-ColEntry .school .fraction>span{display:none;padding:0 .2em}.dictCOBUILD-ColEntry .school .fraction>.denominator{border-top:thin solid #000}.dictCOBUILD-ColEntry .school .fraction>.denominator,.dictCOBUILD-ColEntry .school .fraction>.numerator{display:block}.dictCOBUILD-ColEntry .dc .lbl.type-syntax{font-size:.8em;color:var(--color-font-grey)}.dictCOBUILD-ColEntry .dc ol{list-style-position:outside;list-style-type:decimal;margin-left:2em}.dictCOBUILD-ColEntry .dc ol ol.single,.dictCOBUILD-ColEntry .dc ol.single{list-style-type:none}.dictCOBUILD-ColEntry .dc .content-box-synonyms .h2_entry{display:inline-block}.dictCOBUILD-ColEntry .dc .content-box-collocation .explore-collocation,.dictCOBUILD-ColEntry .dc .content-box-synonyms .extra-link{display:inline-block;margin-left:1em}.dictCOBUILD-ColEntry .dc .thesaurus_synonyms .firstSyn{font-weight:700;display:inline-block;border-width:1px;border-style:solid;border-color:initial;border-image:initial;padding:5px 11px 2px;margin:0 5px 0 0}.dictCOBUILD-ColEntry .dc .thesaurus_synonyms .firstSyn>a{text-decoration:none}.dictCOBUILD-ColEntry .dc .content-box-examples .button,.dictCOBUILD-ColEntry .dc .content-box-synonyms .thesaurus-link-plus,.dictCOBUILD-ColEntry .dc .extra-link,.dictCOBUILD-ColEntry .dc .link-right.verbtable,.dictCOBUILD-ColEntry .dc .ref.type-thesaurus,.dictCOBUILD-ColEntry .verbtable_content .headword_link{background:rgba(218,218,218,.5);display:inline-block;padding:2px 10px;border:0;text-decoration:none;display:inline-block;font-weight:700;font-size:.9em;margin-top:2px}.dictCOBUILD-ColEntry .dc .h2_entry .dictname,.dictCOBUILD-ColEntry .dc .h2_entry .lbl.type-misc{font-size:16px}.dictCOBUILD-ColEntry .dc .translation .lang_EN-GB{margin-bottom:10px}.dictCOBUILD-ColEntry .dc .translation .def{font-weight:700;font-size:inherit}.dictCOBUILD-ColEntry .dc .translation .example{display:block;font-style:italic;margin-bottom:1em}.dictCOBUILD-ColEntry .dc .translation_list{margin:1em 0}.dictCOBUILD-ColEntry .dc .translation_list .gramGrp{text-transform:lowercase}.dictCOBUILD-ColEntry .audio_play_button,.dictCOBUILD-ColEntry .dc .audio_play_button{color:#ec2615;vertical-align:middle;transition:transform .2s,text-shadow .2s;border:0}.dictCOBUILD-ColEntry .dc .h1_entry{font-size:1.8em;line-height:1.75em}.dictCOBUILD-ColEntry .dc .entry_title{font-size:1.5em;line-height:1.4em;text-align:left;color:#4d4e51;font-weight:700}.dictCOBUILD-ColEntry .dc .gotodict{float:right;line-height:3.9em}.dictCOBUILD-ColEntry .dc .h2_entry .homnum{background-color:#1c4b8b;color:#fff;font-size:12px;font-weight:700;padding:2px 5px;vertical-align:super}.dictCOBUILD-ColEntry .context-english-thesaurus .quote{display:block;margin-top:10px}.dictCOBUILD-ColEntry .dc .dictionary .quote{color:var(--color-font-grey)}.dictCOBUILD-ColEntry .dc .dictionary .cit.type-translation .quote{font-weight:700}.dictCOBUILD-ColEntry .dc .dictionary .cit.type-example .quote .emph{color:var(--color-brand)}.dictCOBUILD-ColEntry .context-english-thesaurus .scbold br{display:none}.dictCOBUILD-ColEntry .context-english-thesaurus .dc .sense_list .scbold{border-bottom:0}.dictCOBUILD-ColEntry .context-english-thesaurus .scbold{display:block;font-style:italic;font-family:"Times New Roman",Times,serif;border-bottom:0;margin-top:15px;margin-bottom:5px;font-weight:700}.dictCOBUILD-ColEntry .dc .sup{vertical-align:super;font-size:smaller}.dictCOBUILD-ColEntry .dc .content-box:after,.dictCOBUILD-ColEntry .dc .dictionary .content:after{content:"";clear:both;display:table}.dictCOBUILD-ColEntry .dc .cit.type-quotation .quote,.dictCOBUILD-ColEntry .dc .content-box-examples .quote,.dictCOBUILD-ColEntry .dc .content-box-quotations .quote,.dictCOBUILD-ColEntry .dc .content-box-thesaurus .quote{display:block;margin-top:1em}.dictCOBUILD-ColEntry .dc .cit.type-quotation .author,.dictCOBUILD-ColEntry .dc .content-box-examples .author,.dictCOBUILD-ColEntry .dc .content-box-quotations .author,.dictCOBUILD-ColEntry .dc .content-box-thesaurus .author{font-weight:700;font-style:italic;font-size:.8em}.dictCOBUILD-ColEntry .dc .cit.type-quotation .title,.dictCOBUILD-ColEntry .dc .content-box-examples .title,.dictCOBUILD-ColEntry .dc .content-box-quotations .title,.dictCOBUILD-ColEntry .dc .content-box-thesaurus .title{display:inline;font-variant:small-caps;font-style:italic;font-size:.8em}.dictCOBUILD-ColEntry .dc .cit.type-quotation .year,.dictCOBUILD-ColEntry .dc .content-box-examples .year,.dictCOBUILD-ColEntry .dc .content-box-quotations .year,.dictCOBUILD-ColEntry .dc .content-box-thesaurus .year{font-size:.8em;font-style:italic}.dictCOBUILD-ColEntry .context-dataset-english-thesaurus .author,.dictCOBUILD-ColEntry .dc .content-box-syn-of-syns div.type-syn_of_syn_head .orth,.dictCOBUILD-ColEntry .dc .rend-b,.dictCOBUILD-ColEntry .dc .thesbase .key,.dictCOBUILD-ColEntry .headwordSense{color:var(--color-brand)}.dictCOBUILD-ColEntry .dc .minimalunit{font-weight:700}.dictCOBUILD-ColEntry .dc .image{background:#fafafa;border:solid 1px #eee;display:inline-block}.dictCOBUILD-ColEntry .dc .image .imageImg{max-width:100%;max-height:250px;vertical-align:middle}.dictCOBUILD-ColEntry .dc .image .imageDescription{font-style:italic;font-size:.8em;padding:0 5px}.dictCOBUILD-ColEntry .dc .example-info i{color:red;font-size:21px;vertical-align:text-top;border-bottom:0}.dictCOBUILD-ColEntry .dc .example-info{font-style:italic;font-size:.9em}.dictCOBUILD-ColEntry .page{font-size:1em}.dictCOBUILD-ColEntry .page .dictname{font-size:.7em}.dictCOBUILD-ColEntry .page .dictionary .copyright .i{color:gray}.dictCOBUILD-ColEntry .page .copyright{text-align:center;color:gray;font-size:small;margin-top:10px}.dictCOBUILD-ColEntry .page .metadata{display:none}.dictCOBUILD-ColEntry .page .description,.dictCOBUILD-ColEntry .page .infls,.dictCOBUILD-ColEntry .page .og,.dictCOBUILD-ColEntry .page .summary,.dictCOBUILD-ColEntry .page .title,.dictCOBUILD-ColEntry .page .url{display:block}.dictCOBUILD-ColEntry .page .assetref{display:block}.dictCOBUILD-ColEntry .page .assettype{font-weight:700;color:#00f}.dictCOBUILD-ColEntry .page .colloList,.dictCOBUILD-ColEntry .page .dictentry{margin-bottom:20px}.dictCOBUILD-ColEntry .page .asset_intro,.dictCOBUILD-ColEntry .page .assets_intro{color:green;display:block;font-weight:700;font-variant:small-caps}.dictCOBUILD-ColEntry .page .dictionary .re .hom{display:inline}.dictCOBUILD-ColEntry .page .dictionary .re{display:block}.dictCOBUILD-ColEntry .page .cobuild .hom{display:block;margin-left:1.5em;margin-bottom:1em}.dictCOBUILD-ColEntry .page .cobuild .sense{margin-left:0;margin-bottom:0;margin-top:.25em}.dictCOBUILD-ColEntry .page .dictionary .sense{display:block;margin-left:1.5em;margin-bottom:.5em;margin-top:.5em}.dictCOBUILD-ColEntry .page .dictionary .sense.inline{display:inline;margin-left:0}.dictCOBUILD-ColEntry .page .dictionary .inline{display:inline}.dictCOBUILD-ColEntry .page .dictionary .newline{display:block}.dictCOBUILD-ColEntry .page .cobuild br{display:none}.dictCOBUILD-ColEntry .page .dictionary .colloc,.dictCOBUILD-ColEntry .page .dictionary .subc{font-style:italic;font-weight:400}.dictCOBUILD-ColEntry .page .dictionary .re .pos{font-style:italic;color:#000}.dictCOBUILD-ColEntry .page .dictionary .b,.dictCOBUILD-ColEntry .page .dictionary .emph,.dictCOBUILD-ColEntry .page .dictionary .form.type-drv .orth,.dictCOBUILD-ColEntry .page .dictionary .form.type-infl .orth,.dictCOBUILD-ColEntry .page .dictionary .hi.rend-b{font-weight:700}.dictCOBUILD-ColEntry .page .dictionary .form.type-inflected{display:none}.dictCOBUILD-ColEntry .page .dictionary .emph,.dictCOBUILD-ColEntry .page .dictionary .hi.rend-b{font-weight:700}.dictCOBUILD-ColEntry .page .dictionary .hi.rend-sc{font-variant:small-caps}.dictCOBUILD-ColEntry .page .dictionary .hi.rend-u{text-decoration:underline;font-size:inherit}.dictCOBUILD-ColEntry .page .dictionary .hi.rend-r{font-weight:400;font-style:normal}.dictCOBUILD-ColEntry .page .dictionary .hi.rend-sup,.dictCOBUILD-ColEntry .page .dictionary .sup{vertical-align:super;font-size:smaller}.dictCOBUILD-ColEntry .page .dictionary .hi.rend-sub,.dictCOBUILD-ColEntry .page .dictionary .sub{vertical-align:sub;font-size:smaller}.dictCOBUILD-ColEntry .page .dictionary .hi.rend-i{font-style:italic}.dictCOBUILD-ColEntry .page .dictionary .i{font-weight:400;font-style:italic;color:#000}.dictCOBUILD-ColEntry .page .dictionary .note{color:#000;line-height:1.4em;font-style:normal;background-color:#e9eef4;margin:6px 0;padding:6px 4px 6px 18px;font-weight:400;display:block}.dictCOBUILD-ColEntry .page .dictionary .posp{font-size:80%;text-transform:uppercase}.dictCOBUILD-ColEntry .page .dictionary .r{font-style:normal}.dictCOBUILD-ColEntry .page .dictionary .u{text-decoration:underline}.dictCOBUILD-ColEntry .page .dictionary .block{display:block;margin-top:3px}.dictCOBUILD-ColEntry .page .hin .block{display:block;margin-top:15px;margin-bottom:7.5px}.dictCOBUILD-ColEntry .page .dictionary .bolditalic{font-weight:700;font-style:italic}.dictCOBUILD-ColEntry .page span.bluebold{font-weight:700;color:#1c4b8b}.dictCOBUILD-ColEntry .page span.ital,.dictCOBUILD-ColEntry .page span.italics{font-style:italic}.dictCOBUILD-ColEntry .page span.sensenum{margin-left:-1.3em;float:left;font-weight:700;font-size:1.1em}.dictCOBUILD-ColEntry .page .dictionary .cit.type-translation .quote{font-style:normal;color:var(--color-brand)}.dictCOBUILD-ColEntry .page .dictionary .cit.type-translation .pos,.dictCOBUILD-ColEntry .page .dictionary .var,.dictCOBUILD-ColEntry .page span.bold{font-style:bold}.dictCOBUILD-ColEntry .dc a,.dictCOBUILD-ColEntry .openerBig{cursor:pointer;color:inherit;text-decoration:none}.dictCOBUILD-ColEntry label.openerBig{display:inline}.dictCOBUILD-ColEntry .page .dictionary a:hover{color:#f9690e}.dictCOBUILD-ColEntry .page .dictionary .power{float:right}.dictCOBUILD-ColEntry .page .dictionary .power .i{color:#1c4b8b;font-size:inherit}.dictCOBUILD-ColEntry .page .dictionary .hom_subsec{display:block}.dictCOBUILD-ColEntry .page .dictionary .definitions,.dictCOBUILD-ColEntry .page .dictionary .derivs,.dictCOBUILD-ColEntry .page .dictionary .etyms{margin-bottom:1em}.dictCOBUILD-ColEntry .page .dictionary .inflected_forms{display:block;padding-bottom:1.25em}.dictCOBUILD-ColEntry .page .dictionary .scbold{font-weight:700;text-transform:uppercase;font-size:.8em}.dictCOBUILD-ColEntry .page .dictionary .note .scbold{display:block}.dictCOBUILD-ColEntry .page .dictionary .pron .ptr{color:red}.dictCOBUILD-ColEntry .page .dictionary .list,.dictCOBUILD-ColEntry .page .dictionary .relwordgrp{display:block;margin-left:20px}.dictCOBUILD-ColEntry .page .dictionary .listitem,.dictCOBUILD-ColEntry .page .dictionary .relwordunit{display:list-item}.dictCOBUILD-ColEntry .page .dictionary .type-antgrp,.dictCOBUILD-ColEntry .page .dictionary .type-syngrp{display:block}.dictCOBUILD-ColEntry .page .asset.Corpus_Examples_EN .quote{font-style:italic}.dictCOBUILD-ColEntry .page .cobuild .sense{margin-left:0}.dictCOBUILD-ColEntry .page .cit.type-example .content{background-color:#fff;margin-bottom:20px;padding:20px}.dictCOBUILD-ColEntry .page .cit.type-example .author{font-weight:700;font-style:italic}.dictCOBUILD-ColEntry .page .cit.type-example .title{display:inline;font-variant:small-caps;font-style:italic}.dictCOBUILD-ColEntry .page .cit.type-example .ref.type-def{text-decoration:none;color:inherit}.dictCOBUILD-ColEntry .page .biling .lbl{font-style:italic;font-variant:initial;font-weight:initial}.dictCOBUILD-ColEntry .page .biling .lbl.type-subj{font-variant:small-caps}.dictCOBUILD-ColEntry .page .biling .lbl.type-tm{font-style:normal}.dictCOBUILD-ColEntry .page .biling .lbl.type-tm_hw{font-size:.78em}.dictCOBUILD-ColEntry .page .biling .lbl.type-infl,.dictCOBUILD-ColEntry .page .biling .lbl.type-infl span{font-style:normal;color:#1c4b8b;font-weight:400}.dictCOBUILD-ColEntry .page .biling br{display:none}.dictCOBUILD-ColEntry .page .biling .phrasals .re .orth{font-size:1.25em}.dictCOBUILD-ColEntry .page .biling .sense .re{font-size:100%;margin-left:0}.dictCOBUILD-ColEntry .page .hin .form.type-ant .orth,.dictCOBUILD-ColEntry .page .hin .form.type-phr .orth,.dictCOBUILD-ColEntry .page .hin .form.type-syn .orth{font-weight:400;font-size:100%}.dictCOBUILD-ColEntry .page .biling .re{display:block;margin-left:1em}.dictCOBUILD-ColEntry .page .thesbase .synunit .cit{display:inline}.dictCOBUILD-ColEntry .page .thesbase .xr.type-theslink{display:inline-block;margin-left:20px}.dictCOBUILD-ColEntry .page .thesbase .relwgrp{display:block;margin-left:1em}.dictCOBUILD-ColEntry .page .thesbase .caption{display:block;font-weight:700;margin-top:10px;font-size:larger}.dictCOBUILD-ColEntry .page .thesbase .bibl,.dictCOBUILD-ColEntry .page .thesbase .cit.type-proverb,.dictCOBUILD-ColEntry .page .thesbase .table{display:block}.dictCOBUILD-ColEntry .page .thesbase .bibl .title{display:inline}.dictCOBUILD-ColEntry .page .thesbase .tr{display:table-row}.dictCOBUILD-ColEntry .page .thesbase .td{display:table-cell;padding:3px}.dictCOBUILD-ColEntry .page .thesbase .th{display:table-cell;font-weight:700}.dictCOBUILD-ColEntry .page .thesbase .cit.type-example .quote{padding-left:10px}.dictCOBUILD-ColEntry .page .thesbase .note{background-color:transparent;padding:0;margin-top:10px;overflow:hidden}.dictCOBUILD-ColEntry .page .thesbase .note .tr{display:block;margin-bottom:20px}.dictCOBUILD-ColEntry .page .thesbase .tr .td:first-child{background-color:#e9eef4;font-weight:700;color:#1c4b8b;padding:5px 15px}.dictCOBUILD-ColEntry .page .thesbase .note .td{padding:8px 15px;display:block}.dictCOBUILD-ColEntry .page .thesbase .note .th{display:none}.dictCOBUILD-ColEntry .page .thesbase .link{text-decoration:underline;font-family:"Open Sans",sans-serif;background:#e5ebf3;color:#1c4b8b;padding:.3em .8em;margin:5px 0;display:inline-block}.dictCOBUILD-ColEntry .page .thesbase .sense{margin-bottom:2em}.dictCOBUILD-ColEntry .page .thesbase .author{font-weight:700;font-style:italic}.dictCOBUILD-ColEntry .cdet .content-box-origin{padding-top:0;padding-bottom:0}.dictCOBUILD-ColEntry .page .thesbase .sensehead>.sensenum{float:none}.dictCOBUILD-ColEntry .page .thesbase .scbold{background:#efefef;padding:.5em 22px;margin:2em 0 1em 0;font-weight:700;font-size:80%;text-transform:uppercase;display:block}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns div.type-syn_of_syn_head{display:inline-block}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns div.type-syn_of_syn_head .orth,.dictCOBUILD-ColEntry .page .thesbase .key{font-weight:700;margin-right:0;display:inline-block;margin-left:0;padding:.3em .3em;border:0;font-size:1.1em;padding-left:0;padding-bottom:0}.dictCOBUILD-ColEntry .headwordSense{font-weight:700;display:inline-block;font-size:1.1em;cursor:pointer}.dictCOBUILD-ColEntry .page .thesbase .key{padding-right:0}.dictCOBUILD-ColEntry .page .thesbase h2.first-sense{display:inline;font-size:inherit}.dictCOBUILD-ColEntry .thesbase ol.square{margin-left:1.6em}.dictCOBUILD-ColEntry .page .thesbase .firstSyn{color:#000;font-size:.9em}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .syns_head{margin-top:2.2em}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .syns_example{line-height:2.5em}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .columns3,.dictCOBUILD-ColEntry .page .type-ant.columns3{column-count:3}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .syns_items{display:block}.dictCOBUILD-ColEntry .pagination{text-align:center;margin:1em}.dictCOBUILD-ColEntry .pagination a.next,.dictCOBUILD-ColEntry .pagination a.page,.dictCOBUILD-ColEntry .pagination a.prev,.dictCOBUILD-ColEntry .pagination p,.dictCOBUILD-ColEntry .pagination p a,.dictCOBUILD-ColEntry .pagination span.page{padding:.3em .8em;display:inline-block;text-decoration:none;font-weight:700;border:0}.dictCOBUILD-ColEntry .pagination a.next,.dictCOBUILD-ColEntry .pagination a.page,.dictCOBUILD-ColEntry .pagination a.prev{background:#e5ebf3;color:#194885}.dictCOBUILD-ColEntry .pagination p,.dictCOBUILD-ColEntry .pagination p a,.dictCOBUILD-ColEntry .pagination span.page{background:#194885;color:#e5ebf3}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .lbl,.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .lbl span,.dictCOBUILD-ColEntry .page .dictionary.thesbase .lbl,.dictCOBUILD-ColEntry .page .dictionary.thesbase .lbl span{font-style:italic;color:green}.dictCOBUILD-ColEntry .page .dictionary.thesbase .sensebody{display:block;margin:.5em 0 .5em 6px}.dictCOBUILD-ColEntry .page .thesbase span.bold{font-weight:700}.dictCOBUILD-ColEntry .page .thesbase span.kerntouch{letter-spacing:-.18em}.dictCOBUILD-ColEntry .page .thesbase span.kern60{letter-spacing:-.6em}.dictCOBUILD-ColEntry .page .thesbase span.manualdiacritic{vertical-align:25%;letter-spacing:-1em}.dictCOBUILD-ColEntry .page .thesbase span.numerator{vertical-align:35%;font-size:smaller}.dictCOBUILD-ColEntry .page .thesbase span.numerator_back{position:absolute;vertical-align:35%;letter-spacing:-1em;font-size:smaller}.dictCOBUILD-ColEntry .page .thesbase span.denominator{vertical-align:-35%;font-size:smaller}.dictCOBUILD-ColEntry .page .thesbase span.italics{font-weight:400;font-style:italic;color:#000}.dictCOBUILD-ColEntry .page .thesbase span.homnum{font-weight:700;color:#fff;vertical-align:super;font-size:50%}.dictCOBUILD-ColEntry .page .thesbase span.sensenum{font-weight:700;display:inline-block;min-width:1em}.dictCOBUILD-ColEntry .cdet .toc-group a{color:var(--color-brand);border-bottom:dashed 1px var(--color-brand)}.dictCOBUILD-ColEntry .cdet .toc{text-align:left;padding:0 1em;margin-top:1em}.dictCOBUILD-ColEntry .cdet .toc-group .pos{font-style:italic}.dictCOBUILD-ColEntry .cdet .toc-group .orth{color:var(--color-brand)}.dictCOBUILD-ColEntry .page .thesbase span.QA{font-style:italic;color:red;font-size:90%}.dictCOBUILD-ColEntry .page .thesbase hr{width:50%;text-align:left;border:3px inset #555;height:6px;margin:10px auto 5px 0}.dictCOBUILD-ColEntry .page .thesbase .cit.type-quotation{display:block}.dictCOBUILD-ColEntry .page .thesbase .cit.type-proverb>.quote,.dictCOBUILD-ColEntry .page .thesbase .cit.type-quotation>.bibl,.dictCOBUILD-ColEntry .page .thesbase .cit.type-quotation>.quote{display:block;margin-left:1em;padding-left:0}.dictCOBUILD-ColEntry .page .thesbase>.re.type-phr .xr{font-weight:700}.dictCOBUILD-ColEntry .page .thesbase .div .xr{display:block;margin-left:1em}.dictCOBUILD-ColEntry .cdet .content-box{padding:0;border-left:none}.dictCOBUILD-ColEntry .cdet .toggleExample{position:absolute;right:0;top:-1em;padding:.2em;padding-right:1em;background-color:rgba(164,189,212,.53)}.dictCOBUILD-ColEntry .cdet .blockSyn{position:relative}.dictCOBUILD-ColEntry .cdet div[data-type-block] .sense .sensenum{margin-left:0}.dictCOBUILD-ColEntry .cdet .page .dictionary .sense,.dictCOBUILD-ColEntry .cdet .sense.moreSyn{margin-left:0;margin-bottom:.5em;padding-bottom:.5em;position:relative}.dictCOBUILD-ColEntry .cdet .sense .sensehead .xr{display:none}.dictCOBUILD-ColEntry .cdet .h1Word{color:#e9573f}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .syns_container{padding-left:1.9em}.dictCOBUILD-ColEntry .cdet .dictionary.thesbase .sensebody,.dictCOBUILD-ColEntry .cdet div[data-type-block] .sense .sensebody{margin:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;padding-right:1.9em;padding-left:1.9em;line-height:1.5em;font-size:.9em}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns div[data-type-block] .sense .def,.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns div[data-type-block] .sense .syns_example{margin:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;line-height:1.5em;font-size:.9em;padding-right:0;padding-left:0}.dictCOBUILD-ColEntry .cdet .sensehead>.sensenum{min-width:1.9em;display:inline-block;text-align:center;font-size:.9em;color:#4d4e51}.dictCOBUILD-ColEntry .cdet .dictionary .sense.opened,.dictCOBUILD-ColEntry .cdet div[data-type-block] .sense.opened{margin-left:0;margin-bottom:1em;padding-bottom:.5em;cursor:auto;position:relative}.dictCOBUILD-ColEntry .cdet .dictionary.thesbase .sense.opened .sensebody,.dictCOBUILD-ColEntry .cdet div[data-type-block] .sense.opened .sensebody{overflow:auto;text-overflow:inherit;white-space:inherit}.dictCOBUILD-ColEntry .cdet .iconContainer,.dictCOBUILD-ColEntry .cdet .toggleExample{display:none}.dictCOBUILD-ColEntry .cdet .iconContainer{position:absolute;right:0}.dictCOBUILD-ColEntry .cdet .sense.opened .iconContainer{display:block}.dictCOBUILD-ColEntry .cdet .syns_container{padding-left:0}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .sense.moreSyn{margin-bottom:.5em}.dictCOBUILD-ColEntry .cdet .form.type-syn .orth,.dictCOBUILD-ColEntry .cdet .syns_container .form.type-syn .orth,.dictCOBUILD-ColEntry .cdet .type-ant .orth{background-color:transparent;border:0;font-size:.97em;font-weight:700;text-decoration:none;color:#4d4e51;margin:0;display:inline-block}.dictCOBUILD-ColEntry .cdet .dictionary .content,.dictCOBUILD-ColEntry .cdet .form.type-syn{position:relative}.dictCOBUILD-ColEntry .cdet .titleTypeContainer{font-size:.9em}.dictCOBUILD-ColEntry .cdet .titleTypeContainer .titleType{font-size:1.1em;color:#4d4e51;display:inline-block;margin-top:.5em;font-weight:700}.dictCOBUILD-ColEntry body.context-language-THESAURUS{background-color:#fff}.dictCOBUILD-ColEntry .cdet .sense .form [class*=type]{font-size:.9em}.dictCOBUILD-ColEntry .cdet .titleTypeSubContainer{margin-top:.5em;font-weight:700;font-size:.9em}.dictCOBUILD-ColEntry .cdet .form.type-syn .titleTypeSubContainer{display:block}.dictCOBUILD-ColEntry .cdet .blockAnt,.dictCOBUILD-ColEntry .cdet .blockAnt div,.dictCOBUILD-ColEntry .cdet .blockSyn,.dictCOBUILD-ColEntry .cdet .form.type-ant,.dictCOBUILD-ColEntry .cdet .form.type-ant .titleTypeSubContainer,.dictCOBUILD-ColEntry .cdet .form.type-syn .titleTypeSubContainer,.dictCOBUILD-ColEntry .cdet .sense.moreAnt .type-ant div{display:inline}.dictCOBUILD-ColEntry .entry.dictionary.thesbase.content-box.content-box-thesbase{position:relative}.dictCOBUILD-ColEntry .cdet .form.type-ant .titleTypeSubContainer:after,.dictCOBUILD-ColEntry .cdet .form.type-syn .titleTypeSubContainer:after{content:": ";display:inline}.dictCOBUILD-ColEntry .cdet .titleTypeSubContainer .titleType{display:inline;padding:0;font-size:1.3em;font-variant:all-small-caps}.dictCOBUILD-ColEntry .cdet .blockSyn{margin-bottom:1em}.dictCOBUILD-ColEntry .headerSensePos{font-size:.9em;color:#888;font-style:italic}.dictCOBUILD-ColEntry .blockAnt .type-ant>div:before{content:", ";display:inline}.dictCOBUILD-ColEntry .cdet .blockAnt .type-ant>div:first-child:before{content:"";display:inline}.dictCOBUILD-ColEntry .cdet .type-ant .orth{font-weight:400}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .syns_container,.dictCOBUILD-ColEntry .cdet .type-ant{padding-left:0;margin-left:0}.dictCOBUILD-ColEntry .cdet .content-box-comments{background-color:#fff;margin-bottom:20px;padding:20px;position:relative}.dictCOBUILD-ColEntry .cdet .content-box-comments,.dictCOBUILD-ColEntry .cdet .content-box-nearby-words,.dictCOBUILD-ColEntry .cdet .content-box-origin,.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns,.dictCOBUILD-ColEntry .cdet .dictionary .content{border-left:none;box-shadow:none}.dictCOBUILD-ColEntry .cdet .content-box-nearby-words li,.dictCOBUILD-ColEntry .cdet .re.type-phr .xr{margin-left:0;padding-left:.85em;margin-bottom:.3em;padding-bottom:.3em;display:block}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns div.type-syn_of_syn_head{display:block}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .sense .def{padding-left:1em}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .sense .def,.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .sense .syns_example{margin:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;line-height:1.5em;font-size:.9em;color:#4d4e51}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .quote{font-style:italic}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .sense.opened .def,.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .sense.opened .syns_example,.dictCOBUILD-ColEntry .cdet div[data-type-block] .sense.opened .sensebody{overflow:auto;white-space:normal}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .syns_head{margin-top:0}.dictCOBUILD-ColEntry .cdet .cit.type-quotation>.bibl{font-size:.85em}.dictCOBUILD-ColEntry .cdet .cit.type-quotation{margin-left:0;margin-bottom:.3em;padding-bottom:.3em}.dictCOBUILD-ColEntry .cdet .cit.type-quotation>.titleTypeContainer,.dictCOBUILD-ColEntry .cdet .re.type-phr>.titleTypeContainer{margin-bottom:1em}.dictCOBUILD-ColEntry .cdet .cit.type-quotation>.quote{line-height:1.3em;margin-bottom:.3em}.dictCOBUILD-ColEntry .cdet .syns_example .cit.type-example{overflow:inherit;text-overflow:inherit;white-space:inherit}.dictCOBUILD-ColEntry .cdet .cit.type-quotation .author,.dictCOBUILD-ColEntry .cdet .cit.type-quotation .title{font-size:inherit}.dictCOBUILD-ColEntry .cdet span.sensenum{margin-left:0}.dictCOBUILD-ColEntry .cdet .dictionary .quote{color:#4d4e51;font-size:.9em}.dictCOBUILD-ColEntry .cdet span.quote:before{content:"";margin:2px 6px;display:inline-block;background-color:#000;padding:3px}.dictCOBUILD-ColEntry .cdet .headerSense .sensenum{margin-left:-20px}.dictCOBUILD-ColEntry .cdet .containerBlock,.dictCOBUILD-ColEntry .cdet .synonymBlock{margin-left:20px}.dictCOBUILD-ColEntry .cdet .headerThes .entry_title+div a{color:var(--color-brand);font-size:.9em;margin-bottom:1em;display:inline-block}.dictCOBUILD-ColEntry .cdet .form{display:inline}.dictCOBUILD-ColEntry .cdet .cit.type-example,.dictCOBUILD-ColEntry .selectorOpernerBig,.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.opened .openerBig,.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.opened .sep,.dictCOBUILD-ColEntry .selectorOpernerBig:checked~label[for=default]{display:none}.dictCOBUILD-ColEntry .selectorOpernerBig+.shadow_layer{position:fixed;width:100%;height:100%;top:0;left:0;background-color:rgba(128,128,128,.78);z-index:2}.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.opened .cit.type-example,.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.opened div>.form{display:block}.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.opened:before{content:"";display:block;height:2em;position:fixed;top:0;z-index:1;background-color:#fff;width:70%;left:15%}.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.sense.opened{position:fixed;top:0;left:15%;height:calc(100% - 2em);width:70%;background-color:#fff;z-index:3;margin:0;padding:1em;overflow-y:auto;margin-top:2em}.dictCOBUILD-ColEntry .selectorOpernerBig~label.menuPanelCloseButton{position:fixed;display:block;top:0;border-bottom:0;z-index:4;right:calc(15% - -10px)}.dictCOBUILD-ColEntry .he .grammar .page{display:block;border:solid 1px;font-family:arial,helvetica,sans-serif;margin-bottom:20px;padding:15px;padding-bottom:40px}.dictCOBUILD-ColEntry .he .grammar a.next,.dictCOBUILD-ColEntry .he .grammar a.previous{background:#e5ebf3;color:#194885;padding:.5em 1em;font-weight:bolder;border-bottom:0;float:left;margin-top:1em}.dictCOBUILD-ColEntry .he .grammar a.next{float:right}.dictCOBUILD-ColEntry .he .grammar a.next:hover,.dictCOBUILD-ColEntry .he .grammar a.previous:hover{color:#194885}.dictCOBUILD-ColEntry .he .grammar a.next i,.dictCOBUILD-ColEntry .he .grammar a.previous i{font-size:1.3em;vertical-align:middle;padding-right:8px;padding-left:8px;display:inline-block}.dictCOBUILD-ColEntry .he .grammar .exmplblk ul{padding-left:0}.dictCOBUILD-ColEntry .he .grammar .exmplblk{padding:.5em}.dictCOBUILD-ColEntry .he .grammar .exmplgrp ul{padding-left:20px;padding-bottom:10px}.dictCOBUILD-ColEntry .he .grammar .intro.suppressed{display:none}.dictCOBUILD-ColEntry .he .grammar h2{font-size:16pt;line-height:2em;text-decoration:underline}.dictCOBUILD-ColEntry .he .grammar h3{font-size:14pt}.dictCOBUILD-ColEntry .he .grammar h4{font-size:12pt;font-weight:700;margin-bottom:1em}.dictCOBUILD-ColEntry .he .grammar u{text-decoration:underline}.dictCOBUILD-ColEntry .he .grammar .lemma{font-weight:700}.dictCOBUILD-ColEntry .he .grammar .caption{font-weight:700;margin-top:1.5em}.dictCOBUILD-ColEntry .he .grammar .p{display:block;margin-top:5px;margin-bottom:5px}.dictCOBUILD-ColEntry .he .grammar .group{display:block;margin-top:2em;margin-bottom:2em}.dictCOBUILD-ColEntry .he .grammar .exmpl{font-weight:400;font-style:italic}.dictCOBUILD-ColEntry .he .grammar .i,.dictCOBUILD-ColEntry .he .grammar .post{font-style:italic}.dictCOBUILD-ColEntry .he .grammar .posp{font-weight:700;font-style:normal}.dictCOBUILD-ColEntry .he .grammar .pattern{font-family:sans-serif}.dictCOBUILD-ColEntry .he .grammar .ul{margin-top:5px;list-style-type:none;padding-left:15px}.dictCOBUILD-ColEntry .he .grammar ul.arrow{list-style-type:square}.dictCOBUILD-ColEntry .he .grammar ul.star{list-style-type:disc}.dictCOBUILD-ColEntry .he .grammar ul.alpha{list-style-type:lower-alpha}.dictCOBUILD-ColEntry .he .grammar ol{margin-top:5px;list-style-type:decimal}.dictCOBUILD-ColEntry .he .grammar .li.exmpl{font-style:italic}.dictCOBUILD-ColEntry .he .grammar .lemmalist .li{margin-top:10px}.dictCOBUILD-ColEntry .he .grammar .lemmalist{border-color:#ccc;border-style:solid;border-width:1px;margin:4px;margin-top:2em;padding:1em;column-count:4}.dictCOBUILD-ColEntry .he .grammar div.greyborder2{border-color:#ccc;border-style:solid;border-width:1px;margin:4px;column-count:4}.dictCOBUILD-ColEntry .he .grammar td,.dictCOBUILD-ColEntry .he .grammar th{border-color:#000;border-style:solid;border-width:1px;padding:.5em 1.4em}.dictCOBUILD-ColEntry .he .grammar th{background-color:#ddd;font-weight:700;font-size:.9em}.dictCOBUILD-ColEntry .he .grammar table{border-collapse:collapse;border-color:#000;border-style:solid;border-width:1px;margin-top:1.5em;margin-bottom:1em}.dictCOBUILD-ColEntry .linksTool+.linksTool{margin-top:.5em}.dictCOBUILD-ColEntry .linksTool{margin:1.5em 1em 1.5em 1em;font-style:italic;font-size:.9em}.dictCOBUILD-ColEntry .he .grammar a.block{display:block}.dictCOBUILD-ColEntry .he .grammar i.icon-chevron-thin-right{display:inline-block;font-weight:700;width:2em;text-align:center;font-size:.6em}.dictCOBUILD-ColEntry .he .grammar .chapter a:before,.dictCOBUILD-ColEntry .he .grammar .group a:before,.dictCOBUILD-ColEntry .he .grammar .pattern a:before,.dictCOBUILD-ColEntry .he .grammar .posGr a:before,.dictCOBUILD-ColEntry .he .grammar .section a:before,.dictCOBUILD-ColEntry .he .grammar .subpattern a:before{display:block;content:""}.dictCOBUILD-ColEntry .entry_container{color:inherit;display:block;background:#fff;box-shadow:0 0 3px rgba(0,0,0,.2);text-decoration:none;margin-bottom:20px;padding:20px}.dictCOBUILD-ColEntry .he .grammar .breadcrumb{margin-bottom:2em}.dictCOBUILD-ColEntry .synonymBlock{border:1px solid transparent}.dictCOBUILD-ColEntry .synonymBlock:after{content:"";display:block;clear:both}.dictCOBUILD-ColEntry .grammar .bold{display:inline;font-weight:700}.dictCOBUILD-ColEntry .grammar .italic{display:inline;font-style:italic}.dictCOBUILD-ColEntry .grammar .bolditalic{display:inline;font-weight:700;font-style:italic}.dictCOBUILD-ColEntry .grammar .roman{font-style:normal}.dictCOBUILD-ColEntry .grammar .color{color:#0058a9}.dictCOBUILD-ColEntry .grammar .color1{color:#0058a9;font-style:normal}.dictCOBUILD-ColEntry .grammar .chaptitle{font-size:x-large;font-weight:700;color:#0058a9}.dictCOBUILD-ColEntry .grammar .parttitle{font-size:xx-large;font-weight:700;color:#0058a9}.dictCOBUILD-ColEntry .grammar .head1{font-weight:700}.dictCOBUILD-ColEntry .grammar .head{font-size:medium;font-weight:700;color:#0058a9;margin-top:2em}.dictCOBUILD-ColEntry .grammar .p{font-size:medium;font-style:normal;text-indent:0}.dictCOBUILD-ColEntry .grammar .ind{font-size:medium;font-weight:400;font-style:normal;text-indent:0;margin-top:.3em;margin-bottom:.3em;margin-left:.8em;text-indent:-.8em}.dictCOBUILD-ColEntry .grammar .ul.cll0{padding-left:0;list-style-type:disc}.dictCOBUILD-ColEntry .grammar .ul.cll0 .li{margin-left:1em}.dictCOBUILD-ColEntry .grammar .ul.cll1{padding-left:0;list-style-type:none}.dictCOBUILD-ColEntry .grammar .ul.cll1>.li:before{content:"– "}.dictCOBUILD-ColEntry .grammar .ol.cll4 .li,.dictCOBUILD-ColEntry .grammar .ul.cll1 .li,.dictCOBUILD-ColEntry .grammar .ul.cll2 .li{margin-left:.8em;text-indent:-.8em}.dictCOBUILD-ColEntry .grammar .ul.cll2,.dictCOBUILD-ColEntry .grammar .ul.cll2a{list-style-type:none;margin-top:1em;margin-bottom:1em}.dictCOBUILD-ColEntry .grammar .ul.cll2a{padding-left:.75em}.dictCOBUILD-ColEntry .grammar .ul.cll2a .li{margin-left:0;text-indent:-.8em}.dictCOBUILD-ColEntry .grammar .ul.cll3{padding-left:1.2em;color:#0058a9}.dictCOBUILD-ColEntry .grammar .ul.cll3>.li>span{color:#000}.dictCOBUILD-ColEntry .grammar .ol.cll4{list-style-type:none;margin-top:1em;margin-bottom:1em;padding-left:1.5em}.dictCOBUILD-ColEntry .grammar span.label{width:.8em;display:inline-block;color:#0058a9;font-weight:700}.dictCOBUILD-ColEntry .grammar span.label1{width:.8em;display:inline-block}.dictCOBUILD-ColEntry .grammar .block{font-size:.83em;font-style:italic;font-weight:400;text-align:justify;text-indent:0;margin:.3em 1.3em}.dictCOBUILD-ColEntry .grammar div.box{border:1px solid #0058a9;margin-top:2em;margin-bottom:2em;padding:0 2.5em;background-color:#e1e4ee;border-radius:15px}.dictCOBUILD-ColEntry .grammar .toc{margin-top:.25em;margin-bottom:.25em}.dictCOBUILD-ColEntry .grammar .center{text-align:center}.dictCOBUILD-ColEntry .grammar .right{text-align:right}.dictCOBUILD-ColEntry .grammar .small{font-size:78%}.dictCOBUILD-ColEntry .grammar td{vertical-align:top}.dictCOBUILD-ColEntry .grammar td.filet_b,.dictCOBUILD-ColEntry .grammar td.filet_l,.dictCOBUILD-ColEntry .grammar td.filet_r,.dictCOBUILD-ColEntry .grammar td.filet_t{border-right:1px solid #000}.dictCOBUILD-ColEntry .grammar .tab1{margin-left:5em}.dictCOBUILD-ColEntry .grammar .strike{text-decoration:line-through}.dictCOBUILD-ColEntry .navigation .tab.current .ref>.pos{color:#fff}.dictCOBUILD-ColEntry .cdet .ref>.pos{font-style:italic;font-size:.9em;color:#777772}.dictCOBUILD-ColEntry .openTootip,.dictCOBUILD-ColEntry .openTootip~.def{display:none}.dictCOBUILD-ColEntry .openTootip:checked~.def{display:block}.dictCOBUILD-ColEntry .linkDef{display:inline}.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.sense.opened .cit .quote:before{display:none}@media screen and (min-width:321px){.dictCOBUILD-ColEntry .cdet .dictionary .hom,.dictCOBUILD-ColEntry .cdet .dictionary .syn_of_syns,.dictCOBUILD-ColEntry .cdet .page .dictionary .sense,.dictCOBUILD-ColEntry .cdet .sense.moreSyn{overflow:hidden}}@media screen and (max-width:761px){.dictCOBUILD-ColEntry .cdet .navigation .nav{display:none}.dictCOBUILD-ColEntry .cdet .more{margin:10px auto 10px auto;width:50%}.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.sense.opened,.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.sense.opened:before{width:100%;left:0}.dictCOBUILD-ColEntry .selectorOpernerBig~label.menuPanelCloseButton{right:0}}.dictCOBUILD-ColEntry .navigation{position:relative;width:100%}.dictCOBUILD-ColEntry .navigation:before{content:" ";position:absolute;width:100%;height:100%;top:0;background-color:inherit}.dictCOBUILD-ColEntry .navigation a.tab,.dictCOBUILD-ColEntry .navigation span.tab>a{font-size:.9em;display:inline-block;line-height:26px;padding:4px 8px;color:#333;background-color:#e5ebf3;margin:6px 2px 10px 2px;border:0;border-radius:2px}.dictCOBUILD-ColEntry .navigation .expo{position:relative;top:-4px;font-size:.8em;margin-left:2px}.dictCOBUILD-ColEntry .navigation[data-position=fixed]{position:fixed;top:50px;z-index:2}.dictCOBUILD-ColEntry .navigation a.nav:hover{background-color:#1c4b8b;color:#fff}.dictCOBUILD-ColEntry .navigation .tab .ref:active,.dictCOBUILD-ColEntry .navigation a.tab.current,.dictCOBUILD-ColEntry .navigation span.tab.current>a{background-color:#1c4b8b;color:#fff;position:relative}.dictCOBUILD-ColEntry .cdet .ref:active>.pos{color:#fff}.dictCOBUILD-ColEntry .navigation .tabsNavigation{overflow:hidden;white-space:nowrap;position:relative;word-wrap:normal}.dictCOBUILD-ColEntry .navigation .tabsNavigation i{font-size:.85em}.dictCOBUILD-ColEntry .navigation .tab.current::before{content:"";display:inline-block;position:absolute;left:50%;left:1.2em;bottom:-5px;width:0;height:0;border-style:solid;border-width:0 5px 5px 5px;border-color:transparent transparent #1c4b8b transparent;transform:rotate(180deg);-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg)}.dictCOBUILD-ColEntry .navigation a.nav{background:#cdd4de;position:absolute;top:0;font-size:20px;overflow:hidden;display:inline-block;color:#4d4e51;margin-left:0;margin-right:0;padding-left:15px;padding-right:15px}.dictCOBUILD-ColEntry .navigation .left{left:0}.dictCOBUILD-ColEntry .navigation .right{right:0}.dictCOBUILD-ColEntry .cdet .navigation{background-color:#fff}.dictCOBUILD-ColEntry .navigation .tab a{border-bottom:0}.dictCOBUILD-ColEntry .cdet .tab span+span{display:inline-block;padding-left:.3em}.dictCOBUILD-ColEntry .cdet .tab a{display:inline-block}.dictCOBUILD-ColEntry .dc .frenquency-title{float:right}.dictCOBUILD-ColEntry .dc .word-frequency-img{margin-left:.5em}.dictCOBUILD-ColEntry .dc .word-frequency-container .level{border-radius:50%;display:inline-block}.dictCOBUILD-ColEntry .dc .word-frequency-container .level.roundRed{background-color:#f9690e}.dictCOBUILD-ColEntry .dc .word-frequency-container .level1{width:14px;height:14px}.dictCOBUILD-ColEntry .dc .word-frequency-container .level2{width:15px;height:15px}.dictCOBUILD-ColEntry .dc .word-frequency-container .level3{width:16px;height:16px}.dictCOBUILD-ColEntry .dc .word-frequency-container .level4{width:17px;height:17px}.dictCOBUILD-ColEntry .dc .word-frequency-container .level5{width:18px;height:18px}.dictCOBUILD-ColEntry .dc .word-frequency-container .round{width:100%;height:100%}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level{border-radius:0;width:15px;vertical-align:bottom}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level1{background:#f6b26b;height:10px}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level2{background:#f6b26b;height:13px}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level3{background:#ffd966;height:16px}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level4{background:#ffd966;height:19px}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level5{background:#b6d7a8;height:22px}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level6{background:#b6d7a8;height:25px}.dictCOBUILD-ColEntry .lightboxLink{cursor:pointer}.dictCOBUILD-ColEntry .lightboxOverlay{background:rgba(0,0,0,.8);position:fixed;top:0;left:0;width:100%;height:100%;z-index:10;padding:20px;display:flex;align-items:center;justify-content:center;text-align:center}.dictCOBUILD-ColEntry .lightboxContainer{display:inline-block;position:relative;padding-bottom:30px}.dictCOBUILD-ColEntry .lightboxImage{min-height:200px;min-width:200px;vertical-align:middle;border:solid 5px #fff;border-radius:3px;background:#fff}.dictCOBUILD-ColEntry .lightboxClose{position:absolute;right:0;bottom:0;color:#fff;font-size:2em}.dictCOBUILD-ColEntry .lightboxCopyright{position:absolute;bottom:0;color:#fff;left:0}.dictCOBUILD-ColEntry .tagline{font-size:15px;margin-left:4px}.dictCOBUILD-ColEntry .home_menu{margin:1em 0;text-align:center}.dictCOBUILD-ColEntry .home_logo_link{display:inline-block}.dictCOBUILD-ColEntry .home_logo{width:100%;max-width:320px}.dictCOBUILD-ColEntry .home_menu li{display:inline-block}.dictCOBUILD-ColEntry .home_menu a.current,.dictCOBUILD-ColEntry .home_menu a:hover{background:rgba(255,255,255,.2)}.dictCOBUILD-ColEntry .home_menu a{padding:10px 25px;color:inherit;display:inline-block;transition:background-color .4s ease,color .4s ease}.dictCOBUILD-ColEntry .home_search_container{margin:1em auto 0 auto}.dictCOBUILD-ColEntry .dataset-description{font-size:1em;opacity:.8;margin-top:1em;text-align:center}.dictCOBUILD-ColEntry h1{padding-top:.5em;font-size:2em;text-align:center}.dictCOBUILD-ColEntry .search-desktop{width:900px}.dictCOBUILD-ColEntry .word-content li{display:inline-block}.dictCOBUILD-ColEntry .blue{background:#e8e8e8;color:#000}.dictCOBUILD-ColEntry .blue .main-content{padding:0}.dictCOBUILD-ColEntry .main-content{padding:20px 0;padding-top:0;margin:0 auto}.dictCOBUILD-ColEntry .word-content{text-align:center}.dictCOBUILD-ColEntry .word-content .home-link.current,.dictCOBUILD-ColEntry .word-content .home-link:hover{background:#ddd}.dictCOBUILD-ColEntry .word-content .home-link.current{font-weight:700}.dictCOBUILD-ColEntry .word-content .home-link{display:inline-block;color:inherit;padding:1em 1.15em;position:relative;text-decoration:none}.dictCOBUILD-ColEntry .word-content .home-link.current::before{content:"";display:inline-block;position:absolute;left:50%;margin-left:-10px;top:-10px;width:0;height:0;border-style:solid;border-width:0 10px 10px 10px;border-color:transparent transparent #e5ebf3 transparent}.dictCOBUILD-ColEntry .white{padding-top:20px}@media screen and (max-width:761px){.dictCOBUILD-ColEntry header .main-content{padding-top:10px}.dictCOBUILD-ColEntry header .main-content{padding-top:0;background-position:calc(100% - 10px) calc(10px);background-size:20%;padding-bottom:25px}.dictCOBUILD-ColEntry .search-desktop{width:100%}.dictCOBUILD-ColEntry .home_search_container{margin:0 10px;display:block}.dictCOBUILD-ColEntry .word-content .home-link.current::before{display:none}.dictCOBUILD-ColEntry .word-content .home-link{padding:.5em}.dictCOBUILD-ColEntry .home_logo_link{display:block;text-align:center;margin-top:1em;margin-bottom:2em}.dictCOBUILD-ColEntry .home_logo{max-width:none;width:80%}.dictCOBUILD-ColEntry .white{padding-top:10px}}@media screen and (min-width:762px)and (max-width:948px){.dictCOBUILD-ColEntry .tagline{font-size:10px;margin-left:4px}.dictCOBUILD-ColEntry header .main-content{background-position:calc(100% - 5px) calc(5px);background-size:25%}.dictCOBUILD-ColEntry .search-desktop{width:700px;margin:0 auto}.dictCOBUILD-ColEntry .home_logo{max-width:210px}}.dictCOBUILD-ColEntry .columns .columns_item{display:inline-block;width:24.5%;padding-right:20px;vertical-align:top;min-height:360px}@media screen and (max-width:761px){.dictCOBUILD-ColEntry .columns .columns_item{display:block;width:auto;padding-right:0;min-height:0}}@media screen and (min-width:762px){.dictCOBUILD-ColEntry .columns .columns_item{width:49.5%}}.dictCOBUILD-ColEntry [class*=" icon-"],.dictCOBUILD-ColEntry [class^=icon-]{font-family:icomoon;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.dictCOBUILD-ColEntry .icon-fw{display:inline-block;text-align:center;width:1.55em}.dictCOBUILD-ColEntry .icon-2x{font-size:2em}.dictCOBUILD-ColEntry .icon-chat:before{content:""}.dictCOBUILD-ColEntry .icon-community:before{content:""}.dictCOBUILD-ColEntry .icon-keyboard:before{content:""}.dictCOBUILD-ColEntry .icon-search:before{content:""}.dictCOBUILD-ColEntry .icon-user:before{content:""}.dictCOBUILD-ColEntry .icon-times:before{content:""}.dictCOBUILD-ColEntry .icon-volume-up:before{content:""}.dictCOBUILD-ColEntry .icon-twitter-square:before{content:""}.dictCOBUILD-ColEntry .icon-twitter:before{content:""}.dictCOBUILD-ColEntry .icon-facebook:before{content:""}.dictCOBUILD-ColEntry .icon-globe:before{content:""}.dictCOBUILD-ColEntry .icon-bars:before{content:""}.dictCOBUILD-ColEntry .icon-caret-down:before{content:""}.dictCOBUILD-ColEntry .icon-caret-up:before{content:""}.dictCOBUILD-ColEntry .icon-caret-left:before{content:""}.dictCOBUILD-ColEntry .icon-caret-right:before{content:""}.dictCOBUILD-ColEntry .icon-copyright:before{content:""}.dictCOBUILD-ColEntry .icon-facebook-official:before{content:""}.dictCOBUILD-ColEntry .icon-warning:before{content:""}.dictCOBUILD-ColEntry .icon-fiber_new:before{content:""}.dictCOBUILD-ColEntry .icon-trending_down:before{content:""}.dictCOBUILD-ColEntry .icon-trending_flat:before{content:""}.dictCOBUILD-ColEntry .icon-trending_up:before{content:""}.dictCOBUILD-ColEntry .icon-chevron-thin-left:before{content:""}.dictCOBUILD-ColEntry .icon-chevron-thin-right:before{content:""}.dictCOBUILD-ColEntry .icon-books:before{content:""}.dictCOBUILD-ColEntry .icon-eye-plus:before{content:""}.dictCOBUILD-ColEntry .icon-eye-minus:before{content:""}.dictCOBUILD-ColEntry .icon-share2:before{content:""}.dictCOBUILD-ColEntry .icon-read:before{content:""}.dictCOBUILD-ColEntry .icon-copy:before{content:""}.dictCOBUILD-ColEntry .icon-exchange:before{content:""}.dictCOBUILD-ColEntry .icon-sort:before{content:""}.dictCOBUILD-ColEntry [class*=res_cell]{float:left;display:block;width:100%}.dictCOBUILD-ColEntry .res_cell_left{width:160px;min-height:1px}.dictCOBUILD-ColEntry .res_cell_right{width:300px}.dictCOBUILD-ColEntry .res_cell_2_3{width:66%}.dictCOBUILD-ColEntry .res_cell_2_3_content{padding:0 20px 0 0}.dictCOBUILD-ColEntry .res_cell_1_3{width:34%}.dictCOBUILD-ColEntry .mpuslot_b-container{min-width:320px;text-align:center;padding:0}@media screen and (max-width:320px){.dictCOBUILD-ColEntry .mpuslot_b-container{margin:0 0 0 -38px}.dictCOBUILD-ColEntry .cdet .mpuslot_b-container{margin:0 0 0 -10px}.dictCOBUILD-ColEntry .content-box-examples .mpuslot_b-container{margin:0 0 0 -14px}.dictCOBUILD-ColEntry .mpuslot_b-container-amp{margin:0 0 0 -26px}.dictCOBUILD-ColEntry .thesbase .mpuslot_b-container-amp{margin:0}.dictCOBUILD-ColEntry .content-box-examples .mpuslot_b-container-amp{margin:0 0 0 -4px}}@media screen and (min-width:321px)and (max-width:761px){.dictCOBUILD-ColEntry .mpuslot_b-container{margin:0 0 0 -24px}.dictCOBUILD-ColEntry .cdet .mpuslot_b-container{margin:0}.dictCOBUILD-ColEntry .content-box-examples .mpuslot_b-container{margin:0 0 0 -14px}}@media screen and (max-width:761px){.dictCOBUILD-ColEntry main>.browse_wrapper,.dictCOBUILD-ColEntry main>.content_wrapper,.dictCOBUILD-ColEntry main>.dictionary,.dictCOBUILD-ColEntry main>.spellcheck_wrapper,.dictCOBUILD-ColEntry main>.submit_new_word_wrapper,.dictCOBUILD-ColEntry main>.suggested_word_wrapper,.dictCOBUILD-ColEntry main>.word_submitted_wrapper{width:100%;float:none}.dictCOBUILD-ColEntry [class*=res_cell]{clear:both;width:100%;margin:0 0 10px 0}.dictCOBUILD-ColEntry .res_cell_2_3_content,.dictCOBUILD-ColEntry .res_cell_center_content{padding:0}.dictCOBUILD-ColEntry .res_hos{display:none}.dictCOBUILD-ColEntry .homepage header .left{float:none}.dictCOBUILD-ColEntry .main-content,.dictCOBUILD-ColEntry main{width:100%}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .columns3,.dictCOBUILD-ColEntry .page .type-ant.columns3{column-count:1}.dictCOBUILD-ColEntry .dc .entry_title{font-size:1.5em;padding-left:.5em}.dictCOBUILD-ColEntry .topslot_container{margin-bottom:10px}.dictCOBUILD-ColEntry .mpuslot_b{width:320px;margin:0 auto}.dictCOBUILD-ColEntry .columns .columns_item{display:block;width:auto;padding-right:0;min-height:0}.dictCOBUILD-ColEntry .page .dictionary .power{display:none}.dictCOBUILD-ColEntry .content-box,.dictCOBUILD-ColEntry .dc .content-box,.dictCOBUILD-ColEntry .page .Corpus_Examples_EN .content,.dictCOBUILD-ColEntry .promoBox-content,.dictCOBUILD-ColEntry .wotd-txt-block{padding:10px}.dictCOBUILD-ColEntry .dc .content-box{padding-top:0}.dictCOBUILD-ColEntry .promoBox{min-height:0}.dictCOBUILD-ColEntry .search-desktop{display:none}.dictCOBUILD-ColEntry .search-desktop{display:block}.dictCOBUILD-ColEntry #searchPanelButton:checked~.search-desktop{display:block;width:auto;margin:4px;clear:both}.dictCOBUILD-ColEntry .search-desktop .custom-select{display:block;position:absolute;left:0;opacity:.001;width:50px;height:100%;font-size:medium}.dictCOBUILD-ColEntry .search-desktop .custom-select-menu{column-count:1}.dictCOBUILD-ColEntry .dc .h1_entry{line-height:1.2em}.dictCOBUILD-ColEntry .cdet .titleTypeContainer .titleType{margin:0}.dictCOBUILD-ColEntry .dc .content-box.cobuild.br .content-box-header::after{content:none}.dictCOBUILD-ColEntry .dc .content-box-videos .entryVideo{max-width:320px;height:160px}.dictCOBUILD-ColEntry .cdet .dc .entry_title,.dictCOBUILD-ColEntry .cdet .headerThes .entry_title+div{padding-left:10px}}@media screen and (min-width:762px)and (max-width:948px){.dictCOBUILD-ColEntry main>.browse_wrapper,.dictCOBUILD-ColEntry main>.content_wrapper,.dictCOBUILD-ColEntry main>.dictionary,.dictCOBUILD-ColEntry main>.spellcheck_wrapper,.dictCOBUILD-ColEntry main>.submit_new_word_wrapper,.dictCOBUILD-ColEntry main>.suggested_word_wrapper,.dictCOBUILD-ColEntry main>.word_submitted_wrapper{width:100%;float:none}.dictCOBUILD-ColEntry .res_cell_right{width:230px}.dictCOBUILD-ColEntry .res_cell_center_content{padding-left:0}}.dictCOBUILD-ColEntry .extra-link,.dictCOBUILD-ColEntry .socialButtons,.dictCOBUILD-ColEntry i[class^=icon]{display:none!important}.dictCOBUILD-ColEntry .saladict-StaticSpeaker{margin:0 1px}.popup-overlay,.share-button,.share-overlay{display:none!important}',""]),t.exports=n},675:function(t,n,o){var e=o(1338);t.exports="string"==typeof e?e:e.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[36],{1381:function(t,n,o){(n=o(226)(!1)).push([t.i,'.dictCOBUILD-Title{font-size:1.5em;font-weight:700}.dictCOBUILD-Pron{display:flex;margin-bottom:5px}.dictCOBUILD-PronItem{margin-right:1em}.dictCOBUILD-PronItem .icon-Speaker{margin-left:2px}.dictCOBUILD-Rate{display:flex;margin-bottom:5px}.dictCOBUILD-Level{margin-left:10px;color:#aaa}.dictCOBUILD-Defs{margin:0;padding-left:15px}.dictCOBUILD-Def p{margin:0}.dictCOBUILD-Def b{color:#f9690e}.dictCOBUILD-Def .prep-en{display:block;margin-bottom:5px}.dictCOBUILD-Def .text-sentence{padding-left:10px;padding-bottom:5px;color:var(--color-font-grey);border-left:var(--color-font-grey) solid 1px}.dictCOBUILD-Def .text-sentence:last-child{padding-bottom:0;margin-bottom:10px}.dictCOBUILD-ColEntry *{word-wrap:break-word;margin:0;padding:0;border:0;box-sizing:border-box}.dictCOBUILD-ColEntry .padLeft{padding-left:20px}.dictCOBUILD-ColEntry .textCenter{text-align:center}.dictCOBUILD-ColEntry ol,.dictCOBUILD-ColEntry ul{list-style-type:none}.dictCOBUILD-ColEntry q{quotes:none}.dictCOBUILD-ColEntry button,.dictCOBUILD-ColEntry input,.dictCOBUILD-ColEntry select{font-size:inherit;color:inherit;padding:.5em;border:solid 1px #c3c3c3}.dictCOBUILD-ColEntry label{display:block}.dictCOBUILD-ColEntry label.inline{display:inline}.dictCOBUILD-ColEntry button{cursor:pointer}.dictCOBUILD-ColEntry h1{font-size:2em;line-height:1.4em}.dictCOBUILD-ColEntry h2{font-size:1.2em}.dictCOBUILD-ColEntry .center{display:table;margin:0 auto}.dictCOBUILD-ColEntry .clear:after,.dictCOBUILD-ColEntry .clear:before{content:" ";display:block;height:0;overflow:hidden}.dictCOBUILD-ColEntry .clear:after{clear:both}.dictCOBUILD-ColEntry .floatRight{float:right}.dictCOBUILD-ColEntry .discrete{font-size:.85em;color:#888}.dictCOBUILD-ColEntry .text-right{text-align:right}.dictCOBUILD-ColEntry .columns-block{page-break-inside:avoid;break-inside:avoid;display:table;width:100%}.dictCOBUILD-ColEntry .white .topslot_container{margin-left:auto;margin-right:auto}.dictCOBUILD-ColEntry #ad_rightslot,.dictCOBUILD-ColEntry #ad_rightslot2,.dictCOBUILD-ColEntry .topslot_container{margin-bottom:20px}.dictCOBUILD-ColEntry .ac_leftslot_a{min-height:600px}.dictCOBUILD-ColEntry .btmslot_a-container{width:100%}.dictCOBUILD-ColEntry .content-box{padding:0;margin-bottom:1em;page-break-inside:avoid;break-inside:avoid}.dictCOBUILD-ColEntry .content-box .h2,.dictCOBUILD-ColEntry .content-box h2{margin-bottom:.5em}.dictCOBUILD-ColEntry .content-box .view_more a{opacity:.7;text-decoration:none;margin-top:1em;display:block;font-size:.8em}.dictCOBUILD-ColEntry .lsw{font-weight:700}.dictCOBUILD-ColEntry .lsw a{text-decoration:none}.dictCOBUILD-ColEntry .lsw[data-type=trends] a{margin-left:.5em}.dictCOBUILD-ColEntry .lsw[data-type=trends] .percentVariation .icon-fiber_new{font-size:2em}.dictCOBUILD-ColEntry .lsw[data-type=trends] .percentVariation{display:inline-block;min-width:3em;text-align:right}.dictCOBUILD-ColEntry .lsw i{font-size:1.3em;vertical-align:sub;margin-right:5px}.dictCOBUILD-ColEntry .lsw .lsw_title{font-size:1.5em;margin-bottom:1em}.dictCOBUILD-ColEntry .lsw[data-type=trends] .lsw_title{margin-bottom:.3em}.dictCOBUILD-ColEntry .lsw .lsw_title i{font-size:3em;color:#7e7b87;margin-right:10px}.dictCOBUILD-ColEntry .lsw .view_more{border:solid 1px #1c4b8b;padding:20px;display:inline-block;background:#e8e8e8;margin:1em 20px 0;font-size:1.1em;padding:15px 25px}.dictCOBUILD-ColEntry .lsw .lsw_list{margin-left:1em}.dictCOBUILD-ColEntry .lsw[data-type=trends] .lsw_list{line-height:1.2em}.dictCOBUILD-ColEntry .lsw .lsw_list li{margin-bottom:5px}.dictCOBUILD-ColEntry .lsw .lsw_list span{font-size:.7em;color:gray}.dictCOBUILD-ColEntry .lsw i.green{color:green}.dictCOBUILD-ColEntry .lsw i.red{color:#e05555}.dictCOBUILD-ColEntry .lgg{background:0;font-weight:700;border:0;box-shadow:none;font-size:1.2em;padding:0}.dictCOBUILD-ColEntry .lgg .margin,.dictCOBUILD-ColEntry .lgg h2{color:var(--color-font-grey);text-align:center;padding:21px 5px;margin-bottom:5px}.dictCOBUILD-ColEntry .lgg a{text-decoration:none;margin-bottom:5px;text-align:center;padding:10px;border:1px solid rgba(216,216,216,.7);border-radius:5px;background-color:#e5ebf3;display:block}.dictCOBUILD-ColEntry .lgg a:hover{border:1px solid rgba(144,144,144,.7);background-color:rgba(187,183,183,.37)}.dictCOBUILD-ColEntry .def-dict{text-decoration:none;display:block;box-shadow:0 0 3px rgba(0,0,0,.2);background:#e5ebf3;color:#194885}.dictCOBUILD-ColEntry .def-dict-title{font-size:1.6em;margin:.5em 0 1em 0;font-weight:700}.dictCOBUILD-ColEntry .def-dict-footer{margin-top:1em;font-weight:700;color:#1c4b8b}.dictCOBUILD-ColEntry .def-dict-footer i{font-size:1.5em;vertical-align:text-top;margin-right:10px}.dictCOBUILD-ColEntry .toc{padding:0 10px;text-align:center;margin-bottom:.5em}.dictCOBUILD-ColEntry .toc-group{display:inline-block;margin-right:1em}.dictCOBUILD-ColEntry .related{page-break-inside:avoid;break-inside:avoid}.dictCOBUILD-ColEntry .related-title{font-weight:700;text-decoration:none;border-bottom:1px dotted}.dictCOBUILD-ColEntry .related-definition{font-style:italic}.dictCOBUILD-ColEntry .promoBoxGrammar{overflow:hidden}.dictCOBUILD-ColEntry .promoBoxGrammar .entry_container ul{overflow:hidden}.dictCOBUILD-ColEntry .promoBoxGrammar .entry_container{box-shadow:none;background-color:#fff;overflow-y:auto;max-height:400px}.dictCOBUILD-ColEntry .browse-block{page-break-inside:avoid;break-inside:avoid}.dictCOBUILD-ColEntry .dc .cobuild-logo{display:none;width:150px;height:20px;background-size:contain;background-repeat:no-repeat;background-position:center center;float:right;text-decoration:none;border:0;margin-top:5px}.dictCOBUILD-ColEntry .dc .cobuild-logo.partner{width:200px;background-image:url(https://www.collinsdictionary.com/external/images/cobuild-word-partner.png?version=3.1.211);margin-right:.5em;margin-top:10px}.dictCOBUILD-ColEntry .beta{background-image:url(https://www.collinsdictionary.com/external/images/beta.png?version=3.1.211);background-repeat:no-repeat;background-position:50% 50%;background-size:75%;display:inline-block;width:80px}.dictCOBUILD-ColEntry .dc .cobuild-partner{float:right}.dictCOBUILD-ColEntry .dc .expandable-list{padding:.1em}.dictCOBUILD-ColEntry .dc .content-box{padding-top:0}.dictCOBUILD-ColEntry .dc .content-box-thesaurus{margin-top:20px}.dictCOBUILD-ColEntry .dc .content-box-header:after{content:" ";display:block;clear:both}.dictCOBUILD-ColEntry .dc .content-box-header{background:#e5ebf3;padding:.5em 15px}.dictCOBUILD-ColEntry .cdet .dc .content-box .content-box-header,.dictCOBUILD-ColEntry .dc .content .content-box-header{background:0;padding:0;margin:0}.dictCOBUILD-ColEntry .dc .content-box-collocation.cobuild .content-box-header,.dictCOBUILD-ColEntry .dc .content-box-definition.cobuild .content-box-header,.dictCOBUILD-ColEntry .dc .content-box-learners .content-box-header{background:#ccedf0}.dictCOBUILD-ColEntry .dc .content-box-examples .content-box-header{background:#deefe3}.dictCOBUILD-ColEntry .dc .content-box-translations .content-box-header{background:#fff6dd}.dictCOBUILD-ColEntry .dc .content-box-nearby-words .content-box-header{background:#ffefeb}.dictCOBUILD-ColEntry .dc .content-box-origin .content-box-header{background:#eff7ff}.dictCOBUILD-ColEntry .dc .content-box-comments .content-box-header{background:#dbf7dc}.dictCOBUILD-ColEntry .dc .content-box-usage .content-box-header{background:#e9ffe3}.dictCOBUILD-ColEntry .dc .content-box-images .content-box-header{background:#f4ffd4}.dictCOBUILD-ColEntry .dc .content-box-videos .content-box-header{background:#ffebeb}.dictCOBUILD-ColEntry .dc .content-box-wordlists .content-box-header{background:#fff1e6}.dictCOBUILD-ColEntry .dc .content-box-quotations .content-box-header{background:#fff1e6}.dictCOBUILD-ColEntry .dc .content-box-related-terms .content-box-header{background:#fffeec}.dictCOBUILD-ColEntry .dc .content-box-header .h2_entry{margin-bottom:0}.dictCOBUILD-ColEntry .dc .content-box-videos .entryVideo{width:100%;max-width:640px;height:320px}.dictCOBUILD-ColEntry .dc .h2_entry{display:none;font-size:1.4em;margin-bottom:.5em}.dictCOBUILD-ColEntry .dc .content-box-definition h2.h2_entry{font-size:1.8em;line-height:1}.dictCOBUILD-ColEntry .dc .content-box-examples h2.h2_entry{display:inline-block}.dictCOBUILD-ColEntry .dc .definitions .thes{margin-top:.8em}.dictCOBUILD-ColEntry .dc .example_box,.dictCOBUILD-ColEntry .dc .link-right.verbtable,.dictCOBUILD-ColEntry .dc .thesaurus_synonyms,.dictCOBUILD-ColEntry .dc ol li,.dictCOBUILD-ColEntry .verbtable_content .headword_link{margin-bottom:1em}.dictCOBUILD-ColEntry .dc .h3_entry{font-size:1.3em;margin:.5em 0}.dictCOBUILD-ColEntry .dc .sense_list .scbold{display:block;font-style:italic;font-family:"Times New Roman",Times,serif;border-bottom:1px dotted #c5c5c5}.dictCOBUILD-ColEntry .dc .blackbold,.dictCOBUILD-ColEntry .dc .cit-type-example .orth,.dictCOBUILD-ColEntry .dc .content-box-nearby-words .current,.dictCOBUILD-ColEntry .dc .content-box-synonyms .firstSyn,.dictCOBUILD-ColEntry .dc .content-box-translation .phr,.dictCOBUILD-ColEntry .dc .example_box .author,.dictCOBUILD-ColEntry .dc .mini_h2 .orth,.dictCOBUILD-ColEntry .dc .thesaurus_synonyms .synonym:first-of-type,.dictCOBUILD-ColEntry .dc strong{font-weight:700}.dictCOBUILD-ColEntry .dc .blackbold{color:#000}.dictCOBUILD-ColEntry .dc .school .def{display:inline}.dictCOBUILD-ColEntry .dc .def{font-size:1.15em;margin-bottom:.5em;line-height:1.5em}.dictCOBUILD-ColEntry .dc .sensenumdef .def{font-size:1.1em;margin:.5em 0}.dictCOBUILD-ColEntry .dc .hom ol ol{list-style-type:lower-alpha}.dictCOBUILD-ColEntry .dc #synonyms_content:first-of-type{border:0}.dictCOBUILD-ColEntry .dc #synonyms_content{border-top:1px dotted #c5c5c5;padding-top:12px}.dictCOBUILD-ColEntry .dc #synonyms_content .thesaurus_synonyms .lbl,.dictCOBUILD-ColEntry .dc #synonyms_content .thesaurus_synonyms .misc,.dictCOBUILD-ColEntry .dc .colloc,.dictCOBUILD-ColEntry .dc .lbl.misc,.dictCOBUILD-ColEntry .dc .lbl.type-register{font-style:italic}.dictCOBUILD-ColEntry .dc .lbl.type-curric{font-variant:small-caps}.dictCOBUILD-ColEntry .school .form.type-drv .orth,.dictCOBUILD-ColEntry .school .form.type-phrasalverb .orth{font-weight:700;font-size:1.1em}.dictCOBUILD-ColEntry .school .fraction{display:inline-block;position:relative;vertical-align:middle;letter-spacing:.001em;text-align:center;padding-left:3px;padding-right:3px;font-size:.7em;line-height:1.1em}.dictCOBUILD-ColEntry .school .fraction>span{display:none;padding:0 .2em}.dictCOBUILD-ColEntry .school .fraction>.denominator{border-top:thin solid #000}.dictCOBUILD-ColEntry .school .fraction>.denominator,.dictCOBUILD-ColEntry .school .fraction>.numerator{display:block}.dictCOBUILD-ColEntry .dc .lbl.type-syntax{font-size:.8em;color:var(--color-font-grey)}.dictCOBUILD-ColEntry .dc ol{list-style-position:outside;list-style-type:decimal;margin-left:2em}.dictCOBUILD-ColEntry .dc ol ol.single,.dictCOBUILD-ColEntry .dc ol.single{list-style-type:none}.dictCOBUILD-ColEntry .dc .content-box-synonyms .h2_entry{display:inline-block}.dictCOBUILD-ColEntry .dc .content-box-collocation .explore-collocation,.dictCOBUILD-ColEntry .dc .content-box-synonyms .extra-link{display:inline-block;margin-left:1em}.dictCOBUILD-ColEntry .dc .thesaurus_synonyms .firstSyn{font-weight:700;display:inline-block;border-width:1px;border-style:solid;border-color:initial;border-image:initial;padding:5px 11px 2px;margin:0 5px 0 0}.dictCOBUILD-ColEntry .dc .thesaurus_synonyms .firstSyn>a{text-decoration:none}.dictCOBUILD-ColEntry .dc .content-box-examples .button,.dictCOBUILD-ColEntry .dc .content-box-synonyms .thesaurus-link-plus,.dictCOBUILD-ColEntry .dc .extra-link,.dictCOBUILD-ColEntry .dc .link-right.verbtable,.dictCOBUILD-ColEntry .dc .ref.type-thesaurus,.dictCOBUILD-ColEntry .verbtable_content .headword_link{background:rgba(218,218,218,.5);display:inline-block;padding:2px 10px;border:0;text-decoration:none;display:inline-block;font-weight:700;font-size:.9em;margin-top:2px}.dictCOBUILD-ColEntry .dc .h2_entry .dictname,.dictCOBUILD-ColEntry .dc .h2_entry .lbl.type-misc{font-size:16px}.dictCOBUILD-ColEntry .dc .translation .lang_EN-GB{margin-bottom:10px}.dictCOBUILD-ColEntry .dc .translation .def{font-weight:700;font-size:inherit}.dictCOBUILD-ColEntry .dc .translation .example{display:block;font-style:italic;margin-bottom:1em}.dictCOBUILD-ColEntry .dc .translation_list{margin:1em 0}.dictCOBUILD-ColEntry .dc .translation_list .gramGrp{text-transform:lowercase}.dictCOBUILD-ColEntry .audio_play_button,.dictCOBUILD-ColEntry .dc .audio_play_button{color:#ec2615;vertical-align:middle;transition:transform .2s,text-shadow .2s;border:0}.dictCOBUILD-ColEntry .dc .h1_entry{font-size:1.8em;line-height:1.75em}.dictCOBUILD-ColEntry .dc .entry_title{font-size:1.5em;line-height:1.4em;text-align:left;color:#4d4e51;font-weight:700}.dictCOBUILD-ColEntry .dc .gotodict{float:right;line-height:3.9em}.dictCOBUILD-ColEntry .dc .h2_entry .homnum{background-color:#1c4b8b;color:#fff;font-size:12px;font-weight:700;padding:2px 5px;vertical-align:super}.dictCOBUILD-ColEntry .context-english-thesaurus .quote{display:block;margin-top:10px}.dictCOBUILD-ColEntry .dc .dictionary .quote{color:var(--color-font-grey)}.dictCOBUILD-ColEntry .dc .dictionary .cit.type-translation .quote{font-weight:700}.dictCOBUILD-ColEntry .dc .dictionary .cit.type-example .quote .emph{color:var(--color-brand)}.dictCOBUILD-ColEntry .context-english-thesaurus .scbold br{display:none}.dictCOBUILD-ColEntry .context-english-thesaurus .dc .sense_list .scbold{border-bottom:0}.dictCOBUILD-ColEntry .context-english-thesaurus .scbold{display:block;font-style:italic;font-family:"Times New Roman",Times,serif;border-bottom:0;margin-top:15px;margin-bottom:5px;font-weight:700}.dictCOBUILD-ColEntry .dc .sup{vertical-align:super;font-size:smaller}.dictCOBUILD-ColEntry .dc .content-box:after,.dictCOBUILD-ColEntry .dc .dictionary .content:after{content:"";clear:both;display:table}.dictCOBUILD-ColEntry .dc .cit.type-quotation .quote,.dictCOBUILD-ColEntry .dc .content-box-examples .quote,.dictCOBUILD-ColEntry .dc .content-box-quotations .quote,.dictCOBUILD-ColEntry .dc .content-box-thesaurus .quote{display:block;margin-top:1em}.dictCOBUILD-ColEntry .dc .cit.type-quotation .author,.dictCOBUILD-ColEntry .dc .content-box-examples .author,.dictCOBUILD-ColEntry .dc .content-box-quotations .author,.dictCOBUILD-ColEntry .dc .content-box-thesaurus .author{font-weight:700;font-style:italic;font-size:.8em}.dictCOBUILD-ColEntry .dc .cit.type-quotation .title,.dictCOBUILD-ColEntry .dc .content-box-examples .title,.dictCOBUILD-ColEntry .dc .content-box-quotations .title,.dictCOBUILD-ColEntry .dc .content-box-thesaurus .title{display:inline;font-variant:small-caps;font-style:italic;font-size:.8em}.dictCOBUILD-ColEntry .dc .cit.type-quotation .year,.dictCOBUILD-ColEntry .dc .content-box-examples .year,.dictCOBUILD-ColEntry .dc .content-box-quotations .year,.dictCOBUILD-ColEntry .dc .content-box-thesaurus .year{font-size:.8em;font-style:italic}.dictCOBUILD-ColEntry .context-dataset-english-thesaurus .author,.dictCOBUILD-ColEntry .dc .content-box-syn-of-syns div.type-syn_of_syn_head .orth,.dictCOBUILD-ColEntry .dc .rend-b,.dictCOBUILD-ColEntry .dc .thesbase .key,.dictCOBUILD-ColEntry .headwordSense{color:var(--color-brand)}.dictCOBUILD-ColEntry .dc .minimalunit{font-weight:700}.dictCOBUILD-ColEntry .dc .image{background:#fafafa;border:solid 1px #eee;display:inline-block}.dictCOBUILD-ColEntry .dc .image .imageImg{max-width:100%;max-height:250px;vertical-align:middle}.dictCOBUILD-ColEntry .dc .image .imageDescription{font-style:italic;font-size:.8em;padding:0 5px}.dictCOBUILD-ColEntry .dc .example-info i{color:red;font-size:21px;vertical-align:text-top;border-bottom:0}.dictCOBUILD-ColEntry .dc .example-info{font-style:italic;font-size:.9em}.dictCOBUILD-ColEntry .page{font-size:1em}.dictCOBUILD-ColEntry .page .dictname{font-size:.7em}.dictCOBUILD-ColEntry .page .dictionary .copyright .i{color:gray}.dictCOBUILD-ColEntry .page .copyright{text-align:center;color:gray;font-size:small;margin-top:10px}.dictCOBUILD-ColEntry .page .metadata{display:none}.dictCOBUILD-ColEntry .page .description,.dictCOBUILD-ColEntry .page .infls,.dictCOBUILD-ColEntry .page .og,.dictCOBUILD-ColEntry .page .summary,.dictCOBUILD-ColEntry .page .title,.dictCOBUILD-ColEntry .page .url{display:block}.dictCOBUILD-ColEntry .page .assetref{display:block}.dictCOBUILD-ColEntry .page .assettype{font-weight:700;color:#00f}.dictCOBUILD-ColEntry .page .colloList,.dictCOBUILD-ColEntry .page .dictentry{margin-bottom:20px}.dictCOBUILD-ColEntry .page .asset_intro,.dictCOBUILD-ColEntry .page .assets_intro{color:green;display:block;font-weight:700;font-variant:small-caps}.dictCOBUILD-ColEntry .page .dictionary .re .hom{display:inline}.dictCOBUILD-ColEntry .page .dictionary .re{display:block}.dictCOBUILD-ColEntry .page .cobuild .hom{display:block;margin-left:1.5em;margin-bottom:1em}.dictCOBUILD-ColEntry .page .cobuild .sense{margin-left:0;margin-bottom:0;margin-top:.25em}.dictCOBUILD-ColEntry .page .dictionary .sense{display:block;margin-left:1.5em;margin-bottom:.5em;margin-top:.5em}.dictCOBUILD-ColEntry .page .dictionary .sense.inline{display:inline;margin-left:0}.dictCOBUILD-ColEntry .page .dictionary .inline{display:inline}.dictCOBUILD-ColEntry .page .dictionary .newline{display:block}.dictCOBUILD-ColEntry .page .cobuild br{display:none}.dictCOBUILD-ColEntry .page .dictionary .colloc,.dictCOBUILD-ColEntry .page .dictionary .subc{font-style:italic;font-weight:400}.dictCOBUILD-ColEntry .page .dictionary .re .pos{font-style:italic;color:#000}.dictCOBUILD-ColEntry .page .dictionary .b,.dictCOBUILD-ColEntry .page .dictionary .emph,.dictCOBUILD-ColEntry .page .dictionary .form.type-drv .orth,.dictCOBUILD-ColEntry .page .dictionary .form.type-infl .orth,.dictCOBUILD-ColEntry .page .dictionary .hi.rend-b{font-weight:700}.dictCOBUILD-ColEntry .page .dictionary .form.type-inflected{display:none}.dictCOBUILD-ColEntry .page .dictionary .emph,.dictCOBUILD-ColEntry .page .dictionary .hi.rend-b{font-weight:700}.dictCOBUILD-ColEntry .page .dictionary .hi.rend-sc{font-variant:small-caps}.dictCOBUILD-ColEntry .page .dictionary .hi.rend-u{text-decoration:underline;font-size:inherit}.dictCOBUILD-ColEntry .page .dictionary .hi.rend-r{font-weight:400;font-style:normal}.dictCOBUILD-ColEntry .page .dictionary .hi.rend-sup,.dictCOBUILD-ColEntry .page .dictionary .sup{vertical-align:super;font-size:smaller}.dictCOBUILD-ColEntry .page .dictionary .hi.rend-sub,.dictCOBUILD-ColEntry .page .dictionary .sub{vertical-align:sub;font-size:smaller}.dictCOBUILD-ColEntry .page .dictionary .hi.rend-i{font-style:italic}.dictCOBUILD-ColEntry .page .dictionary .i{font-weight:400;font-style:italic;color:#000}.dictCOBUILD-ColEntry .page .dictionary .note{color:#000;line-height:1.4em;font-style:normal;background-color:#e9eef4;margin:6px 0;padding:6px 4px 6px 18px;font-weight:400;display:block}.dictCOBUILD-ColEntry .page .dictionary .posp{font-size:80%;text-transform:uppercase}.dictCOBUILD-ColEntry .page .dictionary .r{font-style:normal}.dictCOBUILD-ColEntry .page .dictionary .u{text-decoration:underline}.dictCOBUILD-ColEntry .page .dictionary .block{display:block;margin-top:3px}.dictCOBUILD-ColEntry .page .hin .block{display:block;margin-top:15px;margin-bottom:7.5px}.dictCOBUILD-ColEntry .page .dictionary .bolditalic{font-weight:700;font-style:italic}.dictCOBUILD-ColEntry .page span.bluebold{font-weight:700;color:#1c4b8b}.dictCOBUILD-ColEntry .page span.ital,.dictCOBUILD-ColEntry .page span.italics{font-style:italic}.dictCOBUILD-ColEntry .page span.sensenum{margin-left:-1.3em;float:left;font-weight:700;font-size:1.1em}.dictCOBUILD-ColEntry .page .dictionary .cit.type-translation .quote{font-style:normal;color:var(--color-brand)}.dictCOBUILD-ColEntry .page .dictionary .cit.type-translation .pos,.dictCOBUILD-ColEntry .page .dictionary .var,.dictCOBUILD-ColEntry .page span.bold{font-style:bold}.dictCOBUILD-ColEntry .dc a,.dictCOBUILD-ColEntry .openerBig{cursor:pointer;color:inherit;text-decoration:none}.dictCOBUILD-ColEntry label.openerBig{display:inline}.dictCOBUILD-ColEntry .page .dictionary a:hover{color:#f9690e}.dictCOBUILD-ColEntry .page .dictionary .power{float:right}.dictCOBUILD-ColEntry .page .dictionary .power .i{color:#1c4b8b;font-size:inherit}.dictCOBUILD-ColEntry .page .dictionary .hom_subsec{display:block}.dictCOBUILD-ColEntry .page .dictionary .definitions,.dictCOBUILD-ColEntry .page .dictionary .derivs,.dictCOBUILD-ColEntry .page .dictionary .etyms{margin-bottom:1em}.dictCOBUILD-ColEntry .page .dictionary .inflected_forms{display:block;padding-bottom:1.25em}.dictCOBUILD-ColEntry .page .dictionary .scbold{font-weight:700;text-transform:uppercase;font-size:.8em}.dictCOBUILD-ColEntry .page .dictionary .note .scbold{display:block}.dictCOBUILD-ColEntry .page .dictionary .pron .ptr{color:red}.dictCOBUILD-ColEntry .page .dictionary .list,.dictCOBUILD-ColEntry .page .dictionary .relwordgrp{display:block;margin-left:20px}.dictCOBUILD-ColEntry .page .dictionary .listitem,.dictCOBUILD-ColEntry .page .dictionary .relwordunit{display:list-item}.dictCOBUILD-ColEntry .page .dictionary .type-antgrp,.dictCOBUILD-ColEntry .page .dictionary .type-syngrp{display:block}.dictCOBUILD-ColEntry .page .asset.Corpus_Examples_EN .quote{font-style:italic}.dictCOBUILD-ColEntry .page .cobuild .sense{margin-left:0}.dictCOBUILD-ColEntry .page .cit.type-example .content{background-color:#fff;margin-bottom:20px;padding:20px}.dictCOBUILD-ColEntry .page .cit.type-example .author{font-weight:700;font-style:italic}.dictCOBUILD-ColEntry .page .cit.type-example .title{display:inline;font-variant:small-caps;font-style:italic}.dictCOBUILD-ColEntry .page .cit.type-example .ref.type-def{text-decoration:none;color:inherit}.dictCOBUILD-ColEntry .page .biling .lbl{font-style:italic;font-variant:initial;font-weight:initial}.dictCOBUILD-ColEntry .page .biling .lbl.type-subj{font-variant:small-caps}.dictCOBUILD-ColEntry .page .biling .lbl.type-tm{font-style:normal}.dictCOBUILD-ColEntry .page .biling .lbl.type-tm_hw{font-size:.78em}.dictCOBUILD-ColEntry .page .biling .lbl.type-infl,.dictCOBUILD-ColEntry .page .biling .lbl.type-infl span{font-style:normal;color:#1c4b8b;font-weight:400}.dictCOBUILD-ColEntry .page .biling br{display:none}.dictCOBUILD-ColEntry .page .biling .phrasals .re .orth{font-size:1.25em}.dictCOBUILD-ColEntry .page .biling .sense .re{font-size:100%;margin-left:0}.dictCOBUILD-ColEntry .page .hin .form.type-ant .orth,.dictCOBUILD-ColEntry .page .hin .form.type-phr .orth,.dictCOBUILD-ColEntry .page .hin .form.type-syn .orth{font-weight:400;font-size:100%}.dictCOBUILD-ColEntry .page .biling .re{display:block;margin-left:1em}.dictCOBUILD-ColEntry .page .thesbase .synunit .cit{display:inline}.dictCOBUILD-ColEntry .page .thesbase .xr.type-theslink{display:inline-block;margin-left:20px}.dictCOBUILD-ColEntry .page .thesbase .relwgrp{display:block;margin-left:1em}.dictCOBUILD-ColEntry .page .thesbase .caption{display:block;font-weight:700;margin-top:10px;font-size:larger}.dictCOBUILD-ColEntry .page .thesbase .bibl,.dictCOBUILD-ColEntry .page .thesbase .cit.type-proverb,.dictCOBUILD-ColEntry .page .thesbase .table{display:block}.dictCOBUILD-ColEntry .page .thesbase .bibl .title{display:inline}.dictCOBUILD-ColEntry .page .thesbase .tr{display:table-row}.dictCOBUILD-ColEntry .page .thesbase .td{display:table-cell;padding:3px}.dictCOBUILD-ColEntry .page .thesbase .th{display:table-cell;font-weight:700}.dictCOBUILD-ColEntry .page .thesbase .cit.type-example .quote{padding-left:10px}.dictCOBUILD-ColEntry .page .thesbase .note{background-color:transparent;padding:0;margin-top:10px;overflow:hidden}.dictCOBUILD-ColEntry .page .thesbase .note .tr{display:block;margin-bottom:20px}.dictCOBUILD-ColEntry .page .thesbase .tr .td:first-child{background-color:#e9eef4;font-weight:700;color:#1c4b8b;padding:5px 15px}.dictCOBUILD-ColEntry .page .thesbase .note .td{padding:8px 15px;display:block}.dictCOBUILD-ColEntry .page .thesbase .note .th{display:none}.dictCOBUILD-ColEntry .page .thesbase .link{text-decoration:underline;font-family:"Open Sans",sans-serif;background:#e5ebf3;color:#1c4b8b;padding:.3em .8em;margin:5px 0;display:inline-block}.dictCOBUILD-ColEntry .page .thesbase .sense{margin-bottom:2em}.dictCOBUILD-ColEntry .page .thesbase .author{font-weight:700;font-style:italic}.dictCOBUILD-ColEntry .cdet .content-box-origin{padding-top:0;padding-bottom:0}.dictCOBUILD-ColEntry .page .thesbase .sensehead>.sensenum{float:none}.dictCOBUILD-ColEntry .page .thesbase .scbold{background:#efefef;padding:.5em 22px;margin:2em 0 1em 0;font-weight:700;font-size:80%;text-transform:uppercase;display:block}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns div.type-syn_of_syn_head{display:inline-block}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns div.type-syn_of_syn_head .orth,.dictCOBUILD-ColEntry .page .thesbase .key{font-weight:700;margin-right:0;display:inline-block;margin-left:0;padding:.3em .3em;border:0;font-size:1.1em;padding-left:0;padding-bottom:0}.dictCOBUILD-ColEntry .headwordSense{font-weight:700;display:inline-block;font-size:1.1em;cursor:pointer}.dictCOBUILD-ColEntry .page .thesbase .key{padding-right:0}.dictCOBUILD-ColEntry .page .thesbase h2.first-sense{display:inline;font-size:inherit}.dictCOBUILD-ColEntry .thesbase ol.square{margin-left:1.6em}.dictCOBUILD-ColEntry .page .thesbase .firstSyn{color:#000;font-size:.9em}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .syns_head{margin-top:2.2em}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .syns_example{line-height:2.5em}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .columns3,.dictCOBUILD-ColEntry .page .type-ant.columns3{column-count:3}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .syns_items{display:block}.dictCOBUILD-ColEntry .pagination{text-align:center;margin:1em}.dictCOBUILD-ColEntry .pagination a.next,.dictCOBUILD-ColEntry .pagination a.page,.dictCOBUILD-ColEntry .pagination a.prev,.dictCOBUILD-ColEntry .pagination p,.dictCOBUILD-ColEntry .pagination p a,.dictCOBUILD-ColEntry .pagination span.page{padding:.3em .8em;display:inline-block;text-decoration:none;font-weight:700;border:0}.dictCOBUILD-ColEntry .pagination a.next,.dictCOBUILD-ColEntry .pagination a.page,.dictCOBUILD-ColEntry .pagination a.prev{background:#e5ebf3;color:#194885}.dictCOBUILD-ColEntry .pagination p,.dictCOBUILD-ColEntry .pagination p a,.dictCOBUILD-ColEntry .pagination span.page{background:#194885;color:#e5ebf3}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .lbl,.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .lbl span,.dictCOBUILD-ColEntry .page .dictionary.thesbase .lbl,.dictCOBUILD-ColEntry .page .dictionary.thesbase .lbl span{font-style:italic;color:green}.dictCOBUILD-ColEntry .page .dictionary.thesbase .sensebody{display:block;margin:.5em 0 .5em 6px}.dictCOBUILD-ColEntry .page .thesbase span.bold{font-weight:700}.dictCOBUILD-ColEntry .page .thesbase span.kerntouch{letter-spacing:-.18em}.dictCOBUILD-ColEntry .page .thesbase span.kern60{letter-spacing:-.6em}.dictCOBUILD-ColEntry .page .thesbase span.manualdiacritic{vertical-align:25%;letter-spacing:-1em}.dictCOBUILD-ColEntry .page .thesbase span.numerator{vertical-align:35%;font-size:smaller}.dictCOBUILD-ColEntry .page .thesbase span.numerator_back{position:absolute;vertical-align:35%;letter-spacing:-1em;font-size:smaller}.dictCOBUILD-ColEntry .page .thesbase span.denominator{vertical-align:-35%;font-size:smaller}.dictCOBUILD-ColEntry .page .thesbase span.italics{font-weight:400;font-style:italic;color:#000}.dictCOBUILD-ColEntry .page .thesbase span.homnum{font-weight:700;color:#fff;vertical-align:super;font-size:50%}.dictCOBUILD-ColEntry .page .thesbase span.sensenum{font-weight:700;display:inline-block;min-width:1em}.dictCOBUILD-ColEntry .cdet .toc-group a{color:var(--color-brand);border-bottom:dashed 1px var(--color-brand)}.dictCOBUILD-ColEntry .cdet .toc{text-align:left;padding:0 1em;margin-top:1em}.dictCOBUILD-ColEntry .cdet .toc-group .pos{font-style:italic}.dictCOBUILD-ColEntry .cdet .toc-group .orth{color:var(--color-brand)}.dictCOBUILD-ColEntry .page .thesbase span.QA{font-style:italic;color:red;font-size:90%}.dictCOBUILD-ColEntry .page .thesbase hr{width:50%;text-align:left;border:3px inset #555;height:6px;margin:10px auto 5px 0}.dictCOBUILD-ColEntry .page .thesbase .cit.type-quotation{display:block}.dictCOBUILD-ColEntry .page .thesbase .cit.type-proverb>.quote,.dictCOBUILD-ColEntry .page .thesbase .cit.type-quotation>.bibl,.dictCOBUILD-ColEntry .page .thesbase .cit.type-quotation>.quote{display:block;margin-left:1em;padding-left:0}.dictCOBUILD-ColEntry .page .thesbase>.re.type-phr .xr{font-weight:700}.dictCOBUILD-ColEntry .page .thesbase .div .xr{display:block;margin-left:1em}.dictCOBUILD-ColEntry .cdet .content-box{padding:0;border-left:none}.dictCOBUILD-ColEntry .cdet .toggleExample{position:absolute;right:0;top:-1em;padding:.2em;padding-right:1em;background-color:rgba(164,189,212,.53)}.dictCOBUILD-ColEntry .cdet .blockSyn{position:relative}.dictCOBUILD-ColEntry .cdet div[data-type-block] .sense .sensenum{margin-left:0}.dictCOBUILD-ColEntry .cdet .page .dictionary .sense,.dictCOBUILD-ColEntry .cdet .sense.moreSyn{margin-left:0;margin-bottom:.5em;padding-bottom:.5em;position:relative}.dictCOBUILD-ColEntry .cdet .sense .sensehead .xr{display:none}.dictCOBUILD-ColEntry .cdet .h1Word{color:#e9573f}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .syns_container{padding-left:1.9em}.dictCOBUILD-ColEntry .cdet .dictionary.thesbase .sensebody,.dictCOBUILD-ColEntry .cdet div[data-type-block] .sense .sensebody{margin:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;padding-right:1.9em;padding-left:1.9em;line-height:1.5em;font-size:.9em}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns div[data-type-block] .sense .def,.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns div[data-type-block] .sense .syns_example{margin:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;line-height:1.5em;font-size:.9em;padding-right:0;padding-left:0}.dictCOBUILD-ColEntry .cdet .sensehead>.sensenum{min-width:1.9em;display:inline-block;text-align:center;font-size:.9em;color:#4d4e51}.dictCOBUILD-ColEntry .cdet .dictionary .sense.opened,.dictCOBUILD-ColEntry .cdet div[data-type-block] .sense.opened{margin-left:0;margin-bottom:1em;padding-bottom:.5em;cursor:auto;position:relative}.dictCOBUILD-ColEntry .cdet .dictionary.thesbase .sense.opened .sensebody,.dictCOBUILD-ColEntry .cdet div[data-type-block] .sense.opened .sensebody{overflow:auto;text-overflow:inherit;white-space:inherit}.dictCOBUILD-ColEntry .cdet .iconContainer,.dictCOBUILD-ColEntry .cdet .toggleExample{display:none}.dictCOBUILD-ColEntry .cdet .iconContainer{position:absolute;right:0}.dictCOBUILD-ColEntry .cdet .sense.opened .iconContainer{display:block}.dictCOBUILD-ColEntry .cdet .syns_container{padding-left:0}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .sense.moreSyn{margin-bottom:.5em}.dictCOBUILD-ColEntry .cdet .form.type-syn .orth,.dictCOBUILD-ColEntry .cdet .syns_container .form.type-syn .orth,.dictCOBUILD-ColEntry .cdet .type-ant .orth{background-color:transparent;border:0;font-size:.97em;font-weight:700;text-decoration:none;color:#4d4e51;margin:0;display:inline-block}.dictCOBUILD-ColEntry .cdet .dictionary .content,.dictCOBUILD-ColEntry .cdet .form.type-syn{position:relative}.dictCOBUILD-ColEntry .cdet .titleTypeContainer{font-size:.9em}.dictCOBUILD-ColEntry .cdet .titleTypeContainer .titleType{font-size:1.1em;color:#4d4e51;display:inline-block;margin-top:.5em;font-weight:700}.dictCOBUILD-ColEntry body.context-language-THESAURUS{background-color:#fff}.dictCOBUILD-ColEntry .cdet .sense .form [class*=type]{font-size:.9em}.dictCOBUILD-ColEntry .cdet .titleTypeSubContainer{margin-top:.5em;font-weight:700;font-size:.9em}.dictCOBUILD-ColEntry .cdet .form.type-syn .titleTypeSubContainer{display:block}.dictCOBUILD-ColEntry .cdet .blockAnt,.dictCOBUILD-ColEntry .cdet .blockAnt div,.dictCOBUILD-ColEntry .cdet .blockSyn,.dictCOBUILD-ColEntry .cdet .form.type-ant,.dictCOBUILD-ColEntry .cdet .form.type-ant .titleTypeSubContainer,.dictCOBUILD-ColEntry .cdet .form.type-syn .titleTypeSubContainer,.dictCOBUILD-ColEntry .cdet .sense.moreAnt .type-ant div{display:inline}.dictCOBUILD-ColEntry .entry.dictionary.thesbase.content-box.content-box-thesbase{position:relative}.dictCOBUILD-ColEntry .cdet .form.type-ant .titleTypeSubContainer:after,.dictCOBUILD-ColEntry .cdet .form.type-syn .titleTypeSubContainer:after{content:": ";display:inline}.dictCOBUILD-ColEntry .cdet .titleTypeSubContainer .titleType{display:inline;padding:0;font-size:1.3em;font-variant:all-small-caps}.dictCOBUILD-ColEntry .cdet .blockSyn{margin-bottom:1em}.dictCOBUILD-ColEntry .headerSensePos{font-size:.9em;color:#888;font-style:italic}.dictCOBUILD-ColEntry .blockAnt .type-ant>div:before{content:", ";display:inline}.dictCOBUILD-ColEntry .cdet .blockAnt .type-ant>div:first-child:before{content:"";display:inline}.dictCOBUILD-ColEntry .cdet .type-ant .orth{font-weight:400}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .syns_container,.dictCOBUILD-ColEntry .cdet .type-ant{padding-left:0;margin-left:0}.dictCOBUILD-ColEntry .cdet .content-box-comments{background-color:#fff;margin-bottom:20px;padding:20px;position:relative}.dictCOBUILD-ColEntry .cdet .content-box-comments,.dictCOBUILD-ColEntry .cdet .content-box-nearby-words,.dictCOBUILD-ColEntry .cdet .content-box-origin,.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns,.dictCOBUILD-ColEntry .cdet .dictionary .content{border-left:none;box-shadow:none}.dictCOBUILD-ColEntry .cdet .content-box-nearby-words li,.dictCOBUILD-ColEntry .cdet .re.type-phr .xr{margin-left:0;padding-left:.85em;margin-bottom:.3em;padding-bottom:.3em;display:block}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns div.type-syn_of_syn_head{display:block}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .sense .def{padding-left:1em}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .sense .def,.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .sense .syns_example{margin:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;line-height:1.5em;font-size:.9em;color:#4d4e51}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .quote{font-style:italic}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .sense.opened .def,.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .sense.opened .syns_example,.dictCOBUILD-ColEntry .cdet div[data-type-block] .sense.opened .sensebody{overflow:auto;white-space:normal}.dictCOBUILD-ColEntry .cdet .content-box-syn-of-syns .syns_head{margin-top:0}.dictCOBUILD-ColEntry .cdet .cit.type-quotation>.bibl{font-size:.85em}.dictCOBUILD-ColEntry .cdet .cit.type-quotation{margin-left:0;margin-bottom:.3em;padding-bottom:.3em}.dictCOBUILD-ColEntry .cdet .cit.type-quotation>.titleTypeContainer,.dictCOBUILD-ColEntry .cdet .re.type-phr>.titleTypeContainer{margin-bottom:1em}.dictCOBUILD-ColEntry .cdet .cit.type-quotation>.quote{line-height:1.3em;margin-bottom:.3em}.dictCOBUILD-ColEntry .cdet .syns_example .cit.type-example{overflow:inherit;text-overflow:inherit;white-space:inherit}.dictCOBUILD-ColEntry .cdet .cit.type-quotation .author,.dictCOBUILD-ColEntry .cdet .cit.type-quotation .title{font-size:inherit}.dictCOBUILD-ColEntry .cdet span.sensenum{margin-left:0}.dictCOBUILD-ColEntry .cdet .dictionary .quote{color:#4d4e51;font-size:.9em}.dictCOBUILD-ColEntry .cdet span.quote:before{content:"";margin:2px 6px;display:inline-block;background-color:#000;padding:3px}.dictCOBUILD-ColEntry .cdet .headerSense .sensenum{margin-left:-20px}.dictCOBUILD-ColEntry .cdet .containerBlock,.dictCOBUILD-ColEntry .cdet .synonymBlock{margin-left:20px}.dictCOBUILD-ColEntry .cdet .headerThes .entry_title+div a{color:var(--color-brand);font-size:.9em;margin-bottom:1em;display:inline-block}.dictCOBUILD-ColEntry .cdet .form{display:inline}.dictCOBUILD-ColEntry .cdet .cit.type-example,.dictCOBUILD-ColEntry .selectorOpernerBig,.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.opened .openerBig,.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.opened .sep,.dictCOBUILD-ColEntry .selectorOpernerBig:checked~label[for=default]{display:none}.dictCOBUILD-ColEntry .selectorOpernerBig+.shadow_layer{position:fixed;width:100%;height:100%;top:0;left:0;background-color:rgba(128,128,128,.78);z-index:2}.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.opened .cit.type-example,.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.opened div>.form{display:block}.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.opened:before{content:"";display:block;height:2em;position:fixed;top:0;z-index:1;background-color:#fff;width:70%;left:15%}.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.sense.opened{position:fixed;top:0;left:15%;height:calc(100% - 2em);width:70%;background-color:#fff;z-index:3;margin:0;padding:1em;overflow-y:auto;margin-top:2em}.dictCOBUILD-ColEntry .selectorOpernerBig~label.menuPanelCloseButton{position:fixed;display:block;top:0;border-bottom:0;z-index:4;right:calc(15% - -10px)}.dictCOBUILD-ColEntry .he .grammar .page{display:block;border:solid 1px;font-family:arial,helvetica,sans-serif;margin-bottom:20px;padding:15px;padding-bottom:40px}.dictCOBUILD-ColEntry .he .grammar a.next,.dictCOBUILD-ColEntry .he .grammar a.previous{background:#e5ebf3;color:#194885;padding:.5em 1em;font-weight:bolder;border-bottom:0;float:left;margin-top:1em}.dictCOBUILD-ColEntry .he .grammar a.next{float:right}.dictCOBUILD-ColEntry .he .grammar a.next:hover,.dictCOBUILD-ColEntry .he .grammar a.previous:hover{color:#194885}.dictCOBUILD-ColEntry .he .grammar a.next i,.dictCOBUILD-ColEntry .he .grammar a.previous i{font-size:1.3em;vertical-align:middle;padding-right:8px;padding-left:8px;display:inline-block}.dictCOBUILD-ColEntry .he .grammar .exmplblk ul{padding-left:0}.dictCOBUILD-ColEntry .he .grammar .exmplblk{padding:.5em}.dictCOBUILD-ColEntry .he .grammar .exmplgrp ul{padding-left:20px;padding-bottom:10px}.dictCOBUILD-ColEntry .he .grammar .intro.suppressed{display:none}.dictCOBUILD-ColEntry .he .grammar h2{font-size:16pt;line-height:2em;text-decoration:underline}.dictCOBUILD-ColEntry .he .grammar h3{font-size:14pt}.dictCOBUILD-ColEntry .he .grammar h4{font-size:12pt;font-weight:700;margin-bottom:1em}.dictCOBUILD-ColEntry .he .grammar u{text-decoration:underline}.dictCOBUILD-ColEntry .he .grammar .lemma{font-weight:700}.dictCOBUILD-ColEntry .he .grammar .caption{font-weight:700;margin-top:1.5em}.dictCOBUILD-ColEntry .he .grammar .p{display:block;margin-top:5px;margin-bottom:5px}.dictCOBUILD-ColEntry .he .grammar .group{display:block;margin-top:2em;margin-bottom:2em}.dictCOBUILD-ColEntry .he .grammar .exmpl{font-weight:400;font-style:italic}.dictCOBUILD-ColEntry .he .grammar .i,.dictCOBUILD-ColEntry .he .grammar .post{font-style:italic}.dictCOBUILD-ColEntry .he .grammar .posp{font-weight:700;font-style:normal}.dictCOBUILD-ColEntry .he .grammar .pattern{font-family:sans-serif}.dictCOBUILD-ColEntry .he .grammar .ul{margin-top:5px;list-style-type:none;padding-left:15px}.dictCOBUILD-ColEntry .he .grammar ul.arrow{list-style-type:square}.dictCOBUILD-ColEntry .he .grammar ul.star{list-style-type:disc}.dictCOBUILD-ColEntry .he .grammar ul.alpha{list-style-type:lower-alpha}.dictCOBUILD-ColEntry .he .grammar ol{margin-top:5px;list-style-type:decimal}.dictCOBUILD-ColEntry .he .grammar .li.exmpl{font-style:italic}.dictCOBUILD-ColEntry .he .grammar .lemmalist .li{margin-top:10px}.dictCOBUILD-ColEntry .he .grammar .lemmalist{border-color:#ccc;border-style:solid;border-width:1px;margin:4px;margin-top:2em;padding:1em;column-count:4}.dictCOBUILD-ColEntry .he .grammar div.greyborder2{border-color:#ccc;border-style:solid;border-width:1px;margin:4px;column-count:4}.dictCOBUILD-ColEntry .he .grammar td,.dictCOBUILD-ColEntry .he .grammar th{border-color:#000;border-style:solid;border-width:1px;padding:.5em 1.4em}.dictCOBUILD-ColEntry .he .grammar th{background-color:#ddd;font-weight:700;font-size:.9em}.dictCOBUILD-ColEntry .he .grammar table{border-collapse:collapse;border-color:#000;border-style:solid;border-width:1px;margin-top:1.5em;margin-bottom:1em}.dictCOBUILD-ColEntry .linksTool+.linksTool{margin-top:.5em}.dictCOBUILD-ColEntry .linksTool{margin:1.5em 1em 1.5em 1em;font-style:italic;font-size:.9em}.dictCOBUILD-ColEntry .he .grammar a.block{display:block}.dictCOBUILD-ColEntry .he .grammar i.icon-chevron-thin-right{display:inline-block;font-weight:700;width:2em;text-align:center;font-size:.6em}.dictCOBUILD-ColEntry .he .grammar .chapter a:before,.dictCOBUILD-ColEntry .he .grammar .group a:before,.dictCOBUILD-ColEntry .he .grammar .pattern a:before,.dictCOBUILD-ColEntry .he .grammar .posGr a:before,.dictCOBUILD-ColEntry .he .grammar .section a:before,.dictCOBUILD-ColEntry .he .grammar .subpattern a:before{display:block;content:""}.dictCOBUILD-ColEntry .entry_container{color:inherit;display:block;background:#fff;box-shadow:0 0 3px rgba(0,0,0,.2);text-decoration:none;margin-bottom:20px;padding:20px}.dictCOBUILD-ColEntry .he .grammar .breadcrumb{margin-bottom:2em}.dictCOBUILD-ColEntry .synonymBlock{border:1px solid transparent}.dictCOBUILD-ColEntry .synonymBlock:after{content:"";display:block;clear:both}.dictCOBUILD-ColEntry .grammar .bold{display:inline;font-weight:700}.dictCOBUILD-ColEntry .grammar .italic{display:inline;font-style:italic}.dictCOBUILD-ColEntry .grammar .bolditalic{display:inline;font-weight:700;font-style:italic}.dictCOBUILD-ColEntry .grammar .roman{font-style:normal}.dictCOBUILD-ColEntry .grammar .color{color:#0058a9}.dictCOBUILD-ColEntry .grammar .color1{color:#0058a9;font-style:normal}.dictCOBUILD-ColEntry .grammar .chaptitle{font-size:x-large;font-weight:700;color:#0058a9}.dictCOBUILD-ColEntry .grammar .parttitle{font-size:xx-large;font-weight:700;color:#0058a9}.dictCOBUILD-ColEntry .grammar .head1{font-weight:700}.dictCOBUILD-ColEntry .grammar .head{font-size:medium;font-weight:700;color:#0058a9;margin-top:2em}.dictCOBUILD-ColEntry .grammar .p{font-size:medium;font-style:normal;text-indent:0}.dictCOBUILD-ColEntry .grammar .ind{font-size:medium;font-weight:400;font-style:normal;text-indent:0;margin-top:.3em;margin-bottom:.3em;margin-left:.8em;text-indent:-.8em}.dictCOBUILD-ColEntry .grammar .ul.cll0{padding-left:0;list-style-type:disc}.dictCOBUILD-ColEntry .grammar .ul.cll0 .li{margin-left:1em}.dictCOBUILD-ColEntry .grammar .ul.cll1{padding-left:0;list-style-type:none}.dictCOBUILD-ColEntry .grammar .ul.cll1>.li:before{content:"– "}.dictCOBUILD-ColEntry .grammar .ol.cll4 .li,.dictCOBUILD-ColEntry .grammar .ul.cll1 .li,.dictCOBUILD-ColEntry .grammar .ul.cll2 .li{margin-left:.8em;text-indent:-.8em}.dictCOBUILD-ColEntry .grammar .ul.cll2,.dictCOBUILD-ColEntry .grammar .ul.cll2a{list-style-type:none;margin-top:1em;margin-bottom:1em}.dictCOBUILD-ColEntry .grammar .ul.cll2a{padding-left:.75em}.dictCOBUILD-ColEntry .grammar .ul.cll2a .li{margin-left:0;text-indent:-.8em}.dictCOBUILD-ColEntry .grammar .ul.cll3{padding-left:1.2em;color:#0058a9}.dictCOBUILD-ColEntry .grammar .ul.cll3>.li>span{color:#000}.dictCOBUILD-ColEntry .grammar .ol.cll4{list-style-type:none;margin-top:1em;margin-bottom:1em;padding-left:1.5em}.dictCOBUILD-ColEntry .grammar span.label{width:.8em;display:inline-block;color:#0058a9;font-weight:700}.dictCOBUILD-ColEntry .grammar span.label1{width:.8em;display:inline-block}.dictCOBUILD-ColEntry .grammar .block{font-size:.83em;font-style:italic;font-weight:400;text-align:justify;text-indent:0;margin:.3em 1.3em}.dictCOBUILD-ColEntry .grammar div.box{border:1px solid #0058a9;margin-top:2em;margin-bottom:2em;padding:0 2.5em;background-color:#e1e4ee;border-radius:15px}.dictCOBUILD-ColEntry .grammar .toc{margin-top:.25em;margin-bottom:.25em}.dictCOBUILD-ColEntry .grammar .center{text-align:center}.dictCOBUILD-ColEntry .grammar .right{text-align:right}.dictCOBUILD-ColEntry .grammar .small{font-size:78%}.dictCOBUILD-ColEntry .grammar td{vertical-align:top}.dictCOBUILD-ColEntry .grammar td.filet_b,.dictCOBUILD-ColEntry .grammar td.filet_l,.dictCOBUILD-ColEntry .grammar td.filet_r,.dictCOBUILD-ColEntry .grammar td.filet_t{border-right:1px solid #000}.dictCOBUILD-ColEntry .grammar .tab1{margin-left:5em}.dictCOBUILD-ColEntry .grammar .strike{text-decoration:line-through}.dictCOBUILD-ColEntry .navigation .tab.current .ref>.pos{color:#fff}.dictCOBUILD-ColEntry .cdet .ref>.pos{font-style:italic;font-size:.9em;color:#777772}.dictCOBUILD-ColEntry .openTootip,.dictCOBUILD-ColEntry .openTootip~.def{display:none}.dictCOBUILD-ColEntry .openTootip:checked~.def{display:block}.dictCOBUILD-ColEntry .linkDef{display:inline}.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.sense.opened .cit .quote:before{display:none}@media screen and (min-width:321px){.dictCOBUILD-ColEntry .cdet .dictionary .hom,.dictCOBUILD-ColEntry .cdet .dictionary .syn_of_syns,.dictCOBUILD-ColEntry .cdet .page .dictionary .sense,.dictCOBUILD-ColEntry .cdet .sense.moreSyn{overflow:hidden}}@media screen and (max-width:761px){.dictCOBUILD-ColEntry .cdet .navigation .nav{display:none}.dictCOBUILD-ColEntry .cdet .more{margin:10px auto 10px auto;width:50%}.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.sense.opened,.dictCOBUILD-ColEntry .selectorOpernerBig:checked+.sense.sense.opened:before{width:100%;left:0}.dictCOBUILD-ColEntry .selectorOpernerBig~label.menuPanelCloseButton{right:0}}.dictCOBUILD-ColEntry .navigation{position:relative;width:100%}.dictCOBUILD-ColEntry .navigation:before{content:" ";position:absolute;width:100%;height:100%;top:0;background-color:inherit}.dictCOBUILD-ColEntry .navigation a.tab,.dictCOBUILD-ColEntry .navigation span.tab>a{font-size:.9em;display:inline-block;line-height:26px;padding:4px 8px;color:#333;background-color:#e5ebf3;margin:6px 2px 10px 2px;border:0;border-radius:2px}.dictCOBUILD-ColEntry .navigation .expo{position:relative;top:-4px;font-size:.8em;margin-left:2px}.dictCOBUILD-ColEntry .navigation[data-position=fixed]{position:fixed;top:50px;z-index:2}.dictCOBUILD-ColEntry .navigation a.nav:hover{background-color:#1c4b8b;color:#fff}.dictCOBUILD-ColEntry .navigation .tab .ref:active,.dictCOBUILD-ColEntry .navigation a.tab.current,.dictCOBUILD-ColEntry .navigation span.tab.current>a{background-color:#1c4b8b;color:#fff;position:relative}.dictCOBUILD-ColEntry .cdet .ref:active>.pos{color:#fff}.dictCOBUILD-ColEntry .navigation .tabsNavigation{overflow:hidden;white-space:nowrap;position:relative;word-wrap:normal}.dictCOBUILD-ColEntry .navigation .tabsNavigation i{font-size:.85em}.dictCOBUILD-ColEntry .navigation .tab.current::before{content:"";display:inline-block;position:absolute;left:50%;left:1.2em;bottom:-5px;width:0;height:0;border-style:solid;border-width:0 5px 5px 5px;border-color:transparent transparent #1c4b8b transparent;transform:rotate(180deg);-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg)}.dictCOBUILD-ColEntry .navigation a.nav{background:#cdd4de;position:absolute;top:0;font-size:20px;overflow:hidden;display:inline-block;color:#4d4e51;margin-left:0;margin-right:0;padding-left:15px;padding-right:15px}.dictCOBUILD-ColEntry .navigation .left{left:0}.dictCOBUILD-ColEntry .navigation .right{right:0}.dictCOBUILD-ColEntry .cdet .navigation{background-color:#fff}.dictCOBUILD-ColEntry .navigation .tab a{border-bottom:0}.dictCOBUILD-ColEntry .cdet .tab span+span{display:inline-block;padding-left:.3em}.dictCOBUILD-ColEntry .cdet .tab a{display:inline-block}.dictCOBUILD-ColEntry .dc .frenquency-title{float:right}.dictCOBUILD-ColEntry .dc .word-frequency-img{margin-left:.5em}.dictCOBUILD-ColEntry .dc .word-frequency-container .level{border-radius:50%;display:inline-block}.dictCOBUILD-ColEntry .dc .word-frequency-container .level.roundRed{background-color:#f9690e}.dictCOBUILD-ColEntry .dc .word-frequency-container .level1{width:14px;height:14px}.dictCOBUILD-ColEntry .dc .word-frequency-container .level2{width:15px;height:15px}.dictCOBUILD-ColEntry .dc .word-frequency-container .level3{width:16px;height:16px}.dictCOBUILD-ColEntry .dc .word-frequency-container .level4{width:17px;height:17px}.dictCOBUILD-ColEntry .dc .word-frequency-container .level5{width:18px;height:18px}.dictCOBUILD-ColEntry .dc .word-frequency-container .round{width:100%;height:100%}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level{border-radius:0;width:15px;vertical-align:bottom}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level1{background:#f6b26b;height:10px}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level2{background:#f6b26b;height:13px}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level3{background:#ffd966;height:16px}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level4{background:#ffd966;height:19px}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level5{background:#b6d7a8;height:22px}.dictCOBUILD-ColEntry .dc .word-frequency-container.relevance .level6{background:#b6d7a8;height:25px}.dictCOBUILD-ColEntry .lightboxLink{cursor:pointer}.dictCOBUILD-ColEntry .lightboxOverlay{background:rgba(0,0,0,.8);position:fixed;top:0;left:0;width:100%;height:100%;z-index:10;padding:20px;display:flex;align-items:center;justify-content:center;text-align:center}.dictCOBUILD-ColEntry .lightboxContainer{display:inline-block;position:relative;padding-bottom:30px}.dictCOBUILD-ColEntry .lightboxImage{min-height:200px;min-width:200px;vertical-align:middle;border:solid 5px #fff;border-radius:3px;background:#fff}.dictCOBUILD-ColEntry .lightboxClose{position:absolute;right:0;bottom:0;color:#fff;font-size:2em}.dictCOBUILD-ColEntry .lightboxCopyright{position:absolute;bottom:0;color:#fff;left:0}.dictCOBUILD-ColEntry .tagline{font-size:15px;margin-left:4px}.dictCOBUILD-ColEntry .home_menu{margin:1em 0;text-align:center}.dictCOBUILD-ColEntry .home_logo_link{display:inline-block}.dictCOBUILD-ColEntry .home_logo{width:100%;max-width:320px}.dictCOBUILD-ColEntry .home_menu li{display:inline-block}.dictCOBUILD-ColEntry .home_menu a.current,.dictCOBUILD-ColEntry .home_menu a:hover{background:rgba(255,255,255,.2)}.dictCOBUILD-ColEntry .home_menu a{padding:10px 25px;color:inherit;display:inline-block;transition:background-color .4s ease,color .4s ease}.dictCOBUILD-ColEntry .home_search_container{margin:1em auto 0 auto}.dictCOBUILD-ColEntry .dataset-description{font-size:1em;opacity:.8;margin-top:1em;text-align:center}.dictCOBUILD-ColEntry h1{padding-top:.5em;font-size:2em;text-align:center}.dictCOBUILD-ColEntry .search-desktop{width:900px}.dictCOBUILD-ColEntry .word-content li{display:inline-block}.dictCOBUILD-ColEntry .blue{background:#e8e8e8;color:#000}.dictCOBUILD-ColEntry .blue .main-content{padding:0}.dictCOBUILD-ColEntry .main-content{padding:20px 0;padding-top:0;margin:0 auto}.dictCOBUILD-ColEntry .word-content{text-align:center}.dictCOBUILD-ColEntry .word-content .home-link.current,.dictCOBUILD-ColEntry .word-content .home-link:hover{background:#ddd}.dictCOBUILD-ColEntry .word-content .home-link.current{font-weight:700}.dictCOBUILD-ColEntry .word-content .home-link{display:inline-block;color:inherit;padding:1em 1.15em;position:relative;text-decoration:none}.dictCOBUILD-ColEntry .word-content .home-link.current::before{content:"";display:inline-block;position:absolute;left:50%;margin-left:-10px;top:-10px;width:0;height:0;border-style:solid;border-width:0 10px 10px 10px;border-color:transparent transparent #e5ebf3 transparent}.dictCOBUILD-ColEntry .white{padding-top:20px}@media screen and (max-width:761px){.dictCOBUILD-ColEntry header .main-content{padding-top:10px}.dictCOBUILD-ColEntry header .main-content{padding-top:0;background-position:calc(100% - 10px) calc(10px);background-size:20%;padding-bottom:25px}.dictCOBUILD-ColEntry .search-desktop{width:100%}.dictCOBUILD-ColEntry .home_search_container{margin:0 10px;display:block}.dictCOBUILD-ColEntry .word-content .home-link.current::before{display:none}.dictCOBUILD-ColEntry .word-content .home-link{padding:.5em}.dictCOBUILD-ColEntry .home_logo_link{display:block;text-align:center;margin-top:1em;margin-bottom:2em}.dictCOBUILD-ColEntry .home_logo{max-width:none;width:80%}.dictCOBUILD-ColEntry .white{padding-top:10px}}@media screen and (min-width:762px)and (max-width:948px){.dictCOBUILD-ColEntry .tagline{font-size:10px;margin-left:4px}.dictCOBUILD-ColEntry header .main-content{background-position:calc(100% - 5px) calc(5px);background-size:25%}.dictCOBUILD-ColEntry .search-desktop{width:700px;margin:0 auto}.dictCOBUILD-ColEntry .home_logo{max-width:210px}}.dictCOBUILD-ColEntry .columns .columns_item{display:inline-block;width:24.5%;padding-right:20px;vertical-align:top;min-height:360px}@media screen and (max-width:761px){.dictCOBUILD-ColEntry .columns .columns_item{display:block;width:auto;padding-right:0;min-height:0}}@media screen and (min-width:762px){.dictCOBUILD-ColEntry .columns .columns_item{width:49.5%}}.dictCOBUILD-ColEntry [class*=" icon-"],.dictCOBUILD-ColEntry [class^=icon-]{font-family:icomoon;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.dictCOBUILD-ColEntry .icon-fw{display:inline-block;text-align:center;width:1.55em}.dictCOBUILD-ColEntry .icon-2x{font-size:2em}.dictCOBUILD-ColEntry .icon-chat:before{content:""}.dictCOBUILD-ColEntry .icon-community:before{content:""}.dictCOBUILD-ColEntry .icon-keyboard:before{content:""}.dictCOBUILD-ColEntry .icon-search:before{content:""}.dictCOBUILD-ColEntry .icon-user:before{content:""}.dictCOBUILD-ColEntry .icon-times:before{content:""}.dictCOBUILD-ColEntry .icon-volume-up:before{content:""}.dictCOBUILD-ColEntry .icon-twitter-square:before{content:""}.dictCOBUILD-ColEntry .icon-twitter:before{content:""}.dictCOBUILD-ColEntry .icon-facebook:before{content:""}.dictCOBUILD-ColEntry .icon-globe:before{content:""}.dictCOBUILD-ColEntry .icon-bars:before{content:""}.dictCOBUILD-ColEntry .icon-caret-down:before{content:""}.dictCOBUILD-ColEntry .icon-caret-up:before{content:""}.dictCOBUILD-ColEntry .icon-caret-left:before{content:""}.dictCOBUILD-ColEntry .icon-caret-right:before{content:""}.dictCOBUILD-ColEntry .icon-copyright:before{content:""}.dictCOBUILD-ColEntry .icon-facebook-official:before{content:""}.dictCOBUILD-ColEntry .icon-warning:before{content:""}.dictCOBUILD-ColEntry .icon-fiber_new:before{content:""}.dictCOBUILD-ColEntry .icon-trending_down:before{content:""}.dictCOBUILD-ColEntry .icon-trending_flat:before{content:""}.dictCOBUILD-ColEntry .icon-trending_up:before{content:""}.dictCOBUILD-ColEntry .icon-chevron-thin-left:before{content:""}.dictCOBUILD-ColEntry .icon-chevron-thin-right:before{content:""}.dictCOBUILD-ColEntry .icon-books:before{content:""}.dictCOBUILD-ColEntry .icon-eye-plus:before{content:""}.dictCOBUILD-ColEntry .icon-eye-minus:before{content:""}.dictCOBUILD-ColEntry .icon-share2:before{content:""}.dictCOBUILD-ColEntry .icon-read:before{content:""}.dictCOBUILD-ColEntry .icon-copy:before{content:""}.dictCOBUILD-ColEntry .icon-exchange:before{content:""}.dictCOBUILD-ColEntry .icon-sort:before{content:""}.dictCOBUILD-ColEntry [class*=res_cell]{float:left;display:block;width:100%}.dictCOBUILD-ColEntry .res_cell_left{width:160px;min-height:1px}.dictCOBUILD-ColEntry .res_cell_right{width:300px}.dictCOBUILD-ColEntry .res_cell_2_3{width:66%}.dictCOBUILD-ColEntry .res_cell_2_3_content{padding:0 20px 0 0}.dictCOBUILD-ColEntry .res_cell_1_3{width:34%}.dictCOBUILD-ColEntry .mpuslot_b-container{min-width:320px;text-align:center;padding:0}@media screen and (max-width:320px){.dictCOBUILD-ColEntry .mpuslot_b-container{margin:0 0 0 -38px}.dictCOBUILD-ColEntry .cdet .mpuslot_b-container{margin:0 0 0 -10px}.dictCOBUILD-ColEntry .content-box-examples .mpuslot_b-container{margin:0 0 0 -14px}.dictCOBUILD-ColEntry .mpuslot_b-container-amp{margin:0 0 0 -26px}.dictCOBUILD-ColEntry .thesbase .mpuslot_b-container-amp{margin:0}.dictCOBUILD-ColEntry .content-box-examples .mpuslot_b-container-amp{margin:0 0 0 -4px}}@media screen and (min-width:321px)and (max-width:761px){.dictCOBUILD-ColEntry .mpuslot_b-container{margin:0 0 0 -24px}.dictCOBUILD-ColEntry .cdet .mpuslot_b-container{margin:0}.dictCOBUILD-ColEntry .content-box-examples .mpuslot_b-container{margin:0 0 0 -14px}}@media screen and (max-width:761px){.dictCOBUILD-ColEntry main>.browse_wrapper,.dictCOBUILD-ColEntry main>.content_wrapper,.dictCOBUILD-ColEntry main>.dictionary,.dictCOBUILD-ColEntry main>.spellcheck_wrapper,.dictCOBUILD-ColEntry main>.submit_new_word_wrapper,.dictCOBUILD-ColEntry main>.suggested_word_wrapper,.dictCOBUILD-ColEntry main>.word_submitted_wrapper{width:100%;float:none}.dictCOBUILD-ColEntry [class*=res_cell]{clear:both;width:100%;margin:0 0 10px 0}.dictCOBUILD-ColEntry .res_cell_2_3_content,.dictCOBUILD-ColEntry .res_cell_center_content{padding:0}.dictCOBUILD-ColEntry .res_hos{display:none}.dictCOBUILD-ColEntry .homepage header .left{float:none}.dictCOBUILD-ColEntry .main-content,.dictCOBUILD-ColEntry main{width:100%}.dictCOBUILD-ColEntry .page .content-box-syn-of-syns .columns3,.dictCOBUILD-ColEntry .page .type-ant.columns3{column-count:1}.dictCOBUILD-ColEntry .dc .entry_title{font-size:1.5em;padding-left:.5em}.dictCOBUILD-ColEntry .topslot_container{margin-bottom:10px}.dictCOBUILD-ColEntry .mpuslot_b{width:320px;margin:0 auto}.dictCOBUILD-ColEntry .columns .columns_item{display:block;width:auto;padding-right:0;min-height:0}.dictCOBUILD-ColEntry .page .dictionary .power{display:none}.dictCOBUILD-ColEntry .content-box,.dictCOBUILD-ColEntry .dc .content-box,.dictCOBUILD-ColEntry .page .Corpus_Examples_EN .content,.dictCOBUILD-ColEntry .promoBox-content,.dictCOBUILD-ColEntry .wotd-txt-block{padding:10px}.dictCOBUILD-ColEntry .dc .content-box{padding-top:0}.dictCOBUILD-ColEntry .promoBox{min-height:0}.dictCOBUILD-ColEntry .search-desktop{display:none}.dictCOBUILD-ColEntry .search-desktop{display:block}.dictCOBUILD-ColEntry #searchPanelButton:checked~.search-desktop{display:block;width:auto;margin:4px;clear:both}.dictCOBUILD-ColEntry .search-desktop .custom-select{display:block;position:absolute;left:0;opacity:.001;width:50px;height:100%;font-size:medium}.dictCOBUILD-ColEntry .search-desktop .custom-select-menu{column-count:1}.dictCOBUILD-ColEntry .dc .h1_entry{line-height:1.2em}.dictCOBUILD-ColEntry .cdet .titleTypeContainer .titleType{margin:0}.dictCOBUILD-ColEntry .dc .content-box.cobuild.br .content-box-header::after{content:none}.dictCOBUILD-ColEntry .dc .content-box-videos .entryVideo{max-width:320px;height:160px}.dictCOBUILD-ColEntry .cdet .dc .entry_title,.dictCOBUILD-ColEntry .cdet .headerThes .entry_title+div{padding-left:10px}}@media screen and (min-width:762px)and (max-width:948px){.dictCOBUILD-ColEntry main>.browse_wrapper,.dictCOBUILD-ColEntry main>.content_wrapper,.dictCOBUILD-ColEntry main>.dictionary,.dictCOBUILD-ColEntry main>.spellcheck_wrapper,.dictCOBUILD-ColEntry main>.submit_new_word_wrapper,.dictCOBUILD-ColEntry main>.suggested_word_wrapper,.dictCOBUILD-ColEntry main>.word_submitted_wrapper{width:100%;float:none}.dictCOBUILD-ColEntry .res_cell_right{width:230px}.dictCOBUILD-ColEntry .res_cell_center_content{padding-left:0}}.dictCOBUILD-ColEntry .extra-link,.dictCOBUILD-ColEntry .socialButtons,.dictCOBUILD-ColEntry i[class^=icon]{display:none!important}.dictCOBUILD-ColEntry .saladict-StaticSpeaker{margin:0 1px}.anchor,.popup-overlay,.pronIPASymbol,.share-button,.share-overlay{display:none!important}',""]),t.exports=n},711:function(t,n,o){var e=o(1381);t.exports="string"==typeof e?e:e.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/37.73e36827.js b/plugins/saladict-ztools/ext-saladic/assets/37.73e36827.js deleted file mode 100644 index 61a416da..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/37.73e36827.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[37],{116:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),o=r(30);function i(e,t){var r=Object(o.e)(o.a),i=Object(o.e)((function(){return e(r.current)}));return[Object(n.useRef)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.current.next(t?t(e):e[0])})).current,i.current]}},119:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return f}));var n=r(0),o=r.n(n),i=r(389),a=r(46);const c=o.a.createContext(async()=>{}),s=e=>{const[t,r]=Object(n.useState)(()=>"string"==typeof e.src?e.src:"#"),a=Object(n.useContext)(c);if(Object(i.a)(()=>{r("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const s=e.width||e.height||"1.2em",u=e.height||s;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:s,height:u},onClick:async n=>{if("#"===t&&"function"==typeof e.src){n.stopPropagation(),n.preventDefault();const t=await e.src();a(t),r(t)}}})};t.c=o.a.memo(s);const u=e=>{const{onPlayStart:t,...r}=e,i=Object(n.useCallback)(e=>{if(e.target&&"A"===e.target.tagName&&e.target.href&&"#"!==e.target.href&&e.target.classList&&e.target.classList.contains("saladict-Speaker")){e.preventDefault(),e.stopPropagation();const r=e.target;r.classList.add("isActive"),Object(a.b)([Object(a.d)(1e3),t(r.href)]).then(()=>{r.classList.remove("isActive")})}},[t]);return o.a.createElement(c.Provider,{value:t},o.a.createElement("div",{onClick:i,...r}))},l=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},f=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""},182:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(30),o=r(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object(o.useRef)(e);r.current=e;var i=Object(n.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=r.current[0],t=e.subscribe({next:function(t){if(e===r.current[0])return r.current[1]?r.current[1](t):void 0},error:function(t){if(e===r.current[0]){if(r.current[2])return c.current=null,r.current[2](t);c.current=t,i()}},complete:function(){if(e===r.current[0])return r.current[3]?r.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"a",(function(){return s})),r.d(t,"e",(function(){return u})),r.d(t,"d",(function(){return l}));var n=r(0),o=r(91),i=r(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function s(){return new o.a}function u(e){var t=Object(n.useRef)(!0),r=Object(n.useRef)(null);return t.current&&(t.current=!1,r.current=e()),r}function l(){var e=Object(n.useState)(0)[1];return Object(n.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect},389:function(e,t,r){"use strict";var n=r(0);t.a=function(e,t){var r=Object(n.useRef)(!0);Object(n.useEffect)((function(){if(!r.current)return e();r.current=!1}),t)}},5:function(e,t,r){"use strict";r.d(t,"h",(function(){return i})),r.d(t,"g",(function(){return a})),r.d(t,"b",(function(){return c})),r.d(t,"f",(function(){return s})),r.d(t,"d",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"i",(function(){return p})),r.d(t,"j",(function(){return m})),r.d(t,"a",(function(){return h})),r.d(t,"c",(function(){return g}));var n=r(507),o=r.n(n);r(0),r(116),r(182),r(10),r(371),r(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await r.e(109).then(r.bind(null,1321))).chsToChz:null}function s(e,...t){if(!e)return"";let r="",n=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?r=t[e]:"function"==typeof t[e]&&(n=t[e]);const o=r?e.querySelector(r):e;if(!o)return"";const i=o.textContent||"";return n?n(i):i}const u={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function l(e,{mode:t="innerHTML",selector:r,transform:n,host:i,config:a=u}={}){const c=r?e.querySelector(r):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",g(i,e,"href")),e.setAttribute("src",g(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const s=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),l=s.firstChild?s.firstChild[t]:"";return n?n(l):l}function f(e,t,r={}){return l(t,"string"==typeof r?{selector:r,host:e,mode:"innerHTML"}:{...r,host:e,mode:"innerHTML"})}function d(e,t,r={}){return l(t,"string"==typeof r?{selector:r,host:e,mode:"outerHTML"}:{...r,host:e,mode:"outerHTML"})}function p(e,t){const r=e.querySelector(t);r&&r.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function g(e,t,r){e.endsWith("/")&&(e=e.slice(0,-1));const n=e.startsWith("https")?"https:":"http:",o=t.getAttribute(r);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?n+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,r){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),r=e(["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"]),n=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),s=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),u=a(["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"]),l=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var r=t.length;r--;){var n=t[r];if("string"==typeof n){var o=n.toLowerCase();o!==n&&(Object.isFrozen(t)||(t[r]=o),n=o)}e[n]=!0}return e}function h(e){var t={},r=void 0;for(r in e)p(f,e,[r])&&(t[r]=e[r]);return t}p||(p=function(e,t,r){return e.apply(t,r)});var g=Object.seal||function(e){return e},y=g(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=g(/<%[\s\S]*|[\s\S]*%>/gm),b=g(/^data-[\-\w.\u00B7-\uFFFF]/),T=g(/^aria-[\-\w]+$/),w=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),A=g(/^(?:\w+script|data):/i),x=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function E(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var S=("undefined"!=typeof Reflect&&Reflect).apply,_=Array.prototype.slice,R=Object.freeze,L=function(){return"undefined"==typeof window?null:window};S||(S=function(e,t,r){return e.apply(t,r)});var k=function(e,t){if("object"!==(void 0===e?"undefined":O(e))||"function"!=typeof e.createPolicy)return null;var r=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=t.currentScript.getAttribute("data-tt-policy-suffix"));var n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,g=!1,M=a.document,N=a.DocumentFragment,H=a.HTMLTemplateElement,D=a.Node,C=a.NodeFilter,j=a.NamedNodeMap,z=void 0===j?a.NamedNodeMap||a.MozNamedAttrMap:j,F=a.Text,q=a.Comment,I=a.DOMParser,P=a.TrustedTypes;if("function"==typeof H){var U=M.createElement("template");U.content&&U.content.ownerDocument&&(M=U.content.ownerDocument)}var W=k(P,d),B=W?W.createHTML(""):"",G=M,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,X=G.createDocumentFragment,$=d.importNode,Z={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==M.documentMode;var J=y,Q=v,ee=b,te=T,re=A,ne=x,oe=w,ie=null,ae=m({},[].concat(E(t),E(r),E(n),E(o),E(i))),ce=null,se=m({},[].concat(E(c),E(s),E(u),E(l))),ue=null,le=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ge=!1,ye=!1,ve=!1,be=!1,Te=!1,we=!1,Ae=!1,xe=!0,Oe=!0,Ee=!1,Se={},_e=m({},["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"]),Re=m({},["audio","video","img","source","image"]),Le=null,ke=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Me=null,Ne=M.createElement("form"),He=function(e){Me&&Me===e||(e&&"object"===(void 0===e?"undefined":O(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):se,Le="ADD_URI_SAFE_ATTR"in e?m(h(ke),e.ADD_URI_SAFE_ATTR):ke,ue="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},le="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Se="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ge=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,we=e.RETURN_DOM_IMPORT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,xe=!1!==e.SANITIZE_DOM,Oe=!1!==e.KEEP_CONTENT,Ee=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Se&&(ie=m({},[].concat(E(i))),ce=[],!0===Se.html&&(m(ie,t),m(ce,c)),!0===Se.svg&&(m(ie,r),m(ce,s),m(ce,l)),!0===Se.svgFilters&&(m(ie,n),m(ce,s),m(ce,l)),!0===Se.mathMl&&(m(ie,o),m(ce,u),m(ce,l))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===se&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Le,e.ADD_URI_SAFE_ATTR),Oe&&(ie["#text"]=!0),ge&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete ue.tbody),R&&R(e),Me=e)},De=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},Ce=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},je=function(e){var t=void 0,r=void 0;if(ve)e="<remove></remove>"+e;else{var n=e.match(/^[\s]+/);(r=n&&n[0])&&(e=e.slice(r.length))}if(p)try{t=(new I).parseFromString(e,"text/html")}catch(e){}if(g&&m(ue,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&r&&t.body.insertBefore(M.createTextNode(r),t.body.childNodes[0]||null),Y.call(t,ge?"html":"body")[0]};f.isSupported&&(function(){try{je('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=je("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(g=!0)}catch(e){}}());var ze=function(e){return V.call(e.ownerDocument||e,e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT,(function(){return C.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},qe=function(e){return"object"===(void 0===D?"undefined":O(D))?e instanceof D:e&&"object"===(void 0===e?"undefined":O(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ie=function(e,t,r){Z[e]&&Z[e].forEach((function(e){e.call(f,t,r,Me)}))},Pe=function(e){var t=void 0;if(Ie("beforeSanitizeElements",e,null),Fe(e))return De(e),!0;var r=e.nodeName.toLowerCase();if(Ie("uponSanitizeElement",e,{tagName:r,allowedTags:ie}),("svg"===r||"math"===r)&&0!==e.querySelectorAll("p, br").length)return De(e),!0;if(!ie[r]||ue[r]){if(Oe&&!_e[r]&&"function"==typeof e.insertAdjacentHTML)try{var n=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(n):n)}catch(e){}return De(e),!0}return"noscript"===r&&/<\/noscript/i.test(e.innerHTML)||"noembed"===r&&/<\/noembed/i.test(e.innerHTML)?(De(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ie("afterSanitizeElements",e,null),!1)},Ue=function(e,t,r){if(xe&&("id"===t||"name"===t)&&(r in M||r in Ne))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||le[t])return!1;if(Le[t]);else if(oe.test(r.replace(ne,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==r.indexOf("data:")||!Re[e])if(pe&&!re.test(r.replace(ne,"")));else if(r)return!1}return!0},We=function(e){var t=void 0,r=void 0,n=void 0,o=void 0,i=void 0;Ie("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var s=t=a[i],u=s.name,l=s.namespaceURI;if(r=t.value.trim(),n=u.toLowerCase(),c.attrName=n,c.attrValue=r,c.keepAttr=!0,Ie("uponSanitizeAttribute",e,c),r=c.attrValue,"name"===n&&"IMG"===e.nodeName&&a.id)o=a.id,a=S(_,a,[]),Ce("id",e),Ce(u,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===n&&"file"===r&&c.keepAttr&&(ce[n]||!le[n]))continue;"id"===u&&e.setAttribute(u,""),Ce(u,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(_e).join("|")+")","i").test(r))Ce(u,e);else{he&&(r=(r=r.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Ue(d,n,r))try{l?e.setAttributeNS(l,u,r):e.setAttribute(u,r),f.removed.pop()}catch(e){}}}Ie("afterSanitizeAttributes",e,null)}},Be=function e(t){var r=void 0,n=ze(t);for(Ie("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)Ie("uponSanitizeShadowNode",r,null),Pe(r)||(r.content instanceof N&&e(r.content),We(r));Ie("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var r=void 0,n=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!qe(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===O(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(qe(e))return a.toStaticHTML(e.outerHTML)}return e}if(ye||He(t),f.removed=[],Ee);else if(e instanceof D)1===(n=(r=je("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?r=n:r.appendChild(n);else{if(!be&&!he&&!ge&&Ae&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(r=je(e)))return be?null:B}r&&ve&&De(r.firstChild);for(var s=ze(Ee?e:r);o=s.nextNode();)3===o.nodeType&&o===i||Pe(o)||(o.content instanceof N&&Be(o.content),We(o),i=o);if(i=null,Ee)return e;if(be){if(Te)for(c=X.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return we&&(c=$.call(d,c,!0)),c}var u=ge?r.outerHTML:r.innerHTML;return he&&(u=(u=u.replace(J," ")).replace(Q," ")),W&&Ae?W.createHTML(u):u},f.setConfig=function(e){He(e),ye=!0},f.clearConfig=function(){Me=null,ye=!1},f.isValidAttribute=function(e,t,r){Me||He({});var n=e.toLowerCase(),o=t.toLowerCase();return Ue(n,o,r)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));r(507);var n=r(131),o=r.n(n);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(3),o=r(7);function i(){}var a=r(45);function c(e,t,r){return function(n){return n.lift(new s(e,t,r))}}var s=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.nextOrObserver,this.error,this.complete))},e}(),u=function(e){function t(t,r,n,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=n||i,c._tapComplete=o||i,Object(a.a)(r)?(c._context=c,c._tapNext=r):r&&(c._context=r,c._tapNext=r.next||i,c._tapError=r.error||i,c._tapComplete=r.complete||i),c}return n.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},856:function(e,t,r){"use strict";r.r(t),r.d(t,"getSrcPage",(function(){return a})),r.d(t,"search",(function(){return s}));var n=r(61),o=r(5),i=r(119);const a=e=>"https://www.zdic.net/hans/"+e;let c=!1;const s=(e,t,r,a)=>{const s=r.dicts.all.zdic.options.audio;return!c&&s&&(c=!0,function(){const e=["blocking","requestHeaders"];browser.webRequest.OnBeforeSendHeadersOptions&&Object.prototype.hasOwnProperty.call(browser.webRequest.OnBeforeSendHeadersOptions,"EXTRA_HEADERS")&&e.push("extraHeaders");browser.webRequest.onBeforeSendHeaders.addListener(e=>{if(e&&e.requestHeaders){for(var t=0;t<e.requestHeaders.length;++t)if("Referer"===e.requestHeaders[t].name){e.requestHeaders[t].value="https://www.zdic.net";break}t===e.requestHeaders.length&&e.requestHeaders.push({name:"Referer",value:"https://www.zdic.net"})}return{requestHeaders:e.requestHeaders}},{urls:["https://img.zdic.net/audio/*"]},e)}()),Object(n.a)("https://www.zdic.net/hans/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(e=>function(e,t){const r={result:[]};for(const n of e.querySelectorAll("[data-type-block]")){const e=n.dataset.typeBlock||"";if(/基本解释|词语解释|详细解释/.test(e)){for(const e of n.querySelectorAll("[data-src-mp3]"))t?(r.audio||(r.audio={py:e.dataset.srcMp3}),e.replaceWith(Object(i.d)(e.dataset.srcMp3))):e.remove();r.result.push({title:e,content:Object(o.d)("https://www.zdic.net",n,".content")})}}return r.result.length>0?r:Object(o.h)()}(e,s))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/64.671352d0.js b/plugins/saladict-ztools/ext-saladic/assets/37.e3d5bbda.js similarity index 56% rename from plugins/saladict-ztools/ext-saladic/assets/64.671352d0.js rename to plugins/saladict-ztools/ext-saladic/assets/37.e3d5bbda.js index cecb2d91..fe79decd 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/64.671352d0.js +++ b/plugins/saladict-ztools/ext-saladic/assets/37.e3d5bbda.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[64],{1339:function(i,t,n){(t=n(221)(!1)).push([i.i,".dictEtymonline-List p{margin:0 0 5px 0}.dictEtymonline-List blockquote{margin:.5em 0;padding:0 1em;font-style:italic;border-left:2px solid #f9690e}.dictEtymonline-List .foreign{font-style:italic}.dictEtymonline-List .line-break{margin-bottom:5px}.dictEtymonline-Item{margin:10px 0}.dictEtymonline-Title{margin:0;font-size:1em}.dictEtymonline-Def{margin:0}",""]),i.exports=t},676:function(i,t,n){var e=n(1339);i.exports="string"==typeof e?e:e.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[37],{1382:function(i,t,n){(t=n(226)(!1)).push([i.i,".dictEtymonline-List p{margin:0 0 5px 0}.dictEtymonline-List blockquote{margin:.5em 0;padding:0 1em;font-style:italic;border-left:2px solid #f9690e}.dictEtymonline-List .foreign{font-style:italic}.dictEtymonline-List .line-break{margin-bottom:5px}.dictEtymonline-Item{margin:10px 0}.dictEtymonline-Title{margin:0;font-size:1em}.dictEtymonline-Def{margin:0}",""]),i.exports=t},712:function(i,t,n){var e=n(1382);i.exports="string"==typeof e?e:e.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/38.2609f2de.js b/plugins/saladict-ztools/ext-saladic/assets/38.2609f2de.js new file mode 100644 index 00000000..e27399dd --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/38.2609f2de.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[38],{1383:function(t,n,i){(n=i(226)(!1)).push([t.i,'.dictEudic-Item{margin-bottom:10px}.dictEudic-Item p{margin:0}.dictEudic-Channel{color:#999}.dictEudic-Channel::before{content:"《"}.dictEudic-Channel::after{content:"》"}',""]),t.exports=n},713:function(t,n,i){var c=i(1383);t.exports="string"==typeof c?c:c.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/38.a4348f2e.js b/plugins/saladict-ztools/ext-saladic/assets/38.a4348f2e.js deleted file mode 100644 index a87a9d65..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/38.a4348f2e.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[38],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),c=Object(o.useRef)(),a=Object(o.useRef)();if(Object(o.useEffect)((function(){a.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return a.current=null,n.current[2](t);a.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return c.current=t,function(){t.unsubscribe()}}),[e[0]]),a.current)throw a.current;return c}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return s}));var r=n(0),o=n(91),i=n(161);function c(e){return e}function a(e){return Object(i.a)(0)(e)}function l(){return new o.a}function u(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function s(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return c})),n.d(t,"b",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function c(){return Promise.reject(new Error("NETWORK_ERROR"))}async function a(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function l(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const u={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function s(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:c=u}={}){const a=n?e.querySelector(n):e;if(!a)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==a.tagName&&"IMG"!==a.tagName||e(a),a.querySelectorAll("a").forEach(e),a.querySelectorAll("img").forEach(e)}const l=o.a.sanitize(a,{...c,RETURN_DOM_FRAGMENT:!0}),s=l.firstChild?l.firstChild[t]:"";return r?r(s):s}function f(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),c=Object.freeze||function(e){return e},a=c(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),l=c(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),u=c(["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"]),s=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),b=y(/<%[\s\S]*|[\s\S]*%>/gm),_=y(/^data-[\-\w.\u00B7-\uFFFF]/),v=y(/^aria-[\-\w]+$/),T=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),A=y(/^(?:\w+script|data):/i),O=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function S(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var E=("undefined"!=typeof Reflect&&Reflect).apply,w=Array.prototype.slice,L=Object.freeze,R=function(){return"undefined"==typeof window?null:window};E||(E=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":x(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!c||!c.document||9!==c.document.nodeType)return f.isSupported=!1,f;var d=c.document,p=!1,y=!1,k=c.document,N=c.DocumentFragment,j=c.HTMLTemplateElement,C=c.Node,D=c.NodeFilter,H=c.NamedNodeMap,z=void 0===H?c.NamedNodeMap||c.MozNamedAttrMap:H,q=c.Text,F=c.Comment,I=c.DOMParser,U=c.TrustedTypes;if("function"==typeof j){var P=k.createElement("template");P.content&&P.content.ownerDocument&&(k=P.content.ownerDocument)}var W=M(U,d),B=W?W.createHTML(""):"",G=k,V=G.implementation,K=G.createNodeIterator,Y=G.getElementsByTagName,$=G.createDocumentFragment,X=d.importNode,Z={};f.isSupported=V&&void 0!==V.createHTMLDocument&&9!==k.documentMode;var J=g,Q=b,ee=_,te=v,ne=A,re=O,oe=T,ie=null,ce=m({},[].concat(S(t),S(n),S(r),S(o),S(i))),ae=null,le=m({},[].concat(S(a),S(l),S(u),S(s))),ue=null,se=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,be=!1,_e=!1,ve=!1,Te=!1,Ae=!1,Oe=!0,xe=!0,Se=!1,Ee={},we=m({},["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"]),Le=m({},["audio","video","img","source","image"]),Re=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),ke=null,Ne=k.createElement("form"),je=function(e){ke&&ke===e||(e&&"object"===(void 0===e?"undefined":x(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ce,ae="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):le,Re="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,ue="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},se="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Ee="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,_e=e.RETURN_DOM||!1,ve=e.RETURN_DOM_FRAGMENT||!1,Te=e.RETURN_DOM_IMPORT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,Oe=!1!==e.SANITIZE_DOM,xe=!1!==e.KEEP_CONTENT,Se=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),ve&&(_e=!0),Ee&&(ie=m({},[].concat(S(i))),ae=[],!0===Ee.html&&(m(ie,t),m(ae,a)),!0===Ee.svg&&(m(ie,n),m(ae,l),m(ae,s)),!0===Ee.svgFilters&&(m(ie,r),m(ae,l),m(ae,s)),!0===Ee.mathMl&&(m(ie,o),m(ae,u),m(ae,s))),e.ADD_TAGS&&(ie===ce&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ae===le&&(ae=h(ae)),m(ae,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Re,e.ADD_URI_SAFE_ATTR),xe&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete ue.tbody),L&&L(e),ke=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},De=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(be)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new I).parseFromString(e,"text/html")}catch(e){}if(y&&m(ue,["title"]),!t||!t.documentElement){var o=(t=V.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(k.createTextNode(n),t.body.childNodes[0]||null),Y.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return K.call(e.ownerDocument||e,e,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,(function(){return D.FILTER_ACCEPT}),!1)},qe=function(e){return!(e instanceof q||e instanceof F||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Fe=function(e){return"object"===(void 0===C?"undefined":x(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":x(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ie=function(e,t,n){Z[e]&&Z[e].forEach((function(e){e.call(f,t,n,ke)}))},Ue=function(e){var t=void 0;if(Ie("beforeSanitizeElements",e,null),qe(e))return Ce(e),!0;var n=e.nodeName.toLowerCase();if(Ie("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[n]||ue[n]){if(xe&&!we[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return Ce(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ie("afterSanitizeElements",e,null),!1)},Pe=function(e,t,n){if(Oe&&("id"===t||"name"===t)&&(n in k||n in Ne))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ae[t]||se[t])return!1;if(Re[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Le[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;Ie("beforeSanitizeAttributes",e,null);var c=e.attributes;if(c){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ae};for(i=c.length;i--;){var l=t=c[i],u=l.name,s=l.namespaceURI;if(n=t.value.trim(),r=u.toLowerCase(),a.attrName=r,a.attrValue=n,a.keepAttr=!0,Ie("uponSanitizeAttribute",e,a),n=a.attrValue,"name"===r&&"IMG"===e.nodeName&&c.id)o=c.id,c=E(w,c,[]),De("id",e),De(u,e),c.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&a.keepAttr&&(ae[r]||!se[r]))continue;"id"===u&&e.setAttribute(u,""),De(u,e)}if(a.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(we).join("|")+")","i").test(n))De(u,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Pe(d,r,n))try{s?e.setAttributeNS(s,u,n):e.setAttribute(u,n),f.removed.pop()}catch(e){}}}Ie("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(Ie("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ie("uponSanitizeShadowNode",n,null),Ue(n)||(n.content instanceof N&&e(n.content),We(n));Ie("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,a=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Fe(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===x(c.toStaticHTML)||"function"==typeof c.toStaticHTML){if("string"==typeof e)return c.toStaticHTML(e);if(Fe(e))return c.toStaticHTML(e.outerHTML)}return e}if(ge||je(t),f.removed=[],Se);else if(e instanceof C)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!_e&&!he&&!ye&&Ae&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return _e?null:B}n&&be&&Ce(n.firstChild);for(var l=ze(Se?e:n);o=l.nextNode();)3===o.nodeType&&o===i||Ue(o)||(o.content instanceof N&&Be(o.content),We(o),i=o);if(i=null,Se)return e;if(_e){if(ve)for(a=$.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return Te&&(a=X.call(d,a,!0)),a}var u=ye?n.outerHTML:n.innerHTML;return he&&(u=(u=u.replace(J," ")).replace(Q," ")),W&&Ae?W.createHTML(u):u},f.setConfig=function(e){je(e),ge=!0},f.clearConfig=function(){ke=null,ge=!1},f.isValidAttribute=function(e,t,n){ke||je({});var r=e.toLowerCase(),o=t.toLowerCase();return Pe(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function c(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),o=n(7);function i(){}var c=n(45);function a(e,t,n){return function(r){return r.lift(new l(e,t,n))}}var l=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.nextOrObserver,this.error,this.complete))},e}(),u=function(e){function t(t,n,r,o){var a=e.call(this,t)||this;return a._tapNext=i,a._tapError=i,a._tapComplete=i,a._tapError=r||i,a._tapComplete=o||i,Object(c.a)(n)?(a._context=a,a._tapNext=n):n&&(a._context=n,a._tapNext=n.next||i,a._tapError=n.error||i,a._tapComplete=n.complete||i),a}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},821:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return a}));var r=n(61),o=n(5);const i=e=>"https://cn.bing.com/dict/search?q="+encodeURIComponent(e.replace(/\s+/g," ")),c="https://cn.bing.com",a=(e,t,n,i)=>{const a=n.dicts.all.bing;return Object(r.a)("https://cn.bing.com/dict/clientsearch?mkt=zh-CN&setLang=zh&form=BDVEHC&ClientVer=BDDTV3.5.1.4320&q="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(async e=>{const n=await Object(o.b)(t.langCode);return e.querySelector(".client_def_hd_hd")?function(e,t,n){const r={result:{type:"lex",title:Object(o.f)(e,".client_def_hd_hd",n)}};if(t.phsym){const t=Array.from(e.querySelectorAll(".client_def_hd_pn_list"));t.length>0&&(r.result.phsym=t.map(e=>{let t="";const n=e.querySelector(".client_aud_o");return n&&(t=((n.getAttribute("onclick")||"").match(/https.*\.mp3/)||[""])[0]),{lang:Object(o.f)(e,".client_def_hd_pn"),pron:t}}),r.audio=r.result.phsym.reduce((e,{lang:t,pron:n})=>(/us|美/i.test(t)?e.us=n:/uk|英/i.test(t)&&(e.uk=n),e),{}))}if(t.cdef){const t=e.querySelector(".client_def_container");if(t){const e=Array.from(t.querySelectorAll(".client_def_bar"));e.length>0&&(r.result.cdef=e.map(e=>({pos:Object(o.f)(e,".client_def_title_bar",n),def:Object(o.f)(e,".client_def_list",n)})))}}if(t.tense){const t=Array.from(e.querySelectorAll(".client_word_change_word"));t.length>0&&(r.result.infs=t.map(e=>(e.textContent||"").trim()))}if(t.sentence>0){const i=e.querySelectorAll(".client_sentence_list"),a=[];for(let e=0;e<i.length&&a.length<t.sentence;e++){const t=i[e];let r="";const l=t.querySelector(".client_aud_o");l&&(r=((l.getAttribute("onclick")||"").match(/https.*\.mp3/)||[""])[0]),t.querySelectorAll(".client_sen_en_word").forEach(e=>{e.outerHTML=Object(o.f)(e)}),t.querySelectorAll(".client_sen_cn_word").forEach(e=>{e.outerHTML=Object(o.f)(e,n)}),t.querySelectorAll(".client_sentence_search").forEach(e=>{e.outerHTML=`<span class="dictBing-SentenceItem_HL">${Object(o.f)(e)}</span>`}),a.push({en:Object(o.d)(c,t,".client_sen_en"),chs:Object(o.d)(c,t,{selector:".client_sen_cn",transform:n}),source:Object(o.f)(t,".client_sentence_list_link"),mp3:r})}r.result.sentences=a}if(Object.keys(r.result).length>2)return r;return Object(o.h)()}(e,a.options,n):e.querySelector(".client_trans_head")?function(e,t){const n=Object(o.f)(e,".client_sen_cn",t);if(n)return{result:{type:"machine",mt:n}};return Object(o.h)()}(e,n):a.options.related&&e.querySelector(".client_do_you_mean_title_bar")?function(e,t,n){const r={result:{type:"related",title:Object(o.f)(e,".client_do_you_mean_title_bar",n),defs:[]}};if(e.querySelectorAll(".client_do_you_mean_area").forEach(e=>{const t=e.querySelectorAll(".client_do_you_mean_list");t.length>0&&r.result.defs.push({title:Object(o.f)(e,".client_do_you_mean_title",n),meanings:Array.from(t).map(e=>{const t=Object(o.f)(e,".client_do_you_mean_list_word",n);return{href:"https://cn.bing.com/dict/search?q="+t,word:t,def:Object(o.f)(e,".client_do_you_mean_list_def",n)}})})}),r.result.defs.length>0)return r;return Object(o.h)()}(e,0,n):Object(o.h)()})}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/60.660a8e85.js b/plugins/saladict-ztools/ext-saladic/assets/39.3109a593.js similarity index 92% rename from plugins/saladict-ztools/ext-saladic/assets/60.660a8e85.js rename to plugins/saladict-ztools/ext-saladic/assets/39.3109a593.js index 530e1a30..285f4725 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/60.660a8e85.js +++ b/plugins/saladict-ztools/ext-saladic/assets/39.3109a593.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[60],{1335:function(a,n,e){(n=e(221)(!1)).push([a.i,'.MachineTrans-Text .saladict-Speaker{position:absolute;left:0;top:2px;margin:0}.MachineTrans-Text summary{cursor:pointer}.MachineTrans-Lines{position:relative;margin:.5em 0;padding-left:1.5em}.MachineTrans-Lines p{margin:.3em 0}.MachineTrans-Lines-collapse{overflow:hidden;position:relative}.MachineTrans-Lines-collapse::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;background:linear-gradient(90deg,rgba(255,255,255,0) 50%,var(--color-background) 90%);pointer-events:none}.MachineTrans-Lines-collapse button{height:1.5em;padding:0;text-align:start;word-break:keep-all;white-space:nowrap;font-size:1em;font-weight:400;font-family:inherit;color:currentColor;cursor:pointer}.MachineTrans-lang-ar,.MachineTrans-lang-ara,.MachineTrans-lang-az,.MachineTrans-lang-fa,.MachineTrans-lang-he,.MachineTrans-lang-iw,.MachineTrans-lang-ku,.MachineTrans-lang-ug,.MachineTrans-lang-ur{direction:rtl!important}.MachineTrans-lang-ar.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ara.MachineTrans-Lines-collapse::after,.MachineTrans-lang-az.MachineTrans-Lines-collapse::after,.MachineTrans-lang-fa.MachineTrans-Lines-collapse::after,.MachineTrans-lang-he.MachineTrans-Lines-collapse::after,.MachineTrans-lang-iw.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ku.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ug.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ur.MachineTrans-Lines-collapse::after{background:linear-gradient(270deg,rgba(255,255,255,0) 50%,var(--color-background) 90%)}.MachineTrans-has-rtl{text-align:right}.MachineTrans-has-rtl .MachineTrans-Lines{padding-left:0;padding-right:1.5em}.MachineTrans-has-rtl .saladict-Speaker{left:auto;right:0}@font-face{font-family:"UKIJ Tuz Basma";src:url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff2) format("woff2"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff) format("woff"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.ttf) format("truetype"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.svg#UKIJTuzBasma-Bold) format("svg");font-style:normal}.MachineTrans-lang-ug{font-family:"UKIJ Tuz Basma"!important}',""]),a.exports=n},672:function(a,n,e){var r=e(1335);a.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[39],{1384:function(a,n,e){(n=e(226)(!1)).push([a.i,'.MachineTrans-Text .saladict-Speaker{position:absolute;left:0;top:2px;margin:0}.MachineTrans-Text summary{cursor:pointer}.MachineTrans-Lines{position:relative;margin:.5em 0;padding-left:1.5em}.MachineTrans-Lines p{margin:.3em 0}.MachineTrans-Lines-collapse{overflow:hidden;position:relative}.MachineTrans-Lines-collapse::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;background:linear-gradient(90deg,rgba(255,255,255,0) 50%,var(--color-background) 90%);pointer-events:none}.MachineTrans-Lines-collapse button{height:1.5em;padding:0;text-align:start;word-break:keep-all;white-space:nowrap;font-size:1em;font-weight:400;font-family:inherit;color:currentColor;cursor:pointer}.MachineTrans-lang-ar,.MachineTrans-lang-ara,.MachineTrans-lang-az,.MachineTrans-lang-fa,.MachineTrans-lang-he,.MachineTrans-lang-iw,.MachineTrans-lang-ku,.MachineTrans-lang-ug,.MachineTrans-lang-ur{direction:rtl!important}.MachineTrans-lang-ar.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ara.MachineTrans-Lines-collapse::after,.MachineTrans-lang-az.MachineTrans-Lines-collapse::after,.MachineTrans-lang-fa.MachineTrans-Lines-collapse::after,.MachineTrans-lang-he.MachineTrans-Lines-collapse::after,.MachineTrans-lang-iw.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ku.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ug.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ur.MachineTrans-Lines-collapse::after{background:linear-gradient(270deg,rgba(255,255,255,0) 50%,var(--color-background) 90%)}.MachineTrans-has-rtl{text-align:right}.MachineTrans-has-rtl .MachineTrans-Lines{padding-left:0;padding-right:1.5em}.MachineTrans-has-rtl .saladict-Speaker{left:auto;right:0}@font-face{font-family:"UKIJ Tuz Basma";src:url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff2) format("woff2"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff) format("woff"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.ttf) format("truetype"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.svg#UKIJTuzBasma-Bold) format("svg");font-style:normal}.MachineTrans-lang-ug{font-family:"UKIJ Tuz Basma"!important}',""]),a.exports=n},714:function(a,n,e){var r=e(1384);a.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/39.f86860ee.js b/plugins/saladict-ztools/ext-saladic/assets/39.f86860ee.js deleted file mode 100644 index 28793cb6..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/39.f86860ee.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[39],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function l(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function s(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return g}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function s(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=l}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",g(i,e,"href")),e.setAttribute("src",g(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),s=u.firstChild?u.firstChild[t]:"";return r?r(s):s}function f(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function g(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),s=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var g=Object.seal||function(e){return e},y=g(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=g(/<%[\s\S]*|[\s\S]*%>/gm),b=g(/^data-[\-\w.\u00B7-\uFFFF]/),T=g(/^aria-[\-\w]+$/),A=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x=g(/^(?:\w+script|data):/i),_=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function w(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var O=("undefined"!=typeof Reflect&&Reflect).apply,E=Array.prototype.slice,R=Object.freeze,L=function(){return"undefined"==typeof window?null:window};O||(O=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":S(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,g=!1,k=a.document,N=a.DocumentFragment,C=a.HTMLTemplateElement,D=a.Node,j=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,q=a.DOMParser,U=a.TrustedTypes;if("function"==typeof C){var P=k.createElement("template");P.content&&P.content.ownerDocument&&(k=P.content.ownerDocument)}var W=M(U,d),B=W?W.createHTML(""):"",G=k,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,$=G.createDocumentFragment,X=d.importNode,Z={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==k.documentMode;var J=y,Q=v,ee=b,te=T,ne=x,re=_,oe=A,ie=null,ae=m({},[].concat(w(t),w(n),w(r),w(o),w(i))),ce=null,ue=m({},[].concat(w(c),w(u),w(l),w(s))),le=null,se=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ge=!1,ye=!1,ve=!1,be=!1,Te=!1,Ae=!1,xe=!1,_e=!0,Se=!0,we=!1,Oe={},Ee=m({},["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"]),Re=m({},["audio","video","img","source","image"]),Le=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),ke=null,Ne=k.createElement("form"),Ce=function(e){ke&&ke===e||(e&&"object"===(void 0===e?"undefined":S(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Le="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},se="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Oe="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ge=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,xe=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,_e=!1!==e.SANITIZE_DOM,Se=!1!==e.KEEP_CONTENT,we=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Oe&&(ie=m({},[].concat(w(i))),ce=[],!0===Oe.html&&(m(ie,t),m(ce,c)),!0===Oe.svg&&(m(ie,n),m(ce,u),m(ce,s)),!0===Oe.svgFilters&&(m(ie,r),m(ce,u),m(ce,s)),!0===Oe.mathMl&&(m(ie,o),m(ce,l),m(ce,s))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Le,e.ADD_URI_SAFE_ATTR),Se&&(ie["#text"]=!0),ge&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),R&&R(e),ke=e)},De=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},je=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new q).parseFromString(e,"text/html")}catch(e){}if(g&&m(le,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(k.createTextNode(n),t.body.childNodes[0]||null),Y.call(t,ge?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(g=!0)}catch(e){}}());var ze=function(e){return V.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,(function(){return j.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===D?"undefined":S(D))?e instanceof D:e&&"object"===(void 0===e?"undefined":S(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},qe=function(e,t,n){Z[e]&&Z[e].forEach((function(e){e.call(f,t,n,ke)}))},Ue=function(e){var t=void 0;if(qe("beforeSanitizeElements",e,null),Fe(e))return De(e),!0;var n=e.nodeName.toLowerCase();if(qe("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return De(e),!0;if(!ie[n]||le[n]){if(Se&&!Ee[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return De(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(De(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),qe("afterSanitizeElements",e,null),!1)},Pe=function(e,t,n){if(_e&&("id"===t||"name"===t)&&(n in k||n in Ne))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||se[t])return!1;if(Le[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Re[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;qe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],l=u.name,s=u.namespaceURI;if(n=t.value.trim(),r=l.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,qe("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=O(E,a,[]),je("id",e),je(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!se[r]))continue;"id"===l&&e.setAttribute(l,""),je(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Ee).join("|")+")","i").test(n))je(l,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Pe(d,r,n))try{s?e.setAttributeNS(s,l,n):e.setAttribute(l,n),f.removed.pop()}catch(e){}}}qe("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(qe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)qe("uponSanitizeShadowNode",n,null),Ue(n)||(n.content instanceof N&&e(n.content),We(n));qe("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===S(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ye||Ce(t),f.removed=[],we);else if(e instanceof D)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ge&&xe&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return be?null:B}n&&ve&&De(n.firstChild);for(var u=ze(we?e:n);o=u.nextNode();)3===o.nodeType&&o===i||Ue(o)||(o.content instanceof N&&Be(o.content),We(o),i=o);if(i=null,we)return e;if(be){if(Te)for(c=$.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Ae&&(c=X.call(d,c,!0)),c}var l=ge?n.outerHTML:n.innerHTML;return he&&(l=(l=l.replace(J," ")).replace(Q," ")),W&&xe?W.createHTML(l):l},f.setConfig=function(e){Ce(e),ye=!0},f.clearConfig=function(){ke=null,ye=!1},f.isValidAttribute=function(e,t,n){ke||Ce({});var r=e.toLowerCase(),o=t.toLowerCase();return Pe(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},825:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var r=n(61),o=n(5);const i=e=>"http://dict.cnki.net/old/dict_result.aspx?scw="+encodeURIComponent(e),a="http://dict.cnki.net/old",c=(e,t,n,i)=>Object(r.a)("http://dict.cnki.net/old/dict_result.aspx?scw="+encodeURIComponent(e),{withCredentials:!1}).catch(o.g).then(e=>function(e,t){const n=[...e.querySelectorAll(".main-table")],r={dict:[],senbi:[],seneng:[]};if(t.dict){const e=n.find(e=>Boolean(e.querySelector('img[src="images/02.gif"]')));e&&(r.dict=[...e.querySelectorAll(".zztj li")].map(e=>{const t=(e.textContent||"").trim();if(t){const n=e.querySelector("a:nth-of-type(2)");if(n){const e=Object(o.c)(a,n,"href");if(e)return{word:t,href:e}}}}).filter(e=>Boolean(e)))}t.senbi&&(r.senbi=u(n,'img[src="images/word.jpg"]',"showjd_"));t.seneng&&(r.seneng=u(n,'img[src="images/dian_ywlj.gif"]',"showlj_"));if(r.dict.length>0||r.senbi.length>0||r.seneng.length>0)return{result:r};return Object(o.h)()}(e,n.dicts.all.cnki.options));function u(e,t,n){const r=e.find(e=>Boolean(e.querySelector(t)));return r?[...r.querySelectorAll(`[id^=${n}]`)].map(e=>{let t="";return e.querySelectorAll("td[align=right]").forEach(e=>{if("更多"===(e.textContent||"").trim()){const n=e.querySelector("a");n&&(t=Object(o.c)(a,n,"href"))}e.remove()}),{title:Object(o.f)(e.previousElementSibling).trim(),more:t,sens:[...e.querySelectorAll("td")].map(e=>Object(o.d)(a,e).replace(/ /g,""))}}):[]}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/40.0d3879dc.js b/plugins/saladict-ztools/ext-saladic/assets/40.0d3879dc.js deleted file mode 100644 index e4f84767..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/40.0d3879dc.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[40],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function l(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function s(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function s(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=l}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),s=u.firstChild?u.firstChild[t]:"";return r?r(s):s}function f(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),s=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),w=y(/^(?:\w+script|data):/i),x=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function O(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var E=("undefined"!=typeof Reflect&&Reflect).apply,S=Array.prototype.slice,R=Object.freeze,L=function(){return"undefined"==typeof window?null:window};E||(E=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":_(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,N=a.document,k=a.DocumentFragment,D=a.HTMLTemplateElement,C=a.Node,j=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,q=a.DOMParser,U=a.TrustedTypes;if("function"==typeof D){var P=N.createElement("template");P.content&&P.content.ownerDocument&&(N=P.content.ownerDocument)}var W=M(U,d),B=W?W.createHTML(""):"",G=N,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,X=G.createDocumentFragment,Z=d.importNode,$={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==N.documentMode;var J=g,Q=v,ee=b,te=T,ne=w,re=x,oe=A,ie=null,ae=m({},[].concat(O(t),O(n),O(r),O(o),O(i))),ce=null,ue=m({},[].concat(O(c),O(u),O(l),O(s))),le=null,se=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,Te=!1,Ae=!1,we=!1,xe=!0,_e=!0,Oe=!1,Ee={},Se=m({},["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"]),Re=m({},["audio","video","img","source","image"]),Le=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,ke=N.createElement("form"),De=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":_(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Le="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},se="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Ee="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,we=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,xe=!1!==e.SANITIZE_DOM,_e=!1!==e.KEEP_CONTENT,Oe=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Ee&&(ie=m({},[].concat(O(i))),ce=[],!0===Ee.html&&(m(ie,t),m(ce,c)),!0===Ee.svg&&(m(ie,n),m(ce,u),m(ce,s)),!0===Ee.svgFilters&&(m(ie,r),m(ce,u),m(ce,s)),!0===Ee.mathMl&&(m(ie,o),m(ce,l),m(ce,s))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Le,e.ADD_URI_SAFE_ATTR),_e&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),R&&R(e),Ne=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},je=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new q).parseFromString(e,"text/html")}catch(e){}if(y&&m(le,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(N.createTextNode(n),t.body.childNodes[0]||null),Y.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return V.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,(function(){return j.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===C?"undefined":_(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":_(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},qe=function(e,t,n){$[e]&&$[e].forEach((function(e){e.call(f,t,n,Ne)}))},Ue=function(e){var t=void 0;if(qe("beforeSanitizeElements",e,null),Fe(e))return Ce(e),!0;var n=e.nodeName.toLowerCase();if(qe("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[n]||le[n]){if(_e&&!Se[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return Ce(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),qe("afterSanitizeElements",e,null),!1)},Pe=function(e,t,n){if(xe&&("id"===t||"name"===t)&&(n in N||n in ke))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||se[t])return!1;if(Le[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Re[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;qe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],l=u.name,s=u.namespaceURI;if(n=t.value.trim(),r=l.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,qe("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=E(S,a,[]),je("id",e),je(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!se[r]))continue;"id"===l&&e.setAttribute(l,""),je(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Se).join("|")+")","i").test(n))je(l,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Pe(d,r,n))try{s?e.setAttributeNS(s,l,n):e.setAttribute(l,n),f.removed.pop()}catch(e){}}}qe("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(qe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)qe("uponSanitizeShadowNode",n,null),Ue(n)||(n.content instanceof k&&e(n.content),We(n));qe("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===_(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||De(t),f.removed=[],Oe);else if(e instanceof C)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ye&&we&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return be?null:B}n&&ve&&Ce(n.firstChild);for(var u=ze(Oe?e:n);o=u.nextNode();)3===o.nodeType&&o===i||Ue(o)||(o.content instanceof k&&Be(o.content),We(o),i=o);if(i=null,Oe)return e;if(be){if(Te)for(c=X.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Ae&&(c=Z.call(d,c,!0)),c}var l=ye?n.outerHTML:n.innerHTML;return he&&(l=(l=l.replace(J," ")).replace(Q," ")),W&&we?W.createHTML(l):l},f.setConfig=function(e){De(e),ge=!0},f.clearConfig=function(){Ne=null,ge=!1},f.isValidAttribute=function(e,t,n){Ne||De({});var r=e.toLowerCase(),o=t.toLowerCase();return Pe(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&($[e]=$[e]||[],$[e].push(t))},f.removeHook=function(e){$[e]&&$[e].pop()},f.removeHooks=function(e){$[e]&&($[e]=[])},f.removeAllHooks=function(){$={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},827:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var r=n(61),o=n(5);const i=e=>"http://www.etymonline.com/search?q="+e,a="https://www.etymonline.com",c=(e,t,n,i)=>{const c=n.dicts.all.etymonline.options;return e=encodeURIComponent(e.replace(/\s+/g," ")),Object(r.a)("https://www.etymonline.com/word/"+e).catch(()=>Object(r.a)("https://www.etymonline.com/search?q="+e)).catch(o.g).then(e=>function(e,t){const n=[],r=[],i=Array.from(e.querySelectorAll('[class*="word--"]'));for(let e=0;e<i.length&&n.length<t.resultnum;e++){const c=i[e],u=Object(o.f)(c,'[class*="word__name--"]');if(!u)continue;let l="";const s=c.querySelector('[class*="word__defination--"]>*');if(s&&(s.querySelectorAll(".crossreference").forEach(e=>{const t=Object(o.f)(e),n=document.createElement("a");n.target="_blank",n.href="https://www.etymonline.com/word/"+t,n.textContent=t,e.replaceWith(n)}),l=Object(o.d)(a,s)),!l)continue;const f=Object(o.c)(a,c,"href");let d="";if(t.chart){const e=c.querySelector('[class*="chart--"] img');e&&(d=Object(o.c)(a,e,"src"))}const p="d-etymonline-entry"+e;n.push({id:p,href:f,title:u,def:l,chart:d}),r.push({key:"#"+e,value:p,label:"#"+u})}if(n.length>0)return{result:n,catalog:r};return Object(o.h)()}(e,c))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/68.5465d509.js b/plugins/saladict-ztools/ext-saladic/assets/40.8fa73e3e.js similarity index 70% rename from plugins/saladict-ztools/ext-saladic/assets/68.5465d509.js rename to plugins/saladict-ztools/ext-saladic/assets/40.8fa73e3e.js index 0fc908ed..c25391b1 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/68.5465d509.js +++ b/plugins/saladict-ztools/ext-saladic/assets/40.8fa73e3e.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[68],{1343:function(i,t,e){(t=e(221)(!1)).push([i.i,".dictMoe-H{margin-bottom:10px}.dictMoe-Title{display:inline;font-size:1.6em;font-weight:400;margin:0 .2em}.dictMoe-Defs{margin:0 0 10px;padding-left:1.5em}.dictMoe-Defs_F{margin:0}.dictMoe-Defs_E{margin:0;color:var(--color-font-grey)}.dictMoe-Trans{display:table}.dictMoe-Trans_Pos{display:table-cell;width:2em;font-weight:700;text-align:right}.dictMoe-Trans_Def{display:table-cell;padding:0 12px}.dictMoe-Link:active,.dictMoe-Link:hover,.dictMoe-Link:link,.dictMoe-Link:visited{color:inherit;text-decoration:none}.dictMoe-Link:focus,.dictMoe-Link:hover{background:#16a085;outline:3px solid #16a085;color:#fff}",""]),i.exports=t},680:function(i,t,e){var o=e(1343);i.exports="string"==typeof o?o:o.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[40],{1385:function(i,t,e){(t=e(226)(!1)).push([i.i,".dictMoe-H{margin-bottom:10px}.dictMoe-Title{display:inline;font-size:1.6em;font-weight:400;margin:0 .2em}.dictMoe-Defs{margin:0 0 10px;padding-left:1.5em}.dictMoe-Defs_F{margin:0}.dictMoe-Defs_E{margin:0;color:var(--color-font-grey)}.dictMoe-Trans{display:table}.dictMoe-Trans_Pos{display:table-cell;width:2em;font-weight:700;text-align:right}.dictMoe-Trans_Def{display:table-cell;padding:0 12px}.dictMoe-Link:active,.dictMoe-Link:hover,.dictMoe-Link:link,.dictMoe-Link:visited{color:inherit;text-decoration:none}.dictMoe-Link:focus,.dictMoe-Link:hover{background:#16a085;outline:3px solid #16a085;color:#fff}",""]),i.exports=t},715:function(i,t,e){var o=e(1385);i.exports="string"==typeof o?o:o.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/41.81d2ac70.js b/plugins/saladict-ztools/ext-saladic/assets/41.81d2ac70.js deleted file mode 100644 index 70a9a9ec..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/41.81d2ac70.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[41],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return l}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function s(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function l(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const s={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function l(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=s}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),l=u.firstChild?u.firstChild[t]:"";return r?r(l):l}function f(e,t,n={}){return l(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return l(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),s=a(["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"]),l=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x=y(/^(?:\w+script|data):/i),_=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function w(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var E=("undefined"!=typeof Reflect&&Reflect).apply,S=Array.prototype.slice,L=Object.freeze,R=function(){return"undefined"==typeof window?null:window};E||(E=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":O(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,N=a.document,k=a.DocumentFragment,D=a.HTMLTemplateElement,C=a.Node,j=a.NodeFilter,H=a.NamedNodeMap,F=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,z=a.Text,I=a.Comment,U=a.DOMParser,P=a.TrustedTypes;if("function"==typeof D){var q=N.createElement("template");q.content&&q.content.ownerDocument&&(N=q.content.ownerDocument)}var W=M(P,d),B=W?W.createHTML(""):"",G=N,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,X=G.createDocumentFragment,Z=d.importNode,$={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==N.documentMode;var J=g,Q=v,ee=b,te=T,ne=x,re=_,oe=A,ie=null,ae=m({},[].concat(w(t),w(n),w(r),w(o),w(i))),ce=null,ue=m({},[].concat(w(c),w(u),w(s),w(l))),se=null,le=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,Te=!1,Ae=!1,xe=!1,_e=!0,Oe=!0,we=!1,Ee={},Se=m({},["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"]),Le=m({},["audio","video","img","source","image"]),Re=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,ke=N.createElement("form"),De=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":O(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Re="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,se="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},le="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Ee="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,xe=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,_e=!1!==e.SANITIZE_DOM,Oe=!1!==e.KEEP_CONTENT,we=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Ee&&(ie=m({},[].concat(w(i))),ce=[],!0===Ee.html&&(m(ie,t),m(ce,c)),!0===Ee.svg&&(m(ie,n),m(ce,u),m(ce,l)),!0===Ee.svgFilters&&(m(ie,r),m(ce,u),m(ce,l)),!0===Ee.mathMl&&(m(ie,o),m(ce,s),m(ce,l))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Re,e.ADD_URI_SAFE_ATTR),Oe&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete se.tbody),L&&L(e),Ne=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},je=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new U).parseFromString(e,"text/html")}catch(e){}if(y&&m(se,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(N.createTextNode(n),t.body.childNodes[0]||null),Y.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var Fe=function(e){return V.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,(function(){return j.FILTER_ACCEPT}),!1)},ze=function(e){return!(e instanceof z||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof F&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===C?"undefined":O(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":O(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ue=function(e,t,n){$[e]&&$[e].forEach((function(e){e.call(f,t,n,Ne)}))},Pe=function(e){var t=void 0;if(Ue("beforeSanitizeElements",e,null),ze(e))return Ce(e),!0;var n=e.nodeName.toLowerCase();if(Ue("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[n]||se[n]){if(Oe&&!Se[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return Ce(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ue("afterSanitizeElements",e,null),!1)},qe=function(e,t,n){if(_e&&("id"===t||"name"===t)&&(n in N||n in ke))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||le[t])return!1;if(Re[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Le[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;Ue("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],s=u.name,l=u.namespaceURI;if(n=t.value.trim(),r=s.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,Ue("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=E(S,a,[]),je("id",e),je(s,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!le[r]))continue;"id"===s&&e.setAttribute(s,""),je(s,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Se).join("|")+")","i").test(n))je(s,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(qe(d,r,n))try{l?e.setAttributeNS(l,s,n):e.setAttribute(s,n),f.removed.pop()}catch(e){}}}Ue("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=Fe(t);for(Ue("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ue("uponSanitizeShadowNode",n,null),Pe(n)||(n.content instanceof k&&e(n.content),We(n));Ue("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===O(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||De(t),f.removed=[],we);else if(e instanceof C)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ye&&xe&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return be?null:B}n&&ve&&Ce(n.firstChild);for(var u=Fe(we?e:n);o=u.nextNode();)3===o.nodeType&&o===i||Pe(o)||(o.content instanceof k&&Be(o.content),We(o),i=o);if(i=null,we)return e;if(be){if(Te)for(c=X.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Ae&&(c=Z.call(d,c,!0)),c}var s=ye?n.outerHTML:n.innerHTML;return he&&(s=(s=s.replace(J," ")).replace(Q," ")),W&&xe?W.createHTML(s):s},f.setConfig=function(e){De(e),ge=!0},f.clearConfig=function(){Ne=null,ge=!1},f.isValidAttribute=function(e,t,n){Ne||De({});var r=e.toLowerCase(),o=t.toLowerCase();return qe(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&($[e]=$[e]||[],$[e].push(t))},f.removeHook=function(e){$[e]&&$[e].pop()},f.removeHooks=function(e){$[e]&&($[e]=[])},f.removeAllHooks=function(){$={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.nextOrObserver,this.error,this.complete))},e}(),s=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},828:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return a}));var r=n(61),o=n(5);const i=e=>"https://dict.eudic.net/dicts/en/"+e,a=(e,t,n,i)=>{e=encodeURIComponent(e.split(/\s+/).slice(0,2).join(" "));const a=n.dicts.all.eudic.options;return Object(r.a)("https://dict.eudic.net/dicts/en/"+e,{withCredentials:!1}).catch(o.g).then(c).then(e=>function(e,{resultnum:t}){const n=[],r={},i=Array.from(e.querySelectorAll("#lj_ting .lj_item"));for(let e=0;e<i.length&&n.length<t;e++){const t=i[e],a={chs:"",eng:""};if(a.chs=Object(o.f)(t,".exp"),!a.chs)continue;if(a.eng=Object(o.f)(t,".line"),!a.eng)continue;a.channel=Object(o.f)(t,".channel_title");const c=t.getAttribute("source");if(c){const e="https://fs-gateway.eudic.net/store_main/sentencemp3/"+c+".mp3";a.mp3=e,r.us||(r.us=e,r.uk=e)}n.push(a)}if(n.length>0)return{result:n,audio:r};return Object(o.h)()}(e,a))};function c(e){if(e.querySelector("#TingLiju"))return e;const t=e.querySelector("#page-status");if(!t||!t.value)return Object(o.h)();const n=new FormData;return n.append("status",t.value),Object(r.a)("https://dict.eudic.net/Dicts/en/tab-detail/-12",{method:"POST",data:n,withCredentials:!1})}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/41.86acb9ec.js b/plugins/saladict-ztools/ext-saladic/assets/41.86acb9ec.js new file mode 100644 index 00000000..da577756 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/41.86acb9ec.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[41],{1386:function(i,o,e){(o=e(226)(!1)).push([i.i,'.search-logo{display:none;width:40px;height:40px;position:absolute;left:30px;top:80px;background:url(https://res.hjfile.cn/tool/dict.hjenglish.com/img/logo@2x-e5fcc.png) 0/100%}.search.search-has-logo .search-logo{display:block}.search-tabs{margin:0 0 10px;padding:0;list-style:none}.search-tabs li{display:inline-block;margin-right:10px;padding:9px 20px;font-size:16px;border-radius:25px;cursor:pointer}.search-tabs-active{background:#2e94f7}.search-tabs-active a{color:#fff}.search-input-wrapper{height:60px;float:left;position:relative;border:1px solid #ddd;border-right-width:0;border-radius:5px 0 0 5px;background:#fff}.search-input{height:60px;margin:0 20px;padding:0;border:0;float:left;font-size:14px}.search-buttonpane,.search-buttonpane .button{width:135px;height:60px;float:left}.search-buttonpane .button{border-radius:0 5px 5px 0;font-size:16px}.search-buttonpane-group-jp{display:none}.search-vkeyboard{display:none;width:30px;height:21px;position:absolute;top:20px;right:20px;cursor:pointer;text-indent:-200px;overflow:hidden;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAAqCAYAAADvczj0AAAAAXNSR0IArs4c6QAAAy9JREFUaAXtWk1vElEU7QyfKQEtiY0sCibCgsCq/0AX1V1/gLpxpf4g48qdLk26Uxf+hK74WICJwQRsm+AHwThgwXMIb/LmAeXR2oQ3zCT0vXvn3jvvzH33zoGOtTU9xuOxVa/Xn41Go0PLsvYh3xLnTByB4QwYjm3bPioWi68gj4nD4p9qtXobJ99ieo+y3w6A/QRMj0ql0jebmfUzWCYP+O5jeEOsVq1We45t/JIn/H5ge7+wWbN+ByrwEavNBiUUfh+JlTVsdDdeJUnEaq/i4AfbjQMc1slaLBaL5/P5v7Jts9lMO45zKnTpdDqRyWQcIXNstVqpXq/XFTrEuYE4fSFzRJwE4vwUumQymc5ms7+EzLHT6cS63a7rhzi7iOPGpQ3ihBHnD+cXHVoZJlgU/Ln8GQwG53Lgfr/vOU9b1SaRSMzEoU6OQx/5Opwz9jIbNSGyvTzXAiw7mD4PAJuewWXrtyqVyuRbxEWGbBJqPUYikZvQfRZ+qLUM5gMhc4QuCXbzRegQZw8+v4XMMRqNbqPZfBU60L87eF72hDwdo9B1hA4+d4fD4Q8hc4QuJDdR+Zw81wIsO5g+D2rY9AwuW78W8SCpmPMs3JHriqQCF/MQD8gpua5IKubVsEJOduHnIR6QY4jjkhP2C9Tsd+jdA8/zkExO3BPKRAswGRQJgOyLX0k8DQrnnEKh4AHcaDQ8Mhqdk8vlPLp2ux2S4y6Io5hsDdRr4eYTsGo3Iwc1PHNLfKbYuAxrPYenzcZTw3jw7yikgs3GU5+Q2bRcUjFtNh7igSa2rTS/PfjNa1ruNzOSE/QDT9Mi8ZCb36KNqQV4kbOJ+o3b0gFgE7fpKmsOMrzK3TLRVota6gADl46rdE/HT8cGFJVceukPdDqxgi2tc5dMtgkybHL2dNa+cRkmlz7BnSHxv9KBLwYq4b9SPMWZbykkFd1lxNMwFnqMYA8v4y37IEZKltdxTqz8//C7dVzcdayJWCdv8WBbf8AFDq7jImsU82O5XH4waVrxePwJ0v1+jRb3X5dCbGCCjxl0kmERHb9EPsX8EKnfh5HRr0IAwxlrFniO8H7Wa4HxH9oqYG8F2QkyAAAAAElFTkSuQmCC) no-repeat 0/100%}.search-form-type-jp .search-input-wrapper{border-right-width:1px;border-radius:5px}.search-form-type-jp .search-buttonpane{width:250px}.search-form-type-jp .search-buttonpane .button{width:115px;margin-left:10px;border-radius:5px}.search-form-type-jp .search-buttonpane-group{display:none}.search-form-type-jp .search-buttonpane-group-jp{display:block}.vkeyboard-wrapper{background-color:#fff;font-size:14px;color:#333;border-radius:5px;box-shadow:0 2px 4px 0 rgba(158,175,191,.2)}.vkeyboard{display:none;position:absolute;z-index:19;font-size:12px}.vkeyboard-header{height:52px;padding:0 20px;line-height:52px;border-top:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;border-top-left-radius:5px;border-top-right-radius:5px}.vkeyboard-lang{display:inline-block}.vkeyboard-logo{width:92px;height:20px}.vkeyboard-close-button{position:absolute;top:20px;right:20px;cursor:pointer;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAMVJREFUGBl1kUEKgzAQRY3Ug3RViDsPJLgReqLSUpB6nUJXUeiq1ygUjO+LCbakgTDzZ/6f8UfjnLsbYx7W2iNxyn6O9z4fx/FErHIRSdphGDo1tlzhtd6Kl6nA9BvXKwbBv3pKUKQGmLA2rATXrHyB9+R9WZYNePESyRJBKDDzFFECTB+IH/V0oiEIMnMNRMUVR86SrMQOcc3tNVFR+OuVREyZSdUNyjONVpO2ZsDLK2myNvDtlx3ESknqD1Kf6DeYfos3A3nv2zMEk/xZAAAAAElFTkSuQmCC) no-repeat 0/100%;width:11px;height:11px}.vkeyboard-key{float:left;cursor:pointer;width:28px;height:28px;text-align:center;line-height:28px;border-radius:5px;box-shadow:0 1px 4px 0 #ddd;-moz-user-select:none;user-select:none}.vkeyboard-content{border-bottom-right-radius:5px;border-bottom-left-radius:5px;background-color:#f8f8f8;border:1px solid #ddd}.vkeyboard-content div{display:none}.vkeyboard-jp{width:616px}.vkeyboard-jp-lang{display:inline-block}.vkeyboard-jp .vkeyboard-lang-types{display:inline-block;margin-left:223px}.vkeyboard-jp .vkeyboard-lang-types .current{color:#2e94f7}.vkeyboard-jp .vkeyboard-lang-types span{padding:0 20px;cursor:pointer;position:relative}.vkeyboard-jp .vkeyboard-lang-types span:first-child:after{content:"|";position:absolute;right:0;color:#000}.vkeyboard-jp .vkeyboard-logo{margin-left:40px}.vkeyboard-jp .vkeyboard-content{padding:10px 5px}.vkeyboard-jp .vkeyboard-content .vkeyboard-key{margin:0 4px 4px 0}.vkeyboard-jp .vkeyboard-content .vkeyboard-key:nth-child(19n){margin-right:0}.vkeyboard-jp .vkeyboard-content .vkeyboard-key:nth-child(n+77){margin-bottom:0}.vkeyboard-jp .vkeyboard-key-type-1{color:#2e94f7;background-color:#fff}.vkeyboard-jp .vkeyboard-key-type-1:hover{cursor:pointer;background-color:#2e94f7;color:#fff;transition:all .6s}.vkeyboard-jp .vkeyboard-key-type-2{color:#1a9f3d;background-color:#fff}.vkeyboard-jp .vkeyboard-key-type-2:hover{cursor:pointer;background-color:#1a9f3d;color:#fff;transition:all .6s}.vkeyboard-jp .vkeyboard-key-type-3{background:#e7e7e7}.vkeyboard-fr{width:425px}.vkeyboard-fr .vkeyboard-logo{margin-left:45px}.vkeyboard-fr .vkeyboard-fr-lang{margin-left:20px}.vkeyboard-fr .vkeyboard-content{padding:10px 5px}.vkeyboard-fr .vkeyboard-content .vkeyboard-key{margin:0 4px 4px 0;color:#2e94f7;background-color:#fff}.vkeyboard-fr .vkeyboard-content .vkeyboard-key:nth-child(13n){margin-right:0}.vkeyboard-fr .vkeyboard-content .vkeyboard-key:nth-child(n+13){margin-bottom:0}.vkeyboard-fr .vkeyboard-content .vkeyboard-key:hover{cursor:pointer;background-color:#2e94f7;color:#fff;transition:all .6s}.audio{display:inline-block;width:20px;height:20px;position:relative;overflow:hidden;cursor:pointer;vertical-align:middle;background:url(https://res.hjfile.cn/tool/dict.hjenglish.com/img/audio-dark-ea178.png) no-repeat -40px 0/auto 100%}.audio-light{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAAA0CAYAAAB/91HOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozZDg2NTg3NC04Mzg3LTQ1MGItYmY3My0xODVlMTgwZWZlMjUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDIyNzg4MDhCMEFGMTFFN0I2N0ZGQkVCRDRBNkU4RUUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDIyNzg4MDdCMEFGMTFFN0I2N0ZGQkVCRDRBNkU4RUUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDplNDU0MTcwYi02NzIwLTRjOGMtOTYxNy05M2Q1OWFiNzA3NTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6M2Q4NjU4NzQtODM4Ny00NTBiLWJmNzMtMTg1ZTE4MGVmZTI1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+P83CLAAAAp5JREFUeNrsnM9LFGEch91dQbAQPAgJGdEt6OQSgt6ko/0D4clIu9a5zvsnWIYXr9EhCSJI9CBCUHryVLf0JEixUYdix8/AQsM0s/uO6zvzfeN54DnsMDszn32/+77zY9+tRVE0BFAWdT4CoOCAggOg4ICCA6DggIIDCs43l+S4rP0nnx15jBbcvNyV3+WpPJJP5XCgDUOeQYifNHhyRK5G+WzKusf9k8dgHl9hrsuPUX+WAmkc8lyQPobUu3JfNtOdqfyZWnY/gCGHPEbP4RqyJV93Tz6TfJG35a3U8puGG4Y8PvJcUFd5Re7kdMuv5Fhi3TQWhxzyeMpTZOWaXJYfZNth/P8tH2dsx0oDkaeCPK4rTsqtyJ0jOZuzLQsNRB5/eXq+v+bwA8z4RuD77v0aF+J178mTvFE8Y/tlQh6/eXq+36XgHsi1giennfMeUAmQx2+enu93uUpNXxq/lVPdDWUdTMf4bQHyVIhLD9eWlxOvr8mvA3wjqu4RyOM3z8BDar8DCK2Bys7jO6+1PAMPqQAmnzQAUHBAwQEFB0DBAQUHQMEBBQdw/oL7kXp9NfDM5KkQl6lgh3Im8fqZXJHHgTZQ2XlekucvLs9Sl+XzAtu0/nMe8hj/edILuV1gh+/khOEejjwV5qk7Vuyi3HHc5h15IGeNNhB5qsxTcJLGw4KTNB4Zn3RCnpLnNDCtjjxmpwn2syFbspNx0J9lU95ILT81/HcI5PGQx+UqtSgLcmPo39nd8Y5+ydHEsj05Z/w2CnmMP2l4I6flp4zL49HUsvUA7tuRp6KLBv7eijxm/64r6bzclX+6QY7lEzkcUOOQx/A5XB5xdz0iv2XcjQ4R8nh6tAVg+qIBgIIDCg4oOAAKDig4AAoOAuBMgAEAYBYyuvW+UO8AAAAASUVORK5CYII=)}.audio-state-playing{animation:audio-playing .6s steps(3) infinite alternate}@keyframes audio-playing{0%{background-position:0 0}to{background-position:-60px 0}}/*!\n * jQuery UI CSS Framework 1.12.1\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/theming/\n */.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:after,.ui-helper-clearfix:before{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}/*!\n * jQuery UI Button 1.12.1\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/button/#theming\n */.ui-button{padding:.4em 1em;display:inline-block;position:relative;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;-moz-user-select:none;user-select:none;overflow:visible}.ui-button,.ui-button:active,.ui-button:hover,.ui-button:link,.ui-button:visited{text-decoration:none}.ui-button-icon-only{width:2em;box-sizing:border-box;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-button-icon-only{text-indent:0}.ui-button-icon-only .ui-icon{position:absolute;top:50%;left:50%;margin-top:-8px;margin-left:-8px}.ui-button.ui-icon-notext .ui-icon{padding:0;width:2.1em;height:2.1em;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-icon-notext .ui-icon{width:auto;height:auto;text-indent:0;white-space:normal;padding:.4em 1em}button.ui-button::-moz-focus-inner,input.ui-button::-moz-focus-inner{border:0;padding:0}/*!\n * jQuery UI CSS Framework 1.12.1\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/theming/\n *\n * To view and modify this theme, visit http://jqueryui.com/themeroller/\n */.ui-widget{font-family:Arial,Helvetica,sans-serif}.ui-widget,.ui-widget .ui-widget{font-size:1em}.ui-widget button,.ui-widget input,.ui-widget select,.ui-widget textarea{font-family:Arial,Helvetica,sans-serif;font-size:1em}.ui-widget.ui-widget-content{border:1px solid #c5c5c5}.ui-widget-content{border:1px solid #ddd;background:#fff;color:#333}.ui-widget-content a{color:#333}.ui-widget-header{border:1px solid #ddd;background:#e9e9e9;color:#333;font-weight:700}.ui-widget-header a{color:#333}.ui-button,.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default,html .ui-button.ui-state-disabled:active,html .ui-button.ui-state-disabled:hover{border:1px solid #c5c5c5;background:#f6f6f6;font-weight:400;color:#454545}.ui-button,.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited,a.ui-button,a:link.ui-button,a:visited.ui-button{color:#454545;text-decoration:none}.ui-button:focus,.ui-button:hover,.ui-state-focus,.ui-state-hover,.ui-widget-content .ui-state-focus,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-focus,.ui-widget-header .ui-state-hover{border:1px solid #ccc;background:#ededed;font-weight:400;color:#2b2b2b}.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited,.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,a.ui-button:focus,a.ui-button:hover{color:#2b2b2b;text-decoration:none}.ui-visual-focus{box-shadow:0 0 3px 1px #5e9ed6}.ui-button.ui-state-active:hover,.ui-button:active,.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active,a.ui-button:active{border:1px solid #003eff;background:#007fff;font-weight:400;color:#fff}.ui-icon-background,.ui-state-active .ui-icon-background{border:#003eff;background-color:#fff}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#fff;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #dad55e;background:#fffa90;color:#777620}.ui-state-checked{border:1px solid #dad55e;background:#fffa90}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#777620}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #f1a899;background:#fddfdf;color:#5f3f3f}.ui-state-error a,.ui-state-error-text,.ui-widget-content .ui-state-error a,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error a,.ui-widget-header .ui-state-error-text{color:#5f3f3f}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:700}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:400}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url(https://res.hjfile.cn/tool/dict.hjenglish.com/img/ui-icons_444444_256x240-a4c73.png)}.ui-widget-header .ui-icon{background-image:url(https://res.hjfile.cn/tool/dict.hjenglish.com/img/ui-icons_444444_256x240-a4c73.png)}.ui-button:focus .ui-icon,.ui-button:hover .ui-icon,.ui-state-focus .ui-icon,.ui-state-hover .ui-icon{background-image:url(https://res.hjfile.cn/tool/dict.hjenglish.com/img/ui-icons_555555_256x240-97136.png)}.ui-button:active .ui-icon,.ui-state-active .ui-icon{background-image:url(https://res.hjfile.cn/tool/dict.hjenglish.com/img/ui-icons_ffffff_256x240-bf272.png)}.ui-button .ui-state-highlight.ui-icon,.ui-state-highlight .ui-icon{background-image:url(https://res.hjfile.cn/tool/dict.hjenglish.com/img/ui-icons_777620_256x240-208a2.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(https://res.hjfile.cn/tool/dict.hjenglish.com/img/ui-icons_cc0000_256x240-0de3b.png)}.ui-button .ui-icon{background-image:url(https://res.hjfile.cn/tool/dict.hjenglish.com/img/ui-icons_777777_256x240-73a1f.png)}.ui-icon-blank{background-position:16px 16px}.ui-icon-caret-1-n{background-position:0 0}.ui-icon-caret-1-ne{background-position:-16px 0}.ui-icon-caret-1-e{background-position:-32px 0}.ui-icon-caret-1-se{background-position:-48px 0}.ui-icon-caret-1-s{background-position:-65px 0}.ui-icon-caret-1-sw{background-position:-80px 0}.ui-icon-caret-1-w{background-position:-96px 0}.ui-icon-caret-1-nw{background-position:-112px 0}.ui-icon-caret-2-n-s{background-position:-128px 0}.ui-icon-caret-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-65px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-65px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:1px -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-first,.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-left,.ui-corner-tl,.ui-corner-top{border-top-left-radius:3px}.ui-corner-all,.ui-corner-right,.ui-corner-top,.ui-corner-tr{border-top-right-radius:3px}.ui-corner-all,.ui-corner-bl,.ui-corner-bottom,.ui-corner-left{border-bottom-left-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-br,.ui-corner-right{border-bottom-right-radius:3px}.ui-widget-overlay{background:#aaa;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{box-shadow:0 0 5px #666}.toast{min-width:100px;min-height:40px;padding:65px 80px;position:fixed;top:45%;left:50%;font-size:24px;border-radius:5px;background:#fff;transform:translate3d(-50%,-50%,0);transition:color .4s;box-shadow:0 20px 40px 0 rgba(0,0,0,.2)}.toast-state-info{color:#333}.toast-state-warn{color:#f2b50d}.toast-state-error{color:#d41f0b}.rocket{width:44px;height:44px;position:relative;background-color:#f8f8f8;border:1px solid #ddd;border-radius:5px;box-shadow:0 4px 8px 0 rgba(0,0,0,.1);cursor:pointer;transition:background .4s}.rocket:after{content:"";width:16px;height:11px;position:absolute;top:50%;left:50%;transform:translate3d(-50%,-50%,0);background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAYAAAB24g05AAAABGdBTUEAALGPC/xhBQAAANVJREFUKBV9kWEOgjAMhTti4gXhvwqcQ4+BCsjvwa28h/O9wRYYG0uWdun72rUVOTjGGIWbHUjklAoSHsexUUqd4d9gfzFtNAHhaZqeAGr4Al9SSVSY1cGwdRAbiqIow59sEizwC7YKYPfcJfEDSsADKr4dDXtBOy20nrMzIIyBUViuxLYa3gYQt2F/BXtdZlKxHQZ2MAKfPM+tgAmpAbRpDZrearTWLTS+cggzAU+iUJ8B+M4SEZ81snPEDLbAzXRODzuz6P+B27HKKhh1qeGvob9T8Ad3JZh1l1NhdAAAAABJRU5ErkJggg==) no-repeat 0/100%}.rocket:hover{background:#ebebeb}/*!\n * jQuery UI Dialog 1.12.1\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/dialog/#theming\n */.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0 0;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-n{height:2px;top:0}.ui-dialog .ui-resizable-e{width:2px;right:0}.ui-dialog .ui-resizable-s{height:2px;bottom:0}.ui-dialog .ui-resizable-w{width:2px;left:0}.ui-dialog .ui-resizable-ne,.ui-dialog .ui-resizable-nw,.ui-dialog .ui-resizable-se,.ui-dialog .ui-resizable-sw{width:7px;height:7px}.ui-dialog .ui-resizable-se{right:0;bottom:0}.ui-dialog .ui-resizable-sw{left:0;bottom:0}.ui-dialog .ui-resizable-ne{right:0;top:0}.ui-dialog .ui-resizable-nw{left:0;top:0}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-dialog{padding:30px;position:fixed;border-radius:5px;box-shadow:0 20px 40px 0 rgba(0,0,0,.2)}.ui-dialog,.ui-dialog .ui-widget{font-family:inherit;font-size:inherit}.ui-dialog .ui-dialog-titlebar{margin-bottom:10px;padding:10px 18px;border:0;background:0 0}.ui-dialog .ui-dialog-title{display:block;margin:0 auto;float:none;font-size:24px;font-weight:400;text-align:center}.ui-dialog .ui-dialog-titlebar-close{margin:0;outline:0;border:0;border-radius:0;background:0 0;cursor:pointer;top:0;right:0}.ui-dialog .ui-dialog-titlebar-close .ui-button-icon{width:18px;height:18px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAkxJREFUWAm12D9PwkAUAHCLCV2IJpAQNr4AM7uamICTC3HoRNiMfgX9CrrAwNiBsLjB5Adwx9WEzcTQoZuDwfeavuZarr1/jy7HXe/e/dL70yveiXBNp9NnyPa73e7tcDj8FW6x/oR+XiBgu9VqBaPR6E8M7lEmxTyl+fWxUCnmMe1nUUQloAKGjOyoAob6yaG8EgxVZkOVYKifDFWDkj6VStLBdrt9W61WvuSedtFsNnuFyjRMsna9OI7P8UYN5wqka1mttMwJhU9mv98/VMTf+L5/OZlMIqyTzCF8AvgkID+oaGg8fIphwq4SzHg8/qF+s1XGjbLBICoDYYYLZYs5AHGgXDBSkAvKFVMKskFxYCpBJijP875gad9jm5LrYDWV1MtPalklzYkua0pl2hhskFtlFKGYOqCMMNogrGiBMsYYgUxQMKc+6/X6hbgDY3udC1+u2hce2nACqxrABP/udDqxqp7svhEIl7ZiNVEfV7anBK1Jjb1o7DOEEVPjF7IWyBJDMCOUcshUGJzA0PM79S5Jjc5TlSAVBjrf4GqCQ94N/GY55JUOmQ4GT3q0tDX3KeXwSUGmGBomDtQByBbDhcqBXDEcqAzEhXFFJSBujAsKv1zxw7/qI87qrW2Lwn2oTY0lqRMG4+ELWfUxCptrM4qi5Ou4hv8+QLvFMTAUswoFmI9Go3EdBEFyOkjm0HK5PN3tdiEEuEuDOD8ZwohpcZ8qYrButsoEVE/cgcWAHL8JhcMkPhlpbETN5/Om9CZjIaLCMDxjDHm8UP9p4LIoErrb4QAAAABJRU5ErkJggg==) no-repeat 0/100%}.ui-widget-overlay{background:rgba(0,0,0,.2);opacity:1}/*!\n * jQuery UI Checkboxradio 1.12.1\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/checkboxradio/#theming\n */.ui-checkboxradio-label .ui-icon-background{box-shadow:inset 1px 1px 1px #ccc;border-radius:.12em;border:none}.ui-checkboxradio-radio-label .ui-icon-background{width:16px;height:16px;border-radius:1em;overflow:visible;border:none}.ui-checkboxradio-radio-label.ui-checkboxradio-checked .ui-icon,.ui-checkboxradio-radio-label.ui-checkboxradio-checked:hover .ui-icon{background-image:none;width:8px;height:8px;border-width:4px;border-style:solid}.ui-checkboxradio-disabled{pointer-events:none}.word-feedback{display:none}.word-feedback-content{width:620px;color:#666}.word-feedback fieldset{margin:0 0 30px;padding:0;border:0}.word-feedback legend{display:block;margin:0 0 14px;padding:0;font-size:16px}.word-feedback-controls{position:relative}.word-feedback-checkbox-label{transition:background .4s;box-shadow:none}.word-feedback-checkbox-label,.word-feedback-checkbox-label:active{width:140px;height:60px;margin-right:20px;padding:0;float:left;line-height:60px}.word-feedback-checkbox-label:active:last-of-type,.word-feedback-checkbox-label:last-of-type{margin:0}.word-feedback .word-feedback-checkbox-label{font-size:14px;color:#666;border:1px solid #ddd;border-radius:5px;background:#f8f8f8}.word-feedback .word-feedback-checkbox-checked,.word-feedback .word-feedback-checkbox-checked:hover{color:#2e94f7;border:2px solid #2e94f7;background:#f8f8f8}.word-feedback-controls-comment{width:620px;padding:18px 0 60px;border:1px solid #ddd;border-radius:5px;background:#f8f8f8}.word-feedback-input{width:100%;min-height:140px;padding:0 20px;border:0;resize:none;background:0 0}.word-feedback .word-feedback-input{font-size:14px}.word-feedback-input-tips{padding:10px;position:absolute;right:10px;bottom:10px;border-radius:5px;font-size:14px;background:#f8f8f8}.word-feedback-input-message{display:none}.word-feedback-input-counter{display:inline-block;margin-left:14px}.word-feedback-input-counter em{font-style:normal}.word-feedback-input-tips-warning .word-feedback-input-message{display:inline-block}.word-feedback-input-tips-warning .word-feedback-input-counter em,.word-feedback-input-tips-warning .word-feedback-input-message{color:#ff5233}.word-feedback-buttonspane{text-align:center}.word-feedback-buttonspane .button{width:200px;height:60px;margin:0 10px;font-size:16px}.wf-toast-content{display:block;text-align:center;line-height:1.1}.wf-toast-content:before{content:"";display:inline-block;width:90px;height:90px;margin-bottom:20px}.toast-state-info .wf-toast-content:before{background:url(https://res.hjfile.cn/tool/dict.hjenglish.com/img/icon-info-384b0.png) no-repeat 0/100%}.toast-state-error .wf-toast-content:before{background:url(https://res.hjfile.cn/tool/dict.hjenglish.com/img/icon-error-3c4eb.png) no-repeat 0/100%}.toast-state-error .wf-toast-content{color:#333}.wf-toast-text{display:block;margin-bottom:5px}.wf-toast-sub-text{font-size:14px;color:#535353}.word-nav{width:80px;padding:10px;border-radius:0 5px 5px 0;white-space:nowrap;background:#f5f5f5;z-index:1}.word-nav li{margin-bottom:12px;padding-bottom:12px;text-align:center;border-bottom:1px solid #dedede}.word-nav li:last-child{margin:0;padding:0;border:0}.word-nav a{cursor:pointer}.word-nav a.active{color:#2e94f7}.search-wrapper{width:100%;position:relative;background:#fff;box-shadow:0 2px 4px 0 rgba(158,175,191,.2)}.search{width:1200px;margin:0 auto;padding:20px 0 20px 100px}.search-tabs li{padding:8px 19px;border:1px solid transparent}.search-tabs .search-tabs-active{border-color:#2e94f7;background:#fff}.search-tabs .search-tabs-active a{color:#2e94f7}.search-input-wrapper{width:685px}.search-input{width:675px}.search-form-type-jp .search-input-wrapper{width:670px}.search-form-type-jp .search-input{width:560px}.search.search-mini{position:relative}.search.search-mini .search-tabs{display:none}.search.search-mini .search-logo{top:30px}.side{width:240px;overflow:hidden}.side a{color:#295b94}.side-block{margin-bottom:40px}.side-block h2{margin:0 0 20px;font-size:18px;font-weight:400}.side-block-content{font-size:14px}.side-block-content li{margin-bottom:8px}.side-block-content li:last-child{margin:0}.side-block-content a:hover{text-decoration:underline}.pronounces{font-size:13px;line-height:30px}.pronounces .word-audio{vertical-align:top;margin-left:2px}.pronounces .word-audio-en{margin-right:30px}.pronounces .word-audio-kr{margin-right:50px}.pronounces .pronounce-value-en,.pronounces .pronounce-value-us{font-family:Lucida Sans Unicode}.pronounces .pronounce-value-jp{font-family:ms gothic,arial,sans-serif}.simple{margin-top:10px}.simple>p{margin:5px 0;line-height:18px}.simple>h2{font-size:13px;font-weight:400;margin:10px 0 5px -5px}.simple>ul>li{margin-bottom:5px}.simple>ul>li:last-child{margin:0}.simple>ul>li>span{display:inline-block;text-align:left;width:13px;line-height:18px;margin-right:5px}.word-details .simple a{display:inline-block;margin-right:10px;color:#fff}.word-details .simple a:hover{text-decoration:underline}.phrase-items{counter-reset:eq}.phrase-items li{line-height:18px;margin-bottom:10px}.phrase-items li:before{counter-increment:eq;content:counter(eq) ".";display:inline-block;width:18px;float:left}.phrase-items li:first-of-type:last-of-type:before{display:none}.phrase-def{color:#999;margin-left:5px}.enen-groups dl{counter-reset:eq}.enen-groups dt{margin-bottom:10px}.enen-groups dd{line-height:18px;margin-bottom:10px}.enen-groups dd:before{counter-increment:eq;content:counter(eq) ".";display:inline-block;width:18px;float:left}.enen-groups dd:first-of-type:last-of-type:before{display:none}.detail-source{color:#333;font-size:12px;line-height:18px;margin-bottom:5px}.detail-source span{font-size:11px;color:#fff;line-height:16px;display:inline-block;width:40px;height:16px;border-radius:2px;text-align:center;margin-left:5px}.detail-source .collins-icon{background:#c94444}.detail-source .wys-icon{background:#414585}.detail-source .wjs-icon{background:#287ae4}.detail-source .sflep-icon{color:#fff;background:#1f9b88}.detail-source .krcr-icon{color:#fff;width:34px;background:#c94444}.detail-tags-en{margin-bottom:15px}.detail-tags-en li{height:16px;line-height:16px;background-color:#f0f0f0;border-radius:2px;text-align:center;color:#999;float:left;font-size:11px;padding:0 5px;margin-right:5px}.detail .tags-word{font-weight:700;font-size:15px;color:#333;line-height:16px;padding-right:5px}.detail-tags-jp{margin:0 0 10px}.detail-tags-jp i{color:#666;padding:0 5px;font-style:normal}.detail-groups{margin-top:15px}.detail-groups dl{counter-reset:eq;margin-bottom:20px}.detail-groups dt{margin-bottom:10px;font-weight:700;line-height:18px;color:#333}.detail-groups dd{-webkit-margin-start:5px;margin-inline-start:5px;margin-bottom:15px}.detail-groups dd h3{font-size:13px;font-weight:400;line-height:18px;margin:0 0 10px}.detail-groups dd h3:before{counter-increment:eq;content:counter(eq) ".";display:block;width:18px;float:left}.detail-groups dd h3 p{color:#333;margin:0 0 0 18px}.detail-groups dd h3 p:first-child{margin-bottom:5px}.detail-groups dd p{margin-left:18px;color:#999}.detail-groups dd:first-of-type:last-of-type h3:before{display:none}.detail-groups dd:first-of-type:last-of-type h3 p{margin:0}.detail-groups dd:first-of-type:last-of-type ul{margin-left:0}.detail-groups ul{margin-left:18px}.detail-groups ul li{color:#999;margin-bottom:10px}.detail-groups ul li p{margin:0 0 5px;line-height:18px}.detail-pron{color:#999;margin-left:5px;font-family:Lucida Sans Unicode}.detail .def-sentence-from{color:#666}.detail .def-sentence-to{color:#999}.detail .def-sentence-from .def-sentence-to span{vertical-align:top;margin:1px 0 2px 2px;display:inline-block}.detail .def-tags span{border:1px solid #999;color:#666;border-radius:2px;display:inline-block;line-height:16px;font-size:12px;width:36px;text-align:center;margin-right:5px}.analyzes-title{line-height:18px;margin:15px 0 10px}.analyzes-title:first-of-type{margin-top:0}.analyzes-items{counter-reset:eq}.analyzes-items li{margin-bottom:10px;line-height:18px}.analyzes-items li p{color:#999;margin:5px 0 0 18px}.analyzes-items li:before{counter-increment:eq;content:counter(eq) ".";display:inline-block;width:18px;float:left}.inflections li{line-height:18px;margin-bottom:10px}.inflections-item-attr{display:inline-block;margin-right:10px}.inflections-value{color:#666}.sentences-items{counter-reset:eq}.sentences li{margin-bottom:10px}.sentences li p{line-height:18px;margin:0 0 5px}.sentences-item-from:before{counter-increment:eq;content:counter(eq) ".";display:inline-block;width:18px;float:left}.sentences-item-from span{line-height:18px;margin:1px 0 2px 2px}.sentences-item-to{color:#999;padding-left:18px}.ant>p,.syn>p{color:#999;margin:0 0 5px}.ant table,.syn table{margin-bottom:10px}.ant td,.syn td{line-height:18px;padding-right:30px}.ant-single,.syn-single{display:inline-block;margin:0 30px 10px 0}.ant-single>span,.syn-single>span{color:#999}.synant-content{margin-top:10px}.synant span{color:#333}.synant p{color:#666}body.word{background:#f5f5f5}body.word .header{box-shadow:none}body.word .global-info{display:none}.main{padding:30px 0 34px}.content{width:820px;margin:0 40px 0 100px;float:left;position:relative;font-size:13px;background:#fff;border-radius:5px}.word-notfound,.word-suggestions{min-height:240px;padding:15px 10px}.word-notfound h2,.word-suggestions h2{font-size:16px;font-weight:400}.word-suggestions h2{margin-bottom:10px}.word-suggestions ul{font-size:13px}.word-suggestions ul li{margin-bottom:5px}.word-suggestions a{color:#2e94f7}.word-suggestions a:hover{text-decoration:underline}.word-notfound{text-align:center;vertical-align:bottom}.word-notfound:before{content:"";display:inline-block;width:30px;height:30px;margin-right:10px;background:url(https://res.hjfile.cn/tool/dict.hjenglish.com/img/icon-notfound@2x-bbd46.png) no-repeat 0/100%}.word-notfound-inner{display:inline-block;text-align:left}.word-notfound h2{margin:0 0 5px}.word-notfound p{margin:0;color:#a9a9a9}.word-notfound p em{font-style:normal;font-weight:700}.word-details{position:relative}.word-details-header>p{margin:0 0 5px;font-size:13px;line-height:18px}.word-details-header>p>span{color:#2e94f7}.word-details .redirection{color:#fff;line-height:18px;margin:0 0 10px;opacity:.8}.word-details-tab{cursor:pointer;display:inline-block;margin:0 10px 10px 0;height:30px;border-radius:5px;padding:0 10px;background:#f5f8ff}.word-details-tab h2{font-size:13px;line-height:30px;height:25px;margin:0;font-weight:400;display:inline-block}.word-details-tab-active{color:#fff;background-color:#2e94f7}.word-details-tab .pronounces{display:inline-block;line-height:30px;height:30px;vertical-align:top;margin-left:5px}.word-details-pane{display:none}.word-details-pane-active{display:block}.word-details-pane-header{padding:7.5px 10px;background-image:linear-gradient(276deg,#5384fe,#4badff);border-top-left-radius:5px;border-top-right-radius:5px;color:#fff}.word-details-pane-header-multi{border-top-left-radius:0;border-top-right-radius:0}.word-details-pane-header .word-text{margin-bottom:5px}.word-details-pane-header .word-text .add-to-scb-loading{background:url(https://res.hjfile.cn/tool/dict.hjenglish.com/img/loading-289f3.png) no-repeat 0 0/cover;animation:xd-loading .6s steps(8) infinite both}.word-details-pane-header .word-text .add-to-scb-success{background:url(data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTQ1N0M1MTRDMDRCMTFFNzlGNEY5NDYwNkM0QUE2NjciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTQ1N0M1MTVDMDRCMTFFNzlGNEY5NDYwNkM0QUE2NjciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxNDU3QzUxMkMwNEIxMUU3OUY0Rjk0NjA2QzRBQTY2NyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxNDU3QzUxM0MwNEIxMUU3OUY0Rjk0NjA2QzRBQTY2NyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pvx0vOAAAAJLSURBVHja7JkxSMNAFIbT1LGDYnEIRRBdrIOjk0uELkJFHDo5OEpQWlAcXHXTVSld3NwEB7t1ciw4VaRDxUGLIB1sESy0xv/ghvS8xGuauyDmwUfJJe/d3+Tl3V1O02C2bcfBPqiCri3furQv0mdcG8ao2IodnlWGEa2DAjC18MykGoQF57TwLTdMSnwyj2hStjr0kWT6/BT1jZGrBxpgKm6p33517Y9ZJDgSHAlWbGN+y9CwFlS5jFIiEuw3hyUM2fe+3oWw5hJRDv+bOuyVUgiRws8aWAWzwKCnmqABbsA1Qjx7CnGa6HVu5uJrgBLoCYTo0WuNUASjKQvaPhanxCerVDAOd0F/hBU18d3xJdjHEijrIrYG8iANEpQ0bau5iM5KFUxzts35eGIB3cNPp9d0OelhyBRc4og1SXhBTI7okhTBpHRxqoElKHQclMES9WGrR0qGYIuTs7qA2ClwR31aYJGT05YMwWUmZJ4KOgRHLmJJzj8wfq/ggGkryxBcZ0KSClBwHJ+AmEPsDHjkPP5N6uu0ugzBHSbkBvhi2s6o6HnwwnlB1+mfSTDnOioET4BLTn29Am9M2wfIOO6+EsG8lCDfoC9+GdXewTKT2z9SQsb0ssEcZ0AfbIFzF58WWAG3HN/B2IrLGsnbU+Z8EyxwKoeuqqyJDBzHtP0JzLmUOteBg/2gnVQ0NG+DaT9DczWgzZWi6OTHY7QTmvzsBS1Y9vQyqG2vIic1gp/AO0SPurFY9JjIB7dEUrQBE9giNKZY+MjL/G8BBgDu7CBuz18G6wAAAABJRU5ErkJggg==) 0 0/contain}.word-details-pane-header .word-text .word-info{margin-bottom:10px}.word-details-pane-header .word-text h2{font-size:22.75px;line-height:1.2;margin:0;font-weight:400;display:inline-block}.word-details-pane-header .word-text a,.word-details-pane-header .word-text button{display:inline-block;width:18px;height:18px;line-height:30px;margin-left:10px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAABGdBTUEAALGPC/xhBQAAAp9JREFUWAntWbFOAkEQBbHESipCbOj8DAobEyz9ATqi0UQ/xsBPWNCY+AW2WtIZPkApMFHxvePOm5u7PQbclZAwyYSZ2zcz7/aG2727SgUyn89r0FvoE/QDGlpYg7VYs0YOZmEA9BG6KWFtM+k9nNk1tGM+Q/9A1iYHk5DwuQkZFmTngMsxU71wGJZb9J9pqJoza80qAyW4CpF+KHvdumyJrZId4dCXazfDuxlWM7CvfKerb0NOoGPA1+1y18OOCfZ2eOtm2NzDvnpQTPWLsM3mxvYSZoYKuHUtsXWEzT1svQ+X9TpytHCFz6Cn0Da0CaVMoGPoCHqPHK/4LRYSkVKMijbdEua0i+IBbkIH0E9nYDpADLHJyWRTpriFlR1NPY1z+WnEwgKuC31z4UuOM6ar8/ERPyM5QHwgAypxZDxgl9CvEviyIcZeyJxmwpkgg4NCnNkiss84fgU9htZjpc1jHNPCHOlM61EDl6UQ5GTP6jbgy5M+1Hln4liM0S9zmGvR0zAyspSNAYCE/NNIIYGODJWDtNVYB4c06UGEKQuUSaw28rWg+m7Q1/HL6mKcV0MKc7a89zCS6kLsy1wbSCa0C06I7aF7up9LpAPX8LkoSBliIfiWByx2HDNU2FPzSqcCy1yuYFIe6BTNogTp8XjFjGIFru19t4bC7yhQF0UOUHyqCYnxQpOEEcM8zJfINERLJMmD/IYgzI2MlCPprGjr2EkIwtx1STmhw0ssRQJKxqNYgR2HIMwtopQeenHlOnFMTyaCPQpxHw6+cOgX2g11Viu7mJ2gSzO/5viQu+TMkCzo5ufGB1vk+CVM4vCDbS99ffbKEI5J+9/Ax4l9fFjMERYzrffGlota/IjEpKEF7Lw9hP7LF6NkQkD8z4/5P0eRZrlVgPOgAAAAAElFTkSuQmCC) 0 0/contain;border:none;outline:0;cursor:pointer;display:none}.word-details-pane-content{padding:10px 10px}.word-details-pane-footer{padding:0 10px 10px}.word-details-pane mark.highlight{color:#2e94f7;background:0 0}.word-details-item{margin-bottom:15px}.word-details-item:last-of-type{margin-bottom:0}.word-details-item>h2{font-size:16px;line-height:23px;margin:0 0 10px;font-weight:400}.word-details-button-expand{cursor:pointer}.word-details-button-feedback{padding:5px 15px;font-size:13px;border-radius:20px;background-color:#fff;border:1px solid #2e94f7;color:#2e94f7}.word-details a{color:#2e94f7}.word-details a:hover{text-decoration:underline}.word-details-ads,.word-details-ads-placeholder{display:none;min-height:30px;padding:10px 15px 10px 30px}.word-details-ads{position:absolute;left:0}.word-details-ads-placeholder{position:relative;background:rgba(46,148,247,.1)}.word-details-ads-placeholder:before{content:"";width:16px;height:17px;position:absolute;left:15px;top:10px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAAAXNSR0IArs4c6QAABTRJREFUWAm9Vn1oVlUYf851M5vkgixJbEb/hFLuryRNpT8ipGgWtcVmTEVZECV9qcQCZxGVUGF/BVnQh7GSmBgLYuhipUIzyFl/BK0N01n2MXAr53vvPU+/53zc9973vdt436AD9z7nnOfrd37nPOdeRf+hMXfNo9/HP0KIXnXdvneqCRVU4yQ+zE9cQb/+2UNR/ADFarjaOFUBYP5kDp2LP0Xy9aQ1UZ0aqhZATVWOZ/p3EtO9xlfxH6r+jb+qigOnigHwcMetFOku7IHNqdQ/1SYXv4oBYL/3E+u5pJTNy3rqfwPAP3asoShamUmogtrMuMJBZYfwcrSdIlAf4eAZafo3oBwrZ9IBnREAD229n09vWyS2WP1Cihklh+QxEhspQOIaOn2mIW/hfGrLc3xq814AnDbPtAo+uelFKoQ9pKnOBJ8srDLJJLkwYEAIEDxhvCoPABXiNgr1Dvp2pJt/6JqbZ5MLgAfbX0GS5xF8UDXuHzGOYbzSJItim1SkeQAm1PeVBjfMMS23YHUzTQz35oEoA8DH29uAfJehOOK+JHCsAcAlT6QwAABar+eRzfMSW+lMXnoczAQWtDCm76KLP72QscEgA4AHtlxLYfSmTS6B6fvEQevFJliaetOHXcT1dDbc6m15oH0FRbTd2ktyBzTSO3hg4x3eTmT29Oqp10nzNSQlDh84XhAj02Keb+YYAeUOEJltO/n4U+9SOLaWosL7MFiQVZtRAN+30VvudQkD3N+6EPv1sKHZHDLQrUN328A8wtXnD5+XWTYa6O+xSSrwF2BwUT5bWFWkl/GRlnUeQJGBQtgKymvt6mEoqRUt9YY4aGCDb7KrF73DJleyYQSyZEsT39KOCmS7BmQ6YQArbDOo/epEhjh4vsV81upLqkBY8JWRZcTuvYZe5kWaPuLG8UPMzXNKASwzh88EESNx1C38WYe9B2I9WK43Nt5W7B0YJ32ZJlLmzVNHn8dLEgDc11wPVHicgZeRvpoKF3Y7Eo45Zx/ESm8r0jxpUOm+03sWIru9dgvGCw3J3S4rl3veMGACPMsHNzxKTStOYG7MJvHJygA7FtJ6B6L47bDxL+ulsjB7CAMdUgFO0vyB8ofMnpO36OOTTcTqZ5Tf4sQm396EKb4AwDQvZSB9XZCeBTC1YIxoXMbQQSkH3P9wmEnzuse8vc4VQZm90cMy0bu+z+/1NQo5XRWoRw5cBO0T+XUudMLb77GpEkd9ul+pnmp/EQDFeyDSR7HsDQm9fguydZ63RRKn2GazF30QDKvWQ6PiVAQQc48FAAOhS8kLzffd0E54hZeeVxlLX86T2wOJ42OIWgAwH5KutBSA2sOkpiZgfJVVubdxRl+kNJ/LxS9LmCQXELmNwfKHXpPchOqx3nH8cO7NnAPZY6lbL9N9mZNHPs1eJp9p/9l2vqa0vT13q46+78oAmInaK/E1pHPmapVkJqF8lCSQJHKBvfSBvfSg0tLrRMZ8CaR3+uQiEyL9JL925+3Yo35wnv3B8AZle4DAyVxilN8Jglb19JfdaWUZAFHyq+s2YtkfYN/VrFWRjjZTXwV71K6BrlKTXABixC+vfhA333sAMd+ewGlNS2Nmx0rFiPGM6vx6X1ZhRzNG5ZfW4tcqPoCSvGXaKijdAYno54hG0d+mdp84kpdc5pIqyDNQnV8NEd/diIO5CQdxNOdrmV8lzL+hMp4kveTmmZJLzhkZSINiZkV7Vt8GRpowvwYrux7ueDQWEZwHS+cx/gYfq8PUeOMx1XIQJTN7+xcs/bB+XniprgAAAABJRU5ErkJggg==) no-repeat 0/100%}',""]),i.exports=o},716:function(i,o,e){var t=e(1386);i.exports="string"==typeof t?t:t.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/42.0db7f905.js b/plugins/saladict-ztools/ext-saladic/assets/42.0db7f905.js deleted file mode 100644 index 44fc9fc4..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/42.0db7f905.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[42],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function l(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function s(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function s(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=l}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),s=u.firstChild?u.firstChild[t]:"";return r?r(s):s}function f(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),s=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x=y(/^(?:\w+script|data):/i),O=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function E(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var S=("undefined"!=typeof Reflect&&Reflect).apply,w=Array.prototype.slice,R=Object.freeze,L=function(){return"undefined"==typeof window?null:window};S||(S=function(e,t,n){return e.apply(t,n)});var k=function(e,t){if("object"!==(void 0===e?"undefined":_(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,M=a.document,N=a.DocumentFragment,D=a.HTMLTemplateElement,j=a.Node,C=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,U=a.DOMParser,q=a.TrustedTypes;if("function"==typeof D){var P=M.createElement("template");P.content&&P.content.ownerDocument&&(M=P.content.ownerDocument)}var W=k(q,d),B=W?W.createHTML(""):"",G=M,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,X=G.createDocumentFragment,Z=d.importNode,$={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==M.documentMode;var J=g,Q=v,ee=b,te=T,ne=x,re=O,oe=A,ie=null,ae=m({},[].concat(E(t),E(n),E(r),E(o),E(i))),ce=null,ue=m({},[].concat(E(c),E(u),E(l),E(s))),le=null,se=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,Te=!1,Ae=!1,xe=!1,Oe=!0,_e=!0,Ee=!1,Se={},we=m({},["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"]),Re=m({},["audio","video","img","source","image"]),Le=null,ke=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Me=null,Ne=M.createElement("form"),De=function(e){Me&&Me===e||(e&&"object"===(void 0===e?"undefined":_(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Le="ADD_URI_SAFE_ATTR"in e?m(h(ke),e.ADD_URI_SAFE_ATTR):ke,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},se="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Se="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,xe=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,Oe=!1!==e.SANITIZE_DOM,_e=!1!==e.KEEP_CONTENT,Ee=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Se&&(ie=m({},[].concat(E(i))),ce=[],!0===Se.html&&(m(ie,t),m(ce,c)),!0===Se.svg&&(m(ie,n),m(ce,u),m(ce,s)),!0===Se.svgFilters&&(m(ie,r),m(ce,u),m(ce,s)),!0===Se.mathMl&&(m(ie,o),m(ce,l),m(ce,s))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Le,e.ADD_URI_SAFE_ATTR),_e&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),R&&R(e),Me=e)},je=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},Ce=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new U).parseFromString(e,"text/html")}catch(e){}if(y&&m(le,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(M.createTextNode(n),t.body.childNodes[0]||null),Y.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return V.call(e.ownerDocument||e,e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT,(function(){return C.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===j?"undefined":_(j))?e instanceof j:e&&"object"===(void 0===e?"undefined":_(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ue=function(e,t,n){$[e]&&$[e].forEach((function(e){e.call(f,t,n,Me)}))},qe=function(e){var t=void 0;if(Ue("beforeSanitizeElements",e,null),Fe(e))return je(e),!0;var n=e.nodeName.toLowerCase();if(Ue("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return je(e),!0;if(!ie[n]||le[n]){if(_e&&!we[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return je(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(je(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ue("afterSanitizeElements",e,null),!1)},Pe=function(e,t,n){if(Oe&&("id"===t||"name"===t)&&(n in M||n in Ne))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||se[t])return!1;if(Le[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Re[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;Ue("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],l=u.name,s=u.namespaceURI;if(n=t.value.trim(),r=l.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,Ue("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=S(w,a,[]),Ce("id",e),Ce(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!se[r]))continue;"id"===l&&e.setAttribute(l,""),Ce(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(we).join("|")+")","i").test(n))Ce(l,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Pe(d,r,n))try{s?e.setAttributeNS(s,l,n):e.setAttribute(l,n),f.removed.pop()}catch(e){}}}Ue("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(Ue("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ue("uponSanitizeShadowNode",n,null),qe(n)||(n.content instanceof N&&e(n.content),We(n));Ue("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===_(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||De(t),f.removed=[],Ee);else if(e instanceof j)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ye&&xe&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return be?null:B}n&&ve&&je(n.firstChild);for(var u=ze(Ee?e:n);o=u.nextNode();)3===o.nodeType&&o===i||qe(o)||(o.content instanceof N&&Be(o.content),We(o),i=o);if(i=null,Ee)return e;if(be){if(Te)for(c=X.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Ae&&(c=Z.call(d,c,!0)),c}var l=ye?n.outerHTML:n.innerHTML;return he&&(l=(l=l.replace(J," ")).replace(Q," ")),W&&xe?W.createHTML(l):l},f.setConfig=function(e){De(e),ge=!0},f.clearConfig=function(){Me=null,ge=!1},f.isValidAttribute=function(e,t,n){Me||De({});var r=e.toLowerCase(),o=t.toLowerCase();return Pe(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&($[e]=$[e]||[],$[e].push(t))},f.removeHook=function(e){$[e]&&$[e].pop()},f.removeHooks=function(e){$[e]&&($[e]=[])},f.removeAllHooks=function(){$={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},833:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var r=n(61),o=n(5);const i=e=>"https://jikipedia.com/search?phrase="+encodeURIComponent(e),a="https://jikipedia.com",c=(e,t,n,i)=>{const c=n.dicts.all.jikipedia.options;return Object(r.a)("https://jikipedia.com/search?phrase="+encodeURIComponent(e)).catch(o.g).then(e=>function(e,{resultnum:t}){const n=e.querySelectorAll(".lite-card");if(n.length<1)return Object(o.h)();e.querySelectorAll(".ad-card").forEach(e=>e.remove());const r=[];for(const e of n){if(r.length>=t)break;const n={title:Object(o.f)(e,".title"),content:Object(o.d)(a,e,".content"),likes:Number(Object(o.f)(e,".like-count"))||0};if(!n.content)continue;const i=e.querySelector("a.card-content");i&&(n.url=Object(o.c)(a,i,"href"));const c=e.querySelector(".author a");c&&(n.author={name:Object(o.f)(c),url:Object(o.c)(a,c,"href")}),r.push(n)}return r.length>0?{result:r}:Object(o.h)()}(e,c))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/73.785b3ac0.js b/plugins/saladict-ztools/ext-saladic/assets/42.52eea75e.js similarity index 70% rename from plugins/saladict-ztools/ext-saladic/assets/73.785b3ac0.js rename to plugins/saladict-ztools/ext-saladic/assets/42.52eea75e.js index 8064521d..9320969f 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/73.785b3ac0.js +++ b/plugins/saladict-ztools/ext-saladic/assets/42.52eea75e.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[73],{1348:function(i,t,e){(t=e(221)(!1)).push([i.i,".dictMoe-H{margin-bottom:10px}.dictMoe-Title{display:inline;font-size:1.6em;font-weight:400;margin:0 .2em}.dictMoe-Defs{margin:0 0 10px;padding-left:1.5em}.dictMoe-Defs_F{margin:0}.dictMoe-Defs_E{margin:0;color:var(--color-font-grey)}.dictMoe-Trans{display:table}.dictMoe-Trans_Pos{display:table-cell;width:2em;font-weight:700;text-align:right}.dictMoe-Trans_Def{display:table-cell;padding:0 12px}.dictMoe-Link:active,.dictMoe-Link:hover,.dictMoe-Link:link,.dictMoe-Link:visited{color:inherit;text-decoration:none}.dictMoe-Link:focus,.dictMoe-Link:hover{background:#16a085;outline:3px solid #16a085;color:#fff}",""]),i.exports=t},685:function(i,t,e){var o=e(1348);i.exports="string"==typeof o?o:o.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[42],{1387:function(i,t,e){(t=e(226)(!1)).push([i.i,".dictMoe-H{margin-bottom:10px}.dictMoe-Title{display:inline;font-size:1.6em;font-weight:400;margin:0 .2em}.dictMoe-Defs{margin:0 0 10px;padding-left:1.5em}.dictMoe-Defs_F{margin:0}.dictMoe-Defs_E{margin:0;color:var(--color-font-grey)}.dictMoe-Trans{display:table}.dictMoe-Trans_Pos{display:table-cell;width:2em;font-weight:700;text-align:right}.dictMoe-Trans_Def{display:table-cell;padding:0 12px}.dictMoe-Link:active,.dictMoe-Link:hover,.dictMoe-Link:link,.dictMoe-Link:visited{color:inherit;text-decoration:none}.dictMoe-Link:focus,.dictMoe-Link:hover{background:#16a085;outline:3px solid #16a085;color:#fff}",""]),i.exports=t},717:function(i,t,e){var o=e(1387);i.exports="string"==typeof o?o:o.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/43.494d04ac.js b/plugins/saladict-ztools/ext-saladic/assets/43.494d04ac.js deleted file mode 100644 index 7df39cb7..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/43.494d04ac.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[43],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return l}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function s(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function l(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return g}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const s={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function l(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=s}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",g(i,e,"href")),e.setAttribute("src",g(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),l=u.firstChild?u.firstChild[t]:"";return r?r(l):l}function f(e,t,n={}){return l(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return l(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function g(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),s=a(["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"]),l=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var g=Object.seal||function(e){return e},y=g(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=g(/<%[\s\S]*|[\s\S]*%>/gm),b=g(/^data-[\-\w.\u00B7-\uFFFF]/),T=g(/^aria-[\-\w]+$/),x=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),A=g(/^(?:\w+script|data):/i),w=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function E(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var O=("undefined"!=typeof Reflect&&Reflect).apply,S=Array.prototype.slice,L=Object.freeze,R=function(){return"undefined"==typeof window?null:window};O||(O=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":_(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,g=!1,k=a.document,N=a.DocumentFragment,j=a.HTMLTemplateElement,D=a.Node,C=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,U=a.DOMParser,q=a.TrustedTypes;if("function"==typeof j){var P=k.createElement("template");P.content&&P.content.ownerDocument&&(k=P.content.ownerDocument)}var W=M(q,d),B=W?W.createHTML(""):"",G=k,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,X=G.createDocumentFragment,Z=d.importNode,$={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==k.documentMode;var J=y,Q=v,ee=b,te=T,ne=A,re=w,oe=x,ie=null,ae=m({},[].concat(E(t),E(n),E(r),E(o),E(i))),ce=null,ue=m({},[].concat(E(c),E(u),E(s),E(l))),se=null,le=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ge=!1,ye=!1,ve=!1,be=!1,Te=!1,xe=!1,Ae=!1,we=!0,_e=!0,Ee=!1,Oe={},Se=m({},["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"]),Le=m({},["audio","video","img","source","image"]),Re=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),ke=null,Ne=k.createElement("form"),je=function(e){ke&&ke===e||(e&&"object"===(void 0===e?"undefined":_(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Re="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,se="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},le="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Oe="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ge=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,xe=e.RETURN_DOM_IMPORT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,we=!1!==e.SANITIZE_DOM,_e=!1!==e.KEEP_CONTENT,Ee=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Oe&&(ie=m({},[].concat(E(i))),ce=[],!0===Oe.html&&(m(ie,t),m(ce,c)),!0===Oe.svg&&(m(ie,n),m(ce,u),m(ce,l)),!0===Oe.svgFilters&&(m(ie,r),m(ce,u),m(ce,l)),!0===Oe.mathMl&&(m(ie,o),m(ce,s),m(ce,l))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Re,e.ADD_URI_SAFE_ATTR),_e&&(ie["#text"]=!0),ge&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete se.tbody),L&&L(e),ke=e)},De=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},Ce=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new U).parseFromString(e,"text/html")}catch(e){}if(g&&m(se,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(k.createTextNode(n),t.body.childNodes[0]||null),Y.call(t,ge?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(g=!0)}catch(e){}}());var ze=function(e){return V.call(e.ownerDocument||e,e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT,(function(){return C.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===D?"undefined":_(D))?e instanceof D:e&&"object"===(void 0===e?"undefined":_(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ue=function(e,t,n){$[e]&&$[e].forEach((function(e){e.call(f,t,n,ke)}))},qe=function(e){var t=void 0;if(Ue("beforeSanitizeElements",e,null),Fe(e))return De(e),!0;var n=e.nodeName.toLowerCase();if(Ue("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return De(e),!0;if(!ie[n]||se[n]){if(_e&&!Se[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return De(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(De(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ue("afterSanitizeElements",e,null),!1)},Pe=function(e,t,n){if(we&&("id"===t||"name"===t)&&(n in k||n in Ne))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||le[t])return!1;if(Re[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Le[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;Ue("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],s=u.name,l=u.namespaceURI;if(n=t.value.trim(),r=s.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,Ue("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=O(S,a,[]),Ce("id",e),Ce(s,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!le[r]))continue;"id"===s&&e.setAttribute(s,""),Ce(s,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Se).join("|")+")","i").test(n))Ce(s,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Pe(d,r,n))try{l?e.setAttributeNS(l,s,n):e.setAttribute(s,n),f.removed.pop()}catch(e){}}}Ue("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(Ue("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ue("uponSanitizeShadowNode",n,null),qe(n)||(n.content instanceof N&&e(n.content),We(n));Ue("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===_(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ye||je(t),f.removed=[],Ee);else if(e instanceof D)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ge&&Ae&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return be?null:B}n&&ve&&De(n.firstChild);for(var u=ze(Ee?e:n);o=u.nextNode();)3===o.nodeType&&o===i||qe(o)||(o.content instanceof N&&Be(o.content),We(o),i=o);if(i=null,Ee)return e;if(be){if(Te)for(c=X.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return xe&&(c=Z.call(d,c,!0)),c}var s=ge?n.outerHTML:n.innerHTML;return he&&(s=(s=s.replace(J," ")).replace(Q," ")),W&&Ae?W.createHTML(s):s},f.setConfig=function(e){je(e),ye=!0},f.clearConfig=function(){ke=null,ye=!1},f.isValidAttribute=function(e,t,n){ke||je({});var r=e.toLowerCase(),o=t.toLowerCase();return Pe(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&($[e]=$[e]||[],$[e].push(t))},f.removeHook=function(e){$[e]&&$[e].pop()},f.removeHooks=function(e){$[e]&&($[e]=[])},f.removeAllHooks=function(){$={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.nextOrObserver,this.error,this.complete))},e}(),s=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},834:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return a})),n.d(t,"search",(function(){return c}));var r=n(61),o=n(5);function i(e,t){switch(e=encodeURIComponent(e.replace(/\s+/g,"+")),t){case"engjp":return"http://www.jukuu.com/jsearch.php?q="+e;case"zhjp":return"http://www.jukuu.com/jcsearch.php?q="+e;default:return"http://www.jukuu.com/search.php?q="+e}}const a=(e,t,n)=>i(e,n.dicts.all.jukuu.options.lang),c=(e,t,n,a)=>{const c=a.lang||n.dicts.all.jukuu.options.lang;return Object(r.a)(i(e,c)).catch(o.g).then(u).then(e=>e.length>0?{result:{lang:c,sens:e}}:Object(o.h)())};function u(e){return[...e.querySelectorAll("tr.e")].map(e=>{const t=e.lastElementChild;if(!t)return;Object(o.j)(t,"img");const n=e.nextElementSibling;if(!n||!n.classList.contains("c"))return;const r=n.nextElementSibling;return{trans:Object(o.d)("http://www.jukuu.com",t),original:Object(o.f)(n),src:r&&r.classList.contains("s")?Object(o.f)(r).replace(/^[\s-]*/,""):""}}).filter(e=>Boolean(e&&e.trans))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/74.5b0a18ab.js b/plugins/saladict-ztools/ext-saladic/assets/43.a53c8a7a.js similarity index 95% rename from plugins/saladict-ztools/ext-saladic/assets/74.5b0a18ab.js rename to plugins/saladict-ztools/ext-saladic/assets/43.a53c8a7a.js index b35fad2e..5a416328 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/74.5b0a18ab.js +++ b/plugins/saladict-ztools/ext-saladic/assets/43.a53c8a7a.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[74],{1349:function(n,t,o){(t=o(221)(!1)).push([n.i,'.dictLongman-Wordfams .asset_intro{display:block;font-weight:700}.dictLongman-Wordfams .pos{color:#16a085;font-weight:700}.dictLongman-Wordfams .pos::before{content:"";display:block;border-left:1px solid red}.dictLongman-Wordfams .pos+*{margin-left:.5em}.dictLongman-Dict{margin-bottom:1.2em}.dictLongman-DictTitle{font-size:14px;font-weight:400;text-align:center}.dictLongman-DictTitle>span{padding:5px 10px;color:#fff;background:#b8b8b8;border-radius:4px}.dictLongman-HeaderContainer{display:flex;align-items:center;flex-wrap:wrap}.dictLongman-Level,.dictLongman-Title{font-size:1em;margin-right:.6em}.dictLongman-Title_HYPHENATION{font-size:1.5em}.dictLongman-Title_HWD{display:none}.dictLongman-Title_HOMNUM{font-size:.5em;vertical-align:super}.dictLongman-FREQ{margin-right:.6em;padding:1px .5em 0;color:#f9690e;line-height:1.5;vertical-align:middle;border:1px solid #f9690e;border-radius:3px;-moz-user-select:none;user-select:none}.dictLongman-Phsym{margin:0 .5em}.dictLongman-Sense{position:relative;padding-left:1.4em}.dictLongman-Entry{font-family:arial,helvetica,sans-serif}.dictLongman-Entry .ColloExa,.dictLongman-Entry .EXAMPLE,.dictLongman-Entry .GramExa,.dictLongman-Entry .Sense,.dictLongman-Entry .SubEntry,.dictLongman-Entry .newline{display:block}.dictLongman-Entry .ACTIV,.dictLongman-Entry .FIELD,.dictLongman-Entry .FIELDXX,.dictLongman-Entry .HWD{display:none}.dictLongman-Entry .HYPHENATION{font-size:160%}.dictLongman-Entry .COLLOINEXA,.dictLongman-Entry .EXPR,.dictLongman-Entry .GRAM,.dictLongman-Entry .HYPHENATION,.dictLongman-Entry .LEXUNIT,.dictLongman-Entry .POS,.dictLongman-Entry .PROPFORMPREP,.dictLongman-Entry .SYN,.dictLongman-Entry .sensenum{font-weight:700}.dictLongman-Entry .GEO{font-weight:400}.dictLongman-Entry .COLLOINEXA,.dictLongman-Entry .GEO{font-style:italic}.dictLongman-Entry .GRAM{margin-right:.25em;color:#16a085}.dictLongman-Entry .GEO,.dictLongman-Entry .GLOSS{color:#999}.dictLongman-Entry .sensenum{position:absolute;left:0;text-align:right;width:1em}.dictLongman-Entry .Subsense{display:block;padding-left:1.4em;position:relative}.dictLongman-Entry .EXAMPLE{margin-bottom:.4em;padding-left:.8em;color:var(--color-font-grey);position:relative}.dictLongman-Entry .EXAMPLE:before{content:"•";margin-right:.5em;-moz-user-select:none;user-select:none}.dictLongman-Entry .EXAMPLE.withSpeaker:before{display:none}.dictLongman-Entry .SIGNPOST,.dictLongman-Entry .SYN .synopp{color:#fff;font-size:80%;font-weight:700;background:#ff9552;padding:2px .4em 1px;border-radius:3px;text-transform:uppercase}.dictLongman-Entry .OPP{font-weight:700}.dictLongman-Entry .OPP .synopp{color:#fff;border-color:#f1d600;background-color:#f1d600;padding:0 .4em;border-radius:3px;text-transform:uppercase}.dictLongman-Entry a:active,.dictLongman-Entry a:hover,.dictLongman-Entry a:link,.dictLongman-Entry a:visited{text-decoration:none;color:#f9690e}.dictLongman-Entry .SubEntry{color:#999;margin-left:.8em}.dictLongman-Entry .SubEntry:last-child{margin-bottom:.4em}.dictLongman-Entry .SubEntry a:active,.dictLongman-Entry .SubEntry a:hover,.dictLongman-Entry .SubEntry a:link,.dictLongman-Entry .SubEntry a:visited{text-decoration:none;color:#999}.dictLongman-Entry .ldoceEntry .AC,.dictLongman-Entry .ldoceEntry .FREQ,.dictLongman-Entry .ldoceEntry .synopp{display:inline-block;font-style:normal;font-weight:700;text-transform:uppercase;border-radius:5px;border:solid 1px;padding-left:4px;padding-right:4px}.dictLongman-Entry .COLLO{font-weight:700;margin-left:10px}.dictLongman-Entry .neutral{color:#333;font-style:normal;font-weight:400;font-variant:normal;background:0 0}.dictLongman-Box{position:relative;margin:1.4em .8em .6em .4em;padding:.8em .5em .5em;border:1px solid #f9690e;border-radius:3px}.dictLongman-Box .heading{position:absolute;top:0;left:.8em;transform:translateY(-50%);padding:0 .4em;font-size:1.3em;background:var(--color-background)}.dictLongman-Box .BADEXA,.dictLongman-Box .CROSS,.dictLongman-Box .dont_say{color:#f9690e}.dictLongman-Box .CROSS{padding-left:.4em}.dictLongman-Box .CROSS .neutral{color:#f9690e}.dictLongman-Box .BADEXA{padding-right:.4em}.dictLongman-Examples_Title{font-weight:400;font-size:1.3em}.dictLongman-Examples{margin-bottom:.6em}.dictLongman-Examples .title{display:block;font-weight:700;font-size:1.1em}.dictLongman-Examples .exa{display:block;position:relative;margin-left:.8em;padding-left:.8em}.dictLongman-Examples .neutral{position:absolute;left:0}.dictLongman-Related a{margin-left:2em;color:#16a085}',""]),n.exports=t},686:function(n,t,o){var i=o(1349);n.exports="string"==typeof i?i:i.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[43],{1388:function(n,t,o){(t=o(226)(!1)).push([n.i,'.dictLongman-Wordfams .asset_intro{display:block;font-weight:700}.dictLongman-Wordfams .pos{color:#16a085;font-weight:700}.dictLongman-Wordfams .pos::before{content:"";display:block;border-left:1px solid red}.dictLongman-Wordfams .pos+*{margin-left:.5em}.dictLongman-Dict{margin-bottom:1.2em}.dictLongman-DictTitle{font-size:14px;font-weight:400;text-align:center}.dictLongman-DictTitle>span{padding:5px 10px;color:#fff;background:#b8b8b8;border-radius:4px}.dictLongman-HeaderContainer{display:flex;align-items:center;flex-wrap:wrap}.dictLongman-Level,.dictLongman-Title{font-size:1em;margin-right:.6em}.dictLongman-Title_HYPHENATION{font-size:1.5em}.dictLongman-Title_HWD{display:none}.dictLongman-Title_HOMNUM{font-size:.5em;vertical-align:super}.dictLongman-FREQ{margin-right:.6em;padding:1px .5em 0;color:#f9690e;line-height:1.5;vertical-align:middle;border:1px solid #f9690e;border-radius:3px;-moz-user-select:none;user-select:none}.dictLongman-Phsym{margin:0 .5em}.dictLongman-Sense{position:relative;padding-left:1.4em}.dictLongman-Entry{font-family:arial,helvetica,sans-serif}.dictLongman-Entry .ColloExa,.dictLongman-Entry .EXAMPLE,.dictLongman-Entry .GramExa,.dictLongman-Entry .Sense,.dictLongman-Entry .SubEntry,.dictLongman-Entry .newline{display:block}.dictLongman-Entry .ACTIV,.dictLongman-Entry .FIELD,.dictLongman-Entry .FIELDXX,.dictLongman-Entry .HWD{display:none}.dictLongman-Entry .HYPHENATION{font-size:160%}.dictLongman-Entry .COLLOINEXA,.dictLongman-Entry .EXPR,.dictLongman-Entry .GRAM,.dictLongman-Entry .HYPHENATION,.dictLongman-Entry .LEXUNIT,.dictLongman-Entry .POS,.dictLongman-Entry .PROPFORMPREP,.dictLongman-Entry .SYN,.dictLongman-Entry .sensenum{font-weight:700}.dictLongman-Entry .GEO{font-weight:400}.dictLongman-Entry .COLLOINEXA,.dictLongman-Entry .GEO{font-style:italic}.dictLongman-Entry .GRAM{margin-right:.25em;color:#16a085}.dictLongman-Entry .GEO,.dictLongman-Entry .GLOSS{color:#999}.dictLongman-Entry .sensenum{position:absolute;left:0;text-align:right;width:1em}.dictLongman-Entry .Subsense{display:block;padding-left:1.4em;position:relative}.dictLongman-Entry .EXAMPLE{margin-bottom:.4em;padding-left:.8em;color:var(--color-font-grey);position:relative}.dictLongman-Entry .EXAMPLE:before{content:"•";margin-right:.5em;-moz-user-select:none;user-select:none}.dictLongman-Entry .EXAMPLE.withSpeaker:before{display:none}.dictLongman-Entry .SIGNPOST,.dictLongman-Entry .SYN .synopp{color:#fff;font-size:80%;font-weight:700;background:#ff9552;padding:2px .4em 1px;border-radius:3px;text-transform:uppercase}.dictLongman-Entry .OPP{font-weight:700}.dictLongman-Entry .OPP .synopp{color:#fff;border-color:#f1d600;background-color:#f1d600;padding:0 .4em;border-radius:3px;text-transform:uppercase}.dictLongman-Entry a:active,.dictLongman-Entry a:hover,.dictLongman-Entry a:link,.dictLongman-Entry a:visited{text-decoration:none;color:#f9690e}.dictLongman-Entry .SubEntry{color:#999;margin-left:.8em}.dictLongman-Entry .SubEntry:last-child{margin-bottom:.4em}.dictLongman-Entry .SubEntry a:active,.dictLongman-Entry .SubEntry a:hover,.dictLongman-Entry .SubEntry a:link,.dictLongman-Entry .SubEntry a:visited{text-decoration:none;color:#999}.dictLongman-Entry .ldoceEntry .AC,.dictLongman-Entry .ldoceEntry .FREQ,.dictLongman-Entry .ldoceEntry .synopp{display:inline-block;font-style:normal;font-weight:700;text-transform:uppercase;border-radius:5px;border:solid 1px;padding-left:4px;padding-right:4px}.dictLongman-Entry .COLLO{font-weight:700;margin-left:10px}.dictLongman-Entry .neutral{color:#333;font-style:normal;font-weight:400;font-variant:normal;background:0 0}.dictLongman-Box{position:relative;margin:1.4em .8em .6em .4em;padding:.8em .5em .5em;border:1px solid #f9690e;border-radius:3px}.dictLongman-Box .heading{position:absolute;top:0;left:.8em;transform:translateY(-50%);padding:0 .4em;font-size:1.3em;background:var(--color-background)}.dictLongman-Box .BADEXA,.dictLongman-Box .CROSS,.dictLongman-Box .dont_say{color:#f9690e}.dictLongman-Box .CROSS{padding-left:.4em}.dictLongman-Box .CROSS .neutral{color:#f9690e}.dictLongman-Box .BADEXA{padding-right:.4em}.dictLongman-Examples_Title{font-weight:400;font-size:1.3em}.dictLongman-Examples{margin-bottom:.6em}.dictLongman-Examples .title{display:block;font-weight:700;font-size:1.1em}.dictLongman-Examples .exa{display:block;position:relative;margin-left:.8em;padding-left:.8em}.dictLongman-Examples .neutral{position:absolute;left:0}.dictLongman-Related a{margin-left:2em;color:#16a085}',""]),n.exports=t},718:function(n,t,o){var i=o(1388);n.exports="string"==typeof i?i:i.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/44.a3871a2d.js b/plugins/saladict-ztools/ext-saladic/assets/44.a3871a2d.js deleted file mode 100644 index 9db3312f..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/44.a3871a2d.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[44],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return s}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function l(){return new o.a}function u(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function s(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function l(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const u={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function s(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=u}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const l=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),s=l.firstChild?l.firstChild[t]:"";return r?r(s):s}function f(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),l=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),u=a(["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"]),s=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),b=y(/<%[\s\S]*|[\s\S]*%>/gm),v=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),O=y(/^(?:\w+script|data):/i),x=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function S(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var w=("undefined"!=typeof Reflect&&Reflect).apply,_=Array.prototype.slice,R=Object.freeze,L=function(){return"undefined"==typeof window?null:window};w||(w=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":E(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,N=a.document,k=a.DocumentFragment,j=a.HTMLTemplateElement,C=a.Node,D=a.NodeFilter,H=a.NamedNodeMap,F=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,z=a.Text,I=a.Comment,q=a.DOMParser,P=a.TrustedTypes;if("function"==typeof j){var U=N.createElement("template");U.content&&U.content.ownerDocument&&(N=U.content.ownerDocument)}var W=M(P,d),B=W?W.createHTML(""):"",G=N,Y=G.implementation,K=G.createNodeIterator,V=G.getElementsByTagName,X=G.createDocumentFragment,Z=d.importNode,$={};f.isSupported=Y&&void 0!==Y.createHTMLDocument&&9!==N.documentMode;var J=g,Q=b,ee=v,te=T,ne=O,re=x,oe=A,ie=null,ae=m({},[].concat(S(t),S(n),S(r),S(o),S(i))),ce=null,le=m({},[].concat(S(c),S(l),S(u),S(s))),ue=null,se=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,be=!1,ve=!1,Te=!1,Ae=!1,Oe=!1,xe=!0,Ee=!0,Se=!1,we={},_e=m({},["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"]),Re=m({},["audio","video","img","source","image"]),Le=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,ke=N.createElement("form"),je=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":E(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):le,Le="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,ue="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},se="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},we="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,ve=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,xe=!1!==e.SANITIZE_DOM,Ee=!1!==e.KEEP_CONTENT,Se=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(ve=!0),we&&(ie=m({},[].concat(S(i))),ce=[],!0===we.html&&(m(ie,t),m(ce,c)),!0===we.svg&&(m(ie,n),m(ce,l),m(ce,s)),!0===we.svgFilters&&(m(ie,r),m(ce,l),m(ce,s)),!0===we.mathMl&&(m(ie,o),m(ce,u),m(ce,s))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===le&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Le,e.ADD_URI_SAFE_ATTR),Ee&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete ue.tbody),R&&R(e),Ne=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},De=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(be)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new q).parseFromString(e,"text/html")}catch(e){}if(y&&m(ue,["title"]),!t||!t.documentElement){var o=(t=Y.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(N.createTextNode(n),t.body.childNodes[0]||null),V.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var Fe=function(e){return K.call(e.ownerDocument||e,e,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,(function(){return D.FILTER_ACCEPT}),!1)},ze=function(e){return!(e instanceof z||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof F&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===C?"undefined":E(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":E(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},qe=function(e,t,n){$[e]&&$[e].forEach((function(e){e.call(f,t,n,Ne)}))},Pe=function(e){var t=void 0;if(qe("beforeSanitizeElements",e,null),ze(e))return Ce(e),!0;var n=e.nodeName.toLowerCase();if(qe("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[n]||ue[n]){if(Ee&&!_e[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return Ce(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),qe("afterSanitizeElements",e,null),!1)},Ue=function(e,t,n){if(xe&&("id"===t||"name"===t)&&(n in N||n in ke))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||se[t])return!1;if(Le[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Re[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;qe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var l=t=a[i],u=l.name,s=l.namespaceURI;if(n=t.value.trim(),r=u.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,qe("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=w(_,a,[]),De("id",e),De(u,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!se[r]))continue;"id"===u&&e.setAttribute(u,""),De(u,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(_e).join("|")+")","i").test(n))De(u,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Ue(d,r,n))try{s?e.setAttributeNS(s,u,n):e.setAttribute(u,n),f.removed.pop()}catch(e){}}}qe("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=Fe(t);for(qe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)qe("uponSanitizeShadowNode",n,null),Pe(n)||(n.content instanceof k&&e(n.content),We(n));qe("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===E(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||je(t),f.removed=[],Se);else if(e instanceof C)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!ve&&!he&&!ye&&Oe&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return ve?null:B}n&&be&&Ce(n.firstChild);for(var l=Fe(Se?e:n);o=l.nextNode();)3===o.nodeType&&o===i||Pe(o)||(o.content instanceof k&&Be(o.content),We(o),i=o);if(i=null,Se)return e;if(ve){if(Te)for(c=X.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Ae&&(c=Z.call(d,c,!0)),c}var u=ye?n.outerHTML:n.innerHTML;return he&&(u=(u=u.replace(J," ")).replace(Q," ")),W&&Oe?W.createHTML(u):u},f.setConfig=function(e){je(e),ge=!0},f.clearConfig=function(){Ne=null,ge=!1},f.isValidAttribute=function(e,t,n){Ne||je({});var r=e.toLowerCase(),o=t.toLowerCase();return Ue(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&($[e]=$[e]||[],$[e].push(t))},f.removeHook=function(e){$[e]&&$[e].pop()},f.removeHooks=function(e){$[e]&&($[e]=[])},f.removeAllHooks=function(){$={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new l(e,t,n))}}var l=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.nextOrObserver,this.error,this.complete))},e}(),u=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},838:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var r=n(61),o=n(5);const i=(e,t,n)=>`http://www.macmillandictionary.com/dictionary/${"us"===n.dicts.all.macmillan.options.locale?"american":"british"}/`+encodeURIComponent(e.toLocaleLowerCase().replace(/[^A-Za-z0-9]+/g,"-")),a="http://www.macmillandictionary.com",c=async(e,t,n,c)=>{const l=n.dicts.all.macmillan.options;return async function(e){const t=await Object(r.a)(e);return Object(o.j)(t,".visible-xs"),t}(c.href||await i(e,t,n)).catch(o.g).then(e=>async function(e,t){if(e.querySelector(".senses"))return function(e){const t=e.querySelector("#entryContent .left-content");if(!t)return Object(o.h)();const n={type:"lex",title:Object(o.f)(t,".big-title .BASE"),senses:"",toggleables:[],relatedEntries:[]};if(!n.title)return Object(o.h)();if(t.querySelectorAll("a.moreButton").forEach(o.a),n.senses=Object(o.d)(a,t,".senses"),!n.senses)return Object(o.h)();Object(o.i)(t,".senses"),n.pos=Object(o.f)(t,".entry-pron-head .PART-OF-SPEECH"),n.sc=Object(o.f)(t,".entry-pron-head .SYNTAX-CODING"),n.phsym=Object(o.f)(t,".entry-pron-head .PRON"),n.ratting=t.querySelectorAll(".entry-red-star").length,t.querySelectorAll(".toggleable").forEach(e=>{n.toggleables.push(Object(o.e)(a,e))}),e.querySelectorAll(".related-entries-item a").forEach(e=>{const t=e.querySelector(".PART-OF-SPEECH");t&&(t.textContent=Object(o.f)(t).toUpperCase()),n.relatedEntries.push({title:Object(o.f)(e),href:Object(o.c)(a,e,"href")})});const r={},i=t.querySelector(".entry-pron-head .PRONS .sound");i&&i.dataset.srcMp3&&(n.pron=i.dataset.srcMp3,r.uk=n.pron);return{result:n,audio:r}}(e);if(t.related){const t=[...e.querySelectorAll(".display-list li a")].map(e=>({title:Object(o.f)(e),href:Object(o.c)(a,e,"href")}));if(t.length>0)return{result:{type:"related",list:t}}}return Object(o.h)()}(e,l))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/44.acd80835.js b/plugins/saladict-ztools/ext-saladic/assets/44.acd80835.js new file mode 100644 index 00000000..7cb73f08 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/44.acd80835.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[44],{1389:function(t,i,e){(i=e(226)(!1)).push([t.i,".mw-title-area{margin-bottom:8px}.mw-title{font-size:1.75em;font-weight:700;letter-spacing:.02em;line-height:1.25}.mw-pos{color:var(--color-font-grey);font-style:italic;margin-left:4px;margin-right:3px}.mw-prs{margin-bottom:12px;border-width:thin;color:var(--color-font-grey);line-height:1.6}.mw-syllable{font-weight:700;margin-right:6px}.mw-pt-text{display:inline-block;margin:2px 6px 2px 0}.mw-pt{color:var(--color-font-grey);border:1px solid currentColor;border-radius:5px;margin:2px 6px 2px 0;padding:1px 8px;display:inline-block;line-height:1.5}.mw-section{margin-bottom:16px}.mw-section-title{border-bottom:1px solid var(--color-font-grey);font-size:1.1em;font-weight:700;letter-spacing:.01em;line-height:1.3;margin-bottom:8px;padding-bottom:3px}.mw-section-title+div{margin-bottom:8px}.mw-mg-area{display:flex;flex-direction:row;margin-bottom:12px}.mw-mg-left{display:flex;flex-direction:column;width:auto;margin-right:10px;align-items:center}.mw-mg-sign{font-size:1.12em;font-weight:700;line-height:1.55;min-width:20px;text-align:center}.mw-mg-line{flex:auto;background:var(--color-divider);border-radius:2px;width:1px}.mw-mg-right{flex:1;margin-top:3px;min-width:0}.mw-mean-area{display:block;font-size:1.05em;letter-spacing:.01em;line-height:1.55;margin-bottom:8px}.mw-mean-text{display:inline}.mw-mean-sign{font-weight:700;display:inline-block;margin-right:6px}.mw-mean-ex-area{padding-left:12px}.mw-mean-ex-item{color:var(--color-font-grey);border-left:2px solid var(--color-divider);padding-left:8px;line-height:1.45;margin-top:6px;margin-bottom:6px}.mw-extra{position:relative;border:1px solid #c76e06;border-radius:5px;margin-top:24px;margin-bottom:16px;padding:1.2em 1em .5em 1em;line-height:1.55}.mw-extra-title{position:absolute;top:0;left:1em;transform:translateY(-50%);max-width:90%;overflow:hidden;padding:0 5px;background:var(--color-background);white-space:nowrap;text-overflow:ellipsis;border-bottom:none;font-size:1.15em}",""]),t.exports=i},719:function(t,i,e){var o=e(1389);t.exports="string"==typeof o?o:o.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/45.6be3eb26.js b/plugins/saladict-ztools/ext-saladic/assets/45.6be3eb26.js new file mode 100644 index 00000000..29a31cbb --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/45.6be3eb26.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[45],{1390:function(i,t,d){(t=d(226)(!1)).push([i.i,".dictMojidict-Head{display:flex;align-items:flex-start;gap:.75em}.dictMojidict-Head_Main{flex:1;min-width:0}.dictMojidict-Excerpt,.dictMojidict-Pron,.dictMojidict-Related_Excerpt,.dictMojidict-Source,.dictMojidict-Word_Ja,.dictMojidict-Word_Trans{color:#777}.dictMojidict-Excerpt{margin:.4em 0 0;line-height:1.55}.dictMojidict-Word_Image{flex:0 0 auto;max-width:72px;max-height:72px;border-radius:4px;object-fit:cover}.dictMojidict-Word_Title{margin-bottom:0;line-height:1.55}.dictMojidict-Word_Title ruby{ruby-align:center}.dictMojidict-Word_Title rt{color:#999;font-size:.68em}.dictMojidict-Source,.dictMojidict-Word_Ja,.dictMojidict-Word_Trans{margin-top:0;padding-left:.5em;font-size:.9em;line-height:1.45}.dictMojidict-Source{color:#aaa;font-size:.82em}.dictMojidict-List{padding-left:1.5em}.dictMojidict-Plain_List{list-style-type:disc}.dictMojidict-Sublist{padding-left:.5em;list-style-type:none}.dictMojidict-ListItem{padding-left:.2em}.dictMojidict-Related_List{display:flex;flex-wrap:wrap;gap:.4em .5em;margin:.5em 0;padding-left:0;list-style:none}.dictMojidict-Related_List li{display:inline-flex;align-items:baseline;gap:.3em;padding:.1em .45em;border:1px solid rgba(128,128,128,.22);border-radius:4px}.dictMojidict-Search_Tag{margin:0;padding:0;border:0;background:0 0;color:inherit;font:inherit;cursor:pointer}.dictMojidict-Search_Tag:hover{text-decoration:underline}.dictMojidict-Related_Title{font-weight:500}.dictMojidict-Related_Excerpt{font-size:.86em}",""]),i.exports=t},720:function(i,t,d){var e=d(1390);i.exports="string"==typeof e?e:e.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/45.c3f03486.js b/plugins/saladict-ztools/ext-saladic/assets/45.c3f03486.js deleted file mode 100644 index 604d478d..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/45.c3f03486.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[45],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return l}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function s(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function l(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const s={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function l(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=s}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),l=u.firstChild?u.firstChild[t]:"";return r?r(l):l}function f(e,t,n={}){return l(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return l(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),s=a(["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"]),l=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),O=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_=y(/^(?:\w+script|data):/i),A=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function j(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var w=("undefined"!=typeof Reflect&&Reflect).apply,E=Array.prototype.slice,S=Object.freeze,R=function(){return"undefined"==typeof window?null:window};w||(w=function(e,t,n){return e.apply(t,n)});var L=function(e,t){if("object"!==(void 0===e?"undefined":x(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,M=a.document,N=a.DocumentFragment,k=a.HTMLTemplateElement,C=a.Node,D=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,q=a.DOMParser,U=a.TrustedTypes;if("function"==typeof k){var P=M.createElement("template");P.content&&P.content.ownerDocument&&(M=P.content.ownerDocument)}var W=L(U,d),B=W?W.createHTML(""):"",G=M,V=G.implementation,K=G.createNodeIterator,Y=G.getElementsByTagName,J=G.createDocumentFragment,X=d.importNode,Z={};f.isSupported=V&&void 0!==V.createHTMLDocument&&9!==M.documentMode;var $=g,Q=v,ee=b,te=T,ne=_,re=A,oe=O,ie=null,ae=m({},[].concat(j(t),j(n),j(r),j(o),j(i))),ce=null,ue=m({},[].concat(j(c),j(u),j(s),j(l))),se=null,le=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,Te=!1,Oe=!1,_e=!1,Ae=!0,xe=!0,je=!1,we={},Ee=m({},["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"]),Se=m({},["audio","video","img","source","image"]),Re=null,Le=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Me=null,Ne=M.createElement("form"),ke=function(e){Me&&Me===e||(e&&"object"===(void 0===e?"undefined":x(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Re="ADD_URI_SAFE_ATTR"in e?m(h(Le),e.ADD_URI_SAFE_ATTR):Le,se="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},le="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},we="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Oe=e.RETURN_DOM_IMPORT||!1,_e=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,Ae=!1!==e.SANITIZE_DOM,xe=!1!==e.KEEP_CONTENT,je=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),we&&(ie=m({},[].concat(j(i))),ce=[],!0===we.html&&(m(ie,t),m(ce,c)),!0===we.svg&&(m(ie,n),m(ce,u),m(ce,l)),!0===we.svgFilters&&(m(ie,r),m(ce,u),m(ce,l)),!0===we.mathMl&&(m(ie,o),m(ce,s),m(ce,l))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Re,e.ADD_URI_SAFE_ATTR),xe&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete se.tbody),S&&S(e),Me=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},De=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new q).parseFromString(e,"text/html")}catch(e){}if(y&&m(se,["title"]),!t||!t.documentElement){var o=(t=V.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(M.createTextNode(n),t.body.childNodes[0]||null),Y.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return K.call(e.ownerDocument||e,e,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,(function(){return D.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===C?"undefined":x(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":x(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},qe=function(e,t,n){Z[e]&&Z[e].forEach((function(e){e.call(f,t,n,Me)}))},Ue=function(e){var t=void 0;if(qe("beforeSanitizeElements",e,null),Fe(e))return Ce(e),!0;var n=e.nodeName.toLowerCase();if(qe("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[n]||se[n]){if(xe&&!Ee[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return Ce(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace($," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),qe("afterSanitizeElements",e,null),!1)},Pe=function(e,t,n){if(Ae&&("id"===t||"name"===t)&&(n in M||n in Ne))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||le[t])return!1;if(Re[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Se[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;qe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],s=u.name,l=u.namespaceURI;if(n=t.value.trim(),r=s.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,qe("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=w(E,a,[]),De("id",e),De(s,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!le[r]))continue;"id"===s&&e.setAttribute(s,""),De(s,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Ee).join("|")+")","i").test(n))De(s,e);else{he&&(n=(n=n.replace($," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Pe(d,r,n))try{l?e.setAttributeNS(l,s,n):e.setAttribute(s,n),f.removed.pop()}catch(e){}}}qe("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(qe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)qe("uponSanitizeShadowNode",n,null),Ue(n)||(n.content instanceof N&&e(n.content),We(n));qe("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===x(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||ke(t),f.removed=[],je);else if(e instanceof C)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ye&&_e&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return be?null:B}n&&ve&&Ce(n.firstChild);for(var u=ze(je?e:n);o=u.nextNode();)3===o.nodeType&&o===i||Ue(o)||(o.content instanceof N&&Be(o.content),We(o),i=o);if(i=null,je)return e;if(be){if(Te)for(c=J.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Oe&&(c=X.call(d,c,!0)),c}var s=ye?n.outerHTML:n.innerHTML;return he&&(s=(s=s.replace($," ")).replace(Q," ")),W&&_e?W.createHTML(s):s},f.setConfig=function(e){ke(e),ge=!0},f.clearConfig=function(){Me=null,ge=!1},f.isValidAttribute=function(e,t,n){Me||ke({});var r=e.toLowerCase(),o=t.toLowerCase();return Pe(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.nextOrObserver,this.error,this.complete))},e}(),s=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},840:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return a})),n.d(t,"search",(function(){return c}));var r=n(61),o=n(5),i=n(24);const a=e=>Object(i.g)(e)?"https://ja.dict.naver.com/search.nhn?range=all&q="+encodeURIComponent(e):"https://zh.dict.naver.com/#/search?query="+encodeURIComponent(e),c=(e,t,n,a)=>{const{options:c}=n.dicts.all.naver;return"ja"===a.lang||c.hanAsJa||Object(i.g)(e)||c.korAsJa&&Object(i.h)(e)?async function(e){try{var t=await Object(r.a)("https://ja.dict.naver.com/search.nhn?range=all&q="+encodeURIComponent(e))}catch(e){return Object(o.g)()}const n=t.querySelector("#content");if(!n)return Object(o.h)();return Object(o.j)(n,".sorting"),Object(o.j)(n,".info_userent"),Object(o.j)(n,".view_ctrl"),Object(o.j)(n,".go_register"),Object(o.j)(n,".section_banner"),Object(o.j)(n,".conjugate"),{result:{lang:"ja",entry:Object(o.d)("https://ja.dict.naver.com",n)}}}(e):async function(e){try{var t=await Object(r.a)("http://m.cndic.naver.com/search/all?sLn=zh_CN&fromNewVer&q="+encodeURIComponent(e))}catch(e){return Object(o.g)()}let n=t.querySelector("#ct");if(!n)return Object(o.h)();return n=n.querySelector("#ct")||n,Object(o.j)(n,".recent_searches"),Object(o.j)(n,".m_tab"),Object(o.j)(n,".con_clt"),Object(o.j)(n,".info_userent"),Object(o.j)(n,".go_register"),Object(o.j)(n,".section_banner"),Object(o.j)(n,".spi_area"),Object(o.j)(n,".word_otr.word_line"),Object(o.j)(n,".common_btn_wrap.my_vlive_pageBar"),n.querySelectorAll("a.more_d").forEach(o.a),{result:{lang:"zh",entry:Object(o.d)("http://m.cndic.naver.com",n)}}}(e)}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/46.66423acb.js b/plugins/saladict-ztools/ext-saladic/assets/46.66423acb.js deleted file mode 100644 index 60be7837..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/46.66423acb.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[46],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function l(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function s(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function s(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=l}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),s=u.firstChild?u.firstChild[t]:"";return r?r(s):s}function f(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),s=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x=y(/^(?:\w+script|data):/i),w=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function S(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var _=("undefined"!=typeof Reflect&&Reflect).apply,E=Array.prototype.slice,R=Object.freeze,L=function(){return"undefined"==typeof window?null:window};_||(_=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":O(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,N=a.document,k=a.DocumentFragment,D=a.HTMLTemplateElement,C=a.Node,j=a.NodeFilter,H=a.NamedNodeMap,F=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,z=a.Text,I=a.Comment,q=a.DOMParser,U=a.TrustedTypes;if("function"==typeof D){var P=N.createElement("template");P.content&&P.content.ownerDocument&&(N=P.content.ownerDocument)}var W=M(U,d),B=W?W.createHTML(""):"",G=N,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,X=G.createDocumentFragment,Z=d.importNode,$={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==N.documentMode;var J=g,Q=v,ee=b,te=T,ne=x,re=w,oe=A,ie=null,ae=m({},[].concat(S(t),S(n),S(r),S(o),S(i))),ce=null,ue=m({},[].concat(S(c),S(u),S(l),S(s))),le=null,se=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,Te=!1,Ae=!1,xe=!1,we=!0,Oe=!0,Se=!1,_e={},Ee=m({},["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"]),Re=m({},["audio","video","img","source","image"]),Le=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,ke=N.createElement("form"),De=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":O(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Le="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},se="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},_e="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,xe=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,we=!1!==e.SANITIZE_DOM,Oe=!1!==e.KEEP_CONTENT,Se=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),_e&&(ie=m({},[].concat(S(i))),ce=[],!0===_e.html&&(m(ie,t),m(ce,c)),!0===_e.svg&&(m(ie,n),m(ce,u),m(ce,s)),!0===_e.svgFilters&&(m(ie,r),m(ce,u),m(ce,s)),!0===_e.mathMl&&(m(ie,o),m(ce,l),m(ce,s))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Le,e.ADD_URI_SAFE_ATTR),Oe&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),R&&R(e),Ne=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},je=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new q).parseFromString(e,"text/html")}catch(e){}if(y&&m(le,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(N.createTextNode(n),t.body.childNodes[0]||null),Y.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var Fe=function(e){return V.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,(function(){return j.FILTER_ACCEPT}),!1)},ze=function(e){return!(e instanceof z||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof F&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===C?"undefined":O(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":O(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},qe=function(e,t,n){$[e]&&$[e].forEach((function(e){e.call(f,t,n,Ne)}))},Ue=function(e){var t=void 0;if(qe("beforeSanitizeElements",e,null),ze(e))return Ce(e),!0;var n=e.nodeName.toLowerCase();if(qe("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[n]||le[n]){if(Oe&&!Ee[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return Ce(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),qe("afterSanitizeElements",e,null),!1)},Pe=function(e,t,n){if(we&&("id"===t||"name"===t)&&(n in N||n in ke))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||se[t])return!1;if(Le[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Re[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;qe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],l=u.name,s=u.namespaceURI;if(n=t.value.trim(),r=l.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,qe("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=_(E,a,[]),je("id",e),je(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!se[r]))continue;"id"===l&&e.setAttribute(l,""),je(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Ee).join("|")+")","i").test(n))je(l,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Pe(d,r,n))try{s?e.setAttributeNS(s,l,n):e.setAttribute(l,n),f.removed.pop()}catch(e){}}}qe("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=Fe(t);for(qe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)qe("uponSanitizeShadowNode",n,null),Ue(n)||(n.content instanceof k&&e(n.content),We(n));qe("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===O(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||De(t),f.removed=[],Se);else if(e instanceof C)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ye&&xe&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return be?null:B}n&&ve&&Ce(n.firstChild);for(var u=Fe(Se?e:n);o=u.nextNode();)3===o.nodeType&&o===i||Ue(o)||(o.content instanceof k&&Be(o.content),We(o),i=o);if(i=null,Se)return e;if(be){if(Te)for(c=X.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Ae&&(c=Z.call(d,c,!0)),c}var l=ye?n.outerHTML:n.innerHTML;return he&&(l=(l=l.replace(J," ")).replace(Q," ")),W&&xe?W.createHTML(l):l},f.setConfig=function(e){De(e),ge=!0},f.clearConfig=function(){Ne=null,ge=!1},f.isValidAttribute=function(e,t,n){Ne||De({});var r=e.toLowerCase(),o=t.toLowerCase();return Pe(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&($[e]=$[e]||[],$[e].push(t))},f.removeHook=function(e){$[e]&&$[e].pop()},f.removeHooks=function(e){$[e]&&($[e]=[])},f.removeAllHooks=function(){$={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},841:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c})),n.d(t,"getDetail",(function(){return l}));var r=n(61),o=n(5);const i=e=>"https://www.91dict.com/words?w="+encodeURIComponent(e.replace(/\s+/g,"+")),a="https://www.91dict.com",c=(e,t,n,i)=>Object(r.a)("https://www.91dict.com/words?w="+encodeURIComponent(e.replace(/\s+/g,"+"))).catch(o.g).then(u);function u(e){const t=[],n=e.querySelectorAll(".tmInfo .slides > li");return n.length<=0?Object(o.h)():(n.forEach(e=>{const n=Object(o.f)(e.querySelector(".mTop")).trim();if(!n)return;const r=s(e);if(!r)return;const i={key:"",title:n,detail:"",slide:r,context:[]},c=e.querySelector(".viewdetail");c&&(i.detail=Object(o.c)(a,c,"href")),e.querySelectorAll(".mTextend .box").forEach(e=>{const t=Object(o.f)(e,".sty1");t&&i.context.push({title:t,content:[...e.querySelectorAll(".sty2 > *")].map(e=>Object(o.f)(e))})}),i.key=n+r.cover,t.push(i)}),t.length>0?{result:t}:Object(o.h)())}async function l(e){const t=[];try{(await Object(r.a)(e)).querySelectorAll(".item li").forEach(e=>{const n=s(e);n&&t.push(n)})}catch(e){console.warn(e)}return t}function s(e){const t={cover:"",mp3:"",en:"",chs:""},n=e.querySelector("img");if(!n)return null;const r=Object(o.c)(a,n,"src");if(!r)return null;t.cover=r;const i=e.querySelector(".mTop audio");return i&&(t.mp3=Object(o.c)(a,i,"src")),t.en=Object(o.d)(a,e,".mBottom"),t.chs=Object(o.f)(e,".mFoot").trim(),t}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/46.6f868c12.js b/plugins/saladict-ztools/ext-saladic/assets/46.6f868c12.js new file mode 100644 index 00000000..166f68a1 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/46.6f868c12.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[46],{1391:function(e,r,i){(r=i(226)(!1)).push([e.i,".dictNaver-EntryBox{border:1px solid #eee;padding:1em .5em .5em;margin-top:1.4em;position:relative}.dictNaver-EntryBox .dictNaver-Entry{margin-bottom:4px}.dictNaver-EntryBox .dictNaver-EntryBoxTitle{position:absolute;top:0;left:.8em;transform:translateY(-50%);padding:0 .4em;font-size:1.3em;font-weight:700;background:var(--color-background)}.dictNaver-EntryBox .dictNaver-EntryTitle{display:inline-block;margin-right:4px;font-size:1.2em}.dictNaver-EntryBox .dictNaver-EntrySup{margin:0 4px}.dictNaver-EntryBox .dictNaver-EntryKanji{font-size:1.1em;font-weight:700}.dictNaver-EntryBox .dictNaver-EntryPron{display:inline-block}.dictNaver-EntryBox .dictNaver-EntryPron .dictNaver-EntryPronVal{margin-right:4px;color:#666}.dictNaver-EntryBox .dictNaver-EntryPron .dictNaver-EntryPronFa{display:inline-block;height:14px;line-height:14px;margin-right:4px;border:1px solid #e0e0e0;padding:0 2px;font-size:12px;color:#999}.dictNaver-EntryBox .dictNaver-EntryExp .dictNaver-EntryExpPos{color:#71829f;margin:0 4px}.dictNaver-EntryBox .dictNaver-EntrySource{color:#969696;display:inline-block;font-size:12px}.dictNaver-EntryBox .dictNaver-EntrySource:hover{text-decoration:none}.dictNaver-MeanBox{border:1px solid #eee;padding:1em .5em .5em;margin-top:1.4em;position:relative}.dictNaver-MeanBox .dictNaver-MeanBoxTitle{position:absolute;top:0;left:.8em;transform:translateY(-50%);padding:0 .4em;font-size:1.3em;font-weight:700;background:var(--color-background)}.dictNaver-MeanBox .dictNaver-MeanTitle{display:inline-block;margin-right:4px;font-size:1.2em}.dictNaver-MeanBox .dictNaver-MeanAlias{color:#5b5b5b;margin:0 4px}.dictNaver-MeanBox .dictNaver-MeanPron{display:inline-block}.dictNaver-MeanBox .dictNaver-MeanExp .dictNaver-MeanExpPos{color:#71829f;margin:0 4px}.dictNaver-MeanBox .dictNaver-MeanExp .dictNaver-MeanExpLg{color:#858585;margin-right:4px}.dictNaver-MeanBox .dictNaver-MeanSource{color:#969696;display:inline-block;margin-top:2px;font-size:12px}.dictNaver-MeanBox .dictNaver-MeanSource:hover{text-decoration:none}.dictNaver-ExampleBox{border:1px solid #eee;padding:1em .5em .5em;margin-top:1.4em;position:relative}.dictNaver-ExampleBox .dictNaver-ExampleBoxTitle{position:absolute;top:0;left:.8em;transform:translateY(-50%);padding:0 .4em;font-size:1.3em;font-weight:700;background:var(--color-background)}.dictNaver-ExampleBox .dictNaver-ExampleTitle{display:inline-block;margin-right:4px;font-size:1.2em}.dictNaver-ExampleBox .dictNaver-ExamplePron{display:inline-block}.dictNaver-ExampleBox .dictNaver-ExampleSource{color:#969696;display:inline-block;margin-top:2px;font-size:12px}.dictNaver-ExampleBox .dictNaver-ExampleSource:hover{text-decoration:none}ruby{margin-right:4px}ruby rt{color:#fb5b63}",""]),e.exports=r},721:function(e,r,i){var t=i(1391);e.exports="string"==typeof t?t:t.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/47.10c376dd.js b/plugins/saladict-ztools/ext-saladic/assets/47.10c376dd.js new file mode 100644 index 00000000..0eb48524 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/47.10c376dd.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[47],{1392:function(i,t,e){(t=e(226)(!1)).push([i.i,'.dictOal-TitleBoxSymbol{padding:2px 5px;color:#fff;font-weight:700;font-size:.8em;min-width:14px;text-align:center;background-color:#444;border-radius:8px}.dictOal-TitleBox .dictOal-TitleBoxT{font-size:1.5em;font-weight:700;line-height:1.6}.dictOal-TitleBox .dictOal-TitleBoxPos{font-style:italic;margin-left:4px;margin-right:3px}.dictOal-Phonetics{display:flex}.dictOal-Phonetics .dictOal-PhonsCountry{text-transform:uppercase;color:#e84427;font-size:1em;font-weight:700}.dictOal-Phonetics .dictOal-PhonsUS{margin-left:4px}.dictOal-SensesMultiple{padding-left:20px;margin-top:4px}.dictOal-SensesMultiple li::marker{font-weight:700}.dictOal-SensesMultiple .dictOal-SensesTitle{font-size:1.2em;font-weight:700;border-bottom:1px solid var(--color-font-grey);margin:auto 4px 4px -20px}.dictOal-SensesMultiple .dictOal-SensesTitle .pvarr:before{content:"<->";display:inline-block}.dictOal-SensesMultiple .dictOal-SensesLabels{color:#6f6f6f;font-style:italic;font-weight:400;margin-right:3px}.dictOal-SensesMultiple .dictOal-SensesVariants{font-style:italic;color:#6f6f6f;margin-right:3px}.dictOal-SensesMultiple .dictOal-SensesVariants .v{font-weight:600;font-style:normal;color:#1a3561}.dictOal-SensesMultiple .dictOal-SensesSymbols{margin-right:3px;padding:2px 5px;color:#fff;font-weight:700;font-size:.8em;min-width:14px;text-align:center;background-color:#444;border-radius:8px}.dictOal-SensesMultiple .dictOal-SensesGrammar{color:#6f6f6f;font-weight:400;margin-right:3px}.dictOal-SensesMultiple .dictOal-SensesCf{font-weight:600;font-style:normal;color:#333;margin-right:.25rem}.darkMode .dictOal-SensesMultiple .dictOal-SensesCf{color:#9d9d9d}.dictOal-SensesMultiple .dictOal-MeanExamples .examples>li::before{content:"•";padding-right:8px;margin-left:-4px;color:#6f6f6f}.dictOal-SensesMultiple .dictOal-MeanExamples .examples>li .x{font-style:italic}.dictOal-SensesMultiple .dictOal-MeanExamples .examples>li .cl{font-weight:600;font-style:italic;color:#333}.darkMode .dictOal-SensesMultiple .dictOal-MeanExamples .examples>li .cl{color:#6f6f6f}.dictOal-Origin .dictOal-OriginT{font-size:1.3em;font-weight:700;line-height:1.6;color:#27a1b0}.dictOal-Origin .dictOal-OriginTitle{font-size:1em;font-weight:700;line-height:1.3;color:#27a1b0}.dictOal-Origin .dictOal-OriginMean{padding-left:20px}.dictOal-Idioms{padding:8px;border:1px solid #27a1b0;border-radius:8px 8px 0 0}.dictOal-Idioms .dictOal-IdiomsT{font-size:1.3em;font-weight:700;line-height:1.6;color:#27a1b0}.dictOal-Idioms .dictOal-IdiomsTitle{font-size:1em;font-weight:700;line-height:1.3}.dictOal-Idioms .dictOal-IdiomsLabels{color:#6f6f6f;font-weight:400;margin-right:3px}.dictOal-Idioms .dictOal-IdiomsExamples .examples>li{padding-left:8px}.dictOal-Idioms .dictOal-IdiomsExamples .examples>li::before{content:"•";padding-right:8px;margin-left:-4px;color:#6f6f6f}.dictOal-Idioms .dictOal-IdiomsExamples .examples>li .x{font-style:italic}',""]),i.exports=t},722:function(i,t,e){var l=e(1392);i.exports="string"==typeof l?l:l.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/47.2e20f06e.js b/plugins/saladict-ztools/ext-saladic/assets/47.2e20f06e.js deleted file mode 100644 index b41015b1..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/47.2e20f06e.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[47],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return l}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function s(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function l(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const s={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function l(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=s}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),l=u.firstChild?u.firstChild[t]:"";return r?r(l):l}function f(e,t,n={}){return l(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return l(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),s=a(["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"]),l=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),b=y(/<%[\s\S]*|[\s\S]*%>/gm),v=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),w=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),A=y(/^(?:\w+script|data):/i),x=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function O(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var E=("undefined"!=typeof Reflect&&Reflect).apply,S=Array.prototype.slice,R=Object.freeze,L=function(){return"undefined"==typeof window?null:window};E||(E=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":_(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,N=a.document,k=a.DocumentFragment,D=a.HTMLTemplateElement,C=a.Node,j=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,U=a.DOMParser,P=a.TrustedTypes;if("function"==typeof D){var q=N.createElement("template");q.content&&q.content.ownerDocument&&(N=q.content.ownerDocument)}var W=M(P,d),B=W?W.createHTML(""):"",G=N,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,$=G.createDocumentFragment,X=d.importNode,Z={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==N.documentMode;var J=g,Q=b,ee=v,te=T,ne=A,re=x,oe=w,ie=null,ae=m({},[].concat(O(t),O(n),O(r),O(o),O(i))),ce=null,ue=m({},[].concat(O(c),O(u),O(s),O(l))),se=null,le=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,be=!1,ve=!1,Te=!1,we=!1,Ae=!1,xe=!0,_e=!0,Oe=!1,Ee={},Se=m({},["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"]),Re=m({},["audio","video","img","source","image"]),Le=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,ke=N.createElement("form"),De=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":_(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Le="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,se="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},le="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Ee="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,ve=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,we=e.RETURN_DOM_IMPORT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,xe=!1!==e.SANITIZE_DOM,_e=!1!==e.KEEP_CONTENT,Oe=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(ve=!0),Ee&&(ie=m({},[].concat(O(i))),ce=[],!0===Ee.html&&(m(ie,t),m(ce,c)),!0===Ee.svg&&(m(ie,n),m(ce,u),m(ce,l)),!0===Ee.svgFilters&&(m(ie,r),m(ce,u),m(ce,l)),!0===Ee.mathMl&&(m(ie,o),m(ce,s),m(ce,l))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Le,e.ADD_URI_SAFE_ATTR),_e&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete se.tbody),R&&R(e),Ne=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},je=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(be)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new U).parseFromString(e,"text/html")}catch(e){}if(y&&m(se,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(N.createTextNode(n),t.body.childNodes[0]||null),Y.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return V.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,(function(){return j.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===C?"undefined":_(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":_(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ue=function(e,t,n){Z[e]&&Z[e].forEach((function(e){e.call(f,t,n,Ne)}))},Pe=function(e){var t=void 0;if(Ue("beforeSanitizeElements",e,null),Fe(e))return Ce(e),!0;var n=e.nodeName.toLowerCase();if(Ue("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[n]||se[n]){if(_e&&!Se[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return Ce(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ue("afterSanitizeElements",e,null),!1)},qe=function(e,t,n){if(xe&&("id"===t||"name"===t)&&(n in N||n in ke))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||le[t])return!1;if(Le[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Re[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;Ue("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],s=u.name,l=u.namespaceURI;if(n=t.value.trim(),r=s.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,Ue("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=E(S,a,[]),je("id",e),je(s,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!le[r]))continue;"id"===s&&e.setAttribute(s,""),je(s,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Se).join("|")+")","i").test(n))je(s,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(qe(d,r,n))try{l?e.setAttributeNS(l,s,n):e.setAttribute(s,n),f.removed.pop()}catch(e){}}}Ue("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(Ue("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ue("uponSanitizeShadowNode",n,null),Pe(n)||(n.content instanceof k&&e(n.content),We(n));Ue("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===_(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||De(t),f.removed=[],Oe);else if(e instanceof C)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!ve&&!he&&!ye&&Ae&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return ve?null:B}n&&be&&Ce(n.firstChild);for(var u=ze(Oe?e:n);o=u.nextNode();)3===o.nodeType&&o===i||Pe(o)||(o.content instanceof k&&Be(o.content),We(o),i=o);if(i=null,Oe)return e;if(ve){if(Te)for(c=$.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return we&&(c=X.call(d,c,!0)),c}var s=ye?n.outerHTML:n.innerHTML;return he&&(s=(s=s.replace(J," ")).replace(Q," ")),W&&Ae?W.createHTML(s):s},f.setConfig=function(e){De(e),ge=!0},f.clearConfig=function(){Ne=null,ge=!1},f.isValidAttribute=function(e,t,n){Ne||De({});var r=e.toLowerCase(),o=t.toLowerCase();return qe(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.nextOrObserver,this.error,this.complete))},e}(),s=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},842:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return s})),n.d(t,"search",(function(){return l}));var r=n(61),o=n(5),i=n(131),a=n.n(i),c=n(507),u=n.n(c);const s=e=>"https://www.shanbay.com/bdc/mobile/preview/word?word="+e,l=(e,t,n)=>{const i=n.dicts.all.shanbay.options;return Object(r.a)("https://www.shanbay.com/bdc/mobile/preview/word?word="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(e=>function(e,t){if(!e.querySelector(".error-typo"))return async function(e,t){const n=e.querySelector(".word-spell"),r={id:"shanbay",type:"lex",title:Object(o.f)(e,".word-spell"),pattern:Object(o.f)(e,".pattern"),prons:[],sentences:[]},i={uk:"http://media.shanbay.com/audio/uk/"+r.title+".mp3",us:"http://media.shanbay.com/audio/us/"+r.title+".mp3"};r.prons.push({phsym:Object(o.f)(e,".word-announace"),url:i.us}),t.basic&&(r.basic=Object(o.d)("http://www.shanbay.com",e,".definition-cn"));r.wordId=n&&n.getAttribute("data-id"),t.sentence&&r.wordId&&(r.sentences=await(c=r.wordId,a.a.get(`https://www.shanbay.com/api/v1/bdc/example/?vocabulary_id=${c}&type=sys`).then(({data:{data:e}})=>Array.isArray(e)?e.map(e=>({annotation:u.a.sanitize(e.annotation),translation:u.a.sanitize(e.translation)})):[])));var c;if(r.title)return{result:r,audio:i};return Object(o.h)()}(e,t);return Object(o.h)()}(e,i))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/48.54ada4b5.js b/plugins/saladict-ztools/ext-saladic/assets/48.54ada4b5.js deleted file mode 100644 index e192d142..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/48.54ada4b5.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[48],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function l(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function s(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function s(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=l}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),s=u.firstChild?u.firstChild[t]:"";return r?r(s):s}function f(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),s=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),b=y(/<%[\s\S]*|[\s\S]*%>/gm),v=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x=y(/^(?:\w+script|data):/i),w=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function _(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var S=("undefined"!=typeof Reflect&&Reflect).apply,E=Array.prototype.slice,R=Object.freeze,L=function(){return"undefined"==typeof window?null:window};S||(S=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":O(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,N=a.document,k=a.DocumentFragment,D=a.HTMLTemplateElement,C=a.Node,j=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,U=a.DOMParser,q=a.TrustedTypes;if("function"==typeof D){var P=N.createElement("template");P.content&&P.content.ownerDocument&&(N=P.content.ownerDocument)}var W=M(q,d),B=W?W.createHTML(""):"",G=N,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,J=G.createDocumentFragment,X=d.importNode,Z={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==N.documentMode;var $=g,Q=b,ee=v,te=T,ne=x,re=w,oe=A,ie=null,ae=m({},[].concat(_(t),_(n),_(r),_(o),_(i))),ce=null,ue=m({},[].concat(_(c),_(u),_(l),_(s))),le=null,se=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,be=!1,ve=!1,Te=!1,Ae=!1,xe=!1,we=!0,Oe=!0,_e=!1,Se={},Ee=m({},["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"]),Re=m({},["audio","video","img","source","image"]),Le=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,ke=N.createElement("form"),De=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":O(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Le="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},se="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Se="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,ve=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,xe=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,we=!1!==e.SANITIZE_DOM,Oe=!1!==e.KEEP_CONTENT,_e=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(ve=!0),Se&&(ie=m({},[].concat(_(i))),ce=[],!0===Se.html&&(m(ie,t),m(ce,c)),!0===Se.svg&&(m(ie,n),m(ce,u),m(ce,s)),!0===Se.svgFilters&&(m(ie,r),m(ce,u),m(ce,s)),!0===Se.mathMl&&(m(ie,o),m(ce,l),m(ce,s))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Le,e.ADD_URI_SAFE_ATTR),Oe&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),R&&R(e),Ne=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},je=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(be)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new U).parseFromString(e,"text/html")}catch(e){}if(y&&m(le,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(N.createTextNode(n),t.body.childNodes[0]||null),Y.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return V.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,(function(){return j.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===C?"undefined":O(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":O(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ue=function(e,t,n){Z[e]&&Z[e].forEach((function(e){e.call(f,t,n,Ne)}))},qe=function(e){var t=void 0;if(Ue("beforeSanitizeElements",e,null),Fe(e))return Ce(e),!0;var n=e.nodeName.toLowerCase();if(Ue("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[n]||le[n]){if(Oe&&!Ee[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return Ce(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace($," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ue("afterSanitizeElements",e,null),!1)},Pe=function(e,t,n){if(we&&("id"===t||"name"===t)&&(n in N||n in ke))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||se[t])return!1;if(Le[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Re[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;Ue("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],l=u.name,s=u.namespaceURI;if(n=t.value.trim(),r=l.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,Ue("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=S(E,a,[]),je("id",e),je(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!se[r]))continue;"id"===l&&e.setAttribute(l,""),je(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Ee).join("|")+")","i").test(n))je(l,e);else{he&&(n=(n=n.replace($," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Pe(d,r,n))try{s?e.setAttributeNS(s,l,n):e.setAttribute(l,n),f.removed.pop()}catch(e){}}}Ue("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(Ue("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ue("uponSanitizeShadowNode",n,null),qe(n)||(n.content instanceof k&&e(n.content),We(n));Ue("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===O(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||De(t),f.removed=[],_e);else if(e instanceof C)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!ve&&!he&&!ye&&xe&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return ve?null:B}n&&be&&Ce(n.firstChild);for(var u=ze(_e?e:n);o=u.nextNode();)3===o.nodeType&&o===i||qe(o)||(o.content instanceof k&&Be(o.content),We(o),i=o);if(i=null,_e)return e;if(ve){if(Te)for(c=J.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Ae&&(c=X.call(d,c,!0)),c}var l=ye?n.outerHTML:n.innerHTML;return he&&(l=(l=l.replace($," ")).replace(Q," ")),W&&xe?W.createHTML(l):l},f.setConfig=function(e){De(e),ge=!0},f.clearConfig=function(){Ne=null,ge=!1},f.isValidAttribute=function(e,t,n){Ne||De({});var r=e.toLowerCase(),o=t.toLowerCase();return Pe(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},847:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var r=n(61),o=n(5);const i=e=>"http://www.urbandictionary.com/define.php?term="+e,a="https://www.urbandictionary.com",c=(e,t,n,i)=>{const c=n.dicts.all.urban.options;return Object(r.a)("http://www.urbandictionary.com/define.php?term="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(e=>function(e,{resultnum:t}){const n=[],r={},i=Array.from(e.querySelectorAll(".def-panel"));if(i.length<=0)return Object(o.h)();for(let e=0;e<i.length&&n.length<t;e++){const t=i[e],c={title:""};if(c.title=Object(o.f)(t,".word"),!c.title)continue;const u=t.querySelector(".play-sound");if(u&&u.dataset.urls)try{const e=JSON.parse(u.dataset.urls)[0];e&&(c.pron=e,r.us=e)}catch(e){}if(c.meaning=Object(o.d)(a,t,".meaning"),/There aren't any definitions for/i.test(c.meaning||""))continue;c.example=Object(o.d)(a,t,".example");const l=t.querySelector(".gif > img");if(l){const e=l.nextElementSibling;c.gif={src:l.src,attr:Object(o.f)(e)}}const s=Array.from(t.querySelectorAll(".tags a"));s&&s.length>0&&(c.tags=s.map(e=>(e.textContent||" ").slice(1))),c.contributor=Object(o.f)(t,".contributor"),c.thumbsUp=Object(o.f)(t,".thumbs .up .count"),c.thumbsDown=Object(o.f)(t,".thumbs .down .count"),n.push(c)}return n.length>0?{result:n,audio:r}:Object(o.h)()}(e,c))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/78.32df2100.js b/plugins/saladict-ztools/ext-saladic/assets/48.d0f97d77.js similarity index 87% rename from plugins/saladict-ztools/ext-saladic/assets/78.32df2100.js rename to plugins/saladict-ztools/ext-saladic/assets/48.d0f97d77.js index 7c3a81dc..944d30f2 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/78.32df2100.js +++ b/plugins/saladict-ztools/ext-saladic/assets/48.d0f97d77.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[78],{1353:function(e,i,t){(i=t(221)(!1)).push([e.i,".dictRenren-Slide{overflow:hidden;position:relative;margin-bottom:5px;background:var(--color-divider)}.dictRenren-Slide figure{width:100%;min-height:200px;margin:0;padding:0;transition:height .4s}.isAnimate .dictRenren-Slide figure{transition:height .4s}.dictRenren-Slide figcaption{position:absolute;z-index:2;bottom:0;left:0;width:100%}.dictRenren-Slide figcaption p{text-align:center;padding:0 .3em;line-height:1.2;color:#fff}.dictRenren-Slide_Cover{position:absolute;top:0;left:0;max-width:100%;opacity:0}.dictRenren-Slide_Cover.isLoaded{opacity:1}.isAnimate .dictRenren-Slide_Cover{transition:opacity .4s}.dictRenren-Slide_Speaker{position:absolute;z-index:2;top:5px;left:5px;padding:3px;border-radius:2px;font-size:0;background-color:rgba(255,255,255,.1)}.dictRenren-Slide_Speaker .saladict-Speaker{margin:0}.dictRenren-Slide_En{text-shadow:#005177 1px 0 0,#005177 0 1px 0,#005177 -1px 0 0,#005177 0 -1px 0}.dictRenren-Slide_En em{color:#ffa800}.dictRenren-Slide_Chs{text-shadow:#00080a 1px 0 0,#00080a 0 1px 0,#00080a -1px 0 0,#00080a 0 -1px 0}.dictRenren-Detail{display:block;border:none;width:100%;text-align:center;font-size:.95em;color:#5caf9e;text-decoration:none!important}.dictRenren-Ctx{display:table}.dictRenren-Ctx_Title{display:table-cell;width:3em;font-weight:700;text-align:right}.dictRenren-Ctx_Subtitles{display:table-cell;padding-left:1em}",""]),e.exports=i},690:function(e,i,t){var n=t(1353);e.exports="string"==typeof n?n:n.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[48],{1393:function(e,i,t){(i=t(226)(!1)).push([e.i,".dictRenren-Slide{overflow:hidden;position:relative;margin-bottom:5px;background:var(--color-divider)}.dictRenren-Slide figure{width:100%;min-height:200px;margin:0;padding:0;transition:height .4s}.isAnimate .dictRenren-Slide figure{transition:height .4s}.dictRenren-Slide figcaption{position:absolute;z-index:2;bottom:0;left:0;width:100%}.dictRenren-Slide figcaption p{text-align:center;padding:0 .3em;line-height:1.2;color:#fff}.dictRenren-Slide_Cover{position:absolute;top:0;left:0;max-width:100%;opacity:0}.dictRenren-Slide_Cover.isLoaded{opacity:1}.isAnimate .dictRenren-Slide_Cover{transition:opacity .4s}.dictRenren-Slide_Speaker{position:absolute;z-index:2;top:5px;left:5px;padding:3px;border-radius:2px;font-size:0;background-color:rgba(255,255,255,.1)}.dictRenren-Slide_Speaker .saladict-Speaker{margin:0}.dictRenren-Slide_En{text-shadow:#005177 1px 0 0,#005177 0 1px 0,#005177 -1px 0 0,#005177 0 -1px 0}.dictRenren-Slide_En em{color:#ffa800}.dictRenren-Slide_Chs{text-shadow:#00080a 1px 0 0,#00080a 0 1px 0,#00080a -1px 0 0,#00080a 0 -1px 0}.dictRenren-Detail{display:block;border:none;width:100%;text-align:center;font-size:.95em;color:#5caf9e;text-decoration:none!important}.dictRenren-Ctx{display:table}.dictRenren-Ctx_Title{display:table-cell;width:3em;font-weight:700;text-align:right}.dictRenren-Ctx_Subtitles{display:table-cell;padding-left:1em}",""]),e.exports=i},723:function(e,i,t){var n=t(1393);e.exports="string"==typeof n?n:n.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/79.42ff352c.js b/plugins/saladict-ztools/ext-saladic/assets/49.62499274.js similarity index 68% rename from plugins/saladict-ztools/ext-saladic/assets/79.42ff352c.js rename to plugins/saladict-ztools/ext-saladic/assets/49.62499274.js index e730c5cc..fb71dc44 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/79.42ff352c.js +++ b/plugins/saladict-ztools/ext-saladic/assets/49.62499274.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[79],{1354:function(i,a,t){(a=t(221)(!1)).push([i.i,".dictShanbay-HeaderContainer{display:flex;align-items:center;flex-wrap:wrap}.dictShanbay-Title{font-size:1.5em;margin-right:8px}.dictShanbay-Pattern{margin-top:.5em}.dictShanbay-SecTitle{font-size:1.1em;margin-top:1em;border-bottom:1px solid rgba(199,110,6,.5)}.dictShanbay-Basic{margin:.5em 0}.dictShanbay-Basic .definition-pos{padding-right:.5em}.dictShanbay-Sentence{margin:0;padding:0 0 0 1.5em}",""]),i.exports=a},691:function(i,a,t){var n=t(1354);i.exports="string"==typeof n?n:n.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[49],{1394:function(i,a,t){(a=t(226)(!1)).push([i.i,".dictShanbay-HeaderContainer{display:flex;align-items:center;flex-wrap:wrap}.dictShanbay-Title{font-size:1.5em;margin-right:8px}.dictShanbay-Pattern{margin-top:.5em}.dictShanbay-SecTitle{font-size:1.1em;margin-top:1em;border-bottom:1px solid rgba(199,110,6,.5)}.dictShanbay-Basic{margin:.5em 0}.dictShanbay-Basic .definition-pos{padding-right:.5em}.dictShanbay-Sentence{margin:0;padding:0 0 0 1.5em}",""]),i.exports=a},724:function(i,a,t){var n=t(1394);i.exports="string"==typeof n?n:n.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/49.d1dcd8d6.js b/plugins/saladict-ztools/ext-saladic/assets/49.d1dcd8d6.js deleted file mode 100644 index a67f3046..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/49.d1dcd8d6.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[49],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function l(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function s(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function s(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=l}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),s=u.firstChild?u.firstChild[t]:"";return r?r(s):s}function f(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),s=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x=y(/^(?:\w+script|data):/i),_=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function O(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var E=("undefined"!=typeof Reflect&&Reflect).apply,S=Array.prototype.slice,R=Object.freeze,L=function(){return"undefined"==typeof window?null:window};E||(E=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":w(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,N=a.document,k=a.DocumentFragment,D=a.HTMLTemplateElement,C=a.Node,H=a.NodeFilter,j=a.NamedNodeMap,z=void 0===j?a.NamedNodeMap||a.MozNamedAttrMap:j,F=a.Text,I=a.Comment,U=a.DOMParser,P=a.TrustedTypes;if("function"==typeof D){var W=N.createElement("template");W.content&&W.content.ownerDocument&&(N=W.content.ownerDocument)}var q=M(P,d),B=q?q.createHTML(""):"",G=N,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,X=G.createDocumentFragment,Z=d.importNode,$={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==N.documentMode;var J=g,Q=v,ee=b,te=T,ne=x,re=_,oe=A,ie=null,ae=m({},[].concat(O(t),O(n),O(r),O(o),O(i))),ce=null,ue=m({},[].concat(O(c),O(u),O(l),O(s))),le=null,se=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,Te=!1,Ae=!1,xe=!1,_e=!0,we=!0,Oe=!1,Ee={},Se=m({},["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"]),Re=m({},["audio","video","img","source","image"]),Le=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,ke=N.createElement("form"),De=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":w(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Le="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},se="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Ee="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,xe=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,_e=!1!==e.SANITIZE_DOM,we=!1!==e.KEEP_CONTENT,Oe=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Ee&&(ie=m({},[].concat(O(i))),ce=[],!0===Ee.html&&(m(ie,t),m(ce,c)),!0===Ee.svg&&(m(ie,n),m(ce,u),m(ce,s)),!0===Ee.svgFilters&&(m(ie,r),m(ce,u),m(ce,s)),!0===Ee.mathMl&&(m(ie,o),m(ce,l),m(ce,s))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Le,e.ADD_URI_SAFE_ATTR),we&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),R&&R(e),Ne=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},He=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},je=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new U).parseFromString(e,"text/html")}catch(e){}if(y&&m(le,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=q?q.createHTML(e):e}return e&&n&&t.body.insertBefore(N.createTextNode(n),t.body.childNodes[0]||null),Y.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{je('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=je("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return V.call(e.ownerDocument||e,e,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT,(function(){return H.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===C?"undefined":w(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":w(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ue=function(e,t,n){$[e]&&$[e].forEach((function(e){e.call(f,t,n,Ne)}))},Pe=function(e){var t=void 0;if(Ue("beforeSanitizeElements",e,null),Fe(e))return Ce(e),!0;var n=e.nodeName.toLowerCase();if(Ue("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[n]||le[n]){if(we&&!Se[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",q?q.createHTML(r):r)}catch(e){}return Ce(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ue("afterSanitizeElements",e,null),!1)},We=function(e,t,n){if(_e&&("id"===t||"name"===t)&&(n in N||n in ke))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||se[t])return!1;if(Le[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Re[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},qe=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;Ue("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],l=u.name,s=u.namespaceURI;if(n=t.value.trim(),r=l.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,Ue("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=E(S,a,[]),He("id",e),He(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!se[r]))continue;"id"===l&&e.setAttribute(l,""),He(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Se).join("|")+")","i").test(n))He(l,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(We(d,r,n))try{s?e.setAttributeNS(s,l,n):e.setAttribute(l,n),f.removed.pop()}catch(e){}}}Ue("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(Ue("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ue("uponSanitizeShadowNode",n,null),Pe(n)||(n.content instanceof k&&e(n.content),qe(n));Ue("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===w(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||De(t),f.removed=[],Oe);else if(e instanceof C)1===(r=(n=je("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ye&&xe&&-1===e.indexOf("<"))return q?q.createHTML(e):e;if(!(n=je(e)))return be?null:B}n&&ve&&Ce(n.firstChild);for(var u=ze(Oe?e:n);o=u.nextNode();)3===o.nodeType&&o===i||Pe(o)||(o.content instanceof k&&Be(o.content),qe(o),i=o);if(i=null,Oe)return e;if(be){if(Te)for(c=X.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Ae&&(c=Z.call(d,c,!0)),c}var l=ye?n.outerHTML:n.innerHTML;return he&&(l=(l=l.replace(J," ")).replace(Q," ")),q&&xe?q.createHTML(l):l},f.setConfig=function(e){De(e),ge=!0},f.clearConfig=function(){Ne=null,ge=!1},f.isValidAttribute=function(e,t,n){Ne||De({});var r=e.toLowerCase(),o=t.toLowerCase();return We(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&($[e]=$[e]||[],$[e].push(t))},f.removeHook=function(e){$[e]&&$[e].pop()},f.removeHooks=function(e){$[e]&&($[e]=[])},f.removeAllHooks=function(){$={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},848:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return a}));var r=n(61),o=n(5);const i=e=>"https://www.vocabulary.com/dictionary/"+e,a=(e,t,n,i)=>Object(r.a)("https://www.vocabulary.com/dictionary/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(c);function c(e){const t=Object(o.f)(e,".short");if(!t)return Object(o.h)();const n=Object(o.f)(e,".long");return n?{result:{long:n,short:t}}:Object(o.h)()}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/66.3b76dbcb.js b/plugins/saladict-ztools/ext-saladic/assets/50.70d5a499.js similarity index 92% rename from plugins/saladict-ztools/ext-saladic/assets/66.3b76dbcb.js rename to plugins/saladict-ztools/ext-saladic/assets/50.70d5a499.js index 00b374fd..119f821d 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/66.3b76dbcb.js +++ b/plugins/saladict-ztools/ext-saladic/assets/50.70d5a499.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[66],{1341:function(a,n,e){(n=e(221)(!1)).push([a.i,'.MachineTrans-Text .saladict-Speaker{position:absolute;left:0;top:2px;margin:0}.MachineTrans-Text summary{cursor:pointer}.MachineTrans-Lines{position:relative;margin:.5em 0;padding-left:1.5em}.MachineTrans-Lines p{margin:.3em 0}.MachineTrans-Lines-collapse{overflow:hidden;position:relative}.MachineTrans-Lines-collapse::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;background:linear-gradient(90deg,rgba(255,255,255,0) 50%,var(--color-background) 90%);pointer-events:none}.MachineTrans-Lines-collapse button{height:1.5em;padding:0;text-align:start;word-break:keep-all;white-space:nowrap;font-size:1em;font-weight:400;font-family:inherit;color:currentColor;cursor:pointer}.MachineTrans-lang-ar,.MachineTrans-lang-ara,.MachineTrans-lang-az,.MachineTrans-lang-fa,.MachineTrans-lang-he,.MachineTrans-lang-iw,.MachineTrans-lang-ku,.MachineTrans-lang-ug,.MachineTrans-lang-ur{direction:rtl!important}.MachineTrans-lang-ar.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ara.MachineTrans-Lines-collapse::after,.MachineTrans-lang-az.MachineTrans-Lines-collapse::after,.MachineTrans-lang-fa.MachineTrans-Lines-collapse::after,.MachineTrans-lang-he.MachineTrans-Lines-collapse::after,.MachineTrans-lang-iw.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ku.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ug.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ur.MachineTrans-Lines-collapse::after{background:linear-gradient(270deg,rgba(255,255,255,0) 50%,var(--color-background) 90%)}.MachineTrans-has-rtl{text-align:right}.MachineTrans-has-rtl .MachineTrans-Lines{padding-left:0;padding-right:1.5em}.MachineTrans-has-rtl .saladict-Speaker{left:auto;right:0}@font-face{font-family:"UKIJ Tuz Basma";src:url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff2) format("woff2"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff) format("woff"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.ttf) format("truetype"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.svg#UKIJTuzBasma-Bold) format("svg");font-style:normal}.MachineTrans-lang-ug{font-family:"UKIJ Tuz Basma"!important}',""]),a.exports=n},678:function(a,n,e){var r=e(1341);a.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[50],{1395:function(a,n,e){(n=e(226)(!1)).push([a.i,'.MachineTrans-Text .saladict-Speaker{position:absolute;left:0;top:2px;margin:0}.MachineTrans-Text summary{cursor:pointer}.MachineTrans-Lines{position:relative;margin:.5em 0;padding-left:1.5em}.MachineTrans-Lines p{margin:.3em 0}.MachineTrans-Lines-collapse{overflow:hidden;position:relative}.MachineTrans-Lines-collapse::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;background:linear-gradient(90deg,rgba(255,255,255,0) 50%,var(--color-background) 90%);pointer-events:none}.MachineTrans-Lines-collapse button{height:1.5em;padding:0;text-align:start;word-break:keep-all;white-space:nowrap;font-size:1em;font-weight:400;font-family:inherit;color:currentColor;cursor:pointer}.MachineTrans-lang-ar,.MachineTrans-lang-ara,.MachineTrans-lang-az,.MachineTrans-lang-fa,.MachineTrans-lang-he,.MachineTrans-lang-iw,.MachineTrans-lang-ku,.MachineTrans-lang-ug,.MachineTrans-lang-ur{direction:rtl!important}.MachineTrans-lang-ar.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ara.MachineTrans-Lines-collapse::after,.MachineTrans-lang-az.MachineTrans-Lines-collapse::after,.MachineTrans-lang-fa.MachineTrans-Lines-collapse::after,.MachineTrans-lang-he.MachineTrans-Lines-collapse::after,.MachineTrans-lang-iw.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ku.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ug.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ur.MachineTrans-Lines-collapse::after{background:linear-gradient(270deg,rgba(255,255,255,0) 50%,var(--color-background) 90%)}.MachineTrans-has-rtl{text-align:right}.MachineTrans-has-rtl .MachineTrans-Lines{padding-left:0;padding-right:1.5em}.MachineTrans-has-rtl .saladict-Speaker{left:auto;right:0}@font-face{font-family:"UKIJ Tuz Basma";src:url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff2) format("woff2"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff) format("woff"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.ttf) format("truetype"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.svg#UKIJTuzBasma-Bold) format("svg");font-style:normal}.MachineTrans-lang-ug{font-family:"UKIJ Tuz Basma"!important}',""]),a.exports=n},725:function(a,n,e){var r=e(1395);a.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/50.98f31e04.js b/plugins/saladict-ztools/ext-saladic/assets/50.98f31e04.js deleted file mode 100644 index aaf0f804..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/50.98f31e04.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[50],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function l(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function s(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function s(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=l}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),s=u.firstChild?u.firstChild[t]:"";return r?r(s):s}function f(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),s=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x=y(/^(?:\w+script|data):/i),w=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function _(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var E=("undefined"!=typeof Reflect&&Reflect).apply,S=Array.prototype.slice,L=Object.freeze,R=function(){return"undefined"==typeof window?null:window};E||(E=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":O(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,N=a.document,k=a.DocumentFragment,D=a.HTMLTemplateElement,j=a.Node,C=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,U=a.DOMParser,q=a.TrustedTypes;if("function"==typeof D){var P=N.createElement("template");P.content&&P.content.ownerDocument&&(N=P.content.ownerDocument)}var W=M(q,d),B=W?W.createHTML(""):"",G=N,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,X=G.createDocumentFragment,Z=d.importNode,$={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==N.documentMode;var J=g,Q=v,ee=b,te=T,ne=x,re=w,oe=A,ie=null,ae=m({},[].concat(_(t),_(n),_(r),_(o),_(i))),ce=null,ue=m({},[].concat(_(c),_(u),_(l),_(s))),le=null,se=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,Te=!1,Ae=!1,xe=!1,we=!0,Oe=!0,_e=!1,Ee={},Se=m({},["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"]),Le=m({},["audio","video","img","source","image"]),Re=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,ke=N.createElement("form"),De=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":O(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Re="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},se="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Ee="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,xe=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,we=!1!==e.SANITIZE_DOM,Oe=!1!==e.KEEP_CONTENT,_e=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Ee&&(ie=m({},[].concat(_(i))),ce=[],!0===Ee.html&&(m(ie,t),m(ce,c)),!0===Ee.svg&&(m(ie,n),m(ce,u),m(ce,s)),!0===Ee.svgFilters&&(m(ie,r),m(ce,u),m(ce,s)),!0===Ee.mathMl&&(m(ie,o),m(ce,l),m(ce,s))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Re,e.ADD_URI_SAFE_ATTR),Oe&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),L&&L(e),Ne=e)},je=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},Ce=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new U).parseFromString(e,"text/html")}catch(e){}if(y&&m(le,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(N.createTextNode(n),t.body.childNodes[0]||null),Y.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return V.call(e.ownerDocument||e,e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT,(function(){return C.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===j?"undefined":O(j))?e instanceof j:e&&"object"===(void 0===e?"undefined":O(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ue=function(e,t,n){$[e]&&$[e].forEach((function(e){e.call(f,t,n,Ne)}))},qe=function(e){var t=void 0;if(Ue("beforeSanitizeElements",e,null),Fe(e))return je(e),!0;var n=e.nodeName.toLowerCase();if(Ue("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return je(e),!0;if(!ie[n]||le[n]){if(Oe&&!Se[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return je(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(je(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ue("afterSanitizeElements",e,null),!1)},Pe=function(e,t,n){if(we&&("id"===t||"name"===t)&&(n in N||n in ke))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||se[t])return!1;if(Re[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Le[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;Ue("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],l=u.name,s=u.namespaceURI;if(n=t.value.trim(),r=l.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,Ue("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=E(S,a,[]),Ce("id",e),Ce(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!se[r]))continue;"id"===l&&e.setAttribute(l,""),Ce(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Se).join("|")+")","i").test(n))Ce(l,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Pe(d,r,n))try{s?e.setAttributeNS(s,l,n):e.setAttribute(l,n),f.removed.pop()}catch(e){}}}Ue("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(Ue("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ue("uponSanitizeShadowNode",n,null),qe(n)||(n.content instanceof k&&e(n.content),We(n));Ue("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===O(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||De(t),f.removed=[],_e);else if(e instanceof j)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ye&&xe&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return be?null:B}n&&ve&&je(n.firstChild);for(var u=ze(_e?e:n);o=u.nextNode();)3===o.nodeType&&o===i||qe(o)||(o.content instanceof k&&Be(o.content),We(o),i=o);if(i=null,_e)return e;if(be){if(Te)for(c=X.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Ae&&(c=Z.call(d,c,!0)),c}var l=ye?n.outerHTML:n.innerHTML;return he&&(l=(l=l.replace(J," ")).replace(Q," ")),W&&xe?W.createHTML(l):l},f.setConfig=function(e){De(e),ge=!0},f.clearConfig=function(){Ne=null,ge=!1},f.isValidAttribute=function(e,t,n){Ne||De({});var r=e.toLowerCase(),o=t.toLowerCase();return Pe(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&($[e]=$[e]||[],$[e].push(t))},f.removeHook=function(e){$[e]&&$[e].pop()},f.removeHooks=function(e){$[e]&&($[e]=[])},f.removeAllHooks=function(){$={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},849:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var r=n(61),o=n(5);const i=e=>"https://www.weblio.jp/content/"+e,a="https://www.weblio.jp",c=(e,t,n,i)=>Object(r.a)("https://www.weblio.jp/content/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(u);function u(e){const t=[],n=e.querySelectorAll("#cont>.pbarT .pbarTL>a");return e.querySelectorAll("#cont>.kijiWrp>.kiji").forEach((e,r)=>{const i=n[r];i&&"百科事典"!==i.title&&t.push({title:Object(o.e)(a,i,{config:{}}),def:Object(o.d)(a,e,{config:{}})})}),t.length<=0&&e.querySelectorAll(".section-card .basic-card").forEach(e=>{const n=Object(o.f)(e,".pbarT h2");n&&(Object(o.i)(e,".pbarT"),t.push({title:n,def:Object(o.d)(a,e,{config:{}})}))}),t.length>0?{result:t}:Object(o.h)()}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/51.1ffe9435.js b/plugins/saladict-ztools/ext-saladic/assets/51.1ffe9435.js deleted file mode 100644 index e1190247..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/51.1ffe9435.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[51],{116:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),o=r(30);function i(e,t){var r=Object(o.e)(o.a),i=Object(o.e)((function(){return e(r.current)}));return[Object(n.useRef)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(30),o=r(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object(o.useRef)(e);r.current=e;var i=Object(n.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=r.current[0],t=e.subscribe({next:function(t){if(e===r.current[0])return r.current[1]?r.current[1](t):void 0},error:function(t){if(e===r.current[0]){if(r.current[2])return c.current=null,r.current[2](t);c.current=t,i()}},complete:function(){if(e===r.current[0])return r.current[3]?r.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"a",(function(){return s})),r.d(t,"e",(function(){return u})),r.d(t,"d",(function(){return l}));var n=r(0),o=r(91),i=r(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function s(){return new o.a}function u(e){var t=Object(n.useRef)(!0),r=Object(n.useRef)(null);return t.current&&(t.current=!1,r.current=e()),r}function l(){var e=Object(n.useState)(0)[1];return Object(n.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect},5:function(e,t,r){"use strict";r.d(t,"h",(function(){return i})),r.d(t,"g",(function(){return a})),r.d(t,"b",(function(){return c})),r.d(t,"f",(function(){return s})),r.d(t,"d",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"i",(function(){return p})),r.d(t,"j",(function(){return m})),r.d(t,"a",(function(){return h})),r.d(t,"c",(function(){return y}));var n=r(507),o=r.n(n);r(0),r(116),r(182),r(10),r(371),r(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await r.e(109).then(r.bind(null,1321))).chsToChz:null}function s(e,...t){if(!e)return"";let r="",n=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?r=t[e]:"function"==typeof t[e]&&(n=t[e]);const o=r?e.querySelector(r):e;if(!o)return"";const i=o.textContent||"";return n?n(i):i}const u={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function l(e,{mode:t="innerHTML",selector:r,transform:n,host:i,config:a=u}={}){const c=r?e.querySelector(r):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const s=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),l=s.firstChild?s.firstChild[t]:"";return n?n(l):l}function f(e,t,r={}){return l(t,"string"==typeof r?{selector:r,host:e,mode:"innerHTML"}:{...r,host:e,mode:"innerHTML"})}function d(e,t,r={}){return l(t,"string"==typeof r?{selector:r,host:e,mode:"outerHTML"}:{...r,host:e,mode:"outerHTML"})}function p(e,t){const r=e.querySelector(t);r&&r.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,r){e.endsWith("/")&&(e=e.slice(0,-1));const n=e.startsWith("https")?"https:":"http:",o=t.getAttribute(r);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?n+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,r){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),r=e(["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"]),n=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),s=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),u=a(["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"]),l=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var r=t.length;r--;){var n=t[r];if("string"==typeof n){var o=n.toLowerCase();o!==n&&(Object.isFrozen(t)||(t[r]=o),n=o)}e[n]=!0}return e}function h(e){var t={},r=void 0;for(r in e)p(f,e,[r])&&(t[r]=e[r]);return t}p||(p=function(e,t,r){return e.apply(t,r)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x=y(/^(?:\w+script|data):/i),w=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function O(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var S=("undefined"!=typeof Reflect&&Reflect).apply,E=Array.prototype.slice,L=Object.freeze,R=function(){return"undefined"==typeof window?null:window};S||(S=function(e,t,r){return e.apply(t,r)});var M=function(e,t){if("object"!==(void 0===e?"undefined":_(e))||"function"!=typeof e.createPolicy)return null;var r=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=t.currentScript.getAttribute("data-tt-policy-suffix"));var n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,N=a.document,k=a.DocumentFragment,D=a.HTMLTemplateElement,C=a.Node,j=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,q=a.DOMParser,P=a.TrustedTypes;if("function"==typeof D){var U=N.createElement("template");U.content&&U.content.ownerDocument&&(N=U.content.ownerDocument)}var W=M(P,d),B=W?W.createHTML(""):"",G=N,$=G.implementation,K=G.createNodeIterator,V=G.getElementsByTagName,Y=G.createDocumentFragment,Z=d.importNode,X={};f.isSupported=$&&void 0!==$.createHTMLDocument&&9!==N.documentMode;var J=g,Q=v,ee=b,te=T,re=x,ne=w,oe=A,ie=null,ae=m({},[].concat(O(t),O(r),O(n),O(o),O(i))),ce=null,se=m({},[].concat(O(c),O(s),O(u),O(l))),ue=null,le=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,Te=!1,Ae=!1,xe=!1,we=!0,_e=!0,Oe=!1,Se={},Ee=m({},["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"]),Le=m({},["audio","video","img","source","image"]),Re=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,ke=N.createElement("form"),De=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":_(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):se,Re="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,ue="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},le="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Se="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,xe=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,we=!1!==e.SANITIZE_DOM,_e=!1!==e.KEEP_CONTENT,Oe=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Se&&(ie=m({},[].concat(O(i))),ce=[],!0===Se.html&&(m(ie,t),m(ce,c)),!0===Se.svg&&(m(ie,r),m(ce,s),m(ce,l)),!0===Se.svgFilters&&(m(ie,n),m(ce,s),m(ce,l)),!0===Se.mathMl&&(m(ie,o),m(ce,u),m(ce,l))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===se&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Re,e.ADD_URI_SAFE_ATTR),_e&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete ue.tbody),L&&L(e),Ne=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},je=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,r=void 0;if(ve)e="<remove></remove>"+e;else{var n=e.match(/^[\s]+/);(r=n&&n[0])&&(e=e.slice(r.length))}if(p)try{t=(new q).parseFromString(e,"text/html")}catch(e){}if(y&&m(ue,["title"]),!t||!t.documentElement){var o=(t=$.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&r&&t.body.insertBefore(N.createTextNode(r),t.body.childNodes[0]||null),V.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return K.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,(function(){return j.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===C?"undefined":_(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":_(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},qe=function(e,t,r){X[e]&&X[e].forEach((function(e){e.call(f,t,r,Ne)}))},Pe=function(e){var t=void 0;if(qe("beforeSanitizeElements",e,null),Fe(e))return Ce(e),!0;var r=e.nodeName.toLowerCase();if(qe("uponSanitizeElement",e,{tagName:r,allowedTags:ie}),("svg"===r||"math"===r)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[r]||ue[r]){if(_e&&!Ee[r]&&"function"==typeof e.insertAdjacentHTML)try{var n=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(n):n)}catch(e){}return Ce(e),!0}return"noscript"===r&&/<\/noscript/i.test(e.innerHTML)||"noembed"===r&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),qe("afterSanitizeElements",e,null),!1)},Ue=function(e,t,r){if(we&&("id"===t||"name"===t)&&(r in N||r in ke))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||le[t])return!1;if(Re[t]);else if(oe.test(r.replace(ne,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==r.indexOf("data:")||!Le[e])if(pe&&!re.test(r.replace(ne,"")));else if(r)return!1}return!0},We=function(e){var t=void 0,r=void 0,n=void 0,o=void 0,i=void 0;qe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var s=t=a[i],u=s.name,l=s.namespaceURI;if(r=t.value.trim(),n=u.toLowerCase(),c.attrName=n,c.attrValue=r,c.keepAttr=!0,qe("uponSanitizeAttribute",e,c),r=c.attrValue,"name"===n&&"IMG"===e.nodeName&&a.id)o=a.id,a=S(E,a,[]),je("id",e),je(u,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===n&&"file"===r&&c.keepAttr&&(ce[n]||!le[n]))continue;"id"===u&&e.setAttribute(u,""),je(u,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Ee).join("|")+")","i").test(r))je(u,e);else{he&&(r=(r=r.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Ue(d,n,r))try{l?e.setAttributeNS(l,u,r):e.setAttribute(u,r),f.removed.pop()}catch(e){}}}qe("afterSanitizeAttributes",e,null)}},Be=function e(t){var r=void 0,n=ze(t);for(qe("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)qe("uponSanitizeShadowNode",r,null),Pe(r)||(r.content instanceof k&&e(r.content),We(r));qe("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var r=void 0,n=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===_(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||De(t),f.removed=[],Oe);else if(e instanceof C)1===(n=(r=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?r=n:r.appendChild(n);else{if(!be&&!he&&!ye&&xe&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(r=He(e)))return be?null:B}r&&ve&&Ce(r.firstChild);for(var s=ze(Oe?e:r);o=s.nextNode();)3===o.nodeType&&o===i||Pe(o)||(o.content instanceof k&&Be(o.content),We(o),i=o);if(i=null,Oe)return e;if(be){if(Te)for(c=Y.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return Ae&&(c=Z.call(d,c,!0)),c}var u=ye?r.outerHTML:r.innerHTML;return he&&(u=(u=u.replace(J," ")).replace(Q," ")),W&&xe?W.createHTML(u):u},f.setConfig=function(e){De(e),ge=!0},f.clearConfig=function(){Ne=null,ge=!1},f.isValidAttribute=function(e,t,r){Ne||De({});var n=e.toLowerCase(),o=t.toLowerCase();return Ue(n,o,r)},f.addHook=function(e,t){"function"==typeof t&&(X[e]=X[e]||[],X[e].push(t))},f.removeHook=function(e){X[e]&&X[e].pop()},f.removeHooks=function(e){X[e]&&(X[e]=[])},f.removeAllHooks=function(){X={}},f}()}()},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));r(507);var n=r(131),o=r.n(n);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(3),o=r(7);function i(){}var a=r(45);function c(e,t,r){return function(n){return n.lift(new s(e,t,r))}}var s=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.nextOrObserver,this.error,this.complete))},e}(),u=function(e){function t(t,r,n,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=n||i,c._tapComplete=o||i,Object(a.a)(r)?(c._context=c,c._tapNext=r):r&&(c._context=r,c._tapNext=r.next||i,c._tapError=r.error||i,c._tapComplete=r.complete||i),c}return n.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},851:function(e,t,r){"use strict";r.r(t),r.d(t,"getSrcPage",(function(){return i})),r.d(t,"search",(function(){return c}));var n=r(61),o=r(5);const i=e=>"http://www.learnersdictionary.com/definition/"+e.trim().split(/\s+/).join("-"),a="http://www.learnersdictionary.com",c=(e,t,r,i)=>{const c=r.dicts.all.websterlearner.options;return Object(n.a)("http://www.learnersdictionary.com/definition/"+e.toLocaleLowerCase().replace(/[^A-Za-z0-9]+/g,"-")).catch(o.g).then(e=>function(e,t){const r=e.querySelector('[id^="spelling"] .links');if(!r)return function(e,t){e.querySelectorAll(".d_hidden").forEach(e=>e.remove());const r={type:"lex",items:[]},n={};if(e.querySelectorAll(".entry").forEach(e=>{const i={title:""},c=e.querySelector(".hw_d");if(!c)return;const s=c.querySelector(".play_pron");if(s){const e=(s.dataset.lang||"").replace("_","/"),t=s.dataset.dir||"",r=s.dataset.file||"";i.pron=`http://media.merriam-webster.com/audio/prons/${e}/mp3/${t}/${r}.mp3`,n.us=i.pron,s.remove()}i.title=Object(o.d)(a,c);const u=e.querySelector(".hw_infs_d");if(u){const e=u.querySelector(".play_pron");if(e){const t=(e.dataset.lang||"").replace("_","/"),r=e.dataset.dir||"",n=e.dataset.file||"";i.infsPron=`http://media.merriam-webster.com/audio/prons/${t}/mp3/${r}/${n}.mp3`,e.remove()}i.infs=Object(o.d)(a,u)}i.labels=Object(o.d)(a,e,".labels"),t.defs&&(i.senses=Object(o.d)(a,e,".sblocks")),t.phrase&&(i.phrases=Object(o.d)(a,e,".dros")),t.derived&&(i.derived=Object(o.d)(a,e,".uros")),t.arts&&(i.arts=Array.from(e.querySelectorAll(".arts img")).map(e=>e.src)),(i.senses||i.phrases||i.derived||i.arts&&i.arts.length>0)&&r.items.push(i)}),r.items.length>0)return{result:r,audio:n};return Object(o.h)()}(e,t);if(t.related)return{result:{type:"related",list:Object(o.d)(a,r)}};return Object(o.h)()}(e,c))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/51.95a0815e.js b/plugins/saladict-ztools/ext-saladic/assets/51.95a0815e.js new file mode 100644 index 00000000..d025f802 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/51.95a0815e.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[51],{1396:function(a,n,e){(n=e(226)(!1)).push([a.i,'.MachineTrans-Text .saladict-Speaker{position:absolute;left:0;top:2px;margin:0}.MachineTrans-Text summary{cursor:pointer}.MachineTrans-Lines{position:relative;margin:.5em 0;padding-left:1.5em}.MachineTrans-Lines p{margin:.3em 0}.MachineTrans-Lines-collapse{overflow:hidden;position:relative}.MachineTrans-Lines-collapse::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;background:linear-gradient(90deg,rgba(255,255,255,0) 50%,var(--color-background) 90%);pointer-events:none}.MachineTrans-Lines-collapse button{height:1.5em;padding:0;text-align:start;word-break:keep-all;white-space:nowrap;font-size:1em;font-weight:400;font-family:inherit;color:currentColor;cursor:pointer}.MachineTrans-lang-ar,.MachineTrans-lang-ara,.MachineTrans-lang-az,.MachineTrans-lang-fa,.MachineTrans-lang-he,.MachineTrans-lang-iw,.MachineTrans-lang-ku,.MachineTrans-lang-ug,.MachineTrans-lang-ur{direction:rtl!important}.MachineTrans-lang-ar.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ara.MachineTrans-Lines-collapse::after,.MachineTrans-lang-az.MachineTrans-Lines-collapse::after,.MachineTrans-lang-fa.MachineTrans-Lines-collapse::after,.MachineTrans-lang-he.MachineTrans-Lines-collapse::after,.MachineTrans-lang-iw.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ku.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ug.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ur.MachineTrans-Lines-collapse::after{background:linear-gradient(270deg,rgba(255,255,255,0) 50%,var(--color-background) 90%)}.MachineTrans-has-rtl{text-align:right}.MachineTrans-has-rtl .MachineTrans-Lines{padding-left:0;padding-right:1.5em}.MachineTrans-has-rtl .saladict-Speaker{left:auto;right:0}@font-face{font-family:"UKIJ Tuz Basma";src:url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff2) format("woff2"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff) format("woff"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.ttf) format("truetype"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.svg#UKIJTuzBasma-Bold) format("svg");font-style:normal}.MachineTrans-lang-ug{font-family:"UKIJ Tuz Basma"!important}',""]),a.exports=n},726:function(a,n,e){var r=e(1396);a.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/82.a5e5819a.js b/plugins/saladict-ztools/ext-saladic/assets/52.2f401b35.js similarity index 78% rename from plugins/saladict-ztools/ext-saladic/assets/82.a5e5819a.js rename to plugins/saladict-ztools/ext-saladic/assets/52.2f401b35.js index 7efb1b8d..950994b5 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/82.a5e5819a.js +++ b/plugins/saladict-ztools/ext-saladic/assets/52.2f401b35.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[82],{1357:function(i,t,r){(t=r(221)(!1)).push([i.i,".dictUrban-Title{font-size:1.2em}.dictUrban-Item{margin-bottom:10px}.dictUrban-Meaning{margin:0 0 8px 0}.dictUrban-Example{margin:0 0 8px .5em;padding-left:5px;color:var(--color-font-grey);border-left:1px solid #666}.dictUrban-Gif{text-align:center}.dictUrban-Gif>img{max-width:80%;max-height:200px}.dictUrban-TagItem{margin-right:.5em;text-decoration:none;color:#16a085}.dictUrban-Footer{color:var(--color-font-grey)}.dictUrban-Contributor{margin-right:1em}.dictUrban-Thumbs{margin-right:5px}.dictUrban-IconThumbsUp{width:.9em;height:.9em;fill:#666;margin-right:2px}.dictUrban-IconThumbsDown{width:.95em;height:.95em;fill:#666;vertical-align:middle;margin-right:2px}",""]),i.exports=t},694:function(i,t,r){var n=r(1357);i.exports="string"==typeof n?n:n.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[52],{1397:function(i,t,r){(t=r(226)(!1)).push([i.i,".dictUrban-Title{font-size:1.2em}.dictUrban-Item{margin-bottom:10px}.dictUrban-Meaning{margin:0 0 8px 0}.dictUrban-Example{margin:0 0 8px .5em;padding-left:5px;color:var(--color-font-grey);border-left:1px solid #666}.dictUrban-Gif{text-align:center}.dictUrban-Gif>img{max-width:80%;max-height:200px}.dictUrban-TagItem{margin-right:.5em;text-decoration:none;color:#16a085}.dictUrban-Footer{color:var(--color-font-grey)}.dictUrban-Contributor{margin-right:1em}.dictUrban-Thumbs{margin-right:5px}.dictUrban-IconThumbsUp{width:.9em;height:.9em;fill:#666;margin-right:2px}.dictUrban-IconThumbsDown{width:.95em;height:.95em;fill:#666;vertical-align:middle;margin-right:2px}",""]),i.exports=t},727:function(i,t,r){var n=r(1397);i.exports="string"==typeof n?n:n.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/52.81638011.js b/plugins/saladict-ztools/ext-saladic/assets/52.81638011.js deleted file mode 100644 index 97fb707a..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/52.81638011.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[52],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function l(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function s(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return g}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function s(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=l}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",g(i,e,"href")),e.setAttribute("src",g(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),s=u.firstChild?u.firstChild[t]:"";return r?r(s):s}function f(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function g(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),s=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var g=Object.seal||function(e){return e},y=g(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=g(/<%[\s\S]*|[\s\S]*%>/gm),b=g(/^data-[\-\w.\u00B7-\uFFFF]/),T=g(/^aria-[\-\w]+$/),A=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x=g(/^(?:\w+script|data):/i),w=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function _(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var S=("undefined"!=typeof Reflect&&Reflect).apply,E=Array.prototype.slice,L=Object.freeze,R=function(){return"undefined"==typeof window?null:window};S||(S=function(e,t,n){return e.apply(t,n)});var k=function(e,t){if("object"!==(void 0===e?"undefined":O(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,g=!1,M=a.document,N=a.DocumentFragment,C=a.HTMLTemplateElement,D=a.Node,j=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,q=a.DOMParser,U=a.TrustedTypes;if("function"==typeof C){var W=M.createElement("template");W.content&&W.content.ownerDocument&&(M=W.content.ownerDocument)}var P=k(U,d),B=P?P.createHTML(""):"",G=M,$=G.implementation,K=G.createNodeIterator,V=G.getElementsByTagName,Y=G.createDocumentFragment,X=d.importNode,Z={};f.isSupported=$&&void 0!==$.createHTMLDocument&&9!==M.documentMode;var J=y,Q=v,ee=b,te=T,ne=x,re=w,oe=A,ie=null,ae=m({},[].concat(_(t),_(n),_(r),_(o),_(i))),ce=null,ue=m({},[].concat(_(c),_(u),_(l),_(s))),le=null,se=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ge=!1,ye=!1,ve=!1,be=!1,Te=!1,Ae=!1,xe=!1,we=!0,Oe=!0,_e=!1,Se={},Ee=m({},["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"]),Le=m({},["audio","video","img","source","image"]),Re=null,ke=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Me=null,Ne=M.createElement("form"),Ce=function(e){Me&&Me===e||(e&&"object"===(void 0===e?"undefined":O(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Re="ADD_URI_SAFE_ATTR"in e?m(h(ke),e.ADD_URI_SAFE_ATTR):ke,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},se="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Se="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ge=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,xe=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,we=!1!==e.SANITIZE_DOM,Oe=!1!==e.KEEP_CONTENT,_e=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Se&&(ie=m({},[].concat(_(i))),ce=[],!0===Se.html&&(m(ie,t),m(ce,c)),!0===Se.svg&&(m(ie,n),m(ce,u),m(ce,s)),!0===Se.svgFilters&&(m(ie,r),m(ce,u),m(ce,s)),!0===Se.mathMl&&(m(ie,o),m(ce,l),m(ce,s))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Re,e.ADD_URI_SAFE_ATTR),Oe&&(ie["#text"]=!0),ge&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),L&&L(e),Me=e)},De=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},je=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new q).parseFromString(e,"text/html")}catch(e){}if(g&&m(le,["title"]),!t||!t.documentElement){var o=(t=$.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=P?P.createHTML(e):e}return e&&n&&t.body.insertBefore(M.createTextNode(n),t.body.childNodes[0]||null),V.call(t,ge?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(g=!0)}catch(e){}}());var ze=function(e){return K.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,(function(){return j.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===D?"undefined":O(D))?e instanceof D:e&&"object"===(void 0===e?"undefined":O(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},qe=function(e,t,n){Z[e]&&Z[e].forEach((function(e){e.call(f,t,n,Me)}))},Ue=function(e){var t=void 0;if(qe("beforeSanitizeElements",e,null),Fe(e))return De(e),!0;var n=e.nodeName.toLowerCase();if(qe("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return De(e),!0;if(!ie[n]||le[n]){if(Oe&&!Ee[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",P?P.createHTML(r):r)}catch(e){}return De(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(De(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),qe("afterSanitizeElements",e,null),!1)},We=function(e,t,n){if(we&&("id"===t||"name"===t)&&(n in M||n in Ne))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||se[t])return!1;if(Re[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Le[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},Pe=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;qe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],l=u.name,s=u.namespaceURI;if(n=t.value.trim(),r=l.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,qe("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=S(E,a,[]),je("id",e),je(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!se[r]))continue;"id"===l&&e.setAttribute(l,""),je(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Ee).join("|")+")","i").test(n))je(l,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(We(d,r,n))try{s?e.setAttributeNS(s,l,n):e.setAttribute(l,n),f.removed.pop()}catch(e){}}}qe("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(qe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)qe("uponSanitizeShadowNode",n,null),Ue(n)||(n.content instanceof N&&e(n.content),Pe(n));qe("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===O(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ye||Ce(t),f.removed=[],_e);else if(e instanceof D)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ge&&xe&&-1===e.indexOf("<"))return P?P.createHTML(e):e;if(!(n=He(e)))return be?null:B}n&&ve&&De(n.firstChild);for(var u=ze(_e?e:n);o=u.nextNode();)3===o.nodeType&&o===i||Ue(o)||(o.content instanceof N&&Be(o.content),Pe(o),i=o);if(i=null,_e)return e;if(be){if(Te)for(c=Y.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Ae&&(c=X.call(d,c,!0)),c}var l=ge?n.outerHTML:n.innerHTML;return he&&(l=(l=l.replace(J," ")).replace(Q," ")),P&&xe?P.createHTML(l):l},f.setConfig=function(e){Ce(e),ye=!0},f.clearConfig=function(){Me=null,ye=!1},f.isValidAttribute=function(e,t,n){Me||Ce({});var r=e.toLowerCase(),o=t.toLowerCase();return We(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},852:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return a})),n.d(t,"search",(function(){return c})),n.d(t,"fetchLangList",(function(){return u}));var r=n(61),o=n(24),i=n(5);const a=(e,t,n)=>{const{lang:r}=n.dicts.all.wikipedia.options;return`https://${l(e,r)}.wikipedia.org/${r.startsWith("zh-")?r:"wiki"}/${encodeURIComponent(e)}`},c=(e,t,n,o)=>{const{lang:a}=n.dicts.all.wikipedia.options;let c=l(e,a),u=o.url;if(u){const e=u.match(/([^/.]+)\.m\.wikipedia\.org/);e?c=e[1]:u=u.replace(/^\//,`https://${c}.m.wikipedia.org/`)}else{const t=a.startsWith("zh-")?a:"wiki";u=`https://${c}.m.wikipedia.org/${t}/${encodeURIComponent(e)}`}return Object(r.a)(u).catch(i.g).then(e=>function(e,t){if([...e.querySelectorAll("#mf-section-0 b")].some(e=>{const t=e.textContent;return"The article that you're looking for doesn't exist."===t||"维基百科目前还没有与上述标题相同的条目。"===t}))return Object(i.h)();const n=Object(i.f)(e,"#section_0");if(!n)return Object(i.h)();e.querySelectorAll("#bodyContent .section-heading").forEach(e=>{e.classList.add("collapsible-heading");const t=e.querySelector(".mw-ui-icon");t&&(t.classList.add("mw-ui-icon-mf-arrow"),t.classList.remove("mf-mw-ui-icon-rotate-flip"))});const r=Object(i.e)(`https://${t}.wikipedia.org/`,e,{selector:"#bodyContent",config:{}});if(!r)return Object(i.h)();let o="",a=e.querySelector("a.language-selector");a||(a=e.querySelector(".language-selector a"));a&&(o=Object(i.c)(`https://${t}.m.wikipedia.org/`,a,"href"));return{result:{title:n,content:r,langSelector:o}}}(e,c))};function u(e){return Object(r.a)(e).then(s).catch(e=>(console.error("dict wikipedia: fetch langlist failed",e),[]))}function l(e,t){return t.startsWith("zh-")?"zh":"auto"===t?Object(o.g)(e)?"ja":Object(o.c)(e)?"zh":"en":t}function s(e){return[...e.querySelectorAll("#mw-content-text li a")].map(e=>{const t=e.getAttribute("href"),n=e.getAttribute("title");if(t&&n)return{url:t,title:n}}).filter(e=>!!e)}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/53.6792ca26.js b/plugins/saladict-ztools/ext-saladic/assets/53.6792ca26.js deleted file mode 100644 index 871d69f4..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/53.6792ca26.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[53],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function s(){return new o.a}function l(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function u(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function s(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function u(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=l}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const s=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),u=s.firstChild?s.firstChild[t]:"";return r?r(u):u}function f(e,t,n={}){return u(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return u(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),s=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),u=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),x=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),A=y(/^(?:\w+script|data):/i),O=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function S(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var _=("undefined"!=typeof Reflect&&Reflect).apply,E=Array.prototype.slice,L=Object.freeze,R=function(){return"undefined"==typeof window?null:window};_||(_=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":w(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,N=a.document,k=a.DocumentFragment,C=a.HTMLTemplateElement,j=a.Node,D=a.NodeFilter,H=a.NamedNodeMap,F=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,z=a.Text,I=a.Comment,q=a.DOMParser,U=a.TrustedTypes;if("function"==typeof C){var P=N.createElement("template");P.content&&P.content.ownerDocument&&(N=P.content.ownerDocument)}var W=M(U,d),B=W?W.createHTML(""):"",G=N,K=G.implementation,V=G.createNodeIterator,Y=G.getElementsByTagName,$=G.createDocumentFragment,X=d.importNode,Z={};f.isSupported=K&&void 0!==K.createHTMLDocument&&9!==N.documentMode;var J=g,Q=v,ee=b,te=T,ne=A,re=O,oe=x,ie=null,ae=m({},[].concat(S(t),S(n),S(r),S(o),S(i))),ce=null,se=m({},[].concat(S(c),S(s),S(l),S(u))),le=null,ue=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,Te=!1,xe=!1,Ae=!1,Oe=!0,we=!0,Se=!1,_e={},Ee=m({},["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"]),Le=m({},["audio","video","img","source","image"]),Re=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,ke=N.createElement("form"),Ce=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":w(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):se,Re="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},ue="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},_e="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,xe=e.RETURN_DOM_IMPORT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,Oe=!1!==e.SANITIZE_DOM,we=!1!==e.KEEP_CONTENT,Se=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),_e&&(ie=m({},[].concat(S(i))),ce=[],!0===_e.html&&(m(ie,t),m(ce,c)),!0===_e.svg&&(m(ie,n),m(ce,s),m(ce,u)),!0===_e.svgFilters&&(m(ie,r),m(ce,s),m(ce,u)),!0===_e.mathMl&&(m(ie,o),m(ce,l),m(ce,u))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===se&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Re,e.ADD_URI_SAFE_ATTR),we&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),L&&L(e),Ne=e)},je=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},De=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new q).parseFromString(e,"text/html")}catch(e){}if(y&&m(le,["title"]),!t||!t.documentElement){var o=(t=K.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=W?W.createHTML(e):e}return e&&n&&t.body.insertBefore(N.createTextNode(n),t.body.childNodes[0]||null),Y.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var Fe=function(e){return V.call(e.ownerDocument||e,e,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,(function(){return D.FILTER_ACCEPT}),!1)},ze=function(e){return!(e instanceof z||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof F&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===j?"undefined":w(j))?e instanceof j:e&&"object"===(void 0===e?"undefined":w(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},qe=function(e,t,n){Z[e]&&Z[e].forEach((function(e){e.call(f,t,n,Ne)}))},Ue=function(e){var t=void 0;if(qe("beforeSanitizeElements",e,null),ze(e))return je(e),!0;var n=e.nodeName.toLowerCase();if(qe("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return je(e),!0;if(!ie[n]||le[n]){if(we&&!Ee[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",W?W.createHTML(r):r)}catch(e){}return je(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(je(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),qe("afterSanitizeElements",e,null),!1)},Pe=function(e,t,n){if(Oe&&("id"===t||"name"===t)&&(n in N||n in ke))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||ue[t])return!1;if(Re[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Le[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},We=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;qe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var s=t=a[i],l=s.name,u=s.namespaceURI;if(n=t.value.trim(),r=l.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,qe("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=_(E,a,[]),De("id",e),De(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!ue[r]))continue;"id"===l&&e.setAttribute(l,""),De(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Ee).join("|")+")","i").test(n))De(l,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(Pe(d,r,n))try{u?e.setAttributeNS(u,l,n):e.setAttribute(l,n),f.removed.pop()}catch(e){}}}qe("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=Fe(t);for(qe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)qe("uponSanitizeShadowNode",n,null),Ue(n)||(n.content instanceof k&&e(n.content),We(n));qe("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===w(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||Ce(t),f.removed=[],Se);else if(e instanceof j)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ye&&Ae&&-1===e.indexOf("<"))return W?W.createHTML(e):e;if(!(n=He(e)))return be?null:B}n&&ve&&je(n.firstChild);for(var s=Fe(Se?e:n);o=s.nextNode();)3===o.nodeType&&o===i||Ue(o)||(o.content instanceof k&&Be(o.content),We(o),i=o);if(i=null,Se)return e;if(be){if(Te)for(c=$.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return xe&&(c=X.call(d,c,!0)),c}var l=ye?n.outerHTML:n.innerHTML;return he&&(l=(l=l.replace(J," ")).replace(Q," ")),W&&Ae?W.createHTML(l):l},f.setConfig=function(e){Ce(e),ge=!0},f.clearConfig=function(){Ne=null,ge=!1},f.isValidAttribute=function(e,t,n){Ne||Ce({});var r=e.toLowerCase(),o=t.toLowerCase();return Pe(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n(507);var r=n(131),o=n.n(r);function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function a(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new s(e,t,n))}}var s=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},853:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var r=n(61),o=n(5);const i=e=>"https://dict.youdao.com/w/"+encodeURIComponent(e.replace(/\s+/g," ")),a="http://www.youdao.com",c=async(e,t,n,i)=>{const c=n.dicts.all.youdao.options,s=await Object(o.b)(t.langCode);return Object(r.a)("https://dict.youdao.com/w/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(e=>function(e,t,n){const r=e.querySelector(".error-typo");if(!r)return function(e,t,n){const r={type:"lex",title:Object(o.f)(e,".keyword",n),stars:0,rank:Object(o.f)(e,".rank"),pattern:Object(o.f)(e,".pattern",n),prons:[],collins:[]},i={},c=e.querySelector(".star");c&&(r.stars=Number((c.className.match(/\d+/)||[0])[0]));e.querySelectorAll(".baav .pronounce").forEach(e=>{const t=e.textContent||"",n=e.querySelector(".dictvoice");if(n&&n.dataset.rel){const e="https://dict.youdao.com/dictvoice?audio="+n.dataset.rel;r.prons.push({phsym:t,url:e}),t.includes("英")?i.uk=e:t.includes("美")&&(i.us=e)}}),t.basic&&(r.basic=Object(o.d)(a,e,{selector:"#phrsListTab .trans-container",transform:n}));t.collins&&e.querySelectorAll("#collinsResult .wt-container").forEach(e=>{const t={title:"",content:""},i=e.querySelector(":scope > .title.trans-tip");i&&(Object(o.i)(i,".do-detail"),t.title=Object(o.f)(i),i.remove());const c=e.querySelector(".star");if(c){const e=/star(\d+)/.exec(String(c.className));if(e){const t=+e[1];let n="";for(let e=0;e<5;e++)n+=`<svg\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 426.67 426.67"\n width="1em"\n height="1em"\n style="${4===e?"":"margin-right: 1px"}"\n >\n <path\n fill=${e<t?"#FAC917":"#d1d8de"}\n d="M213.33 10.44l65.92 133.58 147.42 21.42L320 269.4l25.17 146.83-131.84-69.32-131.85 69.34 25.2-146.82L0 165.45l147.4-21.42"\n />\n </svg>`;c.innerHTML=n}}t.content=Object(o.d)(a,e,{transform:n}),t.content&&r.collins.push(t)});t.discrimination&&(r.discrimination=Object(o.d)(a,e,{selector:"#discriminate",transform:n}));t.sentence&&(r.sentence=Object(o.d)(a,e,{selector:"#authority .ol",transform:n}));t.translation&&(r.translation=Object(o.d)(a,e,{selector:"#fanyiToggle .trans-container",transform:n}));if(r.title||r.translation)return{result:r,audio:i};return Object(o.h)()}(e,t,n);if(t.related)return{result:{type:"related",list:Object(o.d)(a,r,{transform:n})}};return Object(o.h)()}(e,c,s))}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/53.8c72c393.js b/plugins/saladict-ztools/ext-saladic/assets/53.8c72c393.js new file mode 100644 index 00000000..26a46ca0 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/53.8c72c393.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[53],{1398:function(t,i,n){(i=n(226)(!1)).push([t.i,".dictVocabulary-Long{padding-left:5px;border-left:1px solid #666}",""]),t.exports=i},728:function(t,i,n){var o=n(1398);t.exports="string"==typeof o?o:o.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/84.40be7311.js b/plugins/saladict-ztools/ext-saladic/assets/54.3b65a080.js similarity index 99% rename from plugins/saladict-ztools/ext-saladic/assets/84.40be7311.js rename to plugins/saladict-ztools/ext-saladic/assets/54.3b65a080.js index 2eff0597..0ce30351 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/84.40be7311.js +++ b/plugins/saladict-ztools/ext-saladic/assets/54.3b65a080.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[84],{1359:function(t,e,o){(e=o(221)(!1)).push([t.i,'button,h1,h2,h3,h4,li,ul{margin:0;padding:0}img{display:block;max-width:95%}p{margin:.5em 0}ul li{list-style-type:none}button{background:0 0;border:none}button:hover{outline:0}a{color:#f9690e;text-decoration:none}a:hover{text-decoration:underline}select{color:#666;border:1px solid rgba(133,133,133,.28);background:0 0}.entryBox-Wrap{padding-top:.8em}.entryBox{position:relative;border:1px solid #c76e06;border-radius:5px;margin-bottom:1em;padding:1em .5em .5em .5em}.entryBox-Title{position:absolute;top:0;left:1em;transform:translateY(-50%);max-width:90%;overflow:hidden;padding:0 5px;white-space:nowrap;text-overflow:ellipsis;font-size:1.2em;background:var(--color-background)}.dictWeblio-Entry>.entryBox{position:relative}.dictWeblio-Entry>.entryBox::after{content:"";display:table;clear:both}.Wpppl table{border-collapse:collapse;float:left;margin:10px 0 10px 0;padding:10px 0 10px 0;width:100%}.Wpmov table{width:100%;padding:10px 0 10px 0;margin:10px 0 10px 0;border-collapse:collapse}table.Wpmov tr.WpmovW td{padding-left:20px}table.Wpmov tr.WpmovW td{padding-left:20px}.Jmayh dl{margin:0}.Jmayh .data{background-color:#9ba8ca;border-collapse:collapse;border-spacing:-2px}.Jmayh .data th{background-color:#556ca5;border:#9ba8ca solid 2px;color:#fff;font-weight:400;padding:6px}.Jmayh .data td{background-color:#fff;border:#9ba8ca solid 2px;padding:6px}.Fkkck div{padding-top:5px}h2.midashigo sub{font-size:smaller}.Ktiau table td{padding:5px}.Ktiau table{border:currentColor solid 1px;border-collapse:collapse}.Ktiau td{border:currentColor solid 1px}.Ktiau th{border:currentColor solid 1px;text-align:left}.Ktiau tr{border:currentColor solid 1px}.Ktsbm table{border:currentColor solid 1px;border-collapse:collapse;width:600px}.Ktsbm table td{border:currentColor solid 1px;padding-left:7px;text-align:left}.Ktsbm table th{border:currentColor solid 1px;font-weight:400;padding-right:7px;text-align:left}.Ktsbm table .head{background:#f2f2f2;font-weight:700}.Ktsbm .ktsbmC{font-size:.9em;width:600px}.Ktsbm .ktsbmImg{margin:0 auto;width:400px}.Ktsbm .KtsbmImgL{float:left}.Ktsbm .KtsbmImgR{float:right}.Ktsbm .ktsbmI{margin:0 auto;width:600px}.Ktsbm .ktsbmI ul{list-style:none}.Ktsbm .ktsbmI ul li{float:left;text-align:center;width:120px}.Ktdcm br .CF{clear:both}.Ktdcm .KtdcmImg{text-align:center}.Ktdcm .KtdcmImgLeft{float:left;width:48%}.Ktdcm .KtdcmImgRight{float:right;width:48%}.Ktdcm .KtdcmImage0{margin:0 0 15px 0;text-align:center}.Ktdcm .KtdcmImage1{margin:0 0 15px 0;text-align:center}.Ktdcm table.border td{padding:5px}.Ktdcm .bgwhite{background:#fff}.Ktdcm .brownDark{background:#f0c200}.Ktdcm .brownNormal{background:#ead88c}.Ktdcm .brownLight{background:#f5edc6}.Ktdcm .grayDark{background:#cfcfcf}.Ktdcm .grayNormal{background:#e5e5e5}.Ktdcm .grayLight{background:#f2f2f2}.Ktdcm ul.notice,.Ktdcm ul.notice li,.Ktdcm ul.notice ul{list-style-type:none;margin:0;padding:0}.Ktdcm img{border:none}.Ktdcm img.border{border:#ccc solid 1px}.Ktdcm .notice img.icon{margin-left:0}.Ktdcm img.icon{margin:0 5px;vertical-align:middle}.Ktdcm .maincol{margin-left:15px;text-align:left}.Ktdcm li.non{list-style-type:none;padding-left:0}.Ktdcm li.full{width:100%}.Ktdcm ul.fright li.full{text-align:right}.Ktdcm .maincol .boxArea{margin-bottom:16px;padding-top:7px}.Ktdcm .maincol .boxArea .wrap{padding-bottom:8px}.Ktdcm .maincol .boxArea .section{padding:0 7px}.Ktdcm table.cellpt01{border-bottom:#999 solid 1px;border-right:#999 solid 1px;margin-bottom:8px}.Ktdcm table.cellpt01 td{border-left:#999 solid 1px;border-top:#999 solid 1px;padding:3px 3px}.Ktdcm table.cellpt01 td.theader{padding:5px}.Ktdcm table.cellpt02{border-bottom:#a1a1a1 solid 1px;margin-bottom:8px}.Ktdcm table.cellpt02 td{border-top:#a1a1a1 solid 1px;padding:3px 5px}.Ktdcm table.layout td{vertical-align:top}.Ktdcm table.cell2{width:560px}.Ktdcm table.cell2 .right{padding-left:16px}.Ktdcm table.cell2 .section{width:272px}.Ktdcm table.cell2 table{width:263px}.Ktdcm table.cell2 table .section{width:147px}.Ktdcm ul.notice li{margin-bottom:5px;padding-left:16px;text-indent:-12px}.Sngsj .gaiji{height:1em;vertical-align:text-bottom;width:1em}.Sngsj td.kana{color:var(--color-font-grey);font-size:90%}.Sngsj td.status{color:var(--color-font-grey)}.Sngsj td.body{line-height:1.3em;padding-bottom:10px;padding-top:20px}.Sngsj p.notice{color:#333080;font-size:95%;padding:10px 20px 10px 30px}.Otnet .OtnetBGImgDiv{background-repeat:no-repeat}.Otnet .OtnetRed{border-bottom:#ccc solid 1px;border-left:red solid 10px;border-right:#ccc solid 0;margin:12px;padding:1px 5px}.Otnet .OtnetBlue{border-bottom:#ccc solid 1px;border-left:#00f solid 10px;border-right:#ccc solid 0;margin:12px;padding:1px 5px}.Fkkyr div.box-photo{float:left;width:380px}.Fkkyr dl.data1{float:left;width:250px}.Fkkyr br.cr{clear:both}.Fkkyr div.box-model{float:left;width:380px}.Fkkyr .box-data{float:left}.Fkkyr dl.data2{width:250px}.Fkkyr #sitemap{clear:both}.Fkkyr .left_column{padding:15px 0 0 0}.Shkli{font-size:12px;border-collapse:collapse;margin:0 0 20px 0;width:100%}.Shkli td{border:1px solid #696969;text-align:center}.Shkli tr.ShkliHV td{font-size:12px;background-color:#d9d9f3;font-family:"MS ゴシック";text-align:center;padding:3px 3px 0 3px;height:100px;vertical-align:top}.Shkli tr.ShkliHV td.ShkliHL{text-align:left;vertical-align:middle;background-color:#fff}.Sunos table{line-height:1.5}div.Zndzk{width:100%}.Otnee{text-align:center}.Otnee table{line-height:1.5}.Chgth{text-align:center;padding-top:10px;padding-bottom:20px}.Chgth table{margin:0 auto}.Ednpl{padding-top:10px;padding-bottom:20px}.Ednyr{padding-top:10px;padding-bottom:20px}.Dowcp table{border-collapse:collapse}.Dowcp td{border-bottom:1px #cdcdcd dotted;padding:5px}.Fjshi{border-collapse:collapse;width:95%}.Fjshi td{border-style:dashed;border-width:0 0 1px 0;border-color:#cdcdcd;padding:8px 0 8px 0}.Sunco table{width:95%}.Sunco td.white_txt{width:100%}.Ysztk{border-collapse:collapse}.Ysztk td{padding:0 0 5px 0}.Ysztk table{border-collapse:collapse}.Ysztk table td{padding:0}.Suncy{padding:10px 5px 20px 0}.Chkgc table table table{border-collapse:collapse;border:1px currentColor solid}.Chkgc table table table td{padding:5px;border:1px currentColor solid}.Grnry .grnryInfo{background-color:#f5f5f5;border:gray solid 1px;margin-top:20px;padding:10px}.Smkbj{border-collapse:collapse;border:1px #696969 solid;width:90%}.Smkbj td{border:1px #696969 solid;padding:3px}h2.midashigo sub{font-size:smaller}h2.midashigo sub{font-size:smaller}h2.midashigo sub{font-size:smaller}.Glfyg div{padding:0 0 15px 15px}.Glfyg img{float:right;vertical-align:top}.Glfyg img.GlfygIc{float:none;vertical-align:baseline}.Uodbj{border-collapse:collapse;border:1px #696969 solid;width:90%}.Uodbj td{border:1px #696969 solid;padding:5px}.Mjkbr{border-collapse:collapse;border:1px #696969 solid}.Mjkbr td{border:1px #696969 solid;padding:5px}.Damjt .damjtInfo{background-color:#f5f5f5;border:gray solid 1px;margin-top:20px;padding:10px}.Shkgz .ShkgzBT{display:block}.Shkgz .ShkgzBB{display:block;margin-top:1.1em}.Knkyy sub{font-size:smaller}.Skiis td{vertical-align:top}.Skiis .skiisP{margin-left:13px}.hkdhj div{padding-top:5px}.hkdhj div b{color:#f30}.Tkmhg{border-collapse:collapse;width:90%}.Tkmhg td{border:1px #696969 solid;padding:3px}td.midashigo{color:#4f519b;font-weight:700;padding:10px 5px 30px 2px}.Kmkrz table{border-collapse:collapse;border-color:currentColor;border-width:1px;border-style:solid;margin:0 auto}.Kmkrz table td{border-color:currentColor;border-width:1px;border-style:solid;padding:5px}.Kmkrz .img-shrink{width:100%}.Tkzkn table td{padding:8px}.Tkzkn table table{border-width:0}.Dkijt .path{font-size:.75em;color:#555;text-align:left;margin-left:0;margin-right:auto;margin-bottom:0}.Dkijt .path-a{font-size:.75em;color:#555;text-align:left;margin-left:auto;margin-right:auto;margin-bottom:0}.Dkijt .sp{width:7em}.Dkijt p.head{text-align:left;margin:0;font-size:.625em;font-family:verdana;font-weight:700;color:#5e8eab;background-color:#f5f5f5;padding-bottom:5px;padding-top:5px;padding-left:1em;width:768px;border-bottom:solid 4px #c5e1ed}.Dkijt p.head img{margin-right:1em;vertical-align:middle;border:0}.Dkijt .kao_pic{float:right;margin-left:1em;font-size:.85em;color:#5e8eab;width:150px;text-align:center;line-height:1em;margin-top:-10px}.Dkijt .pict_r{float:left;margin-left:0;margin-right:1em;font-size:.85em;color:#5e8eab;width:150px;text-align:center;line-height:1em}.Dkijt .pict_r_s{float:left;margin-left:0;margin-right:1em;font-size:.85em;color:#5e8eab;width:100px;text-align:center;line-height:1em}.Dkijt .pict_c{text-align:center;margin-top:.2em;margin-bottom:.2em;font-size:.9em;color:#5e8eab;line-height:1em}.Dkijt h2{font-size:1em;text-align:left;border-left:solid 18px #5e8eab;padding-left:1em;margin-bottom:1em;margin-left:.5em}.Dkijt h3{font-size:1em;text-align:left;border-left:solid 18px #5e8eab;padding-left:1em;margin-top:1.5em;margin-bottom:1em;margin-left:.5em}.Dkijt .mae{margin-bottom:1em;margin-left:2em;margin-right:1em}.Dkijt p.maegaki{letter-spacing:.1em;color:#323232;line-height:.3em}.Dkijt p.a{text-indent:.875em;letter-spacing:.09em}.Dkijt p.honbun{margin-bottom:.75em;letter-spacing:.09em}.Dkijt .section{text-align:left;font-size:.875em;line-height:1.5em;color:#555;margin-top:0;margin-bottom:1em;margin-left:.7em;margin-right:.7em}.Dkijt .section a{color:#00f;font-weight:700}.Dkijt .contents{width:488px;margin-left:0;margin-right:0;position:absolute;left:145px;top:70px;border-left:solid 1px #5e8eab;border-right:solid 1px #5e8eab}.Dkijt ul em{color:#555;font-style:normal;font-weight:700;margin-left:.2em;margin-right:.2em}.Dkijt .sidebar{position:absolute;left:640px;top:80px;display:block;width:136px;border-left:solid 1px #5e8eab;border-right:solid 1px #5e8eab;border-bottom:solid 1px #5e8eab;background-color:#f5f5f5;text-align:left}.Dkijt p.midasi{line-height:2em;background-color:#dcdcdc;font-size:.85em;text-align:left;text-indent:.6em;display:block;width:136px;border-top:solid 1px #5e8eab;border-bottom:solid 1px #5e8eab;margin:0;color:#555}.Dkijt .kanren{text-indent:.75em}.Dkijt .sidebar a{display:block;white-space:nowrap;line-height:1.5em;font-size:.75em;text-decoration:none}.Dkijt .sidebar a:hover{color:red;background-color:#d8bfd8}.Dkijt .sidebar span{display:none}.Dkijt p.side{font-size:.85em;line-height:1.5em}.Kkgnj p{margin:0 0 1.33em 0}h2.midashigo rt{font-size:.5em}h2.midashigo rp{font-size:.5em}.Mntyg p{margin:0 0 1.33em 0}.Dchkm p{margin:0 0 1.33em 0}.Igokh p{margin:0 0 1.33em 0}.Krdjh p{margin:0 0 1.33em 0}.Kaigo p{margin:0 0 1.33em 0}.Bdygs table{width:90%}.Hktbn table{border-collapse:collapse;width:90%}.Hktbn table td{border:1px solid #696969}.Mngtr p{margin:0 0 1.33em 0}.Hnddb table{border:1px solid #696969}.Nhkns p{margin:0 0 1.33em 0}.Nhkns img{margin:auto 0}.Ykich td{border:1px #696969 solid;padding:3px}.Recju .recjuL{float:left;margin:6px;padding:0;width:400px}.Recju .recjuR{float:right;margin:6px;padding:0;width:220px}.Rkdsr table{border-collapse:collapse;width:45%}.Bshjj{text-align:left}.Bshjj p{margin:0 0 1.33em 0}.Bshjj h3{margin:1.33em 0}.Mtsbs .bkspecgray{background-color:#d2d2d2}.Mtsbs .bkspecgray2{background-color:#e6e6e6}.Mtsbs .bkspecgray3{background-color:var(--color-font-grey)}.Mtsbs .bkspecpink{background-color:#fbdee7}.Mtsbs .bkwhite{background-color:#fff}.Mtsbs .notes_mainArea{margin-top:10px}.Mtsbs table.spec{border-right:#666 1px solid;border-bottom:#666 1px solid;border-collapse:collapse;clear:both;padding:0;width:100%}.Mtsbs table.spec .spline th{padding:0 5px}.Mtsbs table.spec .spline td{padding:0 5px}.Mtsbs table.spec th{border-bottom:#666 1px solid;border-left:#666 1px solid;border-top:#666 1px solid;font-weight:400;line-height:normal;padding:5px;text-align:center}.Mtsbs table.spec td{border:solid 1px #666;font-weight:400;line-height:normal;padding:5px;text-align:center}.Mtsbs table.spec tr.mainheader th{background-color:#d2d2d2;font-weight:700}.Mtsbs table.spec tr.mainheader th.basic{background-color:#e8f6d9}.Mtsbs table.spec table td{padding:0;border:none}.Mtsbs table.spec .tdleft{text-align:left}.Mtsbs table.spec .tdright{text-align:right}.Mtsbs table.spec td.tdleft_nb{text-align:left;border-right-style:none}.Mtsbs table.spec td.tdright_nb{text-align:right;border-left-style:none}.Mtsbs .carmain_font80{font-size:.8em}.Mtsbs .carmain_font70{font-size:.7em}.Mtsbs td.tdleft{text-align:left}.Mtsbs td.bkspecRE{background-color:#deebde}.Mtsbs th.tdleft{text-align:left}.Koeki table{border-collapse:collapse;width:90%;border:1px solid #696969}.Koeki td{border:1px solid #696969;padding:3px}.Koeki table table{border:0}.Koeki table table td{border:0}.Koeki .koekicellL{background-color:#ddd}.Koeki .koekicellR{padding-left:5px}.Phpyg p{margin:0 0 1.33em 0}.Phpyg h3{margin:1.33em 0 0 0}.Phpyg ul{margin:0 0 0 20px;padding:0 0 0 20px}.Tnshk p{margin:0 0 1.33em 0}.Azttu table{border-collapse:collapse;border:1px solid #696969;width:90%}.Azttu td{border:1px solid #696969}.Cesih table{border-collapse:collapse;border:1px solid #696969;width:90%}.Cesih th{border:1px solid #696969;padding:3px}.Cesih td{border:1px solid #696969;padding:3px}.Cesih .Cesihdc{width:600px}.Cesih .Cesihdc img{float:right;margin:0 0 10px 15px}.Nomen img{float:left;vertical-align:top;margin-right:10px}.Gnshk b{font-size:12px;font-weight:400}.Gnshk .ChartTitle{margin:0 10px 0 0}.Gnshk .deep{color:#fff;padding:0 0 0 3px;width:500px}.Gnshk .deep div{color:#fff}.Gnshk .pale{color:currentColor;padding:0 0 0 3px;width:500px}.Gnshk .pale div{color:currentColor}.Gnshk a.colorChart{text-decoration:none}.Gnshk a.colorChart:hover{border-left:#fff solid 2px;border-right:#fff solid 2px}.Ssndh table{vertical-align:top}.Btnkb td{vertical-align:top;padding:2px}.Rkjsh table{vertical-align:top;width:100%}.Rkjsh table .rkjshI{vertical-align:top}.Rkjsh table .rkjshI,.Rkjsh table .rkjshI a{white-space:nowrap}.Kkjsh table{border-top:1px solid #999;border-left:1px solid #999}.Kkjsh table tr td{padding:2px 4px;border-bottom:1px solid #999;border-right:1px solid #999}.Kkjsh table tr td.center{text-align:center}.Kkjsh table tr td.right{text-align:right}.Kkjsh table tr td.cream{background-color:#fdfcec}.Kkjsh table tr td.gray{background-color:#ededed}.Kkjsh table tr th{padding:2px 4px;border-bottom:1px solid #999;border-right:1px solid #999;background-color:#f2f2f2;color:currentColor;text-align:center}.Tfnsr table{font-size:90%}.Tfnsr div{color:#f93;font-size:110%;font-weight:700}.Gndhh td{font-size:100%}.Mzdmt spec table{border-top:#a1a1a1 solid 1px;text-align:center;width:542px}.Mzdmt spec table td{vertical-align:middle}.Mzdmt .bg01{background-color:#f1f1f1}.Mzdmt .bg02{background-color:#fff}.Mzdmt .cell_center{border:#a1a1a1 solid;border-width:0 1px 1px 0;text-align:center}.Mzdmt .cell_center_no{border-bottom:#a1a1a1 solid 1px;height:22px;text-align:center}.Mzdmt .cell_center_left{border-right:#a1a1a1 solid 1px;text-align:center}.Mzdmt .cell_left_no{border-bottom:#a1a1a1 solid 1px;height:22px;text-align:left}.Mzdmt .cell_left{border:#a1a1a1 solid;border-width:0 1px 1px 0;height:22px;text-align:left}.Mzdmt .cell_w2{width:80px}.Mzdmt .caution_list dt{float:left}.Mzdmt .caution_list dd{margin:0;padding:0 0 0 13px;vertical-align:top}.Mzdmt .cp1{color:currentColor;font-size:77%;margin:0}.Mzdmt td.cp1{text-align:left}.Mzdmt .cp2{color:#0655d8;font-size:77%;margin:0}.Mzdmt td.cp2{vertical-align:top}.Mzdmt .cp3{color:#c00;font-size:77%;margin:0}.Mzdmt .cp4{color:#444;font-size:77%}.Mzdmt .bd5{color:#109d0d}.Mzdmt td.bd5{vertical-align:top}.Kaike p{margin:0 0 1.33em 0}.Dhtsu .DhtsuT{border:#696969 solid 1px;border-collapse:collapse}.Dhtsu .DhtsuT td{border:#696969 solid 1px}.Dhtsu .DhtsuT td table td{border:0}.Hyazi img{border:0}.Tkgyg pre{font-family:"MS ゴシック"}.Nnkyk img{border:0}.Nnkyk a{text-decoration:none}.Npohd h3{border-left:#696969 solid 5px;margin:10px 0 0 0;padding:0 10px}.Npohd table.npohdW{max-width:625px;width:100%}.Npohd .npohdW *{margin:0;padding:0}.Npohd .npohdW pre{white-space:pre-wrap;word-wrap:break-word}.Npohd .npohdW{border:1px solid #999;border-collapse:collapse;table-layout:fixed}.Npohd .npohdW td{border:1px solid #999}.Npohd .npohdW table.npoHdSubTB td{border:medium none}.Npohd .npohdW td.npohdBs{border-style:none}.Npohd .npohdW td.npohdLS{width:21%}.Npohd .npohdW td.npohdRS{width:79%}.Npohd .npohdW td{letter-spacing:-2px}.Npohd table.npoHdMainTB{width:600px}.Msdnc div.border{border:#999 solid;border-width:1px 0 0 0}.Msdnc p{margin:0 0 10px 0;padding:0}.Msdnc div.section{padding-left:20px}.Msdnc div.code{background-color:#ddd;border-bottom:#fff solid 10px;margin:0;padding:0}.Msdnc table{border-collapse:collapse;margin:10px 0 10px 0;width:100%}.Msdnc table p{margin:0;padding:0}.Msdnc table td,.Msdnc table th{font-size:3mm;padding:5px;text-align:left}.Msdnc table th{background:#ccc;vertical-align:bottom}.Msdnc .code{display:block;margin:0 10px 0 0;max-width:100%;padding:5px 5px 5px 5px}.Msdnc pre{background:#ddd;margin:0 5px 0 0;padding-top:0;padding-bottom:0;word-break:break-all;word-wrap:break-word}.Msdnc ul{margin:0 0 0 20px;padding:0}.Msdnc ul ul{padding:0;margin-top:4px}.Msdnc ul ul li{line-height:1.2em}.Msdnc ul li ul{margin-bottom:5px}.Msdnc ul li ul li{margin-bottom:5px;line-height:140%}.Msdnc li p{margin:0;padding:0}.Msdnc li ul{margin-left:-40px;padding:0}.Msdnc li ul li p{margin-left:0}.Msdnc li ul li{line-height:inherit;margin-left:40px;padding-left:10px}.Msdnc ol{margin:0;padding:0}.Msdnc ol li{margin:0 0 5 40;line-height:140%}.Msdnc table,.Msdnc td,.Msdnc th{border:#ddd solid 1px}.Sdkys dd{margin:0}.Otrks h4{border-bottom:#9da8b0 solid 1px;margin-bottom:4px;margin-top:0;padding-bottom:0}.Otrks #jiten-honbun{float:left;line-height:1.4em;margin-left:3px;margin-right:20px;width:400px}.Otrks #jiten-access{margin-bottom:20px}.Otrks #jiten-media{float:left;margin-bottom:10px;width:216px}.Otrks #jiten-movieplayer{border-top:#6c93b0 solid 1px;clear:both;padding-top:10px;text-align:right;width:660px}.Otrks .jiten-photo{background-color:#fff;border:#999 solid 0;padding:8px;text-align:center;width:200px}.Otrks .jiten-hosoku{margin-bottom:8px;margin-top:6px}.Otrks .jiten-movie-waku a{background:url(https://weblio.hs.llnwd.net/e7/img/OtsuRekishiYogojitenImg/btn_moviestart.png) no-repeat;display:block;height:30px;margin-left:9px;text-indent:-10000px;width:120px}.Triph .data table{color:currentColor;width:100%}.Triph .data caption{background:#94b7df;border-right:#fff solid 1px;border-top:#fff solid 1px;color:#fff;font-weight:700;padding:2px 17px}.Triph .data th,.data td{border-right:#fff solid 1px;border-top:#fff solid 1px;padding:2px 17px;background:#eff4fa}.Triph .data th{background:#dfe9f5;font-weight:400;vertical-align:top;width:106px}.Triph #colourChoices{background:#f1f1f1;padding:2px 5px;width:50%}.Triph #rollOver{color:#999}.Triph #colourChanger img{border:#b8b8b8 solid 1px}.Triph #colourChanger span{display:none}.Sndib table{border:#696969 solid 1px;border-collapse:collapse;width:90%}.Sndib table th{background-color:#f5f5f5;border:#696969 solid 1px;font-weight:700;padding:3px}.Sndib table td{border:#696969 solid 1px;padding:3px}.Aprla table{border-collapse:collapse}.Kaiso td{padding:2px}.Cntkj table th{text-align:left;white-space:nowrap}.Cntkj iframe{border:#b6b6b6 solid 1px;height:250px;margin-top:15px;width:100%}.Cntkj .com_prof{float:left;width:55%}.Cntkj .description{float:right;width:43%}.Nnkdt img{margin-top:10px;width:400px}.Snntd table{border:#696969 solid 1px;border-collapse:collapse}.Snntd td{border:#696969 solid 1px}.Snntd img{margin-bottom:15px}.Ezndt .EzndtTd{width:134px}.Ezndt img{margin:10px 0 10px 0}.Nyugy p{margin:0 0 1.33em 0}.Srjtn table{border:currentColor solid 1px;border-collapse:collapse}.Srjtn table td{border:currentColor solid 1px;padding:1px 6px 1px 6px}.Yesrs table{width:100%}.Yesrs table .YesrsTd{color:#fff}.Hyndi table{width:100%}.Hyndi .spec-table{border:#b8b9d2 solid;border-width:1px 0 0 1px}.Hyndi .spec-table th,.spec-table td{border:#b8b9d2 solid;border-width:0 1px 1px 0;padding:10px}.Hyndi .spec-table th.row{text-align:center}.Hyndi .spec-table th{background-color:#e5e5ef;font-weight:400;text-align:left}.Hyndi .spec-table th.violet{background-color:#7f7fb2;color:#fff;font-weight:700}.Hyndi .spec-table th.center{text-align:center}.Hyndi .spec-table td{text-align:center;vertical-align:middle}.Hyndi .spec-table td.left{text-align:left}.Hyndi .spec-table td.remarks{text-align:left;vertical-align:text-top}.Hyndi .spec-table td.remarks ul{line-height:1.4em;list-style:square;margin:0 0 0 1em;padding:0}.Hyndi .spec-table-foot .r-mark{color:red}.Rnult td{color:currentColor;font-size:.9em;line-height:1.2em}.Rnult .RnultT{border:#696969 solid 1px;border-collapse:collapse}.Rnult .RnultT td{border:#696969 solid 1px}.Ukybz table{border:currentColor solid 1px;border-collapse:collapse}.Ukybz table td{border:currentColor solid 1px;padding:3px}.Abrms table{border:currentColor solid 1px;border-collapse:collapse}.Abrms table td{border:currentColor solid 1px;padding:3px}.Osaka table{border:#696969 solid 1px;border-collapse:collapse;width:90%}.Osaka table th{background-color:#f5f5f5;border:#696969 solid 1px;font-weight:700;padding:3px}.Osaka table th.OsakaL{width:20%}.Osaka table th.OsakaC{width:30%}.Osaka table th.OsakaR{width:50%}.Osaka table td{border:#696969 solid 1px;padding:3px}.Osaka table td.OsakaL{width:20%}.Osaka table td.OsakaC{width:30%}.Osaka table td.OsakaR{width:50%}.Hndmr .autoline-up-table-grade{border:currentColor solid;border-width:1px 1px 1px 0;font-size:.9em}.Hndmr .autoline-up-table-grade td{border-left:currentColor solid 1px;border-top:#505050 solid 1px}.Hndmr .autoline-up-table-grade td.element{border-left:none;line-height:1.2em;padding:3px 0 3px 2px}.Hndmr .autoline-up-table-grade td.category{border-left:none;font-size:.9em;padding:0 3px 0 3px;text-align:center}.Hndmr .autoline-up-table-grade td.std{padding:3px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-grade td.fuel{background-color:#fddaec;padding:3px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-grade td.division-rt{border-left:currentColor solid 1px}.Hndmr .autoline-up-table-grade td .star{color:#008837}.Hndmr .autoline-up-table-grade td.layout-bottom-border{border-bottom:currentColor solid 1px}.Hndmr table#webcatalogue-table td{color:var(--color-font-grey)}.Hndmr table#webcatalogue-table img{border:none}.Hndmr table#webcatalogue-table p{margin:0;padding:0}.Hndmr table#webcatalogue-table p.leadcopy{color:currentColor;font-size:.9em;font-weight:700;line-height:18px}.Hndmr table#webcatalogue-table p.leadcopy2{font-size:.9em;font-weight:700;line-height:21px}.Hndmr table#webcatalogue-table p.text{font-size:.9em;line-height:16px}.Hndmr table#webcatalogue-table p.caution{color:#888;font-size:.9em;line-height:12px;margin-top:3px}.Hndmr table#webcatalogue-table span.typebetsu{font-size:.9em;font-weight:400}.Hndmr table#webcatalogue-table p.concepttext{color:#fff;line-height:18px;margin:0 15px 10px 15px}.Hndmr table#webcatalogue-table strong.v6{color:#003f98}.Hndmr table#webcatalogue-table p.safe-midashi{background-color:currentColor;color:#fff;font-size:.9em;font-weight:700;line-height:18px;padding:3px 5px 3px 5px}.Hndmr table#webcatalogue-table p.realworldtext{color:#51318f}.Hndmr table#webcatalogue-table span.co2{font-size:.9em}.Hndmr table#webcatalogue-table p.texthyoujimark{font-size:.9em;line-height:16px}.Hndmr table#webcatalogue-table #env-data{font-size:.9em}.Hndmr table#webcatalogue-table #env-data td.tabletext{padding:2px}.Hndmr table#webcatalogue-table strong.price{font-size:.9em}.Hndmr table#webcatalogue-table p.caution_vg{margin-top:7px}.Hndmr table#webcatalogue-table p.navi-midashi{background-color:#1c1f7a;color:#fff;font-size:.9em;font-weight:700;line-height:18px;padding:3px 5px 3px 5px}.Hndmr table#webcatalogue-table .note{color:#1c1f7a}.Hndmr table#webcatalogue-table span.komidashi{color:#006965}.Hndmr .autoline-up-table-eqp{border:currentColor solid;border-width:0 1px 1px 0;font-size:.9em}.Hndmr .autoline-up-table-eqp td{border-left:currentColor solid 1px;border-top:#505050 solid 1px}.Hndmr .autoline-up-table-eqp td.top{border-top:none}.Hndmr .autoline-up-table-eqp td.none{border-left:none;border-top:none}.Hndmr .autoline-up-table-eqp td.element{border-left:none;line-height:130%;padding:6px 0 3px 2px}.Hndmr .autoline-up-table-eqp td.category{border-left:none;font-size:.9em;padding:0 3px 0 3px}.Hndmr .autoline-up-table-eqp td.std{background-color:#cbc9e2;padding:6px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-eqp td.maker{background-color:#b3d0c5;padding:6px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-eqp td.muji{padding:6px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-eqp td.division-rt{border-left:currentColor solid 1px}.Hndmr .autoline-up-table-eqp td.layout-bottom-border{border-bottom:currentColor solid 1px}.Hndmr #auto-line-up-eqp-hosoku{text-align:left;width:900px}.Hndmr #auto-line-up-eqp-hosoku h3{font-size:.9em;margin:35px 0 6px 0;padding:0}.Hndmr #auto-line-up-eqp-hosoku .all-type{border:#202020 solid 1px;padding:5px 25px 5px 25px}.Hndmr #auto-line-up-eqp-hosoku .all-type h4{border-bottom:gray solid 1px;font-size:.9em;margin:0;padding:10px 0 4px 0}.Hndmr #auto-line-up-eqp-hosoku .all-type p{font-size:.9em;margin:0;padding:6px 0 8px 0}.Hndmr #auto-line-up-eqp-hosoku p.caution-table{font-size:.9em;line-height:150%}.Hndmr #auto-line-up-eqp-hosoku p.caution_maker{background-color:#bdd7d9;font-size:.9em;line-height:120%;margin:10px 0 10px 0;padding:6px 10px 5px 10px}.Hndmr #auto-line-up-eqp-hosoku p.caution{font-size:.9em;line-height:150%}.Hndmr .autoline-up-table-eqp{border:currentColor solid;border-width:0 1px 1px 0;font-size:.9em}.Hndmr .autoline-up-table-eqp td{border-left:currentColor solid 1px;border-top:#505050 solid 1px}.Hndmr .autoline-up-table-eqp td.top{border-top:none}.Hndmr .fuel{background-color:#fbe6ef}.Hndmr .autoline-up-table-eqp .fuel{background-color:#fbe6ef}.Hndmr p.fuel2{background-color:#fbe6ef}.Hndmr span.akamaru{color:#d90000}.Hndmr .star{color:#008837}.Hndmr .autoline-up-table-eqp td.none{border-left:none;border-top:none}.Hndmr .autoline-up-table-eqp td.element{border-left:none;line-height:130%;padding:6px 0 3px 2px}.Hndmr .autoline-up-table-eqp td.category{border-left:none;font-size:.9em;padding:0 3px 0 3px}.Hndmr .autoline-up-table-eqp td.std{background-color:#cbc9e2;padding:6px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-eqp td.maker{background-color:#b3d0c5;padding:6px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-eqp td.muji{padding:6px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-eqp td.division-rt{border-left:currentColor solid 1px}.Hndmr .autoline-up-table-eqp td.layout-bottom-border{border-bottom:currentColor solid 1px}.Hndmr #auto-line-up-eqp-hosoku{text-align:left;width:600px}.Hndmr #auto-line-up-eqp-hosoku h3{font-size:.9em;margin:35px 0 6px 0;padding:0}.Hndmr #auto-line-up-eqp-hosoku .all-type{border:#202020 solid 1px;padding:5px 25px 5px 25px}.Hndmr #auto-line-up-eqp-hosoku .all-type h4{border-bottom:gray solid 1px;font-size:.9em;margin:0;padding:10px 0 4px 0}.Hndmr #auto-line-up-eqp-hosoku .all-type p{font-size:.9em;margin:0;padding:6px 0 8px 0}.Hndmr #auto-line-up-eqp-hosoku p.caution-table{font-size:.9em;line-height:150%}.Hndmr #auto-line-up-eqp-hosoku p.caution_maker{background-color:#bdd7d9;font-size:.9em;line-height:120%;margin:10px 0 10px 0;padding:6px 10px 5px 10px}.Hndmr #auto-line-up-eqp-hosoku p.caution{font-size:.9em;line-height:150%}.Hndmr table.spec-table{border-top:1px solid #2c2c2c}.Hndmr table.spec-table td{border-right:1px solid #2c2c2c;border-bottom:1px solid #2c2c2c;text-align:center}.Hndmr table.spec-table td.bd-left{border-left:1px solid #2c2c2c}.Hndmr table#spec td.data{text-align:center;border-left:1px solid currentColor}.Hndmr table#spec td.type-name{text-align:center;font-weight:700;color:#fff;background-color:#415863}.Hndmr table#spec td.sikiri-top{border-top:2px solid currentColor}.Hndmr table#spec td.sikiri-bottom{border-bottom:2px solid currentColor}.Hndmr p.inspire-spec{font-weight:700}.Hndmr #spec-table td{font-size:.9em}.Hndmr #spec-table td.suuchi{border-left:1px solid #2c2c2c;text-align:center}.Hndmr #spec-table td.nenpi{border-left:1px solid #2c2c2c;text-align:center}.Hndmr #spec-table td p{margin:0;padding:.2em .1em .2em .1em}.Hndmr #spec-table td.tekiyougawa{text-align:center}.Hndmr #spec-table td.makeroption{background-color:#a0c3d0}.Hndmr #spec-table td.nakasen{background-color:currentColor}.Hndmr #spec-table td.nenpi{background-color:#fddaec}.Hndmr #spec-table td{border-bottom:1px solid #666}.Hndmr #spec-table td.bdtop{border-top:1px solid #666}.Hndmr .block_color{background-color:#7dcdf4}.Hndmr .block_color2{background-color:#00a0e9;color:#fff}.Hndmr .block_color3{background-color:#bfbfbf}.Hndmr .block_color4{background-color:#f9c270}.Hndmr .block_line{border-bottom:solid 1px currentColor;border-left:solid 1px currentColor}.Hndmr .block_line_top{border-top:solid 1px currentColor}.Hndmr .block_line_right{border-right:solid 1px currentColor}.Hndmr .position{text-align:center}.Hndmr p.nenpi{margin:.3em 0;padding:.3em .2em;background-color:#fadce9}.Hndmr table#type-midashi{border:1px solid currentColor;border-bottom:2px solid currentColor;border-collapse:collapse}.Hndmr table#type-midashi td{font-size:11px;line-height:13px;text-align:center}.Hndmr table#type-midashi span{font-size:10px}.Hndmr table#type-midashi strong{font-size:12px}.Hndmr #type-midashi td.migi{border-right:1px solid currentColor}.Hndmr #type-midashi td.sita{border-bottom:1px solid currentColor}.Hndmr table#spec th{border-top:1px solid currentColor}.Hndmr table#spec td{border-top:1px solid currentColor}.Hndmr table#spec .spec{border-top:1px solid currentColor}.Hndmr table#spec td.spec-name{border-right:1px solid currentColor;border-bottom:1px solid currentColor;padding:2px 0 2px 2px}.Hndmr table#spec td.atai{text-align:center;border-right:1px solid currentColor;border-bottom:1px solid currentColor}.Hndmr table#spec td.atai2{text-align:center;border-right:1px solid currentColor;border-bottom:1px solid currentColor;background-color:#fbe6ef}.Hndmr table#spec td.category-botom{border-bottom:2px solid currentColor}.Hndmr table#spec td.category-name{font-weight:700;border-left:1px solid currentColor;border-bottom:2px solid currentColor}.Hndmr table.caution{width:640px}.Hndmr table.caution td{font-size:10px;line-height:1.3em}.Hndmr #spec-table td.line-migisita{border-right-width:1px;border-bottom-width:1px;border-right-style:solid;border-bottom-style:solid;border-right-color:currentColor;border-bottom-color:currentColor}.Hndmr #spec-table td.line-migi{border-right-width:1px;border-right-style:solid;border-right-color:currentColor}.Hndmr #spec-table td.line-sita{border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:currentColor}.Hndmr #spec-table td.speccontents{text-align:center}.Hndmr #spec-table td.speccontents-katasiki{text-align:center}.Hndmr p.zentype-category{font-weight:700}.Hndmr #webcata_footer{clear:both;padding:30px 128px 15px 20px;text-align:right}.Hndmr #listtable{font-size:80%;font-style:normal;font-weight:400;border:currentColor solid;border-width:2px 0 0 2px}.Hndmr #listtable td{border:currentColor solid;border-width:0 1px 1px 0;padding:2px;text-align:center}.Hndmr #listtable td.midashi1{border-width:0 0 2px 2px;text-align:center;vertical-align:middle}.Hndmr #listtable td.midashi1b{border-width:0 2px 0 2px;text-align:center;vertical-align:middle}.Hndmr #listtable td.midashi2{border-right-width:2px;text-align:left;vertical-align:top}.Hndmr #listtable td.midashi2b{border-right-width:0;text-align:left;vertical-align:top}.Hndmr #listtable td.midashi2c{border-width:0 2px 2px 0;text-align:left;vertical-align:top}.Hndmr #listtable td.midashi2d{border-width:0 0 2px 0;text-align:left;vertical-align:top}.Hndmr #listtable .cell-border{border-bottom-width:2px}.Hndmr #listtable .cell-normal{background-color:#f1f9fb}.Hndmr #listtable .cell-makeroption{background-color:#f1f8ed}.Hndmr #listtable .cell-normal-border{background-color:#f1f9fb;border-bottom-width:2px}.Hndmr #listtable .cell-makeroption-border{background-color:#f1f8ed;border-bottom-width:2px}.Hndmr #listtable .cell-border2{border-right-width:2px}.Hndmr #listtable .cell-normal2{background-color:#f1f9fb;border-right-width:2px}.Hndmr #listtable .cell-makeroption2{background-color:#f1f8ed;border-right-width:2px}.Hndmr #listtable .cell-normal-border2{background-color:#f1f9fb;border-width:0 2px 2px 0}.Hndmr #listtable .cell-makeroption-border2{background-color:#f1f8ed;border-width:0 2px 2px 0}.Hndmr #listtable .cell-border3{border-width:0 2px 2px 0}.Hndmr #listtable .cell-border3b{border-width:0 2px 2px 0;text-align:left;vertical-align:top}.Hndmr #listtable .cell-border4{border-width:0 0 2px 2px}.Hndmr #listtable .cell-border5{border-right-width:0}.Hndmr #listtable .cell-border6{border-width:0 2px 0 2px}.Hndmr #listtable .cell-noborder{border-width:0}.Hndmr #listtable .type{font-size:small}.Hndmr #listtable .noborder{border-width:0;padding:0}.Hndmr #listtable .noborder2{border-width:0 2px 0 0;padding:0}.Hndmr p.footnote-r{font-size:x-small;margin-bottom:10px;text-align:right}.Hndmr p.footnote-l{font-size:x-small;line-height:130%;text-align:left}.Hndmr #specifications{font-size:x-small;line-height:130%;text-align:center;margin-bottom:5px;border-width:2px 1px 0 2px;border-style:solid;border-color:currentColor}#specifications td,.Hndmr #specifications th{padding:2px}.Hndmr #specifications th.midashi{font-weight:400;text-align:left;border-width:0 1px 1px 0;border-style:solid;border-color:currentColor}.Hndmr #specifications th.midashi2{font-weight:400;text-align:left;border-width:0 1px 2px 0;border-style:solid;border-color:currentColor}.Hndmr #specifications th.midashi3{border-width:0 0 2px 0;border-style:solid;border-color:currentColor}.Hndmr #specifications th.car{font-size:medium;font-weight:700;background-color:#d9d9d9;border-width:0 1px 1px 0;border-style:solid;border-color:currentColor;line-height:130%}.Hndmr #specifications th.car .small{font-size:x-small;line-height:120%}.Hndmr #specifications th.ff-4wd{font-weight:700;border-width:0 1px 2px 0;border-style:solid;border-color:currentColor}.Hndmr #specifications td.midashi{border-width:0 1px 1px 0;border-style:solid;border-color:currentColor;text-align:left;vertical-align:top}.Hndmr #specifications td.midashi2{border-width:0 1px 2px 0;border-style:solid;border-color:currentColor;text-align:left;vertical-align:top}.Hndmr #specifications td.cell{border-width:0 1px 1px 0;border-style:solid;border-color:currentColor;text-align:center}.Hndmr #specifications td.cell2{border-width:0 1px 2px 0;border-style:solid;border-color:currentColor;text-align:center}.Hndmr #specifications td.cell-fuel{border-width:0 1px 1px 0;border-style:solid;border-color:currentColor;background-color:#fadce9;text-align:center}.Hndmr #specifications td.midashi-fuel{border-width:0 1px 1px 0;border-style:solid;border-color:currentColor;text-align:left;vertical-align:top;background-color:#fadce9}.Hndmr .green{color:#094}.Hndmr .fuel{background-color:#fadce9}.Hndmr #spec{border:currentColor solid;border-width:0 0 1px 0;font-size:x-small;line-height:130%;margin-bottom:5px}#spec td,.Hndmr #spec th{border:currentColor solid;border-width:1px 0 0 0;vertical-align:top;padding:2px 5px 2px 5px}.Hndmr #spec th{background-color:#e6e6e6;font-weight:400;text-align:left}.Hndmr #spec .spec{border:currentColor solid;border-width:0 0 0 1px;text-align:center}.Hndmr #spec .fuel{background-color:#bccde9}.Hndmr #spec .specfuel{background-color:#bccde9;border:currentColor solid;border-width:0 0 0 1px;text-align:center}.Hndmr .footnote{font-size:x-small;line-height:130%}.Hndmr .footnote .spec{color:#003f98}.Hndmr div#web-catalog-contents{margin:24px;width:461px}.Hndmr div#web-catalog-contents h4{background:#325958;color:#fff;font-size:.9em;margin-bottom:14px;padding:4px 0 4px 10px;width:451px}.Hndmr div#web-catalog-contents table.model-navi{margin:0 0 5px 0}.Hndmr div#web-catalog-contents table.model-navi td{padding:0 25px 0 10px}.Hndmr div#web-catalog-contents *{margin:0;padding:0}.Hndmr div#web-catalog-contents h4 span{font-size:.9em;font-weight:400}.Hndmr div#web-catalog-contents p.caution,p.caution{font-size:.9em;line-height:120%}.Hndmr #eq_spec_list{background-color:#fff;border:gray solid;border-width:1px 0 0 1px;font-size:.9em;margin-bottom:15px}.Hndmr #eq_spec_list td{border:gray solid;border-width:0 1px 1px 0;padding:2px}.Hndmr #eq_spec_list td.right_non_border{border-right:none}.Hndmr #eq_spec_list td p{width:10px}.Hndmr #eq_spec_list td.list_top{background-color:#03494a;color:#fff;font-weight:700}.Hndmr #eq_spec_list td.txt_center{text-align:center}.Hndmr .card_index img{border:0;float:right}.Hndmr .card_index br{clear:both}.Tgrgj table{border:#696969 solid 1px;border-collapse:collapse;width:90%}.Tgrgj table th{background-color:#f5f5f5;border:#696969 solid 1px;font-weight:700;padding:3px}.Tgrgj table td{border:#696969 solid 1px;padding:3px}.Smsbj table{border:#696969 solid 1px;border-collapse:collapse;width:90%}.Smsbj table th{background-color:#f5f5f5;border:#696969 solid 1px;font-weight:700;padding:3px}.Smsbj table td{border:#696969 solid 1px;padding:3px}.Volvo table.specTable{background:#e9e6e1;border:none;border-bottom:#fff solid 1px;border-collapse:collapse;font-size:10pt}.Volvo table.specTable th,table.specTable td{padding:7px}.Volvo table.specTable thead th{background:#999;color:#fff;border:solid 1px;border-color:#ece9d8 #aaa #889294 #aaa}.Volvo table.specTable tbody th{background:#c1d2d9;border:#fff solid 1px;border-color:#879294 #fff #ece9d8 #c7d0d7;color:#60686b;text-align:left}.Volvo table.specTable tbody td{border:#fff solid 1px;border-bottom:none;border-color:#ece9d8 #fff}.Volvo table.specTable tbody tr.b td{background:#dedbd2}.Htmlr table{width:100%}.Htmlr table td{padding:3px}.Htmlr .nmg,.Htmlr .nmp{margin:0}.Htmlr .exp{background-color:#eee}.Htmlr .tbl{background-color:#ccc;border:#696969 solid;border-width:1px 0 1px 0}.Htmlr .gray td{background-color:#ddd;border:#696969 solid;border-width:0 0 1px 0}.Htmlr .wht td{border:#696969 solid;border-width:0 0 1px 0}.Htmlr td.gray{background-color:#ddd;border:#696969 solid;border-width:0 0 1px 0}.Htmlr td.wht{border:#696969 solid;border-width:0 0 1px 0}.Htmlr .exsamp{font-size:.8em;margin:0;padding:0}.Frdmr div.content{font-size:.9em}.Frdmr div.content_wide{font-size:.9em}.Frdmr h3{font-size:.9em}.Frdmr table.Fordtable{border:#84a2c6 solid 1px;border-collapse:collapse;font-size:.9em;width:100%}.Frdmr td{border-right:#84a2c6 solid 1px;text-align:center;width:200px}.Frdmr td.Fordannotd{border-right:#fff solid 1px;text-align:left;width:20%}.Frdmr td.Forddeltd{border-right:#fff solid 1px;text-align:left}.Frdmr td.Fordlabel{text-align:left;width:30%}.Frdmr td.Fordtdest{text-align:center;width:30%}.Frdmr td.Fordtd{text-align:center}.Frdmr th{border-right:#84a2c6 solid 1px}.Frdmr th.Fordmondeo{vertical-align:top}.Frdmr th.label{text-align:left}.Frdmr tr.alt{background-color:#e7eff7}.Frdmr tr.head{background-color:#f7f3e7}.Omtsd table{border:currentColor solid 1px;border-collapse:collapse;text-align:center;width:590px}.Omtsd table td{border:currentColor solid 1px}.Omtsd table th{border:currentColor solid 1px}.Tnskj img{float:left;margin:0 10px 0 10px}.Ydkrz{text-align:center}.Ydkrz p{margin:20px 50px 20px 50px;text-align:left}.Lndrv table.LndrvFL{border:#ccc solid 1px;border-collapse:collapse;text-align:center;width:100%}.Lndrv table.LndrvFL td{background-color:#f4f7fb;border:#ccc solid 1px}.Spchk table{border:currentColor solid 1px;border-collapse:collapse;width:100%}.Spchk table th{background-color:#eee;border:currentColor solid 1px}.Spchk table td{border:currentColor solid 1px}.Ktmbd table{border:#666 solid 1px;border-collapse:collapse;width:100%}.Ktmbd table td{border:#666 solid 1px}.Ycezj .YcezjL{float:left;text-align:center;width:400px}.Ycezj .YcezjR{float:right;text-align:left;width:240px}.Ycezj .YcezjR .YcezjReal{float:left;text-align:center;width:120px}.Ycezj .YcezjR .YcezjWinm{float:right;text-align:center;width:120px}.Szkdb table{border:#999 solid 1px;border-collapse:collapse;width:80%}.Szkdb table td{border:#999 solid 1px}.Opsyg .OpsygK{border:#cdcdcd solid;border-width:0 0 1px 0;font-weight:700;margin:0;width:550px}.Buell table{border:#696969 solid 1px;border-collapse:collapse}.Buell table td{border:#696969 solid 1px}.Dctbd table{border:#999 solid 1px;border-collapse:collapse;width:80%}.Dctbd table td{border:#999 solid 1px}.Bmwag table{border-collapse:collapse;width:600px}.Bmwag table td{border:#999 solid;border-width:1px 0 1px 0}.Bmwag table th{text-align:left}.Bmwag .BmwagR{text-align:right}.Szkmt .e9{font-size:9px}.Szkmt .e10{font-size:10px}.Szkmt .e12{font-size:12px}.Szkmt .j9{font-size:10px}.Szkmt .j10{font-size:11px}.Szkmt .j12{font-size:12px}.Szkmt .j14{font-size:14px}.Szkmt .e9l{font-size:9px}.Szkmt .e10l{font-size:10px}.Szkmt .e12l{font-size:12px}.Szkmt .j9l{font-size:10px}.Szkmt .j10l{font-size:11px}.Szkmt .j12l{font-size:12px}.Szkmt .j14l{font-size:14px}.Szkmt .e9h{font-size:9px}.Szkmt .e10h{font-size:10px}.Szkmt .e12h{font-size:12px}.Szkmt .j9h{font-size:10px}.Szkmt .j10h{font-size:11px}.Szkmt .j12h{font-size:12px}.Szkmt .j14h{font-size:14px}.Szkmt .style1{color:red}.Wpgjn .Wpgjntable{border:#ff9a9c solid 1px;border-collapse:collapse}.Ngkyg p{margin:0 0 1.33em 0}.Esttd .EsttdFloatL{float:left;width:280px}.Esttd .EsttdSpecBox{float:right;margin:0;width:310px}.Mokat .MokatL{float:left;width:170px}.Mokat .MokatR{float:right;width:520px}.Osksk .OskskL{float:left;width:310px}.Osksk .OskskR{float:right;width:300px}.Osksk table{border:currentColor solid 1px;border-collapse:collapse}.Osksk table td{border:currentColor solid 1px;font-size:.9em}.Keiod .KeiodL{float:left;width:545px}.Keiod .KeiodR{float:right;margin-left:10px;width:145px}.Kmbkz .KmbkzL{float:left;width:530px}.Kmbkz .KmbkzR{float:right;margin-left:10px;width:150px}.Ibrtd table{border-collapse:collapse}.Ktskk a img{border:0}.Ktskk .KtskkM{border:currentColor solid;border-width:0 0 1px 5px;font-size:1em;font-weight:700;width:50%}.Jagar table{color:gray}.Jagar table#JAGUAR_XF{border:#696969 solid 1px;border-collapse:collapse;color:currentColor;text-align:center}.Tndhs .TndhsC table{border:currentColor solid 1px;border-collapse:collapse}.Tndhs .TndhsC table td{border:currentColor solid 1px}.Snbkk table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Snbkk td{border:currentColor solid 1px;text-align:center}.Snbkk th{border:currentColor solid 1px;text-align:center}.Acgty .AcgtyL{float:left;width:410px}.Acgty .AcgtyR{float:right;margin-left:10px;text-align:center;width:270px}.Oranf table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Oranf td{border:currentColor solid 1px;text-align:center}.Oranf th{border:currentColor solid 1px;text-align:center}.Oranf .OranfL{float:left;margin-left:5px;text-align:center}.Oranf .OranfR{float:right;margin-right:5px;text-align:center}.Oranf .OranfC{margin-left:265px;text-align:center;width:185px}.Oranf p{margin:10px 0 0 0;padding:0}.Oranf span{display:block}.Hgnhf .HgnhfBox{background-color:#ddd;font-weight:700;margin:3px 0 3px 0;padding:0 0 0 3px}.Hgnhf .HgnhfBrd{border:#ccc solid 1px;font-weight:700;margin:3px 0 3px 0;padding:0 0 0 3px}.Hgnhf .ship_data{float:right;height:185px;margin-bottom:10px;width:225px}.Hgnhf .data_img{float:left}.Hgnhf .ship_data th{background:silver;border-bottom:#fff solid 1px;font-weight:400;padding:3px;text-align:left}.Hgnhf .ship_data td{background:#ddd;border-bottom:#fff solid 1px;padding:3px}.Hgnhf *{margin:0;padding:0}.Hknks .HknksT table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Hknks .HknksT td{border:currentColor solid 1px;text-align:center}.Okisf .OkisfT table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Okisf .OkisfT td{border:currentColor solid 1px;padding:0 5px 0 5px;text-align:center}.Hankf table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Hankf td{border:currentColor solid 1px;padding:0 5px 0 5px;text-align:center}.Myzkf table table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Myzkf table table td{border:currentColor solid 1px;padding:0 5px 0 5px;text-align:center}.Ipmks .IpmksImg img{margin:3px 0 3px 0}.SSMTF .SsmtfL{float:left;width:35%}.SSMTF .SsmtfR{float:right;width:65%}.Ssimk .SsimkBlackLine{background-color:currentColor}.Tkwfr .TkwfrTable td{border:#eee solid 1px;border-left:#ddd solid 5px;position:relative}.Tkwfr .TkwfrTable th{background-color:#eee;border-bottom:#fff solid 1px;border-left:#fff solid 1px;width:35%}.Tkwfr .TkwfrTable{border:#eee solid 1px;border-collapse:collapse;margin-bottom:10px;width:284px}.Tkwfr .TkwfrTable td ul{margin-top:10px}.Tkwfr .TkwfrTable th,.TkwfrTable td{padding-left:10px;padding-top:4px;text-align:left;vertical-align:top}.Gicns .ga_contents{margin:0;padding:0;width:595px}.Gicns .ga_small{font-size:.9em}.Gicns .ga_name_d{background-color:#f5f5f5;border:#ddd solid 1px;line-height:1.2em;margin:0 0 10px;padding:6px 2px 2px 12px;width:579px}.Gicns .ga_name_g{background-color:#f5f5f5;border:#ddd solid 1px;font-weight:400;margin:0 0 10px;padding:6px 2px 2px 12px;width:579px}.Gicns .ga_photogroup{float:left;margin:0 10px 10px 0;padding:0;width:220px}.Gicns .ga_frame_d{background-color:#fff;border:silver solid 1px;margin:0 0 10px;padding:0;width:208px}.Gicns .ga_frame_d2{background-color:#fff;border:#ddd solid 1px;margin:0 0 10px;padding:0;width:208px}.Gicns .ga_ftitle_d{background-color:silver;border-bottom:#eee solid 1px;font-size:.9em;height:22px;margin:0;padding:2px;text-align:center;width:204px}.Gicns .ga_ftitle_d2{background-color:#f5f5f5;border-bottom:#ddd solid 1px;font-size:.9em;height:22px;margin:0;padding:2px;text-align:center;width:204px}.Gicns .ga_fexp{margin:10px;padding:0}.Gicns .ga_fexp ul{margin:4px 0;padding:0}.Gicns .ga_fexp li{line-height:1.2em;margin:6px 0 6px 14px;padding:0}.Gicns .ga_exp{line-height:1.4em;margin:0 0 20px 10px;padding:0}.Gicns .ga_frame{background-color:#fff;border:silver solid 1px;margin:0 0 10px;padding:0;width:148px}.Gicns .ga_ftitle{background-color:silver;font-size:.9em;height:22px;margin:0;padding:2px;text-align:center;width:144px}.Gicns .ga_frame2{background-color:#fff;border:#ddd solid 1px;margin:0 0 10px;padding:0;width:148px}.Gicns .ga_ftitle2{background-color:#f5f5f5;font-size:.9em;height:22px;margin:0;padding:2px;text-align:center;width:144px}.Nchcz .nchczB{border:gray solid 1px}.Nchcz .nchczT{border:gray solid 1px;border-collapse:collapse}.Nchcz .nchczT td{border:gray solid 1px}.Smzkn table{border:gray solid 1px;border-collapse:collapse}.Sfnyg img{float:left;margin-right:5px;vertical-align:top}.Ksyhs .KsyhsThumImg{float:left;margin:0;padding:0;width:158px}.Bsgys div.boxinner{padding:5px 5px 5px 10px}.Bsgys div.boxbottom{height:5px}.Bsgys span.Bsgysfn{color:#436976;font-size:.8em;font-weight:700;vertical-align:super}.Bsgys h1,.Bsgys h2,.Bsgys h3,.Bsgys h4,.Bsgys h5{background-color:inherit;border-bottom:currentColor 1px solid;clear:left;color:currentColor;font-size:100%;font-weight:700;margin:0 0 .5em 0;padding:1em 0 0 0;z-index:0}.Bsgys div.BsgysImg{float:left;margin:13px 0 9px 10px;width:88px}.Bsgys .BsgysLicense{margin-top:10px;width:100%}.Bsgys div.BsgysLicense{border:gray solid 1px}.Bsgys div.BsgysText{float:left;font-size:.8em;margin:7px 0 10px 10px;width:520px}.Bsgys table{border-collapse:collapse}.Bsgys table.inline td{border:#8cacbb 1px solid;padding:3px}.Bsgys table.inline th{background-color:#dee7ec;border:#8cacbb 1px solid;padding:3px}.Knnsz .KnnszL{text-align:center;float:left;width:260px}.Knnsz .KnnszR{float:right;width:365px}.Knnsz dd{margin-left:24px;padding:0}.Knnsz ol{margin:0;padding:0}.Esksk Img{margin:3px 0}.Esksk .eskskC{text-align:center;vertical-align:middle;width:300px;height:300px}.Zkknm .ZkknmL{float:left;width:350px}.Zkknm .ZkknmR{float:right;width:290px}.Kkszi .KksziL{float:left;width:450px}.Kkszi .KksziR{float:right;width:175px}.Gzicr .GzicrL{float:left;width:450px}.Gzicr .GzicrR{float:right;width:175px}.Nsrsk dt{border-left:currentColor solid 6px;text-indent:1ex}.Nsrsk .NsrskMaintxt{float:left;text-align:left}.Nsrsk .NsrskRightph{border:#ccc solid 1px;float:right;text-align:center}.Hknac .table03 table{margin:6px 0 0}.Hknac .table03 td{border:#fff solid 1px;vertical-align:top}.Tltdb div.TltdbLeft{float:left;text-align:center}.Tltdb img{display:block}.Tltdb strong{color:gray;font-size:.9em;font-weight:400}.Tltdb table{border-collapse:collapse;float:right;width:400px}.Tltdb table td.Tltdbtitle{border-top:#ccc 1px dotted;font-weight:700;text-align:left;width:120px}.Tltdb table td{border-top:#ccc 1px dotted}.Mntey .intro{background-color:#f5f5f5;border:gray solid 1px;margin-top:25px;padding:10px}.Ssmnf .imgbox{text-align:right;width:605px}.Ssmnf .imgbox img{margin-bottom:5px}.Ssmnf .imgbox .imgboxspan{border:#000 solid 1px;padding:3px}.Tytmt .specTbl2{width:100%}.Tytmt .specTbl{width:100%}.Tytmt table{border-collapse:collapse}.Tytmt table td{border:currentColor solid 1px;padding:3px}.Tytmt table tr{border:currentColor solid 1px;padding:3px}.Tytmt table table td{border:0}.Tytmt table table tr{border:0}.Tytmt .smallMText{font-size:.7em}.Jlgci .Jlgciclub-box{border:#ccc solid;border-width:1px 1px 0 1px}.Jlgci .Jlgciclub-box th{background-color:#eee;border-bottom:#ccc solid 1px;border-right:#aaa solid 1px;vertical-align:middle;width:30%}.Jlgci td{border-bottom:#ccc solid 1px;background-color:#fff;padding-left:5px}.Lxsmt dt{float:left}.Lxsmt table{border-collapse:collapse;width:100%}.Lxsmt table td{border:currentColor solid 1px;padding:3px}.Lxsmt table tr{border:currentColor solid 1px;padding:3px}.Lxsmt table table td{border:0}.Lxsmt table table tr{border:0}.Lxsmt td{vertical-align:top}.Lxsmt th{vertical-align:top}.Ktiem table.KtiemBorder{border:currentColor solid 1px;border-collapse:collapse;width:100%}.Ktiem table.KtiemBorder td{border:currentColor solid 1px}.Ktiem table.KtiemBorder th{border:currentColor solid 1px}.Ktiem table.KtiemBSpec{border:currentColor solid 1px;border-collapse:collapse;width:100%}.Ktiem table.KtiemBSpec td{border:currentColor solid 1px}.Nkski .NkskiData{float:right;width:60%}.Nkski .NkskiPh{float:left;text-align:center;width:35%}.Nkski .NkskiTitle{font-weight:700;line-height:1.2em}.Nkski table{border:#ccc solid 1px;border-collapse:collapse}.Nkski td{border:#ccc solid 1px;text-align:center}.Nkski th{background-color:#dedfde;border:#ccc solid 1px}.Ktkei .KtkeiImg{float:left;width:40%}div.Kkirn{margin:0 auto;width:250px}.Kkirn table{border:#999 solid 1px;border-collapse:collapse;width:250px}.Kkirn table th{background-color:#f7fff0;padding:4px 6px;border:#999 solid 1px}.Kkirn table td{border:#999 solid 1px;padding:4px 6px}.Tpkys div.paintBox p.txt{float:left;width:400px}.Tpkys div.paintBox p.img{float:right;width:172px}.Tpkys div.paintBox p.img span{display:block;padding-top:2px}.Tpkys div.stroke p.txt{float:left;width:330px}.Tpkys div.stroke p.img{float:right;width:122px}.Tpkys div.stroke div.imgArea{float:right;width:249px}.Tpkys div.stroke div.imgArea p{float:left;margin-right:5px;width:122px}.Tpkys div.stroke div.imgArea p.rightImg{margin-right:0}.Tpkys div.sputtering p.img{float:right}.Tpkys .howtoBoxEnd{float:left}.Tpkys dd,.Tpkys dl,.Tpkys dt{margin:0;padding:0}.Tpkys .closeBoxIn div{border:#ccc dotted;border-width:1px 0 1px 1px;float:left;height:350px;padding:10px;width:135px}.Tpkys .closeBoxIn div.makeRight{border:#ccc dotted 1px;float:left;height:350px;padding:10px;width:135px}.Hgksi table{border:currentColor solid 1px;border-collapse:collapse}.Srsbz .SrsbzLeft{float:left;width:290px}.Srsbz .SrsbzRight{float:right;width:320px}.Nrksm .NrksmMargin{margin-top:10px}.Nrksm .NrksmSI .NrksmSIOne{float:left;margin:0 0 0 10px;text-align:center}.Nrksm .NrksmT1 td{padding:2px 10px 2px 5px;vertical-align:top}.Nrksm .NrksmT1 th{font-weight:700;padding:2px 10px 2px 5px;text-align:left;vertical-align:top;width:100px}.Nrksm .NrksmT2 caption{font-weight:700;text-align:left}.Nrksm .NrksmT2 table{border-collapse:collapse}.Nrksm .NrksmT2 td{border:1px solid #ccc;padding:2px 4px}.Nrksm .NrksmT2 th{background-color:#f5f5f5;border:1px solid #ccc;font-weight:400;padding-top:2px 4px;text-align:center}.Nrksm .NrksmT3{float:left;margin:5px;width:350px}.Nimky .sew_toolBox .toolBoxIn p{float:left;width:200px}.Nkifr .NkifrImgTd{vertical-align:top}.Trhnt table{border-collapse:collapse;border:1px solid #696969;margin-top:10px;width:300px}.Trhnt .TrhntLeft{float:left;width:260px}.Trhnt .TrhntRight{float:right;width:370px}.Njsgs .hrLong{border:none;border-top:#696969 dotted 1px;font-size:1px;height:1px;margin:0 auto 0 0;padding:none;text-align:left;width:620px}.Njsgs .hrShort{border:none;border-top:#696969 dotted 1px;font-size:1px;height:1px;margin:0 auto 0 0;padding:none;text-align:left;width:510px}.Cryle table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Cryle td{border:currentColor solid 1px;text-align:center}.Cryle .header{border-left:#fff solid 1px;border-right:#fff solid 1px;border-top:#fff solid 1px;font-weight:700;text-align:left}.Jeepm table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Jeepm td{border:currentColor solid 1px;text-align:center}.Jeepm .header{border-left:#fff solid 1px;border-right:#fff solid 1px;border-top:#fff solid 1px;font-weight:700;text-align:left}.Dodge table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Dodge td{border:currentColor solid 1px;text-align:center}.Dprss .tableBorder{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Dprss .tableBorder th{background-color:#e6e6e6;border:currentColor solid 1px;text-align:center}.Dprss .tableBorder td{border:currentColor solid 1px;text-align:center}.Nrtdi dd{border-right:#ccc solid 1px;border-top:#ccc solid 1px;margin-left:13.3em;padding:4px}.Nrtdi dl{border-bottom:#ccc solid 1px;border-left:#ccc 1px solid;float:left;margin:0 0 10px;width:340px}.Nrtdi dt{border-right:#ccc solid 1px;border-top:#ccc 1px solid;float:left;padding:4px;width:12.7em}.Nrtdi img{margin-right:10px}.Hgnsh .clearfix{width:550px}.Hgnsh .syosaiLeft{float:left;margin:0 0 0 5px;width:290px}.Hgnsh .syosaiLeftBox{line-height:1.4em;margin-top:15px;text-align:justify;text-justify:inter-ideograph;width:290px}.Hgnsh .syosaiRight{float:right;margin-top:5px;width:200px}.Hgnsh .syosaiRightBox{text-align:center;width:200px}.Hgnsh .syosaiRightBox img{margin-bottom:0;padding:15px 0 15px}.Hskks #syosai{width:550px}.Hskks .syosaiLeft{float:left;margin:0 0 0 5px;width:300px}.Hskks .syosaiLeftBox{line-height:1.4em;margin-top:15px;text-align:justify;text-justify:inter-ideograph;width:300px}.Hskks .syosaiRight{float:right;margin-top:5px;width:200px}.Hskks .syosaiRightBox{text-align:center;width:200px}.Hskks .syosaiRightBox img{margin-bottom:0;padding:15px 0 15px}.Fkokk .FkokkTMargin{margin:0 0 10px}.Fkokk .FkokkDMargin{margin:0 0 10px}.Hinom .HinomTd{text-align:left}.Hinom .HinomTdBr2{text-align:right}.Hinom .HinomTdDL{border-bottom:#fff solid 1px;text-align:left}.Hinom .HinoTdJ{border-top:#fff solid 1px;text-align:left;vertical-align:top}.Hinom table{border:currentColor solid 1px;border-collapse:collapse;width:100%}.Hinom td{border:currentColor solid 1px;text-align:center}.Grikt .GriktDiv{border-top:#ccc solid 1px;font-weight:700}.Grikt .GriktNavi-hanrei{text-align:right}.Grikt rt.GriktTg{font-weight:700}.Grikt span.GriktTg{text-decoration:underline}.Gztmn .GztmnImgR{float:right}.Gztmn .GztmnTh{border:currentColor solid 1px}.Gztmn table{border:currentColor solid 1px;border-collapse:collapse}.Gztmn td{border:currentColor solid 1px}.Nhnkz a.NhnkzAnchor{background-image:url(https://weblio.hs.llnwd.net/e7/img/link_out.png);background-position:right top;background-repeat:no-repeat;padding:0 14px 0 0}.Nhnkz .NhnkzData2{background-color:#eee;border-collapse:collapse}.Nhnkz .NhnkzData2 td{background-color:#fff;border:#ccc solid 2px;padding:3px}.Nhnkz .NhnkzData2 th{background-color:#eee;border:#ccc solid 2px;color:currentColor;font-weight:400;padding:3px}.Nhnkz h2.NhnkzULine{border-bottom:#ccc solid 1px;font-size:100%;font-weight:700;margin-bottom:5px;margin-top:5px;padding:3px 0 0 0}.Mnjtn .MnjtnFont{font-size:10px}.Fjtrs .textcenter{text-align:center}.Ksbdb .Ksbdbcell{padding:3px;vertical-align:top}.Ntwky .ntwkyRH{font-weight:700;margin-bottom:0}.Ntwky .ntwkyRL{margin-top:0}.Kkykc .kkykcL{vertical-align:top;padding-right:16px}.Kkykc .kkykcR{vertical-align:top}.Kcnys .kcnysPHC{text-align:center}.Kcnys .kcnysPH{margin:0 auto;padding:10px;width:500px}.Kkkys .kkkysLi li{list-style:none}.Kkkys .kkkysLi span{margin-left:-29px}.Kkkys .kkkysLis li{list-style:none}.Kkkys .kkkysLis span{margin-left:-21px}.Sngjy .sngjyPD{text-align:right}.Sngjy .sngjyPgh{font-size:.4em}.Sngjy .sngjyBQ{font-style:italic;margin-top:0;margin-bottom:0}.Sngjy table{font-size:.9em}.Skazy table{border-collapse:collapse}.Skazy table td{border:1px currentColor solid;padding:4px;vertical-align:top}.Knjjn table{margin:5px 0 30px 0}.Jmnep{border-collapse:collapse}.Jmnep table{border-collapse:collapse;border:1px #696969 solid;width:40%}.Jmnep table th{background-color:#f5f5f5;border:1px #696969 solid;font-weight:700;padding:3px;white-space:nowrap}.Jmnep table td{border:1px #696969 solid;padding:5px;line-height:1.3em}.Jmnep .JmnepL{font-weight:700}.Jmnep .jmnepR{width:50%}.Tkkyy p{margin:0 0 8px 0}.Tkkyy .tkkyyH{font-weight:700;margin:0}.Sgkkk p{margin:0 0 8px 0}.Sgkkk img{margin:8px}.Jdhky .jdhkyT{border-top:1px #ddd solid;border-left:1px #ddd solid;margin-bottom:1.5em}.Jdhky .jdhkyT td,.Jdhky .jdhkyT th{border-right:1px #ddd solid;border-bottom:1px #ddd solid;padding:8px 10px;vertical-align:middle}.Jdhky .jdhkyT th{background:#f6f6f6;color:#006;font-weight:700}.Jdhky .jdhkyT tr.jdhkyH th{background:#608cc9;color:#fff;vertical-align:middle}.Jdhky .jdhkyC{text-align:center}.Jdhky .jdhkyB{margin:0;padding:0}.Jdhky .jdhkyBL{float:left;margin:0;padding:10px 0 10px 0;width:400px}.Jdhky .jdhkyBR{float:right;margin:0;padding:10px 0 10px 0;width:220px}.Jdhky .jdhkyInfo{background-color:#f5f5f5;border:gray solid 1px;margin:30px 0;padding:10px}.Nhsgb table{border-collapse:collapse;width:90%;border:1px solid #696969}.Nhsgb td{border:1px solid #696969;padding:3px}.Nhsgb .nhsgbL{background-color:#ddd;text-align:center;width:40px}.Nhsgb .nhsgbR{padding-left:5px}.Nhskb table{border-collapse:collapse;width:90%;border:1px solid #696969}.Nhskb td{border:1px solid #696969;padding:3px}.Nhskb .nhskbL{background-color:#ddd;text-align:center;width:40px}.Nhskb .nhskbR{padding-left:5px}.Nkbjw td{margin:0;padding:0;vertical-align:top}.Nkbjw .nkbjwL{float:left;width:440px}.Nkbjw .nkbjwTL{white-space:nowrap;width:100px}.Nkbjw .nkbjwTL a{white-space:nowrap}.Nkbjw .nkbjwR{float:right;width:185px}.Nkbjw .nkbjwI{border:currentColor solid 1px}.Nkbjw .nkbjwD{background-image:url(https://weblio.hs.llnwd.net/e7/img/link_out.png);background-position:right center;background-repeat:no-repeat;margin-top:0;padding:0 14px 0 0;text-align:right}.Pnkkj{border-collapse:collapse}.Pnkkj .pnkkjS{font-weight:700;margin:0;padding:15px 15px 20px 0}.Pnkkj .pnkkjN{font-weight:700}.Pnkkj .pnkkjA{text-align:right}.Pnkkj .pnkkjT{border-collapse:collapse;border:1px #696969 solid;width:97%}.Pnkkj .pnkkjT th{background-color:#f5f5f5;border:1px #696969 solid;font-weight:700;padding:3px;text-align:left;white-space:nowrap}.Pnkkj .pnkkjT td{border:1px #696969 solid;padding:5px;line-height:1.3em}.Pnkkj .pnkkjOT{border-collapse:collapse;border:1px #f5f5f5 solid;width:97%}.Pnkkj .pnkkjOT th{background-color:#f5f5f5;border:1px #f5f5f5 solid;font-weight:400;padding:3px;text-align:left;white-space:nowrap}.Pnkkj .pnkkjOT td{border:1px #f5f5f5 solid;padding:5px}.Pnkkj .pnkkjT .pnkkjTN{font-weight:700}.Pnskj .pnskjA{text-align:right}.Pnskj .pnskjPS{background-color:#eee;border:dotted;border-color:#abc9a2;border-width:1px;padding:2px}.Pnskj .pnskjPSH{border:1px #a9a9a9 dashed;background:#eee;font-size:small;font-weight:700;margin:0 8px 0 8px;padding:2px 10px}.Pnskj .pnskjPSB{margin:0 10px 0 10px}.Ykysb .ykysbTL{width:15%}.Yznhg h2{margin:1.5em 0 .8em;padding:1px 5px 1px 5px;font-size:130%;background:url(https://weblio.hs.llnwd.net/e7/img/dict/yznhg/shared/templates/free/images/contents/h2_bg.gif) left bottom repeat-x;border-top:1px solid #9fb7d4;border-right:1px solid #9fb7d4;border-bottom:1px solid #9fb7d4;border-left:4px solid #05155c}.Yznhg h3{margin:1.5em 0 .8em;padding:0 5px 0 22px;font-size:120%;background:url(https://weblio.hs.llnwd.net/e7/img/dict/yznhg/shared/templates/free/images/contents/h3_bg.gif) left center no-repeat;border-bottom:1px solid #9fb7d4}.Tkdkb .tkdkbR{margin:20px 0 0 0}.Tkdkb ul{margin-top:0}.Jajcw h3,.Jajcw h4,.Jajcw h5{margin:0 auto;padding:0}.Jajcw h3{font-size:1em}.Jajcw .jwSubTtlH{display:block;font-size:1.2em;margin:3px 0 1px 0}.Jajcw .jwSubTtlH span{border-left:#7f7f7f solid 5px;line-height:1.2em;margin-left:2px;padding:0 2px 0 5px;text-decoration:none}.Jajcw .jwjHdC{border:#666 solid 1px;font-size:.9em;font-weight:400;padding:1px}.Jajcw dl,.Jajcw p{margin:1px 0 1px 5px;padding:0}.Jajcw ol,.Jajcw ul{margin:0 auto;padding:0 auto}.Jajcw .jajcwLastMd{font-size:.8em;text-align:right;margin:0;padding:0}.Jajcw sup{font-size:.8em}.Jajcw .navFrmHd{padding:2px 10px 2px 0;text-align:left;width:100%}.Jajcw .navFrmHdB{background-color:#efefef;padding:0 10px}.Nhgkt .nhgktL{background-color:#eee;border:#999 solid 1px;color:currentColor;float:left;font-size:.9em;line-height:1em;margin:8px;padding:1px}.Nhgkt .nhgktR{float:left;font-size:.9em;line-height:1em;margin:4px;padding:1px;width:500px}.Nhgkt .nhgktInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:50px 0 0 0;padding:10px;width:500px}.Nhgkt .nhgktD{font-size:6px}.Zkksb table{border:1px #696969 solid;border-collapse:collapse;width:97%}.Zkksb table td{border:1px #696969 solid;line-height:1.3em;padding:5px}.Zkksb .zkksbL{background-color:#f5f5f5;padding:3px;white-space:nowrap;width:100px}.Szggj div#szggjJS{margin:0 0 16px}.Szggj .medusa_cell{padding:6px;width:280px}.Szggj .medusa_img_area{float:left;width:50px}.Szggj .medusa_text_area{float:left;width:200px}.Szggj .medusa_text_area p{font-size:.8em;line-height:.8em;margin:0;padding:0}.Szggj div#medusa_cell1{float:left}.Szggj div#medusa_cell2{float:right}.Kkgys h2.kkgysS{border-bottom:#ccc solid 1px}.Kkgys .kkgysInfo{background-color:#f5f5f5;border:gray solid 1px;margin:30px 0;padding:10px}.Kkgys table{background-color:#ccc;margin-left:10px}.Kkgys th{background-color:#f5f2dc;color:#353535;padding:8px;text-align:left}.Kkgys td{background-color:#fff;color:#353535;padding:8px;text-align:left}.Ingdj ol{margin:0;padding:0}.Ingdj li{margin-left:22px}.Ingdj .ingdjL{border:#666 solid 1px;font-size:.9em;padding:1px}.Ingdj .ingdjInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:10px 0 0 0;padding:10px;width:500px}.Tnhgj .tnhgjInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:50px 0 0 0;padding:10px;width:500px}.Bngkt .bngktL{background-color:#eee;border:#999 solid 1px;color:currentColor;float:left;font-size:.9em;line-height:1em;margin:8px;padding:1px}.Bngkt .bngktR{float:left;font-size:.9em;line-height:1em;margin:4px;padding:1px;width:500px}.Bngkt .bngktInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:50px 0 0 0;padding:10px;width:500px}.Bngkt .bngktD{font-size:6px}.Sptjn .sptjnR{float:right}.Sptjn .sptjnL{float:left}.Efref .efrefTO{background-color:#fff;border-bottom:1px solid #ccc;color:#454545;height:40px;padding:0;vertical-align:top}.Efref .efrefTE{background-color:#f3f3f3;border-bottom:1px solid #ccc;border-top:1px solid #ccc;color:#454545;height:40px;padding:0;vertical-align:top}.Efref .efrefC{border-collapse:collapse;font-size:12px;margin-bottom:20px}.Efref .efrefC th{background:none repeat scroll 0 0 #d8d8d8!important;border-bottom:1px solid #a4a4a4;border-top:1px solid #a4a4a4;color:currentColor;padding:3px 10px 3px 5px;text-align:left}.Efref ul{padding:0}.Efref ul li{list-style:square;list-style-position:inside;padding:0;text-align:left}.Efref h2{border-bottom:1px solid #4d4d4d}.Efref .efrefA{color:#999;font-size:14px;margin:0 0 12px}.Efref pre{background-color:#eee;padding:8px}.Efref .efrefCN{background:none repeat scroll 0 0 #f9f9f9;border:#eaeaea solid none;border-width:1px;color:#454545;font-size:12px;font-weight:400;margin:20px 0 5px;padding:1px 2px 1px 1px}.Efref .efrefCI36{margin-left:44px}.Wkpkm .wkpkmT{margin:0;text-align:right}.Wkpkm .wkpkmT{margin-top:16px}.Wkpkm .wkpkmN{margin-top:16px}.Wkpkm .wkpkmInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:50px 0 0 0;padding:10px;width:500px}.Cgkgj .cgkgjSm,h2.midashigo .cgkgjSm{font-size:.6em;margin-left:.4em}.Hlddb *{padding:0;margin:0}.Hlddb .hlddbC{font-size:18px;font-weight:700;width:auto}.Hlddb div.hlddbT{border-collapse:collapse;border-spacing:0;empty-cells:show;margin:0 0 20px 0}.Hlddb div.hlddbT table{font-size:13px;font-family:Arial;width:500px}.Hlddb div.hlddbT table th{text-align:left;font-weight:400;padding:0 0 0 5px;margin:0}.Hlddb div.hlddbT table td{margin:0;padding:2px 0}.Hlddb div.hlddbT table tr.hlddbO{background-color:#eaeaea}.Hlddb ol,.Hlddb ul{list-style-type:none}.Gkjyj span{border:#666 solid 1px;font-size:.9em;line-height:1em;margin-right:5px;padding:1px}.Tssmj p{margin:0 0 15px 0}.Tssmj span{border:#666 solid 1px;font-size:.9em;line-height:1em;margin-right:5px;padding:1px}.Dshar p{word-break:normal;word-wrap:break-word}.Dshar .DsharC{border:#666 solid 1px;font-size:.9em;line-height:1em;padding:1px}.Dshar .dsharInfo{background-color:#f5f5f5;border:gray solid 1px;margin-top:20px;padding:10px}.Pdqgy .pdqgyInfo{background-color:#ffd;border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.5em;margin:30px 0 0 0;padding:10px}table.shosn{width:100%}table.shosn td{vertical-align:top}.Qqqdb .qqqdbInfo{background-color:#f5f5f5;border:gray solid 1px;margin-top:20px;padding:10px}.wrpEx{height:25px;margin:0}.wrpEx p{color:#525152;font-size:1em;height:20px;margin:0 .5em 0 0;padding:3px 0 0 5px}.wrpEx p a:active,.wrpEx p a:link,.wrpEx p a:visited{color:#525152;font-size:1em;text-decoration:none}.wrpEx p span{color:#9c9a9c;font-size:.7em}.wrpEx p.wrpExFL{color:#525152;font-size:.8em;height:20px;margin:0 .5em 0 0;padding:3px 0 0 5px}.clr{clear:both;font-size:0;line-height:0;overflow:hidden}.clrBc{clear:both;display:block;font-size:0;line-height:0;overflow:hidden}.contFtB{line-height:1.8em;margin:0;padding:10px 0 0 10px}.contFtB li{background-image:url(https://weblio.hs.llnwd.net/e7/img/icons/wRenew/iconPntBk.png);background-repeat:no-repeat;list-style:none;padding:0 0 0 8px}.fndAnc b,.fwlAnc b{display:none}.contFtB a,.linkTl{position:relative;top:-8px}#linkTag .linkTagR{font-size:.8em;font-weight:400;text-align:right}.phraseWrp *{line-height:1.2em}.phraseCtWrp{margin-top:0}.phraseCtWrp p{display:inline}.phraseCtWrp table{border:0;margin:0}.phraseCtWrp b{font-size:.8em}.phraseCtTtl{background-color:#ebebeb;font-size:.8em;padding:4px 2px 2px 6px;text-align:left;vertical-align:top;width:180px}.phraseCtDes{background-color:#f7f7f7;font-size:.8em;padding:2px 5px;text-align:left;vertical-align:top;width:74%}.phraseCtLink{font-size:1em;margin:2px 2px 0 0;text-align:right}.phraseCtLink a{color:#848284}.mainLeftAdWrp{margin-bottom:10px;padding-left:13px}.mainLeftAdWrpL{float:left;margin-bottom:10px;margin-right:40px}.mainLeftAdWrpR{margin-bottom:10px;float:left}.trnsBtn{background-color:transparent;border:0;color:#fff;cursor:hand;cursor:pointer;font-size:13px;font-weight:700;height:20px;left:5px;line-height:22px;margin:0;padding:0;position:relative;top:5px;text-align:center;width:101px;z-index:20}.trnsBtnWrp{border:#a21a06 solid 1px;display:block;height:20px;left:5px;margin:0 0 -10px 0;position:relative;top:-15px;width:100px}.trnsBtnH{background-color:#ca2109;display:block;font-size:0;height:10px;position:relative;top:0;width:100px;z-index:1}.trnsBtnB{background-color:#b81e07;display:block;font-size:0;height:10px;position:relative;top:0;width:100px;z-index:1}.trnsMdlBxWrp{background-color:#f5f5f5;border:#dfdfdf solid 1px;margin:10px 0;padding:2px;text-align:left;width:99%}.trnsMdlBxB{background-color:#e2e2e2;padding:0 8px 0 8px}.trnsMdlBxTtlTbl{font-size:14px;margin-bottom:2px;width:100%}.trnsMdlBxTtlL a{color:currentColor;font-weight:700}.trnsMdlBxTtlR{text-align:right}.trnsMdlBxDsc{background-color:#e2e2e2;width:100%}.trnsMdlBxTx{font-size:13px;margin:0 auto;overflow:auto;width:100%}.trnsMdlBxBtn{vertical-align:middle}.trnsMdlBxBtnTbl{border-collapse:collapse;font-size:12px;margin:0 auto;padding:0;width:100%}.trnsMdlBxBtnTblLB{position:relative;top:-4px}.trnsMdlBxBtnTblL{width:80%}:root *>.trnsMdlBxBtnTblL{width:83%}.trnsMdlBxBtnTblL input{position:relative;top:3px}.copyRtWrp .lgDict{float:left}.pbarT{border-bottom:#2b2b2b solid 6px;border-collapse:collapse;margin:0;padding:0;position:relative;width:100%}.pbarTLW{bottom:0;display:inline;position:absolute}.kijiHdCt{display:inline;font-size:12px;position:relative;bottom:6px;z-index:1}.pbarTR{text-align:right}.wList{margin:0 10px 0 0;padding:0}.kiji{color:#111;font-size:1em;line-height:1.7em;margin-bottom:5px}.kiji *{font-size:100%;line-height:1.7em;white-space:normal;word-break:break-all}.kiji pre{white-space:pre}.kiji h2{font-size:1.1em}h2.midashigo{font-size:1.1em;color:currentColor}.hrDot{border-style:dotted none none none;border-top-width:2px;border-top-color:silver;margin:0 0 15px 0;padding:0}.SsdSml,.SsdSmlEx{font-size:12px;padding-right:10px}.SsdSmlIE .SsdSml{height:0}.SsdSmlL{font-weight:700;float:left}.SsdSmlR{float:right;text-align:right;margin-top:5px}.SsdSmlR br{display:none}.SsdSmlCt{background-color:#f7f7f7;clear:both;margin:25px 0 0 8px;padding:2px 8px}.SsdSmlRK{color:var(--color-font-grey);font-size:12px;padding:3px 15px}.fndAnc{font-size:13px;margin:0 0 -5px 0;padding:0}.fndAnc b{font-weight:400}.fwlAnc{font-size:13px;margin:0 0 -5px 0;padding:0}.fwlAnc b{font-weight:400}.content-foot-dict-ranking{margin-bottom:1em}.content-foot-dict-ranking .dict-ranking-title{margin-bottom:5px}.content-foot-dict-ranking .ranking-item{display:flex;flex-wrap:wrap;margin-bottom:5px}.content-foot-dict-ranking .item{padding-right:2.8em}.content-foot-dict-ranking .item span{padding-right:.4em}.content-foot-dict-ranking .item a:hover{text-decoration:underline}.dict-foot-guide{position:relative;margin-top:1em}.dict-foot-guide>div{margin-bottom:10px}.dict-foot-guide>div:last-child{margin-bottom:0}.dict-foot-guide .title{font-size:1.2em;font-weight:700;line-height:1.875}.dict-foot-guide .word-list{display:flex;flex-wrap:wrap;line-height:2.2}.dict-foot-guide .word-list span{margin-right:1.4em}.dict-foot-guide .label{line-height:2.14286}.dict-foot-guide .label a{color:var(--color-font-grey);text-decoration:underline}.dict-foot-guide .label a:hover{text-decoration:none}.dict-foot-guide .fndAnc,.linker-list>.lists>span.wList{position:relative}.dict-foot-guide .fndAnc a,.linker-list>.lists>span.wList>a{padding-left:.8em}.dict-foot-guide .fndAnc a::before,.linker-list>.lists>span.wList>a::before{content:"";width:0;height:0;border-top:.4em solid transparent;border-bottom:.4em solid transparent;border-left:.6em solid var(--color-font-grey);position:absolute;left:0;top:.2em;color:var(--color-font-grey)}.dict-foot-guide .fndAnc a:hover,.dict-foot-guide .word-list a:hover{text-decoration:underline}',""]),t.exports=e},696:function(t,e,o){var r=o(1359);t.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[54],{1399:function(t,e,o){(e=o(226)(!1)).push([t.i,'button,h1,h2,h3,h4,li,ul{margin:0;padding:0}img{display:block;max-width:95%}p{margin:.5em 0}ul li{list-style-type:none}button{background:0 0;border:none}button:hover{outline:0}a{color:#f9690e;text-decoration:none}a:hover{text-decoration:underline}select{color:#666;border:1px solid rgba(133,133,133,.28);background:0 0}.entryBox-Wrap{padding-top:.8em}.entryBox{position:relative;border:1px solid #c76e06;border-radius:5px;margin-bottom:1em;padding:1em .5em .5em .5em}.entryBox-Title{position:absolute;top:0;left:1em;transform:translateY(-50%);max-width:90%;overflow:hidden;padding:0 5px;white-space:nowrap;text-overflow:ellipsis;font-size:1.2em;background:var(--color-background)}.dictWeblio-Entry>.entryBox{position:relative}.dictWeblio-Entry>.entryBox::after{content:"";display:table;clear:both}.Wpppl table{border-collapse:collapse;float:left;margin:10px 0 10px 0;padding:10px 0 10px 0;width:100%}.Wpmov table{width:100%;padding:10px 0 10px 0;margin:10px 0 10px 0;border-collapse:collapse}table.Wpmov tr.WpmovW td{padding-left:20px}table.Wpmov tr.WpmovW td{padding-left:20px}.Jmayh dl{margin:0}.Jmayh .data{background-color:#9ba8ca;border-collapse:collapse;border-spacing:-2px}.Jmayh .data th{background-color:#556ca5;border:#9ba8ca solid 2px;color:#fff;font-weight:400;padding:6px}.Jmayh .data td{background-color:#fff;border:#9ba8ca solid 2px;padding:6px}.Fkkck div{padding-top:5px}h2.midashigo sub{font-size:smaller}.Ktiau table td{padding:5px}.Ktiau table{border:currentColor solid 1px;border-collapse:collapse}.Ktiau td{border:currentColor solid 1px}.Ktiau th{border:currentColor solid 1px;text-align:left}.Ktiau tr{border:currentColor solid 1px}.Ktsbm table{border:currentColor solid 1px;border-collapse:collapse;width:600px}.Ktsbm table td{border:currentColor solid 1px;padding-left:7px;text-align:left}.Ktsbm table th{border:currentColor solid 1px;font-weight:400;padding-right:7px;text-align:left}.Ktsbm table .head{background:#f2f2f2;font-weight:700}.Ktsbm .ktsbmC{font-size:.9em;width:600px}.Ktsbm .ktsbmImg{margin:0 auto;width:400px}.Ktsbm .KtsbmImgL{float:left}.Ktsbm .KtsbmImgR{float:right}.Ktsbm .ktsbmI{margin:0 auto;width:600px}.Ktsbm .ktsbmI ul{list-style:none}.Ktsbm .ktsbmI ul li{float:left;text-align:center;width:120px}.Ktdcm br .CF{clear:both}.Ktdcm .KtdcmImg{text-align:center}.Ktdcm .KtdcmImgLeft{float:left;width:48%}.Ktdcm .KtdcmImgRight{float:right;width:48%}.Ktdcm .KtdcmImage0{margin:0 0 15px 0;text-align:center}.Ktdcm .KtdcmImage1{margin:0 0 15px 0;text-align:center}.Ktdcm table.border td{padding:5px}.Ktdcm .bgwhite{background:#fff}.Ktdcm .brownDark{background:#f0c200}.Ktdcm .brownNormal{background:#ead88c}.Ktdcm .brownLight{background:#f5edc6}.Ktdcm .grayDark{background:#cfcfcf}.Ktdcm .grayNormal{background:#e5e5e5}.Ktdcm .grayLight{background:#f2f2f2}.Ktdcm ul.notice,.Ktdcm ul.notice li,.Ktdcm ul.notice ul{list-style-type:none;margin:0;padding:0}.Ktdcm img{border:none}.Ktdcm img.border{border:#ccc solid 1px}.Ktdcm .notice img.icon{margin-left:0}.Ktdcm img.icon{margin:0 5px;vertical-align:middle}.Ktdcm .maincol{margin-left:15px;text-align:left}.Ktdcm li.non{list-style-type:none;padding-left:0}.Ktdcm li.full{width:100%}.Ktdcm ul.fright li.full{text-align:right}.Ktdcm .maincol .boxArea{margin-bottom:16px;padding-top:7px}.Ktdcm .maincol .boxArea .wrap{padding-bottom:8px}.Ktdcm .maincol .boxArea .section{padding:0 7px}.Ktdcm table.cellpt01{border-bottom:#999 solid 1px;border-right:#999 solid 1px;margin-bottom:8px}.Ktdcm table.cellpt01 td{border-left:#999 solid 1px;border-top:#999 solid 1px;padding:3px 3px}.Ktdcm table.cellpt01 td.theader{padding:5px}.Ktdcm table.cellpt02{border-bottom:#a1a1a1 solid 1px;margin-bottom:8px}.Ktdcm table.cellpt02 td{border-top:#a1a1a1 solid 1px;padding:3px 5px}.Ktdcm table.layout td{vertical-align:top}.Ktdcm table.cell2{width:560px}.Ktdcm table.cell2 .right{padding-left:16px}.Ktdcm table.cell2 .section{width:272px}.Ktdcm table.cell2 table{width:263px}.Ktdcm table.cell2 table .section{width:147px}.Ktdcm ul.notice li{margin-bottom:5px;padding-left:16px;text-indent:-12px}.Sngsj .gaiji{height:1em;vertical-align:text-bottom;width:1em}.Sngsj td.kana{color:var(--color-font-grey);font-size:90%}.Sngsj td.status{color:var(--color-font-grey)}.Sngsj td.body{line-height:1.3em;padding-bottom:10px;padding-top:20px}.Sngsj p.notice{color:#333080;font-size:95%;padding:10px 20px 10px 30px}.Otnet .OtnetBGImgDiv{background-repeat:no-repeat}.Otnet .OtnetRed{border-bottom:#ccc solid 1px;border-left:red solid 10px;border-right:#ccc solid 0;margin:12px;padding:1px 5px}.Otnet .OtnetBlue{border-bottom:#ccc solid 1px;border-left:#00f solid 10px;border-right:#ccc solid 0;margin:12px;padding:1px 5px}.Fkkyr div.box-photo{float:left;width:380px}.Fkkyr dl.data1{float:left;width:250px}.Fkkyr br.cr{clear:both}.Fkkyr div.box-model{float:left;width:380px}.Fkkyr .box-data{float:left}.Fkkyr dl.data2{width:250px}.Fkkyr #sitemap{clear:both}.Fkkyr .left_column{padding:15px 0 0 0}.Shkli{font-size:12px;border-collapse:collapse;margin:0 0 20px 0;width:100%}.Shkli td{border:1px solid #696969;text-align:center}.Shkli tr.ShkliHV td{font-size:12px;background-color:#d9d9f3;font-family:"MS ゴシック";text-align:center;padding:3px 3px 0 3px;height:100px;vertical-align:top}.Shkli tr.ShkliHV td.ShkliHL{text-align:left;vertical-align:middle;background-color:#fff}.Sunos table{line-height:1.5}div.Zndzk{width:100%}.Otnee{text-align:center}.Otnee table{line-height:1.5}.Chgth{text-align:center;padding-top:10px;padding-bottom:20px}.Chgth table{margin:0 auto}.Ednpl{padding-top:10px;padding-bottom:20px}.Ednyr{padding-top:10px;padding-bottom:20px}.Dowcp table{border-collapse:collapse}.Dowcp td{border-bottom:1px #cdcdcd dotted;padding:5px}.Fjshi{border-collapse:collapse;width:95%}.Fjshi td{border-style:dashed;border-width:0 0 1px 0;border-color:#cdcdcd;padding:8px 0 8px 0}.Sunco table{width:95%}.Sunco td.white_txt{width:100%}.Ysztk{border-collapse:collapse}.Ysztk td{padding:0 0 5px 0}.Ysztk table{border-collapse:collapse}.Ysztk table td{padding:0}.Suncy{padding:10px 5px 20px 0}.Chkgc table table table{border-collapse:collapse;border:1px currentColor solid}.Chkgc table table table td{padding:5px;border:1px currentColor solid}.Grnry .grnryInfo{background-color:#f5f5f5;border:gray solid 1px;margin-top:20px;padding:10px}.Smkbj{border-collapse:collapse;border:1px #696969 solid;width:90%}.Smkbj td{border:1px #696969 solid;padding:3px}h2.midashigo sub{font-size:smaller}h2.midashigo sub{font-size:smaller}h2.midashigo sub{font-size:smaller}.Glfyg div{padding:0 0 15px 15px}.Glfyg img{float:right;vertical-align:top}.Glfyg img.GlfygIc{float:none;vertical-align:baseline}.Uodbj{border-collapse:collapse;border:1px #696969 solid;width:90%}.Uodbj td{border:1px #696969 solid;padding:5px}.Mjkbr{border-collapse:collapse;border:1px #696969 solid}.Mjkbr td{border:1px #696969 solid;padding:5px}.Damjt .damjtInfo{background-color:#f5f5f5;border:gray solid 1px;margin-top:20px;padding:10px}.Shkgz .ShkgzBT{display:block}.Shkgz .ShkgzBB{display:block;margin-top:1.1em}.Knkyy sub{font-size:smaller}.Skiis td{vertical-align:top}.Skiis .skiisP{margin-left:13px}.hkdhj div{padding-top:5px}.hkdhj div b{color:#f30}.Tkmhg{border-collapse:collapse;width:90%}.Tkmhg td{border:1px #696969 solid;padding:3px}td.midashigo{color:#4f519b;font-weight:700;padding:10px 5px 30px 2px}.Kmkrz table{border-collapse:collapse;border-color:currentColor;border-width:1px;border-style:solid;margin:0 auto}.Kmkrz table td{border-color:currentColor;border-width:1px;border-style:solid;padding:5px}.Kmkrz .img-shrink{width:100%}.Tkzkn table td{padding:8px}.Tkzkn table table{border-width:0}.Dkijt .path{font-size:.75em;color:#555;text-align:left;margin-left:0;margin-right:auto;margin-bottom:0}.Dkijt .path-a{font-size:.75em;color:#555;text-align:left;margin-left:auto;margin-right:auto;margin-bottom:0}.Dkijt .sp{width:7em}.Dkijt p.head{text-align:left;margin:0;font-size:.625em;font-family:verdana;font-weight:700;color:#5e8eab;background-color:#f5f5f5;padding-bottom:5px;padding-top:5px;padding-left:1em;width:768px;border-bottom:solid 4px #c5e1ed}.Dkijt p.head img{margin-right:1em;vertical-align:middle;border:0}.Dkijt .kao_pic{float:right;margin-left:1em;font-size:.85em;color:#5e8eab;width:150px;text-align:center;line-height:1em;margin-top:-10px}.Dkijt .pict_r{float:left;margin-left:0;margin-right:1em;font-size:.85em;color:#5e8eab;width:150px;text-align:center;line-height:1em}.Dkijt .pict_r_s{float:left;margin-left:0;margin-right:1em;font-size:.85em;color:#5e8eab;width:100px;text-align:center;line-height:1em}.Dkijt .pict_c{text-align:center;margin-top:.2em;margin-bottom:.2em;font-size:.9em;color:#5e8eab;line-height:1em}.Dkijt h2{font-size:1em;text-align:left;border-left:solid 18px #5e8eab;padding-left:1em;margin-bottom:1em;margin-left:.5em}.Dkijt h3{font-size:1em;text-align:left;border-left:solid 18px #5e8eab;padding-left:1em;margin-top:1.5em;margin-bottom:1em;margin-left:.5em}.Dkijt .mae{margin-bottom:1em;margin-left:2em;margin-right:1em}.Dkijt p.maegaki{letter-spacing:.1em;color:#323232;line-height:.3em}.Dkijt p.a{text-indent:.875em;letter-spacing:.09em}.Dkijt p.honbun{margin-bottom:.75em;letter-spacing:.09em}.Dkijt .section{text-align:left;font-size:.875em;line-height:1.5em;color:#555;margin-top:0;margin-bottom:1em;margin-left:.7em;margin-right:.7em}.Dkijt .section a{color:#00f;font-weight:700}.Dkijt .contents{width:488px;margin-left:0;margin-right:0;position:absolute;left:145px;top:70px;border-left:solid 1px #5e8eab;border-right:solid 1px #5e8eab}.Dkijt ul em{color:#555;font-style:normal;font-weight:700;margin-left:.2em;margin-right:.2em}.Dkijt .sidebar{position:absolute;left:640px;top:80px;display:block;width:136px;border-left:solid 1px #5e8eab;border-right:solid 1px #5e8eab;border-bottom:solid 1px #5e8eab;background-color:#f5f5f5;text-align:left}.Dkijt p.midasi{line-height:2em;background-color:#dcdcdc;font-size:.85em;text-align:left;text-indent:.6em;display:block;width:136px;border-top:solid 1px #5e8eab;border-bottom:solid 1px #5e8eab;margin:0;color:#555}.Dkijt .kanren{text-indent:.75em}.Dkijt .sidebar a{display:block;white-space:nowrap;line-height:1.5em;font-size:.75em;text-decoration:none}.Dkijt .sidebar a:hover{color:red;background-color:#d8bfd8}.Dkijt .sidebar span{display:none}.Dkijt p.side{font-size:.85em;line-height:1.5em}.Kkgnj p{margin:0 0 1.33em 0}h2.midashigo rt{font-size:.5em}h2.midashigo rp{font-size:.5em}.Mntyg p{margin:0 0 1.33em 0}.Dchkm p{margin:0 0 1.33em 0}.Igokh p{margin:0 0 1.33em 0}.Krdjh p{margin:0 0 1.33em 0}.Kaigo p{margin:0 0 1.33em 0}.Bdygs table{width:90%}.Hktbn table{border-collapse:collapse;width:90%}.Hktbn table td{border:1px solid #696969}.Mngtr p{margin:0 0 1.33em 0}.Hnddb table{border:1px solid #696969}.Nhkns p{margin:0 0 1.33em 0}.Nhkns img{margin:auto 0}.Ykich td{border:1px #696969 solid;padding:3px}.Recju .recjuL{float:left;margin:6px;padding:0;width:400px}.Recju .recjuR{float:right;margin:6px;padding:0;width:220px}.Rkdsr table{border-collapse:collapse;width:45%}.Bshjj{text-align:left}.Bshjj p{margin:0 0 1.33em 0}.Bshjj h3{margin:1.33em 0}.Mtsbs .bkspecgray{background-color:#d2d2d2}.Mtsbs .bkspecgray2{background-color:#e6e6e6}.Mtsbs .bkspecgray3{background-color:var(--color-font-grey)}.Mtsbs .bkspecpink{background-color:#fbdee7}.Mtsbs .bkwhite{background-color:#fff}.Mtsbs .notes_mainArea{margin-top:10px}.Mtsbs table.spec{border-right:#666 1px solid;border-bottom:#666 1px solid;border-collapse:collapse;clear:both;padding:0;width:100%}.Mtsbs table.spec .spline th{padding:0 5px}.Mtsbs table.spec .spline td{padding:0 5px}.Mtsbs table.spec th{border-bottom:#666 1px solid;border-left:#666 1px solid;border-top:#666 1px solid;font-weight:400;line-height:normal;padding:5px;text-align:center}.Mtsbs table.spec td{border:solid 1px #666;font-weight:400;line-height:normal;padding:5px;text-align:center}.Mtsbs table.spec tr.mainheader th{background-color:#d2d2d2;font-weight:700}.Mtsbs table.spec tr.mainheader th.basic{background-color:#e8f6d9}.Mtsbs table.spec table td{padding:0;border:none}.Mtsbs table.spec .tdleft{text-align:left}.Mtsbs table.spec .tdright{text-align:right}.Mtsbs table.spec td.tdleft_nb{text-align:left;border-right-style:none}.Mtsbs table.spec td.tdright_nb{text-align:right;border-left-style:none}.Mtsbs .carmain_font80{font-size:.8em}.Mtsbs .carmain_font70{font-size:.7em}.Mtsbs td.tdleft{text-align:left}.Mtsbs td.bkspecRE{background-color:#deebde}.Mtsbs th.tdleft{text-align:left}.Koeki table{border-collapse:collapse;width:90%;border:1px solid #696969}.Koeki td{border:1px solid #696969;padding:3px}.Koeki table table{border:0}.Koeki table table td{border:0}.Koeki .koekicellL{background-color:#ddd}.Koeki .koekicellR{padding-left:5px}.Phpyg p{margin:0 0 1.33em 0}.Phpyg h3{margin:1.33em 0 0 0}.Phpyg ul{margin:0 0 0 20px;padding:0 0 0 20px}.Tnshk p{margin:0 0 1.33em 0}.Azttu table{border-collapse:collapse;border:1px solid #696969;width:90%}.Azttu td{border:1px solid #696969}.Cesih table{border-collapse:collapse;border:1px solid #696969;width:90%}.Cesih th{border:1px solid #696969;padding:3px}.Cesih td{border:1px solid #696969;padding:3px}.Cesih .Cesihdc{width:600px}.Cesih .Cesihdc img{float:right;margin:0 0 10px 15px}.Nomen img{float:left;vertical-align:top;margin-right:10px}.Gnshk b{font-size:12px;font-weight:400}.Gnshk .ChartTitle{margin:0 10px 0 0}.Gnshk .deep{color:#fff;padding:0 0 0 3px;width:500px}.Gnshk .deep div{color:#fff}.Gnshk .pale{color:currentColor;padding:0 0 0 3px;width:500px}.Gnshk .pale div{color:currentColor}.Gnshk a.colorChart{text-decoration:none}.Gnshk a.colorChart:hover{border-left:#fff solid 2px;border-right:#fff solid 2px}.Ssndh table{vertical-align:top}.Btnkb td{vertical-align:top;padding:2px}.Rkjsh table{vertical-align:top;width:100%}.Rkjsh table .rkjshI{vertical-align:top}.Rkjsh table .rkjshI,.Rkjsh table .rkjshI a{white-space:nowrap}.Kkjsh table{border-top:1px solid #999;border-left:1px solid #999}.Kkjsh table tr td{padding:2px 4px;border-bottom:1px solid #999;border-right:1px solid #999}.Kkjsh table tr td.center{text-align:center}.Kkjsh table tr td.right{text-align:right}.Kkjsh table tr td.cream{background-color:#fdfcec}.Kkjsh table tr td.gray{background-color:#ededed}.Kkjsh table tr th{padding:2px 4px;border-bottom:1px solid #999;border-right:1px solid #999;background-color:#f2f2f2;color:currentColor;text-align:center}.Tfnsr table{font-size:90%}.Tfnsr div{color:#f93;font-size:110%;font-weight:700}.Gndhh td{font-size:100%}.Mzdmt spec table{border-top:#a1a1a1 solid 1px;text-align:center;width:542px}.Mzdmt spec table td{vertical-align:middle}.Mzdmt .bg01{background-color:#f1f1f1}.Mzdmt .bg02{background-color:#fff}.Mzdmt .cell_center{border:#a1a1a1 solid;border-width:0 1px 1px 0;text-align:center}.Mzdmt .cell_center_no{border-bottom:#a1a1a1 solid 1px;height:22px;text-align:center}.Mzdmt .cell_center_left{border-right:#a1a1a1 solid 1px;text-align:center}.Mzdmt .cell_left_no{border-bottom:#a1a1a1 solid 1px;height:22px;text-align:left}.Mzdmt .cell_left{border:#a1a1a1 solid;border-width:0 1px 1px 0;height:22px;text-align:left}.Mzdmt .cell_w2{width:80px}.Mzdmt .caution_list dt{float:left}.Mzdmt .caution_list dd{margin:0;padding:0 0 0 13px;vertical-align:top}.Mzdmt .cp1{color:currentColor;font-size:77%;margin:0}.Mzdmt td.cp1{text-align:left}.Mzdmt .cp2{color:#0655d8;font-size:77%;margin:0}.Mzdmt td.cp2{vertical-align:top}.Mzdmt .cp3{color:#c00;font-size:77%;margin:0}.Mzdmt .cp4{color:#444;font-size:77%}.Mzdmt .bd5{color:#109d0d}.Mzdmt td.bd5{vertical-align:top}.Kaike p{margin:0 0 1.33em 0}.Dhtsu .DhtsuT{border:#696969 solid 1px;border-collapse:collapse}.Dhtsu .DhtsuT td{border:#696969 solid 1px}.Dhtsu .DhtsuT td table td{border:0}.Hyazi img{border:0}.Tkgyg pre{font-family:"MS ゴシック"}.Nnkyk img{border:0}.Nnkyk a{text-decoration:none}.Npohd h3{border-left:#696969 solid 5px;margin:10px 0 0 0;padding:0 10px}.Npohd table.npohdW{max-width:625px;width:100%}.Npohd .npohdW *{margin:0;padding:0}.Npohd .npohdW pre{white-space:pre-wrap;word-wrap:break-word}.Npohd .npohdW{border:1px solid #999;border-collapse:collapse;table-layout:fixed}.Npohd .npohdW td{border:1px solid #999}.Npohd .npohdW table.npoHdSubTB td{border:medium none}.Npohd .npohdW td.npohdBs{border-style:none}.Npohd .npohdW td.npohdLS{width:21%}.Npohd .npohdW td.npohdRS{width:79%}.Npohd .npohdW td{letter-spacing:-2px}.Npohd table.npoHdMainTB{width:600px}.Msdnc div.border{border:#999 solid;border-width:1px 0 0 0}.Msdnc p{margin:0 0 10px 0;padding:0}.Msdnc div.section{padding-left:20px}.Msdnc div.code{background-color:#ddd;border-bottom:#fff solid 10px;margin:0;padding:0}.Msdnc table{border-collapse:collapse;margin:10px 0 10px 0;width:100%}.Msdnc table p{margin:0;padding:0}.Msdnc table td,.Msdnc table th{font-size:3mm;padding:5px;text-align:left}.Msdnc table th{background:#ccc;vertical-align:bottom}.Msdnc .code{display:block;margin:0 10px 0 0;max-width:100%;padding:5px 5px 5px 5px}.Msdnc pre{background:#ddd;margin:0 5px 0 0;padding-top:0;padding-bottom:0;word-break:break-all;word-wrap:break-word}.Msdnc ul{margin:0 0 0 20px;padding:0}.Msdnc ul ul{padding:0;margin-top:4px}.Msdnc ul ul li{line-height:1.2em}.Msdnc ul li ul{margin-bottom:5px}.Msdnc ul li ul li{margin-bottom:5px;line-height:140%}.Msdnc li p{margin:0;padding:0}.Msdnc li ul{margin-left:-40px;padding:0}.Msdnc li ul li p{margin-left:0}.Msdnc li ul li{line-height:inherit;margin-left:40px;padding-left:10px}.Msdnc ol{margin:0;padding:0}.Msdnc ol li{margin:0 0 5 40;line-height:140%}.Msdnc table,.Msdnc td,.Msdnc th{border:#ddd solid 1px}.Sdkys dd{margin:0}.Otrks h4{border-bottom:#9da8b0 solid 1px;margin-bottom:4px;margin-top:0;padding-bottom:0}.Otrks #jiten-honbun{float:left;line-height:1.4em;margin-left:3px;margin-right:20px;width:400px}.Otrks #jiten-access{margin-bottom:20px}.Otrks #jiten-media{float:left;margin-bottom:10px;width:216px}.Otrks #jiten-movieplayer{border-top:#6c93b0 solid 1px;clear:both;padding-top:10px;text-align:right;width:660px}.Otrks .jiten-photo{background-color:#fff;border:#999 solid 0;padding:8px;text-align:center;width:200px}.Otrks .jiten-hosoku{margin-bottom:8px;margin-top:6px}.Otrks .jiten-movie-waku a{background:url(https://weblio.hs.llnwd.net/e7/img/OtsuRekishiYogojitenImg/btn_moviestart.png) no-repeat;display:block;height:30px;margin-left:9px;text-indent:-10000px;width:120px}.Triph .data table{color:currentColor;width:100%}.Triph .data caption{background:#94b7df;border-right:#fff solid 1px;border-top:#fff solid 1px;color:#fff;font-weight:700;padding:2px 17px}.Triph .data th,.data td{border-right:#fff solid 1px;border-top:#fff solid 1px;padding:2px 17px;background:#eff4fa}.Triph .data th{background:#dfe9f5;font-weight:400;vertical-align:top;width:106px}.Triph #colourChoices{background:#f1f1f1;padding:2px 5px;width:50%}.Triph #rollOver{color:#999}.Triph #colourChanger img{border:#b8b8b8 solid 1px}.Triph #colourChanger span{display:none}.Sndib table{border:#696969 solid 1px;border-collapse:collapse;width:90%}.Sndib table th{background-color:#f5f5f5;border:#696969 solid 1px;font-weight:700;padding:3px}.Sndib table td{border:#696969 solid 1px;padding:3px}.Aprla table{border-collapse:collapse}.Kaiso td{padding:2px}.Cntkj table th{text-align:left;white-space:nowrap}.Cntkj iframe{border:#b6b6b6 solid 1px;height:250px;margin-top:15px;width:100%}.Cntkj .com_prof{float:left;width:55%}.Cntkj .description{float:right;width:43%}.Nnkdt img{margin-top:10px;width:400px}.Snntd table{border:#696969 solid 1px;border-collapse:collapse}.Snntd td{border:#696969 solid 1px}.Snntd img{margin-bottom:15px}.Ezndt .EzndtTd{width:134px}.Ezndt img{margin:10px 0 10px 0}.Nyugy p{margin:0 0 1.33em 0}.Srjtn table{border:currentColor solid 1px;border-collapse:collapse}.Srjtn table td{border:currentColor solid 1px;padding:1px 6px 1px 6px}.Yesrs table{width:100%}.Yesrs table .YesrsTd{color:#fff}.Hyndi table{width:100%}.Hyndi .spec-table{border:#b8b9d2 solid;border-width:1px 0 0 1px}.Hyndi .spec-table th,.spec-table td{border:#b8b9d2 solid;border-width:0 1px 1px 0;padding:10px}.Hyndi .spec-table th.row{text-align:center}.Hyndi .spec-table th{background-color:#e5e5ef;font-weight:400;text-align:left}.Hyndi .spec-table th.violet{background-color:#7f7fb2;color:#fff;font-weight:700}.Hyndi .spec-table th.center{text-align:center}.Hyndi .spec-table td{text-align:center;vertical-align:middle}.Hyndi .spec-table td.left{text-align:left}.Hyndi .spec-table td.remarks{text-align:left;vertical-align:text-top}.Hyndi .spec-table td.remarks ul{line-height:1.4em;list-style:square;margin:0 0 0 1em;padding:0}.Hyndi .spec-table-foot .r-mark{color:red}.Rnult td{color:currentColor;font-size:.9em;line-height:1.2em}.Rnult .RnultT{border:#696969 solid 1px;border-collapse:collapse}.Rnult .RnultT td{border:#696969 solid 1px}.Ukybz table{border:currentColor solid 1px;border-collapse:collapse}.Ukybz table td{border:currentColor solid 1px;padding:3px}.Abrms table{border:currentColor solid 1px;border-collapse:collapse}.Abrms table td{border:currentColor solid 1px;padding:3px}.Osaka table{border:#696969 solid 1px;border-collapse:collapse;width:90%}.Osaka table th{background-color:#f5f5f5;border:#696969 solid 1px;font-weight:700;padding:3px}.Osaka table th.OsakaL{width:20%}.Osaka table th.OsakaC{width:30%}.Osaka table th.OsakaR{width:50%}.Osaka table td{border:#696969 solid 1px;padding:3px}.Osaka table td.OsakaL{width:20%}.Osaka table td.OsakaC{width:30%}.Osaka table td.OsakaR{width:50%}.Hndmr .autoline-up-table-grade{border:currentColor solid;border-width:1px 1px 1px 0;font-size:.9em}.Hndmr .autoline-up-table-grade td{border-left:currentColor solid 1px;border-top:#505050 solid 1px}.Hndmr .autoline-up-table-grade td.element{border-left:none;line-height:1.2em;padding:3px 0 3px 2px}.Hndmr .autoline-up-table-grade td.category{border-left:none;font-size:.9em;padding:0 3px 0 3px;text-align:center}.Hndmr .autoline-up-table-grade td.std{padding:3px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-grade td.fuel{background-color:#fddaec;padding:3px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-grade td.division-rt{border-left:currentColor solid 1px}.Hndmr .autoline-up-table-grade td .star{color:#008837}.Hndmr .autoline-up-table-grade td.layout-bottom-border{border-bottom:currentColor solid 1px}.Hndmr table#webcatalogue-table td{color:var(--color-font-grey)}.Hndmr table#webcatalogue-table img{border:none}.Hndmr table#webcatalogue-table p{margin:0;padding:0}.Hndmr table#webcatalogue-table p.leadcopy{color:currentColor;font-size:.9em;font-weight:700;line-height:18px}.Hndmr table#webcatalogue-table p.leadcopy2{font-size:.9em;font-weight:700;line-height:21px}.Hndmr table#webcatalogue-table p.text{font-size:.9em;line-height:16px}.Hndmr table#webcatalogue-table p.caution{color:#888;font-size:.9em;line-height:12px;margin-top:3px}.Hndmr table#webcatalogue-table span.typebetsu{font-size:.9em;font-weight:400}.Hndmr table#webcatalogue-table p.concepttext{color:#fff;line-height:18px;margin:0 15px 10px 15px}.Hndmr table#webcatalogue-table strong.v6{color:#003f98}.Hndmr table#webcatalogue-table p.safe-midashi{background-color:currentColor;color:#fff;font-size:.9em;font-weight:700;line-height:18px;padding:3px 5px 3px 5px}.Hndmr table#webcatalogue-table p.realworldtext{color:#51318f}.Hndmr table#webcatalogue-table span.co2{font-size:.9em}.Hndmr table#webcatalogue-table p.texthyoujimark{font-size:.9em;line-height:16px}.Hndmr table#webcatalogue-table #env-data{font-size:.9em}.Hndmr table#webcatalogue-table #env-data td.tabletext{padding:2px}.Hndmr table#webcatalogue-table strong.price{font-size:.9em}.Hndmr table#webcatalogue-table p.caution_vg{margin-top:7px}.Hndmr table#webcatalogue-table p.navi-midashi{background-color:#1c1f7a;color:#fff;font-size:.9em;font-weight:700;line-height:18px;padding:3px 5px 3px 5px}.Hndmr table#webcatalogue-table .note{color:#1c1f7a}.Hndmr table#webcatalogue-table span.komidashi{color:#006965}.Hndmr .autoline-up-table-eqp{border:currentColor solid;border-width:0 1px 1px 0;font-size:.9em}.Hndmr .autoline-up-table-eqp td{border-left:currentColor solid 1px;border-top:#505050 solid 1px}.Hndmr .autoline-up-table-eqp td.top{border-top:none}.Hndmr .autoline-up-table-eqp td.none{border-left:none;border-top:none}.Hndmr .autoline-up-table-eqp td.element{border-left:none;line-height:130%;padding:6px 0 3px 2px}.Hndmr .autoline-up-table-eqp td.category{border-left:none;font-size:.9em;padding:0 3px 0 3px}.Hndmr .autoline-up-table-eqp td.std{background-color:#cbc9e2;padding:6px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-eqp td.maker{background-color:#b3d0c5;padding:6px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-eqp td.muji{padding:6px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-eqp td.division-rt{border-left:currentColor solid 1px}.Hndmr .autoline-up-table-eqp td.layout-bottom-border{border-bottom:currentColor solid 1px}.Hndmr #auto-line-up-eqp-hosoku{text-align:left;width:900px}.Hndmr #auto-line-up-eqp-hosoku h3{font-size:.9em;margin:35px 0 6px 0;padding:0}.Hndmr #auto-line-up-eqp-hosoku .all-type{border:#202020 solid 1px;padding:5px 25px 5px 25px}.Hndmr #auto-line-up-eqp-hosoku .all-type h4{border-bottom:gray solid 1px;font-size:.9em;margin:0;padding:10px 0 4px 0}.Hndmr #auto-line-up-eqp-hosoku .all-type p{font-size:.9em;margin:0;padding:6px 0 8px 0}.Hndmr #auto-line-up-eqp-hosoku p.caution-table{font-size:.9em;line-height:150%}.Hndmr #auto-line-up-eqp-hosoku p.caution_maker{background-color:#bdd7d9;font-size:.9em;line-height:120%;margin:10px 0 10px 0;padding:6px 10px 5px 10px}.Hndmr #auto-line-up-eqp-hosoku p.caution{font-size:.9em;line-height:150%}.Hndmr .autoline-up-table-eqp{border:currentColor solid;border-width:0 1px 1px 0;font-size:.9em}.Hndmr .autoline-up-table-eqp td{border-left:currentColor solid 1px;border-top:#505050 solid 1px}.Hndmr .autoline-up-table-eqp td.top{border-top:none}.Hndmr .fuel{background-color:#fbe6ef}.Hndmr .autoline-up-table-eqp .fuel{background-color:#fbe6ef}.Hndmr p.fuel2{background-color:#fbe6ef}.Hndmr span.akamaru{color:#d90000}.Hndmr .star{color:#008837}.Hndmr .autoline-up-table-eqp td.none{border-left:none;border-top:none}.Hndmr .autoline-up-table-eqp td.element{border-left:none;line-height:130%;padding:6px 0 3px 2px}.Hndmr .autoline-up-table-eqp td.category{border-left:none;font-size:.9em;padding:0 3px 0 3px}.Hndmr .autoline-up-table-eqp td.std{background-color:#cbc9e2;padding:6px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-eqp td.maker{background-color:#b3d0c5;padding:6px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-eqp td.muji{padding:6px 0 3px 0;text-align:center}.Hndmr .autoline-up-table-eqp td.division-rt{border-left:currentColor solid 1px}.Hndmr .autoline-up-table-eqp td.layout-bottom-border{border-bottom:currentColor solid 1px}.Hndmr #auto-line-up-eqp-hosoku{text-align:left;width:600px}.Hndmr #auto-line-up-eqp-hosoku h3{font-size:.9em;margin:35px 0 6px 0;padding:0}.Hndmr #auto-line-up-eqp-hosoku .all-type{border:#202020 solid 1px;padding:5px 25px 5px 25px}.Hndmr #auto-line-up-eqp-hosoku .all-type h4{border-bottom:gray solid 1px;font-size:.9em;margin:0;padding:10px 0 4px 0}.Hndmr #auto-line-up-eqp-hosoku .all-type p{font-size:.9em;margin:0;padding:6px 0 8px 0}.Hndmr #auto-line-up-eqp-hosoku p.caution-table{font-size:.9em;line-height:150%}.Hndmr #auto-line-up-eqp-hosoku p.caution_maker{background-color:#bdd7d9;font-size:.9em;line-height:120%;margin:10px 0 10px 0;padding:6px 10px 5px 10px}.Hndmr #auto-line-up-eqp-hosoku p.caution{font-size:.9em;line-height:150%}.Hndmr table.spec-table{border-top:1px solid #2c2c2c}.Hndmr table.spec-table td{border-right:1px solid #2c2c2c;border-bottom:1px solid #2c2c2c;text-align:center}.Hndmr table.spec-table td.bd-left{border-left:1px solid #2c2c2c}.Hndmr table#spec td.data{text-align:center;border-left:1px solid currentColor}.Hndmr table#spec td.type-name{text-align:center;font-weight:700;color:#fff;background-color:#415863}.Hndmr table#spec td.sikiri-top{border-top:2px solid currentColor}.Hndmr table#spec td.sikiri-bottom{border-bottom:2px solid currentColor}.Hndmr p.inspire-spec{font-weight:700}.Hndmr #spec-table td{font-size:.9em}.Hndmr #spec-table td.suuchi{border-left:1px solid #2c2c2c;text-align:center}.Hndmr #spec-table td.nenpi{border-left:1px solid #2c2c2c;text-align:center}.Hndmr #spec-table td p{margin:0;padding:.2em .1em .2em .1em}.Hndmr #spec-table td.tekiyougawa{text-align:center}.Hndmr #spec-table td.makeroption{background-color:#a0c3d0}.Hndmr #spec-table td.nakasen{background-color:currentColor}.Hndmr #spec-table td.nenpi{background-color:#fddaec}.Hndmr #spec-table td{border-bottom:1px solid #666}.Hndmr #spec-table td.bdtop{border-top:1px solid #666}.Hndmr .block_color{background-color:#7dcdf4}.Hndmr .block_color2{background-color:#00a0e9;color:#fff}.Hndmr .block_color3{background-color:#bfbfbf}.Hndmr .block_color4{background-color:#f9c270}.Hndmr .block_line{border-bottom:solid 1px currentColor;border-left:solid 1px currentColor}.Hndmr .block_line_top{border-top:solid 1px currentColor}.Hndmr .block_line_right{border-right:solid 1px currentColor}.Hndmr .position{text-align:center}.Hndmr p.nenpi{margin:.3em 0;padding:.3em .2em;background-color:#fadce9}.Hndmr table#type-midashi{border:1px solid currentColor;border-bottom:2px solid currentColor;border-collapse:collapse}.Hndmr table#type-midashi td{font-size:11px;line-height:13px;text-align:center}.Hndmr table#type-midashi span{font-size:10px}.Hndmr table#type-midashi strong{font-size:12px}.Hndmr #type-midashi td.migi{border-right:1px solid currentColor}.Hndmr #type-midashi td.sita{border-bottom:1px solid currentColor}.Hndmr table#spec th{border-top:1px solid currentColor}.Hndmr table#spec td{border-top:1px solid currentColor}.Hndmr table#spec .spec{border-top:1px solid currentColor}.Hndmr table#spec td.spec-name{border-right:1px solid currentColor;border-bottom:1px solid currentColor;padding:2px 0 2px 2px}.Hndmr table#spec td.atai{text-align:center;border-right:1px solid currentColor;border-bottom:1px solid currentColor}.Hndmr table#spec td.atai2{text-align:center;border-right:1px solid currentColor;border-bottom:1px solid currentColor;background-color:#fbe6ef}.Hndmr table#spec td.category-botom{border-bottom:2px solid currentColor}.Hndmr table#spec td.category-name{font-weight:700;border-left:1px solid currentColor;border-bottom:2px solid currentColor}.Hndmr table.caution{width:640px}.Hndmr table.caution td{font-size:10px;line-height:1.3em}.Hndmr #spec-table td.line-migisita{border-right-width:1px;border-bottom-width:1px;border-right-style:solid;border-bottom-style:solid;border-right-color:currentColor;border-bottom-color:currentColor}.Hndmr #spec-table td.line-migi{border-right-width:1px;border-right-style:solid;border-right-color:currentColor}.Hndmr #spec-table td.line-sita{border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:currentColor}.Hndmr #spec-table td.speccontents{text-align:center}.Hndmr #spec-table td.speccontents-katasiki{text-align:center}.Hndmr p.zentype-category{font-weight:700}.Hndmr #webcata_footer{clear:both;padding:30px 128px 15px 20px;text-align:right}.Hndmr #listtable{font-size:80%;font-style:normal;font-weight:400;border:currentColor solid;border-width:2px 0 0 2px}.Hndmr #listtable td{border:currentColor solid;border-width:0 1px 1px 0;padding:2px;text-align:center}.Hndmr #listtable td.midashi1{border-width:0 0 2px 2px;text-align:center;vertical-align:middle}.Hndmr #listtable td.midashi1b{border-width:0 2px 0 2px;text-align:center;vertical-align:middle}.Hndmr #listtable td.midashi2{border-right-width:2px;text-align:left;vertical-align:top}.Hndmr #listtable td.midashi2b{border-right-width:0;text-align:left;vertical-align:top}.Hndmr #listtable td.midashi2c{border-width:0 2px 2px 0;text-align:left;vertical-align:top}.Hndmr #listtable td.midashi2d{border-width:0 0 2px 0;text-align:left;vertical-align:top}.Hndmr #listtable .cell-border{border-bottom-width:2px}.Hndmr #listtable .cell-normal{background-color:#f1f9fb}.Hndmr #listtable .cell-makeroption{background-color:#f1f8ed}.Hndmr #listtable .cell-normal-border{background-color:#f1f9fb;border-bottom-width:2px}.Hndmr #listtable .cell-makeroption-border{background-color:#f1f8ed;border-bottom-width:2px}.Hndmr #listtable .cell-border2{border-right-width:2px}.Hndmr #listtable .cell-normal2{background-color:#f1f9fb;border-right-width:2px}.Hndmr #listtable .cell-makeroption2{background-color:#f1f8ed;border-right-width:2px}.Hndmr #listtable .cell-normal-border2{background-color:#f1f9fb;border-width:0 2px 2px 0}.Hndmr #listtable .cell-makeroption-border2{background-color:#f1f8ed;border-width:0 2px 2px 0}.Hndmr #listtable .cell-border3{border-width:0 2px 2px 0}.Hndmr #listtable .cell-border3b{border-width:0 2px 2px 0;text-align:left;vertical-align:top}.Hndmr #listtable .cell-border4{border-width:0 0 2px 2px}.Hndmr #listtable .cell-border5{border-right-width:0}.Hndmr #listtable .cell-border6{border-width:0 2px 0 2px}.Hndmr #listtable .cell-noborder{border-width:0}.Hndmr #listtable .type{font-size:small}.Hndmr #listtable .noborder{border-width:0;padding:0}.Hndmr #listtable .noborder2{border-width:0 2px 0 0;padding:0}.Hndmr p.footnote-r{font-size:x-small;margin-bottom:10px;text-align:right}.Hndmr p.footnote-l{font-size:x-small;line-height:130%;text-align:left}.Hndmr #specifications{font-size:x-small;line-height:130%;text-align:center;margin-bottom:5px;border-width:2px 1px 0 2px;border-style:solid;border-color:currentColor}#specifications td,.Hndmr #specifications th{padding:2px}.Hndmr #specifications th.midashi{font-weight:400;text-align:left;border-width:0 1px 1px 0;border-style:solid;border-color:currentColor}.Hndmr #specifications th.midashi2{font-weight:400;text-align:left;border-width:0 1px 2px 0;border-style:solid;border-color:currentColor}.Hndmr #specifications th.midashi3{border-width:0 0 2px 0;border-style:solid;border-color:currentColor}.Hndmr #specifications th.car{font-size:medium;font-weight:700;background-color:#d9d9d9;border-width:0 1px 1px 0;border-style:solid;border-color:currentColor;line-height:130%}.Hndmr #specifications th.car .small{font-size:x-small;line-height:120%}.Hndmr #specifications th.ff-4wd{font-weight:700;border-width:0 1px 2px 0;border-style:solid;border-color:currentColor}.Hndmr #specifications td.midashi{border-width:0 1px 1px 0;border-style:solid;border-color:currentColor;text-align:left;vertical-align:top}.Hndmr #specifications td.midashi2{border-width:0 1px 2px 0;border-style:solid;border-color:currentColor;text-align:left;vertical-align:top}.Hndmr #specifications td.cell{border-width:0 1px 1px 0;border-style:solid;border-color:currentColor;text-align:center}.Hndmr #specifications td.cell2{border-width:0 1px 2px 0;border-style:solid;border-color:currentColor;text-align:center}.Hndmr #specifications td.cell-fuel{border-width:0 1px 1px 0;border-style:solid;border-color:currentColor;background-color:#fadce9;text-align:center}.Hndmr #specifications td.midashi-fuel{border-width:0 1px 1px 0;border-style:solid;border-color:currentColor;text-align:left;vertical-align:top;background-color:#fadce9}.Hndmr .green{color:#094}.Hndmr .fuel{background-color:#fadce9}.Hndmr #spec{border:currentColor solid;border-width:0 0 1px 0;font-size:x-small;line-height:130%;margin-bottom:5px}#spec td,.Hndmr #spec th{border:currentColor solid;border-width:1px 0 0 0;vertical-align:top;padding:2px 5px 2px 5px}.Hndmr #spec th{background-color:#e6e6e6;font-weight:400;text-align:left}.Hndmr #spec .spec{border:currentColor solid;border-width:0 0 0 1px;text-align:center}.Hndmr #spec .fuel{background-color:#bccde9}.Hndmr #spec .specfuel{background-color:#bccde9;border:currentColor solid;border-width:0 0 0 1px;text-align:center}.Hndmr .footnote{font-size:x-small;line-height:130%}.Hndmr .footnote .spec{color:#003f98}.Hndmr div#web-catalog-contents{margin:24px;width:461px}.Hndmr div#web-catalog-contents h4{background:#325958;color:#fff;font-size:.9em;margin-bottom:14px;padding:4px 0 4px 10px;width:451px}.Hndmr div#web-catalog-contents table.model-navi{margin:0 0 5px 0}.Hndmr div#web-catalog-contents table.model-navi td{padding:0 25px 0 10px}.Hndmr div#web-catalog-contents *{margin:0;padding:0}.Hndmr div#web-catalog-contents h4 span{font-size:.9em;font-weight:400}.Hndmr div#web-catalog-contents p.caution,p.caution{font-size:.9em;line-height:120%}.Hndmr #eq_spec_list{background-color:#fff;border:gray solid;border-width:1px 0 0 1px;font-size:.9em;margin-bottom:15px}.Hndmr #eq_spec_list td{border:gray solid;border-width:0 1px 1px 0;padding:2px}.Hndmr #eq_spec_list td.right_non_border{border-right:none}.Hndmr #eq_spec_list td p{width:10px}.Hndmr #eq_spec_list td.list_top{background-color:#03494a;color:#fff;font-weight:700}.Hndmr #eq_spec_list td.txt_center{text-align:center}.Hndmr .card_index img{border:0;float:right}.Hndmr .card_index br{clear:both}.Tgrgj table{border:#696969 solid 1px;border-collapse:collapse;width:90%}.Tgrgj table th{background-color:#f5f5f5;border:#696969 solid 1px;font-weight:700;padding:3px}.Tgrgj table td{border:#696969 solid 1px;padding:3px}.Smsbj table{border:#696969 solid 1px;border-collapse:collapse;width:90%}.Smsbj table th{background-color:#f5f5f5;border:#696969 solid 1px;font-weight:700;padding:3px}.Smsbj table td{border:#696969 solid 1px;padding:3px}.Volvo table.specTable{background:#e9e6e1;border:none;border-bottom:#fff solid 1px;border-collapse:collapse;font-size:10pt}.Volvo table.specTable th,table.specTable td{padding:7px}.Volvo table.specTable thead th{background:#999;color:#fff;border:solid 1px;border-color:#ece9d8 #aaa #889294 #aaa}.Volvo table.specTable tbody th{background:#c1d2d9;border:#fff solid 1px;border-color:#879294 #fff #ece9d8 #c7d0d7;color:#60686b;text-align:left}.Volvo table.specTable tbody td{border:#fff solid 1px;border-bottom:none;border-color:#ece9d8 #fff}.Volvo table.specTable tbody tr.b td{background:#dedbd2}.Htmlr table{width:100%}.Htmlr table td{padding:3px}.Htmlr .nmg,.Htmlr .nmp{margin:0}.Htmlr .exp{background-color:#eee}.Htmlr .tbl{background-color:#ccc;border:#696969 solid;border-width:1px 0 1px 0}.Htmlr .gray td{background-color:#ddd;border:#696969 solid;border-width:0 0 1px 0}.Htmlr .wht td{border:#696969 solid;border-width:0 0 1px 0}.Htmlr td.gray{background-color:#ddd;border:#696969 solid;border-width:0 0 1px 0}.Htmlr td.wht{border:#696969 solid;border-width:0 0 1px 0}.Htmlr .exsamp{font-size:.8em;margin:0;padding:0}.Frdmr div.content{font-size:.9em}.Frdmr div.content_wide{font-size:.9em}.Frdmr h3{font-size:.9em}.Frdmr table.Fordtable{border:#84a2c6 solid 1px;border-collapse:collapse;font-size:.9em;width:100%}.Frdmr td{border-right:#84a2c6 solid 1px;text-align:center;width:200px}.Frdmr td.Fordannotd{border-right:#fff solid 1px;text-align:left;width:20%}.Frdmr td.Forddeltd{border-right:#fff solid 1px;text-align:left}.Frdmr td.Fordlabel{text-align:left;width:30%}.Frdmr td.Fordtdest{text-align:center;width:30%}.Frdmr td.Fordtd{text-align:center}.Frdmr th{border-right:#84a2c6 solid 1px}.Frdmr th.Fordmondeo{vertical-align:top}.Frdmr th.label{text-align:left}.Frdmr tr.alt{background-color:#e7eff7}.Frdmr tr.head{background-color:#f7f3e7}.Omtsd table{border:currentColor solid 1px;border-collapse:collapse;text-align:center;width:590px}.Omtsd table td{border:currentColor solid 1px}.Omtsd table th{border:currentColor solid 1px}.Tnskj img{float:left;margin:0 10px 0 10px}.Ydkrz{text-align:center}.Ydkrz p{margin:20px 50px 20px 50px;text-align:left}.Lndrv table.LndrvFL{border:#ccc solid 1px;border-collapse:collapse;text-align:center;width:100%}.Lndrv table.LndrvFL td{background-color:#f4f7fb;border:#ccc solid 1px}.Spchk table{border:currentColor solid 1px;border-collapse:collapse;width:100%}.Spchk table th{background-color:#eee;border:currentColor solid 1px}.Spchk table td{border:currentColor solid 1px}.Ktmbd table{border:#666 solid 1px;border-collapse:collapse;width:100%}.Ktmbd table td{border:#666 solid 1px}.Ycezj .YcezjL{float:left;text-align:center;width:400px}.Ycezj .YcezjR{float:right;text-align:left;width:240px}.Ycezj .YcezjR .YcezjReal{float:left;text-align:center;width:120px}.Ycezj .YcezjR .YcezjWinm{float:right;text-align:center;width:120px}.Szkdb table{border:#999 solid 1px;border-collapse:collapse;width:80%}.Szkdb table td{border:#999 solid 1px}.Opsyg .OpsygK{border:#cdcdcd solid;border-width:0 0 1px 0;font-weight:700;margin:0;width:550px}.Buell table{border:#696969 solid 1px;border-collapse:collapse}.Buell table td{border:#696969 solid 1px}.Dctbd table{border:#999 solid 1px;border-collapse:collapse;width:80%}.Dctbd table td{border:#999 solid 1px}.Bmwag table{border-collapse:collapse;width:600px}.Bmwag table td{border:#999 solid;border-width:1px 0 1px 0}.Bmwag table th{text-align:left}.Bmwag .BmwagR{text-align:right}.Szkmt .e9{font-size:9px}.Szkmt .e10{font-size:10px}.Szkmt .e12{font-size:12px}.Szkmt .j9{font-size:10px}.Szkmt .j10{font-size:11px}.Szkmt .j12{font-size:12px}.Szkmt .j14{font-size:14px}.Szkmt .e9l{font-size:9px}.Szkmt .e10l{font-size:10px}.Szkmt .e12l{font-size:12px}.Szkmt .j9l{font-size:10px}.Szkmt .j10l{font-size:11px}.Szkmt .j12l{font-size:12px}.Szkmt .j14l{font-size:14px}.Szkmt .e9h{font-size:9px}.Szkmt .e10h{font-size:10px}.Szkmt .e12h{font-size:12px}.Szkmt .j9h{font-size:10px}.Szkmt .j10h{font-size:11px}.Szkmt .j12h{font-size:12px}.Szkmt .j14h{font-size:14px}.Szkmt .style1{color:red}.Wpgjn .Wpgjntable{border:#ff9a9c solid 1px;border-collapse:collapse}.Ngkyg p{margin:0 0 1.33em 0}.Esttd .EsttdFloatL{float:left;width:280px}.Esttd .EsttdSpecBox{float:right;margin:0;width:310px}.Mokat .MokatL{float:left;width:170px}.Mokat .MokatR{float:right;width:520px}.Osksk .OskskL{float:left;width:310px}.Osksk .OskskR{float:right;width:300px}.Osksk table{border:currentColor solid 1px;border-collapse:collapse}.Osksk table td{border:currentColor solid 1px;font-size:.9em}.Keiod .KeiodL{float:left;width:545px}.Keiod .KeiodR{float:right;margin-left:10px;width:145px}.Kmbkz .KmbkzL{float:left;width:530px}.Kmbkz .KmbkzR{float:right;margin-left:10px;width:150px}.Ibrtd table{border-collapse:collapse}.Ktskk a img{border:0}.Ktskk .KtskkM{border:currentColor solid;border-width:0 0 1px 5px;font-size:1em;font-weight:700;width:50%}.Jagar table{color:gray}.Jagar table#JAGUAR_XF{border:#696969 solid 1px;border-collapse:collapse;color:currentColor;text-align:center}.Tndhs .TndhsC table{border:currentColor solid 1px;border-collapse:collapse}.Tndhs .TndhsC table td{border:currentColor solid 1px}.Snbkk table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Snbkk td{border:currentColor solid 1px;text-align:center}.Snbkk th{border:currentColor solid 1px;text-align:center}.Acgty .AcgtyL{float:left;width:410px}.Acgty .AcgtyR{float:right;margin-left:10px;text-align:center;width:270px}.Oranf table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Oranf td{border:currentColor solid 1px;text-align:center}.Oranf th{border:currentColor solid 1px;text-align:center}.Oranf .OranfL{float:left;margin-left:5px;text-align:center}.Oranf .OranfR{float:right;margin-right:5px;text-align:center}.Oranf .OranfC{margin-left:265px;text-align:center;width:185px}.Oranf p{margin:10px 0 0 0;padding:0}.Oranf span{display:block}.Hgnhf .HgnhfBox{background-color:#ddd;font-weight:700;margin:3px 0 3px 0;padding:0 0 0 3px}.Hgnhf .HgnhfBrd{border:#ccc solid 1px;font-weight:700;margin:3px 0 3px 0;padding:0 0 0 3px}.Hgnhf .ship_data{float:right;height:185px;margin-bottom:10px;width:225px}.Hgnhf .data_img{float:left}.Hgnhf .ship_data th{background:silver;border-bottom:#fff solid 1px;font-weight:400;padding:3px;text-align:left}.Hgnhf .ship_data td{background:#ddd;border-bottom:#fff solid 1px;padding:3px}.Hgnhf *{margin:0;padding:0}.Hknks .HknksT table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Hknks .HknksT td{border:currentColor solid 1px;text-align:center}.Okisf .OkisfT table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Okisf .OkisfT td{border:currentColor solid 1px;padding:0 5px 0 5px;text-align:center}.Hankf table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Hankf td{border:currentColor solid 1px;padding:0 5px 0 5px;text-align:center}.Myzkf table table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Myzkf table table td{border:currentColor solid 1px;padding:0 5px 0 5px;text-align:center}.Ipmks .IpmksImg img{margin:3px 0 3px 0}.SSMTF .SsmtfL{float:left;width:35%}.SSMTF .SsmtfR{float:right;width:65%}.Ssimk .SsimkBlackLine{background-color:currentColor}.Tkwfr .TkwfrTable td{border:#eee solid 1px;border-left:#ddd solid 5px;position:relative}.Tkwfr .TkwfrTable th{background-color:#eee;border-bottom:#fff solid 1px;border-left:#fff solid 1px;width:35%}.Tkwfr .TkwfrTable{border:#eee solid 1px;border-collapse:collapse;margin-bottom:10px;width:284px}.Tkwfr .TkwfrTable td ul{margin-top:10px}.Tkwfr .TkwfrTable th,.TkwfrTable td{padding-left:10px;padding-top:4px;text-align:left;vertical-align:top}.Gicns .ga_contents{margin:0;padding:0;width:595px}.Gicns .ga_small{font-size:.9em}.Gicns .ga_name_d{background-color:#f5f5f5;border:#ddd solid 1px;line-height:1.2em;margin:0 0 10px;padding:6px 2px 2px 12px;width:579px}.Gicns .ga_name_g{background-color:#f5f5f5;border:#ddd solid 1px;font-weight:400;margin:0 0 10px;padding:6px 2px 2px 12px;width:579px}.Gicns .ga_photogroup{float:left;margin:0 10px 10px 0;padding:0;width:220px}.Gicns .ga_frame_d{background-color:#fff;border:silver solid 1px;margin:0 0 10px;padding:0;width:208px}.Gicns .ga_frame_d2{background-color:#fff;border:#ddd solid 1px;margin:0 0 10px;padding:0;width:208px}.Gicns .ga_ftitle_d{background-color:silver;border-bottom:#eee solid 1px;font-size:.9em;height:22px;margin:0;padding:2px;text-align:center;width:204px}.Gicns .ga_ftitle_d2{background-color:#f5f5f5;border-bottom:#ddd solid 1px;font-size:.9em;height:22px;margin:0;padding:2px;text-align:center;width:204px}.Gicns .ga_fexp{margin:10px;padding:0}.Gicns .ga_fexp ul{margin:4px 0;padding:0}.Gicns .ga_fexp li{line-height:1.2em;margin:6px 0 6px 14px;padding:0}.Gicns .ga_exp{line-height:1.4em;margin:0 0 20px 10px;padding:0}.Gicns .ga_frame{background-color:#fff;border:silver solid 1px;margin:0 0 10px;padding:0;width:148px}.Gicns .ga_ftitle{background-color:silver;font-size:.9em;height:22px;margin:0;padding:2px;text-align:center;width:144px}.Gicns .ga_frame2{background-color:#fff;border:#ddd solid 1px;margin:0 0 10px;padding:0;width:148px}.Gicns .ga_ftitle2{background-color:#f5f5f5;font-size:.9em;height:22px;margin:0;padding:2px;text-align:center;width:144px}.Nchcz .nchczB{border:gray solid 1px}.Nchcz .nchczT{border:gray solid 1px;border-collapse:collapse}.Nchcz .nchczT td{border:gray solid 1px}.Smzkn table{border:gray solid 1px;border-collapse:collapse}.Sfnyg img{float:left;margin-right:5px;vertical-align:top}.Ksyhs .KsyhsThumImg{float:left;margin:0;padding:0;width:158px}.Bsgys div.boxinner{padding:5px 5px 5px 10px}.Bsgys div.boxbottom{height:5px}.Bsgys span.Bsgysfn{color:#436976;font-size:.8em;font-weight:700;vertical-align:super}.Bsgys h1,.Bsgys h2,.Bsgys h3,.Bsgys h4,.Bsgys h5{background-color:inherit;border-bottom:currentColor 1px solid;clear:left;color:currentColor;font-size:100%;font-weight:700;margin:0 0 .5em 0;padding:1em 0 0 0;z-index:0}.Bsgys div.BsgysImg{float:left;margin:13px 0 9px 10px;width:88px}.Bsgys .BsgysLicense{margin-top:10px;width:100%}.Bsgys div.BsgysLicense{border:gray solid 1px}.Bsgys div.BsgysText{float:left;font-size:.8em;margin:7px 0 10px 10px;width:520px}.Bsgys table{border-collapse:collapse}.Bsgys table.inline td{border:#8cacbb 1px solid;padding:3px}.Bsgys table.inline th{background-color:#dee7ec;border:#8cacbb 1px solid;padding:3px}.Knnsz .KnnszL{text-align:center;float:left;width:260px}.Knnsz .KnnszR{float:right;width:365px}.Knnsz dd{margin-left:24px;padding:0}.Knnsz ol{margin:0;padding:0}.Esksk Img{margin:3px 0}.Esksk .eskskC{text-align:center;vertical-align:middle;width:300px;height:300px}.Zkknm .ZkknmL{float:left;width:350px}.Zkknm .ZkknmR{float:right;width:290px}.Kkszi .KksziL{float:left;width:450px}.Kkszi .KksziR{float:right;width:175px}.Gzicr .GzicrL{float:left;width:450px}.Gzicr .GzicrR{float:right;width:175px}.Nsrsk dt{border-left:currentColor solid 6px;text-indent:1ex}.Nsrsk .NsrskMaintxt{float:left;text-align:left}.Nsrsk .NsrskRightph{border:#ccc solid 1px;float:right;text-align:center}.Hknac .table03 table{margin:6px 0 0}.Hknac .table03 td{border:#fff solid 1px;vertical-align:top}.Tltdb div.TltdbLeft{float:left;text-align:center}.Tltdb img{display:block}.Tltdb strong{color:gray;font-size:.9em;font-weight:400}.Tltdb table{border-collapse:collapse;float:right;width:400px}.Tltdb table td.Tltdbtitle{border-top:#ccc 1px dotted;font-weight:700;text-align:left;width:120px}.Tltdb table td{border-top:#ccc 1px dotted}.Mntey .intro{background-color:#f5f5f5;border:gray solid 1px;margin-top:25px;padding:10px}.Ssmnf .imgbox{text-align:right;width:605px}.Ssmnf .imgbox img{margin-bottom:5px}.Ssmnf .imgbox .imgboxspan{border:#000 solid 1px;padding:3px}.Tytmt .specTbl2{width:100%}.Tytmt .specTbl{width:100%}.Tytmt table{border-collapse:collapse}.Tytmt table td{border:currentColor solid 1px;padding:3px}.Tytmt table tr{border:currentColor solid 1px;padding:3px}.Tytmt table table td{border:0}.Tytmt table table tr{border:0}.Tytmt .smallMText{font-size:.7em}.Jlgci .Jlgciclub-box{border:#ccc solid;border-width:1px 1px 0 1px}.Jlgci .Jlgciclub-box th{background-color:#eee;border-bottom:#ccc solid 1px;border-right:#aaa solid 1px;vertical-align:middle;width:30%}.Jlgci td{border-bottom:#ccc solid 1px;background-color:#fff;padding-left:5px}.Lxsmt dt{float:left}.Lxsmt table{border-collapse:collapse;width:100%}.Lxsmt table td{border:currentColor solid 1px;padding:3px}.Lxsmt table tr{border:currentColor solid 1px;padding:3px}.Lxsmt table table td{border:0}.Lxsmt table table tr{border:0}.Lxsmt td{vertical-align:top}.Lxsmt th{vertical-align:top}.Ktiem table.KtiemBorder{border:currentColor solid 1px;border-collapse:collapse;width:100%}.Ktiem table.KtiemBorder td{border:currentColor solid 1px}.Ktiem table.KtiemBorder th{border:currentColor solid 1px}.Ktiem table.KtiemBSpec{border:currentColor solid 1px;border-collapse:collapse;width:100%}.Ktiem table.KtiemBSpec td{border:currentColor solid 1px}.Nkski .NkskiData{float:right;width:60%}.Nkski .NkskiPh{float:left;text-align:center;width:35%}.Nkski .NkskiTitle{font-weight:700;line-height:1.2em}.Nkski table{border:#ccc solid 1px;border-collapse:collapse}.Nkski td{border:#ccc solid 1px;text-align:center}.Nkski th{background-color:#dedfde;border:#ccc solid 1px}.Ktkei .KtkeiImg{float:left;width:40%}div.Kkirn{margin:0 auto;width:250px}.Kkirn table{border:#999 solid 1px;border-collapse:collapse;width:250px}.Kkirn table th{background-color:#f7fff0;padding:4px 6px;border:#999 solid 1px}.Kkirn table td{border:#999 solid 1px;padding:4px 6px}.Tpkys div.paintBox p.txt{float:left;width:400px}.Tpkys div.paintBox p.img{float:right;width:172px}.Tpkys div.paintBox p.img span{display:block;padding-top:2px}.Tpkys div.stroke p.txt{float:left;width:330px}.Tpkys div.stroke p.img{float:right;width:122px}.Tpkys div.stroke div.imgArea{float:right;width:249px}.Tpkys div.stroke div.imgArea p{float:left;margin-right:5px;width:122px}.Tpkys div.stroke div.imgArea p.rightImg{margin-right:0}.Tpkys div.sputtering p.img{float:right}.Tpkys .howtoBoxEnd{float:left}.Tpkys dd,.Tpkys dl,.Tpkys dt{margin:0;padding:0}.Tpkys .closeBoxIn div{border:#ccc dotted;border-width:1px 0 1px 1px;float:left;height:350px;padding:10px;width:135px}.Tpkys .closeBoxIn div.makeRight{border:#ccc dotted 1px;float:left;height:350px;padding:10px;width:135px}.Hgksi table{border:currentColor solid 1px;border-collapse:collapse}.Srsbz .SrsbzLeft{float:left;width:290px}.Srsbz .SrsbzRight{float:right;width:320px}.Nrksm .NrksmMargin{margin-top:10px}.Nrksm .NrksmSI .NrksmSIOne{float:left;margin:0 0 0 10px;text-align:center}.Nrksm .NrksmT1 td{padding:2px 10px 2px 5px;vertical-align:top}.Nrksm .NrksmT1 th{font-weight:700;padding:2px 10px 2px 5px;text-align:left;vertical-align:top;width:100px}.Nrksm .NrksmT2 caption{font-weight:700;text-align:left}.Nrksm .NrksmT2 table{border-collapse:collapse}.Nrksm .NrksmT2 td{border:1px solid #ccc;padding:2px 4px}.Nrksm .NrksmT2 th{background-color:#f5f5f5;border:1px solid #ccc;font-weight:400;padding-top:2px 4px;text-align:center}.Nrksm .NrksmT3{float:left;margin:5px;width:350px}.Nimky .sew_toolBox .toolBoxIn p{float:left;width:200px}.Nkifr .NkifrImgTd{vertical-align:top}.Trhnt table{border-collapse:collapse;border:1px solid #696969;margin-top:10px;width:300px}.Trhnt .TrhntLeft{float:left;width:260px}.Trhnt .TrhntRight{float:right;width:370px}.Njsgs .hrLong{border:none;border-top:#696969 dotted 1px;font-size:1px;height:1px;margin:0 auto 0 0;padding:none;text-align:left;width:620px}.Njsgs .hrShort{border:none;border-top:#696969 dotted 1px;font-size:1px;height:1px;margin:0 auto 0 0;padding:none;text-align:left;width:510px}.Cryle table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Cryle td{border:currentColor solid 1px;text-align:center}.Cryle .header{border-left:#fff solid 1px;border-right:#fff solid 1px;border-top:#fff solid 1px;font-weight:700;text-align:left}.Jeepm table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Jeepm td{border:currentColor solid 1px;text-align:center}.Jeepm .header{border-left:#fff solid 1px;border-right:#fff solid 1px;border-top:#fff solid 1px;font-weight:700;text-align:left}.Dodge table{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Dodge td{border:currentColor solid 1px;text-align:center}.Dprss .tableBorder{border:currentColor solid 1px;border-collapse:collapse;text-align:center}.Dprss .tableBorder th{background-color:#e6e6e6;border:currentColor solid 1px;text-align:center}.Dprss .tableBorder td{border:currentColor solid 1px;text-align:center}.Nrtdi dd{border-right:#ccc solid 1px;border-top:#ccc solid 1px;margin-left:13.3em;padding:4px}.Nrtdi dl{border-bottom:#ccc solid 1px;border-left:#ccc 1px solid;float:left;margin:0 0 10px;width:340px}.Nrtdi dt{border-right:#ccc solid 1px;border-top:#ccc 1px solid;float:left;padding:4px;width:12.7em}.Nrtdi img{margin-right:10px}.Hgnsh .clearfix{width:550px}.Hgnsh .syosaiLeft{float:left;margin:0 0 0 5px;width:290px}.Hgnsh .syosaiLeftBox{line-height:1.4em;margin-top:15px;text-align:justify;text-justify:inter-ideograph;width:290px}.Hgnsh .syosaiRight{float:right;margin-top:5px;width:200px}.Hgnsh .syosaiRightBox{text-align:center;width:200px}.Hgnsh .syosaiRightBox img{margin-bottom:0;padding:15px 0 15px}.Hskks #syosai{width:550px}.Hskks .syosaiLeft{float:left;margin:0 0 0 5px;width:300px}.Hskks .syosaiLeftBox{line-height:1.4em;margin-top:15px;text-align:justify;text-justify:inter-ideograph;width:300px}.Hskks .syosaiRight{float:right;margin-top:5px;width:200px}.Hskks .syosaiRightBox{text-align:center;width:200px}.Hskks .syosaiRightBox img{margin-bottom:0;padding:15px 0 15px}.Fkokk .FkokkTMargin{margin:0 0 10px}.Fkokk .FkokkDMargin{margin:0 0 10px}.Hinom .HinomTd{text-align:left}.Hinom .HinomTdBr2{text-align:right}.Hinom .HinomTdDL{border-bottom:#fff solid 1px;text-align:left}.Hinom .HinoTdJ{border-top:#fff solid 1px;text-align:left;vertical-align:top}.Hinom table{border:currentColor solid 1px;border-collapse:collapse;width:100%}.Hinom td{border:currentColor solid 1px;text-align:center}.Grikt .GriktDiv{border-top:#ccc solid 1px;font-weight:700}.Grikt .GriktNavi-hanrei{text-align:right}.Grikt rt.GriktTg{font-weight:700}.Grikt span.GriktTg{text-decoration:underline}.Gztmn .GztmnImgR{float:right}.Gztmn .GztmnTh{border:currentColor solid 1px}.Gztmn table{border:currentColor solid 1px;border-collapse:collapse}.Gztmn td{border:currentColor solid 1px}.Nhnkz a.NhnkzAnchor{background-image:url(https://weblio.hs.llnwd.net/e7/img/link_out.png);background-position:right top;background-repeat:no-repeat;padding:0 14px 0 0}.Nhnkz .NhnkzData2{background-color:#eee;border-collapse:collapse}.Nhnkz .NhnkzData2 td{background-color:#fff;border:#ccc solid 2px;padding:3px}.Nhnkz .NhnkzData2 th{background-color:#eee;border:#ccc solid 2px;color:currentColor;font-weight:400;padding:3px}.Nhnkz h2.NhnkzULine{border-bottom:#ccc solid 1px;font-size:100%;font-weight:700;margin-bottom:5px;margin-top:5px;padding:3px 0 0 0}.Mnjtn .MnjtnFont{font-size:10px}.Fjtrs .textcenter{text-align:center}.Ksbdb .Ksbdbcell{padding:3px;vertical-align:top}.Ntwky .ntwkyRH{font-weight:700;margin-bottom:0}.Ntwky .ntwkyRL{margin-top:0}.Kkykc .kkykcL{vertical-align:top;padding-right:16px}.Kkykc .kkykcR{vertical-align:top}.Kcnys .kcnysPHC{text-align:center}.Kcnys .kcnysPH{margin:0 auto;padding:10px;width:500px}.Kkkys .kkkysLi li{list-style:none}.Kkkys .kkkysLi span{margin-left:-29px}.Kkkys .kkkysLis li{list-style:none}.Kkkys .kkkysLis span{margin-left:-21px}.Sngjy .sngjyPD{text-align:right}.Sngjy .sngjyPgh{font-size:.4em}.Sngjy .sngjyBQ{font-style:italic;margin-top:0;margin-bottom:0}.Sngjy table{font-size:.9em}.Skazy table{border-collapse:collapse}.Skazy table td{border:1px currentColor solid;padding:4px;vertical-align:top}.Knjjn table{margin:5px 0 30px 0}.Jmnep{border-collapse:collapse}.Jmnep table{border-collapse:collapse;border:1px #696969 solid;width:40%}.Jmnep table th{background-color:#f5f5f5;border:1px #696969 solid;font-weight:700;padding:3px;white-space:nowrap}.Jmnep table td{border:1px #696969 solid;padding:5px;line-height:1.3em}.Jmnep .JmnepL{font-weight:700}.Jmnep .jmnepR{width:50%}.Tkkyy p{margin:0 0 8px 0}.Tkkyy .tkkyyH{font-weight:700;margin:0}.Sgkkk p{margin:0 0 8px 0}.Sgkkk img{margin:8px}.Jdhky .jdhkyT{border-top:1px #ddd solid;border-left:1px #ddd solid;margin-bottom:1.5em}.Jdhky .jdhkyT td,.Jdhky .jdhkyT th{border-right:1px #ddd solid;border-bottom:1px #ddd solid;padding:8px 10px;vertical-align:middle}.Jdhky .jdhkyT th{background:#f6f6f6;color:#006;font-weight:700}.Jdhky .jdhkyT tr.jdhkyH th{background:#608cc9;color:#fff;vertical-align:middle}.Jdhky .jdhkyC{text-align:center}.Jdhky .jdhkyB{margin:0;padding:0}.Jdhky .jdhkyBL{float:left;margin:0;padding:10px 0 10px 0;width:400px}.Jdhky .jdhkyBR{float:right;margin:0;padding:10px 0 10px 0;width:220px}.Jdhky .jdhkyInfo{background-color:#f5f5f5;border:gray solid 1px;margin:30px 0;padding:10px}.Nhsgb table{border-collapse:collapse;width:90%;border:1px solid #696969}.Nhsgb td{border:1px solid #696969;padding:3px}.Nhsgb .nhsgbL{background-color:#ddd;text-align:center;width:40px}.Nhsgb .nhsgbR{padding-left:5px}.Nhskb table{border-collapse:collapse;width:90%;border:1px solid #696969}.Nhskb td{border:1px solid #696969;padding:3px}.Nhskb .nhskbL{background-color:#ddd;text-align:center;width:40px}.Nhskb .nhskbR{padding-left:5px}.Nkbjw td{margin:0;padding:0;vertical-align:top}.Nkbjw .nkbjwL{float:left;width:440px}.Nkbjw .nkbjwTL{white-space:nowrap;width:100px}.Nkbjw .nkbjwTL a{white-space:nowrap}.Nkbjw .nkbjwR{float:right;width:185px}.Nkbjw .nkbjwI{border:currentColor solid 1px}.Nkbjw .nkbjwD{background-image:url(https://weblio.hs.llnwd.net/e7/img/link_out.png);background-position:right center;background-repeat:no-repeat;margin-top:0;padding:0 14px 0 0;text-align:right}.Pnkkj{border-collapse:collapse}.Pnkkj .pnkkjS{font-weight:700;margin:0;padding:15px 15px 20px 0}.Pnkkj .pnkkjN{font-weight:700}.Pnkkj .pnkkjA{text-align:right}.Pnkkj .pnkkjT{border-collapse:collapse;border:1px #696969 solid;width:97%}.Pnkkj .pnkkjT th{background-color:#f5f5f5;border:1px #696969 solid;font-weight:700;padding:3px;text-align:left;white-space:nowrap}.Pnkkj .pnkkjT td{border:1px #696969 solid;padding:5px;line-height:1.3em}.Pnkkj .pnkkjOT{border-collapse:collapse;border:1px #f5f5f5 solid;width:97%}.Pnkkj .pnkkjOT th{background-color:#f5f5f5;border:1px #f5f5f5 solid;font-weight:400;padding:3px;text-align:left;white-space:nowrap}.Pnkkj .pnkkjOT td{border:1px #f5f5f5 solid;padding:5px}.Pnkkj .pnkkjT .pnkkjTN{font-weight:700}.Pnskj .pnskjA{text-align:right}.Pnskj .pnskjPS{background-color:#eee;border:dotted;border-color:#abc9a2;border-width:1px;padding:2px}.Pnskj .pnskjPSH{border:1px #a9a9a9 dashed;background:#eee;font-size:small;font-weight:700;margin:0 8px 0 8px;padding:2px 10px}.Pnskj .pnskjPSB{margin:0 10px 0 10px}.Ykysb .ykysbTL{width:15%}.Yznhg h2{margin:1.5em 0 .8em;padding:1px 5px 1px 5px;font-size:130%;background:url(https://weblio.hs.llnwd.net/e7/img/dict/yznhg/shared/templates/free/images/contents/h2_bg.gif) left bottom repeat-x;border-top:1px solid #9fb7d4;border-right:1px solid #9fb7d4;border-bottom:1px solid #9fb7d4;border-left:4px solid #05155c}.Yznhg h3{margin:1.5em 0 .8em;padding:0 5px 0 22px;font-size:120%;background:url(https://weblio.hs.llnwd.net/e7/img/dict/yznhg/shared/templates/free/images/contents/h3_bg.gif) left center no-repeat;border-bottom:1px solid #9fb7d4}.Tkdkb .tkdkbR{margin:20px 0 0 0}.Tkdkb ul{margin-top:0}.Jajcw h3,.Jajcw h4,.Jajcw h5{margin:0 auto;padding:0}.Jajcw h3{font-size:1em}.Jajcw .jwSubTtlH{display:block;font-size:1.2em;margin:3px 0 1px 0}.Jajcw .jwSubTtlH span{border-left:#7f7f7f solid 5px;line-height:1.2em;margin-left:2px;padding:0 2px 0 5px;text-decoration:none}.Jajcw .jwjHdC{border:#666 solid 1px;font-size:.9em;font-weight:400;padding:1px}.Jajcw dl,.Jajcw p{margin:1px 0 1px 5px;padding:0}.Jajcw ol,.Jajcw ul{margin:0 auto;padding:0 auto}.Jajcw .jajcwLastMd{font-size:.8em;text-align:right;margin:0;padding:0}.Jajcw sup{font-size:.8em}.Jajcw .navFrmHd{padding:2px 10px 2px 0;text-align:left;width:100%}.Jajcw .navFrmHdB{background-color:#efefef;padding:0 10px}.Nhgkt .nhgktL{background-color:#eee;border:#999 solid 1px;color:currentColor;float:left;font-size:.9em;line-height:1em;margin:8px;padding:1px}.Nhgkt .nhgktR{float:left;font-size:.9em;line-height:1em;margin:4px;padding:1px;width:500px}.Nhgkt .nhgktInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:50px 0 0 0;padding:10px;width:500px}.Nhgkt .nhgktD{font-size:6px}.Zkksb table{border:1px #696969 solid;border-collapse:collapse;width:97%}.Zkksb table td{border:1px #696969 solid;line-height:1.3em;padding:5px}.Zkksb .zkksbL{background-color:#f5f5f5;padding:3px;white-space:nowrap;width:100px}.Szggj div#szggjJS{margin:0 0 16px}.Szggj .medusa_cell{padding:6px;width:280px}.Szggj .medusa_img_area{float:left;width:50px}.Szggj .medusa_text_area{float:left;width:200px}.Szggj .medusa_text_area p{font-size:.8em;line-height:.8em;margin:0;padding:0}.Szggj div#medusa_cell1{float:left}.Szggj div#medusa_cell2{float:right}.Kkgys h2.kkgysS{border-bottom:#ccc solid 1px}.Kkgys .kkgysInfo{background-color:#f5f5f5;border:gray solid 1px;margin:30px 0;padding:10px}.Kkgys table{background-color:#ccc;margin-left:10px}.Kkgys th{background-color:#f5f2dc;color:#353535;padding:8px;text-align:left}.Kkgys td{background-color:#fff;color:#353535;padding:8px;text-align:left}.Ingdj ol{margin:0;padding:0}.Ingdj li{margin-left:22px}.Ingdj .ingdjL{border:#666 solid 1px;font-size:.9em;padding:1px}.Ingdj .ingdjInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:10px 0 0 0;padding:10px;width:500px}.Tnhgj .tnhgjInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:50px 0 0 0;padding:10px;width:500px}.Bngkt .bngktL{background-color:#eee;border:#999 solid 1px;color:currentColor;float:left;font-size:.9em;line-height:1em;margin:8px;padding:1px}.Bngkt .bngktR{float:left;font-size:.9em;line-height:1em;margin:4px;padding:1px;width:500px}.Bngkt .bngktInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:50px 0 0 0;padding:10px;width:500px}.Bngkt .bngktD{font-size:6px}.Sptjn .sptjnR{float:right}.Sptjn .sptjnL{float:left}.Efref .efrefTO{background-color:#fff;border-bottom:1px solid #ccc;color:#454545;height:40px;padding:0;vertical-align:top}.Efref .efrefTE{background-color:#f3f3f3;border-bottom:1px solid #ccc;border-top:1px solid #ccc;color:#454545;height:40px;padding:0;vertical-align:top}.Efref .efrefC{border-collapse:collapse;font-size:12px;margin-bottom:20px}.Efref .efrefC th{background:none repeat scroll 0 0 #d8d8d8!important;border-bottom:1px solid #a4a4a4;border-top:1px solid #a4a4a4;color:currentColor;padding:3px 10px 3px 5px;text-align:left}.Efref ul{padding:0}.Efref ul li{list-style:square;list-style-position:inside;padding:0;text-align:left}.Efref h2{border-bottom:1px solid #4d4d4d}.Efref .efrefA{color:#999;font-size:14px;margin:0 0 12px}.Efref pre{background-color:#eee;padding:8px}.Efref .efrefCN{background:none repeat scroll 0 0 #f9f9f9;border:#eaeaea solid none;border-width:1px;color:#454545;font-size:12px;font-weight:400;margin:20px 0 5px;padding:1px 2px 1px 1px}.Efref .efrefCI36{margin-left:44px}.Wkpkm .wkpkmT{margin:0;text-align:right}.Wkpkm .wkpkmT{margin-top:16px}.Wkpkm .wkpkmN{margin-top:16px}.Wkpkm .wkpkmInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:50px 0 0 0;padding:10px;width:500px}.Cgkgj .cgkgjSm,h2.midashigo .cgkgjSm{font-size:.6em;margin-left:.4em}.Hlddb *{padding:0;margin:0}.Hlddb .hlddbC{font-size:18px;font-weight:700;width:auto}.Hlddb div.hlddbT{border-collapse:collapse;border-spacing:0;empty-cells:show;margin:0 0 20px 0}.Hlddb div.hlddbT table{font-size:13px;font-family:Arial;width:500px}.Hlddb div.hlddbT table th{text-align:left;font-weight:400;padding:0 0 0 5px;margin:0}.Hlddb div.hlddbT table td{margin:0;padding:2px 0}.Hlddb div.hlddbT table tr.hlddbO{background-color:#eaeaea}.Hlddb ol,.Hlddb ul{list-style-type:none}.Gkjyj span{border:#666 solid 1px;font-size:.9em;line-height:1em;margin-right:5px;padding:1px}.Tssmj p{margin:0 0 15px 0}.Tssmj span{border:#666 solid 1px;font-size:.9em;line-height:1em;margin-right:5px;padding:1px}.Dshar p{word-break:normal;word-wrap:break-word}.Dshar .DsharC{border:#666 solid 1px;font-size:.9em;line-height:1em;padding:1px}.Dshar .dsharInfo{background-color:#f5f5f5;border:gray solid 1px;margin-top:20px;padding:10px}.Pdqgy .pdqgyInfo{background-color:#ffd;border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.5em;margin:30px 0 0 0;padding:10px}table.shosn{width:100%}table.shosn td{vertical-align:top}.Qqqdb .qqqdbInfo{background-color:#f5f5f5;border:gray solid 1px;margin-top:20px;padding:10px}.wrpEx{height:25px;margin:0}.wrpEx p{color:#525152;font-size:1em;height:20px;margin:0 .5em 0 0;padding:3px 0 0 5px}.wrpEx p a:active,.wrpEx p a:link,.wrpEx p a:visited{color:#525152;font-size:1em;text-decoration:none}.wrpEx p span{color:#9c9a9c;font-size:.7em}.wrpEx p.wrpExFL{color:#525152;font-size:.8em;height:20px;margin:0 .5em 0 0;padding:3px 0 0 5px}.clr{clear:both;font-size:0;line-height:0;overflow:hidden}.clrBc{clear:both;display:block;font-size:0;line-height:0;overflow:hidden}.contFtB{line-height:1.8em;margin:0;padding:10px 0 0 10px}.contFtB li{background-image:url(https://weblio.hs.llnwd.net/e7/img/icons/wRenew/iconPntBk.png);background-repeat:no-repeat;list-style:none;padding:0 0 0 8px}.fndAnc b,.fwlAnc b{display:none}.contFtB a,.linkTl{position:relative;top:-8px}#linkTag .linkTagR{font-size:.8em;font-weight:400;text-align:right}.phraseWrp *{line-height:1.2em}.phraseCtWrp{margin-top:0}.phraseCtWrp p{display:inline}.phraseCtWrp table{border:0;margin:0}.phraseCtWrp b{font-size:.8em}.phraseCtTtl{background-color:#ebebeb;font-size:.8em;padding:4px 2px 2px 6px;text-align:left;vertical-align:top;width:180px}.phraseCtDes{background-color:#f7f7f7;font-size:.8em;padding:2px 5px;text-align:left;vertical-align:top;width:74%}.phraseCtLink{font-size:1em;margin:2px 2px 0 0;text-align:right}.phraseCtLink a{color:#848284}.mainLeftAdWrp{margin-bottom:10px;padding-left:13px}.mainLeftAdWrpL{float:left;margin-bottom:10px;margin-right:40px}.mainLeftAdWrpR{margin-bottom:10px;float:left}.trnsBtn{background-color:transparent;border:0;color:#fff;cursor:hand;cursor:pointer;font-size:13px;font-weight:700;height:20px;left:5px;line-height:22px;margin:0;padding:0;position:relative;top:5px;text-align:center;width:101px;z-index:20}.trnsBtnWrp{border:#a21a06 solid 1px;display:block;height:20px;left:5px;margin:0 0 -10px 0;position:relative;top:-15px;width:100px}.trnsBtnH{background-color:#ca2109;display:block;font-size:0;height:10px;position:relative;top:0;width:100px;z-index:1}.trnsBtnB{background-color:#b81e07;display:block;font-size:0;height:10px;position:relative;top:0;width:100px;z-index:1}.trnsMdlBxWrp{background-color:#f5f5f5;border:#dfdfdf solid 1px;margin:10px 0;padding:2px;text-align:left;width:99%}.trnsMdlBxB{background-color:#e2e2e2;padding:0 8px 0 8px}.trnsMdlBxTtlTbl{font-size:14px;margin-bottom:2px;width:100%}.trnsMdlBxTtlL a{color:currentColor;font-weight:700}.trnsMdlBxTtlR{text-align:right}.trnsMdlBxDsc{background-color:#e2e2e2;width:100%}.trnsMdlBxTx{font-size:13px;margin:0 auto;overflow:auto;width:100%}.trnsMdlBxBtn{vertical-align:middle}.trnsMdlBxBtnTbl{border-collapse:collapse;font-size:12px;margin:0 auto;padding:0;width:100%}.trnsMdlBxBtnTblLB{position:relative;top:-4px}.trnsMdlBxBtnTblL{width:80%}:root *>.trnsMdlBxBtnTblL{width:83%}.trnsMdlBxBtnTblL input{position:relative;top:3px}.copyRtWrp .lgDict{float:left}.pbarT{border-bottom:#2b2b2b solid 6px;border-collapse:collapse;margin:0;padding:0;position:relative;width:100%}.pbarTLW{bottom:0;display:inline;position:absolute}.kijiHdCt{display:inline;font-size:12px;position:relative;bottom:6px;z-index:1}.pbarTR{text-align:right}.wList{margin:0 10px 0 0;padding:0}.kiji{color:#111;font-size:1em;line-height:1.7em;margin-bottom:5px}.kiji *{font-size:100%;line-height:1.7em;white-space:normal;word-break:break-all}.kiji pre{white-space:pre}.kiji h2{font-size:1.1em}h2.midashigo{font-size:1.1em;color:currentColor}.hrDot{border-style:dotted none none none;border-top-width:2px;border-top-color:silver;margin:0 0 15px 0;padding:0}.SsdSml,.SsdSmlEx{font-size:12px;padding-right:10px}.SsdSmlIE .SsdSml{height:0}.SsdSmlL{font-weight:700;float:left}.SsdSmlR{float:right;text-align:right;margin-top:5px}.SsdSmlR br{display:none}.SsdSmlCt{background-color:#f7f7f7;clear:both;margin:25px 0 0 8px;padding:2px 8px}.SsdSmlRK{color:var(--color-font-grey);font-size:12px;padding:3px 15px}.fndAnc{font-size:13px;margin:0 0 -5px 0;padding:0}.fndAnc b{font-weight:400}.fwlAnc{font-size:13px;margin:0 0 -5px 0;padding:0}.fwlAnc b{font-weight:400}.content-foot-dict-ranking{margin-bottom:1em}.content-foot-dict-ranking .dict-ranking-title{margin-bottom:5px}.content-foot-dict-ranking .ranking-item{display:flex;flex-wrap:wrap;margin-bottom:5px}.content-foot-dict-ranking .item{padding-right:2.8em}.content-foot-dict-ranking .item span{padding-right:.4em}.content-foot-dict-ranking .item a:hover{text-decoration:underline}.dict-foot-guide{position:relative;margin-top:1em}.dict-foot-guide>div{margin-bottom:10px}.dict-foot-guide>div:last-child{margin-bottom:0}.dict-foot-guide .title{font-size:1.2em;font-weight:700;line-height:1.875}.dict-foot-guide .word-list{display:flex;flex-wrap:wrap;line-height:2.2}.dict-foot-guide .word-list span{margin-right:1.4em}.dict-foot-guide .label{line-height:2.14286}.dict-foot-guide .label a{color:var(--color-font-grey);text-decoration:underline}.dict-foot-guide .label a:hover{text-decoration:none}.dict-foot-guide .fndAnc,.linker-list>.lists>span.wList{position:relative}.dict-foot-guide .fndAnc a,.linker-list>.lists>span.wList>a{padding-left:.8em}.dict-foot-guide .fndAnc a::before,.linker-list>.lists>span.wList>a::before{content:"";width:0;height:0;border-top:.4em solid transparent;border-bottom:.4em solid transparent;border-left:.6em solid var(--color-font-grey);position:absolute;left:0;top:.2em;color:var(--color-font-grey)}.dict-foot-guide .fndAnc a:hover,.dict-foot-guide .word-list a:hover{text-decoration:underline}',""]),t.exports=e},729:function(t,e,o){var r=o(1399);t.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/54.e2ed033e.js b/plugins/saladict-ztools/ext-saladic/assets/54.e2ed033e.js deleted file mode 100644 index 055f489f..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/54.e2ed033e.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[54,55],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function l(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function s(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function s(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=l}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),s=u.firstChild?u.firstChild[t]:"";return r?r(s):s}function f(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),s=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x=y(/^(?:\w+script|data):/i),w=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function O(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var E=("undefined"!=typeof Reflect&&Reflect).apply,S=Array.prototype.slice,L=Object.freeze,R=function(){return"undefined"==typeof window?null:window};E||(E=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":_(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,N=a.document,k=a.DocumentFragment,D=a.HTMLTemplateElement,C=a.Node,j=a.NodeFilter,H=a.NamedNodeMap,z=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,F=a.Text,I=a.Comment,U=a.DOMParser,P=a.TrustedTypes;if("function"==typeof D){var W=N.createElement("template");W.content&&W.content.ownerDocument&&(N=W.content.ownerDocument)}var q=M(P,d),B=q?q.createHTML(""):"",G=N,$=G.implementation,K=G.createNodeIterator,V=G.getElementsByTagName,Y=G.createDocumentFragment,X=d.importNode,Z={};f.isSupported=$&&void 0!==$.createHTMLDocument&&9!==N.documentMode;var J=g,Q=v,ee=b,te=T,ne=x,re=w,oe=A,ie=null,ae=m({},[].concat(O(t),O(n),O(r),O(o),O(i))),ce=null,ue=m({},[].concat(O(c),O(u),O(l),O(s))),le=null,se=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,Te=!1,Ae=!1,xe=!1,we=!0,_e=!0,Oe=!1,Ee={},Se=m({},["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"]),Le=m({},["audio","video","img","source","image"]),Re=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,ke=N.createElement("form"),De=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":_(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Re="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},se="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Ee="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,xe=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,we=!1!==e.SANITIZE_DOM,_e=!1!==e.KEEP_CONTENT,Oe=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Ee&&(ie=m({},[].concat(O(i))),ce=[],!0===Ee.html&&(m(ie,t),m(ce,c)),!0===Ee.svg&&(m(ie,n),m(ce,u),m(ce,s)),!0===Ee.svgFilters&&(m(ie,r),m(ce,u),m(ce,s)),!0===Ee.mathMl&&(m(ie,o),m(ce,l),m(ce,s))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Re,e.ADD_URI_SAFE_ATTR),_e&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),L&&L(e),Ne=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},je=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},He=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new U).parseFromString(e,"text/html")}catch(e){}if(y&&m(le,["title"]),!t||!t.documentElement){var o=(t=$.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=q?q.createHTML(e):e}return e&&n&&t.body.insertBefore(N.createTextNode(n),t.body.childNodes[0]||null),V.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{He('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=He("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return K.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,(function(){return j.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===C?"undefined":_(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":_(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ue=function(e,t,n){Z[e]&&Z[e].forEach((function(e){e.call(f,t,n,Ne)}))},Pe=function(e){var t=void 0;if(Ue("beforeSanitizeElements",e,null),Fe(e))return Ce(e),!0;var n=e.nodeName.toLowerCase();if(Ue("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[n]||le[n]){if(_e&&!Se[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",q?q.createHTML(r):r)}catch(e){}return Ce(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ue("afterSanitizeElements",e,null),!1)},We=function(e,t,n){if(we&&("id"===t||"name"===t)&&(n in N||n in ke))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||se[t])return!1;if(Re[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Le[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},qe=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;Ue("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],l=u.name,s=u.namespaceURI;if(n=t.value.trim(),r=l.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,Ue("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=E(S,a,[]),je("id",e),je(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!se[r]))continue;"id"===l&&e.setAttribute(l,""),je(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Se).join("|")+")","i").test(n))je(l,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(We(d,r,n))try{s?e.setAttributeNS(s,l,n):e.setAttribute(l,n),f.removed.pop()}catch(e){}}}Ue("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(Ue("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ue("uponSanitizeShadowNode",n,null),Pe(n)||(n.content instanceof k&&e(n.content),qe(n));Ue("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===_(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||De(t),f.removed=[],Oe);else if(e instanceof C)1===(r=(n=He("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ye&&xe&&-1===e.indexOf("<"))return q?q.createHTML(e):e;if(!(n=He(e)))return be?null:B}n&&ve&&Ce(n.firstChild);for(var u=ze(Oe?e:n);o=u.nextNode();)3===o.nodeType&&o===i||Pe(o)||(o.content instanceof k&&Be(o.content),qe(o),i=o);if(i=null,Oe)return e;if(be){if(Te)for(c=Y.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Ae&&(c=X.call(d,c,!0)),c}var l=ye?n.outerHTML:n.innerHTML;return he&&(l=(l=l.replace(J," ")).replace(Q," ")),q&&xe?q.createHTML(l):l},f.setConfig=function(e){De(e),ge=!0},f.clearConfig=function(){Ne=null,ge=!1},f.isValidAttribute=function(e,t,n){Ne||De({});var r=e.toLowerCase(),o=t.toLowerCase();return We(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},637:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return a})),n.d(t,"search",(function(){return c})),n.d(t,"moedictSearch",(function(){return u}));var r=n(5),o=n(131),i=n.n(o);const a=async e=>"https://www.moedict.tw/"+(await Object(r.b)())(e),c=(e,t,n,r)=>u("a",e,t,n.dicts.all.guoyu.options);async function u(e,t,n,o){const a=await Object(r.b)(),{data:c}=await i.a.get(`https://www.moedict.tw/${e}/${encodeURIComponent(a(t.replace(/\s+/g,"")))}.json`).catch(r.g);if(!c||!c.h)return Object(r.h)();o.trans||(c.translation=void 0);const u={result:c};for(const e of c.h)e["="]&&(e["="]=`https://203146b5091e8f0aafda-15d41c68795720c6e932125f5ace0c70.ssl.cf1.rackcdn.com/${e["="]}.ogg`),u.audio||(u.audio={py:e["="]});return u}},836:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return a}));var r=n(5),o=n(637);const i=async e=>"https://www.moedict.tw/~"+(await Object(r.b)())(e),a=(e,t,n,r)=>Object(o.moedictSearch)("c",e,t,n.dicts.all.liangan.options).then(e=>(e.result.h&&e.result.h.forEach(e=>{e.p&&(e.p=e.p.replace("<br>陸⃝"," [大陆]: "))}),e))}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/55.131fe516.js b/plugins/saladict-ztools/ext-saladic/assets/55.131fe516.js new file mode 100644 index 00000000..7d28391c --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/55.131fe516.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[55],{1400:function(e,t,i){(t=i(226)(!1)).push([e.i,'.Liscj .liscjWC{font-style:italic}.Jmdct .jmdctDm,.Jmdct .jmdctYm{margin:4px 0 4px 0}.Jmdct .jmdctGlsL{float:left;margin:0;vertical-align:top;width:20px}.Jmdct .jmdctGlsR{float:left;margin:0;vertical-align:top}.Jmdct .jmdctL{background-color:#f0f0f0;border:#666 solid 1px;color:#363636;font-size:.9em;font-weight:400;line-height:1em;margin-right:8px;padding:1px}.Jmdct table td.jmdctT{text-align:right;vertical-align:top;width:70px}.Jmned .jmnedDm,.Jmned .jmnedGls,.Jmned .jmnedYm{margin:0;padding:0}.Jmned{border-collapse:collapse}.Jmned table{border-collapse:collapse;border:1px #696969 solid;width:100%}.Jmned table th{background-color:#f5f5f5;border:1px #696969 solid;font-weight:700;padding:3px;white-space:nowrap}.Jmned table td{border:1px #696969 solid;padding:5px;line-height:1.3em}.Jmned .jmnedL{font-weight:700}.Jmned .jmnedC{width:20%}.Jmned .jmnedR{width:60%}.Jmned .jmnedInfo{background-color:#f5f5f5;border:#b5b6b5 solid 1px;font-size:.9em;line-height:1.62em;margin:1em 0 0 0;padding:10px}.Stwdj .stwdjS{border-left:#815733 solid 6px;font-size:1.3em;font-weight:700;line-height:1em;margin:10px 0 5px 0;padding-left:3px}.Stwdj .stwdjC,.Stwdj .stwdjC a{line-height:1em}.Stwdj .stwdjHdC{background-color:#f0f0f0;border:#666 solid 1px;color:#363636;font-size:.9em;padding:1px}.Stwdj .stwdjYr{margin-top:10px;padding:5px}.Stwdj .stwdjYr a{color:#000}.Stwdj .stwdjYr a:hover{color:#000}.Stwdj .stwdjYr a:active{color:#000}.Stwdj .stwdjYr a:visited{color:#000}.Stwdj .stwdjYr div{line-height:1em;margin-left:10px}.Stwdj .stwdjYr sup{line-height:1em;margin:0;padding:0}.Stwdj .stwdjYrHd i,.Stwdj .stwdjYrHdFld i{margin-bottom:-2px;margin-right:3px}.Stwdj .stwdjYrHd:before,.Stwdj .stwdjYrHdFld:before{margin-right:3px}.Stwdj .stwdjYrHdFld img,.Stwdj .stwdjYrHdFld span{cursor:pointer}.Stwdj .stwdjYrHd .stwdjHdC{border:#666 solid 1px;color:#363636;font-size:.9em;margin-left:16px;padding:1px}.Stwdj .stwdjYrHdFld .stwdjHdC{border:#666 solid 1px;color:#363636;font-size:.9em;padding:1px}.Stwdj .stwdjR,.Stwdj .stwdjRF{background-image:url(https://weblio.hs.llnwd.net/e7/img/iconCclBlS.png);background-position:2px 8px;background-repeat:no-repeat;font-family:Arial;font-weight:400;margin:2px 0 0 24px;padding:0 0 0 14px}.Stwdj .stwdjRF{display:none}.Stwdj .stwdjBld{font-weight:700;font-weight:700}.Stwdj .stwdjAH,.Stwdj .stwdjNB,.Stwdj .stwdjNH{float:left;margin:0;padding:0;vertical-align:bottom}.Stwdj .stwdjNB{margin:.3em 0 0 0;padding:.1em 0 0 0}.Edrnt .edrntC{background-color:#f0f0f0;border:#666 solid 1px;color:#363636;font-size:.9em;padding:1px}.Jjabc ruby{font-size:120%}.infobox.sisterproject{font-size:90%;width:20em}td.sub_yomi{background-image:url(https://weblio.hs.llnwd.net/e7/img/jinmei_haikei1.png);background-repeat:repeat-y;border-color:#b5d2e2;border-width:1px 1px 0 0;border-style:solid;color:#4f519b;font-weight:700;padding:5px 5px 5px 15px;width:80px}td.item_yomi{border-top:1px dashed silver;padding:5px 5px 5px 10px}.Dkijt .kanren{text-indent:.75em}.Jeepm table{border:#000 solid 1px;border-collapse:collapse;text-align:center}.Jeepm td{border:#000 solid 1px;text-align:center}.Jeepm .header{border-left:#fff solid 1px;border-right:#fff solid 1px;border-top:#fff solid 1px;font-weight:700;text-align:left}.LiscjYr .kanren{font-family:Arial;margin:5px 0 0 24px}.Wkgje .wkgjeL{float:left;margin:0 0 0 4px;padding:0;width:80px}.Wkgje .wkgjeR{float:left;margin:0 0 0 4px;padding:0;width:500px}.Jawik .level1Block{display:block;font-size:1.2em;font-weight:400;margin:2px 0 2px 10px}.Jawik .level1Block b{font-weight:700}.Jawik .level1,.Jawik .level1Ex,.Jawik .level2{display:inline}.Jawik .level1 b,.Jawik .level2 b,.Jawik .level2Block b{background-color:#eee;border:#999 solid 1px;color:currentColor;font-weight:400;padding:0 2px;margin:0 5px 0 2px}.Wehgj .wehgjE span,.Wehgj .wehgjR span,.Wehgj .wehgjT span{border:#666 solid 1px;font-size:.9em;line-height:1em;padding:1px}.Wehgj .wehgjE,.Wehgj .wehgjR{padding:0 0 0 16px}.Jfwik .level1Block{display:block;font-size:1.2em;font-weight:400;margin:2px 0 2px 10px}.Jfwik .level1Block b{font-weight:700}.Jfwik .level1,.Jfwik .level1Ex,.Jfwik .level2{display:inline}.Jfwik .level1 b,.Jfwik .level2 b,.Jfwik .level2Block b{background-color:#eee;border:#999 solid 1px;color:currentColor;font-weight:400;padding:0 2px;margin:0 5px 0 2px}.wrpCmp{border:#06c solid;border-width:0 0 1px 0;height:25px;margin:15px 0 5px 0}.wrpCmp p{border:#06c solid;border-width:0 0 0 5px;font-size:1.3em;height:20px;margin:0;padding:0 0 3px 5px}.wrpCmp p a{color:#000;font-weight:bolder}.wrpCmpCom{border:#de7d29 solid;border-width:0 0 1px 0;height:25px;margin:15px 0 5px 0}.wrpCmpCom p{border:#de7d29 solid;border-width:0 0 0 5px;font-size:1.3em;height:20px;margin:0;padding:0 0 3px 5px}.wrpCmpCom p a{color:#000;font-weight:bolder}.wrpEx{height:25px;margin:0}.wrpEx p{color:#525152;font-size:1em;height:20px;margin:0 .5em 0 0;padding:3px 0 0 5px}.wrpEx p a:active,.wrpEx p a:link,.wrpEx p a:visited{color:#525152;font-size:1em;text-decoration:none}.wrpEx p span{color:#9c9a9c;font-size:.7em}.wrpEx p.wrpExFL{color:#525152;font-size:.8em;height:20px;margin:0 .5em 0 0;padding:3px 0 0 5px}.kijiEx{color:#000;font-size:1em;line-height:1.8em;margin-bottom:15px}.kijiEx *{font-size:100%;line-height:1.8em}.wrpExTxt{margin:0 0 -8px 0}.wrpExTxt p{font-size:1em;margin-right:.5em;padding:0 0 0 5px}.kijiWrpTxt p.adDes{font-size:95%}.wrpExTxt p>a{text-decoration:none}.wrpExTxt p a:hover{color:red}.wrpExTxt p a:link,.wrpExTxt p a:visited{color:#525152}.kijiWrpTxt{font-size:90%;margin:0 0 15px 0;padding:0}.wrpAdFTxt p{color:#525152;font-size:.9em;line-height:1.8em;margin:14px 0 14px 6px}.wrpIMCmp{border:#06c solid;border-width:0 0 1px 0;height:25px;margin:5px 0 5px 0}.wrpIMCmp p{border:#06c solid;border-width:0 0 0 5px;font-size:1.1em;font-weight:bolder;height:18px;margin:0;padding:2px 0 5px 5px}.wrpIMCmp p a{color:#000;font-size:.8em;font-weight:400}.wrpIMCmpCom{border:#de7d29 solid;border-width:0 0 1px 0;height:25px;margin:5px 0 5px 0}.wrpIMCmpCom p{border:#de7d29 solid;border-width:0 0 0 5px;font-size:1.1em;font-weight:bolder;height:18px;margin:0;padding:2px 0 5px 5px}.wrpIMCmpCom p a{color:#000;font-size:.8em;font-weight:400}#main .spoBoxHEYO{background-color:#feaa15;border:#e38e00 solid;border-width:0 0 1px 0;color:#fff;font-weight:700;margin:0 4px 0 20px;padding:5px 3px 5px 7px;text-align:left}#main .spoBoxBEYO{border:#ccc solid;border-width:0 1px 1px 1px;margin:0 4px 10px 20px}#main .spoBoxHEYOT{background-color:#9097a2;border:#868d99 solid;border-width:0 0 1px 0;color:#fff;font-weight:700;margin:0 4px 0 0;padding:5px 3px 5px 7px;text-align:left}#main .spoBoxBEYOT{border:#ccc solid;border-width:0 1px 1px 1px;margin:0 4px 10px 0}.ejjeScCnt{margin:0 0 10px 0;width:99%}.ejjeScCnt .chsShwcsH{background-color:#feaa15;border:#feaa15 solid 1px;border-bottom:#e38e00 solid 1px;color:#fff;font-size:1em;font-weight:700;margin:0;padding:4px 0;width:100%}.ejjeScCnt .chsShwcsHT{padding:0 5px}.ejjeScCnt .chsShwcsC{border:#ccc solid;border-width:0 1px 1px 1px;margin:0;padding:2px 0 3px 0;width:100%}.ejjeScCnt .chsShwcsT{border-collapse:collapse;margin:2px 0 2px 0;padding:0;width:100%}.ejjeScCnt .chsShwcsTD{border-collapse:collapse;margin:0;padding:2px 0 2px 6px;vertical-align:top;width:33%}.ejjeScCnt .chsShwcsTD a{font-size:1em}.ejjeScCnt .chsShwcsTD a:active,.ejjeScCnt .chsShwcsTD a:link,.ejjeScCnt .chsShwcsTD a:visited{color:#06c}.ejjeScCnt .chsShwcsTD a:hover{color:#d50000}.ejjeScCnt .chsShwcsTD span{font-size:.85em;font-weight:400}.treeBoxC .adIFLeftE{color:#06c;font-size:.7em;text-align:right}.JWAdsR .highlight{background-color:transparent}.AdR .highlight{background-color:transparent}.clrBc{clear:both;display:block;font-size:0;line-height:0;overflow:hidden}.highlight-menu{background-color:#f8f9ff;display:none;top:0;height:auto;position:absolute;left:0;z-index:10}.highlight-menu table{background-color:#f6f6f6;border:#b5b5b5 solid 1px;border-collapse:separate;border-spacing:4px}.highlight-menu table td{cursor:pointer;height:24px;margin:0;text-align:center;padding:0;width:24px}.highlight-menu img{width:24px}.highlight-menu #pick-del img{width:22px}.red{background-color:#fcc}.highlight-menu-sub{position:relative}.highlight-menu table.hl-tbl-hz td{padding-right:5px}.highlight-menu table.hl-tbl-hz td:last-child{padding-right:0}.highlight-dfcl .hl-pick-dfcolor-table{margin:37px 0 15px;table-layout:fixed;width:100%}.highlight-dfcl .hl-pick-dfcolor-table td{padding:0;text-align:left}.highlight-dfcl .dfclsq{box-sizing:border-box;cursor:pointer;display:inline-block;height:40px;line-height:40px;text-align:center;vertical-align:middle;width:40px}.highlight-dfcl .dfclsq>span{background-color:#585858;display:none;height:8px;margin-top:16px;width:8px}.highlight-dfcl #dfslsq-yellow{background-color:#ffe467}.highlight-dfcl #dfslsq-blue{background-color:#75baff}.highlight-dfcl #dfslsq-green{background-color:#82d131}.highlight-dfcl #dfslsq-red{background-color:#ffa4a4}.highlight-dfcl .dfclmsg-blue,.highlight-dfcl .dfclmsg-green,.highlight-dfcl .dfclmsg-red,.highlight-dfcl .dfclmsg-yellow{font-size:.78em}.highlight-dfcl .hl-pick-dfcolor-table td.dfclmsg-td{padding-left:11px}.highlight-htu .sect{line-height:1.7em;margin-bottom:23px}.highlight-htu .sect ol{margin:0;padding-left:16px}.highlight-htu .semi-heading{font-size:1.07em;font-weight:700;margin-bottom:3px}.highlight-htu .hl-page-heading{margin-bottom:23px}.highlight-lib .formBlk{overflow:hidden}.highlight-lib .hl-sortWrp{float:left}.highlight-lib .hl-searchWrp{float:right}.highlight-lib .searchHlBtn{background-color:var(--color-font-grey);box-shadow:0 2px 0 0 #000;font-size:.92em;height:25px;line-height:25px;margin:0;padding:0 10px}.highlight-lib input[name=q]{border:0;border:solid 1px #ccc;border-radius:2px;font-family:Arial,sans-serif;height:27px;margin:0 3px 0 0;padding-left:3px}.highlight-lib .hl-content-wrap{margin-top:18px}.highlight-lib .hl-content{margin-bottom:39px}.highlight-lib .hl-title{margin-bottom:12px;font-weight:700}.highlight-lib .hl-item{background-color:#f9f9f9;margin-bottom:5px;padding:7px 10px;position:relative}.highlight-lib .hl-item p{border-style:solid;border-width:0 0 0 4px;float:left;padding-left:11px;width:93%}.red-left-border{border-color:#ffa4a4}.highlight-lib .hl-item-edit{cursor:pointer;display:none;float:right}.highlight-lib .hl-more-less,.highlight-lib .hl-title a{border-bottom:#000 dotted 1px;font-size:.85em;padding-bottom:1px;text-decoration:none}.highlight-lib .highlight-edit{display:none;right:-38px;top:0;position:absolute;z-index:1}.highlight-lib .highlight-edit table{background-color:#f6f6f6;border:#b5b5b5 solid 1px;border-collapse:separate;border-spacing:4px}.highlight-lib .highlight-edit table td{cursor:pointer;height:24px;margin:0;text-align:center;padding:0;width:24px}.highlight-lib .highlight-edit table div{height:100%;line-height:24px}.highlight-lib .highlight-edit .edit-del img{width:24px}.highlight-lib .hlpaginationWrp{text-align:center}.highlight-lib .hl-pagination{border-radius:4px;display:inline-block;margin:20px 0;padding-left:0}.highlight-lib .hl-pagination>li{display:inline}.highlight-lib .hl-pagination>li:first-child>a{border-top-left-radius:4px;border-bottom-left-radius:4px;margin-left:0}.highlight-lib .hl-pagination>li:last-child>a{border-top-right-radius:4px;border-bottom-right-radius:4px}.highlight-lib .hl-pagination>li>a{background-color:#fff;border:1px solid #ddd;color:#337ab7;float:left;line-height:1.42857143;margin-left:-1px;position:relative;padding:2px 10px;text-decoration:none}.highlight-lib .hl-pagination>li i{line-height:1.42857143}.highlight-lib .hl-pagination a:active,.highlight-lib .hl-pagination a:hover,.highlight-lib .hl-pagination a:link,.highlight-lib .hl-pagination a:visited{color:currentColor!important;display:inline-block;text-decoration:none}.highlight-lib .hl-pagination a:hover{background-color:#aac9e9}.highlight-lib .hl-pagination .active a{background-color:#e4e4e4;cursor:default}#hl-sticky-menu-library .fa{color:currentColor;font-size:1.64em}.stickyMenuSampleWrp .smClPk .fa{display:inline-block;font-size:1.92em;text-align:center;width:24px}.introjs-arrow.right{right:-10px;top:10px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:#fff}.introjs-arrow.right-bottom{bottom:10px;right:-10px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:#fff}.introjs-arrow.left{left:-10px;top:10px;border-top-color:transparent;border-right-color:#fff;border-bottom-color:transparent;border-left-color:transparent}.introjs-arrow.left-bottom{left:-10px;bottom:10px;border-top-color:transparent;border-right-color:#fff;border-bottom-color:transparent;border-left-color:transparent}.pinned-content-header .fa-thumb-tack,.pinned-content-header span .fa-square{color:currentColor}.fa-rotate-315{transform:rotate(315deg)}.pinned-content-button-wrapper>.error{font-size:.71em;background-color:#f8ddde;text-align:center;margin-bottom:5px;display:none}.pinned-content-button-wrapper>.error{letter-spacing:1.4;padding:2px 0;width:80%;margin:0 auto 10px}.pinned-content-button-wrapper>.error a{font-weight:700;color:#000}.pinned-content-button-wrapper.show>.error{display:block}.pinned-content-button-wrapper .add-word-list-button .fa{margin-right:5px}.modal-wrapper .loading .fa{color:#fff;font-size:6.42em;left:38%;position:absolute;top:40%}.modal-wrapper.for-already-exists .modal-close-wrapper .fa-stack{position:absolute;right:0;top:0;transform:scale(.5);cursor:pointer}.modal-wrapper.for-already-exists .modal-close-wrapper .fa-stack:hover{opacity:.7}.free-member-features-modal .modal-message:not(.registered):not(.login){float:left;margin:10px 0 20px 30px}.free-member-features-modal .modal-message div{font-weight:400;margin:0!important}.free-member-features-modal .modal-message div:first-child{margin:0 0 15px 0!important}.free-member-features-modal .modal-message div:first-child span{font-size:2em}.free-member-features-modal .modal-message div:first-child span:first-child{font-weight:700}.free-member-features-modal .modal-message div:not(:first-child){font-size:1.28em}.free-member-features-modal .modal-message div.sentence-list-features{line-height:2em}.free-member-features-modal .modal-message:not(.registered) .modal-login-link{margin:0}.free-member-features-modal .modal-message:not(.registered) .modal-login-link:hover{color:currentColor;opacity:.7}.free-member-features-modal .modal-example{float:none;margin:5px 0 0}.free-member-features-modal .modal-example img{box-shadow:none;-webkit-box-shadow:none}.free-member-features-modal .free-register-wrap:not(.login):not(.registered){border-collapse:separate;border-spacing:15px 0;display:table;margin-left:15px}.free-member-features-modal .free-member-features{border:#aaa solid 1px;display:table-cell;vertical-align:top}.free-member-features-modal .free-member-features>div:first-child{background-color:#ea9035;color:#fff;font-size:1.42em;padding:7px 0}.free-member-features-modal .free-member-features .free-member-feature-content{display:inline-block;margin:20px 10px}.free-member-features-modal .free-member-features .free-member-feature-content img{margin:10px 0}.free-member-features-modal .free-member-features .free-member-feature-content div{text-align:left}.free-member-features-modal .free-member-features>div:last-child{margin-bottom:10px}.free-member-features-modal .free-member-features>div:last-child span{font-weight:700}.free-member-features-modal .free-register-wrap:not(.login):not(.registered) .free-register{border:#48a267 solid 1px;display:table-cell;position:relative}.free-member-features-modal .free-register>div:first-child{left:3px;position:absolute;top:-30px}.free-member-features-modal .free-register-wrap.login .free-register>div:first-child,.free-member-features-modal .free-register-wrap.registered .free-register>div:first-child{display:none}.free-member-features-modal .free-register-wrap:not(.login) .free-register .modal-error-message{margin-top:15px}.free-member-features-modal .free-register .footer span{line-height:14px}.free-member-features-modal .free-register .modal-register-button{font-weight:400;margin:10px auto}.free-member-features-modal .free-register .free-register-link{display:inline-block;margin-bottom:10px}.free-member-features-modal .free-register .free-register-link:hover{color:currentColor;opacity:.7}.free-member-features-modal.hidden .free-member-features{display:none}.userInfo .right-cell{padding-left:5px}.userInfo .right-cell .free-description{font-size:1em;margin-left:6px;margin-bottom:8px;letter-spacing:3px}.userInfo .right-cell .free-description span{letter-spacing:0;padding-right:3px}.userInfo .right-cell .free-description span span{font-size:.85em}.userInfo .right-cell .free-button{display:block;height:35px;margin:6px 0 0}.userInfo .right-cell .free-button:hover{opacity:.7}.userInfo .right-cell .free-button:active{box-shadow:none!important;position:relative;top:2px}.userInfo .right-cell .merits{margin:4px 0}.userInfo .right-cell .merits p{font-size:.78em;font-weight:700;margin-bottom:4px}.userInfo .right-cell .merits p img{width:12px;padding:0 8px}.userInfo .left-cell{text-align:center}.userInfo .left-cell .member-state-label{color:#fff;display:block;width:80px;text-align:center;height:30px;box-sizing:border-box;padding:5px 0;font-size:90%}.userInfo .left-cell .member-state-label.free{background-color:#48a267}.userInfo .left-cell .member-state-label.premium{background-color:#ea9034;font-size:70%;padding:6.3px 0}#sideBHPAEjje>.error{background-color:#f8ddde;display:none;font-size:.71em;letter-spacing:1.4;margin-bottom:5px;padding:0 5px;text-align:center}#sideBHPAEjje>.error a{color:#000;font-weight:700}#sideBHPAEjje.show>.error{display:block}.footer_banner .title .small{font-size:.92em}.footer_banner ul.features{font-size:.85em;list-style-type:none;color:#534a41;margin:0;padding:10px 0;line-height:17px}.footer_banner ul.features li{margin-left:70px;padding:5px 0;position:relative}.footer_banner ul.features li:before{content:"";width:17px;height:17px;background-position:center center;background-repeat:no-repeat;position:absolute;top:5px;left:-25px}.footer_banner ul.features li.search-history:before{background-image:url(https://weblio.hs.llnwd.net/e7/img/banner/history.png)}.footer_banner ul.features li.vocab-test:before{background-image:url(https://weblio.hs.llnwd.net/e7/img/banner/vocab.png)}.footer_banner ul.features li.folders:before{background-image:url(https://weblio.hs.llnwd.net/e7/img/banner/folders.png)}.footer_banner ul.features li.ads:before{background-image:url(https://weblio.hs.llnwd.net/e7/img/banner/ad.png)}#free-house-ad-on-load-modal-container .header-wrap .modal-close i.fa-times,#premium-house-ad-on-load-modal-container .header-wrap .modal-close i.fa-times{color:#595858;font-size:1.71em;height:35px;line-height:35px}#free-house-ad-on-load-modal-container .features-wrapper{display:flex;flex-wrap:wrap;margin:25px 5px 10px 5px}#free-house-ad-on-load-modal-container .features-wrapper .feature{width:calc(33.3333% - 12px);padding:20px 0 5px;font-size:1em;text-align:center;vertical-align:top;border:1px solid #d1d1d1;position:relative;margin:10px 5px}#free-house-ad-on-load-modal-container .features-wrapper .feature.other-features{border:none}#free-house-ad-on-load-modal-container .features-wrapper .feature.other-features img{width:75%}#free-house-ad-on-load-modal-container .features-wrapper .feature.other-features:before{display:none}#free-house-ad-on-load-modal-container .features-wrapper .feature:before{background-color:#e99034;border-radius:50%;content:"0" counter(feature-number);counter-increment:feature-number;color:#fff;display:inline-block;font-size:1em;height:30px;left:60px;line-height:30px;position:absolute;top:-15px;width:30px}#free-house-ad-on-load-modal-container .features-wrapper .feature span{font-size:1.28em;font-weight:700;color:#554c45}#free-house-ad-on-load-modal-container .features-wrapper .feature div.img-wrap{display:table-cell;height:65px;text-align:center;vertical-align:middle}#free-house-ad-on-load-modal-container .features-wrapper .feature div.img-wrap img{width:40px}#free-house-ad-on-load-modal-container .features-wrapper .feature div.description{line-height:18px}#free-house-ad-on-load-modal-container td div.description,#premium-house-ad-on-load-modal-container td div.description{line-height:18px}#free-house-ad-on-load-modal-container .features-wrapper .feature .img-wrap img.large{width:50px}.clr{clear:both;font-size:0;line-height:0;overflow:hidden}.clrBc{clear:both;display:block;font-size:.71em;line-height:0;overflow:hidden}#main{float:left;text-align:left;padding:0 0 0 8px}.topic{font-size:75%;height:44px;line-height:1.3em;margin:0 0 2px 0;overflow:hidden;padding-top:5px;width:100%;word-break:break-all}.topic table{height:30px;width:100%}.topicL{font-size:.78em;float:left;vertical-align:middle}.topicLB{font-size:.71em}.topicR{float:right;text-align:right}.topicR table{border-collapse:collapse;font-size:1.1em}.wrp{width:100%;border-collapse:collapse}.wrp img.lgDictLg{max-height:16px!important;width:auto!important}.wrp img.lgDictSp{height:18px!important;margin-top:-17px!important}.left{vertical-align:bottom}.right{float:right;font-size:.9em;margin:0 5px 0 0;text-align:right;vertical-align:top}.kijiWrp{padding-left:1px}.kijiWrp .lgDict{float:right;margin:1px 1px 0 0}.kiji{color:currentColor;font-size:1em;line-height:1.8em}.kiji *{font-size:100%;line-height:1.8em}.midashigo:before{content:"▶"}.midashigo{font-size:115%;letter-spacing:.02em}.crosslink:active,.crosslink:link,.crosslink:visited,crosslink:hover{color:currentColor;text-decoration:underline}.kijiFoot{margin-top:10px;text-align:right}.linkTagML{width:60%}.linkTagML input{border:#ccc solid 1px;height:20px}.linkTagMR{text-align:right;vertical-align:bottom;width:38%}.linkTagMR table{border-collapse:collapse;float:right;font-size:80%}.linkTagMR table td{vertical-align:bottom}.linkOut{height:12px;margin-left:2px;width:13px}.intrstR>table{border-spacing:0 2px}.KnenjSub,span.pofsp{background-color:var(--color-font-grey);border:none!important;color:#fff;display:inline;font-size:1.07em!important;font-weight:400!important;line-height:30px!important;padding:3px 5px!important}.clrPhrBc{clear:both;display:block;font-size:.71em;line-height:0;margin-top:1em;overflow:hidden}.wrpExE{height:25px;margin-top:18px}.wrpExE p{color:#525152;font-size:1em;height:20px;margin:0;padding-left:2px}.wrpExE p a:active,.wrpExE p a:link,.wrpExE p a:visited{color:#525152;font-size:1em;text-decoration:none}.intrst{width:100%;border-top:1px solid #ccc;border-collapse:collapse}#summary table:last-of-type.intrst{border-bottom:1px solid #ccc;margin-bottom:1em}.intrst .intrstL{background-color:rgba(245,239,230,.13);padding-left:5px;vertical-align:middle;width:80px}.intrst .intrstL h2{font-size:.92em;font-weight:400}.intrst .intrstR{padding-left:4px;vertical-align:middle}.linkTagRR span{font-size:0;display:block;height:23px;line-height:0;width:61px}img.weblioMascot{margin:15px 0 15px}#main{float:left;margin:0 15px 0 auto}#main a:active,#main a:link,#main a:visited{color:currentColor}#main a:hover{color:#4f7bb9}.clrBc{clear:both;content:"";display:block;font-size:0;line-height:0;overflow:hidden}.treeBoxC a:active,.treeBoxC a:link,.treeBoxC a:visited{font-family:"MS ゴシック","平成角ゴシック",monospace;line-height:1.5em;padding:8px}.treeBoxC h3{text-align:left}.treeBoxC h3 a:active,.treeBoxC h3 a:link,.treeBoxC h3 a:visited{font-size:.85em;font-weight:400;left:-1px;line-height:1.6em;padding:0;position:relative}.treeBoxC h3 span{color:#1c9000;display:list-item;margin:0 0 0 14px;padding:0;position:relative}.treeBoxC hr{border:silver solid;border-width:1px 0 0 0;height:1px;margin:5px 5px 5px 5px}.treeBoxC p{font-size:1.42em;margin:0;padding:0;text-align:left}.treeBoxCFoldLi .pl{border:#000 solid 1px}#summary{padding:2px 2px 10px 2px}#sideBHPAEjje>.error,.summaryR>.error{font-size:.71em;background-color:#f8ddde;text-align:center;margin-bottom:5px;display:none}#sideBHPAEjje>.error{letter-spacing:1.4;padding:0 5px}#sideBHPAEjje>.error a{font-weight:700;color:#000}#sideBHPAEjje.show>.error,.summaryR.show>.error{display:block}#summaryMargin{margin-top:150px}.summaryM .description{font-size:1.07em;font-weight:bolder;margin:0 5px 0 3px;padding:3px 5px!important}.linkTagRClrAd a:active,.linkTagRClrAd a:hover,.linkTagRClrAd a:link,.linkTagRClrAd a:visited{text-decoration:none}b.highlight{font-weight:400}.agglutination{vertical-align:top}.agglutination agglutinationT{font-size:1.42em}.agglutination li{font-size:1em}.agglutination ul{margin:10px 0 0 0;padding:0 0 0 10px}.relatedwords relatedwordsT{font-size:1.42em}.EGateCoreDataWrp b,.descriptionWrp b{display:block;text-align:center}.EGateCoreDataWrp table td:first-child,.descriptionWrp table td:first-child{width:80px}.descriptionWrp table td:first-child{vertical-align:top;padding:16px 0 10px 0}.EGateCoreDataWrp table td,.descriptionWrp table td{font-size:90%;font-weight:700}#searchSettingsWrp .reibun-sample .fa{font-size:1.28em}.pin-icon-cell{text-align:center;width:45px}.pin-icon-cell td{text-align:center;white-space:nowrap}.pin-icon-cell span{color:var(--color-font-grey);font-size:.71em}.pin-icon-cell .fa{cursor:pointer;font-size:2.42em}.pin-icon-cell .fa:hover{opacity:.7}#learning-level-table-wrap{display:table;width:100%}#learning-level-table{display:table-cell}#learning-level-table div{display:table}.learning-level-row{display:table-row}.learning-level-row span{display:table-cell;padding:2px 0}.learning-level-label{text-align:right}.learning-level-content{padding-right:15px!important}#main .addLmFd .premium,#side .addLmFd .premium{background-color:#ff8022;color:#fff;display:block;font-size:70%;position:relative;width:100%;height:35px}#main .addLmFd .premium:hover,#side .addLmFd .premium:hover{opacity:.7}#summary.non-member .intrstR #leadBtnWrp,#summary.non-member .intrstR #learning-level-table{display:block;width:100%}#summary.non-member .intrstR #learning-level-table div,#summary.non-member .intrstR #learning-level-table div *{display:inline}#summary.non-member .intrstR #leadToSpeakingTestIndexBtn,#summary.non-member .intrstR #leadToVocabIndexBtn{display:table-cell;vertical-align:middle;position:relative;box-sizing:border-box}#summary.non-member .intrstR #leadBtnWrp .insideLlTable{display:inline-block;margin:10px 5px;box-sizing:border-box}.free-member-features{padding:0 0 10px 0}.free-member-features .features-title{background-color:#554c45;color:#fff;font-size:1.28em;font-weight:700;text-align:center;padding:10px 0}.free-member-features .features-subtitle{font-size:1em;font-weight:700;text-align:center;padding:8px 0 12px 0}.free-member-features .features-subtitle .red{background-color:transparent;color:#e04a12;font-size:1.28em;padding:0 5px}.free-member-features ul.features{margin:0;padding:0;text-align:center}.free-member-features ul.features li{width:96px;height:121px;display:inline-block;border:1px solid #cdcdcd;text-align:center;margin-right:15px;vertical-align:top}.free-member-features ul.features li:first-child{margin-left:38px}.free-member-features ul.features li .feature-name{font-size:.85em;font-weight:700;margin:11px 0 10px 0}.free-member-features ul.features li img{height:36px;width:auto}.free-member-features ul.features li .feature-desc{font-size:.85em;margin-top:5px}.free-member-features ul.features li.more-features{margin-right:0;position:relative;border:none}.free-member-features ul.features li.more-features img{width:86px;height:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.free-member-features a.free-register-button{display:block;background-color:#48a267;color:#fff;text-decoration:none;text-align:center;border-radius:15px;margin:10px auto 0 auto;font-size:1.14em;font-weight:700;padding:15px 0;color:#fff;position:relative;line-height:21px}.free-member-features a.free-register-button:after{content:"";font-family:FontAwesome;position:absolute;height:21px;width:30px;font-size:1.14em;line-height:21px;top:50%;right:30px;transform:translateY(-50%)}#main .free-member-features a.free-register-button:active,#main .free-member-features a.free-register-button:link,#main .free-member-features a.free-register-button:visited{color:#fff}.free-member-features a.free-register-button .small{font-size:1em}.descriptionWrp table td.content-explanation{font-size:1.12em;line-height:2;padding:10px 0 5px 0}.descriptionWrp table td.content-explanation.ej{letter-spacing:1.5}#main .KnenjSub a:active,#main .KnenjSub a:link,#main .KnenjSub a:visited{color:#fff}h2.midashigo rt{font-size:.5em}h2.midashigo rp{font-size:.5em}.infobox caption{font-size:larger;margin-left:inherit}.infobox.bordered{border-collapse:collapse}.infobox.bordered td,.infobox.bordered th{border:#aaa solid 1px}.infobox.bordered .borderless td,.infobox.bordered .borderless th{border:0}.infobox.standard-talk.bordered td,.infobox.standard-talk.bordered th{border:#c0c090 solid 1px}.infobox.bordered .mergedtoprow td,.infobox.bordered .mergedtoprow th{border:0;border-right:#aaa solid 1px;border-top:#aaa solid 1px}.infobox.bordered .mergedrow td,.infobox.bordered .mergedrow th{border:0;border-right:#aaa solid 1px}.prettytable caption,.wikitable caption{font-weight:700;margin-left:inherit;margin-right:inherit}dl#infoboxCountry dt.infoboxCountryNameJa{font-size:1.36em;margin:0 0 .13em;text-align:center}.dablink{border-bottom:#aaa solid 1px;font-size:90%;margin:.5em 0 .5em 0;padding:3px 2em 3px 2em}.midashigo sub{font-size:.6em}.midashigo sup{font-size:.6em}td.movie_staff_left{text-align:right}.ad02_left_box{width:7px;height:30px;margin:0 2px 2px 0;padding:0;background-color:#d0d0d0;vertical-align:middle;font-size:10pt}.ad02_center-left_box{height:30px;margin:0 2px 2px 0;padding:4px;background-color:#f0f0f0;vertical-align:middle;font-size:10pt}.ad02_center-right_box{height:30px;margin:0 2px 2px 0;padding:4px;background-color:#e0e0e0;vertical-align:middle;font-size:10pt}.ad02_right_box{height:30px;margin:0 2px 2px 0;padding:4px;background-color:#e0e0e0;vertical-align:middle;font-size:10pt}.main3noh{font-size:1em;color:#fff}.mainb{font-size:1em;color:#000;font-weight:700;line-height:18px}h2.midashigo sub{font-size:smaller}ul.linkListStrong li{list-style-type:none}.Ktdcm .KtdcmImgLeft{float:left;width:48%}.Ktdcm .KtdcmImgRight{float:right;width:48%}.Ktdcm .maincol{margin-left:15px;text-align:left}.Ktdcm ul.fright li.full{text-align:right}.Ktdcm .maincol .boxArea{margin-bottom:16px;padding-top:7px}.Ktdcm .maincol .boxArea .wrap{padding-bottom:8px}.Ktdcm .maincol .boxArea .section{padding:0 7px}.Ktdcm table.cell2 .right{padding-left:16px}.Sngsj .gaiji{height:1em;vertical-align:text-bottom;width:1em}.Otnet .OtnetRed{border-bottom:#ccc solid 1px;border-left:red solid 10px;border-right:#ccc solid 0;margin:12px;padding:1px 5px}.Fkkyr .left_column{padding:15px 0 0 0}td.midashigo{color:#4f519b;font-weight:700;padding:10px 5px 30px 2px}.Mtsbs .notes_mainArea{margin-top:10px}.Mtsbs table.spec tr.mainheader th{background-color:#d2d2d2;font-weight:700}.Mtsbs table.spec tr.mainheader th.basic{background-color:#e8f6d9}.Mtsbs table.spec .tdleft{text-align:left}.Mtsbs table.spec .tdright{text-align:right}.Mtsbs table.spec td.tdleft_nb{text-align:left;border-right-style:none}.Mtsbs table.spec td.tdright_nb{text-align:right;border-left-style:none}.Mtsbs .carmain_font80{font-size:.8em}.Mtsbs .carmain_font70{font-size:.7em}.Mtsbs td.tdleft{text-align:left}.Mtsbs th.tdleft{text-align:left}.Kkjsh table tr td.right{text-align:right}.Mzdmt .cell_center_left{border-right:#a1a1a1 solid 1px;text-align:center}.Mzdmt .cell_left_no{border-bottom:#a1a1a1 solid 1px;height:22px;text-align:left}.Mzdmt .cell_left{border:#a1a1a1 solid;border-width:0 1px 1px 0;height:22px;text-align:left}.Triph .data caption{background:#94b7df;border-right:#fff solid 1px;border-top:#fff solid 1px;color:#fff;font-weight:700;padding:2px 17px}.Cntkj .description{float:right;width:43%}.Hyndi .spec-table td.left{text-align:left}.Hndmr table#webcatalogue-table td{color:var(--color-font-grey)}.Hndmr table#webcatalogue-table img{border:none}.Hndmr table#webcatalogue-table p{margin:0;padding:0}.Hndmr table#webcatalogue-table p.leadcopy{font-size:.9em;font-weight:700;line-height:18px}.Hndmr table#webcatalogue-table p.leadcopy2{font-size:.9em;font-weight:700;line-height:21px}.Hndmr table#webcatalogue-table p.text{font-size:.9em;line-height:16px}.Hndmr table#webcatalogue-table p.caution{color:#888;font-size:.9em;line-height:12px;margin-top:3px}.Hndmr table#webcatalogue-table span.typebetsu{font-size:.9em;font-weight:400}.Hndmr table#webcatalogue-table p.concepttext{color:#fff;line-height:18px;margin:0 15px 10px 15px}.Hndmr table#webcatalogue-table strong.v6{color:#003f98}.Hndmr table#webcatalogue-table p.safe-midashi{color:#fff;font-size:.9em;font-weight:700;line-height:18px;padding:3px 5px 3px 5px}.Hndmr table#webcatalogue-table p.realworldtext{color:#51318f}.Hndmr table#webcatalogue-table span.co2{font-size:.9em}.Hndmr table#webcatalogue-table p.texthyoujimark{font-size:.9em;line-height:16px}.Hndmr table#webcatalogue-table #env-data{font-size:.9em}.Hndmr table#webcatalogue-table #env-data td.tabletext{padding:2px}.Hndmr table#webcatalogue-table strong.price{font-size:.9em}.Hndmr table#webcatalogue-table p.caution_vg{margin-top:7px}.Hndmr table#webcatalogue-table p.navi-midashi{background-color:#1c1f7a;color:#fff;font-size:.9em;font-weight:700;line-height:18px;padding:3px 5px 3px 5px}.Hndmr table#webcatalogue-table .note{color:#1c1f7a}.Hndmr table#webcatalogue-table span.komidashi{color:#006965}.Hndmr table.spec-table td.bd-left{border-left:1px solid #2c2c2c}.Hndmr .block_line_right{border-right:solid 1px #000}.Hndmr #webcata_footer{clear:both;padding:30px 128px 15px 20px;text-align:right}.Hndmr #specifications th.car .small{font-size:x-small;line-height:120%}.Hndmr div#web-catalog-contents{margin:24px}.Hndmr div#web-catalog-contents h4{background:#325958;color:#fff;font-size:.9em;margin-bottom:14px;padding:4px 0 4px 10px}.Hndmr div#web-catalog-contents table.model-navi{margin:0 0 5px 0}.Hndmr div#web-catalog-contents table.model-navi td{padding:0 25px 0 10px}.Hndmr div#web-catalog-contents *{margin:0;padding:0}.Hndmr div#web-catalog-contents h4 span{font-size:.9em;font-weight:400}.Hndmr div#web-catalog-contents p.caution,p.caution{font-size:.9em;line-height:120%}.Hndmr #eq_spec_list td.right_non_border{border-right:none}.Kejje dd{margin-left:20px}.Kejje .gaiji{border:0;margin-bottom:-3px}.Kejje .level1{margin-left:1em}.Kejje .level2{margin-left:1.5em}.Kejje .backlink{margin-top:10px}.Kejje .backlink img{margin-bottom:-3px;margin-right:5px}.Kejje .onsei{margin-bottom:-8px}.Kejje .playSd{cursor:pointer}.youreilink{border-bottom:#080 solid 1px;color:#080;font-weight:700;text-decoration:none}.KejjeYrL,.KejjeYrLS,.KejjeYrM,.KejjeYrMS,.KejjeYrR{background-color:rgba(247,247,247,.14);font-size:.9em;vertical-align:top}.KejjeYrL,.KejjeYrLS{color:#363636;font-size:.9em;padding:0 4px 0 4px;width:40px}.KejjeYrM,.KejjeYrMS{width:13px}.KejjeYrR{padding:0 4px 0 4px}.KejjeYr{border:0;border-collapse:collapse;margin:0 0 3px 25px;padding:0}.KejjeYrMS i{margin:2px 0 0 2px}.KejjeYrLS{cursor:pointer}.KejjeYrC{border:#666 solid 1px;font-size:.9em;padding:1px}.KejjeYrHd{padding:0 .5em 0 0}.KejjeYrTxt{display:none;margin:0;padding:0 .5em 0 0}.KejjeYrHd a,.KejjeYrTxt a{color:#000}.KejjeYrHd a:active,.KejjeYrTxt a:active{color:#000}.KejjeYrHd a:hover,.KejjeYrTxt a:hover{color:#000}.KejjeYrHd a:visited,.KejjeYrTxt a:visited{color:#000}.KejjeYrLn{background-image:url(https://weblio.hs.llnwd.net/e7/img/iconCclBlS.png);background-position:left 5px;background-repeat:no-repeat;line-height:1.2em;margin:0;padding:0 0 0 16px}.KejjeYrLn sup{line-height:1em;margin:0;padding:0}.KejjeYrLn span{line-height:1.6em;margin:0;padding:0}.KejjeYrLn .KejjeYrEn{font-family:Arial;font-weight:700}.KejjeYrKwrd{line-height:1em}.KejjeSm{font-size:.8em;font-weight:400;line-height:1em}.KejjeSm a{line-height:1em}.Kejje .kenjeEnE{border:0;display:list-item;list-style-position:inside;margin:0;padding:0 0 0 10px}.Kejje .onseiSwf{display:inline-block;position:relative;top:8px;margin-left:5px}.KejjeYrMS img{cursor:pointer;margin-top:3px}.KejjeSm{font-size:.8em;font-weight:400;line-height:1em;padding-left:4px}.Kejje .lvlAH,.Kejje .lvlB,.Kejje .lvlNH{float:left;margin:0;padding:0;vertical-align:bottom}.Kejje .lvlNH{font-size:1.3em;font-weight:700;height:1.1em;width:28px}.Kejje .lvlAH{font-size:1.4em;font-weight:700;line-height:1.6em;width:16px}.Kejje .lvlUAH{font-size:1.3em;font-weight:700;height:1.1em}.Kejje .lvlUAB{font-weight:700}.Kejje .lvlB{padding:.1em 0 0 0;max-width:85%}.Kejje .lvlNHje{float:left;font-weight:700;margin:0;padding:0;vertical-align:bottom;width:16px}.Kejje .lvlNBje{float:left;font-weight:700;margin:0 0 12px 0;padding:0}.Kejje .lvlNBje td{line-height:1.6em;margin:0;padding:0 20px 0 0;vertical-align:top}.Kejje .lvlNBjeT{float:left;margin:0;padding:0}.Kejje .lvlNBjeT sup{line-height:1em;margin:0;padding:0}.Kejje .lvlNBjeL{white-space:nowrap}.Kejje .lvlBje{font-weight:700;margin:0;padding:0}.Kejje .lvlB{margin:.3em 0 0 0}.Kejcy .gaiji{border:0;margin-bottom:-3px}.Kejcy .level0{margin:1em 0 0 0}.Kejcy .level1{margin:0 1.5em 0 1.5em}.Kejcy .level2{font-size:.9em;margin:0 3em .5em 3em;padding:.2em .5em 0 .5em}.Gicns .ga_small{font-size:.9em}.Nsrsk .NsrskMaintxt{float:left;text-align:left}.Nsrsk .NsrskRightph{border:#ccc solid 1px;float:right;text-align:center}.Tltdb div.TltdbLeft{float:left;text-align:center}.Tytmt .smallMText{font-size:.7em}.Tpkys div.stroke div.imgArea p.rightImg{margin-right:0}.Tpkys .closeBoxIn div.makeRight{border:#ccc dotted 1px;float:left;height:350px;padding:10px}.Srsbz .SrsbzLeft{float:left}.Srsbz .SrsbzRight{float:right}.Nrksm .NrksmT2 caption{font-weight:700;text-align:left}.Trhnt .TrhntLeft{float:left}.Trhnt .TrhntRight{float:right}.rmvDots{background:0 0!important;padding:0!important}.syosaiLeft{float:left;margin:0 0 20px 25px}.Hgnsh .syosaiLeft{float:left;margin:0 0 0 5px}.Hgnsh .syosaiLeftBox{line-height:1.4em;margin-top:15px;text-align:justify;text-justify:inter-ideograph}.Hgnsh .syosaiRight{float:right;margin-top:5px}.Hgnsh .syosaiRightBox{text-align:center}.Hgnsh .syosaiRightBox img{margin-bottom:0;padding:15px 0 15px}.Hskks .syosaiLeft{float:left;margin:0 0 0 5px}.Hskks .syosaiLeftBox{line-height:1.4em;margin-top:15px;text-align:justify;text-justify:inter-ideograph}.Hskks .syosaiRight{float:right;margin-top:5px}.Hskks .syosaiRightBox{text-align:center}.Hskks .syosaiRightBox img{margin-bottom:0;padding:15px 0 15px}.LiscjYr .synonym1{float:left;margin:0;width:45%}.LiscjYr .synonym2{float:right;margin:0;width:45%}.LiscjYr .clear_column{clear:both}.Liscj .caption p,.Liscj .meaning p{margin:0}.Wejty .wejtyE span,.Wejty .wejtyR span,.Wejty .wejtyT span{background-color:#f0f0f0;border:#666 solid 1px;color:#363636;font-size:.9em;line-height:1em;padding:1px}.Wejty .wejtyT{padding:0}.Wejty .wejtyE,.Wejty .wejtyR{padding:0 0 0 16px}.Wejty .wejtyL{background-color:#f0f0f0;border:#666 solid 1px;color:#363636;font-size:.9em;font-weight:400;line-height:1em;margin-right:8px;padding:1px}.Wejty .wejtyInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:1em 0 0 0;padding:10px}.Wwsej .wwsejInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:20px 0 0 0;padding:10px}.Nwnej .nwnejP{border-left:#815733 solid 6px;font-size:1em;font-weight:700;line-height:1em;margin:12px 0 2px 0;padding-left:3px}.Nwnej .nwnejP a{line-height:1em}.Nwnej .nwnejSEnL,.Nwnej .nwnejSEnR{max-width:90%;float:left;margin:12px 0 0 0}.Nwnej .nwnejSEnL{line-height:1.4em;width:16px}.Nwnej .nwnejSJp{margin:0 0 0 1.5em;padding:0 0 12px 0}.Nwnej .nwnejS p{line-height:1.4em;margin:0;padding:0}.Nwnej .nwnejS a{line-height:1em}.Nwnej .nwnejYr{margin:0 0 0 1.5em;padding:0}.Nwnej .nwnejYrL,.Nwnej .nwnejYrLS,.Nwnej .nwnejYrR{font-size:.9em;vertical-align:top}.Nwnej .nwnejYrL,.Nwnej .nwnejYrLS{margin:0;padding:0;width:13px}.Nwnej .nwnejYrR{padding:0 4px 0 4px}.Nwnej .nwnejYrLS i{margin:4px 0 0 3px}.Nwnej .nwnejYrHd{padding:0 .5em 0 0}.Nwnej .nwnejYrTxt{display:none;margin:0;padding:0 .5em 0 0}.Nwnej .nwnejYrLn{background-image:url(https://weblio.hs.llnwd.net/e7/img/iconCclBlS.png);background-position:left 5px;background-repeat:no-repeat;line-height:1.2em;padding:0 0 0 12px}.Nwnej .nwnejYrE,.Nwnej .nwnejYrJ{font-size:.9em;margin:0}.Nwnej .nwnejYrE{font-family:Arial;font-weight:700;padding-right:8px}.Nwnej .nwnejThL a:active,.Nwnej .nwnejThL a:hover,.Nwnej .nwnejThL a:link,.Nwnej .nwnejThL a:visited{border-bottom:currentColor dotted 1px;display:inline-block;font-size:1em;line-height:10px;text-decoration:none}.Wejhs .wejhsSub{border-left:#815733 solid 6px;font-size:1.3em;font-weight:700;line-height:1em;margin:10px 0 5px 0;padding-left:3px}.Wejhs .wejhsSub a{line-height:1em}.Wejhs .wejhsD{margin-left:20px;margin-top:10px;padding:5px}.Wejhs .wejhsL{float:left;padding:2px 0 2px 0}.Wejhs .wejhsL span{border:#666 solid 1px;color:#363636;font-size:.9em;margin:0 16px 0 12px;padding:1px}.Wejhs .wejhsR{float:left}.Wejhs .wejhsInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:50px 0 0 0;padding:10px}.Wkpen .wkpenWrp{line-height:1.3em;margin-top:5px;padding:9px 5px 9px 15px;width:95%}.Jawik .level0,.Jawik .level0Head{font-size:1.4em;font-weight:700;margin:10px 0 2px 0;padding-left:5px}.Jawik .level0Head{margin-top:0}.Jawik .level0 span,.Jawik .level0Head span{border:#b81e07 solid;border-width:0 0 0 8px;padding:3px 2px 2px 0}.Hypej .level0{margin:1em 0 0 0;padding:0}.Hypej .HypejSub{border-left:#815733 solid 6px;font-size:1.3em;font-weight:700;line-height:1em;margin:10px 0 5px 0;padding-left:3px}.Hypej .HypejSm{font-size:.8em;font-weight:400;line-height:1em;padding-left:3px}.Hypej .lvlNH{float:left;font-size:1.3em;font-weight:700;height:1.1em;margin:0;padding:0;vertical-align:bottom;width:28px}.Hypej .lvlB{float:left;margin:0;padding:.3em 0}.HypejYrL,.HypejYrR{font-size:.9em;vertical-align:top}.Hypej .HypejYr{border:0;border-collapse:collapse;margin:5px 0 1em 1em;padding:0}.Hypej .HypejYrL{padding:0 4px 0 4px;width:40px}.Hypej .HypejYrC{border:#666 solid 1px;font-size:.9em;padding:1px}.Hypej .HypejYrLn{background-image:url(https://weblio.hs.llnwd.net/e7/img/iconCclBlS.png);background-position:left 5px;background-repeat:no-repeat;line-height:1.2em;margin:0;padding:0 0 0 16px}.Hypej .HypejYrEn{font-family:Arial;font-weight:700}.Hypej .HypejLb{background-color:#eee;border:#999 solid 1px;color:currentColor;font-size:1em;font-weight:400;margin:0 2px 0 3px;padding:1px}.Hypej .HypejB{border-collapse:collapse;width:80%}.Hypej .HypejB tr th{border:gray solid 1px;padding:3px}.Hypej .HypejB tr td{border:gray solid 1px;padding:3px}.Hypej .onseiSwf{padding:10px 0 0 2px;vertical-align:middle}.Gkzkj .level0{margin:0;padding:0}.Efref .efrefA{color:#999;font-size:1em;margin:0 0 12px}.Nkjtn .nkjtnI caption{font-weight:700}.Cgkgj .cgkgjSm,h2.midashigo .cgkgjSm{font-size:.6em;margin-left:.4em}.Cgkgj .level0{margin:0;padding:0}.EgtejLb{border:#666 solid 1px;font-size:1em;font-weight:700;margin:2px 0;margin-right:8px;padding:0 3px!important;white-space:nowrap}.EgtejRSpc{margin-right:10px}.EgtejSub,.EgtejSubS{background-color:var(--color-font-grey);border:none!important;border-radius:3px;color:#fff;display:inline;font-size:1em;font-weight:400!important;line-height:30px!important;margin-right:5px;padding:0 5px 3px 5px!important}.EgtejSubS{font-size:1em}.EgtejCcl a,.EgtejSub a,.EgtejSubS a{color:#fff!important;text-decoration:none!important}.EgtejCcl a{line-height:18px}.EgtejBld{font-weight:700}.EgtejIdxAr,.EgtejYrAr{margin-top:3px;background-color:rgba(173,173,173,.16);padding:5px}.EgtejYrTb{border-collapse:collapse;width:100%}.EgtejYrTb td{vertical-align:top}.EgtejYrImg img{width:100%}.EgtejYrTb th{vertical-align:top;width:40px}.EgtejWrp{margin-left:2px}.EgtejCrTb{margin-bottom:10px}.EgtejCrTb td{padding-left:30px;vertical-align:top}.EgtejCrTb td:first-child{padding:0;width:40%}.EgtejCrTb td img{border:#ccc solid 1px;padding:10px;width:100%}.EgtejSpc{display:inline-block;width:1em}.EgtejClmTb{width:100%}.EgtejClmTb td{line-height:1.2em;vertical-align:top}.EgtejClmImg img{width:100%}.EgtejIdxCld{margin-left:40px;margin-right:10px}.EgtejSign{display:inline-block;font-size:1em;line-height:1.2em;margin-top:10px}.EgtejCcl{background-color:var(--color-font-grey);border-radius:50%;color:#fff;display:inline-block;font-size:1em;font-weight:700;height:18px;line-height:18px;text-align:center;width:18px}.EgtejRmIdx{font-size:1em}.EgtejAncTgt{display:none}.EgtejAncTgt+.br{margin-bottom:1em}.EgtejAncLnk{text-decoration:none}.CtbdsWrp{margin:0 15px 25px 4px}.CtbdsWrpNt{margin-top:36px;margin-bottom:36px}.Jfwik .level0,.Jfwik .level0Head{font-size:1.4em;font-weight:700;margin:10px 0 2px 0;padding-left:5px}.Jfwik .level0Head{margin-top:0}.Jfwik .level0 span,.Jfwik .level0Head span{border:#95adce solid;border-width:0 0 0 8px;padding:3px 2px 2px 0}.flex-rectangle-ads-frame{display:flex;justify-content:space-around;align-items:center}.intrstR .conjugateRowL{width:14%;vertical-align:top}.summaryM{margin-bottom:5px}.summaryHead{display:flex;align-items:center}.summaryHead h1{font-size:1.3rem}.summaryHead .h1keywords{display:none}img{display:inline}.qotC{margin:.5em 0}.qotC p{margin:0}.qotCE .squareCircle,.qotCJE .squareCircle{display:none}.CtbdsLb{background-color:var(--color-font-grey);color:#fff;font-size:15px;font-weight:400;margin:0 6px 0 4px;padding:3px 5px!important;white-space:nowrap}.CtbdsLbNt{font-size:20px}.CtbdsTdCore,.CtbdsTdPoint{width:auto}.CtbdsWrp{margin:0 15px 25px 4px}.CtbdsWrpNt{margin-top:36px;margin-bottom:36px}.CtbdsCat,.CtbdsPv{margin:10px 0}.CtbdsPv{font-weight:700}.CtbdsSemSpaced{margin-bottom:10px}.CtbdsExAr{background-color:rgba(173,173,173,.16);height:auto;margin:0 5px 5px 5px;padding:5px}.CtbdsEx{padding-left:20px;margin:0}.CtbdsEx li{list-style-type:disc}.CtbdsMetaTb{border-spacing:0;margin:0 0 15px 0}.CtbdsMetaTb td{vertical-align:top}.jmnedGls{margin:0}.br{margin-bottom:5px}.level0 .br{margin:0}.Nekym table{width:100%;table-layout:fixed;border-collapse:collapse;border:1px #696969 solid}.Nekym table th{background-color:#f5f5f5;border:1px #696969 solid;font-weight:700;padding:3px;white-space:nowrap}.Nekym table td{border:1px #696969 solid;padding:5px;line-height:1.3em}.Nekym .nekymS{border-left:#815733 solid 6px;font-size:1.3em;font-weight:700;line-height:1em;margin:10px 0 5px 0;padding-left:3px}.KejjeIdH{border-left:#666 solid 6px;font-size:1.2em;line-height:1em;margin:10px 0 5px 0;padding-left:3px}.phraseEjjeT td{vertical-align:top}.nwnejThL{margin-top:1em}.qotHS{border:#666 solid 1px;padding:0 2px}.qotCE{font-weight:700;line-height:1.2;margin:2px 0 2px 0;padding:0}.qotCJ{color:var(--color-font-grey);line-height:1.2em;margin:-1px 0 13px 0;padding:0}.phraseEjjeT{width:100%}.Edrnt .edrntC,.EgtejLb,.Hypej .HypejLb,.Hypej .HypejYrC,.Jawik .level1 b,.Jawik .level2 b,.Jawik .level2Block b,.Jfwik .level1 b,.Jfwik .level2 b,.Jfwik .level2Block b,.Jmdct .jmdctL,.KejjeYrC,.Stwdj .stwdjHdC,.Wejhs .wejhsL span,.Wejty .wejtyE span,.Wejty .wejtyL,.Wejty .wejtyR span,.Wejty .wejtyT span,.qotHS{background-color:var(--color-surface);border-color:var(--color-divider);color:var(--color-font)}#free-house-ad-on-load-modal-container .features-wrapper .feature,.EGateCoreDataWrp table td,.Hypej .HypejB tr td,.Hypej .HypejB tr th,.Jeepm table,.Jeepm td,.Jmned table,.Jmned table td,.Jmned table th,.Mzdmt .cell_center_left,.Mzdmt .cell_left,.Mzdmt .cell_left_no,.Nekym table,.Nekym table td,.Nekym table th,.descriptionWrp table td,.free-member-features ul.features li,.infobox.bordered .mergedrow td,.infobox.bordered .mergedrow th,.infobox.bordered .mergedtoprow td,.infobox.bordered .mergedtoprow th,.infobox.bordered td,.infobox.bordered th,.treeBoxCFoldLi .pl{border-color:var(--color-divider)}.Jmned .jmnedInfo,.Jmned table th,.Mtsbs table.spec tr.mainheader th,.Mtsbs table.spec tr.mainheader th.basic,.Nekym table th,.Wejhs .wejhsInfo,.Wejty .wejtyInfo,.Wwsej .wwsejInfo,.ad02_center-left_box,.ad02_center-right_box,.ad02_right_box,.highlight-lib .highlight-edit table,.highlight-lib .hl-item,.highlight-lib .hl-pagination>li>a,.highlight-menu,.highlight-menu table{background-color:var(--color-surface);border-color:var(--color-divider)}.CtbdsExAr,.EgtejIdxAr,.EgtejYrAr,.ad02_left_box,.highlight-lib .hl-pagination .active a,.highlight-lib .hl-pagination a:hover,.summaryM .description{background-color:var(--color-surface-active)}#free-house-ad-on-load-modal-container .features-wrapper .feature span,#sideBHPAEjje>.error a,.KejjeYrHd a,.KejjeYrL,.KejjeYrLS,.KejjeYrTxt a,.Stwdj .stwdjYr a,.footer_banner ul.features,.kijiEx,.mainb,.pinned-content-button-wrapper>.error a,.wrpAdFTxt p,.wrpCmp p a,.wrpCmpCom p a,.wrpEx p,.wrpEx p a:active,.wrpEx p a:link,.wrpEx p a:visited,.wrpEx p.wrpExFL,.wrpExE p,.wrpExE p a:active,.wrpExE p a:link,.wrpExE p a:visited,.wrpIMCmp p a,.wrpIMCmpCom p a{color:var(--color-font)}.Efref .efrefA,.Hndmr table#webcatalogue-table p.caution,.qotCJ,.wrpEx p span{color:var(--color-font-grey)}#main a:hover,.ejjeScCnt .chsShwcsTD a:active,.ejjeScCnt .chsShwcsTD a:link,.ejjeScCnt .chsShwcsTD a:visited,.treeBoxC .adIFLeftE,.youreilink{color:var(--color-link)}#sideBHPAEjje>.error,.pinned-content-button-wrapper>.error,.summaryR>.error{background-color:var(--color-surface);color:var(--color-font)}',""]),e.exports=t},730:function(e,t,i){var r=i(1400);e.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/55.c2780cf1.js b/plugins/saladict-ztools/ext-saladic/assets/55.c2780cf1.js deleted file mode 100644 index 2073c352..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/55.c2780cf1.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[55],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},30:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function l(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function s(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return y}));var r=n(507),o=n.n(r);n(0),n(116),n(182),n(10),n(371),n(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function u(e,...t){if(!e)return"";let n="",r=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(r=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const i=o.textContent||"";return r?r(i):i}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function s(e,{mode:t="innerHTML",selector:n,transform:r,host:i,config:a=l}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(i){const e=e=>{e.setAttribute("href",y(i,e,"href")),e.setAttribute("src",y(i,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),s=u.firstChild?u.firstChild[t]:"";return r?r(s):s}function f(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function d(e,t,n={}){return s(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function h(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function y(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const r=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?r+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},507:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),s=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,d=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(e,t){d&&d(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function h(e){var t={},n=void 0;for(n in e)p(f,e,[n])&&(t[n]=e[n]);return t}p||(p=function(e,t,n){return e.apply(t,n)});var y=Object.seal||function(e){return e},g=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),v=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),A=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x=y(/^(?:\w+script|data):/i),w=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function E(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var O=("undefined"!=typeof Reflect&&Reflect).apply,S=Array.prototype.slice,L=Object.freeze,R=function(){return"undefined"==typeof window?null:window};O||(O=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":_(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var d=a.document,p=!1,y=!1,N=a.document,k=a.DocumentFragment,D=a.HTMLTemplateElement,C=a.Node,H=a.NodeFilter,j=a.NamedNodeMap,z=void 0===j?a.NamedNodeMap||a.MozNamedAttrMap:j,F=a.Text,I=a.Comment,U=a.DOMParser,P=a.TrustedTypes;if("function"==typeof D){var W=N.createElement("template");W.content&&W.content.ownerDocument&&(N=W.content.ownerDocument)}var q=M(P,d),B=q?q.createHTML(""):"",G=N,$=G.implementation,K=G.createNodeIterator,V=G.getElementsByTagName,Y=G.createDocumentFragment,X=d.importNode,Z={};f.isSupported=$&&void 0!==$.createHTMLDocument&&9!==N.documentMode;var J=g,Q=v,ee=b,te=T,ne=x,re=w,oe=A,ie=null,ae=m({},[].concat(E(t),E(n),E(r),E(o),E(i))),ce=null,ue=m({},[].concat(E(c),E(u),E(l),E(s))),le=null,se=null,fe=!0,de=!0,pe=!1,me=!1,he=!1,ye=!1,ge=!1,ve=!1,be=!1,Te=!1,Ae=!1,xe=!1,we=!0,_e=!0,Ee=!1,Oe={},Se=m({},["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"]),Le=m({},["audio","video","img","source","image"]),Re=null,Me=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,ke=N.createElement("form"),De=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":_(e))||(e={}),ie="ALLOWED_TAGS"in e?m({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?m({},e.ALLOWED_ATTR):ue,Re="ADD_URI_SAFE_ATTR"in e?m(h(Me),e.ADD_URI_SAFE_ATTR):Me,le="FORBID_TAGS"in e?m({},e.FORBID_TAGS):{},se="FORBID_ATTR"in e?m({},e.FORBID_ATTR):{},Oe="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,de=!1!==e.ALLOW_DATA_ATTR,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.SAFE_FOR_JQUERY||!1,he=e.SAFE_FOR_TEMPLATES||!1,ye=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_DOM_IMPORT||!1,xe=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,we=!1!==e.SANITIZE_DOM,_e=!1!==e.KEEP_CONTENT,Ee=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,he&&(de=!1),Te&&(be=!0),Oe&&(ie=m({},[].concat(E(i))),ce=[],!0===Oe.html&&(m(ie,t),m(ce,c)),!0===Oe.svg&&(m(ie,n),m(ce,u),m(ce,s)),!0===Oe.svgFilters&&(m(ie,r),m(ce,u),m(ce,s)),!0===Oe.mathMl&&(m(ie,o),m(ce,l),m(ce,s))),e.ADD_TAGS&&(ie===ae&&(ie=h(ie)),m(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=h(ce)),m(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&m(Re,e.ADD_URI_SAFE_ATTR),_e&&(ie["#text"]=!0),ye&&m(ie,["html","head","body"]),ie.table&&(m(ie,["tbody"]),delete le.tbody),L&&L(e),Ne=e)},Ce=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=B}},He=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},je=function(e){var t=void 0,n=void 0;if(ve)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(p)try{t=(new U).parseFromString(e,"text/html")}catch(e){}if(y&&m(le,["title"]),!t||!t.documentElement){var o=(t=$.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=q?q.createHTML(e):e}return e&&n&&t.body.insertBefore(N.createTextNode(n),t.body.childNodes[0]||null),V.call(t,ye?"html":"body")[0]};f.isSupported&&(function(){try{je('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(e){}}(),function(){try{var e=je("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(y=!0)}catch(e){}}());var ze=function(e){return K.call(e.ownerDocument||e,e,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT,(function(){return H.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof I||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof z&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Ie=function(e){return"object"===(void 0===C?"undefined":_(C))?e instanceof C:e&&"object"===(void 0===e?"undefined":_(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ue=function(e,t,n){Z[e]&&Z[e].forEach((function(e){e.call(f,t,n,Ne)}))},Pe=function(e){var t=void 0;if(Ue("beforeSanitizeElements",e,null),Fe(e))return Ce(e),!0;var n=e.nodeName.toLowerCase();if(Ue("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return Ce(e),!0;if(!ie[n]||le[n]){if(_e&&!Se[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",q?q.createHTML(r):r)}catch(e){}return Ce(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(Ce(e),!0):(!me||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),he&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),Ue("afterSanitizeElements",e,null),!1)},We=function(e,t,n){if(we&&("id"===t||"name"===t)&&(n in N||n in ke))return!1;if(de&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||se[t])return!1;if(Re[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Le[e])if(pe&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},qe=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;Ue("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],l=u.name,s=u.namespaceURI;if(n=t.value.trim(),r=l.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,Ue("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=O(S,a,[]),He("id",e),He(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!se[r]))continue;"id"===l&&e.setAttribute(l,""),He(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(Se).join("|")+")","i").test(n))He(l,e);else{he&&(n=(n=n.replace(J," ")).replace(Q," "));var d=e.nodeName.toLowerCase();if(We(d,r,n))try{s?e.setAttributeNS(s,l,n):e.setAttribute(l,n),f.removed.pop()}catch(e){}}}Ue("afterSanitizeAttributes",e,null)}},Be=function e(t){var n=void 0,r=ze(t);for(Ue("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ue("uponSanitizeShadowNode",n,null),Pe(n)||(n.content instanceof k&&e(n.content),qe(n));Ue("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Ie(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===_(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(Ie(e))return a.toStaticHTML(e.outerHTML)}return e}if(ge||De(t),f.removed=[],Ee);else if(e instanceof C)1===(r=(n=je("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!be&&!he&&!ye&&xe&&-1===e.indexOf("<"))return q?q.createHTML(e):e;if(!(n=je(e)))return be?null:B}n&&ve&&Ce(n.firstChild);for(var u=ze(Ee?e:n);o=u.nextNode();)3===o.nodeType&&o===i||Pe(o)||(o.content instanceof k&&Be(o.content),qe(o),i=o);if(i=null,Ee)return e;if(be){if(Te)for(c=Y.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return Ae&&(c=X.call(d,c,!0)),c}var l=ye?n.outerHTML:n.innerHTML;return he&&(l=(l=l.replace(J," ")).replace(Q," ")),q&&xe?q.createHTML(l):l},f.setConfig=function(e){De(e),ge=!0},f.clearConfig=function(){Ne=null,ge=!1},f.isValidAttribute=function(e,t,n){Ne||De({});var r=e.toLowerCase(),o=t.toLowerCase();return We(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},634:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},637:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return a})),n.d(t,"search",(function(){return c})),n.d(t,"moedictSearch",(function(){return u}));var r=n(5),o=n(131),i=n.n(o);const a=async e=>"https://www.moedict.tw/"+(await Object(r.b)())(e),c=(e,t,n,r)=>u("a",e,t,n.dicts.all.guoyu.options);async function u(e,t,n,o){const a=await Object(r.b)(),{data:c}=await i.a.get(`https://www.moedict.tw/${e}/${encodeURIComponent(a(t.replace(/\s+/g,"")))}.json`).catch(r.g);if(!c||!c.h)return Object(r.h)();o.trans||(c.translation=void 0);const u={result:c};for(const e of c.h)e["="]&&(e["="]=`https://203146b5091e8f0aafda-15d41c68795720c6e932125f5ace0c70.ssl.cf1.rackcdn.com/${e["="]}.ogg`),u.audio||(u.audio={py:e["="]});return u}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/56.28b02f1a.js b/plugins/saladict-ztools/ext-saladic/assets/56.28b02f1a.js new file mode 100644 index 00000000..ec18304f --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/56.28b02f1a.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[56],{1401:function(i,t,e){(t=e(226)(!1)).push([i.i,'button,h1,h2,h3,h4,li,ul{margin:0;padding:0}img{display:block;max-width:95%}p{margin:.5em 0}ul li{list-style-type:none}button{background:0 0;border:none}button:hover{outline:0}a{color:#f9690e;text-decoration:none}a:hover{text-decoration:underline}select{color:#666;border:1px solid rgba(133,133,133,.28);background:0 0}.dictWikipedia-Content .infobox,.fancy-scrollbar{overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;scrollbar-width:auto}.dictWikipedia-Content .infobox::-webkit-scrollbar,.fancy-scrollbar::-webkit-scrollbar{height:8px;width:8px}.dictWikipedia-Content .infobox::-webkit-scrollbar-track,.fancy-scrollbar::-webkit-scrollbar-track{background-color:transparent}.dictWikipedia-Content .infobox::-webkit-scrollbar-thumb,.fancy-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(138,138,138,.25);border-radius:4px}.dictWikipedia-Content .infobox::-webkit-scrollbar-thumb:hover,.fancy-scrollbar::-webkit-scrollbar-thumb:hover{background-color:rgba(138,138,138,.35)}.dictWikipedia-Content .infobox::-webkit-scrollbar-thumb:active,.fancy-scrollbar::-webkit-scrollbar-thumb:active{background-color:rgba(138,138,138,.6)}.dictWikipedia-Content .infobox::-webkit-scrollbar-thumb:vertical,.fancy-scrollbar::-webkit-scrollbar-thumb:vertical{min-height:50px}.dictWikipedia-Content .infobox::-webkit-scrollbar-thumb:horizontal,.fancy-scrollbar::-webkit-scrollbar-thumb:horizontal{min-width:50px}.dictWikipedia-Title{margin:0 0 .6em;padding-bottom:.25em;border-bottom:1px solid rgba(127,127,127,.28);font-size:1.45em;font-weight:600;line-height:1.25}.dictWikipedia-Title+select{max-width:100%;margin:0 0 .9em;padding:.25em 1.8em .25em .45em;color:inherit;border:1px solid rgba(127,127,127,.45);border-radius:3px;background-color:transparent;font:inherit}.dictWikipedia-Content{line-height:1.62;overflow-wrap:break-word}.dictWikipedia-Content *,.dictWikipedia-Content ::after,.dictWikipedia-Content ::before{box-sizing:border-box}.dictWikipedia-Content a{color:#36c;text-decoration:none}.dictWikipedia-Content a:hover{text-decoration:underline}.dictWikipedia-Content .hatnote,.dictWikipedia-Content .mw-empty-elt+.hatnote,.dictWikipedia-Content blockquote,.dictWikipedia-Content dl,.dictWikipedia-Content figure,.dictWikipedia-Content ol,.dictWikipedia-Content p,.dictWikipedia-Content pre,.dictWikipedia-Content table,.dictWikipedia-Content ul{margin-top:0;margin-bottom:.75em}.dictWikipedia-Content p{min-height:1px}.dictWikipedia-Content b,.dictWikipedia-Content strong,.dictWikipedia-Content th{font-weight:600}.dictWikipedia-Content em,.dictWikipedia-Content i{font-style:italic}.dictWikipedia-Content small{font-size:.86em}.dictWikipedia-Content sub,.dictWikipedia-Content sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}.dictWikipedia-Content sup{top:-.45em}.dictWikipedia-Content sub{bottom:-.25em}.dictWikipedia-Content ol,.dictWikipedia-Content ul{padding-left:1.45em}.dictWikipedia-Content ul{list-style:disc}.dictWikipedia-Content ol{list-style:decimal}.dictWikipedia-Content li{margin:.2em 0}.dictWikipedia-Content li>ol,.dictWikipedia-Content li>ul{margin-top:.25em;margin-bottom:.25em}.dictWikipedia-Content dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.25em .75em}.dictWikipedia-Content dt{font-weight:600}.dictWikipedia-Content dd{margin:0}.dictWikipedia-Content .mw-heading{display:flex;align-items:center;gap:.45em;clear:both;position:relative;margin:1.2em 0 .55em;padding-bottom:.18em;border-bottom:1px solid rgba(127,127,127,.22);cursor:pointer;-moz-user-select:none;user-select:none}.dictWikipedia-Content .mw-heading:first-child{margin-top:0}.dictWikipedia-Content .mw-heading::before{flex:0 0 auto;content:"";border-top:.32em solid transparent;border-bottom:.32em solid transparent;border-left:.42em solid currentColor;opacity:.65;transform:rotate(90deg);transition:transform 120ms ease}.dictWikipedia-Content .mw-heading.dictWikipedia-Collapsed::before{transform:rotate(0)}.dictWikipedia-Content .mw-heading:hover{border-bottom-color:rgba(127,127,127,.42)}.dictWikipedia-Content .mw-heading h1,.dictWikipedia-Content .mw-heading h2,.dictWikipedia-Content .mw-heading h3,.dictWikipedia-Content .mw-heading h4,.dictWikipedia-Content .mw-heading h5,.dictWikipedia-Content .mw-heading h6{margin:0;font-weight:600;line-height:1.32}.dictWikipedia-Content .mw-heading h1,.dictWikipedia-Content .mw-heading h2{font-size:1.22em}.dictWikipedia-Content .mw-heading h3{font-size:1.1em}.dictWikipedia-Content .mw-heading h4,.dictWikipedia-Content .mw-heading h5,.dictWikipedia-Content .mw-heading h6{font-size:1em}.dictWikipedia-Content .authority-control,.dictWikipedia-Content .metadata,.dictWikipedia-Content .mw-collapsible-toggle,.dictWikipedia-Content .mw-editsection,.dictWikipedia-Content .mw-empty-elt,.dictWikipedia-Content .navbox,.dictWikipedia-Content .navbox-styles,.dictWikipedia-Content .noprint,.dictWikipedia-Content .printfooter{display:none!important}.dictWikipedia-Content .hatnote{padding:.45em .65em;border-left:3px solid rgba(127,127,127,.45);color:rgba(72,72,72,.95);background:rgba(127,127,127,.08);font-size:.92em}.dictWikipedia-Content .thumb,.dictWikipedia-Content figure{clear:both;max-width:100%;margin:.75em auto;text-align:center}.dictWikipedia-Content .thumb.tleft,.dictWikipedia-Content .thumb.tright,.dictWikipedia-Content figure[typeof*=Thumb]{float:none}.dictWikipedia-Content .thumbcaption,.dictWikipedia-Content figcaption{margin-top:.35em;color:rgba(80,80,80,.9);font-size:.86em;line-height:1.45;text-align:left}.dictWikipedia-Content img{display:inline-block;max-width:100%!important;height:auto!important;vertical-align:middle}.dictWikipedia-Content a>img{border:0}.dictWikipedia-Content .mw-file-element,.dictWikipedia-Content .mwe-math-fallback-image-display,.dictWikipedia-Content .mwe-math-fallback-image-inline{background:0 0}.dictWikipedia-Content .mwe-math-element{max-width:100%;overflow-x:auto}.dictWikipedia-Content .mwe-math-mathml-a11y{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);opacity:0}.dictWikipedia-Content table{display:block;width:100%!important;max-width:100%;overflow-x:auto;border-collapse:collapse;border-spacing:0;font-size:.92em}.dictWikipedia-Content caption{padding:.35em 0;font-weight:600;text-align:left}.dictWikipedia-Content td,.dictWikipedia-Content th{padding:.35em .5em;border:1px solid rgba(127,127,127,.3);vertical-align:top}.dictWikipedia-Content th{background:rgba(127,127,127,.12);text-align:left}.dictWikipedia-Content .infobox,.dictWikipedia-Content .wikitable{margin:.8em 0}.dictWikipedia-Content .infobox{display:block;clear:both;width:100%!important;max-height:18em;overflow:auto;padding:0;border:0;background:0 0;font-size:.86em}.dictWikipedia-Content .infobox td,.dictWikipedia-Content .infobox th{padding:.22em .38em;border-color:rgba(127,127,127,.18);text-align:left!important}.dictWikipedia-Content .infobox tr:first-child td,.dictWikipedia-Content .infobox tr:first-child th{background:rgba(127,127,127,.12)}.dictWikipedia-Content .infobox img{max-height:6em;object-fit:contain}@media(min-width:28em){.dictWikipedia-Content .infobox{float:right!important;clear:right;width:15.5em!important;max-width:48%;max-height:24em;margin:.15em 0 .8em 1em}}.dictWikipedia-Content .ambox,.dictWikipedia-Content .cmbox,.dictWikipedia-Content .mbox-small,.dictWikipedia-Content .tmbox{width:100%!important;margin:.75em 0;border-left:3px solid rgba(127,127,127,.55);background:rgba(127,127,127,.08)}.dictWikipedia-Content .ambox td,.dictWikipedia-Content .ambox th,.dictWikipedia-Content .cmbox td,.dictWikipedia-Content .cmbox th,.dictWikipedia-Content .mbox-small td,.dictWikipedia-Content .mbox-small th,.dictWikipedia-Content .tmbox td,.dictWikipedia-Content .tmbox th{border:0}.dictWikipedia-Content .reference{white-space:nowrap;font-size:.8em}.dictWikipedia-Content .references{font-size:.9em}.dictWikipedia-Content .references li{margin-bottom:.45em}.dictWikipedia-Content .mw-cite-backlink{-moz-user-select:none;user-select:none}.dictWikipedia-Content blockquote{padding-left:.85em;border-left:3px solid rgba(127,127,127,.35);color:rgba(72,72,72,.95)}.dictWikipedia-Content code,.dictWikipedia-Content pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.dictWikipedia-Content pre{max-width:100%;overflow-x:auto;padding:.6em;border:1px solid rgba(127,127,127,.22);background:rgba(127,127,127,.07)}.dictWikipedia-Content .hlist dl,.dictWikipedia-Content .hlist ol,.dictWikipedia-Content .hlist ul{display:inline;padding-left:0}.dictWikipedia-Content .hlist dd,.dictWikipedia-Content .hlist dt,.dictWikipedia-Content .hlist li{display:inline;margin:0}.dictWikipedia-Content .hlist dd::after,.dictWikipedia-Content .hlist li::after{content:" · ";font-weight:600}.dictWikipedia-Content .hlist dd:last-child::after,.dictWikipedia-Content .hlist li:last-child::after{content:""}',""]),i.exports=t},731:function(i,t,e){var n=e(1401);i.exports="string"==typeof n?n:n.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/56.b6c6d71f.js b/plugins/saladict-ztools/ext-saladic/assets/56.b6c6d71f.js deleted file mode 100644 index 4b18cfe7..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/56.b6c6d71f.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[56],{116:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(0),o=r(30);function i(t,e){var r=Object(o.e)(o.a),i=Object(o.e)((function(){return t(r.current)}));return[Object(n.useRef)((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r.current.next(e?e(t):t[0])})).current,i.current]}},182:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(30),o=r(0);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Object(o.useRef)(t);r.current=t;var i=Object(n.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var t=r.current[0],e=t.subscribe({next:function(e){if(t===r.current[0])return r.current[1]?r.current[1](e):void 0},error:function(e){if(t===r.current[0]){if(r.current[2])return c.current=null,r.current[2](e);c.current=e,i()}},complete:function(){if(t===r.current[0])return r.current[3]?r.current[3]():void 0}});return a.current=e,function(){e.unsubscribe()}}),[t[0]]),c.current)throw c.current;return a}},30:function(t,e,r){"use strict";r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return c})),r.d(e,"a",(function(){return l})),r.d(e,"e",(function(){return u})),r.d(e,"d",(function(){return s}));var n=r(0),o=r(91),i=r(161);function a(t){return t}function c(t){return Object(i.a)(0)(t)}function l(){return new o.a}function u(t){var e=Object(n.useRef)(!0),r=Object(n.useRef)(null);return e.current&&(e.current=!1,r.current=t()),r}function s(){var t=Object(n.useState)(0)[1];return Object(n.useRef)((function(){return t(d)})).current}function d(t){return(t+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect},5:function(t,e,r){"use strict";r.d(e,"h",(function(){return i})),r.d(e,"g",(function(){return a})),r.d(e,"b",(function(){return c})),r.d(e,"f",(function(){return l})),r.d(e,"d",(function(){return d})),r.d(e,"e",(function(){return f})),r.d(e,"i",(function(){return p})),r.d(e,"j",(function(){return m})),r.d(e,"a",(function(){return h})),r.d(e,"c",(function(){return y}));var n=r(507),o=r.n(n);r(0),r(116),r(182),r(10),r(371),r(634);function i(){return Promise.reject(new Error("NO_RESULT"))}function a(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(t){return null==t||/zh-TW|zh-HK/i.test(t)?(await r.e(109).then(r.bind(null,1321))).chsToChz:null}function l(t,...e){if(!t)return"";let r="",n=null;for(let t=e.length-1;t>=0;t--)"string"==typeof e[t]?r=e[t]:"function"==typeof e[t]&&(n=e[t]);const o=r?t.querySelector(r):t;if(!o)return"";const i=o.textContent||"";return n?n(i):i}const u={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function s(t,{mode:e="innerHTML",selector:r,transform:n,host:i,config:a=u}={}){const c=r?t.querySelector(r):t;if(!c)return"";if(i){const t=t=>{t.setAttribute("href",y(i,t,"href")),t.setAttribute("src",y(i,t,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||t(c),c.querySelectorAll("a").forEach(t),c.querySelectorAll("img").forEach(t)}const l=o.a.sanitize(c,{...a,RETURN_DOM_FRAGMENT:!0}),s=l.firstChild?l.firstChild[e]:"";return n?n(s):s}function d(t,e,r={}){return s(e,"string"==typeof r?{selector:r,host:t,mode:"innerHTML"}:{...r,host:t,mode:"innerHTML"})}function f(t,e,r={}){return s(e,"string"==typeof r?{selector:r,host:t,mode:"outerHTML"}:{...r,host:t,mode:"outerHTML"})}function p(t,e){const r=t.querySelector(e);r&&r.remove()}function m(t,e){t.querySelectorAll(e).forEach(t=>t.remove())}function h(t){t.setAttribute("target","_blank"),t.setAttribute("rel","nofollow noopener noreferrer")}function y(t,e,r){t.endsWith("/")&&(t=t.slice(0,-1));const n=t.startsWith("https")?"https:":"http:",o=e.getAttribute(r);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?n+o:/^.?\/+/.test(o)?t+"/"+o.replace(/^.?\/+/,""):t+"/"+o:""}},507:function(t,e,r){t.exports=function(){"use strict";var t=Object.freeze||function(t){return t},e=t(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),r=t(["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"]),n=t(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=t(["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"]),i=t(["#text"]),a=Object.freeze||function(t){return t},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),l=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),u=a(["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"]),s=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),d=Object.hasOwnProperty,f=Object.setPrototypeOf,p=("undefined"!=typeof Reflect&&Reflect).apply;function m(t,e){f&&f(t,null);for(var r=e.length;r--;){var n=e[r];if("string"==typeof n){var o=n.toLowerCase();o!==n&&(Object.isFrozen(e)||(e[r]=o),n=o)}t[n]=!0}return t}function h(t){var e={},r=void 0;for(r in t)p(d,t,[r])&&(e[r]=t[r]);return e}p||(p=function(t,e,r){return t.apply(e,r)});var y=Object.seal||function(t){return t},v=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),g=y(/<%[\s\S]*|[\s\S]*%>/gm),b=y(/^data-[\-\w.\u00B7-\uFFFF]/),T=y(/^aria-[\-\w]+$/),x=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),w=y(/^(?:\w+script|data):/i),A=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),_="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 E(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}var O=("undefined"!=typeof Reflect&&Reflect).apply,S=Array.prototype.slice,R=Object.freeze,L=function(){return"undefined"==typeof window?null:window};O||(O=function(t,e,r){return t.apply(e,r)});var M=function(t,e){if("object"!==(void 0===t?"undefined":_(t))||"function"!=typeof t.createPolicy)return null;var r=null;e.currentScript&&e.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=e.currentScript.getAttribute("data-tt-policy-suffix"));var n="dompurify"+(r?"#"+r:"");try{return t.createPolicy(n,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function t(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L(),d=function(e){return t(e)};if(d.version="2.0.7",d.removed=[],!a||!a.document||9!==a.document.nodeType)return d.isSupported=!1,d;var f=a.document,p=!1,y=!1,N=a.document,k=a.DocumentFragment,j=a.HTMLTemplateElement,D=a.Node,C=a.NodeFilter,H=a.NamedNodeMap,I=void 0===H?a.NamedNodeMap||a.MozNamedAttrMap:H,z=a.Text,F=a.Comment,U=a.DOMParser,W=a.TrustedTypes;if("function"==typeof j){var P=N.createElement("template");P.content&&P.content.ownerDocument&&(N=P.content.ownerDocument)}var q=M(W,f),B=q?q.createHTML(""):"",G=N,V=G.implementation,$=G.createNodeIterator,K=G.getElementsByTagName,Y=G.createDocumentFragment,J=f.importNode,X={};d.isSupported=V&&void 0!==V.createHTMLDocument&&9!==N.documentMode;var Z=v,Q=g,tt=b,et=T,rt=w,nt=A,ot=x,it=null,at=m({},[].concat(E(e),E(r),E(n),E(o),E(i))),ct=null,lt=m({},[].concat(E(c),E(l),E(u),E(s))),ut=null,st=null,dt=!0,ft=!0,pt=!1,mt=!1,ht=!1,yt=!1,vt=!1,gt=!1,bt=!1,Tt=!1,xt=!1,wt=!1,At=!0,_t=!0,Et=!1,Ot={},St=m({},["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"]),Rt=m({},["audio","video","img","source","image"]),Lt=null,Mt=m({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Nt=null,kt=N.createElement("form"),jt=function(t){Nt&&Nt===t||(t&&"object"===(void 0===t?"undefined":_(t))||(t={}),it="ALLOWED_TAGS"in t?m({},t.ALLOWED_TAGS):at,ct="ALLOWED_ATTR"in t?m({},t.ALLOWED_ATTR):lt,Lt="ADD_URI_SAFE_ATTR"in t?m(h(Mt),t.ADD_URI_SAFE_ATTR):Mt,ut="FORBID_TAGS"in t?m({},t.FORBID_TAGS):{},st="FORBID_ATTR"in t?m({},t.FORBID_ATTR):{},Ot="USE_PROFILES"in t&&t.USE_PROFILES,dt=!1!==t.ALLOW_ARIA_ATTR,ft=!1!==t.ALLOW_DATA_ATTR,pt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,mt=t.SAFE_FOR_JQUERY||!1,ht=t.SAFE_FOR_TEMPLATES||!1,yt=t.WHOLE_DOCUMENT||!1,bt=t.RETURN_DOM||!1,Tt=t.RETURN_DOM_FRAGMENT||!1,xt=t.RETURN_DOM_IMPORT||!1,wt=t.RETURN_TRUSTED_TYPE||!1,gt=t.FORCE_BODY||!1,At=!1!==t.SANITIZE_DOM,_t=!1!==t.KEEP_CONTENT,Et=t.IN_PLACE||!1,ot=t.ALLOWED_URI_REGEXP||ot,ht&&(ft=!1),Tt&&(bt=!0),Ot&&(it=m({},[].concat(E(i))),ct=[],!0===Ot.html&&(m(it,e),m(ct,c)),!0===Ot.svg&&(m(it,r),m(ct,l),m(ct,s)),!0===Ot.svgFilters&&(m(it,n),m(ct,l),m(ct,s)),!0===Ot.mathMl&&(m(it,o),m(ct,u),m(ct,s))),t.ADD_TAGS&&(it===at&&(it=h(it)),m(it,t.ADD_TAGS)),t.ADD_ATTR&&(ct===lt&&(ct=h(ct)),m(ct,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&m(Lt,t.ADD_URI_SAFE_ATTR),_t&&(it["#text"]=!0),yt&&m(it,["html","head","body"]),it.table&&(m(it,["tbody"]),delete ut.tbody),R&&R(t),Nt=t)},Dt=function(t){d.removed.push({element:t});try{t.parentNode.removeChild(t)}catch(e){t.outerHTML=B}},Ct=function(t,e){try{d.removed.push({attribute:e.getAttributeNode(t),from:e})}catch(t){d.removed.push({attribute:null,from:e})}e.removeAttribute(t)},Ht=function(t){var e=void 0,r=void 0;if(gt)t="<remove></remove>"+t;else{var n=t.match(/^[\s]+/);(r=n&&n[0])&&(t=t.slice(r.length))}if(p)try{e=(new U).parseFromString(t,"text/html")}catch(t){}if(y&&m(ut,["title"]),!e||!e.documentElement){var o=(e=V.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=q?q.createHTML(t):t}return t&&r&&e.body.insertBefore(N.createTextNode(r),e.body.childNodes[0]||null),K.call(e,yt?"html":"body")[0]};d.isSupported&&(function(){try{Ht('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(p=!0)}catch(t){}}(),function(){try{var t=Ht("<x/><title></title><img>");/<\/title/.test(t.querySelector("title").innerHTML)&&(y=!0)}catch(t){}}());var It=function(t){return $.call(t.ownerDocument||t,t,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT,(function(){return C.FILTER_ACCEPT}),!1)},zt=function(t){return!(t instanceof z||t instanceof F||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof I&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI)},Ft=function(t){return"object"===(void 0===D?"undefined":_(D))?t instanceof D:t&&"object"===(void 0===t?"undefined":_(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Ut=function(t,e,r){X[t]&&X[t].forEach((function(t){t.call(d,e,r,Nt)}))},Wt=function(t){var e=void 0;if(Ut("beforeSanitizeElements",t,null),zt(t))return Dt(t),!0;var r=t.nodeName.toLowerCase();if(Ut("uponSanitizeElement",t,{tagName:r,allowedTags:it}),("svg"===r||"math"===r)&&0!==t.querySelectorAll("p, br").length)return Dt(t),!0;if(!it[r]||ut[r]){if(_t&&!St[r]&&"function"==typeof t.insertAdjacentHTML)try{var n=t.innerHTML;t.insertAdjacentHTML("AfterEnd",q?q.createHTML(n):n)}catch(t){}return Dt(t),!0}return"noscript"===r&&/<\/noscript/i.test(t.innerHTML)||"noembed"===r&&/<\/noembed/i.test(t.innerHTML)?(Dt(t),!0):(!mt||t.firstElementChild||t.content&&t.content.firstElementChild||!/</g.test(t.textContent)||(d.removed.push({element:t.cloneNode()}),t.innerHTML?t.innerHTML=t.innerHTML.replace(/</g,"<"):t.innerHTML=t.textContent.replace(/</g,"<")),ht&&3===t.nodeType&&(e=(e=(e=t.textContent).replace(Z," ")).replace(Q," "),t.textContent!==e&&(d.removed.push({element:t.cloneNode()}),t.textContent=e)),Ut("afterSanitizeElements",t,null),!1)},Pt=function(t,e,r){if(At&&("id"===e||"name"===e)&&(r in N||r in kt))return!1;if(ft&&tt.test(e));else if(dt&&et.test(e));else{if(!ct[e]||st[e])return!1;if(Lt[e]);else if(ot.test(r.replace(nt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==r.indexOf("data:")||!Rt[t])if(pt&&!rt.test(r.replace(nt,"")));else if(r)return!1}return!0},qt=function(t){var e=void 0,r=void 0,n=void 0,o=void 0,i=void 0;Ut("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ct};for(i=a.length;i--;){var l=e=a[i],u=l.name,s=l.namespaceURI;if(r=e.value.trim(),n=u.toLowerCase(),c.attrName=n,c.attrValue=r,c.keepAttr=!0,Ut("uponSanitizeAttribute",t,c),r=c.attrValue,"name"===n&&"IMG"===t.nodeName&&a.id)o=a.id,a=O(S,a,[]),Ct("id",t),Ct(u,t),a.indexOf(o)>i&&t.setAttribute("id",o.value);else{if("INPUT"===t.nodeName&&"type"===n&&"file"===r&&c.keepAttr&&(ct[n]||!st[n]))continue;"id"===u&&t.setAttribute(u,""),Ct(u,t)}if(c.keepAttr)if(/svg|math/i.test(t.namespaceURI)&&new RegExp("</("+Object.keys(St).join("|")+")","i").test(r))Ct(u,t);else{ht&&(r=(r=r.replace(Z," ")).replace(Q," "));var f=t.nodeName.toLowerCase();if(Pt(f,n,r))try{s?t.setAttributeNS(s,u,r):t.setAttribute(u,r),d.removed.pop()}catch(t){}}}Ut("afterSanitizeAttributes",t,null)}},Bt=function t(e){var r=void 0,n=It(e);for(Ut("beforeSanitizeShadowDOM",e,null);r=n.nextNode();)Ut("uponSanitizeShadowNode",r,null),Wt(r)||(r.content instanceof k&&t(r.content),qt(r));Ut("afterSanitizeShadowDOM",e,null)};return d.sanitize=function(t,e){var r=void 0,n=void 0,o=void 0,i=void 0,c=void 0;if(t||(t="\x3c!--\x3e"),"string"!=typeof t&&!Ft(t)){if("function"!=typeof t.toString)throw new TypeError("toString is not a function");if("string"!=typeof(t=t.toString()))throw new TypeError("dirty is not a string, aborting")}if(!d.isSupported){if("object"===_(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof t)return a.toStaticHTML(t);if(Ft(t))return a.toStaticHTML(t.outerHTML)}return t}if(vt||jt(e),d.removed=[],Et);else if(t instanceof D)1===(n=(r=Ht("\x3c!--\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?r=n:r.appendChild(n);else{if(!bt&&!ht&&!yt&&wt&&-1===t.indexOf("<"))return q?q.createHTML(t):t;if(!(r=Ht(t)))return bt?null:B}r&>&&Dt(r.firstChild);for(var l=It(Et?t:r);o=l.nextNode();)3===o.nodeType&&o===i||Wt(o)||(o.content instanceof k&&Bt(o.content),qt(o),i=o);if(i=null,Et)return t;if(bt){if(Tt)for(c=Y.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return xt&&(c=J.call(f,c,!0)),c}var u=yt?r.outerHTML:r.innerHTML;return ht&&(u=(u=u.replace(Z," ")).replace(Q," ")),q&&wt?q.createHTML(u):u},d.setConfig=function(t){jt(t),vt=!0},d.clearConfig=function(){Nt=null,vt=!1},d.isValidAttribute=function(t,e,r){Nt||jt({});var n=t.toLowerCase(),o=e.toLowerCase();return Pt(n,o,r)},d.addHook=function(t,e){"function"==typeof e&&(X[t]=X[t]||[],X[t].push(e))},d.removeHook=function(t){X[t]&&X[t].pop()},d.removeHooks=function(t){X[t]&&(X[t]=[])},d.removeAllHooks=function(){X={}},d}()}()},634:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(3),o=r(7);function i(){}var a=r(45);function c(t,e,r){return function(n){return n.lift(new l(t,e,r))}}var l=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.nextOrObserver,this.error,this.complete))},t}(),u=function(t){function e(e,r,n,o){var c=t.call(this,e)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=n||i,c._tapComplete=o||i,Object(a.a)(r)?(c._context=c,c._tapNext=r):r&&(c._context=r,c._tapNext=r.next||i,c._tapError=r.error||i,c._tapComplete=r.complete||i),c}return n.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(o.a)},839:function(t,e,r){"use strict";r.r(e),r.d(e,"getSrcPage",(function(){return a})),r.d(e,"search",(function(){return c})),r.d(e,"getTTS",(function(){return u}));var n=r(5),o=r(131),i=r.n(o);const a=async t=>{const e=await l(t).catch(()=>null);if(e){const t=e.searchResults&&e.searchResults[0]&&e.searchResults[0].tarId;if(t)return"https://www.mojidict.com/details/"+t}return"https://www.mojidict.com"},c=async(t,e,r,o)=>{var a,c;const d=await l(t),f=null===(a=d.searchResults)||void 0===a||null===(c=a[0])||void 0===c?void 0:c.tarId;if(!f)return Object(n.h)();const{data:{result:p}}=await i()({method:"post",url:"https://api.mojidict.com/parse/functions/fetchWord_v2",headers:{"content-type":"text/plain"},data:s({wordId:f})}),m={};return p&&(p.details||p.word)?(p.word&&(m.word={tarId:f,spell:p.word.spell,pron:`${p.word.pron||""} ${p.word.accent||""}`}),p.details&&(m.details=p.details.map(t=>{var e;return{objectId:t.objectId,title:t.title,subdetails:null==p||null===(e=p.subdetails)||void 0===e?void 0:e.filter(e=>e.detailsId===t.objectId).map(t=>{var e;return{objectId:t.objectId,title:t.title,examples:null==p||null===(e=p.examples)||void 0===e?void 0:e.filter(e=>e.subdetailsId===t.objectId)}})}})),d.words&&(null==d?void 0:d.words.length)>1&&(m.releated=d.words.map(t=>({title:`${t.spell} | ${t.pron||""} ${t.accent||""}`,excerpt:t.excerpt})).slice(1)),m.word&&"mojidict"===e.autopron.cn.dict?(m.word.tts=await u(f,102),{result:m,audio:{py:m.word.tts}}):{result:m}):Object(n.h)()};async function l(t){try{const{data:{result:e}}=await i()({method:"post",url:"https://api.mojidict.com/parse/functions/search_v3",headers:{"content-type":"text/plain"},data:s({langEnv:"zh-CN_ja",needWords:!0,searchText:t})});return e||Object(n.h)()}catch(t){return Object(n.g)()}}async function u(t,e){try{var r,n;const{data:o}=await i()({method:"post",url:"https://api.mojidict.com/parse/functions/fetchTts_v2",headers:{"content-type":"text/plain"},data:s({tarId:t,tarType:e})});return(null===(r=o.result)||void 0===r||null===(n=r.result)||void 0===n?void 0:n.url)||""}catch(t){!1}return""}function s(t){return JSON.stringify({_ApplicationId:"E62VyFVLMiW7kvbtVq3p",_ClientVersion:"js2.12.0",_InstallationId:d()+d()+"-"+d()+"-"+d()+"-"+d()+"-"+d()+d()+d(),...t})}function d(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/57.233470f1.js b/plugins/saladict-ztools/ext-saladic/assets/57.233470f1.js deleted file mode 100644 index 28c1eda2..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/57.233470f1.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[57],{1328:function(e,t,a){"use strict";var n=a(0),r=a.n(n);t.a=e=>{const{title:t,className:a,children:n,...l}=e;return r.a.createElement("div",{className:"entryBox-Wrap"+(a?" "+a:""),...l},r.a.createElement("section",{className:"entryBox"},r.a.createElement("h1",{className:"entryBox-Title"},t),r.a.createElement("div",null,n)))}},1329:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(0),r=a.n(n);class l extends r.a.PureComponent{render(){const e=this.props.className||"widget-StarRates",t=this.props.max||5,a=Number(this.props.rate)%(t+1)||0,n=this.props.height||"1.5em",l=this.props.gutter||"0.3em",s={height:n,...this.props.style||{}};return r.a.createElement("div",{className:e,style:s},Array.from(Array(t)).map((e,s)=>r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.67 426.67",key:s+a,width:n,height:n,style:{marginRight:s===t-1?"":l}},r.a.createElement("path",{fill:s<a?"#FAC917":"#d1d8de",d:"M213.33 10.44l65.92 133.58 147.42 21.42L320 269.4l25.17 146.83-131.84-69.32-131.85 69.34 25.2-146.82L0 165.45l147.4-21.42"}))))}}},667:function(e,t,a){"use strict";a.r(t),a.d(t,"DictYoudao",(function(){return i}));var n=a(0),r=a.n(n),l=a(119),s=a(1329),c=a(1328);const i=({result:e})=>{const[t,a]=Object(n.useState)(0);return"related"===e.type?r.a.createElement("div",{className:"dictYoudao-Related",dangerouslySetInnerHTML:{__html:e.list}}):r.a.createElement(r.a.Fragment,null,e.title&&r.a.createElement("div",{className:"dictYoudao-HeaderContainer"},r.a.createElement("h1",{className:"dictYoudao-Title"},e.title),r.a.createElement("span",{className:"dictYoudao-Pattern"},e.pattern)),(e.stars>0||e.prons.length>0)&&r.a.createElement("div",{className:"dictYoudao-HeaderContainer"},e.stars>0&&r.a.createElement(s.a,{className:"dictYoudao-Stars",rate:e.stars}),e.prons.map(({phsym:e,url:t})=>r.a.createElement(r.a.Fragment,{key:t},e," ",r.a.createElement(l.c,{src:t}))),r.a.createElement("span",{className:"dictYoudao-Rank"},e.rank)),e.basic&&r.a.createElement("div",{className:"dictYoudao-Basic",dangerouslySetInnerHTML:{__html:e.basic}}),e.collins.length>0&&r.a.createElement(c.a,{title:"柯林斯英汉双解"},e.collins.length>1&&r.a.createElement("select",{value:t,onChange:e=>a(e.currentTarget.value)},e.collins.map((e,t)=>r.a.createElement("option",{key:t,value:t},e.title))),r.a.createElement("div",{className:"dictYoudao-Collins",dangerouslySetInnerHTML:{__html:e.collins[t].content}})),e.discrimination&&r.a.createElement("div",{className:"dictYoudao-Discrimination"},r.a.createElement("h1",{className:"dictYoudao-Discrimination_Title"},"词义辨析"),r.a.createElement("div",{dangerouslySetInnerHTML:{__html:e.discrimination}})),e.sentence&&r.a.createElement(c.a,{title:"权威例句"},r.a.createElement("ol",{className:"dictYoudao-Sentence",dangerouslySetInnerHTML:{__html:e.sentence}})),e.translation&&r.a.createElement(c.a,{title:"机器翻译"},r.a.createElement("div",{className:"dictYoudao-Translation",dangerouslySetInnerHTML:{__html:e.translation}})))};t.default=i}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/88.2e7e18e3.js b/plugins/saladict-ztools/ext-saladic/assets/57.c4911697.js similarity index 86% rename from plugins/saladict-ztools/ext-saladic/assets/88.2e7e18e3.js rename to plugins/saladict-ztools/ext-saladic/assets/57.c4911697.js index c4e289c2..3c0c9f93 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/88.2e7e18e3.js +++ b/plugins/saladict-ztools/ext-saladic/assets/57.c4911697.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[88],{1363:function(i,o,t){(o=t(221)(!1)).push([i.i,".dictYoudao-HeaderContainer{display:flex;align-items:center;flex-wrap:wrap}.dictYoudao-Title{font-size:1.5em;margin-right:8px}.dictYoudao-Pattern{margin-top:.5em}.dictYoudao-Stars{margin-right:8px}.dictYoudao-Basic{margin:.5em 0}.dictYoudao-Collins{position:relative}.dictYoudao-Collins ol,.dictYoudao-Collins ul{padding-left:1.5em}.dictYoudao-Collins h4{padding:0 .5em}.dictYoudao-Collins h4>*{margin-right:5px}.dictYoudao-Collins h4>.title{color:#f9690e}.dictYoudao-Collins .additional{font-weight:400;color:var(--color-font-grey)}.dictYoudao-Collins .collinsOrder{position:absolute;left:0;width:1.5em;text-align:right}.dictYoudao-Collins .exampleLists{position:relative;padding-left:2.5em;color:var(--color-font-grey);border-left:1px solid #666}.dictYoudao-Collins .exampleLists .collinsOrder{left:.5em}.dictYoudao-Discrimination{position:relative}.dictYoudao-Discrimination .do-detail{display:none}.dictYoudao-Discrimination .title{font-size:1.2em;font-weight:700}.dictYoudao-Discrimination .via,.dictYoudao-Discrimination .wordGroup{padding-left:1.2em}.dictYoudao-Discrimination .via{color:#888}.dictYoudao-Discrimination_Title{font-size:1.2em}.dictYoudao-Sentence{margin:0;padding:0 0 0 1.5em}.dictYoudao-Translation>p:last-child{display:none}",""]),i.exports=o},700:function(i,o,t){var d=t(1363);i.exports="string"==typeof d?d:d.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[57],{1402:function(i,o,t){(o=t(226)(!1)).push([i.i,".dictYoudao-HeaderContainer{display:flex;align-items:center;flex-wrap:wrap}.dictYoudao-Title{font-size:1.5em;margin-right:8px}.dictYoudao-Pattern{margin-top:.5em}.dictYoudao-Stars{margin-right:8px}.dictYoudao-Basic{margin:.5em 0}.dictYoudao-Collins{position:relative}.dictYoudao-Collins ol,.dictYoudao-Collins ul{padding-left:1.5em}.dictYoudao-Collins h4{padding:0 .5em}.dictYoudao-Collins h4>*{margin-right:5px}.dictYoudao-Collins h4>.title{color:#f9690e}.dictYoudao-Collins .additional{font-weight:400;color:var(--color-font-grey)}.dictYoudao-Collins .collinsOrder{position:absolute;left:0;width:1.5em;text-align:right}.dictYoudao-Collins .exampleLists{position:relative;padding-left:2.5em;color:var(--color-font-grey);border-left:1px solid #666}.dictYoudao-Collins .exampleLists .collinsOrder{left:.5em}.dictYoudao-Discrimination{position:relative}.dictYoudao-Discrimination .do-detail{display:none}.dictYoudao-Discrimination .title{font-size:1.2em;font-weight:700}.dictYoudao-Discrimination .via,.dictYoudao-Discrimination .wordGroup{padding-left:1.2em}.dictYoudao-Discrimination .via{color:#888}.dictYoudao-Discrimination_Title{font-size:1.2em}.dictYoudao-Sentence{margin:0;padding:0 0 0 1.5em}.dictYoudao-Translation>p:last-child{display:none}",""]),i.exports=o},732:function(i,o,t){var d=t(1402);i.exports="string"==typeof d?d:d.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/58.676be8df.js b/plugins/saladict-ztools/ext-saladic/assets/58.676be8df.js new file mode 100644 index 00000000..465b2c05 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/58.676be8df.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[58],{1403:function(a,n,e){(n=e(226)(!1)).push([a.i,'.MachineTrans-Text .saladict-Speaker{position:absolute;left:0;top:2px;margin:0}.MachineTrans-Text summary{cursor:pointer}.MachineTrans-Lines{position:relative;margin:.5em 0;padding-left:1.5em}.MachineTrans-Lines p{margin:.3em 0}.MachineTrans-Lines-collapse{overflow:hidden;position:relative}.MachineTrans-Lines-collapse::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;background:linear-gradient(90deg,rgba(255,255,255,0) 50%,var(--color-background) 90%);pointer-events:none}.MachineTrans-Lines-collapse button{height:1.5em;padding:0;text-align:start;word-break:keep-all;white-space:nowrap;font-size:1em;font-weight:400;font-family:inherit;color:currentColor;cursor:pointer}.MachineTrans-lang-ar,.MachineTrans-lang-ara,.MachineTrans-lang-az,.MachineTrans-lang-fa,.MachineTrans-lang-he,.MachineTrans-lang-iw,.MachineTrans-lang-ku,.MachineTrans-lang-ug,.MachineTrans-lang-ur{direction:rtl!important}.MachineTrans-lang-ar.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ara.MachineTrans-Lines-collapse::after,.MachineTrans-lang-az.MachineTrans-Lines-collapse::after,.MachineTrans-lang-fa.MachineTrans-Lines-collapse::after,.MachineTrans-lang-he.MachineTrans-Lines-collapse::after,.MachineTrans-lang-iw.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ku.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ug.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ur.MachineTrans-Lines-collapse::after{background:linear-gradient(270deg,rgba(255,255,255,0) 50%,var(--color-background) 90%)}.MachineTrans-has-rtl{text-align:right}.MachineTrans-has-rtl .MachineTrans-Lines{padding-left:0;padding-right:1.5em}.MachineTrans-has-rtl .saladict-Speaker{left:auto;right:0}@font-face{font-family:"UKIJ Tuz Basma";src:url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff2) format("woff2"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff) format("woff"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.ttf) format("truetype"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.svg#UKIJTuzBasma-Bold) format("svg");font-style:normal}.MachineTrans-lang-ug{font-family:"UKIJ Tuz Basma"!important}',""]),a.exports=n},733:function(a,n,e){var r=e(1403);a.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/90.b74ffcc6.js b/plugins/saladict-ztools/ext-saladic/assets/59.c1e7915e.js similarity index 99% rename from plugins/saladict-ztools/ext-saladic/assets/90.b74ffcc6.js rename to plugins/saladict-ztools/ext-saladic/assets/59.c1e7915e.js index 27ef4359..8c4e7257 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/90.b74ffcc6.js +++ b/plugins/saladict-ztools/ext-saladic/assets/59.c1e7915e.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[90],{1365:function(e,t,n){(t=n(221)(!1)).push([e.i,'#gg_bslot_a,#gg_bslot_b{text-align:center}.btmslot_a-container{width:100%}#gg_bslot_a{margin-bottom:20px}.contentslot,.mpuslot_b{margin-top:20px;text-align:center}.nr-box{border:1px solid #af9a87;padding:15px;background:#fff;margin-bottom:20px;page-break-inside:avoid;break-inside:avoid}.nr-box .h2,.nr-box h2{margin-bottom:.5em}.nr-box .view_more a{opacity:.7;text-decoration:none;margin-top:1em;display:block;font-size:.8em}.login_wrapper .login_social .facebook i{color:#3e5a98}.comment .button,.hc_user_form .button,.profile_wrapper .button,.recent_word_suggestions_search .button{background-color:#194480;color:#fff;padding:.5em 1em;border:0;text-decoration:none;display:inline-block}.comment .button i,.hc_user_form .button i,.profile_wrapper .button i,.recent_word_suggestions_search .button i{vertical-align:-2px;margin-left:.5em}.register_content .register_social .facebook i{color:#3e5a98}.search-desktop .specialchar div.button-special{background-color:#fff;border:1px solid rgba(0,0,0,.31);border-radius:4px;display:inline-block;line-height:46px;margin:1px;text-align:center;width:46px;cursor:pointer}.suggested_word_wrapper h1.h2_entry{font-size:1.8em}.suggested_word_wrapper .content .nr-box-header:after{display:initial}.verbtable_content .conjugation,.verbtable_content .type{margin-left:12px;border-bottom:1px dotted #c5c5c5;page-break-inside:avoid;break-inside:avoid}.verbtable_content .type{min-height:60px}.verbtable_content .conjugation h3,.verbtable_content .type h3{font-size:1.2em;color:#0069b3}.shiyi_content .nr-box{padding-top:0}.shiyi_content .nr-box-origin{border-left:solid 4px #669eff}.shiyi_content .nr-box-quotations,.shiyi_content .nr-box-synonyms,.shiyi_content .nr-box-wordlists{border-left:solid 4px #d49882}.shiyi_content .nr-box-images{border-left:solid 4px #bb1}.shiyi_content .nr-box-translation{border-right:solid 4px #194885}.shiyi_content .nr-box-shiyi.jbjs{border-right:solid 4px #c99464}.shiyi_content .nr-box-shiyi.xxjs{border-right:solid 4px #ea8a61}.shiyi_content .nr-box-shiyi.gyjs{border-right:solid 4px #6a0000}.shiyi_content .nr-box-shiyi.cyjs{border-right:solid 4px #e8ad62}.shiyi_content .nr-box-shiyi.kxzd{border-right:solid 4px #e8ad62}.shiyi_content .nr-box-shiyi.swjz{border-right:solid 4px #aea4a4}.shiyi_content .nr-box-shiyi.yyfy{border-right:solid 4px #8899bd}.shiyi_content .nr-box-shiyi.zyzx{border-right:solid 4px #c69f7b}.shiyi_content .nr-box-shiyi.wytl{border-right:solid 4px #88abc3}.shiyi_content .nr-box-shiyi.zyyy{border-right:solid 4px #9c7474}.shiyi_content .nr-box-derived{border-right:solid 4px #5f167d}.shiyi_content .nr-box-usage{border-right:solid 4px #78ad79}.shiyi_content .nr-box-translations{border-right:solid 4px #ff8c4d}.shiyi_content .nr-box-examples{border-right:solid 4px #1c7744}.shiyi_content .nr-box-comments{border-right:solid 4px #3b8e8d}.shiyi_content .nr-box-learners{border-right:solid 4px #467f7f}.shiyi_content .nr-box-nearby-words{border-right:solid 4px #bb5454}.shiyi_content .nr-box-header:after{content:" ";display:block;clear:both}.shiyi_content .nr-box-header{background:#f3e8df;padding:10px 15px;margin:0 -15px 1em -15px;font-size:12px}.cdet .shiyi_content .nr-box .nr-box-header,.shiyi_content .content .nr-box-header{background:0;padding:0;margin:0}.shiyi_content .nr-box-learners .nr-box-header,.shiyi_content .nr-box-shiyi.jbjs .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.xxjs .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.kxzd .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.swjz .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.yyfy .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.zyzx .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.wytl .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-examples .nr-box-header{background:#deefe3}.shiyi_content .nr-box-translations .nr-box-header{background:#fff6dd}.shiyi_content .nr-box-nearby-words .nr-box-header{background:#ffefeb}.shiyi_content .nr-box-origin .nr-box-header{background:#eff7ff}.shiyi_content .nr-box-comments .nr-box-header{background:#dbf7dc}.shiyi_content .nr-box-usage .nr-box-header{background:#e9ffe3}.shiyi_content .nr-box-images .nr-box-header{background:#f4ffd4}.shiyi_content .nr-box-videos .nr-box-header{background:#ffebeb}.shiyi_content .nr-box-wordlists .nr-box-header{background:#fff1e6}.shiyi_content .nr-box-quotations .nr-box-header{background:#fff1e6}.shiyi_content .nr-box-header .h2_entry{margin-bottom:0}.shiyi_content .nr-box-videos .entryVideo{width:100%;max-width:640px;height:320px}.shiyi_content .h2_entry{font-size:1.4em;margin-bottom:.5em}.shiyi_content .nr-box-shiyi h2.h2_entry{font-size:1.8em}.shiyi_content .definitions .thes{margin-top:.8em}.shiyi_content .xxjscz_box{margin-right:10px}.shiyi_content .link-right.verbtable,.shiyi_content .thesaurus_synonyms,.shiyi_content .xxjscz_box,.shiyi_content ol li,.verbtable_content .headword_link{margin-bottom:1em}.shiyi_content .cit-type-xxjs .orth,.shiyi_content .nr-box-nearby-words .current,.shiyi_content .nr-box-synonyms .firstSyn,.shiyi_content .nr-box-translation .phr,.shiyi_content .thesaurus_synonyms .synonym:first-of-type,.shiyi_content .xxjscz_box .author,.shiyi_content strong{font-weight:700}.shiyi_content #synonyms_content .thesaurus_synonyms .lbl,.shiyi_content #synonyms_content .thesaurus_synonyms .misc,.shiyi_content .colloc,.shiyi_content .lbl.misc,.shiyi_content .lbl.type-register{font-style:italic}.shiyi_content .lbl.type-syntax{font-size:.8em;color:var(--color-font-grey)}.shiyi_content .nr-box-synonyms .h2_entry{display:inline-block}.shiyi_content .nr-box-synonyms .extra-link{display:inline-block;margin-left:1em}.shiyi_content .extra-link,.shiyi_content .link-right.verbtable,.shiyi_content .nr-box-examples .button,.shiyi_content .nr-box-synonyms .thesaurus-link-plus,.shiyi_content .ref.type-thesaurus,.verbtable_content .headword_link{background:#e5ebf3;display:inline-block;padding:2px 10px;border:0;text-decoration:none;display:inline-block;font-weight:700;font-size:.9em;margin-top:2px}.shiyi_content .h2_entry .dictname,.shiyi_content .h2_entry .lbl.type-misc{font-size:16px}.audio_play_button,.shiyi_content .audio_play_button{color:#ec2615;vertical-align:middle;transition:transform .2s,text-shadow .2s;border:0}.shiyi_content .h2_entry .homnum{background-color:#1c4b8b;color:#fff;font-size:12px;font-weight:700;padding:2px 5px;vertical-align:super}.shiyi_content .zdict .quote{color:#555;font-style:italic}.shiyi_content .zdict .biling .quote{font-style:normal}.shiyi_content .zdict .cit.type-translation .quote{font-weight:700}.shiyi_content .nr-box:after,.shiyi_content .zdict .content:after{content:"";clear:both;display:table}.shiyi_content .cit.type-quotation .quote,.shiyi_content .nr-box-examples .quote,.shiyi_content .nr-box-quotations .quote,.shiyi_content .nr-box-thesaurus .quote{display:block;margin-top:1em}.shiyi_content .cit.type-quotation .author,.shiyi_content .nr-box-examples .author,.shiyi_content .nr-box-quotations .author,.shiyi_content .nr-box-thesaurus .author{font-weight:700;font-style:italic;font-size:.8em}.shiyi_content .cit.type-quotation .title,.shiyi_content .nr-box-examples .title,.shiyi_content .nr-box-quotations .title,.shiyi_content .nr-box-thesaurus .title{display:inline;font-variant:small-caps;font-style:italic;font-size:.8em}.shiyi_content .cit.type-quotation .year,.shiyi_content .nr-box-examples .year,.shiyi_content .nr-box-quotations .year,.shiyi_content .nr-box-thesaurus .year{font-size:.8em;font-style:italic}.context-dataset-english-thesaurus .author,.shiyi_content .nr-box-syn-of-syns div.type-syn_of_syn_head .orth,.shiyi_content .rend-b,.shiyi_content .thesbase .key{color:#1683be}.page{font-size:16px}.page .dictname{font-size:.7em}.page .zdict .copyright .i{color:gray}.copyright{display:none;color:gray;font-size:small;margin-top:10px}.page .metadata{display:none}.page .description,.page .infls,.page .og,.page .summary,.page .title,.page .url{display:block}.page .assetref{display:block}.page .assettype{font-weight:700;color:#00f}.page .dictentry{margin-bottom:20px}.page .asset_intro,.page .assets_intro{color:green;display:block;font-weight:700;font-variant:small-caps}.page .zdict .re .hom{display:inline}.page .zdict .re{display:block}.page .jbjs .hom{display:block;margin-left:1.5em;margin-bottom:1em}.page .jbjs .sense{margin-left:0;margin-bottom:0;margin-top:.25em}.page .zdict .sense{display:block;margin-left:1.5em;margin-bottom:.5em;margin-top:.5em}.page .zdict .sense.inline{display:inline;margin-left:0;margin-bottom:.5em;margin-top:.5em}.page .zdict .inline{display:inline}.page .zdict .newline{display:block}.page .jbjs br{display:none}.page .zdict .colloc,.page .zdict .subc{font-style:italic;font-weight:400}.page .zdict .re .pos{font-style:italic}.page .zdict .b{font-weight:700}.page .zdict .form.type-infl .orth{font-weight:700}.page .zdict .form.type-drv .orth{font-weight:700}.page .zdict .form.type-inflected{display:none}.page .zdict .hi.rend-b{font-weight:700}.page .zdict .hi.rend-sc{font-variant:small-caps}.page .zdict .hi.rend-u{text-decoration:underline;font-size:inherit}.page .zdict .hi.rend-r{font-weight:400;font-style:normal}.page .zdict .hi.rend-sup{vertical-align:super;font-size:smaller}.page .zdict .hi.rend-sub{vertical-align:sub;font-size:smaller}.page .zdict .hi.rend-i{font-style:italic}.page .zdict .i{font-weight:400;font-style:italic;color:#000}.page .zdict .note{color:#000;line-height:1.4em;font-style:normal;background-color:#e9eef4;margin:6px 0;padding:6px 4px 6px 18px;font-weight:400;display:block}.page .zdict .posp{font-size:80%;text-transform:uppercase}.page .zdict .r{font-style:normal}.page .zdict .sub{vertical-align:sub;font-size:smaller}.page .zdict .sup{vertical-align:super;font-size:smaller}.page .zdict .u{text-decoration:underline}.page .zdict .block{display:block;margin-top:3px}.page .hin .block{display:block;margin-top:15px;margin-bottom:7.5px}.page .zdict .bolditalic{font-weight:700;font-style:italic}.page span.bold{font-weight:700}.page span.bluebold{font-weight:700;color:#1c4b8b}.page span.ital,.page span.italics{font-style:italic}.page span.sensenum{margin-left:-1.3em;float:left;font-weight:700;font-size:1.1em}.page .zdict .cit.type-translation .quote{font-style:normal;color:#1683be}.page .zdict .cit.type-translation .pos{font-style:bold}.page .zdict a:hover{color:#f9690e}.page .zdict .var{font-weight:700}.page .zdict .power{float:right}.page .zdict .power .i{color:#1c4b8b;font-size:inherit}.page .zdict .hom_subsec{display:block}.page .zdict .definitions,.page .zdict .derivs,.page .zdict .etyms{margin-bottom:1em}.page .zdict .inflected_forms{display:block;padding-bottom:1.25em}.page .zdict .scbold{font-weight:700;text-transform:uppercase;font-size:.8em}.page .zdict .note .scbold{display:block}.page .zdict .pron .ptr{color:red}.page .zdict .list,.page .zdict .relwordgrp{display:block;margin-left:20px}.page .zdict .listitem,.page .zdict .relwordunit{display:list-item}.page .zdict .type-antgrp,.page .zdict .type-syngrp{display:block}.page .asset.Corpus_Examples_EN .quote{font-style:italic}.page .jbjs .sense{margin-left:0}.page .cit.type-xxjs .content{background-color:#fff;margin-bottom:20px;padding:20px}.page .cit.type-xxjs .author{font-weight:700;font-style:italic}.page .cit.type-xxjs .title{display:inline;font-variant:small-caps;font-style:italic}.page .cit.type-xxjs .ref.type-def{text-decoration:none;color:inherit}.page .biling .lbl{font-style:italic;color:#555}.page .biling .lbl.type-subj{font-variant:small-caps}.page .biling .lbl.type-subj .lbl{font-variant:normal}.page .biling .lbl.type-tm{font-style:normal}.page .biling .lbl.type-tm_hw{font-size:.78em}.page .biling .lbl.type-infl,.page .biling .lbl.type-infl span{font-style:normal;color:#1c4b8b;font-weight:400}.page .biling br{display:none}.page .biling .phrasals .re .orth{font-size:1.25em}.page .biling .sense .re{font-size:100%;margin-left:0}.page .hin .form.type-ant .orth,.page .hin .form.type-phr .orth,.page .hin .form.type-syn .orth{font-weight:400;font-size:100%}.page .biling .re{display:block;margin-left:1em}.page .thesbase .form.type-syn{margin-left:.5em}.page .thesbase .synunit .cit{display:inline}.page .thesbase .def{display:block}.page .thesbase .xr.type-theslink{display:inline-block;margin-left:20px}.page .thesbase .relwgrp{display:block;margin-left:1em}.page .thesbase .table{display:block}.page .thesbase .caption{display:block;font-weight:700;margin-top:10px;font-size:larger}.page .thesbase .bibl{display:block}.page .thesbase .bibl .title{display:inline}.page .thesbase .cit.type-proverb{display:block}.page .thesbase .tr{display:table-row}.page .thesbase .td{display:table-cell;padding:3px}.page .thesbase .th{display:table-cell;font-weight:700}.page .thesbase .cit.type-xxjs,.page .thesbase .cit.type-xxjs .crefe{display:inline;padding-left:.25em}.page .thesbase .note{background-color:transparent;padding:0;margin-top:10px;overflow:hidden}.page .thesbase .note .tr{display:block;margin-bottom:20px}.page .thesbase .tr .td:first-child{background-color:#e9eef4;font-weight:700;color:#1c4b8b;padding:5px 15px}.page .thesbase .note .td{padding:8px 15px;display:block}.page .thesbase .note .th{display:none}.page .nr-box-syn-of-syns .syns_container .form.type-syn .orth{font-weight:700}.page .thesbase .link{text-decoration:underline;font:14px/1 "Microsoft Yahei",sans-serif,Arial,Verdana;background:#e5ebf3;color:#1c4b8b;padding:.3em .8em;margin:5px 0;display:inline-block}.page .thesbase .sense{margin-bottom:2em}.page .thesbase .author{font-weight:700;font-style:italic}.cdet .nr-box-origin{padding-top:0;padding-bottom:0}.page .thesbase .sensehead>.sensenum{float:none}.page .thesbase .scbold{background:#efefef;padding:.5em 22px;margin:2em 0 1em 0;font-weight:700;font-size:80%;text-transform:uppercase;display:block}.page .nr-box-syn-of-syns div.type-syn_of_syn_head{display:inline-block}.page .nr-box-syn-of-syns div.type-syn_of_syn_head .orth,.page .thesbase .key{font-weight:700;margin-right:0;display:inline-block;margin-left:0;padding:.3em .8em;border:0;font-size:1.1em;padding-left:0;padding-bottom:0}.page .thesbase .key{padding-right:0}.page .thesbase .firstSyn{color:#000;font-size:.9em}.page .nr-box-syn-of-syns .syns_head{margin-top:2.2em}.page .nr-box-syn-of-syns .syns_example{line-height:2.5em}.page .nr-box-syn-of-syns .columns3,.page .type-ant.columns3{column-count:3}.page .nr-box-syn-of-syns .syns_items{display:block}.pagination a.next,.pagination a.page,.pagination a.prev,.pagination p,.pagination p a,.pagination span.page{padding:.3em .8em;display:inline-block;text-decoration:none;font-weight:700;border:0}.pagination a.next,.pagination a.page,.pagination a.prev{background:#e5ebf3;color:#194885}.pagination p,.pagination p a,.pagination span.page{background:#194885;color:#e5ebf3}.page .nr-box-syn-of-syns .lbl,.page .nr-box-syn-of-syns .lbl span,.page .zdict.thesbase .lbl,.page .zdict.thesbase .lbl span{font-style:italic;color:green}.page .zdict.thesbase .sensebody{display:block;margin:.5em 0 .5em 6px}.page .thesbase span.bold{font-weight:700}.page .thesbase span.kerntouch{letter-spacing:-.18em}.page .thesbase span.kern60{letter-spacing:-.6em}.page .thesbase span.manualdiacritic{vertical-align:25%;letter-spacing:-1em}.page .thesbase span.numerator{vertical-align:35%;font-size:smaller}.page .thesbase span.numerator_back{position:absolute;vertical-align:35%;letter-spacing:-1em;font-size:smaller}.page .thesbase span.denominator{vertical-align:-35%;font-size:smaller}.page .thesbase span.italics{font-weight:400;font-style:italic;color:#000}.page .thesbase span.homnum{font-weight:700;color:#fff;vertical-align:super;font-size:50%}.page .thesbase span.sensenum{font-weight:700}.page .thesbase span.QA{font-style:italic;color:red;font-size:90%}.page .thesbase hr{width:50%;text-align:left;border:3px inset #777;height:6px;margin:10px auto 5px 0}.page .thesbase .cit.type-quotation{display:block}.page .thesbase .cit.type-proverb>.quote,.page .thesbase .cit.type-quotation>.bibl,.page .thesbase .cit.type-quotation>.quote{display:block;margin-left:1em;padding-left:0}.page .thesbase>.re.type-phr .xr{margin-left:1em;font-weight:700}.page .thesbase .div .xr{display:block;margin-left:1em}.cdet .sense .form.type-syn.invisibleElements,.cdet .sense .type-ant div.invisibleElements{display:none}.cdet .sense.moreAnt .type-ant div,.cdet .sense.moreSyn .form.type-syn.head{display:block}.cdet .page .zdict .sense,.cdet .sense.moreSyn{margin-left:0;margin-bottom:.5em;padding-bottom:.5em;border-bottom:1px solid #dbdada;position:relative;overflow:hidden}.cdet .nr-box-syn-of-syns .syns_container{padding-left:1.9em}.cdet .zdict.thesbase .sensebody,.cdet div[data-type-block] .sense .sensebody{margin:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;padding-right:1.9em;padding-left:1.9em;line-height:1.5em;font-size:.9em}.cdet .nr-box-syn-of-syns div[data-type-block] .sense .def,.cdet .nr-box-syn-of-syns div[data-type-block] .sense .syns_example{margin:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;line-height:1.5em;font-size:.9em;padding-right:0;padding-left:0}.cdet .zdict .sense .synonymBlock{cursor:pointer}.cdet .zdict .sense.opened,.cdet div[data-type-block] .sense.opened{margin-left:0;margin-bottom:.5em;padding-bottom:.5em;border-bottom:1px solid #dbdada;cursor:auto;position:relative}.cdet .zdict.thesbase .sense.opened .sensebody,.cdet div[data-type-block] .sense.opened .sensebody{overflow:auto;text-overflow:inherit;white-space:inherit}.cdet .form.type-syn,.cdet .nr-box-syn-of-syns .form.type-syn,.cdet .syns_container .form.type-syn,.cdet .type-ant div{margin-left:.5em}.cdet .nr-box-syn-of-syns .sense.moreSyn{margin-bottom:.5em}.cdet .form.type-syn .orth,.cdet .syns_container .form.type-syn .orth,.cdet .type-ant .orth{background-color:transparent;border:0;font-size:.9em;font-weight:700;text-decoration:none;color:#4d4e51;margin:0;padding:0 .2em}.cdet .form.type-syn,.cdet .zdict .content{position:relative}.cdet .zdict .hom,.cdet .zdict .syn_of_syns{overflow:hidden}.cdet .sense.moreinfo .form .orth:after{display:block}.cdet .nr-box-syn-of-syns .syns_container,.cdet .type-ant{padding-left:0;margin-left:0}.cdet .nr-box-comments{background-color:#fff;margin-bottom:20px;padding:20px;position:relative}.cdet .nr-box-comments,.cdet .nr-box-nearby-words,.cdet .nr-box-origin,.cdet .nr-box-syn-of-syns,.cdet .zdict .content{border-left:none;box-shadow:none}.cdet .nr-box-nearby-words li,.cdet .re.type-phr .xr{margin-left:0;padding-left:.85em;margin-bottom:.3em;padding-bottom:.3em;display:block}.cdet .nr-box-syn-of-syns div.type-syn_of_syn_head{display:block}.cdet .nr-box-syn-of-syns .sense .def{padding-left:1em}.cdet .nr-box-syn-of-syns .sense .def,.cdet .nr-box-syn-of-syns .sense .syns_example{margin:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;line-height:1.5em;font-size:.9em;color:#4d4e51}.cdet .nr-box-syn-of-syns .quote{font-style:italic}.cdet .nr-box-syn-of-syns .sense.opened .def,.cdet .nr-box-syn-of-syns .sense.opened .syns_example,.cdet div[data-type-block] .sense.opened .sensebody{overflow:auto;white-space:normal}.cdet .nr-box-syn-of-syns .syns_head{margin-top:0}.cdet .form.type-syn .titleTypeSubContainer{display:block}.cdet .cit.type-quotation>.bibl{font-size:.85em}.cdet .cit.type-quotation{margin-left:0;margin-bottom:.3em;padding-bottom:.3em}.cdet .cit.type-quotation>.titleTypeContainer,.cdet .re.type-phr>.titleTypeContainer{margin-bottom:1em}.cdet .cit.type-quotation>.quote{line-height:1.3em;margin-bottom:.3em}.cdet .cit.type-quotation .author,.cdet .cit.type-quotation .title{font-size:inherit}.cdet .zdict .quote{color:#4d4e51;font-style:italic;display:block;font-size:.9em}.homograph-entry .grammar .page{display:block;border:solid 1px;font-family:arial,helvetica,sans-serif;margin-bottom:20px;padding:15px;padding-bottom:40px}.homograph-entry .grammar a.next,.homograph-entry .grammar a.previous{background:#e5ebf3;color:#194885;padding:.5em 1em;font-weight:bolder;border-bottom:0;float:left;margin-top:1em}.homograph-entry .grammar a.next{float:right}.homograph-entry .grammar a.next:hover,.homograph-entry .grammar a.previous:hover{color:#194885}.homograph-entry .grammar a.next i,.homograph-entry .grammar a.previous i{font-size:1.3em;vertical-align:middle;padding-right:8px;padding-left:8px;display:inline-block}.homograph-entry .grammar .exmplblk ul{padding-left:0}.homograph-entry .grammar .exmplblk{padding:.5em}.homograph-entry .grammar .exmplgrp ul{padding-left:20px;padding-bottom:10px}.homograph-entry .grammar .intro.suppressed{display:none}.homograph-entry .grammar h2{font-size:16pt;line-height:2em;text-decoration:underline}.homograph-entry .grammar h3{font-size:14pt}.homograph-entry .grammar h4{font-size:12pt;font-weight:700;margin-bottom:1em}.homograph-entry .grammar u{text-decoration:underline}.homograph-entry .grammar .lemma{font-weight:700}.homograph-entry .grammar .caption{font-weight:700;margin-top:1.5em}.homograph-entry .grammar .p{display:block;margin-top:5px;margin-bottom:5px}.homograph-entry .grammar .group{display:block;margin-top:2em;margin-bottom:2em}.homograph-entry .grammar .exmpl{font-weight:400;font-style:italic}.homograph-entry .grammar .i{font-style:italic}.homograph-entry .grammar .post{font-style:italic}.homograph-entry .grammar .posp{font-weight:700;font-style:normal}.homograph-entry .grammar .pattern{font-family:sans-serif}.homograph-entry .grammar .ul{margin-top:5px;list-style-type:none;padding-left:15px}.homograph-entry .grammar ul.arrow{list-style-type:square}.homograph-entry .grammar ul.star{list-style-type:disc}.homograph-entry .grammar ul.alpha{list-style-type:lower-alpha}.homograph-entry .grammar ol{margin-top:5px;list-style-type:decimal}.homograph-entry .grammar .li.exmpl{font-style:italic}.homograph-entry .grammar .lemmalist .li{margin-top:10px}.homograph-entry .grammar .lemmalist{border-color:#ccc;border-style:solid;border-width:1px;margin:4px;margin-top:2em;padding:1em;column-count:4}.homograph-entry .grammar div.greyborder2{border-color:#ccc;border-style:solid;border-width:1px;margin:4px;column-count:4}.homograph-entry .grammar td,.homograph-entry .grammar th{border-color:#000;border-style:solid;border-width:1px;padding:.5em 1.4em}.homograph-entry .grammar th{background-color:#ddd;font-weight:700;font-size:.9em}.homograph-entry .grammar table{border-collapse:collapse;border-color:#000;border-style:solid;border-width:1px;margin-top:1.5em;margin-bottom:1em}.homograph-entry .grammar a.block{display:block}.homograph-entry .grammar i.i_chevron-thin-right{display:inline-block;font-weight:700;width:2em;text-align:center;font-size:.6em}.homograph-entry .grammar .chapter a:before,.homograph-entry .grammar .group a:before,.homograph-entry .grammar .pattern a:before,.homograph-entry .grammar .posGr a:before,.homograph-entry .grammar .section a:before,.homograph-entry .grammar .subpattern a:before{display:block;content:""}.homograph-entry .grammar .breadcrumb{margin-bottom:2em}.zyyy span.label{width:.8em;display:inline-block;color:#0058a9;font-weight:700}.zyyy span.label1{width:.8em;display:inline-block}.shiyi_content .zib-title{float:right;font-size:16px}.shiyi_content .zi-b-img,.shiyi_content .zib-title .label{display:inline-block}.shiyi_content .zi-b-container .level{border:1px solid rgba(0,0,0,.5);border-radius:50%;display:inline-block;background-color:#f2928e}.shiyi_content .zi-b-container .level.roundRed{background-color:#e52920}.shiyi_content .zi-b-container .level1{width:14px;height:14px}.shiyi_content .zi-b-container .level2{width:15px;height:15px}.shiyi_content .zi-b-container .level3{width:16px;height:16px}.shiyi_content .zi-b-container .level4{width:17px;height:17px}.shiyi_content .zi-b-container .level5{width:18px;height:18px}.shiyi_content .zi-b-container .round{width:100%;height:100%}.shiyi_content .zi-b-container.relevance .level{border-radius:0;width:15px;vertical-align:bottom}.shiyi_content .zi-b-container.relevance .level1{background:#f6b26b;height:10px}.shiyi_content .zi-b-container.relevance .level2{background:#f6b26b;height:13px}.shiyi_content .zi-b-container.relevance .level3{background:#ffd966;height:16px}.shiyi_content .zi-b-container.relevance .level4{background:#ffd966;height:19px}.shiyi_content .zi-b-container.relevance .level5{background:#b6d7a8;height:22px}.shiyi_content .zi-b-container.relevance .level6{background:#b6d7a8;height:25px}.i_volume-up:before{content:""}.favadd:before{content:"✩"}.favdel:before{content:"★"}main>.browse_wrapper,main>.content_wrapper,main>.spellcheck_wrapper,main>.submit_new_word_wrapper,main>.suggested_word_wrapper,main>.word_submitted_wrapper,main>.zdict{width:calc(100% - 160px);float:left}main>.browse_wrapper,main>.content_wrapper,main>.spellcheck_wrapper,main>.submit_new_word_wrapper,main>.suggested_word_wrapper,main>.word_submitted_wrapper,main>.zdict{width:100%;float:none}.res_s{display:none}.page .nr-box-syn-of-syns .columns3,.page .type-ant.columns3{column-count:1}.mpuslot_b-container{min-width:320px;width:100%;margin:0 0 0 -15px;padding:0;z-index:10000}.page .zdict .power{display:none}.nr-box,.page .Corpus_Examples_EN .content,.shiyi_content .nr-box,.wotd-txt-block,.yczsl-content{padding:10px}.shiyi_content .nr-box{padding-top:0}.shiyi_content .nr-box-header{margin:0 -10px 1em -10px}.shiyi_content .nr-box.jbjs.br .nr-box-header::after{content:none}main>.browse_wrapper,main>.content_wrapper,main>.spellcheck_wrapper,main>.submit_new_word_wrapper,main>.suggested_word_wrapper,main>.word_submitted_wrapper,main>.zdict{width:100%;float:none}.res_t{display:none}.res_d{display:none}.pl-zdic a{border-bottom:none}.zib-title .icon-star{background:#9c7474;border-radius:4px;width:25px;height:25px;padding-top:3px;display:inline-block;color:#fff;font-size:18px;text-align:center}.shiyi_content .h2_entry .spanr{display:inline-block;float:right}.zib-title .icon-star{padding-top:4px}.dicpy{font-family:Arial;color:#f9690e;font-weight:400}.jnr li{list-style-type:none}.bknr,.jnr,.wknr{margin:.5em;line-height:1.5em}.shiyi_content .jnr ul{list-style:none;counter-reset:li}.shiyi_content .jnr ul li::before{content:counter(li);color:red;display:inline-block;width:2em;margin-left:-1.5em;margin-right:.5em;text-align:right;direction:rtl}.shiyi_content .jnr li{counter-increment:li}.shiyi_content .nr-box-shiyi.cyjs{border-right:solid 4px #e8ad62}.shiyi_content .nr-box-shiyi.wljs{border-right:solid 4px #aea4a4}.shiyi_content .nr-box-shiyi.cyjs .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.wljs .nr-box-header{border-bottom:solid 1px #af9a87}span.z_ts2,span.z_ts3,span.z_ts4{height:18px;line-height:18px;color:#f9690e;font-size:12px;text-align:center;display:inline-block;font-weight:400;margin-right:5px;padding:0}span.z_ts2{background-position:0 -78px;width:33px}span.z_ts3{background-position:-33px -78px;width:47px}span.z_ts4{background-position:0 -114px;width:55px}.dicpy{font-size:1.3em;font-family:Arial;color:#f9690e}.diczx1{color:#f9690e}.cino{font-weight:700}.encs{color:#390}.smcs{font-weight:700;color:#f9690e}.yhcs{color:#f9690e;font-weight:700}.crefe{border-bottom:dashed 1px rgba(0,0,0,.6);margin-right:1em}.enbox{padding:10px 0 5px 0;border-top:1px solid rgba(133,133,133,.28);margin:5px;background:rgba(254,249,249,.2)}@media screen and (max-width:761px){.cdet .navigation .nav{display:none}.cdet .more{margin:10px auto 10px auto;width:50%}}@media screen and (max-width:761px){.navigation .tabsNavigation{overflow-x:auto}}@media screen and (max-width:761px){[class*=res_c]{clear:both;width:100%;margin:0 0 10px 0}.res_c_2_3_content,.res_c_center_content{padding:0}header .center,header .left,header .right{padding:.3em}header .logo{width:130px;margin-left:5px;line-height:inherit}.homepage header .left{float:none}.zmenu .drop{box-shadow:none;margin-left:15px}.zmenu .drop,.zmenu .drop:after{display:none}.zmenu .drop .this_page{padding-left:0;padding-right:0}.zmenu .drop .zmenu_i{padding:0}.shiyi_content .entry_title{padding-left:.2em;padding-right:.2em}.login_wrapper .login_or_signup,.login_wrapper .sign_up,.profile_wrapper .profile_block,.profile_wrapper .profile_body{float:none;margin:0;width:auto}#gg_tslot{width:320px;min-height:50px;display:table;margin:0 auto}.topslot_container{margin-bottom:10px}.mpuslot_b{width:320px;margin:0 auto}.lies .lie_x{display:block;width:auto;padding-right:0;min-height:0}.yczsl{min-height:0}.search-desktop{display:none}.searchPanelOpen .search-desktop{display:block;width:auto;margin:4px;clear:both;margin-bottom:16px}.search-desktop .custom-select{display:block;position:absolute;left:0;opacity:.001;width:50px;height:100%}.search-desktop .cs_m{column-count:1}.cdet .sense.moreinfo .form [class*=type]{display:block}.shiyi_content .h1_entry{line-height:1.2em}.cdet .titleTypeContainer .titleType{margin:0}}p{padding-left:1em}.cino{margin-left:-1em}a:hover{color:#f9690e}a{cursor:pointer;color:inherit;text-decoration:none;border-bottom:dashed 1px rgba(0,0,0,.6)}.gnr .pz{border-bottom:1px dashed rgba(133,133,133,.28)}.gnr .pz ruby{margin-left:20px}.gnr .pz ruby rbc{font-size:20px;line-height:30px;font-weight:700}.gnr .pz ruby rtc{font-size:12px;color:#8f6652;line-height:30px}.gnr .def{margin:5px 0 5px;line-height:1.6em}.pz{border-bottom:1px dashed rgba(133,133,133,.28);padding-bottom:5px}.pz ruby{margin-left:20px;font-size:1.5em}.pz ruby rbc{font-size:20px;line-height:30px;font-weight:700}.pz ruby rtc{font-size:12px;color:#8f6652;line-height:30px}ruby{display:inline-table;text-align:center;white-space:nowrap;text-indent:0;margin:0;vertical-align:-20%}ruby>rb,ruby>rbc{display:table-row-group;line-height:90%}ruby>rbc+rtc,ruby>rt{display:table-header-group;font-size:60%;line-height:40%;letter-spacing:0}ruby>rbc+rtc+rtc{display:table-footer-group;font-size:60%;line-height:40%;letter-spacing:0}rbc>rb,rtc>rt{display:table-cell;letter-spacing:0}rtc>rt[rbspan]{display:table-caption}rp{display:none}.dichr{border-color:rgba(133,133,133,.28)}.jbjs_ico{width:1.3em;height:1.3em;display:inline-block;margin-right:.2em;vertical-align:text-bottom}',""]),e.exports=t},702:function(e,t,n){var o=n(1365);e.exports="string"==typeof o?o:o.toString()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[59],{1404:function(e,t,n){(t=n(226)(!1)).push([e.i,'#gg_bslot_a,#gg_bslot_b{text-align:center}.btmslot_a-container{width:100%}#gg_bslot_a{margin-bottom:20px}.contentslot,.mpuslot_b{margin-top:20px;text-align:center}.nr-box{border:1px solid #af9a87;padding:15px;background:#fff;margin-bottom:20px;page-break-inside:avoid;break-inside:avoid}.nr-box .h2,.nr-box h2{margin-bottom:.5em}.nr-box .view_more a{opacity:.7;text-decoration:none;margin-top:1em;display:block;font-size:.8em}.login_wrapper .login_social .facebook i{color:#3e5a98}.comment .button,.hc_user_form .button,.profile_wrapper .button,.recent_word_suggestions_search .button{background-color:#194480;color:#fff;padding:.5em 1em;border:0;text-decoration:none;display:inline-block}.comment .button i,.hc_user_form .button i,.profile_wrapper .button i,.recent_word_suggestions_search .button i{vertical-align:-2px;margin-left:.5em}.register_content .register_social .facebook i{color:#3e5a98}.search-desktop .specialchar div.button-special{background-color:#fff;border:1px solid rgba(0,0,0,.31);border-radius:4px;display:inline-block;line-height:46px;margin:1px;text-align:center;width:46px;cursor:pointer}.suggested_word_wrapper h1.h2_entry{font-size:1.8em}.suggested_word_wrapper .content .nr-box-header:after{display:initial}.verbtable_content .conjugation,.verbtable_content .type{margin-left:12px;border-bottom:1px dotted #c5c5c5;page-break-inside:avoid;break-inside:avoid}.verbtable_content .type{min-height:60px}.verbtable_content .conjugation h3,.verbtable_content .type h3{font-size:1.2em;color:#0069b3}.shiyi_content .nr-box{padding-top:0}.shiyi_content .nr-box-origin{border-left:solid 4px #669eff}.shiyi_content .nr-box-quotations,.shiyi_content .nr-box-synonyms,.shiyi_content .nr-box-wordlists{border-left:solid 4px #d49882}.shiyi_content .nr-box-images{border-left:solid 4px #bb1}.shiyi_content .nr-box-translation{border-right:solid 4px #194885}.shiyi_content .nr-box-shiyi.jbjs{border-right:solid 4px #c99464}.shiyi_content .nr-box-shiyi.xxjs{border-right:solid 4px #ea8a61}.shiyi_content .nr-box-shiyi.gyjs{border-right:solid 4px #6a0000}.shiyi_content .nr-box-shiyi.cyjs{border-right:solid 4px #e8ad62}.shiyi_content .nr-box-shiyi.kxzd{border-right:solid 4px #e8ad62}.shiyi_content .nr-box-shiyi.swjz{border-right:solid 4px #aea4a4}.shiyi_content .nr-box-shiyi.yyfy{border-right:solid 4px #8899bd}.shiyi_content .nr-box-shiyi.zyzx{border-right:solid 4px #c69f7b}.shiyi_content .nr-box-shiyi.wytl{border-right:solid 4px #88abc3}.shiyi_content .nr-box-shiyi.zyyy{border-right:solid 4px #9c7474}.shiyi_content .nr-box-derived{border-right:solid 4px #5f167d}.shiyi_content .nr-box-usage{border-right:solid 4px #78ad79}.shiyi_content .nr-box-translations{border-right:solid 4px #ff8c4d}.shiyi_content .nr-box-examples{border-right:solid 4px #1c7744}.shiyi_content .nr-box-comments{border-right:solid 4px #3b8e8d}.shiyi_content .nr-box-learners{border-right:solid 4px #467f7f}.shiyi_content .nr-box-nearby-words{border-right:solid 4px #bb5454}.shiyi_content .nr-box-header:after{content:" ";display:block;clear:both}.shiyi_content .nr-box-header{background:#f3e8df;padding:10px 15px;margin:0 -15px 1em -15px;font-size:12px}.cdet .shiyi_content .nr-box .nr-box-header,.shiyi_content .content .nr-box-header{background:0;padding:0;margin:0}.shiyi_content .nr-box-learners .nr-box-header,.shiyi_content .nr-box-shiyi.jbjs .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.xxjs .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.kxzd .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.swjz .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.yyfy .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.zyzx .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.wytl .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-examples .nr-box-header{background:#deefe3}.shiyi_content .nr-box-translations .nr-box-header{background:#fff6dd}.shiyi_content .nr-box-nearby-words .nr-box-header{background:#ffefeb}.shiyi_content .nr-box-origin .nr-box-header{background:#eff7ff}.shiyi_content .nr-box-comments .nr-box-header{background:#dbf7dc}.shiyi_content .nr-box-usage .nr-box-header{background:#e9ffe3}.shiyi_content .nr-box-images .nr-box-header{background:#f4ffd4}.shiyi_content .nr-box-videos .nr-box-header{background:#ffebeb}.shiyi_content .nr-box-wordlists .nr-box-header{background:#fff1e6}.shiyi_content .nr-box-quotations .nr-box-header{background:#fff1e6}.shiyi_content .nr-box-header .h2_entry{margin-bottom:0}.shiyi_content .nr-box-videos .entryVideo{width:100%;max-width:640px;height:320px}.shiyi_content .h2_entry{font-size:1.4em;margin-bottom:.5em}.shiyi_content .nr-box-shiyi h2.h2_entry{font-size:1.8em}.shiyi_content .definitions .thes{margin-top:.8em}.shiyi_content .xxjscz_box{margin-right:10px}.shiyi_content .link-right.verbtable,.shiyi_content .thesaurus_synonyms,.shiyi_content .xxjscz_box,.shiyi_content ol li,.verbtable_content .headword_link{margin-bottom:1em}.shiyi_content .cit-type-xxjs .orth,.shiyi_content .nr-box-nearby-words .current,.shiyi_content .nr-box-synonyms .firstSyn,.shiyi_content .nr-box-translation .phr,.shiyi_content .thesaurus_synonyms .synonym:first-of-type,.shiyi_content .xxjscz_box .author,.shiyi_content strong{font-weight:700}.shiyi_content #synonyms_content .thesaurus_synonyms .lbl,.shiyi_content #synonyms_content .thesaurus_synonyms .misc,.shiyi_content .colloc,.shiyi_content .lbl.misc,.shiyi_content .lbl.type-register{font-style:italic}.shiyi_content .lbl.type-syntax{font-size:.8em;color:var(--color-font-grey)}.shiyi_content .nr-box-synonyms .h2_entry{display:inline-block}.shiyi_content .nr-box-synonyms .extra-link{display:inline-block;margin-left:1em}.shiyi_content .extra-link,.shiyi_content .link-right.verbtable,.shiyi_content .nr-box-examples .button,.shiyi_content .nr-box-synonyms .thesaurus-link-plus,.shiyi_content .ref.type-thesaurus,.verbtable_content .headword_link{background:#e5ebf3;display:inline-block;padding:2px 10px;border:0;text-decoration:none;display:inline-block;font-weight:700;font-size:.9em;margin-top:2px}.shiyi_content .h2_entry .dictname,.shiyi_content .h2_entry .lbl.type-misc{font-size:16px}.audio_play_button,.shiyi_content .audio_play_button{color:#ec2615;vertical-align:middle;transition:transform .2s,text-shadow .2s;border:0}.shiyi_content .h2_entry .homnum{background-color:#1c4b8b;color:#fff;font-size:12px;font-weight:700;padding:2px 5px;vertical-align:super}.shiyi_content .zdict .quote{color:#555;font-style:italic}.shiyi_content .zdict .biling .quote{font-style:normal}.shiyi_content .zdict .cit.type-translation .quote{font-weight:700}.shiyi_content .nr-box:after,.shiyi_content .zdict .content:after{content:"";clear:both;display:table}.shiyi_content .cit.type-quotation .quote,.shiyi_content .nr-box-examples .quote,.shiyi_content .nr-box-quotations .quote,.shiyi_content .nr-box-thesaurus .quote{display:block;margin-top:1em}.shiyi_content .cit.type-quotation .author,.shiyi_content .nr-box-examples .author,.shiyi_content .nr-box-quotations .author,.shiyi_content .nr-box-thesaurus .author{font-weight:700;font-style:italic;font-size:.8em}.shiyi_content .cit.type-quotation .title,.shiyi_content .nr-box-examples .title,.shiyi_content .nr-box-quotations .title,.shiyi_content .nr-box-thesaurus .title{display:inline;font-variant:small-caps;font-style:italic;font-size:.8em}.shiyi_content .cit.type-quotation .year,.shiyi_content .nr-box-examples .year,.shiyi_content .nr-box-quotations .year,.shiyi_content .nr-box-thesaurus .year{font-size:.8em;font-style:italic}.context-dataset-english-thesaurus .author,.shiyi_content .nr-box-syn-of-syns div.type-syn_of_syn_head .orth,.shiyi_content .rend-b,.shiyi_content .thesbase .key{color:#1683be}.page{font-size:16px}.page .dictname{font-size:.7em}.page .zdict .copyright .i{color:gray}.copyright{display:none;color:gray;font-size:small;margin-top:10px}.page .metadata{display:none}.page .description,.page .infls,.page .og,.page .summary,.page .title,.page .url{display:block}.page .assetref{display:block}.page .assettype{font-weight:700;color:#00f}.page .dictentry{margin-bottom:20px}.page .asset_intro,.page .assets_intro{color:green;display:block;font-weight:700;font-variant:small-caps}.page .zdict .re .hom{display:inline}.page .zdict .re{display:block}.page .jbjs .hom{display:block;margin-left:1.5em;margin-bottom:1em}.page .jbjs .sense{margin-left:0;margin-bottom:0;margin-top:.25em}.page .zdict .sense{display:block;margin-left:1.5em;margin-bottom:.5em;margin-top:.5em}.page .zdict .sense.inline{display:inline;margin-left:0;margin-bottom:.5em;margin-top:.5em}.page .zdict .inline{display:inline}.page .zdict .newline{display:block}.page .jbjs br{display:none}.page .zdict .colloc,.page .zdict .subc{font-style:italic;font-weight:400}.page .zdict .re .pos{font-style:italic}.page .zdict .b{font-weight:700}.page .zdict .form.type-infl .orth{font-weight:700}.page .zdict .form.type-drv .orth{font-weight:700}.page .zdict .form.type-inflected{display:none}.page .zdict .hi.rend-b{font-weight:700}.page .zdict .hi.rend-sc{font-variant:small-caps}.page .zdict .hi.rend-u{text-decoration:underline;font-size:inherit}.page .zdict .hi.rend-r{font-weight:400;font-style:normal}.page .zdict .hi.rend-sup{vertical-align:super;font-size:smaller}.page .zdict .hi.rend-sub{vertical-align:sub;font-size:smaller}.page .zdict .hi.rend-i{font-style:italic}.page .zdict .i{font-weight:400;font-style:italic;color:#000}.page .zdict .note{color:#000;line-height:1.4em;font-style:normal;background-color:#e9eef4;margin:6px 0;padding:6px 4px 6px 18px;font-weight:400;display:block}.page .zdict .posp{font-size:80%;text-transform:uppercase}.page .zdict .r{font-style:normal}.page .zdict .sub{vertical-align:sub;font-size:smaller}.page .zdict .sup{vertical-align:super;font-size:smaller}.page .zdict .u{text-decoration:underline}.page .zdict .block{display:block;margin-top:3px}.page .hin .block{display:block;margin-top:15px;margin-bottom:7.5px}.page .zdict .bolditalic{font-weight:700;font-style:italic}.page span.bold{font-weight:700}.page span.bluebold{font-weight:700;color:#1c4b8b}.page span.ital,.page span.italics{font-style:italic}.page span.sensenum{margin-left:-1.3em;float:left;font-weight:700;font-size:1.1em}.page .zdict .cit.type-translation .quote{font-style:normal;color:#1683be}.page .zdict .cit.type-translation .pos{font-style:bold}.page .zdict a:hover{color:#f9690e}.page .zdict .var{font-weight:700}.page .zdict .power{float:right}.page .zdict .power .i{color:#1c4b8b;font-size:inherit}.page .zdict .hom_subsec{display:block}.page .zdict .definitions,.page .zdict .derivs,.page .zdict .etyms{margin-bottom:1em}.page .zdict .inflected_forms{display:block;padding-bottom:1.25em}.page .zdict .scbold{font-weight:700;text-transform:uppercase;font-size:.8em}.page .zdict .note .scbold{display:block}.page .zdict .pron .ptr{color:red}.page .zdict .list,.page .zdict .relwordgrp{display:block;margin-left:20px}.page .zdict .listitem,.page .zdict .relwordunit{display:list-item}.page .zdict .type-antgrp,.page .zdict .type-syngrp{display:block}.page .asset.Corpus_Examples_EN .quote{font-style:italic}.page .jbjs .sense{margin-left:0}.page .cit.type-xxjs .content{background-color:#fff;margin-bottom:20px;padding:20px}.page .cit.type-xxjs .author{font-weight:700;font-style:italic}.page .cit.type-xxjs .title{display:inline;font-variant:small-caps;font-style:italic}.page .cit.type-xxjs .ref.type-def{text-decoration:none;color:inherit}.page .biling .lbl{font-style:italic;color:#555}.page .biling .lbl.type-subj{font-variant:small-caps}.page .biling .lbl.type-subj .lbl{font-variant:normal}.page .biling .lbl.type-tm{font-style:normal}.page .biling .lbl.type-tm_hw{font-size:.78em}.page .biling .lbl.type-infl,.page .biling .lbl.type-infl span{font-style:normal;color:#1c4b8b;font-weight:400}.page .biling br{display:none}.page .biling .phrasals .re .orth{font-size:1.25em}.page .biling .sense .re{font-size:100%;margin-left:0}.page .hin .form.type-ant .orth,.page .hin .form.type-phr .orth,.page .hin .form.type-syn .orth{font-weight:400;font-size:100%}.page .biling .re{display:block;margin-left:1em}.page .thesbase .form.type-syn{margin-left:.5em}.page .thesbase .synunit .cit{display:inline}.page .thesbase .def{display:block}.page .thesbase .xr.type-theslink{display:inline-block;margin-left:20px}.page .thesbase .relwgrp{display:block;margin-left:1em}.page .thesbase .table{display:block}.page .thesbase .caption{display:block;font-weight:700;margin-top:10px;font-size:larger}.page .thesbase .bibl{display:block}.page .thesbase .bibl .title{display:inline}.page .thesbase .cit.type-proverb{display:block}.page .thesbase .tr{display:table-row}.page .thesbase .td{display:table-cell;padding:3px}.page .thesbase .th{display:table-cell;font-weight:700}.page .thesbase .cit.type-xxjs,.page .thesbase .cit.type-xxjs .crefe{display:inline;padding-left:.25em}.page .thesbase .note{background-color:transparent;padding:0;margin-top:10px;overflow:hidden}.page .thesbase .note .tr{display:block;margin-bottom:20px}.page .thesbase .tr .td:first-child{background-color:#e9eef4;font-weight:700;color:#1c4b8b;padding:5px 15px}.page .thesbase .note .td{padding:8px 15px;display:block}.page .thesbase .note .th{display:none}.page .nr-box-syn-of-syns .syns_container .form.type-syn .orth{font-weight:700}.page .thesbase .link{text-decoration:underline;font:14px/1 "Microsoft Yahei",sans-serif,Arial,Verdana;background:#e5ebf3;color:#1c4b8b;padding:.3em .8em;margin:5px 0;display:inline-block}.page .thesbase .sense{margin-bottom:2em}.page .thesbase .author{font-weight:700;font-style:italic}.cdet .nr-box-origin{padding-top:0;padding-bottom:0}.page .thesbase .sensehead>.sensenum{float:none}.page .thesbase .scbold{background:#efefef;padding:.5em 22px;margin:2em 0 1em 0;font-weight:700;font-size:80%;text-transform:uppercase;display:block}.page .nr-box-syn-of-syns div.type-syn_of_syn_head{display:inline-block}.page .nr-box-syn-of-syns div.type-syn_of_syn_head .orth,.page .thesbase .key{font-weight:700;margin-right:0;display:inline-block;margin-left:0;padding:.3em .8em;border:0;font-size:1.1em;padding-left:0;padding-bottom:0}.page .thesbase .key{padding-right:0}.page .thesbase .firstSyn{color:#000;font-size:.9em}.page .nr-box-syn-of-syns .syns_head{margin-top:2.2em}.page .nr-box-syn-of-syns .syns_example{line-height:2.5em}.page .nr-box-syn-of-syns .columns3,.page .type-ant.columns3{column-count:3}.page .nr-box-syn-of-syns .syns_items{display:block}.pagination a.next,.pagination a.page,.pagination a.prev,.pagination p,.pagination p a,.pagination span.page{padding:.3em .8em;display:inline-block;text-decoration:none;font-weight:700;border:0}.pagination a.next,.pagination a.page,.pagination a.prev{background:#e5ebf3;color:#194885}.pagination p,.pagination p a,.pagination span.page{background:#194885;color:#e5ebf3}.page .nr-box-syn-of-syns .lbl,.page .nr-box-syn-of-syns .lbl span,.page .zdict.thesbase .lbl,.page .zdict.thesbase .lbl span{font-style:italic;color:green}.page .zdict.thesbase .sensebody{display:block;margin:.5em 0 .5em 6px}.page .thesbase span.bold{font-weight:700}.page .thesbase span.kerntouch{letter-spacing:-.18em}.page .thesbase span.kern60{letter-spacing:-.6em}.page .thesbase span.manualdiacritic{vertical-align:25%;letter-spacing:-1em}.page .thesbase span.numerator{vertical-align:35%;font-size:smaller}.page .thesbase span.numerator_back{position:absolute;vertical-align:35%;letter-spacing:-1em;font-size:smaller}.page .thesbase span.denominator{vertical-align:-35%;font-size:smaller}.page .thesbase span.italics{font-weight:400;font-style:italic;color:#000}.page .thesbase span.homnum{font-weight:700;color:#fff;vertical-align:super;font-size:50%}.page .thesbase span.sensenum{font-weight:700}.page .thesbase span.QA{font-style:italic;color:red;font-size:90%}.page .thesbase hr{width:50%;text-align:left;border:3px inset #777;height:6px;margin:10px auto 5px 0}.page .thesbase .cit.type-quotation{display:block}.page .thesbase .cit.type-proverb>.quote,.page .thesbase .cit.type-quotation>.bibl,.page .thesbase .cit.type-quotation>.quote{display:block;margin-left:1em;padding-left:0}.page .thesbase>.re.type-phr .xr{margin-left:1em;font-weight:700}.page .thesbase .div .xr{display:block;margin-left:1em}.cdet .sense .form.type-syn.invisibleElements,.cdet .sense .type-ant div.invisibleElements{display:none}.cdet .sense.moreAnt .type-ant div,.cdet .sense.moreSyn .form.type-syn.head{display:block}.cdet .page .zdict .sense,.cdet .sense.moreSyn{margin-left:0;margin-bottom:.5em;padding-bottom:.5em;border-bottom:1px solid #dbdada;position:relative;overflow:hidden}.cdet .nr-box-syn-of-syns .syns_container{padding-left:1.9em}.cdet .zdict.thesbase .sensebody,.cdet div[data-type-block] .sense .sensebody{margin:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;padding-right:1.9em;padding-left:1.9em;line-height:1.5em;font-size:.9em}.cdet .nr-box-syn-of-syns div[data-type-block] .sense .def,.cdet .nr-box-syn-of-syns div[data-type-block] .sense .syns_example{margin:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;line-height:1.5em;font-size:.9em;padding-right:0;padding-left:0}.cdet .zdict .sense .synonymBlock{cursor:pointer}.cdet .zdict .sense.opened,.cdet div[data-type-block] .sense.opened{margin-left:0;margin-bottom:.5em;padding-bottom:.5em;border-bottom:1px solid #dbdada;cursor:auto;position:relative}.cdet .zdict.thesbase .sense.opened .sensebody,.cdet div[data-type-block] .sense.opened .sensebody{overflow:auto;text-overflow:inherit;white-space:inherit}.cdet .form.type-syn,.cdet .nr-box-syn-of-syns .form.type-syn,.cdet .syns_container .form.type-syn,.cdet .type-ant div{margin-left:.5em}.cdet .nr-box-syn-of-syns .sense.moreSyn{margin-bottom:.5em}.cdet .form.type-syn .orth,.cdet .syns_container .form.type-syn .orth,.cdet .type-ant .orth{background-color:transparent;border:0;font-size:.9em;font-weight:700;text-decoration:none;color:#4d4e51;margin:0;padding:0 .2em}.cdet .form.type-syn,.cdet .zdict .content{position:relative}.cdet .zdict .hom,.cdet .zdict .syn_of_syns{overflow:hidden}.cdet .sense.moreinfo .form .orth:after{display:block}.cdet .nr-box-syn-of-syns .syns_container,.cdet .type-ant{padding-left:0;margin-left:0}.cdet .nr-box-comments{background-color:#fff;margin-bottom:20px;padding:20px;position:relative}.cdet .nr-box-comments,.cdet .nr-box-nearby-words,.cdet .nr-box-origin,.cdet .nr-box-syn-of-syns,.cdet .zdict .content{border-left:none;box-shadow:none}.cdet .nr-box-nearby-words li,.cdet .re.type-phr .xr{margin-left:0;padding-left:.85em;margin-bottom:.3em;padding-bottom:.3em;display:block}.cdet .nr-box-syn-of-syns div.type-syn_of_syn_head{display:block}.cdet .nr-box-syn-of-syns .sense .def{padding-left:1em}.cdet .nr-box-syn-of-syns .sense .def,.cdet .nr-box-syn-of-syns .sense .syns_example{margin:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;line-height:1.5em;font-size:.9em;color:#4d4e51}.cdet .nr-box-syn-of-syns .quote{font-style:italic}.cdet .nr-box-syn-of-syns .sense.opened .def,.cdet .nr-box-syn-of-syns .sense.opened .syns_example,.cdet div[data-type-block] .sense.opened .sensebody{overflow:auto;white-space:normal}.cdet .nr-box-syn-of-syns .syns_head{margin-top:0}.cdet .form.type-syn .titleTypeSubContainer{display:block}.cdet .cit.type-quotation>.bibl{font-size:.85em}.cdet .cit.type-quotation{margin-left:0;margin-bottom:.3em;padding-bottom:.3em}.cdet .cit.type-quotation>.titleTypeContainer,.cdet .re.type-phr>.titleTypeContainer{margin-bottom:1em}.cdet .cit.type-quotation>.quote{line-height:1.3em;margin-bottom:.3em}.cdet .cit.type-quotation .author,.cdet .cit.type-quotation .title{font-size:inherit}.cdet .zdict .quote{color:#4d4e51;font-style:italic;display:block;font-size:.9em}.homograph-entry .grammar .page{display:block;border:solid 1px;font-family:arial,helvetica,sans-serif;margin-bottom:20px;padding:15px;padding-bottom:40px}.homograph-entry .grammar a.next,.homograph-entry .grammar a.previous{background:#e5ebf3;color:#194885;padding:.5em 1em;font-weight:bolder;border-bottom:0;float:left;margin-top:1em}.homograph-entry .grammar a.next{float:right}.homograph-entry .grammar a.next:hover,.homograph-entry .grammar a.previous:hover{color:#194885}.homograph-entry .grammar a.next i,.homograph-entry .grammar a.previous i{font-size:1.3em;vertical-align:middle;padding-right:8px;padding-left:8px;display:inline-block}.homograph-entry .grammar .exmplblk ul{padding-left:0}.homograph-entry .grammar .exmplblk{padding:.5em}.homograph-entry .grammar .exmplgrp ul{padding-left:20px;padding-bottom:10px}.homograph-entry .grammar .intro.suppressed{display:none}.homograph-entry .grammar h2{font-size:16pt;line-height:2em;text-decoration:underline}.homograph-entry .grammar h3{font-size:14pt}.homograph-entry .grammar h4{font-size:12pt;font-weight:700;margin-bottom:1em}.homograph-entry .grammar u{text-decoration:underline}.homograph-entry .grammar .lemma{font-weight:700}.homograph-entry .grammar .caption{font-weight:700;margin-top:1.5em}.homograph-entry .grammar .p{display:block;margin-top:5px;margin-bottom:5px}.homograph-entry .grammar .group{display:block;margin-top:2em;margin-bottom:2em}.homograph-entry .grammar .exmpl{font-weight:400;font-style:italic}.homograph-entry .grammar .i{font-style:italic}.homograph-entry .grammar .post{font-style:italic}.homograph-entry .grammar .posp{font-weight:700;font-style:normal}.homograph-entry .grammar .pattern{font-family:sans-serif}.homograph-entry .grammar .ul{margin-top:5px;list-style-type:none;padding-left:15px}.homograph-entry .grammar ul.arrow{list-style-type:square}.homograph-entry .grammar ul.star{list-style-type:disc}.homograph-entry .grammar ul.alpha{list-style-type:lower-alpha}.homograph-entry .grammar ol{margin-top:5px;list-style-type:decimal}.homograph-entry .grammar .li.exmpl{font-style:italic}.homograph-entry .grammar .lemmalist .li{margin-top:10px}.homograph-entry .grammar .lemmalist{border-color:#ccc;border-style:solid;border-width:1px;margin:4px;margin-top:2em;padding:1em;column-count:4}.homograph-entry .grammar div.greyborder2{border-color:#ccc;border-style:solid;border-width:1px;margin:4px;column-count:4}.homograph-entry .grammar td,.homograph-entry .grammar th{border-color:#000;border-style:solid;border-width:1px;padding:.5em 1.4em}.homograph-entry .grammar th{background-color:#ddd;font-weight:700;font-size:.9em}.homograph-entry .grammar table{border-collapse:collapse;border-color:#000;border-style:solid;border-width:1px;margin-top:1.5em;margin-bottom:1em}.homograph-entry .grammar a.block{display:block}.homograph-entry .grammar i.i_chevron-thin-right{display:inline-block;font-weight:700;width:2em;text-align:center;font-size:.6em}.homograph-entry .grammar .chapter a:before,.homograph-entry .grammar .group a:before,.homograph-entry .grammar .pattern a:before,.homograph-entry .grammar .posGr a:before,.homograph-entry .grammar .section a:before,.homograph-entry .grammar .subpattern a:before{display:block;content:""}.homograph-entry .grammar .breadcrumb{margin-bottom:2em}.zyyy span.label{width:.8em;display:inline-block;color:#0058a9;font-weight:700}.zyyy span.label1{width:.8em;display:inline-block}.shiyi_content .zib-title{float:right;font-size:16px}.shiyi_content .zi-b-img,.shiyi_content .zib-title .label{display:inline-block}.shiyi_content .zi-b-container .level{border:1px solid rgba(0,0,0,.5);border-radius:50%;display:inline-block;background-color:#f2928e}.shiyi_content .zi-b-container .level.roundRed{background-color:#e52920}.shiyi_content .zi-b-container .level1{width:14px;height:14px}.shiyi_content .zi-b-container .level2{width:15px;height:15px}.shiyi_content .zi-b-container .level3{width:16px;height:16px}.shiyi_content .zi-b-container .level4{width:17px;height:17px}.shiyi_content .zi-b-container .level5{width:18px;height:18px}.shiyi_content .zi-b-container .round{width:100%;height:100%}.shiyi_content .zi-b-container.relevance .level{border-radius:0;width:15px;vertical-align:bottom}.shiyi_content .zi-b-container.relevance .level1{background:#f6b26b;height:10px}.shiyi_content .zi-b-container.relevance .level2{background:#f6b26b;height:13px}.shiyi_content .zi-b-container.relevance .level3{background:#ffd966;height:16px}.shiyi_content .zi-b-container.relevance .level4{background:#ffd966;height:19px}.shiyi_content .zi-b-container.relevance .level5{background:#b6d7a8;height:22px}.shiyi_content .zi-b-container.relevance .level6{background:#b6d7a8;height:25px}.i_volume-up:before{content:""}.favadd:before{content:"✩"}.favdel:before{content:"★"}main>.browse_wrapper,main>.content_wrapper,main>.spellcheck_wrapper,main>.submit_new_word_wrapper,main>.suggested_word_wrapper,main>.word_submitted_wrapper,main>.zdict{width:calc(100% - 160px);float:left}main>.browse_wrapper,main>.content_wrapper,main>.spellcheck_wrapper,main>.submit_new_word_wrapper,main>.suggested_word_wrapper,main>.word_submitted_wrapper,main>.zdict{width:100%;float:none}.res_s{display:none}.page .nr-box-syn-of-syns .columns3,.page .type-ant.columns3{column-count:1}.mpuslot_b-container{min-width:320px;width:100%;margin:0 0 0 -15px;padding:0;z-index:10000}.page .zdict .power{display:none}.nr-box,.page .Corpus_Examples_EN .content,.shiyi_content .nr-box,.wotd-txt-block,.yczsl-content{padding:10px}.shiyi_content .nr-box{padding-top:0}.shiyi_content .nr-box-header{margin:0 -10px 1em -10px}.shiyi_content .nr-box.jbjs.br .nr-box-header::after{content:none}main>.browse_wrapper,main>.content_wrapper,main>.spellcheck_wrapper,main>.submit_new_word_wrapper,main>.suggested_word_wrapper,main>.word_submitted_wrapper,main>.zdict{width:100%;float:none}.res_t{display:none}.res_d{display:none}.pl-zdic a{border-bottom:none}.zib-title .icon-star{background:#9c7474;border-radius:4px;width:25px;height:25px;padding-top:3px;display:inline-block;color:#fff;font-size:18px;text-align:center}.shiyi_content .h2_entry .spanr{display:inline-block;float:right}.zib-title .icon-star{padding-top:4px}.dicpy{font-family:Arial;color:#f9690e;font-weight:400}.jnr li{list-style-type:none}.bknr,.jnr,.wknr{margin:.5em;line-height:1.5em}.shiyi_content .jnr ul{list-style:none;counter-reset:li}.shiyi_content .jnr ul li::before{content:counter(li);color:red;display:inline-block;width:2em;margin-left:-1.5em;margin-right:.5em;text-align:right;direction:rtl}.shiyi_content .jnr li{counter-increment:li}.shiyi_content .nr-box-shiyi.cyjs{border-right:solid 4px #e8ad62}.shiyi_content .nr-box-shiyi.wljs{border-right:solid 4px #aea4a4}.shiyi_content .nr-box-shiyi.cyjs .nr-box-header{border-bottom:solid 1px #af9a87}.shiyi_content .nr-box-shiyi.wljs .nr-box-header{border-bottom:solid 1px #af9a87}span.z_ts2,span.z_ts3,span.z_ts4{height:18px;line-height:18px;color:#f9690e;font-size:12px;text-align:center;display:inline-block;font-weight:400;margin-right:5px;padding:0}span.z_ts2{background-position:0 -78px;width:33px}span.z_ts3{background-position:-33px -78px;width:47px}span.z_ts4{background-position:0 -114px;width:55px}.dicpy{font-size:1.3em;font-family:Arial;color:#f9690e}.diczx1{color:#f9690e}.cino{font-weight:700}.encs{color:#390}.smcs{font-weight:700;color:#f9690e}.yhcs{color:#f9690e;font-weight:700}.crefe{border-bottom:dashed 1px rgba(0,0,0,.6);margin-right:1em}.enbox{padding:10px 0 5px 0;border-top:1px solid rgba(133,133,133,.28);margin:5px;background:rgba(254,249,249,.2)}@media screen and (max-width:761px){.cdet .navigation .nav{display:none}.cdet .more{margin:10px auto 10px auto;width:50%}}@media screen and (max-width:761px){.navigation .tabsNavigation{overflow-x:auto}}@media screen and (max-width:761px){[class*=res_c]{clear:both;width:100%;margin:0 0 10px 0}.res_c_2_3_content,.res_c_center_content{padding:0}header .center,header .left,header .right{padding:.3em}header .logo{width:130px;margin-left:5px;line-height:inherit}.homepage header .left{float:none}.zmenu .drop{box-shadow:none;margin-left:15px}.zmenu .drop,.zmenu .drop:after{display:none}.zmenu .drop .this_page{padding-left:0;padding-right:0}.zmenu .drop .zmenu_i{padding:0}.shiyi_content .entry_title{padding-left:.2em;padding-right:.2em}.login_wrapper .login_or_signup,.login_wrapper .sign_up,.profile_wrapper .profile_block,.profile_wrapper .profile_body{float:none;margin:0;width:auto}#gg_tslot{width:320px;min-height:50px;display:table;margin:0 auto}.topslot_container{margin-bottom:10px}.mpuslot_b{width:320px;margin:0 auto}.lies .lie_x{display:block;width:auto;padding-right:0;min-height:0}.yczsl{min-height:0}.search-desktop{display:none}.searchPanelOpen .search-desktop{display:block;width:auto;margin:4px;clear:both;margin-bottom:16px}.search-desktop .custom-select{display:block;position:absolute;left:0;opacity:.001;width:50px;height:100%}.search-desktop .cs_m{column-count:1}.cdet .sense.moreinfo .form [class*=type]{display:block}.shiyi_content .h1_entry{line-height:1.2em}.cdet .titleTypeContainer .titleType{margin:0}}p{padding-left:1em}.cino{margin-left:-1em}a:hover{color:#f9690e}a{cursor:pointer;color:inherit;text-decoration:none;border-bottom:dashed 1px rgba(0,0,0,.6)}.gnr .pz{border-bottom:1px dashed rgba(133,133,133,.28)}.gnr .pz ruby{margin-left:20px}.gnr .pz ruby rbc{font-size:20px;line-height:30px;font-weight:700}.gnr .pz ruby rtc{font-size:12px;color:#8f6652;line-height:30px}.gnr .def{margin:5px 0 5px;line-height:1.6em}.pz{border-bottom:1px dashed rgba(133,133,133,.28);padding-bottom:5px}.pz ruby{margin-left:20px;font-size:1.5em}.pz ruby rbc{font-size:20px;line-height:30px;font-weight:700}.pz ruby rtc{font-size:12px;color:#8f6652;line-height:30px}ruby{display:inline-table;text-align:center;white-space:nowrap;text-indent:0;margin:0;vertical-align:-20%}ruby>rb,ruby>rbc{display:table-row-group;line-height:90%}ruby>rbc+rtc,ruby>rt{display:table-header-group;font-size:60%;line-height:40%;letter-spacing:0}ruby>rbc+rtc+rtc{display:table-footer-group;font-size:60%;line-height:40%;letter-spacing:0}rbc>rb,rtc>rt{display:table-cell;letter-spacing:0}rtc>rt[rbspan]{display:table-caption}rp{display:none}.dichr{border-color:rgba(133,133,133,.28)}.jbjs_ico{width:1.3em;height:1.3em;display:inline-block;margin-right:.2em;vertical-align:text-bottom}',""]),e.exports=t},734:function(e,t,n){var o=n(1404);e.exports="string"==typeof o?o:o.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/6.3e3780c2.js b/plugins/saladict-ztools/ext-saladic/assets/6.3e3780c2.js new file mode 100644 index 00000000..e80bd335 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/6.3e3780c2.js @@ -0,0 +1,44 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[6,19,20,21],[,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return f})),n.d(e,"__generator",(function(){return l})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return h})),n.d(e,"__read",(function(){return b})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return m})),n.d(e,"__asyncGenerator",(function(){return g})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return x})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return S})),n.d(e,"__classPrivateFieldGet",(function(){return j})),n.d(e,"__classPrivateFieldSet",(function(){return k})); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function f(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 l(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function d(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function p(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function h(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function m(t){return this instanceof m?(this.v=t,this):new m(t)}function g(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof m?Promise.resolve(n.value.v).then(u,c):f(o[0][2],n)}catch(t){f(o[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function f(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:m(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function j(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function k(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){var r; +/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&t.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(4),i=n(46),o=n(82),a=n(14),s=n(72),u=n(24),c=n(52),f=function(t){function e(n,r,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!n){a.destination=o.a;break}if("object"==typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new l(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new l(a,n,r,i)}return a}return r.__extends(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a.a),l=function(t){function e(e,n,r,a){var s,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==o.a&&(c=Object.create(n),Object(i.a)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=r,u._complete=a,u}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw t;Object(c.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(c.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(f)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(7);var i=n(72),o=n(82);var a=n(51),s=n(120);function u(t){return 0===t.length?s.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var c=n(24),f=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var a=this.operator,s=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)}(t,e,n);if(a?s.add(a.call(s,this.source)):s.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.a?i:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=l(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:u(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=l(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function l(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(60),i=n(119),o=n(46),a=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var f=0;f<n.length;++f){n[f].remove(this)}if(Object(o.a)(s))try{s.call(this)}catch(t){e=t instanceof a?u(t.errors):[t]}if(Object(r.a)(c)){f=-1;for(var l=c.length;++f<l;){var d=c[f];if(Object(i.a)(d))try{d.unsubscribe()}catch(t){e=e||[],t instanceof a?e=e.concat(u(t.errors)):e.push(t)}}}if(e)throw new a(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function u(t){return t.reduce((function(t,e){return t.concat(e instanceof a?e.errors:e)}),[])}},,function(t,e,n){"use strict";function r(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}e.a=function(t,e){var n;void 0===e&&(e=r);var i,o=[],a=!1;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return a&&n===this&&e(r,o)||(i=t.apply(this,r),a=!0,n=this,o=r),i}}},,function(t,e,n){"use strict";function r(){return(r=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)}n.d(e,"a",(function(){return r}))},,,,function(t,e,n){var r=n(207);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return U})),n.d(e,"d",(function(){return $})),n.d(e,"e",(function(){return G})),n.d(e,"f",(function(){return V})),n.d(e,"c",(function(){return k}));var r=n(0),i=n.n(r),o=(n(26),i.a.createContext(null));var a=function(t){t()},s={notify:function(){}};function u(){var t=a,e=null,n=null;return{clear:function(){e=null,n=null},notify:function(){t((function(){for(var t=e;t;)t.callback(),t=t.next}))},get:function(){for(var t=[],n=e;n;)t.push(n),n=n.next;return t},subscribe:function(t){var r=!0,i=n={callback:t,next:null,prev:n};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var c=function(){function t(t,e){this.store=t,this.parentSub=e,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var e=t.prototype;return e.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},e.notifyNestedSubs=function(){this.listeners.notify()},e.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},e.isSubscribed=function(){return Boolean(this.unsubscribe)},e.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=u())},e.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},t}();var f=function(t){var e=t.store,n=t.context,a=t.children,s=Object(r.useMemo)((function(){var t=new c(e);return t.onStateChange=t.notifyNestedSubs,{store:e,subscription:t}}),[e]),u=Object(r.useMemo)((function(){return e.getState()}),[e]);Object(r.useEffect)((function(){var t=s.subscription;return t.trySubscribe(),u!==e.getState()&&t.notifyNestedSubs(),function(){t.tryUnsubscribe(),t.onStateChange=null}}),[s,u]);var f=n||o;return i.a.createElement(f.Provider,{value:s},a)},l=n(18),d=n(61),p=n(176),h=n.n(p),b=n(158),v="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,y=[],m=[null,null];function g(t,e){var n=t[1];return[e.payload,n+1]}function _(t,e,n){v((function(){return t.apply(void 0,e)}),n)}function w(t,e,n,r,i,o,a){t.current=r,e.current=i,n.current=!1,o.current&&(o.current=null,a())}function x(t,e,n,r,i,o,a,s,u,c){if(t){var f=!1,l=null,d=function(){if(!f){var t,n,d=e.getState();try{t=r(d,i.current)}catch(t){n=t,l=t}n||(l=null),t===o.current?a.current||u():(o.current=t,s.current=t,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,l)throw l}}}var O=function(){return[null,0]};function S(t,e){void 0===e&&(e={});var n=e,a=n.getDisplayName,s=void 0===a?function(t){return"ConnectAdvanced("+t+")"}:a,u=n.methodName,f=void 0===u?"connectAdvanced":u,p=n.renderCountProp,v=void 0===p?void 0:p,S=n.shouldHandleStateChanges,j=void 0===S||S,k=n.storeKey,E=void 0===k?"store":k,T=(n.withRef,n.forwardRef),A=void 0!==T&&T,C=n.context,P=void 0===C?o:C,N=Object(d.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),R=P;return function(e){var n=e.displayName||e.name||"Component",o=s(n),a=Object(l.a)({},N,{getDisplayName:s,methodName:f,renderCountProp:v,shouldHandleStateChanges:j,storeKey:E,displayName:o,wrappedComponentName:n,WrappedComponent:e}),u=N.pure;var p=u?r.useMemo:function(t){return t()};function S(n){var o=Object(r.useMemo)((function(){var t=n.forwardedRef,e=Object(d.a)(n,["forwardedRef"]);return[n.context,t,e]}),[n]),s=o[0],u=o[1],f=o[2],h=Object(r.useMemo)((function(){return s&&s.Consumer&&Object(b.isContextConsumer)(i.a.createElement(s.Consumer,null))?s:R}),[s,R]),v=Object(r.useContext)(h),S=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(v)&&Boolean(v.store);var k=S?n.store:v.store,E=Object(r.useMemo)((function(){return function(e){return t(e.dispatch,a)}(k)}),[k]),T=Object(r.useMemo)((function(){if(!j)return m;var t=new c(k,S?null:v.subscription),e=t.notifyNestedSubs.bind(t);return[t,e]}),[k,S,v]),A=T[0],C=T[1],P=Object(r.useMemo)((function(){return S?v:Object(l.a)({},v,{subscription:A})}),[S,v,A]),N=Object(r.useReducer)(g,y,O),z=N[0][0],M=N[1];if(z&&z.error)throw z.error;var D=Object(r.useRef)(),I=Object(r.useRef)(f),L=Object(r.useRef)(),B=Object(r.useRef)(!1),F=p((function(){return L.current&&f===I.current?L.current:E(k.getState(),f)}),[k,z,f]);_(w,[I,D,B,f,F,L,C]),_(x,[j,k,A,E,I,D,B,L,C,M],[k,A,E]);var U=Object(r.useMemo)((function(){return i.a.createElement(e,Object(l.a)({},F,{ref:u}))}),[u,e,F]);return Object(r.useMemo)((function(){return j?i.a.createElement(h.Provider,{value:P},U):U}),[h,U,P])}var k=u?i.a.memo(S):S;if(k.WrappedComponent=e,k.displayName=o,A){var T=i.a.forwardRef((function(t,e){return i.a.createElement(k,Object(l.a)({},t,{forwardedRef:e}))}));return T.displayName=o,T.WrappedComponent=e,h()(T,e)}return h()(k,e)}}function j(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function k(t,e){if(j(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(e,n[i])||!j(t[n[i]],e[n[i]]))return!1;return!0}var E=n(104);function T(t){return function(e,n){var r=t(e,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function A(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function C(t,e){return function(e,n){n.displayName;var r=function(t,e){return r.dependsOnOwnProps?r.mapToProps(t,e):r.mapToProps(t)};return r.dependsOnOwnProps=!0,r.mapToProps=function(e,n){r.mapToProps=t,r.dependsOnOwnProps=A(t);var i=r(e,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=A(i),i=r(e,n)),i},r}}var P=[function(t){return"function"==typeof t?C(t):void 0},function(t){return t?void 0:T((function(t){return{dispatch:t}}))},function(t){return t&&"object"==typeof t?T((function(e){return Object(E.b)(t,e)})):void 0}];var N=[function(t){return"function"==typeof t?C(t):void 0},function(t){return t?void 0:T((function(){return{}}))}];function R(t,e,n){return Object(l.a)({},n,{},t,{},e)}var z=[function(t){return"function"==typeof t?function(t){return function(e,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(e,n,s){var u=t(e,n,s);return a?i&&o(u,r)||(r=u):(a=!0,r=u),r}}}(t):void 0},function(t){return t?void 0:function(){return R}}];function M(t,e,n,r){return function(i,o){return n(t(i,o),e(r,o),o)}}function D(t,e,n,r,i){var o,a,s,u,c,f=i.areStatesEqual,l=i.areOwnPropsEqual,d=i.areStatePropsEqual,p=!1;function h(i,p){var h,b,v=!l(p,a),y=!f(i,o);return o=i,a=p,v&&y?(s=t(o,a),e.dependsOnOwnProps&&(u=e(r,a)),c=n(s,u,a)):v?(t.dependsOnOwnProps&&(s=t(o,a)),e.dependsOnOwnProps&&(u=e(r,a)),c=n(s,u,a)):y?(h=t(o,a),b=!d(h,s),s=h,b&&(c=n(s,u,a)),c):c}return function(i,f){return p?h(i,f):(s=t(o=i,a=f),u=e(r,a),c=n(s,u,a),p=!0,c)}}function I(t,e){var n=e.initMapStateToProps,r=e.initMapDispatchToProps,i=e.initMergeProps,o=Object(d.a)(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(t,o),s=r(t,o),u=i(t,o);return(o.pure?D:M)(a,s,u,t,o)}function L(t,e,n){for(var r=e.length-1;r>=0;r--){var i=e[r](t);if(i)return i}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function B(t,e){return t===e}function F(t){var e=void 0===t?{}:t,n=e.connectHOC,r=void 0===n?S:n,i=e.mapStateToPropsFactories,o=void 0===i?N:i,a=e.mapDispatchToPropsFactories,s=void 0===a?P:a,u=e.mergePropsFactories,c=void 0===u?z:u,f=e.selectorFactory,p=void 0===f?I:f;return function(t,e,n,i){void 0===i&&(i={});var a=i,u=a.pure,f=void 0===u||u,h=a.areStatesEqual,b=void 0===h?B:h,v=a.areOwnPropsEqual,y=void 0===v?k:v,m=a.areStatePropsEqual,g=void 0===m?k:m,_=a.areMergedPropsEqual,w=void 0===_?k:_,x=Object(d.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),O=L(t,o,"mapStateToProps"),S=L(e,s,"mapDispatchToProps"),j=L(n,c,"mergeProps");return r(p,Object(l.a)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:O,initMapDispatchToProps:S,initMergeProps:j,pure:f,areStatesEqual:b,areOwnPropsEqual:y,areStatePropsEqual:g,areMergedPropsEqual:w},x))}}var U=F();function H(){return Object(r.useContext)(o)}function q(t){void 0===t&&(t=o);var e=t===o?H:function(){return Object(r.useContext)(t)};return function(){return e().store}}var V=q();function Z(t){void 0===t&&(t=o);var e=t===o?V:q(t);return function(){return e().dispatch}}var $=Z(),W=function(t,e){return t===e};function K(t){void 0===t&&(t=o);var e=t===o?H:function(){return Object(r.useContext)(t)};return function(t,n){void 0===n&&(n=W);var i=e();return function(t,e,n,i){var o,a=Object(r.useReducer)((function(t){return t+1}),0)[1],s=Object(r.useMemo)((function(){return new c(n,i)}),[n,i]),u=Object(r.useRef)(),f=Object(r.useRef)(),l=Object(r.useRef)();try{o=t!==f.current||u.current?t(n.getState()):l.current}catch(t){throw u.current&&(t.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),t}return v((function(){f.current=t,l.current=o,u.current=void 0})),v((function(){function t(){try{var t=f.current(n.getState());if(e(t,l.current))return;l.current=t}catch(t){u.current=t}a({})}return s.onStateChange=t,s.trySubscribe(),t(),function(){return s.tryUnsubscribe()}}),[n,s]),o}(t,n,i.store,i.subscription)}}var Y,G=K(),X=n(21);Y=X.unstable_batchedUpdates,a=Y},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(450)()},function(t,e,n){var r=n(345);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(219);var i=n(144),o=n(220);function a(t,e){return Object(r.a)(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)||Object(i.a)(t,e)||Object(o.a)()}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return f}));var r=n(0),i=n(95),o=n(141);function a(t){return t}function s(t){return Object(o.a)(0)(t)}function u(){return new i.a}function c(t){var e=Object(r.useRef)(!0),n=Object(r.useRef)(null);return e.current&&(e.current=!1,n.current=t()),n}function f(){var t=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return t(l)})).current}function l(t){return(t+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(133);var i=n(218),o=n(144);function a(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(i.a)(t)||Object(o.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(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(99),i=n(132),o=n(8);function a(t,e,n,a,s){if(void 0===s&&(s=new r.a(t,n,a)),!s.closed)return e instanceof o.a?e.subscribe(s):Object(i.a)(e)(s)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(7).a)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.a)},,,,,function(t,e,n){"use strict";function r(t,e=window){if(t){const e=t.toString().trim();if(e)return e}const n=e.document.activeElement;if(n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName)){const t=n;return t.value.slice(t.selectionStart||0,t.selectionEnd||0)}return""}function i(t=window){return r(t.getSelection(),t)}function o(t){if(!t||t.rangeCount<=0)return"";const e=t.toString();if(!e.trim())return"";const n=t.getRangeAt(0);return n?(function(t){if(t){const e=/[.?!。?!…]/,n=/[^\s.?!。?!…]/;for(let r=t.length-1;r>=0;r--){const i=t[r];if(e.test(i)){if("."===i&&n.test(t[r+1]))continue;return t.slice(r+1)}}}return t}(s(n))+e+function(t){const e=/^((\.(?![\s.?!。?!…]))|[^.?!。?!…])*([.?!。?!…]){0,3}/.exec(t);return e?e[0]:""}(u(n))).replace(/\s+/g," ").trim():""}function a(t=window){return o(t.getSelection())}function s(t){let e=t.startContainer,n="";switch(e.nodeType){case Node.TEXT_NODE:{const r=e.textContent;r&&(n=r.slice(0,t.startOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:e=e.childNodes[t.startOffset]}for(let t=e;f(t);t=t.parentElement)for(let e=t.previousSibling;f(e);e=e.previousSibling)n=c(e)+n;return n}function u(t){let e=t.endContainer,n="";switch(e.nodeType){case Node.TEXT_NODE:{const r=e.textContent;r&&(n=r.slice(t.endOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:e=e.childNodes[t.endOffset-1]}for(let t=e;f(t);t=t.parentElement)for(let e=t.nextSibling;f(e);e=e.nextSibling)n+=c(e);return n}function c(t){return t.nodeType===Node.TEXT_NODE?t.nodeValue||"":t.nodeType===Node.ELEMENT_NODE&&t.innerText||""}function f(t){if(!t)return!1;switch(t.nodeType){case Node.TEXT_NODE:case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:return!0;case Node.ELEMENT_NODE:switch(t.tagName){case"A":case"ABBR":case"B":case"BDI":case"BDO":case"BR":case"CITE":case"CODE":case"DATA":case"DFN":case"EM":case"I":case"KBD":case"MARK":case"Q":case"RP":case"RT":case"RTC":case"RUBY":case"S":case"SAMP":case"SMALL":case"SPAN":case"STRONG":case"SUB":case"SUP":case"TIME":case"U":case"VAR":case"WBR":return!0}}return!1}n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(482)},function(t,e,n){"use strict";function r(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 i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return i}))},,function(t,e,n){"use strict";var r=n(245),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===i.call(t)}function f(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:f,merge:function t(){var e={};function n(n,r){u(e[r])&&u(n)?e[r]=t(e[r],n):u(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)f(arguments[r],n);return e},extend:function(t,e,n){return f(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(75),i=n(34);function o(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(i.a)(t):e}},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(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)}n.d(e,"a",(function(){return i}))},,function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(60),o=n(46),a=n(10);function s(t,e,n,u){return Object(o.a)(n)&&(u=n,n=void 0),u?s(t,e,n).pipe(Object(a.a)((function(t){return Object(i.a)(t)?u.apply(void 0,t):u(t)}))):new r.a((function(r){!function t(e,n,r,i,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),a=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,r),a=function(){return c.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var f=0,l=e.length;f<l;f++)t(e[f],n,r,i,o)}i.add(a)}(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(204),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(8),i=n(132),o=n(14),a=n(51);var s=n(98),u=n(70);var c=n(131),f=n(129);function l(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new r.a((function(n){var r=new o.a;return r.add(e.schedule((function(){var i=t[a.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a((function(n){var r=new o.a;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Object(f.a)(t))return Object(s.a)(t,e);if(function(t){return t&&"function"==typeof t[u.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,i=new o.a;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[u.a](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function d(t,e){return e?l(t,e):t instanceof r.a?t:new r.a(Object(i.a)(t))}},function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},a={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(r)},function(t,e,n){var r=n(123),i=n(312),o=n(313),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));var i=r()},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},,function(t,e,n){"use strict";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)}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(277),i=n(308),o=n(319),a=n(56);t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(60),o=n(46),a=n(10);function s(t,e,n){return n?s(t,e).pipe(Object(a.a)((function(t){return Object(i.a)(t)?n.apply(void 0,t):n(t)}))):new r.a((function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void n.error(t)}if(Object(o.a)(e))return function(){return e(i,r)}}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(24),i=n(52),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.value))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(i.a)},,function(t,e,n){"use strict";var r={};(0,n(68).assign)(r,n(300),n(303),n(202)),t.exports=r},,,function(t,e,n){var r=n(326),i=n(329);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){"use strict";var r=n(18),i=n(61),o=n(135);n(26);function a(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(0),u=n.n(s),c=n(21),f=n.n(c),l=!1,d=u.a.createContext(null),p=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var i,o=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?o?(i="exited",r.appearStatus="entering"):i="entered":i=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}Object(o.a)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(e="entering"):"entering"!==n&&"entered"!==n||(e="exiting")}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),"entering"===e?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,i=this.props.nodeRef?[r]:[f.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!t&&!n||l?this.safeSetState({status:"entered"},(function(){e.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:"entering"},(function(){e.props.onEntering(o,a),e.onTransitionEnd(u,(function(){e.safeSetState({status:"entered"},(function(){e.props.onEntered(o,a)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:f.a.findDOMNode(this);e&&!l?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:f.a.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,r=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Object(i.a)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return u.a.createElement(d.Provider,{value:null},"function"==typeof n?n(t,r):u.a.cloneElement(u.a.Children.only(n),r))},e}(u.a.Component);function h(){}p.contextType=d,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},p.UNMOUNTED="unmounted",p.EXITED="exited",p.ENTERING="entering",p.ENTERED="entered",p.EXITING="exiting";var b=p,v=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return r=e,void((n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},y=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var r=e.resolveArguments(t,n),i=r[0],o=r[1];e.removeClasses(i,"exit"),e.addClass(i,o?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.resolveArguments(t,n),i=r[0],o=r[1]?"appear":"enter";e.addClass(i,o,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.resolveArguments(t,n),i=r[0],o=r[1]?"appear":"enter";e.removeClasses(i,o),e.addClass(i,o,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+t:n[t];return{baseClassName:i,activeClassName:r?i+"-active":n[t+"Active"],doneClassName:r?i+"-done":n[t+"Done"]}},e}Object(o.a)(e,t);var n=e.prototype;return n.addClass=function(t,e,n){var r=this.getClassNames(e)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===e&&"done"===n&&i&&(r+=" "+i),"active"===n&&t&&t.scrollTop,r&&(this.appliedClasses[e][n]=r,function(t,e){t&&e&&e.split(" ").forEach((function(e){return r=e,void((n=t).classList?n.classList.add(r):function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(t,r))},n.removeClasses=function(t,e){var n=this.appliedClasses[e],r=n.base,i=n.active,o=n.done;this.appliedClasses[e]={},r&&v(t,r),i&&v(t,i),o&&v(t,o)},n.render=function(){var t=this.props,e=(t.classNames,Object(i.a)(t,["classNames"]));return u.a.createElement(b,Object(r.a)({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(u.a.Component);y.defaultProps={classNames:""},y.propTypes={};e.a=y},function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return l}));var r=n(4),i=n(8),o=n(7),a=n(14),s=n(73),u=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(a.a),c=n(72),f=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.__extends(e,t),e}(o.a),l=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.__extends(e,t),e.prototype[c.a]=function(){return new f(this)},e.prototype.lift=function(t){var e=new d(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new s.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),a.a.EMPTY):this.isStopped?(t.complete(),a.a.EMPTY):(this.observers.push(t),new u(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new d(t,e)},e}(i.a),d=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.__extends(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):a.a.EMPTY},e}(l)},function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(8),i=n(14);function o(t,e){return new r.a((function(n){var r=new i.a,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(7).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(102),i=n(137);function o(){return Object(i.a)(1)}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o()(r.a.apply(void 0,t))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(65),i=n(106),o=n(98);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r.a)(n)?(t.pop(),Object(o.a)(t,n)):Object(i.a)(t)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return s}));var r=n(238),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function a(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function s(t,e,n){var i;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var u=t,c=e,f=[],l=f,d=!1;function p(){l===f&&(l=f.slice())}function h(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function b(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var e=!0;return p(),l.push(t),function(){if(e){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");e=!1,p();var n=l.indexOf(t);l.splice(n,1),f=null}}}function v(t){if(!a(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,c=u(c,t)}finally{d=!1}for(var e=f=l,n=0;n<e.length;n++){(0,e[n])()}return t}function y(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");u=t,v({type:o.REPLACE})}function m(){var t,e=b;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(h())}return n(),{unsubscribe:e(n)}}})[r.a]=function(){return this},t}return v({type:o.INIT}),(i={dispatch:v,subscribe:b,getState:h,replaceReducer:y})[r.a]=m,i}function u(t,e){return function(){return e(t.apply(this,arguments))}}function c(t,e){if("function"==typeof t)return u(t,e);if("object"!=typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in t){var i=t[r];"function"==typeof i&&(n[r]=u(i,e))}return n}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(n,!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function h(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=e.map((function(t){return t(i)}));return d({},n,{dispatch:r=p.apply(void 0,o)(n.dispatch)})}}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),i=n(130),o=n(98);function a(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}},,function(t,e,n){var r=n(69),i=n(56),o=n(64);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r,i=n(124),o=n(102),a=n(8);function s(t){var e=t.error;t.subscriber.error(e)}r||(r={});var u=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return Object(o.a)(this.value);case"E":return t=this.error,e?new a.a((function(n){return e.schedule(s,0,{error:t,subscriber:n})})):new a.a((function(e){return e.error(t)}));case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(65),o=n(137),a=n(106);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,s=null,u=t[t.length-1];return Object(i.a)(u)?(s=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(n)(Object(a.a)(t,s))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(118),i=new(n(117).a)(r.a)},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(151);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),o=function(t){function e(n,r){void 0===r&&(r=i.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.__extends(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(14).a))},function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(4),i=n(37),o=n(99),a=n(36),s=n(10),u=n(67);function c(t,e){return"function"==typeof e?function(n){return n.pipe(c((function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new f(t))}}var f=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project))},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new o.a(this,e,n),s=this.destination;s.add(i),this.innerSubscription=Object(a.a)(this,t,void 0,void 0,i),this.innerSubscription!==i&&s.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(i.a)},,function(t,e,n){var r=n(66).Symbol;t.exports=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(8),i=new r.a((function(t){return t.complete()}));function o(t){return t?function(t){return new r.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(30);function o(t,e){var n=Object(i.e)(i.a),o=Object(i.e)((function(){return t(n.current)}));return[Object(r.useRef)((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];n.current.next(e?e(t):t[0])})).current,o.current]}},function(t,e,n){var r=n(93)(Object,"create");t.exports=r},function(t,e,n){var r=n(163);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(340);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(130),i=n(52),o=n(70),a=n(51),s=n(129),u=n(131),c=n(119),f=function(t){if(t&&"function"==typeof t[a.a])return f=t,function(t){var e=f[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(s.a)(t))return Object(r.a)(t);if(Object(u.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,f,l=Object(c.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+l+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(t,e,n){"use strict";function r(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.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(37),o=n(36);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new s(r,n))}}var s=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observables,this.project))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var a=n.length;i.values=new Array(a);for(var s=0;s<a;s++)i.toRespond.push(s);for(s=0;s<a;s++){var u=n[s];i.add(Object(o.a)(i,u,u,s))}return i}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),i=n(405),o=n(30);function a(t,e){if(!e)return Object(o.e)(t).current;var n=Object(o.e)((function(){return new i.a(e)})),a=Object(o.e)((function(){return t(n.current)})),s=Object(r.useRef)(!0);return Object(r.useEffect)((function(){s.current?s.current=!1:n.current.next(e)}),e),a.current}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(152),i=n(120);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(i.a,t)}},,function(t,e,n){ +/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */ +t.exports=function(){"use strict";var t=Object.hasOwnProperty,e=Object.setPrototypeOf,n=Object.isFrozen,r=Object.keys,i=Object.freeze,o=Object.seal,a=Object.create,s="undefined"!=typeof Reflect&&Reflect,u=s.apply,c=s.construct;u||(u=function(t,e,n){return t.apply(e,n)}),i||(i=function(t){return t}),o||(o=function(t){return t}),c||(c=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 f=S(Array.prototype.forEach),l=S(Array.prototype.indexOf),d=S(Array.prototype.join),p=S(Array.prototype.pop),h=S(Array.prototype.push),b=S(Array.prototype.slice),v=S(String.prototype.toLowerCase),y=S(String.prototype.match),m=S(String.prototype.replace),g=S(String.prototype.indexOf),_=S(String.prototype.trim),w=S(RegExp.prototype.test),x=j(RegExp),O=j(TypeError);function S(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 u(t,e,r)}}function j(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return c(t,n)}}function k(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 E(e){var n=a(null),r=void 0;for(r in e)u(t,e,[r])&&(n[r]=e[r]);return n}var T=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"]),A=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"]),P=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"]),N=i(["#text"]),R=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"]),z=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","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","systemlanguage","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"]),M=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"]),I=o(/\{\{[\s\S]*|[\s\S]*\}\}/gm),L=o(/<%[\s\S]*|[\s\S]*%>/gm),B=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),H=o(/^(?:\w+script|data):/i),q=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 Z(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 $=function(){return"undefined"==typeof window?null:window},W=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]:$(),n=function(e){return t(e)};if(n.version="2.0.17",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,c=e.HTMLTemplateElement,S=e.Node,j=e.NodeFilter,K=e.NamedNodeMap,Y=void 0===K?e.NamedNodeMap||e.MozNamedAttrMap:K,G=e.Text,X=e.Comment,J=e.DOMParser,Q=e.trustedTypes;if("function"==typeof c){var tt=s.createElement("template");tt.content&&tt.content.ownerDocument&&(s=tt.content.ownerDocument)}var et=W(Q,o),nt=et&&Mt?et.createHTML(""):"",rt=s,it=rt.implementation,ot=rt.createNodeIterator,at=rt.getElementsByTagName,st=rt.createDocumentFragment,ut=o.importNode,ct={};try{ct=E(s).documentMode?s.documentMode:{}}catch(t){}var ft={};n.isSupported=it&&void 0!==it.createHTMLDocument&&9!==ct;var lt=I,dt=L,pt=B,ht=F,bt=H,vt=q,yt=U,mt=null,gt=k({},[].concat(Z(T),Z(A),Z(C),Z(P),Z(N))),_t=null,wt=k({},[].concat(Z(R),Z(z),Z(M),Z(D))),xt=null,Ot=null,St=!0,jt=!0,kt=!1,Et=!1,Tt=!1,At=!1,Ct=!1,Pt=!1,Nt=!1,Rt=!1,zt=!1,Mt=!1,Dt=!0,It=!0,Lt=!1,Bt={},Ft=k({},["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,Ht=k({},["audio","video","img","source","image","track"]),qt=null,Vt=k({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Zt=null,$t=s.createElement("form"),Wt=function(t){Zt&&Zt===t||(t&&"object"===(void 0===t?"undefined":V(t))||(t={}),t=E(t),mt="ALLOWED_TAGS"in t?k({},t.ALLOWED_TAGS):gt,_t="ALLOWED_ATTR"in t?k({},t.ALLOWED_ATTR):wt,qt="ADD_URI_SAFE_ATTR"in t?k(E(Vt),t.ADD_URI_SAFE_ATTR):Vt,Ut="ADD_DATA_URI_TAGS"in t?k(E(Ht),t.ADD_DATA_URI_TAGS):Ht,xt="FORBID_TAGS"in t?k({},t.FORBID_TAGS):{},Ot="FORBID_ATTR"in t?k({},t.FORBID_ATTR):{},Bt="USE_PROFILES"in t&&t.USE_PROFILES,St=!1!==t.ALLOW_ARIA_ATTR,jt=!1!==t.ALLOW_DATA_ATTR,kt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Et=t.SAFE_FOR_JQUERY||!1,Tt=t.SAFE_FOR_TEMPLATES||!1,At=t.WHOLE_DOCUMENT||!1,Nt=t.RETURN_DOM||!1,Rt=t.RETURN_DOM_FRAGMENT||!1,zt=t.RETURN_DOM_IMPORT||!1,Mt=t.RETURN_TRUSTED_TYPE||!1,Pt=t.FORCE_BODY||!1,Dt=!1!==t.SANITIZE_DOM,It=!1!==t.KEEP_CONTENT,Lt=t.IN_PLACE||!1,yt=t.ALLOWED_URI_REGEXP||yt,Tt&&(jt=!1),Rt&&(Nt=!0),Bt&&(mt=k({},[].concat(Z(N))),_t=[],!0===Bt.html&&(k(mt,T),k(_t,R)),!0===Bt.svg&&(k(mt,A),k(_t,z),k(_t,D)),!0===Bt.svgFilters&&(k(mt,C),k(_t,z),k(_t,D)),!0===Bt.mathMl&&(k(mt,P),k(_t,M),k(_t,D))),t.ADD_TAGS&&(mt===gt&&(mt=E(mt)),k(mt,t.ADD_TAGS)),t.ADD_ATTR&&(_t===wt&&(_t=E(_t)),k(_t,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&k(qt,t.ADD_URI_SAFE_ATTR),It&&(mt["#text"]=!0),At&&k(mt,["html","head","body"]),mt.table&&(k(mt,["tbody"]),delete xt.tbody),i&&i(t),Zt=t)},Kt=function(t){h(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.outerHTML=nt}},Yt=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)},Gt=function(t){var e=void 0,n=void 0;if(Pt)t="<remove></remove>"+t;else{var r=y(t,/^[\r\n\t ]+/);n=r&&r[0]}var i=et?et.createHTML(t):t;try{e=(new J).parseFromString(i,"text/html")}catch(t){}if(a&&k(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,At?"html":"body")[0]};n.isSupported&&function(){try{var t=Gt("<x/><title></title><img>");w(/<\/title/,t.querySelector("title").innerHTML)&&(a=!0)}catch(t){}}();var Xt=function(t){return ot.call(t.ownerDocument||t,t,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,(function(){return j.FILTER_ACCEPT}),!1)},Jt=function(t){return!(t instanceof G||t instanceof X||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof Y&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI)},Qt=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},te=function(t,e,r){ft[t]&&f(ft[t],(function(t){t.call(n,e,r,Zt)}))},ee=function(t){var e=void 0;if(te("beforeSanitizeElements",t,null),Jt(t))return Kt(t),!0;if(y(t.nodeName,/[\u0080-\uFFFF]/))return Kt(t),!0;var r=v(t.nodeName);if(te("uponSanitizeElement",t,{tagName:r,allowedTags:mt}),("svg"===r||"math"===r)&&0!==t.querySelectorAll("p, br, form, table").length)return Kt(t),!0;if(!mt[r]||xt[r]){if(It&&!Ft[r]&&"function"==typeof t.insertAdjacentHTML)try{var i=t.innerHTML;t.insertAdjacentHTML("AfterEnd",et?et.createHTML(i):i)}catch(t){}return Kt(t),!0}return"noscript"===r&&w(/<\/noscript/i,t.innerHTML)||"noembed"===r&&w(/<\/noembed/i,t.innerHTML)?(Kt(t),!0):(!Et||Qt(t.firstElementChild)||Qt(t.content)&&Qt(t.content.firstElementChild)||!w(/</g,t.textContent)||(h(n.removed,{element:t.cloneNode()}),t.innerHTML?t.innerHTML=m(t.innerHTML,/</g,"<"):t.innerHTML=m(t.textContent,/</g,"<")),Tt&&3===t.nodeType&&(e=t.textContent,e=m(e,lt," "),e=m(e,dt," "),t.textContent!==e&&(h(n.removed,{element:t.cloneNode()}),t.textContent=e)),te("afterSanitizeElements",t,null),!1)},ne=function(t,e,n){if(Dt&&("id"===e||"name"===e)&&(n in s||n in $t))return!1;if(jt&&w(pt,e));else if(St&&w(ht,e));else{if(!_t[e]||Ot[e])return!1;if(qt[e]);else if(w(yt,m(n,vt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==g(n,"data:")||!Ut[t])if(kt&&!w(bt,m(n,vt,"")));else if(n)return!1}return!0},re=function(t){var e=void 0,i=void 0,o=void 0,a=void 0,s=void 0;te("beforeSanitizeAttributes",t,null);var u=t.attributes;if(u){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_t};for(s=u.length;s--;){var f=e=u[s],h=f.name,y=f.namespaceURI;if(i=_(e.value),o=v(h),c.attrName=o,c.attrValue=i,c.keepAttr=!0,c.forceKeepAttr=void 0,te("uponSanitizeAttribute",t,c),i=c.attrValue,!c.forceKeepAttr){if("name"===o&&"IMG"===t.nodeName&&u.id)a=u.id,u=b(u,[]),Yt("id",t),Yt(h,t),l(u,a)>s&&t.setAttribute("id",a.value);else{if("INPUT"===t.nodeName&&"type"===o&&"file"===i&&c.keepAttr&&(_t[o]||!Ot[o]))continue;"id"===h&&t.setAttribute(h,""),Yt(h,t)}if(c.keepAttr)if(Et&&w(/\/>/i,i))Yt(h,t);else if(w(/svg|math/i,t.namespaceURI)&&w(x("</("+d(r(Ft),"|")+")","i"),i))Yt(h,t);else{Tt&&(i=m(i,lt," "),i=m(i,dt," "));var g=t.nodeName.toLowerCase();if(ne(g,o,i))try{y?t.setAttributeNS(y,h,i):t.setAttribute(h,i),p(n.removed)}catch(t){}}}}te("afterSanitizeAttributes",t,null)}},ie=function t(e){var n=void 0,r=Xt(e);for(te("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)te("uponSanitizeShadowNode",n,null),ee(n)||(n.content instanceof u&&t(n.content),re(n));te("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t,r){var i=void 0,a=void 0,s=void 0,c=void 0,f=void 0;if(t||(t="\x3c!--\x3e"),"string"!=typeof t&&!Qt(t)){if("function"!=typeof t.toString)throw O("toString is not a function");if("string"!=typeof(t=t.toString()))throw O("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(Qt(t))return e.toStaticHTML(t.outerHTML)}return t}if(Ct||Wt(r),n.removed=[],"string"==typeof t&&(Lt=!1),Lt);else if(t instanceof S)1===(a=(i=Gt("\x3c!--\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!Nt&&!Tt&&!At&&-1===t.indexOf("<"))return et&&Mt?et.createHTML(t):t;if(!(i=Gt(t)))return Nt?null:nt}i&&Pt&&Kt(i.firstChild);for(var l=Xt(Lt?t:i);s=l.nextNode();)3===s.nodeType&&s===c||ee(s)||(s.content instanceof u&&ie(s.content),re(s),c=s);if(c=null,Lt)return t;if(Nt){if(Rt)for(f=st.call(i.ownerDocument);i.firstChild;)f.appendChild(i.firstChild);else f=i;return zt&&(f=ut.call(o,f,!0)),f}var d=At?i.outerHTML:i.innerHTML;return Tt&&(d=m(d,lt," "),d=m(d,dt," ")),et&&Mt?et.createHTML(d):d},n.setConfig=function(t){Wt(t),Ct=!0},n.clearConfig=function(){Zt=null,Ct=!1},n.isValidAttribute=function(t,e,n){Zt||Wt({});var r=v(t),i=v(e);return ne(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&(ft[t]=ft[t]||[],h(ft[t],e))},n.removeHook=function(t){ft[t]&&p(ft[t])},n.removeHooks=function(t){ft[t]&&(ft[t]=[])},n.removeAllHooks=function(){ft={}},n}()}()},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(10);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Object(r.a)(o(t,n))(e)}}function o(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}},,function(t,e,n){var r=n(334),i=n(335),o=n(336),a=n(337),s=n(338);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(133);function i(t,e){if(t){if("string"==typeof t)return Object(r.a)(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)?Object(r.a)(t,e):void 0}}},,,,,function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(56),i=n(168),o=n(320),a=n(261);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(4),i=n(36),o=n(37),a=n(99),s=n(10),u=n(67);function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c((function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new f(t,n))})}var f=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent))},t}(),l=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new a.a(this,e,n),o=this.destination;o.add(r);var s=Object(i.a)(this,t,void 0,void 0,r);s!==r&&o.add(s)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(60);function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},function(t,e,n){var r=n(208),i=n(213),o=n(452);t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}},,function(t,e,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(t,e,n){var r=n(278),i=n(316),o=n(162);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e,n){"use strict";t.exports=n(569)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(114),o=n(153),a=n(65);function s(t,e,n){void 0===t&&(t=0);var s=-1;return Object(o.a)(e)?s=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=i.a),new r.a((function(e){var r=Object(o.a)(t)?t:+t-n.now();return n.schedule(u,r,{index:0,period:s,subscriber:e})}))}function u(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=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){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(206),i=n(161);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},,,,,function(t,e,n){var r=n(56),i=n(151),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(323),i=n(339),o=n(341),a=n(342),s=n(343);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(93)(n(66),"Map");t.exports=r},,,,,,function(t,e,n){"use strict";var r=n(158),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(t){return r.isMemo(t)?a:s[t.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,f=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&t(e,i,r)}var a=f(n);l&&(a=a.concat(l(n)));for(var s=u(e),b=u(n),v=0;v<a.length;++v){var y=a[v];if(!(o[y]||r&&r[y]||b&&b[y]||s&&s[y])){var m=d(n,y);try{c(e,y,m)}catch(t){}}}}return e}},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(i.a)},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasOwnProperty=Object.prototype.hasOwnProperty},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Object(r.a)(t,e,n[e])}))}return t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i=n(114);var o=n(7),a=n(111);function s(t,e){void 0===e&&(e=i.a);var n,r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new u(r,e))}}var u=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.__extends(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new f(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()},e}(o.a),f=function(){return function(t,e){this.time=t,this.notification=e}}()},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.ResizeReporter=void 0;const a=o(n(0)),s=(n(640),{overflow:"hidden",position:"absolute",zIndex:-1e3,top:0,right:0,width:"100%",height:"100%",opacity:0,pointerEvents:"none"}),u={transition:"0s",animation:"none"},c={transition:"0s",animation:"none",width:"250%",height:"250%"};class f extends a.PureComponent{constructor(){super(...arguments),this.containerRef=a.default.createRef(),this.lastWidth=-1,this.lastHeight=-1,this.resetPosition=(t,e,n)=>{const r=t.firstChild,i=r.nextSibling,o=r.firstChild;o.style.width=e+1e3+"px",o.style.height=n+1e3+"px",this._setScrollPositionTicket=window.setTimeout(()=>{r.scrollLeft=e+1e3,r.scrollTop=n+1e3,i.scrollLeft=2.5*e,i.scrollTop=2.5*n},0)},this.checkSize=()=>{if(this.containerRef.current){const t=this.containerRef.current.parentElement;if(t){const e=t.getBoundingClientRect(),{width:n,height:r}=e;this.props.onSizeChanged&&(n===this.lastWidth&&r===this.lastHeight||this.props.onSizeChanged(n,r,e)),this.props.onWidthChanged&&n!==this.lastWidth&&this.props.onWidthChanged(n,e),this.props.onHeightChanged&&r!==this.lastHeight&&this.props.onHeightChanged(r,e),this.resetPosition(this.containerRef.current,n,r),this.lastWidth=n,this.lastHeight=r}}},this.onScroll=()=>{this._debounceTicket&&(window.clearTimeout(this._debounceTicket),this._debounceTicket=null),this._debounceTicket=window.setTimeout(this.checkSize,this.props.debounce||0)}}componentDidMount(){if(this.containerRef.current){const t=this.containerRef.current.parentElement;if(t)if(this.props.reportInit)this.checkSize();else{const e=t.getBoundingClientRect();this.lastWidth=e.width,this.lastHeight=e.height,this.resetPosition(this.containerRef.current,this.lastWidth,this.lastHeight)}}}componentWillUnmount(){this._debounceTicket&&(window.clearTimeout(this._debounceTicket),this._debounceTicket=null),this._setScrollPositionTicket&&(window.clearTimeout(this._setScrollPositionTicket),this._setScrollPositionTicket=null)}render(){const{reportInit:t,debounce:e,onSizeChanged:n,onWidthChanged:r,onHeightChanged:i,children:o,...f}=this.props;return a.default.createElement("div",Object.assign({"aria-hidden":!0,"aria-label":"react-resize-reporter",tabIndex:-1},f,{ref:this.containerRef}),a.default.createElement("div",{style:s,onScroll:this.onScroll},a.default.createElement("div",{style:u})),a.default.createElement("div",{style:s,onScroll:this.onScroll},a.default.createElement("div",{style:c})),o)}}e.ResizeReporter=f,e.default=f},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(30),i=n(0);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Object(i.useRef)(t);n.current=t;var o=Object(r.d)(),a=Object(i.useRef)(),s=Object(i.useRef)();if(Object(i.useEffect)((function(){s.current=null;var t=n.current[0],e=t.subscribe({next:function(e){if(t===n.current[0])return n.current[1]?n.current[1](e):void 0},error:function(e){if(t===n.current[0]){if(n.current[2])return s.current=null,n.current[2](e);s.current=e,o()}},complete:function(){if(t===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=e,function(){e.unsubscribe()}}),[t[0]]),s.current)throw s.current;return a}},,,,,,,,function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},function(t,e,n){"use strict";var r=n(68),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,e.string2buf=function(t){var e,n,i,o,a,s=t.length,u=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(u),a=0,o=0;a<u;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[a++]=n:n<2048?(e[a++]=192|n>>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},e.buf2string=function(t,e){var n,r,i,o,s=e||t.length,c=new Array(2*s);for(r=0,n=0;n<s;)if((i=t[n++])<128)c[r++]=i;else if((o=a[i])>4)c[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<s;)i=i<<6|63&t[n++],o--;o>1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return u(c,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,n){var r=n(311),i=n(64),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},function(t,e,n){(function(t){var r=n(66),i=n(314),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;t.exports=u}).call(this,n(188)(t))},function(t,e,n){var r=n(69),i=n(115);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(150),i=n(116);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(228);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},,,,,function(t,e,n){var r=n(309),i=n(157);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var r=n(315),i=n(258),o=n(259),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=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,n){var r=n(460),i=n(64);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,"a",(function(){return r}))},function(t,e,n){var r;!function(i,o){"use strict";var a="model",s="name",u="type",c="vendor",f="version",l="mobile",d="tablet",p="smarttv",h=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},b=function(t,e){return"string"==typeof t&&-1!==v(e).indexOf(v(t))},v=function(t){return t.toLowerCase()},y=function(t,e){if("string"==typeof t)return t=t.replace(/^\s\s*/,""),void 0===e?t:t.substring(0,350)},m=function(t,e){for(var n,r,i,o,a,s,u=0;u<e.length&&!a;){var c=e[u],f=e[u+1];for(n=r=0;n<c.length&&!a;)if(a=c[n++].exec(t))for(i=0;i<f.length;i++)s=a[++r],"object"==typeof(o=f[i])&&o.length>0?2===o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3===o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4===o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;u+=2}},g=function(t,e){for(var n in e)if("object"==typeof e[n]&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(b(e[n][r],t))return"?"===n?void 0:n}else if(b(e[n],t))return"?"===n?void 0:n;return t},_={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},w={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,f],[/opios[\/ ]+([\w\.]+)/i],[f,[s,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[f,[s,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[s,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[s,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[f,[s,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[s,"IE"]],[/yabrowser\/([\w\.]+)/i],[f,[s,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],f],[/\bfocus\/([\w\.]+)/i],[f,[s,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[f,[s,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[s,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[s,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[f,[s,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 Browser"]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],f],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[s,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,"Facebook"],f],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[s,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[s,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[s,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[s,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[f,g,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[s,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[s,f],[/(cobalt)\/([\w\.]+)/i],[s,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",v]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",v]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",v]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[c,"Samsung"],[u,d]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[c,"Samsung"],[u,l]],[/\((ip(?:hone|od)[\w ]*);/i],[a,[c,"Apple"],[u,l]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[c,"Apple"],[u,d]],[/(macintosh);/i],[a,[c,"Apple"]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[c,"Huawei"],[u,d]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[c,"Huawei"],[u,l]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[c,"Xiaomi"],[u,l]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[c,"Xiaomi"],[u,d]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[c,"OPPO"],[u,l]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[c,"Vivo"],[u,l]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[c,"Realme"],[u,l]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[c,"Motorola"],[u,l]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[c,"Motorola"],[u,d]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[c,"LG"],[u,d]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[c,"LG"],[u,l]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[c,"Lenovo"],[u,d]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[c,"Nokia"],[u,l]],[/(pixel c)\b/i],[a,[c,"Google"],[u,d]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[c,"Google"],[u,l]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[c,"Sony"],[u,l]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[c,"Sony"],[u,d]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[c,"OnePlus"],[u,l]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[c,"Amazon"],[u,d]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[c,"Amazon"],[u,l]],[/(playbook);[-\w\),; ]+(rim)/i],[a,c,[u,d]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[c,"BlackBerry"],[u,l]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[c,"ASUS"],[u,d]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[c,"ASUS"],[u,l]],[/(nexus 9)/i],[a,[c,"HTC"],[u,d]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[c,[a,/_/g," "],[u,l]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[c,"Acer"],[u,d]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[c,"Meizu"],[u,l]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[c,"Sharp"],[u,l]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[c,a,[u,l]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[c,a,[u,d]],[/(surface duo)/i],[a,[c,"Microsoft"],[u,d]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[c,"Fairphone"],[u,l]],[/(u304aa)/i],[a,[c,"AT&T"],[u,l]],[/\bsie-(\w*)/i],[a,[c,"Siemens"],[u,l]],[/\b(rct\w+) b/i],[a,[c,"RCA"],[u,d]],[/\b(venue[\d ]{2,7}) b/i],[a,[c,"Dell"],[u,d]],[/\b(q(?:mv|ta)\w+) b/i],[a,[c,"Verizon"],[u,d]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[c,"Barnes & Noble"],[u,d]],[/\b(tm\d{3}\w+) b/i],[a,[c,"NuVision"],[u,d]],[/\b(k88) b/i],[a,[c,"ZTE"],[u,d]],[/\b(nx\d{3}j) b/i],[a,[c,"ZTE"],[u,l]],[/\b(gen\d{3}) b.+49h/i],[a,[c,"Swiss"],[u,l]],[/\b(zur\d{3}) b/i],[a,[c,"Swiss"],[u,d]],[/\b((zeki)?tb.*\b) b/i],[a,[c,"Zeki"],[u,d]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[c,"Dragon Touch"],a,[u,d]],[/\b(ns-?\w{0,9}) b/i],[a,[c,"Insignia"],[u,d]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[c,"NextBook"],[u,d]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[c,"Voice"],a,[u,l]],[/\b(lvtel\-)?(v1[12]) b/i],[[c,"LvTel"],a,[u,l]],[/\b(ph-1) /i],[a,[c,"Essential"],[u,l]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[c,"Envizen"],[u,d]],[/\b(trio[-\w\. ]+) b/i],[a,[c,"MachSpeed"],[u,d]],[/\btu_(1491) b/i],[a,[c,"Rotor"],[u,d]],[/(shield[\w ]+) b/i],[a,[c,"Nvidia"],[u,d]],[/(sprint) (\w+)/i],[c,a,[u,l]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[c,"Microsoft"],[u,l]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[c,"Zebra"],[u,d]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[c,"Zebra"],[u,l]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[c,a,[u,"console"]],[/droid.+; (shield) bui/i],[a,[c,"Nvidia"],[u,"console"]],[/(playstation [345portablevi]+)/i],[a,[c,"Sony"],[u,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[c,"Microsoft"],[u,"console"]],[/smart-tv.+(samsung)/i],[c,[u,p]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[c,"Samsung"],[u,p]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[c,"LG"],[u,p]],[/(apple) ?tv/i],[c,[a,"Apple TV"],[u,p]],[/crkey/i],[[a,"Chromecast"],[c,"Google"],[u,p]],[/droid.+aft(\w)( bui|\))/i],[a,[c,"Amazon"],[u,p]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[c,"Sharp"],[u,p]],[/(bravia[\w ]+)( bui|\))/i],[a,[c,"Sony"],[u,p]],[/(mitv-\w{5}) bui/i],[a,[c,"Xiaomi"],[u,p]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[c,y],[a,y],[u,p]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,p]],[/((pebble))app/i],[c,a,[u,"wearable"]],[/droid.+; (glass) \d/i],[a,[c,"Google"],[u,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[a,[c,"Zebra"],[u,"wearable"]],[/(quest( 2)?)/i],[a,[c,"Facebook"],[u,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[c,[u,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[u,l]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[u,d]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,d]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,l]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[c,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[s,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[s,[f,g,_]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,"Windows"],[f,g,_]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,"Mac OS"],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,f],[/\(bb(10);/i],[f,[s,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[s,"webOS"]],[/crkey\/([\d\.]+)/i],[f,[s,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[s,"Chromium OS"],f],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,f],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[s,f]]},x=function(t,e){if("object"==typeof t&&(e=t,t=void 0),!(this instanceof x))return new x(t,e).getResult();var n=t||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=e?function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n}(w,e):w;return this.getBrowser=function(){var t,e={};return e[s]=void 0,e[f]=void 0,m.call(e,n,r.browser),e.major="string"==typeof(t=e.version)?t.replace(/[^\d\.]/g,"").split(".")[0]:void 0,e},this.getCPU=function(){var t={architecture:void 0};return m.call(t,n,r.cpu),t},this.getDevice=function(){var t={vendor:void 0,model:void 0,type:void 0};return m.call(t,n,r.device),t},this.getEngine=function(){var t={name:void 0,version:void 0};return m.call(t,n,r.engine),t},this.getOS=function(){var t={name:void 0,version:void 0};return m.call(t,n,r.os),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(t){return n="string"==typeof t&&t.length>350?y(t,350):t,this},this.setUA(n),this};x.VERSION="0.7.33",x.BROWSER=h([s,f,"major"]),x.CPU=h(["architecture"]),x.DEVICE=h([a,c,u,"console",l,p,d,"wearable","embedded"]),x.ENGINE=x.OS=h([s,f]),void 0!==e?(void 0!==t&&t.exports&&(e=t.exports=x),e.UAParser=x):n(348)?void 0===(r=function(){return x}.call(e,n,e,t))||(t.exports=r):void 0!==i&&(i.UAParser=x);var O=void 0!==i&&(i.jQuery||i.Zepto);if(O&&!O.ua){var S=new x;O.ua=S.getResult(),O.ua.get=function(){return S.getUA()},O.ua.set=function(t){S.setUA(t);var e=S.getResult();for(var n in e)O.ua[n]=e[n]}}}("object"==typeof window?window:this)},function(t,e,n){var r=n(498),i=n(499);t.exports=function(t,e,n){var o=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[o+s]=a[s];return e||i(a)}},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(21),a=n(26),s=n.n(a),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t,e){return t(e={exports:{}},e.exports),e.exports}var f=c((function(t){function e(){return t.exports=e=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},e.apply(this,arguments)}t.exports=e})),l=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(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)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()},d=function(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++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},p=c((function(t){!function(e){var n=function(t,e,r){if(!u(e)||f(e)||l(e)||d(e)||s(e))return e;var i,o=0,a=0;if(c(e))for(i=[],a=e.length;o<a;o++)i.push(n(t,e[o],r));else for(var p in i={},e)Object.prototype.hasOwnProperty.call(e,p)&&(i[t(p,r)]=n(t,e[p],r));return i},r=function(t){return p(t)?t:(t=t.replace(/[\-_\s]+(.)?/g,(function(t,e){return e?e.toUpperCase():""}))).substr(0,1).toLowerCase()+t.substr(1)},i=function(t){var e=r(t);return e.substr(0,1).toUpperCase()+e.substr(1)},o=function(t,e){return function(t,e){var n=(e=e||{}).separator||"_",r=e.split||/(?=[A-Z])/;return t.split(r).join(n)}(t,e).toLowerCase()},a=Object.prototype.toString,s=function(t){return"function"==typeof t},u=function(t){return t===Object(t)},c=function(t){return"[object Array]"==a.call(t)},f=function(t){return"[object Date]"==a.call(t)},l=function(t){return"[object RegExp]"==a.call(t)},d=function(t){return"[object Boolean]"==a.call(t)},p=function(t){return(t-=0)==t},h=function(t,e){var n=e&&"process"in e?e.process:e;return"function"!=typeof n?t:function(e,r){return n(e,t,r)}},b={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(t,e){return n(h(r,e),t)},decamelizeKeys:function(t,e){return n(h(o,e),t,e)},pascalizeKeys:function(t,e){return n(h(i,e),t)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=b:e.humps=b}(u)})).decamelize;function h(t){var e=t.root,n=t.children;return Object(o.createPortal)(n,e)}h.propTypes={root:s.a.object.isRequired,children:s.a.node.isRequired};var b=new Map;var v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Proxy(t,{get:function(t,e){var n,o,a=p(e,{separator:"-"});return b.has(a)||b.set(a,(n={tag:a},(o=Object(r.forwardRef)((function(t,e){var o=t.mode,a=t.delegatesFocus,s=t.styleSheets,u=t.children,c=d(t,["mode","delegatesFocus","styleSheets","children"]),p=Object(r.useState)(null),b=l(p,2),v=b[0],y=b[1],m=Object(r.useState)(null),g=l(m,2),_=g[0],w=g[1];return Object(r.useEffect)((function(){if(v){var t=v.attachShadow({mode:o,delegatesFocus:a});s.length>0&&(t.adoptedStyleSheets=s),e&&"function"==typeof e&&e(v),e&&"current"in e&&(e.current=v),w(t)}}),[v]),i.a.createElement(n.tag,f({ref:y},c),_&&i.a.createElement(h,{root:_},u))}))).propTypes={mode:s.a.oneOf(["open","closed"]),delegatesFocus:s.a.bool,styleSheets:s.a.arrayOf(s.a.string),children:s.a.node.isRequired},o.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[]},o)),b.get(a)}})}();e.a=v},,,function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,u;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(93),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(143),i=n(455),o=n(456),a=n(457),s=n(458),u=n(459);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},function(t,e,n){"use strict";var r=n(50);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createActionCreator=function(t){return(...e)=>{switch(e.length){case 0:return{type:t};case 1:return{type:t,payload:e[0]};default:return{type:t,payload:e[0],meta:e[1]}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(184);e.createDefaultActionCreators=function(t,e,n){const i={};if(n)for(const t in n)r.hasOwnProperty.call(n,t)&&(i[t]=n[t]);for(const o in e)r.hasOwnProperty.call(e,o)&&(n&&r.hasOwnProperty.call(i,o)||(i[o]=t(o)));return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createActionCreator=function(t){return(...e)=>{switch(e.length){case 0:return{type:t};case 1:return{type:t,payload:e[0]};case 2:return{type:t,payload:e[0],error:e[1]};default:return{type:t,payload:e[0],error:e[1],meta:e[2]}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineObjects=function(...t){return Object.assign({},...t)}},,,,function(t,e,n){"use strict";(function(t){var r,i=n(351);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:t;var o=Object(i.a)(r);e.a=o}).call(this,n(570)(t))},,,,function(t,e,n){var r=n(461),i=n(464),o=n(465);t.exports=function(t,e,n,a,s,u){var c=1&n,f=t.length,l=e.length;if(f!=l&&!(c&&l>f))return!1;var d=u.get(t),p=u.get(e);if(d&&p)return d==e&&p==t;var h=-1,b=!0,v=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++h<f;){var y=t[h],m=e[h];if(a)var g=c?a(m,y,h,e,t,u):a(y,m,h,t,e,u);if(void 0!==g){if(g)continue;b=!1;break}if(v){if(!i(e,(function(t,e){if(!o(v,e)&&(y===t||s(y,t,n,a,u)))return v.push(e)}))){b=!1;break}}else if(y!==m&&!s(y,m,n,a,u)){b=!1;break}}return u.delete(t),u.delete(e),b}},function(t,e,n){var r=n(115);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";var r=n(50),i=n(487),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(248)),s),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(o)})),t.exports=u},function(t,e,n){"use strict";var r=n(50),i=n(488),o=n(490),a=n(230),s=n(400),u=n(493),c=n(494),f=n(249);t.exports=function(t){return new Promise((function(e,n){var l=t.data,d=t.headers;r.isFormData(l)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",b=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(h+":"+b)}var v=s(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),a(v,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?u(p.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:t,request:p};i(e,n,o),p=null}},p.onabort=function(){p&&(n(f("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(f("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(f(e,t,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=(t.withCredentials||c(v))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;y&&(d[t.xsrfHeaderName]=y)}if("setRequestHeader"in p&&r.forEach(d,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete d[e]:p.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),l||(l=null),p.send(l)}))}},function(t,e,n){"use strict";var r=n(489);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},function(t,e,n){"use strict";var r=n(50);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function c(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=u(void 0,e[t]))})),r.forEach(o,c),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=u(t[r],e[r]):r in t&&(n[r]=u(void 0,t[r]))}));var f=i.concat(o).concat(a).concat(s),l=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return r.forEach(l,c),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8);var i=n(0),o=n(190),a=n(30);function s(t,e){var n,s,u,c=Object(i.useState)(e),f=c[0],l=c[1];if((u=t)&&(u instanceof r.a||"function"==typeof u.lift&&"function"==typeof u.subscribe))s=t;else{var d=t,p=Object(a.e)(a.a);s=Object(a.e)((function(){return d(p.current,f)})).current,n=Object(i.useRef)((function(t){return p.current.next(t)})).current}return Object(o.a)(s,l),Object(i.useDebugValue)(f),n?[f,n]:f}},,function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(204),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n(188)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(344);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(208),i=n(163),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e){t.exports=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){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},,,,,,function(t,e,n){var r=n(571)(n(576));t.exports=r},,function(t,e,n){"use strict";function r(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(n,r,t):e(i)}}}}var i=r();i.withExtraArgument=r,e.a=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(581);e.createActionCreator=r.createActionCreator,e.createActionCreators=r.createActionCreators,e.proxyActionCreators=r.proxyActionCreators;var i=n(584);e.createFSACreator=i.createActionCreator,e.createFSACreators=i.createActionCreators,e.proxyFSACreators=i.proxyActionCreators;var o=n(234);e.combineObjects=o.combineObjects;var a=n(587);e.combineUniqueObjects=a.combineUniqueObjects;var s=n(350);e.proxyCombineObjects=s.proxyCombineObjects;var u=n(588);e.proxyCombineUniqueObjects=u.proxyCombineUniqueObjects;var c=n(589);e.createReducer=c.createReducer},,,,function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(227),i=n(203),o=n(56),a=n(205),s=n(160),u=n(214),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),f=!n&&i(t),l=!n&&!f&&a(t),d=!n&&!f&&!l&&u(t),p=n||f||l||d,h=p?r(t.length,String):[],b=h.length;for(var v in t)!e&&!c.call(t,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,b))||h.push(v);return h}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(470),i=n(170),o=n(471),a=n(472),s=n(473),u=n(69),c=n(215),f=c(r),l=c(i),d=c(o),p=c(a),h=c(s),b=u;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=b(new i)||o&&"[object Promise]"!=b(o.resolve())||a&&"[object Set]"!=b(new a)||s&&"[object WeakMap]"!=b(new s))&&(b=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case f:return"[object DataView]";case l:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return e}),t.exports=b},,,,,,,,,,,,,function(t,e,n){"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,u=a(t),c=1;c<arguments.length;c++){for(var f in n=Object(arguments[c]))i.call(n,f)&&(u[f]=n[f]);if(r){s=r(n);for(var l=0;l<s.length;l++)o.call(n,s[l])&&(u[s[l]]=n[s[l]])}}return u}},,,,,,,function(t,e,n){"use strict";var r=n(301),i=n(68),o=n(200),a=n(156),s=n(201),u=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=r.deflateSetDictionary(this.strm,f)))throw new Error(a[n]);this._dict_set=!0}}function f(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}c.prototype.push=function(t,e){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=c,e.deflate=f,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},function(t,e,n){"use strict";var r,i=n(68),o=n(302),a=n(198),s=n(199),u=n(156);function c(t,e){return t.msg=u[e],e}function f(t){return(t<<1)-(t>4?9:0)}function l(t){for(var e=t.length;--e>=0;)t[e]=0}function d(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function p(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,d(t.strm)}function h(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function v(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,f=t.w_mask,l=t.prev,d=t.strstart+258,p=c[o+a-1],h=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===h&&c[n+a-1]===p&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<d);if(r=258-(d-o),o=d-258,r>a){if(t.match_start=e,a=r,r>=s)break;p=c[o+a-1],h=c[o+a]}}}while((e=l[e&f])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function y(t){var e,n,r,o,u,c,f,l,d,p,h=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-262)){i.arraySet(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=h?r-h:0}while(--n);e=n=h;do{r=t.prev[--e],t.prev[e]=r>=h?r-h:0}while(--n);o+=h}if(0===t.strm.avail_in)break;if(c=t.strm,f=t.window,l=t.strstart+t.lookahead,d=o,p=void 0,(p=c.avail_in)>d&&(p=d),n=0===p?0:(c.avail_in-=p,i.arraySet(f,c.input,c.next_in,p,l),1===c.state.wrap?c.adler=a(c.adler,f,p,l):2===c.state.wrap&&(c.adler=s(c.adler,f,p,l)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=n,t.lookahead+t.insert>=3)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+3-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function m(t,e){for(var n,r;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=v(t,n)),t.match_length>=3)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}function g(t,e){for(var n,r,i;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=v(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(p(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=o._tr_tally(t,0,t.window[t.strstart-1]))&&p(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}function _(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function w(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),l(this.dyn_ltree),l(this.dyn_dtree),l(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),l(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),l(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):c(t,-2)}function O(t){var e,n=x(t);return 0===n&&((e=t.state).window_size=2*e.w_size,l(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function S(t,e,n,r,o,a){if(!t)return-2;var s=1;if(-1===e&&(e=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||e<0||e>9||a<0||a>4)return c(t,-2);8===r&&(r=9);var u=new w;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=n,O(t)}r=[new _(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,p(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(p(t,!1),t.strm.avail_out),1)})),new _(4,4,8,4,m),new _(4,5,16,8,m),new _(4,6,32,32,m),new _(4,4,16,16,g),new _(8,16,32,32,g),new _(8,16,128,128,g),new _(8,32,128,256,g),new _(32,128,258,1024,g),new _(32,258,258,4096,g)],e.deflateInit=function(t,e){return S(t,e,8,15,8,0)},e.deflateInit2=S,e.deflateReset=O,e.deflateResetKeep=x,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var n,i,a,u;if(!t||!t.state||e>5||e<0)return t?c(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return c(t,0===t.avail_out?-5:-2);if(i.strm=t,n=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,h(i,31),h(i,139),h(i,8),i.gzhead?(h(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),h(i,255&i.gzhead.time),h(i,i.gzhead.time>>8&255),h(i,i.gzhead.time>>16&255),h(i,i.gzhead.time>>24&255),h(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),h(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(h(i,255&i.gzhead.extra.length),h(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(h(i,0),h(i,0),h(i,0),h(i,0),h(i,0),h(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),h(i,3),i.status=113);else{var v=8+(i.w_bits-8<<4)<<8;v|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(v|=32),v+=31-v%31,i.status=113,b(i,v),0!==i.strstart&&(b(i,t.adler>>>16),b(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending!==i.pending_buf_size));)h(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,h(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,h(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&d(t),i.pending+2<=i.pending_buf_size&&(h(i,255&t.adler),h(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(d(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(n)&&4!==e)return c(t,-5);if(666===i.status&&0!==t.avail_in)return c(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var m=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=258){if(y(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+258;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(i,e):r[i.level].func(i,e);if(3!==m&&4!==m||(i.status=666),1===m||3===m)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===m&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(l(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),d(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(h(i,255&t.adler),h(i,t.adler>>8&255),h(i,t.adler>>16&255),h(i,t.adler>>24&255),h(i,255&t.total_in),h(i,t.total_in>>8&255),h(i,t.total_in>>16&255),h(i,t.total_in>>24&255)):(b(i,t.adler>>>16),b(i,65535&t.adler)),d(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?c(t,-2):(t.state=null,113===e?c(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var n,r,o,s,u,c,f,d,p=e.length;if(!t||!t.state)return-2;if(2===(s=(n=t.state).wrap)||1===s&&42!==n.status||n.lookahead)return-2;for(1===s&&(t.adler=a(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(l(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,e,p-n.w_size,n.w_size,0),e=d,p=n.w_size),u=t.avail_in,c=t.next_in,f=t.input,t.avail_in=p,t.next_in=0,t.input=e,y(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=2,y(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=c,t.input=f,t.avail_in=u,n.wrap=s,0},e.deflateInfo="pako deflate (from Nodeca project)"},function(t,e,n){"use strict";var r=n(68);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var f=new Array(60);i(f);var l=new Array(512);i(l);var d=new Array(256);i(d);var p=new Array(29);i(p);var h,b,v,y=new Array(30);function m(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function _(t){return t<256?l[t]:l[256+(t>>>7)]}function w(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function O(t,e,n){x(t,n[2*e],n[2*e+1])}function S(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function j(t,e,n){var r,i,o=new Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=S(o[s]++,s))}}function k(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function E(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function T(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function A(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&T(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!T(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function C(t,e,n){var r,i,s,u,c=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*c]<<8|t.pending_buf[t.d_buf+2*c+1],i=t.pending_buf[t.l_buf+c],c++,0===r?O(t,i,e):(O(t,(s=d[i])+256+1,e),0!==(u=o[s])&&x(t,i-=p[s],u),O(t,s=_(--r),n),0!==(u=a[s])&&x(t,r-=y[s],u))}while(c<t.last_lit);O(t,256,e)}function P(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)A(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,A(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,h=e.stat_desc.max_length,b=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>h&&(o=h,b++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=p&&(a=d[r-p]),s=u[2*r],t.opt_len+=s*(o+a),l&&(t.static_len+=s*(f[2*r+1]+a)));if(0!==b){do{for(o=h-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[h]--,b-=2}while(b>0);for(o=h;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),j(o,c,t.bl_count)}function N(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function R(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{O(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(O(t,i,t.bl_tree),s--),O(t,16,t.bl_tree),x(t,s-3,2)):s<=10?(O(t,17,t.bl_tree),x(t,s-3,3)):(O(t,18,t.bl_tree),x(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}i(y);var z=!1;function M(t,e,n,i){x(t,0+(i?1:0),3),function(t,e,n,i){E(t),i&&(w(t,n),w(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}e._tr_init=function(t){z||(!function(){var t,e,n,r,i,u=new Array(16);for(n=0,r=0;r<28;r++)for(p[r]=n,t=0;t<1<<o[r];t++)d[n++]=r;for(d[n-1]=r,i=0,r=0;r<16;r++)for(y[r]=i,t=0;t<1<<a[r];t++)l[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,t=0;t<1<<a[r]-7;t++)l[256+i++]=r;for(e=0;e<=15;e++)u[e]=0;for(t=0;t<=143;)c[2*t+1]=8,t++,u[8]++;for(;t<=255;)c[2*t+1]=9,t++,u[9]++;for(;t<=279;)c[2*t+1]=7,t++,u[7]++;for(;t<=287;)c[2*t+1]=8,t++,u[8]++;for(j(c,287,u),t=0;t<30;t++)f[2*t+1]=5,f[2*t]=S(t,5);h=new m(c,o,257,286,15),b=new m(f,a,0,30,15),v=new m(new Array(0),s,0,19,7)}(),z=!0),t.l_desc=new g(t.dyn_ltree,h),t.d_desc=new g(t.dyn_dtree,b),t.bl_desc=new g(t.bl_tree,v),t.bi_buf=0,t.bi_valid=0,k(t)},e._tr_stored_block=M,e._tr_flush_block=function(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),P(t,t.l_desc),P(t,t.d_desc),a=function(t){var e;for(N(t,t.dyn_ltree,t.l_desc.max_code),N(t,t.dyn_dtree,t.d_desc.max_code),P(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?M(t,e,n,r):4===t.strategy||o===i?(x(t,2+(r?1:0),3),C(t,c,f)):(x(t,4+(r?1:0),3),function(t,e,n,r){var i;for(x(t,e-257,5),x(t,n-1,5),x(t,r-4,4),i=0;i<r;i++)x(t,t.bl_tree[2*u[i]+1],3);R(t,t.dyn_ltree,e-1),R(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),C(t,t.dyn_ltree,t.dyn_dtree)),k(t),r&&E(t)},e._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(d[n]+256+1)]++,t.dyn_dtree[2*_(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),O(t,256,c),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){"use strict";var r=n(304),i=n(68),o=n(200),a=n(202),s=n(156),u=n(201),c=n(307),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[n])}function d(t,e){var n=new l(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}l.prototype.push=function(t,e){var n,s,u,c,l,d=this.strm,p=this.options.chunkSize,h=this.options.dictionary,b=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?d.input=o.binstring2buf(t):"[object ArrayBuffer]"===f.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(p),d.next_out=0,d.avail_out=p),(n=r.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&h&&(n=r.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===b&&(n=a.Z_OK,b=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&n!==a.Z_STREAM_END&&(0!==d.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=o.utf8border(d.output,d.next_out),c=d.next_out-u,l=o.buf2string(d.output,u),d.next_out=c,d.avail_out=p-c,c&&i.arraySet(d.output,d.output,u,c,0),this.onData(l)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(b=!0)}while((d.avail_in>0||0===d.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),d.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=d,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.ungzip=d},function(t,e,n){"use strict";var r=n(68),i=n(198),o=n(199),a=n(305),s=n(306);function u(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(852),e.distcode=e.distdyn=new r.Buf32(592),e.sane=1,e.back=-1,0):-2}function l(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):-2}function d(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,l(t))):-2}function p(t,e){var n,r;return t?(r=new c,t.state=r,r.window=null,0!==(n=d(t,e))&&(t.state=null),n):-2}var h,b,v=!0;function y(t){if(v){var e;for(h=new r.Buf32(512),b=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,h,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,b,0,t.work,{bits:5}),v=!1}t.lencode=h,t.lenbits=9,t.distcode=b,t.distbits=5}function m(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=l,e.inflateReset2=d,e.inflateResetKeep=f,e.inflateInit=function(t){return p(t,15)},e.inflateInit2=p,e.inflate=function(t,e){var n,c,f,l,d,p,h,b,v,g,_,w,x,O,S,j,k,E,T,A,C,P,N,R,z=0,M=new r.Buf8(4),D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(n=t.state).mode&&(n.mode=13),d=t.next_out,f=t.output,h=t.avail_out,l=t.next_in,c=t.input,p=t.avail_in,b=n.hold,v=n.bits,g=p,_=h,P=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(2&n.wrap&&35615===b){n.check=0,M[0]=255&b,M[1]=b>>>8&255,n.check=o(n.check,M,2,0),b=0,v=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",n.mode=30;break}if(v-=4,C=8+(15&(b>>>=4)),0===n.wbits)n.wbits=C;else if(C>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<C,t.adler=n.check=1,n.mode=512&b?10:12,b=0,v=0;break;case 2:for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(n.flags=b,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(M[0]=255&b,M[1]=b>>>8&255,n.check=o(n.check,M,2,0)),b=0,v=0,n.mode=3;case 3:for(;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.head&&(n.head.time=b),512&n.flags&&(M[0]=255&b,M[1]=b>>>8&255,M[2]=b>>>16&255,M[3]=b>>>24&255,n.check=o(n.check,M,4,0)),b=0,v=0,n.mode=4;case 4:for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(M[0]=255&b,M[1]=b>>>8&255,n.check=o(n.check,M,2,0)),b=0,v=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(M[0]=255&b,M[1]=b>>>8&255,n.check=o(n.check,M,2,0)),b=0,v=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((w=n.length)>p&&(w=p),w&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,l,w,C)),512&n.flags&&(n.check=o(n.check,c,w,l)),p-=w,l+=w,n.length-=w),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break t;w=0;do{C=c[l+w++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C))}while(C&&w<p);if(512&n.flags&&(n.check=o(n.check,c,w,l)),p-=w,l+=w,C)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break t;w=0;do{C=c[l+w++],n.head&&C&&n.length<65536&&(n.head.comment+=String.fromCharCode(C))}while(C&&w<p);if(512&n.flags&&(n.check=o(n.check,c,w,l)),p-=w,l+=w,C)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(b!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}b=0,v=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}t.adler=n.check=u(b),b=0,v=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=d,t.avail_out=h,t.next_in=l,t.avail_in=p,n.hold=b,n.bits=v,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){b>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}switch(n.last=1&b,v-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6===e){b>>>=2,v-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,b=0,v=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(w=n.length){if(w>p&&(w=p),w>h&&(w=h),0===w)break t;r.arraySet(f,c,l,w,d),p-=w,l+=w,h-=w,d+=w,n.length-=w;break}n.mode=12;break;case 17:for(;v<14;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(n.nlen=257+(31&b),b>>>=5,v-=5,n.ndist=1+(31&b),b>>>=5,v-=5,n.ncode=4+(15&b),b>>>=4,v-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.lens[D[n.have++]]=7&b,b>>>=3,v-=3}for(;n.have<19;)n.lens[D[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},P=s(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,P){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;j=(z=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,k=65535&z,!((S=z>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(k<16)b>>>=S,v-=S,n.lens[n.have++]=k;else{if(16===k){for(R=S+2;v<R;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(b>>>=S,v-=S,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}C=n.lens[n.have-1],w=3+(3&b),b>>>=2,v-=2}else if(17===k){for(R=S+3;v<R;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}v-=S,C=0,w=3+(7&(b>>>=S)),b>>>=3,v-=3}else{for(R=S+7;v<R;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}v-=S,C=0,w=11+(127&(b>>>=S)),b>>>=7,v-=7}if(n.have+w>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;w--;)n.lens[n.have++]=C}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,N={bits:n.lenbits},P=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,P){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},P=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,P){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(p>=6&&h>=258){t.next_out=d,t.avail_out=h,t.next_in=l,t.avail_in=p,n.hold=b,n.bits=v,a(t,_),d=t.next_out,f=t.output,h=t.avail_out,l=t.next_in,c=t.input,p=t.avail_in,b=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;j=(z=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,k=65535&z,!((S=z>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(j&&0==(240&j)){for(E=S,T=j,A=k;j=(z=n.lencode[A+((b&(1<<E+T)-1)>>E)])>>>16&255,k=65535&z,!(E+(S=z>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}b>>>=E,v-=E,n.back+=E}if(b>>>=S,v-=S,n.back+=S,n.length=k,0===j){n.mode=26;break}if(32&j){n.back=-1,n.mode=12;break}if(64&j){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&j,n.mode=22;case 22:if(n.extra){for(R=n.extra;v<R;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;j=(z=n.distcode[b&(1<<n.distbits)-1])>>>16&255,k=65535&z,!((S=z>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(0==(240&j)){for(E=S,T=j,A=k;j=(z=n.distcode[A+((b&(1<<E+T)-1)>>E)])>>>16&255,k=65535&z,!(E+(S=z>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}b>>>=E,v-=E,n.back+=E}if(b>>>=S,v-=S,n.back+=S,64&j){t.msg="invalid distance code",n.mode=30;break}n.offset=k,n.extra=15&j,n.mode=24;case 24:if(n.extra){for(R=n.extra;v<R;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===h)break t;if(w=_-h,n.offset>w){if((w=n.offset-w)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}w>n.wnext?(w-=n.wnext,x=n.wsize-w):x=n.wnext-w,w>n.length&&(w=n.length),O=n.window}else O=f,x=d-n.offset,w=n.length;w>h&&(w=h),h-=w,n.length-=w;do{f[d++]=O[x++]}while(--w);0===n.length&&(n.mode=21);break;case 26:if(0===h)break t;f[d++]=n.length,h--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===p)break t;p--,b|=c[l++]<<v,v+=8}if(_-=h,t.total_out+=_,n.total+=_,_&&(t.adler=n.check=n.flags?o(n.check,f,_,d-_):i(n.check,f,_,d-_)),_=h,(n.flags?b:u(b))!==n.check){t.msg="incorrect data check",n.mode=30;break}b=0,v=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(b!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}b=0,v=0}n.mode=29;case 29:P=1;break t;case 30:P=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=d,t.avail_out=h,t.next_in=l,t.avail_in=p,n.hold=b,n.bits=v,(n.wsize||_!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&m(t,t.output,t.next_out,_-t.avail_out)?(n.mode=31,-4):(g-=t.avail_in,_-=t.avail_out,t.total_in+=g,t.total_out+=_,n.total+=_,n.wrap&&_&&(t.adler=n.check=n.flags?o(n.check,f,_,t.next_out-_):i(n.check,f,_,t.next_out-_)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===g&&0===_||4===e)&&0===P&&(P=-5),P)},e.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?-2:(n.head=e,e.done=!1,0):-2},e.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?-2:11===n.mode&&i(1,e,r,0)!==n.check?-3:m(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},e.inflateInfo="pako inflate (from Nodeca project)"},function(t,e,n){"use strict";t.exports=function(t,e){var n,r,i,o,a,s,u,c,f,l,d,p,h,b,v,y,m,g,_,w,x,O,S,j,k;n=t.state,r=t.next_in,j=t.input,i=r+(t.avail_in-5),o=t.next_out,k=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,c=n.wsize,f=n.whave,l=n.wnext,d=n.window,p=n.hold,h=n.bits,b=n.lencode,v=n.distcode,y=(1<<n.lenbits)-1,m=(1<<n.distbits)-1;t:do{h<15&&(p+=j[r++]<<h,h+=8,p+=j[r++]<<h,h+=8),g=b[p&y];e:for(;;){if(p>>>=_=g>>>24,h-=_,0===(_=g>>>16&255))k[o++]=65535&g;else{if(!(16&_)){if(0==(64&_)){g=b[(65535&g)+(p&(1<<_)-1)];continue e}if(32&_){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&g,(_&=15)&&(h<_&&(p+=j[r++]<<h,h+=8),w+=p&(1<<_)-1,p>>>=_,h-=_),h<15&&(p+=j[r++]<<h,h+=8,p+=j[r++]<<h,h+=8),g=v[p&m];n:for(;;){if(p>>>=_=g>>>24,h-=_,!(16&(_=g>>>16&255))){if(0==(64&_)){g=v[(65535&g)+(p&(1<<_)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&g,h<(_&=15)&&(p+=j[r++]<<h,(h+=8)<_&&(p+=j[r++]<<h,h+=8)),(x+=p&(1<<_)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=_,h-=_,x>(_=o-a)){if((_=x-_)>f&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(O=0,S=d,0===l){if(O+=c-_,_<w){w-=_;do{k[o++]=d[O++]}while(--_);O=o-x,S=k}}else if(l<_){if(O+=c+l-_,(_-=l)<w){w-=_;do{k[o++]=d[O++]}while(--_);if(O=0,l<w){w-=_=l;do{k[o++]=d[O++]}while(--_);O=o-x,S=k}}}else if(O+=l-_,_<w){w-=_;do{k[o++]=d[O++]}while(--_);O=o-x,S=k}for(;w>2;)k[o++]=S[O++],k[o++]=S[O++],k[o++]=S[O++],w-=3;w&&(k[o++]=S[O++],w>1&&(k[o++]=S[O++]))}else{O=o-x;do{k[o++]=k[O++],k[o++]=k[O++],k[o++]=k[O++],w-=3}while(w>2);w&&(k[o++]=k[O++],w>1&&(k[o++]=k[O++]))}break}}break}}while(r<i&&o<s);r-=w=h>>3,p&=(1<<(h-=w<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=h}},function(t,e,n){"use strict";var r=n(68),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,n,u,c,f,l,d){var p,h,b,v,y,m,g,_,w,x=d.bits,O=0,S=0,j=0,k=0,E=0,T=0,A=0,C=0,P=0,N=0,R=null,z=0,M=new r.Buf16(16),D=new r.Buf16(16),I=null,L=0;for(O=0;O<=15;O++)M[O]=0;for(S=0;S<u;S++)M[e[n+S]]++;for(E=x,k=15;k>=1&&0===M[k];k--);if(E>k&&(E=k),0===k)return c[f++]=20971520,c[f++]=20971520,d.bits=1,0;for(j=1;j<k&&0===M[j];j++);for(E<j&&(E=j),C=1,O=1;O<=15;O++)if(C<<=1,(C-=M[O])<0)return-1;if(C>0&&(0===t||1!==k))return-1;for(D[1]=0,O=1;O<15;O++)D[O+1]=D[O]+M[O];for(S=0;S<u;S++)0!==e[n+S]&&(l[D[e[n+S]]++]=S);if(0===t?(R=I=l,m=19):1===t?(R=i,z-=257,I=o,L-=257,m=256):(R=a,I=s,m=-1),N=0,S=0,O=j,y=f,T=E,A=0,b=-1,v=(P=1<<E)-1,1===t&&P>852||2===t&&P>592)return 1;for(;;){g=O-A,l[S]<m?(_=0,w=l[S]):l[S]>m?(_=I[L+l[S]],w=R[z+l[S]]):(_=96,w=0),p=1<<O-A,j=h=1<<T;do{c[y+(N>>A)+(h-=p)]=g<<24|_<<16|w|0}while(0!==h);for(p=1<<O-1;N&p;)p>>=1;if(0!==p?(N&=p-1,N+=p):N=0,S++,0==--M[O]){if(O===k)break;O=e[n+l[S]]}if(O>E&&(N&v)!==b){for(0===A&&(A=E),y+=j,C=1<<(T=O-A);T+A<k&&!((C-=M[T+A])<=0);)T++,C<<=1;if(P+=1<<T,1===t&&P>852||2===t&&P>592)return 1;c[b=N&v]=E<<24|T<<16|y-f|0}}return 0!==N&&(c[y+N]=O-A<<24|64<<16|0),d.bits=E,0}},function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e,n){var r=n(213),i=n(318)(r);t.exports=i},function(t,e,n){var r=n(310)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}},function(t,e,n){var r=n(69),i=n(64);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(123),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=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}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(69),i=n(161),o=n(64),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,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(260),i=n(317),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(279)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(162);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(t,e,n){var r=n(149);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(321),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},function(t,e,n){var r=n(322);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=n(169);function i(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(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(324),i=n(143),o=n(170);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(325),i=n(330),o=n(331),a=n(332),s=n(333);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(126);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e,n){var r=n(206),i=n(327),o=n(115),a=n(215),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,f=u.toString,l=c.hasOwnProperty,d=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?d:s).test(a(t))}},function(t,e,n){var r,i=n(328),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(66)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(126),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(126),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(126);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(127),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(127);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(127);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(127);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(128);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(128);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(128);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(128);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(123),i=n(216),o=n(56),a=n(151),s=r?r.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(262),i=n(150),o=n(160),a=n(115),s=n(116);t.exports=function(t,e,n,u){if(!a(t))return t;for(var c=-1,f=(e=i(e,t)).length,l=f-1,d=t;null!=d&&++c<f;){var p=s(e[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(c!=l){var b=d[p];void 0===(h=u?u(b,p,d):void 0)&&(h=a(b)?b:o(e[c+1])?[]:{})}r(d,p,h),d=d[p]}return t}},function(t,e){t.exports=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(263),i=n(368),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(184),i=n(232);e.proxyDefaultActionCreators=function(t,e,n){let o;const a={get:(i,o)=>r.hasOwnProperty.call(i,o)?i[o]:n&&r.hasOwnProperty.call(n,o)?i[o]=n[o]:r.hasOwnProperty.call(e,o)?i[o]=t(o):void 0,ownKeys:()=>(o||(o=new Set([...Object.keys(e),...Object.keys(n||{})])),[...o]),getOwnPropertyDescriptor:(i,o)=>r.hasOwnProperty.call(i,o)?{value:i[o],configurable:!0,enumerable:!0}:n&&r.hasOwnProperty.call(n,o)?(i[o]=n[o],{value:i[o],configurable:!0,enumerable:!0}):r.hasOwnProperty.call(e,o)?(i[o]=t(o),{value:i[o],configurable:!0,enumerable:!0}):void 0};try{return new Proxy({},a)}catch(r){return i.createDefaultActionCreators(t,e,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(184),i=n(234);e.proxyCombineObjects=function(...t){let e,n;const o={get(e,i){if(r.hasOwnProperty.call(e,i))return e[i];if(!n||!n.has(i)){for(let n=t.length-1;n>=0;n--){const o=t[n];if(r.hasOwnProperty.call(o,i))return e[i]=o[i]}n?n.size>=100&&n.clear():n=new Set,n.add(i)}},ownKeys:()=>(e||(e=new Set(t.reduce((t,e)=>t.concat(Object.keys(e)),[]))),[...e]),getOwnPropertyDescriptor(e,i){if(r.hasOwnProperty.call(e,i))return{value:e[i],configurable:!0,enumerable:!0};if(!n||!n.has(i)){for(let n=t.length-1;n>=0;n--){const o=t[n];if(r.hasOwnProperty.call(o,i))return e[i]=o[i],{value:e[i],configurable:!0,enumerable:!0}}n?n.size>=100&&n.clear():n=new Set,n.add(i)}}};try{return new Proxy(Object.create(null),o)}catch(e){return i.combineObjects(...t)}}},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(39),i=function(t,e){return t===e||"function"==typeof e&&t===e.toString()},o=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return t.pipe(Object(r.a)((function(t){var n=t.type,r=e.length;if(1===r)return i(n,e[0]);for(var o=0;o<r;o++)if(i(n,e[o]))return!0;return!1})))}}},,,,,,,,,,function(t,e,n){"use strict";var r=n(0);e.a=function(t,e){var n=Object(r.useRef)(!0);Object(r.useEffect)((function(){if(!n.current)return t();n.current=!1}),e)}},,,function(t,e,n){var r=n(66).Uint8Array;t.exports=r},function(t,e,n){var r=n(367),i=n(347),o=n(157);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(346),i=n(56);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},function(t,e){t.exports=function(){return[]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(491),i=n(492);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},,function(t,e,n){"use strict";var r=n(18),i=n(61),o=n(34),a=n(135),s=n(0),u=(n(26),!!document.documentElement.currentStyle),c={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},f=["letter-spacing","line-height","font-family","font-weight","font-size","font-style","tab-size","text-rendering","text-transform","width","text-indent","padding-top","padding-right","padding-bottom","padding-left","border-top-width","border-right-width","border-bottom-width","border-left-width","box-sizing"],l={},d=document.createElement("textarea"),p=function(t){Object.keys(c).forEach((function(e){t.style.setProperty(e,c[e],"important")}))};function h(t,e,n,r,i){void 0===n&&(n=!1),void 0===r&&(r=null),void 0===i&&(i=null),null===d.parentNode&&document.body.appendChild(d);var o=function(t,e,n){void 0===n&&(n=!1);if(n&&l[e])return l[e];var r=window.getComputedStyle(t);if(null===r)return null;var i=f.reduce((function(t,e){return t[e]=r.getPropertyValue(e),t}),{}),o=i["box-sizing"];if(""===o)return null;u&&"border-box"===o&&(i.width=parseFloat(i.width)+parseFloat(r["border-right-width"])+parseFloat(r["border-left-width"])+parseFloat(r["padding-right"])+parseFloat(r["padding-left"])+"px");var a=parseFloat(i["padding-bottom"])+parseFloat(i["padding-top"]),s=parseFloat(i["border-bottom-width"])+parseFloat(i["border-top-width"]),c={sizingStyle:i,paddingSize:a,borderSize:s,boxSizing:o};n&&(l[e]=c);return c}(t,e,n);if(null===o)return null;var a=o.paddingSize,s=o.borderSize,c=o.boxSizing,h=o.sizingStyle;Object.keys(h).forEach((function(t){d.style[t]=h[t]})),p(d),d.value=t.value||t.placeholder||"x";var b=-1/0,v=1/0,y=d.scrollHeight;"border-box"===c?y+=s:"content-box"===c&&(y-=a),d.value="x";var m=d.scrollHeight-a,g=Math.floor(y/m);return null!==r&&(b=m*r,"border-box"===c&&(b=b+a+s),y=Math.max(b,y)),null!==i&&(v=m*i,"border-box"===c&&(v=v+a+s),y=Math.min(v,y)),{height:y,minHeight:b,maxHeight:v,rowCount:Math.floor(y/m),valueRowCount:g}}d.setAttribute("tab-index","-1"),d.setAttribute("aria-hidden","true"),p(d);var b=function(){},v=0,y=function(t){function e(e){var n;return(n=t.call(this,e)||this)._onRef=function(t){n._ref=t;var e=n.props.inputRef;"function"!=typeof e?e.current=t:e(t)},n._onChange=function(t){n._controlled||n._resizeComponent(),n.props.onChange(t,Object(o.a)(n))},n._resizeComponent=function(t){void 0===t&&(t=b);var e=h(n._ref,n._uid,n.props.useCacheForDOMMeasurements,n.props.minRows,n.props.maxRows);if(null!==e){var r=e.height,i=e.minHeight,o=e.maxHeight,a=e.rowCount,s=e.valueRowCount;n.rowCount=a,n.valueRowCount=s,n.state.height===r&&n.state.minHeight===i&&n.state.maxHeight===o?t():n.setState({height:r,minHeight:i,maxHeight:o},t)}else t()},n.state={height:e.style&&e.style.height||0,minHeight:-1/0,maxHeight:1/0},n._uid=v++,n._controlled=void 0!==e.value,n._resizeLock=!1,n}Object(a.a)(e,t);var n=e.prototype;return n.render=function(){var t=this.props,e=(t.inputRef,t.maxRows,t.minRows,t.onHeightChange,t.useCacheForDOMMeasurements,Object(i.a)(t,["inputRef","maxRows","minRows","onHeightChange","useCacheForDOMMeasurements"]));return e.style=Object(r.a)({},e.style,{height:this.state.height}),Math.max(e.style.maxHeight||1/0,this.state.maxHeight)<this.state.height&&(e.style.overflow="hidden"),Object(s.createElement)("textarea",Object(r.a)({},e,{onChange:this._onChange,ref:this._onRef}))},n.componentDidMount=function(){var t=this;this._resizeComponent(),this._resizeListener=function(){t._resizeLock||(t._resizeLock=!0,t._resizeComponent((function(){t._resizeLock=!1})))},window.addEventListener("resize",this._resizeListener)},n.componentDidUpdate=function(t,e){t!==this.props&&this._resizeComponent(),this.state.height!==e.height&&this.props.onHeightChange(this.state.height,this)},n.componentWillUnmount=function(){window.removeEventListener("resize",this._resizeListener),function(t){delete l[t]}(this._uid)},e}(s.Component);y.defaultProps={inputRef:b,onChange:b,onHeightChange:b,useCacheForDOMMeasurements:!1},e.a=y},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(7),o=n(114);function a(t,e){return void 0===e&&(e=o.a),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.dueTime,this.scheduler))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(i.a);function c(t){t.debouncedNext()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(95),o=n(73),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict"; +/** @license React v0.19.1 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r,i,o,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,f=function(){if(null!==u)try{var t=e.unstable_now();u(!0,t),u=null}catch(t){throw setTimeout(f,0),t}},l=Date.now();e.unstable_now=function(){return Date.now()-l},r=function(t){null!==u?setTimeout(r,0,t):(u=t,setTimeout(f,0))},i=function(t,e){c=setTimeout(t,e)},o=function(){clearTimeout(c)},a=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,b=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)e.unstable_now=function(){return d.now()};else{var y=p.now();e.unstable_now=function(){return p.now()-y}}var m=!1,g=null,_=-1,w=5,x=0;a=function(){return e.unstable_now()>=x},s=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<t?Math.floor(1e3/t):5};var O=new MessageChannel,S=O.port2;O.port1.onmessage=function(){if(null!==g){var t=e.unstable_now();x=t+w;try{g(!0,t)?S.postMessage(null):(m=!1,g=null)}catch(t){throw S.postMessage(null),t}}else m=!1},r=function(t){g=t,m||(m=!0,S.postMessage(null))},i=function(t,n){_=h((function(){t(e.unstable_now())}),n)},o=function(){b(_),_=-1}}function j(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<T(i,e)))break t;t[r]=e,t[n]=i,n=r}}function k(t){return void 0===(t=t[0])?null:t}function E(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,a=t[o],s=o+1,u=t[s];if(void 0!==a&&0>T(a,n))void 0!==u&&0>T(u,a)?(t[r]=u,t[s]=n,r=s):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==u&&0>T(u,n)))break t;t[r]=u,t[s]=n,r=s}}}return e}return null}function T(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var A=[],C=[],P=1,N=null,R=3,z=!1,M=!1,D=!1;function I(t){for(var e=k(C);null!==e;){if(null===e.callback)E(C);else{if(!(e.startTime<=t))break;E(C),e.sortIndex=e.expirationTime,j(A,e)}e=k(C)}}function L(t){if(D=!1,I(t),!M)if(null!==k(A))M=!0,r(B);else{var e=k(C);null!==e&&i(L,e.startTime-t)}}function B(t,n){M=!1,D&&(D=!1,o()),z=!0;var r=R;try{for(I(n),N=k(A);null!==N&&(!(N.expirationTime>n)||t&&!a());){var s=N.callback;if(null!==s){N.callback=null,R=N.priorityLevel;var u=s(N.expirationTime<=n);n=e.unstable_now(),"function"==typeof u?N.callback=u:N===k(A)&&E(A),I(n)}else E(A);N=k(A)}if(null!==N)var c=!0;else{var f=k(C);null!==f&&i(L,f.startTime-n),c=!1}return c}finally{N=null,R=r,z=!1}}function F(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){M||z||(M=!0,r(B))},e.unstable_getCurrentPriorityLevel=function(){return R},e.unstable_getFirstCallbackNode=function(){return k(A)},e.unstable_next=function(t){switch(R){case 1:case 2:case 3:var e=3;break;default:e=R}var n=R;R=e;try{return t()}finally{R=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=U,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=R;R=t;try{return e()}finally{R=n}},e.unstable_scheduleCallback=function(t,n,a){var s=e.unstable_now();if("object"==typeof a&&null!==a){var u=a.delay;u="number"==typeof u&&0<u?s+u:s,a="number"==typeof a.timeout?a.timeout:F(t)}else a=F(t),u=s;return t={id:P++,callback:n,priorityLevel:t,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>s?(t.sortIndex=u,j(C,t),null===k(A)&&t===k(C)&&(D?o():D=!0,i(L,u-s))):(t.sortIndex=a,j(A,t),M||z||(M=!0,r(B))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();I(t);var n=k(A);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<N.expirationTime||a()},e.unstable_wrapCallback=function(t){var e=R;return function(){var n=R;R=e;try{return t.apply(this,arguments)}finally{R=n}}}},function(t,e,n){"use strict";var r=n(451);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(453),i=n(475),o=n(149),a=n(56),s=n(479);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(454),i=n(474),o=n(244);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(229),i=n(217);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var f=(c=n[a])[0],l=t[f],d=c[1];if(u&&c[2]){if(void 0===l&&!(f in t))return!1}else{var p=new r;if(o)var h=o(l,d,f,t,e,p);if(!(void 0===h?i(d,l,3,o,p):h))return!1}}return!0}},function(t,e,n){var r=n(143);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(143),i=n(170),o=n(169);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(229),i=n(242),o=n(466),a=n(469),s=n(280),u=n(56),c=n(205),f=n(214),l="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,h,b){var v=u(t),y=u(e),m=v?"[object Array]":s(t),g=y?"[object Array]":s(e),_=(m="[object Arguments]"==m?l:m)==l,w=(g="[object Arguments]"==g?l:g)==l,x=m==g;if(x&&c(t)){if(!c(e))return!1;v=!0,_=!1}if(x&&!_)return b||(b=new r),v||f(t)?i(t,e,n,p,h,b):o(t,e,m,n,p,h,b);if(!(1&n)){var O=_&&d.call(t,"__wrapped__"),S=w&&d.call(e,"__wrapped__");if(O||S){var j=O?t.value():t,k=S?e.value():e;return b||(b=new r),h(j,k,n,p,b)}}return!!x&&(b||(b=new r),a(t,e,n,p,h,b))}},function(t,e,n){var r=n(169),i=n(462),o=n(463);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=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}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(123),i=n(365),o=n(163),a=n(242),s=n(467),u=n(468),c=r?r.prototype:void 0,f=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,l,d){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||!l(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+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 p=s;case"[object Set]":var h=1&r;if(p||(p=u),t.size!=e.size&&!h)return!1;var b=d.get(t);if(b)return b==e;r|=2,d.set(t,e);var v=a(p(t),p(e),r,c,l,d);return d.delete(t),v;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(366),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var u=1&n,c=r(t),f=c.length;if(f!=r(e).length&&!u)return!1;for(var l=f;l--;){var d=c[l];if(!(u?d in e:i.call(e,d)))return!1}var p=s.get(t),h=s.get(e);if(p&&h)return p==e&&h==t;var b=!0;s.set(t,e),s.set(e,t);for(var v=u;++l<f;){var y=t[d=c[l]],m=e[d];if(o)var g=u?o(m,y,d,e,t,s):o(y,m,d,t,e,s);if(!(void 0===g?y===m||a(y,m,n,o,s):g)){b=!1;break}v||(v="constructor"==d)}if(b&&!v){var _=t.constructor,w=e.constructor;_==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(b=!1)}return s.delete(t),s.delete(e),b}},function(t,e,n){var r=n(93)(n(66),"DataView");t.exports=r},function(t,e,n){var r=n(93)(n(66),"Promise");t.exports=r},function(t,e,n){var r=n(93)(n(66),"Set");t.exports=r},function(t,e,n){var r=n(93)(n(66),"WeakMap");t.exports=r},function(t,e,n){var r=n(243),i=n(157);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},function(t,e,n){var r=n(217),i=n(22),o=n(476),a=n(168),s=n(243),u=n(244),c=n(116);t.exports=function(t,e){return a(t)&&s(e)?u(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},function(t,e,n){var r=n(477),i=n(478);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(150),i=n(203),o=n(56),a=n(160),s=n(161),u=n(116);t.exports=function(t,e,n){for(var c=-1,f=(e=r(e,t)).length,l=!1;++c<f;){var d=u(e[c]);if(!(l=null!=t&&n(t,d)))break;t=t[d]}return l||++c!=f?l:!!(f=null==t?0:t.length)&&s(f)&&a(d,f)&&(o(t)||i(t))}},function(t,e,n){var r=n(264),i=n(480),o=n(168),a=n(116);t.exports=function(t){return o(t)?r(a(t)):i(t)}},function(t,e,n){var r=n(207);t.exports=function(t){return function(e){return r(e,t)}}},,function(t,e,n){"use strict";var r=n(50),i=n(245),o=n(483),a=n(250);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=s(n(247));u.Axios=o,u.create=function(t){return s(a(u.defaults,t))},u.Cancel=n(251),u.CancelToken=n(495),u.isCancel=n(246),u.all=function(t){return Promise.all(t)},u.spread=n(496),u.isAxiosError=n(497),t.exports=u,t.exports.default=u},function(t,e,n){"use strict";var r=n(50),i=n(230),o=n(484),a=n(485),s=n(250);function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=u},function(t,e,n){"use strict";var r=n(50);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var r=n(50),i=n(486),o=n(246),a=n(247);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(50);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";var r=n(50);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(249);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(50);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(50),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(50);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(251);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},function(t,e){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0,i=n;return[i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]]].join("")}},,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return bt}));var r,i,o,a,s=n(26),u=n.n(s),c=n(657),f=n.n(c),l=n(658),d=n.n(l),p=n(0),h=n.n(p),b=n(293),v=n.n(b),y="bodyAttributes",m="htmlAttributes",g="titleAttributes",_={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},w=(Object.keys(_).map((function(t){return _[t]})),"charset"),x="cssText",O="href",S="http-equiv",j="innerHTML",k="itemprop",E="name",T="property",A="rel",C="src",P="target",N={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},R="defaultTitle",z="defer",M="encodeSpecialCharacters",D="onChangeClientState",I="titleTemplate",L=Object.keys(N).reduce((function(t,e){return t[N[e]]=e,t}),{}),B=[_.NOSCRIPT,_.SCRIPT,_.STYLE],F="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},U=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},H=function(){function t(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)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),q=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},V=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},Z=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},$=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===e?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},W=function(t){var e=J(t,_.TITLE),n=J(t,I);if(n&&e)return n.replace(/%s/g,(function(){return Array.isArray(e)?e.join(""):e}));var r=J(t,R);return e||r||void 0},K=function(t){return J(t,D)||function(){}},Y=function(t,e){return e.filter((function(e){return void 0!==e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return q({},t,e)}),{})},G=function(t,e){return e.filter((function(t){return void 0!==t[_.BASE]})).map((function(t){return t[_.BASE]})).reverse().reduce((function(e,n){if(!e.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].toLowerCase();if(-1!==t.indexOf(o)&&n[o])return e.concat(n)}return e}),[])},X=function(t,e,n){var r={};return n.filter((function(e){return!!Array.isArray(e[t])||(void 0!==e[t]&&rt("Helmet: "+t+' should be of type "Array". Instead found type "'+F(e[t])+'"'),!1)})).map((function(e){return e[t]})).reverse().reduce((function(t,n){var i={};n.filter((function(t){for(var n=void 0,o=Object.keys(t),a=0;a<o.length;a++){var s=o[a],u=s.toLowerCase();-1===e.indexOf(u)||n===A&&"canonical"===t[n].toLowerCase()||u===A&&"stylesheet"===t[u].toLowerCase()||(n=u),-1===e.indexOf(s)||s!==j&&s!==x&&s!==k||(n=s)}if(!n||!t[n])return!1;var c=t[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][c]&&(i[n][c]=!0,!0)})).reverse().forEach((function(e){return t.push(e)}));for(var o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],u=v()({},r[s],i[s]);r[s]=u}return t}),[]).reverse()},J=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.hasOwnProperty(e))return r[e]}return null},Q=(r=Date.now(),function(t){var e=Date.now();e-r>16?(r=e,t(e)):setTimeout((function(){Q(t)}),0)}),tt=function(t){return clearTimeout(t)},et="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Q:global.requestAnimationFrame||Q,nt="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||tt:global.cancelAnimationFrame||tt,rt=function(t){return console&&"function"==typeof console.warn&&console.warn(t)},it=null,ot=function(t,e){var n=t.baseTag,r=t.bodyAttributes,i=t.htmlAttributes,o=t.linkTags,a=t.metaTags,s=t.noscriptTags,u=t.onChangeClientState,c=t.scriptTags,f=t.styleTags,l=t.title,d=t.titleAttributes;ut(_.BODY,r),ut(_.HTML,i),st(l,d);var p={baseTag:ct(_.BASE,n),linkTags:ct(_.LINK,o),metaTags:ct(_.META,a),noscriptTags:ct(_.NOSCRIPT,s),scriptTags:ct(_.SCRIPT,c),styleTags:ct(_.STYLE,f)},h={},b={};Object.keys(p).forEach((function(t){var e=p[t],n=e.newTags,r=e.oldTags;n.length&&(h[t]=n),r.length&&(b[t]=p[t].oldTags)})),e&&e(),u(t,h,b)},at=function(t){return Array.isArray(t)?t.join(""):t},st=function(t,e){void 0!==t&&document.title!==t&&(document.title=at(t)),ut(_.TITLE,e)},ut=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var r=n.getAttribute("data-react-helmet"),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(e),s=0;s<a.length;s++){var u=a[s],c=e[u]||"";n.getAttribute(u)!==c&&n.setAttribute(u,c),-1===i.indexOf(u)&&i.push(u);var f=o.indexOf(u);-1!==f&&o.splice(f,1)}for(var l=o.length-1;l>=0;l--)n.removeAttribute(o[l]);i.length===o.length?n.removeAttribute("data-react-helmet"):n.getAttribute("data-react-helmet")!==a.join(",")&&n.setAttribute("data-react-helmet",a.join(","))}},ct=function(t,e){var n=document.head||document.querySelector(_.HEAD),r=n.querySelectorAll(t+"[data-react-helmet]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var r in e)if(e.hasOwnProperty(r))if(r===j)n.innerHTML=e.innerHTML;else if(r===x)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{var s=void 0===e[r]?"":e[r];n.setAttribute(r,s)}n.setAttribute("data-react-helmet","true"),i.some((function(t,e){return a=e,n.isEqualNode(t)}))?i.splice(a,1):o.push(n)})),i.forEach((function(t){return t.parentNode.removeChild(t)})),o.forEach((function(t){return n.appendChild(t)})),{oldTags:i,newTags:o}},ft=function(t){return Object.keys(t).reduce((function(e,n){var r=void 0!==t[n]?n+'="'+t[n]+'"':""+n;return e?e+" "+r:r}),"")},lt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[N[n]||n]=t[n],e}),e)},dt=function(t,e,n){switch(t){case _.TITLE:return{toComponent:function(){return t=e.title,n=e.titleAttributes,(r={key:t})["data-react-helmet"]=!0,i=lt(n,r),[h.a.createElement(_.TITLE,i,t)];var t,n,r,i},toString:function(){return function(t,e,n,r){var i=ft(n),o=at(e);return i?"<"+t+' data-react-helmet="true" '+i+">"+$(o,r)+"</"+t+">":"<"+t+' data-react-helmet="true">'+$(o,r)+"</"+t+">"}(t,e.title,e.titleAttributes,n)}};case y:case m:return{toComponent:function(){return lt(e)},toString:function(){return ft(e)}};default:return{toComponent:function(){return function(t,e){return e.map((function(e,n){var r,i=((r={key:n})["data-react-helmet"]=!0,r);return Object.keys(e).forEach((function(t){var n=N[t]||t;if(n===j||n===x){var r=e.innerHTML||e.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=e[t]})),h.a.createElement(t,i)}))}(t,e)},toString:function(){return function(t,e,n){return e.reduce((function(e,r){var i=Object.keys(r).filter((function(t){return!(t===j||t===x)})).reduce((function(t,e){var i=void 0===r[e]?e:e+'="'+$(r[e],n)+'"';return t?t+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===B.indexOf(t);return e+"<"+t+' data-react-helmet="true" '+i+(a?"/>":">"+o+"</"+t+">")}),"")}(t,e,n)}}}},pt=function(t){var e=t.baseTag,n=t.bodyAttributes,r=t.encode,i=t.htmlAttributes,o=t.linkTags,a=t.metaTags,s=t.noscriptTags,u=t.scriptTags,c=t.styleTags,f=t.title,l=void 0===f?"":f,d=t.titleAttributes;return{base:dt(_.BASE,e,r),bodyAttributes:dt(y,n,r),htmlAttributes:dt(m,i,r),link:dt(_.LINK,o,r),meta:dt(_.META,a,r),noscript:dt(_.NOSCRIPT,s,r),script:dt(_.SCRIPT,u,r),style:dt(_.STYLE,c,r),title:dt(_.TITLE,{title:l,titleAttributes:d},r)}},ht=f()((function(t){return{baseTag:G([O,P],t),bodyAttributes:Y(y,t),defer:J(t,z),encode:J(t,M),htmlAttributes:Y(m,t),linkTags:X(_.LINK,[A,O],t),metaTags:X(_.META,[E,w,S,T,k],t),noscriptTags:X(_.NOSCRIPT,[j],t),onChangeClientState:K(t),scriptTags:X(_.SCRIPT,[C,j],t),styleTags:X(_.STYLE,[x],t),title:W(t),titleAttributes:Y(g,t)}}),(function(t){it&&nt(it),t.defer?it=et((function(){ot(t,(function(){it=null}))})):(ot(t),it=null)}),pt)((function(){return null})),bt=(i=ht,a=o=function(t){function e(){return U(this,e),Z(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){return!d()(this.props,t)},e.prototype.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case _.SCRIPT:case _.NOSCRIPT:return{innerHTML:e};case _.STYLE:return{cssText:e}}throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},e.prototype.flattenArrayTypeChildren=function(t){var e,n=t.child,r=t.arrayTypeChildren,i=t.newChildProps,o=t.nestedChildren;return q({},r,((e={})[n.type]=[].concat(r[n.type]||[],[q({},i,this.mapNestedChildrenToProps(n,o))]),e))},e.prototype.mapObjectTypeChildren=function(t){var e,n,r=t.child,i=t.newProps,o=t.newChildProps,a=t.nestedChildren;switch(r.type){case _.TITLE:return q({},i,((e={})[r.type]=a,e.titleAttributes=q({},o),e));case _.BODY:return q({},i,{bodyAttributes:q({},o)});case _.HTML:return q({},i,{htmlAttributes:q({},o)})}return q({},i,((n={})[r.type]=q({},o),n))},e.prototype.mapArrayTypeChildrenToProps=function(t,e){var n=q({},e);return Object.keys(t).forEach((function(e){var r;n=q({},n,((r={})[e]=t[e],r))})),n},e.prototype.warnOnInvalidChildren=function(t,e){return!0},e.prototype.mapChildrenToProps=function(t,e){var n=this,r={};return h.a.Children.forEach(t,(function(t){if(t&&t.props){var i=t.props,o=i.children,a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[L[n]||n]=t[n],e}),e)}(V(i,["children"]));switch(n.warnOnInvalidChildren(t,o),t.type){case _.LINK:case _.META:case _.NOSCRIPT:case _.SCRIPT:case _.STYLE:r=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:e=n.mapObjectTypeChildren({child:t,newProps:e,newChildProps:a,nestedChildren:o})}}})),e=this.mapArrayTypeChildrenToProps(r,e)},e.prototype.render=function(){var t=this.props,e=t.children,n=V(t,["children"]),r=q({},n);return e&&(r=this.mapChildrenToProps(e,r)),h.a.createElement(i,r)},H(e,null,[{key:"canUseDOM",set:function(t){i.canUseDOM=t}}]),e}(h.a.Component),o.propTypes={base:u.a.object,bodyAttributes:u.a.object,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]),defaultTitle:u.a.string,defer:u.a.bool,encodeSpecialCharacters:u.a.bool,htmlAttributes:u.a.object,link:u.a.arrayOf(u.a.object),meta:u.a.arrayOf(u.a.object),noscript:u.a.arrayOf(u.a.object),onChangeClientState:u.a.func,script:u.a.arrayOf(u.a.object),style:u.a.arrayOf(u.a.object),title:u.a.string,titleAttributes:u.a.object,titleTemplate:u.a.string},o.defaultProps={defer:!0,encodeSpecialCharacters:!0},o.peek=i.peek,o.rewind=function(){var t=i.rewind();return t||(t=pt({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},a);bt.renderStatic=bt.rewind},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(100),i=n(65);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(i.a)(n)?(t.pop(),function(e){return Object(r.a)(t,e,n)}):function(e){return Object(r.a)(t,e)}}},,,,,,,,function(t,e,n){var r=n(572),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(u),r(t,this,c)}}},function(t,e,n){var r=n(573),i=n(575)(r);t.exports=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(37),o=n(36);function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new u(t),r=Object(o.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),u=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(37),o=n(36);function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return r.__extends(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(o.a)(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i=n(37),o=n(36),a={leading:!0,trailing:!1};function s(t,e){return void 0===e&&(e=a),function(n){return n.lift(new u(t,e.leading,e.trailing))}}var u=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.durationSelector,this.leading,this.trailing))},t}(),c=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r.__extends(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(o.a)(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(i.a)},,,,,,function(t,e,n){"use strict"; +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case l:case d:case a:case u:case s:case h:return t;default:switch(t=t&&t.$$typeof){case f:case p:case y:case v:case c:return t;default:return e}}case o:return e}}}function O(t){return x(t)===d}e.AsyncMode=l,e.ConcurrentMode=d,e.ContextConsumer=f,e.ContextProvider=c,e.Element=i,e.ForwardRef=p,e.Fragment=a,e.Lazy=y,e.Memo=v,e.Portal=o,e.Profiler=u,e.StrictMode=s,e.Suspense=h,e.isAsyncMode=function(t){return O(t)||x(t)===l},e.isConcurrentMode=O,e.isContextConsumer=function(t){return x(t)===f},e.isContextProvider=function(t){return x(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return x(t)===p},e.isFragment=function(t){return x(t)===a},e.isLazy=function(t){return x(t)===y},e.isMemo=function(t){return x(t)===v},e.isPortal=function(t){return x(t)===o},e.isProfiler=function(t){return x(t)===u},e.isStrictMode=function(t){return x(t)===s},e.isSuspense=function(t){return x(t)===h},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===d||t===u||t===s||t===h||t===b||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===v||t.$$typeof===c||t.$$typeof===f||t.$$typeof===p||t.$$typeof===g||t.$$typeof===_||t.$$typeof===w||t.$$typeof===m)},e.typeOf=x},function(t,e){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,n){var r=n(149),i=n(516),o=n(517);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e){t.exports=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)}},function(t,e,n){var r=n(574),i=n(228),o=n(149),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(263),i=n(216),o=n(264),a=n(227),s=n(577),u=Math.max;t.exports=function(t){if(!t||!t.length)return[];var e=0;return t=r(t,(function(t){if(s(t))return e=u(t.length,e),!0})),a(e,(function(e){return i(t,o(e))}))}},function(t,e,n){var r=n(162),i=n(64);t.exports=function(t){return i(t)&&r(t)}},,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(231);e.createActionCreator=r.createActionCreator;var i=n(582);e.createActionCreators=i.createActionCreators;var o=n(583);e.proxyActionCreators=o.proxyActionCreators},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(231),i=n(232);e.createActionCreators=function(t,e){return i.createDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(231),i=n(349);e.proxyActionCreators=function(t,e){return i.proxyDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(233);e.createActionCreator=r.createActionCreator;var i=n(585);e.createActionCreators=i.createActionCreators;var o=n(586);e.proxyActionCreators=o.proxyActionCreators},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(233),i=n(232);e.createActionCreators=function(t,e){return i.createDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(233),i=n(349);e.proxyActionCreators=function(t,e){return i.proxyDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(234);e.combineUniqueObjects=function(...t){return r.combineObjects(...t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(350);e.proxyCombineUniqueObjects=function(...t){return r.proxyCombineObjects(...t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(184);e.createReducer=function(t,e){return function(n=t,i){return r.hasOwnProperty.call(e,i.type)?e[i.type](n,i):n}}},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";t.exports=n(449)},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkParent=void 0,e.checkParent=function(t){if(!t)return void console.error(new Error("react-resize-reporter: empty parent element"));switch(t.tagName){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"menuitem":case"meta":case"param":case"source":case"track":case"wbr":case"script":case"style":case"textarea":case"title":console.error(new Error("react-resize-reporter: Unsupported parent tag name "+t.tagName.toLowerCase()+"."+t.className.replace(/\s+/,".")+" . Change the tag or wrap it in a supported tag(e.g. div)."))}const e=window.getComputedStyle(t);e&&"static"===e.getPropertyValue("position")&&console.warn(new Error("react-resize-reporter: The 'position' CSS property of element "+t.tagName.toLowerCase()+"."+t.className.replace(/\s+/,".")+" should not be 'static'."))}},,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r,i=n(0),o=(r=i)&&"object"==typeof r&&"default"in r?r.default:r;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=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=function(t,e,n){if("function"!=typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof e)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,c=[];function f(){u=t(c.map((function(t){return t.props}))),l.canUseDOM?e(u):n&&(u=n(u))}var l=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i.peek=function(){return u},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var t=u;return u=void 0,c=[],t};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),f()},a.componentDidUpdate=function(){f()},a.componentWillUnmount=function(){var t=c.indexOf(this);c.splice(t,1),f()},a.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return a(l,"displayName","SideEffect("+function(t){return t.displayName||t.name||"Component"}(r)+")"),a(l,"canUseDOM",s),l}}},function(t,e){var n="undefined"!=typeof Element,r="function"==typeof Map,i="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;t.exports=function(t,e){try{return function t(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,u,c,f;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(u=s;0!=u--;)if(!t(e[u],a[u]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(f=e.entries();!(u=f.next()).done;)if(!a.has(u.value[0]))return!1;for(f=e.entries();!(u=f.next()).done;)if(!t(u.value[1],a.get(u.value[0])))return!1;return!0}if(i&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(f=e.entries();!(u=f.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(u=s;0!=u--;)if(e[u]!==a[u])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(u=s;0!=u--;)if(!Object.prototype.hasOwnProperty.call(a,c[u]))return!1;if(n&&e instanceof Element)return!1;for(u=s;0!=u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!e.$$typeof)&&!t(e[c[u]],a[c[u]]))return!1;return!0}return e!=e&&a!=a}(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(4),i=n(65),o=n(60),a=n(37),s=n(36),u=n(106),c={};function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return Object(i.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(o.a)(t[0])&&(t=t[0]),Object(u.a)(t,r).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.resultSelector))},t}(),d=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.__extends(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Object(s.a)(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,a=o[n],s=this.toRespond?a===c?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.a)},,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(4),i=n(95),o=n(8),a=n(7),s=n(14);function u(){return function(t){return t.lift(new c(t))}}var c=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new f(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),l=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new p(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t},e.prototype.refCount=function(){return u()(this)},e}(o.a),d=function(){var t=l.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.b);a.a;var h=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();function b(){return new i.a}function v(){return function(t){return u()((e=b,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new h(r,n));var i=Object.create(t,d);return i.source=t,i.subjectFactory=r,i})(t));var e,n}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i=n(7);function o(){}var a=n(46);function s(t,e,n){return function(r){return r.lift(new u(t,e,n))}}var u=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))},t}(),c=function(t){function e(e,n,r,i){var s=t.call(this,e)||this;return s._tapNext=o,s._tapError=o,s._tapComplete=o,s._tapError=r||o,s._tapComplete=i||o,Object(a.a)(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||o,s._tapError=n.error||o,s._tapComplete=n.complete||o),s}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(i.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(121);function i(t,e){return e?Object(r.a)((function(){return t}),e):Object(r.a)((function(){return t}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(112);function i(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 o=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return r.a.apply(void 0,i(e.map((function(t){var e=t.apply(void 0,n);if(!e)throw new TypeError('combineEpics: one of the provided Epics "'+(t.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return e}))))};try{Object.defineProperty(o,"name",{value:"combineEpics("+e.map((function(t){return t.name||"<anonymous>"})).join(", ")+")"})}catch(t){}return o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(7);function o(){return function(t){return t.lift(new a)}}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.__extends(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(i.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));var r=n(4),i=n(118),o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(i.a),a=n(117),s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(a.a))(o),u=n(95),c=n(67),f=n(7),l=n(111);function d(t,e){return void 0===e&&(e=0),function(n){return n.lift(new p(t,e))}}var p=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.scheduler,this.delay))},t}(),h=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.__extends(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new b(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(l.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(l.a.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(l.a.createComplete()),this.unsubscribe()},e}(f.a),b=function(){return function(t,e){this.notification=t,this.destination=e}}(),v=n(10),y=n(152),m=n(8),g=1,_=function(){return Promise.resolve()}(),w={};function x(t){return t in w&&(delete w[t],!0)}var O=function(t){var e=g++;return w[e]=!0,_.then((function(){return x(e)&&t()})),e},S=function(t){x(t)},j=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=O(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(S(n),e.scheduled=void 0)},e}(i.a),k=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(a.a))(j),E=n(153),T=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=k);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!Object(E.a)(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=k),i}return r.__extends(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=k),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(m.a);function A(t,e){return void 0===e&&(e=0),function(n){return n.lift(new C(t,e))}}var C=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new T(e,this.delay,this.scheduler).subscribe(t)},t}(),P=n(102),N=n(352),R=function(){function t(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)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var z=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.source=t,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),R(e,null,[{key:"of",value:function(){return new this(P.a.apply(void 0,arguments))}},{key:"from",value:function(t,e){return new this(Object(c.a)(t,e))}}]),R(e,[{key:"lift",value:function(t){var n=new e(this);return n.operator=t,n}},{key:"ofType",value:function(){return N.a.apply(void 0,arguments)(this)}}]),e}(m.a);var M=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(function(t){var e=r.__notifier.subscribe(t);return e&&!e.closed&&t.next(r.value),e})));return r.value=n,r.__notifier=new u.a,r.__subscription=t.subscribe((function(t){t!==r.value&&(r.value=t,r.__notifier.next(t))})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(m.a);function D(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=s.constructor,n=new e(s.SchedulerAction);var r=new u.a,i=void 0,o=function(e){i=e;var o=(new u.a).pipe(d(n)),a=(new u.a).pipe(d(n)),s=new z(o),f=new M(a,i.getState());return r.pipe(Object(v.a)((function(e){var n="dependencies"in t?e(s,f,t.dependencies):e(s,f);if(!n)throw new TypeError('Your root Epic "'+(e.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return n})),Object(y.a)((function(t){return Object(c.a)(t).pipe(A(n),d(n))}))).subscribe(i.dispatch),function(t){return function(e){var n=t(e);return a.next(i.getState()),o.next(e),n}}};return o.run=function(t){r.next(t)},o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i=n(7),o=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),a=n(124);function s(t){return function(e){return 0===t?Object(a.b)():e.lift(new u(t))}}var u=function(){function t(t){if(this.total=t,this.total<0)throw new o}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.a)},,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n(37),o=n(36);function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.closingNotifier))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Object(o.a)(r,n)),r}return r.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(i.a)}]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/6.7a3493a8.js b/plugins/saladict-ztools/ext-saladic/assets/6.7a3493a8.js deleted file mode 100644 index c9e4e0f9..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/6.7a3493a8.js +++ /dev/null @@ -1,42 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[6,18,19,21],[,,,function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return i})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return u})),n.d(e,"__param",(function(){return s})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return f})),n.d(e,"__generator",(function(){return l})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return d})),n.d(e,"__read",(function(){return b})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return _})),n.d(e,"__asyncGenerator",(function(){return m})),n.d(e,"__asyncDelegator",(function(){return g})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return x})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return j})),n.d(e,"__classPrivateFieldGet",(function(){return S})),n.d(e,"__classPrivateFieldSet",(function(){return E})); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function u(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function s(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function f(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((r=r.apply(t,e||[])).next())}))}function l(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function h(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function p(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r}function _(t){return this instanceof _?(this.v=t,this):new _(t)}function m(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){i.push([t,e,n,r])>1||u(t,e)}))})}function u(t,e){try{(n=o[t](e)).value instanceof _?Promise.resolve(n.value.v).then(s,c):f(i[0][2],n)}catch(t){f(i[0][3],t)}var n}function s(t){u("next",t)}function c(t){u("throw",t)}function f(t,e){t(e),i.shift(),i.length&&u(i[0][0],i[0][1])}}function g(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:_(t[r](e)),done:"return"===r}:o?o(e):e}:o}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function j(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){var r; -/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&t.push(a)}else if("object"===i)for(var u in r)n.call(r,u)&&r[u]&&t.push(u)}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},,function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(3),o=n(45),i=n(77),a=n(13),u=n(68),s=n(23),c=n(48),f=function(t){function e(n,r,o){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.a;break;case 1:if(!n){a.destination=i.a;break}if("object"==typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new l(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new l(a,n,r,o)}return a}return r.__extends(e,t),e.prototype[u.a]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a.a),l=function(t){function e(e,n,r,a){var u,s=t.call(this)||this;s._parentSubscriber=e;var c=s;return Object(o.a)(n)?u=n:n&&(u=n.next,r=n.error,a=n.complete,n!==i.a&&(c=Object.create(n),Object(o.a)(c.unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=u,s._error=r,s._complete=a,s}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),s.a.useDeprecatedSynchronousErrorHandling)throw t;Object(c.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!s.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return s.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(c.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(f)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(7);var o=n(68),i=n(77);var a=n(47),u=n(115);function s(t){return 0===t.length?u.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var c=n(23),f=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var a=this.operator,u=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[o.a])return t[o.a]()}return t||e||n?new r.a(t,e,n):new r.a(i.a)}(t,e,n);if(a?u.add(a.call(u,this.source)):u.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),c.a.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,o=e.destination,i=e.isStopped;if(n||i)return!1;t=o&&o instanceof r.a?o:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=l(e))((function(e,r){var o;o=n.subscribe((function(e){try{t(e)}catch(t){r(t),o&&o.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:s(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=l(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function l(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=n(7);function i(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.thisArg))},t}(),u=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.a)},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(54),o=n(114),i=n(45),a=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),u=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,u=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var f=0;f<n.length;++f){n[f].remove(this)}if(Object(i.a)(u))try{u.call(this)}catch(t){e=t instanceof a?s(t.errors):[t]}if(Object(r.a)(c)){f=-1;for(var l=c.length;++f<l;){var h=c[f];if(Object(o.a)(h))try{h.unsubscribe()}catch(t){e=e||[],t instanceof a?e=e.concat(s(t.errors)):e.push(t)}}}if(e)throw new a(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof t){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function s(t){return t.reduce((function(t,e){return t.concat(e instanceof a?e.errors:e)}),[])}},,,function(t,e,n){"use strict";function r(){return(r=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)}n.d(e,"a",(function(){return r}))},,,function(t,e,n){"use strict";function r(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}e.a=function(t,e){var n;void 0===e&&(e=r);var o,i=[],a=!1;return function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];return a&&n===this&&e(r,i)||(o=t.apply(this,r),a=!0,n=this,i=r),o}}},,function(t,e,n){var r=n(201);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return U})),n.d(e,"d",(function(){return $})),n.d(e,"e",(function(){return G})),n.d(e,"f",(function(){return q})),n.d(e,"c",(function(){return E}));var r=n(0),o=n.n(r),i=(n(26),o.a.createContext(null));var a=function(t){t()},u={notify:function(){}};function s(){var t=a,e=null,n=null;return{clear:function(){e=null,n=null},notify:function(){t((function(){for(var t=e;t;)t.callback(),t=t.next}))},get:function(){for(var t=[],n=e;n;)t.push(n),n=n.next;return t},subscribe:function(t){var r=!0,o=n={callback:t,next:null,prev:n};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var c=function(){function t(t,e){this.store=t,this.parentSub=e,this.unsubscribe=null,this.listeners=u,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var e=t.prototype;return e.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},e.notifyNestedSubs=function(){this.listeners.notify()},e.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},e.isSubscribed=function(){return Boolean(this.unsubscribe)},e.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=s())},e.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=u)},t}();var f=function(t){var e=t.store,n=t.context,a=t.children,u=Object(r.useMemo)((function(){var t=new c(e);return t.onStateChange=t.notifyNestedSubs,{store:e,subscription:t}}),[e]),s=Object(r.useMemo)((function(){return e.getState()}),[e]);Object(r.useEffect)((function(){var t=u.subscription;return t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),function(){t.tryUnsubscribe(),t.onStateChange=null}}),[u,s]);var f=n||i;return o.a.createElement(f.Provider,{value:u},a)},l=n(16),h=n(55),p=n(170),d=n.n(p),b=n(154),v="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,y=[],_=[null,null];function m(t,e){var n=t[1];return[e.payload,n+1]}function g(t,e,n){v((function(){return t.apply(void 0,e)}),n)}function w(t,e,n,r,o,i,a){t.current=r,e.current=o,n.current=!1,i.current&&(i.current=null,a())}function x(t,e,n,r,o,i,a,u,s,c){if(t){var f=!1,l=null,h=function(){if(!f){var t,n,h=e.getState();try{t=r(h,o.current)}catch(t){n=t,l=t}n||(l=null),t===i.current?a.current||s():(i.current=t,u.current=t,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=h,n.trySubscribe(),h();return function(){if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,l)throw l}}}var O=function(){return[null,0]};function j(t,e){void 0===e&&(e={});var n=e,a=n.getDisplayName,u=void 0===a?function(t){return"ConnectAdvanced("+t+")"}:a,s=n.methodName,f=void 0===s?"connectAdvanced":s,p=n.renderCountProp,v=void 0===p?void 0:p,j=n.shouldHandleStateChanges,S=void 0===j||j,E=n.storeKey,k=void 0===E?"store":E,C=(n.withRef,n.forwardRef),T=void 0!==C&&C,P=n.context,A=void 0===P?i:P,N=Object(h.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),z=A;return function(e){var n=e.displayName||e.name||"Component",i=u(n),a=Object(l.a)({},N,{getDisplayName:u,methodName:f,renderCountProp:v,shouldHandleStateChanges:S,storeKey:k,displayName:i,wrappedComponentName:n,WrappedComponent:e}),s=N.pure;var p=s?r.useMemo:function(t){return t()};function j(n){var i=Object(r.useMemo)((function(){var t=n.forwardedRef,e=Object(h.a)(n,["forwardedRef"]);return[n.context,t,e]}),[n]),u=i[0],s=i[1],f=i[2],d=Object(r.useMemo)((function(){return u&&u.Consumer&&Object(b.isContextConsumer)(o.a.createElement(u.Consumer,null))?u:z}),[u,z]),v=Object(r.useContext)(d),j=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(v)&&Boolean(v.store);var E=j?n.store:v.store,k=Object(r.useMemo)((function(){return function(e){return t(e.dispatch,a)}(E)}),[E]),C=Object(r.useMemo)((function(){if(!S)return _;var t=new c(E,j?null:v.subscription),e=t.notifyNestedSubs.bind(t);return[t,e]}),[E,j,v]),T=C[0],P=C[1],A=Object(r.useMemo)((function(){return j?v:Object(l.a)({},v,{subscription:T})}),[j,v,T]),N=Object(r.useReducer)(m,y,O),R=N[0][0],I=N[1];if(R&&R.error)throw R.error;var M=Object(r.useRef)(),D=Object(r.useRef)(f),B=Object(r.useRef)(),L=Object(r.useRef)(!1),F=p((function(){return B.current&&f===D.current?B.current:k(E.getState(),f)}),[E,R,f]);g(w,[D,M,L,f,F,B,P]),g(x,[S,E,T,k,D,M,L,B,P,I],[E,T,k]);var U=Object(r.useMemo)((function(){return o.a.createElement(e,Object(l.a)({},F,{ref:s}))}),[s,e,F]);return Object(r.useMemo)((function(){return S?o.a.createElement(d.Provider,{value:A},U):U}),[d,U,A])}var E=s?o.a.memo(j):j;if(E.WrappedComponent=e,E.displayName=i,T){var C=o.a.forwardRef((function(t,e){return o.a.createElement(E,Object(l.a)({},t,{forwardedRef:e}))}));return C.displayName=i,C.WrappedComponent=e,d()(C,e)}return d()(E,e)}}function S(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function E(t,e){if(S(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(e,n[o])||!S(t[n[o]],e[n[o]]))return!1;return!0}var k=n(98);function C(t){return function(e,n){var r=t(e,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function T(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function P(t,e){return function(e,n){n.displayName;var r=function(t,e){return r.dependsOnOwnProps?r.mapToProps(t,e):r.mapToProps(t)};return r.dependsOnOwnProps=!0,r.mapToProps=function(e,n){r.mapToProps=t,r.dependsOnOwnProps=T(t);var o=r(e,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=T(o),o=r(e,n)),o},r}}var A=[function(t){return"function"==typeof t?P(t):void 0},function(t){return t?void 0:C((function(t){return{dispatch:t}}))},function(t){return t&&"object"==typeof t?C((function(e){return Object(k.b)(t,e)})):void 0}];var N=[function(t){return"function"==typeof t?P(t):void 0},function(t){return t?void 0:C((function(){return{}}))}];function z(t,e,n){return Object(l.a)({},n,{},t,{},e)}var R=[function(t){return"function"==typeof t?function(t){return function(e,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(e,n,u){var s=t(e,n,u);return a?o&&i(s,r)||(r=s):(a=!0,r=s),r}}}(t):void 0},function(t){return t?void 0:function(){return z}}];function I(t,e,n,r){return function(o,i){return n(t(o,i),e(r,i),i)}}function M(t,e,n,r,o){var i,a,u,s,c,f=o.areStatesEqual,l=o.areOwnPropsEqual,h=o.areStatePropsEqual,p=!1;function d(o,p){var d,b,v=!l(p,a),y=!f(o,i);return i=o,a=p,v&&y?(u=t(i,a),e.dependsOnOwnProps&&(s=e(r,a)),c=n(u,s,a)):v?(t.dependsOnOwnProps&&(u=t(i,a)),e.dependsOnOwnProps&&(s=e(r,a)),c=n(u,s,a)):y?(d=t(i,a),b=!h(d,u),u=d,b&&(c=n(u,s,a)),c):c}return function(o,f){return p?d(o,f):(u=t(i=o,a=f),s=e(r,a),c=n(u,s,a),p=!0,c)}}function D(t,e){var n=e.initMapStateToProps,r=e.initMapDispatchToProps,o=e.initMergeProps,i=Object(h.a)(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(t,i),u=r(t,i),s=o(t,i);return(i.pure?M:I)(a,u,s,t,i)}function B(t,e,n){for(var r=e.length-1;r>=0;r--){var o=e[r](t);if(o)return o}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function L(t,e){return t===e}function F(t){var e=void 0===t?{}:t,n=e.connectHOC,r=void 0===n?j:n,o=e.mapStateToPropsFactories,i=void 0===o?N:o,a=e.mapDispatchToPropsFactories,u=void 0===a?A:a,s=e.mergePropsFactories,c=void 0===s?R:s,f=e.selectorFactory,p=void 0===f?D:f;return function(t,e,n,o){void 0===o&&(o={});var a=o,s=a.pure,f=void 0===s||s,d=a.areStatesEqual,b=void 0===d?L:d,v=a.areOwnPropsEqual,y=void 0===v?E:v,_=a.areStatePropsEqual,m=void 0===_?E:_,g=a.areMergedPropsEqual,w=void 0===g?E:g,x=Object(h.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),O=B(t,i,"mapStateToProps"),j=B(e,u,"mapDispatchToProps"),S=B(n,c,"mergeProps");return r(p,Object(l.a)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:O,initMapDispatchToProps:j,initMergeProps:S,pure:f,areStatesEqual:b,areOwnPropsEqual:y,areStatePropsEqual:m,areMergedPropsEqual:w},x))}}var U=F();function H(){return Object(r.useContext)(i)}function V(t){void 0===t&&(t=i);var e=t===i?H:function(){return Object(r.useContext)(t)};return function(){return e().store}}var q=V();function Z(t){void 0===t&&(t=i);var e=t===i?q:V(t);return function(){return e().dispatch}}var $=Z(),Y=function(t,e){return t===e};function K(t){void 0===t&&(t=i);var e=t===i?H:function(){return Object(r.useContext)(t)};return function(t,n){void 0===n&&(n=Y);var o=e();return function(t,e,n,o){var i,a=Object(r.useReducer)((function(t){return t+1}),0)[1],u=Object(r.useMemo)((function(){return new c(n,o)}),[n,o]),s=Object(r.useRef)(),f=Object(r.useRef)(),l=Object(r.useRef)();try{i=t!==f.current||s.current?t(n.getState()):l.current}catch(t){throw s.current&&(t.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),t}return v((function(){f.current=t,l.current=i,s.current=void 0})),v((function(){function t(){try{var t=f.current(n.getState());if(e(t,l.current))return;l.current=t}catch(t){s.current=t}a({})}return u.onStateChange=t,u.trySubscribe(),t(),function(){return u.tryUnsubscribe()}}),[n,u]),i}(t,n,o.store,o.subscription)}}var W,G=K(),X=n(20);W=X.unstable_batchedUpdates,a=W},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},,function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(391)()},function(t,e,n){var r=n(357);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(215);var o=n(139),i=n(216);function a(t,e){return Object(r.a)(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(t,e)||Object(o.a)(t,e)||Object(i.a)()}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return s})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return f}));var r=n(0),o=n(91),i=n(161);function a(t){return t}function u(t){return Object(i.a)(0)(t)}function s(){return new o.a}function c(t){var e=Object(r.useRef)(!0),n=Object(r.useRef)(null);return e.current&&(e.current=!1,n.current=t()),n}function f(){var t=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return t(l)})).current}function l(t){return(t+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(127);var o=n(214),i=n(139);function a(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(i.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(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(94),o=n(126),i=n(8);function a(t,e,n,a,u){if(void 0===u&&(u=new r.a(t,n,a)),!u.closed)return e instanceof i.a?e.subscribe(u):Object(o.a)(e)(u)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(7).a)},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=n(7);function i(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.thisArg))},t}(),u=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(o.a)},,,,function(t,e,n){"use strict";function r(t,e=window){if(t){const e=t.toString().trim();if(e)return e}const n=e.document.activeElement;if(n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName)){const t=n;return t.value.slice(t.selectionStart||0,t.selectionEnd||0)}return""}function o(t=window){return r(t.getSelection(),t)}function i(t){if(!t||t.rangeCount<=0)return"";const e=t.toString();if(!e.trim())return"";const n=t.getRangeAt(0);return n?(function(t){if(t){const e=/[.?!。?!…]/,n=/[^\s.?!。?!…]/;for(let r=t.length-1;r>=0;r--){const o=t[r];if(e.test(o)){if("."===o&&n.test(t[r+1]))continue;return t.slice(r+1)}}}return t}(u(n))+e+function(t){const e=/^((\.(?![\s.?!。?!…]))|[^.?!。?!…])*([.?!。?!…]){0,3}/.exec(t);return e?e[0]:""}(s(n))).replace(/\s+/g," ").trim():""}function a(t=window){return i(t.getSelection())}function u(t){let e=t.startContainer,n="";switch(e.nodeType){case Node.TEXT_NODE:{const r=e.textContent;r&&(n=r.slice(0,t.startOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:e=e.childNodes[t.startOffset]}for(let t=e;f(t);t=t.parentElement)for(let e=t.previousSibling;f(e);e=e.previousSibling)n=c(e)+n;return n}function s(t){let e=t.endContainer,n="";switch(e.nodeType){case Node.TEXT_NODE:{const r=e.textContent;r&&(n=r.slice(t.endOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:e=e.childNodes[t.endOffset-1]}for(let t=e;f(t);t=t.parentElement)for(let e=t.nextSibling;f(e);e=e.nextSibling)n+=c(e);return n}function c(t){return t.nodeType===Node.TEXT_NODE?t.nodeValue||"":t.nodeType===Node.ELEMENT_NODE&&t.innerText||""}function f(t){if(!t)return!1;switch(t.nodeType){case Node.TEXT_NODE:case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:return!0;case Node.ELEMENT_NODE:switch(t.tagName){case"A":case"ABBR":case"B":case"BDI":case"BDO":case"BR":case"CITE":case"CODE":case"DATA":case"DFN":case"EM":case"I":case"KBD":case"MARK":case"Q":case"RP":case"RT":case"RTC":case"RUBY":case"S":case"SAMP":case"SMALL":case"SPAN":case"STRONG":case"SUB":case"SUP":case"TIME":case"U":case"VAR":case"WBR":return!0}}return!1}n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(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 o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(71),o=n(32);function i(t,e){return!e||"object"!==Object(r.a)(e)&&"function"!=typeof e?Object(o.a)(t):e}},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(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)}n.d(e,"a",(function(){return o}))},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8),o=n(54),i=n(45),a=n(10);function u(t,e,n,s){return Object(i.a)(n)&&(s=n,n=void 0),s?u(t,e,n).pipe(Object(a.a)((function(t){return Object(o.a)(t)?s.apply(void 0,t):s(t)}))):new r.a((function(r){!function t(e,n,r,o,i){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var u=e;e.addEventListener(n,r,i),a=function(){return u.removeEventListener(n,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var s=e;e.on(n,r),a=function(){return s.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,r),a=function(){return c.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var f=0,l=e.length;f<l;f++)t(e[f],n,r,o,i)}o.add(a)}(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(66),o=n(58);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==r(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},,,function(t,e,n){var r=n(198),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},,function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(8),o=n(126),i=n(13),a=n(47);var u=n(93),s=n(67);var c=n(125),f=n(123);function l(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new r.a((function(n){var r=new i.a;return r.add(e.schedule((function(){var o=t[a.a]();r.add(o.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a((function(n){var r=new i.a;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Object(f.a)(t))return Object(u.a)(t,e);if(function(t){return t&&"function"==typeof t[s.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,o=new i.a;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(e.schedule((function(){r=t[s.a](),o.add(e.schedule((function(){if(!n.closed){var t,e;try{var o=r.next();t=o.value,e=o.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function h(t,e){return e?l(t,e):t instanceof r.a?t:new r.a(Object(o.a)(t))}},function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)o(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,o){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),o);else for(var i=0;i<r;i++)t[o+i]=e[n+i]},flattenChunks:function(t){var e,n,r,o,i,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),o=0,e=0,n=t.length;e<n;e++)i=t[e],a.set(i,o),o+=i.length;return a}},a={arraySet:function(t,e,n,r,o){for(var i=0;i<r;i++)t[o+i]=e[n+i]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(r)},function(t,e,n){var r=n(117),o=n(324),i=n(325),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return o}));var o=r()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},,function(t,e,n){"use strict";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)}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(254),o=n(320),i=n(331),a=n(51);t.exports=function(t,e){return(a(t)?r:o)(t,i(e))}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8),o=n(54),i=n(45),a=n(10);function u(t,e,n){return n?u(t,e).pipe(Object(a.a)((function(t){return Object(o.a)(t)?n.apply(void 0,t):n(t)}))):new r.a((function(n){var r,o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(o)}catch(t){return void n.error(t)}if(Object(i.a)(e))return function(){return e(o,r)}}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(23),o=n(48),i={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(o.a)(t)},complete:function(){}}},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=n(7);function i(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.value))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(o.a)},,function(t,e,n){"use strict";var r={};(0,n(65).assign)(r,n(312),n(315),n(196)),t.exports=r},,,function(t,e,n){var r=n(338),o=n(341);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t,e,n){"use strict";var r=n(16),o=n(55),i=n(129);n(26);function a(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var u=n(0),s=n.n(u),c=n(20),f=n.n(c),l=!1,h=s.a.createContext(null),p=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(i.a)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(e="entering"):"entering"!==n&&"entered"!==n||(e="exiting")}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),"entering"===e?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,o=this.props.nodeRef?[r]:[f.a.findDOMNode(this),r],i=o[0],a=o[1],u=this.getTimeouts(),s=r?u.appear:u.enter;!t&&!n||l?this.safeSetState({status:"entered"},(function(){e.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){e.props.onEntering(i,a),e.onTransitionEnd(s,(function(){e.safeSetState({status:"entered"},(function(){e.props.onEntered(i,a)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:f.a.findDOMNode(this);e&&!l?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:f.a.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,r=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Object(o.a)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.a.createElement(h.Provider,{value:null},"function"==typeof n?n(t,r):s.a.cloneElement(s.a.Children.only(n),r))},e}(s.a.Component);function d(){}p.contextType=h,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},p.UNMOUNTED="unmounted",p.EXITED="exited",p.ENTERING="entering",p.ENTERED="entered",p.EXITING="exiting";var b=p,v=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return r=e,void((n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},y=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1];e.removeClasses(o,"exit"),e.addClass(o,i?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1]?"appear":"enter";e.addClass(o,i,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.resolveArguments(t,n),o=r[0],i=r[1]?"appear":"enter";e.removeClasses(o,i),e.addClass(o,i,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+t:n[t];return{baseClassName:o,activeClassName:r?o+"-active":n[t+"Active"],doneClassName:r?o+"-done":n[t+"Done"]}},e}Object(i.a)(e,t);var n=e.prototype;return n.addClass=function(t,e,n){var r=this.getClassNames(e)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===e&&"done"===n&&o&&(r+=" "+o),"active"===n&&t&&t.scrollTop,r&&(this.appliedClasses[e][n]=r,function(t,e){t&&e&&e.split(" ").forEach((function(e){return r=e,void((n=t).classList?n.classList.add(r):function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(t,r))},n.removeClasses=function(t,e){var n=this.appliedClasses[e],r=n.base,o=n.active,i=n.done;this.appliedClasses[e]={},r&&v(t,r),o&&v(t,o),i&&v(t,i)},n.render=function(){var t=this.props,e=(t.classNames,Object(o.a)(t,["classNames"]));return s.a.createElement(b,Object(r.a)({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(s.a.Component);y.defaultProps={classNames:""},y.propTypes={};e.a=y},function(t,e,n){var r=n(66),o=n(58);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==r(t)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return l}));var r=n(3),o=n(8),i=n(7),a=n(13),u=n(69),s=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(a.a),c=n(68),f=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.__extends(e,t),e}(i.a),l=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.__extends(e,t),e.prototype[c.a]=function(){return new f(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new u.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new u.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new u.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new u.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new u.a;return this.hasError?(t.error(this.thrownError),a.a.EMPTY):this.isStopped?(t.complete(),a.a.EMPTY):(this.observers.push(t),new s(this,t))},e.prototype.asObservable=function(){var t=new o.a;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(o.a),h=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.__extends(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):a.a.EMPTY},e}(l)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),o=n(13);function i(t,e){return new r.a((function(n){var r=new o.a,i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),o=function(t){function e(e,n,r){var o=t.call(this)||this;return o.parent=e,o.outerValue=n,o.outerIndex=r,o.index=0,o}return r.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(7).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(96),o=n(132);function i(){return Object(o.a)(1)}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i()(r.a.apply(void 0,t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(59),o=n(99),i=n(93);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r.a)(n)?(t.pop(),Object(i.a)(t,n)):Object(o.a)(t)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return u}));var r=n(228),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function u(t,e,n){var o;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(u)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var s=t,c=e,f=[],l=f,h=!1;function p(){l===f&&(l=f.slice())}function d(){if(h)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function b(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(h)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var e=!0;return p(),l.push(t),function(){if(e){if(h)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");e=!1,p();var n=l.indexOf(t);l.splice(n,1),f=null}}}function v(t){if(!a(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,c=s(c,t)}finally{h=!1}for(var e=f=l,n=0;n<e.length;n++){(0,e[n])()}return t}function y(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");s=t,v({type:i.REPLACE})}function _(){var t,e=b;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(d())}return n(),{unsubscribe:e(n)}}})[r.a]=function(){return this},t}return v({type:i.INIT}),(o={dispatch:v,subscribe:b,getState:d,replaceReducer:y})[r.a]=_,o}function s(t,e){return function(){return e(t.apply(this,arguments))}}function c(t,e){if("function"==typeof t)return s(t,e);if("object"!=typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in t){var o=t[r];"function"==typeof o&&(n[r]=s(o,e))}return n}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(n,!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function d(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(o)}));return h({},n,{dispatch:r=p.apply(void 0,i)(n.dispatch)})}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),o=n(124),i=n(93);function a(t,e){return e?Object(i.a)(t,e):new r.a(Object(o.a)(t))}},function(t,e,n){var r=n(66),o=n(51),i=n(58);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==r(t)}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r,o=n(118),i=n(96),a=n(8);function u(t){var e=t.error;t.subscriber.error(e)}r||(r={});var s=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return t=this.error,e?new a.a((function(n){return e.schedule(u,0,{error:t,subscriber:n})})):new a.a((function(e){return e.error(t)}));case"C":return Object(o.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8),o=n(59),i=n(132),a=n(99);function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,u=null,s=t[t.length-1];return Object(o.a)(s)?(u=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof s&&(n=t.pop()),null===u&&1===t.length&&t[0]instanceof r.a?t[0]:Object(i.a)(n)(Object(a.a)(t,u))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(112),o=new(n(111).a)(r.a)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),o=n(35),i=n(94),a=n(34),u=n(10),s=n(64);function c(t,e){return"function"==typeof e?function(n){return n.pipe(c((function(n,r){return Object(s.a)(t(n,r)).pipe(Object(u.a)((function(t,o){return e(n,t,r,o)})))})))}:function(e){return e.lift(new f(t))}}var f=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project))},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new i.a(this,e,n),u=this.destination;u.add(o),this.innerSubscription=Object(a.a)(this,t,void 0,void 0,o),this.innerSubscription!==o&&u.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(o.a)},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(144);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),i=function(t){function e(n,r){void 0===r&&(r=o.now);var i=t.call(this,n,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return r.__extends(e,t),e.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,o):t.prototype.schedule.call(this,n,r,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(o)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(13).a))},,function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),o=n(30);function i(t,e){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return t(n.current)}));return[Object(r.useRef)((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];n.current.next(e?e(t):t[0])})).current,i.current]}},function(t,e,n){var r=n(62).Symbol;t.exports=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=n(8),o=new r.a((function(t){return t.complete()}));function i(t){return t?function(t){return new r.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):o}},,function(t,e,n){var r=n(88)(Object,"create");t.exports=r},function(t,e,n){var r=n(158);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(352);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(124),o=n(48),i=n(67),a=n(47),u=n(123),s=n(125),c=n(114),f=function(t){if(t&&"function"==typeof t[a.a])return f=t,function(t){var e=f[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(u.a)(t))return Object(r.a)(t);if(Object(s.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,o.a),t};if(t&&"function"==typeof t[i.a])return e=t,function(t){for(var n=e[i.a]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,f,l=Object(c.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+l+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(t,e,n){"use strict";function r(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.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),o=n(35),i=n(34);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new u(r,n))}}var u=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.observables,this.project))},t}(),s=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.observables=n,o.project=r,o.toRespond=[];var a=n.length;o.values=new Array(a);for(var u=0;u<a;u++)o.toRespond.push(u);for(u=0;u<a;u++){var s=n[u];o.add(Object(i.a)(o,s,s,u))}return o}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e;var i=this.toRespond;if(i.length>0){var a=i.indexOf(n);-1!==a&&i.splice(a,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.a)},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),o=n(308),i=n(30);function a(t,e){if(!e)return Object(i.e)(t).current;var n=Object(i.e)((function(){return new o.a(e)})),a=Object(i.e)((function(){return t(n.current)})),u=Object(r.useRef)(!0);return Object(r.useEffect)((function(){u.current?u.current=!1:n.current.next(e)}),e),a.current}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(145),o=n(115);function i(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(o.a,t)}},,function(t,e,n){var r=n(203),o=n(208),i=n(393);t.exports=function(t,e){var n={};return e=i(e,3),o(t,(function(t,o,i){r(n,o,e(t,o,i))})),n}},,,function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(346),o=n(347),i=n(348),a=n(349),u=n(350);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=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(127);function o(t,e){if(t){if("string"==typeof t)return Object(r.a)(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)?Object(r.a)(t,e):void 0}}},,,,function(t,e,n){var r=n(51),o=n(162),i=n(332),a=n(257);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,n){var r=n(66),o=n(58);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),o=n(34),i=n(35),a=n(94),u=n(10),s=n(64);function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c((function(n,r){return Object(s.a)(t(n,r)).pipe(Object(u.a)((function(t,o){return e(n,t,r,o)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new f(t,n))})}var f=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent))},t}(),l=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new a.a(this,e,n),i=this.destination;i.add(r);var u=Object(o.a)(this,t,void 0,void 0,r);u!==r&&i.add(u)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(54);function o(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},,,,,function(t,e,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(t,e,n){var r=n(255),o=n(328),i=n(153);t.exports=function(t){return i(t)?r(t):o(t)}},function(t,e,n){var r=n(200),o=n(157);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e,n){"use strict";t.exports=n(509)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8),o=n(106),i=n(146),a=n(59);function u(t,e,n){void 0===t&&(t=0);var u=-1;return Object(i.a)(e)?u=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=o.a),new r.a((function(e){var r=Object(i.a)(t)?t:+t-n.now();return n.schedule(s,r,{index:0,period:u,subscriber:e})}))}function s(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=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){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(10);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Object(r.a)(i(t,n))(e)}}function i(t,e){return function(n){for(var r=n,o=0;o<e;o++){var i=null!=r?r[t[o]]:void 0;if(void 0===i)return;r=i}return r}}},function(t,e,n){var r=n(51),o=n(144),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(335),o=n(351),i=n(353),a=n(354),u=n(355);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=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,n){var r=n(88)(n(62),"Map");t.exports=r},,,,,,function(t,e,n){"use strict";var r=n(154),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function s(t){return r.isMemo(t)?a:u[t.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var c=Object.defineProperty,f=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(d){var o=p(n);o&&o!==d&&t(e,o,r)}var a=f(n);l&&(a=a.concat(l(n)));for(var u=s(e),b=s(n),v=0;v<a.length;++v){var y=a[v];if(!(i[y]||r&&r[y]||b&&b[y]||u&&u[y])){var _=h(n,y);try{c(e,y,_)}catch(t){}}}}return e}},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=n(7);function i(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.compare,this.keySelector))},t}(),u=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return r.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(o.a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasOwnProperty=Object.prototype.hasOwnProperty},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(6);function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){Object(r.a)(t,e,n[e])}))}return t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),o=n(106);var i=n(7),a=n(103);function u(t,e){void 0===e&&(e=o.a);var n,r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new s(r,e))}}var s=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))},t}(),c=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.delay=n,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return r.__extends(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,o=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var i=Math.max(0,n[0].time-r.now());this.schedule(t,i)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new f(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()},e}(i.a),f=function(){return function(t,e){this.time=t,this.notification=e}}()},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Object(o.useRef)(t);n.current=t;var i=Object(r.d)(),a=Object(o.useRef)(),u=Object(o.useRef)();if(Object(o.useEffect)((function(){u.current=null;var t=n.current[0],e=t.subscribe({next:function(e){if(t===n.current[0])return n.current[1]?n.current[1](e):void 0},error:function(e){if(t===n.current[0]){if(n.current[2])return u.current=null,n.current[2](e);u.current=e,i()}},complete:function(){if(t===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=e,function(){e.unsubscribe()}}),[t[0]]),u.current)throw u.current;return a}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.hasOwnProperty.call(t,n)&&r(e,t,n);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.ResizeReporter=void 0;const a=i(n(0)),u=(n(591),{overflow:"hidden",position:"absolute",zIndex:-1e3,top:0,right:0,width:"100%",height:"100%",opacity:0,pointerEvents:"none"}),s={transition:"0s",animation:"none"},c={transition:"0s",animation:"none",width:"250%",height:"250%"};class f extends a.PureComponent{constructor(){super(...arguments),this.containerRef=a.default.createRef(),this.lastWidth=-1,this.lastHeight=-1,this.resetPosition=(t,e,n)=>{const r=t.firstChild,o=r.nextSibling,i=r.firstChild;i.style.width=e+1e3+"px",i.style.height=n+1e3+"px",this._setScrollPositionTicket=window.setTimeout(()=>{r.scrollLeft=e+1e3,r.scrollTop=n+1e3,o.scrollLeft=2.5*e,o.scrollTop=2.5*n},0)},this.checkSize=()=>{if(this.containerRef.current){const t=this.containerRef.current.parentElement;if(t){const e=t.getBoundingClientRect(),{width:n,height:r}=e;this.props.onSizeChanged&&(n===this.lastWidth&&r===this.lastHeight||this.props.onSizeChanged(n,r,e)),this.props.onWidthChanged&&n!==this.lastWidth&&this.props.onWidthChanged(n,e),this.props.onHeightChanged&&r!==this.lastHeight&&this.props.onHeightChanged(r,e),this.resetPosition(this.containerRef.current,n,r),this.lastWidth=n,this.lastHeight=r}}},this.onScroll=()=>{this._debounceTicket&&(window.clearTimeout(this._debounceTicket),this._debounceTicket=null),this._debounceTicket=window.setTimeout(this.checkSize,this.props.debounce||0)}}componentDidMount(){if(this.containerRef.current){const t=this.containerRef.current.parentElement;if(t)if(this.props.reportInit)this.checkSize();else{const e=t.getBoundingClientRect();this.lastWidth=e.width,this.lastHeight=e.height,this.resetPosition(this.containerRef.current,this.lastWidth,this.lastHeight)}}}componentWillUnmount(){this._debounceTicket&&(window.clearTimeout(this._debounceTicket),this._debounceTicket=null),this._setScrollPositionTicket&&(window.clearTimeout(this._setScrollPositionTicket),this._setScrollPositionTicket=null)}render(){const{reportInit:t,debounce:e,onSizeChanged:n,onWidthChanged:r,onHeightChanged:o,children:i,...f}=this.props;return a.default.createElement("div",Object.assign({"aria-hidden":!0,"aria-label":"react-resize-reporter",tabIndex:-1},f,{ref:this.containerRef}),a.default.createElement("div",{style:u,onScroll:this.onScroll},a.default.createElement("div",{style:s})),a.default.createElement("div",{style:u,onScroll:this.onScroll},a.default.createElement("div",{style:c})),i)}}e.ResizeReporter=f,e.default=f},,,,,,,,function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var o=65535&t|0,i=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(o=o+e[r++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16|0}},function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,o){var i=r,a=o+n;t^=-1;for(var u=o;u<a;u++)t=t>>>8^i[255&(t^e[u])];return-1^t}},function(t,e,n){"use strict";var r=n(65),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(t){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){i=!1}for(var a=new r.Buf8(256),u=0;u<256;u++)a[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;function s(t,e){if(e<65534&&(t.subarray&&i||!t.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,e.string2buf=function(t){var e,n,o,i,a,u=t.length,s=0;for(i=0;i<u;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<u&&56320==(64512&(o=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(s),a=0,i=0;a<s;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<u&&56320==(64512&(o=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),n<128?e[a++]=n:n<2048?(e[a++]=192|n>>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return s(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,o=e.length;n<o;n++)e[n]=t.charCodeAt(n);return e},e.buf2string=function(t,e){var n,r,o,i,u=e||t.length,c=new Array(2*u);for(r=0,n=0;n<u;)if((o=t[n++])<128)c[r++]=o;else if((i=a[o])>4)c[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&n<u;)o=o<<6|63&t[n++],i--;i>1?c[r++]=65533:o<65536?c[r++]=o:(o-=65536,c[r++]=55296|o>>10&1023,c[r++]=56320|1023&o)}return s(c,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,n){var r=n(323),o=n(58),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},function(t,e,n){(function(t){var r=n(62),o=n(326),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===i?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;t.exports=s}).call(this,n(183)(t))},function(t,e,n){var r=n(66),o=n(109);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(143),o=n(110);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e,n){var r=n(212);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},,,,,function(t,e,n){var r=n(321),o=n(152);t.exports=function(t,e){return t&&r(t,e,o)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(327),o=n(243),i=n(244),a=i&&i.isTypedArray,u=a?o(a):r;t.exports=u},function(t,e){var n=Function.prototype.toString;t.exports=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(88),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){var r=n(401),o=n(58);t.exports=function t(e,n,i,a,u){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,u))}},function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(422)(n(427));t.exports=r},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(20),a=n(26),u=n.n(a),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t,e){return t(e={exports:{}},e.exports),e.exports}var f=c((function(t){function e(){return t.exports=e=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},e.apply(this,arguments)}t.exports=e})),l=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()},h=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},p=c((function(t){!function(e){var n=function(t,e,r){if(!s(e)||f(e)||l(e)||h(e)||u(e))return e;var o,i=0,a=0;if(c(e))for(o=[],a=e.length;i<a;i++)o.push(n(t,e[i],r));else for(var p in o={},e)Object.prototype.hasOwnProperty.call(e,p)&&(o[t(p,r)]=n(t,e[p],r));return o},r=function(t){return p(t)?t:(t=t.replace(/[\-_\s]+(.)?/g,(function(t,e){return e?e.toUpperCase():""}))).substr(0,1).toLowerCase()+t.substr(1)},o=function(t){var e=r(t);return e.substr(0,1).toUpperCase()+e.substr(1)},i=function(t,e){return function(t,e){var n=(e=e||{}).separator||"_",r=e.split||/(?=[A-Z])/;return t.split(r).join(n)}(t,e).toLowerCase()},a=Object.prototype.toString,u=function(t){return"function"==typeof t},s=function(t){return t===Object(t)},c=function(t){return"[object Array]"==a.call(t)},f=function(t){return"[object Date]"==a.call(t)},l=function(t){return"[object RegExp]"==a.call(t)},h=function(t){return"[object Boolean]"==a.call(t)},p=function(t){return(t-=0)==t},d=function(t,e){var n=e&&"process"in e?e.process:e;return"function"!=typeof n?t:function(e,r){return n(e,t,r)}},b={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(t,e){return n(d(r,e),t)},decamelizeKeys:function(t,e){return n(d(i,e),t,e)},pascalizeKeys:function(t,e){return n(d(o,e),t)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=b:e.humps=b}(s)})).decamelize;function d(t){var e=t.root,n=t.children;return Object(i.createPortal)(n,e)}d.propTypes={root:u.a.object.isRequired,children:u.a.node.isRequired};var b=new Map;var v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Proxy(t,{get:function(t,e){var n,i,a=p(e,{separator:"-"});return b.has(a)||b.set(a,(n={tag:a},(i=Object(r.forwardRef)((function(t,e){var i=t.mode,a=t.delegatesFocus,u=t.styleSheets,s=t.children,c=h(t,["mode","delegatesFocus","styleSheets","children"]),p=Object(r.useState)(null),b=l(p,2),v=b[0],y=b[1],_=Object(r.useState)(null),m=l(_,2),g=m[0],w=m[1];return Object(r.useEffect)((function(){if(v){var t=v.attachShadow({mode:i,delegatesFocus:a});u.length>0&&(t.adoptedStyleSheets=u),e&&"function"==typeof e&&e(v),e&&"current"in e&&(e.current=v),w(t)}}),[v]),o.a.createElement(n.tag,f({ref:y},c),g&&o.a.createElement(d,{root:g},s))}))).propTypes={mode:u.a.oneOf(["open","closed"]),delegatesFocus:u.a.bool,styleSheets:u.a.arrayOf(u.a.string),children:u.a.node.isRequired},i.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[]},i)),b.get(a)}})}();e.a=v},,,function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(a=r,u=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(s," */")),i=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(i).concat([o]).join("\n")}var a,u,s;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var u=0;u<t.length;u++){var s=[].concat(t[u]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),e.push(s))}},e}},function(t,e,n){var r=n(138),o=n(396),i=n(397),a=n(398),u=n(399),s=n(400);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,t.exports=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createActionCreator=function(t){return(...e)=>{switch(e.length){case 0:return{type:t};case 1:return{type:t,payload:e[0]};default:return{type:t,payload:e[0],meta:e[1]}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(177);e.createDefaultActionCreators=function(t,e,n){const o={};if(n)for(const t in n)r.hasOwnProperty.call(n,t)&&(o[t]=n[t]);for(const i in e)r.hasOwnProperty.call(e,i)&&(n&&r.hasOwnProperty.call(o,i)||(o[i]=t(i)));return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createActionCreator=function(t){return(...e)=>{switch(e.length){case 0:return{type:t};case 1:return{type:t,payload:e[0]};case 2:return{type:t,payload:e[0],error:e[1]};default:return{type:t,payload:e[0],error:e[1],meta:e[2]}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineObjects=function(...t){return Object.assign({},...t)}},,function(t,e,n){"use strict";(function(t){var r,o=n(362);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:t;var i=Object(o.a)(r);e.a=i}).call(this,n(510)(t))},,,function(t,e,n){var r=n(402),o=n(405),i=n(406);t.exports=function(t,e,n,a,u,s){var c=1&n,f=t.length,l=e.length;if(f!=l&&!(c&&l>f))return!1;var h=s.get(t);if(h&&s.get(e))return h==e;var p=-1,d=!0,b=2&n?new r:void 0;for(s.set(t,e),s.set(e,t);++p<f;){var v=t[p],y=e[p];if(a)var _=c?a(y,v,p,e,t,s):a(v,y,p,t,e,s);if(void 0!==_){if(_)continue;d=!1;break}if(b){if(!o(e,(function(t,e){if(!i(b,e)&&(v===t||u(v,t,n,a,s)))return b.push(e)}))){d=!1;break}}else if(v!==y&&!u(v,y,n,a,s)){d=!1;break}}return s.delete(t),s.delete(e),d}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},function(t,e,n){var r=n(109);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8);var o=n(0),i=n(182),a=n(30);function u(t,e){var n,u,s,c=Object(o.useState)(e),f=c[0],l=c[1];if((s=t)&&(s instanceof r.a||"function"==typeof s.lift&&"function"==typeof s.subscribe))u=t;else{var h=t,p=Object(a.e)(a.a);u=Object(a.e)((function(){return h(p.current,f)})).current,n=Object(o.useRef)((function(t){return p.current.next(t)})).current}return Object(i.a)(u,l),Object(o.useDebugValue)(f),n?[f,n]:f}},,,function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(198),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u}).call(this,n(183)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(203),o=n(158),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},,function(t,e,n){"use strict";function r(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(o){return"function"==typeof o?o(n,r,t):e(o)}}}}var o=r();o.withExtraArgument=r,e.a=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(514);e.createActionCreator=r.createActionCreator,e.createActionCreators=r.createActionCreators,e.proxyActionCreators=r.proxyActionCreators;var o=n(517);e.createFSACreator=o.createActionCreator,e.createFSACreators=o.createActionCreators,e.proxyFSACreators=o.proxyActionCreators;var i=n(226);e.combineObjects=i.combineObjects;var a=n(520);e.combineUniqueObjects=a.combineUniqueObjects;var u=n(361);e.proxyCombineObjects=u.proxyCombineObjects;var s=n(521);e.proxyCombineUniqueObjects=s.proxyCombineUniqueObjects;var c=n(522);e.createReducer=c.createReducer},,,,,function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(209),o=n(197),i=n(51),a=n(199),u=n(156),s=n(210),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),f=!n&&o(t),l=!n&&!f&&a(t),h=!n&&!f&&!l&&s(t),p=n||f||l||h,d=p?r(t.length,String):[],b=d.length;for(var v in t)!e&&!c.call(t,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,b))||d.push(v);return d}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(356);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(411),o=n(164),i=n(412),a=n(413),u=n(414),s=n(66),c=n(211),f=c(r),l=c(o),h=c(i),p=c(a),d=c(u),b=s;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=b(new o)||i&&"[object Promise]"!=b(i.resolve())||a&&"[object Set]"!=b(new a)||u&&"[object WeakMap]"!=b(new u))&&(b=function(t){var e=s(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case f:return"[object DataView]";case l:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=b},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,u,s=a(t),c=1;c<arguments.length;c++){for(var f in n=Object(arguments[c]))o.call(n,f)&&(s[f]=n[f]);if(r){u=r(n);for(var l=0;l<u.length;l++)i.call(n,u[l])&&(s[u[l]]=n[u[l]])}}return s}},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),o=n(91),i=n(69),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.a)},,,,function(t,e,n){"use strict";var r=n(313),o=n(65),i=n(194),a=n(151),u=n(195),s=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?i.string2buf(e.dictionary):"[object ArrayBuffer]"===s.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=r.deflateSetDictionary(this.strm,f)))throw new Error(a[n]);this._dict_set=!0}}function f(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}c.prototype.push=function(t,e){var n,a,u=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?u.input=i.string2buf(t):"[object ArrayBuffer]"===s.call(t)?u.input=new Uint8Array(t):u.input=t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new o.Buf8(c),u.next_out=0,u.avail_out=c),1!==(n=r.deflate(u,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==u.avail_out&&(0!==u.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(u.output,u.next_out))):this.onData(o.shrinkBuf(u.output,u.next_out)))}while((u.avail_in>0||0===u.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),u.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=c,e.deflate=f,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},function(t,e,n){"use strict";var r,o=n(65),i=n(314),a=n(192),u=n(193),s=n(151);function c(t,e){return t.msg=s[e],e}function f(t){return(t<<1)-(t>4?9:0)}function l(t){for(var e=t.length;--e>=0;)t[e]=0}function h(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(o.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function p(t,e){i._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,h(t.strm)}function d(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function v(t,e){var n,r,o=t.max_chain_length,i=t.strstart,a=t.prev_length,u=t.nice_match,s=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,f=t.w_mask,l=t.prev,h=t.strstart+258,p=c[i+a-1],d=c[i+a];t.prev_length>=t.good_match&&(o>>=2),u>t.lookahead&&(u=t.lookahead);do{if(c[(n=e)+a]===d&&c[n+a-1]===p&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<h);if(r=258-(h-i),i=h-258,r>a){if(t.match_start=e,a=r,r>=u)break;p=c[i+a-1],d=c[i+a]}}}while((e=l[e&f])>s&&0!=--o);return a<=t.lookahead?a:t.lookahead}function y(t){var e,n,r,i,s,c,f,l,h,p,d=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-262)){o.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=d?r-d:0}while(--n);e=n=d;do{r=t.prev[--e],t.prev[e]=r>=d?r-d:0}while(--n);i+=d}if(0===t.strm.avail_in)break;if(c=t.strm,f=t.window,l=t.strstart+t.lookahead,h=i,p=void 0,(p=c.avail_in)>h&&(p=h),n=0===p?0:(c.avail_in-=p,o.arraySet(f,c.input,c.next_in,p,l),1===c.state.wrap?c.adler=a(c.adler,f,p,l):2===c.state.wrap&&(c.adler=u(c.adler,f,p,l)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=n,t.lookahead+t.insert>=3)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+3-1])&t.hash_mask,t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function _(t,e){for(var n,r;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=v(t,n)),t.match_length>=3)if(r=i._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}function m(t,e){for(var n,r,o;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=v(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){o=t.strstart+t.lookahead-3,r=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=o&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(p(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=i._tr_tally(t,0,t.window[t.strstart-1]))&&p(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=i._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}function g(t,e,n,r,o){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=o}function w(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),l(this.dyn_ltree),l(this.dyn_dtree),l(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),l(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),l(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,i._tr_init(e),0):c(t,-2)}function O(t){var e,n=x(t);return 0===n&&((e=t.state).window_size=2*e.w_size,l(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function j(t,e,n,r,i,a){if(!t)return-2;var u=1;if(-1===e&&(e=6),r<0?(u=0,r=-r):r>15&&(u=2,r-=16),i<1||i>9||8!==n||r<8||r>15||e<0||e>9||a<0||a>4)return c(t,-2);8===r&&(r=9);var s=new w;return t.state=s,s.strm=t,s.wrap=u,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new o.Buf8(2*s.w_size),s.head=new o.Buf16(s.hash_size),s.prev=new o.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new o.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=a,s.method=n,O(t)}r=[new g(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,p(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(p(t,!1),t.strm.avail_out),1)})),new g(4,4,8,4,_),new g(4,5,16,8,_),new g(4,6,32,32,_),new g(4,4,16,16,m),new g(8,16,32,32,m),new g(8,16,128,128,m),new g(8,32,128,256,m),new g(32,128,258,1024,m),new g(32,258,258,4096,m)],e.deflateInit=function(t,e){return j(t,e,8,15,8,0)},e.deflateInit2=j,e.deflateReset=O,e.deflateResetKeep=x,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var n,o,a,s;if(!t||!t.state||e>5||e<0)return t?c(t,-2):-2;if(o=t.state,!t.output||!t.input&&0!==t.avail_in||666===o.status&&4!==e)return c(t,0===t.avail_out?-5:-2);if(o.strm=t,n=o.last_flush,o.last_flush=e,42===o.status)if(2===o.wrap)t.adler=0,d(o,31),d(o,139),d(o,8),o.gzhead?(d(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),d(o,255&o.gzhead.time),d(o,o.gzhead.time>>8&255),d(o,o.gzhead.time>>16&255),d(o,o.gzhead.time>>24&255),d(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),d(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(d(o,255&o.gzhead.extra.length),d(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(t.adler=u(t.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(d(o,0),d(o,0),d(o,0),d(o,0),d(o,0),d(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),d(o,3),o.status=113);else{var v=8+(o.w_bits-8<<4)<<8;v|=(o.strategy>=2||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(v|=32),v+=31-v%31,o.status=113,b(o,v),0!==o.strstart&&(b(o,t.adler>>>16),b(o,65535&t.adler)),t.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(t.adler=u(t.adler,o.pending_buf,o.pending-a,a)),h(t),a=o.pending,o.pending!==o.pending_buf_size));)d(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(t.adler=u(t.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(t.adler=u(t.adler,o.pending_buf,o.pending-a,a)),h(t),a=o.pending,o.pending===o.pending_buf_size)){s=1;break}s=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,d(o,s)}while(0!==s);o.gzhead.hcrc&&o.pending>a&&(t.adler=u(t.adler,o.pending_buf,o.pending-a,a)),0===s&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(t.adler=u(t.adler,o.pending_buf,o.pending-a,a)),h(t),a=o.pending,o.pending===o.pending_buf_size)){s=1;break}s=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,d(o,s)}while(0!==s);o.gzhead.hcrc&&o.pending>a&&(t.adler=u(t.adler,o.pending_buf,o.pending-a,a)),0===s&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&h(t),o.pending+2<=o.pending_buf_size&&(d(o,255&t.adler),d(o,t.adler>>8&255),t.adler=0,o.status=113)):o.status=113),0!==o.pending){if(h(t),0===t.avail_out)return o.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(n)&&4!==e)return c(t,-5);if(666===o.status&&0!==t.avail_in)return c(t,-5);if(0!==t.avail_in||0!==o.lookahead||0!==e&&666!==o.status){var _=2===o.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(o,e):3===o.strategy?function(t,e){for(var n,r,o,a,u=t.window;;){if(t.lookahead<=258){if(y(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=u[o=t.strstart-1])===u[++o]&&r===u[++o]&&r===u[++o]){a=t.strstart+258;do{}while(r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&o<a);t.match_length=258-(a-o),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=i._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(o,e):r[o.level].func(o,e);if(3!==_&&4!==_||(o.status=666),1===_||3===_)return 0===t.avail_out&&(o.last_flush=-1),0;if(2===_&&(1===e?i._tr_align(o):5!==e&&(i._tr_stored_block(o,0,0,!1),3===e&&(l(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),h(t),0===t.avail_out))return o.last_flush=-1,0}return 4!==e?0:o.wrap<=0?1:(2===o.wrap?(d(o,255&t.adler),d(o,t.adler>>8&255),d(o,t.adler>>16&255),d(o,t.adler>>24&255),d(o,255&t.total_in),d(o,t.total_in>>8&255),d(o,t.total_in>>16&255),d(o,t.total_in>>24&255)):(b(o,t.adler>>>16),b(o,65535&t.adler)),h(t),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?c(t,-2):(t.state=null,113===e?c(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var n,r,i,u,s,c,f,h,p=e.length;if(!t||!t.state)return-2;if(2===(u=(n=t.state).wrap)||1===u&&42!==n.status||n.lookahead)return-2;for(1===u&&(t.adler=a(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===u&&(l(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new o.Buf8(n.w_size),o.arraySet(h,e,p-n.w_size,n.w_size,0),e=h,p=n.w_size),s=t.avail_in,c=t.next_in,f=t.input,t.avail_in=p,t.next_in=0,t.input=e,y(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=2,y(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=c,t.input=f,t.avail_in=s,n.wrap=u,0},e.deflateInfo="pako deflate (from Nodeca project)"},function(t,e,n){"use strict";var r=n(65);function o(t){for(var e=t.length;--e>=0;)t[e]=0}var i=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],s=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);o(c);var f=new Array(60);o(f);var l=new Array(512);o(l);var h=new Array(256);o(h);var p=new Array(29);o(p);var d,b,v,y=new Array(30);function _(t,e,n,r,o){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function g(t){return t<256?l[t]:l[256+(t>>>7)]}function w(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function O(t,e,n){x(t,n[2*e],n[2*e+1])}function j(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function S(t,e,n){var r,o,i=new Array(16),a=0;for(r=1;r<=15;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=e;o++){var u=t[2*o+1];0!==u&&(t[2*o]=j(i[u]++,u))}}function E(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function k(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function C(t,e,n,r){var o=2*e,i=2*n;return t[o]<t[i]||t[o]===t[i]&&r[e]<=r[n]}function T(t,e,n){for(var r=t.heap[n],o=n<<1;o<=t.heap_len&&(o<t.heap_len&&C(e,t.heap[o+1],t.heap[o],t.depth)&&o++,!C(e,r,t.heap[o],t.depth));)t.heap[n]=t.heap[o],n=o,o<<=1;t.heap[n]=r}function P(t,e,n){var r,o,u,s,c=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*c]<<8|t.pending_buf[t.d_buf+2*c+1],o=t.pending_buf[t.l_buf+c],c++,0===r?O(t,o,e):(O(t,(u=h[o])+256+1,e),0!==(s=i[u])&&x(t,o-=p[u],s),O(t,u=g(--r),n),0!==(s=a[u])&&x(t,r-=y[u],s))}while(c<t.last_lit);O(t,256,e)}function A(t,e){var n,r,o,i=e.dyn_tree,a=e.stat_desc.static_tree,u=e.stat_desc.has_stree,s=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<s;n++)0!==i[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):i[2*n+1]=0;for(;t.heap_len<2;)i[2*(o=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[o]=0,t.opt_len--,u&&(t.static_len-=a[2*o+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)T(t,i,n);o=s;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],T(t,i,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,i[2*o]=i[2*n]+i[2*r],t.depth[o]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,i[2*n+1]=i[2*r+1]=o,t.heap[1]=o++,T(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,o,i,a,u,s=e.dyn_tree,c=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,d=e.stat_desc.max_length,b=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(s[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(i=s[2*s[2*(r=t.heap[n])+1]+1]+1)>d&&(i=d,b++),s[2*r+1]=i,r>c||(t.bl_count[i]++,a=0,r>=p&&(a=h[r-p]),u=s[2*r],t.opt_len+=u*(i+a),l&&(t.static_len+=u*(f[2*r+1]+a)));if(0!==b){do{for(i=d-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[d]--,b-=2}while(b>0);for(i=d;0!==i;i--)for(r=t.bl_count[i];0!==r;)(o=t.heap[--n])>c||(s[2*o+1]!==i&&(t.opt_len+=(i-s[2*o+1])*s[2*o],s[2*o+1]=i),r--)}}(t,e),S(i,c,t.bl_count)}function N(t,e,n){var r,o,i=-1,a=e[1],u=0,s=7,c=4;for(0===a&&(s=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=e[2*(r+1)+1],++u<s&&o===a||(u<c?t.bl_tree[2*o]+=u:0!==o?(o!==i&&t.bl_tree[2*o]++,t.bl_tree[32]++):u<=10?t.bl_tree[34]++:t.bl_tree[36]++,u=0,i=o,0===a?(s=138,c=3):o===a?(s=6,c=3):(s=7,c=4))}function z(t,e,n){var r,o,i=-1,a=e[1],u=0,s=7,c=4;for(0===a&&(s=138,c=3),r=0;r<=n;r++)if(o=a,a=e[2*(r+1)+1],!(++u<s&&o===a)){if(u<c)do{O(t,o,t.bl_tree)}while(0!=--u);else 0!==o?(o!==i&&(O(t,o,t.bl_tree),u--),O(t,16,t.bl_tree),x(t,u-3,2)):u<=10?(O(t,17,t.bl_tree),x(t,u-3,3)):(O(t,18,t.bl_tree),x(t,u-11,7));u=0,i=o,0===a?(s=138,c=3):o===a?(s=6,c=3):(s=7,c=4)}}o(y);var R=!1;function I(t,e,n,o){x(t,0+(o?1:0),3),function(t,e,n,o){k(t),o&&(w(t,n),w(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}e._tr_init=function(t){R||(!function(){var t,e,n,r,o,s=new Array(16);for(n=0,r=0;r<28;r++)for(p[r]=n,t=0;t<1<<i[r];t++)h[n++]=r;for(h[n-1]=r,o=0,r=0;r<16;r++)for(y[r]=o,t=0;t<1<<a[r];t++)l[o++]=r;for(o>>=7;r<30;r++)for(y[r]=o<<7,t=0;t<1<<a[r]-7;t++)l[256+o++]=r;for(e=0;e<=15;e++)s[e]=0;for(t=0;t<=143;)c[2*t+1]=8,t++,s[8]++;for(;t<=255;)c[2*t+1]=9,t++,s[9]++;for(;t<=279;)c[2*t+1]=7,t++,s[7]++;for(;t<=287;)c[2*t+1]=8,t++,s[8]++;for(S(c,287,s),t=0;t<30;t++)f[2*t+1]=5,f[2*t]=j(t,5);d=new _(c,i,257,286,15),b=new _(f,a,0,30,15),v=new _(new Array(0),u,0,19,7)}(),R=!0),t.l_desc=new m(t.dyn_ltree,d),t.d_desc=new m(t.dyn_dtree,b),t.bl_desc=new m(t.bl_tree,v),t.bi_buf=0,t.bi_valid=0,E(t)},e._tr_stored_block=I,e._tr_flush_block=function(t,e,n,r){var o,i,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),A(t,t.l_desc),A(t,t.d_desc),a=function(t){var e;for(N(t,t.dyn_ltree,t.l_desc.max_code),N(t,t.dyn_dtree,t.d_desc.max_code),A(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*s[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(i=t.static_len+3+7>>>3)<=o&&(o=i)):o=i=n+5,n+4<=o&&-1!==e?I(t,e,n,r):4===t.strategy||i===o?(x(t,2+(r?1:0),3),P(t,c,f)):(x(t,4+(r?1:0),3),function(t,e,n,r){var o;for(x(t,e-257,5),x(t,n-1,5),x(t,r-4,4),o=0;o<r;o++)x(t,t.bl_tree[2*s[o]+1],3);z(t,t.dyn_ltree,e-1),z(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),P(t,t.dyn_ltree,t.dyn_dtree)),E(t),r&&k(t)},e._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(h[n]+256+1)]++,t.dyn_dtree[2*g(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),O(t,256,c),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){"use strict";var r=n(316),o=n(65),i=n(194),a=n(196),u=n(151),s=n(195),c=n(319),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(u[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=i.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(u[n])}function h(t,e){var n=new l(e);if(n.push(t,!0),n.err)throw n.msg||u[n.err];return n.result}l.prototype.push=function(t,e){var n,u,s,c,l,h=this.strm,p=this.options.chunkSize,d=this.options.dictionary,b=!1;if(this.ended)return!1;u=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?h.input=i.binstring2buf(t):"[object ArrayBuffer]"===f.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new o.Buf8(p),h.next_out=0,h.avail_out=p),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&d&&(n=r.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===b&&(n=a.Z_OK,b=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||u!==a.Z_FINISH&&u!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(s=i.utf8border(h.output,h.next_out),c=h.next_out-s,l=i.buf2string(h.output,s),h.next_out=c,h.avail_out=p-c,c&&o.arraySet(h.output,h.output,s,c,0),this.onData(l)):this.onData(o.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(b=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(u=a.Z_FINISH),u===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):u!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},function(t,e,n){"use strict";var r=n(65),o=n(192),i=n(193),a=n(317),u=n(318);function s(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(852),e.distcode=e.distdyn=new r.Buf32(592),e.sane=1,e.back=-1,0):-2}function l(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):-2}function h(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,l(t))):-2}function p(t,e){var n,r;return t?(r=new c,t.state=r,r.window=null,0!==(n=h(t,e))&&(t.state=null),n):-2}var d,b,v=!0;function y(t){if(v){var e;for(d=new r.Buf32(512),b=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(u(1,t.lens,0,288,d,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;u(2,t.lens,0,32,b,0,t.work,{bits:5}),v=!1}t.lencode=d,t.lenbits=9,t.distcode=b,t.distbits=5}function _(t,e,n,o){var i,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),o>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>o&&(i=o),r.arraySet(a.window,e,n-o,i,a.wnext),(o-=i)?(r.arraySet(a.window,e,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}e.inflateReset=l,e.inflateReset2=h,e.inflateResetKeep=f,e.inflateInit=function(t){return p(t,15)},e.inflateInit2=p,e.inflate=function(t,e){var n,c,f,l,h,p,d,b,v,m,g,w,x,O,j,S,E,k,C,T,P,A,N,z,R=0,I=new r.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(n=t.state).mode&&(n.mode=13),h=t.next_out,f=t.output,d=t.avail_out,l=t.next_in,c=t.input,p=t.avail_in,b=n.hold,v=n.bits,m=p,g=d,A=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(2&n.wrap&&35615===b){n.check=0,I[0]=255&b,I[1]=b>>>8&255,n.check=i(n.check,I,2,0),b=0,v=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",n.mode=30;break}if(v-=4,P=8+(15&(b>>>=4)),0===n.wbits)n.wbits=P;else if(P>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<P,t.adler=n.check=1,n.mode=512&b?10:12,b=0,v=0;break;case 2:for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(n.flags=b,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(I[0]=255&b,I[1]=b>>>8&255,n.check=i(n.check,I,2,0)),b=0,v=0,n.mode=3;case 3:for(;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.head&&(n.head.time=b),512&n.flags&&(I[0]=255&b,I[1]=b>>>8&255,I[2]=b>>>16&255,I[3]=b>>>24&255,n.check=i(n.check,I,4,0)),b=0,v=0,n.mode=4;case 4:for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(I[0]=255&b,I[1]=b>>>8&255,n.check=i(n.check,I,2,0)),b=0,v=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(I[0]=255&b,I[1]=b>>>8&255,n.check=i(n.check,I,2,0)),b=0,v=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((w=n.length)>p&&(w=p),w&&(n.head&&(P=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,l,w,P)),512&n.flags&&(n.check=i(n.check,c,w,l)),p-=w,l+=w,n.length-=w),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break t;w=0;do{P=c[l+w++],n.head&&P&&n.length<65536&&(n.head.name+=String.fromCharCode(P))}while(P&&w<p);if(512&n.flags&&(n.check=i(n.check,c,w,l)),p-=w,l+=w,P)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break t;w=0;do{P=c[l+w++],n.head&&P&&n.length<65536&&(n.head.comment+=String.fromCharCode(P))}while(P&&w<p);if(512&n.flags&&(n.check=i(n.check,c,w,l)),p-=w,l+=w,P)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(b!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}b=0,v=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}t.adler=n.check=s(b),b=0,v=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=h,t.avail_out=d,t.next_in=l,t.avail_in=p,n.hold=b,n.bits=v,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){b>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}switch(n.last=1&b,v-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6===e){b>>>=2,v-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,b=0,v=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(w=n.length){if(w>p&&(w=p),w>d&&(w=d),0===w)break t;r.arraySet(f,c,l,w,h),p-=w,l+=w,d-=w,h+=w,n.length-=w;break}n.mode=12;break;case 17:for(;v<14;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(n.nlen=257+(31&b),b>>>=5,v-=5,n.ndist=1+(31&b),b>>>=5,v-=5,n.ncode=4+(15&b),b>>>=4,v-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.lens[M[n.have++]]=7&b,b>>>=3,v-=3}for(;n.have<19;)n.lens[M[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},A=u(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,A){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;S=(R=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,E=65535&R,!((j=R>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(E<16)b>>>=j,v-=j,n.lens[n.have++]=E;else{if(16===E){for(z=j+2;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(b>>>=j,v-=j,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}P=n.lens[n.have-1],w=3+(3&b),b>>>=2,v-=2}else if(17===E){for(z=j+3;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}v-=j,P=0,w=3+(7&(b>>>=j)),b>>>=3,v-=3}else{for(z=j+7;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}v-=j,P=0,w=11+(127&(b>>>=j)),b>>>=7,v-=7}if(n.have+w>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;w--;)n.lens[n.have++]=P}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,N={bits:n.lenbits},A=u(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,A){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},A=u(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,A){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(p>=6&&d>=258){t.next_out=h,t.avail_out=d,t.next_in=l,t.avail_in=p,n.hold=b,n.bits=v,a(t,g),h=t.next_out,f=t.output,d=t.avail_out,l=t.next_in,c=t.input,p=t.avail_in,b=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;S=(R=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,E=65535&R,!((j=R>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(S&&0==(240&S)){for(k=j,C=S,T=E;S=(R=n.lencode[T+((b&(1<<k+C)-1)>>k)])>>>16&255,E=65535&R,!(k+(j=R>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}b>>>=k,v-=k,n.back+=k}if(b>>>=j,v-=j,n.back+=j,n.length=E,0===S){n.mode=26;break}if(32&S){n.back=-1,n.mode=12;break}if(64&S){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&S,n.mode=22;case 22:if(n.extra){for(z=n.extra;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;S=(R=n.distcode[b&(1<<n.distbits)-1])>>>16&255,E=65535&R,!((j=R>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(0==(240&S)){for(k=j,C=S,T=E;S=(R=n.distcode[T+((b&(1<<k+C)-1)>>k)])>>>16&255,E=65535&R,!(k+(j=R>>>24)<=v);){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}b>>>=k,v-=k,n.back+=k}if(b>>>=j,v-=j,n.back+=j,64&S){t.msg="invalid distance code",n.mode=30;break}n.offset=E,n.extra=15&S,n.mode=24;case 24:if(n.extra){for(z=n.extra;v<z;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===d)break t;if(w=g-d,n.offset>w){if((w=n.offset-w)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}w>n.wnext?(w-=n.wnext,x=n.wsize-w):x=n.wnext-w,w>n.length&&(w=n.length),O=n.window}else O=f,x=h-n.offset,w=n.length;w>d&&(w=d),d-=w,n.length-=w;do{f[h++]=O[x++]}while(--w);0===n.length&&(n.mode=21);break;case 26:if(0===d)break t;f[h++]=n.length,d--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===p)break t;p--,b|=c[l++]<<v,v+=8}if(g-=d,t.total_out+=g,n.total+=g,g&&(t.adler=n.check=n.flags?i(n.check,f,g,h-g):o(n.check,f,g,h-g)),g=d,(n.flags?b:s(b))!==n.check){t.msg="incorrect data check",n.mode=30;break}b=0,v=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===p)break t;p--,b+=c[l++]<<v,v+=8}if(b!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}b=0,v=0}n.mode=29;case 29:A=1;break t;case 30:A=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=h,t.avail_out=d,t.next_in=l,t.avail_in=p,n.hold=b,n.bits=v,(n.wsize||g!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&_(t,t.output,t.next_out,g-t.avail_out)?(n.mode=31,-4):(m-=t.avail_in,g-=t.avail_out,t.total_in+=m,t.total_out+=g,n.total+=g,n.wrap&&g&&(t.adler=n.check=n.flags?i(n.check,f,g,t.next_out-g):o(n.check,f,g,t.next_out-g)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===m&&0===g||4===e)&&0===A&&(A=-5),A)},e.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?-2:(n.head=e,e.done=!1,0):-2},e.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?-2:11===n.mode&&o(1,e,r,0)!==n.check?-3:_(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},e.inflateInfo="pako inflate (from Nodeca project)"},function(t,e,n){"use strict";t.exports=function(t,e){var n,r,o,i,a,u,s,c,f,l,h,p,d,b,v,y,_,m,g,w,x,O,j,S,E;n=t.state,r=t.next_in,S=t.input,o=r+(t.avail_in-5),i=t.next_out,E=t.output,a=i-(e-t.avail_out),u=i+(t.avail_out-257),s=n.dmax,c=n.wsize,f=n.whave,l=n.wnext,h=n.window,p=n.hold,d=n.bits,b=n.lencode,v=n.distcode,y=(1<<n.lenbits)-1,_=(1<<n.distbits)-1;t:do{d<15&&(p+=S[r++]<<d,d+=8,p+=S[r++]<<d,d+=8),m=b[p&y];e:for(;;){if(p>>>=g=m>>>24,d-=g,0===(g=m>>>16&255))E[i++]=65535&m;else{if(!(16&g)){if(0==(64&g)){m=b[(65535&m)+(p&(1<<g)-1)];continue e}if(32&g){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&m,(g&=15)&&(d<g&&(p+=S[r++]<<d,d+=8),w+=p&(1<<g)-1,p>>>=g,d-=g),d<15&&(p+=S[r++]<<d,d+=8,p+=S[r++]<<d,d+=8),m=v[p&_];n:for(;;){if(p>>>=g=m>>>24,d-=g,!(16&(g=m>>>16&255))){if(0==(64&g)){m=v[(65535&m)+(p&(1<<g)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&m,d<(g&=15)&&(p+=S[r++]<<d,(d+=8)<g&&(p+=S[r++]<<d,d+=8)),(x+=p&(1<<g)-1)>s){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=g,d-=g,x>(g=i-a)){if((g=x-g)>f&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(O=0,j=h,0===l){if(O+=c-g,g<w){w-=g;do{E[i++]=h[O++]}while(--g);O=i-x,j=E}}else if(l<g){if(O+=c+l-g,(g-=l)<w){w-=g;do{E[i++]=h[O++]}while(--g);if(O=0,l<w){w-=g=l;do{E[i++]=h[O++]}while(--g);O=i-x,j=E}}}else if(O+=l-g,g<w){w-=g;do{E[i++]=h[O++]}while(--g);O=i-x,j=E}for(;w>2;)E[i++]=j[O++],E[i++]=j[O++],E[i++]=j[O++],w-=3;w&&(E[i++]=j[O++],w>1&&(E[i++]=j[O++]))}else{O=i-x;do{E[i++]=E[O++],E[i++]=E[O++],E[i++]=E[O++],w-=3}while(w>2);w&&(E[i++]=E[O++],w>1&&(E[i++]=E[O++]))}break}}break}}while(r<o&&i<u);r-=w=d>>3,p&=(1<<(d-=w<<3))-1,t.next_in=r,t.next_out=i,t.avail_in=r<o?o-r+5:5-(r-o),t.avail_out=i<u?u-i+257:257-(i-u),n.hold=p,n.bits=d}},function(t,e,n){"use strict";var r=n(65),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,n,s,c,f,l,h){var p,d,b,v,y,_,m,g,w,x=h.bits,O=0,j=0,S=0,E=0,k=0,C=0,T=0,P=0,A=0,N=0,z=null,R=0,I=new r.Buf16(16),M=new r.Buf16(16),D=null,B=0;for(O=0;O<=15;O++)I[O]=0;for(j=0;j<s;j++)I[e[n+j]]++;for(k=x,E=15;E>=1&&0===I[E];E--);if(k>E&&(k=E),0===E)return c[f++]=20971520,c[f++]=20971520,h.bits=1,0;for(S=1;S<E&&0===I[S];S++);for(k<S&&(k=S),P=1,O=1;O<=15;O++)if(P<<=1,(P-=I[O])<0)return-1;if(P>0&&(0===t||1!==E))return-1;for(M[1]=0,O=1;O<15;O++)M[O+1]=M[O]+I[O];for(j=0;j<s;j++)0!==e[n+j]&&(l[M[e[n+j]]++]=j);if(0===t?(z=D=l,_=19):1===t?(z=o,R-=257,D=i,B-=257,_=256):(z=a,D=u,_=-1),N=0,j=0,O=S,y=f,C=k,T=0,b=-1,v=(A=1<<k)-1,1===t&&A>852||2===t&&A>592)return 1;for(;;){m=O-T,l[j]<_?(g=0,w=l[j]):l[j]>_?(g=D[B+l[j]],w=z[R+l[j]]):(g=96,w=0),p=1<<O-T,S=d=1<<C;do{c[y+(N>>T)+(d-=p)]=m<<24|g<<16|w|0}while(0!==d);for(p=1<<O-1;N&p;)p>>=1;if(0!==p?(N&=p-1,N+=p):N=0,j++,0==--I[O]){if(O===E)break;O=e[n+l[j]]}if(O>k&&(N&v)!==b){for(0===T&&(T=k),y+=S,P=1<<(C=O-T);C+T<E&&!((P-=I[C+T])<=0);)C++,P<<=1;if(A+=1<<C,1===t&&A>852||2===t&&A>592)return 1;c[b=N&v]=k<<24|C<<16|y-f|0}}return 0!==N&&(c[y+N]=O-T<<24|64<<16|0),h.bits=k,0}},function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e,n){var r=n(208),o=n(330)(r);t.exports=o},function(t,e,n){var r=n(322)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===n(i[s],s,i))break}return e}}},function(t,e,n){var r=n(66),o=n(58);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(117),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[u]=n:delete t[u]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(66),o=n(157),i=n(58),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,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(245),o=n(329),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(256)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(153);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,a=e?i:-1,u=Object(n);(e?a--:++a<i)&&!1!==o(u[a],a,u););return n}}},function(t,e,n){var r=n(137);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(333),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)})),e}));t.exports=a},function(t,e,n){var r=n(334);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=n(163);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},function(t,e,n){var r=n(336),o=n(138),i=n(164);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(337),o=n(342),i=n(343),a=n(344),u=n(345);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=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,n){var r=n(120);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e,n){var r=n(200),o=n(339),i=n(109),a=n(211),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,f=s.toString,l=c.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?h:u).test(a(t))}},function(t,e,n){var r,o=n(340),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(62)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(120),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(120),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(120);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(121),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(121);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(121);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(121);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(122);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(122);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(122);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(122);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(117),o=n(202),i=n(51),a=n(144),u=r?r.prototype:void 0,s=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return s?s.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(246),o=n(143),i=n(156),a=n(109),u=n(110);t.exports=function(t,e,n,s){if(!a(t))return t;for(var c=-1,f=(e=o(e,t)).length,l=f-1,h=t;null!=h&&++c<f;){var p=u(e[c]),d=n;if(c!=l){var b=h[p];void 0===(d=s?s(b,p,h):void 0)&&(d=a(b)?b:i(e[c+1])?[]:{})}r(h,p,d),h=h[p]}return t}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e,n){var r=n(232),o=n(378),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(177),o=n(224);e.proxyDefaultActionCreators=function(t,e,n){let i;const a={get:(o,i)=>r.hasOwnProperty.call(o,i)?o[i]:n&&r.hasOwnProperty.call(n,i)?o[i]=n[i]:r.hasOwnProperty.call(e,i)?o[i]=t(i):void 0,ownKeys:()=>(i||(i=new Set([...Object.keys(e),...Object.keys(n||{})])),[...i]),getOwnPropertyDescriptor:(o,i)=>r.hasOwnProperty.call(o,i)?{value:o[i],configurable:!0,enumerable:!0}:n&&r.hasOwnProperty.call(n,i)?(o[i]=n[i],{value:o[i],configurable:!0,enumerable:!0}):r.hasOwnProperty.call(e,i)?(o[i]=t(i),{value:o[i],configurable:!0,enumerable:!0}):void 0};try{return new Proxy({},a)}catch(r){return o.createDefaultActionCreators(t,e,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(177),o=n(226);e.proxyCombineObjects=function(...t){let e,n;const i={get(e,o){if(r.hasOwnProperty.call(e,o))return e[o];if(!n||!n.has(o)){for(let n=t.length-1;n>=0;n--){const i=t[n];if(r.hasOwnProperty.call(i,o))return e[o]=i[o]}n?n.size>=100&&n.clear():n=new Set,n.add(o)}},ownKeys:()=>(e||(e=new Set(t.reduce((t,e)=>t.concat(Object.keys(e)),[]))),[...e]),getOwnPropertyDescriptor(e,o){if(r.hasOwnProperty.call(e,o))return{value:e[o],configurable:!0,enumerable:!0};if(!n||!n.has(o)){for(let n=t.length-1;n>=0;n--){const i=t[n];if(r.hasOwnProperty.call(i,o))return e[o]=i[o],{value:e[o],configurable:!0,enumerable:!0}}n?n.size>=100&&n.clear():n=new Set,n.add(o)}}};try{return new Proxy(Object.create(null),i)}catch(e){return o.combineObjects(...t)}}},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(38),o=function(t,e){return t===e||"function"==typeof e&&t===e.toString()},i=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return t.pipe(Object(r.a)((function(t){var n=t.type,r=e.length;if(1===r)return o(n,e[0]);for(var i=0;i<r;i++)if(o(n,e[i]))return!0;return!1})))}}},,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),o=n(7),i=n(106);function a(t,e){return void 0===e&&(e=i.a),function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.dueTime,this.scheduler))},t}(),s=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.dueTime=n,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return r.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(o.a);function c(t){t.debouncedNext()}},,,,function(t,e,n){var r=n(62).Uint8Array;t.exports=r},function(t,e,n){var r=n(377),o=n(359),i=n(152);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(358),o=n(51);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(423),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),s=Array(u);++a<u;)s[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=n(s),r(t,this,c)}}},function(t,e,n){var r=n(424),o=n(426)(r);t.exports=o},,function(t,e,n){"use strict";var r=n(16),o=n(55),i=n(32),a=n(129),u=n(0),s=(n(26),!!document.documentElement.currentStyle),c={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},f=["letter-spacing","line-height","font-family","font-weight","font-size","font-style","tab-size","text-rendering","text-transform","width","text-indent","padding-top","padding-right","padding-bottom","padding-left","border-top-width","border-right-width","border-bottom-width","border-left-width","box-sizing"],l={},h=document.createElement("textarea"),p=function(t){Object.keys(c).forEach((function(e){t.style.setProperty(e,c[e],"important")}))};function d(t,e,n,r,o){void 0===n&&(n=!1),void 0===r&&(r=null),void 0===o&&(o=null),null===h.parentNode&&document.body.appendChild(h);var i=function(t,e,n){void 0===n&&(n=!1);if(n&&l[e])return l[e];var r=window.getComputedStyle(t);if(null===r)return null;var o=f.reduce((function(t,e){return t[e]=r.getPropertyValue(e),t}),{}),i=o["box-sizing"];if(""===i)return null;s&&"border-box"===i&&(o.width=parseFloat(o.width)+parseFloat(r["border-right-width"])+parseFloat(r["border-left-width"])+parseFloat(r["padding-right"])+parseFloat(r["padding-left"])+"px");var a=parseFloat(o["padding-bottom"])+parseFloat(o["padding-top"]),u=parseFloat(o["border-bottom-width"])+parseFloat(o["border-top-width"]),c={sizingStyle:o,paddingSize:a,borderSize:u,boxSizing:i};n&&(l[e]=c);return c}(t,e,n);if(null===i)return null;var a=i.paddingSize,u=i.borderSize,c=i.boxSizing,d=i.sizingStyle;Object.keys(d).forEach((function(t){h.style[t]=d[t]})),p(h),h.value=t.value||t.placeholder||"x";var b=-1/0,v=1/0,y=h.scrollHeight;"border-box"===c?y+=u:"content-box"===c&&(y-=a),h.value="x";var _=h.scrollHeight-a,m=Math.floor(y/_);return null!==r&&(b=_*r,"border-box"===c&&(b=b+a+u),y=Math.max(b,y)),null!==o&&(v=_*o,"border-box"===c&&(v=v+a+u),y=Math.min(v,y)),{height:y,minHeight:b,maxHeight:v,rowCount:Math.floor(y/_),valueRowCount:m}}h.setAttribute("tab-index","-1"),h.setAttribute("aria-hidden","true"),p(h);var b=function(){},v=0,y=function(t){function e(e){var n;return(n=t.call(this,e)||this)._onRef=function(t){n._ref=t;var e=n.props.inputRef;"function"!=typeof e?e.current=t:e(t)},n._onChange=function(t){n._controlled||n._resizeComponent(),n.props.onChange(t,Object(i.a)(n))},n._resizeComponent=function(t){void 0===t&&(t=b);var e=d(n._ref,n._uid,n.props.useCacheForDOMMeasurements,n.props.minRows,n.props.maxRows);if(null!==e){var r=e.height,o=e.minHeight,i=e.maxHeight,a=e.rowCount,u=e.valueRowCount;n.rowCount=a,n.valueRowCount=u,n.state.height===r&&n.state.minHeight===o&&n.state.maxHeight===i?t():n.setState({height:r,minHeight:o,maxHeight:i},t)}else t()},n.state={height:e.style&&e.style.height||0,minHeight:-1/0,maxHeight:1/0},n._uid=v++,n._controlled=void 0!==e.value,n._resizeLock=!1,n}Object(a.a)(e,t);var n=e.prototype;return n.render=function(){var t=this.props,e=(t.inputRef,t.maxRows,t.minRows,t.onHeightChange,t.useCacheForDOMMeasurements,Object(o.a)(t,["inputRef","maxRows","minRows","onHeightChange","useCacheForDOMMeasurements"]));return e.style=Object(r.a)({},e.style,{height:this.state.height}),Math.max(e.style.maxHeight||1/0,this.state.maxHeight)<this.state.height&&(e.style.overflow="hidden"),Object(u.createElement)("textarea",Object(r.a)({},e,{onChange:this._onChange,ref:this._onRef}))},n.componentDidMount=function(){var t=this;this._resizeComponent(),this._resizeListener=function(){t._resizeLock||(t._resizeLock=!0,t._resizeComponent((function(){t._resizeLock=!1})))},window.addEventListener("resize",this._resizeListener)},n.componentDidUpdate=function(t,e){t!==this.props&&this._resizeComponent(),this.state.height!==e.height&&this.props.onHeightChange(this.state.height,this)},n.componentWillUnmount=function(){window.removeEventListener("resize",this._resizeListener),function(t){delete l[t]}(this._uid)},e}(u.Component);y.defaultProps={inputRef:b,onChange:b,onHeightChange:b,useCacheForDOMMeasurements:!1},e.a=y},,,,,,,function(t,e,n){"use strict";var r=n(0);e.a=function(t,e){var n=Object(r.useRef)(!0);Object(r.useEffect)((function(){if(!n.current)return t();n.current=!1}),e)}},function(t,e,n){"use strict"; -/** @license React v0.19.1 - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r,o,i,a,u;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var t=e.unstable_now();s(!0,t),s=null}catch(t){throw setTimeout(f,0),t}},l=Date.now();e.unstable_now=function(){return Date.now()-l},r=function(t){null!==s?setTimeout(r,0,t):(s=t,setTimeout(f,0))},o=function(t,e){c=setTimeout(t,e)},i=function(){clearTimeout(c)},a=function(){return!1},u=e.unstable_forceFrameRate=function(){}}else{var h=window.performance,p=window.Date,d=window.setTimeout,b=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof h&&"function"==typeof h.now)e.unstable_now=function(){return h.now()};else{var y=p.now();e.unstable_now=function(){return p.now()-y}}var _=!1,m=null,g=-1,w=5,x=0;a=function(){return e.unstable_now()>=x},u=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<t?Math.floor(1e3/t):5};var O=new MessageChannel,j=O.port2;O.port1.onmessage=function(){if(null!==m){var t=e.unstable_now();x=t+w;try{m(!0,t)?j.postMessage(null):(_=!1,m=null)}catch(t){throw j.postMessage(null),t}}else _=!1},r=function(t){m=t,_||(_=!0,j.postMessage(null))},o=function(t,n){g=d((function(){t(e.unstable_now())}),n)},i=function(){b(g),g=-1}}function S(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,o=t[r];if(!(void 0!==o&&0<C(o,e)))break t;t[r]=e,t[n]=o,n=r}}function E(t){return void 0===(t=t[0])?null:t}function k(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,o=t.length;r<o;){var i=2*(r+1)-1,a=t[i],u=i+1,s=t[u];if(void 0!==a&&0>C(a,n))void 0!==s&&0>C(s,a)?(t[r]=s,t[u]=n,r=u):(t[r]=a,t[i]=n,r=i);else{if(!(void 0!==s&&0>C(s,n)))break t;t[r]=s,t[u]=n,r=u}}}return e}return null}function C(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var T=[],P=[],A=1,N=null,z=3,R=!1,I=!1,M=!1;function D(t){for(var e=E(P);null!==e;){if(null===e.callback)k(P);else{if(!(e.startTime<=t))break;k(P),e.sortIndex=e.expirationTime,S(T,e)}e=E(P)}}function B(t){if(M=!1,D(t),!I)if(null!==E(T))I=!0,r(L);else{var e=E(P);null!==e&&o(B,e.startTime-t)}}function L(t,n){I=!1,M&&(M=!1,i()),R=!0;var r=z;try{for(D(n),N=E(T);null!==N&&(!(N.expirationTime>n)||t&&!a());){var u=N.callback;if(null!==u){N.callback=null,z=N.priorityLevel;var s=u(N.expirationTime<=n);n=e.unstable_now(),"function"==typeof s?N.callback=s:N===E(T)&&k(T),D(n)}else k(T);N=E(T)}if(null!==N)var c=!0;else{var f=E(P);null!==f&&o(B,f.startTime-n),c=!1}return c}finally{N=null,z=r,R=!1}}function F(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=u;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){I||R||(I=!0,r(L))},e.unstable_getCurrentPriorityLevel=function(){return z},e.unstable_getFirstCallbackNode=function(){return E(T)},e.unstable_next=function(t){switch(z){case 1:case 2:case 3:var e=3;break;default:e=z}var n=z;z=e;try{return t()}finally{z=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=U,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=z;z=t;try{return e()}finally{z=n}},e.unstable_scheduleCallback=function(t,n,a){var u=e.unstable_now();if("object"==typeof a&&null!==a){var s=a.delay;s="number"==typeof s&&0<s?u+s:u,a="number"==typeof a.timeout?a.timeout:F(t)}else a=F(t),s=u;return t={id:A++,callback:n,priorityLevel:t,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>u?(t.sortIndex=s,S(P,t),null===E(T)&&t===E(P)&&(M?i():M=!0,o(B,s-u))):(t.sortIndex=a,S(T,t),I||R||(I=!0,r(L))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();D(t);var n=E(T);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<N.expirationTime||a()},e.unstable_wrapCallback=function(t){var e=z;return function(){var n=z;z=e;try{return t.apply(this,arguments)}finally{z=n}}}},function(t,e,n){"use strict";var r=n(392);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(394),o=n(416),i=n(137),a=n(51),u=n(420);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):u(t)}},function(t,e,n){var r=n(395),o=n(415),i=n(234);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(222),o=n(213);t.exports=function(t,e,n,i){var a=n.length,u=a,s=!i;if(null==t)return!u;for(t=Object(t);a--;){var c=n[a];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<u;){var f=(c=n[a])[0],l=t[f],h=c[1];if(s&&c[2]){if(void 0===l&&!(f in t))return!1}else{var p=new r;if(i)var d=i(l,h,f,t,e,p);if(!(void 0===d?o(h,l,3,i,p):d))return!1}}return!0}},function(t,e,n){var r=n(138);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(138),o=n(164),i=n(163);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(222),o=n(231),i=n(407),a=n(410),u=n(258),s=n(51),c=n(199),f=n(210),l="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,d,b){var v=s(t),y=s(e),_=v?"[object Array]":u(t),m=y?"[object Array]":u(e),g=(_="[object Arguments]"==_?l:_)==l,w=(m="[object Arguments]"==m?l:m)==l,x=_==m;if(x&&c(t)){if(!c(e))return!1;v=!0,g=!1}if(x&&!g)return b||(b=new r),v||f(t)?o(t,e,n,p,d,b):i(t,e,_,n,p,d,b);if(!(1&n)){var O=g&&h.call(t,"__wrapped__"),j=w&&h.call(e,"__wrapped__");if(O||j){var S=O?t.value():t,E=j?e.value():e;return b||(b=new r),d(S,E,n,p,b)}}return!!x&&(b||(b=new r),a(t,e,n,p,d,b))}},function(t,e,n){var r=n(163),o=n(403),i=n(404);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=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}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(117),o=n(375),i=n(158),a=n(231),u=n(408),s=n(409),c=r?r.prototype:void 0,f=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,l,h){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||!l(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+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 p=u;case"[object Set]":var d=1&r;if(p||(p=s),t.size!=e.size&&!d)return!1;var b=h.get(t);if(b)return b==e;r|=2,h.set(t,e);var v=a(p(t),p(e),r,c,l,h);return h.delete(t),v;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(376),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,u){var s=1&n,c=r(t),f=c.length;if(f!=r(e).length&&!s)return!1;for(var l=f;l--;){var h=c[l];if(!(s?h in e:o.call(e,h)))return!1}var p=u.get(t);if(p&&u.get(e))return p==e;var d=!0;u.set(t,e),u.set(e,t);for(var b=s;++l<f;){var v=t[h=c[l]],y=e[h];if(i)var _=s?i(y,v,h,e,t,u):i(v,y,h,t,e,u);if(!(void 0===_?v===y||a(v,y,n,i,u):_)){d=!1;break}b||(b="constructor"==h)}if(d&&!b){var m=t.constructor,g=e.constructor;m==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof g&&g instanceof g||(d=!1)}return u.delete(t),u.delete(e),d}},function(t,e,n){var r=n(88)(n(62),"DataView");t.exports=r},function(t,e,n){var r=n(88)(n(62),"Promise");t.exports=r},function(t,e,n){var r=n(88)(n(62),"Set");t.exports=r},function(t,e,n){var r=n(88)(n(62),"WeakMap");t.exports=r},function(t,e,n){var r=n(233),o=n(152);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},function(t,e,n){var r=n(213),o=n(21),i=n(417),a=n(162),u=n(233),s=n(234),c=n(110);t.exports=function(t,e){return a(t)&&u(e)?s(c(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},function(t,e,n){var r=n(418),o=n(419);t.exports=function(t,e){return null!=t&&o(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(143),o=n(197),i=n(51),a=n(156),u=n(157),s=n(110);t.exports=function(t,e,n){for(var c=-1,f=(e=r(e,t)).length,l=!1;++c<f;){var h=s(e[c]);if(!(l=null!=t&&n(t,h)))break;t=t[h]}return l||++c!=f?l:!!(f=null==t?0:t.length)&&u(f)&&a(h,f)&&(i(t)||o(t))}},function(t,e,n){var r=n(235),o=n(421),i=n(162),a=n(110);t.exports=function(t){return i(t)?r(a(t)):o(t)}},function(t,e,n){var r=n(201);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){var r=n(137),o=n(379),i=n(380);t.exports=function(t,e){return i(o(t,e,r),t+"")}},function(t,e){t.exports=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)}},function(t,e,n){var r=n(425),o=n(212),i=n(137),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(232),o=n(202),i=n(235),a=n(209),u=n(428),s=Math.max;t.exports=function(t){if(!t||!t.length)return[];var e=0;return t=r(t,(function(t){if(u(t))return e=s(t.length,e),!0})),a(e,(function(e){return o(t,i(e))}))}},function(t,e,n){var r=n(153),o=n(58);t.exports=function(t){return o(t)&&r(t)}},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return bt}));var r,o,i,a,u=n(26),s=n.n(u),c=n(620),f=n.n(c),l=n(621),h=n.n(l),p=n(0),d=n.n(p),b=n(304),v=n.n(b),y="bodyAttributes",_="htmlAttributes",m="titleAttributes",g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},w=(Object.keys(g).map((function(t){return g[t]})),"charset"),x="cssText",O="href",j="http-equiv",S="innerHTML",E="itemprop",k="name",C="property",T="rel",P="src",A="target",N={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},z="defaultTitle",R="defer",I="encodeSpecialCharacters",M="onChangeClientState",D="titleTemplate",B=Object.keys(N).reduce((function(t,e){return t[N[e]]=e,t}),{}),L=[g.NOSCRIPT,g.SCRIPT,g.STYLE],F="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},U=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},H=function(){function t(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)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),V=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},q=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},Z=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},$=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===e?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Y=function(t){var e=Q(t,g.TITLE),n=Q(t,D);if(n&&e)return n.replace(/%s/g,(function(){return Array.isArray(e)?e.join(""):e}));var r=Q(t,z);return e||r||void 0},K=function(t){return Q(t,M)||function(){}},W=function(t,e){return e.filter((function(e){return void 0!==e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return V({},t,e)}),{})},G=function(t,e){return e.filter((function(t){return void 0!==t[g.BASE]})).map((function(t){return t[g.BASE]})).reverse().reduce((function(e,n){if(!e.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==t.indexOf(i)&&n[i])return e.concat(n)}return e}),[])},X=function(t,e,n){var r={};return n.filter((function(e){return!!Array.isArray(e[t])||(void 0!==e[t]&&rt("Helmet: "+t+' should be of type "Array". Instead found type "'+F(e[t])+'"'),!1)})).map((function(e){return e[t]})).reverse().reduce((function(t,n){var o={};n.filter((function(t){for(var n=void 0,i=Object.keys(t),a=0;a<i.length;a++){var u=i[a],s=u.toLowerCase();-1===e.indexOf(s)||n===T&&"canonical"===t[n].toLowerCase()||s===T&&"stylesheet"===t[s].toLowerCase()||(n=s),-1===e.indexOf(u)||u!==S&&u!==x&&u!==E||(n=u)}if(!n||!t[n])return!1;var c=t[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][c]&&(o[n][c]=!0,!0)})).reverse().forEach((function(e){return t.push(e)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var u=i[a],s=v()({},r[u],o[u]);r[u]=s}return t}),[]).reverse()},Q=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.hasOwnProperty(e))return r[e]}return null},J=(r=Date.now(),function(t){var e=Date.now();e-r>16?(r=e,t(e)):setTimeout((function(){J(t)}),0)}),tt=function(t){return clearTimeout(t)},et="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||J:global.requestAnimationFrame||J,nt="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||tt:global.cancelAnimationFrame||tt,rt=function(t){return console&&"function"==typeof console.warn&&console.warn(t)},ot=null,it=function(t,e){var n=t.baseTag,r=t.bodyAttributes,o=t.htmlAttributes,i=t.linkTags,a=t.metaTags,u=t.noscriptTags,s=t.onChangeClientState,c=t.scriptTags,f=t.styleTags,l=t.title,h=t.titleAttributes;st(g.BODY,r),st(g.HTML,o),ut(l,h);var p={baseTag:ct(g.BASE,n),linkTags:ct(g.LINK,i),metaTags:ct(g.META,a),noscriptTags:ct(g.NOSCRIPT,u),scriptTags:ct(g.SCRIPT,c),styleTags:ct(g.STYLE,f)},d={},b={};Object.keys(p).forEach((function(t){var e=p[t],n=e.newTags,r=e.oldTags;n.length&&(d[t]=n),r.length&&(b[t]=p[t].oldTags)})),e&&e(),s(t,d,b)},at=function(t){return Array.isArray(t)?t.join(""):t},ut=function(t,e){void 0!==t&&document.title!==t&&(document.title=at(t)),st(g.TITLE,e)},st=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var r=n.getAttribute("data-react-helmet"),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(e),u=0;u<a.length;u++){var s=a[u],c=e[s]||"";n.getAttribute(s)!==c&&n.setAttribute(s,c),-1===o.indexOf(s)&&o.push(s);var f=i.indexOf(s);-1!==f&&i.splice(f,1)}for(var l=i.length-1;l>=0;l--)n.removeAttribute(i[l]);o.length===i.length?n.removeAttribute("data-react-helmet"):n.getAttribute("data-react-helmet")!==a.join(",")&&n.setAttribute("data-react-helmet",a.join(","))}},ct=function(t,e){var n=document.head||document.querySelector(g.HEAD),r=n.querySelectorAll(t+"[data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var r in e)if(e.hasOwnProperty(r))if(r===S)n.innerHTML=e.innerHTML;else if(r===x)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{var u=void 0===e[r]?"":e[r];n.setAttribute(r,u)}n.setAttribute("data-react-helmet","true"),o.some((function(t,e){return a=e,n.isEqualNode(t)}))?o.splice(a,1):i.push(n)})),o.forEach((function(t){return t.parentNode.removeChild(t)})),i.forEach((function(t){return n.appendChild(t)})),{oldTags:o,newTags:i}},ft=function(t){return Object.keys(t).reduce((function(e,n){var r=void 0!==t[n]?n+'="'+t[n]+'"':""+n;return e?e+" "+r:r}),"")},lt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[N[n]||n]=t[n],e}),e)},ht=function(t,e,n){switch(t){case g.TITLE:return{toComponent:function(){return t=e.title,n=e.titleAttributes,(r={key:t})["data-react-helmet"]=!0,o=lt(n,r),[d.a.createElement(g.TITLE,o,t)];var t,n,r,o},toString:function(){return function(t,e,n,r){var o=ft(n),i=at(e);return o?"<"+t+' data-react-helmet="true" '+o+">"+$(i,r)+"</"+t+">":"<"+t+' data-react-helmet="true">'+$(i,r)+"</"+t+">"}(t,e.title,e.titleAttributes,n)}};case y:case _:return{toComponent:function(){return lt(e)},toString:function(){return ft(e)}};default:return{toComponent:function(){return function(t,e){return e.map((function(e,n){var r,o=((r={key:n})["data-react-helmet"]=!0,r);return Object.keys(e).forEach((function(t){var n=N[t]||t;if(n===S||n===x){var r=e.innerHTML||e.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=e[t]})),d.a.createElement(t,o)}))}(t,e)},toString:function(){return function(t,e,n){return e.reduce((function(e,r){var o=Object.keys(r).filter((function(t){return!(t===S||t===x)})).reduce((function(t,e){var o=void 0===r[e]?e:e+'="'+$(r[e],n)+'"';return t?t+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===L.indexOf(t);return e+"<"+t+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+t+">")}),"")}(t,e,n)}}}},pt=function(t){var e=t.baseTag,n=t.bodyAttributes,r=t.encode,o=t.htmlAttributes,i=t.linkTags,a=t.metaTags,u=t.noscriptTags,s=t.scriptTags,c=t.styleTags,f=t.title,l=void 0===f?"":f,h=t.titleAttributes;return{base:ht(g.BASE,e,r),bodyAttributes:ht(y,n,r),htmlAttributes:ht(_,o,r),link:ht(g.LINK,i,r),meta:ht(g.META,a,r),noscript:ht(g.NOSCRIPT,u,r),script:ht(g.SCRIPT,s,r),style:ht(g.STYLE,c,r),title:ht(g.TITLE,{title:l,titleAttributes:h},r)}},dt=f()((function(t){return{baseTag:G([O,A],t),bodyAttributes:W(y,t),defer:Q(t,R),encode:Q(t,I),htmlAttributes:W(_,t),linkTags:X(g.LINK,[T,O],t),metaTags:X(g.META,[k,w,j,C,E],t),noscriptTags:X(g.NOSCRIPT,[S],t),onChangeClientState:K(t),scriptTags:X(g.SCRIPT,[P,S],t),styleTags:X(g.STYLE,[x],t),title:Y(t),titleAttributes:W(m,t)}}),(function(t){ot&&nt(ot),t.defer?ot=et((function(){it(t,(function(){ot=null}))})):(it(t),ot=null)}),pt)((function(){return null})),bt=(o=dt,a=i=function(t){function e(){return U(this,e),Z(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){return!h()(this.props,t)},e.prototype.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:e};case g.STYLE:return{cssText:e}}throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},e.prototype.flattenArrayTypeChildren=function(t){var e,n=t.child,r=t.arrayTypeChildren,o=t.newChildProps,i=t.nestedChildren;return V({},r,((e={})[n.type]=[].concat(r[n.type]||[],[V({},o,this.mapNestedChildrenToProps(n,i))]),e))},e.prototype.mapObjectTypeChildren=function(t){var e,n,r=t.child,o=t.newProps,i=t.newChildProps,a=t.nestedChildren;switch(r.type){case g.TITLE:return V({},o,((e={})[r.type]=a,e.titleAttributes=V({},i),e));case g.BODY:return V({},o,{bodyAttributes:V({},i)});case g.HTML:return V({},o,{htmlAttributes:V({},i)})}return V({},o,((n={})[r.type]=V({},i),n))},e.prototype.mapArrayTypeChildrenToProps=function(t,e){var n=V({},e);return Object.keys(t).forEach((function(e){var r;n=V({},n,((r={})[e]=t[e],r))})),n},e.prototype.warnOnInvalidChildren=function(t,e){return!0},e.prototype.mapChildrenToProps=function(t,e){var n=this,r={};return d.a.Children.forEach(t,(function(t){if(t&&t.props){var o=t.props,i=o.children,a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[B[n]||n]=t[n],e}),e)}(q(o,["children"]));switch(n.warnOnInvalidChildren(t,i),t.type){case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:r=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:e=n.mapObjectTypeChildren({child:t,newProps:e,newChildProps:a,nestedChildren:i})}}})),e=this.mapArrayTypeChildrenToProps(r,e)},e.prototype.render=function(){var t=this.props,e=t.children,n=q(t,["children"]),r=V({},n);return e&&(r=this.mapChildrenToProps(e,r)),d.a.createElement(o,r)},H(e,null,[{key:"canUseDOM",set:function(t){o.canUseDOM=t}}]),e}(d.a.Component),i.propTypes={base:s.a.object,bodyAttributes:s.a.object,children:s.a.oneOfType([s.a.arrayOf(s.a.node),s.a.node]),defaultTitle:s.a.string,defer:s.a.bool,encodeSpecialCharacters:s.a.bool,htmlAttributes:s.a.object,link:s.a.arrayOf(s.a.object),meta:s.a.arrayOf(s.a.object),noscript:s.a.arrayOf(s.a.object),onChangeClientState:s.a.func,script:s.a.arrayOf(s.a.object),style:s.a.arrayOf(s.a.object),title:s.a.string,titleAttributes:s.a.object,titleTemplate:s.a.string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var t=o.rewind();return t||(t=pt({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},a);bt.renderStatic=bt.rewind},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(95),o=n(59);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(o.a)(n)?(t.pop(),function(e){return Object(r.a)(t,e,n)}):function(e){return Object(r.a)(t,e)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),o=n(35),i=n(34);function a(t){return function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new s(t),r=Object(i.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),o=n(35),i=n(34);function a(t){return function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return r.__extends(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(i.a)(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,o){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),o=n(35),i=n(34),a={leading:!0,trailing:!1};function u(t,e){return void 0===e&&(e=a),function(n){return n.lift(new s(t,e.leading,e.trailing))}}var s=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.durationSelector,this.leading,this.trailing))},t}(),c=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.destination=e,i.durationSelector=n,i._leading=r,i._trailing=o,i._hasValue=!1,i}return r.__extends(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(i.a)(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,o){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=n(7);function i(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.accumulator,this.seed,this.hasSeed))},t}(),u=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return r.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(o.a)},,,,,,,function(t,e,n){"use strict"; -/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case o:switch(t=t.type){case l:case h:case a:case s:case u:case d:return t;default:switch(t=t&&t.$$typeof){case f:case p:case y:case v:case c:return t;default:return e}}case i:return e}}}function O(t){return x(t)===h}e.AsyncMode=l,e.ConcurrentMode=h,e.ContextConsumer=f,e.ContextProvider=c,e.Element=o,e.ForwardRef=p,e.Fragment=a,e.Lazy=y,e.Memo=v,e.Portal=i,e.Profiler=s,e.StrictMode=u,e.Suspense=d,e.isAsyncMode=function(t){return O(t)||x(t)===l},e.isConcurrentMode=O,e.isContextConsumer=function(t){return x(t)===f},e.isContextProvider=function(t){return x(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===o},e.isForwardRef=function(t){return x(t)===p},e.isFragment=function(t){return x(t)===a},e.isLazy=function(t){return x(t)===y},e.isMemo=function(t){return x(t)===v},e.isPortal=function(t){return x(t)===i},e.isProfiler=function(t){return x(t)===s},e.isStrictMode=function(t){return x(t)===u},e.isSuspense=function(t){return x(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===h||t===s||t===u||t===d||t===b||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===v||t.$$typeof===c||t.$$typeof===f||t.$$typeof===p||t.$$typeof===m||t.$$typeof===g||t.$$typeof===w||t.$$typeof===_)},e.typeOf=x},function(t,e){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,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(223);e.createActionCreator=r.createActionCreator;var o=n(515);e.createActionCreators=o.createActionCreators;var i=n(516);e.proxyActionCreators=i.proxyActionCreators},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(223),o=n(224);e.createActionCreators=function(t,e){return o.createDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(223),o=n(360);e.proxyActionCreators=function(t,e){return o.proxyDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(225);e.createActionCreator=r.createActionCreator;var o=n(518);e.createActionCreators=o.createActionCreators;var i=n(519);e.proxyActionCreators=i.proxyActionCreators},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(225),o=n(224);e.createActionCreators=function(t,e){return o.createDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(225),o=n(360);e.proxyActionCreators=function(t,e){return o.proxyDefaultActionCreators(r.createActionCreator,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(226);e.combineUniqueObjects=function(...t){return r.combineObjects(...t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(361);e.proxyCombineUniqueObjects=function(...t){return r.proxyCombineObjects(...t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(177);e.createReducer=function(t,e){return function(n=t,o){return r.hasOwnProperty.call(e,o.type)?e[o.type](n,o):n}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";t.exports=n(390)},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkParent=void 0,e.checkParent=function(t){if(!t)return void console.error(new Error("react-resize-reporter: empty parent element"));switch(t.tagName){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"menuitem":case"meta":case"param":case"source":case"track":case"wbr":case"script":case"style":case"textarea":case"title":console.error(new Error("react-resize-reporter: Unsupported parent tag name "+t.tagName.toLowerCase()+"."+t.className.replace(/\s+/,".")+" . Change the tag or wrap it in a supported tag(e.g. div)."))}const e=window.getComputedStyle(t);e&&"static"===e.getPropertyValue("position")&&console.warn(new Error("react-resize-reporter: The 'position' CSS property of element "+t.tagName.toLowerCase()+"."+t.className.replace(/\s+/,".")+" should not be 'static'."))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r,o=n(0),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;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 u=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=function(t,e,n){if("function"!=typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof e)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var s,c=[];function f(){s=t(c.map((function(t){return t.props}))),l.canUseDOM?e(s):n&&(s=n(s))}var l=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o.peek=function(){return s},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var t=s;return s=void 0,c=[],t};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),f()},a.componentDidUpdate=function(){f()},a.componentWillUnmount=function(){var t=c.indexOf(this);c.splice(t,1),f()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(l,"displayName","SideEffect("+function(t){return t.displayName||t.name||"Component"}(r)+")"),a(l,"canUseDOM",u),l}}},function(t,e){var n="undefined"!=typeof Element,r="function"==typeof Map,o="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;t.exports=function(t,e){try{return function t(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var u,s,c,f;if(Array.isArray(e)){if((u=e.length)!=a.length)return!1;for(s=u;0!=s--;)if(!t(e[s],a[s]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(f=e.entries();!(s=f.next()).done;)if(!a.has(s.value[0]))return!1;for(f=e.entries();!(s=f.next()).done;)if(!t(s.value[1],a.get(s.value[0])))return!1;return!0}if(o&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(f=e.entries();!(s=f.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((u=e.length)!=a.length)return!1;for(s=u;0!=s--;)if(e[s]!==a[s])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((u=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(s=u;0!=s--;)if(!Object.prototype.hasOwnProperty.call(a,c[s]))return!1;if(n&&e instanceof Element)return!1;for(s=u;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!e.$$typeof)&&!t(e[c[s]],a[c[s]]))return!1;return!0}return e!=e&&a!=a}(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),o=n(7);function i(){}var a=n(45);function u(t,e,n){return function(r){return r.lift(new s(t,e,n))}}var s=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))},t}(),c=function(t){function e(e,n,r,o){var u=t.call(this,e)||this;return u._tapNext=i,u._tapError=i,u._tapComplete=i,u._tapError=r||i,u._tapComplete=o||i,Object(a.a)(n)?(u._context=u,u._tapNext=n):n&&(u._context=n,u._tapNext=n.next||i,u._tapError=n.error||i,u._tapComplete=n.complete||i),u}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(o.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(3),o=n(59),i=n(54),a=n(35),u=n(34),s=n(99),c={};function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return Object(o.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(i.a)(t[0])&&(t=t[0]),Object(s.a)(t,r).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},t}(),h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.__extends(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Object(u.a)(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){var i=this.values,a=i[n],u=this.toRespond?a===c?--this.toRespond:this.toRespond:0;i[n]=e,0===u&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.a)},,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(3),o=n(91),i=n(8),a=n(7),u=n(13);function s(){return function(t){return t.lift(new c(t))}}var c=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new f(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),l=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new u.a).add(this.source.subscribe(new p(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.a.EMPTY)),t},e.prototype.refCount=function(){return s()(this)},e}(i.a),h=function(){var t=l.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.b);a.a;var d=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();function b(){return new o.a}function v(){return function(t){return s()((e=b,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new d(r,n));var o=Object.create(t,h);return o.source=t,o.subjectFactory=r,o})(t));var e,n}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(108);function o(t,e){return e?Object(r.a)((function(){return t}),e):Object(r.a)((function(){return t}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(104);function o(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 i=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return r.a.apply(void 0,o(e.map((function(t){var e=t.apply(void 0,n);if(!e)throw new TypeError('combineEpics: one of the provided Epics "'+(t.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return e}))))};try{Object.defineProperty(i,"name",{value:"combineEpics("+e.map((function(t){return t.name||"<anonymous>"})).join(", ")+")"})}catch(t){}return i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),o=n(7);function i(){return function(t){return t.lift(new a)}}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.__extends(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(o.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return M}));var r=n(3),o=n(112),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(o.a),a=n(111),u=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(a.a))(i),s=n(91),c=n(64),f=n(7),l=n(103);function h(t,e){return void 0===e&&(e=0),function(n){return n.lift(new p(t,e))}}var p=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.scheduler,this.delay))},t}(),d=function(t){function e(e,n,r){void 0===r&&(r=0);var o=t.call(this,e)||this;return o.scheduler=n,o.delay=r,o}return r.__extends(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new b(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(l.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(l.a.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(l.a.createComplete()),this.unsubscribe()},e}(f.a),b=function(){return function(t,e){this.notification=t,this.destination=e}}(),v=n(10),y=n(145),_=n(8),m=1,g=function(){return Promise.resolve()}(),w={};function x(t){return t in w&&(delete w[t],!0)}var O=function(t){var e=m++;return w[e]=!0,g.then((function(){return x(e)&&t()})),e},j=function(t){x(t)},S=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=O(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(j(n),e.scheduled=void 0)},e}(o.a),E=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<o&&(t=n.shift()));if(this.active=!1,e){for(;++r<o&&(t=n.shift());)t.unsubscribe();throw e}},e}(a.a))(S),k=n(146),C=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=E);var o=t.call(this)||this;return o.source=e,o.delayTime=n,o.scheduler=r,(!Object(k.a)(n)||n<0)&&(o.delayTime=0),r&&"function"==typeof r.schedule||(o.scheduler=E),o}return r.__extends(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=E),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(_.a);function T(t,e){return void 0===e&&(e=0),function(n){return n.lift(new P(t,e))}}var P=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new C(e,this.delay,this.scheduler).subscribe(t)},t}(),A=n(96),N=n(363),z=function(){function t(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)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var R=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.source=t,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),z(e,null,[{key:"of",value:function(){return new this(A.a.apply(void 0,arguments))}},{key:"from",value:function(t,e){return new this(Object(c.a)(t,e))}}]),z(e,[{key:"lift",value:function(t){var n=new e(this);return n.operator=t,n}},{key:"ofType",value:function(){return N.a.apply(void 0,arguments)(this)}}]),e}(_.a);var I=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(function(t){var e=r.__notifier.subscribe(t);return e&&!e.closed&&t.next(r.value),e})));return r.value=n,r.__notifier=new s.a,r.__subscription=t.subscribe((function(t){t!==r.value&&(r.value=t,r.__notifier.next(t))})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(_.a);function M(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=u.constructor,n=new e(u.SchedulerAction);var r=new s.a,o=void 0,i=function(e){o=e;var i=(new s.a).pipe(h(n)),a=(new s.a).pipe(h(n)),u=new R(i),f=new I(a,o.getState());return r.pipe(Object(v.a)((function(e){var n="dependencies"in t?e(u,f,t.dependencies):e(u,f);if(!n)throw new TypeError('Your root Epic "'+(e.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return n})),Object(y.a)((function(t){return Object(c.a)(t).pipe(T(n),h(n))}))).subscribe(o.dispatch),function(t){return function(e){var n=t(e);return a.next(o.getState()),i.next(e),n}}};return i.run=function(t){r.next(t)},i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),o=n(7),i=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),a=n(118);function u(t){return function(e){return 0===t?Object(a.b)():e.lift(new s(t))}}var s=function(){function t(t){if(this.total=t,this.total<0)throw new i}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(3),o=n(35),i=n(34);function a(t){return function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.closingNotifier))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Object(i.a)(r,n)),r}return r.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,o){var i=this.buffer;this.buffer=[],this.destination.next(i)},e}(o.a)}]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/60.00eab917.js b/plugins/saladict-ztools/ext-saladic/assets/60.00eab917.js new file mode 100644 index 00000000..d1e73386 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/60.00eab917.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[60],{269:function(a){a.exports=JSON.parse('{"af":"Afrikaans","am":"Amharic","ar":"Arabic","auto":"Detect language","az":"Azerbaijani","be":"Belarusian","bg":"Bulgarian","bn":"Bengali","bs":"Bosnian","ca":"Catalan","ceb":"Cebuano","co":"Corsican","cs":"Czech","cy":"Welsh","da":"Danish","de":"German","el":"Greek","en":"English","eo":"Esperanto","es":"Spanish","et":"Estonian","eu":"Basque","fa":"Persian","fi":"Finnish","fil":"Filipino","fj":"Fijian","fr":"French","fy":"Frisian","ga":"Irish","gd":"Scots Gaelic","gl":"Galician","gu":"Gujarati","ha":"Hausa","haw":"Hawaiian","he":"Hebrew","hi":"Hindi","hmn":"Hmong","hr":"Croatian","ht":"Haitian Creole","hu":"Hungarian","hy":"Armenian","id":"Indonesian","ig":"Igbo","is":"Icelandic","it":"Italian","ja":"Japanese","jw":"Javanese","ka":"Georgian","kk":"Kazakh","km":"Khmer","kn":"Kannada","ko":"Korean","ku":"Kurdish (Kurmanji)","ky":"Kyrgyz","la":"Latin","lb":"Luxembourgish","lo":"Lao","lt":"Lithuanian","lv":"Latvian","mg":"Malagasy","mi":"Maori","mk":"Macedonian","ml":"Malayalam","mn":"Mongolian","mr":"Marathi","ms":"Malay","mt":"Maltese","mww":"Bai Miao Wen","my":"Myanmar (Burmese)","ne":"Nepali","nl":"Dutch","no":"Norwegian","ny":"Nyanja (Chichewa)","otq":"Cretaro Ottomi","pa":"Punjabi","pl":"Polish","ps":"Pashto","pt":"Portuguese (Portugal, Brazil)","ro":"Romanian","ru":"Russian","sd":"Sindhi","si":"Sinhala (Sinhalese)","sk":"Slovak","sl":"Slovenian","sm":"Samoan","sn":"Shona","so":"Somali","sq":"Albanian","sr":"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)","st":"Sesotho","su":"Sundanese","sv":"Swedish","sw":"Swahili","ta":"Tamil","te":"Telugu","tg":"Tajik","th":"Thai","tlh":"Klingon","tlh-Qaak":"Klingon (piqaD)","to":"Tongan","tr":"Turkish","ty":"Tahiti","ug":"Uighur","uk":"Ukrainian","ur":"Urdu","uz":"Uzbek","vi":"Vietnamese","wyw":"Classical Chinese","xh":"Xhosa","yi":"Yiddish","yo":"Yoruba","yua":"Yucatan Mayan","yue":"Cantonese (Traditional)","zh-CN":"Chinese (Simplified)","zh-TW":"Chinese (Traditional)","zu":"Zulu"}')},412:function(a,i,n){"use strict";n.r(i),n.d(i,"locale",(function(){return s}));var e=n(269);const s={...e,default:"Default",ne_NP:"Nepali",ara:"Arabic","bs-Latn":"Bosnian",bul:"Bulgarian",cht:"Chinese (Traditional)",dan:"Danish",est:"Estonian",fin:"Finnish",fra:"French",iw:"Hebrew",jp:"Japanese",kor:"Korean",kr:"Korean",pt_BR:"Brazilian",rom:"Romanian",slo:"Slovenian",spa:"Spanish",swe:"Swedish",tl:"Tagalog (Filipino)",vie:"Vietnamese",zh:"Chinese (Simplified)","zh-CHS":"Chinese (Simplified)","zh-CHT":"Chinese (Traditional)"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/61.f5d51745.js b/plugins/saladict-ztools/ext-saladic/assets/61.f5d51745.js new file mode 100644 index 00000000..ccc4522f --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/61.f5d51745.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[61],{269:function(a){a.exports=JSON.parse('{"af":"Afrikaans","am":"Amharic","ar":"Arabic","auto":"Detect language","az":"Azerbaijani","be":"Belarusian","bg":"Bulgarian","bn":"Bengali","bs":"Bosnian","ca":"Catalan","ceb":"Cebuano","co":"Corsican","cs":"Czech","cy":"Welsh","da":"Danish","de":"German","el":"Greek","en":"English","eo":"Esperanto","es":"Spanish","et":"Estonian","eu":"Basque","fa":"Persian","fi":"Finnish","fil":"Filipino","fj":"Fijian","fr":"French","fy":"Frisian","ga":"Irish","gd":"Scots Gaelic","gl":"Galician","gu":"Gujarati","ha":"Hausa","haw":"Hawaiian","he":"Hebrew","hi":"Hindi","hmn":"Hmong","hr":"Croatian","ht":"Haitian Creole","hu":"Hungarian","hy":"Armenian","id":"Indonesian","ig":"Igbo","is":"Icelandic","it":"Italian","ja":"Japanese","jw":"Javanese","ka":"Georgian","kk":"Kazakh","km":"Khmer","kn":"Kannada","ko":"Korean","ku":"Kurdish (Kurmanji)","ky":"Kyrgyz","la":"Latin","lb":"Luxembourgish","lo":"Lao","lt":"Lithuanian","lv":"Latvian","mg":"Malagasy","mi":"Maori","mk":"Macedonian","ml":"Malayalam","mn":"Mongolian","mr":"Marathi","ms":"Malay","mt":"Maltese","mww":"Bai Miao Wen","my":"Myanmar (Burmese)","ne":"Nepali","nl":"Dutch","no":"Norwegian","ny":"Nyanja (Chichewa)","otq":"Cretaro Ottomi","pa":"Punjabi","pl":"Polish","ps":"Pashto","pt":"Portuguese (Portugal, Brazil)","ro":"Romanian","ru":"Russian","sd":"Sindhi","si":"Sinhala (Sinhalese)","sk":"Slovak","sl":"Slovenian","sm":"Samoan","sn":"Shona","so":"Somali","sq":"Albanian","sr":"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)","st":"Sesotho","su":"Sundanese","sv":"Swedish","sw":"Swahili","ta":"Tamil","te":"Telugu","tg":"Tajik","th":"Thai","tlh":"Klingon","tlh-Qaak":"Klingon (piqaD)","to":"Tongan","tr":"Turkish","ty":"Tahiti","ug":"Uighur","uk":"Ukrainian","ur":"Urdu","uz":"Uzbek","vi":"Vietnamese","wyw":"Classical Chinese","xh":"Xhosa","yi":"Yiddish","yo":"Yoruba","yua":"Yucatan Mayan","yue":"Cantonese (Traditional)","zh-CN":"Chinese (Simplified)","zh-TW":"Chinese (Traditional)","zu":"Zulu"}')},420:function(a,i,n){"use strict";n.r(i),n.d(i,"locale",(function(){return o}));var e=n(269);const o={...e,default:"Predeterminado",ne_NP:"Nepalí",ara:"Arabe","bs-Latn":"Bosnio",bul:"Búlgaro",cht:"Chino (Tradicional)",dan:"Danés",est:"Estonio",fin:"Finlandés",fra:"Francés",iw:"Hebreo",jp:"Japonés",kor:"Coreano",kr:"Coreano",pt_BR:"Brasileño",rom:"Rumano",slo:"Esloveno",spa:"Español",swe:"Sueco",tl:"Tagalo (Filipino)",vie:"Vietnamita",zh:"Chino (Simplificado)","zh-CHS":"Chino (Simplificado)","zh-CHT":"Chino (Tradicional)"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/62.4e97d030.js b/plugins/saladict-ztools/ext-saladic/assets/62.4e97d030.js new file mode 100644 index 00000000..d986ef8f --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/62.4e97d030.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[62],{269:function(a){a.exports=JSON.parse('{"af":"Afrikaans","am":"Amharic","ar":"Arabic","auto":"Detect language","az":"Azerbaijani","be":"Belarusian","bg":"Bulgarian","bn":"Bengali","bs":"Bosnian","ca":"Catalan","ceb":"Cebuano","co":"Corsican","cs":"Czech","cy":"Welsh","da":"Danish","de":"German","el":"Greek","en":"English","eo":"Esperanto","es":"Spanish","et":"Estonian","eu":"Basque","fa":"Persian","fi":"Finnish","fil":"Filipino","fj":"Fijian","fr":"French","fy":"Frisian","ga":"Irish","gd":"Scots Gaelic","gl":"Galician","gu":"Gujarati","ha":"Hausa","haw":"Hawaiian","he":"Hebrew","hi":"Hindi","hmn":"Hmong","hr":"Croatian","ht":"Haitian Creole","hu":"Hungarian","hy":"Armenian","id":"Indonesian","ig":"Igbo","is":"Icelandic","it":"Italian","ja":"Japanese","jw":"Javanese","ka":"Georgian","kk":"Kazakh","km":"Khmer","kn":"Kannada","ko":"Korean","ku":"Kurdish (Kurmanji)","ky":"Kyrgyz","la":"Latin","lb":"Luxembourgish","lo":"Lao","lt":"Lithuanian","lv":"Latvian","mg":"Malagasy","mi":"Maori","mk":"Macedonian","ml":"Malayalam","mn":"Mongolian","mr":"Marathi","ms":"Malay","mt":"Maltese","mww":"Bai Miao Wen","my":"Myanmar (Burmese)","ne":"Nepali","nl":"Dutch","no":"Norwegian","ny":"Nyanja (Chichewa)","otq":"Cretaro Ottomi","pa":"Punjabi","pl":"Polish","ps":"Pashto","pt":"Portuguese (Portugal, Brazil)","ro":"Romanian","ru":"Russian","sd":"Sindhi","si":"Sinhala (Sinhalese)","sk":"Slovak","sl":"Slovenian","sm":"Samoan","sn":"Shona","so":"Somali","sq":"Albanian","sr":"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)","st":"Sesotho","su":"Sundanese","sv":"Swedish","sw":"Swahili","ta":"Tamil","te":"Telugu","tg":"Tajik","th":"Thai","tlh":"Klingon","tlh-Qaak":"Klingon (piqaD)","to":"Tongan","tr":"Turkish","ty":"Tahiti","ug":"Uighur","uk":"Ukrainian","ur":"Urdu","uz":"Uzbek","vi":"Vietnamese","wyw":"Classical Chinese","xh":"Xhosa","yi":"Yiddish","yo":"Yoruba","yua":"Yucatan Mayan","yue":"Cantonese (Traditional)","zh-CN":"Chinese (Simplified)","zh-TW":"Chinese (Traditional)","zu":"Zulu"}')},428:function(a,i,n){"use strict";n.r(i),n.d(i,"locale",(function(){return s}));var e=n(269);const s={...e,default:"पुर्वनिर्धारित",ne_NP:"नेपाली",ara:"अरबी","bs-Latn":"बोस्नियाली (ल्याटिन)",bul:"बुल्गेरियाली",cht:"चिनियाँ (परम्परागत)",dan:"डेनिस",est:"इस्टोनियाली",fin:"फिनिस",fra:"फ्रान्सेली",iw:"हिब्रु",jp:"जापानी",kor:"कोरियाली",kr:"कोरियाली",pt_BR:"पोर्तुगी (ब्राजिल)",rom:"रोमानियाली",slo:"स्लोभाकियाली",spa:"स्पेनिस",swe:"स्विडिस",tl:"फिलिपिनी (तागालोग)",vie:"भियतनामी",zh:"चिनियाँ (सरलिकृत)","zh-CHS":"चिनियाँ (सरलिकृत)","zh-CHT":"चिनियाँ (परम्परागत)"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/62.ddd66f55.js b/plugins/saladict-ztools/ext-saladic/assets/62.ddd66f55.js deleted file mode 100644 index 714da482..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/62.ddd66f55.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[62],{1337:function(t,i,e){(i=e(221)(!1)).push([t.i,'.dictCNKI-DictLink{display:inline-block;margin-right:1em;line-height:1.8}.dictCNKI-Sensbi p{position:relative;padding-left:2em}.dictCNKI-Sensbi p:nth-of-type(2n+1){margin-bottom:0}.dictCNKI-Sensbi p:nth-of-type(2n+1)+p{margin-top:0}.dictCNKI-Sensbi p:nth-of-type(2n+1)::before{content:"•";display:block;position:absolute;left:.8em}.dictCNKI-Sensbi font{color:#f9690e}.dictCNKI-Senseng p{position:relative;padding-left:2em}.dictCNKI-Senseng p::before{content:"•";display:block;position:absolute;left:.8em}.dictCNKI-Senseng font{color:#f9690e}.dictCNKI-SensTitle{margin-left:5px;font-size:1.3em}.dictCNKI-SensMore{text-align:right;padding:0 1em}',""]),t.exports=i},674:function(t,i,e){var n=e(1337);t.exports="string"==typeof n?n:n.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/63.a1c9d928.js b/plugins/saladict-ztools/ext-saladic/assets/63.a1c9d928.js new file mode 100644 index 00000000..b0d8c2a5 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/63.a1c9d928.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[63],{436:function(t,a,s){"use strict";s.r(a),s.d(a,"locale",(function(){return r}));var n=s(653);const r={...n,default:"随扩展语言",ne_NP:"尼泊尔语",ara:"阿拉伯语","bs-Latn":"波斯尼亚语",bul:"保加利亚语",cht:"中文(繁体)",dan:"丹麦语",est:"爱沙尼亚语",fin:"芬兰语",fra:"法语",iw:"希伯来语",jp:"日语",kor:"韩语",kr:"韩语",pt_BR:"巴西语",rom:"罗马尼亚语",slo:"斯洛文尼亚语",spa:"西班牙语",swe:"瑞典语",tl:"塔加路语(菲律宾语)",vie:"越南语",zh:"中文(简体)","zh-CHS":"中文(简体)","zh-CHT":"中文(繁体)"}},653:function(t){t.exports=JSON.parse('{"af":"南非荷兰语","am":"阿姆哈拉语","ar":"阿拉伯语","auto":"检测语言","az":"阿塞拜疆语","be":"白俄罗斯语","bg":"保加利亚语","bn":"孟加拉语","bs":"波斯尼亚语","ca":"加泰罗尼亚语","ceb":"宿务语","co":"科西嘉语","cs":"捷克语","cy":"威尔士语","da":"丹麦语","de":"德语","el":"希腊语","en":"英语","eo":"世界语","es":"西班牙语","et":"爱沙尼亚语","eu":"巴斯克语","fa":"波斯语","fi":"芬兰语","fil":"菲律宾语","fj":"斐济语","fr":"法语","fy":"弗里斯兰语","ga":"爱尔兰语","gd":"苏格兰盖尔语","gl":"加利西亚语","gu":"古吉拉特语","ha":"豪萨语","haw":"夏威夷语","he":"希伯来语","hi":"印地语","hmn":"苗语","hr":"克罗地亚语","ht":"海地克里奥尔语","hu":"匈牙利语","hy":"亚美尼亚语","id":"印度尼西亚语","ig":"伊博语","is":"冰岛语","it":"意大利语","ja":"日语","jw":"爪哇语","ka":"格鲁吉亚语","kk":"哈萨克语","km":"高棉语","kn":"卡纳达语","ko":"韩语","ku":"库尔德语","ky":"吉尔吉斯语","la":"拉丁语","lb":"卢森堡语","lo":"老挝语","lt":"立陶宛语","lv":"拉脱维亚语","mg":"马尔加什语","mi":"毛利语","mk":"马其顿语","ml":"马拉雅拉姆语","mn":"蒙古语","mr":"马拉地语","ms":"马来语","mt":"马耳他语","mww":"白苗文","my":"缅甸语","ne":"尼泊尔语","nl":"荷兰语","no":"挪威语","ny":"尼杨扎语(齐切瓦语)","otq":"克雷塔罗奥托米语","pa":"旁遮普语","pl":"波兰语","ps":"普什图语","pt":"葡萄牙语(葡萄牙、巴西)","ro":"罗马尼亚语","ru":"俄语","sd":"信德语","si":"僧伽罗语","sk":"斯洛伐克语","sl":"斯洛文尼亚语","sm":"萨摩亚语","sn":"修纳语","so":"索马里语","sq":"阿尔巴尼亚语","sr":"塞尔维亚语","sr-Cyrl":"塞尔维亚语(西里尔文)","sr-Latn":"塞尔维亚语(拉丁文)","st":"塞索托语","su":"巽他语","sv":"瑞典语","sw":"斯瓦希里语","ta":"泰米尔语","te":"泰卢固语","tg":"塔吉克语","th":"泰语","tlh":"克林贡语","tlh-Qaak":"克林贡语(piqaD)","to":"汤加语","tr":"土耳其语","ty":"塔希提语","ug":"维吾尔语","uk":"乌克兰语","ur":"乌尔都语","uz":"乌兹别克语","vi":"越南语","wyw":"文言文","xh":"班图语","yi":"意第绪语","yo":"约鲁巴语","yua":"尤卡坦玛雅语","yue":"粤语(繁体)","zh-CN":"中文(简体)","zh-TW":"中文(繁体)","zu":"祖鲁语"}')}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/64.e449702c.js b/plugins/saladict-ztools/ext-saladic/assets/64.e449702c.js new file mode 100644 index 00000000..eaf462de --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/64.e449702c.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[64],{444:function(t,a,s){"use strict";s.r(a),s.d(a,"locale",(function(){return r}));var n=s(654);const r={...n,default:"同介面語言",ne_NP:"尼泊爾語",ara:"阿拉伯語","bs-Latn":"波斯尼亞語",bul:"保加利亞語",cht:"中文(繁體)",dan:"丹麥語",est:"愛沙尼亞語",fin:"芬蘭語",fra:"法語",iw:"希伯來語",jp:"日語",kor:"韓語",kr:"韓語",pt_BR:"巴西語",rom:"羅馬尼亞語",slo:"斯洛維尼亞語",spa:"西班牙語",swe:"瑞典語",tl:"他加祿語(菲律賓語)",vie:"越南語",zh:"中文(簡體)","zh-CHS":"中文(簡體)","zh-CHT":"中文(繁體)"}},654:function(t){t.exports=JSON.parse('{"af":"南非荷蘭語","am":"阿姆哈拉語","ar":"阿拉伯語","auto":"偵測語言","az":"亞塞拜然語","be":"白俄羅斯語","bg":"保加利亞語","bn":"孟加拉語","bs":"波斯尼亞語","ca":"加泰羅尼亞語","ceb":"宿務語","co":"科西嘉語","cs":"捷克語","cy":"威爾士語","da":"丹麥語","de":"德語","el":"希臘語","en":"英語","eo":"世界語","es":"西班牙語","et":"愛沙尼亞語","eu":"巴斯克語","fa":"波斯語","fi":"芬蘭語","fil":"菲律賓語","fj":"斐濟語","fr":"法語","fy":"弗里斯蘭語","ga":"愛爾蘭語","gd":"蘇格蘭蓋爾語","gl":"加利西亞語","gu":"古吉拉特語","ha":"豪薩語","haw":"夏威夷語","he":"希伯來語","hi":"印地語","hmn":"苗語","hr":"克羅埃西亞語","ht":"海地克里奧爾語","hu":"匈牙利語","hy":"亞美尼亞語","id":"印度尼西亞語","ig":"伊博語","is":"冰島語","it":"義大利語","ja":"日語","jw":"爪哇語","ka":"喬治亞語","kk":"哈薩克語","km":"高棉語","kn":"卡納達語","ko":"韓語","ku":"庫爾德語","ky":"吉爾吉斯語","la":"拉丁語","lb":"盧森堡語","lo":"寮國語","lt":"立陶宛語","lv":"拉脫維亞語","mg":"馬爾加什語","mi":"毛利語","mk":"馬其頓語","ml":"馬拉雅拉姆語","mn":"蒙古語","mr":"馬拉地語","ms":"馬來語","mt":"馬耳他語","mww":"白苗文","my":"緬甸語","ne":"尼泊爾語","nl":"荷蘭語","no":"挪威語","ny":"尼楊扎語(齊切瓦語)","otq":"克雷塔羅奧托米語","pa":"旁遮普語","pl":"波蘭語","ps":"普什圖語","pt":"葡萄牙語(葡萄牙、巴西)","ro":"羅馬尼亞語","ru":"俄語","sd":"信德語","si":"僧伽羅語","sk":"斯洛伐克語","sl":"斯洛維尼亞語","sm":"薩摩亞語","sn":"修納語","so":"索馬利亞語","sq":"阿爾巴尼亞語","sr":"塞爾維亞語","sr-Cyrl":"塞爾維亞語(西里爾文)","sr-Latn":"塞爾維亞語(拉丁文)","st":"塞索托語","su":"巽他語","sv":"瑞典語","sw":"斯瓦希里語","ta":"泰米爾語","te":"泰盧固語","tg":"塔吉克語","th":"泰語","tlh":"克林貢語","tlh-Qaak":"克林貢語(piqaD)","to":"湯加語","tr":"土耳其語","ty":"塔希提語","ug":"維吾爾語","uk":"烏克蘭語","ur":"烏爾都語","uz":"烏茲別克語","vi":"越南語","wyw":"文言文","xh":"班圖語","yi":"意第緒語","yo":"約魯巴語","yua":"尤卡坦瑪雅語","yue":"粵語(繁體)","zh-CN":"中文(簡體)","zh-TW":"中文(繁體)","zu":"祖魯語"}')}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/65.3e036e25.js b/plugins/saladict-ztools/ext-saladic/assets/65.3e036e25.js deleted file mode 100644 index b4f7a268..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/65.3e036e25.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[65],{1340:function(t,n,i){(n=i(221)(!1)).push([t.i,'.dictEudic-Item{margin-bottom:10px}.dictEudic-Item p{margin:0}.dictEudic-Channel{color:#999}.dictEudic-Channel::before{content:"《"}.dictEudic-Channel::after{content:"》"}',""]),t.exports=n},677:function(t,n,i){var c=i(1340);t.exports="string"==typeof c?c:c.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/65.429dd05a.js b/plugins/saladict-ztools/ext-saladic/assets/65.429dd05a.js new file mode 100644 index 00000000..fd375ad7 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/65.429dd05a.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[65],{1373:function(e,a,t){"use strict";t.d(a,"a",(function(){return h}));var r=t(0),s=t.n(r),n=t(190),l=t(97),c=t(1),u=t(9);const o=new Set(["ar","ara","az","fa","he","iw","ku","ug","ur"]),i=s.a.memo(({result:e,source:a})=>s.a.createElement(l.c,{src:"#"===e[a].tts?()=>(console.log({type:"DICT_ENGINE_METHOD",payload:{id:e.id,method:"getTTS",args:[e[a].paragraphs.join(" "),"trans"===a?e.tl:e.sl]}}),c.a.send({type:"DICT_ENGINE_METHOD",payload:{id:e.id,method:"getTTS",args:[e[a].paragraphs.join(" "),"trans"===a?e.tl:e.sl]}})):e[a].tts})),m=s.a.memo(({result:e,source:a,lang:t})=>s.a.createElement("div",{className:"MachineTrans-Lines"},s.a.createElement(i,{result:e,source:a}),e[a].paragraphs.map((e,a)=>s.a.createElement("p",{key:a,className:"MachineTrans-lang-"+t},e)))),p=s.a.memo(({result:e,source:a,lang:t})=>{const[n,l]=Object(r.useState)(!1),c=Object(r.useCallback)(()=>l(!1),[l]),u=Object(r.useRef)(null);return Object(r.useLayoutEffect)(()=>{if(n||!u.current)return;if(u.current.querySelectorAll("p").length>1)return void l(!0);const e=u.current.querySelector("p span");e&&e.getClientRects().length>1&&l(!0)},[]),s.a.createElement("div",{ref:u,className:"MachineTrans-Lines"},s.a.createElement(i,{result:e,source:a}),n?s.a.createElement("div",{className:"MachineTrans-Lines-collapse MachineTrans-lang-"+t},s.a.createElement("button",{onClick:c},e[a].paragraphs.join(" "))):e[a].paragraphs.map((e,a)=>s.a.createElement("p",{key:a,className:"MachineTrans-lang-"+t},s.a.createElement("span",null,e))))}),h=e=>{const{tl:a,sl:t}=e.result,[l,i]=Object(r.useState)(e.result.slInitial);return Object(n.a)(e.catalogSelect$,({key:r,value:s})=>{switch(r){case"showSl":i("full");break;case"sl":case"tl":e.searchText({id:e.result.id,payload:{sl:t,tl:a,[r]:s}});break;case"copySrc":c.a.send({type:"SET_CLIPBOARD",payload:e.result.searchText.paragraphs.join("\n")});break;case"copyTrans":c.a.send({type:"SET_CLIPBOARD",payload:e.result.trans.paragraphs.join("\n")})}}),e.result.requireCredential?function(){const{t:e}=Object(u.d)("content");return s.a.createElement(u.c,{message:e("machineTrans.login")},s.a.createElement("a",{href:browser.runtime.getURL("options.html?menuselected=DictAuths"),target:"_blank",rel:"nofollow noopener noreferrer"},e("machineTrans.dictAccount")))}():s.a.createElement("div",{className:o.has(t)||o.has(a)?"MachineTrans-has-rtl":void 0},s.a.createElement("div",{className:"MachineTrans-Text"},"full"===l?s.a.createElement(m,{result:e.result,source:"searchText",lang:t}):"collapse"===l?s.a.createElement(p,{result:e.result,source:"searchText",lang:t}):null,s.a.createElement(m,{result:e.result,source:"trans",lang:a})))}},679:function(e,a,t){"use strict";t.r(a);var r=t(1373);t.d(a,"default",(function(){return r.a}))}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/66.14366e41.js b/plugins/saladict-ztools/ext-saladic/assets/66.14366e41.js new file mode 100644 index 00000000..7a2c0518 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/66.14366e41.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[66],{1373:function(e,a,t){"use strict";t.d(a,"a",(function(){return h}));var r=t(0),s=t.n(r),n=t(190),l=t(97),c=t(1),u=t(9);const o=new Set(["ar","ara","az","fa","he","iw","ku","ug","ur"]),i=s.a.memo(({result:e,source:a})=>s.a.createElement(l.c,{src:"#"===e[a].tts?()=>(console.log({type:"DICT_ENGINE_METHOD",payload:{id:e.id,method:"getTTS",args:[e[a].paragraphs.join(" "),"trans"===a?e.tl:e.sl]}}),c.a.send({type:"DICT_ENGINE_METHOD",payload:{id:e.id,method:"getTTS",args:[e[a].paragraphs.join(" "),"trans"===a?e.tl:e.sl]}})):e[a].tts})),m=s.a.memo(({result:e,source:a,lang:t})=>s.a.createElement("div",{className:"MachineTrans-Lines"},s.a.createElement(i,{result:e,source:a}),e[a].paragraphs.map((e,a)=>s.a.createElement("p",{key:a,className:"MachineTrans-lang-"+t},e)))),p=s.a.memo(({result:e,source:a,lang:t})=>{const[n,l]=Object(r.useState)(!1),c=Object(r.useCallback)(()=>l(!1),[l]),u=Object(r.useRef)(null);return Object(r.useLayoutEffect)(()=>{if(n||!u.current)return;if(u.current.querySelectorAll("p").length>1)return void l(!0);const e=u.current.querySelector("p span");e&&e.getClientRects().length>1&&l(!0)},[]),s.a.createElement("div",{ref:u,className:"MachineTrans-Lines"},s.a.createElement(i,{result:e,source:a}),n?s.a.createElement("div",{className:"MachineTrans-Lines-collapse MachineTrans-lang-"+t},s.a.createElement("button",{onClick:c},e[a].paragraphs.join(" "))):e[a].paragraphs.map((e,a)=>s.a.createElement("p",{key:a,className:"MachineTrans-lang-"+t},s.a.createElement("span",null,e))))}),h=e=>{const{tl:a,sl:t}=e.result,[l,i]=Object(r.useState)(e.result.slInitial);return Object(n.a)(e.catalogSelect$,({key:r,value:s})=>{switch(r){case"showSl":i("full");break;case"sl":case"tl":e.searchText({id:e.result.id,payload:{sl:t,tl:a,[r]:s}});break;case"copySrc":c.a.send({type:"SET_CLIPBOARD",payload:e.result.searchText.paragraphs.join("\n")});break;case"copyTrans":c.a.send({type:"SET_CLIPBOARD",payload:e.result.trans.paragraphs.join("\n")})}}),e.result.requireCredential?function(){const{t:e}=Object(u.d)("content");return s.a.createElement(u.c,{message:e("machineTrans.login")},s.a.createElement("a",{href:browser.runtime.getURL("options.html?menuselected=DictAuths"),target:"_blank",rel:"nofollow noopener noreferrer"},e("machineTrans.dictAccount")))}():s.a.createElement("div",{className:o.has(t)||o.has(a)?"MachineTrans-has-rtl":void 0},s.a.createElement("div",{className:"MachineTrans-Text"},"full"===l?s.a.createElement(m,{result:e.result,source:"searchText",lang:t}):"collapse"===l?s.a.createElement(p,{result:e.result,source:"searchText",lang:t}):null,s.a.createElement(m,{result:e.result,source:"trans",lang:a})))}},681:function(e,a,t){"use strict";t.r(a);var r=t(1373);t.d(a,"default",(function(){return r.a}))}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/67.178b104f.js b/plugins/saladict-ztools/ext-saladic/assets/67.178b104f.js deleted file mode 100644 index 7f7a550e..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/67.178b104f.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[67],{1342:function(i,t,n){(t=n(221)(!1)).push([i.i,"ol li{list-style:none}li,ol,ul{border:0;margin:0;padding:0}img{max-width:99%}.saladict-Speaker{float:left;margin-top:10px}.hide-focus-ring{outline:0}.KAwqid [jsname=Stv3Z]{display:none!important}.KAwqid [jsname=hj0qK]{display:block!important}[role=listitem]>div>a{color:inherit;text-decoration:none}.brWULd{width:initial!important;height:initial!important;margin:initial!important;padding:initial!important}.brWULd>.saladict-Speaker~*{display:none!important}.gycwpf{margin:0!important}.GgmXif{font-size:1.8em!important}.DgZBFd{line-height:1!important}.jY7QFf{min-height:1em!important}.pgRvse{padding-top:0!important}.SDZsVb{color:#f9690e!important}[jsname=p0q1Sd]{display:none!important}.MR2UAc{background:var(--color-background)!important;border:1px solid var(--color-divider)!important}.D1MTm,.jEdCLc{color:var(--color-font-grey)!important}",""]),i.exports=t},679:function(i,t,n){var o=n(1342);i.exports="string"==typeof o?o:o.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/67.892127bb.js b/plugins/saladict-ztools/ext-saladic/assets/67.892127bb.js new file mode 100644 index 00000000..6cd7c65e --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/67.892127bb.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[67],{1373:function(e,a,t){"use strict";t.d(a,"a",(function(){return h}));var r=t(0),s=t.n(r),n=t(190),l=t(97),c=t(1),u=t(9);const o=new Set(["ar","ara","az","fa","he","iw","ku","ug","ur"]),i=s.a.memo(({result:e,source:a})=>s.a.createElement(l.c,{src:"#"===e[a].tts?()=>(console.log({type:"DICT_ENGINE_METHOD",payload:{id:e.id,method:"getTTS",args:[e[a].paragraphs.join(" "),"trans"===a?e.tl:e.sl]}}),c.a.send({type:"DICT_ENGINE_METHOD",payload:{id:e.id,method:"getTTS",args:[e[a].paragraphs.join(" "),"trans"===a?e.tl:e.sl]}})):e[a].tts})),m=s.a.memo(({result:e,source:a,lang:t})=>s.a.createElement("div",{className:"MachineTrans-Lines"},s.a.createElement(i,{result:e,source:a}),e[a].paragraphs.map((e,a)=>s.a.createElement("p",{key:a,className:"MachineTrans-lang-"+t},e)))),p=s.a.memo(({result:e,source:a,lang:t})=>{const[n,l]=Object(r.useState)(!1),c=Object(r.useCallback)(()=>l(!1),[l]),u=Object(r.useRef)(null);return Object(r.useLayoutEffect)(()=>{if(n||!u.current)return;if(u.current.querySelectorAll("p").length>1)return void l(!0);const e=u.current.querySelector("p span");e&&e.getClientRects().length>1&&l(!0)},[]),s.a.createElement("div",{ref:u,className:"MachineTrans-Lines"},s.a.createElement(i,{result:e,source:a}),n?s.a.createElement("div",{className:"MachineTrans-Lines-collapse MachineTrans-lang-"+t},s.a.createElement("button",{onClick:c},e[a].paragraphs.join(" "))):e[a].paragraphs.map((e,a)=>s.a.createElement("p",{key:a,className:"MachineTrans-lang-"+t},s.a.createElement("span",null,e))))}),h=e=>{const{tl:a,sl:t}=e.result,[l,i]=Object(r.useState)(e.result.slInitial);return Object(n.a)(e.catalogSelect$,({key:r,value:s})=>{switch(r){case"showSl":i("full");break;case"sl":case"tl":e.searchText({id:e.result.id,payload:{sl:t,tl:a,[r]:s}});break;case"copySrc":c.a.send({type:"SET_CLIPBOARD",payload:e.result.searchText.paragraphs.join("\n")});break;case"copyTrans":c.a.send({type:"SET_CLIPBOARD",payload:e.result.trans.paragraphs.join("\n")})}}),e.result.requireCredential?function(){const{t:e}=Object(u.d)("content");return s.a.createElement(u.c,{message:e("machineTrans.login")},s.a.createElement("a",{href:browser.runtime.getURL("options.html?menuselected=DictAuths"),target:"_blank",rel:"nofollow noopener noreferrer"},e("machineTrans.dictAccount")))}():s.a.createElement("div",{className:o.has(t)||o.has(a)?"MachineTrans-has-rtl":void 0},s.a.createElement("div",{className:"MachineTrans-Text"},"full"===l?s.a.createElement(m,{result:e.result,source:"searchText",lang:t}):"collapse"===l?s.a.createElement(p,{result:e.result,source:"searchText",lang:t}):null,s.a.createElement(m,{result:e.result,source:"trans",lang:a})))}},686:function(e,a,t){"use strict";t.r(a);var r=t(1373);t.d(a,"default",(function(){return r.a}))}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/68.7af03c0b.js b/plugins/saladict-ztools/ext-saladic/assets/68.7af03c0b.js new file mode 100644 index 00000000..68425236 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/68.7af03c0b.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[68],{1373:function(e,a,t){"use strict";t.d(a,"a",(function(){return h}));var r=t(0),s=t.n(r),n=t(190),l=t(97),c=t(1),u=t(9);const o=new Set(["ar","ara","az","fa","he","iw","ku","ug","ur"]),i=s.a.memo(({result:e,source:a})=>s.a.createElement(l.c,{src:"#"===e[a].tts?()=>(console.log({type:"DICT_ENGINE_METHOD",payload:{id:e.id,method:"getTTS",args:[e[a].paragraphs.join(" "),"trans"===a?e.tl:e.sl]}}),c.a.send({type:"DICT_ENGINE_METHOD",payload:{id:e.id,method:"getTTS",args:[e[a].paragraphs.join(" "),"trans"===a?e.tl:e.sl]}})):e[a].tts})),m=s.a.memo(({result:e,source:a,lang:t})=>s.a.createElement("div",{className:"MachineTrans-Lines"},s.a.createElement(i,{result:e,source:a}),e[a].paragraphs.map((e,a)=>s.a.createElement("p",{key:a,className:"MachineTrans-lang-"+t},e)))),p=s.a.memo(({result:e,source:a,lang:t})=>{const[n,l]=Object(r.useState)(!1),c=Object(r.useCallback)(()=>l(!1),[l]),u=Object(r.useRef)(null);return Object(r.useLayoutEffect)(()=>{if(n||!u.current)return;if(u.current.querySelectorAll("p").length>1)return void l(!0);const e=u.current.querySelector("p span");e&&e.getClientRects().length>1&&l(!0)},[]),s.a.createElement("div",{ref:u,className:"MachineTrans-Lines"},s.a.createElement(i,{result:e,source:a}),n?s.a.createElement("div",{className:"MachineTrans-Lines-collapse MachineTrans-lang-"+t},s.a.createElement("button",{onClick:c},e[a].paragraphs.join(" "))):e[a].paragraphs.map((e,a)=>s.a.createElement("p",{key:a,className:"MachineTrans-lang-"+t},s.a.createElement("span",null,e))))}),h=e=>{const{tl:a,sl:t}=e.result,[l,i]=Object(r.useState)(e.result.slInitial);return Object(n.a)(e.catalogSelect$,({key:r,value:s})=>{switch(r){case"showSl":i("full");break;case"sl":case"tl":e.searchText({id:e.result.id,payload:{sl:t,tl:a,[r]:s}});break;case"copySrc":c.a.send({type:"SET_CLIPBOARD",payload:e.result.searchText.paragraphs.join("\n")});break;case"copyTrans":c.a.send({type:"SET_CLIPBOARD",payload:e.result.trans.paragraphs.join("\n")})}}),e.result.requireCredential?function(){const{t:e}=Object(u.d)("content");return s.a.createElement(u.c,{message:e("machineTrans.login")},s.a.createElement("a",{href:browser.runtime.getURL("options.html?menuselected=DictAuths"),target:"_blank",rel:"nofollow noopener noreferrer"},e("machineTrans.dictAccount")))}():s.a.createElement("div",{className:o.has(t)||o.has(a)?"MachineTrans-has-rtl":void 0},s.a.createElement("div",{className:"MachineTrans-Text"},"full"===l?s.a.createElement(m,{result:e.result,source:"searchText",lang:t}):"collapse"===l?s.a.createElement(p,{result:e.result,source:"searchText",lang:t}):null,s.a.createElement(m,{result:e.result,source:"trans",lang:a})))}},696:function(e,a,t){"use strict";t.r(a);var r=t(1373);t.d(a,"default",(function(){return r.a}))}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/69.64d974c8.js b/plugins/saladict-ztools/ext-saladic/assets/69.64d974c8.js new file mode 100644 index 00000000..c71b58ce --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/69.64d974c8.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[69],{1373:function(e,a,t){"use strict";t.d(a,"a",(function(){return h}));var r=t(0),s=t.n(r),n=t(190),l=t(97),c=t(1),u=t(9);const o=new Set(["ar","ara","az","fa","he","iw","ku","ug","ur"]),i=s.a.memo(({result:e,source:a})=>s.a.createElement(l.c,{src:"#"===e[a].tts?()=>(console.log({type:"DICT_ENGINE_METHOD",payload:{id:e.id,method:"getTTS",args:[e[a].paragraphs.join(" "),"trans"===a?e.tl:e.sl]}}),c.a.send({type:"DICT_ENGINE_METHOD",payload:{id:e.id,method:"getTTS",args:[e[a].paragraphs.join(" "),"trans"===a?e.tl:e.sl]}})):e[a].tts})),m=s.a.memo(({result:e,source:a,lang:t})=>s.a.createElement("div",{className:"MachineTrans-Lines"},s.a.createElement(i,{result:e,source:a}),e[a].paragraphs.map((e,a)=>s.a.createElement("p",{key:a,className:"MachineTrans-lang-"+t},e)))),p=s.a.memo(({result:e,source:a,lang:t})=>{const[n,l]=Object(r.useState)(!1),c=Object(r.useCallback)(()=>l(!1),[l]),u=Object(r.useRef)(null);return Object(r.useLayoutEffect)(()=>{if(n||!u.current)return;if(u.current.querySelectorAll("p").length>1)return void l(!0);const e=u.current.querySelector("p span");e&&e.getClientRects().length>1&&l(!0)},[]),s.a.createElement("div",{ref:u,className:"MachineTrans-Lines"},s.a.createElement(i,{result:e,source:a}),n?s.a.createElement("div",{className:"MachineTrans-Lines-collapse MachineTrans-lang-"+t},s.a.createElement("button",{onClick:c},e[a].paragraphs.join(" "))):e[a].paragraphs.map((e,a)=>s.a.createElement("p",{key:a,className:"MachineTrans-lang-"+t},s.a.createElement("span",null,e))))}),h=e=>{const{tl:a,sl:t}=e.result,[l,i]=Object(r.useState)(e.result.slInitial);return Object(n.a)(e.catalogSelect$,({key:r,value:s})=>{switch(r){case"showSl":i("full");break;case"sl":case"tl":e.searchText({id:e.result.id,payload:{sl:t,tl:a,[r]:s}});break;case"copySrc":c.a.send({type:"SET_CLIPBOARD",payload:e.result.searchText.paragraphs.join("\n")});break;case"copyTrans":c.a.send({type:"SET_CLIPBOARD",payload:e.result.trans.paragraphs.join("\n")})}}),e.result.requireCredential?function(){const{t:e}=Object(u.d)("content");return s.a.createElement(u.c,{message:e("machineTrans.login")},s.a.createElement("a",{href:browser.runtime.getURL("options.html?menuselected=DictAuths"),target:"_blank",rel:"nofollow noopener noreferrer"},e("machineTrans.dictAccount")))}():s.a.createElement("div",{className:o.has(t)||o.has(a)?"MachineTrans-has-rtl":void 0},s.a.createElement("div",{className:"MachineTrans-Text"},"full"===l?s.a.createElement(m,{result:e.result,source:"searchText",lang:t}):"collapse"===l?s.a.createElement(p,{result:e.result,source:"searchText",lang:t}):null,s.a.createElement(m,{result:e.result,source:"trans",lang:a})))}},697:function(e,a,t){"use strict";t.r(a);var r=t(1373);t.d(a,"default",(function(){return r.a}))}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/69.7081fec2.js b/plugins/saladict-ztools/ext-saladic/assets/69.7081fec2.js deleted file mode 100644 index 5cd9021b..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/69.7081fec2.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[69],{1344:function(i,o,n){(o=n(221)(!1)).push([i.i,'.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:after,.ui-helper-clearfix:before{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}/*!\n * jQuery UI Button 1.12.1\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/button/#theming\n */.ui-button{padding:.4em 1em;display:inline-block;position:relative;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;-moz-user-select:none;user-select:none;overflow:visible}.ui-button,.ui-button:active,.ui-button:hover,.ui-button:link,.ui-button:visited{text-decoration:none}.ui-button-icon-only{width:2em;box-sizing:border-box;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-button-icon-only{text-indent:0}.ui-button-icon-only .ui-icon{position:absolute;top:50%;left:50%;margin-top:-8px;margin-left:-8px}.ui-button.ui-icon-notext .ui-icon{padding:0;width:2.1em;height:2.1em;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-icon-notext .ui-icon{width:auto;height:auto;text-indent:0;white-space:normal;padding:.4em 1em}button.ui-button::-moz-focus-inner,input.ui-button::-moz-focus-inner{border:0;padding:0}/*!\n * jQuery UI CSS Framework 1.12.1\n * http://jqueryui.com\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/theming/\n *\n * To view and modify this theme, visit http://jqueryui.com/themeroller/\n */.ui-widget{font-family:Arial,Helvetica,sans-serif}.ui-widget,.ui-widget .ui-widget{font-size:1em}.ui-widget button,.ui-widget input,.ui-widget select,.ui-widget textarea{font-family:Arial,Helvetica,sans-serif;font-size:1em}.ui-widget.ui-widget-content{border:1px solid #c5c5c5}.ui-widget-content{border:1px solid #ddd;background:#fff}.ui-widget-header{border:1px solid #ddd;background:#e9e9e9;font-weight:700}.ui-button,.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default,html .ui-button.ui-state-disabled:active,html .ui-button.ui-state-disabled:hover{border:1px solid #c5c5c5;background:#f6f6f6;font-weight:400;color:#454545}.ui-button,.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited,a.ui-button,a:link.ui-button,a:visited.ui-button{color:#454545;text-decoration:none}.ui-button:focus,.ui-button:hover,.ui-state-focus,.ui-state-hover,.ui-widget-content .ui-state-focus,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-focus,.ui-widget-header .ui-state-hover{border:1px solid #ccc;background:#ededed;font-weight:400;color:#2b2b2b}.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited,.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,a.ui-button:focus,a.ui-button:hover{color:#2b2b2b;text-decoration:none}.ui-visual-focus{box-shadow:0 0 3px 1px #5e9ed6}.ui-button.ui-state-active:hover,.ui-button:active,.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active,a.ui-button:active{border:1px solid #003eff;background:#007fff;font-weight:400;color:#fff}.ui-icon-background,.ui-state-active .ui-icon-background{border:#003eff;background-color:#fff}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#fff;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #dad55e;background:#fffa90;color:#777620}.ui-state-checked{border:1px solid #dad55e;background:#fffa90}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#777620}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #f1a899;background:#fddfdf;color:#5f3f3f}.ui-state-error a,.ui-state-error-text,.ui-widget-content .ui-state-error a,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error a,.ui-widget-header .ui-state-error-text{color:#5f3f3f}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:700}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:400}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url(https://www.hjdict.com/img/ui-icons_444444_256x240-a4c73.png)}.ui-widget-header .ui-icon{background-image:url(https://www.hjdict.com/img/ui-icons_444444_256x240-a4c73.png)}.ui-button:focus .ui-icon,.ui-button:hover .ui-icon,.ui-state-focus .ui-icon,.ui-state-hover .ui-icon{background-image:url(https://www.hjdict.com/img/ui-icons_555555_256x240-97136.png)}.ui-button:active .ui-icon,.ui-state-active .ui-icon{background-image:url(https://www.hjdict.com/img/ui-icons_ffffff_256x240-bf272.png)}.ui-button .ui-state-highlight.ui-icon,.ui-state-highlight .ui-icon{background-image:url(https://www.hjdict.com/img/ui-icons_777620_256x240-208a2.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(https://www.hjdict.com/img/ui-icons_cc0000_256x240-0de3b.png)}.ui-button .ui-icon{background-image:url(https://www.hjdict.com/img/ui-icons_777777_256x240-73a1f.png)}.ui-icon-blank{background-position:16px 16px}.ui-icon-caret-1-n{background-position:0 0}.ui-icon-caret-1-ne{background-position:-16px 0}.ui-icon-caret-1-e{background-position:-32px 0}.ui-icon-caret-1-se{background-position:-48px 0}.ui-icon-caret-1-s{background-position:-65px 0}.ui-icon-caret-1-sw{background-position:-80px 0}.ui-icon-caret-1-w{background-position:-96px 0}.ui-icon-caret-1-nw{background-position:-112px 0}.ui-icon-caret-2-n-s{background-position:-128px 0}.ui-icon-caret-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-65px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-65px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:1px -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-first,.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-left,.ui-corner-tl,.ui-corner-top{border-top-left-radius:3px}.ui-corner-all,.ui-corner-right,.ui-corner-top,.ui-corner-tr{border-top-right-radius:3px}.ui-corner-all,.ui-corner-bl,.ui-corner-bottom,.ui-corner-left{border-bottom-left-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-br,.ui-corner-right{border-bottom-right-radius:3px}.ui-widget-overlay{background:#aaa;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{box-shadow:0 0 5px #666}.ui-dialog{display:none!important}.ui-widget-overlay{display:none}.ui-checkboxradio-label{display:none}.ui-checkboxradio-radio-label{display:none}.ui-checkboxradio-disabled{pointer-events:none}.word-feedback{display:none}.pronounces{font-size:1em;line-height:1.2}.pronounces .word-audio{vertical-align:top;margin-left:2px}.pronounces .word-audio-en{margin-right:30px}.pronounces .word-audio-kr{margin-right:50px}.pronounces .pronounce-value-en,.pronounces .pronounce-value-us{font-family:Lucida Sans Unicode}.pronounces .pronounce-value-jp{font-family:ms gothic,arial,sans-serif}.simple{margin-top:.5em}.simple>p{margin:.5em 0;line-height:1.2}.simple>h2{font-size:1em;font-weight:400;margin:.5em 0 .5em -7px;}.simple>ul>li{margin-bottom:0}.simple>ul>li:last-child{margin:0}.simple>ul>li>span{display:inline-block;text-align:left;width:14px;line-height:1.2;margin-right:8px}.word-details .simple a{display:inline-block;margin-right:16px;color:#fff}.word-details .simple a:hover{text-decoration:underline}.phrase-items{counter-reset:eq;margin:0;padding:0 0 0 1em}.phrase-items li{line-height:1.2em;margin-bottom:.5em;list-style-type:none}.phrase-items li:before{counter-increment:eq;content:counter(eq) ".";width:22px;float:left}.phrase-items li:first-of-type:last-of-type:before{display:none}.phrase-def{color:var(--color-font-grey);margin-left:10px}.enen-groups dl{counter-reset:eq}.enen-groups dt{margin-bottom:.5em}.enen-groups dd{line-height:1.2;margin:0 0 .5em 1em}.enen-groups dd:before{counter-increment:eq;content:counter(eq) ".";width:22px;float:left}.enen-groups dd:first-of-type:last-of-type:before{display:none}.detail-source{font-size:1em;line-height:1.2;margin-bottom:.5em}.detail-source span{font-size:.8em;color:#fff;line-height:1.2;display:inline-block;border-radius:2px;text-align:center;white-space:nowrap;word-break:keep-all;margin-left:7px;padding:1px 3px}.detail-source .collins-icon{background:#c94444}.detail-source .wys-icon{background:#414585}.detail-source .wjs-icon{background:#287ae4}.detail-source .sflep-icon{color:#fff;background:#1f9b88}.detail-source .krcr-icon{color:#fff;width:34px;background:#c94444}.detail-tags-en{overflow:hidden}.detail-tags-en li{height:16px;line-height:1.2;background-color:#f0f0f0;border-radius:2px;text-align:center;color:var(--color-font-grey);float:left;font-size:1em;padding:0 4px;margin-right:8px}.detail .tags-word{font-weight:700;font-size:1.2em;line-height:1.2;padding-right:4px}.detail-tags-jp{margin:0 0 12px}.detail-tags-jp i{color:var(--color-font-grey);padding:0 4px;font-style:normal}.detail-groups{margin-top:1em}.detail-groups dl{counter-reset:eq;margin-bottom:1em}.detail-groups dt{margin-bottom:.8em;font-weight:700;line-height:1.2}.detail-groups dd{margin:0 0 1em 1em}.detail-groups dd h3{font-size:1em;font-weight:400;line-height:1.2;margin:0 0 .5em}.detail-groups dd h3:before{counter-increment:eq;content:counter(eq) ".";display:block;width:22px;float:left}.detail-groups dd h3 p{margin:0 0 0 22px}.detail-groups dd h3 p:first-child{margin-bottom:6px}.detail-groups dd p{margin-left:22px}.detail-groups dd:first-of-type:last-of-type h3:before{display:none}.detail-groups dd:first-of-type:last-of-type h3 p{margin:0}.detail-groups dd:first-of-type:last-of-type ul{margin-left:0}.detail-groups ul{margin-left:22px}.detail-groups ul li{color:var(--color-font-grey);margin-bottom:.5em}.detail-groups ul li p{margin:0 0 5px;line-height:1.2}.detail-pron{margin-left:6px;font-family:Lucida Sans Unicode}.detail .def-sentence-from .def-sentence-to span{vertical-align:top;margin:1px 0 2px 2px;display:inline-block}.detail .def-tags span{border:1px solid #333;color:var(--color-font-grey);border-radius:2px;display:inline-block;line-height:1.2em;font-size:1em;width:36px;text-align:center;margin-right:8px}.analyzes-title{line-height:1.2;margin:1.1em 0 1em}.analyzes-title:first-of-type{margin-top:0}.analyzes-items{counter-reset:eq}.analyzes-items li{margin:0 0 .8em 1em;line-height:1.2}.analyzes-items li p{color:var(--color-font-grey);margin:2px 0 0 22px}.analyzes-items li:before{counter-increment:eq;content:counter(eq) ".";width:22px;float:left}.inflections li{line-height:1.2em;margin-bottom:.8em}.inflections-item-attr{display:inline-block;margin-right:10px}.inflections-value{color:var(--color-font-grey)}.sentences-items{counter-reset:eq}.sentences li{margin-bottom:14px}.sentences li p{line-height:1.2;margin:0 0 6px}.sentences-item-from:before{counter-increment:eq;content:counter(eq) ".";width:22px;float:left}.sentences-item-from span{line-height:1.2;margin:1px 0 2px 2px}.sentences-item-to{color:var(--color-font-grey);padding-left:22px}.ant>p,.syn>p{color:var(--color-font-grey);margin:0 0 6px}.ant table,.syn table{margin-bottom:14px}.ant td,.syn td{line-height:1.2;padding-right:50px}.ant-single,.syn-single{display:inline-block;margin:0 50px 14px 0}.ant-single>span,.syn-single>span{color:var(--color-font-grey)}.synant-content{margin-top:20px}.synant p{color:var(--color-font-grey)}.word-notfound,.word-suggestions{min-height:800px;padding:50px 30px}.word-notfound h2,.word-suggestions h2{font-size:2em;font-weight:400}.word-suggestions h2{margin-bottom:20px}.word-suggestions ul{font-size:1.16em}.word-suggestions ul li{margin-bottom:14px}.word-suggestions a{color:#2e94f7}.word-suggestions a:hover{text-decoration:underline}.word-notfound{text-align:center;vertical-align:bottom}.word-notfound:before{content:"";display:inline-block;width:54px;height:54px;margin-right:32px;background:url(https://www.hjdict.com/img/icon-notfound@2x-bbd46.png) no-repeat 0/100%}.word-notfound-inner{display:inline-block;text-align:left}.word-notfound h2{margin:0 0 5px}.word-notfound p{margin:0;color:#a9a9a9}.word-notfound p em{font-style:normal;font-weight:700}.word-details{position:relative}.word-details-header{padding-top:5px}.word-details-header>p{line-height:1.2;margin:0 0 1em}.word-details-header>p>span{color:#2e94f7}.word-details .redirection{color:#fff;line-height:1.2;margin:0 0 20px;opacity:.8}.word-details-tab{cursor:pointer;display:inline-block;margin:0 10px 10px 0;border-radius:5px;padding:8px 10px;white-space:nowrap;word-break:keep-all;color:#333;background:#f5f8ff}.word-details-tab h2{font-size:1.5em;line-height:1.2;margin:0;font-weight:400;display:inline-block}.word-details-tab-active{color:#fff;background-color:#2e94f7}.word-details-tab .pronounces{display:inline-block;line-height:1.2;vertical-align:top;margin-left:5px}.word-details-pane{display:none}.word-details-pane-header{margin-bottom:1em}.word-details-pane-header .word-text{margin:5px 0 .1em}.word-details-pane-header .word-text .add-to-scb-loading{background:url(https://www.hjdict.com/img/loading-289f3.png) no-repeat 0 0/cover;animation:xd-loading .6s steps(8) infinite both}.word-details-pane-header .word-text .add-to-scb-success{background:url(data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTQ1N0M1MTRDMDRCMTFFNzlGNEY5NDYwNkM0QUE2NjciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTQ1N0M1MTVDMDRCMTFFNzlGNEY5NDYwNkM0QUE2NjciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxNDU3QzUxMkMwNEIxMUU3OUY0Rjk0NjA2QzRBQTY2NyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxNDU3QzUxM0MwNEIxMUU3OUY0Rjk0NjA2QzRBQTY2NyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pvx0vOAAAAJLSURBVHja7JkxSMNAFIbT1LGDYnEIRRBdrIOjk0uELkJFHDo5OEpQWlAcXHXTVSld3NwEB7t1ciw4VaRDxUGLIB1sESy0xv/ghvS8xGuauyDmwUfJJe/d3+Tl3V1O02C2bcfBPqiCri3furQv0mdcG8ao2IodnlWGEa2DAjC18MykGoQF57TwLTdMSnwyj2hStjr0kWT6/BT1jZGrBxpgKm6p33517Y9ZJDgSHAlWbGN+y9CwFlS5jFIiEuw3hyUM2fe+3oWw5hJRDv+bOuyVUgiRws8aWAWzwKCnmqABbsA1Qjx7CnGa6HVu5uJrgBLoCYTo0WuNUASjKQvaPhanxCerVDAOd0F/hBU18d3xJdjHEijrIrYG8iANEpQ0bau5iM5KFUxzts35eGIB3cNPp9d0OelhyBRc4og1SXhBTI7okhTBpHRxqoElKHQclMES9WGrR0qGYIuTs7qA2ClwR31aYJGT05YMwWUmZJ4KOgRHLmJJzj8wfq/ggGkryxBcZ0KSClBwHJ+AmEPsDHjkPP5N6uu0ugzBHSbkBvhi2s6o6HnwwnlB1+mfSTDnOioET4BLTn29Am9M2wfIOO6+EsG8lCDfoC9+GdXewTKT2z9SQsb0ssEcZ0AfbIFzF58WWAG3HN/B2IrLGsnbU+Z8EyxwKoeuqqyJDBzHtP0JzLmUOteBg/2gnVQ0NG+DaT9DczWgzZWi6OTHY7QTmvzsBS1Y9vQyqG2vIic1gp/AO0SPurFY9JjIB7dEUrQBE9giNKZY+MjL/G8BBgDu7CBuz18G6wAAAABJRU5ErkJggg==) 0 0/contain}.word-details-pane-header .word-text .word-info{margin-bottom:20px}.word-details-pane-header .word-text h2{font-size:1.5em;line-height:1.2;margin:0;font-weight:400;display:inline-block}.word-details-pane-header .word-text a,.word-details-pane-header .word-text button{display:inline-block;width:20px;height:20px;line-height:1.2;margin-left:30px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAABGdBTUEAALGPC/xhBQAAAp9JREFUWAntWbFOAkEQBbHESipCbOj8DAobEyz9ATqi0UQ/xsBPWNCY+AW2WtIZPkApMFHxvePOm5u7PQbclZAwyYSZ2zcz7/aG2727SgUyn89r0FvoE/QDGlpYg7VYs0YOZmEA9BG6KWFtM+k9nNk1tGM+Q/9A1iYHk5DwuQkZFmTngMsxU71wGJZb9J9pqJoza80qAyW4CpF+KHvdumyJrZId4dCXazfDuxlWM7CvfKerb0NOoGPA1+1y18OOCfZ2eOtm2NzDvnpQTPWLsM3mxvYSZoYKuHUtsXWEzT1svQ+X9TpytHCFz6Cn0Da0CaVMoGPoCHqPHK/4LRYSkVKMijbdEua0i+IBbkIH0E9nYDpADLHJyWRTpriFlR1NPY1z+WnEwgKuC31z4UuOM6ar8/ERPyM5QHwgAypxZDxgl9CvEviyIcZeyJxmwpkgg4NCnNkiss84fgU9htZjpc1jHNPCHOlM61EDl6UQ5GTP6jbgy5M+1Hln4liM0S9zmGvR0zAyspSNAYCE/NNIIYGODJWDtNVYB4c06UGEKQuUSaw28rWg+m7Q1/HL6mKcV0MKc7a89zCS6kLsy1wbSCa0C06I7aF7up9LpAPX8LkoSBliIfiWByx2HDNU2FPzSqcCy1yuYFIe6BTNogTp8XjFjGIFru19t4bC7yhQF0UOUHyqCYnxQpOEEcM8zJfINERLJMmD/IYgzI2MlCPprGjr2EkIwtx1STmhw0ssRQJKxqNYgR2HIMwtopQeenHlOnFMTyaCPQpxHw6+cOgX2g11Viu7mJ2gSzO/5viQu+TMkCzo5ufGB1vk+CVM4vCDbS99ffbKEI5J+9/Ax4l9fFjMERYzrffGlota/IjEpKEF7Lw9hP7LF6NkQkD8z4/5P0eRZrlVgPOgAAAAAElFTkSuQmCC) 0 0/contain;border:none;outline:0;cursor:pointer}.word-details-pane-header .word-text .add-scb{display:none}.word-details-pane-content{padding:0}.word-details-pane mark.highlight{color:#2e94f7;background:0 0}.word-details-item{margin-bottom:1em}.word-details-item:last-of-type{margin-bottom:0}.word-details-item>h2{font-size:1.5em;line-height:1.2;margin:0 0 10px;padding-bottom:5px;font-weight:400;border-bottom:1px solid #666}.word-details-button-expand{cursor:pointer}.word-details-button-feedback{padding:10px 25px;font-size:1.16em;border-radius:20px;background-color:#fff;border:1px solid #2e94f7;color:#2e94f7}.word-details a{color:#2e94f7}.word-details a:hover{text-decoration:underline}.word-details-pane-active{display:block!important}',""]),i.exports=o},681:function(i,o,n){var t=n(1344);i.exports="string"==typeof t?t:t.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/7.16c0cfd6.js b/plugins/saladict-ztools/ext-saladic/assets/7.16c0cfd6.js deleted file mode 100644 index 7b22deac..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/7.16c0cfd6.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[7],{1:function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var a=n(76),o=n(38),s=n(10);const i=()=>{},r=new WeakMap,c=new WeakMap,l=new WeakMap,u={sync:{clear:g,remove:p,get:f,set:m,addListener:y,removeListener:b,createStream:w,get __storageArea__(){return"sync"}},local:{clear:g,remove:p,get:f,set:m,addListener:y,removeListener:b,createStream:w,get __storageArea__(){return"local"}},clear:g,addListener:y,removeListener:b,createStream:w,get __storageArea__(){return"all"}},d={send:M,addListener:j,removeListener:O,createStream:N,get __self__(){return!1},self:{initClient:I,initServer:function(){window.pageId="background page";const e=/^\[\[(.+)\]\]$/;browser.runtime.onMessage.addListener((t,n)=>{if(!t||!t.type)return;if("PAGE_INFO"===t.type)return Promise.resolve(function(e){const t={pageId:"",faviconURL:"",pageTitle:"",pageURL:""},n=e.tab;n?(t.pageId=n.id||"",n.favIconUrl&&(t.faviconURL=n.favIconUrl),n.url&&(t.pageURL=n.url),n.title&&(t.pageTitle=n.title)):(t.pageId="popup",e.url&&!e.url.startsWith("http")&&(t.faviconURL="https://saladict.crimx.com/favicon.ico"));return t}(n));const a=e.exec(t.type);if(a){t.type=a[1];const e=n.tab&&n.tab.id;return e?M(e,t):M(t)}})},send:async function(e){!1;void 0===window.pageId&&await I();return browser.runtime.sendMessage(Object.assign({},e,{__pageId__:window.pageId,type:`[[${e.type}]]`})).catch(e=>{!1})},addListener:j,removeListener:O,createStream:N,get __self__(){return!0}}};async function h(e,t){const n="string"==typeof e?{url:e,self:t}:e,a=!1!==n.unique,o=n.self?browser.runtime.getURL(n.url):n.url;if(a){const e=await browser.tabs.query({url:o}).catch(()=>[]);if(e.length>0){const{index:t,windowId:n}=e[0];return"function"==typeof browser.tabs.highlight&&await browser.tabs.highlight({tabs:t,windowId:n}),void await browser.windows.update(n,{focused:!0})}}await browser.tabs.create({url:o,active:!1!==n.active})}function g(){return"all"===this.__storageArea__?Promise.all([browser.storage.local.clear(),browser.storage.sync.clear()]).then(i):browser.storage[this.__storageArea__].clear()}function p(e){return browser.storage[this.__storageArea__].remove(e)}function f(...e){return browser.storage[this.__storageArea__].get(...e)}function m(e){return browser.storage[this.__storageArea__].set(e)}function y(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}let a=l.get(n);a||(a=new Map,l.set(n,a));const o=this.__storageArea__+t;let s=a.get(o);return s||(s=(e,a)=>{"all"!==this.__storageArea__&&a!==this.__storageArea__||t&&!(t in e)||n(e,a)},a.set(o,s)),browser.storage.onChanged.addListener(s)}function b(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}const a=l.get(n);if(a){if(!t)return a.forEach(e=>{browser.storage.onChanged.removeListener(e)}),void l.delete(n);{const e=this.__storageArea__+t,o=a.get(e);if(o)return browser.storage.onChanged.removeListener(o),a.delete(e),void(a.size<=0&&l.delete(n))}}browser.storage.onChanged.removeListener(n)}function w(e){if(!e)throw new Error("Missing key");return Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)).pipe(Object(o.a)(t=>Object.prototype.hasOwnProperty.call(Array.isArray(t)?t[0]:t,e)),Object(s.a)(t=>Array.isArray(t)?t[0][e]:t[e]))}function M(...e){return(1===e.length?browser.runtime.sendMessage(e[0]):browser.tabs.sendMessage(e[0],e[1])).catch(e=>{!1})}function j(...e){void 0===window.pageId&&I();const t=this.__self__?c:r,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1];let o=t.get(a);o||(o=new Map,t.set(a,o));let s=o.get(n||"__DEFAULT_MSGTYPE__");return s||(s=(e,t)=>{if(e&&(this.__self__?window.pageId===e.__pageId__:!e.__pageId__)&&(null==n||e.type===n))return a(e,t)},o.set(n||"__DEFAULT_MSGTYPE__",s)),browser.runtime.onMessage.addListener(s)}function O(...e){const t=this.__self__?c:r,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1],o=t.get(a);if(o){if(!n)return o.forEach(e=>browser.runtime.onMessage.removeListener(e)),void t.delete(a);{const e=o.get(n);if(e)return browser.runtime.onMessage.removeListener(e),o.delete(n),void(o.size<=0&&t.delete(a))}}browser.runtime.onMessage.removeListener(a)}function N(e){return(e?Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)):Object(a.a)(e=>this.addListener(e),e=>this.removeListener(e))).pipe(Object(s.a)(e=>Array.isArray(e)?e[0]:e))}function I(){return void 0===window.pageId?d.send({type:"PAGE_INFO"}).then(({pageId:e,faviconURL:t,pageTitle:n,pageURL:a})=>(window.pageId=e,window.faviconURL=t,n&&(window.pageTitle=n),a&&(window.pageURL=a),e)):Promise.resolve(window.pageId)}},11:function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(1);function o(e){return e?{date:e.date||Date.now(),text:e.text||"",context:e.context||"",title:e.title||"",url:e.url||"",favicon:e.favicon||"",trans:e.trans||"",note:e.note||""}:{date:Date.now(),text:"",context:"",title:"",url:"",favicon:"",trans:"",note:""}}function s(e){return a.a.send({type:"IS_IN_NOTEBOOK",payload:e}).catch((t=!1,e=>t));var t}async function i(e,t){await a.a.send({type:"SAVE_WORD",payload:{area:e,word:t}})}async function r(e,t){await a.a.send({type:"SYNC_SERVICE_DOWNLOAD"}),await a.a.send({type:"DELETE_WORDS",payload:{area:e,dates:t}})}function c(e,t){return a.a.send({type:"GET_WORDS_BY_TEXT",payload:{area:e,text:t}})}function l(e,t){return a.a.send({type:"GET_WORDS",payload:{area:e,...t}})}},113:function(e,t,n){"use strict";function a(){return Date.now().toString().slice(6)+Math.random().toString().slice(2,8)}n.d(t,"a",(function(){return a}))},119:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return d}));var a=n(0),o=n.n(a),s=n(389),i=n(46);const r=o.a.createContext(async()=>{}),c=e=>{const[t,n]=Object(a.useState)(()=>"string"==typeof e.src?e.src:"#"),i=Object(a.useContext)(r);if(Object(s.a)(()=>{n("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const c=e.width||e.height||"1.2em",l=e.height||c;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:c,height:l},onClick:async a=>{if("#"===t&&"function"==typeof e.src){a.stopPropagation(),a.preventDefault();const t=await e.src();i(t),n(t)}}})};t.c=o.a.memo(c);const l=e=>{const{onPlayStart:t,...n}=e,s=Object(a.useCallback)(e=>{if(e.target&&"A"===e.target.tagName&&e.target.href&&"#"!==e.target.href&&e.target.classList&&e.target.classList.contains("saladict-Speaker")){e.preventDefault(),e.stopPropagation();const n=e.target;n.classList.add("isActive"),Object(i.b)([Object(i.d)(1e3),t(n.href)]).then(()=>{n.classList.remove("isActive")})}},[t]);return o.a.createElement(r.Provider,{value:t},o.a.createElement("div",{onClick:s,...n}))},u=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},d=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""},133:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return f}));var a=n(0),o=n.n(a),s=n(89),i=n(116),r=n(30),c=n(240),l=n(130),u=n(104),d=n(87),h=n(135),g=n(20);const p=o.a.createContext({current:null}),f=e=>{const t=Object(a.useContext)(p),n=Object(a.useRef)(null),f=Object(a.useRef)(null),[m,y]=Object(i.a)(d.c),[b,w]=Object(i.a)(d.d),[M,j]=Object(i.a)(d.b),[O,N]=Object(i.a)(d.a),[I,C]=Object(i.a)(r.b),D=Object(c.a)(Object(l.a)(()=>Object(u.a)(y,w)),!1),z=Object(c.a)(Object(l.a)(()=>Object(u.a)(j,N,C)),!1),A=D||z,[E,T]=Object(a.useState)(()=>null==e.left?{top:null==e.top?40:e.top,left:"50%",transform:"translateX(-50%)"}:{top:null==e.top?40:e.top,left:e.left});return o.a.createElement("div",{className:"hoverBox-Container",ref:n},o.a.createElement(e.Button,{onKeyDown:e=>{switch(e.key){case"ArrowDown":if(e.preventDefault(),e.stopPropagation(),A){if(f.current){const e=f.current.firstElementChild;e&&e.focus()}}else I(!0);break;case"Tab":if(!e.shiftKey&&A&&f.current){e.preventDefault(),e.stopPropagation();const t=f.current.firstElementChild;t&&t.focus()}}},onMouseOver:m,onMouseOut:m,onClick:()=>{e.onBtnClick&&!1===e.onBtnClick()||b()}}),o.a.createElement(s.a,{classNames:"csst-hoverBox",in:A,timeout:100,mountOnEnter:!0,unmountOnExit:!0,onEnter:()=>{if(t.current&&n.current){const a=t.current.getBoundingClientRect(),o=n.current.getBoundingClientRect();T({top:o.y-a.y+(null==e.top?40:e.top),left:o.x-a.x+(null==e.left?-Math.floor(o.width/2):e.left)})}},onExited:()=>e.onHeightChanged&&e.onHeightChanged(0)},()=>{const a=o.a.createElement("div",{className:"hoverBox-FloatBox",style:E},o.a.createElement(h.a,{ref:f,compact:e.compact,list:e.items,onFocus:O,onBlur:O,onMouseOver:M,onMouseOut:M,onArrowUpFirst:e=>e.lastElementChild.focus(),onArrowDownLast:e=>e.firstElementChild.focus(),onSelect:e.onSelect,onHeightChanged:e.onHeightChanged,onClose:()=>I(!1)}));return t.current&&n.current?Object(g.createPortal)(a,t.current):a}))}},135:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),o=n.n(a),s=n(184),i=n(4),r=n.n(i);const c=o.a.forwardRef((e,t)=>{const[n,i]=Object(a.useState)(0),[c,l]=Object(a.useState)(0),u=Object(a.useCallback)((t,a)=>{l(t),i(a),e.onHeightChanged&&a!==n&&e.onHeightChanged(a)},[e.onHeightChanged]);return o.a.createElement("div",{className:r()("floatBox-Container",{"floatBox-compact":e.compact}),style:{width:c,height:n},onMouseOver:e.onMouseOver,onMouseOut:e.onMouseOut},o.a.createElement("div",{className:"floatBox-Measure"},o.a.createElement(s.ResizeReporter,{reportInit:!0,onSizeChanged:u}),e.list?o.a.createElement("div",{key:"box",ref:t,className:"floatBox"},e.list.map((function(t){if(t.options)return o.a.createElement("select",{key:t.key,className:"floatBox-Item floatBox-Select","data-key":t.key,defaultValue:t.value,onFocus:e.onFocus,onBlur:e.onBlur,onChange:d},t.title&&o.a.createElement("option",{disabled:!0},t.title),t.options.map(e=>o.a.createElement("option",{key:e.value,value:e.value},e.label)));return o.a.createElement("button",{key:t.key,className:"floatBox-Item floatBox-Btn","data-key":t.key,"data-value":t.value,onFocus:e.onFocus,onBlur:e.onBlur,onClick:h,onKeyDown:g},t.label)}))):o.a.createElement("div",{key:"loading",className:"lds-ellipsis"},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))));function d(t){if(e.onSelect){const{dataset:{key:n},value:a}=t.currentTarget;e.onSelect(n,a)}}function h(t){if(e.onSelect){const{key:n,value:a}=t.currentTarget.dataset;e.onSelect(n,a)}}function g(t){if("ArrowDown"===t.key){t.preventDefault(),t.stopPropagation();const n=t.currentTarget.nextSibling;n?n.focus():e.onArrowDownLast&&e.onArrowDownLast(t.currentTarget.parentElement)}else if("ArrowUp"===t.key){t.preventDefault(),t.stopPropagation();const n=t.currentTarget.previousSibling;n?n.focus():e.onArrowUpFirst&&e.onArrowUpFirst(t.currentTarget.parentElement)}else"Escape"===t.key&&(t.preventDefault(),t.stopPropagation(),e.onClose&&e.onClose(t.currentTarget.parentElement))}})},141:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=Object.keys},160:function(e,t,n){"use strict";n.d(t,"b",(function(){return y}));var a=n(78),o=n(81),s=n(73),i=n.n(s),r=n(90),c=n.n(r),l=n(100),u=n.n(l),d=n(57),h=n.n(d),g=n(21),p=n.n(g),f=n(27),m=n.n(f);function y(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.a)();let s=e.version;return s<13&&(e.showedDictAuth=!0),s<=9&&(s=10,["mode","pinMode","panelMode","qsPanelMode"].forEach(t=>{n[t].holding.shift=!1,n[t].holding.ctrl=!!e[t].ctrl,n[t].holding.meta=!!e[t].ctrl,delete e[t].ctrl})),r("tripleCtrlPreload","qsPreload"),r("tripleCtrlAuto","qsAuto"),r("tripleCtrlLocation","qsLocation"),r("tripleCtrlStandalone","qsStandalone"),r("tripleCtrlHeight","qssaHeight"),r("tripleCtrlSidebar","qssaSidebar"),r("tripleCtrlPageSel","qssaPageSel"),Object.keys(n).forEach(t=>{switch(t){case"langCode":f("langCode",e=>/^(zh-CN|zh-TW|en)$/.test(e));break;case"pdfWhitelist":case"pdfBlacklist":case"whitelist":case"blacklist":f(t,e=>Array.isArray(e));break;case"searhHistory":case"searchHistory":n.searchHistory=e[t];break;case"searhHistoryInco":case"searchHistoryInco":n.searchHistoryInco=e[t];break;case"mode":case"pinMode":case"panelMode":case"qsPanelMode":"mode"===t&&g("mode.icon"),g(t+".direct"),g(t+".double"),g(t+".holding.alt"),g(t+".holding.shift"),g(t+".holding.ctrl"),g(t+".holding.meta"),g(t+".instant.enable"),f(t+".instant.key",e=>/^(direct|ctrl|alt|shift)$/.test(e)),l(t+".instant.delay");break;case"qsPreload":f("qsPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"qsLocation":f("qsLocation",e=>"CENTER"===e||"TOP"===e||"RIGHT"===e||"BOTTOM"===e||"LEFT"===e||"TOP_LEFT"===e||"TOP_RIGHT"===e||"BOTTOM_LEFT"===e||"BOTTOM_RIGHT"===e);break;case"baPreload":f("baPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"ctxTrans":i()(n.ctxTrans,(e,t)=>{g("ctxTrans."+t)});break;case"language":i()(n.language,(e,t)=>{g("language."+t)});break;case"autopron":f("autopron.cn.dict",e=>o.a[e]),f("autopron.en.dict",e=>o.a[e]),f("autopron.en.accent",e=>"us"===e||"uk"===e),f("autopron.machine.dict",e=>o.a[e]),f("autopron.machine.src",e=>"trans"===e||"searchText"===e);break;case"contextMenus":i()(e.contextMenus.all,(e,t)=>{"string"==typeof e?n.contextMenus.all[t]&&d("contextMenus.all."+t):(d(`contextMenus.all.${t}.name`),d(`contextMenus.all.${t}.url`))}),function(t){const a=p()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)m()(n,[t,"selected"],[]);else{const e=p()(n,[t,"all"]),o=a.filter(t=>e[t]);o.length>0&&m()(n,[t,"selected"],o)}}("contextMenus");break;case"dictAuth":f("dictAuth",Boolean);break;default:switch(typeof n[t]){case"string":d(t);break;case"boolean":g(t);break;case"number":l(t);break;default:console.error(new Error(`merge config: missing handler for '${t}'`))}}}),s=e.version,s<=10&&(s=11,n.contextMenus.selected.unshift("view_as_pdf")),s<=11&&(s=12,n.blacklist.push(["^https://stackedit.io(/.*)?$","https://stackedit.io/*"])),!1===e.language.minor&&(n.language.japanese=!1,n.language.korean=!1,n.language.french=!1,n.language.spanish=!1,n.language.deutsch=!1),n.panelMaxHeightRatio<1&&(n.panelMaxHeightRatio=Math.round(100*n.panelMaxHeightRatio)),n;function r(t,n){!Object.prototype.hasOwnProperty.call(e,n)&&Object.prototype.hasOwnProperty.call(e,t)&&(e[n]=e[t])}function l(e){return f(e,c.a)}function d(e){return f(e,u.a)}function g(e){return f(e,h.a)}function f(t,a){const o=p()(e,t);a(o)&&m()(n,t,o)}}t.a=y},165:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appid:"",key:""},o="http://api.fanyi.baidu.com/api/trans/product/prodinfo"},166:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={token:""},o="https://fanyi.caiyunapp.com/#/api"},167:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={pid:"",key:""},o="https://deepi.sogou.com/?from=translatepc"},168:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={secretId:"",secretKey:""},o="https://curl.qcloud.com/imsowZzT"},169:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appKey:"",key:""},o="http://ai.youdao.com/gw.s"},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i}));var a=n(24);async function o(e,t,{options:n,options_sel:o},s,i){("none"===n.keepLF||"pdf"===n.keepLF&&!i.isPDF||"webpage"===n.keepLF&&i.isPDF)&&(t=t.replace(/\n+/g," "));let r=i.sl;r||(Object(a.g)(t)?r="ja":Object(a.h)(t)&&(r="ko")),r||(r=await e.detect(t));let c="";return i.tl?c=i.tl:"default"===n.tl?o.tl.includes(s.langCode)&&(c=s.langCode):c=n.tl,c||(c=o.tl.find(e=>"default"!==e)||"en"),r===c&&(i.tl?i.sl||(r="auto"):c="default"===n.tl2?c!==s.langCode?s.langCode:"en"!==c?"en":o.tl.find(e=>"default"!==e&&e!==c)||"en":n.tl2),{sl:r,tl:c,text:t}}function s(e,t,n,a){return{lang:"11111111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:320,selectionWC:{min:1,max:999999999999999},...t,options:{keepLF:"webpage",slInitial:"collapse",tl:"default",tl2:"default",...n},options_sel:{keepLF:["none","all","webpage","pdf"],slInitial:["collapse","hide","full"],tl:["default",...e],tl2:["default",...e],...a}}}function i(e,t){const n=[{value:"auto",label:"%t(content:machineTrans.auto)"}];for(const e of t)n.push({value:e,label:`${e} %t(langcode:${e})`});const a=[{key:"sl",value:e.result.sl,title:"%t(content:machineTrans.sl)",options:n},{key:"tl",value:e.result.tl,title:"%t(content:machineTrans.tl)",options:n},{key:"copySrc",value:"copySrc",label:"%t(content:machineTrans.copySrc)"},{key:"copyTrans",value:"copyTrans",label:"%t(content:machineTrans.copyTrans)"}];return"hide"===e.result.slInitial&&a.push({key:"showSl",value:"",label:"%t(content:machineTrans.showSl)"}),{...e,catalog:a}}},173:function(e,t,n){"use strict";n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return z}));var a=n(118),o=n(104),s=n(52),i=n(155),r=n(38),c=n(10),l=n(83),u=n(128),d=n(500),h=n(501),g=n(180),p=n(176),f=n(108),m=n(435),y=n(502),b=n(116),w=n(130),M=n(30),j=n(182),O=n(2),N=n(42),I=n(24),C=n(41);function D(e){return e?e.touchMode?function(e){const t=Object(o.a)(Object(s.a)(window,"mousedown",{capture:!0}).pipe(Object(r.a)(e=>0===e.button)),Object(s.a)(window,"touchstart",{capture:!0}).pipe(Object(c.a)(e=>e.changedTouches[0]))),n=Object(o.a)(Object(s.a)(window,"mouseup",{capture:!0}).pipe(Object(r.a)(e=>0===e.button)),Object(s.a)(window,"touchend",{capture:!0}).pipe(Object(c.a)(e=>e.changedTouches[0]))),a=A(n,e.doubleClickDelay),g=Object(o.a)(Object(l.a)(!0)(t),Object(l.a)(!1)(n),Object(l.a)(!1)(Object(s.a)(window,"mouseout",{capture:!0})),Object(l.a)(!1)(Object(s.a)(window,"blur",{capture:!0})));return Object(s.a)(document,"selectionchange").pipe(Object(u.a)(g),Object(d.a)(([,e])=>e?n:Object(i.a)(400)),Object(c.a)(([,e])=>[window.getSelection(),e]),Object(r.a)(e=>!!e[0]&&!Object(O.e)(e[0].anchorNode)),Object(u.a)(n,t,a),Object(c.a)(([[t,n],a,o,s])=>{const i=Object(O.d)(t.anchorNode||o.target);if(e.noTypeField&&Object(C.d)(n?o.target:t.anchorNode))return{self:i};const r=Object(N.d)(t);if(!Object(I.a)(e.language,r))return{self:i};if(n)return{word:{text:r,context:Object(N.b)(t)},self:i,dbClick:s>=2,mouseX:a.clientX,mouseY:a.clientY,altKey:!!a.altKey,shiftKey:!!a.shiftKey,ctrlKey:!!a.ctrlKey,metaKey:!!a.metaKey};const c=t.getRangeAt(0).getBoundingClientRect();return 0===c.top&&0===c.left&&0===c.width&&0===c.height?{self:i}:{word:{text:r,context:Object(N.b)(t)},self:i,dbClick:s>=2,mouseX:c.right,mouseY:c.top}}),Object(h.a)(t=>{if(O.c&&t.self&&t.word&&t.word.text){const{direct:n,double:a,holding:o}=e.panelMode;if(n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey)return Object(i.a)(500)}return Object(i.a)(0)}))}(e):function(e){const t=Object(s.a)(window,"mousedown",{capture:!0}).pipe(Object(r.a)(e=>0===e.button)),n=Object(s.a)(window,"mouseup",{capture:!0}).pipe(Object(r.a)(e=>0===e.button)),a=A(n,e.doubleClickDelay);return n.pipe(Object(r.a)(e=>!Object(O.e)(e.target)),Object(g.a)(10),Object(u.a)(t,a),Object(r.a)(([e,t])=>!Object(O.d)(e.target)&&!Object(O.d)(t.target)),Object(c.a)(([t,n,a])=>{if(e.noTypeField&&Object(C.d)(n.target))return{self:!1};const o=window.getSelection(),s=Object(N.d)(o);return Object(I.a)(e.language,s)?{word:{text:s,context:Object(N.b)(o)},self:!1,dbClick:a>=2,mouseX:t.clientX,mouseY:t.clientY,altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey}:{self:!1}}),Object(p.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context))}(e):a.a}function z(e,t,n,a){const[o,s]=Object(b.a)(e=>e.pipe(Object(r.a)(e=>0===e.button))),i=Object(w.a)(M.b,[e,t]),l=Object(w.a)(e=>e.pipe(Object(f.a)(([e])=>A(s,e))),[n]),d=Object(w.a)(()=>s.pipe(Object(u.a)(i),Object(r.a)(([e,[t]])=>{if(t)return!1;for(let t=e.target;t;t=t.parentElement)if("A"===t.tagName||"BUTTON"===t.tagName)return!1;return!0}),Object(c.a)(([e,[,t]])=>({mouseup:e.nativeEvent,language:t})),Object(g.a)(10),Object(u.a)(l),Object(c.a)(([{mouseup:e,language:t},n])=>{const a=window.getSelection(),o=Object(N.d)(a);return Object(I.a)(t,o)?{word:{text:o,context:Object(N.b)(a)},dbClick:n>=2,mouseX:e.clientX,mouseY:e.clientY,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,self:!0,instant:!1,force:!1}:{word:null,self:!0,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}}),Object(p.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context)));return Object(j.a)(d,async e=>{e.word&&(e.word=await Object(C.e)(e.word)),a(e)}),o}function A(e,t){return e.pipe(Object(f.a)(()=>Object(i.a)(t).pipe(Object(l.a)(!1),Object(m.a)(!0))),Object(y.a)((e,t)=>t?e+1:0,0))}},178:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(74),o=n(73),s=n.n(o),i=n(90),r=n.n(i),c=n(100),l=n.n(c),u=n(57),d=n.n(u),h=n(21),g=n.n(h),p=n(27),f=n.n(p);function m(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.b)(e.id);return Object.keys(n).forEach(t=>{switch(t){case"dicts":(function(t){const a=g()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)f()(n,[t,"selected"],[]);else{const e=g()(n,[t,"all"]),o=a.map(e=>"olad"===e?"lexico":e).filter(t=>e[t]);o.length>0&&f()(n,[t,"selected"],o)}})("dicts"),s()(n.dicts.all,(t,a)=>{const c=g()(e,`dicts.all.${a}.defaultUnfold`);d()(c)?f()(n,`dicts.all.${a}.defaultUnfold`,{chinese:c,english:c,japanese:c,korean:c,french:c,spanish:c,deutsch:c,others:c}):(i(`dicts.all.${a}.defaultUnfold.chinese`),i(`dicts.all.${a}.defaultUnfold.english`),i(`dicts.all.${a}.defaultUnfold.japanese`),i(`dicts.all.${a}.defaultUnfold.korean`),i(`dicts.all.${a}.defaultUnfold.french`),i(`dicts.all.${a}.defaultUnfold.spanish`),i(`dicts.all.${a}.defaultUnfold.deutsch`),i(`dicts.all.${a}.defaultUnfold.others`));const u=g()(e,`dicts.all.${a}.selectionLang.chs`);d()(u)?f()(n,`dicts.all.${a}.selectionLang.chinese`,u):i(`dicts.all.${a}.selectionLang.chinese`);const h=g()(e,`dicts.all.${a}.selectionLang.eng`);if(d()(h)?f()(n,`dicts.all.${a}.selectionLang.english`,h):i(`dicts.all.${a}.selectionLang.english`),i(`dicts.all.${a}.selectionLang.japanese`),i(`dicts.all.${a}.selectionLang.korean`),i(`dicts.all.${a}.selectionLang.french`),i(`dicts.all.${a}.selectionLang.spanish`),i(`dicts.all.${a}.selectionLang.deutsch`),i(`dicts.all.${a}.selectionLang.others`),o(`dicts.all.${a}.preferredHeight`),o(`dicts.all.${a}.selectionWC.min`),o(`dicts.all.${a}.selectionWC.max`),t.options){if(s()(t.options,(t,s)=>{if(r()(t))o(`dicts.all.${a}.options.${s}`);else if(d()(t))i(`dicts.all.${a}.options.${s}`);else if(l()(t)){const o=g()(e,`dicts.all.${a}.options.${s}`),i=g()(n,`dicts.all.${a}.options_sel.${s}`);f()(n,`dicts.all.${a}.options.${s}`,i.includes(o)?o:t)}}),!r()(e.version)){const e=["baidu","caiyun","google","sogou","tencent","youdaotrans"];e.every(e=>"hide"===g()(n,`dicts.all.${e}.options.slInitial`))&&e.forEach(e=>{f()(n,`dicts.all.${e}.options.slInitial`,"collapse")})}const c=g()(e,`dicts.all.${a}.options.pdfNewline`);d()(c)&&f()(n,`dicts.all.${a}.options.keepLF`,c?"all":"webpage")}});break;default:switch(typeof n[t]){case"string":c(t,l.a);break;case"boolean":i(t);break;case"number":o(t);break;default:console.error(new Error(`merge profile: missing handler for '${t}'`))}}}),"kor"===n.dicts.all.hjdict.options.chsas&&(n.dicts.all.hjdict.options.chsas="kr"),n;function o(e){return c(e,r.a)}function i(e){return c(e,d.a)}function c(t,a){const o=g()(e,t);a(o)&&f()(n,t,o)}}},2:function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"h",(function(){return o})),n.d(t,"j",(function(){return s})),n.d(t,"i",(function(){return i})),n.d(t,"k",(function(){return r})),n.d(t,"l",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"e",(function(){return g})),n.d(t,"d",(function(){return p}));const a=()=>!!window.__SALADICT_INTERNAL_PAGE__,o=()=>!!window.__SALADICT_OPTIONS_PAGE__,s=()=>!!window.__SALADICT_POPUP_PAGE__,i=()=>!!window.__SALADICT_PDF_PAGE__,r=()=>!!window.__SALADICT_QUICK_SEARCH_PAGE__,c=()=>s()||r(),l="saladict-external",u="saladict-panel",d=navigator.userAgent.includes("Firefox"),h=navigator.userAgent.includes("OPR");function g(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(l))return!0;return!1}function p(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(u))return!0;return!1}},24:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return r})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"b",(function(){return y})),n.d(t,"j",(function(){return b})),n.d(t,"a",(function(){return w}));var a=n(19);const o=["chinese","english","japanese","korean","french","spanish","deutsch"],s={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},i=e=>s.chinese.test(e),r=e=>s.english.test(e),c=e=>s.japanese.test(e),l=e=>s.korean.test(e),u=e=>s.french.test(e),d=e=>s.deutsch.test(e),h=e=>s.spanish.test(e),g={chinese:Object(a.a)(i),english:Object(a.a)(r),japanese:Object(a.a)(c),korean:Object(a.a)(l),french:Object(a.a)(u),spanish:Object(a.a)(h),deutsch:Object(a.a)(d)},p=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,f=new RegExp(`^(\\d|\\s|${p.source})+$`),m=new RegExp(`${s.chinese.source}|${s.japanese.source}|${s.korean.source}`),y=Object(a.a)(e=>(e.replace(new RegExp(p,"g")," ").replace(new RegExp(m,"g")," x ").match(/\S+/g)||"").length),b=[...o,"others","matchAll"];function w(e,t){if(!t)return!1;if(e.matchAll){if(f.test(t))return!1;if(e.others){const n=[/-|\.|\d|\s/],a=[];for(let t=o.length-1;t>=0;t--){const i=o[t];e[i]?n.push(s[i]):a.push(s[i])}for(let e=0;e<t.length;e++)if(n.every(n=>!n.test(t[e]))&&a.some(n=>n.test(t[e])))return!1;return!0}{const n=o.filter(t=>e[t]).map(e=>s[e]);n.push(/-|\.|\d|\s/);for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!1;return!0}}{if(o.some(n=>e[n]&&g[n](t)))return!0;if(!e.others||f.test(t))return!1;const n=o.filter(t=>!e[t]).map(e=>s[e]);n.push(new RegExp(p.source+"|\\d|\\s"));for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!0;return!1}}},247:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),o=n.n(a);class s extends o.a.PureComponent{constructor(...e){super(...e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.error?o.a.createElement(this.props.error):null:this.props.children}}},259:function(e,t,n){var a={"./en/background.ts":[442,110],"./en/common.ts":[543,111],"./en/content.ts":[544,112],"./en/langcode.ts":[545,91],"./en/menus.ts":[546,113],"./en/options.ts":[547,114],"./en/popup.ts":[548,115],"./en/wordpage.ts":[549,116],"./zh-CN/background.ts":[443,117],"./zh-CN/common.ts":[550,118],"./zh-CN/content.ts":[551,119],"./zh-CN/langcode.ts":[552,92],"./zh-CN/menus.ts":[553,120],"./zh-CN/options.ts":[554,121],"./zh-CN/popup.ts":[555,122],"./zh-CN/wordpage.ts":[556,123],"./zh-TW/background.ts":[444,124],"./zh-TW/common.ts":[557,125],"./zh-TW/content.ts":[558,126],"./zh-TW/langcode.ts":[559,93],"./zh-TW/menus.ts":[560,127],"./zh-TW/options.ts":[561,128],"./zh-TW/popup.ts":[562,129],"./zh-TW/wordpage.ts":[563,130]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(a)},o.id=259,e.exports=o},260:function(e,t,n){var a={"./baidu/_locales.ts":261,"./bing/_locales.json":262,"./caiyun/_locales.ts":263,"./cambridge/_locales.json":264,"./cnki/_locales.json":265,"./cobuild/_locales.json":266,"./etymonline/_locales.json":267,"./eudic/_locales.json":268,"./google/_locales.ts":269,"./googledict/_locales.json":270,"./guoyu/_locales.json":271,"./hjdict/_locales.json":272,"./jikipedia/_locales.json":273,"./jukuu/_locales.json":274,"./lexico/_locales.json":275,"./liangan/_locales.json":276,"./longman/_locales.json":277,"./macmillan/_locales.json":278,"./mojidict/_locales.json":279,"./naver/_locales.json":280,"./renren/_locales.json":281,"./shanbay/_locales.json":282,"./sogou/_locales.ts":283,"./tencent/_locales.ts":284,"./urban/_locales.json":285,"./vocabulary/_locales.json":286,"./weblio/_locales.json":287,"./weblioejje/_locales.json":288,"./websterlearner/_locales.json":289,"./wikipedia/_locales.json":290,"./youdao/_locales.json":291,"./youdaotrans/_locales.ts":292,"./zdic/_locales.json":293};function o(e){var t=s(e);return n(t)}function s(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=s,e.exports=o,o.id=260},261:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Baidu Translate","zh-CN":"百度翻译","zh-TW":"百度翻譯"})},262:function(e){e.exports=JSON.parse('{"name":{"en":"Bing Dict","zh-CN":"必应词典","zh-TW":"必應詞典"},"options":{"tense":{"en":"Show sense","zh-CN":"显示单词时态","zh-TW":"展示單詞時態"},"phsym":{"en":"Show pronunciation","zh-CN":"显示单词发音","zh-TW":"展示單詞發音"},"cdef":{"en":"Show definitions","zh-CN":"显示单词解释","zh-TW":"展示單詞解釋"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"sentence":{"en":"Show sentences","zh-CN":"显示例句","zh-TW":"展示例句"},"sentence_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},263:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"LingoCloud","zh-CN":"彩云小译","zh-TW":"彩雲小譯"})},264:function(e){e.exports=JSON.parse('{"name":{"en":"Cambridge Dictionary","zh-CN":"剑桥词典","zh-TW":"劍橋詞典"},"options":{"lang":{"en":"Language","zh-CN":"语言","zh-TW":"語言"},"lang-default":{"en":"Default","zh-CN":"随扩展","zh-TW":"未設定"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-en-chs":{"en":"English–Chinese (Simplified)","zh-CN":"英简","zh-TW":"英简"},"lang-en-chz":{"en":"English–Chinese (Traditional)","zh-CN":"英繁","zh-TW":"英繁"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},265:function(e){e.exports=JSON.parse('{"name":{"en":"CNKI Dict","zh-CN":"CNKI翻译助手","zh-TW":"CNKI翻譯助手"},"options":{"dict":{"en":"Show dict result","zh-CN":"显示词典结果","zh-TW":"展示字典結果"},"senbi":{"en":"Show bilingual sentences","zh-CN":"显示双语例句","zh-TW":"展示雙語例句"},"seneng":{"en":"Show English sentences","zh-CN":"显示英文例句","zh-TW":"展示英文例句"},"digests":{"en":"Show relevant digests","zh-CN":"显示相关文摘","zh-TW":"展示相關文摘"}}}')},266:function(e){e.exports=JSON.parse('{"name":{"en":"COBUILD","zh-CN":"柯林斯高阶","zh-TW":"柯林斯高階"},"options":{"cibaFirst":{"en":"Prefer bilingual dictionary","zh-CN":"优先查双语词典","zh-TW":"優先查雙語詞典"}},"helps":{"cibaFirst":{"en":"Bilingual server is less stable","zh-CN":"双语词典服务器不稳定,解释没全英丰富","zh-TW":"雙語詞典伺服器不穩定,解釋沒全英豐富"}}}')},267:function(e){e.exports=JSON.parse('{"name":{"en":"Etymonline","zh-CN":"Etymonline","zh-TW":"Etymonline"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"},"chart":{"en":"Show Chart","zh-CN":"显示图表","zh-TW":"顯示圖表"}}}')},268:function(e){e.exports=JSON.parse('{"name":{"en":"Eudic","zh-CN":"双语例句","zh-TW":"雙語例句"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},269:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Google Translation","zh-CN":"谷歌翻译","zh-TW":"谷歌翻譯"},{cnfirst:{en:"Use google.cn first","zh-CN":"优先使用 google.cn","zh-TW":"優先使用 google.cn"},concurrent:{en:"Search concurrently","zh-CN":"并行查询","zh-TW":"並行查詢"}},{concurrent:{en:"Search .com and .cn concurrently","zh-CN":"同时搜索 .com 和 .cn 取最先返回的结果","zh-TW":"同時搜尋 .com 和 .cn 取最先返回的結果"}})},270:function(e){e.exports=JSON.parse('{"name":{"en":"Google Dictionary","zh-CN":"谷歌词典","zh-TW":"谷歌詞典"},"options":{"enresult":{"en":"English Result","zh-CN":"强制显示英文结果","zh-TW":"強制顯示英文結果"}}}')},271:function(e){e.exports=JSON.parse('{"name":{"en":"國語辭典","zh-CN":"国语辞典","zh-TW":"國語辭典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},272:function(e){e.exports=JSON.parse('{"name":{"en":"Hu Jiang","zh-CN":"沪江小D","zh-TW":"沪江小D"},"options":{"engas":{"en":"Treat English as","zh-CN":"对全英文使用词典","zh-TW":"對全英文使用字典"},"chsas":{"en":"Treat Chinese as","zh-CN":"对全中文使用词典","zh-TW":"對全中文使用字典"},"uas":{"en":"Treat \'ü\' as","zh-CN":"将 \'ü\' 字符当作","zh-TW":"把 \'ü\' 字元當成"},"aas":{"en":"Treat \'ä\' as","zh-CN":"将 \'ä\' 字符当作","zh-TW":"把 \'ä\' 字元當成"},"eas":{"en":"Treat \'é\' as","zh-CN":"将 \'é\' 字符当作","zh-TW":"把 \'é\' 字元當成"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"chsas-jp/cj":{"en":"中 → 日","zh-CN":"中 → 日","zh-TW":"中 → 日"},"chsas-jp/jc":{"en":"日 → 中","zh-CN":"日 → 中","zh-TW":"日 → 中"},"chsas-kr":{"en":"Korean","zh-CN":"韩文","zh-TW":"韓文"},"chsas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"chsas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"chsas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"chsas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"engas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"engas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"engas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"engas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"uas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"uas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"uas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"aas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"aas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"eas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"eas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"}}}')},273:function(e){e.exports=JSON.parse('{"name":{"en":"Jikipedia","zh-CN":"小鸡词典","zh-TW":"小雞詞典"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},274:function(e){e.exports=JSON.parse('{"name":{"en":"Jukuu","zh-CN":"句酷","zh-TW":"句酷"},"options":{"lang":{"en":"Language","zh-CN":"语言","zh-TW":"語言"},"lang-zheng":{"en":"Chinese-English","zh-CN":"中英","zh-TW":"中英"},"lang-engjp":{"en":"English-Japanese","zh-CN":"英日","zh-TW":"英日"},"lang-zhjp":{"en":"Chinese-Japanese","zh-CN":"中日","zh-TW":"中日"}}}')},275:function(e){e.exports=JSON.parse('{"name":{"en":"Lexico","zh-CN":"Lexico","zh-TW":"Lexico"},"options":{"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},276:function(e){e.exports=JSON.parse('{"name":{"en":"兩岸詞典","zh-CN":"两岸词典","zh-TW":"兩岸詞典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},277:function(e){e.exports=JSON.parse('{"name":{"en":"Longman Dictionary","zh-CN":"朗文词典","zh-TW":"朗文詞典"},"options":{"wordfams":{"en":"Show word family","zh-CN":"显示单词家族","zh-TW":"展示單字家族"},"collocations":{"en":"Show collocations","zh-CN":"显示惯用搭配","zh-TW":"展示慣用搭配"},"grammar":{"en":"Show grammar","zh-CN":"显示语法解释","zh-TW":"展示文法講解"},"thesaurus":{"en":"Show thesaurus","zh-CN":"显示同义词","zh-TW":"展示同義詞"},"examples":{"en":"Show examples","zh-CN":"显示例句","zh-TW":"展示例句"},"bussinessFirst":{"en":"Show bussiness result first","zh-CN":"优先显示商务词典","zh-TW":"優先展示商務字典"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},278:function(e){e.exports=JSON.parse('{"name":{"en":"Macmillan","zh-CN":"麦克米伦","zh-TW":"麥克米倫"},"options":{"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"locale":{"en":"Locale","zh-CN":"方言","zh-TW":"方言"},"locale-uk":{"en":"UK","zh-CN":"英式","zh-TW":"英式"},"locale-us":{"en":"US","zh-CN":"美式","zh-TW":"美式"}}}')},279:function(e){e.exports=JSON.parse('{"name":{"en":"MOJi辞書","zh-CN":"MOJi辞書","zh-TW":"MOJi辞書"}}')},280:function(e){e.exports=JSON.parse('{"name":{"en":"Naver韩国语词典","zh-CN":"Naver韩国语词典","zh-TW":"Naver韩国语词典"},"options":{"hanAsJa":{"en":"Search Chinese with Japanese Dictionary","zh-CN":"用日语词典查中文","zh-TW":"用日語詞典查漢字"},"korAsJa":{"en":"Search Korean with Japanese Dictionary","zh-CN":"用日语词典查韩语","zh-TW":"用日语词典查韓語"}}}')},281:function(e){e.exports=JSON.parse('{"name":{"en":"91dict","zh-CN":"人人词典","zh-TW":"人人詞典"}}')},282:function(e){e.exports=JSON.parse('{"name":{"en":"Shanbay Dictionary","zh-CN":"扇贝词典","zh-TW":"扇貝詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"}}}')},283:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Sogou Translation","zh-CN":"搜狗翻译","zh-TW":"搜狗翻譯"})},284:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Tencent Translate","zh-CN":"腾讯翻译君","zh-TW":"騰訊翻譯君"})},285:function(e){e.exports=JSON.parse('{"name":{"en":"Urban","zh-CN":"Urban","zh-TW":"Urban"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},286:function(e){e.exports=JSON.parse('{"name":{"en":"Vocabulary.com","zh-CN":"Vocabulary.com","zh-TW":"Vocabulary.com"}}')},287:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio","zh-CN":"Weblio 辞書","zh-TW":"Weblio 辞書"}}')},288:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio ejje","zh-CN":"Weblio 英和和英","zh-TW":"Weblio 英和和英"}}')},289:function(e){e.exports=JSON.parse('{"name":{"en":"Merriam-Webster\'s Learner\'s Dictionary","zh-CN":"韦氏学习词典","zh-TW":"韋氏學習字典"},"options":{"defs":{"en":"Show definitions","zh-CN":"显示释义","zh-TW":"顯示解釋"},"phrase":{"en":"Show phrases","zh-CN":"显示词组","zh-TW":"顯示片語"},"derived":{"en":"Show derived words","zh-CN":"显示派生词","zh-TW":"顯示衍生字"},"arts":{"en":"Show pictures","zh-CN":"显示图片释义","zh-TW":"顯示圖片解釋"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},29:function(e,t,n){"use strict";n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b}));var a=n(85),o=n.n(a),s=n(78),i=n(160),r=n(1),c=n(95),l=n(64),u=n(76),d=n(10);function h(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}async function g(){let e=await f();return e=e&&e.version?Object(i.b)(e):Object(s.a)(),await m(e),e}async function p(){const e=Object(s.a)();return await m(e),e}async function f(){const{baseconfig:e}=await r.c.sync.get("baseconfig");return h(e||Object(s.a)())}function m(e){return r.c.sync.set({baseconfig:(t=e,{v:1,d:o.a.deflate(JSON.stringify(t),{to:"string"})})});var t}async function y(e){r.c.sync.addListener(t=>{if(t.baseconfig){const{newValue:n,oldValue:a}=t.baseconfig;n&&e({newConfig:h(n),oldConfig:h(a)})}})}function b(){return Object(c.a)(Object(l.a)(f()),Object(u.a)(y).pipe(Object(d.a)(e=>(Array.isArray(e)?e[0]:e).newConfig)))}},290:function(e){e.exports=JSON.parse('{"name":{"en":"Wikipedia","zh-CN":"维基百科","zh-TW":"維基百科"},"options":{"lang":{"en":"Language","zh-CN":"百科语言","zh-TW":"百科語言"},"lang-auto":{"en":"Auto (respect Wiki settings)","zh-CN":"自动(遵循维基账户设定)","zh-TW":"自动(遵循維基賬戶設定)"},"lang-zh":{"en":"中文(简繁由维基账户设定)","zh-CN":"中文(简繁由维基账户设定)","zh-TW":"中文(簡繁由維基賬戶設定)"},"lang-zh-cn":{"en":"强制简体中文子页面","zh-CN":"强制简体中文子页面","zh-TW":"强制简体中文子页面"},"lang-zh-tw":{"en":"強制台灣正體子頁面","zh-CN":"強制台灣正體子頁面","zh-TW":"強制台灣正體子頁面"},"lang-zh-hk":{"en":"強制香港繁體子頁面","zh-CN":"強制香港繁體子頁面","zh-TW":"強制香港繁體子頁面"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-ja":{"en":"日本語","zh-CN":"日本語","zh-TW":"日本語"},"lang-fr":{"en":"Français","zh-CN":"Français","zh-TW":"Français"},"lang-de":{"en":"Deutschsprachige","zh-CN":"Deutschsprachige","zh-TW":"Deutschsprachige"}}}')},291:function(e){e.exports=JSON.parse('{"name":{"en":"Youdao Dictionary","zh-CN":"有道词典","zh-TW":"有道詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"collins":{"en":"Show Collins result","zh-CN":"显示柯林斯双解","zh-TW":"顯示柯林斯雙解"},"discrimination":{"en":"Show discrimination","zh-CN":"显示词语辨析","zh-TW":"顯示詞語辨析"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"},"translation":{"en":"Show translation","zh-CN":"显示有道翻译","zh-TW":"顯示有道翻譯"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},292:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Youdao Translate","zh-CN":"有道翻译","zh-TW":"有道翻譯"})},293:function(e){e.exports=JSON.parse('{"name":{"en":"汉典","zh-CN":"汉典","zh-TW":"漢典"},"options":{"audio":{"en":"Enable audio","zh-CN":"开启发音","zh-TW":"啟用發音"}},"helps":{"audio":{"en":"Referer modification is required, which may slightly impact performance.","zh-CN":"突破外链限制需要改写 Referer,可能会轻微影响性能。","zh-TW":"突破外鏈限制需要改寫 Referer,可能會輕微影響效能。"}}}')},294:function(e,t,n){var a={"./ankiconnect/_locales/en.ts":295,"./ankiconnect/_locales/zh-CN.ts":296,"./ankiconnect/_locales/zh-TW.ts":297,"./shanbay/_locales/en.ts":298,"./shanbay/_locales/zh-CN.ts":299,"./shanbay/_locales/zh-TW.ts":300,"./webdav/_locales/en.ts":301,"./webdav/_locales/zh-CN.ts":302,"./webdav/_locales/zh-TW.ts":303};function o(e){var t=s(e);return n(t)}function s(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=s,e.exports=o,o.id=294},295:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"Cannot connect to Anki Connect. Please make sure Anki is running.",deck:"Deck not found in Anki.",notetype:"Note type not found in Anki.",add:"Failed to add word to Anki."}}},296:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"无法连接 Anki Connect,请确认 Anki 已在运行。",deck:"Anki 中没有找到相应牌组。",notetype:"Anki 中没有找到相应笔记类型。",add:"添加单词到 Anki 失败。"}}},297:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"無法連線 Anki Connect,請確認 Anki 已在執行。",deck:"Anki 中沒有找到相應牌組。",notetype:"Anki 中沒有找到相應筆記型別。",add:"新增單詞到 Anki 失敗。"}}},298:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Shanbay Word Syncing",open:"Open",error:{login:"Shanbay login failed. Click to open shanbay.com.",network:"Unable to access shanbay.com. Please check your network connection.",word:"Unable to add to Shanbay notebook. This word is not in Shanbay's vocabulary database."}}},299:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇贝单词同步",open:"打开",error:{login:"扇贝登录已失效,请点击打开官网重新登录。",network:"无法访问扇贝生词本,请检查网络。",word:"无法添加到扇贝生词本,扇贝单词库没有收录此单词。"}}},300:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇貝單字同步",open:"開啟",error:{login:"扇貝登入已失效,請點選開啟官網重新登入。",network:"無法訪問扇貝生字本,請檢查網路。",word:"無法新增到扇貝生字本,扇貝單字庫沒有收錄此單字。"}}},301:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV Word Syncing",error:{dir:'Incorrect "Saladict" directory on server.',download:"Download failed. Unable to connect WebDAV Server. If browser proxy is enabled please adjust rules to bypass WebDAV server.",internal:"Unable to save settings.",missing:'Missing "Saladict" directory on server.',mkcol:'Cannot create "Saladict" directory on server. Please create the directory manualy on server.',network:"Network error. Cannot connect to server.",parse:"Incorrect response XML from server.",unauthorized:"Incorrect account or password."}}},302:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 单词同步",error:{dir:"服务器上“Saladict”目录格式不正确,请检查。",download:"下载失败。无法访问 WebDAV 服务器。如启用了浏览器代理请调整规则,不要代理 WebDAV 服务器。",internal:"无法保存。",missing:"服务器上缺少“Saladict”目录。",mkcol:"无法在服务器创建“Saladict”目录。请手动在服务器上创建。",network:"连接服务器失败。",parse:"服务器返回 XML 格式不正确。",unauthorized:"账户或密码不正确。"}}},303:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 單字同步",error:{dir:"伺服器上“Saladict”目錄格式不正確,請檢查。",download:"下載失敗。無法訪問 WebDAV 伺服器。如啟用了瀏覽器代理請調整規則,不要代理 WebDAV 伺服器。",internal:"無法儲存。",missing:"伺服器上缺少“Saladict”目錄。",mkcol:"無法在伺服器建立“Saladict”目錄。請手動在伺服器上建立。",network:"連線伺服器失敗。",parse:"伺服器返回 XML 格式不正確。",unauthorized:"帳戶或密碼不正確。"}}},364:function(e,t,n){"use strict";n.d(t,"a",(function(){return Z}));var a=n(22),o=n(40),s=n(2),i=n(11),r=n(1),c=n(0),l=n.n(c),u=n(116),d=n(182),h=n(130),g=n(704),p=n(371),f=n(10),m=n(435),y=n(9);const b=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn-dir",title:t("tip.historyBack"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M 7.191 15.999 L 21.643 1.548 C 21.998 1.192 21.998 0.622 21.643 0.267 C 21.288 -0.089 20.718 -0.089 20.362 0.267 L 5.267 15.362 C 4.911 15.718 4.911 16.288 5.267 16.643 L 20.362 31.732 C 20.537 31.906 20.771 32 20.999 32 C 21.227 32 21.462 31.913 21.636 31.732 C 21.992 31.377 21.992 30.807 21.636 30.451 L 7.191 15.999 Z"})))},w=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn-dir",title:e.t("tip.historyNext"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},l.a.createElement("path",{d:"M 25.643 15.362 L 10.547 0.267 C 10.192 -0.089 9.622 -0.089 9.267 0.267 C 8.911 0.622 8.911 1.192 9.267 1.547 L 23.718 15.999 L 9.267 30.451 C 8.911 30.806 8.911 31.376 9.267 31.732 C 9.441 31.906 9.676 32 9.904 32 C 10.132 32 10.366 31.913 10.541 31.732 L 25.636 16.636 C 25.992 16.288 25.992 15.711 25.643 15.362 Z"})))},M=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.searchText"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52.966 52.966"},l.a.createElement("path",{d:"M51.704 51.273L36.844 35.82c3.79-3.8 6.14-9.04 6.14-14.82 0-11.58-9.42-21-21-21s-21 9.42-21 21 9.42 21 21 21c5.082 0 9.747-1.817 13.383-4.832l14.895 15.49c.196.206.458.308.72.308.25 0 .5-.093.694-.28.398-.382.41-1.015.028-1.413zM21.984 40c-10.478 0-19-8.523-19-19s8.522-19 19-19 19 8.523 19 19-8.525 19-19 19z"})))},j=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openOptions"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 612 612"},l.a.createElement("path",{d:"M0 97.92v24.48h612V97.92H0zm0 220.32h612v-24.48H0v24.48zm0 195.84h612V489.6H0v24.48z"})))},O=e=>{const{t:t,isFav:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.addToNotebook"),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon-fav"+(n?" isActive":""),width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},l.a.createElement("path",{d:"M 23.363 2 C 20.105 2 17.3 4.65 16.001 7.42 C 14.701 4.65 11.896 2 8.637 2 C 4.145 2 0.5 5.646 0.5 10.138 C 0.5 19.278 9.719 21.673 16.001 30.708 C 21.939 21.729 31.5 18.986 31.5 10.138 C 31.5 5.646 27.855 2 23.363 2 Z"})))},N=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openHistory"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon-history",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},l.a.createElement("path",{d:"M34.688 3.315c-15.887 0-28.812 12.924-28.81 28.73-.012.25-.157 4.434 1.034 8.94l-3.88-2.262c-.965-.56-2.193-.235-2.76.727-.557.96-.233 2.195.728 2.755l9.095 5.302c.02.01.038.013.056.022.1.05.2.09.31.12.07.02.14.05.21.07.09.02.176.02.265.03.06.003.124.022.186.022.036 0 .07-.01.105-.015.034 0 .063.007.097.004.05-.003.097-.024.146-.032.097-.017.19-.038.28-.068.08-.028.157-.06.23-.095.086-.04.165-.085.24-.137.074-.046.14-.096.206-.15.07-.06.135-.125.198-.195.06-.067.11-.135.16-.207.026-.04.062-.07.086-.11.017-.03.017-.067.032-.1.03-.053.07-.1.096-.16l3.62-8.96c.417-1.03-.08-2.205-1.112-2.622-1.033-.413-2.207.083-2.624 1.115l-1.86 4.6c-1.24-4.145-1.1-8.406-1.093-8.523C9.92 18.455 21.04 7.34 34.7 7.34c13.663 0 24.78 11.116 24.78 24.78S48.357 56.9 34.694 56.9c-1.114 0-2.016.902-2.016 2.015s.9 2.02 2.012 2.02c15.89 0 28.81-12.925 28.81-28.81 0-15.89-12.923-28.814-28.81-28.814z"}),l.a.createElement("path",{d:"M33.916 36.002c.203.084.417.114.634.13.045.002.09.026.134.026.236 0 .465-.054.684-.134.06-.022.118-.054.177-.083.167-.08.32-.18.463-.3.03-.023.072-.033.103-.07L48.7 22.98c.788-.79.788-2.064 0-2.852-.787-.788-2.062-.788-2.85 0l-11.633 11.63-10.44-4.37c-1.032-.432-2.208.052-2.64 1.08-.43 1.027.056 2.208 1.08 2.638L33.907 36c.002 0 .006 0 .01.002z"})))},I=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openNotebook"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 64 64"},l.a.createElement("path",{d:"M 57.389 0.966 L 6.612 0.966 C 5.699 0.966 4.957 1.525 4.957 2.217 L 4.957 61.783 C 4.955 62.282 5.342 62.734 5.949 62.933 C 6.16 63.001 6.385 63.036 6.612 63.034 C 7.023 63.032 7.417 62.917 7.723 62.709 L 32.003 46.006 L 56.282 62.709 C 57.227 63.354 58.742 62.983 59.008 62.041 C 59.033 61.956 59.044 61.871 59.044 61.783 L 59.044 2.217 C 59.044 1.525 58.306 0.966 57.389 0.966 Z M 33.111 43.392 C 32.478 42.954 31.508 42.954 30.875 43.392 L 8.266 58.955 L 8.266 3.469 L 55.735 3.469 L 55.735 58.955 L 33.111 43.392 Z"}),l.a.createElement("path",{d:"M 47.508 17.756 C 47.287 17.526 46.994 17.375 46.677 17.33 L 37.446 15.988 L 33.262 7.693 C 32.767 6.7 31.382 6.614 30.77 7.541 C 30.737 7.59 30.708 7.641 30.68 7.693 L 26.555 16.06 L 17.325 17.401 C 16.225 17.56 15.712 18.849 16.399 19.722 C 16.44 19.774 16.484 19.822 16.532 19.867 L 23.252 26.3 L 21.723 35.561 C 21.541 36.655 22.613 37.537 23.653 37.146 C 23.708 37.127 23.763 37.102 23.816 37.076 L 32.066 32.748 L 40.316 37.076 C 41.3 37.59 42.472 36.845 42.425 35.737 C 42.423 35.679 42.417 35.619 42.407 35.561 L 40.792 26.3 L 47.472 19.794 C 48.045 19.243 48.061 18.33 47.508 17.756 Z M 38.238 24.857 C 37.899 25.186 37.744 25.661 37.821 26.127 L 39.031 33.165 L 32.687 29.835 C 32.265 29.613 31.765 29.613 31.344 29.835 L 25.013 33.165 L 26.223 26.113 C 26.3 25.646 26.145 25.174 25.806 24.844 L 20.685 19.853 L 27.768 18.743 C 28.236 18.672 28.641 18.376 28.849 17.95 L 32.023 11.531 L 35.196 17.95 C 35.403 18.376 35.808 18.672 36.277 18.743 L 43.36 19.766 L 38.238 24.857 Z"})))},C=e=>{const{t:t,isPinned:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.pinPanel"),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 53.011 53.011"},l.a.createElement("path",{className:"menuBar-Btn_Icon-pin"+(n?" isActive":""),d:"M52.963 21.297c-.068-.33-.297-.603-.61-.727-8.573-3.416-16.172-.665-18.36.288L19.113 8.2C19.634 3.632 17.17.508 17.06.372c-.18-.22-.442-.356-.725-.372-.282-.006-.56.09-.76.292L.32 15.546c-.202.2-.308.48-.29.765.015.285.152.55.375.727 2.775 2.202 6.35 2.167 7.726 2.055l12.722 14.953c-.868 2.23-3.52 10.27-.307 18.337.124.313.397.54.727.61.067.013.135.02.202.02.263 0 .518-.104.707-.293l14.57-14.57 13.57 13.57c.196.194.452.292.708.292s.512-.098.707-.293c.39-.392.39-1.024 0-1.415l-13.57-13.57 14.527-14.528c.237-.238.34-.58.27-.91zm-17.65 15.458L21.89 50.18c-2.437-8.005.993-15.827 1.03-15.91.158-.352.1-.764-.15-1.058L9.31 17.39c-.19-.225-.473-.352-.764-.352-.05 0-.103.004-.154.013-.036.007-3.173.473-5.794-.954l13.5-13.5c.604 1.156 1.39 3.26.964 5.848-.058.346.07.697.338.924l15.785 13.43c.31.262.748.31 1.105.128.077-.04 7.378-3.695 15.87-1.017L35.313 36.754z"})))},D=e=>{const{t:t,isFocus:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip."+(n?"focusPanel":"unfocusPanel")),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 53 53"},n?l.a.createElement(l.a.Fragment,null,l.a.createElement("path",{d:"M 36.414 35 L 46 35 C 46.553 35 47 34.552 47 34 C 47 33.448 46.553 33 46 33 L 34 33 C 33.87 33 33.74 33.027 33.618 33.077 C 33.374 33.178 33.179 33.373 33.077 33.618 C 33.026 33.74 33 33.869 33 34 L 33 46 C 33 46.552 33.448 47 34 47 C 34.552 47 35 46.552 35 46 L 35 36.414 L 51.293 52.707 C 51.488 52.902 51.744 53 52 53 C 52.256 53 52.512 52.902 52.707 52.707 C 53.098 52.316 53.098 51.684 52.707 51.293 L 36.414 35 Z"}),l.a.createElement("path",{d:"M 16.584 17.999 L 6.999 17.999 C 6.447 17.999 5.999 18.447 5.999 18.999 C 5.999 19.551 6.447 19.999 6.999 19.999 L 18.999 19.999 C 19.129 19.999 19.259 19.972 19.381 19.922 C 19.625 19.821 19.82 19.626 19.922 19.381 C 19.973 19.259 19.999 19.129 19.999 18.999 L 19.999 6.999 C 19.999 6.447 19.551 5.999 18.999 5.999 C 18.447 5.999 17.999 6.447 17.999 6.999 L 17.999 16.585 L 1.707 0.293 C 1.316 -0.098 0.684 -0.098 0.293 0.293 C -0.098 0.684 -0.098 1.316 0.293 1.707 L 16.584 17.999 Z"}),l.a.createElement("path",{d:"M 19.382 33.077 C 19.26 33.027 19.13 33 19 33 L 7 33 C 6.448 33 6 33.448 6 34 C 6 34.552 6.448 35 7 35 L 16.586 35 L 0.293 51.293 C -0.098 51.684 -0.098 52.316 0.293 52.707 C 0.488 52.902 0.744 53 1 53 C 1.256 53 1.512 52.902 1.707 52.707 L 18 36.414 L 18 46 C 18 46.552 18.448 47 19 47 C 19.552 47 20 46.552 20 46 L 20 34 C 20 33.87 19.973 33.74 19.923 33.618 C 19.821 33.373 19.627 33.179 19.382 33.077 Z"}),l.a.createElement("path",{d:"M 33.618 19.923 C 33.74 19.973 33.87 20 34 20 L 46 20 C 46.553 20 47 19.552 47 19 C 47 18.448 46.553 18 46 18 L 36.414 18 L 52.707 1.707 C 53.098 1.316 53.098 0.684 52.707 0.293 C 52.316 -0.098 51.684 -0.098 51.293 0.293 L 35 16.586 L 35 7 C 35 6.448 34.552 6 34 6 C 33.448 6 33 6.448 33 7 L 33 19 C 33 19.13 33.027 19.26 33.077 19.382 C 33.179 19.627 33.373 19.821 33.618 19.923 Z"}),l.a.createElement("path",{d:"M 26.5 19 C 22.364 19 19 22.364 19 26.5 C 19 30.636 22.364 34 26.5 34 C 30.636 34 34 30.636 34 26.5 C 34 22.364 30.636 19 26.5 19 Z M 26.5 32 C 23.467 32 21 29.533 21 26.5 C 21 23.467 23.467 21 26.5 21 C 29.533 21 32 23.467 32 26.5 C 32 29.533 29.533 32 26.5 32 Z"})):l.a.createElement(l.a.Fragment,null,l.a.createElement("path",{d:"M 34 20 C 33.744 20 33.488 19.902 33.293 19.707 C 32.902 19.316 32.902 18.684 33.293 18.293 L 49.586 2 L 40 2 C 39.448 2 39 1.552 39 1 C 39 0.448 39.448 0 40 0 L 51.978 0 C 52.241 -0.006 52.506 0.092 52.707 0.293 C 52.908 0.494 53.006 0.759 53 1.022 L 53 13 C 53 13.552 52.552 14 52 14 C 51.448 14 51 13.552 51 13 L 51 3.414 L 34.707 19.707 C 34.512 19.902 34.256 20 34 20 Z"}),l.a.createElement("path",{d:"M 0.293 52.707 C 0.092 52.506 -0.006 52.241 0 51.978 L 0 40 C 0 39.448 0.448 39 1 39 C 1.552 39 2 39.448 2 40 L 2 49.586 L 18.293 33.293 C 18.684 32.902 19.316 32.902 19.707 33.293 C 20.098 33.684 20.098 34.316 19.707 34.707 L 3.414 51 L 13 51 C 13.552 51 14 51.448 14 52 C 14 52.552 13.552 53 13 53 L 1 53 C 0.879 53 0.764 52.979 0.658 52.94 C 0.602 52.919 0.548 52.894 0.498 52.865 C 0.424 52.822 0.355 52.769 0.293 52.707 Z"}),l.a.createElement("path",{d:"M 33.293 34.707 C 32.902 34.316 32.902 33.684 33.293 33.293 C 33.684 32.902 34.316 32.902 34.707 33.293 L 51 49.586 L 51 40 C 51 39.448 51.448 39 52 39 C 52.552 39 53 39.448 53 40 L 53 51.978 C 53.006 52.241 52.908 52.506 52.707 52.707 C 52.645 52.769 52.576 52.822 52.502 52.865 C 52.452 52.894 52.398 52.919 52.342 52.94 C 52.236 52.979 52.121 53 52 53 L 40 53 C 39.448 53 39 52.552 39 52 C 39 51.448 39.448 51 40 51 L 49.586 51 Z"}),l.a.createElement("path",{d:"M 18.999 19.999 C 18.743 19.999 18.487 19.901 18.292 19.706 L 2 3.414 L 2 13 C 2 13.552 1.552 14 1 14 C 0.448 14 0 13.552 0 13 L 0 1.022 C -0.006 0.759 0.092 0.494 0.293 0.293 C 0.494 0.092 0.759 -0.006 1.022 0 L 13 0 C 13.552 0 14 0.448 14 1 C 14 1.552 13.552 2 13 2 L 3.414 2 L 19.706 18.292 C 20.097 18.683 20.097 19.315 19.706 19.706 C 19.51 19.901 19.254 19.999 18.999 19.999 Z"}))))},z=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.closePanel"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 31.112 31.112"},l.a.createElement("path",{d:"M31.112 1.414L29.698 0 15.556 14.142 1.414 0 0 1.414l14.142 14.142L0 29.698l1.414 1.414L15.556 16.97l14.142 14.142 1.414-1.414L16.97 15.556"})))},A=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.sidebar"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},l.a.createElement("path",{d:"M 29.318 0 L 0.682 0 C 0.305 0 0 0.305 0 0.682 L 0 29.318 C 0 29.695 0.305 30 0.682 30 L 29.318 30 C 29.695 30 30 29.695 30 29.318 L 30 0.682 C 30 0.305 29.695 0 29.318 0 Z M 9.545 28.636 L 1.364 28.636 L 1.364 1.364 L 9.545 1.364 L 9.545 28.636 Z M 28.636 28.636 L 10.909 28.636 L 10.909 1.364 L 28.636 1.364 L 28.636 28.636 Z"})))};var E=n(89),T=n(30),x=n(240),L=n(104),S=n(38),v=n(180),k=n(83),_=n(176),P=n(87),W=n(64),U=n(108),B=n(135);const R=l.a.forwardRef((e,t)=>Object(x.a)(Object(h.a)(n=>n.pipe(Object(f.a)(([e])=>e),Object(S.a)(Boolean),Object(_.a)(),Object(p.a)(750),Object(U.a)(n=>Object(W.a)(r.a.send({type:"GET_SUGGESTS",payload:n}).catch(()=>[])).pipe(Object(f.a)(n=>l.a.createElement(B.a,{ref:t,list:n.map(e=>({key:e.entry,value:e.entry,label:l.a.createElement(l.a.Fragment,null,l.a.createElement("span",{className:"menuBar-SuggestsEntry"},e.entry),l.a.createElement("span",{className:"menuBar-SuggestsExplain"},e.explain))})),...e})),Object(m.a)(l.a.createElement(B.a,{...e}))))),[e.text]),()=>l.a.createElement(B.a,{...e}))),H=e=>{const t=Object(c.useMemo)(()=>e.text.replace(/\s+/g," "),[e.text]),[n,a]=Object(u.a)(P.a),[o,s]=Object(u.a)(P.a),[i,d]=Object(u.a)(T.b),p=Object(x.a)(Object(h.a)(e=>Object(g.a)([e,Object(L.a)(a.pipe(Object(S.a)(e=>!e)),s,d.pipe(Object(v.a)(0)),r.a.createStream("SEARCH_TEXT_BOX").pipe(Object(k.a)(!1)))]).pipe(Object(f.a)(([[e,t],n])=>Boolean(e&&t&&n)),Object(_.a)()),[e.enableSuggest,e.text]),!1),m=Object(x.a)(a),y=Object(c.useRef)(!1),b=Object(c.useRef)(null),w=Object(c.useRef)(null),j=Object(c.useRef)(()=>{b.current&&(b.current.focus(),b.current.select())}).current,O=t=>{y.current=!1,i(!1),e.onSearch("string"==typeof t?t:e.text),j()},N=()=>{!e.shouldFocus||y.current||p||j()};return Object(c.useLayoutEffect)(N,[]),Object(c.useEffect)(N,[e.text]),l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"menuBar-SearchBox_Wrap"+(m?" isExpand":"")},l.a.createElement("input",{type:"text",className:"menuBar-SearchBox",key:"search-box",ref:b,onChange:t=>{e.onInput(t.currentTarget.value),i(!0)},onKeyDown:t=>{if(t.nativeEvent.stopPropagation(),y.current=!0,"ArrowDown"===t.key){const e=w.current&&w.current.querySelector("button");e?e.focus():i(!0),t.preventDefault(),t.stopPropagation()}else"Enter"===t.key&&O(e.text)},onFocus:e=>{e.currentTarget.select(),n(e)},onBlur:n,value:t}),l.a.createElement(E.a,{classNames:"csst-menuBar-SearchBox_Suggests",in:p,timeout:100,mountOnEnter:!0,unmountOnExit:!0,onExited:()=>e.onHeightChanged(0)},()=>l.a.createElement("div",{className:"menuBar-SearchBox_Suggests"},l.a.createElement(R,{ref:w,text:t,onSelect:O,onFocus:o,onBlur:o,onArrowUpFirst:j,onClose:j,onHeightChanged:e.onHeightChanged})))),l.a.createElement(M,{t:e.t,onClick:O}))};var Q=n(133);const F=e=>{const{t:t}=Object(y.e)(["common"]),n=e.profiles.map(n=>({key:n.id,value:n.id,label:l.a.createElement("span",{className:"menuBar-ProfileItem"+(n.id===e.activeProfileId?" isActive":"")},Object(o.h)(n.name,t))}));return l.a.createElement(Q.a,{Button:Y,items:n,onBtnClick:()=>(r.a.send({type:"OPEN_URL",payload:{url:"options.html",self:!0}}),!1),onSelect:e.onSelectProfile,onHeightChanged:e.onHeightChanged})};function Y(e){const{t:t}=Object(y.e)(["content"]);return l.a.createElement(j,{...e,t:t,disabled:Object(s.h)()})}function K(e){return Object(m.a)(0)(e)}var G=n(29),$=n(46),V=n(141);const Z=Object(a.b)(e=>({text:e.text,isInNotebook:e.isFav,shouldFocus:!e.isExpandMtaBox&&((e.isQSPanel||Object(s.k)())&&e.config.qsFocus||Object(s.j)()),enableSuggest:e.config.searchSuggests,isTrackHistory:e.config.searchHistory,histories:e.searchHistory,historyIndex:e.historyIndex,showedDictAuth:e.config.showedDictAuth,profiles:e.profiles,activeProfileId:e.activeProfile.id,isPinned:e.isPinned,isQSFocus:e.isQSFocus}),e=>({searchText:t=>{e({type:"SEARCH_START",payload:{word:Object(i.e)({text:t,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}})},updateText:t=>{e({type:"UPDATE_TEXT",payload:t})},addToNoteBook:()=>{e({type:"ADD_TO_NOTEBOOK"})},switchHistory:t=>{e({type:"SWITCH_HISTORY",payload:t})},togglePin:()=>{e({type:"TOGGLE_PIN"})},toggleQSFocus:()=>{e({type:"TOGGLE_QS_FOCUS"})},onClose:()=>{Object(s.l)()?window.close():e({type:"CLOSE_PANEL"})},onSwitchSidebar:e=>{r.a.send({type:"QS_SWITCH_SIDEBAR",payload:e})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"menubar",height:30,floatHeight:t}})},onDragAreaMouseDown:t=>{e({type:"DRAG_START_COORD",payload:{x:t.clientX,y:t.clientY}})},onDragAreaTouchStart:t=>{e({type:"DRAG_START_COORD",payload:{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}})},onSelectProfile:t=>{e(async(e,n)=>{var a;const c=n(),{showedDictAuth:l,dictAuth:u}=c.config;l||Object(s.j)()||(await Object(G.f)({...c.config,showedDictAuth:!0}),!Object(V.a)(u).every(e=>Object(V.a)(u[e]).every(t=>{var n;return!(null===(n=u[e])||void 0===n?void 0:n[t])})))?(await Object(o.l)(t),await Object($.d)(10),e({type:"SEARCH_START",payload:{word:(null===(a=c.searchHistory[c.historyIndex])||void 0===a?void 0:a.text)===c.text?c.searchHistory[c.historyIndex]:Object(i.e)({text:c.text,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}})):r.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=DictAuths",self:!0}})})}}))(e=>{const{t:t}=Object(y.e)(["content","common"]),[n,a]=Object(u.a)(K),[o,i]=Object(u.a)(K);return Object(d.a)(Object(h.a)(()=>Object(g.a)(a,i).pipe(Object(p.a)(100),Object(f.a)(e=>{const t=Math.max(...e);return t>0?t+72:0}))),e.onHeightChanged),l.a.createElement("header",{className:"menuBar"},l.a.createElement(b,{t:t,disabled:e.historyIndex<=0,onClick:()=>e.switchHistory("prev")}),l.a.createElement(w,{t:t,disabled:e.historyIndex>=e.histories.length-1,onClick:()=>e.switchHistory("next")}),l.a.createElement(H,{key:"searchbox",t:t,text:e.text,shouldFocus:e.shouldFocus,enableSuggest:e.enableSuggest,onInput:e.updateText,onSearch:e.searchText,onHeightChanged:o}),Object(s.l)()||l.a.createElement("div",{className:"menuBar-DragArea",onMouseDown:e.onDragAreaMouseDown,onTouchStart:e.onDragAreaTouchStart}),l.a.createElement(F,{t:t,profiles:e.profiles,activeProfileId:e.activeProfileId,onSelectProfile:e.onSelectProfile,onHeightChanged:n}),l.a.createElement(O,{t:t,isFav:e.isInNotebook,onClick:e.addToNoteBook,onMouseDown:e=>{2===e.button&&(e.preventDefault(),e.stopPropagation(),e.currentTarget.blur(),r.a.send({type:"OPEN_URL",payload:{url:"notebook.html",self:!0}}))}}),e.isTrackHistory?l.a.createElement(N,{t:t,onClick:()=>r.a.send({type:"OPEN_URL",payload:{url:"history.html",self:!0}})}):l.a.createElement(I,{t:t,onClick:()=>r.a.send({type:"OPEN_URL",payload:{url:"notebook.html",self:!0}})}),Object(s.k)()?l.a.createElement(l.a.Fragment,null,l.a.createElement(D,{t:t,isFocus:e.isQSFocus,onClick:e.toggleQSFocus,disabled:Object(s.h)()||Object(s.j)()}),l.a.createElement(A,{t:t,onMouseDown:t=>{t.preventDefault(),e.onSwitchSidebar(0===t.button?"left":"right")}})):Object(s.j)()?null:l.a.createElement(l.a.Fragment,null,l.a.createElement(C,{t:t,isPinned:e.isPinned,onClick:e.togglePin,disabled:Object(s.h)()||Object(s.j)()}),l.a.createElement(z,{t:t,onClick:e.onClose})))})},365:function(e,t,n){"use strict";n.d(t,"a",(function(){return L}));var a=n(22),o=n(19),s=n(1),i=n(0),r=n.n(i),c=n(116),l=n(30),u=n(4),d=n.n(u),h=n(184),g=n(11),p=n(46),f=n(9),m=n(133);const y=e=>{const{t:t,ready:a}=Object(f.e)(["dicts","content","langcode"]),[o,c]=Object(i.useState)(!1);Object(i.useEffect)(()=>{const t=setTimeout(()=>c(e.isSearching),1500*Math.random());return()=>{clearTimeout(t)}},[e.isSearching]);const l=Object(i.useMemo)(()=>browser.runtime.getURL(n(429)("./"+e.dictID+"/favicon.png")),[e.dictID]),u=Object(i.useMemo)(()=>{const n=[],a=e=>e.replace(/%t\((\S+)\)/g,(e,n)=>t(n));if(e.catalog)for(const t of e.catalog)t.options?n.push({key:t.key,value:t.value,title:t.title&&a(t.title),options:t.options.map(e=>({value:e.value,label:a(e.label)}))}):n.push({key:t.key,value:t.value,label:a(t.label)});return n.push({key:"_options",value:"_options",label:t("content:tip.openOptions")}),n},[e.catalog,a]);return r.a.createElement("header",{className:d()("dictItemHead",{isSearching:e.isSearching})},r.a.createElement("img",{className:"dictItemHead-Logo",src:l,alt:"dict logo"}),r.a.createElement("h1",{className:"dictItemHead-Title"},r.a.createElement("a",{href:"#",onClick:t=>{t.stopPropagation(),t.preventDefault(),e.openDictSrcPage(e.dictID,t.ctrlKey)}},t(e.dictID+".name"))),r.a.createElement(m.a,{compact:!0,Button:b,items:u,top:25,onSelect:(t,n)=>{"_options"===t?s.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=Dictionaries",self:!0}}):e.onCatalogSelect({key:t,value:n})}}),o&&r.a.createElement("div",{className:"dictItemHead-Loader"},r.a.createElement("div",null),r.a.createElement("div",null),r.a.createElement("div",null),r.a.createElement("div",null),r.a.createElement("div",null)),r.a.createElement("div",{className:"dictItemHead-EmptyArea",onClick:e.toggleFold}),r.a.createElement("button",{className:"dictItemHead-FoldArrowBtn",onMouseOut:e=>e.currentTarget.blur(),onClick:e.toggleFold},r.a.createElement("svg",{className:"dictItemHead-FoldArrow",width:"18",height:"18",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("path",{className:"dictItemHead-FoldArrowPath",d:"M43.854 59.414L14.146 29.707 43.854 0l1.414 1.414-28.293 28.293L45.268 58"}))))};function b(e){return r.a.createElement("button",{className:"dictItemHead-Menus_Btn",...e},r.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 512 512"},r.a.createElement("path",{d:"M301.256 394.29A45.256 45.256 0 01256 439.546a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 349.034a45.256 45.256 0 0145.256 45.256zM301.256 257.48A45.256 45.256 0 01256 302.736a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 212.224a45.256 45.256 0 0145.256 45.256zM301.256 117.71A45.256 45.256 0 01256 162.964a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 72.453a45.256 45.256 0 0145.256 45.256z"})))}var w=n(218),M=n(2),j=n(247),O=n(119);const N=n(511).toString(),I=e=>{const t=Object(i.useMemo)(()=>r.a.lazy(()=>n(478)(`./${e.dictID}/View.tsx`)),[e.dictID]),a=Object(i.useMemo)(()=>r.a.lazy(async()=>{const t=await n(479)(`./${e.dictID}/_style.shadow.scss`);return{default:()=>r.a.createElement("style",null,(t.default||t).toString())}}),[e.dictID]);return r.a.createElement(j.a,{error:C},r.a.createElement(i.Suspense,{fallback:null},"FINISH"===e.searchStatus&&e.searchResult&&r.a.createElement(w.a.div,null,r.a.createElement("div",{ref:e.dictRootRef},r.a.createElement("style",null,N),r.a.createElement(a,null),e.panelCSS?r.a.createElement("style",null,e.panelCSS):null,r.a.createElement(O.b,{className:d()("d-"+e.dictID,"dictRoot",M.b,{isAnimate:e.withAnimation}),onPlayStart:e.onSpeakerPlay,onMouseUp:e.onInPanelSelect},r.a.createElement(t,{result:e.searchResult,searchText:e.searchText,catalogSelect$:e.catalogSelect$}))))))};function C(){return r.a.createElement("p",{style:{textAlign:"center"}},"Render error. Please"," ",r.a.createElement("a",{href:"https://github.com/crimx/ext-saladict/issues",target:"_blank",rel:"nofollow noopener noreferrer"},"report issue"),".")}const D=e=>{const[t,n]=Object(c.a)(l.b),[a,o]=Object(i.useState)(!1),[u,f]=Object(i.useState)("COLLAPSE"),[m,b]=Object(i.useState)(10),w=Object(i.useMemo)(()=>Math.max(10,"COLLAPSE"===u?10:"FULL"===u?m:Math.min(m,e.preferredHeight)),[u,m,e.preferredHeight]);Object(i.useEffect)(()=>{"FINISH"===e.searchStatus?f("HALF"):f("COLLAPSE")},[e.searchStatus]),Object(i.useEffect)(()=>{e.onHeightChanged(e.dictID,w+20)},[w]);const M=Object(i.useRef)(null),j=Object(i.useRef)(null),O=Object(i.useCallback)(async n=>{if("#"!==n.key[0])return t(n);if(!j.current)return;const a=j.current.querySelector("#"+n.value);if(a){if("FULL"!==u&&(o(!0),f("FULL"),await Object(p.d)(0),o(!1)),M.current){const t=M.current.getRootNode();if(t.querySelector){const n=t.querySelector(".dictPanel-Body");if(n)return void n.scrollTo({top:a.getBoundingClientRect().y-n.firstElementChild.getBoundingClientRect().y-30,behavior:e.withAnimation?"smooth":"auto"})}}a.scrollIntoView({behavior:e.withAnimation?"smooth":"auto"})}},[u,e.withAnimation]);return r.a.createElement("section",{ref:M,className:d()("dictItem",{isUnfold:"COLLAPSE"!==u,noHeightTransition:a})},r.a.createElement(y,{dictID:e.dictID,catalog:e.catalog,isSearching:"SEARCHING"===e.searchStatus,toggleFold:function(){if("SEARCHING"===e.searchStatus)return;if("COLLAPSE"!==u)return f("COLLAPSE"),void e.onUserFold(e.dictID,!0);e.onUserFold(e.dictID,!1),e.searchResult?f("HALF"):e.searchText({id:e.dictID})},openDictSrcPage:e.openDictSrcPage,onCatalogSelect:O}),r.a.createElement("div",{className:"dictItem-Body",key:e.dictID,style:{height:w},onClick:function(t){if(t.ctrlKey||t.metaKey||t.altKey)return;if(!t.target.tagName)return;const n=t.currentTarget;for(let a=t.target;a&&a!==n;a=a.parentElement)if("A"===a.tagName||"link"===a.getAttribute("role")){t.preventDefault(),t.stopPropagation();const n=a;return void(/nofollow|noopener|noreferrer/.test(n.rel)?s.a.send({type:"OPEN_URL",payload:{url:n.href}}):e.searchText({word:Object(g.e)({text:n.textContent||"",title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}))}}},r.a.createElement("article",{className:"dictItem-BodyMesure"},r.a.createElement(h.ResizeReporter,{reportInit:!0,onHeightChanged:b}),e.TestComp?"FINISH"===e.searchStatus&&e.searchResult&&r.a.createElement(e.TestComp,{result:e.searchResult,searchText:e.searchText,catalogSelect$:n}):r.a.createElement(I,{...e,catalogSelect$:n,dictRootRef:j})),"HALF"===u&&w<m&&e.searchResult&&r.a.createElement("button",{className:"dictItem-FoldMask",onClick:()=>f("FULL")},r.a.createElement("svg",{className:"dictItem-FoldMaskArrow",width:"15",height:"15",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("path",{d:"M58 14.146L29.707 42.44 1.414 14.145 0 15.56 29.707 45.27 59.414 15.56"})))))};var z=n(182),A=n(371),E=n(173);const T=r.a.memo(D),x=Object(o.a)((e,t)=>e.map(e=>({dictID:e.id,searchStatus:e.searchStatus,searchResult:e.searchResult,catalog:e.catalog,preferredHeight:t[e.id].preferredHeight}))),L=Object(a.b)(e=>{const{config:t}=e;return{withAnimation:t.animation,panelCSS:t.panelCSS,touchMode:t.touchMode,language:t.language,doubleClickDelay:t.doubleClickDelay,dicts:x(e.renderedDicts,e.activeProfile.dicts.all)}},e=>({searchText:t=>{e({type:"SEARCH_START",payload:t})},openDictSrcPage:(t,n)=>{e((e,a)=>{const{searchHistory:o}=a(),i=o[o.length-1];s.a.send({type:"OPEN_DICT_SRC_PAGE",payload:{id:t,text:i&&i.text?i.text:"",active:!n}})})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"dictlist",height:t}})},onUserFold:(t,n)=>{e({type:"USER_FOLD_DICT",payload:{id:t,fold:n}})},onSpeakerPlay:t=>new Promise(n=>{e((e,a)=>{a().isExpandWaveformBox?s.a.self.send({type:"PLAY_AUDIO",payload:t}).then(n):s.a.send({type:"PLAY_AUDIO",payload:t}).then(n),e({type:"PLAY_AUDIO",payload:{src:t,timestamp:Date.now()}})})}),newSelection:t=>{e({type:"NEW_SELECTION",payload:t})}}))(e=>{const{dicts:t,onHeightChanged:n,touchMode:a,language:o,doubleClickDelay:s,newSelection:l,...u}=e,d=Object(i.useRef)({dicts:{},sum:0}),[h,g]=Object(c.a)(e=>Object(A.a)(10)(e));Object(z.a)(g,n);const p=Object(i.useRef)((e,t)=>{d.current.sum=d.current.sum-(d.current.dicts[e]||0)+t,d.current.dicts[e]=t,h(d.current.sum)}).current,f=Object(i.useMemo)(()=>t.reduce((e,{dictID:t})=>e+t+",",""),[t]);Object(i.useEffect)(()=>{const e=d.current;d.current=t.reduce((t,{dictID:n})=>(t.dicts[n]=e.dicts[n]||30,t.sum+=t.dicts[n]||30,t),{dicts:{},sum:0}),h(d.current.sum)},[f]);const m=Object(E.b)(a,o,s,l);return r.a.createElement("div",{className:"dictList"},t.map(e=>r.a.createElement(T,{key:e.dictID,...u,...e,onInPanelSelect:m,onHeightChanged:p})))})},367:function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var a=n(22),o=n(11),s=n(2),i=n(0),r=n.n(i),c=n(4),l=n.n(c),u=n(89),d=n(382),h=n(240),g=n(108),p=n(83),f=n(435),m=n(155);const y=e=>{const t=Object(i.useRef)(!1),n=Object(i.useRef)(null),[a,o]=Object(i.useState)(0),[s,c]=Object(h.a)(b,!1),g=Object(i.useRef)(!0);return Object(i.useEffect)(()=>{e.expand&&(g.current&&!e.shouldFocus||n.current&&(n.current.focus(),n.current.select()),g.current=!1)},[e.expand]),Object(i.useEffect)(()=>{e.shouldFocus&&!t.current&&e.expand&&n.current&&(n.current.focus(),n.current.select())},[e.text]),Object(i.useEffect)(()=>{e.onHeightChanged((e.expand?a:0)+12)},[a,e.expand]),r.a.createElement("div",null,r.a.createElement("div",{className:l()("mtaBox-TextArea-Wrap",{isTyping:s}),style:{height:e.expand?a:0}},r.a.createElement(u.a,{in:e.expand,timeout:400,classNames:"mtaBox-TextArea-Wrap",appear:!0,mountOnEnter:!0,unmountOnExit:!0},()=>r.a.createElement(d.a,{autoFocus:!0,inputRef:n,className:"mtaBox-TextArea",value:e.text,onChange:n=>{t.current=!0,e.onInput(n.currentTarget.value)},onKeyDown:t=>{t.nativeEvent.stopPropagation(),"Enter"===t.key&&(t.ctrlKey||t.metaKey)&&e.searchText(e.text),c(t)},minRows:2,onHeightChange:e=>o(e)}))),r.a.createElement("button",{className:"mtaBox-DrawerBtn",onClick:e.onDrawerToggle},r.a.createElement("svg",{width:"10",height:"10",viewBox:"0 0 59.414 59.414",className:l()("mtaBox-DrawerBtn_Arrow",{isExpand:e.expand})},r.a.createElement("path",{d:"M58 14.146L29.707 42.44 1.414 14.145 0 15.56 29.707 45.27 59.414 15.56"}))))};function b(e){return e.pipe(Object(g.a)(e=>(e.stopPropagation(),Object(m.a)(1e3).pipe(Object(p.a)(!1),Object(f.a)(!0)))))}const w=Object(a.b)(e=>({expand:e.isExpandMtaBox,text:e.text,shouldFocus:!e.activeProfile.mtaAutoUnfold||"hide"!==e.activeProfile.mtaAutoUnfold||(e.isQSPanel||Object(s.k)())&&e.config.qsFocus||Object(s.j)()}),e=>({searchText:t=>{e({type:"SEARCH_START",payload:{word:Object(o.e)({text:t})}})},onInput:t=>{e({type:"UPDATE_TEXT",payload:t})},onDrawerToggle:()=>{e({type:"TOGGLE_MTA_BOX"})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"mtabox",height:t}})}}))(y)},368:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(22),o=n(0),s=n.n(o),i=n(89),r=n(2);const c=Object(a.b)(e=>({darkMode:e.config.darkMode,isExpand:e.isExpandWaveformBox}),e=>({onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"waveformbox",height:t}})},toggleExpand:()=>{e({type:"TOGGLE_WAVEFORM_BOX"})}}))(e=>(Object(o.useEffect)(()=>{e.onHeightChanged(12+(e.isExpand?165:0))},[e.isExpand]),s.a.createElement("div",{className:`waveformBox ${r.a}${e.isExpand?" isExpand":""}`},s.a.createElement("button",{className:"waveformBox-DrawerBtn",onClick:e.toggleExpand},s.a.createElement("svg",{width:"10",height:"10",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg",className:"waveformBox-DrawerBtn_Arrow"},s.a.createElement("path",{d:"M 58 45.269 L 29.707 16.975 L 1.414 45.27 L 0 43.855 L 29.707 14.145 L 59.414 43.855"}))),s.a.createElement("div",{className:"waveformBox-FrameWrap"},s.a.createElement(i.a,{timeout:400,in:e.isExpand,classNames:"waveformBox-Frame",mountOnEnter:!0,unmountOnExit:!0},()=>s.a.createElement("iframe",{className:"waveformBox-Frame",src:`${browser.runtime.getURL("audio-control.html")}${e.darkMode?"?darkmode=true":""}`,sandbox:"allow-same-origin allow-scripts"}))))))},39:function(e,t,n){"use strict";function a(e,t={},n={}){return{name:e,options:{keepLF:{en:"Keep linebreaks","zh-CN":"保留换行","zh-TW":"保留換行"},"keepLF-none":{en:"None","zh-CN":"不保留","zh-TW":"不保留"},"keepLF-all":{en:"All","zh-CN":"全保留","zh-TW":"全保留"},"keepLF-pdf":{en:"PDF","zh-CN":"保留 PDF 换行","zh-TW":"保留 PDF 換行"},"keepLF-webpage":{en:"Webpage","zh-CN":"保留网页换行","zh-TW":"保留網頁換行"},slInitial:{en:"Source Language","zh-CN":"原文显示","zh-TW":"原文顯示"},"slInitial-hide":{en:"Hide","zh-CN":"隐藏","zh-TW":"隱藏"},"slInitial-collapse":{en:"Collapse","zh-CN":"收起","zh-TW":"收起"},"slInitial-full":{en:"Full","zh-CN":"完整显示","zh-TW":"完整顯示"},tl:{en:"Target language","zh-CN":"目标语言","zh-TW":"目標語言"},tl2:{en:"Fallback target language","zh-CN":"第二目标语言","zh-TW":"第二目標語言"},...t},helps:{slInitial:{en:"Source language initial state. If hided can be reopened via dictionary titlebar menu.","zh-CN":"原文初始显示状态。隐藏后可通过字典标题栏菜单打开。","zh-TW":"原文初始顯示狀態。隱藏後可通過字典標題欄選單開啟。"},tl2:{en:"Fallback when detected languange and target language are identical.","zh-CN":"如果检测的源语言与目标语言相同将自动切换第二目标语言。","zh-TW":"如果檢測的源語言與目標語言相同將自動切換第二目標語言。"},...n}}}n.d(t,"a",(function(){return a}))},40:function(e,t,n){"use strict";n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return f})),n.d(t,"k",(function(){return m})),n.d(t,"f",(function(){return y})),n.d(t,"m",(function(){return b})),n.d(t,"b",(function(){return w})),n.d(t,"j",(function(){return M})),n.d(t,"e",(function(){return j})),n.d(t,"l",(function(){return N})),n.d(t,"g",(function(){return I})),n.d(t,"n",(function(){return C})),n.d(t,"a",(function(){return z})),n.d(t,"d",(function(){return A})),n.d(t,"c",(function(){return E}));var a=n(85),o=n.n(a),s=n(74),i=n(178),r=n(1),c=n(95),l=n(64),u=n(76),d=n(10);function h(e){return{v:1,d:o.a.deflate(JSON.stringify(e),{to:"string"})}}function g(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}function p(e,t){const n=/^%%_(\S+)_%%$/.exec(e);return n&&t("common:profile."+n[1])||e}async function f(){let e=[],t=[],n="";const a=await r.c.sync.get(["profileIDList","activeProfileID"]);if(a.profileIDList&&(t=a.profileIDList.filter(e=>Boolean(e&&"string"==typeof e.id&&"string"==typeof e.name))),a.activeProfileID&&(n=a.activeProfileID),t.length>0)for(const{id:n}of t){const t=await y(n);e.push(t?Object(i.a)(t):Object(s.b)(n))}else({profileIDList:t,profiles:e}=Object(s.a)()),n=t[0].id;n||(n=t[0].id);let o=e.find(({id:e})=>e===n);o||(o=e[0],n=o.id),await r.c.sync.set({profileIDList:t,activeProfileID:n});for(const t of e)await b(t);return o}async function m(){const{profileIDList:e}=await r.c.sync.get("profileIDList");return e&&await r.c.sync.remove([...e.map(({id:e})=>e),"profileIDList","activeProfileID","configProfileIDs","activeConfigID"]),f()}async function y(e){return g((await r.c.sync.get(e))[e])}async function b(e){return r.c.sync.set({[e.id]:h(e)})}async function w(e){const t=e.id,n=await I();return r.c.sync.set({profileIDList:[...n,e],[t]:h(Object(s.b)(t))})}async function M(e){const t=await O();let n=await I();return n=n.filter(t=>t.id!==e),t===e&&await N(n[0].id),await C(n),r.c.sync.remove(e)}async function j(){const e=await O();if(e){const t=await y(e);if(t)return t}return Object(s.b)()}async function O(){return(await r.c.sync.get("activeProfileID")).activeProfileID||""}function N(e){return r.c.sync.set({activeProfileID:e})}async function I(){return(await r.c.sync.get("profileIDList")).profileIDList||[]}function C(e){return r.c.sync.set({profileIDList:e})}function D(e){r.c.sync.addListener("profileIDList",({profileIDList:t})=>{t&&t.newValue&&e(t)})}async function z(e){let t=await O();r.c.sync.addListener(n=>{if(n.activeProfileID){const{newValue:a,oldValue:o}=n.activeProfileID;a&&(t=a,o?r.c.sync.get([o,a]).then(t=>{t[a]&&e({newProfile:g(t[a]),oldProfile:g(t[o])})}):y(a).then(t=>{t&&e({newProfile:t})}))}if(t&&n[t]){const{newValue:a,oldValue:o}=n[t];if(a)return void e({newProfile:g(a),oldProfile:g(o)})}})}function A(){return Object(c.a)(Object(l.a)(I()),Object(u.a)(D).pipe(Object(d.a)(e=>(Array.isArray(e)?e[0]:e).newValue)))}function E(){return Object(c.a)(Object(l.a)(j()),Object(u.a)(z).pipe(Object(d.a)(e=>(Array.isArray(e)?e[0]:e).newProfile)))}},41:function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"d",(function(){return y})),n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return w}));var a=n(104),o=n(52),s=n(96),i=n(10),r=n(83),c=n(176),l=n(38),u=n(11),d=n(1);const h=/mac/i.test(navigator.platform);function g(e){return h?"Meta"===e.key:"Control"===e.key}function p(e){return"Escape"===e.key}function f(e){return Object(a.a)(Object(i.a)(e)(Object(o.a)(window,"keydown",{capture:!0})),Object(r.a)(!1)(Object(o.a)(window,"keyup",{capture:!0})),Object(r.a)(!1)(Object(o.a)(window,"blur",{capture:!0})),Object(s.a)(!1)).pipe(Object(c.a)(),Object(l.a)(e=>e))}const m=/CodeMirror|ace_editor|monaco-editor/;function y(e){if(!e||!e.tagName)return!1;for(let t=e;t;t=t.parentElement){if("INPUT"===t.tagName||"TEXTAREA"===t.tagName)return!0;if(m.test(String(t.className)))return!0}return!1}function b(e){const t=window.pageURL||document.URL||"";return!!t&&(e.blacklist.some(([e])=>new RegExp(e).test(t))&&e.whitelist.every(([e])=>!new RegExp(e).test(t)))}async function w(e={}){const t=await d.a.send({type:"PAGE_INFO"});return window.faviconURL=t.faviconURL,t.pageTitle&&(window.pageTitle=t.pageTitle),t.pageURL&&(window.pageURL=t.pageURL),Object(u.e)({title:t.pageTitle||document.title||"",url:t.pageURL||document.URL||"",favicon:t.faviconURL||"",...e})}},429:function(e,t,n){var a={"./baidu/favicon.png":445,"./bing/favicon.png":446,"./caiyun/favicon.png":447,"./cambridge/favicon.png":448,"./cnki/favicon.png":449,"./cobuild/favicon.png":450,"./etymonline/favicon.png":451,"./eudic/favicon.png":452,"./google/favicon.png":453,"./googledict/favicon.png":454,"./guoyu/favicon.png":455,"./hjdict/favicon.png":456,"./jikipedia/favicon.png":457,"./jukuu/favicon.png":458,"./lexico/favicon.png":459,"./liangan/favicon.png":460,"./longman/favicon.png":461,"./macmillan/favicon.png":462,"./mojidict/favicon.png":463,"./naver/favicon.png":464,"./renren/favicon.png":465,"./shanbay/favicon.png":466,"./sogou/favicon.png":467,"./tencent/favicon.png":468,"./urban/favicon.png":469,"./vocabulary/favicon.png":470,"./weblio/favicon.png":471,"./weblioejje/favicon.png":472,"./websterlearner/favicon.png":473,"./wikipedia/favicon.png":474,"./youdao/favicon.png":475,"./youdaotrans/favicon.png":476,"./zdic/favicon.png":477};function o(e){var t=s(e);return n(t)}function s(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=s,e.exports=o,o.id=429},431:function(e,t,n){"use strict";n.r(t);var a=n(42),o=n(1),s=n(29),i=n(2),r=n(10),c=n(720),l=n(108);function u(e){window.parent===window?o.a.self.send({type:"SELECTION",payload:e}):window.parent.postMessage({type:"SALADICT_SELECTION",payload:e},"*")}var d=n(41),h=n(24),g=n(118),p=n(104),f=n(64),m=n(704),y=n(96),b=n(52),w=n(155),M=n(161),j=n(435),O=n(83),N=n(500),I=n(176),C=n(38);function D(e){const t=e.clientX,n=e.clientY;let o,s,i;const r=window.getSelection();if(!r)return null;if(r.rangeCount>0&&(i=r.getRangeAt(0),r.removeAllRanges()),document.caretPositionFromPoint){const e=document.caretPositionFromPoint(t,n);if(!e)return null;o=e.offsetNode,s=e.offset}else{if(!document.caretRangeFromPoint)return null;{const e=document.caretRangeFromPoint(t,n);if(!e)return null;o=e.startContainer,s=e.startOffset}}if(o.nodeType===Node.TEXT_NODE){const e=o,c=e.data,l=(c.slice(0,s).match(/[-_a-z]+$/i)||[""])[0],u=(c.slice(s).match(/^([-_a-z]+|[\u4e00-\u9fa5])/i)||[""])[0];if(l.length<=0&&u.length<=0)return null;const d=document.createRange();d.setStart(e,s-l.length),d.setEnd(e,s+u.length);const h=d.getBoundingClientRect();h.left<=t&&h.right>=t&&h.top<=n&&h.bottom>=n&&(r.removeAllRanges(),r.addRange(d),r.modify&&(r.modify("move","backward","word"),r.collapseToStart(),r.modify("extend","forward","word")));const g=Object(a.d)(r),p=Object(a.b)(r);return r.removeAllRanges(),i&&r.addRange(i),d.detach(),g?{text:g,context:p}:null}return null}var z=n(857),A=n(371);var E=n(173);if(!window.__SALADICT_SELECTION_LOADED__){window.__SALADICT_SELECTION_LOADED__=!0;const e=Object(s.b)().pipe(Object(r.a)(e=>Object(d.a)(e)?null:e),Object(c.a)());o.a.addListener("PRELOAD_SELECTION",()=>{const e=Object(a.c)();if(e)return Object(d.e)({text:e,context:Object(a.a)()})}),o.a.createStream("EMIT_SELECTION").subscribe(async()=>{const e=window.getSelection();if(e){const t=Object(a.d)(e),n=e.getRangeAt(0).getBoundingClientRect();t&&u({mouseX:n.right,mouseY:n.top,instant:!0,self:Object(i.d)(e.anchorNode),word:await Object(d.e)({text:t,context:Object(a.b)(e)}),dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,force:!1})}}),window.addEventListener("message",(function({data:e,source:t}){if(!e||"SALADICT_SELECTION"!==e.type)return;const n=({contentWindow:e})=>e===t,a=Array.from(document.querySelectorAll("iframe")).find(n)||Array.from(document.querySelectorAll("frame")).find(n);if(!a)return;const{left:o,top:s}=a.getBoundingClientRect();e.payload.mouseX=e.payload.mouseX+o,e.payload.mouseY=e.payload.mouseY+s,u(e.payload)})),Object(d.f)(d.b).subscribe(()=>o.a.self.send({type:"ESCAPE_KEY"})),e.pipe(Object(l.a)((function(e){if(!e||!e.tripleCtrl||Object(i.l)()||Object(i.h)())return g.a;const t=Object(c.a)()(Object(d.f)(d.c));return t.pipe(Object(z.a)(Object(p.a)(Object(A.a)(500)(t),Object(d.f)(e=>!Object(d.c)(e)))),Object(C.a)(e=>e.length>=3))}))).subscribe(()=>{o.a.self.send({type:"TRIPLE_CTRL"})}),e.pipe(Object(l.a)(E.a)).subscribe(async e=>{e.word?u({dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,self:!1,instant:!1,force:!1,...e,word:await Object(d.e)(e.word)}):function(e){const t={type:"SELECTION",payload:{word:null,self:e,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}};o.a.self.send(t)}(e.self)}),e.pipe(Object(l.a)((function(e){if(!e)return g.a;const t=o.a.self.createStream("PIN_STATE").pipe(Object(M.a)("payload"),Object(j.a)(!1)),n=Object(p.a)(Object(f.a)(o.a.send({type:"QUERY_QS_PANEL"})),o.a.createStream("QS_PANEL_CHANGED").pipe(Object(M.a)("payload"))).pipe(Object(r.a)(t=>t&&e.qssaPageSel),Object(j.a)(!1));return Object(m.a)(t,n).pipe(Object(l.a)(([t,n])=>{const{instant:a}=e.panelMode,{instant:o}=e[n?"qsPanelMode":t?"pinMode":"mode"];if(!a.enable&&!o.enable)return Object(y.a)(null);const s={};return Object(p.a)(Object(O.a)(null)(Object(b.a)(window,"mouseup",{capture:!0})),Object(O.a)(null)(Object(b.a)(window,"mouseout",{capture:!0})),Object(O.a)(null)(Object(b.a)(window,"keyup",{capture:!0})),Object(b.a)(window,"mousemove",{capture:!0}).pipe(Object(r.a)(e=>{const t=Object(i.d)(e.target),n=t||Object(i.l)()?a:o;return n.enable&&("alt"===n.key&&e.altKey||"shift"===n.key&&e.shiftKey||"ctrl"===n.key&&(e.ctrlKey||e.metaKey)||"direct"===n.key&&!(e.ctrlKey||e.metaKey||e.altKey))?(s.event=e,s.self=t,s):null}))).pipe(Object(N.a)(e=>e?Object(w.a)(e.self?a.delay:o.delay):Object(y.a)()))}),Object(r.a)(e=>e&&{word:D(e.event),...e}),Object(I.a)((e,t)=>{if(!e||!t)return!1;const{word:n,event:a}=e,{word:o,event:s}=t;return(null==n?void 0:n.text)===(null==o?void 0:o.text)&&(null==n?void 0:n.context)===(null==o?void 0:o.context)&&a.shiftKey===s.shiftKey&&a.ctrlKey===s.ctrlKey&&a.metaKey===s.metaKey&&a.altKey===s.altKey}),Object(C.a)(t=>Boolean(t&&t.word&&Object(h.a)(e.language,t.word.text))))}))).subscribe(async({word:e,event:t,self:n})=>{u({word:await Object(d.e)(e),altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,dbClick:!1,force:!1,instant:!0,mouseX:t.clientX,mouseY:t.clientY,self:n})})}},445:function(e,t,n){e.exports=n.p+"assets/favicon-baidu.b1036c7f.png"},446:function(e,t,n){e.exports=n.p+"assets/favicon-bing.e3d3533d.png"},447:function(e,t,n){e.exports=n.p+"assets/favicon-caiyun.7da16416.png"},448:function(e,t,n){e.exports=n.p+"assets/favicon-cambridge.fa1166e5.png"},449:function(e,t,n){e.exports=n.p+"assets/favicon-cnki.9d1835fe.png"},450:function(e,t,n){e.exports=n.p+"assets/favicon-cobuild.b6b15fdf.png"},451:function(e,t,n){e.exports=n.p+"assets/favicon-etymonline.eb3c1833.png"},452:function(e,t,n){e.exports=n.p+"assets/favicon-eudic.e582c08d.png"},453:function(e,t,n){e.exports=n.p+"assets/favicon-google.8edddd23.png"},454:function(e,t,n){e.exports=n.p+"assets/favicon-googledict.e936e12b.png"},455:function(e,t,n){e.exports=n.p+"assets/favicon-guoyu.b08539ad.png"},456:function(e,t,n){e.exports=n.p+"assets/favicon-hjdict.d4d70891.png"},457:function(e,t,n){e.exports=n.p+"assets/favicon-jikipedia.40135efc.png"},458:function(e,t,n){e.exports=n.p+"assets/favicon-jukuu.7d8ea82f.png"},459:function(e,t,n){e.exports=n.p+"assets/favicon-lexico.cfe48cf5.png"},46:function(e,t,n){"use strict";function a(e){const t=Array.isArray(e)?e:Array.from(e);return Promise.all(t.map(e=>Promise.resolve(e).catch(()=>null)))}function o(e){const t=Array.isArray(e)?e:Array.from(e);let n=0;return new Promise((e,a)=>t.forEach(o=>{Promise.resolve(o).then(e).catch(()=>{++n===t.length&&a(new Error("All rejected"))})}))}function s(...e){return new Promise(t=>{setTimeout(()=>e.length>1?t(e[1]):t(),Number(e[0])||0)})}function i(e,t=0){return Promise.race([e,s(t).then(()=>Promise.reject(new Error(`timeout ${t}ms`)))])}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return i}))},460:function(e,t,n){e.exports=n.p+"assets/favicon-liangan.b08539ad.png"},461:function(e,t,n){e.exports=n.p+"assets/favicon-longman.c733be7c.png"},462:function(e,t,n){e.exports=n.p+"assets/favicon-macmillan.50284e7f.png"},463:function(e,t,n){e.exports=n.p+"assets/favicon-mojidict.435cd8b4.png"},464:function(e,t,n){e.exports=n.p+"assets/favicon-naver.6094f3e0.png"},465:function(e,t,n){e.exports=n.p+"assets/favicon-renren.7fdf60c5.png"},466:function(e,t,n){e.exports=n.p+"assets/favicon-shanbay.082532e3.png"},467:function(e,t,n){e.exports=n.p+"assets/favicon-sogou.5f76dc4a.png"},468:function(e,t,n){e.exports=n.p+"assets/favicon-tencent.6981c3c3.png"},469:function(e,t,n){e.exports=n.p+"assets/favicon-urban.e32bfdde.png"},470:function(e,t,n){e.exports=n.p+"assets/favicon-vocabulary.06f9ac91.png"},471:function(e,t,n){e.exports=n.p+"assets/favicon-weblio.b2639663.png"},472:function(e,t,n){e.exports=n.p+"assets/favicon-weblioejje.a7f3d53c.png"},473:function(e,t,n){e.exports=n.p+"assets/favicon-websterlearner.ef2a5d08.png"},474:function(e,t,n){e.exports=n.p+"assets/favicon-wikipedia.47e324fa.png"},475:function(e,t,n){e.exports=n.p+"assets/favicon-youdao.da86f82a.png"},476:function(e,t,n){e.exports=n.p+"assets/favicon-youdaotrans.0d8d4512.png"},477:function(e,t,n){e.exports=n.p+"assets/favicon-zdic.1310d810.png"},478:function(e,t,n){var a={"./baidu/View.tsx":[638,99],"./bing/View.tsx":[639,131],"./caiyun/View.tsx":[640,100],"./cambridge/View.tsx":[641,132],"./cnki/View.tsx":[642,94],"./cobuild/View.tsx":[643,105],"./etymonline/View.tsx":[644,133],"./eudic/View.tsx":[645,134],"./google/View.tsx":[646,101],"./googledict/View.tsx":[647,135],"./guoyu/View.tsx":[636,136],"./hjdict/View.tsx":[648,137],"./jikipedia/View.tsx":[649,138],"./jukuu/View.tsx":[650,139],"./lexico/View.tsx":[651,140],"./liangan/View.tsx":[652,108],"./longman/View.tsx":[653,106],"./macmillan/View.tsx":[654,107],"./mojidict/View.tsx":[655,95],"./naver/View.tsx":[656,141],"./renren/View.tsx":[657,142],"./shanbay/View.tsx":[658,143],"./sogou/View.tsx":[659,102],"./tencent/View.tsx":[660,103],"./urban/View.tsx":[661,144],"./vocabulary/View.tsx":[662,145],"./weblio/View.tsx":[663,96],"./weblioejje/View.tsx":[664,97],"./websterlearner/View.tsx":[665,146],"./wikipedia/View.tsx":[666,147],"./youdao/View.tsx":[667,57],"./youdaotrans/View.tsx":[668,104],"./zdic/View.tsx":[669,98]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(a)},o.id=478,e.exports=o},479:function(e,t,n){var a={"./baidu/_style.shadow.scss":[670,58],"./bing/_style.shadow.scss":[671,59],"./caiyun/_style.shadow.scss":[672,60],"./cambridge/_style.shadow.scss":[673,61],"./cnki/_style.shadow.scss":[674,62],"./cobuild/_style.shadow.scss":[675,63],"./etymonline/_style.shadow.scss":[676,64],"./eudic/_style.shadow.scss":[677,65],"./google/_style.shadow.scss":[678,66],"./googledict/_style.shadow.scss":[679,67],"./guoyu/_style.shadow.scss":[680,68],"./hjdict/_style.shadow.scss":[681,69],"./jikipedia/_style.shadow.scss":[682,70],"./jukuu/_style.shadow.scss":[683,71],"./lexico/_style.shadow.scss":[684,72],"./liangan/_style.shadow.scss":[685,73],"./longman/_style.shadow.scss":[686,74],"./macmillan/_style.shadow.scss":[687,75],"./mojidict/_style.shadow.scss":[688,76],"./naver/_style.shadow.scss":[689,77],"./renren/_style.shadow.scss":[690,78],"./shanbay/_style.shadow.scss":[691,79],"./sogou/_style.shadow.scss":[692,80],"./tencent/_style.shadow.scss":[693,81],"./urban/_style.shadow.scss":[694,82],"./vocabulary/_style.shadow.scss":[695,83],"./weblio/_style.shadow.scss":[696,84],"./weblioejje/_style.shadow.scss":[697,85],"./websterlearner/_style.shadow.scss":[698,86],"./wikipedia/_style.shadow.scss":[699,87],"./youdao/_style.shadow.scss":[700,88],"./youdaotrans/_style.shadow.scss":[701,89],"./zdic/_style.shadow.scss":[702,90]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n.t(o,7)}))}o.keys=function(){return Object.keys(a)},o.id=479,e.exports=o},511:function(e,t,n){var a=n(512);e.exports="string"==typeof a?a:a.toString()},512:function(e,t,n){var a=n(221),o=n(564),s=n(513);t=a(!1);var i=o(s);t.push([e.i,"button,h1,h2,h3,h4,li,ul{margin:0;padding:0}img{display:block;max-width:95%}p{margin:.5em 0}ul li{list-style-type:none}button{background:0 0;border:none}button:hover{outline:0}a{color:#f9690e;text-decoration:none}a:hover{text-decoration:underline}select{color:#666;border:1px solid rgba(133,133,133,.28);background:0 0}.saladict-Speaker{display:inline-block;width:1.1em;height:1.1em;text-decoration:none;margin:0 5px;padding:0;line-height:1;vertical-align:text-bottom;border:none;background:no-repeat left/cover url("+i+');-moz-user-select:none;user-select:none;cursor:pointer}.saladict-Speaker:hover{outline:0}.saladict-Speaker.isActive{animation:saladict-Speaker-playing 1s steps(6) infinite}@keyframes saladict-Speaker-playing{from{background-position-x:0}70%{background-position-x:100%}100%{background-position-x:100%}}.entryBox-Wrap{padding-top:.8em}.entryBox{position:relative;border:1px solid #c76e06;border-radius:5px;margin-bottom:1em;padding:1em .5em .5em .5em}.entryBox-Title{position:absolute;top:0;left:1em;transform:translateY(-50%);max-width:90%;overflow:hidden;padding:0 5px;white-space:nowrap;text-overflow:ellipsis;font-size:1.2em;background:var(--color-background)}.dictRoot{font-size:var(--panel-font-size);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-family:"Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei",sans-serif}.dictRoot select{display:block;box-sizing:border-box;width:100%;margin:0 0 .5em 0;padding:.6em 1.4em .5em .8em;border-radius:.5em;font-size:var(--panel-font-size);font-weight:700;line-height:1.3;-moz-appearance:none;-webkit-appearance:none;appearance:none;-moz-appearance:none;border:1px solid rgba(133,133,133,.28);box-shadow:0 1px 0 1px rgba(0,0,0,.04);color:var(--color-font-grey);background-color:var(--color-background);background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%235caf9e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.65em auto,100%}.dictRoot select::-ms-expand{display:none}.dictRoot select:hover{border-color:rgba(133,133,133,.48)}.dictRoot select:focus{border-color:rgba(59,153,252,.7);outline:0}.dictRoot select option{font-weight:400}',""]),e.exports=t},513:function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMzUwIDUwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAxMS41ODUgMTYuOTc2IEwgMy43MjggMTYuOTc2IEMgMi42MjkgMTYuOTc2IDEuNzQxIDE3Ljg2NCAxLjc0MSAxOC45NjMgTCAxLjc0MSAzMS4wMzkgQyAxLjc0MSAzMi4xMzQgMi42MjkgMzMuMDI0IDMuNzI4IDMzLjAyNCBMIDExLjU4NSAzMy4wMjQgQyAxMS45MzkgMzMuMDI0IDEyLjI4NyAzMy4xMTkgMTIuNTkyIDMzLjI5OSBMIDI1LjE4IDQ1LjAyIEMgMjYuNTA0IDQ1Ljc5OCAyOC4xNzQgNDQuODQ1IDI4LjE3NCA0My4zMDggTCAyOC4xNzQgNi42OTIgQyAyOC4xNzQgNS4xNTcgMjYuNTA0IDQuMjAxIDI1LjE4IDQuOTggTCAxMi41OTMgMTYuNyBDIDEyLjI4NyAxNi44NzkgMTEuOTQgMTYuOTc1IDExLjU4NSAxNi45NzUgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCA1MCwgMCkiPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAxMS41ODUgMTYuOTc2IEwgMy43MjggMTYuOTc2IEMgMi42MjkgMTYuOTc2IDEuNzQxIDE3Ljg2NCAxLjc0MSAxOC45NjMgTCAxLjc0MSAzMS4wMzkgQyAxLjc0MSAzMi4xMzQgMi42MjkgMzMuMDI0IDMuNzI4IDMzLjAyNCBMIDExLjU4NSAzMy4wMjQgQyAxMS45MzkgMzMuMDI0IDEyLjI4NyAzMy4xMTkgMTIuNTkyIDMzLjI5OSBMIDI1LjE4IDQ1LjAyIEMgMjYuNTA0IDQ1Ljc5OCAyOC4xNzQgNDQuODQ1IDI4LjE3NCA0My4zMDggTCAyOC4xNzQgNi42OTIgQyAyOC4xNzQgNS4xNTcgMjYuNTA0IDQuMjAxIDI1LjE4IDQuOTggTCAxMi41OTMgMTYuNyBDIDEyLjI4NyAxNi44NzkgMTEuOTQgMTYuOTc1IDExLjU4NSAxNi45NzUgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzMi4xMTcgMzUuMDU1IEMgMzEuODMzIDM1LjA1NSAzMS41NDkgMzQuOTQ2IDMxLjMzMyAzNC43MjkgQyAzMC44OTYgMzQuMjk1IDMwLjg5NiAzMy41OTEgMzEuMzMzIDMzLjE1OCBDIDM2LjEwNSAyOC4zODIgMzYuMTA1IDIwLjYxMiAzMS4zMzMgMTUuODM3IEMgMzAuODk2IDE1LjQwMyAzMC44OTYgMTQuNzAyIDMxLjMzMyAxNC4yNjUgQyAzMS43NjYgMTMuODMyIDMyLjQ2OCAxMy44MzIgMzIuOTAzIDE0LjI2NSBDIDM4LjU0NiAxOS45MDYgMzguNTQ2IDI5LjA4NiAzMi45MDMgMzQuNzI4IEMgMzIuNjg5IDM0Ljk0NSAzMi40MDMgMzUuMDU1IDMyLjExNyAzNS4wNTUgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAxMDAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzIuMTE3IDM1LjA1NSBDIDMxLjgzMyAzNS4wNTUgMzEuNTQ5IDM0Ljk0NiAzMS4zMzMgMzQuNzI5IEMgMzAuODk2IDM0LjI5NSAzMC44OTYgMzMuNTkxIDMxLjMzMyAzMy4xNTggQyAzNi4xMDUgMjguMzgyIDM2LjEwNSAyMC42MTIgMzEuMzMzIDE1LjgzNyBDIDMwLjg5NiAxNS40MDMgMzAuODk2IDE0LjcwMiAzMS4zMzMgMTQuMjY1IEMgMzEuNzY2IDEzLjgzMiAzMi40NjggMTMuODMyIDMyLjkwMyAxNC4yNjUgQyAzOC41NDYgMTkuOTA2IDM4LjU0NiAyOS4wODYgMzIuOTAzIDM0LjcyOCBDIDMyLjY4OSAzNC45NDUgMzIuNDAzIDM1LjA1NSAzMi4xMTcgMzUuMDU1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAxNTAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzIuMTE3IDM1LjA1NSBDIDMxLjgzMyAzNS4wNTUgMzEuNTQ5IDM0Ljk0NiAzMS4zMzMgMzQuNzI5IEMgMzAuODk2IDM0LjI5NSAzMC44OTYgMzMuNTkxIDMxLjMzMyAzMy4xNTggQyAzNi4xMDUgMjguMzgyIDM2LjEwNSAyMC42MTIgMzEuMzMzIDE1LjgzNyBDIDMwLjg5NiAxNS40MDMgMzAuODk2IDE0LjcwMiAzMS4zMzMgMTQuMjY1IEMgMzEuNzY2IDEzLjgzMiAzMi40NjggMTMuODMyIDMyLjkwMyAxNC4yNjUgQyAzOC41NDYgMTkuOTA2IDM4LjU0NiAyOS4wODYgMzIuOTAzIDM0LjcyOCBDIDMyLjY4OSAzNC45NDUgMzIuNDAzIDM1LjA1NSAzMi4xMTcgMzUuMDU1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzOS4zMTQgNDUuMDU3IEMgMzkuMDI4IDQ1LjA1NyAzOC43NDQgNDQuOTQ4IDM4LjUyOCA0NC43MyBDIDM4LjA5MyA0NC4yOTcgMzguMDkzIDQzLjU5NSAzOC41MjggNDMuMTYgQyA0My4zNjkgMzguMzIxIDQ2LjAzNSAzMS44OSA0Ni4wMzUgMjUuMDU2IEMgNDYuMDM1IDE4LjIyIDQzLjM3IDExLjc4OCAzOC41MjggNi45NDggQyAzOC4wOTMgNi41MTQgMzguMDkzIDUuODEyIDM4LjUyOCA1LjM3OCBDIDM4Ljk2MyA0Ljk0NCAzOS42NjQgNC45NDQgNDAuMSA1LjM3OCBDIDQ1LjM2MSAxMC42MzcgNDguMjYgMTcuNjI1IDQ4LjI2IDI1LjA1NiBDIDQ4LjI2IDMyLjQ4NCA0NS4zNjEgMzkuNDczIDQwLjEgNDQuNzMxIEMgMzkuODgzIDQ0Ljk0OSAzOS41OTkgNDUuMDU4IDM5LjMxNSA0NS4wNTggWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAyMDAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzOS4zMTQgNDUuMDU3IEMgMzkuMDI4IDQ1LjA1NyAzOC43NDQgNDQuOTQ4IDM4LjUyOCA0NC43MyBDIDM4LjA5MyA0NC4yOTcgMzguMDkzIDQzLjU5NSAzOC41MjggNDMuMTYgQyA0My4zNjkgMzguMzIxIDQ2LjAzNSAzMS44OSA0Ni4wMzUgMjUuMDU2IEMgNDYuMDM1IDE4LjIyIDQzLjM3IDExLjc4OCAzOC41MjggNi45NDggQyAzOC4wOTMgNi41MTQgMzguMDkzIDUuODEyIDM4LjUyOCA1LjM3OCBDIDM4Ljk2MyA0Ljk0NCAzOS42NjQgNC45NDQgNDAuMSA1LjM3OCBDIDQ1LjM2MSAxMC42MzcgNDguMjYgMTcuNjI1IDQ4LjI2IDI1LjA1NiBDIDQ4LjI2IDMyLjQ4NCA0NS4zNjEgMzkuNDczIDQwLjEgNDQuNzMxIEMgMzkuODgzIDQ0Ljk0OSAzOS41OTkgNDUuMDU4IDM5LjMxNSA0NS4wNTggWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAyNTAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzkuMzE0IDQ1LjA1NyBDIDM5LjAyOCA0NS4wNTcgMzguNzQ0IDQ0Ljk0OCAzOC41MjggNDQuNzMgQyAzOC4wOTMgNDQuMjk3IDM4LjA5MyA0My41OTUgMzguNTI4IDQzLjE2IEMgNDMuMzY5IDM4LjMyMSA0Ni4wMzUgMzEuODkgNDYuMDM1IDI1LjA1NiBDIDQ2LjAzNSAxOC4yMiA0My4zNyAxMS43ODggMzguNTI4IDYuOTQ4IEMgMzguMDkzIDYuNTE0IDM4LjA5MyA1LjgxMiAzOC41MjggNS4zNzggQyAzOC45NjMgNC45NDQgMzkuNjY0IDQuOTQ0IDQwLjEgNS4zNzggQyA0NS4zNjEgMTAuNjM3IDQ4LjI2IDE3LjYyNSA0OC4yNiAyNS4wNTYgQyA0OC4yNiAzMi40ODQgNDUuMzYxIDM5LjQ3MyA0MC4xIDQ0LjczMSBDIDM5Ljg4MyA0NC45NDkgMzkuNTk5IDQ1LjA1OCAzOS4zMTUgNDUuMDU4IFoiIHN0eWxlPSIiLz4KICA8L2c+CiAgPGcgdHJhbnNmb3JtPSJtYXRyaXgoMSwgMCwgMCwgMSwgMzAwLCAwKSI+CiAgICA8cGF0aCBmaWxsPSIjZjk2OTBlIiBkPSJNIDExLjU4NSAxNi45NzYgTCAzLjcyOCAxNi45NzYgQyAyLjYyOSAxNi45NzYgMS43NDEgMTcuODY0IDEuNzQxIDE4Ljk2MyBMIDEuNzQxIDMxLjAzOSBDIDEuNzQxIDMyLjEzNCAyLjYyOSAzMy4wMjQgMy43MjggMzMuMDI0IEwgMTEuNTg1IDMzLjAyNCBDIDExLjkzOSAzMy4wMjQgMTIuMjg3IDMzLjExOSAxMi41OTIgMzMuMjk5IEwgMjUuMTggNDUuMDIgQyAyNi41MDQgNDUuNzk4IDI4LjE3NCA0NC44NDUgMjguMTc0IDQzLjMwOCBMIDI4LjE3NCA2LjY5MiBDIDI4LjE3NCA1LjE1NyAyNi41MDQgNC4yMDEgMjUuMTggNC45OCBMIDEyLjU5MyAxNi43IEMgMTIuMjg3IDE2Ljg3OSAxMS45NCAxNi45NzUgMTEuNTg1IDE2Ljk3NSBaIiBzdHlsZT0iIi8+CiAgPC9nPgo8L3N2Zz4="},63:function(e,t,n){"use strict";n.d(t,"d",(function(){return F})),n.d(t,"c",(function(){return Y})),n.d(t,"b",(function(){return K})),n.d(t,"a",(function(){return G}));var a=n(98),o=n(248),s=n(22),i=n(800),r=n(8),c=n(10),l=n(176),u=n(1),d=n(249),h=n(11),g=n(29),p=n(40),f=n(2);const m=async()=>{const e=Object(g.c)(),t=Object(p.g)(),n=Object(p.e)(),a=await e,o=await t,s=await n,i=window.location.href,r="hide"!==s.mtaAutoUnfold;return{config:a,profiles:o,activeProfile:s,selection:{word:Object(h.e)(),mouseX:0,mouseY:0,self:!1,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1},isTempDisabled:a.blacklist.some(([e])=>new RegExp(e).test(i))&&a.whitelist.every(([e])=>!new RegExp(e).test(i)),isQSPanel:Object(f.k)(),isQSFocus:a.qsFocus,withQssaPanel:!1,wordEditor:{isShow:!1,word:Object(h.e)(),translateCtx:!1},isShowBowl:!1,isShowDictPanel:Object(f.l)(),isShowMtaBox:r,isExpandMtaBox:r&&("once"===s.mtaAutoUnfold||"always"===s.mtaAutoUnfold||"popup"===s.mtaAutoUnfold&&Object(f.j)()),isExpandWaveformBox:!1,isPinned:a.defaultPinned,isFav:!1,bowlCoord:{x:0,y:0},dictPanelCoord:Object(f.h)()?{x:window.innerWidth-a.panelWidth-20,y:80}:{x:0,y:0},panelHeight:30,_panelHeightCache:{menubar:30,mtabox:0,dictlist:0,waveformbox:0,sum:30,floatHeight:0},panelMaxHeight:window.innerHeight*a.panelMaxHeightRatio/100,renderedDicts:[],userFoldedDicts:{},text:"",searchHistory:[],historyIndex:-1,dragStartCoord:null,lastPlayAudio:null}};var y=n(24);const b=(e,{payload:t})=>{const{activeProfile:n,searchHistory:a,historyIndex:o}=e;let s;const i=t&&t.noHistory?a:a.slice(0,o+1);let r=o;if(t&&t.word){s=t.word;const e=a[o];t.noHistory||e&&e.text===s.text||(i.push(s),r=i.length-1)}else s=a[o];return s?{...e,text:s.text,isShowDictPanel:!0,isExpandMtaBox:"always"===n.mtaAutoUnfold||"popup"===n.mtaAutoUnfold&&Object(f.j)(),searchHistory:i,historyIndex:r,renderedDicts:t&&t.id?e.renderedDicts.map(e=>e.id===t.id?{id:e.id,searchStatus:"SEARCHING",searchResult:null}:e):n.dicts.selected.filter(e=>{const t=n.dicts.all[e];if(Object(y.a)(t.selectionLang,s.text)){const e=Object(y.b)(s.text),{min:n,max:a}=t.selectionWC;return e>=n&&e<=a}return!1}).map(t=>({id:t,searchStatus:!Object(y.a)(n.dicts.all[t].defaultUnfold,s.text)||e.activeProfile.stickyFold&&e.userFoldedDicts[t]?"IDLE":"SEARCHING",searchResult:null}))}:e};const w=(e,{payload:t})=>{if(t.self)return e;const{config:n}=e,a={...e,selection:t};if(Object(f.h)())return a;if(t.word)if(t.force)a.dictPanelCoord={x:t.mouseX,y:t.mouseY};else if(!e.isPinned){const e=30,o=10;a.bowlCoord={x:t.mouseX+n.bowlOffsetX,y:t.mouseY+n.bowlOffsetY},a.bowlCoord.x<30?a.bowlCoord.x=30:a.bowlCoord.x+e+30+o>window.innerWidth&&(a.bowlCoord.x=window.innerWidth-e-o-30),a.bowlCoord.y<30?a.bowlCoord.y=30:a.bowlCoord.y+e+30>window.innerHeight&&(a.bowlCoord.y=window.innerHeight-e-30),a.dictPanelCoord={x:a.bowlCoord.x+e+10,y:a.bowlCoord.y},a.dictPanelCoord.x+a.config.panelWidth+20>window.innerWidth&&(a.dictPanelCoord.x=a.bowlCoord.x-10-a.config.panelWidth)}if(e.withQssaPanel&&n.qssaPageSel||Object(f.l)())return a;const o=n.active&&!e.isTempDisabled,{direct:s,holding:i,double:r,icon:c}=n.mode;return a.isShowDictPanel=Boolean(e.isPinned||o&&t.word&&t.word.text&&(e.isShowDictPanel||s||r&&t.dbClick||i.alt&&t.altKey||i.shift&&t.shiftKey||i.ctrl&&t.ctrlKey||i.meta&&t.metaKey||t.instant)||Object(f.l)()),a.isShowBowl=Boolean(o&&t.word&&t.word.text&&c&&!a.isShowDictPanel&&!s&&!(r&&t.dbClick)&&!(i.alt&&t.altKey)&&!(i.shift&&t.shiftKey)&&!(i.ctrl&&t.ctrlKey)&&!(i.meta&&t.metaKey)&&!t.instant&&!Object(f.l)()),a};const M=e=>{const{panelWidth:t,tripleCtrl:n,qsLocation:a}=e.config;if(!n||e.isShowDictPanel)return e;let o=10,s=10;switch(a){case"CENTER":o=(window.innerWidth-t)/2,s=.3*window.innerHeight;break;case"TOP":o=(window.innerWidth-t)/2,s=10;break;case"RIGHT":o=window.innerWidth-t-30,s=.3*window.innerHeight;break;case"BOTTOM":o=(window.innerWidth-t)/2,s=window.innerHeight-10;break;case"LEFT":o=10,s=.3*window.innerHeight;break;case"TOP_LEFT":o=10,s=10;break;case"TOP_RIGHT":o=window.innerWidth-t-30,s=10;break;case"BOTTOM_LEFT":o=10,s=window.innerHeight-10;break;case"BOTTOM_RIGHT":o=window.innerWidth-t-30,s=window.innerHeight-10}return{...e,isQSPanel:!0,isShowDictPanel:!0,dictPanelCoord:{x:o,y:s}}};const j={NEW_CONFIG:(e,{payload:t})=>{const n=window.location.href,a=window.innerHeight*t.panelMaxHeightRatio/100;return{...e,config:t,panelHeight:Math.min(e.panelHeight,a),panelMaxHeight:a,isQSFocus:t.qsFocus,isTempDisabled:t.blacklist.some(([e])=>new RegExp(e).test(n))&&t.whitelist.every(([e])=>!new RegExp(e).test(n))}},NEW_PROFILES:(e,{payload:t})=>({...e,profiles:t}),NEW_ACTIVE_PROFILE:(e,{payload:t})=>{const n="hide"!==t.mtaAutoUnfold;return{...e,activeProfile:t,isShowMtaBox:n,isExpandMtaBox:n&&("once"===t.mtaAutoUnfold||"always"===t.mtaAutoUnfold||"popup"===t.mtaAutoUnfold&&Object(f.j)()),renderedDicts:e.renderedDicts.filter(({id:e})=>t.dicts.selected.includes(e))}},NEW_SELECTION:w,WINDOW_RESIZE:e=>({...e,panelMaxHeight:window.innerHeight*e.config.panelMaxHeightRatio/100}),TEMP_DISABLED_STATE:(e,{payload:t})=>t?{...e,isTempDisabled:!0,isPinned:!1,isShowDictPanel:Object(f.l)(),isShowBowl:!1,isQSPanel:Object(f.k)()}:{...e,isTempDisabled:!1},BOWL_ACTIVATED:e=>({...e,isShowBowl:!1,isShowDictPanel:!0}),UPDATE_TEXT:(e,{payload:t})=>({...e,text:t}),TOGGLE_MTA_BOX:e=>({...e,isExpandMtaBox:!e.isExpandMtaBox}),TOGGLE_PIN:e=>({...e,isPinned:!e.isPinned}),TOGGLE_QS_FOCUS:e=>({...e,isQSFocus:!e.isQSFocus}),TOGGLE_WAVEFORM_BOX:e=>({...e,isExpandWaveformBox:!e.isExpandWaveformBox}),OPEN_PANEL:(e,{payload:t})=>Object(f.l)()?e:{...e,isShowDictPanel:!0,dictPanelCoord:{x:t.x,y:t.y}},CLOSE_PANEL:e=>Object(f.l)()?e:{...e,isPinned:!1,isShowBowl:!1,isShowDictPanel:!1,isQSPanel:Object(f.k)()},SWITCH_HISTORY:(e,{payload:t})=>{const n=Math.min(Math.max(0,e.historyIndex+("prev"===t?-1:1)),e.searchHistory.length-1);return{...e,historyIndex:n,text:e.searchHistory[n]?e.searchHistory[n].text:e.text}},WORD_IN_NOTEBOOK:(e,{payload:t})=>({...e,isFav:t}),ADD_TO_NOTEBOOK:e=>e.config.editOnFav&&!Object(f.l)()?e:{...e,isFav:!0},SEARCH_START:b,SEARCH_END:(e,{payload:t})=>e.renderedDicts.every(({id:e})=>e!==t.id)?e:{...e,renderedDicts:e.renderedDicts.map(e=>e.id===t.id?{id:e.id,searchStatus:"FINISH",searchResult:t.result,catalog:t.catalog}:e)},UPDATE_PANEL_HEIGHT:(e,{payload:t})=>{const{_panelHeightCache:n}=e,a=n.sum-n[t.area]+t.height,o=null==t.floatHeight?n.floatHeight:t.floatHeight;return{...e,panelHeight:Math.min(Math.max(a,o),e.panelMaxHeight),_panelHeightCache:{...n,[t.area]:t.height,sum:a,floatHeight:o}}},USER_FOLD_DICT:(e,{payload:t})=>({...e,userFoldedDicts:{...e.userFoldedDicts,[t.id]:t.fold}}),DRAG_START_COORD:(e,{payload:t})=>({...e,dragStartCoord:t}),SUMMONED_PANEL_INIT:(e,{payload:t})=>({...e,text:t,historyIndex:0,isShowDictPanel:!0,isShowBowl:!1}),QS_PANEL_CHANGED:(e,{payload:t})=>e.withQssaPanel===t?e:t&&e.config.qssaPageSel?{...e,withQssaPanel:t,isPinned:!1,isShowDictPanel:Object(f.j)()||!!Object(f.h)()&&e.isShowDictPanel,isShowBowl:!1,isQSPanel:!1}:{...e,withQssaPanel:t,isQSPanel:Object(f.k)()},OPEN_QS_PANEL:M,WORD_EDITOR_STATUS:(e,{payload:{word:t,translateCtx:n}})=>t?{...e,wordEditor:{isShow:!0,word:t,translateCtx:!!n},dictPanelCoord:{x:50,y:.2*window.innerHeight}}:{...e,wordEditor:{isShow:!1,word:e.wordEditor.word,translateCtx:!1}},PLAY_AUDIO:(e,{payload:t})=>({...e,lastPlayAudio:t})};var O=n(46);const N=(e,t)=>{window.addEventListener("resize",()=>{e({type:"WINDOW_RESIZE"})}),Object(g.a)(({newConfig:n})=>{n.active!==t().config.active&&u.a.send({type:"SEND_TAB_BADGE_INFO",payload:{active:n.active,tempDisable:t().isTempDisabled,unsupported:!Object(f.l)()&&"BODY"!==document.body.tagName}}),e({type:"NEW_CONFIG",payload:n})}),Object(p.a)(({newProfile:t})=>{e({type:"NEW_ACTIVE_PROFILE",payload:t})}),Object(p.d)().subscribe(t=>{e({type:"NEW_PROFILES",payload:t})}),u.a.addListener(n=>{switch(n.type){case"TEMP_DISABLED_STATE":return"set"===n.payload.op?(e({type:"TEMP_DISABLED_STATE",payload:n.payload.value}),setTimeout(()=>{const e=t();u.a.send({type:"SEND_TAB_BADGE_INFO",payload:{active:e.config.active,tempDisable:e.isTempDisabled,unsupported:!Object(f.l)()&&"BODY"!==document.body.tagName}})},0),Promise.resolve(!0)):Promise.resolve(t().isTempDisabled);case"SEARCH_TEXT_BOX":{var a;const{searchHistory:n,historyIndex:o,text:s}=t();return e({type:"SEARCH_START",payload:{word:(null===(a=n[o])||void 0===a?void 0:a.text)===s?n[o]:Object(h.e)({text:s,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}}),Object(f.j)()?Promise.resolve(!0):Promise.resolve()}case"WORD_SAVED":{const{text:n}=t();n&&u.a.send({type:"IS_IN_NOTEBOOK",payload:Object(h.e)({text:n})}).then(t=>{e({type:"WORD_IN_NOTEBOOK",payload:t})});break}case"ADD_NOTEBOOK":return n.payload.popup===Object(f.j)()?(e({type:"ADD_TO_NOTEBOOK"}),Promise.resolve(!0)):void 0;case"SWITCH_HISTORY":return e({type:"SWITCH_HISTORY",payload:n.payload}),Promise.resolve(!0);case"QS_PANEL_SEARCH_TEXT":return Object(f.k)()&&(e({type:"SEARCH_START",payload:{word:n.payload}}),t().isQSFocus&&u.a.send({type:"OPEN_QS_PANEL"})),Promise.resolve();case"QS_PANEL_CHANGED":return Object(f.k)()||e({type:"QS_PANEL_CHANGED",payload:n.payload}),Promise.resolve();case"QS_PANEL_FOCUSED":if(Object(f.k)()){const e=document.querySelector(t().isExpandMtaBox?".mtaBox-TextArea":".menuBar-SearchBox");e&&(e.focus(),e.select())}return Promise.resolve();case"GET_TAB_BADGE_INFO":{const e=t();return Promise.resolve({active:e.config.active,tempDisable:e.isTempDisabled,unsupported:!Object(f.l)()&&"BODY"!==document.body.tagName})}}});let n=0;u.a.self.addListener(a=>{switch(a.type){case"SELECTION":if(a.payload.instant)n=Date.now();else if(Date.now()-n<500)return Promise.resolve();return e({type:"NEW_SELECTION",payload:a.payload}),Promise.resolve();case"ESCAPE_KEY":return e({type:"CLOSE_PANEL"}),Promise.resolve();case"SEARCH_TEXT":return e({type:"SEARCH_START",payload:{word:a.payload}}),Promise.resolve();case"CLOSE_PANEL":return e({type:"CLOSE_PANEL"}),Promise.resolve();case"TRIPLE_CTRL":if(!Object(f.j)()&&!Object(f.h)()){const n=t();n.config.tripleCtrl&&(n.config.qsStandalone?u.a.send({type:"OPEN_QS_PANEL"}):n.isShowDictPanel||(e({type:"OPEN_QS_PANEL"}),async function(e,t){let n=null;"selection"===t.config.qsPreload?t.selection.word&&(n=t.selection.word):"clipboard"===t.config.qsPreload&&(n=Object(h.e)({text:await u.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&t.config.qsAuto?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,n)))}return Promise.resolve();case"UPDATE_WORD_EDITOR_WORD":return e({type:"WORD_EDITOR_STATUS",payload:a.payload}),Object(O.d)(100).then(()=>{e({type:"SEARCH_START",payload:{word:a.payload.word}})});case"LAST_PLAY_AUDIO":return Promise.resolve(t().lastPlayAudio)}}),Object(f.j)()?async function(e,t){let n=null;if("selection"===t.config.baPreload){const e=(await browser.tabs.query({active:!0,currentWindow:!0}))[0];e&&null!=e.id&&(n=await u.a.send(e.id,{type:"PRELOAD_SELECTION"}))}else"clipboard"===t.config.baPreload&&(n=Object(h.e)({text:await u.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&t.config.baAuto?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,t()):Object(f.k)()?async function(e,t){let n=null;const{searchParams:a}=new URL(document.URL);a.get("sidebar")||e({type:"TOGGLE_PIN"});const o=a.get("word");if(o)try{n=JSON.parse(decodeURIComponent(o))}catch(e){!1,n=null}if(!n)if("selection"===t.config.qsPreload){const e=Number(a.get("lastTab"));e&&(n=await u.a.send(e,{type:"PRELOAD_SELECTION"}))}else"clipboard"===t.config.qsPreload&&(n=Object(h.e)({text:await u.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&(t.config.qsAuto||o)?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,t()):u.a.send({type:"QUERY_QS_PANEL"}).then(t=>e({type:"QS_PANEL_CHANGED",payload:t}))};var I=n(767),C=n(118),D=n(96),z=n(64),A=n(83),E=n(768),T=n(145),x=n(38);const L=n(363).a;var S=n(108),v=n(720),k=n(801),_=n(634),P=n(766),W=n(104);var U=(e,t)=>e.pipe(L("SEARCH_START"),Object(S.a)(({payload:e})=>{const{config:n,searchHistory:a,historyIndex:o,renderedDicts:s}=t.value,i=a[o];!n.searchHistory||Object(f.f)()&&!Object(f.l)()||browser.extension.inIncognitoContext&&!n.searchHistoryInco||!(o<=0||a[o-1].text!==i.text||a[o-1].context!==i.context)||Object(h.f)("history",i);const r=new Set;for(const e of s)"SEARCHING"===e.searchStatus&&r.add(e.id);const{cn:l,en:d,machine:g}=n.autopron;l.dict&&r.add(l.dict),d.dict&&r.add(d.dict),g.dict&&r.add(g.dict);const p=Object(W.a)(...[...r].map(t=>u.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:i.text,payload:e&&e.payload?{isPDF:Object(f.i)(),...e.payload}:{isPDF:Object(f.i)()}}}).catch(()=>({id:t,result:null})))).pipe(Object(v.a)()),m=e&&e.id?C.a:p.pipe(Object(x.a)(({id:e,audio:t,result:n})=>!!t&&(!(e!==l.dict||!t.py)||(!(e!==d.dict||!t.uk&&!t.us)||e===g.dict&&!!n[g.src].tts))),Object(k.a)(1),Object(_.a)(({id:e,audio:t,result:n})=>{if(e===l.dict)return u.a.send({type:"PLAY_AUDIO",payload:t.py});if(e===d.dict){const e="us"===d.accent?t.us||t.uk:t.uk||t.us;return u.a.send({type:"PLAY_AUDIO",payload:e})}u.a.send({type:"PLAY_AUDIO",payload:n[g.src].tts})}),Object(P.a)(C.a));return Object(W.a)(Object(z.a)(Object(h.d)(i).catch(()=>!1)).pipe(Object(c.a)(e=>({type:"WORD_IN_NOTEBOOK",payload:e}))),p.pipe(Object(c.a)(({id:e,result:t,catalog:n})=>({type:"SEARCH_END",payload:{id:e,result:t,catalog:n}}))),m)}));var B=(e,t)=>e.pipe(L("NEW_SELECTION"),Object(S.a)(({payload:e})=>{const{config:n,withQssaPanel:a,isShowDictPanel:o,isPinned:s}=t.value;if(e.self)return function(e,t){const{direct:n,double:a,holding:o}=e.panelMode;if(t.word&&t.word.text&&(t.instant||n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey))return Object(D.a)({type:"SEARCH_START",payload:{word:{...t.word,title:"Saladict Panel",favicon:"https://saladict.crimx.com/favicon.ico"}}});return C.a}(n,e);if(Object(f.h)())return C.a;if(a&&n.qssaPageSel)return function(e,t){const{direct:n,double:a,holding:o}=e.qsPanelMode;t.word&&t.word.text&&(t.instant||n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey)&&u.a.send({type:"QS_PANEL_SEARCH_TEXT",payload:t.word});return C.a}(n,e);if(Object(f.l)())return C.a;const{pinMode:i}=n;return o&&e.word&&e.word.text&&(!s||i.direct||i.double&&e.dbClick||i.holding.alt&&e.altKey||i.holding.shift&&e.shiftKey||i.holding.ctrl&&e.ctrlKey||i.holding.meta&&e.metaKey)?Object(D.a)({type:"SEARCH_START",payload:{word:e.word}}):C.a}));var R=n(80);const H=Object(I.a)((e,t)=>e.pipe(L("BOWL_ACTIVATED"),Object(c.a)(()=>t.value.selection.word?{type:"SEARCH_START",payload:{word:t.value.selection.word}}:{type:"SEARCH_START"})),(e,t)=>e.pipe(L("SWITCH_HISTORY"),Object(A.a)({type:"SEARCH_START",payload:{noHistory:!0}})),(e,t)=>t.pipe(Object(c.a)(e=>e.isShowDictPanel),Object(E.a)(),Object(T.a)(([e,t])=>(e&&!t&&u.a.send({type:"STOP_AUDIO"}),C.a))),(e,t)=>e.pipe(L("ADD_TO_NOTEBOOK"),Object(T.a)(()=>{if(t.value.config.editOnFav){const e=t.value.searchHistory[t.value.historyIndex];if(Object(f.j)()||Object(f.l)()){const{width:t,height:n}=window.screen,a=Math.round(Math.min(Math.max(t,440),640)),o=Math.round(Math.min(n-150,800));let s="";try{s=encodeURIComponent(JSON.stringify(e))}catch(e){console.warn(e)}return browser.windows.create({type:"popup",url:browser.runtime.getURL("word-editor.html?word="+s),top:Math.round((n-o)/2),left:Math.round((t-a)/2),width:a,height:o}).catch(e=>{console.warn(e)}),C.a}return Object(D.a)({type:"WORD_EDITOR_STATUS",payload:{word:e,translateCtx:!0}})}return Object(z.a)((async()=>{const e=t.value.searchHistory[t.value.searchHistory.length-1];if(e)try{return e.trans=Object(R.a)(e.trans,await Object(R.d)(e.context||e.text,t.value.config.ctxTrans)),await Object(h.f)("notebook",e),!0}catch(e){return console.warn(e),!1}return!1})()).pipe(Object(x.a)(e=>!e),Object(A.a)({type:"WORD_IN_NOTEBOOK",payload:!1}))})),B,U);const Q=Object(i.a)(),F=s.f,Y=s.e,K=s.d,G=async()=>{const e=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||a.c,t=Object(a.d)(await(async()=>Object(d.createReducer)(await m(),j))(),e(Object(a.a)(o.a,Q)));Q.run(H),N(t.dispatch,t.getState);async function n(){return t.getState().isPinned}return new r.a(e=>{t.subscribe(()=>e.next(t.getState()))}).pipe(Object(c.a)(e=>e.isPinned),Object(l.a)()).subscribe(e=>{u.a.self.send({type:"PIN_STATE",payload:e})}),u.a.addListener("QUERY_PIN_STATE",n),u.a.self.addListener("QUERY_PIN_STATE",n),t}},74:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var a=n(113),o=n(81);const s=function(e){return{version:1,id:e||Object(a.a)(),mtaAutoUnfold:"",waveform:!0,stickyFold:!1,dicts:{selected:["bing","cobuild","cambridge","youdao","urban","vocabulary","google","zdic","guoyu","liangan","googledict"],all:Object(o.b)()}}};function i(e){return{id:e||Object(a.a)(),name:"%%_default_%%"}}function r(){const e=i(),t=s(e.id),n=function(){const e=i();e.name="%%_sentence_%%";const t=s(e.id);t.dicts.selected=["jukuu","bing","cnki","renren","eudic","cobuild","cambridge","longman","macmillan"];const n=t.dicts.all;return n.bing.options.tense=!1,n.bing.options.phsym=!1,n.bing.options.cdef=!1,n.bing.options.related=!1,n.bing.options.sentence=9999,n.cnki.options.dict=!1,n.eudic.options.resultnum=9999,n.macmillan.options.related=!1,n.longman.options.wordfams=!1,n.longman.options.collocations=!1,n.longman.options.grammar=!1,n.longman.options.thesaurus=!1,n.longman.options.examples=!0,n.longman.options.bussinessFirst=!1,n.longman.options.related=!1,{idItem:e,profile:t}}(),a=function(){const e=i();e.name="%%_translation_%%";const t=s(e.id);return t.dicts.selected=["google","tencent","baidu","caiyun","youdaotrans","zdic","guoyu","liangan"],t.mtaAutoUnfold="always",{idItem:e,profile:t}}(),o=function(){const e=i();e.name="%%_scholar_%%";const t=s(e.id);t.dicts.selected=["googledict","cambridge","cobuild","etymonline","cnki","macmillan","lexico","websterlearner","google","youdaotrans","zdic","guoyu","liangan"];const n=t.dicts.all;return n.macmillan.defaultUnfold={matchAll:!1,english:!1,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1},n.lexico.defaultUnfold={matchAll:!1,english:!1,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1},n.websterlearner.defaultUnfold={matchAll:!1,english:!1,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1},n.google.selectionWC.min=5,n.youdaotrans.selectionWC.min=5,{idItem:e,profile:t}}(),r=function(){const e=i();e.name="%%_nihongo_%%";const t=s(e.id);return t.dicts.selected=["mojidict","hjdict","weblioejje","weblio","google","tencent","caiyun","googledict","wikipedia"],t.dicts.all.wikipedia.options.lang="ja",t.waveform=!1,{idItem:e,profile:t}}();return{profileIDList:[e,n.idItem,a.idItem,o.idItem,r.idItem],profiles:[t,n.profile,a.profile,o.profile,r.profile]}}},756:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var a=n(0),o=n.n(a),s=n(22),i=n(4),r=n.n(i),c=n(2),l=n(133);const u=e=>{const t=Object(a.useRef)(null);return o.a.createElement("div",{className:r()("dictPanel-FloatBox-Container",{isAnimate:e.withAnimation,darkMode:e.darkMode})},o.a.createElement("div",{ref:t,className:"saladict-theme"},e.panelCSS?o.a.createElement("style",null,e.panelCSS):null,o.a.createElement("div",{className:"dictPanel-Root "+c.b,style:{width:e.width,height:e.height,"--panel-width":e.width,"--panel-max-height":e.height,"--panel-font-size":e.fontSize+"px"}},o.a.createElement("div",{className:"dictPanel-Head"},e.menuBar),o.a.createElement(l.b.Provider,{value:t},o.a.createElement("div",{className:"dictPanel-Body fancy-scrollbar"},e.mtaBox,e.dictList)),e.waveformBox)))};var d=n(364),h=n(367),g=n(365),p=n(368);const f=o.a.createElement(d.a,null),m=o.a.createElement(g.a,null),y=o.a.createElement(p.a,null),b=Object(s.b)((e,t)=>({withAnimation:e.config.animation,darkMode:e.config.darkMode,panelCSS:e.config.panelCSS,fontSize:e.config.fontSize,menuBar:f,mtaBox:e.isShowMtaBox?o.a.createElement(h.a,null):null,dictList:m,waveformBox:y,width:t.width,height:t.height}))(u)},78:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(165),o=n(166),s=n(167),i=n(168),r=n(169);const c={baidu:a.auth,caiyun:o.auth,sogou:s.auth,tencent:i.auth,youdaotrans:r.auth};var l=n(2);const u=browser.i18n.getUILanguage(),d="zh-CN"===u?"zh-CN":"zh-TW"===u||"zh-HK"===u?"zh-TW":"en",h=function(){return{version:14,active:!0,runInBg:!1,analytics:!0,updateCheck:!0,noTypeField:!1,animation:!0,langCode:d,panelWidth:450,panelMaxHeightRatio:80,bowlOffsetX:15,bowlOffsetY:-45,darkMode:!1,panelCSS:"",fontSize:13,pdfSniff:!1,pdfStandalone:"",pdfWhitelist:[],pdfBlacklist:[["^(http|https)://[^/]*?cnki\\.net(/.*)?$","*://*.cnki.net/*"],["^(http|https)://[^/]*?googleusercontent\\.com(/.*)?$","*://*.googleusercontent.com/*"],["^(http|https)://sh-download\\.weiyun\\.com(/.*)?$","*://sh-download.weiyun.com/*"]],searchHistory:!1,searchHistoryInco:!1,editOnFav:!0,searchSuggests:!0,touchMode:!1,mode:{icon:!0,direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},pinMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},panelMode:{direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},qsPanelMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!0,meta:!1},instant:{enable:!1,key:"alt",delay:600}},bowlHover:!0,doubleClickDelay:450,tripleCtrl:!0,qsPreload:"clipboard",qsAuto:!0,qsLocation:"CENTER",qsFocus:!0,defaultPinned:!1,qsStandalone:!0,qssaHeight:600,qssaSidebar:"",qssaPageSel:!0,qssaRectMemo:!1,baWidth:-1,baHeight:550,baPreload:"selection",baAuto:!1,baOpen:"popup_panel",ctxTrans:{google:!0,youdaotrans:!0,baidu:!0,tencent:!1,caiyun:!1,sogou:!1},language:{chinese:!0,english:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},autopron:{cn:{dict:"",list:["zdic","guoyu"]},en:{dict:"",list:["bing","cambridge","cobuild","eudic","longman","macmillan","lexico","urban","websterlearner","youdao"],accent:"uk"},machine:{dict:"",list:["google","sogou","tencent","baidu","caiyun"],src:"trans"}},whitelist:[],blacklist:[["^https://stackedit\\.io(/.*)?$","https://stackedit.io/*"],["^https://docs\\.google\\.com(/.*)?$","https://docs.google.com/*"],["^https://docs\\.qq\\.com(/.*)?$","https://docs.qq.com/*"]],contextMenus:{selected:l.c||!d.startsWith("zh-")?["view_as_pdf","google_translate","saladict"]:["view_as_pdf","caiyuntrs","google_translate","saladict"],all:{baidu_page_translate:"x",baidu_search:"https://www.baidu.com/s?ie=utf-8&wd=%s",bing_dict:"https://cn.bing.com/dict/?q=%s",bing_search:"https://www.bing.com/search?q=%s",caiyuntrs:"x",cambridge:"http://dictionary.cambridge.org/spellcheck/english-chinese-simplified/?q=%s",copy_pdf_url:"x",dictcn:"https://dict.eudic.net/dicts/en/%s",etymonline:"http://www.etymonline.com/index.php?search=%s",google_cn_page_translate:"x",google_page_translate:"x",google_search:"https://www.google.com/#newwindow=1&q=%s",google_translate:"https://translate.google.com/#auto/zh-CN/%s",google_cn_translate:"https://translate.google.cn/#auto/zh-CN/%s",guoyu:"https://www.moedict.tw/%s",iciba:"http://www.iciba.com/%s",liangan:"https://www.moedict.tw/~%s",longman_business:"http://www.ldoceonline.com/search/?q=%s",merriam_webster:"http://www.merriam-webster.com/dictionary/%s",microsoft_page_translate:"x",oxford:"http://www.oxforddictionaries.com/us/definition/english/%s",saladict:"x",saladict_standalone:"x",sogou_page_translate:"x",sogou:"https://fanyi.sogou.com/#auto/zh-CHS/%s",termonline:"https://www.termonline.cn/list.htm?k=%s",view_as_pdf:"x",youdao_page_translate:"x",youdao:"http://dict.youdao.com/w/%s",youglish:"https://youglish.com/search/%s"}},showedDictAuth:!1,dictAuth:JSON.parse(JSON.stringify(c))}}},80:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return c}));var a=n(1),o=n(2);async function s(e,t){try{const n=await a.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:e,payload:{isPDF:Object(o.i)()}}});return n&&n.result&&n.result.trans&&n.result.trans.paragraphs.join("\n")||""}catch(e){return""}}async function i(e,t){return(await Promise.all(Object.keys(t).map(async n=>{let a="";if(t[n])try{a=await s(e,n)}catch(e){console.warn(e)}return{id:n,content:a}}))).reduce((e,{id:t,content:n})=>(e[t]=n,e),{})}function r(e){const t=/\[:: (\w+) ::\]\n([\s\S]+?)(?=(?:\[:: \w+ ::\])|(?:-{15}))/g;let n;const a={};for(;null!==(n=t.exec(e));)a[n[1]]=n[2].replace(/\n+$/g,"");return a}function c(e,t){const n=Object.keys(t).filter(e=>t[e]);if(n.length<=0)return e;const a=n.map(e=>`[:: ${e} ::]\n`+t[e]).join("\n\n")+`\n${"".padEnd(15,"-")}\n`;if(!e)return a;const o=/\[:: (\w+) ::\]\n([\s\S]+?)-{15}/;return o.test(e)?e.replace(o,a):e+"\n\n"+a}},81:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var a=n(17);const o={baidu:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{},{}),bing:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{tense:!0,phsym:!0,cdef:!0,related:!0,sentence:4}},caiyun:Object(a.b)(["zh-CN","en","ja"],{lang:"11010000"},{},{}),cambridge:{lang:"11100000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{lang:"default",related:!0},options_sel:{lang:["default","en","en-chs","en-chz"]}},cnki:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:100},options:{dict:!0,senbi:!0,seneng:!0}},cobuild:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:5},options:{cibaFirst:(browser.i18n.getUILanguage()||"en").startsWith("zh-")}},etymonline:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{resultnum:4,chart:!0}},eudic:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:10}},google:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{cnfirst:!0,concurrent:!1},{}),googledict:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{enresult:!0}},guoyu:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!0}},hjdict:{lang:"10011111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:10},options:{related:!0,chsas:"jp/jc",engas:"w",uas:"fr",aas:"fr",eas:"fr"},options_sel:{chsas:["jp/cj","jp/jc","kr","w","fr","de","es"],engas:["w","fr","de","es"],uas:["fr","de","es"],aas:["fr","de"],eas:["fr","es"]}},jikipedia:{lang:"01000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:380,selectionWC:{min:1,max:5},options:{resultnum:4}},jukuu:{lang:"11010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:99999},options:{lang:"zheng"},options_sel:{lang:["zheng","engjp","zhjp"]}},lexico:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{related:!0}},liangan:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!1}},longman:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{wordfams:!1,collocations:!0,grammar:!0,thesaurus:!0,examples:!0,bussinessFirst:!0,related:!0}},macmillan:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:5},options:{related:!0,locale:"uk"},options_sel:{locale:["uk","us"]}},mojidict:{lang:"10010000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5}},naver:{lang:"01011000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!0,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:10},options:{hanAsJa:!1,korAsJa:!1}},renren:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},sogou:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru"],{},{},{}),tencent:Object(a.b)(["zh-CN","en","ja","ko","fr","de","es","ru"],{lang:"11011111"},{},{}),urban:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},vocabulary:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5}},weblio:{lang:"00010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:20}},weblioejje:{lang:"10010000",selectionLang:{english:!0,chinese:!1,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},websterlearner:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{defs:!0,phrase:!0,derived:!0,arts:!0,related:!0}},wikipedia:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:420,selectionWC:{min:1,max:999999999999999},options:{lang:"auto"},options_sel:{lang:["auto","zh","zh-cn","zh-tw","zh-hk","en","ja","fr","de"]}},youdao:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:999999999999999},options:{basic:!0,collins:!0,discrimination:!0,sentence:!0,translation:!1,related:!0}},youdaotrans:Object(a.b)(["zh-CN","en","pt","es","ja","ko","fr","ru"],{lang:"11011111"},{},{}),zdic:{lang:"01000000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:5},options:{audio:!1}}},s=()=>JSON.parse(JSON.stringify(o))},87:function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return y}));var a=n(38),o=n(10),s=n(108),i=n(180),r=n(371),c=n(145),l=n(499),u=n(83),d=n(96),h=n(64);function g(e){return e.pipe(Object(a.a)(e=>!(e.relatedTarget===e.currentTarget||e.relatedTarget instanceof Node&&e.currentTarget.contains(e.relatedTarget))),Object(o.a)(e=>"mouseover"===e.type))}function p(e){return g(e).pipe(Object(s.a)(e=>Object(d.a)(e).pipe(Object(i.a)(e?500:100))))}function f(e){return e.pipe(Object(o.a)(e=>"blur"!==e.type),Object(r.a)(100))}function m(e,t){return n=>n.pipe(Object(c.a)(o=>Object(h.a)(t(o)).pipe(Object(l.a)(n.pipe(Object(a.a)(t=>t[e]===o[e]))))))}function y(e){return Object(u.a)(!0)(e)}},9:function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return p})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return m}));var a=n(0),o=n.n(a),s=n(134),i=n.n(s),r=n(12),c=n(29),l=n(217),u=n.n(l);async function d(){if(r.a.language)return r.a;const{langCode:e}=await Object(c.c)();return await r.a.use({type:"backend",init:()=>{},create:()=>{},read:async(e,t,a)=>{try{if("dicts"===t){const t=function(e){const t=n(260);return t.keys().reduce((n,a)=>{const o=t(a),s=o.locales||o,r=/([^/]+)\/_locales\.(json|ts)$/.exec(a)[1];return n[r]={name:s.name[e]},s.options&&(n[r].options=i()(s.options,t=>t[e])),s.helps&&(n[r].helps=i()(s.helps,t=>t[e])),n},{})}(e);return a(null,t),t}if("sync"===t){const t=function(e){const t=n(294);return t.keys().reduce((n,a)=>{const o=new RegExp(`/([^/]+)/_locales/${e}\\.ts$`).exec(a);if(o){const e=t(a);n[o[1]]=e.locale||e}return n},{})}(e);return a(null,t),t}const{locale:o}=await n(259)(`./${e}/${t}.ts`);return a(null,o),o}catch(e){a(e)}}}).init({lng:e,fallbackLng:!1,whitelist:["en","zh-CN","zh-TW"],debug:!1,saveMissing:!1,load:"currentOnly",ns:"common",defaultNS:"common",interpolation:{escapeValue:!1}}),Object(c.a)(({newConfig:e})=>{r.a.language!==e.langCode&&r.a.changeLanguage(e.langCode)}),r.a}const h=()=>"",g=o.a.createContext(void 0);const p=({children:e})=>{const[t,n]=Object(a.useState)(void 0);return Object(a.useLayoutEffect)(()=>{const e=()=>{n(r.a.language)};return r.a.language||d().then(()=>{n(r.a.language),r.a.on("languageChanged",e)}),()=>{r.a.off("languageChanged",e)}},[]),o.a.createElement(g.Provider,{value:t},e)};function f(e){const t=Object(a.useRef)(0),n=Object(a.useRef)(h),o=Object(a.useRef)((...e)=>n.current(...e)),s=Object(a.useContext)(g),i=(e,a)=>{e&&(n.current=e),a&&(t.current=(t.current+1)%1e5);return{t:o.current,i18n:r.a,ready:!!a&&t.current}},[c,l]=Object(a.useState)(()=>s?e?(Array.isArray(e)?e.every(e=>r.a.hasResourceBundle(s,e)):r.a.hasResourceBundle(s,e))?i(r.a.getFixedT(s,e),!0):i(h,!1):i(r.a.t,!0):i(h,!1));return Object(a.useLayoutEffect)(()=>{let t=!0;return s&&(e?(Array.isArray(e)?e.every(e=>r.a.hasResourceBundle(s,e)):r.a.hasResourceBundle(s,e))?l(i(r.a.getFixedT(s,e),!0)):(l(i(null,!1)),r.a.loadNamespaces(e).then(()=>{t&&l(i(r.a.getFixedT(s,e),!0))})):l(i(r.a.t,!0))),()=>{t=!1}},[s]),c}const m=o.a.memo(({message:e,children:t})=>e?o.a.createElement(a.Fragment,null,u()(e.split(/{[^}]*?}/),Array.isArray(t)?t:[t])):null)}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/7.c561d54f.js b/plugins/saladict-ztools/ext-saladic/assets/7.c561d54f.js new file mode 100644 index 00000000..76c1345e --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/7.c561d54f.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[7],{1:function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var a=n(81),o=n(39),r=n(10);const i=()=>{},s=new WeakMap,c=new WeakMap,l=new WeakMap,u={sync:{clear:g,remove:p,get:f,set:m,addListener:y,removeListener:b,createStream:w,get __storageArea__(){return"sync"}},local:{clear:g,remove:p,get:f,set:m,addListener:y,removeListener:b,createStream:w,get __storageArea__(){return"local"}},clear:g,addListener:y,removeListener:b,createStream:w,get __storageArea__(){return"all"}},d={send:N,addListener:I,removeListener:C,createStream:D,get __self__(){return!1},self:{initClient:E,initServer:function(){window.pageId="background page";const e=/^\[\[(.+)\]\]$/;browser.runtime.onMessage.addListener((t,n)=>{if(!t||!t.type)return;if("PAGE_INFO"===t.type)return Promise.resolve(function(e){const t={pageId:"",faviconURL:"",pageTitle:"",pageURL:""},n=e.tab;n?(t.pageId=n.id||"",n.favIconUrl&&(t.faviconURL=n.favIconUrl),n.url&&(t.pageURL=n.url),n.title&&(t.pageTitle=n.title)):(t.pageId="popup",e.url&&!e.url.startsWith("http")&&(t.faviconURL="https://saladict.crimx.com/favicon.ico"));return t}(n));const a=e.exec(t.type);if(a){t.type=a[1];const e=n.tab&&n.tab.id;return e?N(e,t):N(t)}})},send:async function e(t){const n=M("message.self.send",e);try{return void 0===window.pageId&&await E(),browser.runtime.sendMessage(Object.assign({},t,{__pageId__:window.pageId,type:`[[${t.type}]]`})).then(e=>j("message.self.send",[t],e,n)).catch(e=>{throw O("message.self.send",[t],e,n)})}catch(e){throw O("message.self.send",[t],e,n)}},addListener:I,removeListener:C,createStream:D,get __self__(){return!0}}};async function h(e,t){const n="string"==typeof e?{url:e,self:t}:e,a=!1!==n.unique,o=n.self?browser.runtime.getURL(n.url):n.url;if(a){const e=await browser.tabs.query({url:o}).catch(()=>[]);if(e.length>0){const{index:t,windowId:n}=e[0];return"function"==typeof browser.tabs.highlight&&await browser.tabs.highlight({tabs:t,windowId:n}),void await browser.windows.update(n,{focused:!0})}}await browser.tabs.create({url:o,active:!1!==n.active})}function g(){return"all"===this.__storageArea__?Promise.all([browser.storage.local.clear(),browser.storage.sync.clear()]).then(i):browser.storage[this.__storageArea__].clear()}function p(e){return browser.storage[this.__storageArea__].remove(e)}function f(...e){return browser.storage[this.__storageArea__].get(...e)}function m(e){return browser.storage[this.__storageArea__].set(e)}function y(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}let a=l.get(n);a||(a=new Map,l.set(n,a));const o=this.__storageArea__+t;let r=a.get(o);return r||(r=(e,a)=>{"all"!==this.__storageArea__&&a!==this.__storageArea__||t&&!(t in e)||n(e,a)},a.set(o,r)),browser.storage.onChanged.addListener(r)}function b(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}const a=l.get(n);if(a){if(!t)return a.forEach(e=>{browser.storage.onChanged.removeListener(e)}),void l.delete(n);{const e=this.__storageArea__+t,o=a.get(e);if(o)return browser.storage.onChanged.removeListener(o),a.delete(e),void(a.size<=0&&l.delete(n))}}browser.storage.onChanged.removeListener(n)}function w(e){if(!e)throw new Error("Missing key");return Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)).pipe(Object(o.a)(t=>Object.prototype.hasOwnProperty.call(Array.isArray(t)?t[0]:t,e)),Object(r.a)(t=>Array.isArray(t)?t[0][e]:t[e]))}function M(e,t){const n=new Error(`[${e}] call stack`),a=Error.captureStackTrace;return a&&a(n,t),n}function O(e,t,n,a){const o=n&&"object"==typeof n&&n.runtimeLastError instanceof Error?n.runtimeLastError:n instanceof Error?n:new Error(String(n||"Unknown error")),r=1===t.length?t[0]:t[1],i=1===t.length?"runtime":"tab "+t[0],s=new Error(`[${e}] runtime.lastError while sending "${r.type}" to ${i}: ${o.message}`);return s.name="MessageRuntimeError",s.cause=o,s.runtimeLastError=o,s.callContext=a,s.stack=[`${s.name}: ${s.message}`,"","Runtime error stack:",o.stack||o.message,"","Message call stack:",a.stack||a.message].join("\n"),s}function j(e,t,n,a){if("PAGE_INFO"===(1===t.length?t[0]:t[1]).type){const o=n;if(!o||"object"!=typeof o||null==o.pageId)throw O(e,t,new Error('Invalid response for "PAGE_INFO": expected an object with pageId, received '+String(n)),a)}return n}function N(...e){const t=M("message.send",N);return(1===e.length?browser.runtime.sendMessage(e[0]):browser.tabs.sendMessage(e[0],e[1])).then(n=>j("message.send",e,n,t)).catch(n=>{throw O("message.send",e,n,t)})}function I(...e){this.__self__&&void 0===window.pageId&&E().catch(console.error);const t=this.__self__?c:s,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1];let o=t.get(a);o||(o=new Map,t.set(a,o));let r=o.get(n||"__DEFAULT_MSGTYPE__");return r||(r=(e,t)=>{if(e&&(this.__self__?window.pageId===e.__pageId__:!e.__pageId__)&&(null==n||e.type===n))return a(e,t)},o.set(n||"__DEFAULT_MSGTYPE__",r)),browser.runtime.onMessage.addListener(r)}function C(...e){const t=this.__self__?c:s,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1],o=t.get(a);if(o){if(!n)return o.forEach(e=>browser.runtime.onMessage.removeListener(e)),void t.delete(a);{const e=o.get(n);if(e)return browser.runtime.onMessage.removeListener(e),o.delete(n),void(o.size<=0&&t.delete(a))}}browser.runtime.onMessage.removeListener(a)}function D(e){return(e?Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)):Object(a.a)(e=>this.addListener(e),e=>this.removeListener(e))).pipe(Object(r.a)(e=>Array.isArray(e)?e[0]:e))}function E(){return void 0===window.pageId?d.send({type:"PAGE_INFO"}).then(e=>{const{pageId:t,faviconURL:n,pageTitle:a,pageURL:o}=e;return window.pageId=t,window.faviconURL=n,a&&(window.pageTitle=a),o&&(window.pageURL=o),t}):Promise.resolve(window.pageId)}},107:function(e,t,n){"use strict";function a(){return Date.now().toString().slice(6)+Math.random().toString().slice(2,8)}n.d(t,"a",(function(){return a}))},11:function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(1);function o(e){return e?{date:e.date||Date.now(),text:e.text||"",context:e.context||"",title:e.title||"",url:e.url||"",favicon:e.favicon||"",trans:e.trans||"",note:e.note||""}:{date:Date.now(),text:"",context:"",title:"",url:"",favicon:"",trans:"",note:""}}function r(e){return a.a.send({type:"IS_IN_NOTEBOOK",payload:e}).catch((t=!1,e=>t));var t}async function i(e,t){await a.a.send({type:"SAVE_WORD",payload:{area:e,word:t}})}async function s(e,t){await a.a.send({type:"SYNC_SERVICE_DOWNLOAD"}),await a.a.send({type:"DELETE_WORDS",payload:{area:e,dates:t}})}function c(e,t){return a.a.send({type:"GET_WORDS_BY_TEXT",payload:{area:e,text:t}})}function l(e,t){return a.a.send({type:"GET_WORDS",payload:{area:e,...t}})}},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i}));var a=n(20);async function o(e,t,{options:n,options_sel:o},r,i){("none"===n.keepLF||"pdf"===n.keepLF&&!i.isPDF||"webpage"===n.keepLF&&i.isPDF)&&(t=t.replace(/\n+/g," "));let s=i.sl;s||(Object(a.g)(t)?s="ja":Object(a.h)(t)&&(s="ko")),s||(s=await e.detect(t));let c="";return i.tl?c=i.tl:"default"===n.tl?o.tl.includes(r.langCode)&&(c=r.langCode):c=n.tl,c||(c=o.tl.find(e=>"default"!==e)||"en"),s===c&&(i.tl?i.sl||(s="auto"):c="default"===n.tl2?c!==r.langCode?r.langCode:"en"!==c?"en":o.tl.find(e=>"default"!==e&&e!==c)||"en":n.tl2),{sl:s,tl:c,text:t}}function r(e,t,n,a){return{lang:"11111111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:320,selectionWC:{min:1,max:999999999999999},...t,options:{keepLF:"webpage",slInitial:"collapse",tl:"default",tl2:"default",...n},options_sel:{keepLF:["none","all","webpage","pdf"],slInitial:["collapse","hide","full"],tl:["default",...e],tl2:["default",...e],...a}}}function i(e,t){const n=[{value:"auto",label:"%t(content:machineTrans.auto)"}];for(const e of t)n.push({value:e,label:`${e} %t(langcode:${e})`});const a=[{key:"sl",value:e.result.sl,title:"%t(content:machineTrans.sl)",options:n},{key:"tl",value:e.result.tl,title:"%t(content:machineTrans.tl)",options:n},{key:"copySrc",value:"copySrc",label:"%t(content:machineTrans.copySrc)"},{key:"copyTrans",value:"copyTrans",label:"%t(content:machineTrans.copyTrans)"}];return"hide"===e.result.slInitial&&a.push({key:"showSl",value:"",label:"%t(content:machineTrans.showSl)"}),{...e,catalog:a}}},138:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return f}));var a=n(0),o=n.n(a),r=n(94),i=n(125),s=n(30),c=n(256),l=n(136),u=n(112),d=n(92),h=n(140),g=n(21);const p=o.a.createContext({current:null}),f=e=>{const t=Object(a.useContext)(p),n=Object(a.useRef)(null),f=Object(a.useRef)(null),[m,y]=Object(i.a)(d.c),[b,w]=Object(i.a)(d.d),[M,O]=Object(i.a)(d.b),[j,N]=Object(i.a)(d.a),[I,C]=Object(i.a)(s.b),D=Object(c.a)(Object(l.a)(()=>Object(u.a)(y,w)),!1),E=Object(c.a)(Object(l.a)(()=>Object(u.a)(O,N,C)),!1),A=D||E,[z,T]=Object(a.useState)(()=>null==e.left?{top:null==e.top?40:e.top,left:"50%",transform:"translateX(-50%)"}:{top:null==e.top?40:e.top,left:e.left});return o.a.createElement("div",{className:"hoverBox-Container",ref:n},o.a.createElement(e.Button,{onKeyDown:e=>{switch(e.key){case"ArrowDown":if(e.preventDefault(),e.stopPropagation(),A){if(f.current){const e=f.current.firstElementChild;e&&e.focus()}}else I(!0);break;case"Tab":if(!e.shiftKey&&A&&f.current){e.preventDefault(),e.stopPropagation();const t=f.current.firstElementChild;t&&t.focus()}}},onMouseOver:m,onMouseOut:m,onClick:()=>{e.onBtnClick&&!1===e.onBtnClick()||b()}}),o.a.createElement(r.a,{classNames:"csst-hoverBox",in:A,timeout:100,mountOnEnter:!0,unmountOnExit:!0,onEnter:()=>{if(t.current&&n.current){const a=t.current.getBoundingClientRect(),o=n.current.getBoundingClientRect();T({top:o.y-a.y+(null==e.top?40:e.top),left:o.x-a.x+(null==e.left?-Math.floor(o.width/2):e.left)})}},onExited:()=>e.onHeightChanged&&e.onHeightChanged(0)},()=>{const a=o.a.createElement("div",{className:"hoverBox-FloatBox",style:z},o.a.createElement(h.a,{ref:f,compact:e.compact,list:e.items,onFocus:j,onBlur:j,onMouseOver:M,onMouseOut:M,onArrowUpFirst:e=>e.lastElementChild.focus(),onArrowDownLast:e=>e.firstElementChild.focus(),onSelect:e.onSelect,onHeightChanged:e.onHeightChanged,onClose:()=>I(!1)}));return t.current&&n.current?Object(g.createPortal)(a,t.current):a}))}},140:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),o=n.n(a),r=n(189),i=n(5),s=n.n(i);const c=o.a.forwardRef((e,t)=>{const[n,i]=Object(a.useState)(0),[c,l]=Object(a.useState)(0),u=Object(a.useCallback)((t,a)=>{l(t),i(a),e.onHeightChanged&&a!==n&&e.onHeightChanged(a)},[e.onHeightChanged]);return o.a.createElement("div",{className:s()("floatBox-Container",{"floatBox-compact":e.compact}),style:{width:c,height:n},onMouseOver:e.onMouseOver,onMouseOut:e.onMouseOut},o.a.createElement("div",{className:"floatBox-Measure"},o.a.createElement(r.ResizeReporter,{reportInit:!0,onSizeChanged:u}),e.list?o.a.createElement("div",{key:"box",ref:t,className:"floatBox"},e.list.map((function(t){if(t.options)return o.a.createElement("select",{key:t.key,className:"floatBox-Item floatBox-Select","data-key":t.key,defaultValue:t.value,onFocus:e.onFocus,onBlur:e.onBlur,onChange:d},t.title&&o.a.createElement("option",{disabled:!0},t.title),t.options.map(e=>o.a.createElement("option",{key:e.value,value:e.value},e.label)));return o.a.createElement("button",{key:t.key,className:"floatBox-Item floatBox-Btn","data-key":t.key,"data-value":t.value,onFocus:e.onFocus,onBlur:e.onBlur,onClick:h,onKeyDown:g},t.label)}))):o.a.createElement("div",{key:"loading",className:"lds-ellipsis"},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))));function d(t){if(e.onSelect){const{dataset:{key:n},value:a}=t.currentTarget;e.onSelect(n,a)}}function h(t){if(e.onSelect){const{key:n,value:a}=t.currentTarget.dataset;e.onSelect(n,a)}}function g(t){if("ArrowDown"===t.key){t.preventDefault(),t.stopPropagation();const n=t.currentTarget.nextSibling;n?n.focus():e.onArrowDownLast&&e.onArrowDownLast(t.currentTarget.parentElement)}else if("ArrowUp"===t.key){t.preventDefault(),t.stopPropagation();const n=t.currentTarget.previousSibling;n?n.focus():e.onArrowUpFirst&&e.onArrowUpFirst(t.currentTarget.parentElement)}else"Escape"===t.key&&(t.preventDefault(),t.stopPropagation(),e.onClose&&e.onClose(t.currentTarget.parentElement))}})},146:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(1);async function o(e,t){try{return await a.a.send(e,t)}catch(e){if(function(e){const t=e&&"object"==typeof e&&e.runtimeLastError instanceof Error?e.runtimeLastError:e instanceof Error?e:null;return!(!t||!/Could not establish connection|Receiving end does not exist/.test(t.message))}(e))return;throw e}}},165:function(e,t,n){"use strict";n.d(t,"b",(function(){return y}));var a=n(83),o=n(87),r=n(77),i=n.n(r),s=n(96),c=n.n(s),l=n(108),u=n.n(l),d=n(63),h=n.n(d),g=n(22),p=n.n(g),f=n(27),m=n.n(f);function y(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.a)();let r=e.version;return r<13&&(e.showedDictAuth=!0),r<=9&&(r=10,["mode","pinMode","panelMode","qsPanelMode"].forEach(t=>{n[t].holding.shift=!1,n[t].holding.ctrl=!!e[t].ctrl,n[t].holding.meta=!!e[t].ctrl,delete e[t].ctrl})),s("tripleCtrlPreload","qsPreload"),s("tripleCtrlAuto","qsAuto"),s("tripleCtrlLocation","qsLocation"),s("tripleCtrlStandalone","qsStandalone"),s("tripleCtrlHeight","qssaHeight"),s("tripleCtrlSidebar","qssaSidebar"),s("tripleCtrlPageSel","qssaPageSel"),Object.keys(n).forEach(t=>{switch(t){case"langCode":f("langCode",e=>/^(zh-CN|zh-TW|en)$/.test(e));break;case"pdfWhitelist":case"pdfBlacklist":case"whitelist":case"blacklist":f(t,e=>Array.isArray(e));break;case"searhHistory":case"searchHistory":n.searchHistory=e[t];break;case"searhHistoryInco":case"searchHistoryInco":n.searchHistoryInco=e[t];break;case"mode":case"pinMode":case"panelMode":case"qsPanelMode":"mode"===t&&g("mode.icon"),g(t+".direct"),g(t+".double"),g(t+".holding.alt"),g(t+".holding.shift"),g(t+".holding.ctrl"),g(t+".holding.meta"),g(t+".instant.enable"),f(t+".instant.key",e=>/^(direct|ctrl|alt|shift)$/.test(e)),l(t+".instant.delay");break;case"qsPreload":f("qsPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"qsLocation":f("qsLocation",e=>"CENTER"===e||"TOP"===e||"RIGHT"===e||"BOTTOM"===e||"LEFT"===e||"TOP_LEFT"===e||"TOP_RIGHT"===e||"BOTTOM_LEFT"===e||"BOTTOM_RIGHT"===e);break;case"baPreload":f("baPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"ctxTrans":i()(n.ctxTrans,(e,t)=>{g("ctxTrans."+t)});break;case"language":i()(n.language,(e,t)=>{g("language."+t)});break;case"autopron":f("autopron.cn.dict",e=>o.a[e]),f("autopron.en.dict",e=>o.a[e]),f("autopron.en.accent",e=>"us"===e||"uk"===e),f("autopron.machine.dict",e=>o.a[e]),f("autopron.machine.src",e=>"trans"===e||"searchText"===e);break;case"contextMenus":i()(e.contextMenus.all,(e,t)=>{"string"==typeof e?n.contextMenus.all[t]&&d("contextMenus.all."+t):(d(`contextMenus.all.${t}.name`),d(`contextMenus.all.${t}.url`))}),function(t){const a=p()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)m()(n,[t,"selected"],[]);else{const e=p()(n,[t,"all"]),o=a.filter(t=>e[t]);o.length>0&&m()(n,[t,"selected"],o)}}("contextMenus");break;case"dictAuth":f("dictAuth",Boolean);break;default:switch(typeof n[t]){case"string":d(t);break;case"boolean":g(t);break;case"number":l(t);break;default:console.error(new Error(`merge config: missing handler for '${t}'`))}}}),r=e.version,r<=10&&(r=11,n.contextMenus.selected.unshift("view_as_pdf")),r<=11&&(r=12,n.blacklist.push(["^https://stackedit.io(/.*)?$","https://stackedit.io/*"])),!1===e.language.minor&&(n.language.japanese=!1,n.language.korean=!1,n.language.french=!1,n.language.spanish=!1,n.language.deutsch=!1),n.panelMaxHeightRatio<1&&(n.panelMaxHeightRatio=Math.round(100*n.panelMaxHeightRatio)),n;function s(t,n){!Object.prototype.hasOwnProperty.call(e,n)&&Object.prototype.hasOwnProperty.call(e,t)&&(e[n]=e[t])}function l(e){return f(e,c.a)}function d(e){return f(e,u.a)}function g(e){return f(e,h.a)}function f(t,a){const o=p()(e,t);a(o)&&m()(n,t,o)}}t.a=y},166:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=Object.keys},171:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appid:"",key:""},o="http://api.fanyi.baidu.com/api/trans/product/prodinfo"},172:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={token:""},o="https://fanyi.caiyunapp.com/#/api"},173:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={pid:"",key:""},o="https://deepi.sogou.com/?from=translatepc"},174:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={secretId:"",secretKey:""},o="https://curl.qcloud.com/imsowZzT"},175:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appKey:"",key:""},o="http://ai.youdao.com/gw.s"},179:function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return A}));var a=n(124),o=n(112),r=n(57),i=n(159),s=n(39),c=n(10),l=n(88),u=n(134),d=n(561),h=n(562),g=n(187),p=n(182),f=n(121),m=n(508),y=n(563),b=n(125),w=n(136),M=n(30),O=n(190),j=n(2),N=n(44),I=n(20),C=n(43),D=n(38);function E(e){return e?e.touchMode?function(e){const t=Object(o.a)(Object(r.a)(window,"mousedown",{capture:!0}).pipe(Object(s.a)(e=>0===e.button)),Object(r.a)(window,"touchstart",{capture:!0}).pipe(Object(c.a)(e=>e.changedTouches[0]))),n=Object(o.a)(Object(r.a)(window,"mouseup",{capture:!0}).pipe(Object(s.a)(e=>0===e.button)),Object(r.a)(window,"touchend",{capture:!0}).pipe(Object(c.a)(e=>e.changedTouches[0]))),a=z(n,e.doubleClickDelay),g=Object(o.a)(Object(l.a)(!0)(t),Object(l.a)(!1)(n),Object(l.a)(!1)(Object(r.a)(window,"mouseout",{capture:!0})),Object(l.a)(!1)(Object(r.a)(window,"blur",{capture:!0})));return Object(r.a)(document,"selectionchange").pipe(Object(u.a)(g),Object(d.a)(([,e])=>e?n:Object(i.a)(400)),Object(c.a)(([,e])=>[window.getSelection(),e]),Object(s.a)(e=>!!e[0]&&!Object(j.f)(e[0].anchorNode)),Object(u.a)(n,t,a),Object(c.a)(([[t,n],a,o,r])=>{const i=Object(j.e)(t.anchorNode||o.target);if(e.noTypeField&&Object(C.d)(n?o.target:t.anchorNode))return{self:i};const s=Object(N.d)(t);if(!Object(I.a)(e.language,s))return{self:i};if(n)return{word:{text:s,context:Object(N.b)(t)},self:i,dbClick:r>=2,mouseX:a.clientX,mouseY:a.clientY,altKey:!!a.altKey,shiftKey:!!a.shiftKey,ctrlKey:!!a.ctrlKey,metaKey:!!a.metaKey};if(t.rangeCount<=0)return{self:i};const c=t.getRangeAt(0).getBoundingClientRect();return 0===c.top&&0===c.left&&0===c.width&&0===c.height?{self:i}:{word:{text:s,context:Object(N.b)(t)},self:i,dbClick:r>=2,mouseX:c.right,mouseY:c.top}}),Object(h.a)(t=>{if(j.d&&t.self&&t.word&&t.word.text){const{direct:n,double:a,holding:o}=e.panelMode;if(n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey)return Object(i.a)(500)}return Object(i.a)(0)}))}(e):function(e){const t=Object(r.a)(window,"mousedown",{capture:!0}).pipe(Object(s.a)(e=>0===e.button)),n=Object(r.a)(window,"mouseup",{capture:!0}).pipe(Object(s.a)(e=>0===e.button)),a=z(n,e.doubleClickDelay);return n.pipe(Object(s.a)(e=>!Object(j.f)(e.target)),Object(g.a)(10),Object(u.a)(t,a),Object(s.a)(([e,t])=>!Object(j.e)(e.target)&&!Object(j.e)(t.target)),Object(c.a)(([t,n,a])=>{if(e.noTypeField&&Object(C.d)(n.target))return{self:!1};const o=window.getSelection(),r=Object(N.d)(o);return Object(I.a)(e.language,r)?{word:{text:r,context:Object(N.b)(o)},self:!1,dbClick:a>=2,mouseX:t.clientX,mouseY:t.clientY,altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey}:{self:!1}}),Object(p.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context))}(e):a.a}function A(e,t,n,a){const[o,r]=Object(b.a)(e=>e.pipe(Object(s.a)(e=>0===e.button))),i=Object(w.a)(M.b,[e,t]),l=Object(w.a)(e=>e.pipe(Object(f.a)(([e])=>z(r,e))),[n]),d=Object(w.a)(()=>r.pipe(Object(u.a)(i),Object(s.a)(([e,[t]])=>{if(t)return!1;for(let t=e.target;t;t=t.parentElement)if(Object(D.a)(t,"a")||Object(D.a)(t,"button"))return!1;return!0}),Object(c.a)(([e,[,t]])=>({mouseup:e.nativeEvent,language:t})),Object(g.a)(10),Object(u.a)(l),Object(c.a)(([{mouseup:e,language:t},n])=>{const a=window.getSelection(),o=Object(N.d)(a);return Object(I.a)(t,o)?{word:{text:o,context:Object(N.b)(a)},dbClick:n>=2,mouseX:e.clientX,mouseY:e.clientY,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,self:!0,instant:!1,force:!1}:{word:null,self:!0,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}}),Object(p.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context)));return Object(O.a)(d,async e=>{e.word&&(e.word=await Object(C.e)(e.word)),a(e)}),o}function z(e,t){return e.pipe(Object(f.a)(()=>Object(i.a)(t).pipe(Object(l.a)(!1),Object(m.a)(!0))),Object(y.a)((e,t)=>t?e+1:0,0))}},185:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(78),o=n(77),r=n.n(o),i=n(96),s=n.n(i),c=n(108),l=n.n(c),u=n(63),d=n.n(u),h=n(22),g=n.n(h),p=n(27),f=n.n(p);function m(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.b)(e.id);return Object.keys(n).forEach(t=>{switch(t){case"dicts":(function(t){const a=g()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)f()(n,[t,"selected"],[]);else{const e=g()(n,[t,"all"]),o=a.map(e=>"olad"===e?"lexico":e).filter(t=>e[t]);o.length>0&&f()(n,[t,"selected"],o)}})("dicts"),r()(n.dicts.all,(t,a)=>{const c=g()(e,`dicts.all.${a}.defaultUnfold`);d()(c)?f()(n,`dicts.all.${a}.defaultUnfold`,{chinese:c,english:c,japanese:c,korean:c,french:c,spanish:c,deutsch:c,others:c}):(i(`dicts.all.${a}.defaultUnfold.chinese`),i(`dicts.all.${a}.defaultUnfold.english`),i(`dicts.all.${a}.defaultUnfold.japanese`),i(`dicts.all.${a}.defaultUnfold.korean`),i(`dicts.all.${a}.defaultUnfold.french`),i(`dicts.all.${a}.defaultUnfold.spanish`),i(`dicts.all.${a}.defaultUnfold.deutsch`),i(`dicts.all.${a}.defaultUnfold.others`));const u=g()(e,`dicts.all.${a}.selectionLang.chs`);d()(u)?f()(n,`dicts.all.${a}.selectionLang.chinese`,u):i(`dicts.all.${a}.selectionLang.chinese`);const h=g()(e,`dicts.all.${a}.selectionLang.eng`);if(d()(h)?f()(n,`dicts.all.${a}.selectionLang.english`,h):i(`dicts.all.${a}.selectionLang.english`),i(`dicts.all.${a}.selectionLang.japanese`),i(`dicts.all.${a}.selectionLang.korean`),i(`dicts.all.${a}.selectionLang.french`),i(`dicts.all.${a}.selectionLang.spanish`),i(`dicts.all.${a}.selectionLang.deutsch`),i(`dicts.all.${a}.selectionLang.others`),o(`dicts.all.${a}.preferredHeight`),o(`dicts.all.${a}.selectionWC.min`),o(`dicts.all.${a}.selectionWC.max`),t.options){if(r()(t.options,(t,r)=>{if(s()(t))o(`dicts.all.${a}.options.${r}`);else if(d()(t))i(`dicts.all.${a}.options.${r}`);else if(l()(t)){const o=g()(e,`dicts.all.${a}.options.${r}`),i=g()(n,`dicts.all.${a}.options_sel.${r}`);f()(n,`dicts.all.${a}.options.${r}`,i.includes(o)?o:t)}}),!s()(e.version)){const e=["baidu","caiyun","google","sogou","tencent","youdaotrans"];e.every(e=>"hide"===g()(n,`dicts.all.${e}.options.slInitial`))&&e.forEach(e=>{f()(n,`dicts.all.${e}.options.slInitial`,"collapse")})}const c=g()(e,`dicts.all.${a}.options.pdfNewline`);d()(c)&&f()(n,`dicts.all.${a}.options.keepLF`,c?"all":"webpage")}});break;default:switch(typeof n[t]){case"string":c(t,l.a);break;case"boolean":i(t);break;case"number":o(t);break;default:console.error(new Error(`merge profile: missing handler for '${t}'`))}}}),"kor"===n.dicts.all.hjdict.options.chsas&&(n.dicts.all.hjdict.options.chsas="kr"),n;function o(e){return c(e,s.a)}function i(e){return c(e,d.a)}function c(t,a){const o=g()(e,t);a(o)&&f()(n,t,o)}}},2:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"g",(function(){return o})),n.d(t,"i",(function(){return r})),n.d(t,"k",(function(){return i})),n.d(t,"j",(function(){return s})),n.d(t,"l",(function(){return c})),n.d(t,"n",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"h",(function(){return g})),n.d(t,"m",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return m}));const a=()=>!!window.__SALADICT_BACKGROUND_PAGE__,o=()=>!!window.__SALADICT_INTERNAL_PAGE__,r=()=>!!window.__SALADICT_OPTIONS_PAGE__,i=()=>!!window.__SALADICT_POPUP_PAGE__,s=()=>!!window.__SALADICT_PDF_PAGE__,c=()=>!!window.__SALADICT_QUICK_SEARCH_PAGE__,l=()=>i()||c(),u="saladict-external",d="saladict-panel",h=navigator.userAgent.includes("Firefox"),g=navigator.userAgent.includes("OPR"),p=/apple/i.test(navigator.vendor);function f(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(u))return!0;return!1}function m(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(d))return!0;return!1}},20:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"b",(function(){return y})),n.d(t,"j",(function(){return b})),n.d(t,"a",(function(){return w}));var a=n(16);const o=["chinese","english","japanese","korean","french","spanish","deutsch"],r={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},i=e=>r.chinese.test(e),s=e=>r.english.test(e),c=e=>r.japanese.test(e),l=e=>r.korean.test(e),u=e=>r.french.test(e),d=e=>r.deutsch.test(e),h=e=>r.spanish.test(e),g={chinese:Object(a.a)(i),english:Object(a.a)(s),japanese:Object(a.a)(c),korean:Object(a.a)(l),french:Object(a.a)(u),spanish:Object(a.a)(h),deutsch:Object(a.a)(d)},p=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,f=new RegExp(`^(\\d|\\s|${p.source})+$`),m=new RegExp(`${r.chinese.source}|${r.japanese.source}|${r.korean.source}`),y=Object(a.a)(e=>(e.replace(new RegExp(p,"g")," ").replace(new RegExp(m,"g")," x ").match(/\S+/g)||"").length),b=[...o,"others","matchAll"];function w(e,t){if(!t)return!1;if(e.matchAll){if(f.test(t))return!1;if(e.others){const n=[/-|\.|\d|\s/],a=[];for(let t=o.length-1;t>=0;t--){const i=o[t];e[i]?n.push(r[i]):a.push(r[i])}for(let e=0;e<t.length;e++)if(n.every(n=>!n.test(t[e]))&&a.some(n=>n.test(t[e])))return!1;return!0}{const n=o.filter(t=>e[t]).map(e=>r[e]);n.push(/-|\.|\d|\s/);for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!1;return!0}}{if(o.some(n=>e[n]&&g[n](t)))return!0;if(!e.others||f.test(t))return!1;const n=o.filter(t=>!e[t]).map(e=>r[e]);n.push(new RegExp(p.source+"|\\d|\\s"));for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!0;return!1}}},265:function(e,t,n){var a={"./ankiconnect/_locales/en.ts":281,"./ankiconnect/_locales/zh-CN.ts":282,"./ankiconnect/_locales/zh-TW.ts":283,"./eudic/_locales/en.ts":284,"./eudic/_locales/zh-CN.ts":285,"./eudic/_locales/zh-TW.ts":286,"./shanbay/_locales/en.ts":287,"./shanbay/_locales/zh-CN.ts":288,"./shanbay/_locales/zh-TW.ts":289,"./webdav/_locales/en.ts":290,"./webdav/_locales/zh-CN.ts":291,"./webdav/_locales/zh-TW.ts":292};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=265},271:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),o=n.n(a);class r extends o.a.PureComponent{constructor(...e){super(...e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.error?o.a.createElement(this.props.error):null:this.props.children}}},281:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"Cannot connect to Anki Connect. Please make sure Anki is running.",deck:"Deck not found in Anki.",notetype:"Note type not found in Anki.",add:"Failed to add word to Anki."}}},282:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"无法连接 Anki Connect,请确认 Anki 已在运行。",deck:"Anki 中没有找到相应牌组。",notetype:"Anki 中没有找到相应笔记类型。",add:"添加单词到 Anki 失败。"}}},283:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"無法連線 Anki Connect,請確認 Anki 已在執行。",deck:"Anki 中沒有找到相應牌組。",notetype:"Anki 中沒有找到相應筆記型別。",add:"新增單詞到 Anki 失敗。"}}},284:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Eudic Word Syncing",open:"Open",error:{network:"Unable to access the new word book of Eudic, please check the network.",illegal_token:"Please set legal Eudic authorization information.",no_wordbook:"Unable to add to the new word book of European dictionary. Please go to the European official website to generate the default new word book first."}}},285:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"欧路单词同步",open:"打开",error:{network:"无法访问欧路词典生词本,请检查网络。",illegal_token:"请设置合法的欧路词典授权信息",no_wordbook:"无法添加到欧路词典生词本,请先上欧路官网生成默认生词本"}}},286:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"歐路單字同步",open:"開啟",error:{network:"無法訪問歐路詞典生詞本,請檢查網絡。",illegal_token:"請設定合法的歐路詞典授權資訊",no_wordbook:"無法添加到歐路詞典生詞本,請先上歐路官網生成默認生詞本"}}},287:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Shanbay Word Syncing",open:"Open",error:{login:"Shanbay login failed. Click to open shanbay.com.",network:"Unable to access shanbay.com. Please check your network connection.",word:"Unable to add to Shanbay notebook. This word is not in Shanbay's vocabulary database."}}},288:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇贝单词同步",open:"打开",error:{login:"扇贝登录已失效,请点击打开官网重新登录。",network:"无法访问扇贝生词本,请检查网络。",word:"无法添加到扇贝生词本,扇贝单词库没有收录此单词。"}}},289:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇貝單字同步",open:"開啟",error:{login:"扇貝登入已失效,請點選開啟官網重新登入。",network:"無法訪問扇貝生字本,請檢查網路。",word:"無法新增到扇貝生字本,扇貝單字庫沒有收錄此單字。"}}},29:function(e,t,n){"use strict";n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b}));var a=n(90),o=n.n(a),r=n(83),i=n(165),s=n(1),c=n(100),l=n(67),u=n(81),d=n(10);function h(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}async function g(){let e=await f();return e=e&&e.version?Object(i.b)(e):Object(r.a)(),await m(e),e}async function p(){const e=Object(r.a)();return await m(e),e}async function f(){const{baseconfig:e}=await s.c.sync.get("baseconfig");return h(e||Object(r.a)())}function m(e){return function(e){try{"undefined"!=typeof localStorage&&"undefined"!=typeof location&&/^(chrome-extension|moz-extension|safari-web-extension):$/.test(location.protocol)&&localStorage.setItem("saladict-pdf-viewer-dark-mode",e?"1":"0")}catch(e){}}(e.darkMode),s.c.sync.set({baseconfig:(t=e,{v:1,d:o.a.deflate(JSON.stringify(t),{to:"string"})})});var t}async function y(e){s.c.sync.addListener(t=>{if(t.baseconfig){const{newValue:n,oldValue:a}=t.baseconfig;n&&e({newConfig:h(n),oldConfig:h(a)})}})}function b(){return Object(c.a)(Object(l.a)(f()),Object(u.a)(y).pipe(Object(d.a)(e=>(Array.isArray(e)?e[0]:e).newConfig)))}},290:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV Word Syncing",error:{dir:'Incorrect "Saladict" directory on server.',download:"Download failed. Unable to connect WebDAV Server. If browser proxy is enabled please adjust rules to bypass WebDAV server.",internal:"Unable to save settings.",missing:'Missing "Saladict" directory on server.',mkcol:'Cannot create "Saladict" directory on server. Please create the directory manualy on server.',network:"Network error. Cannot connect to server.",parse:"Incorrect response XML from server.",unauthorized:"Incorrect account or password."}}},291:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 单词同步",error:{dir:"服务器上“Saladict”目录格式不正确,请检查。",download:"下载失败。无法访问 WebDAV 服务器。如启用了浏览器代理请调整规则,不要代理 WebDAV 服务器。",internal:"无法保存。",missing:"服务器上缺少“Saladict”目录。",mkcol:"无法在服务器创建“Saladict”目录。请手动在服务器上创建。",network:"连接服务器失败。",parse:"服务器返回 XML 格式不正确。",unauthorized:"账户或密码不正确。"}}},292:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 單字同步",error:{dir:"伺服器上“Saladict”目錄格式不正確,請檢查。",download:"下載失敗。無法訪問 WebDAV 伺服器。如啟用了瀏覽器代理請調整規則,不要代理 WebDAV 伺服器。",internal:"無法儲存。",missing:"伺服器上缺少“Saladict”目錄。",mkcol:"無法在伺服器建立“Saladict”目錄。請手動在伺服器上建立。",network:"連線伺服器失敗。",parse:"伺服器返回 XML 格式不正確。",unauthorized:"帳戶或密碼不正確。"}}},3:function(e,t,n){"use strict";n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"k",(function(){return h})),n.d(t,"a",(function(){return g})),n.d(t,"l",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"g",(function(){return m})),n.d(t,"e",(function(){return w})),n.d(t,"f",(function(){return M})),n.d(t,"m",(function(){return O})),n.d(t,"n",(function(){return j})),n.d(t,"b",(function(){return N})),n.d(t,"d",(function(){return I}));var a=n(139),o=n.n(a);n(0),n(125),n(190),n(10),n(404),n(752);const r=new Map([["与","與"],["丒","囟"],["专","專"],["丗","卅"],["业","業"],["丛","叢"],["东","東"],["丝","絲"],["両","兩"],["丢","丟"],["两","兩"],["严","嚴"],["丧","喪"],["个","個"],["丬","爿"],["丯","丰"],["临","臨"],["丶","⼂"],["为","為"],["丽","麗"],["举","舉"],["义","義"],["乌","烏"],["乐","樂"],["乔","喬"],["习","習"],["乡","鄉"],["书","書"],["买","買"],["乱","亂"],["亀","龜"],["亁","乾"],["争","爭"],["亏","虧"],["亘","亙"],["亚","亞"],["产","產"],["亩","畝"],["亲","親"],["亵","褻"],["亸","嚲"],["亻","人"],["亿","億"],["仅","僅"],["从","從"],["仑","崙"],["仓","倉"],["仪","儀"],["们","們"],["仮","假"],["众","眾"],["会","會"],["伛","傴"],["伞","傘"],["伟","偉"],["传","傳"],["伤","傷"],["伥","倀"],["伦","倫"],["伧","傖"],["伪","偽"],["伫","佇"],["体","體"],["佥","僉"],["侠","俠"],["侣","侶"],["侥","僥"],["侦","偵"],["侧","側"],["侨","僑"],["侩","儈"],["侪","儕"],["侬","儂"],["俣","俁"],["俦","儔"],["俨","儼"],["俩","倆"],["俪","儷"],["俭","儉"],["债","債"],["倾","傾"],["偬","傯"],["偻","僂"],["偾","僨"],["偿","償"],["傥","儻"],["傧","儐"],["储","儲"],["傩","儺"],["兎","兔"],["兑","兌"],["兖","兗"],["兪","俞"],["兰","蘭"],["关","關"],["兴","興"],["兹","茲"],["养","養"],["兽","獸"],["兾","糞"],["兿","藝"],["冁","囅"],["内","內"],["円","丹"],["冈","岡"],["册","冊"],["写","寫"],["军","軍"],["农","農"],["冝","宜"],["冦","寇"],["冧","霖"],["冨","富"],["冩","寫"],["冮","江"],["冯","馮"],["冲","沖"],["决","決"],["况","況"],["冸","泮"],["冺","泯"],["冻","凍"],["冿","津"],["净","淨"],["凁","涑"],["凂","浼"],["凃","涂"],["凄","淒"],["凉","涼"],["减","減"],["凑","湊"],["凒","溰"],["凓","溧"],["凕","溟"],["凖","準"],["凙","澤"],["凛","凜"],["凟","瀆"],["凤","鳳"],["凥","尻"],["処","處"],["凨","云"],["凫","鳧"],["凬","凰"],["凭","憑"],["凮","鳳"],["凯","凱"],["凴","憑"],["击","擊"],["凼","窞"],["凾","亟"],["凿","鑿"],["刄","刃"],["刅","刃"],["刋","刊"],["刍","芻"],["刘","劉"],["则","則"],["刚","剛"],["创","創"],["删","刪"],["刦","劫"],["刧","劫"],["别","別"],["刭","剄"],["刴","剁"],["刹","剎"],["刼","劫"],["刽","劊"],["刿","劌"],["剀","剴"],["剂","劑"],["剐","剮"],["剑","劍"],["剥","剝"],["剧","劇"],["剰","剩"],["劎","劍"],["劒","劍"],["劔","劍"],["劝","勸"],["办","辦"],["务","務"],["劢","勱"],["动","動"],["励","勵"],["劲","勁"],["劳","勞"],["労","勞"],["劵","卷"],["効","效"],["劽","裂"],["势","勢"],["勅","敕"],["勋","勛"],["勐","猛"],["勚","勩"],["勠","戮"],["勥","強"],["勧","勸"],["匀","勻"],["匦","匭"],["匮","匱"],["区","區"],["医","醫"],["华","華"],["协","協"],["单","單"],["卖","賣"],["単","單"],["卙","斟"],["卛","攣"],["卟","嚇"],["卢","盧"],["卤","鹵"],["卥","囟"],["卧","臥"],["卫","衛"],["却","卻"],["卺","巹"],["厅","廳"],["历","歷"],["厉","厲"],["压","壓"],["厌","厭"],["厕","廁"],["厛","廳"],["厠","廁"],["厢","廂"],["厣","厴"],["厦","廈"],["厨","廚"],["厩","廄"],["厮","廝"],["厰","廠"],["厳","嚴"],["厶","⼛"],["县","縣"],["叁","參"],["叄","參"],["叆","靉"],["叇","靆"],["双","雙"],["収","收"],["叏","發"],["叐","發"],["发","發"],["变","變"],["叙","敘"],["叠","疊"],["叧","另"],["叶","葉"],["号","號"],["叹","嘆"],["叽","嘰"],["吓","嚇"],["吕","呂"],["吖","嗄"],["吗","嗎"],["吣","唚"],["吨","噸"],["启","啟"],["吴","吳"],["吿","告"],["呋","咐"],["呐","吶"],["呑","吞"],["呒","嘸"],["呓","囈"],["呕","嘔"],["呖","嚦"],["呗","唄"],["员","員"],["呙","咼"],["呛","嗆"],["呜","嗚"],["呪","咒"],["咏","詠"],["咙","嚨"],["咛","嚀"],["咝","吱"],["咣","光"],["咤","吒"],["哌","呱"],["响","響"],["哐","匡"],["哑","啞"],["哒","噠"],["哓","嘵"],["哔","嗶"],["哕","噦"],["哗","嘩"],["哙","噲"],["哜","嚌"],["哝","噥"],["哟","喲"],["唝","嗊"],["唠","嘮"],["唡","啢"],["唢","嗩"],["唣","嗦"],["唤","喚"],["唿","呼"],["啧","嘖"],["啬","嗇"],["啭","囀"],["啰","囉"],["啴","嘽"],["啸","嘯"],["喷","噴"],["喹","奎"],["喽","嘍"],["喾","嚳"],["嗪","唚"],["嗫","囁"],["嗬","呵"],["嗳","噯"],["嗵","通"],["嘘","噓"],["嘞","咧"],["嘠","嘎"],["嘣","迸"],["嘤","嚶"],["嘨","嘯"],["嘭","膨"],["嘱","囑"],["嘷","嚎"],["噜","嚕"],["噻","塞"],["噼","劈"],["嚔","涕"],["嚢","囊"],["嚣","囂"],["嚯","謔"],["团","團"],["园","園"],["囱","囪"],["围","圍"],["囵","圇"],["国","國"],["图","圖"],["圆","圓"],["圣","聖"],["圹","壙"],["场","場"],["块","塊"],["坚","堅"],["坛","壇"],["坜","壢"],["坝","壩"],["坞","塢"],["坟","墳"],["坠","墜"],["垄","壟"],["垅","壟"],["垆","壚"],["垒","壘"],["垦","墾"],["垧","坰"],["垩","堊"],["垫","墊"],["垲","塏"],["垴","瑙"],["埘","塒"],["埚","堝"],["堑","塹"],["堕","墮"],["塡","填"],["塬","原"],["墙","牆"],["壮","壯"],["声","聲"],["壳","殼"],["壶","壺"],["壸","壼"],["夂","⼢"],["处","處"],["备","備"],["夊","⼢"],["够","夠"],["头","頭"],["夹","夾"],["夺","奪"],["奁","奩"],["奂","奐"],["奋","奮"],["奖","獎"],["奥","奧"],["妆","妝"],["妇","婦"],["妈","媽"],["妩","嫵"],["妪","嫗"],["妫","媯"],["姗","姍"],["姹","奼"],["娄","婁"],["娅","婭"],["娆","嬈"],["娇","嬌"],["娈","孌"],["娱","娛"],["娲","媧"],["娴","嫻"],["婳","嫿"],["婴","嬰"],["婵","嬋"],["婶","嬸"],["媪","媼"],["嫒","嬡"],["嫔","嬪"],["嫱","嬙"],["嬷","嬤"],["孙","孫"],["学","學"],["孪","孿"],["孶","孳"],["宝","寶"],["实","實"],["宠","寵"],["审","審"],["宪","憲"],["宫","宮"],["宽","寬"],["宾","賓"],["寝","寢"],["对","對"],["寻","尋"],["导","導"],["対","對"],["寿","壽"],["専","專"],["尅","剋"],["将","將"],["尓","爾"],["尔","爾"],["尘","塵"],["尝","嘗"],["尧","堯"],["尴","尷"],["尽","盡"],["层","層"],["屃","屭"],["屉","屜"],["届","屆"],["屛","屏"],["属","屬"],["屡","屢"],["屦","屨"],["屿","嶼"],["岁","歲"],["岂","豈"],["岖","嶇"],["岗","崗"],["岘","峴"],["岙","嶴"],["岚","嵐"],["岛","島"],["岭","嶺"],["岿","巋"],["峄","嶧"],["峡","峽"],["峣","嶢"],["峤","嶠"],["峥","崢"],["峦","巒"],["峯","峰"],["崂","嶗"],["崃","崍"],["崄","嶮"],["崭","嶄"],["崾","要"],["嵘","嶸"],["嵚","嶔"],["嵝","嶁"],["巄","巃"],["巅","巔"],["巌","巖"],["巓","巔"],["巩","鞏"],["币","幣"],["帅","帥"],["师","師"],["帏","幃"],["帐","帳"],["帜","幟"],["带","帶"],["帧","幀"],["帮","幫"],["帯","帶"],["帱","幬"],["帻","幘"],["帼","幗"],["幂","冪"],["幇","幫"],["幚","幫"],["幞","襆"],["幷","并"],["广","廣"],["庁","廳"],["広","麼"],["庄","莊"],["庅","麼"],["庆","慶"],["庐","廬"],["庑","廡"],["库","庫"],["应","應"],["庙","廟"],["庞","龐"],["废","廢"],["庼","廎"],["廏","廄"],["廐","廄"],["廪","廩"],["廴","⼵"],["廵","巡"],["开","開"],["异","異"],["弃","棄"],["弑","弒"],["张","張"],["弥","彌"],["弯","彎"],["弹","彈"],["强","強"],["归","歸"],["当","當"],["录","錄"],["彚","彙"],["彛","羿"],["彜","羿"],["彟","獲"],["彠","獲"],["彡","⼺"],["彦","彥"],["彻","徹"],["径","徑"],["徕","徠"],["徸","德"],["忄","心"],["忆","憶"],["忏","懺"],["忧","憂"],["忾","愾"],["怀","懷"],["态","態"],["怂","慫"],["怃","憮"],["怅","悵"],["怆","愴"],["怜","憐"],["总","總"],["怼","懟"],["怿","懌"],["恋","戀"],["恒","恆"],["恳","懇"],["恶","惡"],["恸","慟"],["恹","懨"],["恺","愷"],["恻","惻"],["恼","惱"],["恽","惲"],["悦","悅"],["悫","愨"],["悬","懸"],["悭","慳"],["悯","憫"],["惊","驚"],["惧","懼"],["惨","慘"],["惩","懲"],["惫","憊"],["惬","愜"],["惭","慚"],["惮","憚"],["惯","慣"],["惽","惛"],["愠","慍"],["愤","憤"],["愦","憒"],["慑","懾"],["慭","憖"],["懑","懣"],["懒","懶"],["懔","懍"],["懴","懺"],["戅","戇"],["戆","戇"],["戋","戔"],["戏","戲"],["戗","戧"],["战","戰"],["戝","敗"],["戦","戰"],["戬","戩"],["戯","戲"],["戱","戲"],["户","戶"],["戸","戶"],["扌","手"],["执","執"],["扩","擴"],["扪","捫"],["扫","掃"],["扬","揚"],["扰","擾"],["抅","拘"],["抚","撫"],["抛","拋"],["抟","摶"],["抠","摳"],["抡","掄"],["抢","搶"],["护","護"],["报","報"],["担","擔"],["拟","擬"],["拢","攏"],["拣","揀"],["拥","擁"],["拦","攔"],["拧","擰"],["拨","撥"],["择","擇"],["挚","摯"],["挛","攣"],["挜","掗"],["挝","撾"],["挞","撻"],["挟","挾"],["挠","撓"],["挡","擋"],["挢","撟"],["挣","掙"],["挤","擠"],["挥","揮"],["挦","撏"],["捞","撈"],["损","損"],["捡","撿"],["换","換"],["捣","搗"],["掳","擄"],["掴","摑"],["掷","擲"],["掸","撣"],["掺","摻"],["掼","摜"],["揸","喳"],["揽","攬"],["揿","撳"],["搀","攙"],["搁","擱"],["搂","摟"],["搃","摠"],["搅","攪"],["携","攜"],["摄","攝"],["摅","攄"],["摆","擺"],["摇","搖"],["摈","擯"],["摊","攤"],["撃","擊"],["撄","攖"],["撑","撐"],["撪","攆"],["撵","攆"],["撷","擷"],["撹","攪"],["撺","攛"],["擕","攜"],["擞","擻"],["擡","抬"],["擥","掔"],["擧","舉"],["擪","壓"],["攒","攢"],["攵","又"],["敇","敕"],["敌","敵"],["敛","斂"],["敮","歃"],["数","數"],["斉","齊"],["斋","齋"],["斎","齋"],["斓","斕"],["斩","斬"],["断","斷"],["旧","舊"],["时","時"],["旷","曠"],["旸","暘"],["昙","曇"],["昼","晝"],["昽","曨"],["显","顯"],["晋","晉"],["晓","曉"],["晔","曄"],["晕","暈"],["晖","暉"],["暂","暫"],["暧","曖"],["术","術"],["杀","殺"],["杂","雜"],["权","權"],["条","條"],["来","來"],["杨","楊"],["极","極"],["枞","樅"],["枢","樞"],["枣","棗"],["枥","櫪"],["枧","見"],["枨","棖"],["枪","槍"],["枫","楓"],["枭","梟"],["柠","檸"],["柽","檉"],["栀","梔"],["栅","柵"],["标","標"],["栈","棧"],["栉","櫛"],["栊","櫳"],["栋","棟"],["栌","櫨"],["栎","櫟"],["栏","欄"],["树","樹"],["样","樣"],["栾","欒"],["桊","棬"],["桠","椏"],["桡","橈"],["桢","楨"],["档","檔"],["桤","榿"],["桥","橋"],["桦","樺"],["桧","檜"],["桨","槳"],["桩","樁"],["梦","夢"],["梼","檮"],["梾","棶"],["检","檢"],["棂","欞"],["椁","槨"],["椟","櫝"],["椠","槧"],["椭","橢"],["楼","樓"],["楽","樂"],["榄","欖"],["榇","櫬"],["榈","櫚"],["榉","櫸"],["榘","矩"],["槚","檟"],["槛","檻"],["槟","檳"],["槠","櫧"],["横","橫"],["樯","檣"],["樱","櫻"],["橥","櫫"],["橱","櫥"],["橹","櫓"],["橼","櫞"],["檪","櫟"],["檫","察"],["欢","歡"],["欤","歟"],["欧","歐"],["歳","歲"],["歴","曆"],["歺","歲"],["歼","殲"],["殁","歿"],["殇","殤"],["残","殘"],["殒","殞"],["殓","殮"],["殚","殫"],["殡","殯"],["殱","殲"],["殴","毆"],["毁","毀"],["毂","轂"],["毕","畢"],["毙","斃"],["毡","氈"],["毵","毿"],["毶","鞠"],["気","氣"],["氢","氫"],["氩","氬"],["氲","氳"],["氵","水"],["氽","汆"],["汇","匯"],["汉","漢"],["污","汙"],["汤","湯"],["汹","洶"],["沟","溝"],["没","沒"],["沣","灃"],["沤","漚"],["沥","瀝"],["沦","淪"],["沧","滄"],["沨","渢"],["沩","溈"],["沪","滬"],["沵","濔"],["泞","濘"],["泪","淚"],["泶","澩"],["泷","瀧"],["泸","瀘"],["泺","濼"],["泻","瀉"],["泼","潑"],["泽","澤"],["泾","涇"],["洁","潔"],["浃","浹"],["浅","淺"],["浆","漿"],["浇","澆"],["浈","湞"],["浊","濁"],["测","測"],["浍","澮"],["济","濟"],["浏","瀏"],["浐","滻"],["浑","渾"],["浒","滸"],["浓","濃"],["浔","潯"],["浕","濜"],["浜","濱"],["涙","淚"],["涛","濤"],["涝","澇"],["涞","淶"],["涟","漣"],["涡","渦"],["涣","渙"],["涤","滌"],["润","潤"],["涧","澗"],["涨","漲"],["涩","澀"],["淀","澱"],["渊","淵"],["渌","淥"],["渍","漬"],["渎","瀆"],["渐","漸"],["渑","澠"],["渔","漁"],["渖","瀋"],["渗","滲"],["温","溫"],["湼","涅"],["湾","灣"],["湿","濕"],["溃","潰"],["溅","濺"],["溆","漵"],["溇","漊"],["滙","匯"],["滚","滾"],["滝","瀧"],["滞","滯"],["滟","灩"],["滠","灄"],["满","滿"],["滢","瀅"],["滤","濾"],["滥","濫"],["滦","灤"],["滨","濱"],["滩","灘"],["滪","澦"],["漑","溉"],["潆","瀠"],["潇","瀟"],["潋","瀲"],["潍","濰"],["潜","潛"],["潴","瀦"],["澜","瀾"],["濑","瀨"],["濒","瀕"],["灎","灩"],["灏","灝"],["灔","灩"],["灜","瀛"],["灧","灩"],["灬","火"],["灭","滅"],["灯","燈"],["灵","靈"],["灾","災"],["灿","燦"],["炀","煬"],["炉","爐"],["炖","燉"],["炜","煒"],["炝","熗"],["点","點"],["炼","煉"],["炽","熾"],["烁","爍"],["烂","爛"],["烃","烴"],["烛","燭"],["烟","煙"],["烦","煩"],["烧","燒"],["烨","燁"],["烩","燴"],["烫","燙"],["烬","燼"],["热","熱"],["焕","煥"],["焖","燜"],["焘","燾"],["煅","煆"],["煳","糊"],["煺","退"],["熘","溜"],["爱","愛"],["爲","為"],["爷","爺"],["牍","牘"],["牜","牛"],["牦","犛"],["牵","牽"],["牺","犧"],["犊","犢"],["犟","強"],["犭","犬"],["状","狀"],["犷","獷"],["犸","馬"],["犹","猶"],["狈","狽"],["狍","包"],["狝","獮"],["狞","獰"],["独","獨"],["狭","狹"],["狮","獅"],["狯","獪"],["狰","猙"],["狱","獄"],["狲","猻"],["猃","獫"],["猎","獵"],["猕","獼"],["猡","玀"],["猪","豬"],["猫","貓"],["猬","蝟"],["献","獻"],["獭","獺"],["玑","璣"],["玙","璵"],["玚","瑒"],["玛","瑪"],["玮","瑋"],["环","環"],["现","現"],["玱","瑲"],["玺","璽"],["珏","玨"],["珐","琺"],["珑","瓏"],["珰","璫"],["珱","瓔"],["珲","琿"],["琏","璉"],["琐","瑣"],["琼","瓊"],["瑶","瑤"],["瑷","璦"],["璎","瓔"],["瓒","瓚"],["瓯","甌"],["産","產"],["电","電"],["画","畫"],["畅","暢"],["畲","畬"],["畳","疊"],["畴","疇"],["畵","畫"],["疎","疏"],["疖","癤"],["疗","療"],["疟","瘧"],["疠","癘"],["疡","瘍"],["疬","癆"],["疮","瘡"],["疯","瘋"],["疴","痾"],["痈","癰"],["痉","痙"],["痖","啞"],["痨","癆"],["痩","瘦"],["痪","瘓"],["痫","癇"],["痬","瘍"],["瘅","癉"],["瘆","疹"],["瘗","瘞"],["瘘","瘺"],["瘪","癟"],["瘫","癱"],["瘾","癮"],["瘿","癭"],["癀","廣"],["癍","斑"],["癎","癇"],["癞","癩"],["癣","癬"],["癫","癲"],["発","發"],["皑","皚"],["皱","皺"],["皲","皸"],["盏","盞"],["盐","鹽"],["监","監"],["盖","蓋"],["盗","盜"],["盘","盤"],["県","縣"],["眍","區"],["眞","真"],["眦","眥"],["眬","矓"],["着","著"],["睁","睜"],["睐","睞"],["睑","瞼"],["瞒","瞞"],["瞩","矚"],["矤","病"],["矫","矯"],["矶","磯"],["矾","礬"],["矿","礦"],["砀","碭"],["码","碼"],["砖","磚"],["砗","硨"],["砚","硯"],["砜","風"],["砺","礪"],["砻","礱"],["砾","礫"],["础","礎"],["硁","硜"],["硕","碩"],["硖","硤"],["硗","磽"],["硙","磑"],["硚","礄"],["硷","鹼"],["碍","礙"],["碛","磧"],["碜","磣"],["碱","鹼"],["碹","宣"],["磙","袞"],["礻","示"],["礼","禮"],["祎","禕"],["祢","禰"],["祯","禎"],["祷","禱"],["祸","禍"],["禀","稟"],["禄","祿"],["禅","禪"],["离","離"],["秃","禿"],["秆","稈"],["积","積"],["称","稱"],["秽","穢"],["秾","穠"],["税","稅"],["稣","穌"],["稳","穩"],["穑","穡"],["穷","窮"],["窃","竊"],["窍","竅"],["窑","窯"],["窜","竄"],["窝","窩"],["窥","窺"],["窦","竇"],["窭","窶"],["竖","豎"],["竜","龍"],["竞","競"],["笃","篤"],["笋","筍"],["笔","筆"],["笕","筧"],["笺","箋"],["笼","籠"],["笾","籩"],["筚","篳"],["筛","篩"],["筜","簹"],["筝","箏"],["筹","籌"],["签","簽"],["简","簡"],["箓","籙"],["箢","宛"],["箦","簀"],["箧","篋"],["箨","籜"],["箩","籮"],["箪","簞"],["箫","簫"],["篑","簣"],["篓","簍"],["篮","籃"],["篱","籬"],["簖","籪"],["籁","籟"],["籴","糴"],["类","類"],["籼","秈"],["粜","糶"],["粝","糲"],["粤","粵"],["粪","糞"],["粮","糧"],["糁","糝"],["糇","餱"],["糹","糸"],["紧","緊"],["絵","繪"],["絶","絕"],["絷","縶"],["綘","健"],["継","繼"],["続","續"],["緜","綿"],["縂","總"],["縄","繩"],["繋","繫"],["繍","繡"],["纟","糸"],["纠","糾"],["纡","紆"],["红","紅"],["纣","紂"],["纤","纖"],["纥","紇"],["约","約"],["级","級"],["纨","紈"],["纩","纊"],["纪","紀"],["纫","紉"],["纬","緯"],["纭","紜"],["纮","紘"],["纯","純"],["纰","紕"],["纱","紗"],["纲","綱"],["纳","納"],["纴","紝"],["纵","縱"],["纶","綸"],["纷","紛"],["纸","紙"],["纹","紋"],["纺","紡"],["纻","紵"],["纼","紖"],["纽","紐"],["纾","紓"],["线","線"],["绀","紺"],["绁","紲"],["绂","紱"],["练","練"],["组","組"],["绅","紳"],["细","細"],["织","織"],["终","終"],["绉","縐"],["绊","絆"],["绋","紼"],["绌","絀"],["绍","紹"],["绎","繹"],["经","經"],["绐","紿"],["绑","綁"],["绒","絨"],["结","結"],["绔","褲"],["绕","繞"],["绖","絰"],["绗","絎"],["绘","繪"],["给","給"],["绚","絢"],["绛","絳"],["络","絡"],["绝","絕"],["绞","絞"],["统","統"],["绠","綆"],["绡","綃"],["绢","絹"],["绣","繡"],["绤","綌"],["绥","綏"],["绦","絛"],["继","繼"],["绨","綈"],["绩","績"],["绪","緒"],["绫","綾"],["续","續"],["绮","綺"],["绯","緋"],["绰","綽"],["绱","鞜"],["绲","緄"],["绳","繩"],["维","維"],["绵","綿"],["绶","綬"],["绷","繃"],["绸","綢"],["绹","綯"],["绺","綹"],["绻","綣"],["综","綜"],["绽","綻"],["绾","綰"],["绿","綠"],["缀","綴"],["缁","緇"],["缂","緙"],["缃","緗"],["缄","緘"],["缅","緬"],["缆","纜"],["缇","緹"],["缈","緲"],["缉","緝"],["缊","縕"],["缋","繢"],["缌","緦"],["缍","綞"],["缎","緞"],["缏","緶"],["缐","線"],["缑","緱"],["缒","縋"],["缓","緩"],["缔","締"],["缕","縷"],["编","編"],["缗","緡"],["缘","緣"],["缙","縉"],["缚","縛"],["缛","縟"],["缜","縝"],["缝","縫"],["缞","縗"],["缟","縞"],["缠","纏"],["缡","縭"],["缢","縊"],["缣","縑"],["缤","繽"],["缥","縹"],["缦","縵"],["缧","縲"],["缨","纓"],["缩","縮"],["缪","繆"],["缫","繅"],["缬","纈"],["缭","繚"],["缮","繕"],["缯","繒"],["缰","韁"],["缱","繾"],["缲","繰"],["缳","繯"],["缴","繳"],["缵","纘"],["罂","罌"],["罗","羅"],["罚","罰"],["罢","罷"],["罴","羆"],["羁","羈"],["羗","羌"],["羟","羥"],["羡","羨"],["羣","群"],["羮","羹"],["翘","翹"],["翙","翽"],["翚","翬"],["耢","勞"],["耥","尚"],["耧","耬"],["耸","聳"],["耻","恥"],["聂","聶"],["聋","聾"],["职","職"],["聍","聹"],["联","聯"],["聩","聵"],["聪","聰"],["肀","聿"],["肃","肅"],["肠","腸"],["肤","膚"],["肷","欠"],["肾","腎"],["肿","腫"],["胀","脹"],["胁","脅"],["胆","膽"],["胧","朧"],["胨","東"],["胪","臚"],["胫","脛"],["胶","膠"],["脉","脈"],["脍","膾"],["脏","髒"],["脐","臍"],["脑","腦"],["脓","膿"],["脔","臠"],["脚","腳"],["脱","脫"],["脲","反"],["脶","腡"],["脸","臉"],["腭","齶"],["腻","膩"],["腽","膃"],["腾","騰"],["膑","臏"],["臓","摹"],["臜","臢"],["舆","輿"],["舣","艤"],["舰","艦"],["舱","艙"],["舻","艫"],["艰","艱"],["艹","艸"],["艺","藝"],["节","節"],["芈","羋"],["芗","薌"],["芜","蕪"],["芦","蘆"],["苁","蓯"],["苇","葦"],["苋","莧"],["苌","萇"],["苍","蒼"],["苎","苧"],["苏","蘇"],["苘","萵"],["茎","莖"],["茏","蘢"],["茑","蔦"],["茔","塋"],["茕","煢"],["茧","繭"],["荆","荊"],["荚","莢"],["荛","蕘"],["荜","蓽"],["荞","蕎"],["荟","薈"],["荠","薺"],["荡","蕩"],["荣","榮"],["荤","葷"],["荥","滎"],["荦","犖"],["荧","熒"],["荨","蕁"],["荩","藎"],["荪","蓀"],["荫","蔭"],["荬","賣"],["荭","葒"],["荮","紂"],["药","藥"],["莅","蒞"],["莱","萊"],["莲","蓮"],["莳","蒔"],["莴","萵"],["获","獲"],["莸","蕕"],["莹","瑩"],["莺","鶯"],["莼","蓴"],["菭","恰"],["萚","蘀"],["萝","蘿"],["萤","螢"],["营","營"],["萦","縈"],["萧","蕭"],["萨","薩"],["葱","蔥"],["蒇","蕆"],["蒉","蕢"],["蒋","蔣"],["蒌","蔞"],["蓝","藍"],["蓟","薊"],["蓠","蘺"],["蓦","驀"],["蔷","薔"],["蔹","蘞"],["蔺","藺"],["蔼","藹"],["蕲","蘄"],["蕴","蘊"],["薮","藪"],["藁","槁"],["藓","蘚"],["蘖","蘗"],["虏","虜"],["虑","慮"],["虚","虛"],["虬","虯"],["虮","蟣"],["虽","雖"],["虾","蝦"],["虿","蠆"],["蚀","蝕"],["蚁","蟻"],["蚂","螞"],["蚕","蠶"],["蚬","蜆"],["蛊","蠱"],["蛎","蠣"],["蛏","蟶"],["蛮","蠻"],["蛰","蟄"],["蛱","蛺"],["蛲","蟯"],["蛳","螄"],["蛴","蠐"],["蜕","蛻"],["蜖","汀"],["蜗","蝸"],["蝇","蠅"],["蝈","蟈"],["蝉","蟬"],["蝼","螻"],["蝾","蠑"],["蝿","蠅"],["螀","螿"],["螨","顢"],["蟏","蠨"],["蟮","蟺"],["蠎","蟒"],["衅","釁"],["衔","銜"],["衤","衣"],["补","補"],["衬","襯"],["衮","袞"],["袄","襖"],["袅","裊"],["袆","褘"],["袭","襲"],["袯","襏"],["袴","褲"],["装","裝"],["裆","襠"],["裈","褌"],["裢","褳"],["裣","襝"],["裤","褲"],["裥","襉"],["褛","褸"],["褴","襤"],["襕","襴"],["覇","霸"],["覚","覺"],["覧","覽"],["覩","睹"],["见","見"],["观","觀"],["规","規"],["觅","覓"],["视","視"],["觇","覘"],["览","覽"],["觉","覺"],["觊","覬"],["觋","覡"],["觌","覿"],["觎","覦"],["觏","覯"],["觐","覲"],["觑","覷"],["觗","觝"],["觞","觴"],["触","觸"],["觯","觶"],["訡","吟"],["詟","讋"],["詤","謊"],["誀","浴"],["誉","譽"],["誊","謄"],["説","說"],["読","讀"],["讁","謫"],["讠","言"],["计","計"],["订","訂"],["讣","訃"],["认","認"],["讥","譏"],["讦","訐"],["讧","訌"],["讨","討"],["让","讓"],["讪","訕"],["讫","訖"],["训","訓"],["议","議"],["讯","訊"],["记","記"],["讱","訒"],["讲","講"],["讳","諱"],["讴","謳"],["讵","詎"],["讶","訝"],["讷","訥"],["许","許"],["讹","訛"],["论","論"],["讼","訟"],["讽","諷"],["设","設"],["访","訪"],["诀","訣"],["证","證"],["诂","詁"],["诃","訶"],["评","評"],["诅","詛"],["识","識"],["诇","詗"],["诈","詐"],["诉","訴"],["诊","診"],["诋","詆"],["诌","謅"],["词","詞"],["诎","詘"],["诏","詔"],["诐","詖"],["译","譯"],["诒","詒"],["诓","誆"],["诔","誄"],["试","試"],["诖","詿"],["诗","詩"],["诘","詰"],["诙","詼"],["诚","誠"],["诛","誅"],["诜","詵"],["话","話"],["诞","誕"],["诟","詬"],["诠","詮"],["诡","詭"],["询","詢"],["诣","詣"],["诤","諍"],["该","該"],["详","詳"],["诧","詫"],["诨","諢"],["诩","詡"],["诪","譸"],["诫","誡"],["诬","誣"],["语","語"],["诮","誚"],["误","誤"],["诰","誥"],["诱","誘"],["诲","誨"],["诳","誑"],["说","說"],["诵","誦"],["诶","誒"],["请","請"],["诸","諸"],["诹","諏"],["诺","諾"],["读","讀"],["诼","諑"],["诽","誹"],["课","課"],["诿","諉"],["谀","諛"],["谁","誰"],["谂","諗"],["调","調"],["谄","諂"],["谅","諒"],["谆","諄"],["谇","誶"],["谈","談"],["谊","誼"],["谋","謀"],["谌","諶"],["谍","諜"],["谎","謊"],["谏","諫"],["谐","諧"],["谑","謔"],["谒","謁"],["谓","謂"],["谔","諤"],["谕","諭"],["谖","諼"],["谗","讒"],["谘","諮"],["谙","諳"],["谚","諺"],["谛","諦"],["谜","謎"],["谝","諞"],["谞","住"],["谟","謨"],["谠","讜"],["谡","謖"],["谢","謝"],["谣","謠"],["谤","謗"],["谥","謚"],["谦","謙"],["谧","謐"],["谨","謹"],["谩","謾"],["谪","謫"],["谫","譾"],["谬","謬"],["谭","譚"],["谮","譖"],["谯","譙"],["谰","讕"],["谱","譜"],["谲","譎"],["谳","讞"],["谴","譴"],["谵","譫"],["谶","讖"],["豮","豶"],["貭","亍"],["貮","貳"],["賍","贓"],["賎","賤"],["賖","賒"],["賘","髒"],["贋","贗"],["贘","償"],["贝","貝"],["贞","貞"],["负","負"],["贡","貢"],["财","財"],["责","責"],["贤","賢"],["败","敗"],["账","賬"],["货","貨"],["质","質"],["贩","販"],["贪","貪"],["贫","貧"],["贬","貶"],["购","購"],["贮","貯"],["贯","貫"],["贰","貳"],["贱","賤"],["贲","賁"],["贳","貰"],["贴","貼"],["贵","貴"],["贶","貺"],["贷","貸"],["贸","貿"],["费","費"],["贺","賀"],["贻","貽"],["贼","賊"],["贽","贄"],["贾","賈"],["贿","賄"],["赀","貲"],["赁","賃"],["赂","賂"],["赃","贓"],["资","資"],["赅","賅"],["赆","贐"],["赇","賕"],["赈","賑"],["赉","賚"],["赊","賒"],["赋","賦"],["赌","賭"],["赍","齎"],["赎","贖"],["赏","賞"],["赐","賜"],["赑","贔"],["赒","賙"],["赓","賡"],["赔","賠"],["赖","賴"],["赗","賵"],["赘","贅"],["赙","賻"],["赚","賺"],["赛","賽"],["赜","賾"],["赝","贗"],["赞","贊"],["赟","贇"],["赠","贈"],["赡","贍"],["赢","贏"],["赣","贛"],["赪","赬"],["赵","趙"],["趋","趨"],["趱","趲"],["趸","躉"],["跃","躍"],["跄","蹌"],["跞","躒"],["践","踐"],["跶","躂"],["跷","蹺"],["跸","蹕"],["跹","躚"],["跻","躋"],["踌","躊"],["踪","蹤"],["踬","躓"],["踯","躑"],["蹑","躡"],["蹒","蹣"],["蹰","躕"],["蹿","躥"],["躏","躪"],["躜","躦"],["躯","軀"],["车","車"],["轧","軋"],["轨","軌"],["轩","軒"],["轪","軑"],["轫","軔"],["转","轉"],["轭","軛"],["轮","輪"],["软","軟"],["轰","轟"],["轱","古"],["轲","軻"],["轳","轤"],["轴","軸"],["轵","軹"],["轶","軼"],["轷","乎"],["轸","軫"],["轹","轢"],["轺","軺"],["轻","輕"],["轼","軾"],["载","載"],["轾","輊"],["轿","轎"],["辀","輈"],["辁","輇"],["辂","輅"],["较","較"],["辄","輒"],["辅","輔"],["辆","輛"],["辇","輦"],["辈","輩"],["辉","輝"],["辊","輥"],["辋","輞"],["辌","輬"],["辍","輟"],["辎","輜"],["辏","輳"],["辐","輻"],["辑","輯"],["辒","轀"],["输","輸"],["辔","轡"],["辕","轅"],["辖","轄"],["辗","輾"],["辘","轆"],["辙","轍"],["辚","轔"],["辞","辭"],["辩","辯"],["辫","辮"],["辬","辨"],["边","邊"],["辽","遼"],["达","達"],["迁","遷"],["过","過"],["迈","邁"],["运","運"],["还","還"],["这","這"],["进","進"],["远","遠"],["违","違"],["连","連"],["迟","遲"],["迩","邇"],["迳","逕"],["迹","跡"],["选","選"],["逊","遜"],["递","遞"],["逦","邐"],["逻","邏"],["遗","遺"],["遥","遙"],["邓","鄧"],["邝","鄺"],["邬","鄔"],["邮","郵"],["邹","鄒"],["邺","鄴"],["邻","鄰"],["郄","卻"],["郏","郟"],["郐","鄶"],["郑","鄭"],["郓","鄆"],["郦","酈"],["郧","鄖"],["郷","鄉"],["郸","鄲"],["鄊","鄉"],["鄕","鄉"],["鄷","酆"],["酝","醞"],["酦","醱"],["酱","醬"],["酽","釅"],["酾","釃"],["酿","釀"],["释","釋"],["釡","斧"],["鉴","鑒"],["銮","鑾"],["錾","鏨"],["鎻","鎖"],["钅","金"],["钆","釓"],["钇","釔"],["针","針"],["钉","釘"],["钊","釗"],["钋","釙"],["钌","釕"],["钍","釷"],["钏","釧"],["钐","釤"],["钑","鈒"],["钒","釩"],["钓","釣"],["钔","鍆"],["钕","釹"],["钖","鍚"],["钗","釵"],["钘","鈃"],["钙","鈣"],["钚","鈽"],["钛","鈦"],["钜","鉅"],["钝","鈍"],["钞","鈔"],["钟","鐘"],["钠","鈉"],["钡","鋇"],["钢","鋼"],["钣","鈑"],["钤","鈐"],["钥","鑰"],["钦","欽"],["钧","鈞"],["钨","鎢"],["钩","鉤"],["钪","鈧"],["钫","鈁"],["钬","鈥"],["钮","鈕"],["钯","鈀"],["钰","鈺"],["钱","錢"],["钲","鉦"],["钳","鉗"],["钴","鈷"],["钵","缽"],["钶","鈳"],["钸","鈽"],["钹","鈸"],["钺","鉞"],["钻","鑽"],["钼","鉬"],["钽","鉭"],["钾","鉀"],["钿","鈿"],["铀","鈾"],["铁","鐵"],["铂","鉑"],["铃","鈴"],["铄","鑠"],["铅","鉛"],["铆","鉚"],["铈","鈰"],["铉","鉉"],["铊","鉈"],["铋","鉍"],["铌","鈮"],["铍","鈹"],["铎","鐸"],["铏","鉶"],["铐","銬"],["铑","銠"],["铒","鉺"],["铓","鋩"],["铔","錏"],["铕","銪"],["铖","鋮"],["铗","鋏"],["铘","邪"],["铙","鐃"],["铚","銍"],["铛","鐺"],["铜","銅"],["铝","鋁"],["铞","吊"],["铟","銦"],["铠","鎧"],["铡","鍘"],["铢","銖"],["铣","銑"],["铤","鋌"],["铥","銩"],["铦","銛"],["铧","鏵"],["铨","銓"],["铩","鎩"],["铪","鉿"],["铫","銚"],["铬","鉻"],["铭","銘"],["铮","錚"],["铯","銫"],["铰","鉸"],["铱","銥"],["铲","鏟"],["铳","銃"],["铴","鐋"],["铵","銨"],["银","銀"],["铷","銣"],["铸","鑄"],["铹","鐒"],["铺","鋪"],["铻","鋙"],["铼","錸"],["铽","鋱"],["链","鏈"],["铿","鏗"],["销","銷"],["锁","鎖"],["锂","鋰"],["锃","呈"],["锄","鋤"],["锅","鍋"],["锆","鋯"],["锇","鋨"],["锈","鏽"],["锉","銼"],["锊","鋝"],["锋","鋒"],["锌","鋅"],["锍","琉"],["锎","鉲"],["锏","閒"],["锐","銳"],["锑","銻"],["锒","鋃"],["锓","鋟"],["锔","鋦"],["锕","錒"],["锖","錆"],["锗","鍺"],["锘","若"],["错","錯"],["锚","錨"],["锛","錛"],["锜","錡"],["锝","鎝"],["锞","錁"],["锟","錕"],["锠","琛"],["锡","錫"],["锢","錮"],["锣","鑼"],["锤","錘"],["锥","錐"],["锦","錦"],["锧","鑕"],["锨","杴"],["锪","忽"],["锫","培"],["锬","錟"],["锭","錠"],["键","鍵"],["锯","鋸"],["锰","錳"],["锱","錙"],["锲","鍥"],["锴","鍇"],["锵","鏘"],["锶","鍶"],["锷","鍔"],["锸","鍤"],["锹","鍬"],["锺","鍾"],["锻","鍛"],["锼","鎪"],["锽","鍠"],["锾","鍰"],["锿","鑀"],["镀","鍍"],["镁","鎂"],["镂","鏤"],["镃","鎡"],["镄","鐨"],["镅","鋂"],["镆","鏌"],["镇","鎮"],["镈","鎛"],["镉","鎘"],["镊","鑷"],["镋","钂"],["镌","鐫"],["镍","鎳"],["镎","拿"],["镏","鎦"],["镐","鎬"],["镑","鎊"],["镒","鎰"],["镓","鎵"],["镔","鑌"],["镕","鎔"],["镖","鏢"],["镗","鏜"],["镘","鏝"],["镙","鏍"],["镛","鏞"],["镜","鏡"],["镝","鏑"],["镞","鏃"],["镟","鏇"],["镠","鏐"],["镡","鐔"],["镢","钁"],["镣","鐐"],["镤","鏷"],["镥","魯"],["镧","鑭"],["镨","鐠"],["镩","串"],["镪","鏹"],["镫","鐙"],["镬","鑊"],["镭","鐳"],["镮","鐶"],["镯","鐲"],["镰","鐮"],["镱","鐿"],["镲","察"],["镳","鑣"],["镴","鑞"],["镵","鑱"],["镶","鑲"],["长","長"],["閲","閱"],["门","門"],["闩","閂"],["闪","閃"],["闫","閆"],["闬","閈"],["闭","閉"],["问","問"],["闯","闖"],["闰","閏"],["闱","闈"],["闲","閒"],["闳","閎"],["间","間"],["闵","閔"],["闶","閌"],["闷","悶"],["闸","閘"],["闹","鬧"],["闺","閨"],["闻","聞"],["闼","闥"],["闽","閩"],["闾","閭"],["闿","闓"],["阀","閥"],["阁","閣"],["阂","閡"],["阃","閫"],["阄","鬮"],["阅","閱"],["阆","閬"],["阇","闍"],["阈","閾"],["阉","閹"],["阊","閶"],["阋","鬩"],["阌","閿"],["阍","閽"],["阎","閻"],["阏","閼"],["阐","闡"],["阑","闌"],["阒","闃"],["阓","闠"],["阔","闊"],["阕","闋"],["阖","闔"],["阗","闐"],["阘","闒"],["阙","闕"],["阚","闞"],["阛","闤"],["阝","阜"],["队","隊"],["阳","陽"],["阴","陰"],["阵","陣"],["阶","階"],["际","際"],["陆","陸"],["陇","隴"],["陈","陳"],["陉","陘"],["陕","陝"],["陧","隉"],["陨","隕"],["险","險"],["隂","陰"],["隌","暗"],["随","隨"],["隐","隱"],["隠","隱"],["隷","隸"],["隽","雋"],["难","難"],["雏","雛"],["雠","讎"],["雳","靂"],["雾","霧"],["霁","霽"],["霊","靈"],["霭","靄"],["靓","靚"],["静","靜"],["靥","靨"],["鞑","韃"],["鞒","轎"],["鞯","韉"],["鞲","韝"],["鞽","轎"],["韦","韋"],["韧","韌"],["韨","韍"],["韩","韓"],["韪","韙"],["韫","韞"],["韬","韜"],["韯","籤"],["韲","齋"],["韵","韻"],["顋","腮"],["顔","顏"],["顕","顯"],["页","頁"],["顶","頂"],["顷","頃"],["顸","頇"],["项","項"],["顺","順"],["须","須"],["顼","頊"],["顽","頑"],["顾","顧"],["顿","頓"],["颀","頎"],["颁","頒"],["颂","頌"],["颃","頏"],["预","預"],["颅","顱"],["领","領"],["颇","頗"],["颈","頸"],["颉","頡"],["颊","頰"],["颋","頲"],["颌","頜"],["颍","潁"],["颎","熲"],["颏","頦"],["颐","頤"],["频","頻"],["颓","頹"],["颔","頷"],["颕","穎"],["颖","穎"],["颗","顆"],["题","題"],["颙","顒"],["颚","顎"],["颛","顓"],["颜","顏"],["额","額"],["颞","顳"],["颟","顢"],["颠","顛"],["颡","顙"],["颢","顥"],["颣","纇"],["颤","顫"],["颥","須"],["颦","顰"],["颧","顴"],["颷","飆"],["风","風"],["飏","颺"],["飐","颭"],["飑","颮"],["飒","颯"],["飓","颶"],["飔","颸"],["飕","颼"],["飖","颻"],["飗","飀"],["飘","飄"],["飙","飆"],["飚","飆"],["飞","飛"],["飨","饗"],["飬","養"],["飮","飲"],["飱","餐"],["餍","饜"],["饣","食"],["饤","飣"],["饥","飢"],["饦","飥"],["饧","餳"],["饨","飩"],["饩","餼"],["饪","飪"],["饫","飫"],["饬","飭"],["饭","飯"],["饮","飲"],["饯","餞"],["饰","飾"],["饱","飽"],["饲","飼"],["饴","飴"],["饵","餌"],["饶","饒"],["饷","餉"],["饺","餃"],["饼","餅"],["饽","餑"],["饾","餖"],["饿","餓"],["馀","餘"],["馁","餒"],["馂","餕"],["馄","餛"],["馅","餡"],["馆","館"],["馇","查"],["馈","饋"],["馉","稹"],["馊","餿"],["馋","饞"],["馌","饁"],["馍","饃"],["馎","餺"],["馏","餾"],["馐","饈"],["馑","饉"],["馒","饅"],["馓","饊"],["馔","饌"],["馕","囊"],["马","馬"],["驭","馭"],["驮","馱"],["驯","馴"],["驰","馳"],["驱","驅"],["驲","馹"],["驳","駁"],["驴","驢"],["驵","駔"],["驶","駛"],["驷","駟"],["驸","駙"],["驹","駒"],["驺","騶"],["驻","駐"],["驼","駝"],["驽","駑"],["驾","駕"],["驿","驛"],["骀","駘"],["骁","驍"],["骂","罵"],["骃","駰"],["骄","驕"],["骅","驊"],["骆","駱"],["骇","駭"],["骈","駢"],["骊","驪"],["骋","騁"],["验","驗"],["骍","騂"],["骎","駸"],["骏","駿"],["骐","騏"],["骑","騎"],["骒","騍"],["骓","騅"],["骕","驌"],["骖","驂"],["骗","騙"],["骘","騭"],["骙","騤"],["骚","騷"],["骛","騖"],["骜","驁"],["骝","騮"],["骞","騫"],["骟","騸"],["骠","驃"],["骡","騾"],["骢","驄"],["骣","驏"],["骤","驟"],["骥","驥"],["骦","驦"],["骧","驤"],["髅","髏"],["髋","髖"],["髌","髕"],["鬓","鬢"],["魇","魘"],["魉","魎"],["鱼","魚"],["鱿","魷"],["鲀","魨"],["鲁","魯"],["鲂","魴"],["鲅","鱍"],["鲆","平"],["鲇","占"],["鲈","鱸"],["鲊","鮓"],["鲋","鮒"],["鲍","鮑"],["鲎","鱟"],["鲐","鮐"],["鲑","鮭"],["鲒","鮚"],["鲔","鮪"],["鲕","鮞"],["鲖","鮦"],["鲙","鱠"],["鲚","鱭"],["鲛","鮫"],["鲜","鮮"],["鲞","鯗"],["鲟","鱘"],["鲠","鯁"],["鲡","鱺"],["鲢","鰱"],["鲣","鰹"],["鲤","鯉"],["鲥","鰣"],["鲦","鰷"],["鲧","鯀"],["鲨","鯊"],["鲩","鯇"],["鲫","鯽"],["鲭","鯖"],["鲮","鯪"],["鲰","鯫"],["鲱","鯡"],["鲲","鯤"],["鲳","鯧"],["鲴","固"],["鲵","鯢"],["鲶","鯰"],["鲷","鯛"],["鲸","鯨"],["鲺","虱"],["鲻","鯔"],["鲼","賁"],["鲽","鰈"],["鲿","鱨"],["鳀","鯷"],["鳃","鰓"],["鳄","鱷"],["鳅","鰍"],["鳆","鰒"],["鳇","鰉"],["鳊","扁"],["鳋","蚤"],["鳌","鰲"],["鳍","鰭"],["鳏","鰥"],["鳐","鰩"],["鳒","鰜"],["鳔","鰾"],["鳕","鱈"],["鳖","鱉"],["鳗","鰻"],["鳘","鱉"],["鳙","庸"],["鳛","鰼"],["鳜","鱖"],["鳝","鱔"],["鳞","鱗"],["鳟","鱒"],["鳡","鰲"],["鳢","鱧"],["鳣","鱣"],["鸟","鳥"],["鸠","鳩"],["鸡","雞"],["鸢","鳶"],["鸣","鳴"],["鸤","鳲"],["鸥","鷗"],["鸦","鴉"],["鸧","鶬"],["鸨","鴇"],["鸩","鴆"],["鸪","鴣"],["鸬","鸕"],["鸭","鴨"],["鸮","鴞"],["鸯","鴦"],["鸰","鴒"],["鸱","鴟"],["鸲","鴝"],["鸳","鴛"],["鸵","鴕"],["鸶","鷥"],["鸷","鷙"],["鸹","鴰"],["鸺","鵂"],["鸼","鵃"],["鸽","鴿"],["鸾","鸞"],["鸿","鴻"],["鹁","鵓"],["鹂","鸝"],["鹃","鵑"],["鹄","鵠"],["鹅","鵝"],["鹆","鵒"],["鹇","鷳"],["鹈","鵜"],["鹉","鵡"],["鹊","鵲"],["鹋","苗"],["鹌","鵪"],["鹎","鵯"],["鹏","鵬"],["鹑","鶉"],["鹒","鶊"],["鹓","鵷"],["鹔","鷫"],["鹕","鶘"],["鹖","鶡"],["鹗","鶚"],["鹘","鶻"],["鹙","鶖"],["鹚","鶿"],["鹛","眉"],["鹜","鶩"],["鹝","鷊"],["鹞","鷂"],["鹠","鶹"],["鹡","鶺"],["鹢","鷁"],["鹣","鶼"],["鹤","鶴"],["鹥","鷖"],["鹦","鸚"],["鹧","鷓"],["鹨","鷚"],["鹩","鷯"],["鹪","鷦"],["鹫","鷲"],["鹬","鷸"],["鹭","鷺"],["鹯","鸇"],["鹰","鷹"],["鹱","獲"],["鹲","鸏"],["鹳","鸛"],["鹾","鹺"],["麦","麥"],["麸","麩"],["麹","麴"],["麺","麵"],["麽","麼"],["黄","黃"],["黉","黌"],["黒","黑"],["黙","默"],["黡","黶"],["黩","黷"],["黪","黲"],["黾","黽"],["鼋","黿"],["鼍","鼉"],["鼗","鞀"],["鼹","鼴"],["齄","皻"],["齐","齊"],["齑","齏"],["齿","齒"],["龀","齔"],["龁","齕"],["龂","齗"],["龃","齟"],["龄","齡"],["龅","齙"],["龆","齠"],["龇","齜"],["龈","齦"],["龉","齬"],["龊","齪"],["龋","齲"],["龌","齷"],["龙","龍"],["龚","龔"],["龛","龕"],["龟","龜"]]);function i(e){if(!e)return"";let t="";for(let n=0;n<e.length;n++)t+=r.get(e[n])||e[n];return t}var s=n(38),c=n(2);function l(e){return Promise.reject(new Error("NO_RESULT"))}function u(e){return Promise.reject(new Error("NETWORK_ERROR"))}function d(e){const t=new Error("MANUAL_VERIFICATION");return t.manualVerification=e,Promise.reject(t)}function h(e){return e&&"MANUAL_VERIFICATION"===e.message&&e.manualVerification&&"string"==typeof e.manualVerification.url}function g(e){return{result:{type:"MANUAL_VERIFICATION",...e}}}function p(e){return e&&"MANUAL_VERIFICATION"===e.type&&"string"==typeof e.url}async function f(e){return null==e||/zh-TW|zh-HK/i.test(e)?i:null}function m(e,...t){if(!e)return"";let n="",a=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(a=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const r=o.textContent||"";return a?a(r):r}const y={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function b(e,{mode:t="innerHTML",selector:n,transform:a,host:r,config:i=y}={}){const l=n?e.querySelector(n):e;if(!l)return"";if(r){const e=e=>{e.getAttribute("href")&&e.setAttribute("href",I(r,e,"href")),e.getAttribute("src")&&e.setAttribute("src",I(r,e,"src")),Object(c.g)()&&e.getAttribute("srcset")&&e.setAttribute("srcset",e.getAttribute("srcset").replace(/(,| |^)\/\//g,(e,t)=>t+"https://"))};(Object(s.a)(l,"a")||Object(s.a)(l,"img"))&&e(l),l.querySelectorAll("a").forEach(e),l.querySelectorAll("img").forEach(e)}const u=o.a.sanitize(l,{...i,RETURN_DOM_FRAGMENT:!0}),d=u.firstChild?u.firstChild[t]:"";return a?a(d):d}function w(e,t,n={}){return b(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function M(e,t,n={}){return b(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function O(e,t){const n=e.querySelector(t);n&&n.remove()}function j(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function N(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function I(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const a=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?a+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},33:function(e,t,n){"use strict";n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return f})),n.d(t,"k",(function(){return m})),n.d(t,"f",(function(){return y})),n.d(t,"m",(function(){return b})),n.d(t,"b",(function(){return w})),n.d(t,"j",(function(){return M})),n.d(t,"e",(function(){return O})),n.d(t,"l",(function(){return N})),n.d(t,"g",(function(){return I})),n.d(t,"n",(function(){return C})),n.d(t,"c",(function(){return D})),n.d(t,"a",(function(){return E})),n.d(t,"d",(function(){return A}));var a=n(90),o=n.n(a),r=n(78),i=n(185),s=n(1),c=n(100),l=n(67),u=n(81),d=n(10);function h(e){return{v:1,d:o.a.deflate(JSON.stringify(e),{to:"string"})}}function g(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}function p(e,t){const n=/^%%_(\S+)_%%$/.exec(e);return n&&t("common:profile."+n[1])||e}async function f(){let e=[],t=[],n="";const a=await s.c.sync.get(["profileIDList","activeProfileID"]);if(a.profileIDList&&(t=a.profileIDList.filter(e=>Boolean(e&&"string"==typeof e.id&&"string"==typeof e.name))),a.activeProfileID&&(n=a.activeProfileID),t.length>0)for(const{id:n}of t){const t=await y(n);e.push(t?Object(i.a)(t):Object(r.b)(n))}else({profileIDList:t,profiles:e}=Object(r.a)()),n=t[0].id;n||(n=t[0].id);let o=e.find(({id:e})=>e===n);o||(o=e[0],n=o.id),await s.c.sync.set({profileIDList:t,activeProfileID:n});for(const t of e)await b(t);return o}async function m(){const{profileIDList:e}=await s.c.sync.get("profileIDList");return e&&await s.c.sync.remove([...e.map(({id:e})=>e),"profileIDList","activeProfileID","configProfileIDs","activeConfigID"]),f()}async function y(e){return g((await s.c.sync.get(e))[e])}async function b(e){return s.c.sync.set({[e.id]:h(e)})}async function w(e){const t=e.id,n=await I();return s.c.sync.set({profileIDList:[...n,e],[t]:h(Object(r.b)(t))})}async function M(e){const t=await j();let n=await I();return n=n.filter(t=>t.id!==e),t===e&&await N(n[0].id),await C(n),s.c.sync.remove(e)}async function O(){const e=await j();if(e){const t=await y(e);if(t)return t}return Object(r.b)()}async function j(){return(await s.c.sync.get("activeProfileID")).activeProfileID||""}function N(e){return s.c.sync.set({activeProfileID:e})}async function I(){return(await s.c.sync.get("profileIDList")).profileIDList||[]}function C(e){return s.c.sync.set({profileIDList:e})}function D(e){s.c.sync.addListener("profileIDList",({profileIDList:t})=>{t&&t.newValue&&e(t)})}async function E(e){let t=await j();s.c.sync.addListener(n=>{if(n.activeProfileID){const{newValue:a,oldValue:o}=n.activeProfileID;a&&(t=a,o?s.c.sync.get([o,a]).then(t=>{t[a]&&e({newProfile:g(t[a]),oldProfile:g(t[o])})}):y(a).then(t=>{t&&e({newProfile:t})}))}if(t&&n[t]){const{newValue:a,oldValue:o}=n[t];if(a)return void e({newProfile:g(a),oldProfile:g(o)})}})}function A(){return Object(c.a)(Object(l.a)(I()),Object(u.a)(D).pipe(Object(d.a)(e=>(Array.isArray(e)?e[0]:e).newValue)))}},354:function(e,t,n){"use strict";n.d(t,"a",(function(){return Z}));var a=n(23),o=n(33),r=n(2),i=n(11),s=n(1),c=n(0),l=n.n(c),u=n(125),d=n(190),h=n(136),g=n(736),p=n(404),f=n(10),m=n(508),y=n(9);const b=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn-dir",title:t("tip.historyBack"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M 7.191 15.999 L 21.643 1.548 C 21.998 1.192 21.998 0.622 21.643 0.267 C 21.288 -0.089 20.718 -0.089 20.362 0.267 L 5.267 15.362 C 4.911 15.718 4.911 16.288 5.267 16.643 L 20.362 31.732 C 20.537 31.906 20.771 32 20.999 32 C 21.227 32 21.462 31.913 21.636 31.732 C 21.992 31.377 21.992 30.807 21.636 30.451 L 7.191 15.999 Z"})))},w=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn-dir",title:e.t("tip.historyNext"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},l.a.createElement("path",{d:"M 25.643 15.362 L 10.547 0.267 C 10.192 -0.089 9.622 -0.089 9.267 0.267 C 8.911 0.622 8.911 1.192 9.267 1.547 L 23.718 15.999 L 9.267 30.451 C 8.911 30.806 8.911 31.376 9.267 31.732 C 9.441 31.906 9.676 32 9.904 32 C 10.132 32 10.366 31.913 10.541 31.732 L 25.636 16.636 C 25.992 16.288 25.992 15.711 25.643 15.362 Z"})))},M=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.searchText"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52.966 52.966"},l.a.createElement("path",{d:"M51.704 51.273L36.844 35.82c3.79-3.8 6.14-9.04 6.14-14.82 0-11.58-9.42-21-21-21s-21 9.42-21 21 9.42 21 21 21c5.082 0 9.747-1.817 13.383-4.832l14.895 15.49c.196.206.458.308.72.308.25 0 .5-.093.694-.28.398-.382.41-1.015.028-1.413zM21.984 40c-10.478 0-19-8.523-19-19s8.522-19 19-19 19 8.523 19 19-8.525 19-19 19z"})))},O=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openOptions"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 612 612"},l.a.createElement("path",{d:"M0 97.92v24.48h612V97.92H0zm0 220.32h612v-24.48H0v24.48zm0 195.84h612V489.6H0v24.48z"})))},j=e=>{const{t:t,isFav:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.addToNotebook"),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon-fav"+(n?" isActive":""),width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},l.a.createElement("path",{d:"M 23.363 2 C 20.105 2 17.3 4.65 16.001 7.42 C 14.701 4.65 11.896 2 8.637 2 C 4.145 2 0.5 5.646 0.5 10.138 C 0.5 19.278 9.719 21.673 16.001 30.708 C 21.939 21.729 31.5 18.986 31.5 10.138 C 31.5 5.646 27.855 2 23.363 2 Z"})))},N=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openHistory"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon-history",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},l.a.createElement("path",{d:"M34.688 3.315c-15.887 0-28.812 12.924-28.81 28.73-.012.25-.157 4.434 1.034 8.94l-3.88-2.262c-.965-.56-2.193-.235-2.76.727-.557.96-.233 2.195.728 2.755l9.095 5.302c.02.01.038.013.056.022.1.05.2.09.31.12.07.02.14.05.21.07.09.02.176.02.265.03.06.003.124.022.186.022.036 0 .07-.01.105-.015.034 0 .063.007.097.004.05-.003.097-.024.146-.032.097-.017.19-.038.28-.068.08-.028.157-.06.23-.095.086-.04.165-.085.24-.137.074-.046.14-.096.206-.15.07-.06.135-.125.198-.195.06-.067.11-.135.16-.207.026-.04.062-.07.086-.11.017-.03.017-.067.032-.1.03-.053.07-.1.096-.16l3.62-8.96c.417-1.03-.08-2.205-1.112-2.622-1.033-.413-2.207.083-2.624 1.115l-1.86 4.6c-1.24-4.145-1.1-8.406-1.093-8.523C9.92 18.455 21.04 7.34 34.7 7.34c13.663 0 24.78 11.116 24.78 24.78S48.357 56.9 34.694 56.9c-1.114 0-2.016.902-2.016 2.015s.9 2.02 2.012 2.02c15.89 0 28.81-12.925 28.81-28.81 0-15.89-12.923-28.814-28.81-28.814z"}),l.a.createElement("path",{d:"M33.916 36.002c.203.084.417.114.634.13.045.002.09.026.134.026.236 0 .465-.054.684-.134.06-.022.118-.054.177-.083.167-.08.32-.18.463-.3.03-.023.072-.033.103-.07L48.7 22.98c.788-.79.788-2.064 0-2.852-.787-.788-2.062-.788-2.85 0l-11.633 11.63-10.44-4.37c-1.032-.432-2.208.052-2.64 1.08-.43 1.027.056 2.208 1.08 2.638L33.907 36c.002 0 .006 0 .01.002z"})))},I=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openNotebook"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 64 64"},l.a.createElement("path",{d:"M 57.389 0.966 L 6.612 0.966 C 5.699 0.966 4.957 1.525 4.957 2.217 L 4.957 61.783 C 4.955 62.282 5.342 62.734 5.949 62.933 C 6.16 63.001 6.385 63.036 6.612 63.034 C 7.023 63.032 7.417 62.917 7.723 62.709 L 32.003 46.006 L 56.282 62.709 C 57.227 63.354 58.742 62.983 59.008 62.041 C 59.033 61.956 59.044 61.871 59.044 61.783 L 59.044 2.217 C 59.044 1.525 58.306 0.966 57.389 0.966 Z M 33.111 43.392 C 32.478 42.954 31.508 42.954 30.875 43.392 L 8.266 58.955 L 8.266 3.469 L 55.735 3.469 L 55.735 58.955 L 33.111 43.392 Z"}),l.a.createElement("path",{d:"M 47.508 17.756 C 47.287 17.526 46.994 17.375 46.677 17.33 L 37.446 15.988 L 33.262 7.693 C 32.767 6.7 31.382 6.614 30.77 7.541 C 30.737 7.59 30.708 7.641 30.68 7.693 L 26.555 16.06 L 17.325 17.401 C 16.225 17.56 15.712 18.849 16.399 19.722 C 16.44 19.774 16.484 19.822 16.532 19.867 L 23.252 26.3 L 21.723 35.561 C 21.541 36.655 22.613 37.537 23.653 37.146 C 23.708 37.127 23.763 37.102 23.816 37.076 L 32.066 32.748 L 40.316 37.076 C 41.3 37.59 42.472 36.845 42.425 35.737 C 42.423 35.679 42.417 35.619 42.407 35.561 L 40.792 26.3 L 47.472 19.794 C 48.045 19.243 48.061 18.33 47.508 17.756 Z M 38.238 24.857 C 37.899 25.186 37.744 25.661 37.821 26.127 L 39.031 33.165 L 32.687 29.835 C 32.265 29.613 31.765 29.613 31.344 29.835 L 25.013 33.165 L 26.223 26.113 C 26.3 25.646 26.145 25.174 25.806 24.844 L 20.685 19.853 L 27.768 18.743 C 28.236 18.672 28.641 18.376 28.849 17.95 L 32.023 11.531 L 35.196 17.95 C 35.403 18.376 35.808 18.672 36.277 18.743 L 43.36 19.766 L 38.238 24.857 Z"})))},C=e=>{const{t:t,isPinned:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.pinPanel"),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 53.011 53.011"},l.a.createElement("path",{className:"menuBar-Btn_Icon-pin"+(n?" isActive":""),d:"M52.963 21.297c-.068-.33-.297-.603-.61-.727-8.573-3.416-16.172-.665-18.36.288L19.113 8.2C19.634 3.632 17.17.508 17.06.372c-.18-.22-.442-.356-.725-.372-.282-.006-.56.09-.76.292L.32 15.546c-.202.2-.308.48-.29.765.015.285.152.55.375.727 2.775 2.202 6.35 2.167 7.726 2.055l12.722 14.953c-.868 2.23-3.52 10.27-.307 18.337.124.313.397.54.727.61.067.013.135.02.202.02.263 0 .518-.104.707-.293l14.57-14.57 13.57 13.57c.196.194.452.292.708.292s.512-.098.707-.293c.39-.392.39-1.024 0-1.415l-13.57-13.57 14.527-14.528c.237-.238.34-.58.27-.91zm-17.65 15.458L21.89 50.18c-2.437-8.005.993-15.827 1.03-15.91.158-.352.1-.764-.15-1.058L9.31 17.39c-.19-.225-.473-.352-.764-.352-.05 0-.103.004-.154.013-.036.007-3.173.473-5.794-.954l13.5-13.5c.604 1.156 1.39 3.26.964 5.848-.058.346.07.697.338.924l15.785 13.43c.31.262.748.31 1.105.128.077-.04 7.378-3.695 15.87-1.017L35.313 36.754z"})))},D=e=>{const{t:t,isFocus:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip."+(n?"focusPanel":"unfocusPanel")),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 53 53"},n?l.a.createElement(l.a.Fragment,null,l.a.createElement("path",{d:"M 36.414 35 L 46 35 C 46.553 35 47 34.552 47 34 C 47 33.448 46.553 33 46 33 L 34 33 C 33.87 33 33.74 33.027 33.618 33.077 C 33.374 33.178 33.179 33.373 33.077 33.618 C 33.026 33.74 33 33.869 33 34 L 33 46 C 33 46.552 33.448 47 34 47 C 34.552 47 35 46.552 35 46 L 35 36.414 L 51.293 52.707 C 51.488 52.902 51.744 53 52 53 C 52.256 53 52.512 52.902 52.707 52.707 C 53.098 52.316 53.098 51.684 52.707 51.293 L 36.414 35 Z"}),l.a.createElement("path",{d:"M 16.584 17.999 L 6.999 17.999 C 6.447 17.999 5.999 18.447 5.999 18.999 C 5.999 19.551 6.447 19.999 6.999 19.999 L 18.999 19.999 C 19.129 19.999 19.259 19.972 19.381 19.922 C 19.625 19.821 19.82 19.626 19.922 19.381 C 19.973 19.259 19.999 19.129 19.999 18.999 L 19.999 6.999 C 19.999 6.447 19.551 5.999 18.999 5.999 C 18.447 5.999 17.999 6.447 17.999 6.999 L 17.999 16.585 L 1.707 0.293 C 1.316 -0.098 0.684 -0.098 0.293 0.293 C -0.098 0.684 -0.098 1.316 0.293 1.707 L 16.584 17.999 Z"}),l.a.createElement("path",{d:"M 19.382 33.077 C 19.26 33.027 19.13 33 19 33 L 7 33 C 6.448 33 6 33.448 6 34 C 6 34.552 6.448 35 7 35 L 16.586 35 L 0.293 51.293 C -0.098 51.684 -0.098 52.316 0.293 52.707 C 0.488 52.902 0.744 53 1 53 C 1.256 53 1.512 52.902 1.707 52.707 L 18 36.414 L 18 46 C 18 46.552 18.448 47 19 47 C 19.552 47 20 46.552 20 46 L 20 34 C 20 33.87 19.973 33.74 19.923 33.618 C 19.821 33.373 19.627 33.179 19.382 33.077 Z"}),l.a.createElement("path",{d:"M 33.618 19.923 C 33.74 19.973 33.87 20 34 20 L 46 20 C 46.553 20 47 19.552 47 19 C 47 18.448 46.553 18 46 18 L 36.414 18 L 52.707 1.707 C 53.098 1.316 53.098 0.684 52.707 0.293 C 52.316 -0.098 51.684 -0.098 51.293 0.293 L 35 16.586 L 35 7 C 35 6.448 34.552 6 34 6 C 33.448 6 33 6.448 33 7 L 33 19 C 33 19.13 33.027 19.26 33.077 19.382 C 33.179 19.627 33.373 19.821 33.618 19.923 Z"}),l.a.createElement("path",{d:"M 26.5 19 C 22.364 19 19 22.364 19 26.5 C 19 30.636 22.364 34 26.5 34 C 30.636 34 34 30.636 34 26.5 C 34 22.364 30.636 19 26.5 19 Z M 26.5 32 C 23.467 32 21 29.533 21 26.5 C 21 23.467 23.467 21 26.5 21 C 29.533 21 32 23.467 32 26.5 C 32 29.533 29.533 32 26.5 32 Z"})):l.a.createElement(l.a.Fragment,null,l.a.createElement("path",{d:"M 34 20 C 33.744 20 33.488 19.902 33.293 19.707 C 32.902 19.316 32.902 18.684 33.293 18.293 L 49.586 2 L 40 2 C 39.448 2 39 1.552 39 1 C 39 0.448 39.448 0 40 0 L 51.978 0 C 52.241 -0.006 52.506 0.092 52.707 0.293 C 52.908 0.494 53.006 0.759 53 1.022 L 53 13 C 53 13.552 52.552 14 52 14 C 51.448 14 51 13.552 51 13 L 51 3.414 L 34.707 19.707 C 34.512 19.902 34.256 20 34 20 Z"}),l.a.createElement("path",{d:"M 0.293 52.707 C 0.092 52.506 -0.006 52.241 0 51.978 L 0 40 C 0 39.448 0.448 39 1 39 C 1.552 39 2 39.448 2 40 L 2 49.586 L 18.293 33.293 C 18.684 32.902 19.316 32.902 19.707 33.293 C 20.098 33.684 20.098 34.316 19.707 34.707 L 3.414 51 L 13 51 C 13.552 51 14 51.448 14 52 C 14 52.552 13.552 53 13 53 L 1 53 C 0.879 53 0.764 52.979 0.658 52.94 C 0.602 52.919 0.548 52.894 0.498 52.865 C 0.424 52.822 0.355 52.769 0.293 52.707 Z"}),l.a.createElement("path",{d:"M 33.293 34.707 C 32.902 34.316 32.902 33.684 33.293 33.293 C 33.684 32.902 34.316 32.902 34.707 33.293 L 51 49.586 L 51 40 C 51 39.448 51.448 39 52 39 C 52.552 39 53 39.448 53 40 L 53 51.978 C 53.006 52.241 52.908 52.506 52.707 52.707 C 52.645 52.769 52.576 52.822 52.502 52.865 C 52.452 52.894 52.398 52.919 52.342 52.94 C 52.236 52.979 52.121 53 52 53 L 40 53 C 39.448 53 39 52.552 39 52 C 39 51.448 39.448 51 40 51 L 49.586 51 Z"}),l.a.createElement("path",{d:"M 18.999 19.999 C 18.743 19.999 18.487 19.901 18.292 19.706 L 2 3.414 L 2 13 C 2 13.552 1.552 14 1 14 C 0.448 14 0 13.552 0 13 L 0 1.022 C -0.006 0.759 0.092 0.494 0.293 0.293 C 0.494 0.092 0.759 -0.006 1.022 0 L 13 0 C 13.552 0 14 0.448 14 1 C 14 1.552 13.552 2 13 2 L 3.414 2 L 19.706 18.292 C 20.097 18.683 20.097 19.315 19.706 19.706 C 19.51 19.901 19.254 19.999 18.999 19.999 Z"}))))},E=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.closePanel"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 31.112 31.112"},l.a.createElement("path",{d:"M31.112 1.414L29.698 0 15.556 14.142 1.414 0 0 1.414l14.142 14.142L0 29.698l1.414 1.414L15.556 16.97l14.142 14.142 1.414-1.414L16.97 15.556"})))},A=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.sidebar"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},l.a.createElement("path",{d:"M 29.318 0 L 0.682 0 C 0.305 0 0 0.305 0 0.682 L 0 29.318 C 0 29.695 0.305 30 0.682 30 L 29.318 30 C 29.695 30 30 29.695 30 29.318 L 30 0.682 C 30 0.305 29.695 0 29.318 0 Z M 9.545 28.636 L 1.364 28.636 L 1.364 1.364 L 9.545 1.364 L 9.545 28.636 Z M 28.636 28.636 L 10.909 28.636 L 10.909 1.364 L 28.636 1.364 L 28.636 28.636 Z"})))};var z=n(94),T=n(30),x=n(256),L=n(112),S=n(39),v=n(187),_=n(88),k=n(182),P=n(92),U=n(67),B=n(121),R=n(140);const W=l.a.forwardRef((e,t)=>Object(x.a)(Object(h.a)(n=>n.pipe(Object(f.a)(([e])=>e),Object(S.a)(Boolean),Object(k.a)(),Object(p.a)(750),Object(B.a)(n=>Object(U.a)(s.a.send({type:"GET_SUGGESTS",payload:n}).catch(()=>[])).pipe(Object(f.a)(n=>l.a.createElement(R.a,{ref:t,list:n.map(e=>({key:e.entry,value:e.entry,label:l.a.createElement(l.a.Fragment,null,l.a.createElement("span",{className:"menuBar-SuggestsEntry"},e.entry),l.a.createElement("span",{className:"menuBar-SuggestsExplain"},e.explain))})),...e})),Object(m.a)(l.a.createElement(R.a,{...e}))))),[e.text]),()=>l.a.createElement(R.a,{...e}))),H=e=>{const t=Object(c.useMemo)(()=>e.text.replace(/\s+/g," "),[e.text]),[n,a]=Object(u.a)(P.a),[o,r]=Object(u.a)(P.a),[i,d]=Object(u.a)(T.b),p=Object(x.a)(Object(h.a)(e=>Object(g.a)([e,Object(L.a)(a.pipe(Object(S.a)(e=>!e)),r,d.pipe(Object(v.a)(0)),s.a.createStream("SEARCH_TEXT_BOX").pipe(Object(_.a)(!1)))]).pipe(Object(f.a)(([[e,t],n])=>Boolean(e&&t&&n)),Object(k.a)()),[e.enableSuggest,e.text]),!1),m=Object(x.a)(a),y=Object(c.useRef)(!1),b=Object(c.useRef)(null),w=Object(c.useRef)(null),O=Object(c.useRef)(()=>{b.current&&(b.current.focus(),b.current.select())}).current,j=t=>{y.current=!1,i(!1),e.onSearch("string"==typeof t?t:e.text),O()},N=()=>{!e.shouldFocus||y.current||p||O()};return Object(c.useLayoutEffect)(N,[]),Object(c.useEffect)(N,[e.text]),l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"menuBar-SearchBox_Wrap"+(m?" isExpand":"")},l.a.createElement("input",{type:"text",className:"menuBar-SearchBox",key:"search-box",ref:b,onChange:t=>{e.onInput(t.currentTarget.value),i(!0)},onKeyDown:t=>{if(t.nativeEvent.stopPropagation(),y.current=!0,"ArrowDown"===t.key){const e=w.current&&w.current.querySelector("button");e?e.focus():i(!0),t.preventDefault(),t.stopPropagation()}else"Enter"===t.key&&j(e.text)},onFocus:e=>{e.currentTarget.select(),n(e)},onBlur:n,value:t}),l.a.createElement(z.a,{classNames:"csst-menuBar-SearchBox_Suggests",in:p,timeout:100,mountOnEnter:!0,unmountOnExit:!0,onExited:()=>e.onHeightChanged(0)},()=>l.a.createElement("div",{className:"menuBar-SearchBox_Suggests"},l.a.createElement(W,{ref:w,text:t,onSelect:j,onFocus:o,onBlur:o,onArrowUpFirst:O,onClose:O,onHeightChanged:e.onHeightChanged})))),l.a.createElement(M,{t:e.t,onClick:j}))};var Q=n(138);const F=e=>{const{t:t}=Object(y.d)(["common"]),n=e.profiles.map(n=>({key:n.id,value:n.id,label:l.a.createElement("span",{className:"menuBar-ProfileItem"+(n.id===e.activeProfileId?" isActive":"")},Object(o.h)(n.name,t))}));return l.a.createElement(Q.a,{Button:Y,items:n,onBtnClick:()=>(s.a.send({type:"OPEN_URL",payload:{url:"options.html",self:!0}}),!1),onSelect:e.onSelectProfile,onHeightChanged:e.onHeightChanged})};function Y(e){const{t:t}=Object(y.d)(["content"]);return l.a.createElement(O,{...e,t:t,disabled:Object(r.i)()})}function K(e){return Object(m.a)(0)(e)}var G=n(29),$=n(42),V=n(166);const Z=Object(a.b)(e=>({text:e.text,isInNotebook:e.isFav,shouldFocus:!e.isExpandMtaBox&&((e.isQSPanel||Object(r.l)())&&e.config.qsFocus||Object(r.k)()),enableSuggest:e.config.searchSuggests,isTrackHistory:e.config.searchHistory,histories:e.searchHistory,historyIndex:e.historyIndex,showedDictAuth:e.config.showedDictAuth,profiles:e.profiles,activeProfileId:e.activeProfile.id,isPinned:e.isPinned,isQSFocus:e.isQSFocus}),e=>({searchText:t=>{e({type:"SEARCH_START",payload:{word:Object(i.e)({text:t,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}})},updateText:t=>{e({type:"UPDATE_TEXT",payload:t})},addToNoteBook:()=>{e({type:"ADD_TO_NOTEBOOK"})},switchHistory:t=>{e({type:"SWITCH_HISTORY",payload:t})},togglePin:()=>{e({type:"TOGGLE_PIN"})},toggleQSFocus:()=>{e({type:"TOGGLE_QS_FOCUS"})},onClose:()=>{Object(r.n)()?window.close():e({type:"CLOSE_PANEL"})},onSwitchSidebar:e=>{s.a.send({type:"QS_SWITCH_SIDEBAR",payload:e})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"menubar",height:30,floatHeight:t}})},onDragAreaMouseDown:t=>{e({type:"DRAG_START_COORD",payload:{x:t.clientX,y:t.clientY}})},onDragAreaTouchStart:t=>{e({type:"DRAG_START_COORD",payload:{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}})},onSelectProfile:t=>{e(async(e,n)=>{var a;const c=n(),{showedDictAuth:l,dictAuth:u}=c.config;l||Object(r.k)()||(await Object(G.f)({...c.config,showedDictAuth:!0}),!Object(V.a)(u).every(e=>Object(V.a)(u[e]).every(t=>{var n;return!(null===(n=u[e])||void 0===n?void 0:n[t])})))?(await Object(o.l)(t),await Object($.d)(10),e({type:"SEARCH_START",payload:{word:(null===(a=c.searchHistory[c.historyIndex])||void 0===a?void 0:a.text)===c.text?c.searchHistory[c.historyIndex]:Object(i.e)({text:c.text,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}})):s.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=DictAuths",self:!0}})})}}))(e=>{const{t:t}=Object(y.d)(["content","common"]),[n,a]=Object(u.a)(K),[o,i]=Object(u.a)(K);return Object(d.a)(Object(h.a)(()=>Object(g.a)(a,i).pipe(Object(p.a)(100),Object(f.a)(e=>{const t=Math.max(...e);return t>0?t+72:0}))),e.onHeightChanged),l.a.createElement("header",{className:"menuBar"},l.a.createElement(b,{t:t,disabled:e.historyIndex<=0,onClick:()=>e.switchHistory("prev")}),l.a.createElement(w,{t:t,disabled:e.historyIndex>=e.histories.length-1,onClick:()=>e.switchHistory("next")}),l.a.createElement(H,{key:"searchbox",t:t,text:e.text,shouldFocus:e.shouldFocus,enableSuggest:e.enableSuggest,onInput:e.updateText,onSearch:e.searchText,onHeightChanged:o}),Object(r.n)()||l.a.createElement("div",{className:"menuBar-DragArea",onMouseDown:e.onDragAreaMouseDown,onTouchStart:e.onDragAreaTouchStart}),l.a.createElement(F,{t:t,profiles:e.profiles,activeProfileId:e.activeProfileId,onSelectProfile:e.onSelectProfile,onHeightChanged:n}),l.a.createElement(j,{t:t,isFav:e.isInNotebook,onClick:e.addToNoteBook,onMouseDown:e=>{2===e.button&&(e.preventDefault(),e.stopPropagation(),e.currentTarget.blur(),s.a.send({type:"OPEN_URL",payload:{url:"notebook.html",self:!0}}))}}),e.isTrackHistory?l.a.createElement(N,{t:t,onClick:()=>s.a.send({type:"OPEN_URL",payload:{url:"history.html",self:!0}})}):l.a.createElement(I,{t:t,onClick:()=>s.a.send({type:"OPEN_URL",payload:{url:"notebook.html",self:!0}})}),Object(r.l)()?l.a.createElement(l.a.Fragment,null,l.a.createElement(D,{t:t,isFocus:e.isQSFocus,onClick:e.toggleQSFocus,disabled:Object(r.i)()||Object(r.k)()}),l.a.createElement(A,{t:t,onMouseDown:t=>{t.preventDefault(),e.onSwitchSidebar(0===t.button?"left":"right")}})):Object(r.k)()?null:l.a.createElement(l.a.Fragment,null,l.a.createElement(C,{t:t,isPinned:e.isPinned,onClick:e.togglePin,disabled:Object(r.i)()||Object(r.k)()}),l.a.createElement(E,{t:t,onClick:e.onClose})))})},355:function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var a=n(23),o=n(16),r=n(1),i=n(0),s=n.n(i),c=n(125),l=n(30),u=n(5),d=n.n(u),h=n(189),g=n(11),p=n(42),f=n(9),m=n(138);const y=e=>{const{t:t,ready:a}=Object(f.d)(["dicts","content","langcode"]),[o,c]=Object(i.useState)(!1);Object(i.useEffect)(()=>{const t=setTimeout(()=>c(e.isSearching),1500*Math.random());return()=>{clearTimeout(t)}},[e.isSearching]);const l=Object(i.useMemo)(()=>browser.runtime.getURL(n(481)("./"+e.dictID+"/favicon.png")),[e.dictID]),u=Object(i.useMemo)(()=>{const n=[],a=e=>e.replace(/%t\((\S+)\)/g,(e,n)=>t(n));if(e.catalog)for(const t of e.catalog)t.options?n.push({key:t.key,value:t.value,title:t.title&&a(t.title),options:t.options.map(e=>({value:e.value,label:a(e.label)}))}):n.push({key:t.key,value:t.value,label:a(t.label)});return n.push({key:"_options",value:"_options",label:t("content:tip.openOptions")}),n},[e.catalog,a]);return s.a.createElement("header",{className:d()("dictItemHead",{isSearching:e.isSearching})},s.a.createElement("img",{className:"dictItemHead-Logo",src:l,alt:"dict logo"}),s.a.createElement("h1",{className:"dictItemHead-Title"},s.a.createElement("a",{href:"#",onClick:t=>{t.stopPropagation(),t.preventDefault(),e.openDictSrcPage(e.dictID,t.ctrlKey)}},t(e.dictID+".name"))),s.a.createElement(m.a,{compact:!0,Button:b,items:u,top:25,onSelect:(t,n)=>{"_options"===t?r.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=Dictionaries",self:!0}}):e.onCatalogSelect({key:t,value:n})}}),o&&s.a.createElement("div",{className:"dictItemHead-Loader"},s.a.createElement("div",null),s.a.createElement("div",null),s.a.createElement("div",null),s.a.createElement("div",null),s.a.createElement("div",null)),s.a.createElement("div",{className:"dictItemHead-EmptyArea",onClick:e.toggleFold}),s.a.createElement("button",{className:"dictItemHead-FoldArrowBtn",onMouseOut:e=>e.currentTarget.blur(),onClick:e.toggleFold},s.a.createElement("svg",{className:"dictItemHead-FoldArrow",width:"18",height:"18",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("path",{className:"dictItemHead-FoldArrowPath",d:"M43.854 59.414L14.146 29.707 43.854 0l1.414 1.414-28.293 28.293L45.268 58"}))))};function b(e){return s.a.createElement("button",{className:"dictItemHead-Menus_Btn",...e},s.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 512 512"},s.a.createElement("path",{d:"M301.256 394.29A45.256 45.256 0 01256 439.546a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 349.034a45.256 45.256 0 0145.256 45.256zM301.256 257.48A45.256 45.256 0 01256 302.736a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 212.224a45.256 45.256 0 0145.256 45.256zM301.256 117.71A45.256 45.256 0 01256 162.964a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 72.453a45.256 45.256 0 0145.256 45.256z"})))}var w=n(223),M=n(2),O=n(3),j=n(271),N=n(97);const I=({result:e})=>{const{t:t}=Object(f.d)("content");return s.a.createElement("div",{className:"dictManualVerification"},s.a.createElement("h2",null,t("manualVerification.title")),s.a.createElement("p",null,t("manualVerification.message")),s.a.createElement("a",{href:e.url,target:"_blank",rel:"nofollow noopener noreferrer"},t("manualVerification.openPage")))},C=n(578).toString(),D=e=>{const t=Object(i.useMemo)(()=>s.a.lazy(()=>n(547)(`./${e.dictID}/View.tsx`)),[e.dictID]),a=Object(i.useMemo)(()=>s.a.lazy(async()=>{const t=await n(548)(`./${e.dictID}/_style.shadow.scss`);return{default:()=>s.a.createElement("style",null,(t.default||t).toString())}}),[e.dictID]);return s.a.createElement(j.a,{error:E},s.a.createElement(i.Suspense,{fallback:null},"FINISH"===e.searchStatus&&e.searchResult&&s.a.createElement(w.a.div,null,s.a.createElement("div",{ref:e.dictRootRef,className:d()({darkMode:e.darkMode})},s.a.createElement("style",null,C),s.a.createElement(a,null),e.panelCSS?s.a.createElement("style",null,e.panelCSS):null,s.a.createElement(N.b,{className:d()("d-"+e.dictID,"dictRoot",M.b,{isAnimate:e.withAnimation}),onPlayStart:e.onSpeakerPlay,onMouseUp:e.onInPanelSelect},Object(O.l)(e.searchResult)?s.a.createElement(I,{result:e.searchResult}):s.a.createElement(t,{result:e.searchResult,searchText:e.searchText,catalogSelect$:e.catalogSelect$}))))))};function E(){return s.a.createElement("p",{style:{textAlign:"center"}},"Render error. Please"," ",s.a.createElement("a",{href:"https://github.com/crimx/ext-saladict/issues",target:"_blank",rel:"nofollow noopener noreferrer"},"report issue"),".")}var A=n(38);const z=e=>{const[t,n]=Object(c.a)(l.b),[a,o]=Object(i.useState)(!1),[u,f]=Object(i.useState)("COLLAPSE"),[m,b]=Object(i.useState)(10),w=Object(i.useMemo)(()=>Math.max(10,"COLLAPSE"===u?10:"FULL"===u?m:Math.min(m,e.preferredHeight)),[u,m,e.preferredHeight]);Object(i.useEffect)(()=>{"FINISH"===e.searchStatus?f("HALF"):f("COLLAPSE")},[e.searchStatus]),Object(i.useEffect)(()=>{e.onHeightChanged(e.dictID,w+20)},[w]);const M=Object(i.useRef)(null),O=Object(i.useRef)(null),j=Object(i.useCallback)(async n=>{if("#"!==n.key[0])return t(n);if(!O.current)return;const a=O.current.querySelector("#"+n.value);if(a){if("FULL"!==u&&(o(!0),f("FULL"),await Object(p.d)(0),o(!1)),M.current){const t=M.current.getRootNode();if(t.querySelector){const n=t.querySelector(".dictPanel-Body");if(n)return void n.scrollTo({top:a.getBoundingClientRect().y-n.firstElementChild.getBoundingClientRect().y-30,behavior:e.withAnimation?"smooth":"auto"})}}a.scrollIntoView({behavior:e.withAnimation?"smooth":"auto"})}},[u,e.withAnimation]);return s.a.createElement("section",{ref:M,className:d()("dictItem",{isUnfold:"COLLAPSE"!==u,noHeightTransition:a})},s.a.createElement(y,{dictID:e.dictID,catalog:e.catalog,isSearching:"SEARCHING"===e.searchStatus,toggleFold:function(){if("SEARCHING"===e.searchStatus)return;if("COLLAPSE"!==u)return f("COLLAPSE"),void e.onUserFold(e.dictID,!0);e.onUserFold(e.dictID,!1),e.searchResult?f("HALF"):e.searchText({id:e.dictID})},openDictSrcPage:e.openDictSrcPage,onCatalogSelect:j}),s.a.createElement("div",{className:"dictItem-Body",key:e.dictID,style:{height:w},onClick:function(t){if(t.ctrlKey||t.metaKey||t.altKey)return;if(!t.target.tagName)return;const n=t.currentTarget;for(let a=t.target;a&&a!==n;a=a.parentElement)if(Object(A.a)(a,"a")||"link"===a.getAttribute("role")){t.preventDefault(),t.stopPropagation();const n=a;return void(/nofollow|noopener|noreferrer/.test(n.rel)?r.a.send({type:"OPEN_URL",payload:{url:n.href}}):e.searchText({word:Object(g.e)({text:n.textContent||"",title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}))}}},s.a.createElement("article",{className:"dictItem-BodyMesure"},s.a.createElement(h.ResizeReporter,{reportInit:!0,onHeightChanged:b}),e.TestComp?"FINISH"===e.searchStatus&&e.searchResult&&s.a.createElement(e.TestComp,{result:e.searchResult,searchText:e.searchText,catalogSelect$:n}):s.a.createElement(D,{...e,catalogSelect$:n,dictRootRef:O})),"HALF"===u&&w<m&&e.searchResult&&s.a.createElement("button",{className:"dictItem-FoldMask",onClick:()=>f("FULL")},s.a.createElement("svg",{className:"dictItem-FoldMaskArrow",width:"15",height:"15",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("path",{d:"M58 14.146L29.707 42.44 1.414 14.145 0 15.56 29.707 45.27 59.414 15.56"})))))};var T=n(190),x=n(404),L=n(179);const S=s.a.memo(z),v=Object(o.a)((e,t)=>e.map(e=>({dictID:e.id,searchStatus:e.searchStatus,searchResult:e.searchResult,catalog:e.catalog,preferredHeight:t[e.id].preferredHeight}))),_=Object(a.b)(e=>{const{config:t}=e;return{darkMode:t.darkMode,withAnimation:t.animation,panelCSS:t.panelCSS,touchMode:t.touchMode,language:t.language,doubleClickDelay:t.doubleClickDelay,dicts:v(e.renderedDicts,e.activeProfile.dicts.all)}},e=>({searchText:t=>{e({type:"SEARCH_START",payload:t})},openDictSrcPage:(t,n)=>{e((e,a)=>{const{searchHistory:o}=a(),i=o[o.length-1];r.a.send({type:"OPEN_DICT_SRC_PAGE",payload:{id:t,text:i&&i.text?i.text:"",active:!n}})})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"dictlist",height:t}})},onUserFold:(t,n)=>{e({type:"USER_FOLD_DICT",payload:{id:t,fold:n}})},onSpeakerPlay:t=>new Promise(n=>{e((e,a)=>{a().isExpandWaveformBox?r.a.self.send({type:"PLAY_AUDIO",payload:t}).then(n):r.a.send({type:"PLAY_AUDIO",payload:t}).then(n),e({type:"PLAY_AUDIO",payload:{src:t,timestamp:Date.now()}})})}),newSelection:t=>{e({type:"NEW_SELECTION",payload:t})}}))(e=>{const{dicts:t,onHeightChanged:n,touchMode:a,language:o,doubleClickDelay:r,newSelection:l,...u}=e,d=Object(i.useRef)({dicts:{},sum:0}),[h,g]=Object(c.a)(e=>Object(x.a)(10)(e));Object(T.a)(g,n);const p=Object(i.useRef)((e,t)=>{d.current.sum=d.current.sum-(d.current.dicts[e]||0)+t,d.current.dicts[e]=t,h(d.current.sum)}).current,f=Object(i.useMemo)(()=>t.reduce((e,{dictID:t})=>e+t+",",""),[t]);Object(i.useEffect)(()=>{const e=d.current;d.current=t.reduce((t,{dictID:n})=>(t.dicts[n]=e.dicts[n]||30,t.sum+=t.dicts[n]||30,t),{dicts:{},sum:0}),h(d.current.sum)},[f]);const m=Object(L.b)(a,o,r,l);return s.a.createElement("div",{className:"dictList"},t.map(e=>s.a.createElement(S,{key:e.dictID,...u,...e,onInPanelSelect:m,onHeightChanged:p})))})},357:function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var a=n(23),o=n(11),r=n(2),i=n(0),s=n.n(i),c=n(5),l=n.n(c),u=n(94),d=n(402),h=n(256),g=n(121),p=n(88),f=n(508),m=n(159);const y=e=>{const t=Object(i.useRef)(!1),n=Object(i.useRef)(null),[a,o]=Object(i.useState)(0),[r,c]=Object(h.a)(b,!1),g=Object(i.useRef)(!0);return Object(i.useEffect)(()=>{e.expand&&(g.current&&!e.shouldFocus||n.current&&(n.current.focus(),n.current.select()),g.current=!1)},[e.expand]),Object(i.useEffect)(()=>{e.shouldFocus&&!t.current&&e.expand&&n.current&&(n.current.focus(),n.current.select())},[e.text]),Object(i.useEffect)(()=>{e.onHeightChanged((e.expand?a:0)+12)},[a,e.expand]),s.a.createElement("div",null,s.a.createElement("div",{className:l()("mtaBox-TextArea-Wrap",{isTyping:r}),style:{height:e.expand?a:0}},s.a.createElement(u.a,{in:e.expand,timeout:400,classNames:"mtaBox-TextArea-Wrap",appear:!0,mountOnEnter:!0,unmountOnExit:!0},()=>s.a.createElement(d.a,{autoFocus:!0,inputRef:n,className:"mtaBox-TextArea",value:e.text,onChange:n=>{t.current=!0,e.onInput(n.currentTarget.value)},onKeyDown:t=>{t.nativeEvent.stopPropagation(),"Enter"===t.key&&(t.ctrlKey||t.metaKey)&&e.searchText(e.text),c(t)},minRows:2,onHeightChange:e=>o(e)}))),s.a.createElement("button",{className:"mtaBox-DrawerBtn",onClick:e.onDrawerToggle},s.a.createElement("svg",{width:"10",height:"10",viewBox:"0 0 59.414 59.414",className:l()("mtaBox-DrawerBtn_Arrow",{isExpand:e.expand})},s.a.createElement("path",{d:"M58 14.146L29.707 42.44 1.414 14.145 0 15.56 29.707 45.27 59.414 15.56"}))))};function b(e){return e.pipe(Object(g.a)(e=>(e.stopPropagation(),Object(m.a)(1e3).pipe(Object(p.a)(!1),Object(f.a)(!0)))))}const w=Object(a.b)(e=>({expand:e.isExpandMtaBox,text:e.text,shouldFocus:!e.activeProfile.mtaAutoUnfold||"hide"!==e.activeProfile.mtaAutoUnfold||(e.isQSPanel||Object(r.l)())&&e.config.qsFocus||Object(r.k)()}),e=>({searchText:t=>{e({type:"SEARCH_START",payload:{word:Object(o.e)({text:t})}})},onInput:t=>{e({type:"UPDATE_TEXT",payload:t})},onDrawerToggle:()=>{e({type:"TOGGLE_MTA_BOX"})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"mtabox",height:t}})}}))(y)},358:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(23),o=n(0),r=n.n(o),i=n(94),s=n(2);const c=Object(a.b)(e=>({darkMode:e.config.darkMode,isExpand:e.isExpandWaveformBox}),e=>({onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"waveformbox",height:t}})},toggleExpand:()=>{e({type:"TOGGLE_WAVEFORM_BOX"})}}))(e=>(Object(o.useEffect)(()=>{e.onHeightChanged(12+(e.isExpand?165:0))},[e.isExpand]),r.a.createElement("div",{className:`waveformBox ${s.a}${e.isExpand?" isExpand":""}`},r.a.createElement("button",{className:"waveformBox-DrawerBtn",onClick:e.toggleExpand},r.a.createElement("svg",{width:"10",height:"10",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg",className:"waveformBox-DrawerBtn_Arrow"},r.a.createElement("path",{d:"M 58 45.269 L 29.707 16.975 L 1.414 45.27 L 0 43.855 L 29.707 14.145 L 59.414 43.855"}))),r.a.createElement("div",{className:"waveformBox-FrameWrap"},r.a.createElement(i.a,{timeout:400,in:e.isExpand,classNames:"waveformBox-Frame",mountOnEnter:!0,unmountOnExit:!0},()=>r.a.createElement("iframe",{className:"waveformBox-Frame",src:`${browser.runtime.getURL("audio-control.html")}${e.darkMode?"?darkmode=true":""}`,sandbox:"allow-same-origin allow-scripts"}))))))},369:function(e,t,n){var a={"./en/background.ts":[409,83],"./en/common.ts":[410,84],"./en/content.ts":[411,85],"./en/langcode.ts":[412,60],"./en/menus.ts":[413,86],"./en/options.ts":[414,87],"./en/popup.ts":[415,88],"./en/wordpage.ts":[416,89],"./es/background.ts":[417,90],"./es/common.ts":[418,91],"./es/content.ts":[419,92],"./es/langcode.ts":[420,61],"./es/menus.ts":[421,93],"./es/options.ts":[422,94],"./es/popup.ts":[423,95],"./es/wordpage.ts":[424,96],"./ne/background.ts":[425,97],"./ne/common.ts":[426,98],"./ne/content.ts":[427,99],"./ne/langcode.ts":[428,62],"./ne/menus.ts":[429,100],"./ne/options.ts":[430,101],"./ne/popup.ts":[431,102],"./ne/wordpage.ts":[432,103],"./zh-CN/background.ts":[433,104],"./zh-CN/common.ts":[434,105],"./zh-CN/content.ts":[435,106],"./zh-CN/langcode.ts":[436,63],"./zh-CN/menus.ts":[437,107],"./zh-CN/options.ts":[438,108],"./zh-CN/popup.ts":[439,109],"./zh-CN/wordpage.ts":[440,110],"./zh-TW/background.ts":[441,111],"./zh-TW/common.ts":[442,112],"./zh-TW/content.ts":[443,113],"./zh-TW/langcode.ts":[444,64],"./zh-TW/menus.ts":[445,114],"./zh-TW/options.ts":[446,115],"./zh-TW/popup.ts":[447,116],"./zh-TW/wordpage.ts":[448,117]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(a)},o.id=369,e.exports=o},370:function(e,t,n){var a={"./ahdict/_locales.json":371,"./baidu/_locales.ts":372,"./bing/_locales.json":373,"./caiyun/_locales.ts":374,"./cambridge/_locales.json":375,"./cobuild/_locales.json":376,"./etymonline/_locales.json":377,"./eudic/_locales.json":378,"./google/_locales.ts":379,"./guoyu/_locales.json":380,"./hjdict/_locales.json":381,"./liangan/_locales.json":382,"./longman/_locales.json":383,"./merriamwebster/_locales.json":384,"./mojidict/_locales.json":385,"./naver/_locales.json":386,"./oaldict/_locales.json":387,"./renren/_locales.json":388,"./shanbay/_locales.json":389,"./sogou/_locales.ts":390,"./tencent/_locales.ts":391,"./urban/_locales.json":392,"./vocabulary/_locales.json":393,"./weblio/_locales.json":394,"./weblioejje/_locales.json":395,"./wikipedia/_locales.json":396,"./youdao/_locales.json":397,"./youdaotrans/_locales.ts":398,"./zdic/_locales.json":399};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=370},371:function(e){e.exports=JSON.parse('{"name":{"en":"Amercian Heritage Dict","zh-CN":"美国传统词典","zh-TW":"美國傳統詞典"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},372:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Baidu Translate","zh-CN":"百度翻译","zh-TW":"百度翻譯"})},373:function(e){e.exports=JSON.parse('{"name":{"en":"Bing Dict","zh-CN":"必应词典","zh-TW":"必應詞典"},"options":{"tense":{"en":"Show sense","zh-CN":"显示单词时态","zh-TW":"展示單詞時態"},"phsym":{"en":"Show pronunciation","zh-CN":"显示单词发音","zh-TW":"展示單詞發音"},"cdef":{"en":"Show definitions","zh-CN":"显示单词解释","zh-TW":"展示單詞解釋"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"sentence":{"en":"Show sentences","zh-CN":"显示例句","zh-TW":"展示例句"},"sentence_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},374:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"LingoCloud","zh-CN":"彩云小译","zh-TW":"彩雲小譯"})},375:function(e){e.exports=JSON.parse('{"name":{"en":"Cambridge Dictionary","zh-CN":"剑桥词典","zh-TW":"劍橋詞典"},"options":{"lang":{"en":"Language","zh-CN":"语言","zh-TW":"語言"},"lang-default":{"en":"Default","zh-CN":"随扩展","zh-TW":"未設定"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-en-chs":{"en":"English–Chinese (Simplified)","zh-CN":"英简","zh-TW":"英简"},"lang-en-chz":{"en":"English–Chinese (Traditional)","zh-CN":"英繁","zh-TW":"英繁"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},376:function(e){e.exports=JSON.parse('{"name":{"en":"COBUILD","zh-CN":"柯林斯高阶","zh-TW":"柯林斯高階"},"options":{"cibaFirst":{"en":"Prefer bilingual dictionary","zh-CN":"优先查双语词典","zh-TW":"優先查雙語詞典"}},"helps":{"cibaFirst":{"en":"Bilingual server is less stable","zh-CN":"双语词典服务器不稳定,解释没全英丰富","zh-TW":"雙語詞典伺服器不穩定,解釋沒全英豐富"}}}')},377:function(e){e.exports=JSON.parse('{"name":{"en":"Etymonline","zh-CN":"Etymonline","zh-TW":"Etymonline"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"},"chart":{"en":"Show Chart","zh-CN":"显示图表","zh-TW":"顯示圖表"}}}')},378:function(e){e.exports=JSON.parse('{"name":{"en":"Eudic","zh-CN":"双语例句","zh-TW":"雙語例句"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},379:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Google Translation","zh-CN":"谷歌翻译","zh-TW":"谷歌翻譯"},{cnfirst:{en:"Use google.cn first","zh-CN":"优先使用 google.cn","zh-TW":"優先使用 google.cn"},concurrent:{en:"Search concurrently","zh-CN":"并行查询","zh-TW":"並行查詢"}},{concurrent:{en:"Search .com and .cn concurrently","zh-CN":"同时搜索 .com 和 .cn 取最先返回的结果","zh-TW":"同時搜尋 .com 和 .cn 取最先返回的結果"}})},38:function(e,t,n){"use strict";function a(e,t){return(e.tagName||"").toLowerCase()===t.toLowerCase()}n.d(t,"a",(function(){return a}))},380:function(e){e.exports=JSON.parse('{"name":{"en":"國語辭典","zh-CN":"国语辞典","zh-TW":"國語辭典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},381:function(e){e.exports=JSON.parse('{"name":{"en":"Hu Jiang","zh-CN":"沪江小D","zh-TW":"沪江小D"},"options":{"engas":{"en":"Treat English as","zh-CN":"对全英文使用词典","zh-TW":"對全英文使用字典"},"chsas":{"en":"Treat Chinese as","zh-CN":"对全中文使用词典","zh-TW":"對全中文使用字典"},"uas":{"en":"Treat \'ü\' as","zh-CN":"将 \'ü\' 字符当作","zh-TW":"把 \'ü\' 字元當成"},"aas":{"en":"Treat \'ä\' as","zh-CN":"将 \'ä\' 字符当作","zh-TW":"把 \'ä\' 字元當成"},"eas":{"en":"Treat \'é\' as","zh-CN":"将 \'é\' 字符当作","zh-TW":"把 \'é\' 字元當成"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"chsas-jp/cj":{"en":"中 → 日","zh-CN":"中 → 日","zh-TW":"中 → 日"},"chsas-jp/jc":{"en":"日 → 中","zh-CN":"日 → 中","zh-TW":"日 → 中"},"chsas-kr":{"en":"Korean","zh-CN":"韩文","zh-TW":"韓文"},"chsas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"chsas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"chsas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"chsas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"engas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"engas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"engas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"engas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"uas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"uas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"uas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"aas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"aas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"eas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"eas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"}}}')},382:function(e){e.exports=JSON.parse('{"name":{"en":"兩岸詞典","zh-CN":"两岸词典","zh-TW":"兩岸詞典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},383:function(e){e.exports=JSON.parse('{"name":{"en":"Longman Dictionary","zh-CN":"朗文词典","zh-TW":"朗文詞典"},"options":{"wordfams":{"en":"Show word family","zh-CN":"显示单词家族","zh-TW":"展示單字家族"},"collocations":{"en":"Show collocations","zh-CN":"显示惯用搭配","zh-TW":"展示慣用搭配"},"grammar":{"en":"Show grammar","zh-CN":"显示语法解释","zh-TW":"展示文法講解"},"thesaurus":{"en":"Show thesaurus","zh-CN":"显示同义词","zh-TW":"展示同義詞"},"examples":{"en":"Show examples","zh-CN":"显示例句","zh-TW":"展示例句"},"bussinessFirst":{"en":"Show bussiness result first","zh-CN":"优先显示商务词典","zh-TW":"優先展示商務字典"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},384:function(e){e.exports=JSON.parse('{"name":{"en":"Merriam-Webster\'s Dictionary","zh-CN":"韦氏词典","zh-TW":"韋氏字典"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},385:function(e){e.exports=JSON.parse('{"name":{"en":"MOJi辞書","zh-CN":"MOJi辞書","zh-TW":"MOJi辞書"}}')},386:function(e){e.exports=JSON.parse('{"name":{"en":"Naver韩国语词典","zh-CN":"Naver韩国语词典","zh-TW":"Naver韩国语词典"},"options":{"hanAsJa":{"en":"Search Chinese with Japanese Dictionary","zh-CN":"用日语词典查中文","zh-TW":"用日語詞典查漢字"},"korAsJa":{"en":"Search Korean with Japanese Dictionary","zh-CN":"用日语词典查韩语","zh-TW":"用日语词典查韓語"}}}')},387:function(e){e.exports=JSON.parse('{"name":{"en":"Oxford Learner\'s Dict","zh-CN":"牛津高阶词典","zh-TW":"牛津高階詞典"}}')},388:function(e){e.exports=JSON.parse('{"name":{"en":"91dict","zh-CN":"人人词典","zh-TW":"人人詞典"}}')},389:function(e){e.exports=JSON.parse('{"name":{"en":"Shanbay Dictionary","zh-CN":"扇贝词典","zh-TW":"扇貝詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"}}}')},390:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Sogou Translation","zh-CN":"搜狗翻译","zh-TW":"搜狗翻譯"})},391:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Tencent Translate","zh-CN":"腾讯翻译君","zh-TW":"騰訊翻譯君"})},392:function(e){e.exports=JSON.parse('{"name":{"en":"Urban","zh-CN":"Urban","zh-TW":"Urban"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},393:function(e){e.exports=JSON.parse('{"name":{"en":"Vocabulary.com","zh-CN":"Vocabulary.com","zh-TW":"Vocabulary.com"}}')},394:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio","zh-CN":"Weblio 辞書","zh-TW":"Weblio 辞書"}}')},395:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio ejje","zh-CN":"Weblio 英和和英","zh-TW":"Weblio 英和和英"}}')},396:function(e){e.exports=JSON.parse('{"name":{"en":"Wikipedia","zh-CN":"维基百科","zh-TW":"維基百科"},"options":{"lang":{"en":"Language","zh-CN":"百科语言","zh-TW":"百科語言"},"lang-auto":{"en":"Auto (respect Wiki settings)","zh-CN":"自动(遵循维基账户设定)","zh-TW":"自动(遵循維基賬戶設定)"},"lang-zh":{"en":"中文(简繁由维基账户设定)","zh-CN":"中文(简繁由维基账户设定)","zh-TW":"中文(簡繁由維基賬戶設定)"},"lang-zh-cn":{"en":"强制简体中文子页面","zh-CN":"强制简体中文子页面","zh-TW":"强制简体中文子页面"},"lang-zh-tw":{"en":"強制台灣正體子頁面","zh-CN":"強制台灣正體子頁面","zh-TW":"強制台灣正體子頁面"},"lang-zh-hk":{"en":"強制香港繁體子頁面","zh-CN":"強制香港繁體子頁面","zh-TW":"強制香港繁體子頁面"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-ja":{"en":"日本語","zh-CN":"日本語","zh-TW":"日本語"},"lang-fr":{"en":"Français","zh-CN":"Français","zh-TW":"Français"},"lang-de":{"en":"Deutschsprachige","zh-CN":"Deutschsprachige","zh-TW":"Deutschsprachige"}}}')},397:function(e){e.exports=JSON.parse('{"name":{"en":"Youdao Dictionary","zh-CN":"有道词典","zh-TW":"有道詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"collins":{"en":"Show Collins result","zh-CN":"显示柯林斯双解","zh-TW":"顯示柯林斯雙解"},"discrimination":{"en":"Show discrimination","zh-CN":"显示词语辨析","zh-TW":"顯示詞語辨析"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"},"translation":{"en":"Show translation","zh-CN":"显示有道翻译","zh-TW":"顯示有道翻譯"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},398:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Youdao Translate","zh-CN":"有道翻译","zh-TW":"有道翻譯"})},399:function(e){e.exports=JSON.parse('{"name":{"en":"汉典","zh-CN":"汉典","zh-TW":"漢典"},"options":{"audio":{"en":"Enable audio","zh-CN":"开启发音","zh-TW":"啟用發音"}},"helps":{"audio":{"en":"Referer modification is required, which may slightly impact performance.","zh-CN":"突破外链限制需要改写 Referer,可能会轻微影响性能。","zh-TW":"突破外鏈限制需要改寫 Referer,可能會輕微影響效能。"}}}')},42:function(e,t,n){"use strict";function a(e){const t=Array.isArray(e)?e:Array.from(e);return Promise.all(t.map(e=>Promise.resolve(e).catch(()=>null)))}function o(e){const t=Array.isArray(e)?e:Array.from(e);let n=0;return new Promise((e,a)=>t.forEach(o=>{Promise.resolve(o).then(e).catch(()=>{++n===t.length&&a(new Error("All rejected"))})}))}function r(...e){return new Promise(t=>{setTimeout(()=>e.length>1?t(e[1]):t(),Number(e[0])||0)})}function i(e,t=0){return Promise.race([e,r(t).then(()=>Promise.reject(new Error(`timeout ${t}ms`)))])}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i}))},43:function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"a",(function(){return w})),n.d(t,"e",(function(){return M}));var a=n(112),o=n(57),r=n(102),i=n(10),s=n(88),c=n(182),l=n(39),u=n(11),d=n(1),h=n(38);const g=/mac/i.test(navigator.platform);function p(e){return g?"Meta"===e.key:"Control"===e.key}function f(e){return"Escape"===e.key}function m(e){return Object(a.a)(Object(i.a)(e)(Object(o.a)(window,"keydown",{capture:!0})),Object(s.a)(!1)(Object(o.a)(window,"keyup",{capture:!0})),Object(s.a)(!1)(Object(o.a)(window,"blur",{capture:!0})),Object(r.a)(!1)).pipe(Object(c.a)(),Object(l.a)(e=>e))}const y=/CodeMirror|ace_editor|monaco-editor/;function b(e){if(!e||!e.tagName)return!1;for(let t=e;t;t=t.parentElement){if(Object(h.a)(t,"input")||Object(h.a)(t,"textarea")||t.isContentEditable)return!0;if(y.test(String(t.className)))return!0}return!1}function w(e){const t=window.pageURL||document.URL||"";return!!t&&(e.blacklist.some(([e])=>new RegExp(e).test(t))&&e.whitelist.every(([e])=>!new RegExp(e).test(t)))}async function M(e={}){const t=await d.a.send({type:"PAGE_INFO"});return window.faviconURL=t.faviconURL,t.pageTitle&&(window.pageTitle=t.pageTitle),t.pageURL&&(window.pageURL=t.pageURL),Object(u.e)({title:t.pageTitle||document.title||"",url:t.pageURL||document.URL||"",favicon:t.faviconURL||"",...e})}},481:function(e,t,n){var a={"./ahdict/favicon.png":518,"./baidu/favicon.png":519,"./bing/favicon.png":520,"./caiyun/favicon.png":521,"./cambridge/favicon.png":522,"./cobuild/favicon.png":523,"./etymonline/favicon.png":524,"./eudic/favicon.png":525,"./google/favicon.png":526,"./guoyu/favicon.png":527,"./hjdict/favicon.png":528,"./liangan/favicon.png":529,"./longman/favicon.png":530,"./merriamwebster/favicon.png":531,"./mojidict/favicon.png":532,"./naver/favicon.png":533,"./oaldict/favicon.png":534,"./renren/favicon.png":535,"./shanbay/favicon.png":536,"./sogou/favicon.png":537,"./tencent/favicon.png":538,"./urban/favicon.png":539,"./vocabulary/favicon.png":540,"./weblio/favicon.png":541,"./weblioejje/favicon.png":542,"./wikipedia/favicon.png":543,"./youdao/favicon.png":544,"./youdaotrans/favicon.png":545,"./zdic/favicon.png":546};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=481},504:function(e,t,n){"use strict";n.r(t);var a=n(44),o=n(1),r=n(29),i=n(2),s=n(10),c=n(751),l=n(121);function u(e){window.parent===window?o.a.self.send({type:"SELECTION",payload:e}):window.parent.postMessage({type:"SALADICT_SELECTION",payload:e},"*")}var d=n(43),h=n(20),g=n(124),p=n(112),f=n(67),m=n(736),y=n(102),b=n(57),w=n(159),M=n(141),O=n(508),j=n(88),N=n(561),I=n(182),C=n(39);function D(e){const t=e.clientX,n=e.clientY;let o,r,i;const s=window.getSelection();if(!s)return null;if(s.rangeCount>0&&(i=s.getRangeAt(0),s.removeAllRanges()),document.caretPositionFromPoint){const e=document.caretPositionFromPoint(t,n);if(!e)return null;o=e.offsetNode,r=e.offset}else{if(!document.caretRangeFromPoint)return null;{const e=document.caretRangeFromPoint(t,n);if(!e)return null;o=e.startContainer,r=e.startOffset}}if(o.nodeType===Node.TEXT_NODE){const e=o,c=e.data,l=(c.slice(0,r).match(/[-_a-z]+$/i)||[""])[0],u=(c.slice(r).match(/^([-_a-z]+|[\u4e00-\u9fa5])/i)||[""])[0];if(l.length<=0&&u.length<=0)return null;const d=document.createRange();d.setStart(e,r-l.length),d.setEnd(e,r+u.length);const h=d.getBoundingClientRect();h.left<=t&&h.right>=t&&h.top<=n&&h.bottom>=n&&(s.removeAllRanges(),s.addRange(d),s.modify&&(s.modify("move","backward","word"),s.collapseToStart(),s.modify("extend","forward","word")));const g=Object(a.d)(s),p=Object(a.b)(s);return s.removeAllRanges(),i&&s.addRange(i),d.detach(),g?{text:g,context:p}:null}return null}var E=n(922),A=n(404);var z=n(179);if(!window.__SALADICT_SELECTION_LOADED__){window.__SALADICT_SELECTION_LOADED__=!0;const e=Object(r.b)().pipe(Object(s.a)(e=>Object(d.a)(e)?null:e),Object(c.a)());o.a.addListener("PRELOAD_SELECTION",()=>{const e=Object(a.c)();if(e)return Object(d.e)({text:e,context:Object(a.a)()})}),o.a.createStream("EMIT_SELECTION").subscribe(async()=>{const e=window.getSelection();if(e&&e.rangeCount>0){const t=Object(a.d)(e),n=e.getRangeAt(0).getBoundingClientRect();t&&u({mouseX:n.right,mouseY:n.top,instant:!0,self:Object(i.e)(e.anchorNode),word:await Object(d.e)({text:t,context:Object(a.b)(e)}),dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,force:!1})}}),window.addEventListener("message",(function({data:e,source:t}){if(!e||"SALADICT_SELECTION"!==e.type)return;const n=({contentWindow:e})=>e===t,a=Array.from(document.querySelectorAll("iframe")).find(n)||Array.from(document.querySelectorAll("frame")).find(n);if(!a)return;const{left:o,top:r}=a.getBoundingClientRect();e.payload.mouseX=e.payload.mouseX+o,e.payload.mouseY=e.payload.mouseY+r,u(e.payload)})),Object(d.f)(d.b).subscribe(()=>o.a.self.send({type:"ESCAPE_KEY"})),e.pipe(Object(l.a)((function(e){if(!e||!e.tripleCtrl||Object(i.n)()||Object(i.i)())return g.a;const t=Object(c.a)()(Object(d.f)(d.c));return t.pipe(Object(E.a)(Object(p.a)(Object(A.a)(500)(t),Object(d.f)(e=>!Object(d.c)(e)))),Object(C.a)(e=>e.length>=3))}))).subscribe(()=>{o.a.self.send({type:"TRIPLE_CTRL"})}),e.pipe(Object(l.a)(z.a)).subscribe(async e=>{e.word?u({dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,self:!1,instant:!1,force:!1,...e,word:await Object(d.e)(e.word)}):function(e){const t={type:"SELECTION",payload:{word:null,self:e,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}};o.a.self.send(t)}(e.self)}),e.pipe(Object(l.a)((function(e){if(!e)return g.a;const t=o.a.self.createStream("PIN_STATE").pipe(Object(M.a)("payload"),Object(O.a)(!1)),n=Object(p.a)(Object(f.a)(o.a.send({type:"QUERY_QS_PANEL"})),o.a.createStream("QS_PANEL_CHANGED").pipe(Object(M.a)("payload"))).pipe(Object(s.a)(t=>t&&e.qssaPageSel),Object(O.a)(!1));return Object(m.a)(t,n).pipe(Object(l.a)(([t,n])=>{const{instant:a}=e.panelMode,{instant:o}=e[n?"qsPanelMode":t?"pinMode":"mode"];if(!a.enable&&!o.enable)return Object(y.a)(null);const r={};return Object(p.a)(Object(j.a)(null)(Object(b.a)(window,"mouseup",{capture:!0})),Object(j.a)(null)(Object(b.a)(window,"mouseout",{capture:!0})),Object(j.a)(null)(Object(b.a)(window,"keyup",{capture:!0})),Object(b.a)(window,"mousemove",{capture:!0}).pipe(Object(s.a)(e=>{const t=Object(i.e)(e.target),n=t||Object(i.n)()?a:o;return n.enable&&("alt"===n.key&&e.altKey||"shift"===n.key&&e.shiftKey||"ctrl"===n.key&&(e.ctrlKey||e.metaKey)||"direct"===n.key&&!(e.ctrlKey||e.metaKey||e.altKey))?(r.event=e,r.self=t,r):null}))).pipe(Object(N.a)(e=>e?Object(w.a)(e.self?a.delay:o.delay):Object(y.a)()))}),Object(s.a)(e=>e&&{word:D(e.event),...e}),Object(I.a)((e,t)=>{if(!e||!t)return!1;const{word:n,event:a}=e,{word:o,event:r}=t;return(null==n?void 0:n.text)===(null==o?void 0:o.text)&&(null==n?void 0:n.context)===(null==o?void 0:o.context)&&a.shiftKey===r.shiftKey&&a.ctrlKey===r.ctrlKey&&a.metaKey===r.metaKey&&a.altKey===r.altKey}),Object(C.a)(t=>Boolean(t&&t.word&&Object(h.a)(e.language,t.word.text))))}))).subscribe(async({word:e,event:t,self:n})=>{u({word:await Object(d.e)(e),altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,dbClick:!1,force:!1,instant:!0,mouseX:t.clientX,mouseY:t.clientY,self:n})})}},518:function(e,t,n){e.exports=n.p+"assets/favicon-ahdict.51ab8a55.png"},519:function(e,t,n){e.exports=n.p+"assets/favicon-baidu.b1036c7f.png"},520:function(e,t,n){e.exports=n.p+"assets/favicon-bing.e3d3533d.png"},521:function(e,t,n){e.exports=n.p+"assets/favicon-caiyun.7da16416.png"},522:function(e,t,n){e.exports=n.p+"assets/favicon-cambridge.fa1166e5.png"},523:function(e,t,n){e.exports=n.p+"assets/favicon-cobuild.b6b15fdf.png"},524:function(e,t,n){e.exports=n.p+"assets/favicon-etymonline.eb3c1833.png"},525:function(e,t,n){e.exports=n.p+"assets/favicon-eudic.e582c08d.png"},526:function(e,t,n){e.exports=n.p+"assets/favicon-google.8edddd23.png"},527:function(e,t,n){e.exports=n.p+"assets/favicon-guoyu.b08539ad.png"},528:function(e,t,n){e.exports=n.p+"assets/favicon-hjdict.d4d70891.png"},529:function(e,t,n){e.exports=n.p+"assets/favicon-liangan.b08539ad.png"},530:function(e,t,n){e.exports=n.p+"assets/favicon-longman.c733be7c.png"},531:function(e,t,n){e.exports=n.p+"assets/favicon-merriamwebster.1fc05990.png"},532:function(e,t,n){e.exports=n.p+"assets/favicon-mojidict.435cd8b4.png"},533:function(e,t,n){e.exports=n.p+"assets/favicon-naver.6094f3e0.png"},534:function(e,t,n){e.exports=n.p+"assets/favicon-oaldict.3cf302d4.png"},535:function(e,t,n){e.exports=n.p+"assets/favicon-renren.7fdf60c5.png"},536:function(e,t,n){e.exports=n.p+"assets/favicon-shanbay.082532e3.png"},537:function(e,t,n){e.exports=n.p+"assets/favicon-sogou.5f76dc4a.png"},538:function(e,t,n){e.exports=n.p+"assets/favicon-tencent.6981c3c3.png"},539:function(e,t,n){e.exports=n.p+"assets/favicon-urban.e32bfdde.png"},540:function(e,t,n){e.exports=n.p+"assets/favicon-vocabulary.06f9ac91.png"},541:function(e,t,n){e.exports=n.p+"assets/favicon-weblio.b2639663.png"},542:function(e,t,n){e.exports=n.p+"assets/favicon-weblioejje.a7f3d53c.png"},543:function(e,t,n){e.exports=n.p+"assets/favicon-wikipedia.47e324fa.png"},544:function(e,t,n){e.exports=n.p+"assets/favicon-youdao.da86f82a.png"},545:function(e,t,n){e.exports=n.p+"assets/favicon-youdaotrans.0d8d4512.png"},546:function(e,t,n){e.exports=n.p+"assets/favicon-zdic.1310d810.png"},547:function(e,t,n){var a={"./ahdict/View.tsx":[678,71],"./baidu/View.tsx":[679,65],"./bing/View.tsx":[680,72],"./caiyun/View.tsx":[681,66],"./cambridge/View.tsx":[682,73],"./cobuild/View.tsx":[683,29],"./etymonline/View.tsx":[684,74],"./eudic/View.tsx":[685,118],"./google/View.tsx":[686,67],"./guoyu/View.tsx":[677,119],"./hjdict/View.tsx":[687,75],"./liangan/View.tsx":[688,82],"./longman/View.tsx":[689,30],"./merriamwebster/View.tsx":[690,120],"./mojidict/View.tsx":[691,25],"./naver/View.tsx":[692,76],"./oaldict/View.tsx":[693,77],"./renren/View.tsx":[694,78],"./shanbay/View.tsx":[695,79],"./sogou/View.tsx":[696,68],"./tencent/View.tsx":[697,69],"./urban/View.tsx":[698,80],"./vocabulary/View.tsx":[699,121],"./weblio/View.tsx":[700,26],"./weblioejje/View.tsx":[701,27],"./wikipedia/View.tsx":[702,81],"./youdao/View.tsx":[703,24],"./youdaotrans/View.tsx":[704,70],"./zdic/View.tsx":[705,28]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(a)},o.id=547,e.exports=o},548:function(e,t,n){var a={"./ahdict/_style.shadow.scss":[706,31],"./baidu/_style.shadow.scss":[707,32],"./bing/_style.shadow.scss":[708,33],"./caiyun/_style.shadow.scss":[709,34],"./cambridge/_style.shadow.scss":[710,35],"./cobuild/_style.shadow.scss":[711,36],"./etymonline/_style.shadow.scss":[712,37],"./eudic/_style.shadow.scss":[713,38],"./google/_style.shadow.scss":[714,39],"./guoyu/_style.shadow.scss":[715,40],"./hjdict/_style.shadow.scss":[716,41],"./liangan/_style.shadow.scss":[717,42],"./longman/_style.shadow.scss":[718,43],"./merriamwebster/_style.shadow.scss":[719,44],"./mojidict/_style.shadow.scss":[720,45],"./naver/_style.shadow.scss":[721,46],"./oaldict/_style.shadow.scss":[722,47],"./renren/_style.shadow.scss":[723,48],"./shanbay/_style.shadow.scss":[724,49],"./sogou/_style.shadow.scss":[725,50],"./tencent/_style.shadow.scss":[726,51],"./urban/_style.shadow.scss":[727,52],"./vocabulary/_style.shadow.scss":[728,53],"./weblio/_style.shadow.scss":[729,54],"./weblioejje/_style.shadow.scss":[730,55],"./wikipedia/_style.shadow.scss":[731,56],"./youdao/_style.shadow.scss":[732,57],"./youdaotrans/_style.shadow.scss":[733,58],"./zdic/_style.shadow.scss":[734,59]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n.t(o,7)}))}o.keys=function(){return Object.keys(a)},o.id=548,e.exports=o},55:function(e,t,n){"use strict";function a(e,t={},n={}){return{name:e,options:{keepLF:{en:"Keep linebreaks","zh-CN":"保留换行","zh-TW":"保留換行"},"keepLF-none":{en:"None","zh-CN":"不保留","zh-TW":"不保留"},"keepLF-all":{en:"All","zh-CN":"全保留","zh-TW":"全保留"},"keepLF-pdf":{en:"PDF","zh-CN":"保留 PDF 换行","zh-TW":"保留 PDF 換行"},"keepLF-webpage":{en:"Webpage","zh-CN":"保留网页换行","zh-TW":"保留網頁換行"},slInitial:{en:"Source Language","zh-CN":"原文显示","zh-TW":"原文顯示"},"slInitial-hide":{en:"Hide","zh-CN":"隐藏","zh-TW":"隱藏"},"slInitial-collapse":{en:"Collapse","zh-CN":"收起","zh-TW":"收起"},"slInitial-full":{en:"Full","zh-CN":"完整显示","zh-TW":"完整顯示"},tl:{en:"Target language","zh-CN":"目标语言","zh-TW":"目標語言"},tl2:{en:"Fallback target language","zh-CN":"第二目标语言","zh-TW":"第二目標語言"},...t},helps:{slInitial:{en:"Source language initial state. If hided can be reopened via dictionary titlebar menu.","zh-CN":"原文初始显示状态。隐藏后可通过字典标题栏菜单打开。","zh-TW":"原文初始顯示狀態。隱藏後可通過字典標題欄選單開啟。"},tl2:{en:"Fallback when detected languange and target language are identical.","zh-CN":"如果检测的源语言与目标语言相同将自动切换第二目标语言。","zh-TW":"如果檢測的源語言與目標語言相同將自動切換第二目標語言。"},...n}}}n.d(t,"a",(function(){return a}))},578:function(e,t,n){var a=n(579);e.exports="string"==typeof a?a:a.toString()},579:function(e,t,n){var a=n(226),o=n(613),r=n(580);t=a(!1);var i=o(r);t.push([e.i,"button,h1,h2,h3,h4,li,ul{margin:0;padding:0}img{display:block;max-width:95%}p{margin:.5em 0}ul li{list-style-type:none}button{background:0 0;border:none}button:hover{outline:0}a{color:#f9690e;text-decoration:none}a:hover{text-decoration:underline}select{color:#666;border:1px solid rgba(133,133,133,.28);background:0 0}.saladict-Speaker{display:inline-block;width:1.1em;height:1.1em;text-decoration:none;margin:0 5px;padding:0;line-height:1;vertical-align:text-bottom;border:none;background:no-repeat left/cover url("+i+');-moz-user-select:none;user-select:none;cursor:pointer}.saladict-Speaker:hover{outline:0}.saladict-Speaker.isActive{animation:saladict-Speaker-playing 1s steps(6) infinite}@keyframes saladict-Speaker-playing{from{background-position-x:0}70%{background-position-x:100%}100%{background-position-x:100%}}.entryBox-Wrap{padding-top:.8em}.entryBox{position:relative;border:1px solid #c76e06;border-radius:5px;margin-bottom:1em;padding:1em .5em .5em .5em}.entryBox-Title{position:absolute;top:0;left:1em;transform:translateY(-50%);max-width:90%;overflow:hidden;padding:0 5px;white-space:nowrap;text-overflow:ellipsis;font-size:1.2em;background:var(--color-background)}.dictRoot{font-size:var(--panel-font-size);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-family:"Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei",sans-serif}.dictRoot select{display:block;box-sizing:border-box;width:100%;margin:0 0 .5em 0;padding:.6em 1.4em .5em .8em;border-radius:.5em;font-size:var(--panel-font-size);font-weight:700;line-height:1.3;-moz-appearance:none;-webkit-appearance:none;appearance:none;-moz-appearance:none;border:1px solid rgba(133,133,133,.28);box-shadow:0 1px 0 1px rgba(0,0,0,.04);color:var(--color-font-grey);background-color:var(--color-background);background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%235caf9e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.65em auto,100%}.dictRoot select::-ms-expand{display:none}.dictRoot select:hover{border-color:rgba(133,133,133,.48)}.dictRoot select:focus{border-color:rgba(59,153,252,.7);outline:0}.dictRoot select option{font-weight:400}.dictManualVerification{padding:12px;border:1px solid rgba(133,133,133,.28);border-radius:4px;background:var(--color-background);color:var(--color-font)}.dictManualVerification h2{margin:0 0 8px;font-size:1.1em}.dictManualVerification p{margin:0 0 10px;line-height:1.5}.dictManualVerification a{color:#f9690e;font-weight:700}',""]),e.exports=t},580:function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMzUwIDUwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAxMS41ODUgMTYuOTc2IEwgMy43MjggMTYuOTc2IEMgMi42MjkgMTYuOTc2IDEuNzQxIDE3Ljg2NCAxLjc0MSAxOC45NjMgTCAxLjc0MSAzMS4wMzkgQyAxLjc0MSAzMi4xMzQgMi42MjkgMzMuMDI0IDMuNzI4IDMzLjAyNCBMIDExLjU4NSAzMy4wMjQgQyAxMS45MzkgMzMuMDI0IDEyLjI4NyAzMy4xMTkgMTIuNTkyIDMzLjI5OSBMIDI1LjE4IDQ1LjAyIEMgMjYuNTA0IDQ1Ljc5OCAyOC4xNzQgNDQuODQ1IDI4LjE3NCA0My4zMDggTCAyOC4xNzQgNi42OTIgQyAyOC4xNzQgNS4xNTcgMjYuNTA0IDQuMjAxIDI1LjE4IDQuOTggTCAxMi41OTMgMTYuNyBDIDEyLjI4NyAxNi44NzkgMTEuOTQgMTYuOTc1IDExLjU4NSAxNi45NzUgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCA1MCwgMCkiPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAxMS41ODUgMTYuOTc2IEwgMy43MjggMTYuOTc2IEMgMi42MjkgMTYuOTc2IDEuNzQxIDE3Ljg2NCAxLjc0MSAxOC45NjMgTCAxLjc0MSAzMS4wMzkgQyAxLjc0MSAzMi4xMzQgMi42MjkgMzMuMDI0IDMuNzI4IDMzLjAyNCBMIDExLjU4NSAzMy4wMjQgQyAxMS45MzkgMzMuMDI0IDEyLjI4NyAzMy4xMTkgMTIuNTkyIDMzLjI5OSBMIDI1LjE4IDQ1LjAyIEMgMjYuNTA0IDQ1Ljc5OCAyOC4xNzQgNDQuODQ1IDI4LjE3NCA0My4zMDggTCAyOC4xNzQgNi42OTIgQyAyOC4xNzQgNS4xNTcgMjYuNTA0IDQuMjAxIDI1LjE4IDQuOTggTCAxMi41OTMgMTYuNyBDIDEyLjI4NyAxNi44NzkgMTEuOTQgMTYuOTc1IDExLjU4NSAxNi45NzUgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzMi4xMTcgMzUuMDU1IEMgMzEuODMzIDM1LjA1NSAzMS41NDkgMzQuOTQ2IDMxLjMzMyAzNC43MjkgQyAzMC44OTYgMzQuMjk1IDMwLjg5NiAzMy41OTEgMzEuMzMzIDMzLjE1OCBDIDM2LjEwNSAyOC4zODIgMzYuMTA1IDIwLjYxMiAzMS4zMzMgMTUuODM3IEMgMzAuODk2IDE1LjQwMyAzMC44OTYgMTQuNzAyIDMxLjMzMyAxNC4yNjUgQyAzMS43NjYgMTMuODMyIDMyLjQ2OCAxMy44MzIgMzIuOTAzIDE0LjI2NSBDIDM4LjU0NiAxOS45MDYgMzguNTQ2IDI5LjA4NiAzMi45MDMgMzQuNzI4IEMgMzIuNjg5IDM0Ljk0NSAzMi40MDMgMzUuMDU1IDMyLjExNyAzNS4wNTUgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAxMDAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzIuMTE3IDM1LjA1NSBDIDMxLjgzMyAzNS4wNTUgMzEuNTQ5IDM0Ljk0NiAzMS4zMzMgMzQuNzI5IEMgMzAuODk2IDM0LjI5NSAzMC44OTYgMzMuNTkxIDMxLjMzMyAzMy4xNTggQyAzNi4xMDUgMjguMzgyIDM2LjEwNSAyMC42MTIgMzEuMzMzIDE1LjgzNyBDIDMwLjg5NiAxNS40MDMgMzAuODk2IDE0LjcwMiAzMS4zMzMgMTQuMjY1IEMgMzEuNzY2IDEzLjgzMiAzMi40NjggMTMuODMyIDMyLjkwMyAxNC4yNjUgQyAzOC41NDYgMTkuOTA2IDM4LjU0NiAyOS4wODYgMzIuOTAzIDM0LjcyOCBDIDMyLjY4OSAzNC45NDUgMzIuNDAzIDM1LjA1NSAzMi4xMTcgMzUuMDU1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAxNTAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzIuMTE3IDM1LjA1NSBDIDMxLjgzMyAzNS4wNTUgMzEuNTQ5IDM0Ljk0NiAzMS4zMzMgMzQuNzI5IEMgMzAuODk2IDM0LjI5NSAzMC44OTYgMzMuNTkxIDMxLjMzMyAzMy4xNTggQyAzNi4xMDUgMjguMzgyIDM2LjEwNSAyMC42MTIgMzEuMzMzIDE1LjgzNyBDIDMwLjg5NiAxNS40MDMgMzAuODk2IDE0LjcwMiAzMS4zMzMgMTQuMjY1IEMgMzEuNzY2IDEzLjgzMiAzMi40NjggMTMuODMyIDMyLjkwMyAxNC4yNjUgQyAzOC41NDYgMTkuOTA2IDM4LjU0NiAyOS4wODYgMzIuOTAzIDM0LjcyOCBDIDMyLjY4OSAzNC45NDUgMzIuNDAzIDM1LjA1NSAzMi4xMTcgMzUuMDU1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzOS4zMTQgNDUuMDU3IEMgMzkuMDI4IDQ1LjA1NyAzOC43NDQgNDQuOTQ4IDM4LjUyOCA0NC43MyBDIDM4LjA5MyA0NC4yOTcgMzguMDkzIDQzLjU5NSAzOC41MjggNDMuMTYgQyA0My4zNjkgMzguMzIxIDQ2LjAzNSAzMS44OSA0Ni4wMzUgMjUuMDU2IEMgNDYuMDM1IDE4LjIyIDQzLjM3IDExLjc4OCAzOC41MjggNi45NDggQyAzOC4wOTMgNi41MTQgMzguMDkzIDUuODEyIDM4LjUyOCA1LjM3OCBDIDM4Ljk2MyA0Ljk0NCAzOS42NjQgNC45NDQgNDAuMSA1LjM3OCBDIDQ1LjM2MSAxMC42MzcgNDguMjYgMTcuNjI1IDQ4LjI2IDI1LjA1NiBDIDQ4LjI2IDMyLjQ4NCA0NS4zNjEgMzkuNDczIDQwLjEgNDQuNzMxIEMgMzkuODgzIDQ0Ljk0OSAzOS41OTkgNDUuMDU4IDM5LjMxNSA0NS4wNTggWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAyMDAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzOS4zMTQgNDUuMDU3IEMgMzkuMDI4IDQ1LjA1NyAzOC43NDQgNDQuOTQ4IDM4LjUyOCA0NC43MyBDIDM4LjA5MyA0NC4yOTcgMzguMDkzIDQzLjU5NSAzOC41MjggNDMuMTYgQyA0My4zNjkgMzguMzIxIDQ2LjAzNSAzMS44OSA0Ni4wMzUgMjUuMDU2IEMgNDYuMDM1IDE4LjIyIDQzLjM3IDExLjc4OCAzOC41MjggNi45NDggQyAzOC4wOTMgNi41MTQgMzguMDkzIDUuODEyIDM4LjUyOCA1LjM3OCBDIDM4Ljk2MyA0Ljk0NCAzOS42NjQgNC45NDQgNDAuMSA1LjM3OCBDIDQ1LjM2MSAxMC42MzcgNDguMjYgMTcuNjI1IDQ4LjI2IDI1LjA1NiBDIDQ4LjI2IDMyLjQ4NCA0NS4zNjEgMzkuNDczIDQwLjEgNDQuNzMxIEMgMzkuODgzIDQ0Ljk0OSAzOS41OTkgNDUuMDU4IDM5LjMxNSA0NS4wNTggWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAyNTAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzkuMzE0IDQ1LjA1NyBDIDM5LjAyOCA0NS4wNTcgMzguNzQ0IDQ0Ljk0OCAzOC41MjggNDQuNzMgQyAzOC4wOTMgNDQuMjk3IDM4LjA5MyA0My41OTUgMzguNTI4IDQzLjE2IEMgNDMuMzY5IDM4LjMyMSA0Ni4wMzUgMzEuODkgNDYuMDM1IDI1LjA1NiBDIDQ2LjAzNSAxOC4yMiA0My4zNyAxMS43ODggMzguNTI4IDYuOTQ4IEMgMzguMDkzIDYuNTE0IDM4LjA5MyA1LjgxMiAzOC41MjggNS4zNzggQyAzOC45NjMgNC45NDQgMzkuNjY0IDQuOTQ0IDQwLjEgNS4zNzggQyA0NS4zNjEgMTAuNjM3IDQ4LjI2IDE3LjYyNSA0OC4yNiAyNS4wNTYgQyA0OC4yNiAzMi40ODQgNDUuMzYxIDM5LjQ3MyA0MC4xIDQ0LjczMSBDIDM5Ljg4MyA0NC45NDkgMzkuNTk5IDQ1LjA1OCAzOS4zMTUgNDUuMDU4IFoiIHN0eWxlPSIiLz4KICA8L2c+CiAgPGcgdHJhbnNmb3JtPSJtYXRyaXgoMSwgMCwgMCwgMSwgMzAwLCAwKSI+CiAgICA8cGF0aCBmaWxsPSIjZjk2OTBlIiBkPSJNIDExLjU4NSAxNi45NzYgTCAzLjcyOCAxNi45NzYgQyAyLjYyOSAxNi45NzYgMS43NDEgMTcuODY0IDEuNzQxIDE4Ljk2MyBMIDEuNzQxIDMxLjAzOSBDIDEuNzQxIDMyLjEzNCAyLjYyOSAzMy4wMjQgMy43MjggMzMuMDI0IEwgMTEuNTg1IDMzLjAyNCBDIDExLjkzOSAzMy4wMjQgMTIuMjg3IDMzLjExOSAxMi41OTIgMzMuMjk5IEwgMjUuMTggNDUuMDIgQyAyNi41MDQgNDUuNzk4IDI4LjE3NCA0NC44NDUgMjguMTc0IDQzLjMwOCBMIDI4LjE3NCA2LjY5MiBDIDI4LjE3NCA1LjE1NyAyNi41MDQgNC4yMDEgMjUuMTggNC45OCBMIDEyLjU5MyAxNi43IEMgMTIuMjg3IDE2Ljg3OSAxMS45NCAxNi45NzUgMTEuNTg1IDE2Ljk3NSBaIiBzdHlsZT0iIi8+CiAgPC9nPgo8L3N2Zz4="},71:function(e,t,n){"use strict";n.d(t,"c",(function(){return $})),n.d(t,"b",(function(){return V})),n.d(t,"a",(function(){return Z}));var a=n(104),o=n(272),r=n(23),i=n(903),s=n(8),c=n(10),l=n(182),u=n(508),d=n(1),h=n(80),g=n(2),p=n(273),f=n(11),m=n(29),y=n(33);const b=async()=>{const e=Object(m.c)(),t=Object(y.g)(),n=Object(y.e)(),a=await e,o=await t,r=await n,i=window.location.href,s="hide"!==r.mtaAutoUnfold;return{config:a,profiles:o,activeProfile:r,selection:{word:Object(f.e)(),mouseX:0,mouseY:0,self:!1,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1},isTempDisabled:a.blacklist.some(([e])=>new RegExp(e).test(i))&&a.whitelist.every(([e])=>!new RegExp(e).test(i)),isQSPanel:Object(g.l)(),isQSFocus:a.qsFocus,withQssaPanel:!1,wordEditor:{isShow:!1,word:Object(f.e)(),translateCtx:!1},isShowBowl:!1,isShowDictPanel:Object(g.n)(),isShowMtaBox:s,isExpandMtaBox:s&&("once"===r.mtaAutoUnfold||"always"===r.mtaAutoUnfold||"popup"===r.mtaAutoUnfold&&Object(g.k)()),isExpandWaveformBox:!1,isPinned:!1,isFav:!1,bowlCoord:{x:0,y:0},dictPanelCoord:Object(g.i)()?{x:window.innerWidth-a.panelWidth-20,y:80}:{x:0,y:0},panelHeight:30,_panelHeightCache:{menubar:30,mtabox:0,dictlist:0,waveformbox:0,sum:30,floatHeight:0},panelMaxHeight:window.innerHeight*a.panelMaxHeightRatio/100,renderedDicts:[],userFoldedDicts:{},text:"",searchHistory:[],historyIndex:-1,dragStartCoord:null,lastPlayAudio:null}};var w=n(20);const M=(e,{payload:t})=>{const{activeProfile:n,searchHistory:a,historyIndex:o}=e;let r;const i=t&&t.noHistory?a:a.slice(0,o+1);let s=o;if(t&&t.word){r=t.word;const e=a[o];t.noHistory||e&&e.text===r.text||(i.push(r),s=i.length-1)}else r=a[o];return r?{...e,text:r.text,isShowDictPanel:!0,isExpandMtaBox:"always"===n.mtaAutoUnfold||"popup"===n.mtaAutoUnfold&&Object(g.k)(),searchHistory:i,historyIndex:s,renderedDicts:t&&t.id?e.renderedDicts.map(e=>e.id===t.id?{id:e.id,searchStatus:"SEARCHING",searchResult:null}:e):n.dicts.selected.filter(e=>{const t=n.dicts.all[e];if(Object(w.a)(t.selectionLang,r.text)){const e=Object(w.b)(r.text),{min:n,max:a}=t.selectionWC;return e>=n&&e<=a}return!1}).map(t=>({id:t,searchStatus:!Object(w.a)(n.dicts.all[t].defaultUnfold,r.text)||e.activeProfile.stickyFold&&e.userFoldedDicts[t]?"IDLE":"SEARCHING",searchResult:null}))}:e};const O=(e,{payload:t})=>{if(t.self)return e;const{config:n}=e,a={...e,selection:t};if(Object(g.i)())return a;if(t.word)if(t.force)a.dictPanelCoord={x:t.mouseX,y:t.mouseY};else if(!e.isPinned){const e=30,o=10;a.bowlCoord={x:t.mouseX+n.bowlOffsetX,y:t.mouseY+n.bowlOffsetY},a.bowlCoord.x<30?a.bowlCoord.x=30:a.bowlCoord.x+e+30+o>window.innerWidth&&(a.bowlCoord.x=window.innerWidth-e-o-30),a.bowlCoord.y<30?a.bowlCoord.y=30:a.bowlCoord.y+e+30>window.innerHeight&&(a.bowlCoord.y=window.innerHeight-e-30),a.dictPanelCoord={x:a.bowlCoord.x+e+10,y:a.bowlCoord.y},a.dictPanelCoord.x+a.config.panelWidth+20>window.innerWidth&&(a.dictPanelCoord.x=a.bowlCoord.x-10-a.config.panelWidth)}if(e.withQssaPanel&&n.qssaPageSel||Object(g.n)())return a;const o=n.active&&!e.isTempDisabled,{direct:r,holding:i,double:s,icon:c}=n.mode;return a.isShowDictPanel=Boolean(e.isPinned||o&&t.word&&t.word.text&&(e.isShowDictPanel||r||s&&t.dbClick||i.alt&&t.altKey||i.shift&&t.shiftKey||i.ctrl&&t.ctrlKey||i.meta&&t.metaKey||t.instant)||Object(g.n)()),a.isShowBowl=Boolean(o&&t.word&&t.word.text&&c&&!a.isShowDictPanel&&!r&&!(s&&t.dbClick)&&!(i.alt&&t.altKey)&&!(i.shift&&t.shiftKey)&&!(i.ctrl&&t.ctrlKey)&&!(i.meta&&t.metaKey)&&!t.instant&&!Object(g.n)()),a};const j=e=>{const{panelWidth:t,tripleCtrl:n,qsLocation:a}=e.config;if(!n||e.isShowDictPanel)return e;let o=10,r=10;switch(a){case"CENTER":o=(window.innerWidth-t)/2,r=.3*window.innerHeight;break;case"TOP":o=(window.innerWidth-t)/2,r=10;break;case"RIGHT":o=window.innerWidth-t-30,r=.3*window.innerHeight;break;case"BOTTOM":o=(window.innerWidth-t)/2,r=window.innerHeight-10;break;case"LEFT":o=10,r=.3*window.innerHeight;break;case"TOP_LEFT":o=10,r=10;break;case"TOP_RIGHT":o=window.innerWidth-t-30,r=10;break;case"BOTTOM_LEFT":o=10,r=window.innerHeight-10;break;case"BOTTOM_RIGHT":o=window.innerWidth-t-30,r=window.innerHeight-10}return{...e,isQSPanel:!0,isShowDictPanel:!0,dictPanelCoord:{x:o,y:r}}};const N={NEW_CONFIG:(e,{payload:t})=>{const n=window.location.href,a=window.innerHeight*t.panelMaxHeightRatio/100;return{...e,config:t,panelHeight:Math.min(e.panelHeight,a),panelMaxHeight:a,isQSFocus:t.qsFocus,isTempDisabled:t.blacklist.some(([e])=>new RegExp(e).test(n))&&t.whitelist.every(([e])=>!new RegExp(e).test(n))}},NEW_PROFILES:(e,{payload:t})=>({...e,profiles:t}),NEW_ACTIVE_PROFILE:(e,{payload:t})=>{const n="hide"!==t.mtaAutoUnfold;return{...e,activeProfile:t,isShowMtaBox:n,isExpandMtaBox:n&&("once"===t.mtaAutoUnfold||"always"===t.mtaAutoUnfold||"popup"===t.mtaAutoUnfold&&Object(g.k)()),renderedDicts:e.renderedDicts.filter(({id:e})=>t.dicts.selected.includes(e))}},NEW_SELECTION:O,WINDOW_RESIZE:e=>({...e,panelMaxHeight:window.innerHeight*e.config.panelMaxHeightRatio/100}),TEMP_DISABLED_STATE:(e,{payload:t})=>t?{...e,isTempDisabled:!0,isPinned:!1,isShowDictPanel:Object(g.n)(),isShowBowl:!1,isQSPanel:Object(g.l)()}:{...e,isTempDisabled:!1},BOWL_ACTIVATED:e=>({...e,isShowBowl:!1,isShowDictPanel:!0,isPinned:e.config.defaultPinned}),UPDATE_TEXT:(e,{payload:t})=>({...e,text:t}),TOGGLE_MTA_BOX:e=>({...e,isExpandMtaBox:!e.isExpandMtaBox}),TOGGLE_PIN:e=>({...e,isPinned:!e.isPinned}),TOGGLE_QS_FOCUS:e=>({...e,isQSFocus:!e.isQSFocus}),TOGGLE_WAVEFORM_BOX:e=>({...e,isExpandWaveformBox:!e.isExpandWaveformBox}),OPEN_PANEL:(e,{payload:t})=>Object(g.n)()?e:{...e,isPinned:e.config.defaultPinned,isShowDictPanel:!0,dictPanelCoord:{x:t.x,y:t.y}},CLOSE_PANEL:e=>Object(g.n)()?e:{...e,isPinned:!1,isShowBowl:!1,isShowDictPanel:!1,isQSPanel:Object(g.l)()},SWITCH_HISTORY:(e,{payload:t})=>{const n=Math.min(Math.max(0,e.historyIndex+("prev"===t?-1:1)),e.searchHistory.length-1);return{...e,historyIndex:n,text:e.searchHistory[n]?e.searchHistory[n].text:e.text}},WORD_IN_NOTEBOOK:(e,{payload:t})=>({...e,isFav:t}),ADD_TO_NOTEBOOK:e=>e.config.editOnFav&&!Object(g.n)()?e:{...e,isFav:!0},SEARCH_START:M,SEARCH_END:(e,{payload:t})=>e.renderedDicts.every(({id:e})=>e!==t.id)?e:{...e,renderedDicts:e.renderedDicts.map(e=>e.id===t.id?{id:e.id,searchStatus:"FINISH",searchResult:t.result,catalog:t.catalog}:e)},UPDATE_PANEL_HEIGHT:(e,{payload:t})=>{const{_panelHeightCache:n}=e,a=n.sum-n[t.area]+t.height,o=null==t.floatHeight?n.floatHeight:t.floatHeight;return{...e,panelHeight:Math.min(Math.max(a,o),e.panelMaxHeight),_panelHeightCache:{...n,[t.area]:t.height,sum:a,floatHeight:o}}},USER_FOLD_DICT:(e,{payload:t})=>({...e,userFoldedDicts:{...e.userFoldedDicts,[t.id]:t.fold}}),DRAG_START_COORD:(e,{payload:t})=>({...e,dragStartCoord:t}),SUMMONED_PANEL_INIT:(e,{payload:t})=>({...e,text:t,historyIndex:0,isPinned:e.config.defaultPinned,isShowDictPanel:!0,isShowBowl:!1}),QS_PANEL_CHANGED:(e,{payload:t})=>e.withQssaPanel===t?e:t&&e.config.qssaPageSel?{...e,withQssaPanel:t,isPinned:!1,isShowDictPanel:Object(g.k)()||!!Object(g.i)()&&e.isShowDictPanel,isShowBowl:!1,isQSPanel:!1}:{...e,withQssaPanel:t,isQSPanel:Object(g.l)()},OPEN_QS_PANEL:j,WORD_EDITOR_STATUS:(e,{payload:{word:t,translateCtx:n}})=>t?{...e,wordEditor:{isShow:!0,word:t,translateCtx:!!n},dictPanelCoord:{x:50,y:.2*window.innerHeight}}:{...e,wordEditor:{isShow:!1,word:e.wordEditor.word,translateCtx:!1}},PLAY_AUDIO:(e,{payload:t})=>({...e,lastPlayAudio:t})};var I=n(146),C=n(42),D=n(38);const E=(e,t)=>{window.addEventListener("resize",()=>{e({type:"WINDOW_RESIZE"})}),Object(m.a)(({newConfig:n})=>{n.active!==t().config.active&&d.a.send({type:"SEND_TAB_BADGE_INFO",payload:{active:n.active,tempDisable:t().isTempDisabled,unsupported:!Object(g.n)()&&!Object(D.a)(document.body,"body")}}),e({type:"NEW_CONFIG",payload:n})}),Object(y.a)(({newProfile:t})=>{e({type:"NEW_ACTIVE_PROFILE",payload:t})}),Object(y.d)().subscribe(t=>{e({type:"NEW_PROFILES",payload:t})}),d.a.addListener(n=>{switch(n.type){case"TEMP_DISABLED_STATE":return"set"===n.payload.op?(e({type:"TEMP_DISABLED_STATE",payload:n.payload.value}),setTimeout(()=>{const e=t();d.a.send({type:"SEND_TAB_BADGE_INFO",payload:{active:e.config.active,tempDisable:e.isTempDisabled,unsupported:!Object(g.n)()&&!Object(D.a)(document.body,"body")}})},0),Promise.resolve(!0)):Promise.resolve(t().isTempDisabled);case"SEARCH_TEXT_BOX":{var a;const{searchHistory:n,historyIndex:o,text:r}=t();return e({type:"SEARCH_START",payload:{word:(null===(a=n[o])||void 0===a?void 0:a.text)===r?n[o]:Object(f.e)({text:r,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}}),Object(g.k)()?Promise.resolve(!0):Promise.resolve()}case"WORD_SAVED":{const{text:n}=t();n&&d.a.send({type:"IS_IN_NOTEBOOK",payload:Object(f.e)({text:n})}).then(t=>{e({type:"WORD_IN_NOTEBOOK",payload:t})});break}case"ADD_NOTEBOOK":return n.payload.popup===Object(g.k)()?(e({type:"ADD_TO_NOTEBOOK"}),Promise.resolve(!0)):void 0;case"SWITCH_HISTORY":return e({type:"SWITCH_HISTORY",payload:n.payload}),Promise.resolve(!0);case"QS_PANEL_SEARCH_TEXT":return Object(g.l)()&&(e({type:"SEARCH_START",payload:{word:n.payload}}),t().isQSFocus&&d.a.send({type:"OPEN_QS_PANEL"})),Promise.resolve();case"QS_PANEL_CHANGED":return Object(g.l)()||e({type:"QS_PANEL_CHANGED",payload:n.payload}),Promise.resolve();case"QS_PANEL_FOCUSED":if(Object(g.l)()){const e=document.querySelector(t().isExpandMtaBox?".mtaBox-TextArea":".menuBar-SearchBox");e&&(e.focus(),e.select())}return Promise.resolve();case"GET_TAB_BADGE_INFO":{const e=t();return Promise.resolve({active:e.config.active,tempDisable:e.isTempDisabled,unsupported:!Object(g.n)()&&!Object(D.a)(document.body,"body")})}}});let n=0;d.a.self.addListener(a=>{switch(a.type){case"SELECTION":if(a.payload.instant)n=Date.now();else if(Date.now()-n<500)return Promise.resolve();return e({type:"NEW_SELECTION",payload:a.payload}),Promise.resolve();case"ESCAPE_KEY":return e({type:"CLOSE_PANEL"}),Promise.resolve();case"SEARCH_TEXT":return e({type:"SEARCH_START",payload:{word:a.payload}}),Promise.resolve();case"CLOSE_PANEL":return e({type:"CLOSE_PANEL"}),Promise.resolve();case"TRIPLE_CTRL":if(!Object(g.k)()&&!Object(g.i)()){const n=t();n.config.tripleCtrl&&(n.config.qsStandalone?d.a.send({type:"OPEN_QS_PANEL"}):n.isShowDictPanel||(e({type:"OPEN_QS_PANEL"}),async function(e,t){let n=null;"selection"===t.config.qsPreload?t.selection.word&&(n=t.selection.word):"clipboard"===t.config.qsPreload&&(n=Object(f.e)({text:await d.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&t.config.qsAuto?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,n)))}return Promise.resolve();case"UPDATE_WORD_EDITOR_WORD":return e({type:"WORD_EDITOR_STATUS",payload:a.payload}),Object(C.d)(100).then(()=>{e({type:"SEARCH_START",payload:{word:a.payload.word}})});case"LAST_PLAY_AUDIO":return Promise.resolve(t().lastPlayAudio)}}),Object(g.k)()?async function(e,t){let n=null;if("selection"===t.config.baPreload){const e=(await browser.tabs.query({active:!0,currentWindow:!0}))[0];e&&null!=e.id&&(n=await Object(I.a)(e.id,{type:"PRELOAD_SELECTION"})||null)}else"clipboard"===t.config.baPreload&&(n=Object(f.e)({text:await d.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&t.config.baAuto?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,t()):Object(g.l)()?async function(e,t){let n=null;const{searchParams:a}=new URL(document.URL);a.get("sidebar")||e({type:"TOGGLE_PIN"});const o=a.get("word");if(o)try{n=JSON.parse(decodeURIComponent(o))}catch(e){!1,n=null}if(!n)if("selection"===t.config.qsPreload){const e=Number(a.get("lastTab"));e&&(n=await Object(I.a)(e,{type:"PRELOAD_SELECTION"})||null)}else"clipboard"===t.config.qsPreload&&(n=Object(f.e)({text:await d.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&(t.config.qsAuto||o)?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,t()):d.a.send({type:"QUERY_QS_PANEL"}).then(t=>e({type:"QS_PANEL_CHANGED",payload:t}))};var A=n(798),z=n(124),T=n(102),x=n(67),L=n(88),S=n(799),v=n(152),_=n(39);const k=n(352).a;var P=n(121),U=n(751),B=n(904),R=n(752),W=n(797),H=n(112);var Q=(e,t)=>e.pipe(k("SEARCH_START"),Object(P.a)(({payload:e})=>{const{config:n,searchHistory:a,historyIndex:o,renderedDicts:r}=t.value,i=a[o];!n.searchHistory||Object(g.g)()&&!Object(g.n)()||browser.extension.inIncognitoContext&&!n.searchHistoryInco||!(o<=0||a[o-1].text!==i.text||a[o-1].context!==i.context)||Object(f.f)("history",i);const s=new Set;for(const e of r)"SEARCHING"===e.searchStatus&&s.add(e.id);const{cn:l,en:u,machine:h}=n.autopron;l.dict&&s.add(l.dict),u.dict&&s.add(u.dict),h.dict&&s.add(h.dict);const p=Object(H.a)(...[...s].map(t=>d.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:i.text,payload:e&&e.payload?{isPDF:Object(g.j)(),...e.payload}:{isPDF:Object(g.j)()}}}).catch(()=>({id:t,result:null})))).pipe(Object(U.a)()),m=e&&e.id?z.a:p.pipe(Object(_.a)(({id:e,audio:t,result:n})=>!!t&&(!(e!==l.dict||!t.py)||(!(e!==u.dict||!t.uk&&!t.us)||e===h.dict&&!!n[h.src].tts))),Object(B.a)(1),Object(R.a)(({id:e,audio:t,result:n})=>{if(e===l.dict)return d.a.send({type:"PLAY_AUDIO",payload:t.py});if(e===u.dict){const e="us"===u.accent?t.us||t.uk:t.uk||t.us;return d.a.send({type:"PLAY_AUDIO",payload:e})}d.a.send({type:"PLAY_AUDIO",payload:n[h.src].tts})}),Object(W.a)(z.a));return Object(H.a)(Object(x.a)(Object(f.d)(i).catch(()=>!1)).pipe(Object(c.a)(e=>({type:"WORD_IN_NOTEBOOK",payload:e}))),p.pipe(Object(c.a)(({id:e,result:t,catalog:n})=>({type:"SEARCH_END",payload:{id:e,result:t,catalog:n}}))),m)}));var F=(e,t)=>e.pipe(k("NEW_SELECTION"),Object(P.a)(({payload:e})=>{const{config:n,withQssaPanel:a,isShowDictPanel:o,isPinned:r}=t.value;if(e.self)return function(e,t){const{direct:n,double:a,holding:o}=e.panelMode;if(t.word&&t.word.text&&(t.instant||n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey))return Object(T.a)({type:"SEARCH_START",payload:{word:{...t.word,title:"Saladict Panel",favicon:"https://saladict.crimx.com/favicon.ico"}}});return z.a}(n,e);if(Object(g.i)())return z.a;if(a&&n.qssaPageSel)return function(e,t){const{direct:n,double:a,holding:o}=e.qsPanelMode;t.word&&t.word.text&&(t.instant||n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey)&&d.a.send({type:"QS_PANEL_SEARCH_TEXT",payload:t.word});return z.a}(n,e);if(Object(g.n)())return z.a;const{pinMode:i}=n;return o&&e.word&&e.word.text&&(!r||i.direct||i.double&&e.dbClick||i.holding.alt&&e.altKey||i.holding.shift&&e.shiftKey||i.holding.ctrl&&e.ctrlKey||i.holding.meta&&e.metaKey)?Object(T.a)({type:"SEARCH_START",payload:{word:e.word}}):z.a}));var Y=n(86);const K=Object(A.a)((e,t)=>e.pipe(k("BOWL_ACTIVATED"),Object(c.a)(()=>t.value.selection.word?{type:"SEARCH_START",payload:{word:t.value.selection.word}}:{type:"SEARCH_START"})),(e,t)=>e.pipe(k("SWITCH_HISTORY"),Object(L.a)({type:"SEARCH_START",payload:{noHistory:!0}})),(e,t)=>t.pipe(Object(c.a)(e=>e.isShowDictPanel),Object(S.a)(),Object(v.a)(([e,t])=>(e&&!t&&d.a.send({type:"STOP_AUDIO"}),z.a))),(e,t)=>e.pipe(k("ADD_TO_NOTEBOOK"),Object(v.a)(()=>{if(t.value.config.editOnFav){const e=t.value.searchHistory[t.value.historyIndex];if(Object(g.k)()||Object(g.n)()){const{width:t,height:n}=window.screen,a=Math.round(Math.min(Math.max(t,440),640)),o=Math.round(Math.min(n-150,800));let r="";try{r=encodeURIComponent(JSON.stringify(e))}catch(e){console.warn(e)}return browser.windows.create({type:"popup",url:browser.runtime.getURL("word-editor.html?word="+r),top:Math.round((n-o)/2),left:Math.round((t-a)/2),width:a,height:o}).catch(e=>{console.warn(e)}),z.a}return Object(T.a)({type:"WORD_EDITOR_STATUS",payload:{word:e,translateCtx:!0}})}return Object(x.a)((async()=>{const e=t.value.searchHistory[t.value.searchHistory.length-1];if(e)try{return e.trans=Object(Y.a)(e.trans,await Object(Y.d)(e.context||e.text,t.value.config.ctxTrans)),await Object(f.f)("notebook",e),!0}catch(e){return console.warn(e),!1}return!1})()).pipe(Object(_.a)(e=>!e),Object(L.a)({type:"WORD_IN_NOTEBOOK",payload:!1}))})),F,Q);const G=Object(i.a)(),$=(r.f,r.e),V=r.d,Z=async()=>{const e=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||a.c,t=Object(a.d)(await(async()=>Object(p.createReducer)(await b(),N))(),e(Object(a.a)(o.a,G)));G.run(K),E(t.dispatch,t.getState);const n=new s.a(e=>{t.subscribe(()=>e.next(t.getState()))});async function r(){return t.getState().isPinned}return n.pipe(Object(c.a)(e=>e.isPinned),Object(l.a)()).subscribe(e=>{d.a.self.send({type:"PIN_STATE",payload:e})}),n.pipe(Object(c.a)(e=>e.isShowDictPanel),Object(u.a)(!1),Object(l.a)()).subscribe(e=>{e&&(Object(g.k)()?Object(h.b)("/popup"):Object(g.j)()?Object(h.b)("/pdf-dictpanel"):Object(g.n)()?Object(h.b)("/standalone"):Object(h.b)("/dictpanel"))}),d.a.addListener("QUERY_PIN_STATE",r),d.a.self.addListener("QUERY_PIN_STATE",r),t}},78:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return s}));var a=n(107),o=n(87);const r=function(e){return{version:1,id:e||Object(a.a)(),mtaAutoUnfold:"",waveform:!0,stickyFold:!1,dicts:{selected:["bing","cobuild","cambridge","youdao","urban","vocabulary","caiyun","youdaotrans","zdic","guoyu","liangan"],all:Object(o.b)()}}};function i(e){return{id:e||Object(a.a)(),name:"%%_default_%%"}}function s(){const e=i(),t=r(e.id),n=function(){const e=i();e.name="%%_sentence_%%";const t=r(e.id);t.dicts.selected=["bing","renren","eudic","cobuild","cambridge","longman"];const n=t.dicts.all;return n.bing.options.tense=!1,n.bing.options.phsym=!1,n.bing.options.cdef=!1,n.bing.options.related=!1,n.bing.options.sentence=9999,n.eudic.options.resultnum=9999,n.longman.options.wordfams=!1,n.longman.options.collocations=!1,n.longman.options.grammar=!1,n.longman.options.thesaurus=!1,n.longman.options.examples=!0,n.longman.options.bussinessFirst=!1,n.longman.options.related=!1,{idItem:e,profile:t}}(),a=function(){const e=i();e.name="%%_translation_%%";const t=r(e.id);return t.dicts.selected=["google","tencent","baidu","caiyun","youdaotrans","zdic","guoyu","liangan"],t.mtaAutoUnfold="always",{idItem:e,profile:t}}(),o=function(){const e=i();e.name="%%_scholar_%%";const t=r(e.id);t.dicts.selected=["cambridge","cobuild","etymonline","google","youdaotrans","zdic","guoyu","liangan"];const n=t.dicts.all;return n.google.selectionWC.min=5,n.youdaotrans.selectionWC.min=5,{idItem:e,profile:t}}(),s=function(){const e=i();e.name="%%_nihongo_%%";const t=r(e.id);return t.dicts.selected=["mojidict","hjdict","weblioejje","weblio","google","tencent","caiyun","wikipedia"],t.dicts.all.wikipedia.options.lang="ja",t.waveform=!1,{idItem:e,profile:t}}();return{profileIDList:[e,n.idItem,a.idItem,o.idItem,s.idItem],profiles:[t,n.profile,a.profile,o.profile,s.profile]}}},789:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var a=n(0),o=n.n(a),r=n(23),i=n(5),s=n.n(i),c=n(2),l=n(138);const u=e=>{const t=Object(a.useRef)(null);return o.a.createElement("div",{className:s()("dictPanel-FloatBox-Container",{isAnimate:e.withAnimation,darkMode:e.darkMode})},o.a.createElement("div",{ref:t,className:"saladict-theme"},e.panelCSS?o.a.createElement("style",null,e.panelCSS):null,o.a.createElement("div",{className:"dictPanel-Root "+c.b,style:{width:e.width,height:e.height,"--panel-width":e.width,"--panel-max-height":e.height,"--panel-font-size":e.fontSize+"px"}},o.a.createElement("div",{className:"dictPanel-Head"},e.menuBar),o.a.createElement(l.b.Provider,{value:t},o.a.createElement("div",{className:"dictPanel-Body fancy-scrollbar"},e.mtaBox,e.dictList)),e.waveformBox)))};var d=n(354),h=n(357),g=n(355),p=n(358);const f=o.a.createElement(d.a,null),m=o.a.createElement(g.a,null),y=o.a.createElement(p.a,null),b=Object(r.b)((e,t)=>({withAnimation:e.config.animation,darkMode:e.config.darkMode,panelCSS:e.config.panelCSS,fontSize:e.config.fontSize,menuBar:f,mtaBox:e.isShowMtaBox?o.a.createElement(h.a,null):null,dictList:m,waveformBox:e.activeProfile.waveform?y:null,width:t.width,height:t.height}))(u)},80:function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return f}));var a=n(221),o=n.n(a),r=n(47),i=n.n(r),s=n(222),c=n.n(s),l=n(1),u=n(107),d=n(2);async function h(e){const t=new o.a,n=t.getBrowser(),a=t.getOS();try{await p({t:"pageview",dp:e,cd1:n.name||"None",cd2:(n.version||"0.0").split(".").slice(0,3).join("."),cd3:a.name||"None",cd4:a.version||"0.0",de:"UTF-8",dl:document.location.href,sd:screen.colorDepth+"-bit",sr:screen.width+"x"+screen.height,ul:"zh-cn"})}catch(e){console.error("Report pageview error",e)}}async function g(e){const t={t:"event",ec:e.category,ea:e.action};null!=e.label&&(t.el=e.label),null!=e.value&&(t.ev=e.value);try{await p(t)}catch(e){console.error("Report event error",e)}}async function p(e){if(!Object(d.c)())return l.a.send({type:"REQUEST_GA",payload:e});let t=(await l.c.sync.get("gacid")).gacid;return t||(t=c()(),l.c.sync.set({gacid:t})),i()({url:"https://www.google-analytics.com/collect",method:"post",headers:{"content-type":"text/plain;charset=UTF-8"},data:new URLSearchParams({v:"1",tid:"UA-49163616-4",cid:t,z:Object(u.a)(),...e})})}function f(){l.a.addListener("REQUEST_GA",({payload:e})=>{p(e)})}},83:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(171),o=n(172),r=n(173),i=n(174),s=n(175);const c={baidu:a.auth,caiyun:o.auth,sogou:r.auth,tencent:i.auth,youdaotrans:s.auth};var l=n(2);const u=browser.i18n.getUILanguage(),d="zh-CN"===u?"zh-CN":"zh-TW"===u||"zh-HK"===u?"zh-TW":"en",h=function(){return{version:14,active:!0,runInBg:!1,analytics:!0,updateCheck:!0,noTypeField:!1,animation:!0,langCode:d,panelWidth:450,panelMaxHeightRatio:80,bowlOffsetX:15,bowlOffsetY:-45,darkMode:!1,panelCSS:"",fontSize:13,pdfSniff:!1,pdfStandalone:"",pdfWhitelist:[],pdfBlacklist:[["^(http|https)://[^/]*?cnki\\.net(/.*)?$","*://*.cnki.net/*"],["^(http|https)://[^/]*?googleusercontent\\.com(/.*)?$","*://*.googleusercontent.com/*"],["^(http|https)://sh-download\\.weiyun\\.com(/.*)?$","*://sh-download.weiyun.com/*"]],searchHistory:!1,searchHistoryInco:!1,editOnFav:!0,searchSuggests:!0,touchMode:!1,mode:{icon:!0,direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},pinMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},panelMode:{direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},qsPanelMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!0,meta:!1},instant:{enable:!1,key:"alt",delay:600}},bowlHover:!0,doubleClickDelay:450,tripleCtrl:!0,qsPreload:"clipboard",qsAuto:!0,qsLocation:"CENTER",qsFocus:!0,defaultPinned:!1,qsStandalone:!0,qssaHeight:600,qssaSidebar:"",qssaPageSel:!0,qssaRectMemo:!1,baWidth:-1,baHeight:550,baPreload:"selection",baAuto:!1,baOpen:"popup_panel",ctxTrans:{google:!0,youdaotrans:!0,baidu:!0,tencent:!1,caiyun:!1,sogou:!1},language:{chinese:!0,english:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},autopron:{cn:{dict:"",list:["zdic","guoyu"]},en:{dict:"",list:["bing","cambridge","cobuild","eudic","longman","urban","youdao"],accent:"uk"},machine:{dict:"",list:["google","sogou","tencent","baidu","caiyun"],src:"trans"}},whitelist:[],blacklist:[["^https://stackedit\\.io(/.*)?$","https://stackedit.io/*"],["^https://docs\\.google\\.com(/.*)?$","https://docs.google.com/*"],["^https://docs\\.qq\\.com(/.*)?$","https://docs.qq.com/*"]],contextMenus:{selected:l.d||!d.startsWith("zh-")?["view_as_pdf","google_translate","saladict"]:["view_as_pdf","caiyuntrs","google_translate","saladict"],all:{baidu_page_translate:"x",baidu_search:"https://www.baidu.com/s?ie=utf-8&wd=%s",bing_dict:"https://cn.bing.com/dict/?q=%s",bing_search:"https://www.bing.com/search?q=%s",caiyuntrs:"x",cambridge:"http://dictionary.cambridge.org/spellcheck/english-chinese-simplified/?q=%s",copy_pdf_url:"x",dictcn:"https://dict.eudic.net/dicts/en/%s",etymonline:"http://www.etymonline.com/index.php?search=%s",google_cn_page_translate:"x",google_page_translate:"x",google_search:"https://www.google.com/search?safe=off&newwindow=1&q=%s",google_translate:"https://translate.google.com/#auto/zh-CN/%s",google_cn_translate:"https://translate.google.cn/#auto/zh-CN/%s",guoyu:"https://www.moedict.tw/%s",iciba:"http://www.iciba.com/%s",liangan:"https://www.moedict.tw/~%s",longman_business:"http://www.ldoceonline.com/search/?q=%s",merriam_webster:"http://www.merriam-webster.com/dictionary/%s",microsoft_page_translate:"x",oxford:"http://www.oxforddictionaries.com/us/definition/english/%s",saladict:"x",saladict_standalone:"x",sogou_page_translate:"x",sogou:"https://fanyi.sogou.com/#auto/zh-CHS/%s",termonline:"https://www.termonline.cn/list.htm?k=%s",view_as_pdf:"x",youdao_page_translate:"x",youdao:"http://dict.youdao.com/w/%s",youglish:"https://youglish.com/search/%s"}},showedDictAuth:!1,dictAuth:JSON.parse(JSON.stringify(c))}}},86:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var a=n(1),o=n(2);async function r(e,t){try{const n=await a.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:e,payload:{isPDF:Object(o.j)()}}});return n&&n.result&&n.result.trans&&n.result.trans.paragraphs.join("\n")||""}catch(e){return""}}async function i(e,t){return(await Promise.all(Object.keys(t).map(async n=>{let a="";if(t[n])try{a=await r(e,n)}catch(e){console.warn(e)}return{id:n,content:a}}))).reduce((e,{id:t,content:n})=>(e[t]=n,e),{})}function s(e){const t=/\[:: (\w+) ::\]\n([\s\S]+?)(?=(?:\[:: \w+ ::\])|(?:-{15}))/g;let n;const a={};for(;null!==(n=t.exec(e));)a[n[1]]=n[2].replace(/\n+$/g,"");return a}function c(e,t){const n=Object.keys(t).filter(e=>t[e]);if(n.length<=0)return e;const a=n.map(e=>`[:: ${e} ::]\n`+t[e]).join("\n\n")+`\n${"".padEnd(15,"-")}\n`;if(!e)return a;const o=/\[:: (\w+) ::\]\n([\s\S]+?)-{15}/;return o.test(e)?e.replace(o,a):e+"\n\n"+a}},87:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var a=n(12);const o={baidu:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{},{}),bing:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{tense:!0,phsym:!0,cdef:!0,related:!0,sentence:4}},ahdict:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:4}},oaldict:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5}},caiyun:Object(a.b)(["zh-CN","en","ja"],{lang:"11010000"},{},{}),cambridge:{lang:"11100000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{lang:"default",related:!0},options_sel:{lang:["default","en","en-chs","en-chz"]}},cobuild:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:5},options:{cibaFirst:(browser.i18n.getUILanguage()||"en").startsWith("zh-")}},etymonline:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{resultnum:4,chart:!0}},eudic:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:10}},google:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{concurrent:!1},{}),guoyu:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!0}},hjdict:{lang:"10011111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:10},options:{related:!0,chsas:"jp/jc",engas:"w",uas:"fr",aas:"fr",eas:"fr"},options_sel:{chsas:["jp/cj","jp/jc","kr","w","fr","de","es"],engas:["w","fr","de","es"],uas:["fr","de","es"],aas:["fr","de"],eas:["fr","es"]}},liangan:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!1}},longman:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{wordfams:!1,collocations:!0,grammar:!0,thesaurus:!0,examples:!0,bussinessFirst:!0,related:!0}},mojidict:{lang:"10010000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5}},naver:{lang:"01011000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!0,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:10},options:{hanAsJa:!1,korAsJa:!1}},renren:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},sogou:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru"],{},{},{}),tencent:Object(a.b)(["zh-CN","en","ja","ko","fr","de","es","ru"],{lang:"11011111"},{},{}),urban:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},vocabulary:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5}},weblio:{lang:"00010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:20}},weblioejje:{lang:"10010000",selectionLang:{english:!0,chinese:!1,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},merriamwebster:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},wikipedia:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:420,selectionWC:{min:1,max:999999999999999},options:{lang:"auto"},options_sel:{lang:["auto","zh","zh-cn","zh-tw","zh-hk","en","ja","fr","de"]}},youdao:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:999999999999999},options:{basic:!0,collins:!0,discrimination:!0,sentence:!0,translation:!1,related:!0}},youdaotrans:Object(a.b)(["zh-CN","en","pt","es","ja","ko","fr","ru"],{lang:"11011111"},{},{}),zdic:{lang:"01000000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:5},options:{audio:!0}}},r=()=>JSON.parse(JSON.stringify(o))},9:function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return m}));var a=n(0),o=n.n(a),r=n(154),i=n.n(r),s=n(13),c=n(29),l=n(270),u=n.n(l);async function d(){if(s.a.language)return s.a;const{langCode:e}=await Object(c.c)();return await s.a.use({type:"backend",init:()=>{},create:()=>{},read:async(e,t,a)=>{try{if("dicts"===t){const t=function(e){const t=n(370);return t.keys().reduce((n,a)=>{const o=t(a),r=o.locales||o,s=/([^/]+)\/_locales\.(json|ts)$/.exec(a)[1];return n[s]={name:r.name[e]},r.options&&(n[s].options=i()(r.options,t=>t[e])),r.helps&&(n[s].helps=i()(r.helps,t=>t[e])),n},{})}(e);return a(null,t),t}if("sync"===t){const t=function(e){const t=n(265);return t.keys().reduce((n,a)=>{const o=new RegExp(`/([^/]+)/_locales/${e}\\.ts$`).exec(a);if(o){const e=t(a);n[o[1]]=e.locale||e}return n},{})}(e);return a(null,t),t}const o=await async function(e,t){const{locale:a}=await n(369)(`./${e}/${t}.ts`);return a}(e,t);return a(null,o),o}catch(e){a(e)}}}).init({lng:e,fallbackLng:!1,whitelist:["en","zh-CN","zh-TW"],debug:!1,saveMissing:!1,load:"currentOnly",ns:"common",defaultNS:"common",interpolation:{escapeValue:!1}}),Object(c.a)(({newConfig:e})=>{s.a.language!==e.langCode&&s.a.changeLanguage(e.langCode)}),s.a}const h=()=>"",g=o.a.createContext(void 0);const p=({children:e})=>{const[t,n]=Object(a.useState)(void 0);return Object(a.useLayoutEffect)(()=>{const e=()=>{n(s.a.language)};return s.a.language||d().then(()=>{n(s.a.language),s.a.on("languageChanged",e)}),()=>{s.a.off("languageChanged",e)}},[]),o.a.createElement(g.Provider,{value:t},e)};function f(e){const t=Object(a.useRef)(0),n=Object(a.useRef)(h),o=Object(a.useRef)((...e)=>n.current(...e)),r=Object(a.useContext)(g),i=(e,a)=>{e&&(n.current=e),a&&(t.current=(t.current+1)%1e5);return{t:o.current,i18n:s.a,ready:!!a&&t.current}},[c,l]=Object(a.useState)(()=>r?e?(Array.isArray(e)?e.every(e=>s.a.hasResourceBundle(r,e)):s.a.hasResourceBundle(r,e))?i(s.a.getFixedT(r,e),!0):i(h,!1):i(s.a.t,!0):i(h,!1));return Object(a.useLayoutEffect)(()=>{let t=!0;return r&&(e?(Array.isArray(e)?e.every(e=>s.a.hasResourceBundle(r,e)):s.a.hasResourceBundle(r,e))?l(i(s.a.getFixedT(r,e),!0)):(l(i(null,!1)),s.a.loadNamespaces(e).then(()=>{t&&l(i(s.a.getFixedT(r,e),!0))})):l(i(s.a.t,!0))),()=>{t=!1}},[r]),c}const m=o.a.memo(({message:e,children:t})=>e?o.a.createElement(a.Fragment,null,u()(e.split(/{[^}]*?}/),Array.isArray(t)?t:[t])):null)},92:function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return y}));var a=n(39),o=n(10),r=n(121),i=n(187),s=n(404),c=n(152),l=n(560),u=n(88),d=n(102),h=n(67);function g(e){return e.pipe(Object(a.a)(e=>!(e.relatedTarget===e.currentTarget||e.relatedTarget instanceof Node&&e.currentTarget.contains(e.relatedTarget))),Object(o.a)(e=>"mouseover"===e.type))}function p(e){return g(e).pipe(Object(r.a)(e=>Object(d.a)(e).pipe(Object(i.a)(e?500:100))))}function f(e){return e.pipe(Object(o.a)(e=>"blur"!==e.type),Object(s.a)(100))}function m(e,t){return n=>n.pipe(Object(c.a)(o=>Object(h.a)(t(o)).pipe(Object(l.a)(n.pipe(Object(a.a)(t=>t[e]===o[e]))))))}function y(e){return Object(u.a)(!0)(e)}},97:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return d}));var a=n(0),o=n.n(a),r=n(362),i=n(42);const s=o.a.createContext(async()=>{}),c=e=>{const[t,n]=Object(a.useState)(()=>"string"==typeof e.src?e.src:"#"),i=Object(a.useContext)(s);if(Object(r.a)(()=>{n("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const c=e.width||e.height||"1.2em",l=e.height||c;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:c,height:l},onClick:async a=>{if("#"===t&&"function"==typeof e.src){a.stopPropagation(),a.preventDefault();const t=await e.src();i(t),n(t)}}})};t.c=o.a.memo(c);const l=e=>{const{onPlayStart:t,...n}=e,r=Object(a.useCallback)(e=>{const n=e.target;n instanceof HTMLAnchorElement&&"#"!==n.href&&n.classList.contains("saladict-Speaker")&&(e.preventDefault(),e.stopPropagation(),n.classList.add("isActive"),Object(i.b)([Object(i.d)(1e3),t(n.href)]).then(()=>{n.classList.remove("isActive")}))},[t]);return o.a.createElement(s.Provider,{value:t},o.a.createElement("div",{onClick:r,...n}))},u=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},d=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/70.7c495b28.js b/plugins/saladict-ztools/ext-saladic/assets/70.7c495b28.js new file mode 100644 index 00000000..67509509 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/70.7c495b28.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[70],{1373:function(e,a,t){"use strict";t.d(a,"a",(function(){return h}));var r=t(0),s=t.n(r),n=t(190),l=t(97),c=t(1),u=t(9);const o=new Set(["ar","ara","az","fa","he","iw","ku","ug","ur"]),i=s.a.memo(({result:e,source:a})=>s.a.createElement(l.c,{src:"#"===e[a].tts?()=>(console.log({type:"DICT_ENGINE_METHOD",payload:{id:e.id,method:"getTTS",args:[e[a].paragraphs.join(" "),"trans"===a?e.tl:e.sl]}}),c.a.send({type:"DICT_ENGINE_METHOD",payload:{id:e.id,method:"getTTS",args:[e[a].paragraphs.join(" "),"trans"===a?e.tl:e.sl]}})):e[a].tts})),m=s.a.memo(({result:e,source:a,lang:t})=>s.a.createElement("div",{className:"MachineTrans-Lines"},s.a.createElement(i,{result:e,source:a}),e[a].paragraphs.map((e,a)=>s.a.createElement("p",{key:a,className:"MachineTrans-lang-"+t},e)))),p=s.a.memo(({result:e,source:a,lang:t})=>{const[n,l]=Object(r.useState)(!1),c=Object(r.useCallback)(()=>l(!1),[l]),u=Object(r.useRef)(null);return Object(r.useLayoutEffect)(()=>{if(n||!u.current)return;if(u.current.querySelectorAll("p").length>1)return void l(!0);const e=u.current.querySelector("p span");e&&e.getClientRects().length>1&&l(!0)},[]),s.a.createElement("div",{ref:u,className:"MachineTrans-Lines"},s.a.createElement(i,{result:e,source:a}),n?s.a.createElement("div",{className:"MachineTrans-Lines-collapse MachineTrans-lang-"+t},s.a.createElement("button",{onClick:c},e[a].paragraphs.join(" "))):e[a].paragraphs.map((e,a)=>s.a.createElement("p",{key:a,className:"MachineTrans-lang-"+t},s.a.createElement("span",null,e))))}),h=e=>{const{tl:a,sl:t}=e.result,[l,i]=Object(r.useState)(e.result.slInitial);return Object(n.a)(e.catalogSelect$,({key:r,value:s})=>{switch(r){case"showSl":i("full");break;case"sl":case"tl":e.searchText({id:e.result.id,payload:{sl:t,tl:a,[r]:s}});break;case"copySrc":c.a.send({type:"SET_CLIPBOARD",payload:e.result.searchText.paragraphs.join("\n")});break;case"copyTrans":c.a.send({type:"SET_CLIPBOARD",payload:e.result.trans.paragraphs.join("\n")})}}),e.result.requireCredential?function(){const{t:e}=Object(u.d)("content");return s.a.createElement(u.c,{message:e("machineTrans.login")},s.a.createElement("a",{href:browser.runtime.getURL("options.html?menuselected=DictAuths"),target:"_blank",rel:"nofollow noopener noreferrer"},e("machineTrans.dictAccount")))}():s.a.createElement("div",{className:o.has(t)||o.has(a)?"MachineTrans-has-rtl":void 0},s.a.createElement("div",{className:"MachineTrans-Text"},"full"===l?s.a.createElement(m,{result:e.result,source:"searchText",lang:t}):"collapse"===l?s.a.createElement(p,{result:e.result,source:"searchText",lang:t}):null,s.a.createElement(m,{result:e.result,source:"trans",lang:a})))}},704:function(e,a,t){"use strict";t.r(a);var r=t(1373);t.d(a,"default",(function(){return r.a}))}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/70.c4b6e868.js b/plugins/saladict-ztools/ext-saladic/assets/70.c4b6e868.js deleted file mode 100644 index 7da05cf0..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/70.c4b6e868.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[70],{1345:function(i,r,t){(r=t(221)(!1)).push([i.i,".brax-render{display:block}.brax-node{word-wrap:break-word}.brax-bold,.braxParse-b{font-weight:700}.brax-strikethrough{text-decoration:line-through}.brax-redact{color:#000;background-color:#000;transition:.2s}.brax-redact:active,.brax-redact:hover{color:auto;background-color:transparent}.brax-italic,.braxParse-i{font-style:italic}.brax-underline,.braxParse-u{text-decoration:underline}.brax-underline-through{text-decoration:underline line-through}.dictJikipedia-Title{font-size:1.2em}.dictJikipedia-Title a{color:currentColor}.dictJikipedia-Item{margin-bottom:10px}.dictJikipedia-Content{margin:0 0 3px 0}.dictJikipedia-Image{text-align:center}.dictJikipedia-Image>img{max-width:80%;max-height:200px}.dictJikipedia-Footer{color:var(--color-font-grey)}.dictJikipedia-Author{color:#5caf9e;margin-right:1em}.dictJikipedia-Thumbs{margin-right:5px}.dictJikipedia-IconThumbsUp{width:.9em;height:.9em;fill:#666;margin-right:2px}",""]),i.exports=r},682:function(i,r,t){var e=t(1345);i.exports="string"==typeof e?e:e.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/71.4947e076.js b/plugins/saladict-ztools/ext-saladic/assets/71.4947e076.js new file mode 100644 index 00000000..7d2836fb --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/71.4947e076.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[71],{1372:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(0),i=a.n(n),l="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const r=e=>{const{tag:t="div",html:a,...r}=e,c=Object(n.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[m,s]=Object(n.useState)(null);return l(()=>{if(c&&m){for(;m.childNodes.length>0;)m.childNodes[0].remove();m.appendChild(c)}},[c,m]),i.a.createElement(t,{...r,ref:s})}},678:function(e,t,a){"use strict";a.r(t),a.d(t,"DictAh",(function(){return c}));var n=a(0),i=a.n(n),l=a(97),r=a(1372);const c=({result:e})=>i.a.createElement("div",null,e.map((e,t)=>i.a.createElement("div",{className:"dictAh-WordBox",key:t},i.a.createElement("div",{className:"dictAh-Title"},i.a.createElement("span",null,e.title),e.pron&&i.a.createElement(l.c,{src:e.pron})),e.meaning&&e.meaning.map((e,t)=>i.a.createElement(r.a,{key:t,className:"dictAh-Meaning",html:e})),e.idioms&&!!e.idioms.length&&i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"dictAh-idiomTitle"},e.idioms.length>1?"idioms":"idiom"),e.idioms.map((e,t)=>i.a.createElement("div",{key:`${e.title}--${t}`},i.a.createElement("div",null,i.a.createElement("span",{className:"dictAh-idiomWords"},e.title),e.tips?`(${e.tips})`:null),i.a.createElement("div",{className:"dictAh-idiomEg"},e.eg)))),e.origin&&i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"dictAh-Hr",role:"separator"}),i.a.createElement(r.a,{tag:"p",className:"dictAh-origin",html:e.origin})),e.usageNote&&i.a.createElement(r.a,{tag:"p",className:"dictAh-UsageNote",html:e.usageNote}))));t.default=c}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/71.f76572c2.js b/plugins/saladict-ztools/ext-saladic/assets/71.f76572c2.js deleted file mode 100644 index 121ee448..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/71.f76572c2.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[71],{1346:function(t,i,u){(i=u(221)(!1)).push([t.i,".dictJukuu-Sens{padding-left:20px}.dictJukuu-Sens b{color:#f9690e}.dictJukuu-Sens p{margin:0}.dictJukuu-Sen{list-style-type:disc;margin:.5em 0}.dictJukuu-Ori{color:olive}.dictJukuu-Src{font-size:.9em;text-align:right;color:#777}",""]),t.exports=i},683:function(t,i,u){var n=u(1346);t.exports="string"==typeof n?n:n.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/72.1bdaebf6.js b/plugins/saladict-ztools/ext-saladic/assets/72.1bdaebf6.js new file mode 100644 index 00000000..aa1e1e6c --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/72.1bdaebf6.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[72],{1372:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(0),c=a.n(n),l="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const r=e=>{const{tag:t="div",html:a,...r}=e,s=Object(n.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[i,m]=Object(n.useState)(null);return l(()=>{if(s&&i){for(;i.childNodes.length>0;)i.childNodes[0].remove();i.appendChild(s)}},[s,i]),c.a.createElement(t,{...r,ref:m})}},680:function(e,t,a){"use strict";a.r(t),a.d(t,"DictBing",(function(){return s}));var n=a(0),c=a.n(n),l=a(97),r=a(1372);const s=({result:e})=>{switch(e.type){case"lex":return function(e){return c.a.createElement(c.a.Fragment,null,c.a.createElement("h1",{className:"dictBing-Title"},e.title),e.phsym&&c.a.createElement("ul",{className:"dictBing-Phsym"},e.phsym.map(e=>c.a.createElement("li",{className:"dictBing-PhsymItem",key:e.lang+e.pron},e.lang," ",c.a.createElement(l.c,{src:e.pron})))),e.cdef&&c.a.createElement("ul",{className:"dictBing-Cdef"},e.cdef.map(e=>c.a.createElement("li",{className:"dictBing-CdefItem",key:e.pos},c.a.createElement("span",{className:"dictBing-CdefItem_Pos"},e.pos),c.a.createElement("span",{className:"dictBing-CdefItem_Def"},e.def)))),e.infs&&c.a.createElement("ul",{className:"dictBing-Inf"},"词形:",e.infs.map(e=>c.a.createElement("li",{className:"dictBing-InfItem",key:e},e))),e.sentences&&c.a.createElement("ol",{className:"dictBing-SentenceList"},e.sentences.map(e=>c.a.createElement("li",{className:"dictBing-SentenceItem",key:e.en},e.en&&c.a.createElement("p",null,c.a.createElement(r.a,{tag:"span",html:e.en}),c.a.createElement(l.c,{src:e.mp3})),e.chs&&c.a.createElement(r.a,{tag:"p",html:e.chs}),e.source&&c.a.createElement("footer",{className:"dictBing-SentenceSource"},e.source)))))}(e);case"machine":return function(e){return c.a.createElement("p",null,e.mt)}(e);case"related":return function(e){return c.a.createElement(c.a.Fragment,null,c.a.createElement("h1",{className:"dictBing-Related_Title"},e.title),e.defs.map(e=>c.a.createElement(c.a.Fragment,{key:e.title},c.a.createElement("h2",{className:"dictBing-Related_Title"},e.title),c.a.createElement("ul",null,e.meanings.map(e=>c.a.createElement("li",{className:"dictBing-Related_Meaning",key:e.word},c.a.createElement("a",{className:"dictBing-Related_Meaning_Word",href:e.href},e.word),c.a.createElement("span",{className:"dictBing-Related_Meaning_Def"},e.def)))))))}(e);default:return null}};t.default=s}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/72.e3d1d328.js b/plugins/saladict-ztools/ext-saladic/assets/72.e3d1d328.js deleted file mode 100644 index 8d087b9d..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/72.e3d1d328.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[72],{1347:function(e,i,t){(i=t(221)(!1)).push([e.i,'button{cursor:pointer;outline:0}.categories section a:after,.headerContent .searchField .searchMain form:after,.headerContent:after,.layout:after,.news section a:after,.posts section a:after,.tests form fieldset .steps:after,.topHeader:after{content:"";display:block;clear:both}.banbox-mini .banner,.boxSizing,.container,.contentPanel section .popular ul,.gramb .semb>p .cnt .pop-label,.headerContent .searchField .searchMain form,.headerContent .searchField .searchMain form .sbSelector,.headerContent .searchField .searchMain form fieldset .keyboardBox,.headerContent .searchField .searchMain form fieldset .ui-autocomplete,.headerContent .searchField .searchMain form fieldset input,.headwordAudio ul .close,.mainHeader.fixed .burger span,.mainHeader.fixed .headerContent .searchField,.news section,.news section.mainNews h1,.posts section,.posts section a h4 span,.quizzes>div,.quizzes>div section article,.quotes .blogbox article,.quotes>div,.socials ul li .more,.socials ul li .more i,.socials ul li a,.tests form fieldset ul li label span:before,.textBlock .large,.textBlock blockquote,.topHeader .nav>ul .drop ul,.trend section .popular ul,.videos ul li,.words>div{box-sizing:border-box}.breadcrumbs p span,.contentPanel section .popular p i,.contentPanel section .popular p span,.dayword section .daywordmain strong a,.dayword section .daywordmain strong span,.faces>div,.footerNav nav.sharing ul li a i,.footerNav nav.sharing ul li a span,.headerContent .searchField .searchMain form fieldset .keyboard svg,.headerContent .searchField .searchMain form fieldset .keyboardBox .kBoxContent ul li,.headwordAudio,.headwordAudio ul li a button,.headwordAudio ul li a span,.hwg .hw,.inlineBlock,.lang,.mainHeader.fixed .burger img,.mainHeader.fixed .burger span,.mainHeader.fixed .burger svg,.socials ul li,.topHeader .nav>ul>li,.topHeader .sharing,.topHeader .sharing ul li,.topHeader .signIn,.topHeader .signIn a i,.topHeader .signIn a span,.trend section .popular p i,.trend section .popular p span,.trg .tr>a,.trg .tr>span{display:inline-block;vertical-align:middle}.topHeader .sharing ul li a svg,.transition,a{transition:all .3s}.posts section{width:100%!important}.posts section .box-img img.lazy{height:auto!important}.banbox-mini .contentPanel section.banner,.contentPanel .banbox-mini section.banner,.contentPanel .gramb .semb>p .cnt section.pop-label,.contentPanel .headerContent .searchField .searchMain form fieldset section.keyboardBox,.contentPanel .headerContent .searchField .searchMain form fieldset section.ui-autocomplete,.contentPanel .headerContent .searchField .searchMain form section.sbSelector,.contentPanel .headwordAudio ul section.close,.contentPanel .mainHeader.fixed .headerContent section.searchField,.contentPanel .news section,.contentPanel .posts section,.contentPanel .socials ul li section.more,.contentPanel .textBlock section.large,.contentPanel section.boxSizing,.contentPanel section.container,.gramb .semb>p .cnt .contentPanel section.pop-label,.headerContent .searchField .searchMain form .contentPanel section.sbSelector,.headerContent .searchField .searchMain form fieldset .contentPanel section.keyboardBox,.headerContent .searchField .searchMain form fieldset .contentPanel section.ui-autocomplete,.headwordAudio ul .contentPanel section.close,.mainHeader.fixed .headerContent .contentPanel section.searchField,.news .contentPanel section,.posts .contentPanel section,.socials ul li .contentPanel section.more,.textBlock .contentPanel section.large{padding:0}.posts{font-size:0}.posts section{display:inline-block;vertical-align:top;width:25%;padding:0 20px 35px;margin-bottom:32px;font-size:1em;position:relative}.posts section a{display:block}.posts section a .box-img{height:168px;width:100%}.posts section a h4{text-align:center;font:13px/5px "Open Sans",Helvetica,Arial,sans-serif;font-weight:600;color:#3c9ae3;text-transform:uppercase;letter-spacing:2px;transform:translate(0,-100%)}.posts section a h4 span{display:inline-block;background-color:#fff;padding:14px 15px 0;min-height:20px}.posts section a h4 span{padding:7px 15px 6px;margin-bottom:-1px;font-size:1em}.posts section a h4 span:empty{padding:0}.posts section a h2{color:#333;font-size:1em;font-family:"Open Sans",Helvetica,Arial,sans-serif}.posts section:nth-child(4),.posts section:nth-child(5){margin-bottom:26px}.posts section:nth-child(4):before,.posts section:nth-child(5):before{content:"";position:absolute;top:-31px;right:20px;left:20px;height:0;border-top:1px dotted #ccc}.posts section.mainPost{float:left;width:50%;margin-bottom:26px}.posts section.mainPost a{position:relative;border:none}.posts section.mainPost a .box-img{width:100%;height:360px}.posts section.mainPost h2{color:#333;font-size:1em;line-height:1.2;font-family:"Open Sans",Helvetica,Arial,sans-serif;font-family:inherit;padding-right:20px;margin-bottom:12px}.posts section.mainPost h2{font-size:1em}.posts section.mainPost h2{line-height:normal}.posts section.mainPost p{color:#555;line-height:1.2;font-family:"Open Sans",Helvetica,Arial,sans-serif;padding-right:20px;font-size:1em}.posts section{padding:0 15px 35px}.posts section a .box-img{height:132px}.posts section.mainPost{margin-bottom:20px}.posts section.mainPost a .box-img{height:283px}.posts section{width:50%;padding:0 10px 20px;margin-bottom:44px}.posts section:nth-child(4),.posts section:nth-child(5){margin-bottom:31px}.posts section:nth-child(4):before,.posts section:nth-child(5):before{left:10px;right:10px}.posts section a .box-img{height:210px}.posts section a h4{line-height:1.2}.posts section.mainPost{width:100%}.posts section.mainPost h4{font-size:1em;line-height:1em;margin-bottom:6px}.posts section.mainPost p{font-size:1em;line-height:1.2}.posts section.mainPost a .box-img{height:311px}.posts section{padding:0 5px 20px;margin-bottom:15px}.posts section a .box-img{height:85px}.posts section a h2{margin-bottom:-5px}.posts section a h4{font-size:1em;line-height:1.2}.posts section.mainPost{margin-bottom:2px}.posts section.mainPost h4{font-size:1em;line-height:1.2;margin-bottom:6px;padding:0}.posts section.mainPost p{font-size:1em;line-height:1.2;padding-right:0}.posts section.mainPost a .box-img{height:178px}.posts section:nth-child(4),.posts section:nth-child(5){margin-bottom:6px}.posts section:nth-child(4):before,.posts section:nth-child(5):before{top:-18px;left:5px;right:5px}.dictLexico-Lex>.banbox{padding:0}.dictLexico-Lex>.banbox .container .banner{padding:15px 0}.categories section a.posts article h2,.headerContent .searchField .searchMain form.posts article h2,.news section a.posts article h2,.posts section a.posts article h2,.posts.headerContent article h2,.posts.layout article h2,.posts.topHeader article h2,.tests form fieldset .posts.steps article h2{margin-top:-25px!important}.lex-filling>div.dictLexico-Lex{margin-bottom:0;padding-bottom:0}.dictLexico-Lex>section{margin:0 0 1em;border-top:1px solid var(--color-divider);padding-top:4px}.dictLexico-Lex section h3{font-size:1em;font-family:Merriweather,Cambria,Georgia,"Times New Roman",Times,serif;font-family:inherit}.dictLexico-Lex section.relatedSection{margin:0;border-top:1px solid #d8eaee;border-bottom:1px solid #d8eaee;background-color:#f8fafe;padding:21px 20px 7px}.dictLexico-Lex .breadcrumbs p{padding:22px 15px 13px 20px}.dictLexico-Lex .breadcrumbs p a{font-size:1em}.dictLexico-Lex>section{margin:0 0 1em}.dictLexico-Lex .breadcrumbs p{padding:24px 20px 13px}.categories section .lex-filling>div>a.breadcrumbs,.headerContent .searchField .searchMain .lex-filling>div>form.breadcrumbs,.lex-filling>div>.breadcrumbs.headerContent,.lex-filling>div>.breadcrumbs.layout,.lex-filling>div>.breadcrumbs.topHeader,.news section .lex-filling>div>a.breadcrumbs,.posts section .lex-filling>div>a.breadcrumbs,.tests form fieldset .lex-filling>div>.breadcrumbs.steps{display:inline-block}.entryHead h1{font:16px "Open Sans",Helvetica,Arial,sans-serif;font-family:"Open Sans",Helvetica,Arial,sans-serif;margin-bottom:22px}.entryHead h1 em{font-style:normal}.entryHead h2 em{font-style:normal}.entryHead .headwordAudio{height:23px;width:27px}.entryHead .headwordAudio button{background-size:27px 23px}.entryHead .headwordAudio ul li a button{background-size:14px 12px}.entryHead h1{margin-bottom:10px}.socials{float:right;margin-top:4px;position:relative}.socials .social-drop{right:-2px}.socials ul li{width:32px;height:32px;padding-left:0}.socials ul.adds li{width:auto;height:auto}.socials ul.adds li a i{width:32px;height:32px}.non-lexical-socials .socials{margin-top:10px;padding-right:20px;z-index:2}.socials-mobile{display:none}.socials-mobile .socials{text-align:center;width:100%;padding-right:0}.socials-mobile .lexical-socials,.socials-mobile.non-lexical-socials{float:none}.socials{display:none}.lexical-socials.socials-mobile,.non-lexical-socials.socials-mobile{display:block}.lexical-socials.socials-mobile .socials,.non-lexical-socials.socials-mobile .socials{display:block;float:none;margin-bottom:50px}.lexical-socials.socials-mobile .socials .social-drop,.non-lexical-socials.socials-mobile .socials .social-drop{position:relative;width:60px;margin:auto;margin-top:13px;left:41px}.lexical-socials.socials-mobile .socials .social-drop ul,.non-lexical-socials.socials-mobile .socials .social-drop ul{margin-bottom:0}.lexical-socials.socials-mobile .socials .social-drop ul:first-child,.non-lexical-socials.socials-mobile .socials .social-drop ul:first-child{border-bottom:none}.hwg{width:80%}.hwg .hw{font-size:1em;font-weight:700;margin-right:6px;-ms-word-break:break-all;word-break:break-word}.hwg a.hw{color:#3c9ae3}.gramb .ps{font:16px "Open Sans",Helvetica,Arial,sans-serif;font-family:"Open Sans",Helvetica,Arial,sans-serif;color:#f15a24;text-transform:uppercase;letter-spacing:.8px}.gramb .ps .pos{font-weight:700}.gramb .ps .qualifiers{font-weight:400;color:#787878;text-transform:none;letter-spacing:normal}.gramb .ps .qualifiers .plural{font-weight:700;color:#000}.gramb .ps .listSeparator{color:gray}.gramb .ps .pos-inflections{font-weight:400;text-transform:lowercase;letter-spacing:initial}.gramb .ps .pos-inflections .inflection-text{font-weight:700}.gramb .ps .pos-inflections .languageGroup{text-transform:uppercase}.gramb .ps .pos-inflections .inflection-type{color:var(--color-font-grey) 666}.gramb .ps .pos-inflections:before{content:" ("}.gramb .ps .pos-inflections:after{content:") "}.gramb .semb>p{font-family:"Open Sans",Helvetica,Arial,sans-serif;margin-bottom:17px;position:relative;padding-left:20px;line-height:1.2}.gramb .semb>p .iteration{font-weight:700;font-size:1em;line-height:1.2;position:absolute;top:1px;left:0}.gramb .semb>p .cnt{text-transform:uppercase;font-size:.9em;color:var(--color-brand);line-height:1.2;position:relative;cursor:default}.gramb .semb>p .cnt .pop-label{position:absolute;bottom:100%;left:50%;color:#fff;text-transform:none;width:202px;padding:7px 12px;margin-bottom:9px;line-height:1.2;background-color:#333;border-radius:5px;display:none;transform:translate(-50%,0)}.gramb .semb>p .cnt .pop-label:after{content:"";position:absolute;top:100%;left:0;right:0;width:0;height:0;border-style:solid solid none solid;border-width:7px;border-color:#333 transparent transparent transparent;margin:auto}.gramb .semb .semb{padding-left:20px}.gramb .semb .semb>li{padding-left:24px}.gramb .semb .semb>li .trg .iteration{left:-24px}.gramb .semb .semb .trg{margin-bottom:7px}.gramb .semb .semb .trg.spanish_label{margin-bottom:0}.gramb .semb .semb .trg .tr>span{vertical-align:inherit}.gramb .semb .sembsub>li{padding-left:33px}.gramb .semb .sembsub>li .trg .iteration{left:-33px}.gramb .semb.uncount .cnt{cursor:pointer}.gramb .semb.uncount>p{margin-bottom:5px}.gramb ul.semb>li{padding-left:1em;margin-bottom:1em}.gramb ul.semb>li .trg{margin-bottom:8px}.gramb ul.semb>li .trg .iteration{position:absolute;top:1px;left:-1em}.gramb ul.semb>li ul.semb{padding-left:0}.gramb ul.semb>li p+ul.semb{margin-top:15px}.gramb ul.semb .exg>ul>li .headwordAudio{margin-right:4px}.gramb .semb>p .cnt .pop-label{position:fixed;left:0;right:0;bottom:0;margin:0;top:auto;transform:translate(0,0);border-radius:0;z-index:1;width:auto}.trg>p{font-family:"Open Sans",Helvetica,Arial,sans-serif;position:relative;line-height:1.2}.trg>p .iteration{font-weight:700;font-size:1em;margin-right:12px}.trg>p .cs,.trg>p .ind{font-size:1em}.trg .tr>a+.headwordAudio,.trg .tr>span+.headwordAudio{margin-top:2px}.trg .tr>span .tgr{font-weight:400;color:#898989}.trg .tr>span .let-or{color:#898989;font-weight:400}.trg .tr>span+.lang{margin-left:3px}.trg .tr>a{font:700 18px/27px "Open Sans",Helvetica,Arial,sans-serif;font-family:"Open Sans",Helvetica,Arial,sans-serif;color:#3c9ae3}.trg .tr>a .tgr{font-weight:400;color:#898989}.trg .tr>a+.lang{margin-left:3px}.trg .tr .lang{font:12px "Open Sans",Helvetica,Arial,sans-serif;font-family:"Open Sans",Helvetica,Arial,sans-serif;color:#898989}.trg .tr .headwordAudio{margin-right:4px}.trg .tr>span{display:inline}.exg .ex span+.lang{margin-left:10px}.exg .ex span+.headwordAudio{margin-bottom:2px}.exg .ex span.lev{font-size:1em}.exg .ex .u{color:#898989}.exg .ex .reg{color:#2aa850;font-family:"Open Sans",Helvetica,Arial,sans-serif}.exg.list-ex{margin:12px 0}.exg.list-ex .ex{font-size:1em;margin-bottom:3px}.exg.list-ex ol{list-style:none;counter-reset:listEx}.exg.list-ex ol li{position:relative}.exg.list-ex ol li.ex{margin-bottom:0;padding-left:16px}.exg.list-ex ol li:before{content:counter(listEx,decimal) ". ";counter-increment:listEx;font:italic 700 14px/14px "Open Sans",Helvetica,Arial,sans-serif;font-family:"Open Sans",Helvetica,Arial,sans-serif;position:absolute;top:7px;margin:auto;height:14px;left:0}.moreInfo{margin:7px 0}.moreInfo button{border:2px solid var(--color-divider);color:var(--color-font-grey) 666;padding:2px 8px 3px;background-size:8px 8px;border-radius:13px;margin:3px 0 5px}.moreInfo+.exg,.moreInfo+.xrg{display:none}.moreInfo.active+.exg,.moreInfo.active+.xrg{display:block}.moreInfo+.exg .ex,.moreInfo+.xrg .ex{font-size:1em;line-height:1.2;padding:0 0 9px;margin-bottom:6px;border-bottom:1px solid #ddd}.moreInfo+.exg .ex:last-child,.moreInfo+.xrg .ex:last-child{border:none}.moreInfo.active button{background-color:var(--color-font-grey) 666;border-color:var(--color-font-grey) 666;color:#fff}.english-ex{margin-left:5px}.lev,.trg .tr>span.lev{color:#2aa850}.sg .posg{color:#f15a24;letter-spacing:.8px;margin-bottom:16px;text-transform:uppercase}.sg .posg .fg{text-transform:none;color:#000;margin:0 4px;letter-spacing:0}.sg .posg .listSeparator{color:var(--color-font-grey)}.sg .posg .pos-inflections{font-weight:400;text-transform:lowercase;letter-spacing:initial}.sg .posg .pos-inflections .inflection-text{font-weight:700}.sg .posg .pos-inflections .inflection-type{color:var(--color-font-grey) 666}.sg .posg .pos-inflections:before{content:" ("}.sg .posg .pos-inflections:after{content:") "}.sg ul li .iteration{position:absolute;top:3px;left:0}.etym h2{padding:4px 0;margin-bottom:8px}.pronSection{font-size:1em}.pronSection span{margin-left:7px}.pronSection .pron h2{display:inline}.pronSection .pronWord{font-weight:700}.pronSection .phoneticspelling{font-weight:400}.pronSection .ps{color:#f15a24;text-transform:uppercase;letter-spacing:.8px}.pron.inline{margin-top:-10px;margin-bottom:20px;font-size:1em}.desktop .breadcrumbs a:hover,.desktop .categories section a:hover h2,.desktop .dayword section .daywordmain strong .linkword:hover,.desktop .footerNav nav.sharing ul li a:hover span,.desktop .msDict .xrg a:hover,.desktop .news section a:hover h4,.desktop .posts section a:hover h4,.desktop .quotes .blogbox a:hover article h4,.desktop .relatedSection .relatedBox ul li a:hover,.desktop .seemore:hover,.desktop .signup p a:hover,.desktop .socials ul.adds li a:hover span,.desktop .trend section .popular ul li:hover,.desktop .videos ul li a:hover p{text-decoration:underline}.desktop .moreInfo button:hover{background-color:#dbdee2;border-color:#dbdee2}.desktop .moreInfo.active button:hover{background-color:var(--color-font-grey) 666;border-color:var(--color-font-grey) 666}.desktop .gramb .uncount>p .cnt:hover{color:#00791c}.desktop .exg .ex .lang:hover,.desktop .lang:hover span,.desktop .trg .tr .lang:hover{color:#565656}.subSenses{padding-left:0;list-style:none;font-size:1em;line-height:1.2;font-family:"Open Sans",sans-serif}.subSenses .subSense{padding-left:3em}.subSenses .subsenseIteration{display:inline-block;font-weight:700;font-size:1em;position:relative;right:2em;width:0}.controller__thesaurus .exampleGroup{font-family:Merriweather,serif;font-size:1em}.controller__thesaurus .phraseInnerWrapper>p,.controller__thesaurus .senseInnerWrapper>p{display:block;margin:0 0 16px}.controller__thesaurus .iteration{font-weight:700;padding-right:10px}.controller__thesaurus a.hw.core{font-weight:700}.controller__thesaurus .phrasesGroupSections{border-top:2px solid #888}.controller__thesaurus .phrasesGroupTitle{font-family:Merriweather,serif;font-size:1.1em;font-weight:600;margin:12px 0;margin-bottom:18px}.controller__thesaurus .phrases-title{font-size:1.1em}.controller__thesaurus .phrase{font-family:Merriweather,serif;font-size:1.1em;margin-bottom:15px;font-weight:600}.entry .entryHead h2 .pos{font-size:.5em!important}.pronunciations{margin:10px 0}.phoneticSpelling{margin:0 5px}.entryHead a.headwordAudio{margin:0 10px}.pronunciations{font-family:"Open Sans",Arial,sans-serif;font-size:1em;line-height:1.2;font-weight:400;margin-bottom:18px}.pronunciations a.headwordAudio{margin:-2px 10px}.phrase_sense{margin-left:0;padding-left:0!important}.phrase_sense.numbered{margin-left:24px}.phrase{font-family:Merriweather,serif;font-size:1em}#content.entry-ad-code-speech-mpu .dictLexico-Lex .banbox{padding-top:0}#content.entry-ad-code-speech-mpu .dictLexico-Lex .banbox{height:250px!important}#content.entry-ad-code-speech-mpu .dictLexico-Lex .banbox .container.mpu .banner{height:250px!important}.homographs{border:2px solid #dfeaf0;padding:3px 5px;background-color:#f8fafe;font-weight:600;font-size:1em}.homographs a{margin-right:8px;color:#3c9ae3}.homographs a:visited{color:#3c9ae3}.homographs em{font-weight:700}.homographs h1,.homographs h2{margin-bottom:1.5em!important;font-weight:400!important;font-family:Open sans,Helvetica,Arial,sans-serif!important}.homographs h1,.homographs h2{display:inline!important;max-width:100%;font-size:1em!important}.grammatical_note{color:var(--color-brand);font-weight:400;font-size:1em}.grammatical_note:before{content:"["}.grammatical_note:after{content:"]"}.examples,.synonyms{display:inline}.examples .moreInfo,.synonyms .moreInfo{display:inline;margin-right:8px}.exs{font-size:1em;line-height:1.2;margin-bottom:8px;font-weight:400;font-family:"Open Sans",Helvetica,Arial,sans-serif}.exs strong{font-weight:700}.sense-regions{margin-right:8px}.gramb p.note{font-size:1em;position:relative;line-height:1.2;margin-top:7px;margin-bottom:9px;padding:0 10px;border-left:3px solid #ccc;padding-left:20px}.gramb p.note+p.note{margin-top:-10px;padding-top:12px}.gramb .semb p.note{font-size:1em;position:relative;line-height:1.2;margin-top:7px;margin-bottom:9px;padding:0 10px;border-left:3px solid #ccc;padding-left:20px}.gramb .semb p.note+p.note{margin-top:-10px;padding-top:12px}span.transitivity{font-weight:700;margin-bottom:1px;display:block;margin-right:3.6px;font-size:1em;text-transform:uppercase}.trg span.transitivity{font-weight:400;display:inline}.sense-regions,.sense-registers{color:#f15a24;font-size:1em}.domain_labels{color:var(--color-brand);font-size:1em}.lex-filling>div.dictLexico-Lex{padding-bottom:10px;min-height:590px}.dictLexico-Lex .searchHeading{font-size:2em;padding-left:20px}.dictLexico-Lex .search-results li a{padding-left:20px;font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:1.1em;color:#3c9ae3}.dictLexico-Lex .search-results li a:hover{text-decoration:underline}a.ipaLink{display:none}.indicators{color:var(--color-brand);line-height:1.2;font-style:normal;font-size:1em;font-family:"Open Sans",sans-serif;position:relative;line-height:1.2;font-style:italic!important}.spanish_label{margin-top:-7px;margin-right:0;font-weight:400!important;font-size:16px!important;line-height:16px!important}span.hw.head-translation{color:#787878}.collocations,.indicator_tags{font-style:normal;color:var(--color-brand)!important;font-size:16px!important;font-weight:400!important;font-family:"Open Sans",sans-serif;position:relative}.phrases ul li{padding-left:0}.subsense_definitions{font-size:1em}section.etymology.etym.usage{border-top:2px solid #888;padding-top:4px}.synonyms .exg>div{margin-bottom:6px}.socialSignin{padding-top:1em}.socialSigninButtons a{width:220px;display:inline-block;text-transform:none;color:#fff;background-repeat:no-repeat;background-position:14px center;font-size:1em;padding:.9em 1em;line-height:1em;border-radius:5px;margin-right:1em;margin-bottom:1em}.socialSigninButtons a:hover{color:#fff}.socialSigninButtons a i{width:20px}.socialSigninButtons a.facebookSignin{background-color:#005ab1}.socialSigninButtons a.twitterSignin{background-color:#55acee}.socialSigninButtons a.googleSignin{background-color:#d93b2b}.dictionary__es .controller__bilingual_words .exg>.ex em:last-child{font-family:Merriweather,sans-serif!important}.dictionary__es .controller__bilingual_words .ex em{font-family:"Open Sans",sans-serif!important}.dictionary__es .controller__bilingual_words .ex em:first-child{font-style:normal}.dictionary__es .controller__bilingual_words .english-ex{font-family:"Open Sans",Helvetica,Arial,sans-serif}.dictionary__es .tablet.landscape .dictionary__es .entryHead .socials,.dictionary__es .tablet.portrait .dictionary__es .entryHead .socials{position:relative;float:right;margin:70px 0 7px 15px}.dictionary__es .headwordAudio.initd,.dictionary__es .rsbtn.initd{display:inline-block}.dictionary__es .exg>.ex em{font-family:Merriweather,sans-serif}.dictionary__en .exg>.ex em{font-family:Merriweather,sans-serif}.controller__thesaurus .homographs h1{font-size:100%;display:inline}.controller__thesaurus .homographs{border:2px solid #dfeaf0;padding:8px;padding-bottom:5px;background-color:#f8fafe;font-weight:600;margin-bottom:.95em;line-height:1.6em;font-size:1em}.controller__thesaurus .homographs a{margin-right:8px;color:#3c9ae3}.controller__thesaurus .homographs a:visited{color:#3c9ae3}.controller__thesaurus .homographs em{font-weight:700}.controller__thesaurus .homographs h1,.controller__thesaurus .homographs h2{margin-bottom:1.5em!important;font-weight:400!important;font-family:Open sans,Helvetica,Arial,sans-serif!important}.controller__thesaurus .homographs h1,.controller__thesaurus .homographs h2{display:inline!important;max-width:100%;font-size:16px!important}.controller__thesaurus .grammatical_note{font-weight:400;font-size:1em}.controller__thesaurus .grammatical_note:before{content:"["}.controller__thesaurus .grammatical_note:after{content:"]"}.controller__thesaurus .examples,.controller__thesaurus .synonyms{display:inline}.controller__thesaurus .examples .moreInfo,.controller__thesaurus .synonyms .moreInfo{display:inline;margin-right:8px}.controller__thesaurus .exs{font-size:1em;line-height:1.2;margin-bottom:8px;font-weight:400;font-family:"Open Sans",Helvetica,Arial,sans-serif}.controller__thesaurus .exs strong{font-weight:700}.controller__thesaurus .sense-regions{margin-right:8px}.controller__thesaurus .gramb ol.subSenses{margin-top:19px}.controller__thesaurus .gramb ol.subSenses li{margin-bottom:19px}.controller__thesaurus .gramb p.note{font-size:1em;position:relative;line-height:1.2;margin-top:7px;margin-bottom:9px;padding:0 10px;border-left:3px solid #ccc;padding-left:20px}.controller__thesaurus .gramb p.note+p.note{margin-top:-10px;padding-top:12px}.controller__thesaurus .gramb .semb p.note{font-size:1em;position:relative;line-height:1.2;margin-top:7px;margin-bottom:9px;padding:0 10px;border-left:3px solid #ccc;padding-left:20px}.controller__thesaurus .gramb .semb p.note+p.note{margin-top:-10px;padding-top:12px}.word_type.pos{text-transform:uppercase;margin-bottom:5px}.form-groups{margin-right:.5em}a[data-value="view synonyms"]{display:inline-block;margin-bottom:.5em}.exg{padding-left:.5em;border-left:1px solid var(--color-font-grey)}@media screen and (max-width:1290px){.container{padding:0 20px}.container.full{padding:0 5px}}@media screen and (max-width:1023px){.container{padding:0 20px}.container.full{padding:0 10px}}@media screen and (max-width:767px){.container{padding:0 10px}.container.full{padding:0 5px}}@media screen and (max-width:767px){.topHeader{display:none}}@media screen and (max-width:900px){.topHeader .nav>ul>li.mob{display:none}}@media screen and (max-width:900px){.topHeader .nav>ul>li.more{display:inline-block}}@media screen and (max-width:1023px){.topHeader .nav>ul .drop ul{width:190px}}@media screen and (max-width:1290px){.topHeader .nav>ul .drop ul li a{padding:5px 14px 3px}}@media screen and (max-width:1023px){.topHeader .signIn{margin-right:18px}.topHeader .signIn a span{padding:0}}@keyframes dropIn{from{transform:translate(0,-100%)}to{transform:translate(0,0)}}@media screen and (max-width:1290px){.headerContent .logo{height:65px;margin:44px 20px 33px 152px}.headerContent .logo img,.headerContent .logo svg{height:65px}}@media screen and (max-width:1023px){.headerContent .logo{height:45px;margin:17px 0 14px 106px}.headerContent .logo img,.headerContent .logo svg{height:45px;width:110px}}@media screen and (max-width:1290px){.headerContent .searchField{margin-left:344px}}@media screen and (max-width:1023px){.headerContent .searchField{margin-left:245px}}@media screen and (max-width:1023px){.headerContent .searchField .beforeSearch{display:none}}@media screen and (max-width:1023px){.headerContent .searchField .powered{display:none}}@media screen and (max-width:767px){.headerContent .searchField{float:left;margin:0}}@media screen and (max-width:1023px){.headerContent .searchField .searchMain{padding:15px 0 0}}@media screen and (max-width:767px){.headerContent .searchField .searchMain{padding:0;position:relative;padding-top:45px}}@media screen and (max-width:1290px){.headerContent .searchField .searchMain form .sbOptions a{padding:14px 15px 10px}}@media screen and (max-width:1023px){.headerContent .searchField .searchMain form .sbHolder{height:45px;width:166px}.headerContent .searchField .searchMain form .sbHolder .sbToggle{height:6px;width:13px;right:13px}.headerContent .searchField .searchMain form .sbHolder .sbSelector{height:45px;line-height:1.2}.headerContent .searchField .searchMain form .sbHolder .sbOptions{margin-top:2px;width:166px}}@media screen and (max-width:767px){.headerContent .searchField .searchMain form .sbHolder{display:none;border-radius:5px;float:none;height:35px;width:100%;margin-bottom:10px}.headerContent .searchField .searchMain form .sbHolder .sbSelector{height:35px;line-height:1.2;border-radius:5px}.headerContent .searchField .searchMain form .sbHolder .sbOptions{width:100%}.headerContent .searchField .searchMain form .sbToggleOpen+.sbSelector{border-radius:5px 5px 0 0}}@media screen and (max-width:767px){.headerContent .searchField .searchMain form fieldset input{border-radius:5px;padding:0 44px 0 11px;height:35px;border-style:solid}}@media screen and (max-width:767px){.headerContent .searchField .searchMain form fieldset.ac-active input{border-radius:5px}}@media screen and (max-width:767px){.headerContent .searchField .searchMain form fieldset .keyboard{display:none}}@media screen and (max-width:767px){.headerContent .searchField .searchMain form fieldset button[type=submit]{top:0;right:0}}@media screen and (max-width:767px){.headerContent .searchField .searchMain form fieldset .autocompleteBox{left:9px;right:41px}}@media screen and (max-width:767px){.headerContent .searchField .searchMain form fieldset .ui-autocomplete li{font-size:1em;padding:3px 15px}}@media screen and (max-width:1023px){.headerContent .searchField .searchMain form fieldset{margin-left:166px}.headerContent .searchField .searchMain form fieldset input{height:45px;font-size:1em;padding:0 100px 0 14px}.headerContent .searchField .searchMain form fieldset .keyboard{right:49px}.headerContent .searchField .searchMain form fieldset button[type=submit]{height:40px;width:40px}.headerContent .searchField .searchMain form fieldset button[type=submit] svg{height:22px;width:22px}.headerContent .searchField .searchMain form .sbSelector{font-size:1em;padding:2px 0 0 12px}.headerContent .searchField .searchMain form .sbOptions a{font-size:1em;padding:14px 15px 13px}}@media screen and (max-width:767px){.headerContent .searchField .searchMain form fieldset{margin:0 0 10px;left:0;position:absolute;right:0;top:0}.headerContent .searchField .searchMain form fieldset input{border-radius:5px;padding:0 44px 0 11px;height:35px;border-style:solid}}@media screen and (max-width:767px){.mainHeader{position:relative!important;animation:none!important}}@media screen and (max-width:767px){.mainHeader.fixed{display:block}}@media screen and (max-width:1290px){.mainHeader.fixed .headerContent .logo{width:55px;height:55px}}@media screen and (max-width:1023px){.mainHeader.fixed .headerContent .logo{width:45px;height:45px;margin:15px 0}}@media screen and (max-width:767px){.mainHeader.fixed .headerContent .logo{width:100%;height:42px;margin:9px 0;padding:0;display:block}}@media screen and (max-width:1290px){.mainHeader.fixed .headerContent .logo img,.mainHeader.fixed .headerContent .logo svg{width:55px;height:55px}}@media screen and (max-width:1023px){.mainHeader.fixed .headerContent .logo img,.mainHeader.fixed .headerContent .logo svg{height:45px;width:45px}}@media screen and (max-width:767px){.mainHeader.fixed .headerContent .logo img,.mainHeader.fixed .headerContent .logo svg{display:none}}@media screen and (max-width:767px){.mainHeader.fixed .headerContent .logo img,.mainHeader.fixed .headerContent .logo svg{display:block;height:42px;width:110px;margin:0 auto}}@media screen and (max-width:1290px){.mainHeader.fixed .headerContent .searchField{margin-right:132px}}@media screen and (max-width:1023px){.mainHeader.fixed .headerContent .searchField{padding:0;margin-left:0}}@media screen and (max-width:767px){.mainHeader.fixed .headerContent .searchField{margin:0;width:100%;height:auto}}@media screen and (max-width:1023px){.mainHeader.fixed .burger{right:0}}@media screen and (max-width:767px){.mainHeader.fixed .burger{background-color:transparent;bottom:auto;height:22px;line-height:1.2;padding:0;right:6px;top:16px}}@media screen and (max-width:767px){.mainHeader.fixed .burger span{display:none}}@media screen and (max-width:767px){.mainHeader.fixed{transition:none}}@media screen and (max-width:767px){#footer .footerWrap{padding-bottom:86px}}@media screen and (max-width:767px){#footer .copyright{padding:0 9px}}@media screen and (max-width:1023px){.footerNav nav.sharing{margin-right:51px}.footerNav nav.sharing:lang(ur){margin-right:0}}@media screen and (max-width:1023px){.footerNav nav{margin-right:45px}.footerNav nav .sharing{margin-right:50px}}@media screen and (max-width:767px){.footerNav{padding:28px 0 11px;margin:0 11px 13px}.footerNav nav{display:block;margin:0 0 27px}.footerNav .brand_logo{display:block;padding:5px 0;position:static}}@media screen and (max-width:767px){.mobile_banner{background-color:#f5f5f5;border-top:1px solid #a2a2a2;bottom:0;z-index:99;position:fixed;width:100%;box-shadow:0 15px 20px 4px #000}.banbox-mini{display:none!important}}@media screen and (max-width:1290px){.banbox .banner{max-width:100%}}@media screen and (max-width:767px){.banbox{padding:8px 0}.banbox .container{padding:0}.banbox .banner{width:320px;height:50px!important}.banbox.violbox .content-ban .banner{height:250px!important}}@media screen and (max-width:1290px){.banbox-mini .banner{padding:0;background-color:transparent}}@media screen and (max-width:1023px){.banbox-mini .banner{padding-top:30px;background-color:#fff}}@media screen and (max-width:767px){.banbox-mini .banner{padding:0;background-color:transparent}}@media screen and (min-width:1290px){.banbox-mini .banner.marked-ad>div>div::before{top:-30px}}@media screen and (max-width:767px){.video.video-md .box-img:before{width:46px;height:46px;background-size:46px 46px}}@media screen and (max-width:1023px){.further_reading,h3.title{padding:39px 0 24px}}@media screen and (max-width:767px){.further_reading,h3.title{font-size:1.1em;padding:24px 10px}}@media screen and (max-width:1023px){.h-box h3.title{padding:31px 0 29px}}@media screen and (max-width:767px){.h-box h3.title{padding:31px 0 23px}}@media screen and (max-width:1290px){.news{padding:31px 0 17px}.news section{padding:9px 15px}.news section a h2{margin-bottom:-6px}.news section a .box-img{width:116px;height:68px}.news section.mainNews h1{font-size:1em;line-height:1.2;padding:0 27px}}@media screen and (max-width:1023px){.news{padding:19px 0 0}.news section{width:50%;padding:9px 10px}.news section a{padding-bottom:18px}.news section a h2{line-height:1.2}.news section.mainNews{width:50%}.news section.mainNews a{height:auto}.news section.mainNews a .box-img{height:211px}.news section.mainNews a .box-img:after{display:none}.news section.mainNews h1{position:relative;bottom:auto;float:left;width:100%;padding-bottom:10px;font:24px "Open Sans",Helvetica,Arial,sans-serif;font-family:inherit;color:#333;padding:10px 12px;border:1px dotted #ccc;border-top:none}.news section.mainNews h1 i{font-family:"Open Sans",Helvetica,Arial,sans-serif}}@media screen and (max-width:767px){.news{padding:14px 0 0}.news section{padding:5px;width:100%}.news section a{margin-bottom:5px;padding-bottom:17px}.news section a h4{line-height:1.2}.news section.mainNews{width:100%}.news section.mainNews a{margin-bottom:11px;padding:0}.news section.mainNews a .box-img{height:177px}.news section.mainNews h1{font-size:1em;padding-bottom:11px}}@media screen and (max-width:1290px){.words.newWords{padding-top:13px}}@media screen and (max-width:1290px){.words{padding-top:25px}.words>div{padding:15px;height:375px}}@media screen and (max-width:1023px){.words{padding:13px 0;font-size:0;text-align:center}.words>div{display:inline-block;width:50%;height:363px;padding:10px;font-size:1em;vertical-align:top}.words>div.banbox-mini{height:329px;min-height:initial;float:none;width:380px}}@media screen and (max-width:767px){.words{padding:15px 0 10px}.words{display:flex;flex-wrap:wrap-reverse}.words>div{padding:5px;width:100%;height:auto;margin-bottom:10px}.words>div.banbox-mini{width:310px;height:260px;width:310px;margin:0 auto 10px}}@media screen and (max-width:1023px){.centerableWrapper{margin:auto;float:none!important}}@media screen and (max-width:1290px){.contentPanel section .popular p,.trend section .popular p{padding-bottom:3px}.contentPanel section ol li a,.trend section ol li a{line-height:1.2;display:block}.contentPanel section ol li:before,.trend section ol li:before{top:2px}}@media screen and (max-width:1023px){.contentPanel section ol li:before,.trend section ol li:before{top:3px}}@media screen and (max-width:767px){.contentPanel section,.trend section{padding:27px 23px 17px}}@media screen and (max-width:1290px){.dayword section .daywordmain p{padding:0 28px 2px}.dayword section form fieldset label{width:67%}.dayword section form fieldset button{width:30%}}@media screen and (max-width:1023px){.dayword section .daywordmain p{padding:0 40px}.dayword section form{padding:13px}.dayword section form fieldset label{width:68%}.dayword section form fieldset button{width:29%;letter-spacing:.8px}}@media screen and (max-width:767px){.dayword section h3{margin-bottom:28px}.dayword section .daywordmain{height:auto}.dayword section .daywordmain>div{height:auto}.dayword section .daywordmain strong{margin-bottom:10px}.dayword section .daywordmain p{padding:0 30px}.dayword section form{padding:14px 13px}.dayword section form fieldset label{width:-ms-calc(100% - 50px);width:calc(100% - 50px);margin-right:8px}}@media screen and (max-width:767px){.quizzes>div section article a.tertiary-link{font-size:1em}}@media screen and (max-width:1290px){.quizzes>div{padding:0 15px}.quizzes>div section article{margin:-19% 11px 0;padding:20px 25px 25px}}@media screen and (max-width:1023px){.quizzes>div{padding:0 10px;width:50%;margin-bottom:21px}.quizzes>div section .box-img{height:210px}.quizzes>div section article{margin:-19% 11px 0;padding:20px 25px 25px}.quizzes .banbox-mini{height:308px;margin-bottom:45px;width:380px}}@media screen and (max-width:767px){.quizzes>div{padding:0 5px}.quizzes>div section .box-img{height:172px}.quizzes>div section article h4{font-size:1em}.quizzes>div section article a{padding:3px 21px 0 0}.quizzes .banbox-mini{height:250px;width:310px;margin-bottom:32px}}@media screen and (max-width:550px){.quizzes>div{width:100%}}@media screen and (max-width:1023px){.faces section{padding:0 55px}.faces section h4{margin-bottom:20px}.faces section p{line-height:1.2}.faces .faces-pic{background-size:cover;height:486px}}@media screen and (max-width:767px){.faces{position:relative;padding-bottom:162px}.faces>div{width:100%}.faces .faces-pic{background-position:-2px 0;background-size:cover;height:162px;position:absolute;left:0;right:0;bottom:0}.faces section{padding:27px 14px 20px}.faces section h4{font-size:1em;margin-bottom:10px;line-height:1.2}.faces section p{line-height:1.2;margin-bottom:17px;font-size:1em}.faces section a{padding:11px 16px}}@media screen and (max-width:1290px){.quotes{padding:44px 0 45px}.quotes>div{padding:15px}.quotes .blogbox article{margin:-75px 13px 0;padding:20px 20px 50px}}@media screen and (max-width:1023px){.quotes{padding:33px 0 32px}.quotes>div{padding:10px}.quotes .blogbox article{margin:-42px 11px 0;padding:20px 20px 29px}}@media screen and (max-width:767px){.quotes{padding:13px 0 15px}.quotes>div{width:100%}.quotes .blogbox .box-img{height:172px}.quotes .blogbox article{margin:-63px 8px 0;padding:17px 16px 19px}.quotes .blogbox article h2{margin-bottom:5px}.quotes .blogbox article h4{font-size:1em}}@media screen and (max-width:767px){.quotewrap .auth{font-size:1em}}@media screen and (max-width:1023px){.quotewrap{padding:36px 30px 30px}.quotewrap .quotemain{height:auto;padding:22px 0}.quotewrap .quotemain p{font-size:1.1em;line-height:1.25}}@media screen and (max-width:767px){.videos ul li a h2{font-size:1em;margin-top:-10px;line-height:1.2}}@media screen and (max-width:1290px){.videos ul li{padding:5px 15px;margin-bottom:65px}.videos ul li a .box-img{height:132px}}@media screen and (max-width:1023px){.videos ul li{padding:0 10px;width:50%;margin-bottom:50px;position:relative}.videos ul li:nth-child(3):before,.videos ul li:nth-child(4):before{border-top:1px dotted #ccc;content:"";height:0;left:10px;position:absolute;right:10px;top:-27px}.videos ul li a .box-img{height:208px}}@media screen and (max-width:767px){.videos ul li{padding:0 5px;margin-bottom:38px}.videos ul li a .box-img{height:82px}.videos ul li:nth-child(3):before,.videos ul li:nth-child(4):before{top:-19px;left:5px;right:5px}}@media screen and (max-width:1023px){.violbox{margin-bottom:-20px}}@media screen and (max-width:1023px){h3.title{font-size:28px!important}.quotes .blogbox article h4{font-size:16px!important}.quotes .blogbox article h2{font-size:20px!important}.faces section h2{font:28px "Open Sans",Helvetica,Arial,sans-serif!important}.faces section a{padding:7px 12px!important;font:14px "Open Sans",Helvetica,Arial,sans-serif!important}.quizzes>div section article h2{font:18px "Open Sans",Helvetica,Arial,sans-serif!important}.quizzes>div section>a>article{min-height:0!important;padding-top:0}.quizzes>div section>article{min-height:0!important}}@media screen and (max-width:1290px){.sidebar{margin-top:0}.sidebar .news section a article{padding:7px 8px 12px}}@media screen and (max-width:549px){.sidebar .sidebar-content .contribute{margin-left:0!important;margin-right:0!important;margin-top:24px!important}}@media screen and (max-width:1023px){.sidebar{width:100%;margin:0}.sidebar .sidebar-content{margin:0 -10px;font-size:0;text-align:center}.sidebar .sidebar-content .contribute{padding-bottom:0;padding-top:29px;margin-top:0;margin-bottom:23px;margin-left:10px;margin-right:10px}.sidebar .sidebar-content .contribute h4{font-size:1.1em;line-height:1.25em;color:#fff;margin-bottom:.4em}.sidebar .sidebar-content .contribute a{font-size:1em}.sidebar .dayword{display:inline-block;width:100%;vertical-align:top;padding:0 10px;box-sizing:border-box;margin-bottom:25px;margin-top:20px}.sidebar .dayword section .daywordmain{margin-top:-34px;height:196px}.sidebar .dayword section .daywordmain>div{height:123px}.sidebar .dayword section .daywordmain>div>div strong{margin-bottom:0}.sidebar .banbox-mini{float:left;width:100%;vertical-align:top;margin:-15px 0 15px}.sidebar .banbox-mini.mobile-ver{display:inline-block}.sidebar .banbox-mini .banner{margin:0 auto 15px}.sidebar .banbox-mini+.signup-wrap{clear:both;margin-top:0}.sidebar .news{padding:0}.sidebar .news section{display:inline-block;width:50%;vertical-align:top;padding:0 10px;background-color:transparent;border:none;text-align:left}.sidebar .news section.no-visible-mob{display:none}.sidebar .news section.no-visible-desk{display:inline-block}.sidebar .news section:nth-last-child(1):nth-of-type(odd){float:none;clear:both;display:block;margin:0 auto 22px}.sidebar .news section a{background-color:#fff;border:1px solid #d5d5d5}.sidebar .news section a article{min-height:42px}.sidebar .news .sideTestWrap{width:50%}.sidebar .news .banbox-mini{margin-top:10px}.sidebar .sideTestWrap,.sidebar .sideTrendWrap{display:inline-block;width:50%;vertical-align:top;padding:0 10px;box-sizing:border-box}.sidebar .signup-wrap{display:inline-block;width:100%;padding:0 10px;margin-bottom:37px;font-size:1em}.sidebar .signup-wrap .signup{box-sizing:border-box}.sidebar .tests{box-sizing:border-box}}@media screen and (max-width:900px){.sidebar .news section a article{min-height:60px}}@media screen and (max-width:767px){.sidebar .sidebar-content{margin:20px 0;padding:0 10px;text-align:center}.sidebar .dayword section h4{margin-bottom:12px}.sidebar .dayword section .daywordmain{height:auto}.sidebar .dayword section .daywordmain>div{height:auto}.sidebar .dayword section .daywordmain>div>div strong{margin-bottom:16px}.sidebar .dayword section form{height:auto}.sidebar .news section a article{min-height:60px;text-align:left}.sidebar .banbox-mini{margin-bottom:22px;width:100%}.sidebar .banbox-mini.mobile-ver{display:block;margin-left:auto;margin-right:auto}.sidebar .signup-wrap{margin:0 auto 28px}}@media screen and (max-width:550px){.sidebar .dayword{width:auto;display:block;padding:0;margin-bottom:10px}.sidebar .news section{display:block;width:100%;padding:0;margin-bottom:10px}.sidebar .news section:nth-last-child(1):nth-of-type(odd){float:left}.sidebar .news section a{margin:0}.sidebar .news section a article{min-height:0}.sidebar .news .sideTestWrap{width:100%}.sidebar .sideTestWrap,.sidebar .sideTrendWrap{display:block;width:auto;padding:0;box-sizing:border-box}.sidebar .sideTestWrap>div,.sidebar .sideTrendWrap>div{min-height:0;height:auto;margin-bottom:10px}.sidebar .sideTestWrap{float:left;width:100%}.sidebar .banbox-mini{margin-bottom:10px;margin-top:5px;width:100%}.sidebar .banbox-mini.mobile-ver{display:block}.sidebar .signup-wrap{width:auto;display:block;width:auto;padding:0}}@media screen and (max-width:767px){.lex-container .banbox{height:50px!important;background-color:#f5f5f5;border-top:1px solid #a2a2a2;box-shadow:0 15px 20px 4px #000}}@media screen and (max-width:1290px){.lex-container .banbox .category-ban,.lex-container .banbox .content-ban{padding:0 20px 0 195px}}@media screen and (max-width:1023px){.lex-container .banbox .category-ban,.lex-container .banbox .content-ban{padding:0 20px}.lex-container .banbox .category-ban .banner,.lex-container .banbox .content-ban .banner{margin:0 auto}}@media screen and (max-width:767px){.lex-container .banbox .content-ban .banner{margin:0 auto 0}.lex-container .banbox .container{padding:0}.lex-container .main-content .container{padding:0}}@media screen and (max-width:1023px){.entry-ad-code-top-mpu .lex-container .banbox .content-ban,.mono-lingual-entry-ad-code-top-mpu .lex-container .banbox .content-ban{padding:0}}@media screen and (max-width:1290px){.entry-ad-code-top-mpu .lex-container .banbox .content-ban,.mono-lingual-entry-ad-code-top-mpu .lex-container .banbox .content-ban{padding:0}}@media screen and (max-width:1290px){.non-lexical-ad-code-top-mpu .lex-container .banbox .content-ban{padding:0}.non-lexical-ad-code-top-mpu .lex-container .banbox .content-ban .banner{margin:0 auto}}@media screen and (max-width:1023px){.lex-content .lex-filling{padding-right:0}}@media screen and (max-width:767px){.lex-content .lex-filling{padding-left:0}}@media screen and (max-width:1023px){.lex-category .lex-filling{padding-right:0}}@media screen and (max-width:767px){.lex-category .lex-filling{padding-left:0!important}}@media screen and (max-width:1290px){.lex-filling .box-img{height:141px}}@media screen and (max-width:1023px){.lex-filling .box-img{height:159px}}@media screen and (max-width:767px){.lex-filling{padding-left:0}.lex-filling>div{padding-bottom:0}.lex-filling>div.comments{padding-bottom:32px}}@media screen and (min-width:1540px){.sideBanner{width:300px!important;margin-left:-111%!important}.sideBanner .sideBannerWrap{width:300px!important}.sideBanner .sideBannerWrap .banner{width:300px!important}.sideBanner .sideBannerWrap .adUnit{width:300px!important}}@media screen and (max-width:1023px){.sideBanner .sideBannerWrap{margin-top:0}.sideBanner .sideBannerWrap .banner.abs{margin-top:-39px}}@media screen and (max-width:767px){.sideBanner{display:none}}@media screen and (max-width:1023px){.lex-category .lex-filling{padding-right:0}}@media screen and (max-width:1290px){.categories .banbox{display:none}.categories .banbox-mini{display:block}}@media screen and (max-width:1023px){.categories .banbox-mini .banner{background-color:transparent;padding:0}}@media screen and (max-width:767px){.categories section a .box-img{min-height:0;width:130px;margin-right:7px}.categories section a article{padding:0 10px 0 130px}.categories section a h2{font:18px/22px "Open Sans",Helvetica,Arial,sans-serif;margin-bottom:0;padding-left:7px}.categories section a h4{display:none;padding-left:7px}}@media screen and (max-width:1290px){.textBlock{padding:25px 20px}.textBlock:before{left:21px;right:21px}.textBlock .large{float:none;font-size:1.1em;line-height:1.2;margin-bottom:23px;padding:37px 37px 0 31px;width:auto}.textBlock .large:before{height:7px;left:32px;top:19px;width:80px}}@media screen and (max-width:1023px){.textBlock .large{padding:34px 37px 0 27px;margin-bottom:23px}.textBlock .large:before{left:26px;top:14px}}@media screen and (max-width:767px){.textBlock{padding:12px 10px 16px}.textBlock h1{font:32px "Open Sans",Helvetica,Arial,sans-serif;font-family:inherit;text-align:left;margin-bottom:4px}.textBlock h1 span{border:none;margin-bottom:16px;padding-bottom:0}.textBlock h2{font-size:1em;margin-bottom:11px;margin-top:26px}.textBlock h3{font-size:1.1em;margin-bottom:8px;margin-top:21px}.textBlock p{margin-bottom:14px}.textBlock p.centered{text-align:left;max-width:none}.textBlock .large{padding:38px 25px 0 15px}.textBlock .large:before{left:15px;top:18px}.textBlock ul li{padding-left:38px}.textBlock ul li:before{left:19px}.textBlock dl dd{line-height:1.2;margin:2px 0 15px 18px;padding:0 0 3px 8px}.textBlock ol li{padding-left:39px}.textBlock ol li:before{left:17px}.textBlock ol.no-num li{padding-left:20px}.textBlock:before{left:12px;right:12px}}@media screen and (max-width:1290px){.comments{padding:31px 21px}}@media screen and (max-width:767px){.comments{padding:32px 12px}}@media screen and (max-width:1290px){.lex .quizzes{padding:0 10px}.lex .quizzes>div{margin-bottom:41px}.lex .quizzes>div section .box-img{height:179px}.lex .quizzes>div section article h4{font-size:1em}.lex .quizzes .banbox-mini{height:auto}.lex .quizzes .banbox-mini .banner{width:300px;margin:0 auto}}@media screen and (max-width:1023px){.lex.h-box h3.title{padding:51px 0 39px}.lex .quizzes{padding:0 5px}.lex .quizzes .banbox-mini{width:50%}.lex .quizzes .banbox-mini .banner{height:300px;margin:0 auto;padding-top:25px;width:340px}.lex .quizzes>div{padding:0 15px;margin-bottom:41px}.lex .quizzes>div section article p{margin-bottom:9px}}@media screen and (max-width:767px){.lex.h-box h3.title{font-size:1em;padding:51px 0 39px}.lex .quizzes>div{margin-bottom:32px}.lex .quizzes .banbox-mini{padding:0}.lex .quizzes .banbox-mini .banner{height:100%;padding:0;width:300px}}@media screen and (max-width:620px){.lex .quizzes>div:first-child{width:-ms-calc(100% - 300px);width:calc(100% - 300px)}.lex .quizzes .banbox-mini{width:300px}}@media screen and (max-width:550px){.lex .quizzes>div{padding:0;margin-bottom:30px}.lex .quizzes>div:first-child{width:100%}.lex .quizzes .banbox-mini{width:auto;padding:0}}@media screen and (max-width:1100px){.lex-category .banbox .content-ban .banner{width:300px;height:250px;margin-bottom:10px}.lex-category .banbox .content-ban .banner div{height:100%}}@media screen and (max-width:767px){.sg ul li p{line-height:1.2}}@media screen and (max-width:1290px){.topHeader .container.full{padding:0 23px 0 3px}}@media screen and (max-width:1023px){.topHeader .container.full{padding:0 20px 0 7px}}@media screen and (max-width:767px){#main{padding-top:0}.bluebox{margin:0 10px 27px}}@media screen and (max-width:1023px){.sidebar .quiz-panel-odo,.sidebar .trending-panel-odo{box-sizing:border-box;display:inline-block;width:99%;vertical-align:top;padding:0 10px;margin-bottom:14px}.quiz-panel{min-height:270px}}@media screen and (max-width:550px){.quiz-panel{min-height:100px}}@media screen and (max-width:550px){.sidebar .quiz-panel-odo,.sidebar .trending-panel-odo{width:auto;display:block;width:auto;padding:0}}@media(max-width:550px){.media,.media-body{margin-bottom:25px}.media-left{display:block!important}.media-object{width:100%;clear:both;height:auto;min-height:auto;min-width:375px}.media-heading{margin-bottom:5px;line-height:1em;font-size:.8em}}@media all and (min-width:768px){.cookie-container{padding:0 20px}}@media all and (min-width:768px){#homePage .cookies-eu{padding-bottom:15px}}@media(max-width:549px){.controller__thesaurus .heading__item,.controller__thesaurus .heading__item--fixed,.controller__thesaurus .sidebar,.controller__thesaurus .sidebar__item{width:100%}.controller__thesaurus .heading__item--fixed .banner{padding:0}.controller__thesaurus .sidebar{padding:10px 0}.controller__thesaurus .main-content{padding:0}.controller__thesaurus .banner--left{display:none}.controller__thesaurus .banner--top{height:auto;margin-bottom:10px;padding-left:0}.controller__thesaurus .heading__item{padding:10px}.controller__thesaurus .content{width:100%;margin-left:0}.controller__thesaurus .footer__container{padding:30px 20px}.controller__thesaurus .copyright-con{padding:0 10px}}@media(max-width:730px){.controller__thesaurus .footer__container .in-b{display:block;width:100%}.controller__thesaurus .footer__item{display:block;width:100%;padding-right:10px;padding-bottom:20px}}@media(max-width:767px){.controller__thesaurus .banner--top{text-align:center}.controller__thesaurus .banner--top img{display:inline-block;width:320px;height:50px}.controller__thesaurus .entryPage+.fl-r .social__links{display:none}.controller__thesaurus .content{padding:20px 10px}}@media(min-width:768px){.controller__thesaurus .content{padding:20px}}@media(min-width:550px)and (max-width:767px){.controller__thesaurus .sidebar{padding:20px}.controller__thesaurus .main-content{padding:0}.controller__thesaurus .banner--top{height:auto;margin-bottom:10px;padding-left:0}.controller__thesaurus .banner--left{display:none}.controller__thesaurus .content{width:100%;margin-left:0}.controller__thesaurus .heading__item{padding:10px}.controller__thesaurus .heading__item__content{padding-right:15px;padding-left:15px}}@media(min-width:768px)and (max-width:1023px){.controller__thesaurus .content{width:calc(100% - 175px);margin-right:0}.controller__thesaurus .banner--left{margin-top:0}.controller__thesaurus .banner--top{padding-left:0}}@media(max-width:960px){.controller__thesaurus .content{margin-right:0}}@media(max-width:1264px){.controller__thesaurus .sidebar{margin-top:0}.controller__thesaurus .banner-3 .in-b:first-of-type{display:none}}@media(min-width:1024px){.controller__thesaurus .content{width:calc(100% - 495px)}.controller__thesaurus .heading__item__content h4{font-size:1em}}@media(min-width:550px)and (max-width:1023px){.controller__thesaurus .heading__item,.controller__thesaurus .heading__item--fixed{min-width:50%}.controller__thesaurus .sidebar{font-size:0;width:100%}.controller__thesaurus .sidebar__item{font-size:1rem;display:inline-block;width:calc(50% - 10px);margin:10px;vertical-align:top}.controller__thesaurus .sidebar__item:nth-child(even){margin-right:0}.controller__thesaurus .sidebar__item:nth-child(odd){margin-left:0}.controller__thesaurus .sidebar .sidebar__item:first-child{margin-top:10px}}@media(max-width:1289px){.controller__thesaurus .hide1290{display:none!important}.controller__thesaurus .banner-in-c .hide-desc img{display:inline-block;width:300px;height:auto}}@media(min-width:1290px){.controller__thesaurus .hide-desc{display:none!important}}@media all and (max-width:767px){.homeSearch{display:block;background-color:#00b9fe}.homeSearch .homeSearchContent{width:100%}}@media all and (max-width:767px){.visibleMobile{display:block}.visibleDesktop{display:none}.panel{min-height:194px}}@media all and (min-width:767px){.visibleMobile{display:none}.visibleDesktop{display:block}}@media all and (min-width:767px){.lex-category .browse-menu-outer ul.horizontal-list li a{width:55px;height:55px;line-height:1.2}.lex-category .browse-menu-outer ul.horizontal-list li::before{left:55px!important}}@keyframes load8{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@media screen and (max-width:1290px){.news section a span.article-title{margin-bottom:-6px}}@media screen and (max-width:767px){.quizzes>div section article span.further_reading_article_title{font-size:1em}}@media screen and (max-width:1290px){#content.bi-lingual-enes-ad-code-top-mpu .lex-container .banbox .content-ban,#content.us-english-entry-ad-code-top-mpu .lex-container .banbox .content-ban{padding:0;margin:auto}}@media screen and (min-width:1024px){#content.thesaurus-ad-code-top-mpu .lex-container .banbox .content-ban{padding:0 315px 0 0}}@media screen and (max-width:1290px){#content.thesaurus-ad-code-top-mpu .lex-container .banbox .content-ban{padding:0}}@media screen and (max-width:767px){#content.us-english-entry-ad-code-speech-mpu .banbox .mpu .banner{width:320px;height:250px!important}}@media screen and (max-width:767px){#content.bi-lingual-esen-ad-code-default .lex-container .banbox .content-ban .banner{margin:auto}}@media screen and (max-width:1290px){#content.bi-lingual-esen-ad-code-top-mpu .lex-container .banbox .content-ban{padding:0}}@media screen and (min-width:1024px){.sidebar .banbox-mini .banner{float:left}.sidebar .banbox-mini+.signup-wrap{margin-top:0;float:left}}@media screen and (max-width:769px){.container .banbox .banner{display:block;margin:0 auto;width:320px;overflow:hidden}}@media screen and (max-width:767px){.mediaContentSection p i{float:left;height:30px}}@media screen and (min-width:1023px){.banner.high_impact{max-width:970px;max-height:250px}.banbox-mini .banner.high_impact{max-width:300px;max-height:600px}.hub-hero{width:calc(100% - 20px);float:left;min-height:1px;margin-bottom:20px;margin-left:10px;border:1px solid #e0eef2;background:#f8faff;display:block}.hub-hero .box-img{width:50%;float:left;min-height:280px}.hub-hero .left-side{float:left;height:260px;width:50%}.hub-hero .left-side div{padding-left:20px;padding-bottom:20px}.left-side h1,.left-side h2{color:#333;font-size:1em;line-height:1.2;font-family:"Open Sans";padding-right:20px;margin-bottom:12px}.left-side p{color:#555;line-height:1.2;font-family:"Open Sans",sans-serif;padding-right:20px;font-size:1em}.hub-hero:after{clear:both}.hub-tile{margin-left:10px;margin-right:10px;width:calc(50% - 20px);float:left;position:relative;min-height:1px;padding-right:15px;padding-left:15px}}@media screen and (max-width:767px){.anchor{height:148px;margin-top:-148px;position:absolute}}@media screen and (max-width:1023px){#homePage .words>.banbox-mini{height:329px;min-height:0}}@media screen and (max-width:767px){#homePage .words>.banbox-mini{height:260px;margin-bottom:15px}}@media all and (min-width:768px){.formPage .formContent{max-width:685px;margin:1em auto 0 auto}}@media all and (min-width:550px){.formContent{padding:45px}}@media screen and (max-width:1023px){.dictionary__es .sbHolder,.dictionary__es .sbOptions{width:186px!important}}@media screen and (max-width:767px){.dictionary__es .sbHolder,.dictionary__es .sbOptions{width:100%!important}}@media(max-width:767px){.controller__thesaurus .entryPage+.fl-r .social__links{display:initial}}@media screen and (min-width:767px){.error-page{margin-bottom:280px}}@media(min-width:768px){#feedbackTab{bottom:140px;right:-23px}#feedbackTab:hover{transition:right .3s;right:-17px}}@media(max-width:767px){#feedbackTab{padding:5px 8px 13px 8px;font-size:1em;line-height:1.2;bottom:166px;right:-20px}}',""]),e.exports=i},684:function(e,i,t){var n=t(1347);e.exports="string"==typeof n?n:n.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/73.3b240d59.js b/plugins/saladict-ztools/ext-saladic/assets/73.3b240d59.js new file mode 100644 index 00000000..568604e2 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/73.3b240d59.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[73],{1372:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(0),c=n.n(a),r="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;const s=t=>{const{tag:e="div",html:n,...s}=t,i=Object(a.useMemo)(()=>{try{const t=document.createDocumentFragment(),e=(new DOMParser).parseFromString(n,"text/html");return Array.from(e.body.childNodes).forEach(e=>{t.appendChild(e)}),t}catch(t){!1}return null},[n]),[o,l]=Object(a.useState)(null);return r(()=>{if(i&&o){for(;o.childNodes.length>0;)o.childNodes[0].remove();o.appendChild(i)}},[i,o]),c.a.createElement(e,{...s,ref:l})}},682:function(t,e,n){"use strict";n.r(e),n.d(e,"DictCambridge",(function(){return s}));var a=n(0),c=n.n(a),r=n(1372);const s=t=>c.a.createElement(c.a.Fragment,null,t.result.map(t=>c.a.createElement("section",{key:t.id,id:t.id,className:"dictCambridge-Entry",onClick:i},c.a.createElement(r.a,{html:t.html}))));function i(t){const e=t.nativeEvent.target;e&&e.classList&&(e.classList.contains("js-accord")&&e.classList.toggle("open"),e.classList.contains("daccord_h")&&e.parentElement.classList.toggle("open"))}e.default=s}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/74.cfb8ad17.js b/plugins/saladict-ztools/ext-saladic/assets/74.cfb8ad17.js new file mode 100644 index 00000000..fec81f00 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/74.cfb8ad17.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[74],{1372:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),a=n.n(r),l="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;const c=e=>{const{tag:t="div",html:n,...c}=e,i=Object(r.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(n,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[n]),[o,d]=Object(r.useState)(null);return l(()=>{if(i&&o){for(;o.childNodes.length>0;)o.childNodes[0].remove();o.appendChild(i)}},[i,o]),a.a.createElement(t,{...c,ref:d})}},684:function(e,t,n){"use strict";n.r(t),n.d(t,"DictEtymonline",(function(){return c}));var r=n(0),a=n.n(r),l=n(1372);const c=({result:e})=>a.a.createElement("ul",{className:"dictEtymonline-List"},e.map(e=>a.a.createElement("li",{key:e.title,className:"dictEtymonline-Item"},a.a.createElement("h2",{id:e.id,className:"dictEtymonline-Title"},e.href?a.a.createElement("a",{href:e.href,target:"_blank",rel:"nofollow noopener noreferrer"},e.title):e.title),a.a.createElement(l.a,{tag:"div",className:"dictEtymonline-Def",html:e.def}),e.chart?a.a.createElement("img",{src:e.chart,alt:"Origin of "+e.title}):null)));t.default=c}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/75.104b4abf.js b/plugins/saladict-ztools/ext-saladic/assets/75.104b4abf.js new file mode 100644 index 00000000..77f086e7 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/75.104b4abf.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[75],{1372:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(0),r=a.n(n),c="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const s=e=>{const{tag:t="div",html:a,...s}=e,l=Object(n.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[i,d]=Object(n.useState)(null);return c(()=>{if(l&&i){for(;i.childNodes.length>0;)i.childNodes[0].remove();i.appendChild(l)}},[l,i]),r.a.createElement(t,{...s,ref:d})}},687:function(e,t,a){"use strict";a.r(t),a.d(t,"DictHjDict",(function(){return l}));var n=a(0),r=a.n(n),c=a(9),s=a(1372);const l=e=>"lex"===e.result.type?r.a.createElement(i,{...e}):"related"===e.result.type?r.a.createElement(d,{...e}):null;function i(e){const{header:t,entries:a}=e.result;return r.a.createElement("div",{className:"dictHjdict-Entry",onClick:m},r.a.createElement(u,{...e}),t&&r.a.createElement(s.a,{tag:"header",className:"word-details-header",html:t}),a.map((e,t)=>r.a.createElement(s.a,{key:t,html:e})))}function d(e){const{content:t}=e.result;return r.a.createElement("div",null,r.a.createElement(u,{...e}),r.a.createElement(s.a,{className:"dictHjdict-Entry",html:t}))}t.default=l;const o=["w","jp/cj","jp/jc","kr","fr","de","es"];function u(e){const{langCode:t}=e.result,{t:a}=Object(c.d)("dicts");return r.a.createElement("select",{value:t,onChange:t=>e.searchText({id:"hjdict",payload:{langCode:t.target.value}})},o.map(e=>r.a.createElement("option",{key:e,value:e},a("hjdict.options.chsas-"+e))))}function m(e){const t=function(e){for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains("word-details-tab"))return t;return null}(e.target);if(t){if(t.classList.contains("word-details-tab-active"))return;const a=e.currentTarget;if(a){const e=+(t.dataset.categories||"0"),n=a.querySelectorAll(".word-details-pane");a.querySelectorAll(".word-details-tab").forEach((t,a)=>{a===e?(t.classList.add("word-details-tab-active"),n[a]&&n[a].classList.add("word-details-pane-active")):(t.classList.remove("word-details-tab-active"),n[a]&&n[a].classList.remove("word-details-pane-active"))})}}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/75.cab7d61c.js b/plugins/saladict-ztools/ext-saladic/assets/75.cab7d61c.js deleted file mode 100644 index 526397c0..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/75.cab7d61c.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[75],{1350:function(e,t,o){(t=o(221)(!1)).push([e.i,'.dictMacmillan-Header{display:flex;flex-wrap:wrap;align-items:center;line-height:1;margin-bottom:5px}.dictMacmillan-Header_Info{margin-left:10px;color:var(--color-font-grey)}.dictMacmillan-Title{font-size:1.5em;font-weight:700}.dictMacmillan-Sences{list-style-type:none;padding-left:0;margin:0}.dictMacmillan-Sences ol{list-style-type:none;padding-left:0}.dictMacmillan-Sences>li{margin-bottom:15px}.dictMacmillan-Sences p{margin:0}.dictMacmillan-Sences a:link,.dictMacmillan-Sences a:visited{color:currentColor;text-decoration:none}.dictMacmillan-Sences a:active,.dictMacmillan-Sences a:hover{color:#16a085;border-bottom:thin dotted #16a085}.dictMacmillan-Related a{margin-left:2em;color:#16a085}.flex-extend{flex-grow:2}.dflex{display:flex;flex:1 1 auto;flex-wrap:nowrap}.between-xs{justify-content:space-between}.middle-xs{align-items:center}.toggleable{margin-bottom:5px;padding:1em 1.5em;background:rgba(191,191,191,.08)}.toggleable.closed .hidden-closed,.toggleable:not(.closed) .visible-closed{display:none}.toggle-close,.toggle-open,.toggle-toggle{cursor:pointer}.toggle-close,.toggle-open{font-family:Martel,serif;line-height:1em;font-size:1.2em;font-weight:700;color:currentColor}.thes-color{float:right}.SENSE-VARIANT,h2.MULTIWORD,h2.PHRASE-VARIANT,h3.SENSE-ENTRY{display:inline}.foldimage{display:none}.gray-divider.mini{width:5em;margin-top:0;margin-left:0;margin-right:100%}.EXAMPLES{margin-bottom:5px;padding-left:10px;color:var(--color-font-grey);border-left:var(--color-divider) solid 1px;font-style:italic}.EXAMPLES strong{font-style:normal}.EXAMPLES a:link,.EXAMPLES a:visited{color:var(--color-font-grey);text-decoration:none}.EXAMPLES a:active,.EXAMPLES a:hover{color:#16a085;border-bottom:thin dotted #16a085}.EXAMPLES+.EXAMPLES{margin-top:-5px;padding-top:3px}.DEFINITION+.EXAMPLES{margin-top:5px}.THES{margin-bottom:5px}.openDef,.openSense .DEFINITION{font-weight:700;word-break:break-word}.SENSE-NUM{font-weight:700;height:1.2em;padding:.2em;margin-right:.2em;display:inline-block;line-height:1.2em;text-align:center}.SENSE-NUM::after{content:"."}.BOLD,.KEY-REF,.PATTERNS-COLLOCATIONS,.VOCAB-XREF{font-weight:700}.icon_thesaurus_small_bullet{font-weight:700;color:#f9690e}.thessnippet{margin-left:10px}.DIALECT,.RESTRICTION-CLASS,.STYLE-LEVEL,.SUBJECT-AREA,.SYNTAX-CODING,.entry-labels *{margin-right:.4em;text-transform:uppercase;font-size:.8em;color:var(--color-font-grey)}.h2{margin-right:3px;font-weight:700}.centred::before{content:">";color:var(--color-font-grey)}.moreButton:link,.moreButton:visited{color:var(--color-font-grey)}.ONEBOX-HEAD{font-weight:700;color:#f9690e}.sideboxbody{margin-left:10px}.SUB-SENSES{padding-left:16px}.audio_play_button,.sound{width:16px;vertical-align:text-bottom;cursor:pointer}.openEntry{margin:1em;padding:0 1em;border:1px #ababab solid}.entry-od-sense{display:flex;flex:1 0 auto}.entry-od-sense .openEntry{margin:0;margin-left:.2em}.openDETAIL{font-style:italic;text-align:right;text-align:end;display:block;font-size:.9em;margin:1.5em -1rem 1em;padding-right:1em;color:var(--color-font-grey)}.open-footer-content{font-size:.7em;font-weight:700;text-transform:uppercase;text-align:center}.open-footer-logo{display:inline-block;height:.8em;vertical-align:middle;margin-bottom:.2em;margin-right:.3em}.entry-bold{text-transform:uppercase;font-weight:700;font-size:.9em}.line-box-content ul{padding-left:2em}.line-box-content li{list-style-type:disc}',""]),e.exports=t},687:function(e,t,o){var n=o(1350);e.exports="string"==typeof n?n:n.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/76.938fcf99.js b/plugins/saladict-ztools/ext-saladic/assets/76.938fcf99.js new file mode 100644 index 00000000..65647260 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/76.938fcf99.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[76],{1372:function(e,a,t){"use strict";t.d(a,"a",(function(){return c}));var l=t(0),n=t.n(l),r="undefined"!=typeof window?l.useLayoutEffect:l.useEffect;const c=e=>{const{tag:a="div",html:t,...c}=e,i=Object(l.useMemo)(()=>{try{const e=document.createDocumentFragment(),a=(new DOMParser).parseFromString(t,"text/html");return Array.from(a.body.childNodes).forEach(a=>{e.appendChild(a)}),e}catch(e){!1}return null},[t]),[s,m]=Object(l.useState)(null);return r(()=>{if(i&&s){for(;s.childNodes.length>0;)s.childNodes[0].remove();s.appendChild(i)}},[i,s]),n.a.createElement(a,{...c,ref:m})}},692:function(e,a,t){"use strict";t.r(a),t.d(a,"DictNaver",(function(){return i}));var l=t(0),n=t.n(l),r=t(97),c=t(1372);const i=e=>{var a,t,l,i,s,m;const o=e.result.entry;return n.a.createElement(n.a.Fragment,null,n.a.createElement("select",{onChange:a=>e.searchText({id:"naver",payload:{lang:a.target.value}}),value:e.result.lang},n.a.createElement("option",{key:"zh",value:"zh"},"中韩"),n.a.createElement("option",{key:"ja",value:"ja"},"日韓")),!!(null==o||null===(a=o.WORD)||void 0===a||null===(t=a.items)||void 0===t?void 0:t.length)&&n.a.createElement("div",{className:"dictNaver-EntryBox"},n.a.createElement("span",{className:"dictNaver-EntryBoxTitle"},"单词"),o.WORD.items.map((e,a)=>{var t,l,i,s,m,o,u,d,p;return n.a.createElement("div",{className:"dictNaver-Entry",key:a},n.a.createElement(c.a,{tag:"h3",className:"dictNaver-EntryTitle",html:e.expEntry}),e.expEntrySuperscript&&n.a.createElement("sup",{className:"dictNaver-EntrySup"},e.expEntrySuperscript),e.expKanji&&n.a.createElement(n.a.Fragment,null,"[",n.a.createElement(c.a,{tag:"span",className:"dictNaver-EntryKanji",html:e.expKanji}),"]"),n.a.createElement("div",{className:"dictNaver-EntryPron"},!!(null==e||null===(t=e.expAliasGeneralAlwaysList)||void 0===t?void 0:t.length)&&n.a.createElement("span",{className:"dictNaver-EntryPronVal"},null==e?void 0:e.expAliasGeneralAlwaysList[0].originLanguageValue),!!(null==e||null===(l=e.searchPhoneticSymbolList)||void 0===l?void 0:l.length)&&n.a.createElement(n.a.Fragment,null,e.searchPhoneticSymbolList[0].phoneticSymbol&&n.a.createElement(c.a,{tag:"span",html:`[${e.searchPhoneticSymbolList[0].phoneticSymbol}]`}),(null==e||null===(i=e.searchPhoneticSymbolList[0])||void 0===i?void 0:i.phoneticSymbolPath)&&n.a.createElement(r.c,{src:(null===(s=e.searchPhoneticSymbolList[0])||void 0===s||null===(m=s.phoneticSymbolPath)||void 0===m?void 0:m.split("|").length)>1?null===(o=e.searchPhoneticSymbolList[0])||void 0===o||null===(u=o.phoneticSymbolPath)||void 0===u?void 0:u.split("|")[0]:e.searchPhoneticSymbolList[0].phoneticSymbolPath})),null==e||null===(d=e.frequencyAdd)||void 0===d?void 0:d.split("^").map(e=>n.a.createElement("span",{key:e,className:"dictNaver-EntryPronFa"},e))),n.a.createElement("div",{className:"dictNaver-EntryExp"},null==e||null===(p=e.meansCollector)||void 0===p?void 0:p.map((e,a)=>n.a.createElement("ul",{key:a},e.means.map((a,t)=>n.a.createElement("li",{key:t},a.order&&n.a.createElement("span",null,a.order,"."),e.partOfSpeech2&&n.a.createElement("span",{className:"dictNaver-EntryExpPos"},e.partOfSpeech2),a.subjectGroup&&n.a.createElement("span",null,a.subjectGroup),n.a.createElement(c.a,{tag:"span",html:a.value})))))),n.a.createElement("a",{className:"dictNaver-EntrySource",href:e.sourceDictnameLink},e.sourceDictnameOri))})),!!(null==o||null===(l=o.MEANING)||void 0===l||null===(i=l.items)||void 0===i?void 0:i.length)&&n.a.createElement("div",{className:"dictNaver-MeanBox"},n.a.createElement("span",{className:"dictNaver-MeanBoxTitle"},"释义"),o.MEANING.items.map((e,a)=>{var t,l,i;return n.a.createElement("div",{className:"dictNaver-Mean",key:a},n.a.createElement(c.a,{tag:"h3",className:"dictNaver-MeanTitle",html:e.expEntry}),e.expEntrySuperscript&&n.a.createElement("sup",{className:"dictNaver-MeanSup"},e.expEntrySuperscript),!!(null==e||null===(t=e.expAliasGeneralAlwaysList)||void 0===t?void 0:t.length)&&n.a.createElement(c.a,{tag:"span",className:"dictNaver-MeanAlias",html:e.expAliasGeneralAlwaysList[0].originLanguageValue}),n.a.createElement("div",{className:"dictNaver-MeanPron"},!!(null==e||null===(l=e.searchPhoneticSymbolList)||void 0===l?void 0:l.length)&&n.a.createElement(n.a.Fragment,null,n.a.createElement("span",null,"[",e.searchPhoneticSymbolList[0].phoneticSymbol,"]"),n.a.createElement(r.c,{src:e.searchPhoneticSymbolList[0].phoneticSymbolPath}))),n.a.createElement("div",{className:"dictNaver-MeanExp"},null==e||null===(i=e.meansCollector)||void 0===i?void 0:i.map((e,a)=>n.a.createElement("ul",{key:a},null==e?void 0:e.means.map((a,t)=>n.a.createElement("li",{key:t},a.order&&n.a.createElement("span",null,a.order,"."),e.partOfSpeech2&&n.a.createElement("span",{className:"dictNaver-MeanExpPos"},e.partOfSpeech2),a.subjectGroup&&n.a.createElement("span",null,a.subjectGroup),a.languageGroup&&n.a.createElement("span",{className:"dictNaver-MeanExpLg"},a.languageGroup),n.a.createElement(c.a,{tag:"span",html:a.value})))))),n.a.createElement("a",{className:"dictNaver-MeanSource",href:e.sourceDictnameLink},e.sourceDictnameOri))})),!!(null==o||null===(s=o.EXAMPLE)||void 0===s||null===(m=s.items)||void 0===m?void 0:m.length)&&n.a.createElement("div",{className:"dictNaver-ExampleBox"},n.a.createElement("span",{className:"dictNaver-ExampleBoxTitle"},"例句"),o.EXAMPLE.items.map((a,t)=>n.a.createElement("div",{className:"dictNaver-Example",key:t},n.a.createElement(c.a,{tag:"h3",className:"dictNaver-ExampleTitle",html:a.expExample1}),n.a.createElement("div",{className:"dictNaver-ExamplePron"},n.a.createElement(r.c,{src:"ja"===e.result.lang?"https://ja.dict.naver.com/api/nvoice?speaker=yuri&service=dictionary&speech_fmt=mp3&text="+a.exampleEncode:"https://zh.dict.naver.com/tts?service=zhkodict&from=pc&speaker=zh_cn&text="+a.exampleEncode})),n.a.createElement("div",{className:"dictNaver-ExamplePronun"},a.expExample1Pronun),n.a.createElement(c.a,{className:"dictNaver-ExampleExtra",html:a.expExample2}),n.a.createElement("div",null,n.a.createElement("a",{className:"dictNaver-ExampleSource",href:a.sourceDictnameURL},a.sourceDictnameOri))))))};a.default=i}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/76.cbe36661.js b/plugins/saladict-ztools/ext-saladic/assets/76.cbe36661.js deleted file mode 100644 index 4010eeae..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/76.cbe36661.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[76],{1351:function(i,t,d){(t=d(221)(!1)).push([i.i,".dictMojidict-Word_Title{margin-bottom:0}.dictMojidict-Word_Trans{margin-top:0;padding-left:.5em;font-size:.9em;color:#999}.dictMojidict-List{padding-left:1em}.dictMojidict-Sublist{padding-left:.5em}.dictMojidict-ListItem_Disc{list-style-type:disc}",""]),i.exports=t},688:function(i,t,d){var o=d(1351);i.exports="string"==typeof o?o:o.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/77.b8bc812c.js b/plugins/saladict-ztools/ext-saladic/assets/77.b8bc812c.js new file mode 100644 index 00000000..c1076e7b --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/77.b8bc812c.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[77],{1372:function(e,a,t){"use strict";t.d(a,"a",(function(){return c}));var l=t(0),s=t.n(l),n="undefined"!=typeof window?l.useLayoutEffect:l.useEffect;const c=e=>{const{tag:a="div",html:t,...c}=e,m=Object(l.useMemo)(()=>{try{const e=document.createDocumentFragment(),a=(new DOMParser).parseFromString(t,"text/html");return Array.from(a.body.childNodes).forEach(a=>{e.appendChild(a)}),e}catch(e){!1}return null},[t]),[i,r]=Object(l.useState)(null);return n(()=>{if(m&&i){for(;i.childNodes.length>0;)i.childNodes[0].remove();i.appendChild(m)}},[m,i]),s.a.createElement(a,{...c,ref:r})}},693:function(e,a,t){"use strict";t.r(a),t.d(a,"DictOal",(function(){return m}));var l=t(0),s=t.n(l),n=t(97),c=t(1372);const m=({result:e})=>s.a.createElement("div",null,s.a.createElement("div",{className:"dictOal-TopContainer"},s.a.createElement("div",{className:"dictOal-TitleBox"},s.a.createElement("span",{className:"dictOal-TitleBoxT"},e.title),e.pos&&s.a.createElement("span",{className:"dictOal-TitleBoxPos"},"(",e.pos,")"),e.symbol&&s.a.createElement("span",{className:"dictOal-TitleBoxSymbol"},e.symbol)),s.a.createElement("div",{className:"dictOal-Phonetics"},e.pron.uk.sound&&s.a.createElement("div",{className:"dictOal-PhonsUK"},s.a.createElement("span",{className:"dictOal-PhonsCountry"},"UK"),s.a.createElement(n.c,{src:e.pron.uk.sound}),s.a.createElement("span",null,e.pron.uk.phon)),e.pron.us.sound&&s.a.createElement("div",{className:"dictOal-PhonsUS"},s.a.createElement("span",{className:"dictOal-PhonsCountry"},"US"),s.a.createElement(n.c,{src:e.pron.us.sound}),s.a.createElement("span",null,e.pron.us.phon)))),!!e.senses.length&&s.a.createElement("ol",{className:"dictOal-SensesMultiple"},e.senses.map((a,t)=>s.a.createElement("div",{key:t},s.a.createElement("div",null,a.title&&(e.isPhrasal?s.a.createElement(c.a,{tag:"span",className:"dictOal-SensesTitle",html:a.title||""}):s.a.createElement("div",{className:"dictOal-SensesTitle"},a.title)),a.symbol&&s.a.createElement("span",{className:"dictOal-TitleBoxSymbol"},a.symbol),a.variants&&s.a.createElement(c.a,{tag:"div",className:"dictOal-SensesVariants",style:{marginLeft:"-20px"},html:a.variants})),a.means.map((e,a)=>s.a.createElement("li",{key:a},e.symbols&&s.a.createElement("span",{className:"dictOal-SensesSymbols"},e.symbols),e.variants&&!e.variantsIsBlock&&s.a.createElement(c.a,{tag:"span",className:"dictOal-SensesVariants",html:e.variants||""}),e.grammar&&s.a.createElement("span",{className:"dictOal-SensesGrammar"},e.grammar),e.labels&&s.a.createElement("span",{className:"dictOal-SensesLabels"},e.labels),e.variants&&e.variantsIsBlock&&s.a.createElement(c.a,{className:"dictOal-SensesVariants",html:e.variants||""}),e.use&&s.a.createElement("div",null,e.use),e.cf&&s.a.createElement("span",{className:"dictOal-SensesCf"},e.cf),s.a.createElement("span",null,e.def),s.a.createElement(c.a,{tag:"p",className:"dictOal-MeanExamples",html:e.examples||""})))))),e.origin&&s.a.createElement("div",{className:"dictOal-Origin"},s.a.createElement("span",{className:"dictOal-OriginTitle"},"Origin"),s.a.createElement(c.a,{tag:"p",className:"dictOal-OriginMean",html:e.origin||""})),!!e.idioms.length&&s.a.createElement("div",{className:"dictOal-Idioms"},s.a.createElement("div",{className:"dictOal-IdiomsT"},"Idioms"),e.idioms.map((e,a)=>s.a.createElement("div",{key:a},s.a.createElement("div",null,s.a.createElement(c.a,{className:"dictOal-IdiomsTitle",html:e.title||""})),s.a.createElement("div",null,e.labels&&s.a.createElement("span",{className:"dictOal-IdiomsLabels"},e.labels),e.def),s.a.createElement(c.a,{className:"dictOal-IdiomsExamples",html:e.examples||""})))));a.default=m}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/77.fdb20b68.js b/plugins/saladict-ztools/ext-saladic/assets/77.fdb20b68.js deleted file mode 100644 index c1d8e4f5..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/77.fdb20b68.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[77],{1352:function(t,i,r){(i=r(221)(!1)).push([t.i,'button,h1,h2,h3,h4,li,ul{margin:0;padding:0}img{display:block;max-width:95%}p{margin:.5em 0}ul li{list-style-type:none}button{background:0 0;border:none}button:hover{outline:0}a{color:#f9690e;text-decoration:none}a:hover{text-decoration:underline}select{color:#666;border:1px solid rgba(133,133,133,.28);background:0 0}.dictNaver-Entry-zh .info_box{position:relative;background-color:#fff}.dictNaver-Entry-zh .info_tit{position:relative;z-index:50;height:31px;border-top:1px solid #cacaca;border-bottom:1px solid #cacaca;line-height:2.06;padding-left:10px;font-size:1.15em;background-position:0 0;letter-spacing:-1px}.dictNaver-Entry-zh .info_tit .en{font-family:arial,Helvetica,sans-serif;font-size:1.31em;letter-spacing:0}.dictNaver-Entry-zh .info_tit .feature{position:absolute;top:-2px;right:5px}.dictNaver-Entry-zh .info_tit a.btn_class_word{height:24px;margin-right:4px;padding:0 5px;font-size:.92em;line-height:1.69;color:#4b4b4b;text-align:center;letter-spacing:-1px;border:1px solid #b4b4b4;border-radius:3px;border-color:#b4b4b4 #a3a3a3 #909090;background:#f9f9f9;background:gradient(linear,0 0,0 100%,color-stop(0,#f9f9f9),color-stop(100%,#e7e7e7));box-shadow:0 1px 0 0 #f6f6f6;box-shadow:0 1px 0 0 #f6f6f6}.dictNaver-Entry-zh .info_tit a.btn_refresh{overflow:hidden;width:32px;height:27px;background-position:-100px 0;text-indent:-9999px}.dictNaver-Entry-zh .info_tit a.ico_help{overflow:hidden;width:22px;height:22px;margin:-4px 0 0 6px;background-position:0 0}.dictNaver-Entry-zh .info_tit .help_dsc{position:absolute;top:31px;right:0;left:0;z-index:60;padding:12px 52px 10px 14px;border:1px solid #a1afbd;background-color:#f4f8fb}.dictNaver-Entry-zh .info_tit .help_dsc p{font-size:1.08em;line-height:1;letter-spacing:0}.dictNaver-Entry-zh .info_tit .help_dsc p em{color:#4c5461}.dictNaver-Entry-zh .info_tit .help_dsc p strong{display:block;padding-top:5px;font-size:1em;font-weight:400;color:var(--color-font-grey)}.dictNaver-Entry-zh .dic_lk .colb2,.dictNaver-Entry-zh .info_tit .help_dsc p strong span{font-weight:700}.dictNaver-Entry-zh .info_tit .help_dsc .btn_clse{position:absolute;top:10px;right:10px;width:17px;height:17px;background-position:0 0;cursor:pointer}.dictNaver-Entry-zh .info_tit .help_dsc .effect{display:none;position:absolute;top:-4px;left:120px;width:8px;height:4px;background-position:0 0}.dictNaver-Entry-zh .info_box .no_data{padding:12px 0 13px 10px;font-size:1.15em;color:var(--color-font-grey)}.dictNaver-Entry-zh .info_box .no_data strong{font-weight:400}.dictNaver-Entry-zh .info_box .player{top:0}.dictNaver-Entry-zh .info_box:first-child .info_tit,.dictNaver-Entry-zh .word_srch_area .info_tit{border-top:0}.dictNaver-Entry-zh .info_box:first-child .btn_all_del,.dictNaver-Entry-zh .word_srch_area .btn_all_del{position:absolute;top:0;right:0;z-index:50;height:32px;padding-right:8px;font-size:1em;color:#999;line-height:2;text-align:right;border-left:1px solid #cacaca;letter-spacing:-1px;white-space:nowrap}.dictNaver-Entry-zh .dt li a,.dictNaver-Entry-zh .ly_wrap,.dictNaver-Entry-zh .u_pg2{text-align:center}.dictNaver-Entry-zh .myw_lst{display:block;width:100%;overflow:hidden;margin-bottom:-1px}.dictNaver-Entry-zh .myw_li{width:50%;float:left;position:relative;border-bottom:1px solid #eaeaea}.dictNaver-Entry-zh .myw_txt{display:block;height:47px;padding:0 0 0 10px;margin-right:33px;line-height:2.94;overflow:hidden;white-space:nowrap;font-size:1.31em;color:#333}.dictNaver-Entry-zh .myw_txt sup{position:relative;top:-4px;font-size:.92em;vertical-align:2px;margin-left:2px}.dictNaver-Entry-zh .myw_li:nth-child(2n) .myw_txt{border-left:1px solid #eaeaea}.dictNaver-Entry-zh .myw_noti{padding:13px 10px;font-size:1.15em;color:var(--color-font-grey)}.dictNaver-Entry-zh .ico_x{float:left;height:11px;width:10px;margin:11px 2px 0 8px;background-position:-130px -45px}.dictNaver-Entry-zh .ico_x2{position:absolute;right:7px;top:50%;margin-top:-10px;height:20px;width:26px;background-position:-122px -40px}.dictNaver-Entry-zh .today_cvr{padding:12px 10px 14px}.dictNaver-Entry-zh .today_cvr>span:first-child{color:var(--color-brand)}.dictNaver-Entry-zh .today_cvr .jp{font-size:1.38em;color:var(--color-brand);letter-spacing:-2px}.dictNaver-Entry-zh .dic_lk .td_txt,.dictNaver-Entry-zh .s.s2 .today_cvr .bnr a{letter-spacing:-1px}.dictNaver-Entry-zh .today_cvr .jp rt{font-weight:400;font-size:.92em;color:#3f4245}.dictNaver-Entry-zh .today_cvr .td_txt{overflow:hidden;font-size:1.15em;white-space:nowrap}.dictNaver-Entry-zh .today_cvr .player{top:-2px;margin-left:4px}.dictNaver-Entry-zh .today_cvr .bnr{position:relative;min-height:58px;margin-top:20px;border-radius:3px;background-position:0 0}.dictNaver-Entry-zh .today_cvr .bnr a{display:block;min-width:230px;min-height:32px;margin:0 auto;padding:13px 0 13px 55px;background-position:17px 50%;font-weight:700;color:#404040;text-shadow:0 1px #ebf0f6;font-size:1.15em}.dictNaver-Entry-zh .today_cvr .bnr .cnr_lt,.dictNaver-Entry-zh .today_cvr .bnr .cnr_rt{position:absolute;top:0;width:4px;height:53px;background-position:0 0}.dictNaver-Entry-zh .today_cvr .bnr a strong{color:#5c667a}.dictNaver-Entry-zh .today_cvr .bnr a span{display:block;color:#848ea0;font-size:.85em}.dictNaver-Entry-zh .today_cvr .bnr .cnr_lt{left:0}.dictNaver-Entry-zh .today_cvr .bnr .cnr_rt{right:0}.dictNaver-Entry-zh .dtr_area .td_li{padding:0}.dictNaver-Entry-zh .dic_lk{position:relative;display:table;width:100%;height:86px}.dictNaver-Entry-zh .dic_lk .thumb{position:absolute;left:20px;top:50%}.dictNaver-Entry-zh .dic_lk .thumb.th_jap{width:60px;height:54px;margin-top:-27px;background-position:0 -30px}.dictNaver-Entry-zh .dic_lk .thumb.th_voice{width:54px;height:58px;margin-top:-29px;background-position:-60px -30px}.dictNaver-Entry-zh .dic_lk .td_txt{display:table-cell;padding:10px 5px 10px 100px;font-size:1.23em;line-height:1.2;vertical-align:middle;white-space:normal}.dictNaver-Entry-zh .dic_lk .ico_arr,.dictNaver-Entry-zh .main_offer .main_h4,.dictNaver-Entry-zh .u_pg2 .arr_ico,.dictNaver-Entry-zh .u_pg2_btn,.dictNaver-Entry-zh .u_pg2_next,.dictNaver-Entry-zh .u_pg2_pg,.dictNaver-Entry-zh .u_pg2_prev{display:inline-block}.dictNaver-Entry-zh .dic_lk .ico_arr{vertical-align:middle;position:relative;top:-1px;height:10px;width:4px;margin-left:5px;background-position:-164px -25px}.dictNaver-Entry-zh .dic_lk .colb2{color:#2f7bd6}.dictNaver-Entry-zh .main_offer{background:#fff;border-top:1px solid #e5e5e7}.dictNaver-Entry-zh .main_offer .main_h4{padding:13px 10px 12px;font-weight:400;font-size:1em;color:#999}.dictNaver-Entry-zh .u_pg2{padding:15px 0 35px;font-size:.86em;white-space:nowrap;border-top:1px solid #eaeaea}.dictNaver-Entry-zh .u_pg2_btn{padding:.42em .86em;border:1px solid #bcbcbc;border-radius:3px;background:#f1f1f1;background:gradient(linear,0 0,0 100%,from(#fff),color-stop(.05,#fbfbfb),to(#f1f1f1));color:var(--color-font-grey);vertical-align:1px}.dictNaver-Entry-zh .u_pg2_btn.uc_vh{visibility:hidden}.dictNaver-Entry-zh .u_pg2_prev{padding-left:.86em;background-position:0 4px}.dictNaver-Entry-zh .u_pg2_next{padding-right:.86em;background-position:100% -35px}.dictNaver-Entry-zh .u_pg2_pg{padding:0 5px;font-weight:700;color:#32a800;line-height:1.69}.dictNaver-Entry-zh .u_pg2_total{color:#999}.dictNaver-Entry-zh .u_pg2 .pad_wid{padding:0;margin:0 1px}.dictNaver-Entry-zh .u_pg2 .arr_ico{width:36px;height:25px;vertical-align:middle}.dictNaver-Entry-zh .u_pg2 .arr_ico.lft{background-position:-13px -53px}.dictNaver-Entry-zh .u_pg2 .arr_ico.lft2{background-position:-23px -480px}.dictNaver-Entry-zh .u_pg2 .arr_ico.rgt{background-position:-36px -53px}.dictNaver-Entry-zh .u_pg2 .arr_ico.rgt2{background-position:-47px -480px}.dictNaver-Entry-zh .dl_list{overflow:hidden;max-height:41px;padding:8px 14px 10px 11px;border-bottom:2px solid #b8b8b8}.dictNaver-Entry-zh .dl_list dd,.dictNaver-Entry-zh .dl_list dt{display:inline}.dictNaver-Entry-zh .dl_list dt{padding:0 0 0 4px;border:1px solid #d8d8d8;background-color:#f7f8f9}.dictNaver-Entry-zh .dl_list dt>.blind{visibility:visible;overflow:hidden;position:static;width:auto;height:auto;font-size:1em;color:#6c6c6c}.dictNaver-Entry-zh .dl_list .jp,.dictNaver-Entry-zh .dl_list dd a{font-size:1.15em}.dictNaver-Entry-zh .dl_list dd{margin-left:5px;line-height:1.31}.dictNaver-Entry-zh .dl_list dd a{color:var(--color-brand);white-space:nowrap}.dictNaver-Entry-zh .ft_big,.dictNaver-Entry-zh .ft_small{display:inline-block;width:33px;height:29px;margin:0 0 0 4px;vertical-align:middle}.dictNaver-Entry-zh .a .btn_txt_style1.expand_all_exam_bt,.dictNaver-Entry-zh .a .btn_txt_style1.info_userent,.dictNaver-Entry-zh .a .ft_big,.dictNaver-Entry-zh .a .ft_small{margin-top:-3px}.dictNaver-Entry-zh .a .btn_txt_style1.info_userent{padding:6px 0 4px}.dictNaver-Entry-zh .ft_small{background-position:0 -152px}.dictNaver-Entry-zh .ft_small.on{background-position:-69px -152px}.dictNaver-Entry-zh .ft_big{margin-left:-5px;background-position:-102px -152px}.dictNaver-Entry-zh :root .ft_big{margin-left:-4px}.dictNaver-Entry-zh .ft_big.on{background-position:-33px -152px}.dictNaver-Entry-zh .btn_txt_style1.expand_all_exam_bt{margin-left:4px}.dictNaver-Entry-zh .section_box h5{font-size:1.54em}.dictNaver-Entry-zh .detail_hj .section_box h5,.dictNaver-Entry-zh .detail_jpkr .section_box h5,.dictNaver-Entry-zh .detail_krjp .section_box h5{font-size:1.54em;padding-left:10px;padding-bottom:18px;color:currentColor}.dictNaver-Entry-zh .section_box h6{margin:5px 0 15px;padding-left:11px;font-size:1.38em}.dictNaver-Entry-zh .section_box h6 .kor_link{color:currentColor}.dictNaver-Entry-zh .section_box h6 a{color:#0068b1}.dictNaver-Entry-zh .section_box .pin{display:block;margin:8px 0}.dictNaver-Entry-zh .section_box .lst li{font-size:1.23em;line-height:1.38}.dictNaver-Entry-zh .section_box .lst li .lst_txt{font-size:1.38em}.dictNaver-Entry-zh .section_box .lst li .roman{display:block}.dictNaver-Entry-zh .section_box .lst li .jp{font-size:1.31em}.dictNaver-Entry-zh .section_box .player{margin-top:-5px}.dictNaver-Entry-zh .detail_hj .section_box .lst li .lst_txt,.dictNaver-Entry-zh .detail_jpkr .section_box .lst li .lst_txt,.dictNaver-Entry-zh .detail_krjp .section_box .lst li .lst_txt{display:block;padding-bottom:5px}.dictNaver-Entry-zh .ft_mod_sm h5{font-size:1.38em}.dictNaver-Entry-zh .ft_mod_sm .pin,.dictNaver-Entry-zh .ft_mod_sm h6{font-size:1.08em}.dictNaver-Entry-zh .ft_mod_sm .lst li{font-size:1.08em;line-height:1.19}.dictNaver-Entry-zh .detail_hj .ft_mod .section.section_phonetic h5,.dictNaver-Entry-zh .ft_mod h5{font-size:1.85em}.dictNaver-Entry-zh .ft_mod .srch_box .srch_top .entry{font-size:1.69em;line-height:1.69}.dictNaver-Entry-zh .ft_mod .srch_box .srch_top .entry .jp{font-size:1.77em}.dictNaver-Entry-zh .ft_mod .section_article .entry .sw,.dictNaver-Entry-zh .ft_mod .section_word .entry .sw{font-size:1.69em}.dictNaver-Entry-zh .ft_mod .pin,.dictNaver-Entry-zh .ft_mod h6,.dictNaver-Entry-zh .ft_mod.section_box .lst li .lst_txt{font-size:1.54em}.dictNaver-Entry-zh .ft_mod .lst li{font-size:1.54em;line-height:1.56}.dictNaver-Entry-zh .ft_mod .lst li .jp{font-size:1.62em;line-height:1.56}.dictNaver-Entry-zh .ft_mod .top_dn dd,.dictNaver-Entry-zh .ft_mod .top_dn dd .jp,.dictNaver-Entry-zh .ft_mod .top_dn dt,.dictNaver-Entry-zh .ft_mod .top_dn dt .jp{font-size:1.54em}.dictNaver-Entry-zh .ft_mod.srch_result .top_dn_v2 .ft_col3{top:0;vertical-align:top}.dictNaver-Entry-zh .ft_mod .section_example .lst .pin{font-size:1.46em}.dictNaver-Entry-zh .ft_mod .section{font-size:1.54em;line-height:1.5}.dictNaver-Entry-zh .ft_mod .section .jp{font-size:1.54em}.dictNaver-Entry-zh .ft_mod .section h4{line-height:1.13}.dictNaver-Entry-zh .ft_mod .srch_box .pin .img_info_wrap .info{font-size:1.23em;line-height:1.31}.dictNaver-Entry-zh .ft_mod.section_box.kor_food .food_desc .mean_wrap .mean{font-size:1.31em;line-height:1.5}.dictNaver-Entry-zh .ft_mod.section_box.kor_food .food_desc .mean_wrap .mean[lang=ja]{margin-top:17px;font-size:1.54em;line-height:1.69}.dictNaver-Entry-zh .ft_mod2 h5{font-size:2em}.dictNaver-Entry-zh .ft_mod2 .pin,.dictNaver-Entry-zh .ft_mod2 h6{font-size:1.69em}.dictNaver-Entry-zh .ft_mod2 .lst li{font-size:1.69em;line-height:1.69}.dictNaver-Entry-zh .ft_mod3 h5{font-size:2.15em}.dictNaver-Entry-zh .ft_mod3 .pin,.dictNaver-Entry-zh .ft_mod3 h6{font-size:1.85em}.dictNaver-Entry-zh .ft_mod3 .lst li{font-size:1.85em;line-height:1.81}.dictNaver-Entry-zh .srch_result .mw,.dictNaver-Entry-zh .srch_result .player,.dictNaver-Entry-zh .srch_result .sw{margin-right:2px}.dictNaver-Entry-zh .section_word .srch_box .lst li{padding-bottom:5px}.dictNaver-Entry-zh .section_word .entry .sw{margin-left:3px;font-size:1.23em;color:var(--color-font-grey);vertical-align:middle}.dictNaver-Entry-zh .section_word .lst{list-style:decimal;margin:0}.dictNaver-Entry-zh .section_word dd{line-height:1.2}.dictNaver-Entry-zh .section_word .srch_box .pin{padding-bottom:4px}.dictNaver-Entry-zh .section_word .srch_box .pin:last-child{padding-bottom:11px}.dictNaver-Entry-zh .section_word .srch_box .lst_p{padding-bottom:10px}.dictNaver-Entry-zh .section_word .top_dn{margin-top:0;padding-top:1px}.dictNaver-Entry-zh .section_article .srch_box{padding-bottom:20px}.dictNaver-Entry-zh .section_article .entry .sw{margin-left:3px;font-size:1.08em;color:var(--color-font-grey);vertical-align:middle}.dictNaver-Entry-zh .section_article .lst p{margin-top:10px}.dictNaver-Entry-zh .detail_hj .section_article .lst p,.dictNaver-Entry-zh .detail_jpkr .section_article .lst p,.dictNaver-Entry-zh .detail_krjp .section_article .lst p{margin-top:3px;padding-bottom:5px}.dictNaver-Entry-zh .detail_hj .section_article .lst p .ico_bl+span,.dictNaver-Entry-zh .detail_hj .section_article .lst p .kor+span,.dictNaver-Entry-zh .detail_jpkr .section_article .lst p .ico_bl+span,.dictNaver-Entry-zh .detail_jpkr .section_article .lst p .kor+span,.dictNaver-Entry-zh .detail_krjp .section_article .lst p .ico_bl+span,.dictNaver-Entry-zh .detail_krjp .section_article .lst p .kor+span{margin-right:10px}.dictNaver-Entry-zh .detail_hj .section_article .lst p .player,.dictNaver-Entry-zh .detail_jpkr .section_article .lst p .player,.dictNaver-Entry-zh .detail_krjp .section_article .lst p .player{position:relative;margin-left:-5px}.dictNaver-Entry-zh .detail_hj .section_article .lst p .kor,.dictNaver-Entry-zh .detail_jpkr .section_article .lst p .kor,.dictNaver-Entry-zh .detail_krjp .section_article .lst p .kor{display:block;margin-top:-3px;color:var(--color-font-grey)}.dictNaver-Entry-zh .detail_hj .section_article .lst p .kor .kor_link,.dictNaver-Entry-zh .detail_jpkr .section_article .lst p .kor .kor_link,.dictNaver-Entry-zh .detail_krjp .section_article .lst p .kor .kor_link{color:var(--color-font-grey)}.dictNaver-Entry-zh .detail_hj .section_article ul.lst,.dictNaver-Entry-zh .detail_jpkr .section_article ul.lst,.dictNaver-Entry-zh .detail_krjp .section_article ul.lst{padding-left:10px;margin-left:16px}.dictNaver-Entry-zh .section_example .lst li{margin-bottom:.8em}.dictNaver-Entry-zh .section_example .lst li:last-child{margin-bottom:.8em}.dictNaver-Entry-zh .section_example .lst p{color:currentColor}.dictNaver-Entry-zh .section_example .lst .jp{font-size:1.38em}.dictNaver-Entry-zh .section_example .lst .pin{position:relative;top:-2px;font-size:1.31em}.dictNaver-Entry-zh .section_example .cen_box2{margin-left:10px}.dictNaver-Entry-zh .section_expression .player,.dictNaver-Entry-zh .section_proverb .player{margin-left:5px}.dictNaver-Entry-zh .detail_krjp .tc-panels .section.section_proverb{padding:0 0 13px}.dictNaver-Entry-zh .section_proverb h4{padding-top:30px}.dictNaver-Entry-zh .section_proverb .lst{padding:5px 10px 0 27px}.dictNaver-Entry-zh .section_proverb .lst .kor{display:block;color:var(--color-font-grey)}.dictNaver-Entry-zh .section_proverb .lst .kor .kor_link{color:var(--color-font-grey)}.dictNaver-Entry-zh .section_compound .lst .kor_link,.dictNaver-Entry-zh .section_compound .lst_txt a,.dictNaver-Entry-zh .section_expression .lst .kor_link,.dictNaver-Entry-zh .section_expression .lst_txt a{color:currentColor}.dictNaver-Entry-zh .section_proverb .lst p{padding-bottom:10px}.dictNaver-Entry-zh .section_expression{padding:0!important}.dictNaver-Entry-zh .section_expression h4{padding-top:30px}.dictNaver-Entry-zh .section_compound{padding:0!important}.dictNaver-Entry-zh .section_compound h4{padding-top:30px}.dictNaver-Entry-zh .section_relhanja{padding:0!important}.dictNaver-Entry-zh .section_relhanja h6{margin:0 10px}.dictNaver-Entry-zh .section_relhanja .top_dn{padding-left:10px}.dictNaver-Entry-zh .section_relhanja .top_dt2{clear:none;margin-left:10px}.dictNaver-Entry-zh .section_relhanja .top_dn.top_dn_v2{padding-bottom:20px}.dictNaver-Entry-zh .section_relhanja.section.idiom .entry2 .jp{font-size:1.38em;line-height:1.25}.dictNaver-Entry-zh .section_relhanja.section.idiom .entry2 a.jp{vertical-align:middle}.dictNaver-Entry-zh .tc-panels .section.section_ideographic,.dictNaver-Entry-zh .tc-panels .section.section_phonetic{padding-top:30px}.dictNaver-Entry-zh .srch_result .section_sptrans{margin-top:0}.dictNaver-Entry-zh .section_sptrans.section h4{margin-bottom:0;padding-bottom:6px;border:0}.dictNaver-Entry-zh .lst2 li .lst_p .jap_ico,.dictNaver-Entry-zh .section_sptrans .srch_box .lst_p .jap_ico{padding-right:8px;margin-right:5px;background-position:100% 6px}.dictNaver-Entry-zh .detail_hj .section.section_phonetic h5{font-size:1.62em;color:currentColor}.dictNaver-Entry-zh .section_phonetic .entry{margin-bottom:0;font-weight:400}.dictNaver-Entry-zh .section.section_phonetic .pin{margin:4px 0 4px 10px;color:var(--color-font-grey)}.dictNaver-Entry-zh .section_ideographic .lst .lst_txt .pin,.dictNaver-Entry-zh .section_phonetic .lst .lst_txt .pin{display:inline;margin-right:4px;vertical-align:0}.dictNaver-Entry-zh .section_phonetic .lst.lst_v3{margin-left:10px;padding-bottom:10px}.dictNaver-Entry-zh .section_phonetic ol.lst.lst_v3{margin-left:22px}.dictNaver-Entry-zh .section_phonetic ol.lst.lst_v3 li,.dictNaver-Entry-zh .section_phonetic ol.lst.lst_v3 li .lst_txt{padding-bottom:0}.dictNaver-Entry-zh .section_phonetic .lst .inner_lst{padding-left:0;padding-bottom:0}.dictNaver-Entry-zh .section_phonetic .lst .lst_txt .pin{margin-left:0}.dictNaver-Entry-zh .detail_hj .section.section_ideographic h5{font-size:1.62em;color:currentColor}.dictNaver-Entry-zh .section_ideographic .entry{margin-bottom:0;font-weight:400}.dictNaver-Entry-zh .section_ideographic .lst.lst_v3{padding-bottom:13px}.dictNaver-Entry-zh .section_ideographic .lst.lst_v3 .inner_lst,.dictNaver-Entry-zh .section_ideographic .lst.lst_v3 .inner_lst .lst_txt{padding-bottom:0}.dictNaver-Entry-zh .section_ideographic .lst.lst_v2.lst_v3{margin-left:10px;padding-bottom:10px}.dictNaver-Entry-zh .section_ideographic .lst.lst_v2.lst_v3 .inner_lst{padding-left:0}.dictNaver-Entry-zh .section_box .section_ideographic .pin{color:var(--color-font-grey);margin:1px 0 3px 10px}.dictNaver-Entry-zh .top_dn{padding-top:4px;zoom:1}.dictNaver-Entry-zh .top_dn:after{display:block;height:0;visibility:hidden;clear:both}.dictNaver-Entry-zh .top_dn dd,.dictNaver-Entry-zh .top_dn dt{float:left;font-size:1em;line-height:1.19}.dictNaver-Entry-zh .top_dn dt{margin:0 5px 8px 0;padding:0 4px;border:1px solid #d8dfef;border-radius:1px;background-color:#fafbfd;line-height:.88}.dictNaver-Entry-zh .top_dn dt .blind{visibility:visible;position:static;width:auto;height:auto;color:#778cab}.dictNaver-Entry-zh .top_dn dd .jp,.dictNaver-Entry-zh .top_dn dt .jp{font-size:1.23em}.dictNaver-Entry-zh .top_dn.top_dn_v2{clear:both;padding-top:0}.dictNaver-Entry-zh .top_dn.top_dn_v2 dd{color:#777}.dictNaver-Entry-zh .top_dn .top_dt4{margin-left:14px}.dictNaver-Entry-zh .top_dt,.dictNaver-Entry-zh .top_dt2,.dictNaver-Entry-zh .top_dt3,.dictNaver-Entry-zh .top_dt4{position:relative;top:-1px;display:inline-block;min-width:21px;min-height:13px;text-align:center}.dictNaver-Entry-zh .top_dt2{clear:both}.dictNaver-Entry-zh .top_dn .top_dt3,.dictNaver-Entry-zh .top_dn .top_dt4{border-color:#ededed;background-color:#fff}.dictNaver-Entry-zh .top_dn .top_dt3 .blind,.dictNaver-Entry-zh .top_dn .top_dt4 .blind{color:#9da1a8}.dictNaver-Entry-zh .top_dn .bar{margin:0 4px}.dictNaver-Entry-zh .srch_box .top_dn:last-child{padding-bottom:10px}.dictNaver-Entry-zh .srch_box .srch_top .entry .jp{font-size:1.46em;letter-spacing:-1px}.dictNaver-Entry-zh .srch_result .top_dn dd{overflow:hidden;position:relative;top:-2px;max-width:85%;white-space:nowrap}.dictNaver-Entry-zh .srch_result .top_dn_v2 dd{top:0}.dictNaver-Entry-zh .spot_area .top_dn.top_dn_v2 dd em.ps2{display:inline-block;margin-left:7px}.dictNaver-Entry-zh .srch_result .top_dn_v2 .ft_col3{top:-2px}.dictNaver-Entry-zh .dt{margin:0 10px;border:1px solid #ebebeb;background-color:#f7f7f7}.dictNaver-Entry-zh .dt .wh,.dictNaver-Entry-zh .dt li:first-child{background:0 0}.dictNaver-Entry-zh .dt .tb{display:table;width:100%;overflow:hidden}.dictNaver-Entry-zh .dt li{display:table-cell;width:33%}.dictNaver-Entry-zh .dt .wh{width:100%}.dictNaver-Entry-zh .dt li a{display:inline-block;width:100%;padding:.6em 0 .5em;color:var(--color-font-grey);font-size:1.23em}.dictNaver-Entry-zh .dt li a em{font-size:.89em}.dictNaver-Entry-zh .dt li .on{color:currentColor;font-weight:700}.dictNaver-Entry-zh .dt li .on em{color:#e51313}.dictNaver-Entry-zh .spi_wrap{margin:0 auto;padding:20px 0 0}.dictNaver-Entry-zh .detail_hj .spi_wrap,.dictNaver-Entry-zh .detail_jpkr .spi_wrap,.dictNaver-Entry-zh .detail_krjp .spi_wrap{padding:10px 0}.dictNaver-Entry-zh .module_handwriting_wrap{position:fixed;z-index:50000;top:0;left:0;right:0;bottom:0;font-size:1em;line-height:normal}.dictNaver-Entry-zh .module_handwriting_content{position:absolute;z-index:10;left:0;right:0;bottom:0}.dictNaver-Entry-zh .module_handwriting_ico{display:inline-block;overflow:hidden;color:transparent;vertical-align:top;font-size:0;text-indent:-100px;background-repeat:no-repeat;background-size:50px 20px}.dictNaver-Entry-zh .module_handwriting_top{position:relative;height:39px;padding-left:15px;border-top:1px solid rgba(0,0,0,.15);background:rgba(0,0,0,.5)}.dictNaver-Entry-zh .module_handwriting_close{display:inline-block;height:39px;padding:0 3px;border:0;background:0 0;color:#fff;line-height:2.44;font-size:1.15em}.dictNaver-Entry-zh .module_handwriting_selector{position:absolute;top:0;right:18px;bottom:0;padding-right:14px}.dictNaver-Entry-zh .module_handwriting_selector>select{height:39px;padding:0;border:0;background:0 0;color:#00d741;vertical-align:top;font-size:1.15em;-webkit-appearance:none;-moz-appearance:none;appearance:none}.dictNaver-Entry-zh .module_handwriting_selector>select::-ms-expand{display:none}.dictNaver-Entry-zh .module_handwriting_selector .module_handwriting_ico{position:absolute;top:16px;right:0;width:10px;height:7px;background-position:-30px -13px}.dictNaver-Entry-zh .srch_nodata .top_area h4{padding:12px 10px;border-bottom:1px solid #f9f9f9;font-size:1.31em;color:currentColor;font-weight:400}.dictNaver-Entry-zh .srch_nodata .top_area .jp{font-size:1.15em}.dictNaver-Entry-zh .srch_nodata .top_area p{padding:12px 10px 25px;font-size:1.15em}.dictNaver-Entry-zh .srch_nodata .top_area p>a{display:block;width:auto;min-width:10px;margin-top:5px;color:#2173c8;text-decoration:underline}.dictNaver-Entry-zh .srch_nodata .view_ctrl{padding-bottom:32px}.dictNaver-Entry-zh .srch_nodata .top_h{font-size:1.15em;padding:0 0 11px 10px}.dictNaver-Entry-zh .srch_nodata .top_h2{padding:18px 0 9px 10px;border-top:2px solid #b8b8b8;font-size:1.15em}.dictNaver-Entry-zh .srch_nodata .txt_info{margin:0 11px;background:#f7f7f7}.dictNaver-Entry-zh .srch_nodata .txt_info .srch_box{padding:12px 10px 11px 14px}.dictNaver-Entry-zh .srch_nodata .resize p.text{display:none}.dictNaver-Entry-zh .srch_nodata .srch_box .pin{padding-bottom:3px}.dictNaver-Entry-zh .srch_nodata .srch_box .pin .lst_txt{position:relative;top:0;margin-left:5px}.dictNaver-Entry-zh .srch_nodata .srch_box dt{font-size:1.38em}.dictNaver-Entry-zh .srch_nodata .srch_box dt .jp{font-size:1.46em}.dictNaver-Entry-zh .srch_nodata .srch_box dl a{color:#005fca}.dictNaver-Entry-zh .srch_nodata .srch_box dd{margin-top:3px;font-size:1.15em;line-height:1.13;color:currentColor}.dictNaver-Entry-zh .srch_nodata .srch_box .origin2{margin-left:4px;font-size:1.15em;color:#888}.dictNaver-Entry-zh .srch_nodata .entry strong{font-weight:400}.dictNaver-Entry-zh .srch_nodata .section_sptrans h4 .blind{font-size:1.23em}.dictNaver-Entry-zh .srch_nodata .more_list{padding:12px 10px 11px 14px}.dictNaver-Entry-zh .srch_nodata .srch_box+.more_list{border-top:1px solid #eaeaea}.dictNaver-Entry-zh .srch_nodata .tbl_lst li{overflow:hidden;margin-bottom:2px;font-size:1.23em;white-space:nowrap}.dictNaver-Entry-zh .srch_nodata .tbl_lst li>span:first-child{margin-right:5px}.dictNaver-Entry-zh .srch_nodata .tbl_lst a{color:var(--color-brand)}.dictNaver-Entry-zh .srch_nodata .tbl_lst .jp{font-size:1.31em}.dictNaver-Entry-zh .srch_nodata .srch_box ol{list-style:decimal;margin-left:16px}.dictNaver-Entry-zh .srch_nodata .srch_box>ol{margin-left:22px}.dictNaver-Entry-zh .srch_nodata .srch_box ol>li{margin-bottom:3px;text-indent:-6px;line-height:1.13}.dictNaver-Entry-zh .tts_wrap{display:inline-block;line-height:0}.dictNaver-Entry-zh .btn_tts{padding:0 5px 0 6px;background:#fff;border:1px solid #d8d8d8;font-size:1em;color:#6c6c6c;line-height:1.19}.dictNaver-Entry-zh .ly_wrap{position:absolute;left:0;right:0}.dictNaver-Entry-zh .ly_tts_desc{position:relative;display:inline-block;padding:8px 12px;background:#fffef0;border:1px solid #c3c1a2;text-align:left;z-index:50}.dictNaver-Entry-zh .ly_tts_desc .title{display:block;font-size:1.08em;line-height:.94;font-weight:700;color:#11c948}.dictNaver-Entry-zh .ly_tts_desc .text{margin-top:3px;padding:0;font-size:1.15em;line-height:1.13;letter-spacing:-.075em;color:currentColor}.dictNaver-Entry-zh .tts_wrap .btn_close{position:absolute;overflow:hidden;top:0;right:0;width:29px;height:29px;background-size:29px auto;border:0;font-size:0;color:transparent}.dictNaver-Entry-zh .txt_origin,.dictNaver-Entry-zh .txt_origin a{color:#767676}.dictNaver-Entry-zh .srch_box .srch_top .tts_wrap{line-height:0}.dictNaver-Entry-zh .txt_origin{padding:0 10px 10px 0;text-align:right;font-size:1.08em}.dictNaver-Entry-zh .container{background-color:#e6e6e6}.dictNaver-Entry-zh .btn_txt_style1.info_userent{padding:5px 0;line-height:1}.dictNaver-Entry-zh .btn_txt_style1.info_userent .ico{padding-left:6px;background-position:6px -18px}.dictNaver-Entry-zh .userentry_word .con_clt .ask .pop_clt{left:-68px}.dictNaver-Entry-zh .userentry_word .entry_dn{display:block;position:relative;min-height:40px;overflow:hidden}.dictNaver-Entry-zh .userentry_word .entry_opendic li.first{border-top:none}.dictNaver-Entry-zh .userentry_word .mean{font-weight:700;color:currentColor}.dictNaver-Entry-zh .userentry_word .exam{font-size:1.15em;line-height:1.75;color:#777}.dictNaver-Entry-zh .userentry_word .exam .player{vertical-align:top}.dictNaver-Entry-zh .userentry_word .vota .like{margin-right:5px;color:#3882cf}.dictNaver-Entry-zh .userentry_word span.num{padding-right:4px;font-weight:700;word-wrap:break-word}.dictNaver-Entry-zh .btn_regist{display:inline-block;position:relative;height:27px;padding:0 20px 0 12px;border:1px solid #3a3f4c;border-radius:5px;font-size:1em;line-height:1.69;color:#2a303b;background:#fff;background:gradient(linear,0 0,0 100%,from(#fdfdfd),to(#f2f2f2))}.dictNaver-Entry-zh .btn_regist .ico{position:absolute;top:50%;right:8px;width:6px;height:10px;margin-top:-5px;background-position:-45px -31px}.dictNaver-Entry-zh .usen_another .usen_all{padding:0}.dictNaver-Entry-zh .usen_another .usen_all .ab,.dictNaver-Entry-zh .usen_another .usen_all .more_ico.userentry{position:relative;display:inline-block}.dictNaver-Entry-zh .usen_another .usen_all .ab{padding-right:4px}.dictNaver-Entry-zh .openword_none,.dictNaver-Entry-zh .usen_all{padding:0 14px}.dictNaver-Entry-zh .usen_another .usen_all .more_ico.userentry{right:0}.dictNaver-Entry-zh .usen_another .more_ico{display:inline-block;width:6px;height:10px;margin:-2px 0 0 4px;background-position:-44px 0;vertical-align:middle}.dictNaver-Entry-zh .userentry_section{border-bottom:1px solid #ccc}.dictNaver-Entry-zh .quiz_cont{z-index:70}.dictNaver-Entry-zh .shortcut_ico2{margin-left:7px}.dictNaver-Entry-zh .section_banner{margin-top:10px}.dictNaver-Entry-zh .banner_opendic{padding:10px 0;background:#e7e7e7;margin-top:-1px;z-index:1;position:relative}.dictNaver-Entry-zh .banner_opendic .inner{display:block;padding:17px 0 0 11px;box-sizing:border-box;color:#fff;height:145px;background-size:cover}.dictNaver-Entry-zh .banner_opendic .inner .cont_wrap{position:relative;display:block;max-width:320px;margin:0 auto}.dictNaver-Entry-zh .section_box.kor_food .food_desc .image_wrap img,.dictNaver-Entry-zh .section_box.kor_food .section .image_wrap img{max-width:100%;max-height:400px;vertical-align:top}.dictNaver-Entry-zh .banner_opendic .inner .tit{font-size:1.38em;font-weight:500;letter-spacing:-1px;line-height:1.5}.dictNaver-Entry-zh .banner_opendic .inner .tit em{display:inline-block;background:#44d26d;padding:0 2px;line-height:1.25}.dictNaver-Entry-zh .banner_opendic .inner .dsc{display:block;font-size:1em;color:#e9e8e8;letter-spacing:-1px;margin-top:6px}.dictNaver-Entry-zh .banner_opendic .inner .logo{width:60px;height:60px;position:absolute;right:10px;top:6px}.dictNaver-Entry-zh .banner_opendic .btn_openbanner{width:100%;position:absolute;left:0;bottom:10px}.dictNaver-Entry-zh .banner_opendic .btn_openbanner:after{display:block;clear:both}.dictNaver-Entry-zh .banner_opendic .btn_openbanner a{display:block;width:50%;color:#fff;float:left;height:40px;line-height:2.5;font-size:1em;text-align:center}.dictNaver-Entry-zh .banner_opendic .btn_openbanner .btn_view{overflow:hidden}.dictNaver-Entry-zh .section_box.kor_food .section{padding:30px 0 10px;border-bottom:1px solid #d5d5d5}.dictNaver-Entry-zh .section_box.kor_food .section .image_wrap{position:relative;padding:15px 15px 5px}.dictNaver-Entry-zh .section_box.kor_food .section .image_wrap .image_area{text-align:center}.dictNaver-Entry-zh .section_box.kor_food+.userentry_section{border-top:none}.dictNaver-Entry-zh .section_box.kor_food ul.lst .inner_lst{padding:0 15px}.dictNaver-Entry-zh .section_box.kor_food ol.lst .inner_lst{padding:0 15px 0 0}.dictNaver-Entry-zh .section_box.kor_food .lst li .lst_txt{font-size:1.23em}.dictNaver-Entry-zh .section_box.kor_food .lst li .lst_txt+p{margin-top:20px}.dictNaver-Entry-zh .section_box.kor_food .lst li>p{margin-top:10px;padding-bottom:12px}.dictNaver-Entry-zh .section_box.kor_food .lst li>p .ico_bl+span{margin-right:10px}.dictNaver-Entry-zh .section_box.kor_food .lst li>p .player{position:relative;margin-left:-5px}.dictNaver-Entry-zh .section_box.kor_food .lst li>p .kor{display:block;margin-top:-3px;color:var(--color-font-grey)}.dictNaver-Entry-zh .detail_jpkr .section_box.kor_food ol.lst li .cen_box2{margin:17px 0 0 -15px}.dictNaver-Entry-zh .section_box .section .source{display:block;padding:8px 15px 20px;font-size:.92em;text-align:right;color:#aaa;word-wrap:normal}.dictNaver-Entry-zh .section_box .section .source a{color:#aaa}.dictNaver-Entry-zh .section_box.kor_food .food_desc{border-top:9px solid #f0f0f0;border-bottom:9px solid #f0f0f0}.dictNaver-Entry-zh .section_box.kor_food .food_desc .section_tit{height:40px;padding:0 12px;border-bottom:1px solid #ebebeb;line-height:2.56;font-size:1.23em;color:#444}.dictNaver-Entry-zh .section_box.kor_food .food_desc .image_wrap{position:relative;padding:20px 15px 15px}.dictNaver-Entry-zh .section_box.kor_food .food_desc .image_wrap:after{display:block;position:absolute;bottom:0;left:3px;right:2px;content:"";height:1px;background-size:4px 1px;background-size:4px 1px;background-repeat:repeat-x}.dictNaver-Entry-zh .section_box.kor_food .food_desc .image_wrap .image_area{position:relative;text-align:center}.dictNaver-Entry-zh .blind,.dictNaver-Entry-zh .u_hc,.dictNaver-Entry-zh .u_skip{position:absolute;overflow:hidden}.dictNaver-Entry-zh .section_box.kor_food .food_desc .mean_wrap{padding:19px 14px 0;border-bottom:1px solid #e5e5e5}.dictNaver-Entry-zh .section_box.kor_food .food_desc .mean_wrap .mean{font-size:1.15em;line-height:1.25}.dictNaver-Entry-zh .section_box.kor_food .food_desc .mean_wrap .mean+.mean{margin-top:13px}.dictNaver-Entry-zh .section_box.kor_food .food_desc .mean_wrap .mean[lang=ja]{font-size:1.31em;line-height:1.38}.dictNaver-Entry-zh .section_box.kor_food .food_desc .mean_wrap .source{display:block;padding:15px 0 20px;font-size:.92em;text-align:right;color:#aaa}.dictNaver-Entry-zh .sc2,.dictNaver-Entry-zh .ts{text-align:center}.dictNaver-Entry-zh .section_box.kor_food .food_desc .mean_wrap .source a{color:#aaa}.dictNaver-Entry-zh .ts,.dictNaver-Entry-zh .ts a{color:#fff}.dictNaver-Entry-zh .u_hc,.dictNaver-Entry-zh .u_skip{visibility:hidden;left:-999em;width:0;height:0;font-size:0;line-height:0}.dictNaver-Entry-zh #ct:after,.dictNaver-Entry-zh .blind,.dictNaver-Entry-zh .hc{height:1px}.dictNaver-Entry-zh .blind{width:1px;margin:-1px}.dictNaver-Entry-zh .writer_content{min-height:100%;position:relative}.dictNaver-Entry-zh .writer_header.totop{margin-top:-44px}.dictNaver-Entry-zh #ct{clear:both;width:100%;background-color:#fff}.dictNaver-Entry-zh #ct:after{display:block;clear:both;margin-top:-1px}.dictNaver-Entry-zh #ct.main{background-color:#f2f2f2}.dictNaver-Entry-zh #ct.drawing{position:fixed!important;bottom:0}.dictNaver-Entry-zh .hc{overflow:hidden;position:absolute;width:1px;margin:-1px}.dictNaver-Entry-zh #ct,.dictNaver-Entry-zh .lg,.dictNaver-Entry-zh .ts{position:relative}.dictNaver-Entry-zh .sc,.dictNaver-Entry-zh .sc2 .it,.dictNaver-Entry-zh .ts{width:100%}.dictNaver-Entry-zh .a .bgselected,.dictNaver-Entry-zh .a strong{font-weight:700}.dictNaver-Entry-zh .nc{display:none}.dictNaver-Entry-zh input[type=search]::search-cancel-button{display:none}.dictNaver-Entry-zh .ts{z-index:110;height:44px;border-bottom:1px solid #01af34;background-color:#03c73c}.dictNaver-Entry-zh .lg{line-height:.63}.dictNaver-Entry-zh #ct,.dictNaver-Entry-zh .lg{z-index:70}.dictNaver-Entry-zh .sc,.dictNaver-Entry-zh .sc2{position:relative;z-index:1}.dictNaver-Entry-zh .ts .h_a{position:relative}.dictNaver-Entry-zh .ts .h_a:first-child{vertical-align:-1px}.dictNaver-Entry-zh .sc2{height:35px;padding:8px 91px 8px 10px;background:#01b536;transform:none}.dictNaver-Entry-zh .sc2 .sc_box,.dictNaver-Entry-zh .sc2 .sc_box2{display:block;overflow:hidden;height:35px;padding:1px 30px 1px 6px;background-color:#fff;box-sizing:border-box;box-sizing:border-box}.dictNaver-Entry-zh .sc2 .sc_box2{margin:0 44px 0 5px;text-align:left}.dictNaver-Entry-zh .sc2 .it{border:0;font-size:1.38em;line-height:2.06;border-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.dictNaver-Entry-zh .sbt3{position:absolute;top:13px;right:96px;z-index:99;width:22px;height:22px;background-position:-7px -117px;border:none}.dictNaver-Entry-zh .m_tab,.dictNaver-Entry-zh .m_tab_l,.dictNaver-Entry-zh .m_tab_l .tab_lb{position:relative}.dictNaver-Entry-zh .m_tab{display:table;width:100%;background:#f9f9f9;text-align:center;border-bottom:1px solid #e0e0e0}.dictNaver-Entry-zh .m_tab_l{display:table-cell;width:20%;vertical-align:top}.dictNaver-Entry-zh .m_tab_l .tab_lb{display:inline-block;vertical-align:middle;min-width:25px;max-width:150px;padding:12px 3px 8px;font-size:1.08em;line-height:1.06;color:#444;word-wrap:break-word}.dictNaver-Entry-zh .m_tab_on .tab_lb,.dictNaver-Entry-zh .m_tab_on2 .tab_lb:after{color:#01b536}.dictNaver-Entry-zh .m_tab_on .tab_lb:after,.dictNaver-Entry-zh .m_tab_on2 .tab_lb:after{display:block;position:absolute;left:0;right:0;bottom:-1px;height:2px;background-color:#03c73c}.dictNaver-Entry-zh .m_tab_a{display:block;height:100%}.dictNaver-Entry-zh .write_lst2,.dictNaver-Entry-zh .write_lst2 a{height:30px;letter-spacing:-1px}.dictNaver-Entry-zh .m_tab_on2 .m_tab_a{background-position:50% -360px}.dictNaver-Entry-zh .m_tab_l:first-child .m_tab_a:after{display:none}.dictNaver-Entry-zh .write_lstw2,.dictNaver-Entry-zh .write_lstw3{width:100%;margin:0;background:#fff}.dictNaver-Entry-zh .write_lstw3 .write_lst2{float:left;width:50%;margin-left:-1px;border-right:1px solid #e9e9e9}.dictNaver-Entry-zh .write_lst2{border-bottom:1px solid #e9e9e9;background-color:#fff;font-size:1.23em;line-height:1.88}.dictNaver-Entry-zh .write_lst2:nth-child(2n){margin-left:0;border-right:0}.dictNaver-Entry-zh .write_lst2 a{display:block;overflow:hidden;padding:0 12px;white-space:nowrap}.dictNaver-Entry-zh .write_closew{clear:both;top:-1px;height:35px;padding:0 10px;border-top:1px solid #e9e9e9;border-bottom:1px solid var(--color-font-grey);background-color:#f0f0f0;font-size:1.15em;line-height:2.19;text-align:right}.dictNaver-Entry-zh .write_close{padding-right:13px;color:var(--color-font-grey)}.dictNaver-Entry-zh .recent_searches{position:relative;z-index:1;background:#fff}.dictNaver-Entry-zh .recent_searches h2{padding:0 15px;height:39px;border-bottom:1px solid #f9f9f9;line-height:2.44;font-size:1.08em;color:#7f8498}.dictNaver-Entry-zh .recent_searches .btn_wrap{overflow:hidden;padding:0 0 0 14px;background:#fcfcfc;border-top:1px solid #e9edef;border-bottom:1px solid #e9edef}.dictNaver-Entry-zh .recent_item .add_word select,.dictNaver-Entry-zh .recent_searches .btn_wrap .btn_all_save select{border:0;z-index:10;text-indent:-999em;vertical-align:top;-webkit-appearance:none;-moz-appearance:none;appearance:none}.dictNaver-Entry-zh .recent_searches .btn_wrap [class^=btn_]{position:relative;float:left;line-height:2.44;font-size:1em;color:#828a93}.dictNaver-Entry-zh .recent_searches .btn_wrap .btn_all_del:after{display:inline-block;margin:13px 10px 0;width:1px;height:12px;background-color:#e6e7e7;vertical-align:top}.dictNaver-Entry-zh .recent_searches .btn_wrap .btn_all_save select{position:absolute;left:0;right:0;top:0;bottom:0;display:inline-block;background:0 0;border-radius:0}.dictNaver-Entry-zh .recent_searches .btn_wrap .btn_cls{float:right;position:relative;padding:0 14px;border:none;border-left:1px solid #f1f4f5;background:0 0}.dictNaver-Entry-zh .recent_searches .no_item{width:100%;line-height:1.31;padding-bottom:31px;font-size:1.15em;color:#bfc6d4;text-align:center}.dictNaver-Entry-zh .recent_searches .no_item:before{display:block;width:50px;height:50px;margin:30px auto 9px;background-position:-45px -45px}.dictNaver-Entry-zh .recent_list{overflow:hidden;position:relative;background-color:#fff}.dictNaver-Entry-zh .recent_item{display:block;position:relative;min-height:26px;line-height:1.63;padding:6px 32px 6px 14px;border-top:1px solid #f9f9f9}.dictNaver-Entry-zh .recent_item .add_word,.dictNaver-Entry-zh .recent_item .btn_cls{position:absolute;top:7px;width:25px;height:25px}.dictNaver-Entry-zh .recent_item:first-child{border-top:none}.dictNaver-Entry-zh .recent_item .recent_word a{color:#0361c2;font-size:1.23em}.dictNaver-Entry-zh .recent_item .recent_word[lnag=zh] a{font-size:1.38em}.dictNaver-Entry-zh .recent_item .add_word{right:40px;background-position:-20px -45px}.dictNaver-Entry-zh .recent_item .add_word select{display:inline-block;width:25px;height:25px;background:0 0;border-radius:0}.dictNaver-Entry-zh .ly_alert,.dictNaver-Entry-zh .recent_item.added .add_word{display:none}.dictNaver-Entry-zh .recent_item .btn_cls{right:9px;border:0;background-position:-20px -20px;cursor:pointer}.dictNaver-Entry-zh .recent_item.added .recent_word a{color:currentColor;word-wrap:break-word}.dictNaver-Entry-zh .h3w,.dictNaver-Entry-zh .h_word,.dictNaver-Entry-zh .h_word_dd{position:relative}.dictNaver-Entry-zh .alert_add_word p{width:100%;height:37px;line-height:2.31;border-radius:1px;background-color:rgba(0,0,0,.8);font-size:1.08em;color:#fff;text-align:center}.dictNaver-Entry-zh .btn,.dictNaver-Entry-zh .h_word{background:#f6f6f6}.dictNaver-Entry-zh .st1{color:#ed1b23}.dictNaver-Entry-zh .st2{color:#1172b6}.dictNaver-Entry-zh .st3{color:#32a800}.dictNaver-Entry-zh .tx1{color:currentColor}.dictNaver-Entry-zh .tx2{color:var(--color-font-grey)}.dictNaver-Entry-zh .tx3{color:#909090}.dictNaver-Entry-zh .tx4,.dictNaver-Entry-zh .tx4 a{color:#fff}.dictNaver-Entry-zh .tx5{color:#333}.dictNaver-Entry-zh .tx6,.dictNaver-Entry-zh .tx6 a{color:#0068b1}.dictNaver-Entry-zh .tx7{color:#888}.dictNaver-Entry-zh .tx8{color:#999}.dictNaver-Entry-zh .fz11{font-size:.85em}.dictNaver-Entry-zh .fz12{font-size:.92em}.dictNaver-Entry-zh .fz13{font-size:1em}.dictNaver-Entry-zh .fz14{font-size:1.08em}.dictNaver-Entry-zh .fz15{font-size:1.15em}.dictNaver-Entry-zh .fz16{font-size:1.23em}.dictNaver-Entry-zh .fz17{font-size:1.31em}.dictNaver-Entry-zh .fz22{font-size:1.69em}.dictNaver-Entry-zh .fz24{font-size:1.85em}.dictNaver-Entry-zh .fwn{font-weight:400}.dictNaver-Entry-zh .h_word{clear:both;padding:25px 10px 30px;border-bottom:1px solid #e3e3e3;zoom:1}.dictNaver-Entry-zh .h_word2{float:left;width:100%;margin-top:-1px;margin-bottom:2px}.dictNaver-Entry-zh .h_word3{display:table;table-layout:fixed;width:100%}.dictNaver-Entry-zh .h_word:after{display:block;height:0;font-size:0;visibility:hidden;clear:both}.dictNaver-Entry-zh .h_word_dt{padding:0 2px 4px 0;font-size:2.69em;line-height:3.13}.dictNaver-Entry-zh .h_word_dt a{display:inline-block;font-weight:700}.dictNaver-Entry-zh .h_word_dt2{display:table-cell;overflow:hidden;font-size:3.08em;font-weight:700;line-height:2.88}.dictNaver-Entry-zh .col4,.dictNaver-Entry-zh .col5,.dictNaver-Entry-zh .h_word_cht,.dictNaver-Entry-zh .more_b,.dictNaver-Entry-zh .more_b2,.dictNaver-Entry-zh .sc_e_h,.dictNaver-Entry-zh .word_h3,.dictNaver-Entry-zh .word_h4,.dictNaver-Entry-zh .word_w4 strong{font-weight:400}.dictNaver-Entry-zh .h_word_dd{top:2px;padding-right:10px;font-size:1.38em;line-height:1.94;letter-spacing:-1px;vertical-align:super}.dictNaver-Entry-zh .h_word_cht,.dictNaver-Entry-zh .read{vertical-align:top}.dictNaver-Entry-zh .h_word_dd2{overflow:hidden;margin-right:5px;font-size:1.23em;color:var(--color-font-grey)}.dictNaver-Entry-zh .h_word_cht{font-size:2.69em;color:var(--color-font-grey)}.dictNaver-Entry-zh .btn{margin:4px 0}.dictNaver-Entry-zh .btn_a{display:inline-block;height:14px;margin:0 3px 0 0;padding:0 3px;border:1px solid #e5e4e4;background:#e3e3e3;font-size:.85em;line-height:.94;color:var(--color-font-grey)}.dictNaver-Entry-zh .p_read{display:block;margin:10px 36px 0 0;word-break:break-all}.dictNaver-Entry-zh .listen_area,.dictNaver-Entry-zh .read{display:inline-block}.dictNaver-Entry-zh .p_read .dicsp{margin-left:-2px}.dictNaver-Entry-zh .read{height:21px;margin-left:7px;color:var(--color-font-grey)}.dictNaver-Entry-zh .ir_v1{background-position:100% -460px}.dictNaver-Entry-zh .dicl,.dictNaver-Entry-zh .dicl_repeat,.dictNaver-Entry-zh .dicl_tts{display:inline-block;vertical-align:top;overflow:hidden;width:20px;height:19px;background-position:0 0;white-space:nowrap;text-indent:100%;color:transparent}.dictNaver-Entry-zh .dicl_tts{background-position-x:-25px}.dictNaver-Entry-zh .dicl.dicl_v2{background-size:100px 100px;background-size:100px 100px}.dictNaver-Entry-zh .listen_area{vertical-align:middle;background:#fff;border:1px solid #e6e6e6}.dictNaver-Entry-zh .listen_area .btn_listen:before,.dictNaver-Entry-zh .listen_area:after{display:block;content:""}.dictNaver-Entry-zh .listen_area:after{clear:both}.dictNaver-Entry-zh .listen_area .btn_listen:before{position:absolute;width:1px;height:9px;top:50%;left:0;background:#e6e6e6;transform:translate(0,-50%)}.dictNaver-Entry-zh .dicl.on,.dictNaver-Entry-zh .dicl_repeat.on,.dictNaver-Entry-zh .dicl_tts.on,.dictNaver-Entry-zh .exap .btn_listen .dicl.on,.dictNaver-Entry-zh .exap .btn_listen .dicl_repeat.on,.dictNaver-Entry-zh .exap .btn_listen .dicl_tts.on{background-position-y:-25px}.dictNaver-Entry-zh .listen_area .btn_listen:first-child:before{display:none}.dictNaver-Entry-zh .listen_area .btn_listen{position:relative;float:left}.dictNaver-Entry-zh .h_word .btn_listen{padding:5px 9px}.dictNaver-Entry-zh .h_word .btn_listen:first-child{padding-right:10px}.dictNaver-Entry-zh .h_word .dicl,.dictNaver-Entry-zh .h_word .dicl_repeat,.dictNaver-Entry-zh .h_word .dicl_tts{width:20px;height:17px;background-position:-50px 0}.dictNaver-Entry-zh .h_word .dicl_tts{background-position-x:-75px}.dictNaver-Entry-zh .h_word .dicl_repeat{background-position-x:-100px}.dictNaver-Entry-zh .exap .listen_area{margin-left:10px}.dictNaver-Entry-zh .exap .btn_listen{padding:4px 9px 4px 10px;line-height:.75}.dictNaver-Entry-zh .exap .btn_listen:first-child{padding-left:11px}.dictNaver-Entry-zh .exap .btn_listen:last-child{padding-right:11px}.dictNaver-Entry-zh .exap .btn_listen .dicl,.dictNaver-Entry-zh .exap .btn_listen .dicl_repeat,.dictNaver-Entry-zh .exap .btn_listen .dicl_tts{width:14px;height:12px;background-position:-125px 0}.dictNaver-Entry-zh .exap .btn_listen .dicl_tts{background-position-x:-150px}.dictNaver-Entry-zh .exap .btn_listen .dicl_repeat{background-position-x:-175px}.dictNaver-Entry-zh .exap .btn_listen .dicl.loading,.dictNaver-Entry-zh .exap .btn_listen .dicl_repeat.loading,.dictNaver-Entry-zh .exap .btn_listen .dicl_tts.loading{background-size:16px auto;background-size:16px auto;width:16px;margin:0 -1px}.dictNaver-Entry-zh .exap .read{margin-left:10px}.dictNaver-Entry-zh .dicl.loading,.dictNaver-Entry-zh .dicl_repeat.loading,.dictNaver-Entry-zh .dicl_tts.loading{background-size:16px auto;background-size:16px auto}.dictNaver-Entry-zh .pron_wrap{position:relative}.dictNaver-Entry-zh .listen_info{position:absolute;top:0;right:0}.dictNaver-Entry-zh .btn_listen_info{position:absolute;overflow:hidden;top:0;right:-4px;padding:7px;background:0 0;border:0}.dictNaver-Entry-zh .btn_listen_info:before{display:block;width:18px;height:18px;background-size:188px auto;background-size:188px auto;content:""}.dictNaver-Entry-zh .ly_listen_info{position:absolute;top:30px;right:-5px;width:184px;padding:15px 18px 12px;background:#fffef1;border:1px solid #c3c1a4;font-size:1.08em;line-height:1.13;color:#222;z-index:30}.dictNaver-Entry-zh .ly_listen_info .dicl,.dictNaver-Entry-zh .ly_listen_info .dicl_tts{margin-bottom:8px}.dictNaver-Entry-zh .ly_listen_info .dicl_tts{margin-top:17px}.dictNaver-Entry-zh .listen_info .btn_close{position:absolute;overflow:hidden;top:0;right:0;padding:10px;border:0;background:0 0;font-size:0;line-height:0;color:transparent}.dictNaver-Entry-zh .listen_info .btn_close:before{width:12px;height:12px;display:block;background-size:188px auto;background-size:188px auto;content:""}.dictNaver-Entry-zh .p_read .read_word{margin-right:4px;font-size:1.38em;color:var(--color-font-grey);vertical-align:middle}.dictNaver-Entry-zh .word_a,.dictNaver-Entry-zh .word_r,.dictNaver-Entry-zh .word_w{vertical-align:top}.dictNaver-Entry-zh .p_read span:first-child{margin-left:0}.dictNaver-Entry-zh .ic_close,.dictNaver-Entry-zh .ic_op{padding-right:15px}.dictNaver-Entry-zh .word_fs{font-size:2.86em}.dictNaver-Entry-zh .word_fs2{padding-top:23px;font-size:2.5em;line-height:2.5}.dictNaver-Entry-zh .word_fs3{font-size:1.08em}.dictNaver-Entry-zh .word_olst{clear:both;position:relative;border-top:1px solid #e2e2e2;padding:25px 0}.dictNaver-Entry-zh .word_olst:first-child{border-top:none}.dictNaver-Entry-zh .word_h{font-size:1.23em;line-height:1.44;letter-spacing:-1px}.dictNaver-Entry-zh .word_olw .words{display:block;line-height:1.31}.dictNaver-Entry-zh .word_olw .exp{display:block;margin-top:8px;font-size:1.08em;line-height:1.19;color:var(--color-font-grey);letter-spacing:-1px}.dictNaver-Entry-zh .word_olw .exp .dicsp{margin-left:-2px}.dictNaver-Entry-zh .word_olw .exp>span{position:relative;top:-2px}.dictNaver-Entry-zh .word_l{display:block;float:left;margin:4px 8px 0 0;font-size:1.23em}.dictNaver-Entry-zh .word_a,.dictNaver-Entry-zh .word_btn,.dictNaver-Entry-zh .word_r2,.dictNaver-Entry-zh .word_w2{display:inline-block}.dictNaver-Entry-zh .word_bd{border-bottom:1px solid #e7e7e7}.dictNaver-Entry-zh .word{clear:both;padding:0 13px;letter-spacing:-1px;border-top:1px solid #e7e7e7}.dictNaver-Entry-zh .userentry_word .word{border-top:0}.dictNaver-Entry-zh .word_h3{padding:32px 0 22px;font-size:1.38em;letter-spacing:-1px}.dictNaver-Entry-zh .word_h4{padding:0 0 8px;font-size:1.23em;line-height:1.13;color:currentColor}.dictNaver-Entry-zh .word_p{overflow:hidden;clear:both;margin:0 0 24px}.dictNaver-Entry-zh .word_w{font-size:1.54em;line-height:1;color:#0068b1}.dictNaver-Entry-zh .word_r{width:auto;overflow:hidden}.dictNaver-Entry-zh .word_w2{font-size:1.1em;line-height:1.5;color:var(--color-brand);vertical-align:baseline}.dictNaver-Entry-zh .word_yiti{font-size:1.08em;color:currentColor}.dictNaver-Entry-zh .word_w3{font-size:1.2em}.dictNaver-Entry-zh .word_w4{font-size:1.23em;color:#0068b1}.dictNaver-Entry-zh .word_w5{font-size:1.38em;color:#0068b1}.dictNaver-Entry-zh .word_r2{font-size:1.1em;vertical-align:top}.dictNaver-Entry-zh .word_dv{margin:0 6px;font-size:1.54em;color:#ccc}.dictNaver-Entry-zh .word_o_lst,.dictNaver-Entry-zh .word_otr_h2{color:var(--color-font-grey);display:block}.dictNaver-Entry-zh .word_btn{position:absolute;top:30px;right:0;width:auto;height:1.36em;padding-left:.45em;border:1px solid #bcbcbc;font-size:.93em;line-height:1.36em}.dictNaver-Entry-zh .word_lst{margin-bottom:1em}.dictNaver-Entry-zh .word_lst .dicsp{margin-left:-2px}.dictNaver-Entry-zh .word_o{margin:0;padding:0 0 0 1em}.dictNaver-Entry-zh .word_o_lst{position:relative;margin-bottom:2px;padding-left:15px;line-height:1.25;font-size:1.08em}.dictNaver-Entry-zh .word_o_l{display:block;position:absolute;top:0;left:0}.dictNaver-Entry-zh .word_otr_h2{margin-bottom:5px;font-size:1em}.dictNaver-Entry-zh .word_dv2,.dictNaver-Entry-zh .word_k2{display:inline-block}.dictNaver-Entry-zh .word_oa_kr{font-size:1.08em}.dictNaver-Entry-zh .word_lstw2 li,.dictNaver-Entry-zh .word_lstw4 li,.dictNaver-Entry-zh .word_oa_zh{font-size:1.23em}.dictNaver-Entry-zh .word_lstw2{overflow:hidden;clear:both;margin:-1px 0 16px}.dictNaver-Entry-zh .word_lstw2 li{float:left;width:50%;margin-bottom:11px;line-height:1.4em}.dictNaver-Entry-zh .word_lstw2 li:nth-child(2n+1){overflow:hidden;clear:both}.dictNaver-Entry-zh .word_lstw4{overflow:hidden;clear:both;margin:-1px 0 16px}.dictNaver-Entry-zh .word_lstw4 li{float:left;width:33%;margin-bottom:11px;line-height:1.4em}.dictNaver-Entry-zh .word_k{font-size:1.08em}.dictNaver-Entry-zh .word_k2{margin-bottom:6px;font-size:1.29em;color:#0068b1}.dictNaver-Entry-zh .more,.dictNaver-Entry-zh .more2{font-size:1em}.dictNaver-Entry-zh .word_lstw3{padding:2px 0 15px}.dictNaver-Entry-zh .word_lstw3 li{position:relative;margin-bottom:16px}.dictNaver-Entry-zh .word_dv2{margin:0 8px;color:#ccc}.dictNaver-Entry-zh .more,.dictNaver-Entry-zh .more2,.dictNaver-Entry-zh .word_mg2,.dictNaver-Entry-zh .word_mg3{display:block}.dictNaver-Entry-zh .word_mg{position:relative;top:1px;vertical-align:baseline}.dictNaver-Entry-zh .word_mg2{margin-right:10px}.dictNaver-Entry-zh .word_mg3{margin-left:10px}.dictNaver-Entry-zh .word_mg4{margin-bottom:5px}.dictNaver-Entry-zh .more{text-align:right;margin:0}.dictNaver-Entry-zh .more2{width:100%;min-height:45px;background:#eeeff0;line-height:2.81;text-align:center}.dictNaver-Entry-zh .more:first-of-type{margin-top:-5px}.dictNaver-Entry-zh .more_b{font-size:1.15em;color:currentColor}.dictNaver-Entry-zh .more_b2{font-size:1.23em;color:#0068b1}.dictNaver-Entry-zh .more_c{padding:18px 10px 15px}.dictNaver-Entry-zh .more_a,.dictNaver-Entry-zh .more_d{text-align:right}.dictNaver-Entry-zh .main_p3,.dictNaver-Entry-zh .more2 .more_a,.dictNaver-Entry-zh .ts .lk{text-align:center}.dictNaver-Entry-zh .more_a .txt,.dictNaver-Entry-zh .more_d .txt,.dictNaver-Entry-zh .more_ico{display:inline-block;vertical-align:middle}.dictNaver-Entry-zh .more_d .more_ico,.dictNaver-Entry-zh .more_d .txt,.dictNaver-Entry-zh .word_h2_h,.dictNaver-Entry-zh .word_h2_h strong{vertical-align:top}.dictNaver-Entry-zh .more_a .txt,.dictNaver-Entry-zh .more_d .txt{margin-right:5px;color:#888}.dictNaver-Entry-zh .more_d .more_ico{margin-top:3px}.dictNaver-Entry-zh .more_d .txt.b{color:var(--color-brand)}.dictNaver-Entry-zh .more_a .txt{color:currentColor}.dictNaver-Entry-zh .more_ico{width:6px;height:9px;background-position:0 -60px}.dictNaver-Entry-zh .more2 .more_a{display:table;width:100%;height:45px;line-height:1.13}.dictNaver-Entry-zh .more2 .more_a .txt{display:table-cell;padding:5px;margin:0;word-break:break-word;word-wrap:break-word}.dictNaver-Entry-zh .sc_e_a,.dictNaver-Entry-zh .sc_r,.dictNaver-Entry-zh .word_h2_h,.dictNaver-Entry-zh .word_p4 .word_w2{display:inline-block}.dictNaver-Entry-zh .more2 .more_a .more_ico{vertical-align:top;margin:5px 0 0 5px}.dictNaver-Entry-zh .word_h2w,.dictNaver-Entry-zh .word_h2w2{position:relative;overflow:hidden;clear:both;padding:6px 11px 6px 0;font-size:1.2em;line-height:1.5;letter-spacing:-1px}.dictNaver-Entry-zh .word_h2w{margin-bottom:.5em;border-bottom:1px solid #b8b8b8}.dictNaver-Entry-zh .word_h2_h{margin-left:3px;font-size:1.08em;color:var(--color-font-grey)}.dictNaver-Entry-zh .btnw{margin:0;padding:0 0 0 6px}.dictNaver-Entry-zh .word2{clear:both;padding:0 5px;letter-spacing:-1px}.dictNaver-Entry-zh .word2.conjugate .word_bd2{padding-bottom:15px;border-bottom:1px solid #e7e7e7}.dictNaver-Entry-zh .word_bd4{margin-bottom:-40px;padding-bottom:0}.dictNaver-Entry-zh .word_bd5{margin-bottom:15px;padding-bottom:28px}.dictNaver-Entry-zh .word_bd6{border-top:1px solid #e7e7e7}.dictNaver-Entry-zh .word_p3{padding:5px 0 0}.dictNaver-Entry-zh .word_grey{color:var(--color-font-grey);letter-spacing:-1px}.dictNaver-Entry-zh .word_p4{padding-left:10px;font-size:1.23em;overflow:hidden}.dictNaver-Entry-zh .word_p4 a{float:left;height:39px;margin:0 10px 15px 0}.dictNaver-Entry-zh .word_p4 .word_w2{margin-bottom:5px}.dictNaver-Entry-zh .word_p2{margin:0;padding-left:1em;font-size:1em;color:var(--color-font-grey);line-height:1.5}.dictNaver-Entry-zh .auto_link,.dictNaver-Entry-zh .col5,.dictNaver-Entry-zh .sc_e_p{font-size:1em}.dictNaver-Entry-zh .col4,.dictNaver-Entry-zh .col4 a{color:#f91207}.dictNaver-Entry-zh .sc_e{padding:0 10px 27px}.dictNaver-Entry-zh .sc_e_p{padding-top:29px;padding-bottom:8px;letter-spacing:-1px}.dictNaver-Entry-zh .col4{word-break:break-all}.dictNaver-Entry-zh .sc_e2_h,.dictNaver-Entry-zh .sc_e_p2{color:var(--color-font-grey);letter-spacing:-1px}.dictNaver-Entry-zh .sc_e_p2{padding-top:5px}.dictNaver-Entry-zh .sc_e2{padding:19px 10px 28px}.dictNaver-Entry-zh .sc_e2_h{padding-bottom:4px}.dictNaver-Entry-zh .col5{color:currentColor;word-break:break-all}.dictNaver-Entry-zh .sc_a,.dictNaver-Entry-zh .sc_e_a{color:#0068b1}.dictNaver-Entry-zh .sc_e2_a,.dictNaver-Entry-zh .sc_e2_a2{padding-right:10px;padding-left:10px;color:#0068b1;letter-spacing:-1px}.dictNaver-Entry-zh .sc_e2_a2{padding-left:0;background:0 0}.dictNaver-Entry-zh .sc_e_m,.dictNaver-Entry-zh .sc_e_m2{overflow:hidden;margin:7px 10px;background-color:#f7f7f7}.dictNaver-Entry-zh .sc_e_m{padding:15px 20px 4px}.dictNaver-Entry-zh .sc_e_m2{padding:4px 0 4px 19px}.dictNaver-Entry-zh .sc_e_d{line-height:1.5;letter-spacing:-1px}.dictNaver-Entry-zh .sc_e_l,.dictNaver-Entry-zh .sc_e_l2{width:260px;line-height:1.44;letter-spacing:-1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dictNaver-Entry-zh .sc_e_dl{padding-bottom:8px}.dictNaver-Entry-zh .sc_e_u{padding:8px 0}.dictNaver-Entry-zh .sc_e_h{padding:30px 10px 0;border-top:1px solid #d8d8d8;font-size:1.08em;letter-spacing:-1px}.dictNaver-Entry-zh .sc_e_a,.dictNaver-Entry-zh .sc_e_l,.dictNaver-Entry-zh .sc_e_l2{font-size:1.23em}.dictNaver-Entry-zh .sc_e_l{margin-bottom:3px}.dictNaver-Entry-zh .sc_e_l2{margin-bottom:6px}.dictNaver-Entry-zh .sc_e_t{margin-bottom:4px;letter-spacing:-1px}.dictNaver-Entry-zh .sc_e_a{margin-right:10px}.dictNaver-Entry-zh .sc_a{margin-right:11px}.dictNaver-Entry-zh .new_btjc{position:absolute;bottom:0;width:100%;z-index:1000}.dictNaver-Entry-zh .new_btjc .btjc_con{position:relative;width:300px;margin:0 auto 12px;background:#252525;border:1px solid #252525;border-radius:5px;z-index:9}.dictNaver-Entry-zh .new_btjc .btjc_con p{position:relative;min-height:55px;padding:14px 35px 27px 81px;margin-bottom:-12px;font-size:1.08em;line-height:1.13;color:#fff;text-shadow:0 0 2px #1a1a1a;background-size:auto 12px;background-size:auto 12px}.dictNaver-Entry-zh .new_btjc .btjc_con p .bg_img{position:absolute;top:16px;left:16px;width:55px;height:55px;background-size:55px 55px;background-size:55px 55px}.dictNaver-Entry-zh .new_btjc .btjc_con p .txt_blue{color:#f9595d}.dictNaver-Entry-zh .new_btjc .btjc_con p .bg_move{display:inline-block;width:17px;height:17px;font-size:0;vertical-align:4px;background-size:100px 75px;background-size:100px 75px}.dictNaver-Entry-zh .atcpa,.dictNaver-Entry-zh .ts .help_wrap,.dictNaver-Entry-zh .ts .lk{vertical-align:middle}.dictNaver-Entry-zh .new_btjc .btjc_con .btn_close{position:absolute;display:block;top:0;right:0;width:40px;height:40px;background-size:100px 75px;background-size:100px 75px}.dictNaver-Entry-zh .new_btjc .btjc_con.krcn p .txt_blue{color:#618dec}.dictNaver-Entry-zh .new_btjc .btjc_con.android{width:100%;margin:0;background:#3a4555;border-radius:0;border:none}.dictNaver-Entry-zh .new_btjc .btjc_con.android p{padding:14px 55px 14px 85px;margin:0;font-size:1em;font-weight:700;background:0 0;text-shadow:none}.dictNaver-Entry-zh .new_btjc .btjc_con.android p strong{color:#86bf33}.dictNaver-Entry-zh .new_btjc .btjc_con.android p .bg_fav{display:inline-block;width:14px;height:16px;margin:0 3px;background-size:100px 75px;background-size:100px 75px;vertical-align:middle}.dictNaver-Entry-zh .new_btjc .btjc_con.android p a{font-size:.92em;color:#fff;font-weight:400;margin:0 0 1px 5px;border-bottom:1px solid #fff}.dictNaver-Entry-zh .main_p3{padding:15px 10px;border-bottom:2px solid #ccc;font-size:1.14em}.dictNaver-Entry-zh .write_lst{display:block;overflow:hidden;height:32px;padding:0 13px;border-bottom:1px solid #dfdfdf;font-size:1.23em;line-height:2;white-space:nowrap;text-overflow:ellipsis}.dictNaver-Entry-zh .write_em{color:#e51313}.dictNaver-Entry-zh .ts h1{position:relative;height:32px;padding:6px 10px;border-bottom:1px solid #01af34;background-color:#03c73c;color:#fff}.dictNaver-Entry-zh .ts .kiclo{display:block;position:absolute}.dictNaver-Entry-zh .ts .kiclo span{display:block;height:100%;position:relative;visibility:visible;overflow:visible;width:auto;font-size:1.08em;line-height:.88;letter-spacing:1px;color:#fff;text-indent:1px;font-weight:400}.dictNaver-Entry-zh .ts .lk{display:inline-block;font-size:1.54em;color:#fff;line-height:2}.dictNaver-Entry-zh .atcpa,.dictNaver-Entry-zh .hs .itw{line-height:2.06}.dictNaver-Entry-zh .ts .help_wrap{position:relative;display:inline-block;margin-left:-4px;width:20px}.dictNaver-Entry-zh .ts .help_wrap .help{display:inline-block;width:20px;height:20px;background-position:-40px -120px}.dictNaver-Entry-zh .ts .kiclo{padding:8px 3px;top:8px;right:10px;width:auto;height:auto}.dictNaver-Entry-zh .ts .helpt,.dictNaver-Entry-zh .ts .helpt_on{position:absolute;padding-top:6px;z-index:101}.dictNaver-Entry-zh .ts .helpt{display:none;top:28px;left:5px}.dictNaver-Entry-zh ._backPanel,.dictNaver-Entry-zh ._backPanel2,.dictNaver-Entry-zh ._backPanel3,.dictNaver-Entry-zh .atcpa,.dictNaver-Entry-zh .hs .itw,.dictNaver-Entry-zh .kib .w_box,.dictNaver-Entry-zh .ts .helpt_on{display:block}.dictNaver-Entry-zh .ts .helpt_on{top:23px;left:-150px}.dictNaver-Entry-zh .ts .helpt_on .sbox{overflow:auto;width:219px;padding:10px 10px 10px 9px;border:1px solid #999;border-top:0;background:#fff;color:#222;font-size:1em;letter-spacing:-1px;text-align:justify;text-align:left}.dictNaver-Entry-zh .atcpa,.dictNaver-Entry-zh .kib,.dictNaver-Entry-zh .kib .canv{overflow:hidden}.dictNaver-Entry-zh .atcp,.dictNaver-Entry-zh .atcpw,.dictNaver-Entry-zh .hs{width:100%}.dictNaver-Entry-zh .atcp{position:relative;z-index:101}.dictNaver-Entry-zh .atcpw{position:absolute;left:0;font-size:1.15em;text-align:left}.dictNaver-Entry-zh .atcp .atcpw,.dictNaver-Entry-zh .hs{position:relative}.dictNaver-Entry-zh .atcpw3{border:0;background:#fff}.dictNaver-Entry-zh .atcpli{height:33px;border-bottom:1px solid #dfdfdf;font-family:"New Gulim","새굴림",Gulim,"굴림",sans-serif}.dictNaver-Entry-zh .a_no{border-bottom:0}.dictNaver-Entry-zh .atcpa{height:33px;padding:0 13px;font-size:1.08em;color:currentColor;letter-spacing:-1px;white-space:nowrap;text-overflow:ellipsis}.dictNaver-Entry-zh .atcpsp{margin-right:13px;font-size:1.23em;color:currentColor;letter-spacing:0}.dictNaver-Entry-zh .intru_hw,.dictNaver-Entry-zh .intru_p2,.dictNaver-Entry-zh .kib .butt a span,.dictNaver-Entry-zh .u_hs .u_hssbt{letter-spacing:-1px}.dictNaver-Entry-zh .atcpem{color:#e51313}.dictNaver-Entry-zh ._backPanel2{height:264px}.dictNaver-Entry-zh ._backPanel1{height:132px}.dictNaver-Entry-zh .hs{z-index:10;height:51px;background:#01b536}.dictNaver-Entry-zh .hs .crlt,.dictNaver-Entry-zh .hs .hssbt{position:absolute;border:0}.dictNaver-Entry-zh .hs .hs_search{padding:8px 118px 0 10px}.dictNaver-Entry-zh .hs .itw{height:33px;padding:1px 50px 1px 6px;background-color:#fff}.dictNaver-Entry-zh .hs.ki .hs_search{padding-right:48px}.dictNaver-Entry-zh .hs.ki .crlt{top:17px;right:56px}.dictNaver-Entry-zh .hs .crlt{visibility:visible;z-index:1;width:18px;height:18px;margin:0;padding:0;text-indent:-9999em;cursor:pointer}.dictNaver-Entry-zh .hs .hssbt{top:8px;right:10px;width:37px;height:35px;background-color:#02d23e;background-position:-40px 0}.dictNaver-Entry-zh .kib{position:relative;z-index:999;padding-right:109px;border-top:solid 1px #828282}.dictNaver-Entry-zh .kib .butt,.dictNaver-Entry-zh .kib .pre,.dictNaver-Entry-zh .kib .txt,.dictNaver-Entry-zh .pop,.dictNaver-Entry-zh .pop_close{position:absolute}.dictNaver-Entry-zh .jc2,.dictNaver-Entry-zh .pop,.dictNaver-Entry-zh .pop2,.dictNaver-Entry-zh .wt{z-index:99}.dictNaver-Entry-zh .kib .canv{height:211px;background:#efefef;box-shadow:inset 0 0 10px #cfcfd1;box-shadow:inset 0 0 10px #cfcfd1}.dictNaver-Entry-zh .kib .txt{left:6px;bottom:7px;width:186px;height:26px;background-size:200px 60px}.dictNaver-Entry-zh .kib .pre{top:0;right:55px;width:53px;border-left:1px solid #b5b5b5}.dictNaver-Entry-zh .kib .pre .ne,.dictNaver-Entry-zh .kib .pre a{display:block;height:52px;border-bottom:1px solid #d8d8d8;background:#f4f4f4;line-height:3.25;font-size:1.43em;font-weight:700;color:currentColor;text-align:center}.dictNaver-Entry-zh .kib .pre .page,.dictNaver-Entry-zh .kib .pre .page2{border:0;border-bottom:0;font-family:"New Gulim","새굴림",Gulim,"굴림",Helvetica,sans-serif;font-size:1.31em}.dictNaver-Entry-zh .kib .pre .page2{line-height:3.25;font-weight:400;text-align:center}.dictNaver-Entry-zh .kib .pre .page .ne{margin:0;padding:0 11px 0 9px;border:0;background-size:40px 225px;background-size:40px 225px;font-size:1.23em;line-height:3.25;font-weight:400}.dictNaver-Entry-zh .font_b,.dictNaver-Entry-zh .intru_h2,.dictNaver-Entry-zh .intru_p,.dictNaver-Entry-zh .intru_p2,.dictNaver-Entry-zh .top_tab5 li,.dictNaver-Entry-zh .words{font-weight:700}.dictNaver-Entry-zh .kib .w_box{width:53px;height:52px;border-bottom:1px solid #aeb0b6;background:#f4f4f4}.dictNaver-Entry-zh .kib .butt .del,.dictNaver-Entry-zh .kib .butt .del2,.dictNaver-Entry-zh .kib .butt .del3,.dictNaver-Entry-zh .kib .butt .del4,.dictNaver-Entry-zh .kib .butt a span{display:flex;height:52px;line-height:.88;color:#fff;text-align:center;vertical-align:middle}.dictNaver-Entry-zh .han_box,.dictNaver-Entry-zh ne{font-size:1.23em}.dictNaver-Entry-zh .kib .butt{top:0;right:0;width:55px;border-left:1px solid #04a132}.dictNaver-Entry-zh .kib .butt .del,.dictNaver-Entry-zh .kib .butt .del2,.dictNaver-Entry-zh .kib .butt .del3,.dictNaver-Entry-zh .kib .butt .del4{display:flex;justify-content:center;align-items:center;font-size:.96em;border:1px solid #05b337;border-width:0 0 1px;background:#05c53d}.dictNaver-Entry-zh .kib .butt a span{font-size:.92em;box-align:center;box-pack:center}.dictNaver-Entry-zh .kib .butt .del{background-size:26px 17px;background-size:26px 17px}.dictNaver-Entry-zh .kib .butt .del.on{background-color:#05c53d}.dictNaver-Entry-zh .d .hs .hssbt{right:6px}.dictNaver-Entry-zh .pop{top:399px;width:100%}.dictNaver-Entry-zh .pop_w{position:relative;padding:13px;border:1px solid #2e2e2e;background:#393939;line-height:normal;opacity:.95}.dictNaver-Entry-zh .pop_close{display:block;top:8px;right:8px;width:23px;height:22px}.dictNaver-Entry-zh .bti_down,.dictNaver-Entry-zh .bti_up,.dictNaver-Entry-zh .pop_down{position:absolute;height:6px}.dictNaver-Entry-zh .pop_down{display:block;left:40px;bottom:-6px;width:10px}.dictNaver-Entry-zh .pop_sel{display:inline-block;background-color:#cdff74;line-height:.88;color:#999}.dictNaver-Entry-zh .pop_cn,.dictNaver-Entry-zh .pop_p,.dictNaver-Entry-zh .pop_py,.dictNaver-Entry-zh .pop_word{display:block}.dictNaver-Entry-zh .pop_word{margin-bottom:7px;font-size:1.23em;line-height:1.13;color:#fff}.dictNaver-Entry-zh .pop_cn{float:left;font-size:1.38em}.dictNaver-Entry-zh .pop_p{margin-bottom:5px;color:#999}.dictNaver-Entry-zh .pop2{position:absolute;top:399px;width:100%}.dictNaver-Entry-zh .bti_down,.dictNaver-Entry-zh .bti_up{display:block;width:10px}.dictNaver-Entry-zh .u_hs,.dictNaver-Entry-zh .wt{width:100%}.dictNaver-Entry-zh .bti_up{top:-6px;left:84px}.dictNaver-Entry-zh .bti_down{left:85px;bottom:-6px}.dictNaver-Entry-zh .intru_hw{margin-top:18px;padding:0 10px}.dictNaver-Entry-zh .intru_h2{font-size:1.38em;line-height:1.5;color:currentColor}.dictNaver-Entry-zh .intru_p,.dictNaver-Entry-zh .intru_p2{margin-top:7px;color:#6d6d6d;text-align:left;font-size:1em;line-height:1.13}.dictNaver-Entry-zh .intru_lstw{margin:14px 10px 0;padding-bottom:18px;border-top:1px solid #ddd;text-align:center}.dictNaver-Entry-zh .intru_lst{margin-top:15px}.dictNaver-Entry-zh .intru_img{margin-top:18px}.dictNaver-Entry-zh .intru_p2{margin:0;padding:0 10px 82px;font-size:1em;color:#a7a7a7}.dictNaver-Entry-zh .u_hs{position:relative;height:39px;margin-bottom:-1px;background:#f3f739}.dictNaver-Entry-zh .u_hsft .u_hs,.dictNaver-Entry-zh .u_hsmb0{margin-bottom:0}.dictNaver-Entry-zh .u_hsw{padding:5px 38px 0 0}.dictNaver-Entry-zh .u_hs .u_itw{position:relative;height:24px;padding:4px 39px 0 6px;border:1px solid #717104;background:#fff;box-shadow:inset 0 2px 2px #e5e5e5;box-shadow:inset 0 2px 2px #e5e5e5}.dictNaver-Entry-zh .u_hs .u_it{width:100%;border:0;font-size:1.23em;border-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.dictNaver-Entry-zh .u_clrt,.dictNaver-Entry-zh .u_hs .u_hssbt{position:absolute;height:30px;border:0}.dictNaver-Entry-zh .u_hs .u_it.u_sd{color:#888}.dictNaver-Entry-zh .u_clrt{overflow:visible;top:-1px;right:3px;width:30px;margin:0;padding:0;background-position:5px -405px;text-indent:-999em;cursor:pointer}.dictNaver-Entry-zh .u_hs .u_hssbt{top:5px;background-color:#5dd668;font-size:.92em;line-height:1.88;color:#fff;border-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.dictNaver-Entry-zh .s .u_hs .u_hssbt{letter-spacing:-2px;text-indent:-2px}.dictNaver-Entry-zh .u_hs .u_hssbt_ss{right:0;width:39px;background-position:-42px -259px}.dictNaver-Entry-zh .u_hs .u_hssbt_us{right:5px;width:58px;background-position:0 -327px}.dictNaver-Entry-zh .u_hs_nous .u_hsw{padding-right:43px}.dictNaver-Entry-zh .u_hs_nous .u_hssbt_ss{right:5px}.dictNaver-Entry-zh .u_hsft{padding:8px 10px 6px;background:#fff}.dictNaver-Entry-zh .u_hsft .u_hs{background:#fff}.dictNaver-Entry-zh .u_hsft .u_itw{border-color:#cecece;box-shadow:none;box-shadow:none}.dictNaver-Entry-zh .u_hsft .u_hssbt{background-color:#f2f2f2;color:#777}.dictNaver-Entry-zh .u_hsft .u_hssbt_ss{background-position:-42px -293px}.dictNaver-Entry-zh .u_hsft .u_hssbt_us{background-position:0 -361px}.dictNaver-Entry-zh .bd_no{border-bottom:0}.dictNaver-Entry-zh .bd_t_no{border-top:0}.dictNaver-Entry-zh .word_py{font-size:1.23em;vertical-align:middle}.dictNaver-Entry-zh .dic_desc{clear:both;margin:0 13px 40px;padding:11px 14px 12px;color:#888;background:#eff0f1;line-height:1.25;text-align:center}.dictNaver-Entry-zh .btjc2,.dictNaver-Entry-zh .help{margin:0 auto}.dictNaver-Entry-zh .dic_desc .green{color:#01b536}.dictNaver-Entry-zh .btjc{width:100%}.dictNaver-Entry-zh .btjc2{width:299px}.dictNaver-Entry-zh .jc2{position:fixed;left:0;bottom:0;width:100%;height:86px;border-top:1px solid currentColor;border-bottom:1px solid currentColor;background:#3a4555}.dictNaver-Entry-zh .header,.dictNaver-Entry-zh .help,.dictNaver-Entry-zh .set_lang{position:relative}.dictNaver-Entry-zh .header{z-index:80}.dictNaver-Entry-zh .help{width:50px}.dictNaver-Entry-zh .set_lang{clear:both;overflow:hidden;height:25px;padding:17px 20px}.dictNaver-Entry-zh .btn_add,.dictNaver-Entry-zh .pop_txt,.dictNaver-Entry-zh .pop_txt .arr_top,.dictNaver-Entry-zh .u_ftst{position:absolute}.dictNaver-Entry-zh .set_lang label{padding-right:12px;font-size:1em;color:currentColor}.dictNaver-Entry-zh .set_lang .selec_wrap{display:inline-block}.dictNaver-Entry-zh .set_lang select{height:25px;padding:0 24px 0 6px;margin:0;border:1px solid #dedede;border-radius:0;border-radius:0;font-size:1.08em;color:currentColor;line-height:1.44;background-size:18px 50px;background-size:18px 50px;-webkit-appearance:none;appearance:none;-moz-appearance:none}.dictNaver-Entry-zh .u_ftst{right:20px;top:19px;padding:3px 3px 3px 20px;color:#333;background-size:15px 15px;background-size:15px 15px;font-family:Helvetica,sans-serif;font-size:1em;line-height:1.13}.dictNaver-Entry-zh .word_otr{padding:15px 10px 3px;font-size:1em;border-top:1px solid #ccc}.dictNaver-Entry-zh .word_otr_h{display:block;margin-bottom:7px;font-size:1em;line-height:1.5}.dictNaver-Entry-zh .word_otr_a{color:var(--color-brand);font-size:1em}.dictNaver-Entry-zh .word_w3 .word_otr_a{font-size:1em}.dictNaver-Entry-zh .word_otr_dv{margin:0 6px;color:#ccc}.dictNaver-Entry-zh .word_otr_lst:after{display:block;clear:both;content:""}.dictNaver-Entry-zh .word_otr_lst li{float:left;height:22px;line-height:1}.dictNaver-Entry-zh .word_otr_lst .bl,.dictNaver-Entry-zh .word_otr_lst.on span.bl{display:none}.dictNaver-Entry-zh .btn_add,.dictNaver-Entry-zh .btn_open,.dictNaver-Entry-zh .pop_txt,.dictNaver-Entry-zh .word_otr_lst.on .bl,.dictNaver-Entry-zh .word_otr_lst.on span.bl{display:inline-block}.dictNaver-Entry-zh .btn_open{height:21px;width:17px;margin-left:8px;vertical-align:-3px;background-size:38px 17px;background-size:38px 17px}.dictNaver-Entry-zh .on .btn_open{background-position:-21px 0}.dictNaver-Entry-zh .word_otr.word_bd5{padding:18px 10px 3px}.dictNaver-Entry-zh .btn_add{top:15px;right:10px;background-size:100px 80px;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:10;text-indent:-999em;border-radius:0}.dictNaver-Entry-zh .pop_txt{top:35px;right:0;padding:15px 16px 15px 17px;border:1px solid #a5a8b0;background:#fff;font-size:1.08em;color:#494b56;white-space:nowrap;border-radius:1px;z-index:20}.dictNaver-Entry-zh .pop_txt .arr_top{display:block;top:-7px;right:10px;width:12px;height:8px;background-size:100px 80px}.dictNaver-Entry-zh .top_tab5_v2 li,.dictNaver-Entry-zh .word_select{position:relative}.dictNaver-Entry-zh .word_select_wrap{display:table-cell;width:80px;text-align:right;vertical-align:middle}.dictNaver-Entry-zh .word_select{display:inline-block}.dictNaver-Entry-zh .word_select .word_btn{position:relative;top:0;display:inline-block;height:auto;padding:0;line-height:1.5;border:1px solid #bfc1c7;border-top:1px solid #cccdd2;border-bottom:1px solid #afb1bb;border-radius:2px;background-size:1px 34px;background-size:1px 34px}.dictNaver-Entry-zh .word_select .word_btn span.tit{display:inline-block;padding:0 6px 0 17px;font-size:.85em;font-weight:700;color:#4d4f53;text-shadow:0 -1px 0 #fff;background-size:15px 32px;background-size:15px 32px;vertical-align:top;font-family:"나눔고딕",NanumGothic,"굴림",Gulim,Helvetica,sans-serif}.dictNaver-Entry-zh .words,.dictNaver-Entry-zh .words a{color:var(--color-brand);font-family:Helvetica,sans-serif;font-size:1.23em}.dictNaver-Entry-zh .word_select .btn_add{top:0;right:0;width:100%;height:26px;background:0 0}.dictNaver-Entry-zh .words{overflow:hidden;margin:17px 5px 0 0}.dictNaver-Entry-zh .synonym_wrap{padding:13px 0 2px}.dictNaver-Entry-zh .antonym,.dictNaver-Entry-zh .synonym{margin-top:7px}.dictNaver-Entry-zh .antonym .t,.dictNaver-Entry-zh .synonym .t{font-size:1.23em;color:#2caee5}.dictNaver-Entry-zh .antonym .mean,.dictNaver-Entry-zh .synonym .mean{margin-left:11px;font-size:1.08em;color:var(--color-font-grey)}.dictNaver-Entry-zh .antonym .t{color:#dd6356}.dictNaver-Entry-zh .top_tab5 li a{display:block}.dictNaver-Entry-zh .top_tab5 .un_bg{background:0 0}.dictNaver-Entry-zh .top_tab5_v2{border-bottom:1px solid #c8c8c8!important}.dictNaver-Entry-zh .top_tab5_v2 li.on a{color:#4b8ffa!important}.dictNaver-Entry-zh .top_tab5_v2 .on:before{content:"";display:block;position:absolute;top:auto;left:50%;bottom:-1px;width:15px;height:9px;margin-left:-7px;text-indent:-999px;background-size:75px 550px;background-size:75px 550px}.dictNaver-Entry-zh .top_tab5 li{display:table-cell;height:16px;height:33px;line-height:2.06;text-align:center;background-size:2px 16px}.dictNaver-Entry-zh .dsc_p,.dictNaver-Entry-zh .p_num{line-height:1.25}.dictNaver-Entry-zh .top_tab5{display:table;width:100%;height:33px;border-bottom:1px solid #80878e;background:#fcfcfc;background:gradient(linear,0 0,0 100%,from(#fcfcfc),to(#f7f7f7))}.dictNaver-Entry-zh .top_tab5:after{display:block;clear:both;content:""}.dictNaver-Entry-zh .top_tab5 li{width:25%}.dictNaver-Entry-zh .top_tab5 li:nth-child(1){width:22%}.dictNaver-Entry-zh .top_tab5 li:nth-child(2){width:24%}.dictNaver-Entry-zh .top_tab5 li:nth-child(3),.dictNaver-Entry-zh .top_tab5 li:nth-child(4){width:27%}.dictNaver-Entry-zh .intro_box,.dictNaver-Entry-zh .intro_sd{width:100%;overflow:hidden}.dictNaver-Entry-zh .intro_area{padding:0 11px}.dictNaver-Entry-zh .intro_sd{position:relative}.dictNaver-Entry-zh .intro_flk:after{content:"";clear:both;display:block}.dictNaver-Entry-zh .intro_box{float:left;padding:17px 0 0}.dictNaver-Entry-zh .intro_box img{display:block;margin:0 auto}.dictNaver-Entry-zh .dsc_p{overflow:hidden;margin-bottom:10px;font-size:1.15em;color:var(--color-font-grey)}.dictNaver-Entry-zh .p_num{float:left;margin-right:7px;font-size:1.38em;color:#2f7bd6}.dictNaver-Entry-zh .font_b{display:block}.dictNaver-Entry-zh .pop_wrap{z-index:100;position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.dictNaver-Entry-zh .pop_layer{position:relative;top:105px;width:275px;height:265px;margin:0 auto}.dictNaver-Entry-zh .pop_layer .chk{position:absolute;z-index:10;bottom:13px;width:100%;text-align:center;font-size:.85em;color:#79756e}.dictNaver-Entry-zh .con_clt,.dictNaver-Entry-zh .con_clt .ask,.dictNaver-Entry-zh .con_clt .txt_box1{position:relative}.dictNaver-Entry-zh .pop_layer .chk input{width:13px;height:13px;border:1px solid #777;vertical-align:middle}.dictNaver-Entry-zh .con_clt,.dictNaver-Entry-zh .con_clt .txt_box1{vertical-align:top;display:inline-block}.dictNaver-Entry-zh .con_clt .ask,.dictNaver-Entry-zh .con_clt .ask .arr_top,.dictNaver-Entry-zh .con_clt .ask .pop_clt a{background-size:80px 80px;background-size:80px 80px}.dictNaver-Entry-zh .con_clt{margin-left:2px;line-height:0}.dictNaver-Entry-zh .con_clt .txt_box1{width:auto;height:auto;padding:0 5px;border:1px solid #d8d8d8;background:#fff;white-space:nowrap}.dictNaver-Entry-zh .con_clt .txt_box1 .hc{visibility:visible;overflow:visible;position:relative;left:0;width:auto;height:auto;font-size:1em;color:#6c6c6c;line-height:1.19}.dictNaver-Entry-zh .con_clt .ask{display:inline-block;width:20px;height:20px;margin-left:2px;background-position:-55px 0;vertical-align:middle}.dictNaver-Entry-zh .con_clt .ask a{display:block;width:20px;height:20px}.dictNaver-Entry-zh .con_clt .ask .pop_clt{display:inline-block;position:absolute;left:-49px;padding:9px 20px 3px 12px;width:180px;border:1px solid #a5a8b0;background:#fff;font-size:1em;color:#777;border-radius:1px;z-index:20;top:29px}.dictNaver-Entry-zh .con_clt .ask .pop_clt p{padding-bottom:7px;color:#777;font-size:1em;line-height:1.19}.dictNaver-Entry-zh .con_clt .ask .pop_clt a{display:block;position:absolute;top:4px;right:4px;background-position:100% -45px}.dictNaver-Entry-zh .con_clt .ask .arr_top{display:block;position:absolute;top:23px;left:4px;width:12px;height:8px;background-position:-45px -45px;z-index:20}.dictNaver-Entry-zh .con_clt .ask .arr_top.off,.dictNaver-Entry-zh .con_clt .ask .pop_clt.off{display:none!important}.dictNaver-Entry-zh .h_word .con_clt{display:block;font-weight:400}.dictNaver-Entry-zh .h_word .line_feed_ask{position:relative}.dictNaver-Entry-zh .h_word .line_feed_ask .pos_r{position:absolute;top:0;right:0}.dictNaver-Entry-zh .line_feed_ask{margin-top:10px}.dictNaver-Entry-zh .line_feed_ask .layer_btn_ask{display:inline-block;margin-right:3px}.dictNaver-Entry-zh .clt_yel .txt_box1{border:none;background:0 0;padding:0 0 0 5px;font-size:1em;line-height:1.5;color:#333}.dictNaver-Entry-zh .clt_yel .txt_box1 .hc{line-height:1.5}.dictNaver-Entry-zh .clt_yel .ask .arr_top{top:23px}.dictNaver-Entry-zh .clt_yel .ask .pop_clt{top:29px}.dictNaver-Entry-zh .clt_yel .ask{width:23px;height:25px;background-position:-52px 1px}.dictNaver-Entry-zh .clt_yel .ask a{width:25px;height:25px}.dictNaver-Entry-zh .layer_btn_ask{margin-left:1px}.dictNaver-Entry-zh .layer_btn_ask .ask{margin-left:0}.dictNaver-Entry-zh .layer_btn_ask .ask,.dictNaver-Entry-zh .layer_btn_ask .ask>a{width:auto}.dictNaver-Entry-zh .clt_yel .ask .arr_top,.dictNaver-Entry-zh .clt_yel .ask .pop_clt a,.dictNaver-Entry-zh .layer_btn_ask.pos_b .ask .arr_top,.dictNaver-Entry-zh .layer_btn_ask.pos_b .ask .pop_clt a{background-repeat:no-repeat;background-size:15px 26px}.dictNaver-Entry-zh .clt_yel .ask .arr_top,.dictNaver-Entry-zh .layer_btn_ask .ask .arr_top{overflow:hidden;left:50%;margin-left:-6px}.dictNaver-Entry-zh .clt_yel .ask .pop_clt,.dictNaver-Entry-zh .layer_btn_ask .ask .pop_clt{padding:9px 27px 9px 13px}.dictNaver-Entry-zh .clt_yel .ask .pop_clt p,.dictNaver-Entry-zh .layer_btn_ask .ask .pop_clt p{padding-bottom:0}.dictNaver-Entry-zh .clt_yel .ask .pop_clt a,.dictNaver-Entry-zh .layer_btn_ask.pos_b .ask .pop_clt a{display:block;position:absolute;top:8px;right:8px;width:15px;height:15px;background-position:0 -11px}.dictNaver-Entry-zh .clt_yel .ask .arr_top,.dictNaver-Entry-zh .layer_btn_ask.pos_b .ask .arr_top{width:11px;height:8px;background-position:0 0}.dictNaver-Entry-zh .clt_yel .ask .pop_clt,.dictNaver-Entry-zh .layer_btn_ask.pos_b .ask .pop_clt{width:130px;border:1px solid #ddd5aa;padding:13px 24px 13px 13px;background-color:#fff8cf;font-size:1.15em;line-height:1.13;color:#49453c}.dictNaver-Entry-zh .clt_yel .ask .pop_clt p,.dictNaver-Entry-zh .layer_btn_ask.pos_b .ask .pop_clt p{padding-bottom:0;font-size:1.15em;line-height:1.13;color:#49453c;letter-spacing:-1px}.dictNaver-Entry-zh .websource{display:inline-block;padding-left:4px;font-family:"돋움",dotum,Helvetica,sans-serif;font-size:.92em;color:#999}.dictNaver-Entry-zh .share_area{padding:10px 0;border-top:1px solid #ccc;text-align:center}.dictNaver-Entry-zh #naver_dic_audio_controller{display:block}.dictNaver-Entry-zh .mainw .help_on{top:32px;left:34px}.dictNaver-Entry-zh .mainw .help_on p{position:relative;padding-left:10px}.dictNaver-Entry-zh .help_on{display:block;position:absolute;top:28px;left:5px;z-index:101;padding-top:6px}.dictNaver-Entry-zh .ic_ln,.dictNaver-Entry-zh .shadow_view{left:0;position:absolute}.dictNaver-Entry-zh .btn_txt_style1.info_userent .ico{background-size:20px 16px}.dictNaver-Entry-zh .btn_txt_style1.info_userent{display:inline-block;position:absolute;top:17px;right:10px;width:auto;height:27px;border:1px solid #e8e9e9;background:#f6f6f6;vertical-align:top}.dictNaver-Entry-zh .btn_txt_style1.info_userent .hc{display:inline-block;position:relative;overflow:visible;width:auto;height:auto;min-width:52px;padding:6px 10px 0 0;font-size:1.08em;line-height:1.13;letter-spacing:-1px;color:#222;vertical-align:top}.dictNaver-Entry-zh .btn_txt_style1.info_userent+.srch_box{margin-top:29px}.dictNaver-Entry-zh .btn_txt_style1.info_userent .ico{display:inline-block;width:20px;height:16px;margin:6px 3px 0 10px;vertical-align:top}.dictNaver-Entry-zh .userentry_word .section{padding:3px 0 0}.dictNaver-Entry-zh .userentry_word .spot_area{position:relative;padding:18px 10px 20px;border-bottom:1px solid #d9d9d9;background-color:#f6f6f6}.dictNaver-Entry-zh .userentry_word .spot_area h3{display:block;top:0;margin-bottom:10px;font-size:1.5em;font-weight:700;line-height:2.88;word-break:break-all;font-family:"나눔고딕",NanumGothic,"맑은 고딕","Malgun Gothic","돋움",Dotum,"굴림",Gulim,Helvetica,AppleGothic,sans-serif}.dictNaver-Entry-zh .userentry_word .spot_area .py{margin-bottom:8px;padding-left:2px;font-size:1.29em;color:var(--color-font-grey);word-break:break-all}.dictNaver-Entry-zh .userentry_word .note{position:relative;margin-top:10px;padding:0 10px 0 32px;font-size:1.08em;line-height:1.25;color:#999;word-break:break-all;word-wrap:break-word;text-align:left}.dictNaver-Entry-zh .userentry_word .note .ico{position:absolute;top:2px;left:12px;display:inline-block;width:17px;height:17px;margin-right:3px;background-size:80px 80px;background-size:80px 80px}.dictNaver-Entry-zh .userentry_word .btn_area{position:absolute;top:10px;right:10px;width:auto;text-align:right}.dictNaver-Entry-zh .userentry_word .entry_opendic li{padding:15px 12px 20px;border-top:1px solid #e2e2e2;word-break:break-all;word-wrap:break-all}.dictNaver-Entry-zh .userentry_word .entry_opendic li:first-child{border-top:none}.dictNaver-Entry-zh .userentry_word span.num{float:left;position:relative;top:3px;width:23px;line-height:1.25em;font-size:1.14em;vertical-align:top}.dictNaver-Entry-zh .userentry_word .mean_wrap{clear:both;margin-top:10px}.dictNaver-Entry-zh .userentry_word .mean{display:block;overflow:hidden;font-size:1.14em;line-height:1.45em;letter-spacing:-1px;word-break:break-all}.dictNaver-Entry-zh .userentry_word .exam{padding:2px 0 0 23px;word-break:break-word}.dictNaver-Entry-zh .userentry_word .exam .tel{display:block;margin:8px 0 0;font-size:1.14em;line-height:1.31;overflow:hidden;padding:5px 0 11px;font-weight:700;color:var(--color-brand);font-family:Helvetica,sans-serif}.dictNaver-Entry-zh .userentry_word .exam .tel2{display:block;margin:-7px 0 0;font-size:1em;line-height:1.35em;color:var(--color-font-grey);letter-spacing:-1px}.dictNaver-Entry-zh .userentry_word .user_info{position:relative;padding-top:15px;font-size:1em;color:#777;line-height:1}.dictNaver-Entry-zh .userentry_word .user_info .bar{padding:0 6px;color:#d2d2d2}.dictNaver-Entry-zh .userentry_word .user_info .date{font-size:1.08em;color:#909090}.dictNaver-Entry-zh .userentry_word .vote{padding-top:10px}.dictNaver-Entry-zh .userentry_word .vote .dislike,.dictNaver-Entry-zh .userentry_word .vote .like{border:1px solid #b6b6b6;border-radius:3px;padding:4px 7px 3px;font-weight:700;font-size:.92em}.dictNaver-Entry-zh .userentry_word .vote .like{margin-right:5px;color:#3882cf}.dictNaver-Entry-zh .userentry_word .vote .dislike{color:#777}.dictNaver-Entry-zh .userentry_word .vote .dislike a,.dictNaver-Entry-zh .userentry_word .vote .like a{display:inline-block;overflow:hidden;width:12px;height:12px;margin-right:5px;text-indent:9999px}.dictNaver-Entry-zh .userentry_word .vote .like a{background-position:0 0}.dictNaver-Entry-zh .userentry_word .vote .dislike a{position:relative;top:2px;background-position:-23px 0}.dictNaver-Entry-zh .userentry_word .section2 .nav_sec{margin-top:-10px}.dictNaver-Entry-zh .userentry_word .section.ft_mod .exam,.dictNaver-Entry-zh .userentry_word .section.ft_mod .mean,.dictNaver-Entry-zh .userentry_word .section.ft_mod span.num{font-size:1.54em;line-height:1.56}.dictNaver-Entry-zh .usen_another{padding:10px 10px 5px 12px;margin-bottom:40px;color:currentColor;font-size:1.08em;overflow:hidden}.dictNaver-Entry-zh .usen_another .btn_regist{position:relative;float:none;display:inline-block;margin-top:10px;height:27px;padding:0 20px 0 12px;border:1px solid #3a3f4c;border-radius:5px;font-size:1em;line-height:1.69;color:#2a303b;background:#fff;background:gradient(linear,0 0,0 100%,from(#fdfdfd),to(#f2f2f2))}.dictNaver-Entry-zh .usen_another .btn_regist .ico{position:absolute;top:50%;right:8px;margin-top:-5px;width:6px;height:10px;background-position:-45px -31px}.dictNaver-Entry-zh .usen_another .btn_regist.right{margin-left:4px}.dictNaver-Entry-zh .usen_another .usen_all{position:relative;float:right;margin:15px 0 0;text-align:right;color:#0068b1}.dictNaver-Entry-zh .usen_another .usen_all .ab{position:relative;display:inline-block;margin-right:5px;font-size:1em;vertical-align:middle}.dictNaver-Entry-zh .userentry_section{padding:20px 10px 10px;border-top:2px solid #cacaca}.dictNaver-Entry-zh .userentry_section .txt_box1{display:inline;border:none;background:0 0;padding:0;font-size:1.38em;font-weight:700;line-height:1;color:#333;vertical-align:middle;font-family:"나눔고딕",NanumGothic,"굴림",Gulim,Helvetica,sans-serif}.dictNaver-Entry-zh .ico_new,.dictNaver-Entry-zh .userentry_section .more_ico{display:inline-block;vertical-align:top}.dictNaver-Entry-zh .userentry_section p.usen_word{margin-top:18px;font-size:1.08em;color:currentColor}.dictNaver-Entry-zh .userentry_section p.usen_word a{color:var(--color-brand);text-decoration:underline}.dictNaver-Entry-zh .userentry_section .more_whole{position:relative;height:17px;margin:6px 0 0;font-size:1.08em;letter-spacing:0;color:#0068b1;text-align:right}.dictNaver-Entry-zh .userentry_section .more_whole_lk{display:inline-block;font-size:1.08em;font-weight:700;color:#1172b6}.dictNaver-Entry-zh .userentry_section .more_ico{width:6px;height:10px;margin:2px 0 0 4px;background-position:-44px 0}.dictNaver-Entry-zh .openword_none{margin:10px 0}.dictNaver-Entry-zh .openword_none li{color:var(--color-font-grey);font-size:1.08em;line-height:1.81}.dictNaver-Entry-zh .openword_none li:first-child{padding:2px 0 6px}.dictNaver-Entry-zh .openword_none li .btn_regist{display:inline-block;position:relative;height:27px;padding:0 20px 0 12px;margin-left:9px;border:1px solid #3a3f4c;border-radius:5px;font-size:1em;line-height:1.69;color:#2a303b;background:#fff;background:gradient(linear,0 0,0 100%,from(#fdfdfd),to(#f2f2f2))}.dictNaver-Entry-zh .openword_none li .btn_regist .ico{position:absolute;top:50%;right:8px;width:6px;height:10px;margin-top:-5px;background-position:-45px -31px}.dictNaver-Entry-zh .usen_all{display:inline-block}.dictNaver-Entry-zh .usen_all span{color:#0068b1}.dictNaver-Entry-zh .open_mean{margin-top:18px;font-size:1.08em;color:currentColor;font-weight:700}.dictNaver-Entry-zh .open_mean .detail{position:relative;display:inline-block;padding-right:8px;margin-left:10px;color:#606060;font-size:1em;font-weight:400}.dictNaver-Entry-zh .open_mean .detail .arrow{position:absolute;top:6px;right:0;width:4px;height:6px;background-position:0 -39px}.dictNaver-Entry-zh .userentry_section .user_info{font-size:.92em;margin:8px 0 7px;color:#929191}.dictNaver-Entry-zh .userentry_section .user_info .bar{margin:0 10px}.dictNaver-Entry-zh .bann_notice{position:relative;height:41px;line-height:2.56;padding:0 34px 0 10px;background-color:#68696b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}.dictNaver-Entry-zh .bann_notice .lst{font-size:1em;color:#fff}.dictNaver-Entry-zh .bann_notice .close{position:absolute;right:10px;top:14px;width:14px;height:14px;background-position:-20px 0;font-size:0;line-height:0;color:transparent}.dictNaver-Entry-zh .ico_new{overflow:hidden;width:13px;height:13px;background-position:-80px 0;text-indent:100%;white-space:nowrap}.dictNaver-Entry-zh .main .word_lst_a,.dictNaver-Entry-zh .word_level{vertical-align:middle}.dictNaver-Entry-zh .common_tab_wrap{margin:10px 7px 11px;background-color:#fff;box-shadow:0 0 1px 0 #e4e4e4;box-shadow:0 0 1px 0 #e4e4e4}.dictNaver-Entry-zh .common_tab_wrap .lst{overflow:hidden;margin-top:-1px}.dictNaver-Entry-zh .common_tab_wrap .lst li{float:left;width:50%;height:39px;line-height:2.44;border-top:1px solid #f3f3f3}.dictNaver-Entry-zh .common_tab_wrap .lst li:nth-child(even){float:none;overflow:hidden;width:auto;border-left:1px solid #f3f3f3}.dictNaver-Entry-zh .common_tab_wrap .lst li:nth-child(1),.dictNaver-Entry-zh .common_tab_wrap .lst li:nth-child(2){border-top:none}.dictNaver-Entry-zh .common_tab_wrap .lst li a{padding:0 14px;font-size:1.15em;color:#828282}.dictNaver-Entry-zh .common_tab_wrap .lst .ico_new{margin:13px 0 0 -11px}.dictNaver-Entry-zh .section_card{background-color:#fff;margin:0 7px 11px;box-shadow:0 0 1px 0 #e4e4e4;box-shadow:0 0 1px 0 #e4e4e4}.dictNaver-Entry-zh .section_card .home_tit{height:40px;line-height:2.5;padding:0 14px;border-bottom:1px solid #e8e8e9}.dictNaver-Entry-zh .section_card .home_tit h2{font-size:1.15em;color:currentColor;font-weight:400}.dictNaver-Entry-zh .word_level{font-size:1.15em;margin:0 0 0 5px;color:var(--color-font-grey)}.dictNaver-Entry-zh .word_mean{margin-top:10px;font-size:1.08em;color:#444;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dictNaver-Entry-zh .main .word_lstw{padding:0}.dictNaver-Entry-zh .main .word_lst{height:44px;padding:13px 14px;margin:0;border-top:1px dashed #ececec;font-size:0}.dictNaver-Entry-zh .main .word_lst:first-child{border-top:none}.dictNaver-Entry-zh .main .word_w2{font-size:1.2em;color:var(--color-brand)}.dictNaver-Entry-zh .main .word_level{font-size:1.2em;margin:0 0 0 5px;color:var(--color-font-grey);vertical-align:top}.dictNaver-Entry-zh .main .word_mean{margin-top:10px;font-size:1.08em;color:#444;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dictNaver-Entry-zh .source span,.dictNaver-Entry-zh .source span a{color:#b8b8b8}.dictNaver-Entry-zh .source{display:block;margin:0 0 21px;text-align:right}.dictNaver-Entry-zh .source span{font-size:.92em;padding:0 5px 0 0}.dictNaver-Entry-zh .word .banner_wrap{margin:0 0 4px}.dictNaver-Entry-zh .word .banner_wrap .banner_cnkrdic{display:block;height:43px;line-height:2.69;border:1px solid #e2e2e2;background:#fff;font-size:1.08em;color:var(--color-font-grey);text-align:center}.dictNaver-Entry-zh .word .banner_wrap .banner_cnkrdic:after{display:inline-block;width:20px;height:20px;margin:11px 0 0 7px;background-position:0 -40px;vertical-align:top;content:""}.dictNaver-Entry-zh .ico_krword{position:relative;top:-1px;display:inline-block;width:21px;height:21px;margin:0 0 0 5px;background-position:-55px -20px;vertical-align:top}.dictNaver-Entry-zh .banner_area a{display:block;background-color:#fff}.dictNaver-Entry-zh .banner_area .banner_inner{display:table;max-width:320px;min-height:110px;margin:0 auto}.dictNaver-Entry-zh .banner_area .img,.dictNaver-Entry-zh .banner_area .txt_area{display:table-cell;vertical-align:middle}.dictNaver-Entry-zh .banner_area .txt_area{width:auto;padding:5px 10px 0}.dictNaver-Entry-zh .banner_area .img{width:83px;height:110px;padding-right:10px;background-size:auto 110px;background-size:auto 110px}.dictNaver-Entry-zh .banner_area .tit{font-size:1.31em;color:#1eb501}.dictNaver-Entry-zh .banner_area .txt{display:block;margin-top:4px;font-size:1.08em;line-height:1.25;color:var(--color-font-grey)}.dictNaver-Entry-zh .banner_area.quizcn a{background-color:#85bbd3}.dictNaver-Entry-zh .banner_area.quizcn .img{width:107px}.dictNaver-Entry-zh .banner_area.quizcn .tit{font-size:1.54em;line-height:1.38;color:#fff}.dictNaver-Entry-zh .banner_area.quizcn .txt_area{padding:28px 10px 0;vertical-align:top}.dictNaver-Entry-zh .banner_area.quizcn .btn{overflow:hidden;display:inline-block;margin-top:8px;height:24px;padding:0 23px 0 6px;background-size:19px 24px;background-color:#7aacc2;line-height:1.56;color:#ddedf6;vertical-align:top}.dictNaver-Entry-zh .krcndic_down{position:fixed;bottom:0;left:0;right:0;width:100%;height:70px;background-color:rgba(33,31,22,.5);z-index:10;text-align:center}.dictNaver-Entry-zh .krcndic_down_link{display:inline-block;position:relative;z-index:12;width:100%;height:70px}.dictNaver-Entry-zh .krcndic_down_link .txt{display:inline-block;margin-top:15px;line-height:2.5;color:#fff48e}.dictNaver-Entry-zh .krcndic_down_link .txt[lang=en]{font-size:1.38em}.dictNaver-Entry-zh .krcndic_down_link .txt[lang=zh]{font-size:1.23em}.dictNaver-Entry-zh .krcndic_down .ico_dicapp{display:inline-block;width:56px;height:48px;margin:13px 6px 0 0;background-size:56px 48px;vertical-align:top}.dictNaver-Entry-zh .krcndic_down_close{position:absolute;top:0;right:0;z-index:13;display:block;overflow:hidden;width:53px;height:70px}.dictNaver-Entry-zh .krcndic_down .bu_x{position:absolute;top:0;right:0;bottom:0;left:0;width:18px;height:18px;margin:auto;font-size:0;line-height:0;color:transparent;background-size:18px 18px}.dictNaver-Entry-zh .ico_kakaotalk,.dictNaver-Entry-zh .ico_naverblog,.dictNaver-Entry-zh .ico_share,.dictNaver-Entry-zh .ico_sinaweibo,.dictNaver-Entry-zh .ico_tencentweibo,.dictNaver-Entry-zh .ico_twiter,.dictNaver-Entry-zh .ico_wechat{display:inline-block;overflow:hidden;width:34px;height:34px;background-size:275px 34px;text-indent:100%;vertical-align:top;white-space:nowrap}.dictNaver-Entry-zh .ico_naverblog{background-position:0 0}.dictNaver-Entry-zh .ico_wechat{background-position:-40px 0}.dictNaver-Entry-zh .ico_sinaweibo{background-position:-80px 0}.dictNaver-Entry-zh .ico_tencentweibo{background-position:-120px 0}.dictNaver-Entry-zh .ico_kakaotalk{background-position:-160px 0}.dictNaver-Entry-zh .ico_twiter{background-position:-200px 0}.dictNaver-Entry-zh .ico_share{background-position:-240px 0}.dictNaver-Entry-zh .share_service{padding:14px 0 4px;text-align:center;font-size:0}.dictNaver-Entry-zh .share_service_list{display:inline-block}.dictNaver-Entry-zh .share_service_list li:first-child{margin-left:0}.dictNaver-Entry-zh .share_service_list li{display:inline-block;margin-left:5px}.dictNaver-Entry-zh .main_offer{padding:18px 15px 14px}.dictNaver-Entry-zh .a .main_offer{padding:12px 10px 20px}.dictNaver-Entry-zh .main_h4{font-size:.77em;color:#626161}.dictNaver-Entry-zh .main_p2,.dictNaver-Entry-zh .main_p2 a{color:#999}.dictNaver-Entry-zh .main_p2{font-size:.77em;line-height:.94;letter-spacing:0;word-break:keep-all;word-wrap:break-word}.dictNaver-Entry-zh .labg{display:inline;background-color:#cdff74;color:currentColor}.dictNaver-Entry-zh .quiz_cont{position:relative;height:156px;border:10px solid #eff0f1;border-width:10px 0;background-size:40px 40px;background-size:40px 40px;margin:17px 0 0}.dictNaver-Entry-zh .quiz_cont .word_view{overflow:hidden;height:130px;visibility:hidden;position:relative}.dictNaver-Entry-zh .quiz_cont .swipe-wrap{overflow:hidden;position:relative}.dictNaver-Entry-zh .quiz_cont .swipe-wrap>div{float:left;width:100%;position:relative}.dictNaver-Entry-zh .quiz_cont .word_view .word_area{height:130px;text-align:center}.dictNaver-Entry-zh .quiz_cont .word_view .word_area .tit_confuse{display:block;padding-top:18px;font-size:1em;font-weight:400;color:#4e637e}.dictNaver-Entry-zh .quiz_cont .word_view .word_area .tit_confuse .count{font-family:HelveticaNeue,Helvetica,sans-serif}.dictNaver-Entry-zh .exfilter_guide,.dictNaver-Entry-zh .exfilterset,.dictNaver-Entry-zh .layer_shortcut,.dictNaver-Entry-zh .shortcut{font-family:Helvetica,arial,AppleSDGothicNeo,sans-serif}.dictNaver-Entry-zh .quiz_cont .word_view .word_area .tit_confuse .count strong{font-weight:400}.dictNaver-Entry-zh .quiz_cont .word_view .word_area .dsc_quiz{margin-bottom:13px;padding-top:23px;font-size:1.23em;line-height:1.31;color:#6b91a4}.dictNaver-Entry-zh .quiz_cont .word_view .word_area .versus{min-height:23px;padding:11px 15px;font-size:1.46em;line-height:1;font-weight:700;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dictNaver-Entry-zh .quiz_cont .word_view .word_area .versus .txt_en{font-size:1.62em}.dictNaver-Entry-zh .quiz_cont .word_view .word_area .versus .vs{font-weight:400;font-size:1.08em;color:#effbfe}.dictNaver-Entry-zh .quiz_cont .word_view .btn_quiz{display:inline-block;min-width:93px;height:28px;border:1px solid #e1ebf1;border-radius:30px;background:rgba(255,255,255,.1);font-size:1em;line-height:1.75;color:#fff}.dictNaver-Entry-zh .quiz_cont .paging{position:absolute;left:0;bottom:0;right:0;height:16px;padding-top:10px;background:rgba(0,0,0,.05);text-align:center}.dictNaver-Entry-zh .quiz_cont .paging a{display:inline-block;width:6px;height:6px;margin-left:1px;border-radius:6px;background:#ccd1d9;font-size:0;line-height:0;color:transparent;vertical-align:top}.dictNaver-Entry-zh .quiz_cont .paging a:first-child{margin-left:0}.dictNaver-Entry-zh .quiz_cont .paging a.on{background:#4f647f}.dictNaver-Entry-zh .quiz_cont~.ly_media{margin-top:0;border-top:0}.dictNaver-Entry-zh .layer_shortcut_arrow,.dictNaver-Entry-zh .layer_shortcut_close .ico_x,.dictNaver-Entry-zh .layer_shortcut_row .ico_arrowup,.dictNaver-Entry-zh .shortcut_ico2{display:inline-block;overflow:hidden;font-size:0;text-indent:100%;vertical-align:top;white-space:nowrap}.dictNaver-Entry-zh .shortcut_ico2{background-size:50px 14px}.dictNaver-Entry-zh .layer_shortcut_arrow,.dictNaver-Entry-zh .layer_shortcut_close .ico_x,.dictNaver-Entry-zh .layer_shortcut_row .ico_arrowup{background-size:75px 21px}.dictNaver-Entry-zh .shortcut{margin-top:-6px;padding:0 10px 20px;background:#f2f2f2;text-align:left}.dictNaver-Entry-zh .shortcut_click{display:block;overflow:hidden;position:relative;margin:0 auto;padding:11px 2px 9px 53px;min-height:29px;border:1px solid #dedede;background:#fcfcfc;font-size:0;line-height:0}.dictNaver-Entry-zh .shortcut_ico{position:absolute;top:50%;left:14px;margin-top:-15px}.dictNaver-Entry-zh .shortcut_ico2{margin:2px 0 0 7px;width:13px;height:13px;background-position:0 0}.dictNaver-Entry-zh .shortcut_text{font-size:.85em;line-height:.81;color:var(--color-font-grey)}.dictNaver-Entry-zh .shortcut_text2{font-weight:700;font-size:1em;line-height:1.06;color:#333}.dictNaver-Entry-zh .shortcut_text2_color{color:#00c73c}.dictNaver-Entry-zh .layer_shortcut{position:fixed;bottom:0;width:100%;z-index:1000;text-align:left}.dictNaver-Entry-zh .layer_shortcut .inner{position:relative;width:302px;margin:0 auto 12px}.dictNaver-Entry-zh .layer_shortcut .inner:before{position:absolute;top:0;left:0;right:0;bottom:0;z-index:10;background:#303030;opacity:.95;content:""}.dictNaver-Entry-zh .layer_shortcut_row{position:relative;z-index:20;min-height:61px;padding:13px 25px 13px 84px;font-size:1.15em;line-height:1.25;color:#fff}.dictNaver-Entry-zh .layer_shortcut_row .ico_dict{position:absolute;top:16px;left:17px}.dictNaver-Entry-zh .layer_shortcut_row .text_color{color:#00ed47}.dictNaver-Entry-zh .layer_shortcut_row .ico_arrowup{width:12px;height:16px;margin:0 6px 0 3px;background-position:-45px 0}.dictNaver-Entry-zh .layer_shortcut_close{position:absolute;display:block;top:0;right:0;z-index:30;width:38px;height:42px}.dictNaver-Entry-zh .layer_shortcut_close .ico_x{width:18px;height:18px;margin:12px 0 0 10px;background-position:-25px 0}.dictNaver-Entry-zh .layer_shortcut_arrow{position:absolute;left:50%;bottom:-8px;z-index:20;width:14px;height:8px;margin-left:-7px;background-position:-60px 0}.dictNaver-Entry-zh .btn_txt_style1.info_userent .ico2,.dictNaver-Entry-zh .exfilter_guide_close,.dictNaver-Entry-zh .exfilterset_list_bctchild .click_radio2,.dictNaver-Entry-zh .exfilterset_list_examdesc .click_checkbox2,.dictNaver-Entry-zh .exfilterset_list_hskchild .click_radio2,.dictNaver-Entry-zh .exfilterset_list_levelchild .click_radio2,.dictNaver-Entry-zh .word_h2w2_action .ico{display:inline-block;overflow:hidden;width:0;height:0;background-size:95px 25px;text-indent:100%;vertical-align:top;white-space:nowrap}.dictNaver-Entry-zh .btn_txt_style1.info_userent .ico2{width:18px;height:16px;margin:6px 2px 0 10px;background-position:0 0}.dictNaver-Entry-zh .word_h2w2_action{display:inline-block;margin-top:3px;vertical-align:top;cursor:pointer}.dictNaver-Entry-zh .word_h2w2_action .ico{width:19px;height:19px;margin-top:-1px;background-position:-20px 0}.dictNaver-Entry-zh .exfilterset .is_hide,.dictNaver-Entry-zh .layer_exfilter .is_hide,.dictNaver-Entry-zh .layer_exfilter.is_hide{display:none}.dictNaver-Entry-zh .exfilterset{margin-top:-1px;padding:0 13px 23px;text-align:left}.dictNaver-Entry-zh .exfilterset~.word2 .word_lstw{padding-left:7px}.dictNaver-Entry-zh .exfilterset~.word2 .word_lstw .word_lst{margin-bottom:0}.dictNaver-Entry-zh .exfilterset_list{position:relative;padding-top:39px}.dictNaver-Entry-zh .exfilterset_list>dt{position:absolute;top:0;text-align:center}.dictNaver-Entry-zh .exfilterset_list>dt .action{display:block;height:37px;font-size:1.15em;line-height:2.31;color:#999;border:1px solid #e5e4e4;cursor:pointer}.dictNaver-Entry-zh .exfilterset_list>dt .action.is_selected{border-color:#00c03a;background:#00c73c;color:#fff}.dictNaver-Entry-zh .exfilterset_list>dd{border:1px solid #ededed;border-top:0;background:#f8f8f9}.dictNaver-Entry-zh .exfilterset_list_level{width:50%;left:0}.dictNaver-Entry-zh .exfilterset_list_exam{width:50%;right:0}.dictNaver-Entry-zh .exfilterset_list_level em.action{border-right:0}.dictNaver-Entry-zh .exfilterset_list_exam em.action{border-left:0}.dictNaver-Entry-zh .exfilterset_list_leveldesc{padding:20px 0 17px}.dictNaver-Entry-zh .exfilterset_list_examdesc{padding:11px 0 17px}.dictNaver-Entry-zh .exfilterset_list_bctchild .click_text,.dictNaver-Entry-zh .exfilterset_list_hskchild .click_text,.dictNaver-Entry-zh .exfilterset_list_levelchild .click_text{font-size:1.23em;line-height:1.69;color:currentColor}.dictNaver-Entry-zh .exfilterset_list_levelchild{margin:0 15px 0 -3px}.dictNaver-Entry-zh .exfilterset_list_bctchild,.dictNaver-Entry-zh .exfilterset_list_hskchild{margin:0 15px 0 1px}.dictNaver-Entry-zh .exfilterset_list_bctchild>li,.dictNaver-Entry-zh .exfilterset_list_hskchild>li,.dictNaver-Entry-zh .exfilterset_list_levelchild>li{display:inline-block}.dictNaver-Entry-zh .exfilterset_list_levelchild>li{margin-left:23px}.dictNaver-Entry-zh .exfilterset_list_bctchild>li,.dictNaver-Entry-zh .exfilterset_list_hskchild>li{margin:9px 0 0 19px}.dictNaver-Entry-zh .exfilterset_list_hskchild>.item{display:block}.dictNaver-Entry-zh .exfilterset_list_bctchild .click,.dictNaver-Entry-zh .exfilterset_list_hskchild .click,.dictNaver-Entry-zh .exfilterset_list_levelchild .click{display:inline-block;cursor:pointer}.dictNaver-Entry-zh .exfilterset_list_bctchild .click,.dictNaver-Entry-zh .exfilterset_list_hskchild .click{min-width:70px}.dictNaver-Entry-zh .exfilterset_list_bctchild .click_radio,.dictNaver-Entry-zh .exfilterset_list_examchild .click_checkbox,.dictNaver-Entry-zh .exfilterset_list_hskchild .click_radio,.dictNaver-Entry-zh .exfilterset_list_levelchild .click_radio{overflow:hidden;position:absolute;width:1px;height:1px;margin:-1px;clip:rect(0 0 0 0)}.dictNaver-Entry-zh .exfilterset_list_bctchild .click_radio2,.dictNaver-Entry-zh .exfilterset_list_hskchild .click_radio2,.dictNaver-Entry-zh .exfilterset_list_levelchild .click_radio2{width:5px;height:5px;margin:10px 3px 0 0;background-position:0 -20px}.dictNaver-Entry-zh .exfilterset_list_examchild{margin:5px 0 0 20px}.dictNaver-Entry-zh .exfilterset_list_examchild .click{display:inline-block;cursor:pointer;line-height:1.06}.dictNaver-Entry-zh .exfilterset_list_examchild .click_text{display:inline-block;margin:6px 0 0 3px;font-size:1em;color:#999;vertical-align:top}.dictNaver-Entry-zh .exfilterset_list_examchild .click_checkbox2{width:18px;height:18px;margin-top:5px;background-position:-40px 0}.dictNaver-Entry-zh .exfilterset_list_bctchild .click.is_checked .click_radio2,.dictNaver-Entry-zh .exfilterset_list_hskchild .click.is_checked .click_radio2,.dictNaver-Entry-zh .exfilterset_list_levelchild .click.is_checked .click_radio2{background-position:-7px -20px}.dictNaver-Entry-zh .exfilterset_list_examchild .click.is_checked .click_checkbox2{background-position:-60px 0}.dictNaver-Entry-zh .exfilterset_list_bctchild .click.is_checked .click_text,.dictNaver-Entry-zh .exfilterset_list_examchild .click.is_checked .click_text,.dictNaver-Entry-zh .exfilterset_list_hskchild .click.is_checked .click_text,.dictNaver-Entry-zh .exfilterset_list_levelchild .click.is_checked .click_text{color:#00c73c}.dictNaver-Entry-zh .exfilterset2{margin-left:-5px;padding:52px 0 77px;text-align:center}.dictNaver-Entry-zh .exfilterset2_row{font-size:1.15em;line-height:1.38;color:#222}.dictNaver-Entry-zh .exfilterset2_click{display:inline-block;width:170px;height:30px;margin-top:17px;padding-top:11px;border:1px solid #00c73c;font-size:1.23em;line-height:1.25;color:#00c73c;text-decoration:none!important}.dictNaver-Entry-zh .layer_exfilter{display:table;position:fixed;top:0;left:0;right:0;bottom:0;z-index:100;width:100%;height:100%;text-align:center}.dictNaver-Entry-zh .layer_exfilter_inner{display:table-cell;vertical-align:middle}.dictNaver-Entry-zh .layer_exfilter_dimmed{position:fixed;top:-999px;left:0;right:-999px;bottom:-999px;z-index:30;background-color:rgba(0,0,0,.5)}.dictNaver-Entry-zh .exfilter_guide{position:relative;z-index:40;margin:0 auto;width:280px;min-height:363px;background:#fff;text-align:left}.dictNaver-Entry-zh .exfilter_guide_title{height:29px;padding:11px 0 0 16px;background:#f1f3f4;font-size:1.15em;line-height:1.19;color:#767676}.dictNaver-Entry-zh .exfilter_guide_action{position:absolute;top:0;right:0;z-index:40;padding:12px 17px;cursor:pointer}.dictNaver-Entry-zh .exfilter_guide_close{width:15px;height:15px;background-position:-80px 0}.dictNaver-Entry-zh .exfilter_guide_menu{margin:20px 17px 0;font-size:0;white-space:nowrap}.dictNaver-Entry-zh .exfilter_guide_menu li{display:inline-block;width:50%}.dictNaver-Entry-zh .exfilter_guide_menu .action{display:block;height:37px;border:1px solid #e2e2e2;font-size:1.15em;line-height:2.31;color:#222;text-align:center;letter-spacing:-1px;cursor:pointer}.dictNaver-Entry-zh .exfilter_guide_menu .item .action{padding-right:1px;border-right:0}.dictNaver-Entry-zh .exfilter_guide_menu .item2 .action{padding-left:1px;border-left:0}.dictNaver-Entry-zh .exfilter_guide_menu .action.is_selected{border:1px solid #00c73c;background:#00c73c;color:#fff}.dictNaver-Entry-zh .exfilter_guide_article,.dictNaver-Entry-zh .exfilter_guide_article2{padding:15px 22px 16px}.dictNaver-Entry-zh .exfilter_guide_article .list>dt:first-child,.dictNaver-Entry-zh .exfilter_guide_article2 .list>dt:first-child{margin-top:0}.dictNaver-Entry-zh .exfilter_guide_article .list>dt,.dictNaver-Entry-zh .exfilter_guide_article2 .list>dt{margin-top:16px;font-size:1.08em;line-height:1.5;color:#00c73c}.dictNaver-Entry-zh .exfilter_guide_article .list>dd,.dictNaver-Entry-zh .exfilter_guide_article2 .list>dd{margin-top:1px;font-size:1.08em;line-height:1.13;color:var(--color-font-grey)}@media all and (min-height:480px){.dictNaver-Entry-zh .exfilter_guide_article .list,.dictNaver-Entry-zh .exfilter_guide_article2 .list{overflow:visible;max-height:none}}.dictNaver-Entry-zh .dimm_new{position:fixed;left:0;top:0;right:0;bottom:0;width:100%;height:100%;z-index:9999;background-color:rgba(0,0,0,.8)}.dictNaver-Entry-zh .ico_top{position:fixed;background-size:41px 35px;background-size:41px 35px;width:41px;height:35px;color:transparent;right:11px;bottom:15px;z-index:2009}.dictNaver-Entry-zh .common_btn_wrap{background-color:#fff;margin:19px 13px 40px}.dictNaver-Entry-zh .common_btn_wrap .btn_lst_more_show{display:block;width:100%;height:40px;background-color:#fff;border:1px solid #e0e0e0;font-family:HelveticaNeue,Helvetica,sans-serif;cursor:pointer;text-align:center;box-sizing:border-box;box-sizing:border-box;color:currentColor}.dictNaver-Entry-zh .common_btn_wrap .btn_lst_more_show .ico_arrow{display:inline-block;vertical-align:middle;width:13px;height:7px;margin:0 5px 0 0;background-size:12px auto;background-size:12px auto}.dictNaver-Entry-zh .common_btn_wrap .btn_lst_more_show .txt{display:inline-block;vertical-align:middle;line-height:2.38;font-size:1.08em}.dictNaver-Entry-zh .common_btn_wrap .btn_lst_more_show .num{display:inline-block;margin-left:4px;font-size:1em;font-weight:400;vertical-align:middle;line-height:2.38;color:var(--color-brand)}.dictNaver-Entry-zh .common_btn_wrap .btn_lst_more_show .total_num{display:inline-block;line-height:2.38;font-size:1em;vertical-align:middle;color:#999}.dictNaver-Entry-zh .common_btn_wrap.nomore{margin:19px 13px 0}.dictNaver-Entry-zh .common_btn_wrap.nomore .btn_lst_more_show{background-color:#f9f9f9;cursor:default}.dictNaver-Entry-zh .common_btn_wrap.nomore .btn_lst_more_show .num{color:#777}.dictNaver-Entry-zh p.left{margin:0}.dictNaver-Entry-zh ol{padding-left:1em}.dictNaver-Entry-zh .dicsp,.dictNaver-Entry-zh .go_register,.dictNaver-Entry-zh .ico_krword,.dictNaver-Entry-zh .info_userent,.dictNaver-Entry-zh .ly_new_zhdict,.dictNaver-Entry-zh .m_tab,.dictNaver-Entry-zh .quiz_cont,.dictNaver-Entry-zh .search_vlive,.dictNaver-Entry-zh .section_banner{display:none!important}.dictNaver-Entry-ja{position:relative;font-family:"나눔고딕",NanumGothic,"굴림",Gulim,Helvetica,Sans-serif}.dictNaver-Entry-ja ol,.dictNaver-Entry-ja ul{list-style:none}.dictNaver-Entry-ja table{border-collapse:collapse}.dictNaver-Entry-ja img{display:inline}.dictNaver-Entry-ja fieldset,.dictNaver-Entry-ja img{border:0}.dictNaver-Entry-ja a{color:currentColor;text-decoration:none;cursor:pointer}.dictNaver-Entry-ja label{cursor:pointer}.dictNaver-Entry-ja address,.dictNaver-Entry-ja em{font-style:normal}.dictNaver-Entry-ja .blind,.dictNaver-Entry-ja .u_hc{overflow:hidden;position:absolute;top:0;left:-9999px;width:0;height:0;font-size:0;line-height:0;z-index:-1}.dictNaver-Entry-ja .it,.dictNaver-Entry-ja textarea{border:1px solid #bcbcbc}.dictNaver-Entry-ja .hc{visibility:hidden;overflow:hidden;position:absolute;left:-1000em;width:0;height:0;font-size:0;line-height:0}.dictNaver-Entry-ja .nc,.dictNaver-Entry-ja hr{display:none!important}.dictNaver-Entry-ja .jap,.dictNaver-Entry-ja .jp{font-family:HiraKakuProN-W3!important}.dictNaver-Entry-ja .hs{position:relative;z-index:1;width:100%;height:51px;background-color:#01b536}.dictNaver-Entry-ja .hs .hsw{padding:8px 91px 0 10px}.dictNaver-Entry-ja .hs .hsw .clrt{width:17px;height:17px;background-position:-10px -120px}.dictNaver-Entry-ja .hs .clrt{top:17px;right:95px}.dictNaver-Entry-ja .hs .itw{display:block;height:33px;padding:1px 50px 1px 6px;background-color:#fff}.dictNaver-Entry-ja .hs .it{width:100%;border:0;font-size:1em;font-family:HiraKakuProN-W3;border-radius:0;-webkit-appearance:none;font-size:1.13em;line-height:2.06}.dictNaver-Entry-ja .a .hs .it{height:24px}.dictNaver-Entry-ja .hs .it:focus{outline:0}.dictNaver-Entry-ja .hs .hssbt{overflow:visible;position:absolute;top:8px;right:53px;width:37px;height:35px;border:0;background-color:#02d23e;background-position:-40px 0}.dictNaver-Entry-ja .hs .ipbt{position:absolute;top:8px;right:10px;width:37px;height:35px;background-color:#02d23e;background-position:-36px -112px}.dictNaver-Entry-ja .hs .ipbt.on{background-color:#02d23e;background-position:-71px -112px}.dictNaver-Entry-ja .atit{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.dictNaver-Entry-ja .atcp{position:relative;z-index:101;width:100%;border-bottom:1px solid #888}.dictNaver-Entry-ja .atcpw{width:100%;font-size:.94em;text-align:left}.dictNaver-Entry-ja .atcpw2{border:1px solid var(--color-font-grey);border-top-color:#e8e8e8;background:#fff}.dictNaver-Entry-ja .atcpw2 ul{border-top:1px solid #e8e8e8}.dictNaver-Entry-ja .atcpw2 ul.first{border-top:0}.dictNaver-Entry-ja .atcpw2 li{border-top:1px solid #f7f7f7;font-size:1.14em}.dictNaver-Entry-ja .atcpw2 li:first-child{border-top:0}.dictNaver-Entry-ja .atcpw2 li.subt{position:relative}.dictNaver-Entry-ja .atcpw2 li.subt .vi{display:inline-block;overflow:hidden;position:absolute;top:0;left:50%;width:50%;padding:.45em 0;background-color:#fff;text-align:left;white-space:nowrap;text-overflow:ellipsis}.dictNaver-Entry-ja .atcpw2 li a{display:block;overflow:hidden;padding:.45em .5em .45em .6em;color:currentColor;white-space:nowrap;text-overflow:ellipsis}.dictNaver-Entry-ja .atcpw2 li a em{color:#e51313}.dictNaver-Entry-ja .atcpw3{border:0;background:#fff}.dictNaver-Entry-ja .atcpw3 .atcpa{padding-top:.7em;padding-bottom:.75em}.dictNaver-Entry-ja .atcpli{border-bottom:1px solid #f7f7f7;font-size:1.14em}.dictNaver-Entry-ja .atcpli.subt{position:relative}.dictNaver-Entry-ja .atcpli.subt .vi{display:inline-block;overflow:hidden;position:absolute;top:0;left:50%;width:50%;padding:.45em 0;background-color:#fff;text-align:left;white-space:nowrap;text-overflow:ellipsis}.dictNaver-Entry-ja .atcpa{display:block;overflow:hidden;padding:.45em .5em .45em .8em;color:currentColor;white-space:nowrap;text-overflow:ellipsis}.dictNaver-Entry-ja .atcpkw{color:#e51313}.dictNaver-Entry-ja .atcpsb{margin-left:.8em;color:#888}.dictNaver-Entry-ja .atbt{position:relative;margin-top:-1px;padding:.25em 10px;border-top:1px solid #e8e8e8;background:#f8f8f8;text-align:right}.dictNaver-Entry-ja .atbt .tb{position:absolute;top:3px;left:8px;padding:.45em .4em .4em;font-size:.93em;color:var(--color-font-grey)}.dictNaver-Entry-ja .atbt .write_txt{float:left;margin-top:5px;font-size:.88em;color:var(--color-font-grey)}.dictNaver-Entry-ja .atbt button{overflow:visible;margin:0;padding:.45em 0 .4em 1.6em;border:none;background-position:-140px 4px;font-size:.93em;color:var(--color-font-grey);cursor:pointer;-webkit-appearance:none}.dictNaver-Entry-ja .atbt button .w{-webkit-margin-start:-10px}.dictNaver-Entry-ja .atcpt .atcpw2{border-top-color:#bcbcbc;border-left:0;border-right:0}.dictNaver-Entry-ja .atcpb .atcpw{top:-11px}.dictNaver-Entry-ja .atcpb .atcpw2{margin:0 43px 0 10px;border-color:#bcbcbc}.dictNaver-Entry-ja .ime_atcpt{position:absolute!important}.dictNaver-Entry-ja .ime_atcpt .atcpw3 li{height:33px;border-bottom:1px solid #f7f7f7}.dictNaver-Entry-ja .ime_atcpt .atcpw3 .atcpa{height:24px;padding:9px 10px 0;font-size:1.13em}.dictNaver-Entry-ja .ime_atcpt .atcpw3 .atcpa .atcpsp{display:inline-block;min-width:120px;margin-right:10px}.dictNaver-Entry-ja .ly_media{position:relative;margin-top:30px;padding:11px 10px 12px 10px;border-top:1px solid #eaeaea;border-bottom:1px solid #eaeaea;background:#fbfbfb;color:#999;font-size:.81em;z-index:11;line-height:1.25}.dictNaver-Entry-ja .ly_media a{color:var(--color-brand);text-decoration:underline}.dictNaver-Entry-ja .top_fod{margin-top:0;line-height:1}.dictNaver-Entry-ja .top_fod.ly_media a{display:inline-block;margin-top:5px}.dictNaver-Entry-ja .sch2{overflow:hidden;padding:8px 0 11px;background:#fff}.dictNaver-Entry-ja .sc4_n{position:relative;height:30px;text-align:center}.dictNaver-Entry-ja .sc4_n .sc_box2{display:block;height:25px;margin:0 48px 0 10px;padding:4px 30px 0 5px;border:1px solid #cecece;background:#fff}.dictNaver-Entry-ja .sc4_n .it2{width:100%;border:0 none;font-size:1em;color:#999;border-radius:0;-webkit-appearance:none}.dictNaver-Entry-ja .sc4_n .sbt4{position:absolute;top:0;right:52px;width:30px;height:30px;border:0;background-position:-157px -82px;vertical-align:middle}.dictNaver-Entry-ja .sc4_n .sbt3{position:absolute;top:0;right:11px;width:39px;height:31px;border:0;background-position:-117px -82px}.dictNaver-Entry-ja .hc2{display:none}.dictNaver-Entry-ja .u_ftlkw{position:relative;clear:both;padding-top:20px;border-top:1px solid #d4d4d4;background:#f4f4f4;text-align:center;z-index:21}.dictNaver-Entry-ja .u_ftlk{display:inline-block;padding:0 8px;border:1px solid #d3d3d4;background-color:#fff;font-size:.75em;line-height:1.56;color:#222;text-align:center;vertical-align:top}.dictNaver-Entry-ja .u_cr{clear:both;padding:15px 0 13px;background:#f4f4f4;font-size:.69em;line-height:1.06;color:#777;text-align:center}.dictNaver-Entry-ja .u_cra{font-size:.69em;color:#777}.dictNaver-Entry-ja .u_cra:before{display:inline-block;height:10px;margin:0 7px 0 5px;border-left:1px solid #d7d7d7;vertical-align:-1px;content:""}.dictNaver-Entry-ja .u_cri_v1{display:block;padding-top:3px;background-position:0 -82px;font-size:.69em}.dictNaver-Entry-ja .u_cra_v1:before{margin:0 4px 0 0;border:none}.dictNaver-Entry-ja .set_lang{clear:both;overflow:hidden;position:relative;border-top:solid 1px #e5e5e7;background-color:#fff}.dictNaver-Entry-ja .set_lang form{padding:17px 20px}.dictNaver-Entry-ja .set_lang label{padding-right:12px;font-size:.81em;color:currentColor}.dictNaver-Entry-ja .set_lang .selec_wrap{display:inline-block}.dictNaver-Entry-ja .set_lang select{height:25px;padding:0 24px 0 6px;margin:0;border:solid 1px #dedede;border-radius:0;font-size:.88em;color:currentColor;line-height:1.44;background-size:18px 50px;-webkit-appearance:none;-moz-appearance:none}.dictNaver-Entry-ja .u_ftst{position:absolute;right:20px;top:19px;padding:3px 3px 3px 20px;color:#333;font-family:Helvetica,sans-serif;font-size:.81em;line-height:1.13}.dictNaver-Entry-ja .retop{position:relative;margin-top:15px;padding-top:12px}.dictNaver-Entry-ja .retop .set_lang{margin:0;padding:0}.dictNaver-Entry-ja .word_otr{padding:18px 10px 3px;font-size:.94em}.dictNaver-Entry-ja .word_otr_h{display:block;margin-bottom:7px;font-size:.94em;line-height:1}.dictNaver-Entry-ja .word_otr_a{display:inline-block;color:var(--color-brand);font-size:.94em;margin-bottom:5px}.dictNaver-Entry-ja .word_otr_dv{margin:0 6px!important;color:#ccc}.dictNaver-Entry-ja .word_otr_lst:after{display:block;clear:both;content:""}.dictNaver-Entry-ja .word_otr_lst li{float:left;height:22px;line-height:1}.dictNaver-Entry-ja .word_otr_lst .bl,.dictNaver-Entry-ja .word_otr_lst.on span.bl{display:none;margin:0}.dictNaver-Entry-ja .word_otr_lst.on .bl,.dictNaver-Entry-ja .word_otr_lst.on span.bl{display:inline-block}.dictNaver-Entry-ja .btn_open{display:inline-block;height:21px;width:17px;margin-left:8px;background-position:-96px -187px}.dictNaver-Entry-ja .on .btn_open{background-position:-117px -187px}.dictNaver-Entry-ja .btn_up{overflow:hidden;margin:20px 0 0;margin-top:20px;padding:0 10px;font-size:.75em}.dictNaver-Entry-ja .huri_off rt{display:none}.dictNaver-Entry-ja .huri_off sup.huri{display:none}.dictNaver-Entry-ja sup.huri,.dictNaver-Entry-ja sup.huri a{position:relative;top:4px;font-size:.81em;line-height:.63;color:#e51313!important;letter-spacing:-1px}.dictNaver-Entry-ja sup.huri{margin-left:2px}.dictNaver-Entry-ja .ico_star{display:inline-block;height:27px;width:14px;margin-right:5px;font-size:.88em;vertical-align:top;background-position:-119px 5px}.dictNaver-Entry-ja .ico_star2{width:29px}.dictNaver-Entry-ja .ico_star3{width:44px}.dictNaver-Entry-ja .ico_star4{width:59px}.dictNaver-Entry-ja .ico_star5{width:74px}.dictNaver-Entry-ja .area_jlpt{display:inline;font-size:.88em;color:#707483;position:relative;top:-3px}.dictNaver-Entry-ja .spot_area .spot_area_inner{padding-right:30px}.dictNaver-Entry-ja .spot_area .area_jlpt{top:-1px}.dictNaver-Entry-ja .spot_area .hanja h3+.area_jlpt{margin-left:4px}.dictNaver-Entry-ja .area_jlpt .btn_jlpt,.dictNaver-Entry-ja .area_jlpt .btn_so{display:inline-block;min-width:21px;height:17px;padding:4px 4px 0 5px;border:1px solid #bfc1c8;border-radius:3px;font-family:tahoma,Helvetica,sans-serif;font-size:.94em;line-height:.88;color:#4e5366;text-align:center;vertical-align:middle;background:#f9f9f9;background:-ms-linear-gradient(0,#fff 0,#f9f9f9 93%,#f2f2f2 93%,#f2f2f2 100%)}.dictNaver-Entry-ja .area_jlpt .btn_so{border:1px solid #e5e6e8;color:#707483;letter-spacing:-1px;background:#fcfcfc;background:-ms-linear-gradient(0,#fff 0,#fcfcfc 93%,#f8f8f8 93%,#f8f8f8 100%)}.dictNaver-Entry-ja .area_jlpt .btn_jlpt+.btn_so{margin-left:1px}.dictNaver-Entry-ja .spot_area .area_jlpt .btn_jlpt+.btn_so{margin-left:0}.dictNaver-Entry-ja .entry.type_hj+.area_jlpt{margin-left:3px}.dictNaver-Entry-ja .spot_area .area_jlpt .btn_so{background:#f8f8f8;background:-ms-linear-gradient(0,#fbfbfb 0,#f8f8f8 93%,#f4f4f4 93%,#f4f4f4 100%)}.dictNaver-Entry-ja .ico_star+.area_jlpt{margin-left:-2px}.dictNaver-Entry-ja .txt_sch{display:none;min-height:20px;padding:15px 10px;border-bottom:1px solid #f9f9f9;font-size:.94em}.dictNaver-Entry-ja .txt_sch .kwd{font-weight:700}.dictNaver-Entry-ja .txt_sch .kwd .jp{font-size:.94em;font-weight:700}.dictNaver-Entry-ja .txt_sch a{color:var(--color-brand)}.dictNaver-Entry-ja .txt_sch a .jp{font-size:.94em}.dictNaver-Entry-ja .mid_ico{margin:0 2px}.dictNaver-Entry-ja .section{padding:10px 0 0;font-size:1em;line-height:1.3}.dictNaver-Entry-ja .section.all{border-top:2px solid #b8b8b8}.dictNaver-Entry-ja .section.section_sptrans{border-top:1px solid #eaeaea}.dictNaver-Entry-ja .autolink.on,.dictNaver-Entry-ja .autolink2.on{background:#ff3}.dictNaver-Entry-ja .section h4{margin:0;padding:0 10px 5px;font-size:1.19em}.dictNaver-Entry-ja .section h4 .blind{visibility:visible;position:static;width:auto;height:auto;font-size:1em;line-height:1.38}.dictNaver-Entry-ja .section h4 em{margin-left:-1px;font-weight:400;font-size:1em;color:var(--color-font-grey)}.dictNaver-Entry-ja .section h4 em span{font-size:1em;letter-spacing:0}.dictNaver-Entry-ja .section .more2{height:17px;padding:0 10px 0 10px;text-align:right}.dictNaver-Entry-ja .section .more2 a{padding-right:13px;background-position:100% 1px;font-size:.88em;color:#0068b1;letter-spacing:-1px}.dictNaver-Entry-ja .section.section_word .more2{margin-top:-4px;padding-bottom:5px}.dictNaver-Entry-ja .section.section_article .more2{margin-top:-6px;padding-bottom:5px}.dictNaver-Entry-ja .section.section_example .more2{margin-top:-5px;padding-bottom:19px}.dictNaver-Entry-ja .section ruby rt{color:#e51313}.dictNaver-Entry-ja .dc.section_box+.more{display:none}.dictNaver-Entry-ja .detail_hj .section h4,.dictNaver-Entry-ja .detail_jpkr .section h4,.dictNaver-Entry-ja .detail_krjp .section h4{margin-bottom:0;padding-left:10px;padding-top:20px;border-top:2px solid #eaeaea;border-bottom:0}.dictNaver-Entry-ja .srch_box{padding:0 10px .5em}.dictNaver-Entry-ja .srch_box .srch_top{padding-bottom:2px;vertical-align:middle}.dictNaver-Entry-ja .srch_box .srch_top>*{vertical-align:middle;line-height:1.3}.dictNaver-Entry-ja .srch_box .srch_top .entry{display:inline;font-size:1.13em;vertical-align:middle}.dictNaver-Entry-ja .srch_box .srch_top .entry .sw{position:relative;top:-4px;color:#999}.dictNaver-Entry-ja .srch_box .srch_top .entry .sw .jp{position:relative;top:2px}.dictNaver-Entry-ja .srch_box .srch_top .entry a,.dictNaver-Entry-ja .srch_box .srch_top .entry a .jp,.dictNaver-Entry-ja .srch_box .srch_top .entry a strong{margin-left:0;color:var(--color-brand)}.dictNaver-Entry-ja .srch_box .srch_top .entry sup{position:relative;top:4px;font-weight:700;font-size:.88em;color:#0068b1}.dictNaver-Entry-ja .srch_box .srch_top .entry .subtitle{margin-right:5px;font-size:1em;color:var(--color-font-grey)}.dictNaver-Entry-ja .player{display:inline-block;position:relative;top:-2px}.dictNaver-Entry-ja .player .btn_play,.dictNaver-Entry-ja .player .play,.dictNaver-Entry-ja .player .playing{display:block;overflow:hidden;width:36px;height:27px;border:0;background-position:0 -120px;font-size:.88em;text-indent:-9999px;cursor:pointer}.dictNaver-Entry-ja .player .play.on,.dictNaver-Entry-ja .player .playing,.dictNaver-Entry-ja .player.on .play,.dictNaver-Entry-ja .player.on .playing{background-position:-43px -120px}.dictNaver-Entry-ja .player.load .play{background-position:0 0}.dictNaver-Entry-ja .srch_box .srch_top .btn_add{display:none}.dictNaver-Entry-ja .srch_box .srch_top .star{margin-right:5px;vertical-align:middle}.dictNaver-Entry-ja .srch_box .lst_txt{position:relative;top:-1px;vertical-align:middle;font-size:1em}.dictNaver-Entry-ja .srch_box .inner_lst{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;list-style-position:inside;margin-left:-30px}.dictNaver-Entry-ja .srch_box .pin{display:block;overflow:hidden;font-size:1em;color:var(--color-font-grey);white-space:nowrap;text-overflow:ellipsis}.dictNaver-Entry-ja .srch_box2 .pin2{display:block}.dictNaver-Entry-ja .srch_result .section_article .srch_box2 .pin2{padding-top:0}.dictNaver-Entry-ja .srch_box .pin .lst_txt{color:currentColor}.dictNaver-Entry-ja .srch_box .pin2 .jp strong{font-weight:400}.dictNaver-Entry-ja .srch_box .jp{margin:0;font-size:1em}.dictNaver-Entry-ja .inner_lst{padding-left:10px}.dictNaver-Entry-ja .inner_lst:first-child{margin-top:0}.dictNaver-Entry-ja .inner_lst .pin{display:inline-block;vertical-align:middle;color:var(--color-font-grey)}.dictNaver-Entry-ja .inner_lst .pin a,.dictNaver-Entry-ja .inner_lst .pin a strong{font-weight:400}.dictNaver-Entry-ja .accent_wrap{position:relative}.dictNaver-Entry-ja .top_btn{display:inline-block;position:relative;height:20px;line-height:1.13;margin-right:4px;background:#fff;border:1px solid #cbcbcb;vertical-align:middle}.dictNaver-Entry-ja .top_btn .blind{display:block;width:auto;height:auto;padding-left:9px;padding-right:15px;visibility:visible;font-size:.69em;line-height:1.25;position:static;left:auto;top:auto;color:var(--color-font-grey)}.dictNaver-Entry-ja .top_btn:after{position:absolute;right:6px;top:50%;width:4px;height:7px;margin-top:-2px;background-position:-164px -26px;content:"";transform:rotate(90deg);-webkit-transform:rotate(90deg)}.dictNaver-Entry-ja .on.top_btn:after{position:absolute;right:6px;top:50%;width:4px;height:7px;margin-top:-3px;background-position:-164px -26px;content:"";transform:rotate(-90deg);-webkit-transform:rotate(-90deg)}.dictNaver-Entry-ja .accent{position:absolute;left:0;top:21px;z-index:100;padding:0 5px 0 0!important;border:1px solid #cbcbcb;background:#fff;font-weight:400!important}.dictNaver-Entry-ja .accent.rgt{left:auto;right:9px}.dictNaver-Entry-ja .accent .list1{width:auto;margin:0 9px;padding:8px 0 5px 0;line-height:1;font-size:.69em;color:var(--color-font-grey);font-weight:400;border-bottom:1px solid #efefef}.dictNaver-Entry-ja .accent .list2{padding:3px 0 8px}.dictNaver-Entry-ja .accent .list2 li{padding:0 0 0 9px;margin-bottom:-4px;color:#444;font-size:.88em;line-height:1.63;width:143px;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dictNaver-Entry-ja .accent .list2 li a{padding:0;color:#444!important}.dictNaver-Entry-ja .accent .red{position:relative;margin:0;color:#f83a1d}.dictNaver-Entry-ja .accent .tic{display:inline-block;background-position:4px -221px;color:#f83a1d}.dictNaver-Entry-ja .accent .close{position:absolute;top:3px;right:3px;width:9px;height:9px;background-position:-130px -46px}.dictNaver-Entry-ja .tc-panels .section{padding:0 10px 2em}.dictNaver-Entry-ja .detail_hj .tc-panels .section,.dictNaver-Entry-ja .detail_jpkr .tc-panels .section,.dictNaver-Entry-ja .detail_krjp .tc-panels .section{padding:30px 0 30px 0}.dictNaver-Entry-ja .tc-panels .section ol{list-style:decimal;margin-left:16px}.dictNaver-Entry-ja .tc-panels .section>ol{padding-left:10px;margin-left:22px}.dictNaver-Entry-ja .tc-panels .section ol ol{list-style:lower-alpha}.dictNaver-Entry-ja .tc-panels .section ol li{padding:0 0 8px 0}.dictNaver-Entry-ja .tc-panels .section ol li:last-child{padding-bottom:0}.dictNaver-Entry-ja .tc-panels .section.last{border-bottom:1px solid #ccc}.dictNaver-Entry-ja .tc-panels .section.last+.section.idiom{padding-top:10px}.dictNaver-Entry-ja .tc-panels .section.suk{margin-top:-1px;border-top:1px solid #fff}.dictNaver-Entry-ja .tc-panels .section.suk .entry2{margin-left:36px}.dictNaver-Entry-ja .tc-panels .more{height:17px;padding:14px 10px 14px 0;text-align:right}.dictNaver-Entry-ja .tc-panels .more a{padding-right:13px;background-position:100% 1px;color:#0068b1;letter-spacing:-1px}.dictNaver-Entry-ja .detail_hj .tc-panels .section.last,.dictNaver-Entry-ja .detail_jpkr .tc-panels .section.last,.dictNaver-Entry-ja .detail_krjp .tc-panels .section.last{border-bottom:0}.dictNaver-Entry-ja .section.idiom .entry2 .jp{font-size:1em}.dictNaver-Entry-ja .section.idiom .entry2 .btn_add{display:none}.dictNaver-Entry-ja .section.idiom .bar{margin:0 5px}.dictNaver-Entry-ja .section.idiom+.more{border-top:1px solid #ccc}.dictNaver-Entry-ja .section2 .nav_sec{padding:10px 0;border-bottom:1px solid #eaeaea}.dictNaver-Entry-ja .section2 .nav_sec em{display:none;position:relative;top:-1px;padding-left:2px;color:#777;font-family:tahoma,Helvetica,sans-serif;font-size:.69em;vertical-align:baseline}.dictNaver-Entry-ja .section2 .nav_sec .bar{display:none;padding:0 2px 0 3px;color:#d9d9d9;font-size:.75em}.dictNaver-Entry-ja .section2 .nav_sec a{display:none}.dictNaver-Entry-ja .section2 .nav_sec a.all{display:block;padding:10px 20px 10px 10px;text-align:right;font-size:1em;color:currentColor}.dictNaver-Entry-ja .section2 .nav_sec a.all .tx_lnk{color:#0068b1}.dictNaver-Entry-ja .section2 .nav_sec.v1{border-top:1px solid #eaeaea;border-bottom:0}.dictNaver-Entry-ja .cen_box2{padding:0 10px}.dictNaver-Entry-ja .cen_box2 h4{margin-bottom:12px}.dictNaver-Entry-ja .cen_box2 h6{font-size:.88em}.dictNaver-Entry-ja .cen_box2 p{margin-top:0!important}.dictNaver-Entry-ja .cen_box2 p a{color:var(--color-font-grey)}.dictNaver-Entry-ja .cen_box2 .tbl_lst{overflow:hidden;zoom:1}.dictNaver-Entry-ja .cen_box2 .tbl_lst li{overflow:hidden;float:left;width:46%;margin:0 10px 11px 0;white-space:nowrap;text-overflow:ellipsis}.dictNaver-Entry-ja .cen_box2 .tbl_lst a{color:#0000de}.dictNaver-Entry-ja .detail_hj .cen_box2,.dictNaver-Entry-ja .detail_jpkr .cen_box2,.dictNaver-Entry-ja .detail_krjp .cen_box2{margin:15px 10px 25px -22px;padding:10px 10px 10px 16px;background:#f4f5f5;text-indent:0;font-size:.88em;color:var(--color-font-grey)}.dictNaver-Entry-ja .detail_hj .cen_box2 h6,.dictNaver-Entry-ja .detail_jpkr .cen_box2 h6,.dictNaver-Entry-ja .detail_krjp .cen_box2 h6{margin:0;padding:0;font-size:.88em;color:currentColor}.dictNaver-Entry-ja .lst2{padding:2px 0 30px 26px}.dictNaver-Entry-ja .lst2 li{line-height:1.38}.dictNaver-Entry-ja .lst2>li{padding-bottom:19px}.dictNaver-Entry-ja .lst2>li:last-child{padding-bottom:6px}.dictNaver-Entry-ja .lst2 li:first-child{margin-top:0}.dictNaver-Entry-ja .lst2 li a{color:#0075d0}.dictNaver-Entry-ja .lst2 li .jp_sp{margin-left:5px;vertical-align:1px}.dictNaver-Entry-ja .lst2 li .lst_txt .lft{margin-right:5px;color:var(--color-font-grey)}.dictNaver-Entry-ja .dlst{overflow:hidden;position:relative;width:100%;margin-top:-2px;border-top:2px solid #d9d9d9;border-bottom:2px solid #d9d9d9}.dictNaver-Entry-ja .dlst .fd_btn{display:inline-block;position:absolute;top:9px;right:10px;width:20px;height:20px;background-position:-130px -122px}.dictNaver-Entry-ja .dlst .fd_btn.on{background-position:-158px -122px}.dictNaver-Entry-ja .dlst .lst_dl{width:100%;background:#f6f6f6;zoom:1}.dictNaver-Entry-ja .dlst .lst_dl:after{display:block;visibility:hidden;clear:both;height:0;content:"."}.dictNaver-Entry-ja .dlst .lst{float:left;width:51%;font-size:1.06em;letter-spacing:-1px}.dictNaver-Entry-ja .dlst .lst_dl dt{width:48%;min-width:154px}.dictNaver-Entry-ja .dlst .lst span{display:block;padding:7px 0 7px 11px;border-right:1px solid #f7f7f7;line-height:1.5}.dictNaver-Entry-ja .dlst .lst_open{background:#fff}.dictNaver-Entry-ja .dlst .lst_open,.dictNaver-Entry-ja .dlst.on .lst_dl{display:none}.dictNaver-Entry-ja .dlst .lst_open .lst{background:#fff}.dictNaver-Entry-ja .dlst .lst_open dt{position:relative}.dictNaver-Entry-ja .dlst .lst_open dt::after{display:block;position:absolute;top:0;left:0;width:300%;height:1px;background:#f7f7f7;content:""}.dictNaver-Entry-ja .dlst .lst_open .lst span{border-right:none;color:#333}.dictNaver-Entry-ja .dlst .lst_dl .lst:nth-child(2n) span{padding-left:12px;padding-right:28px;border:0}.dictNaver-Entry-ja .dlst .lst_dl .lst:nth-child(1),.dictNaver-Entry-ja .dlst .lst_dl .lst:nth-child(2){border-top:0;line-height:2.31}.dictNaver-Entry-ja .dlst.on .lst_open{display:block}.dictNaver-Entry-ja .dlst .lst_dl dd{border-left:1px solid #f7f7f7;letter-spacing:0}.dictNaver-Entry-ja .td_lst{background-position:45px 0}.dictNaver-Entry-ja .td_li{position:relative;padding:9px 0 10px 62px;border-top:1px solid #eee;border-top:1px solid rgba(234,234,234,.5);zoom:1}.dictNaver-Entry-ja .td_li:first-child{border-top:0}.dictNaver-Entry-ja .td_li .num{position:absolute;top:25px;left:12px;font-family:arial,sans-serif;font-weight:700;font-size:.94em;color:#5c5c5c}.dictNaver-Entry-ja .td_li .jp{position:relative;margin-right:2px;height:37px;font-size:1.25em;line-height:1.69;color:var(--color-brand);vertical-align:middle;font-weight:400}.dictNaver-Entry-ja .td_li .jp em{color:var(--color-font-grey)}.dictNaver-Entry-ja .td_li .jp sup{position:absolute;top:-2px;height:14px;line-height:.88;font-size:.75em}.dictNaver-Entry-ja .td_li .td_txt{overflow:hidden;margin-top:3px;font-size:.94em;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal}.dictNaver-Entry-ja .td_li .td_txt .jp{color:currentColor}.dictNaver-Entry-ja .td_li .player{margin-left:6px}.dictNaver-Entry-ja .td_lst.v1{background:0 0}.dictNaver-Entry-ja .td_lst.v1 .td_li{padding-left:10px;border-color:#eaeaea}.dictNaver-Entry-ja .td_lst_v2{background:0 0!important}.dictNaver-Entry-ja .td_lst_v2 .td_li{overflow:hidden;padding-left:10px;border-top:0;zoom:1}.dictNaver-Entry-ja .td_lst_v2 .td_li:first-child{border-bottom:1px solid #cdcfd1}.dictNaver-Entry-ja .td_lst_v2 .td_txt .dsc{display:block;margin-top:5px;font-size:.81em;color:var(--color-font-grey);letter-spacing:-1px}.dictNaver-Entry-ja .info_box{position:relative;background-color:#fff}.dictNaver-Entry-ja .info_tit{position:relative;z-index:50;height:31px;border-top:1px solid #cacaca;border-bottom:1px solid #cacaca;line-height:2.06;padding-left:10px;font-size:.94em;background-position:0 0;letter-spacing:-1px}.dictNaver-Entry-ja .info_tit .en{font-family:arial,Helvetica,sans-serif;font-size:1.06em;letter-spacing:0}.dictNaver-Entry-ja .info_tit .feature{position:absolute;top:-2px;right:5px}.dictNaver-Entry-ja .info_tit a.btn_class_word{display:inline-block;height:24px;margin-right:4px;padding:0 5px;font-size:.75em;line-height:1.69;color:#4b4b4b;text-align:center;letter-spacing:-1px;vertical-align:middle;border:1px solid #b4b4b4;border-radius:3px;border-color:#b4b4b4 #a3a3a3 #909090;background:#f9f9f9;background:-webkit-gradient(linear,0 0,0 100%,color-stop(0,#f9f9f9),color-stop(100%,#e7e7e7));box-shadow:0 1px 0 0 #f6f6f6}.dictNaver-Entry-ja .info_tit a.btn_refresh{display:inline-block;overflow:hidden;width:32px;height:27px;background-position:-100px 0;text-indent:-9999px;vertical-align:middle}.dictNaver-Entry-ja .info_tit a.ico_help{display:inline-block;overflow:hidden;width:22px;height:22px;margin:-4px 0 0 6px;background-position:0 0;vertical-align:middle}.dictNaver-Entry-ja .info_tit .help_dsc{position:absolute;top:31px;right:0;left:0;z-index:60;padding:12px 52px 10px 14px;border:1px solid #a1afbd;background-color:#f4f8fb}.dictNaver-Entry-ja .info_tit .help_dsc p{font-size:.88em;line-height:1;letter-spacing:0}.dictNaver-Entry-ja .info_tit .help_dsc p em{color:#4c5461}.dictNaver-Entry-ja .info_tit .help_dsc p strong{display:block;padding-top:5px;font-size:.81em;font-weight:400;color:var(--color-font-grey)}.dictNaver-Entry-ja .info_tit .help_dsc p strong span{font-weight:700}.dictNaver-Entry-ja .info_tit .help_dsc .btn_clse{position:absolute;top:10px;right:10px;width:17px;height:17px;background-position:0 0;cursor:pointer}.dictNaver-Entry-ja .info_tit .help_dsc .effect{display:none;position:absolute;top:-4px;left:120px;width:8px;height:4px;background-position:0 0}.dictNaver-Entry-ja .info_box .no_data{padding:12px 0 13px 10px;font-size:.94em;color:var(--color-font-grey)}.dictNaver-Entry-ja .info_box .no_data strong{font-weight:400}.dictNaver-Entry-ja .info_box .player{top:0}.dictNaver-Entry-ja .info_box:first-child .info_tit{border-top:0}.dictNaver-Entry-ja .info_box:first-child .btn_all_del{position:absolute;top:0;right:0;z-index:50;height:32px;padding-right:8px;font-size:.81em;color:#999;line-height:2;text-align:right;border-left:1px solid #cacaca;letter-spacing:-1px;white-space:nowrap}.dictNaver-Entry-ja .myw_lst{display:block;width:100%;overflow:hidden;margin-bottom:-1px}.dictNaver-Entry-ja .myw_li{width:50%;float:left;position:relative;border-bottom:1px solid #eaeaea}.dictNaver-Entry-ja .myw_txt{display:block;height:47px;padding:0 0 0 10px;margin-right:33px;line-height:2.94;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.06em;color:#333}.dictNaver-Entry-ja .myw_txt sup{position:relative;top:-4px;font-size:.75em;vertical-align:2px;margin-left:2px}.dictNaver-Entry-ja .myw_li:nth-child(2n) .myw_txt{border-left:1px solid #eaeaea}.dictNaver-Entry-ja .myw_noti{padding:13px 10px;font-size:.94em;color:var(--color-font-grey)}.dictNaver-Entry-ja .ico_x{float:left;height:11px;width:10px;margin:11px 2px 0 8px;background-position:-130px -45px}.dictNaver-Entry-ja .ico_x2{position:absolute;right:7px;top:50%;margin-top:-10px;height:20px;width:26px;background-position:-122px -40px}.dictNaver-Entry-ja .u_pg2{padding:15px 0 35px;font-size:.86em;text-align:center;white-space:nowrap;border-top:1px solid #eaeaea}.dictNaver-Entry-ja .u_pg2_btn{display:inline-block;padding:.42em .86em;border:1px solid #bcbcbc;border-radius:3px;background:#f1f1f1;background:-webkit-gradient(linear,0 0,0 100%,from(#fff),color-stop(.05,#fbfbfb),to(#f1f1f1));color:var(--color-font-grey);vertical-align:1px}.dictNaver-Entry-ja .u_pg2_btn.uc_vh{visibility:hidden}.dictNaver-Entry-ja .u_pg2_next,.dictNaver-Entry-ja .u_pg2_prev{display:inline-block}.dictNaver-Entry-ja .u_pg2_prev{padding-left:.86em;background-position:0 4px}.dictNaver-Entry-ja .u_pg2_next{padding-right:.86em;background-position:100% -35px}.dictNaver-Entry-ja .u_pg2_pg{display:inline-block;padding:0 5px;font-weight:700;color:#32a800;line-height:1.69}.dictNaver-Entry-ja .u_pg2_total{color:#999}.dictNaver-Entry-ja .u_pg2 .pad_wid{padding:0;margin:0 1px}.dictNaver-Entry-ja .u_pg2 .arr_ico{display:inline-block;width:36px;height:25px;vertical-align:middle}.dictNaver-Entry-ja .u_pg2 .arr_ico.lft{background-position:-13px -53px}.dictNaver-Entry-ja .u_pg2 .arr_ico.lft2{background-position:-23px -480px}.dictNaver-Entry-ja .u_pg2 .arr_ico.rgt{background-position:-36px -53px}.dictNaver-Entry-ja .u_pg2 .arr_ico.rgt2{background-position:-47px -480px}.dictNaver-Entry-ja .paginate{padding:30px 0;font-size:.88em;text-align:center;white-space:nowrap}.dictNaver-Entry-ja .paginate .u_pg2_pg{display:inline-block;min-width:7.5em;padding:.4em;font-weight:700;color:#32a800}.dictNaver-Entry-ja .paginate .u_pg2_total{font-weight:400;color:#909090}.dictNaver-Entry-ja .paginate a{display:inline-block;min-width:34px;padding:6px 9px 4px;border:1px solid #bcbcbc;font-size:.81em;color:#454545}.dictNaver-Entry-ja .paginate a span{display:inline-block}.dictNaver-Entry-ja .paginate a.prev span{padding-left:9px;background-position:0 3px}.dictNaver-Entry-ja .paginate a.next span{padding-right:9px;background-position:100% -36px}.dictNaver-Entry-ja .top_move{padding:0 12px 10px;text-align:right}.dictNaver-Entry-ja .top_move a{display:inline-block;padding:6px 10px;border:1px solid #bcbcbc;border-radius:3px;background:#f1f1f1;background:-webkit-gradient(linear,0 0,0 100%,from(#fff),color-stop(.05,#fbfbfb),to(#f1f1f1));color:#444}.dictNaver-Entry-ja .top_move a .ico_move{display:inline-block;width:9px;height:8px;margin-top:4px;background-position:0 0;vertical-align:middle}.dictNaver-Entry-ja .wc_btn_area{overflow:hidden;position:relative;border-bottom:1px solid #cacaca;font-size:.94em;background-position:0 0;letter-spacing:-1px}.dictNaver-Entry-ja .wc_btn_area .slt_wrap{position:relative;float:left;border-right:1px solid #cacaca;font-weight:400;font-size:.88em;color:#444}.dictNaver-Entry-ja .wc_btn_area .slt_wrap.on{background-color:#f8f8f8;color:#41507b}.dictNaver-Entry-ja .wc_btn_area .slt_wrap select{display:block;height:31px;padding:0 20px 0 5px;border:0;border-radius:0;background-color:transparent;-webkit-appearance:none;font-size:.88em;color:#333;letter-spacing:-1px}.dictNaver-Entry-ja .wc_btn_area .slt_wrap:first-child select{padding:0 30px 0 15px}.dictNaver-Entry-ja .wc_btn_area .slt_wrap .ico_arr{position:absolute;right:10px;top:50%;display:block;width:9px;height:6px;margin-top:-3px;background-position:0 0}.dictNaver-Entry-ja .wc_btn_area .slt_wrap:first-child .ico_arr{right:20px}.dictNaver-Entry-ja .wc_btn_area .slt_wrap.on .ico_arr{background-position:-11px 0}.dictNaver-Entry-ja .dl_list{overflow:hidden;max-height:41px;padding:8px 14px 10px 11px;border-bottom:2px solid #b8b8b8}.dictNaver-Entry-ja .dl_list dd,.dictNaver-Entry-ja .dl_list dt{display:inline}.dictNaver-Entry-ja .dl_list dt{padding:0 0 0 4px;border:1px solid #d8d8d8;background-color:#f7f8f9}.dictNaver-Entry-ja .dl_list dt>.blind{visibility:visible;overflow:hidden;position:static;width:auto;height:auto;font-size:.81em;color:#6c6c6c}.dictNaver-Entry-ja .dl_list dd{margin-left:5px;line-height:1.31}.dictNaver-Entry-ja .dl_list dd a{color:var(--color-brand);white-space:nowrap;font-size:.94em}.dictNaver-Entry-ja .dl_list .jp{font-size:.94em}.dictNaver-Entry-ja .btn_txt_style1.expand_all_exam_bt{margin-left:4px}.dictNaver-Entry-ja .section_box h5{font-size:1.25em}.dictNaver-Entry-ja .detail_hj .section_box h5,.dictNaver-Entry-ja .detail_jpkr .section_box h5,.dictNaver-Entry-ja .detail_krjp .section_box h5{font-size:1.25em;padding-left:10px;padding-bottom:18px;color:currentColor}.dictNaver-Entry-ja .section_box h6{margin:5px 0 15px;padding-left:11px;font-size:1.13em}.dictNaver-Entry-ja .section_box h6 .kor_link{color:currentColor}.dictNaver-Entry-ja .section_box h6 a{color:#0068b1}.dictNaver-Entry-ja .section_box .pin{display:block;margin:8px 0}.dictNaver-Entry-ja .section_box .lst li{font-size:1em;line-height:1.38}.dictNaver-Entry-ja .section_box .lst li .lst_txt{font-size:1.13em}.dictNaver-Entry-ja .section_box .lst li .roman{display:block}.dictNaver-Entry-ja .section_box .lst li .jp{font-size:1.06em}.dictNaver-Entry-ja .section_box .player{margin-top:-5px}.dictNaver-Entry-ja .detail_hj .section_box .lst li .lst_txt,.dictNaver-Entry-ja .detail_jpkr .section_box .lst li .lst_txt,.dictNaver-Entry-ja .detail_krjp .section_box .lst li .lst_txt{display:block;padding-bottom:5px}.dictNaver-Entry-ja .ft_mod_sm h5{font-size:1.13em}.dictNaver-Entry-ja .ft_mod_sm h6{font-size:.88em}.dictNaver-Entry-ja .ft_mod_sm .lst li{font-size:.88em;line-height:1.19}.dictNaver-Entry-ja .ft_mod_sm .pin{font-size:.88em}.dictNaver-Entry-ja .detail_hj .ft_mod .section.section_phonetic h5,.dictNaver-Entry-ja .ft_mod h5{font-size:1.5em}.dictNaver-Entry-ja .ft_mod .srch_box .srch_top .entry{font-size:1.38em;line-height:1.69}.dictNaver-Entry-ja .ft_mod .srch_box .srch_top .entry .jp{font-size:1.44em}.dictNaver-Entry-ja .ft_mod .section_article .entry .sw,.dictNaver-Entry-ja .ft_mod .section_word .entry .sw{font-size:1.38em}.dictNaver-Entry-ja .ft_mod h6{font-size:1.25em}.dictNaver-Entry-ja .ft_mod .pin{font-size:1.25em}.dictNaver-Entry-ja .ft_mod .lst li{font-size:1.25em;line-height:1.56}.dictNaver-Entry-ja .ft_mod.section_box .lst li .lst_txt{font-size:1.25em}.dictNaver-Entry-ja .ft_mod .lst li .jp{font-size:1.31em;line-height:1.56}.dictNaver-Entry-ja .ft_mod .top_dn dd .jp,.dictNaver-Entry-ja .ft_mod .top_dn dt .jp{font-size:1.25em}.dictNaver-Entry-ja .ft_mod .top_dn dd,.dictNaver-Entry-ja .ft_mod .top_dn dt{font-size:1.25em}.dictNaver-Entry-ja .ft_mod.srch_result .top_dn_v2 .ft_col3{top:0;vertical-align:top}.dictNaver-Entry-ja .ft_mod .section_example .lst .pin{font-size:1.19em}.dictNaver-Entry-ja .ft_mod .section{font-size:1.25em;line-height:1.5}.dictNaver-Entry-ja .ft_mod .section .jp{font-size:1.25em}.dictNaver-Entry-ja .ft_mod .section h4{line-height:1.13}.dictNaver-Entry-ja .ft_mod .srch_box .pin .img_info_wrap .info{font-size:1em;line-height:1.31}.dictNaver-Entry-ja .ft_mod.section_box.kor_food .food_desc .mean_wrap .mean{font-size:1.06em;line-height:1.5}.dictNaver-Entry-ja .ft_mod.section_box.kor_food .food_desc .mean_wrap .mean[lang=ja]{margin-top:17px;font-size:1.25em;line-height:1.69}.dictNaver-Entry-ja .ft_mod2 h5{font-size:1.63em}.dictNaver-Entry-ja .ft_mod2 h6{font-size:1.38em}.dictNaver-Entry-ja .ft_mod2 .pin{font-size:1.38em}.dictNaver-Entry-ja .ft_mod2 .lst li{font-size:1.38em;line-height:1.69}.dictNaver-Entry-ja .ft_mod3 h5{font-size:1.75em}.dictNaver-Entry-ja .ft_mod3 h6{font-size:1.5em}.dictNaver-Entry-ja .ft_mod3 .pin{font-size:1.5em}.dictNaver-Entry-ja .ft_mod3 .lst li{font-size:1.5em;line-height:1.81}.dictNaver-Entry-ja .srch_result .mw{margin-right:2px}.dictNaver-Entry-ja .srch_result .sw{margin-right:2px}.dictNaver-Entry-ja .srch_result .player{margin-right:2px}.dictNaver-Entry-ja .section_word .srch_box .lst li{padding-bottom:5px}.dictNaver-Entry-ja .section_word .entry .sw{margin-left:3px;font-size:1em;color:var(--color-font-grey);vertical-align:middle}.dictNaver-Entry-ja .section_word .lst{list-style:decimal;margin:0}.dictNaver-Entry-ja .section_word dd{line-height:1.2}.dictNaver-Entry-ja .section_word .srch_box .pin{padding-bottom:4px}.dictNaver-Entry-ja .section_word .srch_box .pin:last-child{padding-bottom:0}.dictNaver-Entry-ja .section_word .srch_box .lst_p{padding-bottom:10px}.dictNaver-Entry-ja .section_word .top_dn{margin:5px 0;padding-top:1px}.dictNaver-Entry-ja .section_article .srch_box{padding-bottom:.8em}.dictNaver-Entry-ja .section_article .entry .sw{margin-left:3px;font-size:.88em;color:var(--color-font-grey);vertical-align:middle}.dictNaver-Entry-ja .section_article .lst p{margin-top:10px}.dictNaver-Entry-ja .detail_hj .section_article .lst p,.dictNaver-Entry-ja .detail_jpkr .section_article .lst p,.dictNaver-Entry-ja .detail_krjp .section_article .lst p{margin-top:3px;padding-bottom:5px}.dictNaver-Entry-ja .detail_hj .section_article .lst p .ico_bl+span,.dictNaver-Entry-ja .detail_hj .section_article .lst p .kor+span,.dictNaver-Entry-ja .detail_jpkr .section_article .lst p .ico_bl+span,.dictNaver-Entry-ja .detail_jpkr .section_article .lst p .kor+span,.dictNaver-Entry-ja .detail_krjp .section_article .lst p .ico_bl+span,.dictNaver-Entry-ja .detail_krjp .section_article .lst p .kor+span{margin-right:10px}.dictNaver-Entry-ja .detail_hj .section_article .lst p .player,.dictNaver-Entry-ja .detail_jpkr .section_article .lst p .player,.dictNaver-Entry-ja .detail_krjp .section_article .lst p .player{position:relative;margin-left:-5px}.dictNaver-Entry-ja .detail_hj .section_article .lst p .kor,.dictNaver-Entry-ja .detail_jpkr .section_article .lst p .kor,.dictNaver-Entry-ja .detail_krjp .section_article .lst p .kor{display:block;margin-top:-3px;color:var(--color-font-grey)}.dictNaver-Entry-ja .detail_hj .section_article .lst p .kor .kor_link,.dictNaver-Entry-ja .detail_jpkr .section_article .lst p .kor .kor_link,.dictNaver-Entry-ja .detail_krjp .section_article .lst p .kor .kor_link{color:var(--color-font-grey)}.dictNaver-Entry-ja .detail_hj .section_article .lst p .kor .kor_link,.dictNaver-Entry-ja .detail_jpkr .section_article .lst p .kor .kor_link,.dictNaver-Entry-ja .detail_krjp .section_article .lst p .kor .kor_link{color:var(--color-font-grey)}.dictNaver-Entry-ja .detail_hj .section_article ul.lst,.dictNaver-Entry-ja .detail_jpkr .section_article ul.lst,.dictNaver-Entry-ja .detail_krjp .section_article ul.lst{padding-left:10px;margin-left:16px}.dictNaver-Entry-ja .section_example .lst li{margin-bottom:.8em}.dictNaver-Entry-ja .section_example .lst p{margin:0;color:currentColor}.dictNaver-Entry-ja .section_example .lst .jp{font-size:1em}.dictNaver-Entry-ja .section_example .lst .pin{position:relative;top:-2px;font-size:1.06em}.dictNaver-Entry-ja .section_example .cen_box2{margin-left:10px}.dictNaver-Entry-ja .detail_krjp .tc-panels .section.section_proverb{padding:0 0 13px 0}.dictNaver-Entry-ja .section_proverb h4{padding-top:30px}.dictNaver-Entry-ja .section_proverb .lst{padding:5px 10px 0 27px}.dictNaver-Entry-ja .section_proverb .player{margin-left:5px}.dictNaver-Entry-ja .section_proverb .lst .kor{display:block;color:var(--color-font-grey)}.dictNaver-Entry-ja .section_proverb .lst .kor .kor_link{color:var(--color-font-grey)}.dictNaver-Entry-ja .section_proverb .lst p{padding-bottom:10px}.dictNaver-Entry-ja .section_expression{padding:0!important}.dictNaver-Entry-ja .section_expression h4{padding-top:30px}.dictNaver-Entry-ja .section_expression .player{margin-left:5px}.dictNaver-Entry-ja .section_expression .lst .kor_link,.dictNaver-Entry-ja .section_expression .lst_txt a{color:currentColor}.dictNaver-Entry-ja .section_compound{padding:0!important}.dictNaver-Entry-ja .section_compound h4{padding-top:30px}.dictNaver-Entry-ja .section_compound .lst .kor_link,.dictNaver-Entry-ja .section_compound .lst_txt a{color:currentColor}.dictNaver-Entry-ja .section_relhanja{padding:0!important}.dictNaver-Entry-ja .section_relhanja h6{margin:0 10px}.dictNaver-Entry-ja .section_relhanja .top_dn{padding-left:10px}.dictNaver-Entry-ja .section_relhanja .top_dt2{clear:none;margin-left:10px}.dictNaver-Entry-ja .section_relhanja .top_dn.top_dn_v2{padding-bottom:0}.dictNaver-Entry-ja .section_relhanja.section.idiom .entry2 .jp{font-size:1.13em;line-height:1.25}.dictNaver-Entry-ja .section_relhanja.section.idiom .entry2 a.jp{vertical-align:middle}.dictNaver-Entry-ja .srch_result .section_sptrans{margin-top:0}.dictNaver-Entry-ja .section_sptrans.section h4{margin-bottom:0;padding-bottom:6px;border:0}.dictNaver-Entry-ja .lst2 li .lst_p .jap_ico,.dictNaver-Entry-ja .section_sptrans .srch_box .lst_p .jap_ico{padding-right:8px;margin-right:5px;background-position:100% 6px}.dictNaver-Entry-ja .tc-panels .section.section_phonetic{padding-top:30px}.dictNaver-Entry-ja .detail_hj .section.section_phonetic h5{font-size:1.31em;color:currentColor}.dictNaver-Entry-ja .section_phonetic .entry{margin-bottom:0;font-weight:400}.dictNaver-Entry-ja .section.section_phonetic .pin{margin:4px 0 4px 10px;color:var(--color-font-grey)}.dictNaver-Entry-ja .section_phonetic .lst.lst_v3{margin-left:10px;padding-bottom:10px}.dictNaver-Entry-ja .section_phonetic ol.lst.lst_v3{margin-left:22px}.dictNaver-Entry-ja .section_phonetic ol.lst.lst_v3 li{padding-bottom:0}.dictNaver-Entry-ja .section_phonetic ol.lst.lst_v3 li .lst_txt{padding-bottom:0}.dictNaver-Entry-ja .section_phonetic .lst .inner_lst{padding-left:0;padding-bottom:0}.dictNaver-Entry-ja .section_phonetic .lst .lst_txt .pin{display:inline;margin-left:0;margin-right:4px;vertical-align:0}.dictNaver-Entry-ja .tc-panels .section.section_ideographic{padding-top:30px}.dictNaver-Entry-ja .detail_hj .section.section_ideographic h5{font-size:1.31em;color:currentColor}.dictNaver-Entry-ja .section_ideographic .entry{margin-bottom:0;font-weight:400}.dictNaver-Entry-ja .section_ideographic .lst.lst_v3{padding-bottom:13px}.dictNaver-Entry-ja .section_ideographic .lst.lst_v3 .inner_lst{padding-bottom:0}.dictNaver-Entry-ja .section_ideographic .lst.lst_v3 .inner_lst .lst_txt{padding-bottom:0}.dictNaver-Entry-ja .section_ideographic .lst.lst_v2.lst_v3{margin-left:10px;padding-bottom:10px}.dictNaver-Entry-ja .section_ideographic .lst.lst_v2.lst_v3 .inner_lst{padding-left:0}.dictNaver-Entry-ja .section_ideographic .lst .lst_txt .pin{display:inline;margin-right:4px;vertical-align:0}.dictNaver-Entry-ja .section_box .section_ideographic .pin{color:var(--color-font-grey);margin:1px 0 3px 10px}.dictNaver-Entry-ja .top_dn{padding-top:4px;zoom:1}.dictNaver-Entry-ja .top_dn:after{display:block;height:0;visibility:hidden;clear:both;content:""}.dictNaver-Entry-ja .top_dn dd,.dictNaver-Entry-ja .top_dn dt{max-width:80%;float:left;font-size:1em;margin:0;line-height:1.19}.dictNaver-Entry-ja .top_dn dt{margin:0 5px 5px 0;padding:0 4px;border-radius:1px;line-height:1}.dictNaver-Entry-ja .top_dn dt .blind{visibility:visible;position:static;width:auto;height:auto;vertical-align:middle;font-size:1em;line-height:1;color:#778cab}.dictNaver-Entry-ja .top_dn dd .jp,.dictNaver-Entry-ja .top_dn dt .jp{font-size:1em}.dictNaver-Entry-ja .top_dn.top_dn_v2{clear:both;padding-top:0;margin:0}.dictNaver-Entry-ja .top_dn.top_dn_v2 dd{color:#777}.dictNaver-Entry-ja .top_dn .top_dt4{margin-left:14px}.dictNaver-Entry-ja .top_dt,.dictNaver-Entry-ja .top_dt2,.dictNaver-Entry-ja .top_dt3,.dictNaver-Entry-ja .top_dt4{position:relative;top:-1px;display:inline-block;min-width:21px;min-height:13px;text-align:center}.dictNaver-Entry-ja .top_dt2{clear:both}.dictNaver-Entry-ja .top_dn .top_dt3 .blind,.dictNaver-Entry-ja .top_dn .top_dt4 .blind{color:#9da1a8}.dictNaver-Entry-ja .top_dn .bar{margin:0 4px}.dictNaver-Entry-ja .srch_box .srch_top .entry .jp{font-size:1.19em;letter-spacing:-1px}.dictNaver-Entry-ja .srch_result .top_dn dd{overflow:hidden;position:relative;top:-2px;max-width:85%;white-space:nowrap;text-overflow:ellipsis}.dictNaver-Entry-ja .srch_result .top_dn_v2 dd{top:0}.dictNaver-Entry-ja .spot_area .top_dn.top_dn_v2 dd em.ps2{display:inline-block;margin-left:7px}.dictNaver-Entry-ja .srch_result .top_dn_v2 .ft_col3{top:-2px}.dictNaver-Entry-ja .dt{margin:0 10px 0;border:solid 1px #ebebeb;background-color:#f7f7f7}.dictNaver-Entry-ja .dt .tb{display:table;width:100%;overflow:hidden}.dictNaver-Entry-ja .dt li{display:table-cell;width:33%}.dictNaver-Entry-ja .dt li:first-child{background:0 0}.dictNaver-Entry-ja .dt .wh{width:100%;background:0 0}.dictNaver-Entry-ja .dt li a{display:inline-block;width:100%;padding:.6em 0 .5em;color:var(--color-font-grey);text-align:center;font-size:1em}.dictNaver-Entry-ja .dt li a em{font-size:.89em}.dictNaver-Entry-ja .dt li .on{color:currentColor;font-weight:700}.dictNaver-Entry-ja .dt li .on em{color:#e51313}.dictNaver-Entry-ja .spi_wrap{margin:0 auto;padding:20px 0 0}.dictNaver-Entry-ja .detail_hj .spi_wrap,.dictNaver-Entry-ja .detail_jpkr .spi_wrap,.dictNaver-Entry-ja .detail_krjp .spi_wrap{padding:10px 0}.dictNaver-Entry-ja .lang_skin .module_handwriting_func_item{letter-spacing:-1px}.dictNaver-Entry-ja .ts{width:100%;font-family:"나눔고딕",NanumGothic,"굴림",Gulim,Helvetica,sans-serif}.dictNaver-Entry-ja .ts h1{height:32px;padding:6px 10px;border-bottom:1px solid #01af34;background-color:#03c73c;color:#fff}.dictNaver-Entry-ja .ts h1 ul{display:inline-block;text-align:center;font-weight:400;overflow:hidden}.dictNaver-Entry-ja .ts h1 ul li a{padding:8px 9px 8px 10px;height:16px;display:block;overflow:hidden}.dictNaver-Entry-ja .ts h1 ul .tab_name{display:block;overflow:hidden;width:100%;height:100%;font-size:.88em;color:#fff;visibility:visible;line-height:1.06}.dictNaver-Entry-ja .ts .help_wrap{position:relative;display:inline-block;vertical-align:middle;margin-left:-4px;width:20px;z-index:102}.dictNaver-Entry-ja .ts .help_wrap .help{display:inline-block;vertical-align:top;width:20px;height:20px;background-position:-120px -120px}.dictNaver-Entry-ja .ts .kiclo{display:block;padding:8px 3px;width:auto;height:auto;background-image:none;position:absolute;top:8px;right:10px;background-color:transparent}.dictNaver-Entry-ja .ts .kiclo span{display:block;height:100%;position:relative;visibility:visible;overflow:visible;width:auto;font-size:.88em;line-height:.81;letter-spacing:1px;color:#fff;text-indent:1px;font-weight:400;font-family:"나눔고딕",NanumGothic,"굴림",Gulim,Helvetica,sans-serif}.dictNaver-Entry-ja .top_a,.dictNaver-Entry-ja .top_a2,.dictNaver-Entry-ja .top_a3{height:32px}.dictNaver-Entry-ja .top_a,.dictNaver-Entry-ja .top_a2,.dictNaver-Entry-ja .top_a2 .line,.dictNaver-Entry-ja .top_a3,.dictNaver-Entry-ja .top_a3 .line{background-position:0 0}.dictNaver-Entry-ja .top_a{float:left;background-position:0 -80px}.dictNaver-Entry-ja .top_a.on,.dictNaver-Entry-ja .top_a2.on,.dictNaver-Entry-ja .top_a3.on{background-color:#01b536}.dictNaver-Entry-ja .top_a2{position:relative;float:left;background-position:50% -80px}.dictNaver-Entry-ja .top_a2 .line,.dictNaver-Entry-ja .top_a3 .line{position:absolute;left:-1px;bottom:0;width:1px;height:100%;background-position:-10px -40px}.dictNaver-Entry-ja .top_a3{position:relative;float:left;background-position:99% -80px}.dictNaver-Entry-ja .kia{padding-right:54px}.dictNaver-Entry-ja .wide{padding-right:78px}.dictNaver-Entry-ja ._fingerWrite.wide{padding-right:161px}.dictNaver-Entry-ja ._backPanel{background-color:#fff}.dictNaver-Entry-ja .kia.wide .butt{position:absolute;top:0;right:0;width:80px;height:191px}.dictNaver-Entry-ja .bn1,.dictNaver-Entry-ja .bn2,.dictNaver-Entry-ja .bn3,.dictNaver-Entry-ja .bn4,.dictNaver-Entry-ja .bn5{width:20%}.dictNaver-Entry-ja .helpt{display:block;position:absolute;top:27px;left:-156px;z-index:101;padding:14px 10px 13px 9px;border:1px solid #c9c7ca;background-color:#fff}.dictNaver-Entry-ja .helpt .sbox{width:195px;font-size:.81em;font-weight:400;line-height:1.13;color:currentColor;letter-spacing:-1px;text-align:left}.dictNaver-Entry-ja .helpt .sbox:after{position:absolute;top:-3px;right:45px;width:6px;height:3px;content:"";background-position:100% 0}.dictNaver-Entry-ja .helpt .se{padding-top:.5em}.dictNaver-Entry-ja .helpt .sebt{display:inline-block;width:21px;height:18px;margin-top:-2px;margin-right:3px;vertical-align:middle}.dictNaver-Entry-ja .hs.ki{height:51px}.dictNaver-Entry-ja .hs.ki .hsw{padding-right:48px}.dictNaver-Entry-ja .hs.ki .itw{font-size:1.13em;line-height:2;vertical-align:middle}.dictNaver-Entry-ja .hs.ki .itwb{border:solid 1px #cfd7e0;background-color:#e4eefc}.dictNaver-Entry-ja .hs.ki .itwb2{border:solid 1px #cfd7e0;background-color:#e4eefc}.dictNaver-Entry-ja .hs.ki .sm{font-size:.81em}.dictNaver-Entry-ja .hs .it.sd{color:currentColor}.dictNaver-Entry-ja .hs.ki .hssbt{right:10px}.dictNaver-Entry-ja .hs.ki .hsw .clrt{right:51px}.dictNaver-Entry-ja .kia .butt .del .ico,.dictNaver-Entry-ja .kia .butt .del_v1 .ico,.dictNaver-Entry-ja .kia .butt .shift .ico,.dictNaver-Entry-ja .kia .butt .space .ico,.dictNaver-Entry-ja .kib .butt .del .ico,.dictNaver-Entry-ja .kib .butt .del_v1 .ico{background-size:26px 70px}.dictNaver-Entry-ja .kia .butt .del.on .ico,.dictNaver-Entry-ja .kia .butt .del_v1.on .ico,.dictNaver-Entry-ja .kia .butt .shift.on .ico,.dictNaver-Entry-ja .kia .butt .space.on .ico,.dictNaver-Entry-ja .kib .butt .del.on .ico,.dictNaver-Entry-ja .kib .butt .del_v1.on .ico{background-size:26px 70px}.dictNaver-Entry-ja .kia{overflow:hidden;position:relative;border-top:solid 1px #828282}.dictNaver-Entry-ja .kia .pad{width:100%}.dictNaver-Entry-ja .kia .l1,.dictNaver-Entry-ja .kia .l2,.dictNaver-Entry-ja .kia .l3,.dictNaver-Entry-ja .kia .l4{position:relative;height:53px}.dictNaver-Entry-ja .kia .l4{height:52px}.dictNaver-Entry-ja .kia.wide .l1,.dictNaver-Entry-ja .kia.wide .l2,.dictNaver-Entry-ja .kia.wide .l3{height:48px}.dictNaver-Entry-ja .kia.wide .l4{height:47px}.dictNaver-Entry-ja .kia .pad a,.dictNaver-Entry-ja .kia .pad span{display:block;float:left;height:47px;margin-right:-1px;padding-top:5px;border-left:solid 1px #aeb0b6;border-bottom:solid 1px #aeb0b6;background:#e8e9ed;background:#e8e9ed -webkit-gradient(linear,0 0,0 70%,from(#fcfdfd),to(#e8e9ed));font-family:HiraKakuProN-W6;font-size:1.43em;color:currentColor;text-align:center;text-shadow:2px 2px 1px #fff}.dictNaver-Entry-ja .kia.wide .pad a,.dictNaver-Entry-ja .kia.wide .pad span{height:42px;padding-top:5px}.dictNaver-Entry-ja .kia .pad a:first-child{margin:0}.dictNaver-Entry-ja .kia .pad a sub{position:relative;top:4px;font-size:.7em;line-height:.3em}.dictNaver-Entry-ja .kia .pad.sam a,.dictNaver-Entry-ja .kia .pad.sam span{color:#909090}.dictNaver-Entry-ja .kia .pad .on{border-left-color:#23780b;border-bottom-color:#23780b;background:#3bce08;color:#fff;text-shadow:1px 1px 1px rgba(0,0,0,.2)}.dictNaver-Entry-ja .kia .pad .sm{height:34px;padding-top:18px;font-size:1.14em;color:#000!important}.dictNaver-Entry-ja .kia.wide .pad .sm{height:31px;padding-top:16px}.dictNaver-Entry-ja .kia .pad .sm sub{padding-left:5px;font-size:.86em}.dictNaver-Entry-ja .kia .l4 a,.dictNaver-Entry-ja .kia .l4 span{border-bottom:0!important}.dictNaver-Entry-ja .kia .shf{position:absolute;top:53px;z-index:2;width:100%}.dictNaver-Entry-ja .kia.wide .shf{top:48px;width:100%;height:48px}.dictNaver-Entry-ja .kia .shf a,.dictNaver-Entry-ja .kia .shf span{margin-right:-1px;border-left-color:#626366!important;border-bottom-color:#626366!important;background:#f0f0ef;background:#f0f0ef -webkit-gradient(linear,0 0,0 70%,from(#fcfcfb),to(#f0f0ef))!important;color:#208d00!important}.dictNaver-Entry-ja .kia .shf .on{background:#3bce08;color:#fff!important}.dictNaver-Entry-ja .kia .shf.wa{right:0;left:none}.dictNaver-Entry-ja .kia .shf.ya{right:0;left:none}.dictNaver-Entry-ja .kia .butt{overflow:hidden;position:absolute;top:0;right:0;width:56px;height:211px;background-color:#05c53d;border-left:1px solid #04a132}.dictNaver-Entry-ja .kia.wide .butt{width:80px}.dictNaver-Entry-ja .kia .butt .del,.dictNaver-Entry-ja .kia .butt .del_v1,.dictNaver-Entry-ja .kia .butt .search,.dictNaver-Entry-ja .kia .butt .shift,.dictNaver-Entry-ja .kia .butt .space,.dictNaver-Entry-ja .kib .butt .del,.dictNaver-Entry-ja .kib .butt .del_v1{display:-webkit-box;-webkit-box-pack:center;-webkit-box-orient:vertical;text-align:center}.dictNaver-Entry-ja .kia .butt .del,.dictNaver-Entry-ja .kib .butt .del{height:105px;border-bottom:solid 1px #05b337}.dictNaver-Entry-ja .kia .butt .del_v1,.dictNaver-Entry-ja .kib .butt .del_v1{height:46px;border-bottom:solid 1px #05b337}.dictNaver-Entry-ja .kia .butt .shift{height:105px;border-bottom:solid 1px #05b337}.dictNaver-Entry-ja .kia .butt .space{height:45px;border-bottom:solid 1px #05b337}.dictNaver-Entry-ja .kia .butt .search{height:70px}.dictNaver-Entry-ja .kia .butt .ico,.dictNaver-Entry-ja .kia .butt .search .txt,.dictNaver-Entry-ja .kib .butt .ico{display:inline-block}.dictNaver-Entry-ja .kia .butt .del .ico,.dictNaver-Entry-ja .kia .butt .del.on .ico,.dictNaver-Entry-ja .kia .butt .del_v1 .ico,.dictNaver-Entry-ja .kia .butt .del_v1.on .ico,.dictNaver-Entry-ja .kib .butt .del .ico,.dictNaver-Entry-ja .kib .butt .del.on .ico,.dictNaver-Entry-ja .kib .butt .del_v1 .ico,.dictNaver-Entry-ja .kib .butt .del_v1.on .ico{width:26px;height:17px;background-position:0 0}.dictNaver-Entry-ja .kia .butt .shift .ico,.dictNaver-Entry-ja .kia .butt .shift.on .ico{width:26px;height:17px;background-position:0 -30px}.dictNaver-Entry-ja .kia .butt .space .ico,.dictNaver-Entry-ja .kia .butt .space.on .ico{width:26px;height:7px;background-position:0 -60px}.dictNaver-Entry-ja .kia .butt .search .txt{font-size:.94em;color:#fff;text-align:center}.dictNaver-Entry-ja .kia .butt .search.on .txt{color:#f4ff3c}.dictNaver-Entry-ja .kia.wide .butt .del,.dictNaver-Entry-ja .kia.wide .butt .search,.dictNaver-Entry-ja .kia.wide .butt .shift,.dictNaver-Entry-ja .kia.wide .butt .space{height:95px!important}.dictNaver-Entry-ja .kia .butt .del.shot,.dictNaver-Entry-ja .kib .butt .del.shot{height:52px!important}.dictNaver-Entry-ja .kib{overflow:hidden;position:relative;padding-right:108px;border-top:solid 1px #828282}.dictNaver-Entry-ja .wide2{padding-right:108px}.dictNaver-Entry-ja .kib .canv{overflow:hidden;float:left;width:100%;height:211px;background-color:#e5e5e7}.dictNaver-Entry-ja .kib.wide .canv{overflow:hidden;width:100%;height:191px;background-color:#e5e5e7}.dictNaver-Entry-ja .kib .pre{overflow:hidden;float:left;position:absolute;top:0;right:55px;width:53px}.dictNaver-Entry-ja .kib.wide .pre{right:81px;width:80px}.dictNaver-Entry-ja .kib .pre a,.dictNaver-Entry-ja .kib .pre span{display:block;line-height:3.25;height:52px;border-left:solid 1px #b5b5b5;border-bottom:solid 1px #d8d8d8;background:#f4f4f4;font-family:HiraKakuProN-W6;font-size:1.43em;color:currentColor;text-align:center;text-shadow:2px 2px 1px #fff}.dictNaver-Entry-ja .kib .pre .sm{font-size:1.14em}.dictNaver-Entry-ja .kib .pre .pg{border-bottom:0!important;font-size:1em}.dictNaver-Entry-ja .kib.wide .pre a,.dictNaver-Entry-ja .kib.wide .pre span{height:47px;line-height:2.94}.dictNaver-Entry-ja .a .kib.wide .pre a,.dictNaver-Entry-ja .a .kib.wide .pre span{height:47px;line-height:2.94}.dictNaver-Entry-ja .kib.wide .pre .pg{line-height:2.94}.dictNaver-Entry-ja .a .kib .pre .pg{line-height:3.38}.dictNaver-Entry-ja .kib .pre .pg strong{padding-right:8px;font-weight:400;color:#707070}.dictNaver-Entry-ja .a .kib .pre .pg strong{background-position:right 6px}.dictNaver-Entry-ja .kib .pre span.pg strong{opacity:.75}.dictNaver-Entry-ja .kib .pre .pg em{font-weight:700;color:#303030}.dictNaver-Entry-ja .kib .txt{position:absolute;left:8px;bottom:6px;padding-right:122px;color:#a9a9a9;letter-spacing:-1px}.dictNaver-Entry-ja .kib .txt .hc{display:inline-block;visibility:visible;position:relative;left:auto;width:auto;height:auto;font-size:.63em;line-height:.75;vertical-align:middle}.dictNaver-Entry-ja .kib.wide .txt{padding-right:172px}.dictNaver-Entry-ja .kib .butt{overflow:hidden;float:right;position:absolute;top:0;right:0;width:55px;background-color:#05c53d;border-left:1px solid #04a132}.dictNaver-Entry-ja .kib .butt a .txt{display:-webkit-box;height:52px;font-size:.75em;line-height:.88;color:#fff;letter-spacing:-1px;text-align:center;vertical-align:middle;-webkit-box-align:center;-webkit-box-pack:center;position:static;padding:0}.dictNaver-Entry-ja .kib.wide .butt{right:0;width:81px}.dictNaver-Entry-ja .kib .butt .del{height:52px;border:1px solid #05b337;border-width:0 0 1px 0}.dictNaver-Entry-ja .kib .butt .del_v1{height:52px;border:1px solid #05b337;border-width:0 0 1px 0;background:#05c53d}.dictNaver-Entry-ja .kib .butt .del1{display:block;height:52px;border:1px solid #05b337;border-width:0 0 1px 0;background:#05c53d}.dictNaver-Entry-ja .kib .butt .dela{display:block;height:52px;border:1px solid #05b337;border-width:0 0 1px 0;background:#05c53d}.dictNaver-Entry-ja .kib.wide .butt .del,.dictNaver-Entry-ja .kib.wide .butt .del.shot,.dictNaver-Entry-ja .kib.wide .butt .del1,.dictNaver-Entry-ja .kib.wide .butt .dela{height:47px!important}.dictNaver-Entry-ja .bn1,.dictNaver-Entry-ja .bn2,.dictNaver-Entry-ja .bn3,.dictNaver-Entry-ja .bn4,.dictNaver-Entry-ja .bn5{position:absolute}.dictNaver-Entry-ja .shf .bn1,.dictNaver-Entry-ja .shf .bn2,.dictNaver-Entry-ja .shf .bn3,.dictNaver-Entry-ja .shf .bn4,.dictNaver-Entry-ja .shf .bn5{box-shadow:5px 2px 10px rgba(0,0,0,.8)}.dictNaver-Entry-ja .kia .pad .shf a:first-child{margin:0;box-shadow:3px 2px 10px rgba(0,0,0,.8)}.dictNaver-Entry-ja .kia .pad .bn1{left:0;border-left:0}.dictNaver-Entry-ja .bn2{left:20%}.dictNaver-Entry-ja .bn3{left:40%}.dictNaver-Entry-ja .bn4{left:60%}.dictNaver-Entry-ja .bn5{left:80%}.dictNaver-Entry-ja .btjc{width:100%}.dictNaver-Entry-ja .btjc2{width:299px;margin:0 auto}.dictNaver-Entry-ja .close2,.dictNaver-Entry-ja .jc,.dictNaver-Entry-ja .jc4,.dictNaver-Entry-ja .jcd,.dictNaver-Entry-ja .jcd4,.dictNaver-Entry-ja .jcd5,.dictNaver-Entry-ja .jct{display:block;position:absolute;background-size:270px 104px}.dictNaver-Entry-ja .jc,.dictNaver-Entry-ja .jc4{bottom:0;z-index:99;width:299px;height:97px;background-size:300px 97px}.dictNaver-Entry-ja .jct{top:15px;left:10px;width:55px;height:55px}.dictNaver-Entry-ja .jcd{top:15px;left:80px;width:161px;height:54px;background-position:-65px 0}.dictNaver-Entry-ja .jc4 .jcd2{top:15px;left:75px;width:210px;height:53px;background-size:270px 104px}.dictNaver-Entry-ja .jc5 .jcd{top:15px;left:80px;width:186px;height:49px;background-position:0 -55px}.dictNaver-Entry-ja .close2{top:11px;right:6px;width:23px;height:22px;background-size:102px 308px}.dictNaver-Entry-ja .jc5{position:absolute;left:0;bottom:0;z-index:99;width:100%;height:86px;border-top:1px solid currentColor;border-bottom:1px solid currentColor;background:#3a4555}.dictNaver-Entry-ja .btn_up{overflow:hidden;margin:20px 0 0;margin-top:20px;padding:0 10px}.dictNaver-Entry-ja .close2,.dictNaver-Entry-ja .jc,.dictNaver-Entry-ja .jc6,.dictNaver-Entry-ja .jc7,.dictNaver-Entry-ja .jcd2,.dictNaver-Entry-ja .jct2{display:block;position:absolute;background-size:275px 123px}.dictNaver-Entry-ja .jc,.dictNaver-Entry-ja .jc6{bottom:0;z-index:99;width:300px;height:97px;background-size:300px 97px}.dictNaver-Entry-ja .jct2{top:13px;left:13px;width:55px;height:55px}.dictNaver-Entry-ja .jcd2{top:15px;left:75px;width:161px;height:52px;background-position:-60px 0}.dictNaver-Entry-ja .jc6 .jcd2{top:15px;left:75px;width:213px;height:55px}.dictNaver-Entry-ja .jc7 .jcd2{position:relative;top:15px;left:80px;width:230px;height:68px;background-position:0 -55px}.dictNaver-Entry-ja .jc7 .jcd2 a{display:block;position:absolute;right:102px;bottom:0;width:55px;height:15px}.dictNaver-Entry-ja .close2{top:11px;right:6px;width:23px;height:22px;background-size:102px 308px}.dictNaver-Entry-ja .jc7{position:absolute;left:0;bottom:0;z-index:99;width:100%;height:95px;border-top:1px solid currentColor;border-bottom:1px solid currentColor;background:#3a4555}.dictNaver-Entry-ja .btn_add{display:inline-block;position:absolute;top:16px;right:10px;width:30px;height:30px;background-position:0 0;border:0;-webkit-appearance:none;z-index:10;text-indent:-999em;border-radius:0}.dictNaver-Entry-ja .pop_txt{display:inline-block;position:absolute;top:54px;right:10px;padding:15px 16px 15px 17px;border:1px solid #a5a8b0;background:#fff;font-size:.88em;color:#494b56;z-index:20}.dictNaver-Entry-ja .pop_txt .arr_top{display:block;position:absolute;top:-7px;right:8px;width:12px;height:8px;background-position:-60px 0}.dictNaver-Entry-ja .btn_txt_style1{width:auto;height:auto;border:1px solid #b9b9b9;border-radius:4px;background-size:1px 100px;vertical-align:middle}.dictNaver-Entry-ja .btn_txt_style1 .hc{position:relative;overflow:visible;visibility:visible;left:0;width:auto;height:auto;min-width:52px;padding:0 6px;font-size:.69em;line-height:1.63;letter-spacing:-1px;text-indent:0;color:var(--color-font-grey)}.dictNaver-Entry-ja h2 .btn_txt_style1 .hc{font-weight:400}.dictNaver-Entry-ja .btn_txt_style1.close,.dictNaver-Entry-ja .btn_txt_style1.open{width:auto;padding-right:6px}.dictNaver-Entry-ja .btn_txt_style1.open .hc{min-width:43px;padding-right:9px;background-size:7px 42px}.dictNaver-Entry-ja .btn_txt_style1.close .hc{min-width:43px;padding-right:9px;background-size:7px 42px}.dictNaver-Entry-ja .btn_r_abs{position:relative;right:12px;text-align:right;margin-bottom:-18px}.dictNaver-Entry-ja .btn_r_abs .btn_txt_style1{position:relative;display:inline-block;top:0;right:0}.dictNaver-Entry-ja .btn_txt_style1.ft_big,.dictNaver-Entry-ja .btn_txt_style1.ft_small{width:30px;padding:0;text-align:center;font-weight:700;color:#aaa;border:1px solid #afafaf}.dictNaver-Entry-ja .btn_txt_style1.ft_small{margin-right:-1px;padding:0 1px;border-top-right-radius:0;border-bottom-right-radius:0;border-right:0}.dictNaver-Entry-ja .btn_txt_style1.ft_small .hc{position:relative;top:1px;padding:0 6px 0 3px;font-size:.75em;color:#999}.dictNaver-Entry-ja .btn_txt_style1.ft_big{border-top-left-radius:0;border-bottom-left-radius:0}.dictNaver-Entry-ja .btn_txt_style1.ft_big .hc{position:relative;top:1px;padding:0 5px 0 3px;font-size:.94em;color:#999}.dictNaver-Entry-ja .btn_txt_style1.ft_big.on .hc,.dictNaver-Entry-ja .btn_txt_style1.ft_small.on .hc{color:#444}.dictNaver-Entry-ja .con_clt .ask,.dictNaver-Entry-ja .con_clt .ask .arr_top{background-size:80px 80px}.dictNaver-Entry-ja .con_clt .ask,.dictNaver-Entry-ja .con_clt .txt_box1{position:relative;top:-1px}.dictNaver-Entry-ja .con_clt .txt_box1{display:inline-block;width:auto;height:auto;padding:0 5px 0 6px;border:1px solid #d8d8d8;line-height:0;background:#fff;vertical-align:top}.dictNaver-Entry-ja .con_clt .txt_box1 .hc{visibility:visible;overflow:visible;position:relative;left:0;width:auto;height:auto;font-size:.81em;color:#6c6c6c;line-height:1.19}.dictNaver-Entry-ja .con_clt .ask{position:relative;display:inline-block;width:20px;height:20px;margin-left:2px;background-position:-55px 0;vertical-align:middle}.dictNaver-Entry-ja .con_clt .ask a{display:block;width:20px;height:20px}.dictNaver-Entry-ja .con_clt .ask .pop_clt{display:inline-block;position:absolute;padding:9px 28px 3px 13px;width:198px;border:1px solid #a5a8b0;background:#fff;font-size:.81em;color:#777;z-index:20;top:28px}.dictNaver-Entry-ja .con_clt .ask .pop_clt p{padding-bottom:7px;color:#777;font-size:.81em;line-height:1.19}.dictNaver-Entry-ja .con_clt .ask .pop_clt a{display:block;position:absolute;top:5px;right:5px;background-position:100% -45px}.dictNaver-Entry-ja .con_clt .ask .arr_top{display:block;position:absolute;top:22px;left:4px;width:12px;height:8px;background-position:-45px -45px;z-index:20}.dictNaver-Entry-ja .con_clt .ask .arr_top.off,.dictNaver-Entry-ja .con_clt .ask .pop_clt.off{display:none!important}.dictNaver-Entry-ja .srch_box .srch_top .con_clt .txt_box1{vertical-align:middle}.dictNaver-Entry-ja .srch_box .srch_top .con_clt .ask,.dictNaver-Entry-ja .srch_box .srch_top .con_clt .txt_box1{top:0}.dictNaver-Entry-ja .con_clt .arr_top,.dictNaver-Entry-ja .con_clt .pop_clt a{background-size:80px 80px}.dictNaver-Entry-ja .con_clt{display:inline-block;position:relative;line-height:0;font-weight:400}.dictNaver-Entry-ja .con_clt a{display:block;width:20px;height:20px}.dictNaver-Entry-ja .con_clt .pop_clt{display:inline-block;position:absolute;padding:9px 28px 3px 13px;width:198px;border:1px solid #a5a8b0;background:#fff;font-size:.81em;color:#777;z-index:20;top:28px}.dictNaver-Entry-ja .con_clt .pop_clt p{padding-bottom:7px;color:#777;font-size:.81em;line-height:1.19}.dictNaver-Entry-ja .con_clt .pop_clt a{display:block;position:absolute;top:5px;right:5px;background-position:100% -45px}.dictNaver-Entry-ja .con_clt .arr_top{display:block;position:absolute;top:22px;left:50%;margin-left:-6px;width:12px;height:8px;background-position:-45px -45px;z-index:20}.dictNaver-Entry-ja .con_clt .arr_top.off,.dictNaver-Entry-ja .con_clt .pop_clt.off{display:none!important}.dictNaver-Entry-ja .srch_box .srch_top .con_clt{line-height:0}.dictNaver-Entry-ja .btn_collect{padding:0 5px 0 6px;background:#fff;border:1px solid #d8d8d8;font-size:.81em;color:#6c6c6c;line-height:1.19}.dictNaver-Entry-ja .tts_wrap{display:inline-block;line-height:0}.dictNaver-Entry-ja .btn_tts{padding:0 5px 0 6px;background:#fff;border:1px solid #d8d8d8;font-size:.81em;color:#6c6c6c;line-height:1.19}.dictNaver-Entry-ja .ly_wrap{position:absolute;left:0;right:0;text-align:center}.dictNaver-Entry-ja .ly_tts_desc{position:relative;display:inline-block;padding:8px 12px;background:#fffef0;border:1px solid #c3c1a2;text-align:left;z-index:50}.dictNaver-Entry-ja .ly_tts_desc .title{display:block;font-size:.88em;line-height:.94;font-weight:700;color:#11c948}.dictNaver-Entry-ja .ly_tts_desc .text{margin-top:3px;padding:0;font-size:.94em;line-height:1.13;letter-spacing:-.075em;color:currentColor}.dictNaver-Entry-ja .tts_wrap .btn_close{position:absolute;overflow:hidden;top:0;right:0;width:29px;height:29px;background-size:29px auto;border:0;font-size:0;color:transparent}.dictNaver-Entry-ja .srch_box .srch_top .tts_wrap{line-height:0}.dictNaver-Entry-ja .websource{display:inline-block;padding-left:4px;font-family:"돋움",dotum,Helvetica,sans-serif;font-size:.75em;color:#999}.dictNaver-Entry-ja .txt_origin{padding:0 10px 10px 0;text-align:right;color:#767676;font-size:.88em}.dictNaver-Entry-ja .txt_origin a{color:#767676}.dictNaver-Entry-ja #naver_dic_audio_controller{display:block}.dictNaver-Entry-ja .container{background-color:#e6e6e6}.dictNaver-Entry-ja .srch_box .pin .img_info_wrap{position:relative;margin-bottom:-11px;padding:7px 0 9px;overflow:hidden;background-color:#fff;color:currentColor;display:flex;align-items:center}.dictNaver-Entry-ja .srch_box .pin .img_info_wrap .img_area{position:relative;height:80px;padding-right:110px;margin:0 8px 0 -2px;line-height:4.38;font-size:0;overflow:hidden;display:-webkit-box;background-size:100% auto;background-position:50% 0;background-repeat:no-repeat}.dictNaver-Entry-ja .srch_box .pin .img_info_wrap .img_area:after{position:absolute;top:0;right:0;bottom:0;left:0;border:5px solid #fff;content:""}.dictNaver-Entry-ja .srch_box .pin .img_info_wrap .info{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:ellipsis;max-height:60px;word-wrap:break-word;overflow:hidden;font-size:.81em;line-height:1.13;white-space:normal;color:var(--color-font-grey)}.dictNaver-Entry-ja .section_box.kor_food .section{padding:10px 0 10px;border-bottom:1px solid #d5d5d5}.dictNaver-Entry-ja .section_box.kor_food .section .image_wrap{position:relative;padding:15px 15px 5px}.dictNaver-Entry-ja .section_box.kor_food .section .image_wrap .image_area{text-align:center}.dictNaver-Entry-ja .section_box.kor_food .section .image_wrap img{max-width:100%;max-height:400px;vertical-align:top}.dictNaver-Entry-ja .section_box.kor_food+.userentry_section{border-top:none}.dictNaver-Entry-ja .section_box.kor_food ul.lst .inner_lst{padding:0 15px}.dictNaver-Entry-ja .section_box.kor_food ol.lst .inner_lst{padding:0 15px 0 0}.dictNaver-Entry-ja .section_box.kor_food .lst li .lst_txt{font-size:1em}.dictNaver-Entry-ja .section_box.kor_food .lst li .lst_txt+p{margin-top:20px}.dictNaver-Entry-ja .section_box.kor_food .lst li>p{margin-top:10px;padding-bottom:12px}.dictNaver-Entry-ja .section_box.kor_food .lst li>p .ico_bl+span{margin-right:10px}.dictNaver-Entry-ja .section_box.kor_food .lst li>p .player{position:relative;margin-left:-5px}.dictNaver-Entry-ja .section_box.kor_food .lst li>p .kor{display:block;margin-top:-3px;color:var(--color-font-grey)}.dictNaver-Entry-ja .detail_jpkr .section_box.kor_food ol.lst li .cen_box2{margin:17px 0 0 -15px}.dictNaver-Entry-ja .section_box .section .source{display:block;padding:8px 15px 20px;font-size:.75em;text-align:right;color:#aaa;word-wrap:normal;word-break:break-all}.dictNaver-Entry-ja .section_box .section .source a{color:#aaa}.dictNaver-Entry-ja .section_box.kor_food .food_desc{border-top:9px solid #f0f0f0;border-bottom:9px solid #f0f0f0}.dictNaver-Entry-ja .section_box.kor_food .food_desc .section_tit{height:40px;padding:0 12px;border-bottom:1px solid #ebebeb;line-height:2.56;font-size:1em;color:#444}.dictNaver-Entry-ja .section_box.kor_food .food_desc .image_wrap{position:relative;padding:20px 15px 15px}.dictNaver-Entry-ja .section_box.kor_food .food_desc .image_wrap:after{display:block;position:absolute;bottom:0;left:3px;right:2px;content:"";height:1px;background-size:4px 1px;background-repeat:repeat-x}.dictNaver-Entry-ja .section_box.kor_food .food_desc .image_wrap .image_area{position:relative;text-align:center}.dictNaver-Entry-ja .section_box.kor_food .food_desc .image_wrap img{max-width:100%;max-height:400px;vertical-align:top}.dictNaver-Entry-ja .section_box.kor_food .food_desc .mean_wrap{padding:19px 14px 0;border-bottom:1px solid #e5e5e5}.dictNaver-Entry-ja .section_box.kor_food .food_desc .mean_wrap .mean{font-size:.94em;line-height:1.25}.dictNaver-Entry-ja .section_box.kor_food .food_desc .mean_wrap .mean+.mean{margin-top:13px}.dictNaver-Entry-ja .section_box.kor_food .food_desc .mean_wrap .mean[lang=ja]{font-size:1.06em;line-height:1.38}.dictNaver-Entry-ja .section_box.kor_food .food_desc .mean_wrap .source{display:block;padding:15px 0 20px;font-size:.75em;text-align:right;color:#aaa}.dictNaver-Entry-ja .section_box.kor_food .food_desc .mean_wrap .source a{color:#aaa}.dictNaver-Entry-ja .section.all:first-of-type{border:none}.dictNaver-Entry-ja .section .more2{padding-bottom:5px!important}.dictNaver-Entry-ja .lst_p{margin:0}.dictNaver-Entry-ja ._commonClose,.dictNaver-Entry-ja .btn_collect,.dictNaver-Entry-ja .btn_play,.dictNaver-Entry-ja .play,.dictNaver-Entry-ja .tbl_bx.srch,.dictNaver-Entry-ja .tts_wrap,.dictNaver-Entry-ja ruby rt{display:none!important}',""]),t.exports=i},689:function(t,i,r){var e=r(1352);t.exports="string"==typeof e?e:e.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/78.871ca4c9.js b/plugins/saladict-ztools/ext-saladic/assets/78.871ca4c9.js new file mode 100644 index 00000000..ebc454c8 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/78.871ca4c9.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[78],{1372:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(0),c=a.n(n),r="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const l=e=>{const{tag:t="div",html:a,...l}=e,i=Object(n.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[s,d]=Object(n.useState)(null);return r(()=>{if(i&&s){for(;s.childNodes.length>0;)s.childNodes[0].remove();s.appendChild(i)}},[i,s]),c.a.createElement(t,{...l,ref:d})}},694:function(e,t,a){"use strict";a.r(t),a.d(t,"DictRenren",(function(){return d}));var n=a(0),c=a.n(n),r=a(97),l=a(1),i=a(1372);const s=({slide:e})=>{const[t,a]=Object(n.useState)(240),[l,s]=Object(n.useState)(!1);return Object(n.useEffect)(()=>{s(!1)},[e.cover]),c.a.createElement("div",{className:"dictRenren-Slide"},c.a.createElement("div",{className:"dictRenren-Slide_Speaker"},c.a.createElement(r.c,{src:e.mp3,width:20})),c.a.createElement("figure",{style:{height:t}},c.a.createElement("img",{src:e.cover,alt:e.en,className:"dictRenren-Slide_Cover"+(l?" isLoaded":""),onLoad:e=>{a(e.currentTarget.height),s(!0)}}),c.a.createElement("figcaption",null,c.a.createElement(i.a,{tag:"p",html:e.en,className:"dictRenren-Slide_En"}),c.a.createElement("p",{className:"dictRenren-Slide_Chs"},e.chs))))},d=({result:e})=>{const[t,a]=Object(n.useState)(0),[r,i]=Object(n.useState)({});Object(n.useEffect)(()=>{a(0)},[e]);return c.a.createElement(c.a.Fragment,null,c.a.createElement("select",{onChange:e=>a(Number(e.currentTarget.value)||0),value:t},e.map((e,t)=>c.a.createElement("option",{key:e.key,value:t},e.title))),r[e[t].key]?r[e[t].key].map(e=>c.a.createElement(s,{key:e.cover+e.mp3,slide:e})):c.a.createElement(c.a.Fragment,null,c.a.createElement(s,{slide:e[t].slide}),c.a.createElement("a",{className:"dictRenren-Detail",href:e[t].detail,onClick:async a=>{a.preventDefault(),a.stopPropagation();const n=e[t],c=await l.a.send({type:"DICT_ENGINE_METHOD",payload:{id:"renren",method:"getDetail",args:[n.detail]}});c&&c.length>0&&i(e=>({...e,[n.key]:c}))}},"⤋查看详情"),e[t].context.map(e=>c.a.createElement("div",{key:e.title,className:"dictRenren-Ctx"},c.a.createElement("p",{className:"dictRenren-Ctx_Title"},e.title),c.a.createElement("div",{className:"dictRenren-Ctx_Subtitles"},e.content.map(e=>c.a.createElement("p",{key:e},e)))))))};t.default=d}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/79.0e0906f2.js b/plugins/saladict-ztools/ext-saladic/assets/79.0e0906f2.js new file mode 100644 index 00000000..cce2e8db --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/79.0e0906f2.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[79],{1372:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(0),c=a.n(n),r="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const l=e=>{const{tag:t="div",html:a,...l}=e,s=Object(n.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[i,m]=Object(n.useState)(null);return r(()=>{if(s&&i){for(;i.childNodes.length>0;)i.childNodes[0].remove();i.appendChild(s)}},[s,i]),c.a.createElement(t,{...l,ref:m})}},695:function(e,t,a){"use strict";a.r(t),a.d(t,"DictShanbay",(function(){return s}));var n=a(0),c=a.n(n),r=a(97),l=a(1372);const s=({result:e})=>c.a.createElement(c.a.Fragment,null,e.title&&c.a.createElement("div",{className:"dictShanbay-HeaderContainer"},c.a.createElement("h1",{className:"dictShanbay-Title"},e.title),c.a.createElement("span",{className:"dictShanbay-Pattern"},e.pattern)),e.prons.length>0&&c.a.createElement("div",{className:"dictShanBay-HeaderContainer"},e.prons.map(({phsym:e,url:t})=>c.a.createElement(c.a.Fragment,{key:t},e," ",c.a.createElement(r.c,{src:t})))),e.basic&&c.a.createElement(l.a,{className:"dictShanbay-Basic",html:e.basic}),e.sentences&&c.a.createElement("div",null,c.a.createElement("h1",{className:"dictShanbay-SecTitle"},"权威例句"),c.a.createElement("ol",{className:"dictShanbay-Sentence"},e.sentences.map(e=>c.a.createElement("li",{key:e.annotation},c.a.createElement(l.a,{tag:"p",html:e.annotation}),c.a.createElement("p",null,e.translation))))));t.default=s}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/80.d415c673.js b/plugins/saladict-ztools/ext-saladic/assets/80.d415c673.js new file mode 100644 index 00000000..881b9913 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/80.d415c673.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[80],{1372:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(0),c=a.n(n),r="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const l=e=>{const{tag:t="div",html:a,...l}=e,m=Object(n.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[s,i]=Object(n.useState)(null);return r(()=>{if(m&&s){for(;s.childNodes.length>0;)s.childNodes[0].remove();s.appendChild(m)}},[m,s]),c.a.createElement(t,{...l,ref:i})}},698:function(e,t,a){"use strict";a.r(t),a.d(t,"DictUrban",(function(){return m}));var n=a(0),c=a.n(n),r=a(97),l=a(1372);const m=({result:e})=>c.a.createElement("ul",{className:"dictUrban-List"},e.map(e=>c.a.createElement("li",{key:e.meaning,className:"dictUrban-Item"},c.a.createElement("h2",{className:"dictUrban-Title"},e.title," ",c.a.createElement(r.c,{src:e.pron})),e.meaning&&c.a.createElement(l.a,{tag:"p",className:"dictUrban-Meaning",html:e.meaning}),e.example&&c.a.createElement(l.a,{tag:"p",className:"dictUrban-Example",html:e.example}),e.gif&&c.a.createElement("figure",{className:"dictUrban-Gif"},c.a.createElement("img",{src:e.gif.src,alt:e.gif.attr}),c.a.createElement("figcaption",null,e.gif.attr)),e.tags&&c.a.createElement("ul",{className:"dictUrban-Tags"},e.tags.map(e=>c.a.createElement("a",{key:e,className:"dictUrban-TagItem",href:"https://www.urbandictionary.com/tags.php?tag="+e,rel:"nofollow noopener noreferrer"},"#",e," "))),c.a.createElement("footer",{className:"dictUrban-Footer"},e.contributor&&c.a.createElement("span",{className:"dictUrban-Contributor"},e.contributor),"number"==typeof e.thumbsUp&&c.a.createElement("span",{className:"dictUrban-Thumbs"},c.a.createElement("svg",{className:"dictUrban-IconThumbsUp",width:"0.9em",height:"0.9em",fill:"#666",viewBox:"0 0 561 561"},c.a.createElement("path",{d:"M0 535.5h102v-306H0v306zM561 255c0-28.05-22.95-51-51-51H349.35l25.5-117.3v-7.65c0-10.2-5.1-20.4-10.2-28.05L336.6 25.5 168.3 193.8c-10.2 7.65-15.3 20.4-15.3 35.7v255c0 28.05 22.95 51 51 51h229.5c20.4 0 38.25-12.75 45.9-30.6l76.5-181.05c2.55-5.1 2.55-12.75 2.55-17.85v-51H561c0 2.55 0 0 0 0z"})),e.thumbsUp),"number"==typeof e.thumbsDown&&c.a.createElement("span",{className:"dictUrban-Thumbs"},c.a.createElement("svg",{className:"dictUrban-IconThumbsDown",width:"0.95em",height:"0.95em",fill:"#666",viewBox:"0 0 561 561"},c.a.createElement("path",{d:"M357 25.5H127.5c-20.4 0-38.25 12.75-45.9 30.6L5.1 237.15C2.55 242.25 0 247.35 0 255v51c0 28.05 22.95 51 51 51h160.65l-25.5 117.3v7.65c0 10.2 5.1 20.4 10.2 28.05l28.05 25.5 168.3-168.3c10.2-10.2 15.3-22.95 15.3-35.7v-255c0-28.05-22.95-51-51-51zm102 0v306h102v-306H459z"})),e.thumbsDown)))));t.default=m}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/81.008fe6f1.js b/plugins/saladict-ztools/ext-saladic/assets/81.008fe6f1.js deleted file mode 100644 index 1c43c389..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/81.008fe6f1.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[81],{1356:function(a,n,e){(n=e(221)(!1)).push([a.i,'.MachineTrans-Text .saladict-Speaker{position:absolute;left:0;top:2px;margin:0}.MachineTrans-Text summary{cursor:pointer}.MachineTrans-Lines{position:relative;margin:.5em 0;padding-left:1.5em}.MachineTrans-Lines p{margin:.3em 0}.MachineTrans-Lines-collapse{overflow:hidden;position:relative}.MachineTrans-Lines-collapse::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;background:linear-gradient(90deg,rgba(255,255,255,0) 50%,var(--color-background) 90%);pointer-events:none}.MachineTrans-Lines-collapse button{height:1.5em;padding:0;text-align:start;word-break:keep-all;white-space:nowrap;font-size:1em;font-weight:400;font-family:inherit;color:currentColor;cursor:pointer}.MachineTrans-lang-ar,.MachineTrans-lang-ara,.MachineTrans-lang-az,.MachineTrans-lang-fa,.MachineTrans-lang-he,.MachineTrans-lang-iw,.MachineTrans-lang-ku,.MachineTrans-lang-ug,.MachineTrans-lang-ur{direction:rtl!important}.MachineTrans-lang-ar.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ara.MachineTrans-Lines-collapse::after,.MachineTrans-lang-az.MachineTrans-Lines-collapse::after,.MachineTrans-lang-fa.MachineTrans-Lines-collapse::after,.MachineTrans-lang-he.MachineTrans-Lines-collapse::after,.MachineTrans-lang-iw.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ku.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ug.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ur.MachineTrans-Lines-collapse::after{background:linear-gradient(270deg,rgba(255,255,255,0) 50%,var(--color-background) 90%)}.MachineTrans-has-rtl{text-align:right}.MachineTrans-has-rtl .MachineTrans-Lines{padding-left:0;padding-right:1.5em}.MachineTrans-has-rtl .saladict-Speaker{left:auto;right:0}@font-face{font-family:"UKIJ Tuz Basma";src:url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff2) format("woff2"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff) format("woff"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.ttf) format("truetype"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.svg#UKIJTuzBasma-Bold) format("svg");font-style:normal}.MachineTrans-lang-ug{font-family:"UKIJ Tuz Basma"!important}',""]),a.exports=n},693:function(a,n,e){var r=e(1356);a.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/81.bfbb06f2.js b/plugins/saladict-ztools/ext-saladic/assets/81.bfbb06f2.js new file mode 100644 index 00000000..26ee466f --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/81.bfbb06f2.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[81],{1372:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(0),a=n.n(i),c="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;const r=e=>{const{tag:t="div",html:n,...r}=e,l=Object(i.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(n,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[n]),[o,s]=Object(i.useState)(null);return c(()=>{if(l&&o){for(;o.childNodes.length>0;)o.childNodes[0].remove();o.appendChild(l)}},[l,o]),a.a.createElement(t,{...r,ref:s})}},702:function(e,t,n){"use strict";n.r(t),n.d(t,"DictWikipedia",(function(){return l}));var i=n(0),a=n.n(i),c=n(9),r=n(1372);const l=({result:e,searchText:t})=>{const{t:n}=Object(c.d)("content"),l=Object(i.useRef)(null);Object(i.useEffect)(()=>{const e=l.current;if(!e)return;const t=requestAnimationFrame(()=>{!function(e){[...e.querySelectorAll(".mw-heading")].filter(e=>{var t;return!(null===(t=e.nextElementSibling)||void 0===t?void 0:t.classList.contains("dictWikipedia-SectionBody"))}).forEach(e=>{const t=d(e);if(!t||!e.parentElement)return;const n=document.createElement("div");n.className="dictWikipedia-SectionBody",e.insertAdjacentElement("afterend",n);let i=n.nextElementSibling;for(;i;){const e=d(i);if(e&&e<=t)break;const a=i.nextElementSibling;n.appendChild(i),i=a}}),e.querySelectorAll(".mw-heading").forEach(e=>{s(e,!0)})}(e)});return()=>cancelAnimationFrame(t)},[e.content]);const u=e=>{e.target.value&&t({id:"wikipedia",payload:{url:e.target.value}})};let m=null;return e.langList.length>0&&(m=a.a.createElement("select",{onChange:u,defaultValue:""},a.a.createElement("option",{key:"",value:""},n("chooseLang")),e.langList.map(e=>a.a.createElement("option",{key:e.url,value:e.url},e.title)))),a.a.createElement(a.a.Fragment,null,a.a.createElement("h1",{className:"dictWikipedia-Title"},e.title),m,a.a.createElement("div",{className:"dictWikipedia-Content",ref:l,onClick:o},a.a.createElement(r.a,{className:"client-js",html:e.content})))};function o(e){if(!e.target.classList)return;const t=e.target.closest(".mw-heading");if(!t||!e.currentTarget.contains(t))return;if(!d(t))return;e.stopPropagation(),e.preventDefault();const n=!t.classList.contains("dictWikipedia-Collapsed");s(t,n)}function s(e,t){const n=e.nextElementSibling;n&&n.classList.contains("dictWikipedia-SectionBody")&&(e.classList.toggle("dictWikipedia-Collapsed",t),e.setAttribute("aria-expanded",(!t).toString()),n.hidden=t)}function d(e){const t=e.classList.contains("mw-heading")?e:e.querySelector(".mw-heading");if(!t)return 0;const n=t.querySelector("h1,h2,h3,h4,h5,h6");return n?Number(n.tagName.slice(1)):0}t.default=l}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/82.10f86278.js b/plugins/saladict-ztools/ext-saladic/assets/82.10f86278.js new file mode 100644 index 00000000..a7b938b3 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/82.10f86278.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[82,119],{677:function(e,a,t){"use strict";t.r(a),t.d(a,"DictGuoyu",(function(){return l}));var n=t(0),s=t.n(n),c=t(97);const l=({result:e})=>s.a.createElement(s.a.Fragment,null,e.h&&e.h.map(a=>s.a.createElement("div",{className:"dictMoe-H",key:a.p},s.a.createElement("h1",{className:"dictMoe-Title"},i(e.t)),s.a.createElement("span",{className:"dictMoe-Pinyin"},a.p||""),s.a.createElement(c.c,{src:a["="]}),a.d&&s.a.createElement("ol",{className:"dictMoe-Defs"},a.d.map(e=>s.a.createElement("li",{key:e.f},s.a.createElement("p",{className:"dictMoe-Defs_F"},i(e.f)),e.e&&e.e.map(e=>s.a.createElement("p",{key:e,className:"dictMoe-Defs_E"},i(e)))))))),e.translation&&s.a.createElement(s.a.Fragment,null,e.translation.English&&s.a.createElement("div",{className:"dictMoe-Trans"},s.a.createElement("span",{className:"dictMoe-Trans_Pos"},"英."),s.a.createElement("span",{className:"dictMoe-Trans_Def"},e.translation.English.join(", "))),e.translation.francais&&s.a.createElement("div",{className:"dictMoe-Trans"},s.a.createElement("span",{className:"dictMoe-Trans_Pos"},"法."),s.a.createElement("span",{className:"dictMoe-Trans_Def"},e.translation.francais.join(", "))),e.translation.Deutsch&&s.a.createElement("div",{className:"dictMoe-Trans"},s.a.createElement("span",{className:"dictMoe-Trans_Pos"},"德."),s.a.createElement("span",{className:"dictMoe-Trans_Def"},e.translation.Deutsch.join(", ")))));function i(e){return e?e.split(/`(.*?)~/g).map((e,a)=>a%2==0?e.replace("例⃝",""):s.a.createElement("a",{key:a,className:"dictMoe-Link",href:"https://www.moedict.tw/"+e},e)):""}a.default=l},688:function(e,a,t){"use strict";t.r(a),t.d(a,"DictLiangAn",(function(){return n}));const n=t(677).DictGuoyu;n.displayName="LiangAn",a.default=n}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/83.7059cda4.js b/plugins/saladict-ztools/ext-saladic/assets/83.7059cda4.js new file mode 100644 index 00000000..7e60cbd8 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/83.7059cda4.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[83],{409:function(a,t,e){"use strict";e.r(t),e.d(t,"locale",(function(){return i}));const i={app:{off:"Saladict disabled. (Quick Search Panel is still available)",tempOff:"Saladict disabled on current tab. (Quick Search Panel is still available)",unsupported:"Embedded Saladict panel is unsupported for current tab. Use Standalone Saladict panel instead."}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/83.e74301ae.js b/plugins/saladict-ztools/ext-saladic/assets/83.e74301ae.js deleted file mode 100644 index 7cba037c..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/83.e74301ae.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[83],{1358:function(t,i,n){(i=n(221)(!1)).push([t.i,".dictVocabulary-Long{padding-left:5px;border-left:1px solid #666}",""]),t.exports=i},695:function(t,i,n){var o=n(1358);t.exports="string"==typeof o?o:o.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/84.6a6c0803.js b/plugins/saladict-ztools/ext-saladic/assets/84.6a6c0803.js new file mode 100644 index 00000000..fc806d30 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/84.6a6c0803.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[84],{410:function(e,n,t){"use strict";t.r(n),t.d(n,"locale",(function(){return a}));const a={add:"Add",delete:"Delete",save:"Save",cancel:"Cancel",edit:"Edit",sort:"Sort",rename:"Rename",confirm:"Confirm",changes_confirm:"Changes not saved. Close anyway?",delete_confirm:"Deleted item completely?",max:"Max",min:"Min",name:"Name",none:"None",enable:"Enable",enabled:"Enabled",disabled:"Disabled",blacklist:"Blacklist",whitelist:"Whitelist",import:"Import",export:"Export",lang:{chinese:"Chinese",chs:"Chinese",deutsch:"Deutsch",eng:"English",english:"English",french:"French",japanese:"Japanese",korean:"Korean",matchAll:"Match every character",minor:"Minor",others:"Others",spanish:"Spanish"},unit:{mins:"minutes",ms:"ms",s:"s",word:"words"},note:{word:"Word",trans:"Translation",note:"Note",context:"Context",contextCloze:"Context Cloze",date:"Date",srcTitle:"Source Title",srcLink:"Source Link",srcFavicon:"Source Favicon"},profile:{daily:"Daily Mode",sentence:"Sentence Mode",default:"Default Mode",scholar:"Scholar Mode",translation:"Translation Mode",nihongo:"Japanese Mode"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/85.176f48ac.js b/plugins/saladict-ztools/ext-saladic/assets/85.176f48ac.js deleted file mode 100644 index 2062072b..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/85.176f48ac.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[85],{1360:function(e,t,i){(t=i(221)(!1)).push([e.i,'.Liscj .liscjWC{font-style:italic}.Jmdct .jmdctDm,.Jmdct .jmdctYm{margin:4px 0 4px 0}.Jmdct .jmdctGlsL{float:left;margin:0;vertical-align:top;width:20px}.Jmdct .jmdctGlsR{float:left;margin:0;vertical-align:top}.Jmdct .jmdctL{background-color:#f0f0f0;border:#666 solid 1px;color:#363636;font-size:.9em;font-weight:400;line-height:1em;margin-right:8px;padding:1px}.Jmdct table td.jmdctT{text-align:right;vertical-align:top;width:70px}.Jmned .jmnedDm,.Jmned .jmnedGls,.Jmned .jmnedYm{margin:0;padding:0}.Jmned{border-collapse:collapse}.Jmned table{border-collapse:collapse;border:1px #696969 solid;width:100%}.Jmned table th{background-color:#f5f5f5;border:1px #696969 solid;font-weight:700;padding:3px;white-space:nowrap}.Jmned table td{border:1px #696969 solid;padding:5px;line-height:1.3em}.Jmned .jmnedL{font-weight:700}.Jmned .jmnedC{width:20%}.Jmned .jmnedR{width:60%}.Jmned .jmnedInfo{background-color:#f5f5f5;border:#b5b6b5 solid 1px;font-size:.9em;line-height:1.62em;margin:1em 0 0 0;padding:10px}.Stwdj .stwdjS{border-left:#815733 solid 6px;font-size:1.3em;font-weight:700;line-height:1em;margin:10px 0 5px 0;padding-left:3px}.Stwdj .stwdjC,.Stwdj .stwdjC a{line-height:1em}.Stwdj .stwdjHdC{background-color:#f0f0f0;border:#666 solid 1px;color:#363636;font-size:.9em;padding:1px}.Stwdj .stwdjYr{margin-top:10px;padding:5px}.Stwdj .stwdjYr a{color:#000}.Stwdj .stwdjYr a:hover{color:#000}.Stwdj .stwdjYr a:active{color:#000}.Stwdj .stwdjYr a:visited{color:#000}.Stwdj .stwdjYr div{line-height:1em;margin-left:10px}.Stwdj .stwdjYr sup{line-height:1em;margin:0;padding:0}.Stwdj .stwdjYrHd i,.Stwdj .stwdjYrHdFld i{margin-bottom:-2px;margin-right:3px}.Stwdj .stwdjYrHd:before,.Stwdj .stwdjYrHdFld:before{margin-right:3px}.Stwdj .stwdjYrHdFld img,.Stwdj .stwdjYrHdFld span{cursor:pointer}.Stwdj .stwdjYrHd .stwdjHdC{border:#666 solid 1px;color:#363636;font-size:.9em;margin-left:16px;padding:1px}.Stwdj .stwdjYrHdFld .stwdjHdC{border:#666 solid 1px;color:#363636;font-size:.9em;padding:1px}.Stwdj .stwdjR,.Stwdj .stwdjRF{background-image:url(https://weblio.hs.llnwd.net/e7/img/iconCclBlS.png);background-position:2px 8px;background-repeat:no-repeat;font-family:Arial;font-weight:400;margin:2px 0 0 24px;padding:0 0 0 14px}.Stwdj .stwdjRF{display:none}.Stwdj .stwdjBld{font-weight:700;font-weight:700}.Stwdj .stwdjAH,.Stwdj .stwdjNB,.Stwdj .stwdjNH{float:left;margin:0;padding:0;vertical-align:bottom}.Stwdj .stwdjNB{margin:.3em 0 0 0;padding:.1em 0 0 0}.Edrnt .edrntC{background-color:#f0f0f0;border:#666 solid 1px;color:#363636;font-size:.9em;padding:1px}.Jjabc ruby{font-size:120%}.infobox.sisterproject{font-size:90%;width:20em}td.sub_yomi{background-image:url(https://weblio.hs.llnwd.net/e7/img/jinmei_haikei1.png);background-repeat:repeat-y;border-color:#b5d2e2;border-width:1px 1px 0 0;border-style:solid;color:#4f519b;font-weight:700;padding:5px 5px 5px 15px;width:80px}td.item_yomi{border-top:1px dashed silver;padding:5px 5px 5px 10px}.Dkijt .kanren{text-indent:.75em}.Jeepm table{border:#000 solid 1px;border-collapse:collapse;text-align:center}.Jeepm td{border:#000 solid 1px;text-align:center}.Jeepm .header{border-left:#fff solid 1px;border-right:#fff solid 1px;border-top:#fff solid 1px;font-weight:700;text-align:left}.LiscjYr .kanren{font-family:Arial;margin:5px 0 0 24px}.Wkgje .wkgjeL{float:left;margin:0 0 0 4px;padding:0;width:80px}.Wkgje .wkgjeR{float:left;margin:0 0 0 4px;padding:0;width:500px}.Jawik .level1Block{display:block;font-size:1.2em;font-weight:400;margin:2px 0 2px 10px}.Jawik .level1Block b{font-weight:700}.Jawik .level1,.Jawik .level1Ex,.Jawik .level2{display:inline}.Jawik .level1 b,.Jawik .level2 b,.Jawik .level2Block b{background-color:#eee;border:#999 solid 1px;color:currentColor;font-weight:400;padding:0 2px;margin:0 5px 0 2px}.Wehgj .wehgjE span,.Wehgj .wehgjR span,.Wehgj .wehgjT span{border:#666 solid 1px;font-size:.9em;line-height:1em;padding:1px}.Wehgj .wehgjE,.Wehgj .wehgjR{padding:0 0 0 16px}.Jfwik .level1Block{display:block;font-size:1.2em;font-weight:400;margin:2px 0 2px 10px}.Jfwik .level1Block b{font-weight:700}.Jfwik .level1,.Jfwik .level1Ex,.Jfwik .level2{display:inline}.Jfwik .level1 b,.Jfwik .level2 b,.Jfwik .level2Block b{background-color:#eee;border:#999 solid 1px;color:currentColor;font-weight:400;padding:0 2px;margin:0 5px 0 2px}.wrpCmp{border:#06c solid;border-width:0 0 1px 0;height:25px;margin:15px 0 5px 0}.wrpCmp p{border:#06c solid;border-width:0 0 0 5px;font-size:1.3em;height:20px;margin:0;padding:0 0 3px 5px}.wrpCmp p a{color:#000;font-weight:bolder}.wrpCmpCom{border:#de7d29 solid;border-width:0 0 1px 0;height:25px;margin:15px 0 5px 0}.wrpCmpCom p{border:#de7d29 solid;border-width:0 0 0 5px;font-size:1.3em;height:20px;margin:0;padding:0 0 3px 5px}.wrpCmpCom p a{color:#000;font-weight:bolder}.wrpEx{height:25px;margin:0}.wrpEx p{color:#525152;font-size:1em;height:20px;margin:0 .5em 0 0;padding:3px 0 0 5px}.wrpEx p a:active,.wrpEx p a:link,.wrpEx p a:visited{color:#525152;font-size:1em;text-decoration:none}.wrpEx p span{color:#9c9a9c;font-size:.7em}.wrpEx p.wrpExFL{color:#525152;font-size:.8em;height:20px;margin:0 .5em 0 0;padding:3px 0 0 5px}.kijiEx{color:#000;font-size:1em;line-height:1.8em;margin-bottom:15px}.kijiEx *{font-size:100%;line-height:1.8em}.wrpExTxt{margin:0 0 -8px 0}.wrpExTxt p{font-size:1em;margin-right:.5em;padding:0 0 0 5px}.kijiWrpTxt p.adDes{font-size:95%}.wrpExTxt p>a{text-decoration:none}.wrpExTxt p a:hover{color:red}.wrpExTxt p a:link,.wrpExTxt p a:visited{color:#525152}.kijiWrpTxt{font-size:90%;margin:0 0 15px 0;padding:0}.wrpAdFTxt p{color:#525152;font-size:.9em;line-height:1.8em;margin:14px 0 14px 6px}.wrpIMCmp{border:#06c solid;border-width:0 0 1px 0;height:25px;margin:5px 0 5px 0}.wrpIMCmp p{border:#06c solid;border-width:0 0 0 5px;font-size:1.1em;font-weight:bolder;height:18px;margin:0;padding:2px 0 5px 5px}.wrpIMCmp p a{color:#000;font-size:.8em;font-weight:400}.wrpIMCmpCom{border:#de7d29 solid;border-width:0 0 1px 0;height:25px;margin:5px 0 5px 0}.wrpIMCmpCom p{border:#de7d29 solid;border-width:0 0 0 5px;font-size:1.1em;font-weight:bolder;height:18px;margin:0;padding:2px 0 5px 5px}.wrpIMCmpCom p a{color:#000;font-size:.8em;font-weight:400}#main .spoBoxHEYO{background-color:#feaa15;border:#e38e00 solid;border-width:0 0 1px 0;color:#fff;font-weight:700;margin:0 4px 0 20px;padding:5px 3px 5px 7px;text-align:left}#main .spoBoxBEYO{border:#ccc solid;border-width:0 1px 1px 1px;margin:0 4px 10px 20px}#main .spoBoxHEYOT{background-color:#9097a2;border:#868d99 solid;border-width:0 0 1px 0;color:#fff;font-weight:700;margin:0 4px 0 0;padding:5px 3px 5px 7px;text-align:left}#main .spoBoxBEYOT{border:#ccc solid;border-width:0 1px 1px 1px;margin:0 4px 10px 0}.ejjeScCnt{margin:0 0 10px 0;width:99%}.ejjeScCnt .chsShwcsH{background-color:#feaa15;border:#feaa15 solid 1px;border-bottom:#e38e00 solid 1px;color:#fff;font-size:1em;font-weight:700;margin:0;padding:4px 0;width:100%}.ejjeScCnt .chsShwcsHT{padding:0 5px}.ejjeScCnt .chsShwcsC{border:#ccc solid;border-width:0 1px 1px 1px;margin:0;padding:2px 0 3px 0;width:100%}.ejjeScCnt .chsShwcsT{border-collapse:collapse;margin:2px 0 2px 0;padding:0;width:100%}.ejjeScCnt .chsShwcsTD{border-collapse:collapse;margin:0;padding:2px 0 2px 6px;vertical-align:top;width:33%}.ejjeScCnt .chsShwcsTD a{font-size:1em}.ejjeScCnt .chsShwcsTD a:active,.ejjeScCnt .chsShwcsTD a:link,.ejjeScCnt .chsShwcsTD a:visited{color:#06c}.ejjeScCnt .chsShwcsTD a:hover{color:#d50000}.ejjeScCnt .chsShwcsTD span{font-size:.85em;font-weight:400}.treeBoxC .adIFLeftE{color:#06c;font-size:.7em;text-align:right}.JWAdsR .highlight{background-color:transparent}.AdR .highlight{background-color:transparent}.clrBc{clear:both;display:block;font-size:0;line-height:0;overflow:hidden}.highlight-menu{background-color:#f8f9ff;display:none;top:0;height:auto;position:absolute;left:0;z-index:10}.highlight-menu table{background-color:#f6f6f6;border:#b5b5b5 solid 1px;border-collapse:separate;border-spacing:4px}.highlight-menu table td{cursor:pointer;height:24px;margin:0;text-align:center;padding:0;width:24px}.highlight-menu img{width:24px}.highlight-menu #pick-del img{width:22px}.red{background-color:#fcc}.highlight-menu-sub{position:relative}.highlight-menu table.hl-tbl-hz td{padding-right:5px}.highlight-menu table.hl-tbl-hz td:last-child{padding-right:0}.highlight-dfcl .hl-pick-dfcolor-table{margin:37px 0 15px;table-layout:fixed;width:100%}.highlight-dfcl .hl-pick-dfcolor-table td{padding:0;text-align:left}.highlight-dfcl .dfclsq{box-sizing:border-box;cursor:pointer;display:inline-block;height:40px;line-height:40px;text-align:center;vertical-align:middle;width:40px}.highlight-dfcl .dfclsq>span{background-color:#585858;display:none;height:8px;margin-top:16px;width:8px}.highlight-dfcl #dfslsq-yellow{background-color:#ffe467}.highlight-dfcl #dfslsq-blue{background-color:#75baff}.highlight-dfcl #dfslsq-green{background-color:#82d131}.highlight-dfcl #dfslsq-red{background-color:#ffa4a4}.highlight-dfcl .dfclmsg-blue,.highlight-dfcl .dfclmsg-green,.highlight-dfcl .dfclmsg-red,.highlight-dfcl .dfclmsg-yellow{font-size:.78em}.highlight-dfcl .hl-pick-dfcolor-table td.dfclmsg-td{padding-left:11px}.highlight-htu .sect{line-height:1.7em;margin-bottom:23px}.highlight-htu .sect ol{margin:0;padding-left:16px}.highlight-htu .semi-heading{font-size:1.07em;font-weight:700;margin-bottom:3px}.highlight-htu .hl-page-heading{margin-bottom:23px}.highlight-lib .formBlk{overflow:hidden}.highlight-lib .hl-sortWrp{float:left}.highlight-lib .hl-searchWrp{float:right}.highlight-lib .searchHlBtn{background-color:var(--color-font-grey);box-shadow:0 2px 0 0 #000;font-size:.92em;height:25px;line-height:25px;margin:0;padding:0 10px}.highlight-lib input[name=q]{border:0;border:solid 1px #ccc;border-radius:2px;font-family:Arial,sans-serif;height:27px;margin:0 3px 0 0;padding-left:3px}.highlight-lib .hl-content-wrap{margin-top:18px}.highlight-lib .hl-content{margin-bottom:39px}.highlight-lib .hl-title{margin-bottom:12px;font-weight:700}.highlight-lib .hl-item{background-color:#f9f9f9;margin-bottom:5px;padding:7px 10px;position:relative}.highlight-lib .hl-item p{border-style:solid;border-width:0 0 0 4px;float:left;padding-left:11px;width:93%}.red-left-border{border-color:#ffa4a4}.highlight-lib .hl-item-edit{cursor:pointer;display:none;float:right}.highlight-lib .hl-more-less,.highlight-lib .hl-title a{border-bottom:#000 dotted 1px;font-size:.85em;padding-bottom:1px;text-decoration:none}.highlight-lib .highlight-edit{display:none;right:-38px;top:0;position:absolute;z-index:1}.highlight-lib .highlight-edit table{background-color:#f6f6f6;border:#b5b5b5 solid 1px;border-collapse:separate;border-spacing:4px}.highlight-lib .highlight-edit table td{cursor:pointer;height:24px;margin:0;text-align:center;padding:0;width:24px}.highlight-lib .highlight-edit table div{height:100%;line-height:24px}.highlight-lib .highlight-edit .edit-del img{width:24px}.highlight-lib .hlpaginationWrp{text-align:center}.highlight-lib .hl-pagination{border-radius:4px;display:inline-block;margin:20px 0;padding-left:0}.highlight-lib .hl-pagination>li{display:inline}.highlight-lib .hl-pagination>li:first-child>a{border-top-left-radius:4px;border-bottom-left-radius:4px;margin-left:0}.highlight-lib .hl-pagination>li:last-child>a{border-top-right-radius:4px;border-bottom-right-radius:4px}.highlight-lib .hl-pagination>li>a{background-color:#fff;border:1px solid #ddd;color:#337ab7;float:left;line-height:1.42857143;margin-left:-1px;position:relative;padding:2px 10px;text-decoration:none}.highlight-lib .hl-pagination>li i{line-height:1.42857143}.highlight-lib .hl-pagination a:active,.highlight-lib .hl-pagination a:hover,.highlight-lib .hl-pagination a:link,.highlight-lib .hl-pagination a:visited{color:currentColor!important;display:inline-block;text-decoration:none}.highlight-lib .hl-pagination a:hover{background-color:#aac9e9}.highlight-lib .hl-pagination .active a{background-color:#e4e4e4;cursor:default}#hl-sticky-menu-library .fa{color:currentColor;font-size:1.64em}.stickyMenuSampleWrp .smClPk .fa{display:inline-block;font-size:1.92em;text-align:center;width:24px}.introjs-arrow.right{right:-10px;top:10px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:#fff}.introjs-arrow.right-bottom{bottom:10px;right:-10px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:#fff}.introjs-arrow.left{left:-10px;top:10px;border-top-color:transparent;border-right-color:#fff;border-bottom-color:transparent;border-left-color:transparent}.introjs-arrow.left-bottom{left:-10px;bottom:10px;border-top-color:transparent;border-right-color:#fff;border-bottom-color:transparent;border-left-color:transparent}.pinned-content-header .fa-thumb-tack,.pinned-content-header span .fa-square{color:currentColor}.fa-rotate-315{transform:rotate(315deg)}.pinned-content-button-wrapper>.error{font-size:.71em;background-color:#f8ddde;text-align:center;margin-bottom:5px;display:none}.pinned-content-button-wrapper>.error{letter-spacing:1.4;padding:2px 0;width:80%;margin:0 auto 10px}.pinned-content-button-wrapper>.error a{font-weight:700;color:#000}.pinned-content-button-wrapper.show>.error{display:block}.pinned-content-button-wrapper .add-word-list-button .fa{margin-right:5px}.modal-wrapper .loading .fa{color:#fff;font-size:6.42em;left:38%;position:absolute;top:40%}.modal-wrapper.for-already-exists .modal-close-wrapper .fa-stack{position:absolute;right:0;top:0;transform:scale(.5);cursor:pointer}.modal-wrapper.for-already-exists .modal-close-wrapper .fa-stack:hover{opacity:.7}.free-member-features-modal .modal-message:not(.registered):not(.login){float:left;margin:10px 0 20px 30px}.free-member-features-modal .modal-message div{font-weight:400;margin:0!important}.free-member-features-modal .modal-message div:first-child{margin:0 0 15px 0!important}.free-member-features-modal .modal-message div:first-child span{font-size:2em}.free-member-features-modal .modal-message div:first-child span:first-child{font-weight:700}.free-member-features-modal .modal-message div:not(:first-child){font-size:1.28em}.free-member-features-modal .modal-message div.sentence-list-features{line-height:2em}.free-member-features-modal .modal-message:not(.registered) .modal-login-link{margin:0}.free-member-features-modal .modal-message:not(.registered) .modal-login-link:hover{color:currentColor;opacity:.7}.free-member-features-modal .modal-example{float:none;margin:5px 0 0}.free-member-features-modal .modal-example img{box-shadow:none;-webkit-box-shadow:none}.free-member-features-modal .free-register-wrap:not(.login):not(.registered){border-collapse:separate;border-spacing:15px 0;display:table;margin-left:15px}.free-member-features-modal .free-member-features{border:#aaa solid 1px;display:table-cell;vertical-align:top}.free-member-features-modal .free-member-features>div:first-child{background-color:#ea9035;color:#fff;font-size:1.42em;padding:7px 0}.free-member-features-modal .free-member-features .free-member-feature-content{display:inline-block;margin:20px 10px}.free-member-features-modal .free-member-features .free-member-feature-content img{margin:10px 0}.free-member-features-modal .free-member-features .free-member-feature-content div{text-align:left}.free-member-features-modal .free-member-features>div:last-child{margin-bottom:10px}.free-member-features-modal .free-member-features>div:last-child span{font-weight:700}.free-member-features-modal .free-register-wrap:not(.login):not(.registered) .free-register{border:#48a267 solid 1px;display:table-cell;position:relative}.free-member-features-modal .free-register>div:first-child{left:3px;position:absolute;top:-30px}.free-member-features-modal .free-register-wrap.login .free-register>div:first-child,.free-member-features-modal .free-register-wrap.registered .free-register>div:first-child{display:none}.free-member-features-modal .free-register-wrap:not(.login) .free-register .modal-error-message{margin-top:15px}.free-member-features-modal .free-register .footer span{line-height:14px}.free-member-features-modal .free-register .modal-register-button{font-weight:400;margin:10px auto}.free-member-features-modal .free-register .free-register-link{display:inline-block;margin-bottom:10px}.free-member-features-modal .free-register .free-register-link:hover{color:currentColor;opacity:.7}.free-member-features-modal.hidden .free-member-features{display:none}.userInfo .right-cell{padding-left:5px}.userInfo .right-cell .free-description{font-size:1em;margin-left:6px;margin-bottom:8px;letter-spacing:3px}.userInfo .right-cell .free-description span{letter-spacing:0;padding-right:3px}.userInfo .right-cell .free-description span span{font-size:.85em}.userInfo .right-cell .free-button{display:block;height:35px;margin:6px 0 0}.userInfo .right-cell .free-button:hover{opacity:.7}.userInfo .right-cell .free-button:active{box-shadow:none!important;position:relative;top:2px}.userInfo .right-cell .merits{margin:4px 0}.userInfo .right-cell .merits p{font-size:.78em;font-weight:700;margin-bottom:4px}.userInfo .right-cell .merits p img{width:12px;padding:0 8px}.userInfo .left-cell{text-align:center}.userInfo .left-cell .member-state-label{color:#fff;display:block;width:80px;text-align:center;height:30px;box-sizing:border-box;padding:5px 0;font-size:90%}.userInfo .left-cell .member-state-label.free{background-color:#48a267}.userInfo .left-cell .member-state-label.premium{background-color:#ea9034;font-size:70%;padding:6.3px 0}#sideBHPAEjje>.error{background-color:#f8ddde;display:none;font-size:.71em;letter-spacing:1.4;margin-bottom:5px;padding:0 5px;text-align:center}#sideBHPAEjje>.error a{color:#000;font-weight:700}#sideBHPAEjje.show>.error{display:block}.footer_banner .title .small{font-size:.92em}.footer_banner ul.features{font-size:.85em;list-style-type:none;color:#534a41;margin:0;padding:10px 0;line-height:17px}.footer_banner ul.features li{margin-left:70px;padding:5px 0;position:relative}.footer_banner ul.features li:before{content:"";width:17px;height:17px;background-position:center center;background-repeat:no-repeat;position:absolute;top:5px;left:-25px}.footer_banner ul.features li.search-history:before{background-image:url(https://weblio.hs.llnwd.net/e7/img/banner/history.png)}.footer_banner ul.features li.vocab-test:before{background-image:url(https://weblio.hs.llnwd.net/e7/img/banner/vocab.png)}.footer_banner ul.features li.folders:before{background-image:url(https://weblio.hs.llnwd.net/e7/img/banner/folders.png)}.footer_banner ul.features li.ads:before{background-image:url(https://weblio.hs.llnwd.net/e7/img/banner/ad.png)}#free-house-ad-on-load-modal-container .header-wrap .modal-close i.fa-times,#premium-house-ad-on-load-modal-container .header-wrap .modal-close i.fa-times{color:#595858;font-size:1.71em;height:35px;line-height:35px}#free-house-ad-on-load-modal-container .features-wrapper{display:flex;flex-wrap:wrap;margin:25px 5px 10px 5px}#free-house-ad-on-load-modal-container .features-wrapper .feature{width:calc(33.3333% - 12px);padding:20px 0 5px;font-size:1em;text-align:center;vertical-align:top;border:1px solid #d1d1d1;position:relative;margin:10px 5px}#free-house-ad-on-load-modal-container .features-wrapper .feature.other-features{border:none}#free-house-ad-on-load-modal-container .features-wrapper .feature.other-features img{width:75%}#free-house-ad-on-load-modal-container .features-wrapper .feature.other-features:before{display:none}#free-house-ad-on-load-modal-container .features-wrapper .feature:before{background-color:#e99034;border-radius:50%;content:"0" counter(feature-number);counter-increment:feature-number;color:#fff;display:inline-block;font-size:1em;height:30px;left:60px;line-height:30px;position:absolute;top:-15px;width:30px}#free-house-ad-on-load-modal-container .features-wrapper .feature span{font-size:1.28em;font-weight:700;color:#554c45}#free-house-ad-on-load-modal-container .features-wrapper .feature div.img-wrap{display:table-cell;height:65px;text-align:center;vertical-align:middle}#free-house-ad-on-load-modal-container .features-wrapper .feature div.img-wrap img{width:40px}#free-house-ad-on-load-modal-container .features-wrapper .feature div.description{line-height:18px}#free-house-ad-on-load-modal-container td div.description,#premium-house-ad-on-load-modal-container td div.description{line-height:18px}#free-house-ad-on-load-modal-container .features-wrapper .feature .img-wrap img.large{width:50px}.clr{clear:both;font-size:0;line-height:0;overflow:hidden}.clrBc{clear:both;display:block;font-size:.71em;line-height:0;overflow:hidden}#main{float:left;text-align:left;padding:0 0 0 8px}.topic{font-size:75%;height:44px;line-height:1.3em;margin:0 0 2px 0;overflow:hidden;padding-top:5px;width:100%;word-break:break-all}.topic table{height:30px;width:100%}.topicL{font-size:.78em;float:left;vertical-align:middle}.topicLB{font-size:.71em}.topicR{float:right;text-align:right}.topicR table{border-collapse:collapse;font-size:1.1em}.wrp{width:100%;border-collapse:collapse}.wrp img.lgDictLg{max-height:16px!important;width:auto!important}.wrp img.lgDictSp{height:18px!important;margin-top:-17px!important}.left{vertical-align:bottom}.right{float:right;font-size:.9em;margin:0 5px 0 0;text-align:right;vertical-align:top}.kijiWrp{padding-left:1px}.kijiWrp .lgDict{float:right;margin:1px 1px 0 0}.kiji{color:currentColor;font-size:1em;line-height:1.8em}.kiji *{font-size:100%;line-height:1.8em}.midashigo:before{content:"▶"}.midashigo{font-size:115%;letter-spacing:.02em}.crosslink:active,.crosslink:link,.crosslink:visited,crosslink:hover{color:currentColor;text-decoration:underline}.kijiFoot{margin-top:10px;text-align:right}.linkTagML{width:60%}.linkTagML input{border:#ccc solid 1px;height:20px}.linkTagMR{text-align:right;vertical-align:bottom;width:38%}.linkTagMR table{border-collapse:collapse;float:right;font-size:80%}.linkTagMR table td{vertical-align:bottom}.linkOut{height:12px;margin-left:2px;width:13px}.intrstR>table{border-spacing:0 2px}.KnenjSub,span.pofsp{background-color:var(--color-font-grey);border:none!important;color:#fff;display:inline;font-size:1.07em!important;font-weight:400!important;line-height:30px!important;padding:3px 5px!important}.clrPhrBc{clear:both;display:block;font-size:.71em;line-height:0;margin-top:1em;overflow:hidden}.wrpExE{height:25px;margin-top:18px}.wrpExE p{color:#525152;font-size:1em;height:20px;margin:0;padding-left:2px}.wrpExE p a:active,.wrpExE p a:link,.wrpExE p a:visited{color:#525152;font-size:1em;text-decoration:none}.intrst{width:100%;border-top:1px solid #ccc;border-collapse:collapse}#summary table:last-of-type.intrst{border-bottom:1px solid #ccc;margin-bottom:1em}.intrst .intrstL{background-color:rgba(245,239,230,.13);padding-left:5px;vertical-align:middle;width:80px}.intrst .intrstL h2{font-size:.92em;font-weight:400}.intrst .intrstR{padding-left:4px;vertical-align:middle}.linkTagRR span{font-size:0;display:block;height:23px;line-height:0;width:61px}img.weblioMascot{margin:15px 0 15px}#main{float:left;margin:0 15px 0 auto}#main a:active,#main a:link,#main a:visited{color:currentColor}#main a:hover{color:#4f7bb9}.clrBc{clear:both;content:"";display:block;font-size:0;line-height:0;overflow:hidden}.treeBoxC a:active,.treeBoxC a:link,.treeBoxC a:visited{font-family:"MS ゴシック","平成角ゴシック",monospace;line-height:1.5em;padding:8px}.treeBoxC h3{text-align:left}.treeBoxC h3 a:active,.treeBoxC h3 a:link,.treeBoxC h3 a:visited{font-size:.85em;font-weight:400;left:-1px;line-height:1.6em;padding:0;position:relative}.treeBoxC h3 span{color:#1c9000;display:list-item;margin:0 0 0 14px;padding:0;position:relative}.treeBoxC hr{border:silver solid;border-width:1px 0 0 0;height:1px;margin:5px 5px 5px 5px}.treeBoxC p{font-size:1.42em;margin:0;padding:0;text-align:left}.treeBoxCFoldLi .pl{border:#000 solid 1px}#summary{padding:2px 2px 10px 2px}#sideBHPAEjje>.error,.summaryR>.error{font-size:.71em;background-color:#f8ddde;text-align:center;margin-bottom:5px;display:none}#sideBHPAEjje>.error{letter-spacing:1.4;padding:0 5px}#sideBHPAEjje>.error a{font-weight:700;color:#000}#sideBHPAEjje.show>.error,.summaryR.show>.error{display:block}#summaryMargin{margin-top:150px}.summaryM .description{background-color:var(--color-font-grey);color:#fff;font-size:1.07em;font-weight:400;margin:0 5px 0 3px;padding:3px 5px!important}.linkTagRClrAd a:active,.linkTagRClrAd a:hover,.linkTagRClrAd a:link,.linkTagRClrAd a:visited{text-decoration:none}b.highlight{font-weight:400}.agglutination{vertical-align:top}.agglutination agglutinationT{font-size:1.42em}.agglutination li{font-size:1em}.agglutination ul{margin:10px 0 0 0;padding:0 0 0 10px}.relatedwords relatedwordsT{font-size:1.42em}.EGateCoreDataWrp b,.descriptionWrp b{display:block;text-align:center}.EGateCoreDataWrp table td:first-child,.descriptionWrp table td:first-child{width:80px}.descriptionWrp table td:first-child{vertical-align:top;padding:16px 0 10px 0}.EGateCoreDataWrp table td,.descriptionWrp table td{font-size:90%;font-weight:700}#searchSettingsWrp .reibun-sample .fa{font-size:1.28em}.pin-icon-cell{text-align:center;width:45px}.pin-icon-cell td{text-align:center;white-space:nowrap}.pin-icon-cell span{color:var(--color-font-grey);font-size:.71em}.pin-icon-cell .fa{cursor:pointer;font-size:2.42em}.pin-icon-cell .fa:hover{opacity:.7}#learning-level-table-wrap{display:table;width:100%}#learning-level-table{display:table-cell}#learning-level-table div{display:table}.learning-level-row{display:table-row}.learning-level-row span{display:table-cell;padding:2px 0}.learning-level-label{text-align:right}.learning-level-content{padding-right:15px!important}#main .addLmFd .premium,#side .addLmFd .premium{background-color:#ff8022;color:#fff;display:block;font-size:70%;position:relative;width:100%;height:35px}#main .addLmFd .premium:hover,#side .addLmFd .premium:hover{opacity:.7}#summary.non-member .intrstR #leadBtnWrp,#summary.non-member .intrstR #learning-level-table{display:block;width:100%}#summary.non-member .intrstR #learning-level-table div,#summary.non-member .intrstR #learning-level-table div *{display:inline}#summary.non-member .intrstR #leadToSpeakingTestIndexBtn,#summary.non-member .intrstR #leadToVocabIndexBtn{display:table-cell;vertical-align:middle;position:relative;box-sizing:border-box}#summary.non-member .intrstR #leadBtnWrp .insideLlTable{display:inline-block;margin:10px 5px;box-sizing:border-box}.free-member-features{padding:0 0 10px 0}.free-member-features .features-title{background-color:#554c45;color:#fff;font-size:1.28em;font-weight:700;text-align:center;padding:10px 0}.free-member-features .features-subtitle{font-size:1em;font-weight:700;text-align:center;padding:8px 0 12px 0}.free-member-features .features-subtitle .red{background-color:transparent;color:#e04a12;font-size:1.28em;padding:0 5px}.free-member-features ul.features{margin:0;padding:0;text-align:center}.free-member-features ul.features li{width:96px;height:121px;display:inline-block;border:1px solid #cdcdcd;text-align:center;margin-right:15px;vertical-align:top}.free-member-features ul.features li:first-child{margin-left:38px}.free-member-features ul.features li .feature-name{font-size:.85em;font-weight:700;margin:11px 0 10px 0}.free-member-features ul.features li img{height:36px;width:auto}.free-member-features ul.features li .feature-desc{font-size:.85em;margin-top:5px}.free-member-features ul.features li.more-features{margin-right:0;position:relative;border:none}.free-member-features ul.features li.more-features img{width:86px;height:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.free-member-features a.free-register-button{display:block;background-color:#48a267;color:#fff;text-decoration:none;text-align:center;border-radius:15px;margin:10px auto 0 auto;font-size:1.14em;font-weight:700;padding:15px 0;color:#fff;position:relative;line-height:21px}.free-member-features a.free-register-button:after{content:"";font-family:FontAwesome;position:absolute;height:21px;width:30px;font-size:1.14em;line-height:21px;top:50%;right:30px;transform:translateY(-50%)}#main .free-member-features a.free-register-button:active,#main .free-member-features a.free-register-button:link,#main .free-member-features a.free-register-button:visited{color:#fff}.free-member-features a.free-register-button .small{font-size:1em}.descriptionWrp table td.content-explanation{font-size:1.12em;line-height:2;padding:10px 0 5px 0}.descriptionWrp table td.content-explanation.ej{letter-spacing:1.5}#main .KnenjSub a:active,#main .KnenjSub a:link,#main .KnenjSub a:visited{color:#fff}h2.midashigo rt{font-size:.5em}h2.midashigo rp{font-size:.5em}.infobox caption{font-size:larger;margin-left:inherit}.infobox.bordered{border-collapse:collapse}.infobox.bordered td,.infobox.bordered th{border:#aaa solid 1px}.infobox.bordered .borderless td,.infobox.bordered .borderless th{border:0}.infobox.standard-talk.bordered td,.infobox.standard-talk.bordered th{border:#c0c090 solid 1px}.infobox.bordered .mergedtoprow td,.infobox.bordered .mergedtoprow th{border:0;border-right:#aaa solid 1px;border-top:#aaa solid 1px}.infobox.bordered .mergedrow td,.infobox.bordered .mergedrow th{border:0;border-right:#aaa solid 1px}.prettytable caption,.wikitable caption{font-weight:700;margin-left:inherit;margin-right:inherit}dl#infoboxCountry dt.infoboxCountryNameJa{font-size:1.36em;margin:0 0 .13em;text-align:center}.dablink{border-bottom:#aaa solid 1px;font-size:90%;margin:.5em 0 .5em 0;padding:3px 2em 3px 2em}.midashigo sub{font-size:.6em}.midashigo sup{font-size:.6em}td.movie_staff_left{text-align:right}.ad02_left_box{width:7px;height:30px;margin:0 2px 2px 0;padding:0;background-color:#d0d0d0;vertical-align:middle;font-size:10pt}.ad02_center-left_box{height:30px;margin:0 2px 2px 0;padding:4px;background-color:#f0f0f0;vertical-align:middle;font-size:10pt}.ad02_center-right_box{height:30px;margin:0 2px 2px 0;padding:4px;background-color:#e0e0e0;vertical-align:middle;font-size:10pt}.ad02_right_box{height:30px;margin:0 2px 2px 0;padding:4px;background-color:#e0e0e0;vertical-align:middle;font-size:10pt}.main3noh{font-size:1em;color:#fff}.mainb{font-size:1em;color:#000;font-weight:700;line-height:18px}h2.midashigo sub{font-size:smaller}ul.linkListStrong li{list-style-type:none}.Ktdcm .KtdcmImgLeft{float:left;width:48%}.Ktdcm .KtdcmImgRight{float:right;width:48%}.Ktdcm .maincol{margin-left:15px;text-align:left}.Ktdcm ul.fright li.full{text-align:right}.Ktdcm .maincol .boxArea{margin-bottom:16px;padding-top:7px}.Ktdcm .maincol .boxArea .wrap{padding-bottom:8px}.Ktdcm .maincol .boxArea .section{padding:0 7px}.Ktdcm table.cell2 .right{padding-left:16px}.Sngsj .gaiji{height:1em;vertical-align:text-bottom;width:1em}.Otnet .OtnetRed{border-bottom:#ccc solid 1px;border-left:red solid 10px;border-right:#ccc solid 0;margin:12px;padding:1px 5px}.Fkkyr .left_column{padding:15px 0 0 0}td.midashigo{color:#4f519b;font-weight:700;padding:10px 5px 30px 2px}.Mtsbs .notes_mainArea{margin-top:10px}.Mtsbs table.spec tr.mainheader th{background-color:#d2d2d2;font-weight:700}.Mtsbs table.spec tr.mainheader th.basic{background-color:#e8f6d9}.Mtsbs table.spec .tdleft{text-align:left}.Mtsbs table.spec .tdright{text-align:right}.Mtsbs table.spec td.tdleft_nb{text-align:left;border-right-style:none}.Mtsbs table.spec td.tdright_nb{text-align:right;border-left-style:none}.Mtsbs .carmain_font80{font-size:.8em}.Mtsbs .carmain_font70{font-size:.7em}.Mtsbs td.tdleft{text-align:left}.Mtsbs th.tdleft{text-align:left}.Kkjsh table tr td.right{text-align:right}.Mzdmt .cell_center_left{border-right:#a1a1a1 solid 1px;text-align:center}.Mzdmt .cell_left_no{border-bottom:#a1a1a1 solid 1px;height:22px;text-align:left}.Mzdmt .cell_left{border:#a1a1a1 solid;border-width:0 1px 1px 0;height:22px;text-align:left}.Triph .data caption{background:#94b7df;border-right:#fff solid 1px;border-top:#fff solid 1px;color:#fff;font-weight:700;padding:2px 17px}.Cntkj .description{float:right;width:43%}.Hyndi .spec-table td.left{text-align:left}.Hndmr table#webcatalogue-table td{color:var(--color-font-grey)}.Hndmr table#webcatalogue-table img{border:none}.Hndmr table#webcatalogue-table p{margin:0;padding:0}.Hndmr table#webcatalogue-table p.leadcopy{font-size:.9em;font-weight:700;line-height:18px}.Hndmr table#webcatalogue-table p.leadcopy2{font-size:.9em;font-weight:700;line-height:21px}.Hndmr table#webcatalogue-table p.text{font-size:.9em;line-height:16px}.Hndmr table#webcatalogue-table p.caution{color:#888;font-size:.9em;line-height:12px;margin-top:3px}.Hndmr table#webcatalogue-table span.typebetsu{font-size:.9em;font-weight:400}.Hndmr table#webcatalogue-table p.concepttext{color:#fff;line-height:18px;margin:0 15px 10px 15px}.Hndmr table#webcatalogue-table strong.v6{color:#003f98}.Hndmr table#webcatalogue-table p.safe-midashi{color:#fff;font-size:.9em;font-weight:700;line-height:18px;padding:3px 5px 3px 5px}.Hndmr table#webcatalogue-table p.realworldtext{color:#51318f}.Hndmr table#webcatalogue-table span.co2{font-size:.9em}.Hndmr table#webcatalogue-table p.texthyoujimark{font-size:.9em;line-height:16px}.Hndmr table#webcatalogue-table #env-data{font-size:.9em}.Hndmr table#webcatalogue-table #env-data td.tabletext{padding:2px}.Hndmr table#webcatalogue-table strong.price{font-size:.9em}.Hndmr table#webcatalogue-table p.caution_vg{margin-top:7px}.Hndmr table#webcatalogue-table p.navi-midashi{background-color:#1c1f7a;color:#fff;font-size:.9em;font-weight:700;line-height:18px;padding:3px 5px 3px 5px}.Hndmr table#webcatalogue-table .note{color:#1c1f7a}.Hndmr table#webcatalogue-table span.komidashi{color:#006965}.Hndmr table.spec-table td.bd-left{border-left:1px solid #2c2c2c}.Hndmr .block_line_right{border-right:solid 1px #000}.Hndmr #webcata_footer{clear:both;padding:30px 128px 15px 20px;text-align:right}.Hndmr #specifications th.car .small{font-size:x-small;line-height:120%}.Hndmr div#web-catalog-contents{margin:24px}.Hndmr div#web-catalog-contents h4{background:#325958;color:#fff;font-size:.9em;margin-bottom:14px;padding:4px 0 4px 10px}.Hndmr div#web-catalog-contents table.model-navi{margin:0 0 5px 0}.Hndmr div#web-catalog-contents table.model-navi td{padding:0 25px 0 10px}.Hndmr div#web-catalog-contents *{margin:0;padding:0}.Hndmr div#web-catalog-contents h4 span{font-size:.9em;font-weight:400}.Hndmr div#web-catalog-contents p.caution,p.caution{font-size:.9em;line-height:120%}.Hndmr #eq_spec_list td.right_non_border{border-right:none}.Kejje dd{margin-left:20px}.Kejje .gaiji{border:0;margin-bottom:-3px}.Kejje .level1{margin-left:1em}.Kejje .level2{margin-left:1.5em}.Kejje .backlink{margin-top:10px}.Kejje .backlink img{margin-bottom:-3px;margin-right:5px}.Kejje .onsei{margin-bottom:-8px}.Kejje .playSd{cursor:pointer}.youreilink{border-bottom:#080 solid 1px;color:#080;font-weight:700;text-decoration:none}.KejjeYrL,.KejjeYrLS,.KejjeYrM,.KejjeYrMS,.KejjeYrR{background-color:rgba(247,247,247,.14);font-size:.9em;vertical-align:top}.KejjeYrL,.KejjeYrLS{color:#363636;font-size:.9em;padding:0 4px 0 4px;width:40px}.KejjeYrM,.KejjeYrMS{width:13px}.KejjeYrR{padding:0 4px 0 4px}.KejjeYr{border:0;border-collapse:collapse;margin:0 0 3px 25px;padding:0}.KejjeYrMS i{margin:2px 0 0 2px}.KejjeYrLS{cursor:pointer}.KejjeYrC{border:#666 solid 1px;font-size:.9em;padding:1px}.KejjeYrHd{padding:0 .5em 0 0}.KejjeYrTxt{display:none;margin:0;padding:0 .5em 0 0}.KejjeYrHd a,.KejjeYrTxt a{color:#000}.KejjeYrHd a:active,.KejjeYrTxt a:active{color:#000}.KejjeYrHd a:hover,.KejjeYrTxt a:hover{color:#000}.KejjeYrHd a:visited,.KejjeYrTxt a:visited{color:#000}.KejjeYrLn{background-image:url(https://weblio.hs.llnwd.net/e7/img/iconCclBlS.png);background-position:left 5px;background-repeat:no-repeat;line-height:1.2em;margin:0;padding:0 0 0 16px}.KejjeYrLn sup{line-height:1em;margin:0;padding:0}.KejjeYrLn span{line-height:1.6em;margin:0;padding:0}.KejjeYrLn .KejjeYrEn{font-family:Arial;font-weight:700}.KejjeYrKwrd{line-height:1em}.KejjeSm{font-size:.8em;font-weight:400;line-height:1em}.KejjeSm a{line-height:1em}.Kejje .kenjeEnE{border:0;display:list-item;list-style-position:inside;margin:0;padding:0 0 0 10px}.Kejje .onseiSwf{display:inline-block;position:relative;top:8px;margin-left:5px}.KejjeYrMS img{cursor:pointer;margin-top:3px}.KejjeSm{font-size:.8em;font-weight:400;line-height:1em;padding-left:4px}.Kejje .lvlAH,.Kejje .lvlB,.Kejje .lvlNH{float:left;margin:0;padding:0;vertical-align:bottom}.Kejje .lvlNH{font-size:1.3em;font-weight:700;height:1.1em;width:28px}.Kejje .lvlAH{font-size:1.4em;font-weight:700;line-height:1.6em;width:16px}.Kejje .lvlUAH{font-size:1.3em;font-weight:700;height:1.1em}.Kejje .lvlUAB{font-weight:700}.Kejje .lvlB{padding:.1em 0 0 0;max-width:85%}.Kejje .lvlNHje{float:left;font-weight:700;margin:0;padding:0;vertical-align:bottom;width:16px}.Kejje .lvlNBje{float:left;font-weight:700;margin:0 0 12px 0;padding:0}.Kejje .lvlNBje td{line-height:1.6em;margin:0;padding:0 20px 0 0;vertical-align:top}.Kejje .lvlNBjeT{float:left;margin:0;padding:0}.Kejje .lvlNBjeT sup{line-height:1em;margin:0;padding:0}.Kejje .lvlNBjeL{white-space:nowrap}.Kejje .lvlBje{font-weight:700;margin:0;padding:0}.Kejje .lvlB{margin:.3em 0 0 0}.Kejcy .gaiji{border:0;margin-bottom:-3px}.Kejcy .level0{margin:1em 0 0 0}.Kejcy .level1{margin:0 1.5em 0 1.5em}.Kejcy .level2{font-size:.9em;margin:0 3em .5em 3em;padding:.2em .5em 0 .5em}.Gicns .ga_small{font-size:.9em}.Nsrsk .NsrskMaintxt{float:left;text-align:left}.Nsrsk .NsrskRightph{border:#ccc solid 1px;float:right;text-align:center}.Tltdb div.TltdbLeft{float:left;text-align:center}.Tytmt .smallMText{font-size:.7em}.Tpkys div.stroke div.imgArea p.rightImg{margin-right:0}.Tpkys .closeBoxIn div.makeRight{border:#ccc dotted 1px;float:left;height:350px;padding:10px}.Srsbz .SrsbzLeft{float:left}.Srsbz .SrsbzRight{float:right}.Nrksm .NrksmT2 caption{font-weight:700;text-align:left}.Trhnt .TrhntLeft{float:left}.Trhnt .TrhntRight{float:right}.rmvDots{background:0 0!important;padding:0!important}.syosaiLeft{float:left;margin:0 0 20px 25px}.Hgnsh .syosaiLeft{float:left;margin:0 0 0 5px}.Hgnsh .syosaiLeftBox{line-height:1.4em;margin-top:15px;text-align:justify;text-justify:inter-ideograph}.Hgnsh .syosaiRight{float:right;margin-top:5px}.Hgnsh .syosaiRightBox{text-align:center}.Hgnsh .syosaiRightBox img{margin-bottom:0;padding:15px 0 15px}.Hskks .syosaiLeft{float:left;margin:0 0 0 5px}.Hskks .syosaiLeftBox{line-height:1.4em;margin-top:15px;text-align:justify;text-justify:inter-ideograph}.Hskks .syosaiRight{float:right;margin-top:5px}.Hskks .syosaiRightBox{text-align:center}.Hskks .syosaiRightBox img{margin-bottom:0;padding:15px 0 15px}.LiscjYr .synonym1{float:left;margin:0;width:45%}.LiscjYr .synonym2{float:right;margin:0;width:45%}.LiscjYr .clear_column{clear:both}.Liscj .caption p,.Liscj .meaning p{margin:0}.Wejty .wejtyE span,.Wejty .wejtyR span,.Wejty .wejtyT span{background-color:#f0f0f0;border:#666 solid 1px;color:#363636;font-size:.9em;line-height:1em;padding:1px}.Wejty .wejtyT{padding:0}.Wejty .wejtyE,.Wejty .wejtyR{padding:0 0 0 16px}.Wejty .wejtyL{background-color:#f0f0f0;border:#666 solid 1px;color:#363636;font-size:.9em;font-weight:400;line-height:1em;margin-right:8px;padding:1px}.Wejty .wejtyInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:1em 0 0 0;padding:10px}.Wwsej .wwsejInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:20px 0 0 0;padding:10px}.Nwnej .nwnejP{border-left:#815733 solid 6px;font-size:1em;font-weight:700;line-height:1em;margin:12px 0 2px 0;padding-left:3px}.Nwnej .nwnejP a{line-height:1em}.Nwnej .nwnejSEnL,.Nwnej .nwnejSEnR{max-width:90%;float:left;margin:12px 0 0 0}.Nwnej .nwnejSEnL{line-height:1.4em;width:16px}.Nwnej .nwnejSJp{margin:0 0 0 1.5em;padding:0 0 12px 0}.Nwnej .nwnejS p{line-height:1.4em;margin:0;padding:0}.Nwnej .nwnejS a{line-height:1em}.Nwnej .nwnejYr{margin:0 0 0 1.5em;padding:0}.Nwnej .nwnejYrL,.Nwnej .nwnejYrLS,.Nwnej .nwnejYrR{font-size:.9em;vertical-align:top}.Nwnej .nwnejYrL,.Nwnej .nwnejYrLS{margin:0;padding:0;width:13px}.Nwnej .nwnejYrR{padding:0 4px 0 4px}.Nwnej .nwnejYrLS i{margin:4px 0 0 3px}.Nwnej .nwnejYrHd{padding:0 .5em 0 0}.Nwnej .nwnejYrTxt{display:none;margin:0;padding:0 .5em 0 0}.Nwnej .nwnejYrLn{background-image:url(https://weblio.hs.llnwd.net/e7/img/iconCclBlS.png);background-position:left 5px;background-repeat:no-repeat;line-height:1.2em;padding:0 0 0 12px}.Nwnej .nwnejYrE,.Nwnej .nwnejYrJ{font-size:.9em;margin:0}.Nwnej .nwnejYrE{font-family:Arial;font-weight:700;padding-right:8px}.Nwnej .nwnejThL a:active,.Nwnej .nwnejThL a:hover,.Nwnej .nwnejThL a:link,.Nwnej .nwnejThL a:visited{border-bottom:currentColor dotted 1px;display:inline-block;font-size:1em;line-height:10px;text-decoration:none}.Wejhs .wejhsSub{border-left:#815733 solid 6px;font-size:1.3em;font-weight:700;line-height:1em;margin:10px 0 5px 0;padding-left:3px}.Wejhs .wejhsSub a{line-height:1em}.Wejhs .wejhsD{margin-left:20px;margin-top:10px;padding:5px}.Wejhs .wejhsL{float:left;padding:2px 0 2px 0}.Wejhs .wejhsL span{border:#666 solid 1px;color:#363636;font-size:.9em;margin:0 16px 0 12px;padding:1px}.Wejhs .wejhsR{float:left}.Wejhs .wejhsInfo{border:#b5b6b5 solid 1px;font-size:.8em;line-height:1.32em;margin:50px 0 0 0;padding:10px}.Wkpen .wkpenWrp{line-height:1.3em;margin-top:5px;padding:9px 5px 9px 15px;width:95%}.Jawik .level0,.Jawik .level0Head{font-size:1.4em;font-weight:700;margin:10px 0 2px 0;padding-left:5px}.Jawik .level0Head{margin-top:0}.Jawik .level0 span,.Jawik .level0Head span{border:#b81e07 solid;border-width:0 0 0 8px;padding:3px 2px 2px 0}.Hypej .level0{margin:1em 0 0 0;padding:0}.Hypej .HypejSub{border-left:#815733 solid 6px;font-size:1.3em;font-weight:700;line-height:1em;margin:10px 0 5px 0;padding-left:3px}.Hypej .HypejSm{font-size:.8em;font-weight:400;line-height:1em;padding-left:3px}.Hypej .lvlNH{float:left;font-size:1.3em;font-weight:700;height:1.1em;margin:0;padding:0;vertical-align:bottom;width:28px}.Hypej .lvlB{float:left;margin:0;padding:.3em 0}.HypejYrL,.HypejYrR{font-size:.9em;vertical-align:top}.Hypej .HypejYr{border:0;border-collapse:collapse;margin:5px 0 1em 1em;padding:0}.Hypej .HypejYrL{padding:0 4px 0 4px;width:40px}.Hypej .HypejYrC{border:#666 solid 1px;font-size:.9em;padding:1px}.Hypej .HypejYrLn{background-image:url(https://weblio.hs.llnwd.net/e7/img/iconCclBlS.png);background-position:left 5px;background-repeat:no-repeat;line-height:1.2em;margin:0;padding:0 0 0 16px}.Hypej .HypejYrEn{font-family:Arial;font-weight:700}.Hypej .HypejLb{background-color:#eee;border:#999 solid 1px;color:currentColor;font-size:1em;font-weight:400;margin:0 2px 0 3px;padding:1px}.Hypej .HypejB{border-collapse:collapse;width:80%}.Hypej .HypejB tr th{border:gray solid 1px;padding:3px}.Hypej .HypejB tr td{border:gray solid 1px;padding:3px}.Hypej .onseiSwf{padding:10px 0 0 2px;vertical-align:middle}.Gkzkj .level0{margin:0;padding:0}.Efref .efrefA{color:#999;font-size:1em;margin:0 0 12px}.Nkjtn .nkjtnI caption{font-weight:700}.Cgkgj .cgkgjSm,h2.midashigo .cgkgjSm{font-size:.6em;margin-left:.4em}.Cgkgj .level0{margin:0;padding:0}.EgtejLb{border:#666 solid 1px;font-size:1em;font-weight:700;margin:2px 0;margin-right:8px;padding:0 3px!important;white-space:nowrap}.EgtejRSpc{margin-right:10px}.EgtejSub,.EgtejSubS{background-color:var(--color-font-grey);border:none!important;border-radius:3px;color:#fff;display:inline;font-size:1em;font-weight:400!important;line-height:30px!important;margin-right:5px;padding:0 5px 3px 5px!important}.EgtejSubS{font-size:1em}.EgtejCcl a,.EgtejSub a,.EgtejSubS a{color:#fff!important;text-decoration:none!important}.EgtejCcl a{line-height:18px}.EgtejBld{font-weight:700}.EgtejIdxAr,.EgtejYrAr{margin-top:3px;background-color:rgba(173,173,173,.16);padding:5px}.EgtejYrTb{border-collapse:collapse;width:100%}.EgtejYrTb td{vertical-align:top}.EgtejYrImg img{width:100%}.EgtejYrTb th{vertical-align:top;width:40px}.EgtejWrp{margin-left:2px}.EgtejCrTb{margin-bottom:10px}.EgtejCrTb td{padding-left:30px;vertical-align:top}.EgtejCrTb td:first-child{padding:0;width:40%}.EgtejCrTb td img{border:#ccc solid 1px;padding:10px;width:100%}.EgtejSpc{display:inline-block;width:1em}.EgtejClmTb{width:100%}.EgtejClmTb td{line-height:1.2em;vertical-align:top}.EgtejClmImg img{width:100%}.EgtejIdxCld{margin-left:40px;margin-right:10px}.EgtejSign{display:inline-block;font-size:1em;line-height:1.2em;margin-top:10px}.EgtejCcl{background-color:var(--color-font-grey);border-radius:50%;color:#fff;display:inline-block;font-size:1em;font-weight:700;height:18px;line-height:18px;text-align:center;width:18px}.EgtejRmIdx{font-size:1em}.EgtejAncTgt{display:none}.EgtejAncTgt+.br{margin-bottom:1em}.EgtejAncLnk{text-decoration:none}.CtbdsWrp{margin:0 15px 25px 4px}.CtbdsWrpNt{margin-top:36px;margin-bottom:36px}.Jfwik .level0,.Jfwik .level0Head{font-size:1.4em;font-weight:700;margin:10px 0 2px 0;padding-left:5px}.Jfwik .level0Head{margin-top:0}.Jfwik .level0 span,.Jfwik .level0Head span{border:#95adce solid;border-width:0 0 0 8px;padding:3px 2px 2px 0}.flex-rectangle-ads-frame{display:flex;justify-content:space-around;align-items:center}.intrstR .conjugateRowL{width:14%;vertical-align:top}.summaryM{margin-bottom:5px}.summaryHead{display:flex;align-items:center}.summaryHead h1{font-size:1.3rem}.summaryHead .h1keywords{display:none}img{display:inline}.qotC{margin:.5em 0}.qotC p{margin:0}.qotCE .squareCircle,.qotCJE .squareCircle{display:none}.CtbdsLb{background-color:var(--color-font-grey);color:#fff;font-size:15px;font-weight:400;margin:0 6px 0 4px;padding:3px 5px!important;white-space:nowrap}.CtbdsLbNt{font-size:20px}.CtbdsTdCore,.CtbdsTdPoint{width:auto}.CtbdsWrp{margin:0 15px 25px 4px}.CtbdsWrpNt{margin-top:36px;margin-bottom:36px}.CtbdsCat,.CtbdsPv{margin:10px 0}.CtbdsPv{font-weight:700}.CtbdsSemSpaced{margin-bottom:10px}.CtbdsExAr{background-color:rgba(173,173,173,.16);height:auto;margin:0 5px 5px 5px;padding:5px}.CtbdsEx{padding-left:20px;margin:0}.CtbdsEx li{list-style-type:disc}.CtbdsMetaTb{border-spacing:0;margin:0 0 15px 0}.CtbdsMetaTb td{vertical-align:top}.jmnedGls{margin:0}.br{margin-bottom:5px}.level0 .br{margin:0}.Nekym table{width:100%;table-layout:fixed;border-collapse:collapse;border:1px #696969 solid}.Nekym table th{background-color:#f5f5f5;border:1px #696969 solid;font-weight:700;padding:3px;white-space:nowrap}.Nekym table td{border:1px #696969 solid;padding:5px;line-height:1.3em}.Nekym .nekymS{border-left:#815733 solid 6px;font-size:1.3em;font-weight:700;line-height:1em;margin:10px 0 5px 0;padding-left:3px}.KejjeIdH{border-left:#666 solid 6px;font-size:1.2em;line-height:1em;margin:10px 0 5px 0;padding-left:3px}.phraseEjjeT td{vertical-align:top}.nwnejThL{margin-top:1em}.qotHS{border:#666 solid 1px;padding:0 2px}.qotCE{font-weight:700;line-height:1.2;margin:2px 0 2px 0;padding:0}.qotCJ{color:var(--color-font-grey);line-height:1.2em;margin:-1px 0 13px 0;padding:0}.phraseEjjeT{width:100%}',""]),e.exports=t},697:function(e,t,i){var r=i(1360);e.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/85.447974b9.js b/plugins/saladict-ztools/ext-saladic/assets/85.447974b9.js new file mode 100644 index 00000000..726e83bb --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/85.447974b9.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[85],{411:function(e,t,o){"use strict";o.r(t),o.d(t,"locale",(function(){return a}));const a={chooseLang:"Choose another language",standalone:"Saladict Standalone Panel",fetchLangList:"Fetch full language list",transContext:"Retranslate",neverShow:"Stop showing",fromSaladict:"From Saladict Panel",tip:{historyBack:"Previous search history",historyNext:"Next search history",searchText:"Search text",openOptions:"Open Options",addToNotebook:"Add to Notebook. Right click to open Notebook",openNotebook:"Open Notebook",openHistory:"Open History",shareImg:"Share as image",pinPanel:"Pin the panel",closePanel:"Close the panel",sidebar:"Switch to sidebar mode. Right click to right side.",focusPanel:"Panel gains focus when searching",unfocusPanel:"Panel does not gain focus when searching"},wordEditor:{title:"Add to Notebook",wordCardsTitle:"Other results from Notebook",deleteConfirm:"Delete from Notebook?",closeConfirm:"Changes will not be saved. Are you sure to close?",chooseCtxTitle:"Pick translated results",ctxHelp:"Keep the [:: xxx ::] and --------------- format if you want Saladict to handle translation selection and generate Anki table."},machineTrans:{switch:"Switch Language",sl:"Source Language",tl:"Target Language",auto:"Detect language",stext:"Original",showSl:"Show Source",copySrc:"Copy Source",copyTrans:"Copy Translation",login:"Please provide {access token}.",dictAccount:"access token"},manualVerification:{title:"Manual verification required",message:"Open the original dictionary page and complete the human verification, then try this search again in Saladict.",openPage:"Open dictionary page"},updateAnki:{title:"Update to Anki",success:"Successfully update word to Anki.",failed:"Failed to update word to Anki."}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/86.1b2e5d83.js b/plugins/saladict-ztools/ext-saladic/assets/86.1b2e5d83.js new file mode 100644 index 00000000..175c7038 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/86.1b2e5d83.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[86],{413:function(a,e,o){"use strict";o.r(e),o.d(e,"locale",(function(){return n}));const n={baidu_page_translate:"Baidu Page Translate",baidu_search:"Baidu Search",bing_dict:"Bing Dict",bing_search:"Bing Search",caiyuntrs:"Lingocloud Page Translate",cambridge:"Cambridge",copy_pdf_url:"Copy PDF URL to Clipboard",dictcn:"Dictcn",etymonline:"Etymonline",google_cn_page_translate:"Google cn Page Translate",google_page_translate:"Google Page Translate",google_search:"Google Search",google_translate:"Google Translate",google_cn_translate:"Google.cn Translate",guoyu:"國語辭典",history_title:"Search History",iciba:"iciba",liangan:"兩岸詞典",longman_business:"Longman Business",manual_title:"Manual",merriam_webster:"Merriam Webster",microsoft_page_translate:"Microsoft Page Translate",notebook_title:"New Word List",notification_youdao_err:"Youdao Page Translate 2.0 not responding.\nSaladict might not have permission to access this page.\nIgnore this message if Youdao panal is shown.",oxford:"Oxford",page_permission_err:'Saladict "{{name}}" does not have permission to access this page.',page_translations:"Page Translations",saladict:"Saladict",saladict_standalone:"Saladict Standalone Panel",sogou:"Sogou Translate",sogou_page_translate:"Sogou Page Translate",termonline:"Termonline",view_as_pdf:"Open in PDF Viewer",youdao:"Youdao",youdao_page_translate:"Youdao Page Translate",youglish:"YouGlish"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/86.c17d608a.js b/plugins/saladict-ztools/ext-saladic/assets/86.c17d608a.js deleted file mode 100644 index 7562ed62..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/86.c17d608a.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[86],{1361:function(t,e,s){(e=s(221)(!1)).push([t.i,".dictWebsterLearner-Header .hw_txt{font-size:1.5em;font-weight:700}.dictWebsterLearner-Related a{margin-left:2em;color:#16a085}.dictWebsterLearner-Entry>.labels>.lb{font-style:italic}.dictWebsterLearner-Entry>.labels>.gram>.gram_internal{color:#757575}.dictWebsterLearner-Entry>.labels>.sl{font-style:italic}.dictWebsterLearner-Entry>.dros{margin-bottom:1em}.dictWebsterLearner-Entry>.dros>.dro{margin-bottom:.8em;padding-left:.8em}.dictWebsterLearner-Entry>.dros>.dro:last-child{margin-bottom:0}.dictWebsterLearner-Entry>.dros>.dro>.dro_line{margin-left:-.8em}.dictWebsterLearner-Entry>.dros>.dro>.dro_line>*{vertical-align:middle}.dictWebsterLearner-Entry>.dros>.dro>.dro_line>.dre{display:inline;font-weight:700;padding:0;margin:0;font-size:inherit}.dictWebsterLearner-Entry>.dros>.dro>.dro_line>.gram>.gram_internal{color:#757575}.dictWebsterLearner-Entry>.dros>.dro>.dro_line>.sl{font-style:italic}.dictWebsterLearner-Entry>.dros>.dro>.dro_line>.rsl{font-style:italic}.dictWebsterLearner-Entry>.dros>.dro>.dxs{margin-top:.6em;display:block}.dictWebsterLearner-Entry>.uros{margin-bottom:1em}.dictWebsterLearner-Entry>.uros>.uro{margin-bottom:.8em;padding-left:.8em}.dictWebsterLearner-Entry>.uros>.uro:last-child{margin-bottom:0}.dictWebsterLearner-Entry>.uros>.uro>.uro_line{margin-left:-.8em}.dictWebsterLearner-Entry>.uros>.uro>.uro_line>*{vertical-align:middle}.dictWebsterLearner-Entry>.uros>.uro>.uro_line>.ure{display:inline;font-weight:700;padding:0;margin:0;font-size:inherit;margin-right:.5em}.dictWebsterLearner-Entry>.uros>.uro>.uro_line>.gram>.gram_internal{color:#757575}.dictWebsterLearner-Entry>.uros>.uro>.uro_line>.lb{font-style:italic}.dictWebsterLearner-Entry>.uros>.uro>.uro_line>.sl{font-style:italic}.dictWebsterLearner-Entry>.uros>.uro>.uro_line>.fl{color:#717274;font-style:italic;font-weight:700}.dictWebsterLearner-Entry>.uros>.uro>.uro_def{margin:.5em 0 0 0}.dictWebsterLearner-Entry>.uros>.uro>.uro_def:first-child{margin-top:0}.dictWebsterLearner-Entry>.uros>.uro>.uro_def>:first-child{margin-top:0}.dictWebsterLearner-Entry>.cxs{margin-top:1.2em;margin-bottom:1.2em}.dictWebsterLearner-Entry>.cxs .cx_link{font-variant:small-caps;font-size:1.1em;line-height:1}.dictWebsterLearner-Entry>.cxs .cx_link sup{font-size:50%}.dictWebsterLearner-Entry>.cxs .cl{font-style:italic}.smark{font-size:117%;font-weight:700;padding-left:1px}.boxy{box-sizing:border-box}.comma{margin:0;padding:0;font-weight:400;color:#000;font-style:normal}.semicolon{margin:0;padding:0;font-weight:400;color:#000;font-style:normal}.bc{font-weight:700}.mw_spm_aq{color:#000;margin:0;padding:0;padding:0;border:none}.dline{background:#fff url(data:image/gif;base64,R0lGODlhAwAOAJEAALKysv///////wAAACH5BAEHAAIALAAAAAADAA4AAAIGlI+poN0FADs=) repeat-x left center;margin-bottom:1.3em}.dline span{background-color:#fff;color:#3692a4;line-height:1.1;font-weight:700;display:inline-block;margin:0;padding-right:.8em}.wod_img_tit{color:#757575;font-style:italic;margin-bottom:15px}.wod_img_act{padding:0;line-height:0}.pron_w{color:#717274;font-weight:400;font-size:109%}.pron_i{color:#d40218;font-size:140%}.pron_i:hover{color:red;text-decoration:none}.v_label{font-style:italic;color:#757575}.v_text{font-weight:700}.i_label{font-style:italic;color:#757575}.i_text{font-weight:700}.pva{font-weight:700}.synpar{border:1px solid #ccc;padding:4px 10px 6px 10px;margin-bottom:1em}.synpar>.synpar_part{margin-bottom:10px}.synpar>.synpar_part:last-child{margin-bottom:0}.synpar>.synpar_part>.synpar_w{font-variant:small-caps;font-size:1.1em;line-height:1}.synpar>.synpar_part>:last-child{margin-bottom:0}.snotes{margin-bottom:1em;overflow:hidden}.snotes>*{margin-bottom:.8em}.snotes>:last-child{margin-bottom:0}.snotes>.snote_text>.snote_link{font-variant:small-caps;font-size:1.1em;line-height:1}.snotes>.snote_text>.snote_link sup{font-size:50%}.snotebox{border:1px solid #ccc;padding:.8em;margin-bottom:1em;overflow:hidden}.snotebox>.snotebox_text{text-align:justify}.snotebox>.snotebox_text>.snote_link{font-variant:small-caps;font-size:1.1em;line-height:1}.snotebox>.snotebox_text>.snote_link sup{font-size:50%}.sblocks{margin-bottom:1em}.sblocks .sense{margin-bottom:.5em}.sblocks>.sblock{width:100%;margin:6px 0 0 0}.sblocks>.sblock>.sblock_c{margin-bottom:10px}.sblocks>.sblock>.sblock_c:last-child{margin-bottom:0}.sblocks>.sblock>.sblock_c>.sn_block_num{float:left;font-weight:700}.sblocks>.sblock>.sblock_c>.scnt>.sblock_labels>.slb{font-style:italic}.sblocks>.sblock>.sblock_c>.scnt>.sblock_labels>.ssla{font-style:italic}.sblocks>.sblock>.sblock_c>.scnt>.sblock_labels>.sgram>.sgram_internal{color:#757575}.sblocks>.sblock>.sblock_c>.scnt>.sblock_labels>.bnote{font-weight:700;font-style:italic}.sblocks>.sblock>.sblock_c>.scnt{margin-bottom:10px;overflow:auto}.sblocks>.sblock>.sblock_c>.scnt:last-child{margin-bottom:0}.sblocks>.sblock>.sblock_c>.scnt>.sense>:last-child{margin-bottom:0;padding-bottom:0}.sblocks>.sblock>.sblock_c>.scnt>.sense>.sn_letter{font-weight:700;float:left}.sblocks>.sblock>.sblock_c>.scnt>.sense>.sd{font-style:italic}.sblocks>.sblock>.sblock_c>.scnt>.sense>.bnote{font-weight:700;font-style:italic;color:#000}.sblocks>.sblock>.sblock_c>.scnt>.sense>.slb{font-style:italic}.sblocks>.sblock>.sblock_c>.scnt>.sense>.sgram>.sgram_internal{color:#757575}.sblocks>.sblock>.sblock_c>.scnt>.sense>.ssla{font-style:italic}.sblocks>.sblock>.sblock_c>.scnt>.sense>.def_text{margin-bottom:6px}.sblocks>.sblock>.sblock_c>.scnt>.sense>.def_text>.bc{font-weight:700}.sblocks>.sblock>.sblock_c>.scnt>.sense>.def_labels{margin-top:10px;padding-left:14px}.sblocks>.sblock>.sblock_c>.scnt>.sense>.def_labels>.wsgram>.wsgram_internal{color:#757575}.sblocks>.sblock>.sblock_c>.scnt>.sense>.def_labels>.sl{font-style:italic}.vis_w{margin-bottom:.3em}.vis_w>.vis{padding-left:1.2em}.vis_w>.vis>.vi{padding:.08em 0;list-style-type:square;color:#5fb68c}.vis_w>.vis>.vi>.vi_content{color:var(--color-font-grey);margin-left:-2px;line-height:1.3}.vis_w>.vis>.vi:first-child{padding-top:0}.vis_w>.vis>.vi:last-child{padding-bottom:0}.vis_w>.vi_more{display:none}.isyns>.bc{font-weight:700}.isyns>.isyn_link{font-variant:small-caps;font-size:1.1em;line-height:1}.isyns>.isyn_link sup{font-size:50%}.dxs.dxs_nl{margin-bottom:1em}.dxs .dx .dx_link{font-variant:small-caps;font-size:1.1em;line-height:1}.dxs .dx .dx_link sup{font-size:50%}.dxs .dx .dx_span{font-variant:small-caps;font-size:1.1em;line-height:1}.dxs .dx .dx_span sup{font-size:50%}.dxs .dx .dx_ab{font-style:italic}.dxs .dx .dx_tag{font-style:italic}.cas{margin-top:14px}.cas>.ca_prefix{font-style:italic}.cas>.ca_text{font-style:italic}.usage_par{padding:.3em .7em;border:1px solid #ccc;margin-bottom:1em}.usage_par>.usage_par_h{font-weight:700}.usage_par>.ud_text{text-align:justify}.usage_par>*{margin-bottom:.5em}.usage_par>:last-child{margin-bottom:0}.synref_h1{font-weight:700}.synref_link{font-variant:small-caps;font-size:1.1em;line-height:1}.synref_link sup{font-size:50%}.usageref_block>.usageref_h1{font-weight:700}.usageref_block>.usageref_link{font-variant:small-caps;font-size:1.1em;line-height:1}.usageref_block>.usageref_link sup{font-size:50%}",""]),t.exports=e},698:function(t,e,s){var o=s(1361);t.exports="string"==typeof o?o:o.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/87.5418b798.js b/plugins/saladict-ztools/ext-saladic/assets/87.5418b798.js new file mode 100644 index 00000000..36d74632 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/87.5418b798.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[87],{414:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));const o={title:"Saladict Options",previewPanel:"Preview Dict Panel",shortcuts:"Set Shortcuts",msg_update_error:"Unable to update",msg_updated:"Successfully updated",msg_first_time_notice:"First time notice",msg_err_permission:'Unable to request "{{permission}}" permission.',unsave_confirm:"Settings not saved. Sure to leave?",nativeSearch:"search selected text outside of browser",firefox_shortcuts:'Open about:addons, click the top right "gear" button, choose the last "Manage extension shortcuts".',tutorial:"Tutorial",page_selection:"Page Selection",nav:{General:"General",Notebook:"Notebook",Profiles:"Profiles",DictPanel:"Dict Panel",SearchModes:"Search Modes",Dictionaries:"Dictionaries",DictAuths:"Access Tokens",Popup:"Popup Panel",QuickSearch:"Quick Search",Pronunciation:"Pronunciation",PDF:"PDF",ContextMenus:"Context Menus",BlackWhiteList:"Black/White List",ImportExport:"Import/Export",Privacy:"Privacy",Permissions:"Permissions"},config:{active:"Enable Inline Translator",active_help:'"Quick Search" is still available even if Inline translation is turned off.',animation:"Animation transitions",animation_help:"Switch off animation transitions to reduce runtime cost.",runInBg:"Keep in Background",runInBg_help:"Keep the browser running in background after close so that global shortcuts still work.",darkMode:"Dark Mode",langCode:"App Language",editOnFav:"Open WordEditor when saving",editOnFav_help:"When turned off, new words will be added to notebook directly.",searchHistory:"Keep search history",searchHistory_help:"Your browsing history could be unintentionally revealed in Search history.",searchHistoryInco:"Also in incognito mode",ctxTrans:"Context Translate Engines",ctxTrans_help:"Context sentence will be translated before being added to notebook.",searchSuggests:"Search suggests",panelMaxHeightRatio:"Panel max height ratio",panelWidth:"Panel width",fontSize:"Font size for search reasults",bowlOffsetX:"Saladict icon Offset X",bowlOffsetY:"Saladict icon Offset Y",panelCSS:"Custom Dict Panel Styles",panelCSS_help:"Custom CSS. For Dict Panel use .dictPanel-Root as root. For dictionaries use .dictRoot or .d-{id} as root",noTypeField:"No selection on editable regions",noTypeField_help:"If selection making in editable regions is banned, the extension will identify Input Boxes, TextAreas and other common text editors like CodeMirror, ACE and Monaco.",touchMode:"Touch Mode",touchMode_help:"Enable touch related selection",language:"Selection Languages",language_help:"Search when selection contains words in the chosen languages.",language_extra:"Note that Japanese and Korean also include Chinese. French, Deutsch and Spanish also include English. If Chinese or English is cancelled while others are selected, only the exclusive parts of those languages are tested. E.g. kana characters in Japanese.",doubleClickDelay:"Double Click Delay",mode:"Normal Selection",panelMode:"Inside Dict Panel",pinMode:"When Panel is Pinned",qsPanelMode:"When Standalone Panel is Opened",bowlHover:"Icon Mouse Hover",bowlHover_help:"Hover on the bowl icon to trigger searching instead of clicking.",autopron:{cn:{dict:"Chinese Auto-Pronounce"},en:{dict:"English Auto-Pronounce",accent:"Accent Preference"},machine:{dict:"Machine Auto-Pronounce",src:"Machine Pronounce",src_help:"Machine Translation Dictionary needs to be added and enabled on the list below to enable auto-pronunciation.",src_search:"Read Source Text",src_trans:"Read Translation Text"}},pdfSniff:"Enable PDF Sniffer",pdfSniff_help:"If turned on, PDF links will be automatically captured (including local files, if file URL access is enabled on the extensions page).",pdfSniff_extra:"It is recommended to {search selected text outside of browser} with your own favorite local reader.",pdfStandalone:"Standalone Panel",pdfStandalone_help:"Open PDF viewer in standalone panel.",baWidth:"Width",baWidth_help:"Browser Action Panel wdith. Dict Panel width will be used if a negative value is chosen.",baHeight:"Height",baHeight_help:"Browser Action Panel height.",baOpen:"Browser Action",baOpen_help:"When clicking the browser action icon in toolbar (next to the address bar). Items are same as Context Menus, which can be added or edited on the Context Menus config page.",tripleCtrl:"Enable Ctrl Shortkey",tripleCtrl_help:"Press {⌘ Command}(macOS) or {Ctrl}(Others) three times (or with browser shortkey) to summon the dictionary panel. ",defaultPinned:"Pinned when shows up",qsLocation:"Location",qsFocus:"Focus when shows up",qsStandalone:"Standalone",qsStandalone_help:"Render dict panel in a standalone window. You can {search selected text outside of browser}.",qssaSidebar:"Sidebar Layout",qssaSidebar_help:"Rearrange windows to sidebar-like layout.",qssaHeight:"Window Height",qssaPageSel:"Selection Response",qssaPageSel_help:"Response to page selection.",qssaRectMemo:"Remember size and position",qssaRectMemo_help:"Remember standalone panel size and position on close.",updateCheck:"Check Update",updateCheck_help:"Check update automatically.",analytics:"Enable Google Analytics",analytics_help:"Share anonymous device browser version information. Saladict author will offer prioritized support to popular devices and browsers.",opt:{reset:"Reset Configs",reset_confirm:"Reset to default settings. Confirm?",upload_error:"Unable to save settings.",accent:{uk:"UK",us:"US"},sel_blackwhitelist:"Selection Black/White List",sel_blackwhitelist_help:"Saladict will not react to selection in blacklisted pages.",pdf_blackwhitelist_help:"Blacklisted PDF links will not jump to Saladict PDF Viewer.",contextMenus_description:"Each context menus item can also be customized. Youdao and Google page translate are deprecated in favor of the official extensions.",contextMenus_edit:"Edit Context Menus Items",contextMenus_url_rules:"URL with %s in place of query.",baOpen:{popup_panel:"Dict Panel",popup_fav:"Add to Notebook",popup_options:"Open Saladict Options",popup_standalone:"Open Saladict Standalone Panel"},openQsStandalone:"Standalone Panel Options",pdfStandalone:{default:"Never",always:"Always",manual:"Manual"}}},matchPattern:{description:"Specify URL as {URL Match Pattern} or {Regular Expression}. Empty fields will be removed.",url:"URL Match Pattern",url_error:"Incorrect URL Match Pattern.",regex:"Regular Expression",regex_error:"Incorrect Regular Expression."},searchMode:{icon:"Show Icon",icon_help:"A cute little icon pops up nearby the cursor.",direct:"Direct Search",direct_help:"Show dict panel directly.",double:"Double Click",double_help:"Show dict panel after double click selection.",holding:"Hold a key",holding_help:'After a selection is made, the selected key must be pressing when releasing mouse (Alt is "⌥ Option" on macOS. Meta key is "⌘ Command" on macOS and "⊞ Windows" for others.).',instant:"Instant Capture",instant_help:"Selection is automatically made near by the cursor.",instantDirect:"Direct",instantKey:"Key",instantKey_help:'If "Direct" is chosen it is also recommeded setting browser shortkey to toggle Instant Capture. Otherwise browser text selection could be unable to perform.',instantDelay:"Capture delay"},profiles:{opt:{add_name:"Add Profile Name",delete_confirm:'Delete Profile "{{name}}". Confirm?',edit_name:"Change Profile Name",help:"Each profile represents an independent set of settings. Some of the settings (with {*} prefix) change according to profile. One may switch profiles by hovering on the menu icon on Dict Panel, or focus on the icon then hit {↓}."}},profile:{mtaAutoUnfold:"Auto unfold multiline search box",waveform:"Waveform Control",waveform_help:"Display a button at the bottom of the Dict Panel for expanding the Waveform Control Panel which is only loaded after expansion.",stickyFold:"Sticky Folding",stickyFold_help:"Remembers manual dictionary folding/unfolding states when searching. Only last on the same page.",opt:{item_extra:'This option may change base on "Profile".',mtaAutoUnfold:{always:"Keep Unfolding",never:"Never Unfold",once:"Unfold Once",popup:"Only On Browser Action",hide:"Hide"},dict_selected:"Selected Dicts"}},dict:{add:"Add dicts",more_options:"More Options",selectionLang:"Selection Languages",selectionLang_help:"Show this dictionary when selection contains words in the chosen languages.",defaultUnfold:"Default Unfold",defaultUnfold_help:"If turned off, this dictionary won't start searching unless it's title bar is clicked.",selectionWC:"Selection Word Count",selectionWC_help:"Show this dictionary when selection word count meets the requirements. Set 999999 for unlimited words.",preferredHeight:"Default Panel Height",preferredHeight_help:"Maximum height on first appearance. Contents exceeding this height will be hidden. Set 999999 for unlimited height.",lang:{de:"De",en:"En",es:"Es",fr:"Fr",ja:"Ja",kor:"Kor",zhs:"Zhs",zht:"Zht"}},syncService:{description:"Sync settings.",start:"Syncing. Do not close this page until finished.",finished:"Syncing finished",success:"Syncing success",failed:"Syncing failed",close_confirm:"Settings not saved. Close?",delete_confirm:"Delete?",shanbay:{description:"Go to shanbay.com and log in first(must stay logged in). Note that it's a one-way sync(from Saladict to Shanbay). Only the new added words are synced. Words also need to be supported by Shanbay's database.",login:"Will open shanbay.com. Please log in then come back and enable again.",sync_all:"Upload all existing new words",sync_all_confirm:"Too many new words in notebook. Saladict will upload in batches. Note that uploading too many words in short period would cause account banning which is unrecoverable. Confirm?",sync_last:"Upload the last new word"},eudic:{description:"Before using Eudic to synchronize words, you must first create a default new word book on Eudic official website (my.eudic.net/home/index) (generally, it will be automatically generated and cannot be deleted after the first manual import). Pay attention not to synchronize frequently in a short time, which may cause temporary lock.",token:"Authorization information",getToken:"Get authorization",verify:"Check authorization information",verified:"Eudic authorization information checked successfully",enable_help:"After opening, each new word added will be automatically synchronized to the Eudic default word book (salad to Eudic word book) in one direction, and only the new word itself will be synchronized (deleted out of synchronization)",token_help:"Please confirm to set valid personal authorization information, otherwise the synchronization will fail. You can click the button at the bottom to check.",sync_all:"Synchronize all new words",sync_help:"Synchronize all existing new words in salad word book to the Eudic default word book (turn on the synchronization switch above at the same time and click save)",sync_all_confirm:"Note that frequent synchronization in a short time may lead to lock temporarily. Are you sure to continue?"},webdav:{description:"Extension settings (including this) are synced via browser. New words notebook can be synced via WebDAV through settings here.",jianguo:"See Jianguoyun for example",checking:"Connecting...",exist_confirm:"Saladict directory exists on server. Download it and merge with local data?",upload_confirm:"Upload local data to Server right away?",verify:"Verify server",verified:"Successfully verified WebDAV server.",duration:"Duration",duration_help:"Data is guaranteed to be updated before upload. If you do not need real-time syncing across browsers, set a longer polling cycle to reduce CPU and memory footprint.",passwd:"Password",url:"Server Address",user:"User Account"},ankiconnect:{description:"Please make sure Anki Connect plugin is installed and Anki is running. You can also update word to Anki in Word Editor.",checking:"Checking...",deck_confirm:'Deck "{{deck}}" does not exist in Anki. Generate a new deck?',deck_error:'Unable to create deck "{{deck}}".',notetype_confirm:'Note type "{{noteType}}" does not exist in Anki. Generate a new note type.',notetype_error:'Unable to create note type "{{noteType}}".',upload_confirm:"Sync local new words to Anki right away? Duplicated words (with same timestamp) will be skipped.",add_yourself:"Please add it youself in Anki.",verify:"Verify Anki Connect",verified:"Successfully verified Anki Connect",enable_help:'When enabled, each time a new word is added to Notebook it will also be ported to Anki automatically. Words that exist in Anki(with same "Date") can be force-updated in Word Editor.',host:"Address",port:"port",key:"Key",key_help:"Optional key can be added in Anki Connect config for identification.",deckName:"Deck",deckName_help:'If deck does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below.',noteType:"Note Type",noteType_help:'Anki note type includes a set of fields and card type. If note type does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below. DO NOT change field names when editing or adding card templates in Anki',tags:"Tags",tags_help:"Anki notes can include tags separated with commas.",escapeHTML:"Escape HTML",escapeHTML_help:"Escape HTML entities. Turn off if using HTML for manual layout.",syncServer:"Sync Server",syncServer_help:"Sync to server(e.g. AnkiWeb) after new words being added to local Anki."}},titlebarOffset:{title:"Calibrate Titlebar Height",help:"Different systems or browser settings may result in different titlebar height. Saladict will attempt to calibrate automatically. If you may adjust manually.",main:"Normal",main_help:"Normal windows may not have titlebar.",panel:"Panel",panel_help:"Saladict standalone quick search panel is a type of panel window.",calibrate:"Auto-calibrate",calibrateSuccess:"Calibration success",calibrateError:"Calibration failed"},headInfo:{acknowledgement:{title:"Acknowledgement",yipanhuasheng:"for adding Merriam Webster's Dict, American Heritage Dict, Oxford Learner's Dict and Eudic Notebook sync service; and updating Urban Dict and Naver Dict",naver:"for helping add Naver dict",shanbay:"for adding Shanbay dict",trans_tw:"for traditional Chinese translation",weblio:"for helping add Weblio dict"},contact_author:"Contact Author",donate:"Donate",instructions:"Instructions",report_issue:"Report Issue"},form:{url_error:"Incorrect URL.",number_error:"Incorrect number."},preload:{title:"Preload",auto:"Auto search",auto_help:"Search automatically when panel shows up.",clipboard:"Clipboard",help:"Preload content in search box when panel shows up.",selection:"Page Selection"},locations:{CENTER:"Center",TOP:"Top",RIGHT:"Right",BOTTOM:"Bottom",LEFT:"Left",TOP_LEFT:"Top Left",TOP_RIGHT:"Top Right",BOTTOM_LEFT:"Bottom Left",BOTTOM_RIGHT:"Bottom Right"},import_export_help:"Configs are auto-synced via browser. Here you can also import/export manually. Backups are exported as plain text files. Please encrypt it yourself if needed.",import:{title:"Import Configs",error:{title:"Import Error",parse:"Unable to parse backup. Incorrect format.",load:"Unable to load backup. Browser cannot obtain the local file.",empty:"No valid data found in the backup."}},export:{title:"Export Configs",error:{title:"Export Error",empty:"No config to export.",parse:"Unable to parse configs."}},dictAuth:{description:"As the number of Saladict users grows, if you make heavily use of machine translation services it is recommended to register an account for better stability and accuracy. The account data will only be stored in the browser.",dictHelp:"See the official website of {dict}.",manage:"Manage Translator Accounts"},third_party_privacy:"Third Party Privacy",third_party_privacy_help:'Saladict will not collect further information but search text and releated cookies will be sent to third party dictionary services(just like how you would search on their websites). If you do not want third party services to collect you data, remove the corresponding dictionaries at "Dictionaries" settings.',third_party_privacy_extra:"Cannot be turned off as it is the core functionality of Saladict.",permissions:{success:"Permission requested",cancel_success:"Permission cancelled",failed:"Permission request failed",cancelled:"Permission request cancelled by user",missing:'Missing permission "{{permission}}". Either grant it or disable related functions.',clipboardRead:"Read Clipboard",clipboardRead_help:"This permission is needed when clipboard preload is enable for popup panel or quick search panel.",clipboardWrite:"Write Clipboard",clipboardWrite_help:"This permission is needed when using titlebar menus to copy source/target text from machine translator."},unsupportedFeatures:{ff:'Feature "{{feature}}" is not supported in Firefox.'}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/87.dacd554d.js b/plugins/saladict-ztools/ext-saladic/assets/87.dacd554d.js deleted file mode 100644 index f488e147..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/87.dacd554d.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[87],{1362:function(e,t,i){(t=i(221)(!1)).push([e.i,'button,h1,h2,h3,h4,li,ul{margin:0;padding:0}img{display:block;max-width:95%}p{margin:.5em 0}ul li{list-style-type:none}button{background:0 0;border:none}button:hover{outline:0}a{color:#f9690e;text-decoration:none}a:hover{text-decoration:underline}select{color:#666;border:1px solid rgba(133,133,133,.28);background:0 0}.dictWikipedia-LangSelectorBtn{margin:.2em 0 1em;padding:.1em .2em;color:currentColor;border:1px solid #666;border-radius:2px;cursor:pointer}.dictWikipedia-Title{font-size:1.5em}.dictWikipedia-Content img{display:inline}.dictWikipedia-Content ul li{list-style-type:unset}.dictWikipedia-Content a,.dictWikipedia-Content abbr,.dictWikipedia-Content acronym,.dictWikipedia-Content address,.dictWikipedia-Content audio,.dictWikipedia-Content b,.dictWikipedia-Content big,.dictWikipedia-Content blockquote,.dictWikipedia-Content button,.dictWikipedia-Content center,.dictWikipedia-Content cite,.dictWikipedia-Content code,.dictWikipedia-Content dd,.dictWikipedia-Content del,.dictWikipedia-Content div,.dictWikipedia-Content dl,.dictWikipedia-Content dt,.dictWikipedia-Content em,.dictWikipedia-Content fieldset,.dictWikipedia-Content form,.dictWikipedia-Content h1,.dictWikipedia-Content h2,.dictWikipedia-Content h3,.dictWikipedia-Content h4,.dictWikipedia-Content h5,.dictWikipedia-Content h6,.dictWikipedia-Content i,.dictWikipedia-Content img,.dictWikipedia-Content input,.dictWikipedia-Content ins,.dictWikipedia-Content label,.dictWikipedia-Content legend,.dictWikipedia-Content li,.dictWikipedia-Content ol,.dictWikipedia-Content p,.dictWikipedia-Content pre,.dictWikipedia-Content select,.dictWikipedia-Content small,.dictWikipedia-Content span,.dictWikipedia-Content strike,.dictWikipedia-Content strong,.dictWikipedia-Content sub,.dictWikipedia-Content sup,.dictWikipedia-Content tt,.dictWikipedia-Content u,.dictWikipedia-Content ul,.dictWikipedia-Content video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline;background:0 0}.dictWikipedia-Content caption,.dictWikipedia-Content table,.dictWikipedia-Content tbody,.dictWikipedia-Content td,.dictWikipedia-Content tfoot,.dictWikipedia-Content th,.dictWikipedia-Content thead,.dictWikipedia-Content tr{font-size:100%}.dictWikipedia-Content caption{font-weight:700}.dictWikipedia-Content button{border:0;background-color:transparent;cursor:pointer}.dictWikipedia-Content input{line-height:normal}.dictWikipedia-Content ol,.dictWikipedia-Content ul{list-style:none}.dictWikipedia-Content table{border-collapse:collapse}.cite-accessibility-label,.mw-cite-backlink{-moz-user-select:none;user-select:none}.mw-references-columns{column-width:30em}.mw-references-columns li{page-break-inside:avoid;break-inside:avoid-column}sup.reference{unicode-bidi:isolate;white-space:nowrap;font-weight:400;font-style:normal}ol.references li:target,sup.reference:target{background-color:#eaf3ff}.mw-ext-cite-error{font-weight:700;unicode-bidi:embed}.mw-cite-dir-ltr .reference-text{direction:ltr;unicode-bidi:embed}.mw-cite-dir-rtl .reference-text{direction:rtl;unicode-bidi:embed}.mw-references-columns{column-width:25em}.mwe-math-mathml-inline{display:inline!important}.mwe-math-mathml-display{display:block!important;margin-left:auto;margin-right:auto}.mwe-math-mathml-a11y{clip:rect(1px,1px,1px,1px);overflow:hidden;position:absolute;width:1px;height:1px;opacity:0}.mwe-math-fallback-image-inline{display:inline-block;vertical-align:middle}.mwe-math-fallback-image-display{display:block;margin-left:auto!important;margin-right:auto!important}.mwe-math-fallback-source-inline{display:inline;vertical-align:middle}.mwe-math-fallback-source-display{display:block;margin-left:auto;margin-right:auto}img.tex{vertical-align:middle}div.mwe-math-element{overflow-x:auto;max-width:100%}.hlist dl,.hlist ol,.hlist ul{margin:0;padding:0}.hlist dl dl,.hlist dl ol,.hlist dl ul,.hlist ol dl,.hlist ol ol,.hlist ol ul,.hlist ul dl,.hlist ul ol,.hlist ul ul{display:inline}.hlist dd,.hlist dt,.hlist li{margin:0;display:inline}.hlist>dl li,.hlist>ul li,ul.hlist li{display:inline-block;margin-right:8px}.hlist-separated li:after{content:"•"!important;padding-left:8px;font-size:1em;line-height:1}.hlist-separated :last-child:after{content:none!important}.mw-ui-button{font-family:inherit;font-size:1em;display:inline-block;min-width:4em;max-width:28.75em;padding:.546875em 1em;line-height:1.286;margin:0;border-radius:2px;box-sizing:border-box;-webkit-appearance:none;zoom:1;vertical-align:middle;background-color:#f8f9fa;color:#222;border:1px solid #a2a9b1;text-align:center;font-weight:700;cursor:pointer}.mw-ui-button:visited{color:#222}.mw-ui-button:hover{background-color:#fff;color:#444;border-color:#a2a9b1}.mw-ui-button:focus{background-color:#fff;color:#222;border-color:#36c;box-shadow:inset 0 0 0 1px #36c,inset 0 0 0 2px #fff}.mw-ui-button.is-on,.mw-ui-button.mw-ui-checked,.mw-ui-button:active{background-color:#d9d9d9;color:#000;border-color:#72777d;box-shadow:none}.mw-ui-button:disabled{background-color:#c8ccd1;color:#fff;border-color:#c8ccd1}.mw-ui-button:disabled:active,.mw-ui-button:disabled:hover{background-color:#c8ccd1;color:#fff;box-shadow:none;border-color:#c8ccd1}.mw-ui-button:focus{outline-width:0}.mw-ui-button:focus::-moz-focus-inner{border-color:transparent;padding:0}.mw-ui-button:not(:disabled){transition:background-color .1s,color .1s,border-color .1s,box-shadow .1s}.mw-ui-button:disabled{text-shadow:none;cursor:default}.mw-ui-button.mw-ui-big{font-size:1.3em}.mw-ui-button.mw-ui-block{display:block;width:100%;margin-left:auto;margin-right:auto}.mw-ui-button.mw-ui-progressive{background-color:#36c;color:#fff;border:1px solid #36c}.mw-ui-button.mw-ui-progressive:hover{background-color:#447ff5;border-color:#447ff5}.mw-ui-button.mw-ui-progressive:focus{box-shadow:inset 0 0 0 1px #36c,inset 0 0 0 2px #fff}.mw-ui-button.mw-ui-progressive.is-on,.mw-ui-button.mw-ui-progressive.mw-ui-checked,.mw-ui-button.mw-ui-progressive:active{background-color:#2a4b8d;border-color:#2a4b8d;box-shadow:none}.mw-ui-button.mw-ui-progressive:disabled{background-color:#c8ccd1;color:#fff;border-color:#c8ccd1}.mw-ui-button.mw-ui-progressive:disabled.mw-ui-checked,.mw-ui-button.mw-ui-progressive:disabled:active,.mw-ui-button.mw-ui-progressive:disabled:hover{background-color:#c8ccd1;color:#fff;border-color:#c8ccd1;box-shadow:none}.mw-ui-button.mw-ui-progressive.mw-ui-quiet{color:#222}.mw-ui-button.mw-ui-progressive.mw-ui-quiet:hover{background-color:transparent;color:#447ff5}.mw-ui-button.mw-ui-progressive.mw-ui-quiet.mw-ui-checked,.mw-ui-button.mw-ui-progressive.mw-ui-quiet:active{color:#2a4b8d}.mw-ui-button.mw-ui-progressive.mw-ui-quiet:focus{background-color:transparent;color:#36c}.mw-ui-button.mw-ui-progressive.mw-ui-quiet:disabled{color:#c8ccd1}.mw-ui-button.mw-ui-destructive{background-color:#d33;color:#fff;border:1px solid #d33}.mw-ui-button.mw-ui-destructive:hover{background-color:#ff4242;border-color:#ff4242}.mw-ui-button.mw-ui-destructive:focus{box-shadow:inset 0 0 0 1px #d33,inset 0 0 0 2px #fff}.mw-ui-button.mw-ui-destructive.is-on,.mw-ui-button.mw-ui-destructive.mw-ui-checked,.mw-ui-button.mw-ui-destructive:active{background-color:#b32424;border-color:#b32424;box-shadow:none}.mw-ui-button.mw-ui-destructive:disabled{background-color:#c8ccd1;color:#fff;border-color:#c8ccd1}.mw-ui-button.mw-ui-destructive:disabled.mw-ui-checked,.mw-ui-button.mw-ui-destructive:disabled:active,.mw-ui-button.mw-ui-destructive:disabled:hover{background-color:#c8ccd1;color:#fff;border-color:#c8ccd1;box-shadow:none}.mw-ui-button.mw-ui-destructive.mw-ui-quiet{color:#222}.mw-ui-button.mw-ui-destructive.mw-ui-quiet:hover{background-color:transparent;color:#ff4242}.mw-ui-button.mw-ui-destructive.mw-ui-quiet.mw-ui-checked,.mw-ui-button.mw-ui-destructive.mw-ui-quiet:active{color:#b32424}.mw-ui-button.mw-ui-destructive.mw-ui-quiet:focus{background-color:transparent;color:#d33}.mw-ui-button.mw-ui-destructive.mw-ui-quiet:disabled{color:#c8ccd1}.mw-ui-button.mw-ui-quiet{background:0 0;border:0;text-shadow:none;color:#222}.mw-ui-button.mw-ui-quiet:hover{background-color:transparent;color:#444}.mw-ui-button.mw-ui-quiet.mw-ui-checked,.mw-ui-button.mw-ui-quiet:active{color:#000}.mw-ui-button.mw-ui-quiet:focus{background-color:transparent;color:#222}.mw-ui-button.mw-ui-quiet:disabled{color:#c8ccd1}.mw-ui-button.mw-ui-quiet:focus,.mw-ui-button.mw-ui-quiet:hover{box-shadow:none}.mw-ui-button.mw-ui-quiet:active,.mw-ui-button.mw-ui-quiet:disabled{background:0 0}button.mw-ui-button::-moz-focus-inner,input.mw-ui-button::-moz-focus-inner{margin-top:-1px;margin-bottom:-1px}a.mw-ui-button{text-decoration:none}a.mw-ui-button:focus,a.mw-ui-button:hover{text-decoration:none}.mw-ui-button-group>*{min-width:48px;border-radius:0;float:left}.mw-ui-button-group>:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.mw-ui-button-group>:not(:first-child){border-left:0}.mw-ui-button-group>:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px}.mw-ui-button-group .is-on .button{cursor:default}.mw-ui-icon{position:relative;line-height:1.5em;min-height:1.5em;min-width:1.5em}span.mw-ui-icon{display:inline-block}.mw-ui-icon.mw-ui-icon-element{text-indent:-999px;overflow:hidden;width:3.5em;min-width:3.5em;max-width:3.5em}.mw-ui-icon.mw-ui-icon-element:before{left:0;right:0;position:absolute;margin:0 1em}.mw-ui-icon.mw-ui-icon-element.mw-ui-icon-large{width:4.625em;min-width:4.625em;max-width:4.625em;line-height:4.625em;min-height:4.625em}.mw-ui-icon.mw-ui-icon-element.mw-ui-icon-large:before{min-height:4.625em}.mw-ui-icon.mw-ui-icon-before:before,.mw-ui-icon.mw-ui-icon-element:before{background-position:50% 50%;background-repeat:no-repeat;background-size:100% auto;float:left;display:block;min-height:1.5em;content:""}.mw-ui-icon.mw-ui-icon-before:before{position:relative;width:1.5em;margin-right:1em}.mw-ui-icon.mw-ui-icon-small:before{background-size:66.67% auto}#content{border-top:1px solid transparent;padding-bottom:32px}.header-container{border-bottom:1px solid #666}.header-container.header-chrome{border:0;box-shadow:inset 0 -1px 3px rgba(0,0,0,.08)}#footer-info-lastmod{display:none}.last-modified-bar a,.last-modified-bar a:visited{color:#54595d}.last-modified-bar a:nth-child(2),.last-modified-bar a:visited:nth-child(2){font-weight:700}.header{display:table;width:100%;border-spacing:0;border-collapse:collapse;height:3.35em;white-space:nowrap;border-top:1px solid #c8ccd1;margin-top:-1px}.header>div{width:3.35em;position:relative;vertical-align:middle;display:table-cell}.header>div a{display:block}.header .branding-box{width:auto}.header .branding-box a,.header .branding-box h1{margin-left:5px;font-size:1em;text-decoration:none;color:#222}.header .branding-box a span,.header .branding-box h1 span{line-height:1;font-size:inherit}.header .branding-box a img,.header .branding-box h1 img{vertical-align:middle}.header .branding-box a>*,.header .branding-box h1>*{float:left}.header .branding-box a sup,.header .branding-box h1 sup{color:#54595d;display:none}.beta .header .branding-box a sup,.beta .header .branding-box h1 sup{display:initial}.header>.header-title{vertical-align:middle}#searchInput{cursor:text}.header .search-box,.search-box{display:none;width:auto}.search-box .search{outline:0;width:100%;background-color:#fff!important;-webkit-appearance:none;padding:.5em 0 .5em 32px;background-position:left 6px center;background-repeat:no-repeat;background-size:20px 20px;border-radius:2px;box-shadow:0 1px 1px rgba(0,0,0,.05);margin-top:0}input.search::-webkit-search-cancel-button,input.search::-webkit-search-decoration,input.search::-webkit-search-results-button,input.search::-webkit-search-results-decoration{display:none}.content h1 .edit-page{font-size:.58823529em}.content h2{clear:left}.content h2 .edit-page{font-size:.66666667em}.content h3 .edit-page{font-size:.83333333em}.content .edit-page{display:inline-block}.content .collapsible-heading .edit-page{visibility:hidden}.content .collapsible-heading.open-block .edit-page{visibility:visible}.content .mw-parser-output>h2,.content .section-heading{border-bottom:1px solid #eaecf0;margin-bottom:.5em}.content .mw-parser-output>h2 .indicator,.content .section-heading .indicator{font-size:.4em;margin-left:-1em}.content .in-block,.content .mw-parser-output>h1,.content .mw-parser-output>h2,.content .mw-parser-output>h3,.content .mw-parser-output>h4,.content .mw-parser-output>h5,.content .section-heading{display:table}.content .in-block .mw-headline,.content .mw-parser-output>h1 .mw-headline,.content .mw-parser-output>h2 .mw-headline,.content .mw-parser-output>h3 .mw-headline,.content .mw-parser-output>h4 .mw-headline,.content .mw-parser-output>h5 .mw-headline,.content .section-heading .mw-headline{width:100%}.content .in-block>span,.content .mw-parser-output>h1>span,.content .mw-parser-output>h2>span,.content .mw-parser-output>h3>span,.content .mw-parser-output>h4>span,.content .mw-parser-output>h5>span,.content .section-heading>span{display:table-cell;vertical-align:middle}.client-nojs .section-heading .indicator{display:none}#page-secondary-actions{clear:both}#page-secondary-actions a{margin:10px 2px 2px 0}.navigation-drawer,.transparent-shield{position:absolute;z-index:0;visibility:hidden}#bodyContent .panel .content,.drawer,.errorbox,.list-header,.mw-revision,.overlay .content-header,.overlay .panel,.page-list li,.page-list.side-list .list-thumb,.pointer-overlay,.previewnote p,.site-link-list li,.successbox,.topic-title-list li,.warningbox{padding-left:16px;padding-right:16px}#mw-content-text>form>.oo-ui-fieldLayout>.oo-ui-fieldLayout-body,#mw-content-text>form>.oo-ui-widget,.backtotop,.content,.image-list,.post-content,.pre-content,.talk-overlay .comment .comment-content{margin:0 16px}@media all and (min-width:720px){.list-header,.overlay .panel,.page-summary-list,.site-link-list,.topic-title-list{padding-left:3.35em;padding-right:3.35em}}.heading-holder{padding:20px 0 3.6em;position:relative}.heading-holder .tagline{color:#54595d;font-size:.85em;margin:2px 0 0}.heading-holder .tagline:first-letter{text-transform:capitalize}#section_0{padding-top:0;padding-bottom:0;border-bottom:0}#page-actions{font-size:1.1em;float:none;border:0;overflow:hidden;position:absolute;bottom:0;width:100%;border-top:1px solid #eaecf0;border-bottom:1px solid #c8ccd1;padding:.5em 0}#page-actions li{display:inline-block;position:relative;cursor:pointer;margin-right:0;margin-bottom:0}#page-actions li a{position:absolute;display:block;width:100%;height:100%;margin:0 0 8px;cursor:pointer}#page-actions li:first-child{margin-top:0}#page-actions .language-selector{float:left;margin-left:-1em}#page-actions .language-selector.disabled{cursor:default;opacity:.25}#page-actions #ca-edit{margin-right:-1em}.client-nojs .watch-this-article{visibility:hidden}.client-nojs .is-authenticated .watch-this-article{visibility:visible}@media all and (max-width:319px){.client-nojs #page-actions{display:none}.client-nojs #section_0{border:0}}.view-border-box,.view-border-box *{box-sizing:border-box}.client-js .mw-redirectedfrom,.client-nojs .toc-mobile,.jsonly,.printfooter,.toc,.toc-mobile{display:none}.client-js .jsonly{display:inherit}.hidden{display:none!important}#mw-mf-viewport{position:relative;height:100%}#mw-mf-page-center{width:100%;position:relative;z-index:0}.minerva-footer{border-top:solid 1px #c8ccd1;overflow:auto;padding-bottom:6px}footer .hlist li:after{color:#36c}footer .last-modified-bar{border-bottom:solid 1px #c8ccd1;display:block;color:#54595d;line-height:1.5em;transition:background-color .2s ease,color .2s ease}footer .last-modifier-tagline{display:block;width:100%;font-size:.9em;padding:7px 2em 7px 0}footer .indicator{position:absolute;right:-1em}.client-nojs footer .indicator{display:none}footer>.post-content{overflow:auto;margin-top:42px}footer>.post-content>*{margin-bottom:9px}footer>.post-content>h2{border-bottom:solid 1px #c8ccd1;padding-bottom:10px;margin-top:42px;font-size:1em;font-weight:700}footer>.post-content>h2:first-child{margin-top:0}footer>.post-content .hlist,footer>.post-content .license{font-size:.875em}@media(min-width:720px){footer .last-modified-bar{padding-left:0;padding-right:0;font-size:1em}}.content{line-height:1.65;word-wrap:break-word}.content .center{width:100%;text-align:center}.content .center .thumb,.content .center>*{margin-left:auto;margin-right:auto}.client-js .collapsible-block{display:none}.client-js .collapsible-block.open-block{display:block}.nomobile{display:none!important}@media all and (min-width:720px){.client-js [onclick]+.collapsible-block{display:block}}.content .thumb,.content figure{margin:.6em 0}.content .thumb .thumbinner,.content figure .thumbinner{margin:0 auto;max-width:100%!important}.content .thumbcaption,.content figcaption{margin:.5em 0 0;font-size:.8em;line-height:1.5;padding:0!important;color:#54595d}.content .thumbcaption{width:auto!important}.content .thumbborder{border:1px solid #c8ccd1}.content .magnify{display:none}.content img{vertical-align:middle}.content .floatright{clear:right;float:right;margin:0 0 .6em .6em}.content .floatleft{clear:left;float:left;margin:0 .6em .6em 0}.content a>.lazy-image-placeholder,.content a>img,.content noscript>img{max-width:100%!important}.content a>img,.content noscript>img{height:auto!important}.content .noresize{max-width:100%;overflow-x:auto}.content .noresize a>img{max-width:none!important}h1{font-size:1.7em}h2{font-size:1.5em}h3{font-size:1.2em;font-weight:700}h4{font-weight:700}.content h1,.content h2,.pre-content h1{font-family:"Linux Libertine",Georgia,Times,serif}h3,h4,h5,h6{font-family:"Helvetica Neue",Helvetica,"Nimbus Sans L",Arial,"Liberation Sans",sans-serif}.content h1,.content h2,.pre-content h1,h3,h4,h5,h6{line-height:1.3;word-wrap:break-word;word-break:break-word}.content h2,.content h3,.content h4,.content h5,.content h6{padding:.5em 0}.content ul{list-style:square outside;padding-left:1em}.content ul>li>ul{list-style-type:disc}.content ul>li>ul>li>ul{list-style-type:circle}.content ol{list-style:decimal inside}.content ol ol,.content ol ul,.content ul ol,.content ul ul{margin-left:1em}.content ol li,.content ul li{margin-bottom:10px}.content ol li:last-child,.content ul li:last-child{margin-bottom:inherit}dl{margin-left:1em}dl dt{font-weight:700}dl dd{display:block;overflow:auto}a:not([href]){color:#222}a{text-decoration:none;color:#36c}a:visited{color:#5a3696}a:active{color:#faa700}a:hover{text-decoration:underline}a.new,a.new:hover,a.new:visited{color:#d33}a.new:hover>*,a.new:visited>*,a.new>*{color:#d33}a.external{background-size:10px 10px;background-repeat:no-repeat;background-position:center right;padding-right:13px}.return-link{display:block;font-size:.9em;margin-top:1.5em}.plainlinks a{background:0 0!important;padding:0!important}.content p{margin:.5em 0 1em 0}.content code,.content kbd,.content pre,.content samp{font-family:monospace,monospace;border:solid 1px #c8ccd1;white-space:pre-wrap}.content code{padding:.2em .5em}.content pre{padding:1em}b,strong{font-weight:700}blockquote{border-left:3px solid #c8ccd1;font-family:"Linux Libertine",Georgia,Times,serif;font-size:1.1em;padding:1em 25px 1em 30px;position:relative;overflow:hidden}em,i{font-style:italic}sup{vertical-align:super}sub{vertical-align:sub}sub,sup{font-size:.75em;line-height:1}@media all and (max-width:720px){.content table{display:block;width:100%!important}.content caption{display:block}}.content table{margin:1em 0;overflow:auto;overflow-y:hidden;overflow-x:auto}.content table caption{text-align:left}table.wikitable{border:1px solid rgba(133,133,133,.28)}table.wikitable>*>tr>td,table.wikitable>*>tr>th,table.wikitable>tr>td,table.wikitable>tr>th{border:1px solid rgba(133,133,133,.28);padding:.2em}.ambox,table.ambox{display:none;margin:0}.issues-group-B .ambox{display:block}.client-js .ambox{cursor:pointer;font-size:.8em;width:auto;background:#f8f9fa;color:#54595d;margin-bottom:1px}.client-js .ambox tbody{display:table;width:100%}.client-js .ambox .mbox-text-span{max-height:3.3em;height:3.3em;overflow:hidden}.client-js .ambox div{margin:0!important;padding:0!important}.client-js .ambox td{position:relative;padding:8px 8px 8px 32px}.client-js .ambox b{font-weight:inherit}.client-js .ambox a{color:inherit!important;-webkit-tap-highlight-color:transparent!important}.client-js .ambox a:focus,.client-js .ambox a:hover{text-decoration:none;outline:inherit}.client-js .ambox .hide-when-compact,.client-js .ambox .mbox-empty-cell,.client-js .ambox .mbox-image,.client-js .ambox .mw-collapsible-content,.client-js .ambox .verbose,.client-js .ambox hr,.client-js .ambox small,.client-js .ambox table{display:none}.client-js .ambox .mw-ui-icon{position:absolute;left:-8px}.client-js .ambox .mw-ui-icon:before{background-size:75% auto}.client-js .ambox .ambox-learn-more{color:#36c;position:absolute;right:8px;bottom:8px;z-index:1;line-height:1.65}.client-js .ambox .ambox-learn-more:before{content:"";position:absolute;z-index:-1;bottom:0;right:0;width:100%;height:100%;box-sizing:content-box;padding-left:4em;background:-moz-gradient(left,rgba(248,249,250,0) 0,#f8f9fa 3em);background:linear-gradient(to right,rgba(248,249,250,0) 0,#f8f9fa 3em)}@media screen and (min-width:720px){.client-js .ambox .mbox-text-span{height:auto;margin-bottom:24px!important}.client-js .ambox .ambox-learn-more{left:32px;right:0;background:0 0}.client-js .ambox .ambox-learn-more:before{top:-1.65em;width:10px}}.collapsible td{width:auto!important}.content .navbox,.content .vertical-navbox{display:none}.content #coordinates,.content .action-edit .fmbox,.content .tmbox,.content .topicon{display:none!important}.content table{float:none!important;margin-left:0!important;margin-right:0!important}.content table.infobox{font-size:90%;position:relative;margin-bottom:2em;display:flex;flex:1 1 100%;flex-flow:column nowrap}.content table.infobox td,.content table.infobox th{vertical-align:top;border:0;border-bottom:1px solid rgba(186,186,186,.44);padding:7px 10px}.content table.infobox tbody>tr>td,.content table.infobox tbody>tr>th{flex:1 0}.content table.infobox td:only-child,.content table.infobox th:only-child{width:100%}.content table.infobox tr:last-child td,.content table.infobox tr:last-child th{border:0}.content table.infobox>caption,.content table.infobox>tbody{display:flex;flex-flow:column nowrap}.content table.infobox>tbody>tr{min-width:100%;display:flex;flex-flow:row nowrap}.content .mw-content-ltr table.infobox{text-align:left}.content .mw-content-rtl table.infobox{text-align:right}#filetoc{display:none}.column-count,.references-column-count{column-width:35em}.references li:target{background-color:#def}.dablink,.hatnote,.rellink{padding:5px 7px;color:#54595d;font-size:.8em;background-color:#f8f9fa;margin-bottom:1px;overflow:hidden}.dablink a,.hatnote a,.rellink a{color:#36c}@media all and (min-width:720px){.content .navbox,.content .vertical-navbox{display:inherit}}@media all and (max-width:720px){.content table.multicol>tbody>tr>td,.content table.multicol>tr>td{display:block!important;width:auto!important}.content .thumb .thumbinner{display:-moz-flex;display:flex;justify-content:center;flex-wrap:wrap;align-content:flex-start;flex-direction:column}.content .thumb .thumbinner>.thumbcaption{justify-content:space-between;-webkit-box-flex:1;-moz-box-flex:1;width:100%;flex:1 0 100%;order:1;display:block}}.mw-ui-icon-minerva-magnifying-glass:before,input.search{background-image:url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.content.styles.images&image=input.search%2C.mw-ui-icon-minerva-magnifying-glass%3Abefore&format=rasterized&lang=zh-hans&skin=minerva);background-image:linear-gradient(transparent,transparent),url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.content.styles.images&image=input.search%2C.mw-ui-icon-minerva-magnifying-glass%3Abefore&format=original&lang=zh-hans&skin=minerva)}a.external{background-image:url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.content.styles.images&image=a.external&format=rasterized&lang=zh-hans&skin=minerva);background-image:linear-gradient(transparent,transparent),url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.content.styles.images&image=a.external&format=original&lang=zh-hans&skin=minerva)}.mw-ui-icon-minerva-watch:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=watch&format=rasterized&lang=zh-hans&skin=minerva);background-image:linear-gradient(transparent,transparent),url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=watch&format=original&lang=zh-hans&skin=minerva)}.mw-ui-icon-minerva-watched:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=watched&format=rasterized&lang=zh-hans&skin=minerva);background-image:linear-gradient(transparent,transparent),url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=watched&format=original&lang=zh-hans&skin=minerva)}.mw-ui-icon-minerva-warning:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=warning&format=rasterized&lang=zh-hans&skin=minerva);background-image:linear-gradient(transparent,transparent),url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=warning&format=original&lang=zh-hans&skin=minerva)}.mw-ui-icon-minerva-mainmenu:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=mainmenu&format=rasterized&lang=zh-hans&skin=minerva);background-image:linear-gradient(transparent,transparent),url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=mainmenu&format=original&lang=zh-hans&skin=minerva)}.mw-ui-icon-minerva-edit:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=edit&format=rasterized&lang=zh-hans&skin=minerva);background-image:linear-gradient(transparent,transparent),url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=edit&format=original&lang=zh-hans&skin=minerva)}.mw-ui-icon-minerva-edit-enabled:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=edit-enabled&format=rasterized&lang=zh-hans&skin=minerva);background-image:linear-gradient(transparent,transparent),url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=edit-enabled&format=original&lang=zh-hans&skin=minerva)}.mw-ui-icon-minerva-language-switcher:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=language-switcher&format=rasterized&lang=zh-hans&skin=minerva);background-image:linear-gradient(transparent,transparent),url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.images&image=language-switcher&format=original&lang=zh-hans&skin=minerva)}.mw-ui-icon-minerva-notifications:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.loggedin&image=notifications&format=rasterized&lang=zh-hans&skin=minerva);background-image:linear-gradient(transparent,transparent),url(https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.loggedin&image=notifications&format=original&lang=zh-hans&skin=minerva)}.user-button{position:relative}.user-button .label{visibility:hidden}.user-button.loading span{display:none}.notification-count{margin:auto;height:24px;color:#54595d;cursor:pointer}.notification-count .circle{border-radius:50%;border:2px solid #54595d;margin:auto;height:22px;width:22px;display:block;text-align:center;display:flex;align-items:center;justify-content:center}.notification-count .circle span{font-weight:700;font-size:13px;line-height:1;letter-spacing:-.5px}.notification-count.notification-unseen{color:#fff}.notification-count.notification-unseen .circle{background:#d33;border-color:#d33}.notification-count.max{right:.2em;width:2em;height:2em;line-height:2em;font-size:.7em}.notification-count:hover{text-decoration:none}@media screen and (min-width:720px){.client-js #searchIcon{display:none}.header .branding-box{width:11.0625em}.header .search-box{display:table-cell;width:auto}.header .search-box .search{width:23.4375em}.toc-mobile{display:table;visibility:visible;position:relative;font-size:1.3em;margin:1em 0;border:solid 1px transparent}.toc-mobile>h2{visibility:hidden;font-family:"Helvetica Neue",Helvetica,"Nimbus Sans L",Arial,"Liberation Sans",sans-serif;font-size:.8em;font-weight:700;border-bottom:0;padding:.7em 0}#mw-content-text>form,.post-content,.pre-content{max-width:993.3px;margin:0 3.35em}.content .thumb,.content figure{max-width:704px}.content .thumb.mw-halign-left,.content .thumb.tleft,.content figure.mw-halign-left,.content figure.tleft{float:left;clear:left;margin-right:1.4em}.content .thumb.mw-default-size,.content .thumb.mw-halign-right,.content .thumb.tright,.content figure.mw-default-size,.content figure.mw-halign-right,.content figure.tright{float:right;clear:right;margin-left:1.4em}.content table caption{background:inherit}.content table tbody{display:table-row-group}.last-modified-bar{background-color:transparent;padding-left:0;padding-right:0;font-size:1em}}@media screen and (min-width:1000px){#mw-content-text>form,#mw-mf-page-center .pointer-overlay,.banner-container,.content,.content-header,.content-unstyled,.header,.overlay-content,.overlay-header,.page-header-bar,.post-content,.pre-content{margin-left:auto;margin-right:auto;width:90%;max-width:993.3px}.header{max-width:995.3px}}@media all and (min-width:720px){table.infobox{margin:.5em 0 1em 35px!important;max-width:320px;width:auto!important;float:right!important;clear:right!important}}.mw-ui-anchor.mw-ui-progressive{color:#36c}.mw-ui-anchor.mw-ui-progressive:hover{color:#6a8fda}.mw-ui-anchor.mw-ui-progressive:active,.mw-ui-anchor.mw-ui-progressive:focus{color:#254a95;outline:0}.mw-ui-anchor.mw-ui-progressive.mw-ui-quiet{color:#54595d;text-decoration:none}.mw-ui-anchor.mw-ui-progressive.mw-ui-quiet:hover{color:#36c}.mw-ui-anchor.mw-ui-progressive.mw-ui-quiet:active,.mw-ui-anchor.mw-ui-progressive.mw-ui-quiet:focus{color:#254a95}.mw-ui-anchor.mw-ui-destructive{color:#d33}.mw-ui-anchor.mw-ui-destructive:hover{color:#e76e6e}.mw-ui-anchor.mw-ui-destructive:active,.mw-ui-anchor.mw-ui-destructive:focus{color:#ae1d1d;outline:0}.mw-ui-anchor.mw-ui-destructive.mw-ui-quiet{color:#54595d;text-decoration:none}.mw-ui-anchor.mw-ui-destructive.mw-ui-quiet:hover{color:#d33}.mw-ui-anchor.mw-ui-destructive.mw-ui-quiet:active,.mw-ui-anchor.mw-ui-destructive.mw-ui-quiet:focus{color:#ae1d1d}.page-list,.site-link-list,.topic-title-list{overflow:hidden}.page-list li,.site-link-list li,.topic-title-list li{color:#54595d;position:relative;padding-top:.8em;padding-bottom:.8em;margin:-1px 0 0;line-height:1}.page-list li .watch-this-article,.site-link-list li .watch-this-article,.topic-title-list li .watch-this-article{position:absolute;right:0;top:.8em;margin-top:1px}.page-list li .watch-this-article button,.site-link-list li .watch-this-article button,.topic-title-list li .watch-this-article button{position:absolute;text-indent:inherit;outline:0}.page-list li>a,.site-link-list li>a,.topic-title-list li>a{display:block;color:#54595d}.page-list li>a:active,.page-list li>a:hover,.page-list li>a:visited,.site-link-list li>a:active,.site-link-list li>a:hover,.site-link-list li>a:visited,.topic-title-list li>a:active,.topic-title-list li>a:hover,.topic-title-list li>a:visited{text-decoration:none;color:#54595d}.page-list.side-list li,.page-list.thumbs li,.site-link-list.side-list li,.site-link-list.thumbs li,.topic-title-list.side-list li,.topic-title-list.thumbs li{padding-left:85px}.page-list .info,.site-link-list .info,.topic-title-list .info{font-size:.7em;text-transform:uppercase}.page-list .component,.page-list .info,.site-link-list .component,.site-link-list .info,.topic-title-list .component,.topic-title-list .info{color:#72777d;line-height:1.2}.page-list .title .component,.page-list .title .info,.page-list .title .mw-mf-user,.page-list .title h3,.site-link-list .title .component,.site-link-list .title .info,.site-link-list .title .mw-mf-user,.site-link-list .title h3,.topic-title-list .title .component,.topic-title-list .title .info,.topic-title-list .title .mw-mf-user,.topic-title-list .title h3{margin:.5em 0}.page-list.thumbs .title,.site-link-list.thumbs .title,.topic-title-list.thumbs .title{padding-right:24px}.page-list .list-thumb,.site-link-list .list-thumb,.topic-title-list .list-thumb{position:absolute;width:70px;height:100%;top:0;left:0}.page-list p,.site-link-list p,.topic-title-list p{font-size:.9em;line-height:normal}.page-list.side-list .list-thumb,.site-link-list.side-list .list-thumb,.topic-title-list.side-list .list-thumb{padding-top:.8em;padding-bottom:.8em;color:#222}.page-list.side-list .list-thumb p,.site-link-list.side-list .list-thumb p,.topic-title-list.side-list .list-thumb p{line-height:1.2;margin:.5em 0}.page-list.side-list .list-thumb .timestamp,.site-link-list.side-list .list-thumb .timestamp,.topic-title-list.side-list .list-thumb .timestamp{margin-bottom:.65em}@media all and (min-width:720px){.page-summary-list,.site-link-list,.topic-title-list{padding-top:0;padding-bottom:0}}.page-summary h2,.page-summary h3{font:inherit;font-weight:700;color:#54595d}.page-summary h2 a,.page-summary h3 a{color:inherit}.page-summary h2 strong,.page-summary h3 strong{text-decoration:underline}.list-header{font-weight:700;font-size:.85em;padding-top:.5em;padding-bottom:.4em;color:#72777d}.list-thumb{background-repeat:no-repeat;background-position:center center}.list-thumb.list-thumb-none{background-image:url(https://en.wikipedia.org/w/extensions/MobileFrontend/resources/mobile.pagesummary.styles/noimage.png?537bb);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 56 56%22%3E%3Cpath fill=%22%23eaecf0%22 d=%22M0 0h56v56H0z%22/%3E%3Cpath fill=%22%2372777d%22 d=%22M36.4 13.5H17.8v24.9c0 1.4.9 2.3 2.3 2.3h18.7v-25c.1-1.4-1-2.2-2.4-2.2zM30.2 17h5.1v6.4h-5.1V17zm-8.8 0h6v1.8h-6V17zm0 4.6h6v1.8h-6v-1.8zm0 15.5v-1.8h13.8v1.8H21.4zm13.8-4.5H21.4v-1.8h13.8v1.8zm0-4.7H21.4v-1.8h13.8v1.8z%22/%3E%3C/svg%3E")}.list-thumb.list-thumb-x{background-size:100% auto}.list-thumb.list-thumb-y{background-size:auto 100%}.mw-ui-icon-mf-alert:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=mobile.startup.images.variants&image=alert&format=rasterized&lang=zh-hans&skin=minerva&version=0rl97mj);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Ealert%3C/title%3E%3Cpath d=%22M19.64 16.36L11.53 2.3A1.85 1.85 0 0 0 10 1.21 1.85 1.85 0 0 0 8.48 2.3L.36 16.36C-.48 17.81.21 19 1.88 19h16.24c1.67 0 2.36-1.19 1.52-2.64zM11 16H9v-2h2zm0-4H9V6h2z%22/%3E%3C/svg%3E")}.mw-ui-icon-mf-alert-gray:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=mobile.startup.images.variants&image=alert&variant=gray&format=rasterized&lang=zh-hans&skin=minerva&version=0rl97mj);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Cg fill=%22%23a2a9b1%22%3E%3Ctitle xmlns:default=%22http://www.w3.org/2000/svg%22%3Ealert%3C/title%3E%3Cpath xmlns:default=%22http://www.w3.org/2000/svg%22 d=%22M19.64 16.36L11.53 2.3A1.85 1.85 0 0 0 10 1.21 1.85 1.85 0 0 0 8.48 2.3L.36 16.36C-.48 17.81.21 19 1.88 19h16.24c1.67 0 2.36-1.19 1.52-2.64zM11 16H9v-2h2zm0-4H9V6h2z%22/%3E%3C/g%3E%3C/svg%3E")}.mw-ui-icon-mf-alert-invert:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=mobile.startup.images.variants&image=alert&variant=invert&format=rasterized&lang=zh-hans&skin=minerva&version=0rl97mj);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Cg fill=%22%23fff%22%3E%3Ctitle xmlns:default=%22http://www.w3.org/2000/svg%22%3Ealert%3C/title%3E%3Cpath xmlns:default=%22http://www.w3.org/2000/svg%22 d=%22M19.64 16.36L11.53 2.3A1.85 1.85 0 0 0 10 1.21 1.85 1.85 0 0 0 8.48 2.3L.36 16.36C-.48 17.81.21 19 1.88 19h16.24c1.67 0 2.36-1.19 1.52-2.64zM11 16H9v-2h2zm0-4H9V6h2z%22/%3E%3C/g%3E%3C/svg%3E")}.mw-ui-icon-mf-arrow:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=mobile.startup.images.variants&image=arrow&format=rasterized&lang=zh-hans&skin=minerva&version=0rl97mj);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 -407 24 24%22%3E%3Cpath d=%22M21.348-401.268q.94 0 1.61.668l.92.922-11.858 11.86-11.822-11.842.922-.94q.65-.686 1.59-.686.94 0 1.61.668l7.718 7.7 7.7-7.682q.67-.668 1.61-.668z%22/%3E%3C/svg%3E")}.mw-ui-icon-mf-arrow-gray:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=mobile.startup.images.variants&image=arrow&variant=gray&format=rasterized&lang=zh-hans&skin=minerva&version=0rl97mj);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 -407 24 24%22%3E%3Cg fill=%22%23a2a9b1%22%3E%3Cpath xmlns:default=%22http://www.w3.org/2000/svg%22 d=%22M21.348-401.268q.94 0 1.61.668l.92.922-11.858 11.86-11.822-11.842.922-.94q.65-.686 1.59-.686.94 0 1.61.668l7.718 7.7 7.7-7.682q.67-.668 1.61-.668z%22/%3E%3C/g%3E%3C/svg%3E")}.mw-ui-icon-mf-arrow-invert:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=mobile.startup.images.variants&image=arrow&variant=invert&format=rasterized&lang=zh-hans&skin=minerva&version=0rl97mj);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 -407 24 24%22%3E%3Cg fill=%22%23fff%22%3E%3Cpath xmlns:default=%22http://www.w3.org/2000/svg%22 d=%22M21.348-401.268q.94 0 1.61.668l.92.922-11.858 11.86-11.822-11.842.922-.94q.65-.686 1.59-.686.94 0 1.61.668l7.718 7.7 7.7-7.682q.67-.668 1.61-.668z%22/%3E%3C/g%3E%3C/svg%3E")}.mw-ui-icon-mf-back:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=mobile.startup.images.variants&image=back&format=rasterized&lang=zh-hans&skin=minerva&version=0rl97mj);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%2354595d%22 d=%22M24 10.667H5.107l4.78-4.78L8 4l-8 8 8 8 1.887-1.887-4.78-4.78H24z%22/%3E%3C/svg%3E")}.mw-ui-icon-mf-back-gray:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=mobile.startup.images.variants&image=back&variant=gray&format=rasterized&lang=zh-hans&skin=minerva&version=0rl97mj);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22%23a2a9b1%22%3E%3Cpath xmlns:default=%22http://www.w3.org/2000/svg%22 fill=%22%2354595d%22 d=%22M24 10.667H5.107l4.78-4.78L8 4l-8 8 8 8 1.887-1.887-4.78-4.78H24z%22/%3E%3C/g%3E%3C/svg%3E")}.mw-ui-icon-mf-back-invert:before{background-image:url(https://en.wikipedia.org/w/load.php?modules=mobile.startup.images.variants&image=back&variant=invert&format=rasterized&lang=zh-hans&skin=minerva&version=0rl97mj)}.mf-mw-ui-icon-rotate-anti-clockwise:before{transform:rotate(-90deg)}.mf-mw-ui-icon-rotate-clockwise:before{transform:rotate(90deg)}.mf-mw-ui-icon-rotate-flip:before{transform:scaleY(-1)}.rtl .mf-mw-ui-icon-rotate-anti-clockwise:before{transform:rotate(90deg)}.rtl .mf-mw-ui-icon-rotate-clockwise:before{transform:rotate(-90deg)}#bodyContent .panel{clear:both;margin-top:1em;text-align:center}#bodyContent .panel .content{padding-top:1em;padding-bottom:1em;margin:0}.overlay-enabled #mw-mf-page-center{overflow:hidden;display:block}.overlay-enabled #mw-mf-page-center,.overlay-enabled .overlay{height:100%}.overlay{position:absolute;top:0;left:0;width:100%;background:#fff;z-index:1;display:none}.overlay.visible{display:block}.overlay input,.overlay textarea{padding:.5em}.overlay .captcha-word,.overlay .summary{margin:0 0 .7em;width:100%}.overlay .wikitext-editor{min-height:50%;line-height:1.5;border:0}.overlay .panel{padding-top:12px;padding-bottom:12px;border-bottom:1px solid #eaecf0}.overlay .content .cancel{display:block;margin:1em auto}.overlay .content-header{background-color:#f8f9fa;border-bottom:1px solid #eaecf0;padding-top:20px;padding-bottom:20px;line-height:inherit}.overlay .slider-button{position:absolute;top:0;min-width:60px;width:3.75em;bottom:0;z-index:1}.overlay .slider-button:before{top:0}.overlay .slider-button.prev{left:0}.overlay .slider-button.next{right:0}.overlay .slider-button>*{position:absolute;top:50%;margin-top:-50%;left:50%;margin-left:-1.75em;filter:drop-shadow(0 0 4px rgba(0, 0, 0, .8))}.overlay-header .overlay-title{width:100%}.overlay-header .header-action a,.overlay-header .header-action button{display:table-cell;vertical-align:middle;width:auto;padding:0 1.2em;font-weight:700;white-space:nowrap;text-decoration:none;border-radius:0;cursor:pointer;position:relative}.overlay-header .header-action a:before,.overlay-header .header-action button:before{top:0}.overlay-header .header-action a[disabled],.overlay-header .header-action button[disabled]{opacity:.5}.overlay-header .header-action a:focus,.overlay-header .header-action button:focus{outline:0}.overlay-header button{cursor:pointer}.overlay-header .continue{background-color:#36c;color:#fff}.overlay-header .submit{background-color:#36c;color:#fff}.overlay-header h2{display:table;width:100%;font-size:1em}.overlay-header h2>*{width:1em;display:table-cell;padding-right:.4em}.overlay-header h2 span{width:auto;max-width:1em}.overlay-header>div,.overlay-header>ul{display:table-cell;vertical-align:middle}.overlay-header>ul li{display:block}.overlay-footer-container,.overlay-header-container{width:100%;background:#fff;z-index:2}.overlay-footer-container.position-fixed,.overlay-header-container.position-fixed{left:0;right:0}.overlay-header-container{top:0}.overlay-footer-container{background-color:#fff;bottom:0;border-top:1px solid #c8ccd1}.overlay-footer-container a{display:block;padding:1em 1em 1em 10px;text-align:center}.overlay-bottom{border-top:1px solid #c8ccd1;top:auto;bottom:0;height:auto!important;background:#f8f9fa}.overlay-bottom .overlay-header-container{background:#f8f9fa}.overlay-ios .overlay-header-container{position:absolute!important;top:1px}.overlay-ios .overlay-footer-container{position:absolute!important}.overlay-ios .overlay-content{overflow-y:scroll;-webkit-overflow-scrolling:touch}@media all and (min-width:720px){.overlay .panel{padding-top:12px;padding-bottom:12px}}.overlay.overlay-loading{display:flex;align-items:center;justify-content:center;opacity:.5}.overlay.overlay-loading .header{display:none}.overlay.overlay-loading .overlay-content{overflow:hidden}.drawer{text-align:center;padding-top:0;padding-bottom:1em;max-width:500px;margin:0 auto}.drawer.text{line-height:1;font-size:.9em;text-align:left;padding-top:.5em}.drawer p{line-height:1.4;margin-top:.5em}.drawer .mw-ui-button,.drawer a:not(:last-child),.drawer p{margin-bottom:1em}.drawer .cancel{display:block;margin:.5em auto .625em auto}.has-drawer{background-color:#000}.has-drawer>:not(.drawer){opacity:1;transition:opacity .25s linear}.has-drawer.drawer-visible>:not(.drawer){opacity:.6}.overlay-enabled .drawer{display:none!important}.cloaked-element{opacity:0;position:absolute;top:0;left:0;right:0;bottom:0}.position-fixed{position:fixed!important}.touch-events :focus{outline:0}.drawer{background-color:#f8f9fa;position:absolute;width:100%}.drawer,.mw-notification,.toast{box-sizing:border-box;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -1px 8px 0 rgba(0,0,0,.35);word-wrap:break-word;z-index:2;display:none}.drawer.mw-notification-visible,.drawer.visible,.mw-notification.mw-notification-visible,.mw-notification.visible,.toast.mw-notification-visible,.toast.visible{display:block}.mw-notification,.toast{font-size:.9em;padding:.9em 1em;background-color:#222;color:#fff;margin:0 10% 20px;width:80%;text-align:center;border-radius:2px}.mw-notification.mw-notification-type-error,.toast.mw-notification-type-error{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23d33%22 fill-rule=%22evenodd%22 d=%22M11.643 22.364c1.234 0 2.235-.956 2.235-2.136h-4.47c0 1.18 1 2.136 2.234 2.136zm7.25-12.284v3.998l1.77 3.603v1.1H2.623v-1.1l1.77-3.602V10.08c0-2.894 1.822-5.41 4.475-6.47.26-1.283 1.415-2.227 2.773-2.227s2.51.944 2.776 2.227c2.653 1.06 4.477 3.576 4.477 6.47zM12.92 4.974h-2.554c-2.438.553-4.255 2.64-4.255 5.14v4.474l-1.7 2.44h14.47l-1.702-2.44v-4.474c.024-4.076-3.616-5.09-4.255-5.14z%22/%3E%3C/svg%3E");background-size:24px 24px;background-position:16px 50%;background-repeat:no-repeat;padding-left:5%;width:75%;border:0}.mw-notification a,.toast a{color:#36c}.mw-notification a.new,.toast a.new{color:#d33}.mw-notification-area{z-index:2;position:fixed;bottom:0;width:100%}.animations .drawer,.animations .mw-notification{display:block;visibility:hidden;transform:translate(0,100px);bottom:100px;opacity:0}.animations .drawer.animated,.animations .drawer.mw-notification-tag-toast,.animations .mw-notification.animated,.animations .mw-notification.mw-notification-tag-toast{backface-visibility:hidden;transition:transform .25s,opacity .25s,visibility 0s .25s,bottom 0s .25s}.animations .drawer.mw-notification-visible,.animations .drawer.visible,.animations .mw-notification.mw-notification-visible,.animations .mw-notification.visible{bottom:0;backface-visibility:hidden;transition:transform .25s,opacity .25s;visibility:visible;opacity:1;transform:translate(0,0)}.overlay{padding-top:3.35em}.overlay textarea{box-sizing:border-box;width:100%;padding:10px 16px 10px 16px;resize:none}.overlay button,.overlay>ul{width:3.35em}.overlay .license{font-size:.9em;color:#72777d;margin-top:.5em;line-height:1.4}.overlay .header-action a,.overlay .header-action button{height:3.35em}.overlay .slider-button{top:3.35em}.overlay-header .overlay-title{padding:.15em 0}.overlay-header .overlay-title:last-child{padding-right:1em}@media all and (min-width:1000px){.overlay-header{max-width:995.3px}}.client-js .collapsible-block,.client-js .collapsible-heading{clear:left}.client-js .collapsible-heading{cursor:pointer;position:relative}.client-js .collapsible-heading .indicator{float:left;margin-top:.3em;font-size:.4em}.animations .watch-this-article{backface-visibility:hidden;transition:transform .5s}.animations .watch-this-article.watched{transform:rotate(72deg)}.panel-inline{display:none}.panel-inline.visible{display:block}.mf-font-size-small #content p,.mf-font-size-small .content p{font-size:90%}.mf-font-size-large #content p,.mf-font-size-large .content p{font-size:120%}.mf-font-size-x-large #content p,.mf-font-size-x-large .content p{font-size:140%}.drawer-enabled{overflow:hidden}.drawer.references{background-color:#000;color:#c8ccd1;max-height:400px;overflow-y:auto;padding:20px}.drawer.references.text{font-size:1em}.drawer.references a{color:#36c}.drawer.references .cite{padding-bottom:20px}.drawer.references .cite:after{content:"";display:table;clear:both}.drawer.references .cite .text{color:#72777d;cursor:default;letter-spacing:.2em;float:left;font-size:.75em;padding-top:.25em;text-transform:uppercase}.drawer.references .cite .cancel{cursor:pointer;font-size:.8em;margin:-1em -1em -1em 0;padding:1em 0;position:absolute;right:20px;top:20px}.drawer.references .mw-cite-backlink{display:none}.drawer.references .reference-text{line-height:1.4}.search-overlay{background:#fff}.search-overlay a.mw-ui-icon{display:inline-block}.search-overlay .spinner-container{background-color:#fff;bottom:0;display:none;left:0;opacity:.7;right:0;z-index:2}.search-overlay .spinner-container .spinner{display:block;left:50%;margin-left:-1.75em;position:absolute;top:10%}.search-overlay .search-box{display:block}.search-overlay .results,.search-overlay .search-feedback{background-color:#fff}.search-overlay .overlay-header{background-color:transparent}.search-overlay .overlay-title{position:relative;padding-left:15px}.search-overlay .header input{border:0;padding-right:3em}.search-overlay .header input::-ms-clear{display:none}.search-overlay .overlay-content{position:relative;height:100%;width:100%}.search-overlay .search-content{border-bottom:1px solid #c8ccd1;cursor:pointer}.search-overlay .search-content .caption{padding:1em 0}.search-overlay .search-content.overlay-header{padding:0}.search-overlay .results{box-shadow:0 3px 3px 0 rgba(117,117,117,.3)}.search-overlay .results li:last-child{border-bottom:0}.search-overlay .results h2{font:inherit}.search-overlay li.page-summary{display:table;height:70px;width:100%}.search-overlay li.page-summary .title{display:table-cell;vertical-align:middle}.search-overlay li.page-summary h3{margin:0;font-weight:400}.search-overlay li.page-summary h3 strong{text-decoration:none}.search-overlay li.page-summary .wikidata-description{font-size:.8em;margin-top:.5em}.search-overlay .search-feedback{box-shadow:0 3px 3px 0 rgba(117,117,117,.3);border-top:1px solid #c8ccd1;font-size:.8em;padding:.5em 1em}.search-overlay.no-results .search-feedback{border-top:0}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}.animations .search-overlay.visible{animation:fadeIn .5s}.animations .search-overlay.fade-out{animation:fadeOut .5s}.animations .search-overlay.overlay-ios{animation:none}.search-overlay .spinner-container{top:3.35em}.search-overlay .clear{position:absolute;top:.925em;right:0;margin-top:-1px}@media all and (min-width:720px){.search-overlay .search-box{display:table-cell}.search-overlay .results,.search-overlay .search-content,.search-overlay .spinner-container{width:23.4375em;margin-left:14.5625em}.search-overlay .overlay-title{width:23.4375em;padding-left:14.5625em}.search-overlay .spinner-container{left:auto;right:auto}.search-overlay ul{width:auto}}@media all and (min-width:1000px){.search-overlay .overlay-content{max-width:995.3px}}.last-modified-bar.active{background-color:#00af89;color:#fff}.last-modified-bar.active a{color:#fff}.truncated-text{white-space:nowrap;overflow:hidden;-webkit-text-overflow:ellipsis;text-overflow:ellipsis}@keyframes fadeInImage{from{opacity:0}to{opacity:1}}img.image-lazy-loaded{animation:fadeInImage .3s ease-in}.mw-mf-cleanup{display:block;margin:0;padding:0;font-size:.8em;color:#72777d}.overlay-issues .cleanup>li{border-bottom:solid 1px #c8ccd1}.overlay-issues .cleanup>li .issue-notice{padding:24px 24px 24px 0}.overlay-issues .cleanup>li .issue-notice .mw-ui-icon{float:left}.overlay-issues .cleanup>li .hide-when-compact,.overlay-issues .cleanup>li small{font-size:.8em}.overlay-issues .cleanup>li .hide-when-compact{display:block;margin:8px 0}.overlay-issues .issue-details{padding-left:3.5em}.overlay-issues .issue-details>:first-line{line-height:1}.overlay-issues .issue-details small i{color:#72777d}.ra-read-more h2{color:#54595d;border-bottom:0;padding-bottom:.5em;font-size:.8em;font-weight:400;letter-spacing:1px;text-transform:uppercase}.ext-related-articles-card-list{display:-moz-flex;display:flex;flex-flow:row wrap;font-size:1em;list-style:none;overflow:hidden;position:relative}.ext-related-articles-card-list .ext-related-articles-card{background-color:#fff;box-sizing:border-box;margin:0;height:80px;position:relative;width:100%;border:1px solid rgba(0,0,0,.2)}.ext-related-articles-card-list .ext-related-articles-card+.ext-related-articles-card{border-top:0}.ext-related-articles-card-list .ext-related-articles-card:first-child{border-radius:2px 2px 0 0}.ext-related-articles-card-list .ext-related-articles-card:last-child{border-radius:0 0 2px 2px}.ext-related-articles-card-list .ext-related-articles-card>a{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.ext-related-articles-card-list .ext-related-articles-card>a:hover{box-shadow:0 1px 1px rgba(0,0,0,.1)}.ext-related-articles-card-list h3{font-family:inherit;font-size:1em;max-height:2.6em;line-height:1.3;margin:0;overflow:hidden;padding:0;position:relative;font-weight:500}.ext-related-articles-card-list h3 a{color:#000}.ext-related-articles-card-list h3:after{content:" ";position:absolute;right:0;bottom:0;width:25%;height:1.3em;background-color:transparent;background-image:linear-gradient(to right,rgba(255,255,255,0),#fff 50%)}.ext-related-articles-card-list .ext-related-articles-card-detail{position:relative;top:50%;transform:translateY(-50%)}.ext-related-articles-card-list .ext-related-articles-card-extract{color:#72777d;font-size:.8em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.ext-related-articles-card-list .ext-related-articles-card-thumb{background-image:url(https://en.wikipedia.org/w/extensions/RelatedArticles/resources/ext.relatedArticles.cards/noimage.png?9e3d8);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 56 56%22%3E %3Cpath fill=%22%23eaecf0%22 d=%22M0 0h56v56h-56%22/%3E %3Cpath fill=%22%2372777d%22 d=%22M36.4 13.5h-18.6v24.9c0 1.4.9 2.3 2.3 2.3h18.7v-25c.1-1.4-1-2.2-2.4-2.2zm-6.2 3.5h5.1v6.4h-5.1v-6.4zm-8.8 0h6v1.8h-6v-1.8zm0 4.6h6v1.8h-6v-1.8zm0 15.5v-1.8h13.8v1.8h-13.8zm13.8-4.5h-13.8v-1.8h13.8v1.8zm0-4.7h-13.8v-1.8h13.8v1.8z%22/%3E %3C/svg%3E");background-repeat:no-repeat;background-position:top center;background-size:100% 100%;background-size:cover;float:left;height:100%;width:80px;margin-right:10px}@media all and (min-width:720px){.ext-related-articles-card-list{border-top:0}.ext-related-articles-card-list .ext-related-articles-card{border:1px solid rgba(0,0,0,.2);margin-right:1%;margin-bottom:10px;width:32.66666667%}.ext-related-articles-card-list .ext-related-articles-card,.ext-related-articles-card-list .ext-related-articles-card:first-child,.ext-related-articles-card-list .ext-related-articles-card:last-child{border-radius:2px}.ext-related-articles-card-list .ext-related-articles-card:last-child{margin-right:0}.ext-related-articles-card-list .ext-related-articles-card+.ext-related-articles-card{border:1px solid rgba(0,0,0,.2)}.ext-related-articles-card-list .ext-related-articles-card:nth-child(3n+3){margin-right:0}}.backtotop{visibility:hidden;opacity:0;position:fixed;width:2.5em;height:2.5em;border-radius:100%;box-shadow:.1em .2em .3em #c8ccd1;bottom:20px;right:0;cursor:pointer;z-index:1;background-color:#36c;transition:opacity .5s 0s}.backtotop.visible{opacity:.8}.backtotop.visible:hover{opacity:1}.backtotop>.arrow-up{width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.rtl>.backtotop .arrow-up{transform:translate(50%,-50%)}.lazy-image-placeholder{display:none}.mw-editsection{display:none!important}',""]),e.exports=t},699:function(e,t,i){var o=i(1362);e.exports="string"==typeof o?o:o.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/88.46460202.js b/plugins/saladict-ztools/ext-saladic/assets/88.46460202.js new file mode 100644 index 00000000..0f7f11c9 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/88.46460202.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[88],{415:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));const o={title:"Saladict Browser Action Panel",app_active_title:"Enable Inline Translator",app_temp_active_title:"Temporary disabled to the page",instant_capture_pinned:" (pinned) ",instant_capture_title:"Enable Instant Capture",notebook_added:"Added",notebook_empty:"No selection found on the current page",notebook_error:"Cannot add selected text to Notebook",page_no_response:"Page no response",qrcode_title:"Qrcode of the page"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/89.b3a872e7.js b/plugins/saladict-ztools/ext-saladic/assets/89.b3a872e7.js new file mode 100644 index 00000000..71364497 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/89.b3a872e7.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[89],{416:function(e,t,l){"use strict";l.r(t),l.d(t,"locale",(function(){return o}));const o={title:{history:"Saladict Search History",notebook:"Saladict Notebook"},localonly:"local only",column:{add:"Add",date:"Date",edit:"Edit",note:"Note",source:"Source",trans:"Translation",word:"Word"},delete:{title:"Delete",all:"Delete all",confirm:". Confirm?",page:"Delete page",selected:"Delete selected"},export:{title:"Export",all:"Export all",description:"Describe the shape of each record: ",explain:"How to export to ANKI and other tools",gencontent:"Generated Content",linebreak:{default:"Keep default linebreaks",n:"replace linebreaks with \\n",br:"replace linebreaks with <br>",p:"replace linebreaks with <p>",space:"replace linebreaks with space"},page:"Export page",placeholder:"Placeholder",htmlescape:{title:"Escape HTML characters in notes",text:"Escape HTML"},selected:"Export selected"},filterWord:{chs:"Chinese",eng:"English",word:"Word",phrase:"Phrase"},wordCount:{selected:"{{count}} item selected",selected_plural:"{{count}} item selected",total:"{{count}} item total",total_plural:"{{count}} item total"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/89.cd1bfa75.js b/plugins/saladict-ztools/ext-saladic/assets/89.cd1bfa75.js deleted file mode 100644 index 8e9e29db..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/89.cd1bfa75.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[89],{1364:function(a,n,e){(n=e(221)(!1)).push([a.i,'.MachineTrans-Text .saladict-Speaker{position:absolute;left:0;top:2px;margin:0}.MachineTrans-Text summary{cursor:pointer}.MachineTrans-Lines{position:relative;margin:.5em 0;padding-left:1.5em}.MachineTrans-Lines p{margin:.3em 0}.MachineTrans-Lines-collapse{overflow:hidden;position:relative}.MachineTrans-Lines-collapse::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;background:linear-gradient(90deg,rgba(255,255,255,0) 50%,var(--color-background) 90%);pointer-events:none}.MachineTrans-Lines-collapse button{height:1.5em;padding:0;text-align:start;word-break:keep-all;white-space:nowrap;font-size:1em;font-weight:400;font-family:inherit;color:currentColor;cursor:pointer}.MachineTrans-lang-ar,.MachineTrans-lang-ara,.MachineTrans-lang-az,.MachineTrans-lang-fa,.MachineTrans-lang-he,.MachineTrans-lang-iw,.MachineTrans-lang-ku,.MachineTrans-lang-ug,.MachineTrans-lang-ur{direction:rtl!important}.MachineTrans-lang-ar.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ara.MachineTrans-Lines-collapse::after,.MachineTrans-lang-az.MachineTrans-Lines-collapse::after,.MachineTrans-lang-fa.MachineTrans-Lines-collapse::after,.MachineTrans-lang-he.MachineTrans-Lines-collapse::after,.MachineTrans-lang-iw.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ku.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ug.MachineTrans-Lines-collapse::after,.MachineTrans-lang-ur.MachineTrans-Lines-collapse::after{background:linear-gradient(270deg,rgba(255,255,255,0) 50%,var(--color-background) 90%)}.MachineTrans-has-rtl{text-align:right}.MachineTrans-has-rtl .MachineTrans-Lines{padding-left:0;padding-right:1.5em}.MachineTrans-has-rtl .saladict-Speaker{left:auto;right:0}@font-face{font-family:"UKIJ Tuz Basma";src:url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff2) format("woff2"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.woff) format("woff"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.ttf) format("truetype"),url(https://ws-image-cdn.subat.cn/fonts/ukij-tuz-basma-bold/UKIJTuzBasma-Bold.svg#UKIJTuzBasma-Bold) format("svg");font-style:normal}.MachineTrans-lang-ug{font-family:"UKIJ Tuz Basma"!important}',""]),a.exports=n},701:function(a,n,e){var r=e(1364);a.exports="string"==typeof r?r:r.toString()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/90.ec8b66ab.js b/plugins/saladict-ztools/ext-saladic/assets/90.ec8b66ab.js new file mode 100644 index 00000000..211a6d74 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/90.ec8b66ab.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[90],{417:function(a,e,i){"use strict";i.r(e),i.d(e,"locale",(function(){return t}));const t={app:{off:"Saladict desactivado. (El panel de búsqueda rápida sigue disponible)",tempOff:"Saladict desactivado en la pestaña actual. (El panel de búsqueda rápida sigue disponible)",unsupported:"El panel Saladict incrustado no es compatible con la pestaña actual. Utilice el panel Saladict independiente en su lugar."}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/91.4392148d.js b/plugins/saladict-ztools/ext-saladic/assets/91.4392148d.js new file mode 100644 index 00000000..82f613be --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/91.4392148d.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[91],{418:function(e,n,a){"use strict";a.r(n),a.d(n,"locale",(function(){return o}));const o={add:"Añadir",delete:"Eliminar",save:"Guardar",cancel:"CAncelar",edit:"Editar",sort:"Ordenar",rename:"Renombrar",confirm:"Confirmar",changes_confirm:"Cambios no guardados. ¿Cerrar de todas formas?",delete_confirm:"¿Eliminar completamente el elemento?",max:"Max",min:"Min",name:"Nombre",none:"Ninguno",enable:"Activar",enabled:"Activado",disabled:"Desactivado",blacklist:"Lista negra",whitelist:"Lista blanca",import:"Importar",export:"Exportar",lang:{chinese:"Chino",chs:"Chino",deutsch:"Alemán",eng:"Inglés",english:"Inglés",french:"Francés",japanese:"Japonés",korean:"Coreano",matchAll:"Coincidir con todos los caracteres",minor:"Menor",others:"Otros",spanish:"Español"},unit:{mins:"minutes",ms:"ms",s:"s",word:"words"},note:{word:"Word",trans:"Translation",note:"Note",context:"Context",contextCloze:"Context Cloze",date:"Date",srcTitle:"Source Title",srcLink:"Source Link",srcFavicon:"Source Favicon"},profile:{daily:"Daily Mode",sentence:"Sentence Mode",default:"Default Mode",scholar:"Scholar Mode",translation:"Translation Mode",nihongo:"Japanese Mode"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/91.e7fc5288.js b/plugins/saladict-ztools/ext-saladic/assets/91.e7fc5288.js deleted file mode 100644 index b577f6bc..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/91.e7fc5288.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[91],{1330:function(a){a.exports=JSON.parse('{"af":"Afrikaans","am":"Amharic","ar":"Arabic","auto":"Detect language","az":"Azerbaijani","be":"Belarusian","bg":"Bulgarian","bn":"Bengali","bs":"Bosnian","ca":"Catalan","ceb":"Cebuano","co":"Corsican","cs":"Czech","cy":"Welsh","da":"Danish","de":"German","el":"Greek","en":"English","eo":"Esperanto","es":"Spanish","et":"Estonian","eu":"Basque","fa":"Persian","fi":"Finnish","fil":"Filipino","fj":"Fijian","fr":"French","fy":"Frisian","ga":"Irish","gd":"Scots Gaelic","gl":"Galician","gu":"Gujarati","ha":"Hausa","haw":"Hawaiian","he":"Hebrew","hi":"Hindi","hmn":"Hmong","hr":"Croatian","ht":"Haitian Creole","hu":"Hungarian","hy":"Armenian","id":"Indonesian","ig":"Igbo","is":"Icelandic","it":"Italian","ja":"Japanese","jw":"Javanese","ka":"Georgian","kk":"Kazakh","km":"Khmer","kn":"Kannada","ko":"Korean","ku":"Kurdish (Kurmanji)","ky":"Kyrgyz","la":"Latin","lb":"Luxembourgish","lo":"Lao","lt":"Lithuanian","lv":"Latvian","mg":"Malagasy","mi":"Maori","mk":"Macedonian","ml":"Malayalam","mn":"Mongolian","mr":"Marathi","ms":"Malay","mt":"Maltese","mww":"Bai Miao Wen","my":"Myanmar (Burmese)","ne":"Nepali","nl":"Dutch","no":"Norwegian","ny":"Nyanja (Chichewa)","otq":"Cretaro Ottomi","pa":"Punjabi","pl":"Polish","ps":"Pashto","pt":"Portuguese (Portugal, Brazil)","ro":"Romanian","ru":"Russian","sd":"Sindhi","si":"Sinhala (Sinhalese)","sk":"Slovak","sl":"Slovenian","sm":"Samoan","sn":"Shona","so":"Somali","sq":"Albanian","sr":"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)","st":"Sesotho","su":"Sundanese","sv":"Swedish","sw":"Swahili","ta":"Tamil","te":"Telugu","tg":"Tajik","th":"Thai","tlh":"Klingon","tlh-Qaak":"Klingon (piqaD)","to":"Tongan","tr":"Turkish","ty":"Tahiti","ug":"Uighur","uk":"Ukrainian","ur":"Urdu","uz":"Uzbek","vi":"Vietnamese","wyw":"Classical Chinese","xh":"Xhosa","yi":"Yiddish","yo":"Yoruba","yua":"Yucatan Mayan","yue":"Cantonese (Traditional)","zh-CN":"Chinese (Simplified)","zh-TW":"Chinese (Traditional)","zu":"Zulu"}')},545:function(a,i,n){"use strict";n.r(i),n.d(i,"locale",(function(){return s}));var e=n(1330);const s={...e,default:"Default",ara:"Arabic","bs-Latn":"Bosnian",bul:"Bulgarian",cht:"Chinese (Traditional)",dan:"Danish",est:"Estonian",fin:"Finnish",fra:"French",iw:"Hebrew",jp:"Japanese",kor:"Korean",kr:"Korean",pt_BR:"Brazilian",rom:"Romanian",slo:"Slovenian",spa:"Spanish",swe:"Swedish",tl:"Tagalog (Filipino)",vie:"Vietnamese",zh:"Chinese (Simplified)","zh-CHS":"Chinese (Simplified)","zh-CHT":"Chinese (Traditional)"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/92.551358cc.js b/plugins/saladict-ztools/ext-saladic/assets/92.551358cc.js deleted file mode 100644 index a99eec9e..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/92.551358cc.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[92],{1331:function(t){t.exports=JSON.parse('{"af":"南非荷兰语","am":"阿姆哈拉语","ar":"阿拉伯语","auto":"检测语言","az":"阿塞拜疆语","be":"白俄罗斯语","bg":"保加利亚语","bn":"孟加拉语","bs":"波斯尼亚语","ca":"加泰罗尼亚语","ceb":"宿务语","co":"科西嘉语","cs":"捷克语","cy":"威尔士语","da":"丹麦语","de":"德语","el":"希腊语","en":"英语","eo":"世界语","es":"西班牙语","et":"爱沙尼亚语","eu":"巴斯克语","fa":"波斯语","fi":"芬兰语","fil":"菲律宾语","fj":"斐济语","fr":"法语","fy":"弗里斯兰语","ga":"爱尔兰语","gd":"苏格兰盖尔语","gl":"加利西亚语","gu":"古吉拉特语","ha":"豪萨语","haw":"夏威夷语","he":"希伯来语","hi":"印地语","hmn":"苗语","hr":"克罗地亚语","ht":"海地克里奥尔语","hu":"匈牙利语","hy":"亚美尼亚语","id":"印度尼西亚语","ig":"伊博语","is":"冰岛语","it":"意大利语","ja":"日语","jw":"爪哇语","ka":"格鲁吉亚语","kk":"哈萨克语","km":"高棉语","kn":"卡纳达语","ko":"韩语","ku":"库尔德语","ky":"吉尔吉斯语","la":"拉丁语","lb":"卢森堡语","lo":"老挝语","lt":"立陶宛语","lv":"拉脱维亚语","mg":"马尔加什语","mi":"毛利语","mk":"马其顿语","ml":"马拉雅拉姆语","mn":"蒙古语","mr":"马拉地语","ms":"马来语","mt":"马耳他语","mww":"白苗文","my":"缅甸语","ne":"尼泊尔语","nl":"荷兰语","no":"挪威语","ny":"尼杨扎语(齐切瓦语)","otq":"克雷塔罗奥托米语","pa":"旁遮普语","pl":"波兰语","ps":"普什图语","pt":"葡萄牙语(葡萄牙、巴西)","ro":"罗马尼亚语","ru":"俄语","sd":"信德语","si":"僧伽罗语","sk":"斯洛伐克语","sl":"斯洛文尼亚语","sm":"萨摩亚语","sn":"修纳语","so":"索马里语","sq":"阿尔巴尼亚语","sr":"塞尔维亚语","sr-Cyrl":"塞尔维亚语(西里尔文)","sr-Latn":"塞尔维亚语(拉丁文)","st":"塞索托语","su":"巽他语","sv":"瑞典语","sw":"斯瓦希里语","ta":"泰米尔语","te":"泰卢固语","tg":"塔吉克语","th":"泰语","tlh":"克林贡语","tlh-Qaak":"克林贡语(piqaD)","to":"汤加语","tr":"土耳其语","ty":"塔希提语","ug":"维吾尔语","uk":"乌克兰语","ur":"乌尔都语","uz":"乌兹别克语","vi":"越南语","wyw":"文言文","xh":"班图语","yi":"意第绪语","yo":"约鲁巴语","yua":"尤卡坦玛雅语","yue":"粤语(繁体)","zh-CN":"中文(简体)","zh-TW":"中文(繁体)","zu":"祖鲁语"}')},552:function(t,a,s){"use strict";s.r(a),s.d(a,"locale",(function(){return r}));var n=s(1331);const r={...n,default:"随扩展语言",ara:"阿拉伯语","bs-Latn":"波斯尼亚语",bul:"保加利亚语",cht:"中文(繁体)",dan:"丹麦语",est:"爱沙尼亚语",fin:"芬兰语",fra:"法语",iw:"希伯来语",jp:"日语",kor:"韩语",kr:"韩语",pt_BR:"巴西语",rom:"罗马尼亚语",slo:"斯洛文尼亚语",spa:"西班牙语",swe:"瑞典语",tl:"塔加路语(菲律宾语)",vie:"越南语",zh:"中文(简体)","zh-CHS":"中文(简体)","zh-CHT":"中文(繁体)"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/92.8b315a95.js b/plugins/saladict-ztools/ext-saladic/assets/92.8b315a95.js new file mode 100644 index 00000000..b6867470 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/92.8b315a95.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[92],{419:function(a,e,r){"use strict";r.r(e),r.d(e,"locale",(function(){return i}));const i={chooseLang:"elegir otro idioma",standalone:"Panel de Saladict independiente",fetchLangList:"Obtener la lista completa de idiomas",transContext:"Retraducir",neverShow:"Dejar de mostrar",fromSaladict:"Desde el panel de Saladict",tip:{historyBack:"Historial de búsqueda anterior",historyNext:"Siguiente historial de búsqueda",searchText:"Buscar texto",openOptions:"Abrir opciones",addToNotebook:"Agregar al cuaderno. Haga clic derecho para abrir el cuaderno",openNotebook:"Abrir cuaderno",openHistory:"Abrir historial",shareImg:"Compartir como imagen",pinPanel:"Fijar el panel",closePanel:"Cerrar el panel",sidebar:"Cambiar a modo barra lateral. Haga clic derecho para el lado derecho.",focusPanel:"El panel gana foco al buscar",unfocusPanel:"El panel no gana foco al buscar"},wordEditor:{title:"Agregar al cuaderno",wordCardsTitle:"Otros resultados del cuaderno",deleteConfirm:"¿Eliminar del cuaderno?",closeConfirm:"Los cambios no se guardarán. ¿Estás seguro de cerrar?",chooseCtxTitle:"Elija los resultados traducidos",ctxHelp:"Mantenga el formato [:: xxx ::] y --------------- si desea que Saladict maneje la selección de traducción y genere una tabla de Anki."},machineTrans:{switch:"Cambiar idioma",sl:"Idioma de origen",tl:"Idioma de destino",auto:"Detectar idioma",stext:"Original",showSl:"Mostrar fuente",copySrc:"Copiar fuente",copyTrans:"Copiar traducción",login:"Proporcione {access token}.",dictAccount:"access token"},manualVerification:{title:"Se requiere verificación manual",message:"Abra la página original del diccionario y complete la verificación humana, luego vuelva a buscar en Saladict.",openPage:"Abrir página del diccionario"},updateAnki:{title:"Actualizar a Anki",success:"Se actualizó correctamente la palabra a Anki.",failed:"No se pudo actualizar la palabra a Anki."}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/93.4e7c8d39.js b/plugins/saladict-ztools/ext-saladic/assets/93.4e7c8d39.js new file mode 100644 index 00000000..8dfaccc5 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/93.4e7c8d39.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[93],{421:function(a,e,o){"use strict";o.r(e),o.d(e,"locale",(function(){return n}));const n={baidu_page_translate:"Traductor web de baidu",baidu_search:"Buscar en baidu",bing_dict:"Bing diccionario",bing_search:"Buscar en bing",caiyuntrs:"Traductor de Lingocloud",cambridge:"Cambridge",copy_pdf_url:"Copiar URL de PDF al portapapeles",dictcn:"Dictcn",etymonline:"Etymonline",google_cn_page_translate:"Traductor web de Google.cn",google_page_translate:"Traductor de Google",google_search:"Buscar en Google",google_translate:"Traductor de Google",google_cn_translate:"Traductor de Google.cn",guoyu:"國語辭典",history_title:"Historial de búsqueda",iciba:"iciba",liangan:"兩岸詞典",longman_business:"Longman Business",manual_title:"Manual",merriam_webster:"Merriam Webster",microsoft_page_translate:"Traductor web de Microsoft",notebook_title:"Lista de palabras nuevas",notification_youdao_err:"Youdao Page Translate 2.0 no responde.\nSaladict puede que no tenga permiso para acceder a esta página.\nIgnora este mensaje si el panel de Youdao se muestra.",oxford:"Oxford",page_permission_err:'Saladict "{{name}}" no tiene permiso para acceder a esta página.',page_translations:"Traducciones de página",saladict:"Saladict",saladict_standalone:"Panel Saladict independiente",sogou:"Traductor de Sogou",sogou_page_translate:"Traductor web de Sogou",termonline:"Termonline",view_as_pdf:"Abrir en el visor de PDF",youdao:"Youdao",youdao_page_translate:"Traductor web de Youdao",youglish:"YouGlish"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/93.6a9518b8.js b/plugins/saladict-ztools/ext-saladic/assets/93.6a9518b8.js deleted file mode 100644 index 2f215e85..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/93.6a9518b8.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[93],{1332:function(t){t.exports=JSON.parse('{"af":"南非荷蘭語","am":"阿姆哈拉語","ar":"阿拉伯語","auto":"偵測語言","az":"亞塞拜然語","be":"白俄羅斯語","bg":"保加利亞語","bn":"孟加拉語","bs":"波斯尼亞語","ca":"加泰羅尼亞語","ceb":"宿務語","co":"科西嘉語","cs":"捷克語","cy":"威爾士語","da":"丹麥語","de":"德語","el":"希臘語","en":"英語","eo":"世界語","es":"西班牙語","et":"愛沙尼亞語","eu":"巴斯克語","fa":"波斯語","fi":"芬蘭語","fil":"菲律賓語","fj":"斐濟語","fr":"法語","fy":"弗里斯蘭語","ga":"愛爾蘭語","gd":"蘇格蘭蓋爾語","gl":"加利西亞語","gu":"古吉拉特語","ha":"豪薩語","haw":"夏威夷語","he":"希伯來語","hi":"印地語","hmn":"苗語","hr":"克羅埃西亞語","ht":"海地克里奧爾語","hu":"匈牙利語","hy":"亞美尼亞語","id":"印度尼西亞語","ig":"伊博語","is":"冰島語","it":"義大利語","ja":"日語","jw":"爪哇語","ka":"喬治亞語","kk":"哈薩克語","km":"高棉語","kn":"卡納達語","ko":"韓語","ku":"庫爾德語","ky":"吉爾吉斯語","la":"拉丁語","lb":"盧森堡語","lo":"寮國語","lt":"立陶宛語","lv":"拉脫維亞語","mg":"馬爾加什語","mi":"毛利語","mk":"馬其頓語","ml":"馬拉雅拉姆語","mn":"蒙古語","mr":"馬拉地語","ms":"馬來語","mt":"馬耳他語","mww":"白苗文","my":"緬甸語","ne":"尼泊爾語","nl":"荷蘭語","no":"挪威語","ny":"尼楊扎語(齊切瓦語)","otq":"克雷塔羅奧托米語","pa":"旁遮普語","pl":"波蘭語","ps":"普什圖語","pt":"葡萄牙語(葡萄牙、巴西)","ro":"羅馬尼亞語","ru":"俄語","sd":"信德語","si":"僧伽羅語","sk":"斯洛伐克語","sl":"斯洛維尼亞語","sm":"薩摩亞語","sn":"修納語","so":"索馬利亞語","sq":"阿爾巴尼亞語","sr":"塞爾維亞語","sr-Cyrl":"塞爾維亞語(西里爾文)","sr-Latn":"塞爾維亞語(拉丁文)","st":"塞索托語","su":"巽他語","sv":"瑞典語","sw":"斯瓦希里語","ta":"泰米爾語","te":"泰盧固語","tg":"塔吉克語","th":"泰語","tlh":"克林貢語","tlh-Qaak":"克林貢語(piqaD)","to":"湯加語","tr":"土耳其語","ty":"塔希提語","ug":"維吾爾語","uk":"烏克蘭語","ur":"烏爾都語","uz":"烏茲別克語","vi":"越南語","wyw":"文言文","xh":"班圖語","yi":"意第緒語","yo":"約魯巴語","yua":"尤卡坦瑪雅語","yue":"粵語(繁體)","zh-CN":"中文(簡體)","zh-TW":"中文(繁體)","zu":"祖魯語"}')},559:function(t,a,s){"use strict";s.r(a),s.d(a,"locale",(function(){return r}));var n=s(1332);const r={...n,default:"同介面語言",ara:"阿拉伯語","bs-Latn":"波斯尼亞語",bul:"保加利亞語",cht:"中文(繁體)",dan:"丹麥語",est:"愛沙尼亞語",fin:"芬蘭語",fra:"法語",iw:"希伯來語",jp:"日語",kor:"韓語",kr:"韓語",pt_BR:"巴西語",rom:"羅馬尼亞語",slo:"斯洛維尼亞語",spa:"西班牙語",swe:"瑞典語",tl:"他加祿語(菲律賓語)",vie:"越南語",zh:"中文(簡體)","zh-CHS":"中文(簡體)","zh-CHT":"中文(繁體)"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/94.40cd2aae.js b/plugins/saladict-ztools/ext-saladic/assets/94.40cd2aae.js deleted file mode 100644 index 7d9beb06..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/94.40cd2aae.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[94],{1328:function(e,t,a){"use strict";var n=a(0),r=a.n(n);t.a=e=>{const{title:t,className:a,children:n,...l}=e;return r.a.createElement("div",{className:"entryBox-Wrap"+(a?" "+a:""),...l},r.a.createElement("section",{className:"entryBox"},r.a.createElement("h1",{className:"entryBox-Title"},t),r.a.createElement("div",null,n)))}},642:function(e,t,a){"use strict";a.r(t),a.d(t,"DictCambridge",(function(){return c}));var n=a(0),r=a.n(n),l=a(1328);const c=({result:e})=>r.a.createElement("div",{className:"dictCNKI"},e.dict.length>0&&r.a.createElement(l.a,{title:"英汉汉英词典"},e.dict.map(({word:e,href:t},a)=>r.a.createElement("a",{key:a,className:"dictCNKI-DictLink",href:t,target:"_blank",rel:"nofollow noopener noreferrer"},e))),e.senbi.length>0&&r.a.createElement(l.a,{title:"双语例句",className:"dictCNKI-Sensbi"},e.senbi.map(({title:e,more:t,sens:a},n)=>r.a.createElement(r.a.Fragment,{key:n},r.a.createElement("h2",{className:"dictCNKI-SensTitle"},e),a.map((e,t)=>r.a.createElement("p",{key:t,dangerouslySetInnerHTML:{__html:e}})),r.a.createElement("div",{className:"dictCNKI-SensMore"},r.a.createElement("a",{href:t,target:"_blank",rel:"nofollow noopener noreferrer"},"更多"))))),e.seneng.length>0&&r.a.createElement(l.a,{title:"英文例句",className:"dictCNKI-Senseng"},e.seneng.map(({title:e,more:t,sens:a},n)=>r.a.createElement(r.a.Fragment,{key:n},r.a.createElement("h2",{className:"dictCNKI-SensTitle"},e),a.map((e,t)=>r.a.createElement("p",{key:t,dangerouslySetInnerHTML:{__html:e}})),r.a.createElement("div",{className:"dictCNKI-SensMore"},r.a.createElement("a",{href:t,target:"_blank",rel:"nofollow noopener noreferrer"},"更多"))))));t.default=c}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/94.8145a6f6.js b/plugins/saladict-ztools/ext-saladic/assets/94.8145a6f6.js new file mode 100644 index 00000000..3364f10b --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/94.8145a6f6.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[94],{422:function(e,a,i){"use strict";i.r(a),i.d(a,"locale",(function(){return n}));const n={title:"Saladict Opciones",previewPanel:"Panel de vista previa",shortcuts:"Atajos de teclado",msg_update_error:"Error al actualizar",msg_updated:"Actualizado",msg_first_time_notice:"¡Bienvenido a Saladict!",msg_err_permission:'No se ha podido solicitar el permiso "{{permission}}".',unsave_confirm:"Hay cambios sin guardar. ¿Estás seguro de que quieres salir?",nativeSearch:"Buscar con el motor de búsqueda nativo",firefox_shortcuts:'Abra about:addons, haga clic en el botón superior derecho "engranaje", elija la última "Administrar accesos directos de extensión".',tutorial:"Tutorial",page_selection:"Selección de página",nav:{General:"General",Notebook:"Bloc de notas",Profiles:"Perfiles",DictPanel:"Panel de diccionario",SearchModes:"Modos de búsqueda",Dictionaries:"Diccionarios",DictAuths:"Access Tokens",Popup:"Popup Panel",QuickSearch:"Busqueda rápida",Pronunciation:"Pronunciación",PDF:"PDF",ContextMenus:"Menús de contexto",BlackWhiteList:"Lista negra/Blanca",ImportExport:"Importar/Exportar",Privacy:"Privacidad",Permissions:"Permisos"},config:{active:"Activar el traductor en línea",active_help:"Si está desactivado, el traductor en línea no se mostrará en el panel de búsqueda rápida.",animation:"Transiciones de animación",animation_help:"Desactive las transiciones de animación para mejorar el rendimiento.",runInBg:"Ejecutar en segundo plano",runInBg_help:"Si está desactivado, Saladict se cerrará cuando se cierre la última ventana.",darkMode:" Modo oscuro",langCode:"Idioma de Saladict",editOnFav:"Abrir WordEditor al guardar",editOnFav_help:"Si está desactivado, WordEditor se abrirá cuando se agregue una palabra nueva.",searchHistory:"Historial de búsqueda",searchHistory_help:"Si está desactivado, el historial de búsqueda no se mostrará en el panel de búsqueda rápida.",searchHistoryInco:"Incluir búsqueda de incógnito",ctxTrans:"Traducir contexto",ctxTrans_help:"Si está desactivado, el contexto no se mostrará en el panel de búsqueda rápida.",searchSuggests:"Sugerencias de búsqueda",panelMaxHeightRatio:"Altura máxima del panel",panelWidth:"Ancho del panel",fontSize:"Tamaño de fuente",bowlOffsetX:"Desplazamiento X del icono de Saladict",bowlOffsetY:"Desplazamiento Y del icono de Saladict",panelCSS:"CSS personalizado",panelCSS_help:"CSS personalizado. Para el panel de dictado, utilice .dictPanel-Root como raíz. Para diccionarios utilice .dictRoot o .d-{id} como raíz.",noTypeField:"No hay selección en las regiones editables",noTypeField_help:"Si la selección en regiones editables está prohibida, la extensión identificará los cuadros de entrada, las áreas de texto y otros editores de texto comunes como CodeMirror, ACE y Monaco.",touchMode:"Modo táctil",touchMode_help:"Activar la selección táctil",language:"Selección de idiomas",language_help:"Buscar cuando la selección contiene palabras en los idiomas elegidos.",language_extra:"Tenga en cuenta que el japonés y el coreano también incluyen el chino. El francés, el alemán y el español también incluyen el inglés. Si se cancela el chino o el inglés mientras se seleccionan otros, sólo se comprueban las partes exclusivas de esos idiomas. Por ejemplo, los caracteres kana en japonés.",doubleClickDelay:"Retraso de doble clic",mode:"Seleccion normal",panelMode:"Interior del panel Dict",pinMode:"Cuando el panel está fijado",qsPanelMode:"Cuando se abre el panel independiente",bowlHover:"Icono al pasar el cursor por encima",bowlHover_help:"Pase el ratón sobre el icono del cuenco para activar la búsqueda en lugar de hacer clic.",autopron:{cn:{dict:"Autopronunciación en chino"},en:{dict:"Autopronunciación en inglés",accent:"Preferencia de acento"},machine:{dict:"Autopronunciación de la máquina",src:"Pronunciar a máquina",src_help:"El diccionario de traducción automática debe añadirse y activarse en la siguiente lista para activar la pronunciación automática.",src_search:"Leer texto original",src_trans:"Leer el texto de la traducción"}},pdfSniff:"Activar PDF Sniffer",pdfSniff_help:"Si está activada, los enlaces PDF se capturarán automáticamente.",pdfSniff_extra:"Se recomienda {search selected text outside of browser} con su propio lector local favorito.",pdfStandalone:"Panel independiente",pdfStandalone_help:"Abrir visor de PDF en panel independiente.",baWidth:"Anchura",baWidth_help:"Navegador Acción Panel con. Si se elige un valor negativo, se utilizará la anchura del panel.",baHeight:"Altura",baHeight_help:"Navegador Acción Panel altura.",baOpen:"Acción del navegador",baOpen_help:"Al pulsar el icono de acción del navegador en la barra de herramientas (junto a la barra de direcciones). Los elementos son los mismos que los menús contextuales, que pueden añadirse o editarse en la página de configuración de menús contextuales.",tripleCtrl:"Activar tecla corta Ctrl",tripleCtrl_help:"Pulse {⌘ Command}(macOS) o {Ctrl}(Otros) tres veces (o con la tecla rápida del navegador) para acceder al panel del diccionario.",defaultPinned:"Fijado cuando aparece",qsLocation:"Ubicación",qsFocus:"Concéntrese cuando aparezca",qsStandalone:"Independiente",qsStandalone_help:"Renderizar el panel de dictado en una ventana independiente. Puede {buscar texto seleccionado fuera del navegador}.",qssaSidebar:"Barra lateral",qssaSidebar_help:"Renderizar el panel de dictado en la barra lateral.",qssaHeight:"Ventana altura",qssaPageSel:"Selección de página",qssaPageSel_help:"Seleccionar automáticamente el texto de la página.",qssaRectMemo:"Recordar tamaño y posición",qssaRectMemo_help:"Recuerde el tamaño y la posición del panel independiente al cerrar.",updateCheck:"Comprobar actualizaciones",updateCheck_help:"Compruebe si hay actualizaciones automáticamente.",analytics:"Activar Google Analytics",analytics_help:"Compartir información anónima sobre la versión del navegador del dispositivo. El autor de Saladict ofrecerá soporte prioritario a los dispositivos y navegadores más populares.",opt:{reset:"Restablecer configuración",reset_confirm:"¿Estás seguro de que quieres restablecer la configuración?",upload_error:"Error al cargar la configuración",accent:{uk:"UK",us:"US"},sel_blackwhitelist:"Lista negra y blanca de selección",sel_blackwhitelist_help:"Saladict no reaccionará a la selección en páginas de la lista negra.",pdf_blackwhitelist_help:"Los enlaces PDF de la lista negra no saltarán a Saladict PDF Viewer.",contextMenus_description:"Cada elemento del menú contextual también se puede personalizar. Youdao y Google Traductor están obsoletos en favor de las extensiones oficiales.",contextMenus_edit:"Editar elementos de menús contextuales",contextMenus_url_rules:"URL con %s en lugar de query.",baOpen:{popup_panel:"Panel de diccionario",popup_fav:"Añadir al bloc de notas",popup_options:"Abrir opciones de Saladict",popup_standalone:"Panel independiente Open Saladict"},openQsStandalone:"Opciones de panel independiente",pdfStandalone:{default:"Nunca",always:"Siempre",manual:"Manual"}}},matchPattern:{description:"Especifique URL como {URL Patrón de Coincidencia} o {Expresión Regular}. Se eliminarán los campos vacíos.",url:"URL Patrón de Coincidencia",url_error:"Patrón de coincidencia de URL incorrecto.",regex:"Expresión regular",regex_error:"Expresión regular incorrecta."},searchMode:{icon:"Mostrar icono",icon_help:"Aparecerá un bonito icono cerca del cursor.",direct:"Busqueda directa",direct_help:"Mostrar directamente el panel dict.",double:"Doble clic",double_help:"Mostrar panel de dict después de la selección de doble clic.",holding:"Mantener pulsado",holding_help:'Después de realizar una selección, la tecla seleccionada debe estar pulsada al soltar el ratón (Alt es "⌥ Opción" en macOS. Meta es "⌘ Comando" en macOS y "⊞ Windows" para los demás).',instant:"Captura instantánea",instant_help:"La selección se realiza automáticamente cerca del cursor.",instantDirect:"Directo",instantKey:"Tecla",instantKey_help:'Si se elige "Directo", también se recomienda configurar la tecla de acceso directo del navegador para activar la Captura instantánea. De lo contrario, la selección de texto en el navegador podría ser imposible.',instantDelay:"Retraso de captura"},profiles:{opt:{add_name:"Añadir nombre de perfil",delete_confirm:'Eliminar Perfil "{{name}}". ¿Confirmar?',edit_name:"Cambiar el nombre del perfil",help:"Cada perfil representa un conjunto independiente de ajustes. Algunos de los ajustes (con el prefijo {*}) cambian según el perfil. Para cambiar de perfil, sitúe el cursor sobre el icono de menú del panel de dictado, o bien sitúe el cursor sobre el icono y pulse {↓}."}},profile:{mtaAutoUnfold:"Despliegue automático del cuadro de búsqueda multilínea",waveform:"Forma de onda",waveform_help:"Muestra un botón en la parte inferior del panel de dictado para expandir el panel de control de forma de onda que sólo se carga después de la expansión.",stickyFold:"Plegado adhesivo",stickyFold_help:"Recuerda los estados de plegado/desplegado del diccionario manual al buscar. Sólo dura en la misma página.",opt:{item_extra:'Esta opción puede cambiar en función del "Perfil".',mtaAutoUnfold:{always:"Siempre Desplegar",never:"Nunca Desplegar",once:"Desplegar una vez",popup:"Sólo en la acción del navegador",hide:"Ocultar"},dict_selected:"Seleccionar diccionarios"}},dict:{add:"Añadir diccionarios",more_options:"Mas opciones",selectionLang:"Seleccionar idiomas",selectionLang_help:"Muestra este diccionario cuando la selección contiene palabras en los idiomas elegidos.",defaultUnfold:"Despliegue por defecto",defaultUnfold_help:"Si está desactivado, este diccionario no iniciará la búsqueda a menos que se haga clic en su barra de título.",selectionWC:"Selección Número de palabras",selectionWC_help:"Muestre este diccionario cuando el recuento de palabras de la selección cumpla los requisitos. Establezca 999999 para un número ilimitado de palabras.",preferredHeight:"Altura predeterminada del panel",preferredHeight_help:"Altura máxima en la primera aparición. Los contenidos que superen esta altura se ocultarán. Establezca 999999 para una altura ilimitada.",lang:{de:"De",en:"En",es:"Es",fr:"Fr",ja:"Ja",kor:"Kor",zhs:"Zhs",zht:"Zht"}},syncService:{description:"Ajustes de sincronización.",start:"Sincronizando. No cierre esta página hasta que haya terminado.",finished:"Sincronización finalizada",success:"Sincronización correcta",failed:"Sincronización fallida",close_confirm:"No se ha guardado la configuración. ¿Cerrar?",delete_confirm:"¿Eliminar?",shanbay:{description:" Vaya a shanbay.com y conéctese primero(debe permanecer conectado). Tenga en cuenta que se trata de una sincronización unidireccional (de Saladict a Shanbay). Sólo se sincronizan las nuevas palabras añadidas. Las palabras también deben ser compatibles con la base de datos de Shanbay.",login:"Se abrirá shanbay.com. Por favor, inicie sesión y luego volver y habilitar de nuevo.",sync_all:"Cargar todas las palabras nuevas existentes",sync_all_confirm:"Demasiadas palabras nuevas en el cuaderno. Saladict cargará por lotes. Ten en cuenta que si subes demasiadas palabras en un periodo corto de tiempo, tu cuenta será bloqueada y no se podrá recuperar. ¿Confirmar?",sync_last:"Cargar la última palabra nueva"},eudic:{description:"Antes de utilizar Eudic para sincronizar palabras, primero debe crear un nuevo libro de palabras predeterminado en el sitio web oficial de Eudic (my.eudic.net/home/index) (por lo general, se generará automáticamente y no se podrá eliminar después de la primera importación manual). Preste atención a no sincronizar con frecuencia en poco tiempo, ya que podría provocar un bloqueo temporal.",token:"Información sobre la autorización",getToken:"Obtener autorización",verify:"Comprobar la información de autorización",verified:"Información de autorización Eudic comprobada correctamente",enable_help:"Tras la apertura, cada nueva palabra añadida se sincronizará automáticamente con el libro de palabras predeterminado de Eudic (ensalada al libro de palabras de Eudic) en una dirección, y sólo se sincronizará la nueva palabra en sí (eliminada fuera de sincronización)",token_help:"Por favor, confirme que la información de autorización personal es válida, de lo contrario la sincronización fallará. Puede hacer clic en el botón de la parte inferior para comprobarlo.",sync_all:"Sincronizar todas las palabras nuevas",sync_help:"Sincronice todas las palabras nuevas existentes en el libro de palabras de la ensalada con el libro de palabras predeterminado de Eudic (active el interruptor de sincronización anterior al mismo tiempo y haga clic en guardar).",sync_all_confirm:"Tenga en cuenta que una sincronización frecuente en poco tiempo puede provocar un bloqueo temporal. ¿Está seguro de continuar?"},webdav:{description:"La configuración de las extensiones (incluida esta) se sincroniza a través del navegador. El cuaderno de nuevas palabras se puede sincronizar mediante WebDAV a través de la configuración aquí.",jianguo:"Véase Jianguoyun, por ejemplo",checking:"Conectando...",exist_confirm:"El directorio Saladict existe en el servidor. ¿Descargarlo y fusionarlo con los datos locales?",upload_confirm:"¿Subir los datos locales al servidor de inmediato?",verify:"Verificar servidor",verified:"Verificado con éxito el servidor WebDAV.",duration:"Duracion",duration_help:"Se garantiza que los datos se actualizan antes de cargarlos. Si no necesita sincronización en tiempo real entre navegadores, establezca un ciclo de sondeo más largo para reducir el consumo de CPU y memoria.",passwd:"Contraseña",url:"Dirección del servidor",user:"Usuario"},ankiconnect:{description:"Por favor, asegúrate de que el plugin Anki Connect está instalado y Anki se está ejecutando. También puede actualizar la palabra a Anki en el editor de Word.",checking:"Verificando...",deck_confirm:'El tablero "{{deck}}" no existe en Anki. ¿Generar un nuevo tablero?',deck_error:'No se puede crear el tablero "{{deck}}".',notetype_confirm:'El tipo de nota "{{noteType}}" no existe en Anki. Genera un nuevo tipo de nota.',notetype_error:'No se puede crear el tipo de nota"{{noteType}}".',upload_confirm:"¿Sincronizar nuevas palabras locales a Anki inmediatamente? Las palabras duplicadas (con la misma marca de tiempo) se omitirán.",add_yourself:"Por favor, añádelo tú mismo en Anki.",verify:"Verificar Anki Connect",verified:"Anki Connect verificado correctamente.",enable_help:'Cuando está activada, cada vez que se añade una nueva palabra al Cuaderno, también se transfiere automáticamente a Anki. Las palabras que existen en Anki (con la misma "Fecha") pueden ser forzadas a actualizarse en el Editor de Palabras.',host:"Dirección",port:"Puerto",key:"Clave",key_help:"Se puede añadir una clave opcional en la configuración de Anki Connect para la identificación.",deckName:"Tablero",deckName_help:'Si el tablero no existe, puedes generar uno automáticamente haciendo clic en "Verificar Anki Connect" más abajo.',noteType:"Tipo de nota",noteType_help:'El tipo de nota Anki incluye un conjunto de campos y un tipo de tarjeta. Si el tipo de nota no existe puedes generar uno por defecto automáticamente haciendo clic en "Verificar Anki Connect" más abajo. NO cambie los nombres de los campos cuando edite o añada plantillas de tarjetas en Anki',tags:"Etiquetas",tags_help:"Anki notes can include tags separated with commas.",escapeHTML:"Escapar HTML",escapeHTML_help:"Escapar entidades HTML. Desactivar si se utiliza HTML para la maquetación manual.",syncServer:"Sincronizar con el servidor",syncServer_help:"Sincronización con el servidor (p.e. AnkiWeb) después de añadir nuevas palabras al Anki local."}},titlebarOffset:{title:"Calibración de la altura de la barra de título",help:"La altura de la barra de título puede variar según el sistema o la configuración del navegador. Saladict intentará calibrarla automáticamente. Si puede ajustar manualmente.",main:"Normal",main_help:"Las ventanas normales pueden no tener barra de título.",panel:"Panel",panel_help:"El panel de búsqueda rápida independiente de Saladict es un tipo de ventana de panel.",calibrate:"Auto-calibrate",calibrateSuccess:"Calibración correcta",calibrateError:"Error de calibración"},headInfo:{acknowledgement:{title:"Reconocimiento",yipanhuasheng:"por añadir los diccionarios Merriam Webster's Dict, American Heritage Dict, Oxford Learner's Dict y el servicio de sincronización Eudic Notebook; y por actualizar los diccionarios Urban Dict y Naver Dict.",naver:"por ayudar a añadir Naver dict",shanbay:"por añadir Shanbay dict",trans_tw:"por la traducción al chino tradicional",weblio:"por ayudar a añadir Weblio dict"},contact_author:"Contactar al autor",donate:"Donar",instructions:"Instrucciones",report_issue:"Informar de un problema"},form:{url_error:"URL incorrecta.",number_error:"Numero incorrecto."},preload:{title:"Precarga",auto:"Búsqueda automática",auto_help:"Búsqueda automática cuando aparece el panel.",clipboard:"Clipboard",help:"Precarga de contenido en el cuadro de búsqueda cuando aparece el panel.",selection:"Selección de página"},locations:{CENTER:"Centrado",TOP:"Arriba",RIGHT:"Derecha",BOTTOM:"Abajo",LEFT:"Izquierda",TOP_LEFT:"Arriba a la izquierda",TOP_RIGHT:"Arriba a la derecha",BOTTOM_LEFT:"Abajo a la izquierda",BOTTOM_RIGHT:"Abajo a la derecha"},import_export_help:"Las configuraciones se sincronizan automáticamente a través del navegador. Aquí también puede importar/exportar manualmente. Las copias de seguridad se exportan como archivos de texto sin formato. Por favor, codifíquelos usted mismo si es necesario.",import:{title:"Importar Configuraciones",error:{title:"Error de importación",parse:"No se ha podido analizar la copia de seguridad. Formato incorrecto.",load:"No se puede cargar la copia de seguridad. El navegador no puede obtener el archivo local.",empty:"No se han encontrado datos válidos en la copia de seguridad."}},export:{title:"Exportar Configuraciones",error:{title:"Error de exportación",empty:"No hay configuración para exportar.",parse:"No se pueden analizar las configuraciones."}},dictAuth:{description:"A medida que crece el número de usuarios de Saladict, si hace un uso intensivo de los servicios de traducción automática se recomienda registrar una cuenta para mejorar la estabilidad y la precisión. Los datos de la cuenta sólo se almacenarán en el navegador.",dictHelp:"Consulte el sitio web oficial de {dict}.",manage:"Gestionar cuentas de traductor"},third_party_privacy:"Privacidad de terceros",third_party_privacy_help:'Saladict no recopilará más información, pero el texto de la búsqueda y las cookies correspondientes se enviarán a servicios de diccionarios de terceros (igual que si buscara en sus sitios web). Si no desea que los servicios de terceros recopilen sus datos, elimine los diccionarios correspondientes en la configuración de "Diccionarios".',third_party_privacy_extra:"No se puede desactivar, ya que es la funcionalidad principal de Saladict.",permissions:{success:"Permiso solicitado",cancel_success:"Permiso cancelado",failed:"Solitud de permiso fallida",cancelled:"Solicitud de permiso cancelada por el usuario",missing:'Falta el permiso "{{permission}}". Concederlo o desactivar las funciones relacionadas.',clipboardRead:"Leer portapapeles",clipboardRead_help:"Este permiso es necesario cuando la precarga del portapapeles está activada para el panel emergente o el panel de búsqueda rápida.",clipboardWrite:"Escribir en el portapapeles",clipboardWrite_help:"Este permiso es necesario cuando se utilizan los menús de la barra de títulos para copiar texto de origen/destino del traductor automático."},unsupportedFeatures:{ff:'La característica "{{feature}}" no es compatible con Firefox.'}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/95.545ec1f2.js b/plugins/saladict-ztools/ext-saladic/assets/95.545ec1f2.js deleted file mode 100644 index fe4bbea7..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/95.545ec1f2.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[95],{1328:function(e,t,a){"use strict";var l=a(0),i=a.n(l);t.a=e=>{const{title:t,className:a,children:l,...c}=e;return i.a.createElement("div",{className:"entryBox-Wrap"+(a?" "+a:""),...c},i.a.createElement("section",{className:"entryBox"},i.a.createElement("h1",{className:"entryBox-Title"},t),i.a.createElement("div",null,l)))}},655:function(e,t,a){"use strict";a.r(t),a.d(t,"DictMojidict",(function(){return s}));var l=a(0),i=a.n(l),c=a(119),r=a(1328),n=a(1);const s=({result:e})=>i.a.createElement(i.a.Fragment,null,e.word&&i.a.createElement("div",null,i.a.createElement("h1",null,e.word.spell),i.a.createElement("span",null,e.word.pron)," ",i.a.createElement(c.c,{src:e.word.tts||(()=>{var t;return n.a.send({type:"DICT_ENGINE_METHOD",payload:{id:"mojidict",method:"getTTS",args:[null===(t=e.word)||void 0===t?void 0:t.tarId,102]}})})})),e.details&&e.details.map(e=>i.a.createElement(r.a,{key:e.title,title:e.title},e.subdetails&&i.a.createElement("ul",{className:"dictMojidict-List"},e.subdetails.map(e=>i.a.createElement("li",{key:e.title,className:"dictMojidict-ListItem_Disc"},i.a.createElement("p",null,e.title),e.examples&&i.a.createElement("ul",{className:"dictMojidict-Sublist"},e.examples.map(e=>i.a.createElement("li",{key:e.title},i.a.createElement("p",{className:"dictMojidict-Word_Title"},e.title,i.a.createElement(c.c,{src:()=>n.a.send({type:"DICT_ENGINE_METHOD",payload:{id:"mojidict",method:"getTTS",args:[e.objectId,103]}})})),i.a.createElement("p",{className:"dictMojidict-Word_Trans"},e.trans))))))))),e.releated&&i.a.createElement(r.a,{title:"関連用語"},i.a.createElement("ul",{className:"dictMojidict-List"},e.releated.map(e=>i.a.createElement("li",{key:e.title},i.a.createElement("p",{className:"dictMojidict-Word_Title"},e.title),i.a.createElement("p",{className:"dictMojidict-Word_Trans"},e.excerpt))))));t.default=s}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/95.a811d8f0.js b/plugins/saladict-ztools/ext-saladic/assets/95.a811d8f0.js new file mode 100644 index 00000000..0a054f16 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/95.a811d8f0.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[95],{423:function(e,a,t){"use strict";t.r(a),t.d(a,"locale",(function(){return n}));const n={title:"Panel de acciones del navegador de Saladict",app_active_title:"Activar el traductor en línea",app_temp_active_title:"Desactivación temporal de la página",instant_capture_pinned:" (fijado) ",instant_capture_title:"Activar captura instantánea",notebook_added:"Añadido",notebook_empty:"No se ha encontrado ninguna selección en la página actual",notebook_error:"No se puede añadir el texto seleccionado al bloc de notas",page_no_response:"La pagina no responde",qrcode_title:"Qrcode de la página"}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/96.34b2002e.js b/plugins/saladict-ztools/ext-saladic/assets/96.34b2002e.js new file mode 100644 index 00000000..724135f2 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/96.34b2002e.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[96],{424:function(e,t,a){"use strict";a.r(t),a.d(t,"locale",(function(){return o}));const o={title:{history:"Historial de búsqueda de Saladict",notebook:"Bloc de notas Saladict"},localonly:"Solo local",column:{add:"Añadir",date:"Fecha",edit:"Editar",note:"Nota",source:"Fuente",trans:"Traducción",word:"Palabra"},delete:{title:"Eliminar",all:"Eliminar todo",confirm:". ¿Desea eliminarlo?",page:"Eliminar página",selected:"Eliminar seleccionado"},export:{title:"Exportar",all:"Exportar todo",description:"Exportar a un archivo de texto",explain:"Cómo exportar a ANKI y otras herramientas",gencontent:"Generar contenido",linebreak:{default:"Mantener los saltos de línea por defecto",n:"sustituir los saltos de línea por \\n",br:"sustituir los saltos de línea por <br>",p:"sustituir los saltos de línea por <p>",space:"sustituir los saltos de línea por espacios"},page:"Exportar página",placeholder:"Marcador",htmlescape:{title:"Caracteres HTML de escape en las notas",text:"Escape HTML"},selected:"Exportar seleccionado"},filterWord:{chs:"Chino",eng:"Inglés",word:"Palabra",phrase:"Frase"},wordCount:{selected:"{{count}} elemento seleccionado",selected_plural:"{{count}} elemento seleccionado",total:"{{count}} elemento total",total_plural:"{{count}} elemento total"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/96.b9c06d9d.js b/plugins/saladict-ztools/ext-saladic/assets/96.b9c06d9d.js deleted file mode 100644 index 40b13390..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/96.b9c06d9d.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[96],{1328:function(e,t,a){"use strict";var n=a(0),l=a.n(n);t.a=e=>{const{title:t,className:a,children:n,...r}=e;return l.a.createElement("div",{className:"entryBox-Wrap"+(a?" "+a:""),...r},l.a.createElement("section",{className:"entryBox"},l.a.createElement("h1",{className:"entryBox-Title"},t),l.a.createElement("div",null,n)))}},663:function(e,t,a){"use strict";a.r(t),a.d(t,"DictWeblio",(function(){return c}));var n=a(0),l=a.n(n),r=a(1328);const c=({result:e})=>l.a.createElement("div",{className:"dictWeblio-Container"},e.map(({title:e,def:t})=>l.a.createElement(r.a,{key:e,className:"dictWeblio-Entry",title:l.a.createElement("span",{dangerouslySetInnerHTML:{__html:e}})},l.a.createElement("div",{dangerouslySetInnerHTML:{__html:t}}))));t.default=c}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/97.0ea8a103.js b/plugins/saladict-ztools/ext-saladic/assets/97.0ea8a103.js new file mode 100644 index 00000000..bb9d8615 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/97.0ea8a103.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[97],{425:function(t,n,o){"use strict";o.r(n),o.d(n,"locale",(function(){return c}));const c={app:{off:"सलाडिक्ट असक्षम। (द्रुत खोज प्यानल अझै उपलब्ध छ)",tempOff:"हालको ट्याबमा सलाडिक्ट असक्षम पारियो। (द्रुत खोज प्यानल अझै उपलब्ध छ)",unsupported:"हालको ट्याबका लागि एम्बेडेड सलाडिक प्यानल असमर्थित छ। यसको सट्टा स्ट्यान्डअलोन सलाडिक्ट प्यानल प्रयोग गर्नुहोस्।"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/97.cf33ff90.js b/plugins/saladict-ztools/ext-saladic/assets/97.cf33ff90.js deleted file mode 100644 index 0f1b8715..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/97.cf33ff90.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[97],{1328:function(e,t,n){"use strict";var a=n(0),l=n.n(a);t.a=e=>{const{title:t,className:n,children:a,...r}=e;return l.a.createElement("div",{className:"entryBox-Wrap"+(n?" "+n:""),...r},l.a.createElement("section",{className:"entryBox"},l.a.createElement("h1",{className:"entryBox-Title"},t),l.a.createElement("div",null,a)))}},664:function(e,t,n){"use strict";n.r(t),n.d(t,"DictWeblioejje",(function(){return c}));var a=n(0),l=n.n(a),r=n(1328);const c=({result:e})=>l.a.createElement("div",null,e.map((e,t)=>e.title?l.a.createElement(r.a,{key:e.title+t,title:e.title},l.a.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}})):l.a.createElement("div",{key:t,className:"dictWeblioejje-Box",dangerouslySetInnerHTML:{__html:e.content}})));t.default=c}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/98.4748d3cf.js b/plugins/saladict-ztools/ext-saladic/assets/98.4748d3cf.js new file mode 100644 index 00000000..51afabdf --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/98.4748d3cf.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[98],{426:function(e,n,t){"use strict";t.r(n),t.d(n,"locale",(function(){return a}));const a={add:"थप्नुहोस्",delete:"हटाउनुहोस्",save:"बचत गर्नुहोस्",cancel:"रद्द गर्नुहोस्",edit:"सम्पादन",sort:"क्रमबद्ध",rename:"पुनःनामकरण",confirm:"पुष्टि गर्नुहोस्",changes_confirm:"परिवर्तनहरू बचत गरिएका छैनन्। जे भए पनि बन्द?",delete_confirm:"वस्तु पूर्ण रूपमा मेटाउने",max:"अधिकतम",min:"न्यूनतम",name:"नाम",none:"खाली",enable:"सक्षम गर्नुहोस्",enabled:"सक्षम गरिएको",disabled:"असक्षम गरिएको",blacklist:"कालो सूची",whitelist:"सेतो सूची",import:"आयात गर्नुहोस्",export:"निर्यात गर्नुहोस्",lang:{chinese:"चिनियाँ",chs:"चिनियाँ",deutsch:"डेउस्च",eng:"अंग्रेजी",english:"अंग्रेजी",french:"फ्रान्सेली",japanese:"जापानी",korean:"कोरियाली",matchAll:"सबै अक्षर मिलाउनुहोस्",minor:"झिनो",others:"अन्य",spanish:"स्पेनिस"},unit:{mins:"मिनेट",ms:"मिसे",s:"सेकेन्ड",word:"शब्द"},note:{word:"शब्द",trans:"अनुवाद",note:"टिप्पणी",context:"सन्दर्भ",contextCloze:"सन्दर्भ क्लोज",date:"मिति",srcTitle:"स्रोत शीर्षक",srcLink:"स्रोत लिंक",srcFavicon:"स्रोत फेभिकन"},profile:{daily:"दैनिक मोड",sentence:"वाक्य मोड",default:"पूर्वनिर्धारित मोड",scholar:"विद्वान मोड",translation:"अनुवाद मोड",nihongo:"जापानी मोड"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/98.6e5f211b.js b/plugins/saladict-ztools/ext-saladic/assets/98.6e5f211b.js deleted file mode 100644 index 78ad20af..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/98.6e5f211b.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[98],{1328:function(e,t,n){"use strict";var a=n(0),l=n.n(a);t.a=e=>{const{title:t,className:n,children:a,...r}=e;return l.a.createElement("div",{className:"entryBox-Wrap"+(n?" "+n:""),...r},l.a.createElement("section",{className:"entryBox"},l.a.createElement("h1",{className:"entryBox-Title"},t),l.a.createElement("div",null,a)))}},669:function(e,t,n){"use strict";n.r(t),n.d(t,"DictZdic",(function(){return c}));var a=n(0),l=n.n(a),r=n(1328);const c=({result:e})=>l.a.createElement("div",null,e.map(e=>l.a.createElement(r.a,{title:e.title,key:e.title},l.a.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}}))));t.default=c}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/99.938527be.js b/plugins/saladict-ztools/ext-saladic/assets/99.938527be.js new file mode 100644 index 00000000..22f4e3b0 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/99.938527be.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[99],{427:function(t,e,o){"use strict";o.r(e),o.d(e,"locale",(function(){return n}));const n={chooseLang:"अर्को भाषा छान्नुहोस्",standalone:"सलाडिक्ट स्ट्यान्डअलोन प्यानल",fetchLangList:"पूर्ण भाषा सूची तान्नुहोस्",transContext:"पुनः अनुवाद गर्नुहोस्",neverShow:"देखाउन रोक्नुहोस्",fromSaladict:"सलाडिक्ट प्यानलबाट",tip:{historyBack:"अघिल्लो खोज इतिहास",historyNext:"पछिल्लो खोज इतिहास",searchText:"पाठ खोज्नुहोस्",openOptions:"विकल्प खोल्नुहोस्",addToNotebook:"नोटबुकमा जोड्नुहोस्। नोटबुक खोल्न राइट क्लिक गर्नुहोस्",openNotebook:"नोटबुक खोल्नुहोस्",openHistory:"इतिहास खोल्नुहोस्",shareImg:"तस्विर रूपमा साझा गर्नुहोस्",pinPanel:"प्यानल पिन गर्नुहोस्",closePanel:"प्यानल बन्द गर्नुहोस्",sidebar:"साइडबार मोडमा स्विच गर्नुहोस्। दायाँ तर्फ दायाँ क्लिक गर्नुहोस्।",focusPanel:"खोज गर्दा प्यानलले फोकस गर्ने",unfocusPanel:"खोज गर्दा प्यानलले फोकस नगर्ने"},wordEditor:{title:"नोटबुकमा जोड्नुहोस्",wordCardsTitle:"नोटबुकबाट अन्य परिणामहरू",deleteConfirm:"नोटबुकबाट हटाउनुहोस्?",closeConfirm:"परिवर्तनहरू सुरक्षित हुँदैनन्। के तपाईँ बन्द गर्न चाहानुहुन्छ?",chooseCtxTitle:"अनुवाद गरिएको परिणामहरू छान्नुहोस्",ctxHelp:"अनुवाद छान्न र एन्की तालिका उत्पन्न गर्न सलाडिकलाई निर्देशन गर्न यदि तपाईँले [:: xxx ::] र --------------- ढाँचा राख्न चाहानुहुन्छ भने।"},machineTrans:{switch:"भाषा बदल्नुहोस्",sl:"स्रोत भाषा",tl:"लक्षित भाषा",auto:"भाषा पत्ता लगाउनुहोस्",stext:"सक्कल",showSl:"सोर्स देखाउनुहोस्",copySrc:"स्रोत कपि गर्नुहोस्",copyTrans:"अनुवाद कपि गर्नुहोस्",login:"कृपया {एसेस टोकन्} प्रदान गर्नुहोस्।",dictAccount:"एसेस टोकन्"},manualVerification:{title:"म्यानुअल प्रमाणीकरण आवश्यक छ",message:"मूल शब्दकोश पृष्ठ खोल्नुहोस् र मानव प्रमाणीकरण पूरा गर्नुहोस्, त्यसपछि Saladict मा फेरि खोज्नुहोस्।",openPage:"शब्दकोश पृष्ठ खोल्नुहोस्"},updateAnki:{title:"एन्कीमा अद्यावधिक गर्नुहोस्",success:"शब्द एन्कीमा सफलतापूर्वक अद्यावधिक गरियो।",failed:"शब्द एन्कीमा अद्यावधिक गर्न असफल भयो।"}}}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/99.bcbd4512.js b/plugins/saladict-ztools/ext-saladic/assets/99.bcbd4512.js deleted file mode 100644 index 027efe76..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/99.bcbd4512.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[99],{1327:function(e,a,t){"use strict";t.d(a,"a",(function(){return h}));var n=t(0),r=t.n(n),s=t(182),c=t(119),l=t(1),u=t(9);const i=new Set(["ar","ara","az","fa","he","iw","ku","ug","ur"]),o=r.a.memo(({source:e,lang:a})=>r.a.createElement("div",{className:"MachineTrans-Lines"},r.a.createElement(c.c,{src:e.tts}),e.paragraphs.map((e,t)=>r.a.createElement("p",{key:t,className:"MachineTrans-lang-"+a},e)))),m=r.a.memo(({source:e,lang:a})=>{const[t,s]=Object(n.useState)(!1),l=Object(n.useCallback)(()=>s(!1),[s]),u=Object(n.useRef)(null);return Object(n.useLayoutEffect)(()=>{if(t||!u.current)return;if(u.current.querySelectorAll("p").length>1)return void s(!0);const e=u.current.querySelector("p span");e&&e.getClientRects().length>1&&s(!0)},[]),r.a.createElement("div",{ref:u,className:"MachineTrans-Lines"},r.a.createElement(c.c,{src:e.tts}),t?r.a.createElement("div",{className:"MachineTrans-Lines-collapse MachineTrans-lang-"+a},r.a.createElement("button",{onClick:l},e.paragraphs.join(" "))):e.paragraphs.map((e,t)=>r.a.createElement("p",{key:t,className:"MachineTrans-lang-"+a},r.a.createElement("span",null,e))))}),h=e=>{const{trans:a,searchText:t,tl:c,sl:h}=e.result,[p,d]=Object(n.useState)(e.result.slInitial);return Object(s.a)(e.catalogSelect$,({key:a,value:t})=>{switch(a){case"showSl":d("full");break;case"sl":case"tl":e.searchText({id:e.result.id,payload:{sl:h,tl:c,[a]:t}});break;case"copySrc":l.a.send({type:"SET_CLIPBOARD",payload:e.result.searchText.paragraphs.join("\n")});break;case"copyTrans":l.a.send({type:"SET_CLIPBOARD",payload:e.result.trans.paragraphs.join("\n")})}}),e.result.requireCredential?function(){const{t:e}=Object(u.e)("content");return r.a.createElement(u.c,{message:e("machineTrans.login")},r.a.createElement("a",{href:browser.runtime.getURL("options.html?menuselected=DictAuths"),target:"_blank",rel:"nofollow noopener noreferrer"},e("machineTrans.dictAccount")))}():r.a.createElement("div",{className:i.has(h)||i.has(c)?"MachineTrans-has-rtl":void 0},r.a.createElement("div",{className:"MachineTrans-Text"},"full"===p?r.a.createElement(o,{source:t,lang:h}):"collapse"===p?r.a.createElement(m,{source:t,lang:h}):null,r.a.createElement(o,{source:a,lang:c})))}},638:function(e,a,t){"use strict";t.r(a);var n=t(1327);t.d(a,"default",(function(){return n.a}))}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/antd.2e6b6091.js b/plugins/saladict-ztools/ext-saladic/assets/antd.2e6b6091.js new file mode 100644 index 00000000..7d5bab15 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/antd.2e6b6091.js @@ -0,0 +1,76 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[2,6,19,20,21],[,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return c})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return s})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return f})),n.d(t,"__createBinding",(function(){return p})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return v})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return y})),n.d(t,"__await",(function(){return b})),n.d(t,"__asyncGenerator",(function(){return g})),n.d(t,"__asyncDelegator",(function(){return O})),n.d(t,"__asyncValues",(function(){return w})),n.d(t,"__makeTemplateObject",(function(){return x})),n.d(t,"__importStar",(function(){return j})),n.d(t,"__importDefault",(function(){return E})),n.d(t,"__classPrivateFieldGet",(function(){return S})),n.d(t,"__classPrivateFieldSet",(function(){return _})); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function c(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function p(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function d(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||c(e,t)}))})}function c(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,s):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){c("next",e)}function s(e){c("throw",e)}function l(e,t){e(t),i.shift(),i.length&&c(i[0][0],i[0][1])}}function O(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function _(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){var r; +/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(4),o=n(46),i=n(82),a=n(14),c=n(72),u=n(24),s=n(52),l=function(e){function t(n,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.a;break;case 1:if(!n){a.destination=i.a;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new f(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new f(a,n,r,o)}return a}return r.__extends(t,e),t.prototype[c.a]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.a),f=function(e){function t(t,n,r,a){var c,u=e.call(this)||this;u._parentSubscriber=t;var s=u;return Object(o.a)(n)?c=n:n&&(c=n.next,r=n.error,a=n.complete,n!==i.a&&(s=Object.create(n),Object(o.a)(s.unsubscribe)&&u.add(s.unsubscribe.bind(s)),s.unsubscribe=u.unsubscribe.bind(u))),u._context=s,u._next=c,u._error=r,u._complete=a,u}return r.__extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(s.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(s.a)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw e;Object(s.a)(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(Object(s.a)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(7);var o=n(72),i=n(82);var a=n(51),c=n(120);function u(e){return 0===e.length?c.a:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var s=n(24),l=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var a=this.operator,c=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new r.a(e,t,n):new r.a(i.a)}(e,t,n);if(a?c.add(a.call(c,this.source)):c.add(this.source||s.a.useDeprecatedSynchronousErrorHandling&&!c.syncErrorThrowable?this._subscribe(c):this._trySubscribe(c)),s.a.useDeprecatedSynchronousErrorHandling&&c.syncErrorThrowable&&(c.syncErrorThrowable=!1,c.syncErrorThrown))throw c.syncErrorValue;return c},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){s.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,n=t.closed,o=t.destination,i=t.isStopped;if(n||i)return!1;e=o&&o instanceof r.a?o:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=f(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[a.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:u(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=f(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function f(e){if(e||(e=s.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4),o=n(7);function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.project,this.thisArg))},e}(),c=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.a)},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(60),o=n(119),i=n(46),a=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),c=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this._parentOrParents,c=this._unsubscribe,s=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var l=0;l<n.length;++l){n[l].remove(this)}if(Object(i.a)(c))try{c.call(this)}catch(e){t=e instanceof a?u(e.errors):[e]}if(Object(r.a)(s)){l=-1;for(var f=s.length;++l<f;){var p=s[l];if(Object(o.a)(p))try{p.unsubscribe()}catch(e){t=t||[],e instanceof a?t=t.concat(u(e.errors)):t.push(e)}}}if(t)throw new a(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof e){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function u(e){return e.reduce((function(e,t){return e.concat(t instanceof a?t.errors:t)}),[])}},,function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}t.a=function(e,t){var n;void 0===t&&(t=r);var o,i=[],a=!1;return function(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return a&&n===this&&t(r,i)||(o=e.apply(this,r),a=!0,n=this,i=r),o}}},,function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},,,,function(e,t,n){var r=n(207);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return H})),n.d(t,"d",(function(){return q})),n.d(t,"e",(function(){return X})),n.d(t,"f",(function(){return U})),n.d(t,"c",(function(){return _}));var r=n(0),o=n.n(r),i=(n(26),o.a.createContext(null));var a=function(e){e()},c={notify:function(){}};function u(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var s=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=c,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=u())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=c)},e}();var l=function(e){var t=e.store,n=e.context,a=e.children,c=Object(r.useMemo)((function(){var e=new s(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),u=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=c.subscription;return e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[c,u]);var l=n||i;return o.a.createElement(l.Provider,{value:c},a)},f=n(18),p=n(61),d=n(176),h=n.n(d),v=n(158),m="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,y=[],b=[null,null];function g(e,t){var n=e[1];return[t.payload,n+1]}function O(e,t,n){m((function(){return e.apply(void 0,t)}),n)}function w(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function x(e,t,n,r,o,i,a,c,u,s){if(e){var l=!1,f=null,p=function(){if(!l){var e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||u():(i.current=e,c.current=e,a.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var j=function(){return[null,0]};function E(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,c=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,u=n.methodName,l=void 0===u?"connectAdvanced":u,d=n.renderCountProp,m=void 0===d?void 0:d,E=n.shouldHandleStateChanges,S=void 0===E||E,_=n.storeKey,C=void 0===_?"store":_,P=(n.withRef,n.forwardRef),k=void 0!==P&&P,M=n.context,N=void 0===M?i:M,T=Object(p.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),A=N;return function(t){var n=t.displayName||t.name||"Component",i=c(n),a=Object(f.a)({},T,{getDisplayName:c,methodName:l,renderCountProp:m,shouldHandleStateChanges:S,storeKey:C,displayName:i,wrappedComponentName:n,WrappedComponent:t}),u=T.pure;var d=u?r.useMemo:function(e){return e()};function E(n){var i=Object(r.useMemo)((function(){var e=n.forwardedRef,t=Object(p.a)(n,["forwardedRef"]);return[n.context,e,t]}),[n]),c=i[0],u=i[1],l=i[2],h=Object(r.useMemo)((function(){return c&&c.Consumer&&Object(v.isContextConsumer)(o.a.createElement(c.Consumer,null))?c:A}),[c,A]),m=Object(r.useContext)(h),E=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(m)&&Boolean(m.store);var _=E?n.store:m.store,C=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(_)}),[_]),P=Object(r.useMemo)((function(){if(!S)return b;var e=new s(_,E?null:m.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[_,E,m]),k=P[0],M=P[1],N=Object(r.useMemo)((function(){return E?m:Object(f.a)({},m,{subscription:k})}),[E,m,k]),T=Object(r.useReducer)(g,y,j),R=T[0][0],D=T[1];if(R&&R.error)throw R.error;var I=Object(r.useRef)(),L=Object(r.useRef)(l),F=Object(r.useRef)(),z=Object(r.useRef)(!1),B=d((function(){return F.current&&l===L.current?F.current:C(_.getState(),l)}),[_,R,l]);O(w,[L,I,z,l,B,F,M]),O(x,[S,_,k,C,L,I,z,F,M,D],[_,k,C]);var H=Object(r.useMemo)((function(){return o.a.createElement(t,Object(f.a)({},B,{ref:u}))}),[u,t,B]);return Object(r.useMemo)((function(){return S?o.a.createElement(h.Provider,{value:N},H):H}),[h,H,N])}var _=u?o.a.memo(E):E;if(_.WrappedComponent=t,_.displayName=i,k){var P=o.a.forwardRef((function(e,t){return o.a.createElement(_,Object(f.a)({},e,{forwardedRef:t}))}));return P.displayName=i,P.WrappedComponent=t,h()(P,t)}return h()(_,t)}}function S(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function _(e,t){if(S(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!S(e[n[o]],t[n[o]]))return!1;return!0}var C=n(104);function P(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function k(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function M(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=k(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=k(o),o=r(t,n)),o},r}}var N=[function(e){return"function"==typeof e?M(e):void 0},function(e){return e?void 0:P((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?P((function(t){return Object(C.b)(e,t)})):void 0}];var T=[function(e){return"function"==typeof e?M(e):void 0},function(e){return e?void 0:P((function(){return{}}))}];function A(e,t,n){return Object(f.a)({},n,{},e,{},t)}var R=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,c){var u=e(t,n,c);return a?o&&i(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return A}}];function D(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function I(e,t,n,r,o){var i,a,c,u,s,l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1;function h(o,d){var h,v,m=!f(d,a),y=!l(o,i);return i=o,a=d,m&&y?(c=e(i,a),t.dependsOnOwnProps&&(u=t(r,a)),s=n(c,u,a)):m?(e.dependsOnOwnProps&&(c=e(i,a)),t.dependsOnOwnProps&&(u=t(r,a)),s=n(c,u,a)):y?(h=e(i,a),v=!p(h,c),c=h,v&&(s=n(c,u,a)),s):s}return function(o,l){return d?h(o,l):(c=e(i=o,a=l),u=t(r,a),s=n(c,u,a),d=!0,s)}}function L(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Object(p.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),c=r(e,i),u=o(e,i);return(i.pure?I:D)(a,c,u,e,i)}function F(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function z(e,t){return e===t}function B(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?E:n,o=t.mapStateToPropsFactories,i=void 0===o?T:o,a=t.mapDispatchToPropsFactories,c=void 0===a?N:a,u=t.mergePropsFactories,s=void 0===u?R:u,l=t.selectorFactory,d=void 0===l?L:l;return function(e,t,n,o){void 0===o&&(o={});var a=o,u=a.pure,l=void 0===u||u,h=a.areStatesEqual,v=void 0===h?z:h,m=a.areOwnPropsEqual,y=void 0===m?_:m,b=a.areStatePropsEqual,g=void 0===b?_:b,O=a.areMergedPropsEqual,w=void 0===O?_:O,x=Object(p.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),j=F(e,i,"mapStateToProps"),E=F(t,c,"mapDispatchToProps"),S=F(n,s,"mergeProps");return r(d,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:j,initMapDispatchToProps:E,initMergeProps:S,pure:l,areStatesEqual:v,areOwnPropsEqual:y,areStatePropsEqual:g,areMergedPropsEqual:w},x))}}var H=B();function K(){return Object(r.useContext)(i)}function V(e){void 0===e&&(e=i);var t=e===i?K:function(){return Object(r.useContext)(e)};return function(){return t().store}}var U=V();function W(e){void 0===e&&(e=i);var t=e===i?U:V(e);return function(){return t().dispatch}}var q=W(),G=function(e,t){return e===t};function $(e){void 0===e&&(e=i);var t=e===i?K:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=G);var o=t();return function(e,t,n,o){var i,a=Object(r.useReducer)((function(e){return e+1}),0)[1],c=Object(r.useMemo)((function(){return new s(n,o)}),[n,o]),u=Object(r.useRef)(),l=Object(r.useRef)(),f=Object(r.useRef)();try{i=e!==l.current||u.current?e(n.getState()):f.current}catch(e){throw u.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),e}return m((function(){l.current=e,f.current=i,u.current=void 0})),m((function(){function e(){try{var e=l.current(n.getState());if(t(e,f.current))return;f.current=e}catch(e){u.current=e}a({})}return c.onStateChange=e,c.trySubscribe(),e(),function(){return c.tryUnsubscribe()}}),[n,c]),i}(e,n,o.store,o.subscription)}}var Y,X=$(),Z=n(21);Y=Z.unstable_batchedUpdates,a=Y},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(450)()},function(e,t,n){var r=n(345);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(219);var o=n(144),i=n(220);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return l}));var r=n(0),o=n(95),i=n(141);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function s(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function l(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(133);var o=n(218),i=n(144);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||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(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(99),o=n(132),i=n(8);function a(e,t,n,a,c){if(void 0===c&&(c=new r.a(e,n,a)),!c.closed)return t instanceof i.a?t.subscribe(c):Object(o.a)(t)(c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(4),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n(7).a)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4),o=n(7);function i(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.predicate,this.thisArg))},e}(),c=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return r.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(o.a)},function(e,t,n){var r=n(590);function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}},function(e,t,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.a=r},,,function(e,t,n){"use strict";function r(e,t=window){if(e){const t=e.toString().trim();if(t)return t}const n=t.document.activeElement;if(n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName)){const e=n;return e.value.slice(e.selectionStart||0,e.selectionEnd||0)}return""}function o(e=window){return r(e.getSelection(),e)}function i(e){if(!e||e.rangeCount<=0)return"";const t=e.toString();if(!t.trim())return"";const n=e.getRangeAt(0);return n?(function(e){if(e){const t=/[.?!。?!…]/,n=/[^\s.?!。?!…]/;for(let r=e.length-1;r>=0;r--){const o=e[r];if(t.test(o)){if("."===o&&n.test(e[r+1]))continue;return e.slice(r+1)}}}return e}(c(n))+t+function(e){const t=/^((\.(?![\s.?!。?!…]))|[^.?!。?!…])*([.?!。?!…]){0,3}/.exec(e);return t?t[0]:""}(u(n))).replace(/\s+/g," ").trim():""}function a(e=window){return i(e.getSelection())}function c(e){let t=e.startContainer,n="";switch(t.nodeType){case Node.TEXT_NODE:{const r=t.textContent;r&&(n=r.slice(0,e.startOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:t=t.childNodes[e.startOffset]}for(let e=t;l(e);e=e.parentElement)for(let t=e.previousSibling;l(t);t=t.previousSibling)n=s(t)+n;return n}function u(e){let t=e.endContainer,n="";switch(t.nodeType){case Node.TEXT_NODE:{const r=t.textContent;r&&(n=r.slice(e.endOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:t=t.childNodes[e.endOffset-1]}for(let e=t;l(e);e=e.parentElement)for(let t=e.nextSibling;l(t);t=t.nextSibling)n+=s(t);return n}function s(e){return e.nodeType===Node.TEXT_NODE?e.nodeValue||"":e.nodeType===Node.ELEMENT_NODE&&e.innerText||""}function l(e){if(!e)return!1;switch(e.nodeType){case Node.TEXT_NODE:case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:return!0;case Node.ELEMENT_NODE:switch(e.tagName){case"A":case"ABBR":case"B":case"BDI":case"BDO":case"BR":case"CITE":case"CODE":case"DATA":case"DFN":case"EM":case"I":case"KBD":case"MARK":case"Q":case"RP":case"RT":case"RTC":case"RUBY":case"S":case"SAMP":case"SMALL":case"SPAN":case"STRONG":case"SUB":case"SUP":case"TIME":case"U":case"VAR":case"WBR":return!0}}return!1}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(482)},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){var r;e.exports=(r=r||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},i=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=o.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(i=0;i<o;i+=4)t[r+i>>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){t=t;var n=987654321,r=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},i=0;i<t;i+=4){var c=o(4294967296*(n||e.random()));n=987654071*c(),r.push(4294967296*c()|0)}return new a.init(r,t)}}),c=r.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},s=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(s.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return s.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,c=o/(4*i),u=(c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0))*i,s=e.min(4*u,o);if(u){for(var l=0;l<u;l+=i)this._doProcessBlock(r,l);var f=r.splice(0,u);n.sigBytes-=s}return new a.init(f,s)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),p=(o.Hasher=f.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math),r)},function(e,t,n){"use strict";var r=n(245),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function c(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isPlainObject:u,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:s,isStream:function(e){return c(e)&&s(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){u(t[r])&&u(n)?t[r]=e(t[r],n):u(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(e,t,n){"use strict";function r(e){setTimeout((function(){throw e}),0)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(75),o=n(34);function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},,function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(8),o=n(60),i=n(46),a=n(10);function c(e,t,n,u){return Object(i.a)(n)&&(u=n,n=void 0),u?c(e,t,n).pipe(Object(a.a)((function(e){return Object(o.a)(e)?u.apply(void 0,e):u(e)}))):new r.a((function(r){!function e(t,n,r,o,i){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var c=t;t.addEventListener(n,r,i),a=function(){return c.removeEventListener(n,r,i)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var u=t;t.on(n,r),a=function(){return u.off(n,r)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var s=t;t.addListener(n,r),a=function(){return s.removeListener(n,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,f=t.length;l<f;l++)e(t[l],n,r,o,i)}o.add(a)}(e,t,(function(e){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(e)}),r,n)}))}},function(e,t,n){"use strict";var r=n(0),o=n(89),i=n(5),a=n.n(i),c=n(676),u=n(196),s=n(359),l=n.n(s),f=n(180),p=n.n(f),d=n(600),h=n.n(d),v=n(224),m=n.n(v),y=n(294),b=n.n(y),g=n(630),O=n.n(g);function w(e){var t=e.suffixIcon,n=e.clearIcon,o=e.menuItemSelectedIcon,i=e.removeIcon,a=e.loading,c=e.multiple,u=e.prefixCls,s=n;n||(s=r.createElement(b.a,null));var f=null;if(void 0!==t)f=t;else if(a)f=r.createElement(p.a,{spin:!0});else{var d="".concat(u,"-suffix");f=function(e){var t=e.open,n=e.showSearch;return t&&n?r.createElement(O.a,{className:d}):r.createElement(l.a,{className:d})}}return{clearIcon:s,suffixIcon:f,itemIcon:void 0!==o?o:c?r.createElement(h.a,null):null,removeIcon:void 0!==i?i:r.createElement(m.a,null)}}var x=n(155);function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==j(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(l,e);var t,n,i,s=k(l);function l(){var e;return _(this,l),(e=s.apply(this,arguments)).selectRef=r.createRef(),e.focus=function(){e.selectRef.current&&e.selectRef.current.focus()},e.blur=function(){e.selectRef.current&&e.selectRef.current.blur()},e.getMode=function(){var t=e.props.mode;if("combobox"!==t)return t===l.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":t},e.renderSelect=function(t){var n,i=t.getPopupContainer,u=t.getPrefixCls,s=t.renderEmpty,l=t.direction,f=t.virtual,p=t.dropdownMatchSelectWidth,d=e.props,h=d.prefixCls,v=d.notFoundContent,m=d.className,y=d.size,b=d.listHeight,g=void 0===b?256:b,O=d.listItemHeight,j=void 0===O?24:O,_=d.getPopupContainer,C=d.dropdownClassName,P=d.bordered,k=u("select",h),M=e.getMode(),N="multiple"===M||"tags"===M;n=void 0!==v?v:"combobox"===M?null:s("Select");var T=w(S(S({},e.props),{multiple:N,prefixCls:k})),A=T.suffixIcon,R=T.itemIcon,D=T.removeIcon,I=T.clearIcon,L=Object(o.default)(e.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),F=a()(C,E({},"".concat(k,"-dropdown-").concat(l),"rtl"===l));return r.createElement(x.b.Consumer,null,(function(t){var o,u=y||t,s=a()(m,(E(o={},"".concat(k,"-lg"),"large"===u),E(o,"".concat(k,"-sm"),"small"===u),E(o,"".concat(k,"-rtl"),"rtl"===l),E(o,"".concat(k,"-borderless"),!P),o));return r.createElement(c.default,S({ref:e.selectRef,virtual:f,dropdownMatchSelectWidth:p},L,{listHeight:g,listItemHeight:j,mode:M,prefixCls:k,direction:l,inputIcon:A,menuItemSelectedIcon:R,removeIcon:D,clearIcon:I,notFoundContent:n,className:s,getPopupContainer:_||i,dropdownClassName:F}))}))},e}return t=l,(n=[{key:"render",value:function(){return r.createElement(u.a,null,this.renderSelect)}}])&&C(t.prototype,n),i&&C(t,i),l}(r.Component);T.Option=c.Option,T.OptGroup=c.OptGroup,T.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",T.defaultProps={transitionName:"slide-up",choiceTransitionName:"zoom",bordered:!0};t.a=T},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));var r={};function o(e,t){0}function i(e,t){0}function a(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function c(e,t){a(i,e,t)}t.a=function(e,t){a(o,e,t)}},function(e,t,n){var r=n(69),o=n(64);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(204),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(8),o=n(132),i=n(14),a=n(51);var c=n(98),u=n(70);var s=n(131),l=n(129);function f(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[a.a]}(e))return function(e,t){return new r.a((function(n){var r=new i.a;return r.add(t.schedule((function(){var o=e[a.a]();r.add(o.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(Object(s.a)(e))return function(e,t){return new r.a((function(n){var r=new i.a;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(Object(l.a)(e))return Object(c.a)(e,t);if(function(e){return e&&"function"==typeof e[u.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,o=new i.a;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(t.schedule((function(){r=e[u.a](),o.add(t.schedule((function(){if(!n.closed){var e,t;try{var o=r.next();e=o.value,t=o.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}})))}))),o}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function p(e,t){return t?f(e,t):e instanceof r.a?e:new r.a(Object(o.a)(e))}},function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)o(n,r)&&(e[r]=n[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){var t,n,r,o,i,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),o=0,t=0,n=e.length;t<n;t++)i=e[t],a.set(i,o),o+=i.length;return a}},a={arraySet:function(e,t,n,r,o){for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(r)},function(e,t,n){var r=n(123),o=n(312),i=n(313),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",(function(){return o}));var o=r()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},function(e,t,n){"use strict";var r=n(40),o=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(614)),a=o(n(235)),c=o(n(401)),u=r(n(0)),s=o(n(5)),l=o(n(937)),f=n(1068),p=n(737);(0,f.setTwoToneColor)("#1890ff");var d=u.forwardRef((function(e,t){var n=e.className,r=e.icon,o=e.spin,f=e.rotate,d=e.tabIndex,h=e.onClick,v=e.twoToneColor,m=(0,c.default)(e,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),y=(0,s.default)("anticon",(0,a.default)({},"anticon-".concat(r.name),Boolean(r.name)),n),b=(0,s.default)({"anticon-spin":!!o||"loading"===r.name}),g=d;void 0===g&&h&&(g=-1);var O=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,w=(0,p.normalizeTwoToneColors)(v),x=(0,i.default)(w,2),j=x[0],E=x[1];return u.createElement("span",Object.assign({role:"img","aria-label":r.name},m,{ref:t,tabIndex:g,onClick:h,className:y}),u.createElement(l.default,{className:b,icon:r,primaryColor:j,secondaryColor:E,style:O}))}));d.displayName="AntdIcon",d.getTwoToneColor=f.getTwoToneColor,d.setTwoToneColor=f.setTwoToneColor;var h=d;t.default=h},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(61);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){var r=n(277),o=n(308),i=n(319),a=n(56);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(8),o=n(60),i=n(46),a=n(10);function c(e,t,n){return n?c(e,t).pipe(Object(a.a)((function(e){return Object(o.a)(e)?n.apply(void 0,e):n(e)}))):new r.a((function(n){var r,o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)};try{r=e(o)}catch(e){return void n.error(e)}if(Object(i.a)(t))return function(){return t(o,r)}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(24),o=n(52),i={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(o.a)(e)},complete:function(){}}},,function(e,t,n){"use strict";var r=n(634);t.a=r.b},function(e,t,n){"use strict";var r=n(0),o=n(252),i=n(91),a=n(564),c=n(767);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(d,e);var t,n,o,u=p(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),t=u.call(this,e),Object(a.a)(e.locale&&e.locale.Modal),Object(i.a)("internalMark"===e._ANT_MARK__,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),t}return t=d,(n=[{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&Object(a.a)(t&&t.Modal)}},{key:"componentWillUnmount",value:function(){Object(a.a)()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.children;return r.createElement(c.a.Provider,{value:s(s({},t),{exist:!0})},n)}}])&&l(t.prototype,n),o&&l(t,o),d}(r.Component);v.defaultProps={locale:{}};var m=n(296),y=n(196),b=n(155),g=n(142),O=n(167);function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.a=function(e){r.useEffect((function(){e.direction&&(g.a.config({rtl:"rtl"===e.direction}),O.a.config({rtl:"rtl"===e.direction}))}),[e.direction]);var t=function(t){return function(n,r){var o=e.prefixCls;if(r)return r;var i=o||t.getPrefixCls("");return n?"".concat(i,"-").concat(n):i}};return r.createElement(m.a,null,(function(n,i,a){return r.createElement(y.a,null,(function(n){return function(n,i){var a=e.children,c=e.getTargetContainer,u=e.getPopupContainer,s=e.renderEmpty,l=e.csp,f=e.autoInsertSpaceInButton,p=e.form,d=e.input,h=e.locale,m=e.pageHeader,g=e.componentSize,O=e.direction,x=e.space,j=e.virtual,E=e.dropdownMatchSelectWidth,S=w(w({},n),{getPrefixCls:t(n),csp:l,autoInsertSpaceInButton:f,locale:h||i,direction:O,space:x,virtual:j,dropdownMatchSelectWidth:E});c&&(S.getTargetContainer=c),u&&(S.getPopupContainer=u),s&&(S.renderEmpty=s),m&&(S.pageHeader=m),d&&(S.input=d);var _=a,C={};return h&&h.Form&&h.Form.defaultValidateMessages&&(C=h.Form.defaultValidateMessages),p&&p.validateMessages&&(C=w(w({},C),p.validateMessages)),Object.keys(C).length>0&&(_=r.createElement(o.FormProvider,{validateMessages:C},a)),r.createElement(b.a,{size:g},r.createElement(y.b.Provider,{value:S},r.createElement(v,{locale:h||i,_ANT_MARK__:"internalMark"},_)))}(n,a)}))}))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4),o=n(7);function i(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.value))},e}(),c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return r.__extends(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(o.a)},function(e,t,n){"use strict";n.r(t);var r=n(195),o=n.n(r);t.default=function(e,t){for(var n=o()({},e),r=0;r<t.length;r++){delete n[t[r]]}return n}},function(e,t,n){"use strict";var r={};(0,n(68).assign)(r,n(300),n(303),n(202)),e.exports=r},function(e,t,n){"use strict";var r=n(62);t.a=function(e,t,n){Object(r.a)(e,"[antd: ".concat(t,"] ").concat(n))}},,function(e,t,n){var r=n(326),o=n(329);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";var r=n(18),o=n(61),i=n(135);n(26);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var c=n(0),u=n.n(c),s=n(21),l=n.n(s),f=!1,p=u.a.createContext(null),d=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[l.a.findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),u=r?c.appear:c.enter;!e&&!n||f?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.a.findDOMNode(this);t&&!f?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(o.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return u.a.createElement(p.Provider,{value:null},"function"==typeof n?n(e,r):u.a.cloneElement(u.a.Children.only(n),r))},t}(u.a.Component);function h(){}d.contextType=p,d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},d.UNMOUNTED="unmounted",d.EXITED="exited",d.ENTERING="entering",d.ENTERED="entered",d.EXITING="exiting";var v=d,m=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Object(i.a)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&m(e,r),o&&m(e,o),i&&m(e,i)},n.render=function(){var e=this.props,t=(e.classNames,Object(o.a)(e,["classNames"]));return u.a.createElement(v,Object(r.a)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(u.a.Component);y.defaultProps={classNames:""},y.propTypes={};t.a=y},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return f}));var r=n(4),o=n(8),i=n(7),a=n(14),c=n(73),u=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.__extends(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(a.a),s=n(72),l=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r.__extends(t,e),t}(i.a),f=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.__extends(t,e),t.prototype[s.a]=function(){return new l(this)},t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new c.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new c.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new c.a;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new c.a;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new c.a;return this.hasError?(e.error(this.thrownError),a.a.EMPTY):this.isStopped?(e.complete(),a.a.EMPTY):(this.observers.push(e),new u(this,e))},t.prototype.asObservable=function(){var e=new o.a;return e.source=this,e},t.create=function(e,t){return new p(e,t)},t}(o.a),p=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return r.__extends(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.a.EMPTY},t}(f)},function(e,t,n){var r=n(69),o=n(64);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(8),o=n(14);function i(e,t){return new r.a((function(n){var r=new o.a,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(4),o=function(e){function t(t,n,r){var o=e.call(this)||this;return o.parent=t,o.outerValue=n,o.outerIndex=r,o.index=0,o}return r.__extends(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n(7).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(102),o=n(137);function i(){return Object(o.a)(1)}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i()(r.a.apply(void 0,e))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(65),o=n(106),i=n(98);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return Object(r.a)(n)?(e.pop(),Object(i.a)(e,n)):Object(o.a)(e)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return c}));var r=n(238),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function c(e,t,n){var o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(c)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var u=e,s=t,l=[],f=l,p=!1;function d(){f===l&&(f=l.slice())}function h(){if(p)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function v(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(p)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return d(),f.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,d();var n=f.indexOf(e);f.splice(n,1),l=null}}}function m(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,s=u(s,e)}finally{p=!1}for(var t=l=f,n=0;n<t.length;n++){(0,t[n])()}return e}function y(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");u=e,m({type:i.REPLACE})}function b(){var e,t=v;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e}return m({type:i.INIT}),(o={dispatch:m,subscribe:v,getState:h,replaceReducer:y})[r.a]=b,o}function u(e,t){return function(){return t(e.apply(this,arguments))}}function s(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return p({},n,{dispatch:r=d.apply(void 0,i)(n.dispatch)})}}}},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(28),a=n(76),c=n(5),u=n.n(c),s=n(407),l=n(41),f=r.forwardRef((function(e,t){var n,c=e.prefixCls,f=void 0===c?"rc-switch":c,p=e.className,d=e.checked,h=e.defaultChecked,v=e.disabled,m=e.loadingIcon,y=e.checkedChildren,b=e.unCheckedChildren,g=e.onClick,O=e.onChange,w=e.onKeyDown,x=Object(a.a)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),j=Object(s.a)(!1,{value:d,defaultValue:h}),E=Object(i.a)(j,2),S=E[0],_=E[1];function C(e,t){var n=S;return v||(_(n=e),null==O||O(n,t)),n}var P=u()(f,p,(n={},Object(o.a)(n,"".concat(f,"-checked"),S),Object(o.a)(n,"".concat(f,"-disabled"),v),n));return r.createElement("button",Object.assign({},x,{type:"button",role:"switch","aria-checked":S,disabled:v,className:P,ref:t,onKeyDown:function(e){e.which===l.a.LEFT?C(!1,e):e.which===l.a.RIGHT&&C(!0,e),null==w||w(e)},onClick:function(e){var t=C(!S,e);null==g||g(t,e)}}),m,r.createElement("span",{className:"".concat(f,"-inner")},S?y:b))}));f.displayName="Switch";var p=f,d=n(180),h=n.n(d),v=n(790),m=n(196),y=n(155),b=n(91);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},x=r.forwardRef((function(e,t){var n,o=e.prefixCls,i=e.size,a=e.loading,c=e.className,s=void 0===c?"":c,l=e.disabled,f=w(e,["prefixCls","size","loading","className","disabled"]);Object(b.a)("checked"in f||!("value"in f),"Switch","`value` is not a valid prop, do you mean `checked`?");var d=r.useContext(m.b),x=d.getPrefixCls,j=d.direction,E=r.useContext(y.b),S=x("switch",o),_=r.createElement("div",{className:"".concat(S,"-handle")},a&&r.createElement(h.a,{className:"".concat(S,"-loading-icon")})),C=u()(s,(O(n={},"".concat(S,"-small"),"small"===(i||E)),O(n,"".concat(S,"-loading"),a),O(n,"".concat(S,"-rtl"),"rtl"===j),n));return r.createElement(v.a,{insertExtraNode:!0},r.createElement(p,g({},f,{prefixCls:S,className:C,disabled:l||a,ref:t,loadingIcon:_})))}));x.__ANT_SWITCH=!0,x.displayName="Switch";t.a=x},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(8),o=n(130),i=n(98);function a(e,t){return t?Object(i.a)(e,t):new r.a(Object(o.a)(e))}},,function(e,t,n){var r=n(69),o=n(56),i=n(64);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t,n){for(var r=n(1096),o="undefined"==typeof window?global:window,i=["moz","webkit"],a="AnimationFrame",c=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],s=0;!c&&s<i.length;s++)c=o[i[s]+"Request"+a],u=o[i[s]+"Cancel"+a]||o[i[s]+"CancelRequest"+a];if(!c||!u){var l=0,f=0,p=[];c=function(e){if(0===p.length){var t=r(),n=Math.max(0,1e3/60-(t-l));l=n+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return p.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return c.call(o,e)},e.exports.cancel=function(){u.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=c,e.cancelAnimationFrame=u}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n(0),o=r.isValidElement;function i(e,t,n){return o(e)?r.cloneElement(e,"function"==typeof n?n():n):t}function a(e,t){return i(e,e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r,o=n(124),i=n(102),a=n(8);function c(e){var t=e.error;e.subscriber.error(t)}r||(r={});var u=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e,t;switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return e=this.error,t?new a.a((function(n){return t.schedule(c,0,{error:e,subscriber:n})})):new a.a((function(t){return t.error(e)}));case"C":return Object(o.b)()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(8),o=n(65),i=n(137),a=n(106);function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,c=null,u=e[e.length-1];return Object(o.a)(u)?(c=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof u&&(n=e.pop()),null===c&&1===e.length&&e[0]instanceof r.a?e[0]:Object(i.a)(n)(Object(a.a)(e,c))}},function(e,t,n){var r,o,i,a,c,u,s,l,f,p,d,h,v,m,y,b,g,O,w;e.exports=(r=n(49),n(237),void(r.lib.Cipher||(o=r,i=o.lib,a=i.Base,c=i.WordArray,u=i.BufferedBlockAlgorithm,s=o.enc,s.Utf8,l=s.Base64,f=o.algo.EvpKDF,p=i.Cipher=u.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?w:g}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()}),i.StreamCipher=p.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),d=o.mode={},h=i.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),v=d.CBC=function(){var e=h.extend();function t(e,t,n){var r=this._iv;if(r){var o=r;this._iv=void 0}else o=this._prevBlock;for(var i=0;i<n;i++)e[t+i]^=o[i]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o),r.encryptBlock(e,n),this._prevBlock=e.slice(n,n+o)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,i=e.slice(n,n+o);r.decryptBlock(e,n),t.call(this,e,n,o),this._prevBlock=i}}),e}(),m=(o.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,i=[],a=0;a<r;a+=4)i.push(o);var u=c.create(i,r);e.concat(u)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.BlockCipher=p.extend({cfg:p.cfg.extend({mode:v,padding:m}),reset:function(){p.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else r=n.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==r?this._mode.init(this,t&&t.words):(this._mode=r.call(n,this,t&&t.words),this._mode.__creator=r)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4}),y=i.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),b=(o.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=c.create([1398893684,1701076831]).concat(n).concat(t);else r=t;return r.toString(l)},parse:function(e){var t=l.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=c.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return y.create({ciphertext:t,salt:r})}},g=i.SerializableCipher=a.extend({cfg:a.extend({format:b}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),a=o.cfg;return y.create({ciphertext:i,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),O=(o.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=c.random(8));var o=f.create({keySize:t+n}).compute(e,r),i=c.create(o.words.slice(t),4*n);return o.sigBytes=4*t,y.create({key:o,iv:i,salt:r})}},w=i.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:O}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=o.iv;var i=g.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=o.iv,g.decrypt.call(this,e,t,o.key,r)}}))))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(118),o=new(n(117).a)(r.a)},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(151);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4),o=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),i=function(e){function t(n,r){void 0===r&&(r=o.now);var i=e.call(this,n,(function(){return t.delegate&&t.delegate!==i?t.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return r.__extends(t,e),t.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,o):e.prototype.schedule.call(this,n,r,o)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(4),o=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r.__extends(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return r.__extends(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(14).a))},function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(4),o=n(37),i=n(99),a=n(36),c=n(10),u=n(67);function s(e,t){return"function"==typeof t?function(n){return n.pipe(s((function(n,r){return Object(u.a)(e(n,r)).pipe(Object(c.a)((function(e,o){return t(n,e,r,o)})))})))}:function(t){return t.lift(new l(e))}}var l=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new f(e,this.project))},e}(),f=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new i.a(this,t,n),c=this.destination;c.add(o),this.innerSubscription=Object(a.a)(this,e,void 0,void 0,o),this.innerSubscription!==o&&c.add(this.innerSubscription)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t}(o.a)},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(252),c=n(196),u=n(89),s=r.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),l=r.createContext({updateItemErrors:function(){}});function f(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function p(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function d(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return p(n.overflowY,t)||p(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function h(e,t,n,r,o,i,a,c){return i<e&&a>t||i>e&&a<t?0:i<=e&&c<=n||a>=t&&c>=n?i-e-r:a>t&&c<n||i<e&&c>n?a-t+o:0}var v=function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,c="function"==typeof i?i:function(e){return e!==i};if(!f(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,s=[],l=e;f(l)&&c(l);){if((l=l.parentNode)===u){s.push(l);break}l===document.body&&d(l)&&!d(document.documentElement)||d(l,a)&&s.push(l)}for(var p=window.visualViewport?visualViewport.width:innerWidth,v=window.visualViewport?visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),g=b.height,O=b.width,w=b.top,x=b.right,j=b.bottom,E=b.left,S="start"===r||"nearest"===r?w:"end"===r?j:w+g/2,_="center"===o?E+O/2:"end"===o?x:E,C=[],P=0;P<s.length;P++){var k=s[P],M=k.getBoundingClientRect(),N=M.height,T=M.width,A=M.top,R=M.right,D=M.bottom,I=M.left;if("if-needed"===n&&w>=0&&E>=0&&j<=v&&x<=p&&w>=A&&j<=D&&E>=I&&x<=R)return C;var L=getComputedStyle(k),F=parseInt(L.borderLeftWidth,10),z=parseInt(L.borderTopWidth,10),B=parseInt(L.borderRightWidth,10),H=parseInt(L.borderBottomWidth,10),K=0,V=0,U="offsetWidth"in k?k.offsetWidth-k.clientWidth-F-B:0,W="offsetHeight"in k?k.offsetHeight-k.clientHeight-z-H:0;if(u===k)K="start"===r?S:"end"===r?S-v:"nearest"===r?h(y,y+v,v,z,H,y+S,y+S+g,g):S-v/2,V="start"===o?_:"center"===o?_-p/2:"end"===o?_-p:h(m,m+p,p,F,B,m+_,m+_+O,O),K=Math.max(0,K+y),V=Math.max(0,V+m);else{K="start"===r?S-A-z:"end"===r?S-D+H+W:"nearest"===r?h(A,D,N,z,H+W,S,S+g,g):S-(A+N/2)+W/2,V="start"===o?_-I-F:"center"===o?_-(I+T/2)+U/2:"end"===o?_-R+B+U:h(I,R,T,F,B+U,_,_+O,O);var q=k.scrollLeft,G=k.scrollTop;S+=G-(K=Math.max(0,Math.min(G+K,k.scrollHeight-N+W))),_+=q-(V=Math.max(0,Math.min(q+V,k.scrollWidth-T+U)))}C.push({el:k,top:K,left:V})}return C};function m(e){return e===Object(e)&&0!==Object.keys(e).length}var y=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(m(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:v(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:m(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(v(e,r),r.behavior)}};function b(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function g(e,t){if(e.length){var n=e.join("_");return t?"".concat(t,"_").concat(n):n}}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e,t)||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 x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j(e){return b(e).join("_")}function E(e){var t=w(Object(a.useForm)(),1)[0],n=Object(r.useRef)({}),o=Object(r.useMemo)((function(){return e||O(O({},t),{__INTERNAL__:{itemRef:function(e){return function(t){var r=j(e);t?n.current[r]=t:delete n.current[r]}}},scrollToField:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b(e),r=g(n,o.__INTERNAL__.name),i=r?document.getElementById(r):null;i&&y(i,O({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:function(e){var t=j(e);return n.current[t]}})}),[e,t]);return[o]}var S=n(155);function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e,t)||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 P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},N=function(e,t){var n,o=r.useContext(S.b),u=r.useContext(c.b),l=u.getPrefixCls,f=u.direction,p=e.name,d=e.prefixCls,h=e.className,v=void 0===h?"":h,m=e.size,y=void 0===m?o:m,b=e.form,g=e.colon,O=e.labelAlign,w=e.labelCol,x=e.wrapperCol,j=e.hideRequiredMark,P=e.layout,N=void 0===P?"horizontal":P,T=e.scrollToFirstError,A=e.onFinishFailed,R=M(e,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","onFinishFailed"]),D=l("form",d),I=i()(D,(k(n={},"".concat(D,"-").concat(N),!0),k(n,"".concat(D,"-hide-required-mark"),j),k(n,"".concat(D,"-rtl"),"rtl"===f),k(n,"".concat(D,"-").concat(y),y),n),v),L=C(E(b),1)[0],F=L.__INTERNAL__;F.name=p;var z=r.useMemo((function(){return{name:p,labelAlign:O,labelCol:w,wrapperCol:x,vertical:"vertical"===N,colon:g,itemRef:F.itemRef}}),[p,O,w,x,N,g]);r.useImperativeHandle(t,(function(){return L}));return r.createElement(S.a,{size:y},r.createElement(s.Provider,{value:z},r.createElement(a.default,_({id:p},R,{onFinishFailed:function(e){A&&A(e),T&&e.errorFields.length&&L.scrollToField(e.errorFields[0].name)},form:L,className:I}))))},T=r.forwardRef(N),A=n(553),R=n.n(A),D=n(254),I=n(181),L=n(920),F=n(177),z=n(91),B=n(674);function H(){return(H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V=function(e){var t=e.prefixCls,n=e.label,o=e.htmlFor,a=e.labelCol,c=e.labelAlign,u=e.colon,l=e.required;return n?r.createElement(s.Consumer,{key:"label"},(function(e){var s,f=e.vertical,p=e.labelAlign,d=e.labelCol,h=e.colon,v=a||d||{},m=c||p,y="".concat(t,"-item-label"),b=i()(y,"left"===m&&"".concat(y,"-left"),v.className),g=n,O=!0===u||!1!==h&&!1!==u;O&&!f&&"string"==typeof n&&""!==n.trim()&&(g=n.replace(/[:|:]\s*$/,""));var w=i()((K(s={},"".concat(t,"-item-required"),l),K(s,"".concat(t,"-item-no-colon"),!O),s));return r.createElement(B.a,H({},v,{className:b}),r.createElement("label",{htmlFor:o,className:w,title:"string"==typeof n?n:""},g))})):null},U=n(180),W=n.n(U),q=n(294),G=n.n(q),$=n(598),Y=n.n($),X=n(659),Z=n.n(X),J=n(773),Q=n(295);function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return te(e,t)}(e,t)||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 te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ne(){return(ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(e,t)}(e,t)||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 oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ie={success:Y.a,warning:Z.a,error:G.a,validating:W.a},ae=function(e){var t=e.prefixCls,n=e.wrapperCol,o=e.children,a=e.help,c=e.errors,u=e.onDomErrorVisibleChange,l=e.hasFeedback,f=e.validateStatus,p=e.extra,d=re(r.useState({}),2)[1],h="".concat(t,"-item"),v=r.useContext(s),m=n||v.wrapperCol||{},y=i()("".concat(h,"-control"),m.className),b=re(function(e,t,n){var o=r.useRef({errors:e,visible:!!e.length}),i=ee(r.useState({}),2)[1],a=function(){var n=o.current.visible,r=!!e.length,a=o.current.errors;o.current.errors=e,o.current.visible=r,n!==r?t(r):(a.length!==e.length||a.some((function(t,n){return t!==e[n]})))&&i({})};return r.useEffect((function(){if(!n){var e=setTimeout(a,10);return function(){return clearTimeout(e)}}}),[e]),n&&a(),[o.current.visible,o.current.errors]}(c,(function(e){e&&Promise.resolve().then((function(){u(!0)})),d({})}),!!a),2),g=b[0],O=b[1];r.useEffect((function(){return function(){u(!1)}}),[]);var w=Object(J.a)((function(){return O}),g,(function(e,t){return t})),x=f&&ie[f],j=l&&x?r.createElement("span",{className:"".concat(h,"-children-icon")},r.createElement(x,null)):null,E=ne({},v);return delete E.labelCol,delete E.wrapperCol,r.createElement(s.Provider,{value:E},r.createElement(B.a,ne({},m,{className:y}),r.createElement("div",{className:"".concat(h,"-control-input")},r.createElement("div",{className:"".concat(h,"-control-input-content")},o),j),r.createElement(Q.a,{motionDeadline:500,visible:g,motionName:"show-help",onLeaveEnd:function(){u(!1)},motionAppear:!0,removeOnLeave:!0},(function(e){var t=e.className;return r.createElement("div",{className:i()("".concat(h,"-explain"),t),key:"help"},w.map((function(e,t){return r.createElement("div",{key:t},e)})))})),p&&r.createElement("div",{className:"".concat(h,"-extra")},p)))},ce=n(110),ue=n(109),se=n.n(ue);function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fe(e,t)}(e,t)||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 fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pe(e){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(e){return function(e){if(Array.isArray(e))return ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||be(e)||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 ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(){return(me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||be(e,t)||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 be(e,t){if(e){if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},we=(Object(F.a)("success","warning","error","validating",""),r.memo((function(e){return e.children}),(function(e,t){return e.value===t.value&&e.update===t.update})));var xe=function(e){var t=e.name,n=e.fieldKey,o=e.noStyle,f=e.dependencies,p=e.prefixCls,d=e.style,h=e.className,v=e.shouldUpdate,m=e.hasFeedback,y=e.help,O=e.rules,w=e.validateStatus,x=e.children,j=e.required,E=e.label,S=e.trigger,_=void 0===S?"onChange":S,C=e.validateTrigger,P=e.hidden,k=Oe(e,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),M=r.useRef(!1),N=r.useContext(c.b).getPrefixCls,T=r.useContext(s).name,A=r.useContext(l).updateItemErrors,F=ye(r.useState(!!y),2),B=F[0],H=F[1],K=r.useRef(w),U=ye(function(e){var t=le(r.useState(e),2),n=t[0],o=t[1],i=Object(r.useRef)(null),a=Object(r.useRef)([]),c=Object(r.useRef)(!1);return r.useEffect((function(){return function(){c.current=!0,se.a.cancel(i.current)}}),[]),[n,function(e){c.current||(null===i.current&&(a.current=[],i.current=se()((function(){i.current=null,o((function(e){var t=e;return a.current.forEach((function(e){t=e(t)})),t}))}))),a.current.push(e))}]}({}),2),W=U[0],q=U[1],G=r.useContext(D.b).validateTrigger,$=void 0!==C?C:G;function Y(e){M.current||H(e)}var X=function(e){return null===e&&Object(z.a)(!1,"Form.Item","`null` is passed as `name` property"),!(null==e)}(t),Z=r.useRef([]);r.useEffect((function(){return function(){M.current=!0,A(Z.current.join("__SPLIT__"),[])}}),[]);var J,Q,ee=N("form",p),te=o?A:function(e,t){R()(W[e],t)||q((function(n){return me(me({},n),ve({},e,t))}))},ne=(J=r.useContext(s).itemRef,Q=r.useRef({}),function(e,t){var n=t&&"object"===pe(t)&&t.ref,r=e.join("_");return Q.current.name===r&&Q.current.originRef===n||(Q.current.name=r,Q.current.originRef=n,Q.current.ref=Object(I.a)(J(e),n)),Q.current.ref});function re(t,n,a,c){var s,f;if(o)return t;null!=y?f=b(y):(f=a?a.errors:[],Object.keys(W).forEach((function(e){var t=W[e]||[];t.length&&(f=[].concat(he(f),he(t)))})));var p="";void 0!==w?p=w:a&&a.validating?p="validating":!y&&f.length?p="error":a&&a.touched&&(p="success"),B&&y&&(K.current=p);var v=(ve(s={},"".concat(ee,"-item"),!0),ve(s,"".concat(ee,"-item-with-help"),B||y),ve(s,"".concat(h),!!h),ve(s,"".concat(ee,"-item-has-feedback"),p&&m),ve(s,"".concat(ee,"-item-has-success"),"success"===p),ve(s,"".concat(ee,"-item-has-warning"),"warning"===p),ve(s,"".concat(ee,"-item-has-error"),"error"===p),ve(s,"".concat(ee,"-item-has-error-leave"),!y&&B&&"error"===K.current),ve(s,"".concat(ee,"-item-is-validating"),"validating"===p),ve(s,"".concat(ee,"-item-hidden"),P),s);return r.createElement(L.a,me({className:i()(v),style:d,key:"row"},Object(u.default)(k,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),r.createElement(V,me({htmlFor:n,required:c},e,{prefixCls:ee})),r.createElement(ae,me({},e,a,{errors:f,prefixCls:ee,onDomErrorVisibleChange:Y,validateStatus:p}),r.createElement(l.Provider,{value:{updateItemErrors:te}},t)))}var oe="function"==typeof x,ie=r.useRef(0);if(ie.current+=1,!X&&!oe&&!f)return re(x);var ue={};return"string"==typeof E&&(ue.label=E),r.createElement(a.Field,me({},e,{messageVariables:ue,trigger:_,validateTrigger:$,onReset:function(){Y(!1)}}),(function(i,a,c){var u=a.errors,s=b(t).length&&a?a.name:[],l=g(s,T);if(o){if(Z.current=he(s),n){var p=Array.isArray(n)?n:[n];Z.current=[].concat(he(s.slice(0,-1)),he(p))}A(Z.current.join("__SPLIT__"),u)}var d=void 0!==j?j:!(!O||!O.some((function(e){if(e&&"object"===de(e)&&e.required)return!0;if("function"==typeof e){var t=e(c);return t&&t.required}return!1}))),h=me({},i),m=null;if(Array.isArray(x)&&X)Object(z.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),m=x;else if(!oe||v&&!X)if(!f||oe||X)if(Object(ce.b)(x)){Object(z.a)(void 0===x.props.defaultValue,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var y=me(me({},x.props),h);y.id||(y.id=l),Object(I.b)(x)&&(y.ref=ne(s,x)),new Set([].concat(he(b(_)),he(b($)))).forEach((function(e){y[e]=function(){for(var t,n,r,o,i,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];null===(r=h[e])||void 0===r||(t=r).call.apply(t,[h].concat(c)),null===(i=(o=x.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(c))}})),m=r.createElement(we,{value:h[e.valuePropName||"value"],update:ie.current},Object(ce.a)(x,y))}else oe&&v&&!X?m=x(c):(Object(z.a)(!s.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),m=x);else Object(z.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else Object(z.a)(!!v,"Form.Item","`children` of render props only work with `shouldUpdate`."),Object(z.a)(!X,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");return re(m,l,a,d)}))};function je(){return(je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Se=function(e){var t=e.children,n=Ee(e,["children"]);return Object(z.a)(!!n.name,"Form.List","Miss `name` prop."),r.createElement(a.List,n,(function(e,n){return t(e.map((function(e){return je(je({},e),{fieldKey:e.key})})),n)}))},_e=T;_e.Item=xe,_e.List=Se,_e.useForm=E,_e.Provider=function(e){var t=Object(u.default)(e,["prefixCls"]);return r.createElement(a.FormProvider,t)},_e.create=function(){Object(z.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};t.a=_e},function(e,t,n){var r=n(66).Symbol;e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(8),o=new r.a((function(e){return e.complete()}));function i(e){return e?function(e){return new r.a((function(t){return e.schedule((function(){return t.complete()}))}))}(e):o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},function(e,t,n){var r=n(93)(Object,"create");e.exports=r},function(e,t,n){var r=n(163);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(340);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}}},function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(130),o=n(52),i=n(70),a=n(51),c=n(129),u=n(131),s=n(119),l=function(e){if(e&&"function"==typeof e[a.a])return l=e,function(e){var t=l[a.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(c.a)(e))return Object(r.a)(e);if(Object(u.a)(e))return n=e,function(e){return n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,o.a),e};if(e&&"function"==typeof e[i.a])return t=e,function(e){for(var n=t[i.a]();;){var r=void 0;try{r=n.next()}catch(t){return e.error(t),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e};var t,n,l,f=Object(s.a)(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+f+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),o=n(37),i=n(36);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n;"function"==typeof e[e.length-1]&&(n=e.pop());var r=e;return t.lift(new c(r,n))}}var c=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.observables,this.project))},e}(),u=function(e){function t(t,n,r){var o=e.call(this,t)||this;o.observables=n,o.project=r,o.toRespond=[];var a=n.length;o.values=new Array(a);for(var c=0;c<a;c++)o.toRespond.push(c);for(c=0;c<a;c++){var u=n[c];o.add(Object(i.a)(o,u,u,c))}return o}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.values[n]=t;var i=this.toRespond;if(i.length>0){var a=i.indexOf(n);-1!==a&&i.splice(a,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.a)},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(405),i=n(30);function a(e,t){if(!t)return Object(i.e)(e).current;var n=Object(i.e)((function(){return new o.a(t)})),a=Object(i.e)((function(){return e(n.current)})),c=Object(r.useRef)(!0);return Object(r.useEffect)((function(){c.current?c.current=!1:n.current.next(t)}),t),a.current}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(152),o=n(120);function i(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(r.a)(o.a,e)}},,function(e,t,n){ +/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */ +e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.keys,o=Object.freeze,i=Object.seal,a=Object.create,c="undefined"!=typeof Reflect&&Reflect,u=c.apply,s=c.construct;u||(u=function(e,t,n){return e.apply(t,n)}),o||(o=function(e){return e}),i||(i=function(e){return e}),s||(s=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var l=E(Array.prototype.forEach),f=E(Array.prototype.indexOf),p=E(Array.prototype.join),d=E(Array.prototype.pop),h=E(Array.prototype.push),v=E(Array.prototype.slice),m=E(String.prototype.toLowerCase),y=E(String.prototype.match),b=E(String.prototype.replace),g=E(String.prototype.indexOf),O=E(String.prototype.trim),w=E(RegExp.prototype.test),x=S(RegExp),j=S(TypeError);function E(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u(e,t,r)}}function S(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(e,n)}}function _(e,r){t&&t(e,null);for(var o=r.length;o--;){var i=r[o];if("string"==typeof i){var a=m(i);a!==i&&(n(r)||(r[o]=a),i=a)}e[i]=!0}return e}function C(t){var n=a(null),r=void 0;for(r in t)u(e,t,[r])&&(n[r]=t[r]);return n}var P=o(["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"]),k=o(["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"]),M=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),N=o(["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"]),T=o(["#text"]),A=o(["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"]),R=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","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","systemlanguage","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"]),D=o(["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"]),I=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=i(/\{\{[\s\S]*|[\s\S]*\}\}/gm),F=i(/<%[\s\S]*|[\s\S]*%>/gm),z=i(/^data-[\-\w.\u00B7-\uFFFF]/),B=i(/^aria-[\-\w]+$/),H=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=i(/^(?:\w+script|data):/i),V=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function W(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var q=function(){return"undefined"==typeof window?null:window},G=function(e,t){if("object"!==(void 0===e?"undefined":U(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q(),n=function(t){return e(t)};if(n.version="2.0.17",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,a=!1,c=t.document,u=t.DocumentFragment,s=t.HTMLTemplateElement,E=t.Node,S=t.NodeFilter,$=t.NamedNodeMap,Y=void 0===$?t.NamedNodeMap||t.MozNamedAttrMap:$,X=t.Text,Z=t.Comment,J=t.DOMParser,Q=t.trustedTypes;if("function"==typeof s){var ee=c.createElement("template");ee.content&&ee.content.ownerDocument&&(c=ee.content.ownerDocument)}var te=G(Q,i),ne=te&&De?te.createHTML(""):"",re=c,oe=re.implementation,ie=re.createNodeIterator,ae=re.getElementsByTagName,ce=re.createDocumentFragment,ue=i.importNode,se={};try{se=C(c).documentMode?c.documentMode:{}}catch(e){}var le={};n.isSupported=oe&&void 0!==oe.createHTMLDocument&&9!==se;var fe=L,pe=F,de=z,he=B,ve=K,me=V,ye=H,be=null,ge=_({},[].concat(W(P),W(k),W(M),W(N),W(T))),Oe=null,we=_({},[].concat(W(A),W(R),W(D),W(I))),xe=null,je=null,Ee=!0,Se=!0,_e=!1,Ce=!1,Pe=!1,ke=!1,Me=!1,Ne=!1,Te=!1,Ae=!1,Re=!1,De=!1,Ie=!0,Le=!0,Fe=!1,ze={},Be=_({},["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"]),He=null,Ke=_({},["audio","video","img","source","image","track"]),Ve=null,Ue=_({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),We=null,qe=c.createElement("form"),Ge=function(e){We&&We===e||(e&&"object"===(void 0===e?"undefined":U(e))||(e={}),e=C(e),be="ALLOWED_TAGS"in e?_({},e.ALLOWED_TAGS):ge,Oe="ALLOWED_ATTR"in e?_({},e.ALLOWED_ATTR):we,Ve="ADD_URI_SAFE_ATTR"in e?_(C(Ue),e.ADD_URI_SAFE_ATTR):Ue,He="ADD_DATA_URI_TAGS"in e?_(C(Ke),e.ADD_DATA_URI_TAGS):Ke,xe="FORBID_TAGS"in e?_({},e.FORBID_TAGS):{},je="FORBID_ATTR"in e?_({},e.FORBID_ATTR):{},ze="USE_PROFILES"in e&&e.USE_PROFILES,Ee=!1!==e.ALLOW_ARIA_ATTR,Se=!1!==e.ALLOW_DATA_ATTR,_e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=e.SAFE_FOR_JQUERY||!1,Pe=e.SAFE_FOR_TEMPLATES||!1,ke=e.WHOLE_DOCUMENT||!1,Te=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,Re=e.RETURN_DOM_IMPORT||!1,De=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,Ie=!1!==e.SANITIZE_DOM,Le=!1!==e.KEEP_CONTENT,Fe=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||ye,Pe&&(Se=!1),Ae&&(Te=!0),ze&&(be=_({},[].concat(W(T))),Oe=[],!0===ze.html&&(_(be,P),_(Oe,A)),!0===ze.svg&&(_(be,k),_(Oe,R),_(Oe,I)),!0===ze.svgFilters&&(_(be,M),_(Oe,R),_(Oe,I)),!0===ze.mathMl&&(_(be,N),_(Oe,D),_(Oe,I))),e.ADD_TAGS&&(be===ge&&(be=C(be)),_(be,e.ADD_TAGS)),e.ADD_ATTR&&(Oe===we&&(Oe=C(Oe)),_(Oe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&_(Ve,e.ADD_URI_SAFE_ATTR),Le&&(be["#text"]=!0),ke&&_(be,["html","head","body"]),be.table&&(_(be,["tbody"]),delete xe.tbody),o&&o(e),We=e)},$e=function(e){h(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=ne}},Ye=function(e,t){try{h(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(n.removed,{attribute:null,from:t})}t.removeAttribute(e)},Xe=function(e){var t=void 0,n=void 0;if(Ne)e="<remove></remove>"+e;else{var r=y(e,/^[\r\n\t ]+/);n=r&&r[0]}var o=te?te.createHTML(e):e;try{t=(new J).parseFromString(o,"text/html")}catch(e){}if(a&&_(xe,["title"]),!t||!t.documentElement){var i=(t=oe.createHTMLDocument("")).body;i.parentNode.removeChild(i.parentNode.firstElementChild),i.outerHTML=o}return e&&n&&t.body.insertBefore(c.createTextNode(n),t.body.childNodes[0]||null),ae.call(t,ke?"html":"body")[0]};n.isSupported&&function(){try{var e=Xe("<x/><title></title><img>");w(/<\/title/,e.querySelector("title").innerHTML)&&(a=!0)}catch(e){}}();var Ze=function(e){return ie.call(e.ownerDocument||e,e,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT,(function(){return S.FILTER_ACCEPT}),!1)},Je=function(e){return!(e instanceof X||e instanceof Z||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof Y&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Qe=function(e){return"object"===(void 0===E?"undefined":U(E))?e instanceof E:e&&"object"===(void 0===e?"undefined":U(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},et=function(e,t,r){le[e]&&l(le[e],(function(e){e.call(n,t,r,We)}))},tt=function(e){var t=void 0;if(et("beforeSanitizeElements",e,null),Je(e))return $e(e),!0;if(y(e.nodeName,/[\u0080-\uFFFF]/))return $e(e),!0;var r=m(e.nodeName);if(et("uponSanitizeElement",e,{tagName:r,allowedTags:be}),("svg"===r||"math"===r)&&0!==e.querySelectorAll("p, br, form, table").length)return $e(e),!0;if(!be[r]||xe[r]){if(Le&&!Be[r]&&"function"==typeof e.insertAdjacentHTML)try{var o=e.innerHTML;e.insertAdjacentHTML("AfterEnd",te?te.createHTML(o):o)}catch(e){}return $e(e),!0}return"noscript"===r&&w(/<\/noscript/i,e.innerHTML)||"noembed"===r&&w(/<\/noembed/i,e.innerHTML)?($e(e),!0):(!Ce||Qe(e.firstElementChild)||Qe(e.content)&&Qe(e.content.firstElementChild)||!w(/</g,e.textContent)||(h(n.removed,{element:e.cloneNode()}),e.innerHTML?e.innerHTML=b(e.innerHTML,/</g,"<"):e.innerHTML=b(e.textContent,/</g,"<")),Pe&&3===e.nodeType&&(t=e.textContent,t=b(t,fe," "),t=b(t,pe," "),e.textContent!==t&&(h(n.removed,{element:e.cloneNode()}),e.textContent=t)),et("afterSanitizeElements",e,null),!1)},nt=function(e,t,n){if(Ie&&("id"===t||"name"===t)&&(n in c||n in qe))return!1;if(Se&&w(de,t));else if(Ee&&w(he,t));else{if(!Oe[t]||je[t])return!1;if(Ve[t]);else if(w(ye,b(n,me,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==g(n,"data:")||!He[e])if(_e&&!w(ve,b(n,me,"")));else if(n)return!1}return!0},rt=function(e){var t=void 0,o=void 0,i=void 0,a=void 0,c=void 0;et("beforeSanitizeAttributes",e,null);var u=e.attributes;if(u){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe};for(c=u.length;c--;){var l=t=u[c],h=l.name,y=l.namespaceURI;if(o=O(t.value),i=m(h),s.attrName=i,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,et("uponSanitizeAttribute",e,s),o=s.attrValue,!s.forceKeepAttr){if("name"===i&&"IMG"===e.nodeName&&u.id)a=u.id,u=v(u,[]),Ye("id",e),Ye(h,e),f(u,a)>c&&e.setAttribute("id",a.value);else{if("INPUT"===e.nodeName&&"type"===i&&"file"===o&&s.keepAttr&&(Oe[i]||!je[i]))continue;"id"===h&&e.setAttribute(h,""),Ye(h,e)}if(s.keepAttr)if(Ce&&w(/\/>/i,o))Ye(h,e);else if(w(/svg|math/i,e.namespaceURI)&&w(x("</("+p(r(Be),"|")+")","i"),o))Ye(h,e);else{Pe&&(o=b(o,fe," "),o=b(o,pe," "));var g=e.nodeName.toLowerCase();if(nt(g,i,o))try{y?e.setAttributeNS(y,h,o):e.setAttribute(h,o),d(n.removed)}catch(e){}}}}et("afterSanitizeAttributes",e,null)}},ot=function e(t){var n=void 0,r=Ze(t);for(et("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)et("uponSanitizeShadowNode",n,null),tt(n)||(n.content instanceof u&&e(n.content),rt(n));et("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var o=void 0,a=void 0,c=void 0,s=void 0,l=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Qe(e)){if("function"!=typeof e.toString)throw j("toString is not a function");if("string"!=typeof(e=e.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported){if("object"===U(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Qe(e))return t.toStaticHTML(e.outerHTML)}return e}if(Me||Ge(r),n.removed=[],"string"==typeof e&&(Fe=!1),Fe);else if(e instanceof E)1===(a=(o=Xe("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!Te&&!Pe&&!ke&&-1===e.indexOf("<"))return te&&De?te.createHTML(e):e;if(!(o=Xe(e)))return Te?null:ne}o&&Ne&&$e(o.firstChild);for(var f=Ze(Fe?e:o);c=f.nextNode();)3===c.nodeType&&c===s||tt(c)||(c.content instanceof u&&ot(c.content),rt(c),s=c);if(s=null,Fe)return e;if(Te){if(Ae)for(l=ce.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return Re&&(l=ue.call(i,l,!0)),l}var p=ke?o.outerHTML:o.innerHTML;return Pe&&(p=b(p,fe," "),p=b(p,pe," ")),te&&De?te.createHTML(p):p},n.setConfig=function(e){Ge(e),Me=!0},n.clearConfig=function(){We=null,Me=!1},n.isValidAttribute=function(e,t,n){We||Ge({});var r=m(e),o=m(t);return nt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(le[e]=le[e]||[],h(le[e],t))},n.removeHook=function(e){le[e]&&d(le[e])},n.removeHooks=function(e){le[e]&&(le[e]=[])},n.removeAllHooks=function(){le={}},n}()}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(t){return Object(r.a)(i(e,n))(t)}}function i(e,t){return function(n){for(var r=n,o=0;o<t;o++){var i=null!=r?r[e[o]]:void 0;if(void 0===i)return;r=i}return r}}},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(623),c=n(180),u=n.n(c),s=n(659),l=n.n(s),f=n(294),p=n.n(f),d=n(598),h=n.n(d),v=n(907);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b,g,O,w,x=3,j=1,E="ant-message",S="move-up",_=!1;var C={info:n.n(v).a,success:h.a,error:p.a,warning:l.a,loading:u.a};var P={open:function(e){var t,n=void 0!==e.duration?e.duration:x,o=C[e.type],c=i()("".concat(E,"-custom-content"),(y(t={},"".concat(E,"-").concat(e.type),e.type),y(t,"".concat(E,"-rtl"),!0===_),t)),u=e.key||j++,s=new Promise((function(t){var i=function(){return"function"==typeof e.onClose&&e.onClose(),t(!0)};!function(e){g?e(g):a.default.newInstance({prefixCls:E,transitionName:S,style:{top:b},getContainer:O,maxCount:w},(function(t){g?e(g):(g=t,e(t))}))}((function(t){t.notice({key:u,duration:n,style:e.style||{},className:e.className,content:r.createElement("div",{className:c},e.icon||o&&r.createElement(o,null),r.createElement("span",null,e.content)),onClose:i})}))})),l=function(){g&&g.removeNotice(u)};return l.then=function(e,t){return s.then(e,t)},l.promise=s,l},config:function(e){void 0!==e.top&&(b=e.top,g=null),void 0!==e.duration&&(x=e.duration),void 0!==e.prefixCls&&(E=e.prefixCls),void 0!==e.getContainer&&(O=e.getContainer),void 0!==e.transitionName&&(S=e.transitionName,g=null),void 0!==e.maxCount&&(w=e.maxCount,g=null),void 0!==e.rtl&&(_=e.rtl)},destroy:function(){g&&(g.destroy(),g=null)}};["success","info","warning","error","loading"].forEach((function(e){P[e]=function(t,n,r){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(t)?P.open(m(m({},t),{type:e})):("function"==typeof n&&(r=n,n=void 0),P.open({content:t,duration:n,type:e,onClose:r}))}})),P.warn=P.warning,t.a=P},function(e,t,n){var r=n(334),o=n(335),i=n(336),a=n(337),c=n(338);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(133);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1085))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},,,,function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(56),o=n(168),i=n(320),a=n(261);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(69),o=n(64);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(4),o=n(36),i=n(37),a=n(99),c=n(10),u=n(67);function s(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(s((function(n,r){return Object(u.a)(e(n,r)).pipe(Object(c.a)((function(e,o){return t(n,e,r,o)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new l(e,n))})}var l=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new f(e,this.project,this.concurrent))},e}(),f=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=e.call(this,t)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.__extends(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=new a.a(this,t,n),i=this.destination;i.add(r);var c=Object(o.a)(this,e,void 0,void 0,r);c!==r&&i.add(c)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(60);function o(e){return!Object(r.a)(e)&&e-parseFloat(e)+1>=0}},function(e,t,n){var r=n(208),o=n(213),i=n(452);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=r.createContext(void 0),i=function(e){var t=e.children,n=e.size;return r.createElement(o.Consumer,null,(function(e){return r.createElement(o.Provider,{value:n||e},t)}))};t.b=o},function(e,t,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,n){var r=n(278),o=n(316),i=n(162);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){"use strict";e.exports=n(569)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(8),o=n(114),i=n(153),a=n(65);function c(e,t,n){void 0===e&&(e=0);var c=-1;return Object(i.a)(t)?c=Number(t)<1?1:Number(t):Object(a.a)(t)&&(n=t),Object(a.a)(n)||(n=o.a),new r.a((function(t){var r=Object(i.a)(e)?e:+e-n.now();return n.schedule(u,r,{index:0,period:c,subscriber:t})}))}function u(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(206),o=n(161);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ConfigConsumer",{enumerable:!0,get:function(){return u.ConfigConsumer}}),Object.defineProperty(t,"ConfigContext",{enumerable:!0,get:function(){return u.ConfigContext}}),t.default=t.configConsumerProps=void 0;var o=h(n(0)),i=n(252),a=h(n(1281)),c=p(n(896)),u=n(897),s=n(656),l=p(n(1287)),f=p(n(1288));function p(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];var m=function(e){o.useEffect((function(){e.direction&&(l.default.config({rtl:"rtl"===e.direction}),f.default.config({rtl:"rtl"===e.direction}))}),[e.direction]);var t=function(t){return function(n,r){var o=e.prefixCls;if(r)return r;var i=o||t.getPrefixCls("");return n?"".concat(i,"-").concat(n):i}};return o.createElement(c.default,null,(function(n,r,c){return o.createElement(u.ConfigConsumer,null,(function(n){return function(n,r){var c=e.children,l=e.getTargetContainer,f=e.getPopupContainer,p=e.renderEmpty,d=e.csp,h=e.autoInsertSpaceInButton,m=e.form,y=e.input,b=e.locale,g=e.pageHeader,O=e.componentSize,w=e.direction,x=e.space,j=e.virtual,E=e.dropdownMatchSelectWidth,S=v(v({},n),{getPrefixCls:t(n),csp:d,autoInsertSpaceInButton:h,locale:b||r,direction:w,space:x,virtual:j,dropdownMatchSelectWidth:E});l&&(S.getTargetContainer=l),f&&(S.getPopupContainer=f),p&&(S.renderEmpty=p),g&&(S.pageHeader=g),y&&(S.input=y);var _=c,C={};return b&&b.Form&&b.Form.defaultValidateMessages&&(C=b.Form.defaultValidateMessages),m&&m.validateMessages&&(C=v(v({},C),m.validateMessages)),Object.keys(C).length>0&&(_=o.createElement(i.FormProvider,{validateMessages:C},c)),o.createElement(s.SizeContextProvider,{size:O},o.createElement(u.ConfigContext.Provider,{value:S},o.createElement(a.default,{locale:b||r,_ANT_MARK__:a.ANT_MARK},_)))}(n,c)}))}))};t.default=m},,,function(e,t,n){"use strict";var r=n(0),o=n(623),i=n(224),a=n.n(i),c=n(5),u=n.n(c),s=n(660),l=n.n(s),f=n(662),p=n.n(f),d=n(145),h=n.n(d),v=n(661),m=n.n(v),y=n(765),b=n(196);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var j,E,S={},_=4.5,C=24,P=24,k="ant-notification",M="topRight",N=!1;function T(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P;switch(e){case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function A(e,t){var n=e.placement,i=void 0===n?M:n,c=e.top,s=e.bottom,l=e.getContainer,f=void 0===l?j:l,p=e.closeIcon,d=void 0===p?E:p,h=e.prefixCls||k,v="".concat(h,"-notice"),m="".concat(h,"-").concat(i),y=S[m];if(y)Promise.resolve(y).then((function(e){t({prefixCls:v,instance:e})}));else{var b,g,O,w=r.createElement("span",{className:"".concat(h,"-close-x")},d||r.createElement(a.a,{className:"".concat(h,"-close-icon")})),x=u()("".concat(h,"-").concat(i),(b={},g="".concat(h,"-rtl"),O=!0===N,g in b?Object.defineProperty(b,g,{value:O,enumerable:!0,configurable:!0,writable:!0}):b[g]=O,b));S[m]=new Promise((function(e){o.default.newInstance({prefixCls:h,className:x,style:T(i,c,s),getContainer:f,closeIcon:w},(function(n){e(n),t({prefixCls:v,instance:n})}))}))}}var R={success:l.a,info:m.a,error:p.a,warning:h.a};function D(e,t){var n=void 0===e.duration?_:e.duration,o=null;e.icon?o=r.createElement("span",{className:"".concat(t,"-icon")},e.icon):e.type&&(o=r.createElement(R[e.type]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(e.type)}));var i=!e.description&&o?r.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:r.createElement("div",{className:o?"".concat(t,"-with-icon"):""},o,r.createElement("div",{className:"".concat(t,"-message")},i,e.message),r.createElement("div",{className:"".concat(t,"-description")},e.description),e.btn?r.createElement("span",{className:"".concat(t,"-btn")},e.btn):null),duration:n,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},className:e.className}}var I,L,F={open:function(e){A(e,(function(t){var n=t.prefixCls;t.instance.notice(D(e,n))}))},close:function(e){Object.keys(S).forEach((function(t){return Promise.resolve(S[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,o=e.top,i=e.getContainer,a=e.closeIcon,c=e.prefixCls;void 0!==c&&(k=c),void 0!==t&&(_=t),void 0!==n?M=n:e.rtl&&(M="topLeft"),void 0!==r&&(P=r),void 0!==o&&(C=o),void 0!==i&&(j=i),void 0!==a&&(E=a),void 0!==e.rtl&&(N=e.rtl)},destroy:function(){Object.keys(S).forEach((function(e){Promise.resolve(S[e]).then((function(e){e.destroy()})),delete S[e]}))}};["success","info","warning","error"].forEach((function(e){F[e]=function(t){return F.open(x(x({},t),{type:e}))}})),F.warn=F.warning,F.useNotification=(I=A,L=D,function(){var e,t=null,n={add:function(e,n){null==t||t.component.add(e,n)}},o=O(Object(y.a)(n),2),i=o[0],a=o[1],c=r.useRef({});return c.current.open=function(n){var r=n.prefixCls,o=e("notification",r);I(g(g({},n),{prefixCls:o}),(function(e){var r=e.prefixCls,o=e.instance;t=o,i(L(n,r))}))},["success","info","warning","error"].forEach((function(e){c.current[e]=function(t){return c.current.open(g(g({},t),{type:e}))}})),[c.current,r.createElement(b.a,{key:"holder"},(function(t){return e=t.getPrefixCls,a}))]});t.a=F},function(e,t,n){var r=n(56),o=n(151),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(323),o=n(339),i=n(341),a=n(342),c=n(343);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(93)(n(66),"Map");e.exports=r},,,,,,function(e,t,n){"use strict";var r=n(158),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var c=u(t),v=u(n),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||v&&v[y]||c&&c[y])){var b=p(n,y);try{s(t,y,b)}catch(e){}}}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(622),c=n(89),u=n(196);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e)||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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},O=r.createContext(null),w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(s,e);var t,n,o,a=v(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).cancelValue=function(e){t.setState((function(t){return{registeredValues:t.registeredValues.filter((function(t){return t!==e}))}}))},t.registerValue=function(e){t.setState((function(t){var n=t.registeredValues;return{registeredValues:[].concat(f(n),[e])}}))},t.toggleOption=function(e){var n=t.state.registeredValues,r=t.state.value.indexOf(e.value),o=f(t.state.value);-1===r?o.push(e.value):o.splice(r,1),"value"in t.props||t.setState({value:o});var i=t.props.onChange;if(i){var a=t.getOptions();i(o.filter((function(e){return-1!==n.indexOf(e)})).sort((function(e,t){return a.findIndex((function(t){return t.value===e}))-a.findIndex((function(e){return e.value===t}))})))}},t.renderGroup=function(e){var n=e.getPrefixCls,o=e.direction,a=y(t),u=a.props,s=a.state,f=u.prefixCls,p=u.className,d=u.style,h=u.options,v=g(u,["prefixCls","className","style","options"]),m=n("checkbox",f),b="".concat(m,"-group"),w=Object(c.default)(v,["children","defaultValue","value","onChange","disabled"]),x=u.children;h&&h.length>0&&(x=t.getOptions().map((function(e){return r.createElement(I,{prefixCls:m,key:e.value.toString(),disabled:"disabled"in e?e.disabled:u.disabled,value:e.value,checked:-1!==s.value.indexOf(e.value),onChange:e.onChange,className:"".concat(b,"-item"),style:e.style},e.label)})));var j,E,S,_={toggleOption:t.toggleOption,value:t.state.value,disabled:t.props.disabled,name:t.props.name,registerValue:t.registerValue,cancelValue:t.cancelValue},C=i()(b,p,(j={},E="".concat(b,"-rtl"),S="rtl"===o,E in j?Object.defineProperty(j,E,{value:S,enumerable:!0,configurable:!0,writable:!0}):j[E]=S,j));return r.createElement("div",l({className:C,style:d},w),r.createElement(O.Provider,{value:_},x))},t.state={value:e.value||e.defaultValue||[],registeredValues:[]},t}return t=s,o=[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value||[]}:null}}],(n=[{key:"getOptions",value:function(){return this.props.options.map((function(e){return"string"==typeof e?{label:e,value:e}:e}))}},{key:"render",value:function(){return r.createElement(u.a,null,this.renderGroup)}}])&&d(t.prototype,n),o&&d(t,o),s}(r.PureComponent);w.defaultProps={options:[]};var x=w,j=n(91);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A(e);if(t){var o=A(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return N(this,n)}}function N(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?T(e):t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(s,e);var t,n,o,c=M(s);function s(){var e;return C(this,s),(e=c.apply(this,arguments)).saveCheckbox=function(t){e.rcCheckbox=t},e.renderCheckbox=function(t){var n,o=t.getPrefixCls,c=t.direction,u=T(e),s=u.props,l=u.context,f=s.prefixCls,p=s.className,d=s.children,h=s.indeterminate,v=s.style,m=s.onMouseEnter,y=s.onMouseLeave,b=R(s,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave"]),g=l,O=o("checkbox",f),w=_({},b);g&&(w.onChange=function(){b.onChange&&b.onChange.apply(b,arguments),g.toggleOption({label:d,value:s.value})},w.name=g.name,w.checked=-1!==g.value.indexOf(s.value),w.disabled=s.disabled||g.disabled);var x=i()(p,(S(n={},"".concat(O,"-wrapper"),!0),S(n,"".concat(O,"-rtl"),"rtl"===c),S(n,"".concat(O,"-wrapper-checked"),w.checked),S(n,"".concat(O,"-wrapper-disabled"),w.disabled),n)),j=i()(S({},"".concat(O,"-indeterminate"),h));return r.createElement("label",{className:x,style:v,onMouseEnter:m,onMouseLeave:y},r.createElement(a.default,_({},w,{prefixCls:O,className:j,ref:e.saveCheckbox})),void 0!==d&&r.createElement("span",null,d))},e}return t=s,(n=[{key:"componentDidMount",value:function(){var e,t=this.props.value;null===(e=this.context)||void 0===e||e.registerValue(t),Object(j.a)("checked"in this.props||this.context||!("value"in this.props),"Checkbox","`value` is not a valid prop, do you mean `checked`?")}},{key:"componentDidUpdate",value:function(e){var t,n,r=e.value,o=this.props.value;o!==r&&(null===(t=this.context)||void 0===t||t.cancelValue(r),null===(n=this.context)||void 0===n||n.registerValue(o))}},{key:"componentWillUnmount",value:function(){var e,t=this.props.value;null===(e=this.context)||void 0===e||e.cancelValue(t)}},{key:"focus",value:function(){this.rcCheckbox.focus()}},{key:"blur",value:function(){this.rcCheckbox.blur()}},{key:"render",value:function(){return r.createElement(u.a,null,this.renderCheckbox)}}])&&P(t.prototype,n),o&&P(t,o),s}(r.PureComponent);D.__ANT_CHECKBOX=!0,D.defaultProps={indeterminate:!1},D.contextType=O;var I=D;I.Group=x;t.a=I},,function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1075))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(158);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){"function"==typeof e?e(t):"object"===o(e)&&e&&"current"in e&&(e.current=t)}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){i(t,e)}))}}function c(e){var t=Object(r.isMemo)(e)?e.type.type:e.type;return!(t&&t.prototype&&!t.prototype.render)&&!("function"==typeof e&&e.prototype&&!e.prototype.render)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4),o=n(7);function i(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.compare,this.keySelector))},e}(),c=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return r.__extends(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(o.a)},function(e,t,n){"use strict";var r=n(0),o=n(195),i=n.n(o),a=n(625),c=n.n(a),u=n(626),s=n.n(u),l=n(627),f=n.n(l),p=n(21),d=n(41),h=n(565),v=n(566),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},y=function(e){function t(){return c()(this,t),s()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.shouldComponentUpdate=function(e){return!!e.forceRender||(!!e.hiddenClassName||!!e.visible)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.hiddenClassName,o=e.visible,a=(e.forceRender,m(e,["className","hiddenClassName","visible","forceRender"])),c=t;return n&&!o&&(c+=" "+n),r.createElement("div",i()({},a,{className:c}))},t}(r.Component),b=0;function g(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function O(e,t){var n=e.style;["Webkit","Moz","Ms","ms"].forEach((function(e){n[e+"TransformOrigin"]=t})),n.transformOrigin=t}var w=function(e){function t(n){c()(this,t);var o=s()(this,e.call(this,n));return o.inTransition=!1,o.onAnimateLeave=function(){var e=o.props,t=e.afterClose,n=e.getOpenCount;o.wrap&&(o.wrap.style.display="none"),o.inTransition=!1,n()||o.switchScrollingEffect(),t&&t()},o.onDialogMouseDown=function(){o.dialogMouseDown=!0},o.onMaskMouseUp=function(){o.dialogMouseDown&&(o.timeoutId=setTimeout((function(){o.dialogMouseDown=!1}),0))},o.onMaskClick=function(e){Date.now()-o.openTime<300||e.target!==e.currentTarget||o.dialogMouseDown||o.close(e)},o.onKeyDown=function(e){var t=o.props;if(t.keyboard&&e.keyCode===d.a.ESC)return e.stopPropagation(),void o.close(e);if(t.visible&&e.keyCode===d.a.TAB){var n=document.activeElement,r=o.sentinelStart;e.shiftKey?n===r&&o.sentinelEnd.focus():n===o.sentinelEnd&&r.focus()}},o.getDialogElement=function(){var e=o.props,t=e.closable,n=e.prefixCls,a={};void 0!==e.width&&(a.width=e.width),void 0!==e.height&&(a.height=e.height);var c=void 0;e.footer&&(c=r.createElement("div",{className:n+"-footer",ref:o.saveRef("footer")},e.footer));var u=void 0;e.title&&(u=r.createElement("div",{className:n+"-header",ref:o.saveRef("header")},r.createElement("div",{className:n+"-title",id:o.titleId},e.title)));var s=void 0;t&&(s=r.createElement("button",{type:"button",onClick:o.close,"aria-label":"Close",className:n+"-close"},e.closeIcon||r.createElement("span",{className:n+"-close-x"})));var l=i()({},e.style,a),f={width:0,height:0,overflow:"hidden",outline:"none"},p=o.getTransitionName(),d=r.createElement(y,{key:"dialog-element",role:"document",ref:o.saveRef("dialog"),style:l,className:n+" "+(e.className||""),visible:e.visible,forceRender:e.forceRender,onMouseDown:o.onDialogMouseDown},r.createElement("div",{tabIndex:0,ref:o.saveRef("sentinelStart"),style:f,"aria-hidden":"true"}),r.createElement("div",{className:n+"-content"},s,u,r.createElement("div",i()({className:n+"-body",style:e.bodyStyle,ref:o.saveRef("body")},e.bodyProps),e.children),c),r.createElement("div",{tabIndex:0,ref:o.saveRef("sentinelEnd"),style:f,"aria-hidden":"true"}));return r.createElement(v.a,{key:"dialog",showProp:"visible",onLeave:o.onAnimateLeave,transitionName:p,component:"",transitionAppear:!0},e.visible||!e.destroyOnClose?d:null)},o.getZIndexStyle=function(){var e={},t=o.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},o.getWrapStyle=function(){return i()({},o.getZIndexStyle(),o.props.wrapStyle)},o.getMaskStyle=function(){return i()({},o.getZIndexStyle(),o.props.maskStyle)},o.getMaskElement=function(){var e=o.props,t=void 0;if(e.mask){var n=o.getMaskTransitionName();t=r.createElement(y,i()({style:o.getMaskStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible},e.maskProps)),n&&(t=r.createElement(v.a,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t},o.getMaskTransitionName=function(){var e=o.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},o.getTransitionName=function(){var e=o.props,t=e.transitionName,n=e.animation;return!t&&n&&(t=e.prefixCls+"-"+n),t},o.close=function(e){var t=o.props.onClose;t&&t(e)},o.saveRef=function(e){return function(t){o[e]=t}},o.titleId="rcDialogTitle"+b++,o.switchScrollingEffect=n.switchScrollingEffect||function(){},o}return f()(t,e),t.prototype.componentDidMount=function(){this.componentDidUpdate({}),(this.props.forceRender||!1===this.props.getContainer&&!this.props.visible)&&this.wrap&&(this.wrap.style.display="none")},t.prototype.componentDidUpdate=function(e){var t,n,r,o,i,a=this.props,c=a.visible,u=a.mask,s=a.focusTriggerAfterClose,l=this.props.mousePosition;if(c){if(!e.visible){this.openTime=Date.now(),this.switchScrollingEffect(),this.tryFocus();var f=p.findDOMNode(this.dialog);if(l){var d=(n=(t=f).getBoundingClientRect(),r={left:n.left,top:n.top},o=t.ownerDocument,i=o.defaultView||o.parentWindow,r.left+=g(i),r.top+=g(i,!0),r);O(f,l.x-d.left+"px "+(l.y-d.top)+"px")}else O(f,"")}}else if(e.visible&&(this.inTransition=!0,u&&this.lastOutSideFocusNode&&s)){try{this.lastOutSideFocusNode.focus()}catch(e){this.lastOutSideFocusNode=null}this.lastOutSideFocusNode=null}},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visible,n=e.getOpenCount;!t&&!this.inTransition||n()||this.switchScrollingEffect(),clearTimeout(this.timeoutId)},t.prototype.tryFocus=function(){Object(h.a)(this.wrap,document.activeElement)||(this.lastOutSideFocusNode=document.activeElement,this.sentinelStart.focus())},t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.maskClosable,o=this.getWrapStyle();return e.visible&&(o.display=null),r.createElement("div",{className:t+"-root"},this.getMaskElement(),r.createElement("div",i()({tabIndex:-1,onKeyDown:this.onKeyDown,className:t+"-wrap "+(e.wrapClassName||""),ref:this.saveRef("wrap"),onClick:n?this.onMaskClick:null,onMouseUp:n?this.onMaskMouseUp:null,role:"dialog","aria-labelledby":e.title?this.titleId:null,style:o},e.wrapProps),this.getDialogElement()))},t}(r.Component),x=w;w.defaultProps={className:"",mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",focusTriggerAfterClose:!0};var j=n(1029),E=function(e){var t=e.visible,n=e.getContainer,o=e.forceRender;return!1===n?r.createElement(x,i()({},e,{getOpenCount:function(){return 2}})):r.createElement(j.a,{visible:t,forceRender:o,getContainer:n},(function(t){return r.createElement(x,i()({},e,t))}))},S=n(5),_=n.n(S),C=n(194),P=n(224),k=n.n(P);function M(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||T(e)||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 N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||T(e,t)||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,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var R=n(84),D=n(634);function I(){return(I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e,t)||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 F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var z=function(e){var t=r.useRef(!1),n=r.useRef(),o=L(r.useState(!1),2),i=o[0],a=o[1];r.useEffect((function(){var t;if(e.autoFocus){var r=n.current;t=setTimeout((function(){return r.focus()}))}return function(){t&&clearTimeout(t)}}),[]);var c=e.type,u=e.children,s=e.buttonProps;return r.createElement(R.a,I({},Object(D.a)(c),{onClick:function(){var n=e.actionFn,r=e.closeModal;if(!t.current)if(t.current=!0,n){var o;if(n.length)o=n(r),t.current=!1;else if(!(o=n()))return void r();!function(n){var r=e.closeModal;n&&n.then&&(a(!0),n.then((function(){r.apply(void 0,arguments)}),(function(e){console.error(e),a(!1),t.current=!1})))}(o)}else r()},loading:i},s,{ref:n}),u)},B=n(91);function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=function(e){var t=e.icon,n=e.onCancel,o=e.onOk,i=e.close,a=e.zIndex,c=e.afterClose,u=e.visible,s=e.keyboard,l=e.centered,f=e.getContainer,p=e.maskStyle,d=e.okText,h=e.okButtonProps,v=e.cancelText,m=e.cancelButtonProps,y=e.direction;Object(B.a)(!("string"==typeof t&&t.length>2),"Modal","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(t,"` at https://ant.design/components/icon"));var b=e.okType||"primary",g=e.prefixCls||"ant-modal",O="".concat(g,"-confirm"),w=!("okCancel"in e)||e.okCancel,x=e.width||416,j=e.style||{},E=void 0===e.mask||e.mask,S=void 0!==e.maskClosable&&e.maskClosable,C=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),P=e.transitionName||"zoom",k=e.maskTransitionName||"fade",M=_()(O,"".concat(O,"-").concat(e.type),H({},"".concat(O,"-rtl"),"rtl"===y),e.className),N=w&&r.createElement(z,{actionFn:n,closeModal:i,autoFocus:"cancel"===C,buttonProps:m},v);return r.createElement(je,{prefixCls:g,className:M,wrapClassName:_()(H({},"".concat(O,"-centered"),!!e.centered)),onCancel:function(){return i({triggerCancel:!0})},visible:u,title:"",transitionName:P,footer:"",maskTransitionName:k,mask:E,maskClosable:S,maskStyle:p,style:j,width:x,zIndex:a,afterClose:c,keyboard:s,centered:l,getContainer:f},r.createElement("div",{className:"".concat(O,"-body-wrapper")},r.createElement("div",{className:"".concat(O,"-body")},t,void 0===e.title?null:r.createElement("span",{className:"".concat(O,"-title")},e.title),r.createElement("div",{className:"".concat(O,"-content")},e.content)),r.createElement("div",{className:"".concat(O,"-btns")},N,r.createElement(z,{type:b,actionFn:o,closeModal:i,autoFocus:"ok"===C,buttonProps:h},d))))},V=n(361),U=n(296),W=n(196);function q(){return(q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(e,t)}(e,t)||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 $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Y=function(e,t){var n=e.afterClose,o=e.config,i=G(r.useState(!0),2),a=i[0],c=i[1],u=G(r.useState(o),2),s=u[0],l=u[1],f=r.useContext(W.b).direction;function p(){c(!1)}return r.useImperativeHandle(t,(function(){return{destroy:p,update:function(e){l((function(t){return q(q({},t),e)}))}}})),r.createElement(U.a,{componentName:"Modal",defaultLocale:V.a.Modal},(function(e){return r.createElement(K,q({},s,{close:p,visible:a,afterClose:n,okText:s.okText||(s.okCancel?e.okText:e.justOkText),direction:f,cancelText:s.cancelText||e.cancelText}))}))},X=r.forwardRef(Y),Z=n(661),J=n.n(Z),Q=n(660),ee=n.n(Q),te=n(662),ne=n.n(te),re=n(145),oe=n.n(re),ie=n(564);function ae(){return(ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ue(e){var t=document.createElement("div");document.body.appendChild(t);var n=ae(ae({},e),{close:a,visible:!0});function o(){var n=p.unmountComponentAtNode(t);n&&t.parentNode&&t.parentNode.removeChild(t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var c=o.some((function(e){return e&&e.triggerCancel}));e.onCancel&&c&&e.onCancel.apply(e,o);for(var u=0;u<we.length;u++){var s=we[u];if(s===a){we.splice(u,1);break}}}function i(e){var n=e.okText,o=e.cancelText,i=ce(e,["okText","cancelText"]);setTimeout((function(){var e=Object(ie.b)();p.render(r.createElement(K,ae({},i,{okText:n||(i.okCancel?e.okText:e.justOkText),cancelText:o||e.cancelText})),t)}))}function a(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];i(n=ae(ae({},n),{visible:!1,afterClose:o.bind.apply(o,[this].concat(t))}))}return i(n),we.push(a),{destroy:a,update:function(e){i(n=ae(ae({},n),e))}}}function se(e){return ae({type:"warning",icon:r.createElement(oe.a,null),okCancel:!1},e)}function le(e){return ae({type:"info",icon:r.createElement(J.a,null),okCancel:!1},e)}function fe(e){return ae({type:"success",icon:r.createElement(ee.a,null),okCancel:!1},e)}function pe(e){return ae({type:"error",icon:r.createElement(ne.a,null),okCancel:!1},e)}function de(e){return ae({type:"confirm",icon:r.createElement(oe.a,null),okCancel:!0},e)}function he(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ve(e,t)}(e,t)||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 ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var me=0;function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(){return(be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ge,Oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},we=[];"undefined"!=typeof window&&window.document&&window.document.documentElement&&Object(C.a)(document.documentElement,"click",(function(e){ge={x:e.pageX,y:e.pageY},setTimeout((function(){ge=null}),100)}));var xe=function(e){var t,n=r.useContext(W.b),o=n.getPopupContainer,i=n.getPrefixCls,a=n.direction,c=function(t){var n=e.onCancel;n&&n(t)},u=function(t){var n=e.onOk;n&&n(t)},s=function(t){var n=e.okText,o=e.okType,i=e.cancelText,a=e.confirmLoading;return r.createElement(r.Fragment,null,r.createElement(R.a,be({onClick:c},e.cancelButtonProps),i||t.cancelText),r.createElement(R.a,be({},Object(D.a)(o),{loading:a,onClick:u},e.okButtonProps),n||t.okText))},l=e.prefixCls,f=e.footer,p=e.visible,d=e.wrapClassName,h=e.centered,v=e.getContainer,m=e.closeIcon,y=Oe(e,["prefixCls","footer","visible","wrapClassName","centered","getContainer","closeIcon"]),b=i("modal",l),g=r.createElement(U.a,{componentName:"Modal",defaultLocale:Object(ie.b)()},s),O=r.createElement("span",{className:"".concat(b,"-close-x")},m||r.createElement(k.a,{className:"".concat(b,"-close-icon")})),w=_()(d,(ye(t={},"".concat(b,"-centered"),!!h),ye(t,"".concat(b,"-wrap-rtl"),"rtl"===a),t));return r.createElement(E,be({},y,{getContainer:void 0===v?o:v,prefixCls:b,wrapClassName:w,footer:void 0===f?g:f,visible:p,mousePosition:ge,onClose:c,closeIcon:O}))};xe.useModal=function(){var e=he(function(){var e=N(r.useState([]),2),t=e[0],n=e[1];return[t,function(e){return n((function(t){return[].concat(M(t),[e])})),function(){n((function(t){return t.filter((function(t){return t!==e}))}))}}]}(),2),t=e[0],n=e[1];function o(e){return function(t){me+=1;var o,i=r.createRef(),a=r.createElement(X,{key:"modal-".concat(me),config:e(t),ref:i,afterClose:function(){o()}});return o=n(a),{destroy:function(){i.current&&i.current.destroy()},update:function(e){i.current&&i.current.update(e)}}}}return[{info:o(le),success:o(fe),error:o(pe),warning:o(se),confirm:o(de)},r.createElement(r.Fragment,null,t)]},xe.defaultProps={width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"};var je=xe;function Ee(e){return ue(se(e))}var Se=je;Se.info=function(e){return ue(le(e))},Se.success=function(e){return ue(fe(e))},Se.error=function(e){return ue(pe(e))},Se.warning=Ee,Se.warn=Ee,Se.confirm=function(e){return ue(de(e))},Se.destroyAll=function(){for(;we.length;){var e=we.pop();e&&e()}};t.a=Se},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasOwnProperty=Object.prototype.hasOwnProperty},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(6);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Object(r.a)(e,t,n[t])}))}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),o=n(114);var i=n(7),a=n(111);function c(e,t){void 0===t&&(t=o.a);var n,r=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return function(e){return e.lift(new u(r,t))}}var u=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.delay,this.scheduler))},e}(),s=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.delay=n,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return r.__extends(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,r=e.scheduler,o=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var i=Math.max(0,n[0].time-r.now());this.schedule(e,i)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new l(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(a.a.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()},t}(i.a),l=function(){return function(e,t){this.time=e,this.notification=t}}()},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeReporter=void 0;const a=i(n(0)),c=(n(640),{overflow:"hidden",position:"absolute",zIndex:-1e3,top:0,right:0,width:"100%",height:"100%",opacity:0,pointerEvents:"none"}),u={transition:"0s",animation:"none"},s={transition:"0s",animation:"none",width:"250%",height:"250%"};class l extends a.PureComponent{constructor(){super(...arguments),this.containerRef=a.default.createRef(),this.lastWidth=-1,this.lastHeight=-1,this.resetPosition=(e,t,n)=>{const r=e.firstChild,o=r.nextSibling,i=r.firstChild;i.style.width=t+1e3+"px",i.style.height=n+1e3+"px",this._setScrollPositionTicket=window.setTimeout(()=>{r.scrollLeft=t+1e3,r.scrollTop=n+1e3,o.scrollLeft=2.5*t,o.scrollTop=2.5*n},0)},this.checkSize=()=>{if(this.containerRef.current){const e=this.containerRef.current.parentElement;if(e){const t=e.getBoundingClientRect(),{width:n,height:r}=t;this.props.onSizeChanged&&(n===this.lastWidth&&r===this.lastHeight||this.props.onSizeChanged(n,r,t)),this.props.onWidthChanged&&n!==this.lastWidth&&this.props.onWidthChanged(n,t),this.props.onHeightChanged&&r!==this.lastHeight&&this.props.onHeightChanged(r,t),this.resetPosition(this.containerRef.current,n,r),this.lastWidth=n,this.lastHeight=r}}},this.onScroll=()=>{this._debounceTicket&&(window.clearTimeout(this._debounceTicket),this._debounceTicket=null),this._debounceTicket=window.setTimeout(this.checkSize,this.props.debounce||0)}}componentDidMount(){if(this.containerRef.current){const e=this.containerRef.current.parentElement;if(e)if(this.props.reportInit)this.checkSize();else{const t=e.getBoundingClientRect();this.lastWidth=t.width,this.lastHeight=t.height,this.resetPosition(this.containerRef.current,this.lastWidth,this.lastHeight)}}}componentWillUnmount(){this._debounceTicket&&(window.clearTimeout(this._debounceTicket),this._debounceTicket=null),this._setScrollPositionTicket&&(window.clearTimeout(this._setScrollPositionTicket),this._setScrollPositionTicket=null)}render(){const{reportInit:e,debounce:t,onSizeChanged:n,onWidthChanged:r,onHeightChanged:o,children:i,...l}=this.props;return a.default.createElement("div",Object.assign({"aria-hidden":!0,"aria-label":"react-resize-reporter",tabIndex:-1},l,{ref:this.containerRef}),a.default.createElement("div",{style:c,onScroll:this.onScroll},a.default.createElement("div",{style:u})),a.default.createElement("div",{style:c,onScroll:this.onScroll},a.default.createElement("div",{style:s})),i)}}t.ResizeReporter=l,t.default=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},function(e,t,n){"use strict";var r=n(0),o=r.createContext(null);t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return y}));var r,o=n(0),i=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=o.createContext(null),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return o.createElement(a.Provider,{value:this.props.store},this.props.children)},t}(o.Component),u=n(239),s=n.n(u),l=n(176),f=n.n(l),p=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var h=function(){return{}};function v(e,t){void 0===t&&(t={});var n=!!e,r=e||h;return function(i){var c=function(t){function c(e,n){var o=t.call(this,e,n)||this;return o.unsubscribe=null,o.handleChange=function(){if(o.unsubscribe){var e=r(o.store.getState(),o.props);o.setState({subscribed:e})}},o.store=o.context,o.state={subscribed:r(o.store.getState(),e),store:o.store,props:e},o}return p(c,t),c.getDerivedStateFromProps=function(t,n){return e&&2===e.length&&t!==n.props?{subscribed:r(n.store.getState(),t),props:t}:{props:t}},c.prototype.componentDidMount=function(){this.trySubscribe()},c.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},c.prototype.shouldComponentUpdate=function(e,t){return!s()(this.props,e)||!s()(this.state.subscribed,t.subscribed)},c.prototype.trySubscribe=function(){n&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},c.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},c.prototype.render=function(){var e=d(d(d({},this.props),this.state.subscribed),{store:this.store});return o.createElement(i,d({},e,{ref:this.props.miniStoreForwardedRef}))},c.displayName="Connect("+function(e){return e.displayName||e.name||"Component"}(i)+")",c.contextType=a,c}(o.Component);if(t.forwardRef){var u=o.forwardRef((function(e,t){return o.createElement(c,d({},e,{miniStoreForwardedRef:t}))}));return f()(u,i)}return f()(c,i)}}var m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function y(e){var t=e,n=[];return{setState:function(e){t=m(m({},t),e);for(var r=0;r<n.length;r++)n[r]()},getState:function(){return t},subscribe:function(e){return n.push(e),function(){var t=n.indexOf(e);n.splice(t,1)}}}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(21),o=n.n(r);function i(e,t,n,r){var i=o.a.unstable_batchedUpdates?function(e){o.a.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,i)}}}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(1088),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var r=n(0),o=n(514),i=function(e){return r.createElement(c,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return r.createElement(o.a,{image:o.a.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(o.a,{image:o.a.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return r.createElement(o.a,null)}}))};var a=r.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},renderEmpty:i}),c=a.Consumer},,function(e,t,n){"use strict";e.exports=function(e,t,n,r){for(var o=65535&e|0,i=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(o=o+t[r++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16|0}},function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t,n,o){var i=r,a=o+n;e^=-1;for(var c=o;c<a;c++)e=e>>>8^i[255&(e^t[c])];return-1^e}},function(e,t,n){"use strict";var r=n(68),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var a=new r.Buf8(256),c=0;c<256;c++)a[c]=c>=252?6:c>=248?5:c>=240?4:c>=224?3:c>=192?2:1;function u(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,t.string2buf=function(e){var t,n,o,i,a,c=e.length,u=0;for(i=0;i<c;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<c&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),u+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(u),a=0,i=0;a<u;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<c&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},t.buf2binstring=function(e){return u(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,o=t.length;n<o;n++)t[n]=e.charCodeAt(n);return t},t.buf2string=function(e,t){var n,r,o,i,c=t||e.length,s=new Array(2*c);for(r=0,n=0;n<c;)if((o=e[n++])<128)s[r++]=o;else if((i=a[o])>4)s[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&n<c;)o=o<<6|63&e[n++],i--;i>1?s[r++]=65533:o<65536?s[r++]=o:(o-=65536,s[r++]=55296|o>>10&1023,s[r++]=56320|1023&o)}return u(s,r)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},function(e,t,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t,n){var r=n(311),o=n(64),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=u},function(e,t){var n="object"==typeof global&&global&&global.Object===Object&&global;e.exports=n},function(e,t,n){(function(e){var r=n(66),o=n(314),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;e.exports=u}).call(this,n(188)(e))},function(e,t,n){var r=n(69),o=n(115);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(150),o=n(116);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(228);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(158);function a(e){var t=[];return o.a.Children.forEach(e,(function(e){null!=e&&(Array.isArray(e)?t=t.concat(a(e)):Object(i.isFragment)(e)&&e.props?t=t.concat(a(e.props.children)):t.push(e))})),t}},,function(e,t,n){"use strict";var r=n(674);t.a=r.a},function(e,t,n){var r=n(309),o=n(157);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(315),o=n(258),i=n(259),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(460),o=n(64);e.exports=function e(t,n,i,a,c){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,c))}},function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){var r;!function(o,i){"use strict";var a="model",c="name",u="type",s="vendor",l="version",f="mobile",p="tablet",d="smarttv",h=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},v=function(e,t){return"string"==typeof e&&-1!==m(t).indexOf(m(e))},m=function(e){return e.toLowerCase()},y=function(e,t){if("string"==typeof e)return e=e.replace(/^\s\s*/,""),void 0===t?e:e.substring(0,350)},b=function(e,t){for(var n,r,o,i,a,c,u=0;u<t.length&&!a;){var s=t[u],l=t[u+1];for(n=r=0;n<s.length&&!a;)if(a=s[n++].exec(e))for(o=0;o<l.length;o++)c=a[++r],"object"==typeof(i=l[o])&&i.length>0?2===i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,c):this[i[0]]=i[1]:3===i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=c?c.replace(i[1],i[2]):void 0:this[i[0]]=c?i[1].call(this,c,i[2]):void 0:4===i.length&&(this[i[0]]=c?i[3].call(this,c.replace(i[1],i[2])):void 0):this[i]=c||void 0;u+=2}},g=function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(v(t[n][r],e))return"?"===n?void 0:n}else if(v(t[n],e))return"?"===n?void 0:n;return e},O={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},w={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,l],[/opios[\/ ]+([\w\.]+)/i],[l,[c,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[l,[c,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[c,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[c,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[c,"IE"]],[/yabrowser\/([\w\.]+)/i],[l,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure Browser"],l],[/\bfocus\/([\w\.]+)/i],[l,[c,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[l,[c,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[c,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[c,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[l,[c,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 Browser"]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 Browser"],l],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,"Facebook"],l],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[c,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[c,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,"Chrome WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[c,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[l,g,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[c,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[c,l],[/(cobalt)\/([\w\.]+)/i],[c,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",m]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",m]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",m]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[s,"Samsung"],[u,p]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[s,"Samsung"],[u,f]],[/\((ip(?:hone|od)[\w ]*);/i],[a,[s,"Apple"],[u,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[s,"Apple"],[u,p]],[/(macintosh);/i],[a,[s,"Apple"]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[s,"Huawei"],[u,p]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[s,"Huawei"],[u,f]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[s,"Xiaomi"],[u,f]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[s,"Xiaomi"],[u,p]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[s,"OPPO"],[u,f]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[s,"Vivo"],[u,f]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[s,"Realme"],[u,f]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[s,"Motorola"],[u,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[s,"Motorola"],[u,p]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[s,"LG"],[u,p]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[s,"LG"],[u,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[s,"Lenovo"],[u,p]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[s,"Nokia"],[u,f]],[/(pixel c)\b/i],[a,[s,"Google"],[u,p]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[s,"Google"],[u,f]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[s,"Sony"],[u,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[s,"Sony"],[u,p]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[s,"OnePlus"],[u,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[s,"Amazon"],[u,p]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[s,"Amazon"],[u,f]],[/(playbook);[-\w\),; ]+(rim)/i],[a,s,[u,p]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[s,"BlackBerry"],[u,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[s,"ASUS"],[u,p]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[s,"ASUS"],[u,f]],[/(nexus 9)/i],[a,[s,"HTC"],[u,p]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[s,[a,/_/g," "],[u,f]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[s,"Acer"],[u,p]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[s,"Meizu"],[u,f]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[s,"Sharp"],[u,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[s,a,[u,f]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[s,a,[u,p]],[/(surface duo)/i],[a,[s,"Microsoft"],[u,p]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[s,"Fairphone"],[u,f]],[/(u304aa)/i],[a,[s,"AT&T"],[u,f]],[/\bsie-(\w*)/i],[a,[s,"Siemens"],[u,f]],[/\b(rct\w+) b/i],[a,[s,"RCA"],[u,p]],[/\b(venue[\d ]{2,7}) b/i],[a,[s,"Dell"],[u,p]],[/\b(q(?:mv|ta)\w+) b/i],[a,[s,"Verizon"],[u,p]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[s,"Barnes & Noble"],[u,p]],[/\b(tm\d{3}\w+) b/i],[a,[s,"NuVision"],[u,p]],[/\b(k88) b/i],[a,[s,"ZTE"],[u,p]],[/\b(nx\d{3}j) b/i],[a,[s,"ZTE"],[u,f]],[/\b(gen\d{3}) b.+49h/i],[a,[s,"Swiss"],[u,f]],[/\b(zur\d{3}) b/i],[a,[s,"Swiss"],[u,p]],[/\b((zeki)?tb.*\b) b/i],[a,[s,"Zeki"],[u,p]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[s,"Dragon Touch"],a,[u,p]],[/\b(ns-?\w{0,9}) b/i],[a,[s,"Insignia"],[u,p]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[s,"NextBook"],[u,p]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[s,"Voice"],a,[u,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[s,"LvTel"],a,[u,f]],[/\b(ph-1) /i],[a,[s,"Essential"],[u,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[s,"Envizen"],[u,p]],[/\b(trio[-\w\. ]+) b/i],[a,[s,"MachSpeed"],[u,p]],[/\btu_(1491) b/i],[a,[s,"Rotor"],[u,p]],[/(shield[\w ]+) b/i],[a,[s,"Nvidia"],[u,p]],[/(sprint) (\w+)/i],[s,a,[u,f]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[s,"Microsoft"],[u,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[s,"Zebra"],[u,p]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[s,"Zebra"],[u,f]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[s,a,[u,"console"]],[/droid.+; (shield) bui/i],[a,[s,"Nvidia"],[u,"console"]],[/(playstation [345portablevi]+)/i],[a,[s,"Sony"],[u,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[s,"Microsoft"],[u,"console"]],[/smart-tv.+(samsung)/i],[s,[u,d]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[s,"Samsung"],[u,d]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[s,"LG"],[u,d]],[/(apple) ?tv/i],[s,[a,"Apple TV"],[u,d]],[/crkey/i],[[a,"Chromecast"],[s,"Google"],[u,d]],[/droid.+aft(\w)( bui|\))/i],[a,[s,"Amazon"],[u,d]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[s,"Sharp"],[u,d]],[/(bravia[\w ]+)( bui|\))/i],[a,[s,"Sony"],[u,d]],[/(mitv-\w{5}) bui/i],[a,[s,"Xiaomi"],[u,d]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[s,y],[a,y],[u,d]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,d]],[/((pebble))app/i],[s,a,[u,"wearable"]],[/droid.+; (glass) \d/i],[a,[s,"Google"],[u,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[a,[s,"Zebra"],[u,"wearable"]],[/(quest( 2)?)/i],[a,[s,"Facebook"],[u,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[s,[u,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[u,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[u,p]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,p]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,f]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[s,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[c,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[l,g,O]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[l,g,O]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,"Mac OS"],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,l],[/\(bb(10);/i],[l,[c,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[c,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[c,"webOS"]],[/crkey\/([\d\.]+)/i],[l,[c,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[c,"Chromium OS"],l],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,l],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[c,l]]},x=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof x))return new x(e,t).getResult();var n=e||(void 0!==o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),r=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(w,t):w;return this.getBrowser=function(){var e,t={};return t[c]=void 0,t[l]=void 0,b.call(t,n,r.browser),t.major="string"==typeof(e=t.version)?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,t},this.getCPU=function(){var e={architecture:void 0};return b.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return b.call(e,n,r.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return b.call(e,n,r.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return b.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n="string"==typeof e&&e.length>350?y(e,350):e,this},this.setUA(n),this};x.VERSION="0.7.33",x.BROWSER=h([c,l,"major"]),x.CPU=h(["architecture"]),x.DEVICE=h([a,s,u,"console",f,d,p,"wearable","embedded"]),x.ENGINE=x.OS=h([c,l]),void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=x),t.UAParser=x):n(348)?void 0===(r=function(){return x}.call(t,n,t,e))||(e.exports=r):void 0!==o&&(o.UAParser=x);var j=void 0!==o&&(o.jQuery||o.Zepto);if(j&&!j.ua){var E=new x;j.ua=E.getResult(),j.ua.get=function(){return E.getUA()},j.ua.set=function(e){E.setUA(e);var t=E.getResult();for(var n in t)j.ua[n]=t[n]}}}("object"==typeof window?window:this)},function(e,t,n){var r=n(498),o=n(499);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var c=0;c<16;++c)t[i+c]=a[c];return t||o(a)}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(21),a=n(26),c=n.n(a),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(e,t){return e(t={exports:{}},t.exports),t.exports}var l=s((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t})),f=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()},p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},d=s((function(e){!function(t){var n=function(e,t,r){if(!u(t)||l(t)||f(t)||p(t)||c(t))return t;var o,i=0,a=0;if(s(t))for(o=[],a=t.length;i<a;i++)o.push(n(e,t[i],r));else for(var d in o={},t)Object.prototype.hasOwnProperty.call(t,d)&&(o[e(d,r)]=n(e,t[d],r));return o},r=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=r(e);return t.substr(0,1).toUpperCase()+t.substr(1)},i=function(e,t){return function(e,t){var n=(t=t||{}).separator||"_",r=t.split||/(?=[A-Z])/;return e.split(r).join(n)}(e,t).toLowerCase()},a=Object.prototype.toString,c=function(e){return"function"==typeof e},u=function(e){return e===Object(e)},s=function(e){return"[object Array]"==a.call(e)},l=function(e){return"[object Date]"==a.call(e)},f=function(e){return"[object RegExp]"==a.call(e)},p=function(e){return"[object Boolean]"==a.call(e)},d=function(e){return(e-=0)==e},h=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,r){return n(t,e,r)}},v={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(e,t){return n(h(r,t),e)},decamelizeKeys:function(e,t){return n(h(i,t),e,t)},pascalizeKeys:function(e,t){return n(h(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=v:t.humps=v}(u)})).decamelize;function h(e){var t=e.root,n=e.children;return Object(i.createPortal)(n,t)}h.propTypes={root:c.a.object.isRequired,children:c.a.node.isRequired};var v=new Map;var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Proxy(e,{get:function(e,t){var n,i,a=d(t,{separator:"-"});return v.has(a)||v.set(a,(n={tag:a},(i=Object(r.forwardRef)((function(e,t){var i=e.mode,a=e.delegatesFocus,c=e.styleSheets,u=e.children,s=p(e,["mode","delegatesFocus","styleSheets","children"]),d=Object(r.useState)(null),v=f(d,2),m=v[0],y=v[1],b=Object(r.useState)(null),g=f(b,2),O=g[0],w=g[1];return Object(r.useEffect)((function(){if(m){var e=m.attachShadow({mode:i,delegatesFocus:a});c.length>0&&(e.adoptedStyleSheets=c),t&&"function"==typeof t&&t(m),t&&"current"in t&&(t.current=m),w(e)}}),[m]),o.a.createElement(n.tag,l({ref:y},s),O&&o.a.createElement(h,{root:O},u))}))).propTypes={mode:c.a.oneOf(["open","closed"]),delegatesFocus:c.a.bool,styleSheets:c.a.arrayOf(c.a.string),children:c.a.node.isRequired},i.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[]},i)),v.get(a)}})}();t.a=m},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1077))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},,function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,c,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(93),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(143),o=n(455),i=n(456),a=n(457),c=n(458),u=n(459);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,e.exports=s},function(e,t,n){"use strict";var r=n(50);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var c=e.indexOf("#");-1!==c&&(e=e.slice(0,c)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createActionCreator=function(e){return(...t)=>{switch(t.length){case 0:return{type:e};case 1:return{type:e,payload:t[0]};default:return{type:e,payload:t[0],meta:t[1]}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(184);t.createDefaultActionCreators=function(e,t,n){const o={};if(n)for(const e in n)r.hasOwnProperty.call(n,e)&&(o[e]=n[e]);for(const i in t)r.hasOwnProperty.call(t,i)&&(n&&r.hasOwnProperty.call(o,i)||(o[i]=e(i)));return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createActionCreator=function(e){return(...t)=>{switch(t.length){case 0:return{type:e};case 1:return{type:e,payload:t[0]};case 2:return{type:e,payload:t[0],error:t[1]};default:return{type:e,payload:t[0],error:t[1],meta:t[2]}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineObjects=function(...e){return Object.assign({},...e)}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";var r=n(830),o=n(831),i=n(650);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){var r,o,i,a,c,u,s,l;e.exports=(l=n(49),window.axios,n(501),o=(r=l).lib,i=o.Base,a=o.WordArray,c=r.algo,u=c.MD5,s=c.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),o=a.create(),i=o.words,c=n.keySize,u=n.iterations;i.length<c;){s&&r.update(s);var s=r.update(e).finalize(t);r.reset();for(var l=1;l<u;l++)s=r.finalize(s),r.reset();o.concat(s)}return o.sigBytes=4*c,o}}),r.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)},l.EvpKDF)},function(e,t,n){"use strict";(function(e){var r,o=n(351);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:e;var i=Object(o.a)(r);t.a=i}).call(this,n(570)(e))},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var s=i[u];if(!c(s))return!1;var l=e[s],f=t[s];if(!1===(o=n?n.call(r,l,f,s):void 0)||void 0===o&&l!==f)return!1}return!0}},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(89),c=n(294),u=n.n(c),s=n(177),l=n(110);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=Object(s.a)("text","input");function O(e){return!!(e.prefix||e.suffix||e.allowClear)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(c,e);var t,n,o,a=m(c);function c(){var e;return d(this,c),(e=a.apply(this,arguments)).containerRef=r.createRef(),e.onInputMouseUp=function(t){var n;(null===(n=e.containerRef.current)||void 0===n?void 0:n.contains(t.target))&&(0,e.props.triggerFocus)()},e}return t=c,(n=[{key:"renderClearIcon",value:function(e){var t=this.props,n=t.allowClear,o=t.value,a=t.disabled,c=t.readOnly,s=t.inputType,l=t.handleReset;if(!n)return null;var f=!a&&!c&&o,d=s===g[0]?"".concat(e,"-textarea-clear-icon"):"".concat(e,"-clear-icon");return r.createElement(u.a,{onClick:l,className:i()(d,p({},"".concat(d,"-hidden"),!f)),role:"button"})}},{key:"renderSuffix",value:function(e){var t=this.props,n=t.suffix,o=t.allowClear;return n||o?r.createElement("span",{className:"".concat(e,"-suffix")},this.renderClearIcon(e),n):null}},{key:"renderLabeledIcon",value:function(e,t){var n,o=this.props,a=o.focused,c=o.value,u=o.prefix,s=o.className,f=o.size,d=o.suffix,h=o.disabled,v=o.allowClear,m=o.direction,y=o.style,b=o.readOnly,g=this.renderSuffix(e);if(!O(this.props))return Object(l.a)(t,{value:c});var w=u?r.createElement("span",{className:"".concat(e,"-prefix")},u):null,x=i()(s,"".concat(e,"-affix-wrapper"),(p(n={},"".concat(e,"-affix-wrapper-focused"),a),p(n,"".concat(e,"-affix-wrapper-disabled"),h),p(n,"".concat(e,"-affix-wrapper-sm"),"small"===f),p(n,"".concat(e,"-affix-wrapper-lg"),"large"===f),p(n,"".concat(e,"-affix-wrapper-input-with-clear-btn"),d&&v&&c),p(n,"".concat(e,"-affix-wrapper-rtl"),"rtl"===m),p(n,"".concat(e,"-affix-wrapper-readonly"),b),n));return r.createElement("span",{ref:this.containerRef,className:x,style:y,onMouseUp:this.onInputMouseUp},w,Object(l.a)(t,{style:null,value:c,className:D(e,f,h)}),g)}},{key:"renderInputWithLabel",value:function(e,t){var n,o,a=this.props,c=a.addonBefore,u=a.addonAfter,s=a.style,f=a.size,d=a.className,h=a.direction;if(!c&&!u)return t;var v="".concat(e,"-group"),m="".concat(v,"-addon"),y=c?r.createElement("span",{className:m},c):null,b=u?r.createElement("span",{className:m},u):null,g=i()("".concat(e,"-wrapper"),(p(n={},v,c||u),p(n,"".concat(v,"-rtl"),"rtl"===h),n)),O=i()(d,"".concat(e,"-group-wrapper"),(p(o={},"".concat(e,"-group-wrapper-sm"),"small"===f),p(o,"".concat(e,"-group-wrapper-lg"),"large"===f),p(o,"".concat(e,"-group-wrapper-rtl"),"rtl"===h),o));return r.createElement("span",{className:O,style:s},r.createElement("span",{className:g},y,Object(l.a)(t,{style:null}),b))}},{key:"renderTextAreaWithClearIcon",value:function(e,t){var n=this.props,o=n.value,a=n.allowClear,c=n.className,u=n.style,s=n.direction;if(!a)return Object(l.a)(t,{value:o});var f=i()(c,"".concat(e,"-affix-wrapper"),p({},"".concat(e,"-affix-wrapper-rtl"),"rtl"===s),"".concat(e,"-affix-wrapper-textarea-with-clear-btn"));return r.createElement("span",{className:f,style:u},Object(l.a)(t,{style:null,value:o}),this.renderClearIcon(e))}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.inputType,r=e.element;return n===g[0]?this.renderTextAreaWithClearIcon(t,r):this.renderInputWithLabel(t,this.renderLabeledIcon(t,r))}}])&&h(t.prototype,n),o&&h(t,o),c}(r.Component),x=n(196),j=n(155),E=n(91);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){return null==e?"":e}function R(e,t,n){if(n){var r=t;if("click"===t.type){(r=Object.create(t)).target=e,r.currentTarget=e;var o=e.value;return e.value="",n(r),void(e.value=o)}n(r)}}function D(e,t,n,r){var o;return i()(e,(T(o={},"".concat(e,"-sm"),"small"===t),T(o,"".concat(e,"-lg"),"large"===t),T(o,"".concat(e,"-disabled"),n),T(o,"".concat(e,"-rtl"),"rtl"===r),o))}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(u,e);var t,n,o,c=k(u);function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=c.call(this,e)).direction="ltr",t.focus=function(){t.input.focus()},t.saveClearableInput=function(e){t.clearableInput=e},t.saveInput=function(e){t.input=e},t.onFocus=function(e){var n=t.props.onFocus;t.setState({focused:!0},t.clearPasswordValueAttribute),n&&n(e)},t.onBlur=function(e){var n=t.props.onBlur;t.setState({focused:!1},t.clearPasswordValueAttribute),n&&n(e)},t.handleReset=function(e){t.setValue("",(function(){t.focus()})),R(t.input,e,t.props.onChange)},t.renderInput=function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=t.props,u=c.className,s=c.addonBefore,l=c.addonAfter,f=c.size,p=c.disabled,d=Object(a.default)(t.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType"]);return r.createElement("input",_({autoComplete:o.autoComplete},d,{onChange:t.handleChange,onFocus:t.onFocus,onBlur:t.onBlur,onKeyDown:t.handleKeyDown,className:i()(D(e,f||n,p,t.direction),T({},u,u&&!s&&!l)),ref:t.saveInput}))},t.clearPasswordValueAttribute=function(){t.removePasswordTimeout=setTimeout((function(){t.input&&"password"===t.input.getAttribute("type")&&t.input.hasAttribute("value")&&t.input.removeAttribute("value")}))},t.handleChange=function(e){t.setValue(e.target.value,t.clearPasswordValueAttribute),R(t.input,e,t.props.onChange)},t.handleKeyDown=function(e){var n=t.props,r=n.onPressEnter,o=n.onKeyDown;13===e.keyCode&&r&&r(e),o&&o(e)},t.renderComponent=function(e){var n=e.getPrefixCls,o=e.direction,i=e.input,a=t.state,c=a.value,u=a.focused,s=n("input",t.props.prefixCls);return t.direction=o,r.createElement(j.b.Consumer,null,(function(e){return r.createElement(w,_({size:e},t.props,{prefixCls:s,inputType:"input",value:A(c),element:t.renderInput(s,e,i),handleReset:t.handleReset,ref:t.saveClearableInput,direction:o,focused:u,triggerFocus:t.focus}))}))};var n=void 0===e.value?e.defaultValue:e.value;return t.state={value:n,focused:!1,prevValue:e.value},t}return t=u,o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevValue,r={prevValue:e.value};return void 0===e.value&&n===e.value||(r.value=e.value),r}}],(n=[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(e){return O(e)!==O(this.props)&&Object(E.a)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(e,t){void 0===this.props.value&&this.setState({value:e},t)}},{key:"render",value:function(){return r.createElement(x.a,null,this.renderComponent)}}])&&C(t.prototype,n),o&&C(t,o),u}(r.Component);I.defaultProps={type:"text"};var L=I;function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z=function(e){return r.createElement(x.a,null,(function(t){var n,o=t.getPrefixCls,a=t.direction,c=e.prefixCls,u=e.className,s=void 0===u?"":u,l=o("input-group",c),f=i()(l,(F(n={},"".concat(l,"-lg"),"large"===e.size),F(n,"".concat(l,"-sm"),"small"===e.size),F(n,"".concat(l,"-compact"),e.compact),F(n,"".concat(l,"-rtl"),"rtl"===a),n),s);return r.createElement("span",{className:f,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}))},B=n(181),H=n(630),K=n.n(H),V=n(180),U=n.n(V),W=n(84);function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(){return(G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var $=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Y=r.forwardRef((function(e,t){var n=r.useRef(null),o=function(t){var n=e.onChange,r=e.onSearch;t&&t.target&&"click"===t.type&&r&&r(t.target.value,t),n&&n(t)},a=function(e){var t;document.activeElement===(null===(t=n.current)||void 0===t?void 0:t.input)&&e.preventDefault()},c=function(t){var r,o=e.onSearch,i=e.loading,a=e.disabled;i||a||o&&o(null===(r=n.current)||void 0===r?void 0:r.input.value,t)},u=function(t){var n=e.enterButton,o=e.size;return n?r.createElement(j.b.Consumer,{key:"enterButton"},(function(e){return r.createElement(W.a,{className:"".concat(t,"-button"),type:"primary",size:o||e},r.createElement(U.a,null))})):r.createElement(U.a,{className:"".concat(t,"-icon"),key:"loadingIcon"})},s=function(t){var n=e.suffix,o=e.enterButton;if(e.loading&&!o)return[n,u(t)];if(o)return n;var i=r.createElement(K.a,{className:"".concat(t,"-icon"),key:"searchIcon",onClick:c});return n?[Object(l.c)(n,null,{key:"suffix"}),i]:i},f=function(t,n){var o,i=e.enterButton,s=e.disabled,f=e.addonAfter,p=e.loading,d="".concat(t,"-button");if(p&&i)return[u(t),f];if(!i)return f;var h=i,v=h.type&&!0===h.type.__ANT_BUTTON;return o=v||"button"===h.type?Object(l.a)(h,G({onMouseDown:a,onClick:c,key:"enterButton"},v?{className:d,size:n}:{})):r.createElement(W.a,{className:d,type:"primary",size:n,disabled:s,key:"enterButton",onMouseDown:a,onClick:c},!0===i?r.createElement(K.a,null):i),f?[o,Object(l.c)(f,null,{key:"addonAfter"})]:o},p=function(a){var u=a.getPrefixCls,l=a.direction,p=e.prefixCls,d=e.inputPrefixCls,h=e.enterButton,v=e.className,m=e.size,y=$(e,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete y.onSearch,delete y.loading;var b=u("input-search",p),g=u("input",d),O=function(e){var t,n;h?t=i()(b,v,(q(n={},"".concat(b,"-rtl"),"rtl"===l),q(n,"".concat(b,"-enter-button"),!!h),q(n,"".concat(b,"-").concat(e),!!e),n)):t=i()(b,v,q({},"".concat(b,"-rtl"),"rtl"===l));return t};return r.createElement(j.b.Consumer,null,(function(e){return r.createElement(L,G({ref:Object(B.a)(n,t),onPressEnter:c},y,{size:m||e,prefixCls:g,addonAfter:f(b,m||e),suffix:s(b),onChange:o,className:O(m||e)}))}))};return r.createElement(x.a,null,p)}));Y.defaultProps={enterButton:!1},Y.displayName="Search";var X=Y,Z=n(1030);function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(){return(Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function te(e,t){return(te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oe(e);if(t){var o=oe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return re(this,n)}}function re(e,t){return!t||"object"!==J(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&te(e,t)}(c,e);var t,n,o,i=ne(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,e)).focus=function(){t.resizableTextArea.textArea.focus()},t.saveTextArea=function(e){t.resizableTextArea=null==e?void 0:e.resizableTextArea},t.saveClearableInput=function(e){t.clearableInput=e},t.handleChange=function(e){t.setValue(e.target.value),R(t.resizableTextArea.textArea,e,t.props.onChange)},t.handleReset=function(e){t.setValue("",(function(){t.focus()})),R(t.resizableTextArea.textArea,e,t.props.onChange)},t.renderTextArea=function(e){return r.createElement(Z.a,Q({},Object(a.default)(t.props,["allowClear"]),{prefixCls:e,onChange:t.handleChange,ref:t.saveTextArea}))},t.renderComponent=function(e){var n=e.getPrefixCls,o=e.direction,i=t.state.value,a=n("input",t.props.prefixCls);return r.createElement(w,Q({},t.props,{prefixCls:a,direction:o,inputType:"text",value:A(i),element:t.renderTextArea(a),handleReset:t.handleReset,ref:t.saveClearableInput,triggerFocus:t.focus}))};var n=void 0===e.value?e.defaultValue:e.value;return t.state={value:n},t}return t=c,o=[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}],(n=[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return r.createElement(x.a,null,this.renderComponent)}}])&&ee(t.prototype,n),o&&ee(t,o),c}(r.Component),ae=n(776),ce=n.n(ae),ue=n(1013),se=n.n(ue);function le(){return(le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return de(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return de(e,t)}(e,t)||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 de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var he=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ve={click:"onClick",hover:"onMouseOver"},me=r.forwardRef((function(e,t){var n=pe(Object(r.useState)(!1),2),o=n[0],c=n[1],u=function(){e.disabled||c(!o)},s=function(n){var c=n.getPrefixCls,s=e.className,l=e.prefixCls,f=e.inputPrefixCls,p=e.size,d=e.visibilityToggle,h=he(e,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),v=c("input",f),m=c("input-password",l),y=d&&function(t){var n,i=e.action,a=e.iconRender,c=ve[i]||"",s=(void 0===a?function(){return null}:a)(o),l=(fe(n={},c,u),fe(n,"className","".concat(t,"-icon")),fe(n,"key","passwordIcon"),fe(n,"onMouseDown",(function(e){e.preventDefault()})),fe(n,"onMouseUp",(function(e){e.preventDefault()})),n);return r.cloneElement(r.isValidElement(s)?s:r.createElement("span",null,s),l)}(m),b=i()(m,s,fe({},"".concat(m,"-").concat(p),!!p)),g=le(le({},Object(a.default)(h,["suffix","iconRender"])),{type:o?"text":"password",className:b,prefixCls:v,suffix:y});return p&&(g.size=p),r.createElement(L,le({ref:t},g))};return r.createElement(x.a,null,s)}));me.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(e){return e?r.createElement(ce.a,null):r.createElement(se.a,null)}},me.displayName="Password";var ye=me;L.Group=z,L.Search=X,L.TextArea=ie,L.Password=ye;t.a=L},,function(e,t,n){var r=n(461),o=n(464),i=n(465);e.exports=function(e,t,n,a,c,u){var s=1&n,l=e.length,f=t.length;if(l!=f&&!(s&&f>l))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var h=-1,v=!0,m=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<l;){var y=e[h],b=t[h];if(a)var g=s?a(b,y,h,t,e,u):a(y,b,h,e,t,u);if(void 0!==g){if(g)continue;v=!1;break}if(m){if(!o(t,(function(e,t){if(!i(m,t)&&(y===e||c(y,e,n,a,u)))return m.push(t)}))){v=!1;break}}else if(y!==b&&!c(y,b,n,a,u)){v=!1;break}}return u.delete(e),u.delete(t),v}},function(e,t,n){var r=n(115);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(50),o=n(487),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(248)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(i)})),e.exports=u},function(e,t,n){"use strict";var r=n(50),o=n(488),i=n(490),a=n(230),c=n(400),u=n(493),s=n(494),l=n(249);e.exports=function(e){return new Promise((function(t,n){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+v)}var m=c(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),a(m,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};o(t,n,i),d=null}},d.onabort=function(){d&&(n(l("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(l("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var y=(e.withCredentials||s(m))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;y&&(p[e.xsrfHeaderName]=y)}if("setRequestHeader"in d&&r.forEach(p,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),n(e),d=null)})),f||(f=null),d.send(f)}))}},function(e,t,n){"use strict";var r=n(489);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(50);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],c=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function s(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=u(void 0,e[o])):n[o]=u(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(i,s),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=u(void 0,e[o])):n[o]=u(void 0,t[o])})),r.forEach(c,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))}));var l=o.concat(i).concat(a).concat(c),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(f,s),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"Field",(function(){return Pe})),n.d(t,"List",(function(){return Ne})),n.d(t,"useForm",(function(){return Le})),n.d(t,"FormProvider",(function(){return He}));var r=n(0),o=n(76),i=n(6),a=n(32),c=n(45),u=n(48),s=n(54),l=n(53),f=n(25),p=n(210),d=n(62),h=n(254);function v(e){return null==e?[]:Array.isArray(e)?e:[e]}var m=n(612),y=n.n(m);function b(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){b(i,r,o,a,c,"next",e)}function c(e){b(i,r,o,a,c,"throw",e)}a(void 0)}))}}var O=n(75);function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function S(e,t,n){return(S=E()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&j(o,n.prototype),o}).apply(null,arguments)}function _(e){var t="function"==typeof Map?new Map:void 0;return(_=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return S(e,arguments,x(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),j(r,e)})(e)}var C=/%[sdj%]/g,P=function(){};function k(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,o=t[0],i=t.length;if("function"==typeof o)return o.apply(null,t.slice(1));if("string"==typeof o){for(var a=String(o).replace(C,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}})),c=t[r];r<i;c=t[++r])a+=" "+c;return a}return o}function N(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function T(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var c=r;r+=1,c<o?t(e[c],i):n([])}}([])}var A=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(_(Error));function R(e,t,n,r){if(t.first){var o=new Promise((function(t,o){T(function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}(e),n,(function(e){return r(e),e.length?o(new A(e,k(e))):t()}))}));return o.catch((function(e){return e})),o}var i=t.firstFields||[];!0===i&&(i=Object.keys(e));var a=Object.keys(e),c=a.length,u=0,s=[],l=new Promise((function(t,o){var l=function(e){if(s.push.apply(s,e),++u===c)return r(s),s.length?o(new A(s,k(s))):t()};a.length||(r(s),t()),a.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?T(r,n,l):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,l)}))}));return l.catch((function(e){return e})),l}function D(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}}function I(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=w(w({},e[n]),r):e[n]=r}return e}function L(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!N(t,i||e.type)||r.push(M(o.messages.required,e.fullField))}var F={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},z={integer:function(e){return z.number(e)&&parseInt(e,10)===e},float:function(e){return z.number(e)&&!z.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!z.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(F.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(F.url)},hex:function(e){return"string"==typeof e&&!!e.match(F.hex)}};var B={required:L,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(M(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)L(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?z[i](t)||r.push(M(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(M(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,c="number"==typeof e.max,u=t,s=null,l="number"==typeof t,f="string"==typeof t,p=Array.isArray(t);if(l?s="number":f?s="string":p&&(s="array"),!s)return!1;p&&(u=t.length),f&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?u!==e.len&&r.push(M(o.messages[s].len,e.fullField,e.len)):a&&!c&&u<e.min?r.push(M(o.messages[s].min,e.fullField,e.min)):c&&!a&&u>e.max?r.push(M(o.messages[s].max,e.fullField,e.max)):a&&c&&(u<e.min||u>e.max)&&r.push(M(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&r.push(M(o.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(M(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(M(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function H(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,i)&&!e.required)return n();B.required(e,t,r,a,o,i),N(t,i)||B.type(e,t,r,a,o)}n(a)}var K={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,"string")&&!e.required)return n();B.required(e,t,r,i,o,"string"),N(t,"string")||(B.type(e,t,r,i,o),B.range(e,t,r,i,o),B.pattern(e,t,r,i,o),!0===e.whitespace&&B.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),N(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();B.required(e,t,r,i,o),N(t)||B.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,"array")&&!e.required)return n();B.required(e,t,r,i,o,"array"),N(t,"array")||(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,"string")&&!e.required)return n();B.required(e,t,r,i,o),N(t,"string")||B.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();var a;if(B.required(e,t,r,i,o),!N(t))a="number"==typeof t?new Date(t):t,B.type(e,a,r,i,o),a&&B.range(e,a.getTime(),r,i,o)}n(i)},url:H,hex:H,email:H,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;B.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();B.required(e,t,r,i,o)}n(i)}};function V(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var U=V();function W(e){this.rules=null,this._messages=U,this.define(e)}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||J(e)||X(e)||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 Y(e){return function(e){if(Array.isArray(e))return e}(e)||J(e)||X(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 X(e,t){if(e){if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function J(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function Q(e,t,n){if(!t.length)return n;var r,o=Y(t),i=o[0],a=o.slice(1);return(r=e||"number"!=typeof i?Array.isArray(e)?$(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e):[])[i]=Q(r[i],a,n),r}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){return v(e)}function ne(e,t){return function(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}(e,t)}function re(e,t,n){return Q(e,t,n)}function oe(e,t){var n={};return t.forEach((function(t){var r=ne(e,t);n=re(n,t,r)})),n}function ie(e,t){return e&&e.some((function(e){return se(e,t)}))}function ae(e){return"object"===Object(O.a)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function ce(e,t){var n=Array.isArray(e)?Object(a.a)(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return t?(Object.keys(t).forEach((function(e){var r=n[e],o=t[e],i=ae(r)&&ae(o);n[e]=i?ce(r,o||{}):o})),n):n}function ue(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return ce(e,t)}),e)}function se(e,t){return!(!e||!t||e.length!==t.length)&&e.every((function(e,n){return t[n]===e}))}function le(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&e in t.target?t.target[e]:t}function fe(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Object(a.a)(e.slice(0,n)),[o],Object(a.a)(e.slice(n,t)),Object(a.a)(e.slice(t+1,r))):i<0?[].concat(Object(a.a)(e.slice(0,t)),Object(a.a)(e.slice(t+1,n+1)),[o],Object(a.a)(e.slice(n+1,r))):e}W.prototype={messages:function(e){return e&&(this._messages=I(V(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var o,i,a=e,c=t,u=n;if("function"==typeof c&&(u=c,c={}),!this.rules||0===Object.keys(this.rules).length)return u&&u(),Promise.resolve();if(c.messages){var s=this.messages();s===U&&(s=V()),I(s,c.messages),c.messages=s}else c.messages=this.messages();var l={};(c.keys||Object.keys(this.rules)).forEach((function(t){o=r.rules[t],i=a[t],o.forEach((function(n){var o=n;"function"==typeof o.transform&&(a===e&&(a=w({},a)),i=a[t]=o.transform(i)),(o="function"==typeof o?{validator:o}:w({},o)).validator=r.getValidationMethod(o),o.field=t,o.fullField=o.fullField||t,o.type=r.getType(o),o.validator&&(l[t]=l[t]||[],l[t].push({rule:o,value:i,source:a,field:t}))}))}));var f={};return R(l,c,(function(e,t){var n,r=e.rule,o=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function i(e,t){return w(w({},t),{},{fullField:r.fullField+"."+e})}function a(n){void 0===n&&(n=[]);var a=n;if(Array.isArray(a)||(a=[a]),!c.suppressWarning&&a.length&&W.warning("async-validator:",a),a.length&&r.message&&(a=[].concat(r.message)),a=a.map(D(r)),c.first&&a.length)return f[r.field]=1,t(a);if(o){if(r.required&&!e.value)return r.message?a=[].concat(r.message).map(D(r)):c.error&&(a=[c.error(r,M(c.messages.required,r.field))]),t(a);var u={};if(r.defaultField)for(var s in e.value)e.value.hasOwnProperty(s)&&(u[s]=r.defaultField);for(var l in u=w(w({},u),e.rule.fields))if(u.hasOwnProperty(l)){var p=Array.isArray(u[l])?u[l]:[u[l]];u[l]=p.map(i.bind(null,l))}var d=new W(u);d.messages(c.messages),e.rule.options&&(e.rule.options.messages=c.messages,e.rule.options.error=c.error),d.validate(e.value,e.rule.options||c,(function(e){var n=[];a&&a.length&&n.push.apply(n,a),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(a)}o=o&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,a,e.source,c):r.validator&&(!0===(n=r.validator(r,e.value,a,e.source,c))?a():!1===n?a(r.message||r.field+" fails"):n instanceof Array?a(n):n instanceof Error&&a(n.message)),n&&n.then&&n.then((function(){return a()}),(function(e){return a(e)}))}),(function(e){!function(e){var t,n,r,o=[],i={};for(t=0;t<e.length;t++)n=e[t],r=void 0,Array.isArray(n)?o=(r=o).concat.apply(r,n):o.push(n);o.length?i=k(o):(o=null,i=null),u(o,i)}(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!K.hasOwnProperty(e.type))throw new Error(M("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?K.required:K[this.getType(e)]||!1}},W.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");K[e]=t},W.warning=P,W.messages=U,W.validators=K;var pe="'${name}' is not a valid ${type}",de={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:pe,method:pe,array:pe,object:pe,number:pe,date:pe,boolean:pe,integer:pe,float:pe,regexp:pe,email:pe,url:pe,hex:pe},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var me=W;function ye(e,t,n,r){var o=ve({},n,{name:t,enum:(n.enum||[]).join(", ")}),i=function(e,t){return function(){return function(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}(e,ve({},o,{},t))}};return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(o){var a=t[o];"string"==typeof a?n[o]=i(a,r):a&&"object"===Object(O.a)(a)?(n[o]={},e(a,n[o])):n[o]=a})),n}(ue({},de,e))}function be(e,t,n,r,o){return ge.apply(this,arguments)}function ge(){return(ge=g(y.a.mark((function e(t,n,o,c,u){var s,l,f,p,d,h;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=ve({},o),l=null,s&&"array"===s.type&&s.defaultField&&(l=s.defaultField,delete s.defaultField),f=new me(Object(i.a)({},t,[s])),p=ye(c.validateMessages,t,s,u),f.messages(p),d=[],e.prev=7,e.next=10,Promise.resolve(f.validate(Object(i.a)({},t,n),ve({},c)));case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(7),e.t0.errors?d=e.t0.errors.map((function(e,t){var n=e.message;return r.isValidElement(n)?r.cloneElement(n,{key:"error_".concat(t)}):n})):(console.error(e.t0),d=[p.default()]);case 15:if(d.length||!l){e.next=20;break}return e.next=18,Promise.all(n.map((function(e,n){return be("".concat(t,".").concat(n),e,l,c,u)})));case 18:return h=e.sent,e.abrupt("return",h.reduce((function(e,t){return[].concat(Object(a.a)(e),Object(a.a)(t))}),[]));case 20:return e.abrupt("return",d);case 21:case"end":return e.stop()}}),e,null,[[7,12]])})))).apply(this,arguments)}function Oe(e,t,n,r,o,i){var a=e.join("."),c=n.map((function(e){var t=e.validator;return t?ve({},e,{validator:function(e,n,r){var o=!1,i=t(e,n,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){Object(d.a)(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"==typeof i.then&&"function"==typeof i.catch,Object(d.a)(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e)}))}}):e})).map((function(e){return be(a,t,e,r,i)})),u=(o?function(e){return xe.apply(this,arguments)}(c):function(e){return we.apply(this,arguments)}(c)).then((function(e){return e.length?Promise.reject(e):[]}));return u.catch((function(e){return e})),u}function we(){return(we=g(y.a.mark((function e(t){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Object(a.a)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(){return(xe=g(y.a.mark((function e(t){var n;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.length&&e(r),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Se(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _e(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Ce=function(e){Object(s.a)(o,e);var t,n=(t=o,function(){var e,n=Object(f.a)(t);if(Se()){var r=Object(f.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(l.a)(this,e)});function o(){var e;return Object(c.a)(this,o),(e=n.apply(this,arguments)).state={resetCount:0},e.cancelRegisterFunc=null,e.destroy=!1,e.touched=!1,e.dirty=!1,e.validatePromise=null,e.errors=[],e.cancelRegister=function(){var t=e.props.preserve;e.cancelRegisterFunc&&e.cancelRegisterFunc(t),e.cancelRegisterFunc=null},e.getNamePath=function(){var t=e.props.name,n=e.context.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat(Object(a.a)(r),Object(a.a)(t)):[]},e.getRules=function(){var t=e.props.rules;return(void 0===t?[]:t).map((function(t){return"function"==typeof t?t(e.context):t}))},e.refresh=function(){e.destroy||e.setState((function(e){return{resetCount:e.resetCount+1}}))},e.onStoreChange=function(t,n,r){var o=e.props,i=o.shouldUpdate,a=o.dependencies,c=void 0===a?[]:a,u=o.onReset,s=r.store,l=e.getNamePath(),f=e.getValue(t),p=e.getValue(s),d=n&&ie(n,l);switch("valueUpdate"===r.type&&"external"===r.source&&f!==p&&(e.touched=!0,e.dirty=!0,e.validatePromise=null,e.errors=[]),r.type){case"reset":if(!n||d)return e.touched=!1,e.dirty=!1,e.validatePromise=null,e.errors=[],u&&u(),void e.refresh();break;case"setField":if(d){var h=r.data;return"touched"in h&&(e.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(e.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(e.errors=h.errors||[]),e.dirty=!0,void e.reRender()}if(i&&!l.length&&_e(i,t,s,f,p,r))return void e.reRender();break;case"dependenciesUpdate":var v=c.map(te);if(d||v.some((function(e){return ie(r.relatedFields,e)})))return void e.reRender();break;default:if(d||c.some((function(e){return ie(n,te(e))}))||_e(i,t,s,f,p,r))return void e.reRender()}!0===i&&e.reRender()},e.validateRules=function(t){var n=e.props,r=n.validateFirst,o=void 0!==r&&r,i=n.messageVariables,a=(t||{}).triggerName,c=e.getNamePath(),u=e.getRules();a&&(u=u.filter((function(e){var t=e.validateTrigger;return!t||v(t).includes(a)})));var s=Oe(c,e.getValue(),u,t,o,i);return e.dirty=!0,e.validatePromise=s,e.errors=[],s.catch((function(e){return e})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.validatePromise===s&&(e.validatePromise=null,e.errors=t,e.reRender())})),s},e.isFieldValidating=function(){return!!e.validatePromise},e.isFieldTouched=function(){return e.touched},e.isFieldDirty=function(){return e.dirty},e.getErrors=function(){return e.errors},e.getMeta=function(){return e.prevValidating=e.isFieldValidating(),{touched:e.isFieldTouched(),validating:e.prevValidating,errors:e.errors,name:e.getNamePath()}},e.getOnlyChild=function(t){if("function"==typeof t){var n=e.getMeta();return Ee({},e.getOnlyChild(t(e.getControlled(),n,e.context)),{isFunction:!0})}var o=Object(p.a)(t);return 1===o.length&&r.isValidElement(o[0])?{child:o[0],isFunction:!1}:{child:o,isFunction:!1}},e.getValue=function(t){var n=e.context.getFieldsValue,r=e.getNamePath();return ne(t||n(!0),r)},e.getControlled=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.props,r=n.trigger,o=n.validateTrigger,a=n.getValueFromEvent,c=n.normalize,u=n.valuePropName,s=n.getValueProps,l=void 0!==o?o:e.context.validateTrigger,f=e.getNamePath(),p=e.context,d=p.getInternalHooks,m=p.getFieldsValue,y=d(h.a),b=y.dispatch,g=e.getValue(),O=s||function(e){return Object(i.a)({},u,e)},w=t[r],x=Ee({},t,{},O(g));x[r]=function(){var t;e.touched=!0,e.dirty=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t=a?a.apply(void 0,r):le.apply(void 0,[u].concat(r)),c&&(t=c(t,g,m(!0))),b({type:"updateValue",namePath:f,value:t}),w&&w.apply(void 0,r)};var j=v(l||[]);return j.forEach((function(t){var n=x[t];x[t]=function(){n&&n.apply(void 0,arguments);var r=e.props.rules;r&&r.length&&b({type:"validateField",namePath:f,triggerName:t})}})),x},e}return Object(u.a)(o,[{key:"componentDidMount",value:function(){var e=this.props.shouldUpdate,t=(0,this.context.getInternalHooks)(h.a).registerField;this.cancelRegisterFunc=t(this),!0===e&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.destroy=!0}},{key:"reRender",value:function(){this.destroy||this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),i=o.child;return o.isFunction?e=i:r.isValidElement(i)?e=r.cloneElement(i,this.getControlled(i.props)):(Object(d.a)(!i,"`children` of Field is not validate ReactElement."),e=i),r.createElement(r.Fragment,{key:t},e)}}]),o}(r.Component);Ce.contextType=h.b,Ce.defaultProps={trigger:"onChange",valuePropName:"value"};var Pe=function(e){var t=e.name,n=e.isListField,i=Object(o.a)(e,["name","isListField"]),a=void 0!==t?te(t):void 0,c="keep";return n||(c="_".concat((a||[]).join("_"))),r.createElement(Ce,Object.assign({key:c,name:a},i))};function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ne=function(e){var t=e.name,n=e.children,o=r.useContext(h.b),i=r.useRef({keys:[],id:0}).current;if("function"!=typeof n)return Object(d.a)(!1,"Form.List only accepts function as children."),null;var c=te(o.prefixName)||[],u=[].concat(Object(a.a)(c),Object(a.a)(te(t)));return r.createElement(h.b.Provider,{value:Me({},o,{prefixName:u})},r.createElement(Pe,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t}},(function(e){var t=e.value,r=void 0===t?[]:t,c=e.onChange,s=o.getFieldValue,l=function(){return s(u||[])||[]},f={add:function(e){i.keys=[].concat(Object(a.a)(i.keys),[i.id]),i.id+=1;var t=l();c([].concat(Object(a.a)(t),[e]))},remove:function(e){var t=l();if(!(e<0||e>=t.length)){var n=i.keys.map((function(t,n){return n<e?t:i.keys[n+1]}));i.keys=n.slice(0,-1),c(t.filter((function(t,n){return n!==e})))}},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(i.keys=fe(i.keys,e,t),c(fe(n,e,t)))}}};return n(r.map((function(e,t){var n=i.keys[t];return void 0===n&&(i.keys[t]=i.id,n=i.keys[t],i.id+=1),{name:t,key:n,isListField:!0}})),f)})))},Te=n(28);var Ae=function(){function e(){Object(c.a)(this,e),this.list=[]}return Object(u.a)(e,[{key:"set",value:function(e,t){var n=this.list.findIndex((function(t){return se(t.key,e)}));-1!==n?this.list[n].value=t:this.list.push({key:e,value:t})}},{key:"get",value:function(e){var t=this.list.find((function(t){return se(t.key,e)}));return t&&t.value}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.list=this.list.filter((function(t){return!se(t.key,e)}))}},{key:"map",value:function(e){return this.list.map(e)}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}();function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ie=function e(t){var n=this;Object(c.a)(this,e),this.formHooked=!1,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===h.a?(n.formHooked=!0,{dispatch:n.dispatch,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve}):(Object(d.a)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.setInitialValues=function(e,t){n.initialValues=e||{},t&&(n.store=ue({},e,n.store))},this.getInitialValue=function(e){return ne(n.initialValues,e)},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.timeoutId=null,this.warningUnhooked=function(){0},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Ae;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=te(e);return t.get(n)||{INVALIDATE_NAME_PATH:te(e)}}))},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),o=[];return r.forEach((function(e){var n="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(t){var r="getMeta"in e?e.getMeta():null;t(r)&&o.push(n)}else o.push(n)})),oe(n.store,o.map(te))},this.getFieldValue=function(e){n.warningUnhooked();var t=te(e);return ne(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors()}:{name:te(e[n]),errors:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=te(e);return n.getFieldsError([t])[0].errors},this.isFieldsTouched=function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],c=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(te),c=!1):(o=null,c=i):(o=i.map(te),c=a);var u=function(e){if(!o)return e.isFieldTouched();var t=e.getNamePath();return ie(o,t)?e.isFieldTouched():c};return c?n.getFieldEntities(!0).every(u):n.getFieldEntities(!0).some(u)},this.isFieldTouched=function(e){return n.warningUnhooked(),n.isFieldsTouched([e])},this.isFieldsValidating=function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(te);return t.some((function(e){var t=e.getNamePath();return ie(r,t)&&e.isFieldValidating()}))},this.isFieldValidating=function(e){return n.warningUnhooked(),n.isFieldsValidating([e])},this.resetWithFieldInitialValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Ae,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o,i=function(r){r.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))Object(d.a)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)Object(d.a)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var c=n.getFieldValue(o);e.skipExist&&void 0!==c||(n.store=re(n.store,o,Object(a.a)(i)[0].value))}}}}))};e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Object(a.a)(Object(a.a)(r).map((function(e){return e.entity}))))}))):o=r,i(o)},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e)return n.store=ue({},n.initialValues),n.resetWithFieldInitialValue(),void n.notifyObservers(t,null,{type:"reset"});var r=e.map(te);r.forEach((function(e){var t=n.getInitialValue(e);n.store=re(n.store,e,t)})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"})},this.setFields=function(e){n.warningUnhooked();var t=n.store;e.forEach((function(e){var r=e.name,i=(e.errors,Object(o.a)(e,["name","errors"])),a=te(r);"value"in i&&(n.store=re(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}))},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=De({},e.getMeta(),{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))},this.registerField=function(e){if(n.fieldEntities.push(e),void 0!==e.props.initialValue){var t=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(t){n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!1===(void 0!==t?t:n.preserve)&&(n.store=re(n.store,e.getNamePath(),void 0))}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=De({},r,{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()},this.updateValue=function(e,t){var r=te(e),o=n.store;n.store=re(n.store,r,t),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"});var i=n.getDependencyChildrenFields(r);n.validateFields(i),n.notifyObservers(o,i,{type:"dependenciesUpdate",relatedFields:[r].concat(Object(a.a)(i))});var c=n.callbacks.onValuesChange;c&&c(oe(n.store,[r]),n.store);n.triggerOnFieldsChange([r].concat(Object(a.a)(i)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;e&&(n.store=ue(n.store,e)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new Ae;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=te(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Ae;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}r(o.filter((function(t){var n=t.name;return ie(e,n)})),o)}},this.validateFields=function(e,t){n.warningUnhooked();var r=!!e,o=r?e.map(te):[],i=[];n.getFieldEntities(!0).forEach((function(e){if(r||o.push(e.getNamePath()),e.props.rules&&e.props.rules.length){var a=e.getNamePath();if(!r||ie(o,a)){var c=e.validateRules(De({validateMessages:De({},de,{},n.validateMessages)},t));i.push(c.then((function(){return{name:a,errors:[]}})).catch((function(e){return Promise.reject({name:a,errors:e})})))}}}));var a=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(i);n.lastValidatePromise=a,a.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var c=a.then((function(){return n.lastValidatePromise===a?Promise.resolve(n.getFieldsValue(o)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(o),errorFields:t,outOfDate:n.lastValidatePromise!==a})}));return c.catch((function(e){return e})),c},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t};var Le=function(e){var t=r.useRef(),n=r.useState(),o=Object(Te.a)(n,2)[1];if(!t.current)if(e)t.current=e;else{var i=new Ie((function(){o({})}));t.current=i.getForm()}return[t.current]};function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Be=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),He=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,a=e.children,c=r.useContext(Be),u=r.useRef({});return r.createElement(Be.Provider,{value:ze({},c,{validateMessages:ze({},c.validateMessages,{},t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:u.current}),c.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:u.current}),c.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(u.current=ze({},u.current,Object(i.a)({},e,t))),c.registerForm(e,t)},unregisterForm:function(e){var t=ze({},u.current);delete t[e],u.current=t,c.unregisterForm(e)}})},a)},Ke=Be;function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var We=function(e,t){var n=e.name,i=e.initialValues,c=e.fields,u=e.form,s=e.preserve,l=e.children,f=e.component,p=void 0===f?"form":f,d=e.validateMessages,v=e.validateTrigger,m=void 0===v?"onChange":v,y=e.onValuesChange,b=e.onFieldsChange,g=e.onFinish,w=e.onFinishFailed,x=Object(o.a)(e,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),j=r.useContext(Ke),E=Le(u),S=Object(Te.a)(E,1)[0],_=S.getInternalHooks(h.a),C=_.useSubscribe,P=_.setInitialValues,k=_.setCallbacks,M=_.setValidateMessages,N=_.setPreserve;r.useImperativeHandle(t,(function(){return S})),r.useEffect((function(){return j.registerForm(n,S),function(){j.unregisterForm(n)}}),[j,S,n]),M(Ue({},j.validateMessages,{},d)),k({onValuesChange:y,onFieldsChange:function(e){if(j.triggerFormChange(n,e),b){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];b.apply(void 0,[e].concat(r))}},onFinish:function(e){j.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:w}),N(s);var T=r.useRef(null);P(i,!T.current),T.current||(T.current=!0);var A=l,R="function"==typeof l;R&&(A=l(S.getFieldsValue(!0),S));C(!R);var D=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Object(O.a)(e)||"object"!==Object(O.a)(t))return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(Object(a.a)(n),Object(a.a)(r)));return Object(a.a)(o).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(D.current||[],c||[])||S.setFields(c||[]),D.current=c}),[c,S]);var I=r.useMemo((function(){return Ue({},S,{validateTrigger:m})}),[S,m]),L=r.createElement(h.b.Provider,{value:I},A);return!1===p?L:r.createElement(p,Object.assign({},x,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),S.submit()}}),L)},qe=r.forwardRef(We);qe.FormProvider=He,qe.Field=Pe,qe.List=Ne,qe.useForm=Le;t.default=qe},function(e,t,n){"use strict";n.r(t);var r=n(6),o=n(45),i=n(48),a=n(54),c=n(53),u=n(25),s=n(0),l=n(557),f=n(210),p=n(62),d=n(181),h=n(558);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var b=function(){var e=function(e){Object(a.a)(n,e);var t=y(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0},e.onResize=function(t){var n=e.props.onResize,r=t[0].target,o=r.getBoundingClientRect(),i=o.width,a=o.height,c=r.offsetWidth,u=r.offsetHeight,s=Math.floor(i),l=Math.floor(a);if(e.state.width!==s||e.state.height!==l){var f={width:s,height:l};e.setState(f),n&&n(m(m({},f),{},{offsetWidth:c,offsetHeight:u}))}},e.setChildNode=function(t){e.childNode=t},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var e=Object(l.a)(this.childNode||this);e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new h.a(this.onResize),this.resizeObserver.observe(e))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=Object(f.a)(e);if(t.length>1)Object(p.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return Object(p.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(s.isValidElement(n)&&Object(d.b)(n)){var r=n.ref;t[0]=s.cloneElement(n,{ref:Object(d.a)(r,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!s.isValidElement(e)||"key"in e&&null!==e.key?e:s.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),n}(s.Component);return e.displayName="ResizeObserver",e}();t.default=b},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(62),i="RC_FORM_INTERNAL_HOOKS",a=function(){Object(o.a)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},c=r.createContext({getFieldValue:a,getFieldsValue:a,getFieldError:a,getFieldsError:a,isFieldsTouched:a,isFieldTouched:a,isFieldValidating:a,isFieldsValidating:a,resetFields:a,setFields:a,setFieldsValue:a,validateFields:a,submit:a,getInternalHooks:function(){return a(),{dispatch:a,registerField:a,useSubscribe:a,setInitialValues:a,setCallbacks:a,getFields:a,setValidateMessages:a,setPreserve:a}}});t.b=c},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return u}));var r=n(75);function o(e){return null==e?[]:Array.isArray(e)?e:[e]}function i(e,t){if(!t&&"number"!=typeof t)return e;for(var n=o(t),r=e,i=0;i<n.length;i+=1){if(!r)return null;r=r[n[i]]}return r}function a(e){var t=[],n={};return e.forEach((function(e){for(var r=e||{},i=r.key,a=r.dataIndex,c=i||o(a).join("-")||"RC_TABLE_KEY";n[c];)c="".concat(c,"_next");n[c]=!0,t.push(c)})),t}function c(){var e={};function t(e,n){n&&Object.keys(n).forEach((function(o){var i=n[o];i&&"object"===Object(r.a)(i)?(e[o]=e[o]||{},t(e[o],i)):e[o]=i}))}for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.forEach((function(n){t(e,n)})),e}function u(e){return null!=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(8);var o=n(0),i=n(190),a=n(30);function c(e,t){var n,c,u,s=Object(o.useState)(t),l=s[0],f=s[1];if((u=e)&&(u instanceof r.a||"function"==typeof u.lift&&"function"==typeof u.subscribe))c=e;else{var p=e,d=Object(a.e)(a.a);c=Object(a.e)((function(){return p(d.current,l)})).current,n=Object(o.useRef)((function(e){return d.current.next(e)})).current}return Object(i.a)(c,f),Object(o.useDebugValue)(l),n?[l,n]:l}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(6),a=n(45),c=n(48),u=n(54),s=n(53),l=n(25),f=n(62);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e){var t,n,r=e.className,a=e.included,c=e.vertical,u=e.style,s=e.length,l=e.offset,f=e.reverse;s<0&&(f=!f,s=Math.abs(s),l=100-l);var p=c?(t={},Object(i.a)(t,f?"top":"bottom","".concat(l,"%")),Object(i.a)(t,f?"bottom":"top","auto"),Object(i.a)(t,"height","".concat(s,"%")),t):(n={},Object(i.a)(n,f?"right":"left","".concat(l,"%")),Object(i.a)(n,f?"left":"right","auto"),Object(i.a)(n,"width","".concat(s,"%")),n),h=d(d({},u),p);return a?o.a.createElement("div",{className:r,style:h}):null},v=n(76);function m(e,t,n){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(l.a)(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var y=n(194),b=n(5),g=n.n(b);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(e){var t=e.prefixCls,n=e.vertical,r=e.reverse,a=e.marks,c=e.dots,u=e.step,s=e.included,l=e.lowerBound,p=e.upperBound,d=e.max,h=e.min,v=e.dotStyle,m=e.activeDotStyle,y=d-h,b=function(e,t,n,r,o,i){Object(f.a)(!n||r>0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var a=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var c=o;c<=i;c+=r)-1===a.indexOf(c)&&a.push(c);return a}(0,a,c,u,h,d).map((function(e){var a,c="".concat(Math.abs(e-h)/y*100,"%"),u=!s&&e===p||s&&e<=p&&e>=l,f=w(w({},v),{},n?Object(i.a)({},r?"top":"bottom",c):Object(i.a)({},r?"right":"left",c));u&&(f=w(w({},f),m));var d=g()((a={},Object(i.a)(a,"".concat(t,"-dot"),!0),Object(i.a)(a,"".concat(t,"-dot-active"),u),Object(i.a)(a,"".concat(t,"-dot-reverse"),r),a));return o.a.createElement("span",{className:d,style:f,key:e})}));return o.a.createElement("div",{className:"".concat(t,"-step")},b)},j=n(75);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=function(e){var t=e.className,n=e.vertical,r=e.reverse,a=e.marks,c=e.included,u=e.upperBound,s=e.lowerBound,l=e.max,f=e.min,p=e.onClickLabel,d=Object.keys(a),h=l-f,v=d.map(parseFloat).sort((function(e,t){return e-t})).map((function(e){var l,d=a[e],v="object"===Object(j.a)(d)&&!o.a.isValidElement(d),m=v?d.label:d;if(!m&&0!==m)return null;var y=!c&&e===u||c&&e<=u&&e>=s,b=g()((l={},Object(i.a)(l,"".concat(t,"-text"),!0),Object(i.a)(l,"".concat(t,"-text-active"),y),l)),O=Object(i.a)({marginBottom:"-50%"},r?"top":"bottom","".concat((e-f)/h*100,"%")),w=Object(i.a)({transform:"translateX(".concat(r?"50%":"-50%",")"),msTransform:"translateX(".concat(r?"50%":"-50%",")")},r?"right":"left","".concat((e-f)/h*100,"%")),x=n?O:w,E=v?S(S({},x),d.style):x;return o.a.createElement("span",{className:b,style:E,key:e,onMouseDown:function(t){return p(t,e)},onTouchStart:function(t){return p(t,e)}},m)}));return o.a.createElement("div",{className:t},v)};function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var M=function(e){Object(u.a)(n,e);var t=k(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).state={clickFocused:!1},e.setHandleRef=function(t){e.handle=t},e.handleMouseUp=function(){document.activeElement===e.handle&&e.setClickFocus(!0)},e.handleMouseDown=function(t){t.preventDefault(),e.focus()},e.handleBlur=function(){e.setClickFocus(!1)},e.handleKeyDown=function(){e.setClickFocus(!1)},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.onMouseUpListener=Object(y.a)(document,"mouseup",this.handleMouseUp)}},{key:"componentWillUnmount",value:function(){this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"setClickFocus",value:function(e){this.setState({clickFocused:e})}},{key:"clickFocus",value:function(){this.setClickFocus(!0),this.focus()}},{key:"focus",value:function(){this.handle.focus()}},{key:"blur",value:function(){this.handle.blur()}},{key:"render",value:function(){var e,t,n,r=this.props,a=r.prefixCls,c=r.vertical,u=r.reverse,s=r.offset,l=r.style,f=r.disabled,p=r.min,d=r.max,h=r.value,m=r.tabIndex,y=r.ariaLabel,b=r.ariaLabelledBy,O=r.ariaValueTextFormatter,w=Object(v.a)(r,["prefixCls","vertical","reverse","offset","style","disabled","min","max","value","tabIndex","ariaLabel","ariaLabelledBy","ariaValueTextFormatter"]),x=g()(this.props.className,Object(i.a)({},"".concat(a,"-handle-click-focused"),this.state.clickFocused)),j=c?(e={},Object(i.a)(e,u?"top":"bottom","".concat(s,"%")),Object(i.a)(e,u?"bottom":"top","auto"),Object(i.a)(e,"transform",u?null:"translateY(+50%)"),e):(t={},Object(i.a)(t,u?"right":"left","".concat(s,"%")),Object(i.a)(t,u?"left":"right","auto"),Object(i.a)(t,"transform","translateX(".concat(u?"+":"-","50%)")),t),E=P(P({},l),j),S=m||0;return(f||null===m)&&(S=null),O&&(n=O(h)),o.a.createElement("div",Object.assign({ref:this.setHandleRef,tabIndex:S},w,{className:x,style:E,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,role:"slider","aria-valuemin":p,"aria-valuemax":d,"aria-valuenow":h,"aria-disabled":!!f,"aria-label":y,"aria-labelledby":b,"aria-valuetext":n}))}}]),n}(o.a.Component),N=n(32),T=n(21),A=n(41);function R(e,t){try{return Object.keys(t).some((function(n){return e.target===Object(T.findDOMNode)(t[n])}))}catch(e){return!1}}function D(e,t){var n=t.min,r=t.max;return e<n||e>r}function I(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function L(e,t){var n=t.marks,r=t.step,o=t.min,i=t.max,a=Object.keys(n).map(parseFloat);if(null!==r){var c=Math.floor((i-o)/r),u=Math.min((e-o)/r,c),s=Math.round(u)*r+o;a.push(s)}var l=a.map((function(t){return Math.abs(e-t)}));return a[l.indexOf(Math.min.apply(Math,Object(N.a)(l)))]}function F(e,t){return e?t.clientY:t.pageX}function z(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function B(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function H(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function K(e,t){var n=t.step,r=isFinite(L(e,t))?L(e,t):0;return null===n?r:parseFloat(r.toFixed(function(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}(n)))}function V(e){e.stopPropagation(),e.preventDefault()}function U(e,t,n){var r="increase";switch(e.keyCode){case A.a.UP:r=t&&n?"decrease":"increase";break;case A.a.RIGHT:r=!t&&n?"decrease":"increase";break;case A.a.DOWN:r=t&&n?"increase":"decrease";break;case A.a.LEFT:r=!t&&n?"increase":"decrease";break;case A.a.END:return function(e,t){return t.max};case A.a.HOME:return function(e,t){return t.min};case A.a.PAGE_UP:return function(e,t){return e+2*t.step};case A.a.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}(r,e,t)}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}function $(){}function Y(e){var t;return(t=function(e){Object(u.a)(n,e);var t=G(n);function n(e){var r;Object(a.a)(this,n),(r=t.call(this,e)).onMouseDown=function(e){if(0===e.button){var t=r.props.vertical,n=F(t,e);if(R(e,r.handlesRefs)){var o=B(t,e.target);r.dragOffset=n-o,n=o}else r.dragOffset=0;r.removeDocumentEvents(),r.onStart(n),r.addDocumentMouseEvents()}},r.onTouchStart=function(e){if(!I(e)){var t=r.props.vertical,n=z(t,e);if(R(e,r.handlesRefs)){var o=B(t,e.target);r.dragOffset=n-o,n=o}else r.dragOffset=0;r.onStart(n),r.addDocumentTouchEvents(),V(e)}},r.onFocus=function(e){var t=r.props,n=t.onFocus,o=t.vertical;if(R(e,r.handlesRefs)){var i=B(o,e.target);r.dragOffset=0,r.onStart(i),V(e),n&&n(e)}},r.onBlur=function(e){var t=r.props.onBlur;r.onEnd(),t&&t(e)},r.onMouseUp=function(){r.handlesRefs[r.prevMovedHandleIndex]&&r.handlesRefs[r.prevMovedHandleIndex].clickFocus()},r.onMouseMove=function(e){if(r.sliderRef){var t=F(r.props.vertical,e);r.onMove(e,t-r.dragOffset)}else r.onEnd()},r.onTouchMove=function(e){if(!I(e)&&r.sliderRef){var t=z(r.props.vertical,e);r.onMove(e,t-r.dragOffset)}else r.onEnd()},r.onKeyDown=function(e){r.sliderRef&&R(e,r.handlesRefs)&&r.onKeyboard(e)},r.onClickMarkLabel=function(e,t){e.stopPropagation(),r.onChange({value:t}),r.setState({value:t},(function(){return r.onEnd(!0)}))},r.saveSlider=function(e){r.sliderRef=e};var o=e.step,i=e.max,c=e.min,u=!isFinite(i-c)||(i-c)%o==0;return Object(f.a)(!o||Math.floor(o)!==o||u,"Slider[max] - Slider[min] (".concat(i-c,") should be a multiple of Slider[step] (").concat(o,")")),r.handlesRefs={},r}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){m(Object(l.a)(n.prototype),"componentWillUnmount",this)&&m(Object(l.a)(n.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,r=t.reverse,o=e.getBoundingClientRect();return n?r?o.bottom:o.top:window.pageXOffset+(r?o.right:o.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=Object(y.a)(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Object(y.a)(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=Object(y.a)(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Object(y.a)(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){this.props.disabled||this.handlesRefs[0].focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach((function(t){e.handlesRefs[t]&&e.handlesRefs[t].blur&&e.handlesRefs[t].blur()}))}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,i=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-i)*(o-r)+r:i*(o-r)+r}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min,r=(e-n)/(t.max-n);return Math.max(0,100*r)}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var e,t=this.props,r=t.prefixCls,a=t.className,c=t.marks,u=t.dots,s=t.step,f=t.included,p=t.disabled,d=t.vertical,h=t.reverse,v=t.min,y=t.max,b=t.children,O=t.maximumTrackStyle,w=t.style,j=t.railStyle,E=t.dotStyle,S=t.activeDotStyle,C=m(Object(l.a)(n.prototype),"render",this).call(this),P=C.tracks,k=C.handles,M=g()(r,(e={},Object(i.a)(e,"".concat(r,"-with-marks"),Object.keys(c).length),Object(i.a)(e,"".concat(r,"-disabled"),p),Object(i.a)(e,"".concat(r,"-vertical"),d),Object(i.a)(e,a,a),e));return o.a.createElement("div",{ref:this.saveSlider,className:M,onTouchStart:p?$:this.onTouchStart,onMouseDown:p?$:this.onMouseDown,onMouseUp:p?$:this.onMouseUp,onKeyDown:p?$:this.onKeyDown,onFocus:p?$:this.onFocus,onBlur:p?$:this.onBlur,style:w},o.a.createElement("div",{className:"".concat(r,"-rail"),style:q(q({},O),j)}),P,o.a.createElement(x,{prefixCls:r,vertical:d,reverse:h,marks:c,dots:u,step:s,included:f,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:v,dotStyle:E,activeDotStyle:S}),k,o.a.createElement(_,{className:"".concat(r,"-mark"),onClickLabel:p?$:this.onClickMarkLabel,vertical:d,marks:c,included:f,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:v,reverse:h}),b)}}]),n}(e)).displayName="ComponentEnhancer(".concat(e.displayName,")"),t.defaultProps=q(q({},e.defaultProps),{},{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var t=e.index,n=Object(v.a)(e,["index"]);return delete n.dragging,null===n.value?null:o.a.createElement(M,Object.assign({},n,{key:t}))},onBeforeChange:$,onChange:$,onAfterChange:$,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),t}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var Q=Y(function(e){Object(u.a)(n,e);var t=J(n);function n(e){var r;Object(a.a)(this,n),(r=t.call(this,e)).onEnd=function(e){var t=r.state.dragging;r.removeDocumentEvents(),(t||e)&&r.props.onAfterChange(r.getValue()),r.setState({dragging:!1})};var o=void 0!==e.defaultValue?e.defaultValue:e.min,i=void 0!==e.value?e.value:o;return r.state={value:r.trimAlignValue(i),dragging:!1},Object(f.a)(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),Object(f.a)(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),r}return Object(c.a)(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){if("value"in this.props||"min"in this.props||"max"in this.props){var n=this.props,r=n.value,o=n.onChange,i=void 0!==r?r:t.value,a=this.trimAlignValue(i,this.props);a!==t.value&&(this.setState({value:a}),D(i,this.props)&&o(a))}}},{key:"onChange",value:function(e){var t=this.props,n=!("value"in t),r=e.value>this.props.max?Z(Z({},e),{},{value:this.props.max}):e;n&&this.setState(r);var o=r.value;t.onChange(o)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){V(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=U(e,t.vertical,n);if(r){V(e);var o=this.state.value,i=r(o,this.props),a=this.trimAlignValue(i);if(a===o)return;this.onChange({value:a}),this.props.onAfterChange(a),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){return this.props.min}},{key:"getUpperBound",value:function(){return this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=Z(Z({},this.props),t),r=H(e,n);return K(r,n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.vertical,i=t.included,a=t.disabled,c=t.minimumTrackStyle,u=t.trackStyle,s=t.handleStyle,l=t.tabIndex,f=t.ariaLabelForHandle,p=t.ariaLabelledByForHandle,d=t.ariaValueTextFormatterForHandle,v=t.min,m=t.max,y=t.startPoint,b=t.reverse,g=t.handle,O=this.state,w=O.value,x=O.dragging,j=this.calcOffset(w),E=g({className:"".concat(n,"-handle"),prefixCls:n,vertical:r,offset:j,value:w,dragging:x,disabled:a,min:v,max:m,reverse:b,index:0,tabIndex:l,ariaLabel:f,ariaLabelledBy:p,ariaValueTextFormatter:d,style:s[0]||s,ref:function(t){return e.saveHandle(0,t)}}),S=void 0!==y?this.calcOffset(y):0,_=u[0]||u;return{tracks:o.a.createElement(h,{className:"".concat(n,"-track"),vertical:r,included:i,offset:S,reverse:b,length:j-S,style:Z(Z({},c),_)}),handles:E}}}]),n}(o.a.Component)),ee=n(239),te=n.n(ee);function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var ie=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,i=o.allowCross,a=o.pushable,c=Number(a),u=H(t,o),s=u;return i||null==n||void 0===r||(n>0&&u<=r[n-1]+c&&(s=r[n-1]+c),n<r.length-1&&u>=r[n+1]-c&&(s=r[n+1]-c)),K(s,o)},ae=function(e){Object(u.a)(n,e);var t=oe(n);function n(e){var r;Object(a.a)(this,n),(r=t.call(this,e)).onEnd=function(e){var t=r.state.handle;r.removeDocumentEvents(),(null!==t||e)&&r.props.onAfterChange(r.getValue()),r.setState({handle:null})};var o=e.count,i=e.min,c=e.max,u=Array.apply(void 0,Object(N.a)(Array(o+1))).map((function(){return i})),s="defaultValue"in e?e.defaultValue:u,l=(void 0!==e.value?e.value:s).map((function(t,n){return ie({value:t,handle:n,props:e})})),f=l[0]===c?0:l.length-1;return r.state={handle:null,recent:f,bounds:l},r}return Object(c.a)(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this;if(("value"in this.props||"min"in this.props||"max"in this.props)&&(this.props.min!==e.min||this.props.max!==e.max||!te()(this.props.value,e.value))){var r=this.props,o=r.onChange,i=r.value||t.bounds;if(i.some((function(e){return D(e,n.props)})))o(i.map((function(e){return H(e,n.props)})))}}},{key:"onChange",value:function(e){var t=this.props;if(!("value"in t))this.setState(e);else{var n={};["handle","recent"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),Object.keys(n).length&&this.setState(n)}var r=re(re({},this.state),e).bounds;t.onChange(r)}},{key:"onStart",value:function(e){var t=this.props,n=this.state,r=this.getValue();t.onBeforeChange(r);var o=this.calcValueByPos(e);this.startValue=o,this.startPosition=e;var i=this.getClosestBound(o);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(o,i),this.setState({handle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),o!==r[this.prevMovedHandleIndex]){var a=Object(N.a)(n.bounds);a[this.prevMovedHandleIndex]=o,this.onChange({bounds:a})}}},{key:"onMove",value:function(e,t){V(e);var n=this.state,r=this.calcValueByPos(t);r!==n.bounds[n.handle]&&this.moveTo(r)}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=U(e,t.vertical,n);if(r){V(e);var o=this.state,i=this.props,a=o.bounds,c=o.handle,u=a[null===c?o.recent:c],s=r(u,i),l=ie({value:s,handle:c,bounds:o.bounds,props:i});if(l===u)return;this.moveTo(l,!0)}}},{key:"getValue",value:function(){return this.state.bounds}},{key:"getClosestBound",value:function(e){for(var t=this.state.bounds,n=0,r=1;r<t.length-1;r+=1)e>=t[r]&&(n=r);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n}},{key:"getBoundNeedMoving",value:function(e,t){var n=this.state,r=n.bounds,o=n.recent,i=t,a=r[t+1]===r[t];return a&&r[o]===r[t]&&(i=o),a&&e!==r[t+1]&&(i=e<r[t+1]?t:t+1),i}},{key:"getLowerBound",value:function(){return this.state.bounds[0]}},{key:"getUpperBound",value:function(){var e=this.state.bounds;return e[e.length-1]}},{key:"getPoints",value:function(){var e=this.props,t=e.marks,n=e.step,r=e.min,o=e.max,i=this.internalPointsCache;if(!i||i.marks!==t||i.step!==n){var a=re({},t);if(null!==n)for(var c=r;c<=o;c+=n)a[c]=c;var u=Object.keys(a).map(parseFloat);u.sort((function(e,t){return e-t})),this.internalPointsCache={marks:t,step:n,points:u}}return this.internalPointsCache.points}},{key:"moveTo",value:function(e,t){var n=this,r=this.state,o=this.props,i=Object(N.a)(r.bounds),a=null===r.handle?r.recent:r.handle;i[a]=e;var c=a;!1!==o.pushable?this.pushSurroundingHandles(i,c):o.allowCross&&(i.sort((function(e,t){return e-t})),c=i.indexOf(e)),this.onChange({recent:c,handle:c,bounds:i}),t&&(this.props.onAfterChange(i),this.setState({},(function(){n.handlesRefs[c].focus()})),this.onEnd())}},{key:"pushSurroundingHandles",value:function(e,t){var n=e[t],r=this.props.pushable,o=Number(r),i=0;if(e[t+1]-n<o&&(i=1),n-e[t-1]<o&&(i=-1),0!==i){var a=t+i,c=i*(e[a]-n);this.pushHandle(e,a,i,o-c)||(e[t]=e[a]-i*o)}}},{key:"pushHandle",value:function(e,t,n,r){for(var o=e[t],i=e[t];n*(i-o)<r;){if(!this.pushHandleOnePoint(e,t,n))return e[t]=o,!1;i=e[t]}return!0}},{key:"pushHandleOnePoint",value:function(e,t,n){var r=this.getPoints(),o=r.indexOf(e[t])+n;if(o>=r.length||o<0)return!1;var i=t+n,a=r[o],c=this.props.pushable,u=Number(c),s=n*(e[i]-a);return!!this.pushHandle(e,i,n,u-s)&&(e[t]=a,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state,n=t.handle,r=t.bounds;return ie({value:e,handle:n,bounds:r,props:this.props})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handle,r=t.bounds,a=this.props,c=a.prefixCls,u=a.vertical,s=a.included,l=a.disabled,f=a.min,p=a.max,d=a.reverse,v=a.handle,m=a.trackStyle,y=a.handleStyle,b=a.tabIndex,O=a.ariaLabelGroupForHandles,w=a.ariaLabelledByGroupForHandles,x=a.ariaValueTextFormatterGroupForHandles,j=r.map((function(t){return e.calcOffset(t)})),E="".concat(c,"-handle"),S=r.map((function(t,r){var o,a=b[r]||0;(l||null===b[r])&&(a=null);var s=n===r;return v({className:g()((o={},Object(i.a)(o,E,!0),Object(i.a)(o,"".concat(E,"-").concat(r+1),!0),Object(i.a)(o,"".concat(E,"-dragging"),s),o)),prefixCls:c,vertical:u,dragging:s,offset:j[r],value:t,index:r,tabIndex:a,min:f,max:p,reverse:d,disabled:l,style:y[r],ref:function(t){return e.saveHandle(r,t)},ariaLabel:O[r],ariaLabelledBy:w[r],ariaValueTextFormatter:x[r]})}));return{tracks:r.slice(0,-1).map((function(e,t){var n,r=t+1,a=g()((n={},Object(i.a)(n,"".concat(c,"-track"),!0),Object(i.a)(n,"".concat(c,"-track-").concat(r),!0),n));return o.a.createElement(h,{className:a,vertical:u,reverse:d,included:s,offset:j[r-1],length:j[r]-j[r-1],style:m[t],key:r})})),handles:S}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if("value"in e||"min"in e||"max"in e){var n=(e.value||t.bounds).map((function(n,r){return ie({value:n,handle:r,bounds:t.bounds,props:e})}));return n.length===t.bounds.length&&n.every((function(e,n){return e===t.bounds[n]}))?null:re(re({},t),{},{bounds:n})}return null}}]),n}(o.a.Component);ae.displayName="Range",ae.defaultProps={count:1,allowCross:!0,pushable:!1,tabIndex:[],ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]};var ce=Y(ae),ue=n(297);function se(){return(se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var le=r.forwardRef((function(e,t){var n=e.visible,o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=r.useRef();return r.useEffect((function(){t.forEach((function(e){e&&("function"==typeof e?e(o.current):e.current=o.current)}))}),[t]),o}(t,r.useRef(null)),i=r.useRef(null);function a(){window.cancelAnimationFrame(i.current),i.current=null}return r.useEffect((function(){return n?function e(){null===i.current&&(i.current=window.requestAnimationFrame((function(){o.current.forcePopupAlign(),i.current=null,e()})))}():a(),a}),[n]),r.createElement(ue.a,se({ref:o},e))})),fe=n(196);function pe(){return(pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return he(e,t)}(e,t)||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 he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},me=r.forwardRef((function(e,t){var n,o,i,a=r.useContext(fe.b),c=a.getPrefixCls,u=a.direction,s=a.getPopupContainer,l=de(r.useState({}),2),f=l[0],p=l[1],d=function(e,t){var n=pe({},f);n[e]=t,p(n)},h=function(t){var n=t.tooltipPrefixCls,o=t.prefixCls,i=t.info,a=i.value,c=i.dragging,u=i.index,l=ve(i,["value","dragging","index"]),p=e.tipFormatter,h=e.tooltipVisible,v=e.tooltipPlacement,m=e.getTooltipPopupContainer,y=e.vertical,b=!!p&&(f[u]||c),g=h||void 0===h&&b;return r.createElement(le,{prefixCls:n,title:p?p(a):"",visible:g,placement:v||(y?"right":"top"),transitionName:"zoom-down",key:u,overlayClassName:"".concat(o,"-tooltip"),getPopupContainer:m||s||function(){return document.body}},r.createElement(M,pe({},l,{value:a,onMouseEnter:function(){return d(u,!0)},onMouseLeave:function(){return d(u,!1)}})))},v=e.prefixCls,m=e.tooltipPrefixCls,y=e.range,b=e.className,O=ve(e,["prefixCls","tooltipPrefixCls","range","className"]),w=c("slider",v),x=c("tooltip",m),j=g()(b,(n={},o="".concat(w,"-rtl"),i="rtl"===u,o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n));return"rtl"!==u||O.vertical||(O.reverse=!O.reverse),y?r.createElement(ce,pe({},O,{className:j,ref:t,handle:function(e){return h({tooltipPrefixCls:x,prefixCls:w,info:e})},prefixCls:w,tooltipPrefixCls:x})):r.createElement(Q,pe({},O,{className:j,ref:t,handle:function(e){return h({tooltipPrefixCls:x,prefixCls:w,info:e})},prefixCls:w,tooltipPrefixCls:x}))}));me.displayName="Slider",me.defaultProps={tipFormatter:function(e){return"number"==typeof e?e.toString():""}};t.a=me},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(204),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c}).call(this,n(188)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(344);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(208),o=n(163),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4);r.__exportStar(n(819),t),r.__exportStar(n(821),t),r.__exportStar(n(822),t)},function(e,t,n){var r,o,i;e.exports=(i=n(49),o=(r=i).lib.WordArray,r.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,c=0;c<4&&i+.75*c<n;c++)o.push(r.charAt(a>>>6*(3-c)&63));var u=r.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<n.length;i++)r[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var c=e.indexOf(a);-1!==c&&(t=c)}return function(e,t,n){for(var r=[],i=0,a=0;a<t;a++)if(a%4){var c=n[e.charCodeAt(a-1)]<<a%4*2,u=n[e.charCodeAt(a)]>>>6-a%4*2;r[i>>>2]|=(c|u)<<24-i%4*8,i++}return o.create(r,i)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},function(e,t,n){var r;e.exports=(r=n(49),function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,c=[];!function(){for(var t=0;t<64;t++)c[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],u=e[t+1],d=e[t+2],h=e[t+3],v=e[t+4],m=e[t+5],y=e[t+6],b=e[t+7],g=e[t+8],O=e[t+9],w=e[t+10],x=e[t+11],j=e[t+12],E=e[t+13],S=e[t+14],_=e[t+15],C=i[0],P=i[1],k=i[2],M=i[3];C=s(C,P,k,M,a,7,c[0]),M=s(M,C,P,k,u,12,c[1]),k=s(k,M,C,P,d,17,c[2]),P=s(P,k,M,C,h,22,c[3]),C=s(C,P,k,M,v,7,c[4]),M=s(M,C,P,k,m,12,c[5]),k=s(k,M,C,P,y,17,c[6]),P=s(P,k,M,C,b,22,c[7]),C=s(C,P,k,M,g,7,c[8]),M=s(M,C,P,k,O,12,c[9]),k=s(k,M,C,P,w,17,c[10]),P=s(P,k,M,C,x,22,c[11]),C=s(C,P,k,M,j,7,c[12]),M=s(M,C,P,k,E,12,c[13]),k=s(k,M,C,P,S,17,c[14]),C=l(C,P=s(P,k,M,C,_,22,c[15]),k,M,u,5,c[16]),M=l(M,C,P,k,y,9,c[17]),k=l(k,M,C,P,x,14,c[18]),P=l(P,k,M,C,a,20,c[19]),C=l(C,P,k,M,m,5,c[20]),M=l(M,C,P,k,w,9,c[21]),k=l(k,M,C,P,_,14,c[22]),P=l(P,k,M,C,v,20,c[23]),C=l(C,P,k,M,O,5,c[24]),M=l(M,C,P,k,S,9,c[25]),k=l(k,M,C,P,h,14,c[26]),P=l(P,k,M,C,g,20,c[27]),C=l(C,P,k,M,E,5,c[28]),M=l(M,C,P,k,d,9,c[29]),k=l(k,M,C,P,b,14,c[30]),C=f(C,P=l(P,k,M,C,j,20,c[31]),k,M,m,4,c[32]),M=f(M,C,P,k,g,11,c[33]),k=f(k,M,C,P,x,16,c[34]),P=f(P,k,M,C,S,23,c[35]),C=f(C,P,k,M,u,4,c[36]),M=f(M,C,P,k,v,11,c[37]),k=f(k,M,C,P,b,16,c[38]),P=f(P,k,M,C,w,23,c[39]),C=f(C,P,k,M,E,4,c[40]),M=f(M,C,P,k,a,11,c[41]),k=f(k,M,C,P,h,16,c[42]),P=f(P,k,M,C,y,23,c[43]),C=f(C,P,k,M,O,4,c[44]),M=f(M,C,P,k,j,11,c[45]),k=f(k,M,C,P,_,16,c[46]),C=p(C,P=f(P,k,M,C,d,23,c[47]),k,M,a,6,c[48]),M=p(M,C,P,k,b,10,c[49]),k=p(k,M,C,P,S,15,c[50]),P=p(P,k,M,C,m,21,c[51]),C=p(C,P,k,M,j,6,c[52]),M=p(M,C,P,k,h,10,c[53]),k=p(k,M,C,P,w,15,c[54]),P=p(P,k,M,C,u,21,c[55]),C=p(C,P,k,M,g,6,c[56]),M=p(M,C,P,k,_,10,c[57]),k=p(k,M,C,P,y,15,c[58]),P=p(P,k,M,C,E,21,c[59]),C=p(C,P,k,M,v,6,c[60]),M=p(M,C,P,k,x,10,c[61]),k=p(k,M,C,P,d,15,c[62]),P=p(P,k,M,C,O,21,c[63]),i[0]=i[0]+C|0,i[1]=i[1]+P|0,i[2]=i[2]+k|0,i[3]=i[3]+M|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var c=this._hash,u=c.words,s=0;s<4;s++){var l=u[s];u[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return c},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,n,r,o,i,a){var c=e+(t&n|~t&r)+o+a;return(c<<i|c>>>32-i)+t}function l(e,t,n,r,o,i,a){var c=e+(t&r|n&~r)+o+a;return(c<<i|c>>>32-i)+t}function f(e,t,n,r,o,i,a){var c=e+(t^n^r)+o+a;return(c<<i|c>>>32-i)+t}function p(e,t,n,r,o,i,a){var c=e+(n^(t|~r))+o+a;return(c<<i|c>>>32-i)+t}t.MD5=i._createHelper(u),t.HmacMD5=i._createHmacHelper(u)}(Math),r.MD5)},function(e){e.exports=JSON.parse('{"af":"Afrikaans","am":"Amharic","ar":"Arabic","auto":"Detect language","az":"Azerbaijani","be":"Belarusian","bg":"Bulgarian","bn":"Bengali","bs":"Bosnian","ca":"Catalan","ceb":"Cebuano","co":"Corsican","cs":"Czech","cy":"Welsh","da":"Danish","de":"German","el":"Greek","en":"English","eo":"Esperanto","es":"Spanish","et":"Estonian","eu":"Basque","fa":"Persian","fi":"Finnish","fil":"Filipino","fj":"Fijian","fr":"French","fy":"Frisian","ga":"Irish","gd":"Scots Gaelic","gl":"Galician","gu":"Gujarati","ha":"Hausa","haw":"Hawaiian","he":"Hebrew","hi":"Hindi","hmn":"Hmong","hr":"Croatian","ht":"Haitian Creole","hu":"Hungarian","hy":"Armenian","id":"Indonesian","ig":"Igbo","is":"Icelandic","it":"Italian","ja":"Japanese","jw":"Javanese","ka":"Georgian","kk":"Kazakh","km":"Khmer","kn":"Kannada","ko":"Korean","ku":"Kurdish (Kurmanji)","ky":"Kyrgyz","la":"Latin","lb":"Luxembourgish","lo":"Lao","lt":"Lithuanian","lv":"Latvian","mg":"Malagasy","mi":"Maori","mk":"Macedonian","ml":"Malayalam","mn":"Mongolian","mr":"Marathi","ms":"Malay","mt":"Maltese","mww":"Bai Miao Wen","my":"Myanmar (Burmese)","ne":"Nepali","nl":"Dutch","no":"Norwegian","ny":"Nyanja (Chichewa)","otq":"Cretaro Ottomi","pa":"Punjabi","pl":"Polish","ps":"Pashto","pt":"Portuguese (Portugal, Brazil)","ro":"Romanian","ru":"Russian","sd":"Sindhi","si":"Sinhala (Sinhalese)","sk":"Slovak","sl":"Slovenian","sm":"Samoan","sn":"Shona","so":"Somali","sq":"Albanian","sr":"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)","st":"Sesotho","su":"Sundanese","sv":"Swedish","sw":"Swahili","ta":"Tamil","te":"Telugu","tg":"Tajik","th":"Thai","tlh":"Klingon","tlh-Qaak":"Klingon (piqaD)","to":"Tongan","tr":"Turkish","ty":"Tahiti","ug":"Uighur","uk":"Ukrainian","ur":"Urdu","uz":"Uzbek","vi":"Vietnamese","wyw":"Classical Chinese","xh":"Xhosa","yi":"Yiddish","yo":"Yoruba","yua":"Yucatan Mayan","yue":"Cantonese (Traditional)","zh-CN":"Chinese (Simplified)","zh-TW":"Chinese (Traditional)","zu":"Zulu"}')},function(e,t,n){var r=n(571)(n(576));e.exports=r},,function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var o=r();o.withExtraArgument=r,t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(581);t.createActionCreator=r.createActionCreator,t.createActionCreators=r.createActionCreators,t.proxyActionCreators=r.proxyActionCreators;var o=n(584);t.createFSACreator=o.createActionCreator,t.createFSACreators=o.createActionCreators,t.proxyFSACreators=o.proxyActionCreators;var i=n(234);t.combineObjects=i.combineObjects;var a=n(587);t.combineUniqueObjects=a.combineUniqueObjects;var c=n(350);t.proxyCombineObjects=c.proxyCombineObjects;var u=n(588);t.proxyCombineUniqueObjects=u.proxyCombineUniqueObjects;var s=n(589);t.createReducer=s.createReducer},,function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(32);function o(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function i(e,t){var n=t.labelInValue,r=t.combobox;if(void 0===e||""===e&&r)return[];var o=Array.isArray(e)?e:[e];return n?o.map((function(e){var t=e.key,n=e.value;return void 0!==n?n:t})):o}function a(e,t){var n=t.optionLabelProp,r=t.labelInValue,o=t.prevValue,i=t.options,a=t.getLabeledValue,c=e;return r&&(c=c.map((function(e){return a(e,{options:i,prevValue:o,labelInValue:r,optionLabelProp:n})}))),c}function c(e,t){var n,o=Object(r.a)(t);for(n=e.length-1;n>=0&&e[n].disabled;n-=1);var i=null;return-1!==n&&(i=o[n],o.splice(n,1)),{values:o,removedValue:i}}var u="undefined"!=typeof window&&window.document&&window.document.documentElement,s=0;function l(){var e;return u?(e=s,s+=1):e="TEST_OR_SSR",e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f}));n(32);var r=n(6),o=(n(76),n(210),n(62)),i=n(512);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){return null!=e?e:t}function s(e,t,n){var r;n?"string"==typeof n?r=function(e){return e[n]}:"function"==typeof n&&(r=function(e){return n(e)}):r=function(e,t){return u(e.key,t)},function n(o,a,c){var u=o?o.children:e,s=o?Object(i.d)(c.pos,a):"0";if(o){var l=r(o,s),f={node:o,index:a,pos:s,key:l,parentPos:c.node?c.pos:null,level:c.level+1};t(f)}u&&u.forEach((function(e,t){n(e,t,{node:o,pos:s,level:c?c.level+1:-1})}))}(null)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=arguments.length>2?arguments[2]:void 0,a={},c={},l={posEntities:a,keyEntities:c};return n&&(l=n(l)||l),s(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,s=e.parentPos,f={node:t,index:n,key:i,pos:o,level:e.level},p=u(i,o);a[o]=f,c[p]=f,f.parent=a[s],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),r&&r(f,l)}),i),o&&o(l),l}function f(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,u=e.loading,s=e.halfChecked,l=e.dragOver,f=e.dragOverGapTop,p=e.dragOverGapBottom,d=e.pos,h=e.active,v=c(c({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:u,halfChecked:s,dragOver:l,dragOverGapTop:f,dragOverGapBottom:p,pos:d,active:h});return"props"in v||Object.defineProperty(v,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(227),o=n(203),i=n(56),a=n(205),c=n(160),u=n(214),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var m in e)!t&&!s.call(e,m)||d&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||c(m,v))||h.push(m);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(470),o=n(170),i=n(471),a=n(472),c=n(473),u=n(69),s=n(215),l=s(r),f=s(o),p=s(i),d=s(a),h=s(c),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||c&&"[object WeakMap]"!=v(new c))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},,,,,,,,,,,,,function(e,t,n){"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,c,u=a(e),s=1;s<arguments.length;s++){for(var l in n=Object(arguments[s]))o.call(n,l)&&(u[l]=n[l]);if(r){c=r(n);for(var f=0;f<c.length;f++)i.call(n,c[f])&&(u[c[f]]=n[c[f]])}}return u}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1071))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(557),a=n(5),c=n.n(a),u=n(109),s=n.n(u),l=n(408),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(e){var t=e,n=!!o.a.forwardRef;function r(e){return!(!e.motionName||!t)}"object"==typeof e&&(t=e.transitionSupport,n="forwardRef"in e?e.forwardRef:n);var a=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.onDomUpdate=function(){var t=e.state,n=t.status,o=t.newStatus,i=e.props,a=i.onAppearStart,c=i.onEnterStart,u=i.onLeaveStart,s=i.onAppearActive,l=i.onEnterActive,f=i.onLeaveActive,p=i.motionAppear,d=i.motionEnter,h=i.motionLeave;if(r(e.props)){var v=e.getElement();e.$cacheEle!==v&&(e.removeEventListener(e.$cacheEle),e.addEventListener(v),e.$cacheEle=v),o&&"appear"===n&&p?e.updateStatus(a,null,null,(function(){e.updateActiveStatus(s,"appear")})):o&&"enter"===n&&d?e.updateStatus(c,null,null,(function(){e.updateActiveStatus(l,"enter")})):o&&"leave"===n&&h&&e.updateStatus(u,null,null,(function(){e.updateActiveStatus(f,"leave")}))}},e.onMotionEnd=function(t){var n=e.state,r=n.status,o=n.statusActive,i=e.props,a=i.onAppearEnd,c=i.onEnterEnd,u=i.onLeaveEnd;"appear"===r&&o?e.updateStatus(a,{status:"none"},t):"enter"===r&&o?e.updateStatus(c,{status:"none"},t):"leave"===r&&o&&e.updateStatus(u,{status:"none"},t)},e.setNodeRef=function(t){var n=e.props.internalRef;e.node=t,"function"==typeof n?n(t):n&&"current"in n&&(n.current=t)},e.getElement=function(){try{return Object(i.a)(e.node||e)}catch(t){return e.$cacheEle}},e.addEventListener=function(t){t&&(t.addEventListener(l.d,e.onMotionEnd),t.addEventListener(l.a,e.onMotionEnd))},e.removeEventListener=function(t){t&&(t.removeEventListener(l.d,e.onMotionEnd),t.removeEventListener(l.a,e.onMotionEnd))},e.updateStatus=function(t,n,r,o){var i=t?t(e.getElement(),r):null;if(!1!==i&&!e._destroyed){var a=void 0;o&&(a=function(){e.nextFrame(o)}),e.setState(f({statusStyle:"object"==typeof i?i:null,newStatus:!1},n),a)}},e.updateActiveStatus=function(t,n){e.nextFrame((function(){if(e.state.status===n){var r=e.props.motionDeadline;e.updateStatus(t,{statusActive:!0}),r>0&&setTimeout((function(){e.onMotionEnd({deadline:!0})}),r)}}))},e.nextFrame=function(t){e.cancelNextFrame(),e.raf=s()(t)},e.cancelNextFrame=function(){e.raf&&(s.a.cancel(e.raf),e.raf=null)},e.state={status:"none",statusActive:!1,newStatus:!1,statusStyle:null},e.$cacheEle=null,e.node=null,e.raf=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),p(t,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame()}},{key:"render",value:function(){var e,t=this.state,n=t.status,o=t.statusActive,i=t.statusStyle,a=this.props,u=a.children,s=a.motionName,p=a.visible,h=a.removeOnLeave,v=a.leavedClassName,m=a.eventProps;return u?"none"!==n&&r(this.props)?u(f({},m,{className:c()((e={},d(e,Object(l.b)(s,n),"none"!==n),d(e,Object(l.b)(s,n+"-active"),"none"!==n&&o),d(e,s,"string"==typeof s),e)),style:i}),this.setNodeRef):p?u(f({},m),this.setNodeRef):h?null:u(f({},m,{className:v}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.status;if(!r(e))return{};var i=e.visible,a=e.motionAppear,c=e.motionEnter,u=e.motionLeave,s=e.motionLeaveImmediately,l={prevProps:e};return("appear"===o&&!a||"enter"===o&&!c||"leave"===o&&!u)&&(l.status="none",l.statusActive=!1,l.newStatus=!1),!n&&i&&a&&(l.status="appear",l.statusActive=!1,l.newStatus=!0),n&&!n.visible&&i&&c&&(l.status="enter",l.statusActive=!1,l.newStatus=!0),(n&&n.visible&&!i&&u||!n&&s&&!i&&u)&&(l.status="leave",l.statusActive=!1,l.newStatus=!0),l}}]),t}(o.a.Component);return a.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},n?o.a.forwardRef((function(e,t){return o.a.createElement(a,f({internalRef:t},e))})):a}(l.c)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),o=n(361).a,i=n(767);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(a,e);var t,n,r,i=f(a);function a(){return u(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||o[t||"global"],r=this.context,i=t&&r?r[t]:{};return c(c({},"function"==typeof n?n():n),i||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?o.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}])&&s(t.prototype,n),r&&s(t,r),a}(r.Component);h.defaultProps={componentName:"global"},h.contextType=i.a},function(e,t,n){"use strict";var r=n(0),o=n(918),i=n(5),a=n.n(i),c=n(770);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s={adjustX:1,adjustY:1},l={adjustX:0,adjustY:0},f=[0,0];function p(e){return"boolean"==typeof e?e?s:l:u(u({},l),e)}var d=n(110),h=n(196),v=n(177),m=(Object(v.a)("success","processing","error","default","warning"),Object(v.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"));function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e,t)||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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var w=new RegExp("^(".concat(m.join("|"),")(-inverse)?$"));function x(e,t){var n=e.type;if((!0===n.__ANT_BUTTON||!0===n.__ANT_SWITCH||!0===n.__ANT_CHECKBOX||"button"===e.type)&&e.props.disabled){var o=function(e,t){var n={},r=O({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=o.picked,c=o.omitted,u=O(O({display:"inline-block"},i),{cursor:"not-allowed",width:e.props.block?"100%":null}),s=O(O({},c),{pointerEvents:"none"}),l=Object(d.a)(e,{style:s,className:null});return r.createElement("span",{style:u,className:a()(e.props.className,"".concat(t,"-disabled-compatible-wrapper"))},l)}return e}var j=r.forwardRef((function(e,t){var n,i=r.useContext(h.b),s=i.getPopupContainer,l=i.getPrefixCls,v=i.direction,m=b(r.useState(!!e.visible||!!e.defaultVisible),2),g=m[0],j=m[1];r.useEffect((function(){"visible"in e&&j(e.visible)}),[e.visible]);var E=function(){var t=e.title,n=e.overlay;return!t&&!n&&0!==t},S=function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||function(e){var t=e.arrowWidth,n=void 0===t?5:t,r=e.horizontalArrowShift,o=void 0===r?16:r,i=e.verticalArrowShift,a=void 0===i?8:i,s=e.autoAdjustOverflow,l={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(o+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(a+n)]},topRight:{points:["br","tc"],offset:[o+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(a+n)]},bottomRight:{points:["tr","bc"],offset:[o+n,4]},rightBottom:{points:["bl","cr"],offset:[4,a+n]},bottomLeft:{points:["tl","bc"],offset:[-(o+n),4]},leftBottom:{points:["br","cl"],offset:[-4,a+n]}};return Object.keys(l).forEach((function(t){l[t]=e.arrowPointAtCenter?u(u({},l[t]),{overflow:p(s),targetOffset:f}):u(u({},c.a[t]),{overflow:p(s)}),l[t].ignoreShake=!0})),l}({arrowPointAtCenter:n,autoAdjustOverflow:r})},_=e.prefixCls,C=e.openClassName,P=e.getPopupContainer,k=e.getTooltipContainer,M=e.overlayClassName,N=e.color,T=e.overlayInnerStyle,A=e.children,R=l("tooltip",_),D=g;!("visible"in e)&&E()&&(D=!1);var I,L,F,z,B=x(Object(d.b)(A)?A:r.createElement("span",null,A),R),H=B.props,K=a()(H.className,y({},C||"".concat(R,"-open"),!0)),V=a()(M,(y(n={},"".concat(R,"-rtl"),"rtl"===v),y(n,"".concat(R,"-").concat(N),N&&w.test(N)),n));return N&&!w.test(N)&&(I=O(O({},T),{background:N}),L={background:N}),r.createElement(o.default,O({},e,{prefixCls:R,overlayClassName:V,getTooltipContainer:P||k||s,ref:t,builtinPlacements:S(),overlay:(F=e.title,z=e.overlay,0===F?F:z||F||""),visible:D,onVisibleChange:function(t){"visible"in e||j(!E()&&t),e.onVisibleChange&&!E()&&e.onVisibleChange(t)},onPopupAlign:function(e,t){var n=S(),r=Object.keys(n).filter((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}))[0];if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayInnerStyle:I,arrowContent:r.createElement("span",{className:"".concat(R,"-arrow-content"),style:L})}),D?Object(d.a)(B,{className:K}):B)}));j.displayName="Tooltip",j.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};t.a=j},,function(e,t,n){"use strict";var r=n(920);t.a=r.a},function(e,t,n){"use strict";var r=n(301),o=n(68),i=n(200),a=n(156),c=n(201),u=Object.prototype.toString;function s(e){if(!(this instanceof s))return new s(e);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var l;if(l="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,l)))throw new Error(a[n]);this._dict_set=!0}}function l(e,t){var n=new s(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}s.prototype.push=function(e,t){var n,a,c=this.strm,s=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?c.input=i.string2buf(e):"[object ArrayBuffer]"===u.call(e)?c.input=new Uint8Array(e):c.input=e,c.next_in=0,c.avail_in=c.input.length;do{if(0===c.avail_out&&(c.output=new o.Buf8(s),c.next_out=0,c.avail_out=s),1!==(n=r.deflate(c,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==c.avail_out&&(0!==c.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(c.output,c.next_out))):this.onData(o.shrinkBuf(c.output,c.next_out)))}while((c.avail_in>0||0===c.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),c.avail_out=0,!0)},s.prototype.onData=function(e){this.chunks.push(e)},s.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=s,t.deflate=l,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,l(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,l(e,t)}},function(e,t,n){"use strict";var r,o=n(68),i=n(302),a=n(198),c=n(199),u=n(156);function s(e,t){return e.msg=u[t],t}function l(e){return(e<<1)-(e>4?9:0)}function f(e){for(var t=e.length;--t>=0;)e[t]=0}function p(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(o.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function d(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,p(e.strm)}function h(e,t){e.pending_buf[e.pending++]=t}function v(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function m(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,c=e.nice_match,u=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,s=e.window,l=e.w_mask,f=e.prev,p=e.strstart+258,d=s[i+a-1],h=s[i+a];e.prev_length>=e.good_match&&(o>>=2),c>e.lookahead&&(c=e.lookahead);do{if(s[(n=t)+a]===h&&s[n+a-1]===d&&s[n]===s[i]&&s[++n]===s[i+1]){i+=2,n++;do{}while(s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&i<p);if(r=258-(p-i),i=p-258,r>a){if(e.match_start=t,a=r,r>=c)break;d=s[i+a-1],h=s[i+a]}}}while((t=f[t&l])>u&&0!=--o);return a<=e.lookahead?a:e.lookahead}function y(e){var t,n,r,i,u,s,l,f,p,d,h=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-262)){o.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=h?r-h:0}while(--n);t=n=h;do{r=e.prev[--t],e.prev[t]=r>=h?r-h:0}while(--n);i+=h}if(0===e.strm.avail_in)break;if(s=e.strm,l=e.window,f=e.strstart+e.lookahead,p=i,d=void 0,(d=s.avail_in)>p&&(d=p),n=0===d?0:(s.avail_in-=d,o.arraySet(l,s.input,s.next_in,d,f),1===s.state.wrap?s.adler=a(s.adler,l,d,f):2===s.state.wrap&&(s.adler=c(s.adler,l,d,f)),s.next_in+=d,s.total_in+=d,d),e.lookahead+=n,e.lookahead+e.insert>=3)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<<e.hash_shift^e.window[u+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[u+3-1])&e.hash_mask,e.prev[u&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=u,u++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function b(e,t){for(var n,r;;){if(e.lookahead<262){if(y(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=m(e,n)),e.match_length>=3)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}function g(e,t){for(var n,r,o;;){if(e.lookahead<262){if(y(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=m(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-3,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(d(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=i._tr_tally(e,0,e.window[e.strstart-1]))&&d(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}function O(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function w(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,i._tr_init(t),0):s(e,-2)}function j(e){var t,n=x(e);return 0===n&&((t=e.state).window_size=2*t.w_size,f(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function E(e,t,n,r,i,a){if(!e)return-2;var c=1;if(-1===t&&(t=6),r<0?(c=0,r=-r):r>15&&(c=2,r-=16),i<1||i>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return s(e,-2);8===r&&(r=9);var u=new w;return e.state=u,u.strm=e,u.wrap=c,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=i+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new o.Buf8(2*u.w_size),u.head=new o.Buf16(u.hash_size),u.prev=new o.Buf16(u.w_size),u.lit_bufsize=1<<i+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new o.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=a,u.method=n,j(e)}r=[new O(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(y(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,d(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(d(e,!1),e.strm.avail_out),1)})),new O(4,4,8,4,b),new O(4,5,16,8,b),new O(4,6,32,32,b),new O(4,4,16,16,g),new O(8,16,32,32,g),new O(8,16,128,128,g),new O(8,32,128,256,g),new O(32,128,258,1024,g),new O(32,258,258,4096,g)],t.deflateInit=function(e,t){return E(e,t,8,15,8,0)},t.deflateInit2=E,t.deflateReset=j,t.deflateResetKeep=x,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},t.deflate=function(e,t){var n,o,a,u;if(!e||!e.state||t>5||t<0)return e?s(e,-2):-2;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||666===o.status&&4!==t)return s(e,0===e.avail_out?-5:-2);if(o.strm=e,n=o.last_flush,o.last_flush=t,42===o.status)if(2===o.wrap)e.adler=0,h(o,31),h(o,139),h(o,8),o.gzhead?(h(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),h(o,255&o.gzhead.time),h(o,o.gzhead.time>>8&255),h(o,o.gzhead.time>>16&255),h(o,o.gzhead.time>>24&255),h(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),h(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(h(o,255&o.gzhead.extra.length),h(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=c(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(h(o,0),h(o,0),h(o,0),h(o,0),h(o,0),h(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),h(o,3),o.status=113);else{var m=8+(o.w_bits-8<<4)<<8;m|=(o.strategy>=2||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(m|=32),m+=31-m%31,o.status=113,v(o,m),0!==o.strstart&&(v(o,e.adler>>>16),v(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=c(e.adler,o.pending_buf,o.pending-a,a)),p(e),a=o.pending,o.pending!==o.pending_buf_size));)h(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=c(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=c(e.adler,o.pending_buf,o.pending-a,a)),p(e),a=o.pending,o.pending===o.pending_buf_size)){u=1;break}u=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,h(o,u)}while(0!==u);o.gzhead.hcrc&&o.pending>a&&(e.adler=c(e.adler,o.pending_buf,o.pending-a,a)),0===u&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=c(e.adler,o.pending_buf,o.pending-a,a)),p(e),a=o.pending,o.pending===o.pending_buf_size)){u=1;break}u=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,h(o,u)}while(0!==u);o.gzhead.hcrc&&o.pending>a&&(e.adler=c(e.adler,o.pending_buf,o.pending-a,a)),0===u&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&p(e),o.pending+2<=o.pending_buf_size&&(h(o,255&e.adler),h(o,e.adler>>8&255),e.adler=0,o.status=113)):o.status=113),0!==o.pending){if(p(e),0===e.avail_out)return o.last_flush=-1,0}else if(0===e.avail_in&&l(t)<=l(n)&&4!==t)return s(e,-5);if(666===o.status&&0!==e.avail_in)return s(e,-5);if(0!==e.avail_in||0!==o.lookahead||0!==t&&666!==o.status){var b=2===o.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(y(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}(o,t):3===o.strategy?function(e,t){for(var n,r,o,a,c=e.window;;){if(e.lookahead<=258){if(y(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=c[o=e.strstart-1])===c[++o]&&r===c[++o]&&r===c[++o]){a=e.strstart+258;do{}while(r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&o<a);e.match_length=258-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=i._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}(o,t):r[o.level].func(o,t);if(3!==b&&4!==b||(o.status=666),1===b||3===b)return 0===e.avail_out&&(o.last_flush=-1),0;if(2===b&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(f(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),p(e),0===e.avail_out))return o.last_flush=-1,0}return 4!==t?0:o.wrap<=0?1:(2===o.wrap?(h(o,255&e.adler),h(o,e.adler>>8&255),h(o,e.adler>>16&255),h(o,e.adler>>24&255),h(o,255&e.total_in),h(o,e.total_in>>8&255),h(o,e.total_in>>16&255),h(o,e.total_in>>24&255)):(v(o,e.adler>>>16),v(o,65535&e.adler)),p(e),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?s(e,-2):(e.state=null,113===t?s(e,-3):0):-2},t.deflateSetDictionary=function(e,t){var n,r,i,c,u,s,l,p,d=t.length;if(!e||!e.state)return-2;if(2===(c=(n=e.state).wrap)||1===c&&42!==n.status||n.lookahead)return-2;for(1===c&&(e.adler=a(e.adler,t,d,0)),n.wrap=0,d>=n.w_size&&(0===c&&(f(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new o.Buf8(n.w_size),o.arraySet(p,t,d-n.w_size,n.w_size,0),t=p,d=n.w_size),u=e.avail_in,s=e.next_in,l=e.input,e.avail_in=d,e.next_in=0,e.input=t,y(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=2,y(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=s,e.input=l,e.avail_in=u,n.wrap=c,0},t.deflateInfo="pako deflate (from Nodeca project)"},function(e,t,n){"use strict";var r=n(68);function o(e){for(var t=e.length;--t>=0;)e[t]=0}var i=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],s=new Array(576);o(s);var l=new Array(60);o(l);var f=new Array(512);o(f);var p=new Array(256);o(p);var d=new Array(29);o(d);var h,v,m,y=new Array(30);function b(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function g(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function O(e){return e<256?f[e]:f[256+(e>>>7)]}function w(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function x(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,w(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function j(e,t,n){x(e,n[2*t],n[2*t+1])}function E(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function S(e,t,n){var r,o,i=new Array(16),a=0;for(r=1;r<=15;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var c=e[2*o+1];0!==c&&(e[2*o]=E(i[c]++,c))}}function _(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function C(e){e.bi_valid>8?w(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function P(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]}function k(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&P(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!P(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r}function M(e,t,n){var r,o,c,u,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],o=e.pending_buf[e.l_buf+s],s++,0===r?j(e,o,t):(j(e,(c=p[o])+256+1,t),0!==(u=i[c])&&x(e,o-=d[c],u),j(e,c=O(--r),n),0!==(u=a[c])&&x(e,r-=y[c],u))}while(s<e.last_lit);j(e,256,t)}function N(e,t){var n,r,o,i=t.dyn_tree,a=t.stat_desc.static_tree,c=t.stat_desc.has_stree,u=t.stat_desc.elems,s=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==i[2*n]?(e.heap[++e.heap_len]=s=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=s<2?++s:0)]=1,e.depth[o]=0,e.opt_len--,c&&(e.static_len-=a[2*o+1]);for(t.max_code=s,n=e.heap_len>>1;n>=1;n--)k(e,i,n);o=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],k(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,k(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,a,c,u=t.dyn_tree,s=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,h=t.stat_desc.max_length,v=0;for(i=0;i<=15;i++)e.bl_count[i]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(i=u[2*u[2*(r=e.heap[n])+1]+1]+1)>h&&(i=h,v++),u[2*r+1]=i,r>s||(e.bl_count[i]++,a=0,r>=d&&(a=p[r-d]),c=u[2*r],e.opt_len+=c*(i+a),f&&(e.static_len+=c*(l[2*r+1]+a)));if(0!==v){do{for(i=h-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[h]--,v-=2}while(v>0);for(i=h;0!==i;i--)for(r=e.bl_count[i];0!==r;)(o=e.heap[--n])>s||(u[2*o+1]!==i&&(e.opt_len+=(i-u[2*o+1])*u[2*o],u[2*o+1]=i),r--)}}(e,t),S(i,s,e.bl_count)}function T(e,t,n){var r,o,i=-1,a=t[1],c=0,u=7,s=4;for(0===a&&(u=138,s=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++c<u&&o===a||(c<s?e.bl_tree[2*o]+=c:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):c<=10?e.bl_tree[34]++:e.bl_tree[36]++,c=0,i=o,0===a?(u=138,s=3):o===a?(u=6,s=3):(u=7,s=4))}function A(e,t,n){var r,o,i=-1,a=t[1],c=0,u=7,s=4;for(0===a&&(u=138,s=3),r=0;r<=n;r++)if(o=a,a=t[2*(r+1)+1],!(++c<u&&o===a)){if(c<s)do{j(e,o,e.bl_tree)}while(0!=--c);else 0!==o?(o!==i&&(j(e,o,e.bl_tree),c--),j(e,16,e.bl_tree),x(e,c-3,2)):c<=10?(j(e,17,e.bl_tree),x(e,c-3,3)):(j(e,18,e.bl_tree),x(e,c-11,7));c=0,i=o,0===a?(u=138,s=3):o===a?(u=6,s=3):(u=7,s=4)}}o(y);var R=!1;function D(e,t,n,o){x(e,0+(o?1:0),3),function(e,t,n,o){C(e),o&&(w(e,n),w(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}t._tr_init=function(e){R||(!function(){var e,t,n,r,o,u=new Array(16);for(n=0,r=0;r<28;r++)for(d[r]=n,e=0;e<1<<i[r];e++)p[n++]=r;for(p[n-1]=r,o=0,r=0;r<16;r++)for(y[r]=o,e=0;e<1<<a[r];e++)f[o++]=r;for(o>>=7;r<30;r++)for(y[r]=o<<7,e=0;e<1<<a[r]-7;e++)f[256+o++]=r;for(t=0;t<=15;t++)u[t]=0;for(e=0;e<=143;)s[2*e+1]=8,e++,u[8]++;for(;e<=255;)s[2*e+1]=9,e++,u[9]++;for(;e<=279;)s[2*e+1]=7,e++,u[7]++;for(;e<=287;)s[2*e+1]=8,e++,u[8]++;for(S(s,287,u),e=0;e<30;e++)l[2*e+1]=5,l[2*e]=E(e,5);h=new b(s,i,257,286,15),v=new b(l,a,0,30,15),m=new b(new Array(0),c,0,19,7)}(),R=!0),e.l_desc=new g(e.dyn_ltree,h),e.d_desc=new g(e.dyn_dtree,v),e.bl_desc=new g(e.bl_tree,m),e.bi_buf=0,e.bi_valid=0,_(e)},t._tr_stored_block=D,t._tr_flush_block=function(e,t,n,r){var o,i,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),N(e,e.l_desc),N(e,e.d_desc),a=function(e){var t;for(T(e,e.dyn_ltree,e.l_desc.max_code),T(e,e.dyn_dtree,e.d_desc.max_code),N(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=o&&(o=i)):o=i=n+5,n+4<=o&&-1!==t?D(e,t,n,r):4===e.strategy||i===o?(x(e,2+(r?1:0),3),M(e,s,l)):(x(e,4+(r?1:0),3),function(e,t,n,r){var o;for(x(e,t-257,5),x(e,n-1,5),x(e,r-4,4),o=0;o<r;o++)x(e,e.bl_tree[2*u[o]+1],3);A(e,e.dyn_ltree,t-1),A(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),M(e,e.dyn_ltree,e.dyn_dtree)),_(e),r&&C(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(p[n]+256+1)]++,e.dyn_dtree[2*O(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){x(e,2,3),j(e,256,s),function(e){16===e.bi_valid?(w(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},function(e,t,n){"use strict";var r=n(304),o=n(68),i=n(200),a=n(202),c=n(156),u=n(201),s=n(307),l=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(c[n]);if(this.header=new s,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(c[n])}function p(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||c[n.err];return n.result}f.prototype.push=function(e,t){var n,c,u,s,f,p=this.strm,d=this.options.chunkSize,h=this.options.dictionary,v=!1;if(this.ended)return!1;c=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?p.input=i.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new o.Buf8(d),p.next_out=0,p.avail_out=d),(n=r.inflate(p,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&h&&(n=r.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===v&&(n=a.Z_OK,v=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;p.next_out&&(0!==p.avail_out&&n!==a.Z_STREAM_END&&(0!==p.avail_in||c!==a.Z_FINISH&&c!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=i.utf8border(p.output,p.next_out),s=p.next_out-u,f=i.buf2string(p.output,u),p.next_out=s,p.avail_out=d-s,s&&o.arraySet(p.output,p.output,u,s,0),this.onData(f)):this.onData(o.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(v=!0)}while((p.avail_in>0||0===p.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(c=a.Z_FINISH),c===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):c!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),p.avail_out=0,!0)},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=f,t.inflate=p,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},t.ungzip=p},function(e,t,n){"use strict";var r=n(68),o=n(198),i=n(199),a=n(305),c=n(306);function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function s(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function l(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):-2}function f(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,l(e)):-2}function p(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,f(e))):-2}function d(e,t){var n,r;return e?(r=new s,e.state=r,r.window=null,0!==(n=p(e,t))&&(e.state=null),n):-2}var h,v,m=!0;function y(e){if(m){var t;for(h=new r.Buf32(512),v=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(c(1,e.lens,0,288,h,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;c(2,e.lens,0,32,v,0,e.work,{bits:5}),m=!1}e.lencode=h,e.lenbits=9,e.distcode=v,e.distbits=5}function b(e,t,n,o){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),o>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>o&&(i=o),r.arraySet(a.window,t,n-o,i,a.wnext),(o-=i)?(r.arraySet(a.window,t,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}t.inflateReset=f,t.inflateReset2=p,t.inflateResetKeep=l,t.inflateInit=function(e){return d(e,15)},t.inflateInit2=d,t.inflate=function(e,t){var n,s,l,f,p,d,h,v,m,g,O,w,x,j,E,S,_,C,P,k,M,N,T,A,R=0,D=new r.Buf8(4),I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(n=e.state).mode&&(n.mode=13),p=e.next_out,l=e.output,h=e.avail_out,f=e.next_in,s=e.input,d=e.avail_in,v=n.hold,m=n.bits,g=d,O=h,N=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;m<16;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}if(2&n.wrap&&35615===v){n.check=0,D[0]=255&v,D[1]=v>>>8&255,n.check=i(n.check,D,2,0),v=0,m=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&v)){e.msg="unknown compression method",n.mode=30;break}if(m-=4,M=8+(15&(v>>>=4)),0===n.wbits)n.wbits=M;else if(M>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<M,e.adler=n.check=1,n.mode=512&v?10:12,v=0,m=0;break;case 2:for(;m<16;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}if(n.flags=v,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=v>>8&1),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,n.check=i(n.check,D,2,0)),v=0,m=0,n.mode=3;case 3:for(;m<32;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}n.head&&(n.head.time=v),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,D[2]=v>>>16&255,D[3]=v>>>24&255,n.check=i(n.check,D,4,0)),v=0,m=0,n.mode=4;case 4:for(;m<16;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}n.head&&(n.head.xflags=255&v,n.head.os=v>>8),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,n.check=i(n.check,D,2,0)),v=0,m=0,n.mode=5;case 5:if(1024&n.flags){for(;m<16;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}n.length=v,n.head&&(n.head.extra_len=v),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,n.check=i(n.check,D,2,0)),v=0,m=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((w=n.length)>d&&(w=d),w&&(n.head&&(M=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,s,f,w,M)),512&n.flags&&(n.check=i(n.check,s,w,f)),d-=w,f+=w,n.length-=w),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===d)break e;w=0;do{M=s[f+w++],n.head&&M&&n.length<65536&&(n.head.name+=String.fromCharCode(M))}while(M&&w<d);if(512&n.flags&&(n.check=i(n.check,s,w,f)),d-=w,f+=w,M)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===d)break e;w=0;do{M=s[f+w++],n.head&&M&&n.length<65536&&(n.head.comment+=String.fromCharCode(M))}while(M&&w<d);if(512&n.flags&&(n.check=i(n.check,s,w,f)),d-=w,f+=w,M)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;m<16;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}if(v!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}v=0,m=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;m<32;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}e.adler=n.check=u(v),v=0,m=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=p,e.avail_out=h,e.next_in=f,e.avail_in=d,n.hold=v,n.bits=m,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){v>>>=7&m,m-=7&m,n.mode=27;break}for(;m<3;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}switch(n.last=1&v,m-=1,3&(v>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6===t){v>>>=2,m-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}v>>>=2,m-=2;break;case 14:for(v>>>=7&m,m-=7&m;m<32;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&v,v=0,m=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(w=n.length){if(w>d&&(w=d),w>h&&(w=h),0===w)break e;r.arraySet(l,s,f,w,p),d-=w,f+=w,h-=w,p+=w,n.length-=w;break}n.mode=12;break;case 17:for(;m<14;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}if(n.nlen=257+(31&v),v>>>=5,m-=5,n.ndist=1+(31&v),v>>>=5,m-=5,n.ncode=4+(15&v),v>>>=4,m-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;m<3;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}n.lens[I[n.have++]]=7&v,v>>>=3,m-=3}for(;n.have<19;)n.lens[I[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,T={bits:n.lenbits},N=c(0,n.lens,0,19,n.lencode,0,n.work,T),n.lenbits=T.bits,N){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;S=(R=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,_=65535&R,!((E=R>>>24)<=m);){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}if(_<16)v>>>=E,m-=E,n.lens[n.have++]=_;else{if(16===_){for(A=E+2;m<A;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}if(v>>>=E,m-=E,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}M=n.lens[n.have-1],w=3+(3&v),v>>>=2,m-=2}else if(17===_){for(A=E+3;m<A;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}m-=E,M=0,w=3+(7&(v>>>=E)),v>>>=3,m-=3}else{for(A=E+7;m<A;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}m-=E,M=0,w=11+(127&(v>>>=E)),v>>>=7,m-=7}if(n.have+w>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;w--;)n.lens[n.have++]=M}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,T={bits:n.lenbits},N=c(1,n.lens,0,n.nlen,n.lencode,0,n.work,T),n.lenbits=T.bits,N){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,T={bits:n.distbits},N=c(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,T),n.distbits=T.bits,N){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(d>=6&&h>=258){e.next_out=p,e.avail_out=h,e.next_in=f,e.avail_in=d,n.hold=v,n.bits=m,a(e,O),p=e.next_out,l=e.output,h=e.avail_out,f=e.next_in,s=e.input,d=e.avail_in,v=n.hold,m=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;S=(R=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,_=65535&R,!((E=R>>>24)<=m);){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}if(S&&0==(240&S)){for(C=E,P=S,k=_;S=(R=n.lencode[k+((v&(1<<C+P)-1)>>C)])>>>16&255,_=65535&R,!(C+(E=R>>>24)<=m);){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}v>>>=C,m-=C,n.back+=C}if(v>>>=E,m-=E,n.back+=E,n.length=_,0===S){n.mode=26;break}if(32&S){n.back=-1,n.mode=12;break}if(64&S){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&S,n.mode=22;case 22:if(n.extra){for(A=n.extra;m<A;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}n.length+=v&(1<<n.extra)-1,v>>>=n.extra,m-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;S=(R=n.distcode[v&(1<<n.distbits)-1])>>>16&255,_=65535&R,!((E=R>>>24)<=m);){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}if(0==(240&S)){for(C=E,P=S,k=_;S=(R=n.distcode[k+((v&(1<<C+P)-1)>>C)])>>>16&255,_=65535&R,!(C+(E=R>>>24)<=m);){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}v>>>=C,m-=C,n.back+=C}if(v>>>=E,m-=E,n.back+=E,64&S){e.msg="invalid distance code",n.mode=30;break}n.offset=_,n.extra=15&S,n.mode=24;case 24:if(n.extra){for(A=n.extra;m<A;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}n.offset+=v&(1<<n.extra)-1,v>>>=n.extra,m-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===h)break e;if(w=O-h,n.offset>w){if((w=n.offset-w)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}w>n.wnext?(w-=n.wnext,x=n.wsize-w):x=n.wnext-w,w>n.length&&(w=n.length),j=n.window}else j=l,x=p-n.offset,w=n.length;w>h&&(w=h),h-=w,n.length-=w;do{l[p++]=j[x++]}while(--w);0===n.length&&(n.mode=21);break;case 26:if(0===h)break e;l[p++]=n.length,h--,n.mode=21;break;case 27:if(n.wrap){for(;m<32;){if(0===d)break e;d--,v|=s[f++]<<m,m+=8}if(O-=h,e.total_out+=O,n.total+=O,O&&(e.adler=n.check=n.flags?i(n.check,l,O,p-O):o(n.check,l,O,p-O)),O=h,(n.flags?v:u(v))!==n.check){e.msg="incorrect data check",n.mode=30;break}v=0,m=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;m<32;){if(0===d)break e;d--,v+=s[f++]<<m,m+=8}if(v!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}v=0,m=0}n.mode=29;case 29:N=1;break e;case 30:N=-3;break e;case 31:return-4;case 32:default:return-2}return e.next_out=p,e.avail_out=h,e.next_in=f,e.avail_in=d,n.hold=v,n.bits=m,(n.wsize||O!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&b(e,e.output,e.next_out,O-e.avail_out)?(n.mode=31,-4):(g-=e.avail_in,O-=e.avail_out,e.total_in+=g,e.total_out+=O,n.total+=O,n.wrap&&O&&(e.adler=n.check=n.flags?i(n.check,l,O,e.next_out-O):o(n.check,l,O,e.next_out-O)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===g&&0===O||4===t)&&0===N&&(N=-5),N)},t.inflateEnd=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?-2:(n.head=t,t.done=!1,0):-2},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?-2:11===n.mode&&o(1,t,r,0)!==n.check?-3:b(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},t.inflateInfo="pako inflate (from Nodeca project)"},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,o,i,a,c,u,s,l,f,p,d,h,v,m,y,b,g,O,w,x,j,E,S,_;n=e.state,r=e.next_in,S=e.input,o=r+(e.avail_in-5),i=e.next_out,_=e.output,a=i-(t-e.avail_out),c=i+(e.avail_out-257),u=n.dmax,s=n.wsize,l=n.whave,f=n.wnext,p=n.window,d=n.hold,h=n.bits,v=n.lencode,m=n.distcode,y=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{h<15&&(d+=S[r++]<<h,h+=8,d+=S[r++]<<h,h+=8),g=v[d&y];t:for(;;){if(d>>>=O=g>>>24,h-=O,0===(O=g>>>16&255))_[i++]=65535&g;else{if(!(16&O)){if(0==(64&O)){g=v[(65535&g)+(d&(1<<O)-1)];continue t}if(32&O){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&g,(O&=15)&&(h<O&&(d+=S[r++]<<h,h+=8),w+=d&(1<<O)-1,d>>>=O,h-=O),h<15&&(d+=S[r++]<<h,h+=8,d+=S[r++]<<h,h+=8),g=m[d&b];n:for(;;){if(d>>>=O=g>>>24,h-=O,!(16&(O=g>>>16&255))){if(0==(64&O)){g=m[(65535&g)+(d&(1<<O)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&g,h<(O&=15)&&(d+=S[r++]<<h,(h+=8)<O&&(d+=S[r++]<<h,h+=8)),(x+=d&(1<<O)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=O,h-=O,x>(O=i-a)){if((O=x-O)>l&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(j=0,E=p,0===f){if(j+=s-O,O<w){w-=O;do{_[i++]=p[j++]}while(--O);j=i-x,E=_}}else if(f<O){if(j+=s+f-O,(O-=f)<w){w-=O;do{_[i++]=p[j++]}while(--O);if(j=0,f<w){w-=O=f;do{_[i++]=p[j++]}while(--O);j=i-x,E=_}}}else if(j+=f-O,O<w){w-=O;do{_[i++]=p[j++]}while(--O);j=i-x,E=_}for(;w>2;)_[i++]=E[j++],_[i++]=E[j++],_[i++]=E[j++],w-=3;w&&(_[i++]=E[j++],w>1&&(_[i++]=E[j++]))}else{j=i-x;do{_[i++]=_[j++],_[i++]=_[j++],_[i++]=_[j++],w-=3}while(w>2);w&&(_[i++]=_[j++],w>1&&(_[i++]=_[j++]))}break}}break}}while(r<o&&i<c);r-=w=h>>3,d&=(1<<(h-=w<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<c?c-i+257:257-(i-c),n.hold=d,n.bits=h}},function(e,t,n){"use strict";var r=n(68),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,u,s,l,f,p){var d,h,v,m,y,b,g,O,w,x=p.bits,j=0,E=0,S=0,_=0,C=0,P=0,k=0,M=0,N=0,T=0,A=null,R=0,D=new r.Buf16(16),I=new r.Buf16(16),L=null,F=0;for(j=0;j<=15;j++)D[j]=0;for(E=0;E<u;E++)D[t[n+E]]++;for(C=x,_=15;_>=1&&0===D[_];_--);if(C>_&&(C=_),0===_)return s[l++]=20971520,s[l++]=20971520,p.bits=1,0;for(S=1;S<_&&0===D[S];S++);for(C<S&&(C=S),M=1,j=1;j<=15;j++)if(M<<=1,(M-=D[j])<0)return-1;if(M>0&&(0===e||1!==_))return-1;for(I[1]=0,j=1;j<15;j++)I[j+1]=I[j]+D[j];for(E=0;E<u;E++)0!==t[n+E]&&(f[I[t[n+E]]++]=E);if(0===e?(A=L=f,b=19):1===e?(A=o,R-=257,L=i,F-=257,b=256):(A=a,L=c,b=-1),T=0,E=0,j=S,y=l,P=C,k=0,v=-1,m=(N=1<<C)-1,1===e&&N>852||2===e&&N>592)return 1;for(;;){g=j-k,f[E]<b?(O=0,w=f[E]):f[E]>b?(O=L[F+f[E]],w=A[R+f[E]]):(O=96,w=0),d=1<<j-k,S=h=1<<P;do{s[y+(T>>k)+(h-=d)]=g<<24|O<<16|w|0}while(0!==h);for(d=1<<j-1;T&d;)d>>=1;if(0!==d?(T&=d-1,T+=d):T=0,E++,0==--D[j]){if(j===_)break;j=t[n+f[E]]}if(j>C&&(T&m)!==v){for(0===k&&(k=C),y+=S,M=1<<(P=j-k);P+k<_&&!((M-=D[P+k])<=0);)P++,M<<=1;if(N+=1<<P,1===e&&N>852||2===e&&N>592)return 1;s[v=T&m]=C<<24|P<<16|y-l|0}}return 0!==T&&(s[y+T]=j-k<<24|64<<16|0),p.bits=C,0}},function(e,t,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(e,t,n){var r=n(213),o=n(318)(r);e.exports=o},function(e,t,n){var r=n(310)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(!1===n(i[u],u,i))break}return t}}},function(e,t,n){var r=n(69),o=n(64);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(123),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(69),o=n(161),i=n(64),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,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(260),o=n(317),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(279)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(162);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,c=Object(n);(t?a--:++a<i)&&!1!==o(c[a],a,c););return n}}},function(e,t,n){var r=n(149);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(321),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(322);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(169);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(324),o=n(143),i=n(170);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(325),o=n(330),i=n(331),a=n(332),c=n(333);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(126);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(206),o=n(327),i=n(115),a=n(215),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,f=s.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:c).test(a(e))}},function(e,t,n){var r,o=n(328),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(66)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(126),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(126),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(126);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(127),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(127);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(127);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(127);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(128);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(128);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(128);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(128);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(123),o=n(216),i=n(56),a=n(151),c=r?r.prototype:void 0,u=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(262),o=n(150),i=n(160),a=n(115),c=n(116);e.exports=function(e,t,n,u){if(!a(e))return e;for(var s=-1,l=(t=o(t,e)).length,f=l-1,p=e;null!=p&&++s<l;){var d=c(t[s]),h=n;if("__proto__"===d||"constructor"===d||"prototype"===d)return e;if(s!=f){var v=p[d];void 0===(h=u?u(v,d,p):void 0)&&(h=a(v)?v:i(t[s+1])?[]:{})}r(p,d,h),p=p[d]}return e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(263),o=n(368),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=c},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(184),o=n(232);t.proxyDefaultActionCreators=function(e,t,n){let i;const a={get:(o,i)=>r.hasOwnProperty.call(o,i)?o[i]:n&&r.hasOwnProperty.call(n,i)?o[i]=n[i]:r.hasOwnProperty.call(t,i)?o[i]=e(i):void 0,ownKeys:()=>(i||(i=new Set([...Object.keys(t),...Object.keys(n||{})])),[...i]),getOwnPropertyDescriptor:(o,i)=>r.hasOwnProperty.call(o,i)?{value:o[i],configurable:!0,enumerable:!0}:n&&r.hasOwnProperty.call(n,i)?(o[i]=n[i],{value:o[i],configurable:!0,enumerable:!0}):r.hasOwnProperty.call(t,i)?(o[i]=e(i),{value:o[i],configurable:!0,enumerable:!0}):void 0};try{return new Proxy({},a)}catch(r){return o.createDefaultActionCreators(e,t,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(184),o=n(234);t.proxyCombineObjects=function(...e){let t,n;const i={get(t,o){if(r.hasOwnProperty.call(t,o))return t[o];if(!n||!n.has(o)){for(let n=e.length-1;n>=0;n--){const i=e[n];if(r.hasOwnProperty.call(i,o))return t[o]=i[o]}n?n.size>=100&&n.clear():n=new Set,n.add(o)}},ownKeys:()=>(t||(t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]))),[...t]),getOwnPropertyDescriptor(t,o){if(r.hasOwnProperty.call(t,o))return{value:t[o],configurable:!0,enumerable:!0};if(!n||!n.has(o)){for(let n=e.length-1;n>=0;n--){const i=e[n];if(r.hasOwnProperty.call(i,o))return t[o]=i[o],{value:t[o],configurable:!0,enumerable:!0}}n?n.size>=100&&n.clear():n=new Set,n.add(o)}}};try{return new Proxy(Object.create(null),i)}catch(t){return o.combineObjects(...e)}}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(39),o=function(e,t){return e===t||"function"==typeof t&&e===t.toString()},i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return e.pipe(Object(r.a)((function(e){var n=e.type,r=t.length;if(1===r)return o(n,t[0]);for(var i=0;i<r;i++)if(o(n,t[i]))return!0;return!1})))}}},,,,,,,function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1170))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"SubMenu",(function(){return de})),n.d(t,"Item",(function(){return ze})),n.d(t,"MenuItem",(function(){return ze})),n.d(t,"MenuItemGroup",(function(){return Ke})),n.d(t,"ItemGroup",(function(){return Ke})),n.d(t,"Divider",(function(){return Ue}));var r=n(6),o=n(45),i=n(48),a=n(34),c=n(54),u=n(53),s=n(25),l=n(0),f=n.n(l),p=n(192),d=n(89),h=n(18),v=n(41),m=n(624),y=n(239),b=n.n(y),g=n(5),O=n.n(g),w=n(75),x=n(28);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=/iPhone/i,_=/iPod/i,C=/iPad/i,P=/\bAndroid(?:.+)Mobile\b/i,k=/Android/i,M=/\bAndroid(?:.+)SD4930UR\b/i,N=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,T=/Windows Phone/i,A=/\bWindows(?:.+)ARM\b/i,R=/BlackBerry/i,D=/BB10/i,I=/Opera Mini/i,L=/\b(CriOS|Chrome)(?:.+)Mobile/i,F=/Mobile(?:.+)Firefox\b/i;function z(e,t){return e.test(t)}function B(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),n=t.split("[FBAN");if(void 0!==n[1]){var r=n;t=Object(x.a)(r,1)[0]}if(void 0!==(n=t.split("Twitter"))[1]){var o=n;t=Object(x.a)(o,1)[0]}var i={apple:{phone:z(S,t)&&!z(T,t),ipod:z(_,t),tablet:!z(S,t)&&z(C,t)&&!z(T,t),device:(z(S,t)||z(_,t)||z(C,t))&&!z(T,t)},amazon:{phone:z(M,t),tablet:!z(M,t)&&z(N,t),device:z(M,t)||z(N,t)},android:{phone:!z(T,t)&&z(M,t)||!z(T,t)&&z(P,t),tablet:!z(T,t)&&!z(M,t)&&!z(P,t)&&(z(N,t)||z(k,t)),device:!z(T,t)&&(z(M,t)||z(N,t)||z(P,t)||z(k,t))||z(/\bokhttp\b/i,t)},windows:{phone:z(T,t),tablet:z(A,t),device:z(T,t)||z(A,t)},other:{blackberry:z(R,t),blackberry10:z(D,t),opera:z(I,t),firefox:z(F,t),chrome:z(L,t),device:z(R,t)||z(D,t)||z(I,t)||z(F,t)||z(L,t)},any:null,phone:null,tablet:null};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var H=E(E({},B()),{},{isMobile:B});function K(){}function V(e,t,n){var r=t||"";return e.key||"".concat(r,"item_").concat(n)}function U(e){return"".concat(e,"-menu-")}function W(e,t){var n=-1;f.a.Children.forEach(e,(function(e){n+=1,e&&e.type&&e.type.isMenuItemGroup?f.a.Children.forEach(e.props.children,(function(e){t(e,n+=1)})):t(e,n)}))}var q=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],G=function(e){var t=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;return t&&(t=+t.toFixed(6)),t||0},$=function(e,t,n){e&&"object"===Object(w.a)(e.style)&&(e.style[t]=n)},Y=n(32),X=n(76),Z=n(21),J=n.n(Z),Q=n(558),ee=n(406),te=n(295),ne={adjustX:1,adjustY:1},re={topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ne,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ne,offset:[4,0]}},oe={topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ne,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ne,offset:[4,0]}};function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ue=0,se={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},le=function(e,t,n){var o=U(t),i=e.getState();e.setState({defaultActiveFirst:ce(ce({},i.defaultActiveFirst),{},Object(r.a)({},o,n))})},fe=function(e){Object(c.a)(n,e);var t=ie(n);function n(e){var r;Object(o.a)(this,n),(r=t.call(this,e)).onDestroy=function(e){r.props.onDestroy(e)},r.onKeyDown=function(e){var t=e.keyCode,n=r.menuInstance,o=r.props,i=o.isOpen,a=o.store;if(t===v.a.ENTER)return r.onTitleClick(e),le(a,r.props.eventKey,!0),!0;if(t===v.a.RIGHT)return i?n.onKeyDown(e):(r.triggerOpenChange(!0),le(a,r.props.eventKey,!0)),!0;if(t===v.a.LEFT){var c;if(!i)return;return(c=n.onKeyDown(e))||(r.triggerOpenChange(!1),c=!0),c}return!i||t!==v.a.UP&&t!==v.a.DOWN?void 0:n.onKeyDown(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onPopupVisibleChange=function(e){r.triggerOpenChange(e,e?"mouseenter":"mouseleave")},r.onMouseEnter=function(e){var t=r.props,n=t.eventKey,o=t.onMouseEnter,i=t.store;le(i,r.props.eventKey,!1),o({key:n,domEvent:e})},r.onMouseLeave=function(e){var t=r.props,n=t.parentMenu,o=t.eventKey,i=t.onMouseLeave;n.subMenuInstance=Object(a.a)(r),i({key:o,domEvent:e})},r.onTitleMouseEnter=function(e){var t=r.props,n=t.eventKey,o=t.onItemHover,i=t.onTitleMouseEnter;o({key:n,hover:!0}),i({key:n,domEvent:e})},r.onTitleMouseLeave=function(e){var t=r.props,n=t.parentMenu,o=t.eventKey,i=t.onItemHover,c=t.onTitleMouseLeave;n.subMenuInstance=Object(a.a)(r),i({key:o,hover:!1}),c({key:o,domEvent:e})},r.onTitleClick=function(e){var t=Object(a.a)(r).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(r.triggerOpenChange(!t.isOpen,"click"),le(t.store,r.props.eventKey,!1))},r.onSubMenuClick=function(e){"function"==typeof r.props.onClick&&r.props.onClick(r.addKeyPath(e))},r.onSelect=function(e){r.props.onSelect(e)},r.onDeselect=function(e){r.props.onDeselect(e)},r.getPrefixCls=function(){return"".concat(r.props.rootPrefixCls,"-submenu")},r.getActiveClassName=function(){return"".concat(r.getPrefixCls(),"-active")},r.getDisabledClassName=function(){return"".concat(r.getPrefixCls(),"-disabled")},r.getSelectedClassName=function(){return"".concat(r.getPrefixCls(),"-selected")},r.getOpenClassName=function(){return"".concat(r.props.rootPrefixCls,"-submenu-open")},r.saveMenuInstance=function(e){r.menuInstance=e},r.addKeyPath=function(e){return ce(ce({},e),{},{keyPath:(e.keyPath||[]).concat(r.props.eventKey)})},r.triggerOpenChange=function(e,t){var n=r.props.eventKey,o=function(){r.onOpenChange({key:n,item:Object(a.a)(r),trigger:t,open:e})};"mouseenter"===t?r.mouseenterTimeout=setTimeout((function(){o()}),0):o()},r.isChildrenSelected=function(){var e={find:!1};return function e(t,n,r){t&&!r.find&&f.a.Children.forEach(t,(function(t){if(t){var o=t.type;if(!o||!(o.isSubMenu||o.isMenuItem||o.isMenuItemGroup))return;-1!==n.indexOf(t.key)?r.find=!0:t.props.children&&e(t.props.children,n,r)}}))}(r.props.children,r.props.selectedKeys,e),e.find},r.isOpen=function(){return-1!==r.props.openKeys.indexOf(r.props.eventKey)},r.adjustWidth=function(){if(r.subMenuTitle&&r.menuInstance){var e=J.a.findDOMNode(r.menuInstance);e.offsetWidth>=r.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(r.subMenuTitle.offsetWidth,"px"))}},r.saveSubMenuTitle=function(e){r.subMenuTitle=e},r.getBaseProps=function(){var e=Object(a.a)(r).props;return{mode:"horizontal"===e.mode?"vertical":e.mode,visible:r.props.isOpen,level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:r.onSubMenuClick,onSelect:r.onSelect,onDeselect:r.onDeselect,onDestroy:r.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:r.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:Object(a.a)(r),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[U(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:r.internalMenuId,manualRef:r.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},r.getMotion=function(e,t){var n=Object(a.a)(r).haveRendered,o=r.props,i=o.motion,c=o.rootPrefixCls;return ce(ce({},i),{},{leavedClassName:"".concat(c,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var i=e.store,c=e.eventKey,u=i.getState().defaultActiveFirst;r.isRootMenu=!1;var s=!1;return u&&(s=u[c]),le(i,c,s),r}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,r=t.parentMenu,o=t.manualRef;o&&o(this),"horizontal"===n&&r.isRootMenu&&this.props.isOpen&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(e){var t=this,n=this.getBaseProps(),o=this.getMotion(n.mode,n.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||n.visible||n.forceSubMenuRender,!this.haveOpened)return f.a.createElement("div",null);var i=n.direction;return f.a.createElement(te.a,Object.assign({visible:n.visible},o),(function(o){var a=o.className,c=o.style,u=O()("".concat(n.prefixCls,"-sub"),a,Object(r.a)({},"".concat(n.prefixCls,"-rtl"),"rtl"===i));return f.a.createElement(Ce,Object.assign({},n,{id:t.internalMenuId,className:u,style:c}),e)}))}},{key:"render",value:function(){var e,t=ce({},this.props),n=t.isOpen,o=this.getPrefixCls(),i="inline"===t.mode,a=O()(o,"".concat(o,"-").concat(t.mode),(e={},Object(r.a)(e,t.className,!!t.className),Object(r.a)(e,this.getOpenClassName(),n),Object(r.a)(e,this.getActiveClassName(),t.active||n&&!i),Object(r.a)(e,this.getDisabledClassName(),t.disabled),Object(r.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(t.eventKey?this.internalMenuId="".concat(t.eventKey,"$Menu"):(ue+=1,this.internalMenuId="$__$".concat(ue,"$Menu")));var c={},u={},s={};t.disabled||(c={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},u={onClick:this.onTitleClick},s={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var l={},p=t.direction;i&&("rtl"===p?l.paddingRight=t.inlineIndent*t.level:l.paddingLeft=t.inlineIndent*t.level);var d={};this.props.isOpen&&(d={"aria-owns":this.internalMenuId});var h=null;"horizontal"!==t.mode&&(h=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(h=f.a.createElement(this.props.expandIcon,ce({},this.props))));var v=f.a.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:l,className:"".concat(o,"-title"),role:"button"},s,u,{"aria-expanded":n},d,{"aria-haspopup":"true",title:"string"==typeof t.title?t.title:void 0}),t.title,h||f.a.createElement("i",{className:"".concat(o,"-arrow")})),m=this.renderChildren(t.children),y=t.parentMenu.isRootMenu?t.parentMenu.props.getPopupContainer:function(e){return e.parentNode},b=se[t.mode],g=t.popupOffset?{offset:t.popupOffset}:{},w="inline"===t.mode?"":t.popupClassName;w+="rtl"===p?" ".concat(o,"-rtl"):"";var x=t.disabled,j=t.triggerSubMenuAction,E=t.subMenuOpenDelay,S=t.forceSubMenuRender,_=t.subMenuCloseDelay,C=t.builtinPlacements;q.forEach((function(e){return delete t[e]})),delete t.onClick;var P="rtl"===p?Object.assign({},oe,C):Object.assign({},re,C);return delete t.direction,f.a.createElement("li",Object.assign({},t,c,{className:a,role:"menuitem"}),i&&v,i&&m,!i&&f.a.createElement(ee.a,{prefixCls:o,popupClassName:O()("".concat(o,"-popup"),w),getPopupContainer:y,builtinPlacements:P,popupPlacement:b,popupVisible:n,popupAlign:g,popup:m,action:x?[]:[j],mouseEnterDelay:E,mouseLeaveDelay:_,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:S},v))}}]),n}(f.a.Component);fe.defaultProps={onMouseEnter:K,onMouseLeave:K,onTitleMouseEnter:K,onTitleMouseLeave:K,onTitleClick:K,manualRef:K,mode:"vertical",title:""};var pe=Object(p.b)((function(e,t){var n=e.openKeys,r=e.activeKey,o=e.selectedKeys,i=t.eventKey,a=t.subMenuKey;return{isOpen:n.indexOf(i)>-1,active:r[a]===i,selectedKeys:o}}))(fe);pe.isSubMenu=!0;var de=pe;function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var ye=function(e){Object(c.a)(n,e);var t=me(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=J.a.findDOMNode(Object(a.a)(e));return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,r){var o=e.props,i=o.overflowedIndicator,a=o.level,c=o.mode,u=o.prefixCls,s=o.theme;if(1!==a||"horizontal"!==c)return null;var l=e.props.children[0].props,p=(l.children,l.title,l.style),d=Object(X.a)(l,["children","title","style"]),h=ve({},p),v="".concat(t,"-overflowed-indicator"),m="".concat(t,"-overflowed-indicator");0===n.length&&!0!==r?h=ve(ve({},h),{},{display:"none"}):r&&(h=ve(ve({},h),{},{visibility:"hidden",position:"absolute"}),v="".concat(v,"-placeholder"),m="".concat(m,"-placeholder"));var y=s?"".concat(u,"-").concat(s):"",b={};return q.forEach((function(e){void 0!==d[e]&&(b[e]=d[e])})),f.a.createElement(de,Object.assign({title:i,className:"".concat(u,"-overflowed-submenu"),popupClassName:y},b,{key:v,eventKey:m,disabled:!1,style:h}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=J.a.findDOMNode(Object(a.a)(e));if(t){var n=t.children;if(n&&0!==n.length){var r=t.children[n.length-1];$(r,"display","inline-block");var o=e.getMenuItemNodes(),i=o.filter((function(e){return e.className.split(" ").indexOf("menuitem-overflowed")>=0}));i.forEach((function(e){$(e,"display","inline-block")})),e.menuItemSizes=o.map((function(e){return G(e)})),i.forEach((function(e){$(e,"display","none")})),e.overflowedIndicatorWidth=G(t.children[t.children.length-1]),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),$(r,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=J.a.findDOMNode(Object(a.a)(e));if(t){var n=G(t);e.overflowedItems=[];var r,o=0;e.originalTotalWidth>n+.5&&(r=-1,e.menuItemSizes.forEach((function(t){(o+=t)+e.overflowedIndicatorWidth<=n&&(r+=1)}))),e.setState({lastVisibleIndex:r})}}},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=J.a.findDOMNode(this);if(!t)return;this.resizeObserver=new Q.a((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,o,i){var a=o;if("horizontal"===t.props.mode){var c=t.getOverflowedSubMenuItem(o.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(i>n&&(a=f.a.cloneElement(o,{style:{display:"none"},eventKey:"".concat(o.props.eventKey,"-hidden"),className:"".concat("menuitem-overflowed")})),i===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return f.a.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),c=t.getOverflowedSubMenuItem(o.props.eventKey,t.overflowedItems)));var u=[].concat(Object(Y.a)(r),[c,a]);return i===e.length-1&&u.push(t.getOverflowedSubMenuItem(o.props.eventKey,[],!0)),u}return[].concat(Object(Y.a)(r),[a])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,r=(e.theme,Object(X.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),o=t;return f.a.createElement(o,Object.assign({},r),this.renderChildren(n))}}]),n}(f.a.Component);ye.defaultProps={tag:"div",className:""};var be=ye;function ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xe(e,t,n){var o=e.getState();e.setState({activeKey:we(we({},o.activeKey),{},Object(r.a)({},t,n))})}function je(e){return e.eventKey||"0-menu-"}function Ee(e,t){var n,r=t,o=e.children,i=e.eventKey;if(r&&(W(o,(function(e,t){e&&e.props&&!e.props.disabled&&r===V(e,i,t)&&(n=!0)})),n))return r;return r=null,e.defaultActiveFirst?(W(o,(function(e,t){r||!e||e.props.disabled||(r=V(e,i,t))})),r):r}function Se(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var _e=function(e){Object(c.a)(n,e);var t=ge(n);function n(e){var i;return Object(o.a)(this,n),(i=t.call(this,e)).onKeyDown=function(e,t){var n,r=e.keyCode;if(i.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var o=null;return r!==v.a.UP&&r!==v.a.DOWN||(o=i.step(r===v.a.UP?-1:1)),o?(e.preventDefault(),xe(i.props.store,je(i.props),o.props.eventKey),"function"==typeof t&&t(o),1):void 0},i.onItemHover=function(e){var t=e.key,n=e.hover;xe(i.props.store,je(i.props),n?t:null)},i.onDeselect=function(e){i.props.onDeselect(e)},i.onSelect=function(e){i.props.onSelect(e)},i.onClick=function(e){i.props.onClick(e)},i.onOpenChange=function(e){i.props.onOpenChange(e)},i.onDestroy=function(e){i.props.onDestroy(e)},i.getFlatInstanceArray=function(){return i.instanceArray},i.step=function(e){var t=i.getFlatInstanceArray(),n=i.props.store.getState().activeKey[je(i.props)],r=t.length;if(!r)return null;e<0&&(t=t.concat().reverse());var o=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(o=t,!1)})),i.props.defaultActiveFirst||-1===o||(a=t.slice(o,r-1)).length&&!a.every((function(e){return!!e.props.disabled}))){var a,c=(o+1)%r,u=c;do{var s=t[u];if(s&&!s.props.disabled)return s;u=(u+1)%r}while(u!==c);return null}},i.renderCommonMenuItem=function(e,t,n){var r=i.props.store.getState(),o=Object(a.a)(i).props,c=V(e,o.eventKey,t),u=e.props;if(!u||"string"==typeof e.type)return e;var s=c===r.activeKey,l=we(we({mode:u.mode||o.mode,level:o.level,inlineIndent:o.inlineIndent,renderMenuItem:i.renderMenuItem,rootPrefixCls:o.prefixCls,index:t,parentMenu:o.parentMenu,manualRef:u.disabled?void 0:Object(m.a)(e.ref,Se.bind(Object(a.a)(i))),eventKey:c,active:!u.disabled&&s,multiple:o.multiple,onClick:function(e){(u.onClick||K)(e),i.onClick(e)},onItemHover:i.onItemHover,motion:o.motion,subMenuOpenDelay:o.subMenuOpenDelay,subMenuCloseDelay:o.subMenuCloseDelay,forceSubMenuRender:o.forceSubMenuRender,onOpenChange:i.onOpenChange,onDeselect:i.onDeselect,onSelect:i.onSelect,builtinPlacements:o.builtinPlacements,itemIcon:u.itemIcon||i.props.itemIcon,expandIcon:u.expandIcon||i.props.expandIcon},n),{},{direction:o.direction});return("inline"===o.mode||H.any)&&(l.triggerSubMenuAction="click"),f.a.cloneElement(e,l)},i.renderMenuItem=function(e,t,n){if(!e)return null;var r=i.props.store.getState(),o={openKeys:r.openKeys,selectedKeys:r.selectedKeys,triggerSubMenuAction:i.props.triggerSubMenuAction,subMenuKey:n};return i.renderCommonMenuItem(e,t,o)},e.store.setState({activeKey:we(we({},e.store.getState().activeKey),{},Object(r.a)({},e.eventKey,Ee(e,e.activeKey)))}),i.instanceArray=[],i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!b()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[je(t)],r=Ee(t,n);if(r!==n)xe(t.store,je(t),r);else if("activeKey"in e){r!==Ee(e,e.activeKey)&&xe(t.store,je(t),r)}}},{key:"render",value:function(){var e=this,t=Object(h.a)({},this.props);this.instanceArray=[];var n={className:O()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var r=t.prefixCls,o=t.eventKey,i=t.visible,a=t.level,c=t.mode,u=t.overflowedIndicator,s=t.theme;return q.forEach((function(e){return delete t[e]})),delete t.onClick,f.a.createElement(be,Object.assign({},t,{prefixCls:r,mode:c,tag:"ul",level:a,theme:s,visible:i,overflowedIndicator:u},n),f.a.Children.map(t.children,(function(t,n){return e.renderMenuItem(t,n,o||"0-menu-")})))}}]),n}(f.a.Component);_e.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:K};var Ce=Object(p.b)()(_e),Pe=n(62);function ke(e,t,n){var r=e.prefixCls,o=e.motion,i=e.defaultMotions,a=void 0===i?{}:i,c=e.openAnimation,u=e.openTransitionName,s=t.switchingModeFromInline;if(o)return o;if("object"===Object(w.a)(c)&&c)Object(Pe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof c)return{motionName:"".concat(r,"-open-").concat(c)};if(u)return{motionName:u};var l=a[n];return l||(s?null:a.other)}function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Ae=function(e){Object(c.a)(n,e);var t=Te(n);function n(e){var r;Object(o.a)(this,n),(r=t.call(this,e)).inlineOpenKeys=[],r.onSelect=function(e){var t=Object(a.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys,o=e.key;n=t.multiple?n.concat([o]):[o],"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onSelect(Ne(Ne({},e),{},{selectedKeys:n}))}},r.onClick=function(e){var t=r.getRealMenuMode(),n=Object(a.a)(r),o=n.store,i=n.props.onOpenChange;"inline"===t||"openKeys"in r.props||(o.setState({openKeys:[]}),i([])),r.props.onClick(e)},r.onKeyDown=function(e,t){r.innerMenu.getWrappedInstance().onKeyDown(e,t)},r.onOpenChange=function(e){var t=Object(a.a)(r).props,n=r.store.getState().openKeys.concat(),o=!1,i=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var r=n.indexOf(e.key);(t=-1!==r)&&n.splice(r,1)}o=o||t};Array.isArray(e)?e.forEach(i):i(e),o&&("openKeys"in r.props||r.store.setState({openKeys:n}),t.onOpenChange(n))},r.onDeselect=function(e){var t=Object(a.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys.concat(),o=e.key,i=n.indexOf(o);-1!==i&&n.splice(i,1),"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onDeselect(Ne(Ne({},e),{},{selectedKeys:n}))}},r.onMouseEnter=function(e){r.restoreModeVerticalFromInline();var t=r.props.onMouseEnter;t&&t(e)},r.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,o="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,i="font-size"===e.propertyName&&o.indexOf("anticon")>=0;(t||i)&&r.restoreModeVerticalFromInline()},r.setInnerMenu=function(e){r.innerMenu=e},r.isRootMenu=!0;var i=e.defaultSelectedKeys,c=e.defaultOpenKeys;return"selectedKeys"in e&&(i=e.selectedKeys||[]),"openKeys"in e&&(c=e.openKeys||[]),r.store=Object(p.c)({selectedKeys:i,openKeys:c,activeKey:{"0-menu-":Ee(e,e.activeKey)}}),r.state={switchingModeFromInline:!1},r}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){this.updateOpentKeysWhenSwitchMode(e),this.updateMiniStore();var t=this.props,n=t.siderCollapsed,r=t.inlineCollapsed,o=t.onOpenChange;(!e.inlineCollapsed&&r||!e.siderCollapsed&&n)&&o([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(e){var t=this.props,n=this.store,r=this.inlineOpenKeys,o=n.getState(),i={};"inline"===e.mode&&"inline"!==t.mode&&this.setState({switchingModeFromInline:!0}),"openKeys"in t||((t.inlineCollapsed&&!e.inlineCollapsed||t.siderCollapsed&&!e.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=o.openKeys.concat(),i.openKeys=[]),(!t.inlineCollapsed&&e.inlineCollapsed||!t.siderCollapsed&&e.siderCollapsed)&&(i.openKeys=r,this.inlineOpenKeys=[])),Object.keys(i).length&&n.setState(i)}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e)?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Ne({},Object(d.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=Ne(Ne({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ke(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,f.a.createElement(p.a,{store:this.store},f.a.createElement(Ce,Object.assign({},e,{ref:this.setInnerMenu}),this.props.children))}}]),n}(f.a.Component);Ae.defaultProps={selectable:!0,onClick:K,onSelect:K,onOpenChange:K,onDeselect:K,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:f.a.createElement("span",null,"···")};var Re=Ae;function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Fe=function(e){Object(c.a)(n,e);var t=Le(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===v.a.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,r=n.eventKey,o=n.onItemHover,i=n.onMouseLeave;o({key:r,hover:!1}),i({key:r,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,r=n.eventKey,o=n.onItemHover,i=n.onMouseEnter;o({key:r,hover:!0}),i({key:r,domEvent:t})},e.onClick=function(t){var n=e.props,r=n.eventKey,o=n.multiple,i=n.onClick,c=n.onSelect,u=n.onDeselect,s=n.isSelected,l={key:r,keyPath:[r],item:Object(a.a)(e),domEvent:t};i(l),o?s?u(l):c(l):s||c(l)},e.saveNode=function(t){e.node=t},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=Ie({},this.props),n=O()(this.getPrefixCls(),t.className,(e={},Object(r.a)(e,this.getActiveClassName(),!t.disabled&&t.active),Object(r.a)(e,this.getSelectedClassName(),t.isSelected),Object(r.a)(e,this.getDisabledClassName(),t.disabled),e)),o=Ie(Ie({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?o=Ie(Ie({},o),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(o.role="none");var i={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},a=Ie({},t.style);"inline"===t.mode&&("rtl"===t.direction?a.paddingRight=t.inlineIndent*t.level:a.paddingLeft=t.inlineIndent*t.level),q.forEach((function(e){return delete t[e]})),delete t.direction;var c=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(c=f.a.createElement(this.props.itemIcon,this.props)),f.a.createElement("li",Object.assign({},Object(d.default)(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),o,i,{style:a,ref:this.saveNode}),t.children,c)}}]),n}(f.a.Component);Fe.isMenuItem=!0,Fe.defaultProps={onSelect:K,onMouseEnter:K,onMouseLeave:K,manualRef:K};var ze=Object(p.b)((function(e,t){var n=e.activeKey,r=e.selectedKeys,o=t.eventKey;return{active:n[t.subMenuKey]===o,isSelected:-1!==r.indexOf(o)}}))(Fe);function Be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var He=function(e){Object(c.a)(n,e);var t=Be(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).renderInnerMenuItem=function(t){var n=e.props;return(0,n.renderMenuItem)(t,n.index,e.props.subMenuKey)},e}return Object(i.a)(n,[{key:"render",value:function(){var e=Object(h.a)({},this.props),t=e.className,n=void 0===t?"":t,r=e.rootPrefixCls,o="".concat(r,"-item-group-title"),i="".concat(r,"-item-group-list"),a=e.title,c=e.children;return q.forEach((function(t){return delete e[t]})),delete e.onClick,delete e.direction,f.a.createElement("li",Object.assign({},e,{className:"".concat(n," ").concat(r,"-item-group")}),f.a.createElement("div",{className:o,title:"string"==typeof a?a:void 0},a),f.a.createElement("ul",{className:i},f.a.Children.map(c,this.renderInnerMenuItem)))}}]),n}(f.a.Component);He.isMenuItemGroup=!0,He.defaultProps={disabled:!0};var Ke=He,Ve=function(e){var t=e.className,n=e.rootPrefixCls,r=e.style;return f.a.createElement("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:r})};Ve.defaultProps={disabled:!0,className:"",style:{}};var Ue=Ve;t.default=Re},function(e,t,n){"use strict";var r=n(766),o={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a={lang:i({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:i({},o)},c=a,u="${label} is not a valid ${type}",s={locale:"en",Pagination:r.a,DatePicker:a,TimePicker:o,Calendar:c,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{defaultValidateMessages:{default:"Field validation error ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label} must be ${len} characters",min:"${label} at least ${min} characters",max:"${label} up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} minimum value is ${min}",max:"${label} maximum value is ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};t.a=s},function(e,t,n){"use strict";var r=n(0);t.a=function(e,t){var n=Object(r.useRef)(!0);Object(r.useEffect)((function(){if(!n.current)return e();n.current=!1}),t)}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"b",(function(){return o}));var o=["xxl","xl","lg","md","sm","xs"],i={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},a=new Map,c=-1,u={},s={matchHandlers:{},dispatch:function(e){return u=e,a.forEach((function(e){return e(u)})),a.size>=1},subscribe:function(e){return a.size||this.register(),c+=1,a.set(c,e),e(u),c},unsubscribe:function(e){a.delete(e),a.size||this.unregister()},unregister:function(){var e=this;Object.keys(i).forEach((function(t){var n=i[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),a.clear()},register:function(){var e=this;Object.keys(i).forEach((function(t){var n=i[t],o=function(n){var o,i,a,c=n.matches;e.dispatch(r(r({},u),(a=c,(i=t)in(o={})?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o)))},a=window.matchMedia(n);a.addListener(o),e.matchHandlers[n]={mql:a,listener:o},o(a)}))}};t.a=s},function(e,t,n){"use strict";var r={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},o={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},i=[],a=[];function c(e,t,n){e.addEventListener(t,n,!1)}function u(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var e=document.createElement("div").style;function t(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];for(var i in o)if(i in e){n.push(o[i]);break}}}"AnimationEvent"in window||(delete r.animationstart.animation,delete o.animationend.animation),"TransitionEvent"in window||(delete r.transitionstart.transition,delete o.transitionend.transition),t(r,i),t(o,a)}();var s={startEvents:i,addStartEventListener:function(e,t){0!==i.length?i.forEach((function(n){c(e,n,t)})):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==i.length&&i.forEach((function(n){u(e,n,t)}))},endEvents:a,addEndEventListener:function(e,t){0!==a.length?a.forEach((function(n){c(e,n,t)})):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==a.length&&a.forEach((function(n){u(e,n,t)}))}};t.a=s},function(e,t,n){var r=n(66).Uint8Array;e.exports=r},function(e,t,n){var r=n(367),o=n(347),i=n(157);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(346),o=n(56);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t){e.exports=function(){return[]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(491),o=n(492);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e,t,n){var r=n(1063);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";var r=n(18),o=n(61),i=n(34),a=n(135),c=n(0),u=(n(26),!!document.documentElement.currentStyle),s={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},l=["letter-spacing","line-height","font-family","font-weight","font-size","font-style","tab-size","text-rendering","text-transform","width","text-indent","padding-top","padding-right","padding-bottom","padding-left","border-top-width","border-right-width","border-bottom-width","border-left-width","box-sizing"],f={},p=document.createElement("textarea"),d=function(e){Object.keys(s).forEach((function(t){e.style.setProperty(t,s[t],"important")}))};function h(e,t,n,r,o){void 0===n&&(n=!1),void 0===r&&(r=null),void 0===o&&(o=null),null===p.parentNode&&document.body.appendChild(p);var i=function(e,t,n){void 0===n&&(n=!1);if(n&&f[t])return f[t];var r=window.getComputedStyle(e);if(null===r)return null;var o=l.reduce((function(e,t){return e[t]=r.getPropertyValue(t),e}),{}),i=o["box-sizing"];if(""===i)return null;u&&"border-box"===i&&(o.width=parseFloat(o.width)+parseFloat(r["border-right-width"])+parseFloat(r["border-left-width"])+parseFloat(r["padding-right"])+parseFloat(r["padding-left"])+"px");var a=parseFloat(o["padding-bottom"])+parseFloat(o["padding-top"]),c=parseFloat(o["border-bottom-width"])+parseFloat(o["border-top-width"]),s={sizingStyle:o,paddingSize:a,borderSize:c,boxSizing:i};n&&(f[t]=s);return s}(e,t,n);if(null===i)return null;var a=i.paddingSize,c=i.borderSize,s=i.boxSizing,h=i.sizingStyle;Object.keys(h).forEach((function(e){p.style[e]=h[e]})),d(p),p.value=e.value||e.placeholder||"x";var v=-1/0,m=1/0,y=p.scrollHeight;"border-box"===s?y+=c:"content-box"===s&&(y-=a),p.value="x";var b=p.scrollHeight-a,g=Math.floor(y/b);return null!==r&&(v=b*r,"border-box"===s&&(v=v+a+c),y=Math.max(v,y)),null!==o&&(m=b*o,"border-box"===s&&(m=m+a+c),y=Math.min(m,y)),{height:y,minHeight:v,maxHeight:m,rowCount:Math.floor(y/b),valueRowCount:g}}p.setAttribute("tab-index","-1"),p.setAttribute("aria-hidden","true"),d(p);var v=function(){},m=0,y=function(e){function t(t){var n;return(n=e.call(this,t)||this)._onRef=function(e){n._ref=e;var t=n.props.inputRef;"function"!=typeof t?t.current=e:t(e)},n._onChange=function(e){n._controlled||n._resizeComponent(),n.props.onChange(e,Object(i.a)(n))},n._resizeComponent=function(e){void 0===e&&(e=v);var t=h(n._ref,n._uid,n.props.useCacheForDOMMeasurements,n.props.minRows,n.props.maxRows);if(null!==t){var r=t.height,o=t.minHeight,i=t.maxHeight,a=t.rowCount,c=t.valueRowCount;n.rowCount=a,n.valueRowCount=c,n.state.height===r&&n.state.minHeight===o&&n.state.maxHeight===i?e():n.setState({height:r,minHeight:o,maxHeight:i},e)}else e()},n.state={height:t.style&&t.style.height||0,minHeight:-1/0,maxHeight:1/0},n._uid=m++,n._controlled=void 0!==t.value,n._resizeLock=!1,n}Object(a.a)(t,e);var n=t.prototype;return n.render=function(){var e=this.props,t=(e.inputRef,e.maxRows,e.minRows,e.onHeightChange,e.useCacheForDOMMeasurements,Object(o.a)(e,["inputRef","maxRows","minRows","onHeightChange","useCacheForDOMMeasurements"]));return t.style=Object(r.a)({},t.style,{height:this.state.height}),Math.max(t.style.maxHeight||1/0,this.state.maxHeight)<this.state.height&&(t.style.overflow="hidden"),Object(c.createElement)("textarea",Object(r.a)({},t,{onChange:this._onChange,ref:this._onRef}))},n.componentDidMount=function(){var e=this;this._resizeComponent(),this._resizeListener=function(){e._resizeLock||(e._resizeLock=!0,e._resizeComponent((function(){e._resizeLock=!1})))},window.addEventListener("resize",this._resizeListener)},n.componentDidUpdate=function(e,t){e!==this.props&&this._resizeComponent(),this.state.height!==t.height&&this.props.onHeightChange(this.state.height,this)},n.componentWillUnmount=function(){window.removeEventListener("resize",this._resizeListener),function(e){delete f[e]}(this._uid)},t}(c.Component);y.defaultProps={inputRef:v,onChange:v,onHeightChange:v,useCacheForDOMMeasurements:!1},t.a=y},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1099))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),o=n(7),i=n(114);function a(e,t){return void 0===t&&(t=i.a),function(n){return n.lift(new c(e,t))}}var c=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.dueTime,this.scheduler))},e}(),u=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.dueTime=n,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return r.__extends(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(s,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(o.a);function s(e){e.debouncedNext()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),o=n(95),i=n(73),a=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r.__extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(o.a)},function(e,t,n){"use strict";var r=n(6),o=n(45),i=n(48),a=n(34),c=n(54),u=n(53),s=n(25),l=n(0),f=n.n(l),p=n(21),d=n.n(p),h=n(565),v=n(557),m=n(181),y=n(194),b=n(769),g=n(5),O=n.n(g);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var E,S=n(76),_=n(109),C=n.n(_),P=n(28),k=n(75);function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var A={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function R(){if(void 0!==E)return E;E="";var e=document.createElement("p").style;for(var t in A)t+"Transform"in e&&(E=t);return E}function D(){return R()?"".concat(R(),"TransitionProperty"):"transitionProperty"}function I(){return R()?"".concat(R(),"Transform"):"transform"}function L(e,t){var n=D();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function F(e,t){var n=I();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var z,B=/matrix\((.*)\)/,H=/matrix3d\((.*)\)/;function K(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function V(e,t,n){var r=n;if("object"!==M(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):z(e,t);for(var o in t)t.hasOwnProperty(o)&&V(e,o,t[o])}function U(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function W(e){return U(e)}function q(e){return U(e,!0)}function G(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=W(r),t.top+=q(r),t}function $(e){return null!=e&&e==e.window}function Y(e){return $(e)?e.document:9===e.nodeType?e:e.ownerDocument}var X=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),Z=/^(top|right|bottom|left)$/,J="left";function Q(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ee(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function te(e,t,n){"static"===V(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=Q("left",n),a=Q("top",n),c=ee(i),u=ee(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var s,l="",f=G(e);("left"in t||"top"in t)&&(l=(s=e).style.transitionProperty||s.style[D()]||"",L(e,"none")),"left"in t&&(e.style[c]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[u]="",e.style[a]="".concat(o,"px")),K(e);var p=G(e),d={};for(var h in t)if(t.hasOwnProperty(h)){var v=Q(h,n),m="left"===h?r:o,y=f[h]-p[h];d[v]=v===h?m+y:m-y}V(e,d),K(e),("left"in t||"top"in t)&&L(e,l);var b={};for(var g in t)if(t.hasOwnProperty(g)){var O=Q(g,n),w=t[g]-f[g];b[O]=g===O?d[O]+w:d[O]-w}V(e,b)}function ne(e,t){var n=G(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(I());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(I());if(r&&"none"!==r){var o,i=r.match(B);if(i)(o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,F(e,"matrix(".concat(o.join(","),")"));else(o=r.match(H)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,F(e,"matrix3d(".concat(o.join(","),")"))}else F(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function re(e,t){for(var n=0;n<e.length;n++)t(e[n])}function oe(e){return"border-box"===z(e,"boxSizing")}"undefined"!=typeof window&&(z=window.getComputedStyle?function(e,t,n){var r=n,o="",i=Y(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(X.test(n)&&!Z.test(t)){var r=e.style,o=r[J],i=e.runtimeStyle[J];e.runtimeStyle[J]=e.currentStyle[J],r[J]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[J]=o,e.runtimeStyle[J]=i}return""===n?"auto":n});var ie=["margin","border","padding"];function ae(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}function ce(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var c=void 0;c="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(z(e,c))||0}return a}var ue={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function se(e,t,n){var r=n;if($(e))return"width"===t?ue.viewportWidth(e):ue.viewportHeight(e);if(9===e.nodeType)return"width"===t?ue.docWidth(e):ue.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height,a=(z(e),oe(e)),c=0;(null==i||i<=0)&&(i=void 0,(null==(c=z(e,t))||Number(c)<0)&&(c=e.style[t]||0),c=parseFloat(c)||0),void 0===r&&(r=a?1:-1);var u=void 0!==i||a,s=i||c;return-1===r?u?s-ce(e,["border","padding"],o):c:u?1===r?s:s+(2===r?-ce(e,["border"],o):ce(e,["margin"],o)):c+ce(e,ie.slice(r),o)}re(["Width","Height"],(function(e){ue["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],ue["viewport".concat(e)](n))},ue["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var le={position:"absolute",visibility:"hidden",display:"block"};function fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=se.apply(void 0,t):ae(o,le,(function(){r=se.apply(void 0,t)})),r}function pe(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}re(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);ue["outer".concat(t)]=function(t,n){return t&&fe(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];ue[e]=function(t,r){var o=r;if(void 0===o)return t&&fe(t,e,-1);if(t){z(t);return oe(t)&&(o+=ce(t,["padding","border"],n)),V(t,e,o)}}}));var de={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Y,offset:function(e,t,n){if(void 0===t)return G(e);!function(e,t,n){if(n.ignoreShake){var r=G(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),c=t.top.toFixed(0);if(o===a&&i===c)return}n.useCssRight||n.useCssBottom?te(e,t,n):n.useCssTransform&&I()in document.body.style?ne(e,t):te(e,t,n)}(e,t,n||{})},isWindow:$,each:re,css:V,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:pe,getWindowScrollLeft:function(e){return W(e)},getWindowScrollTop:function(e){return q(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)de.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};pe(de,ue);var he=de.getParent;function ve(e){if(de.isWindow(e)||9===e.nodeType)return null;var t,n=de.getDocument(e).body,r=de.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:he(e);for(t=he(e);t&&t!==n&&9!==t.nodeType;t=he(t))if("static"!==(r=de.css(t,"position")))return t;return null}var me=de.getParent;function ye(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=ve(e),o=de.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,c=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===c||"visible"===de.css(r,"overflow")){if(r===a||r===c)break}else{var u=de.offset(r);u.left+=r.clientLeft,u.top+=r.clientTop,n.top=Math.max(n.top,u.top),n.right=Math.min(n.right,u.left+r.clientWidth),n.bottom=Math.min(n.bottom,u.top+r.clientHeight),n.left=Math.max(n.left,u.left)}r=ve(r)}var s=null;de.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===de.css(e,"position")&&(e.style.position="fixed"));var l=de.getWindowScrollLeft(i),f=de.getWindowScrollTop(i),p=de.viewportWidth(i),d=de.viewportHeight(i),h=c.scrollWidth,v=c.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(h=i.innerWidth),"hidden"===m.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=s),t||function(e){if(de.isWindow(e)||9===e.nodeType)return!1;var t=de.getDocument(e).body,n=null;for(n=me(e);n&&n!==t;n=me(n)){if("fixed"===de.css(n,"position"))return!0}return!1}(e))n.left=Math.max(n.left,l),n.top=Math.max(n.top,f),n.right=Math.min(n.right,l+p),n.bottom=Math.min(n.bottom,f+d);else{var y=Math.max(h,l+p);n.right=Math.min(n.right,y);var b=Math.max(v,f+d);n.bottom=Math.min(n.bottom,b)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function be(e){var t,n,r;if(de.isWindow(e)||9===e.nodeType){var o=de.getWindow(e);t={left:de.getWindowScrollLeft(o),top:de.getWindowScrollTop(o)},n=de.viewportWidth(o),r=de.viewportHeight(o)}else t=de.offset(e),n=de.outerWidth(e),r=de.outerHeight(e);return t.width=n,t.height=r,t}function ge(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,c=e.top;return"c"===n?c+=i/2:"b"===n&&(c+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:c}}function Oe(e,t,n,r,o){var i=ge(t,n[1]),a=ge(e,n[0]),c=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-c[0]+r[0]-o[0]),top:Math.round(e.top-c[1]+r[1]-o[1])}}function we(e,t,n){return e.left<n.left||e.left+t.width>n.right}function xe(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function je(e,t,n){var r=[];return de.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Ee(e,t){return e[t]=-e[t],e}function Se(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function _e(e,t){e[0]=Se(e[0],t.width),e[1]=Se(e[1],t.height)}function Ce(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],c=n.overflow,u=n.source||e;i=[].concat(i),a=[].concat(a);var s={},l=0,f=ye(u,!(!(c=c||{})||!c.alwaysByViewport)),p=be(u);_e(i,p),_e(a,t);var d=Oe(p,t,o,i,a),h=de.merge(p,d);if(f&&(c.adjustX||c.adjustY)&&r){if(c.adjustX&&we(d,p,f)){var v=je(o,/[lr]/gi,{l:"r",r:"l"}),m=Ee(i,0),y=Ee(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Oe(p,t,v,m,y),p,f)||(l=1,o=v,i=m,a=y)}if(c.adjustY&&xe(d,p,f)){var b=je(o,/[tb]/gi,{t:"b",b:"t"}),g=Ee(i,1),O=Ee(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Oe(p,t,b,g,O),p,f)||(l=1,o=b,i=g,a=O)}l&&(d=Oe(p,t,o,i,a),de.mix(h,d));var w=we(d,p,f),x=xe(d,p,f);if(w||x){var j=o;w&&(j=je(o,/[lr]/gi,{l:"r",r:"l"})),x&&(j=je(o,/[tb]/gi,{t:"b",b:"t"})),o=j,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=c.adjustX&&w,s.adjustY=c.adjustY&&x,(s.adjustX||s.adjustY)&&(h=function(e,t,n,r){var o=de.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),de.mix(o,i)}(d,p,f,s))}return h.width!==p.width&&de.css(u,"width",de.width(u)+h.width-p.width),h.height!==p.height&&de.css(u,"height",de.height(u)+h.height-p.height),de.offset(u,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:s}}function Pe(e,t,n){var r=n.target||t;return Ce(e,be(r),n,!function(e,t){var n=ye(e,t),r=be(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport))}function ke(e,t,n){var r,o,i=de.getDocument(e),a=i.defaultView||i.parentWindow,c=de.getWindowScrollLeft(a),u=de.getWindowScrollTop(a),s=de.viewportWidth(a),l=de.viewportHeight(a);r="pageX"in t?t.pageX:c+t.clientX,o="pageY"in t?t.pageY:u+t.clientY;var f=r>=0&&r<=c+s&&o>=0&&o<=u+l;return Ce(e,{left:r,top:o,width:0,height:0},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(n,!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{points:[n.points[0],"cc"]}),f)}Pe.__getOffsetParent=ve,Pe.__getVisibleRectForElement=ye;var Me=n(558);function Ne(e,t){var n=null,r=null;var o=new Me.a((function(e){var o=Object(P.a)(e,1)[0].target.getBoundingClientRect(),i=o.width,a=o.height,c=Math.floor(i),u=Math.floor(a);n===c&&r===u||t({width:c,height:u}),n=c,r=u}));return e&&o.observe(e),function(){o.disconnect()}}function Te(e){return"function"!=typeof e?null:e()}function Ae(e){return"object"===Object(k.a)(e)&&e?e:null}var Re=f.a.forwardRef((function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,c=e.monitorWindowResize,u=e.monitorBufferTime,s=void 0===u?0:u,l=f.a.useRef({}),p=f.a.useRef(),d=f.a.Children.only(n),v=f.a.useRef({});v.current.disabled=r,v.current.target=o,v.current.onAlign=a;var b=function(e,t){var n=f.a.useRef(!1),r=f.a.useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(n.current&&!0!==a)o(),r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e())return;n.current=!0,o(),r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=v.current,t=e.disabled,n=e.target;if(!t&&n){var r,o=p.current,c=Te(n),u=Ae(n);l.current.element=c,l.current.point=u;var s=document.activeElement;return c?r=Pe(o,c,i):u&&(r=ke(o,u,i)),function(e,t){e!==document.activeElement&&Object(h.a)(t,e)&&"function"==typeof e.focus&&e.focus()}(s,o),a&&a(o,r),!0}return!1}),s),g=Object(P.a)(b,2),O=g[0],w=g[1],x=f.a.useRef({cancel:function(){}}),j=f.a.useRef({cancel:function(){}});f.a.useEffect((function(){var e,t,n=Te(o),r=Ae(o);p.current!==j.current.element&&(j.current.cancel(),j.current.element=p.current,j.current.cancel=Ne(p.current,O)),l.current.element===n&&((e=l.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(O(),x.current.element!==n&&(x.current.cancel(),x.current.element=n,x.current.cancel=Ne(n,O)))})),f.a.useEffect((function(){r?w():O()}),[r]);var E=f.a.useRef(null);return f.a.useEffect((function(){c?E.current||(E.current=Object(y.a)(window,"resize",O)):E.current&&(E.current.remove(),E.current=null)}),[c]),f.a.useEffect((function(){return function(){x.current.cancel(),j.current.cancel(),E.current&&E.current.remove(),w()}}),[]),f.a.useImperativeHandle(t,(function(){return{forceAlign:function(){return O(!0)}}})),f.a.isValidElement(d)&&(d=f.a.cloneElement(d,{ref:Object(m.a)(d.ref,p)})),d}));Re.displayName="Align";var De=Re,Ie=n(295),Le=f.a.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.visible,i=e.style,a=e.children,c=e.onMouseEnter,u=e.onMouseLeave,s=e.onMouseDown,l=e.onTouchStart,p=a;return f.a.Children.count(a)>1&&(p=f.a.createElement("div",{className:"".concat(n,"-content")},a)),f.a.createElement("div",{ref:t,className:O()(r,!o&&"".concat(e.hiddenClassName)),onMouseEnter:c,onMouseLeave:u,onMouseDown:s,onTouchStart:l,style:i},p)}));Le.displayName="PopupInner";var Fe=Le;function ze(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Ve=Ie.a;function Ue(e){return e&&e.motionName}var We=function(e){Object(c.a)(n,e);var t=Ke(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null},e.popupRef=f.a.createRef(),e.alignRef=f.a.createRef(),e.nextFrameState=null,e.nextFrameId=null,e.onAlign=function(t,n){var r=e.state.status,o=e.props,i=o.getClassNameFromAlign,a=o.onAlign,c=i(n);"align"===r?e.setState({alignClassName:c,status:"aligned"},(function(){e.alignRef.current.forceAlign()})):"aligned"===r?(e.setState({alignClassName:c,status:"afterAlign"}),a(t,n)):e.setState({alignClassName:c})},e.onMotionEnd=function(){var t=e.props.visible;e.setState({status:t?"AfterMotion":"stable"})},e.setStateOnNextFrame=function(t){e.cancelFrameState(),e.nextFrameState=He(He({},e.nextFrameState),t),e.nextFrameId=C()((function(){var t=He({},e.nextFrameState);e.nextFrameState=null,e.setState(t)}))},e.getMotion=function(){return He({},ze(e.props))},e.getAlignTarget=function(){var t=e.props,n=t.point,r=t.getRootDomNode;return n||r},e.cancelFrameState=function(){C.a.cancel(e.nextFrameId)},e.renderPopupElement=function(){var t=e.state,n=t.status,r=t.targetHeight,o=t.targetWidth,i=t.alignClassName,a=e.props,c=a.prefixCls,u=a.className,s=a.style,l=a.stretch,p=a.visible,d=a.align,h=a.destroyPopupOnHide,v=a.onMouseEnter,y=a.onMouseLeave,b=a.onMouseDown,g=a.onTouchStart,w=a.children,x=O()(c,u,i),j="".concat(c,"-hidden"),E={};l&&(-1!==l.indexOf("height")?E.height=r:-1!==l.indexOf("minHeight")&&(E.minHeight=r),-1!==l.indexOf("width")?E.width=o:-1!==l.indexOf("minWidth")&&(E.minWidth=o));var S=He(He(He(He({},E),e.getZIndexStyle()),s),{},{opacity:"stable"!==n&&p?0:void 0}),_=e.getMotion(),C=p;p&&"beforeMotion"!==n&&"motion"!==n&&"stable"!==n&&(_.motionAppear=!1,_.motionEnter=!1,_.motionLeave=!1),"afterAlign"!==n&&"beforeMotion"!==n||(C=!1);var P=!p||"align"!==n&&"aligned"!==n&&"stable"!==n,k=!0;return"stable"===n&&(k=p),h&&!k?null:f.a.createElement(Ve,Object.assign({visible:C},_,{removeOnLeave:!1,onEnterEnd:e.onMotionEnd,onLeaveEnd:e.onMotionEnd}),(function(t,n){var r=t.style,o=t.className;return f.a.createElement(De,{target:e.getAlignTarget(),key:"popup",ref:e.alignRef,monitorWindowResize:!0,disabled:P,align:d,onAlign:e.onAlign},f.a.createElement(Fe,{prefixCls:c,visible:k,hiddenClassName:j,className:O()(x,o),ref:Object(m.a)(n,e.popupRef),onMouseEnter:v,onMouseLeave:y,onMouseDown:b,onTouchStart:g,style:He(He({},S),r)},w))}))},e.renderMaskElement=function(){var t=e.props,n=t.mask,r=t.maskMotion,o=t.maskTransitionName,i=t.maskAnimation,a=t.prefixCls,c=t.visible;if(!n)return null;var u={};return r&&r.motionName&&(u=He({motionAppear:!0},ze({motion:r,prefixCls:a,transitionName:o,animation:i}))),f.a.createElement(Ve,Object.assign({},u,{visible:c,removeOnLeave:!0}),(function(t){var n=t.className;return f.a.createElement("div",{style:e.getZIndexStyle(),key:"mask",className:O()("".concat(a,"-mask"),n)})}))},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this.state.status,t=this.props,n=t.getRootDomNode,r=t.visible,o=t.stretch;if(this.cancelFrameState(),r&&"stable"!==e)switch(e){case null:this.setStateOnNextFrame({status:o?"measure":"align"});break;case"afterAlign":this.setStateOnNextFrame({status:Ue(this.getMotion())?"beforeMotion":"stable"});break;case"AfterMotion":this.setStateOnNextFrame({status:"stable"});break;default:var i=["measure","align",null,"beforeMotion","motion"],a=i.indexOf(e),c=i[a+1];-1!==a&&c&&this.setStateOnNextFrame({status:c})}if("measure"===e){var u=n();u&&this.setStateOnNextFrame({targetHeight:u.offsetHeight,targetWidth:u.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){return{zIndex:this.props.zIndex}}},{key:"render",value:function(){return f.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.visible,r=Object(S.a)(e,["visible"]),o=t.prevVisible,i=t.status,a={prevVisible:n,status:i},c=ze(r);return null===o&&!1===n?a.status="stable":n!==o&&(n||Ue(c)&&["motion","AfterMotion","stable"].includes(i)?a.status=null:a.status="stable",n&&(a.alignClassName=null)),a}}]),n}(l.Component),qe=f.a.createContext(null);function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}function Ye(){}function Xe(){return""}function Ze(){return window.document}var Je=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var Qe,et;t.a=(Qe=b.a,(et=function(e){Object(c.a)(n,e);var t=$e(n);function n(e){var r,i;return Object(o.a)(this,n),(r=t.call(this,e)).popupRef=f.a.createRef(),r.triggerRef=f.a.createRef(),r.onMouseEnter=function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)},r.onMouseMove=function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)},r.onMouseLeave=function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onPopupMouseEnter=function(){r.clearDelayTimer()},r.onPopupMouseLeave=function(e){e.relatedTarget&&!e.relatedTarget.setTimeout&&r.popupRef.current&&r.popupRef.current.popupRef.current&&Object(h.a)(r.popupRef.current.popupRef.current,e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onFocus=function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))},r.onMouseDown=function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()},r.onTouchStart=function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()},r.onBlur=function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)},r.onContextMenu=function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)},r.onContextMenuClose=function(){r.isContextMenuToShow()&&r.close()},r.onClick=function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)},r.onPopupMouseDown=function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)},r.onDocumentClick=function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();Object(h.a)(n,t)||Object(h.a)(o,t)||r.hasPopupMouseDown||r.close()}},r.getRootDomNode=function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=Object(v.a)(r.triggerRef.current);if(t)return t}catch(e){}return d.a.findDOMNode(Object(a.a)(r))},r.getPopupClassNameFromAlign=function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,c=n.alignPoint,u=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var c=i[a];if(j(e[c].points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(i,a,e,c)),u&&t.push(u(e)),t.join(" ")},r.getComponent=function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,o=e.popupClassName,i=e.onPopupAlign,a=e.popupMotion,c=e.popupAnimation,u=e.popupTransitionName,s=e.popupStyle,l=e.mask,p=e.maskAnimation,d=e.maskTransitionName,h=e.maskMotion,v=e.zIndex,m=e.popup,y=e.stretch,b=e.alignPoint,g=r.state,O=g.popupVisible,w=g.point,x=r.getPopupAlign(),j={};return r.isMouseEnterToShow()&&(j.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(j.onMouseLeave=r.onPopupMouseLeave),j.onMouseDown=r.onPopupMouseDown,j.onTouchStart=r.onPopupMouseDown,f.a.createElement(We,Object.assign({prefixCls:t,destroyPopupOnHide:n,visible:O,point:b&&w,className:o,align:x,onAlign:i,animation:c,getClassNameFromAlign:r.getPopupClassNameFromAlign},j,{stretch:y,getRootDomNode:r.getRootDomNode,style:s,mask:l,zIndex:v,transitionName:u,maskAnimation:p,maskTransitionName:d,maskMotion:h,ref:r.popupRef,motion:a}),"function"==typeof m?m():m)},r.getContainer=function(){var e=Object(a.a)(r).props,t=document.createElement("div");return t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",(e.getPopupContainer?e.getPopupContainer(r.getRootDomNode()):e.getDocument().body).appendChild(t),t},r.setPoint=function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})},r.handlePortalUpdate=function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)},i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:i,popupVisible:i},Je.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(),this.clickOutsideHandler=Object(y.a)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(),this.touchOutsideHandler=Object(y.a)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(),this.contextMenuOutsideHandler1=Object(y.a)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(y.a)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){return x(x({},e[t]||{}),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,a=t.className,c=t.autoDestroy,u=f.a.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var l=O()(u&&u.props&&u.props.className,a);l&&(s.className=l);var p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s);Object(m.b)(u)&&(p.ref=Object(m.a)(this.triggerRef,u.ref));var d,h=f.a.cloneElement(u,p);return(e||this.popupRef.current||o)&&(d=f.a.createElement(Qe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(d=null),f.a.createElement(qe.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},h,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(f.a.Component)).contextType=qe,et.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Xe,getDocument:Ze,onPopupVisibleChange:Ye,afterPopupVisibleChange:Ye,onPopupAlign:Ye,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},et)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){var n=t||{},i=n.defaultValue,a=n.value,c=n.onChange,u=n.postState,s=o(r.useState((function(){return void 0!==a?a:void 0!==i?"function"==typeof i?i():i:"function"==typeof e?e():e})),2),l=s[0],f=s[1],p=void 0!==a?a:l;u&&(p=u(p));var d=r.useRef(!0);return r.useEffect((function(){d.current?d.current=!1:void 0===a&&f(a)}),[a]),[p,function(e){f(e),p!==e&&c&&c(e,p)}]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return v}));var r=!("undefined"==typeof window||!window.document||!window.document.createElement);function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var i,a,c,u=(i=r,a="undefined"!=typeof window?window:{},c={animationend:o("Animation","AnimationEnd"),transitionend:o("Transition","TransitionEnd")},i&&("AnimationEvent"in a||delete c.animationend.animation,"TransitionEvent"in a||delete c.transitionend.transition),c),s={};r&&(s=document.createElement("div").style);var l={};function f(e){if(l[e])return l[e];var t=u[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in s)return l[e]=t[i],l[e]}return""}var p=f("animationend"),d=f("transitionend"),h=!(!p||!d);function v(e,t){return e?"object"==typeof e?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:e+"-"+t:null}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict"; +/** @license React v0.19.1 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r,o,i,a,c;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,s=null,l=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(l,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(l,0))},o=function(e,t){s=setTimeout(e,t)},i=function(){clearTimeout(s)},a=function(){return!1},c=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,h=window.setTimeout,v=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var y=d.now();t.unstable_now=function(){return d.now()-y}}var b=!1,g=null,O=-1,w=5,x=0;a=function(){return t.unstable_now()>=x},c=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var j=new MessageChannel,E=j.port2;j.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();x=e+w;try{g(!0,e)?E.postMessage(null):(b=!1,g=null)}catch(e){throw E.postMessage(null),e}}else b=!1},r=function(e){g=e,b||(b=!0,E.postMessage(null))},o=function(e,n){O=h((function(){e(t.unstable_now())}),n)},i=function(){v(O),O=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<P(o,t)))break e;e[r]=t,e[n]=o,n=r}}function _(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],c=i+1,u=e[c];if(void 0!==a&&0>P(a,n))void 0!==u&&0>P(u,a)?(e[r]=u,e[c]=n,r=c):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>P(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],M=[],N=1,T=null,A=3,R=!1,D=!1,I=!1;function L(e){for(var t=_(M);null!==t;){if(null===t.callback)C(M);else{if(!(t.startTime<=e))break;C(M),t.sortIndex=t.expirationTime,S(k,t)}t=_(M)}}function F(e){if(I=!1,L(e),!D)if(null!==_(k))D=!0,r(z);else{var t=_(M);null!==t&&o(F,t.startTime-e)}}function z(e,n){D=!1,I&&(I=!1,i()),R=!0;var r=A;try{for(L(n),T=_(k);null!==T&&(!(T.expirationTime>n)||e&&!a());){var c=T.callback;if(null!==c){T.callback=null,A=T.priorityLevel;var u=c(T.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?T.callback=u:T===_(k)&&C(k),L(n)}else C(k);T=_(k)}if(null!==T)var s=!0;else{var l=_(M);null!==l&&o(F,l.startTime-n),s=!1}return s}finally{T=null,A=r,R=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=c;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||R||(D=!0,r(z))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return _(k)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,a){var c=t.unstable_now();if("object"==typeof a&&null!==a){var u=a.delay;u="number"==typeof u&&0<u?c+u:c,a="number"==typeof a.timeout?a.timeout:B(e)}else a=B(e),u=c;return e={id:N++,callback:n,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>c?(e.sortIndex=u,S(M,e),null===_(k)&&e===_(M)&&(I?i():I=!0,o(F,u-c))):(e.sortIndex=a,S(k,e),D||R||(D=!0,r(z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=_(k);return n!==T&&null!==T&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<T.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},function(e,t,n){"use strict";var r=n(451);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(453),o=n(475),i=n(149),a=n(56),c=n(479);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):c(e)}},function(e,t,n){var r=n(454),o=n(474),i=n(244);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(229),o=n(217);e.exports=function(e,t,n,i){var a=n.length,c=a,u=!i;if(null==e)return!c;for(e=Object(e);a--;){var s=n[a];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<c;){var l=(s=n[a])[0],f=e[l],p=s[1];if(u&&s[2]){if(void 0===f&&!(l in e))return!1}else{var d=new r;if(i)var h=i(f,p,l,e,t,d);if(!(void 0===h?o(p,f,3,i,d):h))return!1}}return!0}},function(e,t,n){var r=n(143);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(143),o=n(170),i=n(169);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(229),o=n(242),i=n(466),a=n(469),c=n(280),u=n(56),s=n(205),l=n(214),f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,h,v){var m=u(e),y=u(t),b=m?"[object Array]":c(e),g=y?"[object Array]":c(t),O=(b="[object Arguments]"==b?f:b)==f,w=(g="[object Arguments]"==g?f:g)==f,x=b==g;if(x&&s(e)){if(!s(t))return!1;m=!0,O=!1}if(x&&!O)return v||(v=new r),m||l(e)?o(e,t,n,d,h,v):i(e,t,b,n,d,h,v);if(!(1&n)){var j=O&&p.call(e,"__wrapped__"),E=w&&p.call(t,"__wrapped__");if(j||E){var S=j?e.value():e,_=E?t.value():t;return v||(v=new r),h(S,_,n,d,v)}}return!!x&&(v||(v=new r),a(e,t,n,d,h,v))}},function(e,t,n){var r=n(169),o=n(462),i=n(463);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(123),o=n(365),i=n(163),a=n(242),c=n(467),u=n(468),s=r?r.prototype:void 0,l=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=c;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)return!1;var v=p.get(e);if(v)return v==t;r|=2,p.set(e,t);var m=a(d(e),d(t),r,s,f,p);return p.delete(e),m;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(366),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,c){var u=1&n,s=r(e),l=s.length;if(l!=r(t).length&&!u)return!1;for(var f=l;f--;){var p=s[f];if(!(u?p in t:o.call(t,p)))return!1}var d=c.get(e),h=c.get(t);if(d&&h)return d==t&&h==e;var v=!0;c.set(e,t),c.set(t,e);for(var m=u;++f<l;){var y=e[p=s[f]],b=t[p];if(i)var g=u?i(b,y,p,t,e,c):i(y,b,p,e,t,c);if(!(void 0===g?y===b||a(y,b,n,i,c):g)){v=!1;break}m||(m="constructor"==p)}if(v&&!m){var O=e.constructor,w=t.constructor;O==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof O&&O instanceof O&&"function"==typeof w&&w instanceof w||(v=!1)}return c.delete(e),c.delete(t),v}},function(e,t,n){var r=n(93)(n(66),"DataView");e.exports=r},function(e,t,n){var r=n(93)(n(66),"Promise");e.exports=r},function(e,t,n){var r=n(93)(n(66),"Set");e.exports=r},function(e,t,n){var r=n(93)(n(66),"WeakMap");e.exports=r},function(e,t,n){var r=n(243),o=n(157);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(217),o=n(22),i=n(476),a=n(168),c=n(243),u=n(244),s=n(116);e.exports=function(e,t){return a(e)&&c(t)?u(s(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},function(e,t,n){var r=n(477),o=n(478);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(150),o=n(203),i=n(56),a=n(160),c=n(161),u=n(116);e.exports=function(e,t,n){for(var s=-1,l=(t=r(t,e)).length,f=!1;++s<l;){var p=u(t[s]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++s!=l?f:!!(l=null==e?0:e.length)&&c(l)&&a(p,l)&&(i(e)||o(e))}},function(e,t,n){var r=n(264),o=n(480),i=n(168),a=n(116);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t,n){var r=n(207);e.exports=function(e){return function(t){return r(t,e)}}},,function(e,t,n){"use strict";var r=n(50),o=n(245),i=n(483),a=n(250);function c(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var u=c(n(247));u.Axios=i,u.create=function(e){return c(a(u.defaults,e))},u.Cancel=n(251),u.CancelToken=n(495),u.isCancel=n(246),u.all=function(e){return Promise.all(e)},u.spread=n(496),u.isAxiosError=n(497),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(50),o=n(230),i=n(484),a=n(485),c=n(250);function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=c(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(c(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(c(r||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(50);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(50),o=n(486),i=n(246),a=n(247);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(50);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(50);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(249);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(50);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var c=[];c.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(50),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(50);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(251);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},function(e,t,n){var r;e.exports=(r=n(49),function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,c=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(c[o]=n(e.pow(r,.5))),u[o]=n(e.pow(r,1/3)),o++),r++}();var s=[],l=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],c=n[4],l=n[5],f=n[6],p=n[7],d=0;d<64;d++){if(d<16)s[d]=0|e[t+d];else{var h=s[d-15],v=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,m=s[d-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;s[d]=v+s[d-7]+y+s[d-16]}var b=r&o^r&i^o&i,g=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),O=p+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&l^~c&f)+u[d]+s[d];p=f,f=l,l=c,c=a+O|0,a=i,i=o,o=r,r=O+(g+b)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),r.SHA256)},function(e,t,n){var r,o,i,a;e.exports=(r=n(49),i=(o=r).lib.Base,a=o.enc.Utf8,void(o.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),c=o.words,u=i.words,s=0;s<n;s++)c[s]^=1549556828,u[s]^=909522486;o.sigBytes=i.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},function(e,t,n){var r,o,i,a,c,u;e.exports=(u=n(49),o=(r=u).lib,i=o.Base,a=o.WordArray,(c=r.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),c.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return a.create(n,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}}),u)},function(e,t,n){"use strict";var r=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)).createContext(null);t.default=o},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return ve}));var r,o,i,a,c=n(26),u=n.n(c),s=n(657),l=n.n(s),f=n(658),p=n.n(f),d=n(0),h=n.n(d),v=n(293),m=n.n(v),y="bodyAttributes",b="htmlAttributes",g="titleAttributes",O={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},w=(Object.keys(O).map((function(e){return O[e]})),"charset"),x="cssText",j="href",E="http-equiv",S="innerHTML",_="itemprop",C="name",P="property",k="rel",M="src",N="target",T={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},A="defaultTitle",R="defer",D="encodeSpecialCharacters",I="onChangeClientState",L="titleTemplate",F=Object.keys(T).reduce((function(e,t){return e[T[t]]=t,e}),{}),z=[O.NOSCRIPT,O.SCRIPT,O.STYLE],B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},K=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},W=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},q=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},G=function(e){var t=J(e,O.TITLE),n=J(e,L);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=J(e,A);return t||r||void 0},$=function(e){return J(e,I)||function(){}},Y=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return V({},e,t)}),{})},X=function(e,t){return t.filter((function(e){return void 0!==e[O.BASE]})).map((function(e){return e[O.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},Z=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&re("Helmet: "+e+' should be of type "Array". Instead found type "'+B(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var c=i[a],u=c.toLowerCase();-1===t.indexOf(u)||n===k&&"canonical"===e[n].toLowerCase()||u===k&&"stylesheet"===e[u].toLowerCase()||(n=u),-1===t.indexOf(c)||c!==S&&c!==x&&c!==_||(n=c)}if(!n||!e[n])return!1;var s=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][s]&&(o[n][s]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var c=i[a],u=m()({},r[c],o[c]);r[c]=u}return e}),[]).reverse()},J=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},Q=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){Q(e)}),0)}),ee=function(e){return clearTimeout(e)},te="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Q:global.requestAnimationFrame||Q,ne="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||ee:global.cancelAnimationFrame||ee,re=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},oe=null,ie=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,u=e.onChangeClientState,s=e.scriptTags,l=e.styleTags,f=e.title,p=e.titleAttributes;ue(O.BODY,r),ue(O.HTML,o),ce(f,p);var d={baseTag:se(O.BASE,n),linkTags:se(O.LINK,i),metaTags:se(O.META,a),noscriptTags:se(O.NOSCRIPT,c),scriptTags:se(O.SCRIPT,s),styleTags:se(O.STYLE,l)},h={},v={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(v[e]=d[e].oldTags)})),t&&t(),u(e,h,v)},ae=function(e){return Array.isArray(e)?e.join(""):e},ce=function(e,t){void 0!==e&&document.title!==e&&(document.title=ae(e)),ue(O.TITLE,t)},ue=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-react-helmet"),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),c=0;c<a.length;c++){var u=a[c],s=t[u]||"";n.getAttribute(u)!==s&&n.setAttribute(u,s),-1===o.indexOf(u)&&o.push(u);var l=i.indexOf(u);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f--)n.removeAttribute(i[f]);o.length===i.length?n.removeAttribute("data-react-helmet"):n.getAttribute("data-react-helmet")!==a.join(",")&&n.setAttribute("data-react-helmet",a.join(","))}},se=function(e,t){var n=document.head||document.querySelector(O.HEAD),r=n.querySelectorAll(e+"[data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===S)n.innerHTML=t.innerHTML;else if(r===x)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var c=void 0===t[r]?"":t[r];n.setAttribute(r,c)}n.setAttribute("data-react-helmet","true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},le=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[T[n]||n]=e[n],t}),t)},pe=function(e,t,n){switch(e){case O.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})["data-react-helmet"]=!0,o=fe(n,r),[h.a.createElement(O.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=le(n),i=ae(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+q(i,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+q(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case y:case b:return{toComponent:function(){return fe(t)},toString:function(){return le(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})["data-react-helmet"]=!0,r);return Object.keys(t).forEach((function(e){var n=T[e]||e;if(n===S||n===x){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),h.a.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===S||e===x)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+q(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===z.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},de=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,u=e.scriptTags,s=e.styleTags,l=e.title,f=void 0===l?"":l,p=e.titleAttributes;return{base:pe(O.BASE,t,r),bodyAttributes:pe(y,n,r),htmlAttributes:pe(b,o,r),link:pe(O.LINK,i,r),meta:pe(O.META,a,r),noscript:pe(O.NOSCRIPT,c,r),script:pe(O.SCRIPT,u,r),style:pe(O.STYLE,s,r),title:pe(O.TITLE,{title:f,titleAttributes:p},r)}},he=l()((function(e){return{baseTag:X([j,N],e),bodyAttributes:Y(y,e),defer:J(e,R),encode:J(e,D),htmlAttributes:Y(b,e),linkTags:Z(O.LINK,[k,j],e),metaTags:Z(O.META,[C,w,E,P,_],e),noscriptTags:Z(O.NOSCRIPT,[S],e),onChangeClientState:$(e),scriptTags:Z(O.SCRIPT,[M,S],e),styleTags:Z(O.STYLE,[x],e),title:G(e),titleAttributes:Y(g,e)}}),(function(e){oe&&ne(oe),e.defer?oe=te((function(){ie(e,(function(){oe=null}))})):(ie(e),oe=null)}),de)((function(){return null})),ve=(o=he,a=i=function(e){function t(){return H(this,t),W(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!p()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case O.SCRIPT:case O.NOSCRIPT:return{innerHTML:t};case O.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return V({},r,((t={})[n.type]=[].concat(r[n.type]||[],[V({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case O.TITLE:return V({},o,((t={})[r.type]=a,t.titleAttributes=V({},i),t));case O.BODY:return V({},o,{bodyAttributes:V({},i)});case O.HTML:return V({},o,{htmlAttributes:V({},i)})}return V({},o,((n={})[r.type]=V({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=V({},t);return Object.keys(e).forEach((function(t){var r;n=V({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return h.a.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[F[n]||n]=e[n],t}),t)}(U(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case O.LINK:case O.META:case O.NOSCRIPT:case O.SCRIPT:case O.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=U(e,["children"]),r=V({},n);return t&&(r=this.mapChildrenToProps(t,r)),h.a.createElement(o,r)},K(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(h.a.Component),i.propTypes={base:u.a.object,bodyAttributes:u.a.object,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]),defaultTitle:u.a.string,defer:u.a.bool,encodeSpecialCharacters:u.a.bool,htmlAttributes:u.a.object,link:u.a.arrayOf(u.a.object),meta:u.a.arrayOf(u.a.object),noscript:u.a.arrayOf(u.a.object),onChangeClientState:u.a.func,script:u.a.arrayOf(u.a.object),style:u.a.arrayOf(u.a.object),title:u.a.string,titleAttributes:u.a.object,titleTemplate:u.a.string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var e=o.rewind();return e||(e=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);ve.renderStatic=ve.rewind},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return s}));var r=n(6),o=n(76);n(62);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c="RC_TABLE_INTERNAL_COL_DEFINE";function u(e){var t=e.expandable,n=Object(o.a)(e,["expandable"]);return"expandable"in e?a(a({},n),t):n}function s(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(100),o=n(65);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return Object(o.a)(n)?(e.pop(),function(t){return Object(r.a)(e,t,n)}):function(t){return Object(r.a)(e,t)}}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return c}));n(32),n(75),n(76),n(0),n(62),n(1031);function r(e,t){var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function o(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function i(e,t){return"".concat(e,"-").concat(t)}function a(e){return e&&e.type&&e.type.isTreeNode}function c(e){var t={};return Object.keys(e).forEach((function(n){(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n])})),t}},,function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(196),c=n(296),u=function(){var e=(0,r.useContext(a.b).getPrefixCls)("empty-img-default");return r.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),r.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),r.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),r.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),r.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),r.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},s=function(){var e=(0,r.useContext(a.b).getPrefixCls)("empty-img-simple");return r.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))};function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d=r.createElement(u,null),h=r.createElement(s,null),v=function(e){return r.createElement(a.a,null,(function(t){var n=t.getPrefixCls,o=t.direction,a=e.className,u=e.prefixCls,s=e.image,v=void 0===s?d:s,m=e.description,y=e.children,b=e.imageStyle,g=p(e,["className","prefixCls","image","description","children","imageStyle"]);return r.createElement(c.a,{componentName:"Empty"},(function(e){var t,c=n("empty",u),s=void 0!==m?m:e.description,p="string"==typeof s?s:"empty",d=null;return d="string"==typeof v?r.createElement("img",{alt:p,src:v}):v,r.createElement("div",l({className:i()(c,(t={},f(t,"".concat(c,"-normal"),v===h),f(t,"".concat(c,"-rtl"),"rtl"===o),t),a)},g),r.createElement("div",{className:"".concat(c,"-image"),style:b},d),s&&r.createElement("p",{className:"".concat(c,"-description")},s),y&&r.createElement("div",{className:"".concat(c,"-footer")},y))}))}))};v.PRESENTED_IMAGE_DEFAULT=d,v.PRESENTED_IMAGE_SIMPLE=h;t.a=v},function(e,t,n){"use strict";n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"b",(function(){return O})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return x})),n.d(t,"a",(function(){return j}));var r=n(32),o=n(219),i=n(218),a=n(144),c=n(220);var u=n(75),s=n(6),l=n(62),f=n(275);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function v(e){var t=[];return function e(n,r){n.forEach((function(n){r||!("options"in n)?t.push({key:h(n,t.length),groupOption:r,data:n}):(t.push({key:h(n,t.length),group:!0,data:n}),e(n.options,!0))}))}(e,!1),t}function m(e){var t=d({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(l.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function y(e,t){var n=new Map;return t.forEach((function(e){if(!e.group){var t=e.data;n.set(t.value,t)}})),e.map((function(e){return m(n.get(e))}))}var b=function(e,t){var n,r=t.options,o=t.prevValue,i=t.labelInValue,a=t.optionLabelProp,c=y([e],r)[0],s={value:e},p=Object(f.d)(o);return i&&(n=p.find((function(t){return"object"===Object(u.a)(t)&&"value"in t?t.value===e:t.key===e}))),n&&"object"===Object(u.a)(n)&&"label"in n?(s.label=n.label,c&&"string"==typeof n.label&&"string"==typeof c[a]&&n.label.trim()!==c[a].trim()&&Object(l.a)(!1,"`label` of `value` is not same as `label` in Select options.")):s.label=c&&a in c?c[a]:e,s.key=s.value,s};function g(e){return Object(f.d)(e).join("")}function O(e,t,n){var r,o=n.optionFilterProp,i=n.filterOption,a=[];return!1===i?t:(r="function"==typeof i?i:function(e){return function(t,n){var r=t.toLowerCase();return"options"in n?g(n.label).toLowerCase().includes(r):g(n[e]).toLowerCase().includes(r)&&!n.disabled}}(o),t.forEach((function(t){if("options"in t)if(r(e,t))a.push(t);else{var n=t.options.filter((function(t){return r(e,t)}));n.length&&a.push(d(d({},t),{},{options:n}))}else r(e,m(t))&&a.push(t)})),a)}function w(e,t){if(!t||!t.length)return null;var n=!1;var u=function e(t,u){var s,l=(s=u,Object(o.a)(s)||Object(i.a)(s)||Object(a.a)(s)||Object(c.a)()),f=l[0],p=l.slice(1);if(!f)return[t];var d=t.split(f);return n=n||d.length>1,d.reduce((function(t,n){return[].concat(Object(r.a)(t),Object(r.a)(e(n,p)))}),[]).filter((function(e){return e}))}(e,t);return n?u:null}function x(e,t){return y([e],t)[0].disabled}function j(e,t,n,o){var i=Object(f.d)(t).slice().sort(),a=Object(r.a)(e),c=new Set;return e.forEach((function(e){e.options?e.options.forEach((function(e){c.add(e.value)})):c.add(e.value)})),i.forEach((function(e){var t,r=o?e.value:e;c.has(r)||a.push(o?(t={},Object(s.a)(t,n,e.label),Object(s.a)(t,"value",r),t):{value:r})})),a}},function(e,t,n){var r=n(572),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,c=o(i.length-t,0),u=Array(c);++a<c;)u[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=n(u),r(e,this,s)}}},function(e,t,n){var r=n(573),o=n(575)(r);e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warning=o,t.note=i,t.resetWarned=function(){r={}},t.call=a,t.warningOnce=c,t.noteOnce=function(e,t){a(i,e,t)},t.default=void 0;var r={};function o(e,t){0}function i(e,t){0}function a(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function c(e,t){a(o,e,t)}var u=c;t.default=u},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resetWarned",{enumerable:!0,get:function(){return o.resetWarned}}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(549));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}t.default=function(e,t,n){(0,o.default)(e,"[antd: ".concat(t,"] ").concat(n))}},,function(e,t,n){var r=n(217);e.exports=function(e,t){return r(e,t)}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(21),o=n.n(r);function i(e){return e instanceof HTMLElement?e:o.a.findDOMNode(e)}},function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,s=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&u()}function c(){a(i)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(c,t);o=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},p=b(0,0,0,0);function d(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=d(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=d(r.width),u=d(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=h(r,"left","right")+i),Math.round(u+a)!==n&&(u-=h(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var s=Math.round(c+i)-t,l=Math.round(u+a)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(l)&&(u-=l)}return b(o.left,o.top,c,u)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return o?m(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):v(e):p}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),O=function(e,t){var n,r,o,i,a,c,u,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(c.prototype),l(u,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),u);l(this,{target:e,contentRect:s})},w=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new O(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new r,j=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new w(t,n,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){j.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}}));var E=void 0!==i.ResizeObserver?i.ResizeObserver:j;t.a=E},function(e,t,n){"use strict";var r=n(6),o=n(76),i=n(75),a=n(0),c=n(5),u=n.n(c),s=n(181),l=n(255);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=a.forwardRef((function(e,t){var n,c,f,d,h=e.prefixCls,v=e.className,m=e.record,y=e.index,b=e.dataIndex,g=e.render,O=e.children,w=e.component,x=void 0===w?"td":w,j=e.colSpan,E=e.rowSpan,S=e.fixLeft,_=e.fixRight,C=e.firstFixLeft,P=e.lastFixLeft,k=e.firstFixRight,M=e.lastFixRight,N=e.appendNode,T=e.additionalProps,A=void 0===T?{}:T,R=e.ellipsis,D=e.align,I=e.rowType,L="".concat(h,"-cell");if(O)f=O;else{var F=Object(l.b)(m,b);if(f=F,g){var z=g(F,m,y);!(d=z)||"object"!==Object(i.a)(d)||Array.isArray(d)||a.isValidElement(d)?f=z:(f=z.children,c=z.props)}}"object"!==Object(i.a)(f)||Array.isArray(f)||a.isValidElement(f)||(f=null),R&&(P||k)&&(f=a.createElement("span",{className:"".concat(L,"-content")},f));var B=c||{},H=B.colSpan,K=B.rowSpan,V=B.style,U=B.className,W=Object(o.a)(B,["colSpan","rowSpan","style","className"]),q=void 0!==H?H:j,G=void 0!==K?K:E;if(0===q||0===G)return null;var $={},Y="number"==typeof S,X="number"==typeof _;Y&&($.position="sticky",$.left=S),X&&($.position="sticky",$.right=_);var Z,J={};D&&(J.textAlign=D);var Q=!0===R?{showTitle:!0}:R;Q&&(Q.showTitle||"header"===I)&&("string"==typeof f||"number"==typeof f?Z=f.toString():a.isValidElement(f)&&"string"==typeof f.props.children&&(Z=f.props.children));var ee,te=p(p(p({title:Z},W),A),{},{colSpan:q&&1!==q?q:null,rowSpan:G&&1!==G?G:null,className:u()(L,v,(n={},Object(r.a)(n,"".concat(L,"-fix-left"),Y),Object(r.a)(n,"".concat(L,"-fix-left-first"),C),Object(r.a)(n,"".concat(L,"-fix-left-last"),P),Object(r.a)(n,"".concat(L,"-fix-right"),X),Object(r.a)(n,"".concat(L,"-fix-right-first"),k),Object(r.a)(n,"".concat(L,"-fix-right-last"),M),Object(r.a)(n,"".concat(L,"-ellipsis"),R),Object(r.a)(n,"".concat(L,"-with-append"),N),n),A.className,U),style:p(p(p(p({},A.style),J),$),V),ref:(ee=x,"string"==typeof ee||Object(s.b)(ee)?t:null)});return a.createElement(x,Object.assign({},te),N,f)}));d.displayName="Cell";var h=a.memo(d,(function(e,t){return!!t.shouldCellUpdate&&!t.shouldCellUpdate(t.record,e.record)}));t.a=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),o=n(37),i=n(36);function a(e){return function(t){return t.lift(new c(e))}}var c=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new u(e),r=Object(i.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n},e}(),u=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),o=n(37),i=n(36);function a(e){return function(t){return t.lift(new c(e))}}var c=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.durationSelector))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return r.__extends(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(i.a)(this,t))&&!n.closed&&this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(e,t,n,r,o){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),o=n(37),i=n(36),a={leading:!0,trailing:!1};function c(e,t){return void 0===t&&(t=a),function(n){return n.lift(new u(e,t.leading,t.trailing))}}var u=function(){function e(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.durationSelector,this.leading,this.trailing))},e}(),s=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i.destination=t,i.durationSelector=n,i._leading=r,i._trailing=o,i._hasValue=!1,i}return r.__extends(t,e),t.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},t.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},t.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=Object(i.a)(this,t))},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},t.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=null,t&&this.send()},t.prototype.notifyNext=function(e,t,n,r,o){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4),o=n(7);function i(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(e,t,n))}}var a=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.accumulator,this.seed,this.hasSeed))},e}(),c=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return r.__extends(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(361);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o({},r.a.Modal);function a(e){i=e?o(o({},i),e):o({},r.a.Modal)}function c(){return i}},function(e,t,n){"use strict";function r(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");return"function"!=typeof t.componentWillReceiveProps?e:o.a.Profiler?(t.UNSAFE_componentWillReceiveProps=t.componentWillReceiveProps,delete t.componentWillReceiveProps,e):e};function a(e){var t=[];return o.a.Children.forEach(e,(function(e){t.push(e)})),t}function c(e,t){var n=null;return e&&e.forEach((function(e){n||e&&e.key===t&&(n=e)})),n}function u(e,t,n){var r=null;return e&&e.forEach((function(e){if(e&&e.key===t&&e.props[n]){if(r)throw new Error("two child with same key for <rc-animate> children");r=e}})),r}var s=n(21),l=n.n(s),f=n(919),p={isAppearSupported:function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},isEnterSupported:function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},isLeaveSupported:function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},allowAppearCallback:function(e){return e.transitionAppear||e.animation.appear},allowEnterCallback:function(e){return e.transitionEnter||e.animation.enter},allowLeaveCallback:function(e){return e.transitionLeave||e.animation.leave}},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},y=function(e){function t(){return h(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),d(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){p.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){p.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){p.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,r=l.a.findDOMNode(this),o=this.props,i=o.transitionName,a="object"==typeof i;this.stop();var c=function(){n.stopper=null,t()};if((f.b||!o.animation[e])&&i&&o[m[e]]){var u=a?i[e]:i+"-"+e,s=u+"-active";a&&i[e+"Active"]&&(s=i[e+"Active"]),this.stopper=Object(f.a)(r,{name:u,active:s},c)}else this.stopper=o.animation[e](r,c)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(o.a.Component),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var O="rc_animate_"+Date.now();function w(e){var t=e.children;return o.a.isValidElement(t)&&!t.key?o.a.cloneElement(t,{key:O}):t}function x(){}var j=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return E.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:a(w(e))},n.childrenRefs={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),g(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter((function(e){return!!e.props[t]}))),n.forEach((function(t){t&&e.performAppear(t.key)}))}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.nextProps=e;var n=a(w(e)),r=this.props;r.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach((function(e){t.stop(e)}));var i,s,l,f,p=r.showProp,d=this.currentlyAnimatingKeys,h=r.exclusive?a(w(r)):this.state.children,v=[];p?(h.forEach((function(e){var t,r,i,a=e&&c(n,e.key),u=void 0;(u=a&&a.props[p]||!e.props[p]?a:o.a.cloneElement(a||e,(i=!0,(r=p)in(t={})?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t)))&&v.push(u)})),n.forEach((function(e){e&&c(h,e.key)||v.push(e)}))):(i=n,s=[],l={},f=[],h.forEach((function(e){e&&c(i,e.key)?f.length&&(l[e.key]=f,f=[]):f.push(e)})),i.forEach((function(e){e&&Object.prototype.hasOwnProperty.call(l,e.key)&&(s=s.concat(l[e.key])),s.push(e)})),v=s=s.concat(f)),this.setState({children:v}),n.forEach((function(e){var n=e&&e.key;if(!e||!d[n]){var r=e&&c(h,n);if(p){var o=e.props[p];if(r)!u(h,n,p)&&o&&t.keysToEnter.push(n);else o&&t.keysToEnter.push(n)}else r||t.keysToEnter.push(n)}})),h.forEach((function(e){var r=e&&e.key;if(!e||!d[r]){var o=e&&c(n,r);if(p){var i=e.props[p];if(o)!u(n,r,p)&&i&&t.keysToLeave.push(r);else i&&t.keysToLeave.push(r)}else o||t.keysToLeave.push(r)}}))}},{key:"componentDidUpdate",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(e,t){var n=this.props.showProp;return n?u(e,t,n):c(e,t)}},{key:"stop",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:"render",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,r=null;n&&(r=n.map((function(n){if(null==n)return n;if(!n.key)throw new Error("must set key for <rc-animate> children");return o.a.createElement(y,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)})));var i=t.component;if(i){var a=t;return"string"==typeof i&&(a=b({className:t.className,style:t.style},t.componentProps)),o.a.createElement(i,a,r)}return r[0]||null}}]),t}(o.a.Component);j.isAnimate=!0,j.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:x,onEnter:x,onLeave:x,onAppear:x};var E=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var o=a(w(r));e.isValidChildByKey(o,t)?"appear"===n?p.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):p.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r,o,i,c,u=a(w(n));if(e.isValidChildByKey(u,t))e.performEnter(t);else{var s=function(){p.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};r=e.state.children,o=u,i=n.showProp,(c=r.length===o.length)&&r.forEach((function(e,t){var n=o[t];e&&n&&(e&&!n||!e&&n||e.key!==n.key||i&&e.props[i]!==n.props[i])&&(c=!1)})),c?s():e.setState({children:u},s)}}}};t.a=i(j)},,,function(e,t,n){"use strict"; +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case u:case c:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case y:case m:case s:return e;default:return t}}case i:return t}}}function j(e){return x(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=y,t.Memo=m,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return j(e)||x(e)===f},t.isConcurrentMode=j,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===y},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===u},t.isStrictMode=function(e){return x(e)===c},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===u||e===c||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===O||e.$$typeof===w||e.$$typeof===b)},t.typeOf=x},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=n(149),o=n(516),i=n(517);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(574),o=n(228),i=n(149),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(263),o=n(216),i=n(264),a=n(227),c=n(577),u=Math.max;e.exports=function(e){if(!e||!e.length)return[];var t=0;return e=r(e,(function(e){if(c(e))return t=u(e.length,t),!0})),a(t,(function(t){return o(e,i(t))}))}},function(e,t,n){var r=n(162),o=n(64);e.exports=function(e){return o(e)&&r(e)}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(231);t.createActionCreator=r.createActionCreator;var o=n(582);t.createActionCreators=o.createActionCreators;var i=n(583);t.proxyActionCreators=i.proxyActionCreators},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(231),o=n(232);t.createActionCreators=function(e,t){return o.createDefaultActionCreators(r.createActionCreator,e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(231),o=n(349);t.proxyActionCreators=function(e,t){return o.proxyDefaultActionCreators(r.createActionCreator,e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(233);t.createActionCreator=r.createActionCreator;var o=n(585);t.createActionCreators=o.createActionCreators;var i=n(586);t.proxyActionCreators=i.proxyActionCreators},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(233),o=n(232);t.createActionCreators=function(e,t){return o.createDefaultActionCreators(r.createActionCreator,e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(233),o=n(349);t.proxyActionCreators=function(e,t){return o.proxyDefaultActionCreators(r.createActionCreator,e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(234);t.combineUniqueObjects=function(...e){return r.combineObjects(...e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(350);t.proxyCombineUniqueObjects=function(...e){return r.proxyCombineObjects(...e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(184);t.createReducer=function(e,t){return function(n=e,o){return r.hasOwnProperty.call(t,o.type)?t[o.type](n,o):n}}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(647)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r,o,i,a,c;r=n(828),o=n(649).utf8,i=n(829),a=n(649).bin,(c=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var n=r.bytesToWords(e),u=8*e.length,s=1732584193,l=-271733879,f=-1732584194,p=271733878,d=0;d<n.length;d++)n[d]=16711935&(n[d]<<8|n[d]>>>24)|4278255360&(n[d]<<24|n[d]>>>8);n[u>>>5]|=128<<u%32,n[14+(u+64>>>9<<4)]=u;var h=c._ff,v=c._gg,m=c._hh,y=c._ii;for(d=0;d<n.length;d+=16){var b=s,g=l,O=f,w=p;s=h(s,l,f,p,n[d+0],7,-680876936),p=h(p,s,l,f,n[d+1],12,-389564586),f=h(f,p,s,l,n[d+2],17,606105819),l=h(l,f,p,s,n[d+3],22,-1044525330),s=h(s,l,f,p,n[d+4],7,-176418897),p=h(p,s,l,f,n[d+5],12,1200080426),f=h(f,p,s,l,n[d+6],17,-1473231341),l=h(l,f,p,s,n[d+7],22,-45705983),s=h(s,l,f,p,n[d+8],7,1770035416),p=h(p,s,l,f,n[d+9],12,-1958414417),f=h(f,p,s,l,n[d+10],17,-42063),l=h(l,f,p,s,n[d+11],22,-1990404162),s=h(s,l,f,p,n[d+12],7,1804603682),p=h(p,s,l,f,n[d+13],12,-40341101),f=h(f,p,s,l,n[d+14],17,-1502002290),s=v(s,l=h(l,f,p,s,n[d+15],22,1236535329),f,p,n[d+1],5,-165796510),p=v(p,s,l,f,n[d+6],9,-1069501632),f=v(f,p,s,l,n[d+11],14,643717713),l=v(l,f,p,s,n[d+0],20,-373897302),s=v(s,l,f,p,n[d+5],5,-701558691),p=v(p,s,l,f,n[d+10],9,38016083),f=v(f,p,s,l,n[d+15],14,-660478335),l=v(l,f,p,s,n[d+4],20,-405537848),s=v(s,l,f,p,n[d+9],5,568446438),p=v(p,s,l,f,n[d+14],9,-1019803690),f=v(f,p,s,l,n[d+3],14,-187363961),l=v(l,f,p,s,n[d+8],20,1163531501),s=v(s,l,f,p,n[d+13],5,-1444681467),p=v(p,s,l,f,n[d+2],9,-51403784),f=v(f,p,s,l,n[d+7],14,1735328473),s=m(s,l=v(l,f,p,s,n[d+12],20,-1926607734),f,p,n[d+5],4,-378558),p=m(p,s,l,f,n[d+8],11,-2022574463),f=m(f,p,s,l,n[d+11],16,1839030562),l=m(l,f,p,s,n[d+14],23,-35309556),s=m(s,l,f,p,n[d+1],4,-1530992060),p=m(p,s,l,f,n[d+4],11,1272893353),f=m(f,p,s,l,n[d+7],16,-155497632),l=m(l,f,p,s,n[d+10],23,-1094730640),s=m(s,l,f,p,n[d+13],4,681279174),p=m(p,s,l,f,n[d+0],11,-358537222),f=m(f,p,s,l,n[d+3],16,-722521979),l=m(l,f,p,s,n[d+6],23,76029189),s=m(s,l,f,p,n[d+9],4,-640364487),p=m(p,s,l,f,n[d+12],11,-421815835),f=m(f,p,s,l,n[d+15],16,530742520),s=y(s,l=m(l,f,p,s,n[d+2],23,-995338651),f,p,n[d+0],6,-198630844),p=y(p,s,l,f,n[d+7],10,1126891415),f=y(f,p,s,l,n[d+14],15,-1416354905),l=y(l,f,p,s,n[d+5],21,-57434055),s=y(s,l,f,p,n[d+12],6,1700485571),p=y(p,s,l,f,n[d+3],10,-1894986606),f=y(f,p,s,l,n[d+10],15,-1051523),l=y(l,f,p,s,n[d+1],21,-2054922799),s=y(s,l,f,p,n[d+8],6,1873313359),p=y(p,s,l,f,n[d+15],10,-30611744),f=y(f,p,s,l,n[d+6],15,-1560198380),l=y(l,f,p,s,n[d+13],21,1309151649),s=y(s,l,f,p,n[d+4],6,-145523070),p=y(p,s,l,f,n[d+11],10,-1120210379),f=y(f,p,s,l,n[d+2],15,718787259),l=y(l,f,p,s,n[d+9],21,-343485551),s=s+b>>>0,l=l+g>>>0,f=f+O>>>0,p=p+w>>>0}return r.endian([s,l,f,p])})._ff=function(e,t,n,r,o,i,a){var c=e+(t&n|~t&r)+(o>>>0)+a;return(c<<i|c>>>32-i)+t},c._gg=function(e,t,n,r,o,i,a){var c=e+(t&r|n&~r)+(o>>>0)+a;return(c<<i|c>>>32-i)+t},c._hh=function(e,t,n,r,o,i,a){var c=e+(t^n^r)+(o>>>0)+a;return(c<<i|c>>>32-i)+t},c._ii=function(e,t,n,r,o,i,a){var c=e+(n^(t|~r))+(o>>>0)+a;return(c<<i|c>>>32-i)+t},c._blocksize=16,c._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(c(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],c=Object.keys(a),u=0;u<c.length;++u){var s=c[u],l=a[s];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:s}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<r.length;++a){var c=r.charCodeAt(a);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?o+=r.charAt(a):c<128?o+=i[c]:c<2048?o+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?o+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(a+=1,c=65536+((1023&c)<<10|1023&r.charCodeAt(a)),o+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var c=t;return o(t)&&!o(n)&&(c=a(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),c)}}},function(e,t,n){var r,o,i,a,c,u,s,l;e.exports=(l=n(49),o=(r=l).lib,i=o.WordArray,a=o.Hasher,c=r.algo,u=[],s=c.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],c=n[4],s=0;s<80;s++){if(s<16)u[s]=0|e[t+s];else{var l=u[s-3]^u[s-8]^u[s-14]^u[s-16];u[s]=l<<1|l>>>31}var f=(r<<5|r>>>27)+c+u[s];f+=s<20?1518500249+(o&i|~o&a):s<40?1859775393+(o^i^a):s<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,c=a,a=i,i=o<<30|o>>>2,o=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=a._createHelper(s),r.HmacSHA1=a._createHmacHelper(s),l.SHA1)},,function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1069))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1101))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1172))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){var r=n(887),o=n(261),i=/[&<>"']/g,a=RegExp(i.source);e.exports=function(e){return(e=o(e))&&a.test(e)?e.replace(i,r):e}},function(e,t,n){"use strict";n.r(t);var r=n(784),o=n(672);n.d(t,"Summary",(function(){return o.a}));var i=n(760);n.d(t,"Column",(function(){return i.a}));var a=n(759);n.d(t,"ColumnGroup",(function(){return a.a}));var c=n(507);n.d(t,"INTERNAL_COL_DEFINE",(function(){return c.a})),t.default=r.b},,function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o);t.a=function(e){var t,n=e.className,o=e.customizeIcon,a=e.customizeIconProps,c=e.onMouseDown,u=e.onClick,s=e.children;return t="function"==typeof o?o(a):o,r.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),c&&c(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},void 0!==t?t:r.createElement("span",{className:i()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1193))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r=n(0),o=n(622),i=n(5),a=n.n(i),c=n(196),u=n(632),s=n(778),l=n(91);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},h=function(e,t){var n,i=r.useContext(u.b),h=r.useContext(c.b),v=h.getPrefixCls,m=h.direction,y=r.useRef(),b=Object(s.a)(t,y);r.useEffect((function(){Object(l.a)(!("optionType"in e),"Radio","`optionType` is only support in Radio.Group.")}),[]);var g=e.prefixCls,O=e.className,w=e.children,x=e.style,j=d(e,["prefixCls","className","children","style"]),E=v("radio",g),S=p({},j);i&&(S.name=i.name,S.onChange=function(t){e.onChange&&e.onChange(t),(null==i?void 0:i.onChange)&&i.onChange(t)},S.checked=e.value===i.value,S.disabled=e.disabled||i.disabled);var _=a()(O,(f(n={},"".concat(E,"-wrapper"),!0),f(n,"".concat(E,"-wrapper-checked"),S.checked),f(n,"".concat(E,"-wrapper-disabled"),S.disabled),f(n,"".concat(E,"-wrapper-rtl"),"rtl"===m),n));return r.createElement("label",{className:_,style:x,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},r.createElement(o.default,p({},S,{prefixCls:E,ref:b})),void 0!==w?r.createElement("span",null,w):null)},v=r.forwardRef(h);v.displayName="Radio",v.defaultProps={type:"radio"},t.a=v},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return Z}));var r=n(0),o=n(360),i=n(5),a=n.n(i),c=n(89),u=Object(r.createContext)({inlineCollapsed:!1}),s=n(110);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(m,e);var t,n,i,l=v(m);function m(){var e;return p(this,m),(e=l.apply(this,arguments)).onKeyDown=function(t){e.subMenu.onKeyDown(t)},e.saveSubMenu=function(t){e.subMenu=t},e}return t=m,(n=[{key:"renderTitle",value:function(e){var t=this.props,n=t.icon,o=t.title,i=t.level,a=t.rootPrefixCls;if(!n)return e&&1===i&&o&&"string"==typeof o?r.createElement("div",{className:"".concat(a,"-inline-collapsed-noicon")},o.charAt(0)):o;var c=Object(s.b)(o)&&"span"===o.type;return r.createElement(r.Fragment,null,n,c?o:r.createElement("span",null,o))}},{key:"render",value:function(){var e=this,t=this.props,n=t.rootPrefixCls,i=t.popupClassName;return r.createElement(u.Consumer,null,(function(t){var u=t.inlineCollapsed,s=t.antdMenuTheme;return r.createElement(o.SubMenu,f({},Object(c.default)(e.props,["icon"]),{title:e.renderTitle(u),ref:e.saveSubMenu,popupClassName:a()(n,"".concat(n,"-").concat(s),i)}))}))}}])&&d(t.prototype,n),i&&d(t,i),m}(r.Component);b.contextType=u,b.isSubMenu=1;var g=b,O=n(210),w=n(297),x=n(635);function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==j(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(l,e);var t,n,i,c=k(l);function l(){var e;return _(this,l),(e=c.apply(this,arguments)).onKeyDown=function(t){e.menuItem.onKeyDown(t)},e.saveMenuItem=function(t){e.menuItem=t},e.renderItem=function(t){var n=t.siderCollapsed,i=e.props,c=i.level,s=i.className,l=i.children,f=i.rootPrefixCls,p=e.props,d=p.title,h=p.icon,v=p.danger,m=T(p,["title","icon","danger"]);return r.createElement(u.Consumer,null,(function(t){var i,u=t.inlineCollapsed,p=t.direction,y=d;void 0===d?y=1===c?l:"":!1===d&&(y="");var b={title:y};n||u||(b.title=null,b.visible=!1);var g=Object(O.a)(l).length;return r.createElement(w.a,E({},b,{placement:"rtl"===p?"left":"right",overlayClassName:"".concat(f,"-inline-collapsed-tooltip")}),r.createElement(o.Item,E({},m,{className:a()(s,(i={},S(i,"".concat(f,"-item-danger"),v),S(i,"".concat(f,"-item-only-child"),1===(h?g+1:g)),i)),title:d,ref:e.saveMenuItem}),h,e.renderItemChildren(u)))}))},e}return t=l,(n=[{key:"renderItemChildren",value:function(e){var t=this.props,n=t.icon,o=t.children,i=t.level,a=t.rootPrefixCls;return!n||Object(s.b)(o)&&"span"===o.type?o&&e&&1===i&&"string"==typeof o?r.createElement("div",{className:"".concat(a,"-inline-collapsed-noicon")},o.charAt(0)):o:r.createElement("span",null,o)}},{key:"render",value:function(){return r.createElement(x.a.Consumer,null,this.renderItem)}}])&&C(t.prototype,n),i&&C(t,i),l}(r.Component);A.isMenuItem=!0;var R=n(196),D=n(91),I=function(){return{height:0,opacity:0}},L=function(e){return{height:e.scrollHeight,opacity:1}};function F(e,t){return"height"===t.propertyName}var z={motionName:"ant-motion-collapse",onAppearStart:I,onEnterStart:I,onAppearActive:L,onEnterActive:L,onLeaveStart:function(e){return{height:e.offsetHeight}},onLeaveActive:I,onAppearEnd:F,onEnterEnd:F,onLeaveEnd:F,motionDeadline:500};function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(){return(H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t,n){return t&&V(e.prototype,t),n&&V(e,n),e}function W(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $(this,n)}}function $(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=function(e){W(n,e);var t=G(n);function n(e){var i;return K(this,n),(i=t.call(this,e)).renderMenu=function(e){var t,n,c,s=e.getPopupContainer,l=e.getPrefixCls,f=e.direction,p=i.props,d=p.prefixCls,h=p.className,v=p.theme,m={horizontal:{motionName:"slide-up"},inline:z,other:{motionName:"zoom-big"}},y=l("menu",d),b=a()(h,"".concat(y,"-").concat(v),(t={},n="".concat(y,"-inline-collapsed"),c=i.getInlineCollapsed(),n in t?Object.defineProperty(t,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):t[n]=c,t));return r.createElement(u.Provider,{value:{inlineCollapsed:i.getInlineCollapsed()||!1,antdMenuTheme:v,direction:f}},r.createElement(o.default,H({getPopupContainer:s},i.props,{className:b,prefixCls:y,direction:f,defaultMotions:m})))},Object(D.a)(!("inlineCollapsed"in e&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(D.a)(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),i}return U(n,[{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"render",value:function(){return r.createElement(R.a,null,this.renderMenu)}}]),n}(r.Component);X.defaultProps={className:"",theme:"light",focusable:!1};var Z=function(e){W(n,e);var t=G(n);function n(){return K(this,n),t.apply(this,arguments)}return U(n,[{key:"render",value:function(){var e=this;return r.createElement(x.a.Consumer,null,(function(t){return r.createElement(X,H({},e.props,t))}))}}]),n}(r.Component);Z.Divider=o.Divider,Z.Item=A,Z.SubMenu=g,Z.ItemGroup=o.ItemGroup},function(e,t,n){e.exports=n(1057)},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){var r=n(1060),o=n(1061),i=n(935),a=n(1062);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t,n){var r=n(616),o=n(738);e.exports=n(592)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(646),o=n(939),i=n(802),a=Object.defineProperty;t.f=n(592)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(942),o=n(803);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(806)("wks"),o=n(741),i=n(550).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(1262),o=n(1263),i=n(935),a=n(1264);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.replaceElement=c,t.cloneElement=function(e,t){return c(e,e,t)},t.isValidElement=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=o.isValidElement;function c(e,t,n){return a(e)?o.cloneElement(e,"function"==typeof n?n():n):t}t.isValidElement=a},function(e,t,n){"use strict";n.r(t);var r=n(1014),o=n.n(r),i=n(195),a=n.n(i),c=n(625),u=n.n(c),s=n(626),l=n.n(s),f=n(627),p=n.n(f),d=n(0),h=n.n(d),v=n(5),m=n.n(v),y=function(e){function t(n){u()(this,t);var r=l()(this,e.call(this,n));r.handleChange=function(e){var t=r.props,n=t.disabled,o=t.onChange;n||("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:a()({},r.props,{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var o="checked"in n?n.checked:n.defaultChecked;return r.state={checked:o},r}return p()(t,e),t.getDerivedStateFromProps=function(e,t){return"checked"in e?a()({},t,{checked:e.checked}):null},t.prototype.focus=function(){this.input.focus()},t.prototype.blur=function(){this.input.blur()},t.prototype.render=function(){var e,t=this.props,n=t.prefixCls,r=t.className,i=t.style,c=t.name,u=t.id,s=t.type,l=t.disabled,f=t.readOnly,p=t.tabIndex,d=t.onClick,v=t.onFocus,y=t.onBlur,b=t.autoFocus,g=t.value,O=t.required,w=o()(t,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","autoFocus","value","required"]),x=Object.keys(w).reduce((function(e,t){return"aria-"!==t.substr(0,5)&&"data-"!==t.substr(0,5)&&"role"!==t||(e[t]=w[t]),e}),{}),j=this.state.checked,E=m()(n,r,((e={})[n+"-checked"]=j,e[n+"-disabled"]=l,e));return h.a.createElement("span",{className:E,style:i},h.a.createElement("input",a()({name:c,id:u,type:s,required:O,readOnly:f,disabled:l,tabIndex:p,className:n+"-input",checked:!!j,onClick:d,onFocus:v,onBlur:y,onChange:this.handleChange,autoFocus:b,ref:this.saveInput,value:g},x)),h.a.createElement("span",{className:n+"-inner"}))},t}(d.Component);y.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){}},t.default=y},function(e,t,n){"use strict";n.r(t);var r=n(76),o=n(6),i=n(45),a=n(48),c=n(54),u=n(53),s=n(25),l=n(0),f=n.n(l),p=n(21),d=n.n(p),h=n(566),v=n(624),m=n(5),y=n.n(m),b=n(764),g=n(765);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var j=0,E=Date.now();function S(){var e=j;return j+=1,"rcNotification_".concat(E,"_").concat(e)}var _=function(e){Object(c.a)(n,e);var t=x(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){t.key=t.key||S();var r=t.key,o=e.props.maxCount;e.setState((function(e){var i=e.notices,a=i.map((function(e){return e.notice.key})).indexOf(r),c=i.concat();return-1!==a?c.splice(a,1,{notice:t,holderCallback:n}):(o&&i.length>=o&&(t.updateKey=c[0].notice.updateKey||c[0].notice.key,c.shift()),c.push({notice:t,holderCallback:n})),{notices:c}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){return e.notice.key!==t}))}}))},e}return Object(a.a)(n,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,r=n.prefixCls,o=n.className,i=n.closeIcon,a=n.style,c=t.map((function(n,o){var a=n.notice,c=n.holderCallback,u=Boolean(o===t.length-1&&a.updateKey),s=a.updateKey?a.updateKey:a.key,l=Object(v.a)(e.remove.bind(e,a.key),a.onClose),p=w(w(w({prefixCls:r,closeIcon:i},a),a.props),{},{key:s,update:u,onClose:l,onClick:a.onClick,children:a.content});return c?f.a.createElement("div",{key:s,className:"".concat(r,"-hook-holder"),ref:function(t){void 0!==s&&(t?(e.hookRefs.set(s,t),c(t,p)):e.hookRefs.delete(s))}}):f.a.createElement(b.a,Object.assign({},p))}));return f.a.createElement("div",{className:y()(r,o),style:a},f.a.createElement(h.a,{transitionName:this.getTransitionName()},c))}}]),n}(l.Component);_.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},_.newInstance=function(e,t){var n=e||{},o=n.getContainer,i=Object(r.a)(n,["getContainer"]),a=document.createElement("div");o?o().appendChild(a):document.body.appendChild(a);var c=!1;d.a.render(f.a.createElement(_,Object.assign({},i,{ref:function(e){c||(c=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){d.a.unmountComponentAtNode(a),a.parentNode&&a.parentNode.removeChild(a)},useNotification:function(){return Object(g.a)(e)}}))}})),a)};var C=_;t.default=C},function(e,t,n){"use strict";function r(){var e=[].slice.call(arguments,0);return 1===e.length?e[0]:function(){for(var t=0;t<e.length;t++)e[t]&&e[t].apply&&e[t].apply(this,arguments)}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(944),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(1125)),o=a(n(1129)),i=a(n(944));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";var r=n(0),o=n(363);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.a=function(){var e=i(Object(r.useState)({}),2),t=e[0],n=e[1];return Object(r.useEffect)((function(){var e=o.a.subscribe((function(e){n(e)}));return function(){return o.a.unsubscribe(e)}}),[]),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function o(e,t){return 0===e.indexOf(t)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return Object.keys(e).forEach((function(i){o(i,"aria-")?n[i]=e[i]:t||!r.includes(i)&&!o(i,"data-")||(n[i]=e[i])})),n}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1168))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1187))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=r.createContext(null),i=o.Provider;t.b=o},,function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var r=n(0),o=n(5),i=n.n(o),a=n(89),c=n(196);var u=function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),new Error("unreachable case: ".concat(JSON.stringify(t)))};function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},p=function(e){return r.createElement(c.a,null,(function(t){var n,o=t.getPrefixCls,a=t.direction,c=e.prefixCls,p=e.size,d=e.className,h=f(e,["prefixCls","size","className"]),v=o("btn-group",c),m="";switch(p){case"large":m="lg";break;case"small":m="sm";break;case"middle":case void 0:break;default:console.warn(new u(p))}var y=i()(v,(l(n={},"".concat(v,"-").concat(m),m),l(n,"".concat(v,"-rtl"),"rtl"===a),n),d);return r.createElement("div",s({},h,{className:y}))}))},d=n(790),h=n(177),v=n(91),m=n(155),y=n(295),b=n(180),g=n.n(b),O=function(){return{width:0,opacity:0,transform:"scale(0)"}},w=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}};function x(e){var t=e.prefixCls,n=!!e.loading;return e.existIcon?r.createElement("span",{className:"".concat(t,"-loading-icon")},r.createElement(g.a,null)):r.createElement(y.a,{visible:n,motionName:"".concat(t,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:O,onAppearActive:w,onEnterStart:O,onEnterActive:w,onLeaveStart:w,onLeaveActive:O},(function(e,n){var o=e.className,a=e.style;return r.createElement("span",{className:"".concat(t,"-loading-icon"),style:a,ref:n},r.createElement(g.a,{className:i()(o)}))}))}var j=n(110);function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e,t)||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 C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},M=/^[\u4e00-\u9fa5]{2}$/,N=M.test.bind(M);function T(e){return"text"===e||"link"===e}function A(e,t){var n=!1,o=[];return r.Children.forEach(e,(function(e){var t=P(e),r="string"===t||"number"===t;if(n&&r){var i=o.length-1,a=o[i];o[i]="".concat(a).concat(e)}else o.push(e);n=r})),r.Children.map(o,(function(e){return function(e,t){if(null!=e){var n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&N(e.props.children)?Object(j.a)(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?(N(e)&&(e=e.split("").join(n)),r.createElement("span",null,e)):e}}(e,t)}))}Object(h.a)("default","primary","ghost","dashed","link","text"),Object(h.a)("circle","circle-outline","round"),Object(h.a)("submit","button","reset");function R(e){return"danger"===e?{danger:!0}:{type:e}}var D=function(e,t){var n,o,u=e.loading,s=e.prefixCls,l=e.type,f=e.danger,p=e.shape,h=e.size,y=e.className,b=e.children,g=e.icon,O=e.ghost,w=e.block,j=k(e,["loading","prefixCls","type","danger","shape","size","className","children","icon","ghost","block"]),C=r.useContext(m.b),M=_(r.useState(!!u),2),R=M[0],D=M[1],I=_(r.useState(!1),2),L=I[0],F=I[1],z=r.useContext(c.b),B=z.getPrefixCls,H=z.autoInsertSpaceInButton,K=z.direction,V=t||r.createRef(),U=r.useRef(),W=function(){return 1===r.Children.count(b)&&!g&&!T(l)};o="object"===P(u)&&u.delay?u.delay||!0:!!u,r.useEffect((function(){clearTimeout(U.current),"number"==typeof o?U.current=window.setTimeout((function(){D(o)}),o):D(o)}),[o]),r.useEffect((function(){!function(){if(V&&V.current&&!1!==H){var e=V.current.textContent;W()&&N(e)?L||F(!0):L&&F(!1)}}()}),[V]);var q=function(t){var n=e.onClick;R||n&&n(t)};Object(v.a)(!("string"==typeof g&&g.length>2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(g,"` at https://ant.design/components/icon")),Object(v.a)(!(O&&T(l)),"Button","`link` or `text` button can't be a `ghost` button.");var G=B("btn",s),$=!1!==H,Y="";switch(h||C){case"large":Y="lg";break;case"small":Y="sm"}var X=R?"loading":g,Z=i()(G,y,(S(n={},"".concat(G,"-").concat(l),l),S(n,"".concat(G,"-").concat(p),p),S(n,"".concat(G,"-").concat(Y),Y),S(n,"".concat(G,"-icon-only"),!b&&0!==b&&X),S(n,"".concat(G,"-background-ghost"),O&&!T(l)),S(n,"".concat(G,"-loading"),R),S(n,"".concat(G,"-two-chinese-chars"),L&&$),S(n,"".concat(G,"-block"),w),S(n,"".concat(G,"-dangerous"),!!f),S(n,"".concat(G,"-rtl"),"rtl"===K),n)),J=g&&!R?g:r.createElement(x,{existIcon:!!g,prefixCls:G,loading:!!R}),Q=b||0===b?A(b,W()&&$):null,ee=Object(a.default)(j,["htmlType","loading"]);if(void 0!==ee.href)return r.createElement("a",E({},ee,{className:Z,onClick:q,ref:V}),J,Q);var te=j,ne=te.htmlType,re=k(te,["htmlType"]),oe=r.createElement("button",E({},Object(a.default)(re,["loading"]),{type:ne,className:Z,onClick:q,ref:V}),J,Q);return T(l)?oe:r.createElement(d.a,null,oe)},I=r.forwardRef(D);I.displayName="Button",I.defaultProps={loading:!1,ghost:!1,block:!1,htmlType:"button"},I.Group=p,I.__ANT_BUTTON=!0;t.b=I},function(e,t,n){"use strict";n.d(t,"a",(function(){return M})),n.d(t,"b",(function(){return A}));var r=n(0),o=n(5),i=n.n(o),a=n(89),c=n(908),u=n.n(c),s=n(403),l=n.n(s),f=n(599),p=n.n(f),d=n(673),h=n(196),v=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t&&O(e.prototype,t),n&&O(e,n),e}function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C,P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},k={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},M=r.createContext({}),N=(C=0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return C+=1,"".concat(e).concat(C)}),T=function(e){x(n,e);var t=E(n);function n(e){var o,c,s;return g(this,n),(o=t.call(this,e)).responsiveHandler=function(e){o.setState({below:e.matches});var t=o.props.onBreakpoint;t&&t(e.matches),o.state.collapsed!==e.matches&&o.setCollapsed(e.matches,"responsive")},o.setCollapsed=function(e,t){"collapsed"in o.props||o.setState({collapsed:e});var n=o.props.onCollapse;n&&n(e,t)},o.toggle=function(){var e=!o.state.collapsed;o.setCollapsed(e,"clickTrigger")},o.renderSider=function(e){var t,n=e.getPrefixCls,c=o.props,s=c.prefixCls,f=c.className,d=c.theme,h=c.collapsible,m=c.reverseArrow,g=c.trigger,O=c.style,w=c.width,x=c.collapsedWidth,j=c.zeroWidthTriggerStyle,E=P(c,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle"]),S=n("layout-sider",s),_=Object(a.default)(E,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),C=o.state.collapsed?x:w,k=v(C)?"".concat(C,"px"):String(C),M=0===parseFloat(String(x||0))?r.createElement("span",{onClick:o.toggle,className:"".concat(S,"-zero-width-trigger ").concat(S,"-zero-width-trigger-").concat(m?"right":"left"),style:j},r.createElement(u.a,null)):null,N={expanded:m?r.createElement(l.a,null):r.createElement(p.a,null),collapsed:m?r.createElement(p.a,null):r.createElement(l.a,null)}[o.state.collapsed?"collapsed":"expanded"],T=null!==g?M||r.createElement("div",{className:"".concat(S,"-trigger"),onClick:o.toggle,style:{width:k}},g||N):null,A=b(b({},O),{flex:"0 0 ".concat(k),maxWidth:k,minWidth:k,width:k}),R=i()(f,S,"".concat(S,"-").concat(d),(y(t={},"".concat(S,"-collapsed"),!!o.state.collapsed),y(t,"".concat(S,"-has-trigger"),h&&null!==g&&!M),y(t,"".concat(S,"-below"),!!o.state.below),y(t,"".concat(S,"-zero-width"),0===parseFloat(k)),t));return r.createElement("aside",b({className:R},_,{style:A}),r.createElement("div",{className:"".concat(S,"-children")},o.props.children),h||o.state.below&&M?T:null)},o.uniqueId=N("ant-sider-"),"undefined"!=typeof window&&(c=window.matchMedia),c&&e.breakpoint&&e.breakpoint in k&&(o.mql=c("(max-width: ".concat(k[e.breakpoint],")"))),s="collapsed"in e?e.collapsed:e.defaultCollapsed,o.state={collapsed:s,below:!1},o}return w(n,[{key:"componentDidMount",value:function(){this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),this.props.siderHook&&this.props.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){this.mql&&this.mql.removeListener(this.responsiveHandler),this.props.siderHook&&this.props.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var e=this.state.collapsed,t=this.props.collapsedWidth;return r.createElement(M.Provider,{value:{siderCollapsed:e,collapsedWidth:t}},r.createElement(h.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(e){return"collapsed"in e?{collapsed:e.collapsed}:null}}]),n}(r.Component);T.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var A=function(e){x(n,e);var t=E(n);function n(){return g(this,n),t.apply(this,arguments)}return w(n,[{key:"render",value:function(){var e=this;return r.createElement(d.a.Consumer,null,(function(t){return r.createElement(T,b({},t,e.props))}))}}]),n}(r.Component)},,function(e,t,n){"use strict";e.exports=n(449)},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkParent=void 0,t.checkParent=function(e){if(!e)return void console.error(new Error("react-resize-reporter: empty parent element"));switch(e.tagName){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"menuitem":case"meta":case"param":case"source":case"track":case"wbr":case"script":case"style":case"textarea":case"title":console.error(new Error("react-resize-reporter: Unsupported parent tag name "+e.tagName.toLowerCase()+"."+e.className.replace(/\s+/,".")+" . Change the tag or wrap it in a supported tag(e.g. div)."))}const t=window.getComputedStyle(e);t&&"static"===t.getPropertyValue("position")&&console.warn(new Error("react-resize-reporter: The 'position' CSS property of element "+e.tagName.toLowerCase()+"."+e.className.replace(/\s+/,".")+" should not be 'static'."))}},,,,,function(e,t,n){var r=n(550),o=n(591),i=n(938),a=n(615),c=n(593),u=function(e,t,n){var s,l,f,p=e&u.F,d=e&u.G,h=e&u.S,v=e&u.P,m=e&u.B,y=e&u.W,b=d?o:o[t]||(o[t]={}),g=b.prototype,O=d?r:h?r[t]:(r[t]||{}).prototype;for(s in d&&(n=t),n)(l=!p&&O&&void 0!==O[s])&&c(b,s)||(f=l?O[s]:n[s],b[s]=d&&"function"!=typeof O[s]?n[s]:m&&l?i(f,r):y&&O[s]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((b.virtual||(b.virtual={}))[s]=f,e&u.R&&g&&!g[s]&&a(g,s,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(617);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(262),o=n(208);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var c=-1,u=t.length;++c<u;){var s=t[c],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?o(n,s,l):r(n,s,l)}return n}},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(595),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t,n){"use strict";function r(e,t){for(let n=0;n<t.length-2;n+=3){const r=t.charAt(n+2);let o="a"<=r?r.charCodeAt(0)-87:Number(r);o="+"==t.charAt(n+1)?e>>>o:e<<o,e="+"==t.charAt(n)?e+o&4294967295:e^o}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.getTK=function(e,t,n){t=Number(t)||0,n=Number(n)||0;const o=[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);128>n?o.push(n):(2048>n?o.push(n>>6|192):(55296==(64512&n)&&t+1<e.length&&56320==(64512&e.charCodeAt(t+1))?(n=65536+((1023&n)<<10)+(1023&e.charCodeAt(++t)),o.push(n>>18|240),o.push(n>>12&63|128)):o.push(n>>12|224),o.push(n>>6&63|128)),o.push(63&n|128))}let i=t;for(let e=0;e<o.length;e++)i+=o[e],i=r(i,"+-a^+6");return i=r(i,"+-3^+b+-f"),i^=n,0>i&&(i=2147483648+(2147483647&i)),i%=1e6,i.toString()+"."+(i^t)},t.fetchScheduled=async function(e,t){if(t)return new Promise((t,n)=>{let r=0;for(let o=0;o<e.length;o++)e[o]().then(t).catch(()=>{++r===e.length&&n(new Error("All rejected"))})});for(let t=0;t<e.length;t++)try{return await e[t]()}catch(e){}return Promise.reject(new Error("All rejected"))}},function(e,t,n){var r;e.exports=(r=n(49),n(502),function(){var e=r,t=e.lib.Hasher,n=e.x64,o=n.Word,i=n.WordArray,a=e.algo;function c(){return o.create.apply(o,arguments)}var u=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],s=[];!function(){for(var e=0;e<80;e++)s[e]=c()}();var l=a.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],c=n[4],l=n[5],f=n[6],p=n[7],d=r.high,h=r.low,v=o.high,m=o.low,y=i.high,b=i.low,g=a.high,O=a.low,w=c.high,x=c.low,j=l.high,E=l.low,S=f.high,_=f.low,C=p.high,P=p.low,k=d,M=h,N=v,T=m,A=y,R=b,D=g,I=O,L=w,F=x,z=j,B=E,H=S,K=_,V=C,U=P,W=0;W<80;W++){var q=s[W];if(W<16)var G=q.high=0|e[t+2*W],$=q.low=0|e[t+2*W+1];else{var Y=s[W-15],X=Y.high,Z=Y.low,J=(X>>>1|Z<<31)^(X>>>8|Z<<24)^X>>>7,Q=(Z>>>1|X<<31)^(Z>>>8|X<<24)^(Z>>>7|X<<25),ee=s[W-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=s[W-7],ae=ie.high,ce=ie.low,ue=s[W-16],se=ue.high,le=ue.low;G=(G=(G=J+ae+(($=Q+ce)>>>0<Q>>>0?1:0))+re+(($+=oe)>>>0<oe>>>0?1:0))+se+(($+=le)>>>0<le>>>0?1:0),q.high=G,q.low=$}var fe,pe=L&z^~L&H,de=F&B^~F&K,he=k&N^k&A^N&A,ve=M&T^M&R^T&R,me=(k>>>28|M<<4)^(k<<30|M>>>2)^(k<<25|M>>>7),ye=(M>>>28|k<<4)^(M<<30|k>>>2)^(M<<25|k>>>7),be=(L>>>14|F<<18)^(L>>>18|F<<14)^(L<<23|F>>>9),ge=(F>>>14|L<<18)^(F>>>18|L<<14)^(F<<23|L>>>9),Oe=u[W],we=Oe.high,xe=Oe.low,je=V+be+((fe=U+ge)>>>0<U>>>0?1:0),Ee=ye+ve;V=H,U=K,H=z,K=B,z=L,B=F,L=D+(je=(je=(je=je+pe+((fe+=de)>>>0<de>>>0?1:0))+we+((fe+=xe)>>>0<xe>>>0?1:0))+G+((fe+=$)>>>0<$>>>0?1:0))+((F=I+fe|0)>>>0<I>>>0?1:0)|0,D=A,I=R,A=N,R=T,N=k,T=M,k=je+(me+he+(Ee>>>0<ye>>>0?1:0))+((M=fe+Ee|0)>>>0<fe>>>0?1:0)|0}h=r.low=h+M,r.high=d+k+(h>>>0<M>>>0?1:0),m=o.low=m+T,o.high=v+N+(m>>>0<T>>>0?1:0),b=i.low=b+R,i.high=y+A+(b>>>0<R>>>0?1:0),O=a.low=O+I,a.high=g+D+(O>>>0<I>>>0?1:0),x=c.low=x+F,c.high=w+L+(x>>>0<F>>>0?1:0),E=l.low=E+B,l.high=j+z+(E>>>0<B>>>0?1:0),_=f.low=_+K,f.high=S+H+(_>>>0<K>>>0?1:0),P=p.low=P+U,p.high=C+V+(P>>>0<U>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(l),e.HmacSHA512=t._createHmacHelper(l)}(),r.SHA512)},function(e){e.exports=JSON.parse('{"af":"南非荷兰语","am":"阿姆哈拉语","ar":"阿拉伯语","auto":"检测语言","az":"阿塞拜疆语","be":"白俄罗斯语","bg":"保加利亚语","bn":"孟加拉语","bs":"波斯尼亚语","ca":"加泰罗尼亚语","ceb":"宿务语","co":"科西嘉语","cs":"捷克语","cy":"威尔士语","da":"丹麦语","de":"德语","el":"希腊语","en":"英语","eo":"世界语","es":"西班牙语","et":"爱沙尼亚语","eu":"巴斯克语","fa":"波斯语","fi":"芬兰语","fil":"菲律宾语","fj":"斐济语","fr":"法语","fy":"弗里斯兰语","ga":"爱尔兰语","gd":"苏格兰盖尔语","gl":"加利西亚语","gu":"古吉拉特语","ha":"豪萨语","haw":"夏威夷语","he":"希伯来语","hi":"印地语","hmn":"苗语","hr":"克罗地亚语","ht":"海地克里奥尔语","hu":"匈牙利语","hy":"亚美尼亚语","id":"印度尼西亚语","ig":"伊博语","is":"冰岛语","it":"意大利语","ja":"日语","jw":"爪哇语","ka":"格鲁吉亚语","kk":"哈萨克语","km":"高棉语","kn":"卡纳达语","ko":"韩语","ku":"库尔德语","ky":"吉尔吉斯语","la":"拉丁语","lb":"卢森堡语","lo":"老挝语","lt":"立陶宛语","lv":"拉脱维亚语","mg":"马尔加什语","mi":"毛利语","mk":"马其顿语","ml":"马拉雅拉姆语","mn":"蒙古语","mr":"马拉地语","ms":"马来语","mt":"马耳他语","mww":"白苗文","my":"缅甸语","ne":"尼泊尔语","nl":"荷兰语","no":"挪威语","ny":"尼杨扎语(齐切瓦语)","otq":"克雷塔罗奥托米语","pa":"旁遮普语","pl":"波兰语","ps":"普什图语","pt":"葡萄牙语(葡萄牙、巴西)","ro":"罗马尼亚语","ru":"俄语","sd":"信德语","si":"僧伽罗语","sk":"斯洛伐克语","sl":"斯洛文尼亚语","sm":"萨摩亚语","sn":"修纳语","so":"索马里语","sq":"阿尔巴尼亚语","sr":"塞尔维亚语","sr-Cyrl":"塞尔维亚语(西里尔文)","sr-Latn":"塞尔维亚语(拉丁文)","st":"塞索托语","su":"巽他语","sv":"瑞典语","sw":"斯瓦希里语","ta":"泰米尔语","te":"泰卢固语","tg":"塔吉克语","th":"泰语","tlh":"克林贡语","tlh-Qaak":"克林贡语(piqaD)","to":"汤加语","tr":"土耳其语","ty":"塔希提语","ug":"维吾尔语","uk":"乌克兰语","ur":"乌尔都语","uz":"乌兹别克语","vi":"越南语","wyw":"文言文","xh":"班图语","yi":"意第绪语","yo":"约鲁巴语","yua":"尤卡坦玛雅语","yue":"粤语(繁体)","zh-CN":"中文(简体)","zh-TW":"中文(繁体)","zu":"祖鲁语"}')},function(e){e.exports=JSON.parse('{"af":"南非荷蘭語","am":"阿姆哈拉語","ar":"阿拉伯語","auto":"偵測語言","az":"亞塞拜然語","be":"白俄羅斯語","bg":"保加利亞語","bn":"孟加拉語","bs":"波斯尼亞語","ca":"加泰羅尼亞語","ceb":"宿務語","co":"科西嘉語","cs":"捷克語","cy":"威爾士語","da":"丹麥語","de":"德語","el":"希臘語","en":"英語","eo":"世界語","es":"西班牙語","et":"愛沙尼亞語","eu":"巴斯克語","fa":"波斯語","fi":"芬蘭語","fil":"菲律賓語","fj":"斐濟語","fr":"法語","fy":"弗里斯蘭語","ga":"愛爾蘭語","gd":"蘇格蘭蓋爾語","gl":"加利西亞語","gu":"古吉拉特語","ha":"豪薩語","haw":"夏威夷語","he":"希伯來語","hi":"印地語","hmn":"苗語","hr":"克羅埃西亞語","ht":"海地克里奧爾語","hu":"匈牙利語","hy":"亞美尼亞語","id":"印度尼西亞語","ig":"伊博語","is":"冰島語","it":"義大利語","ja":"日語","jw":"爪哇語","ka":"喬治亞語","kk":"哈薩克語","km":"高棉語","kn":"卡納達語","ko":"韓語","ku":"庫爾德語","ky":"吉爾吉斯語","la":"拉丁語","lb":"盧森堡語","lo":"寮國語","lt":"立陶宛語","lv":"拉脫維亞語","mg":"馬爾加什語","mi":"毛利語","mk":"馬其頓語","ml":"馬拉雅拉姆語","mn":"蒙古語","mr":"馬拉地語","ms":"馬來語","mt":"馬耳他語","mww":"白苗文","my":"緬甸語","ne":"尼泊爾語","nl":"荷蘭語","no":"挪威語","ny":"尼楊扎語(齊切瓦語)","otq":"克雷塔羅奧托米語","pa":"旁遮普語","pl":"波蘭語","ps":"普什圖語","pt":"葡萄牙語(葡萄牙、巴西)","ro":"羅馬尼亞語","ru":"俄語","sd":"信德語","si":"僧伽羅語","sk":"斯洛伐克語","sl":"斯洛維尼亞語","sm":"薩摩亞語","sn":"修納語","so":"索馬利亞語","sq":"阿爾巴尼亞語","sr":"塞爾維亞語","sr-Cyrl":"塞爾維亞語(西里爾文)","sr-Latn":"塞爾維亞語(拉丁文)","st":"塞索托語","su":"巽他語","sv":"瑞典語","sw":"斯瓦希里語","ta":"泰米爾語","te":"泰盧固語","tg":"塔吉克語","th":"泰語","tlh":"克林貢語","tlh-Qaak":"克林貢語(piqaD)","to":"湯加語","tr":"土耳其語","ty":"塔希提語","ug":"維吾爾語","uk":"烏克蘭語","ur":"烏爾都語","uz":"烏茲別克語","vi":"越南語","wyw":"文言文","xh":"班圖語","yi":"意第緒語","yo":"約魯巴語","yua":"尤卡坦瑪雅語","yue":"粵語(繁體)","zh-CN":"中文(簡體)","zh-TW":"中文(繁體)","zu":"祖魯語"}')},function(e,t,n){"use strict";var r=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.getPathValue=function(e,t){if(!t&&"number"!=typeof t)return e;for(var n=i(t),r=e,o=0;o<n.length;o+=1){if(!r)return null;var a=n[o];r=r[a]}return r},t.getColumnsKey=function(e){var t=[],n={};return e.forEach((function(e){for(var r=e||{},o=r.key,a=r.dataIndex,c=o||i(a).join("-")||"RC_TABLE_KEY";n[c];)c="".concat(c,"_next");n[c]=!0,t.push(c)})),t},t.mergeObject=function(){var e={};function t(e,n){n&&Object.keys(n).forEach((function(r){var i=n[r];i&&"object"===(0,o.default)(i)?(e[r]=e[r]||{},t(e[r],i)):e[r]=i}))}for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.forEach((function(n){t(e,n)})),e},t.validateValue=function(e){return null!=e};var o=r(n(590));function i(e){return null==e?[]:Array.isArray(e)?e:[e]}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SizeContextProvider=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=o.createContext(void 0);t.SizeContextProvider=function(e){var t=e.children,n=e.size;return o.createElement(a.Consumer,null,(function(e){return o.createElement(a.Provider,{value:n||e},t)}))};var c=a;t.default=c},function(e,t,n){"use strict";var r,o=n(0),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,s=[];function l(){u=e(s.map((function(e){return e.props}))),f.canUseDOM?t(u):n&&(u=n(u))}var f=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return u},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=u;return u=void 0,s=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),l()},a.componentDidUpdate=function(){l()},a.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),l()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",c),f}}},function(e,t){var n="undefined"!=typeof Element,r="function"==typeof Map,o="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,t){try{return function e(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var c,u,s,l;if(Array.isArray(t)){if((c=t.length)!=a.length)return!1;for(u=c;0!=u--;)if(!e(t[u],a[u]))return!1;return!0}if(r&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;for(l=t.entries();!(u=l.next()).done;)if(!e(u.value[1],a.get(u.value[0])))return!1;return!0}if(o&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(l=t.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((c=t.length)!=a.length)return!1;for(u=c;0!=u--;)if(t[u]!==a[u])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((c=(s=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(u=c;0!=u--;)if(!Object.prototype.hasOwnProperty.call(a,s[u]))return!1;if(n&&t instanceof Element)return!1;for(u=c;0!=u--;)if(("_owner"!==s[u]&&"__v"!==s[u]&&"__o"!==s[u]||!t.$$typeof)&&!e(t[s[u]],a[s[u]]))return!1;return!0}return t!=t&&a!=a}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1073))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1079))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1081))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1083))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1196))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(266),i=r.__importDefault(n(594)),a=r.__importDefault(n(236)),c=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]];class u extends o.Translator{constructor(){super(...arguments),this.name="baidu",this.endpoint="http://api.fanyi.baidu.com/api/trans/vip/translate",this.appid="20151211000007653",this.key="IFJB6jBORFuMmVGDRude"}async query(e,t,n,r){const c=Date.now(),s=r.appid||this.appid,l=r.key||this.key,f=await this.request(this.endpoint,{params:{from:u.langMap.get(t),to:u.langMap.get(n),q:e,salt:c,appid:s,sign:i.default(s+e+c+l)}}).then(this.checkData).catch(()=>this.request("http://openapi.baidu.com/public/2.0/bmt/translate?"+a.default.stringify({client_id:"AVhF9A0GExzkU5gCkZ0Gbht7",from:u.langMap.get(t),to:u.langMap.get(n),q:e})).then(this.checkData)).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")}),{trans_result:p,from:d}=f,h=u.langMapReverse.get(d)||t;return{text:e,from:h,to:n,origin:{paragraphs:p.map(({src:e})=>e),tts:await this.textToSpeech(e,h)},trans:{paragraphs:p.map(({dst:e})=>e),tts:await this.textToSpeech(p[0].dst,n)}}}async textToSpeech(e,t){return"https://fanyi.baidu.com/gettts?"+a.default.stringify({lan:u.langMap.get("auto"!==t?t:"zh-CN")||"zh",spd:5,text:e})}checkData({data:e}){if(e.error_code)throw new o.TranslateError("API_SERVER_ERROR");return e}getSupportLanguages(){return[...u.langMap.keys()]}}t.Baidu=u,u.langMap=new Map(c),u.langMapReverse=new Map(c.map(([e,t])=>[t,e])),t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(266),i=r.__importDefault(n(236)),a=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]];class c extends o.Translator{constructor(){super(...arguments),this.token="ukiw3nrioeilf0mlpam7",this.name="caiyun"}getSupportLanguages(){return[...c.langMap.keys()]}async textToSpeech(e,t){return"https://fanyi.baidu.com/gettts?"+i.default.stringify({lan:c.langMap.get("auto"!==t?t:"zh-CN")||"zh",spd:5,text:e})}async query(e,t,n,r){const i="auto"===t,a=e.split(/\n+/),u=await this.request("https://api.interpreter.caiyunai.com/v1/translator",{headers:{"content-type":"application/json","x-authorization":"token "+(r.token||this.token)},method:"POST",data:JSON.stringify({source:a,trans_type:`${c.langMap.get(t)}2${c.langMap.get(n)}`,detect:i})}).catch(()=>{});if(!u||!u.data)throw new o.TranslateError("NETWORK_ERROR");const s=u.data,l=i?await this.detect(e):t;return{text:e,from:l,to:n,origin:{paragraphs:a,tts:await this.textToSpeech(e,l)},trans:{paragraphs:s.target,tts:await this.textToSpeech(s.target.join(" "),n)}}}}t.Caiyun=c,c.langMap=new Map(a),c.langMapReverse=new Map(a.map(([e,t])=>[t,e])),t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(266),o=n(651),i=n(839),a=n(840),c=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]];class u extends r.Translator{constructor(){super(...arguments),this.config={token:"",order:["cn","com"],concurrent:!0,apiAsFallback:!0},this.single={com:new i.Single("com",this.request.bind(this),u.langMap,u.langMapReverse),cn:new i.Single("cn",this.request.bind(this),u.langMap,u.langMapReverse),api:new i.Single("api",this.request.bind(this),u.langMap,u.langMapReverse)},this.batchExecute={com:new a.BatchExecute("com",this.request.bind(this),u.langMap,u.langMapReverse),cn:new a.BatchExecute("cn",this.request.bind(this),u.langMap,u.langMapReverse)},this.name="google"}async query(e,t,n,r){let i;if(i=await o.fetchScheduled(r.order.map(r=>()=>"api"===r?this.single.api.translate(e,t,n):this.batchExecute[r].translate(e,t,n)),r.concurrent).catch(()=>{}),i||(i=await o.fetchScheduled(r.order.map(r=>()=>"api"===r?Promise.reject():this.single[r].translate(e,t,n)),r.concurrent).catch(()=>{})),!i&&r.apiAsFallback&&(i=await this.single.api.translate(e,t,n)),!i)throw new Error("NETWORK_ERROR");return i}getSupportLanguages(){return[...u.langMap.keys()]}async detect(e){try{return(await this.translate(e,"auto","zh-CN")).from}catch(e){return"auto"}}async textToSpeech(e,t){let n=null;return n=await o.fetchScheduled(this.config.order.map(n=>()=>"api"===n?Promise.reject():this.batchExecute[n].textToSpeech(e,t)),this.config.concurrent).catch(()=>null),n||(n=await o.fetchScheduled(this.config.order.map(n=>()=>"api"===n?Promise.reject():this.single[n].textToSpeech(e,t)),this.config.concurrent).catch(()=>null)),n}}t.Google=u,u.langMap=new Map(c),u.langMapReverse=new Map(c.map(([e,t])=>[t,e])),t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(266),i=r.__importDefault(n(594)),a=r.__importDefault(n(236)),c=[["auto","auto"],["zh-CN","zh-CHS"],["zh-TW","zh-CHT"],["en","en"],["af","af"],["ar","ar"],["bg","bg"],["bn","bn"],["bs","bs-Latn"],["ca","ca"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["es","es"],["et","et"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["lt","lt"],["lv","lv"],["mg","mg"],["ms","ms"],["mt","mt"],["mww","mww"],["nl","nl"],["no","no"],["otq","otq"],["pl","pl"],["pt","pt"],["ro","ro"],["ru","ru"],["sk","sk"],["sl","sl"],["sm","sm"],["sr-Cyrl","sr-Cyrl"],["sr-Latn","sr-Latn"],["sv","sv"],["sw","sw"],["th","th"],["tlh","tlh"],["tlh-Qaak","tlh-Qaak"],["to","to"],["tr","tr"],["ty","ty"],["uk","uk"],["ur","ur"],["vi","vi"],["yua","yua"],["yue","yue"]];class u extends o.Translator{constructor(){super(...arguments),this.name="sogou"}async query(e,t,n,r){const c=i.default(r.pid+e+u.salt+r.key),s=(await this.request("http://fanyi.sogou.com/reventondc/api/sogouTranslate",{method:"post",data:a.default.stringify({from:u.langMap.get(t),to:u.langMap.get(n),pid:r.pid,q:e,sign:c,salt:u.salt}),headers:{"content-type":"application/x-www-form-urlencoded",accept:"application/json"}}).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")})).data;return{text:e,from:u.langMapReverse.get(s.detect)||"auto",to:n,origin:{paragraphs:e.split(/\n+/),tts:await this.textToSpeech(e,t)||""},trans:{paragraphs:[s.translation],tts:await this.textToSpeech(s.translation,n)||""}}}getSupportLanguages(){return[...u.langMap.keys()]}async detect(e){return(await this.translate(e,"auto","en")).from}async textToSpeech(e,t){return"zh-TW"===t?"https://fanyi.sogou.com/reventondc/microsoftGetSpeakFile?"+a.default.stringify({text:e,spokenDialect:"zh-CHT",from:"translateweb"}):"https://fanyi.sogou.com/reventondc/synthesis?"+a.default.stringify({text:e,speed:"1",lang:u.langMap.get(t)||"en",from:"translateweb"})}}t.Sogou=u,u.langMap=new Map(c),u.salt="1508404016012",u.langMapReverse=new Map(c.map(([e,t])=>[t,e])),t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(266),i=r.__importDefault(n(236)),a=r.__importDefault(n(500)),c=r.__importDefault(n(851)),u=r.__importDefault(n(852)),s=n(853),l=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["en","en"],["ko","kr"],["ja","jp"],["de","de"],["fr","fr"],["es","es"],["it","it"],["tr","tr"],["ru","ru"],["pt","pt"],["vi","vi"],["id","id"],["ms","ms"],["th","th"]],f={qtv:"65ef44a0cc5d299c",qtk:"+AANhO9ht72y/9Y7BlcdM9epx0JveTbF9gMqzdjvZrAD9wy/914A6AhaEoo5GbOpP3MxiI8T7paPN2qikKSl2lF1A0GAd4mXEtFtITyYMKmqvqGhRT0iEz8jqbkd7zWyOnW2BlfxaetS57uJXrvz7g==",date:0};class p extends o.Translator{constructor(){super(...arguments),this.token={...f},this.name="tencent"}static getUTCDate(e){return`${e.getUTCFullYear()}-${(""+(e.getUTCMonth()+1)).padStart(2,"0")}-${(""+e.getUTCDate()).padStart(2,"0")}`}static isManifestV3(e){if(!e||!e.runtime||"function"!=typeof e.runtime.getManifest)return!1;const t=e.runtime.getManifest();return!(!t||3!==t.manifest_version)}static escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}static getChromeApi(){return"undefined"!=typeof chrome?chrome:"undefined"!=typeof self&&self.chrome?self.chrome:null}static getDeclarativeNetRequest(e){const t=p.getChromeApi();return t&&t.declarativeNetRequest?t.declarativeNetRequest:e&&e.declarativeNetRequest?e.declarativeNetRequest:void 0}static getTabIdNone(e){if(e&&e.tabs&&"number"==typeof e.tabs.TAB_ID_NONE)return e.tabs.TAB_ID_NONE;const t=p.getChromeApi();return t&&t.tabs&&"number"==typeof t.tabs.TAB_ID_NONE?t.tabs.TAB_ID_NONE:void 0}static getHostRuleId(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return 2097593+(t>>>0)%1e9}static updateSessionRules(e,t,n){if(e.updateSessionRules.length>=2)return new Promise((r,o)=>{e.updateSessionRules(n,()=>{const e=p.getChromeApi(),n=e&&e.runtime||t&&t.runtime||null;n&&n.lastError?o(new Error(n.lastError.message)):r()})});const r=e.updateSessionRules(n);return r&&"function"==typeof r.then?r:Promise.resolve()}static setupMv2HostModifier(e,t){const n=["blocking","requestHeaders"];e.webRequest.OnBeforeSendHeadersOptions&&e.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS")&&n.push("extraHeaders"),e.webRequest.onBeforeSendHeaders.addListener(e=>{if(e&&e.requestHeaders){const n=e.requestHeaders.filter(e=>!/Host/i.test(e.name));return n.push({name:"Host",value:t}),{requestHeaders:n}}return e},{urls:[`*://${t}/*`]},n)}static setupMv3HostModifier(e,t){const n=p.getDeclarativeNetRequest(e);if(!n)return Promise.resolve();const r=[{id:p.getHostRuleId(t),priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"host",operation:"set",value:t}]},condition:{regexFilter:`^https://${p.escapeRegExp(t)}/.*`}}],o=p.getTabIdNone(e);return"number"==typeof o&&(r[0].condition.tabIds=[o]),p.updateSessionRules(n,e,{removeRuleIds:[r[0].id],addRules:r})}async ensureStubHeaders(e){if("ext"!==this.env||p.headerModifiers[e])return void(p.headerModifiers[e]&&!0!==p.headerModifiers[e]&&await p.headerModifiers[e]);const t="undefined"!=typeof browser?browser:"undefined"!=typeof chrome?chrome:null;if(t){if(p.isManifestV3(t)&&p.getDeclarativeNetRequest(t)){const n=p.setupMv3HostModifier(t,e).then(()=>{p.headerModifiers[e]=!0}).catch(t=>{throw delete p.headerModifiers[e],t});return p.headerModifiers[e]=n,void await n}t.webRequest&&t.webRequest.onBeforeSendHeaders&&"function"==typeof t.webRequest.onBeforeSendHeaders.addListener&&(p.setupMv2HostModifier(t,e),p.headerModifiers[e]=!0)}}signedRequest({secretId:e,secretKey:t,action:n,payload:r,service:o,version:i}){const s=o+".tencentcloudapi.com",l=new Date,f=(""+(new Date).valueOf()).slice(0,10),d=["POST","/","","content-type:application/json; charset=utf-8","host:"+s,"","content-type;host",a.default(r).toString(u.default)].join("\n"),h=p.getUTCDate(l),v=["TC3-HMAC-SHA256",f,`${h}/${o}/tc3_request`,a.default(d).toString(u.default)].join("\n"),m=c.default(h,"TC3"+t),y=c.default(o,m),b=c.default("tc3_request",y),g=c.default(v,b).toString(u.default);return this.ensureStubHeaders(s).then(()=>this.request(`https://${o}.tencentcloudapi.com`,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":n,"X-TC-Timestamp":f,"X-TC-Region":"ap-beijing","X-TC-Version":i,Authorization:`TC3-HMAC-SHA256 Credential=${e}/${h}/${o}/tc3_request, SignedHeaders=content-type;host, Signature=${g}`},data:r}))}async updateToken(){const e={...f};try{const t=(await this.request("https://fanyi.qq.com")).data,n=/reauthuri = \"([^"]+)\"/.exec(t);let r="reauth1232f";n&&(r=n[1]);const o="https://fanyi.qq.com/api/"+r,i=await this.request(o,{method:"POST"});e.qtk=i.data.qtk,e.qtv=i.data.qtv}catch(e){}this.token={...e,date:Date.now()}}async getToken(){return Date.now()-this.token.date>36e4&&await this.updateToken(),this.token}async query(e,t,n,r){if(r.secretKey){const o=JSON.stringify({ProjectId:0,Source:p.langMap.get(t),SourceText:e,Target:p.langMap.get(n)}),{data:i}=await this.signedRequest({secretId:r.secretId,secretKey:r.secretKey,action:"TextTranslate",payload:o,service:"tmt",version:"2018-03-21"});return{text:e,from:p.langMapReverse.get(i.Response.Source)||t,to:p.langMapReverse.get(i.Response.Target)||n,origin:{paragraphs:e.split(/\n+/)},trans:{paragraphs:s.decodeHTMLEntities(i.Response.TargetText).split(/\n+/)}}}const{qtv:a,qtk:c}=await this.getToken(),u=i.default.stringify({source:p.langMap.get(t),target:p.langMap.get(n),sourceText:e,qtv:a,qtk:c,sessionUuid:"translate_uuid"+Date.now()}),l=await this.request("https://fanyi.qq.com/api/translate",{method:"post",withCredentials:!1,headers:{Origin:"https://fanyi.qq.com",Accept:"application/json, text/javascript, */*; q=0.01","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","X-Requested-With":"XMLHttpRequest"},data:u});if(!l||!l.data)throw new o.TranslateError("NETWORK_ERROR");const f=l.data,d=s.decodeHTMLEntities(f.translate.records.map(e=>e.targetText).join(" ").replace(/\s*↵\s*/g,"\n")),h=s.decodeHTMLEntities(f.translate.records.map(e=>e.sourceText).join(" ").replace(/\s*↵\s*/g,"\n"));return{text:e,from:p.langMapReverse.get(f.translate.source)||("auto"!==t?t:await this.detect(e)),to:n,origin:{paragraphs:h.split("\n"),tts:await this.textToSpeech(h,p.langMapReverse.get(f.translate.source)||t)},trans:{paragraphs:d.split("\n"),tts:await this.textToSpeech(d,p.langMapReverse.get(f.translate.target)||n)}}}getSupportLanguages(){return[...p.langMap.keys()]}async detect(e){if(this.config.secretKey){const t=JSON.stringify({ProjectId:0,Text:e}),{data:n}=await this.signedRequest({secretId:this.config.secretId,secretKey:this.config.secretKey,action:"LanguageDetect",payload:t,service:"tmt",version:"2018-03-21"});return p.langMapReverse.get(n.Response.Lang)||"auto"}return super.detect(e)}async textToSpeech(e,t){if(this.config.secretKey){const n=JSON.stringify({ProjectId:0,Text:encodeURIComponent(e),SessionId:""+Date.now(),ModelType:-1,PrimaryLanguage:t.startsWith("zh")?1:2,Codec:"mp3"}),{data:r}=await this.signedRequest({secretId:this.config.secretId,secretKey:this.config.secretKey,action:"TextToVoice",payload:n,service:"tts",version:"2019-08-23"});return r.Response.Audio||""}return"https://fanyi.qq.com/api/tts?"+i.default.stringify({lang:p.langMap.get("auto"!==t?t:"zh-CN")||"zh",text:e})}}t.Tencent=p,p.langMap=new Map(l),p.langMapReverse=new Map(l.map(([e,t])=>[t,e])),p.headerModifiers={},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(266),i=r.__importDefault(n(861)),a=r.__importDefault(n(594)),c=r.__importDefault(n(236)),u=n(885);const s=[["auto","AUTO"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]];class l extends o.Translator{constructor(){super(...arguments),this.yduuid=a.default(`${Date.now()}-${Math.random()}`),this.name="youdao"}async query(e,t,n,r){if(r.appKey){const i=Date.now(),a=Math.round(Date.now()/1e3),s=r.appKey+function(e){const t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}(e)+i+a+r.key,f=u.sha256(s),p=(await this.request("https://openapi.youdao.com/api",{method:"post",data:c.default.stringify({q:e,appKey:r.appKey,salt:i,from:l.langMap.get(t),to:l.langMap.get(n),sign:f,signType:"v3",curtime:a}),headers:{"Content-Type":"application/x-www-form-urlencoded",Origin:"https://fanyi.youdao.com",Referer:"https://fanyi.youdao.com/"}}).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")})).data;if("0"!==p.errorCode||!p.translation)throw new o.TranslateError("API_SERVER_ERROR");return{text:e,from:t,to:n,origin:{paragraphs:e.split(/\n+/),tts:await this.textToSpeech(e,t)||void 0},trans:{paragraphs:p.translation,tts:await this.textToSpeech(p.translation.join("\n"),n)||void 0}}}e=e.slice(0,5e3);try{return await this.queryByWebMain(e,t,n)}catch(r){return this.queryByWebTranslate(e,t,n)}}async transformRaw(e,t){if(0!==e.code)throw new o.TranslateError("API_SERVER_ERROR");const[n,r]=e.type.split("2"),i=l.langMapReverse.get(n)||"auto",a=l.langMapReverse.get(r)||"auto",c=e.translateResult.map(e=>e.map(e=>e.tgt.trim()).join(""));return{text:t,from:i,to:a,origin:{paragraphs:t.split(/\n+/),tts:await this.textToSpeech(t,i)||void 0},trans:{paragraphs:c,tts:await this.textToSpeech(c.join("\n"),a)||void 0}}}getSupportLanguages(){return[...l.langMap.keys()]}async queryByWebMain(e,t,n){const{secretKey:r,token:i}=await this.getWebMainSecret(),a=(await this.request("https://dict-trans.youdao.com/webtranslate/sse",{method:"post",data:c.default.stringify({...this.genParamV3({token:i,source:"webmain"},r,"translate-webfanyi-webmain","webfanyi","webfanyi.webmain","webmain"),modelName:"llmLite",useTerm:!1,i:encodeURIComponent(e),from:l.langMap.get(t),to:l.langMap.get(n)}),headers:{"Content-Type":"application/x-www-form-urlencoded",Origin:"https://fanyi.youdao.com",Referer:"https://fanyi.youdao.com/"},transformResponse:[e=>e],responseType:"text"}).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")})).data;return this.transformRaw(this.parseWebMainSsePayload(a,e),e)}async queryByWebTranslate(e,t,n){const{secretKey:r,aesKey:i,aesIv:a}=await this.getWebSecret(),u=(await this.request("https://dict.youdao.com/webtranslate",{method:"post",data:c.default.stringify({i:e,from:l.langMap.get(t),to:l.langMap.get(n),useTerm:!1,dictResult:!0,keyid:"webfanyi",noCheckPrivate:!1,...this.buildWebTranslateCommon(r)}),headers:{"Content-Type":"application/x-www-form-urlencoded",Origin:"https://fanyi.youdao.com",Referer:"https://fanyi.youdao.com/"},transformResponse:[e=>e],responseType:"text"}).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")})).data;let s;try{s=JSON.parse(this.decodeWebTranslatePayload(u,i,a))}catch(e){throw new o.TranslateError("API_SERVER_ERROR")}return this.transformRaw(s,e)}buildWebTranslateCommon(e){const t=Date.now();return{sign:a.default("client=fanyideskweb&mysticTime="+t+"&product=webfanyi&key="+e),client:"fanyideskweb",product:"webfanyi",appVersion:"12.0.0",vendor:"web",pointParam:"client,mysticTime,product",mysticTime:t,keyfrom:"fanyi.web",mid:1,screen:1,model:1,network:"wifi",abtest:0,yduuid:this.yduuid}}genParamV3(e,t,n,r,o,i="web",c="12.0.0"){const u={product:r,appVersion:c,client:i,mid:1,vendor:"web",screen:1,model:1,imei:1,network:"wifi",keyfrom:o,keyid:n,mysticTime:Date.now(),yduuid:this.yduuid,abtest:0,...e},s=Object.keys(u).filter(e=>void 0!==u[e]&&""!==u[e]).sort(),l=[...s,"key"].join(","),f=a.default([...s,"key"].map(e=>`${e}=${"key"===e?t:u[e]}`).join("&"));return{...u,sign:f,pointParam:l}}async getWebSecret(){if(this.webSecret&&Date.now()-this.webSecret.fetchedAt<36e5)return this.webSecret;const e=(await this.request("https://dict.youdao.com/webtranslate/key",{params:{keyid:"webfanyi-key-getter-2025",...this.buildWebTranslateCommon("yU5nT5dK3eZ1pI4j")},headers:{Origin:"https://fanyi.youdao.com",Referer:"https://fanyi.youdao.com/"}}).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")})).data;if(0!==e.code||!e.data)throw new o.TranslateError("API_SERVER_ERROR");return this.webSecret={...e.data,fetchedAt:Date.now()},this.webSecret}async getWebMainSecret(e=!0){const t={targetKeyid:"translate-webfanyi-webmain"};e&&this.webMainToken&&(t.token=this.webMainToken);const n=(await this.request("https://dict-trans.youdao.com/translate/key",{method:"post",params:this.genParamV3(t,"kSy5gtKA4yRUxAVPJPrdYKZ0jBKyd3t1","translate-webmain-key-getter","webfanyi","webfanyi.webmain","webmain"),headers:{Origin:"https://fanyi.youdao.com",Referer:"https://fanyi.youdao.com/"},data:""}).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")})).data;if(0===n.code&&n.data)return this.webMainToken=n.data.token,n.data;if(e&&this.webMainToken)return this.webMainToken=void 0,this.getWebMainSecret(!1);throw new o.TranslateError("API_SERVER_ERROR")}decodeWebTranslatePayload(e,t,n){const r=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(4*Math.ceil(e.length/4),"="),o=i.default.lib.CipherParams.create({ciphertext:i.default.enc.Base64.parse(r)});return i.default.AES.decrypt(o,i.default.MD5(t),{iv:i.default.MD5(n)}).toString(i.default.enc.Utf8)}parseWebMainSsePayload(e,t){const n=e.trim();if(!n)throw new o.TranslateError("API_SERVER_ERROR");if(n.startsWith("{")){if(0!==JSON.parse(n).code)throw new o.TranslateError("API_SERVER_ERROR")}let r="",i="",a="";if(n.split(/\r?\n/).forEach(e=>{if(e.startsWith("event:"))return void(r=e.slice(6).trim());if(!e.startsWith("data:"))return;const t=e.slice(5).trim();if(!t)return;const n=JSON.parse(t);"begin"===r&&n.type&&(i=n.type),"message"===r&&n.transIncre&&(a+=n.transIncre),"end"===r&&!i&&n.type&&(i=n.type)}),!i||!a)throw new o.TranslateError("API_SERVER_ERROR");return{code:0,translateResult:[[{src:t,tgt:a}]],type:i}}async textToSpeech(e,t){const n={"zh-CN":"zh","zh-TW":"zh",en:"en",ja:"ja",ko:"ko",fr:"fr"}[t];if(!n)return null;const r={product:"webfanyi",appVersion:1,client:"web",mid:1,vendor:"web",screen:1,model:1,imei:1,network:"wifi",keyfrom:"webfanyi",keyid:"voiceFanyiWeb",mysticTime:Date.now(),yduuid:"abcdefg",le:n,phonetic:"",rate:4,word:e,type:1,id:""},o=Object.keys(r).filter(e=>""!==r[e]).sort(),i=a.default([...o,"key"].map(e=>`${e}=${"key"===e?"qCG2vdP92hOXDcKa":r[e]}`).join("&"));return"https://dict.youdao.com/pronounce/base?"+c.default.stringify({...r,sign:i,pointParam:[...o,"key"].join(",")})}}t.Youdao=l,l.langMap=new Map(s),l.langMapReverse=new Map(s.map(([e,t])=>[t,e])),t.default=l},,function(e,t,n){"use strict";n.r(t);var r=n(6),o=n(28),i=n(76),a=n(0),c=n(406),u=n(5),s=n.n(u),l={adjustX:1,adjustY:1},f=[0,0],p={topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:f},topCenter:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:f},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:f},bottomCenter:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:f},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:f}};var d=a.forwardRef((function(e,t){var n=e.arrow,u=void 0!==n&&n,l=e.prefixCls,f=void 0===l?"rc-dropdown":l,d=e.transitionName,h=e.animation,v=e.align,m=e.placement,y=void 0===m?"bottomLeft":m,b=e.placements,g=void 0===b?p:b,O=e.getPopupContainer,w=e.showAction,x=e.hideAction,j=e.overlayClassName,E=e.overlayStyle,S=e.visible,_=e.trigger,C=void 0===_?["hover"]:_,P=Object(i.a)(e,["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"]),k=a.useState(),M=Object(o.a)(k,2),N=M[0],T=M[1],A="visible"in e?S:N,R=a.useRef(null);a.useImperativeHandle(t,(function(){return R.current}));var D,I,L,F,z,B,H=function(){var t=e.overlay;return"function"==typeof t?t():t},K=function(t){var n=e.onOverlayClick,r=H().props;T(!1),n&&n(t),r.onClick&&r.onClick(t)},V=function(){var e=H(),t={prefixCls:"".concat(f,"-menu"),onClick:K};return"string"==typeof e.type&&delete t.prefixCls,a.createElement(a.Fragment,null,u&&a.createElement("div",{className:"".concat(f,"-arrow")}),a.cloneElement(e,t))},U=x;return U||-1===C.indexOf("contextMenu")||(U=["click"]),a.createElement(c.a,Object.assign({},P,{prefixCls:f,ref:R,popupClassName:s()(j,Object(r.a)({},"".concat(f,"-show-arrow"),u)),popupStyle:E,builtinPlacements:g,action:C,showAction:w,hideAction:U||[],popupPlacement:y,popupAlign:v,popupTransitionName:d,popupAnimation:h,popupVisible:A,stretch:(z=e.minOverlayWidthMatchTrigger,B=e.alignPoint,("minOverlayWidthMatchTrigger"in e?z:!B)?"minWidth":""),popup:"function"==typeof e.overlay?V:V(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;T(t),"function"==typeof n&&n(t)},getPopupContainer:O}),(I=e.children,L=I.props?I.props:{},F=s()(L.className,void 0!==(D=e.openClassName)?D:"".concat(f,"-open")),N&&I?a.cloneElement(I,{className:F}):I))}));t.default=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(191),i=n(559);t.b=function(e){var t=e.children,n=r.useContext(o.a).prefixCls;return r.createElement("tfoot",{className:"".concat(n,"-summary")},t)};var a={Cell:function(e){var t=e.className,n=e.index,a=e.children,c=e.colSpan,u=e.rowSpan,s=r.useContext(o.a),l=s.prefixCls,f=s.fixedInfoList[n];return r.createElement(i.a,Object.assign({className:t,index:n,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:a,props:{colSpan:c,rowSpan:u}}}},f))},Row:function(e){return r.createElement("tr",Object.assign({},e))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n(0),o=n(5),i=n.n(o),a=n(196);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)||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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=r.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function x(e){var t=e.suffixCls,n=e.tagName,o=e.displayName;return function(e){var i;return(i=function(o){v(c,o);var i=y(c);function c(){var o;return p(this,c),(o=i.apply(this,arguments)).renderComponent=function(i){var a=i.getPrefixCls,c=o.props.prefixCls,u=a(t,c);return r.createElement(e,f({prefixCls:u,tagName:n},o.props))},o}return h(c,[{key:"render",value:function(){return r.createElement(a.a,null,this.renderComponent)}}]),c}(r.Component)).displayName=o,i}}var j=function(e){var t=e.prefixCls,n=e.className,o=e.children,a=e.tagName,c=O(e,["prefixCls","className","children","tagName"]),u=i()(t,n);return r.createElement(a,f({className:u},c),o)},E=function(e){v(n,e);var t=y(n);function n(){var e;return p(this,n),(e=t.apply(this,arguments)).state={siders:[]},e.renderComponent=function(t){var n,o=t.direction,a=e.props,c=a.prefixCls,u=a.className,s=a.children,p=a.hasSider,d=a.tagName,h=O(a,["prefixCls","className","children","hasSider","tagName"]),v=i()(c,(l(n={},"".concat(c,"-has-sider"),"boolean"==typeof p?p:e.state.siders.length>0),l(n,"".concat(c,"-rtl"),"rtl"===o),n),u);return r.createElement(w.Provider,{value:{siderHook:e.getSiderHook()}},r.createElement(d,f({className:v},h),s))},e}return h(n,[{key:"getSiderHook",value:function(){var e=this;return{addSider:function(t){e.setState((function(e){return{siders:[].concat(u(e.siders),[t])}}))},removeSider:function(t){e.setState((function(e){return{siders:e.siders.filter((function(e){return e!==t}))}}))}}}},{key:"render",value:function(){return r.createElement(a.a,null,this.renderComponent)}}]),n}(r.Component),S=x({suffixCls:"layout",tagName:"section",displayName:"Layout"})(E),_=x({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(j),C=x({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(j),P=x({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(j);S.Header=_,S.Footer=C,S.Content=P,t.b=S},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(0),o=n(5),i=n.n(o),a=n(774),c=n(196);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function g(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(y,e);var t,n,o,v=h(y);function y(){var e;return f(this,y),(e=v.apply(this,arguments)).renderCol=function(t){var n,o=t.getPrefixCls,c=t.direction,f=m(e).props,p=f.prefixCls,d=f.span,h=f.order,v=f.offset,y=f.push,O=f.pull,w=f.className,x=f.children,j=f.flex,E=f.style,S=b(f,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),_=o("col",p),C={};["xs","sm","md","lg","xl","xxl"].forEach((function(e){var t,n={},r=f[e];"number"==typeof r?n.span=r:"object"===l(r)&&(n=r||{}),delete S[e],C=s(s({},C),(u(t={},"".concat(_,"-").concat(e,"-").concat(n.span),void 0!==n.span),u(t,"".concat(_,"-").concat(e,"-order-").concat(n.order),n.order||0===n.order),u(t,"".concat(_,"-").concat(e,"-offset-").concat(n.offset),n.offset||0===n.offset),u(t,"".concat(_,"-").concat(e,"-push-").concat(n.push),n.push||0===n.push),u(t,"".concat(_,"-").concat(e,"-pull-").concat(n.pull),n.pull||0===n.pull),u(t,"".concat(_,"-rtl"),"rtl"===c),t))}));var P=i()(_,(u(n={},"".concat(_,"-").concat(d),void 0!==d),u(n,"".concat(_,"-order-").concat(h),h),u(n,"".concat(_,"-offset-").concat(v),v),u(n,"".concat(_,"-push-").concat(y),y),u(n,"".concat(_,"-pull-").concat(O),O),n),w,C);return r.createElement(a.a.Consumer,null,(function(e){var t=e.gutter,n=s({},E);return t&&(n=s(s(s({},t[0]>0?{paddingLeft:t[0]/2,paddingRight:t[0]/2}:{}),t[1]>0?{paddingTop:t[1]/2,paddingBottom:t[1]/2}:{}),n)),j&&(n.flex=g(j)),r.createElement("div",s({},S,{style:n,className:P}),x)}))},e}return t=y,(n=[{key:"render",value:function(){return r.createElement(c.a,null,this.renderCol)}}])&&p(t.prototype,n),o&&p(t,o),y}(r.Component)},,function(e,t,n){"use strict";n.r(t),n.d(t,"Option",(function(){return j})),n.d(t,"OptGroup",(function(){return S}));var r=n(45),o=n(48),i=n(54),a=n(53),c=n(25),u=n(0),s=n.n(u),l=n(6),f=n(76),p=n(28),d=n(41),h=n(629),v=n(773),m=n(5),y=n.n(m),b=n(1028),g=n(604),O=u.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,o=e.flattenOptions,i=e.childrenAsData,a=e.values,c=e.searchValue,s=e.multiple,m=e.defaultActiveFirstOption,O=e.height,w=e.itemHeight,x=e.notFoundContent,j=e.open,E=e.menuItemSelectedIcon,S=e.virtual,_=e.onSelect,C=e.onToggleOpen,P=e.onActiveValue,k=e.onScroll,M=e.onMouseEnter,N="".concat(n,"-item"),T=Object(v.a)((function(){return o}),[j,o],(function(e,t){return t[0]&&e[1]!==t[1]})),A=u.useRef(null),R=function(e){e.preventDefault()},D=function(e){A.current&&A.current.scrollTo({index:e})},I=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=T.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=T[o],a=i.group,c=i.data;if(!a&&!c.disabled)return o}return-1},L=u.useState((function(){return I(0)})),F=Object(p.a)(L,2),z=F[0],B=F[1],H=function(e){B(e);var t=T[e];t?P(t.data.value,e):P(null,-1)};u.useEffect((function(){H(!1!==m?I(0):-1)}),[T.length,c]),u.useEffect((function(){var e=setTimeout((function(){if(!s&&j&&1===a.size){var e=Array.from(a)[0],t=T.findIndex((function(t){return t.data.value===e}));H(t),D(t)}}));return function(){return clearTimeout(e)}}),[j]);var K=function(e){void 0!==e&&_(e,{selected:!a.has(e)}),s||C(!1)};if(u.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case d.a.UP:case d.a.DOWN:var n=0;if(t===d.a.UP?n=-1:t===d.a.DOWN&&(n=1),0!==n){var r=I(z+n,n);D(r),H(r)}break;case d.a.ENTER:var o=T[z];o&&!o.data.disabled?K(o.data.value):K(void 0),j&&e.preventDefault();break;case d.a.ESC:C(!1)}},onKeyUp:function(){},scrollTo:function(e){D(e)}}})),0===T.length)return u.createElement("div",{role:"listbox",id:"".concat(r,"_list"),className:"".concat(N,"-empty"),onMouseDown:R},x);function V(e){var t=T[e];if(!t)return null;var n=t.data||{},o=n.value,c=n.label,s=n.children,l=Object(h.a)(n,!0),f=i?s:c;return t?u.createElement("div",Object.assign({"aria-label":"string"==typeof f?f:null},l,{key:e,role:"option",id:"".concat(r,"_list_").concat(e),"aria-selected":a.has(o)}),o):null}return u.createElement(u.Fragment,null,u.createElement("div",{role:"listbox",id:"".concat(r,"_list"),style:{height:0,width:0,overflow:"hidden"}},V(z-1),V(z),V(z+1)),u.createElement(b.a,{itemKey:"key",ref:A,data:T,height:O,itemHeight:w,fullHeight:!1,onMouseDown:R,onScroll:k,virtual:S,onMouseEnter:M},(function(e,t){var n,r=e.group,o=e.groupOption,c=e.data,s=c.label,p=c.key;if(r)return u.createElement("div",{className:y()(N,"".concat(N,"-group"))},void 0!==s?s:p);var d=c.disabled,h=c.value,v=c.title,m=c.children,b=c.style,O=c.className,w=Object(f.a)(c,["disabled","value","title","children","style","className"]),x=a.has(h),j="".concat(N,"-option"),S=y()(N,j,O,(n={},Object(l.a)(n,"".concat(j,"-grouped"),o),Object(l.a)(n,"".concat(j,"-active"),z===t&&!d),Object(l.a)(n,"".concat(j,"-disabled"),d),Object(l.a)(n,"".concat(j,"-selected"),x),n)),_=i?m:s,C=!E||"function"==typeof E||x;return u.createElement("div",Object.assign({},w,{"aria-selected":x,className:S,title:v,onMouseMove:function(){z===t||d||H(t)},onClick:function(){d||K(h)},style:b}),u.createElement("div",{className:"".concat(j,"-content")},_||h),u.isValidElement(E)||x,C&&u.createElement(g.a,{className:"".concat(N,"-option-state"),customizeIcon:E,customizeIconProps:{isSelected:x}},x?"✓":null))})))}));O.displayName="OptionList";var w=O,x=function(){return null};x.isSelectOption=!0;var j=x,E=function(){return null};E.isSelectOptGroup=!0;var S=E,_=n(210);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){Object(l.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e){var t=e.key,n=e.props,r=n.children,o=n.value;return P({key:t,value:void 0!==o?o:t,children:r},Object(f.a)(n,["children","value"]))}function M(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(_.a)(e).map((function(e,n){if(!u.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,a=i.children,c=Object(f.a)(i,["children"]);return t||!r?k(e):P(P({key:"__RC_SELECT_GRP__".concat(null===o?n:o,"__"),label:o},c),{},{options:M(a)})})).filter((function(e){return e}))}var N=n(515),T=n(1027),A=n(75),R=n(62),D=n(275);var I=function(e){var t=e.mode,n=e.options,r=e.children,o=e.backfill,i=e.allowClear,a=e.placeholder,c=e.getInputElement,u=e.showSearch,l=e.onSearch,f=e.defaultOpen,p=e.autoFocus,d=e.labelInValue,h=e.value,v=e.inputValue,m=e.optionLabelProp,y="multiple"===t||"tags"===t,b=void 0!==u?u:y||"combobox"===t,g=n||M(r);if(Object(R.a)("tags"!==t||g.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),"tags"===t||"combobox"===t){var O=g.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)}));Object(R.a)(!O,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(R.a)("combobox"!==t||!m,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(R.a)("combobox"===t||!o,"`backfill` only works with `combobox` mode."),Object(R.a)("combobox"===t||!c,"`getInputElement` only work with `combobox` mode."),Object(R.b)("combobox"!==t||!c||!i||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),l&&!b&&"combobox"!==t&&"tags"!==t&&Object(R.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(R.b)(!f||p,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=h){var w=Object(D.d)(h);Object(R.a)(!d||w.every((function(e){return"object"===Object(A.a)(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(R.a)(!y||Array.isArray(h),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var x=null;Object(_.a)(r).some((function(e){if(!s.a.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!Object(_.a)(e.props.children).every((function(t){return!(s.a.isValidElement(t)&&e.type&&!t.type.isSelectOption)||(x=t.type,!1)})):(x=t,!0))})),x&&Object(R.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(x.displayName||x.name||x,"`.")),Object(R.a)(void 0===v,"`inputValue` is deprecated, please use `searchValue` instead.")}};function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}var F=Object(T.a)({prefixCls:"rc-select",components:{optionList:w},convertChildrenToData:M,flattenOptions:N.d,getLabeledValue:N.e,filterOptions:N.b,isValueDisabled:N.g,findValueOption:N.c,warningProps:I,fillOptionsWithMissingValue:N.a}),z=function(e){Object(i.a)(n,e);var t=L(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).selectRef=s.a.createRef(),e.focus=function(){e.selectRef.current.focus()},e.blur=function(){e.selectRef.current.blur()},e}return Object(o.a)(n,[{key:"render",value:function(){return s.a.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),n}(s.a.Component);z.Option=j,z.OptGroup=S;var B=z;t.default=B},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(4),o=n(65),i=n(60),a=n(37),c=n(36),u=n(106),s={};function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null,r=null;return Object(o.a)(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&Object(i.a)(e[0])&&(e=e[0]),Object(u.a)(e,r).lift(new f(n))}var f=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new p(e,this.resultSelector))},e}(),p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.__extends(t,e),t.prototype._next=function(e){this.values.push(s),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(Object(c.a)(this,r,r,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,o){var i=this.values,a=i[n],c=this.toRespond?a===s?--this.toRespond:this.toRespond:0;i[n]=t,0===c&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(a.a)},function(e,t,n){"use strict";var r=n(40),o=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.warning=function(e,t){(0,s.default)(e,"[@ant-design/icons] ".concat(t))},t.isIconDefinition=function(e){return"object"===(0,a.default)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,a.default)(e.icon)||"function"==typeof e.icon)},t.normalizeAttrs=d,t.generate=function e(t,n,r){if(!r)return u.default.createElement(t.tag,p({key:n},d(t.attrs)),(t.children||[]).map((function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})));return u.default.createElement(t.tag,p(p({key:n},d(t.attrs)),r),(t.children||[]).map((function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})))},t.getSecondaryColor=function(e){return(0,c.generate)(e)[0]},t.normalizeTwoToneColors=function(e){if(!e)return[];return Array.isArray(e)?e:[e]},t.useInsertStyles=t.iconStyles=t.svgBaseProps=void 0;var i=o(n(235)),a=o(n(590)),c=n(1064),u=r(n(0)),s=o(n(549)),l=n(1067);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t}),{})}t.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var h="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";t.iconStyles=h;var v=!1;t.useInsertStyles=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;(0,u.useEffect)((function(){v||((0,l.insertCss)(e,{prepend:!0}),v=!0)}),[])}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(941),o=n(807);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},,,,,,,function(e,t,n){"use strict";var r=n(40),o=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(235)),a=o(n(401)),c=o(n(590)),u=r(n(0)),s=o(n(5)),l=n(1270),f=n(655);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=u.forwardRef((function(e,t){var n,r,o,p,h=e.prefixCls,v=e.className,m=e.record,y=e.index,b=e.dataIndex,g=e.render,O=e.children,w=e.component,x=void 0===w?"td":w,j=e.colSpan,E=e.rowSpan,S=e.fixLeft,_=e.fixRight,C=e.firstFixLeft,P=e.lastFixLeft,k=e.firstFixRight,M=e.lastFixRight,N=e.appendNode,T=e.additionalProps,A=void 0===T?{}:T,R=e.ellipsis,D=e.align,I=e.rowType,L="".concat(h,"-cell");if(O)o=O;else{var F=(0,f.getPathValue)(m,b);if(o=F,g){var z=g(F,m,y);!(p=z)||"object"!==(0,c.default)(p)||Array.isArray(p)||u.isValidElement(p)?o=z:(o=z.children,r=z.props)}}"object"!==(0,c.default)(o)||Array.isArray(o)||u.isValidElement(o)||(o=null),R&&(P||k)&&(o=u.createElement("span",{className:"".concat(L,"-content")},o));var B=r||{},H=B.colSpan,K=B.rowSpan,V=B.style,U=B.className,W=(0,a.default)(B,["colSpan","rowSpan","style","className"]),q=void 0!==H?H:j,G=void 0!==K?K:E;if(0===q||0===G)return null;var $={},Y="number"==typeof S,X="number"==typeof _;Y&&($.position="sticky",$.left=S),X&&($.position="sticky",$.right=_);var Z,J={};D&&(J.textAlign=D);var Q=!0===R?{showTitle:!0}:R;Q&&(Q.showTitle||"header"===I)&&("string"==typeof o||"number"==typeof o?Z=o.toString():u.isValidElement(o)&&"string"==typeof o.props.children&&(Z=o.props.children));var ee,te=d(d(d({title:Z},W),A),{},{colSpan:q&&1!==q?q:null,rowSpan:G&&1!==G?G:null,className:(0,s.default)(L,v,(n={},(0,i.default)(n,"".concat(L,"-fix-left"),Y),(0,i.default)(n,"".concat(L,"-fix-left-first"),C),(0,i.default)(n,"".concat(L,"-fix-left-last"),P),(0,i.default)(n,"".concat(L,"-fix-right"),X),(0,i.default)(n,"".concat(L,"-fix-right-first"),k),(0,i.default)(n,"".concat(L,"-fix-right-last"),M),(0,i.default)(n,"".concat(L,"-ellipsis"),R),(0,i.default)(n,"".concat(L,"-with-append"),N),n),A.className,U),style:d(d(d(d({},A.style),J),$),V),ref:(ee=x,"string"==typeof ee||(0,l.supportRef)(ee)?t:null)});return u.createElement(x,Object.assign({},te),N,o)}));h.displayName="Cell";var v=u.memo(h,(function(e,t){return!!t.shouldCellUpdate&&!t.shouldCellUpdate(t.record,e.record)}));t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tupleNum=t.tuple=void 0;t.tuple=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t};t.tupleNum=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(4),o=n(95),i=n(8),a=n(7),c=n(14);function u(){return function(e){return e.lift(new s(e))}}var s=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new l(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.__extends(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(a.a),f=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new c.a).add(this.source.subscribe(new d(this.getSubject(),this))),e.closed&&(this._connection=null,e=c.a.EMPTY)),e},t.prototype.refCount=function(){return u()(this)},t}(i.a),p=function(){var e=f.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),d=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.__extends(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(o.b);a.a;var h=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(e);return o.add(t.subscribe(r)),o},e}();function v(){return new o.a}function m(){return function(e){return u()((t=v,function(e){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return e.lift(new h(r,n));var o=Object.create(e,p);return o.source=e,o.subjectFactory=r,o})(e));var t,n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),o=n(7);function i(){}var a=n(46);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.nextOrObserver,this.error,this.complete))},e}(),s=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},,,,,,,function(e,t,n){"use strict";t.a=function(e){return null}},function(e,t,n){"use strict";t.a=function(e){return null}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1047))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1051))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(931))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(6),o=n(45),i=n(48),a=n(54),c=n(53),u=n(25),s=n(0),l=n.n(s),f=n(21),p=n.n(f),d=n(5),h=n.n(d);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var m=function(e){Object(a.a)(n,e);var t=v(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props.onClose;n&&n()},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.update)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.className,i=t.closable,a=t.closeIcon,c=t.style,u=t.onClick,s=t.children,f=t.holder,d="".concat(n,"-notice"),v=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),m=l.a.createElement("div",Object.assign({className:h()(d,o,Object(r.a)({},"".concat(d,"-closable"),i)),style:c,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:u},v),l.a.createElement("div",{className:"".concat(d,"-content")},s),i?l.a.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(d,"-close")},a||l.a.createElement("span",{className:"".concat(d,"-close-x")})):null);return f?p.a.createPortal(m,f):m}}]),n}(s.Component);m.defaultProps={onClose:function(){},duration:1.5,style:{right:"50%"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(32),o=n(28),i=n(0),a=n(764);function c(e){var t=i.useRef({}),n=i.useState([]),c=Object(o.a)(n,2),u=c[0],s=c[1];return[function(n){e.add(n,(function(e,n){var o=n.key;if(e&&!t.current[o]){var c=i.createElement(a.a,Object.assign({},n,{holder:e}));t.current[o]=c,s((function(e){return[].concat(Object(r.a)(e),[c])}))}}))},i.createElement(i.Fragment,null,u)]}},function(e,t,n){"use strict";t.a={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"}},function(e,t,n){"use strict";var r=n(0),o=Object(r.createContext)(void 0);t.a=o},,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),o=n.n(r),i=n(21),a=n.n(i);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(i,e);var t,n,r,o=f(i);function i(){return u(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"componentDidMount",value:function(){this.createContainer()}},{key:"componentDidUpdate",value:function(e){var t=this.props.didUpdate;t&&t(e)}},{key:"componentWillUnmount",value:function(){this.removeContainer()}},{key:"createContainer",value:function(){this._container=this.props.getContainer(),this.forceUpdate()}},{key:"removeContainer",value:function(){this._container&&this._container.parentNode.removeChild(this._container)}},{key:"render",value:function(){return this._container?a.a.createPortal(this.props.children,this._container):null}}])&&s(t.prototype,n),r&&s(t,r),i}(o.a.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={adjustX:1,adjustY:1},o=[0,0],i={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:o}}},function(e,t,n){"use strict";var r;function o(e){if("undefined"==typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top=0,o.left=0,o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),r=i-a}return r}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1158))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},function(e,t,n){"use strict";var r=n(0),o=Object(r.createContext)({});t.a=o},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(89),c=n(911),u=n.n(c),s=n(196),l=n(177),f=n(110);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=(Object(l.a)("small","default","large"),null);var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(l,e);var t,n,o,c=y(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=c.call(this,e)).debouncifyUpdateSpinning=function(e){var n=(e||t.props).delay;n&&(t.cancelExistingSpin(),t.updateSpinning=u()(t.originalUpdateSpinning,n))},t.updateSpinning=function(){var e=t.props.spinning;t.state.spinning!==e&&t.setState({spinning:e})},t.renderSpin=function(e){var n,o=e.getPrefixCls,c=e.direction,u=t.props,s=u.prefixCls,l=u.className,p=u.size,v=u.tip,m=u.wrapperClassName,y=u.style,b=O(u,["prefixCls","className","size","tip","wrapperClassName","style"]),g=t.state.spinning,x=o("spin",s),j=i()(x,(h(n={},"".concat(x,"-sm"),"small"===p),h(n,"".concat(x,"-lg"),"large"===p),h(n,"".concat(x,"-spinning"),g),h(n,"".concat(x,"-show-text"),!!v),h(n,"".concat(x,"-rtl"),"rtl"===c),n),l),E=Object(a.default)(b,["spinning","delay","indicator"]),S=r.createElement("div",d({},E,{style:y,className:j}),function(e,t){var n=t.indicator,o="".concat(e,"-dot");return null===n?null:Object(f.b)(n)?Object(f.a)(n,{className:i()(n.props.className,o)}):Object(f.b)(w)?Object(f.a)(w,{className:i()(w.props.className,o)}):r.createElement("span",{className:i()(o,"".concat(e,"-dot-spin"))},r.createElement("i",{className:"".concat(e,"-dot-item")}),r.createElement("i",{className:"".concat(e,"-dot-item")}),r.createElement("i",{className:"".concat(e,"-dot-item")}),r.createElement("i",{className:"".concat(e,"-dot-item")}))}(x,t.props),v?r.createElement("div",{className:"".concat(x,"-text")},v):null);if(t.isNestedPattern()){var _=i()("".concat(x,"-container"),h({},"".concat(x,"-blur"),g));return r.createElement("div",d({},E,{className:i()("".concat(x,"-nested-loading"),m)}),g&&r.createElement("div",{key:"loading"},S),r.createElement("div",{className:_,key:"container"},t.props.children))}return S};var n=e.spinning,o=function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,e.delay);return t.state={spinning:n&&!o},t.originalUpdateSpinning=t.updateSpinning,t.debouncifyUpdateSpinning(e),t}return t=l,o=[{key:"setDefaultIndicator",value:function(e){w=e}}],(n=[{key:"componentDidMount",value:function(){this.updateSpinning()}},{key:"componentDidUpdate",value:function(){this.debouncifyUpdateSpinning(),this.updateSpinning()}},{key:"componentWillUnmount",value:function(){this.cancelExistingSpin()}},{key:"cancelExistingSpin",value:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()}},{key:"isNestedPattern",value:function(){return!(!this.props||!this.props.children)}},{key:"render",value:function(){return r.createElement(s.a,null,this.renderSpin)}}])&&v(t.prototype,n),o&&v(t,o),l}(r.Component);x.defaultProps={spinning:!0,size:"default",wrapperClassName:""},t.a=x},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1189))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r=n(606),o=n(913),i=n(912),a=r.a;a.Button=i.a,a.Group=o.a,t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(0);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){"function"==typeof e?e(t):"object"===o(e)&&e&&"current"in e&&(e.current=t)}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){i(t,e)}))}}function c(e){var t=r.useRef();return r.useEffect((function(){t.current=e}),[e]),t.current}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1198))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},,function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1246))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(32),o=n(6),i=n(76),a=n(0),c=(n(62),n(210)),u=n(507);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){return Object(c.a)(e).filter((function(e){return a.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=l({key:t},Object(i.a)(n,["children"]));return r&&(o.children=f(r)),o}))}function p(e){return e.reduce((function(e,t){var n=t.fixed,o=!0===n?"left":n,i=t.children;return i&&i.length>0?[].concat(Object(r.a)(e),Object(r.a)(p(i).map((function(e){return l({fixed:o},e)})))):[].concat(Object(r.a)(e),[l(l({},t),{},{fixed:o})])}),[])}t.b=function(e,t){var n=e.prefixCls,r=e.columns,c=e.children,s=e.expandable,d=e.expandedKeys,h=e.getRowKey,v=e.onTriggerExpand,m=e.expandIcon,y=e.rowExpandable,b=e.expandIconColumnIndex,g=e.direction,O=e.expandRowByClick,w=a.useMemo((function(){return r||f(c)}),[r,c]),x=a.useMemo((function(){if(s){var e,t=b||0,r=w[t],i=(e={},Object(o.a)(e,u.a,{className:"".concat(n,"-expand-icon-col")}),Object(o.a)(e,"title",""),Object(o.a)(e,"fixed",r?r.fixed:null),Object(o.a)(e,"className","".concat(n,"-row-expand-icon-cell")),Object(o.a)(e,"render",(function(e,t,r){var o=h(t,r),i=d.has(o),c=!y||y(t),u=m({prefixCls:n,expanded:i,expandable:c,record:t,onExpand:v});return O?a.createElement("span",{onClick:function(e){return e.stopPropagation()}},u):u})),e),c=w.slice();return t>=0&&c.splice(t,0,i),c}return w}),[s,w,h,d,m,g]),j=a.useMemo((function(){var e=x;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,x,g]),E=a.useMemo((function(){return"rtl"===g?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),l({fixed:n},Object(i.a)(e,["fixed"]))}))}(p(j)):p(j)}),[j,g]);return[j,E]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return X}));var r=n(6),o=n(32),i=n(75),a=n(28),c=n(0),u=n(5),s=n.n(u),l=n(239),f=n.n(l),p=n(62),d=n(253),h=n(771),v=n(759),m=n(760),y=n(76),b=n(559),g=n(191);function O(e,t,n,r,o){var i,a,c=n[e]||{},u=n[t]||{};"left"===c.fixed?i=r.left[e]:"right"===u.fixed&&(a=r.right[t]);var s=!1,l=!1,f=!1,p=!1,d=n[t+1],h=n[e-1];if("rtl"===o){if(void 0!==i)p=!(h&&"left"===h.fixed);else if(void 0!==a){f=!(d&&"right"===d.fixed)}}else if(void 0!==i){s=!(d&&"left"===d.fixed)}else if(void 0!==a){l=!(h&&"right"===h.fixed)}return{fixLeft:i,fixRight:a,lastFixLeft:s,firstFixRight:l,lastFixRight:f,firstFixLeft:p}}var w=n(255);function x(e){var t,n=e.cells,r=e.stickyOffsets,o=e.flattenColumns,i=e.rowComponent,a=e.cellComponent,u=e.onHeaderRow,s=e.index,l=c.useContext(g.a),f=l.prefixCls,p=l.direction;u&&(t=u(n.map((function(e){return e.column})),s));var d=Object(w.a)(n.map((function(e){return e.column})));return c.createElement(i,Object.assign({},t),n.map((function(e,t){var n,i=e.column,u=O(e.colStart,e.colEnd,o,r,p);return i&&i.onHeaderCell&&(n=e.column.onHeaderCell(i)),c.createElement(b.a,Object.assign({},e,{ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:f,key:d[t]},u,{additionalProps:n,rowType:"header"}))})))}x.displayName="HeaderRow";var j=x;var E=function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,i=c.useContext(g.a),a=i.prefixCls,u=i.getComponent,s=c.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r,a=n.map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,c=n.children;return c&&c.length>0&&(a=e(c,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}));return a}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o<n;o+=1)r(o);return t}(n)}),[n]),l=u(["header","wrapper"],"thead"),f=u(["header","row"],"tr"),p=u(["header","cell"],"th");return c.createElement(l,{className:"".concat(a,"-thead")},s.map((function(e,n){return c.createElement(j,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:f,cellComponent:p,onHeaderRow:o,index:n})})))},S=n(507);var _=function(e){for(var t=e.colWidths,n=e.columns,r=[],o=!1,i=(e.columCount||n.length)-1;i>=0;i-=1){var a=t[i],u=n&&n[i],s=u&&u[S.a];(a||s||o)&&(r.unshift(c.createElement("col",Object.assign({key:i,style:{width:a,minWidth:a}},s))),o=!0)}return c.createElement("colgroup",null,r)};function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=function(e){for(var t=e.columns,n=e.flattenColumns,r=e.colWidths,i=e.columCount,a=e.stickyOffsets,u=e.direction,s=Object(y.a)(e,["columns","flattenColumns","colWidths","columCount","stickyOffsets","direction"]),l=c.useContext(g.a),f=l.prefixCls,p=l.scrollbarSize,d=n[n.length-1],h={fixed:d?d.fixed:null,onHeaderCell:function(){return{className:"".concat(f,"-cell-scrollbar")}}},v=c.useMemo((function(){return p?[].concat(Object(o.a)(t),[h]):t}),[p,t]),m=c.useMemo((function(){return p?[].concat(Object(o.a)(n),[h]):n}),[p,n]),b=c.useMemo((function(){var e=a.right,t=a.left;return P(P({},a),{},{left:"rtl"===u?[].concat(Object(o.a)(t.map((function(e){return e+p}))),[0]):t,right:"rtl"===u?e:[].concat(Object(o.a)(e.map((function(e){return e+p}))),[0])})}),[p,a]),O=[],w=0;w<i;w+=1)O[w]=r[w];var x=!r.every((function(e){return!e}));return c.createElement("table",{style:{tableLayout:"fixed",visibility:x?null:"hidden"}},c.createElement(_,{colWidths:[].concat(Object(o.a)(r),[p]),columCount:i+1,columns:m}),c.createElement(E,Object.assign({},s,{stickyOffsets:b,columns:v,flattenColumns:m})))},M=c.createContext(null);var N=function(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.fixHeader,a=e.fixColumn,u=e.horizonScroll,s=e.className,l=e.expanded,f=e.componentWidth,p=e.colSpan,d=c.useContext(g.a).scrollbarSize;return c.useMemo((function(){var e=n;return a&&(e=c.createElement("div",{style:{width:f-(i?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},e)),c.createElement(r,{className:s,style:{display:l?null:"none"}},c.createElement(b.a,{component:o,prefixCls:t,colSpan:p},e))}),[n,r,i,u,s,l,f,p,d])};function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e){var t=e.className,n=e.style,r=e.record,o=e.index,i=e.rowKey,u=e.getRowKey,l=e.rowExpandable,f=e.expandedKeys,p=e.onRow,d=e.indent,h=void 0===d?0:d,v=e.rowComponent,m=e.cellComponent,y=e.childrenColumnName,O=c.useContext(g.a),x=O.prefixCls,j=O.fixedInfoList,E=c.useContext(M),S=E.fixHeader,_=E.fixColumn,C=E.horizonScroll,P=E.componentWidth,k=E.flattenColumns,T=E.expandableType,D=E.expandRowByClick,I=E.onTriggerExpand,L=E.rowClassName,F=E.expandedRowClassName,z=E.indentSize,B=E.expandIcon,H=E.expandedRowRender,K=E.expandIconColumnIndex,V=c.useState(!1),U=Object(a.a)(V,2),W=U[0],q=U[1],G=f&&f.has(e.recordKey);c.useEffect((function(){G&&q(!0)}),[G]);var $,Y="row"===T&&(!l||l(r)),X="nest"===T,Z=y&&r&&r[y],J=Y||X;p&&($=p(r,o));var Q;"string"==typeof L?Q=L:"function"==typeof L&&(Q=L(r,o,h));var ee,te,ne=Object(w.a)(k),re=c.createElement(v,Object.assign({},$,{"data-row-key":i,className:s()(t,"".concat(x,"-row"),"".concat(x,"-row-level-").concat(h),Q,$&&$.className),style:A(A({},n),$?$.style:null),onClick:function(e){if(D&&J&&I(r,e),$&&$.onClick){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(t=$).onClick.apply(t,[e].concat(o))}}}),k.map((function(e,t){var n,i,a=e.render,u=e.dataIndex,s=e.className,l=ne[t],f=j[t];return t===(K||0)&&X&&(n=c.createElement(c.Fragment,null,c.createElement("span",{style:{paddingLeft:"".concat(z*h,"px")},className:"".concat(x,"-row-indent indent-level-").concat(h)}),B({prefixCls:x,expanded:G,expandable:Z,record:r,onExpand:I}))),e.onCell&&(i=e.onCell(r,o)),c.createElement(b.a,Object.assign({className:s,ellipsis:e.ellipsis,align:e.align,component:m,prefixCls:x,key:l,record:r,index:o,dataIndex:u,render:a,shouldCellUpdate:e.shouldCellUpdate},f,{appendNode:n,additionalProps:i}))})));if(Y&&(W||G)){var oe=H(r,o,h+1,G),ie=F&&F(r,o,h);ee=c.createElement(N,{expanded:G,className:s()("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(h+1),ie),prefixCls:x,fixHeader:S,fixColumn:_,horizonScroll:C,component:v,componentWidth:P,cellComponent:m,colSpan:k.length},oe)}return Z&&G&&(te=(r[y]||[]).map((function(t,n){var r=u(t,n);return c.createElement(R,Object.assign({},e,{key:r,rowKey:r,record:t,recordKey:r,index:n,indent:h+1}))}))),c.createElement(c.Fragment,null,re,ee,te)}R.displayName="BodyRow";var D=R,I=c.createContext(null);var L=c.memo((function(e){var t=e.data,n=e.getRowKey,r=e.measureColumnWidth,o=e.expandedKeys,i=e.onRow,a=e.rowExpandable,u=e.emptyNode,s=e.childrenColumnName,l=c.useContext(I).onColumnResize,f=c.useContext(g.a),p=f.prefixCls,h=f.getComponent,v=c.useContext(M),m=v.fixHeader,y=v.horizonScroll,b=v.flattenColumns,O=v.componentWidth;return c.useMemo((function(){var e,f=h(["body","wrapper"],"tbody"),v=h(["body","row"],"tr"),g=h(["body","cell"],"td");e=t.length?t.map((function(e,t){var r=n(e,t);return c.createElement(D,{key:r,rowKey:r,record:e,recordKey:r,index:t,rowComponent:v,cellComponent:g,expandedKeys:o,onRow:i,getRowKey:n,rowExpandable:a,childrenColumnName:s})})):c.createElement(N,{expanded:!0,className:"".concat(p,"-placeholder"),prefixCls:p,fixHeader:m,fixColumn:y,horizonScroll:y,component:v,componentWidth:O,cellComponent:g,colSpan:b.length},u);var x=Object(w.a)(b);return c.createElement(f,{className:"".concat(p,"-tbody")},r&&c.createElement("tr",{"aria-hidden":"true",className:"".concat(p,"-measure-row"),style:{height:0}},x.map((function(e){return c.createElement(d.default,{key:e,onResize:function(t){var n=t.offsetWidth;l(e,n)}},c.createElement("td",{style:{padding:0,border:0,height:0}}))}))),e)}),[t,p,i,r,o,n,h,O,u,b])}));L.displayName="Body";var F=L,z=n(783),B=n(109),H=n.n(B);var K=function(e,t,n){return Object(c.useMemo)((function(){for(var r=[],o=[],i=0,a=0,c=0;c<t;c+=1)if("rtl"===n){o[c]=a,a+=e[c]||0;var u=t-c-1;r[u]=i,i+=e[u]||0}else{r[c]=i,i+=e[c]||0;var s=t-c-1;o[s]=a,a+=e[s]||0}return{left:r,right:o}}),[e,t,n])};var V=function(e){var t=e.className,n=e.children;return c.createElement("div",{className:t},n)},U=n(672);function W(e){var t,n=e.prefixCls,o=e.record,i=e.onExpand,a=e.expanded,u=e.expandable,l="".concat(n,"-row-expand-icon");if(!u)return c.createElement("span",{className:s()(l,"".concat(n,"-row-spaced"))});return c.createElement("span",{className:s()(l,(t={},Object(r.a)(t,"".concat(n,"-row-expanded"),a),Object(r.a)(t,"".concat(n,"-row-collapsed"),!a),t)),onClick:function(e){i(o,e),e.stopPropagation()}})}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $=[],Y={},X="rc-table-internal-hook",Z=c.memo((function(e){return e.children}),(function(e,t){return!!f()(e.props,t.props)&&(e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight)}));function J(e){var t,n=e.prefixCls,u=e.className,l=e.rowClassName,f=e.style,v=e.data,m=e.rowKey,y=e.scroll,b=e.tableLayout,x=e.direction,j=e.title,C=e.footer,P=e.summary,N=e.id,T=e.showHeader,A=e.components,R=e.emptyText,D=e.onRow,L=e.onHeaderRow,B=e.internalHooks,q=e.transformColumns,J=e.internalRefs,Q=v||$,ee=!!Q.length,te=c.useState(0),ne=Object(a.a)(te,2),re=ne[0],oe=ne[1];c.useEffect((function(){oe(Object(h.a)())}));var ie,ae,ce,ue,se,le,fe,pe,de,he=c.useMemo((function(){return Object(w.c)(A,{})}),[A]),ve=c.useCallback((function(e,t){return Object(w.b)(he,e)||t}),[he]),me=c.useMemo((function(){return"function"==typeof m?m:function(e){return e&&e[m]}}),[m]),ye=Object(S.c)(e),be=ye.expandIcon,ge=ye.expandedRowKeys,Oe=ye.defaultExpandedRowKeys,we=ye.defaultExpandAllRows,xe=ye.expandedRowRender,je=ye.onExpand,Ee=ye.onExpandedRowsChange,Se=ye.expandRowByClick,_e=ye.rowExpandable,Ce=ye.expandIconColumnIndex,Pe=ye.expandedRowClassName,ke=ye.childrenColumnName,Me=ye.indentSize,Ne=be||W,Te=ke||"children",Ae=c.useMemo((function(){return xe?"row":!!(e.expandable&&B===X&&e.expandable.__PARENT_RENDER_ICON__||Q.some((function(e){return e&&"object"===Object(i.a)(e)&&Te in e})))&&"nest"}),[!!xe,Q]),Re=c.useState((function(){return Oe||(we?function(e,t,n){var r=[];return function e(o){(o||[]).forEach((function(o,i){r.push(t(o,i)),e(o[n])}))}(e),r}(Q,me,Te):[])})),De=Object(a.a)(Re,2),Ie=De[0],Le=De[1],Fe=c.useMemo((function(){return new Set(ge||Ie||[])}),[ge,Ie]),ze=c.useCallback((function(e){var t,n=me(e,Q.indexOf(e)),r=Fe.has(n);r?(Fe.delete(n),t=Object(o.a)(Fe)):t=[].concat(Object(o.a)(Fe),[n]),Le(t),je&&je(!r,e),Ee&&Ee(t)}),[me,Fe,Q,je,Ee]),Be=c.useState(0),He=Object(a.a)(Be,2),Ke=He[0],Ve=He[1],Ue=Object(z.b)(G(G(G({},e),ye),{},{expandable:!!xe,expandedKeys:Fe,getRowKey:me,onTriggerExpand:ze,expandIcon:Ne,expandIconColumnIndex:Ce,direction:x}),B===X?q:null),We=Object(a.a)(Ue,2),qe=We[0],Ge=We[1],$e=c.useMemo((function(){return{columns:qe,flattenColumns:Ge}}),[qe,Ge]),Ye=c.useRef(),Xe=c.useRef(),Ze=c.useRef(),Je=c.useState(!1),Qe=Object(a.a)(Je,2),et=Qe[0],tt=Qe[1],nt=c.useState(!1),rt=Object(a.a)(nt,2),ot=rt[0],it=rt[1],at=(ie=new Map,ae=Object(c.useRef)(ie),ce=Object(c.useState)({}),ue=Object(a.a)(ce,2)[1],se=Object(c.useRef)(null),le=Object(c.useRef)([]),Object(c.useEffect)((function(){return function(){H.a.cancel(se.current)}}),[]),[ae.current,function(e){null===se.current&&(le.current=[],se.current=H()((function(){le.current.forEach((function(e){ae.current=e(ae.current)})),se.current=null,ue({})}))),le.current.push(e)}]),ct=Object(a.a)(at,2),ut=ct[0],st=ct[1],lt=Object(w.a)(Ge).map((function(e){return ut.get(e)})),ft=c.useMemo((function(){return lt}),[lt.join("_")]),pt=K(ft,Ge.length,x),dt=ee&&y&&Object(w.d)(y.y),ht=y&&Object(w.d)(y.x),vt=ht&&Ge.some((function(e){return e.fixed}));dt&&(pe={overflowY:"scroll",maxHeight:y.y}),ht&&(fe={overflowX:"auto"},dt||(pe={overflowY:"hidden"}),de={width:!0===y.x?"auto":y.x,minWidth:"100%"});var mt=c.useCallback((function(e,t){st((function(n){var r=new Map(n);return r.set(e,t),r}))}),[]),yt=function(e){var t=Object(c.useRef)(e),n=Object(c.useRef)(null);function r(){window.clearTimeout(n.current)}return Object(c.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=null}),100)},function(){return t.current}]}(null),bt=Object(a.a)(yt,2),gt=bt[0],Ot=bt[1];function wt(e,t){t&&t.scrollLeft!==e&&(t.scrollLeft=e)}var xt=function(e){var t=e.currentTarget,n=e.scrollLeft,r="number"==typeof n?n:t.scrollLeft,o=t||Y;if(Ot()&&Ot()!==o||(gt(o),wt(r,Xe.current),wt(r,Ze.current)),t){var i=t.scrollWidth,a=t.clientWidth;tt(r>0),it(r<i-a)}},jt=function(){Ze.current&&xt({currentTarget:Ze.current})};c.useEffect((function(){return jt}),[]),c.useEffect((function(){ht&&jt()}),[ht]),c.useEffect((function(){B===X&&J&&(J.body.current=Ze.current)}));var Et,St,_t=ve(["table"],"table"),Ct=c.useMemo((function(){return b||(vt?"max-content"===y.x?"auto":"fixed":dt||Ge.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[dt,vt,Ge,b]),Pt={colWidths:ft,columCount:Ge.length,stickyOffsets:pt,onHeaderRow:L},kt=c.useMemo((function(){return ee?null:"function"==typeof R?R():R}),[ee,R]),Mt=c.createElement(F,{data:Q,measureColumnWidth:dt||ht,expandedKeys:Fe,rowExpandable:_e,getRowKey:me,onRow:D,emptyNode:kt,childrenColumnName:Te}),Nt=c.createElement(_,{colWidths:Ge.map((function(e){return e.width})),columns:Ge}),Tt=P&&c.createElement(U.b,null,P(Q)),At=ve(["body"]);dt?("function"==typeof At?(St=At(Q,{scrollbarSize:re,ref:Ze,onScroll:xt}),Pt.colWidths=Ge.map((function(e,t){var n=e.width,r=t===qe.length-1?n-re:n;return"number"!=typeof r||Number.isNaN(r)?(Object(p.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0):r}))):St=c.createElement("div",{style:G(G({},fe),pe),onScroll:xt,ref:Ze,className:s()("".concat(n,"-body"))},c.createElement(_t,{style:G(G({},de),{},{tableLayout:Ct})},Nt,Mt,Tt)),Et=c.createElement(c.Fragment,null,!1!==T&&c.createElement("div",{style:{overflow:"hidden"},onScroll:xt,ref:Xe,className:s()("".concat(n,"-header"))},c.createElement(k,Object.assign({},Pt,$e,{direction:x}))),St)):Et=c.createElement("div",{style:G(G({},fe),pe),className:s()("".concat(n,"-content")),onScroll:xt,ref:Ze},c.createElement(_t,{style:G(G({},de),{},{tableLayout:Ct})},Nt,!1!==T&&c.createElement(E,Object.assign({},Pt,$e)),Mt,Tt));var Rt=Object(S.b)(e),Dt=c.createElement("div",Object.assign({className:s()(n,u,(t={},Object(r.a)(t,"".concat(n,"-rtl"),"rtl"===x),Object(r.a)(t,"".concat(n,"-ping-left"),et),Object(r.a)(t,"".concat(n,"-ping-right"),ot),Object(r.a)(t,"".concat(n,"-layout-fixed"),"fixed"===b),Object(r.a)(t,"".concat(n,"-fixed-header"),dt),Object(r.a)(t,"".concat(n,"-fixed-column"),vt),Object(r.a)(t,"".concat(n,"-scroll-horizontal"),ht),Object(r.a)(t,"".concat(n,"-has-fix-left"),Ge[0]&&Ge[0].fixed),Object(r.a)(t,"".concat(n,"-has-fix-right"),Ge[Ge.length-1]&&"right"===Ge[Ge.length-1].fixed),t)),style:f,id:N,ref:Ye},Rt),c.createElement(Z,{pingLeft:et,pingRight:ot,props:G(G({},e),{},{stickyOffsets:pt,mergedExpandedKeys:Fe})},j&&c.createElement(V,{className:"".concat(n,"-title")},j(Q)),c.createElement("div",{className:"".concat(n,"-container")},Et),C&&c.createElement(V,{className:"".concat(n,"-footer")},C(Q))));ht&&(Dt=c.createElement(d.default,{onResize:function(e){var t=e.width;jt(),Ve(Ye.current?Ye.current.offsetWidth:t)}},Dt));var It=c.useMemo((function(){return{prefixCls:n,getComponent:ve,scrollbarSize:re,direction:x,fixedInfoList:Ge.map((function(e,t){return O(t,t,Ge,pt,x)}))}}),[n,ve,re,x,Ge,pt,x]),Lt=c.useMemo((function(){return G(G({},$e),{},{tableLayout:Ct,rowClassName:l,expandedRowClassName:Pe,componentWidth:Ke,fixHeader:dt,fixColumn:vt,horizonScroll:ht,expandIcon:Ne,expandableType:Ae,expandRowByClick:Se,expandedRowRender:xe,onTriggerExpand:ze,expandIconColumnIndex:Ce,indentSize:Me})}),[$e,Ct,l,Pe,Ke,dt,vt,ht,Ne,Ae,Se,xe,ze,Ce,Me]),Ft=c.useMemo((function(){return{onColumnResize:mt}}),[mt]);return c.createElement(g.a.Provider,{value:It},c.createElement(M.Provider,{value:Lt},c.createElement(I.Provider,{value:Ft},Dt)))}J.Column=m.a,J.ColumnGroup=v.a,J.Summary=U.a,J.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};t.b=J},,function(e,t,n){"use strict";var r=n(0),o=n(917),i=n(766),a=n(5),c=n.n(a),u=n(599),s=n.n(u),l=n(403),f=n.n(l),p=n(909),d=n.n(p),h=n(910),v=n.n(h),m=n(58);function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var b=function(e){return r.createElement(m.a,y({size:"small"},e))};b.Option=m.a.Option;var g=b,O=n(296),w=n(196),x=n(628);function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},S=function(e){var t=e.prefixCls,n=e.selectPrefixCls,a=e.className,u=e.size,l=e.locale,p=E(e,["prefixCls","selectPrefixCls","className","size","locale"]),h=Object(x.a)().xs,y=r.useContext(w.b),b=y.getPrefixCls,S=y.direction,_=b("pagination",t),C=function(e){var t,i,y,O=j(j({},e),l),w="small"===u||!(!h||u||!p.responsive),x=b("select",n),E=c()(a,(t={mini:w},i="".concat(_,"-rtl"),y="rtl"===S,i in t?Object.defineProperty(t,i,{value:y,enumerable:!0,configurable:!0,writable:!0}):t[i]=y,t));return r.createElement(o.default,j({},p,{prefixCls:_,selectPrefixCls:x},function(){var e=r.createElement("span",{className:"".concat(_,"-item-ellipsis")},"•••"),t=r.createElement("button",{className:"".concat(_,"-item-link"),type:"button",tabIndex:-1},r.createElement(s.a,null)),n=r.createElement("button",{className:"".concat(_,"-item-link"),type:"button",tabIndex:-1},r.createElement(f.a,null)),o=r.createElement("a",{className:"".concat(_,"-item-link")},r.createElement("div",{className:"".concat(_,"-item-container")},r.createElement(d.a,{className:"".concat(_,"-item-link-icon")}),e)),i=r.createElement("a",{className:"".concat(_,"-item-link")},r.createElement("div",{className:"".concat(_,"-item-container")},r.createElement(v.a,{className:"".concat(_,"-item-link-icon")}),e));if("rtl"===S){var a=[n,t];t=a[0],n=a[1];var c=[i,o];o=c[0],i=c[1]}return{prevIcon:t,nextIcon:n,jumpPrevIcon:o,jumpNextIcon:i}}(),{className:E,selectComponentClass:w?g:m.a,locale:O}))};return r.createElement(O.a,{componentName:"Pagination",defaultLocale:i.a},C)};t.a=S},function(e,t,n){"use strict";var r=n(0),o=n(671),i=n(5),a=n.n(i),c=n(403),u=n.n(c),s=n(663),l=n.n(s),f=n(84),p=n(196);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},y=f.a.Group,b=function(e){var t=r.useContext(p.b),n=t.getPopupContainer,o=t.getPrefixCls,i=t.direction,c=e.prefixCls,u=e.type,s=e.disabled,v=e.onClick,b=e.htmlType,g=e.children,O=e.className,w=e.overlay,x=e.trigger,j=e.align,E=e.visible,S=e.onVisibleChange,C=e.placement,P=e.getPopupContainer,k=e.href,M=e.icon,N=void 0===M?r.createElement(l.a,null):M,T=e.title,A=e.buttonsRender,R=m(e,["prefixCls","type","disabled","onClick","htmlType","children","className","overlay","trigger","align","visible","onVisibleChange","placement","getPopupContainer","href","icon","title","buttonsRender"]),D=o("dropdown-button",c),I={align:j,overlay:w,disabled:s,trigger:s?[]:x,onVisibleChange:S,getPopupContainer:P||n};"visible"in e&&(I.visible=E),I.placement="placement"in e?C:"rtl"===i?"bottomLeft":"bottomRight";var L=h(A([r.createElement(f.a,{type:u,disabled:s,onClick:v,htmlType:b,href:k,title:T},g),r.createElement(f.a,{type:u,icon:N})]),2),F=L[0],z=L[1];return r.createElement(y,d({},R,{className:a()(D,O)}),F,r.createElement(_,I,z))};b.__ANT_BUTTON=!0,b.defaultProps={type:"default",buttonsRender:function(e){return e}};var g=b,O=n(91),w=n(177),x=n(110);function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(w.a)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight");var S=function(e){var t,n,i,c,s=r.useContext(p.b),l=s.getPopupContainer,f=s.getPrefixCls,d=s.direction,h=e.arrow,v=e.prefixCls,m=e.children,y=e.trigger,b=e.disabled,g=e.getPopupContainer,w=e.overlayClassName,S=f("dropdown",v),_=r.Children.only(m),C=Object(x.a)(_,{className:a()(_.props.className,"".concat(S,"-trigger"),E({},"".concat(S,"-rtl"),"rtl"===d)),disabled:b}),P=a()(w,E({},"".concat(S,"-rtl"),"rtl"===d)),k=b?[]:y;return k&&-1!==k.indexOf("contextMenu")&&(t=!0),r.createElement(o.default,j({arrow:h,alignPoint:t},e,{overlayClassName:P,prefixCls:S,getPopupContainer:g||l,transitionName:(n=e.placement,i=void 0===n?"":n,c=e.transitionName,void 0!==c?c:i.indexOf("top")>=0?"slide-down":"slide-up"),trigger:k,overlay:function(){return function(t){var n,o=e.overlay;n="function"==typeof o?o():o;var i=(n=r.Children.only("string"==typeof n?r.createElement("span",null,"overlayNode"):n)).props;Object(O.a)(!i.mode||"vertical"===i.mode,"Dropdown",'mode="'.concat(i.mode,"\" is not supported for Dropdown's Menu."));var a=i.selectable,c=void 0!==a&&a,s=i.focusable,l=void 0===s||s,f=r.createElement("span",{className:"".concat(t,"-menu-submenu-arrow")},r.createElement(u.a,{className:"".concat(t,"-menu-submenu-arrow-icon")}));return"string"==typeof n.type?n:Object(x.a)(n,{mode:"vertical",selectable:c,focusable:l,expandIcon:f})}(S)},placement:function(){var t=e.placement;return void 0!==t?t:"rtl"===d?"bottomRight":"bottomLeft"}()}),C)};S.Button=g,S.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var _=S;t.a=_},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(0),o=n(21),i=n(364),a=n(109),c=n.n(a),u=0,s={};function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=u++,r=t;function o(){(r-=1)<=0?(e(),delete s[n]):s[n]=c()(o)}return s[n]=c()(o),n}l.cancel=function(e){void 0!==e&&(c.a.cancel(s[e]),delete s[e])},l.ids=s;var f,p=n(196);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e){return!e||null===e.offsetParent}function x(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(u,e);var t,n,a,c=y(u);function u(){var e;return h(this,u),(e=c.apply(this,arguments)).animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){if(!(!t||w(t)||t.className.indexOf("-leave")>=0)){var r=e.props.insertExtraNode;e.extraNode=document.createElement("div");var o=g(e).extraNode,a=e.context.getPrefixCls;o.className="".concat(a(""),"-click-animating-node");var c=e.getAttributeName();t.setAttribute(c,"true"),f=f||document.createElement("style"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&x(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n&&(e.csp&&e.csp.nonce&&(f.nonce=e.csp.nonce),o.style.borderColor=n,f.innerHTML="\n [".concat(a(""),"-click-animating-without-extra-node='true']::after, .").concat(a(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),document.body.contains(f)||document.body.appendChild(f)),r&&t.appendChild(o),i.a.addStartEventListener(t,e.onTransitionStart),i.a.addEndEventListener(t,e.onTransitionEnd)}},e.onTransitionStart=function(t){if(!e.destroyed){var n=Object(o.findDOMNode)(g(e));t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!w(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),l.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=l((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;return e.csp=n,r},e}return t=u,(n=[{key:"componentDidMount",value:function(){var e=Object(o.findDOMNode)(this);e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){if(e&&e!==this.extraNode&&e instanceof Element){var t=this.props.insertExtraNode,n=this.getAttributeName();e.setAttribute(n,"false"),f&&(f.innerHTML=""),t&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),i.a.removeStartEventListener(e,this.onTransitionStart),i.a.removeEndEventListener(e,this.onTransitionEnd)}}},{key:"render",value:function(){return r.createElement(p.a,null,this.renderWave)}}])&&v(t.prototype,n),a&&v(t,a),u}(r.Component);j.contextType=p.b},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(62);function o(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function i(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function a(e,t,n,a){var c,u=[];c=a||i;var s=new Set(e.filter((function(e){var t=!!n[e];return t||u.push(e),t}))),l=new Map,f=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=l.get(r);o||(o=new Set,l.set(r,o)),o.add(t),f=Math.max(f,r)})),Object(r.a)(!u.length,"Tree missing follow keys: ".concat(u.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),!0===t?function(e,t,n,r){for(var i=new Set(e),a=new Set,c=0;c<=n;c+=1){(t.get(c)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,a=void 0===o?[]:o;i.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){i.add(e.key)}))}))}for(var u=new Set,s=n;s>=0;s-=1){(t.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!u.has(e.parent.key))if(r(e.parent.node))u.add(t.key);else{var o=!0,c=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);o&&!n&&(o=!1),c||!n&&!a.has(t)||(c=!0)})),o&&i.add(t.key),c&&a.add(t.key),u.add(t.key)}}))}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(o(a,i))}}(s,l,f,c):function(e,t,n,r,i){for(var a=new Set(e),c=new Set(t),u=0;u<=r;u+=1){(n.get(u)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,o=void 0===r?[]:r;a.has(t)||c.has(t)||i(n)||o.filter((function(e){return!i(e.node)})).forEach((function(e){a.delete(e.key)}))}))}c=new Set;for(var s=new Set,l=r;l>=0;l-=1){(n.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!i(n)&&e.parent&&!s.has(e.parent.key))if(i(e.parent.node))s.add(t.key);else{var r=!0,o=!1;(t.children||[]).filter((function(e){return!i(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);r&&!n&&(r=!1),o||!n&&!c.has(t)||(o=!0)})),r||a.delete(t.key),o&&c.add(t.key),s.add(t.key)}}))}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(o(c,a))}}(s,t.halfCheckedKeys,l,f,c)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return ho})),n.d(t,"b",(function(){return Yo})),n.d(t,"c",(function(){return Qo}));var r=n(0),o=n.n(r),i=n(135),a=n(18),c=n(104),u=(n(26),o.a.createContext(null));var s=function(e){e()},l={notify:function(){}};function f(){var e=s,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var p=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=l,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=f())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=l)},e}();var d=function(e){var t=e.store,n=e.context,i=e.children,a=Object(r.useMemo)((function(){var e=new p(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),c=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=a.subscription;return e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,c]);var s=n||u;return o.a.createElement(s.Provider,{value:a},i)},h=n(61),v=n(176),m=n.n(v),y=n(158),b="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,g=[],O=[null,null];function w(e,t){var n=e[1];return[t.payload,n+1]}function x(e,t,n){b((function(){return e.apply(void 0,t)}),n)}function j(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function E(e,t,n,r,o,i,a,c,u,s){if(e){var l=!1,f=null,p=function(){if(!l){var e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||u():(i.current=e,c.current=e,a.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var S=function(){return[null,0]};function _(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,c=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=n.methodName,l=void 0===s?"connectAdvanced":s,f=n.renderCountProp,d=void 0===f?void 0:f,v=n.shouldHandleStateChanges,b=void 0===v||v,_=n.storeKey,C=void 0===_?"store":_,P=(n.withRef,n.forwardRef),k=void 0!==P&&P,M=n.context,N=void 0===M?u:M,T=Object(h.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),A=N;return function(t){var n=t.displayName||t.name||"Component",i=c(n),u=Object(a.a)({},T,{getDisplayName:c,methodName:l,renderCountProp:d,shouldHandleStateChanges:b,storeKey:C,displayName:i,wrappedComponentName:n,WrappedComponent:t}),s=T.pure;var f=s?r.useMemo:function(e){return e()};function v(n){var i=Object(r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=Object(h.a)(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),c=i[0],s=i[1],l=i[2],d=Object(r.useMemo)((function(){return c&&c.Consumer&&Object(y.isContextConsumer)(o.a.createElement(c.Consumer,null))?c:A}),[c,A]),v=Object(r.useContext)(d),m=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(v)&&Boolean(v.store);var _=m?n.store:v.store,C=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,u)}(_)}),[_]),P=Object(r.useMemo)((function(){if(!b)return O;var e=new p(_,m?null:v.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[_,m,v]),k=P[0],M=P[1],N=Object(r.useMemo)((function(){return m?v:Object(a.a)({},v,{subscription:k})}),[m,v,k]),T=Object(r.useReducer)(w,g,S),R=T[0][0],D=T[1];if(R&&R.error)throw R.error;var I=Object(r.useRef)(),L=Object(r.useRef)(l),F=Object(r.useRef)(),z=Object(r.useRef)(!1),B=f((function(){return F.current&&l===L.current?F.current:C(_.getState(),l)}),[_,R,l]);x(j,[L,I,z,l,B,F,M]),x(E,[b,_,k,C,L,I,z,F,M,D],[_,k,C]);var H=Object(r.useMemo)((function(){return o.a.createElement(t,Object(a.a)({},B,{ref:s}))}),[s,t,B]);return Object(r.useMemo)((function(){return b?o.a.createElement(d.Provider,{value:N},H):H}),[d,H,N])}var _=s?o.a.memo(v):v;if(_.WrappedComponent=t,_.displayName=i,k){var P=o.a.forwardRef((function(e,t){return o.a.createElement(_,Object(a.a)({},e,{reactReduxForwardedRef:t}))}));return P.displayName=i,P.WrappedComponent=t,m()(P,t)}return m()(_,t)}}function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function P(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!C(e[n[o]],t[n[o]]))return!1;return!0}function k(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function M(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function N(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=M(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=M(o),o=r(t,n)),o},r}}var T=[function(e){return"function"==typeof e?N(e):void 0},function(e){return e?void 0:k((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?k((function(t){return Object(c.b)(e,t)})):void 0}];var A=[function(e){return"function"==typeof e?N(e):void 0},function(e){return e?void 0:k((function(){return{}}))}];function R(e,t,n){return Object(a.a)({},n,{},e,{},t)}var D=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,c){var u=e(t,n,c);return a?o&&i(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return R}}];function I(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function L(e,t,n,r,o){var i,a,c,u,s,l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1;function h(o,d){var h,v,m=!f(d,a),y=!l(o,i);return i=o,a=d,m&&y?(c=e(i,a),t.dependsOnOwnProps&&(u=t(r,a)),s=n(c,u,a)):m?(e.dependsOnOwnProps&&(c=e(i,a)),t.dependsOnOwnProps&&(u=t(r,a)),s=n(c,u,a)):y?(h=e(i,a),v=!p(h,c),c=h,v&&(s=n(c,u,a)),s):s}return function(o,l){return d?h(o,l):(c=e(i=o,a=l),u=t(r,a),s=n(c,u,a),d=!0,s)}}function F(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Object(h.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),c=r(e,i),u=o(e,i);return(i.pure?L:I)(a,c,u,e,i)}function z(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function B(e,t){return e===t}function H(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?_:n,o=t.mapStateToPropsFactories,i=void 0===o?A:o,c=t.mapDispatchToPropsFactories,u=void 0===c?T:c,s=t.mergePropsFactories,l=void 0===s?D:s,f=t.selectorFactory,p=void 0===f?F:f;return function(e,t,n,o){void 0===o&&(o={});var c=o,s=c.pure,f=void 0===s||s,d=c.areStatesEqual,v=void 0===d?B:d,m=c.areOwnPropsEqual,y=void 0===m?P:m,b=c.areStatePropsEqual,g=void 0===b?P:b,O=c.areMergedPropsEqual,w=void 0===O?P:O,x=Object(h.a)(c,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),j=z(e,i,"mapStateToProps"),E=z(t,u,"mapDispatchToProps"),S=z(n,l,"mergeProps");return r(p,Object(a.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:j,initMapDispatchToProps:E,initMergeProps:S,pure:f,areStatesEqual:v,areOwnPropsEqual:y,areStatePropsEqual:g,areMergedPropsEqual:w},x))}}var K=H();var V,U=n(21),W=n.n(U);function q(e,t){var n=Object(r.useState)((function(){return{inputs:t,result:e()}}))[0],o=Object(r.useRef)(n),i=Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return Object(r.useEffect)((function(){o.current=i}),[i]),i.result}V=U.unstable_batchedUpdates,s=V;var G=q,$=function(e,t){return q((function(){return e}),t)};var Y=function(e,t){if(!e)throw new Error("Invariant failed")},X=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},Z=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},J=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Q={top:0,right:0,bottom:0,left:0},ee=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Q:n,o=e.border,i=void 0===o?Q:o,a=e.padding,c=void 0===a?Q:a,u=X(Z(t,r)),s=X(J(t,i)),l=X(J(s,c));return{marginBox:u,borderBox:X(t),paddingBox:s,contentBox:l,margin:r,border:i,padding:c}},te=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&Y(!1),n},ne=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,c=e.padding,u=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ee({borderBox:u,border:i,margin:a,padding:c})},re=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ne(e,t)},oe=function(e,t){var n={top:te(t.marginTop),right:te(t.marginRight),bottom:te(t.marginBottom),left:te(t.marginLeft)},r={top:te(t.paddingTop),right:te(t.paddingRight),bottom:te(t.paddingBottom),left:te(t.paddingLeft)},o={top:te(t.borderTopWidth),right:te(t.borderRightWidth),bottom:te(t.borderBottomWidth),left:te(t.borderLeftWidth)};return ee({borderBox:e,margin:n,padding:r,border:o})},ie=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return oe(t,n)},ae=n(16),ce=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function ue(e,t){}ue.bind(null,"warn"),ue.bind(null,"error");function se(){}function le(e,t,n){var r=t.map((function(t){var r,o,i=(r=n,o=t.options,Object(a.a)({},r,{},o));return e.addEventListener(t.eventName,t.fn,i),function(){e.removeEventListener(t.eventName,t.fn,i)}}));return function(){r.forEach((function(e){e()}))}}function fe(e){this.message=e}function pe(e,t){if(!e)throw new fe("Invariant failed")}fe.prototype.toString=function(){return this.message};var de=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=se,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof fe&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=le(window,[{eventName:"error",fn:this.onWindowError}])},n.componentWillUnmount=function(){this.unbind()},n.componentDidCatch=function(e){if(!(e instanceof fe))throw e;this.setState({})},n.render=function(){return this.props.children(this.setCallbacks)},t}(o.a.Component),he=function(e){return e+1},ve=function(e,t){var n=e.droppableId===t.droppableId,r=he(e.index),o=he(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},me=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},ye=function(e){return"\n The item has returned to its starting position\n of "+he(e.index)+"\n"},be="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",ge=function(e){return"\n You have lifted an item in position "+he(e.source.index)+"\n"},Oe=function(e){var t=e.destination;if(t)return ve(e.source,t);var n=e.combine;return n?me(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},we=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+ye(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+ve(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+me(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+ye(e.source)+"\n "},xe={x:0,y:0},je=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Ee=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Se=function(e,t){return e.x===t.x&&e.y===t.y},_e=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ce=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Pe=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},ke=function(e,t){return Math.min.apply(Math,t.map((function(t){return Pe(e,t)})))},Me=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Ne=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Te=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ae=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=X({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):X(e)},Re=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t,n){var r;return n&&n.increasedBy?Object(a.a)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(function(e,t){return t?Ne(e,t.scroll.diff.displacement):e}(t.marginBox,o),r,n);return{page:t,withPlaceholder:n,active:Ae(i,o)}},De=function(e,t){e.frame||pe(!1);var n=e.frame,r=Ee(t,n.scroll.initial),o=_e(r),i=Object(a.a)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),c=Re({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return Object(a.a)({},e,{frame:i,subject:c})};function Ie(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Le(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Fe(e,t){if(e.find)return e.find(t);var n=Le(e,t);return-1!==n?e[n]:void 0}function ze(e){return Array.prototype.slice.call(e)}var Be=Object(ae.a)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),He=Object(ae.a)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ke=Object(ae.a)((function(e){return Ie(e)})),Ve=Object(ae.a)((function(e){return Ie(e)})),Ue=Object(ae.a)((function(e,t){return Ve(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function We(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function qe(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ge=Object(ae.a)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),$e=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Ye={point:xe,value:0},Xe={invisible:{},visible:{},all:[]},Ze={displaced:Xe,displacedBy:Ye,at:null},Je=function(e,t){return function(n){return e<=n&&n<=t}},Qe=function(e){var t=Je(e.top,e.bottom),n=Je(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,c=r.left<e.left&&r.right>e.right;return!(!a||!c)||(a&&i||c&&o)}},et=function(e){var t=Je(e.top,e.bottom),n=Je(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},tt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},nt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},rt=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:xe;return Ne(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},ot=function(e){return rt(Object(a.a)({},e,{isVisibleThroughFrameFn:Qe}))},it=function(e){return rt(Object(a.a)({},e,{isVisibleThroughFrameFn:et}))};function at(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var c=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return X(Z(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),!ot({target:c,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var s={draggableId:u,shouldAnimate:function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate}(u,a,i)};return e.visible[u]=s,e}),{all:[],visible:{},invisible:{}})}function ct(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Xe,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function ut(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,c=e.index,u=e.forceShouldAnimate,s=$e(t,r);if(null==c)return ct({insideDestination:n,inHomeList:s,displacedBy:i,destination:r});var l=Fe(n,(function(e){return e.descriptor.index===c}));if(!l)return ct({insideDestination:n,inHomeList:s,displacedBy:i,destination:r});var f=Ge(t,n),p=n.indexOf(l);return{displaced:at({afterDragging:f.slice(p),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:u}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:c}}}}function st(e,t){return Boolean(t.effected[e])}var lt=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,c=e.previousImpact,u=e.viewport,s=e.afterCritical,l=c.at;if(l||pe(!1),"REORDER"===l.type){var f=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,c=r[0].descriptor.index,u=r[r.length-1].descriptor.index;return a<c||a>(n?u:u+1)?null:a}({isMovingForward:t,isInHomeList:n,location:l.destination,insideDestination:a});return null==f?null:ut({draggable:r,insideDestination:a,destination:i,viewport:u,last:c.displaced,displacedBy:c.displacedBy,index:f})}var p=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,c=r[a].descriptor.index;return st(a,i)?t?c:c-1:t?c+1:c}({isMovingForward:t,destination:i,displaced:c.displaced,draggables:o,combine:l.combine,afterCritical:s});return null==p?null:ut({draggable:r,insideDestination:a,destination:i,viewport:u,last:c.displaced,displacedBy:c.displacedBy,index:p})},ft=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=qe(n);o||pe(!1);var i=o.draggableId,a=r[i].page.borderBox.center,c=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return st(r,n)?i?xe:_e(o.point):i?o.point:xe}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return je(a,c)},pt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},dt=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},ht=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ce(t.line,n.marginBox[t.end]+pt(t,r),dt(t,n.marginBox,r))},vt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ce(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),dt(t,n.marginBox,r))},mt=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=Ue(o.descriptor.id,r),c=n.page,u=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Ce(t.line,n.contentBox[t.start]+pt(t,r),dt(t,n.contentBox,r))}({axis:u,moveInto:o.page,isMoving:c});var s=t.displaced,l=t.displacedBy,f=s.all[0];if(f){var p=r[f];if(st(f,i))return vt({axis:u,moveRelativeTo:p.page,isMoving:c});var d=ne(p.page,l.point);return vt({axis:u,moveRelativeTo:d,isMoving:c})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return c.borderBox.center;if(st(h.descriptor.id,i)){var v=ne(h.page,_e(i.displacedBy.point));return ht({axis:u,moveRelativeTo:v,isMoving:c})}return ht({axis:u,moveRelativeTo:h.page,isMoving:c})},yt=function(e,t){var n=e.frame;return n?je(t,n.scroll.diff.displacement):t},bt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,c=t.at;return r&&c?"REORDER"===c.type?mt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):ft({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?yt(n,t):t},gt=function(e,t){var n=Ee(t,e.scroll.initial),r=_e(n);return{frame:X({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Ot(e,t){return e.map((function(e){return t[e]}))}var wt=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return je(e.scroll.diff.displacement,t)}(e.viewport,t),o=Ee(r,n.page.borderBox.center);return je(n.client.borderBox.center,o)},xt=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,c=e.onlyOnMainAxis,u=void 0!==c&&c,s=Ee(r,t.page.borderBox.center),l={target:Ne(t.page.borderBox,s),destination:n,withDroppableDisplacement:i,viewport:o};return u?function(e){return rt(Object(a.a)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Je(e.top,e.bottom),r=Je(e.left,e.right);return function(e){return t===tt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(l):it(l)},jt=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,c=e.viewport,u=e.previousPageBorderBoxCenter,s=e.previousClientSelection,l=e.afterCritical;if(!r.isEnabled)return null;var f=Ue(r.descriptor.id,o),p=$e(n,r),d=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!We(i))return null;function c(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return Object(a.a)({},i,{at:t})}var u=i.displaced.all,s=u.length?u[0]:null;if(t)return s?c(s):null;var l=Ge(n,o);if(!s)return l.length?c(l[l.length-1].descriptor.id):null;var f=Le(l,(function(e){return e.descriptor.id===s}));-1===f&&pe(!1);var p=f-1;return p<0?null:c(l[p].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:f,previousImpact:i})||lt({isMovingForward:t,isInHomeList:p,draggable:n,draggables:o,destination:r,insideDestination:f,previousImpact:i,viewport:c,afterCritical:l});if(!d)return null;var h=bt({impact:d,draggable:n,droppable:r,draggables:o,afterCritical:l});if(xt({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:c.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:wt({pageBorderBoxCenter:h,draggable:n,viewport:c}),impact:d,scrollJumpRequest:null};var v=Ee(h,u);return{clientSelection:s,impact:function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,c=gt(n,je(n.scroll.current,i)),u=r.frame?De(r,je(r.frame.scroll.current,i)):r,s=t.displaced,l=at({afterDragging:Ot(s.all,o),destination:r,displacedBy:t.displacedBy,viewport:c.frame,last:s,forceShouldAnimate:!1}),f=at({afterDragging:Ot(s.all,o),destination:u,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),p={},d={},h=[s,l,f];return s.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?d[e]=t:p[e]=!0})),Object(a.a)({},t,{displaced:{all:s.all,invisible:p,visible:d}})}({impact:d,viewport:c,destination:r,draggables:o,maxScrollChange:v}),scrollJumpRequest:v}},Et=function(e){var t=e.subject.active;return t||pe(!1),t},St=function(e,t){var n=e.page.borderBox.center;return st(e.descriptor.id,t)?Ee(n,t.displacedBy.point):n},_t=function(e,t){var n=e.page.borderBox;return st(e.descriptor.id,t)?Ne(n,_e(t.displacedBy.point)):n},Ct=Object(ae.a)((function(e,t){var n=t[e.line];return{value:n,point:Ce(e.line,n)}})),Pt=function(e,t){return Object(a.a)({},e,{scroll:Object(a.a)({},e.scroll,{max:t})})},kt=function(e,t,n){var r=e.frame;$e(t,e)&&pe(!1),e.subject.withPlaceholder&&pe(!1);var o=Ct(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return Ce(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=Ue(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:Ce(r.line,i)}(e,o,n),c={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var u=Re({page:e.subject.page,withPlaceholder:c,axis:e.axis,frame:e.frame});return Object(a.a)({},e,{subject:u})}var s=i?je(r.scroll.max,i):r.scroll.max,l=Pt(r,s),f=Re({page:e.subject.page,withPlaceholder:c,axis:e.axis,frame:l});return Object(a.a)({},e,{subject:f,frame:l})},Mt=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,c=e.viewport,u=e.afterCritical,s=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var c=r.axis,u=Je(a[c.start],a[c.end]),s=Ke(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return Qe(i.frame)(Et(e))})).filter((function(e){var n=Et(e);return t?a[c.crossAxisEnd]<n[c.crossAxisEnd]:n[c.crossAxisStart]<a[c.crossAxisStart]})).filter((function(e){var t=Et(e),n=Je(t[c.start],t[c.end]);return u(t[c.start])||u(t[c.end])||n(a[c.start])||n(a[c.end])})).sort((function(e,n){var r=Et(e)[c.crossAxisStart],o=Et(n)[c.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return Et(e)[c.crossAxisStart]===Et(n[0])[c.crossAxisStart]}));if(!s.length)return null;if(1===s.length)return s[0];var l=s.filter((function(e){return Je(Et(e)[c.start],Et(e)[c.end])(n[c.line])}));return 1===l.length?l[0]:l.length>1?l.sort((function(e,t){return Et(e)[c.start]-Et(t)[c.start]}))[0]:s.sort((function(e,t){var r=ke(n,Te(Et(e))),o=ke(n,Te(Et(t)));return r!==o?r-o:Et(e)[c.start]-Et(t)[c.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:c});if(!s)return null;var l=Ue(s.descriptor.id,i),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,c=e.viewport,u=e.afterCritical;if(!n){if(r.length)return null;var s={displaced:Xe,displacedBy:Ye,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},l=bt({impact:s,draggable:o,droppable:a,draggables:i,afterCritical:u}),f=$e(o,a)?a:kt(a,o,i);return xt({draggable:o,destination:f,newPageBorderBoxCenter:l,viewport:c.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?s:null}var p,d=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),h=(p=n.descriptor.index,n.descriptor.id===o.descriptor.id||d?p:p+1),v=Ct(a.axis,o.displaceBy);return ut({draggable:o,insideDestination:r,destination:a,viewport:c,displacedBy:v,last:Xe,index:h})}({previousPageBorderBoxCenter:n,destination:s,draggable:r,draggables:i,moveRelativeTo:function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical;return o.filter((function(e){return it({target:_t(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Pe(t,yt(r,St(e,i))),a=Pe(t,yt(r,St(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}))[0]||null}({pageBorderBoxCenter:n,viewport:c,destination:s,insideDestination:l,afterCritical:u}),insideDestination:l,viewport:c,afterCritical:u});if(!f)return null;var p=bt({impact:f,draggable:r,droppable:s,draggables:i,afterCritical:u});return{clientSelection:wt({pageBorderBoxCenter:p,draggable:r,viewport:c}),impact:f,scrollJumpRequest:null}},Nt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Tt=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Nt(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,c=a.axis.direction,u="vertical"===c&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===c&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(u&&!o)return null;var s="MOVE_DOWN"===n||"MOVE_RIGHT"===n,l=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,p=t.dimensions,d=p.draggables,h=p.droppables;return u?jt({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:l,destination:a,draggables:d,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Mt({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:l,isOver:a,draggables:d,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function At(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Rt(e){var t=Je(e.top,e.bottom),n=Je(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Dt(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Ke(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Rt(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],c=t[i.crossAxisStart],u=t[i.crossAxisEnd],s=Je(o[i.crossAxisStart],o[i.crossAxisEnd]),l=s(c),f=s(u);return!l&&!f||(l?c<a:u>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=Ce(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Pe(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var It=function(e,t){return X(Ne(e,t))};function Lt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Ft=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,c=e.afterCritical,u=It(n.page.borderBox,t),s=Dt({pageBorderBox:u,draggable:n,droppables:o});if(!s)return Ze;var l,f,p=o[s],d=Ue(p.descriptor.id,r),h=(l=u,(f=p.frame)?It(l,f.scroll.diff.value):l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var c=o.axis,u=Ct(o.axis,t.displaceBy),s=u.value,l=n[c.start],f=n[c.end],p=Fe(Ge(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[c.size]/4,i=st(t,a),u=Lt({displaced:r.displaced,id:t});return i?u?f>n[c.start]+o&&f<n[c.end]-o:l>n[c.start]-s+o&&l<n[c.end]-s-o:u?f>n[c.start]+s+o&&f<n[c.end]+s-o:l>n[c.start]+o&&l<n[c.end]-o}));return p?{displacedBy:u,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:h,draggable:n,previousImpact:i,destination:p,insideDestination:d,afterCritical:c})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,c=e.afterCritical,u=r.axis,s=Ct(r.axis,n.displaceBy),l=s.value,f=t[u.start],p=t[u.end],d=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Fe(Ge(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[u.line],r=st(t,c),o=Lt({displaced:i,id:t});return r?o?p<=n:f<n-l:o?p<=n+l:f<n})),inHomeList:$e(n,r)});return ut({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:s,index:d})}({pageBorderBoxWithDroppableScroll:h,draggable:n,destination:p,insideDestination:d,last:i.displaced,viewport:a,afterCritical:c})},zt=function(e,t){var n;return Object(a.a)({},e,((n={})[t.descriptor.id]=t,n))},Bt=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Nt(t),i=Nt(n);if(!o)return r;if(o===i)return r;var c=r[o];if(!c.subject.withPlaceholder)return r;var u=function(e){var t=e.subject.withPlaceholder;t||pe(!1);var n=e.frame;if(!n){var r=Re({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return Object(a.a)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||pe(!1);var i=Pt(n,o),c=Re({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return Object(a.a)({},e,{subject:c,frame:i})}(c);return zt(r,u)},Ht=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,c=e.scrollJumpRequest,u=o||t.viewport,s=r||t.dimensions,l=n||t.current.client.selection,f=Ee(l,t.initial.client.selection),p={offset:f,selection:l,borderBoxCenter:je(t.initial.client.borderBoxCenter,f)},d={selection:je(p.selection,u.scroll.current),borderBoxCenter:je(p.borderBoxCenter,u.scroll.current),offset:je(p.offset,u.scroll.diff.value)},h={client:p,page:d};if("COLLECTING"===t.phase)return Object(a.a)({phase:"COLLECTING"},t,{dimensions:s,viewport:u,current:h});var v=s.draggables[t.critical.draggable.id],m=i||Ft({pageOffset:d.offset,draggable:v,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:u,afterCritical:t.afterCritical}),y=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=Bt({previousImpact:o,impact:i,droppables:r}),c=Nt(i);if(!c)return a;var u=r[c];if($e(t,u))return a;if(u.subject.withPlaceholder)return a;var s=kt(u,t,n);return zt(a,s)}({draggable:v,impact:m,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return Object(a.a)({},t,{current:h,dimensions:{draggables:s.draggables,droppables:y},impact:m,viewport:u,scrollJumpRequest:c||null,forceShouldAnimate:!c&&null})};var Kt=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,c=t.displaced,u=at({afterDragging:function(e,t){return e.map((function(e){return t[e]}))}(c.all,r),destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:c});return Object(a.a)({},t,{displaced:u})},Vt=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,c=bt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return wt({pageBorderBoxCenter:c,draggable:n,viewport:i})},Ut=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&pe(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,c=a.draggables,u=a.droppables,s=c[t.critical.draggable.id],l=Nt(o);l||pe(!1);var f=u[l],p=Kt({impact:o,viewport:i,destination:f,draggables:c}),d=Vt({impact:p,draggable:s,droppable:f,draggables:c,viewport:i,afterCritical:t.afterCritical});return Ht({impact:p,clientSelection:d,state:t,dimensions:a,viewport:i})},Wt=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=Ct(n.axis,t.displaceBy),a=Ue(n.descriptor.id,r),c=a.indexOf(t);-1===c&&pe(!1);var u,s=a.slice(c+1),l=s.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),f={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:l};return{impact:{displaced:at({afterDragging:s,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:f}},qt=function(e){0},Gt=function(e){0},$t=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||pe(!1),t}(n[t]).scroll.diff.value;return function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=ne(t.client,n),i=re(o,r);return Object(a.a)({},t,{placeholder:Object(a.a)({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:je(o,i),initialWindowScroll:r.scroll.initial})}))},Yt=function(e){return"SNAP"===e.movementMode},Xt=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:zt(e.droppables,t)}}(e.dimensions,t);return!Yt(e)||n?Ht({state:e,dimensions:r}):Ut({state:e,dimensions:r})};function Zt(e){return e.isDragging&&"SNAP"===e.movementMode?Object(a.a)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Jt={phase:"IDLE",completed:null,shouldFlush:!1},Qt=function(e,t){if(void 0===e&&(e=Jt),"FLUSH"===t.type)return Object(a.a)({},Jt,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&pe(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,c=n.dimensions,u=n.movementMode,s=c.draggables[r.draggable.id],l=c.droppables[r.droppable.id],f={selection:o,borderBoxCenter:s.client.borderBox.center,offset:xe},p={client:f,page:{selection:je(f.selection,i.scroll.initial),borderBoxCenter:je(f.selection,i.scroll.initial),offset:je(f.selection,i.scroll.diff.value)}},d=Ke(c.droppables).every((function(e){return!e.isFixedOnPage})),h=Wt({draggable:s,home:l,draggables:c.draggables,viewport:i}),v=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:u,dimensions:c,initial:p,current:p,isWindowScrollAllowed:d,impact:v,afterCritical:h.afterCritical,onLiftImpact:v,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&pe(!1),Object(a.a)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&pe(!1),function(e){var t=e.state,n=e.published;qt();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return De(n,e.scroll)})),o=Object(a.a)({},t.dimensions.droppables,{},Be(r)),i=He($t({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),c=Object(a.a)({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete c[e]}));var u={droppables:o,draggables:c},s=Nt(t.impact),l=s?u.droppables[s]:null,f=u.draggables[t.critical.draggable.id],p=u.droppables[t.critical.droppable.id],d=Wt({draggable:f,home:p,draggables:c,viewport:t.viewport}),h=d.impact,v=d.afterCritical,m=l&&l.isCombineEnabled?t.impact:h,y=Ft({pageOffset:t.current.page.offset,draggable:u.draggables[t.critical.draggable.id],draggables:u.draggables,droppables:u.droppables,previousImpact:m,viewport:t.viewport,afterCritical:v});Gt();var b=Object(a.a)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:y,onLiftImpact:h,dimensions:u,afterCritical:v,forceShouldAnimate:!1});return"COLLECTING"===t.phase?b:Object(a.a)({phase:"DROP_PENDING"},b,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;At(e)||pe(!1);var m=t.payload.client;return Se(m,e.current.client.selection)?e:Ht({state:e,clientSelection:m,impact:Yt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Zt(e);if("COLLECTING"===e.phase)return Zt(e);At(e)||pe(!1);var y=t.payload,b=y.id,g=y.newScroll,O=e.dimensions.droppables[b];if(!O)return e;var w=De(O,g);return Xt(e,w,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;At(e)||pe(!1);var x=t.payload,j=x.id,E=x.isEnabled,S=e.dimensions.droppables[j];S||pe(!1),S.isEnabled===E&&pe(!1);var _=Object(a.a)({},S,{isEnabled:E});return Xt(e,_,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;At(e)||pe(!1);var C=t.payload,P=C.id,k=C.isCombineEnabled,M=e.dimensions.droppables[P];M||pe(!1),M.isCombineEnabled===k&&pe(!1);var N=Object(a.a)({},M,{isCombineEnabled:k});return Xt(e,N,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;At(e)||pe(!1),e.isWindowScrollAllowed||pe(!1);var T=t.payload.newScroll;if(Se(e.viewport.scroll.current,T))return Zt(e);var A=gt(e.viewport,T);return Yt(e)?Ut({state:e,viewport:A}):Ht({state:e,viewport:A})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!At(e))return e;var R=t.payload.maxScroll;if(Se(R,e.viewport.scroll.max))return e;var D=Object(a.a)({},e.viewport,{scroll:Object(a.a)({},e.viewport.scroll,{max:R})});return Object(a.a)({phase:"DRAGGING"},e,{viewport:D})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&pe(!1);var I=Tt({state:e,type:t.type});return I?Ht({state:e,impact:I.impact,clientSelection:I.clientSelection,scrollJumpRequest:I.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&pe(!1),Object(a.a)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var F=t.payload,z=F.completed,B=F.dropDuration,H=F.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&pe(!1),{phase:"DROP_ANIMATING",completed:z,dropDuration:B,newHomeClientOffset:H,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},en=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},tn=function(){return{type:"COLLECTION_STARTING",payload:null}},nn=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},rn=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},on=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},an=function(e){return{type:"MOVE",payload:e}},cn=function(){return{type:"MOVE_UP",payload:null}},un=function(){return{type:"MOVE_DOWN",payload:null}},sn=function(){return{type:"MOVE_RIGHT",payload:null}},ln=function(){return{type:"MOVE_LEFT",payload:null}},fn=function(e){return{type:"DROP_COMPLETE",payload:e}},pn=function(e){return{type:"DROP",payload:e}},dn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var hn="cubic-bezier(.2,1,.1,1)",vn={drop:0,combining:.7},mn={drop:.75},yn=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",bn={fluid:"opacity "+yn,snap:"transform "+yn+", opacity "+yn,drop:function(e){var t=e+"s "+hn;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+yn,placeholder:"height "+yn+", width "+yn+", margin "+yn},gn=function(e){return Se(e,xe)?null:"translate("+e.x+"px, "+e.y+"px)"},On=gn,wn=function(e,t){var n=gn(e);return n?t?n+" scale("+mn.drop+")":n:null},xn=.33,jn=.55,En=jn-xn,Sn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&pe(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&pe(!1);var c=o.critical,u=o.dimensions,s=u.draggables[o.critical.draggable.id],l=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,c=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:Object(a.a)({},r,{displaced:Xe}),didDropInsideDroppable:!0}:{impact:Kt({draggables:t,impact:c,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),f=l.impact,p=l.didDropInsideDroppable,d=p?We(f):null,h=p?qe(f):null,v={index:c.draggable.index,droppableId:c.droppable.id},m={draggableId:s.descriptor.id,type:s.descriptor.type,source:v,reason:i,mode:o.movementMode,destination:d,combine:h},y=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,c=r.droppables,u=Nt(t),s=u?c[u]:null,l=c[n.descriptor.droppableId],f=Vt({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:s||l,viewport:o});return Ee(f,n.client.borderBox.center)}({impact:f,draggable:s,dimensions:u,viewport:o.viewport,afterCritical:o.afterCritical}),b={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:f};if(!Se(o.current.client.offset,y)||Boolean(m.combine)){var g=function(e){var t=e.current,n=e.destination,r=e.reason,o=Pe(t,n);if(o<=0)return xn;if(o>=1500)return jn;var i=xn+En*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:y,reason:i});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:y,dropDuration:g,completed:b}))}else n(fn({completed:b}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},_n=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Cn(e){var t=e.onWindowScroll;var n,r=ce((function(){t(_n())})),o=(n=r,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||n()}}),i=se;function a(){return i!==se}return{start:function(){a()&&pe(!1),i=le(window,[o])},stop:function(){a()||pe(!1),r.cancel(),i(),i=se},isActive:a}}var Pn=function(e){var t=Cn({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},kn=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=Le(e,(function(e){return e.timerId===t}));-1===n&&pe(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Mn=function(e,t){qt(),t(),Gt()},Nn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Tn=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},An=function(e,t){var n=function(e,t){var n=kn(),r=null,o=function(n){r||pe(!1),r=null,Mn(0,(function(){return Tn(e().onDragEnd,n,t,we)}))};return{beforeCapture:function(t,n){r&&pe(!1),Mn(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&pe(!1),Mn(0,(function(){var r=e().onBeforeDragStart;r&&r(Nn(t,n))}))},start:function(o,i){r&&pe(!1);var a=Nn(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Mn(0,(function(){return Tn(e().onDragStart,a,t,ge)}))}))},update:function(o,i){var c=We(i),u=qe(i);r||pe(!1);var s=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);s&&(r.lastCritical=o);var l,f,p=(l=r.lastLocation,f=c,!(null==l&&null==f||null!=l&&null!=f&&l.droppableId===f.droppableId&&l.index===f.index));p&&(r.lastLocation=c);var d=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)}(r.lastCombine,u);if(d&&(r.lastCombine=u),s||p||d){var h=Object(a.a)({},Nn(o,r.mode),{combine:u,destination:c});n.add((function(){Mn(0,(function(){return Tn(e().onDragUpdate,h,t,Oe)}))}))}},flush:function(){r||pe(!1),n.flush()},drop:o,abort:function(){if(r){var e=Object(a.a)({},Nn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Rn=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&pe(!1),e.dispatch(fn({completed:r.completed}))}else t(n)}}},Dn=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=le(window,[i])}))}}}},In=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(pn({reason:r.reason})))}}}},Ln=c.c,Fn=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,u=e.autoScroller;return Object(c.d)(Qt,Ln(Object(c.a)((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,c=i.clientSelection,u=i.movementMode,s=n();"DROP_ANIMATING"===s.phase&&r(fn({completed:s.completed})),"IDLE"!==n().phase&&pe(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:u}});var l={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},f=e.startPublishing(l),p=f.critical,d=f.dimensions,h=f.viewport;r(function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:p,dimensions:d,clientSelection:c,movementMode:u,viewport:h}))}else t(o)}}}}(n),Sn,Rn,Dn,In,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&pe(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(u),Pn,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),An(i,a))))};var zn=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=Ee({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Bn=function(){var e=document.documentElement;return e||pe(!1),e},Hn=function(){var e=Bn();return zn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Kn=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;qt();var o,i,a,c,u,s,l,f=(o=_n(),i=Hn(),a=o.y,c=o.x,u=Bn(),s=u.clientWidth,l=u.clientHeight,{frame:X({top:a,left:c,right:c+s,bottom:a+l}),scroll:{initial:o,current:o,max:i,diff:{value:xe,displacement:xe}}}),p=f.scroll.current,d=t.droppable,h=r.droppable.getAllByType(d.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(p,n)})),v=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(p)})),m={draggables:He(v),droppables:Be(h)};return Gt(),{dimensions:m,critical:t,viewport:f}};function Vn(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Un,Wn,qn=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,qt();var e=r,i=e.additions,a=e.removals,c=e.modified,u=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(xe)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),s=Object.keys(c).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),l={additions:u,removals:Object.keys(a),modified:s};r={additions:{},removals:{},modified:{}},Gt(),n.publish(l)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||pe(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Vn(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Vn(e,o,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||pe(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||pe(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||pe(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&pe(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},c=e.subscribe(o);return n={critical:a,unsubscribe:c},Kn({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}}},Gn=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},$n=function(e){window.scrollBy(e.x,e.y)},Yn=Object(ae.a)((function(e){return Ke(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Xn=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}return function(e,t){return Fe(Yn(t),(function(t){return t.frame||pe(!1),Rt(t.frame.pageMarginBox)(e)}))}(t,r)},Zn=.25,Jn=.05,Qn=28,er=function(e){return Math.pow(e,2)},tr={stopDampeningAt:1200,accelerateAt:360},nr=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},rr=tr.accelerateAt,or=tr.stopDampeningAt,ir=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Qn;if(e===t.startScrollingFrom)return 1;var n=nr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=Qn*er(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=or,o=Date.now()-n;if(o>=or)return e;if(o<rr)return 1;var i=nr({startOfRange:rr,endOfRange:r,current:o}),a=e*er(i);return Math.ceil(a)}(i,r),1):i},ar=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*Zn,maxScrollValueAt:e[t.size]*Jn}}(t,o);return n[o.end]<n[o.start]?ir({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*ir({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},cr=Me((function(e){return 0===e?0:e})),ur=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},c=ar({container:n,distanceToEdges:a,dragStartTime:t,axis:tt,shouldUseTimeDampening:i}),u=ar({container:n,distanceToEdges:a,dragStartTime:t,axis:nt,shouldUseTimeDampening:i}),s=cr({x:u,y:c});if(Se(s,xe))return null;var l=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:s});return l?Se(l,xe)?null:l:null},sr=Me((function(e){return 0===e?0:e>0?1:-1})),lr=(Un=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=je(t,r),i={x:Un(o.x,n.x),y:Un(o.y,n.y)};return Se(i,xe)?null:i}),fr=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=sr(r),a=lr({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},pr=function(e,t){return fr({current:e.scroll.current,max:e.scroll.max,change:t})},dr=function(e,t){var n=e.frame;return!!n&&fr({current:n.scroll.current,max:n.scroll.max,change:t})},hr=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,c=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=ur({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&pr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:c,center:a,shouldUseTimeDampening:r});if(u)return void o(u)}var s=Xn({center:a,destination:Nt(t.impact),droppables:t.dimensions.droppables});if(s){var l=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var c=ur({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return c&&dr(t,c)?c:null}({dragStartTime:n,droppable:s,subject:c,center:a,shouldUseTimeDampening:r});l&&i(s.descriptor.id,l)}},vr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!dr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&dr(e,t)?lr({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=Ee(t,r);return n(e.descriptor.id,o),Ee(t,o)},i=function(e,t,n){if(!e)return n;if(!pr(t,n))return n;var o=function(e,t){if(!pr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return lr({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=Ee(n,o);return r(i),Ee(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Nt(e.impact);r||pe(!1);var a=o(e.dimensions.droppables[r],n);if(a){var c=e.viewport,u=i(e.isWindowScrollAllowed,c,a);u&&function(e,n){var r=je(e.current.client.selection,n);t({client:r})}(e,u)}}}},mr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=ce(t),o=ce(n),i=null,a=function(e){i||pe(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;hr({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){qt(),i&&pe(!1);var t=Date.now(),n=!1,r=function(){n=!0};hr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},Gt(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=vr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},yr={base:Wn="data-rbd-drag-handle",draggableId:Wn+"-draggable-id",contextId:Wn+"-context-id"},br=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),gr=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Or={contextId:"data-rbd-scroll-container-context-id"},wr=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},xr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,jr=function(){var e=document.querySelector("head");return e||pe(!1),e},Er=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Sr(e,t){var n=G((function(){return function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(yr.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(r="\n transition: "+bn.outOfTheWay+";\n ",{selector:o(br.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(gr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:wr(a,"always"),resting:wr(a,"resting"),dragging:wr(a,"dragging"),dropAnimating:wr(a,"dropAnimating"),userCancel:wr(a,"userCancel")}}(e)}),[e]),o=Object(r.useRef)(null),i=Object(r.useRef)(null),a=$(Object(ae.a)((function(e){var t=i.current;t||pe(!1),t.textContent=e})),[]),c=$((function(e){var t=o.current;t||pe(!1),t.textContent=e}),[]);xr((function(){(o.current||i.current)&&pe(!1);var r=Er(t),u=Er(t);return o.current=r,i.current=u,r.setAttribute("data-rbd-always",e),u.setAttribute("data-rbd-dynamic",e),jr().appendChild(r),jr().appendChild(u),c(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||pe(!1),jr().removeChild(t),e.current=null};e(o),e(i)}}),[t,c,a,n.always,n.resting,e]);var u=$((function(){return a(n.dragging)}),[a,n.dragging]),s=$((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),l=$((function(){i.current&&a(n.resting)}),[a,n.resting]);return G((function(){return{dragging:u,dropping:s,resting:l}}),[u,s,l])}var _r=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Cr(e){return e instanceof _r(e).HTMLElement}function Pr(e,t){var n="["+yr.contextId+'="'+e+'"]',r=ze(document.querySelectorAll(n));if(!r.length)return null;var o=Fe(r,(function(e){return e.getAttribute(yr.draggableId)===t}));return o&&Cr(o)?o:null}function kr(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||pe(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Ie(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||pe(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Ie(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Mr=o.a.createContext(null),Nr=function(){var e=document.body;return e||pe(!1),e},Tr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var Ar=0,Rr={separator:"::"};function Dr(e,t){return void 0===t&&(t=Rr),G((function(){return""+e+t.separator+Ar++}),[t.separator,e])}var Ir=o.a.createContext(null);function Lr(e){0}function Fr(e,t){Lr()}function zr(){Fr()}function Br(e){var t=Object(r.useRef)(e);return Object(r.useEffect)((function(){t.current=e})),t}var Hr,Kr=((Hr={})[13]=!0,Hr[9]=!0,Hr),Vr=function(e){Kr[e.keyCode]&&e.preventDefault()},Ur=function(){var e="visibilitychange";return"undefined"==typeof document?e:Fe([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Wr,qr={type:"IDLE"};function Gr(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},c=r();if("DRAGGING"===c.type)return e.preventDefault(),void c.actions.move(a);"PENDING"!==c.type&&pe(!1);var u=c.point;if(s=u,l=a,Math.abs(l.x-s.x)>=5||Math.abs(l.y-s.y)>=5){var s,l;e.preventDefault();var f=c.actions.fluidLift(a);o({type:"DRAGGING",actions:f})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Vr(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&pe(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Ur,fn:t}]}function $r(){}var Yr=((Wr={})[34]=!0,Wr[33]=!0,Wr[36]=!0,Wr[35]=!0,Wr);function Xr(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Yr[r.keyCode]?r.preventDefault():Vr(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Ur,fn:n}]}var Zr={type:"IDLE"};var Jr={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Qr(e,t){var n=t.target;return!!Cr(n)&&function e(t,n){if(null==n)return!1;if(Boolean(Jr[n.tagName.toLowerCase()]))return!0;var r=n.getAttribute("contenteditable");return"true"===r||""===r||n!==t&&e(t,n.parentElement)}(e,n)}var eo=function(e){return X(e.getBoundingClientRect()).center};var to="undefined"==typeof document?"matches":Fe(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function no(e,t){return e.closest?e.closest(t):function e(t,n){return null==t?null:t[to](n)?t:e(t.parentElement,n)}(e,t)}function ro(e,t){var n,r=t.target;if(!((n=r)instanceof _r(n).Element))return null;var o=no(r,function(e){return"["+yr.contextId+'="'+e+'"]'}(e));return o&&Cr(o)?o:null}function oo(e){e.preventDefault()}function io(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function ao(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!Gn(n.getState(),o))}function co(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,c=e.forceSensorStop,u=e.sourceEvent;if(!ao({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var s=o.draggable.getById(i),l=function(e,t){var n="["+br.contextId+'="'+e+'"]',r=Fe(ze(document.querySelectorAll(n)),(function(e){return e.getAttribute(br.id)===t}));return r&&Cr(r)?r:null}(n,s.descriptor.id);if(!l)return null;if(u&&!s.options.canDragInteractiveElements&&Qr(l,u))return null;var f=t.claim(c||se),p="PRE_DRAG";function d(){return s.options.shouldRespectForcePress}function h(){return t.isActive(f)}var v=function(e,t){io({expected:e,phase:p,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),p="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=le(window,[{eventName:"click",fn:oo,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(pn({reason:t}))}return"PRE_DRAG"!==p&&(n(),"PRE_DRAG"!==p&&pe(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),p="DRAGGING",Object(a.a)({isActive:function(){return io({expected:"DRAGGING",phase:p,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:d,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return io({expected:"PRE_DRAG",phase:p,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:d,fluidLift:function(e){var t=ce((function(e){v((function(){return an({client:e})}))})),n=m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return Object(a.a)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return v(cn)},moveRight:function(){return v(sn)},moveDown:function(){return v(un)},moveLeft:function(){return v(ln)}};return m({liftActionArgs:{id:i,clientSelection:eo(l),movementMode:"SNAP"},cleanup:se,actions:e})},abort:function(){io({expected:"PRE_DRAG",phase:p,isLockActive:h,shouldWarn:!0})&&t.release()}}}var uo=[function(e){var t=Object(r.useRef)(qr),n=Object(r.useRef)(se),o=G((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,c,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),l(o,i)}}}}}}),[e]),i=G((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=$((function(){n.current=le(window,[i,o],{passive:!1,capture:!0})}),[i,o]),c=$((function(){"IDLE"!==t.current.type&&(t.current=qr,n.current(),a())}),[a]),u=$((function(){var e=t.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[c]),s=$((function(){var e=Gr({cancel:u,completed:c,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=le(window,e,{capture:!0,passive:!1})}),[u,c]),l=$((function(e,n){"IDLE"!==t.current.type&&pe(!1),t.current={type:"PENDING",point:n,actions:e},s()}),[s]);xr((function(){return a(),function(){n.current()}}),[a])},function(e){var t=Object(r.useRef)($r),n=G((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,u,{sourceEvent:n});if(i){n.preventDefault();var a=!0,c=i.snapLift();t.current(),t.current=le(window,Xr(c,u),{capture:!0,passive:!1})}}}function u(){a||pe(!1),a=!1,t.current(),o()}}}}),[e]),o=$((function(){t.current=le(window,[n],{passive:!1,capture:!0})}),[n]);xr((function(){return o(),function(){t.current()}}),[o])},function(e){var t=Object(r.useRef)(Zr),n=Object(r.useRef)(se),o=$((function(){return t.current}),[]),i=$((function(e){t.current=e}),[]),a=G((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,u,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),p(o,a)}}}}}}),[e]),c=$((function(){n.current=le(window,[a],{capture:!0,passive:!1})}),[a]),u=$((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Zr),n.current(),c())}),[c,i]),s=$((function(){var e=t.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),l=$((function(){var e={capture:!0,passive:!1},t={cancel:s,completed:u,getPhase:o},r=le(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&pe(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:Ur,fn:t}]}(t),e),i=le(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Ur,fn:t}]}(t),e);n.current=function(){r(),i()}}),[s,o,u]),f=$((function(){var e=o();"PENDING"!==e.type&&pe(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),p=$((function(e,t){"IDLE"!==o().type&&pe(!1);var n=setTimeout(f,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),l()}),[l,o,i,f]);xr((function(){return c(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Zr))}}),[o,c,i]),xr((function(){return le(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function so(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,c=[].concat(a?uo:[],i||[]),u=Object(r.useState)((function(){return function(){var e=null;function t(){e||pe(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&pe(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],s=$((function(e,t){e.isDragging&&!t.isDragging&&u.tryAbandon()}),[u]);xr((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();s(e,t),e=t}))}),[u,n,s]),xr((function(){return u.tryAbandon}),[u.tryAbandon]);var l=$((function(e){return ao({lockAPI:u,registry:o,store:n,draggableId:e})}),[u,o,n]),f=$((function(e,r,i){return co({lockAPI:u,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,u,o,n]),p=$((function(e){return function(e,t){var n=ro(e,t);return n?n.getAttribute(yr.draggableId):null}(t,e)}),[t]),d=$((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=$((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[u,n]),v=$(u.isClaimed,[u]),m=G((function(){return{canGetLock:l,tryGetLock:f,findClosestDraggableId:p,findOptionsForDraggable:d,tryReleaseLock:h,isLockClaimed:v}}),[l,f,p,d,h,v]);Lr();for(var y=0;y<c.length;y++)c[y](m)}function lo(e){return e.current||pe(!1),e.current}function fo(e){var t=e.contextId,n=e.setCallbacks,i=e.sensors,u=e.nonce,s=e.dragHandleUsageInstructions,l=Object(r.useRef)(null);zr();var f=Br(e),p=$((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(f.current)}),[f]),h=function(e){var t=G((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=Object(r.useRef)(null);return Object(r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Object(a.a)(e.style,Tr),Nr().appendChild(e),function(){setTimeout((function(){var t=Nr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),$((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),v=function(e){var t=e.contextId,n=e.text,o=Dr("hidden-text",{separator:"-"}),i=G((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,t]);return Object(r.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",Nr().appendChild(e),function(){var t=Nr();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:s}),m=Sr(t,u),y=$((function(e){lo(l).dispatch(e)}),[]),b=G((function(){return Object(c.b)({publishWhileDragging:en,updateDroppableScroll:nn,updateDroppableIsEnabled:rn,updateDroppableIsCombineEnabled:on,collectionStarting:tn},y)}),[y]),g=function(){var e=G(kr,[]);return Object(r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),O=G((function(){return qn(g,b)}),[g,b]),w=G((function(){return mr(Object(a.a)({scrollWindow:$n,scrollDroppable:O.scrollDroppable},Object(c.b)({move:an},y)))}),[O.scrollDroppable,y]),x=function(e){var t=Object(r.useRef)({}),n=Object(r.useRef)(null),o=Object(r.useRef)(null),i=Object(r.useRef)(!1),a=$((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),c=$((function(t){var n=Pr(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),u=$((function(e,t){n.current===e&&(n.current=t)}),[]),s=$((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&c(e)})))}),[c]),l=$((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(yr.draggableId)===e&&(n.current=e)}),[]);return xr((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),G((function(){return{register:a,tryRecordFocus:l,tryRestoreFocusRecorded:s,tryShiftRecord:u}}),[a,l,s,u])}(t),j=G((function(){return Fn({announce:h,autoScroller:w,dimensionMarshal:O,focusMarshal:x,getResponders:p,styleMarshal:m})}),[h,w,O,x,p,m]);l.current=j;var E=$((function(){var e=lo(l);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),S=$((function(){var e=lo(l).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(G((function(){return{isDragging:S,tryAbort:E}}),[S,E]));var _=$((function(e){return Gn(lo(l).getState(),e)}),[]),C=$((function(){return At(lo(l).getState())}),[]),P=G((function(){return{marshal:O,focus:x,contextId:t,canLift:_,isMovementAllowed:C,dragHandleUsageInstructionsId:v,registry:g}}),[t,O,v,x,_,C,g]);return so({contextId:t,store:j,registry:g,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),Object(r.useEffect)((function(){return E}),[E]),o.a.createElement(Ir.Provider,{value:P},o.a.createElement(d,{context:Mr,store:j},e.children))}var po=0;function ho(e){var t=G((function(){return""+po++}),[]),n=e.dragHandleUsageInstructions||be;return o.a.createElement(de,null,(function(r){return o.a.createElement(fo,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var vo=function(e){return function(t){return e===t}},mo=vo("scroll"),yo=vo("auto"),bo=(vo("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),go=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return bo(n,mo)||bo(n,yo)},Oo=function e(t){return null==t||t===document.body||t===document.documentElement?null:go(t)?t:e(t.parentElement)},wo=function(e){return{x:e.scrollLeft,y:e.scrollTop}},xo=function(e){return{closestScrollable:Oo(e),isFixedOnPage:function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))}(e)}},jo=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,c=e.isCombineEnabled,u=e.shouldClipSubject,s=r.closestScrollable,l=function(e,t){var n=ie(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,c=Z({top:r,right:a,bottom:i,left:o},n.border);return ee({borderBox:c,margin:n.margin,border:n.border,padding:n.padding})}(t,s),f=re(l,o),p=function(){if(!s)return null;var e=ie(s),t={scrollHeight:s.scrollHeight,scrollWidth:s.scrollWidth};return{client:e,page:re(e,o),scroll:wo(s),scrollSize:t,shouldClipSubject:u}}();return function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,c=e.page,u=e.closest,s=function(){if(!u)return null;var e=u.scrollSize,t=u.client,n=zn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:n,diff:{value:xe,displacement:xe}}}}(),l="vertical"===i?tt:nt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:l,isEnabled:n,client:a,page:c,frame:s,subject:Re({page:c,withPlaceholder:null,axis:l,frame:s})}}({descriptor:n,isEnabled:!a,isCombineEnabled:c,isFixedOnPage:r.isFixedOnPage,direction:i,client:l,page:f,closest:p})},Eo={passive:!1},So={passive:!0},_o=function(e){return e.shouldPublishImmediately?Eo:So};function Co(e){var t=Object(r.useContext)(e);return t||pe(!1),t}var Po=function(e){return e&&e.env.closestScrollable||null};function ko(){}var Mo={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},No=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?Mo:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?bn.placeholder:null}};var To=o.a.memo((function(e){var t=Object(r.useRef)(null),n=$((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),i=e.animate,a=e.onTransitionEnd,c=e.onClose,u=e.contextId,s=Object(r.useState)("open"===e.animate),l=s[0],f=s[1];Object(r.useEffect)((function(){return l?"open"!==i?(n(),f(!1),ko):t.current?ko:(t.current=setTimeout((function(){t.current=null,f(!1)})),n):ko}),[i,l,n]);var p=$((function(e){"height"===e.propertyName&&(a(),"close"===i&&c())}),[i,c,a]),d=No({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return o.a.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":u,onTransitionEnd:p,ref:e.innerRef})})),Ao=o.a.createContext(null);var Ro=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(o.a.PureComponent),Do=5e3,Io=4500,Lo=function(e,t){return t?bn.drop(t.duration):e?bn.snap:bn.fluid},Fo=function(e,t){return e?t?vn.drop:vn.combining:null};function zo(e){return"DRAGGING"===e.type?(r=(n=e).dimension.client,o=n.offset,i=n.combineWith,a=n.dropping,c=Boolean(i),u=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(n),s=Boolean(a),l=s?wn(o,c):On(o),{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Lo(u,a),transform:l,opacity:Fo(c,s),zIndex:s?Io:Do,pointerEvents:"none"}):{transform:On((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t,n,r,o,i,a,c,u,s,l}function Bo(e){var t=Dr("draggable"),n=e.descriptor,o=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,c=e.shouldRespectForcePress,u=e.isEnabled,s=G((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:c,isEnabled:u}}),[a,u,c]),l=$((function(e){var t=i();return t||pe(!1),function(e,t,n){void 0===n&&(n=xe);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=oe(o,r),a=re(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,i]),f=G((function(){return{uniqueId:t,descriptor:n,options:s,getDimension:l}}),[n,l,s,t]),p=Object(r.useRef)(f),d=Object(r.useRef)(!0);xr((function(){return o.draggable.register(p.current),function(){return o.draggable.unregister(p.current)}}),[o.draggable]),xr((function(){if(d.current)d.current=!1;else{var e=p.current;p.current=f,o.draggable.update(f,e)}}),[f,o.draggable])}function Ho(e,t,n){Fr()}function Ko(e){e.preventDefault()}var Vo=function(e,t){return e===t},Uo=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Wo(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var qo={mapped:{type:"SECONDARY",offset:xe,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Wo(null)}};var Go=K((function(){var e,t,n,r=(e=Object(ae.a)((function(e,t){return{x:e,y:t}})),t=Object(ae.a)((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=Object(ae.a)((function(e,n,r,o,i,a,c){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:c,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],c=Nt(r.impact),u=(l=r.impact).at&&"COMBINE"===l.at.type?l.at.combine.draggableId:null,s=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,c,u,s)}var l;if("DROP_ANIMATING"===r.phase){var f=r.completed;if(f.result.draggableId!==o.draggableId)return null;var p=o.isClone,d=r.dimensions.draggables[o.draggableId],h=f.result,v=h.mode,m=Uo(h),y=function(e){return e.combine?e.combine.draggableId:null}(h),b={duration:r.dropDuration,curve:hn,moveTo:r.newHomeClientOffset,opacity:y?vn.drop:null,scale:y?mn.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:d,dropping:b,draggingOver:m,combineWith:y,mode:v,forceShouldAnimate:null,snapshot:t(v,p,m,y,b)}}}return null}),o=function(){var e=Object(ae.a)((function(e,t){return{x:e,y:t}})),t=Object(ae.a)(Wo),n=Object(ae.a)((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(xe,e,!0):null},o=function(t,o,i,a){var c=i.displaced.visible[t],u=Boolean(a.inVirtualList&&a.effected[t]),s=qe(i),l=s&&s.draggableId===t?o:null;if(!c){if(!u)return r(l);if(i.displaced.invisible[t])return null;var f=_e(a.displacedBy.point),p=e(f.x,f.y);return n(p,l,!0)}if(u)return r(l);var d=i.displacedBy.point,h=e(d.x,d.y);return n(h,l,c.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||qo}}),{dropAnimationFinished:dn},null,{context:Mr,pure:!0,areStatePropsEqual:Vo})((function(e){var t=Object(r.useRef)(null),n=$((function(e){t.current=e}),[]),o=$((function(){return t.current}),[]),i=Co(Ir),a=i.contextId,c=i.dragHandleUsageInstructionsId,u=i.registry,s=Co(Ao),l=s.type,f=s.droppableId,p=G((function(){return{id:e.draggableId,index:e.index,type:l,droppableId:f}}),[e.draggableId,e.index,l,f]),d=e.children,h=e.draggableId,v=e.isEnabled,m=e.shouldRespectForcePress,y=e.canDragInteractiveElements,b=e.isClone,g=e.mapped,O=e.dropAnimationFinished;Ho(),Lr(),b||Bo(G((function(){return{descriptor:p,registry:u,getDraggableRef:o,canDragInteractiveElements:y,shouldRespectForcePress:m,isEnabled:v}}),[p,u,o,y,m,v]));var w=G((function(){return v?{tabIndex:0,role:"button","aria-describedby":c,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Ko}:null}),[a,c,h,v]),x=$((function(e){"DRAGGING"===g.type&&g.dropping&&"transform"===e.propertyName&&O()}),[O,g]),j=G((function(){var e=zo(g),t="DRAGGING"===g.type&&g.dropping?x:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:w}}),[a,w,h,g,x,n]),E=G((function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}}),[p.droppableId,p.id,p.index,p.type]);return d(j,g.snapshot,E)}));function $o(e){return Co(Ao).isUsingCloneFor!==e.draggableId||e.isClone?o.a.createElement(Go,e):null}function Yo(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return o.a.createElement($o,Object(a.a)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var Xo=function(e,t){return e===t.droppable.type},Zo=function(e,t){return t.draggables[e.draggable.id]};var Jo={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||pe(!1),document.body}},Qo=K((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=Object(a.a)({},e,{shouldAnimatePlaceholder:!1}),n=Object(ae.a)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=Object(ae.a)((function(r,o,i,a,c,u){var s=c.descriptor.id;if(c.descriptor.droppableId===r){var l=u?{render:u,dragging:n(c.descriptor)}:null,f={isDraggingOver:i,draggingOverWith:i?s:null,draggingFromThisWith:s,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:f,useClone:l}}if(!o)return t;if(!a)return e;var p={isDraggingOver:i,draggingOverWith:s,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,c=!o.isDropDisabled,u=o.renderClone;if(n.isDragging){var s=n.critical;if(!Xo(a,s))return t;var l=Zo(s,n.dimensions),f=Nt(n.impact)===i;return r(i,c,f,f,l,u)}if("DROP_ANIMATING"===n.phase){var p=n.completed;if(!Xo(a,p.critical))return t;var d=Zo(p.critical,n.dimensions);return r(i,c,Uo(p.result)===i,Nt(p.impact)===i,d,u)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!Xo(a,h.critical))return t;var v=Nt(h.impact)===i,m=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),y=h.critical.droppable.id===i;return v?m?e:t:y?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Mr,pure:!0,areStatePropsEqual:Vo})((function(e){var t=Object(r.useContext)(Ir);t||pe(!1);var n=t.contextId,i=t.isMovementAllowed,a=Object(r.useRef)(null),c=Object(r.useRef)(null),u=e.children,s=e.droppableId,l=e.type,f=e.mode,p=e.direction,d=e.ignoreContainerClipping,h=e.isDropDisabled,v=e.isCombineEnabled,m=e.snapshot,y=e.useClone,b=e.updateViewportMaxScroll,g=e.getContainerForClone,O=$((function(){return a.current}),[]),w=$((function(e){a.current=e}),[]),x=($((function(){return c.current}),[]),$((function(e){c.current=e}),[]));Fr();var j=$((function(){i()&&b({maxScroll:Hn()})}),[i,b]);!function(e){var t=Object(r.useRef)(null),n=Co(Ir),o=Dr("droppable"),i=n.registry,a=n.marshal,c=Br(e),u=G((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),s=Object(r.useRef)(u),l=G((function(){return Object(ae.a)((function(e,n){t.current||pe(!1);var r={x:e,y:n};a.updateDroppableScroll(u.id,r)}))}),[u.id,a]),f=$((function(){var e=t.current;return e&&e.env.closestScrollable?wo(e.env.closestScrollable):xe}),[]),p=$((function(){var e=f();l(e.x,e.y)}),[f,l]),d=G((function(){return ce(p)}),[p]),h=$((function(){var e=t.current,n=Po(e);e&&n||pe(!1),e.scrollOptions.shouldPublishImmediately?p():d()}),[d,p]),v=$((function(e,r){t.current&&pe(!1);var o=c.current,i=o.getDroppableRef();i||pe(!1);var a=xo(i),s={ref:i,descriptor:u,env:a,scrollOptions:r};t.current=s;var l=jo({ref:i,descriptor:u,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),f=a.closestScrollable;return f&&(f.setAttribute(Or.contextId,n.contextId),f.addEventListener("scroll",h,_o(s.scrollOptions))),l}),[n.contextId,u,h,c]),m=$((function(){var e=t.current,n=Po(e);return e&&n||pe(!1),wo(n)}),[]),y=$((function(){var e=t.current;e||pe(!1);var n=Po(e);t.current=null,n&&(d.cancel(),n.removeAttribute(Or.contextId),n.removeEventListener("scroll",h,_o(e.scrollOptions)))}),[h,d]),b=$((function(e){var n=t.current;n||pe(!1);var r=Po(n);r||pe(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),g=G((function(){return{getDimensionAndWatchScroll:v,getScrollWhileDragging:m,dragStopped:y,scroll:b}}),[y,v,m,b]),O=G((function(){return{uniqueId:o,descriptor:u,callbacks:g}}),[g,u,o]);xr((function(){return s.current=O.descriptor,i.droppable.register(O),function(){t.current&&y(),i.droppable.unregister(O)}}),[g,u,y,O,a,i.droppable]),xr((function(){t.current&&a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),xr((function(){t.current&&a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:s,type:l,mode:f,direction:p,isDropDisabled:h,isCombineEnabled:v,ignoreContainerClipping:d,getDroppableRef:O});var E=o.a.createElement(Ro,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,i=e.animate;return o.a.createElement(To,{placeholder:r,onClose:t,innerRef:x,animate:i,contextId:n,onTransitionEnd:j})})),S=G((function(){return{innerRef:w,placeholder:E,droppableProps:{"data-rbd-droppable-id":s,"data-rbd-droppable-context-id":n}}}),[n,s,E,w]),_=y?y.dragging.draggableId:null,C=G((function(){return{droppableId:s,type:l,isUsingCloneFor:_}}),[s,_,l]);return o.a.createElement(Ao.Provider,{value:C},u(S,m),function(){if(!y)return null;var e=y.dragging,t=y.render,n=o.a.createElement($o,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return W.a.createPortal(n,g())}())}));Qo.defaultProps=Jo},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(0),o=n(5),i=n.n(o),a=n(775),c=n(628),u=n(363),s=n(196),l=n(786),f=n(920),p=n(674),d=n(110);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=function(e){var t,n,o,a,c=e.prefixCls,u=e.children,l=e.actions,f=e.extra,m=e.className,y=e.colStyle,b=v(e,["prefixCls","children","actions","extra","className","colStyle"]),g=r.useContext(_),O=g.grid,w=g.itemLayout,x=r.useContext(s.b).getPrefixCls,j=x("list",c),E=l&&l.length>0&&r.createElement("ul",{className:"".concat(j,"-item-action"),key:"actions"},l.map((function(e,t){return r.createElement("li",{key:"".concat(j,"-item-action-").concat(t)},e,t!==l.length-1&&r.createElement("em",{className:"".concat(j,"-item-action-split")}))}))),S=O?"div":"li",C=r.createElement(S,h({},b,{className:i()("".concat(j,"-item"),m,(t={},n="".concat(j,"-item-no-flex"),o=!("vertical"===w?f:(r.Children.forEach(u,(function(e){"string"==typeof e&&(a=!0)})),!(a&&r.Children.count(u)>1))),n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t))}),"vertical"===w&&f?[r.createElement("div",{className:"".concat(j,"-item-main"),key:"content"},u,E),r.createElement("div",{className:"".concat(j,"-item-extra"),key:"extra"},f)]:[u,E,Object(d.a)(f,{key:"extra"})]);return O?r.createElement(p.a,{flex:1,style:y},C):C};m.Meta=function(e){var t=e.prefixCls,n=e.className,o=e.avatar,a=e.title,c=e.description,u=v(e,["prefixCls","className","avatar","title","description"]),l=(0,r.useContext(s.b).getPrefixCls)("list",t),f=i()("".concat(l,"-item-meta"),n),p=r.createElement("div",{className:"".concat(l,"-item-meta-content")},a&&r.createElement("h4",{className:"".concat(l,"-item-meta-title")},a),c&&r.createElement("div",{className:"".concat(l,"-item-meta-description")},c));return r.createElement("div",h({},u,{className:f}),o&&r.createElement("div",{className:"".concat(l,"-item-meta-avatar")},o),(a||c)&&p)};var y=m;function b(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||x(e)||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 g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||x(e,t)||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 x(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},_=r.createContext({});_.Consumer;function C(e){var t,n=e.pagination,o=void 0!==n&&n,p=e.prefixCls,d=e.bordered,h=void 0!==d&&d,v=e.split,m=void 0===v||v,y=e.className,x=e.children,j=e.itemLayout,C=e.loadMore,P=e.grid,k=e.dataSource,M=void 0===k?[]:k,N=e.size,T=e.header,A=e.footer,R=e.loading,D=void 0!==R&&R,I=e.rowKey,L=e.renderItem,F=e.locale,z=S(e,["pagination","prefixCls","bordered","split","className","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),B=o&&"object"===E(o)?o:{},H=w(r.useState(B.defaultCurrent||1),2),K=H[0],V=H[1],U=w(r.useState(B.defaultPageSize||10),2),W=U[0],q=U[1],G=r.useContext(s.b),$=G.getPrefixCls,Y=G.renderEmpty,X=G.direction,Z={},J=function(e){return function(t,n){V(t),q(n),o&&o[e]&&o[e](t,n)}},Q=J("onChange"),ee=J("onShowSizeChange"),te=$("list",p),ne=D;"boolean"==typeof ne&&(ne={spinning:ne});var re=ne&&ne.spinning,oe="";switch(N){case"large":oe="lg";break;case"small":oe="sm"}var ie=i()(te,y,(O(t={},"".concat(te,"-vertical"),"vertical"===j),O(t,"".concat(te,"-").concat(oe),oe),O(t,"".concat(te,"-split"),m),O(t,"".concat(te,"-bordered"),h),O(t,"".concat(te,"-loading"),re),O(t,"".concat(te,"-grid"),P),O(t,"".concat(te,"-something-after-last-item"),!!(C||o||A)),O(t,"".concat(te,"-rtl"),"rtl"===X),t)),ae=g(g(g({},{current:1,total:0}),{total:M.length,current:K,pageSize:W}),o||{}),ce=Math.ceil(ae.total/ae.pageSize);ae.current>ce&&(ae.current=ce);var ue=o?r.createElement("div",{className:"".concat(te,"-pagination")},r.createElement(l.a,g({},ae,{onChange:Q,onShowSizeChange:ee}))):null,se=b(M);o&&M.length>(ae.current-1)*ae.pageSize&&(se=b(M).splice((ae.current-1)*ae.pageSize,ae.pageSize));var le=Object(c.a)(),fe=r.useMemo((function(){for(var e=0;e<u.b.length;e+=1){var t=u.b[e];if(le[t])return t}}),[le]),pe=r.useMemo((function(){if(P){var e=fe&&P[fe]?P[fe]:P.column;return e?{width:"".concat(100/e,"%"),maxWidth:"".concat(100/e,"%")}:void 0}}),[null==P?void 0:P.column,fe]),de=re&&r.createElement("div",{style:{minHeight:53}});if(se.length>0){var he=se.map((function(e,t){return function(e,t){return L?((n="function"==typeof I?I(e):"string"==typeof I?e[I]:e.key)||(n="list-item-".concat(t)),Z[t]=n,L(e,t)):null;var n}(e,t)})),ve=r.Children.map(he,(function(e,t){return r.createElement("div",{key:Z[t],style:pe},e)}));de=P?r.createElement(f.a,{gutter:P.gutter},ve):r.createElement("ul",{className:"".concat(te,"-items")},he)}else x||re||(de=function(e,t){return r.createElement("div",{className:"".concat(e,"-empty-text")},F&&F.emptyText||t("List"))}(te,Y));var me=ae.position||"bottom";return r.createElement(_.Provider,{value:{grid:P,itemLayout:j}},r.createElement("div",g({className:ie},z),("top"===me||"both"===me)&&ue,T&&r.createElement("div",{className:"".concat(te,"-header")},T),r.createElement(a.a,ne,de,x),A&&r.createElement("div",{className:"".concat(te,"-footer")},A),C||("bottom"===me||"both"===me)&&ue))}C.Item=y;t.b=C},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(121);function o(e,t){return t?Object(r.a)((function(){return e}),t):Object(r.a)((function(){return e}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(112);function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return r.a.apply(void 0,o(t.map((function(e){var t=e.apply(void 0,n);if(!t)throw new TypeError('combineEpics: one of the provided Epics "'+(e.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return t}))))};try{Object.defineProperty(i,"name",{value:"combineEpics("+t.map((function(e){return e.name||"<anonymous>"})).join(", ")+")"})}catch(e){}return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4),o=n(7);function i(){return function(e){return e.lift(new a)}}var a=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new c(e))},e}(),c=function(e){function t(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return r.__extends(t,e),t.prototype._next=function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)},t}(o.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(932)),o=c(n(933)),i=c(n(934)),a=c(n(1056));function c(e){return e&&e.__esModule?e:{default:e}}var u="${label} is not a valid ${type}",s={locale:"en",Pagination:r.default,DatePicker:o.default,TimePicker:i.default,Calendar:a.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{defaultValidateMessages:{default:"Field validation error ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label} must be ${len} characters",min:"${label} at least ${min} characters",max:"${label} up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} minimum value is ${min}",max:"${label} maximum value is ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};t.default=s},,function(e,t,n){var r=n(617);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(806)("keys"),o=n(741);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(591),o=n(550),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(740)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(803);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports={}},function(e,t,n){var r=n(646),o=n(1108),i=n(807),a=n(805)("IE_PROTO"),c=function(){},u=function(){var e,t=n(940)("iframe"),r=i.length;for(t.style.display="none",n(1109).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(616).f,o=n(593),i=n(619)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){t.f=n(619)},function(e,t,n){var r=n(550),o=n(591),i=n(740),a=n(813),c=n(616).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||c(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(278),o=n(1203),i=n(162);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){var r=n(279)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(365);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(4).__exportStar(n(820),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.languages=["af","am","ar","auto","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","de","el","en","eo","es","et","eu","fa","fi","fil","fj","fr","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","id","ig","is","it","ja","jw","ka","kk","km","kn","ko","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","pt","ro","ru","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","th","tlh","tlh-Qaak","to","tr","ty","ug","uk","ur","uz","vi","wyw","xh","yi","yo","yua","yue","zh-CN","zh-TW","zu"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super(e)}}t.TranslateError=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4).__importDefault(n(47)),o=n(823),i=n(824);t.Translator=class{constructor(e={}){this.env=e.env||"node",this.axios=e.axios||r.default,this.config=e.config||{}}async translate(e,t,n,r={}){return{...await this.query(e,t,n,{...this.config,...r}),engine:this.name}}request(e,t){return"ext"===this.env&&t&&t.headers?o.modifyExtraHeaders(e,t).then(t=>this.axios(e,t)):this.axios(e,t)}async detect(e){return i.detectLang(e)}textToSpeech(e,t,n){return Promise.resolve(null)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r="undefined"!=typeof browser?browser:"undefined"!=typeof chrome?chrome:null,o={},i={},a=/^(Origin|Referer|Host|Cookie|User-Agent|DNT|Accept-Charset|Accept-Encoding)$/i,c=/^(Origin|Referer)$/i;function u(e){console.warn(e)}function s(){return"undefined"!=typeof chrome?chrome:"undefined"!=typeof self&&self.chrome?self.chrome:null}function l(){const e=s();return e&&e.declarativeNetRequest?e.declarativeNetRequest:r&&r.declarativeNetRequest?r.declarativeNetRequest:void 0}async function f(e,t,n){const o=l();if(!o)throw new Error("declarativeNetRequest is unavailable in MV3 context.");const i=[];t&&i.push({header:"origin",operation:"set",value:t}),n&&i.push({header:"referer",operation:"set",value:n});const a={regexFilter:`^${c=e.slice(0,-1),c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}.*`};var c;const u=function(){if(r&&r.tabs&&"number"==typeof r.tabs.TAB_ID_NONE)return r.tabs.TAB_ID_NONE;const e=s();return e&&e.tabs&&"number"==typeof e.tabs.TAB_ID_NONE?e.tabs.TAB_ID_NONE:void 0}();"number"==typeof u&&(a.tabIds=[u]);const f=function(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return 104729+(t>>>0)%1e9}(e);await function(e,t){if(e.updateSessionRules.length>=2)return new Promise((n,o)=>{e.updateSessionRules(t,()=>{const e=s(),t=e&&e.runtime||r&&r.runtime||null;t&&t.lastError?o(new Error(t.lastError.message)):n()})});const n=e.updateSessionRules(t);return n&&"function"==typeof n.then?n:Promise.resolve()}(o,{removeRuleIds:[f],addRules:[{id:f,priority:1,action:{type:"modifyHeaders",requestHeaders:i},condition:a}]})}async function p(e,t,n){if(!r)return void u("Missing Browser Global");const a=new URL(e).origin+"/*";if(!t&&!n)return;const s=i[a];if(s)return s.origin===t&&s.referer===n||u("Header modifier conflict detected for "+a),void(!0!==o[a]&&await o[a]);if(i[a]={origin:t,referer:n},function(){if(!r||!r.runtime||"function"!=typeof r.runtime.getManifest)return!1;const e=r.runtime.getManifest();return!(!e||3!==e.manifest_version)}()&&l()){const e=f(a,t,n).then(()=>{o[a]=!0}).catch(e=>{throw delete o[a],delete i[a],e});return o[a]=e,void await e}!function(e,t,n){if(!r||!r.webRequest||!r.webRequest.onBeforeSendHeaders)return void u("Missing Browser webRequest API");const o=["blocking","requestHeaders"];r.webRequest.OnBeforeSendHeadersOptions&&r.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS")&&o.push("extraHeaders"),r.webRequest.onBeforeSendHeaders.addListener(e=>{if(e&&e.requestHeaders){const r=e.requestHeaders.filter(e=>!c.test(e.name));return t&&r.push({name:"Origin",value:t}),n&&r.push({name:"Referer",value:n}),{requestHeaders:r}}return e},{urls:[e]},o)}(a,t,n),o[a]=!0}t.modifyExtraHeaders=(e,t)=>{if(!t.headers)return Promise.resolve(t);const n=Object.keys(t.headers),r={};let o,i;for(let e=0;e<n.length;e++){const c=n[e];a.test(c)?/^Origin$/i.test(c)?o=t.headers[c]:/^Referer$/i.test(c)&&(i=t.headers[c]):r[c]=t.headers[c]}return p(e,o||i,i||o).then(()=>({...t,headers:r}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4).__importDefault(n(955)),o=new Map([["eng","en"],["jpn","ja"],["kor","ko"],["cmn","zh-CN"]]),i={minLength:1,whitelist:[...o.keys()]};t.detectLang=function(e){return o.get(r.default(e,i))||"auto"}},function(e,t,n){"use strict";function r(e){if("number"!=typeof e||isNaN(e)||e<1||e===1/0)throw new Error("`"+e+"` is not a valid argument for n-gram");return function(t){var n,r=[];if(null==t)return r;if(t=t.slice?t:String(t),(n=t.length-e+1)<1)return r;for(;n--;)r[n]=t.slice(n,n+e);return r}}e.exports=r,r.bigram=r(2),r.trigram=r(3)},function(e,t,n){"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?t.push(n.charAt(o>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|n.indexOf(e.charAt(r))>>>6-2*o);return t}},e.exports=r},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)} +/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh <https://feross.org> + * @license MIT + */ +e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){"use strict";var r=n(595),o=n(650),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,s=function(e,t){u.apply(e,c(t)?t:[t])},l=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,n,o,i,a,u,l,f,d,h,v,m,y){var b,g=t;if("function"==typeof l?g=l(n,g):g instanceof Date?g=h(g):"comma"===o&&c(g)&&(g=r.maybeMap(g,(function(e){return e instanceof Date?h(e):e})).join(",")),null===g){if(i)return u&&!m?u(n,p.encoder,y,"key"):n;g=""}if("string"==typeof(b=g)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||r.isBuffer(g))return u?[v(m?n:u(n,p.encoder,y,"key"))+"="+v(u(g,p.encoder,y,"value"))]:[v(n)+"="+v(String(g))];var O,w=[];if(void 0===g)return w;if(c(l))O=l;else{var x=Object.keys(g);O=f?x.sort(f):x}for(var j=0;j<O.length;++j){var E=O[j],S=g[E];if(!a||null!==S){var _=c(g)?"function"==typeof o?o(n,E):n:n+(d?"."+E:"["+E+"]");s(w,e(S,_,o,i,a,u,l,f,d,h,v,m,y))}}return w};e.exports=function(e,t){var n,r=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],a=p.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?r=(0,u.filter)("",r):c(u.filter)&&(n=u.filter);var l,f=[];if("object"!=typeof r||null===r)return"";l=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=a[l];n||(n=Object.keys(r)),u.sort&&n.sort(u.sort);for(var v=0;v<n.length;++v){var m=n[v];u.skipNulls&&null===r[m]||s(f,d(r[m],m,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var y=f.join(u.delimiter),b=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),y.length>0?b+y:""}},function(e,t,n){"use strict";var r=n(595),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=c?i.slice(0,c.index):i,l=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var f=0;n.depth>0&&null!==(c=a.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(c[1])}return c&&l.push("["+i.slice(c.index)+"]"),function(e,t,n,r){for(var o=r?t:u(t,n),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=parseInt(s,10);n.parseArrays||""!==s?!isNaN(l)&&c!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:a[s]=o:a={0:o}}o=a}return o}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,s={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=l.split(t.delimiter,f),d=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?h="utf-8":"utf8=%26%2310003%3B"===p[n]&&(h="iso-8859-1"),d=n,n=p.length);for(n=0;n<p.length;++n)if(n!==d){var v,m,y=p[n],b=y.indexOf("]="),g=-1===b?y.indexOf("="):b+1;-1===g?(v=t.decoder(y,a.decoder,h,"key"),m=t.strictNullHandling?null:""):(v=t.decoder(y.slice(0,g),a.decoder,h,"key"),m=r.maybeMap(u(y.slice(g+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=c(m)),y.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(s,v)?s[v]=r.combine(s[v],m):s[v]=m}return s}(e,n):e,f=n.plainObjects?Object.create(null):{},p=Object.keys(l),d=0;d<p.length;++d){var h=p[d],v=s(h,l[h],n,"string"==typeof e);f=r.merge(f,v,n)}return r.compact(f)}},,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4).__importDefault(n(236)),o=n(651);t.Single=class{constructor(e,t,n,r){this.base=e,this.request=t,this.langMap=n,this.langMapReverse=r,this.token={date:0}}async translate(e,t,n){const r="api"===this.base?await this.queryAPI(e,t,n):await this.query(e,t,n);if(!r)throw new Error("NETWORK_ERROR");if(!r[0]||r[0].length<=0)throw new Error("API_SERVER_ERROR");const o=r[0].map(e=>e[0]).filter(Boolean).join(" ");return{text:e,from:this.langMapReverse.get(r[2])||"auto",to:n,origin:{paragraphs:e.split(/\n+/),tts:await this.textToSpeech(e,t)||""},trans:{paragraphs:o.split(/(\n ?)+/),tts:await this.textToSpeech(o,n)||""}}}async queryAPI(e,t,n){const{data:o}=await this.request("https://translate.googleapis.com/translate_a/single?"+r.default.stringify({client:"gtx",dt:"t",sl:this.langMap.get(t),tl:this.langMap.get(n),q:e}),{method:"GET",headers:{Referer:"https://translate.google.com",Origin:"https://translate.google.com"}});return o}async query(e,t,n){if(Date.now()-this.token.date>3e5)try{await this.updateToken()}catch(e){}if(!this.token.value)throw new Error("API_SERVER_ERROR");const{data:i}=await this.request(`https://translate.google.${this.base}/translate_a/single?`+r.default.stringify({client:"gtx",sl:this.langMap.get(t),tl:this.langMap.get(n),hl:"en",dt:["at","bd","ex","ld","md","qca","rw","rm","sos","ss","t"],otf:"1",ssel:"0",tsel:"0",kc:"1",tk:o.getTK(e,this.token.value.tk1,this.token.value.tk2),q:e},{indices:!1}),{method:"GET",headers:{Referer:"https://translate.google.com",Origin:"https://translate.google.com"}});return i}async fetchPlainText(e,t={}){const{data:n}=await this.request(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"});return n}async updateToken(){const e=await this.fetchPlainText(`https://translate.google.${this.base}/translate_a/element.js`,{method:"GET",headers:{Referer:"https://translate.google.com",Origin:"https://translate.google.com"}});if(!e)throw new Error("API_SERVER_ERROR");const t=e.match(/(?:_ctkk|TKK)[=:]['"](\d+?)\.(\d+?)['"]/i);if(t)this.token.value={tk1:Number(t[1]),tk2:Number(t[2])},this.token.date=Date.now();else{const t=(e.match(/TKK=(.*?)\(\)\)'\);/i)||[""])[0].replace(/\\x([0-9A-Fa-f]{2})/g,"").match(/[+-]?\d+/g);t&&(this.token.value={tk1:Number(t[2]),tk2:Number(t[0])+Number(t[1])},this.token.date=Date.now())}}async textToSpeech(e,t){if(Date.now()-this.token.date>3e5)try{await this.updateToken()}catch(e){}return this.token.value?`https://translate.google.${this.base}/translate_tts?ie=UTF-8&total=1&idx=0&client=webapp&prev=input&`+r.default.stringify({q:e,textlen:e.length,tl:this.langMap.get(t)||"en",tk:o.getTK(e,this.token.value.tk1,this.token.value.tk2)}):null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4).__importDefault(n(236));t.BatchExecute=class{constructor(e,t,n,r){this.base=e,this.request=t,this.langMap=n,this.langMapReverse=r,this.token={date:0}}async translate(e,t,n){const r=await this.searchInternal(e,t,n);return{text:e,from:(r.from.language.iso?this.langMapReverse.get(r.from.language.iso):t)||"auto",to:n,origin:{paragraphs:e.split(/\n+/),tts:"#"},trans:{paragraphs:r.text.split(/(\n ?)+/),tts:"#"}}}async searchInternal(e,t,n){if(Date.now()-this.token.date>3e5)try{await this.updateToken()}catch(e){}if(!this.token.value)throw new Error("API_SERVER_ERROR");const o=await this.fetchPlainText(`https://translate.google.${this.base}/_/TranslateWebserverUi/data/batchexecute?`+r.default.stringify({rpcids:"MkEWBc","f.sid":this.token.value.sid,bl:this.token.value.bl,hl:"en","soc-app":1,"soc-platform":1,"soc-device":1,_reqid:Math.floor(1e3+9e3*Math.random()),rt:"c"},{indices:!1}),{method:"POST",headers:{Referer:"https://translate.google.com",Origin:"https://translate.google.com","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},data:r.default.stringify({"f.req":JSON.stringify([[["MkEWBc",JSON.stringify([[e,this.langMap.get(t),this.langMap.get(n),!0],[null]]),null,"generic"]]]),at:this.token.value.at||void 0})}),i={text:"",pronunciation:"",from:{language:{didYouMean:!1,iso:""},text:{autoCorrected:!1,value:"",didYouMean:!1}},raw:""};let a;a=o.slice(6);const c=(/^\d+/.exec(a)||[""])[0];if(a=JSON.parse(a.slice(c.length,parseInt(c,10)+c.length)),a=JSON.parse(a[0][2]),void 0===a[1][0][0][5]||null===a[1][0][0][5]?i.text=a[1][0][0][0]:a[1][0][0][5].forEach(e=>{e[0]&&(i.text+=e[0])}),i.pronunciation=a[1][0][0][1],a[0]&&a[0][1]&&a[0][1][1]?(i.from.language.didYouMean=!0,i.from.language.iso=a[0][1][1][0]):"auto"===a[1][3]?i.from.language.iso=a[2]:i.from.language.iso=a[1][3],a[0]&&a[0][1]&&a[0][1][0]){let e=a[0][1][0][0][1];e=e.replace(/<b>(<i>)?/g,"["),e=e.replace(/(<\/i>)?<\/b>/g,"]"),i.from.text.value=e,1===a[0][1][0][2]?i.from.text.autoCorrected=!0:i.from.text.didYouMean=!0}return i}async fetchPlainText(e,t={}){const{data:n}=await this.request(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"});return n}async updateToken(){const e=await this.fetchPlainText("https://translate.google."+this.base,{method:"GET",headers:{Referer:"https://translate.google.com",Origin:"https://translate.google.com"}});if(!e)throw new Error("API_SERVER_ERROR");this.token.value={sid:this.extract("FdrFJe",e),bl:this.extract("cfb2h",e),at:this.extract("SNlM0e",e)},this.token.date=Date.now()}extract(e,t){const n=new RegExp(`"${e}":".*?"`).exec(t);return null!==n?n[0].replace(`"${e}":"`,"").slice(0,-1):""}async textToSpeech(e,t){if(Date.now()-this.token.date>3e5)try{await this.updateToken()}catch(e){}if(!this.token.value)throw new Error("API_SERVER_ERROR");let n;n=(await this.fetchPlainText(`https://translate.google.${this.base}/_/TranslateWebserverUi/data/batchexecute?`+r.default.stringify({rpcids:"jQ1olc","f.sid":this.token.value.sid,bl:this.token.value.bl,hl:"en","soc-app":1,"soc-platform":1,"soc-device":1,_reqid:Math.floor(1e3+9e3*Math.random()),rt:"c"},{indices:!1}),{method:"POST",headers:{Referer:"https://translate.google.com",Origin:"https://translate.google.com","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},data:r.default.stringify({"f.req":JSON.stringify([[["jQ1olc",`[${e},${this.langMap.get(t)},null,"null"]`,null,"generic"]]]),at:this.token.value.at||void 0})})).slice(6);const o=(/^\d+/.exec(n)||[""])[0];return n=JSON.parse(n.slice(o.length,parseInt(o,10)+o.length)),n=JSON.parse(n[0][2]),n[0]?"data:audio/mpeg;base64,"+n[0]:null}}},,,,,,,,,,,function(e,t,n){var r;e.exports=(r=n(49),n(500),n(501),r.HmacSHA256)},function(e,t,n){var r;e.exports=(r=n(49),r.enc.Hex)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTMLEntities=function(e){return e.replace(/&([^;]+);/gm,(e,t)=>{switch(t){case"amp":return"&";case"apos":case"#x27":return"'";case"#x2F":return"/";case"#39":return"'";case"#47":return"/";case"lt":return"<";case"gt":return">";case"nbsp":return" ";case"quot":return'"';default:return e}})}},,,,,,,,function(e,t,n){var r;e.exports=(r=n(49),n(502),n(862),n(863),n(267),n(268),window.axios,n(500),n(864),n(652),n(865),n(866),n(867),n(501),n(868),n(237),n(113),n(869),n(870),n(871),n(872),n(873),n(874),n(875),n(876),n(877),n(878),n(879),n(880),n(881),n(882),n(883),n(884),r)},function(e,t,n){var r;e.exports=(r=n(49),function(){if("function"==typeof ArrayBuffer){var e=r.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],o=0;o<n;o++)r[o>>>2]|=e[o]<<24-o%4*8;t.call(this,r,n)}else t.apply(this,arguments)}).prototype=e}}(),r.lib.WordArray)},function(e,t,n){var r;e.exports=(r=n(49),function(){var e=r,t=e.lib.WordArray,n=e.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var n=e.length,r=[],o=0;o<n;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return t.create(r,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var a=o(t[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var n=e.length,r=[],i=0;i<n;i++)r[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return t.create(r,2*n)}}}(),r.enc.Utf16)},function(e,t,n){var r,o,i,a,c,u;e.exports=(u=n(49),n(500),o=(r=u).lib.WordArray,i=r.algo,a=i.SHA256,c=i.SHA224=a.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),r.SHA224=a._createHelper(c),r.HmacSHA224=a._createHmacHelper(c),u.SHA224)},function(e,t,n){var r,o,i,a,c,u,s,l;e.exports=(l=n(49),n(502),n(652),o=(r=l).x64,i=o.Word,a=o.WordArray,c=r.algo,u=c.SHA512,s=c.SHA384=u.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=u._doFinalize.call(this);return e.sigBytes-=16,e}}),r.SHA384=u._createHelper(s),r.HmacSHA384=u._createHmacHelper(s),l.SHA384)},function(e,t,n){var r;e.exports=(r=n(49),n(502),function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.x64.Word,c=t.algo,u=[],s=[],l=[];!function(){for(var e=1,t=0,n=0;n<24;n++){u[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)s[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var c=0,f=0,p=0;p<7;p++){if(1&o){var d=(1<<p)-1;d<32?f^=1<<d:c^=1<<d-32}128&o?o=o<<1^113:o<<=1}l[i]=a.create(c,f)}}();var f=[];!function(){for(var e=0;e<25;e++)f[e]=a.create()}();var p=c.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var i=e[t+2*o],a=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(P=n[o]).high^=a,P.low^=i}for(var c=0;c<24;c++){for(var p=0;p<5;p++){for(var d=0,h=0,v=0;v<5;v++)d^=(P=n[p+5*v]).high,h^=P.low;var m=f[p];m.high=d,m.low=h}for(p=0;p<5;p++){var y=f[(p+4)%5],b=f[(p+1)%5],g=b.high,O=b.low;for(d=y.high^(g<<1|O>>>31),h=y.low^(O<<1|g>>>31),v=0;v<5;v++)(P=n[p+5*v]).high^=d,P.low^=h}for(var w=1;w<25;w++){var x=(P=n[w]).high,j=P.low,E=u[w];E<32?(d=x<<E|j>>>32-E,h=j<<E|x>>>32-E):(d=j<<E-32|x>>>64-E,h=x<<E-32|j>>>64-E);var S=f[s[w]];S.high=d,S.low=h}var _=f[0],C=n[0];for(_.high=C.high,_.low=C.low,p=0;p<5;p++)for(v=0;v<5;v++){var P=n[w=p+5*v],k=f[w],M=f[(p+1)%5+5*v],N=f[(p+2)%5+5*v];P.high=k.high^~M.high&N.high,P.low=k.low^~M.low&N.low}P=n[0];var T=l[c];P.high^=T.high,P.low^=T.low}},_doFinalize:function(){var t=this._data,n=t.words,r=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,c=this.cfg.outputLength/8,u=c/8,s=[],l=0;l<u;l++){var f=a[l],p=f.high,d=f.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),s.push(d),s.push(p)}return new o.init(s,c)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=i._createHelper(p),t.HmacSHA3=i._createHmacHelper(p)}(Math),r.SHA3)},function(e,t,n){var r;e.exports=(r=n(49), +/** @preserve + (c) 2012 by Cédric Mesnil. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,c=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),s=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=o.create([0,1518500249,1859775393,2400959708,2840853838]),p=o.create([1352829926,1548603684,1836072691,2053994217,0]),d=a.RIPEMD160=i.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,a,d,O,w,x,j,E,S,_,C,P=this._hash.words,k=f.words,M=p.words,N=c.words,T=u.words,A=s.words,R=l.words;for(x=i=P[0],j=a=P[1],E=d=P[2],S=O=P[3],_=w=P[4],n=0;n<80;n+=1)C=i+e[t+N[n]]|0,C+=n<16?h(a,d,O)+k[0]:n<32?v(a,d,O)+k[1]:n<48?m(a,d,O)+k[2]:n<64?y(a,d,O)+k[3]:b(a,d,O)+k[4],C=(C=g(C|=0,A[n]))+w|0,i=w,w=O,O=g(d,10),d=a,a=C,C=x+e[t+T[n]]|0,C+=n<16?b(j,E,S)+M[0]:n<32?y(j,E,S)+M[1]:n<48?m(j,E,S)+M[2]:n<64?v(j,E,S)+M[3]:h(j,E,S)+M[4],C=(C=g(C|=0,R[n]))+_|0,x=_,_=S,S=g(E,10),E=j,j=C;C=P[1]+d+S|0,P[1]=P[2]+O+_|0,P[2]=P[3]+w+x|0,P[3]=P[4]+i+j|0,P[4]=P[0]+a+E|0,P[0]=C},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var c=i[a];i[a]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return o},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,n){return e^t^n}function v(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function b(e,t,n){return e^(t|~n)}function g(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(d),t.HmacRIPEMD160=i._createHmacHelper(d)}(Math),r.RIPEMD160)},function(e,t,n){var r,o,i,a,c,u,s,l,f;e.exports=(f=n(49),window.axios,n(501),o=(r=f).lib,i=o.Base,a=o.WordArray,c=r.algo,u=c.SHA1,s=c.HMAC,l=c.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),o=a.create(),i=a.create([1]),c=o.words,u=i.words,l=n.keySize,f=n.iterations;c.length<l;){var p=r.update(t).finalize(i);r.reset();for(var d=p.words,h=d.length,v=p,m=1;m<f;m++){v=r.finalize(v),r.reset();for(var y=v.words,b=0;b<h;b++)d[b]^=y[b]}o.concat(p),u[0]++}return o.sigBytes=4*l,o}}),r.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)},f.PBKDF2)},function(e,t,n){var r;e.exports=(r=n(49),n(113),r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();function t(e,t,n,r){var o=this._iv;if(o){var i=o.slice(0);this._iv=void 0}else i=this._prevBlock;r.encryptBlock(i,0);for(var a=0;a<n;a++)e[t+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o,r),this._prevBlock=e.slice(n,n+o)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,i=e.slice(n,n+o);t.call(this,e,n,o,r),this._prevBlock=i}}),e}(),r.mode.CFB)},function(e,t,n){var r,o,i;e.exports=(i=n(49),n(113),i.mode.CTR=(r=i.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var a=i.slice(0);n.encryptBlock(a,0),i[r-1]=i[r-1]+1|0;for(var c=0;c<r;c++)e[t+c]^=a[c]}}),r.Decryptor=o,r),i.mode.CTR)},function(e,t,n){var r;e.exports=(r=n(49),n(113), +/** @preserve + * Counter block mode compatible with Dr Brian Gladman fileenc.c + * derived from CryptoJS.mode.CTR + * Jan Hruby jhruby.web@gmail.com + */ +r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}var n=e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var c=a.slice(0);r.encryptBlock(c,0);for(var u=0;u<o;u++)e[n+u]^=c[u]}});return e.Decryptor=n,e}(),r.mode.CTRGladman)},function(e,t,n){var r,o,i;e.exports=(i=n(49),n(113),i.mode.OFB=(r=i.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var a=0;a<r;a++)e[t+a]^=i[a]}}),r.Decryptor=o,r),i.mode.OFB)},function(e,t,n){var r,o;e.exports=(o=n(49),n(113),o.mode.ECB=((r=o.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),r.Decryptor=r.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),r),o.mode.ECB)},function(e,t,n){var r;e.exports=(r=n(49),n(113),r.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Ansix923)},function(e,t,n){var r;e.exports=(r=n(49),n(113),r.pad.Iso10126={pad:function(e,t){var n=4*t,o=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(o-1)).concat(r.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Iso10126)},function(e,t,n){var r;e.exports=(r=n(49),n(113),r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971)},function(e,t,n){var r;e.exports=(r=n(49),n(113),r.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},r.pad.ZeroPadding)},function(e,t,n){var r;e.exports=(r=n(49),n(113),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)},function(e,t,n){var r,o,i,a;e.exports=(a=n(49),n(113),o=(r=a).lib.CipherParams,i=r.enc.Hex,r.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return o.create({ciphertext:t})}},a.format.Hex)},function(e,t,n){var r;e.exports=(r=n(49),n(267),n(268),n(237),n(113),function(){var e=r,t=e.lib.BlockCipher,n=e.algo,o=[],i=[],a=[],c=[],u=[],s=[],l=[],f=[],p=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var h=r^r<<1^r<<2^r<<3^r<<4;h=h>>>8^255&h^99,o[n]=h,i[h]=n;var v=e[n],m=e[v],y=e[m],b=257*e[h]^16843008*h;a[n]=b<<24|b>>>8,c[n]=b<<16|b>>>16,u[n]=b<<8|b>>>24,s[n]=b,b=16843009*y^65537*m^257*v^16843008*n,l[h]=b<<24|b>>>8,f[h]=b<<16|b>>>16,p[h]=b<<8|b>>>24,d[h]=b,n?(n=v^e[e[e[y^v]]],r^=e[e[r]]):n=r=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],a=0;a<r;a++)if(a<n)i[a]=t[a];else{var c=i[a-1];a%n?n>6&&a%n==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=h[a/n|0]<<24),i[a]=i[a-n]^c}for(var u=this._invKeySchedule=[],s=0;s<r;s++)a=r-s,c=s%4?i[a]:i[a-4],u[s]=s<4||a<=4?c:l[o[c>>>24]]^f[o[c>>>16&255]]^p[o[c>>>8&255]]^d[o[255&c]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,c,u,s,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,l,f,p,d,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,a,c){for(var u=this._nRounds,s=e[t]^n[0],l=e[t+1]^n[1],f=e[t+2]^n[2],p=e[t+3]^n[3],d=4,h=1;h<u;h++){var v=r[s>>>24]^o[l>>>16&255]^i[f>>>8&255]^a[255&p]^n[d++],m=r[l>>>24]^o[f>>>16&255]^i[p>>>8&255]^a[255&s]^n[d++],y=r[f>>>24]^o[p>>>16&255]^i[s>>>8&255]^a[255&l]^n[d++],b=r[p>>>24]^o[s>>>16&255]^i[l>>>8&255]^a[255&f]^n[d++];s=v,l=m,f=y,p=b}v=(c[s>>>24]<<24|c[l>>>16&255]<<16|c[f>>>8&255]<<8|c[255&p])^n[d++],m=(c[l>>>24]<<24|c[f>>>16&255]<<16|c[p>>>8&255]<<8|c[255&s])^n[d++],y=(c[f>>>24]<<24|c[p>>>16&255]<<16|c[s>>>8&255]<<8|c[255&l])^n[d++],b=(c[p>>>24]<<24|c[s>>>16&255]<<16|c[l>>>8&255]<<8|c[255&f])^n[d++],e[t]=v,e[t+1]=m,e[t+2]=y,e[t+3]=b},keySize:8});e.AES=t._createHelper(v)}(),r.AES)},function(e,t,n){var r;e.exports=(r=n(49),n(267),n(268),n(237),n(113),function(){var e=r,t=e.lib,n=t.WordArray,o=t.BlockCipher,i=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],s=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var s=o[i]=[],l=u[i];for(n=0;n<24;n++)s[n/6|0]|=t[(c[n]-1+l)%28]<<31-n%6,s[4+(n/6|0)]|=t[28+(c[n+24]-1+l)%28]<<31-n%6;for(s[0]=s[0]<<1|s[0]>>>31,n=1;n<7;n++)s[n]=s[n]>>>4*(n-1)+3;s[7]=s[7]<<5|s[7]>>>27}var f=this._invSubKeys=[];for(n=0;n<16;n++)f[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),p.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,a=this._rBlock,c=0,u=0;u<8;u++)c|=s[u][((a^o[u])&l[u])>>>0];this._lBlock=a,this._rBlock=i^c}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,p.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function d(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=o._createHelper(f);var h=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;this._des1=f.createEncryptor(n.create(e.slice(0,2))),this._des2=f.createEncryptor(n.create(e.slice(2,4))),this._des3=f.createEncryptor(n.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(h)}(),r.TripleDES)},function(e,t,n){var r;e.exports=(r=n(49),n(267),n(268),n(237),n(113),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,o=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var a=o%n,c=t[a>>>2]>>>24-a%4*8&255;i=(i+r[o]+c)%256;var u=r[o];r[o]=r[i],r[i]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}e.RC4=t._createHelper(o);var a=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(a)}(),r.RC4)},function(e,t,n){var r;e.exports=(r=n(49),n(267),n(268),n(237),n(113),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,o=[],i=[],a=[],c=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)u.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var i=t.words,a=i[0],c=i[1],s=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),f=s>>>16|4294901760&l,p=l<<16|65535&s;for(o[0]^=s,o[1]^=f,o[2]^=l,o[3]^=p,o[4]^=s,o[5]^=f,o[6]^=l,o[7]^=p,n=0;n<4;n++)u.call(this)}},_doProcessBlock:function(e,t){var n=this._X;u.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,c=r>>>16,u=((o*o>>>17)+o*c>>>15)+c*c,s=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=u^s}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(c)}(),r.Rabbit)},function(e,t,n){var r;e.exports=(r=n(49),n(267),n(268),n(237),n(113),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,o=[],i=[],a=[],c=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)u.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var i=t.words,a=i[0],c=i[1],s=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),f=s>>>16|4294901760&l,p=l<<16|65535&s;for(r[0]^=s,r[1]^=f,r[2]^=l,r[3]^=p,r[4]^=s,r[5]^=f,r[6]^=l,r[7]^=p,o=0;o<4;o++)u.call(this)}},_doProcessBlock:function(e,t){var n=this._X;u.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,c=r>>>16,u=((o*o>>>17)+o*c>>>15)+c*c,s=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=u^s}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(c)}(),r.RabbitLegacy)},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__; +/** + * [js-sha256]{@link https://github.com/emn178/js-sha256} + * + * @version 0.9.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2014-2017 + * @license MIT + */!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__(348),ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createOutputMethod(r,e)}return t},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(e){if("string"==typeof e)return crypto.createHash(algorithm).update(e,"utf8").digest("hex");if(null==e)throw new Error(ERROR);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod},createHmacOutputMethod=function(e,t){return function(n,r){return new HmacSha256(n,t,!0).update(r)[e]()}},createHmacMethod=function(e){var t=createHmacOutputMethod("hex",e);t.create=function(t){return new HmacSha256(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createHmacOutputMethod(r,e)}return t};function Sha256(e,t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function HmacSha256(e,t,n){var r,o=typeof e;if("string"===o){var i,a=[],c=e.length,u=0;for(r=0;r<c;++r)(i=e.charCodeAt(r))<128?a[u++]=i:i<2048?(a[u++]=192|i>>6,a[u++]=128|63&i):i<55296||i>=57344?(a[u++]=224|i>>12,a[u++]=128|i>>6&63,a[u++]=128|63&i):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++r)),a[u++]=240|i>>18,a[u++]=128|i>>12&63,a[u++]=128|i>>6&63,a[u++]=128|63&i);e=a}else{if("object"!==o)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var s=[],l=[];for(r=0;r<64;++r){var f=e[r]||0;s[r]=92^f,l[r]=54^f}Sha256.call(this,t,n),this.update(l),this.oKeyPad=s,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var r,o,i=0,a=e.length,c=this.blocks;i<a;){if(this.hashed&&(this.hashed=!1,c[0]=this.block,c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0),t)for(o=this.start;i<a&&o<64;++i)c[o>>2]|=e[i]<<SHIFT[3&o++];else for(o=this.start;i<a&&o<64;++i)(r=e.charCodeAt(i))<128?c[o>>2]|=r<<SHIFT[3&o++]:r<2048?(c[o>>2]|=(192|r>>6)<<SHIFT[3&o++],c[o>>2]|=(128|63&r)<<SHIFT[3&o++]):r<55296||r>=57344?(c[o>>2]|=(224|r>>12)<<SHIFT[3&o++],c[o>>2]|=(128|r>>6&63)<<SHIFT[3&o++],c[o>>2]|=(128|63&r)<<SHIFT[3&o++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++i)),c[o>>2]|=(240|r>>18)<<SHIFT[3&o++],c[o>>2]|=(128|r>>12&63)<<SHIFT[3&o++],c[o>>2]|=(128|r>>6&63)<<SHIFT[3&o++],c[o>>2]|=(128|63&r)<<SHIFT[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.block=c[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,r,o,i,a,c,u,s=this.h0,l=this.h1,f=this.h2,p=this.h3,d=this.h4,h=this.h5,v=this.h6,m=this.h7,y=this.blocks;for(e=16;e<64;++e)t=((o=y[e-15])>>>7|o<<25)^(o>>>18|o<<14)^o>>>3,n=((o=y[e-2])>>>17|o<<15)^(o>>>19|o<<13)^o>>>10,y[e]=y[e-16]+t+y[e-7]+n<<0;for(u=l&f,e=0;e<64;e+=4)this.first?(this.is224?(i=300032,m=(o=y[0]-1413257819)-150054599<<0,p=o+24177077<<0):(i=704751109,m=(o=y[0]-210244248)-1521486534<<0,p=o+143694565<<0),this.first=!1):(t=(s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10),r=(i=s&l)^s&f^u,m=p+(o=m+(n=(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&v)+K[e]+y[e])<<0,p=o+(t+r)<<0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),r=(a=p&s)^p&l^i,v=f+(o=v+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&d^~m&h)+K[e+1]+y[e+1])<<0,t=((f=o+(t+r)<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(c=f&p)^f&s^a,h=l+(o=h+(n=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&m^~v&d)+K[e+2]+y[e+2])<<0,t=((l=o+(t+r)<<0)>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),r=(u=l&f)^l&p^c,d=s+(o=d+(n=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&v^~h&m)+K[e+3]+y[e+3])<<0,s=o+(t+r)<<0;this.h0=this.h0+s<<0,this.h1=this.h1+l<<0,this.h2=this.h2+f<<0,this.h3=this.h3+p<<0,this.h4=this.h4+d<<0,this.h5=this.h5+h<<0,this.h6=this.h6+v<<0,this.h7=this.h7+m<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,o=this.h4,i=this.h5,a=this.h6,c=this.h7,u=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(u+=HEX_CHARS[c>>28&15]+HEX_CHARS[c>>24&15]+HEX_CHARS[c>>20&15]+HEX_CHARS[c>>16&15]+HEX_CHARS[c>>12&15]+HEX_CHARS[c>>8&15]+HEX_CHARS[c>>4&15]+HEX_CHARS[15&c]),u},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,o=this.h4,i=this.h5,a=this.h6,c=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o,i>>24&255,i>>16&255,i>>8&255,255&i,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||u.push(c>>24&255,c>>16&255,c>>8&255,255&c),u},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()},,function(e,t,n){var r=n(888)({"&":"&","<":"<",">":">",'"':""","'":"'"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},,,,,function(e,t,n){"use strict";var r=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.getExpandableProps=function(e){var t=e.expandable,n=(0,i.default)(e,["expandable"]);if("expandable"in e)return c(c({},n),t);0;return n},t.getDataAndAriaProps=function(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})},t.INTERNAL_COL_DEFINE=void 0;var o=r(n(235)),i=r(n(401));r(n(549));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.INTERNAL_COL_DEFINE="RC_TABLE_INTERNAL_COL_DEFINE"},function(e,t,n){"use strict";var r=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)).createContext(null);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[];return o.default.Children.forEach(t,(function(t){null!=t&&(Array.isArray(t)?n=n.concat(e(t)):(0,i.isFragment)(t)&&t.props?n=n.concat(e(t.props.children)):n.push(t))})),n};var r,o=(r=n(0))&&r.__esModule?r:{default:r},i=n(158)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=a(n(1283)),i=a(n(971));function a(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(a,e);var t,n,r,i=d(a);function a(){return l(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||o.default[t||"global"],r=this.context,i=t&&r?r[t]:{};return s(s({},"function"==typeof n?n():n),i||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?o.default.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}])&&f(t.prototype,n),r&&f(t,r),a}(r.Component);t.default=m,m.defaultProps={componentName:"global"},m.contextType=i.default},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.withConfigConsumer=function(e){return function(t){var n=function(n){return i.createElement(l,null,(function(r){var o=e.prefixCls,a=(0,r.getPrefixCls)(o,n.prefixCls);return i.createElement(t,u({},r,n,{prefixCls:a}))}))},r=t.constructor,o=r&&r.displayName||t.name||"Component";return n.displayName="withConfigConsumer(".concat(o,")"),n}},t.ConfigConsumer=t.ConfigContext=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=(o=n(1284))&&o.__esModule?o:{default:o};function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=i.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},renderEmpty:a.default});t.ConfigContext=s;var l=s.Consumer;t.ConfigConsumer=l},function(e,t,n){"use strict";var r=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.arrDel=function(e,t){var n=e.slice(),r=n.indexOf(t);r>=0&&n.splice(r,1);return n},t.arrAdd=function(e,t){var n=e.slice();-1===n.indexOf(t)&&n.push(t);return n},t.posToArr=function(e){return e.split("-")},t.getPosition=function(e,t){return"".concat(e,"-").concat(t)},t.isTreeNode=function(e){return e&&e.type&&e.type.isTreeNode},t.getDragNodesKeys=function(e,t){var n=[e];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(t[e].children),n},t.calcDropPosition=function(e,t){var n=e.clientY,r=t.selectHandle.getBoundingClientRect(),o=r.top,i=r.bottom,a=r.height,c=Math.max(.25*a,2);if(n<=o+c)return-1;if(n>=i-c)return 1;return 0},t.calcSelectedKeys=function(e,t){if(!e)return;if(t.multiple)return e.slice();if(e.length)return[e[0]];return e},t.convertDataToTree=function e(t,n){if(!t)return[];var r=(n||{}).processProps,o=void 0===r?l:r;return(Array.isArray(t)?t:[t]).map((function(t){var r=t.children,i=(0,a.default)(t,["children"]),u=e(r,n);return c.default.createElement(s.default,Object.assign({},o(i)),u)}))},t.parseCheckedKeys=function(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,i.default)(e))return(0,u.default)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t},t.conductExpandParent=function(e,t){var n=new Set;return(e||[]).forEach((function(e){!function e(r){if(n.has(r))return;var o=t[r];if(!o)return;n.add(r);var i=o.parent;if(o.node.disabled)return;i&&e(i.key)}(e)})),(0,o.default)(n)},t.getDataAndAria=function(e){var t={};return Object.keys(e).forEach((function(n){(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n])})),t};var o=r(n(620)),i=r(n(590)),a=r(n(401)),c=r(n(0)),u=r(n(549)),s=r(n(1301));var l=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(0).createContext)({inlineCollapsed:!1});t.default=r},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=f(n(622)),a=f(n(5)),c=n(164),u=f(n(901)),s=n(992),l=f(n(551));function f(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=function(e,t){var n,r=o.useContext(u.default),f=o.useContext(c.ConfigContext),p=f.getPrefixCls,m=f.direction,y=o.useRef(),b=(0,s.composeRef)(t,y);o.useEffect((function(){(0,l.default)(!("optionType"in e),"Radio","`optionType` is only support in Radio.Group.")}),[]);var g=e.prefixCls,O=e.className,w=e.children,x=e.style,j=v(e,["prefixCls","className","children","style"]),E=p("radio",g),S=h({},j);r&&(S.name=r.name,S.onChange=function(t){e.onChange&&e.onChange(t),(null==r?void 0:r.onChange)&&r.onChange(t)},S.checked=e.value===r.value,S.disabled=e.disabled||r.disabled);var _=(0,a.default)(O,(d(n={},"".concat(E,"-wrapper"),!0),d(n,"".concat(E,"-wrapper-checked"),S.checked),d(n,"".concat(E,"-wrapper-disabled"),S.disabled),d(n,"".concat(E,"-wrapper-rtl"),"rtl"===m),n));return o.createElement("label",{className:_,style:x,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},o.createElement(i.default,h({},S,{prefixCls:E,ref:b})),void 0!==w?o.createElement("span",null,w):null)},y=o.forwardRef(m);y.displayName="Radio",y.defaultProps={type:"radio"};var b=y;t.default=b},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RadioGroupContextProvider=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0)).createContext(null),a=i.Provider;t.RadioGroupContextProvider=a;var c=i;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getColumnKey=function(e,t){if("key"in e&&void 0!==e.key&&null!==e.key)return e.key;if(e.dataIndex)return Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex;return t},t.getColumnPos=function(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)},t.renderColumnTitle=function(e,t){if("function"==typeof e)return e(t);return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var r=n(4),o=n(118),i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.__extends(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(o.a),a=n(117),c=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(a.a))(i),u=n(95),s=n(67),l=n(7),f=n(111);function p(e,t){return void 0===t&&(t=0),function(n){return n.lift(new d(e,t))}}var d=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new h(e,this.scheduler,this.delay))},e}(),h=function(e){function t(t,n,r){void 0===r&&(r=0);var o=e.call(this,t)||this;return o.scheduler=n,o.delay=r,o}return r.__extends(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new v(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(f.a.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(f.a.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(f.a.createComplete()),this.unsubscribe()},t}(l.a),v=function(){return function(e,t){this.notification=e,this.destination=t}}(),m=n(10),y=n(152),b=n(8),g=1,O=function(){return Promise.resolve()}(),w={};function x(e){return e in w&&(delete w[e],!0)}var j=function(e){var t=g++;return w[t]=!0,O.then((function(){return x(t)&&e()})),t},E=function(e){x(e)},S=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.__extends(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=j(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(E(n),t.scheduled=void 0)},t}(o.a),_=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,o=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<o&&(e=n.shift()));if(this.active=!1,t){for(;++r<o&&(e=n.shift());)e.unsubscribe();throw t}},t}(a.a))(S),C=n(153),P=function(e){function t(t,n,r){void 0===n&&(n=0),void 0===r&&(r=_);var o=e.call(this)||this;return o.source=t,o.delayTime=n,o.scheduler=r,(!Object(C.a)(n)||n<0)&&(o.delayTime=0),r&&"function"==typeof r.schedule||(o.scheduler=_),o}return r.__extends(t,e),t.create=function(e,n,r){return void 0===n&&(n=0),void 0===r&&(r=_),new t(e,n,r)},t.dispatch=function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))},t.prototype._subscribe=function(e){var n=this.delayTime,r=this.source;return this.scheduler.schedule(t.dispatch,n,{source:r,subscriber:e})},t}(b.a);function k(e,t){return void 0===t&&(t=0),function(n){return n.lift(new M(e,t))}}var M=function(){function e(e,t){this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return new P(t,this.delay,this.scheduler).subscribe(e)},e}(),N=n(102),T=n(352),A=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var R=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.source=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),A(t,null,[{key:"of",value:function(){return new this(N.a.apply(void 0,arguments))}},{key:"from",value:function(e,t){return new this(Object(s.a)(e,t))}}]),A(t,[{key:"lift",value:function(e){var n=new t(this);return n.operator=e,n}},{key:"ofType",value:function(){return T.a.apply(void 0,arguments)(this)}}]),t}(b.a);var D=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(function(e){var t=r.__notifier.subscribe(e);return t&&!t.closed&&e.next(r.value),t})));return r.value=n,r.__notifier=new u.a,r.__subscription=e.subscribe((function(e){e!==r.value&&(r.value=e,r.__notifier.next(e))})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(b.a);function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=c.constructor,n=new t(c.SchedulerAction);var r=new u.a,o=void 0,i=function(t){o=t;var i=(new u.a).pipe(p(n)),a=(new u.a).pipe(p(n)),c=new R(i),l=new D(a,o.getState());return r.pipe(Object(m.a)((function(t){var n="dependencies"in e?t(c,l,e.dependencies):t(c,l);if(!n)throw new TypeError('Your root Epic "'+(t.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return n})),Object(y.a)((function(e){return Object(s.a)(e).pipe(k(n),p(n))}))).subscribe(o.dispatch),function(e){return function(t){var n=e(t);return a.next(o.getState()),i.next(t),n}}};return i.run=function(e){r.next(e)},i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),o=n(7),i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),a=n(124);function c(e){return function(t){return 0===e?Object(a.b)():t.lift(new u(e))}}var u=function(){function e(e){if(this.total=e,this.total<0)throw new i}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.total))},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(o.a)},,,function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1058))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1097))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1164))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1166))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){var r=n(115),o=n(1174),i=n(1175),a=Math.max,c=Math.min;e.exports=function(e,t,n){var u,s,l,f,p,d,h=0,v=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=u,r=s;return u=s=void 0,h=t,f=e.apply(r,n)}function g(e){return h=e,p=setTimeout(w,t),v?b(e):f}function O(e){var n=e-d;return void 0===d||n>=t||n<0||m&&e-h>=l}function w(){var e=o();if(O(e))return x(e);p=setTimeout(w,function(e){var n=t-(e-d);return m?c(n,l-(e-h)):n}(e))}function x(e){return p=void 0,y&&u?b(e):(u=s=void 0,f)}function j(){var e=o(),n=O(e);if(u=arguments,s=this,d=e,n){if(void 0===p)return g(d);if(m)return clearTimeout(p),p=setTimeout(w,t),b(d)}return void 0===p&&(p=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(v=!!n.leading,l=(m="maxWait"in n)?a(i(n.maxWait)||0,t):l,y="trailing"in n?!!n.trailing:y),j.cancel=function(){void 0!==p&&clearTimeout(p),h=0,u=d=s=p=void 0},j.flush=function(){return void 0===p?f:x(o())},j}},function(e,t,n){"use strict";var r=n(0),o=n(606),i=n(196),a=n(632);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},s=function(e,t){var n=r.useContext(a.b),s=r.useContext(i.b).getPrefixCls,l=e.prefixCls,f=u(e,["prefixCls"]),p=s("radio-button",l);return n&&(f.checked=e.value===n.value,f.disabled=e.disabled||n.disabled),r.createElement(o.a,c({prefixCls:p},f,{type:"radio",ref:t}))};t.a=r.forwardRef(s)},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(606),c=n(196),u=n(155),s=n(632),l=n(778);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e,t)||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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h=r.forwardRef((function(e,t){var n,o=r.useContext(c.b),d=o.getPrefixCls,h=o.direction,v=r.useContext(u.b);void 0!==e.value?n=e.value:void 0!==e.defaultValue&&(n=e.defaultValue);var m=p(r.useState(n),2),y=m[0],b=m[1],g=Object(l.b)(e.value);r.useEffect((function(){void 0===e.value&&g===e.value||b(e.value)}),[e.value]);return r.createElement(s.a,{value:{onChange:function(t){var n=y,r=t.target.value;"value"in e||b(r);var o=e.onChange;o&&r!==n&&o(t)},value:y,disabled:e.disabled,name:e.name}},function(){var n,o=e.prefixCls,c=e.className,u=void 0===c?"":c,s=e.options,l=e.optionType,p=e.buttonStyle,m=e.disabled,b=e.children,g=e.size,O=e.style,w=e.id,x=e.onMouseEnter,j=e.onMouseLeave,E=d("radio",o),S="".concat(E,"-group"),_=b;if(s&&s.length>0){var C="button"===l?"".concat(E,"-button"):E;_=s.map((function(e){return"string"==typeof e?r.createElement(a.a,{ref:t,key:e,prefixCls:C,disabled:m,value:e,checked:y===e},e):r.createElement(a.a,{ref:t,key:"radio-group-value-options-".concat(e.value),prefixCls:C,disabled:e.disabled||m,value:e.value,checked:y===e.value,style:e.style},e.label)}))}var P=g||v,k=i()(S,"".concat(S,"-").concat(p),(f(n={},"".concat(S,"-").concat(P),P),f(n,"".concat(S,"-rtl"),"rtl"===h),n),u);return r.createElement("div",{className:k,style:O,onMouseEnter:x,onMouseLeave:j,id:w},_)}())}));h.defaultProps={buttonStyle:"outline"},t.a=r.memo(h)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1329))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1331))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1335))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return _}));var r=n(18),o=n(6),i=n(45),a=n(48),c=n(54),u=n(53),s=n(25),l=n(0),f=n.n(l),p=n(5),d=n.n(p),h=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),r=d()(n,"".concat(n,"-").concat(e.page),(t={},Object(o.a)(t,"".concat(n,"-active"),e.active),Object(o.a)(t,e.className,!!e.className),Object(o.a)(t,"".concat(n,"-disabled"),!e.page),t));return f.a.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",f.a.createElement("a",null,e.page)))},v=13,m=38,y=40;function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var g=function(e){Object(c.a)(n,e);var t=b(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={goInputText:""},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var n=e.props,r=n.goButton,o=n.quickGo,i=n.rootPrefixCls;r||t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(i,"-prev"))>=0||t.relatedTarget.className.indexOf("".concat(i,"-next"))>=0)||o(e.getValidValue())},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==v&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return Object(a.a)(n,[{key:"getValidValue",value:function(){var e=this.state,t=e.goInputText,n=e.current;return!t||isNaN(t)?n:Number(t)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,o=t.rootPrefixCls,i=t.changeSize,a=t.quickGo,c=t.goButton,u=t.selectComponentClass,s=t.buildOptionText,l=t.selectPrefixCls,p=t.disabled,d=this.state.goInputText,h="".concat(o,"-options"),v=u,m=null,y=null,b=null;if(!i&&!a)return null;var g=this.getPageSizeOptions();if(i&&v){var O=g.map((function(t,n){return f.a.createElement(v.Option,{key:n,value:t},(s||e.buildOptionText)(t))}));m=f.a.createElement(v,{disabled:p,prefixCls:l,showSearch:!1,className:"".concat(h,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||g[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode}},O)}return a&&(c&&(b="boolean"==typeof c?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:p,className:"".concat(h,"-quick-jumper-button")},r.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),y=f.a.createElement("div",{className:"".concat(h,"-quick-jumper")},r.jump_to,f.a.createElement("input",{disabled:p,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),r.page,b)),f.a.createElement("li",{className:"".concat(h)},m,y)}}]),n}(f.a.Component);g.defaultProps={pageSizeOptions:["10","20","50","100"]};var O=g;function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}function j(){}function E(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var S=function(e){Object(c.a)(n,e);var t=x(n);function n(e){var r;Object(i.a)(this,n),(r=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(E(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,i=e||f.a.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(i=f.a.createElement(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r.props))),i},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){return"number"==typeof(t=e)&&isFinite(t)&&Math.floor(t)===t&&e!==r.state.current;var t},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper,n=e.pageSize;return!(e.total<=n)&&t},r.handleKeyDown=function(e){e.keyCode!==m&&e.keyCode!==y||e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===v?r.handleChange(t):e.keyCode===m?r.handleChange(t-1):e.keyCode===y&&r.handleChange(t+1)},r.changePageSize=function(e){var t=r.state.current,n=E(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"==typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e),r.props.onShowSizeChange(t,e)},r.handleChange=function(e){var t=r.props.disabled,n=e;if(r.isValid(n)&&!t){var o=E(void 0,r.state,r.props);n>o?n=o:n<1&&(n=1),"current"in r.props||r.setState({current:n,currentInputValue:n});var i=r.state.pageSize;return r.props.onChange(n,i),n}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current<E(void 0,r.state,r.props)},r.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}},r.runIfEnterPrev=function(e){r.runIfEnter(e,r.prev)},r.runIfEnterNext=function(e){r.runIfEnter(e,r.next)},r.runIfEnterJumpPrev=function(e){r.runIfEnter(e,r.jumpPrev)},r.runIfEnterJumpNext=function(e){r.runIfEnter(e,r.jumpNext)},r.handleGoTO=function(e){e.keyCode!==v&&"click"!==e.type||r.handleChange(r.state.currentInputValue)};var a=e.onChange!==j;"current"in e&&!a&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var c=e.defaultCurrent;"current"in e&&(c=e.current);var u=e.defaultPageSize;return"pageSize"in e&&(u=e.pageSize),c=Math.min(c,E(u,void 0,e)),r.state={current:c,currentInputValue:c,pageSize:u},r}return Object(a.a)(n,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var r=this.paginationNode.querySelector(".".concat(n,"-item-").concat(t.current));r&&document.activeElement===r&&r.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=E(void 0,this.state,this.props),r=this.state.currentInputValue;return""===t?t:isNaN(Number(t))?r:t>=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,r=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),o=!this.hasPrev();return Object(l.isValidElement)(r)?Object(l.cloneElement)(r,{disabled:o}):r}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,r=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),o=!this.hasNext();return Object(l.isValidElement)(r)?Object(l.cloneElement)(r,{disabled:o}):r}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.className,a=t.style,c=t.disabled,u=t.hideOnSinglePage,s=t.total,p=t.locale,v=t.showQuickJumper,m=t.showLessItems,y=t.showTitle,b=t.showTotal,g=t.simple,w=t.itemRender,x=t.showPrevNextJumpers,j=t.jumpPrevIcon,S=t.jumpNextIcon,_=t.selectComponentClass,C=t.selectPrefixCls,P=t.pageSizeOptions,k=this.state,M=k.current,N=k.pageSize,T=k.currentInputValue;if(!0===u&&s<=N)return null;var A=E(void 0,this.state,this.props),R=[],D=null,I=null,L=null,F=null,z=null,B=v&&v.goButton,H=m?1:2,K=M-1>0?M-1:0,V=M+1<A?M+1:A,U=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{});if(g)return B&&(z="boolean"==typeof B?f.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},p.jump_to_confirm):f.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},B),z=f.a.createElement("li",{title:y?"".concat(p.jump_to).concat(M,"/").concat(A):null,className:"".concat(n,"-simple-pager")},z)),f.a.createElement("ul",Object(r.a)({className:d()(n,"".concat(n,"-simple"),i),style:a,ref:this.savePaginationNode},U),f.a.createElement("li",{title:y?p.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:d()("".concat(n,"-prev"),Object(o.a)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(K)),f.a.createElement("li",{title:y?"".concat(M,"/").concat(A):null,className:"".concat(n,"-simple-pager")},f.a.createElement("input",{type:"text",value:T,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),f.a.createElement("span",{className:"".concat(n,"-slash")},"/"),A),f.a.createElement("li",{title:y?p.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:d()("".concat(n,"-next"),Object(o.a)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(V)),z);if(A<=3+2*H){var W={locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:y,itemRender:w};A||R.push(f.a.createElement(h,Object(r.a)({},W,{key:"noPager",page:A,className:"".concat(n,"-disabled")})));for(var q=1;q<=A;q+=1){var G=M===q;R.push(f.a.createElement(h,Object(r.a)({},W,{key:q,page:q,active:G})))}}else{var $=m?p.prev_3:p.prev_5,Y=m?p.next_3:p.next_5;x&&(D=f.a.createElement("li",{title:y?$:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:d()("".concat(n,"-jump-prev"),Object(o.a)({},"".concat(n,"-jump-prev-custom-icon"),!!j))},w(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(j))),I=f.a.createElement("li",{title:y?Y:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:d()("".concat(n,"-jump-next"),Object(o.a)({},"".concat(n,"-jump-next-custom-icon"),!!S))},w(this.getJumpNextPage(),"jump-next",this.getItemIcon(S)))),F=f.a.createElement(h,{locale:p,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:A,page:A,active:!1,showTitle:y,itemRender:w}),L=f.a.createElement(h,{locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:y,itemRender:w});var X=Math.max(1,M-H),Z=Math.min(M+H,A);M-1<=H&&(Z=1+2*H),A-M<=H&&(X=A-2*H);for(var J=X;J<=Z;J+=1){var Q=M===J;R.push(f.a.createElement(h,{locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:J,page:J,active:Q,showTitle:y,itemRender:w}))}M-1>=2*H&&3!==M&&(R[0]=Object(l.cloneElement)(R[0],{className:"".concat(n,"-item-after-jump-prev")}),R.unshift(D)),A-M>=2*H&&M!==A-2&&(R[R.length-1]=Object(l.cloneElement)(R[R.length-1],{className:"".concat(n,"-item-before-jump-next")}),R.push(I)),1!==X&&R.unshift(L),Z!==A&&R.push(F)}var ee=null;b&&(ee=f.a.createElement("li",{className:"".concat(n,"-total-text")},b(s,[0===s?0:(M-1)*N+1,M*N>s?s:M*N])));var te=!this.hasPrev()||!A,ne=!this.hasNext()||!A;return f.a.createElement("ul",Object(r.a)({className:d()(n,i,Object(o.a)({},"".concat(n,"-disabled"),c)),style:a,unselectable:"unselectable",ref:this.savePaginationNode},U),ee,f.a.createElement("li",{title:y?p.prev_page:null,onClick:this.prev,tabIndex:te?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(n,"-prev"),Object(o.a)({},"".concat(n,"-disabled"),te)),"aria-disabled":te},this.renderPrev(K)),R,f.a.createElement("li",{title:y?p.next_page:null,onClick:this.next,tabIndex:ne?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(n,"-next"),Object(o.a)({},"".concat(n,"-disabled"),ne)),"aria-disabled":ne},this.renderNext(V)),f.a.createElement(O,{disabled:c,locale:p,rootPrefixCls:n,selectComponentClass:_,selectPrefixCls:C,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:M,pageSize:N,pageSizeOptions:P,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:B}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,o=E(e.pageSize,t,e);r=r>o?o:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(f.a.Component);S.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:j,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:j,locale:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var _=S},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(406),a=n(770),c=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle;return o.a.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof t?t():t)};function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=Object(r.forwardRef)((function(e,t){var n=e.overlayClassName,p=e.trigger,d=void 0===p?["hover"]:p,h=e.mouseEnterDelay,v=void 0===h?0:h,m=e.mouseLeaveDelay,y=void 0===m?.1:m,b=e.overlayStyle,g=e.prefixCls,O=void 0===g?"rc-tooltip":g,w=e.children,x=e.onVisibleChange,j=e.afterVisibleChange,E=e.transitionName,S=e.animation,_=e.placement,C=void 0===_?"right":_,P=e.align,k=void 0===P?{}:P,M=e.destroyTooltipOnHide,N=void 0!==M&&M,T=e.defaultVisible,A=e.getTooltipContainer,R=e.overlayInnerStyle,D=f(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),I=Object(r.useRef)(null);Object(r.useImperativeHandle)(t,(function(){return I.current}));var L=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},D);"visible"in e&&(L.popupVisible=e.visible);var F=!1,z=!1;if("boolean"==typeof N)F=N;else if(N&&"object"===u(N)){var B=N.keepParent;F=!0===B,z=!1===B}return o.a.createElement(i.a,Object.assign({popupClassName:n,prefixCls:O,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,i=e.id;return[o.a.createElement("div",{className:"".concat(O,"-arrow"),key:"arrow"},n),o.a.createElement(c,{key:"content",prefixCls:O,id:i,overlay:r,overlayInnerStyle:R})]},action:d,builtinPlacements:a.a,popupPlacement:C,ref:I,popupAlign:k,getPopupContainer:A,onPopupVisibleChange:x,afterPopupVisibleChange:j,popupTransitionName:E,popupAnimation:S,defaultPopupVisible:T,destroyPopupOnHide:F,autoDestroy:z,mouseLeaveDelay:y,popupStyle:b,mouseEnterDelay:v},L),w)}));t.default=p},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(364),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=0!==r.a.endEvents.length,a=["Webkit","Moz","O","ms"],c=["-webkit-","-moz-","-o-","ms-",""];function u(e,t){for(var n=window.getComputedStyle(e,null),r="",o=0;o<c.length&&!(r=n.getPropertyValue(c[o]+t));o++);return r}function s(e){if(i){var t=parseFloat(u(e,"transition-delay"))||0,n=parseFloat(u(e,"transition-duration"))||0,r=parseFloat(u(e,"animation-delay"))||0,o=parseFloat(u(e,"animation-duration"))||0,a=Math.max(n+t,o+r);e.rcEndAnimTimeout=setTimeout((function(){e.rcEndAnimTimeout=null,e.rcEndListener&&e.rcEndListener()}),1e3*a+200)}}function l(e){e.rcEndAnimTimeout&&(clearTimeout(e.rcEndAnimTimeout),e.rcEndAnimTimeout=null)}var f=function(e,t,n){var i="object"===(void 0===t?"undefined":o(t)),a=i?t.name:t,c=i?t.active:t+"-active",u=n,f=void 0,p=void 0;return n&&"[object Object]"===Object.prototype.toString.call(n)&&(u=n.end,f=n.start,p=n.active),e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),l(e),e.classList.remove(a),e.classList.remove(c),r.a.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,u&&u())},r.a.addEndEventListener(e,e.rcEndListener),f&&f(),e.classList.add(a),e.rcAnimTimeout=setTimeout((function(){e.rcAnimTimeout=null,e.classList.add(c),p&&setTimeout(p,0),s(e)}),30),{stop:function(){e.rcEndListener&&e.rcEndListener()}}};f.style=function(e,t,n){e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),l(e),r.a.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,n&&n())},r.a.addEndEventListener(e,e.rcEndListener),e.rcAnimTimeout=setTimeout((function(){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);e.rcAnimTimeout=null,s(e)}),0)},f.setTransition=function(e,t,n){var r=t,o=n;void 0===n&&(o=r,r=""),r=r||"",a.forEach((function(t){e.style[t+"Transition"+r]=o}))},f.isCssAnimationSupported=i,t.a=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(0),o=n(5),i=n.n(o),a=n(196),c=n(774),u=n(177),s=n(363);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},O=(Object(u.a)("top","middle","bottom","stretch"),Object(u.a)("start","end","center","space-around","space-between"),function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(y,e);var t,n,o,u=m(y);function y(){var e;return d(this,y),(e=u.apply(this,arguments)).state={screens:{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}},e.renderRow=function(t){var n,o=t.getPrefixCls,a=t.direction,u=e.props,s=u.prefixCls,l=u.justify,d=u.align,h=u.className,v=u.style,m=u.children,y=g(u,["prefixCls","justify","align","className","style","children"]),b=o("row",s),O=e.getGutter(),w=i()(b,(p(n={},"".concat(b,"-").concat(l),l),p(n,"".concat(b,"-").concat(d),d),p(n,"".concat(b,"-rtl"),"rtl"===a),n),h),x=f(f(f({},O[0]>0?{marginLeft:O[0]/-2,marginRight:O[0]/-2}:{}),O[1]>0?{marginTop:O[1]/-2,marginBottom:O[1]/2}:{}),v),j=f({},y);return delete j.gutter,r.createElement(c.a.Provider,{value:{gutter:O}},r.createElement("div",f({},j,{className:w,style:x}),m))},e}return t=y,(n=[{key:"componentDidMount",value:function(){var e=this;this.token=s.a.subscribe((function(t){var n=e.props.gutter;(!Array.isArray(n)&&"object"===l(n)||Array.isArray(n)&&("object"===l(n[0])||"object"===l(n[1])))&&e.setState({screens:t})}))}},{key:"componentWillUnmount",value:function(){s.a.unsubscribe(this.token)}},{key:"getGutter",value:function(){var e=[0,0],t=this.props.gutter,n=this.state.screens;return(Array.isArray(t)?t:[t,0]).forEach((function(t,r){if("object"===l(t))for(var o=0;o<s.b.length;o++){var i=s.b[o];if(n[i]&&void 0!==t[i]){e[r]=t[i];break}}else e[r]=t||0})),e}},{key:"render",value:function(){return r.createElement(a.a,null,this.renderRow)}}])&&h(t.prototype,n),o&&h(t,o),y}(r.Component));O.defaultProps={gutter:0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ze}));var r=n(6),o=n(45),i=n(48),a=n(34),c=n(54),u=n(53),s=n(25),l=n(0),f=n.n(l),p=n(192);var d=function(e,t){for(var n=Object.assign({},e),r=0;r<t.length;r+=1){delete n[t[r]]}return n},h=n(18),v=n(41),m=n(624),y=n(239),b=n.n(y),g=n(5),O=n.n(g),w=n(75),x=n(28);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=/iPhone/i,_=/iPod/i,C=/iPad/i,P=/\bAndroid(?:.+)Mobile\b/i,k=/Android/i,M=/\bAndroid(?:.+)SD4930UR\b/i,N=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,T=/Windows Phone/i,A=/\bWindows(?:.+)ARM\b/i,R=/BlackBerry/i,D=/BB10/i,I=/Opera Mini/i,L=/\b(CriOS|Chrome)(?:.+)Mobile/i,F=/Mobile(?:.+)Firefox\b/i;function z(e,t){return e.test(t)}function B(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),n=t.split("[FBAN");if(void 0!==n[1]){var r=n;t=Object(x.a)(r,1)[0]}if(void 0!==(n=t.split("Twitter"))[1]){var o=n;t=Object(x.a)(o,1)[0]}var i={apple:{phone:z(S,t)&&!z(T,t),ipod:z(_,t),tablet:!z(S,t)&&z(C,t)&&!z(T,t),device:(z(S,t)||z(_,t)||z(C,t))&&!z(T,t)},amazon:{phone:z(M,t),tablet:!z(M,t)&&z(N,t),device:z(M,t)||z(N,t)},android:{phone:!z(T,t)&&z(M,t)||!z(T,t)&&z(P,t),tablet:!z(T,t)&&!z(M,t)&&!z(P,t)&&(z(N,t)||z(k,t)),device:!z(T,t)&&(z(M,t)||z(N,t)||z(P,t)||z(k,t))||z(/\bokhttp\b/i,t)},windows:{phone:z(T,t),tablet:z(A,t),device:z(T,t)||z(A,t)},other:{blackberry:z(R,t),blackberry10:z(D,t),opera:z(I,t),firefox:z(F,t),chrome:z(L,t),device:z(R,t)||z(D,t)||z(I,t)||z(F,t)||z(L,t)},any:null,phone:null,tablet:null};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var H=E(E({},B()),{},{isMobile:B});function K(){}function V(e,t,n){var r=t||"";return e.key||"".concat(r,"item_").concat(n)}function U(e){return"".concat(e,"-menu-")}function W(e,t){var n=-1;f.a.Children.forEach(e,(function(e){n+=1,e&&e.type&&e.type.isMenuItemGroup?f.a.Children.forEach(e.props.children,(function(e){t(e,n+=1)})):t(e,n)}))}var q=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],G=function(e){var t=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;return t&&(t=+t.toFixed(6)),t||0},$=function(e,t,n){e&&"object"===Object(w.a)(e.style)&&(e.style[t]=n)},Y=n(32),X=n(76),Z=n(21),J=n.n(Z),Q=n(558),ee=n(406),te=n(295),ne={adjustX:1,adjustY:1},re={topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ne,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ne,offset:[4,0]}},oe={topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ne,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ne,offset:[4,0]}};function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ue=0,se={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},le=function(e,t,n){var o=U(t),i=e.getState();e.setState({defaultActiveFirst:ce(ce({},i.defaultActiveFirst),{},Object(r.a)({},o,n))})},fe=function(e){Object(c.a)(n,e);var t=ie(n);function n(e){var r;Object(o.a)(this,n),(r=t.call(this,e)).onDestroy=function(e){r.props.onDestroy(e)},r.onKeyDown=function(e){var t=e.keyCode,n=r.menuInstance,o=r.props,i=o.isOpen,a=o.store;if(t===v.a.ENTER)return r.onTitleClick(e),le(a,r.props.eventKey,!0),!0;if(t===v.a.RIGHT)return i?n.onKeyDown(e):(r.triggerOpenChange(!0),le(a,r.props.eventKey,!0)),!0;if(t===v.a.LEFT){var c;if(!i)return;return(c=n.onKeyDown(e))||(r.triggerOpenChange(!1),c=!0),c}return!i||t!==v.a.UP&&t!==v.a.DOWN?void 0:n.onKeyDown(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onPopupVisibleChange=function(e){r.triggerOpenChange(e,e?"mouseenter":"mouseleave")},r.onMouseEnter=function(e){var t=r.props,n=t.eventKey,o=t.onMouseEnter,i=t.store;le(i,r.props.eventKey,!1),o({key:n,domEvent:e})},r.onMouseLeave=function(e){var t=r.props,n=t.parentMenu,o=t.eventKey,i=t.onMouseLeave;n.subMenuInstance=Object(a.a)(r),i({key:o,domEvent:e})},r.onTitleMouseEnter=function(e){var t=r.props,n=t.eventKey,o=t.onItemHover,i=t.onTitleMouseEnter;o({key:n,hover:!0}),i({key:n,domEvent:e})},r.onTitleMouseLeave=function(e){var t=r.props,n=t.parentMenu,o=t.eventKey,i=t.onItemHover,c=t.onTitleMouseLeave;n.subMenuInstance=Object(a.a)(r),i({key:o,hover:!1}),c({key:o,domEvent:e})},r.onTitleClick=function(e){var t=Object(a.a)(r).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(r.triggerOpenChange(!t.isOpen,"click"),le(t.store,r.props.eventKey,!1))},r.onSubMenuClick=function(e){"function"==typeof r.props.onClick&&r.props.onClick(r.addKeyPath(e))},r.onSelect=function(e){r.props.onSelect(e)},r.onDeselect=function(e){r.props.onDeselect(e)},r.getPrefixCls=function(){return"".concat(r.props.rootPrefixCls,"-submenu")},r.getActiveClassName=function(){return"".concat(r.getPrefixCls(),"-active")},r.getDisabledClassName=function(){return"".concat(r.getPrefixCls(),"-disabled")},r.getSelectedClassName=function(){return"".concat(r.getPrefixCls(),"-selected")},r.getOpenClassName=function(){return"".concat(r.props.rootPrefixCls,"-submenu-open")},r.saveMenuInstance=function(e){r.menuInstance=e},r.addKeyPath=function(e){return ce(ce({},e),{},{keyPath:(e.keyPath||[]).concat(r.props.eventKey)})},r.triggerOpenChange=function(e,t){var n=r.props.eventKey,o=function(){r.onOpenChange({key:n,item:Object(a.a)(r),trigger:t,open:e})};"mouseenter"===t?r.mouseenterTimeout=setTimeout((function(){o()}),0):o()},r.isChildrenSelected=function(){var e={find:!1};return function e(t,n,r){t&&!r.find&&f.a.Children.forEach(t,(function(t){if(t){var o=t.type;if(!o||!(o.isSubMenu||o.isMenuItem||o.isMenuItemGroup))return;-1!==n.indexOf(t.key)?r.find=!0:t.props.children&&e(t.props.children,n,r)}}))}(r.props.children,r.props.selectedKeys,e),e.find},r.isOpen=function(){return-1!==r.props.openKeys.indexOf(r.props.eventKey)},r.adjustWidth=function(){if(r.subMenuTitle&&r.menuInstance){var e=J.a.findDOMNode(r.menuInstance);e.offsetWidth>=r.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(r.subMenuTitle.offsetWidth,"px"))}},r.saveSubMenuTitle=function(e){r.subMenuTitle=e},r.getBaseProps=function(){var e=Object(a.a)(r).props;return{mode:"horizontal"===e.mode?"vertical":e.mode,visible:r.props.isOpen,level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:r.onSubMenuClick,onSelect:r.onSelect,onDeselect:r.onDeselect,onDestroy:r.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:r.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:Object(a.a)(r),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[U(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:r.internalMenuId,manualRef:r.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},r.getMotion=function(e,t){var n=Object(a.a)(r).haveRendered,o=r.props,i=o.motion,c=o.rootPrefixCls;return ce(ce({},i),{},{leavedClassName:"".concat(c,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var i=e.store,c=e.eventKey,u=i.getState().defaultActiveFirst;r.isRootMenu=!1;var s=!1;return u&&(s=u[c]),le(i,c,s),r}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,r=t.parentMenu,o=t.manualRef;o&&o(this),"horizontal"===n&&r.isRootMenu&&this.props.isOpen&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(e){var t=this,n=this.getBaseProps(),o=this.getMotion(n.mode,n.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||n.visible||n.forceSubMenuRender,!this.haveOpened)return f.a.createElement("div",null);var i=n.direction;return f.a.createElement(te.a,Object.assign({visible:n.visible},o),(function(o){var a=o.className,c=o.style,u=O()("".concat(n.prefixCls,"-sub"),a,Object(r.a)({},"".concat(n.prefixCls,"-rtl"),"rtl"===i));return f.a.createElement(Ce,Object.assign({},n,{id:t.internalMenuId,className:u,style:c}),e)}))}},{key:"render",value:function(){var e,t=ce({},this.props),n=t.isOpen,o=this.getPrefixCls(),i="inline"===t.mode,a=O()(o,"".concat(o,"-").concat(t.mode),(e={},Object(r.a)(e,t.className,!!t.className),Object(r.a)(e,this.getOpenClassName(),n),Object(r.a)(e,this.getActiveClassName(),t.active||n&&!i),Object(r.a)(e,this.getDisabledClassName(),t.disabled),Object(r.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(t.eventKey?this.internalMenuId="".concat(t.eventKey,"$Menu"):(ue+=1,this.internalMenuId="$__$".concat(ue,"$Menu")));var c={},u={},s={};t.disabled||(c={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},u={onClick:this.onTitleClick},s={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var l={},p=t.direction;i&&("rtl"===p?l.paddingRight=t.inlineIndent*t.level:l.paddingLeft=t.inlineIndent*t.level);var d={};this.props.isOpen&&(d={"aria-owns":this.internalMenuId});var h=null;"horizontal"!==t.mode&&(h=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(h=f.a.createElement(this.props.expandIcon,ce({},this.props))));var v=f.a.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:l,className:"".concat(o,"-title"),role:"button"},s,u,{"aria-expanded":n},d,{"aria-haspopup":"true",title:"string"==typeof t.title?t.title:void 0}),t.title,h||f.a.createElement("i",{className:"".concat(o,"-arrow")})),m=this.renderChildren(t.children),y=t.parentMenu.isRootMenu?t.parentMenu.props.getPopupContainer:function(e){return e.parentNode},b=se[t.mode],g=t.popupOffset?{offset:t.popupOffset}:{},w="inline"===t.mode?"":t.popupClassName;w+="rtl"===p?" ".concat(o,"-rtl"):"";var x=t.disabled,j=t.triggerSubMenuAction,E=t.subMenuOpenDelay,S=t.forceSubMenuRender,_=t.subMenuCloseDelay,C=t.builtinPlacements;q.forEach((function(e){return delete t[e]})),delete t.onClick;var P="rtl"===p?Object.assign({},oe,C):Object.assign({},re,C);return delete t.direction,f.a.createElement("li",Object.assign({},t,c,{className:a,role:"menuitem"}),i&&v,i&&m,!i&&f.a.createElement(ee.a,{prefixCls:o,popupClassName:O()("".concat(o,"-popup"),w),getPopupContainer:y,builtinPlacements:P,popupPlacement:b,popupVisible:n,popupAlign:g,popup:m,action:x?[]:[j],mouseEnterDelay:E,mouseLeaveDelay:_,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:S},v))}}]),n}(f.a.Component);fe.defaultProps={onMouseEnter:K,onMouseLeave:K,onTitleMouseEnter:K,onTitleMouseLeave:K,onTitleClick:K,manualRef:K,mode:"vertical",title:""};var pe=Object(p.b)((function(e,t){var n=e.openKeys,r=e.activeKey,o=e.selectedKeys,i=t.eventKey,a=t.subMenuKey;return{isOpen:n.indexOf(i)>-1,active:r[a]===i,selectedKeys:o}}))(fe);pe.isSubMenu=!0;var de=pe;function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var ye=function(e){Object(c.a)(n,e);var t=me(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=J.a.findDOMNode(Object(a.a)(e));return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,r){var o=e.props,i=o.overflowedIndicator,a=o.level,c=o.mode,u=o.prefixCls,s=o.theme;if(1!==a||"horizontal"!==c)return null;var l=e.props.children[0].props,p=(l.children,l.title,l.style),d=Object(X.a)(l,["children","title","style"]),h=ve({},p),v="".concat(t,"-overflowed-indicator"),m="".concat(t,"-overflowed-indicator");0===n.length&&!0!==r?h=ve(ve({},h),{},{display:"none"}):r&&(h=ve(ve({},h),{},{visibility:"hidden",position:"absolute"}),v="".concat(v,"-placeholder"),m="".concat(m,"-placeholder"));var y=s?"".concat(u,"-").concat(s):"",b={};return q.forEach((function(e){void 0!==d[e]&&(b[e]=d[e])})),f.a.createElement(de,Object.assign({title:i,className:"".concat(u,"-overflowed-submenu"),popupClassName:y},b,{key:v,eventKey:m,disabled:!1,style:h}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=J.a.findDOMNode(Object(a.a)(e));if(t){var n=t.children;if(n&&0!==n.length){var r=t.children[n.length-1];$(r,"display","inline-block");var o=e.getMenuItemNodes(),i=o.filter((function(e){return e.className.split(" ").indexOf("menuitem-overflowed")>=0}));i.forEach((function(e){$(e,"display","inline-block")})),e.menuItemSizes=o.map((function(e){return G(e)})),i.forEach((function(e){$(e,"display","none")})),e.overflowedIndicatorWidth=G(t.children[t.children.length-1]),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),$(r,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=J.a.findDOMNode(Object(a.a)(e));if(t){var n=G(t);e.overflowedItems=[];var r,o=0;e.originalTotalWidth>n+.5&&(r=-1,e.menuItemSizes.forEach((function(t){(o+=t)+e.overflowedIndicatorWidth<=n&&(r+=1)}))),e.setState({lastVisibleIndex:r})}}},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=J.a.findDOMNode(this);if(!t)return;this.resizeObserver=new Q.a((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,o,i){var a=o;if("horizontal"===t.props.mode){var c=t.getOverflowedSubMenuItem(o.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(i>n&&(a=f.a.cloneElement(o,{style:{display:"none"},eventKey:"".concat(o.props.eventKey,"-hidden"),className:"".concat("menuitem-overflowed")})),i===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return f.a.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),c=t.getOverflowedSubMenuItem(o.props.eventKey,t.overflowedItems)));var u=[].concat(Object(Y.a)(r),[c,a]);return i===e.length-1&&u.push(t.getOverflowedSubMenuItem(o.props.eventKey,[],!0)),u}return[].concat(Object(Y.a)(r),[a])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,r=(e.theme,Object(X.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),o=t;return f.a.createElement(o,Object.assign({},r),this.renderChildren(n))}}]),n}(f.a.Component);ye.defaultProps={tag:"div",className:""};var be=ye;function ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xe(e,t,n){var o=e.getState();e.setState({activeKey:we(we({},o.activeKey),{},Object(r.a)({},t,n))})}function je(e){return e.eventKey||"0-menu-"}function Ee(e,t){var n,r=t,o=e.children,i=e.eventKey;if(r&&(W(o,(function(e,t){e&&e.props&&!e.props.disabled&&r===V(e,i,t)&&(n=!0)})),n))return r;return r=null,e.defaultActiveFirst?(W(o,(function(e,t){r||!e||e.props.disabled||(r=V(e,i,t))})),r):r}function Se(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var _e=function(e){Object(c.a)(n,e);var t=ge(n);function n(e){var i;return Object(o.a)(this,n),(i=t.call(this,e)).onKeyDown=function(e,t){var n,r=e.keyCode;if(i.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var o=null;return r!==v.a.UP&&r!==v.a.DOWN||(o=i.step(r===v.a.UP?-1:1)),o?(e.preventDefault(),xe(i.props.store,je(i.props),o.props.eventKey),"function"==typeof t&&t(o),1):void 0},i.onItemHover=function(e){var t=e.key,n=e.hover;xe(i.props.store,je(i.props),n?t:null)},i.onDeselect=function(e){i.props.onDeselect(e)},i.onSelect=function(e){i.props.onSelect(e)},i.onClick=function(e){i.props.onClick(e)},i.onOpenChange=function(e){i.props.onOpenChange(e)},i.onDestroy=function(e){i.props.onDestroy(e)},i.getFlatInstanceArray=function(){return i.instanceArray},i.step=function(e){var t=i.getFlatInstanceArray(),n=i.props.store.getState().activeKey[je(i.props)],r=t.length;if(!r)return null;e<0&&(t=t.concat().reverse());var o=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(o=t,!1)})),i.props.defaultActiveFirst||-1===o||(a=t.slice(o,r-1)).length&&!a.every((function(e){return!!e.props.disabled}))){var a,c=(o+1)%r,u=c;do{var s=t[u];if(s&&!s.props.disabled)return s;u=(u+1)%r}while(u!==c);return null}},i.renderCommonMenuItem=function(e,t,n){var r=i.props.store.getState(),o=Object(a.a)(i).props,c=V(e,o.eventKey,t),u=e.props;if(!u||"string"==typeof e.type)return e;var s=c===r.activeKey,l=we(we({mode:u.mode||o.mode,level:o.level,inlineIndent:o.inlineIndent,renderMenuItem:i.renderMenuItem,rootPrefixCls:o.prefixCls,index:t,parentMenu:o.parentMenu,manualRef:u.disabled?void 0:Object(m.a)(e.ref,Se.bind(Object(a.a)(i))),eventKey:c,active:!u.disabled&&s,multiple:o.multiple,onClick:function(e){(u.onClick||K)(e),i.onClick(e)},onItemHover:i.onItemHover,motion:o.motion,subMenuOpenDelay:o.subMenuOpenDelay,subMenuCloseDelay:o.subMenuCloseDelay,forceSubMenuRender:o.forceSubMenuRender,onOpenChange:i.onOpenChange,onDeselect:i.onDeselect,onSelect:i.onSelect,builtinPlacements:o.builtinPlacements,itemIcon:u.itemIcon||i.props.itemIcon,expandIcon:u.expandIcon||i.props.expandIcon},n),{},{direction:o.direction});return("inline"===o.mode||H.any)&&(l.triggerSubMenuAction="click"),f.a.cloneElement(e,l)},i.renderMenuItem=function(e,t,n){if(!e)return null;var r=i.props.store.getState(),o={openKeys:r.openKeys,selectedKeys:r.selectedKeys,triggerSubMenuAction:i.props.triggerSubMenuAction,subMenuKey:n};return i.renderCommonMenuItem(e,t,o)},e.store.setState({activeKey:we(we({},e.store.getState().activeKey),{},Object(r.a)({},e.eventKey,Ee(e,e.activeKey)))}),i.instanceArray=[],i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!b()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[je(t)],r=Ee(t,n);if(r!==n)xe(t.store,je(t),r);else if("activeKey"in e){r!==Ee(e,e.activeKey)&&xe(t.store,je(t),r)}}},{key:"render",value:function(){var e=this,t=Object(h.a)({},this.props);this.instanceArray=[];var n={className:O()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var r=t.prefixCls,o=t.eventKey,i=t.visible,a=t.level,c=t.mode,u=t.overflowedIndicator,s=t.theme;return q.forEach((function(e){return delete t[e]})),delete t.onClick,f.a.createElement(be,Object.assign({},t,{prefixCls:r,mode:c,tag:"ul",level:a,theme:s,visible:i,overflowedIndicator:u},n),f.a.Children.map(t.children,(function(t,n){return e.renderMenuItem(t,n,o||"0-menu-")})))}}]),n}(f.a.Component);_e.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:K};var Ce=Object(p.b)()(_e),Pe=n(62);function ke(e,t,n){var r=e.prefixCls,o=e.motion,i=e.defaultMotions,a=void 0===i?{}:i,c=e.openAnimation,u=e.openTransitionName,s=t.switchingModeFromInline;if(o)return o;if("object"===Object(w.a)(c)&&c)Object(Pe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof c)return{motionName:"".concat(r,"-open-").concat(c)};if(u)return{motionName:u};var l=a[n];return l||(s?null:a.other)}function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Ae=function(e){Object(c.a)(n,e);var t=Te(n);function n(e){var r;Object(o.a)(this,n),(r=t.call(this,e)).inlineOpenKeys=[],r.onSelect=function(e){var t=Object(a.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys,o=e.key;n=t.multiple?n.concat([o]):[o],"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onSelect(Ne(Ne({},e),{},{selectedKeys:n}))}},r.onClick=function(e){var t=r.getRealMenuMode(),n=Object(a.a)(r),o=n.store,i=n.props.onOpenChange;"inline"===t||"openKeys"in r.props||(o.setState({openKeys:[]}),i([])),r.props.onClick(e)},r.onKeyDown=function(e,t){r.innerMenu.getWrappedInstance().onKeyDown(e,t)},r.onOpenChange=function(e){var t=Object(a.a)(r).props,n=r.store.getState().openKeys.concat(),o=!1,i=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var r=n.indexOf(e.key);(t=-1!==r)&&n.splice(r,1)}o=o||t};Array.isArray(e)?e.forEach(i):i(e),o&&("openKeys"in r.props||r.store.setState({openKeys:n}),t.onOpenChange(n))},r.onDeselect=function(e){var t=Object(a.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys.concat(),o=e.key,i=n.indexOf(o);-1!==i&&n.splice(i,1),"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onDeselect(Ne(Ne({},e),{},{selectedKeys:n}))}},r.onMouseEnter=function(e){r.restoreModeVerticalFromInline();var t=r.props.onMouseEnter;t&&t(e)},r.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,o="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,i="font-size"===e.propertyName&&o.indexOf("anticon")>=0;(t||i)&&r.restoreModeVerticalFromInline()},r.setInnerMenu=function(e){r.innerMenu=e},r.isRootMenu=!0;var i=e.defaultSelectedKeys,c=e.defaultOpenKeys;return"selectedKeys"in e&&(i=e.selectedKeys||[]),"openKeys"in e&&(c=e.openKeys||[]),r.store=Object(p.c)({selectedKeys:i,openKeys:c,activeKey:{"0-menu-":Ee(e,e.activeKey)}}),r.state={switchingModeFromInline:!1},r}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){this.updateOpentKeysWhenSwitchMode(e),this.updateMiniStore();var t=this.props,n=t.siderCollapsed,r=t.inlineCollapsed,o=t.onOpenChange;(!e.inlineCollapsed&&r||!e.siderCollapsed&&n)&&o([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(e){var t=this.props,n=this.store,r=this.inlineOpenKeys,o=n.getState(),i={};"inline"===e.mode&&"inline"!==t.mode&&this.setState({switchingModeFromInline:!0}),"openKeys"in t||((t.inlineCollapsed&&!e.inlineCollapsed||t.siderCollapsed&&!e.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=o.openKeys.concat(),i.openKeys=[]),(!t.inlineCollapsed&&e.inlineCollapsed||!t.siderCollapsed&&e.siderCollapsed)&&(i.openKeys=r,this.inlineOpenKeys=[])),Object.keys(i).length&&n.setState(i)}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e)?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Ne({},d(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=Ne(Ne({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ke(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,f.a.createElement(p.a,{store:this.store},f.a.createElement(Ce,Object.assign({},e,{ref:this.setInnerMenu}),this.props.children))}}]),n}(f.a.Component);Ae.defaultProps={selectable:!0,onClick:K,onSelect:K,onOpenChange:K,onDeselect:K,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:f.a.createElement("span",null,"···")};var Re=Ae;function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Fe=function(e){Object(c.a)(n,e);var t=Le(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===v.a.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,r=n.eventKey,o=n.onItemHover,i=n.onMouseLeave;o({key:r,hover:!1}),i({key:r,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,r=n.eventKey,o=n.onItemHover,i=n.onMouseEnter;o({key:r,hover:!0}),i({key:r,domEvent:t})},e.onClick=function(t){var n=e.props,r=n.eventKey,o=n.multiple,i=n.onClick,c=n.onSelect,u=n.onDeselect,s=n.isSelected,l={key:r,keyPath:[r],item:Object(a.a)(e),domEvent:t};i(l),o?s?u(l):c(l):s||c(l)},e.saveNode=function(t){e.node=t},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=Ie({},this.props),n=O()(this.getPrefixCls(),t.className,(e={},Object(r.a)(e,this.getActiveClassName(),!t.disabled&&t.active),Object(r.a)(e,this.getSelectedClassName(),t.isSelected),Object(r.a)(e,this.getDisabledClassName(),t.disabled),e)),o=Ie(Ie({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?o=Ie(Ie({},o),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(o.role="none");var i={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},a=Ie({},t.style);"inline"===t.mode&&("rtl"===t.direction?a.paddingRight=t.inlineIndent*t.level:a.paddingLeft=t.inlineIndent*t.level),q.forEach((function(e){return delete t[e]})),delete t.direction;var c=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(c=f.a.createElement(this.props.itemIcon,this.props)),f.a.createElement("li",Object.assign({},d(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),o,i,{style:a,ref:this.saveNode}),t.children,c)}}]),n}(f.a.Component);Fe.isMenuItem=!0,Fe.defaultProps={onSelect:K,onMouseEnter:K,onMouseLeave:K,manualRef:K};var ze=Object(p.b)((function(e,t){var n=e.activeKey,r=e.selectedKeys,o=t.eventKey;return{active:n[t.subMenuKey]===o,isSelected:-1!==r.indexOf(o)}}))(Fe);function Be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var He=function(e){Object(c.a)(n,e);var t=Be(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).renderInnerMenuItem=function(t){var n=e.props;return(0,n.renderMenuItem)(t,n.index,e.props.subMenuKey)},e}return Object(i.a)(n,[{key:"render",value:function(){var e=Object(h.a)({},this.props),t=e.className,n=void 0===t?"":t,r=e.rootPrefixCls,o="".concat(r,"-item-group-title"),i="".concat(r,"-item-group-list"),a=e.title,c=e.children;return q.forEach((function(t){return delete e[t]})),delete e.onClick,delete e.direction,f.a.createElement("li",Object.assign({},e,{className:"".concat(n," ").concat(r,"-item-group")}),f.a.createElement("div",{className:o,title:"string"==typeof a?a:void 0},a),f.a.createElement("ul",{className:i},f.a.Children.map(c,this.renderInnerMenuItem)))}}]),n}(f.a.Component);He.isMenuItemGroup=!0,He.defaultProps={disabled:!0};var Ke=function(e){var t=e.className,n=e.rootPrefixCls,r=e.style;return f.a.createElement("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:r})};Ke.defaultProps={disabled:!0,className:"",style:{}};t.b=Re},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),o=n(37),i=n(36);function a(e){return function(t){return t.lift(new c(e))}}var c=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.closingNotifier))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.buffer=[],r.add(Object(i.a)(r,n)),r}return r.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(e,t,n,r,o){var i=this.buffer;this.buffer=[],this.destination.next(i)},t}(o.a)},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1049)),o=i(n(928));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c={lang:a({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeWeekPlaceholder:["开始周","结束周"]},r.default),timePickerLocale:a({},o.default)};c.lang.ok="确 定";var u=c;t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1053)),o=i(n(930));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c={lang:a({placeholder:"請選擇日期",rangePlaceholder:["開始日期","結束日期"]},r.default),timePickerLocale:a({},o.default)};c.lang.ok="確 定";var u=c;t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={placeholder:"請選擇時間"};t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(800))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1055)),o=i(n(934));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c={lang:a({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},r.default),timePickerLocale:a({},o.default)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};t.default=r},function(e,t,n){var r=n(936);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";var r=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(401)),i=r(n(235)),a=n(737);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var l=function(e){var t=e.icon,n=e.className,r=e.onClick,i=e.style,c=e.primaryColor,l=e.secondaryColor,f=(0,o.default)(e,["icon","className","onClick","style","primaryColor","secondaryColor"]),p=s;if(c&&(p={primaryColor:c,secondaryColor:l||(0,a.getSecondaryColor)(c)}),(0,a.useInsertStyles)(),(0,a.warning)((0,a.isIconDefinition)(t),"icon should be icon definiton, but got ".concat(t)),!(0,a.isIconDefinition)(t))return null;var d=t;return d&&"function"==typeof d.icon&&(d=u(u({},d),{},{icon:d.icon(p.primaryColor,p.secondaryColor)})),(0,a.generate)(d.icon,"svg-".concat(d.name),u({className:n,onClick:r,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f))};l.displayName="IconReact",l.getTwoToneColors=function(){return u({},s)},l.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;s.primaryColor=t,s.secondaryColor=n||(0,a.getSecondaryColor)(t),s.calculated=!!n};var f=l;t.default=f},function(e,t,n){var r=n(1091);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){e.exports=!n(592)&&!n(647)((function(){return 7!=Object.defineProperty(n(940)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(617),o=n(550).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(593),o=n(618),i=n(1093)(!1),a=n(805)("IE_PROTO");e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)n!=a&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){var r=n(943);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(1103)),o=a(n(1115)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===i(r.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t,n){"use strict";var r=n(740),o=n(645),i=n(946),a=n(615),c=n(810),u=n(1107),s=n(812),l=n(1110),f=n(619)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,v,m,y){u(n,t,h);var b,g,O,w=function(e){if(!p&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",j="values"==v,E=!1,S=e.prototype,_=S[f]||S["@@iterator"]||v&&S[v],C=_||w(v),P=v?j?w("entries"):C:void 0,k="Array"==t&&S.entries||_;if(k&&(O=l(k.call(new e)))!==Object.prototype&&O.next&&(s(O,x,!0),r||"function"==typeof O[f]||a(O,f,d)),j&&_&&"values"!==_.name&&(E=!0,C=function(){return _.call(this)}),r&&!y||!p&&!E&&S[f]||a(S,f,C),c[t]=C,c[x]=d,v)if(b={values:j?C:w("values"),keys:m?C:w("keys"),entries:P},y)for(g in b)g in S||i(S,g,b[g]);else o(o.P+o.F*(p||E),t,b);return b}},function(e,t,n){e.exports=n(615)},function(e,t,n){var r=n(941),o=n(807).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(742),o=n(738),i=n(618),a=n(802),c=n(593),u=n(939),s=Object.getOwnPropertyDescriptor;t.f=n(592)?s:function(e,t){if(e=i(e),t=a(t,!0),u)try{return s(e,t)}catch(e){}if(c(e,t))return o(!r.f.call(e,t),e[t])}},,function(e,t,n){var r=n(346),o=n(816),i=n(347),a=n(368),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},function(e,t,n){var r=n(367),o=n(950),i=n(815);e.exports=function(e){return r(e,i,o)}},,,,,function(e,t,n){"use strict";var r=n(825).trigram,o=n(826),i=n(827),a={}.hasOwnProperty;function c(e){return null==e?"":i(o(String(e).replace(/[\u0021-\u0040]+/g," "))).toLowerCase()}function u(e){return r(" "+c(e)+" ")}function s(e){for(var t,n=u(e),r=n.length,o={};r--;)t=n[r],a.call(o,t)?o[t]++:o[t]=1;return o}function l(e,t){return e[1]-t[1]}t.clean=c,t.trigrams=u,t.asDictionary=s,t.asTuples=function(e){var t,n=s(e),r=[];for(t in n)r.push([t,n[t]]);return r.sort(l),r},t.tuplesAsDictionary=function(e){var t,n=e.length,r={};for(;n--;)t=e[n],r[t[0]]=t[1];return r}},,,,,,,,,function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1269)),c=r(n(503));var u=function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,u=i.useContext(c.default),s=u.prefixCls,l=u.getComponent,f=i.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r,a=n.map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,c=n.children;return c&&c.length>0&&(a=e(c,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}));return a}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o<n;o+=1)r(o);return t}(n)}),[n]),p=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),h=l(["header","cell"],"th");return i.createElement(p,{className:"".concat(s,"-thead")},f.map((function(e,n){return i.createElement(a.default,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:h,onHeaderRow:o,index:n})})))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCellFixedInfo=function(e,t,n,r,o){var i,a,c=n[e]||{},u=n[t]||{};"left"===c.fixed?i=r.left[e]:"right"===u.fixed&&(a=r.right[t]);var s=!1,l=!1,f=!1,p=!1,d=n[t+1],h=n[e-1];if("rtl"===o){if(void 0!==i){var v=h&&"left"===h.fixed;p=!v}else if(void 0!==a){var m=d&&"right"===d.fixed;f=!m}}else if(void 0!==i){var y=d&&"left"===d.fixed;s=!y}else if(void 0!==a){var b=h&&"right"===h.fixed;l=!b}return{fixLeft:i,fixRight:a,lastFixLeft:s,firstFixRight:l,lastFixRight:f,firstFixLeft:p}}},function(e,t,n){"use strict";var r=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=n(893);var a=function(e){for(var t=e.colWidths,n=e.columns,r=[],a=!1,c=(e.columCount||n.length)-1;c>=0;c-=1){var u=t[c],s=n&&n[c],l=s&&s[i.INTERNAL_COL_DEFINE];(u||l||a)&&(r.unshift(o.createElement("col",Object.assign({key:c,style:{width:u,minWidth:u}},l))),a=!0)}return o.createElement("colgroup",null,r)};t.default=a},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(749)),c=r(n(503));var u=function(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,u=e.fixHeader,s=e.fixColumn,l=e.horizonScroll,f=e.className,p=e.expanded,d=e.componentWidth,h=e.colSpan,v=i.useContext(c.default).scrollbarSize;return i.useMemo((function(){var e=n;return s&&(e=i.createElement("div",{style:{width:d-(u?v:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},e)),i.createElement(r,{className:f,style:{display:p?null:"none"}},i.createElement(a.default,{component:o,prefixCls:t,colSpan:h},e))}),[n,r,u,l,f,p,d,h,v])};t.default=u},function(e,t,n){"use strict";var r=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)).createContext(null);t.default=o},function(e,t,n){"use strict";var r=n(40),o=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.convertChildrenToColumns=d,t.default=void 0;var i=o(n(620)),a=o(n(235)),c=o(n(401)),u=r(n(0)),s=(o(n(549)),o(n(895))),l=n(893);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e){return(0,s.default)(e).filter((function(e){return u.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=p({key:t},(0,c.default)(n,["children"]));return r&&(o.children=d(r)),o}))}function h(e){return e.reduce((function(e,t){var n=t.fixed,r=!0===n?"left":n,o=t.children;return o&&o.length>0?[].concat((0,i.default)(e),(0,i.default)(h(o).map((function(e){return p({fixed:r},e)})))):[].concat((0,i.default)(e),[p(p({},t),{},{fixed:r})])}),[])}var v=function(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,s=e.expandedKeys,f=e.getRowKey,v=e.onTriggerExpand,m=e.expandIcon,y=e.rowExpandable,b=e.expandIconColumnIndex,g=e.direction,O=e.expandRowByClick,w=u.useMemo((function(){return r||d(o)}),[r,o]),x=u.useMemo((function(){if(i){var e,t=b||0,r=w[t],o=(e={},(0,a.default)(e,l.INTERNAL_COL_DEFINE,{className:"".concat(n,"-expand-icon-col")}),(0,a.default)(e,"title",""),(0,a.default)(e,"fixed",r?r.fixed:null),(0,a.default)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,a.default)(e,"render",(function(e,t,r){var o=f(t,r),i=s.has(o),a=!y||y(t),c=m({prefixCls:n,expanded:i,expandable:a,record:t,onExpand:v});return O?u.createElement("span",{onClick:function(e){return e.stopPropagation()}},c):c})),e),c=w.slice();return t>=0&&c.splice(t,0,o),c}return w}),[i,w,f,s,m,g]),j=u.useMemo((function(){var e=x;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,x,g]),E=u.useMemo((function(){return"rtl"===g?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),p({fixed:n},(0,c.default)(e,["fixed"]))}))}(h(j)):h(j)}),[j,g]);return[j,E]};t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(0).createContext)(void 0);t.default=r},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=l(n(5)),a=n(164),c=l(n(896)),u=l(n(1285)),s=l(n(1286));function l(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},v=o.createElement(u.default,null),m=o.createElement(s.default,null),y=function(e){return o.createElement(a.ConfigConsumer,null,(function(t){var n=t.getPrefixCls,r=t.direction,a=e.className,u=e.prefixCls,s=e.image,l=void 0===s?v:s,f=e.description,y=e.children,b=e.imageStyle,g=h(e,["className","prefixCls","image","description","children","imageStyle"]);return o.createElement(c.default,{componentName:"Empty"},(function(e){var t,c=n("empty",u),s=void 0!==f?f:e.description,h="string"==typeof s?s:"empty",v=null;return v="string"==typeof l?o.createElement("img",{alt:h,src:l}):l,o.createElement("div",p({className:(0,i.default)(c,(t={},d(t,"".concat(c,"-normal"),l===m),d(t,"".concat(c,"-rtl"),"rtl"===r),t),a)},g),o.createElement("div",{className:"".concat(c,"-image"),style:b},v),s&&o.createElement("p",{className:"".concat(c,"-description")},s),y&&o.createElement("div",{className:"".concat(c,"-footer")},y))}))}))};y.PRESENTED_IMAGE_DEFAULT=v,y.PRESENTED_IMAGE_SIMPLE=m;var b=y;t.default=b},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(1292);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(590),o=n(977);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(0)),o=l(n(89)),i=l(n(5)),a=p(n(676)),c=n(164),u=l(n(1296)),s=l(n(656));function l(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(p,e);var t,n,l,f=g(p);function p(){var e;return m(this,p),(e=f.apply(this,arguments)).selectRef=r.createRef(),e.focus=function(){e.selectRef.current&&e.selectRef.current.focus()},e.blur=function(){e.selectRef.current&&e.selectRef.current.blur()},e.getMode=function(){var t=e.props.mode;if("combobox"!==t)return t===p.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":t},e.renderSelect=function(t){var n,c=t.getPopupContainer,l=t.getPrefixCls,f=t.renderEmpty,p=t.direction,d=t.virtual,m=t.dropdownMatchSelectWidth,y=e.props,b=y.prefixCls,g=y.notFoundContent,O=y.className,w=y.size,x=y.listHeight,j=void 0===x?256:x,E=y.listItemHeight,S=void 0===E?24:E,_=y.getPopupContainer,C=y.dropdownClassName,P=y.bordered,k=l("select",b),M=e.getMode(),N="multiple"===M||"tags"===M;n=void 0!==g?g:"combobox"===M?null:f("Select");var T=(0,u.default)(v(v({},e.props),{multiple:N,prefixCls:k})),A=T.suffixIcon,R=T.itemIcon,D=T.removeIcon,I=T.clearIcon,L=(0,o.default)(e.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),F=(0,i.default)(C,h({},"".concat(k,"-dropdown-").concat(p),"rtl"===p));return r.createElement(s.default.Consumer,null,(function(t){var o,u=w||t,s=(0,i.default)(O,(h(o={},"".concat(k,"-lg"),"large"===u),h(o,"".concat(k,"-sm"),"small"===u),h(o,"".concat(k,"-rtl"),"rtl"===p),h(o,"".concat(k,"-borderless"),!P),o));return r.createElement(a.default,v({ref:e.selectRef,virtual:d,dropdownMatchSelectWidth:m},L,{listHeight:j,listItemHeight:S,mode:M,prefixCls:k,direction:p,inputIcon:A,menuItemSelectedIcon:R,removeIcon:D,clearIcon:I,notFoundContent:n,className:s,getPopupContainer:_||c,dropdownClassName:F}))}))},e}return t=p,(n=[{key:"render",value:function(){return r.createElement(c.ConfigConsumer,null,this.renderSelect)}}])&&y(t.prototype,n),l&&y(t,l),p}(r.Component);x.Option=a.Option,x.OptGroup=a.OptGroup,x.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",x.defaultProps={transitionName:"slide-up",choiceTransitionName:"zoom",bordered:!0};var j=x;t.default=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(0),i=(r=n(1297))&&r.__esModule?r:{default:r};function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e,t)||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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u=function(){var e=a((0,o.useState)({}),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=i.default.subscribe((function(e){n(e)}));return function(){return i.default.unsubscribe(e)}}),[]),t};t.default=u},function(e,t,n){"use strict";var r=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.getKey=p,t.warningWithoutKey=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new Map;function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(e||[]).forEach((function(e){var o=e.key,i=e.children;(0,u.default)(null!=o,"Tree node must have a certain key: [".concat(r).concat(o,"]"));var a=String(o);(0,u.default)(!t.has(a)||null==o,"Same 'key' exist in the Tree: ".concat(a)),t.set(a,!0),n(i,"".concat(r).concat(a," > "))}))}n(e)},t.convertTreeToData=function(e){return function e(t){return(0,c.default)(t).map((function(t){if(!(0,s.isTreeNode)(t))return(0,u.default)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=f({key:n},(0,a.default)(r,["children"])),c=e(o);return c.length&&(i.children=c),i})).filter((function(e){return e}))}(e)},t.flattenTreeData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new Set(!0===t?[]:t),r=[];function i(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.map((function(c,u){var l=(0,s.getPosition)(a?a.pos:"0",u),d=p(c.key,l),h=f(f({},c),{},{parent:a,pos:l,children:null,data:c,isStart:[].concat((0,o.default)(a?a.isStart:[]),[0===u]),isEnd:[].concat((0,o.default)(a?a.isEnd:[]),[u===e.length-1])});return r.push(h),!0===t||n.has(d)?h.children=i(c.children||[],h):h.children=[],h}))}return i(e),r},t.traverseDataNodes=d,t.convertDataToEntities=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=arguments.length>2?arguments[2]:void 0,a={},c={},u={posEntities:a,keyEntities:c};n&&(u=n(u)||u);d(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,s=e.parentPos,l={node:t,index:n,key:i,pos:o,level:e.level},f=p(i,o);a[o]=l,c[f]=l,l.parent=a[s],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),r&&r(l,u)}),i),o&&o(u);return u},t.getTreeNodeProps=function(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,c=t.halfCheckedKeys,u=t.dragOverNodeKey,s=t.dropPosition,l=t.keyEntities[e];return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==c.indexOf(e),pos:String(l?l.pos:""),dragOver:u===e&&0===s,dragOverGapTop:u===e&&-1===s,dragOverGapBottom:u===e&&1===s}},t.convertNodePropsToEventData=function(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,c=e.halfChecked,s=e.dragOver,l=e.dragOverGapTop,p=e.dragOverGapBottom,d=e.pos,h=e.active,v=f(f({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:c,dragOver:s,dragOverGapTop:l,dragOverGapBottom:p,pos:d,active:h});"props"in v||Object.defineProperty(v,"props",{get:function(){return(0,u.default)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}});return v};var o=r(n(620)),i=r(n(235)),a=r(n(401)),c=r(n(895)),u=r(n(549)),s=n(898);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){return null!=e?e:t}function d(e,t,n){var r;n?"string"==typeof n?r=function(e){return e[n]}:"function"==typeof n&&(r=function(e){return n(e)}):r=function(e,t){return p(e.key,t)},function n(o,i,a){var c=o?o.children:e,u=o?(0,s.getPosition)(a.pos,i):"0";if(o){var l=r(o,u),f={node:o,index:i,pos:u,key:l,parentPos:a.node?a.pos:null,level:a.level+1};t(f)}c&&c.forEach((function(e,t){n(e,t,{node:o,pos:u,level:a?a.level+1:-1})}))}(null)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(983)),o=i(n(984));function i(e){return e&&e.__esModule?e:{default:e}}r.default.Group=o.default;var a=r.default;t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=s(n(5)),i=s(n(622)),a=n(984),c=n(164),u=s(n(551));function s(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(l,e);var t,n,a,s=y(l);function l(){var e;return h(this,l),(e=s.apply(this,arguments)).saveCheckbox=function(t){e.rcCheckbox=t},e.renderCheckbox=function(t){var n,a=t.getPrefixCls,c=t.direction,u=g(e),s=u.props,l=u.context,f=s.prefixCls,h=s.className,v=s.children,m=s.indeterminate,y=s.style,b=s.onMouseEnter,O=s.onMouseLeave,x=w(s,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave"]),j=l,E=a("checkbox",f),S=d({},x);j&&(S.onChange=function(){x.onChange&&x.onChange.apply(x,arguments),j.toggleOption({label:v,value:s.value})},S.name=j.name,S.checked=-1!==j.value.indexOf(s.value),S.disabled=s.disabled||j.disabled);var _=(0,o.default)(h,(p(n={},"".concat(E,"-wrapper"),!0),p(n,"".concat(E,"-rtl"),"rtl"===c),p(n,"".concat(E,"-wrapper-checked"),S.checked),p(n,"".concat(E,"-wrapper-disabled"),S.disabled),n)),C=(0,o.default)(p({},"".concat(E,"-indeterminate"),m));return r.createElement("label",{className:_,style:y,onMouseEnter:b,onMouseLeave:O},r.createElement(i.default,d({},S,{prefixCls:E,className:C,ref:e.saveCheckbox})),void 0!==v&&r.createElement("span",null,v))},e}return t=l,(n=[{key:"componentDidMount",value:function(){var e,t=this.props.value;null===(e=this.context)||void 0===e||e.registerValue(t),(0,u.default)("checked"in this.props||this.context||!("value"in this.props),"Checkbox","`value` is not a valid prop, do you mean `checked`?")}},{key:"componentDidUpdate",value:function(e){var t,n,r=e.value,o=this.props.value;o!==r&&(null===(t=this.context)||void 0===t||t.cancelValue(r),null===(n=this.context)||void 0===n||n.registerValue(o))}},{key:"componentWillUnmount",value:function(){var e,t=this.props.value;null===(e=this.context)||void 0===e||e.cancelValue(t)}},{key:"focus",value:function(){this.rcCheckbox.focus()}},{key:"blur",value:function(){this.rcCheckbox.blur()}},{key:"render",value:function(){return r.createElement(c.ConfigConsumer,null,this.renderCheckbox)}}])&&v(t.prototype,n),a&&v(t,a),l}(r.PureComponent);x.__ANT_CHECKBOX=!0,x.defaultProps={indeterminate:!1},x.contextType=a.GroupContext;var j=x;t.default=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GroupContext=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=u(n(5)),i=u(n(89)),a=u(n(983)),c=n(164);function u(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=r.createContext(null);t.GroupContext=w;var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(l,e);var t,n,u,s=m(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this,e)).cancelValue=function(e){t.setState((function(t){return{registeredValues:t.registeredValues.filter((function(t){return t!==e}))}}))},t.registerValue=function(e){t.setState((function(t){var n=t.registeredValues;return{registeredValues:[].concat(p(n),[e])}}))},t.toggleOption=function(e){var n=t.state.registeredValues,r=t.state.value.indexOf(e.value),o=p(t.state.value);-1===r?o.push(e.value):o.splice(r,1),"value"in t.props||t.setState({value:o});var i=t.props.onChange;if(i){var a=t.getOptions();i(o.filter((function(e){return-1!==n.indexOf(e)})).sort((function(e,t){return a.findIndex((function(t){return t.value===e}))-a.findIndex((function(e){return e.value===t}))})))}},t.renderGroup=function(e){var n=e.getPrefixCls,c=e.direction,u=b(t),s=u.props,l=u.state,p=s.prefixCls,d=s.className,h=s.style,v=s.options,m=O(s,["prefixCls","className","style","options"]),y=n("checkbox",p),g="".concat(y,"-group"),x=(0,i.default)(m,["children","defaultValue","value","onChange","disabled"]),j=s.children;v&&v.length>0&&(j=t.getOptions().map((function(e){return r.createElement(a.default,{prefixCls:y,key:e.value.toString(),disabled:"disabled"in e?e.disabled:s.disabled,value:e.value,checked:-1!==l.value.indexOf(e.value),onChange:e.onChange,className:"".concat(g,"-item"),style:e.style},e.label)})));var E,S,_,C={toggleOption:t.toggleOption,value:t.state.value,disabled:t.props.disabled,name:t.props.name,registerValue:t.registerValue,cancelValue:t.cancelValue},P=(0,o.default)(g,d,(E={},S="".concat(g,"-rtl"),_="rtl"===c,S in E?Object.defineProperty(E,S,{value:_,enumerable:!0,configurable:!0,writable:!0}):E[S]=_,E));return r.createElement("div",f({className:P,style:h},x),r.createElement(w.Provider,{value:C},j))},t.state={value:e.value||e.defaultValue||[],registeredValues:[]},t}return t=l,u=[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value||[]}:null}}],(n=[{key:"getOptions",value:function(){return this.props.options.map((function(e){return"string"==typeof e?{label:e,value:e}:e}))}},{key:"render",value:function(){return r.createElement(c.ConfigConsumer,null,this.renderGroup)}}])&&h(t.prototype,n),u&&h(t,u),l}(r.PureComponent);x.defaultProps={options:[]};var j=x;t.default=j},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(986))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=d(n(671)),a=d(n(5)),c=d(n(403)),u=d(n(1306)),s=n(164),l=d(n(551)),f=n(750),p=n(621);function d(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,f.tuple)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight");var y=function(e){var t,n,r,u,f=o.useContext(s.ConfigContext),d=f.getPopupContainer,h=f.getPrefixCls,y=f.direction,b=e.arrow,g=e.prefixCls,O=e.children,w=e.trigger,x=e.disabled,j=e.getPopupContainer,E=e.overlayClassName,S=h("dropdown",g),_=o.Children.only(O),C=(0,p.cloneElement)(_,{className:(0,a.default)(_.props.className,"".concat(S,"-trigger"),m({},"".concat(S,"-rtl"),"rtl"===y)),disabled:x}),P=(0,a.default)(E,m({},"".concat(S,"-rtl"),"rtl"===y)),k=x?[]:w;return k&&-1!==k.indexOf("contextMenu")&&(t=!0),o.createElement(i.default,v({arrow:b,alignPoint:t},e,{overlayClassName:P,prefixCls:S,getPopupContainer:j||d,transitionName:(n=e.placement,r=void 0===n?"":n,u=e.transitionName,void 0!==u?u:r.indexOf("top")>=0?"slide-down":"slide-up"),trigger:k,overlay:function(){return function(t){var n,r=e.overlay;n="function"==typeof r?r():r;var i=(n=o.Children.only("string"==typeof n?o.createElement("span",null,"overlayNode"):n)).props;(0,l.default)(!i.mode||"vertical"===i.mode,"Dropdown",'mode="'.concat(i.mode,"\" is not supported for Dropdown's Menu."));var a=i.selectable,u=void 0!==a&&a,s=i.focusable,f=void 0===s||s,d=o.createElement("span",{className:"".concat(t,"-menu-submenu-arrow")},o.createElement(c.default,{className:"".concat(t,"-menu-submenu-arrow-icon")}));return"string"==typeof n.type?n:(0,p.cloneElement)(n,{mode:"vertical",selectable:u,focusable:f,expandIcon:d})}(S)},placement:function(){var t=e.placement;return void 0!==t?t:"rtl"===y?"bottomRight":"bottomLeft"}()}),C)};y.Button=u.default,y.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var b=y;t.default=b},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1307))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(0)),o=v(n(360)),i=d(n(5)),a=d(n(1317)),c=d(n(1318)),u=n(164),s=d(n(551)),l=n(990),f=d(n(1324)),p=d(n(899));function d(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function v(e){if(e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){w(n,e);var t=j(n);function n(e){var a;return b(this,n),(a=t.call(this,e)).renderMenu=function(e){var t,n,c,u=e.getPopupContainer,s=e.getPrefixCls,l=e.direction,d=a.props,h=d.prefixCls,v=d.className,m=d.theme,b={horizontal:{motionName:"slide-up"},inline:f.default,other:{motionName:"zoom-big"}},g=s("menu",h),O=(0,i.default)(v,"".concat(g,"-").concat(m),(t={},n="".concat(g,"-inline-collapsed"),c=a.getInlineCollapsed(),n in t?Object.defineProperty(t,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):t[n]=c,t));return r.createElement(p.default.Provider,{value:{inlineCollapsed:a.getInlineCollapsed()||!1,antdMenuTheme:m,direction:l}},r.createElement(o.default,y({getPopupContainer:u},a.props,{className:O,prefixCls:g,direction:l,defaultMotions:b})))},(0,s.default)(!("inlineCollapsed"in e&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),(0,s.default)(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),a}return O(n,[{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"render",value:function(){return r.createElement(u.ConfigConsumer,null,this.renderMenu)}}]),n}(r.Component);_.defaultProps={className:"",theme:"light",focusable:!1};var C=function(e){w(n,e);var t=j(n);function n(){return b(this,n),t.apply(this,arguments)}return O(n,[{key:"render",value:function(){var e=this;return r.createElement(l.SiderContext.Consumer,null,(function(t){return r.createElement(_,y({},e.props,t))}))}}]),n}(r.Component);t.default=C,C.Divider=o.Divider,C.Item=c.default,C.SubMenu=a.default,C.ItemGroup=o.ItemGroup},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=f(n(918)),a=f(n(5)),c=f(n(1319)),u=n(621),s=n(164),l=n(1321);function f(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var y=new RegExp("^(".concat(l.PresetColorTypes.join("|"),")(-inverse)?$"));function b(e,t){var n=e.type;if((!0===n.__ANT_BUTTON||!0===n.__ANT_SWITCH||!0===n.__ANT_CHECKBOX||"button"===e.type)&&e.props.disabled){var r=function(e,t){var n={},r=m({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=r.picked,c=r.omitted,s=m(m({display:"inline-block"},i),{cursor:"not-allowed",width:e.props.block?"100%":null}),l=m(m({},c),{pointerEvents:"none"}),f=(0,u.cloneElement)(e,{style:l,className:null});return o.createElement("span",{style:s,className:(0,a.default)(e.props.className,"".concat(t,"-disabled-compatible-wrapper"))},f)}return e}var g=o.forwardRef((function(e,t){var n,r=o.useContext(s.ConfigContext),l=r.getPopupContainer,f=r.getPrefixCls,p=r.direction,v=h(o.useState(!!e.visible||!!e.defaultVisible),2),g=v[0],O=v[1];o.useEffect((function(){"visible"in e&&O(e.visible)}),[e.visible]);var w=function(){var t=e.title,n=e.overlay;return!t&&!n&&0!==t},x=function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||(0,c.default)({arrowPointAtCenter:n,autoAdjustOverflow:r})},j=e.prefixCls,E=e.openClassName,S=e.getPopupContainer,_=e.getTooltipContainer,C=e.overlayClassName,P=e.color,k=e.overlayInnerStyle,M=e.children,N=f("tooltip",j),T=g;!("visible"in e)&&w()&&(T=!1);var A,R,D,I,L=b((0,u.isValidElement)(M)?M:o.createElement("span",null,M),N),F=L.props,z=(0,a.default)(F.className,d({},E||"".concat(N,"-open"),!0)),B=(0,a.default)(C,(d(n={},"".concat(N,"-rtl"),"rtl"===p),d(n,"".concat(N,"-").concat(P),P&&y.test(P)),n));return P&&!y.test(P)&&(A=m(m({},k),{background:P}),R={background:P}),o.createElement(i.default,m({},e,{prefixCls:N,overlayClassName:B,getTooltipContainer:S||_||l,ref:t,builtinPlacements:x(),overlay:(D=e.title,I=e.overlay,0===D?D:I||D||""),visible:T,onVisibleChange:function(t){"visible"in e||O(!w()&&t),e.onVisibleChange&&!w()&&e.onVisibleChange(t)},onPopupAlign:function(e,t){var n=x(),r=Object.keys(n).filter((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}))[0];if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayInnerStyle:A,arrowContent:o.createElement("span",{className:"".concat(N,"-arrow-content"),style:R})}),T?(0,u.cloneElement)(L,{className:z}):L)}));g.displayName="Tooltip",g.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var O=g;t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SiderContext=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=p(n(5)),i=p(n(89)),a=p(n(908)),c=p(n(403)),u=p(n(599)),s=n(1322),l=n(164),f=p(n(1323));function p(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}function O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},_={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},C=r.createContext({});t.SiderContext=C;var P,k=(P=0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return P+=1,"".concat(e).concat(P)}),M=function(e){O(n,e);var t=x(n);function n(e){var s,l,p;return y(this,n),(s=t.call(this,e)).responsiveHandler=function(e){s.setState({below:e.matches});var t=s.props.onBreakpoint;t&&t(e.matches),s.state.collapsed!==e.matches&&s.setCollapsed(e.matches,"responsive")},s.setCollapsed=function(e,t){"collapsed"in s.props||s.setState({collapsed:e});var n=s.props.onCollapse;n&&n(e,t)},s.toggle=function(){var e=!s.state.collapsed;s.setCollapsed(e,"clickTrigger")},s.renderSider=function(e){var t,n=e.getPrefixCls,l=s.props,p=l.prefixCls,d=l.className,h=l.theme,y=l.collapsible,b=l.reverseArrow,g=l.trigger,O=l.style,w=l.width,x=l.collapsedWidth,j=l.zeroWidthTriggerStyle,E=S(l,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle"]),_=n("layout-sider",p),C=(0,i.default)(E,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),P=s.state.collapsed?x:w,k=(0,f.default)(P)?"".concat(P,"px"):String(P),M=0===parseFloat(String(x||0))?r.createElement("span",{onClick:s.toggle,className:"".concat(_,"-zero-width-trigger ").concat(_,"-zero-width-trigger-").concat(b?"right":"left"),style:j},r.createElement(a.default,null)):null,N={expanded:b?r.createElement(c.default,null):r.createElement(u.default,null),collapsed:b?r.createElement(u.default,null):r.createElement(c.default,null)}[s.state.collapsed?"collapsed":"expanded"],T=null!==g?M||r.createElement("div",{className:"".concat(_,"-trigger"),onClick:s.toggle,style:{width:k}},g||N):null,A=m(m({},O),{flex:"0 0 ".concat(k),maxWidth:k,minWidth:k,width:k}),R=(0,o.default)(d,_,"".concat(_,"-").concat(h),(v(t={},"".concat(_,"-collapsed"),!!s.state.collapsed),v(t,"".concat(_,"-has-trigger"),y&&null!==g&&!M),v(t,"".concat(_,"-below"),!!s.state.below),v(t,"".concat(_,"-zero-width"),0===parseFloat(k)),t));return r.createElement("aside",m({className:R},C,{style:A}),r.createElement("div",{className:"".concat(_,"-children")},s.props.children),y||s.state.below&&M?T:null)},s.uniqueId=k("ant-sider-"),"undefined"!=typeof window&&(l=window.matchMedia),l&&e.breakpoint&&e.breakpoint in _&&(s.mql=l("(max-width: ".concat(_[e.breakpoint],")"))),p="collapsed"in e?e.collapsed:e.defaultCollapsed,s.state={collapsed:p,below:!1},s}return g(n,[{key:"componentDidMount",value:function(){this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),this.props.siderHook&&this.props.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){this.mql&&this.mql.removeListener(this.responsiveHandler),this.props.siderHook&&this.props.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var e=this.state.collapsed,t=this.props.collapsedWidth;return r.createElement(C.Provider,{value:{siderCollapsed:e,collapsedWidth:t}},r.createElement(l.ConfigConsumer,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(e){return"collapsed"in e?{collapsed:e.collapsed}:null}}]),n}(r.Component);M.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var N=function(e){O(n,e);var t=x(n);function n(){return y(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(){var e=this;return r.createElement(s.LayoutContext.Consumer,null,(function(t){return r.createElement(M,m({},t,e.props))}))}}]),n}(r.Component);t.default=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={Group:!0,Button:!0};Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return a.default}}),t.default=void 0;var o=u(n(900)),i=u(n(1325)),a=u(n(1326)),c=n(1327);function u(e){return e&&e.__esModule?e:{default:e}}Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var s=o.default;s.Button=a.default,s.Group=i.default;var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fillRef=a,t.composeRef=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){a(t,e)}))}},t.usePrevious=function(e){var t=r.useRef();return r.useEffect((function(){t.current=e}),[e]),t.current};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=r?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){"function"==typeof e?e(t):"object"===i(e)&&e&&"current"in e&&(e.current=t)}},,function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1132))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1134))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1136))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1138))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1140))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1142))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1144))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1146))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1148))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1150))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1152))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1154))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1156))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1160))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1162))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="RC_SELECT_INTERNAL_PROPS_MARK"},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1179))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1182))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r=n(40),o=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(235)),a=o(n(401)),c=r(n(0)),u=o(n(5)),s=n(737);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=c.forwardRef((function(e,t){var n=e.className,r=e.component,o=e.viewBox,i=e.spin,l=e.rotate,p=e.tabIndex,d=e.onClick,h=e.children,v=(0,a.default)(e,["className","component","viewBox","spin","rotate","tabIndex","onClick","children"]);(0,s.warning)(Boolean(r||h),"Should have `component` prop or `children`."),(0,s.useInsertStyles)();var m=(0,u.default)("anticon",n),y=(0,u.default)({"anticon-spin":!!i}),b=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,g=f(f({},s.svgBaseProps),{},{className:y,style:b,viewBox:o});o||delete g.viewBox;var O=p;return void 0===O&&d&&(O=-1),c.createElement("span",Object.assign({role:"img"},v,{ref:t,tabIndex:O,onClick:d,className:m}),r?c.createElement(r,Object.assign({},g),h):h?((0,s.warning)(Boolean(o)||1===c.Children.count(h)&&c.isValidElement(h)&&"use"===c.Children.only(h).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),c.createElement("svg",Object.assign({},g,{viewBox:o}),h)):null)}));p.displayName="AntdIcon";var d=p;t.default=d},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1191))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){var r=n(216),o=n(1200),i=n(1221),a=n(150),c=n(648),u=n(1225),s=n(1227),l=n(951),f=s((function(e,t){var n={};if(null==e)return n;var s=!1;t=r(t,(function(t){return t=a(t,e),s||(s=t.length>1),t})),c(e,l(e),n),s&&(n=o(n,7,u));for(var f=t.length;f--;)i(n,t[f]);return n}));e.exports=f},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1233))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1238))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1240))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1242))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1244))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1248))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1260))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=r.createContext(null)},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return ee}));var r=n(6),o=n(32),i=n(28),a=n(76),c=n(0),u=n.n(c),s=n(41),l=n(5),f=n.n(l),p=n(407),d=n(629),h=n(295),v=n(408),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function y(e){var t=void 0;return m({},t=e&&"object"==typeof e&&"key"in e?e:{key:e},{key:String(t.key)})}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(y)}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=b(e),a=b(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var c=a[i];if(c.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return m({},e,{status:"add"})}))),r=i),n.push(m({},c,{status:"keep"})),r+=1,t=!0;break}}t||n.push(m({},e,{status:"remove"}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return m({},e,{status:"add"})}))));var c={};n.forEach((function(e){var t=e.key;c[t]=(c[t]||0)+1}));var u=Object.keys(c).filter((function(e){return c[e]>1}));return u.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||"remove"!==r}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function x(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.a,n=function(n){function r(){var e,t,n;j(this,r);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return t=n=E(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(i))),n.state={keyEntities:[]},n.removeKey=function(e){n.setState((function(t){return{keyEntities:t.keyEntities.map((function(t){return t.key!==e?t:O({},t,{status:"removed"})}))}}))},E(n,t)}return S(r,n),w(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=x(r,["component","children"]),c=o||u.a.Fragment,s={};return _.forEach((function(e){s[e]=a[e],delete a[e]})),delete a.keys,u.a.createElement(c,a,n.map((function(n){var r=n.status,o=x(n,["status"]),a="add"===r||"keep"===r;return u.a.createElement(t,O({},s,{key:o.key,visible:a,eventProps:o,onLeaveEnd:function(){s.onLeaveEnd&&s.onLeaveEnd.apply(s,arguments),e.removeKey(o.key)}}),i)})))}}],[{key:"getDerivedStateFromProps",value:function(t,n){var r=t.keys,o=n.keyEntities,i=b(r);if(!e)return{keyEntities:i.map((function(e){return O({},e,{status:"keep"})}))};var a=g(o,i),c=o.length;return{keyEntities:a.filter((function(e){for(var t=null,n=0;n<c;n+=1){var r=o[n];if(r.key===e.key){t=r;break}}return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),r}(u.a.Component);return n.defaultProps={component:"div"},n}(v.c),P=n(604),k=n(181);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=u.a.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,o=e.inputElement,i=e.disabled,a=e.tabIndex,c=e.autoFocus,s=e.autoComplete,l=e.editable,f=e.accessibilityIndex,p=e.value,d=e.onKeyDown,h=e.onMouseDown,v=e.onChange,m=e.onPaste,y=e.onCompositionStart,b=e.onCompositionEnd,g=e.open,O=e.attrs,w=o||u.a.createElement("input",null),x=w,j=x.ref,E=x.props,S=E.onKeyDown,_=E.onChange,C=E.onMouseDown,P=E.onCompositionStart,M=E.onCompositionEnd,T=E.style;return w=u.a.cloneElement(w,N(N({id:r,ref:Object(k.a)(t,j),disabled:i,tabIndex:a,autoComplete:s||"off",autoFocus:c,className:"".concat(n,"-selection-search-input"),style:N(N({},T),{},{opacity:l?null:0}),role:"combobox","aria-expanded":g,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":"".concat(r,"_list_").concat(f)},O),{},{value:l?p:"",readOnly:!l,unselectable:l?null:"on",onKeyDown:function(e){d(e),S&&S(e)},onMouseDown:function(e){h(e),C&&C(e)},onChange:function(e){v(e),_&&_(e)},onCompositionStart:function(e){y(e),P&&P(e)},onCompositionEnd:function(e){b(e),M&&M(e)},onPaste:m}))}));T.displayName="Input";var A=T,R=n(275);function D(e,t){R.b?c.useLayoutEffect(e,t):c.useEffect(e,t)}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F=function(e){var t=e.id,n=e.prefixCls,o=e.values,c=e.open,s=e.searchValue,l=e.inputRef,p=e.placeholder,h=e.disabled,v=e.mode,m=e.showSearch,y=e.autoFocus,b=e.autoComplete,g=e.accessibilityIndex,O=e.tabIndex,w=e.removeIcon,x=e.choiceTransitionName,j=e.maxTagCount,E=e.maxTagTextLength,S=e.maxTagPlaceholder,_=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,k=e.tagRender,M=e.onSelect,N=e.onInputChange,T=e.onInputPaste,R=e.onInputKeyDown,I=e.onInputMouseDown,F=e.onInputCompositionStart,z=e.onInputCompositionEnd,B=u.a.useState(!1),H=Object(i.a)(B,2),K=H[0],V=H[1],U=u.a.useRef(null),W=u.a.useState(0),q=Object(i.a)(W,2),G=q[0],$=q[1];u.a.useEffect((function(){V(!0)}),[]);var Y=c||"tags"===v?s:"",X="tags"===v||c&&m;D((function(){$(U.current.scrollWidth)}),[Y]);var Z,J=o;"number"==typeof j&&(Z=o.length-j,J=o.slice(0,j)),"number"==typeof E&&(J=J.map((function(e){var t=e.label,n=Object(a.a)(e,["label"]),r=t;if("string"==typeof t||"number"==typeof t){var o=String(r);o.length>E&&(r="".concat(o.slice(0,E),"..."))}return L(L({},n),{},{label:r})}))),Z>0&&J.push({key:"__RC_SELECT_MAX_REST_COUNT__",label:"function"==typeof _?_(o.slice(j)):_});var Q=u.a.createElement(C,{component:!1,keys:J,motionName:x,motionAppear:K},(function(e){var t=e.key,o=e.label,i=e.value,a=e.disabled,c=e.className,s=e.style,l=t||i,p="__RC_SELECT_MAX_REST_COUNT__"!==t&&!a,d=function(e){e.preventDefault(),e.stopPropagation()},h=function(e){e&&e.stopPropagation(),M(i,{selected:!1})};return"function"==typeof k?u.a.createElement("span",{key:l,onMouseDown:d,className:c,style:s},k({label:o,value:i,disabled:a,closable:p,onClose:h})):u.a.createElement("span",{key:l,className:f()(c,"".concat(n,"-selection-item"),Object(r.a)({},"".concat(n,"-selection-item-disabled"),a)),style:s},u.a.createElement("span",{className:"".concat(n,"-selection-item-content")},o),p&&u.a.createElement(P.a,{className:"".concat(n,"-selection-item-remove"),onMouseDown:d,onClick:h,customizeIcon:w},"×"))}));return u.a.createElement(u.a.Fragment,null,Q,u.a.createElement("span",{className:"".concat(n,"-selection-search"),style:{width:G}},u.a.createElement(A,{ref:l,open:c,prefixCls:n,id:t,inputElement:null,disabled:h,autoFocus:y,autoComplete:b,editable:X,accessibilityIndex:g,value:Y,onKeyDown:R,onMouseDown:I,onChange:N,onPaste:T,onCompositionStart:F,onCompositionEnd:z,tabIndex:O,attrs:Object(d.a)(e,!0)}),u.a.createElement("span",{ref:U,className:"".concat(n,"-selection-search-mirror"),"aria-hidden":!0},Y," ")),!o.length&&!Y&&u.a.createElement("span",{className:"".concat(n,"-selection-placeholder")},p))},z=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,c=e.autoFocus,s=e.autoComplete,l=e.accessibilityIndex,f=e.mode,p=e.open,h=e.values,v=e.placeholder,m=e.tabIndex,y=e.showSearch,b=e.searchValue,g=e.activeValue,O=e.onInputKeyDown,w=e.onInputMouseDown,x=e.onInputChange,j=e.onInputPaste,E=e.onInputCompositionStart,S=e.onInputCompositionEnd,_=u.a.useState(!1),C=Object(i.a)(_,2),P=C[0],k=C[1],M="combobox"===f,N=M||y&&p,T=h[0],R=b||"";M&&g&&!P&&(R=g),u.a.useEffect((function(){M&&k(!1)}),[M,g]);var D=!("combobox"!==f&&!p)&&!!R,I=!T||"string"!=typeof T.label&&"number"!=typeof T.label?void 0:T.label.toString();return u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"".concat(n,"-selection-search")},u.a.createElement(A,{ref:o,prefixCls:n,id:r,open:p,inputElement:t,disabled:a,autoFocus:c,autoComplete:s,editable:N,accessibilityIndex:l,value:R,onKeyDown:O,onMouseDown:w,onChange:function(e){k(!0),x(e)},onPaste:j,onCompositionStart:E,onCompositionEnd:S,tabIndex:m,attrs:Object(d.a)(e,!0)})),!M&&T&&!D&&u.a.createElement("span",{className:"".concat(n,"-selection-item"),title:I},T.label),!T&&!D&&u.a.createElement("span",{className:"".concat(n,"-selection-placeholder")},v))};function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return c.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var H=c.forwardRef((function(e,t){var n=Object(c.useRef)(null),r=Object(c.useRef)(!1),o=e.prefixCls,a=e.multiple,u=e.open,l=e.mode,f=e.showSearch,p=e.tokenWithEnter,d=e.onSearch,h=e.onSearchSubmit,v=e.onToggleOpen,m=e.onInputKeyDown,y=e.domRef;c.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var b=B(0),g=Object(i.a)(b,2),O=g[0],w=g[1],x=Object(c.useRef)(null),j={inputRef:n,onInputKeyDown:function(e){var t=e.which;t!==s.a.UP&&t!==s.a.DOWN||e.preventDefault(),m&&m(e),t!==s.a.ENTER||"tags"!==l||r.current||u||h(e.target.value),[s.a.SHIFT,s.a.TAB,s.a.BACKSPACE,s.a.ESC].includes(t)||v(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(p&&x.current&&/[\r\n]/.test(x.current)){var n=x.current.replace(/[\r\n]/g," ");t=t.replace(n,x.current)}x.current=null,function(e){!1!==d(e,!0,r.current)&&v(!0)}(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");x.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(){r.current=!1}},E=a?c.createElement(F,Object.assign({},e,j)):c.createElement(z,Object.assign({},e,j));return c.createElement("div",{ref:y,className:"".concat(o,"-selector"),onMouseDown:function(e){var t=O();e.target!==n.current&&(t||e.preventDefault(),void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus());("combobox"===l||f&&t)&&u||(u&&d("",!0,!1),v())}},E)}));H.displayName="Selector";var K=H,V=n(406);function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var W=c.forwardRef((function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),i=e.children,u=e.popupElement,s=e.containerWidth,l=e.animation,p=e.transitionName,d=e.dropdownStyle,h=e.dropdownClassName,v=e.direction,m=void 0===v?"ltr":v,y=e.dropdownMatchSelectWidth,b=void 0===y||y,g=e.dropdownRender,O=e.dropdownAlign,w=e.getPopupContainer,x=e.empty,j=e.getTriggerDOMNode,E=Object(a.a)(e,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),S="".concat(n,"-dropdown"),_=u;g&&(_=g(u));var C=c.useMemo((function(){return function(e){var t="number"!=typeof e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}}(b)}),[b]),P=l?"".concat(S,"-").concat(l):p,k=c.useRef(null);c.useImperativeHandle(t,(function(){return{getPopupElement:function(){return k.current}}}));var M=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({minWidth:s},d);return"number"==typeof b?M.width=b:b&&(M.width=s),c.createElement(V.a,Object.assign({},E,{showAction:[],hideAction:[],popupPlacement:"rtl"===m?"bottomRight":"bottomLeft",builtinPlacements:C,prefixCls:S,popupTransitionName:P,popup:c.createElement("div",{ref:k},_),popupAlign:O,popupVisible:o,getPopupContainer:w,popupClassName:f()(h,Object(r.a)({},"".concat(S,"-empty"),x)),popupStyle:M,getTriggerDOMNode:j}),i)}));W.displayName="SelectTrigger";var q=W,G=n(1009);var $=n(515);function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function ee(e){var t=e.prefixCls,n=e.components.optionList,u=e.convertChildrenToData,l=e.flattenOptions,d=e.getLabeledValue,h=e.filterOptions,v=e.isValueDisabled,m=e.findValueOption,y=(e.warningProps,e.fillOptionsWithMissingValue),b=e.omitDOMProps;return c.forwardRef((function(e,g){var O,w=e.prefixCls,x=void 0===w?t:w,j=e.className,E=e.id,S=e.open,_=e.defaultOpen,C=e.options,k=e.children,M=e.mode,N=e.value,T=e.defaultValue,A=e.labelInValue,I=e.showSearch,L=e.inputValue,F=e.searchValue,z=e.filterOption,H=e.optionFilterProp,V=void 0===H?"value":H,U=e.autoClearSearchValue,W=void 0===U||U,Y=e.onSearch,Z=e.allowClear,ee=e.clearIcon,te=e.showArrow,ne=e.inputIcon,re=e.menuItemSelectedIcon,oe=e.disabled,ie=e.loading,ae=e.defaultActiveFirstOption,ce=e.notFoundContent,ue=void 0===ce?"Not Found":ce,se=e.optionLabelProp,le=e.backfill,fe=e.getInputElement,pe=e.getPopupContainer,de=e.listHeight,he=void 0===de?200:de,ve=e.listItemHeight,me=void 0===ve?20:ve,ye=e.animation,be=e.transitionName,ge=e.virtual,Oe=e.dropdownStyle,we=e.dropdownClassName,xe=e.dropdownMatchSelectWidth,je=e.dropdownRender,Ee=e.dropdownAlign,Se=e.showAction,_e=void 0===Se?[]:Se,Ce=e.direction,Pe=e.tokenSeparators,ke=e.tagRender,Me=e.onPopupScroll,Ne=e.onDropdownVisibleChange,Te=e.onFocus,Ae=e.onBlur,Re=e.onKeyUp,De=e.onKeyDown,Ie=e.onMouseDown,Le=e.onChange,Fe=e.onSelect,ze=e.onDeselect,Be=e.internalProps,He=void 0===Be?{}:Be,Ke=Object(a.a)(e,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","internalProps"]),Ve=He.mark===G.a,Ue=b?b(Ke):Ke;Q.forEach((function(e){delete Ue[e]}));var We=Object(c.useRef)(null),qe=Object(c.useRef)(null),Ge=Object(c.useRef)(null),$e=Object(c.useRef)(null),Ye=Object(c.useMemo)((function(){return(Pe||[]).includes("\n")}),[Pe]),Xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=c.useState(!1),n=Object(i.a)(t,2),r=n[0],o=n[1],a=c.useRef(null),u=function(){window.clearTimeout(a.current)};c.useEffect((function(){return u}),[]);var s=function(t,n){u(),a.current=window.setTimeout((function(){o(t),n&&n()}),e)};return[r,s,u]}(),Ze=Object(i.a)(Xe,3),Je=Ze[0],Qe=Ze[1],et=Ze[2],tt=Object(c.useState)(),nt=Object(i.a)(tt,2),rt=nt[0],ot=nt[1];Object(c.useEffect)((function(){ot("rc_select_".concat(Object(R.a)()))}),[]);var it=E||rt,at=se;void 0===at&&(at=C?"label":"children");var ct="combobox"!==M&&A,ut="tags"===M||"multiple"===M,st=void 0!==I?I:ut||"combobox"===M,lt=Object(c.useRef)(null);c.useImperativeHandle(g,(function(){return{focus:Ge.current.focus,blur:Ge.current.blur}}));var ft=Object(p.a)(T,{value:N}),pt=Object(i.a)(ft,2),dt=pt[0],ht=pt[1],vt=Object(c.useMemo)((function(){return Object(R.e)(dt,{labelInValue:ct,combobox:"combobox"===M})}),[dt,ct]),mt=Object(c.useMemo)((function(){return new Set(vt)}),[vt]),yt=Object(c.useState)(null),bt=Object(i.a)(yt,2),gt=bt[0],Ot=bt[1],wt=Object(c.useState)(""),xt=Object(i.a)(wt,2),jt=xt[0],Et=xt[1],St=jt;"combobox"===M&&void 0!==dt?St=dt:void 0!==F?St=F:L&&(St=L);var _t=Object(c.useMemo)((function(){var e=C;return void 0===e&&(e=u(k)),"tags"===M&&y&&(e=y(e,dt,at,A)),e||[]}),[C,k,M,dt]),Ct=Object(c.useMemo)((function(){return l(_t,e)}),[_t]),Pt=function(e,t){var n=c.useRef(null),r=c.useMemo((function(){var e=new Map;return t.forEach((function(t){var n=t.data.value;e.set(n,t)})),e}),[e,t]);return n.current=r,function(e){return e.map((function(e){return n.current.get(e)})).filter(Boolean)}}(vt,Ct),kt=Object(c.useMemo)((function(){if(!St||!st)return Object(o.a)(_t);var e=h(St,_t,{optionFilterProp:V,filterOption:"combobox"===M&&void 0===z?function(){return!0}:z});return"tags"===M&&e.every((function(e){return e.value!==St}))&&e.unshift({value:St,label:St,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),e}),[_t,St,M,st]),Mt=Object(c.useMemo)((function(){return l(kt,e)}),[kt]);Object(c.useEffect)((function(){$e.current&&$e.current.scrollTo&&$e.current.scrollTo(0)}),[St]);var Nt,Tt,At=Object(c.useMemo)((function(){var e=vt.map((function(e){var t=Pt([e]);return J(J({},d(e,{options:t,prevValue:dt,labelInValue:ct,optionLabelProp:at})),{},{disabled:v(e,t)})}));return M||1!==e.length||null!==e[0].value||null!==e[0].label?e:[]}),[dt,_t,M]);Nt=At,Tt=c.useRef(Nt),At=c.useMemo((function(){var e=new Map;Tt.current.forEach((function(t){var n=t.value,r=t.label;n!==r&&e.set(n,r)}));var t=Nt.map((function(t){var n=e.get(t.value);return t.value===t.label&&n?X(X({},t),{},{label:n}):t}));return Tt.current=t,t}),[Nt]);var Rt=function(e,t,n){var r=Pt([e]),o=m([e],r)[0];if(!He.skipTriggerSelect){var i=ct?d(e,{options:r,prevValue:dt,labelInValue:ct,optionLabelProp:at}):e;t&&Fe?Fe(i,o):!t&&ze&&ze(i,o)}Ve&&(t&&He.onRawSelect?He.onRawSelect(e,o,n):!t&&He.onRawDeselect&&He.onRawDeselect(e,o,n))},Dt=function(e){if(!Ve||!He.skipTriggerChange){var t=Pt(e),n=Object(R.f)(Array.from(e),{labelInValue:ct,options:t,getLabeledValue:d,prevValue:dt,optionLabelProp:at}),r=ut?n:n[0];if(Le&&(0!==vt.length||0!==n.length)){var o=m(e,t);Le(r,ut?o:o[0])}ht(r)}},It=function(e,t){var n,r=t.selected,o=t.source;oe||(ut?(n=new Set(vt),r?n.add(e):n.delete(e)):(n=new Set).add(e),(ut||!ut&&Array.from(vt)[0]!==e)&&Dt(Array.from(n)),Rt(e,!ut||r,o),"combobox"===M?(Et(String(e)),Ot("")):ut&&!W||(Et(""),Ot("")))},Lt="combobox"===M&&fe&&fe()||null,Ft=Object(p.a)(void 0,{defaultValue:_,value:S}),zt=Object(i.a)(Ft,2),Bt=zt[0],Ht=zt[1],Kt=Bt,Vt=!ue&&!kt.length;(oe||Vt&&Kt&&"combobox"===M)&&(Kt=!1);var Ut=!Vt&&Kt,Wt=function(e){var t=void 0!==e?e:!Kt;Bt===t||oe||(Ht(t),Ne&&Ne(t))};!function(e,t,n){var r=c.useRef(null);r.current={elements:e.filter((function(e){return e})),open:t,triggerOpen:n},c.useEffect((function(){function e(e){var t=e.target;r.current.open&&r.current.elements.every((function(e){return!e.contains(t)&&e!==t}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}([We.current,qe.current&&qe.current.getPopupElement()],Ut,Wt);var qt=function(e,t,n){var r=!0,i=e;Ot(null);var a=n?null:Object($.f)(e,Pe),c=a;if("combobox"===M)t&&Dt([i]);else if(a){i="","tags"!==M&&(c=a.map((function(e){var t=Ct.find((function(t){return t.data[at]===e}));return t?t.data.value:null})).filter((function(e){return null!==e})));var u=Array.from(new Set([].concat(Object(o.a)(vt),Object(o.a)(c))));Dt(u),u.forEach((function(e){Rt(e,!0,"input")})),Wt(!1),r=!1}return Et(i),Y&&St!==i&&Y(i),r};Object(c.useEffect)((function(){Bt&&oe&&Ht(!1)}),[oe]),Object(c.useEffect)((function(){Kt||ut||"combobox"===M||qt("",!1,!1)}),[Kt]);var Gt=B(),$t=Object(i.a)(Gt,2),Yt=$t[0],Xt=$t[1],Zt=Object(c.useRef)(!1),Jt=[];Object(c.useEffect)((function(){return function(){Jt.forEach((function(e){return clearTimeout(e)})),Jt.splice(0,Jt.length)}}),[]);var Qt=Object(c.useState)(0),en=Object(i.a)(Qt,2),tn=en[0],nn=en[1],rn=void 0!==ae?ae:"combobox"!==M,on=Object(c.useState)(null),an=Object(i.a)(on,2),cn=an[0],un=an[1],sn=Object(c.useState)({}),ln=Object(i.a)(sn,2)[1];D((function(){if(Ut){var e=Math.ceil(We.current.offsetWidth);cn!==e&&un(e)}}),[Ut]);var fn,pn=c.createElement(n,{ref:$e,prefixCls:x,id:it,open:Kt,childrenAsData:!C,options:kt,flattenOptions:Mt,multiple:ut,values:mt,height:he,itemHeight:me,onSelect:function(e,t){It(e,J(J({},t),{},{source:"option"}))},onToggleOpen:Wt,onActiveValue:function(e,t){nn(t),le&&"combobox"===M&&null!==e&&Ot(String(e))},defaultActiveFirstOption:rn,notFoundContent:ue,onScroll:Me,searchValue:St,menuItemSelectedIcon:re,virtual:!1!==ge&&!1!==xe,onMouseEnter:function(){ln({})}});!oe&&Z&&(vt.length||St)&&(fn=c.createElement(P.a,{className:"".concat(x,"-clear"),onMouseDown:function(){Ve&&He.onClear&&He.onClear(),Dt([]),qt("",!1,!1)},customizeIcon:ee},"×"));var dn,hn=void 0!==te?te:ie||!ut&&"combobox"!==M;hn&&(dn=c.createElement(P.a,{className:f()("".concat(x,"-arrow"),Object(r.a)({},"".concat(x,"-arrow-loading"),ie)),customizeIcon:ne,customizeIconProps:{loading:ie,searchValue:St,open:Kt,focused:Je,showSearch:st}}));var vn=f()(x,j,(O={},Object(r.a)(O,"".concat(x,"-focused"),Je),Object(r.a)(O,"".concat(x,"-multiple"),ut),Object(r.a)(O,"".concat(x,"-single"),!ut),Object(r.a)(O,"".concat(x,"-allow-clear"),Z),Object(r.a)(O,"".concat(x,"-show-arrow"),hn),Object(r.a)(O,"".concat(x,"-disabled"),oe),Object(r.a)(O,"".concat(x,"-loading"),ie),Object(r.a)(O,"".concat(x,"-open"),Kt),Object(r.a)(O,"".concat(x,"-customize-input"),Lt),Object(r.a)(O,"".concat(x,"-show-search"),st),O));return c.createElement("div",Object.assign({className:vn},Ue,{ref:We,onMouseDown:function(e){var t=e.target,n=qe.current&&qe.current.getPopupElement();if(n&&n.contains(t)){var r=setTimeout((function(){var e=Jt.indexOf(r);-1!==e&&Jt.splice(e,1),et(),n.contains(document.activeElement)||Ge.current.focus()}));Jt.push(r)}if(Ie){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];Ie.apply(void 0,[e].concat(i))}},onKeyDown:function(e){var t,n=Yt(),r=e.which;if(Kt||r!==s.a.ENTER||Wt(!0),Xt(!!St),r===s.a.BACKSPACE&&!n&&ut&&!St&&vt.length){var o=Object(R.c)(At,vt);null!==o.removedValue&&(Dt(o.values),Rt(o.removedValue,!1,"input"))}for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];Kt&&$e.current&&(t=$e.current).onKeyDown.apply(t,[e].concat(a));De&&De.apply(void 0,[e].concat(a))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Kt&&$e.current&&(o=$e.current).onKeyUp.apply(o,[e].concat(n));Re&&Re.apply(void 0,[e].concat(n))},onFocus:function(){Qe(!0),oe||(Te&&!Zt.current&&Te.apply(void 0,arguments),_e.includes("focus")&&Wt(!0)),Zt.current=!0},onBlur:function(){Qe(!1,(function(){Zt.current=!1,Wt(!1)})),oe||(St&&("tags"===M?(qt("",!1,!1),Dt(Array.from(new Set([].concat(Object(o.a)(vt),[St]))))):"multiple"===M&&Et("")),Ae&&Ae.apply(void 0,arguments))}}),Je&&!Kt&&c.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(vt.join(", "))),c.createElement(q,{ref:qe,disabled:oe,prefixCls:x,visible:Ut,popupElement:pn,containerWidth:cn,animation:ye,transitionName:be,dropdownStyle:Oe,dropdownClassName:we,direction:Ce,dropdownMatchSelectWidth:xe,dropdownRender:je,dropdownAlign:Ee,getPopupContainer:pe,empty:!_t.length,getTriggerDOMNode:function(){return lt.current}},c.createElement(K,Object.assign({},e,{domRef:lt,prefixCls:x,inputElement:Lt,ref:Ge,id:it,showSearch:st,mode:M,accessibilityIndex:tn,multiple:ut,tagRender:ke,values:At,open:Kt,onToggleOpen:Wt,searchValue:St,activeValue:gt,onSearch:qt,onSearchSubmit:function(e){var t=Array.from(new Set([].concat(Object(o.a)(vt),[e])));Dt(t),t.forEach((function(e){Rt(e,!0,"input")})),Et("")},onSelect:function(e,t){It(e,J(J({},t),{},{source:"selection"}))},tokenWithEnter:Ye}))),dn,fn)}))}},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(109),c=n.n(a);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){var t=e.height,n=e.offset,o=e.children,a=e.prefixCls,c={},u={display:"flex",flexDirection:"column"};return void 0!==n&&(c={height:t,position:"relative",overflow:"hidden"},u=s(s({},u),{},{transform:"translateY(".concat(n,"px)"),position:"absolute",left:0,right:0,top:0})),r.createElement("div",{style:c},r.createElement("div",{style:u,className:i()(l({},"".concat(a,"-holder-inner"),a))},o))},p=n(557);function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){return e<0?0:e>=t?t:e}function v(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;if(n<=r)return 0;var o=n-r;return h(t,o)/o}function m(e){return e?v(e):0}function y(e,t,n){var r=function(e,t){var n=Math.floor(e*t),r=n/t;return{index:n,offsetPtg:(e-r)/((n+1)/t-r)}}(e,t),o=r.index,i=r.offsetPtg,a=Math.ceil(e*n),c=Math.ceil((1-e)*n);return{itemIndex:o,itemOffsetPtg:i,startIndex:Math.max(0,o-a),endIndex:Math.min(t-1,o+c)}}function b(e){var t=e.itemIndex,n=e.itemOffsetPtg,r=e.itemElementHeights,o=e.scrollPtg*e.clientHeight,i=n*(r[(0,e.getItemKey)(t)]||0);return Math.floor(o-i)}function g(e){var t=e.locatedItemRelativeTop,n=e.locatedItemIndex,r=e.compareItemIndex,o=e.startIndex,i=e.endIndex,a=e.getItemKey,c=e.itemElementHeights,u=t,s=a(r);if(r<=n)for(var l=n;l>=o;l-=1){if(a(l)===s)break;u-=c[a(l-1)]||0}else for(var f=n;f<=i;f+=1){var p=a(f);if(p===s)break;u+=c[p]||0}return u}function O(e,t,n,r){return!1!==r&&"number"==typeof e&&n*t>e}function w(e,t,n,r){var o=n-e,i=t-n;if(r<=2*Math.min(o,i)){var a=Math.floor(r/2);return r%2?n+a+1:n-a}return o>i?n-(r-i):n+(r-o)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T,A={overflowY:"auto",overflowAnchor:"none"},R=((T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(u,e);var t,n,o,a=k(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).listRef=r.createRef(),t.itemElements={},t.itemElementHeights={},t.lockScroll=!1,t.onScroll=function(e){var n=t.props,r=n.data,o=n.height,i=n.itemHeight,a=n.disabled,c=t.listRef.current,u=c.scrollTop,s=c.clientHeight,l=h(u,c.scrollHeight-s);if(l!==t.state.scrollTop&&!t.lockScroll&&!a){var f=m(t.listRef.current),p=Math.ceil(o/i),d=y(f,r.length,p),v=d.itemIndex,b=d.itemOffsetPtg,g=d.startIndex,O=d.endIndex;t.setState({status:"MEASURE_START",scrollTop:l,itemIndex:v,itemOffsetPtg:b,startIndex:g,endIndex:O}),t.triggerOnScroll(e)}},t.onRawScroll=function(e){var n=t.listRef.current.scrollTop;t.setState({scrollTop:n}),t.triggerOnScroll(e)},t.triggerOnScroll=function(e){var n=t.props.onScroll;n&&e&&n(e)},t.getIndexKey=function(e,n){var r=n||t.props,o=r.data,i=void 0===o?[]:o;if(e===i.length)return"__rc_ghost_item__";var a=i[e];return void 0===a?(console.error("Not find index item. Please report this since it is a bug."),null):t.getItemKey(a,r)},t.getItemKey=function(e,n){var r=(n||t.props).itemKey;return"function"==typeof r?r(e):e[r]},t.collectItemHeights=function(e){for(var n,r,o=e||t.state,i=o.startIndex,a=o.endIndex,c=t.props.data,u=i;u<=a;u+=1){var s=c[u];if(s){var l=t.getItemKey(s);t.itemElementHeights[l]=(n=t.itemElements[l],r=void 0,(r=Object(p.a)(n))?r.offsetHeight:0)}}},t.scrollTo=function(e){c.a.cancel(t.rafId),t.rafId=c()((function(){if("object"===_(e)){var n=t.state.isVirtual,r=t.props,o=r.height,i=r.itemHeight,a=r.data,c=e.align,u=void 0===c?"auto":c,s=0;if("index"in e)s=e.index;else if("key"in e){var l=e.key;s=a.findIndex((function(e){return t.getItemKey(e)===l}))}var f=Math.ceil(o/i),p=a[s];if(p){var d=t.listRef.current.clientHeight;if(n){var h=t.state,v=h.itemIndex,g=h.itemOffsetPtg,O=t.listRef.current.scrollTop,w=m(t.listRef.current),x=b({itemIndex:v,itemOffsetPtg:g,itemElementHeights:t.itemElementHeights,scrollPtg:w,clientHeight:d,getItemKey:t.getIndexKey});t.setState({startIndex:Math.max(0,s-f),endIndex:Math.min(a.length-1,s+f)},(function(){var e;t.collectItemHeights();var n=u;if("auto"===u){var r=!0;if(Math.abs(v-s)<f){var o=x;if(s<v)for(var i=s;i<v;i+=1){var c=t.getIndexKey(i);o-=t.itemElementHeights[c]||0}else for(var l=v;l<=s;l+=1){var h=t.getIndexKey(l);o+=t.itemElementHeights[h]||0}r=o<=0||o>=d}if(!r){var m=y(w,a.length,f),b=m.itemIndex,g=m.itemOffsetPtg,j=m.startIndex,E=m.endIndex;return void t.setState({scrollTop:O,itemIndex:b,itemOffsetPtg:g,startIndex:j,endIndex:E})}n=s<v?"top":"bottom"}if("top"===n)e=0;else if("bottom"===n){var S=t.getItemKey(p);e=d-t.itemElementHeights[S]||0}t.internalScrollTo({itemIndex:s,relativeTop:e})}))}else{t.collectItemHeights({startIndex:0,endIndex:a.length-1});for(var j=u,E=t.itemElementHeights[t.getIndexKey(s)],S=0,C=0;C<s;C+=1){var P=t.getIndexKey(C);S+=t.itemElementHeights[P]||0}var k=S+E;"auto"===j&&(S<t.listRef.current.scrollTop?j="top":k>t.listRef.current.scrollTop+d&&(j="bottom")),"top"===j?t.listRef.current.scrollTop=S:"bottom"===j&&(t.listRef.current.scrollTop=S-(d-E))}}}else t.listRef.current.scrollTop=e}))},t.renderChildren=function(e,n,o){var i=t.state.status;return e.map((function(e,a){var c=n+a,u=o(e,c,{style:"MEASURE_START"===i?{visibility:"hidden"}:{}}),s=t.getIndexKey(c);return r.cloneElement(u,{key:s,ref:function(e){t.itemElements[s]=e}})}))},t.cachedProps=e,t.state={status:"NONE",scrollTop:null,itemIndex:0,itemOffsetPtg:0,startIndex:0,endIndex:0,startItemTop:0,isVirtual:O(e.height,e.itemHeight,e.data.length,e.virtual),itemCount:e.data.length},t}return t=u,o=[{key:"getDerivedStateFromProps",value:function(e){return e.disabled?null:{itemCount:e.data.length}}}],(n=[{key:"componentDidMount",value:function(){this.listRef.current&&(this.listRef.current.scrollTop=0,this.onScroll(null))}},{key:"componentDidUpdate",value:function(){var e=this,t=this.state.status,n=this.props,r=n.data,o=n.height,i=n.itemHeight,a=n.disabled,c=n.onSkipRender,u=n.virtual,s=this.cachedProps.data||[],l=null;if(s.length!==r.length){var f=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var c={__EMPTY_ITEM__:!0};function u(e){return void 0!==e?n(e):c}for(var s=null,l=1!==Math.abs(i-a),f=0;f<o.length;f+=1){var p=u(r[f]);if(p!==u(o[f])){s=f,l=l||p!==u(o[f+1]);break}}return null===s?null:{index:s,multiple:l}}(s,r,this.getItemKey);l=f?f.index:null}if(a){if(r.length>s.length){var p=this.state,h=p.startIndex,y=p.endIndex;c&&(null===l||l<h||y<l)&&c()}}else{var w=O(o,i,r.length,u),x=t;if(this.state.isVirtual===w||(x=w?"SWITCH_TO_VIRTUAL":"SWITCH_TO_RAW",this.setState({isVirtual:w,status:x}),"SWITCH_TO_VIRTUAL"!==x)){if("MEASURE_START"===t){var j=this.state,E=j.startIndex,S=j.itemIndex,_=j.itemOffsetPtg,C=this.listRef.current.scrollTop;this.collectItemHeights();for(var P=(M={itemIndex:S,itemOffsetPtg:_,itemElementHeights:this.itemElementHeights,scrollTop:C,scrollPtg:m(this.listRef.current),clientHeight:this.listRef.current.clientHeight,getItemKey:this.getIndexKey}).scrollTop+b(d(M,["scrollTop"])),k=S-1;k>=E;k-=1)P-=this.itemElementHeights[this.getIndexKey(k)]||0;this.setState({status:"MEASURE_DONE",startItemTop:P})}var M;if("SWITCH_TO_RAW"===t){for(var N=this.state.cacheScroll,T=N.itemIndex,A=N.relativeTop,R=0;R<T;R+=1)A-=this.itemElementHeights[this.getIndexKey(R)]||0;this.lockScroll=!0,this.listRef.current.scrollTop=-A,this.setState({status:"MEASURE_DONE",itemIndex:0}),requestAnimationFrame((function(){requestAnimationFrame((function(){e.lockScroll=!1}))}))}else if(s.length!==r.length&&null!==l&&o){var D,I=this.state.itemIndex,L=this.state,F=L.itemOffsetPtg,z=L.startIndex,B=L.endIndex,H=L.scrollTop;this.collectItemHeights(),"SWITCH_TO_VIRTUAL"===this.state.status?(I=0,D=-this.state.scrollTop):D=b({itemIndex:I,itemOffsetPtg:F,itemElementHeights:this.itemElementHeights,scrollPtg:v({scrollTop:H,scrollHeight:s.length*i,clientHeight:this.listRef.current.clientHeight}),clientHeight:this.listRef.current.clientHeight,getItemKey:function(t){return e.getIndexKey(t,e.cachedProps)}});var K=l-1;K<0&&(K=0);var V=g({locatedItemRelativeTop:D,locatedItemIndex:I,compareItemIndex:K,startIndex:z,endIndex:B,getItemKey:function(t){return e.getIndexKey(t,e.cachedProps)},itemElementHeights:this.itemElementHeights});"SWITCH_TO_RAW"===x?this.setState({cacheScroll:{itemIndex:K,relativeTop:V}}):this.internalScrollTo({itemIndex:K,relativeTop:V})}else"SWITCH_TO_RAW"===x&&this.setState({cacheScroll:{itemIndex:0,relativeTop:0}});this.cachedProps=this.props}}}},{key:"componentWillUnmount",value:function(){c.a.cancel(this.rafId)}},{key:"internalScrollTo",value:function(e){for(var t=this,n=e.itemIndex,r=e.relativeTop,o=this.state.scrollTop,i=this.props,a=i.data,c=i.itemHeight,u=i.height,s=Number.MAX_VALUE,l=null,f=null,p=null,d=null,h=null,m=0,O=a.length*c,x=this.listRef.current.clientHeight,j=O-x,E=0;E<j;E+=1){var S=w(0,j,o,E),_=v({scrollTop:S,scrollHeight:O,clientHeight:x}),C=Math.ceil(u/c),P=y(_,a.length,C),k=P.itemIndex,M=P.itemOffsetPtg,N=P.startIndex,T=P.endIndex;if(N<=n&&n<=T){var A=g({locatedItemRelativeTop:b({itemIndex:k,itemOffsetPtg:M,itemElementHeights:this.itemElementHeights,scrollPtg:_,clientHeight:x,getItemKey:this.getIndexKey}),locatedItemIndex:k,compareItemIndex:n,startIndex:N,endIndex:T,getItemKey:this.getIndexKey,itemElementHeights:this.itemElementHeights}),R=Math.abs(A-r);R<s?(s=R,l=S,f=k,p=M,d=N,h=T,m=0):m+=1}if(m>10)break}null!==l&&(this.lockScroll=!0,this.listRef.current.scrollTop=l,this.setState({status:"MEASURE_START",scrollTop:l,itemIndex:f,itemOffsetPtg:p,startIndex:d,endIndex:h}),requestAnimationFrame((function(){requestAnimationFrame((function(){t.lockScroll=!1}))})))}},{key:"render",value:function(){var e=this.state,t=e.isVirtual,n=e.itemCount,o=this.props,a=o.prefixCls,c=o.style,u=o.className,s=o.component,l=void 0===s?"div":s,p=o.height,d=o.itemHeight,h=o.fullHeight,v=void 0===h||h,m=o.data,y=o.children,b=(o.itemKey,o.onSkipRender,o.disabled,o.virtual),g=S(o,["prefixCls","style","className","component","height","itemHeight","fullHeight","data","children","itemKey","onSkipRender","disabled","virtual"]),w=i()(a,u);if(!t){var x=O(p,d,m.length,b);return r.createElement(l,Object.assign({style:p?j(j({},c),{},E({},v?"height":"maxHeight",p),A):c,className:w},g,{onScroll:this.onRawScroll,ref:this.listRef}),r.createElement(f,{prefixCls:a,height:p},this.renderChildren(x?m.slice(0,Math.ceil(p/d)):m,0,y)))}var _=j(j({},c),{},{height:p},A),C=this.state,P=C.status,k=C.startIndex,M=C.endIndex,N=C.startItemTop,T=n*d*1;return r.createElement(l,Object.assign({style:_,className:w},g,{onScroll:this.onScroll,ref:this.listRef}),r.createElement(f,{prefixCls:a,height:T,offset:"MEASURE_DONE"===P?N:0},this.renderChildren(m.slice(k,M+1),k,y)))}}])&&C(t.prototype,n),o&&C(t,o),u}(r.Component)).defaultProps={itemHeight:15,data:[]},T);t.a=R},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(21),a=n.n(i);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(i,e);var t,n,r,o=f(i);function i(){var e;u(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).removeContainer=function(){e.container&&(a.a.unmountComponentAtNode(e.container),e.container.parentNode.removeChild(e.container),e.container=null)},e.renderComponent=function(t,n){var r=e.props,o=r.visible,i=r.getComponent,c=r.forceRender,u=r.getContainer,s=r.parent;(o||s._component||c)&&(e.container||(e.container=u()),a.a.unstable_renderSubtreeIntoContainer(s,i(t),e.container,(function(){n&&n.call(this)})))},e}return t=i,(n=[{key:"componentDidMount",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentWillUnmount",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:"render",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}])&&s(t.prototype,n),r&&s(t,r),i}(o.a.Component);h.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1};var v=n(769),m=n(771);var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.element,r=void 0===n?document.body:n,o={},i=Object.keys(e);return i.forEach((function(e){o[e]=r.style[e]})),i.forEach((function(t){r.style[t]=e[t]})),o};var b={},g=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var t=new RegExp("".concat("ant-scrolling-effect"),"g"),n=document.body.className;if(e){if(!t.test(n))return;return y(b),b={},void(document.body.className=n.replace(t,"").trim())}var r=Object(m.a)();if(r&&(b=y({position:"relative",width:"calc(100% - ".concat(r,"px)")}),!t.test(n))){var o="".concat(n," ").concat("ant-scrolling-effect");document.body.className=o.trim()}}};function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?C(e):t}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var M=0,N=!("undefined"!=typeof window&&window.document&&window.document.createElement),T="createPortal"in a.a,A={},R=function(e){if(N)return null;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"===k(e)&&e instanceof window.HTMLElement)return e}return document.body},D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(a,e);var t,n,r,i=S(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).getContainer=function(){if(N)return null;if(!t.container){t.container=document.createElement("div");var e=R(t.props.getContainer);e&&e.appendChild(t.container)}return t.setWrapperClassName(),t.container},t.setWrapperClassName=function(){var e=t.props.wrapperClassName;t.container&&e&&e!==t.container.className&&(t.container.className=e)},t.savePortal=function(e){t._component=e},t.removeCurrentContainer=function(e){t.container=null,t._component=null,T||(e?t.renderComponent({afterClose:t.removeContainer,onClose:function(){},visible:!1}):t.removeContainer())},t.switchScrollingEffect=function(){1!==M||Object.keys(A).length?M||(y(A),A={},g(!0)):(g(),A=y({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}))};var n=e.visible,r=e.getContainer;return N||R(r)!==document.body||(M=n?M+1:M),t.state={_self:C(t)},t}return t=a,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t._self,o=e.visible,i=e.getContainer;if(n){var a=n.visible,c=n.getContainer;o===a||N||R(i)!==document.body||(M=o&&!a?M+1:M-1),("function"==typeof i&&"function"==typeof c?i.toString()!==c.toString():i!==c)&&r.removeCurrentContainer(!1)}return{prevProps:e}}}],(n=[{key:"componentDidUpdate",value:function(){this.setWrapperClassName()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.visible,n=e.getContainer;N||R(n)!==document.body||(M=t&&M?M-1:M),this.removeCurrentContainer(t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.forceRender,i=t.visible,a=null,c={getOpenCount:function(){return M},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect};return T?((r||i||this._component)&&(a=o.a.createElement(v.a,{getContainer:this.getContainer,ref:this.savePortal},n(c))),a):o.a.createElement(h,{parent:this,visible:i,autoDestroy:!1,getComponent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(w(w(w({},t),c),{},{ref:e.savePortal}))},getContainer:this.getContainer,forceRender:r},(function(t){var n=t.renderComponent,r=t.removeContainer;return e.renderComponent=n,e.removeContainer=r,null}))}}])&&j(t.prototype,n),r&&j(t,r),a}(o.a.Component);t.a=D},function(e,t,n){"use strict";var r,o,i=n(45),a=n(48),c=n(54),u=n(53),s=n(25),l=n(0),f=n(6),p=n(253),d=n(89),h=n(5),v=n.n(h),m="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",y=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],b={};function g(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&b[n])return b[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=y.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),u={sizingStyle:c,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(b[n]=u),u}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(f.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(o||(o={}));var j=function(e){Object(c.a)(n,e);var t=x(n);function n(e){var a;return Object(i.a)(this,n),(a=t.call(this,e)).saveTextArea=function(e){a.textArea=e},a.handleResize=function(e){var t=a.state.resizeStatus,n=a.props,r=n.autoSize,i=n.onResize;t===o.NONE&&("function"==typeof i&&i(e),r&&a.resizeOnNextFrame())},a.resizeOnNextFrame=function(){cancelAnimationFrame(a.nextFrameActionId),a.nextFrameActionId=requestAnimationFrame(a.resizeTextarea)},a.resizeTextarea=function(){var e=a.props.autoSize;if(e&&a.textArea){var t=e.minRows,n=e.maxRows,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var i=g(e,t),a=i.paddingSize,c=i.borderSize,u=i.boxSizing,s=i.sizingStyle;r.setAttribute("style","".concat(s,";").concat(m)),r.value=e.value||e.placeholder||"";var l,f=Number.MIN_SAFE_INTEGER,p=Number.MAX_SAFE_INTEGER,d=r.scrollHeight;if("border-box"===u?d+=c:"content-box"===u&&(d-=a),null!==n||null!==o){r.value=" ";var h=r.scrollHeight-a;null!==n&&(f=h*n,"border-box"===u&&(f=f+a+c),d=Math.max(f,d)),null!==o&&(p=h*o,"border-box"===u&&(p=p+a+c),l=d>p?"":"hidden",d=Math.min(p,d))}return{height:d,minHeight:f,maxHeight:p,overflowY:l}}(a.textArea,!1,t,n);a.setState({textareaStyles:i,resizeStatus:o.RESIZING},(function(){cancelAnimationFrame(a.resizeFrameId),a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:o.RESIZED},(function(){a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:o.NONE}),a.fixFirefoxAutoScroll()}))}))}))}))}},a.renderTextArea=function(){var e=a.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,r=e.autoSize,i=e.onResize,c=e.className,u=e.disabled,s=a.state,h=s.textareaStyles,m=s.resizeStatus,y=Object(d.default)(a.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),b=v()(n,c,Object(f.a)({},"".concat(n,"-disabled"),u));"value"in y&&(y.value=y.value||"");var g=w(w(w({},a.props.style),h),m===o.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return l.createElement(p.default,{onResize:a.handleResize,disabled:!(r||i)},l.createElement("textarea",Object.assign({},y,{className:b,style:g,ref:a.saveTextArea})))},a.state={textareaStyles:{},resizeStatus:o.NONE},a}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(l.Component);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var S=function(e){Object(c.a)(n,e);var t=E(n);function n(e){var r;Object(i.a)(this,n),(r=t.call(this,e)).focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,o=t.onKeyDown;13===e.keyCode&&n&&n(e),o&&o(e)};var o=void 0===e.value||null===e.value?e.defaultValue:e.value;return r.state={value:o},r}return Object(a.a)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return l.createElement(j,Object.assign({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(l.Component);t.a=S},function(e,t,n){"use strict";var r=n(76),o=n(6),i=n(45),a=n(48),c=n(34),u=n(54),s=n(53),l=n(25),f=n(0),p=n(5),d=n.n(p),h=n(1023),v=n(512),m=function(e){var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd;if(!n)return null;for(var a="".concat(t,"-indent-unit"),c=[],u=0;u<n;u+=1){var s;c.push(f.createElement("span",{key:u,className:d()(a,(s={},Object(o.a)(s,"".concat(a,"-start"),r[u+1]),Object(o.a)(s,"".concat(a,"-end"),i[u+1]),s))}))}return f.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},c)},y=n(276);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var w=function(e){Object(u.a)(n,e);var t=O(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).state={dragNodeHighlight:!1},e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,Object(y.b)(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,Object(y.b)(e.props))},e.onSelect=function(t){if(!e.isDisabled()){var n=e.props.context.onNodeSelect;t.preventDefault(),n(t,Object(y.b)(e.props))}},e.onCheck=function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,o=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){t.preventDefault();var a=!o;i(t,Object(y.b)(e.props),a)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,Object(y.b)(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,Object(y.b)(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,Object(y.b)(e.props))},e.onDragStart=function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,Object(c.a)(e));try{t.dataTransfer.setData("text/plain","")}catch(e){}},e.onDragEnter=function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,Object(c.a)(e))},e.onDragOver=function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,Object(c.a)(e))},e.onDragLeave=function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,Object(c.a)(e))},e.onDragEnd=function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(c.a)(e))},e.onDrop=function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(c.a)(e))},e.onExpand=function(t){(0,e.props.context.onNodeExpand)(t,Object(y.b)(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?"open":"close"},e.hasChildren=function(){var t=e.props.eventKey;return!!((e.props.context.keyEntities[t]||{}).children||[]).length},e.isLeaf=function(){var t=e.props,n=t.isLeaf,r=t.loaded,o=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!o&&!i||o&&r&&!i)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n},e.syncLoadData=function(t){var n=t.expanded,r=t.loading,o=t.loaded,i=e.props.context,a=i.loadData,c=i.onNodeLoad;r||a&&n&&!e.isLeaf()&&(e.hasChildren()||o||c(Object(y.b)(e.props)))},e.renderSwitcher=function(){var t=e.props,n=t.expanded,r=t.switcherIcon,o=e.props.context,i=o.prefixCls,a=o.switcherIcon,c=r||a;if(e.isLeaf())return f.createElement("span",{className:d()("".concat(i,"-switcher"),"".concat(i,"-switcher-noop"))},"function"==typeof c?c(g(g({},e.props),{},{isLeaf:!0})):c);var u=d()("".concat(i,"-switcher"),"".concat(i,"-switcher_").concat(n?"open":"close"));return f.createElement("span",{onClick:e.onExpand,className:u},"function"==typeof c?c(g(g({},e.props),{},{isLeaf:!1})):c)},e.renderCheckbox=function(){var t=e.props,n=t.checked,r=t.halfChecked,o=t.disableCheckbox,i=e.props.context.prefixCls,a=e.isDisabled(),c=e.isCheckable();if(!c)return null;var u="boolean"!=typeof c?c:null;return f.createElement("span",{className:d()("".concat(i,"-checkbox"),n&&"".concat(i,"-checkbox-checked"),!n&&r&&"".concat(i,"-checkbox-indeterminate"),(a||o)&&"".concat(i,"-checkbox-disabled")),onClick:e.onCheck},u)},e.renderIcon=function(){var t=e.props.loading,n=e.props.context.prefixCls;return f.createElement("span",{className:d()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})},e.renderSelector=function(){var t,n=e.state.dragNodeHighlight,r=e.props,o=r.title,i=r.selected,a=r.icon,c=r.loading,u=r.data,s=e.props.context,l=s.prefixCls,p=s.showIcon,h=s.icon,v=s.draggable,m=s.loadData,y=e.isDisabled(),b="".concat(l,"-node-content-wrapper");if(p){var g=a||h;t=g?f.createElement("span",{className:d()("".concat(l,"-iconEle"),"".concat(l,"-icon__customize"))},"function"==typeof g?g(e.props):g):e.renderIcon()}else m&&c&&(t=e.renderIcon());var O=f.createElement("span",{className:"".concat(l,"-title")},"function"==typeof o?o(u):o);return f.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof o?o:"",className:d()("".concat(b),"".concat(b,"-").concat(e.getNodeState()||"normal"),!y&&(i||n)&&"".concat(l,"-node-selected"),!y&&v&&"draggable"),draggable:!y&&v||void 0,"aria-grabbed":!y&&v||void 0,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick,onDragStart:v?e.onDragStart:void 0},t,O)},e}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,i=t.className,a=t.style,c=t.dragOver,u=t.dragOverGapTop,s=t.dragOverGapBottom,l=t.isLeaf,p=t.isStart,h=t.isEnd,b=t.expanded,g=t.selected,O=t.checked,w=t.halfChecked,x=t.loading,j=t.domRef,E=t.active,S=t.onMouseMove,_=Object(r.a)(t,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),C=this.props.context,P=C.prefixCls,k=C.filterTreeNode,M=C.draggable,N=C.keyEntities,T=this.isDisabled(),A=Object(v.c)(_),R=(N[n]||{}).level,D=h[h.length-1];return f.createElement("div",Object.assign({ref:j,className:d()(i,"".concat(P,"-treenode"),(e={},Object(o.a)(e,"".concat(P,"-treenode-disabled"),T),Object(o.a)(e,"".concat(P,"-treenode-switcher-").concat(b?"open":"close"),!l),Object(o.a)(e,"".concat(P,"-treenode-checkbox-checked"),O),Object(o.a)(e,"".concat(P,"-treenode-checkbox-indeterminate"),w),Object(o.a)(e,"".concat(P,"-treenode-selected"),g),Object(o.a)(e,"".concat(P,"-treenode-loading"),x),Object(o.a)(e,"".concat(P,"-treenode-active"),E),Object(o.a)(e,"".concat(P,"-treenode-leaf-last"),D),Object(o.a)(e,"drag-over",!T&&c),Object(o.a)(e,"drag-over-gap-top",!T&&u),Object(o.a)(e,"drag-over-gap-bottom",!T&&s),Object(o.a)(e,"filter-node",k&&k(Object(y.b)(this.props))),e)),style:a,onDragEnter:M?this.onDragEnter:void 0,onDragOver:M?this.onDragOver:void 0,onDragLeave:M?this.onDragLeave:void 0,onDrop:M?this.onDrop:void 0,onDragEnd:M?this.onDragEnd:void 0,onMouseMove:S},A),f.createElement(m,{prefixCls:P,level:R,isStart:p,isEnd:h}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(f.Component),x=function(e){return f.createElement(h.a.Consumer,null,(function(t){return f.createElement(w,Object.assign({},e,{context:t}))}))};x.displayName="TreeNode",x.defaultProps={title:"---"},x.isTreeNode=1;t.a=x},,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(1048)),o=c(n(927)),i=c(n(928)),a=c(n(1050));function c(e){return e&&e.__esModule?e:{default:e}}var u="${label}不是一个有效的${type}",s={locale:"zh-cn",Pagination:r.default,DatePicker:o.default,TimePicker:i.default,Calendar:a.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",selectAll:"全选当页",selectInvert:"反选当页",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(927))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(1052)),o=c(n(929)),i=c(n(930)),a=c(n(1054));function c(e){return e&&e.__esModule?e:{default:e}}var u="${label}不是一個有效的${type}",s={locale:"zh-tw",Pagination:r.default,DatePicker:o.default,TimePicker:i.default,Calendar:a.default,global:{placeholder:"請選擇"},Table:{filterTitle:"篩選器",filterConfirm:"確定",filterReset:"重置",filterEmptyText:"無篩選項",selectAll:"全部選取",selectInvert:"反向選取",selectionAll:"全選所有",sortTitle:"排序",expand:"展開行",collapse:"關閉行",triggerDesc:"點擊降序",triggerAsc:"點擊升序",cancelSort:"取消排序"},Modal:{okText:"確定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{okText:"確定",cancelText:"取消"},Transfer:{searchPlaceholder:"搜尋資料",itemUnit:"項目",itemsUnit:"項目"},Upload:{uploading:"正在上傳...",removeFile:"刪除檔案",uploadError:"上傳失敗",previewFile:"檔案預覽",downloadFile:"下载文件"},Empty:{description:"無此資料"},Icon:{icon:"圖標"},Text:{edit:"編輯",copy:"複製",copied:"複製成功",expand:"展開"},PageHeader:{back:"返回"},Form:{defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label}須為${len}個字符",min:"${label}最少${min}個字符",max:"${label}最多${max}個字符",range:"${label}須在${min}-${max}字符之間"},number:{len:"${label}必須等於${len}",min:"${label}最小值為${min}",max:"${label}最大值為${max}",range:"${label}須在${min}-${max}之間"},array:{len:"須為${len}個${label}",min:"最少${min}個${label}",max:"最多${max}個${label}",range:"${label}數量須在${min}-${max}之間"},pattern:{mismatch:"${label}與模式不匹配${pattern}"}}}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={items_per_page:"條/頁",jump_to:"跳至",jump_to_confirm:"確定",page:"頁",prev_page:"上一頁",next_page:"下一頁",prev_5:"向前 5 頁",next_5:"向後 5 頁",prev_3:"向前 3 頁",next_3:"向後 3 頁"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={locale:"zh_TW",today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",weekSelect:"選擇周",clear:"清除",month:"月",year:"年",previousMonth:"上個月 (翻頁上鍵)",nextMonth:"下個月 (翻頁下鍵)",monthSelect:"選擇月份",yearSelect:"選擇年份",decadeSelect:"選擇年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"上一年 (Control鍵加左方向鍵)",nextYear:"下一年 (Control鍵加右方向鍵)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世紀",nextCentury:"下一世紀"};t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(929))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(933))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n,r){var o=t&&t.prototype instanceof l?t:l,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return E()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=g(a,n);if(c){if(c===s)continue;return c}}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 l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var s={};function l(){}function f(){}function p(){}var d={};d[o]=function(){return this};var h=Object.getPrototypeOf,v=h&&h(h(j([])));v&&v!==t&&n.call(v,o)&&(d=v);var m=p.prototype=l.prototype=Object.create(d);function y(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var s=u(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function g(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,g(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,s;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function j(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=m.constructor=p,p.constructor=f,p[a]=f.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},y(b.prototype),b.prototype[i]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(m),m[a]="Generator",m[o]=function(){return this},m.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=j,x.prototype={constructor:x,reset:function(e){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(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1059)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="InfoCircleFilled";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},function(e,t){e.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(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(1065));t.generate=o.default;var i={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"};t.presetPrimaryColors=i;var a={};t.presetPalettes=a,Object.keys(i).forEach((function(e){a[e]=o.default(i[e]),a[e].primary=a[e][5]}));var c=a.red;t.red=c;var u=a.volcano;t.volcano=u;var s=a.gold;t.gold=s;var l=a.orange;t.orange=l;var f=a.yellow;t.yellow=f;var p=a.lime;t.lime=p;var d=a.green;t.green=d;var h=a.cyan;t.cyan=h;var v=a.blue;t.blue=v;var m=a.geekblue;t.geekblue=m;var y=a.purple;t.purple=y;var b=a.magenta;t.magenta=b;var g=a.grey;t.grey=g},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(1066));function i(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function a(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?Math.round(100*e.s)-16*t:4===t?Math.round(100*e.s)+16:Math.round(100*e.s)+5*t)>100&&(r=100),n&&5===t&&r>10&&(r=10),r<6&&(r=6),r);var r}function c(e,t,n){return n?Math.round(100*e.v)+5*t:Math.round(100*e.v)-15*t}t.default=function(e){for(var t=[],n=o.default(e),r=5;r>0;r-=1){var u=n.toHsv(),s=o.default({h:i(u,r,!0),s:a(u,r,!0),v:c(u,r,!0)}).toHexString();t.push(s)}for(t.push(n.toHexString()),r=1;r<=4;r+=1){u=n.toHsv(),s=o.default({h:i(u,r),s:a(u,r),v:c(u,r)}).toHexString();t.push(s)}return t}},function(e,t,n){var r;!function(o){var i=/^\s+/,a=/\s+$/,c=0,u=o.round,s=o.min,l=o.max,f=o.random;function p(e,t){if(t=t||{},(e=e||"")instanceof p)return e;if(!(this instanceof p))return new p(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,c=null,u=null,f=!1,p=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,n=!1;if(M[e])e=M[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=V.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=V.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=V.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=V.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=V.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=V.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=V.hex8.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),a:z(t[4]),format:n?"name":"hex8"};if(t=V.hex6.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),format:n?"name":"hex"};if(t=V.hex4.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),a:z(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=V.hex3.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(d=e.r,h=e.g,v=e.b,t={r:255*A(d,255),g:255*A(h,255),b:255*A(v,255)},f=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(r=L(e.s),c=L(e.v),t=function(e,t,n){e=6*A(e,360),t=A(t,100),n=A(n,100);var r=o.floor(e),i=e-r,a=n*(1-t),c=n*(1-i*t),u=n*(1-(1-i)*t),s=r%6;return{r:255*[n,c,a,a,u,n][s],g:255*[u,n,n,c,a,a][s],b:255*[a,a,u,n,n,c][s]}}(e.h,r,c),f=!0,p="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(r=L(e.s),u=L(e.l),t=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=A(e,360),t=A(t,100),n=A(n,100),0===t)r=o=i=n;else{var c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;r=a(u,c,e+1/3),o=a(u,c,e),i=a(u,c,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,u),f=!0,p="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,h,v;return n=T(n),{ok:f,format:e.format||p,r:s(255,l(t.r,0)),g:s(255,l(t.g,0)),b:s(255,l(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=c++}function d(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,i=l(e,t,n),a=s(e,t,n),c=(i+a)/2;if(i==a)r=o=0;else{var u=i-a;switch(o=c>.5?u/(2-i-a):u/(i+a),i){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:o,l:c}}function h(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,i=l(e,t,n),a=s(e,t,n),c=i,u=i-a;if(o=0===i?0:u/i,i==a)r=0;else{switch(i){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:o,v:c}}function v(e,t,n,r){var o=[I(u(e).toString(16)),I(u(t).toString(16)),I(u(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function m(e,t,n,r){return[I(F(r)),I(u(e).toString(16)),I(u(t).toString(16)),I(u(n).toString(16))].join("")}function y(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s-=t/100,n.s=R(n.s),p(n)}function b(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s+=t/100,n.s=R(n.s),p(n)}function g(e){return p(e).desaturate(100)}function O(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l+=t/100,n.l=R(n.l),p(n)}function w(e,t){t=0===t?0:t||10;var n=p(e).toRgb();return n.r=l(0,s(255,n.r-u(-t/100*255))),n.g=l(0,s(255,n.g-u(-t/100*255))),n.b=l(0,s(255,n.b-u(-t/100*255))),p(n)}function x(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l-=t/100,n.l=R(n.l),p(n)}function j(e,t){var n=p(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,p(n)}function E(e){var t=p(e).toHsl();return t.h=(t.h+180)%360,p(t)}function S(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+120)%360,s:t.s,l:t.l}),p({h:(n+240)%360,s:t.s,l:t.l})]}function _(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+90)%360,s:t.s,l:t.l}),p({h:(n+180)%360,s:t.s,l:t.l}),p({h:(n+270)%360,s:t.s,l:t.l})]}function C(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+72)%360,s:t.s,l:t.l}),p({h:(n+216)%360,s:t.s,l:t.l})]}function P(e,t,n){t=t||6,n=n||30;var r=p(e).toHsl(),o=360/n,i=[p(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(p(r));return i}function k(e,t){t=t||6;for(var n=p(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(p({h:r,s:o,v:i})),i=(i+c)%1;return a}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[I(u(e).toString(16)),I(u(t).toString(16)),I(u(n).toString(16)),I(F(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*A(this._r,255))+"%",g:u(100*A(this._g,255))+"%",b:u(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*A(this._r,255))+"%, "+u(100*A(this._g,255))+"%, "+u(100*A(this._b,255))+"%)":"rgba("+u(100*A(this._r,255))+"%, "+u(100*A(this._g,255))+"%, "+u(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=p(e);n="#"+m(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(j,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},p.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:L(e[r]));e=n}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:f(),g:f(),b:f()})},p.mix=function(e,t,n){n=0===n?0:n||50;var r=p(e).toRgb(),o=p(t).toRgb(),i=n/100;return p({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},p.readability=function(e,t){var n=p(e),r=p(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},p.isReadable=function(e,t,n){var r,o,i=p.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},p.mostReadable=function(e,t,n){var r,o,i,a,c=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var s=0;s<t.length;s++)(r=p.readability(e,t[s]))>u&&(u=r,c=p(t[s]));return p.isReadable(e,c,{level:i,size:a})||!o?c:(n.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],n))};var M=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=p.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(M);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,l(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return s(1,l(0,e))}function D(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function F(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return D(e)/255}var B,H,K,V=(H="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",K="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+K),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+K),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+K),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!V.CSS_UNIT.exec(e)}e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t){var n=[],r=[];function o(e,t){if(t=t||{},void 0===e)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var o,i=!0===t.prepend?"prepend":"append",a=void 0!==t.container?t.container:document.querySelector("head"),c=n.indexOf(a);return-1===c&&(c=n.push(a)-1,r[c]={}),void 0!==r[c]&&void 0!==r[c][i]?o=r[c][i]:(o=r[c][i]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===i?a.insertBefore(o,a.childNodes[0]):a.appendChild(o)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),o.styleSheet?o.styleSheet.cssText+=e:o.textContent+=e,o}e.exports=o,e.exports.insertCss=o},function(e,t,n){"use strict";var r=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.setTwoToneColor=function(e){var t=(0,a.normalizeTwoToneColors)(e),n=(0,o.default)(t,2),r=n[0],c=n[1];return i.default.setTwoToneColors({primaryColor:r,secondaryColor:c})},t.getTwoToneColor=function(){var e=i.default.getTwoToneColors();if(!e.calculated)return e.primaryColor;return[e.primaryColor,e.secondaryColor]};var o=r(n(614)),i=r(n(937)),a=n(737)},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1070)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CheckCircleFilled";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1072)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CloseCircleFilled";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1074)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="ExclamationCircleFilled";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1076)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="LoadingOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1078)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CloseOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1080)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CheckCircleOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1082)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="InfoCircleOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1084)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CloseCircleOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1086)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="ExclamationCircleOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"}},,function(e,t,n){e.exports={default:n(1089),__esModule:!0}},function(e,t,n){n(1090),e.exports=n(591).Object.assign},function(e,t,n){var r=n(645);r(r.S+r.F,"Object",{assign:n(1092)})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(592),o=n(739),i=n(808),a=n(742),c=n(809),u=n(942),s=Object.assign;e.exports=!s||n(647)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=r}))?function(e,t){for(var n=c(e),s=arguments.length,l=1,f=i.f,p=a.f;s>l;)for(var d,h=u(arguments[l++]),v=f?o(h).concat(f(h)):o(h),m=v.length,y=0;m>y;)d=v[y++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:s},function(e,t,n){var r=n(618),o=n(1094),i=n(1095);e.exports=function(e){return function(t,n,a){var c,u=r(t),s=o(u.length),l=i(a,s);if(e&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(804),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(804),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){(function(){var t,n,r,o,i,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},n=process.hrtime,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),a=1e9*process.uptime(),i=o-a):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1098)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="BarsOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1100)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="RightOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1102)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="LeftOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"}},function(e,t,n){e.exports={default:n(1104),__esModule:!0}},function(e,t,n){n(1105),n(1111),e.exports=n(813).f("iterator")},function(e,t,n){"use strict";var r=n(1106)(!0);n(945)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(804),o=n(803);e.exports=function(e){return function(t,n){var i,a,c=String(o(t)),u=r(n),s=c.length;return u<0||u>=s?e?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?e?c.charAt(u):i:e?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(811),o=n(738),i=n(812),a={};n(615)(a,n(619)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(616),o=n(646),i=n(739);e.exports=n(592)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),c=a.length,u=0;c>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(550).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(593),o=n(809),i=n(805)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){n(1112);for(var r=n(550),o=n(615),i=n(810),a=n(619)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<c.length;u++){var s=c[u],l=r[s],f=l&&l.prototype;f&&!f[a]&&o(f,a,s),i[s]=i.Array}},function(e,t,n){"use strict";var r=n(1113),o=n(1114),i=n(810),a=n(618);e.exports=n(945)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(1116),__esModule:!0}},function(e,t,n){n(1117),n(1122),n(1123),n(1124),e.exports=n(591).Symbol},function(e,t,n){"use strict";var r=n(550),o=n(593),i=n(592),a=n(645),c=n(946),u=n(1118).KEY,s=n(647),l=n(806),f=n(812),p=n(741),d=n(619),h=n(813),v=n(814),m=n(1119),y=n(1120),b=n(646),g=n(617),O=n(809),w=n(618),x=n(802),j=n(738),E=n(811),S=n(1121),_=n(948),C=n(808),P=n(616),k=n(739),M=_.f,N=P.f,T=S.f,A=r.Symbol,R=r.JSON,D=R&&R.stringify,I=d("_hidden"),L=d("toPrimitive"),F={}.propertyIsEnumerable,z=l("symbol-registry"),B=l("symbols"),H=l("op-symbols"),K=Object.prototype,V="function"==typeof A&&!!C.f,U=r.QObject,W=!U||!U.prototype||!U.prototype.findChild,q=i&&s((function(){return 7!=E(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=M(K,t);r&&delete K[t],N(e,t,n),r&&e!==K&&N(K,t,r)}:N,G=function(e){var t=B[e]=E(A.prototype);return t._k=e,t},$=V&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},Y=function(e,t,n){return e===K&&Y(H,t,n),b(e),t=x(t,!0),b(n),o(B,t)?(n.enumerable?(o(e,I)&&e[I][t]&&(e[I][t]=!1),n=E(n,{enumerable:j(0,!1)})):(o(e,I)||N(e,I,j(1,{})),e[I][t]=!0),q(e,t,n)):N(e,t,n)},X=function(e,t){b(e);for(var n,r=m(t=w(t)),o=0,i=r.length;i>o;)Y(e,n=r[o++],t[n]);return e},Z=function(e){var t=F.call(this,e=x(e,!0));return!(this===K&&o(B,e)&&!o(H,e))&&(!(t||!o(this,e)||!o(B,e)||o(this,I)&&this[I][e])||t)},J=function(e,t){if(e=w(e),t=x(t,!0),e!==K||!o(B,t)||o(H,t)){var n=M(e,t);return!n||!o(B,t)||o(e,I)&&e[I][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=T(w(e)),r=[],i=0;n.length>i;)o(B,t=n[i++])||t==I||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===K,r=T(n?H:w(e)),i=[],a=0;r.length>a;)!o(B,t=r[a++])||n&&!o(K,t)||i.push(B[t]);return i};V||(c((A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===K&&t.call(H,n),o(this,I)&&o(this[I],e)&&(this[I][e]=!1),q(this,e,j(1,n))};return i&&W&&q(K,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",(function(){return this._k})),_.f=J,P.f=Y,n(947).f=S.f=Q,n(742).f=Z,C.f=ee,i&&!n(740)&&c(K,"propertyIsEnumerable",Z,!0),h.f=function(e){return G(d(e))}),a(a.G+a.W+a.F*!V,{Symbol:A});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)d(te[ne++]);for(var re=k(d.store),oe=0;re.length>oe;)v(re[oe++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return o(z,e+="")?z[e]:z[e]=A(e)},keyFor:function(e){if(!$(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!V,"Object",{create:function(e,t){return void 0===t?E(e):X(E(e),t)},defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var ie=s((function(){C.f(1)}));a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return C.f(O(e))}}),R&&a(a.S+a.F*(!V||s((function(){var e=A();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(g(t)||void 0!==e)&&!$(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!$(t))return t}),r[1]=t,D.apply(R,r)}}),A.prototype[L]||n(615)(A.prototype,L,A.prototype.valueOf),f(A,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(741)("meta"),o=n(617),i=n(593),a=n(616).f,c=0,u=Object.isExtensible||function(){return!0},s=!n(647)((function(){return u(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++c,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return s&&f.NEED&&u(e)&&!i(e,r)&&l(e),e}}},function(e,t,n){var r=n(739),o=n(808),i=n(742);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,c=n(e),u=i.f,s=0;c.length>s;)u.call(e,a=c[s++])&&t.push(a);return t}},function(e,t,n){var r=n(943);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(618),o=n(947).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t){},function(e,t,n){n(814)("asyncIterator")},function(e,t,n){n(814)("observable")},function(e,t,n){e.exports={default:n(1126),__esModule:!0}},function(e,t,n){n(1127),e.exports=n(591).Object.setPrototypeOf},function(e,t,n){var r=n(645);r(r.S,"Object",{setPrototypeOf:n(1128).set})},function(e,t,n){var r=n(617),o=n(646),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(938)(Function.call,n(948).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){e.exports={default:n(1130),__esModule:!0}},function(e,t,n){n(1131);var r=n(591).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(645);r(r.S,"Object",{create:n(811)})},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1133)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="SettingOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1135)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="TagsOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1067.88-67.89 48 48 0 10-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z"}}]},name:"tags",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1137)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DashboardOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1139)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="ProfileOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"profile",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1141)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="SelectOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1143)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="BookOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1145)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="KeyOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z"}}]},name:"key",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1147)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="LayoutOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z"}}]},name:"layout",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1149)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="FlagOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1151)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="SoundOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z"}}]},name:"sound",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1153)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="FilePdfOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1155)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DatabaseOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1157)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="ExceptionOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM640 812a32 32 0 1064 0 32 32 0 10-64 0zm12-64h40c4.4 0 8-3.6 8-8V628c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"exception",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1159)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="SwapOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1161)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="SafetyCertificateOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1163)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="LockOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1165)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DoubleLeftOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1167)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DoubleRightOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1169)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="SearchOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1171)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DownOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1173)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CheckOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"}},function(e,t,n){var r=n(66);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(1176),o=n(115),i=n(151),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||u.test(e)?s(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(1177),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},,function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1180)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="WarningOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"}},,function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1183)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="FrownOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z"}}]},name:"frown",theme:"outlined"}},,,,function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1188)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="BlockOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M856 376H648V168c0-8.8-7.2-16-16-16H168c-8.8 0-16 7.2-16 16v464c0 8.8 7.2 16 16 16h208v208c0 8.8 7.2 16 16 16h464c8.8 0 16-7.2 16-16V392c0-8.8-7.2-16-16-16zm-480 16v188H220V220h360v156H392c-8.8 0-16 7.2-16 16zm204 52v136H444V444h136zm224 360H444V648h188c8.8 0 16-7.2 16-16V444h156v360z"}}]},name:"block",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1190)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="EyeOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1192)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="EyeInvisibleOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1194)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="PlusOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"}},,function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1197)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="EllipsisOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1199)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="EditOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"}},function(e,t,n){var r=n(229),o=n(277),i=n(262),a=n(1201),c=n(1202),u=n(1205),s=n(1206),l=n(1207),f=n(1208),p=n(366),d=n(951),h=n(280),v=n(1209),m=n(1210),y=n(1215),b=n(56),g=n(205),O=n(1217),w=n(115),x=n(1219),j=n(157),E=n(815),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,e.exports=function e(t,n,_,C,P,k){var M,N=1&n,T=2&n,A=4&n;if(_&&(M=P?_(t,C,P,k):_(t)),void 0!==M)return M;if(!w(t))return t;var R=b(t);if(R){if(M=v(t),!N)return s(t,M)}else{var D=h(t),I="[object Function]"==D||"[object GeneratorFunction]"==D;if(g(t))return u(t,N);if("[object Object]"==D||"[object Arguments]"==D||I&&!P){if(M=T||I?{}:y(t),!N)return T?f(t,c(M,t)):l(t,a(M,t))}else{if(!S[D])return P?t:{};M=m(t,D,N)}}k||(k=new r);var L=k.get(t);if(L)return L;k.set(t,M),x(t)?t.forEach((function(r){M.add(e(r,n,_,r,t,k))})):O(t)&&t.forEach((function(r,o){M.set(o,e(r,n,_,o,t,k))}));var F=R?void 0:(A?T?d:p:T?E:j)(t);return o(F||t,(function(r,o){F&&(r=t[o=r]),i(M,o,e(r,n,_,o,t,k))})),M}},function(e,t,n){var r=n(648),o=n(157);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(648),o=n(815);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(115),o=n(260),i=n(1204),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var c in e)("constructor"!=c||!t&&a.call(e,c))&&n.push(c);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(66),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(188)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(648),o=n(347);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(648),o=n(950);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(817),o=n(1211),i=n(1212),a=n(1213),c=n(1214);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,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 c(e,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Set]":return new u;case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(817);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(123),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(817);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(1216),o=n(816),i=n(260);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(115),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(1218),o=n(258),i=n(259),a=i&&i.isMap,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(280),o=n(64);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(1220),o=n(258),i=n(259),a=i&&i.isSet,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(280),o=n(64);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(150),o=n(1222),i=n(1223),a=n(116);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(207),o=n(1224);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(1226);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){var r=n(69),o=n(816),i=n(64),a=Function.prototype,c=Object.prototype,u=a.toString,s=c.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},function(e,t,n){var r=n(1228),o=n(516),i=n(517);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(1229);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(346),o=n(1230);e.exports=function e(t,n,i,a,c){var u=-1,s=t.length;for(i||(i=o),c||(c=[]);++u<s;){var l=t[u];n>0&&i(l)?n>1?e(l,n-1,i,a,c):r(c,l):a||(c[c.length]=l)}return c}},function(e,t,n){var r=n(123),o=n(203),i=n(56),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},,,function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1234)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="UpOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"}},,,,function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1239)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="PictureTwoTone";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1241)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="FileTwoTone";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1243)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="PaperClipOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1245)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DeleteOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1247)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DownloadOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1249)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="UploadOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"}},,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=P(n(0)),o=_(n(5)),i=_(n(89)),a=P(n(602)),c=n(1261),u=n(970),s=_(n(1280)),l=_(n(1293)),f=n(897),p=P(n(1298)),d=_(n(1299)),h=P(n(1300)),v=P(n(1328)),m=P(n(1333)),y=_(n(1339)),b=_(n(1340)),g=_(n(1341)),O=_(n(931)),w=_(n(656)),x=_(n(1344)),j=_(n(1345)),E=_(n(551)),S=_(n(980));function _(e){return e&&e.__esModule?e:{default:e}}function C(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return C=function(){return e},e}function P(e){if(e&&e.__esModule)return e;if(null===e||"object"!==k(e)&&"function"!=typeof e)return{default:e};var t=C();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(e,t)||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,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var R=[];function D(e){var t,n=e.prefixCls,x=e.className,j=e.style,_=e.size,C=e.bordered,P=e.dropdownPrefixCls,T=e.dataSource,D=e.pagination,I=e.rowSelection,L=e.rowKey,F=e.rowClassName,z=e.columns,B=e.children,H=e.childrenColumnName,K=e.onChange,V=e.getPopupContainer,U=e.loading,W=e.expandIcon,q=e.expandable,G=e.expandedRowRender,$=e.expandIconColumnIndex,Y=e.indentSize,X=e.scroll,Z=e.sortDirections,J=e.locale,Q=e.showSorterTooltip,ee=void 0===Q||Q;(0,E.default)(!("function"==typeof L&&L.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var te=(0,S.default)(),ne=r.useMemo((function(){var e=new Set(Object.keys(te).filter((function(e){return te[e]})));return(z||(0,u.convertChildrenToColumns)(B)).filter((function(t){return!t.responsive||t.responsive.some((function(t){return e.has(t)}))}))}),[B,z,te]),re=(0,i.default)(e,["className","style","columns"]),oe=r.useContext(w.default),ie=r.useContext(f.ConfigContext),ae=ie.locale,ce=void 0===ae?O.default:ae,ue=ie.renderEmpty,se=ie.direction,le=_||oe,fe=A(A({},ce.Table),J),pe=T||R,de=r.useContext(f.ConfigContext).getPrefixCls,he=de("table",n),ve=de("dropdown",P),me=A({childrenColumnName:H,expandIconColumnIndex:$},q),ye=me.childrenColumnName,be=void 0===ye?"children":ye,ge=r.useMemo((function(){return pe.some((function(e){return e[be]}))?"nest":G||q&&q.expandedRowRender?"row":null}),[pe]),Oe={body:r.useRef()},we=r.useMemo((function(){return"function"==typeof L?L:function(e){return e[L]}}),[L]),xe=N((0,d.default)(pe,be,we),1)[0],je={},Ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=A(A({},je),e);n&&(je.resetPagination(),r.pagination.current&&(r.pagination.current=1),D&&D.onChange&&D.onChange(1,r.pagination.pageSize)),X&&!1!==X.scrollToFirstRowOnChange&&Oe.body.current&&(0,g.default)(0,{getContainer:function(){return Oe.body.current}}),K&&K(r.pagination,r.filters,r.sorter,{currentDataSource:(0,m.getFilterData)((0,v.getSortData)(pe,r.sorterStates,be),r.filterStates),action:t})},Se=N((0,v.default)({prefixCls:he,mergedColumns:ne,onSorterChange:function(e,t){Ee({sorter:e,sorterStates:t},"sort",!1)},sortDirections:Z||["ascend","descend"],tableLocale:fe,showSorterTooltip:ee}),4),_e=Se[0],Ce=Se[1],Pe=Se[2],ke=Se[3],Me=r.useMemo((function(){return(0,v.getSortData)(pe,Ce,be)}),[pe,Ce]);je.sorter=ke(),je.sorterStates=Ce;var Ne=N((0,m.default)({prefixCls:he,locale:fe,dropdownPrefixCls:ve,mergedColumns:ne,onFilterChange:function(e,t){Ee({filters:e,filterStates:t},"filter",!0)},getPopupContainer:V}),3),Te=Ne[0],Ae=Ne[1],Re=Ne[2],De=(0,m.getFilterData)(Me,Ae);je.filters=Re(),je.filterStates=Ae;var Ie=r.useMemo((function(){return A({},Pe)}),[Pe]),Le=N((0,y.default)(Ie),1)[0],Fe=N((0,p.default)(De.length,D,(function(e,t){Ee({pagination:A(A({},je.pagination),{current:e,pageSize:t})},"paginate")})),2),ze=Fe[0],Be=Fe[1];je.pagination=!1===D?{}:(0,p.getPaginationParam)(D,ze),je.resetPagination=Be;var He=r.useMemo((function(){if(!1===D||!ze.pageSize)return De;var e=ze.current,t=void 0===e?1:e,n=ze.total,r=ze.pageSize,o=void 0===r?p.DEFAULT_PAGE_SIZE:r;return De.length<n?De.length>o?((0,E.default)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),De.slice((t-1)*o,t*o)):De:De.slice((t-1)*o,t*o)}),[!!D,De,ze&&ze.current,ze&&ze.pageSize,ze&&ze.total]),Ke=N((0,h.default)(I,{prefixCls:he,data:De,pageData:He,getRowKey:we,getRecordByKey:xe,expandType:ge,childrenColumnName:be,locale:fe,expandIconColumnIndex:me.expandIconColumnIndex,getPopupContainer:V}),2),Ve=Ke[0],Ue=Ke[1];me.__PARENT_RENDER_ICON__=me.expandIcon,me.expandIcon=me.expandIcon||W||(0,b.default)(fe),"nest"===ge&&void 0===me.expandIconColumnIndex?me.expandIconColumnIndex=I?1:0:me.expandIconColumnIndex>0&&I&&(me.expandIconColumnIndex-=1),me.indentSize=me.indentSize||Y||15;var We,qe,Ge,$e=r.useCallback((function(e){return Le(Ve(Te(_e(e))))}),[_e,Te,Ve]);if(!1!==D){var Ye;Ye=ze.size?ze.size:"small"===le||"middle"===le?"small":void 0;var Xe=function(e){return r.createElement(l.default,A({className:"".concat(he,"-pagination ").concat(he,"-pagination-").concat(e)},ze,{size:Ye}))},Ze="rtl"===se?"left":"right";if(null!==ze.position&&Array.isArray(ze.position)){var Je=ze.position.find((function(e){return-1!==e.indexOf("top")})),Qe=ze.position.find((function(e){return-1!==e.indexOf("bottom")}));Je||Qe?(Je&&(We=Xe(Je.toLowerCase().replace("top",""))),Qe&&(qe=Xe(Qe.toLowerCase().replace("bottom","")))):qe=Xe(Ze)}else qe=Xe(Ze)}"boolean"==typeof U?Ge={spinning:U}:"object"===k(U)&&(Ge=A({spinning:!0},U));var et=(0,o.default)("".concat(he,"-wrapper"),x,M({},"".concat(he,"-wrapper-rtl"),"rtl"===se));return r.createElement("div",{className:et,style:j},r.createElement(s.default,A({spinning:!1},Ge),We,r.createElement(a.default,A({},re,{columns:ne,direction:se,expandable:me,prefixCls:he,className:(0,o.default)((t={},M(t,"".concat(he,"-middle"),"middle"===le),M(t,"".concat(he,"-small"),"small"===le),M(t,"".concat(he,"-bordered"),C),M(t,"".concat(he,"-empty"),0===pe.length),t)),data:He,rowKey:we,rowClassName:function(e,t,n){var r;return r="function"==typeof F?(0,o.default)(F(e,t,n)):(0,o.default)(F),(0,o.default)(M({},"".concat(he,"-row-selected"),Ue.has(we(e,t))),r)},emptyText:J&&J.emptyText||ue("Table"),internalHooks:c.INTERNAL_HOOKS,internalRefs:Oe,transformColumns:$e})),He&&He.length>0&&qe))}D.defaultProps={rowKey:"key"},D.SELECTION_ALL=h.SELECTION_ALL,D.SELECTION_INVERT=h.SELECTION_INVERT,D.Column=x.default,D.ColumnGroup=j.default,D.Summary=a.Summary;var I=D;t.default=I},function(e,t,n){"use strict";var r=n(40),o=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.INTERNAL_HOOKS=void 0;var i=o(n(235)),a=o(n(620)),c=o(n(590)),u=o(n(614)),s=r(n(0)),l=o(n(5)),f=o(n(239)),p=o(n(549)),d=o(n(253)),h=o(n(1265)),v=o(n(1266)),m=o(n(1267)),y=o(n(1268)),b=o(n(965)),g=o(n(503)),O=o(n(894)),w=o(n(1271)),x=o(n(970)),j=n(1273),E=n(655),S=o(n(969)),_=o(n(1274)),C=o(n(967)),P=n(893),k=o(n(1275)),M=r(n(1276)),N=n(1279),T=n(966);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D=[],I={};t.INTERNAL_HOOKS="rc-table-internal-hook";var L=s.memo((function(e){return e.children}),(function(e,t){return!!(0,f.default)(e.props,t.props)&&(e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight)}));function F(e){var t,n=e.prefixCls,r=e.className,o=e.rowClassName,f=e.style,v=e.data,m=e.rowKey,A=e.scroll,F=e.tableLayout,z=e.direction,B=e.title,H=e.footer,K=e.summary,V=e.id,U=e.showHeader,W=e.components,q=e.emptyText,G=e.onRow,$=e.onHeaderRow,Y=e.internalHooks,X=e.transformColumns,Z=e.internalRefs,J=v||D,Q=!!J.length,ee=s.useState(0),te=(0,u.default)(ee,2),ne=te[0],re=te[1];s.useEffect((function(){re((0,h.default)())}));var oe,ie,ae,ce=s.useMemo((function(){return(0,E.mergeObject)(W,{})}),[W]),ue=s.useCallback((function(e,t){return(0,E.getPathValue)(ce,e)||t}),[ce]),se=s.useMemo((function(){return"function"==typeof m?m:function(e){return e&&e[m]}}),[m]),le=(0,P.getExpandableProps)(e),fe=le.expandIcon,pe=le.expandedRowKeys,de=le.defaultExpandedRowKeys,he=le.defaultExpandAllRows,ve=le.expandedRowRender,me=le.onExpand,ye=le.onExpandedRowsChange,be=le.expandRowByClick,ge=le.rowExpandable,Oe=le.expandIconColumnIndex,we=le.expandedRowClassName,xe=le.childrenColumnName,je=le.indentSize,Ee=fe||N.renderExpandIcon,Se=xe||"children",_e=s.useMemo((function(){return ve?"row":!!(e.expandable&&"rc-table-internal-hook"===Y&&e.expandable.__PARENT_RENDER_ICON__||J.some((function(e){return e&&"object"===(0,c.default)(e)&&Se in e})))&&"nest"}),[!!ve,J]),Ce=s.useState((function(){return de||(he?(0,N.findAllChildrenKeys)(J,se,Se):[])})),Pe=(0,u.default)(Ce,2),ke=Pe[0],Me=Pe[1],Ne=s.useMemo((function(){return new Set(pe||ke||[])}),[pe,ke]),Te=s.useCallback((function(e){var t,n=se(e,J.indexOf(e)),r=Ne.has(n);r?(Ne.delete(n),t=(0,a.default)(Ne)):t=[].concat((0,a.default)(Ne),[n]),Me(t),me&&me(!r,e),ye&&ye(t)}),[se,Ne,J,me,ye]),Ae=s.useState(0),Re=(0,u.default)(Ae,2),De=Re[0],Ie=Re[1],Le=(0,x.default)(R(R(R({},e),le),{},{expandable:!!ve,expandedKeys:Ne,getRowKey:se,onTriggerExpand:Te,expandIcon:Ee,expandIconColumnIndex:Oe,direction:z}),"rc-table-internal-hook"===Y?X:null),Fe=(0,u.default)(Le,2),ze=Fe[0],Be=Fe[1],He=s.useMemo((function(){return{columns:ze,flattenColumns:Be}}),[ze,Be]),Ke=s.useRef(),Ve=s.useRef(),Ue=s.useRef(),We=s.useState(!1),qe=(0,u.default)(We,2),Ge=qe[0],$e=qe[1],Ye=s.useState(!1),Xe=(0,u.default)(Ye,2),Ze=Xe[0],Je=Xe[1],Qe=(0,j.useFrameState)(new Map),et=(0,u.default)(Qe,2),tt=et[0],nt=et[1],rt=(0,E.getColumnsKey)(Be).map((function(e){return tt.get(e)})),ot=s.useMemo((function(){return rt}),[rt.join("_")]),it=(0,_.default)(ot,Be.length,z),at=Q&&A&&(0,E.validateValue)(A.y),ct=A&&(0,E.validateValue)(A.x),ut=ct&&Be.some((function(e){return e.fixed}));at&&(ie={overflowY:"scroll",maxHeight:A.y}),ct&&(oe={overflowX:"auto"},at||(ie={overflowY:"hidden"}),ae={width:!0===A.x?"auto":A.x,minWidth:"100%"});var st=s.useCallback((function(e,t){nt((function(n){var r=new Map(n);return r.set(e,t),r}))}),[]),lt=(0,j.useTimeoutLock)(null),ft=(0,u.default)(lt,2),pt=ft[0],dt=ft[1];function ht(e,t){t&&t.scrollLeft!==e&&(t.scrollLeft=e)}var vt=function(e){var t=e.currentTarget,n=e.scrollLeft,r="number"==typeof n?n:t.scrollLeft,o=t||I;if(dt()&&dt()!==o||(pt(o),ht(r,Ve.current),ht(r,Ue.current)),t){var i=t.scrollWidth,a=t.clientWidth;$e(r>0),Je(r<i-a)}},mt=function(){Ue.current&&vt({currentTarget:Ue.current})};s.useEffect((function(){return mt}),[]),s.useEffect((function(){ct&&mt()}),[ct]),s.useEffect((function(){"rc-table-internal-hook"===Y&&Z&&(Z.body.current=Ue.current)}));var yt,bt,gt=ue(["table"],"table"),Ot=s.useMemo((function(){return F||(ut?"max-content"===A.x?"auto":"fixed":at||Be.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[at,ut,Be,F]),wt={colWidths:ot,columCount:Be.length,stickyOffsets:it,onHeaderRow:$},xt=s.useMemo((function(){return Q?null:"function"==typeof q?q():q}),[Q,q]),jt=s.createElement(w.default,{data:J,measureColumnWidth:at||ct,expandedKeys:Ne,rowExpandable:ge,getRowKey:se,onRow:G,emptyNode:xt,childrenColumnName:Se}),Et=s.createElement(C.default,{colWidths:Be.map((function(e){return e.width})),columns:Be}),St=K&&s.createElement(M.default,null,K(J)),_t=ue(["body"]);at?("function"==typeof _t?(bt=_t(J,{scrollbarSize:ne,ref:Ue,onScroll:vt}),wt.colWidths=Be.map((function(e,t){var n=e.width,r=t===ze.length-1?n-ne:n;return"number"!=typeof r||Number.isNaN(r)?((0,p.default)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0):r}))):bt=s.createElement("div",{style:R(R({},oe),ie),onScroll:vt,ref:Ue,className:(0,l.default)("".concat(n,"-body"))},s.createElement(gt,{style:R(R({},ae),{},{tableLayout:Ot})},Et,jt,St)),yt=s.createElement(s.Fragment,null,!1!==U&&s.createElement("div",{style:{overflow:"hidden"},onScroll:vt,ref:Ve,className:(0,l.default)("".concat(n,"-header"))},s.createElement(y.default,Object.assign({},wt,He,{direction:z}))),bt)):yt=s.createElement("div",{style:R(R({},oe),ie),className:(0,l.default)("".concat(n,"-content")),onScroll:vt,ref:Ue},s.createElement(gt,{style:R(R({},ae),{},{tableLayout:Ot})},Et,!1!==U&&s.createElement(b.default,Object.assign({},wt,He)),jt,St));var Ct=(0,P.getDataAndAriaProps)(e),Pt=s.createElement("div",Object.assign({className:(0,l.default)(n,r,(t={},(0,i.default)(t,"".concat(n,"-rtl"),"rtl"===z),(0,i.default)(t,"".concat(n,"-ping-left"),Ge),(0,i.default)(t,"".concat(n,"-ping-right"),Ze),(0,i.default)(t,"".concat(n,"-layout-fixed"),"fixed"===F),(0,i.default)(t,"".concat(n,"-fixed-header"),at),(0,i.default)(t,"".concat(n,"-fixed-column"),ut),(0,i.default)(t,"".concat(n,"-scroll-horizontal"),ct),(0,i.default)(t,"".concat(n,"-has-fix-left"),Be[0]&&Be[0].fixed),(0,i.default)(t,"".concat(n,"-has-fix-right"),Be[Be.length-1]&&"right"===Be[Be.length-1].fixed),t)),style:f,id:V,ref:Ke},Ct),s.createElement(L,{pingLeft:Ge,pingRight:Ze,props:R(R({},e),{},{stickyOffsets:it,mergedExpandedKeys:Ne})},B&&s.createElement(k.default,{className:"".concat(n,"-title")},B(J)),s.createElement("div",{className:"".concat(n,"-container")},yt),H&&s.createElement(k.default,{className:"".concat(n,"-footer")},H(J))));ct&&(Pt=s.createElement(d.default,{onResize:function(e){var t=e.width;mt(),Ie(Ke.current?Ke.current.offsetWidth:t)}},Pt));var kt=s.useMemo((function(){return{prefixCls:n,getComponent:ue,scrollbarSize:ne,direction:z,fixedInfoList:Be.map((function(e,t){return(0,T.getCellFixedInfo)(t,t,Be,it,z)}))}}),[n,ue,ne,z,Be,it,z]),Mt=s.useMemo((function(){return R(R({},He),{},{tableLayout:Ot,rowClassName:o,expandedRowClassName:we,componentWidth:De,fixHeader:at,fixColumn:ut,horizonScroll:ct,expandIcon:Ee,expandableType:_e,expandRowByClick:be,expandedRowRender:ve,onTriggerExpand:Te,expandIconColumnIndex:Oe,indentSize:je})}),[He,Ot,o,we,De,at,ut,ct,Ee,_e,be,ve,Te,Oe,je]),Nt=s.useMemo((function(){return{onColumnResize:st}}),[st]);return s.createElement(g.default.Provider,{value:kt},s.createElement(O.default.Provider,{value:Mt},s.createElement(S.default.Provider,{value:Nt},Pt)))}F.Column=m.default,F.ColumnGroup=v.default,F.Summary=M.FooterComponents,F.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var z=F;t.default=z},function(e,t,n){var r=n(936);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.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(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("undefined"==typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top=0,o.left=0,o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),r=i-a}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return null};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return null};t.default=r},function(e,t,n){"use strict";var r=n(40),o=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(235)),a=o(n(620)),c=o(n(401)),u=r(n(0)),s=o(n(965)),l=o(n(967)),f=o(n(503));function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e){for(var t=e.columns,n=e.flattenColumns,r=e.colWidths,o=e.columCount,i=e.stickyOffsets,p=e.direction,h=(0,c.default)(e,["columns","flattenColumns","colWidths","columCount","stickyOffsets","direction"]),v=u.useContext(f.default),m=v.prefixCls,y=v.scrollbarSize,b=n[n.length-1],g={fixed:b?b.fixed:null,onHeaderCell:function(){return{className:"".concat(m,"-cell-scrollbar")}}},O=u.useMemo((function(){return y?[].concat((0,a.default)(t),[g]):t}),[y,t]),w=u.useMemo((function(){return y?[].concat((0,a.default)(n),[g]):n}),[y,n]),x=u.useMemo((function(){var e=i.right,t=i.left;return d(d({},i),{},{left:"rtl"===p?[].concat((0,a.default)(t.map((function(e){return e+y}))),[0]):t,right:"rtl"===p?e:[].concat((0,a.default)(e.map((function(e){return e+y}))),[0])})}),[y,i]),j=[],E=0;E<o;E+=1)j[E]=r[E];var S=!r.every((function(e){return!e}));return u.createElement("table",{style:{tableLayout:"fixed",visibility:S?null:"hidden"}},u.createElement(l.default,{colWidths:[].concat((0,a.default)(r),[y]),columCount:o+1,columns:w}),u.createElement(s.default,Object.assign({},h,{stickyOffsets:x,columns:O,flattenColumns:w})))};t.default=h},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(749)),c=r(n(503)),u=n(966),s=n(655);function l(e){var t,n=e.cells,r=e.stickyOffsets,o=e.flattenColumns,l=e.rowComponent,f=e.cellComponent,p=e.onHeaderRow,d=e.index,h=i.useContext(c.default),v=h.prefixCls,m=h.direction;p&&(t=p(n.map((function(e){return e.column})),d));var y=(0,s.getColumnsKey)(n.map((function(e){return e.column})));return i.createElement(l,Object.assign({},t),n.map((function(e,t){var n,c=e.column,s=(0,u.getCellFixedInfo)(e.colStart,e.colEnd,o,r,m);return c&&c.onHeaderCell&&(n=e.column.onHeaderCell(c)),i.createElement(a.default,Object.assign({},e,{ellipsis:c.ellipsis,align:c.align,component:f,prefixCls:v,key:y[t]},s,{additionalProps:n,rowType:"header"}))})))}l.displayName="HeaderRow";var f=l;t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fillRef=i,t.composeRef=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){i(t,e)}))}},t.supportRef=function(e){var t=(0,r.isMemo)(e)?e.type.type:e.type;if(t&&t.prototype&&!t.prototype.render)return!1;if("function"==typeof e&&e.prototype&&!e.prototype.render)return!1;return!0};var r=n(158);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){"function"==typeof e?e(t):"object"===o(e)&&e&&"current"in e&&(e.current=t)}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(253)),c=r(n(1272)),u=r(n(503)),s=r(n(968)),l=r(n(894)),f=n(655),p=r(n(969));var d=i.memo((function(e){var t=e.data,n=e.getRowKey,r=e.measureColumnWidth,o=e.expandedKeys,d=e.onRow,h=e.rowExpandable,v=e.emptyNode,m=e.childrenColumnName,y=i.useContext(p.default).onColumnResize,b=i.useContext(u.default),g=b.prefixCls,O=b.getComponent,w=i.useContext(l.default),x=w.fixHeader,j=w.horizonScroll,E=w.flattenColumns,S=w.componentWidth;return i.useMemo((function(){var e,u=O(["body","wrapper"],"tbody"),l=O(["body","row"],"tr"),p=O(["body","cell"],"td");e=t.length?t.map((function(e,t){var r=n(e,t);return i.createElement(c.default,{key:r,rowKey:r,record:e,recordKey:r,index:t,rowComponent:l,cellComponent:p,expandedKeys:o,onRow:d,getRowKey:n,rowExpandable:h,childrenColumnName:m})})):i.createElement(s.default,{expanded:!0,className:"".concat(g,"-placeholder"),prefixCls:g,fixHeader:x,fixColumn:j,horizonScroll:j,component:l,componentWidth:S,cellComponent:p,colSpan:E.length},v);var b=(0,f.getColumnsKey)(E);return i.createElement(u,{className:"".concat(g,"-tbody")},r&&i.createElement("tr",{"aria-hidden":"true",className:"".concat(g,"-measure-row"),style:{height:0}},b.map((function(e){return i.createElement(a.default,{key:e,onResize:function(t){var n=t.offsetWidth;y(e,n)}},i.createElement("td",{style:{padding:0,border:0,height:0}}))}))),e)}),[t,g,d,r,o,n,O,S,v,E])}));d.displayName="Body";var h=d;t.default=h},function(e,t,n){"use strict";var r=n(40),o=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(235)),a=o(n(614)),c=r(n(0)),u=o(n(5)),s=o(n(749)),l=o(n(503)),f=o(n(894)),p=n(655),d=o(n(968));function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e){var t=e.className,n=e.style,r=e.record,o=e.index,i=e.rowKey,h=e.getRowKey,y=e.rowExpandable,b=e.expandedKeys,g=e.onRow,O=e.indent,w=void 0===O?0:O,x=e.rowComponent,j=e.cellComponent,E=e.childrenColumnName,S=c.useContext(l.default),_=S.prefixCls,C=S.fixedInfoList,P=c.useContext(f.default),k=P.fixHeader,M=P.fixColumn,N=P.horizonScroll,T=P.componentWidth,A=P.flattenColumns,R=P.expandableType,D=P.expandRowByClick,I=P.onTriggerExpand,L=P.rowClassName,F=P.expandedRowClassName,z=P.indentSize,B=P.expandIcon,H=P.expandedRowRender,K=P.expandIconColumnIndex,V=c.useState(!1),U=(0,a.default)(V,2),W=U[0],q=U[1],G=b&&b.has(e.recordKey);c.useEffect((function(){G&&q(!0)}),[G]);var $,Y="row"===R&&(!y||y(r)),X="nest"===R,Z=E&&r&&r[E],J=Y||X;g&&($=g(r,o));var Q;"string"==typeof L?Q=L:"function"==typeof L&&(Q=L(r,o,w));var ee,te,ne=(0,p.getColumnsKey)(A),re=c.createElement(x,Object.assign({},$,{"data-row-key":i,className:(0,u.default)(t,"".concat(_,"-row"),"".concat(_,"-row-level-").concat(w),Q,$&&$.className),style:v(v({},n),$?$.style:null),onClick:function(e){if(D&&J&&I(r,e),$&&$.onClick){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(t=$).onClick.apply(t,[e].concat(o))}}}),A.map((function(e,t){var n,i,a=e.render,u=e.dataIndex,l=e.className,f=ne[t],p=C[t];return t===(K||0)&&X&&(n=c.createElement(c.Fragment,null,c.createElement("span",{style:{paddingLeft:"".concat(z*w,"px")},className:"".concat(_,"-row-indent indent-level-").concat(w)}),B({prefixCls:_,expanded:G,expandable:Z,record:r,onExpand:I}))),e.onCell&&(i=e.onCell(r,o)),c.createElement(s.default,Object.assign({className:l,ellipsis:e.ellipsis,align:e.align,component:j,prefixCls:_,key:f,record:r,index:o,dataIndex:u,render:a,shouldCellUpdate:e.shouldCellUpdate},p,{appendNode:n,additionalProps:i}))})));if(Y&&(W||G)){var oe=H(r,o,w+1,G),ie=F&&F(r,o,w);ee=c.createElement(d.default,{expanded:G,className:(0,u.default)("".concat(_,"-expanded-row"),"".concat(_,"-expanded-row-level-").concat(w+1),ie),prefixCls:_,fixHeader:k,fixColumn:M,horizonScroll:N,component:x,componentWidth:T,cellComponent:j,colSpan:A.length},oe)}return Z&&G&&(te=(r[E]||[]).map((function(t,n){var r=h(t,n);return c.createElement(m,Object.assign({},e,{key:r,rowKey:r,record:t,recordKey:r,index:n,indent:w+1}))}))),c.createElement(c.Fragment,null,re,ee,te)}m.displayName="BodyRow";var y=m;t.default=y},function(e,t,n){"use strict";var r=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.useFrameState=function(e){var t=(0,i.useRef)(e),n=(0,i.useState)({}),r=(0,o.default)(n,2)[1],c=(0,i.useRef)(null),u=(0,i.useRef)([]);return(0,i.useEffect)((function(){return function(){a.default.cancel(c.current)}}),[]),[t.current,function(e){null===c.current&&(u.current=[],c.current=(0,a.default)((function(){u.current.forEach((function(e){t.current=e(t.current)})),c.current=null,r({})})));u.current.push(e)}]},t.useTimeoutLock=function(e){var t=(0,i.useRef)(e),n=(0,i.useRef)(null);function r(){window.clearTimeout(n.current)}return(0,i.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=null}),100)},function(){return t.current}]};var o=r(n(614)),i=n(0),a=r(n(109))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0);var o=function(e,t,n){return(0,r.useMemo)((function(){for(var r=[],o=[],i=0,a=0,c=0;c<t;c+=1)if("rtl"===n){o[c]=a,a+=e[c]||0;var u=t-c-1;r[u]=i,i+=e[u]||0}else{r[c]=i,i+=e[c]||0;var s=t-c-1;o[s]=a,a+=e[s]||0}return{left:r,right:o}}),[e,t,n])};t.default=o},function(e,t,n){"use strict";var r=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0));var i=function(e){var t=e.className,n=e.children;return o.createElement("div",{className:t},n)};t.default=i},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.FooterComponents=t.default=void 0;var i=o(n(0)),a=r(n(503)),c=r(n(1277)),u=r(n(1278));var s=function(e){var t=e.children,n=i.useContext(a.default).prefixCls;return i.createElement("tfoot",{className:"".concat(n,"-summary")},t)};t.default=s;var l={Cell:c.default,Row:u.default};t.FooterComponents=l},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,u=e.rowSpan,s=i.useContext(c.default),l=s.prefixCls,f=s.fixedInfoList[n];return i.createElement(a.default,Object.assign({className:t,index:n,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:r,props:{colSpan:o,rowSpan:u}}}},f))};var i=o(n(0)),a=r(n(749)),c=r(n(503))},function(e,t,n){"use strict";var r=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return o.createElement("tr",Object.assign({},e))};var o=r(n(0))},function(e,t,n){"use strict";var r=n(40),o=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.renderExpandIcon=function(e){var t,n=e.prefixCls,r=e.record,o=e.onExpand,u=e.expanded,s=e.expandable,l="".concat(n,"-row-expand-icon");if(!s)return a.createElement("span",{className:(0,c.default)(l,"".concat(n,"-row-spaced"))});return a.createElement("span",{className:(0,c.default)(l,(t={},(0,i.default)(t,"".concat(n,"-row-expanded"),u),(0,i.default)(t,"".concat(n,"-row-collapsed"),!u),t)),onClick:function(e){o(r,e),e.stopPropagation()}})},t.findAllChildrenKeys=function(e,t,n){var r=[];return function e(o){(o||[]).forEach((function(o,i){r.push(t(o,i)),e(o[n])}))}(e),r};var i=o(n(235)),a=r(n(0)),c=o(n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=l(n(5)),i=l(n(89)),a=l(n(911)),c=n(164),u=n(750),s=n(621);function l(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=((0,u.tuple)("small","default","large"),null);var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(f,e);var t,n,u,l=y(f);function f(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this,e)).debouncifyUpdateSpinning=function(e){var n=(e||t.props).delay;n&&(t.cancelExistingSpin(),t.updateSpinning=(0,a.default)(t.originalUpdateSpinning,n))},t.updateSpinning=function(){var e=t.props.spinning;t.state.spinning!==e&&t.setState({spinning:e})},t.renderSpin=function(e){var n,a=e.getPrefixCls,c=e.direction,u=t.props,l=u.prefixCls,f=u.className,p=u.size,v=u.tip,m=u.wrapperClassName,y=u.style,b=O(u,["prefixCls","className","size","tip","wrapperClassName","style"]),g=t.state.spinning,x=a("spin",l),j=(0,o.default)(x,(h(n={},"".concat(x,"-sm"),"small"===p),h(n,"".concat(x,"-lg"),"large"===p),h(n,"".concat(x,"-spinning"),g),h(n,"".concat(x,"-show-text"),!!v),h(n,"".concat(x,"-rtl"),"rtl"===c),n),f),E=(0,i.default)(b,["spinning","delay","indicator"]),S=r.createElement("div",d({},E,{style:y,className:j}),function(e,t){var n=t.indicator,i="".concat(e,"-dot");return null===n?null:(0,s.isValidElement)(n)?(0,s.cloneElement)(n,{className:(0,o.default)(n.props.className,i)}):(0,s.isValidElement)(w)?(0,s.cloneElement)(w,{className:(0,o.default)(w.props.className,i)}):r.createElement("span",{className:(0,o.default)(i,"".concat(e,"-dot-spin"))},r.createElement("i",{className:"".concat(e,"-dot-item")}),r.createElement("i",{className:"".concat(e,"-dot-item")}),r.createElement("i",{className:"".concat(e,"-dot-item")}),r.createElement("i",{className:"".concat(e,"-dot-item")}))}(x,t.props),v?r.createElement("div",{className:"".concat(x,"-text")},v):null);if(t.isNestedPattern()){var _=(0,o.default)("".concat(x,"-container"),h({},"".concat(x,"-blur"),g));return r.createElement("div",d({},E,{className:(0,o.default)("".concat(x,"-nested-loading"),m)}),g&&r.createElement("div",{key:"loading"},S),r.createElement("div",{className:_,key:"container"},t.props.children))}return S};var n=e.spinning,c=function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,e.delay);return t.state={spinning:n&&!c},t.originalUpdateSpinning=t.updateSpinning,t.debouncifyUpdateSpinning(e),t}return t=f,u=[{key:"setDefaultIndicator",value:function(e){w=e}}],(n=[{key:"componentDidMount",value:function(){this.updateSpinning()}},{key:"componentDidUpdate",value:function(){this.debouncifyUpdateSpinning(),this.updateSpinning()}},{key:"componentWillUnmount",value:function(){this.cancelExistingSpin()}},{key:"cancelExistingSpin",value:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()}},{key:"isNestedPattern",value:function(){return!(!this.props||!this.props.children)}},{key:"render",value:function(){return r.createElement(c.ConfigConsumer,null,this.renderSpin)}}])&&v(t.prototype,n),u&&v(t,u),f}(r.Component);x.defaultProps={spinning:!0,size:"default",wrapperClassName:""};var j=x;t.default=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ANT_MARK=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=c(n(551)),i=n(1282),a=c(n(971));function c(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.ANT_MARK="internalMark";var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(s,e);var t,n,c,u=d(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),t=u.call(this,e),(0,i.changeConfirmLocale)(e.locale&&e.locale.Modal),(0,o.default)("internalMark"===e._ANT_MARK__,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),t}return t=s,(n=[{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&(0,i.changeConfirmLocale)(t&&t.Modal)}},{key:"componentWillUnmount",value:function(){(0,i.changeConfirmLocale)()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.children;return r.createElement(a.default.Provider,{value:l(l({},t),{exist:!0})},n)}}])&&f(t.prototype,n),c&&f(t,c),s}(r.Component);t.default=m,m.defaultProps={locale:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.changeConfirmLocale=function(e){a=e?i(i({},a),e):i({},o.default.Modal)},t.getConfirmLocale=function(){return a};var r,o=(r=n(800))&&r.__esModule?r:{default:r};function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=i({},o.default.Modal)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(800))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=(o=n(972))&&o.__esModule?o:{default:o},c=n(164);function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var s=function(e){return i.createElement(c.ConfigConsumer,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return i.createElement(a.default,{image:a.default.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return i.createElement(a.default,{image:a.default.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return i.createElement(a.default,null)}}))};t.default=s},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var c=o?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=n(164);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}var c=function(){var e=(0,o.useContext(i.ConfigContext).getPrefixCls)("empty-img-default");return o.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),o.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),o.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),o.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),o.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),o.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};t.default=c},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var c=o?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=n(164);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}var c=function(){var e=(0,o.useContext(i.ConfigContext).getPrefixCls)("empty-img-simple");return o.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))};t.default=c},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=p(n(5)),a=p(n(623)),c=p(n(180)),u=p(n(659)),s=p(n(294)),l=p(n(598)),f=p(n(907));function p(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m,y,b,g,O=3,w=1,x="ant-message",j="move-up",E=!1;var S={info:f.default,success:l.default,error:s.default,warning:u.default,loading:c.default};var _={open:function(e){var t,n=void 0!==e.duration?e.duration:O,r=S[e.type],c=(0,i.default)("".concat(x,"-custom-content"),(v(t={},"".concat(x,"-").concat(e.type),e.type),v(t,"".concat(x,"-rtl"),!0===E),t)),u=e.key||w++,s=new Promise((function(t){var i=function(){return"function"==typeof e.onClose&&e.onClose(),t(!0)};!function(e){y?e(y):a.default.newInstance({prefixCls:x,transitionName:j,style:{top:m},getContainer:b,maxCount:g},(function(t){y?e(y):(y=t,e(t))}))}((function(t){t.notice({key:u,duration:n,style:e.style||{},className:e.className,content:o.createElement("div",{className:c},e.icon||r&&o.createElement(r,null),o.createElement("span",null,e.content)),onClose:i})}))})),l=function(){y&&y.removeNotice(u)};return l.then=function(e,t){return s.then(e,t)},l.promise=s,l},config:function(e){void 0!==e.top&&(m=e.top,y=null),void 0!==e.duration&&(O=e.duration),void 0!==e.prefixCls&&(x=e.prefixCls),void 0!==e.getContainer&&(b=e.getContainer),void 0!==e.transitionName&&(j=e.transitionName,y=null),void 0!==e.maxCount&&(g=e.maxCount,y=null),void 0!==e.rtl&&(E=e.rtl)},destroy:function(){y&&(y.destroy(),y=null)}};["success","info","warning","error","loading"].forEach((function(e){_[e]=function(t,n,r){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(t)?_.open(h(h({},t),{type:e})):("function"==typeof n&&(r=n,n=void 0),_.open({content:t,duration:n,type:e,onClose:r}))}})),_.warn=_.warning;var C=_;t.default=C},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=d(n(623)),a=d(n(224)),c=d(n(5)),u=d(n(660)),s=d(n(662)),l=d(n(145)),f=d(n(661)),p=d(n(1289));function d(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var m,y,b={},g=4.5,O=24,w=24,x="ant-notification",j="topRight",E=!1;function S(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;switch(e){case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function _(e,t){var n=e.placement,r=void 0===n?j:n,u=e.top,s=e.bottom,l=e.getContainer,f=void 0===l?m:l,p=e.closeIcon,d=void 0===p?y:p,h=e.prefixCls||x,v="".concat(h,"-notice"),g="".concat(h,"-").concat(r),O=b[g];if(O)Promise.resolve(O).then((function(e){t({prefixCls:v,instance:e})}));else{var w,_,C,P=o.createElement("span",{className:"".concat(h,"-close-x")},d||o.createElement(a.default,{className:"".concat(h,"-close-icon")})),k=(0,c.default)("".concat(h,"-").concat(r),(w={},_="".concat(h,"-rtl"),C=!0===E,_ in w?Object.defineProperty(w,_,{value:C,enumerable:!0,configurable:!0,writable:!0}):w[_]=C,w));b[g]=new Promise((function(e){i.default.newInstance({prefixCls:h,className:k,style:S(r,u,s),getContainer:f,closeIcon:P},(function(n){e(n),t({prefixCls:v,instance:n})}))}))}}var C={success:u.default,info:f.default,error:s.default,warning:l.default};function P(e,t){var n=void 0===e.duration?g:e.duration,r=null;e.icon?r=o.createElement("span",{className:"".concat(t,"-icon")},e.icon):e.type&&(r=o.createElement(C[e.type]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(e.type)}));var i=!e.description&&r?o.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:o.createElement("div",{className:r?"".concat(t,"-with-icon"):""},r,o.createElement("div",{className:"".concat(t,"-message")},i,e.message),o.createElement("div",{className:"".concat(t,"-description")},e.description),e.btn?o.createElement("span",{className:"".concat(t,"-btn")},e.btn):null),duration:n,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},className:e.className}}var k={open:function(e){_(e,(function(t){var n=t.prefixCls;t.instance.notice(P(e,n))}))},close:function(e){Object.keys(b).forEach((function(t){return Promise.resolve(b[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,o=e.top,i=e.getContainer,a=e.closeIcon,c=e.prefixCls;void 0!==c&&(x=c),void 0!==t&&(g=t),void 0!==n?j=n:e.rtl&&(j="topLeft"),void 0!==r&&(w=r),void 0!==o&&(O=o),void 0!==i&&(m=i),void 0!==a&&(y=a),void 0!==e.rtl&&(E=e.rtl)},destroy:function(){Object.keys(b).forEach((function(e){Promise.resolve(b[e]).then((function(e){e.destroy()})),delete b[e]}))}};["success","info","warning","error"].forEach((function(e){k[e]=function(t){return k.open(v(v({},t),{type:e}))}})),k.warn=k.warning,k.useNotification=(0,p.default)(_,P);var M=k;t.default=M},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(){var n,r,o,u=null,f={add:function(e,t){null==u||u.component.add(e,t)}},p=(0,a.default)(f),d=(o=2,function(e){if(Array.isArray(e))return e}(r=p)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(r,o)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(r,o)||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.")}()),h=d[0],v=d[1];var m=i.useRef({});return m.current.open=function(r){var o=r.prefixCls,i=n("notification",o);e(s(s({},r),{prefixCls:i}),(function(e){var n=e.prefixCls,o=e.instance;u=o,h(t(r,n))}))},["success","info","warning","error"].forEach((function(e){m.current[e]=function(t){return m.current.open(s(s({},t),{type:e}))}})),[m.current,i.createElement(c.ConfigConsumer,{key:"holder"},(function(e){return n=e.getPrefixCls,v}))]}};var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=(o=n(1290))&&o.__esModule?o:{default:o},c=n(164);function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";var r=n(40),o=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=c.useRef({}),n=c.useState([]),r=(0,a.default)(n,2),o=r[0],s=r[1];return[function(n){e.add(n,(function(e,n){var r=n.key;if(e&&!t.current[r]){var o=c.createElement(u.default,Object.assign({},n,{holder:e}));t.current[r]=o,s((function(e){return[].concat((0,i.default)(e),[o])}))}}))},c.createElement(c.Fragment,null,o)]};var i=o(n(620)),a=o(n(614)),c=r(n(0)),u=o(n(1291))},function(e,t,n){"use strict";var r=n(40),o=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(235)),a=o(n(973)),c=o(n(974)),u=o(n(975)),s=o(n(976)),l=o(n(978)),f=r(n(0)),p=o(n(21)),d=o(n(5));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=h(n);function n(){var e;return(0,a.default)(this,n),(e=t.apply(this,arguments)).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props.onClose;n&&n()},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return(0,c.default)(n,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.update)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.className,o=t.closable,a=t.closeIcon,c=t.style,u=t.onClick,s=t.children,l=t.holder,h="".concat(n,"-notice"),v=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),m=f.default.createElement("div",Object.assign({className:(0,d.default)(h,r,(0,i.default)({},"".concat(h,"-closable"),o)),style:c,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:u},v),f.default.createElement("div",{className:"".concat(h,"-content")},s),o?f.default.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(h,"-close")},a||f.default.createElement("span",{className:"".concat(h,"-close-x")})):null);return l?p.default.createPortal(m,l):m}}]),n}(f.Component);t.default=v,v.defaultProps={onClose:function(){},duration:1.5,style:{right:"50%"}}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1294))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=b();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=y(n(917)),a=y(n(932)),c=y(n(5)),u=y(n(599)),s=y(n(403)),l=y(n(909)),f=y(n(910)),p=y(n(1295)),d=y(n(979)),h=y(n(896)),v=n(164),m=y(n(980));function y(e){return e&&e.__esModule?e:{default:e}}function b(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return b=function(){return e},e}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=function(e){var t=e.prefixCls,n=e.selectPrefixCls,r=e.className,y=e.size,b=e.locale,w=O(e,["prefixCls","selectPrefixCls","className","size","locale"]),x=(0,m.default)().xs,j=o.useContext(v.ConfigContext),E=j.getPrefixCls,S=j.direction,_=E("pagination",t),C=function(e){var t,a,h,v=g(g({},e),b),m="small"===y||!(!x||y||!w.responsive),O=E("select",n),j=(0,c.default)(r,(t={mini:m},a="".concat(_,"-rtl"),h="rtl"===S,a in t?Object.defineProperty(t,a,{value:h,enumerable:!0,configurable:!0,writable:!0}):t[a]=h,t));return o.createElement(i.default,g({},w,{prefixCls:_,selectPrefixCls:O},function(){var e=o.createElement("span",{className:"".concat(_,"-item-ellipsis")},"•••"),t=o.createElement("button",{className:"".concat(_,"-item-link"),type:"button",tabIndex:-1},o.createElement(u.default,null)),n=o.createElement("button",{className:"".concat(_,"-item-link"),type:"button",tabIndex:-1},o.createElement(s.default,null)),r=o.createElement("a",{className:"".concat(_,"-item-link")},o.createElement("div",{className:"".concat(_,"-item-container")},o.createElement(l.default,{className:"".concat(_,"-item-link-icon")}),e)),i=o.createElement("a",{className:"".concat(_,"-item-link")},o.createElement("div",{className:"".concat(_,"-item-container")},o.createElement(f.default,{className:"".concat(_,"-item-link-icon")}),e));if("rtl"===S){var a=[n,t];t=a[0],n=a[1];var c=[i,r];r=c[0],i=c[1]}return{prevIcon:t,nextIcon:n,jumpPrevIcon:r,jumpNextIcon:i}}(),{className:j,selectComponentClass:m?p.default:d.default,locale:v}))};return o.createElement(h.default,{componentName:"Pagination",defaultLocale:a.default},C)};t.default=w},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=(o=n(979))&&o.__esModule?o:{default:o};function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=function(e){return i.createElement(a.default,u({size:"small"},e))};s.Option=a.default.Option;var l=s;t.default=l},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.suffixIcon,n=e.clearIcon,r=e.menuItemSelectedIcon,f=e.removeIcon,p=e.loading,d=e.multiple,h=e.prefixCls,v=n;n||(v=o.createElement(s.default,null));var m=null;if(void 0!==t)m=t;else if(p)m=o.createElement(a.default,{spin:!0});else{var y="".concat(h,"-suffix");m=function(e){var t=e.open,n=e.showSearch;return t&&n?o.createElement(l.default,{className:y}):o.createElement(i.default,{className:y})}}var b=null;b=void 0!==r?r:d?o.createElement(c.default,null):null;var g=null;g=void 0!==f?f:o.createElement(u.default,null);return{clearIcon:v,suffixIcon:m,itemIcon:b,removeIcon:g}};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=f(n(359)),a=f(n(180)),c=f(n(600)),u=f(n(224)),s=f(n(294)),l=f(n(630));function f(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.responsiveMap=t.responsiveArray=void 0;t.responsiveArray=["xxl","xl","lg","md","sm","xs"];var o={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};t.responsiveMap=o;var i=new Map,a=-1,c={},u={matchHandlers:{},dispatch:function(e){return c=e,i.forEach((function(e){return e(c)})),i.size>=1},subscribe:function(e){return i.size||this.register(),a+=1,i.set(a,e),e(c),a},unsubscribe:function(e){i.delete(e),i.size||this.unregister()},unregister:function(){var e=this;Object.keys(o).forEach((function(t){var n=o[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),i.clear()},register:function(){var e=this;Object.keys(o).forEach((function(t){var n=o[t],i=function(n){var o,i,a,u=n.matches;e.dispatch(r(r({},c),(a=u,(i=t)in(o={})?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o)))},a=window.matchMedia(n);a.addListener(i),e.matchHandlers[n]={mql:a,listener:i},i(a)}))}};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPaginationParam=function(e,t){var n={current:t.current,pageSize:t.pageSize},r=e&&"object"===a(e)?e:{};return Object.keys(r).forEach((function(e){var r=t[e];"function"!=typeof r&&(n[e]=r)})),n},t.default=function(e,t,n){var u=t&&"object"===a(t)?t:{},s=u.total,l=void 0===s?0:s,f=c(u,["total"]),p=(m=(0,r.useState)((function(){return{current:"defaultCurrent"in f?f.defaultCurrent:1,pageSize:"defaultPageSize"in f?f.defaultPageSize:10}})),y=2,function(e){if(Array.isArray(e))return e}(m)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(m,y)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(m,y)||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.")}()),d=p[0],h=p[1],v=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(d,f,{total:l>0?l:e});var m,y;if(!l){Math.ceil(e/v.pageSize)<v.current&&(v.current=1)}var b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;h(o(o({},v),{current:e}))};if(!1===t)return[{},function(){}];return[o(o({},v),{onChange:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=r[0];b(i),n(i,r[1]||v.pageSize),t&&t.onChange&&t.onChange.apply(t,r)},onShowSizeChange:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var a=r[1];h(o(o({},v),{current:1,pageSize:a})),n(1,a),t&&t.onShowSizeChange&&t.onShowSizeChange.apply(t,r)}}),b]},t.DEFAULT_PAGE_SIZE=void 0;var r=n(0);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};t.DEFAULT_PAGE_SIZE=10},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o.useRef({});return[function(o){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){var i=new Map;!function e(r){r.forEach((function(r,o){var a=n(r,o);i.set(a,r),t in r&&e(r[t]||[])}))}(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap.get(o)}]};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e||{},r=n.preserveSelectedRowKeys,m=n.selectedRowKeys,y=n.getCheckboxProps,S=n.onChange,C=n.onSelect,P=n.onSelectAll,k=n.onSelectInvert,M=n.onSelectMultiple,N=n.columnWidth,T=n.type,A=n.selections,R=n.fixed,D=n.renderCell,I=n.hideSelectAll,L=n.checkStrictly,F=void 0===L||L,z=t.prefixCls,B=t.data,H=t.pageData,K=t.getRecordByKey,V=t.getRowKey,U=t.expandType,W=t.childrenColumnName,q=t.locale,G=t.expandIconColumnIndex,$=t.getPopupContainer,Y=o.useRef(new Map),X=g((0,l.default)(m||[],{value:m}),2),Z=X[0],J=X[1],Q=(0,o.useMemo)((function(){return F?{keyEntities:null}:(0,a.convertDataToEntities)(B,void 0,V)}),[B,V,F]).keyEntities,ee=(0,o.useMemo)((function(){return function e(t,n){var r=[];return(t||[]).forEach((function(t){r.push(t),n in t&&(r=[].concat(x(r),x(e(t[n],n))))})),r}(H,W)}),[H,W]),te=(0,o.useMemo)((function(){var e=new Map;return ee.forEach((function(t,n){var r=V(t,n),o=(y?y(t):null)||{};e.set(r,o)})),e}),[ee,V,y]),ne=(0,o.useCallback)((function(e){var t;return!!(null===(t=te.get(V(e)))||void 0===t?void 0:t.disabled)}),[te,V]),re=g((0,o.useMemo)((function(){if(F)return[Z,[]];var e=(0,c.conductCheck)(Z,!0,Q,ne);return[e.checkedKeys,e.halfCheckedKeys]}),[Z,F,Q,ne]),2),oe=re[0],ie=re[1],ae=(0,o.useMemo)((function(){var e="radio"===T?oe.slice(0,1):oe;return new Set(e)}),[oe,T]),ce=(0,o.useMemo)((function(){return"radio"===T?new Set:new Set(ie)}),[ie,T]),ue=g((0,o.useState)(null),2),se=ue[0],le=ue[1];o.useEffect((function(){e||J([])}),[!!e]);var fe=(0,o.useCallback)((function(e){var t,n;if(r){var o=new Map;t=e,n=e.map((function(e){var t=K(e);return!t&&Y.current.has(e)&&(t=Y.current.get(e)),o.set(e,t),t})),Y.current=o}else t=[],n=[],e.forEach((function(e){var r=K(e);void 0!==r&&(t.push(e),n.push(r))}));J(t),S&&S(t,n)}),[J,K,S,r]),pe=(0,o.useCallback)((function(e,t,n,r){if(C){var o=n.map((function(e){return K(e)}));C(K(e),t,o,r)}fe(n)}),[C,K,fe]),de=(0,o.useMemo)((function(){return!A||I?null:(!0===A?["SELECT_ALL","SELECT_INVERT"]:A).map((function(e){return"SELECT_ALL"===e?{key:"all",text:q.selectionAll,onSelect:function(){fe(B.map((function(e,t){return V(e,t)})))}}:"SELECT_INVERT"===e?{key:"invert",text:q.selectInvert,onSelect:function(){var e=new Set(ae);H.forEach((function(t,n){var r=V(t,n);e.has(r)?e.delete(r):e.add(r)}));var t=Array.from(e);fe(t),k&&((0,v.default)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),k(t))}}:e}))}),[A,ae,H,V,k,fe]);return[(0,o.useCallback)((function(t){if(!e)return t;var n,r,a=new Set(ae),l=ee.map(V).filter((function(e){return!te.get(e).disabled})),v=l.every((function(e){return a.has(e)})),m=l.some((function(e){return a.has(e)}));if("radio"!==T){var y;if(de){var g=o.createElement(d.default,{getPopupContainer:$},de.map((function(e,t){var n=e.key,r=e.text,i=e.onSelect;return o.createElement(d.default.Item,{key:n||t,onClick:function(){i&&i(l)}},r)})));y=o.createElement("div",{className:"".concat(z,"-selection-extra")},o.createElement(p.default,{overlay:g,getPopupContainer:$},o.createElement("span",null,o.createElement(i.default,null))))}var S=ee.every((function(e,t){var n=V(e,t);return(te.get(n)||{}).disabled}));n=!I&&o.createElement("div",{className:"".concat(z,"-selection")},o.createElement(f.default,{checked:!S&&!!ee.length&&v,indeterminate:!v&&m,onChange:function(){var e=[];v?l.forEach((function(t){a.delete(t),e.push(t)})):l.forEach((function(t){a.has(t)||(a.add(t),e.push(t))}));var t=Array.from(a);fe(t),P&&P(!v,t.map((function(e){return K(e)})),e.map((function(e){return K(e)})))},disabled:0===ee.length||S}),y)}r="radio"===T?function(e,t,n){var r=V(t,n),i=a.has(r);return{node:o.createElement(h.default,b({},te.get(r),{checked:i,onClick:function(e){return e.stopPropagation()},onChange:function(e){a.has(r)||pe(r,!0,[r],e.nativeEvent)}})),checked:i}}:function(e,t,n){var r=V(t,n),i=a.has(r),s=ce.has(r);return{node:o.createElement(f.default,b({},te.get(r),{checked:i,indeterminate:s,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=e.nativeEvent,n=t.shiftKey,o=-1,s=-1;if(n&&F){var f=new Set([se,r]);l.some((function(e,t){if(f.has(e)){if(-1!==o)return s=t,!0;o=t}return!1}))}if(-1!==s&&o!==s&&F){var p=l.slice(o,s+1),d=[];i?p.forEach((function(e){a.has(e)&&(d.push(e),a.delete(e))})):p.forEach((function(e){a.has(e)||(d.push(e),a.add(e))}));var h=Array.from(a);fe(h),M&&M(!i,h.map((function(e){return K(e)})),d.map((function(e){return K(e)})))}else{var v=oe;if(F){var m=i?(0,u.arrDel)(v,r):(0,u.arrAdd)(v,r);pe(r,!i,m,t)}else{var y=(0,c.conductCheck)([].concat(x(v),[r]),!0,Q,ne),b=y.checkedKeys,g=y.halfCheckedKeys,O=b;if(i){var w=new Set(b);w.delete(r),O=(0,c.conductCheck)(Array.from(w),{checked:!1,halfCheckedKeys:g},Q,ne).checkedKeys}pe(r,!i,O,t)}}le(r)}})),checked:i}};var C,k=function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({width:N,className:"".concat(z,"-selection-column"),title:e.columnTitle||n,render:function(e,t,n){var o=r(e,t,n),i=o.node,a=o.checked;return D?D(a,t,n,i):i}},s.INTERNAL_COL_DEFINE,{className:"".concat(z,"-selection-col")});if("row"===U&&t.length&&!G){var A=w(C=t)||E(C)||j(C)||O(),L=A[0],B=A.slice(1),H=R||_(B[0]);return H&&(L.fixed=H),[L,b(b({},k),{fixed:H})].concat(x(B))}return[b(b({},k),{fixed:R||_(t[0])})].concat(x(t))}),[V,ee,e,oe,ae,ce,N,de,U,se,te,M,pe,ne]),ae]},t.SELECTION_INVERT=t.SELECTION_ALL=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=y();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=m(n(359)),a=n(981),c=n(1304),u=n(898),s=n(602),l=m(n(1305)),f=m(n(982)),p=m(n(985)),d=m(n(988)),h=m(n(991)),v=m(n(551));function m(e){return e&&e.__esModule?e:{default:e}}function y(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return y=function(){return e},e}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){return w(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||j(e,t)||O()}function O(){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 w(e){if(Array.isArray(e))return e}function x(e){return function(e){if(Array.isArray(e))return S(e)}(e)||E(e)||j(e)||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 j(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}function E(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.SELECTION_ALL="SELECT_ALL";function _(e){return e&&e.fixed}t.SELECTION_INVERT="SELECT_INVERT"},function(e,t,n){"use strict";var r=n(40),o=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.InternalTreeNode=void 0;var i=o(n(401)),a=o(n(235)),c=o(n(973)),u=o(n(974)),s=o(n(977)),l=o(n(975)),f=o(n(976)),p=o(n(978)),d=r(n(0)),h=o(n(5)),v=n(1302),m=n(898),y=o(n(1303)),b=n(981);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,p.default)(e);if(t){var o=(0,p.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,f.default)(this,n)}}var x=function(e){(0,l.default)(n,e);var t=w(n);function n(){var e;return(0,c.default)(this,n),(e=t.apply(this,arguments)).state={dragNodeHighlight:!1},e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,(0,b.convertNodePropsToEventData)(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,(0,b.convertNodePropsToEventData)(e.props))},e.onSelect=function(t){if(!e.isDisabled()){var n=e.props.context.onNodeSelect;t.preventDefault(),n(t,(0,b.convertNodePropsToEventData)(e.props))}},e.onCheck=function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,o=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){t.preventDefault();var a=!o;i(t,(0,b.convertNodePropsToEventData)(e.props),a)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,(0,b.convertNodePropsToEventData)(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,(0,b.convertNodePropsToEventData)(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,(0,b.convertNodePropsToEventData)(e.props))},e.onDragStart=function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,(0,s.default)(e));try{t.dataTransfer.setData("text/plain","")}catch(e){}},e.onDragEnter=function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,(0,s.default)(e))},e.onDragOver=function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,(0,s.default)(e))},e.onDragLeave=function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,(0,s.default)(e))},e.onDragEnd=function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,(0,s.default)(e))},e.onDrop=function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,(0,s.default)(e))},e.onExpand=function(t){(0,e.props.context.onNodeExpand)(t,(0,b.convertNodePropsToEventData)(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?"open":"close"},e.hasChildren=function(){var t=e.props.eventKey;return!!((e.props.context.keyEntities[t]||{}).children||[]).length},e.isLeaf=function(){var t=e.props,n=t.isLeaf,r=t.loaded,o=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!o&&!i||o&&r&&!i)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n},e.syncLoadData=function(t){var n=t.expanded,r=t.loading,o=t.loaded,i=e.props.context,a=i.loadData,c=i.onNodeLoad;r||a&&n&&!e.isLeaf()&&(e.hasChildren()||o||c((0,b.convertNodePropsToEventData)(e.props)))},e.renderSwitcher=function(){var t=e.props,n=t.expanded,r=t.switcherIcon,o=e.props.context,i=o.prefixCls,a=o.switcherIcon,c=r||a;if(e.isLeaf())return d.createElement("span",{className:(0,h.default)("".concat(i,"-switcher"),"".concat(i,"-switcher-noop"))},"function"==typeof c?c(O(O({},e.props),{},{isLeaf:!0})):c);var u=(0,h.default)("".concat(i,"-switcher"),"".concat(i,"-switcher_").concat(n?"open":"close"));return d.createElement("span",{onClick:e.onExpand,className:u},"function"==typeof c?c(O(O({},e.props),{},{isLeaf:!1})):c)},e.renderCheckbox=function(){var t=e.props,n=t.checked,r=t.halfChecked,o=t.disableCheckbox,i=e.props.context.prefixCls,a=e.isDisabled(),c=e.isCheckable();if(!c)return null;var u="boolean"!=typeof c?c:null;return d.createElement("span",{className:(0,h.default)("".concat(i,"-checkbox"),n&&"".concat(i,"-checkbox-checked"),!n&&r&&"".concat(i,"-checkbox-indeterminate"),(a||o)&&"".concat(i,"-checkbox-disabled")),onClick:e.onCheck},u)},e.renderIcon=function(){var t=e.props.loading,n=e.props.context.prefixCls;return d.createElement("span",{className:(0,h.default)("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})},e.renderSelector=function(){var t,n=e.state.dragNodeHighlight,r=e.props,o=r.title,i=r.selected,a=r.icon,c=r.loading,u=r.data,s=e.props.context,l=s.prefixCls,f=s.showIcon,p=s.icon,v=s.draggable,m=s.loadData,y=e.isDisabled(),b="".concat(l,"-node-content-wrapper");if(f){var g=a||p;t=g?d.createElement("span",{className:(0,h.default)("".concat(l,"-iconEle"),"".concat(l,"-icon__customize"))},"function"==typeof g?g(e.props):g):e.renderIcon()}else m&&c&&(t=e.renderIcon());var O=d.createElement("span",{className:"".concat(l,"-title")},"function"==typeof o?o(u):o);return d.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof o?o:"",className:(0,h.default)("".concat(b),"".concat(b,"-").concat(e.getNodeState()||"normal"),!y&&(i||n)&&"".concat(l,"-node-selected"),!y&&v&&"draggable"),draggable:!y&&v||void 0,"aria-grabbed":!y&&v||void 0,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick,onDragStart:v?e.onDragStart:void 0},t,O)},e}return(0,u.default)(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,r=t.className,o=t.style,c=t.dragOver,u=t.dragOverGapTop,s=t.dragOverGapBottom,l=t.isLeaf,f=t.isStart,p=t.isEnd,v=t.expanded,g=t.selected,O=t.checked,w=t.halfChecked,x=t.loading,j=t.domRef,E=t.active,S=t.onMouseMove,_=(0,i.default)(t,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),C=this.props.context,P=C.prefixCls,k=C.filterTreeNode,M=C.draggable,N=C.keyEntities,T=this.isDisabled(),A=(0,m.getDataAndAria)(_),R=(N[n]||{}).level,D=p[p.length-1];return d.createElement("div",Object.assign({ref:j,className:(0,h.default)(r,"".concat(P,"-treenode"),(e={},(0,a.default)(e,"".concat(P,"-treenode-disabled"),T),(0,a.default)(e,"".concat(P,"-treenode-switcher-").concat(v?"open":"close"),!l),(0,a.default)(e,"".concat(P,"-treenode-checkbox-checked"),O),(0,a.default)(e,"".concat(P,"-treenode-checkbox-indeterminate"),w),(0,a.default)(e,"".concat(P,"-treenode-selected"),g),(0,a.default)(e,"".concat(P,"-treenode-loading"),x),(0,a.default)(e,"".concat(P,"-treenode-active"),E),(0,a.default)(e,"".concat(P,"-treenode-leaf-last"),D),(0,a.default)(e,"drag-over",!T&&c),(0,a.default)(e,"drag-over-gap-top",!T&&u),(0,a.default)(e,"drag-over-gap-bottom",!T&&s),(0,a.default)(e,"filter-node",k&&k((0,b.convertNodePropsToEventData)(this.props))),e)),style:o,onDragEnter:M?this.onDragEnter:void 0,onDragOver:M?this.onDragOver:void 0,onDragLeave:M?this.onDragLeave:void 0,onDrop:M?this.onDrop:void 0,onDragEnd:M?this.onDragEnd:void 0,onMouseMove:S},A),d.createElement(y.default,{prefixCls:P,level:R,isStart:f,isEnd:p}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(d.Component);t.InternalTreeNode=x;var j=function(e){return d.createElement(v.TreeContext.Consumer,null,(function(t){return d.createElement(x,Object.assign({},e,{context:t}))}))};j.displayName="TreeNode",j.defaultProps={title:"---"},j.isTreeNode=1;var E=j;t.default=E},function(e,t,n){"use strict";var r=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.TreeContext=void 0;var o=r(n(0)).createContext(null);t.TreeContext=o},function(e,t,n){"use strict";var r=n(40),o=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(235)),a=r(n(0)),c=o(n(5)),u=function(e){var t=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd;if(!n)return null;for(var u="".concat(t,"-indent-unit"),s=[],l=0;l<n;l+=1){var f;s.push(a.createElement("span",{key:l,className:(0,c.default)(u,(f={},(0,i.default)(f,"".concat(u,"-start"),r[l+1]),(0,i.default)(f,"".concat(u,"-end"),o[l+1]),f))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},s)};t.default=u},function(e,t,n){"use strict";var r=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.isCheckDisabled=a,t.conductCheck=function(e,t,n,r){var c,u=[];c=r||a;var s,l=new Set(e.filter((function(e){var t=!!n[e];return t||u.push(e),t}))),f=new Map,p=0;Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=f.get(r);o||(o=new Set,f.set(r,o)),o.add(t),p=Math.max(p,r)})),(0,o.default)(!u.length,"Tree missing follow keys: ".concat(u.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),s=!0===t?function(e,t,n,r){for(var o=new Set(e),a=new Set,c=0;c<=n;c+=1){(t.get(c)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}))}for(var u=new Set,s=n;s>=0;s-=1){(t.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!u.has(e.parent.key))if(r(e.parent.node))u.add(t.key);else{var i=!0,c=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);i&&!n&&(i=!1),c||!n&&!a.has(t)||(c=!0)})),i&&o.add(t.key),c&&a.add(t.key),u.add(t.key)}}))}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(i(a,o))}}(l,f,p,c):function(e,t,n,r,o){for(var a=new Set(e),c=new Set(t),u=0;u<=r;u+=1){(n.get(u)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,i=void 0===r?[]:r;a.has(t)||c.has(t)||o(n)||i.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}))}c=new Set;for(var s=new Set,l=r;l>=0;l-=1){(n.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!s.has(e.parent.key))if(o(e.parent.node))s.add(t.key);else{var r=!0,i=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);r&&!n&&(r=!1),i||!n&&!c.has(t)||(i=!0)})),r||a.delete(t.key),i&&c.add(t.key),s.add(t.key)}}))}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(i(c,a))}}(l,t.halfCheckedKeys,f,p,c);return s};var o=r(n(549));function i(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function a(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t||{},r=n.defaultValue,i=n.value,c=n.onChange,u=n.postState,s=(d=o.useState((function(){return void 0!==i?i:void 0!==r?"function"==typeof r?r():r:"function"==typeof e?e():e})),h=2,function(e){if(Array.isArray(e))return e}(d)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(d,h)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(d,h)||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.")}()),l=s[0],f=s[1],p=void 0!==i?i:l;var d,h;u&&(p=u(p));var v=o.useRef(!0);return o.useEffect((function(){v.current?v.current=!1:void 0===i&&f(i)}),[i]),[p,function(e){f(e),p!==e&&c&&c(e,p)}]};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=l(n(5)),a=l(n(663)),c=l(n(987)),u=n(164),s=l(n(986));function l(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=c.default.Group,y=function(e){var t=o.useContext(u.ConfigContext),n=t.getPopupContainer,r=t.getPrefixCls,l=t.direction,f=e.prefixCls,h=e.type,y=e.disabled,b=e.onClick,g=e.htmlType,O=e.children,w=e.className,x=e.overlay,j=e.trigger,E=e.align,S=e.visible,_=e.onVisibleChange,C=e.placement,P=e.getPopupContainer,k=e.href,M=e.icon,N=void 0===M?o.createElement(a.default,null):M,T=e.title,A=e.buttonsRender,R=v(e,["prefixCls","type","disabled","onClick","htmlType","children","className","overlay","trigger","align","visible","onVisibleChange","placement","getPopupContainer","href","icon","title","buttonsRender"]),D=r("dropdown-button",f),I={align:E,overlay:x,disabled:y,trigger:y?[]:j,onVisibleChange:_,getPopupContainer:P||n};"visible"in e&&(I.visible=S),I.placement="placement"in e?C:"rtl"===l?"bottomLeft":"bottomRight";var L=d(A([o.createElement(c.default,{type:h,disabled:y,onClick:b,htmlType:g,href:k,title:T},O),o.createElement(c.default,{type:h,icon:N})]),2),F=L[0],z=L[1];return o.createElement(m,p({},R,{className:(0,i.default)(D,w)}),F,o.createElement(s.default,I,z))};y.__ANT_BUTTON=!0,y.defaultProps={type:"default",buttonsRender:function(e){return e}};var b=y;t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertLegacyProps=function(e){if("danger"===e)return{danger:!0};return{type:e}},t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==O(e)&&"function"!=typeof e)return{default:e};var t=v();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=h(n(5)),i=h(n(89)),a=h(n(1308)),c=n(164),u=h(n(1310)),s=n(750),l=h(n(551)),f=h(n(656)),p=h(n(1313)),d=n(621);function h(e){return e&&e.__esModule?e:{default:e}}function v(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return v=function(){return e},e}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e,t)||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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},x=/^[\u4e00-\u9fa5]{2}$/,j=x.test.bind(x);function E(e){return"text"===e||"link"===e}function S(e,t){var n=!1,o=[];return r.Children.forEach(e,(function(e){var t=O(e),r="string"===t||"number"===t;if(n&&r){var i=o.length-1,a=o[i];o[i]="".concat(a).concat(e)}else o.push(e);n=r})),r.Children.map(o,(function(e){return function(e,t){if(null!=e){var n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&j(e.props.children)?(0,d.cloneElement)(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?(j(e)&&(e=e.split("").join(n)),r.createElement("span",null,e)):e}}(e,t)}))}(0,s.tuple)("default","primary","ghost","dashed","link","text"),(0,s.tuple)("circle","circle-outline","round"),(0,s.tuple)("submit","button","reset");var _=function(e,t){var n,a,s=e.loading,d=e.prefixCls,h=e.type,v=e.danger,g=e.shape,x=e.size,_=e.className,C=e.children,P=e.icon,k=e.ghost,M=e.block,N=w(e,["loading","prefixCls","type","danger","shape","size","className","children","icon","ghost","block"]),T=r.useContext(f.default),A=b(r.useState(!!s),2),R=A[0],D=A[1],I=b(r.useState(!1),2),L=I[0],F=I[1],z=r.useContext(c.ConfigContext),B=z.getPrefixCls,H=z.autoInsertSpaceInButton,K=z.direction,V=t||r.createRef(),U=r.useRef(),W=function(){return 1===r.Children.count(C)&&!P&&!E(h)};a="object"===O(s)&&s.delay?s.delay||!0:!!s,r.useEffect((function(){clearTimeout(U.current),"number"==typeof a?U.current=window.setTimeout((function(){D(a)}),a):D(a)}),[a]),r.useEffect((function(){!function(){if(V&&V.current&&!1!==H){var e=V.current.textContent;W()&&j(e)?L||F(!0):L&&F(!1)}}()}),[V]);var q=function(t){var n=e.onClick;R||n&&n(t)};(0,l.default)(!("string"==typeof P&&P.length>2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(P,"` at https://ant.design/components/icon")),(0,l.default)(!(k&&E(h)),"Button","`link` or `text` button can't be a `ghost` button.");var G=B("btn",d),$=!1!==H,Y="";switch(x||T){case"large":Y="lg";break;case"small":Y="sm"}var X=R?"loading":P,Z=(0,o.default)(G,_,(y(n={},"".concat(G,"-").concat(h),h),y(n,"".concat(G,"-").concat(g),g),y(n,"".concat(G,"-").concat(Y),Y),y(n,"".concat(G,"-icon-only"),!C&&0!==C&&X),y(n,"".concat(G,"-background-ghost"),k&&!E(h)),y(n,"".concat(G,"-loading"),R),y(n,"".concat(G,"-two-chinese-chars"),L&&$),y(n,"".concat(G,"-block"),M),y(n,"".concat(G,"-dangerous"),!!v),y(n,"".concat(G,"-rtl"),"rtl"===K),n)),J=P&&!R?P:r.createElement(p.default,{existIcon:!!P,prefixCls:G,loading:!!R}),Q=C||0===C?S(C,W()&&$):null,ee=(0,i.default)(N,["htmlType","loading"]);if(void 0!==ee.href)return r.createElement("a",m({},ee,{className:Z,onClick:q,ref:V}),J,Q);var te=N,ne=te.htmlType,re=w(te,["htmlType"]),oe=r.createElement("button",m({},(0,i.default)(re,["loading"]),{type:ne,className:Z,onClick:q,ref:V}),J,Q);return E(h)?oe:r.createElement(u.default,null,oe)},C=r.forwardRef(_);C.displayName="Button",C.defaultProps={loading:!1,ghost:!1,block:!1,htmlType:"button"},C.Group=a.default,C.__ANT_BUTTON=!0;var P=C;t.default=P},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=u(n(5)),a=n(164),c=u(n(1309));function u(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d=function(e){return o.createElement(a.ConfigConsumer,null,(function(t){var n,r=t.getPrefixCls,a=t.direction,u=e.prefixCls,s=e.size,d=e.className,h=p(e,["prefixCls","size","className"]),v=r("btn-group",u),m="";switch(s){case"large":m="lg";break;case"small":m="sm";break;case"middle":case void 0:break;default:console.warn(new c.default(s))}var y=(0,i.default)(v,(f(n={},"".concat(v,"-").concat(m),m),f(n,"".concat(v,"-rtl"),"rtl"===a),n),d);return o.createElement("div",l({},h,{className:y}))}))};t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),new Error("unreachable case: ".concat(JSON.stringify(t)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=n(21),a=s(n(1311)),c=s(n(1312)),u=n(164);function s(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){return!e||null===e.offsetParent}function O(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(f,e);var t,n,s,l=v(f);function f(){var e;return p(this,f),(e=l.apply(this,arguments)).animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){if(!(!t||g(t)||t.className.indexOf("-leave")>=0)){var o=e.props.insertExtraNode;e.extraNode=document.createElement("div");var i=y(e).extraNode,c=e.context.getPrefixCls;i.className="".concat(c(""),"-click-animating-node");var u=e.getAttributeName();t.setAttribute(u,"true"),r=r||document.createElement("style"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&O(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n&&(e.csp&&e.csp.nonce&&(r.nonce=e.csp.nonce),i.style.borderColor=n,r.innerHTML="\n [".concat(c(""),"-click-animating-without-extra-node='true']::after, .").concat(c(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),document.body.contains(r)||document.body.appendChild(r)),o&&t.appendChild(i),a.default.addStartEventListener(t,e.onTransitionStart),a.default.addEndEventListener(t,e.onTransitionEnd)}},e.onTransitionStart=function(t){if(!e.destroyed){var n=(0,i.findDOMNode)(y(e));t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!g(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),c.default.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=(0,c.default)((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;return e.csp=n,r},e}return t=f,(n=[{key:"componentDidMount",value:function(){var e=(0,i.findDOMNode)(this);e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){if(e&&e!==this.extraNode&&e instanceof Element){var t=this.props.insertExtraNode,n=this.getAttributeName();e.setAttribute(n,"false"),r&&(r.innerHTML=""),t&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),a.default.removeStartEventListener(e,this.onTransitionStart),a.default.removeEndEventListener(e,this.onTransitionEnd)}}},{key:"render",value:function(){return o.createElement(u.ConfigConsumer,null,this.renderWave)}}])&&d(t.prototype,n),s&&d(t,s),f}(o.Component);t.default=w,w.contextType=u.ConfigContext},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},o={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},i=[],a=[];function c(e,t,n){e.addEventListener(t,n,!1)}function u(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var e=document.createElement("div").style;function t(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];for(var i in o)if(i in e){n.push(o[i]);break}}}"AnimationEvent"in window||(delete r.animationstart.animation,delete o.animationend.animation),"TransitionEvent"in window||(delete r.transitionstart.transition,delete o.transitionend.transition),t(r,i),t(o,a)}();var s={startEvents:i,addStartEventListener:function(e,t){0!==i.length?i.forEach((function(n){c(e,n,t)})):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==i.length&&i.forEach((function(n){u(e,n,t)}))},endEvents:a,addEndEventListener:function(e,t){0!==a.length?a.forEach((function(n){c(e,n,t)})):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==a.length&&a.forEach((function(n){u(e,n,t)}))}};t.default=s,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r,o=(r=n(109))&&r.__esModule?r:{default:r};var i=0,a={};function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=i++,r=t;function c(){(r-=1)<=0?(e(),delete a[n]):a[n]=(0,o.default)(c)}return a[n]=(0,o.default)(c),n}c.cancel=function(e){void 0!==e&&(o.default.cancel(a[e]),delete a[e])},c.ids=a},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prefixCls,n=e.loading,r=e.existIcon,u=!!n;if(r)return o.createElement("span",{className:"".concat(t,"-loading-icon")},o.createElement(c.default,null));return o.createElement(a.default,{visible:u,motionName:"".concat(t,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:l,onAppearActive:f,onEnterStart:l,onEnterActive:f,onLeaveStart:f,onLeaveActive:l},(function(e,n){var r=e.className,a=e.style;return o.createElement("span",{className:"".concat(t,"-loading-icon"),style:a,ref:n},o.createElement(c.default,{className:(0,i.default)(r)}))}))};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=u(n(5)),a=u(n(1314)),c=u(n(180));function u(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=function(){return{width:0,opacity:0,transform:"scale(0)"}},f=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.genCSSMotion=p;var i=l(n(0)),a=l(n(1315)),c=l(n(5)),u=l(n(109)),s=n(1316);function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=e,n=!!i.default.forwardRef;function l(e){return!(!e.motionName||!t)}"object"==typeof e&&(t=e.transitionSupport,n="forwardRef"in e?e.forwardRef:n);var p=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.onDomUpdate=function(){var t=e.state,n=t.status,r=t.newStatus,o=e.props,i=o.onAppearStart,a=o.onEnterStart,c=o.onLeaveStart,u=o.onAppearActive,s=o.onEnterActive,f=o.onLeaveActive,p=o.motionAppear,d=o.motionEnter,h=o.motionLeave;if(l(e.props)){var v=e.getElement();e.$cacheEle!==v&&(e.removeEventListener(e.$cacheEle),e.addEventListener(v),e.$cacheEle=v),r&&"appear"===n&&p?e.updateStatus(i,null,null,(function(){e.updateActiveStatus(u,"appear")})):r&&"enter"===n&&d?e.updateStatus(a,null,null,(function(){e.updateActiveStatus(s,"enter")})):r&&"leave"===n&&h&&e.updateStatus(c,null,null,(function(){e.updateActiveStatus(f,"leave")}))}},e.onMotionEnd=function(t){var n=e.state,r=n.status,o=n.statusActive,i=e.props,a=i.onAppearEnd,c=i.onEnterEnd,u=i.onLeaveEnd;"appear"===r&&o?e.updateStatus(a,{status:"none"},t):"enter"===r&&o?e.updateStatus(c,{status:"none"},t):"leave"===r&&o&&e.updateStatus(u,{status:"none"},t)},e.setNodeRef=function(t){var n=e.props.internalRef;e.node=t,"function"==typeof n?n(t):n&&"current"in n&&(n.current=t)},e.getElement=function(){try{return(0,a.default)(e.node||e)}catch(t){return e.$cacheEle}},e.addEventListener=function(t){t&&(t.addEventListener(s.transitionEndName,e.onMotionEnd),t.addEventListener(s.animationEndName,e.onMotionEnd))},e.removeEventListener=function(t){t&&(t.removeEventListener(s.transitionEndName,e.onMotionEnd),t.removeEventListener(s.animationEndName,e.onMotionEnd))},e.updateStatus=function(t,n,o,i){var a=t?t(e.getElement(),o):null;if(!1!==a&&!e._destroyed){var c=void 0;i&&(c=function(){e.nextFrame(i)}),e.setState(r({statusStyle:"object"==typeof a?a:null,newStatus:!1},n),c)}},e.updateActiveStatus=function(t,n){e.nextFrame((function(){if(e.state.status===n){var r=e.props.motionDeadline;e.updateStatus(t,{statusActive:!0}),r>0&&setTimeout((function(){e.onMotionEnd({deadline:!0})}),r)}}))},e.nextFrame=function(t){e.cancelNextFrame(),e.raf=(0,u.default)(t)},e.cancelNextFrame=function(){e.raf&&(u.default.cancel(e.raf),e.raf=null)},e.state={status:"none",statusActive:!1,newStatus:!1,statusStyle:null},e.$cacheEle=null,e.node=null,e.raf=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame()}},{key:"render",value:function(){var e,t=this.state,n=t.status,o=t.statusActive,i=t.statusStyle,a=this.props,u=a.children,p=a.motionName,d=a.visible,h=a.removeOnLeave,v=a.leavedClassName,m=a.eventProps;return u?"none"!==n&&l(this.props)?u(r({},m,{className:(0,c.default)((e={},f(e,(0,s.getTransitionName)(p,n),"none"!==n),f(e,(0,s.getTransitionName)(p,n+"-active"),"none"!==n&&o),f(e,p,"string"==typeof p),e)),style:i}),this.setNodeRef):d?u(r({},m),this.setNodeRef):h?null:u(r({},m,{className:v}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.status;if(!l(e))return{};var o=e.visible,i=e.motionAppear,a=e.motionEnter,c=e.motionLeave,u=e.motionLeaveImmediately,s={prevProps:e};return("appear"===r&&!i||"enter"===r&&!a||"leave"===r&&!c)&&(s.status="none",s.statusActive=!1,s.newStatus=!1),!n&&o&&i&&(s.status="appear",s.statusActive=!1,s.newStatus=!0),n&&!n.visible&&o&&a&&(s.status="enter",s.statusActive=!1,s.newStatus=!0),(n&&n.visible&&!o&&c||!n&&u&&!o&&c)&&(s.status="leave",s.statusActive=!1,s.newStatus=!0),s}}]),t}(i.default.Component);return p.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},n?i.default.forwardRef((function(e,t){return i.default.createElement(p,r({internalRef:t},e))})):p}t.default=p(s.supportTransition)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(e instanceof HTMLElement)return e;return o.default.findDOMNode(e)};var r,o=(r=n(21))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVendorPrefixes=i,t.getVendorPrefixedEventName=s,t.getTransitionName=function(e,t){if(!e)return null;if("object"==typeof e){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return e+"-"+t};var r=!("undefined"==typeof window||!window.document||!window.document.createElement);function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function i(e,t){var n={animationend:o("Animation","AnimationEnd"),transitionend:o("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var a=i(r,"undefined"!=typeof window?window:{}),c={};r&&(c=document.createElement("div").style);var u={};function s(e){if(u[e])return u[e];var t=a[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in c)return u[e]=t[i],u[e]}return""}var l=t.animationEndName=s("animationend"),f=t.transitionEndName=s("transitionend");t.supportTransition=!(!l||!f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=n(360),i=s(n(5)),a=s(n(89)),c=s(n(899)),u=n(621);function s(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(f,e);var t,n,s,l=m(f);function f(){var e;return d(this,f),(e=l.apply(this,arguments)).onKeyDown=function(t){e.subMenu.onKeyDown(t)},e.saveSubMenu=function(t){e.subMenu=t},e}return t=f,(n=[{key:"renderTitle",value:function(e){var t=this.props,n=t.icon,o=t.title,i=t.level,a=t.rootPrefixCls;if(!n)return e&&1===i&&o&&"string"==typeof o?r.createElement("div",{className:"".concat(a,"-inline-collapsed-noicon")},o.charAt(0)):o;var c=(0,u.isValidElement)(o)&&"span"===o.type;return r.createElement(r.Fragment,null,n,c?o:r.createElement("span",null,o))}},{key:"render",value:function(){var e=this,t=this.props,n=t.rootPrefixCls,u=t.popupClassName;return r.createElement(c.default.Consumer,null,(function(t){var c=t.inlineCollapsed,s=t.antdMenuTheme;return r.createElement(o.SubMenu,p({},(0,a.default)(e.props,["icon"]),{title:e.renderTitle(c),ref:e.saveSubMenu,popupClassName:(0,i.default)(n,"".concat(n,"-").concat(s),u)}))}))}}])&&h(t.prototype,n),s&&h(t,s),f}(r.Component);g.contextType=c.default,g.isSubMenu=1;var O=g;t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=n(360),i=f(n(895)),a=f(n(5)),c=f(n(899)),u=f(n(989)),s=n(990),l=n(621);function f(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(d,e);var t,n,f,p=g(d);function d(){var e;return m(this,d),(e=p.apply(this,arguments)).onKeyDown=function(t){e.menuItem.onKeyDown(t)},e.saveMenuItem=function(t){e.menuItem=t},e.renderItem=function(t){var n=t.siderCollapsed,s=e.props,l=s.level,f=s.className,p=s.children,d=s.rootPrefixCls,m=e.props,y=m.title,b=m.icon,g=m.danger,O=x(m,["title","icon","danger"]);return r.createElement(c.default.Consumer,null,(function(t){var c,s=t.inlineCollapsed,m=t.direction,w=y;void 0===y?w=1===l?p:"":!1===y&&(w="");var x={title:w};n||s||(x.title=null,x.visible=!1);var j=(0,i.default)(p).length;return r.createElement(u.default,h({},x,{placement:"rtl"===m?"left":"right",overlayClassName:"".concat(d,"-inline-collapsed-tooltip")}),r.createElement(o.Item,h({},O,{className:(0,a.default)(f,(c={},v(c,"".concat(d,"-item-danger"),g),v(c,"".concat(d,"-item-only-child"),1===(b?j+1:j)),c)),title:y,ref:e.saveMenuItem}),b,e.renderItemChildren(s)))}))},e}return t=d,(n=[{key:"renderItemChildren",value:function(e){var t=this.props,n=t.icon,o=t.children,i=t.level,a=t.rootPrefixCls;return!n||(0,l.isValidElement)(o)&&"span"===o.type?o&&e&&1===i&&"string"==typeof o?r.createElement("div",{className:"".concat(a,"-inline-collapsed-noicon")},o.charAt(0)):o:r.createElement("span",null,o)}},{key:"render",value:function(){return r.createElement(s.SiderContext.Consumer,null,this.renderItem)}}])&&y(t.prototype,n),f&&y(t,f),d}(r.Component);t.default=j,j.isMenuItem=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOverflowOptions=u,t.default=function(e){var t=e.arrowWidth,n=void 0===t?5:t,i=e.horizontalArrowShift,a=void 0===i?16:i,s=e.verticalArrowShift,l=void 0===s?8:s,f=e.autoAdjustOverflow,p={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(l+n)]},topRight:{points:["br","tc"],offset:[a+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(l+n)]},bottomRight:{points:["tr","bc"],offset:[a+n,4]},rightBottom:{points:["bl","cr"],offset:[4,l+n]},bottomLeft:{points:["tl","bc"],offset:[-(a+n),4]},leftBottom:{points:["br","cl"],offset:[-4,l+n]}};return Object.keys(p).forEach((function(t){p[t]=e.arrowPointAtCenter?o(o({},p[t]),{overflow:u(f),targetOffset:c}):o(o({},r.placements[t]),{overflow:u(f)}),p[t].ignoreShake=!0})),p};var r=n(1320);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i={adjustX:1,adjustY:1},a={adjustX:0,adjustY:0},c=[0,0];function u(e){return"boolean"==typeof e?e?i:a:o(o({},a),e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.placements=void 0;var r={adjustX:1,adjustY:1},o=[0,0],i={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:o}};t.placements=i;var a=i;t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PresetColorTypes=t.PresetStatusColorTypes=void 0;var r=n(750),o=(0,r.tuple)("success","processing","error","default","warning");t.PresetStatusColorTypes=o;var i=(0,r.tuple)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");t.PresetColorTypes=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.LayoutContext=void 0;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=(r=n(5))&&r.__esModule?r:{default:r},a=n(164);function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},x=o.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function j(e){var t=e.suffixCls,n=e.tagName,r=e.displayName;return function(e){var i;return(i=function(r){m(c,r);var i=b(c);function c(){var r;return d(this,c),(r=i.apply(this,arguments)).renderComponent=function(i){var a=i.getPrefixCls,c=r.props.prefixCls,u=a(t,c);return o.createElement(e,p({prefixCls:u,tagName:n},r.props))},r}return v(c,[{key:"render",value:function(){return o.createElement(a.ConfigConsumer,null,this.renderComponent)}}]),c}(o.Component)).displayName=r,i}}t.LayoutContext=x;var E=function(e){var t=e.prefixCls,n=e.className,r=e.children,a=e.tagName,c=w(e,["prefixCls","className","children","tagName"]),u=(0,i.default)(t,n);return o.createElement(a,p({className:u},c),r)},S=function(e){m(n,e);var t=b(n);function n(){var e;return d(this,n),(e=t.apply(this,arguments)).state={siders:[]},e.renderComponent=function(t){var n,r=t.direction,a=e.props,c=a.prefixCls,u=a.className,s=a.children,l=a.hasSider,d=a.tagName,h=w(a,["prefixCls","className","children","hasSider","tagName"]),v=(0,i.default)(c,(f(n={},"".concat(c,"-has-sider"),"boolean"==typeof l?l:e.state.siders.length>0),f(n,"".concat(c,"-rtl"),"rtl"===r),n),u);return o.createElement(x.Provider,{value:{siderHook:e.getSiderHook()}},o.createElement(d,p({className:v},h),s))},e}return v(n,[{key:"getSiderHook",value:function(){var e=this;return{addSider:function(t){e.setState((function(e){return{siders:[].concat(s(e.siders),[t])}}))},removeSider:function(t){e.setState((function(e){return{siders:e.siders.filter((function(e){return e!==t}))}}))}}}},{key:"render",value:function(){return o.createElement(a.ConfigConsumer,null,this.renderComponent)}}]),n}(o.Component),_=j({suffixCls:"layout",tagName:"section",displayName:"Layout"})(S),C=j({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(E),P=j({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(E),k=j({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(E);_.Header=C,_.Footer=P,_.Content=k;var M=_;t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){return{height:0,opacity:0}},o=function(e){return{height:e.scrollHeight,opacity:1}};function i(e,t){return"height"===t.propertyName}var a={motionName:"ant-motion-collapse",onAppearStart:r,onEnterStart:r,onAppearActive:o,onEnterActive:o,onLeaveStart:function(e){return{height:e.offsetHeight}},onLeaveActive:r,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500};t.default=a},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=f(n(5)),a=f(n(900)),c=n(164),u=f(n(656)),s=n(901),l=n(992);function f(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=o.forwardRef((function(e,t){var n,r=o.useContext(c.ConfigContext),f=r.getPrefixCls,p=r.direction,v=o.useContext(u.default);void 0!==e.value?n=e.value:void 0!==e.defaultValue&&(n=e.defaultValue);var m=h(o.useState(n),2),y=m[0],b=m[1],g=(0,l.usePrevious)(e.value);o.useEffect((function(){void 0===e.value&&g===e.value||b(e.value)}),[e.value]);return o.createElement(s.RadioGroupContextProvider,{value:{onChange:function(t){var n=y,r=t.target.value;"value"in e||b(r);var o=e.onChange;o&&r!==n&&o(t)},value:y,disabled:e.disabled,name:e.name}},function(){var n,r=e.prefixCls,c=e.className,u=void 0===c?"":c,s=e.options,l=e.optionType,h=e.buttonStyle,m=e.disabled,b=e.children,g=e.size,O=e.style,w=e.id,x=e.onMouseEnter,j=e.onMouseLeave,E=f("radio",r),S="".concat(E,"-group"),_=b;if(s&&s.length>0){var C="button"===l?"".concat(E,"-button"):E;_=s.map((function(e){return"string"==typeof e?o.createElement(a.default,{ref:t,key:e,prefixCls:C,disabled:m,value:e,checked:y===e},e):o.createElement(a.default,{ref:t,key:"radio-group-value-options-".concat(e.value),prefixCls:C,disabled:e.disabled||m,value:e.value,checked:y===e.value,style:e.style},e.label)}))}var P=g||v,k=(0,i.default)(S,"".concat(S,"-").concat(h),(d(n={},"".concat(S,"-").concat(P),P),d(n,"".concat(S,"-rtl"),"rtl"===p),n),u);return o.createElement("div",{className:k,style:O,onMouseEnter:x,onMouseLeave:j,id:w},_)}())}));m.defaultProps={buttonStyle:"outline"};var y=o.memo(m);t.default=y},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=u(n(900)),a=n(164),c=u(n(901));function u(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},p=function(e,t){var n=o.useContext(c.default),r=o.useContext(a.ConfigContext).getPrefixCls,u=e.prefixCls,s=f(e,["prefixCls"]),p=r("radio-button",u);return n&&(s.checked=e.value===n.value,s.disabled=e.disabled||n.disabled),o.createElement(i.default,l({prefixCls:p},s,{type:"radio",ref:t}))},d=o.forwardRef(p);t.default=d},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortData=function e(t,n,r){var o=n.slice().sort((function(e,t){return t.multiplePriority-e.multiplePriority})),i=t.slice(),a=o.filter((function(e){var t=e.column.sorter,n=e.sortOrder;return b(t)&&n}));if(!a.length)return i;return i.sort((function(e,t){for(var n=0;n<a.length;n+=1){var r=a[n],o=r.column.sorter,i=r.sortOrder,c=b(o);if(c&&i){var u=c(e,t,i);if(0!==u)return"ascend"===i?u:-u}}return 0})).map((function(t){var o=t[r];return o?p(p({},t),f({},r,e(o,n,r))):t}))},t.default=function(e){var t=e.prefixCls,n=e.mergedColumns,s=e.onSorterChange,l=e.sortDirections,v=e.tableLocale,m=e.showSorterTooltip,b=(S=r.useState(g(n,!0)),_=2,function(e){if(Array.isArray(e))return e}(S)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(S,_)||h(S,_)||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.")}()),O=b[0],x=b[1],j=r.useMemo((function(){var e=!0,t=g(n,!1);if(!t.length)return O;var r=[];function o(t){e?r.push(t):r.push(p(p({},t),{sortOrder:null}))}var i=null;return t.forEach((function(t){null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))})),r}),[n,O]),E=r.useMemo((function(){var e=j.map((function(e){return{column:e.column,order:e.sortOrder}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[j]);var S,_;function C(e){var t;t=!1!==e.multiplePriority&&j.length&&!1!==j[0].multiplePriority?[].concat(d(j.filter((function(t){return t.key!==e.key}))),[e]):[e],x(t),s(w(t),t)}return[function(e){return function e(t,n,s,l,d,h,v,m){return(n||[]).map((function(n,b){var g=(0,u.getColumnPos)(b,m),O=n;if(O.sorter){var w=O.sortDirections||d,x=void 0===O.showSorterTooltip?v:O.showSorterTooltip,j=(0,u.getColumnKey)(O,g),E=s.find((function(e){return e.key===j})),S=E?E.sortOrder:null,_=function(e,t){if(!t)return e[0];return e[e.indexOf(t)+1]}(w,S),C=w.includes("ascend")&&r.createElement(a.default,{className:(0,o.default)("".concat(t,"-column-sorter-up"),{active:"ascend"===S})}),P=w.includes("descend")&&r.createElement(i.default,{className:(0,o.default)("".concat(t,"-column-sorter-down"),{active:"descend"===S})}),k=h||{},M=k.cancelSort,N=k.triggerAsc,T=k.triggerDesc,A=M;"descend"===_?A=T:"ascend"===_&&(A=N),O=p(p({},O),{className:(0,o.default)(O.className,f({},"".concat(t,"-column-sort"),S)),title:function(e){var i=r.createElement("div",{className:"".concat(t,"-column-sorters")},r.createElement("span",null,(0,u.renderColumnTitle)(n.title,e)),r.createElement("span",{className:(0,o.default)("".concat(t,"-column-sorter"),f({},"".concat(t,"-column-sorter-full"),C&&P))},r.createElement("span",{className:"".concat(t,"-column-sorter-inner")},C,P)));return x?r.createElement(c.default,{title:A},r.createElement("div",{className:"".concat(t,"-column-sorters-with-tooltip")},i)):i},onHeaderCell:function(e){var r=n.onHeaderCell&&n.onHeaderCell(e)||{},i=r.onClick;return r.onClick=function(e){l({column:n,key:j,sortOrder:_,multiplePriority:y(n)}),i&&i(e)},r.className=(0,o.default)(r.className,"".concat(t,"-column-has-sorters")),r}})}return"children"in O&&(O=p(p({},O),{children:e(t,O.children,s,l,d,h,v,g)})),O}))}(t,e,j,C,l,v,m)},j,E,function(){return w(j)}]};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=s(n(5)),i=s(n(914)),a=s(n(915)),c=s(n(989)),u=n(902);function s(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||h(e)||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 h(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e){return"object"===m(e.sorter)&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function b(e){return"function"==typeof e?e:!(!e||"object"!==m(e)||!e.compare)&&e.compare}function g(e,t,n){var r=[];function o(e,t){r.push({column:e,key:(0,u.getColumnKey)(e,t),multiplePriority:y(e),sortOrder:e.sortOrder})}return(e||[]).forEach((function(e,i){var a=(0,u.getColumnPos)(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(d(r),d(g(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:(0,u.getColumnKey)(e,a),multiplePriority:y(e),sortOrder:e.defaultSortOrder}))})),r}function O(e){var t=e.column;return{column:t,order:e.sortOrder,field:t.dataIndex,columnKey:t.key}}function w(e){var t=e.filter((function(e){return e.sortOrder})).map(O);return 0===t.length&&e.length?p(p({},O(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1330)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CaretDownOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"}},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1332)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CaretUpOutlined";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterData=function(e,t){return t.reduce((function(e,t){var n=t.column,r=n.onFilter,o=n.filters,i=t.filteredKeys;return r&&i&&i.length?e.filter((function(e){return i.some((function(t){var n=function e(t){var n=[];return(t||[]).forEach((function(t){var r=t.value,o=t.children;n.push(r),o&&(n=[].concat(f(n),f(e(o))))})),n}(o),i=n.findIndex((function(e){return String(e)===String(t)})),a=-1!==i?n[i]:t;return r(a,e)}))})):e}),e)},t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=n(902),c=(o=n(1334))&&o.__esModule?o:{default:o};function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||p(e,t)||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 l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||p(e)||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 p(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n){var r=[];return(e||[]).forEach((function(e,o){var i=(0,a.getColumnPos)(o,n);"children"in e?r=[].concat(f(r),f(h(e.children,t,i))):(e.filters||"filterDropdown"in e||"onFilter"in e)&&("filteredValue"in e?r.push({column:e,key:(0,a.getColumnKey)(e,i),filteredKeys:e.filteredValue,forceFiltered:e.filtered}):r.push({column:e,key:(0,a.getColumnKey)(e,i),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered}))})),r}function v(e){var t={};return e.forEach((function(e){var n=e.key,r=e.filteredKeys;t[n]=r||null})),t}var m=function(e){var t=e.prefixCls,n=e.dropdownPrefixCls,r=e.mergedColumns,o=e.onFilterChange,u=e.getPopupContainer,f=e.locale,p=s(i.useState(h(r,!0)),2),d=p[0],m=p[1],y=i.useMemo((function(){var e=h(r,!1);return e.every((function(e){return void 0===e.filteredKeys}))?d:e}),[r,d]),b=i.useCallback((function(){return v(y)}),[y]),g=function(e){var t=y.filter((function(t){return t.key!==e.key}));t.push(e),m(t),o(v(t),t)};return[function(e){return function e(t,n,r,o,u,s,f,p){return r.map((function(r,d){var h=(0,a.getColumnPos)(d,p),v=r.filterMultiple,m=void 0===v||v;if(r.filters||"filterDropdown"in r){var y=(0,a.getColumnKey)(r,h),b=o.find((function(e){var t=e.key;return y===t}));return l(l({},r),{title:function(e){return i.createElement(c.default,{prefixCls:"".concat(t,"-filter"),dropdownPrefixCls:n,column:r,columnKey:y,filterState:b,filterMultiple:m,triggerFilter:u,locale:f,getPopupContainer:s},(0,a.renderColumnTitle)(r.title,e))}})}return"children"in r?l(l({},r),{children:e(t,n,r.children,o,u,s,f,h)}):r}))}(t,n,e,y,g,u,f)},y,b]};t.default=m},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=b();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=y(n(5)),a=y(n(553)),c=y(n(916)),u=y(n(987)),s=y(n(988)),l=y(n(982)),f=y(n(991)),p=y(n(985)),d=y(n(972)),h=y(n(1337)),v=y(n(1338)),m=n(897);function y(e){return e&&e.__esModule?e:{default:e}}function b(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return b=function(){return e},e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var x=s.default.SubMenu,j=s.default.Item;var E=function(e){var t,n=e.prefixCls,r=e.column,y=e.dropdownPrefixCls,b=e.columnKey,w=e.filterMultiple,E=e.filterState,S=e.triggerFilter,_=e.locale,C=e.children,P=e.getPopupContainer,k=r.filterDropdownVisible,M=r.onFilterDropdownVisibleChange,N=O(o.useState(!1),2),T=N[0],A=N[1],R=!(!E||!(null===(t=E.filteredKeys)||void 0===t?void 0:t.length)&&!E.forceFiltered),D=function(e){A(e),M&&M(e)},I="boolean"==typeof k?k:T,L=E&&E.filteredKeys,F=O((0,v.default)(L||[]),2),z=F[0],B=F[1],H=function(e){var t=e.selectedKeys;B(t)};o.useEffect((function(){H({selectedKeys:L||[]})}),[L]);var K=O(o.useState([]),2),V=K[0],U=K[1],W=o.useRef();o.useEffect((function(){return function(){window.clearTimeout(W.current)}}),[]);var q,G=function(e){D(!1);var t=e&&e.length?e:null;return null!==t||E&&E.filteredKeys?(0,a.default)(t,null==E?void 0:E.filteredKeys)?null:void S({column:r,key:b,filteredKeys:t}):null},$=function(){G(z())},Y=function(){B([]),G([])},X=(0,i.default)(g({},"".concat(y,"-menu-without-submenu"),!(r.filters||[]).some((function(e){return e.children}))));if("function"==typeof r.filterDropdown)q=r.filterDropdown({prefixCls:"".concat(y,"-custom"),setSelectedKeys:function(e){return H({selectedKeys:e})},selectedKeys:z(),confirm:$,clearFilters:Y,filters:r.filters,visible:I});else if(r.filterDropdown)q=r.filterDropdown;else{var Z=z()||[];q=o.createElement(o.Fragment,null,o.createElement(s.default,{multiple:w,prefixCls:"".concat(y,"-menu"),className:X,onClick:function(){window.clearTimeout(W.current)},onSelect:H,onDeselect:H,selectedKeys:Z,getPopupContainer:P,openKeys:V,onOpenChange:function(e){W.current=window.setTimeout((function(){U(e)}))}},function e(t){var n=t.filters,r=t.prefixCls,i=t.filteredKeys,a=t.filterMultiple,c=t.locale;return 0===n.length?o.createElement(d.default,{image:d.default.PRESENTED_IMAGE_SIMPLE,description:c.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}}):n.map((function(t,n){var u=String(t.value);if(t.children)return o.createElement(x,{key:u||n,title:t.text,popupClassName:"".concat(r,"-dropdown-submenu")},e({filters:t.children,prefixCls:r,filteredKeys:i,filterMultiple:a,locale:c}));var s=a?l.default:f.default;return o.createElement(j,{key:void 0!==t.value?u:n},o.createElement(s,{checked:i.includes(u)}),o.createElement("span",null,t.text))}))}({filters:r.filters||[],prefixCls:n,filteredKeys:z(),filterMultiple:w,locale:_})),o.createElement("div",{className:"".concat(n,"-dropdown-btns")},o.createElement(u.default,{type:"link",size:"small",disabled:0===Z.length,onClick:Y},_.filterReset),o.createElement(u.default,{type:"primary",size:"small",onClick:$},_.filterConfirm)))}var J,Q=o.createElement(h.default,{className:"".concat(n,"-dropdown")},q);J="function"==typeof r.filterIcon?r.filterIcon(R):r.filterIcon?r.filterIcon:o.createElement(c.default,null);var ee=o.useContext(m.ConfigContext).direction;return o.createElement("div",{className:(0,i.default)("".concat(n,"-column"))},o.createElement("span",{className:"".concat(n,"-column-title")},C),o.createElement("span",{className:(0,i.default)("".concat(n,"-trigger-container"),g({},"".concat(n,"-trigger-container-open"),I)),onClick:function(e){e.stopPropagation()}},o.createElement(p.default,{overlay:Q,trigger:["click"],visible:I,onVisibleChange:function(e){e&&void 0!==L&&B(L||[]),D(e),e||r.filterDropdown||$()},getPopupContainer:P,placement:"rtl"===ee?"bottomLeft":"bottomRight"},o.createElement("span",{role:"button",tabIndex:-1,className:(0,i.default)("".concat(n,"-trigger"),{active:R})},J))))};t.default=E},function(e,t,n){"use strict";var r=n(35),o=n(40);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1336)),c=r(n(74)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="FilterFilled";var s=i.forwardRef(u);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=function(e){return o.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()}},e.children)};t.default=a},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.useRef(e),n=(r=o.useState(null),i=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(r,i)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(r,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];var r,i;return[function(){return t.current},function(e){t.current=e,n({})}]};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[o.useCallback((function(t){return function e(t,n){return t.map((function(t){var r=c({},t);return r.title=(0,i.renderColumnTitle)(t.title,n),"children"in r&&(r.children=e(r.children,n)),r}))}(t,e)}),[e])]};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var c=o?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=n(902);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=(o=n(5))&&o.__esModule?o:{default:o};function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){return function(t){var n,r=t.prefixCls,o=t.onExpand,c=t.record,s=t.expanded,l=t.expandable,f="".concat(r,"-row-expand-icon");return i.createElement("button",{type:"button",onClick:function(e){o(c,e),e.stopPropagation()},className:(0,a.default)(f,(n={},u(n,"".concat(f,"-spaced"),!l),u(n,"".concat(f,"-expanded"),l&&s),u(n,"".concat(f,"-collapsed"),l&&!s),n)),"aria-label":s?e.collapse:e.expand})}};t.default=s},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getContainer,r=void 0===n?function(){return window}:n,o=t.callback,u=t.duration,s=void 0===u?450:u,l=r(),f=(0,a.default)(l,!0),p=Date.now(),d=function t(){var n=Date.now()-p,r=(0,c.easeInOutCubic)(n>s?s:n,f,e,s);(0,a.isWindow)(l)?l.scrollTo(window.pageXOffset,r):l instanceof HTMLDocument||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=r:l.scrollTop=r,n<s?(0,i.default)(t):"function"==typeof o&&o()};(0,i.default)(d)};var o,i=(o=n(109))&&o.__esModule?o:{default:o},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(1342)),c=n(1343);function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}},function(e,t,n){"use strict";function r(e){return null!=e&&e===e.window}Object.defineProperty(t,"__esModule",{value:!0}),t.isWindow=r,t.default=function(e,t){if("undefined"==typeof window)return 0;var n=t?"scrollTop":"scrollLeft",o=0;r(e)?o=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?o=e.documentElement[n]:e&&(o=e[n]);e&&!r(e)&&"number"!=typeof o&&(o=(e.ownerDocument||e).documentElement[n]);return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.easeInOutCubic=function(e,t,n,r){var o=n-t;if((e/=r/2)<1)return o/2*e*e*e+t;return o/2*((e-=2)*e*e+2)+t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return null};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return null};t.default=r},,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(5),a=n.n(i);function c(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function u(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append(t+"[]",e)})):n.append(t,e.data[t])})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot "+e.method+" "+e.action+" "+t.status+"'",r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),c(t)):e.onSuccess(c(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var s=+new Date,l=0;function f(){return"rc-upload-"+s+"-"+ ++l}var p=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t,n,a=e.trim();return"."===a.charAt(0)?(t=r.toLowerCase(),n=a.toLowerCase(),-1!==t.indexOf(n,t.length-n.length)):/\/\*$/.test(a)?i===a.replace(/\/.*$/,""):o===a}))}return!0};var d=function(e,t,n){var r=function e(r,o){o=o||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var o=Array.prototype.slice.apply(n);r=r.concat(o),!o.length?t(r):e()}))}()}(r,(function(t){t.forEach((function(t){e(t,""+o+r.name+"/")}))}))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var O=function(e){function t(){var e,n,r;b(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={uid:f()},r.reqs={},r.onChange=function(e){var t=e.target.files;r.uploadFiles(t),r.reset()},r.onClick=function(e){var t=r.fileInput;if(t){var n=r.props,o=n.children,i=n.onClick;o&&"button"===o.type&&(t.parentNode.focus(),t.parentNode.querySelector("button").blur()),t.click(),i&&i(e)}},r.onKeyDown=function(e){"Enter"===e.key&&r.onClick()},r.onFileDrop=function(e){var t=r.props.multiple;if(e.preventDefault(),"dragover"!==e.type)if(r.props.directory)d(Array.prototype.slice.call(e.dataTransfer.items),r.uploadFiles,(function(e){return p(e,r.props.accept)}));else{var n=Array.prototype.slice.call(e.dataTransfer.files).filter((function(e){return p(e,r.props.accept)}));!1===t&&(n=n.slice(0,1)),r.uploadFiles(n)}},r.uploadFiles=function(e){var t=Array.prototype.slice.call(e);t.map((function(e){return e.uid=f(),e})).forEach((function(e){r.upload(e,t)}))},r.saveFileInput=function(e){r.fileInput=e},g(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),m(t,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(e,t){var n=this,r=this.props;if(!r.beforeUpload)return setTimeout((function(){return n.post(e)}),0);var o=r.beforeUpload(e,t);o&&o.then?o.then((function(t){var r=Object.prototype.toString.call(t);return"[object File]"===r||"[object Blob]"===r?n.post(t):n.post(e)})).catch((function(e){console.log(e)})):!1!==o&&setTimeout((function(){return n.post(e)}),0)}},{key:"post",value:function(e){var t=this;if(this._isMounted){var n=this.props,r=n.onStart,o=n.onProgress,i=n.transformFile,a=void 0===i?function(e){return e}:i;new Promise((function(t){var r=n.action;return"function"==typeof r&&(r=r(e)),t(r)})).then((function(i){var c=e.uid,s=n.customRequest||u;Promise.resolve(a(e)).then((function(e){var t=n.data;return"function"==typeof t&&(t=t(e)),Promise.all([e,t])})).catch((function(e){console.error(e)})).then((function(a){var u=v(a,2),l=u[0],f=u[1],p={action:i,filename:n.name,data:f,file:l,headers:n.headers,withCredentials:n.withCredentials,method:n.method||"post",onProgress:o?function(t){o(t,e)}:null,onSuccess:function(r,o){delete t.reqs[c],n.onSuccess(r,e,o)},onError:function(r,o){delete t.reqs[c],n.onError(r,o,e)}};t.reqs[c]=s(p),r(e)}))}))}}},{key:"reset",value:function(){this.setState({uid:f()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e;e&&e.uid&&(n=e.uid),t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e,t,n=this.props,r=n.component,i=n.prefixCls,c=n.className,u=n.disabled,s=n.id,l=n.style,f=n.multiple,p=n.accept,d=n.children,v=n.directory,m=n.openFileDialogOnClick,b=n.onMouseEnter,g=n.onMouseLeave,O=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),w=a()((y(e={},i,!0),y(e,i+"-disabled",u),y(e,c,c),e)),x=u?{}:{onClick:m?this.onClick:function(){},onKeyDown:m?this.onKeyDown:function(){},onMouseEnter:b,onMouseLeave:g,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return o.a.createElement(r,h({},x,{className:w,role:"button",style:l}),o.a.createElement("input",h({},(t=O,Object.keys(t).reduce((function(e,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(e[n]=t[n]),e}),{})),{id:s,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:p,directory:v?"directory":null,webkitdirectory:v?"webkitdirectory":null,multiple:f,onChange:this.onChange})),d)}}]),t}(r.Component),w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function S(){}var _=function(e){function t(){var e,n,r;j(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=E(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.saveUploader=function(e){r.uploader=e},E(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),x(t,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return o.a.createElement(O,w({},this.props,{ref:this.saveUploader}))}}]),t}(r.Component);_.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:S,onError:S,onSuccess:S,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var C=_,P=n(566),k=n(180),M=n.n(k),N=n(1019),T=n.n(N),A=n(1017),R=n.n(A),D=n(1018),I=n.n(D),L=n(776),F=n.n(L),z=n(1020),B=n.n(z),H=n(781),K=n.n(H),V=n(110);function U(){return(U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function W(e){return U(U({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function q(e,t){var n=void 0!==e.uid?"uid":"name";return t.filter((function(t){return t[n]===e[n]}))[0]}var G=function(e){return 0===e.indexOf("image/")};var $=n(297),Y=n(89),X=n(224),Z=n.n(X),J=n(600),Q=n.n(J),ee=n(598),te=n.n(ee),ne=n(294),re=n.n(ne),oe=n(196),ie=n(177),ae=n(91);function ce(e){return!e||e<0?0:e>100?100:e}function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},le=function(e){var t,n,r=e.from,o=void 0===r?"#1890ff":r,i=e.to,a=void 0===i?"#1890ff":i,c=e.direction,u=void 0===c?"to right":c,s=se(e,["from","to","direction"]);if(0!==Object.keys(s).length){var l=(t=s,n=[],Object.keys(t).forEach((function(e){var r=parseFloat(e.replace(/%/g,""));isNaN(r)||n.push({key:r,value:t[e]})})),(n=n.sort((function(e,t){return e.key-t.key}))).map((function(e){var t=e.key,n=e.value;return"".concat(n," ").concat(t,"%")})).join(", "));return{backgroundImage:"linear-gradient(".concat(u,", ").concat(l,")")}}return{backgroundImage:"linear-gradient(".concat(u,", ").concat(o,", ").concat(a,")")}},fe=function(e){var t,n,o,i,a=e.prefixCls,c=e.percent,u=e.strokeWidth,s=e.size,l=e.strokeColor,f=e.strokeLinecap,p=e.children,d=e.trailColor,h=e.success;t=l&&"string"!=typeof l?le(l):{background:l},d&&"string"==typeof d&&(n={backgroundColor:d}),h&&"strokeColor"in h&&(o=h.strokeColor),o&&"string"==typeof o&&(i={backgroundColor:o});var v=ue({width:"".concat(ce(c),"%"),height:u||("small"===s?6:8),borderRadius:"square"===f?0:""},t),m=e.successPercent;h&&"progress"in h&&(m=h.progress),h&&"percent"in h&&(m=h.percent);var y={width:"".concat(ce(m),"%"),height:u||("small"===s?6:8),borderRadius:"square"===f?0:""};i&&(y=ue(ue({},y),i));var b=void 0!==m?r.createElement("div",{className:"".concat(a,"-success-bg"),style:y}):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(a,"-outer")},r.createElement("div",{className:"".concat(a,"-inner"),style:n},r.createElement("div",{className:"".concat(a,"-bg"),style:v}),b)),p)},pe={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},de=function(e){var t=e.map((function(){return Object(r.useRef)()})),n=Object(r.useRef)();return Object(r.useEffect)((function(){var e=Date.now(),r=!1;Object.keys(t).forEach((function(o){var i=t[o].current;if(i){r=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&e-n.current<100&&(a.transitionDuration="0s, 0s")}})),r&&(n.current=Date.now())})),[t]};function he(){return(he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return me(e,t)}(e,t)||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 me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ye(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var be=function(e){var t=e.className,n=e.percent,r=e.prefixCls,i=e.strokeColor,c=e.strokeLinecap,u=e.strokeWidth,s=e.style,l=e.trailColor,f=e.trailWidth,p=e.transition,d=ye(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete d.gapPosition;var h=Array.isArray(n)?n:[n],v=Array.isArray(i)?i:[i],m=ve(de(h),1)[0],y=u/2,b=100-u/2,g="M ".concat("round"===c?y:0,",").concat(y,"\n L ").concat("round"===c?b:100,",").concat(y),O="0 0 100 ".concat(u),w=0;return o.a.createElement("svg",he({className:a()("".concat(r,"-line"),t),viewBox:O,preserveAspectRatio:"none",style:s},d),o.a.createElement("path",{className:"".concat(r,"-line-trail"),d:g,strokeLinecap:c,stroke:l,strokeWidth:f||u,fillOpacity:"0"}),h.map((function(e,t){var n={strokeDasharray:"".concat(e,"px, 100px"),strokeDashoffset:"-".concat(w,"px"),transition:p||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},i=v[t]||v[v.length-1];return w+=e,o.a.createElement("path",{key:t,className:"".concat(r,"-line-path"),d:g,strokeLinecap:c,stroke:i,strokeWidth:u,fillOpacity:"0",ref:m[t],style:n})})))};be.defaultProps=pe;function ge(){return(ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return we(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return we(e,t)}(e,t)||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 we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var je=0;function Ee(e){return+e.replace("%","")}function Se(e){return Array.isArray(e)?e:[e]}function _e(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=50-r/2,c=0,u=-a,s=0,l=-2*a;switch(i){case"left":c=-a,u=0,s=2*a,l=0;break;case"right":c=a,u=0,s=-2*a,l=0;break;case"bottom":u=a,l=2*a}var f="M 50,50 m ".concat(c,",").concat(u,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(s,",").concat(-l,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(-s,",").concat(l),p=2*Math.PI*a,d={stroke:n,strokeDasharray:"".concat(t/100*(p-o),"px ").concat(p,"px"),strokeDashoffset:"-".concat(o/2+e/100*(p-o),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:f,pathStyle:d}}var Ce=function(e){var t,n=e.prefixCls,i=e.strokeWidth,c=e.trailWidth,u=e.gapDegree,s=e.gapPosition,l=e.trailColor,f=e.strokeLinecap,p=e.style,d=e.className,h=e.strokeColor,v=e.percent,m=xe(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),y=Object(r.useMemo)((function(){return je+=1}),[]),b=_e(0,100,l,i,u,s),g=b.pathString,O=b.pathStyle,w=Se(v),x=Se(h),j=x.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),E=Oe(de(w),1)[0];return o.a.createElement("svg",ge({className:a()("".concat(n,"-circle"),d),viewBox:"0 0 100 100",style:p},m),j&&o.a.createElement("defs",null,o.a.createElement("linearGradient",{id:"".concat(n,"-gradient-").concat(y),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(j).sort((function(e,t){return Ee(e)-Ee(t)})).map((function(e,t){return o.a.createElement("stop",{key:t,offset:e,stopColor:j[e]})})))),o.a.createElement("path",{className:"".concat(n,"-circle-trail"),d:g,stroke:l,strokeLinecap:f,strokeWidth:c||i,fillOpacity:"0",style:O}),(t=0,w.map((function(e,r){var a=x[r]||x[x.length-1],c="[object Object]"===Object.prototype.toString.call(a)?"url(#".concat(n,"-gradient-").concat(y,")"):"",l=_e(t,e,a,i,u,s);return t+=e,o.a.createElement("path",{key:r,className:"".concat(n,"-circle-path"),d:l.pathString,stroke:c,strokeLinecap:f,strokeWidth:i,opacity:0===e?0:1,fillOpacity:"0",style:l.pathStyle,ref:E[r]})}))).reverse())};Ce.defaultProps=pe;var Pe=Ce;function ke(e){var t=e.percent,n=e.success,r=e.successPercent,o=ce(t);if(n&&"progress"in n&&(r=n.progress),n&&"percent"in n&&(r=n.percent),!r)return o;var i=ce(r);return[r,ce(o-i)]}var Me=function(e){var t,n=e.prefixCls,o=e.width,i=e.strokeWidth,c=e.trailColor,u=e.strokeLinecap,s=e.gapPosition,l=e.gapDegree,f=e.type,p=e.children,d=o||120,h={width:d,height:d,fontSize:.15*d+6},v=i||6,m=s||"dashboard"===f&&"bottom"||"top";l||0===l?t=l:"dashboard"===f&&(t=75);var y,b,g,O=function(e){var t=e.success,n=e.strokeColor,r=e.successPercent,o=n||null;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r?[null,o]:o}(e),w="[object Object]"===Object.prototype.toString.call(O),x=a()("".concat(n,"-inner"),(y={},b="".concat(n,"-circle-gradient"),g=w,b in y?Object.defineProperty(y,b,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[b]=g,y));return r.createElement("div",{className:x,style:h},r.createElement(Pe,{percent:ke(e),strokeWidth:v,trailWidth:v,strokeColor:O,strokeLinecap:u,trailColor:c,prefixCls:n,gapDegree:t,gapPosition:m}),p)};var Ne=function(e){for(var t,n,o,i=e.size,c=e.steps,u=e.percent,s=void 0===u?0:u,l=e.strokeWidth,f=void 0===l?8:l,p=e.strokeColor,d=e.prefixCls,h=e.children,v=Math.floor(c*(s/100)),m="small"===i?2:14,y=[],b=0;b<c;b+=1)y.push(r.createElement("div",{key:b,className:a()("".concat(d,"-steps-item"),(t={},n="".concat(d,"-steps-item-active"),o=b<=v-1,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t)),style:{backgroundColor:b<=v-1?p:void 0,width:m,height:f}}));return r.createElement("div",{className:"".concat(d,"-steps-outer")},y,h)};function Te(e){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(){return(Re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Le(e,t){return(Le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=He(e);if(t){var o=He(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ze(this,n)}}function ze(e,t){return!t||"object"!==Te(t)&&"function"!=typeof t?Be(e):t}function Be(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function He(e){return(He=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ke=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Ve=(Object(ie.a)("line","circle","dashboard"),Object(ie.a)("normal","exception","active","success")),Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Le(e,t)}(c,e);var t,n,o,i=Fe(c);function c(){var e;return De(this,c),(e=i.apply(this,arguments)).renderProgress=function(t){var n,o,i=t.getPrefixCls,c=t.direction,u=Be(e).props,s=u.prefixCls,l=u.className,f=u.size,p=u.type,d=u.steps,h=u.showInfo,v=u.strokeColor,m=Ke(u,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),y=i("progress",s),b=e.getProgressStatus(),g=e.renderProcessInfo(y,b);Object(ae.a)(!("successPercent"in u),"Progress","`successPercent` is deprecated. Please use `success` instead."),"line"===p?o=d?r.createElement(Ne,Re({},e.props,{strokeColor:"string"==typeof v?v:void 0,prefixCls:y,steps:d}),g):r.createElement(fe,Re({},e.props,{prefixCls:y}),g):"circle"!==p&&"dashboard"!==p||(o=r.createElement(Me,Re({},e.props,{prefixCls:y,progressStatus:b}),g));var O=a()(y,(Ae(n={},"".concat(y,"-").concat(("dashboard"===p?"circle":d&&"steps")||p),!0),Ae(n,"".concat(y,"-status-").concat(b),!0),Ae(n,"".concat(y,"-show-info"),h),Ae(n,"".concat(y,"-").concat(f),f),Ae(n,"".concat(y,"-rtl"),"rtl"===c),n),l);return r.createElement("div",Re({},Object(Y.default)(m,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:O}),o)},e}return t=c,(n=[{key:"getPercentNumber",value:function(){var e=this.props,t=e.percent,n=void 0===t?0:t,r=e.success,o=this.props.successPercent;return r&&"progress"in r&&(o=r.progress),r&&"percent"in r&&(o=r.percent),parseInt(void 0!==o?o.toString():n.toString(),10)}},{key:"getProgressStatus",value:function(){var e=this.props.status;return Ve.indexOf(e)<0&&this.getPercentNumber()>=100?"success":e||"normal"}},{key:"renderProcessInfo",value:function(e,t){var n,o=this.props,i=o.showInfo,a=o.format,c=o.type,u=o.percent,s=o.success,l=this.props.successPercent;if(s&&"progress"in s&&(Object(ae.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),l=s.progress),s&&"percent"in s&&(l=s.percent),!i)return null;var f="line"===c;return a||"exception"!==t&&"success"!==t?n=(a||function(e){return"".concat(e,"%")})(ce(u),ce(l)):"exception"===t?n=f?r.createElement(re.a,null):r.createElement(Z.a,null):"success"===t&&(n=f?r.createElement(te.a,null):r.createElement(Q.a,null)),r.createElement("span",{className:"".concat(e,"-text"),title:"string"==typeof n?n:void 0},n)}},{key:"render",value:function(){return r.createElement(oe.a,null,this.renderProgress)}}])&&Ie(t.prototype,n),o&&Ie(t,o),c}(r.Component);Ue.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var We=Ue,qe=n(84);function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(){return(Ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,t){return(Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tt(e);if(t){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return et(this,n)}}function et(e,t){return!t||"object"!==Ge(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tt(e){return(tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Je(e,t)}(c,e);var t,n,o,i=Qe(c);function c(){var e;return Xe(this,c),(e=i.apply(this,arguments)).handlePreview=function(t,n){var r=e.props.onPreview;if(r)return n.preventDefault(),r(t)},e.handleDownload=function(t){var n=e.props.onDownload;"function"==typeof n?n(t):t.url&&window.open(t.url)},e.handleClose=function(t){var n=e.props.onRemove;n&&n(t)},e.handleIconRender=function(t){var n=e.props,o=n.listType,i=n.locale,a=n.iconRender,c=n.isImageUrl;if(a)return a(t,o);var u="uploading"===t.status,s=c&&c(t)?r.createElement(R.a,null):r.createElement(I.a,null),l=u?r.createElement(M.a,null):r.createElement(T.a,null);return"picture"===o?l=u?r.createElement(M.a,null):s:"picture-card"===o&&(l=u?i.uploading:s),l},e.handleActionIconRender=function(e,t,n,o){var i={type:"text",size:"small",title:o,onClick:function(n){t(),Object(V.b)(e)&&e.props.onClick&&e.props.onClick(n)},className:"".concat(n,"-list-item-card-actions-btn")};if(Object(V.b)(e)){var a=Object(V.a)(e,Ye(Ye({},e.props),{onClick:function(){}}));return r.createElement(qe.a,Ye({},i,{icon:a}))}return r.createElement(qe.a,i,r.createElement("span",null,e))},e.renderUploadList=function(t){var n,o=t.getPrefixCls,i=t.direction,c=e.props,u=c.prefixCls,s=c.items,l=void 0===s?[]:s,f=c.listType,p=c.showPreviewIcon,d=c.showRemoveIcon,h=c.showDownloadIcon,v=c.removeIcon,m=c.downloadIcon,y=c.locale,b=c.progress,g=c.isImageUrl,O=o("upload",u),w=l.map((function(t){var n,o,i,c=e.handleIconRender(t),u=r.createElement("div",{className:"".concat(O,"-text-icon")},c);if("picture"===f||"picture-card"===f)if("uploading"===t.status||!t.thumbUrl&&!t.url){var s,l=a()(($e(s={},"".concat(O,"-list-item-thumbnail"),!0),$e(s,"".concat(O,"-list-item-file"),"uploading"!==t.status),s));u=r.createElement("div",{className:l},c)}else{var w,x=g&&g(t)?r.createElement("img",{src:t.thumbUrl||t.url,alt:t.name,className:"".concat(O,"-list-item-image")}):c,j=a()(($e(w={},"".concat(O,"-list-item-thumbnail"),!0),$e(w,"".concat(O,"-list-item-file"),g&&!g(t)),w));u=r.createElement("a",{className:j,onClick:function(n){return e.handlePreview(t,n)},href:t.url||t.thumbUrl,target:"_blank",rel:"noopener noreferrer"},x)}if("uploading"===t.status){var E="percent"in t?r.createElement(We,Ye({},b,{type:"line",percent:t.percent})):null;i=r.createElement("div",{className:"".concat(O,"-list-item-progress"),key:"progress"},E)}var S,_=a()(($e(n={},"".concat(O,"-list-item"),!0),$e(n,"".concat(O,"-list-item-").concat(t.status),!0),$e(n,"".concat(O,"-list-item-list-type-").concat(f),!0),n)),C="string"==typeof t.linkProps?JSON.parse(t.linkProps):t.linkProps,k=d?e.handleActionIconRender(v||r.createElement(B.a,null),(function(){return e.handleClose(t)}),O,y.removeFile):null,M=h&&"done"===t.status?e.handleActionIconRender(m||r.createElement(K.a,null),(function(){return e.handleDownload(t)}),O,y.downloadFile):null,N="picture-card"!==f&&r.createElement("span",{key:"download-delete",className:"".concat(O,"-list-item-card-actions ").concat("picture"===f?"picture":"")},M,k),T=a()(($e(o={},"".concat(O,"-list-item-name"),!0),$e(o,"".concat(O,"-list-item-name-icon-count-").concat([M,k].filter((function(e){return e})).length),!0),o)),A=t.url?[r.createElement("a",Ye({key:"view",target:"_blank",rel:"noopener noreferrer",className:T,title:t.name},C,{href:t.url,onClick:function(n){return e.handlePreview(t,n)}}),t.name),N]:[r.createElement("span",{key:"view",className:T,onClick:function(n){return e.handlePreview(t,n)},title:t.name},t.name),N],R=p?r.createElement("a",{href:t.url||t.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:t.url||t.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(n){return e.handlePreview(t,n)},title:y.previewFile},r.createElement(F.a,null)):null,D="picture-card"===f&&"uploading"!==t.status&&r.createElement("span",{className:"".concat(O,"-list-item-actions")},R,"done"===t.status&&M,k);S=t.response&&"string"==typeof t.response?t.response:t.error&&t.error.statusText||y.uploadError;var I=r.createElement("span",null,u,A),L=r.createElement("div",{className:_},r.createElement("div",{className:"".concat(O,"-list-item-info")},I),D,r.createElement(P.a,{transitionName:"fade",component:""},i)),z=a()($e({},"".concat(O,"-list-picture-card-container"),"picture-card"===f));return r.createElement("div",{key:t.uid,className:z},"error"===t.status?r.createElement($.a,{title:S,getPopupContainer:function(e){return e.parentNode}},L):r.createElement("span",null,L))})),x=a()(($e(n={},"".concat(O,"-list"),!0),$e(n,"".concat(O,"-list-").concat(f),!0),$e(n,"".concat(O,"-list-rtl"),"rtl"===i),n)),j="picture-card"===f?"animate-inline":"animate";return r.createElement(P.a,{transitionName:"".concat(O,"-").concat(j),component:"div",className:x},w)},e}return t=c,(n=[{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.listType,r=t.items,o=t.previewFile;"picture"!==n&&"picture-card"!==n||(r||[]).forEach((function(t){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(t.thumbUrl="",o&&o(t.originFileObj).then((function(n){t.thumbUrl=n||"",e.forceUpdate()})))}))}},{key:"render",value:function(){return r.createElement(oe.a,null,this.renderUploadList)}}])&&Ze(t.prototype,n),o&&Ze(t,o),c}(r.Component);nt.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(e){return new Promise((function(t){if(e.type&&G(e.type)){var n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var r=n.getContext("2d"),o=new Image;o.onload=function(){var e=o.width,i=o.height,a=200,c=200,u=0,s=0;e<i?s=-((c=i*(200/e))-a)/2:u=-((a=e*(200/i))-c)/2,r.drawImage(o,u,s,a,c);var l=n.toDataURL();document.body.removeChild(n),t(l)},o.src=window.URL.createObjectURL(e)}else t("")}))},isImageUrl:function(e){if(e.type)return G(e.type);var t=e.thumbUrl||e.url,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),n=t[t.length-1],r=n.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n}};var rt=n(296),ot=n(361);function it(e){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ct(e){return function(e){if(Array.isArray(e))return ut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ut(e,t)}(e)||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 ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function st(){return(st=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ft(e,t){return(ft=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ht(e);if(t){var o=ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dt(this,n)}}function dt(e,t){return!t||"object"!==it(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ft(e,t)}(c,e);var t,n,o,i=pt(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,e)).saveUpload=function(e){t.upload=e},t.onStart=function(e){var n=t.state.fileList,r=W(e);r.status="uploading";var o=n.concat(),i=o.findIndex((function(e){return e.uid===r.uid}));-1===i?o.push(r):o[i]=r,t.onChange({file:r,fileList:o})},t.onSuccess=function(e,n,r){t.clearProgressTimer();try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}var o=t.state.fileList,i=q(n,o);i&&(i.status="done",i.response=e,i.xhr=r,t.onChange({file:st({},i),fileList:o}))},t.onProgress=function(e,n){var r=t.state.fileList,o=q(n,r);o&&(o.percent=e.percent,t.onChange({event:e,file:st({},o),fileList:r}))},t.onError=function(e,n,r){t.clearProgressTimer();var o=t.state.fileList,i=q(r,o);i&&(i.error=e,i.response=n,i.status="error",t.onChange({file:st({},i),fileList:o}))},t.handleRemove=function(e){var n=t.props.onRemove,r=t.state.fileList;Promise.resolve("function"==typeof n?n(e):n).then((function(n){if(!1!==n){var o=function(e,t){var n=void 0!==e.uid?"uid":"name",r=t.filter((function(t){return t[n]!==e[n]}));return r.length===t.length?null:r}(e,r);o&&(e.status="removed",t.upload&&t.upload.abort(e),t.onChange({file:e,fileList:o}))}}))},t.onChange=function(e){"fileList"in t.props||t.setState({fileList:e.fileList});var n=t.props.onChange;n&&n(st(st({},e),{fileList:ct(e.fileList)}))},t.onFileDrop=function(e){t.setState({dragState:e.type})},t.beforeUpload=function(e,n){var r=t.props.beforeUpload,o=t.state.fileList;if(!r)return!0;var i=r(e,n);if(!1===i){var a=[];return o.concat(n.map(W)).forEach((function(e){a.every((function(t){return t.uid!==e.uid}))&&a.push(e)})),t.onChange({file:e,fileList:a}),!1}return!i||!i.then||i},t.renderUploadList=function(e){var n=t.props,o=n.showUploadList,i=n.listType,a=n.onPreview,c=n.onDownload,u=n.previewFile,s=n.disabled,l=n.locale,f=n.iconRender,p=n.isImageUrl,d=n.progress,h=o.showRemoveIcon,v=o.showPreviewIcon,m=o.showDownloadIcon,y=o.removeIcon,b=o.downloadIcon,g=t.state.fileList;return r.createElement(nt,{listType:i,items:g,previewFile:u,onPreview:a,onDownload:c,onRemove:t.handleRemove,showRemoveIcon:!s&&h,showPreviewIcon:v,showDownloadIcon:m,removeIcon:y,downloadIcon:b,iconRender:f,locale:st(st({},e),l),isImageUrl:p,progress:d})},t.renderUpload=function(e){var n,o=e.getPrefixCls,i=e.direction,c=t.props,u=c.prefixCls,s=c.className,l=c.showUploadList,f=c.listType,p=c.type,d=c.disabled,h=c.children,v=c.style,m=t.state,y=m.fileList,b=m.dragState,g=o("upload",u),O=st(st({onStart:t.onStart,onError:t.onError,onProgress:t.onProgress,onSuccess:t.onSuccess},t.props),{prefixCls:g,beforeUpload:t.beforeUpload});delete O.className,delete O.style,h&&!d||delete O.id;var w=l?r.createElement(rt.a,{componentName:"Upload",defaultLocale:ot.a.Upload},t.renderUploadList):null;if("drag"===p){var x,j=a()(g,(at(x={},"".concat(g,"-drag"),!0),at(x,"".concat(g,"-drag-uploading"),y.some((function(e){return"uploading"===e.status}))),at(x,"".concat(g,"-drag-hover"),"dragover"===b),at(x,"".concat(g,"-disabled"),d),at(x,"".concat(g,"-rtl"),"rtl"===i),x),s);return r.createElement("span",null,r.createElement("div",{className:j,onDrop:t.onFileDrop,onDragOver:t.onFileDrop,onDragLeave:t.onFileDrop,style:v},r.createElement(C,st({},O,{ref:t.saveUpload,className:"".concat(g,"-btn")}),r.createElement("div",{className:"".concat(g,"-drag-container")},h))),w)}var E=a()(g,(at(n={},"".concat(g,"-select"),!0),at(n,"".concat(g,"-select-").concat(f),!0),at(n,"".concat(g,"-disabled"),d),at(n,"".concat(g,"-rtl"),"rtl"===i),n)),S=r.createElement("div",{className:E,style:h?void 0:{display:"none"}},r.createElement(C,st({},O,{ref:t.saveUpload})));return"picture-card"===f?r.createElement("span",{className:a()(s,"".concat(g,"-picture-card-wrapper"))},w,S):r.createElement("span",{className:s},S,w)},t.state={fileList:e.fileList||e.defaultFileList||[],dragState:"drop"},Object(ae.a)("fileList"in e||!("value"in e),"Upload","`value` is not a valid prop, do you mean `fileList`?"),t}return t=c,o=[{key:"getDerivedStateFromProps",value:function(e){return"fileList"in e?{fileList:e.fileList||[]}:null}}],(n=[{key:"componentWillUnmount",value:function(){this.clearProgressTimer()}},{key:"clearProgressTimer",value:function(){clearInterval(this.progressTimer)}},{key:"render",value:function(){return r.createElement(oe.a,null,this.renderUpload)}}])&<(t.prototype,n),o&<(t,o),c}(r.Component);vt.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:function(){return!0},showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var mt=vt;function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bt(){return(bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wt(e,t){return(wt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Et(e);if(t){var o=Et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jt(this,n)}}function jt(e,t){return!t||"object"!==yt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Et(e){return(Et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var St=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},_t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wt(e,t)}(a,e);var t,n,o,i=xt(a);function a(){return gt(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.style,n=e.height,o=St(e,["style","height"]);return r.createElement(mt,bt({},o,{type:"drag",style:bt(bt({},t),{height:n})}))}}])&&Ot(t.prototype,n),o&&Ot(t,o),a}(r.Component);mt.Dragger=_t;t.a=mt},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(89),c=n(196);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},l=function(e){return r.createElement(c.a,null,(function(t){var n,o,a,c=t.getPrefixCls,l=e.prefixCls,f=e.className,p=e.hoverable,d=void 0===p||p,h=s(e,["prefixCls","className","hoverable"]),v=c("card",l),m=i()("".concat(v,"-grid"),f,(n={},o="".concat(v,"-grid-hoverable"),a=d,o in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n));return r.createElement("div",u({},h,{className:m}))}))};function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d=function(e){return r.createElement(c.a,null,(function(t){var n=t.getPrefixCls,o=e.prefixCls,a=e.className,c=e.avatar,u=e.title,s=e.description,l=p(e,["prefixCls","className","avatar","title","description"]),d=n("card",o),h=i()("".concat(d,"-meta"),a),v=c?r.createElement("div",{className:"".concat(d,"-meta-avatar")},c):null,m=u?r.createElement("div",{className:"".concat(d,"-meta-title")},u):null,y=s?r.createElement("div",{className:"".concat(d,"-meta-description")},s):null,b=m||y?r.createElement("div",{className:"".concat(d,"-meta-detail")},m,y):null;return r.createElement("div",f({},l,{className:h}),v,b)}))},h=n(28),v=n(76),m=n(6),y=n(210),b=n(407),g=n(32),O=n(109),w=n.n(O),x=n(253);function j(e){var t=Object(r.useRef)(),n=Object(r.useRef)(!1);return Object(r.useEffect)((function(){return function(){n.current=!0,w.a.cancel(t.current)}}),[]),function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];n.current||(w.a.cancel(t.current),t.current=w()((function(){e.apply(void 0,o)})))}}var E=n(41);var S=r.forwardRef((function(e,t){var n,o=e.prefixCls,a=e.id,c=e.active,u=e.rtl,s=e.tab,l=s.key,f=s.tab,p=s.disabled,d=s.closeIcon,h=e.tabBarGutter,v=e.tabPosition,y=e.closable,b=e.renderWrapper,g=e.removeAriaLabel,O=e.editable,w=e.onClick,x=e.onRemove,j=e.onFocus,S="".concat(o,"-tab");r.useEffect((function(){return x}),[]);var _={};"top"===v||"bottom"===v?_[u?"marginLeft":"marginRight"]=h:_.marginBottom=h;var C=O&&!1!==y&&!p;function P(e){p||w(e)}var k=r.createElement("div",{key:l,ref:t,className:i()(S,(n={},Object(m.a)(n,"".concat(S,"-with-remove"),C),Object(m.a)(n,"".concat(S,"-active"),c),Object(m.a)(n,"".concat(S,"-disabled"),p),n)),style:_,onClick:P},r.createElement("div",{role:"tab","aria-selected":c,id:a&&"".concat(a,"-tab-").concat(l),className:"".concat(S,"-btn"),"aria-controls":a&&"".concat(a,"-panel-").concat(l),"aria-disabled":p,tabIndex:p?null:0,onClick:function(e){e.stopPropagation(),P(e)},onKeyDown:function(e){[E.a.SPACE,E.a.ENTER].includes(e.which)&&(e.preventDefault(),P(e))},onFocus:j},f),C&&r.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(S,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),O.onEdit("remove",{key:l,event:t})}},d||O.removeIcon||"×"));return b&&(k=b(k)),k}));function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){Object(m.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P={width:0,height:0,left:0,top:0};var k={width:0,height:0,left:0,top:0,right:0};var M=n(921),N=n(671);var T=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));var A=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,a=e.tabs,c=e.locale,u=e.mobile,s=e.moreIcon,l=void 0===s?"More":s,f=e.moreTransitionName,p=e.style,d=e.className,v=e.editable,y=e.tabBarGutter,b=e.rtl,g=e.onTabClick,O=Object(r.useState)(!1),w=Object(h.a)(O,2),x=w[0],j=w[1],S=Object(r.useState)(null),_=Object(h.a)(S,2),C=_[0],P=_[1],k="".concat(o,"-more-popup"),A="".concat(n,"-dropdown"),R=null!==C?"".concat(k,"-").concat(C):null,D=null==c?void 0:c.dropdownAriaLabel,I=r.createElement(M.b,{onClick:function(e){var t=e.key,n=e.domEvent;g(t,n),j(!1)},id:k,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[C],"aria-label":void 0!==D?D:"expanded dropdown"},a.map((function(e){return r.createElement(M.a,{key:e.key,id:"".concat(k,"-").concat(e.key),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function L(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===C}))||0,r=t.length,o=0;o<r;o+=1){var i=t[n=(n+e+r)%r];if(!i.disabled)return void P(i.key)}}Object(r.useEffect)((function(){var e=document.getElementById(R);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[C]),Object(r.useEffect)((function(){x||P(null)}),[x]);var F=Object(m.a)({},b?"marginLeft":"marginRight",y);a.length||(F.visibility="hidden",F.order=1);var z=i()(Object(m.a)({},"".concat(A,"-rtl"),b)),B=u?null:r.createElement(N.default,{prefixCls:A,overlay:I,trigger:["hover"],visible:x,transitionName:f,onVisibleChange:j,overlayClassName:z},r.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:F,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":k,id:"".concat(o,"-more"),"aria-expanded":x,onKeyDown:function(e){var t=e.which;if(x)switch(t){case E.a.UP:L(-1),e.preventDefault();break;case E.a.DOWN:L(1),e.preventDefault();break;case E.a.ESC:j(!1);break;case E.a.SPACE:case E.a.ENTER:null!==C&&g(C,e)}else[E.a.DOWN,E.a.SPACE,E.a.ENTER].includes(t)&&(j(!0),e.preventDefault())}},l));return r.createElement("div",{className:i()("".concat(n,"-nav-operations"),d),style:p,ref:t},B,r.createElement(T,{prefixCls:n,locale:c,editable:v}))})),R=Object(r.createContext)(null),D=Math.pow(.995,20);function I(e,t){var n=r.useRef(e),o=r.useState({}),i=Object(h.a)(o,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){Object(m.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z=r.forwardRef((function(e,t){var n,o,a=r.useContext(R),c=a.prefixCls,u=a.tabs,s=e.className,l=e.style,f=e.id,p=e.animated,d=e.activeKey,v=e.rtl,y=e.extra,b=e.editable,O=e.locale,E=e.tabPosition,_=e.tabBarGutter,M=e.children,N=e.onTabClick,L=e.onTabScroll,z=Object(r.useRef)(),B=Object(r.useRef)(),H=Object(r.useRef)(),K=Object(r.useRef)(),V=(o=Object(r.useRef)(new Map),[function(e){return o.current.has(e)||o.current.set(e,r.createRef()),o.current.get(e)},function(e){o.current.delete(e)}]),U=Object(h.a)(V,2),W=U[0],q=U[1],G="top"===E||"bottom"===E,$=I(0,(function(e,t){G&&L&&L({direction:e>t?"left":"right"})})),Y=Object(h.a)($,2),X=Y[0],Z=Y[1],J=I(0,(function(e,t){!G&&L&&L({direction:e>t?"top":"bottom"})})),Q=Object(h.a)(J,2),ee=Q[0],te=Q[1],ne=Object(r.useState)(0),re=Object(h.a)(ne,2),oe=re[0],ie=re[1],ae=Object(r.useState)(0),ce=Object(h.a)(ae,2),ue=ce[0],se=ce[1],le=Object(r.useState)(null),fe=Object(h.a)(le,2),pe=fe[0],de=fe[1],he=Object(r.useState)(null),ve=Object(h.a)(he,2),me=ve[0],ye=ve[1],be=function(e){var t=Object(r.useRef)([]),n=Object(r.useState)({}),o=Object(h.a)(n,2)[1],i=Object(r.useRef)("function"==typeof e?e():e),a=j((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,o({})}));return[i.current,function(e){t.current.push(e),a()}]}(new Map),ge=Object(h.a)(be,2),Oe=ge[0],we=ge[1],xe=function(e,t,n){return Object(r.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||P,i=o.left+o.width,a=0;a<e.length;a+=1){var c,u=e[a].key,s=t.get(u);if(!s)s=t.get(null===(c=e[a-1])||void 0===c?void 0:c.key)||P;var l=r.get(u)||C({},s);l.right=i-l.left-l.width,r.set(u,l)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(u,Oe,oe),je="".concat(c,"-nav-operations-hidden"),Ee=0,Se=0;function _e(e){return e<Ee?[Ee,!1]:e>Se?[Se,!1]:[e,!0]}G?v?(Ee=0,Se=Math.max(0,oe-pe)):(Ee=Math.min(0,pe-oe),Se=0):(Ee=Math.min(0,me-ue),Se=0);var Ce=Object(r.useRef)(),Pe=Object(r.useState)(),ke=Object(h.a)(Pe,2),Me=ke[0],Ne=ke[1];function Te(){Ne(Date.now())}function Ae(){window.clearTimeout(Ce.current)}function Re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=xe.get(e);if(t)if(G){var n=X;v?t.right<X?n=t.right:t.right+t.width>X+pe&&(n=t.right+t.width-pe):t.left<-X?n=-t.left:t.left+t.width>-X+pe&&(n=-(t.left+t.width-pe)),te(0),Z(_e(n)[0])}else{var r=ee;t.top<-ee?r=-t.top:t.top+t.height>-ee+me&&(r=-(t.top+t.height-me)),Z(0),te(_e(r)[0])}}!function(e,t){var n=Object(r.useState)(),o=Object(h.a)(n,2),i=o[0],a=o[1],c=Object(r.useState)(0),u=Object(h.a)(c,2),s=u[0],l=u[1],f=Object(r.useState)(0),p=Object(h.a)(f,2),d=p[0],v=p[1],m=Object(r.useState)(),y=Object(h.a)(m,2),b=y[0],g=y[1],O=Object(r.useRef)(),w=Object(r.useRef)(0),x=Object(r.useRef)(0),j=Object(r.useRef)(!1),E=Object(r.useRef)(),S=Object(r.useRef)(null);S.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(O.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],r=n.screenX,o=n.screenY;a({x:r,y:o});var c=r-i.x,u=o-i.y;t(c,u);var f=Date.now();l(f),v(f-s),g({x:c,y:u})}},onTouchEnd:function(){if(i&&(a(null),g(null),b)){var e=b.x/d,n=b.y/d,r=Math.abs(e),o=Math.abs(n);if(Math.max(r,o)<.1)return;var c=e,u=n;O.current=window.setInterval((function(){Math.abs(c)<.01&&Math.abs(u)<.01?window.clearInterval(O.current):t(20*(c*=D),20*(u*=D))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===E.current?n:r:i>a?(o=n,E.current="x"):(o=r,E.current="y");var c=Date.now(),u=Math.abs(o);(c-x.current>100||u-w.current>10)&&(j.current=!1),(t(-o,-o)||j.current)&&(e.preventDefault(),j.current=!0),x.current=c,w.current=u}},r.useEffect((function(){function t(e){S.current.onTouchMove(e)}function n(e){S.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){S.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){S.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(z,(function(e,t){var n=!1;function r(e,t){e((function(e){var r=_e(e+t),o=Object(h.a)(r,2),i=o[0],a=o[1];return n=a,i}))}if(G){if(pe>=oe)return n;r(Z,e)}else{if(me>=ue)return n;r(te,t)}return Ae(),Te(),n})),Object(r.useEffect)((function(){return Ae(),Me&&(Ce.current=window.setTimeout((function(){Ne(0)}),100)),Ae}),[Me]);var De=function(e,t,n){var o,i,a,c=n.tabs,u=n.tabPosition,s=n.rtl;["top","bottom"].includes(u)?(o="width",i=s?"right":"left",a=Math.abs(t.left)):(o="height",i="top",a=-t.top);var l=t[o];return Object(r.useMemo)((function(){if(!c.length)return[0,0];for(var t=c.length,n=t,r=0;r<t;r+=1){var u=e.get(c[r].key)||k;if(u[i]+u[o]>a+l){n=r-1;break}}for(var s=0,f=t-1;f>=0;f-=1){if((e.get(c[f].key)||k)[i]<a){s=f+1;break}}return[s,n]}),[e,a,l,u,c.map((function(e){return e.key})).join("_"),s])}(xe,{width:pe,height:me,left:X,top:ee},F(F({},e),{},{tabs:u})),Ie=Object(h.a)(De,2),Le=Ie[0],Fe=Ie[1];function ze(e){var t,n,r=(null===(t=K.current)||void 0===t?void 0:t[e])||0,o=0;return(null===(n=H.current)||void 0===n?void 0:n.className.includes(je))&&(o=H.current[e]),r+o}var Be=u.map((function(e){var t=e.key;return r.createElement(S,{id:f,prefixCls:c,key:t,rtl:v,tab:e,closable:e.closable,editable:b,active:t===d,tabPosition:E,tabBarGutter:_,renderWrapper:M,removeAriaLabel:null==O?void 0:O.removeAriaLabel,ref:W(t),onClick:function(e){N(t,e)},onRemove:function(){q(t)},onFocus:function(){Re(t),Te(),v||(z.current.scrollLeft=0),z.current.scrollTop=0}})})),He=j((function(){var e,t,n,r,o=(null===(e=z.current)||void 0===e?void 0:e.offsetWidth)||0,i=(null===(t=z.current)||void 0===t?void 0:t.offsetHeight)||0;de(o),ye(i),ie(((null===(n=B.current)||void 0===n?void 0:n.offsetWidth)||0)-ze("offsetWidth")),se(((null===(r=B.current)||void 0===r?void 0:r.offsetHeight)||0)-ze("offsetHeight")),we((function(){var e=new Map;return u.forEach((function(t){var n=t.key,r=W(n).current;e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),Ke=u.slice(0,Le),Ve=u.slice(Fe+1),Ue=[].concat(Object(g.a)(Ke),Object(g.a)(Ve)),We=Object(r.useState)(),qe=Object(h.a)(We,2),Ge=qe[0],$e=qe[1],Ye=xe.get(d),Xe=Object(r.useRef)();function Ze(){w.a.cancel(Xe.current)}Object(r.useEffect)((function(){var e={};return Ye&&(G?(v?e.right=Ye.right:e.left=Ye.left,e.width=Ye.width):(e.top=Ye.top,e.height=Ye.height)),Ze(),Xe.current=w()((function(){$e(e)})),Ze}),[Ye,G,v]),Object(r.useEffect)((function(){Re()}),[d,Ye,xe,G]),Object(r.useEffect)((function(){He()}),[v,_,d,u.map((function(e){return e.key})).join("_")]);var Je,Qe,et,tt,nt=!!Ue.length,rt="".concat(c,"-nav-wrap");return G?v?(Qe=X>0,Je=X+pe<oe):(Je=X<0,Qe=-X+pe<oe):(et=ee<0,tt=-ee+me<ue),r.createElement("div",{ref:t,role:"tablist",className:i()("".concat(c,"-nav"),s),style:l,onKeyDown:function(){Te()}},r.createElement(x.default,{onResize:He},r.createElement("div",{className:i()(rt,(n={},Object(m.a)(n,"".concat(rt,"-ping-left"),Je),Object(m.a)(n,"".concat(rt,"-ping-right"),Qe),Object(m.a)(n,"".concat(rt,"-ping-top"),et),Object(m.a)(n,"".concat(rt,"-ping-bottom"),tt),n)),ref:z},r.createElement(x.default,{onResize:He},r.createElement("div",{ref:B,className:"".concat(c,"-nav-list"),style:{transform:"translate(".concat(X,"px, ").concat(ee,"px)"),transition:Me?"none":void 0}},Be,!nt&&r.createElement(T,{ref:K,prefixCls:c,locale:O,editable:b}),r.createElement("div",{className:i()("".concat(c,"-ink-bar"),Object(m.a)({},"".concat(c,"-ink-bar-animated"),p.inkBar)),style:Ge}))))),r.createElement(A,Object.assign({},e,{ref:H,prefixCls:c,tabs:Ue,className:!nt&&je})),y&&r.createElement("div",{className:"".concat(c,"-extra-content")},y))}));function B(e){var t=e.id,n=e.activeKey,o=e.animated,a=e.tabPosition,c=e.rtl,u=e.destroyInactiveTabPane,s=r.useContext(R),l=s.prefixCls,f=s.tabs,p=o.tabPane,d=f.findIndex((function(e){return e.key===n}));return r.createElement("div",{className:i()("".concat(l,"-content-holder"))},r.createElement("div",{className:i()("".concat(l,"-content"),"".concat(l,"-content-").concat(a),Object(m.a)({},"".concat(l,"-content-animated"),p)),style:d&&p?Object(m.a)({},c?"marginRight":"marginLeft","-".concat(d,"00%")):null},f.map((function(e){return r.cloneElement(e.node,{key:e.key,prefixCls:l,tabKey:e.key,id:t,animated:p,active:e.key===n,destroyInactiveTabPane:u})}))))}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){Object(m.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e){var t=e.prefixCls,n=e.forceRender,o=e.className,a=e.style,c=e.id,u=e.active,s=e.animated,l=e.destroyInactiveTabPane,f=e.tabKey,p=e.children,d=r.useState(n),v=Object(h.a)(d,2),m=v[0],y=v[1];r.useEffect((function(){u?y(!0):l&&y(!1)}),[u,l]);var b={};return u||(s?(b.visibility="hidden",b.height=0,b.overflowY="hidden"):b.display="none"),r.createElement("div",{id:c&&"".concat(c,"-panel-").concat(f),role:"tabpanel",tabIndex:u?0:-1,"aria-labelledby":c&&"".concat(c,"-tab-").concat(f),"aria-hidden":!u,style:K(K({},b),a),className:i()("".concat(t,"-tabpane"),u&&"".concat(t,"-tabpane-active"),o)},(u||m||n)&&p)}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){Object(m.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q=0;var G=r.forwardRef((function(e,t){var n,o,a=e.id,c=e.prefixCls,u=void 0===c?"rc-tabs":c,s=e.className,l=e.children,f=e.direction,p=e.activeKey,d=e.defaultActiveKey,g=e.editable,O=e.animated,w=e.tabPosition,x=void 0===w?"top":w,j=e.tabBarGutter,E=e.tabBarStyle,S=e.tabBarExtraContent,_=e.locale,C=e.moreIcon,P=e.moreTransitionName,k=e.destroyInactiveTabPane,M=e.renderTabBar,N=e.onChange,T=e.onTabClick,A=e.onTabScroll,D=Object(v.a)(e,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),I=function(e){return Object(y.a)(e).map((function(e){return r.isValidElement(e)?W(W({key:void 0!==e.key?String(e.key):void 0},e.props),{},{node:e}):null})).filter((function(e){return e}))}(l),L="rtl"===f;o=!1===O?{inkBar:!1,tabPane:!1}:W({inkBar:!0,tabPane:!1},!0!==O?O:null);var F=Object(r.useState)(!1),H=Object(h.a)(F,2),K=H[0],V=H[1];Object(r.useEffect)((function(){var e;V((e=navigator.userAgent||navigator.vendor||window.opera,!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))))}),[]);var U=Object(b.a)((function(){var e;return null===(e=I[0])||void 0===e?void 0:e.key}),{value:p,defaultValue:d}),G=Object(h.a)(U,2),$=G[0],Y=G[1],X=Object(r.useState)((function(){return I.findIndex((function(e){return e.key===$}))})),Z=Object(h.a)(X,2),J=Z[0],Q=Z[1];Object(r.useEffect)((function(){var e,t=I.findIndex((function(e){return e.key===$}));-1===t&&(t=Math.max(0,Math.min(J,I.length-1)),Y(null===(e=I[t])||void 0===e?void 0:e.key));Q(t)}),[I.map((function(e){return e.key})).join("_"),$,J]);var ee=Object(b.a)(null,{value:a}),te=Object(h.a)(ee,2),ne=te[0],re=te[1],oe=x;K&&!["left","right"].includes(x)&&(oe="top"),Object(r.useEffect)((function(){a||(re("rc-tabs-".concat(q)),q+=1)}),[]);var ie,ae={id:ne,activeKey:$,animated:o,tabPosition:oe,rtl:L,mobile:K},ce=W(W({},ae),{},{editable:g,locale:_,moreIcon:C,moreTransitionName:P,tabBarGutter:j,onTabClick:function(e,t){null==T||T(e,t),Y(e),null==N||N(e)},onTabScroll:A,extra:S,style:E,panes:l});return ie=M?M(ce,z):r.createElement(z,Object.assign({},ce)),r.createElement(R.Provider,{value:{tabs:I,prefixCls:u}},r.createElement("div",Object.assign({ref:t,id:a,className:i()(u,"".concat(u,"-").concat(oe),(n={},Object(m.a)(n,"".concat(u,"-mobile"),K),Object(m.a)(n,"".concat(u,"-editable"),g),Object(m.a)(n,"".concat(u,"-rtl"),L),n),s)},D),ie,r.createElement(B,Object.assign({destroyInactiveTabPane:k},ae,{animated:o}))))}));G.TabPane=V;var $=G,Y=n(663),X=n.n(Y),Z=n(605),J=n.n(Z),Q=n(224),ee=n.n(Q),te=n(91);function ne(){return(ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ie(e){var t,n,o=e.type,a=e.className,u=e.size,s=e.onEdit,l=e.hideAdd,f=e.centered,p=e.addIcon,d=oe(e,["type","className","size","onEdit","hideAdd","centered","addIcon"]),h=d.prefixCls,v=r.useContext(c.b),m=v.getPrefixCls,y=v.direction,b=m("tabs",h);return"editable-card"===o&&(n={onEdit:function(e,t){var n=t.key,r=t.event;null==s||s("add"===e?r:n,e)},removeIcon:r.createElement(ee.a,null),addIcon:p||r.createElement(J.a,null),showAdd:!0!==l}),Object(te.a)(!("onPrevClick"in d)&&!("onNextClick"in d),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),r.createElement($,ne({direction:y},d,{moreTransitionName:"slide-up",className:i()(a,(t={},re(t,"".concat(b,"-").concat(u),u),re(t,"".concat(b,"-card"),["card","editable-card"].includes(o)),re(t,"".concat(b,"-editable-card"),"editable-card"===o),re(t,"".concat(b,"-centered"),f),t)),editable:n,moreIcon:r.createElement(X.a,null),prefixCls:b}))}ie.TabPane=V;var ae=ie,ce=n(299),ue=n(212),se=n(155);function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fe(){return(fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var pe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var de=function(e){var t,n,o,u=r.useContext(c.b),s=u.getPrefixCls,f=u.direction,p=r.useContext(se.b),d=e.prefixCls,h=e.className,v=e.extra,m=e.headStyle,y=void 0===m?{}:m,b=e.bodyStyle,g=void 0===b?{}:b,O=e.title,w=e.loading,x=e.bordered,j=void 0===x||x,E=e.size,S=e.type,_=e.cover,C=e.actions,P=e.tabList,k=e.children,M=e.activeTabKey,N=e.defaultActiveTabKey,T=e.tabBarExtraContent,A=e.hoverable,R=e.tabProps,D=void 0===R?{}:R,I=pe(e,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),L=s("card",d),F=0===g.padding||"0px"===g.padding?{padding:24}:void 0,z=r.createElement("div",{className:"".concat(L,"-loading-block")}),B=r.createElement("div",{className:"".concat(L,"-loading-content"),style:F},r.createElement(ce.a,{gutter:8},r.createElement(ue.a,{span:22},z)),r.createElement(ce.a,{gutter:8},r.createElement(ue.a,{span:8},z),r.createElement(ue.a,{span:15},z)),r.createElement(ce.a,{gutter:8},r.createElement(ue.a,{span:6},z),r.createElement(ue.a,{span:18},z)),r.createElement(ce.a,{gutter:8},r.createElement(ue.a,{span:13},z),r.createElement(ue.a,{span:9},z)),r.createElement(ce.a,{gutter:8},r.createElement(ue.a,{span:4},z),r.createElement(ue.a,{span:3},z),r.createElement(ue.a,{span:16},z))),H=void 0!==M,K=fe(fe({},D),(le(t={},H?"activeKey":"defaultActiveKey",H?M:N),le(t,"tabBarExtraContent",T),t)),V=P&&P.length?r.createElement(ae,fe({size:"large"},K,{className:"".concat(L,"-head-tabs"),onChange:function(t){e.onTabChange&&e.onTabChange(t)}}),P.map((function(e){return r.createElement(ae.TabPane,{tab:e.tab,disabled:e.disabled,key:e.key})}))):null;(O||v||V)&&(o=r.createElement("div",{className:"".concat(L,"-head"),style:y},r.createElement("div",{className:"".concat(L,"-head-wrapper")},O&&r.createElement("div",{className:"".concat(L,"-head-title")},O),v&&r.createElement("div",{className:"".concat(L,"-extra")},v)),V));var U,W=_?r.createElement("div",{className:"".concat(L,"-cover")},_):null,q=r.createElement("div",{className:"".concat(L,"-body"),style:g},w?B:k),G=C&&C.length?r.createElement("ul",{className:"".concat(L,"-actions")},function(e){return e.map((function(t,n){return r.createElement("li",{style:{width:"".concat(100/e.length,"%")},key:"action-".concat(n)},r.createElement("span",null,t))}))}(C)):null,$=Object(a.default)(I,["onTabChange"]),Y=E||p,X=i()(L,h,(le(n={},"".concat(L,"-loading"),w),le(n,"".concat(L,"-bordered"),j),le(n,"".concat(L,"-hoverable"),A),le(n,"".concat(L,"-contain-grid"),(r.Children.forEach(e.children,(function(e){e&&e.type&&e.type===l&&(U=!0)})),U)),le(n,"".concat(L,"-contain-tabs"),P&&P.length),le(n,"".concat(L,"-").concat(Y),Y),le(n,"".concat(L,"-type-").concat(S),!!S),le(n,"".concat(L,"-rtl"),"rtl"===f),n));return r.createElement("div",fe({},$,{className:X}),o,W,q,G)};de.Grid=l,de.Meta=d;t.a=de},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(5),a=n.n(i),c=n(41),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){}function p(e){e.preventDefault()}var d=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,h=function(e){return null!=e},v=function(e,t){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));y.call(n);var r=void 0;r="value"in e?e.value:e.defaultValue,n.state={focused:e.autoFocus};var o=n.getValidValue(n.toNumber(r));return n.state=u({},n.state,{inputValue:n.toPrecisionAsStep(o),value:o}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),s(t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.onChange,o=t.max,i=t.min,a=this.state.focused;if(e){if(!v(e.value,n)||!v(e.max,o)||!v(e.min,i)){var u=a?n:this.getValidValue(n),s=void 0;s=this.pressingUpOrDown?u:this.inputting?this.rawInput:this.toPrecisionAsStep(u),this.setState({value:u,inputValue:s})}var l="value"in this.props?n:this.state.value;"max"in this.props&&e.max!==o&&"number"==typeof l&&l>o&&r&&r(o),"min"in this.props&&e.min!==i&&"number"==typeof l&&l<i&&r&&r(i)}try{if(void 0!==this.cursorStart&&this.state.focused)if(this.partRestoreByAfter(this.cursorAfter)||this.state.value===this.props.value){if(this.currentValue===this.input.value)switch(this.lastKeyCode){case c.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case c.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1)}}else{var f=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===c.a.BACKSPACE?f=this.cursorStart-1:this.lastKeyCode===c.a.DELETE&&(f=this.cursorStart):f=this.input.value.length,this.fixCaret(f,f)}}catch(e){}this.lastKeyCode=null,this.pressingUpOrDown&&this.props.focusOnUpDown&&this.state.focused&&document.activeElement!==this.input&&this.focus()}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(e){var t=e;return t=""===t?"":this.isNotCompleteNumber(parseFloat(t,10))?this.state.value:this.getValidValue(t),this.toNumber(t)}},{key:"getRatio",value:function(e){var t=1;return e.metaKey||e.ctrlKey?t=.1:e.shiftKey&&(t=10),t}},{key:"getValueFromEvent",value:function(e){var t=e.target.value.trim().replace(/。/g,".");return h(this.props.decimalSeparator)&&(t=t.replace(this.props.decimalSeparator,".")),t}},{key:"getValidValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.min,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.max,r=parseFloat(e,10);return isNaN(r)?e:(r<t&&(r=t),r>n&&(r=n),r)}},{key:"setValue",value:function(e,t){var n=this.props.precision,r=this.isNotCompleteNumber(parseFloat(e,10))?null:parseFloat(e,10),o=this.state,i=o.value,a=void 0===i?null:i,c=o.inputValue,u=void 0===c?null:c,s="number"==typeof r?r.toFixed(n):""+r,l=r!==a||s!==""+u;return"value"in this.props?this.setState({inputValue:this.toPrecisionAsStep(this.state.value)},t):this.setState({value:r,inputValue:this.toPrecisionAsStep(e)},t),l&&this.props.onChange(r),r}},{key:"getFullNum",value:function(e){return isNaN(e)?e:/e/i.test(String(e))?Number(e).toFixed(18).replace(/\.?0+$/,""):e}},{key:"getPrecision",value:function(e){if(h(this.props.precision))return this.props.precision;var t=e.toString();if(t.indexOf("e-")>=0)return parseInt(t.slice(t.indexOf("e-")+2),10);var n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}},{key:"getMaxPrecision",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.props,r=n.precision,o=n.step;if(h(r))return r;var i=this.getPrecision(t),a=this.getPrecision(o),c=this.getPrecision(e);return e?Math.max(c,i+a):i+a}},{key:"getPrecisionFactor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getMaxPrecision(e,t);return Math.pow(10,n)}},{key:"fixCaret",value:function(e,t){if(void 0!==e&&void 0!==t&&this.input&&this.input.value)try{var n=this.input.selectionStart,r=this.input.selectionEnd;e===n&&t===r||this.input.setSelectionRange(e,t)}catch(e){}}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(e){return this.props.formatter?this.props.formatter(e):e}},{key:"toPrecisionAsStep",value:function(e){if(this.isNotCompleteNumber(e)||""===e)return e;var t=Math.abs(this.getMaxPrecision(e));return isNaN(t)?e.toString():Number(e).toFixed(t)}},{key:"isNotCompleteNumber",value:function(e){return isNaN(e)||""===e||null===e||e&&e.toString().indexOf(".")===e.toString().length-1}},{key:"toNumber",value:function(e){var t=this.props.precision,n=this.state.focused,r=e&&e.length>16&&n;return this.isNotCompleteNumber(e)||r?e:h(t)?Math.round(e*Math.pow(10,t))/Math.pow(10,t):Number(e)}},{key:"upStep",value:function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),o=Math.abs(this.getMaxPrecision(e,t)),i=((r*e+r*n*t)/r).toFixed(o);return this.toNumber(i)}},{key:"downStep",value:function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),o=Math.abs(this.getMaxPrecision(e,t)),i=((r*e-r*n*t)/r).toFixed(o);return this.toNumber(i)}},{key:"step",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments[3];this.stop(),t&&(t.persist(),t.preventDefault());var i=this.props;if(!i.disabled){var a=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(a)){var c=this[e+"Step"](a,r),u=c>i.max||c<i.min;c>i.max?c=i.max:c<i.min&&(c=i.min),this.setValue(c),this.setState({focused:!0},(function(){n.pressingUpOrDown=!1})),u||(this.autoStepTimer=setTimeout((function(){n[e](t,r,!0)}),o?200:600))}}}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,r=t.disabled,i=t.readOnly,c=t.useTouch,s=t.autoComplete,d=t.upHandler,h=t.downHandler,v=t.className,m=t.max,y=t.min,b=t.style,g=t.title,O=t.onMouseEnter,w=t.onMouseLeave,x=t.onMouseOver,j=t.onMouseOut,E=t.required,S=t.onClick,_=t.tabIndex,C=t.type,P=t.placeholder,k=t.id,M=t.inputMode,N=t.pattern,T=t.step,A=t.maxLength,R=t.autoFocus,D=t.name,I=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name"]),L=this.state,F=L.value,z=L.focused,B=a()(n,(l(e={},v,!!v),l(e,n+"-disabled",r),l(e,n+"-focused",z),e)),H={};Object.keys(I).forEach((function(e){"data-"!==e.substr(0,5)&&"aria-"!==e.substr(0,5)&&"role"!==e||(H[e]=I[e])}));var K=!i&&!r,V=this.getInputDisplayValue(),U=(F||0===F)&&(isNaN(F)||Number(F)>=m)||r||i,W=(F||0===F)&&(isNaN(F)||Number(F)<=y)||r||i,q=a()(n+"-handler",n+"-handler-up",l({},n+"-handler-up-disabled",U)),G=a()(n+"-handler",n+"-handler-down",l({},n+"-handler-down-disabled",W)),$=c?{onTouchStart:U?f:this.up,onTouchEnd:this.stop}:{onMouseDown:U?f:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Y=c?{onTouchStart:W?f:this.down,onTouchEnd:this.stop}:{onMouseDown:W?f:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return o.a.createElement("div",{className:B,style:b,title:g,onMouseEnter:O,onMouseLeave:w,onMouseOver:x,onMouseOut:j,onFocus:function(){return null},onBlur:function(){return null}},o.a.createElement("div",{className:n+"-handler-wrap"},o.a.createElement("span",u({unselectable:"unselectable"},$,{role:"button","aria-label":"Increase Value","aria-disabled":U,className:q}),d||o.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-up-inner",onClick:p})),o.a.createElement("span",u({unselectable:"unselectable"},Y,{role:"button","aria-label":"Decrease Value","aria-disabled":W,className:G}),h||o.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-down-inner",onClick:p}))),o.a.createElement("div",{className:n+"-input-wrap"},o.a.createElement("input",u({role:"spinbutton","aria-valuemin":y,"aria-valuemax":m,"aria-valuenow":F,required:E,type:C,placeholder:P,onClick:S,onMouseUp:this.onMouseUp,className:n+"-input",tabIndex:_,autoComplete:s,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:K?this.onKeyDown:f,onKeyUp:K?this.onKeyUp:f,autoFocus:R,maxLength:A,readOnly:i,disabled:r,max:m,min:y,step:T,name:D,title:g,id:k,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(V),pattern:N,inputMode:M},H))))}}]),t}(o.a.Component);m.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:d,min:-d,step:1,style:{},onChange:f,onKeyDown:f,onPressEnter:f,onFocus:f,onBlur:f,parser:function(e){return e.replace(/[^\w.-]+/g,"")},required:!1,autoComplete:"off"};var y=function(){var e=this;this.onKeyDown=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e.props,a=i.onKeyDown,u=i.onPressEnter;if(t.keyCode===c.a.UP){var s=e.getRatio(t);e.up(t,s),e.stop()}else if(t.keyCode===c.a.DOWN){var l=e.getRatio(t);e.down(t,l),e.stop()}else t.keyCode===c.a.ENTER&&u&&u(t);e.recordCursorPosition(),e.lastKeyCode=t.keyCode,a&&a.apply(void 0,[t].concat(r))},this.onKeyUp=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e.props.onKeyUp;e.stop(),e.recordCursorPosition(),i&&i.apply(void 0,[t].concat(r))},this.onChange=function(t){var n=e.props.onChange;e.state.focused&&(e.inputting=!0),e.rawInput=e.props.parser(e.getValueFromEvent(t)),e.setState({inputValue:e.rawInput}),n(e.toNumber(e.rawInput))},this.onMouseUp=function(){var t=e.props.onMouseUp;e.recordCursorPosition(),t&&t.apply(void 0,arguments)},this.onFocus=function(){var t;e.setState({focused:!0}),(t=e.props).onFocus.apply(t,arguments)},this.onBlur=function(){var t=e.props.onBlur;e.inputting=!1,e.setState({focused:!1});var n=e.getCurrentValidValue(e.state.inputValue),r=e.setValue(n);if(t){var o=e.input.value,i=Number(e.getInputDisplayValue({focus:!1,value:r}));e.input.value=i,t.apply(void 0,arguments),e.input.value=o}},this.getInputDisplayValue=function(t){var n=t||e.state,r=n.focused,o=n.inputValue,i=n.value,a=void 0;null==(a=r?o:e.toPrecisionAsStep(i))&&(a="");var c=e.formatWrapper(a);return h(e.props.decimalSeparator)&&(c=c.toString().replace(".",e.props.decimalSeparator)),c},this.recordCursorPosition=function(){try{e.cursorStart=e.input.selectionStart,e.cursorEnd=e.input.selectionEnd,e.currentValue=e.input.value,e.cursorBefore=e.input.value.substring(0,e.cursorStart),e.cursorAfter=e.input.value.substring(e.cursorEnd)}catch(e){}},this.restoreByAfter=function(t){if(void 0===t)return!1;var n=e.input.value,r=n.lastIndexOf(t);if(-1===r)return!1;var o=e.cursorBefore.length;return e.lastKeyCode===c.a.DELETE&&e.cursorBefore.charAt(o-1)===t[0]?(e.fixCaret(o,o),!0):r+t.length===n.length&&(e.fixCaret(r,r),!0)},this.partRestoreByAfter=function(t){return void 0!==t&&Array.prototype.some.call(t,(function(n,r){var o=t.substring(r);return e.restoreByAfter(o)}))},this.stop=function(){e.autoStepTimer&&clearTimeout(e.autoStepTimer)},this.down=function(t,n,r){e.pressingUpOrDown=!0,e.step("down",t,n,r)},this.up=function(t,n,r){e.pressingUpOrDown=!0,e.step("up",t,n,r)},this.saveInput=function(t){e.input=t}},b=m,g=n(1016),O=n.n(g),w=n(359),x=n.n(w),j=n(196),E=n(155);function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},P=r.forwardRef((function(e,t){var n=function(n){var o=n.getPrefixCls,i=n.direction,c=e.className,u=e.size,s=e.prefixCls,l=C(e,["className","size","prefixCls"]),f=o("input-number",s),p=r.createElement(O.a,{className:"".concat(f,"-handler-up-inner")}),d=r.createElement(x.a,{className:"".concat(f,"-handler-down-inner")});return r.createElement(E.b.Consumer,null,(function(e){var n,o=u||e,s=a()((_(n={},"".concat(f,"-lg"),"large"===o),_(n,"".concat(f,"-sm"),"small"===o),_(n,"".concat(f,"-rtl"),"rtl"===i),n),c);return r.createElement(b,S({ref:t,className:s,upHandler:p,downHandler:d,prefixCls:f},l))}))};return r.createElement(j.a,null,n)}));P.defaultProps={step:1};t.a=P},function(e,t,n){"use strict";var r=n(673),o=n(635);r.b.Sider=o.b,t.a=r.b},,function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(89),c=n(602),u=n(784),s=n(783),l=n(775),f=n(786),p=n(196);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function b(e,t,n){var o=t&&"object"===m(t)?t:{},i=o.total,a=void 0===i?0:i,c=y(o,["total"]),u=h(Object(r.useState)((function(){return{current:"defaultCurrent"in c?c.defaultCurrent:1,pageSize:"defaultPageSize"in c?c.defaultPageSize:10}})),2),s=u[0],l=u[1],f=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(s,c,{total:a>0?a:e});a||Math.ceil(e/f.pageSize)<f.current&&(f.current=1);var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;l(d(d({},f),{current:e}))};return!1===t?[{},function(){}]:[d(d({},f),{onChange:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=r[0];p(i),n(i,r[1]||f.pageSize),t&&t.onChange&&t.onChange.apply(t,r)},onShowSizeChange:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=r[1];l(d(d({},f),{current:1,pageSize:i})),n(1,i),t&&t.onShowSizeChange&&t.onShowSizeChange.apply(t,r)}}),p]}var g=n(359),O=n.n(g),w=n(276),x=n(791),j=n(512),E=n(407),S=n(178),_=n(787),C=n(611),P=n(777),k=n(91);function M(){return(M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function N(e,t){return A(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||D(e,t)||T()}function T(){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 A(e){if(Array.isArray(e))return e}function R(e){return function(e){if(Array.isArray(e))return L(e)}(e)||I(e)||D(e)||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 D(e,t){if(e){if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function I(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function F(e){return e&&e.fixed}function z(e,t){var n=e||{},o=n.preserveSelectedRowKeys,i=n.selectedRowKeys,a=n.getCheckboxProps,u=n.onChange,s=n.onSelect,l=n.onSelectAll,f=n.onSelectInvert,p=n.onSelectMultiple,d=n.columnWidth,h=n.type,v=n.selections,m=n.fixed,y=n.renderCell,b=n.hideSelectAll,g=n.checkStrictly,L=void 0===g||g,z=t.prefixCls,B=t.data,H=t.pageData,K=t.getRecordByKey,V=t.getRowKey,U=t.expandType,W=t.childrenColumnName,q=t.locale,G=t.expandIconColumnIndex,$=t.getPopupContainer,Y=r.useRef(new Map),X=N(Object(E.a)(i||[],{value:i}),2),Z=X[0],J=X[1],Q=Object(r.useMemo)((function(){return L?{keyEntities:null}:Object(w.a)(B,void 0,V)}),[B,V,L]).keyEntities,ee=Object(r.useMemo)((function(){return function e(t,n){var r=[];return(t||[]).forEach((function(t){r.push(t),n in t&&(r=[].concat(R(r),R(e(t[n],n))))})),r}(H,W)}),[H,W]),te=Object(r.useMemo)((function(){var e=new Map;return ee.forEach((function(t,n){var r=V(t,n),o=(a?a(t):null)||{};e.set(r,o)})),e}),[ee,V,a]),ne=Object(r.useCallback)((function(e){var t;return!!(null===(t=te.get(V(e)))||void 0===t?void 0:t.disabled)}),[te,V]),re=N(Object(r.useMemo)((function(){if(L)return[Z,[]];var e=Object(x.a)(Z,!0,Q,ne);return[e.checkedKeys,e.halfCheckedKeys]}),[Z,L,Q,ne]),2),oe=re[0],ie=re[1],ae=Object(r.useMemo)((function(){var e="radio"===h?oe.slice(0,1):oe;return new Set(e)}),[oe,h]),ce=Object(r.useMemo)((function(){return"radio"===h?new Set:new Set(ie)}),[ie,h]),ue=N(Object(r.useState)(null),2),se=ue[0],le=ue[1];r.useEffect((function(){e||J([])}),[!!e]);var fe=Object(r.useCallback)((function(e){var t,n;if(o){var r=new Map;t=e,n=e.map((function(e){var t=K(e);return!t&&Y.current.has(e)&&(t=Y.current.get(e)),r.set(e,t),t})),Y.current=r}else t=[],n=[],e.forEach((function(e){var r=K(e);void 0!==r&&(t.push(e),n.push(r))}));J(t),u&&u(t,n)}),[J,K,u,o]),pe=Object(r.useCallback)((function(e,t,n,r){if(s){var o=n.map((function(e){return K(e)}));s(K(e),t,o,r)}fe(n)}),[s,K,fe]),de=Object(r.useMemo)((function(){return!v||b?null:(!0===v?["SELECT_ALL","SELECT_INVERT"]:v).map((function(e){return"SELECT_ALL"===e?{key:"all",text:q.selectionAll,onSelect:function(){fe(B.map((function(e,t){return V(e,t)})))}}:"SELECT_INVERT"===e?{key:"invert",text:q.selectInvert,onSelect:function(){var e=new Set(ae);H.forEach((function(t,n){var r=V(t,n);e.has(r)?e.delete(r):e.add(r)}));var t=Array.from(e);fe(t),f&&(Object(k.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),f(t))}}:e}))}),[v,ae,H,V,f,fe]);return[Object(r.useCallback)((function(t){if(!e)return t;var n,o,i=new Set(ae),a=ee.map(V).filter((function(e){return!te.get(e).disabled})),u=a.every((function(e){return i.has(e)})),s=a.some((function(e){return i.has(e)}));if("radio"!==h){var f;if(de){var v=r.createElement(C.a,{getPopupContainer:$},de.map((function(e,t){var n=e.key,o=e.text,i=e.onSelect;return r.createElement(C.a.Item,{key:n||t,onClick:function(){i&&i(a)}},o)})));f=r.createElement("div",{className:"".concat(z,"-selection-extra")},r.createElement(_.a,{overlay:v,getPopupContainer:$},r.createElement("span",null,r.createElement(O.a,null))))}var g=ee.every((function(e,t){var n=V(e,t);return(te.get(n)||{}).disabled}));n=!b&&r.createElement("div",{className:"".concat(z,"-selection")},r.createElement(S.a,{checked:!g&&!!ee.length&&u,indeterminate:!u&&s,onChange:function(){var e=[];u?a.forEach((function(t){i.delete(t),e.push(t)})):a.forEach((function(t){i.has(t)||(i.add(t),e.push(t))}));var t=Array.from(i);fe(t),l&&l(!u,t.map((function(e){return K(e)})),e.map((function(e){return K(e)})))},disabled:0===ee.length||g}),f)}o="radio"===h?function(e,t,n){var o=V(t,n),a=i.has(o);return{node:r.createElement(P.default,M({},te.get(o),{checked:a,onClick:function(e){return e.stopPropagation()},onChange:function(e){i.has(o)||pe(o,!0,[o],e.nativeEvent)}})),checked:a}}:function(e,t,n){var o=V(t,n),c=i.has(o),u=ce.has(o);return{node:r.createElement(S.a,M({},te.get(o),{checked:c,indeterminate:u,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=e.nativeEvent,n=t.shiftKey,r=-1,u=-1;if(n&&L){var s=new Set([se,o]);a.some((function(e,t){if(s.has(e)){if(-1!==r)return u=t,!0;r=t}return!1}))}if(-1!==u&&r!==u&&L){var l=a.slice(r,u+1),f=[];c?l.forEach((function(e){i.has(e)&&(f.push(e),i.delete(e))})):l.forEach((function(e){i.has(e)||(f.push(e),i.add(e))}));var d=Array.from(i);fe(d),p&&p(!c,d.map((function(e){return K(e)})),f.map((function(e){return K(e)})))}else{var h=oe;if(L){var v=c?Object(j.b)(h,o):Object(j.a)(h,o);pe(o,!c,v,t)}else{var m=Object(x.a)([].concat(R(h),[o]),!0,Q,ne),y=m.checkedKeys,b=m.halfCheckedKeys,g=y;if(c){var O=new Set(y);O.delete(o),g=Object(x.a)(Array.from(O),{checked:!1,halfCheckedKeys:b},Q,ne).checkedKeys}pe(o,!c,g,t)}}le(o)}})),checked:c}};var w,E,k,N,B=(w={width:d,className:"".concat(z,"-selection-column"),title:e.columnTitle||n,render:function(e,t,n){var r=o(e,t,n),i=r.node,a=r.checked;return y?y(a,t,n,i):i}},E=c.INTERNAL_COL_DEFINE,k={className:"".concat(z,"-selection-col")},E in w?Object.defineProperty(w,E,{value:k,enumerable:!0,configurable:!0,writable:!0}):w[E]=k,w);if("row"===U&&t.length&&!G){var H=A(N=t)||I(N)||D(N)||T(),W=H[0],q=H.slice(1),Y=m||F(q[0]);return Y&&(W.fixed=Y),[W,M(M({},B),{fixed:Y})].concat(R(q))}return[M(M({},B),{fixed:m||F(t[0])})].concat(R(t))}),[V,ee,e,oe,ae,ce,d,de,U,se,te,p,pe,ne]),ae]}var B=n(914),H=n.n(B),K=n(915),V=n.n(K),U=n(297);function W(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function q(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function G(e,t){return"function"==typeof e?e(t):e}function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||J(e,t)||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 Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Z(e){return function(e){if(Array.isArray(e))return Q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||J(e)||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 J(e,t){if(e){if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e){return"object"===ee(e.sorter)&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function ne(e){return"function"==typeof e?e:!(!e||"object"!==ee(e)||!e.compare)&&e.compare}function re(e,t,n){var r=[];function o(e,t){r.push({column:e,key:W(e,t),multiplePriority:te(e),sortOrder:e.sortOrder})}return(e||[]).forEach((function(e,i){var a=q(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(Z(r),Z(re(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:W(e,a),multiplePriority:te(e),sortOrder:e.defaultSortOrder}))})),r}function oe(e){var t=e.column;return{column:t,order:e.sortOrder,field:t.dataIndex,columnKey:t.key}}function ie(e){var t=e.filter((function(e){return e.sortOrder})).map(oe);return 0===t.length&&e.length?X(X({},oe(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function ae(e,t,n){var r=t.slice().sort((function(e,t){return t.multiplePriority-e.multiplePriority})),o=e.slice(),i=r.filter((function(e){var t=e.column.sorter,n=e.sortOrder;return ne(t)&&n}));return i.length?o.sort((function(e,t){for(var n=0;n<i.length;n+=1){var r=i[n],o=r.column.sorter,a=r.sortOrder,c=ne(o);if(c&&a){var u=c(e,t,a);if(0!==u)return"ascend"===a?u:-u}}return 0})).map((function(e){var r=e[n];return r?X(X({},e),Y({},n,ae(r,t,n))):e})):o}function ce(e){var t=e.prefixCls,n=e.mergedColumns,o=e.onSorterChange,a=e.sortDirections,c=e.tableLocale,u=e.showSorterTooltip,s=$(r.useState(re(n,!0)),2),l=s[0],f=s[1],p=r.useMemo((function(){var e=!0,t=re(n,!1);if(!t.length)return l;var r=[];function o(t){e?r.push(t):r.push(X(X({},t),{sortOrder:null}))}var i=null;return t.forEach((function(t){null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))})),r}),[n,l]),d=r.useMemo((function(){var e=p.map((function(e){return{column:e.column,order:e.sortOrder}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[p]);function h(e){var t;t=!1!==e.multiplePriority&&p.length&&!1!==p[0].multiplePriority?[].concat(Z(p.filter((function(t){return t.key!==e.key}))),[e]):[e],f(t),o(ie(t),t)}return[function(e){return function e(t,n,o,a,c,u,s,l){return(n||[]).map((function(n,f){var p=q(f,l),d=n;if(d.sorter){var h=d.sortDirections||c,v=void 0===d.showSorterTooltip?s:d.showSorterTooltip,m=W(d,p),y=o.find((function(e){return e.key===m})),b=y?y.sortOrder:null,g=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(h,b),O=h.includes("ascend")&&r.createElement(V.a,{className:i()("".concat(t,"-column-sorter-up"),{active:"ascend"===b})}),w=h.includes("descend")&&r.createElement(H.a,{className:i()("".concat(t,"-column-sorter-down"),{active:"descend"===b})}),x=u||{},j=x.cancelSort,E=x.triggerAsc,S=x.triggerDesc,_=j;"descend"===g?_=S:"ascend"===g&&(_=E),d=X(X({},d),{className:i()(d.className,Y({},"".concat(t,"-column-sort"),b)),title:function(e){var o=r.createElement("div",{className:"".concat(t,"-column-sorters")},r.createElement("span",null,G(n.title,e)),r.createElement("span",{className:i()("".concat(t,"-column-sorter"),Y({},"".concat(t,"-column-sorter-full"),O&&w))},r.createElement("span",{className:"".concat(t,"-column-sorter-inner")},O,w)));return v?r.createElement(U.a,{title:_},r.createElement("div",{className:"".concat(t,"-column-sorters-with-tooltip")},o)):o},onHeaderCell:function(e){var r=n.onHeaderCell&&n.onHeaderCell(e)||{},o=r.onClick;return r.onClick=function(e){a({column:n,key:m,sortOrder:g,multiplePriority:te(n)}),o&&o(e)},r.className=i()(r.className,"".concat(t,"-column-has-sorters")),r}})}return"children"in d&&(d=X(X({},d),{children:e(t,d.children,o,a,c,u,s,p)})),d}))}(t,e,p,h,a,c,u)},p,d,function(){return ie(p)}]}var ue=n(553),se=n.n(ue),le=n(916),fe=n.n(le),pe=n(84),de=n(514),he=function(e){return r.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()}},e.children)};function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return me(e,t)}(e,t)||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 me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ge(e,t)}(e,t)||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 ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Oe=C.a.SubMenu,we=C.a.Item;var xe=function(e){var t,n,o,a,c=e.prefixCls,u=e.column,s=e.dropdownPrefixCls,l=e.columnKey,f=e.filterMultiple,d=e.filterState,h=e.triggerFilter,v=e.locale,m=e.children,y=e.getPopupContainer,b=u.filterDropdownVisible,g=u.onFilterDropdownVisibleChange,O=be(r.useState(!1),2),w=O[0],x=O[1],j=!(!d||!(null===(t=d.filteredKeys)||void 0===t?void 0:t.length)&&!d.forceFiltered),E=function(e){x(e),g&&g(e)},k="boolean"==typeof b?b:w,M=d&&d.filteredKeys,N=be((n=M||[],o=r.useRef(n),a=ve(r.useState(null),2)[1],[function(){return o.current},function(e){o.current=e,a({})}]),2),T=N[0],A=N[1],R=function(e){var t=e.selectedKeys;A(t)};r.useEffect((function(){R({selectedKeys:M||[]})}),[M]);var D=be(r.useState([]),2),I=D[0],L=D[1],F=r.useRef();r.useEffect((function(){return function(){window.clearTimeout(F.current)}}),[]);var z,B=function(e){E(!1);var t=e&&e.length?e:null;return null!==t||d&&d.filteredKeys?se()(t,null==d?void 0:d.filteredKeys)?null:void h({column:u,key:l,filteredKeys:t}):null},H=function(){B(T())},K=function(){A([]),B([])},V=i()(ye({},"".concat(s,"-menu-without-submenu"),!(u.filters||[]).some((function(e){return e.children}))));if("function"==typeof u.filterDropdown)z=u.filterDropdown({prefixCls:"".concat(s,"-custom"),setSelectedKeys:function(e){return R({selectedKeys:e})},selectedKeys:T(),confirm:H,clearFilters:K,filters:u.filters,visible:k});else if(u.filterDropdown)z=u.filterDropdown;else{var U=T()||[];z=r.createElement(r.Fragment,null,r.createElement(C.a,{multiple:f,prefixCls:"".concat(s,"-menu"),className:V,onClick:function(){window.clearTimeout(F.current)},onSelect:R,onDeselect:R,selectedKeys:U,getPopupContainer:y,openKeys:I,onOpenChange:function(e){F.current=window.setTimeout((function(){L(e)}))}},function e(t){var n=t.filters,o=t.prefixCls,i=t.filteredKeys,a=t.filterMultiple,c=t.locale;return 0===n.length?r.createElement(de.a,{image:de.a.PRESENTED_IMAGE_SIMPLE,description:c.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}}):n.map((function(t,n){var u=String(t.value);if(t.children)return r.createElement(Oe,{key:u||n,title:t.text,popupClassName:"".concat(o,"-dropdown-submenu")},e({filters:t.children,prefixCls:o,filteredKeys:i,filterMultiple:a,locale:c}));var s=a?S.a:P.default;return r.createElement(we,{key:void 0!==t.value?u:n},r.createElement(s,{checked:i.includes(u)}),r.createElement("span",null,t.text))}))}({filters:u.filters||[],prefixCls:c,filteredKeys:T(),filterMultiple:f,locale:v})),r.createElement("div",{className:"".concat(c,"-dropdown-btns")},r.createElement(pe.a,{type:"link",size:"small",disabled:0===U.length,onClick:K},v.filterReset),r.createElement(pe.a,{type:"primary",size:"small",onClick:H},v.filterConfirm)))}var W,q=r.createElement(he,{className:"".concat(c,"-dropdown")},z);W="function"==typeof u.filterIcon?u.filterIcon(j):u.filterIcon?u.filterIcon:r.createElement(fe.a,null);var G=r.useContext(p.b).direction;return r.createElement("div",{className:i()("".concat(c,"-column"))},r.createElement("span",{className:"".concat(c,"-column-title")},m),r.createElement("span",{className:i()("".concat(c,"-trigger-container"),ye({},"".concat(c,"-trigger-container-open"),k)),onClick:function(e){e.stopPropagation()}},r.createElement(_.a,{overlay:q,trigger:["click"],visible:k,onVisibleChange:function(e){e&&void 0!==M&&A(M||[]),E(e),e||u.filterDropdown||H()},getPopupContainer:y,placement:"rtl"===G?"bottomLeft":"bottomRight"},r.createElement("span",{role:"button",tabIndex:-1,className:i()("".concat(c,"-trigger"),{active:j})},W))))};function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||_e(e,t)||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 Ee(){return(Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Se(e){return function(e){if(Array.isArray(e))return Ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||_e(e)||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 _e(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e,t,n){var r=[];return(e||[]).forEach((function(e,o){var i=q(o,n);"children"in e?r=[].concat(Se(r),Se(Pe(e.children,t,i))):(e.filters||"filterDropdown"in e||"onFilter"in e)&&("filteredValue"in e?r.push({column:e,key:W(e,i),filteredKeys:e.filteredValue,forceFiltered:e.filtered}):r.push({column:e,key:W(e,i),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered}))})),r}function ke(e){var t={};return e.forEach((function(e){var n=e.key,r=e.filteredKeys;t[n]=r||null})),t}function Me(e,t){return t.reduce((function(e,t){var n=t.column,r=n.onFilter,o=n.filters,i=t.filteredKeys;return r&&i&&i.length?e.filter((function(e){return i.some((function(t){var n=function e(t){var n=[];return(t||[]).forEach((function(t){var r=t.value,o=t.children;n.push(r),o&&(n=[].concat(Se(n),Se(e(o))))})),n}(o),i=n.findIndex((function(e){return String(e)===String(t)})),a=-1!==i?n[i]:t;return r(a,e)}))})):e}),e)}var Ne=function(e){var t=e.prefixCls,n=e.dropdownPrefixCls,o=e.mergedColumns,i=e.onFilterChange,a=e.getPopupContainer,c=e.locale,u=je(r.useState(Pe(o,!0)),2),s=u[0],l=u[1],f=r.useMemo((function(){var e=Pe(o,!1);return e.every((function(e){return void 0===e.filteredKeys}))?s:e}),[o,s]),p=r.useCallback((function(){return ke(f)}),[f]),d=function(e){var t=f.filter((function(t){return t.key!==e.key}));t.push(e),l(t),i(ke(t),t)};return[function(e){return function e(t,n,o,i,a,c,u,s){return o.map((function(o,l){var f=q(l,s),p=o.filterMultiple,d=void 0===p||p;if(o.filters||"filterDropdown"in o){var h=W(o,f),v=i.find((function(e){var t=e.key;return h===t}));return Ee(Ee({},o),{title:function(e){return r.createElement(xe,{prefixCls:"".concat(t,"-filter"),dropdownPrefixCls:n,column:o,columnKey:h,filterState:v,filterMultiple:d,triggerFilter:a,locale:u,getPopupContainer:c},G(o.title,e))}})}return"children"in o?Ee(Ee({},o),{children:e(t,n,o.children,i,a,c,u,f)}):o}))}(t,n,e,f,d,a,c)},f,p]};function Te(){return(Te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ae(e){return[r.useCallback((function(t){return function e(t,n){return t.map((function(t){var r=Te({},t);return r.title=G(t.title,n),"children"in r&&(r.children=e(r.children,n)),r}))}(t,e)}),[e])]}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var De=function(e){return function(t){var n,o=t.prefixCls,a=t.onExpand,c=t.record,u=t.expanded,s=t.expandable,l="".concat(o,"-row-expand-icon");return r.createElement("button",{type:"button",onClick:function(e){a(c,e),e.stopPropagation()},className:i()(l,(n={},Re(n,"".concat(l,"-spaced"),!s),Re(n,"".concat(l,"-expanded"),s&&u),Re(n,"".concat(l,"-collapsed"),s&&!u),n)),"aria-label":u?e.collapse:e.expand})}},Ie=n(109),Le=n.n(Ie);function Fe(e){return null!=e&&e===e.window}function ze(e,t){if("undefined"==typeof window)return 0;var n=t?"scrollTop":"scrollLeft",r=0;return Fe(e)?r=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?r=e.documentElement[n]:e&&(r=e[n]),e&&!Fe(e)&&"number"!=typeof r&&(r=(e.ownerDocument||e).documentElement[n]),r}function Be(e,t,n,r){var o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getContainer,r=void 0===n?function(){return window}:n,o=t.callback,i=t.duration,a=void 0===i?450:i,c=r(),u=ze(c,!0),s=Date.now(),l=function t(){var n=Date.now()-s,r=Be(n>a?a:n,u,e,a);Fe(c)?c.scrollTo(window.pageXOffset,r):c instanceof HTMLDocument||"HTMLDocument"===c.constructor.name?c.documentElement.scrollTop=r:c.scrollTop=r,n<a?Le()(t):"function"==typeof o&&o()};Le()(l)}var Ke=n(361).a,Ve=n(155);var Ue=function(e){return null};var We=function(e){return null},qe=n(628);function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xe(e,t)}(e,t)||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 Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ze(){return(Ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Je=[];function Qe(e){var t,n=e.prefixCls,o=e.className,d=e.style,h=e.size,v=e.bordered,y=e.dropdownPrefixCls,g=e.dataSource,O=e.pagination,w=e.rowSelection,x=e.rowKey,j=e.rowClassName,E=e.columns,S=e.children,_=e.childrenColumnName,C=e.onChange,P=e.getPopupContainer,M=e.loading,N=e.expandIcon,T=e.expandable,A=e.expandedRowRender,R=e.expandIconColumnIndex,D=e.indentSize,I=e.scroll,L=e.sortDirections,F=e.locale,B=e.showSorterTooltip,H=void 0===B||B;Object(k.a)(!("function"==typeof x&&x.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var K=Object(qe.a)(),V=r.useMemo((function(){var e=new Set(Object.keys(K).filter((function(e){return K[e]})));return(E||Object(s.a)(S)).filter((function(t){return!t.responsive||t.responsive.some((function(t){return e.has(t)}))}))}),[S,E,K]),U=Object(a.default)(e,["className","style","columns"]),W=r.useContext(Ve.b),q=r.useContext(p.b),G=q.locale,$=void 0===G?Ke:G,Y=q.renderEmpty,X=q.direction,Z=h||W,J=Ze(Ze({},$.Table),F),Q=g||Je,ee=r.useContext(p.b).getPrefixCls,te=ee("table",n),ne=ee("dropdown",y),re=Ze({childrenColumnName:_,expandIconColumnIndex:R},T),oe=re.childrenColumnName,ie=void 0===oe?"children":oe,ue=r.useMemo((function(){return Q.some((function(e){return e[ie]}))?"nest":A||T&&T.expandedRowRender?"row":null}),[Q]),se={body:r.useRef()},le=r.useMemo((function(){return"function"==typeof x?x:function(e){return e[x]}}),[x]),fe=Ye(function(e,t,n){var o=r.useRef({});return[function(r){if(!o.current||o.current.data!==e||o.current.childrenColumnName!==t||o.current.getRowKey!==n){var i=new Map;!function e(r){r.forEach((function(r,o){var a=n(r,o);i.set(a,r),t in r&&e(r[t]||[])}))}(e),o.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return o.current.kvMap.get(r)}]}(Q,ie,le),1)[0],pe={},de=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Ze(Ze({},pe),e);n&&(pe.resetPagination(),r.pagination.current&&(r.pagination.current=1),O&&O.onChange&&O.onChange(1,r.pagination.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&se.body.current&&He(0,{getContainer:function(){return se.body.current}}),C&&C(r.pagination,r.filters,r.sorter,{currentDataSource:Me(ae(Q,r.sorterStates,ie),r.filterStates),action:t})},he=Ye(ce({prefixCls:te,mergedColumns:V,onSorterChange:function(e,t){de({sorter:e,sorterStates:t},"sort",!1)},sortDirections:L||["ascend","descend"],tableLocale:J,showSorterTooltip:H}),4),ve=he[0],me=he[1],ye=he[2],be=he[3],ge=r.useMemo((function(){return ae(Q,me,ie)}),[Q,me]);pe.sorter=be(),pe.sorterStates=me;var Oe=Ye(Ne({prefixCls:te,locale:J,dropdownPrefixCls:ne,mergedColumns:V,onFilterChange:function(e,t){de({filters:e,filterStates:t},"filter",!0)},getPopupContainer:P}),3),we=Oe[0],xe=Oe[1],je=Oe[2],Ee=Me(ge,xe);pe.filters=je(),pe.filterStates=xe;var Se=Ye(Ae(r.useMemo((function(){return Ze({},ye)}),[ye])),1)[0],_e=Ye(b(Ee.length,O,(function(e,t){de({pagination:Ze(Ze({},pe.pagination),{current:e,pageSize:t})},"paginate")})),2),Ce=_e[0],Pe=_e[1];pe.pagination=!1===O?{}:function(e,t){var n={current:t.current,pageSize:t.pageSize},r=e&&"object"===m(e)?e:{};return Object.keys(r).forEach((function(e){var r=t[e];"function"!=typeof r&&(n[e]=r)})),n}(O,Ce),pe.resetPagination=Pe;var ke=r.useMemo((function(){if(!1===O||!Ce.pageSize)return Ee;var e=Ce.current,t=void 0===e?1:e,n=Ce.total,r=Ce.pageSize,o=void 0===r?10:r;return Ee.length<n?Ee.length>o?(Object(k.a)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),Ee.slice((t-1)*o,t*o)):Ee:Ee.slice((t-1)*o,t*o)}),[!!O,Ee,Ce&&Ce.current,Ce&&Ce.pageSize,Ce&&Ce.total]),Te=Ye(z(w,{prefixCls:te,data:Ee,pageData:ke,getRowKey:le,getRecordByKey:fe,expandType:ue,childrenColumnName:ie,locale:J,expandIconColumnIndex:re.expandIconColumnIndex,getPopupContainer:P}),2),Re=Te[0],Ie=Te[1];re.__PARENT_RENDER_ICON__=re.expandIcon,re.expandIcon=re.expandIcon||N||De(J),"nest"===ue&&void 0===re.expandIconColumnIndex?re.expandIconColumnIndex=w?1:0:re.expandIconColumnIndex>0&&w&&(re.expandIconColumnIndex-=1),re.indentSize=re.indentSize||D||15;var Le,Fe,ze,Be=r.useCallback((function(e){return Se(Re(we(ve(e))))}),[ve,we,Re]);if(!1!==O){var Ue;Ue=Ce.size?Ce.size:"small"===Z||"middle"===Z?"small":void 0;var We=function(e){return r.createElement(f.a,Ze({className:"".concat(te,"-pagination ").concat(te,"-pagination-").concat(e)},Ce,{size:Ue}))},Xe="rtl"===X?"left":"right";if(null!==Ce.position&&Array.isArray(Ce.position)){var Qe=Ce.position.find((function(e){return-1!==e.indexOf("top")})),et=Ce.position.find((function(e){return-1!==e.indexOf("bottom")}));Qe||et?(Qe&&(Le=We(Qe.toLowerCase().replace("top",""))),et&&(Fe=We(et.toLowerCase().replace("bottom","")))):Fe=We(Xe)}else Fe=We(Xe)}"boolean"==typeof M?ze={spinning:M}:"object"===Ge(M)&&(ze=Ze({spinning:!0},M));var tt=i()("".concat(te,"-wrapper"),o,$e({},"".concat(te,"-wrapper-rtl"),"rtl"===X));return r.createElement("div",{className:tt,style:d},r.createElement(l.a,Ze({spinning:!1},ze),Le,r.createElement(c.default,Ze({},U,{columns:V,direction:X,expandable:re,prefixCls:te,className:i()((t={},$e(t,"".concat(te,"-middle"),"middle"===Z),$e(t,"".concat(te,"-small"),"small"===Z),$e(t,"".concat(te,"-bordered"),v),$e(t,"".concat(te,"-empty"),0===Q.length),t)),data:ke,rowKey:le,rowClassName:function(e,t,n){var r;return r="function"==typeof j?i()(j(e,t,n)):i()(j),i()($e({},"".concat(te,"-row-selected"),Ie.has(le(e,t))),r)},emptyText:F&&F.emptyText||Y("Table"),internalHooks:u.a,internalRefs:se,transformColumns:Be})),ke&&ke.length>0&&Fe))}Qe.defaultProps={rowKey:"key"},Qe.SELECTION_ALL="SELECT_ALL",Qe.SELECTION_INVERT="SELECT_INVERT",Qe.Column=Ue,Qe.ColumnGroup=We,Qe.Summary=c.Summary;var et=Qe;t.a=et},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(89),c=n(253),u=n(196),s=n(109),l=n.n(s);function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e)||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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(){return function(e,t,n){var r=n.value,o=!1;return{configurable:!0,get:function(){if(o||this===e.prototype||this.hasOwnProperty(t))return r;var n=function(e){var t,n=function(n){return function(){t=null,e.apply(void 0,f(n))}},r=function(){if(null==t){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t=l()(n(r))}};return r.cancel=function(){return l.a.cancel(t)},r}(r.bind(this));return o=!0,Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),o=!1,n}}}}var h=n(194);function v(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function m(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n)return n+(window.innerHeight-t.bottom)}var b=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],g=[];function O(e,t){if(e){var n=g.find((function(t){return t.target===e}));n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},g.push(n),b.forEach((function(t){n.eventHandlers[t]=Object(h.a)(e,t,(function(){n.affixList.forEach((function(e){e.lazyUpdatePosition()}))}))})))}}function w(e){var t=g.find((function(t){var n=t.affixList.some((function(t){return t===e}));return n&&(t.affixList=t.affixList.filter((function(t){return t!==e}))),n}));t&&0===t.affixList.length&&(g=g.filter((function(e){return e!==t})),b.forEach((function(e){var n=t.eventHandlers[e];n&&n.remove&&n.remove()})))}function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(e,t){return!t||"object"!==M(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var N,T=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":M(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};function A(){return"undefined"!=typeof window?window:null}!function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"}(N||(N={}));var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(s,e);var t,n,o,u=C(s);function s(){var e;return E(this,s),(e=u.apply(this,arguments)).state={status:N.None,lastAffix:!1,prevTarget:null},e.getOffsetTop=function(){var t=e.props.offsetBottom,n=e.props.offsetTop;return void 0===t&&void 0===n&&(n=0),n},e.getOffsetBottom=function(){return e.props.offsetBottom},e.savePlaceholderNode=function(t){e.placeholderNode=t},e.saveFixedNode=function(t){e.fixedNode=t},e.measure=function(){var t=e.state,n=t.status,r=t.lastAffix,o=e.props.onChange,i=e.getTargetFunc();if(n===N.Prepare&&e.fixedNode&&e.placeholderNode&&i){var a=e.getOffsetTop(),c=e.getOffsetBottom(),u=i();if(u){var s={status:N.None},l=v(u),f=v(e.placeholderNode),p=m(f,l,a),d=y(f,l,c);void 0!==p?(s.affixStyle={position:"fixed",top:p,width:f.width,height:f.height},s.placeholderStyle={width:f.width,height:f.height}):void 0!==d&&(s.affixStyle={position:"fixed",bottom:d,width:f.width,height:f.height},s.placeholderStyle={width:f.width,height:f.height}),s.lastAffix=!!s.affixStyle,o&&r!==s.lastAffix&&o(s.lastAffix),e.setState(s)}}},e.prepareMeasure=function(){e.setState({status:N.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.render=function(){var t=e.context.getPrefixCls,n=e.state,o=n.affixStyle,u=n.placeholderStyle,s=e.props,l=s.prefixCls,f=s.children,p=i()(j({},t("affix",l),o)),d=Object(a.default)(e.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return r.createElement(c.default,{onResize:function(){e.updatePosition()}},r.createElement("div",x({},d,{ref:e.savePlaceholderNode}),o&&r.createElement("div",{style:u,"aria-hidden":"true"}),r.createElement("div",{className:p,ref:e.saveFixedNode,style:o},r.createElement(c.default,{onResize:function(){e.updatePosition()}},f))))},e}return t=s,(n=[{key:"getTargetFunc",value:function(){var e=this.context.getTargetContainer,t=this.props.target;return void 0!==t?t:e||A}},{key:"componentDidMount",value:function(){var e=this,t=this.getTargetFunc();t&&(this.timeout=setTimeout((function(){O(t(),e),e.updatePosition()})))}},{key:"componentDidUpdate",value:function(e){var t=this.state.prevTarget,n=this.getTargetFunc(),r=null;n&&(r=n()||null),t!==r&&(w(this),r&&(O(r,this),this.updatePosition()),this.setState({prevTarget:r})),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),w(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var e=this.getTargetFunc(),t=this.state.affixStyle;if(e&&t){var n=this.getOffsetTop(),r=this.getOffsetBottom(),o=e();if(o&&this.placeholderNode){var i=v(o),a=v(this.placeholderNode),c=m(a,i,n),u=y(a,i,r);if(void 0!==c&&t.top===c||void 0!==u&&t.bottom===u)return}}this.prepareMeasure()}}])&&S(t.prototype,n),o&&S(t,o),s}(r.Component);R.contextType=u.b,T([d()],R.prototype,"updatePosition",null),T([d()],R.prototype,"lazyUpdatePosition",null);t.a=R},function(e,t,n){"use strict";var r=n(0),o=n(297),i=n(196),a=function(e){return e?"function"==typeof e?e():e:null};function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},s=r.forwardRef((function(e,t){var n=e.prefixCls,s=e.title,l=e.content,f=u(e,["prefixCls","title","content"]),p=(0,r.useContext(i.b).getPrefixCls)("popover",n);return r.createElement(o.a,c({},f,{prefixCls:p,ref:t,overlay:function(e){return r.createElement(r.Fragment,null,s&&r.createElement("div",{className:"".concat(e,"-title")},a(s)),r.createElement("div",{className:"".concat(e,"-inner-content")},a(l)))}(p)}))}));s.displayName="Popover",s.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}};t.a=s}]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/antd.b85c5b4b.js b/plugins/saladict-ztools/ext-saladic/assets/antd.b85c5b4b.js deleted file mode 100644 index e5bc30c8..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/antd.b85c5b4b.js +++ /dev/null @@ -1,65 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[3,6,18,19,21],[,,,function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return c})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return l})),n.d(t,"__awaiter",(function(){return s})),n.d(t,"__generator",(function(){return f})),n.d(t,"__createBinding",(function(){return p})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return v})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return y})),n.d(t,"__await",(function(){return b})),n.d(t,"__asyncGenerator",(function(){return g})),n.d(t,"__asyncDelegator",(function(){return O})),n.d(t,"__asyncValues",(function(){return w})),n.d(t,"__makeTemplateObject",(function(){return j})),n.d(t,"__importStar",(function(){return x})),n.d(t,"__importDefault",(function(){return E})),n.d(t,"__classPrivateFieldGet",(function(){return S})),n.d(t,"__classPrivateFieldSet",(function(){return C})); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function c(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function s(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function p(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function d(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||c(e,t)}))})}function c(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,l):s(i[0][2],n)}catch(e){s(i[0][3],e)}var n}function u(e){c("next",e)}function l(e){c("throw",e)}function s(e,t){e(t),i.shift(),i.length&&c(i[0][0],i[0][1])}}function O(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function j(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){var r; -/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},,function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3),o=n(45),i=n(77),a=n(13),c=n(68),u=n(23),l=n(48),s=function(e){function t(n,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.a;break;case 1:if(!n){a.destination=i.a;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new f(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new f(a,n,r,o)}return a}return r.__extends(t,e),t.prototype[c.a]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.a),f=function(e){function t(t,n,r,a){var c,u=e.call(this)||this;u._parentSubscriber=t;var l=u;return Object(o.a)(n)?c=n:n&&(c=n.next,r=n.error,a=n.complete,n!==i.a&&(l=Object.create(n),Object(o.a)(l.unsubscribe)&&u.add(l.unsubscribe.bind(l)),l.unsubscribe=u.unsubscribe.bind(u))),u._context=l,u._next=c,u._error=r,u._complete=a,u}return r.__extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw e;Object(l.a)(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(Object(l.a)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(s)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(7);var o=n(68),i=n(77);var a=n(47),c=n(115);function u(e){return 0===e.length?c.a:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var l=n(23),s=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var a=this.operator,c=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new r.a(e,t,n):new r.a(i.a)}(e,t,n);if(a?c.add(a.call(c,this.source)):c.add(this.source||l.a.useDeprecatedSynchronousErrorHandling&&!c.syncErrorThrowable?this._subscribe(c):this._trySubscribe(c)),l.a.useDeprecatedSynchronousErrorHandling&&c.syncErrorThrowable&&(c.syncErrorThrowable=!1,c.syncErrorThrown))throw c.syncErrorValue;return c},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){l.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,n=t.closed,o=t.destination,i=t.isStopped;if(n||i)return!1;e=o&&o instanceof r.a?o:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=f(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[a.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:u(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=f(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function f(e){if(e||(e=l.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),o=n(7);function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.project,this.thisArg))},e}(),c=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.a)},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(54),o=n(114),i=n(45),a=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),c=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this._parentOrParents,c=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var s=0;s<n.length;++s){n[s].remove(this)}if(Object(i.a)(c))try{c.call(this)}catch(e){t=e instanceof a?u(e.errors):[e]}if(Object(r.a)(l)){s=-1;for(var f=l.length;++s<f;){var p=l[s];if(Object(o.a)(p))try{p.unsubscribe()}catch(e){t=t||[],e instanceof a?t=t.concat(u(e.errors)):t.push(e)}}}if(t)throw new a(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof e){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function u(e){return e.reduce((function(e,t){return e.concat(t instanceof a?t.errors:t)}),[])}},,,function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}t.a=function(e,t){var n;void 0===t&&(t=r);var o,i=[],a=!1;return function(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return a&&n===this&&t(r,i)||(o=e.apply(this,r),a=!0,n=this,i=r),o}}},,function(e,t,n){var r=n(201);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return B})),n.d(t,"d",(function(){return q})),n.d(t,"e",(function(){return X})),n.d(t,"f",(function(){return U})),n.d(t,"c",(function(){return C}));var r=n(0),o=n.n(r),i=(n(26),o.a.createContext(null));var a=function(e){e()},c={notify:function(){}};function u(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var l=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=c,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=u())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=c)},e}();var s=function(e){var t=e.store,n=e.context,a=e.children,c=Object(r.useMemo)((function(){var e=new l(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),u=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=c.subscription;return e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[c,u]);var s=n||i;return o.a.createElement(s.Provider,{value:c},a)},f=n(16),p=n(55),d=n(170),h=n.n(d),v=n(154),m="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,y=[],b=[null,null];function g(e,t){var n=e[1];return[t.payload,n+1]}function O(e,t,n){m((function(){return e.apply(void 0,t)}),n)}function w(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function j(e,t,n,r,o,i,a,c,u,l){if(e){var s=!1,f=null,p=function(){if(!s){var e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||u():(i.current=e,c.current=e,a.current=!0,l({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(s=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var x=function(){return[null,0]};function E(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,c=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,u=n.methodName,s=void 0===u?"connectAdvanced":u,d=n.renderCountProp,m=void 0===d?void 0:d,E=n.shouldHandleStateChanges,S=void 0===E||E,C=n.storeKey,_=void 0===C?"store":C,P=(n.withRef,n.forwardRef),k=void 0!==P&&P,M=n.context,N=void 0===M?i:M,T=Object(p.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),A=N;return function(t){var n=t.displayName||t.name||"Component",i=c(n),a=Object(f.a)({},T,{getDisplayName:c,methodName:s,renderCountProp:m,shouldHandleStateChanges:S,storeKey:_,displayName:i,wrappedComponentName:n,WrappedComponent:t}),u=T.pure;var d=u?r.useMemo:function(e){return e()};function E(n){var i=Object(r.useMemo)((function(){var e=n.forwardedRef,t=Object(p.a)(n,["forwardedRef"]);return[n.context,e,t]}),[n]),c=i[0],u=i[1],s=i[2],h=Object(r.useMemo)((function(){return c&&c.Consumer&&Object(v.isContextConsumer)(o.a.createElement(c.Consumer,null))?c:A}),[c,A]),m=Object(r.useContext)(h),E=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(m)&&Boolean(m.store);var C=E?n.store:m.store,_=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(C)}),[C]),P=Object(r.useMemo)((function(){if(!S)return b;var e=new l(C,E?null:m.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[C,E,m]),k=P[0],M=P[1],N=Object(r.useMemo)((function(){return E?m:Object(f.a)({},m,{subscription:k})}),[E,m,k]),T=Object(r.useReducer)(g,y,x),R=T[0][0],D=T[1];if(R&&R.error)throw R.error;var I=Object(r.useRef)(),L=Object(r.useRef)(s),F=Object(r.useRef)(),z=Object(r.useRef)(!1),H=d((function(){return F.current&&s===L.current?F.current:_(C.getState(),s)}),[C,R,s]);O(w,[L,I,z,s,H,F,M]),O(j,[S,C,k,_,L,I,z,F,M,D],[C,k,_]);var B=Object(r.useMemo)((function(){return o.a.createElement(t,Object(f.a)({},H,{ref:u}))}),[u,t,H]);return Object(r.useMemo)((function(){return S?o.a.createElement(h.Provider,{value:N},B):B}),[h,B,N])}var C=u?o.a.memo(E):E;if(C.WrappedComponent=t,C.displayName=i,k){var P=o.a.forwardRef((function(e,t){return o.a.createElement(C,Object(f.a)({},e,{forwardedRef:t}))}));return P.displayName=i,P.WrappedComponent=t,h()(P,t)}return h()(C,t)}}function S(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(S(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!S(e[n[o]],t[n[o]]))return!1;return!0}var _=n(98);function P(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function k(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function M(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=k(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=k(o),o=r(t,n)),o},r}}var N=[function(e){return"function"==typeof e?M(e):void 0},function(e){return e?void 0:P((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?P((function(t){return Object(_.b)(e,t)})):void 0}];var T=[function(e){return"function"==typeof e?M(e):void 0},function(e){return e?void 0:P((function(){return{}}))}];function A(e,t,n){return Object(f.a)({},n,{},e,{},t)}var R=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,c){var u=e(t,n,c);return a?o&&i(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return A}}];function D(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function I(e,t,n,r,o){var i,a,c,u,l,s=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1;function h(o,d){var h,v,m=!f(d,a),y=!s(o,i);return i=o,a=d,m&&y?(c=e(i,a),t.dependsOnOwnProps&&(u=t(r,a)),l=n(c,u,a)):m?(e.dependsOnOwnProps&&(c=e(i,a)),t.dependsOnOwnProps&&(u=t(r,a)),l=n(c,u,a)):y?(h=e(i,a),v=!p(h,c),c=h,v&&(l=n(c,u,a)),l):l}return function(o,s){return d?h(o,s):(c=e(i=o,a=s),u=t(r,a),l=n(c,u,a),d=!0,l)}}function L(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Object(p.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),c=r(e,i),u=o(e,i);return(i.pure?I:D)(a,c,u,e,i)}function F(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function z(e,t){return e===t}function H(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?E:n,o=t.mapStateToPropsFactories,i=void 0===o?T:o,a=t.mapDispatchToPropsFactories,c=void 0===a?N:a,u=t.mergePropsFactories,l=void 0===u?R:u,s=t.selectorFactory,d=void 0===s?L:s;return function(e,t,n,o){void 0===o&&(o={});var a=o,u=a.pure,s=void 0===u||u,h=a.areStatesEqual,v=void 0===h?z:h,m=a.areOwnPropsEqual,y=void 0===m?C:m,b=a.areStatePropsEqual,g=void 0===b?C:b,O=a.areMergedPropsEqual,w=void 0===O?C:O,j=Object(p.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),x=F(e,i,"mapStateToProps"),E=F(t,c,"mapDispatchToProps"),S=F(n,l,"mergeProps");return r(d,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:E,initMergeProps:S,pure:s,areStatesEqual:v,areOwnPropsEqual:y,areStatePropsEqual:g,areMergedPropsEqual:w},j))}}var B=H();function V(){return Object(r.useContext)(i)}function K(e){void 0===e&&(e=i);var t=e===i?V:function(){return Object(r.useContext)(e)};return function(){return t().store}}var U=K();function W(e){void 0===e&&(e=i);var t=e===i?U:K(e);return function(){return t().dispatch}}var q=W(),G=function(e,t){return e===t};function $(e){void 0===e&&(e=i);var t=e===i?V:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=G);var o=t();return function(e,t,n,o){var i,a=Object(r.useReducer)((function(e){return e+1}),0)[1],c=Object(r.useMemo)((function(){return new l(n,o)}),[n,o]),u=Object(r.useRef)(),s=Object(r.useRef)(),f=Object(r.useRef)();try{i=e!==s.current||u.current?e(n.getState()):f.current}catch(e){throw u.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),e}return m((function(){s.current=e,f.current=i,u.current=void 0})),m((function(){function e(){try{var e=s.current(n.getState());if(t(e,f.current))return;f.current=e}catch(e){u.current=e}a({})}return c.onStateChange=e,c.trySubscribe(),e(),function(){return c.tryUnsubscribe()}}),[n,c]),i}(e,n,o.store,o.subscription)}}var Y,X=$(),Z=n(20);Y=Z.unstable_batchedUpdates,a=Y},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},,function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(391)()},function(e,t,n){var r=n(357);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(215);var o=n(139),i=n(216);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(0),o=n(91),i=n(161);function a(e){return e}function c(e){return Object(i.a)(0)(e)}function u(){return new o.a}function l(e){var t=Object(r.useRef)(!0),n=Object(r.useRef)(null);return t.current&&(t.current=!1,n.current=e()),n}function s(){var e=Object(r.useState)(0)[1];return Object(r.useRef)((function(){return e(f)})).current}function f(e){return(e+1)%1e6}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(127);var o=n(214),i=n(139);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||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(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(94),o=n(126),i=n(8);function a(e,t,n,a,c){if(void 0===c&&(c=new r.a(e,n,a)),!c.closed)return t instanceof i.a?t.subscribe(c):Object(o.a)(t)(c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n(7).a)},function(e,t,n){var r=n(523);function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}},function(e,t,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),o=n(7);function i(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.predicate,this.thisArg))},e}(),c=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return r.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(o.a)},,,,function(e,t,n){"use strict";function r(e,t=window){if(e){const t=e.toString().trim();if(t)return t}const n=t.document.activeElement;if(n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName)){const e=n;return e.value.slice(e.selectionStart||0,e.selectionEnd||0)}return""}function o(e=window){return r(e.getSelection(),e)}function i(e){if(!e||e.rangeCount<=0)return"";const t=e.toString();if(!t.trim())return"";const n=e.getRangeAt(0);return n?(function(e){if(e){const t=/[.?!。?!…]/,n=/[^\s.?!。?!…]/;for(let r=e.length-1;r>=0;r--){const o=e[r];if(t.test(o)){if("."===o&&n.test(e[r+1]))continue;return e.slice(r+1)}}}return e}(c(n))+t+function(e){const t=/^((\.(?![\s.?!。?!…]))|[^.?!。?!…])*([.?!。?!…]){0,3}/.exec(e);return t?t[0]:""}(u(n))).replace(/\s+/g," ").trim():""}function a(e=window){return i(e.getSelection())}function c(e){let t=e.startContainer,n="";switch(t.nodeType){case Node.TEXT_NODE:{const r=t.textContent;r&&(n=r.slice(0,e.startOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:t=t.childNodes[e.startOffset]}for(let e=t;s(e);e=e.parentElement)for(let t=e.previousSibling;s(t);t=t.previousSibling)n=l(t)+n;return n}function u(e){let t=e.endContainer,n="";switch(t.nodeType){case Node.TEXT_NODE:{const r=t.textContent;r&&(n=r.slice(e.endOffset));break}case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:break;default:t=t.childNodes[e.endOffset-1]}for(let e=t;s(e);e=e.parentElement)for(let t=e.nextSibling;s(t);t=t.nextSibling)n+=l(t);return n}function l(e){return e.nodeType===Node.TEXT_NODE?e.nodeValue||"":e.nodeType===Node.ELEMENT_NODE&&e.innerText||""}function s(e){if(!e)return!1;switch(e.nodeType){case Node.TEXT_NODE:case Node.COMMENT_NODE:case Node.CDATA_SECTION_NODE:return!0;case Node.ELEMENT_NODE:switch(e.tagName){case"A":case"ABBR":case"B":case"BDI":case"BDO":case"BR":case"CITE":case"CODE":case"DATA":case"DFN":case"EM":case"I":case"KBD":case"MARK":case"Q":case"RP":case"RT":case"RTC":case"RUBY":case"S":case"SAMP":case"SMALL":case"SPAN":case"STRONG":case"SUB":case"SUP":case"TIME":case"U":case"VAR":case"WBR":return!0}}return!1}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(e,t,n){"use strict";function r(e){setTimeout((function(){throw e}),0)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(71),o=n(32);function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(8),o=n(54),i=n(45),a=n(10);function c(e,t,n,u){return Object(i.a)(n)&&(u=n,n=void 0),u?c(e,t,n).pipe(Object(a.a)((function(e){return Object(o.a)(e)?u.apply(void 0,e):u(e)}))):new r.a((function(r){!function e(t,n,r,o,i){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var c=t;t.addEventListener(n,r,i),a=function(){return c.removeEventListener(n,r,i)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var u=t;t.on(n,r),a=function(){return u.off(n,r)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var l=t;t.addListener(n,r),a=function(){return l.removeListener(n,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var s=0,f=t.length;s<f;s++)e(t[s],n,r,o,i)}o.add(a)}(e,t,(function(e){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(e)}),r,n)}))}},function(e,t,n){"use strict";var r=n(0),o=n(84),i=n(4),a=n.n(i),c=n(633),u=n(190),l=n(369),s=n.n(l),f=n(174),p=n.n(f),d=n(529),h=n.n(d),v=n(219),m=n.n(v),y=n(305),b=n.n(y),g=n(582),O=n.n(g);function w(e){var t=e.suffixIcon,n=e.clearIcon,o=e.menuItemSelectedIcon,i=e.removeIcon,a=e.loading,c=e.multiple,u=e.prefixCls,l=n;n||(l=r.createElement(b.a,null));var f=null;if(void 0!==t)f=t;else if(a)f=r.createElement(p.a,{spin:!0});else{var d="".concat(u,"-suffix");f=function(e){var t=e.open,n=e.showSearch;return t&&n?r.createElement(O.a,{className:d}):r.createElement(s.a,{className:d})}}return{clearIcon:l,suffixIcon:f,itemIcon:void 0!==o?o:c?r.createElement(h.a,null):null,removeIcon:void 0!==i?i:r.createElement(m.a,null)}}var j=n(148);function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(s,e);var t,n,i,l=k(s);function s(){var e;return C(this,s),(e=l.apply(this,arguments)).selectRef=r.createRef(),e.focus=function(){e.selectRef.current&&e.selectRef.current.focus()},e.blur=function(){e.selectRef.current&&e.selectRef.current.blur()},e.getMode=function(){var t=e.props.mode;if("combobox"!==t)return t===s.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":t},e.renderSelect=function(t){var n,i=t.getPopupContainer,u=t.getPrefixCls,l=t.renderEmpty,s=t.direction,f=t.virtual,p=t.dropdownMatchSelectWidth,d=e.props,h=d.prefixCls,v=d.notFoundContent,m=d.className,y=d.size,b=d.listHeight,g=void 0===b?256:b,O=d.listItemHeight,x=void 0===O?24:O,C=d.getPopupContainer,_=d.dropdownClassName,P=d.bordered,k=u("select",h),M=e.getMode(),N="multiple"===M||"tags"===M;n=void 0!==v?v:"combobox"===M?null:l("Select");var T=w(S(S({},e.props),{multiple:N,prefixCls:k})),A=T.suffixIcon,R=T.itemIcon,D=T.removeIcon,I=T.clearIcon,L=Object(o.default)(e.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),F=a()(_,E({},"".concat(k,"-dropdown-").concat(s),"rtl"===s));return r.createElement(j.b.Consumer,null,(function(t){var o,u=y||t,l=a()(m,(E(o={},"".concat(k,"-lg"),"large"===u),E(o,"".concat(k,"-sm"),"small"===u),E(o,"".concat(k,"-rtl"),"rtl"===s),E(o,"".concat(k,"-borderless"),!P),o));return r.createElement(c.default,S({ref:e.selectRef,virtual:f,dropdownMatchSelectWidth:p},L,{listHeight:g,listItemHeight:x,mode:M,prefixCls:k,direction:s,inputIcon:A,menuItemSelectedIcon:R,removeIcon:D,clearIcon:I,notFoundContent:n,className:l,getPopupContainer:C||i,dropdownClassName:F}))}))},e}return t=s,(n=[{key:"render",value:function(){return r.createElement(u.a,null,this.renderSelect)}}])&&_(t.prototype,n),i&&_(t,i),s}(r.Component);T.Option=c.Option,T.OptGroup=c.OptGroup,T.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",T.defaultProps={transitionName:"slide-up",choiceTransitionName:"zoom",bordered:!0};t.a=T},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));var r={};function o(e,t){0}function i(e,t){0}function a(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function c(e,t){a(i,e,t)}t.a=function(e,t){a(o,e,t)}},function(e,t,n){var r=n(66),o=n(58);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return r}))},,,function(e,t,n){var r=n(198),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},,function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(8),o=n(126),i=n(13),a=n(47);var c=n(93),u=n(67);var l=n(125),s=n(123);function f(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[a.a]}(e))return function(e,t){return new r.a((function(n){var r=new i.a;return r.add(t.schedule((function(){var o=e[a.a]();r.add(o.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(Object(l.a)(e))return function(e,t){return new r.a((function(n){var r=new i.a;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(Object(s.a)(e))return Object(c.a)(e,t);if(function(e){return e&&"function"==typeof e[u.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,o=new i.a;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(t.schedule((function(){r=e[u.a](),o.add(t.schedule((function(){if(!n.closed){var e,t;try{var o=r.next();e=o.value,t=o.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}})))}))),o}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function p(e,t){return t?f(e,t):e instanceof r.a?e:new r.a(Object(o.a)(e))}},function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)o(n,r)&&(e[r]=n[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){var t,n,r,o,i,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),o=0,t=0,n=e.length;t<n;t++)i=e[t],a.set(i,o),o+=i.length;return a}},a={arraySet:function(e,t,n,r,o){for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(r)},function(e,t,n){var r=n(117),o=n(324),i=n(325),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",(function(){return o}));var o=r()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},function(e,t,n){"use strict";var r=n(36),o=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(565)),a=o(n(227)),c=o(n(381)),u=r(n(0)),l=o(n(4)),s=o(n(872)),f=n(1025),p=n(705);(0,f.setTwoToneColor)("#1890ff");var d=u.forwardRef((function(e,t){var n=e.className,r=e.icon,o=e.spin,f=e.rotate,d=e.tabIndex,h=e.onClick,v=e.twoToneColor,m=(0,c.default)(e,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),y=(0,l.default)("anticon",(0,a.default)({},"anticon-".concat(r.name),Boolean(r.name)),n),b=(0,l.default)({"anticon-spin":!!o||"loading"===r.name}),g=d;void 0===g&&h&&(g=-1);var O=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,w=(0,p.normalizeTwoToneColors)(v),j=(0,i.default)(w,2),x=j[0],E=j[1];return u.createElement("span",Object.assign({role:"img","aria-label":r.name},m,{ref:t,tabIndex:g,onClick:h,className:y}),u.createElement(s.default,{className:b,icon:r,primaryColor:x,secondaryColor:E,style:O}))}));d.displayName="AntdIcon",d.getTwoToneColor=f.getTwoToneColor,d.setTwoToneColor=f.setTwoToneColor;var h=d;t.default=h},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(55);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){var r=n(254),o=n(320),i=n(331),a=n(51);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(8),o=n(54),i=n(45),a=n(10);function c(e,t,n){return n?c(e,t).pipe(Object(a.a)((function(e){return Object(o.a)(e)?n.apply(void 0,e):n(e)}))):new r.a((function(n){var r,o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)};try{r=e(o)}catch(e){return void n.error(e)}if(Object(i.a)(t))return function(){return t(o,r)}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(23),o=n(48),i={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(o.a)(e)},complete:function(){}}},,function(e,t,n){"use strict";var r=n(0),o=n(236),i=n(86),a=n(503),c=n(735);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(d,e);var t,n,o,u=p(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),t=u.call(this,e),Object(a.a)(e.locale&&e.locale.Modal),Object(i.a)("internalMark"===e._ANT_MARK__,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),t}return t=d,(n=[{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&Object(a.a)(t&&t.Modal)}},{key:"componentWillUnmount",value:function(){Object(a.a)()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.children;return r.createElement(c.a.Provider,{value:l(l({},t),{exist:!0})},n)}}])&&s(t.prototype,n),o&&s(t,o),d}(r.Component);v.defaultProps={locale:{}};var m=n(307),y=n(190),b=n(148),g=n(150),O=n(181);function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.a=function(e){r.useEffect((function(){e.direction&&(g.a.config({rtl:"rtl"===e.direction}),O.a.config({rtl:"rtl"===e.direction}))}),[e.direction]);var t=function(t){return function(n,r){var o=e.prefixCls;if(r)return r;var i=o||t.getPrefixCls("");return n?"".concat(i,"-").concat(n):i}};return r.createElement(m.a,null,(function(n,i,a){return r.createElement(y.a,null,(function(n){return function(n,i){var a=e.children,c=e.getTargetContainer,u=e.getPopupContainer,l=e.renderEmpty,s=e.csp,f=e.autoInsertSpaceInButton,p=e.form,d=e.input,h=e.locale,m=e.pageHeader,g=e.componentSize,O=e.direction,j=e.space,x=e.virtual,E=e.dropdownMatchSelectWidth,S=w(w({},n),{getPrefixCls:t(n),csp:s,autoInsertSpaceInButton:f,locale:h||i,direction:O,space:j,virtual:x,dropdownMatchSelectWidth:E});c&&(S.getTargetContainer=c),u&&(S.getPopupContainer=u),l&&(S.renderEmpty=l),m&&(S.pageHeader=m),d&&(S.input=d);var C=a,_={};return h&&h.Form&&h.Form.defaultValidateMessages&&(_=h.Form.defaultValidateMessages),p&&p.validateMessages&&(_=w(w({},_),p.validateMessages)),Object.keys(_).length>0&&(C=r.createElement(o.FormProvider,{validateMessages:_},a)),r.createElement(b.a,{size:g},r.createElement(y.b.Provider,{value:S},r.createElement(v,{locale:h||i,_ANT_MARK__:"internalMark"},C)))}(n,a)}))}))}},,,function(e,t,n){"use strict";var r=n(586);t.a=r.b},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),o=n(7);function i(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.value))},e}(),c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return r.__extends(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(o.a)},function(e,t,n){"use strict";n.r(t);var r=n(189),o=n.n(r);t.default=function(e,t){for(var n=o()({},e),r=0;r<t.length;r++){delete n[t[r]]}return n}},function(e,t,n){"use strict";var r={};(0,n(65).assign)(r,n(312),n(315),n(196)),e.exports=r},function(e,t,n){"use strict";var r=n(56);t.a=function(e,t,n){Object(r.a)(e,"[antd: ".concat(t,"] ").concat(n))}},,function(e,t,n){var r=n(338),o=n(341);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";var r=n(16),o=n(55),i=n(129);n(26);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var c=n(0),u=n.n(c),l=n(20),s=n.n(l),f=!1,p=u.a.createContext(null),d=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[s.a.findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),u=r?c.appear:c.enter;!e&&!n||f?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s.a.findDOMNode(this);t&&!f?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:s.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(o.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return u.a.createElement(p.Provider,{value:null},"function"==typeof n?n(e,r):u.a.cloneElement(u.a.Children.only(n),r))},t}(u.a.Component);function h(){}d.contextType=p,d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},d.UNMOUNTED="unmounted",d.EXITED="exited",d.ENTERING="entering",d.ENTERED="entered",d.EXITING="exiting";var v=d,m=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Object(i.a)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&m(e,r),o&&m(e,o),i&&m(e,i)},n.render=function(){var e=this.props,t=(e.classNames,Object(o.a)(e,["classNames"]));return u.a.createElement(v,Object(r.a)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(u.a.Component);y.defaultProps={classNames:""},y.propTypes={};t.a=y},function(e,t,n){var r=n(66),o=n(58);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return f}));var r=n(3),o=n(8),i=n(7),a=n(13),c=n(69),u=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.__extends(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(a.a),l=n(68),s=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r.__extends(t,e),t}(i.a),f=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.__extends(t,e),t.prototype[l.a]=function(){return new s(this)},t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new c.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new c.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new c.a;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new c.a;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new c.a;return this.hasError?(e.error(this.thrownError),a.a.EMPTY):this.isStopped?(e.complete(),a.a.EMPTY):(this.observers.push(e),new u(this,e))},t.prototype.asObservable=function(){var e=new o.a;return e.source=this,e},t.create=function(e,t){return new p(e,t)},t}(o.a),p=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return r.__extends(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.a.EMPTY},t}(f)},function(e,t,n){"use strict";var r=n(480),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function c(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return c(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(8),o=n(13);function i(e,t){return new r.a((function(n){var r=new o.a,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),o=function(e){function t(t,n,r){var o=e.call(this)||this;return o.parent=t,o.outerValue=n,o.outerIndex=r,o.index=0,o}return r.__extends(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n(7).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(96),o=n(132);function i(){return Object(o.a)(1)}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i()(r.a.apply(void 0,e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(59),o=n(99),i=n(93);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return Object(r.a)(n)?(e.pop(),Object(i.a)(e,n)):Object(o.a)(e)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return c}));var r=n(228),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function c(e,t,n){var o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(c)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var u=e,l=t,s=[],f=s,p=!1;function d(){f===s&&(f=s.slice())}function h(){if(p)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function v(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(p)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return d(),f.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,d();var n=f.indexOf(e);f.splice(n,1),s=null}}}function m(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,l=u(l,e)}finally{p=!1}for(var t=s=f,n=0;n<t.length;n++){(0,t[n])()}return e}function y(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");u=e,m({type:i.REPLACE})}function b(){var e,t=v;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e}return m({type:i.INIT}),(o={dispatch:m,subscribe:v,getState:h,replaceReducer:y})[r.a]=b,o}function u(e,t){return function(){return t(e.apply(this,arguments))}}function l(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return p({},n,{dispatch:r=d.apply(void 0,i)(n.dispatch)})}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(8),o=n(124),i=n(93);function a(e,t){return t?Object(i.a)(e,t):new r.a(Object(o.a)(e))}},function(e,t,n){var r=n(66),o=n(51),i=n(58);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t,n){for(var r=n(1053),o="undefined"==typeof window?global:window,i=["moz","webkit"],a="AnimationFrame",c=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],l=0;!c&&l<i.length;l++)c=o[i[l]+"Request"+a],u=o[i[l]+"Cancel"+a]||o[i[l]+"CancelRequest"+a];if(!c||!u){var s=0,f=0,p=[];c=function(e){if(0===p.length){var t=r(),n=Math.max(0,1e3/60-(t-s));s=n+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(s)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return p.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return c.call(o,e)},e.exports.cancel=function(){u.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=c,e.cancelAnimationFrame=u}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n(0),o=r.isValidElement;function i(e,t,n){return o(e)?r.cloneElement(e,"function"==typeof n?n():n):t}function a(e,t){return i(e,e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r,o=n(118),i=n(96),a=n(8);function c(e){var t=e.error;e.subscriber.error(t)}r||(r={});var u=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e,t;switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return e=this.error,t?new a.a((function(n){return t.schedule(c,0,{error:e,subscriber:n})})):new a.a((function(t){return t.error(e)}));case"C":return Object(o.b)()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(8),o=n(59),i=n(132),a=n(99);function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,c=null,u=e[e.length-1];return Object(o.a)(u)?(c=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof u&&(n=e.pop()),null===c&&1===e.length&&e[0]instanceof r.a?e[0]:Object(i.a)(n)(Object(a.a)(e,c))}},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(28),a=n(72),c=n(4),u=n.n(c),l=n(387),s=n(37),f=r.forwardRef((function(e,t){var n,c=e.prefixCls,f=void 0===c?"rc-switch":c,p=e.className,d=e.checked,h=e.defaultChecked,v=e.disabled,m=e.loadingIcon,y=e.checkedChildren,b=e.unCheckedChildren,g=e.onClick,O=e.onChange,w=e.onKeyDown,j=Object(a.a)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),x=Object(l.a)(!1,{value:d,defaultValue:h}),E=Object(i.a)(x,2),S=E[0],C=E[1];function _(e,t){var n=S;return v||(C(n=e),null==O||O(n,t)),n}var P=u()(f,p,(n={},Object(o.a)(n,"".concat(f,"-checked"),S),Object(o.a)(n,"".concat(f,"-disabled"),v),n));return r.createElement("button",Object.assign({},j,{type:"button",role:"switch","aria-checked":S,disabled:v,className:P,ref:t,onKeyDown:function(e){e.which===s.a.LEFT?_(!1,e):e.which===s.a.RIGHT&&_(!0,e),null==w||w(e)},onClick:function(e){var t=_(!S,e);null==g||g(t,e)}}),m,r.createElement("span",{className:"".concat(f,"-inner")},S?y:b))}));f.displayName="Switch";var p=f,d=n(174),h=n.n(d),v=n(757),m=n(190),y=n(148),b=n(86);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},j=r.forwardRef((function(e,t){var n,o=e.prefixCls,i=e.size,a=e.loading,c=e.className,l=void 0===c?"":c,s=e.disabled,f=w(e,["prefixCls","size","loading","className","disabled"]);Object(b.a)("checked"in f||!("value"in f),"Switch","`value` is not a valid prop, do you mean `checked`?");var d=r.useContext(m.b),j=d.getPrefixCls,x=d.direction,E=r.useContext(y.b),S=j("switch",o),C=r.createElement("div",{className:"".concat(S,"-handle")},a&&r.createElement(h.a,{className:"".concat(S,"-loading-icon")})),_=u()(l,(O(n={},"".concat(S,"-small"),"small"===(i||E)),O(n,"".concat(S,"-loading"),a),O(n,"".concat(S,"-rtl"),"rtl"===x),n));return r.createElement(v.a,{insertExtraNode:!0},r.createElement(p,g({},f,{prefixCls:S,className:_,disabled:s||a,ref:t,loadingIcon:C})))}));j.__ANT_SWITCH=!0,j.displayName="Switch";t.a=j},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(112),o=new(n(111).a)(r.a)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),o=n(35),i=n(94),a=n(34),c=n(10),u=n(64);function l(e,t){return"function"==typeof t?function(n){return n.pipe(l((function(n,r){return Object(u.a)(e(n,r)).pipe(Object(c.a)((function(e,o){return t(n,e,r,o)})))})))}:function(t){return t.lift(new s(e))}}var s=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new f(e,this.project))},e}(),f=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new i.a(this,t,n),c=this.destination;c.add(o),this.innerSubscription=Object(a.a)(this,e,void 0,void 0,o),this.innerSubscription!==o&&c.add(this.innerSubscription)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t}(o.a)},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(144);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),o=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),i=function(e){function t(n,r){void 0===r&&(r=o.now);var i=e.call(this,n,(function(){return t.delegate&&t.delegate!==i?t.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return r.__extends(t,e),t.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,o):e.prototype.schedule.call(this,n,r,o)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),o=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r.__extends(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return r.__extends(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(13).a))},,function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(30);function i(e,t){var n=Object(o.e)(o.a),i=Object(o.e)((function(){return e(n.current)}));return[Object(r.useRef)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.current.next(t?t(e):e[0])})).current,i.current]}},function(e,t,n){var r=n(62).Symbol;e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(8),o=new r.a((function(e){return e.complete()}));function i(e){return e?function(e){return new r.a((function(t){return e.schedule((function(){return t.complete()}))}))}(e):o}},,function(e,t,n){var r=n(88)(Object,"create");e.exports=r},function(e,t,n){var r=n(158);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(352);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}}},function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(124),o=n(48),i=n(67),a=n(47),c=n(123),u=n(125),l=n(114),s=function(e){if(e&&"function"==typeof e[a.a])return s=e,function(e){var t=s[a.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(c.a)(e))return Object(r.a)(e);if(Object(u.a)(e))return n=e,function(e){return n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,o.a),e};if(e&&"function"==typeof e[i.a])return t=e,function(e){for(var n=t[i.a]();;){var r=void 0;try{r=n.next()}catch(t){return e.error(t),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e};var t,n,s,f=Object(l.a)(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+f+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),o=n(35),i=n(34);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n;"function"==typeof e[e.length-1]&&(n=e.pop());var r=e;return t.lift(new c(r,n))}}var c=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.observables,this.project))},e}(),u=function(e){function t(t,n,r){var o=e.call(this,t)||this;o.observables=n,o.project=r,o.toRespond=[];var a=n.length;o.values=new Array(a);for(var c=0;c<a;c++)o.toRespond.push(c);for(c=0;c<a;c++){var u=n[c];o.add(Object(i.a)(o,u,u,c))}return o}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.values[n]=t;var i=this.toRespond;if(i.length>0){var a=i.indexOf(n);-1!==a&&i.splice(a,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.a)},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(308),i=n(30);function a(e,t){if(!t)return Object(i.e)(e).current;var n=Object(i.e)((function(){return new o.a(t)})),a=Object(i.e)((function(){return e(n.current)})),c=Object(r.useRef)(!0);return Object(r.useEffect)((function(){c.current?c.current=!1:n.current.next(t)}),t),a.current}},function(e,t,n){e.exports=window.axios},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(145),o=n(115);function i(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(r.a)(o.a,e)}},,function(e,t,n){var r=n(203),o=n(208),i=n(393);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},,function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(236),c=n(190),u=n(84),l=r.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),s=r.createContext({updateItemErrors:function(){}});function f(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function p(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function d(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return p(n.overflowY,t)||p(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function h(e,t,n,r,o,i,a,c){return i<e&&a>t||i>e&&a<t?0:i<=e&&c<=n||a>=t&&c>=n?i-e-r:a>t&&c<n||i<e&&c>n?a-t+o:0}var v=function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,c="function"==typeof i?i:function(e){return e!==i};if(!f(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,l=[],s=e;f(s)&&c(s);){if((s=s.parentNode)===u){l.push(s);break}s===document.body&&d(s)&&!d(document.documentElement)||d(s,a)&&l.push(s)}for(var p=window.visualViewport?visualViewport.width:innerWidth,v=window.visualViewport?visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),g=b.height,O=b.width,w=b.top,j=b.right,x=b.bottom,E=b.left,S="start"===r||"nearest"===r?w:"end"===r?x:w+g/2,C="center"===o?E+O/2:"end"===o?j:E,_=[],P=0;P<l.length;P++){var k=l[P],M=k.getBoundingClientRect(),N=M.height,T=M.width,A=M.top,R=M.right,D=M.bottom,I=M.left;if("if-needed"===n&&w>=0&&E>=0&&x<=v&&j<=p&&w>=A&&x<=D&&E>=I&&j<=R)return _;var L=getComputedStyle(k),F=parseInt(L.borderLeftWidth,10),z=parseInt(L.borderTopWidth,10),H=parseInt(L.borderRightWidth,10),B=parseInt(L.borderBottomWidth,10),V=0,K=0,U="offsetWidth"in k?k.offsetWidth-k.clientWidth-F-H:0,W="offsetHeight"in k?k.offsetHeight-k.clientHeight-z-B:0;if(u===k)V="start"===r?S:"end"===r?S-v:"nearest"===r?h(y,y+v,v,z,B,y+S,y+S+g,g):S-v/2,K="start"===o?C:"center"===o?C-p/2:"end"===o?C-p:h(m,m+p,p,F,H,m+C,m+C+O,O),V=Math.max(0,V+y),K=Math.max(0,K+m);else{V="start"===r?S-A-z:"end"===r?S-D+B+W:"nearest"===r?h(A,D,N,z,B+W,S,S+g,g):S-(A+N/2)+W/2,K="start"===o?C-I-F:"center"===o?C-(I+T/2)+U/2:"end"===o?C-R+H+U:h(I,R,T,F,H+U,C,C+O,O);var q=k.scrollLeft,G=k.scrollTop;S+=G-(V=Math.max(0,Math.min(G+V,k.scrollHeight-N+W))),C+=q-(K=Math.max(0,Math.min(q+K,k.scrollWidth-T+U)))}_.push({el:k,top:V,left:K})}return _};function m(e){return e===Object(e)&&0!==Object.keys(e).length}var y=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(m(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:v(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:m(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(v(e,r),r.behavior)}};function b(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function g(e,t){if(e.length){var n=e.join("_");return t?"".concat(t,"_").concat(n):n}}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(e,t)||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 j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e){return b(e).join("_")}function E(e){var t=w(Object(a.useForm)(),1)[0],n=Object(r.useRef)({}),o=Object(r.useMemo)((function(){return e||O(O({},t),{__INTERNAL__:{itemRef:function(e){return function(t){var r=x(e);t?n.current[r]=t:delete n.current[r]}}},scrollToField:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b(e),r=g(n,o.__INTERNAL__.name),i=r?document.getElementById(r):null;i&&y(i,O({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:function(e){var t=x(e);return n.current[t]}})}),[e,t]);return[o]}var S=n(148);function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e,t)||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 P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},N=function(e,t){var n,o=r.useContext(S.b),u=r.useContext(c.b),s=u.getPrefixCls,f=u.direction,p=e.name,d=e.prefixCls,h=e.className,v=void 0===h?"":h,m=e.size,y=void 0===m?o:m,b=e.form,g=e.colon,O=e.labelAlign,w=e.labelCol,j=e.wrapperCol,x=e.hideRequiredMark,P=e.layout,N=void 0===P?"horizontal":P,T=e.scrollToFirstError,A=e.onFinishFailed,R=M(e,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","onFinishFailed"]),D=s("form",d),I=i()(D,(k(n={},"".concat(D,"-").concat(N),!0),k(n,"".concat(D,"-hide-required-mark"),x),k(n,"".concat(D,"-rtl"),"rtl"===f),k(n,"".concat(D,"-").concat(y),y),n),v),L=_(E(b),1)[0],F=L.__INTERNAL__;F.name=p;var z=r.useMemo((function(){return{name:p,labelAlign:O,labelCol:w,wrapperCol:j,vertical:"vertical"===N,colon:g,itemRef:F.itemRef}}),[p,O,w,j,N,g]);r.useImperativeHandle(t,(function(){return L}));return r.createElement(S.a,{size:y},r.createElement(l.Provider,{value:z},r.createElement(a.default,C({id:p},R,{onFinishFailed:function(e){A&&A(e),T&&e.errorFields.length&&L.scrollToField(e.errorFields[0].name)},form:L,className:I}))))},T=r.forwardRef(N),A=n(492),R=n.n(A),D=n(238),I=n(175),L=n(815),F=n(171),z=n(86),H=n(631);function B(){return(B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=function(e){var t=e.prefixCls,n=e.label,o=e.htmlFor,a=e.labelCol,c=e.labelAlign,u=e.colon,s=e.required;return n?r.createElement(l.Consumer,{key:"label"},(function(e){var l,f=e.vertical,p=e.labelAlign,d=e.labelCol,h=e.colon,v=a||d||{},m=c||p,y="".concat(t,"-item-label"),b=i()(y,"left"===m&&"".concat(y,"-left"),v.className),g=n,O=!0===u||!1!==h&&!1!==u;O&&!f&&"string"==typeof n&&""!==n.trim()&&(g=n.replace(/[:|:]\s*$/,""));var w=i()((V(l={},"".concat(t,"-item-required"),s),V(l,"".concat(t,"-item-no-colon"),!O),l));return r.createElement(H.a,B({},v,{className:b}),r.createElement("label",{htmlFor:o,className:w,title:"string"==typeof n?n:""},g))})):null},U=n(174),W=n.n(U),q=n(305),G=n.n(q),$=n(527),Y=n.n($),X=n(622),Z=n.n(X),J=n(740),Q=n(306);function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return te(e,t)}(e,t)||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 te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ne(){return(ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(e,t)}(e,t)||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 oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ie={success:Y.a,warning:Z.a,error:G.a,validating:W.a},ae=function(e){var t=e.prefixCls,n=e.wrapperCol,o=e.children,a=e.help,c=e.errors,u=e.onDomErrorVisibleChange,s=e.hasFeedback,f=e.validateStatus,p=e.extra,d=re(r.useState({}),2)[1],h="".concat(t,"-item"),v=r.useContext(l),m=n||v.wrapperCol||{},y=i()("".concat(h,"-control"),m.className),b=re(function(e,t,n){var o=r.useRef({errors:e,visible:!!e.length}),i=ee(r.useState({}),2)[1],a=function(){var n=o.current.visible,r=!!e.length,a=o.current.errors;o.current.errors=e,o.current.visible=r,n!==r?t(r):(a.length!==e.length||a.some((function(t,n){return t!==e[n]})))&&i({})};return r.useEffect((function(){if(!n){var e=setTimeout(a,10);return function(){return clearTimeout(e)}}}),[e]),n&&a(),[o.current.visible,o.current.errors]}(c,(function(e){e&&Promise.resolve().then((function(){u(!0)})),d({})}),!!a),2),g=b[0],O=b[1];r.useEffect((function(){return function(){u(!1)}}),[]);var w=Object(J.a)((function(){return O}),g,(function(e,t){return t})),j=f&&ie[f],x=s&&j?r.createElement("span",{className:"".concat(h,"-children-icon")},r.createElement(j,null)):null,E=ne({},v);return delete E.labelCol,delete E.wrapperCol,r.createElement(l.Provider,{value:E},r.createElement(H.a,ne({},m,{className:y}),r.createElement("div",{className:"".concat(h,"-control-input")},r.createElement("div",{className:"".concat(h,"-control-input-content")},o),x),r.createElement(Q.a,{motionDeadline:500,visible:g,motionName:"show-help",onLeaveEnd:function(){u(!1)},motionAppear:!0,removeOnLeave:!0},(function(e){var t=e.className;return r.createElement("div",{className:i()("".concat(h,"-explain"),t),key:"help"},w.map((function(e,t){return r.createElement("div",{key:t},e)})))})),p&&r.createElement("div",{className:"".concat(h,"-extra")},p)))},ce=n(102),ue=n(101),le=n.n(ue);function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fe(e,t)}(e,t)||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 fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pe(e){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(e){return function(e){if(Array.isArray(e))return ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||be(e)||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 ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(){return(me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||be(e,t)||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 be(e,t){if(e){if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},we=(Object(F.a)("success","warning","error","validating",""),r.memo((function(e){return e.children}),(function(e,t){return e.value===t.value&&e.update===t.update})));var je=function(e){var t=e.name,n=e.fieldKey,o=e.noStyle,f=e.dependencies,p=e.prefixCls,d=e.style,h=e.className,v=e.shouldUpdate,m=e.hasFeedback,y=e.help,O=e.rules,w=e.validateStatus,j=e.children,x=e.required,E=e.label,S=e.trigger,C=void 0===S?"onChange":S,_=e.validateTrigger,P=e.hidden,k=Oe(e,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),M=r.useRef(!1),N=r.useContext(c.b).getPrefixCls,T=r.useContext(l).name,A=r.useContext(s).updateItemErrors,F=ye(r.useState(!!y),2),H=F[0],B=F[1],V=r.useRef(w),U=ye(function(e){var t=se(r.useState(e),2),n=t[0],o=t[1],i=Object(r.useRef)(null),a=Object(r.useRef)([]),c=Object(r.useRef)(!1);return r.useEffect((function(){return function(){c.current=!0,le.a.cancel(i.current)}}),[]),[n,function(e){c.current||(null===i.current&&(a.current=[],i.current=le()((function(){i.current=null,o((function(e){var t=e;return a.current.forEach((function(e){t=e(t)})),t}))}))),a.current.push(e))}]}({}),2),W=U[0],q=U[1],G=r.useContext(D.b).validateTrigger,$=void 0!==_?_:G;function Y(e){M.current||B(e)}var X=function(e){return null===e&&Object(z.a)(!1,"Form.Item","`null` is passed as `name` property"),!(null==e)}(t),Z=r.useRef([]);r.useEffect((function(){return function(){M.current=!0,A(Z.current.join("__SPLIT__"),[])}}),[]);var J,Q,ee=N("form",p),te=o?A:function(e,t){R()(W[e],t)||q((function(n){return me(me({},n),ve({},e,t))}))},ne=(J=r.useContext(l).itemRef,Q=r.useRef({}),function(e,t){var n=t&&"object"===pe(t)&&t.ref,r=e.join("_");return Q.current.name===r&&Q.current.originRef===n||(Q.current.name=r,Q.current.originRef=n,Q.current.ref=Object(I.a)(J(e),n)),Q.current.ref});function re(t,n,a,c){var l,f;if(o)return t;null!=y?f=b(y):(f=a?a.errors:[],Object.keys(W).forEach((function(e){var t=W[e]||[];t.length&&(f=[].concat(he(f),he(t)))})));var p="";void 0!==w?p=w:a&&a.validating?p="validating":!y&&f.length?p="error":a&&a.touched&&(p="success"),H&&y&&(V.current=p);var v=(ve(l={},"".concat(ee,"-item"),!0),ve(l,"".concat(ee,"-item-with-help"),H||y),ve(l,"".concat(h),!!h),ve(l,"".concat(ee,"-item-has-feedback"),p&&m),ve(l,"".concat(ee,"-item-has-success"),"success"===p),ve(l,"".concat(ee,"-item-has-warning"),"warning"===p),ve(l,"".concat(ee,"-item-has-error"),"error"===p),ve(l,"".concat(ee,"-item-has-error-leave"),!y&&H&&"error"===V.current),ve(l,"".concat(ee,"-item-is-validating"),"validating"===p),ve(l,"".concat(ee,"-item-hidden"),P),l);return r.createElement(L.a,me({className:i()(v),style:d,key:"row"},Object(u.default)(k,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),r.createElement(K,me({htmlFor:n,required:c},e,{prefixCls:ee})),r.createElement(ae,me({},e,a,{errors:f,prefixCls:ee,onDomErrorVisibleChange:Y,validateStatus:p}),r.createElement(s.Provider,{value:{updateItemErrors:te}},t)))}var oe="function"==typeof j,ie=r.useRef(0);if(ie.current+=1,!X&&!oe&&!f)return re(j);var ue={};return"string"==typeof E&&(ue.label=E),r.createElement(a.Field,me({},e,{messageVariables:ue,trigger:C,validateTrigger:$,onReset:function(){Y(!1)}}),(function(i,a,c){var u=a.errors,l=b(t).length&&a?a.name:[],s=g(l,T);if(o){if(Z.current=he(l),n){var p=Array.isArray(n)?n:[n];Z.current=[].concat(he(l.slice(0,-1)),he(p))}A(Z.current.join("__SPLIT__"),u)}var d=void 0!==x?x:!(!O||!O.some((function(e){if(e&&"object"===de(e)&&e.required)return!0;if("function"==typeof e){var t=e(c);return t&&t.required}return!1}))),h=me({},i),m=null;if(Array.isArray(j)&&X)Object(z.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),m=j;else if(!oe||v&&!X)if(!f||oe||X)if(Object(ce.b)(j)){Object(z.a)(void 0===j.props.defaultValue,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var y=me(me({},j.props),h);y.id||(y.id=s),Object(I.b)(j)&&(y.ref=ne(l,j)),new Set([].concat(he(b(C)),he(b($)))).forEach((function(e){y[e]=function(){for(var t,n,r,o,i,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];null===(r=h[e])||void 0===r||(t=r).call.apply(t,[h].concat(c)),null===(i=(o=j.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(c))}})),m=r.createElement(we,{value:h[e.valuePropName||"value"],update:ie.current},Object(ce.a)(j,y))}else oe&&v&&!X?m=j(c):(Object(z.a)(!l.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),m=j);else Object(z.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else Object(z.a)(!!v,"Form.Item","`children` of render props only work with `shouldUpdate`."),Object(z.a)(!X,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");return re(m,s,a,d)}))};function xe(){return(xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Se=function(e){var t=e.children,n=Ee(e,["children"]);return Object(z.a)(!!n.name,"Form.List","Miss `name` prop."),r.createElement(a.List,n,(function(e,n){return t(e.map((function(e){return xe(xe({},e),{fieldKey:e.key})})),n)}))},Ce=T;Ce.Item=je,Ce.List=Se,Ce.useForm=E,Ce.Provider=function(e){var t=Object(u.default)(e,["prefixCls"]);return r.createElement(a.FormProvider,t)},Ce.create=function(){Object(z.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};t.a=Ce},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(346),o=n(347),i=n(348),a=n(349),c=n(350);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(127);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},,,,function(e,t,n){var r=n(51),o=n(162),i=n(332),a=n(257);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(66),o=n(58);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),o=n(34),i=n(35),a=n(94),c=n(10),u=n(64);function l(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(l((function(n,r){return Object(u.a)(e(n,r)).pipe(Object(c.a)((function(e,o){return t(n,e,r,o)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new s(e,n))})}var s=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new f(e,this.project,this.concurrent))},e}(),f=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=e.call(this,t)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.__extends(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=new a.a(this,t,n),i=this.destination;i.add(r);var c=Object(o.a)(this,e,void 0,void 0,r);c!==r&&i.add(c)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(54);function o(e){return!Object(r.a)(e)&&e-parseFloat(e)+1>=0}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1042))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=r.createContext(void 0),i=function(e){var t=e.children,n=e.size;return r.createElement(o.Consumer,null,(function(e){return r.createElement(o.Provider,{value:n||e},t)}))};t.b=o},,function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(574),c=n(174),u=n.n(c),l=n(622),s=n.n(l),f=n(305),p=n.n(f),d=n(527),h=n.n(d),v=n(802);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b,g,O,w,j=3,x=1,E="ant-message",S="move-up",C=!1;var _={info:n.n(v).a,success:h.a,error:p.a,warning:s.a,loading:u.a};var P={open:function(e){var t,n=void 0!==e.duration?e.duration:j,o=_[e.type],c=i()("".concat(E,"-custom-content"),(y(t={},"".concat(E,"-").concat(e.type),e.type),y(t,"".concat(E,"-rtl"),!0===C),t)),u=e.key||x++,l=new Promise((function(t){var i=function(){return"function"==typeof e.onClose&&e.onClose(),t(!0)};!function(e){g?e(g):a.default.newInstance({prefixCls:E,transitionName:S,style:{top:b},getContainer:O,maxCount:w},(function(t){g?e(g):(g=t,e(t))}))}((function(t){t.notice({key:u,duration:n,style:e.style||{},className:e.className,content:r.createElement("div",{className:c},e.icon||o&&r.createElement(o,null),r.createElement("span",null,e.content)),onClose:i})}))})),s=function(){g&&g.removeNotice(u)};return s.then=function(e,t){return l.then(e,t)},s.promise=l,s},config:function(e){void 0!==e.top&&(b=e.top,g=null),void 0!==e.duration&&(j=e.duration),void 0!==e.prefixCls&&(E=e.prefixCls),void 0!==e.getContainer&&(O=e.getContainer),void 0!==e.transitionName&&(S=e.transitionName,g=null),void 0!==e.maxCount&&(w=e.maxCount,g=null),void 0!==e.rtl&&(C=e.rtl)},destroy:function(){g&&(g.destroy(),g=null)}};["success","info","warning","error","loading"].forEach((function(e){P[e]=function(t,n,r){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(t)?P.open(m(m({},t),{type:e})):("function"==typeof n&&(r=n,n=void 0),P.open({content:t,duration:n,type:e,onClose:r}))}})),P.warn=P.warning,t.a=P},function(e,t,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,n){var r=n(255),o=n(328),i=n(153);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(200),o=n(157);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){"use strict";e.exports=n(509)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(8),o=n(106),i=n(146),a=n(59);function c(e,t,n){void 0===e&&(e=0);var c=-1;return Object(i.a)(t)?c=Number(t)<1?1:Number(t):Object(a.a)(t)&&(n=t),Object(a.a)(n)||(n=o.a),new r.a((function(t){var r=Object(i.a)(e)?e:+e-n.now();return n.schedule(u,r,{index:0,period:c,subscriber:t})}))}function u(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ConfigConsumer",{enumerable:!0,get:function(){return u.ConfigConsumer}}),Object.defineProperty(t,"ConfigContext",{enumerable:!0,get:function(){return u.ConfigContext}}),t.default=t.configConsumerProps=void 0;var o=h(n(0)),i=n(236),a=h(n(1233)),c=p(n(793)),u=n(794),l=n(619),s=p(n(1239)),f=p(n(1240));function p(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];var m=function(e){o.useEffect((function(){e.direction&&(s.default.config({rtl:"rtl"===e.direction}),f.default.config({rtl:"rtl"===e.direction}))}),[e.direction]);var t=function(t){return function(n,r){var o=e.prefixCls;if(r)return r;var i=o||t.getPrefixCls("");return n?"".concat(i,"-").concat(n):i}};return o.createElement(c.default,null,(function(n,r,c){return o.createElement(u.ConfigConsumer,null,(function(n){return function(n,r){var c=e.children,s=e.getTargetContainer,f=e.getPopupContainer,p=e.renderEmpty,d=e.csp,h=e.autoInsertSpaceInButton,m=e.form,y=e.input,b=e.locale,g=e.pageHeader,O=e.componentSize,w=e.direction,j=e.space,x=e.virtual,E=e.dropdownMatchSelectWidth,S=v(v({},n),{getPrefixCls:t(n),csp:d,autoInsertSpaceInButton:h,locale:b||r,direction:w,space:j,virtual:x,dropdownMatchSelectWidth:E});s&&(S.getTargetContainer=s),f&&(S.getPopupContainer=f),p&&(S.renderEmpty=p),g&&(S.pageHeader=g),y&&(S.input=y);var C=c,_={};return b&&b.Form&&b.Form.defaultValidateMessages&&(_=b.Form.defaultValidateMessages),m&&m.validateMessages&&(_=v(v({},_),m.validateMessages)),Object.keys(_).length>0&&(C=o.createElement(i.FormProvider,{validateMessages:_},c)),o.createElement(l.SizeContextProvider,{size:O},o.createElement(u.ConfigContext.Provider,{value:S},o.createElement(a.default,{locale:b||r,_ANT_MARK__:a.ANT_MARK},C)))}(n,c)}))}))};t.default=m},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(t){return Object(r.a)(i(e,n))(t)}}function i(e,t){return function(n){for(var r=n,o=0;o<t;o++){var i=null!=r?r[e[o]]:void 0;if(void 0===i)return;r=i}return r}}},function(e,t,n){var r=n(51),o=n(144),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(335),o=n(351),i=n(353),a=n(354),c=n(355);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(88)(n(62),"Map");e.exports=r},,,,,,function(e,t,n){"use strict";var r=n(154),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var l=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=s(n);f&&(a=a.concat(f(n)));for(var c=u(t),v=u(n),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||v&&v[y]||c&&c[y])){var b=p(n,y);try{l(t,y,b)}catch(e){}}}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(573),c=n(84),u=n(190);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e)||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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},O=r.createContext(null),w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(l,e);var t,n,o,a=v(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).cancelValue=function(e){t.setState((function(t){return{registeredValues:t.registeredValues.filter((function(t){return t!==e}))}}))},t.registerValue=function(e){t.setState((function(t){var n=t.registeredValues;return{registeredValues:[].concat(f(n),[e])}}))},t.toggleOption=function(e){var n=t.state.registeredValues,r=t.state.value.indexOf(e.value),o=f(t.state.value);-1===r?o.push(e.value):o.splice(r,1),"value"in t.props||t.setState({value:o});var i=t.props.onChange;if(i){var a=t.getOptions();i(o.filter((function(e){return-1!==n.indexOf(e)})).sort((function(e,t){return a.findIndex((function(t){return t.value===e}))-a.findIndex((function(e){return e.value===t}))})))}},t.renderGroup=function(e){var n=e.getPrefixCls,o=e.direction,a=y(t),u=a.props,l=a.state,f=u.prefixCls,p=u.className,d=u.style,h=u.options,v=g(u,["prefixCls","className","style","options"]),m=n("checkbox",f),b="".concat(m,"-group"),w=Object(c.default)(v,["children","defaultValue","value","onChange","disabled"]),j=u.children;h&&h.length>0&&(j=t.getOptions().map((function(e){return r.createElement(I,{prefixCls:m,key:e.value.toString(),disabled:"disabled"in e?e.disabled:u.disabled,value:e.value,checked:-1!==l.value.indexOf(e.value),onChange:e.onChange,className:"".concat(b,"-item"),style:e.style},e.label)})));var x,E,S,C={toggleOption:t.toggleOption,value:t.state.value,disabled:t.props.disabled,name:t.props.name,registerValue:t.registerValue,cancelValue:t.cancelValue},_=i()(b,p,(x={},E="".concat(b,"-rtl"),S="rtl"===o,E in x?Object.defineProperty(x,E,{value:S,enumerable:!0,configurable:!0,writable:!0}):x[E]=S,x));return r.createElement("div",s({className:_,style:d},w),r.createElement(O.Provider,{value:C},j))},t.state={value:e.value||e.defaultValue||[],registeredValues:[]},t}return t=l,o=[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value||[]}:null}}],(n=[{key:"getOptions",value:function(){return this.props.options.map((function(e){return"string"==typeof e?{label:e,value:e}:e}))}},{key:"render",value:function(){return r.createElement(u.a,null,this.renderGroup)}}])&&d(t.prototype,n),o&&d(t,o),l}(r.PureComponent);w.defaultProps={options:[]};var j=w,x=n(86);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A(e);if(t){var o=A(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return N(this,n)}}function N(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?T(e):t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(l,e);var t,n,o,c=M(l);function l(){var e;return _(this,l),(e=c.apply(this,arguments)).saveCheckbox=function(t){e.rcCheckbox=t},e.renderCheckbox=function(t){var n,o=t.getPrefixCls,c=t.direction,u=T(e),l=u.props,s=u.context,f=l.prefixCls,p=l.className,d=l.children,h=l.indeterminate,v=l.style,m=l.onMouseEnter,y=l.onMouseLeave,b=R(l,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave"]),g=s,O=o("checkbox",f),w=C({},b);g&&(w.onChange=function(){b.onChange&&b.onChange.apply(b,arguments),g.toggleOption({label:d,value:l.value})},w.name=g.name,w.checked=-1!==g.value.indexOf(l.value),w.disabled=l.disabled||g.disabled);var j=i()(p,(S(n={},"".concat(O,"-wrapper"),!0),S(n,"".concat(O,"-rtl"),"rtl"===c),S(n,"".concat(O,"-wrapper-checked"),w.checked),S(n,"".concat(O,"-wrapper-disabled"),w.disabled),n)),x=i()(S({},"".concat(O,"-indeterminate"),h));return r.createElement("label",{className:j,style:v,onMouseEnter:m,onMouseLeave:y},r.createElement(a.default,C({},w,{prefixCls:O,className:x,ref:e.saveCheckbox})),void 0!==d&&r.createElement("span",null,d))},e}return t=l,(n=[{key:"componentDidMount",value:function(){var e,t=this.props.value;null===(e=this.context)||void 0===e||e.registerValue(t),Object(x.a)("checked"in this.props||this.context||!("value"in this.props),"Checkbox","`value` is not a valid prop, do you mean `checked`?")}},{key:"componentDidUpdate",value:function(e){var t,n,r=e.value,o=this.props.value;o!==r&&(null===(t=this.context)||void 0===t||t.cancelValue(r),null===(n=this.context)||void 0===n||n.registerValue(o))}},{key:"componentWillUnmount",value:function(){var e,t=this.props.value;null===(e=this.context)||void 0===e||e.cancelValue(t)}},{key:"focus",value:function(){this.rcCheckbox.focus()}},{key:"blur",value:function(){this.rcCheckbox.blur()}},{key:"render",value:function(){return r.createElement(u.a,null,this.renderCheckbox)}}])&&P(t.prototype,n),o&&P(t,o),l}(r.PureComponent);D.__ANT_CHECKBOX=!0,D.defaultProps={indeterminate:!1},D.contextType=O;var I=D;I.Group=j;t.a=I},,function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1032))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(154);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){"function"==typeof e?e(t):"object"===o(e)&&e&&"current"in e&&(e.current=t)}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){i(t,e)}))}}function c(e){var t=Object(r.isMemo)(e)?e.type.type:e.type;return!(t&&t.prototype&&!t.prototype.render)&&!("function"==typeof e&&e.prototype&&!e.prototype.render)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),o=n(7);function i(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.compare,this.keySelector))},e}(),c=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return r.__extends(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(o.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasOwnProperty=Object.prototype.hasOwnProperty},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(6);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Object(r.a)(e,t,n[t])}))}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(106);var i=n(7),a=n(103);function c(e,t){void 0===t&&(t=o.a);var n,r=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return function(e){return e.lift(new u(r,t))}}var u=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.delay,this.scheduler))},e}(),l=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.delay=n,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return r.__extends(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,r=e.scheduler,o=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var i=Math.max(0,n[0].time-r.now());this.schedule(e,i)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new s(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(a.a.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()},t}(i.a),s=function(){return function(e,t){this.time=e,this.notification=t}}()},function(e,t,n){"use strict";var r=n(0),o=n(574),i=n(219),a=n.n(i),c=n(4),u=n.n(c),l=n(623),s=n.n(l),f=n(625),p=n.n(f),d=n(147),h=n.n(d),v=n(624),m=n.n(v),y=n(733),b=n(190);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var x,E,S={},C=4.5,_=24,P=24,k="ant-notification",M="topRight",N=!1;function T(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P;switch(e){case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function A(e,t){var n=e.placement,i=void 0===n?M:n,c=e.top,l=e.bottom,s=e.getContainer,f=void 0===s?x:s,p=e.closeIcon,d=void 0===p?E:p,h=e.prefixCls||k,v="".concat(h,"-notice"),m="".concat(h,"-").concat(i),y=S[m];if(y)Promise.resolve(y).then((function(e){t({prefixCls:v,instance:e})}));else{var b,g,O,w=r.createElement("span",{className:"".concat(h,"-close-x")},d||r.createElement(a.a,{className:"".concat(h,"-close-icon")})),j=u()("".concat(h,"-").concat(i),(b={},g="".concat(h,"-rtl"),O=!0===N,g in b?Object.defineProperty(b,g,{value:O,enumerable:!0,configurable:!0,writable:!0}):b[g]=O,b));S[m]=new Promise((function(e){o.default.newInstance({prefixCls:h,className:j,style:T(i,c,l),getContainer:f,closeIcon:w},(function(n){e(n),t({prefixCls:v,instance:n})}))}))}}var R={success:s.a,info:m.a,error:p.a,warning:h.a};function D(e,t){var n=void 0===e.duration?C:e.duration,o=null;e.icon?o=r.createElement("span",{className:"".concat(t,"-icon")},e.icon):e.type&&(o=r.createElement(R[e.type]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(e.type)}));var i=!e.description&&o?r.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:r.createElement("div",{className:o?"".concat(t,"-with-icon"):""},o,r.createElement("div",{className:"".concat(t,"-message")},i,e.message),r.createElement("div",{className:"".concat(t,"-description")},e.description),e.btn?r.createElement("span",{className:"".concat(t,"-btn")},e.btn):null),duration:n,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},className:e.className}}var I,L,F={open:function(e){A(e,(function(t){var n=t.prefixCls;t.instance.notice(D(e,n))}))},close:function(e){Object.keys(S).forEach((function(t){return Promise.resolve(S[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,o=e.top,i=e.getContainer,a=e.closeIcon,c=e.prefixCls;void 0!==c&&(k=c),void 0!==t&&(C=t),void 0!==n?M=n:e.rtl&&(M="topLeft"),void 0!==r&&(P=r),void 0!==o&&(_=o),void 0!==i&&(x=i),void 0!==a&&(E=a),void 0!==e.rtl&&(N=e.rtl)},destroy:function(){Object.keys(S).forEach((function(e){Promise.resolve(S[e]).then((function(e){e.destroy()})),delete S[e]}))}};["success","info","warning","error"].forEach((function(e){F[e]=function(t){return F.open(j(j({},t),{type:e}))}})),F.warn=F.warning,F.useNotification=(I=A,L=D,function(){var e,t=null,n={add:function(e,n){null==t||t.component.add(e,n)}},o=O(Object(y.a)(n),2),i=o[0],a=o[1],c=r.useRef({});return c.current.open=function(n){var r=n.prefixCls,o=e("notification",r);I(g(g({},n),{prefixCls:o}),(function(e){var r=e.prefixCls,o=e.instance;t=o,i(L(n,r))}))},["success","info","warning","error"].forEach((function(e){c.current[e]=function(t){return c.current.open(g(g({},t),{type:e}))}})),[c.current,r.createElement(b.a,{key:"holder"},(function(t){return e=t.getPrefixCls,a}))]});t.a=F},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30),o=n(0);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(o.useRef)(e);n.current=e;var i=Object(r.d)(),a=Object(o.useRef)(),c=Object(o.useRef)();if(Object(o.useEffect)((function(){c.current=null;var e=n.current[0],t=e.subscribe({next:function(t){if(e===n.current[0])return n.current[1]?n.current[1](t):void 0},error:function(t){if(e===n.current[0]){if(n.current[2])return c.current=null,n.current[2](t);c.current=t,i()}},complete:function(){if(e===n.current[0])return n.current[3]?n.current[3]():void 0}});return a.current=t,function(){t.unsubscribe()}}),[e[0]]),c.current)throw c.current;return a}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeReporter=void 0;const a=i(n(0)),c=(n(591),{overflow:"hidden",position:"absolute",zIndex:-1e3,top:0,right:0,width:"100%",height:"100%",opacity:0,pointerEvents:"none"}),u={transition:"0s",animation:"none"},l={transition:"0s",animation:"none",width:"250%",height:"250%"};class s extends a.PureComponent{constructor(){super(...arguments),this.containerRef=a.default.createRef(),this.lastWidth=-1,this.lastHeight=-1,this.resetPosition=(e,t,n)=>{const r=e.firstChild,o=r.nextSibling,i=r.firstChild;i.style.width=t+1e3+"px",i.style.height=n+1e3+"px",this._setScrollPositionTicket=window.setTimeout(()=>{r.scrollLeft=t+1e3,r.scrollTop=n+1e3,o.scrollLeft=2.5*t,o.scrollTop=2.5*n},0)},this.checkSize=()=>{if(this.containerRef.current){const e=this.containerRef.current.parentElement;if(e){const t=e.getBoundingClientRect(),{width:n,height:r}=t;this.props.onSizeChanged&&(n===this.lastWidth&&r===this.lastHeight||this.props.onSizeChanged(n,r,t)),this.props.onWidthChanged&&n!==this.lastWidth&&this.props.onWidthChanged(n,t),this.props.onHeightChanged&&r!==this.lastHeight&&this.props.onHeightChanged(r,t),this.resetPosition(this.containerRef.current,n,r),this.lastWidth=n,this.lastHeight=r}}},this.onScroll=()=>{this._debounceTicket&&(window.clearTimeout(this._debounceTicket),this._debounceTicket=null),this._debounceTicket=window.setTimeout(this.checkSize,this.props.debounce||0)}}componentDidMount(){if(this.containerRef.current){const e=this.containerRef.current.parentElement;if(e)if(this.props.reportInit)this.checkSize();else{const t=e.getBoundingClientRect();this.lastWidth=t.width,this.lastHeight=t.height,this.resetPosition(this.containerRef.current,this.lastWidth,this.lastHeight)}}}componentWillUnmount(){this._debounceTicket&&(window.clearTimeout(this._debounceTicket),this._debounceTicket=null),this._setScrollPositionTicket&&(window.clearTimeout(this._setScrollPositionTicket),this._setScrollPositionTicket=null)}render(){const{reportInit:e,debounce:t,onSizeChanged:n,onWidthChanged:r,onHeightChanged:o,children:i,...s}=this.props;return a.default.createElement("div",Object.assign({"aria-hidden":!0,"aria-label":"react-resize-reporter",tabIndex:-1},s,{ref:this.containerRef}),a.default.createElement("div",{style:c,onScroll:this.onScroll},a.default.createElement("div",{style:u})),a.default.createElement("div",{style:c,onScroll:this.onScroll},a.default.createElement("div",{style:l})),i)}}t.ResizeReporter=s,t.default=s},function(e,t,n){"use strict";var r=n(0),o=r.createContext(null);t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return y}));var r,o=n(0),i=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=o.createContext(null),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return o.createElement(a.Provider,{value:this.props.store},this.props.children)},t}(o.Component),u=n(229),l=n.n(u),s=n(170),f=n.n(s),p=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var h=function(){return{}};function v(e,t){void 0===t&&(t={});var n=!!e,r=e||h;return function(i){var c=function(t){function c(e,n){var o=t.call(this,e,n)||this;return o.unsubscribe=null,o.handleChange=function(){if(o.unsubscribe){var e=r(o.store.getState(),o.props);o.setState({subscribed:e})}},o.store=o.context,o.state={subscribed:r(o.store.getState(),e),store:o.store,props:e},o}return p(c,t),c.getDerivedStateFromProps=function(t,n){return e&&2===e.length&&t!==n.props?{subscribed:r(n.store.getState(),t),props:t}:{props:t}},c.prototype.componentDidMount=function(){this.trySubscribe()},c.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},c.prototype.shouldComponentUpdate=function(e,t){return!l()(this.props,e)||!l()(this.state.subscribed,t.subscribed)},c.prototype.trySubscribe=function(){n&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},c.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},c.prototype.render=function(){var e=d(d(d({},this.props),this.state.subscribed),{store:this.store});return o.createElement(i,d({},e,{ref:this.props.miniStoreForwardedRef}))},c.displayName="Connect("+function(e){return e.displayName||e.name||"Component"}(i)+")",c.contextType=a,c}(o.Component);if(t.forwardRef){var u=o.forwardRef((function(e,t){return o.createElement(c,d({},e,{miniStoreForwardedRef:t}))}));return f()(u,i)}return f()(c,i)}}var m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function y(e){var t=e,n=[];return{setState:function(e){t=m(m({},t),e);for(var r=0;r<n.length;r++)n[r]()},getState:function(){return t},subscribe:function(e){return n.push(e),function(){var t=n.indexOf(e);n.splice(t,1)}}}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(20),o=n.n(r);function i(e,t,n,r){var i=o.a.unstable_batchedUpdates?function(e){o.a.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,i)}}}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(1045),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var r=n(0),o=n(440),i=function(e){return r.createElement(c,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return r.createElement(o.a,{image:o.a.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(o.a,{image:o.a.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return r.createElement(o.a,null)}}))};var a=r.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},renderEmpty:i}),c=a.Consumer},function(e,t,n){"use strict";var r=n(0),o=n(189),i=n.n(o),a=n(577),c=n.n(a),u=n(578),l=n.n(u),s=n(579),f=n.n(s),p=n(20),d=n(37),h=n(504),v=n(506),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},y=function(e){function t(){return c()(this,t),l()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.shouldComponentUpdate=function(e){return!!e.forceRender||(!!e.hiddenClassName||!!e.visible)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.hiddenClassName,o=e.visible,a=(e.forceRender,m(e,["className","hiddenClassName","visible","forceRender"])),c=t;return n&&!o&&(c+=" "+n),r.createElement("div",i()({},a,{className:c}))},t}(r.Component),b=0;function g(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function O(e,t){var n=e.style;["Webkit","Moz","Ms","ms"].forEach((function(e){n[e+"TransformOrigin"]=t})),n.transformOrigin=t}var w=function(e){function t(n){c()(this,t);var o=l()(this,e.call(this,n));return o.inTransition=!1,o.onAnimateLeave=function(){var e=o.props,t=e.afterClose,n=e.getOpenCount;o.wrap&&(o.wrap.style.display="none"),o.inTransition=!1,n()||o.switchScrollingEffect(),t&&t()},o.onDialogMouseDown=function(){o.dialogMouseDown=!0},o.onMaskMouseUp=function(){o.dialogMouseDown&&(o.timeoutId=setTimeout((function(){o.dialogMouseDown=!1}),0))},o.onMaskClick=function(e){Date.now()-o.openTime<300||e.target!==e.currentTarget||o.dialogMouseDown||o.close(e)},o.onKeyDown=function(e){var t=o.props;if(t.keyboard&&e.keyCode===d.a.ESC)return e.stopPropagation(),void o.close(e);if(t.visible&&e.keyCode===d.a.TAB){var n=document.activeElement,r=o.sentinelStart;e.shiftKey?n===r&&o.sentinelEnd.focus():n===o.sentinelEnd&&r.focus()}},o.getDialogElement=function(){var e=o.props,t=e.closable,n=e.prefixCls,a={};void 0!==e.width&&(a.width=e.width),void 0!==e.height&&(a.height=e.height);var c=void 0;e.footer&&(c=r.createElement("div",{className:n+"-footer",ref:o.saveRef("footer")},e.footer));var u=void 0;e.title&&(u=r.createElement("div",{className:n+"-header",ref:o.saveRef("header")},r.createElement("div",{className:n+"-title",id:o.titleId},e.title)));var l=void 0;t&&(l=r.createElement("button",{type:"button",onClick:o.close,"aria-label":"Close",className:n+"-close"},e.closeIcon||r.createElement("span",{className:n+"-close-x"})));var s=i()({},e.style,a),f={width:0,height:0,overflow:"hidden",outline:"none"},p=o.getTransitionName(),d=r.createElement(y,{key:"dialog-element",role:"document",ref:o.saveRef("dialog"),style:s,className:n+" "+(e.className||""),visible:e.visible,forceRender:e.forceRender,onMouseDown:o.onDialogMouseDown},r.createElement("div",{tabIndex:0,ref:o.saveRef("sentinelStart"),style:f,"aria-hidden":"true"}),r.createElement("div",{className:n+"-content"},l,u,r.createElement("div",i()({className:n+"-body",style:e.bodyStyle,ref:o.saveRef("body")},e.bodyProps),e.children),c),r.createElement("div",{tabIndex:0,ref:o.saveRef("sentinelEnd"),style:f,"aria-hidden":"true"}));return r.createElement(v.a,{key:"dialog",showProp:"visible",onLeave:o.onAnimateLeave,transitionName:p,component:"",transitionAppear:!0},e.visible||!e.destroyOnClose?d:null)},o.getZIndexStyle=function(){var e={},t=o.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},o.getWrapStyle=function(){return i()({},o.getZIndexStyle(),o.props.wrapStyle)},o.getMaskStyle=function(){return i()({},o.getZIndexStyle(),o.props.maskStyle)},o.getMaskElement=function(){var e=o.props,t=void 0;if(e.mask){var n=o.getMaskTransitionName();t=r.createElement(y,i()({style:o.getMaskStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible},e.maskProps)),n&&(t=r.createElement(v.a,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t},o.getMaskTransitionName=function(){var e=o.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},o.getTransitionName=function(){var e=o.props,t=e.transitionName,n=e.animation;return!t&&n&&(t=e.prefixCls+"-"+n),t},o.close=function(e){var t=o.props.onClose;t&&t(e)},o.saveRef=function(e){return function(t){o[e]=t}},o.titleId="rcDialogTitle"+b++,o.switchScrollingEffect=n.switchScrollingEffect||function(){},o}return f()(t,e),t.prototype.componentDidMount=function(){this.componentDidUpdate({}),(this.props.forceRender||!1===this.props.getContainer&&!this.props.visible)&&this.wrap&&(this.wrap.style.display="none")},t.prototype.componentDidUpdate=function(e){var t,n,r,o,i,a=this.props,c=a.visible,u=a.mask,l=a.focusTriggerAfterClose,s=this.props.mousePosition;if(c){if(!e.visible){this.openTime=Date.now(),this.switchScrollingEffect(),this.tryFocus();var f=p.findDOMNode(this.dialog);if(s){var d=(n=(t=f).getBoundingClientRect(),r={left:n.left,top:n.top},o=t.ownerDocument,i=o.defaultView||o.parentWindow,r.left+=g(i),r.top+=g(i,!0),r);O(f,s.x-d.left+"px "+(s.y-d.top)+"px")}else O(f,"")}}else if(e.visible&&(this.inTransition=!0,u&&this.lastOutSideFocusNode&&l)){try{this.lastOutSideFocusNode.focus()}catch(e){this.lastOutSideFocusNode=null}this.lastOutSideFocusNode=null}},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visible,n=e.getOpenCount;!t&&!this.inTransition||n()||this.switchScrollingEffect(),clearTimeout(this.timeoutId)},t.prototype.tryFocus=function(){Object(h.a)(this.wrap,document.activeElement)||(this.lastOutSideFocusNode=document.activeElement,this.sentinelStart.focus())},t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.maskClosable,o=this.getWrapStyle();return e.visible&&(o.display=null),r.createElement("div",{className:t+"-root"},this.getMaskElement(),r.createElement("div",i()({tabIndex:-1,onKeyDown:this.onKeyDown,className:t+"-wrap "+(e.wrapClassName||""),ref:this.saveRef("wrap"),onClick:n?this.onMaskClick:null,onMouseUp:n?this.onMaskMouseUp:null,role:"dialog","aria-labelledby":e.title?this.titleId:null,style:o},e.wrapProps),this.getDialogElement()))},t}(r.Component),j=w;w.defaultProps={className:"",mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",focusTriggerAfterClose:!0};var x=n(963),E=function(e){var t=e.visible,n=e.getContainer,o=e.forceRender;return!1===n?r.createElement(j,i()({},e,{getOpenCount:function(){return 2}})):r.createElement(x.a,{visible:t,forceRender:o,getContainer:n},(function(t){return r.createElement(j,i()({},e,t))}))},S=n(4),C=n.n(S),_=n(188),P=n(219),k=n.n(P);function M(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||T(e)||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 N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||T(e,t)||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,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var R=n(82),D=n(586);function I(){return(I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e,t)||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 F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var z=function(e){var t=r.useRef(!1),n=r.useRef(),o=L(r.useState(!1),2),i=o[0],a=o[1];r.useEffect((function(){var t;if(e.autoFocus){var r=n.current;t=setTimeout((function(){return r.focus()}))}return function(){t&&clearTimeout(t)}}),[]);var c=e.type,u=e.children,l=e.buttonProps;return r.createElement(R.a,I({},Object(D.a)(c),{onClick:function(){var n=e.actionFn,r=e.closeModal;if(!t.current)if(t.current=!0,n){var o;if(n.length)o=n(r),t.current=!1;else if(!(o=n()))return void r();!function(n){var r=e.closeModal;n&&n.then&&(a(!0),n.then((function(){r.apply(void 0,arguments)}),(function(e){console.error(e),a(!1),t.current=!1})))}(o)}else r()},loading:i},l,{ref:n}),u)},H=n(86);function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V=function(e){var t=e.icon,n=e.onCancel,o=e.onOk,i=e.close,a=e.zIndex,c=e.afterClose,u=e.visible,l=e.keyboard,s=e.centered,f=e.getContainer,p=e.maskStyle,d=e.okText,h=e.okButtonProps,v=e.cancelText,m=e.cancelButtonProps,y=e.direction;Object(H.a)(!("string"==typeof t&&t.length>2),"Modal","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(t,"` at https://ant.design/components/icon"));var b=e.okType||"primary",g=e.prefixCls||"ant-modal",O="".concat(g,"-confirm"),w=!("okCancel"in e)||e.okCancel,j=e.width||416,x=e.style||{},E=void 0===e.mask||e.mask,S=void 0!==e.maskClosable&&e.maskClosable,_=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),P=e.transitionName||"zoom",k=e.maskTransitionName||"fade",M=C()(O,"".concat(O,"-").concat(e.type),B({},"".concat(O,"-rtl"),"rtl"===y),e.className),N=w&&r.createElement(z,{actionFn:n,closeModal:i,autoFocus:"cancel"===_,buttonProps:m},v);return r.createElement(xe,{prefixCls:g,className:M,wrapClassName:C()(B({},"".concat(O,"-centered"),!!e.centered)),onCancel:function(){return i({triggerCancel:!0})},visible:u,title:"",transitionName:P,footer:"",maskTransitionName:k,mask:E,maskClosable:S,maskStyle:p,style:x,width:j,zIndex:a,afterClose:c,keyboard:l,centered:s,getContainer:f},r.createElement("div",{className:"".concat(O,"-body-wrapper")},r.createElement("div",{className:"".concat(O,"-body")},t,void 0===e.title?null:r.createElement("span",{className:"".concat(O,"-title")},e.title),r.createElement("div",{className:"".concat(O,"-content")},e.content)),r.createElement("div",{className:"".concat(O,"-btns")},N,r.createElement(z,{type:b,actionFn:o,closeModal:i,autoFocus:"ok"===_,buttonProps:h},d))))},K=n(372),U=n(307),W=n(190);function q(){return(q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(e,t)}(e,t)||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 $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Y=function(e,t){var n=e.afterClose,o=e.config,i=G(r.useState(!0),2),a=i[0],c=i[1],u=G(r.useState(o),2),l=u[0],s=u[1],f=r.useContext(W.b).direction;function p(){c(!1)}return r.useImperativeHandle(t,(function(){return{destroy:p,update:function(e){s((function(t){return q(q({},t),e)}))}}})),r.createElement(U.a,{componentName:"Modal",defaultLocale:K.a.Modal},(function(e){return r.createElement(V,q({},l,{close:p,visible:a,afterClose:n,okText:l.okText||(l.okCancel?e.okText:e.justOkText),direction:f,cancelText:l.cancelText||e.cancelText}))}))},X=r.forwardRef(Y),Z=n(624),J=n.n(Z),Q=n(623),ee=n.n(Q),te=n(625),ne=n.n(te),re=n(147),oe=n.n(re),ie=n(503);function ae(){return(ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ue(e){var t=document.createElement("div");document.body.appendChild(t);var n=ae(ae({},e),{close:a,visible:!0});function o(){var n=p.unmountComponentAtNode(t);n&&t.parentNode&&t.parentNode.removeChild(t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var c=o.some((function(e){return e&&e.triggerCancel}));e.onCancel&&c&&e.onCancel.apply(e,o);for(var u=0;u<we.length;u++){var l=we[u];if(l===a){we.splice(u,1);break}}}function i(e){var n=e.okText,o=e.cancelText,i=ce(e,["okText","cancelText"]);setTimeout((function(){var e=Object(ie.b)();p.render(r.createElement(V,ae({},i,{okText:n||(i.okCancel?e.okText:e.justOkText),cancelText:o||e.cancelText})),t)}))}function a(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];i(n=ae(ae({},n),{visible:!1,afterClose:o.bind.apply(o,[this].concat(t))}))}return i(n),we.push(a),{destroy:a,update:function(e){i(n=ae(ae({},n),e))}}}function le(e){return ae({type:"warning",icon:r.createElement(oe.a,null),okCancel:!1},e)}function se(e){return ae({type:"info",icon:r.createElement(J.a,null),okCancel:!1},e)}function fe(e){return ae({type:"success",icon:r.createElement(ee.a,null),okCancel:!1},e)}function pe(e){return ae({type:"error",icon:r.createElement(ne.a,null),okCancel:!1},e)}function de(e){return ae({type:"confirm",icon:r.createElement(oe.a,null),okCancel:!0},e)}function he(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ve(e,t)}(e,t)||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 ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var me=0;function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(){return(be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ge,Oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},we=[];"undefined"!=typeof window&&window.document&&window.document.documentElement&&Object(_.a)(document.documentElement,"click",(function(e){ge={x:e.pageX,y:e.pageY},setTimeout((function(){ge=null}),100)}));var je=function(e){var t,n=r.useContext(W.b),o=n.getPopupContainer,i=n.getPrefixCls,a=n.direction,c=function(t){var n=e.onCancel;n&&n(t)},u=function(t){var n=e.onOk;n&&n(t)},l=function(t){var n=e.okText,o=e.okType,i=e.cancelText,a=e.confirmLoading;return r.createElement(r.Fragment,null,r.createElement(R.a,be({onClick:c},e.cancelButtonProps),i||t.cancelText),r.createElement(R.a,be({},Object(D.a)(o),{loading:a,onClick:u},e.okButtonProps),n||t.okText))},s=e.prefixCls,f=e.footer,p=e.visible,d=e.wrapClassName,h=e.centered,v=e.getContainer,m=e.closeIcon,y=Oe(e,["prefixCls","footer","visible","wrapClassName","centered","getContainer","closeIcon"]),b=i("modal",s),g=r.createElement(U.a,{componentName:"Modal",defaultLocale:Object(ie.b)()},l),O=r.createElement("span",{className:"".concat(b,"-close-x")},m||r.createElement(k.a,{className:"".concat(b,"-close-icon")})),w=C()(d,(ye(t={},"".concat(b,"-centered"),!!h),ye(t,"".concat(b,"-wrap-rtl"),"rtl"===a),t));return r.createElement(E,be({},y,{getContainer:void 0===v?o:v,prefixCls:b,wrapClassName:w,footer:void 0===f?g:f,visible:p,mousePosition:ge,onClose:c,closeIcon:O}))};je.useModal=function(){var e=he(function(){var e=N(r.useState([]),2),t=e[0],n=e[1];return[t,function(e){return n((function(t){return[].concat(M(t),[e])})),function(){n((function(t){return t.filter((function(t){return t!==e}))}))}}]}(),2),t=e[0],n=e[1];function o(e){return function(t){me+=1;var o,i=r.createRef(),a=r.createElement(X,{key:"modal-".concat(me),config:e(t),ref:i,afterClose:function(){o()}});return o=n(a),{destroy:function(){i.current&&i.current.destroy()},update:function(e){i.current&&i.current.update(e)}}}}return[{info:o(se),success:o(fe),error:o(pe),warning:o(le),confirm:o(de)},r.createElement(r.Fragment,null,t)]},je.defaultProps={width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"};var xe=je;function Ee(e){return ue(le(e))}var Se=xe;Se.info=function(e){return ue(se(e))},Se.success=function(e){return ue(fe(e))},Se.error=function(e){return ue(pe(e))},Se.warning=Ee,Se.warn=Ee,Se.confirm=function(e){return ue(de(e))},Se.destroyAll=function(){for(;we.length;){var e=we.pop();e&&e()}};t.a=Se},function(e,t,n){"use strict";e.exports=function(e,t,n,r){for(var o=65535&e|0,i=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(o=o+t[r++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16|0}},function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t,n,o){var i=r,a=o+n;e^=-1;for(var c=o;c<a;c++)e=e>>>8^i[255&(e^t[c])];return-1^e}},function(e,t,n){"use strict";var r=n(65),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var a=new r.Buf8(256),c=0;c<256;c++)a[c]=c>=252?6:c>=248?5:c>=240?4:c>=224?3:c>=192?2:1;function u(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,t.string2buf=function(e){var t,n,o,i,a,c=e.length,u=0;for(i=0;i<c;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<c&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),u+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(u),a=0,i=0;a<u;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<c&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},t.buf2binstring=function(e){return u(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,o=t.length;n<o;n++)t[n]=e.charCodeAt(n);return t},t.buf2string=function(e,t){var n,r,o,i,c=t||e.length,l=new Array(2*c);for(r=0,n=0;n<c;)if((o=e[n++])<128)l[r++]=o;else if((i=a[o])>4)l[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&n<c;)o=o<<6|63&e[n++],i--;i>1?l[r++]=65533:o<65536?l[r++]=o:(o-=65536,l[r++]=55296|o>>10&1023,l[r++]=56320|1023&o)}return u(l,r)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},function(e,t,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t,n){var r=n(323),o=n(58),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=u},function(e,t){var n="object"==typeof global&&global&&global.Object===Object&&global;e.exports=n},function(e,t,n){(function(e){var r=n(62),o=n(326),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;e.exports=u}).call(this,n(183)(e))},function(e,t,n){var r=n(66),o=n(109);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(143),o=n(110);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(212);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(154);function a(e){var t=[];return o.a.Children.forEach(e,(function(e){null!=e&&(Array.isArray(e)?t=t.concat(a(e)):Object(i.isFragment)(e)&&e.props?t=t.concat(a(e.props.children)):t.push(e))})),t}},,function(e,t,n){"use strict";var r=n(631);t.a=r.a},,function(e,t,n){var r=n(321),o=n(152);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(327),o=n(243),i=n(244),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(88),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(401),o=n(58);e.exports=function e(t,n,i,a,c){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,c))}},function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(422)(n(427));e.exports=r},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(20),a=n(26),c=n.n(a),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e,t){return e(t={exports:{}},t.exports),t.exports}var s=l((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t})),f=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()},p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},d=l((function(e){!function(t){var n=function(e,t,r){if(!u(t)||s(t)||f(t)||p(t)||c(t))return t;var o,i=0,a=0;if(l(t))for(o=[],a=t.length;i<a;i++)o.push(n(e,t[i],r));else for(var d in o={},t)Object.prototype.hasOwnProperty.call(t,d)&&(o[e(d,r)]=n(e,t[d],r));return o},r=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=r(e);return t.substr(0,1).toUpperCase()+t.substr(1)},i=function(e,t){return function(e,t){var n=(t=t||{}).separator||"_",r=t.split||/(?=[A-Z])/;return e.split(r).join(n)}(e,t).toLowerCase()},a=Object.prototype.toString,c=function(e){return"function"==typeof e},u=function(e){return e===Object(e)},l=function(e){return"[object Array]"==a.call(e)},s=function(e){return"[object Date]"==a.call(e)},f=function(e){return"[object RegExp]"==a.call(e)},p=function(e){return"[object Boolean]"==a.call(e)},d=function(e){return(e-=0)==e},h=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,r){return n(t,e,r)}},v={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(e,t){return n(h(r,t),e)},decamelizeKeys:function(e,t){return n(h(i,t),e,t)},pascalizeKeys:function(e,t){return n(h(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=v:t.humps=v}(u)})).decamelize;function h(e){var t=e.root,n=e.children;return Object(i.createPortal)(n,t)}h.propTypes={root:c.a.object.isRequired,children:c.a.node.isRequired};var v=new Map;var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Proxy(e,{get:function(e,t){var n,i,a=d(t,{separator:"-"});return v.has(a)||v.set(a,(n={tag:a},(i=Object(r.forwardRef)((function(e,t){var i=e.mode,a=e.delegatesFocus,c=e.styleSheets,u=e.children,l=p(e,["mode","delegatesFocus","styleSheets","children"]),d=Object(r.useState)(null),v=f(d,2),m=v[0],y=v[1],b=Object(r.useState)(null),g=f(b,2),O=g[0],w=g[1];return Object(r.useEffect)((function(){if(m){var e=m.attachShadow({mode:i,delegatesFocus:a});c.length>0&&(e.adoptedStyleSheets=c),t&&"function"==typeof t&&t(m),t&&"current"in t&&(t.current=m),w(e)}}),[m]),o.a.createElement(n.tag,s({ref:y},l),O&&o.a.createElement(h,{root:O},u))}))).propTypes={mode:c.a.oneOf(["open","closed"]),delegatesFocus:c.a.bool,styleSheets:c.a.arrayOf(c.a.string),children:c.a.node.isRequired},i.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[]},i)),v.get(a)}})}();t.a=m},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1034))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},,function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,c,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t,n){var r=n(138),o=n(396),i=n(397),a=n(398),c=n(399),u=n(400);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=c,l.prototype.set=u,e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createActionCreator=function(e){return(...t)=>{switch(t.length){case 0:return{type:e};case 1:return{type:e,payload:t[0]};default:return{type:e,payload:t[0],meta:t[1]}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(177);t.createDefaultActionCreators=function(e,t,n){const o={};if(n)for(const e in n)r.hasOwnProperty.call(n,e)&&(o[e]=n[e]);for(const i in t)r.hasOwnProperty.call(t,i)&&(n&&r.hasOwnProperty.call(o,i)||(o[i]=e(i)));return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createActionCreator=function(e){return(...t)=>{switch(t.length){case 0:return{type:e};case 1:return{type:e,payload:t[0]};case 2:return{type:e,payload:t[0],error:t[1]};default:return{type:e,payload:t[0],error:t[1],meta:t[2]}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineObjects=function(...e){return Object.assign({},...e)}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";(function(e){var r,o=n(362);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:e;var i=Object(o.a)(r);t.a=i}).call(this,n(510)(e))},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var l=i[u];if(!c(l))return!1;var s=e[l],f=t[l];if(!1===(o=n?n.call(r,s,f,l):void 0)||void 0===o&&s!==f)return!1}return!0}},,function(e,t,n){var r=n(402),o=n(405),i=n(406);e.exports=function(e,t,n,a,c,u){var l=1&n,s=e.length,f=t.length;if(s!=f&&!(l&&f>s))return!1;var p=u.get(e);if(p&&u.get(t))return p==t;var d=-1,h=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++d<s;){var m=e[d],y=t[d];if(a)var b=l?a(y,m,d,t,e,u):a(m,y,d,e,t,u);if(void 0!==b){if(b)continue;h=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(m===e||c(m,e,n,a,u)))return v.push(t)}))){h=!1;break}}else if(m!==y&&!c(m,y,n,a,u)){h=!1;break}}return u.delete(e),u.delete(t),h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t,n){var r=n(109);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"Field",(function(){return Pe})),n.d(t,"List",(function(){return Ne})),n.d(t,"useForm",(function(){return Le})),n.d(t,"FormProvider",(function(){return Be}));var r=n(0),o=n(72),i=n(6),a=n(31),c=n(43),u=n(44),l=n(50),s=n(49),f=n(25),p=n(204),d=n(56),h=n(238);function v(e){return null==e?[]:Array.isArray(e)?e:[e]}var m=n(539),y=n.n(m);function b(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){b(i,r,o,a,c,"next",e)}function c(e){b(i,r,o,a,c,"throw",e)}a(void 0)}))}}var O=n(71);function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function S(e,t,n){return(S=E()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&x(o,n.prototype),o}).apply(null,arguments)}function C(e){var t="function"==typeof Map?new Map:void 0;return(C=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return S(e,arguments,j(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),x(r,e)})(e)}var _=/%[sdj%]/g,P=function(){};function k(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,o=t[0],i=t.length;if("function"==typeof o)return o.apply(null,t.slice(1));if("string"==typeof o){for(var a=String(o).replace(_,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}})),c=t[r];r<i;c=t[++r])a+=" "+c;return a}return o}function N(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function T(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var c=r;r+=1,c<o?t(e[c],i):n([])}}([])}var A=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(C(Error));function R(e,t,n,r){if(t.first){var o=new Promise((function(t,o){T(function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}(e),n,(function(e){return r(e),e.length?o(new A(e,k(e))):t()}))}));return o.catch((function(e){return e})),o}var i=t.firstFields||[];!0===i&&(i=Object.keys(e));var a=Object.keys(e),c=a.length,u=0,l=[],s=new Promise((function(t,o){var s=function(e){if(l.push.apply(l,e),++u===c)return r(l),l.length?o(new A(l,k(l))):t()};a.length||(r(l),t()),a.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?T(r,n,s):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,s)}))}));return s.catch((function(e){return e})),s}function D(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}}function I(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=w(w({},e[n]),r):e[n]=r}return e}function L(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!N(t,i||e.type)||r.push(M(o.messages.required,e.fullField))}var F={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},z={integer:function(e){return z.number(e)&&parseInt(e,10)===e},float:function(e){return z.number(e)&&!z.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!z.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(F.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(F.url)},hex:function(e){return"string"==typeof e&&!!e.match(F.hex)}};var H={required:L,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(M(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)L(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?z[i](t)||r.push(M(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(M(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,c="number"==typeof e.max,u=t,l=null,s="number"==typeof t,f="string"==typeof t,p=Array.isArray(t);if(s?l="number":f?l="string":p&&(l="array"),!l)return!1;p&&(u=t.length),f&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?u!==e.len&&r.push(M(o.messages[l].len,e.fullField,e.len)):a&&!c&&u<e.min?r.push(M(o.messages[l].min,e.fullField,e.min)):c&&!a&&u>e.max?r.push(M(o.messages[l].max,e.fullField,e.max)):a&&c&&(u<e.min||u>e.max)&&r.push(M(o.messages[l].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&r.push(M(o.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(M(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(M(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function B(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,i)&&!e.required)return n();H.required(e,t,r,a,o,i),N(t,i)||H.type(e,t,r,a,o)}n(a)}var V={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,"string")&&!e.required)return n();H.required(e,t,r,i,o,"string"),N(t,"string")||(H.type(e,t,r,i,o),H.range(e,t,r,i,o),H.pattern(e,t,r,i,o),!0===e.whitespace&&H.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&H.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),N(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&(H.type(e,t,r,i,o),H.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&H.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();H.required(e,t,r,i,o),N(t)||H.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&(H.type(e,t,r,i,o),H.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&(H.type(e,t,r,i,o),H.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,"array")&&!e.required)return n();H.required(e,t,r,i,o,"array"),N(t,"array")||(H.type(e,t,r,i,o),H.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&H.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&H.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,"string")&&!e.required)return n();H.required(e,t,r,i,o),N(t,"string")||H.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();var a;if(H.required(e,t,r,i,o),!N(t))a="number"==typeof t?new Date(t):t,H.type(e,a,r,i,o),a&&H.range(e,a.getTime(),r,i,o)}n(i)},url:B,hex:B,email:B,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;H.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();H.required(e,t,r,i,o)}n(i)}};function K(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var U=K();function W(e){this.rules=null,this._messages=U,this.define(e)}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||J(e)||X(e)||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 Y(e){return function(e){if(Array.isArray(e))return e}(e)||J(e)||X(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 X(e,t){if(e){if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function J(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function Q(e,t,n){if(!t.length)return n;var r,o=Y(t),i=o[0],a=o.slice(1);return(r=e||"number"!=typeof i?Array.isArray(e)?$(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e):[])[i]=Q(r[i],a,n),r}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){return v(e)}function ne(e,t){return function(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}(e,t)}function re(e,t,n){return Q(e,t,n)}function oe(e,t){var n={};return t.forEach((function(t){var r=ne(e,t);n=re(n,t,r)})),n}function ie(e,t){return e&&e.some((function(e){return le(e,t)}))}function ae(e){return"object"===Object(O.a)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function ce(e,t){var n=Array.isArray(e)?Object(a.a)(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return t?(Object.keys(t).forEach((function(e){var r=n[e],o=t[e],i=ae(r)&&ae(o);n[e]=i?ce(r,o||{}):o})),n):n}function ue(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return ce(e,t)}),e)}function le(e,t){return!(!e||!t||e.length!==t.length)&&e.every((function(e,n){return t[n]===e}))}function se(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&e in t.target?t.target[e]:t}function fe(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Object(a.a)(e.slice(0,n)),[o],Object(a.a)(e.slice(n,t)),Object(a.a)(e.slice(t+1,r))):i<0?[].concat(Object(a.a)(e.slice(0,t)),Object(a.a)(e.slice(t+1,n+1)),[o],Object(a.a)(e.slice(n+1,r))):e}W.prototype={messages:function(e){return e&&(this._messages=I(K(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var o,i,a=e,c=t,u=n;if("function"==typeof c&&(u=c,c={}),!this.rules||0===Object.keys(this.rules).length)return u&&u(),Promise.resolve();if(c.messages){var l=this.messages();l===U&&(l=K()),I(l,c.messages),c.messages=l}else c.messages=this.messages();var s={};(c.keys||Object.keys(this.rules)).forEach((function(t){o=r.rules[t],i=a[t],o.forEach((function(n){var o=n;"function"==typeof o.transform&&(a===e&&(a=w({},a)),i=a[t]=o.transform(i)),(o="function"==typeof o?{validator:o}:w({},o)).validator=r.getValidationMethod(o),o.field=t,o.fullField=o.fullField||t,o.type=r.getType(o),o.validator&&(s[t]=s[t]||[],s[t].push({rule:o,value:i,source:a,field:t}))}))}));var f={};return R(s,c,(function(e,t){var n,r=e.rule,o=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function i(e,t){return w(w({},t),{},{fullField:r.fullField+"."+e})}function a(n){void 0===n&&(n=[]);var a=n;if(Array.isArray(a)||(a=[a]),!c.suppressWarning&&a.length&&W.warning("async-validator:",a),a.length&&r.message&&(a=[].concat(r.message)),a=a.map(D(r)),c.first&&a.length)return f[r.field]=1,t(a);if(o){if(r.required&&!e.value)return r.message?a=[].concat(r.message).map(D(r)):c.error&&(a=[c.error(r,M(c.messages.required,r.field))]),t(a);var u={};if(r.defaultField)for(var l in e.value)e.value.hasOwnProperty(l)&&(u[l]=r.defaultField);for(var s in u=w(w({},u),e.rule.fields))if(u.hasOwnProperty(s)){var p=Array.isArray(u[s])?u[s]:[u[s]];u[s]=p.map(i.bind(null,s))}var d=new W(u);d.messages(c.messages),e.rule.options&&(e.rule.options.messages=c.messages,e.rule.options.error=c.error),d.validate(e.value,e.rule.options||c,(function(e){var n=[];a&&a.length&&n.push.apply(n,a),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(a)}o=o&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,a,e.source,c):r.validator&&(!0===(n=r.validator(r,e.value,a,e.source,c))?a():!1===n?a(r.message||r.field+" fails"):n instanceof Array?a(n):n instanceof Error&&a(n.message)),n&&n.then&&n.then((function(){return a()}),(function(e){return a(e)}))}),(function(e){!function(e){var t,n,r,o=[],i={};for(t=0;t<e.length;t++)n=e[t],r=void 0,Array.isArray(n)?o=(r=o).concat.apply(r,n):o.push(n);o.length?i=k(o):(o=null,i=null),u(o,i)}(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!V.hasOwnProperty(e.type))throw new Error(M("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?V.required:V[this.getType(e)]||!1}},W.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");V[e]=t},W.warning=P,W.messages=U,W.validators=V;var pe="'${name}' is not a valid ${type}",de={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:pe,method:pe,array:pe,object:pe,number:pe,date:pe,boolean:pe,integer:pe,float:pe,regexp:pe,email:pe,url:pe,hex:pe},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var me=W;function ye(e,t,n,r){var o=ve({},n,{name:t,enum:(n.enum||[]).join(", ")}),i=function(e,t){return function(){return function(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}(e,ve({},o,{},t))}};return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(o){var a=t[o];"string"==typeof a?n[o]=i(a,r):a&&"object"===Object(O.a)(a)?(n[o]={},e(a,n[o])):n[o]=a})),n}(ue({},de,e))}function be(e,t,n,r,o){return ge.apply(this,arguments)}function ge(){return(ge=g(y.a.mark((function e(t,n,o,c,u){var l,s,f,p,d,h;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=ve({},o),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),f=new me(Object(i.a)({},t,[l])),p=ye(c.validateMessages,t,l,u),f.messages(p),d=[],e.prev=7,e.next=10,Promise.resolve(f.validate(Object(i.a)({},t,n),ve({},c)));case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(7),e.t0.errors?d=e.t0.errors.map((function(e,t){var n=e.message;return r.isValidElement(n)?r.cloneElement(n,{key:"error_".concat(t)}):n})):(console.error(e.t0),d=[p.default()]);case 15:if(d.length||!s){e.next=20;break}return e.next=18,Promise.all(n.map((function(e,n){return be("".concat(t,".").concat(n),e,s,c,u)})));case 18:return h=e.sent,e.abrupt("return",h.reduce((function(e,t){return[].concat(Object(a.a)(e),Object(a.a)(t))}),[]));case 20:return e.abrupt("return",d);case 21:case"end":return e.stop()}}),e,null,[[7,12]])})))).apply(this,arguments)}function Oe(e,t,n,r,o,i){var a=e.join("."),c=n.map((function(e){var t=e.validator;return t?ve({},e,{validator:function(e,n,r){var o=!1,i=t(e,n,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){Object(d.a)(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"==typeof i.then&&"function"==typeof i.catch,Object(d.a)(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e)}))}}):e})).map((function(e){return be(a,t,e,r,i)})),u=(o?function(e){return je.apply(this,arguments)}(c):function(e){return we.apply(this,arguments)}(c)).then((function(e){return e.length?Promise.reject(e):[]}));return u.catch((function(e){return e})),u}function we(){return(we=g(y.a.mark((function e(t){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Object(a.a)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function je(){return(je=g(y.a.mark((function e(t){var n;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.length&&e(r),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Se(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Ce(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var _e=function(e){Object(l.a)(o,e);var t,n=(t=o,function(){var e,n=Object(f.a)(t);if(Se()){var r=Object(f.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(s.a)(this,e)});function o(){var e;return Object(c.a)(this,o),(e=n.apply(this,arguments)).state={resetCount:0},e.cancelRegisterFunc=null,e.destroy=!1,e.touched=!1,e.dirty=!1,e.validatePromise=null,e.errors=[],e.cancelRegister=function(){var t=e.props.preserve;e.cancelRegisterFunc&&e.cancelRegisterFunc(t),e.cancelRegisterFunc=null},e.getNamePath=function(){var t=e.props.name,n=e.context.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat(Object(a.a)(r),Object(a.a)(t)):[]},e.getRules=function(){var t=e.props.rules;return(void 0===t?[]:t).map((function(t){return"function"==typeof t?t(e.context):t}))},e.refresh=function(){e.destroy||e.setState((function(e){return{resetCount:e.resetCount+1}}))},e.onStoreChange=function(t,n,r){var o=e.props,i=o.shouldUpdate,a=o.dependencies,c=void 0===a?[]:a,u=o.onReset,l=r.store,s=e.getNamePath(),f=e.getValue(t),p=e.getValue(l),d=n&&ie(n,s);switch("valueUpdate"===r.type&&"external"===r.source&&f!==p&&(e.touched=!0,e.dirty=!0,e.validatePromise=null,e.errors=[]),r.type){case"reset":if(!n||d)return e.touched=!1,e.dirty=!1,e.validatePromise=null,e.errors=[],u&&u(),void e.refresh();break;case"setField":if(d){var h=r.data;return"touched"in h&&(e.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(e.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(e.errors=h.errors||[]),e.dirty=!0,void e.reRender()}if(i&&!s.length&&Ce(i,t,l,f,p,r))return void e.reRender();break;case"dependenciesUpdate":var v=c.map(te);if(d||v.some((function(e){return ie(r.relatedFields,e)})))return void e.reRender();break;default:if(d||c.some((function(e){return ie(n,te(e))}))||Ce(i,t,l,f,p,r))return void e.reRender()}!0===i&&e.reRender()},e.validateRules=function(t){var n=e.props,r=n.validateFirst,o=void 0!==r&&r,i=n.messageVariables,a=(t||{}).triggerName,c=e.getNamePath(),u=e.getRules();a&&(u=u.filter((function(e){var t=e.validateTrigger;return!t||v(t).includes(a)})));var l=Oe(c,e.getValue(),u,t,o,i);return e.dirty=!0,e.validatePromise=l,e.errors=[],l.catch((function(e){return e})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.validatePromise===l&&(e.validatePromise=null,e.errors=t,e.reRender())})),l},e.isFieldValidating=function(){return!!e.validatePromise},e.isFieldTouched=function(){return e.touched},e.isFieldDirty=function(){return e.dirty},e.getErrors=function(){return e.errors},e.getMeta=function(){return e.prevValidating=e.isFieldValidating(),{touched:e.isFieldTouched(),validating:e.prevValidating,errors:e.errors,name:e.getNamePath()}},e.getOnlyChild=function(t){if("function"==typeof t){var n=e.getMeta();return Ee({},e.getOnlyChild(t(e.getControlled(),n,e.context)),{isFunction:!0})}var o=Object(p.a)(t);return 1===o.length&&r.isValidElement(o[0])?{child:o[0],isFunction:!1}:{child:o,isFunction:!1}},e.getValue=function(t){var n=e.context.getFieldsValue,r=e.getNamePath();return ne(t||n(!0),r)},e.getControlled=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.props,r=n.trigger,o=n.validateTrigger,a=n.getValueFromEvent,c=n.normalize,u=n.valuePropName,l=n.getValueProps,s=void 0!==o?o:e.context.validateTrigger,f=e.getNamePath(),p=e.context,d=p.getInternalHooks,m=p.getFieldsValue,y=d(h.a),b=y.dispatch,g=e.getValue(),O=l||function(e){return Object(i.a)({},u,e)},w=t[r],j=Ee({},t,{},O(g));j[r]=function(){var t;e.touched=!0,e.dirty=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t=a?a.apply(void 0,r):se.apply(void 0,[u].concat(r)),c&&(t=c(t,g,m(!0))),b({type:"updateValue",namePath:f,value:t}),w&&w.apply(void 0,r)};var x=v(s||[]);return x.forEach((function(t){var n=j[t];j[t]=function(){n&&n.apply(void 0,arguments);var r=e.props.rules;r&&r.length&&b({type:"validateField",namePath:f,triggerName:t})}})),j},e}return Object(u.a)(o,[{key:"componentDidMount",value:function(){var e=this.props.shouldUpdate,t=(0,this.context.getInternalHooks)(h.a).registerField;this.cancelRegisterFunc=t(this),!0===e&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.destroy=!0}},{key:"reRender",value:function(){this.destroy||this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),i=o.child;return o.isFunction?e=i:r.isValidElement(i)?e=r.cloneElement(i,this.getControlled(i.props)):(Object(d.a)(!i,"`children` of Field is not validate ReactElement."),e=i),r.createElement(r.Fragment,{key:t},e)}}]),o}(r.Component);_e.contextType=h.b,_e.defaultProps={trigger:"onChange",valuePropName:"value"};var Pe=function(e){var t=e.name,n=e.isListField,i=Object(o.a)(e,["name","isListField"]),a=void 0!==t?te(t):void 0,c="keep";return n||(c="_".concat((a||[]).join("_"))),r.createElement(_e,Object.assign({key:c,name:a},i))};function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ne=function(e){var t=e.name,n=e.children,o=r.useContext(h.b),i=r.useRef({keys:[],id:0}).current;if("function"!=typeof n)return Object(d.a)(!1,"Form.List only accepts function as children."),null;var c=te(o.prefixName)||[],u=[].concat(Object(a.a)(c),Object(a.a)(te(t)));return r.createElement(h.b.Provider,{value:Me({},o,{prefixName:u})},r.createElement(Pe,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t}},(function(e){var t=e.value,r=void 0===t?[]:t,c=e.onChange,l=o.getFieldValue,s=function(){return l(u||[])||[]},f={add:function(e){i.keys=[].concat(Object(a.a)(i.keys),[i.id]),i.id+=1;var t=s();c([].concat(Object(a.a)(t),[e]))},remove:function(e){var t=s();if(!(e<0||e>=t.length)){var n=i.keys.map((function(t,n){return n<e?t:i.keys[n+1]}));i.keys=n.slice(0,-1),c(t.filter((function(t,n){return n!==e})))}},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(i.keys=fe(i.keys,e,t),c(fe(n,e,t)))}}};return n(r.map((function(e,t){var n=i.keys[t];return void 0===n&&(i.keys[t]=i.id,n=i.keys[t],i.id+=1),{name:t,key:n,isListField:!0}})),f)})))},Te=n(28);var Ae=function(){function e(){Object(c.a)(this,e),this.list=[]}return Object(u.a)(e,[{key:"set",value:function(e,t){var n=this.list.findIndex((function(t){return le(t.key,e)}));-1!==n?this.list[n].value=t:this.list.push({key:e,value:t})}},{key:"get",value:function(e){var t=this.list.find((function(t){return le(t.key,e)}));return t&&t.value}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.list=this.list.filter((function(t){return!le(t.key,e)}))}},{key:"map",value:function(e){return this.list.map(e)}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}();function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ie=function e(t){var n=this;Object(c.a)(this,e),this.formHooked=!1,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===h.a?(n.formHooked=!0,{dispatch:n.dispatch,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve}):(Object(d.a)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.setInitialValues=function(e,t){n.initialValues=e||{},t&&(n.store=ue({},e,n.store))},this.getInitialValue=function(e){return ne(n.initialValues,e)},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.timeoutId=null,this.warningUnhooked=function(){0},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Ae;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=te(e);return t.get(n)||{INVALIDATE_NAME_PATH:te(e)}}))},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),o=[];return r.forEach((function(e){var n="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(t){var r="getMeta"in e?e.getMeta():null;t(r)&&o.push(n)}else o.push(n)})),oe(n.store,o.map(te))},this.getFieldValue=function(e){n.warningUnhooked();var t=te(e);return ne(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors()}:{name:te(e[n]),errors:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=te(e);return n.getFieldsError([t])[0].errors},this.isFieldsTouched=function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],c=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(te),c=!1):(o=null,c=i):(o=i.map(te),c=a);var u=function(e){if(!o)return e.isFieldTouched();var t=e.getNamePath();return ie(o,t)?e.isFieldTouched():c};return c?n.getFieldEntities(!0).every(u):n.getFieldEntities(!0).some(u)},this.isFieldTouched=function(e){return n.warningUnhooked(),n.isFieldsTouched([e])},this.isFieldsValidating=function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(te);return t.some((function(e){var t=e.getNamePath();return ie(r,t)&&e.isFieldValidating()}))},this.isFieldValidating=function(e){return n.warningUnhooked(),n.isFieldsValidating([e])},this.resetWithFieldInitialValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Ae,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o,i=function(r){r.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))Object(d.a)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)Object(d.a)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var c=n.getFieldValue(o);e.skipExist&&void 0!==c||(n.store=re(n.store,o,Object(a.a)(i)[0].value))}}}}))};e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Object(a.a)(Object(a.a)(r).map((function(e){return e.entity}))))}))):o=r,i(o)},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e)return n.store=ue({},n.initialValues),n.resetWithFieldInitialValue(),void n.notifyObservers(t,null,{type:"reset"});var r=e.map(te);r.forEach((function(e){var t=n.getInitialValue(e);n.store=re(n.store,e,t)})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"})},this.setFields=function(e){n.warningUnhooked();var t=n.store;e.forEach((function(e){var r=e.name,i=(e.errors,Object(o.a)(e,["name","errors"])),a=te(r);"value"in i&&(n.store=re(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}))},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=De({},e.getMeta(),{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))},this.registerField=function(e){if(n.fieldEntities.push(e),void 0!==e.props.initialValue){var t=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(t){n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!1===(void 0!==t?t:n.preserve)&&(n.store=re(n.store,e.getNamePath(),void 0))}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=De({},r,{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()},this.updateValue=function(e,t){var r=te(e),o=n.store;n.store=re(n.store,r,t),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"});var i=n.getDependencyChildrenFields(r);n.validateFields(i),n.notifyObservers(o,i,{type:"dependenciesUpdate",relatedFields:[r].concat(Object(a.a)(i))});var c=n.callbacks.onValuesChange;c&&c(oe(n.store,[r]),n.store);n.triggerOnFieldsChange([r].concat(Object(a.a)(i)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;e&&(n.store=ue(n.store,e)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new Ae;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=te(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Ae;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}r(o.filter((function(t){var n=t.name;return ie(e,n)})),o)}},this.validateFields=function(e,t){n.warningUnhooked();var r=!!e,o=r?e.map(te):[],i=[];n.getFieldEntities(!0).forEach((function(e){if(r||o.push(e.getNamePath()),e.props.rules&&e.props.rules.length){var a=e.getNamePath();if(!r||ie(o,a)){var c=e.validateRules(De({validateMessages:De({},de,{},n.validateMessages)},t));i.push(c.then((function(){return{name:a,errors:[]}})).catch((function(e){return Promise.reject({name:a,errors:e})})))}}}));var a=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(i);n.lastValidatePromise=a,a.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var c=a.then((function(){return n.lastValidatePromise===a?Promise.resolve(n.getFieldsValue(o)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(o),errorFields:t,outOfDate:n.lastValidatePromise!==a})}));return c.catch((function(e){return e})),c},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t};var Le=function(e){var t=r.useRef(),n=r.useState(),o=Object(Te.a)(n,2)[1];if(!t.current)if(e)t.current=e;else{var i=new Ie((function(){o({})}));t.current=i.getForm()}return[t.current]};function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var He=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Be=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,a=e.children,c=r.useContext(He),u=r.useRef({});return r.createElement(He.Provider,{value:ze({},c,{validateMessages:ze({},c.validateMessages,{},t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:u.current}),c.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:u.current}),c.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(u.current=ze({},u.current,Object(i.a)({},e,t))),c.registerForm(e,t)},unregisterForm:function(e){var t=ze({},u.current);delete t[e],u.current=t,c.unregisterForm(e)}})},a)},Ve=He;function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var We=function(e,t){var n=e.name,i=e.initialValues,c=e.fields,u=e.form,l=e.preserve,s=e.children,f=e.component,p=void 0===f?"form":f,d=e.validateMessages,v=e.validateTrigger,m=void 0===v?"onChange":v,y=e.onValuesChange,b=e.onFieldsChange,g=e.onFinish,w=e.onFinishFailed,j=Object(o.a)(e,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),x=r.useContext(Ve),E=Le(u),S=Object(Te.a)(E,1)[0],C=S.getInternalHooks(h.a),_=C.useSubscribe,P=C.setInitialValues,k=C.setCallbacks,M=C.setValidateMessages,N=C.setPreserve;r.useImperativeHandle(t,(function(){return S})),r.useEffect((function(){return x.registerForm(n,S),function(){x.unregisterForm(n)}}),[x,S,n]),M(Ue({},x.validateMessages,{},d)),k({onValuesChange:y,onFieldsChange:function(e){if(x.triggerFormChange(n,e),b){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];b.apply(void 0,[e].concat(r))}},onFinish:function(e){x.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:w}),N(l);var T=r.useRef(null);P(i,!T.current),T.current||(T.current=!0);var A=s,R="function"==typeof s;R&&(A=s(S.getFieldsValue(!0),S));_(!R);var D=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Object(O.a)(e)||"object"!==Object(O.a)(t))return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(Object(a.a)(n),Object(a.a)(r)));return Object(a.a)(o).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(D.current||[],c||[])||S.setFields(c||[]),D.current=c}),[c,S]);var I=r.useMemo((function(){return Ue({},S,{validateTrigger:m})}),[S,m]),L=r.createElement(h.b.Provider,{value:I},A);return!1===p?L:r.createElement(p,Object.assign({},j,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),S.submit()}}),L)},qe=r.forwardRef(We);qe.FormProvider=Be,qe.Field=Pe,qe.List=Ne,qe.useForm=Le;t.default=qe},function(e,t,n){"use strict";n.r(t);var r=n(6),o=n(43),i=n(44),a=n(50),c=n(49),u=n(25),l=n(0),s=n(496),f=n(204),p=n(56),d=n(175),h=n(497);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var b=function(){var e=function(e){Object(a.a)(n,e);var t=y(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0},e.onResize=function(t){var n=e.props.onResize,r=t[0].target,o=r.getBoundingClientRect(),i=o.width,a=o.height,c=r.offsetWidth,u=r.offsetHeight,l=Math.floor(i),s=Math.floor(a);if(e.state.width!==l||e.state.height!==s){var f={width:l,height:s};e.setState(f),n&&n(m(m({},f),{},{offsetWidth:c,offsetHeight:u}))}},e.setChildNode=function(t){e.childNode=t},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var e=Object(s.a)(this.childNode||this);e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new h.a(this.onResize),this.resizeObserver.observe(e))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=Object(f.a)(e);if(t.length>1)Object(p.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return Object(p.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(l.isValidElement(n)&&Object(d.b)(n)){var r=n.ref;t[0]=l.cloneElement(n,{ref:Object(d.a)(r,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!l.isValidElement(e)||"key"in e&&null!==e.key?e:l.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),n}(l.Component);return e.displayName="ResizeObserver",e}();t.default=b},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(56),i="RC_FORM_INTERNAL_HOOKS",a=function(){Object(o.a)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},c=r.createContext({getFieldValue:a,getFieldsValue:a,getFieldError:a,getFieldsError:a,isFieldsTouched:a,isFieldTouched:a,isFieldValidating:a,isFieldsValidating:a,resetFields:a,setFields:a,setFieldsValue:a,validateFields:a,submit:a,getInternalHooks:function(){return a(),{dispatch:a,registerField:a,useSubscribe:a,setInitialValues:a,setCallbacks:a,getFields:a,setValidateMessages:a,setPreserve:a}}});t.b=c},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return u}));var r=n(71);function o(e){return null==e?[]:Array.isArray(e)?e:[e]}function i(e,t){if(!t&&"number"!=typeof t)return e;for(var n=o(t),r=e,i=0;i<n.length;i+=1){if(!r)return null;r=r[n[i]]}return r}function a(e){var t=[],n={};return e.forEach((function(e){for(var r=e||{},i=r.key,a=r.dataIndex,c=i||o(a).join("-")||"RC_TABLE_KEY";n[c];)c="".concat(c,"_next");n[c]=!0,t.push(c)})),t}function c(){var e={};function t(e,n){n&&Object.keys(n).forEach((function(o){var i=n[o];i&&"object"===Object(r.a)(i)?(e[o]=e[o]||{},t(e[o],i)):e[o]=i}))}for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.forEach((function(n){t(e,n)})),e}function u(e){return null!=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(8);var o=n(0),i=n(182),a=n(30);function c(e,t){var n,c,u,l=Object(o.useState)(t),s=l[0],f=l[1];if((u=e)&&(u instanceof r.a||"function"==typeof u.lift&&"function"==typeof u.subscribe))c=e;else{var p=e,d=Object(a.e)(a.a);c=Object(a.e)((function(){return p(d.current,s)})).current,n=Object(o.useRef)((function(e){return d.current.next(e)})).current}return Object(i.a)(c,f),Object(o.useDebugValue)(s),n?[s,n]:s}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(6),a=n(43),c=n(44),u=n(50),l=n(49),s=n(25),f=n(56);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e){var t,n,r=e.className,a=e.included,c=e.vertical,u=e.style,l=e.length,s=e.offset,f=e.reverse;l<0&&(f=!f,l=Math.abs(l),s=100-s);var p=c?(t={},Object(i.a)(t,f?"top":"bottom","".concat(s,"%")),Object(i.a)(t,f?"bottom":"top","auto"),Object(i.a)(t,"height","".concat(l,"%")),t):(n={},Object(i.a)(n,f?"right":"left","".concat(s,"%")),Object(i.a)(n,f?"left":"right","auto"),Object(i.a)(n,"width","".concat(l,"%")),n),h=d(d({},u),p);return a?o.a.createElement("div",{className:r,style:h}):null},v=n(72);function m(e,t,n){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(s.a)(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var y=n(188),b=n(4),g=n.n(b);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=function(e){var t=e.prefixCls,n=e.vertical,r=e.reverse,a=e.marks,c=e.dots,u=e.step,l=e.included,s=e.lowerBound,p=e.upperBound,d=e.max,h=e.min,v=e.dotStyle,m=e.activeDotStyle,y=d-h,b=function(e,t,n,r,o,i){Object(f.a)(!n||r>0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var a=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var c=o;c<=i;c+=r)-1===a.indexOf(c)&&a.push(c);return a}(0,a,c,u,h,d).map((function(e){var a,c="".concat(Math.abs(e-h)/y*100,"%"),u=!l&&e===p||l&&e<=p&&e>=s,f=w(w({},v),{},n?Object(i.a)({},r?"top":"bottom",c):Object(i.a)({},r?"right":"left",c));u&&(f=w(w({},f),m));var d=g()((a={},Object(i.a)(a,"".concat(t,"-dot"),!0),Object(i.a)(a,"".concat(t,"-dot-active"),u),Object(i.a)(a,"".concat(t,"-dot-reverse"),r),a));return o.a.createElement("span",{className:d,style:f,key:e})}));return o.a.createElement("div",{className:"".concat(t,"-step")},b)},x=n(71);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=function(e){var t=e.className,n=e.vertical,r=e.reverse,a=e.marks,c=e.included,u=e.upperBound,l=e.lowerBound,s=e.max,f=e.min,p=e.onClickLabel,d=Object.keys(a),h=s-f,v=d.map(parseFloat).sort((function(e,t){return e-t})).map((function(e){var s,d=a[e],v="object"===Object(x.a)(d)&&!o.a.isValidElement(d),m=v?d.label:d;if(!m&&0!==m)return null;var y=!c&&e===u||c&&e<=u&&e>=l,b=g()((s={},Object(i.a)(s,"".concat(t,"-text"),!0),Object(i.a)(s,"".concat(t,"-text-active"),y),s)),O=Object(i.a)({marginBottom:"-50%"},r?"top":"bottom","".concat((e-f)/h*100,"%")),w=Object(i.a)({transform:"translateX(".concat(r?"50%":"-50%",")"),msTransform:"translateX(".concat(r?"50%":"-50%",")")},r?"right":"left","".concat((e-f)/h*100,"%")),j=n?O:w,E=v?S(S({},j),d.style):j;return o.a.createElement("span",{className:b,style:E,key:e,onMouseDown:function(t){return p(t,e)},onTouchStart:function(t){return p(t,e)}},m)}));return o.a.createElement("div",{className:t},v)};function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var M=function(e){Object(u.a)(n,e);var t=k(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).state={clickFocused:!1},e.setHandleRef=function(t){e.handle=t},e.handleMouseUp=function(){document.activeElement===e.handle&&e.setClickFocus(!0)},e.handleMouseDown=function(t){t.preventDefault(),e.focus()},e.handleBlur=function(){e.setClickFocus(!1)},e.handleKeyDown=function(){e.setClickFocus(!1)},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.onMouseUpListener=Object(y.a)(document,"mouseup",this.handleMouseUp)}},{key:"componentWillUnmount",value:function(){this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"setClickFocus",value:function(e){this.setState({clickFocused:e})}},{key:"clickFocus",value:function(){this.setClickFocus(!0),this.focus()}},{key:"focus",value:function(){this.handle.focus()}},{key:"blur",value:function(){this.handle.blur()}},{key:"render",value:function(){var e,t,n,r=this.props,a=r.prefixCls,c=r.vertical,u=r.reverse,l=r.offset,s=r.style,f=r.disabled,p=r.min,d=r.max,h=r.value,m=r.tabIndex,y=r.ariaLabel,b=r.ariaLabelledBy,O=r.ariaValueTextFormatter,w=Object(v.a)(r,["prefixCls","vertical","reverse","offset","style","disabled","min","max","value","tabIndex","ariaLabel","ariaLabelledBy","ariaValueTextFormatter"]),j=g()(this.props.className,Object(i.a)({},"".concat(a,"-handle-click-focused"),this.state.clickFocused)),x=c?(e={},Object(i.a)(e,u?"top":"bottom","".concat(l,"%")),Object(i.a)(e,u?"bottom":"top","auto"),Object(i.a)(e,"transform",u?null:"translateY(+50%)"),e):(t={},Object(i.a)(t,u?"right":"left","".concat(l,"%")),Object(i.a)(t,u?"left":"right","auto"),Object(i.a)(t,"transform","translateX(".concat(u?"+":"-","50%)")),t),E=P(P({},s),x),S=m||0;return(f||null===m)&&(S=null),O&&(n=O(h)),o.a.createElement("div",Object.assign({ref:this.setHandleRef,tabIndex:S},w,{className:j,style:E,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,role:"slider","aria-valuemin":p,"aria-valuemax":d,"aria-valuenow":h,"aria-disabled":!!f,"aria-label":y,"aria-labelledby":b,"aria-valuetext":n}))}}]),n}(o.a.Component),N=n(31),T=n(20),A=n(37);function R(e,t){try{return Object.keys(t).some((function(n){return e.target===Object(T.findDOMNode)(t[n])}))}catch(e){return!1}}function D(e,t){var n=t.min,r=t.max;return e<n||e>r}function I(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function L(e,t){var n=t.marks,r=t.step,o=t.min,i=t.max,a=Object.keys(n).map(parseFloat);if(null!==r){var c=Math.floor((i-o)/r),u=Math.min((e-o)/r,c),l=Math.round(u)*r+o;a.push(l)}var s=a.map((function(t){return Math.abs(e-t)}));return a[s.indexOf(Math.min.apply(Math,Object(N.a)(s)))]}function F(e,t){return e?t.clientY:t.pageX}function z(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function H(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function B(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function V(e,t){var n=t.step,r=isFinite(L(e,t))?L(e,t):0;return null===n?r:parseFloat(r.toFixed(function(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}(n)))}function K(e){e.stopPropagation(),e.preventDefault()}function U(e,t,n){var r="increase";switch(e.keyCode){case A.a.UP:r=t&&n?"decrease":"increase";break;case A.a.RIGHT:r=!t&&n?"decrease":"increase";break;case A.a.DOWN:r=t&&n?"increase":"decrease";break;case A.a.LEFT:r=!t&&n?"increase":"decrease";break;case A.a.END:return function(e,t){return t.max};case A.a.HOME:return function(e,t){return t.min};case A.a.PAGE_UP:return function(e,t){return e+2*t.step};case A.a.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}(r,e,t)}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}function $(){}function Y(e){var t;return(t=function(e){Object(u.a)(n,e);var t=G(n);function n(e){var r;Object(a.a)(this,n),(r=t.call(this,e)).onMouseDown=function(e){if(0===e.button){var t=r.props.vertical,n=F(t,e);if(R(e,r.handlesRefs)){var o=H(t,e.target);r.dragOffset=n-o,n=o}else r.dragOffset=0;r.removeDocumentEvents(),r.onStart(n),r.addDocumentMouseEvents()}},r.onTouchStart=function(e){if(!I(e)){var t=r.props.vertical,n=z(t,e);if(R(e,r.handlesRefs)){var o=H(t,e.target);r.dragOffset=n-o,n=o}else r.dragOffset=0;r.onStart(n),r.addDocumentTouchEvents(),K(e)}},r.onFocus=function(e){var t=r.props,n=t.onFocus,o=t.vertical;if(R(e,r.handlesRefs)){var i=H(o,e.target);r.dragOffset=0,r.onStart(i),K(e),n&&n(e)}},r.onBlur=function(e){var t=r.props.onBlur;r.onEnd(),t&&t(e)},r.onMouseUp=function(){r.handlesRefs[r.prevMovedHandleIndex]&&r.handlesRefs[r.prevMovedHandleIndex].clickFocus()},r.onMouseMove=function(e){if(r.sliderRef){var t=F(r.props.vertical,e);r.onMove(e,t-r.dragOffset)}else r.onEnd()},r.onTouchMove=function(e){if(!I(e)&&r.sliderRef){var t=z(r.props.vertical,e);r.onMove(e,t-r.dragOffset)}else r.onEnd()},r.onKeyDown=function(e){r.sliderRef&&R(e,r.handlesRefs)&&r.onKeyboard(e)},r.onClickMarkLabel=function(e,t){e.stopPropagation(),r.onChange({value:t}),r.setState({value:t},(function(){return r.onEnd(!0)}))},r.saveSlider=function(e){r.sliderRef=e};var o=e.step,i=e.max,c=e.min,u=!isFinite(i-c)||(i-c)%o==0;return Object(f.a)(!o||Math.floor(o)!==o||u,"Slider[max] - Slider[min] (".concat(i-c,") should be a multiple of Slider[step] (").concat(o,")")),r.handlesRefs={},r}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){m(Object(s.a)(n.prototype),"componentWillUnmount",this)&&m(Object(s.a)(n.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,r=t.reverse,o=e.getBoundingClientRect();return n?r?o.bottom:o.top:window.pageXOffset+(r?o.right:o.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=Object(y.a)(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Object(y.a)(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=Object(y.a)(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Object(y.a)(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){this.props.disabled||this.handlesRefs[0].focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach((function(t){e.handlesRefs[t]&&e.handlesRefs[t].blur&&e.handlesRefs[t].blur()}))}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,i=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-i)*(o-r)+r:i*(o-r)+r}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min,r=(e-n)/(t.max-n);return Math.max(0,100*r)}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var e,t=this.props,r=t.prefixCls,a=t.className,c=t.marks,u=t.dots,l=t.step,f=t.included,p=t.disabled,d=t.vertical,h=t.reverse,v=t.min,y=t.max,b=t.children,O=t.maximumTrackStyle,w=t.style,x=t.railStyle,E=t.dotStyle,S=t.activeDotStyle,_=m(Object(s.a)(n.prototype),"render",this).call(this),P=_.tracks,k=_.handles,M=g()(r,(e={},Object(i.a)(e,"".concat(r,"-with-marks"),Object.keys(c).length),Object(i.a)(e,"".concat(r,"-disabled"),p),Object(i.a)(e,"".concat(r,"-vertical"),d),Object(i.a)(e,a,a),e));return o.a.createElement("div",{ref:this.saveSlider,className:M,onTouchStart:p?$:this.onTouchStart,onMouseDown:p?$:this.onMouseDown,onMouseUp:p?$:this.onMouseUp,onKeyDown:p?$:this.onKeyDown,onFocus:p?$:this.onFocus,onBlur:p?$:this.onBlur,style:w},o.a.createElement("div",{className:"".concat(r,"-rail"),style:q(q({},O),x)}),P,o.a.createElement(j,{prefixCls:r,vertical:d,reverse:h,marks:c,dots:u,step:l,included:f,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:v,dotStyle:E,activeDotStyle:S}),k,o.a.createElement(C,{className:"".concat(r,"-mark"),onClickLabel:p?$:this.onClickMarkLabel,vertical:d,marks:c,included:f,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:v,reverse:h}),b)}}]),n}(e)).displayName="ComponentEnhancer(".concat(e.displayName,")"),t.defaultProps=q(q({},e.defaultProps),{},{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var t=e.index,n=Object(v.a)(e,["index"]);return delete n.dragging,null===n.value?null:o.a.createElement(M,Object.assign({},n,{key:t}))},onBeforeChange:$,onChange:$,onAfterChange:$,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),t}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var Q=Y(function(e){Object(u.a)(n,e);var t=J(n);function n(e){var r;Object(a.a)(this,n),(r=t.call(this,e)).onEnd=function(e){var t=r.state.dragging;r.removeDocumentEvents(),(t||e)&&r.props.onAfterChange(r.getValue()),r.setState({dragging:!1})};var o=void 0!==e.defaultValue?e.defaultValue:e.min,i=void 0!==e.value?e.value:o;return r.state={value:r.trimAlignValue(i),dragging:!1},Object(f.a)(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),Object(f.a)(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),r}return Object(c.a)(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){if("value"in this.props||"min"in this.props||"max"in this.props){var n=this.props,r=n.value,o=n.onChange,i=void 0!==r?r:t.value,a=this.trimAlignValue(i,this.props);a!==t.value&&(this.setState({value:a}),D(i,this.props)&&o(a))}}},{key:"onChange",value:function(e){var t=this.props,n=!("value"in t),r=e.value>this.props.max?Z(Z({},e),{},{value:this.props.max}):e;n&&this.setState(r);var o=r.value;t.onChange(o)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){K(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=U(e,t.vertical,n);if(r){K(e);var o=this.state.value,i=r(o,this.props),a=this.trimAlignValue(i);if(a===o)return;this.onChange({value:a}),this.props.onAfterChange(a),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){return this.props.min}},{key:"getUpperBound",value:function(){return this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=Z(Z({},this.props),t),r=B(e,n);return V(r,n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.vertical,i=t.included,a=t.disabled,c=t.minimumTrackStyle,u=t.trackStyle,l=t.handleStyle,s=t.tabIndex,f=t.ariaLabelForHandle,p=t.ariaLabelledByForHandle,d=t.ariaValueTextFormatterForHandle,v=t.min,m=t.max,y=t.startPoint,b=t.reverse,g=t.handle,O=this.state,w=O.value,j=O.dragging,x=this.calcOffset(w),E=g({className:"".concat(n,"-handle"),prefixCls:n,vertical:r,offset:x,value:w,dragging:j,disabled:a,min:v,max:m,reverse:b,index:0,tabIndex:s,ariaLabel:f,ariaLabelledBy:p,ariaValueTextFormatter:d,style:l[0]||l,ref:function(t){return e.saveHandle(0,t)}}),S=void 0!==y?this.calcOffset(y):0,C=u[0]||u;return{tracks:o.a.createElement(h,{className:"".concat(n,"-track"),vertical:r,included:i,offset:S,reverse:b,length:x-S,style:Z(Z({},c),C)}),handles:E}}}]),n}(o.a.Component)),ee=n(229),te=n.n(ee);function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var ie=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,i=o.allowCross,a=o.pushable,c=Number(a),u=B(t,o),l=u;return i||null==n||void 0===r||(n>0&&u<=r[n-1]+c&&(l=r[n-1]+c),n<r.length-1&&u>=r[n+1]-c&&(l=r[n+1]-c)),V(l,o)},ae=function(e){Object(u.a)(n,e);var t=oe(n);function n(e){var r;Object(a.a)(this,n),(r=t.call(this,e)).onEnd=function(e){var t=r.state.handle;r.removeDocumentEvents(),(null!==t||e)&&r.props.onAfterChange(r.getValue()),r.setState({handle:null})};var o=e.count,i=e.min,c=e.max,u=Array.apply(void 0,Object(N.a)(Array(o+1))).map((function(){return i})),l="defaultValue"in e?e.defaultValue:u,s=(void 0!==e.value?e.value:l).map((function(t,n){return ie({value:t,handle:n,props:e})})),f=s[0]===c?0:s.length-1;return r.state={handle:null,recent:f,bounds:s},r}return Object(c.a)(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this;if(("value"in this.props||"min"in this.props||"max"in this.props)&&(this.props.min!==e.min||this.props.max!==e.max||!te()(this.props.value,e.value))){var r=this.props,o=r.onChange,i=r.value||t.bounds;if(i.some((function(e){return D(e,n.props)})))o(i.map((function(e){return B(e,n.props)})))}}},{key:"onChange",value:function(e){var t=this.props;if(!("value"in t))this.setState(e);else{var n={};["handle","recent"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),Object.keys(n).length&&this.setState(n)}var r=re(re({},this.state),e).bounds;t.onChange(r)}},{key:"onStart",value:function(e){var t=this.props,n=this.state,r=this.getValue();t.onBeforeChange(r);var o=this.calcValueByPos(e);this.startValue=o,this.startPosition=e;var i=this.getClosestBound(o);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(o,i),this.setState({handle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),o!==r[this.prevMovedHandleIndex]){var a=Object(N.a)(n.bounds);a[this.prevMovedHandleIndex]=o,this.onChange({bounds:a})}}},{key:"onMove",value:function(e,t){K(e);var n=this.state,r=this.calcValueByPos(t);r!==n.bounds[n.handle]&&this.moveTo(r)}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=U(e,t.vertical,n);if(r){K(e);var o=this.state,i=this.props,a=o.bounds,c=o.handle,u=a[null===c?o.recent:c],l=r(u,i),s=ie({value:l,handle:c,bounds:o.bounds,props:i});if(s===u)return;this.moveTo(s,!0)}}},{key:"getValue",value:function(){return this.state.bounds}},{key:"getClosestBound",value:function(e){for(var t=this.state.bounds,n=0,r=1;r<t.length-1;r+=1)e>=t[r]&&(n=r);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n}},{key:"getBoundNeedMoving",value:function(e,t){var n=this.state,r=n.bounds,o=n.recent,i=t,a=r[t+1]===r[t];return a&&r[o]===r[t]&&(i=o),a&&e!==r[t+1]&&(i=e<r[t+1]?t:t+1),i}},{key:"getLowerBound",value:function(){return this.state.bounds[0]}},{key:"getUpperBound",value:function(){var e=this.state.bounds;return e[e.length-1]}},{key:"getPoints",value:function(){var e=this.props,t=e.marks,n=e.step,r=e.min,o=e.max,i=this.internalPointsCache;if(!i||i.marks!==t||i.step!==n){var a=re({},t);if(null!==n)for(var c=r;c<=o;c+=n)a[c]=c;var u=Object.keys(a).map(parseFloat);u.sort((function(e,t){return e-t})),this.internalPointsCache={marks:t,step:n,points:u}}return this.internalPointsCache.points}},{key:"moveTo",value:function(e,t){var n=this,r=this.state,o=this.props,i=Object(N.a)(r.bounds),a=null===r.handle?r.recent:r.handle;i[a]=e;var c=a;!1!==o.pushable?this.pushSurroundingHandles(i,c):o.allowCross&&(i.sort((function(e,t){return e-t})),c=i.indexOf(e)),this.onChange({recent:c,handle:c,bounds:i}),t&&(this.props.onAfterChange(i),this.setState({},(function(){n.handlesRefs[c].focus()})),this.onEnd())}},{key:"pushSurroundingHandles",value:function(e,t){var n=e[t],r=this.props.pushable,o=Number(r),i=0;if(e[t+1]-n<o&&(i=1),n-e[t-1]<o&&(i=-1),0!==i){var a=t+i,c=i*(e[a]-n);this.pushHandle(e,a,i,o-c)||(e[t]=e[a]-i*o)}}},{key:"pushHandle",value:function(e,t,n,r){for(var o=e[t],i=e[t];n*(i-o)<r;){if(!this.pushHandleOnePoint(e,t,n))return e[t]=o,!1;i=e[t]}return!0}},{key:"pushHandleOnePoint",value:function(e,t,n){var r=this.getPoints(),o=r.indexOf(e[t])+n;if(o>=r.length||o<0)return!1;var i=t+n,a=r[o],c=this.props.pushable,u=Number(c),l=n*(e[i]-a);return!!this.pushHandle(e,i,n,u-l)&&(e[t]=a,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state,n=t.handle,r=t.bounds;return ie({value:e,handle:n,bounds:r,props:this.props})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handle,r=t.bounds,a=this.props,c=a.prefixCls,u=a.vertical,l=a.included,s=a.disabled,f=a.min,p=a.max,d=a.reverse,v=a.handle,m=a.trackStyle,y=a.handleStyle,b=a.tabIndex,O=a.ariaLabelGroupForHandles,w=a.ariaLabelledByGroupForHandles,j=a.ariaValueTextFormatterGroupForHandles,x=r.map((function(t){return e.calcOffset(t)})),E="".concat(c,"-handle"),S=r.map((function(t,r){var o,a=b[r]||0;(s||null===b[r])&&(a=null);var l=n===r;return v({className:g()((o={},Object(i.a)(o,E,!0),Object(i.a)(o,"".concat(E,"-").concat(r+1),!0),Object(i.a)(o,"".concat(E,"-dragging"),l),o)),prefixCls:c,vertical:u,dragging:l,offset:x[r],value:t,index:r,tabIndex:a,min:f,max:p,reverse:d,disabled:s,style:y[r],ref:function(t){return e.saveHandle(r,t)},ariaLabel:O[r],ariaLabelledBy:w[r],ariaValueTextFormatter:j[r]})}));return{tracks:r.slice(0,-1).map((function(e,t){var n,r=t+1,a=g()((n={},Object(i.a)(n,"".concat(c,"-track"),!0),Object(i.a)(n,"".concat(c,"-track-").concat(r),!0),n));return o.a.createElement(h,{className:a,vertical:u,reverse:d,included:l,offset:x[r-1],length:x[r]-x[r-1],style:m[t],key:r})})),handles:S}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if("value"in e||"min"in e||"max"in e){var n=(e.value||t.bounds).map((function(n,r){return ie({value:n,handle:r,bounds:t.bounds,props:e})}));return n.length===t.bounds.length&&n.every((function(e,n){return e===t.bounds[n]}))?null:re(re({},t),{},{bounds:n})}return null}}]),n}(o.a.Component);ae.displayName="Range",ae.defaultProps={count:1,allowCross:!0,pushable:!1,tabIndex:[],ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]};var ce=Y(ae),ue=n(309);function le(){return(le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var se=r.forwardRef((function(e,t){var n=e.visible,o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=r.useRef();return r.useEffect((function(){t.forEach((function(e){e&&("function"==typeof e?e(o.current):e.current=o.current)}))}),[t]),o}(t,r.useRef(null)),i=r.useRef(null);function a(){window.cancelAnimationFrame(i.current),i.current=null}return r.useEffect((function(){return n?function e(){null===i.current&&(i.current=window.requestAnimationFrame((function(){o.current.forcePopupAlign(),i.current=null,e()})))}():a(),a}),[n]),r.createElement(ue.a,le({ref:o},e))})),fe=n(190);function pe(){return(pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return he(e,t)}(e,t)||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 he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},me=r.forwardRef((function(e,t){var n,o,i,a=r.useContext(fe.b),c=a.getPrefixCls,u=a.direction,l=a.getPopupContainer,s=de(r.useState({}),2),f=s[0],p=s[1],d=function(e,t){var n=pe({},f);n[e]=t,p(n)},h=function(t){var n=t.tooltipPrefixCls,o=t.prefixCls,i=t.info,a=i.value,c=i.dragging,u=i.index,s=ve(i,["value","dragging","index"]),p=e.tipFormatter,h=e.tooltipVisible,v=e.tooltipPlacement,m=e.getTooltipPopupContainer,y=e.vertical,b=!!p&&(f[u]||c),g=h||void 0===h&&b;return r.createElement(se,{prefixCls:n,title:p?p(a):"",visible:g,placement:v||(y?"right":"top"),transitionName:"zoom-down",key:u,overlayClassName:"".concat(o,"-tooltip"),getPopupContainer:m||l||function(){return document.body}},r.createElement(M,pe({},s,{value:a,onMouseEnter:function(){return d(u,!0)},onMouseLeave:function(){return d(u,!1)}})))},v=e.prefixCls,m=e.tooltipPrefixCls,y=e.range,b=e.className,O=ve(e,["prefixCls","tooltipPrefixCls","range","className"]),w=c("slider",v),j=c("tooltip",m),x=g()(b,(n={},o="".concat(w,"-rtl"),i="rtl"===u,o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n));return"rtl"!==u||O.vertical||(O.reverse=!O.reverse),y?r.createElement(ce,pe({},O,{className:x,ref:t,handle:function(e){return h({tooltipPrefixCls:j,prefixCls:w,info:e})},prefixCls:w,tooltipPrefixCls:j})):r.createElement(Q,pe({},O,{className:x,ref:t,handle:function(e){return h({tooltipPrefixCls:j,prefixCls:w,info:e})},prefixCls:w,tooltipPrefixCls:j}))}));me.displayName="Slider",me.defaultProps={tipFormatter:function(e){return"number"==typeof e?e.toString():""}};t.a=me},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(84),c=n(305),u=n.n(c),l=n(171),s=n(102);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=Object(l.a)("text","input");function O(e){return!!(e.prefix||e.suffix||e.allowClear)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(c,e);var t,n,o,a=m(c);function c(){var e;return d(this,c),(e=a.apply(this,arguments)).containerRef=r.createRef(),e.onInputMouseUp=function(t){var n;(null===(n=e.containerRef.current)||void 0===n?void 0:n.contains(t.target))&&(0,e.props.triggerFocus)()},e}return t=c,(n=[{key:"renderClearIcon",value:function(e){var t=this.props,n=t.allowClear,o=t.value,a=t.disabled,c=t.readOnly,l=t.inputType,s=t.handleReset;if(!n)return null;var f=!a&&!c&&o,d=l===g[0]?"".concat(e,"-textarea-clear-icon"):"".concat(e,"-clear-icon");return r.createElement(u.a,{onClick:s,className:i()(d,p({},"".concat(d,"-hidden"),!f)),role:"button"})}},{key:"renderSuffix",value:function(e){var t=this.props,n=t.suffix,o=t.allowClear;return n||o?r.createElement("span",{className:"".concat(e,"-suffix")},this.renderClearIcon(e),n):null}},{key:"renderLabeledIcon",value:function(e,t){var n,o=this.props,a=o.focused,c=o.value,u=o.prefix,l=o.className,f=o.size,d=o.suffix,h=o.disabled,v=o.allowClear,m=o.direction,y=o.style,b=o.readOnly,g=this.renderSuffix(e);if(!O(this.props))return Object(s.a)(t,{value:c});var w=u?r.createElement("span",{className:"".concat(e,"-prefix")},u):null,j=i()(l,"".concat(e,"-affix-wrapper"),(p(n={},"".concat(e,"-affix-wrapper-focused"),a),p(n,"".concat(e,"-affix-wrapper-disabled"),h),p(n,"".concat(e,"-affix-wrapper-sm"),"small"===f),p(n,"".concat(e,"-affix-wrapper-lg"),"large"===f),p(n,"".concat(e,"-affix-wrapper-input-with-clear-btn"),d&&v&&c),p(n,"".concat(e,"-affix-wrapper-rtl"),"rtl"===m),p(n,"".concat(e,"-affix-wrapper-readonly"),b),n));return r.createElement("span",{ref:this.containerRef,className:j,style:y,onMouseUp:this.onInputMouseUp},w,Object(s.a)(t,{style:null,value:c,className:D(e,f,h)}),g)}},{key:"renderInputWithLabel",value:function(e,t){var n,o,a=this.props,c=a.addonBefore,u=a.addonAfter,l=a.style,f=a.size,d=a.className,h=a.direction;if(!c&&!u)return t;var v="".concat(e,"-group"),m="".concat(v,"-addon"),y=c?r.createElement("span",{className:m},c):null,b=u?r.createElement("span",{className:m},u):null,g=i()("".concat(e,"-wrapper"),(p(n={},v,c||u),p(n,"".concat(v,"-rtl"),"rtl"===h),n)),O=i()(d,"".concat(e,"-group-wrapper"),(p(o={},"".concat(e,"-group-wrapper-sm"),"small"===f),p(o,"".concat(e,"-group-wrapper-lg"),"large"===f),p(o,"".concat(e,"-group-wrapper-rtl"),"rtl"===h),o));return r.createElement("span",{className:O,style:l},r.createElement("span",{className:g},y,Object(s.a)(t,{style:null}),b))}},{key:"renderTextAreaWithClearIcon",value:function(e,t){var n=this.props,o=n.value,a=n.allowClear,c=n.className,u=n.style,l=n.direction;if(!a)return Object(s.a)(t,{value:o});var f=i()(c,"".concat(e,"-affix-wrapper"),p({},"".concat(e,"-affix-wrapper-rtl"),"rtl"===l),"".concat(e,"-affix-wrapper-textarea-with-clear-btn"));return r.createElement("span",{className:f,style:u},Object(s.a)(t,{style:null,value:o}),this.renderClearIcon(e))}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.inputType,r=e.element;return n===g[0]?this.renderTextAreaWithClearIcon(t,r):this.renderInputWithLabel(t,this.renderLabeledIcon(t,r))}}])&&h(t.prototype,n),o&&h(t,o),c}(r.Component),j=n(190),x=n(148),E=n(86);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){return null==e?"":e}function R(e,t,n){if(n){var r=t;if("click"===t.type){(r=Object.create(t)).target=e,r.currentTarget=e;var o=e.value;return e.value="",n(r),void(e.value=o)}n(r)}}function D(e,t,n,r){var o;return i()(e,(T(o={},"".concat(e,"-sm"),"small"===t),T(o,"".concat(e,"-lg"),"large"===t),T(o,"".concat(e,"-disabled"),n),T(o,"".concat(e,"-rtl"),"rtl"===r),o))}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(u,e);var t,n,o,c=k(u);function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=c.call(this,e)).direction="ltr",t.focus=function(){t.input.focus()},t.saveClearableInput=function(e){t.clearableInput=e},t.saveInput=function(e){t.input=e},t.onFocus=function(e){var n=t.props.onFocus;t.setState({focused:!0},t.clearPasswordValueAttribute),n&&n(e)},t.onBlur=function(e){var n=t.props.onBlur;t.setState({focused:!1},t.clearPasswordValueAttribute),n&&n(e)},t.handleReset=function(e){t.setValue("",(function(){t.focus()})),R(t.input,e,t.props.onChange)},t.renderInput=function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=t.props,u=c.className,l=c.addonBefore,s=c.addonAfter,f=c.size,p=c.disabled,d=Object(a.default)(t.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType"]);return r.createElement("input",C({autoComplete:o.autoComplete},d,{onChange:t.handleChange,onFocus:t.onFocus,onBlur:t.onBlur,onKeyDown:t.handleKeyDown,className:i()(D(e,f||n,p,t.direction),T({},u,u&&!l&&!s)),ref:t.saveInput}))},t.clearPasswordValueAttribute=function(){t.removePasswordTimeout=setTimeout((function(){t.input&&"password"===t.input.getAttribute("type")&&t.input.hasAttribute("value")&&t.input.removeAttribute("value")}))},t.handleChange=function(e){t.setValue(e.target.value,t.clearPasswordValueAttribute),R(t.input,e,t.props.onChange)},t.handleKeyDown=function(e){var n=t.props,r=n.onPressEnter,o=n.onKeyDown;13===e.keyCode&&r&&r(e),o&&o(e)},t.renderComponent=function(e){var n=e.getPrefixCls,o=e.direction,i=e.input,a=t.state,c=a.value,u=a.focused,l=n("input",t.props.prefixCls);return t.direction=o,r.createElement(x.b.Consumer,null,(function(e){return r.createElement(w,C({size:e},t.props,{prefixCls:l,inputType:"input",value:A(c),element:t.renderInput(l,e,i),handleReset:t.handleReset,ref:t.saveClearableInput,direction:o,focused:u,triggerFocus:t.focus}))}))};var n=void 0===e.value?e.defaultValue:e.value;return t.state={value:n,focused:!1,prevValue:e.value},t}return t=u,o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevValue,r={prevValue:e.value};return void 0===e.value&&n===e.value||(r.value=e.value),r}}],(n=[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(e){return O(e)!==O(this.props)&&Object(E.a)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(e,t){void 0===this.props.value&&this.setState({value:e},t)}},{key:"render",value:function(){return r.createElement(j.a,null,this.renderComponent)}}])&&_(t.prototype,n),o&&_(t,o),u}(r.Component);I.defaultProps={type:"text"};var L=I;function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z=function(e){return r.createElement(j.a,null,(function(t){var n,o=t.getPrefixCls,a=t.direction,c=e.prefixCls,u=e.className,l=void 0===u?"":u,s=o("input-group",c),f=i()(s,(F(n={},"".concat(s,"-lg"),"large"===e.size),F(n,"".concat(s,"-sm"),"small"===e.size),F(n,"".concat(s,"-compact"),e.compact),F(n,"".concat(s,"-rtl"),"rtl"===a),n),l);return r.createElement("span",{className:f,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}))},H=n(175),B=n(582),V=n.n(B),K=n(174),U=n.n(K),W=n(82);function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(){return(G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var $=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Y=r.forwardRef((function(e,t){var n=r.useRef(null),o=function(t){var n=e.onChange,r=e.onSearch;t&&t.target&&"click"===t.type&&r&&r(t.target.value,t),n&&n(t)},a=function(e){var t;document.activeElement===(null===(t=n.current)||void 0===t?void 0:t.input)&&e.preventDefault()},c=function(t){var r,o=e.onSearch,i=e.loading,a=e.disabled;i||a||o&&o(null===(r=n.current)||void 0===r?void 0:r.input.value,t)},u=function(t){var n=e.enterButton,o=e.size;return n?r.createElement(x.b.Consumer,{key:"enterButton"},(function(e){return r.createElement(W.a,{className:"".concat(t,"-button"),type:"primary",size:o||e},r.createElement(U.a,null))})):r.createElement(U.a,{className:"".concat(t,"-icon"),key:"loadingIcon"})},l=function(t){var n=e.suffix,o=e.enterButton;if(e.loading&&!o)return[n,u(t)];if(o)return n;var i=r.createElement(V.a,{className:"".concat(t,"-icon"),key:"searchIcon",onClick:c});return n?[Object(s.c)(n,null,{key:"suffix"}),i]:i},f=function(t,n){var o,i=e.enterButton,l=e.disabled,f=e.addonAfter,p=e.loading,d="".concat(t,"-button");if(p&&i)return[u(t),f];if(!i)return f;var h=i,v=h.type&&!0===h.type.__ANT_BUTTON;return o=v||"button"===h.type?Object(s.a)(h,G({onMouseDown:a,onClick:c,key:"enterButton"},v?{className:d,size:n}:{})):r.createElement(W.a,{className:d,type:"primary",size:n,disabled:l,key:"enterButton",onMouseDown:a,onClick:c},!0===i?r.createElement(V.a,null):i),f?[o,Object(s.c)(f,null,{key:"addonAfter"})]:o},p=function(a){var u=a.getPrefixCls,s=a.direction,p=e.prefixCls,d=e.inputPrefixCls,h=e.enterButton,v=e.className,m=e.size,y=$(e,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete y.onSearch,delete y.loading;var b=u("input-search",p),g=u("input",d),O=function(e){var t,n;h?t=i()(b,v,(q(n={},"".concat(b,"-rtl"),"rtl"===s),q(n,"".concat(b,"-enter-button"),!!h),q(n,"".concat(b,"-").concat(e),!!e),n)):t=i()(b,v,q({},"".concat(b,"-rtl"),"rtl"===s));return t};return r.createElement(x.b.Consumer,null,(function(e){return r.createElement(L,G({ref:Object(H.a)(n,t),onPressEnter:c},y,{size:m||e,prefixCls:g,addonAfter:f(b,m||e),suffix:l(b),onChange:o,className:O(m||e)}))}))};return r.createElement(j.a,null,p)}));Y.defaultProps={enterButton:!1},Y.displayName="Search";var X=Y,Z=n(964);function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(){return(Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function te(e,t){return(te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oe(e);if(t){var o=oe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return re(this,n)}}function re(e,t){return!t||"object"!==J(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&te(e,t)}(c,e);var t,n,o,i=ne(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,e)).focus=function(){t.resizableTextArea.textArea.focus()},t.saveTextArea=function(e){t.resizableTextArea=null==e?void 0:e.resizableTextArea},t.saveClearableInput=function(e){t.clearableInput=e},t.handleChange=function(e){t.setValue(e.target.value),R(t.resizableTextArea.textArea,e,t.props.onChange)},t.handleReset=function(e){t.setValue("",(function(){t.focus()})),R(t.resizableTextArea.textArea,e,t.props.onChange)},t.renderTextArea=function(e){return r.createElement(Z.a,Q({},Object(a.default)(t.props,["allowClear"]),{prefixCls:e,onChange:t.handleChange,ref:t.saveTextArea}))},t.renderComponent=function(e){var n=e.getPrefixCls,o=e.direction,i=t.state.value,a=n("input",t.props.prefixCls);return r.createElement(w,Q({},t.props,{prefixCls:a,direction:o,inputType:"text",value:A(i),element:t.renderTextArea(a),handleReset:t.handleReset,ref:t.saveClearableInput,triggerFocus:t.focus}))};var n=void 0===e.value?e.defaultValue:e.value;return t.state={value:n},t}return t=c,o=[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}],(n=[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return r.createElement(j.a,null,this.renderComponent)}}])&&ee(t.prototype,n),o&&ee(t,o),c}(r.Component),ae=n(743),ce=n.n(ae),ue=n(946),le=n.n(ue);function se(){return(se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return de(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return de(e,t)}(e,t)||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 de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var he=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ve={click:"onClick",hover:"onMouseOver"},me=r.forwardRef((function(e,t){var n=pe(Object(r.useState)(!1),2),o=n[0],c=n[1],u=function(){e.disabled||c(!o)},l=function(n){var c=n.getPrefixCls,l=e.className,s=e.prefixCls,f=e.inputPrefixCls,p=e.size,d=e.visibilityToggle,h=he(e,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),v=c("input",f),m=c("input-password",s),y=d&&function(t){var n,i=e.action,a=e.iconRender,c=ve[i]||"",l=(void 0===a?function(){return null}:a)(o),s=(fe(n={},c,u),fe(n,"className","".concat(t,"-icon")),fe(n,"key","passwordIcon"),fe(n,"onMouseDown",(function(e){e.preventDefault()})),fe(n,"onMouseUp",(function(e){e.preventDefault()})),n);return r.cloneElement(r.isValidElement(l)?l:r.createElement("span",null,l),s)}(m),b=i()(m,l,fe({},"".concat(m,"-").concat(p),!!p)),g=se(se({},Object(a.default)(h,["suffix","iconRender"])),{type:o?"text":"password",className:b,prefixCls:v,suffix:y});return p&&(g.size=p),r.createElement(L,se({ref:t},g))};return r.createElement(j.a,null,l)}));me.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(e){return e?r.createElement(ce.a,null):r.createElement(le.a,null)}},me.displayName="Password";var ye=me;L.Group=z,L.Search=X,L.TextArea=ie,L.Password=ye;t.a=L},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(198),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c}).call(this,n(183)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(203),o=n(158),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},,function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var o=r();o.withExtraArgument=r,t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(514);t.createActionCreator=r.createActionCreator,t.createActionCreators=r.createActionCreators,t.proxyActionCreators=r.proxyActionCreators;var o=n(517);t.createFSACreator=o.createActionCreator,t.createFSACreators=o.createActionCreators,t.proxyFSACreators=o.proxyActionCreators;var i=n(226);t.combineObjects=i.combineObjects;var a=n(520);t.combineUniqueObjects=a.combineUniqueObjects;var c=n(361);t.proxyCombineObjects=c.proxyCombineObjects;var u=n(521);t.proxyCombineUniqueObjects=u.proxyCombineUniqueObjects;var l=n(522);t.createReducer=l.createReducer},,,function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return s}));var r=n(31);function o(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function i(e,t){var n=t.labelInValue,r=t.combobox;if(void 0===e||""===e&&r)return[];var o=Array.isArray(e)?e:[e];return n?o.map((function(e){var t=e.key,n=e.value;return void 0!==n?n:t})):o}function a(e,t){var n=t.optionLabelProp,r=t.labelInValue,o=t.prevValue,i=t.options,a=t.getLabeledValue,c=e;return r&&(c=c.map((function(e){return a(e,{options:i,prevValue:o,labelInValue:r,optionLabelProp:n})}))),c}function c(e,t){var n,o=Object(r.a)(t);for(n=e.length-1;n>=0&&e[n].disabled;n-=1);var i=null;return-1!==n&&(i=o[n],o.splice(n,1)),{values:o,removedValue:i}}var u="undefined"!=typeof window&&window.document&&window.document.documentElement,l=0;function s(){var e;return u?(e=l,l+=1):e="TEST_OR_SSR",e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return f}));n(31);var r=n(6),o=(n(72),n(204),n(56)),i=n(438);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){return null!=e?e:t}function l(e,t,n){var r;n?"string"==typeof n?r=function(e){return e[n]}:"function"==typeof n&&(r=function(e){return n(e)}):r=function(e,t){return u(e.key,t)},function n(o,a,c){var u=o?o.children:e,l=o?Object(i.d)(c.pos,a):"0";if(o){var s=r(o,l),f={node:o,index:a,pos:l,key:s,parentPos:c.node?c.pos:null,level:c.level+1};t(f)}u&&u.forEach((function(e,t){n(e,t,{node:o,pos:l,level:c?c.level+1:-1})}))}(null)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=arguments.length>2?arguments[2]:void 0,a={},c={},s={posEntities:a,keyEntities:c};return n&&(s=n(s)||s),l(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,l=e.parentPos,f={node:t,index:n,key:i,pos:o,level:e.level},p=u(i,o);a[o]=f,c[p]=f,f.parent=a[l],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),r&&r(f,s)}),i),o&&o(s),s}function f(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,u=e.loading,l=e.halfChecked,s=e.dragOver,f=e.dragOverGapTop,p=e.dragOverGapBottom,d=e.pos,h=e.active,v=c(c({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:u,halfChecked:l,dragOver:s,dragOverGapTop:f,dragOverGapBottom:p,pos:d,active:h});return"props"in v||Object.defineProperty(v,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(209),o=n(197),i=n(51),a=n(199),c=n(156),u=n(210),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),s=!n&&o(e),f=!n&&!s&&a(e),p=!n&&!s&&!f&&u(e),d=n||s||f||p,h=d?r(e.length,String):[],v=h.length;for(var m in e)!t&&!l.call(e,m)||d&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||c(m,v))||h.push(m);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(356);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(411),o=n(164),i=n(412),a=n(413),c=n(414),u=n(66),l=n(211),s=l(r),f=l(o),p=l(i),d=l(a),h=l(c),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||c&&"[object WeakMap]"!=v(new c))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case s:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,c,u=a(e),l=1;l<arguments.length;l++){for(var s in n=Object(arguments[l]))o.call(n,s)&&(u[s]=n[s]);if(r){c=r(n);for(var f=0;f<c.length;f++)i.call(n,c[f])&&(u[c[f]]=n[c[f]])}}return u}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1028))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(496),a=n(4),c=n.n(a),u=n(101),l=n.n(u),s=n(388),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(e){var t=e,n=!!o.a.forwardRef;function r(e){return!(!e.motionName||!t)}"object"==typeof e&&(t=e.transitionSupport,n="forwardRef"in e?e.forwardRef:n);var a=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.onDomUpdate=function(){var t=e.state,n=t.status,o=t.newStatus,i=e.props,a=i.onAppearStart,c=i.onEnterStart,u=i.onLeaveStart,l=i.onAppearActive,s=i.onEnterActive,f=i.onLeaveActive,p=i.motionAppear,d=i.motionEnter,h=i.motionLeave;if(r(e.props)){var v=e.getElement();e.$cacheEle!==v&&(e.removeEventListener(e.$cacheEle),e.addEventListener(v),e.$cacheEle=v),o&&"appear"===n&&p?e.updateStatus(a,null,null,(function(){e.updateActiveStatus(l,"appear")})):o&&"enter"===n&&d?e.updateStatus(c,null,null,(function(){e.updateActiveStatus(s,"enter")})):o&&"leave"===n&&h&&e.updateStatus(u,null,null,(function(){e.updateActiveStatus(f,"leave")}))}},e.onMotionEnd=function(t){var n=e.state,r=n.status,o=n.statusActive,i=e.props,a=i.onAppearEnd,c=i.onEnterEnd,u=i.onLeaveEnd;"appear"===r&&o?e.updateStatus(a,{status:"none"},t):"enter"===r&&o?e.updateStatus(c,{status:"none"},t):"leave"===r&&o&&e.updateStatus(u,{status:"none"},t)},e.setNodeRef=function(t){var n=e.props.internalRef;e.node=t,"function"==typeof n?n(t):n&&"current"in n&&(n.current=t)},e.getElement=function(){try{return Object(i.a)(e.node||e)}catch(t){return e.$cacheEle}},e.addEventListener=function(t){t&&(t.addEventListener(s.d,e.onMotionEnd),t.addEventListener(s.a,e.onMotionEnd))},e.removeEventListener=function(t){t&&(t.removeEventListener(s.d,e.onMotionEnd),t.removeEventListener(s.a,e.onMotionEnd))},e.updateStatus=function(t,n,r,o){var i=t?t(e.getElement(),r):null;if(!1!==i&&!e._destroyed){var a=void 0;o&&(a=function(){e.nextFrame(o)}),e.setState(f({statusStyle:"object"==typeof i?i:null,newStatus:!1},n),a)}},e.updateActiveStatus=function(t,n){e.nextFrame((function(){if(e.state.status===n){var r=e.props.motionDeadline;e.updateStatus(t,{statusActive:!0}),r>0&&setTimeout((function(){e.onMotionEnd({deadline:!0})}),r)}}))},e.nextFrame=function(t){e.cancelNextFrame(),e.raf=l()(t)},e.cancelNextFrame=function(){e.raf&&(l.a.cancel(e.raf),e.raf=null)},e.state={status:"none",statusActive:!1,newStatus:!1,statusStyle:null},e.$cacheEle=null,e.node=null,e.raf=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),p(t,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame()}},{key:"render",value:function(){var e,t=this.state,n=t.status,o=t.statusActive,i=t.statusStyle,a=this.props,u=a.children,l=a.motionName,p=a.visible,h=a.removeOnLeave,v=a.leavedClassName,m=a.eventProps;return u?"none"!==n&&r(this.props)?u(f({},m,{className:c()((e={},d(e,Object(s.b)(l,n),"none"!==n),d(e,Object(s.b)(l,n+"-active"),"none"!==n&&o),d(e,l,"string"==typeof l),e)),style:i}),this.setNodeRef):p?u(f({},m),this.setNodeRef):h?null:u(f({},m,{className:v}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.status;if(!r(e))return{};var i=e.visible,a=e.motionAppear,c=e.motionEnter,u=e.motionLeave,l=e.motionLeaveImmediately,s={prevProps:e};return("appear"===o&&!a||"enter"===o&&!c||"leave"===o&&!u)&&(s.status="none",s.statusActive=!1,s.newStatus=!1),!n&&i&&a&&(s.status="appear",s.statusActive=!1,s.newStatus=!0),n&&!n.visible&&i&&c&&(s.status="enter",s.statusActive=!1,s.newStatus=!0),(n&&n.visible&&!i&&u||!n&&l&&!i&&u)&&(s.status="leave",s.statusActive=!1,s.newStatus=!0),s}}]),t}(o.a.Component);return a.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},n?o.a.forwardRef((function(e,t){return o.a.createElement(a,f({internalRef:t},e))})):a}(s.c)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),o=n(372).a,i=n(735);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(a,e);var t,n,r,i=f(a);function a(){return u(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||o[t||"global"],r=this.context,i=t&&r?r[t]:{};return c(c({},"function"==typeof n?n():n),i||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?o.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}])&&l(t.prototype,n),r&&l(t,r),a}(r.Component);h.defaultProps={componentName:"global"},h.contextType=i.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),o=n(91),i=n(69),a=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r.__extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(o.a)},function(e,t,n){"use strict";var r=n(0),o=n(813),i=n(4),a=n.n(i),c=n(737);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l={adjustX:1,adjustY:1},s={adjustX:0,adjustY:0},f=[0,0];function p(e){return"boolean"==typeof e?e?l:s:u(u({},s),e)}var d=n(102),h=n(190),v=n(171),m=(Object(v.a)("success","processing","error","default","warning"),Object(v.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"));function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e,t)||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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var w=new RegExp("^(".concat(m.join("|"),")(-inverse)?$"));function j(e,t){var n=e.type;if((!0===n.__ANT_BUTTON||!0===n.__ANT_SWITCH||!0===n.__ANT_CHECKBOX||"button"===e.type)&&e.props.disabled){var o=function(e,t){var n={},r=O({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=o.picked,c=o.omitted,u=O(O({display:"inline-block"},i),{cursor:"not-allowed",width:e.props.block?"100%":null}),l=O(O({},c),{pointerEvents:"none"}),s=Object(d.a)(e,{style:l,className:null});return r.createElement("span",{style:u,className:a()(e.props.className,"".concat(t,"-disabled-compatible-wrapper"))},s)}return e}var x=r.forwardRef((function(e,t){var n,i=r.useContext(h.b),l=i.getPopupContainer,s=i.getPrefixCls,v=i.direction,m=b(r.useState(!!e.visible||!!e.defaultVisible),2),g=m[0],x=m[1];r.useEffect((function(){"visible"in e&&x(e.visible)}),[e.visible]);var E=function(){var t=e.title,n=e.overlay;return!t&&!n&&0!==t},S=function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||function(e){var t=e.arrowWidth,n=void 0===t?5:t,r=e.horizontalArrowShift,o=void 0===r?16:r,i=e.verticalArrowShift,a=void 0===i?8:i,l=e.autoAdjustOverflow,s={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(o+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(a+n)]},topRight:{points:["br","tc"],offset:[o+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(a+n)]},bottomRight:{points:["tr","bc"],offset:[o+n,4]},rightBottom:{points:["bl","cr"],offset:[4,a+n]},bottomLeft:{points:["tl","bc"],offset:[-(o+n),4]},leftBottom:{points:["br","cl"],offset:[-4,a+n]}};return Object.keys(s).forEach((function(t){s[t]=e.arrowPointAtCenter?u(u({},s[t]),{overflow:p(l),targetOffset:f}):u(u({},c.a[t]),{overflow:p(l)}),s[t].ignoreShake=!0})),s}({arrowPointAtCenter:n,autoAdjustOverflow:r})},C=e.prefixCls,_=e.openClassName,P=e.getPopupContainer,k=e.getTooltipContainer,M=e.overlayClassName,N=e.color,T=e.overlayInnerStyle,A=e.children,R=s("tooltip",C),D=g;!("visible"in e)&&E()&&(D=!1);var I,L,F,z,H=j(Object(d.b)(A)?A:r.createElement("span",null,A),R),B=H.props,V=a()(B.className,y({},_||"".concat(R,"-open"),!0)),K=a()(M,(y(n={},"".concat(R,"-rtl"),"rtl"===v),y(n,"".concat(R,"-").concat(N),N&&w.test(N)),n));return N&&!w.test(N)&&(I=O(O({},T),{background:N}),L={background:N}),r.createElement(o.default,O({},e,{prefixCls:R,overlayClassName:K,getTooltipContainer:P||k||l,ref:t,builtinPlacements:S(),overlay:(F=e.title,z=e.overlay,0===F?F:z||F||""),visible:D,onVisibleChange:function(t){"visible"in e||x(!E()&&t),e.onVisibleChange&&!E()&&e.onVisibleChange(t)},onPopupAlign:function(e,t){var n=S(),r=Object.keys(n).filter((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}))[0];if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayInnerStyle:I,arrowContent:r.createElement("span",{className:"".concat(R,"-arrow-content"),style:L})}),D?Object(d.a)(H,{className:V}):H)}));x.displayName="Tooltip",x.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};t.a=x},,function(e,t,n){"use strict";var r=n(815);t.a=r.a},function(e,t,n){"use strict";var r=n(313),o=n(65),i=n(194),a=n(151),c=n(195),u=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var s;if(s="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,s)))throw new Error(a[n]);this._dict_set=!0}}function s(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}l.prototype.push=function(e,t){var n,a,c=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?c.input=i.string2buf(e):"[object ArrayBuffer]"===u.call(e)?c.input=new Uint8Array(e):c.input=e,c.next_in=0,c.avail_in=c.input.length;do{if(0===c.avail_out&&(c.output=new o.Buf8(l),c.next_out=0,c.avail_out=l),1!==(n=r.deflate(c,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==c.avail_out&&(0!==c.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(c.output,c.next_out))):this.onData(o.shrinkBuf(c.output,c.next_out)))}while((c.avail_in>0||0===c.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),c.avail_out=0,!0)},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=l,t.deflate=s,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,s(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,s(e,t)}},function(e,t,n){"use strict";var r,o=n(65),i=n(314),a=n(192),c=n(193),u=n(151);function l(e,t){return e.msg=u[t],t}function s(e){return(e<<1)-(e>4?9:0)}function f(e){for(var t=e.length;--t>=0;)e[t]=0}function p(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(o.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function d(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,p(e.strm)}function h(e,t){e.pending_buf[e.pending++]=t}function v(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function m(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,c=e.nice_match,u=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,l=e.window,s=e.w_mask,f=e.prev,p=e.strstart+258,d=l[i+a-1],h=l[i+a];e.prev_length>=e.good_match&&(o>>=2),c>e.lookahead&&(c=e.lookahead);do{if(l[(n=t)+a]===h&&l[n+a-1]===d&&l[n]===l[i]&&l[++n]===l[i+1]){i+=2,n++;do{}while(l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&i<p);if(r=258-(p-i),i=p-258,r>a){if(e.match_start=t,a=r,r>=c)break;d=l[i+a-1],h=l[i+a]}}}while((t=f[t&s])>u&&0!=--o);return a<=e.lookahead?a:e.lookahead}function y(e){var t,n,r,i,u,l,s,f,p,d,h=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-262)){o.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=h?r-h:0}while(--n);t=n=h;do{r=e.prev[--t],e.prev[t]=r>=h?r-h:0}while(--n);i+=h}if(0===e.strm.avail_in)break;if(l=e.strm,s=e.window,f=e.strstart+e.lookahead,p=i,d=void 0,(d=l.avail_in)>p&&(d=p),n=0===d?0:(l.avail_in-=d,o.arraySet(s,l.input,l.next_in,d,f),1===l.state.wrap?l.adler=a(l.adler,s,d,f):2===l.state.wrap&&(l.adler=c(l.adler,s,d,f)),l.next_in+=d,l.total_in+=d,d),e.lookahead+=n,e.lookahead+e.insert>=3)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<<e.hash_shift^e.window[u+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[u+3-1])&e.hash_mask,e.prev[u&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=u,u++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function b(e,t){for(var n,r;;){if(e.lookahead<262){if(y(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=m(e,n)),e.match_length>=3)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}function g(e,t){for(var n,r,o;;){if(e.lookahead<262){if(y(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=m(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-3,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(d(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=i._tr_tally(e,0,e.window[e.strstart-1]))&&d(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}function O(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function w(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function j(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,i._tr_init(t),0):l(e,-2)}function x(e){var t,n=j(e);return 0===n&&((t=e.state).window_size=2*t.w_size,f(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function E(e,t,n,r,i,a){if(!e)return-2;var c=1;if(-1===t&&(t=6),r<0?(c=0,r=-r):r>15&&(c=2,r-=16),i<1||i>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return l(e,-2);8===r&&(r=9);var u=new w;return e.state=u,u.strm=e,u.wrap=c,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=i+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new o.Buf8(2*u.w_size),u.head=new o.Buf16(u.hash_size),u.prev=new o.Buf16(u.w_size),u.lit_bufsize=1<<i+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new o.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=a,u.method=n,x(e)}r=[new O(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(y(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,d(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(d(e,!1),e.strm.avail_out),1)})),new O(4,4,8,4,b),new O(4,5,16,8,b),new O(4,6,32,32,b),new O(4,4,16,16,g),new O(8,16,32,32,g),new O(8,16,128,128,g),new O(8,32,128,256,g),new O(32,128,258,1024,g),new O(32,258,258,4096,g)],t.deflateInit=function(e,t){return E(e,t,8,15,8,0)},t.deflateInit2=E,t.deflateReset=x,t.deflateResetKeep=j,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},t.deflate=function(e,t){var n,o,a,u;if(!e||!e.state||t>5||t<0)return e?l(e,-2):-2;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||666===o.status&&4!==t)return l(e,0===e.avail_out?-5:-2);if(o.strm=e,n=o.last_flush,o.last_flush=t,42===o.status)if(2===o.wrap)e.adler=0,h(o,31),h(o,139),h(o,8),o.gzhead?(h(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),h(o,255&o.gzhead.time),h(o,o.gzhead.time>>8&255),h(o,o.gzhead.time>>16&255),h(o,o.gzhead.time>>24&255),h(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),h(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(h(o,255&o.gzhead.extra.length),h(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=c(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(h(o,0),h(o,0),h(o,0),h(o,0),h(o,0),h(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),h(o,3),o.status=113);else{var m=8+(o.w_bits-8<<4)<<8;m|=(o.strategy>=2||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(m|=32),m+=31-m%31,o.status=113,v(o,m),0!==o.strstart&&(v(o,e.adler>>>16),v(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=c(e.adler,o.pending_buf,o.pending-a,a)),p(e),a=o.pending,o.pending!==o.pending_buf_size));)h(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=c(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=c(e.adler,o.pending_buf,o.pending-a,a)),p(e),a=o.pending,o.pending===o.pending_buf_size)){u=1;break}u=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,h(o,u)}while(0!==u);o.gzhead.hcrc&&o.pending>a&&(e.adler=c(e.adler,o.pending_buf,o.pending-a,a)),0===u&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=c(e.adler,o.pending_buf,o.pending-a,a)),p(e),a=o.pending,o.pending===o.pending_buf_size)){u=1;break}u=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,h(o,u)}while(0!==u);o.gzhead.hcrc&&o.pending>a&&(e.adler=c(e.adler,o.pending_buf,o.pending-a,a)),0===u&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&p(e),o.pending+2<=o.pending_buf_size&&(h(o,255&e.adler),h(o,e.adler>>8&255),e.adler=0,o.status=113)):o.status=113),0!==o.pending){if(p(e),0===e.avail_out)return o.last_flush=-1,0}else if(0===e.avail_in&&s(t)<=s(n)&&4!==t)return l(e,-5);if(666===o.status&&0!==e.avail_in)return l(e,-5);if(0!==e.avail_in||0!==o.lookahead||0!==t&&666!==o.status){var b=2===o.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(y(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}(o,t):3===o.strategy?function(e,t){for(var n,r,o,a,c=e.window;;){if(e.lookahead<=258){if(y(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=c[o=e.strstart-1])===c[++o]&&r===c[++o]&&r===c[++o]){a=e.strstart+258;do{}while(r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&r===c[++o]&&o<a);e.match_length=258-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=i._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}(o,t):r[o.level].func(o,t);if(3!==b&&4!==b||(o.status=666),1===b||3===b)return 0===e.avail_out&&(o.last_flush=-1),0;if(2===b&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(f(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),p(e),0===e.avail_out))return o.last_flush=-1,0}return 4!==t?0:o.wrap<=0?1:(2===o.wrap?(h(o,255&e.adler),h(o,e.adler>>8&255),h(o,e.adler>>16&255),h(o,e.adler>>24&255),h(o,255&e.total_in),h(o,e.total_in>>8&255),h(o,e.total_in>>16&255),h(o,e.total_in>>24&255)):(v(o,e.adler>>>16),v(o,65535&e.adler)),p(e),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?l(e,-2):(e.state=null,113===t?l(e,-3):0):-2},t.deflateSetDictionary=function(e,t){var n,r,i,c,u,l,s,p,d=t.length;if(!e||!e.state)return-2;if(2===(c=(n=e.state).wrap)||1===c&&42!==n.status||n.lookahead)return-2;for(1===c&&(e.adler=a(e.adler,t,d,0)),n.wrap=0,d>=n.w_size&&(0===c&&(f(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new o.Buf8(n.w_size),o.arraySet(p,t,d-n.w_size,n.w_size,0),t=p,d=n.w_size),u=e.avail_in,l=e.next_in,s=e.input,e.avail_in=d,e.next_in=0,e.input=t,y(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=2,y(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=l,e.input=s,e.avail_in=u,n.wrap=c,0},t.deflateInfo="pako deflate (from Nodeca project)"},function(e,t,n){"use strict";var r=n(65);function o(e){for(var t=e.length;--t>=0;)e[t]=0}var i=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],l=new Array(576);o(l);var s=new Array(60);o(s);var f=new Array(512);o(f);var p=new Array(256);o(p);var d=new Array(29);o(d);var h,v,m,y=new Array(30);function b(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function g(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function O(e){return e<256?f[e]:f[256+(e>>>7)]}function w(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function j(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,w(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function x(e,t,n){j(e,n[2*t],n[2*t+1])}function E(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function S(e,t,n){var r,o,i=new Array(16),a=0;for(r=1;r<=15;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var c=e[2*o+1];0!==c&&(e[2*o]=E(i[c]++,c))}}function C(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function _(e){e.bi_valid>8?w(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function P(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]}function k(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&P(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!P(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r}function M(e,t,n){var r,o,c,u,l=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],o=e.pending_buf[e.l_buf+l],l++,0===r?x(e,o,t):(x(e,(c=p[o])+256+1,t),0!==(u=i[c])&&j(e,o-=d[c],u),x(e,c=O(--r),n),0!==(u=a[c])&&j(e,r-=y[c],u))}while(l<e.last_lit);x(e,256,t)}function N(e,t){var n,r,o,i=t.dyn_tree,a=t.stat_desc.static_tree,c=t.stat_desc.has_stree,u=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==i[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[o]=0,e.opt_len--,c&&(e.static_len-=a[2*o+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)k(e,i,n);o=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],k(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,k(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,a,c,u=t.dyn_tree,l=t.max_code,s=t.stat_desc.static_tree,f=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,h=t.stat_desc.max_length,v=0;for(i=0;i<=15;i++)e.bl_count[i]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(i=u[2*u[2*(r=e.heap[n])+1]+1]+1)>h&&(i=h,v++),u[2*r+1]=i,r>l||(e.bl_count[i]++,a=0,r>=d&&(a=p[r-d]),c=u[2*r],e.opt_len+=c*(i+a),f&&(e.static_len+=c*(s[2*r+1]+a)));if(0!==v){do{for(i=h-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[h]--,v-=2}while(v>0);for(i=h;0!==i;i--)for(r=e.bl_count[i];0!==r;)(o=e.heap[--n])>l||(u[2*o+1]!==i&&(e.opt_len+=(i-u[2*o+1])*u[2*o],u[2*o+1]=i),r--)}}(e,t),S(i,l,e.bl_count)}function T(e,t,n){var r,o,i=-1,a=t[1],c=0,u=7,l=4;for(0===a&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++c<u&&o===a||(c<l?e.bl_tree[2*o]+=c:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):c<=10?e.bl_tree[34]++:e.bl_tree[36]++,c=0,i=o,0===a?(u=138,l=3):o===a?(u=6,l=3):(u=7,l=4))}function A(e,t,n){var r,o,i=-1,a=t[1],c=0,u=7,l=4;for(0===a&&(u=138,l=3),r=0;r<=n;r++)if(o=a,a=t[2*(r+1)+1],!(++c<u&&o===a)){if(c<l)do{x(e,o,e.bl_tree)}while(0!=--c);else 0!==o?(o!==i&&(x(e,o,e.bl_tree),c--),x(e,16,e.bl_tree),j(e,c-3,2)):c<=10?(x(e,17,e.bl_tree),j(e,c-3,3)):(x(e,18,e.bl_tree),j(e,c-11,7));c=0,i=o,0===a?(u=138,l=3):o===a?(u=6,l=3):(u=7,l=4)}}o(y);var R=!1;function D(e,t,n,o){j(e,0+(o?1:0),3),function(e,t,n,o){_(e),o&&(w(e,n),w(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}t._tr_init=function(e){R||(!function(){var e,t,n,r,o,u=new Array(16);for(n=0,r=0;r<28;r++)for(d[r]=n,e=0;e<1<<i[r];e++)p[n++]=r;for(p[n-1]=r,o=0,r=0;r<16;r++)for(y[r]=o,e=0;e<1<<a[r];e++)f[o++]=r;for(o>>=7;r<30;r++)for(y[r]=o<<7,e=0;e<1<<a[r]-7;e++)f[256+o++]=r;for(t=0;t<=15;t++)u[t]=0;for(e=0;e<=143;)l[2*e+1]=8,e++,u[8]++;for(;e<=255;)l[2*e+1]=9,e++,u[9]++;for(;e<=279;)l[2*e+1]=7,e++,u[7]++;for(;e<=287;)l[2*e+1]=8,e++,u[8]++;for(S(l,287,u),e=0;e<30;e++)s[2*e+1]=5,s[2*e]=E(e,5);h=new b(l,i,257,286,15),v=new b(s,a,0,30,15),m=new b(new Array(0),c,0,19,7)}(),R=!0),e.l_desc=new g(e.dyn_ltree,h),e.d_desc=new g(e.dyn_dtree,v),e.bl_desc=new g(e.bl_tree,m),e.bi_buf=0,e.bi_valid=0,C(e)},t._tr_stored_block=D,t._tr_flush_block=function(e,t,n,r){var o,i,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),N(e,e.l_desc),N(e,e.d_desc),a=function(e){var t;for(T(e,e.dyn_ltree,e.l_desc.max_code),T(e,e.dyn_dtree,e.d_desc.max_code),N(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=o&&(o=i)):o=i=n+5,n+4<=o&&-1!==t?D(e,t,n,r):4===e.strategy||i===o?(j(e,2+(r?1:0),3),M(e,l,s)):(j(e,4+(r?1:0),3),function(e,t,n,r){var o;for(j(e,t-257,5),j(e,n-1,5),j(e,r-4,4),o=0;o<r;o++)j(e,e.bl_tree[2*u[o]+1],3);A(e,e.dyn_ltree,t-1),A(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),M(e,e.dyn_ltree,e.dyn_dtree)),C(e),r&&_(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(p[n]+256+1)]++,e.dyn_dtree[2*O(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){j(e,2,3),x(e,256,l),function(e){16===e.bi_valid?(w(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},function(e,t,n){"use strict";var r=n(316),o=n(65),i=n(194),a=n(196),c=n(151),u=n(195),l=n(319),s=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(c[n]);if(this.header=new l,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===s.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(c[n])}function p(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||c[n.err];return n.result}f.prototype.push=function(e,t){var n,c,u,l,f,p=this.strm,d=this.options.chunkSize,h=this.options.dictionary,v=!1;if(this.ended)return!1;c=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?p.input=i.binstring2buf(e):"[object ArrayBuffer]"===s.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new o.Buf8(d),p.next_out=0,p.avail_out=d),(n=r.inflate(p,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&h&&(n=r.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===v&&(n=a.Z_OK,v=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;p.next_out&&(0!==p.avail_out&&n!==a.Z_STREAM_END&&(0!==p.avail_in||c!==a.Z_FINISH&&c!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=i.utf8border(p.output,p.next_out),l=p.next_out-u,f=i.buf2string(p.output,u),p.next_out=l,p.avail_out=d-l,l&&o.arraySet(p.output,p.output,u,l,0),this.onData(f)):this.onData(o.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(v=!0)}while((p.avail_in>0||0===p.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(c=a.Z_FINISH),c===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):c!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),p.avail_out=0,!0)},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=f,t.inflate=p,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},t.ungzip=p},function(e,t,n){"use strict";var r=n(65),o=n(192),i=n(193),a=n(317),c=n(318);function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function l(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function s(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):-2}function f(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,s(e)):-2}function p(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,f(e))):-2}function d(e,t){var n,r;return e?(r=new l,e.state=r,r.window=null,0!==(n=p(e,t))&&(e.state=null),n):-2}var h,v,m=!0;function y(e){if(m){var t;for(h=new r.Buf32(512),v=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(c(1,e.lens,0,288,h,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;c(2,e.lens,0,32,v,0,e.work,{bits:5}),m=!1}e.lencode=h,e.lenbits=9,e.distcode=v,e.distbits=5}function b(e,t,n,o){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),o>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>o&&(i=o),r.arraySet(a.window,t,n-o,i,a.wnext),(o-=i)?(r.arraySet(a.window,t,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}t.inflateReset=f,t.inflateReset2=p,t.inflateResetKeep=s,t.inflateInit=function(e){return d(e,15)},t.inflateInit2=d,t.inflate=function(e,t){var n,l,s,f,p,d,h,v,m,g,O,w,j,x,E,S,C,_,P,k,M,N,T,A,R=0,D=new r.Buf8(4),I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(n=e.state).mode&&(n.mode=13),p=e.next_out,s=e.output,h=e.avail_out,f=e.next_in,l=e.input,d=e.avail_in,v=n.hold,m=n.bits,g=d,O=h,N=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;m<16;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}if(2&n.wrap&&35615===v){n.check=0,D[0]=255&v,D[1]=v>>>8&255,n.check=i(n.check,D,2,0),v=0,m=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&v)){e.msg="unknown compression method",n.mode=30;break}if(m-=4,M=8+(15&(v>>>=4)),0===n.wbits)n.wbits=M;else if(M>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<M,e.adler=n.check=1,n.mode=512&v?10:12,v=0,m=0;break;case 2:for(;m<16;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}if(n.flags=v,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=v>>8&1),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,n.check=i(n.check,D,2,0)),v=0,m=0,n.mode=3;case 3:for(;m<32;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}n.head&&(n.head.time=v),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,D[2]=v>>>16&255,D[3]=v>>>24&255,n.check=i(n.check,D,4,0)),v=0,m=0,n.mode=4;case 4:for(;m<16;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}n.head&&(n.head.xflags=255&v,n.head.os=v>>8),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,n.check=i(n.check,D,2,0)),v=0,m=0,n.mode=5;case 5:if(1024&n.flags){for(;m<16;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}n.length=v,n.head&&(n.head.extra_len=v),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,n.check=i(n.check,D,2,0)),v=0,m=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((w=n.length)>d&&(w=d),w&&(n.head&&(M=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,l,f,w,M)),512&n.flags&&(n.check=i(n.check,l,w,f)),d-=w,f+=w,n.length-=w),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===d)break e;w=0;do{M=l[f+w++],n.head&&M&&n.length<65536&&(n.head.name+=String.fromCharCode(M))}while(M&&w<d);if(512&n.flags&&(n.check=i(n.check,l,w,f)),d-=w,f+=w,M)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===d)break e;w=0;do{M=l[f+w++],n.head&&M&&n.length<65536&&(n.head.comment+=String.fromCharCode(M))}while(M&&w<d);if(512&n.flags&&(n.check=i(n.check,l,w,f)),d-=w,f+=w,M)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;m<16;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}if(v!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}v=0,m=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;m<32;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}e.adler=n.check=u(v),v=0,m=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=p,e.avail_out=h,e.next_in=f,e.avail_in=d,n.hold=v,n.bits=m,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){v>>>=7&m,m-=7&m,n.mode=27;break}for(;m<3;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}switch(n.last=1&v,m-=1,3&(v>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6===t){v>>>=2,m-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}v>>>=2,m-=2;break;case 14:for(v>>>=7&m,m-=7&m;m<32;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&v,v=0,m=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(w=n.length){if(w>d&&(w=d),w>h&&(w=h),0===w)break e;r.arraySet(s,l,f,w,p),d-=w,f+=w,h-=w,p+=w,n.length-=w;break}n.mode=12;break;case 17:for(;m<14;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}if(n.nlen=257+(31&v),v>>>=5,m-=5,n.ndist=1+(31&v),v>>>=5,m-=5,n.ncode=4+(15&v),v>>>=4,m-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;m<3;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}n.lens[I[n.have++]]=7&v,v>>>=3,m-=3}for(;n.have<19;)n.lens[I[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,T={bits:n.lenbits},N=c(0,n.lens,0,19,n.lencode,0,n.work,T),n.lenbits=T.bits,N){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;S=(R=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,C=65535&R,!((E=R>>>24)<=m);){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}if(C<16)v>>>=E,m-=E,n.lens[n.have++]=C;else{if(16===C){for(A=E+2;m<A;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}if(v>>>=E,m-=E,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}M=n.lens[n.have-1],w=3+(3&v),v>>>=2,m-=2}else if(17===C){for(A=E+3;m<A;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}m-=E,M=0,w=3+(7&(v>>>=E)),v>>>=3,m-=3}else{for(A=E+7;m<A;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}m-=E,M=0,w=11+(127&(v>>>=E)),v>>>=7,m-=7}if(n.have+w>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;w--;)n.lens[n.have++]=M}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,T={bits:n.lenbits},N=c(1,n.lens,0,n.nlen,n.lencode,0,n.work,T),n.lenbits=T.bits,N){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,T={bits:n.distbits},N=c(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,T),n.distbits=T.bits,N){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(d>=6&&h>=258){e.next_out=p,e.avail_out=h,e.next_in=f,e.avail_in=d,n.hold=v,n.bits=m,a(e,O),p=e.next_out,s=e.output,h=e.avail_out,f=e.next_in,l=e.input,d=e.avail_in,v=n.hold,m=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;S=(R=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,C=65535&R,!((E=R>>>24)<=m);){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}if(S&&0==(240&S)){for(_=E,P=S,k=C;S=(R=n.lencode[k+((v&(1<<_+P)-1)>>_)])>>>16&255,C=65535&R,!(_+(E=R>>>24)<=m);){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}v>>>=_,m-=_,n.back+=_}if(v>>>=E,m-=E,n.back+=E,n.length=C,0===S){n.mode=26;break}if(32&S){n.back=-1,n.mode=12;break}if(64&S){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&S,n.mode=22;case 22:if(n.extra){for(A=n.extra;m<A;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}n.length+=v&(1<<n.extra)-1,v>>>=n.extra,m-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;S=(R=n.distcode[v&(1<<n.distbits)-1])>>>16&255,C=65535&R,!((E=R>>>24)<=m);){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}if(0==(240&S)){for(_=E,P=S,k=C;S=(R=n.distcode[k+((v&(1<<_+P)-1)>>_)])>>>16&255,C=65535&R,!(_+(E=R>>>24)<=m);){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}v>>>=_,m-=_,n.back+=_}if(v>>>=E,m-=E,n.back+=E,64&S){e.msg="invalid distance code",n.mode=30;break}n.offset=C,n.extra=15&S,n.mode=24;case 24:if(n.extra){for(A=n.extra;m<A;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}n.offset+=v&(1<<n.extra)-1,v>>>=n.extra,m-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===h)break e;if(w=O-h,n.offset>w){if((w=n.offset-w)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}w>n.wnext?(w-=n.wnext,j=n.wsize-w):j=n.wnext-w,w>n.length&&(w=n.length),x=n.window}else x=s,j=p-n.offset,w=n.length;w>h&&(w=h),h-=w,n.length-=w;do{s[p++]=x[j++]}while(--w);0===n.length&&(n.mode=21);break;case 26:if(0===h)break e;s[p++]=n.length,h--,n.mode=21;break;case 27:if(n.wrap){for(;m<32;){if(0===d)break e;d--,v|=l[f++]<<m,m+=8}if(O-=h,e.total_out+=O,n.total+=O,O&&(e.adler=n.check=n.flags?i(n.check,s,O,p-O):o(n.check,s,O,p-O)),O=h,(n.flags?v:u(v))!==n.check){e.msg="incorrect data check",n.mode=30;break}v=0,m=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;m<32;){if(0===d)break e;d--,v+=l[f++]<<m,m+=8}if(v!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}v=0,m=0}n.mode=29;case 29:N=1;break e;case 30:N=-3;break e;case 31:return-4;case 32:default:return-2}return e.next_out=p,e.avail_out=h,e.next_in=f,e.avail_in=d,n.hold=v,n.bits=m,(n.wsize||O!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&b(e,e.output,e.next_out,O-e.avail_out)?(n.mode=31,-4):(g-=e.avail_in,O-=e.avail_out,e.total_in+=g,e.total_out+=O,n.total+=O,n.wrap&&O&&(e.adler=n.check=n.flags?i(n.check,s,O,e.next_out-O):o(n.check,s,O,e.next_out-O)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===g&&0===O||4===t)&&0===N&&(N=-5),N)},t.inflateEnd=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?-2:(n.head=t,t.done=!1,0):-2},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?-2:11===n.mode&&o(1,t,r,0)!==n.check?-3:b(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},t.inflateInfo="pako inflate (from Nodeca project)"},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,o,i,a,c,u,l,s,f,p,d,h,v,m,y,b,g,O,w,j,x,E,S,C;n=e.state,r=e.next_in,S=e.input,o=r+(e.avail_in-5),i=e.next_out,C=e.output,a=i-(t-e.avail_out),c=i+(e.avail_out-257),u=n.dmax,l=n.wsize,s=n.whave,f=n.wnext,p=n.window,d=n.hold,h=n.bits,v=n.lencode,m=n.distcode,y=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{h<15&&(d+=S[r++]<<h,h+=8,d+=S[r++]<<h,h+=8),g=v[d&y];t:for(;;){if(d>>>=O=g>>>24,h-=O,0===(O=g>>>16&255))C[i++]=65535&g;else{if(!(16&O)){if(0==(64&O)){g=v[(65535&g)+(d&(1<<O)-1)];continue t}if(32&O){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&g,(O&=15)&&(h<O&&(d+=S[r++]<<h,h+=8),w+=d&(1<<O)-1,d>>>=O,h-=O),h<15&&(d+=S[r++]<<h,h+=8,d+=S[r++]<<h,h+=8),g=m[d&b];n:for(;;){if(d>>>=O=g>>>24,h-=O,!(16&(O=g>>>16&255))){if(0==(64&O)){g=m[(65535&g)+(d&(1<<O)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(j=65535&g,h<(O&=15)&&(d+=S[r++]<<h,(h+=8)<O&&(d+=S[r++]<<h,h+=8)),(j+=d&(1<<O)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=O,h-=O,j>(O=i-a)){if((O=j-O)>s&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=0,E=p,0===f){if(x+=l-O,O<w){w-=O;do{C[i++]=p[x++]}while(--O);x=i-j,E=C}}else if(f<O){if(x+=l+f-O,(O-=f)<w){w-=O;do{C[i++]=p[x++]}while(--O);if(x=0,f<w){w-=O=f;do{C[i++]=p[x++]}while(--O);x=i-j,E=C}}}else if(x+=f-O,O<w){w-=O;do{C[i++]=p[x++]}while(--O);x=i-j,E=C}for(;w>2;)C[i++]=E[x++],C[i++]=E[x++],C[i++]=E[x++],w-=3;w&&(C[i++]=E[x++],w>1&&(C[i++]=E[x++]))}else{x=i-j;do{C[i++]=C[x++],C[i++]=C[x++],C[i++]=C[x++],w-=3}while(w>2);w&&(C[i++]=C[x++],w>1&&(C[i++]=C[x++]))}break}}break}}while(r<o&&i<c);r-=w=h>>3,d&=(1<<(h-=w<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<c?c-i+257:257-(i-c),n.hold=d,n.bits=h}},function(e,t,n){"use strict";var r=n(65),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,u,l,s,f,p){var d,h,v,m,y,b,g,O,w,j=p.bits,x=0,E=0,S=0,C=0,_=0,P=0,k=0,M=0,N=0,T=0,A=null,R=0,D=new r.Buf16(16),I=new r.Buf16(16),L=null,F=0;for(x=0;x<=15;x++)D[x]=0;for(E=0;E<u;E++)D[t[n+E]]++;for(_=j,C=15;C>=1&&0===D[C];C--);if(_>C&&(_=C),0===C)return l[s++]=20971520,l[s++]=20971520,p.bits=1,0;for(S=1;S<C&&0===D[S];S++);for(_<S&&(_=S),M=1,x=1;x<=15;x++)if(M<<=1,(M-=D[x])<0)return-1;if(M>0&&(0===e||1!==C))return-1;for(I[1]=0,x=1;x<15;x++)I[x+1]=I[x]+D[x];for(E=0;E<u;E++)0!==t[n+E]&&(f[I[t[n+E]]++]=E);if(0===e?(A=L=f,b=19):1===e?(A=o,R-=257,L=i,F-=257,b=256):(A=a,L=c,b=-1),T=0,E=0,x=S,y=s,P=_,k=0,v=-1,m=(N=1<<_)-1,1===e&&N>852||2===e&&N>592)return 1;for(;;){g=x-k,f[E]<b?(O=0,w=f[E]):f[E]>b?(O=L[F+f[E]],w=A[R+f[E]]):(O=96,w=0),d=1<<x-k,S=h=1<<P;do{l[y+(T>>k)+(h-=d)]=g<<24|O<<16|w|0}while(0!==h);for(d=1<<x-1;T&d;)d>>=1;if(0!==d?(T&=d-1,T+=d):T=0,E++,0==--D[x]){if(x===C)break;x=t[n+f[E]]}if(x>_&&(T&m)!==v){for(0===k&&(k=_),y+=S,M=1<<(P=x-k);P+k<C&&!((M-=D[P+k])<=0);)P++,M<<=1;if(N+=1<<P,1===e&&N>852||2===e&&N>592)return 1;l[v=T&m]=_<<24|P<<16|y-s|0}}return 0!==T&&(l[y+T]=x-k<<24|64<<16|0),p.bits=_,0}},function(e,t,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(e,t,n){var r=n(208),o=n(330)(r);e.exports=o},function(e,t,n){var r=n(322)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(!1===n(i[u],u,i))break}return t}}},function(e,t,n){var r=n(66),o=n(58);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(117),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(66),o=n(157),i=n(58),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,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(245),o=n(329),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(256)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(153);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,c=Object(n);(t?a--:++a<i)&&!1!==o(c[a],a,c););return n}}},function(e,t,n){var r=n(137);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(333),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(334);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(163);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(336),o=n(138),i=n(164);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(337),o=n(342),i=n(343),a=n(344),c=n(345);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(120);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(200),o=n(339),i=n(109),a=n(211),c=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,s=u.toString,f=l.hasOwnProperty,p=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:c).test(a(e))}},function(e,t,n){var r,o=n(340),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(62)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(120),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(120),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(120);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(121),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(121);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(121);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(121);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(122);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(122);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(122);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(122);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(117),o=n(202),i=n(51),a=n(144),c=r?r.prototype:void 0,u=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(246),o=n(143),i=n(156),a=n(109),c=n(110);e.exports=function(e,t,n,u){if(!a(e))return e;for(var l=-1,s=(t=o(t,e)).length,f=s-1,p=e;null!=p&&++l<s;){var d=c(t[l]),h=n;if(l!=f){var v=p[d];void 0===(h=u?u(v,d,p):void 0)&&(h=a(v)?v:i(t[l+1])?[]:{})}r(p,d,h),p=p[d]}return e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(232),o=n(378),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(177),o=n(224);t.proxyDefaultActionCreators=function(e,t,n){let i;const a={get:(o,i)=>r.hasOwnProperty.call(o,i)?o[i]:n&&r.hasOwnProperty.call(n,i)?o[i]=n[i]:r.hasOwnProperty.call(t,i)?o[i]=e(i):void 0,ownKeys:()=>(i||(i=new Set([...Object.keys(t),...Object.keys(n||{})])),[...i]),getOwnPropertyDescriptor:(o,i)=>r.hasOwnProperty.call(o,i)?{value:o[i],configurable:!0,enumerable:!0}:n&&r.hasOwnProperty.call(n,i)?(o[i]=n[i],{value:o[i],configurable:!0,enumerable:!0}):r.hasOwnProperty.call(t,i)?(o[i]=e(i),{value:o[i],configurable:!0,enumerable:!0}):void 0};try{return new Proxy({},a)}catch(r){return o.createDefaultActionCreators(e,t,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(177),o=n(226);t.proxyCombineObjects=function(...e){let t,n;const i={get(t,o){if(r.hasOwnProperty.call(t,o))return t[o];if(!n||!n.has(o)){for(let n=e.length-1;n>=0;n--){const i=e[n];if(r.hasOwnProperty.call(i,o))return t[o]=i[o]}n?n.size>=100&&n.clear():n=new Set,n.add(o)}},ownKeys:()=>(t||(t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]))),[...t]),getOwnPropertyDescriptor(t,o){if(r.hasOwnProperty.call(t,o))return{value:t[o],configurable:!0,enumerable:!0};if(!n||!n.has(o)){for(let n=e.length-1;n>=0;n--){const i=e[n];if(r.hasOwnProperty.call(i,o))return t[o]=i[o],{value:t[o],configurable:!0,enumerable:!0}}n?n.size>=100&&n.clear():n=new Set,n.add(o)}}};try{return new Proxy(Object.create(null),i)}catch(t){return o.combineObjects(...e)}}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(38),o=function(e,t){return e===t||"function"==typeof t&&e===t.toString()},i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return e.pipe(Object(r.a)((function(e){var n=e.type,r=t.length;if(1===r)return o(n,t[0]);for(var i=0;i<r;i++)if(o(n,t[i]))return!0;return!1})))}}},,,,,,function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1127))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"SubMenu",(function(){return de})),n.d(t,"Item",(function(){return ze})),n.d(t,"MenuItem",(function(){return ze})),n.d(t,"MenuItemGroup",(function(){return Ve})),n.d(t,"ItemGroup",(function(){return Ve})),n.d(t,"Divider",(function(){return Ue}));var r=n(6),o=n(43),i=n(44),a=n(32),c=n(50),u=n(49),l=n(25),s=n(0),f=n.n(s),p=n(186),d=n(84),h=n(16),v=n(37),m=n(575),y=n(229),b=n.n(y),g=n(4),O=n.n(g),w=n(71),j=n(28);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=/iPhone/i,C=/iPod/i,_=/iPad/i,P=/\bAndroid(?:.+)Mobile\b/i,k=/Android/i,M=/\bAndroid(?:.+)SD4930UR\b/i,N=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,T=/Windows Phone/i,A=/\bWindows(?:.+)ARM\b/i,R=/BlackBerry/i,D=/BB10/i,I=/Opera Mini/i,L=/\b(CriOS|Chrome)(?:.+)Mobile/i,F=/Mobile(?:.+)Firefox\b/i;function z(e,t){return e.test(t)}function H(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),n=t.split("[FBAN");if(void 0!==n[1]){var r=n;t=Object(j.a)(r,1)[0]}if(void 0!==(n=t.split("Twitter"))[1]){var o=n;t=Object(j.a)(o,1)[0]}var i={apple:{phone:z(S,t)&&!z(T,t),ipod:z(C,t),tablet:!z(S,t)&&z(_,t)&&!z(T,t),device:(z(S,t)||z(C,t)||z(_,t))&&!z(T,t)},amazon:{phone:z(M,t),tablet:!z(M,t)&&z(N,t),device:z(M,t)||z(N,t)},android:{phone:!z(T,t)&&z(M,t)||!z(T,t)&&z(P,t),tablet:!z(T,t)&&!z(M,t)&&!z(P,t)&&(z(N,t)||z(k,t)),device:!z(T,t)&&(z(M,t)||z(N,t)||z(P,t)||z(k,t))||z(/\bokhttp\b/i,t)},windows:{phone:z(T,t),tablet:z(A,t),device:z(T,t)||z(A,t)},other:{blackberry:z(R,t),blackberry10:z(D,t),opera:z(I,t),firefox:z(F,t),chrome:z(L,t),device:z(R,t)||z(D,t)||z(I,t)||z(F,t)||z(L,t)},any:null,phone:null,tablet:null};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var B=E(E({},H()),{},{isMobile:H});function V(){}function K(e,t,n){var r=t||"";return e.key||"".concat(r,"item_").concat(n)}function U(e){return"".concat(e,"-menu-")}function W(e,t){var n=-1;f.a.Children.forEach(e,(function(e){n+=1,e&&e.type&&e.type.isMenuItemGroup?f.a.Children.forEach(e.props.children,(function(e){t(e,n+=1)})):t(e,n)}))}var q=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],G=function(e){var t=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;return t&&(t=+t.toFixed(6)),t||0},$=function(e,t,n){e&&"object"===Object(w.a)(e.style)&&(e.style[t]=n)},Y=n(31),X=n(72),Z=n(20),J=n.n(Z),Q=n(497),ee=n(386),te=n(306),ne={adjustX:1,adjustY:1},re={topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ne,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ne,offset:[4,0]}},oe={topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ne,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ne,offset:[4,0]}};function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ue=0,le={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},se=function(e,t,n){var o=U(t),i=e.getState();e.setState({defaultActiveFirst:ce(ce({},i.defaultActiveFirst),{},Object(r.a)({},o,n))})},fe=function(e){Object(c.a)(n,e);var t=ie(n);function n(e){var r;Object(o.a)(this,n),(r=t.call(this,e)).onDestroy=function(e){r.props.onDestroy(e)},r.onKeyDown=function(e){var t=e.keyCode,n=r.menuInstance,o=r.props,i=o.isOpen,a=o.store;if(t===v.a.ENTER)return r.onTitleClick(e),se(a,r.props.eventKey,!0),!0;if(t===v.a.RIGHT)return i?n.onKeyDown(e):(r.triggerOpenChange(!0),se(a,r.props.eventKey,!0)),!0;if(t===v.a.LEFT){var c;if(!i)return;return(c=n.onKeyDown(e))||(r.triggerOpenChange(!1),c=!0),c}return!i||t!==v.a.UP&&t!==v.a.DOWN?void 0:n.onKeyDown(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onPopupVisibleChange=function(e){r.triggerOpenChange(e,e?"mouseenter":"mouseleave")},r.onMouseEnter=function(e){var t=r.props,n=t.eventKey,o=t.onMouseEnter,i=t.store;se(i,r.props.eventKey,!1),o({key:n,domEvent:e})},r.onMouseLeave=function(e){var t=r.props,n=t.parentMenu,o=t.eventKey,i=t.onMouseLeave;n.subMenuInstance=Object(a.a)(r),i({key:o,domEvent:e})},r.onTitleMouseEnter=function(e){var t=r.props,n=t.eventKey,o=t.onItemHover,i=t.onTitleMouseEnter;o({key:n,hover:!0}),i({key:n,domEvent:e})},r.onTitleMouseLeave=function(e){var t=r.props,n=t.parentMenu,o=t.eventKey,i=t.onItemHover,c=t.onTitleMouseLeave;n.subMenuInstance=Object(a.a)(r),i({key:o,hover:!1}),c({key:o,domEvent:e})},r.onTitleClick=function(e){var t=Object(a.a)(r).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(r.triggerOpenChange(!t.isOpen,"click"),se(t.store,r.props.eventKey,!1))},r.onSubMenuClick=function(e){"function"==typeof r.props.onClick&&r.props.onClick(r.addKeyPath(e))},r.onSelect=function(e){r.props.onSelect(e)},r.onDeselect=function(e){r.props.onDeselect(e)},r.getPrefixCls=function(){return"".concat(r.props.rootPrefixCls,"-submenu")},r.getActiveClassName=function(){return"".concat(r.getPrefixCls(),"-active")},r.getDisabledClassName=function(){return"".concat(r.getPrefixCls(),"-disabled")},r.getSelectedClassName=function(){return"".concat(r.getPrefixCls(),"-selected")},r.getOpenClassName=function(){return"".concat(r.props.rootPrefixCls,"-submenu-open")},r.saveMenuInstance=function(e){r.menuInstance=e},r.addKeyPath=function(e){return ce(ce({},e),{},{keyPath:(e.keyPath||[]).concat(r.props.eventKey)})},r.triggerOpenChange=function(e,t){var n=r.props.eventKey,o=function(){r.onOpenChange({key:n,item:Object(a.a)(r),trigger:t,open:e})};"mouseenter"===t?r.mouseenterTimeout=setTimeout((function(){o()}),0):o()},r.isChildrenSelected=function(){var e={find:!1};return function e(t,n,r){t&&!r.find&&f.a.Children.forEach(t,(function(t){if(t){var o=t.type;if(!o||!(o.isSubMenu||o.isMenuItem||o.isMenuItemGroup))return;-1!==n.indexOf(t.key)?r.find=!0:t.props.children&&e(t.props.children,n,r)}}))}(r.props.children,r.props.selectedKeys,e),e.find},r.isOpen=function(){return-1!==r.props.openKeys.indexOf(r.props.eventKey)},r.adjustWidth=function(){if(r.subMenuTitle&&r.menuInstance){var e=J.a.findDOMNode(r.menuInstance);e.offsetWidth>=r.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(r.subMenuTitle.offsetWidth,"px"))}},r.saveSubMenuTitle=function(e){r.subMenuTitle=e},r.getBaseProps=function(){var e=Object(a.a)(r).props;return{mode:"horizontal"===e.mode?"vertical":e.mode,visible:r.props.isOpen,level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:r.onSubMenuClick,onSelect:r.onSelect,onDeselect:r.onDeselect,onDestroy:r.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:r.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:Object(a.a)(r),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[U(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:r.internalMenuId,manualRef:r.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},r.getMotion=function(e,t){var n=Object(a.a)(r).haveRendered,o=r.props,i=o.motion,c=o.rootPrefixCls;return ce(ce({},i),{},{leavedClassName:"".concat(c,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var i=e.store,c=e.eventKey,u=i.getState().defaultActiveFirst;r.isRootMenu=!1;var l=!1;return u&&(l=u[c]),se(i,c,l),r}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,r=t.parentMenu,o=t.manualRef;o&&o(this),"horizontal"===n&&r.isRootMenu&&this.props.isOpen&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(e){var t=this,n=this.getBaseProps(),o=this.getMotion(n.mode,n.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||n.visible||n.forceSubMenuRender,!this.haveOpened)return f.a.createElement("div",null);var i=n.direction;return f.a.createElement(te.a,Object.assign({visible:n.visible},o),(function(o){var a=o.className,c=o.style,u=O()("".concat(n.prefixCls,"-sub"),a,Object(r.a)({},"".concat(n.prefixCls,"-rtl"),"rtl"===i));return f.a.createElement(_e,Object.assign({},n,{id:t.internalMenuId,className:u,style:c}),e)}))}},{key:"render",value:function(){var e,t=ce({},this.props),n=t.isOpen,o=this.getPrefixCls(),i="inline"===t.mode,a=O()(o,"".concat(o,"-").concat(t.mode),(e={},Object(r.a)(e,t.className,!!t.className),Object(r.a)(e,this.getOpenClassName(),n),Object(r.a)(e,this.getActiveClassName(),t.active||n&&!i),Object(r.a)(e,this.getDisabledClassName(),t.disabled),Object(r.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(t.eventKey?this.internalMenuId="".concat(t.eventKey,"$Menu"):(ue+=1,this.internalMenuId="$__$".concat(ue,"$Menu")));var c={},u={},l={};t.disabled||(c={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},u={onClick:this.onTitleClick},l={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var s={},p=t.direction;i&&("rtl"===p?s.paddingRight=t.inlineIndent*t.level:s.paddingLeft=t.inlineIndent*t.level);var d={};this.props.isOpen&&(d={"aria-owns":this.internalMenuId});var h=null;"horizontal"!==t.mode&&(h=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(h=f.a.createElement(this.props.expandIcon,ce({},this.props))));var v=f.a.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:s,className:"".concat(o,"-title"),role:"button"},l,u,{"aria-expanded":n},d,{"aria-haspopup":"true",title:"string"==typeof t.title?t.title:void 0}),t.title,h||f.a.createElement("i",{className:"".concat(o,"-arrow")})),m=this.renderChildren(t.children),y=t.parentMenu.isRootMenu?t.parentMenu.props.getPopupContainer:function(e){return e.parentNode},b=le[t.mode],g=t.popupOffset?{offset:t.popupOffset}:{},w="inline"===t.mode?"":t.popupClassName;w+="rtl"===p?" ".concat(o,"-rtl"):"";var j=t.disabled,x=t.triggerSubMenuAction,E=t.subMenuOpenDelay,S=t.forceSubMenuRender,C=t.subMenuCloseDelay,_=t.builtinPlacements;q.forEach((function(e){return delete t[e]})),delete t.onClick;var P="rtl"===p?Object.assign({},oe,_):Object.assign({},re,_);return delete t.direction,f.a.createElement("li",Object.assign({},t,c,{className:a,role:"menuitem"}),i&&v,i&&m,!i&&f.a.createElement(ee.a,{prefixCls:o,popupClassName:O()("".concat(o,"-popup"),w),getPopupContainer:y,builtinPlacements:P,popupPlacement:b,popupVisible:n,popupAlign:g,popup:m,action:j?[]:[x],mouseEnterDelay:E,mouseLeaveDelay:C,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:S},v))}}]),n}(f.a.Component);fe.defaultProps={onMouseEnter:V,onMouseLeave:V,onTitleMouseEnter:V,onTitleMouseLeave:V,onTitleClick:V,manualRef:V,mode:"vertical",title:""};var pe=Object(p.b)((function(e,t){var n=e.openKeys,r=e.activeKey,o=e.selectedKeys,i=t.eventKey,a=t.subMenuKey;return{isOpen:n.indexOf(i)>-1,active:r[a]===i,selectedKeys:o}}))(fe);pe.isSubMenu=!0;var de=pe;function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var ye=function(e){Object(c.a)(n,e);var t=me(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=J.a.findDOMNode(Object(a.a)(e));return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,r){var o=e.props,i=o.overflowedIndicator,a=o.level,c=o.mode,u=o.prefixCls,l=o.theme;if(1!==a||"horizontal"!==c)return null;var s=e.props.children[0].props,p=(s.children,s.title,s.style),d=Object(X.a)(s,["children","title","style"]),h=ve({},p),v="".concat(t,"-overflowed-indicator"),m="".concat(t,"-overflowed-indicator");0===n.length&&!0!==r?h=ve(ve({},h),{},{display:"none"}):r&&(h=ve(ve({},h),{},{visibility:"hidden",position:"absolute"}),v="".concat(v,"-placeholder"),m="".concat(m,"-placeholder"));var y=l?"".concat(u,"-").concat(l):"",b={};return q.forEach((function(e){void 0!==d[e]&&(b[e]=d[e])})),f.a.createElement(de,Object.assign({title:i,className:"".concat(u,"-overflowed-submenu"),popupClassName:y},b,{key:v,eventKey:m,disabled:!1,style:h}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=J.a.findDOMNode(Object(a.a)(e));if(t){var n=t.children;if(n&&0!==n.length){var r=t.children[n.length-1];$(r,"display","inline-block");var o=e.getMenuItemNodes(),i=o.filter((function(e){return e.className.split(" ").indexOf("menuitem-overflowed")>=0}));i.forEach((function(e){$(e,"display","inline-block")})),e.menuItemSizes=o.map((function(e){return G(e)})),i.forEach((function(e){$(e,"display","none")})),e.overflowedIndicatorWidth=G(t.children[t.children.length-1]),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),$(r,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=J.a.findDOMNode(Object(a.a)(e));if(t){var n=G(t);e.overflowedItems=[];var r,o=0;e.originalTotalWidth>n+.5&&(r=-1,e.menuItemSizes.forEach((function(t){(o+=t)+e.overflowedIndicatorWidth<=n&&(r+=1)}))),e.setState({lastVisibleIndex:r})}}},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=J.a.findDOMNode(this);if(!t)return;this.resizeObserver=new Q.a((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,o,i){var a=o;if("horizontal"===t.props.mode){var c=t.getOverflowedSubMenuItem(o.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(i>n&&(a=f.a.cloneElement(o,{style:{display:"none"},eventKey:"".concat(o.props.eventKey,"-hidden"),className:"".concat("menuitem-overflowed")})),i===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return f.a.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),c=t.getOverflowedSubMenuItem(o.props.eventKey,t.overflowedItems)));var u=[].concat(Object(Y.a)(r),[c,a]);return i===e.length-1&&u.push(t.getOverflowedSubMenuItem(o.props.eventKey,[],!0)),u}return[].concat(Object(Y.a)(r),[a])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,r=(e.theme,Object(X.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),o=t;return f.a.createElement(o,Object.assign({},r),this.renderChildren(n))}}]),n}(f.a.Component);ye.defaultProps={tag:"div",className:""};var be=ye;function ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t,n){var o=e.getState();e.setState({activeKey:we(we({},o.activeKey),{},Object(r.a)({},t,n))})}function xe(e){return e.eventKey||"0-menu-"}function Ee(e,t){var n,r=t,o=e.children,i=e.eventKey;if(r&&(W(o,(function(e,t){e&&e.props&&!e.props.disabled&&r===K(e,i,t)&&(n=!0)})),n))return r;return r=null,e.defaultActiveFirst?(W(o,(function(e,t){r||!e||e.props.disabled||(r=K(e,i,t))})),r):r}function Se(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var Ce=function(e){Object(c.a)(n,e);var t=ge(n);function n(e){var i;return Object(o.a)(this,n),(i=t.call(this,e)).onKeyDown=function(e,t){var n,r=e.keyCode;if(i.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var o=null;return r!==v.a.UP&&r!==v.a.DOWN||(o=i.step(r===v.a.UP?-1:1)),o?(e.preventDefault(),je(i.props.store,xe(i.props),o.props.eventKey),"function"==typeof t&&t(o),1):void 0},i.onItemHover=function(e){var t=e.key,n=e.hover;je(i.props.store,xe(i.props),n?t:null)},i.onDeselect=function(e){i.props.onDeselect(e)},i.onSelect=function(e){i.props.onSelect(e)},i.onClick=function(e){i.props.onClick(e)},i.onOpenChange=function(e){i.props.onOpenChange(e)},i.onDestroy=function(e){i.props.onDestroy(e)},i.getFlatInstanceArray=function(){return i.instanceArray},i.step=function(e){var t=i.getFlatInstanceArray(),n=i.props.store.getState().activeKey[xe(i.props)],r=t.length;if(!r)return null;e<0&&(t=t.concat().reverse());var o=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(o=t,!1)})),i.props.defaultActiveFirst||-1===o||(a=t.slice(o,r-1)).length&&!a.every((function(e){return!!e.props.disabled}))){var a,c=(o+1)%r,u=c;do{var l=t[u];if(l&&!l.props.disabled)return l;u=(u+1)%r}while(u!==c);return null}},i.renderCommonMenuItem=function(e,t,n){var r=i.props.store.getState(),o=Object(a.a)(i).props,c=K(e,o.eventKey,t),u=e.props;if(!u||"string"==typeof e.type)return e;var l=c===r.activeKey,s=we(we({mode:u.mode||o.mode,level:o.level,inlineIndent:o.inlineIndent,renderMenuItem:i.renderMenuItem,rootPrefixCls:o.prefixCls,index:t,parentMenu:o.parentMenu,manualRef:u.disabled?void 0:Object(m.a)(e.ref,Se.bind(Object(a.a)(i))),eventKey:c,active:!u.disabled&&l,multiple:o.multiple,onClick:function(e){(u.onClick||V)(e),i.onClick(e)},onItemHover:i.onItemHover,motion:o.motion,subMenuOpenDelay:o.subMenuOpenDelay,subMenuCloseDelay:o.subMenuCloseDelay,forceSubMenuRender:o.forceSubMenuRender,onOpenChange:i.onOpenChange,onDeselect:i.onDeselect,onSelect:i.onSelect,builtinPlacements:o.builtinPlacements,itemIcon:u.itemIcon||i.props.itemIcon,expandIcon:u.expandIcon||i.props.expandIcon},n),{},{direction:o.direction});return("inline"===o.mode||B.any)&&(s.triggerSubMenuAction="click"),f.a.cloneElement(e,s)},i.renderMenuItem=function(e,t,n){if(!e)return null;var r=i.props.store.getState(),o={openKeys:r.openKeys,selectedKeys:r.selectedKeys,triggerSubMenuAction:i.props.triggerSubMenuAction,subMenuKey:n};return i.renderCommonMenuItem(e,t,o)},e.store.setState({activeKey:we(we({},e.store.getState().activeKey),{},Object(r.a)({},e.eventKey,Ee(e,e.activeKey)))}),i.instanceArray=[],i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!b()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[xe(t)],r=Ee(t,n);if(r!==n)je(t.store,xe(t),r);else if("activeKey"in e){r!==Ee(e,e.activeKey)&&je(t.store,xe(t),r)}}},{key:"render",value:function(){var e=this,t=Object(h.a)({},this.props);this.instanceArray=[];var n={className:O()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var r=t.prefixCls,o=t.eventKey,i=t.visible,a=t.level,c=t.mode,u=t.overflowedIndicator,l=t.theme;return q.forEach((function(e){return delete t[e]})),delete t.onClick,f.a.createElement(be,Object.assign({},t,{prefixCls:r,mode:c,tag:"ul",level:a,theme:l,visible:i,overflowedIndicator:u},n),f.a.Children.map(t.children,(function(t,n){return e.renderMenuItem(t,n,o||"0-menu-")})))}}]),n}(f.a.Component);Ce.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:V};var _e=Object(p.b)()(Ce),Pe=n(56);function ke(e,t,n){var r=e.prefixCls,o=e.motion,i=e.defaultMotions,a=void 0===i?{}:i,c=e.openAnimation,u=e.openTransitionName,l=t.switchingModeFromInline;if(o)return o;if("object"===Object(w.a)(c)&&c)Object(Pe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof c)return{motionName:"".concat(r,"-open-").concat(c)};if(u)return{motionName:u};var s=a[n];return s||(l?null:a.other)}function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Ae=function(e){Object(c.a)(n,e);var t=Te(n);function n(e){var r;Object(o.a)(this,n),(r=t.call(this,e)).inlineOpenKeys=[],r.onSelect=function(e){var t=Object(a.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys,o=e.key;n=t.multiple?n.concat([o]):[o],"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onSelect(Ne(Ne({},e),{},{selectedKeys:n}))}},r.onClick=function(e){var t=r.getRealMenuMode(),n=Object(a.a)(r),o=n.store,i=n.props.onOpenChange;"inline"===t||"openKeys"in r.props||(o.setState({openKeys:[]}),i([])),r.props.onClick(e)},r.onKeyDown=function(e,t){r.innerMenu.getWrappedInstance().onKeyDown(e,t)},r.onOpenChange=function(e){var t=Object(a.a)(r).props,n=r.store.getState().openKeys.concat(),o=!1,i=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var r=n.indexOf(e.key);(t=-1!==r)&&n.splice(r,1)}o=o||t};Array.isArray(e)?e.forEach(i):i(e),o&&("openKeys"in r.props||r.store.setState({openKeys:n}),t.onOpenChange(n))},r.onDeselect=function(e){var t=Object(a.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys.concat(),o=e.key,i=n.indexOf(o);-1!==i&&n.splice(i,1),"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onDeselect(Ne(Ne({},e),{},{selectedKeys:n}))}},r.onMouseEnter=function(e){r.restoreModeVerticalFromInline();var t=r.props.onMouseEnter;t&&t(e)},r.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,o="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,i="font-size"===e.propertyName&&o.indexOf("anticon")>=0;(t||i)&&r.restoreModeVerticalFromInline()},r.setInnerMenu=function(e){r.innerMenu=e},r.isRootMenu=!0;var i=e.defaultSelectedKeys,c=e.defaultOpenKeys;return"selectedKeys"in e&&(i=e.selectedKeys||[]),"openKeys"in e&&(c=e.openKeys||[]),r.store=Object(p.c)({selectedKeys:i,openKeys:c,activeKey:{"0-menu-":Ee(e,e.activeKey)}}),r.state={switchingModeFromInline:!1},r}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){this.updateOpentKeysWhenSwitchMode(e),this.updateMiniStore();var t=this.props,n=t.siderCollapsed,r=t.inlineCollapsed,o=t.onOpenChange;(!e.inlineCollapsed&&r||!e.siderCollapsed&&n)&&o([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(e){var t=this.props,n=this.store,r=this.inlineOpenKeys,o=n.getState(),i={};"inline"===e.mode&&"inline"!==t.mode&&this.setState({switchingModeFromInline:!0}),"openKeys"in t||((t.inlineCollapsed&&!e.inlineCollapsed||t.siderCollapsed&&!e.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=o.openKeys.concat(),i.openKeys=[]),(!t.inlineCollapsed&&e.inlineCollapsed||!t.siderCollapsed&&e.siderCollapsed)&&(i.openKeys=r,this.inlineOpenKeys=[])),Object.keys(i).length&&n.setState(i)}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e)?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Ne({},Object(d.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=Ne(Ne({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ke(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,f.a.createElement(p.a,{store:this.store},f.a.createElement(_e,Object.assign({},e,{ref:this.setInnerMenu}),this.props.children))}}]),n}(f.a.Component);Ae.defaultProps={selectable:!0,onClick:V,onSelect:V,onOpenChange:V,onDeselect:V,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:f.a.createElement("span",null,"···")};var Re=Ae;function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Fe=function(e){Object(c.a)(n,e);var t=Le(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===v.a.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,r=n.eventKey,o=n.onItemHover,i=n.onMouseLeave;o({key:r,hover:!1}),i({key:r,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,r=n.eventKey,o=n.onItemHover,i=n.onMouseEnter;o({key:r,hover:!0}),i({key:r,domEvent:t})},e.onClick=function(t){var n=e.props,r=n.eventKey,o=n.multiple,i=n.onClick,c=n.onSelect,u=n.onDeselect,l=n.isSelected,s={key:r,keyPath:[r],item:Object(a.a)(e),domEvent:t};i(s),o?l?u(s):c(s):l||c(s)},e.saveNode=function(t){e.node=t},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=Ie({},this.props),n=O()(this.getPrefixCls(),t.className,(e={},Object(r.a)(e,this.getActiveClassName(),!t.disabled&&t.active),Object(r.a)(e,this.getSelectedClassName(),t.isSelected),Object(r.a)(e,this.getDisabledClassName(),t.disabled),e)),o=Ie(Ie({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?o=Ie(Ie({},o),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(o.role="none");var i={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},a=Ie({},t.style);"inline"===t.mode&&("rtl"===t.direction?a.paddingRight=t.inlineIndent*t.level:a.paddingLeft=t.inlineIndent*t.level),q.forEach((function(e){return delete t[e]})),delete t.direction;var c=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(c=f.a.createElement(this.props.itemIcon,this.props)),f.a.createElement("li",Object.assign({},Object(d.default)(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),o,i,{style:a,ref:this.saveNode}),t.children,c)}}]),n}(f.a.Component);Fe.isMenuItem=!0,Fe.defaultProps={onSelect:V,onMouseEnter:V,onMouseLeave:V,manualRef:V};var ze=Object(p.b)((function(e,t){var n=e.activeKey,r=e.selectedKeys,o=t.eventKey;return{active:n[t.subMenuKey]===o,isSelected:-1!==r.indexOf(o)}}))(Fe);function He(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Be=function(e){Object(c.a)(n,e);var t=He(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).renderInnerMenuItem=function(t){var n=e.props;return(0,n.renderMenuItem)(t,n.index,e.props.subMenuKey)},e}return Object(i.a)(n,[{key:"render",value:function(){var e=Object(h.a)({},this.props),t=e.className,n=void 0===t?"":t,r=e.rootPrefixCls,o="".concat(r,"-item-group-title"),i="".concat(r,"-item-group-list"),a=e.title,c=e.children;return q.forEach((function(t){return delete e[t]})),delete e.onClick,delete e.direction,f.a.createElement("li",Object.assign({},e,{className:"".concat(n," ").concat(r,"-item-group")}),f.a.createElement("div",{className:o,title:"string"==typeof a?a:void 0},a),f.a.createElement("ul",{className:i},f.a.Children.map(c,this.renderInnerMenuItem)))}}]),n}(f.a.Component);Be.isMenuItemGroup=!0,Be.defaultProps={disabled:!0};var Ve=Be,Ke=function(e){var t=e.className,n=e.rootPrefixCls,r=e.style;return f.a.createElement("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:r})};Ke.defaultProps={disabled:!0,className:"",style:{}};var Ue=Ke;t.default=Re},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),o=n(7),i=n(106);function a(e,t){return void 0===t&&(t=i.a),function(n){return n.lift(new c(e,t))}}var c=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.dueTime,this.scheduler))},e}(),u=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.dueTime=n,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return r.__extends(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(o.a);function l(e){e.debouncedNext()}},function(e,t,n){"use strict";var r=n(734),o={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a={lang:i({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:i({},o)},c=a,u="${label} is not a valid ${type}",l={locale:"en",Pagination:r.a,DatePicker:a,TimePicker:o,Calendar:c,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{defaultValidateMessages:{default:"Field validation error ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label} must be ${len} characters",min:"${label} at least ${min} characters",max:"${label} up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} minimum value is ${min}",max:"${label} maximum value is ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};t.a=l},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"b",(function(){return o}));var o=["xxl","xl","lg","md","sm","xs"],i={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},a=new Map,c=-1,u={},l={matchHandlers:{},dispatch:function(e){return u=e,a.forEach((function(e){return e(u)})),a.size>=1},subscribe:function(e){return a.size||this.register(),c+=1,a.set(c,e),e(u),c},unsubscribe:function(e){a.delete(e),a.size||this.unregister()},unregister:function(){var e=this;Object.keys(i).forEach((function(t){var n=i[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),a.clear()},register:function(){var e=this;Object.keys(i).forEach((function(t){var n=i[t],o=function(n){var o,i,a,c=n.matches;e.dispatch(r(r({},u),(a=c,(i=t)in(o={})?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o)))},a=window.matchMedia(n);a.addListener(o),e.matchHandlers[n]={mql:a,listener:o},o(a)}))}};t.a=l},function(e,t,n){"use strict";var r={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},o={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},i=[],a=[];function c(e,t,n){e.addEventListener(t,n,!1)}function u(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var e=document.createElement("div").style;function t(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];for(var i in o)if(i in e){n.push(o[i]);break}}}"AnimationEvent"in window||(delete r.animationstart.animation,delete o.animationend.animation),"TransitionEvent"in window||(delete r.transitionstart.transition,delete o.transitionend.transition),t(r,i),t(o,a)}();var l={startEvents:i,addStartEventListener:function(e,t){0!==i.length?i.forEach((function(n){c(e,n,t)})):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==i.length&&i.forEach((function(n){u(e,n,t)}))},endEvents:a,addEndEventListener:function(e,t){0!==a.length?a.forEach((function(n){c(e,n,t)})):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==a.length&&a.forEach((function(n){u(e,n,t)}))}};t.a=l},function(e,t,n){var r=n(62).Uint8Array;e.exports=r},function(e,t,n){var r=n(377),o=n(359),i=n(152);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(358),o=n(51);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(423),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,c=o(i.length-t,0),u=Array(c);++a<c;)u[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=n(u),r(e,this,l)}}},function(e,t,n){var r=n(424),o=n(426)(r);e.exports=o},function(e,t,n){var r=n(1020);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";var r=n(16),o=n(55),i=n(32),a=n(129),c=n(0),u=(n(26),!!document.documentElement.currentStyle),l={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},s=["letter-spacing","line-height","font-family","font-weight","font-size","font-style","tab-size","text-rendering","text-transform","width","text-indent","padding-top","padding-right","padding-bottom","padding-left","border-top-width","border-right-width","border-bottom-width","border-left-width","box-sizing"],f={},p=document.createElement("textarea"),d=function(e){Object.keys(l).forEach((function(t){e.style.setProperty(t,l[t],"important")}))};function h(e,t,n,r,o){void 0===n&&(n=!1),void 0===r&&(r=null),void 0===o&&(o=null),null===p.parentNode&&document.body.appendChild(p);var i=function(e,t,n){void 0===n&&(n=!1);if(n&&f[t])return f[t];var r=window.getComputedStyle(e);if(null===r)return null;var o=s.reduce((function(e,t){return e[t]=r.getPropertyValue(t),e}),{}),i=o["box-sizing"];if(""===i)return null;u&&"border-box"===i&&(o.width=parseFloat(o.width)+parseFloat(r["border-right-width"])+parseFloat(r["border-left-width"])+parseFloat(r["padding-right"])+parseFloat(r["padding-left"])+"px");var a=parseFloat(o["padding-bottom"])+parseFloat(o["padding-top"]),c=parseFloat(o["border-bottom-width"])+parseFloat(o["border-top-width"]),l={sizingStyle:o,paddingSize:a,borderSize:c,boxSizing:i};n&&(f[t]=l);return l}(e,t,n);if(null===i)return null;var a=i.paddingSize,c=i.borderSize,l=i.boxSizing,h=i.sizingStyle;Object.keys(h).forEach((function(e){p.style[e]=h[e]})),d(p),p.value=e.value||e.placeholder||"x";var v=-1/0,m=1/0,y=p.scrollHeight;"border-box"===l?y+=c:"content-box"===l&&(y-=a),p.value="x";var b=p.scrollHeight-a,g=Math.floor(y/b);return null!==r&&(v=b*r,"border-box"===l&&(v=v+a+c),y=Math.max(v,y)),null!==o&&(m=b*o,"border-box"===l&&(m=m+a+c),y=Math.min(m,y)),{height:y,minHeight:v,maxHeight:m,rowCount:Math.floor(y/b),valueRowCount:g}}p.setAttribute("tab-index","-1"),p.setAttribute("aria-hidden","true"),d(p);var v=function(){},m=0,y=function(e){function t(t){var n;return(n=e.call(this,t)||this)._onRef=function(e){n._ref=e;var t=n.props.inputRef;"function"!=typeof t?t.current=e:t(e)},n._onChange=function(e){n._controlled||n._resizeComponent(),n.props.onChange(e,Object(i.a)(n))},n._resizeComponent=function(e){void 0===e&&(e=v);var t=h(n._ref,n._uid,n.props.useCacheForDOMMeasurements,n.props.minRows,n.props.maxRows);if(null!==t){var r=t.height,o=t.minHeight,i=t.maxHeight,a=t.rowCount,c=t.valueRowCount;n.rowCount=a,n.valueRowCount=c,n.state.height===r&&n.state.minHeight===o&&n.state.maxHeight===i?e():n.setState({height:r,minHeight:o,maxHeight:i},e)}else e()},n.state={height:t.style&&t.style.height||0,minHeight:-1/0,maxHeight:1/0},n._uid=m++,n._controlled=void 0!==t.value,n._resizeLock=!1,n}Object(a.a)(t,e);var n=t.prototype;return n.render=function(){var e=this.props,t=(e.inputRef,e.maxRows,e.minRows,e.onHeightChange,e.useCacheForDOMMeasurements,Object(o.a)(e,["inputRef","maxRows","minRows","onHeightChange","useCacheForDOMMeasurements"]));return t.style=Object(r.a)({},t.style,{height:this.state.height}),Math.max(t.style.maxHeight||1/0,this.state.maxHeight)<this.state.height&&(t.style.overflow="hidden"),Object(c.createElement)("textarea",Object(r.a)({},t,{onChange:this._onChange,ref:this._onRef}))},n.componentDidMount=function(){var e=this;this._resizeComponent(),this._resizeListener=function(){e._resizeLock||(e._resizeLock=!0,e._resizeComponent((function(){e._resizeLock=!1})))},window.addEventListener("resize",this._resizeListener)},n.componentDidUpdate=function(e,t){e!==this.props&&this._resizeComponent(),this.state.height!==t.height&&this.props.onHeightChange(this.state.height,this)},n.componentWillUnmount=function(){window.removeEventListener("resize",this._resizeListener),function(e){delete f[e]}(this._uid)},t}(c.Component);y.defaultProps={inputRef:v,onChange:v,onHeightChange:v,useCacheForDOMMeasurements:!1},t.a=y},function(e,t,n){var r; -/*! - * UAParser.js v0.7.21 - * Lightweight JavaScript-based User-Agent string parser - * https://github.com/faisalman/ua-parser-js - * - * Copyright © 2012-2019 Faisal Salman <f@faisalman.com> - * Licensed under MIT License - */!function(o,i){"use strict";var a="model",c="name",u="type",l="vendor",s="version",f="mobile",p="tablet",d="smarttv",h={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},v={rgx:function(e,t){for(var n,r,o,i,a,c,u=0;u<t.length&&!a;){var l=t[u],s=t[u+1];for(n=r=0;n<l.length&&!a;)if(a=l[n++].exec(e))for(o=0;o<s.length;o++)c=a[++r],"object"==typeof(i=s[o])&&i.length>0?2==i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,c):this[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=c?c.replace(i[1],i[2]):void 0:this[i[0]]=c?i[1].call(this,c,i[2]):void 0:4==i.length&&(this[i[0]]=c?i[3].call(this,c.replace(i[1],i[2])):void 0):this[i]=c||void 0;u+=2}},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(h.has(t[n][r],e))return"?"===n?void 0:n}else if(h.has(t[n],e))return"?"===n?void 0:n;return e}},m={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},y={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[c,s],[/(opios)[\/\s]+([\w\.]+)/i],[[c,"Opera Mini"],s],[/\s(opr)\/([\w\.]+)/i],[[c,"Opera"],s],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[c,s],[/(konqueror)\/([\w\.]+)/i],[[c,"Konqueror"],s],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[c,"IE"],s],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[c,"Edge"],s],[/(yabrowser)\/([\w\.]+)/i],[[c,"Yandex"],s],[/(Avast)\/([\w\.]+)/i],[[c,"Avast Secure Browser"],s],[/(AVG)\/([\w\.]+)/i],[[c,"AVG Secure Browser"],s],[/(puffin)\/([\w\.]+)/i],[[c,"Puffin"],s],[/(focus)\/([\w\.]+)/i],[[c,"Firefox Focus"],s],[/(opt)\/([\w\.]+)/i],[[c,"Opera Touch"],s],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[c,"UCBrowser"],s],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],s],[/(windowswechat qbcore)\/([\w\.]+)/i],[[c,"WeChat(Win) Desktop"],s],[/(micromessenger)\/([\w\.]+)/i],[[c,"WeChat"],s],[/(brave)\/([\w\.]+)/i],[[c,"Brave"],s],[/(qqbrowserlite)\/([\w\.]+)/i],[c,s],[/(QQ)\/([\d\.]+)/i],[c,s],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[c,s],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[c,s],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[c,s],[/(MetaSr)[\/\s]?([\w\.]+)/i],[c],[/(LBBROWSER)/i],[c],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[s,[c,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[s,[c,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[c,s],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[s,[c,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[c,/(.+)/,"$1 WebView"],s],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[c,/(.+(?:g|us))(.+)/,"$1 $2"],s],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[s,[c,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[c,"Sailfish Browser"],s],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[c,s],[/(dolfin)\/([\w\.]+)/i],[[c,"Dolphin"],s],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[c,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[c,"Chrome"],s],[/(coast)\/([\w\.]+)/i],[[c,"Opera Coast"],s],[/fxios\/([\w\.-]+)/i],[s,[c,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[s,[c,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[s,c],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[c,"GSA"],s],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[c,[s,v.str,m.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[c,s],[/(navigator|netscape)\/([\w\.-]+)/i],[[c,"Netscape"],s],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[c,s]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",h.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",h.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",h.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[a,l,[u,p]],[/applecoremedia\/[\w\.]+ \((ipad)/],[a,[l,"Apple"],[u,p]],[/(apple\s{0,1}tv)/i],[[a,"Apple TV"],[l,"Apple"],[u,d]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[l,a,[u,p]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[a,[l,"Amazon"],[u,p]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[a,v.str,m.device.amazon.model],[l,"Amazon"],[u,f]],[/android.+aft([bms])\sbuild/i],[a,[l,"Amazon"],[u,d]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[a,l,[u,f]],[/\((ip[honed|\s\w*]+);/i],[a,[l,"Apple"],[u,f]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[l,a,[u,f]],[/\(bb10;\s(\w+)/i],[a,[l,"BlackBerry"],[u,f]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[a,[l,"Asus"],[u,p]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[l,"Sony"],[a,"Xperia Tablet"],[u,p]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[l,"Sony"],[u,f]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[l,a,[u,"console"]],[/android.+;\s(shield)\sbuild/i],[a,[l,"Nvidia"],[u,"console"]],[/(playstation\s[34portablevi]+)/i],[a,[l,"Sony"],[u,"console"]],[/(sprint\s(\w+))/i],[[l,v.str,m.device.sprint.vendor],[a,v.str,m.device.sprint.model],[u,f]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[l,[a,/_/g," "],[u,f]],[/(nexus\s9)/i],[a,[l,"HTC"],[u,p]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[a,[l,"Huawei"],[u,f]],[/android.+(bah2?-a?[lw]\d{2})/i],[a,[l,"Huawei"],[u,p]],[/(microsoft);\s(lumia[\s\w]+)/i],[l,a,[u,f]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[a,[l,"Microsoft"],[u,"console"]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[l,"Microsoft"],[u,f]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[a,[l,"Motorola"],[u,f]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[a,[l,"Motorola"],[u,p]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[l,h.trim],[a,h.trim],[u,d]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[l,"Samsung"],[u,d]],[/\(dtv[\);].+(aquos)/i],[a,[l,"Sharp"],[u,d]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[l,"Samsung"],a,[u,p]],[/smart-tv.+(samsung)/i],[l,[u,d],a],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[l,"Samsung"],a,[u,f]],[/sie-(\w*)/i],[a,[l,"Siemens"],[u,f]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[l,"Nokia"],a,[u,f]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[a,[l,"Acer"],[u,p]],[/android.+([vl]k\-?\d{3})\s+build/i],[a,[l,"LG"],[u,p]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[l,"LG"],a,[u,p]],[/(lg) netcast\.tv/i],[l,a,[u,d]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[a,[l,"LG"],[u,f]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[l,a,[u,p]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[a,[l,"Lenovo"],[u,p]],[/(lenovo)[_\s-]?([\w-]+)/i],[l,a,[u,f]],[/linux;.+((jolla));/i],[l,a,[u,f]],[/((pebble))app\/[\d\.]+\s/i],[l,a,[u,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[l,a,[u,f]],[/crkey/i],[[a,"Chromecast"],[l,"Google"],[u,d]],[/android.+;\s(glass)\s\d/i],[a,[l,"Google"],[u,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[a,[l,"Google"],[u,p]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[a,[l,"Google"],[u,f]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[l,"Xiaomi"],[u,f]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[l,"Xiaomi"],[u,p]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[a,[l,"Meizu"],[u,f]],[/(mz)-([\w-]{2,})/i],[[l,"Meizu"],a,[u,f]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[a,[l,"OnePlus"],[u,f]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[a,[l,"RCA"],[u,p]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[a,[l,"Dell"],[u,p]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[a,[l,"Verizon"],[u,p]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[l,"Barnes & Noble"],a,[u,p]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[a,[l,"NuVision"],[u,p]],[/android.+;\s(k88)\sbuild/i],[a,[l,"ZTE"],[u,p]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[a,[l,"Swiss"],[u,f]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[a,[l,"Swiss"],[u,p]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[a,[l,"Zeki"],[u,p]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[l,"Dragon Touch"],a,[u,p]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[a,[l,"Insignia"],[u,p]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[a,[l,"NextBook"],[u,p]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[l,"Voice"],a,[u,f]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[l,"LvTel"],a,[u,f]],[/android.+;\s(PH-1)\s/i],[a,[l,"Essential"],[u,f]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[a,[l,"Envizen"],[u,p]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[l,a,[u,p]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[a,[l,"MachSpeed"],[u,p]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[l,a,[u,p]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[a,[l,"Rotor"],[u,p]],[/android.+(KS(.+))\s+build/i],[a,[l,"Amazon"],[u,p]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[l,a,[u,p]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[u,h.lowerize],l,a],[/[\s\/\(](smart-?tv)[;\)]/i],[[u,d]],[/(android[\w\.\s\-]{0,9});.+build/i],[a,[l,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[s,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[s,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[c,s],[/rv\:([\w\.]{1,9}).+(gecko)/i],[s,c]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[c,s],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[c,[s,v.str,m.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[c,"Windows"],[s,v.str,m.os.windows.version]],[/\((bb)(10);/i],[[c,"BlackBerry"],s],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[c,s],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[c,"Symbian"],s],[/\((series40);/i],[c],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[c,"Firefox OS"],s],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[c,s],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[c,"Chromium OS"],s],[/(sunos)\s?([\w\.\d]*)/i],[[c,"Solaris"],s],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[c,s],[/(haiku)\s(\w+)/i],[c,s],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[s,/_/g,"."],[c,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[c,"Mac OS"],[s,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[c,s]]},b=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof b))return new b(e,t).getResult();var n=e||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),r=t?h.extend(y,t):y;return this.getBrowser=function(){var e={name:void 0,version:void 0};return v.rgx.call(e,n,r.browser),e.major=h.major(e.version),e},this.getCPU=function(){var e={architecture:void 0};return v.rgx.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return v.rgx.call(e,n,r.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return v.rgx.call(e,n,r.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return v.rgx.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};b.VERSION="0.7.21",b.BROWSER={NAME:c,MAJOR:"major",VERSION:s},b.CPU={ARCHITECTURE:"architecture"},b.DEVICE={MODEL:a,VENDOR:l,TYPE:u,CONSOLE:"console",MOBILE:f,SMARTTV:d,TABLET:p,WEARABLE:"wearable",EMBEDDED:"embedded"},b.ENGINE={NAME:c,VERSION:s},b.OS={NAME:c,VERSION:s},void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=b),t.UAParser=b):void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r);var g=o&&(o.jQuery||o.Zepto);if(g&&!g.ua){var O=new b;g.ua=O.getResult(),g.ua.get=function(){return O.getUA()},g.ua.set=function(e){O.setUA(e);var t=O.getResult();for(var n in t)g.ua[n]=t[n]}}}("object"==typeof window?window:this)},function(e,t,n){var r=n(612),o=n(613);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var c=0;c<16;++c)t[i+c]=a[c];return t||o(a)}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1056))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r=n(6),o=n(43),i=n(44),a=n(32),c=n(50),u=n(49),l=n(25),s=n(0),f=n.n(s),p=n(20),d=n.n(p),h=n(504),v=n(496),m=n(175),y=n(188),b=n(736),g=n(4),O=n.n(g);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var E,S=n(72),C=n(101),_=n.n(C),P=n(28),k=n(71);function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var A={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function R(){if(void 0!==E)return E;E="";var e=document.createElement("p").style;for(var t in A)t+"Transform"in e&&(E=t);return E}function D(){return R()?"".concat(R(),"TransitionProperty"):"transitionProperty"}function I(){return R()?"".concat(R(),"Transform"):"transform"}function L(e,t){var n=D();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function F(e,t){var n=I();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var z,H=/matrix\((.*)\)/,B=/matrix3d\((.*)\)/;function V(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function K(e,t,n){var r=n;if("object"!==M(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):z(e,t);for(var o in t)t.hasOwnProperty(o)&&K(e,o,t[o])}function U(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function W(e){return U(e)}function q(e){return U(e,!0)}function G(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=W(r),t.top+=q(r),t}function $(e){return null!=e&&e==e.window}function Y(e){return $(e)?e.document:9===e.nodeType?e:e.ownerDocument}var X=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),Z=/^(top|right|bottom|left)$/,J="left";function Q(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ee(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function te(e,t,n){"static"===K(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=Q("left",n),a=Q("top",n),c=ee(i),u=ee(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var l,s="",f=G(e);("left"in t||"top"in t)&&(s=(l=e).style.transitionProperty||l.style[D()]||"",L(e,"none")),"left"in t&&(e.style[c]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[u]="",e.style[a]="".concat(o,"px")),V(e);var p=G(e),d={};for(var h in t)if(t.hasOwnProperty(h)){var v=Q(h,n),m="left"===h?r:o,y=f[h]-p[h];d[v]=v===h?m+y:m-y}K(e,d),V(e),("left"in t||"top"in t)&&L(e,s);var b={};for(var g in t)if(t.hasOwnProperty(g)){var O=Q(g,n),w=t[g]-f[g];b[O]=g===O?d[O]+w:d[O]-w}K(e,b)}function ne(e,t){var n=G(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(I());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(I());if(r&&"none"!==r){var o,i=r.match(H);if(i)(o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,F(e,"matrix(".concat(o.join(","),")"));else(o=r.match(B)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,F(e,"matrix3d(".concat(o.join(","),")"))}else F(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function re(e,t){for(var n=0;n<e.length;n++)t(e[n])}function oe(e){return"border-box"===z(e,"boxSizing")}"undefined"!=typeof window&&(z=window.getComputedStyle?function(e,t,n){var r=n,o="",i=Y(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(X.test(n)&&!Z.test(t)){var r=e.style,o=r[J],i=e.runtimeStyle[J];e.runtimeStyle[J]=e.currentStyle[J],r[J]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[J]=o,e.runtimeStyle[J]=i}return""===n?"auto":n});var ie=["margin","border","padding"];function ae(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}function ce(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var c=void 0;c="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(z(e,c))||0}return a}var ue={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function le(e,t,n){var r=n;if($(e))return"width"===t?ue.viewportWidth(e):ue.viewportHeight(e);if(9===e.nodeType)return"width"===t?ue.docWidth(e):ue.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height,a=(z(e),oe(e)),c=0;(null==i||i<=0)&&(i=void 0,(null==(c=z(e,t))||Number(c)<0)&&(c=e.style[t]||0),c=parseFloat(c)||0),void 0===r&&(r=a?1:-1);var u=void 0!==i||a,l=i||c;return-1===r?u?l-ce(e,["border","padding"],o):c:u?1===r?l:l+(2===r?-ce(e,["border"],o):ce(e,["margin"],o)):c+ce(e,ie.slice(r),o)}re(["Width","Height"],(function(e){ue["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],ue["viewport".concat(e)](n))},ue["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var se={position:"absolute",visibility:"hidden",display:"block"};function fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=le.apply(void 0,t):ae(o,se,(function(){r=le.apply(void 0,t)})),r}function pe(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}re(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);ue["outer".concat(t)]=function(t,n){return t&&fe(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];ue[e]=function(t,r){var o=r;if(void 0===o)return t&&fe(t,e,-1);if(t){z(t);return oe(t)&&(o+=ce(t,["padding","border"],n)),K(t,e,o)}}}));var de={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Y,offset:function(e,t,n){if(void 0===t)return G(e);!function(e,t,n){if(n.ignoreShake){var r=G(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),c=t.top.toFixed(0);if(o===a&&i===c)return}n.useCssRight||n.useCssBottom?te(e,t,n):n.useCssTransform&&I()in document.body.style?ne(e,t):te(e,t,n)}(e,t,n||{})},isWindow:$,each:re,css:K,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:pe,getWindowScrollLeft:function(e){return W(e)},getWindowScrollTop:function(e){return q(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)de.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};pe(de,ue);var he=de.getParent;function ve(e){if(de.isWindow(e)||9===e.nodeType)return null;var t,n=de.getDocument(e).body,r=de.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:he(e);for(t=he(e);t&&t!==n&&9!==t.nodeType;t=he(t))if("static"!==(r=de.css(t,"position")))return t;return null}var me=de.getParent;function ye(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=ve(e),o=de.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,c=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===c||"visible"===de.css(r,"overflow")){if(r===a||r===c)break}else{var u=de.offset(r);u.left+=r.clientLeft,u.top+=r.clientTop,n.top=Math.max(n.top,u.top),n.right=Math.min(n.right,u.left+r.clientWidth),n.bottom=Math.min(n.bottom,u.top+r.clientHeight),n.left=Math.max(n.left,u.left)}r=ve(r)}var l=null;de.isWindow(e)||9===e.nodeType||(l=e.style.position,"absolute"===de.css(e,"position")&&(e.style.position="fixed"));var s=de.getWindowScrollLeft(i),f=de.getWindowScrollTop(i),p=de.viewportWidth(i),d=de.viewportHeight(i),h=c.scrollWidth,v=c.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(h=i.innerWidth),"hidden"===m.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=l),t||function(e){if(de.isWindow(e)||9===e.nodeType)return!1;var t=de.getDocument(e).body,n=null;for(n=me(e);n&&n!==t;n=me(n)){if("fixed"===de.css(n,"position"))return!0}return!1}(e))n.left=Math.max(n.left,s),n.top=Math.max(n.top,f),n.right=Math.min(n.right,s+p),n.bottom=Math.min(n.bottom,f+d);else{var y=Math.max(h,s+p);n.right=Math.min(n.right,y);var b=Math.max(v,f+d);n.bottom=Math.min(n.bottom,b)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function be(e){var t,n,r;if(de.isWindow(e)||9===e.nodeType){var o=de.getWindow(e);t={left:de.getWindowScrollLeft(o),top:de.getWindowScrollTop(o)},n=de.viewportWidth(o),r=de.viewportHeight(o)}else t=de.offset(e),n=de.outerWidth(e),r=de.outerHeight(e);return t.width=n,t.height=r,t}function ge(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,c=e.top;return"c"===n?c+=i/2:"b"===n&&(c+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:c}}function Oe(e,t,n,r,o){var i=ge(t,n[1]),a=ge(e,n[0]),c=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-c[0]+r[0]-o[0]),top:Math.round(e.top-c[1]+r[1]-o[1])}}function we(e,t,n){return e.left<n.left||e.left+t.width>n.right}function je(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function xe(e,t,n){var r=[];return de.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Ee(e,t){return e[t]=-e[t],e}function Se(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Ce(e,t){e[0]=Se(e[0],t.width),e[1]=Se(e[1],t.height)}function _e(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],c=n.overflow,u=n.source||e;i=[].concat(i),a=[].concat(a);var l={},s=0,f=ye(u,!(!(c=c||{})||!c.alwaysByViewport)),p=be(u);Ce(i,p),Ce(a,t);var d=Oe(p,t,o,i,a),h=de.merge(p,d);if(f&&(c.adjustX||c.adjustY)&&r){if(c.adjustX&&we(d,p,f)){var v=xe(o,/[lr]/gi,{l:"r",r:"l"}),m=Ee(i,0),y=Ee(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Oe(p,t,v,m,y),p,f)||(s=1,o=v,i=m,a=y)}if(c.adjustY&&je(d,p,f)){var b=xe(o,/[tb]/gi,{t:"b",b:"t"}),g=Ee(i,1),O=Ee(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Oe(p,t,b,g,O),p,f)||(s=1,o=b,i=g,a=O)}s&&(d=Oe(p,t,o,i,a),de.mix(h,d));var w=we(d,p,f),j=je(d,p,f);if(w||j){var x=o;w&&(x=xe(o,/[lr]/gi,{l:"r",r:"l"})),j&&(x=xe(o,/[tb]/gi,{t:"b",b:"t"})),o=x,i=n.offset||[0,0],a=n.targetOffset||[0,0]}l.adjustX=c.adjustX&&w,l.adjustY=c.adjustY&&j,(l.adjustX||l.adjustY)&&(h=function(e,t,n,r){var o=de.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),de.mix(o,i)}(d,p,f,l))}return h.width!==p.width&&de.css(u,"width",de.width(u)+h.width-p.width),h.height!==p.height&&de.css(u,"height",de.height(u)+h.height-p.height),de.offset(u,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:l}}function Pe(e,t,n){var r=n.target||t;return _e(e,be(r),n,!function(e,t){var n=ye(e,t),r=be(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport))}function ke(e,t,n){var r,o,i=de.getDocument(e),a=i.defaultView||i.parentWindow,c=de.getWindowScrollLeft(a),u=de.getWindowScrollTop(a),l=de.viewportWidth(a),s=de.viewportHeight(a);r="pageX"in t?t.pageX:c+t.clientX,o="pageY"in t?t.pageY:u+t.clientY;var f=r>=0&&r<=c+l&&o>=0&&o<=u+s;return _e(e,{left:r,top:o,width:0,height:0},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(n,!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{points:[n.points[0],"cc"]}),f)}Pe.__getOffsetParent=ve,Pe.__getVisibleRectForElement=ye;var Me=n(497);function Ne(e,t){var n=null,r=null;var o=new Me.a((function(e){var o=Object(P.a)(e,1)[0].target.getBoundingClientRect(),i=o.width,a=o.height,c=Math.floor(i),u=Math.floor(a);n===c&&r===u||t({width:c,height:u}),n=c,r=u}));return e&&o.observe(e),function(){o.disconnect()}}function Te(e){return"function"!=typeof e?null:e()}function Ae(e){return"object"===Object(k.a)(e)&&e?e:null}var Re=f.a.forwardRef((function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,c=e.monitorWindowResize,u=e.monitorBufferTime,l=void 0===u?0:u,s=f.a.useRef({}),p=f.a.useRef(),d=f.a.Children.only(n),v=f.a.useRef({});v.current.disabled=r,v.current.target=o,v.current.onAlign=a;var b=function(e,t){var n=f.a.useRef(!1),r=f.a.useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(n.current&&!0!==a)o(),r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e())return;n.current=!0,o(),r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=v.current,t=e.disabled,n=e.target;if(!t&&n){var r,o=p.current,c=Te(n),u=Ae(n);s.current.element=c,s.current.point=u;var l=document.activeElement;return c?r=Pe(o,c,i):u&&(r=ke(o,u,i)),function(e,t){e!==document.activeElement&&Object(h.a)(t,e)&&"function"==typeof e.focus&&e.focus()}(l,o),a&&a(o,r),!0}return!1}),l),g=Object(P.a)(b,2),O=g[0],w=g[1],j=f.a.useRef({cancel:function(){}}),x=f.a.useRef({cancel:function(){}});f.a.useEffect((function(){var e,t,n=Te(o),r=Ae(o);p.current!==x.current.element&&(x.current.cancel(),x.current.element=p.current,x.current.cancel=Ne(p.current,O)),s.current.element===n&&((e=s.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(O(),j.current.element!==n&&(j.current.cancel(),j.current.element=n,j.current.cancel=Ne(n,O)))})),f.a.useEffect((function(){r?w():O()}),[r]);var E=f.a.useRef(null);return f.a.useEffect((function(){c?E.current||(E.current=Object(y.a)(window,"resize",O)):E.current&&(E.current.remove(),E.current=null)}),[c]),f.a.useEffect((function(){return function(){j.current.cancel(),x.current.cancel(),E.current&&E.current.remove(),w()}}),[]),f.a.useImperativeHandle(t,(function(){return{forceAlign:function(){return O(!0)}}})),f.a.isValidElement(d)&&(d=f.a.cloneElement(d,{ref:Object(m.a)(d.ref,p)})),d}));Re.displayName="Align";var De=Re,Ie=n(306),Le=f.a.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.visible,i=e.style,a=e.children,c=e.onMouseEnter,u=e.onMouseLeave,l=e.onMouseDown,s=e.onTouchStart,p=a;return f.a.Children.count(a)>1&&(p=f.a.createElement("div",{className:"".concat(n,"-content")},a)),f.a.createElement("div",{ref:t,className:O()(r,!o&&"".concat(e.hiddenClassName)),onMouseEnter:c,onMouseLeave:u,onMouseDown:l,onTouchStart:s,style:i},p)}));Le.displayName="PopupInner";var Fe=Le;function ze(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Ke=Ie.a;function Ue(e){return e&&e.motionName}var We=function(e){Object(c.a)(n,e);var t=Ve(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null},e.popupRef=f.a.createRef(),e.alignRef=f.a.createRef(),e.nextFrameState=null,e.nextFrameId=null,e.onAlign=function(t,n){var r=e.state.status,o=e.props,i=o.getClassNameFromAlign,a=o.onAlign,c=i(n);"align"===r?e.setState({alignClassName:c,status:"aligned"},(function(){e.alignRef.current.forceAlign()})):"aligned"===r?(e.setState({alignClassName:c,status:"afterAlign"}),a(t,n)):e.setState({alignClassName:c})},e.onMotionEnd=function(){var t=e.props.visible;e.setState({status:t?"AfterMotion":"stable"})},e.setStateOnNextFrame=function(t){e.cancelFrameState(),e.nextFrameState=Be(Be({},e.nextFrameState),t),e.nextFrameId=_()((function(){var t=Be({},e.nextFrameState);e.nextFrameState=null,e.setState(t)}))},e.getMotion=function(){return Be({},ze(e.props))},e.getAlignTarget=function(){var t=e.props,n=t.point,r=t.getRootDomNode;return n||r},e.cancelFrameState=function(){_.a.cancel(e.nextFrameId)},e.renderPopupElement=function(){var t=e.state,n=t.status,r=t.targetHeight,o=t.targetWidth,i=t.alignClassName,a=e.props,c=a.prefixCls,u=a.className,l=a.style,s=a.stretch,p=a.visible,d=a.align,h=a.destroyPopupOnHide,v=a.onMouseEnter,y=a.onMouseLeave,b=a.onMouseDown,g=a.onTouchStart,w=a.children,j=O()(c,u,i),x="".concat(c,"-hidden"),E={};s&&(-1!==s.indexOf("height")?E.height=r:-1!==s.indexOf("minHeight")&&(E.minHeight=r),-1!==s.indexOf("width")?E.width=o:-1!==s.indexOf("minWidth")&&(E.minWidth=o));var S=Be(Be(Be(Be({},E),e.getZIndexStyle()),l),{},{opacity:"stable"!==n&&p?0:void 0}),C=e.getMotion(),_=p;p&&"beforeMotion"!==n&&"motion"!==n&&"stable"!==n&&(C.motionAppear=!1,C.motionEnter=!1,C.motionLeave=!1),"afterAlign"!==n&&"beforeMotion"!==n||(_=!1);var P=!p||"align"!==n&&"aligned"!==n&&"stable"!==n,k=!0;return"stable"===n&&(k=p),h&&!k?null:f.a.createElement(Ke,Object.assign({visible:_},C,{removeOnLeave:!1,onEnterEnd:e.onMotionEnd,onLeaveEnd:e.onMotionEnd}),(function(t,n){var r=t.style,o=t.className;return f.a.createElement(De,{target:e.getAlignTarget(),key:"popup",ref:e.alignRef,monitorWindowResize:!0,disabled:P,align:d,onAlign:e.onAlign},f.a.createElement(Fe,{prefixCls:c,visible:k,hiddenClassName:x,className:O()(j,o),ref:Object(m.a)(n,e.popupRef),onMouseEnter:v,onMouseLeave:y,onMouseDown:b,onTouchStart:g,style:Be(Be({},S),r)},w))}))},e.renderMaskElement=function(){var t=e.props,n=t.mask,r=t.maskMotion,o=t.maskTransitionName,i=t.maskAnimation,a=t.prefixCls,c=t.visible;if(!n)return null;var u={};return r&&r.motionName&&(u=Be({motionAppear:!0},ze({motion:r,prefixCls:a,transitionName:o,animation:i}))),f.a.createElement(Ke,Object.assign({},u,{visible:c,removeOnLeave:!0}),(function(t){var n=t.className;return f.a.createElement("div",{style:e.getZIndexStyle(),key:"mask",className:O()("".concat(a,"-mask"),n)})}))},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this.state.status,t=this.props,n=t.getRootDomNode,r=t.visible,o=t.stretch;if(this.cancelFrameState(),r&&"stable"!==e)switch(e){case null:this.setStateOnNextFrame({status:o?"measure":"align"});break;case"afterAlign":this.setStateOnNextFrame({status:Ue(this.getMotion())?"beforeMotion":"stable"});break;case"AfterMotion":this.setStateOnNextFrame({status:"stable"});break;default:var i=["measure","align",null,"beforeMotion","motion"],a=i.indexOf(e),c=i[a+1];-1!==a&&c&&this.setStateOnNextFrame({status:c})}if("measure"===e){var u=n();u&&this.setStateOnNextFrame({targetHeight:u.offsetHeight,targetWidth:u.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){return{zIndex:this.props.zIndex}}},{key:"render",value:function(){return f.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.visible,r=Object(S.a)(e,["visible"]),o=t.prevVisible,i=t.status,a={prevVisible:n,status:i},c=ze(r);return null===o&&!1===n?a.status="stable":n!==o&&(n||Ue(c)&&["motion","AfterMotion","stable"].includes(i)?a.status=null:a.status="stable",n&&(a.alignClassName=null)),a}}]),n}(s.Component),qe=f.a.createContext(null);function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}function Ye(){}function Xe(){return""}function Ze(){return window.document}var Je=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var Qe,et;t.a=(Qe=b.a,(et=function(e){Object(c.a)(n,e);var t=$e(n);function n(e){var r,i;return Object(o.a)(this,n),(r=t.call(this,e)).popupRef=f.a.createRef(),r.triggerRef=f.a.createRef(),r.onMouseEnter=function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)},r.onMouseMove=function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)},r.onMouseLeave=function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onPopupMouseEnter=function(){r.clearDelayTimer()},r.onPopupMouseLeave=function(e){e.relatedTarget&&!e.relatedTarget.setTimeout&&r.popupRef.current&&r.popupRef.current.popupRef.current&&Object(h.a)(r.popupRef.current.popupRef.current,e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onFocus=function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))},r.onMouseDown=function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()},r.onTouchStart=function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()},r.onBlur=function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)},r.onContextMenu=function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)},r.onContextMenuClose=function(){r.isContextMenuToShow()&&r.close()},r.onClick=function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)},r.onPopupMouseDown=function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)},r.onDocumentClick=function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();Object(h.a)(n,t)||Object(h.a)(o,t)||r.hasPopupMouseDown||r.close()}},r.getRootDomNode=function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=Object(v.a)(r.triggerRef.current);if(t)return t}catch(e){}return d.a.findDOMNode(Object(a.a)(r))},r.getPopupClassNameFromAlign=function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,c=n.alignPoint,u=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var c=i[a];if(x(e[c].points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(i,a,e,c)),u&&t.push(u(e)),t.join(" ")},r.getComponent=function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,o=e.popupClassName,i=e.onPopupAlign,a=e.popupMotion,c=e.popupAnimation,u=e.popupTransitionName,l=e.popupStyle,s=e.mask,p=e.maskAnimation,d=e.maskTransitionName,h=e.maskMotion,v=e.zIndex,m=e.popup,y=e.stretch,b=e.alignPoint,g=r.state,O=g.popupVisible,w=g.point,j=r.getPopupAlign(),x={};return r.isMouseEnterToShow()&&(x.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(x.onMouseLeave=r.onPopupMouseLeave),x.onMouseDown=r.onPopupMouseDown,x.onTouchStart=r.onPopupMouseDown,f.a.createElement(We,Object.assign({prefixCls:t,destroyPopupOnHide:n,visible:O,point:b&&w,className:o,align:j,onAlign:i,animation:c,getClassNameFromAlign:r.getPopupClassNameFromAlign},x,{stretch:y,getRootDomNode:r.getRootDomNode,style:l,mask:s,zIndex:v,transitionName:u,maskAnimation:p,maskTransitionName:d,maskMotion:h,ref:r.popupRef,motion:a}),"function"==typeof m?m():m)},r.getContainer=function(){var e=Object(a.a)(r).props,t=document.createElement("div");return t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",(e.getPopupContainer?e.getPopupContainer(r.getRootDomNode()):e.getDocument().body).appendChild(t),t},r.setPoint=function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})},r.handlePortalUpdate=function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)},i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:i,popupVisible:i},Je.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(),this.clickOutsideHandler=Object(y.a)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(),this.touchOutsideHandler=Object(y.a)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(),this.contextMenuOutsideHandler1=Object(y.a)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(y.a)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){return j(j({},e[t]||{}),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,a=t.className,c=t.autoDestroy,u=f.a.Children.only(n),l={key:"trigger"};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains("onClick"),l.onMouseDown=this.createTwoChains("onMouseDown"),l.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,i&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=this.createTwoChains("onBlur"));var s=O()(u&&u.props&&u.props.className,a);s&&(l.className=s);var p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},l);Object(m.b)(u)&&(p.ref=Object(m.a)(this.triggerRef,u.ref));var d,h=f.a.cloneElement(u,p);return(e||this.popupRef.current||o)&&(d=f.a.createElement(Qe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(d=null),f.a.createElement(qe.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},h,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(f.a.Component)).contextType=qe,et.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Xe,getDocument:Ze,onPopupVisibleChange:Ye,afterPopupVisibleChange:Ye,onPopupAlign:Ye,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},et)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){var n=t||{},i=n.defaultValue,a=n.value,c=n.onChange,u=n.postState,l=o(r.useState((function(){return void 0!==a?a:void 0!==i?"function"==typeof i?i():i:"function"==typeof e?e():e})),2),s=l[0],f=l[1],p=void 0!==a?a:s;u&&(p=u(p));var d=r.useRef(!0);return r.useEffect((function(){d.current?d.current=!1:void 0===a&&f(a)}),[a]),[p,function(e){f(e),p!==e&&c&&c(e,p)}]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return v}));var r=!("undefined"==typeof window||!window.document||!window.document.createElement);function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var i,a,c,u=(i=r,a="undefined"!=typeof window?window:{},c={animationend:o("Animation","AnimationEnd"),transitionend:o("Transition","TransitionEnd")},i&&("AnimationEvent"in a||delete c.animationend.animation,"TransitionEvent"in a||delete c.transitionend.transition),c),l={};r&&(l=document.createElement("div").style);var s={};function f(e){if(s[e])return s[e];var t=u[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in l)return s[e]=t[i],s[e]}return""}var p=f("animationend"),d=f("transitionend"),h=!(!p||!d);function v(e,t){return e?"object"==typeof e?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:e+"-"+t:null}},function(e,t,n){"use strict";var r=n(0);t.a=function(e,t){var n=Object(r.useRef)(!0);Object(r.useEffect)((function(){if(!n.current)return e();n.current=!1}),t)}},function(e,t,n){"use strict"; -/** @license React v0.19.1 - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r,o,i,a,c;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,l=null,s=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(s,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(s,0))},o=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},a=function(){return!1},c=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,h=window.setTimeout,v=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var y=d.now();t.unstable_now=function(){return d.now()-y}}var b=!1,g=null,O=-1,w=5,j=0;a=function(){return t.unstable_now()>=j},c=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,E=x.port2;x.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();j=e+w;try{g(!0,e)?E.postMessage(null):(b=!1,g=null)}catch(e){throw E.postMessage(null),e}}else b=!1},r=function(e){g=e,b||(b=!0,E.postMessage(null))},o=function(e,n){O=h((function(){e(t.unstable_now())}),n)},i=function(){v(O),O=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<P(o,t)))break e;e[r]=t,e[n]=o,n=r}}function C(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],c=i+1,u=e[c];if(void 0!==a&&0>P(a,n))void 0!==u&&0>P(u,a)?(e[r]=u,e[c]=n,r=c):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>P(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],M=[],N=1,T=null,A=3,R=!1,D=!1,I=!1;function L(e){for(var t=C(M);null!==t;){if(null===t.callback)_(M);else{if(!(t.startTime<=e))break;_(M),t.sortIndex=t.expirationTime,S(k,t)}t=C(M)}}function F(e){if(I=!1,L(e),!D)if(null!==C(k))D=!0,r(z);else{var t=C(M);null!==t&&o(F,t.startTime-e)}}function z(e,n){D=!1,I&&(I=!1,i()),R=!0;var r=A;try{for(L(n),T=C(k);null!==T&&(!(T.expirationTime>n)||e&&!a());){var c=T.callback;if(null!==c){T.callback=null,A=T.priorityLevel;var u=c(T.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?T.callback=u:T===C(k)&&_(k),L(n)}else _(k);T=C(k)}if(null!==T)var l=!0;else{var s=C(M);null!==s&&o(F,s.startTime-n),l=!1}return l}finally{T=null,A=r,R=!1}}function H(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=c;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||R||(D=!0,r(z))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return C(k)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,a){var c=t.unstable_now();if("object"==typeof a&&null!==a){var u=a.delay;u="number"==typeof u&&0<u?c+u:c,a="number"==typeof a.timeout?a.timeout:H(e)}else a=H(e),u=c;return e={id:N++,callback:n,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>c?(e.sortIndex=u,S(M,e),null===C(k)&&e===C(M)&&(I?i():I=!0,o(F,u-c))):(e.sortIndex=a,S(k,e),D||R||(D=!0,r(z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=C(k);return n!==T&&null!==T&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<T.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},function(e,t,n){"use strict";var r=n(392);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(394),o=n(416),i=n(137),a=n(51),c=n(420);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):c(e)}},function(e,t,n){var r=n(395),o=n(415),i=n(234);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(222),o=n(213);e.exports=function(e,t,n,i){var a=n.length,c=a,u=!i;if(null==e)return!c;for(e=Object(e);a--;){var l=n[a];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<c;){var s=(l=n[a])[0],f=e[s],p=l[1];if(u&&l[2]){if(void 0===f&&!(s in e))return!1}else{var d=new r;if(i)var h=i(f,p,s,e,t,d);if(!(void 0===h?o(p,f,3,i,d):h))return!1}}return!0}},function(e,t,n){var r=n(138);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(138),o=n(164),i=n(163);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(222),o=n(231),i=n(407),a=n(410),c=n(258),u=n(51),l=n(199),s=n(210),f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,h,v){var m=u(e),y=u(t),b=m?"[object Array]":c(e),g=y?"[object Array]":c(t),O=(b="[object Arguments]"==b?f:b)==f,w=(g="[object Arguments]"==g?f:g)==f,j=b==g;if(j&&l(e)){if(!l(t))return!1;m=!0,O=!1}if(j&&!O)return v||(v=new r),m||s(e)?o(e,t,n,d,h,v):i(e,t,b,n,d,h,v);if(!(1&n)){var x=O&&p.call(e,"__wrapped__"),E=w&&p.call(t,"__wrapped__");if(x||E){var S=x?e.value():e,C=E?t.value():t;return v||(v=new r),h(S,C,n,d,v)}}return!!j&&(v||(v=new r),a(e,t,n,d,h,v))}},function(e,t,n){var r=n(163),o=n(403),i=n(404);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(117),o=n(375),i=n(158),a=n(231),c=n(408),u=n(409),l=r?r.prototype:void 0,s=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=c;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)return!1;var v=p.get(e);if(v)return v==t;r|=2,p.set(e,t);var m=a(d(e),d(t),r,l,f,p);return p.delete(e),m;case"[object Symbol]":if(s)return s.call(e)==s.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(376),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,c){var u=1&n,l=r(e),s=l.length;if(s!=r(t).length&&!u)return!1;for(var f=s;f--;){var p=l[f];if(!(u?p in t:o.call(t,p)))return!1}var d=c.get(e);if(d&&c.get(t))return d==t;var h=!0;c.set(e,t),c.set(t,e);for(var v=u;++f<s;){var m=e[p=l[f]],y=t[p];if(i)var b=u?i(y,m,p,t,e,c):i(m,y,p,e,t,c);if(!(void 0===b?m===y||a(m,y,n,i,c):b)){h=!1;break}v||(v="constructor"==p)}if(h&&!v){var g=e.constructor,O=t.constructor;g==O||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof O&&O instanceof O||(h=!1)}return c.delete(e),c.delete(t),h}},function(e,t,n){var r=n(88)(n(62),"DataView");e.exports=r},function(e,t,n){var r=n(88)(n(62),"Promise");e.exports=r},function(e,t,n){var r=n(88)(n(62),"Set");e.exports=r},function(e,t,n){var r=n(88)(n(62),"WeakMap");e.exports=r},function(e,t,n){var r=n(233),o=n(152);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(213),o=n(21),i=n(417),a=n(162),c=n(233),u=n(234),l=n(110);e.exports=function(e,t){return a(e)&&c(t)?u(l(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},function(e,t,n){var r=n(418),o=n(419);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(143),o=n(197),i=n(51),a=n(156),c=n(157),u=n(110);e.exports=function(e,t,n){for(var l=-1,s=(t=r(t,e)).length,f=!1;++l<s;){var p=u(t[l]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++l!=s?f:!!(s=null==e?0:e.length)&&c(s)&&a(p,s)&&(i(e)||o(e))}},function(e,t,n){var r=n(235),o=n(421),i=n(162),a=n(110);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t,n){var r=n(201);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(137),o=n(379),i=n(380);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(425),o=n(212),i=n(137),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(232),o=n(202),i=n(235),a=n(209),c=n(428),u=Math.max;e.exports=function(e){if(!e||!e.length)return[];var t=0;return e=r(e,(function(e){if(c(e))return t=u(e.length,t),!0})),a(t,(function(t){return o(e,i(t))}))}},function(e,t,n){var r=n(153),o=n(58);e.exports=function(e){return o(e)&&r(e)}},,function(e,t,n){"use strict";var r=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)).createContext(null);t.default=o},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return ve}));var r,o,i,a,c=n(26),u=n.n(c),l=n(620),s=n.n(l),f=n(621),p=n.n(f),d=n(0),h=n.n(d),v=n(304),m=n.n(v),y="bodyAttributes",b="htmlAttributes",g="titleAttributes",O={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},w=(Object.keys(O).map((function(e){return O[e]})),"charset"),j="cssText",x="href",E="http-equiv",S="innerHTML",C="itemprop",_="name",P="property",k="rel",M="src",N="target",T={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},A="defaultTitle",R="defer",D="encodeSpecialCharacters",I="onChangeClientState",L="titleTemplate",F=Object.keys(T).reduce((function(e,t){return e[T[t]]=t,e}),{}),z=[O.NOSCRIPT,O.SCRIPT,O.STYLE],H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},V=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},W=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},q=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},G=function(e){var t=J(e,O.TITLE),n=J(e,L);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=J(e,A);return t||r||void 0},$=function(e){return J(e,I)||function(){}},Y=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return K({},e,t)}),{})},X=function(e,t){return t.filter((function(e){return void 0!==e[O.BASE]})).map((function(e){return e[O.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},Z=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&re("Helmet: "+e+' should be of type "Array". Instead found type "'+H(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var c=i[a],u=c.toLowerCase();-1===t.indexOf(u)||n===k&&"canonical"===e[n].toLowerCase()||u===k&&"stylesheet"===e[u].toLowerCase()||(n=u),-1===t.indexOf(c)||c!==S&&c!==j&&c!==C||(n=c)}if(!n||!e[n])return!1;var l=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][l]&&(o[n][l]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var c=i[a],u=m()({},r[c],o[c]);r[c]=u}return e}),[]).reverse()},J=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},Q=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){Q(e)}),0)}),ee=function(e){return clearTimeout(e)},te="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Q:global.requestAnimationFrame||Q,ne="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||ee:global.cancelAnimationFrame||ee,re=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},oe=null,ie=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,u=e.onChangeClientState,l=e.scriptTags,s=e.styleTags,f=e.title,p=e.titleAttributes;ue(O.BODY,r),ue(O.HTML,o),ce(f,p);var d={baseTag:le(O.BASE,n),linkTags:le(O.LINK,i),metaTags:le(O.META,a),noscriptTags:le(O.NOSCRIPT,c),scriptTags:le(O.SCRIPT,l),styleTags:le(O.STYLE,s)},h={},v={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(v[e]=d[e].oldTags)})),t&&t(),u(e,h,v)},ae=function(e){return Array.isArray(e)?e.join(""):e},ce=function(e,t){void 0!==e&&document.title!==e&&(document.title=ae(e)),ue(O.TITLE,t)},ue=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-react-helmet"),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),c=0;c<a.length;c++){var u=a[c],l=t[u]||"";n.getAttribute(u)!==l&&n.setAttribute(u,l),-1===o.indexOf(u)&&o.push(u);var s=i.indexOf(u);-1!==s&&i.splice(s,1)}for(var f=i.length-1;f>=0;f--)n.removeAttribute(i[f]);o.length===i.length?n.removeAttribute("data-react-helmet"):n.getAttribute("data-react-helmet")!==a.join(",")&&n.setAttribute("data-react-helmet",a.join(","))}},le=function(e,t){var n=document.head||document.querySelector(O.HEAD),r=n.querySelectorAll(e+"[data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===S)n.innerHTML=t.innerHTML;else if(r===j)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var c=void 0===t[r]?"":t[r];n.setAttribute(r,c)}n.setAttribute("data-react-helmet","true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},se=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[T[n]||n]=e[n],t}),t)},pe=function(e,t,n){switch(e){case O.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})["data-react-helmet"]=!0,o=fe(n,r),[h.a.createElement(O.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=se(n),i=ae(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+q(i,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+q(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case y:case b:return{toComponent:function(){return fe(t)},toString:function(){return se(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})["data-react-helmet"]=!0,r);return Object.keys(t).forEach((function(e){var n=T[e]||e;if(n===S||n===j){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),h.a.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===S||e===j)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+q(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===z.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},de=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,u=e.scriptTags,l=e.styleTags,s=e.title,f=void 0===s?"":s,p=e.titleAttributes;return{base:pe(O.BASE,t,r),bodyAttributes:pe(y,n,r),htmlAttributes:pe(b,o,r),link:pe(O.LINK,i,r),meta:pe(O.META,a,r),noscript:pe(O.NOSCRIPT,c,r),script:pe(O.SCRIPT,u,r),style:pe(O.STYLE,l,r),title:pe(O.TITLE,{title:f,titleAttributes:p},r)}},he=s()((function(e){return{baseTag:X([x,N],e),bodyAttributes:Y(y,e),defer:J(e,R),encode:J(e,D),htmlAttributes:Y(b,e),linkTags:Z(O.LINK,[k,x],e),metaTags:Z(O.META,[_,w,E,P,C],e),noscriptTags:Z(O.NOSCRIPT,[S],e),onChangeClientState:$(e),scriptTags:Z(O.SCRIPT,[M,S],e),styleTags:Z(O.STYLE,[j],e),title:G(e),titleAttributes:Y(g,e)}}),(function(e){oe&&ne(oe),e.defer?oe=te((function(){ie(e,(function(){oe=null}))})):(ie(e),oe=null)}),de)((function(){return null})),ve=(o=he,a=i=function(e){function t(){return B(this,t),W(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!p()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case O.SCRIPT:case O.NOSCRIPT:return{innerHTML:t};case O.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return K({},r,((t={})[n.type]=[].concat(r[n.type]||[],[K({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case O.TITLE:return K({},o,((t={})[r.type]=a,t.titleAttributes=K({},i),t));case O.BODY:return K({},o,{bodyAttributes:K({},i)});case O.HTML:return K({},o,{htmlAttributes:K({},i)})}return K({},o,((n={})[r.type]=K({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=K({},t);return Object.keys(e).forEach((function(t){var r;n=K({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return h.a.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[F[n]||n]=e[n],t}),t)}(U(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case O.LINK:case O.META:case O.NOSCRIPT:case O.SCRIPT:case O.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=U(e,["children"]),r=K({},n);return t&&(r=this.mapChildrenToProps(t,r)),h.a.createElement(o,r)},V(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(h.a.Component),i.propTypes={base:u.a.object,bodyAttributes:u.a.object,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]),defaultTitle:u.a.string,defer:u.a.bool,encodeSpecialCharacters:u.a.bool,htmlAttributes:u.a.object,link:u.a.arrayOf(u.a.object),meta:u.a.arrayOf(u.a.object),noscript:u.a.arrayOf(u.a.object),onChangeClientState:u.a.func,script:u.a.arrayOf(u.a.object),style:u.a.arrayOf(u.a.object),title:u.a.string,titleAttributes:u.a.object,titleTemplate:u.a.string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var e=o.rewind();return e||(e=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);ve.renderStatic=ve.rewind},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return l}));var r=n(6),o=n(72);n(56);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c="RC_TABLE_INTERNAL_COL_DEFINE";function u(e){var t=e.expandable,n=Object(o.a)(e,["expandable"]);return"expandable"in e?a(a({},n),t):n}function l(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(95),o=n(59);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return Object(o.a)(n)?(e.pop(),function(t){return Object(r.a)(e,t,n)}):function(t){return Object(r.a)(e,t)}}},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return c}));n(31),n(71),n(72),n(0),n(56),n(965);function r(e,t){var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function o(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function i(e,t){return"".concat(e,"-").concat(t)}function a(e){return e&&e.type&&e.type.isTreeNode}function c(e){var t={};return Object.keys(e).forEach((function(n){(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n])})),t}},,function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(190),c=n(307),u=function(){var e=(0,r.useContext(a.b).getPrefixCls)("empty-img-default");return r.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),r.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),r.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),r.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),r.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),r.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},l=function(){var e=(0,r.useContext(a.b).getPrefixCls)("empty-img-simple");return r.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))};function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d=r.createElement(u,null),h=r.createElement(l,null),v=function(e){return r.createElement(a.a,null,(function(t){var n=t.getPrefixCls,o=t.direction,a=e.className,u=e.prefixCls,l=e.image,v=void 0===l?d:l,m=e.description,y=e.children,b=e.imageStyle,g=p(e,["className","prefixCls","image","description","children","imageStyle"]);return r.createElement(c.a,{componentName:"Empty"},(function(e){var t,c=n("empty",u),l=void 0!==m?m:e.description,p="string"==typeof l?l:"empty",d=null;return d="string"==typeof v?r.createElement("img",{alt:p,src:v}):v,r.createElement("div",s({className:i()(c,(t={},f(t,"".concat(c,"-normal"),v===h),f(t,"".concat(c,"-rtl"),"rtl"===o),t),a)},g),r.createElement("div",{className:"".concat(c,"-image"),style:b},d),l&&r.createElement("p",{className:"".concat(c,"-description")},l),y&&r.createElement("div",{className:"".concat(c,"-footer")},y))}))}))};v.PRESENTED_IMAGE_DEFAULT=d,v.PRESENTED_IMAGE_SIMPLE=h;t.a=v},function(e,t,n){"use strict";n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"b",(function(){return O})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return j})),n.d(t,"a",(function(){return x}));var r=n(31),o=n(215),i=n(214),a=n(139),c=n(216);var u=n(71),l=n(6),s=n(56),f=n(252);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){Object(l.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function v(e){var t=[];return function e(n,r){n.forEach((function(n){r||!("options"in n)?t.push({key:h(n,t.length),groupOption:r,data:n}):(t.push({key:h(n,t.length),group:!0,data:n}),e(n.options,!0))}))}(e,!1),t}function m(e){var t=d({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(s.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function y(e,t){var n=new Map;return t.forEach((function(e){if(!e.group){var t=e.data;n.set(t.value,t)}})),e.map((function(e){return m(n.get(e))}))}var b=function(e,t){var n,r=t.options,o=t.prevValue,i=t.labelInValue,a=t.optionLabelProp,c=y([e],r)[0],l={value:e},p=Object(f.d)(o);return i&&(n=p.find((function(t){return"object"===Object(u.a)(t)&&"value"in t?t.value===e:t.key===e}))),n&&"object"===Object(u.a)(n)&&"label"in n?(l.label=n.label,c&&"string"==typeof n.label&&"string"==typeof c[a]&&n.label.trim()!==c[a].trim()&&Object(s.a)(!1,"`label` of `value` is not same as `label` in Select options.")):l.label=c&&a in c?c[a]:e,l.key=l.value,l};function g(e){return Object(f.d)(e).join("")}function O(e,t,n){var r,o=n.optionFilterProp,i=n.filterOption,a=[];return!1===i?t:(r="function"==typeof i?i:function(e){return function(t,n){var r=t.toLowerCase();return"options"in n?g(n.label).toLowerCase().includes(r):g(n[e]).toLowerCase().includes(r)&&!n.disabled}}(o),t.forEach((function(t){if("options"in t)if(r(e,t))a.push(t);else{var n=t.options.filter((function(t){return r(e,t)}));n.length&&a.push(d(d({},t),{},{options:n}))}else r(e,m(t))&&a.push(t)})),a)}function w(e,t){if(!t||!t.length)return null;var n=!1;var u=function e(t,u){var l,s=(l=u,Object(o.a)(l)||Object(i.a)(l)||Object(a.a)(l)||Object(c.a)()),f=s[0],p=s.slice(1);if(!f)return[t];var d=t.split(f);return n=n||d.length>1,d.reduce((function(t,n){return[].concat(Object(r.a)(t),Object(r.a)(e(n,p)))}),[]).filter((function(e){return e}))}(e,t);return n?u:null}function j(e,t){return y([e],t)[0].disabled}function x(e,t,n,o){var i=Object(f.d)(t).slice().sort(),a=Object(r.a)(e),c=new Set;return e.forEach((function(e){e.options?e.options.forEach((function(e){c.add(e.value)})):c.add(e.value)})),i.forEach((function(e){var t,r=o?e.value:e;c.has(r)||a.push(o?(t={},Object(l.a)(t,n,e.label),Object(l.a)(t,"value",r),t):{value:r})})),a}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(92);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var c=e.indexOf("#");-1!==c&&(e=e.slice(0,c)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(92),o=n(601),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(484)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(i)})),e.exports=u},function(e,t,n){"use strict";var r=n(92),o=n(602),i=n(481),a=n(604),c=n(607),u=n(608),l=n(485);e.exports=function(e){return new Promise((function(t,s){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",v=e.auth.password||"";p.Authorization="Basic "+btoa(h+":"+v)}var m=a(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),i(m,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?c(d.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};o(t,s,r),d=null}},d.onabort=function(){d&&(s(l("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){s(l("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),s(l(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var y=n(609),b=(e.withCredentials||u(m))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}if("setRequestHeader"in d&&r.forEach(p,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),s(e),d=null)})),void 0===f&&(f=null),d.send(f)}))}},function(e,t,n){"use strict";var r=n(603);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(92);e.exports=function(e,t){t=t||{};var n={},o=["url","method","params","data"],i=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(o,(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(i,(function(o){r.isObject(t[o])?n[o]=r.deepMerge(e[o],t[o]):void 0!==t[o]?n[o]=t[o]:r.isObject(e[o])?n[o]=r.deepMerge(e[o]):void 0!==e[o]&&(n[o]=e[o])})),r.forEach(a,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var c=o.concat(i).concat(a),u=Object.keys(t).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(u,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warning=o,t.note=i,t.resetWarned=function(){r={}},t.call=a,t.warningOnce=c,t.noteOnce=function(e,t){a(i,e,t)},t.default=void 0;var r={};function o(e,t){0}function i(e,t){0}function a(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function c(e,t){a(o,e,t)}var u=c;t.default=u},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resetWarned",{enumerable:!0,get:function(){return o.resetWarned}}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(488));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}t.default=function(e,t,n){(0,o.default)(e,"[antd: ".concat(t,"] ").concat(n))}},,function(e,t,n){var r=n(213);e.exports=function(e,t){return r(e,t)}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(20),o=n.n(r);function i(e){return e instanceof HTMLElement?e:o.a.findDOMNode(e)}},function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&u()}function c(){a(i)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(c,t);o=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),s=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},p=b(0,0,0,0);function d(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=d(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=d(r.width),u=d(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=h(r,"left","right")+i),Math.round(u+a)!==n&&(u-=h(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var l=Math.round(c+i)-t,s=Math.round(u+a)-n;1!==Math.abs(l)&&(c-=l),1!==Math.abs(s)&&(u-=s)}return b(o.left,o.top,c,u)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return o?m(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):v(e):p}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),O=function(e,t){var n,r,o,i,a,c,u,l=(r=(n=t).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(c.prototype),s(u,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),u);s(this,{target:e,contentRect:l})},w=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new O(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),j="undefined"!=typeof WeakMap?new WeakMap:new r,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new w(t,n,this);j.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=j.get(this))[e].apply(t,arguments)}}));var E=void 0!==i.ResizeObserver?i.ResizeObserver:x;t.a=E},function(e,t,n){"use strict";var r=n(6),o=n(72),i=n(71),a=n(0),c=n(4),u=n.n(c),l=n(175),s=n(239);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=a.forwardRef((function(e,t){var n,c,f,d,h=e.prefixCls,v=e.className,m=e.record,y=e.index,b=e.dataIndex,g=e.render,O=e.children,w=e.component,j=void 0===w?"td":w,x=e.colSpan,E=e.rowSpan,S=e.fixLeft,C=e.fixRight,_=e.firstFixLeft,P=e.lastFixLeft,k=e.firstFixRight,M=e.lastFixRight,N=e.appendNode,T=e.additionalProps,A=void 0===T?{}:T,R=e.ellipsis,D=e.align,I=e.rowType,L="".concat(h,"-cell");if(O)f=O;else{var F=Object(s.b)(m,b);if(f=F,g){var z=g(F,m,y);!(d=z)||"object"!==Object(i.a)(d)||Array.isArray(d)||a.isValidElement(d)?f=z:(f=z.children,c=z.props)}}"object"!==Object(i.a)(f)||Array.isArray(f)||a.isValidElement(f)||(f=null),R&&(P||k)&&(f=a.createElement("span",{className:"".concat(L,"-content")},f));var H=c||{},B=H.colSpan,V=H.rowSpan,K=H.style,U=H.className,W=Object(o.a)(H,["colSpan","rowSpan","style","className"]),q=void 0!==B?B:x,G=void 0!==V?V:E;if(0===q||0===G)return null;var $={},Y="number"==typeof S,X="number"==typeof C;Y&&($.position="sticky",$.left=S),X&&($.position="sticky",$.right=C);var Z,J={};D&&(J.textAlign=D);var Q=!0===R?{showTitle:!0}:R;Q&&(Q.showTitle||"header"===I)&&("string"==typeof f||"number"==typeof f?Z=f.toString():a.isValidElement(f)&&"string"==typeof f.props.children&&(Z=f.props.children));var ee,te=p(p(p({title:Z},W),A),{},{colSpan:q&&1!==q?q:null,rowSpan:G&&1!==G?G:null,className:u()(L,v,(n={},Object(r.a)(n,"".concat(L,"-fix-left"),Y),Object(r.a)(n,"".concat(L,"-fix-left-first"),_),Object(r.a)(n,"".concat(L,"-fix-left-last"),P),Object(r.a)(n,"".concat(L,"-fix-right"),X),Object(r.a)(n,"".concat(L,"-fix-right-first"),k),Object(r.a)(n,"".concat(L,"-fix-right-last"),M),Object(r.a)(n,"".concat(L,"-ellipsis"),R),Object(r.a)(n,"".concat(L,"-with-append"),N),n),A.className,U),style:p(p(p(p({},A.style),J),$),K),ref:(ee=j,"string"==typeof ee||Object(l.b)(ee)?t:null)});return a.createElement(j,Object.assign({},te),N,f)}));d.displayName="Cell";var h=a.memo(d,(function(e,t){return!!t.shouldCellUpdate&&!t.shouldCellUpdate(t.record,e.record)}));t.a=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),o=n(35),i=n(34);function a(e){return function(t){return t.lift(new c(e))}}var c=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new u(e),r=Object(i.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n},e}(),u=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),o=n(35),i=n(34);function a(e){return function(t){return t.lift(new c(e))}}var c=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.durationSelector))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return r.__extends(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(i.a)(this,t))&&!n.closed&&this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(e,t,n,r,o){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(35),i=n(34),a={leading:!0,trailing:!1};function c(e,t){return void 0===t&&(t=a),function(n){return n.lift(new u(e,t.leading,t.trailing))}}var u=function(){function e(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.durationSelector,this.leading,this.trailing))},e}(),l=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i.destination=t,i.durationSelector=n,i._leading=r,i._trailing=o,i._hasValue=!1,i}return r.__extends(t,e),t.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},t.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},t.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=Object(i.a)(this,t))},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},t.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=null,t&&this.send()},t.prototype.notifyNext=function(e,t,n,r,o){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),o=n(7);function i(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(e,t,n))}}var a=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.accumulator,this.seed,this.hasSeed))},e}(),c=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return r.__extends(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(372);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o({},r.a.Modal);function a(e){i=e?o(o({},i),e):o({},r.a.Modal)}function c(){return i}},function(e,t,n){"use strict";function r(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");return"function"!=typeof t.componentWillReceiveProps?e:o.a.Profiler?(t.UNSAFE_componentWillReceiveProps=t.componentWillReceiveProps,delete t.componentWillReceiveProps,e):e};function a(e){var t=[];return o.a.Children.forEach(e,(function(e){t.push(e)})),t}function c(e,t){var n=null;return e&&e.forEach((function(e){n||e&&e.key===t&&(n=e)})),n}function u(e,t,n){var r=null;return e&&e.forEach((function(e){if(e&&e.key===t&&e.props[n]){if(r)throw new Error("two child with same key for <rc-animate> children");r=e}})),r}var l=n(20),s=n.n(l),f=n(814),p={isAppearSupported:function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},isEnterSupported:function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},isLeaveSupported:function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},allowAppearCallback:function(e){return e.transitionAppear||e.animation.appear},allowEnterCallback:function(e){return e.transitionEnter||e.animation.enter},allowLeaveCallback:function(e){return e.transitionLeave||e.animation.leave}},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},y=function(e){function t(){return h(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),d(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){p.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){p.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){p.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,r=s.a.findDOMNode(this),o=this.props,i=o.transitionName,a="object"==typeof i;this.stop();var c=function(){n.stopper=null,t()};if((f.b||!o.animation[e])&&i&&o[m[e]]){var u=a?i[e]:i+"-"+e,l=u+"-active";a&&i[e+"Active"]&&(l=i[e+"Active"]),this.stopper=Object(f.a)(r,{name:u,active:l},c)}else this.stopper=o.animation[e](r,c)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(o.a.Component),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var O="rc_animate_"+Date.now();function w(e){var t=e.children;return o.a.isValidElement(t)&&!t.key?o.a.cloneElement(t,{key:O}):t}function j(){}var x=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return E.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:a(w(e))},n.childrenRefs={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),g(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter((function(e){return!!e.props[t]}))),n.forEach((function(t){t&&e.performAppear(t.key)}))}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.nextProps=e;var n=a(w(e)),r=this.props;r.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach((function(e){t.stop(e)}));var i,l,s,f,p=r.showProp,d=this.currentlyAnimatingKeys,h=r.exclusive?a(w(r)):this.state.children,v=[];p?(h.forEach((function(e){var t,r,i,a=e&&c(n,e.key),u=void 0;(u=a&&a.props[p]||!e.props[p]?a:o.a.cloneElement(a||e,(i=!0,(r=p)in(t={})?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t)))&&v.push(u)})),n.forEach((function(e){e&&c(h,e.key)||v.push(e)}))):(i=n,l=[],s={},f=[],h.forEach((function(e){e&&c(i,e.key)?f.length&&(s[e.key]=f,f=[]):f.push(e)})),i.forEach((function(e){e&&Object.prototype.hasOwnProperty.call(s,e.key)&&(l=l.concat(s[e.key])),l.push(e)})),v=l=l.concat(f)),this.setState({children:v}),n.forEach((function(e){var n=e&&e.key;if(!e||!d[n]){var r=e&&c(h,n);if(p){var o=e.props[p];if(r)!u(h,n,p)&&o&&t.keysToEnter.push(n);else o&&t.keysToEnter.push(n)}else r||t.keysToEnter.push(n)}})),h.forEach((function(e){var r=e&&e.key;if(!e||!d[r]){var o=e&&c(n,r);if(p){var i=e.props[p];if(o)!u(n,r,p)&&i&&t.keysToLeave.push(r);else i&&t.keysToLeave.push(r)}else o||t.keysToLeave.push(r)}}))}},{key:"componentDidUpdate",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(e,t){var n=this.props.showProp;return n?u(e,t,n):c(e,t)}},{key:"stop",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:"render",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,r=null;n&&(r=n.map((function(n){if(null==n)return n;if(!n.key)throw new Error("must set key for <rc-animate> children");return o.a.createElement(y,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)})));var i=t.component;if(i){var a=t;return"string"==typeof i&&(a=b({className:t.className,style:t.style},t.componentProps)),o.a.createElement(i,a,r)}return r[0]||null}}]),t}(o.a.Component);x.isAnimate=!0,x.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:j,onEnter:j,onLeave:j,onAppear:j};var E=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var o=a(w(r));e.isValidChildByKey(o,t)?"appear"===n?p.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):p.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r,o,i,c,u=a(w(n));if(e.isValidChildByKey(u,t))e.performEnter(t);else{var l=function(){p.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};r=e.state.children,o=u,i=n.showProp,(c=r.length===o.length)&&r.forEach((function(e,t){var n=o[t];e&&n&&(e&&!n||!e&&n||e.key!==n.key||i&&e.props[i]!==n.props[i])&&(c=!1)})),c?l():e.setState({children:u},l)}}}};t.a=i(x)},function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["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"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o=e(["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"]),i=e(["#text"]),a=Object.freeze||function(e){return e},c=a(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),l=a(["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"]),s=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f=Object.hasOwnProperty,p=Object.setPrototypeOf,d=("undefined"!=typeof Reflect&&Reflect).apply;function h(e,t){p&&p(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=r.toLowerCase();o!==r&&(Object.isFrozen(t)||(t[n]=o),r=o)}e[r]=!0}return e}function v(e){var t={},n=void 0;for(n in e)d(f,e,[n])&&(t[n]=e[n]);return t}d||(d=function(e,t,n){return e.apply(t,n)});var m=Object.seal||function(e){return e},y=m(/\{\{[\s\S]*|[\s\S]*\}\}/gm),b=m(/<%[\s\S]*|[\s\S]*%>/gm),g=m(/^data-[\-\w.\u00B7-\uFFFF]/),O=m(/^aria-[\-\w]+$/),w=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j=m(/^(?:\w+script|data):/i),x=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function S(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var C=("undefined"!=typeof Reflect&&Reflect).apply,_=Array.prototype.slice,P=Object.freeze,k=function(){return"undefined"==typeof window?null:window};C||(C=function(e,t,n){return e.apply(t,n)});var M=function(e,t){if("object"!==(void 0===e?"undefined":E(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k(),f=function(t){return e(t)};if(f.version="2.0.7",f.removed=[],!a||!a.document||9!==a.document.nodeType)return f.isSupported=!1,f;var p=a.document,d=!1,m=!1,N=a.document,T=a.DocumentFragment,A=a.HTMLTemplateElement,R=a.Node,D=a.NodeFilter,I=a.NamedNodeMap,L=void 0===I?a.NamedNodeMap||a.MozNamedAttrMap:I,F=a.Text,z=a.Comment,H=a.DOMParser,B=a.TrustedTypes;if("function"==typeof A){var V=N.createElement("template");V.content&&V.content.ownerDocument&&(N=V.content.ownerDocument)}var K=M(B,p),U=K?K.createHTML(""):"",W=N,q=W.implementation,G=W.createNodeIterator,$=W.getElementsByTagName,Y=W.createDocumentFragment,X=p.importNode,Z={};f.isSupported=q&&void 0!==q.createHTMLDocument&&9!==N.documentMode;var J=y,Q=b,ee=g,te=O,ne=j,re=x,oe=w,ie=null,ae=h({},[].concat(S(t),S(n),S(r),S(o),S(i))),ce=null,ue=h({},[].concat(S(c),S(u),S(l),S(s))),le=null,se=null,fe=!0,pe=!0,de=!1,he=!1,ve=!1,me=!1,ye=!1,be=!1,ge=!1,Oe=!1,we=!1,je=!1,xe=!0,Ee=!0,Se=!1,Ce={},_e=h({},["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"]),Pe=h({},["audio","video","img","source","image"]),ke=null,Me=h({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ne=null,Te=N.createElement("form"),Ae=function(e){Ne&&Ne===e||(e&&"object"===(void 0===e?"undefined":E(e))||(e={}),ie="ALLOWED_TAGS"in e?h({},e.ALLOWED_TAGS):ae,ce="ALLOWED_ATTR"in e?h({},e.ALLOWED_ATTR):ue,ke="ADD_URI_SAFE_ATTR"in e?h(v(Me),e.ADD_URI_SAFE_ATTR):Me,le="FORBID_TAGS"in e?h({},e.FORBID_TAGS):{},se="FORBID_ATTR"in e?h({},e.FORBID_ATTR):{},Ce="USE_PROFILES"in e&&e.USE_PROFILES,fe=!1!==e.ALLOW_ARIA_ATTR,pe=!1!==e.ALLOW_DATA_ATTR,de=e.ALLOW_UNKNOWN_PROTOCOLS||!1,he=e.SAFE_FOR_JQUERY||!1,ve=e.SAFE_FOR_TEMPLATES||!1,me=e.WHOLE_DOCUMENT||!1,ge=e.RETURN_DOM||!1,Oe=e.RETURN_DOM_FRAGMENT||!1,we=e.RETURN_DOM_IMPORT||!1,je=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,xe=!1!==e.SANITIZE_DOM,Ee=!1!==e.KEEP_CONTENT,Se=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,ve&&(pe=!1),Oe&&(ge=!0),Ce&&(ie=h({},[].concat(S(i))),ce=[],!0===Ce.html&&(h(ie,t),h(ce,c)),!0===Ce.svg&&(h(ie,n),h(ce,u),h(ce,s)),!0===Ce.svgFilters&&(h(ie,r),h(ce,u),h(ce,s)),!0===Ce.mathMl&&(h(ie,o),h(ce,l),h(ce,s))),e.ADD_TAGS&&(ie===ae&&(ie=v(ie)),h(ie,e.ADD_TAGS)),e.ADD_ATTR&&(ce===ue&&(ce=v(ce)),h(ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&h(ke,e.ADD_URI_SAFE_ATTR),Ee&&(ie["#text"]=!0),me&&h(ie,["html","head","body"]),ie.table&&(h(ie,["tbody"]),delete le.tbody),P&&P(e),Ne=e)},Re=function(e){f.removed.push({element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=U}},De=function(e,t){try{f.removed.push({attribute:t.getAttributeNode(e),from:t})}catch(e){f.removed.push({attribute:null,from:t})}t.removeAttribute(e)},Ie=function(e){var t=void 0,n=void 0;if(be)e="<remove></remove>"+e;else{var r=e.match(/^[\s]+/);(n=r&&r[0])&&(e=e.slice(n.length))}if(d)try{t=(new H).parseFromString(e,"text/html")}catch(e){}if(m&&h(le,["title"]),!t||!t.documentElement){var o=(t=q.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=K?K.createHTML(e):e}return e&&n&&t.body.insertBefore(N.createTextNode(n),t.body.childNodes[0]||null),$.call(t,me?"html":"body")[0]};f.isSupported&&(function(){try{Ie('<svg><p><textarea><img src="</textarea><img src=x abc=1//">').querySelector("svg img")&&(d=!0)}catch(e){}}(),function(){try{var e=Ie("<x/><title></title><img>");/<\/title/.test(e.querySelector("title").innerHTML)&&(m=!0)}catch(e){}}());var Le=function(e){return G.call(e.ownerDocument||e,e,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,(function(){return D.FILTER_ACCEPT}),!1)},Fe=function(e){return!(e instanceof F||e instanceof z||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof L&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},ze=function(e){return"object"===(void 0===R?"undefined":E(R))?e instanceof R:e&&"object"===(void 0===e?"undefined":E(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},He=function(e,t,n){Z[e]&&Z[e].forEach((function(e){e.call(f,t,n,Ne)}))},Be=function(e){var t=void 0;if(He("beforeSanitizeElements",e,null),Fe(e))return Re(e),!0;var n=e.nodeName.toLowerCase();if(He("uponSanitizeElement",e,{tagName:n,allowedTags:ie}),("svg"===n||"math"===n)&&0!==e.querySelectorAll("p, br").length)return Re(e),!0;if(!ie[n]||le[n]){if(Ee&&!_e[n]&&"function"==typeof e.insertAdjacentHTML)try{var r=e.innerHTML;e.insertAdjacentHTML("AfterEnd",K?K.createHTML(r):r)}catch(e){}return Re(e),!0}return"noscript"===n&&/<\/noscript/i.test(e.innerHTML)||"noembed"===n&&/<\/noembed/i.test(e.innerHTML)?(Re(e),!0):(!he||e.firstElementChild||e.content&&e.content.firstElementChild||!/</g.test(e.textContent)||(f.removed.push({element:e.cloneNode()}),e.innerHTML?e.innerHTML=e.innerHTML.replace(/</g,"<"):e.innerHTML=e.textContent.replace(/</g,"<")),ve&&3===e.nodeType&&(t=(t=(t=e.textContent).replace(J," ")).replace(Q," "),e.textContent!==t&&(f.removed.push({element:e.cloneNode()}),e.textContent=t)),He("afterSanitizeElements",e,null),!1)},Ve=function(e,t,n){if(xe&&("id"===t||"name"===t)&&(n in N||n in Te))return!1;if(pe&&ee.test(t));else if(fe&&te.test(t));else{if(!ce[t]||se[t])return!1;if(ke[t]);else if(oe.test(n.replace(re,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==n.indexOf("data:")||!Pe[e])if(de&&!ne.test(n.replace(re,"")));else if(n)return!1}return!0},Ke=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0;He("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce};for(i=a.length;i--;){var u=t=a[i],l=u.name,s=u.namespaceURI;if(n=t.value.trim(),r=l.toLowerCase(),c.attrName=r,c.attrValue=n,c.keepAttr=!0,He("uponSanitizeAttribute",e,c),n=c.attrValue,"name"===r&&"IMG"===e.nodeName&&a.id)o=a.id,a=C(_,a,[]),De("id",e),De(l,e),a.indexOf(o)>i&&e.setAttribute("id",o.value);else{if("INPUT"===e.nodeName&&"type"===r&&"file"===n&&c.keepAttr&&(ce[r]||!se[r]))continue;"id"===l&&e.setAttribute(l,""),De(l,e)}if(c.keepAttr)if(/svg|math/i.test(e.namespaceURI)&&new RegExp("</("+Object.keys(_e).join("|")+")","i").test(n))De(l,e);else{ve&&(n=(n=n.replace(J," ")).replace(Q," "));var p=e.nodeName.toLowerCase();if(Ve(p,r,n))try{s?e.setAttributeNS(s,l,n):e.setAttribute(l,n),f.removed.pop()}catch(e){}}}He("afterSanitizeAttributes",e,null)}},Ue=function e(t){var n=void 0,r=Le(t);for(He("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)He("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof T&&e(n.content),Ke(n));He("afterSanitizeShadowDOM",t,null)};return f.sanitize=function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!ze(e)){if("function"!=typeof e.toString)throw new TypeError("toString is not a function");if("string"!=typeof(e=e.toString()))throw new TypeError("dirty is not a string, aborting")}if(!f.isSupported){if("object"===E(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof e)return a.toStaticHTML(e);if(ze(e))return a.toStaticHTML(e.outerHTML)}return e}if(ye||Ae(t),f.removed=[],Se);else if(e instanceof R)1===(r=(n=Ie("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!ge&&!ve&&!me&&je&&-1===e.indexOf("<"))return K?K.createHTML(e):e;if(!(n=Ie(e)))return ge?null:U}n&&be&&Re(n.firstChild);for(var u=Le(Se?e:n);o=u.nextNode();)3===o.nodeType&&o===i||Be(o)||(o.content instanceof T&&Ue(o.content),Ke(o),i=o);if(i=null,Se)return e;if(ge){if(Oe)for(c=Y.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return we&&(c=X.call(p,c,!0)),c}var l=me?n.outerHTML:n.innerHTML;return ve&&(l=(l=l.replace(J," ")).replace(Q," ")),K&&je?K.createHTML(l):l},f.setConfig=function(e){Ae(e),ye=!0},f.clearConfig=function(){Ne=null,ye=!1},f.isValidAttribute=function(e,t,n){Ne||Ae({});var r=e.toLowerCase(),o=t.toLowerCase();return Ve(r,o,n)},f.addHook=function(e,t){"function"==typeof t&&(Z[e]=Z[e]||[],Z[e].push(t))},f.removeHook=function(e){Z[e]&&Z[e].pop()},f.removeHooks=function(e){Z[e]&&(Z[e]=[])},f.removeAllHooks=function(){Z={}},f}()}()},,function(e,t,n){"use strict"; -/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case u:case c:case h:return e;default:switch(e=e&&e.$$typeof){case s:case d:case y:case m:case l:return e;default:return t}}case i:return t}}}function x(e){return j(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=s,t.ContextProvider=l,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=y,t.Memo=m,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||j(e)===f},t.isConcurrentMode=x,t.isContextConsumer=function(e){return j(e)===s},t.isContextProvider=function(e){return j(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return j(e)===d},t.isFragment=function(e){return j(e)===a},t.isLazy=function(e){return j(e)===y},t.isMemo=function(e){return j(e)===m},t.isPortal=function(e){return j(e)===i},t.isProfiler=function(e){return j(e)===u},t.isStrictMode=function(e){return j(e)===c},t.isSuspense=function(e){return j(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===u||e===c||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===l||e.$$typeof===s||e.$$typeof===d||e.$$typeof===g||e.$$typeof===O||e.$$typeof===w||e.$$typeof===b)},t.typeOf=j},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(223);t.createActionCreator=r.createActionCreator;var o=n(515);t.createActionCreators=o.createActionCreators;var i=n(516);t.proxyActionCreators=i.proxyActionCreators},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(223),o=n(224);t.createActionCreators=function(e,t){return o.createDefaultActionCreators(r.createActionCreator,e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(223),o=n(360);t.proxyActionCreators=function(e,t){return o.proxyDefaultActionCreators(r.createActionCreator,e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(225);t.createActionCreator=r.createActionCreator;var o=n(518);t.createActionCreators=o.createActionCreators;var i=n(519);t.proxyActionCreators=i.proxyActionCreators},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(225),o=n(224);t.createActionCreators=function(e,t){return o.createDefaultActionCreators(r.createActionCreator,e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(225),o=n(360);t.proxyActionCreators=function(e,t){return o.proxyDefaultActionCreators(r.createActionCreator,e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(226);t.combineUniqueObjects=function(...e){return r.combineObjects(...e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(361);t.proxyCombineUniqueObjects=function(...e){return r.proxyCombineObjects(...e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(177);t.createReducer=function(e,t){return function(n=e,o){return r.hasOwnProperty.call(t,o.type)?t[o.type](n,o):n}}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(616)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1026))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1058))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1129))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.r(t);var r=n(751),o=n(629);n.d(t,"Summary",(function(){return o.a}));var i=n(728);n.d(t,"Column",(function(){return i.a}));var a=n(727);n.d(t,"ColumnGroup",(function(){return a.a}));var c=n(434);n.d(t,"INTERNAL_COL_DEFINE",(function(){return c.a})),t.default=r.b},,function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o);t.a=function(e){var t,n=e.className,o=e.customizeIcon,a=e.customizeIconProps,c=e.onMouseDown,u=e.onClick,l=e.children;return t="function"==typeof o?o(a):o,r.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),c&&c(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},void 0!==t?t:r.createElement("span",{className:i()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},l))}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1148))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r=n(0),o=n(573),i=n(4),a=n.n(i),c=n(190),u=n(584),l=n(745),s=n(86);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},h=function(e,t){var n,i=r.useContext(u.b),h=r.useContext(c.b),v=h.getPrefixCls,m=h.direction,y=r.useRef(),b=Object(l.a)(t,y);r.useEffect((function(){Object(s.a)(!("optionType"in e),"Radio","`optionType` is only support in Radio.Group.")}),[]);var g=e.prefixCls,O=e.className,w=e.children,j=e.style,x=d(e,["prefixCls","className","children","style"]),E=v("radio",g),S=p({},x);i&&(S.name=i.name,S.onChange=function(t){e.onChange&&e.onChange(t),(null==i?void 0:i.onChange)&&i.onChange(t)},S.checked=e.value===i.value,S.disabled=e.disabled||i.disabled);var C=a()(O,(f(n={},"".concat(E,"-wrapper"),!0),f(n,"".concat(E,"-wrapper-checked"),S.checked),f(n,"".concat(E,"-wrapper-disabled"),S.disabled),f(n,"".concat(E,"-wrapper-rtl"),"rtl"===m),n));return r.createElement("label",{className:C,style:j,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},r.createElement(o.default,p({},S,{prefixCls:E,ref:b})),void 0!==w?r.createElement("span",null,w):null)},v=r.forwardRef(h);v.displayName="Radio",v.defaultProps={type:"radio"},t.a=v},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return Z}));var r=n(0),o=n(370),i=n(4),a=n.n(i),c=n(84),u=Object(r.createContext)({inlineCollapsed:!1}),l=n(102);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(m,e);var t,n,i,s=v(m);function m(){var e;return p(this,m),(e=s.apply(this,arguments)).onKeyDown=function(t){e.subMenu.onKeyDown(t)},e.saveSubMenu=function(t){e.subMenu=t},e}return t=m,(n=[{key:"renderTitle",value:function(e){var t=this.props,n=t.icon,o=t.title,i=t.level,a=t.rootPrefixCls;if(!n)return e&&1===i&&o&&"string"==typeof o?r.createElement("div",{className:"".concat(a,"-inline-collapsed-noicon")},o.charAt(0)):o;var c=Object(l.b)(o)&&"span"===o.type;return r.createElement(r.Fragment,null,n,c?o:r.createElement("span",null,o))}},{key:"render",value:function(){var e=this,t=this.props,n=t.rootPrefixCls,i=t.popupClassName;return r.createElement(u.Consumer,null,(function(t){var u=t.inlineCollapsed,l=t.antdMenuTheme;return r.createElement(o.SubMenu,f({},Object(c.default)(e.props,["icon"]),{title:e.renderTitle(u),ref:e.saveSubMenu,popupClassName:a()(n,"".concat(n,"-").concat(l),i)}))}))}}])&&d(t.prototype,n),i&&d(t,i),m}(r.Component);b.contextType=u,b.isSubMenu=1;var g=b,O=n(204),w=n(309),j=n(587);function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(s,e);var t,n,i,c=k(s);function s(){var e;return C(this,s),(e=c.apply(this,arguments)).onKeyDown=function(t){e.menuItem.onKeyDown(t)},e.saveMenuItem=function(t){e.menuItem=t},e.renderItem=function(t){var n=t.siderCollapsed,i=e.props,c=i.level,l=i.className,s=i.children,f=i.rootPrefixCls,p=e.props,d=p.title,h=p.icon,v=p.danger,m=T(p,["title","icon","danger"]);return r.createElement(u.Consumer,null,(function(t){var i,u=t.inlineCollapsed,p=t.direction,y=d;void 0===d?y=1===c?s:"":!1===d&&(y="");var b={title:y};n||u||(b.title=null,b.visible=!1);var g=Object(O.a)(s).length;return r.createElement(w.a,E({},b,{placement:"rtl"===p?"left":"right",overlayClassName:"".concat(f,"-inline-collapsed-tooltip")}),r.createElement(o.Item,E({},m,{className:a()(l,(i={},S(i,"".concat(f,"-item-danger"),v),S(i,"".concat(f,"-item-only-child"),1===(h?g+1:g)),i)),title:d,ref:e.saveMenuItem}),h,e.renderItemChildren(u)))}))},e}return t=s,(n=[{key:"renderItemChildren",value:function(e){var t=this.props,n=t.icon,o=t.children,i=t.level,a=t.rootPrefixCls;return!n||Object(l.b)(o)&&"span"===o.type?o&&e&&1===i&&"string"==typeof o?r.createElement("div",{className:"".concat(a,"-inline-collapsed-noicon")},o.charAt(0)):o:r.createElement("span",null,o)}},{key:"render",value:function(){return r.createElement(j.a.Consumer,null,this.renderItem)}}])&&_(t.prototype,n),i&&_(t,i),s}(r.Component);A.isMenuItem=!0;var R=n(190),D=n(86),I=function(){return{height:0,opacity:0}},L=function(e){return{height:e.scrollHeight,opacity:1}};function F(e,t){return"height"===t.propertyName}var z={motionName:"ant-motion-collapse",onAppearStart:I,onEnterStart:I,onAppearActive:L,onEnterActive:L,onLeaveStart:function(e){return{height:e.offsetHeight}},onLeaveActive:I,onAppearEnd:F,onEnterEnd:F,onLeaveEnd:F,motionDeadline:500};function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(){return(B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t,n){return t&&K(e.prototype,t),n&&K(e,n),e}function W(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $(this,n)}}function $(e,t){return!t||"object"!==H(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=function(e){W(n,e);var t=G(n);function n(e){var i;return V(this,n),(i=t.call(this,e)).renderMenu=function(e){var t,n,c,l=e.getPopupContainer,s=e.getPrefixCls,f=e.direction,p=i.props,d=p.prefixCls,h=p.className,v=p.theme,m={horizontal:{motionName:"slide-up"},inline:z,other:{motionName:"zoom-big"}},y=s("menu",d),b=a()(h,"".concat(y,"-").concat(v),(t={},n="".concat(y,"-inline-collapsed"),c=i.getInlineCollapsed(),n in t?Object.defineProperty(t,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):t[n]=c,t));return r.createElement(u.Provider,{value:{inlineCollapsed:i.getInlineCollapsed()||!1,antdMenuTheme:v,direction:f}},r.createElement(o.default,B({getPopupContainer:l},i.props,{className:b,prefixCls:y,direction:f,defaultMotions:m})))},Object(D.a)(!("inlineCollapsed"in e&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(D.a)(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),i}return U(n,[{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"render",value:function(){return r.createElement(R.a,null,this.renderMenu)}}]),n}(r.Component);X.defaultProps={className:"",theme:"light",focusable:!1};var Z=function(e){W(n,e);var t=G(n);function n(){return V(this,n),t.apply(this,arguments)}return U(n,[{key:"render",value:function(){var e=this;return r.createElement(j.a.Consumer,null,(function(t){return r.createElement(X,B({},e.props,t))}))}}]),n}(r.Component);Z.Divider=o.Divider,Z.Item=A,Z.SubMenu=g,Z.ItemGroup=o.ItemGroup},function(e,t,n){e.exports=n(1014)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3);r.__exportStar(n(966),t),r.__exportStar(n(968),t),r.__exportStar(n(969),t)},function(e,t,n){"use strict";var r=n(975),o=n(976),i=n(817);e.exports={formats:i,parse:o,stringify:r}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){var r=n(1017),o=n(1018),i=n(870),a=n(1019);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t,n){var r=n(567),o=n(706);e.exports=n(525)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(615),o=n(874),i=n(771),a=Object.defineProperty;t.f=n(525)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(877),o=n(772);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(775)("wks"),o=n(709),i=n(489).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(1214),o=n(1215),i=n(870),a=n(1216);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.replaceElement=c,t.cloneElement=function(e,t){return c(e,e,t)},t.isValidElement=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=o.isValidElement;function c(e,t,n){return a(e)?o.cloneElement(e,"function"==typeof n?n():n):t}t.isValidElement=a},function(e,t,n){"use strict";n.r(t);var r=n(947),o=n.n(r),i=n(189),a=n.n(i),c=n(577),u=n.n(c),l=n(578),s=n.n(l),f=n(579),p=n.n(f),d=n(0),h=n.n(d),v=n(4),m=n.n(v),y=function(e){function t(n){u()(this,t);var r=s()(this,e.call(this,n));r.handleChange=function(e){var t=r.props,n=t.disabled,o=t.onChange;n||("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:a()({},r.props,{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var o="checked"in n?n.checked:n.defaultChecked;return r.state={checked:o},r}return p()(t,e),t.getDerivedStateFromProps=function(e,t){return"checked"in e?a()({},t,{checked:e.checked}):null},t.prototype.focus=function(){this.input.focus()},t.prototype.blur=function(){this.input.blur()},t.prototype.render=function(){var e,t=this.props,n=t.prefixCls,r=t.className,i=t.style,c=t.name,u=t.id,l=t.type,s=t.disabled,f=t.readOnly,p=t.tabIndex,d=t.onClick,v=t.onFocus,y=t.onBlur,b=t.autoFocus,g=t.value,O=t.required,w=o()(t,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","autoFocus","value","required"]),j=Object.keys(w).reduce((function(e,t){return"aria-"!==t.substr(0,5)&&"data-"!==t.substr(0,5)&&"role"!==t||(e[t]=w[t]),e}),{}),x=this.state.checked,E=m()(n,r,((e={})[n+"-checked"]=x,e[n+"-disabled"]=s,e));return h.a.createElement("span",{className:E,style:i},h.a.createElement("input",a()({name:c,id:u,type:l,required:O,readOnly:f,disabled:s,tabIndex:p,className:n+"-input",checked:!!x,onClick:d,onFocus:v,onBlur:y,onChange:this.handleChange,autoFocus:b,ref:this.saveInput,value:g},j)),h.a.createElement("span",{className:n+"-inner"}))},t}(d.Component);y.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){}},t.default=y},function(e,t,n){"use strict";n.r(t);var r=n(72),o=n(6),i=n(43),a=n(44),c=n(50),u=n(49),l=n(25),s=n(0),f=n.n(s),p=n(20),d=n.n(p),h=n(506),v=n(575),m=n(4),y=n.n(m),b=n(732),g=n(733);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var x=0,E=Date.now();function S(){var e=x;return x+=1,"rcNotification_".concat(E,"_").concat(e)}var C=function(e){Object(c.a)(n,e);var t=j(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){t.key=t.key||S();var r=t.key,o=e.props.maxCount;e.setState((function(e){var i=e.notices,a=i.map((function(e){return e.notice.key})).indexOf(r),c=i.concat();return-1!==a?c.splice(a,1,{notice:t,holderCallback:n}):(o&&i.length>=o&&(t.updateKey=c[0].notice.updateKey||c[0].notice.key,c.shift()),c.push({notice:t,holderCallback:n})),{notices:c}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){return e.notice.key!==t}))}}))},e}return Object(a.a)(n,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,r=n.prefixCls,o=n.className,i=n.closeIcon,a=n.style,c=t.map((function(n,o){var a=n.notice,c=n.holderCallback,u=Boolean(o===t.length-1&&a.updateKey),l=a.updateKey?a.updateKey:a.key,s=Object(v.a)(e.remove.bind(e,a.key),a.onClose),p=w(w(w({prefixCls:r,closeIcon:i},a),a.props),{},{key:l,update:u,onClose:s,onClick:a.onClick,children:a.content});return c?f.a.createElement("div",{key:l,className:"".concat(r,"-hook-holder"),ref:function(t){void 0!==l&&(t?(e.hookRefs.set(l,t),c(t,p)):e.hookRefs.delete(l))}}):f.a.createElement(b.a,Object.assign({},p))}));return f.a.createElement("div",{className:y()(r,o),style:a},f.a.createElement(h.a,{transitionName:this.getTransitionName()},c))}}]),n}(s.Component);C.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},C.newInstance=function(e,t){var n=e||{},o=n.getContainer,i=Object(r.a)(n,["getContainer"]),a=document.createElement("div");o?o().appendChild(a):document.body.appendChild(a);var c=!1;d.a.render(f.a.createElement(C,Object.assign({},i,{ref:function(e){c||(c=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){d.a.unmountComponentAtNode(a),a.parentNode&&a.parentNode.removeChild(a)},useNotification:function(){return Object(g.a)(e)}}))}})),a)};var _=C;t.default=_},function(e,t,n){"use strict";function r(){var e=[].slice.call(arguments,0);return 1===e.length?e[0]:function(){for(var t=0;t<e.length;t++)e[t]&&e[t].apply&&e[t].apply(this,arguments)}}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(879),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(1082)),o=a(n(1086)),i=a(n(879));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";var r=n(0),o=n(373);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.a=function(){var e=i(Object(r.useState)({}),2),t=e[0],n=e[1];return Object(r.useEffect)((function(){var e=o.a.subscribe((function(e){n(e)}));return function(){return o.a.unsubscribe(e)}}),[]),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function o(e,t){return 0===e.indexOf(t)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return Object.keys(e).forEach((function(i){o(i,"aria-")?n[i]=e[i]:t||!r.includes(i)&&!o(i,"data-")||(n[i]=e[i])})),n}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1125))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1142))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=r.createContext(null),i=o.Provider;t.b=o},,function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var r=n(0),o=n(4),i=n.n(o),a=n(84),c=n(190);var u=function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),new Error("unreachable case: ".concat(JSON.stringify(t)))};function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},p=function(e){return r.createElement(c.a,null,(function(t){var n,o=t.getPrefixCls,a=t.direction,c=e.prefixCls,p=e.size,d=e.className,h=f(e,["prefixCls","size","className"]),v=o("btn-group",c),m="";switch(p){case"large":m="lg";break;case"small":m="sm";break;case"middle":case void 0:break;default:console.warn(new u(p))}var y=i()(v,(s(n={},"".concat(v,"-").concat(m),m),s(n,"".concat(v,"-rtl"),"rtl"===a),n),d);return r.createElement("div",l({},h,{className:y}))}))},d=n(757),h=n(171),v=n(86),m=n(148),y=n(306),b=n(174),g=n.n(b),O=function(){return{width:0,opacity:0,transform:"scale(0)"}},w=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}};function j(e){var t=e.prefixCls,n=!!e.loading;return e.existIcon?r.createElement("span",{className:"".concat(t,"-loading-icon")},r.createElement(g.a,null)):r.createElement(y.a,{visible:n,motionName:"".concat(t,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:O,onAppearActive:w,onEnterStart:O,onEnterActive:w,onLeaveStart:w,onLeaveActive:O},(function(e,n){var o=e.className,a=e.style;return r.createElement("span",{className:"".concat(t,"-loading-icon"),style:a,ref:n},r.createElement(g.a,{className:i()(o)}))}))}var x=n(102);function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e,t)||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 _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},M=/^[\u4e00-\u9fa5]{2}$/,N=M.test.bind(M);function T(e){return"text"===e||"link"===e}function A(e,t){var n=!1,o=[];return r.Children.forEach(e,(function(e){var t=P(e),r="string"===t||"number"===t;if(n&&r){var i=o.length-1,a=o[i];o[i]="".concat(a).concat(e)}else o.push(e);n=r})),r.Children.map(o,(function(e){return function(e,t){if(null!=e){var n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&N(e.props.children)?Object(x.a)(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?(N(e)&&(e=e.split("").join(n)),r.createElement("span",null,e)):e}}(e,t)}))}Object(h.a)("default","primary","ghost","dashed","link","text"),Object(h.a)("circle","circle-outline","round"),Object(h.a)("submit","button","reset");function R(e){return"danger"===e?{danger:!0}:{type:e}}var D=function(e,t){var n,o,u=e.loading,l=e.prefixCls,s=e.type,f=e.danger,p=e.shape,h=e.size,y=e.className,b=e.children,g=e.icon,O=e.ghost,w=e.block,x=k(e,["loading","prefixCls","type","danger","shape","size","className","children","icon","ghost","block"]),_=r.useContext(m.b),M=C(r.useState(!!u),2),R=M[0],D=M[1],I=C(r.useState(!1),2),L=I[0],F=I[1],z=r.useContext(c.b),H=z.getPrefixCls,B=z.autoInsertSpaceInButton,V=z.direction,K=t||r.createRef(),U=r.useRef(),W=function(){return 1===r.Children.count(b)&&!g&&!T(s)};o="object"===P(u)&&u.delay?u.delay||!0:!!u,r.useEffect((function(){clearTimeout(U.current),"number"==typeof o?U.current=window.setTimeout((function(){D(o)}),o):D(o)}),[o]),r.useEffect((function(){!function(){if(K&&K.current&&!1!==B){var e=K.current.textContent;W()&&N(e)?L||F(!0):L&&F(!1)}}()}),[K]);var q=function(t){var n=e.onClick;R||n&&n(t)};Object(v.a)(!("string"==typeof g&&g.length>2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(g,"` at https://ant.design/components/icon")),Object(v.a)(!(O&&T(s)),"Button","`link` or `text` button can't be a `ghost` button.");var G=H("btn",l),$=!1!==B,Y="";switch(h||_){case"large":Y="lg";break;case"small":Y="sm"}var X=R?"loading":g,Z=i()(G,y,(S(n={},"".concat(G,"-").concat(s),s),S(n,"".concat(G,"-").concat(p),p),S(n,"".concat(G,"-").concat(Y),Y),S(n,"".concat(G,"-icon-only"),!b&&0!==b&&X),S(n,"".concat(G,"-background-ghost"),O&&!T(s)),S(n,"".concat(G,"-loading"),R),S(n,"".concat(G,"-two-chinese-chars"),L&&$),S(n,"".concat(G,"-block"),w),S(n,"".concat(G,"-dangerous"),!!f),S(n,"".concat(G,"-rtl"),"rtl"===V),n)),J=g&&!R?g:r.createElement(j,{existIcon:!!g,prefixCls:G,loading:!!R}),Q=b||0===b?A(b,W()&&$):null,ee=Object(a.default)(x,["htmlType","loading"]);if(void 0!==ee.href)return r.createElement("a",E({},ee,{className:Z,onClick:q,ref:K}),J,Q);var te=x,ne=te.htmlType,re=k(te,["htmlType"]),oe=r.createElement("button",E({},Object(a.default)(re,["loading"]),{type:ne,className:Z,onClick:q,ref:K}),J,Q);return T(s)?oe:r.createElement(d.a,null,oe)},I=r.forwardRef(D);I.displayName="Button",I.defaultProps={loading:!1,ghost:!1,block:!1,htmlType:"button"},I.Group=p,I.__ANT_BUTTON=!0;t.b=I},function(e,t,n){"use strict";n.d(t,"a",(function(){return M})),n.d(t,"b",(function(){return A}));var r=n(0),o=n(4),i=n.n(o),a=n(84),c=n(803),u=n.n(c),l=n(385),s=n.n(l),f=n(528),p=n.n(f),d=n(630),h=n(190),v=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t&&O(e.prototype,t),n&&O(e,n),e}function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _,P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},k={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},M=r.createContext({}),N=(_=0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _+=1,"".concat(e).concat(_)}),T=function(e){j(n,e);var t=E(n);function n(e){var o,c,l;return g(this,n),(o=t.call(this,e)).responsiveHandler=function(e){o.setState({below:e.matches});var t=o.props.onBreakpoint;t&&t(e.matches),o.state.collapsed!==e.matches&&o.setCollapsed(e.matches,"responsive")},o.setCollapsed=function(e,t){"collapsed"in o.props||o.setState({collapsed:e});var n=o.props.onCollapse;n&&n(e,t)},o.toggle=function(){var e=!o.state.collapsed;o.setCollapsed(e,"clickTrigger")},o.renderSider=function(e){var t,n=e.getPrefixCls,c=o.props,l=c.prefixCls,f=c.className,d=c.theme,h=c.collapsible,m=c.reverseArrow,g=c.trigger,O=c.style,w=c.width,j=c.collapsedWidth,x=c.zeroWidthTriggerStyle,E=P(c,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle"]),S=n("layout-sider",l),C=Object(a.default)(E,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),_=o.state.collapsed?j:w,k=v(_)?"".concat(_,"px"):String(_),M=0===parseFloat(String(j||0))?r.createElement("span",{onClick:o.toggle,className:"".concat(S,"-zero-width-trigger ").concat(S,"-zero-width-trigger-").concat(m?"right":"left"),style:x},r.createElement(u.a,null)):null,N={expanded:m?r.createElement(s.a,null):r.createElement(p.a,null),collapsed:m?r.createElement(p.a,null):r.createElement(s.a,null)}[o.state.collapsed?"collapsed":"expanded"],T=null!==g?M||r.createElement("div",{className:"".concat(S,"-trigger"),onClick:o.toggle,style:{width:k}},g||N):null,A=b(b({},O),{flex:"0 0 ".concat(k),maxWidth:k,minWidth:k,width:k}),R=i()(f,S,"".concat(S,"-").concat(d),(y(t={},"".concat(S,"-collapsed"),!!o.state.collapsed),y(t,"".concat(S,"-has-trigger"),h&&null!==g&&!M),y(t,"".concat(S,"-below"),!!o.state.below),y(t,"".concat(S,"-zero-width"),0===parseFloat(k)),t));return r.createElement("aside",b({className:R},C,{style:A}),r.createElement("div",{className:"".concat(S,"-children")},o.props.children),h||o.state.below&&M?T:null)},o.uniqueId=N("ant-sider-"),"undefined"!=typeof window&&(c=window.matchMedia),c&&e.breakpoint&&e.breakpoint in k&&(o.mql=c("(max-width: ".concat(k[e.breakpoint],")"))),l="collapsed"in e?e.collapsed:e.defaultCollapsed,o.state={collapsed:l,below:!1},o}return w(n,[{key:"componentDidMount",value:function(){this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),this.props.siderHook&&this.props.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){this.mql&&this.mql.removeListener(this.responsiveHandler),this.props.siderHook&&this.props.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var e=this.state.collapsed,t=this.props.collapsedWidth;return r.createElement(M.Provider,{value:{siderCollapsed:e,collapsedWidth:t}},r.createElement(h.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(e){return"collapsed"in e?{collapsed:e.collapsed}:null}}]),n}(r.Component);T.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var A=function(e){j(n,e);var t=E(n);function n(){return g(this,n),t.apply(this,arguments)}return w(n,[{key:"render",value:function(){var e=this;return r.createElement(d.a.Consumer,null,(function(t){return r.createElement(T,b({},t,e.props))}))}}]),n}(r.Component)},function(e,t,n){"use strict";e.exports=n(390)},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkParent=void 0,t.checkParent=function(e){if(!e)return void console.error(new Error("react-resize-reporter: empty parent element"));switch(e.tagName){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"menuitem":case"meta":case"param":case"source":case"track":case"wbr":case"script":case"style":case"textarea":case"title":console.error(new Error("react-resize-reporter: Unsupported parent tag name "+e.tagName.toLowerCase()+"."+e.className.replace(/\s+/,".")+" . Change the tag or wrap it in a supported tag(e.g. div)."))}const t=window.getComputedStyle(e);t&&"static"===t.getPropertyValue("position")&&console.warn(new Error("react-resize-reporter: The 'position' CSS property of element "+e.tagName.toLowerCase()+"."+e.className.replace(/\s+/,".")+" should not be 'static'."))}},,,,,function(e,t,n){"use strict";var r=n(92),o=n(480),i=n(597),a=n(486);function c(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var u=c(n(483));u.Axios=i,u.create=function(e){return c(a(u.defaults,e))},u.Cancel=n(487),u.CancelToken=n(610),u.isCancel=n(482),u.all=function(e){return Promise.all(e)},u.spread=n(611),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(92),o=n(481),i=n(598),a=n(599),c=n(486);function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=c(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,o){return this.request(r.merge(o||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(92);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(92),o=n(600),i=n(482),a=n(483);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(92);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(92);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(485);e.exports=function(e,t,n){var o=n.config.validateStatus;!o||o(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(605),o=n(606);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(92),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(92);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(92);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var c=[];c.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(487);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},function(e,t,n){var r=n(489),o=n(524),i=n(873),a=n(566),c=n(526),u=function(e,t,n){var l,s,f,p=e&u.F,d=e&u.G,h=e&u.S,v=e&u.P,m=e&u.B,y=e&u.W,b=d?o:o[t]||(o[t]={}),g=b.prototype,O=d?r:h?r[t]:(r[t]||{}).prototype;for(l in d&&(n=t),n)(s=!p&&O&&void 0!==O[l])&&c(b,l)||(f=s?O[l]:n[l],b[l]=d&&"function"!=typeof O[l]?n[l]:m&&s?i(f,r):y&&O[l]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((b.virtual||(b.virtual={}))[l]=f,e&u.R&&g&&!g[l]&&a(g,l,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(568);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(246),o=n(203);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var c=-1,u=t.length;++c<u;){var l=t[c],s=i?i(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),a?o(n,l,s):r(n,l,s)}return n}},function(e,t,n){"use strict";var r=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.getPathValue=function(e,t){if(!t&&"number"!=typeof t)return e;for(var n=i(t),r=e,o=0;o<n.length;o+=1){if(!r)return null;var a=n[o];r=r[a]}return r},t.getColumnsKey=function(e){var t=[],n={};return e.forEach((function(e){for(var r=e||{},o=r.key,a=r.dataIndex,c=o||i(a).join("-")||"RC_TABLE_KEY";n[c];)c="".concat(c,"_next");n[c]=!0,t.push(c)})),t},t.mergeObject=function(){var e={};function t(e,n){n&&Object.keys(n).forEach((function(r){var i=n[r];i&&"object"===(0,o.default)(i)?(e[r]=e[r]||{},t(e[r],i)):e[r]=i}))}for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.forEach((function(n){t(e,n)})),e},t.validateValue=function(e){return null!=e};var o=r(n(523));function i(e){return null==e?[]:Array.isArray(e)?e:[e]}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SizeContextProvider=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=o.createContext(void 0);t.SizeContextProvider=function(e){var t=e.children,n=e.size;return o.createElement(a.Consumer,null,(function(e){return o.createElement(a.Provider,{value:n||e},t)}))};var c=a;t.default=c},function(e,t,n){"use strict";var r,o=n(0),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,l=[];function s(){u=e(l.map((function(e){return e.props}))),f.canUseDOM?t(u):n&&(u=n(u))}var f=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return u},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=u;return u=void 0,l=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){l.push(this),s()},a.componentDidUpdate=function(){s()},a.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),s()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",c),f}}},function(e,t){var n="undefined"!=typeof Element,r="function"==typeof Map,o="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,t){try{return function e(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var c,u,l,s;if(Array.isArray(t)){if((c=t.length)!=a.length)return!1;for(u=c;0!=u--;)if(!e(t[u],a[u]))return!1;return!0}if(r&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(s=t.entries();!(u=s.next()).done;)if(!a.has(u.value[0]))return!1;for(s=t.entries();!(u=s.next()).done;)if(!e(u.value[1],a.get(u.value[0])))return!1;return!0}if(o&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(s=t.entries();!(u=s.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((c=t.length)!=a.length)return!1;for(u=c;0!=u--;)if(t[u]!==a[u])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((c=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(u=c;0!=u--;)if(!Object.prototype.hasOwnProperty.call(a,l[u]))return!1;if(n&&t instanceof Element)return!1;for(u=c;0!=u--;)if(("_owner"!==l[u]&&"__v"!==l[u]&&"__o"!==l[u]||!t.$$typeof)&&!e(t[l[u]],a[l[u]]))return!1;return!0}return t!=t&&a!=a}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1030))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1036))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1038))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1040))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1151))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},,function(e,t,n){"use strict";n.r(t);var r=n(6),o=n(28),i=n(72),a=n(0),c=n(386),u=n(4),l=n.n(u),s={adjustX:1,adjustY:1},f=[0,0],p={topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:f},topCenter:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:f},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:f},bottomCenter:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:f},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:f}};var d=a.forwardRef((function(e,t){var n=e.arrow,u=void 0!==n&&n,s=e.prefixCls,f=void 0===s?"rc-dropdown":s,d=e.transitionName,h=e.animation,v=e.align,m=e.placement,y=void 0===m?"bottomLeft":m,b=e.placements,g=void 0===b?p:b,O=e.getPopupContainer,w=e.showAction,j=e.hideAction,x=e.overlayClassName,E=e.overlayStyle,S=e.visible,C=e.trigger,_=void 0===C?["hover"]:C,P=Object(i.a)(e,["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"]),k=a.useState(),M=Object(o.a)(k,2),N=M[0],T=M[1],A="visible"in e?S:N,R=a.useRef(null);a.useImperativeHandle(t,(function(){return R.current}));var D,I,L,F,z,H,B=function(){var t=e.overlay;return"function"==typeof t?t():t},V=function(t){var n=e.onOverlayClick,r=B().props;T(!1),n&&n(t),r.onClick&&r.onClick(t)},K=function(){var e=B(),t={prefixCls:"".concat(f,"-menu"),onClick:V};return"string"==typeof e.type&&delete t.prefixCls,a.createElement(a.Fragment,null,u&&a.createElement("div",{className:"".concat(f,"-arrow")}),a.cloneElement(e,t))},U=j;return U||-1===_.indexOf("contextMenu")||(U=["click"]),a.createElement(c.a,Object.assign({},P,{prefixCls:f,ref:R,popupClassName:l()(x,Object(r.a)({},"".concat(f,"-show-arrow"),u)),popupStyle:E,builtinPlacements:g,action:_,showAction:w,hideAction:U||[],popupPlacement:y,popupAlign:v,popupTransitionName:d,popupAnimation:h,popupVisible:A,stretch:(z=e.minOverlayWidthMatchTrigger,H=e.alignPoint,("minOverlayWidthMatchTrigger"in e?z:!H)?"minWidth":""),popup:"function"==typeof e.overlay?K:K(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;T(t),"function"==typeof n&&n(t)},getPopupContainer:O}),(I=e.children,L=I.props?I.props:{},F=l()(L.className,void 0!==(D=e.openClassName)?D:"".concat(f,"-open")),N&&I?a.cloneElement(I,{className:F}):I))}));t.default=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(185),i=n(498);t.b=function(e){var t=e.children,n=r.useContext(o.a).prefixCls;return r.createElement("tfoot",{className:"".concat(n,"-summary")},t)};var a={Cell:function(e){var t=e.className,n=e.index,a=e.children,c=e.colSpan,u=e.rowSpan,l=r.useContext(o.a),s=l.prefixCls,f=l.fixedInfoList[n];return r.createElement(i.a,Object.assign({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,render:function(){return{children:a,props:{colSpan:c,rowSpan:u}}}},f))},Row:function(e){return r.createElement("tr",Object.assign({},e))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n(0),o=n(4),i=n.n(o),a=n(190);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=r.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function j(e){var t=e.suffixCls,n=e.tagName,o=e.displayName;return function(e){var i;return(i=function(o){v(c,o);var i=y(c);function c(){var o;return p(this,c),(o=i.apply(this,arguments)).renderComponent=function(i){var a=i.getPrefixCls,c=o.props.prefixCls,u=a(t,c);return r.createElement(e,f({prefixCls:u,tagName:n},o.props))},o}return h(c,[{key:"render",value:function(){return r.createElement(a.a,null,this.renderComponent)}}]),c}(r.Component)).displayName=o,i}}var x=function(e){var t=e.prefixCls,n=e.className,o=e.children,a=e.tagName,c=O(e,["prefixCls","className","children","tagName"]),u=i()(t,n);return r.createElement(a,f({className:u},c),o)},E=function(e){v(n,e);var t=y(n);function n(){var e;return p(this,n),(e=t.apply(this,arguments)).state={siders:[]},e.renderComponent=function(t){var n,o=t.direction,a=e.props,c=a.prefixCls,u=a.className,l=a.children,p=a.hasSider,d=a.tagName,h=O(a,["prefixCls","className","children","hasSider","tagName"]),v=i()(c,(s(n={},"".concat(c,"-has-sider"),"boolean"==typeof p?p:e.state.siders.length>0),s(n,"".concat(c,"-rtl"),"rtl"===o),n),u);return r.createElement(w.Provider,{value:{siderHook:e.getSiderHook()}},r.createElement(d,f({className:v},h),l))},e}return h(n,[{key:"getSiderHook",value:function(){var e=this;return{addSider:function(t){e.setState((function(e){return{siders:[].concat(u(e.siders),[t])}}))},removeSider:function(t){e.setState((function(e){return{siders:e.siders.filter((function(e){return e!==t}))}}))}}}},{key:"render",value:function(){return r.createElement(a.a,null,this.renderComponent)}}]),n}(r.Component),S=j({suffixCls:"layout",tagName:"section",displayName:"Layout"})(E),C=j({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(x),_=j({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(x),P=j({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(x);S.Header=C,S.Footer=_,S.Content=P,t.b=S},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(0),o=n(4),i=n.n(o),a=n(741),c=n(190);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function g(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(y,e);var t,n,o,v=h(y);function y(){var e;return f(this,y),(e=v.apply(this,arguments)).renderCol=function(t){var n,o=t.getPrefixCls,c=t.direction,f=m(e).props,p=f.prefixCls,d=f.span,h=f.order,v=f.offset,y=f.push,O=f.pull,w=f.className,j=f.children,x=f.flex,E=f.style,S=b(f,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=o("col",p),_={};["xs","sm","md","lg","xl","xxl"].forEach((function(e){var t,n={},r=f[e];"number"==typeof r?n.span=r:"object"===s(r)&&(n=r||{}),delete S[e],_=l(l({},_),(u(t={},"".concat(C,"-").concat(e,"-").concat(n.span),void 0!==n.span),u(t,"".concat(C,"-").concat(e,"-order-").concat(n.order),n.order||0===n.order),u(t,"".concat(C,"-").concat(e,"-offset-").concat(n.offset),n.offset||0===n.offset),u(t,"".concat(C,"-").concat(e,"-push-").concat(n.push),n.push||0===n.push),u(t,"".concat(C,"-").concat(e,"-pull-").concat(n.pull),n.pull||0===n.pull),u(t,"".concat(C,"-rtl"),"rtl"===c),t))}));var P=i()(C,(u(n={},"".concat(C,"-").concat(d),void 0!==d),u(n,"".concat(C,"-order-").concat(h),h),u(n,"".concat(C,"-offset-").concat(v),v),u(n,"".concat(C,"-push-").concat(y),y),u(n,"".concat(C,"-pull-").concat(O),O),n),w,_);return r.createElement(a.a.Consumer,null,(function(e){var t=e.gutter,n=l({},E);return t&&(n=l(l(l({},t[0]>0?{paddingLeft:t[0]/2,paddingRight:t[0]/2}:{}),t[1]>0?{paddingTop:t[1]/2,paddingBottom:t[1]/2}:{}),n)),x&&(n.flex=g(x)),r.createElement("div",l({},S,{style:n,className:P}),j)}))},e}return t=y,(n=[{key:"render",value:function(){return r.createElement(c.a,null,this.renderCol)}}])&&p(t.prototype,n),o&&p(t,o),y}(r.Component)},,function(e,t,n){"use strict";n.r(t),n.d(t,"Option",(function(){return x})),n.d(t,"OptGroup",(function(){return S}));var r=n(43),o=n(44),i=n(50),a=n(49),c=n(25),u=n(0),l=n.n(u),s=n(6),f=n(72),p=n(28),d=n(37),h=n(581),v=n(740),m=n(4),y=n.n(m),b=n(962),g=n(532),O=u.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,o=e.flattenOptions,i=e.childrenAsData,a=e.values,c=e.searchValue,l=e.multiple,m=e.defaultActiveFirstOption,O=e.height,w=e.itemHeight,j=e.notFoundContent,x=e.open,E=e.menuItemSelectedIcon,S=e.virtual,C=e.onSelect,_=e.onToggleOpen,P=e.onActiveValue,k=e.onScroll,M=e.onMouseEnter,N="".concat(n,"-item"),T=Object(v.a)((function(){return o}),[x,o],(function(e,t){return t[0]&&e[1]!==t[1]})),A=u.useRef(null),R=function(e){e.preventDefault()},D=function(e){A.current&&A.current.scrollTo({index:e})},I=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=T.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=T[o],a=i.group,c=i.data;if(!a&&!c.disabled)return o}return-1},L=u.useState((function(){return I(0)})),F=Object(p.a)(L,2),z=F[0],H=F[1],B=function(e){H(e);var t=T[e];t?P(t.data.value,e):P(null,-1)};u.useEffect((function(){B(!1!==m?I(0):-1)}),[T.length,c]),u.useEffect((function(){var e=setTimeout((function(){if(!l&&x&&1===a.size){var e=Array.from(a)[0],t=T.findIndex((function(t){return t.data.value===e}));B(t),D(t)}}));return function(){return clearTimeout(e)}}),[x]);var V=function(e){void 0!==e&&C(e,{selected:!a.has(e)}),l||_(!1)};if(u.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case d.a.UP:case d.a.DOWN:var n=0;if(t===d.a.UP?n=-1:t===d.a.DOWN&&(n=1),0!==n){var r=I(z+n,n);D(r),B(r)}break;case d.a.ENTER:var o=T[z];o&&!o.data.disabled?V(o.data.value):V(void 0),x&&e.preventDefault();break;case d.a.ESC:_(!1)}},onKeyUp:function(){},scrollTo:function(e){D(e)}}})),0===T.length)return u.createElement("div",{role:"listbox",id:"".concat(r,"_list"),className:"".concat(N,"-empty"),onMouseDown:R},j);function K(e){var t=T[e];if(!t)return null;var n=t.data||{},o=n.value,c=n.label,l=n.children,s=Object(h.a)(n,!0),f=i?l:c;return t?u.createElement("div",Object.assign({"aria-label":"string"==typeof f?f:null},s,{key:e,role:"option",id:"".concat(r,"_list_").concat(e),"aria-selected":a.has(o)}),o):null}return u.createElement(u.Fragment,null,u.createElement("div",{role:"listbox",id:"".concat(r,"_list"),style:{height:0,width:0,overflow:"hidden"}},K(z-1),K(z),K(z+1)),u.createElement(b.a,{itemKey:"key",ref:A,data:T,height:O,itemHeight:w,fullHeight:!1,onMouseDown:R,onScroll:k,virtual:S,onMouseEnter:M},(function(e,t){var n,r=e.group,o=e.groupOption,c=e.data,l=c.label,p=c.key;if(r)return u.createElement("div",{className:y()(N,"".concat(N,"-group"))},void 0!==l?l:p);var d=c.disabled,h=c.value,v=c.title,m=c.children,b=c.style,O=c.className,w=Object(f.a)(c,["disabled","value","title","children","style","className"]),j=a.has(h),x="".concat(N,"-option"),S=y()(N,x,O,(n={},Object(s.a)(n,"".concat(x,"-grouped"),o),Object(s.a)(n,"".concat(x,"-active"),z===t&&!d),Object(s.a)(n,"".concat(x,"-disabled"),d),Object(s.a)(n,"".concat(x,"-selected"),j),n)),C=i?m:l,_=!E||"function"==typeof E||j;return u.createElement("div",Object.assign({},w,{"aria-selected":j,className:S,title:v,onMouseMove:function(){z===t||d||B(t)},onClick:function(){d||V(h)},style:b}),u.createElement("div",{className:"".concat(x,"-content")},C||h),u.isValidElement(E)||j,_&&u.createElement(g.a,{className:"".concat(N,"-option-state"),customizeIcon:E,customizeIconProps:{isSelected:j}},j?"✓":null))})))}));O.displayName="OptionList";var w=O,j=function(){return null};j.isSelectOption=!0;var x=j,E=function(){return null};E.isSelectOptGroup=!0;var S=E,C=n(204);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e){var t=e.key,n=e.props,r=n.children,o=n.value;return P({key:t,value:void 0!==o?o:t,children:r},Object(f.a)(n,["children","value"]))}function M(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(C.a)(e).map((function(e,n){if(!u.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,a=i.children,c=Object(f.a)(i,["children"]);return t||!r?k(e):P(P({key:"__RC_SELECT_GRP__".concat(null===o?n:o,"__"),label:o},c),{},{options:M(a)})})).filter((function(e){return e}))}var N=n(441),T=n(961),A=n(71),R=n(56),D=n(252);var I=function(e){var t=e.mode,n=e.options,r=e.children,o=e.backfill,i=e.allowClear,a=e.placeholder,c=e.getInputElement,u=e.showSearch,s=e.onSearch,f=e.defaultOpen,p=e.autoFocus,d=e.labelInValue,h=e.value,v=e.inputValue,m=e.optionLabelProp,y="multiple"===t||"tags"===t,b=void 0!==u?u:y||"combobox"===t,g=n||M(r);if(Object(R.a)("tags"!==t||g.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),"tags"===t||"combobox"===t){var O=g.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)}));Object(R.a)(!O,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(R.a)("combobox"!==t||!m,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(R.a)("combobox"===t||!o,"`backfill` only works with `combobox` mode."),Object(R.a)("combobox"===t||!c,"`getInputElement` only work with `combobox` mode."),Object(R.b)("combobox"!==t||!c||!i||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),s&&!b&&"combobox"!==t&&"tags"!==t&&Object(R.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(R.b)(!f||p,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=h){var w=Object(D.d)(h);Object(R.a)(!d||w.every((function(e){return"object"===Object(A.a)(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(R.a)(!y||Array.isArray(h),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var j=null;Object(C.a)(r).some((function(e){if(!l.a.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!Object(C.a)(e.props.children).every((function(t){return!(l.a.isValidElement(t)&&e.type&&!t.type.isSelectOption)||(j=t.type,!1)})):(j=t,!0))})),j&&Object(R.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(j.displayName||j.name||j,"`.")),Object(R.a)(void 0===v,"`inputValue` is deprecated, please use `searchValue` instead.")}};function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}var F=Object(T.a)({prefixCls:"rc-select",components:{optionList:w},convertChildrenToData:M,flattenOptions:N.d,getLabeledValue:N.e,filterOptions:N.b,isValueDisabled:N.g,findValueOption:N.c,warningProps:I,fillOptionsWithMissingValue:N.a}),z=function(e){Object(i.a)(n,e);var t=L(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).selectRef=l.a.createRef(),e.focus=function(){e.selectRef.current.focus()},e.blur=function(){e.selectRef.current.blur()},e}return Object(o.a)(n,[{key:"render",value:function(){return l.a.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),n}(l.a.Component);z.Option=x,z.OptGroup=S;var H=z;t.default=H},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7);function i(){}var a=n(45);function c(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,r,o){var c=e.call(this,t)||this;return c._tapNext=i,c._tapError=i,c._tapComplete=i,c._tapError=r||i,c._tapComplete=o||i,Object(a.a)(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||i,c._tapError=n.error||i,c._tapComplete=n.complete||i),c}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a)},function(e,t,n){var r;e.exports=(r=r||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},i=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=o.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(i=0;i<o;i+=4)t[r+i>>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){t=t;var n=987654321,r=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},i=0;i<t;i+=4){var c=o(4294967296*(n||e.random()));n=987654071*c(),r.push(4294967296*c()|0)}return new a.init(r,t)}}),c=r.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},l=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},s=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=s.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,c=o/(4*i),u=(c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0))*i,l=e.min(4*u,o);if(u){for(var s=0;s<u;s+=i)this._doProcessBlock(r,s);var f=r.splice(0,u);n.sigBytes-=l}return new a.init(f,l)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),p=(o.Hasher=f.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math),r)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3),o=n(59),i=n(54),a=n(35),c=n(34),u=n(99),l={};function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null,r=null;return Object(o.a)(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&Object(i.a)(e[0])&&(e=e[0]),Object(u.a)(e,r).lift(new f(n))}var f=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new p(e,this.resultSelector))},e}(),p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.__extends(t,e),t.prototype._next=function(e){this.values.push(l),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(Object(c.a)(this,r,r,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,o){var i=this.values,a=i[n],c=this.toRespond?a===l?--this.toRespond:this.toRespond:0;i[n]=t,0===c&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(a.a)},function(e,t,n){"use strict";var r=n(36),o=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.warning=function(e,t){(0,l.default)(e,"[@ant-design/icons] ".concat(t))},t.isIconDefinition=function(e){return"object"===(0,a.default)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,a.default)(e.icon)||"function"==typeof e.icon)},t.normalizeAttrs=d,t.generate=function e(t,n,r){if(!r)return u.default.createElement(t.tag,p({key:n},d(t.attrs)),(t.children||[]).map((function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})));return u.default.createElement(t.tag,p(p({key:n},d(t.attrs)),r),(t.children||[]).map((function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})))},t.getSecondaryColor=function(e){return(0,c.generate)(e)[0]},t.normalizeTwoToneColors=function(e){if(!e)return[];return Array.isArray(e)?e:[e]},t.useInsertStyles=t.iconStyles=t.svgBaseProps=void 0;var i=o(n(227)),a=o(n(523)),c=n(1021),u=r(n(0)),l=o(n(488)),s=n(1024);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t}),{})}t.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var h="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";t.iconStyles=h;var v=!1;t.useInsertStyles=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;(0,u.useEffect)((function(){v||((0,s.insertCss)(e,{prepend:!0}),v=!0)}),[])}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(876),o=n(776);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},,,,,,,,function(e,t,n){"use strict";var r=n(36),o=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(227)),a=o(n(381)),c=o(n(523)),u=r(n(0)),l=o(n(4)),s=n(1222),f=n(618);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=u.forwardRef((function(e,t){var n,r,o,p,h=e.prefixCls,v=e.className,m=e.record,y=e.index,b=e.dataIndex,g=e.render,O=e.children,w=e.component,j=void 0===w?"td":w,x=e.colSpan,E=e.rowSpan,S=e.fixLeft,C=e.fixRight,_=e.firstFixLeft,P=e.lastFixLeft,k=e.firstFixRight,M=e.lastFixRight,N=e.appendNode,T=e.additionalProps,A=void 0===T?{}:T,R=e.ellipsis,D=e.align,I=e.rowType,L="".concat(h,"-cell");if(O)o=O;else{var F=(0,f.getPathValue)(m,b);if(o=F,g){var z=g(F,m,y);!(p=z)||"object"!==(0,c.default)(p)||Array.isArray(p)||u.isValidElement(p)?o=z:(o=z.children,r=z.props)}}"object"!==(0,c.default)(o)||Array.isArray(o)||u.isValidElement(o)||(o=null),R&&(P||k)&&(o=u.createElement("span",{className:"".concat(L,"-content")},o));var H=r||{},B=H.colSpan,V=H.rowSpan,K=H.style,U=H.className,W=(0,a.default)(H,["colSpan","rowSpan","style","className"]),q=void 0!==B?B:x,G=void 0!==V?V:E;if(0===q||0===G)return null;var $={},Y="number"==typeof S,X="number"==typeof C;Y&&($.position="sticky",$.left=S),X&&($.position="sticky",$.right=C);var Z,J={};D&&(J.textAlign=D);var Q=!0===R?{showTitle:!0}:R;Q&&(Q.showTitle||"header"===I)&&("string"==typeof o||"number"==typeof o?Z=o.toString():u.isValidElement(o)&&"string"==typeof o.props.children&&(Z=o.props.children));var ee,te=d(d(d({title:Z},W),A),{},{colSpan:q&&1!==q?q:null,rowSpan:G&&1!==G?G:null,className:(0,l.default)(L,v,(n={},(0,i.default)(n,"".concat(L,"-fix-left"),Y),(0,i.default)(n,"".concat(L,"-fix-left-first"),_),(0,i.default)(n,"".concat(L,"-fix-left-last"),P),(0,i.default)(n,"".concat(L,"-fix-right"),X),(0,i.default)(n,"".concat(L,"-fix-right-first"),k),(0,i.default)(n,"".concat(L,"-fix-right-last"),M),(0,i.default)(n,"".concat(L,"-ellipsis"),R),(0,i.default)(n,"".concat(L,"-with-append"),N),n),A.className,U),style:d(d(d(d({},A.style),J),$),K),ref:(ee=j,"string"==typeof ee||(0,s.supportRef)(ee)?t:null)});return u.createElement(j,Object.assign({},te),N,o)}));h.displayName="Cell";var v=u.memo(h,(function(e,t){return!!t.shouldCellUpdate&&!t.shouldCellUpdate(t.record,e.record)}));t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tupleNum=t.tuple=void 0;t.tuple=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t};t.tupleNum=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(3),o=n(91),i=n(8),a=n(7),c=n(13);function u(){return function(e){return e.lift(new l(e))}}var l=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new s(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.__extends(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(a.a),f=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new c.a).add(this.source.subscribe(new d(this.getSubject(),this))),e.closed&&(this._connection=null,e=c.a.EMPTY)),e},t.prototype.refCount=function(){return u()(this)},t}(i.a),p=function(){var e=f.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),d=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.__extends(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(o.b);a.a;var h=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(e);return o.add(t.subscribe(r)),o},e}();function v(){return new o.a}function m(){return function(e){return u()((t=v,function(e){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return e.lift(new h(r,n));var o=Object.create(e,p);return o.source=e,o.subjectFactory=r,o})(e));var t,n}}},,,,,,,function(e,t,n){"use strict";t.a=function(e){return null}},function(e,t,n){"use strict";t.a=function(e){return null}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1004))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1008))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(866))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(6),o=n(43),i=n(44),a=n(50),c=n(49),u=n(25),l=n(0),s=n.n(l),f=n(20),p=n.n(f),d=n(4),h=n.n(d);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var m=function(e){Object(a.a)(n,e);var t=v(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props.onClose;n&&n()},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.update)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.className,i=t.closable,a=t.closeIcon,c=t.style,u=t.onClick,l=t.children,f=t.holder,d="".concat(n,"-notice"),v=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),m=s.a.createElement("div",Object.assign({className:h()(d,o,Object(r.a)({},"".concat(d,"-closable"),i)),style:c,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:u},v),s.a.createElement("div",{className:"".concat(d,"-content")},l),i?s.a.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(d,"-close")},a||s.a.createElement("span",{className:"".concat(d,"-close-x")})):null);return f?p.a.createPortal(m,f):m}}]),n}(l.Component);m.defaultProps={onClose:function(){},duration:1.5,style:{right:"50%"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(31),o=n(28),i=n(0),a=n(732);function c(e){var t=i.useRef({}),n=i.useState([]),c=Object(o.a)(n,2),u=c[0],l=c[1];return[function(n){e.add(n,(function(e,n){var o=n.key;if(e&&!t.current[o]){var c=i.createElement(a.a,Object.assign({},n,{holder:e}));t.current[o]=c,l((function(e){return[].concat(Object(r.a)(e),[c])}))}}))},i.createElement(i.Fragment,null,u)]}},function(e,t,n){"use strict";t.a={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"}},function(e,t,n){"use strict";var r=n(0),o=Object(r.createContext)(void 0);t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),o=n.n(r),i=n(20),a=n.n(i);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(i,e);var t,n,r,o=f(i);function i(){return u(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"componentDidMount",value:function(){this.createContainer()}},{key:"componentDidUpdate",value:function(e){var t=this.props.didUpdate;t&&t(e)}},{key:"componentWillUnmount",value:function(){this.removeContainer()}},{key:"createContainer",value:function(){this._container=this.props.getContainer(),this.forceUpdate()}},{key:"removeContainer",value:function(){this._container&&this._container.parentNode.removeChild(this._container)}},{key:"render",value:function(){return this._container?a.a.createPortal(this.props.children,this._container):null}}])&&l(t.prototype,n),r&&l(t,r),i}(o.a.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={adjustX:1,adjustY:1},o=[0,0],i={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:o}}},function(e,t,n){"use strict";var r;function o(e){if("undefined"==typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top=0,o.left=0,o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),r=i-a}return r}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1115))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},function(e,t,n){"use strict";var r=n(0),o=Object(r.createContext)({});t.a=o},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(84),c=n(806),u=n.n(c),l=n(190),s=n(171),f=n(102);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=(Object(s.a)("small","default","large"),null);var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(s,e);var t,n,o,c=y(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=c.call(this,e)).debouncifyUpdateSpinning=function(e){var n=(e||t.props).delay;n&&(t.cancelExistingSpin(),t.updateSpinning=u()(t.originalUpdateSpinning,n))},t.updateSpinning=function(){var e=t.props.spinning;t.state.spinning!==e&&t.setState({spinning:e})},t.renderSpin=function(e){var n,o=e.getPrefixCls,c=e.direction,u=t.props,l=u.prefixCls,s=u.className,p=u.size,v=u.tip,m=u.wrapperClassName,y=u.style,b=O(u,["prefixCls","className","size","tip","wrapperClassName","style"]),g=t.state.spinning,j=o("spin",l),x=i()(j,(h(n={},"".concat(j,"-sm"),"small"===p),h(n,"".concat(j,"-lg"),"large"===p),h(n,"".concat(j,"-spinning"),g),h(n,"".concat(j,"-show-text"),!!v),h(n,"".concat(j,"-rtl"),"rtl"===c),n),s),E=Object(a.default)(b,["spinning","delay","indicator"]),S=r.createElement("div",d({},E,{style:y,className:x}),function(e,t){var n=t.indicator,o="".concat(e,"-dot");return null===n?null:Object(f.b)(n)?Object(f.a)(n,{className:i()(n.props.className,o)}):Object(f.b)(w)?Object(f.a)(w,{className:i()(w.props.className,o)}):r.createElement("span",{className:i()(o,"".concat(e,"-dot-spin"))},r.createElement("i",{className:"".concat(e,"-dot-item")}),r.createElement("i",{className:"".concat(e,"-dot-item")}),r.createElement("i",{className:"".concat(e,"-dot-item")}),r.createElement("i",{className:"".concat(e,"-dot-item")}))}(j,t.props),v?r.createElement("div",{className:"".concat(j,"-text")},v):null);if(t.isNestedPattern()){var C=i()("".concat(j,"-container"),h({},"".concat(j,"-blur"),g));return r.createElement("div",d({},E,{className:i()("".concat(j,"-nested-loading"),m)}),g&&r.createElement("div",{key:"loading"},S),r.createElement("div",{className:C,key:"container"},t.props.children))}return S};var n=e.spinning,o=function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,e.delay);return t.state={spinning:n&&!o},t.originalUpdateSpinning=t.updateSpinning,t.debouncifyUpdateSpinning(e),t}return t=s,o=[{key:"setDefaultIndicator",value:function(e){w=e}}],(n=[{key:"componentDidMount",value:function(){this.updateSpinning()}},{key:"componentDidUpdate",value:function(){this.debouncifyUpdateSpinning(),this.updateSpinning()}},{key:"componentWillUnmount",value:function(){this.cancelExistingSpin()}},{key:"cancelExistingSpin",value:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()}},{key:"isNestedPattern",value:function(){return!(!this.props||!this.props.children)}},{key:"render",value:function(){return r.createElement(l.a,null,this.renderSpin)}}])&&v(t.prototype,n),o&&v(t,o),s}(r.Component);j.defaultProps={spinning:!0,size:"default",wrapperClassName:""},t.a=j},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1144))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r=n(534),o=n(808),i=n(807),a=r.a;a.Button=i.a,a.Group=o.a,t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(0);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){"function"==typeof e?e(t):"object"===o(e)&&e&&"current"in e&&(e.current=t)}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){i(t,e)}))}}function c(e){var t=r.useRef();return r.useEffect((function(){t.current=e}),[e]),t.current}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1153))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},,function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1201))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(31),o=n(6),i=n(72),a=n(0),c=(n(56),n(204)),u=n(434);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){return Object(c.a)(e).filter((function(e){return a.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=s({key:t},Object(i.a)(n,["children"]));return r&&(o.children=f(r)),o}))}function p(e){return e.reduce((function(e,t){var n=t.fixed,o=!0===n?"left":n,i=t.children;return i&&i.length>0?[].concat(Object(r.a)(e),Object(r.a)(p(i).map((function(e){return s({fixed:o},e)})))):[].concat(Object(r.a)(e),[s(s({},t),{},{fixed:o})])}),[])}t.b=function(e,t){var n=e.prefixCls,r=e.columns,c=e.children,l=e.expandable,d=e.expandedKeys,h=e.getRowKey,v=e.onTriggerExpand,m=e.expandIcon,y=e.rowExpandable,b=e.expandIconColumnIndex,g=e.direction,O=e.expandRowByClick,w=a.useMemo((function(){return r||f(c)}),[r,c]),j=a.useMemo((function(){if(l){var e,t=b||0,r=w[t],i=(e={},Object(o.a)(e,u.a,{className:"".concat(n,"-expand-icon-col")}),Object(o.a)(e,"title",""),Object(o.a)(e,"fixed",r?r.fixed:null),Object(o.a)(e,"className","".concat(n,"-row-expand-icon-cell")),Object(o.a)(e,"render",(function(e,t,r){var o=h(t,r),i=d.has(o),c=!y||y(t),u=m({prefixCls:n,expanded:i,expandable:c,record:t,onExpand:v});return O?a.createElement("span",{onClick:function(e){return e.stopPropagation()}},u):u})),e),c=w.slice();return t>=0&&c.splice(t,0,i),c}return w}),[l,w,h,d,m,g]),x=a.useMemo((function(){var e=j;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,j,g]),E=a.useMemo((function(){return"rtl"===g?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),s({fixed:n},Object(i.a)(e,["fixed"]))}))}(p(x)):p(x)}),[x,g]);return[x,E]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return X}));var r=n(6),o=n(31),i=n(71),a=n(28),c=n(0),u=n(4),l=n.n(u),s=n(229),f=n.n(s),p=n(56),d=n(237),h=n(738),v=n(727),m=n(728),y=n(72),b=n(498),g=n(185);function O(e,t,n,r,o){var i,a,c=n[e]||{},u=n[t]||{};"left"===c.fixed?i=r.left[e]:"right"===u.fixed&&(a=r.right[t]);var l=!1,s=!1,f=!1,p=!1,d=n[t+1],h=n[e-1];if("rtl"===o){if(void 0!==i)p=!(h&&"left"===h.fixed);else if(void 0!==a){f=!(d&&"right"===d.fixed)}}else if(void 0!==i){l=!(d&&"left"===d.fixed)}else if(void 0!==a){s=!(h&&"right"===h.fixed)}return{fixLeft:i,fixRight:a,lastFixLeft:l,firstFixRight:s,lastFixRight:f,firstFixLeft:p}}var w=n(239);function j(e){var t,n=e.cells,r=e.stickyOffsets,o=e.flattenColumns,i=e.rowComponent,a=e.cellComponent,u=e.onHeaderRow,l=e.index,s=c.useContext(g.a),f=s.prefixCls,p=s.direction;u&&(t=u(n.map((function(e){return e.column})),l));var d=Object(w.a)(n.map((function(e){return e.column})));return c.createElement(i,Object.assign({},t),n.map((function(e,t){var n,i=e.column,u=O(e.colStart,e.colEnd,o,r,p);return i&&i.onHeaderCell&&(n=e.column.onHeaderCell(i)),c.createElement(b.a,Object.assign({},e,{ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:f,key:d[t]},u,{additionalProps:n,rowType:"header"}))})))}j.displayName="HeaderRow";var x=j;var E=function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,i=c.useContext(g.a),a=i.prefixCls,u=i.getComponent,l=c.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r,a=n.map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,c=n.children;return c&&c.length>0&&(a=e(c,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}));return a}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o<n;o+=1)r(o);return t}(n)}),[n]),s=u(["header","wrapper"],"thead"),f=u(["header","row"],"tr"),p=u(["header","cell"],"th");return c.createElement(s,{className:"".concat(a,"-thead")},l.map((function(e,n){return c.createElement(x,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:f,cellComponent:p,onHeaderRow:o,index:n})})))},S=n(434);var C=function(e){for(var t=e.colWidths,n=e.columns,r=[],o=!1,i=(e.columCount||n.length)-1;i>=0;i-=1){var a=t[i],u=n&&n[i],l=u&&u[S.a];(a||l||o)&&(r.unshift(c.createElement("col",Object.assign({key:i,style:{width:a,minWidth:a}},l))),o=!0)}return c.createElement("colgroup",null,r)};function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=function(e){for(var t=e.columns,n=e.flattenColumns,r=e.colWidths,i=e.columCount,a=e.stickyOffsets,u=e.direction,l=Object(y.a)(e,["columns","flattenColumns","colWidths","columCount","stickyOffsets","direction"]),s=c.useContext(g.a),f=s.prefixCls,p=s.scrollbarSize,d=n[n.length-1],h={fixed:d?d.fixed:null,onHeaderCell:function(){return{className:"".concat(f,"-cell-scrollbar")}}},v=c.useMemo((function(){return p?[].concat(Object(o.a)(t),[h]):t}),[p,t]),m=c.useMemo((function(){return p?[].concat(Object(o.a)(n),[h]):n}),[p,n]),b=c.useMemo((function(){var e=a.right,t=a.left;return P(P({},a),{},{left:"rtl"===u?[].concat(Object(o.a)(t.map((function(e){return e+p}))),[0]):t,right:"rtl"===u?e:[].concat(Object(o.a)(e.map((function(e){return e+p}))),[0])})}),[p,a]),O=[],w=0;w<i;w+=1)O[w]=r[w];var j=!r.every((function(e){return!e}));return c.createElement("table",{style:{tableLayout:"fixed",visibility:j?null:"hidden"}},c.createElement(C,{colWidths:[].concat(Object(o.a)(r),[p]),columCount:i+1,columns:m}),c.createElement(E,Object.assign({},l,{stickyOffsets:b,columns:v,flattenColumns:m})))},M=c.createContext(null);var N=function(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.fixHeader,a=e.fixColumn,u=e.horizonScroll,l=e.className,s=e.expanded,f=e.componentWidth,p=e.colSpan,d=c.useContext(g.a).scrollbarSize;return c.useMemo((function(){var e=n;return a&&(e=c.createElement("div",{style:{width:f-(i?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},e)),c.createElement(r,{className:l,style:{display:s?null:"none"}},c.createElement(b.a,{component:o,prefixCls:t,colSpan:p},e))}),[n,r,i,u,l,s,f,p,d])};function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e){var t=e.className,n=e.style,r=e.record,o=e.index,i=e.rowKey,u=e.getRowKey,s=e.rowExpandable,f=e.expandedKeys,p=e.onRow,d=e.indent,h=void 0===d?0:d,v=e.rowComponent,m=e.cellComponent,y=e.childrenColumnName,O=c.useContext(g.a),j=O.prefixCls,x=O.fixedInfoList,E=c.useContext(M),S=E.fixHeader,C=E.fixColumn,_=E.horizonScroll,P=E.componentWidth,k=E.flattenColumns,T=E.expandableType,D=E.expandRowByClick,I=E.onTriggerExpand,L=E.rowClassName,F=E.expandedRowClassName,z=E.indentSize,H=E.expandIcon,B=E.expandedRowRender,V=E.expandIconColumnIndex,K=c.useState(!1),U=Object(a.a)(K,2),W=U[0],q=U[1],G=f&&f.has(e.recordKey);c.useEffect((function(){G&&q(!0)}),[G]);var $,Y="row"===T&&(!s||s(r)),X="nest"===T,Z=y&&r&&r[y],J=Y||X;p&&($=p(r,o));var Q;"string"==typeof L?Q=L:"function"==typeof L&&(Q=L(r,o,h));var ee,te,ne=Object(w.a)(k),re=c.createElement(v,Object.assign({},$,{"data-row-key":i,className:l()(t,"".concat(j,"-row"),"".concat(j,"-row-level-").concat(h),Q,$&&$.className),style:A(A({},n),$?$.style:null),onClick:function(e){if(D&&J&&I(r,e),$&&$.onClick){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(t=$).onClick.apply(t,[e].concat(o))}}}),k.map((function(e,t){var n,i,a=e.render,u=e.dataIndex,l=e.className,s=ne[t],f=x[t];return t===(V||0)&&X&&(n=c.createElement(c.Fragment,null,c.createElement("span",{style:{paddingLeft:"".concat(z*h,"px")},className:"".concat(j,"-row-indent indent-level-").concat(h)}),H({prefixCls:j,expanded:G,expandable:Z,record:r,onExpand:I}))),e.onCell&&(i=e.onCell(r,o)),c.createElement(b.a,Object.assign({className:l,ellipsis:e.ellipsis,align:e.align,component:m,prefixCls:j,key:s,record:r,index:o,dataIndex:u,render:a,shouldCellUpdate:e.shouldCellUpdate},f,{appendNode:n,additionalProps:i}))})));if(Y&&(W||G)){var oe=B(r,o,h+1,G),ie=F&&F(r,o,h);ee=c.createElement(N,{expanded:G,className:l()("".concat(j,"-expanded-row"),"".concat(j,"-expanded-row-level-").concat(h+1),ie),prefixCls:j,fixHeader:S,fixColumn:C,horizonScroll:_,component:v,componentWidth:P,cellComponent:m,colSpan:k.length},oe)}return Z&&G&&(te=(r[y]||[]).map((function(t,n){var r=u(t,n);return c.createElement(R,Object.assign({},e,{key:r,rowKey:r,record:t,recordKey:r,index:n,indent:h+1}))}))),c.createElement(c.Fragment,null,re,ee,te)}R.displayName="BodyRow";var D=R,I=c.createContext(null);var L=c.memo((function(e){var t=e.data,n=e.getRowKey,r=e.measureColumnWidth,o=e.expandedKeys,i=e.onRow,a=e.rowExpandable,u=e.emptyNode,l=e.childrenColumnName,s=c.useContext(I).onColumnResize,f=c.useContext(g.a),p=f.prefixCls,h=f.getComponent,v=c.useContext(M),m=v.fixHeader,y=v.horizonScroll,b=v.flattenColumns,O=v.componentWidth;return c.useMemo((function(){var e,f=h(["body","wrapper"],"tbody"),v=h(["body","row"],"tr"),g=h(["body","cell"],"td");e=t.length?t.map((function(e,t){var r=n(e,t);return c.createElement(D,{key:r,rowKey:r,record:e,recordKey:r,index:t,rowComponent:v,cellComponent:g,expandedKeys:o,onRow:i,getRowKey:n,rowExpandable:a,childrenColumnName:l})})):c.createElement(N,{expanded:!0,className:"".concat(p,"-placeholder"),prefixCls:p,fixHeader:m,fixColumn:y,horizonScroll:y,component:v,componentWidth:O,cellComponent:g,colSpan:b.length},u);var j=Object(w.a)(b);return c.createElement(f,{className:"".concat(p,"-tbody")},r&&c.createElement("tr",{"aria-hidden":"true",className:"".concat(p,"-measure-row"),style:{height:0}},j.map((function(e){return c.createElement(d.default,{key:e,onResize:function(t){var n=t.offsetWidth;s(e,n)}},c.createElement("td",{style:{padding:0,border:0,height:0}}))}))),e)}),[t,p,i,r,o,n,h,O,u,b])}));L.displayName="Body";var F=L,z=n(750),H=n(101),B=n.n(H);var V=function(e,t,n){return Object(c.useMemo)((function(){for(var r=[],o=[],i=0,a=0,c=0;c<t;c+=1)if("rtl"===n){o[c]=a,a+=e[c]||0;var u=t-c-1;r[u]=i,i+=e[u]||0}else{r[c]=i,i+=e[c]||0;var l=t-c-1;o[l]=a,a+=e[l]||0}return{left:r,right:o}}),[e,t,n])};var K=function(e){var t=e.className,n=e.children;return c.createElement("div",{className:t},n)},U=n(629);function W(e){var t,n=e.prefixCls,o=e.record,i=e.onExpand,a=e.expanded,u=e.expandable,s="".concat(n,"-row-expand-icon");if(!u)return c.createElement("span",{className:l()(s,"".concat(n,"-row-spaced"))});return c.createElement("span",{className:l()(s,(t={},Object(r.a)(t,"".concat(n,"-row-expanded"),a),Object(r.a)(t,"".concat(n,"-row-collapsed"),!a),t)),onClick:function(e){i(o,e),e.stopPropagation()}})}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $=[],Y={},X="rc-table-internal-hook",Z=c.memo((function(e){return e.children}),(function(e,t){return!!f()(e.props,t.props)&&(e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight)}));function J(e){var t,n=e.prefixCls,u=e.className,s=e.rowClassName,f=e.style,v=e.data,m=e.rowKey,y=e.scroll,b=e.tableLayout,j=e.direction,x=e.title,_=e.footer,P=e.summary,N=e.id,T=e.showHeader,A=e.components,R=e.emptyText,D=e.onRow,L=e.onHeaderRow,H=e.internalHooks,q=e.transformColumns,J=e.internalRefs,Q=v||$,ee=!!Q.length,te=c.useState(0),ne=Object(a.a)(te,2),re=ne[0],oe=ne[1];c.useEffect((function(){oe(Object(h.a)())}));var ie,ae,ce,ue,le,se,fe,pe,de,he=c.useMemo((function(){return Object(w.c)(A,{})}),[A]),ve=c.useCallback((function(e,t){return Object(w.b)(he,e)||t}),[he]),me=c.useMemo((function(){return"function"==typeof m?m:function(e){return e&&e[m]}}),[m]),ye=Object(S.c)(e),be=ye.expandIcon,ge=ye.expandedRowKeys,Oe=ye.defaultExpandedRowKeys,we=ye.defaultExpandAllRows,je=ye.expandedRowRender,xe=ye.onExpand,Ee=ye.onExpandedRowsChange,Se=ye.expandRowByClick,Ce=ye.rowExpandable,_e=ye.expandIconColumnIndex,Pe=ye.expandedRowClassName,ke=ye.childrenColumnName,Me=ye.indentSize,Ne=be||W,Te=ke||"children",Ae=c.useMemo((function(){return je?"row":!!(e.expandable&&H===X&&e.expandable.__PARENT_RENDER_ICON__||Q.some((function(e){return e&&"object"===Object(i.a)(e)&&Te in e})))&&"nest"}),[!!je,Q]),Re=c.useState((function(){return Oe||(we?function(e,t,n){var r=[];return function e(o){(o||[]).forEach((function(o,i){r.push(t(o,i)),e(o[n])}))}(e),r}(Q,me,Te):[])})),De=Object(a.a)(Re,2),Ie=De[0],Le=De[1],Fe=c.useMemo((function(){return new Set(ge||Ie||[])}),[ge,Ie]),ze=c.useCallback((function(e){var t,n=me(e,Q.indexOf(e)),r=Fe.has(n);r?(Fe.delete(n),t=Object(o.a)(Fe)):t=[].concat(Object(o.a)(Fe),[n]),Le(t),xe&&xe(!r,e),Ee&&Ee(t)}),[me,Fe,Q,xe,Ee]),He=c.useState(0),Be=Object(a.a)(He,2),Ve=Be[0],Ke=Be[1],Ue=Object(z.b)(G(G(G({},e),ye),{},{expandable:!!je,expandedKeys:Fe,getRowKey:me,onTriggerExpand:ze,expandIcon:Ne,expandIconColumnIndex:_e,direction:j}),H===X?q:null),We=Object(a.a)(Ue,2),qe=We[0],Ge=We[1],$e=c.useMemo((function(){return{columns:qe,flattenColumns:Ge}}),[qe,Ge]),Ye=c.useRef(),Xe=c.useRef(),Ze=c.useRef(),Je=c.useState(!1),Qe=Object(a.a)(Je,2),et=Qe[0],tt=Qe[1],nt=c.useState(!1),rt=Object(a.a)(nt,2),ot=rt[0],it=rt[1],at=(ie=new Map,ae=Object(c.useRef)(ie),ce=Object(c.useState)({}),ue=Object(a.a)(ce,2)[1],le=Object(c.useRef)(null),se=Object(c.useRef)([]),Object(c.useEffect)((function(){return function(){B.a.cancel(le.current)}}),[]),[ae.current,function(e){null===le.current&&(se.current=[],le.current=B()((function(){se.current.forEach((function(e){ae.current=e(ae.current)})),le.current=null,ue({})}))),se.current.push(e)}]),ct=Object(a.a)(at,2),ut=ct[0],lt=ct[1],st=Object(w.a)(Ge).map((function(e){return ut.get(e)})),ft=c.useMemo((function(){return st}),[st.join("_")]),pt=V(ft,Ge.length,j),dt=ee&&y&&Object(w.d)(y.y),ht=y&&Object(w.d)(y.x),vt=ht&&Ge.some((function(e){return e.fixed}));dt&&(pe={overflowY:"scroll",maxHeight:y.y}),ht&&(fe={overflowX:"auto"},dt||(pe={overflowY:"hidden"}),de={width:!0===y.x?"auto":y.x,minWidth:"100%"});var mt=c.useCallback((function(e,t){lt((function(n){var r=new Map(n);return r.set(e,t),r}))}),[]),yt=function(e){var t=Object(c.useRef)(e),n=Object(c.useRef)(null);function r(){window.clearTimeout(n.current)}return Object(c.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=null}),100)},function(){return t.current}]}(null),bt=Object(a.a)(yt,2),gt=bt[0],Ot=bt[1];function wt(e,t){t&&t.scrollLeft!==e&&(t.scrollLeft=e)}var jt=function(e){var t=e.currentTarget,n=e.scrollLeft,r="number"==typeof n?n:t.scrollLeft,o=t||Y;if(Ot()&&Ot()!==o||(gt(o),wt(r,Xe.current),wt(r,Ze.current)),t){var i=t.scrollWidth,a=t.clientWidth;tt(r>0),it(r<i-a)}},xt=function(){Ze.current&&jt({currentTarget:Ze.current})};c.useEffect((function(){return xt}),[]),c.useEffect((function(){ht&&xt()}),[ht]),c.useEffect((function(){H===X&&J&&(J.body.current=Ze.current)}));var Et,St,Ct=ve(["table"],"table"),_t=c.useMemo((function(){return b||(vt?"max-content"===y.x?"auto":"fixed":dt||Ge.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[dt,vt,Ge,b]),Pt={colWidths:ft,columCount:Ge.length,stickyOffsets:pt,onHeaderRow:L},kt=c.useMemo((function(){return ee?null:"function"==typeof R?R():R}),[ee,R]),Mt=c.createElement(F,{data:Q,measureColumnWidth:dt||ht,expandedKeys:Fe,rowExpandable:Ce,getRowKey:me,onRow:D,emptyNode:kt,childrenColumnName:Te}),Nt=c.createElement(C,{colWidths:Ge.map((function(e){return e.width})),columns:Ge}),Tt=P&&c.createElement(U.b,null,P(Q)),At=ve(["body"]);dt?("function"==typeof At?(St=At(Q,{scrollbarSize:re,ref:Ze,onScroll:jt}),Pt.colWidths=Ge.map((function(e,t){var n=e.width,r=t===qe.length-1?n-re:n;return"number"!=typeof r||Number.isNaN(r)?(Object(p.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0):r}))):St=c.createElement("div",{style:G(G({},fe),pe),onScroll:jt,ref:Ze,className:l()("".concat(n,"-body"))},c.createElement(Ct,{style:G(G({},de),{},{tableLayout:_t})},Nt,Mt,Tt)),Et=c.createElement(c.Fragment,null,!1!==T&&c.createElement("div",{style:{overflow:"hidden"},onScroll:jt,ref:Xe,className:l()("".concat(n,"-header"))},c.createElement(k,Object.assign({},Pt,$e,{direction:j}))),St)):Et=c.createElement("div",{style:G(G({},fe),pe),className:l()("".concat(n,"-content")),onScroll:jt,ref:Ze},c.createElement(Ct,{style:G(G({},de),{},{tableLayout:_t})},Nt,!1!==T&&c.createElement(E,Object.assign({},Pt,$e)),Mt,Tt));var Rt=Object(S.b)(e),Dt=c.createElement("div",Object.assign({className:l()(n,u,(t={},Object(r.a)(t,"".concat(n,"-rtl"),"rtl"===j),Object(r.a)(t,"".concat(n,"-ping-left"),et),Object(r.a)(t,"".concat(n,"-ping-right"),ot),Object(r.a)(t,"".concat(n,"-layout-fixed"),"fixed"===b),Object(r.a)(t,"".concat(n,"-fixed-header"),dt),Object(r.a)(t,"".concat(n,"-fixed-column"),vt),Object(r.a)(t,"".concat(n,"-scroll-horizontal"),ht),Object(r.a)(t,"".concat(n,"-has-fix-left"),Ge[0]&&Ge[0].fixed),Object(r.a)(t,"".concat(n,"-has-fix-right"),Ge[Ge.length-1]&&"right"===Ge[Ge.length-1].fixed),t)),style:f,id:N,ref:Ye},Rt),c.createElement(Z,{pingLeft:et,pingRight:ot,props:G(G({},e),{},{stickyOffsets:pt,mergedExpandedKeys:Fe})},x&&c.createElement(K,{className:"".concat(n,"-title")},x(Q)),c.createElement("div",{className:"".concat(n,"-container")},Et),_&&c.createElement(K,{className:"".concat(n,"-footer")},_(Q))));ht&&(Dt=c.createElement(d.default,{onResize:function(e){var t=e.width;xt(),Ke(Ye.current?Ye.current.offsetWidth:t)}},Dt));var It=c.useMemo((function(){return{prefixCls:n,getComponent:ve,scrollbarSize:re,direction:j,fixedInfoList:Ge.map((function(e,t){return O(t,t,Ge,pt,j)}))}}),[n,ve,re,j,Ge,pt,j]),Lt=c.useMemo((function(){return G(G({},$e),{},{tableLayout:_t,rowClassName:s,expandedRowClassName:Pe,componentWidth:Ve,fixHeader:dt,fixColumn:vt,horizonScroll:ht,expandIcon:Ne,expandableType:Ae,expandRowByClick:Se,expandedRowRender:je,onTriggerExpand:ze,expandIconColumnIndex:_e,indentSize:Me})}),[$e,_t,s,Pe,Ve,dt,vt,ht,Ne,Ae,Se,je,ze,_e,Me]),Ft=c.useMemo((function(){return{onColumnResize:mt}}),[mt]);return c.createElement(g.a.Provider,{value:It},c.createElement(M.Provider,{value:Lt},c.createElement(I.Provider,{value:Ft},Dt)))}J.Column=m.a,J.ColumnGroup=v.a,J.Summary=U.a,J.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};t.b=J},,function(e,t,n){"use strict";var r=n(0),o=n(812),i=n(734),a=n(4),c=n.n(a),u=n(528),l=n.n(u),s=n(385),f=n.n(s),p=n(804),d=n.n(p),h=n(805),v=n.n(h),m=n(53);function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var b=function(e){return r.createElement(m.a,y({size:"small"},e))};b.Option=m.a.Option;var g=b,O=n(307),w=n(190),j=n(580);function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},S=function(e){var t=e.prefixCls,n=e.selectPrefixCls,a=e.className,u=e.size,s=e.locale,p=E(e,["prefixCls","selectPrefixCls","className","size","locale"]),h=Object(j.a)().xs,y=r.useContext(w.b),b=y.getPrefixCls,S=y.direction,C=b("pagination",t),_=function(e){var t,i,y,O=x(x({},e),s),w="small"===u||!(!h||u||!p.responsive),j=b("select",n),E=c()(a,(t={mini:w},i="".concat(C,"-rtl"),y="rtl"===S,i in t?Object.defineProperty(t,i,{value:y,enumerable:!0,configurable:!0,writable:!0}):t[i]=y,t));return r.createElement(o.default,x({},p,{prefixCls:C,selectPrefixCls:j},function(){var e=r.createElement("span",{className:"".concat(C,"-item-ellipsis")},"•••"),t=r.createElement("button",{className:"".concat(C,"-item-link"),type:"button",tabIndex:-1},r.createElement(l.a,null)),n=r.createElement("button",{className:"".concat(C,"-item-link"),type:"button",tabIndex:-1},r.createElement(f.a,null)),o=r.createElement("a",{className:"".concat(C,"-item-link")},r.createElement("div",{className:"".concat(C,"-item-container")},r.createElement(d.a,{className:"".concat(C,"-item-link-icon")}),e)),i=r.createElement("a",{className:"".concat(C,"-item-link")},r.createElement("div",{className:"".concat(C,"-item-container")},r.createElement(v.a,{className:"".concat(C,"-item-link-icon")}),e));if("rtl"===S){var a=[n,t];t=a[0],n=a[1];var c=[i,o];o=c[0],i=c[1]}return{prevIcon:t,nextIcon:n,jumpPrevIcon:o,jumpNextIcon:i}}(),{className:E,selectComponentClass:w?g:m.a,locale:O}))};return r.createElement(O.a,{componentName:"Pagination",defaultLocale:i.a},_)};t.a=S},function(e,t,n){"use strict";var r=n(0),o=n(628),i=n(4),a=n.n(i),c=n(385),u=n.n(c),l=n(626),s=n.n(l),f=n(82),p=n(190);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},y=f.a.Group,b=function(e){var t=r.useContext(p.b),n=t.getPopupContainer,o=t.getPrefixCls,i=t.direction,c=e.prefixCls,u=e.type,l=e.disabled,v=e.onClick,b=e.htmlType,g=e.children,O=e.className,w=e.overlay,j=e.trigger,x=e.align,E=e.visible,S=e.onVisibleChange,_=e.placement,P=e.getPopupContainer,k=e.href,M=e.icon,N=void 0===M?r.createElement(s.a,null):M,T=e.title,A=e.buttonsRender,R=m(e,["prefixCls","type","disabled","onClick","htmlType","children","className","overlay","trigger","align","visible","onVisibleChange","placement","getPopupContainer","href","icon","title","buttonsRender"]),D=o("dropdown-button",c),I={align:x,overlay:w,disabled:l,trigger:l?[]:j,onVisibleChange:S,getPopupContainer:P||n};"visible"in e&&(I.visible=E),I.placement="placement"in e?_:"rtl"===i?"bottomLeft":"bottomRight";var L=h(A([r.createElement(f.a,{type:u,disabled:l,onClick:v,htmlType:b,href:k,title:T},g),r.createElement(f.a,{type:u,icon:N})]),2),F=L[0],z=L[1];return r.createElement(y,d({},R,{className:a()(D,O)}),F,r.createElement(C,I,z))};b.__ANT_BUTTON=!0,b.defaultProps={type:"default",buttonsRender:function(e){return e}};var g=b,O=n(86),w=n(171),j=n(102);function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(w.a)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight");var S=function(e){var t,n,i,c,l=r.useContext(p.b),s=l.getPopupContainer,f=l.getPrefixCls,d=l.direction,h=e.arrow,v=e.prefixCls,m=e.children,y=e.trigger,b=e.disabled,g=e.getPopupContainer,w=e.overlayClassName,S=f("dropdown",v),C=r.Children.only(m),_=Object(j.a)(C,{className:a()(C.props.className,"".concat(S,"-trigger"),E({},"".concat(S,"-rtl"),"rtl"===d)),disabled:b}),P=a()(w,E({},"".concat(S,"-rtl"),"rtl"===d)),k=b?[]:y;return k&&-1!==k.indexOf("contextMenu")&&(t=!0),r.createElement(o.default,x({arrow:h,alignPoint:t},e,{overlayClassName:P,prefixCls:S,getPopupContainer:g||s,transitionName:(n=e.placement,i=void 0===n?"":n,c=e.transitionName,void 0!==c?c:i.indexOf("top")>=0?"slide-down":"slide-up"),trigger:k,overlay:function(){return function(t){var n,o=e.overlay;n="function"==typeof o?o():o;var i=(n=r.Children.only("string"==typeof n?r.createElement("span",null,"overlayNode"):n)).props;Object(O.a)(!i.mode||"vertical"===i.mode,"Dropdown",'mode="'.concat(i.mode,"\" is not supported for Dropdown's Menu."));var a=i.selectable,c=void 0!==a&&a,l=i.focusable,s=void 0===l||l,f=r.createElement("span",{className:"".concat(t,"-menu-submenu-arrow")},r.createElement(u.a,{className:"".concat(t,"-menu-submenu-arrow-icon")}));return"string"==typeof n.type?n:Object(j.a)(n,{mode:"vertical",selectable:c,focusable:s,expandIcon:f})}(S)},placement:function(){var t=e.placement;return void 0!==t?t:"rtl"===d?"bottomRight":"bottomLeft"}()}),_)};S.Button=g,S.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var C=S;t.a=C},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n(0),o=n(20),i=n(374),a=n(101),c=n.n(a),u=0,l={};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=u++,r=t;function o(){(r-=1)<=0?(e(),delete l[n]):l[n]=c()(o)}return l[n]=c()(o),n}s.cancel=function(e){void 0!==e&&(c.a.cancel(l[e]),delete l[e])},s.ids=l;var f,p=n(190);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e){return!e||null===e.offsetParent}function j(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(u,e);var t,n,a,c=y(u);function u(){var e;return h(this,u),(e=c.apply(this,arguments)).animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){if(!(!t||w(t)||t.className.indexOf("-leave")>=0)){var r=e.props.insertExtraNode;e.extraNode=document.createElement("div");var o=g(e).extraNode,a=e.context.getPrefixCls;o.className="".concat(a(""),"-click-animating-node");var c=e.getAttributeName();t.setAttribute(c,"true"),f=f||document.createElement("style"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&j(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n&&(e.csp&&e.csp.nonce&&(f.nonce=e.csp.nonce),o.style.borderColor=n,f.innerHTML="\n [".concat(a(""),"-click-animating-without-extra-node='true']::after, .").concat(a(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),document.body.contains(f)||document.body.appendChild(f)),r&&t.appendChild(o),i.a.addStartEventListener(t,e.onTransitionStart),i.a.addEndEventListener(t,e.onTransitionEnd)}},e.onTransitionStart=function(t){if(!e.destroyed){var n=Object(o.findDOMNode)(g(e));t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!w(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),s.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=s((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;return e.csp=n,r},e}return t=u,(n=[{key:"componentDidMount",value:function(){var e=Object(o.findDOMNode)(this);e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){if(e&&e!==this.extraNode&&e instanceof Element){var t=this.props.insertExtraNode,n=this.getAttributeName();e.setAttribute(n,"false"),f&&(f.innerHTML=""),t&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),i.a.removeStartEventListener(e,this.onTransitionStart),i.a.removeEndEventListener(e,this.onTransitionEnd)}}},{key:"render",value:function(){return r.createElement(p.a,null,this.renderWave)}}])&&v(t.prototype,n),a&&v(t,a),u}(r.Component);x.contextType=p.b},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(56);function o(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function i(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function a(e,t,n,a){var c,u=[];c=a||i;var l=new Set(e.filter((function(e){var t=!!n[e];return t||u.push(e),t}))),s=new Map,f=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=s.get(r);o||(o=new Set,s.set(r,o)),o.add(t),f=Math.max(f,r)})),Object(r.a)(!u.length,"Tree missing follow keys: ".concat(u.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),!0===t?function(e,t,n,r){for(var i=new Set(e),a=new Set,c=0;c<=n;c+=1){(t.get(c)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,a=void 0===o?[]:o;i.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){i.add(e.key)}))}))}for(var u=new Set,l=n;l>=0;l-=1){(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!u.has(e.parent.key))if(r(e.parent.node))u.add(t.key);else{var o=!0,c=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);o&&!n&&(o=!1),c||!n&&!a.has(t)||(c=!0)})),o&&i.add(t.key),c&&a.add(t.key),u.add(t.key)}}))}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(o(a,i))}}(l,s,f,c):function(e,t,n,r,i){for(var a=new Set(e),c=new Set(t),u=0;u<=r;u+=1){(n.get(u)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,o=void 0===r?[]:r;a.has(t)||c.has(t)||i(n)||o.filter((function(e){return!i(e.node)})).forEach((function(e){a.delete(e.key)}))}))}c=new Set;for(var l=new Set,s=r;s>=0;s-=1){(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!i(n)&&e.parent&&!l.has(e.parent.key))if(i(e.parent.node))l.add(t.key);else{var r=!0,o=!1;(t.children||[]).filter((function(e){return!i(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);r&&!n&&(r=!1),o||!n&&!c.has(t)||(o=!0)})),r||a.delete(t.key),o&&c.add(t.key),l.add(t.key)}}))}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(o(c,a))}}(l,t.halfCheckedKeys,s,f,c)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return ho})),n.d(t,"b",(function(){return Yo})),n.d(t,"c",(function(){return Qo}));var r=n(0),o=n.n(r),i=n(129),a=n(16),c=n(98),u=(n(26),o.a.createContext(null));var l=function(e){e()},s={notify:function(){}};function f(){var e=l,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var p=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=f())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},e}();var d=function(e){var t=e.store,n=e.context,i=e.children,a=Object(r.useMemo)((function(){var e=new p(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),c=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=a.subscription;return e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,c]);var l=n||u;return o.a.createElement(l.Provider,{value:a},i)},h=n(55),v=n(170),m=n.n(v),y=n(154),b="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,g=[],O=[null,null];function w(e,t){var n=e[1];return[t.payload,n+1]}function j(e,t,n){b((function(){return e.apply(void 0,t)}),n)}function x(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function E(e,t,n,r,o,i,a,c,u,l){if(e){var s=!1,f=null,p=function(){if(!s){var e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||u():(i.current=e,c.current=e,a.current=!0,l({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=p,n.trySubscribe(),p();return function(){if(s=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var S=function(){return[null,0]};function C(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,c=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,l=n.methodName,s=void 0===l?"connectAdvanced":l,f=n.renderCountProp,d=void 0===f?void 0:f,v=n.shouldHandleStateChanges,b=void 0===v||v,C=n.storeKey,_=void 0===C?"store":C,P=(n.withRef,n.forwardRef),k=void 0!==P&&P,M=n.context,N=void 0===M?u:M,T=Object(h.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),A=N;return function(t){var n=t.displayName||t.name||"Component",i=c(n),u=Object(a.a)({},T,{getDisplayName:c,methodName:s,renderCountProp:d,shouldHandleStateChanges:b,storeKey:_,displayName:i,wrappedComponentName:n,WrappedComponent:t}),l=T.pure;var f=l?r.useMemo:function(e){return e()};function v(n){var i=Object(r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=Object(h.a)(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),c=i[0],l=i[1],s=i[2],d=Object(r.useMemo)((function(){return c&&c.Consumer&&Object(y.isContextConsumer)(o.a.createElement(c.Consumer,null))?c:A}),[c,A]),v=Object(r.useContext)(d),m=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(v)&&Boolean(v.store);var C=m?n.store:v.store,_=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,u)}(C)}),[C]),P=Object(r.useMemo)((function(){if(!b)return O;var e=new p(C,m?null:v.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[C,m,v]),k=P[0],M=P[1],N=Object(r.useMemo)((function(){return m?v:Object(a.a)({},v,{subscription:k})}),[m,v,k]),T=Object(r.useReducer)(w,g,S),R=T[0][0],D=T[1];if(R&&R.error)throw R.error;var I=Object(r.useRef)(),L=Object(r.useRef)(s),F=Object(r.useRef)(),z=Object(r.useRef)(!1),H=f((function(){return F.current&&s===L.current?F.current:_(C.getState(),s)}),[C,R,s]);j(x,[L,I,z,s,H,F,M]),j(E,[b,C,k,_,L,I,z,F,M,D],[C,k,_]);var B=Object(r.useMemo)((function(){return o.a.createElement(t,Object(a.a)({},H,{ref:l}))}),[l,t,H]);return Object(r.useMemo)((function(){return b?o.a.createElement(d.Provider,{value:N},B):B}),[d,B,N])}var C=l?o.a.memo(v):v;if(C.WrappedComponent=t,C.displayName=i,k){var P=o.a.forwardRef((function(e,t){return o.a.createElement(C,Object(a.a)({},e,{reactReduxForwardedRef:t}))}));return P.displayName=i,P.WrappedComponent=t,m()(P,t)}return m()(C,t)}}function _(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function P(e,t){if(_(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!_(e[n[o]],t[n[o]]))return!1;return!0}function k(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function M(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function N(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=M(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=M(o),o=r(t,n)),o},r}}var T=[function(e){return"function"==typeof e?N(e):void 0},function(e){return e?void 0:k((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?k((function(t){return Object(c.b)(e,t)})):void 0}];var A=[function(e){return"function"==typeof e?N(e):void 0},function(e){return e?void 0:k((function(){return{}}))}];function R(e,t,n){return Object(a.a)({},n,{},e,{},t)}var D=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,c){var u=e(t,n,c);return a?o&&i(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return R}}];function I(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function L(e,t,n,r,o){var i,a,c,u,l,s=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1;function h(o,d){var h,v,m=!f(d,a),y=!s(o,i);return i=o,a=d,m&&y?(c=e(i,a),t.dependsOnOwnProps&&(u=t(r,a)),l=n(c,u,a)):m?(e.dependsOnOwnProps&&(c=e(i,a)),t.dependsOnOwnProps&&(u=t(r,a)),l=n(c,u,a)):y?(h=e(i,a),v=!p(h,c),c=h,v&&(l=n(c,u,a)),l):l}return function(o,s){return d?h(o,s):(c=e(i=o,a=s),u=t(r,a),l=n(c,u,a),d=!0,l)}}function F(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Object(h.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),c=r(e,i),u=o(e,i);return(i.pure?L:I)(a,c,u,e,i)}function z(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function H(e,t){return e===t}function B(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?C:n,o=t.mapStateToPropsFactories,i=void 0===o?A:o,c=t.mapDispatchToPropsFactories,u=void 0===c?T:c,l=t.mergePropsFactories,s=void 0===l?D:l,f=t.selectorFactory,p=void 0===f?F:f;return function(e,t,n,o){void 0===o&&(o={});var c=o,l=c.pure,f=void 0===l||l,d=c.areStatesEqual,v=void 0===d?H:d,m=c.areOwnPropsEqual,y=void 0===m?P:m,b=c.areStatePropsEqual,g=void 0===b?P:b,O=c.areMergedPropsEqual,w=void 0===O?P:O,j=Object(h.a)(c,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),x=z(e,i,"mapStateToProps"),E=z(t,u,"mapDispatchToProps"),S=z(n,s,"mergeProps");return r(p,Object(a.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:E,initMergeProps:S,pure:f,areStatesEqual:v,areOwnPropsEqual:y,areStatePropsEqual:g,areMergedPropsEqual:w},j))}}var V=B();var K,U=n(20),W=n.n(U);function q(e,t){var n=Object(r.useState)((function(){return{inputs:t,result:e()}}))[0],o=Object(r.useRef)(n),i=Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return Object(r.useEffect)((function(){o.current=i}),[i]),i.result}K=U.unstable_batchedUpdates,l=K;var G=q,$=function(e,t){return q((function(){return e}),t)};var Y=function(e,t){if(!e)throw new Error("Invariant failed")},X=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},Z=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},J=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Q={top:0,right:0,bottom:0,left:0},ee=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Q:n,o=e.border,i=void 0===o?Q:o,a=e.padding,c=void 0===a?Q:a,u=X(Z(t,r)),l=X(J(t,i)),s=X(J(l,c));return{marginBox:u,borderBox:X(t),paddingBox:l,contentBox:s,margin:r,border:i,padding:c}},te=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&Y(!1),n},ne=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,c=e.padding,u=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ee({borderBox:u,border:i,margin:a,padding:c})},re=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ne(e,t)},oe=function(e,t){var n={top:te(t.marginTop),right:te(t.marginRight),bottom:te(t.marginBottom),left:te(t.marginLeft)},r={top:te(t.paddingTop),right:te(t.paddingRight),bottom:te(t.paddingBottom),left:te(t.paddingLeft)},o={top:te(t.borderTopWidth),right:te(t.borderRightWidth),bottom:te(t.borderBottomWidth),left:te(t.borderLeftWidth)};return ee({borderBox:e,margin:n,padding:r,border:o})},ie=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return oe(t,n)},ae=n(19),ce=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function ue(e,t){}ue.bind(null,"warn"),ue.bind(null,"error");function le(){}function se(e,t,n){var r=t.map((function(t){var r,o,i=(r=n,o=t.options,Object(a.a)({},r,{},o));return e.addEventListener(t.eventName,t.fn,i),function(){e.removeEventListener(t.eventName,t.fn,i)}}));return function(){r.forEach((function(e){e()}))}}function fe(e){this.message=e}function pe(e,t){if(!e)throw new fe("Invariant failed")}fe.prototype.toString=function(){return this.message};var de=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=le,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof fe&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=se(window,[{eventName:"error",fn:this.onWindowError}])},n.componentWillUnmount=function(){this.unbind()},n.componentDidCatch=function(e){if(!(e instanceof fe))throw e;this.setState({})},n.render=function(){return this.props.children(this.setCallbacks)},t}(o.a.Component),he=function(e){return e+1},ve=function(e,t){var n=e.droppableId===t.droppableId,r=he(e.index),o=he(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},me=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},ye=function(e){return"\n The item has returned to its starting position\n of "+he(e.index)+"\n"},be="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",ge=function(e){return"\n You have lifted an item in position "+he(e.source.index)+"\n"},Oe=function(e){var t=e.destination;if(t)return ve(e.source,t);var n=e.combine;return n?me(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},we=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+ye(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+ve(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+me(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+ye(e.source)+"\n "},je={x:0,y:0},xe=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Ee=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Se=function(e,t){return e.x===t.x&&e.y===t.y},Ce=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},_e=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Pe=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},ke=function(e,t){return Math.min.apply(Math,t.map((function(t){return Pe(e,t)})))},Me=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Ne=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Te=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ae=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=X({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):X(e)},Re=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t,n){var r;return n&&n.increasedBy?Object(a.a)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(function(e,t){return t?Ne(e,t.scroll.diff.displacement):e}(t.marginBox,o),r,n);return{page:t,withPlaceholder:n,active:Ae(i,o)}},De=function(e,t){e.frame||pe(!1);var n=e.frame,r=Ee(t,n.scroll.initial),o=Ce(r),i=Object(a.a)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),c=Re({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return Object(a.a)({},e,{frame:i,subject:c})};function Ie(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Le(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Fe(e,t){if(e.find)return e.find(t);var n=Le(e,t);return-1!==n?e[n]:void 0}function ze(e){return Array.prototype.slice.call(e)}var He=Object(ae.a)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Be=Object(ae.a)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ve=Object(ae.a)((function(e){return Ie(e)})),Ke=Object(ae.a)((function(e){return Ie(e)})),Ue=Object(ae.a)((function(e,t){return Ke(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function We(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function qe(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ge=Object(ae.a)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),$e=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Ye={point:je,value:0},Xe={invisible:{},visible:{},all:[]},Ze={displaced:Xe,displacedBy:Ye,at:null},Je=function(e,t){return function(n){return e<=n&&n<=t}},Qe=function(e){var t=Je(e.top,e.bottom),n=Je(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,c=r.left<e.left&&r.right>e.right;return!(!a||!c)||(a&&i||c&&o)}},et=function(e){var t=Je(e.top,e.bottom),n=Je(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},tt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},nt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},rt=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:je;return Ne(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},ot=function(e){return rt(Object(a.a)({},e,{isVisibleThroughFrameFn:Qe}))},it=function(e){return rt(Object(a.a)({},e,{isVisibleThroughFrameFn:et}))};function at(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var c=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return X(Z(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),!ot({target:c,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var l={draggableId:u,shouldAnimate:function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate}(u,a,i)};return e.visible[u]=l,e}),{all:[],visible:{},invisible:{}})}function ct(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Xe,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function ut(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,c=e.index,u=e.forceShouldAnimate,l=$e(t,r);if(null==c)return ct({insideDestination:n,inHomeList:l,displacedBy:i,destination:r});var s=Fe(n,(function(e){return e.descriptor.index===c}));if(!s)return ct({insideDestination:n,inHomeList:l,displacedBy:i,destination:r});var f=Ge(t,n),p=n.indexOf(s);return{displaced:at({afterDragging:f.slice(p),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:u}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:c}}}}function lt(e,t){return Boolean(t.effected[e])}var st=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,c=e.previousImpact,u=e.viewport,l=e.afterCritical,s=c.at;if(s||pe(!1),"REORDER"===s.type){var f=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,c=r[0].descriptor.index,u=r[r.length-1].descriptor.index;return a<c||a>(n?u:u+1)?null:a}({isMovingForward:t,isInHomeList:n,location:s.destination,insideDestination:a});return null==f?null:ut({draggable:r,insideDestination:a,destination:i,viewport:u,last:c.displaced,displacedBy:c.displacedBy,index:f})}var p=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,c=r[a].descriptor.index;return lt(a,i)?t?c:c-1:t?c+1:c}({isMovingForward:t,destination:i,displaced:c.displaced,draggables:o,combine:s.combine,afterCritical:l});return null==p?null:ut({draggable:r,insideDestination:a,destination:i,viewport:u,last:c.displaced,displacedBy:c.displacedBy,index:p})},ft=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=qe(n);o||pe(!1);var i=o.draggableId,a=r[i].page.borderBox.center,c=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return lt(r,n)?i?je:Ce(o.point):i?o.point:je}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return xe(a,c)},pt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},dt=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},ht=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return _e(t.line,n.marginBox[t.end]+pt(t,r),dt(t,n.marginBox,r))},vt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return _e(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),dt(t,n.marginBox,r))},mt=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=Ue(o.descriptor.id,r),c=n.page,u=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return _e(t.line,n.contentBox[t.start]+pt(t,r),dt(t,n.contentBox,r))}({axis:u,moveInto:o.page,isMoving:c});var l=t.displaced,s=t.displacedBy,f=l.all[0];if(f){var p=r[f];if(lt(f,i))return vt({axis:u,moveRelativeTo:p.page,isMoving:c});var d=ne(p.page,s.point);return vt({axis:u,moveRelativeTo:d,isMoving:c})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return c.borderBox.center;if(lt(h.descriptor.id,i)){var v=ne(h.page,Ce(i.displacedBy.point));return ht({axis:u,moveRelativeTo:v,isMoving:c})}return ht({axis:u,moveRelativeTo:h.page,isMoving:c})},yt=function(e,t){var n=e.frame;return n?xe(t,n.scroll.diff.displacement):t},bt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,c=t.at;return r&&c?"REORDER"===c.type?mt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):ft({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?yt(n,t):t},gt=function(e,t){var n=Ee(t,e.scroll.initial),r=Ce(n);return{frame:X({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Ot(e,t){return e.map((function(e){return t[e]}))}var wt=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return xe(e.scroll.diff.displacement,t)}(e.viewport,t),o=Ee(r,n.page.borderBox.center);return xe(n.client.borderBox.center,o)},jt=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,c=e.onlyOnMainAxis,u=void 0!==c&&c,l=Ee(r,t.page.borderBox.center),s={target:Ne(t.page.borderBox,l),destination:n,withDroppableDisplacement:i,viewport:o};return u?function(e){return rt(Object(a.a)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Je(e.top,e.bottom),r=Je(e.left,e.right);return function(e){return t===tt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(s):it(s)},xt=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,c=e.viewport,u=e.previousPageBorderBoxCenter,l=e.previousClientSelection,s=e.afterCritical;if(!r.isEnabled)return null;var f=Ue(r.descriptor.id,o),p=$e(n,r),d=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!We(i))return null;function c(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return Object(a.a)({},i,{at:t})}var u=i.displaced.all,l=u.length?u[0]:null;if(t)return l?c(l):null;var s=Ge(n,o);if(!l)return s.length?c(s[s.length-1].descriptor.id):null;var f=Le(s,(function(e){return e.descriptor.id===l}));-1===f&&pe(!1);var p=f-1;return p<0?null:c(s[p].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:f,previousImpact:i})||st({isMovingForward:t,isInHomeList:p,draggable:n,draggables:o,destination:r,insideDestination:f,previousImpact:i,viewport:c,afterCritical:s});if(!d)return null;var h=bt({impact:d,draggable:n,droppable:r,draggables:o,afterCritical:s});if(jt({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:c.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:wt({pageBorderBoxCenter:h,draggable:n,viewport:c}),impact:d,scrollJumpRequest:null};var v=Ee(h,u);return{clientSelection:l,impact:function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,c=gt(n,xe(n.scroll.current,i)),u=r.frame?De(r,xe(r.frame.scroll.current,i)):r,l=t.displaced,s=at({afterDragging:Ot(l.all,o),destination:r,displacedBy:t.displacedBy,viewport:c.frame,last:l,forceShouldAnimate:!1}),f=at({afterDragging:Ot(l.all,o),destination:u,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),p={},d={},h=[l,s,f];return l.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?d[e]=t:p[e]=!0})),Object(a.a)({},t,{displaced:{all:l.all,invisible:p,visible:d}})}({impact:d,viewport:c,destination:r,draggables:o,maxScrollChange:v}),scrollJumpRequest:v}},Et=function(e){var t=e.subject.active;return t||pe(!1),t},St=function(e,t){var n=e.page.borderBox.center;return lt(e.descriptor.id,t)?Ee(n,t.displacedBy.point):n},Ct=function(e,t){var n=e.page.borderBox;return lt(e.descriptor.id,t)?Ne(n,Ce(t.displacedBy.point)):n},_t=Object(ae.a)((function(e,t){var n=t[e.line];return{value:n,point:_e(e.line,n)}})),Pt=function(e,t){return Object(a.a)({},e,{scroll:Object(a.a)({},e.scroll,{max:t})})},kt=function(e,t,n){var r=e.frame;$e(t,e)&&pe(!1),e.subject.withPlaceholder&&pe(!1);var o=_t(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return _e(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=Ue(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:_e(r.line,i)}(e,o,n),c={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var u=Re({page:e.subject.page,withPlaceholder:c,axis:e.axis,frame:e.frame});return Object(a.a)({},e,{subject:u})}var l=i?xe(r.scroll.max,i):r.scroll.max,s=Pt(r,l),f=Re({page:e.subject.page,withPlaceholder:c,axis:e.axis,frame:s});return Object(a.a)({},e,{subject:f,frame:s})},Mt=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,c=e.viewport,u=e.afterCritical,l=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var c=r.axis,u=Je(a[c.start],a[c.end]),l=Ve(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return Qe(i.frame)(Et(e))})).filter((function(e){var n=Et(e);return t?a[c.crossAxisEnd]<n[c.crossAxisEnd]:n[c.crossAxisStart]<a[c.crossAxisStart]})).filter((function(e){var t=Et(e),n=Je(t[c.start],t[c.end]);return u(t[c.start])||u(t[c.end])||n(a[c.start])||n(a[c.end])})).sort((function(e,n){var r=Et(e)[c.crossAxisStart],o=Et(n)[c.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return Et(e)[c.crossAxisStart]===Et(n[0])[c.crossAxisStart]}));if(!l.length)return null;if(1===l.length)return l[0];var s=l.filter((function(e){return Je(Et(e)[c.start],Et(e)[c.end])(n[c.line])}));return 1===s.length?s[0]:s.length>1?s.sort((function(e,t){return Et(e)[c.start]-Et(t)[c.start]}))[0]:l.sort((function(e,t){var r=ke(n,Te(Et(e))),o=ke(n,Te(Et(t)));return r!==o?r-o:Et(e)[c.start]-Et(t)[c.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:c});if(!l)return null;var s=Ue(l.descriptor.id,i),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,c=e.viewport,u=e.afterCritical;if(!n){if(r.length)return null;var l={displaced:Xe,displacedBy:Ye,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},s=bt({impact:l,draggable:o,droppable:a,draggables:i,afterCritical:u}),f=$e(o,a)?a:kt(a,o,i);return jt({draggable:o,destination:f,newPageBorderBoxCenter:s,viewport:c.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?l:null}var p,d=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),h=(p=n.descriptor.index,n.descriptor.id===o.descriptor.id||d?p:p+1),v=_t(a.axis,o.displaceBy);return ut({draggable:o,insideDestination:r,destination:a,viewport:c,displacedBy:v,last:Xe,index:h})}({previousPageBorderBoxCenter:n,destination:l,draggable:r,draggables:i,moveRelativeTo:function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical;return o.filter((function(e){return it({target:Ct(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Pe(t,yt(r,St(e,i))),a=Pe(t,yt(r,St(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}))[0]||null}({pageBorderBoxCenter:n,viewport:c,destination:l,insideDestination:s,afterCritical:u}),insideDestination:s,viewport:c,afterCritical:u});if(!f)return null;var p=bt({impact:f,draggable:r,droppable:l,draggables:i,afterCritical:u});return{clientSelection:wt({pageBorderBoxCenter:p,draggable:r,viewport:c}),impact:f,scrollJumpRequest:null}},Nt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Tt=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Nt(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,c=a.axis.direction,u="vertical"===c&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===c&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(u&&!o)return null;var l="MOVE_DOWN"===n||"MOVE_RIGHT"===n,s=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,p=t.dimensions,d=p.draggables,h=p.droppables;return u?xt({isMovingForward:l,previousPageBorderBoxCenter:f,draggable:s,destination:a,draggables:d,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Mt({isMovingForward:l,previousPageBorderBoxCenter:f,draggable:s,isOver:a,draggables:d,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function At(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Rt(e){var t=Je(e.top,e.bottom),n=Je(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Dt(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Ve(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Rt(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],c=t[i.crossAxisStart],u=t[i.crossAxisEnd],l=Je(o[i.crossAxisStart],o[i.crossAxisEnd]),s=l(c),f=l(u);return!s&&!f||(s?c<a:u>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=_e(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Pe(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var It=function(e,t){return X(Ne(e,t))};function Lt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Ft=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,c=e.afterCritical,u=It(n.page.borderBox,t),l=Dt({pageBorderBox:u,draggable:n,droppables:o});if(!l)return Ze;var s,f,p=o[l],d=Ue(p.descriptor.id,r),h=(s=u,(f=p.frame)?It(s,f.scroll.diff.value):s);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var c=o.axis,u=_t(o.axis,t.displaceBy),l=u.value,s=n[c.start],f=n[c.end],p=Fe(Ge(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[c.size]/4,i=lt(t,a),u=Lt({displaced:r.displaced,id:t});return i?u?f>n[c.start]+o&&f<n[c.end]-o:s>n[c.start]-l+o&&s<n[c.end]-l-o:u?f>n[c.start]+l+o&&f<n[c.end]+l-o:s>n[c.start]+o&&s<n[c.end]-o}));return p?{displacedBy:u,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:h,draggable:n,previousImpact:i,destination:p,insideDestination:d,afterCritical:c})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,c=e.afterCritical,u=r.axis,l=_t(r.axis,n.displaceBy),s=l.value,f=t[u.start],p=t[u.end],d=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Fe(Ge(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[u.line],r=lt(t,c),o=Lt({displaced:i,id:t});return r?o?p<=n:f<n-s:o?p<=n+s:f<n})),inHomeList:$e(n,r)});return ut({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:l,index:d})}({pageBorderBoxWithDroppableScroll:h,draggable:n,destination:p,insideDestination:d,last:i.displaced,viewport:a,afterCritical:c})},zt=function(e,t){var n;return Object(a.a)({},e,((n={})[t.descriptor.id]=t,n))},Ht=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Nt(t),i=Nt(n);if(!o)return r;if(o===i)return r;var c=r[o];if(!c.subject.withPlaceholder)return r;var u=function(e){var t=e.subject.withPlaceholder;t||pe(!1);var n=e.frame;if(!n){var r=Re({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return Object(a.a)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||pe(!1);var i=Pt(n,o),c=Re({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return Object(a.a)({},e,{subject:c,frame:i})}(c);return zt(r,u)},Bt=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,c=e.scrollJumpRequest,u=o||t.viewport,l=r||t.dimensions,s=n||t.current.client.selection,f=Ee(s,t.initial.client.selection),p={offset:f,selection:s,borderBoxCenter:xe(t.initial.client.borderBoxCenter,f)},d={selection:xe(p.selection,u.scroll.current),borderBoxCenter:xe(p.borderBoxCenter,u.scroll.current),offset:xe(p.offset,u.scroll.diff.value)},h={client:p,page:d};if("COLLECTING"===t.phase)return Object(a.a)({phase:"COLLECTING"},t,{dimensions:l,viewport:u,current:h});var v=l.draggables[t.critical.draggable.id],m=i||Ft({pageOffset:d.offset,draggable:v,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:u,afterCritical:t.afterCritical}),y=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=Ht({previousImpact:o,impact:i,droppables:r}),c=Nt(i);if(!c)return a;var u=r[c];if($e(t,u))return a;if(u.subject.withPlaceholder)return a;var l=kt(u,t,n);return zt(a,l)}({draggable:v,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return Object(a.a)({},t,{current:h,dimensions:{draggables:l.draggables,droppables:y},impact:m,viewport:u,scrollJumpRequest:c||null,forceShouldAnimate:!c&&null})};var Vt=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,c=t.displaced,u=at({afterDragging:function(e,t){return e.map((function(e){return t[e]}))}(c.all,r),destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:c});return Object(a.a)({},t,{displaced:u})},Kt=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,c=bt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return wt({pageBorderBoxCenter:c,draggable:n,viewport:i})},Ut=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&pe(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,c=a.draggables,u=a.droppables,l=c[t.critical.draggable.id],s=Nt(o);s||pe(!1);var f=u[s],p=Vt({impact:o,viewport:i,destination:f,draggables:c}),d=Kt({impact:p,draggable:l,droppable:f,draggables:c,viewport:i,afterCritical:t.afterCritical});return Bt({impact:p,clientSelection:d,state:t,dimensions:a,viewport:i})},Wt=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=_t(n.axis,t.displaceBy),a=Ue(n.descriptor.id,r),c=a.indexOf(t);-1===c&&pe(!1);var u,l=a.slice(c+1),s=l.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),f={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:s};return{impact:{displaced:at({afterDragging:l,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:f}},qt=function(e){0},Gt=function(e){0},$t=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||pe(!1),t}(n[t]).scroll.diff.value;return function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=ne(t.client,n),i=re(o,r);return Object(a.a)({},t,{placeholder:Object(a.a)({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:xe(o,i),initialWindowScroll:r.scroll.initial})}))},Yt=function(e){return"SNAP"===e.movementMode},Xt=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:zt(e.droppables,t)}}(e.dimensions,t);return!Yt(e)||n?Bt({state:e,dimensions:r}):Ut({state:e,dimensions:r})};function Zt(e){return e.isDragging&&"SNAP"===e.movementMode?Object(a.a)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Jt={phase:"IDLE",completed:null,shouldFlush:!1},Qt=function(e,t){if(void 0===e&&(e=Jt),"FLUSH"===t.type)return Object(a.a)({},Jt,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&pe(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,c=n.dimensions,u=n.movementMode,l=c.draggables[r.draggable.id],s=c.droppables[r.droppable.id],f={selection:o,borderBoxCenter:l.client.borderBox.center,offset:je},p={client:f,page:{selection:xe(f.selection,i.scroll.initial),borderBoxCenter:xe(f.selection,i.scroll.initial),offset:xe(f.selection,i.scroll.diff.value)}},d=Ve(c.droppables).every((function(e){return!e.isFixedOnPage})),h=Wt({draggable:l,home:s,draggables:c.draggables,viewport:i}),v=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:u,dimensions:c,initial:p,current:p,isWindowScrollAllowed:d,impact:v,afterCritical:h.afterCritical,onLiftImpact:v,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&pe(!1),Object(a.a)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&pe(!1),function(e){var t=e.state,n=e.published;qt();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return De(n,e.scroll)})),o=Object(a.a)({},t.dimensions.droppables,{},He(r)),i=Be($t({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),c=Object(a.a)({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete c[e]}));var u={droppables:o,draggables:c},l=Nt(t.impact),s=l?u.droppables[l]:null,f=u.draggables[t.critical.draggable.id],p=u.droppables[t.critical.droppable.id],d=Wt({draggable:f,home:p,draggables:c,viewport:t.viewport}),h=d.impact,v=d.afterCritical,m=s&&s.isCombineEnabled?t.impact:h,y=Ft({pageOffset:t.current.page.offset,draggable:u.draggables[t.critical.draggable.id],draggables:u.draggables,droppables:u.droppables,previousImpact:m,viewport:t.viewport,afterCritical:v});Gt();var b=Object(a.a)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:y,onLiftImpact:h,dimensions:u,afterCritical:v,forceShouldAnimate:!1});return"COLLECTING"===t.phase?b:Object(a.a)({phase:"DROP_PENDING"},b,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;At(e)||pe(!1);var m=t.payload.client;return Se(m,e.current.client.selection)?e:Bt({state:e,clientSelection:m,impact:Yt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Zt(e);if("COLLECTING"===e.phase)return Zt(e);At(e)||pe(!1);var y=t.payload,b=y.id,g=y.newScroll,O=e.dimensions.droppables[b];if(!O)return e;var w=De(O,g);return Xt(e,w,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;At(e)||pe(!1);var j=t.payload,x=j.id,E=j.isEnabled,S=e.dimensions.droppables[x];S||pe(!1),S.isEnabled===E&&pe(!1);var C=Object(a.a)({},S,{isEnabled:E});return Xt(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;At(e)||pe(!1);var _=t.payload,P=_.id,k=_.isCombineEnabled,M=e.dimensions.droppables[P];M||pe(!1),M.isCombineEnabled===k&&pe(!1);var N=Object(a.a)({},M,{isCombineEnabled:k});return Xt(e,N,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;At(e)||pe(!1),e.isWindowScrollAllowed||pe(!1);var T=t.payload.newScroll;if(Se(e.viewport.scroll.current,T))return Zt(e);var A=gt(e.viewport,T);return Yt(e)?Ut({state:e,viewport:A}):Bt({state:e,viewport:A})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!At(e))return e;var R=t.payload.maxScroll;if(Se(R,e.viewport.scroll.max))return e;var D=Object(a.a)({},e.viewport,{scroll:Object(a.a)({},e.viewport.scroll,{max:R})});return Object(a.a)({phase:"DRAGGING"},e,{viewport:D})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&pe(!1);var I=Tt({state:e,type:t.type});return I?Bt({state:e,impact:I.impact,clientSelection:I.clientSelection,scrollJumpRequest:I.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&pe(!1),Object(a.a)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var F=t.payload,z=F.completed,H=F.dropDuration,B=F.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&pe(!1),{phase:"DROP_ANIMATING",completed:z,dropDuration:H,newHomeClientOffset:B,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},en=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},tn=function(){return{type:"COLLECTION_STARTING",payload:null}},nn=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},rn=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},on=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},an=function(e){return{type:"MOVE",payload:e}},cn=function(){return{type:"MOVE_UP",payload:null}},un=function(){return{type:"MOVE_DOWN",payload:null}},ln=function(){return{type:"MOVE_RIGHT",payload:null}},sn=function(){return{type:"MOVE_LEFT",payload:null}},fn=function(e){return{type:"DROP_COMPLETE",payload:e}},pn=function(e){return{type:"DROP",payload:e}},dn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var hn="cubic-bezier(.2,1,.1,1)",vn={drop:0,combining:.7},mn={drop:.75},yn=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",bn={fluid:"opacity "+yn,snap:"transform "+yn+", opacity "+yn,drop:function(e){var t=e+"s "+hn;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+yn,placeholder:"height "+yn+", width "+yn+", margin "+yn},gn=function(e){return Se(e,je)?null:"translate("+e.x+"px, "+e.y+"px)"},On=gn,wn=function(e,t){var n=gn(e);return n?t?n+" scale("+mn.drop+")":n:null},jn=.33,xn=.55,En=xn-jn,Sn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&pe(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&pe(!1);var c=o.critical,u=o.dimensions,l=u.draggables[o.critical.draggable.id],s=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,c=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:Object(a.a)({},r,{displaced:Xe}),didDropInsideDroppable:!0}:{impact:Vt({draggables:t,impact:c,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),f=s.impact,p=s.didDropInsideDroppable,d=p?We(f):null,h=p?qe(f):null,v={index:c.draggable.index,droppableId:c.droppable.id},m={draggableId:l.descriptor.id,type:l.descriptor.type,source:v,reason:i,mode:o.movementMode,destination:d,combine:h},y=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,c=r.droppables,u=Nt(t),l=u?c[u]:null,s=c[n.descriptor.droppableId],f=Kt({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:l||s,viewport:o});return Ee(f,n.client.borderBox.center)}({impact:f,draggable:l,dimensions:u,viewport:o.viewport,afterCritical:o.afterCritical}),b={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:f};if(!Se(o.current.client.offset,y)||Boolean(m.combine)){var g=function(e){var t=e.current,n=e.destination,r=e.reason,o=Pe(t,n);if(o<=0)return jn;if(o>=1500)return xn;var i=jn+En*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:y,reason:i});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:y,dropDuration:g,completed:b}))}else n(fn({completed:b}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},Cn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function _n(e){var t=e.onWindowScroll;var n,r=ce((function(){t(Cn())})),o=(n=r,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||n()}}),i=le;function a(){return i!==le}return{start:function(){a()&&pe(!1),i=se(window,[o])},stop:function(){a()||pe(!1),r.cancel(),i(),i=le},isActive:a}}var Pn=function(e){var t=_n({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},kn=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=Le(e,(function(e){return e.timerId===t}));-1===n&&pe(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Mn=function(e,t){qt(),t(),Gt()},Nn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Tn=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},An=function(e,t){var n=function(e,t){var n=kn(),r=null,o=function(n){r||pe(!1),r=null,Mn(0,(function(){return Tn(e().onDragEnd,n,t,we)}))};return{beforeCapture:function(t,n){r&&pe(!1),Mn(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&pe(!1),Mn(0,(function(){var r=e().onBeforeDragStart;r&&r(Nn(t,n))}))},start:function(o,i){r&&pe(!1);var a=Nn(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Mn(0,(function(){return Tn(e().onDragStart,a,t,ge)}))}))},update:function(o,i){var c=We(i),u=qe(i);r||pe(!1);var l=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);l&&(r.lastCritical=o);var s,f,p=(s=r.lastLocation,f=c,!(null==s&&null==f||null!=s&&null!=f&&s.droppableId===f.droppableId&&s.index===f.index));p&&(r.lastLocation=c);var d=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)}(r.lastCombine,u);if(d&&(r.lastCombine=u),l||p||d){var h=Object(a.a)({},Nn(o,r.mode),{combine:u,destination:c});n.add((function(){Mn(0,(function(){return Tn(e().onDragUpdate,h,t,Oe)}))}))}},flush:function(){r||pe(!1),n.flush()},drop:o,abort:function(){if(r){var e=Object(a.a)({},Nn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Rn=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&pe(!1),e.dispatch(fn({completed:r.completed}))}else t(n)}}},Dn=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=se(window,[i])}))}}}},In=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(pn({reason:r.reason})))}}}},Ln=c.c,Fn=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,u=e.autoScroller;return Object(c.d)(Qt,Ln(Object(c.a)((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,c=i.clientSelection,u=i.movementMode,l=n();"DROP_ANIMATING"===l.phase&&r(fn({completed:l.completed})),"IDLE"!==n().phase&&pe(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:u}});var s={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},f=e.startPublishing(s),p=f.critical,d=f.dimensions,h=f.viewport;r(function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:p,dimensions:d,clientSelection:c,movementMode:u,viewport:h}))}else t(o)}}}}(n),Sn,Rn,Dn,In,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&pe(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(u),Pn,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),An(i,a))))};var zn=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=Ee({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Hn=function(){var e=document.documentElement;return e||pe(!1),e},Bn=function(){var e=Hn();return zn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Vn=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;qt();var o,i,a,c,u,l,s,f=(o=Cn(),i=Bn(),a=o.y,c=o.x,u=Hn(),l=u.clientWidth,s=u.clientHeight,{frame:X({top:a,left:c,right:c+l,bottom:a+s}),scroll:{initial:o,current:o,max:i,diff:{value:je,displacement:je}}}),p=f.scroll.current,d=t.droppable,h=r.droppable.getAllByType(d.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(p,n)})),v=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(p)})),m={draggables:Be(v),droppables:He(h)};return Gt(),{dimensions:m,critical:t,viewport:f}};function Kn(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Un,Wn,qn=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,qt();var e=r,i=e.additions,a=e.removals,c=e.modified,u=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(je)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),l=Object.keys(c).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),s={additions:u,removals:Object.keys(a),modified:l};r={additions:{},removals:{},modified:{}},Gt(),n.publish(s)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||pe(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Kn(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Kn(e,o,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||pe(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||pe(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||pe(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&pe(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},c=e.subscribe(o);return n={critical:a,unsubscribe:c},Vn({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}}},Gn=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},$n=function(e){window.scrollBy(e.x,e.y)},Yn=Object(ae.a)((function(e){return Ve(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Xn=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}return function(e,t){return Fe(Yn(t),(function(t){return t.frame||pe(!1),Rt(t.frame.pageMarginBox)(e)}))}(t,r)},Zn=.25,Jn=.05,Qn=28,er=function(e){return Math.pow(e,2)},tr={stopDampeningAt:1200,accelerateAt:360},nr=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},rr=tr.accelerateAt,or=tr.stopDampeningAt,ir=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Qn;if(e===t.startScrollingFrom)return 1;var n=nr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=Qn*er(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=or,o=Date.now()-n;if(o>=or)return e;if(o<rr)return 1;var i=nr({startOfRange:rr,endOfRange:r,current:o}),a=e*er(i);return Math.ceil(a)}(i,r),1):i},ar=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*Zn,maxScrollValueAt:e[t.size]*Jn}}(t,o);return n[o.end]<n[o.start]?ir({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*ir({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},cr=Me((function(e){return 0===e?0:e})),ur=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},c=ar({container:n,distanceToEdges:a,dragStartTime:t,axis:tt,shouldUseTimeDampening:i}),u=ar({container:n,distanceToEdges:a,dragStartTime:t,axis:nt,shouldUseTimeDampening:i}),l=cr({x:u,y:c});if(Se(l,je))return null;var s=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:l});return s?Se(s,je)?null:s:null},lr=Me((function(e){return 0===e?0:e>0?1:-1})),sr=(Un=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=xe(t,r),i={x:Un(o.x,n.x),y:Un(o.y,n.y)};return Se(i,je)?null:i}),fr=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=lr(r),a=sr({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},pr=function(e,t){return fr({current:e.scroll.current,max:e.scroll.max,change:t})},dr=function(e,t){var n=e.frame;return!!n&&fr({current:n.scroll.current,max:n.scroll.max,change:t})},hr=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,c=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=ur({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&pr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:c,center:a,shouldUseTimeDampening:r});if(u)return void o(u)}var l=Xn({center:a,destination:Nt(t.impact),droppables:t.dimensions.droppables});if(l){var s=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var c=ur({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return c&&dr(t,c)?c:null}({dragStartTime:n,droppable:l,subject:c,center:a,shouldUseTimeDampening:r});s&&i(l.descriptor.id,s)}},vr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!dr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&dr(e,t)?sr({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=Ee(t,r);return n(e.descriptor.id,o),Ee(t,o)},i=function(e,t,n){if(!e)return n;if(!pr(t,n))return n;var o=function(e,t){if(!pr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return sr({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=Ee(n,o);return r(i),Ee(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Nt(e.impact);r||pe(!1);var a=o(e.dimensions.droppables[r],n);if(a){var c=e.viewport,u=i(e.isWindowScrollAllowed,c,a);u&&function(e,n){var r=xe(e.current.client.selection,n);t({client:r})}(e,u)}}}},mr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=ce(t),o=ce(n),i=null,a=function(e){i||pe(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;hr({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){qt(),i&&pe(!1);var t=Date.now(),n=!1,r=function(){n=!0};hr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},Gt(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=vr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},yr={base:Wn="data-rbd-drag-handle",draggableId:Wn+"-draggable-id",contextId:Wn+"-context-id"},br=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),gr=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Or={contextId:"data-rbd-scroll-container-context-id"},wr=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},jr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,xr=function(){var e=document.querySelector("head");return e||pe(!1),e},Er=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Sr(e,t){var n=G((function(){return function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(yr.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(r="\n transition: "+bn.outOfTheWay+";\n ",{selector:o(br.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(gr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:wr(a,"always"),resting:wr(a,"resting"),dragging:wr(a,"dragging"),dropAnimating:wr(a,"dropAnimating"),userCancel:wr(a,"userCancel")}}(e)}),[e]),o=Object(r.useRef)(null),i=Object(r.useRef)(null),a=$(Object(ae.a)((function(e){var t=i.current;t||pe(!1),t.textContent=e})),[]),c=$((function(e){var t=o.current;t||pe(!1),t.textContent=e}),[]);jr((function(){(o.current||i.current)&&pe(!1);var r=Er(t),u=Er(t);return o.current=r,i.current=u,r.setAttribute("data-rbd-always",e),u.setAttribute("data-rbd-dynamic",e),xr().appendChild(r),xr().appendChild(u),c(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||pe(!1),xr().removeChild(t),e.current=null};e(o),e(i)}}),[t,c,a,n.always,n.resting,e]);var u=$((function(){return a(n.dragging)}),[a,n.dragging]),l=$((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),s=$((function(){i.current&&a(n.resting)}),[a,n.resting]);return G((function(){return{dragging:u,dropping:l,resting:s}}),[u,l,s])}var Cr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function _r(e){return e instanceof Cr(e).HTMLElement}function Pr(e,t){var n="["+yr.contextId+'="'+e+'"]',r=ze(document.querySelectorAll(n));if(!r.length)return null;var o=Fe(r,(function(e){return e.getAttribute(yr.draggableId)===t}));return o&&_r(o)?o:null}function kr(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||pe(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Ie(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||pe(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Ie(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Mr=o.a.createContext(null),Nr=function(){var e=document.body;return e||pe(!1),e},Tr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var Ar=0,Rr={separator:"::"};function Dr(e,t){return void 0===t&&(t=Rr),G((function(){return""+e+t.separator+Ar++}),[t.separator,e])}var Ir=o.a.createContext(null);function Lr(e){0}function Fr(e,t){Lr()}function zr(){Fr()}function Hr(e){var t=Object(r.useRef)(e);return Object(r.useEffect)((function(){t.current=e})),t}var Br,Vr=((Br={})[13]=!0,Br[9]=!0,Br),Kr=function(e){Vr[e.keyCode]&&e.preventDefault()},Ur=function(){var e="visibilitychange";return"undefined"==typeof document?e:Fe([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Wr,qr={type:"IDLE"};function Gr(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},c=r();if("DRAGGING"===c.type)return e.preventDefault(),void c.actions.move(a);"PENDING"!==c.type&&pe(!1);var u=c.point;if(l=u,s=a,Math.abs(s.x-l.x)>=5||Math.abs(s.y-l.y)>=5){var l,s;e.preventDefault();var f=c.actions.fluidLift(a);o({type:"DRAGGING",actions:f})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Kr(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&pe(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Ur,fn:t}]}function $r(){}var Yr=((Wr={})[34]=!0,Wr[33]=!0,Wr[36]=!0,Wr[35]=!0,Wr);function Xr(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Yr[r.keyCode]?r.preventDefault():Kr(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Ur,fn:n}]}var Zr={type:"IDLE"};var Jr={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Qr(e,t){var n=t.target;return!!_r(n)&&function e(t,n){if(null==n)return!1;if(Boolean(Jr[n.tagName.toLowerCase()]))return!0;var r=n.getAttribute("contenteditable");return"true"===r||""===r||n!==t&&e(t,n.parentElement)}(e,n)}var eo=function(e){return X(e.getBoundingClientRect()).center};var to="undefined"==typeof document?"matches":Fe(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function no(e,t){return e.closest?e.closest(t):function e(t,n){return null==t?null:t[to](n)?t:e(t.parentElement,n)}(e,t)}function ro(e,t){var n,r=t.target;if(!((n=r)instanceof Cr(n).Element))return null;var o=no(r,function(e){return"["+yr.contextId+'="'+e+'"]'}(e));return o&&_r(o)?o:null}function oo(e){e.preventDefault()}function io(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function ao(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!Gn(n.getState(),o))}function co(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,c=e.forceSensorStop,u=e.sourceEvent;if(!ao({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var l=o.draggable.getById(i),s=function(e,t){var n="["+br.contextId+'="'+e+'"]',r=Fe(ze(document.querySelectorAll(n)),(function(e){return e.getAttribute(br.id)===t}));return r&&_r(r)?r:null}(n,l.descriptor.id);if(!s)return null;if(u&&!l.options.canDragInteractiveElements&&Qr(s,u))return null;var f=t.claim(c||le),p="PRE_DRAG";function d(){return l.options.shouldRespectForcePress}function h(){return t.isActive(f)}var v=function(e,t){io({expected:e,phase:p,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),p="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=se(window,[{eventName:"click",fn:oo,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(pn({reason:t}))}return"PRE_DRAG"!==p&&(n(),"PRE_DRAG"!==p&&pe(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),p="DRAGGING",Object(a.a)({isActive:function(){return io({expected:"DRAGGING",phase:p,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:d,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return io({expected:"PRE_DRAG",phase:p,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:d,fluidLift:function(e){var t=ce((function(e){v((function(){return an({client:e})}))})),n=m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return Object(a.a)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return v(cn)},moveRight:function(){return v(ln)},moveDown:function(){return v(un)},moveLeft:function(){return v(sn)}};return m({liftActionArgs:{id:i,clientSelection:eo(s),movementMode:"SNAP"},cleanup:le,actions:e})},abort:function(){io({expected:"PRE_DRAG",phase:p,isLockActive:h,shouldWarn:!0})&&t.release()}}}var uo=[function(e){var t=Object(r.useRef)(qr),n=Object(r.useRef)(le),o=G((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,c,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),s(o,i)}}}}}}),[e]),i=G((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=$((function(){n.current=se(window,[i,o],{passive:!1,capture:!0})}),[i,o]),c=$((function(){"IDLE"!==t.current.type&&(t.current=qr,n.current(),a())}),[a]),u=$((function(){var e=t.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[c]),l=$((function(){var e=Gr({cancel:u,completed:c,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=se(window,e,{capture:!0,passive:!1})}),[u,c]),s=$((function(e,n){"IDLE"!==t.current.type&&pe(!1),t.current={type:"PENDING",point:n,actions:e},l()}),[l]);jr((function(){return a(),function(){n.current()}}),[a])},function(e){var t=Object(r.useRef)($r),n=G((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,u,{sourceEvent:n});if(i){n.preventDefault();var a=!0,c=i.snapLift();t.current(),t.current=se(window,Xr(c,u),{capture:!0,passive:!1})}}}function u(){a||pe(!1),a=!1,t.current(),o()}}}}),[e]),o=$((function(){t.current=se(window,[n],{passive:!1,capture:!0})}),[n]);jr((function(){return o(),function(){t.current()}}),[o])},function(e){var t=Object(r.useRef)(Zr),n=Object(r.useRef)(le),o=$((function(){return t.current}),[]),i=$((function(e){t.current=e}),[]),a=G((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,u,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),p(o,a)}}}}}}),[e]),c=$((function(){n.current=se(window,[a],{capture:!0,passive:!1})}),[a]),u=$((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Zr),n.current(),c())}),[c,i]),l=$((function(){var e=t.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),s=$((function(){var e={capture:!0,passive:!1},t={cancel:l,completed:u,getPhase:o},r=se(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&pe(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:Ur,fn:t}]}(t),e),i=se(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Ur,fn:t}]}(t),e);n.current=function(){r(),i()}}),[l,o,u]),f=$((function(){var e=o();"PENDING"!==e.type&&pe(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),p=$((function(e,t){"IDLE"!==o().type&&pe(!1);var n=setTimeout(f,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),s()}),[s,o,i,f]);jr((function(){return c(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Zr))}}),[o,c,i]),jr((function(){return se(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function lo(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,c=[].concat(a?uo:[],i||[]),u=Object(r.useState)((function(){return function(){var e=null;function t(){e||pe(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&pe(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],l=$((function(e,t){e.isDragging&&!t.isDragging&&u.tryAbandon()}),[u]);jr((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();l(e,t),e=t}))}),[u,n,l]),jr((function(){return u.tryAbandon}),[u.tryAbandon]);var s=$((function(e){return ao({lockAPI:u,registry:o,store:n,draggableId:e})}),[u,o,n]),f=$((function(e,r,i){return co({lockAPI:u,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,u,o,n]),p=$((function(e){return function(e,t){var n=ro(e,t);return n?n.getAttribute(yr.draggableId):null}(t,e)}),[t]),d=$((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=$((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[u,n]),v=$(u.isClaimed,[u]),m=G((function(){return{canGetLock:s,tryGetLock:f,findClosestDraggableId:p,findOptionsForDraggable:d,tryReleaseLock:h,isLockClaimed:v}}),[s,f,p,d,h,v]);Lr();for(var y=0;y<c.length;y++)c[y](m)}function so(e){return e.current||pe(!1),e.current}function fo(e){var t=e.contextId,n=e.setCallbacks,i=e.sensors,u=e.nonce,l=e.dragHandleUsageInstructions,s=Object(r.useRef)(null);zr();var f=Hr(e),p=$((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(f.current)}),[f]),h=function(e){var t=G((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=Object(r.useRef)(null);return Object(r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Object(a.a)(e.style,Tr),Nr().appendChild(e),function(){setTimeout((function(){var t=Nr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),$((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),v=function(e){var t=e.contextId,n=e.text,o=Dr("hidden-text",{separator:"-"}),i=G((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,t]);return Object(r.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",Nr().appendChild(e),function(){var t=Nr();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:l}),m=Sr(t,u),y=$((function(e){so(s).dispatch(e)}),[]),b=G((function(){return Object(c.b)({publishWhileDragging:en,updateDroppableScroll:nn,updateDroppableIsEnabled:rn,updateDroppableIsCombineEnabled:on,collectionStarting:tn},y)}),[y]),g=function(){var e=G(kr,[]);return Object(r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),O=G((function(){return qn(g,b)}),[g,b]),w=G((function(){return mr(Object(a.a)({scrollWindow:$n,scrollDroppable:O.scrollDroppable},Object(c.b)({move:an},y)))}),[O.scrollDroppable,y]),j=function(e){var t=Object(r.useRef)({}),n=Object(r.useRef)(null),o=Object(r.useRef)(null),i=Object(r.useRef)(!1),a=$((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),c=$((function(t){var n=Pr(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),u=$((function(e,t){n.current===e&&(n.current=t)}),[]),l=$((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&c(e)})))}),[c]),s=$((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(yr.draggableId)===e&&(n.current=e)}),[]);return jr((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),G((function(){return{register:a,tryRecordFocus:s,tryRestoreFocusRecorded:l,tryShiftRecord:u}}),[a,s,l,u])}(t),x=G((function(){return Fn({announce:h,autoScroller:w,dimensionMarshal:O,focusMarshal:j,getResponders:p,styleMarshal:m})}),[h,w,O,j,p,m]);s.current=x;var E=$((function(){var e=so(s);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),S=$((function(){var e=so(s).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(G((function(){return{isDragging:S,tryAbort:E}}),[S,E]));var C=$((function(e){return Gn(so(s).getState(),e)}),[]),_=$((function(){return At(so(s).getState())}),[]),P=G((function(){return{marshal:O,focus:j,contextId:t,canLift:C,isMovementAllowed:_,dragHandleUsageInstructionsId:v,registry:g}}),[t,O,v,j,C,_,g]);return lo({contextId:t,store:x,registry:g,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),Object(r.useEffect)((function(){return E}),[E]),o.a.createElement(Ir.Provider,{value:P},o.a.createElement(d,{context:Mr,store:x},e.children))}var po=0;function ho(e){var t=G((function(){return""+po++}),[]),n=e.dragHandleUsageInstructions||be;return o.a.createElement(de,null,(function(r){return o.a.createElement(fo,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var vo=function(e){return function(t){return e===t}},mo=vo("scroll"),yo=vo("auto"),bo=(vo("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),go=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return bo(n,mo)||bo(n,yo)},Oo=function e(t){return null==t||t===document.body||t===document.documentElement?null:go(t)?t:e(t.parentElement)},wo=function(e){return{x:e.scrollLeft,y:e.scrollTop}},jo=function(e){return{closestScrollable:Oo(e),isFixedOnPage:function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))}(e)}},xo=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,c=e.isCombineEnabled,u=e.shouldClipSubject,l=r.closestScrollable,s=function(e,t){var n=ie(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,c=Z({top:r,right:a,bottom:i,left:o},n.border);return ee({borderBox:c,margin:n.margin,border:n.border,padding:n.padding})}(t,l),f=re(s,o),p=function(){if(!l)return null;var e=ie(l),t={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:e,page:re(e,o),scroll:wo(l),scrollSize:t,shouldClipSubject:u}}();return function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,c=e.page,u=e.closest,l=function(){if(!u)return null;var e=u.scrollSize,t=u.client,n=zn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:n,diff:{value:je,displacement:je}}}}(),s="vertical"===i?tt:nt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:s,isEnabled:n,client:a,page:c,frame:l,subject:Re({page:c,withPlaceholder:null,axis:s,frame:l})}}({descriptor:n,isEnabled:!a,isCombineEnabled:c,isFixedOnPage:r.isFixedOnPage,direction:i,client:s,page:f,closest:p})},Eo={passive:!1},So={passive:!0},Co=function(e){return e.shouldPublishImmediately?Eo:So};function _o(e){var t=Object(r.useContext)(e);return t||pe(!1),t}var Po=function(e){return e&&e.env.closestScrollable||null};function ko(){}var Mo={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},No=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?Mo:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?bn.placeholder:null}};var To=o.a.memo((function(e){var t=Object(r.useRef)(null),n=$((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),i=e.animate,a=e.onTransitionEnd,c=e.onClose,u=e.contextId,l=Object(r.useState)("open"===e.animate),s=l[0],f=l[1];Object(r.useEffect)((function(){return s?"open"!==i?(n(),f(!1),ko):t.current?ko:(t.current=setTimeout((function(){t.current=null,f(!1)})),n):ko}),[i,s,n]);var p=$((function(e){"height"===e.propertyName&&(a(),"close"===i&&c())}),[i,c,a]),d=No({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return o.a.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":u,onTransitionEnd:p,ref:e.innerRef})})),Ao=o.a.createContext(null);var Ro=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(o.a.PureComponent),Do=5e3,Io=4500,Lo=function(e,t){return t?bn.drop(t.duration):e?bn.snap:bn.fluid},Fo=function(e,t){return e?t?vn.drop:vn.combining:null};function zo(e){return"DRAGGING"===e.type?(r=(n=e).dimension.client,o=n.offset,i=n.combineWith,a=n.dropping,c=Boolean(i),u=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(n),l=Boolean(a),s=l?wn(o,c):On(o),{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Lo(u,a),transform:s,opacity:Fo(c,l),zIndex:l?Io:Do,pointerEvents:"none"}):{transform:On((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t,n,r,o,i,a,c,u,l,s}function Ho(e){var t=Dr("draggable"),n=e.descriptor,o=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,c=e.shouldRespectForcePress,u=e.isEnabled,l=G((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:c,isEnabled:u}}),[a,u,c]),s=$((function(e){var t=i();return t||pe(!1),function(e,t,n){void 0===n&&(n=je);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=oe(o,r),a=re(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,i]),f=G((function(){return{uniqueId:t,descriptor:n,options:l,getDimension:s}}),[n,s,l,t]),p=Object(r.useRef)(f),d=Object(r.useRef)(!0);jr((function(){return o.draggable.register(p.current),function(){return o.draggable.unregister(p.current)}}),[o.draggable]),jr((function(){if(d.current)d.current=!1;else{var e=p.current;p.current=f,o.draggable.update(f,e)}}),[f,o.draggable])}function Bo(e,t,n){Fr()}function Vo(e){e.preventDefault()}var Ko=function(e,t){return e===t},Uo=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Wo(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var qo={mapped:{type:"SECONDARY",offset:je,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Wo(null)}};var Go=V((function(){var e,t,n,r=(e=Object(ae.a)((function(e,t){return{x:e,y:t}})),t=Object(ae.a)((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=Object(ae.a)((function(e,n,r,o,i,a,c){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:c,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],c=Nt(r.impact),u=(s=r.impact).at&&"COMBINE"===s.at.type?s.at.combine.draggableId:null,l=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,c,u,l)}var s;if("DROP_ANIMATING"===r.phase){var f=r.completed;if(f.result.draggableId!==o.draggableId)return null;var p=o.isClone,d=r.dimensions.draggables[o.draggableId],h=f.result,v=h.mode,m=Uo(h),y=function(e){return e.combine?e.combine.draggableId:null}(h),b={duration:r.dropDuration,curve:hn,moveTo:r.newHomeClientOffset,opacity:y?vn.drop:null,scale:y?mn.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:d,dropping:b,draggingOver:m,combineWith:y,mode:v,forceShouldAnimate:null,snapshot:t(v,p,m,y,b)}}}return null}),o=function(){var e=Object(ae.a)((function(e,t){return{x:e,y:t}})),t=Object(ae.a)(Wo),n=Object(ae.a)((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(je,e,!0):null},o=function(t,o,i,a){var c=i.displaced.visible[t],u=Boolean(a.inVirtualList&&a.effected[t]),l=qe(i),s=l&&l.draggableId===t?o:null;if(!c){if(!u)return r(s);if(i.displaced.invisible[t])return null;var f=Ce(a.displacedBy.point),p=e(f.x,f.y);return n(p,s,!0)}if(u)return r(s);var d=i.displacedBy.point,h=e(d.x,d.y);return n(h,s,c.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||qo}}),{dropAnimationFinished:dn},null,{context:Mr,pure:!0,areStatePropsEqual:Ko})((function(e){var t=Object(r.useRef)(null),n=$((function(e){t.current=e}),[]),o=$((function(){return t.current}),[]),i=_o(Ir),a=i.contextId,c=i.dragHandleUsageInstructionsId,u=i.registry,l=_o(Ao),s=l.type,f=l.droppableId,p=G((function(){return{id:e.draggableId,index:e.index,type:s,droppableId:f}}),[e.draggableId,e.index,s,f]),d=e.children,h=e.draggableId,v=e.isEnabled,m=e.shouldRespectForcePress,y=e.canDragInteractiveElements,b=e.isClone,g=e.mapped,O=e.dropAnimationFinished;Bo(),Lr(),b||Ho(G((function(){return{descriptor:p,registry:u,getDraggableRef:o,canDragInteractiveElements:y,shouldRespectForcePress:m,isEnabled:v}}),[p,u,o,y,m,v]));var w=G((function(){return v?{tabIndex:0,role:"button","aria-describedby":c,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Vo}:null}),[a,c,h,v]),j=$((function(e){"DRAGGING"===g.type&&g.dropping&&"transform"===e.propertyName&&O()}),[O,g]),x=G((function(){var e=zo(g),t="DRAGGING"===g.type&&g.dropping?j:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:w}}),[a,w,h,g,j,n]),E=G((function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}}),[p.droppableId,p.id,p.index,p.type]);return d(x,g.snapshot,E)}));function $o(e){return _o(Ao).isUsingCloneFor!==e.draggableId||e.isClone?o.a.createElement(Go,e):null}function Yo(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return o.a.createElement($o,Object(a.a)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var Xo=function(e,t){return e===t.droppable.type},Zo=function(e,t){return t.draggables[e.draggable.id]};var Jo={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||pe(!1),document.body}},Qo=V((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=Object(a.a)({},e,{shouldAnimatePlaceholder:!1}),n=Object(ae.a)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=Object(ae.a)((function(r,o,i,a,c,u){var l=c.descriptor.id;if(c.descriptor.droppableId===r){var s=u?{render:u,dragging:n(c.descriptor)}:null,f={isDraggingOver:i,draggingOverWith:i?l:null,draggingFromThisWith:l,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:f,useClone:s}}if(!o)return t;if(!a)return e;var p={isDraggingOver:i,draggingOverWith:l,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,c=!o.isDropDisabled,u=o.renderClone;if(n.isDragging){var l=n.critical;if(!Xo(a,l))return t;var s=Zo(l,n.dimensions),f=Nt(n.impact)===i;return r(i,c,f,f,s,u)}if("DROP_ANIMATING"===n.phase){var p=n.completed;if(!Xo(a,p.critical))return t;var d=Zo(p.critical,n.dimensions);return r(i,c,Uo(p.result)===i,Nt(p.impact)===i,d,u)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!Xo(a,h.critical))return t;var v=Nt(h.impact)===i,m=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),y=h.critical.droppable.id===i;return v?m?e:t:y?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Mr,pure:!0,areStatePropsEqual:Ko})((function(e){var t=Object(r.useContext)(Ir);t||pe(!1);var n=t.contextId,i=t.isMovementAllowed,a=Object(r.useRef)(null),c=Object(r.useRef)(null),u=e.children,l=e.droppableId,s=e.type,f=e.mode,p=e.direction,d=e.ignoreContainerClipping,h=e.isDropDisabled,v=e.isCombineEnabled,m=e.snapshot,y=e.useClone,b=e.updateViewportMaxScroll,g=e.getContainerForClone,O=$((function(){return a.current}),[]),w=$((function(e){a.current=e}),[]),j=($((function(){return c.current}),[]),$((function(e){c.current=e}),[]));Fr();var x=$((function(){i()&&b({maxScroll:Bn()})}),[i,b]);!function(e){var t=Object(r.useRef)(null),n=_o(Ir),o=Dr("droppable"),i=n.registry,a=n.marshal,c=Hr(e),u=G((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),l=Object(r.useRef)(u),s=G((function(){return Object(ae.a)((function(e,n){t.current||pe(!1);var r={x:e,y:n};a.updateDroppableScroll(u.id,r)}))}),[u.id,a]),f=$((function(){var e=t.current;return e&&e.env.closestScrollable?wo(e.env.closestScrollable):je}),[]),p=$((function(){var e=f();s(e.x,e.y)}),[f,s]),d=G((function(){return ce(p)}),[p]),h=$((function(){var e=t.current,n=Po(e);e&&n||pe(!1),e.scrollOptions.shouldPublishImmediately?p():d()}),[d,p]),v=$((function(e,r){t.current&&pe(!1);var o=c.current,i=o.getDroppableRef();i||pe(!1);var a=jo(i),l={ref:i,descriptor:u,env:a,scrollOptions:r};t.current=l;var s=xo({ref:i,descriptor:u,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),f=a.closestScrollable;return f&&(f.setAttribute(Or.contextId,n.contextId),f.addEventListener("scroll",h,Co(l.scrollOptions))),s}),[n.contextId,u,h,c]),m=$((function(){var e=t.current,n=Po(e);return e&&n||pe(!1),wo(n)}),[]),y=$((function(){var e=t.current;e||pe(!1);var n=Po(e);t.current=null,n&&(d.cancel(),n.removeAttribute(Or.contextId),n.removeEventListener("scroll",h,Co(e.scrollOptions)))}),[h,d]),b=$((function(e){var n=t.current;n||pe(!1);var r=Po(n);r||pe(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),g=G((function(){return{getDimensionAndWatchScroll:v,getScrollWhileDragging:m,dragStopped:y,scroll:b}}),[y,v,m,b]),O=G((function(){return{uniqueId:o,descriptor:u,callbacks:g}}),[g,u,o]);jr((function(){return l.current=O.descriptor,i.droppable.register(O),function(){t.current&&y(),i.droppable.unregister(O)}}),[g,u,y,O,a,i.droppable]),jr((function(){t.current&&a.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),jr((function(){t.current&&a.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:l,type:s,mode:f,direction:p,isDropDisabled:h,isCombineEnabled:v,ignoreContainerClipping:d,getDroppableRef:O});var E=o.a.createElement(Ro,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,i=e.animate;return o.a.createElement(To,{placeholder:r,onClose:t,innerRef:j,animate:i,contextId:n,onTransitionEnd:x})})),S=G((function(){return{innerRef:w,placeholder:E,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":n}}}),[n,l,E,w]),C=y?y.dragging.draggableId:null,_=G((function(){return{droppableId:l,type:s,isUsingCloneFor:C}}),[l,C,s]);return o.a.createElement(Ao.Provider,{value:_},u(S,m),function(){if(!y)return null;var e=y.dragging,t=y.render,n=o.a.createElement($o,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return W.a.createPortal(n,g())}())}));Qo.defaultProps=Jo},function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var r=n(0),o=n(4),i=n.n(o),a=n(742),c=n(580),u=n(373),l=n(190),s=n(753),f=n(815),p=n(631),d=n(102);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=function(e){var t,n,o,a,c=e.prefixCls,u=e.children,s=e.actions,f=e.extra,m=e.className,y=e.colStyle,b=v(e,["prefixCls","children","actions","extra","className","colStyle"]),g=r.useContext(C),O=g.grid,w=g.itemLayout,j=r.useContext(l.b).getPrefixCls,x=j("list",c),E=s&&s.length>0&&r.createElement("ul",{className:"".concat(x,"-item-action"),key:"actions"},s.map((function(e,t){return r.createElement("li",{key:"".concat(x,"-item-action-").concat(t)},e,t!==s.length-1&&r.createElement("em",{className:"".concat(x,"-item-action-split")}))}))),S=O?"div":"li",_=r.createElement(S,h({},b,{className:i()("".concat(x,"-item"),m,(t={},n="".concat(x,"-item-no-flex"),o=!("vertical"===w?f:(r.Children.forEach(u,(function(e){"string"==typeof e&&(a=!0)})),!(a&&r.Children.count(u)>1))),n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t))}),"vertical"===w&&f?[r.createElement("div",{className:"".concat(x,"-item-main"),key:"content"},u,E),r.createElement("div",{className:"".concat(x,"-item-extra"),key:"extra"},f)]:[u,E,Object(d.a)(f,{key:"extra"})]);return O?r.createElement(p.a,{flex:1,style:y},_):_};m.Meta=function(e){var t=e.prefixCls,n=e.className,o=e.avatar,a=e.title,c=e.description,u=v(e,["prefixCls","className","avatar","title","description"]),s=(0,r.useContext(l.b).getPrefixCls)("list",t),f=i()("".concat(s,"-item-meta"),n),p=r.createElement("div",{className:"".concat(s,"-item-meta-content")},a&&r.createElement("h4",{className:"".concat(s,"-item-meta-title")},a),c&&r.createElement("div",{className:"".concat(s,"-item-meta-description")},c));return r.createElement("div",h({},u,{className:f}),o&&r.createElement("div",{className:"".concat(s,"-item-meta-avatar")},o),(a||c)&&p)};var y=m;function b(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||j(e)||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 g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||j(e,t)||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 j(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},C=r.createContext({});C.Consumer;function _(e){var t,n=e.pagination,o=void 0!==n&&n,p=e.prefixCls,d=e.bordered,h=void 0!==d&&d,v=e.split,m=void 0===v||v,y=e.className,j=e.children,x=e.itemLayout,_=e.loadMore,P=e.grid,k=e.dataSource,M=void 0===k?[]:k,N=e.size,T=e.header,A=e.footer,R=e.loading,D=void 0!==R&&R,I=e.rowKey,L=e.renderItem,F=e.locale,z=S(e,["pagination","prefixCls","bordered","split","className","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),H=o&&"object"===E(o)?o:{},B=w(r.useState(H.defaultCurrent||1),2),V=B[0],K=B[1],U=w(r.useState(H.defaultPageSize||10),2),W=U[0],q=U[1],G=r.useContext(l.b),$=G.getPrefixCls,Y=G.renderEmpty,X=G.direction,Z={},J=function(e){return function(t,n){K(t),q(n),o&&o[e]&&o[e](t,n)}},Q=J("onChange"),ee=J("onShowSizeChange"),te=$("list",p),ne=D;"boolean"==typeof ne&&(ne={spinning:ne});var re=ne&&ne.spinning,oe="";switch(N){case"large":oe="lg";break;case"small":oe="sm"}var ie=i()(te,y,(O(t={},"".concat(te,"-vertical"),"vertical"===x),O(t,"".concat(te,"-").concat(oe),oe),O(t,"".concat(te,"-split"),m),O(t,"".concat(te,"-bordered"),h),O(t,"".concat(te,"-loading"),re),O(t,"".concat(te,"-grid"),P),O(t,"".concat(te,"-something-after-last-item"),!!(_||o||A)),O(t,"".concat(te,"-rtl"),"rtl"===X),t)),ae=g(g(g({},{current:1,total:0}),{total:M.length,current:V,pageSize:W}),o||{}),ce=Math.ceil(ae.total/ae.pageSize);ae.current>ce&&(ae.current=ce);var ue=o?r.createElement("div",{className:"".concat(te,"-pagination")},r.createElement(s.a,g({},ae,{onChange:Q,onShowSizeChange:ee}))):null,le=b(M);o&&M.length>(ae.current-1)*ae.pageSize&&(le=b(M).splice((ae.current-1)*ae.pageSize,ae.pageSize));var se=Object(c.a)(),fe=r.useMemo((function(){for(var e=0;e<u.b.length;e+=1){var t=u.b[e];if(se[t])return t}}),[se]),pe=r.useMemo((function(){if(P){var e=fe&&P[fe]?P[fe]:P.column;return e?{width:"".concat(100/e,"%"),maxWidth:"".concat(100/e,"%")}:void 0}}),[null==P?void 0:P.column,fe]),de=re&&r.createElement("div",{style:{minHeight:53}});if(le.length>0){var he=le.map((function(e,t){return function(e,t){return L?((n="function"==typeof I?I(e):"string"==typeof I?e[I]:e.key)||(n="list-item-".concat(t)),Z[t]=n,L(e,t)):null;var n}(e,t)})),ve=r.Children.map(he,(function(e,t){return r.createElement("div",{key:Z[t],style:pe},e)}));de=P?r.createElement(f.a,{gutter:P.gutter},ve):r.createElement("ul",{className:"".concat(te,"-items")},he)}else j||re||(de=function(e,t){return r.createElement("div",{className:"".concat(e,"-empty-text")},F&&F.emptyText||t("List"))}(te,Y));var me=ae.position||"bottom";return r.createElement(C.Provider,{value:{grid:P,itemLayout:x}},r.createElement("div",g({className:ie},z),("top"===me||"both"===me)&&ue,T&&r.createElement("div",{className:"".concat(te,"-header")},T),r.createElement(a.a,ne,de,j),A&&r.createElement("div",{className:"".concat(te,"-footer")},A),_||("bottom"===me||"both"===me)&&ue))}_.Item=y;t.b=_},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],c=Object.keys(a),u=0;u<c.length;++u){var l=c[u],s=a[l];"object"==typeof s&&null!==s&&-1===n.indexOf(s)&&(t.push({obj:a,prop:l}),n.push(s))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<r.length;++a){var c=r.charCodeAt(a);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?o+=r.charAt(a):c<128?o+=i[c]:c<2048?o+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?o+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(a+=1,c=65536+((1023&c)<<10|1023&r.charCodeAt(a)),o+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var c=t;return o(t)&&!o(n)&&(c=a(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),c)}}},function(e,t,n){var r,o,i,a,c;r=n(977),o=n(818).utf8,i=n(978),a=n(818).bin,(c=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var n=r.bytesToWords(e),u=8*e.length,l=1732584193,s=-271733879,f=-1732584194,p=271733878,d=0;d<n.length;d++)n[d]=16711935&(n[d]<<8|n[d]>>>24)|4278255360&(n[d]<<24|n[d]>>>8);n[u>>>5]|=128<<u%32,n[14+(u+64>>>9<<4)]=u;var h=c._ff,v=c._gg,m=c._hh,y=c._ii;for(d=0;d<n.length;d+=16){var b=l,g=s,O=f,w=p;l=h(l,s,f,p,n[d+0],7,-680876936),p=h(p,l,s,f,n[d+1],12,-389564586),f=h(f,p,l,s,n[d+2],17,606105819),s=h(s,f,p,l,n[d+3],22,-1044525330),l=h(l,s,f,p,n[d+4],7,-176418897),p=h(p,l,s,f,n[d+5],12,1200080426),f=h(f,p,l,s,n[d+6],17,-1473231341),s=h(s,f,p,l,n[d+7],22,-45705983),l=h(l,s,f,p,n[d+8],7,1770035416),p=h(p,l,s,f,n[d+9],12,-1958414417),f=h(f,p,l,s,n[d+10],17,-42063),s=h(s,f,p,l,n[d+11],22,-1990404162),l=h(l,s,f,p,n[d+12],7,1804603682),p=h(p,l,s,f,n[d+13],12,-40341101),f=h(f,p,l,s,n[d+14],17,-1502002290),l=v(l,s=h(s,f,p,l,n[d+15],22,1236535329),f,p,n[d+1],5,-165796510),p=v(p,l,s,f,n[d+6],9,-1069501632),f=v(f,p,l,s,n[d+11],14,643717713),s=v(s,f,p,l,n[d+0],20,-373897302),l=v(l,s,f,p,n[d+5],5,-701558691),p=v(p,l,s,f,n[d+10],9,38016083),f=v(f,p,l,s,n[d+15],14,-660478335),s=v(s,f,p,l,n[d+4],20,-405537848),l=v(l,s,f,p,n[d+9],5,568446438),p=v(p,l,s,f,n[d+14],9,-1019803690),f=v(f,p,l,s,n[d+3],14,-187363961),s=v(s,f,p,l,n[d+8],20,1163531501),l=v(l,s,f,p,n[d+13],5,-1444681467),p=v(p,l,s,f,n[d+2],9,-51403784),f=v(f,p,l,s,n[d+7],14,1735328473),l=m(l,s=v(s,f,p,l,n[d+12],20,-1926607734),f,p,n[d+5],4,-378558),p=m(p,l,s,f,n[d+8],11,-2022574463),f=m(f,p,l,s,n[d+11],16,1839030562),s=m(s,f,p,l,n[d+14],23,-35309556),l=m(l,s,f,p,n[d+1],4,-1530992060),p=m(p,l,s,f,n[d+4],11,1272893353),f=m(f,p,l,s,n[d+7],16,-155497632),s=m(s,f,p,l,n[d+10],23,-1094730640),l=m(l,s,f,p,n[d+13],4,681279174),p=m(p,l,s,f,n[d+0],11,-358537222),f=m(f,p,l,s,n[d+3],16,-722521979),s=m(s,f,p,l,n[d+6],23,76029189),l=m(l,s,f,p,n[d+9],4,-640364487),p=m(p,l,s,f,n[d+12],11,-421815835),f=m(f,p,l,s,n[d+15],16,530742520),l=y(l,s=m(s,f,p,l,n[d+2],23,-995338651),f,p,n[d+0],6,-198630844),p=y(p,l,s,f,n[d+7],10,1126891415),f=y(f,p,l,s,n[d+14],15,-1416354905),s=y(s,f,p,l,n[d+5],21,-57434055),l=y(l,s,f,p,n[d+12],6,1700485571),p=y(p,l,s,f,n[d+3],10,-1894986606),f=y(f,p,l,s,n[d+10],15,-1051523),s=y(s,f,p,l,n[d+1],21,-2054922799),l=y(l,s,f,p,n[d+8],6,1873313359),p=y(p,l,s,f,n[d+15],10,-30611744),f=y(f,p,l,s,n[d+6],15,-1560198380),s=y(s,f,p,l,n[d+13],21,1309151649),l=y(l,s,f,p,n[d+4],6,-145523070),p=y(p,l,s,f,n[d+11],10,-1120210379),f=y(f,p,l,s,n[d+2],15,718787259),s=y(s,f,p,l,n[d+9],21,-343485551),l=l+b>>>0,s=s+g>>>0,f=f+O>>>0,p=p+w>>>0}return r.endian([l,s,f,p])})._ff=function(e,t,n,r,o,i,a){var c=e+(t&n|~t&r)+(o>>>0)+a;return(c<<i|c>>>32-i)+t},c._gg=function(e,t,n,r,o,i,a){var c=e+(t&r|n&~r)+(o>>>0)+a;return(c<<i|c>>>32-i)+t},c._hh=function(e,t,n,r,o,i,a){var c=e+(t^n^r)+(o>>>0)+a;return(c<<i|c>>>32-i)+t},c._ii=function(e,t,n,r,o,i,a){var c=e+(n^(t|~r))+(o>>>0)+a;return(c<<i|c>>>32-i)+t},c._blocksize=16,c._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(c(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(108);function o(e,t){return t?Object(r.a)((function(){return e}),t):Object(r.a)((function(){return e}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(104);function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return r.a.apply(void 0,o(t.map((function(e){var t=e.apply(void 0,n);if(!t)throw new TypeError('combineEpics: one of the provided Epics "'+(e.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return t}))))};try{Object.defineProperty(i,"name",{value:"combineEpics("+t.map((function(e){return e.name||"<anonymous>"})).join(", ")+")"})}catch(e){}return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),o=n(7);function i(){return function(e){return e.lift(new a)}}var a=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new c(e))},e}(),c=function(e){function t(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return r.__extends(t,e),t.prototype._next=function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)},t}(o.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(867)),o=c(n(868)),i=c(n(869)),a=c(n(1013));function c(e){return e&&e.__esModule?e:{default:e}}var u="${label} is not a valid ${type}",l={locale:"en",Pagination:r.default,DatePicker:o.default,TimePicker:i.default,Calendar:a.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{defaultValidateMessages:{default:"Field validation error ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label} must be ${len} characters",min:"${label} at least ${min} characters",max:"${label} up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} minimum value is ${min}",max:"${label} maximum value is ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};t.default=l},,function(e,t,n){var r=n(568);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(775)("keys"),o=n(709);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(524),o=n(489),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(708)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(772);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports={}},function(e,t,n){var r=n(615),o=n(1065),i=n(776),a=n(774)("IE_PROTO"),c=function(){},u=function(){var e,t=n(875)("iframe"),r=i.length;for(t.style.display="none",n(1066).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(567).f,o=n(526),i=n(570)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){t.f=n(570)},function(e,t,n){var r=n(489),o=n(524),i=n(708),a=n(782),c=n(567).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||c(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(256)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(375);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},,,,,function(e,t,n){"use strict";var r=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.getExpandableProps=function(e){var t=e.expandable,n=(0,i.default)(e,["expandable"]);if("expandable"in e)return c(c({},n),t);0;return n},t.getDataAndAriaProps=function(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})},t.INTERNAL_COL_DEFINE=void 0;var o=r(n(227)),i=r(n(381));r(n(488));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.INTERNAL_COL_DEFINE="RC_TABLE_INTERNAL_COL_DEFINE"},function(e,t,n){"use strict";var r=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)).createContext(null);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[];return o.default.Children.forEach(t,(function(t){null!=t&&(Array.isArray(t)?n=n.concat(e(t)):(0,i.isFragment)(t)&&t.props?n=n.concat(e(t.props.children)):n.push(t))})),n};var r,o=(r=n(0))&&r.__esModule?r:{default:r},i=n(154)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=a(n(1235)),i=a(n(904));function a(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(a,e);var t,n,r,i=d(a);function a(){return s(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||o.default[t||"global"],r=this.context,i=t&&r?r[t]:{};return l(l({},"function"==typeof n?n():n),i||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?o.default.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}])&&f(t.prototype,n),r&&f(t,r),a}(r.Component);t.default=m,m.defaultProps={componentName:"global"},m.contextType=i.default},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.withConfigConsumer=function(e){return function(t){var n=function(n){return i.createElement(s,null,(function(r){var o=e.prefixCls,a=(0,r.getPrefixCls)(o,n.prefixCls);return i.createElement(t,u({},r,n,{prefixCls:a}))}))},r=t.constructor,o=r&&r.displayName||t.name||"Component";return n.displayName="withConfigConsumer(".concat(o,")"),n}},t.ConfigConsumer=t.ConfigContext=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=(o=n(1236))&&o.__esModule?o:{default:o};function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=i.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},renderEmpty:a.default});t.ConfigContext=l;var s=l.Consumer;t.ConfigConsumer=s},function(e,t,n){"use strict";var r=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.arrDel=function(e,t){var n=e.slice(),r=n.indexOf(t);r>=0&&n.splice(r,1);return n},t.arrAdd=function(e,t){var n=e.slice();-1===n.indexOf(t)&&n.push(t);return n},t.posToArr=function(e){return e.split("-")},t.getPosition=function(e,t){return"".concat(e,"-").concat(t)},t.isTreeNode=function(e){return e&&e.type&&e.type.isTreeNode},t.getDragNodesKeys=function(e,t){var n=[e];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(t[e].children),n},t.calcDropPosition=function(e,t){var n=e.clientY,r=t.selectHandle.getBoundingClientRect(),o=r.top,i=r.bottom,a=r.height,c=Math.max(.25*a,2);if(n<=o+c)return-1;if(n>=i-c)return 1;return 0},t.calcSelectedKeys=function(e,t){if(!e)return;if(t.multiple)return e.slice();if(e.length)return[e[0]];return e},t.convertDataToTree=function e(t,n){if(!t)return[];var r=(n||{}).processProps,o=void 0===r?s:r;return(Array.isArray(t)?t:[t]).map((function(t){var r=t.children,i=(0,a.default)(t,["children"]),u=e(r,n);return c.default.createElement(l.default,Object.assign({},o(i)),u)}))},t.parseCheckedKeys=function(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,i.default)(e))return(0,u.default)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t},t.conductExpandParent=function(e,t){var n=new Set;return(e||[]).forEach((function(e){!function e(r){if(n.has(r))return;var o=t[r];if(!o)return;n.add(r);var i=o.parent;if(o.node.disabled)return;i&&e(i.key)}(e)})),(0,o.default)(n)},t.getDataAndAria=function(e){var t={};return Object.keys(e).forEach((function(n){(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n])})),t};var o=r(n(571)),i=r(n(523)),a=r(n(381)),c=r(n(0)),u=r(n(488)),l=r(n(1253));var s=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(0).createContext)({inlineCollapsed:!1});t.default=r},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=f(n(573)),a=f(n(4)),c=n(159),u=f(n(798)),l=n(925),s=f(n(490));function f(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=function(e,t){var n,r=o.useContext(u.default),f=o.useContext(c.ConfigContext),p=f.getPrefixCls,m=f.direction,y=o.useRef(),b=(0,l.composeRef)(t,y);o.useEffect((function(){(0,s.default)(!("optionType"in e),"Radio","`optionType` is only support in Radio.Group.")}),[]);var g=e.prefixCls,O=e.className,w=e.children,j=e.style,x=v(e,["prefixCls","className","children","style"]),E=p("radio",g),S=h({},x);r&&(S.name=r.name,S.onChange=function(t){e.onChange&&e.onChange(t),(null==r?void 0:r.onChange)&&r.onChange(t)},S.checked=e.value===r.value,S.disabled=e.disabled||r.disabled);var C=(0,a.default)(O,(d(n={},"".concat(E,"-wrapper"),!0),d(n,"".concat(E,"-wrapper-checked"),S.checked),d(n,"".concat(E,"-wrapper-disabled"),S.disabled),d(n,"".concat(E,"-wrapper-rtl"),"rtl"===m),n));return o.createElement("label",{className:C,style:j,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},o.createElement(i.default,h({},S,{prefixCls:E,ref:b})),void 0!==w?o.createElement("span",null,w):null)},y=o.forwardRef(m);y.displayName="Radio",y.defaultProps={type:"radio"};var b=y;t.default=b},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RadioGroupContextProvider=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0)).createContext(null),a=i.Provider;t.RadioGroupContextProvider=a;var c=i;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getColumnKey=function(e,t){if("key"in e&&void 0!==e.key&&null!==e.key)return e.key;if(e.dataIndex)return Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex;return t},t.getColumnPos=function(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)},t.renderColumnTitle=function(e,t){if("function"==typeof e)return e(t);return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var r=n(3),o=n(112),i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.__extends(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(o.a),a=n(111),c=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(a.a))(i),u=n(91),l=n(64),s=n(7),f=n(103);function p(e,t){return void 0===t&&(t=0),function(n){return n.lift(new d(e,t))}}var d=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new h(e,this.scheduler,this.delay))},e}(),h=function(e){function t(t,n,r){void 0===r&&(r=0);var o=e.call(this,t)||this;return o.scheduler=n,o.delay=r,o}return r.__extends(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new v(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(f.a.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(f.a.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(f.a.createComplete()),this.unsubscribe()},t}(s.a),v=function(){return function(e,t){this.notification=e,this.destination=t}}(),m=n(10),y=n(145),b=n(8),g=1,O=function(){return Promise.resolve()}(),w={};function j(e){return e in w&&(delete w[e],!0)}var x=function(e){var t=g++;return w[t]=!0,O.then((function(){return j(t)&&e()})),t},E=function(e){j(e)},S=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.__extends(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=x(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(E(n),t.scheduled=void 0)},t}(o.a),C=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,o=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<o&&(e=n.shift()));if(this.active=!1,t){for(;++r<o&&(e=n.shift());)e.unsubscribe();throw t}},t}(a.a))(S),_=n(146),P=function(e){function t(t,n,r){void 0===n&&(n=0),void 0===r&&(r=C);var o=e.call(this)||this;return o.source=t,o.delayTime=n,o.scheduler=r,(!Object(_.a)(n)||n<0)&&(o.delayTime=0),r&&"function"==typeof r.schedule||(o.scheduler=C),o}return r.__extends(t,e),t.create=function(e,n,r){return void 0===n&&(n=0),void 0===r&&(r=C),new t(e,n,r)},t.dispatch=function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))},t.prototype._subscribe=function(e){var n=this.delayTime,r=this.source;return this.scheduler.schedule(t.dispatch,n,{source:r,subscriber:e})},t}(b.a);function k(e,t){return void 0===t&&(t=0),function(n){return n.lift(new M(e,t))}}var M=function(){function e(e,t){this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return new P(t,this.delay,this.scheduler).subscribe(e)},e}(),N=n(96),T=n(363),A=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var R=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.source=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),A(t,null,[{key:"of",value:function(){return new this(N.a.apply(void 0,arguments))}},{key:"from",value:function(e,t){return new this(Object(l.a)(e,t))}}]),A(t,[{key:"lift",value:function(e){var n=new t(this);return n.operator=e,n}},{key:"ofType",value:function(){return T.a.apply(void 0,arguments)(this)}}]),t}(b.a);var D=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(function(e){var t=r.__notifier.subscribe(e);return t&&!t.closed&&e.next(r.value),t})));return r.value=n,r.__notifier=new u.a,r.__subscription=e.subscribe((function(e){e!==r.value&&(r.value=e,r.__notifier.next(e))})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(b.a);function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=c.constructor,n=new t(c.SchedulerAction);var r=new u.a,o=void 0,i=function(t){o=t;var i=(new u.a).pipe(p(n)),a=(new u.a).pipe(p(n)),c=new R(i),s=new D(a,o.getState());return r.pipe(Object(m.a)((function(t){var n="dependencies"in e?t(c,s,e.dependencies):t(c,s);if(!n)throw new TypeError('Your root Epic "'+(t.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return n})),Object(y.a)((function(e){return Object(l.a)(e).pipe(k(n),p(n))}))).subscribe(o.dispatch),function(e){return function(t){var n=e(t);return a.next(o.getState()),i.next(t),n}}};return i.run=function(e){r.next(e)},i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),o=n(7),i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),a=n(118);function c(e){return function(t){return 0===e?Object(a.b)():t.lift(new u(e))}}var u=function(){function e(e){if(this.total=e,this.total<0)throw new i}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.total))},e}(),l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(o.a)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1015))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1054))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1121))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1123))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){var r=n(109),o=n(1131),i=n(1132),a=Math.max,c=Math.min;e.exports=function(e,t,n){var u,l,s,f,p,d,h=0,v=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=u,r=l;return u=l=void 0,h=t,f=e.apply(r,n)}function g(e){return h=e,p=setTimeout(w,t),v?b(e):f}function O(e){var n=e-d;return void 0===d||n>=t||n<0||m&&e-h>=s}function w(){var e=o();if(O(e))return j(e);p=setTimeout(w,function(e){var n=t-(e-d);return m?c(n,s-(e-h)):n}(e))}function j(e){return p=void 0,y&&u?b(e):(u=l=void 0,f)}function x(){var e=o(),n=O(e);if(u=arguments,l=this,d=e,n){if(void 0===p)return g(d);if(m)return clearTimeout(p),p=setTimeout(w,t),b(d)}return void 0===p&&(p=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(v=!!n.leading,s=(m="maxWait"in n)?a(i(n.maxWait)||0,t):s,y="trailing"in n?!!n.trailing:y),x.cancel=function(){void 0!==p&&clearTimeout(p),h=0,u=d=l=p=void 0},x.flush=function(){return void 0===p?f:j(o())},x}},function(e,t,n){"use strict";var r=n(0),o=n(534),i=n(190),a=n(584);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},l=function(e,t){var n=r.useContext(a.b),l=r.useContext(i.b).getPrefixCls,s=e.prefixCls,f=u(e,["prefixCls"]),p=l("radio-button",s);return n&&(f.checked=e.value===n.value,f.disabled=e.disabled||n.disabled),r.createElement(o.a,c({prefixCls:p},f,{type:"radio",ref:t}))};t.a=r.forwardRef(l)},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(534),c=n(190),u=n(148),l=n(584),s=n(745);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e,t)||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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h=r.forwardRef((function(e,t){var n,o=r.useContext(c.b),d=o.getPrefixCls,h=o.direction,v=r.useContext(u.b);void 0!==e.value?n=e.value:void 0!==e.defaultValue&&(n=e.defaultValue);var m=p(r.useState(n),2),y=m[0],b=m[1],g=Object(s.b)(e.value);r.useEffect((function(){void 0===e.value&&g===e.value||b(e.value)}),[e.value]);return r.createElement(l.a,{value:{onChange:function(t){var n=y,r=t.target.value;"value"in e||b(r);var o=e.onChange;o&&r!==n&&o(t)},value:y,disabled:e.disabled,name:e.name}},function(){var n,o=e.prefixCls,c=e.className,u=void 0===c?"":c,l=e.options,s=e.optionType,p=e.buttonStyle,m=e.disabled,b=e.children,g=e.size,O=e.style,w=e.id,j=e.onMouseEnter,x=e.onMouseLeave,E=d("radio",o),S="".concat(E,"-group"),C=b;if(l&&l.length>0){var _="button"===s?"".concat(E,"-button"):E;C=l.map((function(e){return"string"==typeof e?r.createElement(a.a,{ref:t,key:e,prefixCls:_,disabled:m,value:e,checked:y===e},e):r.createElement(a.a,{ref:t,key:"radio-group-value-options-".concat(e.value),prefixCls:_,disabled:e.disabled||m,value:e.value,checked:y===e.value,style:e.style},e.label)}))}var P=g||v,k=i()(S,"".concat(S,"-").concat(p),(f(n={},"".concat(S,"-").concat(P),P),f(n,"".concat(S,"-rtl"),"rtl"===h),n),u);return r.createElement("div",{className:k,style:O,onMouseEnter:j,onMouseLeave:x,id:w},C)}())}));h.defaultProps={buttonStyle:"outline"},t.a=r.memo(h)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1281))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1283))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1287))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return C}));var r=n(16),o=n(6),i=n(43),a=n(44),c=n(50),u=n(49),l=n(25),s=n(0),f=n.n(s),p=n(4),d=n.n(p),h=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),r=d()(n,"".concat(n,"-").concat(e.page),(t={},Object(o.a)(t,"".concat(n,"-active"),e.active),Object(o.a)(t,e.className,!!e.className),Object(o.a)(t,"".concat(n,"-disabled"),!e.page),t));return f.a.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",f.a.createElement("a",null,e.page)))},v=13,m=38,y=40;function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var g=function(e){Object(c.a)(n,e);var t=b(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={goInputText:""},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var n=e.props,r=n.goButton,o=n.quickGo,i=n.rootPrefixCls;r||t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(i,"-prev"))>=0||t.relatedTarget.className.indexOf("".concat(i,"-next"))>=0)||o(e.getValidValue())},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==v&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return Object(a.a)(n,[{key:"getValidValue",value:function(){var e=this.state,t=e.goInputText,n=e.current;return!t||isNaN(t)?n:Number(t)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,o=t.rootPrefixCls,i=t.changeSize,a=t.quickGo,c=t.goButton,u=t.selectComponentClass,l=t.buildOptionText,s=t.selectPrefixCls,p=t.disabled,d=this.state.goInputText,h="".concat(o,"-options"),v=u,m=null,y=null,b=null;if(!i&&!a)return null;var g=this.getPageSizeOptions();if(i&&v){var O=g.map((function(t,n){return f.a.createElement(v.Option,{key:n,value:t},(l||e.buildOptionText)(t))}));m=f.a.createElement(v,{disabled:p,prefixCls:s,showSearch:!1,className:"".concat(h,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||g[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode}},O)}return a&&(c&&(b="boolean"==typeof c?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:p,className:"".concat(h,"-quick-jumper-button")},r.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),y=f.a.createElement("div",{className:"".concat(h,"-quick-jumper")},r.jump_to,f.a.createElement("input",{disabled:p,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),r.page,b)),f.a.createElement("li",{className:"".concat(h)},m,y)}}]),n}(f.a.Component);g.defaultProps={pageSizeOptions:["10","20","50","100"]};var O=g;function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}function x(){}function E(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var S=function(e){Object(c.a)(n,e);var t=j(n);function n(e){var r;Object(i.a)(this,n),(r=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(E(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,i=e||f.a.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(i=f.a.createElement(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r.props))),i},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){return"number"==typeof(t=e)&&isFinite(t)&&Math.floor(t)===t&&e!==r.state.current;var t},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper,n=e.pageSize;return!(e.total<=n)&&t},r.handleKeyDown=function(e){e.keyCode!==m&&e.keyCode!==y||e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===v?r.handleChange(t):e.keyCode===m?r.handleChange(t-1):e.keyCode===y&&r.handleChange(t+1)},r.changePageSize=function(e){var t=r.state.current,n=E(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"==typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e),r.props.onShowSizeChange(t,e)},r.handleChange=function(e){var t=r.props.disabled,n=e;if(r.isValid(n)&&!t){var o=E(void 0,r.state,r.props);n>o?n=o:n<1&&(n=1),"current"in r.props||r.setState({current:n,currentInputValue:n});var i=r.state.pageSize;return r.props.onChange(n,i),n}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current<E(void 0,r.state,r.props)},r.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}},r.runIfEnterPrev=function(e){r.runIfEnter(e,r.prev)},r.runIfEnterNext=function(e){r.runIfEnter(e,r.next)},r.runIfEnterJumpPrev=function(e){r.runIfEnter(e,r.jumpPrev)},r.runIfEnterJumpNext=function(e){r.runIfEnter(e,r.jumpNext)},r.handleGoTO=function(e){e.keyCode!==v&&"click"!==e.type||r.handleChange(r.state.currentInputValue)};var a=e.onChange!==x;"current"in e&&!a&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var c=e.defaultCurrent;"current"in e&&(c=e.current);var u=e.defaultPageSize;return"pageSize"in e&&(u=e.pageSize),c=Math.min(c,E(u,void 0,e)),r.state={current:c,currentInputValue:c,pageSize:u},r}return Object(a.a)(n,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var r=this.paginationNode.querySelector(".".concat(n,"-item-").concat(t.current));r&&document.activeElement===r&&r.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=E(void 0,this.state,this.props),r=this.state.currentInputValue;return""===t?t:isNaN(Number(t))?r:t>=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,r=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),o=!this.hasPrev();return Object(s.isValidElement)(r)?Object(s.cloneElement)(r,{disabled:o}):r}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,r=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),o=!this.hasNext();return Object(s.isValidElement)(r)?Object(s.cloneElement)(r,{disabled:o}):r}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.className,a=t.style,c=t.disabled,u=t.hideOnSinglePage,l=t.total,p=t.locale,v=t.showQuickJumper,m=t.showLessItems,y=t.showTitle,b=t.showTotal,g=t.simple,w=t.itemRender,j=t.showPrevNextJumpers,x=t.jumpPrevIcon,S=t.jumpNextIcon,C=t.selectComponentClass,_=t.selectPrefixCls,P=t.pageSizeOptions,k=this.state,M=k.current,N=k.pageSize,T=k.currentInputValue;if(!0===u&&l<=N)return null;var A=E(void 0,this.state,this.props),R=[],D=null,I=null,L=null,F=null,z=null,H=v&&v.goButton,B=m?1:2,V=M-1>0?M-1:0,K=M+1<A?M+1:A,U=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{});if(g)return H&&(z="boolean"==typeof H?f.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},p.jump_to_confirm):f.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},H),z=f.a.createElement("li",{title:y?"".concat(p.jump_to).concat(M,"/").concat(A):null,className:"".concat(n,"-simple-pager")},z)),f.a.createElement("ul",Object(r.a)({className:d()(n,"".concat(n,"-simple"),i),style:a,ref:this.savePaginationNode},U),f.a.createElement("li",{title:y?p.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:d()("".concat(n,"-prev"),Object(o.a)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(V)),f.a.createElement("li",{title:y?"".concat(M,"/").concat(A):null,className:"".concat(n,"-simple-pager")},f.a.createElement("input",{type:"text",value:T,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),f.a.createElement("span",{className:"".concat(n,"-slash")},"/"),A),f.a.createElement("li",{title:y?p.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:d()("".concat(n,"-next"),Object(o.a)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(K)),z);if(A<=3+2*B){var W={locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:y,itemRender:w};A||R.push(f.a.createElement(h,Object(r.a)({},W,{key:"noPager",page:A,className:"".concat(n,"-disabled")})));for(var q=1;q<=A;q+=1){var G=M===q;R.push(f.a.createElement(h,Object(r.a)({},W,{key:q,page:q,active:G})))}}else{var $=m?p.prev_3:p.prev_5,Y=m?p.next_3:p.next_5;j&&(D=f.a.createElement("li",{title:y?$:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:d()("".concat(n,"-jump-prev"),Object(o.a)({},"".concat(n,"-jump-prev-custom-icon"),!!x))},w(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(x))),I=f.a.createElement("li",{title:y?Y:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:d()("".concat(n,"-jump-next"),Object(o.a)({},"".concat(n,"-jump-next-custom-icon"),!!S))},w(this.getJumpNextPage(),"jump-next",this.getItemIcon(S)))),F=f.a.createElement(h,{locale:p,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:A,page:A,active:!1,showTitle:y,itemRender:w}),L=f.a.createElement(h,{locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:y,itemRender:w});var X=Math.max(1,M-B),Z=Math.min(M+B,A);M-1<=B&&(Z=1+2*B),A-M<=B&&(X=A-2*B);for(var J=X;J<=Z;J+=1){var Q=M===J;R.push(f.a.createElement(h,{locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:J,page:J,active:Q,showTitle:y,itemRender:w}))}M-1>=2*B&&3!==M&&(R[0]=Object(s.cloneElement)(R[0],{className:"".concat(n,"-item-after-jump-prev")}),R.unshift(D)),A-M>=2*B&&M!==A-2&&(R[R.length-1]=Object(s.cloneElement)(R[R.length-1],{className:"".concat(n,"-item-before-jump-next")}),R.push(I)),1!==X&&R.unshift(L),Z!==A&&R.push(F)}var ee=null;b&&(ee=f.a.createElement("li",{className:"".concat(n,"-total-text")},b(l,[0===l?0:(M-1)*N+1,M*N>l?l:M*N])));var te=!this.hasPrev()||!A,ne=!this.hasNext()||!A;return f.a.createElement("ul",Object(r.a)({className:d()(n,i,Object(o.a)({},"".concat(n,"-disabled"),c)),style:a,unselectable:"unselectable",ref:this.savePaginationNode},U),ee,f.a.createElement("li",{title:y?p.prev_page:null,onClick:this.prev,tabIndex:te?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(n,"-prev"),Object(o.a)({},"".concat(n,"-disabled"),te)),"aria-disabled":te},this.renderPrev(V)),R,f.a.createElement("li",{title:y?p.next_page:null,onClick:this.next,tabIndex:ne?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(n,"-next"),Object(o.a)({},"".concat(n,"-disabled"),ne)),"aria-disabled":ne},this.renderNext(K)),f.a.createElement(O,{disabled:c,locale:p,rootPrefixCls:n,selectComponentClass:C,selectPrefixCls:_,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:M,pageSize:N,pageSizeOptions:P,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:H}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,o=E(e.pageSize,t,e);r=r>o?o:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(f.a.Component);S.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:x,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:x,locale:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var C=S},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(386),a=n(737),c=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle;return o.a.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof t?t():t)};function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=Object(r.forwardRef)((function(e,t){var n=e.overlayClassName,p=e.trigger,d=void 0===p?["hover"]:p,h=e.mouseEnterDelay,v=void 0===h?0:h,m=e.mouseLeaveDelay,y=void 0===m?.1:m,b=e.overlayStyle,g=e.prefixCls,O=void 0===g?"rc-tooltip":g,w=e.children,j=e.onVisibleChange,x=e.afterVisibleChange,E=e.transitionName,S=e.animation,C=e.placement,_=void 0===C?"right":C,P=e.align,k=void 0===P?{}:P,M=e.destroyTooltipOnHide,N=void 0!==M&&M,T=e.defaultVisible,A=e.getTooltipContainer,R=e.overlayInnerStyle,D=f(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),I=Object(r.useRef)(null);Object(r.useImperativeHandle)(t,(function(){return I.current}));var L=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},D);"visible"in e&&(L.popupVisible=e.visible);var F=!1,z=!1;if("boolean"==typeof N)F=N;else if(N&&"object"===u(N)){var H=N.keepParent;F=!0===H,z=!1===H}return o.a.createElement(i.a,Object.assign({popupClassName:n,prefixCls:O,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,i=e.id;return[o.a.createElement("div",{className:"".concat(O,"-arrow"),key:"arrow"},n),o.a.createElement(c,{key:"content",prefixCls:O,id:i,overlay:r,overlayInnerStyle:R})]},action:d,builtinPlacements:a.a,popupPlacement:_,ref:I,popupAlign:k,getPopupContainer:A,onPopupVisibleChange:j,afterPopupVisibleChange:x,popupTransitionName:E,popupAnimation:S,defaultPopupVisible:T,destroyPopupOnHide:F,autoDestroy:z,mouseLeaveDelay:y,popupStyle:b,mouseEnterDelay:v},L),w)}));t.default=p},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(374),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=0!==r.a.endEvents.length,a=["Webkit","Moz","O","ms"],c=["-webkit-","-moz-","-o-","ms-",""];function u(e,t){for(var n=window.getComputedStyle(e,null),r="",o=0;o<c.length&&!(r=n.getPropertyValue(c[o]+t));o++);return r}function l(e){if(i){var t=parseFloat(u(e,"transition-delay"))||0,n=parseFloat(u(e,"transition-duration"))||0,r=parseFloat(u(e,"animation-delay"))||0,o=parseFloat(u(e,"animation-duration"))||0,a=Math.max(n+t,o+r);e.rcEndAnimTimeout=setTimeout((function(){e.rcEndAnimTimeout=null,e.rcEndListener&&e.rcEndListener()}),1e3*a+200)}}function s(e){e.rcEndAnimTimeout&&(clearTimeout(e.rcEndAnimTimeout),e.rcEndAnimTimeout=null)}var f=function(e,t,n){var i="object"===(void 0===t?"undefined":o(t)),a=i?t.name:t,c=i?t.active:t+"-active",u=n,f=void 0,p=void 0;return n&&"[object Object]"===Object.prototype.toString.call(n)&&(u=n.end,f=n.start,p=n.active),e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),s(e),e.classList.remove(a),e.classList.remove(c),r.a.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,u&&u())},r.a.addEndEventListener(e,e.rcEndListener),f&&f(),e.classList.add(a),e.rcAnimTimeout=setTimeout((function(){e.rcAnimTimeout=null,e.classList.add(c),p&&setTimeout(p,0),l(e)}),30),{stop:function(){e.rcEndListener&&e.rcEndListener()}}};f.style=function(e,t,n){e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),s(e),r.a.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,n&&n())},r.a.addEndEventListener(e,e.rcEndListener),e.rcAnimTimeout=setTimeout((function(){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);e.rcAnimTimeout=null,l(e)}),0)},f.setTransition=function(e,t,n){var r=t,o=n;void 0===n&&(o=r,r=""),r=r||"",a.forEach((function(t){e.style[t+"Transition"+r]=o}))},f.isCssAnimationSupported=i,t.a=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(0),o=n(4),i=n.n(o),a=n(190),c=n(741),u=n(171),l=n(373);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},O=(Object(u.a)("top","middle","bottom","stretch"),Object(u.a)("start","end","center","space-around","space-between"),function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(y,e);var t,n,o,u=m(y);function y(){var e;return d(this,y),(e=u.apply(this,arguments)).state={screens:{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}},e.renderRow=function(t){var n,o=t.getPrefixCls,a=t.direction,u=e.props,l=u.prefixCls,s=u.justify,d=u.align,h=u.className,v=u.style,m=u.children,y=g(u,["prefixCls","justify","align","className","style","children"]),b=o("row",l),O=e.getGutter(),w=i()(b,(p(n={},"".concat(b,"-").concat(s),s),p(n,"".concat(b,"-").concat(d),d),p(n,"".concat(b,"-rtl"),"rtl"===a),n),h),j=f(f(f({},O[0]>0?{marginLeft:O[0]/-2,marginRight:O[0]/-2}:{}),O[1]>0?{marginTop:O[1]/-2,marginBottom:O[1]/2}:{}),v),x=f({},y);return delete x.gutter,r.createElement(c.a.Provider,{value:{gutter:O}},r.createElement("div",f({},x,{className:w,style:j}),m))},e}return t=y,(n=[{key:"componentDidMount",value:function(){var e=this;this.token=l.a.subscribe((function(t){var n=e.props.gutter;(!Array.isArray(n)&&"object"===s(n)||Array.isArray(n)&&("object"===s(n[0])||"object"===s(n[1])))&&e.setState({screens:t})}))}},{key:"componentWillUnmount",value:function(){l.a.unsubscribe(this.token)}},{key:"getGutter",value:function(){var e=[0,0],t=this.props.gutter,n=this.state.screens;return(Array.isArray(t)?t:[t,0]).forEach((function(t,r){if("object"===s(t))for(var o=0;o<l.b.length;o++){var i=l.b[o];if(n[i]&&void 0!==t[i]){e[r]=t[i];break}}else e[r]=t||0})),e}},{key:"render",value:function(){return r.createElement(a.a,null,this.renderRow)}}])&&h(t.prototype,n),o&&h(t,o),y}(r.Component));O.defaultProps={gutter:0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ze}));var r=n(6),o=n(43),i=n(44),a=n(32),c=n(50),u=n(49),l=n(25),s=n(0),f=n.n(s),p=n(186);var d=function(e,t){for(var n=Object.assign({},e),r=0;r<t.length;r+=1){delete n[t[r]]}return n},h=n(16),v=n(37),m=n(575),y=n(229),b=n.n(y),g=n(4),O=n.n(g),w=n(71),j=n(28);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=/iPhone/i,C=/iPod/i,_=/iPad/i,P=/\bAndroid(?:.+)Mobile\b/i,k=/Android/i,M=/\bAndroid(?:.+)SD4930UR\b/i,N=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,T=/Windows Phone/i,A=/\bWindows(?:.+)ARM\b/i,R=/BlackBerry/i,D=/BB10/i,I=/Opera Mini/i,L=/\b(CriOS|Chrome)(?:.+)Mobile/i,F=/Mobile(?:.+)Firefox\b/i;function z(e,t){return e.test(t)}function H(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),n=t.split("[FBAN");if(void 0!==n[1]){var r=n;t=Object(j.a)(r,1)[0]}if(void 0!==(n=t.split("Twitter"))[1]){var o=n;t=Object(j.a)(o,1)[0]}var i={apple:{phone:z(S,t)&&!z(T,t),ipod:z(C,t),tablet:!z(S,t)&&z(_,t)&&!z(T,t),device:(z(S,t)||z(C,t)||z(_,t))&&!z(T,t)},amazon:{phone:z(M,t),tablet:!z(M,t)&&z(N,t),device:z(M,t)||z(N,t)},android:{phone:!z(T,t)&&z(M,t)||!z(T,t)&&z(P,t),tablet:!z(T,t)&&!z(M,t)&&!z(P,t)&&(z(N,t)||z(k,t)),device:!z(T,t)&&(z(M,t)||z(N,t)||z(P,t)||z(k,t))||z(/\bokhttp\b/i,t)},windows:{phone:z(T,t),tablet:z(A,t),device:z(T,t)||z(A,t)},other:{blackberry:z(R,t),blackberry10:z(D,t),opera:z(I,t),firefox:z(F,t),chrome:z(L,t),device:z(R,t)||z(D,t)||z(I,t)||z(F,t)||z(L,t)},any:null,phone:null,tablet:null};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var B=E(E({},H()),{},{isMobile:H});function V(){}function K(e,t,n){var r=t||"";return e.key||"".concat(r,"item_").concat(n)}function U(e){return"".concat(e,"-menu-")}function W(e,t){var n=-1;f.a.Children.forEach(e,(function(e){n+=1,e&&e.type&&e.type.isMenuItemGroup?f.a.Children.forEach(e.props.children,(function(e){t(e,n+=1)})):t(e,n)}))}var q=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],G=function(e){var t=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;return t&&(t=+t.toFixed(6)),t||0},$=function(e,t,n){e&&"object"===Object(w.a)(e.style)&&(e.style[t]=n)},Y=n(31),X=n(72),Z=n(20),J=n.n(Z),Q=n(497),ee=n(386),te=n(306),ne={adjustX:1,adjustY:1},re={topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ne,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ne,offset:[4,0]}},oe={topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ne,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ne,offset:[4,0]}};function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ue=0,le={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},se=function(e,t,n){var o=U(t),i=e.getState();e.setState({defaultActiveFirst:ce(ce({},i.defaultActiveFirst),{},Object(r.a)({},o,n))})},fe=function(e){Object(c.a)(n,e);var t=ie(n);function n(e){var r;Object(o.a)(this,n),(r=t.call(this,e)).onDestroy=function(e){r.props.onDestroy(e)},r.onKeyDown=function(e){var t=e.keyCode,n=r.menuInstance,o=r.props,i=o.isOpen,a=o.store;if(t===v.a.ENTER)return r.onTitleClick(e),se(a,r.props.eventKey,!0),!0;if(t===v.a.RIGHT)return i?n.onKeyDown(e):(r.triggerOpenChange(!0),se(a,r.props.eventKey,!0)),!0;if(t===v.a.LEFT){var c;if(!i)return;return(c=n.onKeyDown(e))||(r.triggerOpenChange(!1),c=!0),c}return!i||t!==v.a.UP&&t!==v.a.DOWN?void 0:n.onKeyDown(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onPopupVisibleChange=function(e){r.triggerOpenChange(e,e?"mouseenter":"mouseleave")},r.onMouseEnter=function(e){var t=r.props,n=t.eventKey,o=t.onMouseEnter,i=t.store;se(i,r.props.eventKey,!1),o({key:n,domEvent:e})},r.onMouseLeave=function(e){var t=r.props,n=t.parentMenu,o=t.eventKey,i=t.onMouseLeave;n.subMenuInstance=Object(a.a)(r),i({key:o,domEvent:e})},r.onTitleMouseEnter=function(e){var t=r.props,n=t.eventKey,o=t.onItemHover,i=t.onTitleMouseEnter;o({key:n,hover:!0}),i({key:n,domEvent:e})},r.onTitleMouseLeave=function(e){var t=r.props,n=t.parentMenu,o=t.eventKey,i=t.onItemHover,c=t.onTitleMouseLeave;n.subMenuInstance=Object(a.a)(r),i({key:o,hover:!1}),c({key:o,domEvent:e})},r.onTitleClick=function(e){var t=Object(a.a)(r).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(r.triggerOpenChange(!t.isOpen,"click"),se(t.store,r.props.eventKey,!1))},r.onSubMenuClick=function(e){"function"==typeof r.props.onClick&&r.props.onClick(r.addKeyPath(e))},r.onSelect=function(e){r.props.onSelect(e)},r.onDeselect=function(e){r.props.onDeselect(e)},r.getPrefixCls=function(){return"".concat(r.props.rootPrefixCls,"-submenu")},r.getActiveClassName=function(){return"".concat(r.getPrefixCls(),"-active")},r.getDisabledClassName=function(){return"".concat(r.getPrefixCls(),"-disabled")},r.getSelectedClassName=function(){return"".concat(r.getPrefixCls(),"-selected")},r.getOpenClassName=function(){return"".concat(r.props.rootPrefixCls,"-submenu-open")},r.saveMenuInstance=function(e){r.menuInstance=e},r.addKeyPath=function(e){return ce(ce({},e),{},{keyPath:(e.keyPath||[]).concat(r.props.eventKey)})},r.triggerOpenChange=function(e,t){var n=r.props.eventKey,o=function(){r.onOpenChange({key:n,item:Object(a.a)(r),trigger:t,open:e})};"mouseenter"===t?r.mouseenterTimeout=setTimeout((function(){o()}),0):o()},r.isChildrenSelected=function(){var e={find:!1};return function e(t,n,r){t&&!r.find&&f.a.Children.forEach(t,(function(t){if(t){var o=t.type;if(!o||!(o.isSubMenu||o.isMenuItem||o.isMenuItemGroup))return;-1!==n.indexOf(t.key)?r.find=!0:t.props.children&&e(t.props.children,n,r)}}))}(r.props.children,r.props.selectedKeys,e),e.find},r.isOpen=function(){return-1!==r.props.openKeys.indexOf(r.props.eventKey)},r.adjustWidth=function(){if(r.subMenuTitle&&r.menuInstance){var e=J.a.findDOMNode(r.menuInstance);e.offsetWidth>=r.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(r.subMenuTitle.offsetWidth,"px"))}},r.saveSubMenuTitle=function(e){r.subMenuTitle=e},r.getBaseProps=function(){var e=Object(a.a)(r).props;return{mode:"horizontal"===e.mode?"vertical":e.mode,visible:r.props.isOpen,level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:r.onSubMenuClick,onSelect:r.onSelect,onDeselect:r.onDeselect,onDestroy:r.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:r.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:Object(a.a)(r),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[U(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:r.internalMenuId,manualRef:r.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},r.getMotion=function(e,t){var n=Object(a.a)(r).haveRendered,o=r.props,i=o.motion,c=o.rootPrefixCls;return ce(ce({},i),{},{leavedClassName:"".concat(c,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var i=e.store,c=e.eventKey,u=i.getState().defaultActiveFirst;r.isRootMenu=!1;var l=!1;return u&&(l=u[c]),se(i,c,l),r}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,r=t.parentMenu,o=t.manualRef;o&&o(this),"horizontal"===n&&r.isRootMenu&&this.props.isOpen&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(e){var t=this,n=this.getBaseProps(),o=this.getMotion(n.mode,n.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||n.visible||n.forceSubMenuRender,!this.haveOpened)return f.a.createElement("div",null);var i=n.direction;return f.a.createElement(te.a,Object.assign({visible:n.visible},o),(function(o){var a=o.className,c=o.style,u=O()("".concat(n.prefixCls,"-sub"),a,Object(r.a)({},"".concat(n.prefixCls,"-rtl"),"rtl"===i));return f.a.createElement(_e,Object.assign({},n,{id:t.internalMenuId,className:u,style:c}),e)}))}},{key:"render",value:function(){var e,t=ce({},this.props),n=t.isOpen,o=this.getPrefixCls(),i="inline"===t.mode,a=O()(o,"".concat(o,"-").concat(t.mode),(e={},Object(r.a)(e,t.className,!!t.className),Object(r.a)(e,this.getOpenClassName(),n),Object(r.a)(e,this.getActiveClassName(),t.active||n&&!i),Object(r.a)(e,this.getDisabledClassName(),t.disabled),Object(r.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(t.eventKey?this.internalMenuId="".concat(t.eventKey,"$Menu"):(ue+=1,this.internalMenuId="$__$".concat(ue,"$Menu")));var c={},u={},l={};t.disabled||(c={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},u={onClick:this.onTitleClick},l={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var s={},p=t.direction;i&&("rtl"===p?s.paddingRight=t.inlineIndent*t.level:s.paddingLeft=t.inlineIndent*t.level);var d={};this.props.isOpen&&(d={"aria-owns":this.internalMenuId});var h=null;"horizontal"!==t.mode&&(h=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(h=f.a.createElement(this.props.expandIcon,ce({},this.props))));var v=f.a.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:s,className:"".concat(o,"-title"),role:"button"},l,u,{"aria-expanded":n},d,{"aria-haspopup":"true",title:"string"==typeof t.title?t.title:void 0}),t.title,h||f.a.createElement("i",{className:"".concat(o,"-arrow")})),m=this.renderChildren(t.children),y=t.parentMenu.isRootMenu?t.parentMenu.props.getPopupContainer:function(e){return e.parentNode},b=le[t.mode],g=t.popupOffset?{offset:t.popupOffset}:{},w="inline"===t.mode?"":t.popupClassName;w+="rtl"===p?" ".concat(o,"-rtl"):"";var j=t.disabled,x=t.triggerSubMenuAction,E=t.subMenuOpenDelay,S=t.forceSubMenuRender,C=t.subMenuCloseDelay,_=t.builtinPlacements;q.forEach((function(e){return delete t[e]})),delete t.onClick;var P="rtl"===p?Object.assign({},oe,_):Object.assign({},re,_);return delete t.direction,f.a.createElement("li",Object.assign({},t,c,{className:a,role:"menuitem"}),i&&v,i&&m,!i&&f.a.createElement(ee.a,{prefixCls:o,popupClassName:O()("".concat(o,"-popup"),w),getPopupContainer:y,builtinPlacements:P,popupPlacement:b,popupVisible:n,popupAlign:g,popup:m,action:j?[]:[x],mouseEnterDelay:E,mouseLeaveDelay:C,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:S},v))}}]),n}(f.a.Component);fe.defaultProps={onMouseEnter:V,onMouseLeave:V,onTitleMouseEnter:V,onTitleMouseLeave:V,onTitleClick:V,manualRef:V,mode:"vertical",title:""};var pe=Object(p.b)((function(e,t){var n=e.openKeys,r=e.activeKey,o=e.selectedKeys,i=t.eventKey,a=t.subMenuKey;return{isOpen:n.indexOf(i)>-1,active:r[a]===i,selectedKeys:o}}))(fe);pe.isSubMenu=!0;var de=pe;function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var ye=function(e){Object(c.a)(n,e);var t=me(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=J.a.findDOMNode(Object(a.a)(e));return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,r){var o=e.props,i=o.overflowedIndicator,a=o.level,c=o.mode,u=o.prefixCls,l=o.theme;if(1!==a||"horizontal"!==c)return null;var s=e.props.children[0].props,p=(s.children,s.title,s.style),d=Object(X.a)(s,["children","title","style"]),h=ve({},p),v="".concat(t,"-overflowed-indicator"),m="".concat(t,"-overflowed-indicator");0===n.length&&!0!==r?h=ve(ve({},h),{},{display:"none"}):r&&(h=ve(ve({},h),{},{visibility:"hidden",position:"absolute"}),v="".concat(v,"-placeholder"),m="".concat(m,"-placeholder"));var y=l?"".concat(u,"-").concat(l):"",b={};return q.forEach((function(e){void 0!==d[e]&&(b[e]=d[e])})),f.a.createElement(de,Object.assign({title:i,className:"".concat(u,"-overflowed-submenu"),popupClassName:y},b,{key:v,eventKey:m,disabled:!1,style:h}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=J.a.findDOMNode(Object(a.a)(e));if(t){var n=t.children;if(n&&0!==n.length){var r=t.children[n.length-1];$(r,"display","inline-block");var o=e.getMenuItemNodes(),i=o.filter((function(e){return e.className.split(" ").indexOf("menuitem-overflowed")>=0}));i.forEach((function(e){$(e,"display","inline-block")})),e.menuItemSizes=o.map((function(e){return G(e)})),i.forEach((function(e){$(e,"display","none")})),e.overflowedIndicatorWidth=G(t.children[t.children.length-1]),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),$(r,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=J.a.findDOMNode(Object(a.a)(e));if(t){var n=G(t);e.overflowedItems=[];var r,o=0;e.originalTotalWidth>n+.5&&(r=-1,e.menuItemSizes.forEach((function(t){(o+=t)+e.overflowedIndicatorWidth<=n&&(r+=1)}))),e.setState({lastVisibleIndex:r})}}},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=J.a.findDOMNode(this);if(!t)return;this.resizeObserver=new Q.a((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,o,i){var a=o;if("horizontal"===t.props.mode){var c=t.getOverflowedSubMenuItem(o.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(i>n&&(a=f.a.cloneElement(o,{style:{display:"none"},eventKey:"".concat(o.props.eventKey,"-hidden"),className:"".concat("menuitem-overflowed")})),i===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return f.a.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),c=t.getOverflowedSubMenuItem(o.props.eventKey,t.overflowedItems)));var u=[].concat(Object(Y.a)(r),[c,a]);return i===e.length-1&&u.push(t.getOverflowedSubMenuItem(o.props.eventKey,[],!0)),u}return[].concat(Object(Y.a)(r),[a])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,r=(e.theme,Object(X.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),o=t;return f.a.createElement(o,Object.assign({},r),this.renderChildren(n))}}]),n}(f.a.Component);ye.defaultProps={tag:"div",className:""};var be=ye;function ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t,n){var o=e.getState();e.setState({activeKey:we(we({},o.activeKey),{},Object(r.a)({},t,n))})}function xe(e){return e.eventKey||"0-menu-"}function Ee(e,t){var n,r=t,o=e.children,i=e.eventKey;if(r&&(W(o,(function(e,t){e&&e.props&&!e.props.disabled&&r===K(e,i,t)&&(n=!0)})),n))return r;return r=null,e.defaultActiveFirst?(W(o,(function(e,t){r||!e||e.props.disabled||(r=K(e,i,t))})),r):r}function Se(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var Ce=function(e){Object(c.a)(n,e);var t=ge(n);function n(e){var i;return Object(o.a)(this,n),(i=t.call(this,e)).onKeyDown=function(e,t){var n,r=e.keyCode;if(i.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var o=null;return r!==v.a.UP&&r!==v.a.DOWN||(o=i.step(r===v.a.UP?-1:1)),o?(e.preventDefault(),je(i.props.store,xe(i.props),o.props.eventKey),"function"==typeof t&&t(o),1):void 0},i.onItemHover=function(e){var t=e.key,n=e.hover;je(i.props.store,xe(i.props),n?t:null)},i.onDeselect=function(e){i.props.onDeselect(e)},i.onSelect=function(e){i.props.onSelect(e)},i.onClick=function(e){i.props.onClick(e)},i.onOpenChange=function(e){i.props.onOpenChange(e)},i.onDestroy=function(e){i.props.onDestroy(e)},i.getFlatInstanceArray=function(){return i.instanceArray},i.step=function(e){var t=i.getFlatInstanceArray(),n=i.props.store.getState().activeKey[xe(i.props)],r=t.length;if(!r)return null;e<0&&(t=t.concat().reverse());var o=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(o=t,!1)})),i.props.defaultActiveFirst||-1===o||(a=t.slice(o,r-1)).length&&!a.every((function(e){return!!e.props.disabled}))){var a,c=(o+1)%r,u=c;do{var l=t[u];if(l&&!l.props.disabled)return l;u=(u+1)%r}while(u!==c);return null}},i.renderCommonMenuItem=function(e,t,n){var r=i.props.store.getState(),o=Object(a.a)(i).props,c=K(e,o.eventKey,t),u=e.props;if(!u||"string"==typeof e.type)return e;var l=c===r.activeKey,s=we(we({mode:u.mode||o.mode,level:o.level,inlineIndent:o.inlineIndent,renderMenuItem:i.renderMenuItem,rootPrefixCls:o.prefixCls,index:t,parentMenu:o.parentMenu,manualRef:u.disabled?void 0:Object(m.a)(e.ref,Se.bind(Object(a.a)(i))),eventKey:c,active:!u.disabled&&l,multiple:o.multiple,onClick:function(e){(u.onClick||V)(e),i.onClick(e)},onItemHover:i.onItemHover,motion:o.motion,subMenuOpenDelay:o.subMenuOpenDelay,subMenuCloseDelay:o.subMenuCloseDelay,forceSubMenuRender:o.forceSubMenuRender,onOpenChange:i.onOpenChange,onDeselect:i.onDeselect,onSelect:i.onSelect,builtinPlacements:o.builtinPlacements,itemIcon:u.itemIcon||i.props.itemIcon,expandIcon:u.expandIcon||i.props.expandIcon},n),{},{direction:o.direction});return("inline"===o.mode||B.any)&&(s.triggerSubMenuAction="click"),f.a.cloneElement(e,s)},i.renderMenuItem=function(e,t,n){if(!e)return null;var r=i.props.store.getState(),o={openKeys:r.openKeys,selectedKeys:r.selectedKeys,triggerSubMenuAction:i.props.triggerSubMenuAction,subMenuKey:n};return i.renderCommonMenuItem(e,t,o)},e.store.setState({activeKey:we(we({},e.store.getState().activeKey),{},Object(r.a)({},e.eventKey,Ee(e,e.activeKey)))}),i.instanceArray=[],i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!b()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[xe(t)],r=Ee(t,n);if(r!==n)je(t.store,xe(t),r);else if("activeKey"in e){r!==Ee(e,e.activeKey)&&je(t.store,xe(t),r)}}},{key:"render",value:function(){var e=this,t=Object(h.a)({},this.props);this.instanceArray=[];var n={className:O()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var r=t.prefixCls,o=t.eventKey,i=t.visible,a=t.level,c=t.mode,u=t.overflowedIndicator,l=t.theme;return q.forEach((function(e){return delete t[e]})),delete t.onClick,f.a.createElement(be,Object.assign({},t,{prefixCls:r,mode:c,tag:"ul",level:a,theme:l,visible:i,overflowedIndicator:u},n),f.a.Children.map(t.children,(function(t,n){return e.renderMenuItem(t,n,o||"0-menu-")})))}}]),n}(f.a.Component);Ce.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:V};var _e=Object(p.b)()(Ce),Pe=n(56);function ke(e,t,n){var r=e.prefixCls,o=e.motion,i=e.defaultMotions,a=void 0===i?{}:i,c=e.openAnimation,u=e.openTransitionName,l=t.switchingModeFromInline;if(o)return o;if("object"===Object(w.a)(c)&&c)Object(Pe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof c)return{motionName:"".concat(r,"-open-").concat(c)};if(u)return{motionName:u};var s=a[n];return s||(l?null:a.other)}function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Ae=function(e){Object(c.a)(n,e);var t=Te(n);function n(e){var r;Object(o.a)(this,n),(r=t.call(this,e)).inlineOpenKeys=[],r.onSelect=function(e){var t=Object(a.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys,o=e.key;n=t.multiple?n.concat([o]):[o],"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onSelect(Ne(Ne({},e),{},{selectedKeys:n}))}},r.onClick=function(e){var t=r.getRealMenuMode(),n=Object(a.a)(r),o=n.store,i=n.props.onOpenChange;"inline"===t||"openKeys"in r.props||(o.setState({openKeys:[]}),i([])),r.props.onClick(e)},r.onKeyDown=function(e,t){r.innerMenu.getWrappedInstance().onKeyDown(e,t)},r.onOpenChange=function(e){var t=Object(a.a)(r).props,n=r.store.getState().openKeys.concat(),o=!1,i=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var r=n.indexOf(e.key);(t=-1!==r)&&n.splice(r,1)}o=o||t};Array.isArray(e)?e.forEach(i):i(e),o&&("openKeys"in r.props||r.store.setState({openKeys:n}),t.onOpenChange(n))},r.onDeselect=function(e){var t=Object(a.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys.concat(),o=e.key,i=n.indexOf(o);-1!==i&&n.splice(i,1),"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onDeselect(Ne(Ne({},e),{},{selectedKeys:n}))}},r.onMouseEnter=function(e){r.restoreModeVerticalFromInline();var t=r.props.onMouseEnter;t&&t(e)},r.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,o="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,i="font-size"===e.propertyName&&o.indexOf("anticon")>=0;(t||i)&&r.restoreModeVerticalFromInline()},r.setInnerMenu=function(e){r.innerMenu=e},r.isRootMenu=!0;var i=e.defaultSelectedKeys,c=e.defaultOpenKeys;return"selectedKeys"in e&&(i=e.selectedKeys||[]),"openKeys"in e&&(c=e.openKeys||[]),r.store=Object(p.c)({selectedKeys:i,openKeys:c,activeKey:{"0-menu-":Ee(e,e.activeKey)}}),r.state={switchingModeFromInline:!1},r}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){this.updateOpentKeysWhenSwitchMode(e),this.updateMiniStore();var t=this.props,n=t.siderCollapsed,r=t.inlineCollapsed,o=t.onOpenChange;(!e.inlineCollapsed&&r||!e.siderCollapsed&&n)&&o([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(e){var t=this.props,n=this.store,r=this.inlineOpenKeys,o=n.getState(),i={};"inline"===e.mode&&"inline"!==t.mode&&this.setState({switchingModeFromInline:!0}),"openKeys"in t||((t.inlineCollapsed&&!e.inlineCollapsed||t.siderCollapsed&&!e.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=o.openKeys.concat(),i.openKeys=[]),(!t.inlineCollapsed&&e.inlineCollapsed||!t.siderCollapsed&&e.siderCollapsed)&&(i.openKeys=r,this.inlineOpenKeys=[])),Object.keys(i).length&&n.setState(i)}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e)?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Ne({},d(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=Ne(Ne({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ke(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,f.a.createElement(p.a,{store:this.store},f.a.createElement(_e,Object.assign({},e,{ref:this.setInnerMenu}),this.props.children))}}]),n}(f.a.Component);Ae.defaultProps={selectable:!0,onClick:V,onSelect:V,onOpenChange:V,onDeselect:V,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:f.a.createElement("span",null,"···")};var Re=Ae;function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Fe=function(e){Object(c.a)(n,e);var t=Le(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===v.a.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,r=n.eventKey,o=n.onItemHover,i=n.onMouseLeave;o({key:r,hover:!1}),i({key:r,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,r=n.eventKey,o=n.onItemHover,i=n.onMouseEnter;o({key:r,hover:!0}),i({key:r,domEvent:t})},e.onClick=function(t){var n=e.props,r=n.eventKey,o=n.multiple,i=n.onClick,c=n.onSelect,u=n.onDeselect,l=n.isSelected,s={key:r,keyPath:[r],item:Object(a.a)(e),domEvent:t};i(s),o?l?u(s):c(s):l||c(s)},e.saveNode=function(t){e.node=t},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=Ie({},this.props),n=O()(this.getPrefixCls(),t.className,(e={},Object(r.a)(e,this.getActiveClassName(),!t.disabled&&t.active),Object(r.a)(e,this.getSelectedClassName(),t.isSelected),Object(r.a)(e,this.getDisabledClassName(),t.disabled),e)),o=Ie(Ie({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?o=Ie(Ie({},o),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(o.role="none");var i={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},a=Ie({},t.style);"inline"===t.mode&&("rtl"===t.direction?a.paddingRight=t.inlineIndent*t.level:a.paddingLeft=t.inlineIndent*t.level),q.forEach((function(e){return delete t[e]})),delete t.direction;var c=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(c=f.a.createElement(this.props.itemIcon,this.props)),f.a.createElement("li",Object.assign({},d(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),o,i,{style:a,ref:this.saveNode}),t.children,c)}}]),n}(f.a.Component);Fe.isMenuItem=!0,Fe.defaultProps={onSelect:V,onMouseEnter:V,onMouseLeave:V,manualRef:V};var ze=Object(p.b)((function(e,t){var n=e.activeKey,r=e.selectedKeys,o=t.eventKey;return{active:n[t.subMenuKey]===o,isSelected:-1!==r.indexOf(o)}}))(Fe);function He(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Be=function(e){Object(c.a)(n,e);var t=He(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).renderInnerMenuItem=function(t){var n=e.props;return(0,n.renderMenuItem)(t,n.index,e.props.subMenuKey)},e}return Object(i.a)(n,[{key:"render",value:function(){var e=Object(h.a)({},this.props),t=e.className,n=void 0===t?"":t,r=e.rootPrefixCls,o="".concat(r,"-item-group-title"),i="".concat(r,"-item-group-list"),a=e.title,c=e.children;return q.forEach((function(t){return delete e[t]})),delete e.onClick,delete e.direction,f.a.createElement("li",Object.assign({},e,{className:"".concat(n," ").concat(r,"-item-group")}),f.a.createElement("div",{className:o,title:"string"==typeof a?a:void 0},a),f.a.createElement("ul",{className:i},f.a.Children.map(c,this.renderInnerMenuItem)))}}]),n}(f.a.Component);Be.isMenuItemGroup=!0,Be.defaultProps={disabled:!0};var Ve=function(e){var t=e.className,n=e.rootPrefixCls,r=e.style;return f.a.createElement("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:r})};Ve.defaultProps={disabled:!0,className:"",style:{}};t.b=Re},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(762),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3),o=n(540),i=r.__importDefault(n(763)),a=r.__importDefault(n(541)),c=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]];class u extends o.Translator{constructor(){super(...arguments),this.name="baidu",this.endpoint="http://api.fanyi.baidu.com/api/trans/vip/translate",this.appid="20151211000007653",this.key="IFJB6jBORFuMmVGDRude"}async query(e,t,n,r){const c=Date.now(),l=r.appid||this.appid,s=r.key||this.key,f=await this.request(this.endpoint,{params:{from:u.langMap.get(t),to:u.langMap.get(n),q:e,salt:c,appid:l,sign:i.default(l+e+c+s)}}).then(this.checkData).catch(()=>this.request("http://openapi.baidu.com/public/2.0/bmt/translate?"+a.default.stringify({client_id:"AVhF9A0GExzkU5gCkZ0Gbht7",from:u.langMap.get(t),to:u.langMap.get(n),q:e})).then(this.checkData)).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")}),{trans_result:p,from:d}=f,h=u.langMapReverse.get(d)||t;return{text:e,from:h,to:n,origin:{paragraphs:p.map(({src:e})=>e),tts:await this.textToSpeech(e,h)},trans:{paragraphs:p.map(({dst:e})=>e),tts:await this.textToSpeech(p[0].dst,n)}}}async textToSpeech(e,t){return"http://tts.baidu.com/text2audio?"+a.default.stringify({lan:u.langMap.get("auto"!==t?t:"zh-CN")||"zh",ie:"UTF-8",spd:5,text:e})}checkData({data:e}){if(e.error_code)throw new o.TranslateError("API_SERVER_ERROR");return e}getSupportLanguages(){return[...u.langMap.keys()]}}t.Baidu=u,u.langMap=new Map(c),u.langMapReverse=new Map(c.map(([e,t])=>[t,e])),t.default=u},function(e,t,n){var r;e.exports=(r=n(635),function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,c=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(c[o]=n(e.pow(r,.5))),u[o]=n(e.pow(r,1/3)),o++),r++}();var l=[],s=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],c=n[4],s=n[5],f=n[6],p=n[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var h=l[d-15],v=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,m=l[d-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[d]=v+l[d-7]+y+l[d-16]}var b=r&o^r&i^o&i,g=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),O=p+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&s^~c&f)+u[d]+l[d];p=f,f=s,s=c,c=a+O|0,a=i,i=o,o=r,r=O+(g+b)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0,n[5]=n[5]+s|0,n[6]=n[6]+f|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(s),t.HmacSHA256=i._createHmacHelper(s)}(Math),r.SHA256)},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3),o=n(540),i=r.__importDefault(n(541)),a=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]];class c extends o.Translator{constructor(){super(...arguments),this.token="ukiw3nrioeilf0mlpam7",this.name="caiyun"}getSupportLanguages(){return[...c.langMap.keys()]}async textToSpeech(e,t){return"http://tts.baidu.com/text2audio?"+i.default.stringify({lan:c.langMap.get("auto"!==t?t:"zh-CN")||"zh",ie:"UTF-8",spd:5,text:e})}async query(e,t,n,r){const i="auto"===t,a=e.split(/\n+/),u=await this.request("https://api.interpreter.caiyunai.com/v1/translator",{headers:{"content-type":"application/json","x-authorization":"token "+(r.token||this.token)},method:"POST",data:JSON.stringify({source:a,trans_type:`${c.langMap.get(t)}2${c.langMap.get(n)}`,detect:i})}).catch(()=>{});if(!u||!u.data)throw new o.TranslateError("NETWORK_ERROR");const l=u.data,s=i?await this.detect(e):t;return{text:e,from:s,to:n,origin:{paragraphs:a,tts:await this.textToSpeech(e,s)},trans:{paragraphs:l.target,tts:await this.textToSpeech(l.target.join(" "),n)}}}}t.Caiyun=c,c.langMap=new Map(a),c.langMapReverse=new Map(a.map(([e,t])=>[t,e])),t.default=c},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3),o=n(540),i=n(981),a=r.__importDefault(n(541)),c=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]];class u extends o.Translator{constructor(){super(...arguments),this.token={date:0},this.config={token:"",order:["cn","com"],concurrent:!0,apiAsFallback:!0},this.name="google"}async fetchPlainText(e,t={}){const{data:n}=await this.axios(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"});return n}async fetchWithToken(e,t,n,r){if(!this.token.value)throw new Error("API_SERVER_ERROR");const{data:o}=await this.axios.get(e+"/translate_a/single?"+a.default.stringify({client:"webapp",sl:n,tl:r,hl:"en",dt:["at","bd","ex","ld","md","qca","rw","rm","ss","t"],source:"bh",ssel:"0",tsel:"0",kc:"1",tk:i.getTK(t,this.token.value.tk1,this.token.value.tk2),q:t},{indices:!1}));return{base:e,data:o}}async fetchWithoutToken(e,t,n){const{data:r}=await this.axios.get("https://translate.googleapis.com/translate_a/single?"+a.default.stringify({client:"gtx",dt:"t",sl:t,tl:n,q:e}));return{base:"https://translate.google.cn",data:r}}async query(e,t,n,r){if(Date.now()-this.token.date>3e5)try{await this.updateToken(r)}catch(e){}let o=await i.fetchScheduled(r.order.map(r=>()=>"api"===r?this.fetchWithoutToken(e,t,n):this.fetchWithToken("https://translate.google."+r,e,t,n)),r.concurrent).catch(()=>{});if(!o&&r.apiAsFallback&&(o=await this.fetchWithoutToken(e,t,n)),!o)throw new Error("NETWORK_ERROR");if(!o.data[0]||o.data[0].length<=0)throw new Error("API_SERVER_ERROR");const a=o.data[0].map(e=>e[0]).filter(Boolean).join(" ");return{text:e,from:u.langMapReverse.get(o.data[2])||"auto",to:n,origin:{paragraphs:e.split(/\n+/),tts:await this.textToSpeech(e,t,{base:o.base,token:this.token.value})||""},trans:{paragraphs:a.split(/(\n ?)+/),tts:await this.textToSpeech(a,n,{base:o.base,token:this.token.value})||""}}}async updateToken(e=this.config){const t=await i.fetchScheduled(e.order.map(e=>()=>"api"===e?Promise.reject():this.fetchPlainText(`https://translate.google.${e}/translate_a/element.js`)),e.concurrent);if(!t)throw new Error("API_SERVER_ERROR");const n=t.match(/(?:_ctkk|TKK)[=:]['"](\d+?)\.(\d+?)['"]/i);if(n)this.token.value={tk1:Number(n[1]),tk2:Number(n[2])},this.token.date=Date.now();else{const e=(t.match(/TKK=(.*?)\(\)\)'\);/i)||[""])[0].replace(/\\x([0-9A-Fa-f]{2})/g,"").match(/[+-]?\d+/g);e&&(this.token.value={tk1:Number(e[2]),tk2:Number(e[0])+Number(e[1])},this.token.date=Date.now())}}getSupportLanguages(){return[...u.langMap.keys()]}async detect(e){try{return(await this.translate(e,"auto","zh-CN")).from}catch(e){return"auto"}}async textToSpeech(e,t,n){return n&&n.token?n.base+"/translate_tts?ie=UTF-8&total=1&idx=0&client=webapp&prev=input&"+a.default.stringify({q:e,textlen:e.length,tl:u.langMapReverse.get(t)||"en",tk:i.getTK(e,n.token.tk1,n.token.tk2)}):null}}t.Google=u,u.langMap=new Map(c),u.langMapReverse=new Map(c.map(([e,t])=>[t,e])),t.default=u},,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3),o=n(540),i=r.__importDefault(n(763)),a=r.__importDefault(n(541)),c=[["auto","auto"],["zh-CN","zh-CHS"],["zh-TW","zh-CHT"],["en","en"],["af","af"],["ar","ar"],["bg","bg"],["bn","bn"],["bs","bs-Latn"],["ca","ca"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["es","es"],["et","et"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["lt","lt"],["lv","lv"],["mg","mg"],["ms","ms"],["mt","mt"],["mww","mww"],["nl","nl"],["no","no"],["otq","otq"],["pl","pl"],["pt","pt"],["ro","ro"],["ru","ru"],["sk","sk"],["sl","sl"],["sm","sm"],["sr-Cyrl","sr-Cyrl"],["sr-Latn","sr-Latn"],["sv","sv"],["sw","sw"],["th","th"],["tlh","tlh"],["tlh-Qaak","tlh-Qaak"],["to","to"],["tr","tr"],["ty","ty"],["uk","uk"],["ur","ur"],["vi","vi"],["yua","yua"],["yue","yue"]];class u extends o.Translator{constructor(){super(...arguments),this.name="sogou"}async query(e,t,n,r){const c=i.default(r.pid+e+u.salt+r.key),l=(await this.request("http://fanyi.sogou.com/reventondc/api/sogouTranslate",{method:"post",data:a.default.stringify({from:u.langMap.get(t),to:u.langMap.get(n),pid:r.pid,q:e,sign:c,salt:u.salt}),headers:{"content-type":"application/x-www-form-urlencoded",accept:"application/json"}}).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")})).data;return{text:e,from:u.langMapReverse.get(l.detect)||"auto",to:n,origin:{paragraphs:e.split(/\n+/),tts:await this.textToSpeech(e,t)||""},trans:{paragraphs:[l.translation],tts:await this.textToSpeech(l.translation,n)||""}}}getSupportLanguages(){return[...u.langMap.keys()]}async detect(e){return(await this.translate(e,"auto","en")).from}async textToSpeech(e,t){return"zh-TW"===t?"https://fanyi.sogou.com/reventondc/microsoftGetSpeakFile?"+a.default.stringify({text:e,spokenDialect:"zh-CHT",from:"translateweb"}):"https://fanyi.sogou.com/reventondc/synthesis?"+a.default.stringify({text:e,speed:"1",lang:u.langMap.get(t)||"en",from:"translateweb"})}}t.Sogou=u,u.langMap=new Map(c),u.salt="1508404016012",u.langMapReverse=new Map(c.map(([e,t])=>[t,e])),t.default=u},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3),o=n(540),i=r.__importDefault(n(541)),a=r.__importDefault(n(820)),c=r.__importDefault(n(982)),u=r.__importDefault(n(984)),l=n(985),s=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["en","en"],["ko","kr"],["ja","jp"],["de","de"],["fr","fr"],["es","es"],["it","it"],["tr","tr"],["ru","ru"],["pt","pt"],["vi","vi"],["id","id"],["ms","ms"],["th","th"]],f={qtv:"1f287950babc6f41",qtk:"7ZL+2Pxljmav9j1z8Q7RuhmVeN5nkYZrLJH0kfWZ8rin6SYxcu62TsMramShwVod/uNYNIKWAu7I4x09lVkCEou4pIVE5E1GuDDrHuNjLUHQCSPssTaFUOOiIomtcwFYQAxap7Kp9beMz+rxnUL9pg==",date:0};class p extends o.Translator{constructor(){super(...arguments),this.token={...f},this.name="tencent"}static getUTCDate(e){return`${e.getUTCFullYear()}-${(""+(e.getUTCMonth()+1)).padStart(2,"0")}-${(""+e.getUTCDate()).padStart(2,"0")}`}stubHeaders(e){if("ext"!==this.env||p.isStubHeaders[e])return;p.isStubHeaders[e]=!0;const t="undefined"!=typeof browser?browser:"undefined"!=typeof chrome?chrome:null,n=["blocking","requestHeaders"];t.webRequest.OnBeforeSendHeadersOptions&&t.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS")&&n.push("extraHeaders"),t.webRequest.onBeforeSendHeaders.addListener(t=>{if(t&&t.requestHeaders){const n=t.requestHeaders.filter(e=>!/Host/i.test(e.name));return n.push({name:"Host",value:e}),{requestHeaders:n}}return t},{urls:[`*://${e}/*`]},n)}signedRequest({secretId:e,secretKey:t,action:n,payload:r,service:o,version:i}){const l=o+".tencentcloudapi.com";this.stubHeaders(l);const s=new Date,f=(""+(new Date).valueOf()).slice(0,10),d=["POST","/","","content-type:application/json; charset=utf-8","host:"+l,"","content-type;host",a.default(r).toString(u.default)].join("\n"),h=p.getUTCDate(s),v=["TC3-HMAC-SHA256",f,`${h}/${o}/tc3_request`,a.default(d).toString(u.default)].join("\n"),m=c.default(h,"TC3"+t),y=c.default(o,m),b=c.default("tc3_request",y),g=c.default(v,b).toString(u.default);return this.request(`https://${o}.tencentcloudapi.com`,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:l,"X-TC-Action":n,"X-TC-Timestamp":f,"X-TC-Region":"ap-beijing","X-TC-Version":i,Authorization:`TC3-HMAC-SHA256 Credential=${e}/${h}/${o}/tc3_request, SignedHeaders=content-type;host, Signature=${g}`},data:r})}async updateToken(){const e={...f};try{const t=(await this.request("https://fanyi.qq.com")).data,n=t.match(/"qtv=([^"]+)/);n&&(e.qtv=n[1]);const r=t.match(/"qtk=([^"]+)/);r&&(e.qtk=r[1])}catch(e){}this.token={...e,date:Date.now()}}async getToken(){return Date.now()-this.token.date>36e4&&await this.updateToken(),this.token}async query(e,t,n,r){if(r.secretKey){const o=JSON.stringify({ProjectId:0,Source:p.langMap.get(t),SourceText:e,Target:p.langMap.get(n)}),{data:i}=await this.signedRequest({secretId:r.secretId,secretKey:r.secretKey,action:"TextTranslate",payload:o,service:"tmt",version:"2018-03-21"});return{text:e,from:p.langMapReverse.get(i.Response.Source)||t,to:p.langMapReverse.get(i.Response.Target)||n,origin:{paragraphs:e.split(/\n+/)},trans:{paragraphs:l.decodeHTMLEntities(i.Response.TargetText).split(/\n+/)}}}const{qtv:a,qtk:c}=await this.getToken(),u=i.default.stringify({source:p.langMap.get(t),target:p.langMap.get(n),sourceText:e,qtv:a,qtk:c,sessionUuid:"translate_uuid"+Date.now()}),s=await this.request("https://fanyi.qq.com/api/translate",{method:"post",withCredentials:!1,headers:{Origin:"https://fanyi.qq.com",Accept:"application/json, text/javascript, */*; q=0.01","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","X-Requested-With":"XMLHttpRequest"},data:u});if(!s||!s.data)throw new o.TranslateError("NETWORK_ERROR");const f=s.data,d=l.decodeHTMLEntities(f.translate.records.map(e=>e.targetText).join(" ").replace(/\s*↵\s*/g,"\n")),h=l.decodeHTMLEntities(f.translate.records.map(e=>e.sourceText).join(" ").replace(/\s*↵\s*/g,"\n"));return{text:e,from:p.langMapReverse.get(f.translate.source)||("auto"!==t?t:await this.detect(e)),to:n,origin:{paragraphs:h.split("\n"),tts:await this.textToSpeech(h,p.langMapReverse.get(f.translate.source)||t)},trans:{paragraphs:d.split("\n"),tts:await this.textToSpeech(d,p.langMapReverse.get(f.translate.target)||n)}}}getSupportLanguages(){return[...p.langMap.keys()]}async detect(e){if(this.config.secretKey){const t=JSON.stringify({ProjectId:0,Text:e}),{data:n}=await this.signedRequest({secretId:this.config.secretId,secretKey:this.config.secretKey,action:"LanguageDetect",payload:t,service:"tmt",version:"2018-03-21"});return p.langMapReverse.get(n.Response.Lang)||"auto"}return super.detect(e)}async textToSpeech(e,t){if(this.config.secretKey){const n=JSON.stringify({ProjectId:0,Text:encodeURIComponent(e),SessionId:""+Date.now(),ModelType:-1,PrimaryLanguage:t.startsWith("zh")?1:2,Codec:"mp3"}),{data:r}=await this.signedRequest({secretId:this.config.secretId,secretKey:this.config.secretKey,action:"TextToVoice",payload:n,service:"tts",version:"2019-08-23"});return r.Response.Audio||""}return"https://fanyi.qq.com/api/tts?"+i.default.stringify({lang:p.langMap.get("auto"!==t?t:"zh-CN")||"zh",text:e})}}t.Tencent=p,p.langMap=new Map(s),p.langMapReverse=new Map(s.map(([e,t])=>[t,e])),p.isStubHeaders={},t.default=p},,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3),o=n(540),i=r.__importDefault(n(541)),a=r.__importDefault(n(986)),c=n(987);const u=[["auto","AUTO"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],l="http://fanyi.youdao.com";class s extends o.Translator{constructor(){super(...arguments),this.name="youdao",this.token="mmbP%A-r6U3Nw(n]BjuEU",this.tokenUpdateTamp=0}async query(e,t,n,r){if(r.appKey){const a=(new Date).getTime(),u=Math.round((new Date).getTime()/1e3),l=r.appKey+function(e){const t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}(e)+a+u+r.key,f=c.sha256(l),p=(await this.request("http://openapi.youdao.com/api",{method:"post",data:i.default.stringify({q:e,appKey:r.appKey,salt:a,from:s.langMap.get(t),to:s.langMap.get(n),sign:f,signType:"v3",curtime:u,headers:{"Content-Type":"application/x-www-form-urlencoded"}})}).catch(()=>{throw new o.TranslateError("NETWORK_ERROR")})).data;return{text:e,from:t,to:n,origin:{paragraphs:e.split(/\n+/),tts:await this.textToSpeech(e,t)||void 0},trans:{paragraphs:p.translation,tts:await this.textToSpeech(p.translation.join("\n"),n)||void 0}}}if(("auto"!==t||"auto"!==n)&&"zh-CN"!==t&&"zh-CN"!==n)throw new o.TranslateError("UNSUPPORTED_LANG");return e=e.slice(0,5e3),this.transformRaw((await this.request("http://fanyi.youdao.com/translate_o?smartresult=dict&smartresult=rule",{method:"post",data:i.default.stringify({i:e,from:s.langMap.get(t),to:s.langMap.get(n),smartresult:"dict",doctype:"json",version:"2.1",keyfrom:"fanyi.web",action:"FY_BY_REALTIME",typoResult:"false",...a.default(e,await this.getToken())}),headers:{"Content-Type":"application/x-www-form-urlencoded",Referer:l,Cookie:"OUTFOX_SEARCH_USER_ID=-1799202939@10.168.8.64"}})).data,e)}async transformRaw(e,t){if(0!==e.errorCode)throw new o.TranslateError("API_SERVER_ERROR");const[n,r]=e.type.split("2"),i=s.langMapReverse.get(n)||"auto",a=s.langMapReverse.get(r)||"auto",c=e.translateResult.map(e=>e.map(e=>e.tgt.trim()).join(""));return{text:t,from:i,to:a,origin:{paragraphs:t.split(/\n+/),tts:await this.textToSpeech(t,i)||void 0},trans:{paragraphs:c,tts:await this.textToSpeech(c.join("\n"),a)||void 0}}}getSupportLanguages(){return[...s.langMap.keys()]}async updateToken(){const e=(await this.request("http://fanyi.youdao.com")).data.match(/<script.*?src="([^"]+?\/fanyi\.min\.js)"/);if(!e)return;const t=(await this.request(e[1])).data.match(/sign:n\.md5\("fanyideskweb"\+e\+i\+"([^"]+?)"\)/);t&&(this.token=t[1],this.tokenUpdateTamp=Date.now())}async getToken(){return Date.now()-this.tokenUpdateTamp>36e5&&await this.updateToken(),this.token}async textToSpeech(e,t){const n={en:"eng",ja:"jap",ko:"ko",fr:"fr"}[t];return n?"http://tts.youdao.com/fanyivoice?"+i.default.stringify({word:e,le:n,keyfrom:"speaker-target"}):null}}t.Youdao=s,s.langMap=new Map(u),s.langMapReverse=new Map(u.map(([e,t])=>[t,e])),t.default=s},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),o=n(35),i=n(34);function a(e){return function(t){return t.lift(new c(e))}}var c=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.closingNotifier))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.buffer=[],r.add(Object(i.a)(r,n)),r}return r.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(e,t,n,r,o){var i=this.buffer;this.buffer=[],this.destination.next(i)},t}(o.a)},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1006)),o=i(n(863));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c={lang:a({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeWeekPlaceholder:["开始周","结束周"]},r.default),timePickerLocale:a({},o.default)};c.lang.ok="确 定";var u=c;t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1010)),o=i(n(865));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c={lang:a({placeholder:"請選擇日期",rangePlaceholder:["開始日期","結束日期"]},r.default),timePickerLocale:a({},o.default)};c.lang.ok="確 定";var u=c;t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={placeholder:"請選擇時間"};t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(769))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1012)),o=i(n(869));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c={lang:a({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},r.default),timePickerLocale:a({},o.default)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};t.default=r},function(e,t,n){var r=n(871);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";var r=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(381)),i=r(n(227)),a=n(705);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var s=function(e){var t=e.icon,n=e.className,r=e.onClick,i=e.style,c=e.primaryColor,s=e.secondaryColor,f=(0,o.default)(e,["icon","className","onClick","style","primaryColor","secondaryColor"]),p=l;if(c&&(p={primaryColor:c,secondaryColor:s||(0,a.getSecondaryColor)(c)}),(0,a.useInsertStyles)(),(0,a.warning)((0,a.isIconDefinition)(t),"icon should be icon definiton, but got ".concat(t)),!(0,a.isIconDefinition)(t))return null;var d=t;return d&&"function"==typeof d.icon&&(d=u(u({},d),{},{icon:d.icon(p.primaryColor,p.secondaryColor)})),(0,a.generate)(d.icon,"svg-".concat(d.name),u({className:n,onClick:r,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f))};s.displayName="IconReact",s.getTwoToneColors=function(){return u({},l)},s.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;l.primaryColor=t,l.secondaryColor=n||(0,a.getSecondaryColor)(t),l.calculated=!!n};var f=s;t.default=f},function(e,t,n){var r=n(1048);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){e.exports=!n(525)&&!n(616)((function(){return 7!=Object.defineProperty(n(875)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(568),o=n(489).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(526),o=n(569),i=n(1050)(!1),a=n(774)("IE_PROTO");e.exports=function(e,t){var n,c=o(e),u=0,l=[];for(n in c)n!=a&&r(c,n)&&l.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var r=n(878);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(1060)),o=a(n(1072)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===i(r.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t,n){"use strict";var r=n(708),o=n(614),i=n(881),a=n(566),c=n(779),u=n(1064),l=n(781),s=n(1067),f=n(570)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,v,m,y){u(n,t,h);var b,g,O,w=function(e){if(!p&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},j=t+" Iterator",x="values"==v,E=!1,S=e.prototype,C=S[f]||S["@@iterator"]||v&&S[v],_=C||w(v),P=v?x?w("entries"):_:void 0,k="Array"==t&&S.entries||C;if(k&&(O=s(k.call(new e)))!==Object.prototype&&O.next&&(l(O,j,!0),r||"function"==typeof O[f]||a(O,f,d)),x&&C&&"values"!==C.name&&(E=!0,_=function(){return C.call(this)}),r&&!y||!p&&!E&&S[f]||a(S,f,_),c[t]=_,c[j]=d,v)if(b={values:x?_:w("values"),keys:m?_:w("keys"),entries:P},y)for(g in b)g in S||i(S,g,b[g]);else o(o.P+o.F*(p||E),t,b);return b}},function(e,t,n){e.exports=n(566)},function(e,t,n){var r=n(876),o=n(776).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(710),o=n(706),i=n(569),a=n(771),c=n(526),u=n(874),l=Object.getOwnPropertyDescriptor;t.f=n(525)?l:function(e,t){if(e=i(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return o(!r.f.call(e,t),e[t])}},,function(e,t,n){var r=n(255),o=n(1158),i=n(153);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){var r=n(358),o=n(784),i=n(359),a=n(378),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},function(e,t,n){var r=n(377),o=n(886),i=n(885);e.exports=function(e){return r(e,i,o)}},,,,,,,,,,,function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1221)),c=r(n(430));var u=function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,u=i.useContext(c.default),l=u.prefixCls,s=u.getComponent,f=i.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r,a=n.map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,c=n.children;return c&&c.length>0&&(a=e(c,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}));return a}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o<n;o+=1)r(o);return t}(n)}),[n]),p=s(["header","wrapper"],"thead"),d=s(["header","row"],"tr"),h=s(["header","cell"],"th");return i.createElement(p,{className:"".concat(l,"-thead")},f.map((function(e,n){return i.createElement(a.default,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:h,onHeaderRow:o,index:n})})))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCellFixedInfo=function(e,t,n,r,o){var i,a,c=n[e]||{},u=n[t]||{};"left"===c.fixed?i=r.left[e]:"right"===u.fixed&&(a=r.right[t]);var l=!1,s=!1,f=!1,p=!1,d=n[t+1],h=n[e-1];if("rtl"===o){if(void 0!==i){var v=h&&"left"===h.fixed;p=!v}else if(void 0!==a){var m=d&&"right"===d.fixed;f=!m}}else if(void 0!==i){var y=d&&"left"===d.fixed;l=!y}else if(void 0!==a){var b=h&&"right"===h.fixed;s=!b}return{fixLeft:i,fixRight:a,lastFixLeft:l,firstFixRight:s,lastFixRight:f,firstFixLeft:p}}},function(e,t,n){"use strict";var r=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=n(790);var a=function(e){for(var t=e.colWidths,n=e.columns,r=[],a=!1,c=(e.columCount||n.length)-1;c>=0;c-=1){var u=t[c],l=n&&n[c],s=l&&l[i.INTERNAL_COL_DEFINE];(u||s||a)&&(r.unshift(o.createElement("col",Object.assign({key:c,style:{width:u,minWidth:u}},s))),a=!0)}return o.createElement("colgroup",null,r)};t.default=a},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(718)),c=r(n(430));var u=function(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,u=e.fixHeader,l=e.fixColumn,s=e.horizonScroll,f=e.className,p=e.expanded,d=e.componentWidth,h=e.colSpan,v=i.useContext(c.default).scrollbarSize;return i.useMemo((function(){var e=n;return l&&(e=i.createElement("div",{style:{width:d-(u?v:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},e)),i.createElement(r,{className:f,style:{display:p?null:"none"}},i.createElement(a.default,{component:o,prefixCls:t,colSpan:h},e))}),[n,r,u,s,f,p,d,h,v])};t.default=u},function(e,t,n){"use strict";var r=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)).createContext(null);t.default=o},function(e,t,n){"use strict";var r=n(36),o=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.convertChildrenToColumns=d,t.default=void 0;var i=o(n(571)),a=o(n(227)),c=o(n(381)),u=r(n(0)),l=(o(n(488)),o(n(792))),s=n(790);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e){return(0,l.default)(e).filter((function(e){return u.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=p({key:t},(0,c.default)(n,["children"]));return r&&(o.children=d(r)),o}))}function h(e){return e.reduce((function(e,t){var n=t.fixed,r=!0===n?"left":n,o=t.children;return o&&o.length>0?[].concat((0,i.default)(e),(0,i.default)(h(o).map((function(e){return p({fixed:r},e)})))):[].concat((0,i.default)(e),[p(p({},t),{},{fixed:r})])}),[])}var v=function(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,l=e.expandedKeys,f=e.getRowKey,v=e.onTriggerExpand,m=e.expandIcon,y=e.rowExpandable,b=e.expandIconColumnIndex,g=e.direction,O=e.expandRowByClick,w=u.useMemo((function(){return r||d(o)}),[r,o]),j=u.useMemo((function(){if(i){var e,t=b||0,r=w[t],o=(e={},(0,a.default)(e,s.INTERNAL_COL_DEFINE,{className:"".concat(n,"-expand-icon-col")}),(0,a.default)(e,"title",""),(0,a.default)(e,"fixed",r?r.fixed:null),(0,a.default)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,a.default)(e,"render",(function(e,t,r){var o=f(t,r),i=l.has(o),a=!y||y(t),c=m({prefixCls:n,expanded:i,expandable:a,record:t,onExpand:v});return O?u.createElement("span",{onClick:function(e){return e.stopPropagation()}},c):c})),e),c=w.slice();return t>=0&&c.splice(t,0,o),c}return w}),[i,w,f,l,m,g]),x=u.useMemo((function(){var e=j;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,j,g]),E=u.useMemo((function(){return"rtl"===g?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),p({fixed:n},(0,c.default)(e,["fixed"]))}))}(h(x)):h(x)}),[x,g]);return[x,E]};t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(0).createContext)(void 0);t.default=r},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=s(n(4)),a=n(159),c=s(n(793)),u=s(n(1237)),l=s(n(1238));function s(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},v=o.createElement(u.default,null),m=o.createElement(l.default,null),y=function(e){return o.createElement(a.ConfigConsumer,null,(function(t){var n=t.getPrefixCls,r=t.direction,a=e.className,u=e.prefixCls,l=e.image,s=void 0===l?v:l,f=e.description,y=e.children,b=e.imageStyle,g=h(e,["className","prefixCls","image","description","children","imageStyle"]);return o.createElement(c.default,{componentName:"Empty"},(function(e){var t,c=n("empty",u),l=void 0!==f?f:e.description,h="string"==typeof l?l:"empty",v=null;return v="string"==typeof s?o.createElement("img",{alt:h,src:s}):s,o.createElement("div",p({className:(0,i.default)(c,(t={},d(t,"".concat(c,"-normal"),s===m),d(t,"".concat(c,"-rtl"),"rtl"===r),t),a)},g),o.createElement("div",{className:"".concat(c,"-image"),style:b},v),l&&o.createElement("p",{className:"".concat(c,"-description")},l),y&&o.createElement("div",{className:"".concat(c,"-footer")},y))}))}))};y.PRESENTED_IMAGE_DEFAULT=v,y.PRESENTED_IMAGE_SIMPLE=m;var b=y;t.default=b},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(1244);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(523),o=n(910);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(0)),o=s(n(84)),i=s(n(4)),a=p(n(633)),c=n(159),u=s(n(1248)),l=s(n(619));function s(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(p,e);var t,n,s,f=g(p);function p(){var e;return m(this,p),(e=f.apply(this,arguments)).selectRef=r.createRef(),e.focus=function(){e.selectRef.current&&e.selectRef.current.focus()},e.blur=function(){e.selectRef.current&&e.selectRef.current.blur()},e.getMode=function(){var t=e.props.mode;if("combobox"!==t)return t===p.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":t},e.renderSelect=function(t){var n,c=t.getPopupContainer,s=t.getPrefixCls,f=t.renderEmpty,p=t.direction,d=t.virtual,m=t.dropdownMatchSelectWidth,y=e.props,b=y.prefixCls,g=y.notFoundContent,O=y.className,w=y.size,j=y.listHeight,x=void 0===j?256:j,E=y.listItemHeight,S=void 0===E?24:E,C=y.getPopupContainer,_=y.dropdownClassName,P=y.bordered,k=s("select",b),M=e.getMode(),N="multiple"===M||"tags"===M;n=void 0!==g?g:"combobox"===M?null:f("Select");var T=(0,u.default)(v(v({},e.props),{multiple:N,prefixCls:k})),A=T.suffixIcon,R=T.itemIcon,D=T.removeIcon,I=T.clearIcon,L=(0,o.default)(e.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),F=(0,i.default)(_,h({},"".concat(k,"-dropdown-").concat(p),"rtl"===p));return r.createElement(l.default.Consumer,null,(function(t){var o,u=w||t,l=(0,i.default)(O,(h(o={},"".concat(k,"-lg"),"large"===u),h(o,"".concat(k,"-sm"),"small"===u),h(o,"".concat(k,"-rtl"),"rtl"===p),h(o,"".concat(k,"-borderless"),!P),o));return r.createElement(a.default,v({ref:e.selectRef,virtual:d,dropdownMatchSelectWidth:m},L,{listHeight:x,listItemHeight:S,mode:M,prefixCls:k,direction:p,inputIcon:A,menuItemSelectedIcon:R,removeIcon:D,clearIcon:I,notFoundContent:n,className:l,getPopupContainer:C||c,dropdownClassName:F}))}))},e}return t=p,(n=[{key:"render",value:function(){return r.createElement(c.ConfigConsumer,null,this.renderSelect)}}])&&y(t.prototype,n),s&&y(t,s),p}(r.Component);j.Option=a.Option,j.OptGroup=a.OptGroup,j.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",j.defaultProps={transitionName:"slide-up",choiceTransitionName:"zoom",bordered:!0};var x=j;t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(0),i=(r=n(1249))&&r.__esModule?r:{default:r};function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e,t)||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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u=function(){var e=a((0,o.useState)({}),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=i.default.subscribe((function(e){n(e)}));return function(){return i.default.unsubscribe(e)}}),[]),t};t.default=u},function(e,t,n){"use strict";var r=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.getKey=p,t.warningWithoutKey=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new Map;function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(e||[]).forEach((function(e){var o=e.key,i=e.children;(0,u.default)(null!=o,"Tree node must have a certain key: [".concat(r).concat(o,"]"));var a=String(o);(0,u.default)(!t.has(a)||null==o,"Same 'key' exist in the Tree: ".concat(a)),t.set(a,!0),n(i,"".concat(r).concat(a," > "))}))}n(e)},t.convertTreeToData=function(e){return function e(t){return(0,c.default)(t).map((function(t){if(!(0,l.isTreeNode)(t))return(0,u.default)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=f({key:n},(0,a.default)(r,["children"])),c=e(o);return c.length&&(i.children=c),i})).filter((function(e){return e}))}(e)},t.flattenTreeData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new Set(!0===t?[]:t),r=[];function i(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.map((function(c,u){var s=(0,l.getPosition)(a?a.pos:"0",u),d=p(c.key,s),h=f(f({},c),{},{parent:a,pos:s,children:null,data:c,isStart:[].concat((0,o.default)(a?a.isStart:[]),[0===u]),isEnd:[].concat((0,o.default)(a?a.isEnd:[]),[u===e.length-1])});return r.push(h),!0===t||n.has(d)?h.children=i(c.children||[],h):h.children=[],h}))}return i(e),r},t.traverseDataNodes=d,t.convertDataToEntities=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=arguments.length>2?arguments[2]:void 0,a={},c={},u={posEntities:a,keyEntities:c};n&&(u=n(u)||u);d(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,l=e.parentPos,s={node:t,index:n,key:i,pos:o,level:e.level},f=p(i,o);a[o]=s,c[f]=s,s.parent=a[l],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),r&&r(s,u)}),i),o&&o(u);return u},t.getTreeNodeProps=function(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,c=t.halfCheckedKeys,u=t.dragOverNodeKey,l=t.dropPosition,s=t.keyEntities[e];return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==c.indexOf(e),pos:String(s?s.pos:""),dragOver:u===e&&0===l,dragOverGapTop:u===e&&-1===l,dragOverGapBottom:u===e&&1===l}},t.convertNodePropsToEventData=function(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,c=e.halfChecked,l=e.dragOver,s=e.dragOverGapTop,p=e.dragOverGapBottom,d=e.pos,h=e.active,v=f(f({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:c,dragOver:l,dragOverGapTop:s,dragOverGapBottom:p,pos:d,active:h});"props"in v||Object.defineProperty(v,"props",{get:function(){return(0,u.default)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}});return v};var o=r(n(571)),i=r(n(227)),a=r(n(381)),c=r(n(792)),u=r(n(488)),l=n(795);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){return null!=e?e:t}function d(e,t,n){var r;n?"string"==typeof n?r=function(e){return e[n]}:"function"==typeof n&&(r=function(e){return n(e)}):r=function(e,t){return p(e.key,t)},function n(o,i,a){var c=o?o.children:e,u=o?(0,l.getPosition)(a.pos,i):"0";if(o){var s=r(o,u),f={node:o,index:i,pos:u,key:s,parentPos:a.node?a.pos:null,level:a.level+1};t(f)}c&&c.forEach((function(e,t){n(e,t,{node:o,pos:u,level:a?a.level+1:-1})}))}(null)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(916)),o=i(n(917));function i(e){return e&&e.__esModule?e:{default:e}}r.default.Group=o.default;var a=r.default;t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=l(n(4)),i=l(n(573)),a=n(917),c=n(159),u=l(n(490));function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(s,e);var t,n,a,l=y(s);function s(){var e;return h(this,s),(e=l.apply(this,arguments)).saveCheckbox=function(t){e.rcCheckbox=t},e.renderCheckbox=function(t){var n,a=t.getPrefixCls,c=t.direction,u=g(e),l=u.props,s=u.context,f=l.prefixCls,h=l.className,v=l.children,m=l.indeterminate,y=l.style,b=l.onMouseEnter,O=l.onMouseLeave,j=w(l,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave"]),x=s,E=a("checkbox",f),S=d({},j);x&&(S.onChange=function(){j.onChange&&j.onChange.apply(j,arguments),x.toggleOption({label:v,value:l.value})},S.name=x.name,S.checked=-1!==x.value.indexOf(l.value),S.disabled=l.disabled||x.disabled);var C=(0,o.default)(h,(p(n={},"".concat(E,"-wrapper"),!0),p(n,"".concat(E,"-rtl"),"rtl"===c),p(n,"".concat(E,"-wrapper-checked"),S.checked),p(n,"".concat(E,"-wrapper-disabled"),S.disabled),n)),_=(0,o.default)(p({},"".concat(E,"-indeterminate"),m));return r.createElement("label",{className:C,style:y,onMouseEnter:b,onMouseLeave:O},r.createElement(i.default,d({},S,{prefixCls:E,className:_,ref:e.saveCheckbox})),void 0!==v&&r.createElement("span",null,v))},e}return t=s,(n=[{key:"componentDidMount",value:function(){var e,t=this.props.value;null===(e=this.context)||void 0===e||e.registerValue(t),(0,u.default)("checked"in this.props||this.context||!("value"in this.props),"Checkbox","`value` is not a valid prop, do you mean `checked`?")}},{key:"componentDidUpdate",value:function(e){var t,n,r=e.value,o=this.props.value;o!==r&&(null===(t=this.context)||void 0===t||t.cancelValue(r),null===(n=this.context)||void 0===n||n.registerValue(o))}},{key:"componentWillUnmount",value:function(){var e,t=this.props.value;null===(e=this.context)||void 0===e||e.cancelValue(t)}},{key:"focus",value:function(){this.rcCheckbox.focus()}},{key:"blur",value:function(){this.rcCheckbox.blur()}},{key:"render",value:function(){return r.createElement(c.ConfigConsumer,null,this.renderCheckbox)}}])&&v(t.prototype,n),a&&v(t,a),s}(r.PureComponent);j.__ANT_CHECKBOX=!0,j.defaultProps={indeterminate:!1},j.contextType=a.GroupContext;var x=j;t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GroupContext=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=u(n(4)),i=u(n(84)),a=u(n(916)),c=n(159);function u(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=r.createContext(null);t.GroupContext=w;var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(s,e);var t,n,u,l=m(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=l.call(this,e)).cancelValue=function(e){t.setState((function(t){return{registeredValues:t.registeredValues.filter((function(t){return t!==e}))}}))},t.registerValue=function(e){t.setState((function(t){var n=t.registeredValues;return{registeredValues:[].concat(p(n),[e])}}))},t.toggleOption=function(e){var n=t.state.registeredValues,r=t.state.value.indexOf(e.value),o=p(t.state.value);-1===r?o.push(e.value):o.splice(r,1),"value"in t.props||t.setState({value:o});var i=t.props.onChange;if(i){var a=t.getOptions();i(o.filter((function(e){return-1!==n.indexOf(e)})).sort((function(e,t){return a.findIndex((function(t){return t.value===e}))-a.findIndex((function(e){return e.value===t}))})))}},t.renderGroup=function(e){var n=e.getPrefixCls,c=e.direction,u=b(t),l=u.props,s=u.state,p=l.prefixCls,d=l.className,h=l.style,v=l.options,m=O(l,["prefixCls","className","style","options"]),y=n("checkbox",p),g="".concat(y,"-group"),j=(0,i.default)(m,["children","defaultValue","value","onChange","disabled"]),x=l.children;v&&v.length>0&&(x=t.getOptions().map((function(e){return r.createElement(a.default,{prefixCls:y,key:e.value.toString(),disabled:"disabled"in e?e.disabled:l.disabled,value:e.value,checked:-1!==s.value.indexOf(e.value),onChange:e.onChange,className:"".concat(g,"-item"),style:e.style},e.label)})));var E,S,C,_={toggleOption:t.toggleOption,value:t.state.value,disabled:t.props.disabled,name:t.props.name,registerValue:t.registerValue,cancelValue:t.cancelValue},P=(0,o.default)(g,d,(E={},S="".concat(g,"-rtl"),C="rtl"===c,S in E?Object.defineProperty(E,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):E[S]=C,E));return r.createElement("div",f({className:P,style:h},j),r.createElement(w.Provider,{value:_},x))},t.state={value:e.value||e.defaultValue||[],registeredValues:[]},t}return t=s,u=[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value||[]}:null}}],(n=[{key:"getOptions",value:function(){return this.props.options.map((function(e){return"string"==typeof e?{label:e,value:e}:e}))}},{key:"render",value:function(){return r.createElement(c.ConfigConsumer,null,this.renderGroup)}}])&&h(t.prototype,n),u&&h(t,u),s}(r.PureComponent);j.defaultProps={options:[]};var x=j;t.default=x},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(919))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=d(n(628)),a=d(n(4)),c=d(n(385)),u=d(n(1258)),l=n(159),s=d(n(490)),f=n(719),p=n(572);function d(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,f.tuple)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight");var y=function(e){var t,n,r,u,f=o.useContext(l.ConfigContext),d=f.getPopupContainer,h=f.getPrefixCls,y=f.direction,b=e.arrow,g=e.prefixCls,O=e.children,w=e.trigger,j=e.disabled,x=e.getPopupContainer,E=e.overlayClassName,S=h("dropdown",g),C=o.Children.only(O),_=(0,p.cloneElement)(C,{className:(0,a.default)(C.props.className,"".concat(S,"-trigger"),m({},"".concat(S,"-rtl"),"rtl"===y)),disabled:j}),P=(0,a.default)(E,m({},"".concat(S,"-rtl"),"rtl"===y)),k=j?[]:w;return k&&-1!==k.indexOf("contextMenu")&&(t=!0),o.createElement(i.default,v({arrow:b,alignPoint:t},e,{overlayClassName:P,prefixCls:S,getPopupContainer:x||d,transitionName:(n=e.placement,r=void 0===n?"":n,u=e.transitionName,void 0!==u?u:r.indexOf("top")>=0?"slide-down":"slide-up"),trigger:k,overlay:function(){return function(t){var n,r=e.overlay;n="function"==typeof r?r():r;var i=(n=o.Children.only("string"==typeof n?o.createElement("span",null,"overlayNode"):n)).props;(0,s.default)(!i.mode||"vertical"===i.mode,"Dropdown",'mode="'.concat(i.mode,"\" is not supported for Dropdown's Menu."));var a=i.selectable,u=void 0!==a&&a,l=i.focusable,f=void 0===l||l,d=o.createElement("span",{className:"".concat(t,"-menu-submenu-arrow")},o.createElement(c.default,{className:"".concat(t,"-menu-submenu-arrow-icon")}));return"string"==typeof n.type?n:(0,p.cloneElement)(n,{mode:"vertical",selectable:u,focusable:f,expandIcon:d})}(S)},placement:function(){var t=e.placement;return void 0!==t?t:"rtl"===y?"bottomRight":"bottomLeft"}()}),_)};y.Button=u.default,y.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var b=y;t.default=b},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1259))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(0)),o=v(n(370)),i=d(n(4)),a=d(n(1269)),c=d(n(1270)),u=n(159),l=d(n(490)),s=n(923),f=d(n(1276)),p=d(n(796));function d(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function v(e){if(e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){w(n,e);var t=x(n);function n(e){var a;return b(this,n),(a=t.call(this,e)).renderMenu=function(e){var t,n,c,u=e.getPopupContainer,l=e.getPrefixCls,s=e.direction,d=a.props,h=d.prefixCls,v=d.className,m=d.theme,b={horizontal:{motionName:"slide-up"},inline:f.default,other:{motionName:"zoom-big"}},g=l("menu",h),O=(0,i.default)(v,"".concat(g,"-").concat(m),(t={},n="".concat(g,"-inline-collapsed"),c=a.getInlineCollapsed(),n in t?Object.defineProperty(t,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):t[n]=c,t));return r.createElement(p.default.Provider,{value:{inlineCollapsed:a.getInlineCollapsed()||!1,antdMenuTheme:m,direction:s}},r.createElement(o.default,y({getPopupContainer:u},a.props,{className:O,prefixCls:g,direction:s,defaultMotions:b})))},(0,l.default)(!("inlineCollapsed"in e&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),(0,l.default)(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),a}return O(n,[{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"render",value:function(){return r.createElement(u.ConfigConsumer,null,this.renderMenu)}}]),n}(r.Component);C.defaultProps={className:"",theme:"light",focusable:!1};var _=function(e){w(n,e);var t=x(n);function n(){return b(this,n),t.apply(this,arguments)}return O(n,[{key:"render",value:function(){var e=this;return r.createElement(s.SiderContext.Consumer,null,(function(t){return r.createElement(C,y({},e.props,t))}))}}]),n}(r.Component);t.default=_,_.Divider=o.Divider,_.Item=c.default,_.SubMenu=a.default,_.ItemGroup=o.ItemGroup},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=f(n(813)),a=f(n(4)),c=f(n(1271)),u=n(572),l=n(159),s=n(1273);function f(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var y=new RegExp("^(".concat(s.PresetColorTypes.join("|"),")(-inverse)?$"));function b(e,t){var n=e.type;if((!0===n.__ANT_BUTTON||!0===n.__ANT_SWITCH||!0===n.__ANT_CHECKBOX||"button"===e.type)&&e.props.disabled){var r=function(e,t){var n={},r=m({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=r.picked,c=r.omitted,l=m(m({display:"inline-block"},i),{cursor:"not-allowed",width:e.props.block?"100%":null}),s=m(m({},c),{pointerEvents:"none"}),f=(0,u.cloneElement)(e,{style:s,className:null});return o.createElement("span",{style:l,className:(0,a.default)(e.props.className,"".concat(t,"-disabled-compatible-wrapper"))},f)}return e}var g=o.forwardRef((function(e,t){var n,r=o.useContext(l.ConfigContext),s=r.getPopupContainer,f=r.getPrefixCls,p=r.direction,v=h(o.useState(!!e.visible||!!e.defaultVisible),2),g=v[0],O=v[1];o.useEffect((function(){"visible"in e&&O(e.visible)}),[e.visible]);var w=function(){var t=e.title,n=e.overlay;return!t&&!n&&0!==t},j=function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||(0,c.default)({arrowPointAtCenter:n,autoAdjustOverflow:r})},x=e.prefixCls,E=e.openClassName,S=e.getPopupContainer,C=e.getTooltipContainer,_=e.overlayClassName,P=e.color,k=e.overlayInnerStyle,M=e.children,N=f("tooltip",x),T=g;!("visible"in e)&&w()&&(T=!1);var A,R,D,I,L=b((0,u.isValidElement)(M)?M:o.createElement("span",null,M),N),F=L.props,z=(0,a.default)(F.className,d({},E||"".concat(N,"-open"),!0)),H=(0,a.default)(_,(d(n={},"".concat(N,"-rtl"),"rtl"===p),d(n,"".concat(N,"-").concat(P),P&&y.test(P)),n));return P&&!y.test(P)&&(A=m(m({},k),{background:P}),R={background:P}),o.createElement(i.default,m({},e,{prefixCls:N,overlayClassName:H,getTooltipContainer:S||C||s,ref:t,builtinPlacements:j(),overlay:(D=e.title,I=e.overlay,0===D?D:I||D||""),visible:T,onVisibleChange:function(t){"visible"in e||O(!w()&&t),e.onVisibleChange&&!w()&&e.onVisibleChange(t)},onPopupAlign:function(e,t){var n=j(),r=Object.keys(n).filter((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}))[0];if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayInnerStyle:A,arrowContent:o.createElement("span",{className:"".concat(N,"-arrow-content"),style:R})}),T?(0,u.cloneElement)(L,{className:z}):L)}));g.displayName="Tooltip",g.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var O=g;t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SiderContext=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=p(n(4)),i=p(n(84)),a=p(n(803)),c=p(n(385)),u=p(n(528)),l=n(1274),s=n(159),f=p(n(1275));function p(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}function O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},C={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},_=r.createContext({});t.SiderContext=_;var P,k=(P=0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return P+=1,"".concat(e).concat(P)}),M=function(e){O(n,e);var t=j(n);function n(e){var l,s,p;return y(this,n),(l=t.call(this,e)).responsiveHandler=function(e){l.setState({below:e.matches});var t=l.props.onBreakpoint;t&&t(e.matches),l.state.collapsed!==e.matches&&l.setCollapsed(e.matches,"responsive")},l.setCollapsed=function(e,t){"collapsed"in l.props||l.setState({collapsed:e});var n=l.props.onCollapse;n&&n(e,t)},l.toggle=function(){var e=!l.state.collapsed;l.setCollapsed(e,"clickTrigger")},l.renderSider=function(e){var t,n=e.getPrefixCls,s=l.props,p=s.prefixCls,d=s.className,h=s.theme,y=s.collapsible,b=s.reverseArrow,g=s.trigger,O=s.style,w=s.width,j=s.collapsedWidth,x=s.zeroWidthTriggerStyle,E=S(s,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle"]),C=n("layout-sider",p),_=(0,i.default)(E,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),P=l.state.collapsed?j:w,k=(0,f.default)(P)?"".concat(P,"px"):String(P),M=0===parseFloat(String(j||0))?r.createElement("span",{onClick:l.toggle,className:"".concat(C,"-zero-width-trigger ").concat(C,"-zero-width-trigger-").concat(b?"right":"left"),style:x},r.createElement(a.default,null)):null,N={expanded:b?r.createElement(c.default,null):r.createElement(u.default,null),collapsed:b?r.createElement(u.default,null):r.createElement(c.default,null)}[l.state.collapsed?"collapsed":"expanded"],T=null!==g?M||r.createElement("div",{className:"".concat(C,"-trigger"),onClick:l.toggle,style:{width:k}},g||N):null,A=m(m({},O),{flex:"0 0 ".concat(k),maxWidth:k,minWidth:k,width:k}),R=(0,o.default)(d,C,"".concat(C,"-").concat(h),(v(t={},"".concat(C,"-collapsed"),!!l.state.collapsed),v(t,"".concat(C,"-has-trigger"),y&&null!==g&&!M),v(t,"".concat(C,"-below"),!!l.state.below),v(t,"".concat(C,"-zero-width"),0===parseFloat(k)),t));return r.createElement("aside",m({className:R},_,{style:A}),r.createElement("div",{className:"".concat(C,"-children")},l.props.children),y||l.state.below&&M?T:null)},l.uniqueId=k("ant-sider-"),"undefined"!=typeof window&&(s=window.matchMedia),s&&e.breakpoint&&e.breakpoint in C&&(l.mql=s("(max-width: ".concat(C[e.breakpoint],")"))),p="collapsed"in e?e.collapsed:e.defaultCollapsed,l.state={collapsed:p,below:!1},l}return g(n,[{key:"componentDidMount",value:function(){this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),this.props.siderHook&&this.props.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){this.mql&&this.mql.removeListener(this.responsiveHandler),this.props.siderHook&&this.props.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var e=this.state.collapsed,t=this.props.collapsedWidth;return r.createElement(_.Provider,{value:{siderCollapsed:e,collapsedWidth:t}},r.createElement(s.ConfigConsumer,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(e){return"collapsed"in e?{collapsed:e.collapsed}:null}}]),n}(r.Component);M.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var N=function(e){O(n,e);var t=j(n);function n(){return y(this,n),t.apply(this,arguments)}return g(n,[{key:"render",value:function(){var e=this;return r.createElement(l.LayoutContext.Consumer,null,(function(t){return r.createElement(M,m({},t,e.props))}))}}]),n}(r.Component);t.default=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={Group:!0,Button:!0};Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return a.default}}),t.default=void 0;var o=u(n(797)),i=u(n(1277)),a=u(n(1278)),c=n(1279);function u(e){return e&&e.__esModule?e:{default:e}}Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var l=o.default;l.Button=a.default,l.Group=i.default;var s=l;t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fillRef=a,t.composeRef=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){a(t,e)}))}},t.usePrevious=function(e){var t=r.useRef();return r.useEffect((function(){t.current=e}),[e]),t.current};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=r?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){"function"==typeof e?e(t):"object"===i(e)&&e&&"current"in e&&(e.current=t)}},,function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1089))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1091))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1093))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1095))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1097))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1099))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1101))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1103))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1105))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1107))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1109))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1111))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1113))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1117))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1119))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="RC_SELECT_INTERNAL_PROPS_MARK"},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1134))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1137))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r=n(36),o=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(227)),a=o(n(381)),c=r(n(0)),u=o(n(4)),l=n(705);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=c.forwardRef((function(e,t){var n=e.className,r=e.component,o=e.viewBox,i=e.spin,s=e.rotate,p=e.tabIndex,d=e.onClick,h=e.children,v=(0,a.default)(e,["className","component","viewBox","spin","rotate","tabIndex","onClick","children"]);(0,l.warning)(Boolean(r||h),"Should have `component` prop or `children`."),(0,l.useInsertStyles)();var m=(0,u.default)("anticon",n),y=(0,u.default)({"anticon-spin":!!i}),b=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,g=f(f({},l.svgBaseProps),{},{className:y,style:b,viewBox:o});o||delete g.viewBox;var O=p;return void 0===O&&d&&(O=-1),c.createElement("span",Object.assign({role:"img"},v,{ref:t,tabIndex:O,onClick:d,className:m}),r?c.createElement(r,Object.assign({},g),h):h?((0,l.warning)(Boolean(o)||1===c.Children.count(h)&&c.isValidElement(h)&&"use"===c.Children.only(h).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),c.createElement("svg",Object.assign({},g,{viewBox:o}),h)):null)}));p.displayName="AntdIcon";var d=p;t.default=d},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1146))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){var r=n(202),o=n(1155),i=n(1176),a=n(143),c=n(617),u=n(1180),l=n(1182),s=n(887),f=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=a(t,e),l||(l=t.length>1),t})),c(e,s(e),n),l&&(n=o(n,7,u));for(var f=t.length;f--;)i(n,t[f]);return n}));e.exports=f},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1188))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1193))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1195))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1197))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1199))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(1203))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1212))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){var r=n(1298),o=n(257),i=/[&<>"']/g,a=RegExp(i.source);e.exports=function(e){return(e=o(e))&&a.test(e)?e.replace(i,r):e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=r.createContext(null)},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return ee}));var r=n(6),o=n(31),i=n(28),a=n(72),c=n(0),u=n.n(c),l=n(37),s=n(4),f=n.n(s),p=n(387),d=n(581),h=n(306),v=n(388),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function y(e){var t=void 0;return m({},t=e&&"object"==typeof e&&"key"in e?e:{key:e},{key:String(t.key)})}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(y)}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=b(e),a=b(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var c=a[i];if(c.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return m({},e,{status:"add"})}))),r=i),n.push(m({},c,{status:"keep"})),r+=1,t=!0;break}}t||n.push(m({},e,{status:"remove"}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return m({},e,{status:"add"})}))));var c={};n.forEach((function(e){var t=e.key;c[t]=(c[t]||0)+1}));var u=Object.keys(c).filter((function(e){return c[e]>1}));return u.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||"remove"!==r}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function j(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var C=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var _=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.a,n=function(n){function r(){var e,t,n;x(this,r);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return t=n=E(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(i))),n.state={keyEntities:[]},n.removeKey=function(e){n.setState((function(t){return{keyEntities:t.keyEntities.map((function(t){return t.key!==e?t:O({},t,{status:"removed"})}))}}))},E(n,t)}return S(r,n),w(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=j(r,["component","children"]),c=o||u.a.Fragment,l={};return C.forEach((function(e){l[e]=a[e],delete a[e]})),delete a.keys,u.a.createElement(c,a,n.map((function(n){var r=n.status,o=j(n,["status"]),a="add"===r||"keep"===r;return u.a.createElement(t,O({},l,{key:o.key,visible:a,eventProps:o,onLeaveEnd:function(){l.onLeaveEnd&&l.onLeaveEnd.apply(l,arguments),e.removeKey(o.key)}}),i)})))}}],[{key:"getDerivedStateFromProps",value:function(t,n){var r=t.keys,o=n.keyEntities,i=b(r);if(!e)return{keyEntities:i.map((function(e){return O({},e,{status:"keep"})}))};var a=g(o,i),c=o.length;return{keyEntities:a.filter((function(e){for(var t=null,n=0;n<c;n+=1){var r=o[n];if(r.key===e.key){t=r;break}}return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),r}(u.a.Component);return n.defaultProps={component:"div"},n}(v.c),P=n(532),k=n(175);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=u.a.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,o=e.inputElement,i=e.disabled,a=e.tabIndex,c=e.autoFocus,l=e.autoComplete,s=e.editable,f=e.accessibilityIndex,p=e.value,d=e.onKeyDown,h=e.onMouseDown,v=e.onChange,m=e.onPaste,y=e.onCompositionStart,b=e.onCompositionEnd,g=e.open,O=e.attrs,w=o||u.a.createElement("input",null),j=w,x=j.ref,E=j.props,S=E.onKeyDown,C=E.onChange,_=E.onMouseDown,P=E.onCompositionStart,M=E.onCompositionEnd,T=E.style;return w=u.a.cloneElement(w,N(N({id:r,ref:Object(k.a)(t,x),disabled:i,tabIndex:a,autoComplete:l||"off",autoFocus:c,className:"".concat(n,"-selection-search-input"),style:N(N({},T),{},{opacity:s?null:0}),role:"combobox","aria-expanded":g,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":"".concat(r,"_list_").concat(f)},O),{},{value:s?p:"",readOnly:!s,unselectable:s?null:"on",onKeyDown:function(e){d(e),S&&S(e)},onMouseDown:function(e){h(e),_&&_(e)},onChange:function(e){v(e),C&&C(e)},onCompositionStart:function(e){y(e),P&&P(e)},onCompositionEnd:function(e){b(e),M&&M(e)},onPaste:m}))}));T.displayName="Input";var A=T,R=n(252);function D(e,t){R.b?c.useLayoutEffect(e,t):c.useEffect(e,t)}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F=function(e){var t=e.id,n=e.prefixCls,o=e.values,c=e.open,l=e.searchValue,s=e.inputRef,p=e.placeholder,h=e.disabled,v=e.mode,m=e.showSearch,y=e.autoFocus,b=e.autoComplete,g=e.accessibilityIndex,O=e.tabIndex,w=e.removeIcon,j=e.choiceTransitionName,x=e.maxTagCount,E=e.maxTagTextLength,S=e.maxTagPlaceholder,C=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,k=e.tagRender,M=e.onSelect,N=e.onInputChange,T=e.onInputPaste,R=e.onInputKeyDown,I=e.onInputMouseDown,F=e.onInputCompositionStart,z=e.onInputCompositionEnd,H=u.a.useState(!1),B=Object(i.a)(H,2),V=B[0],K=B[1],U=u.a.useRef(null),W=u.a.useState(0),q=Object(i.a)(W,2),G=q[0],$=q[1];u.a.useEffect((function(){K(!0)}),[]);var Y=c||"tags"===v?l:"",X="tags"===v||c&&m;D((function(){$(U.current.scrollWidth)}),[Y]);var Z,J=o;"number"==typeof x&&(Z=o.length-x,J=o.slice(0,x)),"number"==typeof E&&(J=J.map((function(e){var t=e.label,n=Object(a.a)(e,["label"]),r=t;if("string"==typeof t||"number"==typeof t){var o=String(r);o.length>E&&(r="".concat(o.slice(0,E),"..."))}return L(L({},n),{},{label:r})}))),Z>0&&J.push({key:"__RC_SELECT_MAX_REST_COUNT__",label:"function"==typeof C?C(o.slice(x)):C});var Q=u.a.createElement(_,{component:!1,keys:J,motionName:j,motionAppear:V},(function(e){var t=e.key,o=e.label,i=e.value,a=e.disabled,c=e.className,l=e.style,s=t||i,p="__RC_SELECT_MAX_REST_COUNT__"!==t&&!a,d=function(e){e.preventDefault(),e.stopPropagation()},h=function(e){e&&e.stopPropagation(),M(i,{selected:!1})};return"function"==typeof k?u.a.createElement("span",{key:s,onMouseDown:d,className:c,style:l},k({label:o,value:i,disabled:a,closable:p,onClose:h})):u.a.createElement("span",{key:s,className:f()(c,"".concat(n,"-selection-item"),Object(r.a)({},"".concat(n,"-selection-item-disabled"),a)),style:l},u.a.createElement("span",{className:"".concat(n,"-selection-item-content")},o),p&&u.a.createElement(P.a,{className:"".concat(n,"-selection-item-remove"),onMouseDown:d,onClick:h,customizeIcon:w},"×"))}));return u.a.createElement(u.a.Fragment,null,Q,u.a.createElement("span",{className:"".concat(n,"-selection-search"),style:{width:G}},u.a.createElement(A,{ref:s,open:c,prefixCls:n,id:t,inputElement:null,disabled:h,autoFocus:y,autoComplete:b,editable:X,accessibilityIndex:g,value:Y,onKeyDown:R,onMouseDown:I,onChange:N,onPaste:T,onCompositionStart:F,onCompositionEnd:z,tabIndex:O,attrs:Object(d.a)(e,!0)}),u.a.createElement("span",{ref:U,className:"".concat(n,"-selection-search-mirror"),"aria-hidden":!0},Y," ")),!o.length&&!Y&&u.a.createElement("span",{className:"".concat(n,"-selection-placeholder")},p))},z=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,c=e.autoFocus,l=e.autoComplete,s=e.accessibilityIndex,f=e.mode,p=e.open,h=e.values,v=e.placeholder,m=e.tabIndex,y=e.showSearch,b=e.searchValue,g=e.activeValue,O=e.onInputKeyDown,w=e.onInputMouseDown,j=e.onInputChange,x=e.onInputPaste,E=e.onInputCompositionStart,S=e.onInputCompositionEnd,C=u.a.useState(!1),_=Object(i.a)(C,2),P=_[0],k=_[1],M="combobox"===f,N=M||y&&p,T=h[0],R=b||"";M&&g&&!P&&(R=g),u.a.useEffect((function(){M&&k(!1)}),[M,g]);var D=!("combobox"!==f&&!p)&&!!R,I=!T||"string"!=typeof T.label&&"number"!=typeof T.label?void 0:T.label.toString();return u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"".concat(n,"-selection-search")},u.a.createElement(A,{ref:o,prefixCls:n,id:r,open:p,inputElement:t,disabled:a,autoFocus:c,autoComplete:l,editable:N,accessibilityIndex:s,value:R,onKeyDown:O,onMouseDown:w,onChange:function(e){k(!0),j(e)},onPaste:x,onCompositionStart:E,onCompositionEnd:S,tabIndex:m,attrs:Object(d.a)(e,!0)})),!M&&T&&!D&&u.a.createElement("span",{className:"".concat(n,"-selection-item"),title:I},T.label),!T&&!D&&u.a.createElement("span",{className:"".concat(n,"-selection-placeholder")},v))};function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return c.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var B=c.forwardRef((function(e,t){var n=Object(c.useRef)(null),r=Object(c.useRef)(!1),o=e.prefixCls,a=e.multiple,u=e.open,s=e.mode,f=e.showSearch,p=e.tokenWithEnter,d=e.onSearch,h=e.onSearchSubmit,v=e.onToggleOpen,m=e.onInputKeyDown,y=e.domRef;c.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var b=H(0),g=Object(i.a)(b,2),O=g[0],w=g[1],j=Object(c.useRef)(null),x={inputRef:n,onInputKeyDown:function(e){var t=e.which;t!==l.a.UP&&t!==l.a.DOWN||e.preventDefault(),m&&m(e),t!==l.a.ENTER||"tags"!==s||r.current||u||h(e.target.value),[l.a.SHIFT,l.a.TAB,l.a.BACKSPACE,l.a.ESC].includes(t)||v(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(p&&j.current&&/[\r\n]/.test(j.current)){var n=j.current.replace(/[\r\n]/g," ");t=t.replace(n,j.current)}j.current=null,function(e){!1!==d(e,!0,r.current)&&v(!0)}(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");j.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(){r.current=!1}},E=a?c.createElement(F,Object.assign({},e,x)):c.createElement(z,Object.assign({},e,x));return c.createElement("div",{ref:y,className:"".concat(o,"-selector"),onMouseDown:function(e){var t=O();e.target!==n.current&&(t||e.preventDefault(),void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus());("combobox"===s||f&&t)&&u||(u&&d("",!0,!1),v())}},E)}));B.displayName="Selector";var V=B,K=n(386);function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var W=c.forwardRef((function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),i=e.children,u=e.popupElement,l=e.containerWidth,s=e.animation,p=e.transitionName,d=e.dropdownStyle,h=e.dropdownClassName,v=e.direction,m=void 0===v?"ltr":v,y=e.dropdownMatchSelectWidth,b=void 0===y||y,g=e.dropdownRender,O=e.dropdownAlign,w=e.getPopupContainer,j=e.empty,x=e.getTriggerDOMNode,E=Object(a.a)(e,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),S="".concat(n,"-dropdown"),C=u;g&&(C=g(u));var _=c.useMemo((function(){return function(e){var t="number"!=typeof e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}}(b)}),[b]),P=s?"".concat(S,"-").concat(s):p,k=c.useRef(null);c.useImperativeHandle(t,(function(){return{getPopupElement:function(){return k.current}}}));var M=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({minWidth:l},d);return"number"==typeof b?M.width=b:b&&(M.width=l),c.createElement(K.a,Object.assign({},E,{showAction:[],hideAction:[],popupPlacement:"rtl"===m?"bottomRight":"bottomLeft",builtinPlacements:_,prefixCls:S,popupTransitionName:P,popup:c.createElement("div",{ref:k},C),popupAlign:O,popupVisible:o,getPopupContainer:w,popupClassName:f()(h,Object(r.a)({},"".concat(S,"-empty"),j)),popupStyle:M,getTriggerDOMNode:x}),i)}));W.displayName="SelectTrigger";var q=W,G=n(942);var $=n(441);function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function ee(e){var t=e.prefixCls,n=e.components.optionList,u=e.convertChildrenToData,s=e.flattenOptions,d=e.getLabeledValue,h=e.filterOptions,v=e.isValueDisabled,m=e.findValueOption,y=(e.warningProps,e.fillOptionsWithMissingValue),b=e.omitDOMProps;return c.forwardRef((function(e,g){var O,w=e.prefixCls,j=void 0===w?t:w,x=e.className,E=e.id,S=e.open,C=e.defaultOpen,_=e.options,k=e.children,M=e.mode,N=e.value,T=e.defaultValue,A=e.labelInValue,I=e.showSearch,L=e.inputValue,F=e.searchValue,z=e.filterOption,B=e.optionFilterProp,K=void 0===B?"value":B,U=e.autoClearSearchValue,W=void 0===U||U,Y=e.onSearch,Z=e.allowClear,ee=e.clearIcon,te=e.showArrow,ne=e.inputIcon,re=e.menuItemSelectedIcon,oe=e.disabled,ie=e.loading,ae=e.defaultActiveFirstOption,ce=e.notFoundContent,ue=void 0===ce?"Not Found":ce,le=e.optionLabelProp,se=e.backfill,fe=e.getInputElement,pe=e.getPopupContainer,de=e.listHeight,he=void 0===de?200:de,ve=e.listItemHeight,me=void 0===ve?20:ve,ye=e.animation,be=e.transitionName,ge=e.virtual,Oe=e.dropdownStyle,we=e.dropdownClassName,je=e.dropdownMatchSelectWidth,xe=e.dropdownRender,Ee=e.dropdownAlign,Se=e.showAction,Ce=void 0===Se?[]:Se,_e=e.direction,Pe=e.tokenSeparators,ke=e.tagRender,Me=e.onPopupScroll,Ne=e.onDropdownVisibleChange,Te=e.onFocus,Ae=e.onBlur,Re=e.onKeyUp,De=e.onKeyDown,Ie=e.onMouseDown,Le=e.onChange,Fe=e.onSelect,ze=e.onDeselect,He=e.internalProps,Be=void 0===He?{}:He,Ve=Object(a.a)(e,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","internalProps"]),Ke=Be.mark===G.a,Ue=b?b(Ve):Ve;Q.forEach((function(e){delete Ue[e]}));var We=Object(c.useRef)(null),qe=Object(c.useRef)(null),Ge=Object(c.useRef)(null),$e=Object(c.useRef)(null),Ye=Object(c.useMemo)((function(){return(Pe||[]).includes("\n")}),[Pe]),Xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=c.useState(!1),n=Object(i.a)(t,2),r=n[0],o=n[1],a=c.useRef(null),u=function(){window.clearTimeout(a.current)};c.useEffect((function(){return u}),[]);var l=function(t,n){u(),a.current=window.setTimeout((function(){o(t),n&&n()}),e)};return[r,l,u]}(),Ze=Object(i.a)(Xe,3),Je=Ze[0],Qe=Ze[1],et=Ze[2],tt=Object(c.useState)(),nt=Object(i.a)(tt,2),rt=nt[0],ot=nt[1];Object(c.useEffect)((function(){ot("rc_select_".concat(Object(R.a)()))}),[]);var it=E||rt,at=le;void 0===at&&(at=_?"label":"children");var ct="combobox"!==M&&A,ut="tags"===M||"multiple"===M,lt=void 0!==I?I:ut||"combobox"===M,st=Object(c.useRef)(null);c.useImperativeHandle(g,(function(){return{focus:Ge.current.focus,blur:Ge.current.blur}}));var ft=Object(p.a)(T,{value:N}),pt=Object(i.a)(ft,2),dt=pt[0],ht=pt[1],vt=Object(c.useMemo)((function(){return Object(R.e)(dt,{labelInValue:ct,combobox:"combobox"===M})}),[dt,ct]),mt=Object(c.useMemo)((function(){return new Set(vt)}),[vt]),yt=Object(c.useState)(null),bt=Object(i.a)(yt,2),gt=bt[0],Ot=bt[1],wt=Object(c.useState)(""),jt=Object(i.a)(wt,2),xt=jt[0],Et=jt[1],St=xt;"combobox"===M&&void 0!==dt?St=dt:void 0!==F?St=F:L&&(St=L);var Ct=Object(c.useMemo)((function(){var e=_;return void 0===e&&(e=u(k)),"tags"===M&&y&&(e=y(e,dt,at,A)),e||[]}),[_,k,M,dt]),_t=Object(c.useMemo)((function(){return s(Ct,e)}),[Ct]),Pt=function(e,t){var n=c.useRef(null),r=c.useMemo((function(){var e=new Map;return t.forEach((function(t){var n=t.data.value;e.set(n,t)})),e}),[e,t]);return n.current=r,function(e){return e.map((function(e){return n.current.get(e)})).filter(Boolean)}}(vt,_t),kt=Object(c.useMemo)((function(){if(!St||!lt)return Object(o.a)(Ct);var e=h(St,Ct,{optionFilterProp:K,filterOption:"combobox"===M&&void 0===z?function(){return!0}:z});return"tags"===M&&e.every((function(e){return e.value!==St}))&&e.unshift({value:St,label:St,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),e}),[Ct,St,M,lt]),Mt=Object(c.useMemo)((function(){return s(kt,e)}),[kt]);Object(c.useEffect)((function(){$e.current&&$e.current.scrollTo&&$e.current.scrollTo(0)}),[St]);var Nt,Tt,At=Object(c.useMemo)((function(){var e=vt.map((function(e){var t=Pt([e]);return J(J({},d(e,{options:t,prevValue:dt,labelInValue:ct,optionLabelProp:at})),{},{disabled:v(e,t)})}));return M||1!==e.length||null!==e[0].value||null!==e[0].label?e:[]}),[dt,Ct,M]);Nt=At,Tt=c.useRef(Nt),At=c.useMemo((function(){var e=new Map;Tt.current.forEach((function(t){var n=t.value,r=t.label;n!==r&&e.set(n,r)}));var t=Nt.map((function(t){var n=e.get(t.value);return t.value===t.label&&n?X(X({},t),{},{label:n}):t}));return Tt.current=t,t}),[Nt]);var Rt=function(e,t,n){var r=Pt([e]),o=m([e],r)[0];if(!Be.skipTriggerSelect){var i=ct?d(e,{options:r,prevValue:dt,labelInValue:ct,optionLabelProp:at}):e;t&&Fe?Fe(i,o):!t&&ze&&ze(i,o)}Ke&&(t&&Be.onRawSelect?Be.onRawSelect(e,o,n):!t&&Be.onRawDeselect&&Be.onRawDeselect(e,o,n))},Dt=function(e){if(!Ke||!Be.skipTriggerChange){var t=Pt(e),n=Object(R.f)(Array.from(e),{labelInValue:ct,options:t,getLabeledValue:d,prevValue:dt,optionLabelProp:at}),r=ut?n:n[0];if(Le&&(0!==vt.length||0!==n.length)){var o=m(e,t);Le(r,ut?o:o[0])}ht(r)}},It=function(e,t){var n,r=t.selected,o=t.source;oe||(ut?(n=new Set(vt),r?n.add(e):n.delete(e)):(n=new Set).add(e),(ut||!ut&&Array.from(vt)[0]!==e)&&Dt(Array.from(n)),Rt(e,!ut||r,o),"combobox"===M?(Et(String(e)),Ot("")):ut&&!W||(Et(""),Ot("")))},Lt="combobox"===M&&fe&&fe()||null,Ft=Object(p.a)(void 0,{defaultValue:C,value:S}),zt=Object(i.a)(Ft,2),Ht=zt[0],Bt=zt[1],Vt=Ht,Kt=!ue&&!kt.length;(oe||Kt&&Vt&&"combobox"===M)&&(Vt=!1);var Ut=!Kt&&Vt,Wt=function(e){var t=void 0!==e?e:!Vt;Ht===t||oe||(Bt(t),Ne&&Ne(t))};!function(e,t,n){var r=c.useRef(null);r.current={elements:e.filter((function(e){return e})),open:t,triggerOpen:n},c.useEffect((function(){function e(e){var t=e.target;r.current.open&&r.current.elements.every((function(e){return!e.contains(t)&&e!==t}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}([We.current,qe.current&&qe.current.getPopupElement()],Ut,Wt);var qt=function(e,t,n){var r=!0,i=e;Ot(null);var a=n?null:Object($.f)(e,Pe),c=a;if("combobox"===M)t&&Dt([i]);else if(a){i="","tags"!==M&&(c=a.map((function(e){var t=_t.find((function(t){return t.data[at]===e}));return t?t.data.value:null})).filter((function(e){return null!==e})));var u=Array.from(new Set([].concat(Object(o.a)(vt),Object(o.a)(c))));Dt(u),u.forEach((function(e){Rt(e,!0,"input")})),Wt(!1),r=!1}return Et(i),Y&&St!==i&&Y(i),r};Object(c.useEffect)((function(){Ht&&oe&&Bt(!1)}),[oe]),Object(c.useEffect)((function(){Vt||ut||"combobox"===M||qt("",!1,!1)}),[Vt]);var Gt=H(),$t=Object(i.a)(Gt,2),Yt=$t[0],Xt=$t[1],Zt=Object(c.useRef)(!1),Jt=[];Object(c.useEffect)((function(){return function(){Jt.forEach((function(e){return clearTimeout(e)})),Jt.splice(0,Jt.length)}}),[]);var Qt=Object(c.useState)(0),en=Object(i.a)(Qt,2),tn=en[0],nn=en[1],rn=void 0!==ae?ae:"combobox"!==M,on=Object(c.useState)(null),an=Object(i.a)(on,2),cn=an[0],un=an[1],ln=Object(c.useState)({}),sn=Object(i.a)(ln,2)[1];D((function(){if(Ut){var e=Math.ceil(We.current.offsetWidth);cn!==e&&un(e)}}),[Ut]);var fn,pn=c.createElement(n,{ref:$e,prefixCls:j,id:it,open:Vt,childrenAsData:!_,options:kt,flattenOptions:Mt,multiple:ut,values:mt,height:he,itemHeight:me,onSelect:function(e,t){It(e,J(J({},t),{},{source:"option"}))},onToggleOpen:Wt,onActiveValue:function(e,t){nn(t),se&&"combobox"===M&&null!==e&&Ot(String(e))},defaultActiveFirstOption:rn,notFoundContent:ue,onScroll:Me,searchValue:St,menuItemSelectedIcon:re,virtual:!1!==ge&&!1!==je,onMouseEnter:function(){sn({})}});!oe&&Z&&(vt.length||St)&&(fn=c.createElement(P.a,{className:"".concat(j,"-clear"),onMouseDown:function(){Ke&&Be.onClear&&Be.onClear(),Dt([]),qt("",!1,!1)},customizeIcon:ee},"×"));var dn,hn=void 0!==te?te:ie||!ut&&"combobox"!==M;hn&&(dn=c.createElement(P.a,{className:f()("".concat(j,"-arrow"),Object(r.a)({},"".concat(j,"-arrow-loading"),ie)),customizeIcon:ne,customizeIconProps:{loading:ie,searchValue:St,open:Vt,focused:Je,showSearch:lt}}));var vn=f()(j,x,(O={},Object(r.a)(O,"".concat(j,"-focused"),Je),Object(r.a)(O,"".concat(j,"-multiple"),ut),Object(r.a)(O,"".concat(j,"-single"),!ut),Object(r.a)(O,"".concat(j,"-allow-clear"),Z),Object(r.a)(O,"".concat(j,"-show-arrow"),hn),Object(r.a)(O,"".concat(j,"-disabled"),oe),Object(r.a)(O,"".concat(j,"-loading"),ie),Object(r.a)(O,"".concat(j,"-open"),Vt),Object(r.a)(O,"".concat(j,"-customize-input"),Lt),Object(r.a)(O,"".concat(j,"-show-search"),lt),O));return c.createElement("div",Object.assign({className:vn},Ue,{ref:We,onMouseDown:function(e){var t=e.target,n=qe.current&&qe.current.getPopupElement();if(n&&n.contains(t)){var r=setTimeout((function(){var e=Jt.indexOf(r);-1!==e&&Jt.splice(e,1),et(),n.contains(document.activeElement)||Ge.current.focus()}));Jt.push(r)}if(Ie){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];Ie.apply(void 0,[e].concat(i))}},onKeyDown:function(e){var t,n=Yt(),r=e.which;if(Vt||r!==l.a.ENTER||Wt(!0),Xt(!!St),r===l.a.BACKSPACE&&!n&&ut&&!St&&vt.length){var o=Object(R.c)(At,vt);null!==o.removedValue&&(Dt(o.values),Rt(o.removedValue,!1,"input"))}for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];Vt&&$e.current&&(t=$e.current).onKeyDown.apply(t,[e].concat(a));De&&De.apply(void 0,[e].concat(a))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Vt&&$e.current&&(o=$e.current).onKeyUp.apply(o,[e].concat(n));Re&&Re.apply(void 0,[e].concat(n))},onFocus:function(){Qe(!0),oe||(Te&&!Zt.current&&Te.apply(void 0,arguments),Ce.includes("focus")&&Wt(!0)),Zt.current=!0},onBlur:function(){Qe(!1,(function(){Zt.current=!1,Wt(!1)})),oe||(St&&("tags"===M?(qt("",!1,!1),Dt(Array.from(new Set([].concat(Object(o.a)(vt),[St]))))):"multiple"===M&&Et("")),Ae&&Ae.apply(void 0,arguments))}}),Je&&!Vt&&c.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(vt.join(", "))),c.createElement(q,{ref:qe,disabled:oe,prefixCls:j,visible:Ut,popupElement:pn,containerWidth:cn,animation:ye,transitionName:be,dropdownStyle:Oe,dropdownClassName:we,direction:_e,dropdownMatchSelectWidth:je,dropdownRender:xe,dropdownAlign:Ee,getPopupContainer:pe,empty:!Ct.length,getTriggerDOMNode:function(){return st.current}},c.createElement(V,Object.assign({},e,{domRef:st,prefixCls:j,inputElement:Lt,ref:Ge,id:it,showSearch:lt,mode:M,accessibilityIndex:tn,multiple:ut,tagRender:ke,values:At,open:Vt,onToggleOpen:Wt,searchValue:St,activeValue:gt,onSearch:qt,onSearchSubmit:function(e){var t=Array.from(new Set([].concat(Object(o.a)(vt),[e])));Dt(t),t.forEach((function(e){Rt(e,!0,"input")})),Et("")},onSelect:function(e,t){It(e,J(J({},t),{},{source:"selection"}))},tokenWithEnter:Ye}))),dn,fn)}))}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(101),c=n.n(a);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){var t=e.height,n=e.offset,o=e.children,a=e.prefixCls,c={},u={display:"flex",flexDirection:"column"};return void 0!==n&&(c={height:t,position:"relative",overflow:"hidden"},u=l(l({},u),{},{transform:"translateY(".concat(n,"px)"),position:"absolute",left:0,right:0,top:0})),r.createElement("div",{style:c},r.createElement("div",{style:u,className:i()(s({},"".concat(a,"-holder-inner"),a))},o))},p=n(496);function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){return e<0?0:e>=t?t:e}function v(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;if(n<=r)return 0;var o=n-r;return h(t,o)/o}function m(e){return e?v(e):0}function y(e,t,n){var r=function(e,t){var n=Math.floor(e*t),r=n/t;return{index:n,offsetPtg:(e-r)/((n+1)/t-r)}}(e,t),o=r.index,i=r.offsetPtg,a=Math.ceil(e*n),c=Math.ceil((1-e)*n);return{itemIndex:o,itemOffsetPtg:i,startIndex:Math.max(0,o-a),endIndex:Math.min(t-1,o+c)}}function b(e){var t=e.itemIndex,n=e.itemOffsetPtg,r=e.itemElementHeights,o=e.scrollPtg*e.clientHeight,i=n*(r[(0,e.getItemKey)(t)]||0);return Math.floor(o-i)}function g(e){var t=e.locatedItemRelativeTop,n=e.locatedItemIndex,r=e.compareItemIndex,o=e.startIndex,i=e.endIndex,a=e.getItemKey,c=e.itemElementHeights,u=t,l=a(r);if(r<=n)for(var s=n;s>=o;s-=1){if(a(s)===l)break;u-=c[a(s-1)]||0}else for(var f=n;f<=i;f+=1){var p=a(f);if(p===l)break;u+=c[p]||0}return u}function O(e,t,n,r){return!1!==r&&"number"==typeof e&&n*t>e}function w(e,t,n,r){var o=n-e,i=t-n;if(r<=2*Math.min(o,i)){var a=Math.floor(r/2);return r%2?n+a+1:n-a}return o>i?n-(r-i):n+(r-o)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T,A={overflowY:"auto",overflowAnchor:"none"},R=((T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(u,e);var t,n,o,a=k(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).listRef=r.createRef(),t.itemElements={},t.itemElementHeights={},t.lockScroll=!1,t.onScroll=function(e){var n=t.props,r=n.data,o=n.height,i=n.itemHeight,a=n.disabled,c=t.listRef.current,u=c.scrollTop,l=c.clientHeight,s=h(u,c.scrollHeight-l);if(s!==t.state.scrollTop&&!t.lockScroll&&!a){var f=m(t.listRef.current),p=Math.ceil(o/i),d=y(f,r.length,p),v=d.itemIndex,b=d.itemOffsetPtg,g=d.startIndex,O=d.endIndex;t.setState({status:"MEASURE_START",scrollTop:s,itemIndex:v,itemOffsetPtg:b,startIndex:g,endIndex:O}),t.triggerOnScroll(e)}},t.onRawScroll=function(e){var n=t.listRef.current.scrollTop;t.setState({scrollTop:n}),t.triggerOnScroll(e)},t.triggerOnScroll=function(e){var n=t.props.onScroll;n&&e&&n(e)},t.getIndexKey=function(e,n){var r=n||t.props,o=r.data,i=void 0===o?[]:o;if(e===i.length)return"__rc_ghost_item__";var a=i[e];return void 0===a?(console.error("Not find index item. Please report this since it is a bug."),null):t.getItemKey(a,r)},t.getItemKey=function(e,n){var r=(n||t.props).itemKey;return"function"==typeof r?r(e):e[r]},t.collectItemHeights=function(e){for(var n,r,o=e||t.state,i=o.startIndex,a=o.endIndex,c=t.props.data,u=i;u<=a;u+=1){var l=c[u];if(l){var s=t.getItemKey(l);t.itemElementHeights[s]=(n=t.itemElements[s],r=void 0,(r=Object(p.a)(n))?r.offsetHeight:0)}}},t.scrollTo=function(e){c.a.cancel(t.rafId),t.rafId=c()((function(){if("object"===C(e)){var n=t.state.isVirtual,r=t.props,o=r.height,i=r.itemHeight,a=r.data,c=e.align,u=void 0===c?"auto":c,l=0;if("index"in e)l=e.index;else if("key"in e){var s=e.key;l=a.findIndex((function(e){return t.getItemKey(e)===s}))}var f=Math.ceil(o/i),p=a[l];if(p){var d=t.listRef.current.clientHeight;if(n){var h=t.state,v=h.itemIndex,g=h.itemOffsetPtg,O=t.listRef.current.scrollTop,w=m(t.listRef.current),j=b({itemIndex:v,itemOffsetPtg:g,itemElementHeights:t.itemElementHeights,scrollPtg:w,clientHeight:d,getItemKey:t.getIndexKey});t.setState({startIndex:Math.max(0,l-f),endIndex:Math.min(a.length-1,l+f)},(function(){var e;t.collectItemHeights();var n=u;if("auto"===u){var r=!0;if(Math.abs(v-l)<f){var o=j;if(l<v)for(var i=l;i<v;i+=1){var c=t.getIndexKey(i);o-=t.itemElementHeights[c]||0}else for(var s=v;s<=l;s+=1){var h=t.getIndexKey(s);o+=t.itemElementHeights[h]||0}r=o<=0||o>=d}if(!r){var m=y(w,a.length,f),b=m.itemIndex,g=m.itemOffsetPtg,x=m.startIndex,E=m.endIndex;return void t.setState({scrollTop:O,itemIndex:b,itemOffsetPtg:g,startIndex:x,endIndex:E})}n=l<v?"top":"bottom"}if("top"===n)e=0;else if("bottom"===n){var S=t.getItemKey(p);e=d-t.itemElementHeights[S]||0}t.internalScrollTo({itemIndex:l,relativeTop:e})}))}else{t.collectItemHeights({startIndex:0,endIndex:a.length-1});for(var x=u,E=t.itemElementHeights[t.getIndexKey(l)],S=0,_=0;_<l;_+=1){var P=t.getIndexKey(_);S+=t.itemElementHeights[P]||0}var k=S+E;"auto"===x&&(S<t.listRef.current.scrollTop?x="top":k>t.listRef.current.scrollTop+d&&(x="bottom")),"top"===x?t.listRef.current.scrollTop=S:"bottom"===x&&(t.listRef.current.scrollTop=S-(d-E))}}}else t.listRef.current.scrollTop=e}))},t.renderChildren=function(e,n,o){var i=t.state.status;return e.map((function(e,a){var c=n+a,u=o(e,c,{style:"MEASURE_START"===i?{visibility:"hidden"}:{}}),l=t.getIndexKey(c);return r.cloneElement(u,{key:l,ref:function(e){t.itemElements[l]=e}})}))},t.cachedProps=e,t.state={status:"NONE",scrollTop:null,itemIndex:0,itemOffsetPtg:0,startIndex:0,endIndex:0,startItemTop:0,isVirtual:O(e.height,e.itemHeight,e.data.length,e.virtual),itemCount:e.data.length},t}return t=u,o=[{key:"getDerivedStateFromProps",value:function(e){return e.disabled?null:{itemCount:e.data.length}}}],(n=[{key:"componentDidMount",value:function(){this.listRef.current&&(this.listRef.current.scrollTop=0,this.onScroll(null))}},{key:"componentDidUpdate",value:function(){var e=this,t=this.state.status,n=this.props,r=n.data,o=n.height,i=n.itemHeight,a=n.disabled,c=n.onSkipRender,u=n.virtual,l=this.cachedProps.data||[],s=null;if(l.length!==r.length){var f=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var c={__EMPTY_ITEM__:!0};function u(e){return void 0!==e?n(e):c}for(var l=null,s=1!==Math.abs(i-a),f=0;f<o.length;f+=1){var p=u(r[f]);if(p!==u(o[f])){l=f,s=s||p!==u(o[f+1]);break}}return null===l?null:{index:l,multiple:s}}(l,r,this.getItemKey);s=f?f.index:null}if(a){if(r.length>l.length){var p=this.state,h=p.startIndex,y=p.endIndex;c&&(null===s||s<h||y<s)&&c()}}else{var w=O(o,i,r.length,u),j=t;if(this.state.isVirtual===w||(j=w?"SWITCH_TO_VIRTUAL":"SWITCH_TO_RAW",this.setState({isVirtual:w,status:j}),"SWITCH_TO_VIRTUAL"!==j)){if("MEASURE_START"===t){var x=this.state,E=x.startIndex,S=x.itemIndex,C=x.itemOffsetPtg,_=this.listRef.current.scrollTop;this.collectItemHeights();for(var P=(M={itemIndex:S,itemOffsetPtg:C,itemElementHeights:this.itemElementHeights,scrollTop:_,scrollPtg:m(this.listRef.current),clientHeight:this.listRef.current.clientHeight,getItemKey:this.getIndexKey}).scrollTop+b(d(M,["scrollTop"])),k=S-1;k>=E;k-=1)P-=this.itemElementHeights[this.getIndexKey(k)]||0;this.setState({status:"MEASURE_DONE",startItemTop:P})}var M;if("SWITCH_TO_RAW"===t){for(var N=this.state.cacheScroll,T=N.itemIndex,A=N.relativeTop,R=0;R<T;R+=1)A-=this.itemElementHeights[this.getIndexKey(R)]||0;this.lockScroll=!0,this.listRef.current.scrollTop=-A,this.setState({status:"MEASURE_DONE",itemIndex:0}),requestAnimationFrame((function(){requestAnimationFrame((function(){e.lockScroll=!1}))}))}else if(l.length!==r.length&&null!==s&&o){var D,I=this.state.itemIndex,L=this.state,F=L.itemOffsetPtg,z=L.startIndex,H=L.endIndex,B=L.scrollTop;this.collectItemHeights(),"SWITCH_TO_VIRTUAL"===this.state.status?(I=0,D=-this.state.scrollTop):D=b({itemIndex:I,itemOffsetPtg:F,itemElementHeights:this.itemElementHeights,scrollPtg:v({scrollTop:B,scrollHeight:l.length*i,clientHeight:this.listRef.current.clientHeight}),clientHeight:this.listRef.current.clientHeight,getItemKey:function(t){return e.getIndexKey(t,e.cachedProps)}});var V=s-1;V<0&&(V=0);var K=g({locatedItemRelativeTop:D,locatedItemIndex:I,compareItemIndex:V,startIndex:z,endIndex:H,getItemKey:function(t){return e.getIndexKey(t,e.cachedProps)},itemElementHeights:this.itemElementHeights});"SWITCH_TO_RAW"===j?this.setState({cacheScroll:{itemIndex:V,relativeTop:K}}):this.internalScrollTo({itemIndex:V,relativeTop:K})}else"SWITCH_TO_RAW"===j&&this.setState({cacheScroll:{itemIndex:0,relativeTop:0}});this.cachedProps=this.props}}}},{key:"componentWillUnmount",value:function(){c.a.cancel(this.rafId)}},{key:"internalScrollTo",value:function(e){for(var t=this,n=e.itemIndex,r=e.relativeTop,o=this.state.scrollTop,i=this.props,a=i.data,c=i.itemHeight,u=i.height,l=Number.MAX_VALUE,s=null,f=null,p=null,d=null,h=null,m=0,O=a.length*c,j=this.listRef.current.clientHeight,x=O-j,E=0;E<x;E+=1){var S=w(0,x,o,E),C=v({scrollTop:S,scrollHeight:O,clientHeight:j}),_=Math.ceil(u/c),P=y(C,a.length,_),k=P.itemIndex,M=P.itemOffsetPtg,N=P.startIndex,T=P.endIndex;if(N<=n&&n<=T){var A=g({locatedItemRelativeTop:b({itemIndex:k,itemOffsetPtg:M,itemElementHeights:this.itemElementHeights,scrollPtg:C,clientHeight:j,getItemKey:this.getIndexKey}),locatedItemIndex:k,compareItemIndex:n,startIndex:N,endIndex:T,getItemKey:this.getIndexKey,itemElementHeights:this.itemElementHeights}),R=Math.abs(A-r);R<l?(l=R,s=S,f=k,p=M,d=N,h=T,m=0):m+=1}if(m>10)break}null!==s&&(this.lockScroll=!0,this.listRef.current.scrollTop=s,this.setState({status:"MEASURE_START",scrollTop:s,itemIndex:f,itemOffsetPtg:p,startIndex:d,endIndex:h}),requestAnimationFrame((function(){requestAnimationFrame((function(){t.lockScroll=!1}))})))}},{key:"render",value:function(){var e=this.state,t=e.isVirtual,n=e.itemCount,o=this.props,a=o.prefixCls,c=o.style,u=o.className,l=o.component,s=void 0===l?"div":l,p=o.height,d=o.itemHeight,h=o.fullHeight,v=void 0===h||h,m=o.data,y=o.children,b=(o.itemKey,o.onSkipRender,o.disabled,o.virtual),g=S(o,["prefixCls","style","className","component","height","itemHeight","fullHeight","data","children","itemKey","onSkipRender","disabled","virtual"]),w=i()(a,u);if(!t){var j=O(p,d,m.length,b);return r.createElement(s,Object.assign({style:p?x(x({},c),{},E({},v?"height":"maxHeight",p),A):c,className:w},g,{onScroll:this.onRawScroll,ref:this.listRef}),r.createElement(f,{prefixCls:a,height:p},this.renderChildren(j?m.slice(0,Math.ceil(p/d)):m,0,y)))}var C=x(x({},c),{},{height:p},A),_=this.state,P=_.status,k=_.startIndex,M=_.endIndex,N=_.startItemTop,T=n*d*1;return r.createElement(s,Object.assign({style:C,className:w},g,{onScroll:this.onScroll,ref:this.listRef}),r.createElement(f,{prefixCls:a,height:T,offset:"MEASURE_DONE"===P?N:0},this.renderChildren(m.slice(k,M+1),k,y)))}}])&&_(t.prototype,n),o&&_(t,o),u}(r.Component)).defaultProps={itemHeight:15,data:[]},T);t.a=R},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(20),a=n.n(i);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(i,e);var t,n,r,o=f(i);function i(){var e;u(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).removeContainer=function(){e.container&&(a.a.unmountComponentAtNode(e.container),e.container.parentNode.removeChild(e.container),e.container=null)},e.renderComponent=function(t,n){var r=e.props,o=r.visible,i=r.getComponent,c=r.forceRender,u=r.getContainer,l=r.parent;(o||l._component||c)&&(e.container||(e.container=u()),a.a.unstable_renderSubtreeIntoContainer(l,i(t),e.container,(function(){n&&n.call(this)})))},e}return t=i,(n=[{key:"componentDidMount",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentWillUnmount",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:"render",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}])&&l(t.prototype,n),r&&l(t,r),i}(o.a.Component);h.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1};var v=n(736),m=n(738);var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.element,r=void 0===n?document.body:n,o={},i=Object.keys(e);return i.forEach((function(e){o[e]=r.style[e]})),i.forEach((function(t){r.style[t]=e[t]})),o};var b={},g=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var t=new RegExp("".concat("ant-scrolling-effect"),"g"),n=document.body.className;if(e){if(!t.test(n))return;return y(b),b={},void(document.body.className=n.replace(t,"").trim())}var r=Object(m.a)();if(r&&(b=y({position:"relative",width:"calc(100% - ".concat(r,"px)")}),!t.test(n))){var o="".concat(n," ").concat("ant-scrolling-effect");document.body.className=o.trim()}}};function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var M=0,N=!("undefined"!=typeof window&&window.document&&window.document.createElement),T="createPortal"in a.a,A={},R=function(e){if(N)return null;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"===k(e)&&e instanceof window.HTMLElement)return e}return document.body},D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(a,e);var t,n,r,i=S(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).getContainer=function(){if(N)return null;if(!t.container){t.container=document.createElement("div");var e=R(t.props.getContainer);e&&e.appendChild(t.container)}return t.setWrapperClassName(),t.container},t.setWrapperClassName=function(){var e=t.props.wrapperClassName;t.container&&e&&e!==t.container.className&&(t.container.className=e)},t.savePortal=function(e){t._component=e},t.removeCurrentContainer=function(e){t.container=null,t._component=null,T||(e?t.renderComponent({afterClose:t.removeContainer,onClose:function(){},visible:!1}):t.removeContainer())},t.switchScrollingEffect=function(){1!==M||Object.keys(A).length?M||(y(A),A={},g(!0)):(g(),A=y({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}))};var n=e.visible,r=e.getContainer;return N||R(r)!==document.body||(M=n?M+1:M),t.state={_self:_(t)},t}return t=a,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t._self,o=e.visible,i=e.getContainer;if(n){var a=n.visible,c=n.getContainer;o===a||N||R(i)!==document.body||(M=o&&!a?M+1:M-1),("function"==typeof i&&"function"==typeof c?i.toString()!==c.toString():i!==c)&&r.removeCurrentContainer(!1)}return{prevProps:e}}}],(n=[{key:"componentDidUpdate",value:function(){this.setWrapperClassName()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.visible,n=e.getContainer;N||R(n)!==document.body||(M=t&&M?M-1:M),this.removeCurrentContainer(t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.forceRender,i=t.visible,a=null,c={getOpenCount:function(){return M},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect};return T?((r||i||this._component)&&(a=o.a.createElement(v.a,{getContainer:this.getContainer,ref:this.savePortal},n(c))),a):o.a.createElement(h,{parent:this,visible:i,autoDestroy:!1,getComponent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(w(w(w({},t),c),{},{ref:e.savePortal}))},getContainer:this.getContainer,forceRender:r},(function(t){var n=t.renderComponent,r=t.removeContainer;return e.renderComponent=n,e.removeContainer=r,null}))}}])&&x(t.prototype,n),r&&x(t,r),a}(o.a.Component);t.a=D},function(e,t,n){"use strict";var r,o,i=n(43),a=n(44),c=n(50),u=n(49),l=n(25),s=n(0),f=n(6),p=n(237),d=n(84),h=n(4),v=n.n(h),m="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",y=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],b={};function g(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&b[n])return b[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=y.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),u={sizingStyle:c,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(b[n]=u),u}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(f.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(o||(o={}));var x=function(e){Object(c.a)(n,e);var t=j(n);function n(e){var a;return Object(i.a)(this,n),(a=t.call(this,e)).saveTextArea=function(e){a.textArea=e},a.handleResize=function(e){var t=a.state.resizeStatus,n=a.props,r=n.autoSize,i=n.onResize;t===o.NONE&&("function"==typeof i&&i(e),r&&a.resizeOnNextFrame())},a.resizeOnNextFrame=function(){cancelAnimationFrame(a.nextFrameActionId),a.nextFrameActionId=requestAnimationFrame(a.resizeTextarea)},a.resizeTextarea=function(){var e=a.props.autoSize;if(e&&a.textArea){var t=e.minRows,n=e.maxRows,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var i=g(e,t),a=i.paddingSize,c=i.borderSize,u=i.boxSizing,l=i.sizingStyle;r.setAttribute("style","".concat(l,";").concat(m)),r.value=e.value||e.placeholder||"";var s,f=Number.MIN_SAFE_INTEGER,p=Number.MAX_SAFE_INTEGER,d=r.scrollHeight;if("border-box"===u?d+=c:"content-box"===u&&(d-=a),null!==n||null!==o){r.value=" ";var h=r.scrollHeight-a;null!==n&&(f=h*n,"border-box"===u&&(f=f+a+c),d=Math.max(f,d)),null!==o&&(p=h*o,"border-box"===u&&(p=p+a+c),s=d>p?"":"hidden",d=Math.min(p,d))}return{height:d,minHeight:f,maxHeight:p,overflowY:s}}(a.textArea,!1,t,n);a.setState({textareaStyles:i,resizeStatus:o.RESIZING},(function(){cancelAnimationFrame(a.resizeFrameId),a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:o.RESIZED},(function(){a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:o.NONE}),a.fixFirefoxAutoScroll()}))}))}))}))}},a.renderTextArea=function(){var e=a.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,r=e.autoSize,i=e.onResize,c=e.className,u=e.disabled,l=a.state,h=l.textareaStyles,m=l.resizeStatus,y=Object(d.default)(a.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),b=v()(n,c,Object(f.a)({},"".concat(n,"-disabled"),u));"value"in y&&(y.value=y.value||"");var g=w(w(w({},a.props.style),h),m===o.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return s.createElement(p.default,{onResize:a.handleResize,disabled:!(r||i)},s.createElement("textarea",Object.assign({},y,{className:b,style:g,ref:a.saveTextArea})))},a.state={textareaStyles:{},resizeStatus:o.NONE},a}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(s.Component);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var S=function(e){Object(c.a)(n,e);var t=E(n);function n(e){var r;Object(i.a)(this,n),(r=t.call(this,e)).focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,o=t.onKeyDown;13===e.keyCode&&n&&n(e),o&&o(e)};var o=void 0===e.value||null===e.value?e.defaultValue:e.value;return r.state={value:o},r}return Object(a.a)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return s.createElement(x,Object.assign({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(s.Component);t.a=S},function(e,t,n){"use strict";var r=n(72),o=n(6),i=n(43),a=n(44),c=n(32),u=n(50),l=n(49),s=n(25),f=n(0),p=n(4),d=n.n(p),h=n(957),v=n(438),m=function(e){var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd;if(!n)return null;for(var a="".concat(t,"-indent-unit"),c=[],u=0;u<n;u+=1){var l;c.push(f.createElement("span",{key:u,className:d()(a,(l={},Object(o.a)(l,"".concat(a,"-start"),r[u+1]),Object(o.a)(l,"".concat(a,"-end"),i[u+1]),l))}))}return f.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},c)},y=n(253);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var w=function(e){Object(u.a)(n,e);var t=O(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).state={dragNodeHighlight:!1},e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,Object(y.b)(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,Object(y.b)(e.props))},e.onSelect=function(t){if(!e.isDisabled()){var n=e.props.context.onNodeSelect;t.preventDefault(),n(t,Object(y.b)(e.props))}},e.onCheck=function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,o=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){t.preventDefault();var a=!o;i(t,Object(y.b)(e.props),a)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,Object(y.b)(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,Object(y.b)(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,Object(y.b)(e.props))},e.onDragStart=function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,Object(c.a)(e));try{t.dataTransfer.setData("text/plain","")}catch(e){}},e.onDragEnter=function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,Object(c.a)(e))},e.onDragOver=function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,Object(c.a)(e))},e.onDragLeave=function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,Object(c.a)(e))},e.onDragEnd=function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(c.a)(e))},e.onDrop=function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(c.a)(e))},e.onExpand=function(t){(0,e.props.context.onNodeExpand)(t,Object(y.b)(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?"open":"close"},e.hasChildren=function(){var t=e.props.eventKey;return!!((e.props.context.keyEntities[t]||{}).children||[]).length},e.isLeaf=function(){var t=e.props,n=t.isLeaf,r=t.loaded,o=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!o&&!i||o&&r&&!i)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n},e.syncLoadData=function(t){var n=t.expanded,r=t.loading,o=t.loaded,i=e.props.context,a=i.loadData,c=i.onNodeLoad;r||a&&n&&!e.isLeaf()&&(e.hasChildren()||o||c(Object(y.b)(e.props)))},e.renderSwitcher=function(){var t=e.props,n=t.expanded,r=t.switcherIcon,o=e.props.context,i=o.prefixCls,a=o.switcherIcon,c=r||a;if(e.isLeaf())return f.createElement("span",{className:d()("".concat(i,"-switcher"),"".concat(i,"-switcher-noop"))},"function"==typeof c?c(g(g({},e.props),{},{isLeaf:!0})):c);var u=d()("".concat(i,"-switcher"),"".concat(i,"-switcher_").concat(n?"open":"close"));return f.createElement("span",{onClick:e.onExpand,className:u},"function"==typeof c?c(g(g({},e.props),{},{isLeaf:!1})):c)},e.renderCheckbox=function(){var t=e.props,n=t.checked,r=t.halfChecked,o=t.disableCheckbox,i=e.props.context.prefixCls,a=e.isDisabled(),c=e.isCheckable();if(!c)return null;var u="boolean"!=typeof c?c:null;return f.createElement("span",{className:d()("".concat(i,"-checkbox"),n&&"".concat(i,"-checkbox-checked"),!n&&r&&"".concat(i,"-checkbox-indeterminate"),(a||o)&&"".concat(i,"-checkbox-disabled")),onClick:e.onCheck},u)},e.renderIcon=function(){var t=e.props.loading,n=e.props.context.prefixCls;return f.createElement("span",{className:d()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})},e.renderSelector=function(){var t,n=e.state.dragNodeHighlight,r=e.props,o=r.title,i=r.selected,a=r.icon,c=r.loading,u=r.data,l=e.props.context,s=l.prefixCls,p=l.showIcon,h=l.icon,v=l.draggable,m=l.loadData,y=e.isDisabled(),b="".concat(s,"-node-content-wrapper");if(p){var g=a||h;t=g?f.createElement("span",{className:d()("".concat(s,"-iconEle"),"".concat(s,"-icon__customize"))},"function"==typeof g?g(e.props):g):e.renderIcon()}else m&&c&&(t=e.renderIcon());var O=f.createElement("span",{className:"".concat(s,"-title")},"function"==typeof o?o(u):o);return f.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof o?o:"",className:d()("".concat(b),"".concat(b,"-").concat(e.getNodeState()||"normal"),!y&&(i||n)&&"".concat(s,"-node-selected"),!y&&v&&"draggable"),draggable:!y&&v||void 0,"aria-grabbed":!y&&v||void 0,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick,onDragStart:v?e.onDragStart:void 0},t,O)},e}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,i=t.className,a=t.style,c=t.dragOver,u=t.dragOverGapTop,l=t.dragOverGapBottom,s=t.isLeaf,p=t.isStart,h=t.isEnd,b=t.expanded,g=t.selected,O=t.checked,w=t.halfChecked,j=t.loading,x=t.domRef,E=t.active,S=t.onMouseMove,C=Object(r.a)(t,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),_=this.props.context,P=_.prefixCls,k=_.filterTreeNode,M=_.draggable,N=_.keyEntities,T=this.isDisabled(),A=Object(v.c)(C),R=(N[n]||{}).level,D=h[h.length-1];return f.createElement("div",Object.assign({ref:x,className:d()(i,"".concat(P,"-treenode"),(e={},Object(o.a)(e,"".concat(P,"-treenode-disabled"),T),Object(o.a)(e,"".concat(P,"-treenode-switcher-").concat(b?"open":"close"),!s),Object(o.a)(e,"".concat(P,"-treenode-checkbox-checked"),O),Object(o.a)(e,"".concat(P,"-treenode-checkbox-indeterminate"),w),Object(o.a)(e,"".concat(P,"-treenode-selected"),g),Object(o.a)(e,"".concat(P,"-treenode-loading"),j),Object(o.a)(e,"".concat(P,"-treenode-active"),E),Object(o.a)(e,"".concat(P,"-treenode-leaf-last"),D),Object(o.a)(e,"drag-over",!T&&c),Object(o.a)(e,"drag-over-gap-top",!T&&u),Object(o.a)(e,"drag-over-gap-bottom",!T&&l),Object(o.a)(e,"filter-node",k&&k(Object(y.b)(this.props))),e)),style:a,onDragEnter:M?this.onDragEnter:void 0,onDragOver:M?this.onDragOver:void 0,onDragLeave:M?this.onDragLeave:void 0,onDrop:M?this.onDrop:void 0,onDragEnd:M?this.onDragEnd:void 0,onMouseMove:S},A),f.createElement(m,{prefixCls:P,level:R,isStart:p,isEnd:h}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(f.Component),j=function(e){return f.createElement(h.a.Consumer,null,(function(t){return f.createElement(w,Object.assign({},e,{context:t}))}))};j.displayName="TreeNode",j.defaultProps={title:"---"},j.isTreeNode=1;t.a=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(3).__exportStar(n(967),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.languages=["af","am","ar","auto","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","de","el","en","eo","es","et","eu","fa","fi","fil","fj","fr","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","id","ig","is","it","ja","jw","ka","kk","km","kn","ko","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","pt","ro","ru","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","th","tlh","tlh-Qaak","to","tr","ty","ug","uk","ur","uz","vi","wyw","xh","yi","yo","yua","yue","zh-CN","zh-TW","zu"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super(e)}}t.TranslateError=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3).__importDefault(n(131)),o=n(970),i=n(971);t.Translator=class{constructor(e={}){this.env=e.env||"node",this.axios=e.axios||r.default,this.config=e.config||{}}async translate(e,t,n,r={}){return{...await this.query(e,t,n,{...this.config,...r}),engine:this.name}}request(e,t){return"ext"===this.env&&t&&t.headers?this.axios(e,o.modifyExtraHeaders(e,t)):this.axios(e,t)}async detect(e){return i.detectLang(e)}textToSpeech(e,t,n){return Promise.resolve(null)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r="undefined"!=typeof browser?browser:"undefined"!=typeof chrome?chrome:null,o={},i=/^(Origin|Referer|Host|Cookie|User-Agent|DNT|Accept-Charset|Accept-Encoding)$/i,a=/^(Origin|Referer)$/i;t.modifyExtraHeaders=(e,t)=>{if(!t.headers)return t;const n=Object.keys(t.headers),c={};let u;for(let e=0;e<n.length;e++){const r=n[e];i.test(r)?a.test(r)&&(u=t.headers[r]):c[r]=t.headers[r]}return u&&function(e,t){if(!r)return void console.warn("Missing Browser Global");const n=new URL(e).origin+"/*";if(o[n])return;o[n]=!0;const i=["blocking","requestHeaders"];r.webRequest.OnBeforeSendHeadersOptions&&r.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS")&&i.push("extraHeaders"),r.webRequest.onBeforeSendHeaders.addListener(e=>{if(e&&e.requestHeaders){const n=e.requestHeaders.filter(e=>!a.test(e.name));return n.push({name:"Origin",value:t},{name:"Referer",value:t}),{requestHeaders:n}}return e},{urls:[n]},i)}(e,u),{...t,headers:c}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3).__importDefault(n(979)),o=new Map([["eng","en"],["jpn","ja"],["kor","ko"],["cmn","zh-CN"]]),i={minLength:1,whitelist:[...o.keys()]};t.detectLang=function(e){return o.get(r.default(e,i))||"auto"}},function(e,t,n){"use strict";function r(e){if("number"!=typeof e||isNaN(e)||e<1||e===1/0)throw new Error("`"+e+"` is not a valid argument for n-gram");return function(t){var n,r=[];if(null==t)return r;if(t=t.slice?t:String(t),(n=t.length-e+1)<1)return r;for(;n--;)r[n]=t.slice(n,n+e);return r}}e.exports=r,r.bigram=r(2),r.trigram=r(3)},function(e,t,n){"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t,n){"use strict";var r=n(762),o=n(817),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},s=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,n,o,i,a,u,s,f,d,h,v,m,y){var b,g=t;if("function"==typeof s?g=s(n,g):g instanceof Date?g=h(g):"comma"===o&&c(g)&&(g=r.maybeMap(g,(function(e){return e instanceof Date?h(e):e})).join(",")),null===g){if(i)return u&&!m?u(n,p.encoder,y,"key"):n;g=""}if("string"==typeof(b=g)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||r.isBuffer(g))return u?[v(m?n:u(n,p.encoder,y,"key"))+"="+v(u(g,p.encoder,y,"value"))]:[v(n)+"="+v(String(g))];var O,w=[];if(void 0===g)return w;if(c(s))O=s;else{var j=Object.keys(g);O=f?j.sort(f):j}for(var x=0;x<O.length;++x){var E=O[x],S=g[E];if(!a||null!==S){var C=c(g)?"function"==typeof o?o(n,E):n:n+(d?"."+E:"["+E+"]");l(w,e(S,C,o,i,a,u,s,f,d,h,v,m,y))}}return w};e.exports=function(e,t){var n,r=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],a=p.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?r=(0,u.filter)("",r):c(u.filter)&&(n=u.filter);var s,f=[];if("object"!=typeof r||null===r)return"";s=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=a[s];n||(n=Object.keys(r)),u.sort&&n.sort(u.sort);for(var v=0;v<n.length;++v){var m=n[v];u.skipNulls&&null===r[m]||l(f,d(r[m],m,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var y=f.join(u.delimiter),b=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),y.length>0?b+y:""}},function(e,t,n){"use strict";var r=n(762),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(i),l=c?i.slice(0,c.index):i,s=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;s.push(l)}for(var f=0;n.depth>0&&null!==(c=a.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(c[1])}return c&&s.push("["+i.slice(c.index)+"]"),function(e,t,n,r){for(var o=r?t:u(t,n),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,s=parseInt(l,10);n.parseArrays||""!==l?!isNaN(s)&&c!==l&&String(s)===l&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(a=[])[s]=o:a[l]=o:a={0:o}}o=a}return o}(s,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){var n,l={},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=s.split(t.delimiter,f),d=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?h="utf-8":"utf8=%26%2310003%3B"===p[n]&&(h="iso-8859-1"),d=n,n=p.length);for(n=0;n<p.length;++n)if(n!==d){var v,m,y=p[n],b=y.indexOf("]="),g=-1===b?y.indexOf("="):b+1;-1===g?(v=t.decoder(y,a.decoder,h,"key"),m=t.strictNullHandling?null:""):(v=t.decoder(y.slice(0,g),a.decoder,h,"key"),m=r.maybeMap(u(y.slice(g+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=c(m)),y.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(l,v)?l[v]=r.combine(l[v],m):l[v]=m}return l}(e,n):e,f=n.plainObjects?Object.create(null):{},p=Object.keys(s),d=0;d<p.length;++d){var h=p[d],v=l(h,s[h],n,"string"==typeof e);f=r.merge(f,v,n)}return r.compact(f)}},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?t.push(n.charAt(o>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|n.indexOf(e.charAt(r))>>>6-2*o);return t}},e.exports=r},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)} -/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh <https://feross.org> - * @license MIT - */ -e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},,function(e,t,n){"use strict";var r=n(972).trigram,o=n(973),i=n(974),a={}.hasOwnProperty;function c(e){return null==e?"":i(o(String(e).replace(/[\u0021-\u0040]+/g," "))).toLowerCase()}function u(e){return r(" "+c(e)+" ")}function l(e){for(var t,n=u(e),r=n.length,o={};r--;)t=n[r],a.call(o,t)?o[t]++:o[t]=1;return o}function s(e,t){return e[1]-t[1]}t.clean=c,t.trigrams=u,t.asDictionary=l,t.asTuples=function(e){var t,n=l(e),r=[];for(t in n)r.push([t,n[t]]);return r.sort(s),r},t.tuplesAsDictionary=function(e){var t,n=e.length,r={};for(;n--;)t=e[n],r[t[0]]=t[1];return r}},function(e,t,n){"use strict";function r(e,t){for(let n=0;n<t.length-2;n+=3){const r=t.charAt(n+2);let o="a"<=r?r.charCodeAt(0)-87:Number(r);o="+"==t.charAt(n+1)?e>>>o:e<<o,e="+"==t.charAt(n)?e+o&4294967295:e^o}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.getTK=function(e,t,n){t=Number(t)||0,n=Number(n)||0;const o=[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);128>n?o.push(n):(2048>n?o.push(n>>6|192):(55296==(64512&n)&&t+1<e.length&&56320==(64512&e.charCodeAt(t+1))?(n=65536+((1023&n)<<10)+(1023&e.charCodeAt(++t)),o.push(n>>18|240),o.push(n>>12&63|128)):o.push(n>>12|224),o.push(n>>6&63|128)),o.push(63&n|128))}let i=t;for(let e=0;e<o.length;e++)i+=o[e],i=r(i,"+-a^+6");return i=r(i,"+-3^+b+-f"),i^=n,0>i&&(i=2147483648+(2147483647&i)),i%=1e6,i.toString()+"."+(i^t)},t.fetchScheduled=async function(e,t){if(t)return new Promise((t,n)=>{let r=0;for(let o=0;o<e.length;o++)e[o]().then(t).catch(()=>{++r===e.length&&n(new Error("All rejected"))})});for(let t=0;t<e.length;t++)try{return await e[t]()}catch(e){}return Promise.reject(new Error("All rejected"))}},function(e,t,n){var r;e.exports=(r=n(635),n(820),n(983),r.HmacSHA256)},function(e,t,n){var r,o,i,a;e.exports=(r=n(635),i=(o=r).lib.Base,a=o.enc.Utf8,void(o.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),c=o.words,u=i.words,l=0;l<n;l++)c[l]^=1549556828,u[l]^=909522486;o.sigBytes=i.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},function(e,t,n){var r;e.exports=(r=n(635),r.enc.Hex)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTMLEntities=function(e){return e.replace(/&([^;]+);/gm,(e,t)=>{switch(t){case"amp":return"&";case"apos":case"#x27":return"'";case"#x2F":return"/";case"#39":return"'";case"#47":return"/";case"lt":return"<";case"gt":return">";case"nbsp":return" ";case"quot":return'"';default:return e}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3).__importDefault(n(763)),o="undefined"==typeof window?"5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36":window.navigator.appVersion,i=r.default(o);t.default=function(e,t){const n=Date.now()+"",o=n+parseInt(10*Math.random()+"",10);return{client:"fanyideskweb",ts:n,bv:i,salt:o,sign:r.default("fanyideskweb"+e+o+t)}}},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__; -/** - * [js-sha256]{@link https://github.com/emn178/js-sha256} - * - * @version 0.9.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2014-2017 - * @license MIT - */!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__(988),ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createOutputMethod(r,e)}return t},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(e){if("string"==typeof e)return crypto.createHash(algorithm).update(e,"utf8").digest("hex");if(null==e)throw new Error(ERROR);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod},createHmacOutputMethod=function(e,t){return function(n,r){return new HmacSha256(n,t,!0).update(r)[e]()}},createHmacMethod=function(e){var t=createHmacOutputMethod("hex",e);t.create=function(t){return new HmacSha256(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createHmacOutputMethod(r,e)}return t};function Sha256(e,t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function HmacSha256(e,t,n){var r,o=typeof e;if("string"===o){var i,a=[],c=e.length,u=0;for(r=0;r<c;++r)(i=e.charCodeAt(r))<128?a[u++]=i:i<2048?(a[u++]=192|i>>6,a[u++]=128|63&i):i<55296||i>=57344?(a[u++]=224|i>>12,a[u++]=128|i>>6&63,a[u++]=128|63&i):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++r)),a[u++]=240|i>>18,a[u++]=128|i>>12&63,a[u++]=128|i>>6&63,a[u++]=128|63&i);e=a}else{if("object"!==o)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var l=[],s=[];for(r=0;r<64;++r){var f=e[r]||0;l[r]=92^f,s[r]=54^f}Sha256.call(this,t,n),this.update(s),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var r,o,i=0,a=e.length,c=this.blocks;i<a;){if(this.hashed&&(this.hashed=!1,c[0]=this.block,c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0),t)for(o=this.start;i<a&&o<64;++i)c[o>>2]|=e[i]<<SHIFT[3&o++];else for(o=this.start;i<a&&o<64;++i)(r=e.charCodeAt(i))<128?c[o>>2]|=r<<SHIFT[3&o++]:r<2048?(c[o>>2]|=(192|r>>6)<<SHIFT[3&o++],c[o>>2]|=(128|63&r)<<SHIFT[3&o++]):r<55296||r>=57344?(c[o>>2]|=(224|r>>12)<<SHIFT[3&o++],c[o>>2]|=(128|r>>6&63)<<SHIFT[3&o++],c[o>>2]|=(128|63&r)<<SHIFT[3&o++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++i)),c[o>>2]|=(240|r>>18)<<SHIFT[3&o++],c[o>>2]|=(128|r>>12&63)<<SHIFT[3&o++],c[o>>2]|=(128|r>>6&63)<<SHIFT[3&o++],c[o>>2]|=(128|63&r)<<SHIFT[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.block=c[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,r,o,i,a,c,u,l=this.h0,s=this.h1,f=this.h2,p=this.h3,d=this.h4,h=this.h5,v=this.h6,m=this.h7,y=this.blocks;for(e=16;e<64;++e)t=((o=y[e-15])>>>7|o<<25)^(o>>>18|o<<14)^o>>>3,n=((o=y[e-2])>>>17|o<<15)^(o>>>19|o<<13)^o>>>10,y[e]=y[e-16]+t+y[e-7]+n<<0;for(u=s&f,e=0;e<64;e+=4)this.first?(this.is224?(i=300032,m=(o=y[0]-1413257819)-150054599<<0,p=o+24177077<<0):(i=704751109,m=(o=y[0]-210244248)-1521486534<<0,p=o+143694565<<0),this.first=!1):(t=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),r=(i=l&s)^l&f^u,m=p+(o=m+(n=(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&v)+K[e]+y[e])<<0,p=o+(t+r)<<0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),r=(a=p&l)^p&s^i,v=f+(o=v+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&d^~m&h)+K[e+1]+y[e+1])<<0,t=((f=o+(t+r)<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(c=f&p)^f&l^a,h=s+(o=h+(n=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&m^~v&d)+K[e+2]+y[e+2])<<0,t=((s=o+(t+r)<<0)>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10),r=(u=s&f)^s&p^c,d=l+(o=d+(n=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&v^~h&m)+K[e+3]+y[e+3])<<0,l=o+(t+r)<<0;this.h0=this.h0+l<<0,this.h1=this.h1+s<<0,this.h2=this.h2+f<<0,this.h3=this.h3+p<<0,this.h4=this.h4+d<<0,this.h5=this.h5+h<<0,this.h6=this.h6+v<<0,this.h7=this.h7+m<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,o=this.h4,i=this.h5,a=this.h6,c=this.h7,u=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(u+=HEX_CHARS[c>>28&15]+HEX_CHARS[c>>24&15]+HEX_CHARS[c>>20&15]+HEX_CHARS[c>>16&15]+HEX_CHARS[c>>12&15]+HEX_CHARS[c>>8&15]+HEX_CHARS[c>>4&15]+HEX_CHARS[15&c]),u},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,o=this.h4,i=this.h5,a=this.h6,c=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o,i>>24&255,i>>16&255,i>>8&255,255&i,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||u.push(c>>24&255,c>>16&255,c>>8&255,255&c),u},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()},function(e,t){(function(t){e.exports=t}).call(this,{})},,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(1005)),o=c(n(862)),i=c(n(863)),a=c(n(1007));function c(e){return e&&e.__esModule?e:{default:e}}var u="${label}不是一个有效的${type}",l={locale:"zh-cn",Pagination:r.default,DatePicker:o.default,TimePicker:i.default,Calendar:a.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",selectAll:"全选当页",selectInvert:"反选当页",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}}};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(862))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(1009)),o=c(n(864)),i=c(n(865)),a=c(n(1011));function c(e){return e&&e.__esModule?e:{default:e}}var u="${label}不是一個有效的${type}",l={locale:"zh-tw",Pagination:r.default,DatePicker:o.default,TimePicker:i.default,Calendar:a.default,global:{placeholder:"請選擇"},Table:{filterTitle:"篩選器",filterConfirm:"確定",filterReset:"重置",filterEmptyText:"無篩選項",selectAll:"全部選取",selectInvert:"反向選取",selectionAll:"全選所有",sortTitle:"排序",expand:"展開行",collapse:"關閉行",triggerDesc:"點擊降序",triggerAsc:"點擊升序",cancelSort:"取消排序"},Modal:{okText:"確定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{okText:"確定",cancelText:"取消"},Transfer:{searchPlaceholder:"搜尋資料",itemUnit:"項目",itemsUnit:"項目"},Upload:{uploading:"正在上傳...",removeFile:"刪除檔案",uploadError:"上傳失敗",previewFile:"檔案預覽",downloadFile:"下载文件"},Empty:{description:"無此資料"},Icon:{icon:"圖標"},Text:{edit:"編輯",copy:"複製",copied:"複製成功",expand:"展開"},PageHeader:{back:"返回"},Form:{defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label}須為${len}個字符",min:"${label}最少${min}個字符",max:"${label}最多${max}個字符",range:"${label}須在${min}-${max}字符之間"},number:{len:"${label}必須等於${len}",min:"${label}最小值為${min}",max:"${label}最大值為${max}",range:"${label}須在${min}-${max}之間"},array:{len:"須為${len}個${label}",min:"最少${min}個${label}",max:"最多${max}個${label}",range:"${label}數量須在${min}-${max}之間"},pattern:{mismatch:"${label}與模式不匹配${pattern}"}}}};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={items_per_page:"條/頁",jump_to:"跳至",jump_to_confirm:"確定",page:"頁",prev_page:"上一頁",next_page:"下一頁",prev_5:"向前 5 頁",next_5:"向後 5 頁",prev_3:"向前 3 頁",next_3:"向後 3 頁"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={locale:"zh_TW",today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",weekSelect:"選擇周",clear:"清除",month:"月",year:"年",previousMonth:"上個月 (翻頁上鍵)",nextMonth:"下個月 (翻頁下鍵)",monthSelect:"選擇月份",yearSelect:"選擇年份",decadeSelect:"選擇年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"上一年 (Control鍵加左方向鍵)",nextYear:"下一年 (Control鍵加右方向鍵)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世紀",nextCentury:"下一世紀"};t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(864))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(868))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n,r){var o=t&&t.prototype instanceof s?t:s,i=Object.create(o.prototype),a=new j(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return E()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=g(a,n);if(c){if(c===l)continue;return c}}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 s=u(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function s(){}function f(){}function p(){}var d={};d[o]=function(){return this};var h=Object.getPrototypeOf,v=h&&h(h(x([])));v&&v!==t&&n.call(v,o)&&(d=v);var m=p.prototype=s.prototype=Object.create(d);function y(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var l=u(e[o],e,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function g(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,g(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=m.constructor=p,p.constructor=f,p[a]=f.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},y(b.prototype),b.prototype[i]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(m),m[a]="Generator",m[o]=function(){return this},m.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,j.prototype={constructor:j,reset:function(e){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(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1016)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="InfoCircleFilled";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},function(e,t){e.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(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(1022));t.generate=o.default;var i={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"};t.presetPrimaryColors=i;var a={};t.presetPalettes=a,Object.keys(i).forEach((function(e){a[e]=o.default(i[e]),a[e].primary=a[e][5]}));var c=a.red;t.red=c;var u=a.volcano;t.volcano=u;var l=a.gold;t.gold=l;var s=a.orange;t.orange=s;var f=a.yellow;t.yellow=f;var p=a.lime;t.lime=p;var d=a.green;t.green=d;var h=a.cyan;t.cyan=h;var v=a.blue;t.blue=v;var m=a.geekblue;t.geekblue=m;var y=a.purple;t.purple=y;var b=a.magenta;t.magenta=b;var g=a.grey;t.grey=g},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(1023));function i(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function a(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?Math.round(100*e.s)-16*t:4===t?Math.round(100*e.s)+16:Math.round(100*e.s)+5*t)>100&&(r=100),n&&5===t&&r>10&&(r=10),r<6&&(r=6),r);var r}function c(e,t,n){return n?Math.round(100*e.v)+5*t:Math.round(100*e.v)-15*t}t.default=function(e){for(var t=[],n=o.default(e),r=5;r>0;r-=1){var u=n.toHsv(),l=o.default({h:i(u,r,!0),s:a(u,r,!0),v:c(u,r,!0)}).toHexString();t.push(l)}for(t.push(n.toHexString()),r=1;r<=4;r+=1){u=n.toHsv(),l=o.default({h:i(u,r),s:a(u,r),v:c(u,r)}).toHexString();t.push(l)}return t}},function(e,t,n){var r;!function(o){var i=/^\s+/,a=/\s+$/,c=0,u=o.round,l=o.min,s=o.max,f=o.random;function p(e,t){if(t=t||{},(e=e||"")instanceof p)return e;if(!(this instanceof p))return new p(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,c=null,u=null,f=!1,p=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,n=!1;if(M[e])e=M[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=K.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=K.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=K.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=K.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=K.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=K.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=K.hex8.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),a:z(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),a:z(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(d=e.r,h=e.g,v=e.b,t={r:255*A(d,255),g:255*A(h,255),b:255*A(v,255)},f=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(r=L(e.s),c=L(e.v),t=function(e,t,n){e=6*A(e,360),t=A(t,100),n=A(n,100);var r=o.floor(e),i=e-r,a=n*(1-t),c=n*(1-i*t),u=n*(1-(1-i)*t),l=r%6;return{r:255*[n,c,a,a,u,n][l],g:255*[u,n,n,c,a,a][l],b:255*[a,a,u,n,n,c][l]}}(e.h,r,c),f=!0,p="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(r=L(e.s),u=L(e.l),t=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=A(e,360),t=A(t,100),n=A(n,100),0===t)r=o=i=n;else{var c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;r=a(u,c,e+1/3),o=a(u,c,e),i=a(u,c,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,u),f=!0,p="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,h,v;return n=T(n),{ok:f,format:e.format||p,r:l(255,s(t.r,0)),g:l(255,s(t.g,0)),b:l(255,s(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=c++}function d(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,i=s(e,t,n),a=l(e,t,n),c=(i+a)/2;if(i==a)r=o=0;else{var u=i-a;switch(o=c>.5?u/(2-i-a):u/(i+a),i){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:o,l:c}}function h(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,i=s(e,t,n),a=l(e,t,n),c=i,u=i-a;if(o=0===i?0:u/i,i==a)r=0;else{switch(i){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:o,v:c}}function v(e,t,n,r){var o=[I(u(e).toString(16)),I(u(t).toString(16)),I(u(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function m(e,t,n,r){return[I(F(r)),I(u(e).toString(16)),I(u(t).toString(16)),I(u(n).toString(16))].join("")}function y(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s-=t/100,n.s=R(n.s),p(n)}function b(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s+=t/100,n.s=R(n.s),p(n)}function g(e){return p(e).desaturate(100)}function O(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l+=t/100,n.l=R(n.l),p(n)}function w(e,t){t=0===t?0:t||10;var n=p(e).toRgb();return n.r=s(0,l(255,n.r-u(-t/100*255))),n.g=s(0,l(255,n.g-u(-t/100*255))),n.b=s(0,l(255,n.b-u(-t/100*255))),p(n)}function j(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l-=t/100,n.l=R(n.l),p(n)}function x(e,t){var n=p(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,p(n)}function E(e){var t=p(e).toHsl();return t.h=(t.h+180)%360,p(t)}function S(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+120)%360,s:t.s,l:t.l}),p({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+90)%360,s:t.s,l:t.l}),p({h:(n+180)%360,s:t.s,l:t.l}),p({h:(n+270)%360,s:t.s,l:t.l})]}function _(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+72)%360,s:t.s,l:t.l}),p({h:(n+216)%360,s:t.s,l:t.l})]}function P(e,t,n){t=t||6,n=n||30;var r=p(e).toHsl(),o=360/n,i=[p(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(p(r));return i}function k(e,t){t=t||6;for(var n=p(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(p({h:r,s:o,v:i})),i=(i+c)%1;return a}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[I(u(e).toString(16)),I(u(t).toString(16)),I(u(n).toString(16)),I(F(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*A(this._r,255))+"%",g:u(100*A(this._g,255))+"%",b:u(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*A(this._r,255))+"%, "+u(100*A(this._g,255))+"%, "+u(100*A(this._b,255))+"%)":"rgba("+u(100*A(this._r,255))+"%, "+u(100*A(this._g,255))+"%, "+u(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=p(e);n="#"+m(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(j,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},p.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:L(e[r]));e=n}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:f(),g:f(),b:f()})},p.mix=function(e,t,n){n=0===n?0:n||50;var r=p(e).toRgb(),o=p(t).toRgb(),i=n/100;return p({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},p.readability=function(e,t){var n=p(e),r=p(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},p.isReadable=function(e,t,n){var r,o,i=p.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},p.mostReadable=function(e,t,n){var r,o,i,a,c=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var l=0;l<t.length;l++)(r=p.readability(e,t[l]))>u&&(u=r,c=p(t[l]));return p.isReadable(e,c,{level:i,size:a})||!o?c:(n.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],n))};var M=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=p.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(M);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,s(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return l(1,s(0,e))}function D(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function F(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return D(e)/255}var H,B,V,K=(B="[\\s|\\(]+("+(H="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",V="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t){var n=[],r=[];function o(e,t){if(t=t||{},void 0===e)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var o,i=!0===t.prepend?"prepend":"append",a=void 0!==t.container?t.container:document.querySelector("head"),c=n.indexOf(a);return-1===c&&(c=n.push(a)-1,r[c]={}),void 0!==r[c]&&void 0!==r[c][i]?o=r[c][i]:(o=r[c][i]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===i?a.insertBefore(o,a.childNodes[0]):a.appendChild(o)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),o.styleSheet?o.styleSheet.cssText+=e:o.textContent+=e,o}e.exports=o,e.exports.insertCss=o},function(e,t,n){"use strict";var r=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.setTwoToneColor=function(e){var t=(0,a.normalizeTwoToneColors)(e),n=(0,o.default)(t,2),r=n[0],c=n[1];return i.default.setTwoToneColors({primaryColor:r,secondaryColor:c})},t.getTwoToneColor=function(){var e=i.default.getTwoToneColors();if(!e.calculated)return e.primaryColor;return[e.primaryColor,e.secondaryColor]};var o=r(n(565)),i=r(n(872)),a=n(705)},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1027)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CheckCircleFilled";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1029)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CloseCircleFilled";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1031)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="ExclamationCircleFilled";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1033)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="LoadingOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1035)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CloseOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1037)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CheckCircleOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1039)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="InfoCircleOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1041)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CloseCircleOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1043)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="ExclamationCircleOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"}},,function(e,t,n){e.exports={default:n(1046),__esModule:!0}},function(e,t,n){n(1047),e.exports=n(524).Object.assign},function(e,t,n){var r=n(614);r(r.S+r.F,"Object",{assign:n(1049)})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(525),o=n(707),i=n(777),a=n(710),c=n(778),u=n(877),l=Object.assign;e.exports=!l||n(616)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){for(var n=c(e),l=arguments.length,s=1,f=i.f,p=a.f;l>s;)for(var d,h=u(arguments[s++]),v=f?o(h).concat(f(h)):o(h),m=v.length,y=0;m>y;)d=v[y++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:l},function(e,t,n){var r=n(569),o=n(1051),i=n(1052);e.exports=function(e){return function(t,n,a){var c,u=r(t),l=o(u.length),s=i(a,l);if(e&&n!=n){for(;l>s;)if((c=u[s++])!=c)return!0}else for(;l>s;s++)if((e||s in u)&&u[s]===n)return e||s||0;return!e&&-1}}},function(e,t,n){var r=n(773),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(773),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){(function(){var t,n,r,o,i,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},n=process.hrtime,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),a=1e9*process.uptime(),i=o-a):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1055)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="BarsOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1057)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="RightOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1059)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="LeftOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"}},function(e,t,n){e.exports={default:n(1061),__esModule:!0}},function(e,t,n){n(1062),n(1068),e.exports=n(782).f("iterator")},function(e,t,n){"use strict";var r=n(1063)(!0);n(880)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(773),o=n(772);e.exports=function(e){return function(t,n){var i,a,c=String(o(t)),u=r(n),l=c.length;return u<0||u>=l?e?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===l||(a=c.charCodeAt(u+1))<56320||a>57343?e?c.charAt(u):i:e?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(780),o=n(706),i=n(781),a={};n(566)(a,n(570)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(567),o=n(615),i=n(707);e.exports=n(525)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),c=a.length,u=0;c>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(489).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(526),o=n(778),i=n(774)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){n(1069);for(var r=n(489),o=n(566),i=n(779),a=n(570)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<c.length;u++){var l=c[u],s=r[l],f=s&&s.prototype;f&&!f[a]&&o(f,a,l),i[l]=i.Array}},function(e,t,n){"use strict";var r=n(1070),o=n(1071),i=n(779),a=n(569);e.exports=n(880)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(1073),__esModule:!0}},function(e,t,n){n(1074),n(1079),n(1080),n(1081),e.exports=n(524).Symbol},function(e,t,n){"use strict";var r=n(489),o=n(526),i=n(525),a=n(614),c=n(881),u=n(1075).KEY,l=n(616),s=n(775),f=n(781),p=n(709),d=n(570),h=n(782),v=n(783),m=n(1076),y=n(1077),b=n(615),g=n(568),O=n(778),w=n(569),j=n(771),x=n(706),E=n(780),S=n(1078),C=n(883),_=n(777),P=n(567),k=n(707),M=C.f,N=P.f,T=S.f,A=r.Symbol,R=r.JSON,D=R&&R.stringify,I=d("_hidden"),L=d("toPrimitive"),F={}.propertyIsEnumerable,z=s("symbol-registry"),H=s("symbols"),B=s("op-symbols"),V=Object.prototype,K="function"==typeof A&&!!_.f,U=r.QObject,W=!U||!U.prototype||!U.prototype.findChild,q=i&&l((function(){return 7!=E(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=M(V,t);r&&delete V[t],N(e,t,n),r&&e!==V&&N(V,t,r)}:N,G=function(e){var t=H[e]=E(A.prototype);return t._k=e,t},$=K&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},Y=function(e,t,n){return e===V&&Y(B,t,n),b(e),t=j(t,!0),b(n),o(H,t)?(n.enumerable?(o(e,I)&&e[I][t]&&(e[I][t]=!1),n=E(n,{enumerable:x(0,!1)})):(o(e,I)||N(e,I,x(1,{})),e[I][t]=!0),q(e,t,n)):N(e,t,n)},X=function(e,t){b(e);for(var n,r=m(t=w(t)),o=0,i=r.length;i>o;)Y(e,n=r[o++],t[n]);return e},Z=function(e){var t=F.call(this,e=j(e,!0));return!(this===V&&o(H,e)&&!o(B,e))&&(!(t||!o(this,e)||!o(H,e)||o(this,I)&&this[I][e])||t)},J=function(e,t){if(e=w(e),t=j(t,!0),e!==V||!o(H,t)||o(B,t)){var n=M(e,t);return!n||!o(H,t)||o(e,I)&&e[I][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=T(w(e)),r=[],i=0;n.length>i;)o(H,t=n[i++])||t==I||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===V,r=T(n?B:w(e)),i=[],a=0;r.length>a;)!o(H,t=r[a++])||n&&!o(V,t)||i.push(H[t]);return i};K||(c((A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===V&&t.call(B,n),o(this,I)&&o(this[I],e)&&(this[I][e]=!1),q(this,e,x(1,n))};return i&&W&&q(V,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",(function(){return this._k})),C.f=J,P.f=Y,n(882).f=S.f=Q,n(710).f=Z,_.f=ee,i&&!n(708)&&c(V,"propertyIsEnumerable",Z,!0),h.f=function(e){return G(d(e))}),a(a.G+a.W+a.F*!K,{Symbol:A});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)d(te[ne++]);for(var re=k(d.store),oe=0;re.length>oe;)v(re[oe++]);a(a.S+a.F*!K,"Symbol",{for:function(e){return o(z,e+="")?z[e]:z[e]=A(e)},keyFor:function(e){if(!$(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!K,"Object",{create:function(e,t){return void 0===t?E(e):X(E(e),t)},defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var ie=l((function(){_.f(1)}));a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return _.f(O(e))}}),R&&a(a.S+a.F*(!K||l((function(){var e=A();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(g(t)||void 0!==e)&&!$(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!$(t))return t}),r[1]=t,D.apply(R,r)}}),A.prototype[L]||n(566)(A.prototype,L,A.prototype.valueOf),f(A,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(709)("meta"),o=n(568),i=n(526),a=n(567).f,c=0,u=Object.isExtensible||function(){return!0},l=!n(616)((function(){return u(Object.preventExtensions({}))})),s=function(e){a(e,r,{value:{i:"O"+ ++c,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";s(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;s(e)}return e[r].w},onFreeze:function(e){return l&&f.NEED&&u(e)&&!i(e,r)&&s(e),e}}},function(e,t,n){var r=n(707),o=n(777),i=n(710);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,c=n(e),u=i.f,l=0;c.length>l;)u.call(e,a=c[l++])&&t.push(a);return t}},function(e,t,n){var r=n(878);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(569),o=n(882).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t){},function(e,t,n){n(783)("asyncIterator")},function(e,t,n){n(783)("observable")},function(e,t,n){e.exports={default:n(1083),__esModule:!0}},function(e,t,n){n(1084),e.exports=n(524).Object.setPrototypeOf},function(e,t,n){var r=n(614);r(r.S,"Object",{setPrototypeOf:n(1085).set})},function(e,t,n){var r=n(568),o=n(615),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(873)(Function.call,n(883).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){e.exports={default:n(1087),__esModule:!0}},function(e,t,n){n(1088);var r=n(524).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(614);r(r.S,"Object",{create:n(780)})},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1090)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="SettingOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1092)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="TagsOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1067.88-67.89 48 48 0 10-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z"}}]},name:"tags",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1094)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DashboardOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1096)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="ProfileOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"profile",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1098)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="SelectOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1100)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="BookOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1102)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="KeyOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z"}}]},name:"key",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1104)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="LayoutOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z"}}]},name:"layout",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1106)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="FlagOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1108)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="SoundOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z"}}]},name:"sound",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1110)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="FilePdfOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1112)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DatabaseOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1114)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="ExceptionOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM640 812a32 32 0 1064 0 32 32 0 10-64 0zm12-64h40c4.4 0 8-3.6 8-8V628c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"exception",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1116)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="SwapOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1118)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="SafetyCertificateOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1120)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="LockOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1122)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DoubleLeftOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1124)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DoubleRightOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1126)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="SearchOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1128)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DownOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1130)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CheckOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"}},function(e,t,n){var r=n(62);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(109),o=n(144),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=c.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},,function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1135)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="WarningOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"}},,function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1138)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="FrownOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z"}}]},name:"frown",theme:"outlined"}},,,,function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1143)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="BlockOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M856 376H648V168c0-8.8-7.2-16-16-16H168c-8.8 0-16 7.2-16 16v464c0 8.8 7.2 16 16 16h208v208c0 8.8 7.2 16 16 16h464c8.8 0 16-7.2 16-16V392c0-8.8-7.2-16-16-16zm-480 16v188H220V220h360v156H392c-8.8 0-16 7.2-16 16zm204 52v136H444V444h136zm224 360H444V648h188c8.8 0 16-7.2 16-16V444h156v360z"}}]},name:"block",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1145)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="EyeOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1147)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="EyeInvisibleOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1149)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="PlusOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"}},,function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1152)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="EllipsisOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1154)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="EditOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"}},function(e,t,n){var r=n(222),o=n(254),i=n(246),a=n(1156),c=n(1157),u=n(1160),l=n(1161),s=n(1162),f=n(1163),p=n(376),d=n(887),h=n(258),v=n(1164),m=n(1165),y=n(1170),b=n(51),g=n(199),O=n(1172),w=n(109),j=n(1174),x=n(152),E={};E["[object Arguments]"]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E["[object Object]"]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E["[object Function]"]=E["[object WeakMap]"]=!1,e.exports=function e(t,n,S,C,_,P){var k,M=1&n,N=2&n,T=4&n;if(S&&(k=_?S(t,C,_,P):S(t)),void 0!==k)return k;if(!w(t))return t;var A=b(t);if(A){if(k=v(t),!M)return l(t,k)}else{var R=h(t),D="[object Function]"==R||"[object GeneratorFunction]"==R;if(g(t))return u(t,M);if("[object Object]"==R||"[object Arguments]"==R||D&&!_){if(k=N||D?{}:y(t),!M)return N?f(t,c(k,t)):s(t,a(k,t))}else{if(!E[R])return _?t:{};k=m(t,R,M)}}P||(P=new r);var I=P.get(t);if(I)return I;P.set(t,k),j(t)?t.forEach((function(r){k.add(e(r,n,S,r,t,P))})):O(t)&&t.forEach((function(r,o){k.set(o,e(r,n,S,o,t,P))}));var L=T?N?d:p:N?keysIn:x,F=A?void 0:L(t);return o(F||t,(function(r,o){F&&(r=t[o=r]),i(k,o,e(r,n,S,o,t,P))})),k}},function(e,t,n){var r=n(617),o=n(152);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(617),o=n(885);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(109),o=n(245),i=n(1159),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var c in e)("constructor"!=c||!t&&a.call(e,c))&&n.push(c);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(62),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(183)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(617),o=n(359);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(617),o=n(886);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(785),o=n(1166),i=n(1167),a=n(1168),c=n(1169);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,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 c(e,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Set]":return new u;case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(785);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(117),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(785);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(1171),o=n(784),i=n(245);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(109),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(1173),o=n(243),i=n(244),a=i&&i.isMap,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(258),o=n(58);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(1175),o=n(243),i=n(244),a=i&&i.isSet,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(258),o=n(58);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(143),o=n(1177),i=n(1178),a=n(110);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(201),o=n(1179);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(1181);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){var r=n(66),o=n(784),i=n(58),a=Function.prototype,c=Object.prototype,u=a.toString,l=c.hasOwnProperty,s=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==s}},function(e,t,n){var r=n(1183),o=n(379),i=n(380);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(1184);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(358),o=n(1185);e.exports=function e(t,n,i,a,c){var u=-1,l=t.length;for(i||(i=o),c||(c=[]);++u<l;){var s=t[u];n>0&&i(s)?n>1?e(s,n-1,i,a,c):r(c,s):a||(c[c.length]=s)}return c}},function(e,t,n){var r=n(117),o=n(197),i=n(51),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},,,function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1189)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="UpOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"}},,,,function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1194)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="PictureTwoTone";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1196)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="FileTwoTone";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1198)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="PaperClipOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1200)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DeleteOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1202)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="DownloadOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1204)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="UploadOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"}},,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=P(n(0)),o=C(n(4)),i=C(n(84)),a=P(n(530)),c=n(1213),u=n(903),l=C(n(1232)),s=C(n(1245)),f=n(794),p=P(n(1250)),d=C(n(1251)),h=P(n(1252)),v=P(n(1280)),m=P(n(1285)),y=C(n(1291)),b=C(n(1292)),g=C(n(1293)),O=C(n(866)),w=C(n(619)),j=C(n(1296)),x=C(n(1297)),E=C(n(490)),S=C(n(913));function C(e){return e&&e.__esModule?e:{default:e}}function _(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _=function(){return e},e}function P(e){if(e&&e.__esModule)return e;if(null===e||"object"!==k(e)&&"function"!=typeof e)return{default:e};var t=_();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(e,t)||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,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var R=[];function D(e){var t,n=e.prefixCls,j=e.className,x=e.style,C=e.size,_=e.bordered,P=e.dropdownPrefixCls,T=e.dataSource,D=e.pagination,I=e.rowSelection,L=e.rowKey,F=e.rowClassName,z=e.columns,H=e.children,B=e.childrenColumnName,V=e.onChange,K=e.getPopupContainer,U=e.loading,W=e.expandIcon,q=e.expandable,G=e.expandedRowRender,$=e.expandIconColumnIndex,Y=e.indentSize,X=e.scroll,Z=e.sortDirections,J=e.locale,Q=e.showSorterTooltip,ee=void 0===Q||Q;(0,E.default)(!("function"==typeof L&&L.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var te=(0,S.default)(),ne=r.useMemo((function(){var e=new Set(Object.keys(te).filter((function(e){return te[e]})));return(z||(0,u.convertChildrenToColumns)(H)).filter((function(t){return!t.responsive||t.responsive.some((function(t){return e.has(t)}))}))}),[H,z,te]),re=(0,i.default)(e,["className","style","columns"]),oe=r.useContext(w.default),ie=r.useContext(f.ConfigContext),ae=ie.locale,ce=void 0===ae?O.default:ae,ue=ie.renderEmpty,le=ie.direction,se=C||oe,fe=A(A({},ce.Table),J),pe=T||R,de=r.useContext(f.ConfigContext).getPrefixCls,he=de("table",n),ve=de("dropdown",P),me=A({childrenColumnName:B,expandIconColumnIndex:$},q),ye=me.childrenColumnName,be=void 0===ye?"children":ye,ge=r.useMemo((function(){return pe.some((function(e){return e[be]}))?"nest":G||q&&q.expandedRowRender?"row":null}),[pe]),Oe={body:r.useRef()},we=r.useMemo((function(){return"function"==typeof L?L:function(e){return e[L]}}),[L]),je=N((0,d.default)(pe,be,we),1)[0],xe={},Ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=A(A({},xe),e);n&&(xe.resetPagination(),r.pagination.current&&(r.pagination.current=1),D&&D.onChange&&D.onChange(1,r.pagination.pageSize)),X&&!1!==X.scrollToFirstRowOnChange&&Oe.body.current&&(0,g.default)(0,{getContainer:function(){return Oe.body.current}}),V&&V(r.pagination,r.filters,r.sorter,{currentDataSource:(0,m.getFilterData)((0,v.getSortData)(pe,r.sorterStates,be),r.filterStates),action:t})},Se=N((0,v.default)({prefixCls:he,mergedColumns:ne,onSorterChange:function(e,t){Ee({sorter:e,sorterStates:t},"sort",!1)},sortDirections:Z||["ascend","descend"],tableLocale:fe,showSorterTooltip:ee}),4),Ce=Se[0],_e=Se[1],Pe=Se[2],ke=Se[3],Me=r.useMemo((function(){return(0,v.getSortData)(pe,_e,be)}),[pe,_e]);xe.sorter=ke(),xe.sorterStates=_e;var Ne=N((0,m.default)({prefixCls:he,locale:fe,dropdownPrefixCls:ve,mergedColumns:ne,onFilterChange:function(e,t){Ee({filters:e,filterStates:t},"filter",!0)},getPopupContainer:K}),3),Te=Ne[0],Ae=Ne[1],Re=Ne[2],De=(0,m.getFilterData)(Me,Ae);xe.filters=Re(),xe.filterStates=Ae;var Ie=r.useMemo((function(){return A({},Pe)}),[Pe]),Le=N((0,y.default)(Ie),1)[0],Fe=N((0,p.default)(De.length,D,(function(e,t){Ee({pagination:A(A({},xe.pagination),{current:e,pageSize:t})},"paginate")})),2),ze=Fe[0],He=Fe[1];xe.pagination=!1===D?{}:(0,p.getPaginationParam)(D,ze),xe.resetPagination=He;var Be=r.useMemo((function(){if(!1===D||!ze.pageSize)return De;var e=ze.current,t=void 0===e?1:e,n=ze.total,r=ze.pageSize,o=void 0===r?p.DEFAULT_PAGE_SIZE:r;return De.length<n?De.length>o?((0,E.default)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),De.slice((t-1)*o,t*o)):De:De.slice((t-1)*o,t*o)}),[!!D,De,ze&&ze.current,ze&&ze.pageSize,ze&&ze.total]),Ve=N((0,h.default)(I,{prefixCls:he,data:De,pageData:Be,getRowKey:we,getRecordByKey:je,expandType:ge,childrenColumnName:be,locale:fe,expandIconColumnIndex:me.expandIconColumnIndex,getPopupContainer:K}),2),Ke=Ve[0],Ue=Ve[1];me.__PARENT_RENDER_ICON__=me.expandIcon,me.expandIcon=me.expandIcon||W||(0,b.default)(fe),"nest"===ge&&void 0===me.expandIconColumnIndex?me.expandIconColumnIndex=I?1:0:me.expandIconColumnIndex>0&&I&&(me.expandIconColumnIndex-=1),me.indentSize=me.indentSize||Y||15;var We,qe,Ge,$e=r.useCallback((function(e){return Le(Ke(Te(Ce(e))))}),[Ce,Te,Ke]);if(!1!==D){var Ye;Ye=ze.size?ze.size:"small"===se||"middle"===se?"small":void 0;var Xe=function(e){return r.createElement(s.default,A({className:"".concat(he,"-pagination ").concat(he,"-pagination-").concat(e)},ze,{size:Ye}))},Ze="rtl"===le?"left":"right";if(null!==ze.position&&Array.isArray(ze.position)){var Je=ze.position.find((function(e){return-1!==e.indexOf("top")})),Qe=ze.position.find((function(e){return-1!==e.indexOf("bottom")}));Je||Qe?(Je&&(We=Xe(Je.toLowerCase().replace("top",""))),Qe&&(qe=Xe(Qe.toLowerCase().replace("bottom","")))):qe=Xe(Ze)}else qe=Xe(Ze)}"boolean"==typeof U?Ge={spinning:U}:"object"===k(U)&&(Ge=A({spinning:!0},U));var et=(0,o.default)("".concat(he,"-wrapper"),j,M({},"".concat(he,"-wrapper-rtl"),"rtl"===le));return r.createElement("div",{className:et,style:x},r.createElement(l.default,A({spinning:!1},Ge),We,r.createElement(a.default,A({},re,{columns:ne,direction:le,expandable:me,prefixCls:he,className:(0,o.default)((t={},M(t,"".concat(he,"-middle"),"middle"===se),M(t,"".concat(he,"-small"),"small"===se),M(t,"".concat(he,"-bordered"),_),M(t,"".concat(he,"-empty"),0===pe.length),t)),data:Be,rowKey:we,rowClassName:function(e,t,n){var r;return r="function"==typeof F?(0,o.default)(F(e,t,n)):(0,o.default)(F),(0,o.default)(M({},"".concat(he,"-row-selected"),Ue.has(we(e,t))),r)},emptyText:J&&J.emptyText||ue("Table"),internalHooks:c.INTERNAL_HOOKS,internalRefs:Oe,transformColumns:$e})),Be&&Be.length>0&&qe))}D.defaultProps={rowKey:"key"},D.SELECTION_ALL=h.SELECTION_ALL,D.SELECTION_INVERT=h.SELECTION_INVERT,D.Column=j.default,D.ColumnGroup=x.default,D.Summary=a.Summary;var I=D;t.default=I},function(e,t,n){"use strict";var r=n(36),o=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.INTERNAL_HOOKS=void 0;var i=o(n(227)),a=o(n(571)),c=o(n(523)),u=o(n(565)),l=r(n(0)),s=o(n(4)),f=o(n(229)),p=o(n(488)),d=o(n(237)),h=o(n(1217)),v=o(n(1218)),m=o(n(1219)),y=o(n(1220)),b=o(n(898)),g=o(n(430)),O=o(n(791)),w=o(n(1223)),j=o(n(903)),x=n(1225),E=n(618),S=o(n(902)),C=o(n(1226)),_=o(n(900)),P=n(790),k=o(n(1227)),M=r(n(1228)),N=n(1231),T=n(899);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D=[],I={};t.INTERNAL_HOOKS="rc-table-internal-hook";var L=l.memo((function(e){return e.children}),(function(e,t){return!!(0,f.default)(e.props,t.props)&&(e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight)}));function F(e){var t,n=e.prefixCls,r=e.className,o=e.rowClassName,f=e.style,v=e.data,m=e.rowKey,A=e.scroll,F=e.tableLayout,z=e.direction,H=e.title,B=e.footer,V=e.summary,K=e.id,U=e.showHeader,W=e.components,q=e.emptyText,G=e.onRow,$=e.onHeaderRow,Y=e.internalHooks,X=e.transformColumns,Z=e.internalRefs,J=v||D,Q=!!J.length,ee=l.useState(0),te=(0,u.default)(ee,2),ne=te[0],re=te[1];l.useEffect((function(){re((0,h.default)())}));var oe,ie,ae,ce=l.useMemo((function(){return(0,E.mergeObject)(W,{})}),[W]),ue=l.useCallback((function(e,t){return(0,E.getPathValue)(ce,e)||t}),[ce]),le=l.useMemo((function(){return"function"==typeof m?m:function(e){return e&&e[m]}}),[m]),se=(0,P.getExpandableProps)(e),fe=se.expandIcon,pe=se.expandedRowKeys,de=se.defaultExpandedRowKeys,he=se.defaultExpandAllRows,ve=se.expandedRowRender,me=se.onExpand,ye=se.onExpandedRowsChange,be=se.expandRowByClick,ge=se.rowExpandable,Oe=se.expandIconColumnIndex,we=se.expandedRowClassName,je=se.childrenColumnName,xe=se.indentSize,Ee=fe||N.renderExpandIcon,Se=je||"children",Ce=l.useMemo((function(){return ve?"row":!!(e.expandable&&"rc-table-internal-hook"===Y&&e.expandable.__PARENT_RENDER_ICON__||J.some((function(e){return e&&"object"===(0,c.default)(e)&&Se in e})))&&"nest"}),[!!ve,J]),_e=l.useState((function(){return de||(he?(0,N.findAllChildrenKeys)(J,le,Se):[])})),Pe=(0,u.default)(_e,2),ke=Pe[0],Me=Pe[1],Ne=l.useMemo((function(){return new Set(pe||ke||[])}),[pe,ke]),Te=l.useCallback((function(e){var t,n=le(e,J.indexOf(e)),r=Ne.has(n);r?(Ne.delete(n),t=(0,a.default)(Ne)):t=[].concat((0,a.default)(Ne),[n]),Me(t),me&&me(!r,e),ye&&ye(t)}),[le,Ne,J,me,ye]),Ae=l.useState(0),Re=(0,u.default)(Ae,2),De=Re[0],Ie=Re[1],Le=(0,j.default)(R(R(R({},e),se),{},{expandable:!!ve,expandedKeys:Ne,getRowKey:le,onTriggerExpand:Te,expandIcon:Ee,expandIconColumnIndex:Oe,direction:z}),"rc-table-internal-hook"===Y?X:null),Fe=(0,u.default)(Le,2),ze=Fe[0],He=Fe[1],Be=l.useMemo((function(){return{columns:ze,flattenColumns:He}}),[ze,He]),Ve=l.useRef(),Ke=l.useRef(),Ue=l.useRef(),We=l.useState(!1),qe=(0,u.default)(We,2),Ge=qe[0],$e=qe[1],Ye=l.useState(!1),Xe=(0,u.default)(Ye,2),Ze=Xe[0],Je=Xe[1],Qe=(0,x.useFrameState)(new Map),et=(0,u.default)(Qe,2),tt=et[0],nt=et[1],rt=(0,E.getColumnsKey)(He).map((function(e){return tt.get(e)})),ot=l.useMemo((function(){return rt}),[rt.join("_")]),it=(0,C.default)(ot,He.length,z),at=Q&&A&&(0,E.validateValue)(A.y),ct=A&&(0,E.validateValue)(A.x),ut=ct&&He.some((function(e){return e.fixed}));at&&(ie={overflowY:"scroll",maxHeight:A.y}),ct&&(oe={overflowX:"auto"},at||(ie={overflowY:"hidden"}),ae={width:!0===A.x?"auto":A.x,minWidth:"100%"});var lt=l.useCallback((function(e,t){nt((function(n){var r=new Map(n);return r.set(e,t),r}))}),[]),st=(0,x.useTimeoutLock)(null),ft=(0,u.default)(st,2),pt=ft[0],dt=ft[1];function ht(e,t){t&&t.scrollLeft!==e&&(t.scrollLeft=e)}var vt=function(e){var t=e.currentTarget,n=e.scrollLeft,r="number"==typeof n?n:t.scrollLeft,o=t||I;if(dt()&&dt()!==o||(pt(o),ht(r,Ke.current),ht(r,Ue.current)),t){var i=t.scrollWidth,a=t.clientWidth;$e(r>0),Je(r<i-a)}},mt=function(){Ue.current&&vt({currentTarget:Ue.current})};l.useEffect((function(){return mt}),[]),l.useEffect((function(){ct&&mt()}),[ct]),l.useEffect((function(){"rc-table-internal-hook"===Y&&Z&&(Z.body.current=Ue.current)}));var yt,bt,gt=ue(["table"],"table"),Ot=l.useMemo((function(){return F||(ut?"max-content"===A.x?"auto":"fixed":at||He.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[at,ut,He,F]),wt={colWidths:ot,columCount:He.length,stickyOffsets:it,onHeaderRow:$},jt=l.useMemo((function(){return Q?null:"function"==typeof q?q():q}),[Q,q]),xt=l.createElement(w.default,{data:J,measureColumnWidth:at||ct,expandedKeys:Ne,rowExpandable:ge,getRowKey:le,onRow:G,emptyNode:jt,childrenColumnName:Se}),Et=l.createElement(_.default,{colWidths:He.map((function(e){return e.width})),columns:He}),St=V&&l.createElement(M.default,null,V(J)),Ct=ue(["body"]);at?("function"==typeof Ct?(bt=Ct(J,{scrollbarSize:ne,ref:Ue,onScroll:vt}),wt.colWidths=He.map((function(e,t){var n=e.width,r=t===ze.length-1?n-ne:n;return"number"!=typeof r||Number.isNaN(r)?((0,p.default)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0):r}))):bt=l.createElement("div",{style:R(R({},oe),ie),onScroll:vt,ref:Ue,className:(0,s.default)("".concat(n,"-body"))},l.createElement(gt,{style:R(R({},ae),{},{tableLayout:Ot})},Et,xt,St)),yt=l.createElement(l.Fragment,null,!1!==U&&l.createElement("div",{style:{overflow:"hidden"},onScroll:vt,ref:Ke,className:(0,s.default)("".concat(n,"-header"))},l.createElement(y.default,Object.assign({},wt,Be,{direction:z}))),bt)):yt=l.createElement("div",{style:R(R({},oe),ie),className:(0,s.default)("".concat(n,"-content")),onScroll:vt,ref:Ue},l.createElement(gt,{style:R(R({},ae),{},{tableLayout:Ot})},Et,!1!==U&&l.createElement(b.default,Object.assign({},wt,Be)),xt,St));var _t=(0,P.getDataAndAriaProps)(e),Pt=l.createElement("div",Object.assign({className:(0,s.default)(n,r,(t={},(0,i.default)(t,"".concat(n,"-rtl"),"rtl"===z),(0,i.default)(t,"".concat(n,"-ping-left"),Ge),(0,i.default)(t,"".concat(n,"-ping-right"),Ze),(0,i.default)(t,"".concat(n,"-layout-fixed"),"fixed"===F),(0,i.default)(t,"".concat(n,"-fixed-header"),at),(0,i.default)(t,"".concat(n,"-fixed-column"),ut),(0,i.default)(t,"".concat(n,"-scroll-horizontal"),ct),(0,i.default)(t,"".concat(n,"-has-fix-left"),He[0]&&He[0].fixed),(0,i.default)(t,"".concat(n,"-has-fix-right"),He[He.length-1]&&"right"===He[He.length-1].fixed),t)),style:f,id:K,ref:Ve},_t),l.createElement(L,{pingLeft:Ge,pingRight:Ze,props:R(R({},e),{},{stickyOffsets:it,mergedExpandedKeys:Ne})},H&&l.createElement(k.default,{className:"".concat(n,"-title")},H(J)),l.createElement("div",{className:"".concat(n,"-container")},yt),B&&l.createElement(k.default,{className:"".concat(n,"-footer")},B(J))));ct&&(Pt=l.createElement(d.default,{onResize:function(e){var t=e.width;mt(),Ie(Ve.current?Ve.current.offsetWidth:t)}},Pt));var kt=l.useMemo((function(){return{prefixCls:n,getComponent:ue,scrollbarSize:ne,direction:z,fixedInfoList:He.map((function(e,t){return(0,T.getCellFixedInfo)(t,t,He,it,z)}))}}),[n,ue,ne,z,He,it,z]),Mt=l.useMemo((function(){return R(R({},Be),{},{tableLayout:Ot,rowClassName:o,expandedRowClassName:we,componentWidth:De,fixHeader:at,fixColumn:ut,horizonScroll:ct,expandIcon:Ee,expandableType:Ce,expandRowByClick:be,expandedRowRender:ve,onTriggerExpand:Te,expandIconColumnIndex:Oe,indentSize:xe})}),[Be,Ot,o,we,De,at,ut,ct,Ee,Ce,be,ve,Te,Oe,xe]),Nt=l.useMemo((function(){return{onColumnResize:lt}}),[lt]);return l.createElement(g.default.Provider,{value:kt},l.createElement(O.default.Provider,{value:Mt},l.createElement(S.default.Provider,{value:Nt},Pt)))}F.Column=m.default,F.ColumnGroup=v.default,F.Summary=M.FooterComponents,F.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var z=F;t.default=z},function(e,t,n){var r=n(871);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.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(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("undefined"==typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top=0,o.left=0,o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),r=i-a}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return null};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return null};t.default=r},function(e,t,n){"use strict";var r=n(36),o=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(227)),a=o(n(571)),c=o(n(381)),u=r(n(0)),l=o(n(898)),s=o(n(900)),f=o(n(430));function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e){for(var t=e.columns,n=e.flattenColumns,r=e.colWidths,o=e.columCount,i=e.stickyOffsets,p=e.direction,h=(0,c.default)(e,["columns","flattenColumns","colWidths","columCount","stickyOffsets","direction"]),v=u.useContext(f.default),m=v.prefixCls,y=v.scrollbarSize,b=n[n.length-1],g={fixed:b?b.fixed:null,onHeaderCell:function(){return{className:"".concat(m,"-cell-scrollbar")}}},O=u.useMemo((function(){return y?[].concat((0,a.default)(t),[g]):t}),[y,t]),w=u.useMemo((function(){return y?[].concat((0,a.default)(n),[g]):n}),[y,n]),j=u.useMemo((function(){var e=i.right,t=i.left;return d(d({},i),{},{left:"rtl"===p?[].concat((0,a.default)(t.map((function(e){return e+y}))),[0]):t,right:"rtl"===p?e:[].concat((0,a.default)(e.map((function(e){return e+y}))),[0])})}),[y,i]),x=[],E=0;E<o;E+=1)x[E]=r[E];var S=!r.every((function(e){return!e}));return u.createElement("table",{style:{tableLayout:"fixed",visibility:S?null:"hidden"}},u.createElement(s.default,{colWidths:[].concat((0,a.default)(r),[y]),columCount:o+1,columns:w}),u.createElement(l.default,Object.assign({},h,{stickyOffsets:j,columns:O,flattenColumns:w})))};t.default=h},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(718)),c=r(n(430)),u=n(899),l=n(618);function s(e){var t,n=e.cells,r=e.stickyOffsets,o=e.flattenColumns,s=e.rowComponent,f=e.cellComponent,p=e.onHeaderRow,d=e.index,h=i.useContext(c.default),v=h.prefixCls,m=h.direction;p&&(t=p(n.map((function(e){return e.column})),d));var y=(0,l.getColumnsKey)(n.map((function(e){return e.column})));return i.createElement(s,Object.assign({},t),n.map((function(e,t){var n,c=e.column,l=(0,u.getCellFixedInfo)(e.colStart,e.colEnd,o,r,m);return c&&c.onHeaderCell&&(n=e.column.onHeaderCell(c)),i.createElement(a.default,Object.assign({},e,{ellipsis:c.ellipsis,align:c.align,component:f,prefixCls:v,key:y[t]},l,{additionalProps:n,rowType:"header"}))})))}s.displayName="HeaderRow";var f=s;t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fillRef=i,t.composeRef=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){i(t,e)}))}},t.supportRef=function(e){var t=(0,r.isMemo)(e)?e.type.type:e.type;if(t&&t.prototype&&!t.prototype.render)return!1;if("function"==typeof e&&e.prototype&&!e.prototype.render)return!1;return!0};var r=n(154);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){"function"==typeof e?e(t):"object"===o(e)&&e&&"current"in e&&(e.current=t)}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(237)),c=r(n(1224)),u=r(n(430)),l=r(n(901)),s=r(n(791)),f=n(618),p=r(n(902));var d=i.memo((function(e){var t=e.data,n=e.getRowKey,r=e.measureColumnWidth,o=e.expandedKeys,d=e.onRow,h=e.rowExpandable,v=e.emptyNode,m=e.childrenColumnName,y=i.useContext(p.default).onColumnResize,b=i.useContext(u.default),g=b.prefixCls,O=b.getComponent,w=i.useContext(s.default),j=w.fixHeader,x=w.horizonScroll,E=w.flattenColumns,S=w.componentWidth;return i.useMemo((function(){var e,u=O(["body","wrapper"],"tbody"),s=O(["body","row"],"tr"),p=O(["body","cell"],"td");e=t.length?t.map((function(e,t){var r=n(e,t);return i.createElement(c.default,{key:r,rowKey:r,record:e,recordKey:r,index:t,rowComponent:s,cellComponent:p,expandedKeys:o,onRow:d,getRowKey:n,rowExpandable:h,childrenColumnName:m})})):i.createElement(l.default,{expanded:!0,className:"".concat(g,"-placeholder"),prefixCls:g,fixHeader:j,fixColumn:x,horizonScroll:x,component:s,componentWidth:S,cellComponent:p,colSpan:E.length},v);var b=(0,f.getColumnsKey)(E);return i.createElement(u,{className:"".concat(g,"-tbody")},r&&i.createElement("tr",{"aria-hidden":"true",className:"".concat(g,"-measure-row"),style:{height:0}},b.map((function(e){return i.createElement(a.default,{key:e,onResize:function(t){var n=t.offsetWidth;y(e,n)}},i.createElement("td",{style:{padding:0,border:0,height:0}}))}))),e)}),[t,g,d,r,o,n,O,S,v,E])}));d.displayName="Body";var h=d;t.default=h},function(e,t,n){"use strict";var r=n(36),o=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(227)),a=o(n(565)),c=r(n(0)),u=o(n(4)),l=o(n(718)),s=o(n(430)),f=o(n(791)),p=n(618),d=o(n(901));function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e){var t=e.className,n=e.style,r=e.record,o=e.index,i=e.rowKey,h=e.getRowKey,y=e.rowExpandable,b=e.expandedKeys,g=e.onRow,O=e.indent,w=void 0===O?0:O,j=e.rowComponent,x=e.cellComponent,E=e.childrenColumnName,S=c.useContext(s.default),C=S.prefixCls,_=S.fixedInfoList,P=c.useContext(f.default),k=P.fixHeader,M=P.fixColumn,N=P.horizonScroll,T=P.componentWidth,A=P.flattenColumns,R=P.expandableType,D=P.expandRowByClick,I=P.onTriggerExpand,L=P.rowClassName,F=P.expandedRowClassName,z=P.indentSize,H=P.expandIcon,B=P.expandedRowRender,V=P.expandIconColumnIndex,K=c.useState(!1),U=(0,a.default)(K,2),W=U[0],q=U[1],G=b&&b.has(e.recordKey);c.useEffect((function(){G&&q(!0)}),[G]);var $,Y="row"===R&&(!y||y(r)),X="nest"===R,Z=E&&r&&r[E],J=Y||X;g&&($=g(r,o));var Q;"string"==typeof L?Q=L:"function"==typeof L&&(Q=L(r,o,w));var ee,te,ne=(0,p.getColumnsKey)(A),re=c.createElement(j,Object.assign({},$,{"data-row-key":i,className:(0,u.default)(t,"".concat(C,"-row"),"".concat(C,"-row-level-").concat(w),Q,$&&$.className),style:v(v({},n),$?$.style:null),onClick:function(e){if(D&&J&&I(r,e),$&&$.onClick){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(t=$).onClick.apply(t,[e].concat(o))}}}),A.map((function(e,t){var n,i,a=e.render,u=e.dataIndex,s=e.className,f=ne[t],p=_[t];return t===(V||0)&&X&&(n=c.createElement(c.Fragment,null,c.createElement("span",{style:{paddingLeft:"".concat(z*w,"px")},className:"".concat(C,"-row-indent indent-level-").concat(w)}),H({prefixCls:C,expanded:G,expandable:Z,record:r,onExpand:I}))),e.onCell&&(i=e.onCell(r,o)),c.createElement(l.default,Object.assign({className:s,ellipsis:e.ellipsis,align:e.align,component:x,prefixCls:C,key:f,record:r,index:o,dataIndex:u,render:a,shouldCellUpdate:e.shouldCellUpdate},p,{appendNode:n,additionalProps:i}))})));if(Y&&(W||G)){var oe=B(r,o,w+1,G),ie=F&&F(r,o,w);ee=c.createElement(d.default,{expanded:G,className:(0,u.default)("".concat(C,"-expanded-row"),"".concat(C,"-expanded-row-level-").concat(w+1),ie),prefixCls:C,fixHeader:k,fixColumn:M,horizonScroll:N,component:j,componentWidth:T,cellComponent:x,colSpan:A.length},oe)}return Z&&G&&(te=(r[E]||[]).map((function(t,n){var r=h(t,n);return c.createElement(m,Object.assign({},e,{key:r,rowKey:r,record:t,recordKey:r,index:n,indent:w+1}))}))),c.createElement(c.Fragment,null,re,ee,te)}m.displayName="BodyRow";var y=m;t.default=y},function(e,t,n){"use strict";var r=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.useFrameState=function(e){var t=(0,i.useRef)(e),n=(0,i.useState)({}),r=(0,o.default)(n,2)[1],c=(0,i.useRef)(null),u=(0,i.useRef)([]);return(0,i.useEffect)((function(){return function(){a.default.cancel(c.current)}}),[]),[t.current,function(e){null===c.current&&(u.current=[],c.current=(0,a.default)((function(){u.current.forEach((function(e){t.current=e(t.current)})),c.current=null,r({})})));u.current.push(e)}]},t.useTimeoutLock=function(e){var t=(0,i.useRef)(e),n=(0,i.useRef)(null);function r(){window.clearTimeout(n.current)}return(0,i.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=null}),100)},function(){return t.current}]};var o=r(n(565)),i=n(0),a=r(n(101))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0);var o=function(e,t,n){return(0,r.useMemo)((function(){for(var r=[],o=[],i=0,a=0,c=0;c<t;c+=1)if("rtl"===n){o[c]=a,a+=e[c]||0;var u=t-c-1;r[u]=i,i+=e[u]||0}else{r[c]=i,i+=e[c]||0;var l=t-c-1;o[l]=a,a+=e[l]||0}return{left:r,right:o}}),[e,t,n])};t.default=o},function(e,t,n){"use strict";var r=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0));var i=function(e){var t=e.className,n=e.children;return o.createElement("div",{className:t},n)};t.default=i},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.FooterComponents=t.default=void 0;var i=o(n(0)),a=r(n(430)),c=r(n(1229)),u=r(n(1230));var l=function(e){var t=e.children,n=i.useContext(a.default).prefixCls;return i.createElement("tfoot",{className:"".concat(n,"-summary")},t)};t.default=l;var s={Cell:c.default,Row:u.default};t.FooterComponents=s},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,u=e.rowSpan,l=i.useContext(c.default),s=l.prefixCls,f=l.fixedInfoList[n];return i.createElement(a.default,Object.assign({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,render:function(){return{children:r,props:{colSpan:o,rowSpan:u}}}},f))};var i=o(n(0)),a=r(n(718)),c=r(n(430))},function(e,t,n){"use strict";var r=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return o.createElement("tr",Object.assign({},e))};var o=r(n(0))},function(e,t,n){"use strict";var r=n(36),o=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.renderExpandIcon=function(e){var t,n=e.prefixCls,r=e.record,o=e.onExpand,u=e.expanded,l=e.expandable,s="".concat(n,"-row-expand-icon");if(!l)return a.createElement("span",{className:(0,c.default)(s,"".concat(n,"-row-spaced"))});return a.createElement("span",{className:(0,c.default)(s,(t={},(0,i.default)(t,"".concat(n,"-row-expanded"),u),(0,i.default)(t,"".concat(n,"-row-collapsed"),!u),t)),onClick:function(e){o(r,e),e.stopPropagation()}})},t.findAllChildrenKeys=function(e,t,n){var r=[];return function e(o){(o||[]).forEach((function(o,i){r.push(t(o,i)),e(o[n])}))}(e),r};var i=o(n(227)),a=r(n(0)),c=o(n(4))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=s(n(4)),i=s(n(84)),a=s(n(806)),c=n(159),u=n(719),l=n(572);function s(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=((0,u.tuple)("small","default","large"),null);var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(f,e);var t,n,u,s=y(f);function f(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=s.call(this,e)).debouncifyUpdateSpinning=function(e){var n=(e||t.props).delay;n&&(t.cancelExistingSpin(),t.updateSpinning=(0,a.default)(t.originalUpdateSpinning,n))},t.updateSpinning=function(){var e=t.props.spinning;t.state.spinning!==e&&t.setState({spinning:e})},t.renderSpin=function(e){var n,a=e.getPrefixCls,c=e.direction,u=t.props,s=u.prefixCls,f=u.className,p=u.size,v=u.tip,m=u.wrapperClassName,y=u.style,b=O(u,["prefixCls","className","size","tip","wrapperClassName","style"]),g=t.state.spinning,j=a("spin",s),x=(0,o.default)(j,(h(n={},"".concat(j,"-sm"),"small"===p),h(n,"".concat(j,"-lg"),"large"===p),h(n,"".concat(j,"-spinning"),g),h(n,"".concat(j,"-show-text"),!!v),h(n,"".concat(j,"-rtl"),"rtl"===c),n),f),E=(0,i.default)(b,["spinning","delay","indicator"]),S=r.createElement("div",d({},E,{style:y,className:x}),function(e,t){var n=t.indicator,i="".concat(e,"-dot");return null===n?null:(0,l.isValidElement)(n)?(0,l.cloneElement)(n,{className:(0,o.default)(n.props.className,i)}):(0,l.isValidElement)(w)?(0,l.cloneElement)(w,{className:(0,o.default)(w.props.className,i)}):r.createElement("span",{className:(0,o.default)(i,"".concat(e,"-dot-spin"))},r.createElement("i",{className:"".concat(e,"-dot-item")}),r.createElement("i",{className:"".concat(e,"-dot-item")}),r.createElement("i",{className:"".concat(e,"-dot-item")}),r.createElement("i",{className:"".concat(e,"-dot-item")}))}(j,t.props),v?r.createElement("div",{className:"".concat(j,"-text")},v):null);if(t.isNestedPattern()){var C=(0,o.default)("".concat(j,"-container"),h({},"".concat(j,"-blur"),g));return r.createElement("div",d({},E,{className:(0,o.default)("".concat(j,"-nested-loading"),m)}),g&&r.createElement("div",{key:"loading"},S),r.createElement("div",{className:C,key:"container"},t.props.children))}return S};var n=e.spinning,c=function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,e.delay);return t.state={spinning:n&&!c},t.originalUpdateSpinning=t.updateSpinning,t.debouncifyUpdateSpinning(e),t}return t=f,u=[{key:"setDefaultIndicator",value:function(e){w=e}}],(n=[{key:"componentDidMount",value:function(){this.updateSpinning()}},{key:"componentDidUpdate",value:function(){this.debouncifyUpdateSpinning(),this.updateSpinning()}},{key:"componentWillUnmount",value:function(){this.cancelExistingSpin()}},{key:"cancelExistingSpin",value:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()}},{key:"isNestedPattern",value:function(){return!(!this.props||!this.props.children)}},{key:"render",value:function(){return r.createElement(c.ConfigConsumer,null,this.renderSpin)}}])&&v(t.prototype,n),u&&v(t,u),f}(r.Component);j.defaultProps={spinning:!0,size:"default",wrapperClassName:""};var x=j;t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ANT_MARK=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=c(n(490)),i=n(1234),a=c(n(904));function c(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.ANT_MARK="internalMark";var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(l,e);var t,n,c,u=d(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=u.call(this,e),(0,i.changeConfirmLocale)(e.locale&&e.locale.Modal),(0,o.default)("internalMark"===e._ANT_MARK__,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),t}return t=l,(n=[{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&(0,i.changeConfirmLocale)(t&&t.Modal)}},{key:"componentWillUnmount",value:function(){(0,i.changeConfirmLocale)()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.children;return r.createElement(a.default.Provider,{value:s(s({},t),{exist:!0})},n)}}])&&f(t.prototype,n),c&&f(t,c),l}(r.Component);t.default=m,m.defaultProps={locale:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.changeConfirmLocale=function(e){a=e?i(i({},a),e):i({},o.default.Modal)},t.getConfirmLocale=function(){return a};var r,o=(r=n(769))&&r.__esModule?r:{default:r};function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=i({},o.default.Modal)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(769))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=(o=n(905))&&o.__esModule?o:{default:o},c=n(159);function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var l=function(e){return i.createElement(c.ConfigConsumer,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return i.createElement(a.default,{image:a.default.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return i.createElement(a.default,{image:a.default.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return i.createElement(a.default,null)}}))};t.default=l},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var c=o?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=n(159);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}var c=function(){var e=(0,o.useContext(i.ConfigContext).getPrefixCls)("empty-img-default");return o.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),o.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),o.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),o.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),o.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),o.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};t.default=c},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var c=o?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=n(159);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}var c=function(){var e=(0,o.useContext(i.ConfigContext).getPrefixCls)("empty-img-simple");return o.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))};t.default=c},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=p(n(4)),a=p(n(574)),c=p(n(174)),u=p(n(622)),l=p(n(305)),s=p(n(527)),f=p(n(802));function p(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m,y,b,g,O=3,w=1,j="ant-message",x="move-up",E=!1;var S={info:f.default,success:s.default,error:l.default,warning:u.default,loading:c.default};var C={open:function(e){var t,n=void 0!==e.duration?e.duration:O,r=S[e.type],c=(0,i.default)("".concat(j,"-custom-content"),(v(t={},"".concat(j,"-").concat(e.type),e.type),v(t,"".concat(j,"-rtl"),!0===E),t)),u=e.key||w++,l=new Promise((function(t){var i=function(){return"function"==typeof e.onClose&&e.onClose(),t(!0)};!function(e){y?e(y):a.default.newInstance({prefixCls:j,transitionName:x,style:{top:m},getContainer:b,maxCount:g},(function(t){y?e(y):(y=t,e(t))}))}((function(t){t.notice({key:u,duration:n,style:e.style||{},className:e.className,content:o.createElement("div",{className:c},e.icon||r&&o.createElement(r,null),o.createElement("span",null,e.content)),onClose:i})}))})),s=function(){y&&y.removeNotice(u)};return s.then=function(e,t){return l.then(e,t)},s.promise=l,s},config:function(e){void 0!==e.top&&(m=e.top,y=null),void 0!==e.duration&&(O=e.duration),void 0!==e.prefixCls&&(j=e.prefixCls),void 0!==e.getContainer&&(b=e.getContainer),void 0!==e.transitionName&&(x=e.transitionName,y=null),void 0!==e.maxCount&&(g=e.maxCount,y=null),void 0!==e.rtl&&(E=e.rtl)},destroy:function(){y&&(y.destroy(),y=null)}};["success","info","warning","error","loading"].forEach((function(e){C[e]=function(t,n,r){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(t)?C.open(h(h({},t),{type:e})):("function"==typeof n&&(r=n,n=void 0),C.open({content:t,duration:n,type:e,onClose:r}))}})),C.warn=C.warning;var _=C;t.default=_},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=d(n(574)),a=d(n(219)),c=d(n(4)),u=d(n(623)),l=d(n(625)),s=d(n(147)),f=d(n(624)),p=d(n(1241));function d(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var m,y,b={},g=4.5,O=24,w=24,j="ant-notification",x="topRight",E=!1;function S(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;switch(e){case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function C(e,t){var n=e.placement,r=void 0===n?x:n,u=e.top,l=e.bottom,s=e.getContainer,f=void 0===s?m:s,p=e.closeIcon,d=void 0===p?y:p,h=e.prefixCls||j,v="".concat(h,"-notice"),g="".concat(h,"-").concat(r),O=b[g];if(O)Promise.resolve(O).then((function(e){t({prefixCls:v,instance:e})}));else{var w,C,_,P=o.createElement("span",{className:"".concat(h,"-close-x")},d||o.createElement(a.default,{className:"".concat(h,"-close-icon")})),k=(0,c.default)("".concat(h,"-").concat(r),(w={},C="".concat(h,"-rtl"),_=!0===E,C in w?Object.defineProperty(w,C,{value:_,enumerable:!0,configurable:!0,writable:!0}):w[C]=_,w));b[g]=new Promise((function(e){i.default.newInstance({prefixCls:h,className:k,style:S(r,u,l),getContainer:f,closeIcon:P},(function(n){e(n),t({prefixCls:v,instance:n})}))}))}}var _={success:u.default,info:f.default,error:l.default,warning:s.default};function P(e,t){var n=void 0===e.duration?g:e.duration,r=null;e.icon?r=o.createElement("span",{className:"".concat(t,"-icon")},e.icon):e.type&&(r=o.createElement(_[e.type]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(e.type)}));var i=!e.description&&r?o.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:o.createElement("div",{className:r?"".concat(t,"-with-icon"):""},r,o.createElement("div",{className:"".concat(t,"-message")},i,e.message),o.createElement("div",{className:"".concat(t,"-description")},e.description),e.btn?o.createElement("span",{className:"".concat(t,"-btn")},e.btn):null),duration:n,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},className:e.className}}var k={open:function(e){C(e,(function(t){var n=t.prefixCls;t.instance.notice(P(e,n))}))},close:function(e){Object.keys(b).forEach((function(t){return Promise.resolve(b[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,o=e.top,i=e.getContainer,a=e.closeIcon,c=e.prefixCls;void 0!==c&&(j=c),void 0!==t&&(g=t),void 0!==n?x=n:e.rtl&&(x="topLeft"),void 0!==r&&(w=r),void 0!==o&&(O=o),void 0!==i&&(m=i),void 0!==a&&(y=a),void 0!==e.rtl&&(E=e.rtl)},destroy:function(){Object.keys(b).forEach((function(e){Promise.resolve(b[e]).then((function(e){e.destroy()})),delete b[e]}))}};["success","info","warning","error"].forEach((function(e){k[e]=function(t){return k.open(v(v({},t),{type:e}))}})),k.warn=k.warning,k.useNotification=(0,p.default)(C,P);var M=k;t.default=M},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(){var n,r,o,u=null,f={add:function(e,t){null==u||u.component.add(e,t)}},p=(0,a.default)(f),d=(o=2,function(e){if(Array.isArray(e))return e}(r=p)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(r,o)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(r,o)||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.")}()),h=d[0],v=d[1];var m=i.useRef({});return m.current.open=function(r){var o=r.prefixCls,i=n("notification",o);e(l(l({},r),{prefixCls:i}),(function(e){var n=e.prefixCls,o=e.instance;u=o,h(t(r,n))}))},["success","info","warning","error"].forEach((function(e){m.current[e]=function(t){return m.current.open(l(l({},t),{type:e}))}})),[m.current,i.createElement(c.ConfigConsumer,{key:"holder"},(function(e){return n=e.getPrefixCls,v}))]}};var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=(o=n(1242))&&o.__esModule?o:{default:o},c=n(159);function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";var r=n(36),o=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=c.useRef({}),n=c.useState([]),r=(0,a.default)(n,2),o=r[0],l=r[1];return[function(n){e.add(n,(function(e,n){var r=n.key;if(e&&!t.current[r]){var o=c.createElement(u.default,Object.assign({},n,{holder:e}));t.current[r]=o,l((function(e){return[].concat((0,i.default)(e),[o])}))}}))},c.createElement(c.Fragment,null,o)]};var i=o(n(571)),a=o(n(565)),c=r(n(0)),u=o(n(1243))},function(e,t,n){"use strict";var r=n(36),o=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(227)),a=o(n(906)),c=o(n(907)),u=o(n(908)),l=o(n(909)),s=o(n(911)),f=r(n(0)),p=o(n(20)),d=o(n(4));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=h(n);function n(){var e;return(0,a.default)(this,n),(e=t.apply(this,arguments)).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props.onClose;n&&n()},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return(0,c.default)(n,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.update)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.className,o=t.closable,a=t.closeIcon,c=t.style,u=t.onClick,l=t.children,s=t.holder,h="".concat(n,"-notice"),v=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),m=f.default.createElement("div",Object.assign({className:(0,d.default)(h,r,(0,i.default)({},"".concat(h,"-closable"),o)),style:c,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:u},v),f.default.createElement("div",{className:"".concat(h,"-content")},l),o?f.default.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(h,"-close")},a||f.default.createElement("span",{className:"".concat(h,"-close-x")})):null);return s?p.default.createPortal(m,s):m}}]),n}(f.Component);t.default=v,v.defaultProps={onClose:function(){},duration:1.5,style:{right:"50%"}}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1246))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=b();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=y(n(812)),a=y(n(867)),c=y(n(4)),u=y(n(528)),l=y(n(385)),s=y(n(804)),f=y(n(805)),p=y(n(1247)),d=y(n(912)),h=y(n(793)),v=n(159),m=y(n(913));function y(e){return e&&e.__esModule?e:{default:e}}function b(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return b=function(){return e},e}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=function(e){var t=e.prefixCls,n=e.selectPrefixCls,r=e.className,y=e.size,b=e.locale,w=O(e,["prefixCls","selectPrefixCls","className","size","locale"]),j=(0,m.default)().xs,x=o.useContext(v.ConfigContext),E=x.getPrefixCls,S=x.direction,C=E("pagination",t),_=function(e){var t,a,h,v=g(g({},e),b),m="small"===y||!(!j||y||!w.responsive),O=E("select",n),x=(0,c.default)(r,(t={mini:m},a="".concat(C,"-rtl"),h="rtl"===S,a in t?Object.defineProperty(t,a,{value:h,enumerable:!0,configurable:!0,writable:!0}):t[a]=h,t));return o.createElement(i.default,g({},w,{prefixCls:C,selectPrefixCls:O},function(){var e=o.createElement("span",{className:"".concat(C,"-item-ellipsis")},"•••"),t=o.createElement("button",{className:"".concat(C,"-item-link"),type:"button",tabIndex:-1},o.createElement(u.default,null)),n=o.createElement("button",{className:"".concat(C,"-item-link"),type:"button",tabIndex:-1},o.createElement(l.default,null)),r=o.createElement("a",{className:"".concat(C,"-item-link")},o.createElement("div",{className:"".concat(C,"-item-container")},o.createElement(s.default,{className:"".concat(C,"-item-link-icon")}),e)),i=o.createElement("a",{className:"".concat(C,"-item-link")},o.createElement("div",{className:"".concat(C,"-item-container")},o.createElement(f.default,{className:"".concat(C,"-item-link-icon")}),e));if("rtl"===S){var a=[n,t];t=a[0],n=a[1];var c=[i,r];r=c[0],i=c[1]}return{prevIcon:t,nextIcon:n,jumpPrevIcon:r,jumpNextIcon:i}}(),{className:x,selectComponentClass:m?p.default:d.default,locale:v}))};return o.createElement(h.default,{componentName:"Pagination",defaultLocale:a.default},_)};t.default=w},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=(o=n(912))&&o.__esModule?o:{default:o};function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=function(e){return i.createElement(a.default,u({size:"small"},e))};l.Option=a.default.Option;var s=l;t.default=s},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.suffixIcon,n=e.clearIcon,r=e.menuItemSelectedIcon,f=e.removeIcon,p=e.loading,d=e.multiple,h=e.prefixCls,v=n;n||(v=o.createElement(l.default,null));var m=null;if(void 0!==t)m=t;else if(p)m=o.createElement(a.default,{spin:!0});else{var y="".concat(h,"-suffix");m=function(e){var t=e.open,n=e.showSearch;return t&&n?o.createElement(s.default,{className:y}):o.createElement(i.default,{className:y})}}var b=null;b=void 0!==r?r:d?o.createElement(c.default,null):null;var g=null;g=void 0!==f?f:o.createElement(u.default,null);return{clearIcon:v,suffixIcon:m,itemIcon:b,removeIcon:g}};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=f(n(369)),a=f(n(174)),c=f(n(529)),u=f(n(219)),l=f(n(305)),s=f(n(582));function f(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.responsiveMap=t.responsiveArray=void 0;t.responsiveArray=["xxl","xl","lg","md","sm","xs"];var o={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};t.responsiveMap=o;var i=new Map,a=-1,c={},u={matchHandlers:{},dispatch:function(e){return c=e,i.forEach((function(e){return e(c)})),i.size>=1},subscribe:function(e){return i.size||this.register(),a+=1,i.set(a,e),e(c),a},unsubscribe:function(e){i.delete(e),i.size||this.unregister()},unregister:function(){var e=this;Object.keys(o).forEach((function(t){var n=o[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),i.clear()},register:function(){var e=this;Object.keys(o).forEach((function(t){var n=o[t],i=function(n){var o,i,a,u=n.matches;e.dispatch(r(r({},c),(a=u,(i=t)in(o={})?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o)))},a=window.matchMedia(n);a.addListener(i),e.matchHandlers[n]={mql:a,listener:i},i(a)}))}};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPaginationParam=function(e,t){var n={current:t.current,pageSize:t.pageSize},r=e&&"object"===a(e)?e:{};return Object.keys(r).forEach((function(e){var r=t[e];"function"!=typeof r&&(n[e]=r)})),n},t.default=function(e,t,n){var u=t&&"object"===a(t)?t:{},l=u.total,s=void 0===l?0:l,f=c(u,["total"]),p=(m=(0,r.useState)((function(){return{current:"defaultCurrent"in f?f.defaultCurrent:1,pageSize:"defaultPageSize"in f?f.defaultPageSize:10}})),y=2,function(e){if(Array.isArray(e))return e}(m)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(m,y)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(m,y)||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.")}()),d=p[0],h=p[1],v=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(d,f,{total:s>0?s:e});var m,y;if(!s){Math.ceil(e/v.pageSize)<v.current&&(v.current=1)}var b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;h(o(o({},v),{current:e}))};if(!1===t)return[{},function(){}];return[o(o({},v),{onChange:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=r[0];b(i),n(i,r[1]||v.pageSize),t&&t.onChange&&t.onChange.apply(t,r)},onShowSizeChange:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var a=r[1];h(o(o({},v),{current:1,pageSize:a})),n(1,a),t&&t.onShowSizeChange&&t.onShowSizeChange.apply(t,r)}}),b]},t.DEFAULT_PAGE_SIZE=void 0;var r=n(0);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};t.DEFAULT_PAGE_SIZE=10},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o.useRef({});return[function(o){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){var i=new Map;!function e(r){r.forEach((function(r,o){var a=n(r,o);i.set(a,r),t in r&&e(r[t]||[])}))}(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap.get(o)}]};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e||{},r=n.preserveSelectedRowKeys,m=n.selectedRowKeys,y=n.getCheckboxProps,S=n.onChange,_=n.onSelect,P=n.onSelectAll,k=n.onSelectInvert,M=n.onSelectMultiple,N=n.columnWidth,T=n.type,A=n.selections,R=n.fixed,D=n.renderCell,I=n.hideSelectAll,L=n.checkStrictly,F=void 0===L||L,z=t.prefixCls,H=t.data,B=t.pageData,V=t.getRecordByKey,K=t.getRowKey,U=t.expandType,W=t.childrenColumnName,q=t.locale,G=t.expandIconColumnIndex,$=t.getPopupContainer,Y=o.useRef(new Map),X=g((0,s.default)(m||[],{value:m}),2),Z=X[0],J=X[1],Q=(0,o.useMemo)((function(){return F?{keyEntities:null}:(0,a.convertDataToEntities)(H,void 0,K)}),[H,K,F]).keyEntities,ee=(0,o.useMemo)((function(){return function e(t,n){var r=[];return(t||[]).forEach((function(t){r.push(t),n in t&&(r=[].concat(j(r),j(e(t[n],n))))})),r}(B,W)}),[B,W]),te=(0,o.useMemo)((function(){var e=new Map;return ee.forEach((function(t,n){var r=K(t,n),o=(y?y(t):null)||{};e.set(r,o)})),e}),[ee,K,y]),ne=(0,o.useCallback)((function(e){var t;return!!(null===(t=te.get(K(e)))||void 0===t?void 0:t.disabled)}),[te,K]),re=g((0,o.useMemo)((function(){if(F)return[Z,[]];var e=(0,c.conductCheck)(Z,!0,Q,ne);return[e.checkedKeys,e.halfCheckedKeys]}),[Z,F,Q,ne]),2),oe=re[0],ie=re[1],ae=(0,o.useMemo)((function(){var e="radio"===T?oe.slice(0,1):oe;return new Set(e)}),[oe,T]),ce=(0,o.useMemo)((function(){return"radio"===T?new Set:new Set(ie)}),[ie,T]),ue=g((0,o.useState)(null),2),le=ue[0],se=ue[1];o.useEffect((function(){e||J([])}),[!!e]);var fe=(0,o.useCallback)((function(e){var t,n;if(r){var o=new Map;t=e,n=e.map((function(e){var t=V(e);return!t&&Y.current.has(e)&&(t=Y.current.get(e)),o.set(e,t),t})),Y.current=o}else t=[],n=[],e.forEach((function(e){var r=V(e);void 0!==r&&(t.push(e),n.push(r))}));J(t),S&&S(t,n)}),[J,V,S,r]),pe=(0,o.useCallback)((function(e,t,n,r){if(_){var o=n.map((function(e){return V(e)}));_(V(e),t,o,r)}fe(n)}),[_,V,fe]),de=(0,o.useMemo)((function(){return!A||I?null:(!0===A?["SELECT_ALL","SELECT_INVERT"]:A).map((function(e){return"SELECT_ALL"===e?{key:"all",text:q.selectionAll,onSelect:function(){fe(H.map((function(e,t){return K(e,t)})))}}:"SELECT_INVERT"===e?{key:"invert",text:q.selectInvert,onSelect:function(){var e=new Set(ae);B.forEach((function(t,n){var r=K(t,n);e.has(r)?e.delete(r):e.add(r)}));var t=Array.from(e);fe(t),k&&((0,v.default)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),k(t))}}:e}))}),[A,ae,B,K,k,fe]);return[(0,o.useCallback)((function(t){if(!e)return t;var n,r,a=new Set(ae),s=ee.map(K).filter((function(e){return!te.get(e).disabled})),v=s.every((function(e){return a.has(e)})),m=s.some((function(e){return a.has(e)}));if("radio"!==T){var y;if(de){var g=o.createElement(d.default,{getPopupContainer:$},de.map((function(e,t){var n=e.key,r=e.text,i=e.onSelect;return o.createElement(d.default.Item,{key:n||t,onClick:function(){i&&i(s)}},r)})));y=o.createElement("div",{className:"".concat(z,"-selection-extra")},o.createElement(p.default,{overlay:g,getPopupContainer:$},o.createElement("span",null,o.createElement(i.default,null))))}var S=ee.every((function(e,t){var n=K(e,t);return(te.get(n)||{}).disabled}));n=!I&&o.createElement("div",{className:"".concat(z,"-selection")},o.createElement(f.default,{checked:!S&&!!ee.length&&v,indeterminate:!v&&m,onChange:function(){var e=[];v?s.forEach((function(t){a.delete(t),e.push(t)})):s.forEach((function(t){a.has(t)||(a.add(t),e.push(t))}));var t=Array.from(a);fe(t),P&&P(!v,t.map((function(e){return V(e)})),e.map((function(e){return V(e)})))},disabled:0===ee.length||S}),y)}r="radio"===T?function(e,t,n){var r=K(t,n),i=a.has(r);return{node:o.createElement(h.default,b({},te.get(r),{checked:i,onClick:function(e){return e.stopPropagation()},onChange:function(e){a.has(r)||pe(r,!0,[r],e.nativeEvent)}})),checked:i}}:function(e,t,n){var r=K(t,n),i=a.has(r),l=ce.has(r);return{node:o.createElement(f.default,b({},te.get(r),{checked:i,indeterminate:l,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=e.nativeEvent,n=t.shiftKey,o=-1,l=-1;if(n&&F){var f=new Set([le,r]);s.some((function(e,t){if(f.has(e)){if(-1!==o)return l=t,!0;o=t}return!1}))}if(-1!==l&&o!==l&&F){var p=s.slice(o,l+1),d=[];i?p.forEach((function(e){a.has(e)&&(d.push(e),a.delete(e))})):p.forEach((function(e){a.has(e)||(d.push(e),a.add(e))}));var h=Array.from(a);fe(h),M&&M(!i,h.map((function(e){return V(e)})),d.map((function(e){return V(e)})))}else{var v=oe;if(F){var m=i?(0,u.arrDel)(v,r):(0,u.arrAdd)(v,r);pe(r,!i,m,t)}else{var y=(0,c.conductCheck)([].concat(j(v),[r]),!0,Q,ne),b=y.checkedKeys,g=y.halfCheckedKeys,O=b;if(i){var w=new Set(b);w.delete(r),O=(0,c.conductCheck)(Array.from(w),{checked:!1,halfCheckedKeys:g},Q,ne).checkedKeys}pe(r,!i,O,t)}}se(r)}})),checked:i}};var _,k=function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({width:N,className:"".concat(z,"-selection-column"),title:e.columnTitle||n,render:function(e,t,n){var o=r(e,t,n),i=o.node,a=o.checked;return D?D(a,t,n,i):i}},l.INTERNAL_COL_DEFINE,{className:"".concat(z,"-selection-col")});if("row"===U&&t.length&&!G){var A=w(_=t)||E(_)||x(_)||O(),L=A[0],H=A.slice(1),B=R||C(H[0]);return B&&(L.fixed=B),[L,b(b({},k),{fixed:B})].concat(j(H))}return[b(b({},k),{fixed:R||C(t[0])})].concat(j(t))}),[K,ee,e,oe,ae,ce,N,de,U,le,te,M,pe,ne]),ae]},t.SELECTION_INVERT=t.SELECTION_ALL=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=y();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=m(n(369)),a=n(914),c=n(1256),u=n(795),l=n(530),s=m(n(1257)),f=m(n(915)),p=m(n(918)),d=m(n(921)),h=m(n(924)),v=m(n(490));function m(e){return e&&e.__esModule?e:{default:e}}function y(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return y=function(){return e},e}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){return w(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||x(e,t)||O()}function O(){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 w(e){if(Array.isArray(e))return e}function j(e){return function(e){if(Array.isArray(e))return S(e)}(e)||E(e)||x(e)||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 x(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}function E(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.SELECTION_ALL="SELECT_ALL";function C(e){return e&&e.fixed}t.SELECTION_INVERT="SELECT_INVERT"},function(e,t,n){"use strict";var r=n(36),o=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.InternalTreeNode=void 0;var i=o(n(381)),a=o(n(227)),c=o(n(906)),u=o(n(907)),l=o(n(910)),s=o(n(908)),f=o(n(909)),p=o(n(911)),d=r(n(0)),h=o(n(4)),v=n(1254),m=n(795),y=o(n(1255)),b=n(914);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,p.default)(e);if(t){var o=(0,p.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,f.default)(this,n)}}var j=function(e){(0,s.default)(n,e);var t=w(n);function n(){var e;return(0,c.default)(this,n),(e=t.apply(this,arguments)).state={dragNodeHighlight:!1},e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,(0,b.convertNodePropsToEventData)(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,(0,b.convertNodePropsToEventData)(e.props))},e.onSelect=function(t){if(!e.isDisabled()){var n=e.props.context.onNodeSelect;t.preventDefault(),n(t,(0,b.convertNodePropsToEventData)(e.props))}},e.onCheck=function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,o=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){t.preventDefault();var a=!o;i(t,(0,b.convertNodePropsToEventData)(e.props),a)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,(0,b.convertNodePropsToEventData)(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,(0,b.convertNodePropsToEventData)(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,(0,b.convertNodePropsToEventData)(e.props))},e.onDragStart=function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,(0,l.default)(e));try{t.dataTransfer.setData("text/plain","")}catch(e){}},e.onDragEnter=function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,(0,l.default)(e))},e.onDragOver=function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,(0,l.default)(e))},e.onDragLeave=function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,(0,l.default)(e))},e.onDragEnd=function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,(0,l.default)(e))},e.onDrop=function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,(0,l.default)(e))},e.onExpand=function(t){(0,e.props.context.onNodeExpand)(t,(0,b.convertNodePropsToEventData)(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?"open":"close"},e.hasChildren=function(){var t=e.props.eventKey;return!!((e.props.context.keyEntities[t]||{}).children||[]).length},e.isLeaf=function(){var t=e.props,n=t.isLeaf,r=t.loaded,o=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!o&&!i||o&&r&&!i)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n},e.syncLoadData=function(t){var n=t.expanded,r=t.loading,o=t.loaded,i=e.props.context,a=i.loadData,c=i.onNodeLoad;r||a&&n&&!e.isLeaf()&&(e.hasChildren()||o||c((0,b.convertNodePropsToEventData)(e.props)))},e.renderSwitcher=function(){var t=e.props,n=t.expanded,r=t.switcherIcon,o=e.props.context,i=o.prefixCls,a=o.switcherIcon,c=r||a;if(e.isLeaf())return d.createElement("span",{className:(0,h.default)("".concat(i,"-switcher"),"".concat(i,"-switcher-noop"))},"function"==typeof c?c(O(O({},e.props),{},{isLeaf:!0})):c);var u=(0,h.default)("".concat(i,"-switcher"),"".concat(i,"-switcher_").concat(n?"open":"close"));return d.createElement("span",{onClick:e.onExpand,className:u},"function"==typeof c?c(O(O({},e.props),{},{isLeaf:!1})):c)},e.renderCheckbox=function(){var t=e.props,n=t.checked,r=t.halfChecked,o=t.disableCheckbox,i=e.props.context.prefixCls,a=e.isDisabled(),c=e.isCheckable();if(!c)return null;var u="boolean"!=typeof c?c:null;return d.createElement("span",{className:(0,h.default)("".concat(i,"-checkbox"),n&&"".concat(i,"-checkbox-checked"),!n&&r&&"".concat(i,"-checkbox-indeterminate"),(a||o)&&"".concat(i,"-checkbox-disabled")),onClick:e.onCheck},u)},e.renderIcon=function(){var t=e.props.loading,n=e.props.context.prefixCls;return d.createElement("span",{className:(0,h.default)("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})},e.renderSelector=function(){var t,n=e.state.dragNodeHighlight,r=e.props,o=r.title,i=r.selected,a=r.icon,c=r.loading,u=r.data,l=e.props.context,s=l.prefixCls,f=l.showIcon,p=l.icon,v=l.draggable,m=l.loadData,y=e.isDisabled(),b="".concat(s,"-node-content-wrapper");if(f){var g=a||p;t=g?d.createElement("span",{className:(0,h.default)("".concat(s,"-iconEle"),"".concat(s,"-icon__customize"))},"function"==typeof g?g(e.props):g):e.renderIcon()}else m&&c&&(t=e.renderIcon());var O=d.createElement("span",{className:"".concat(s,"-title")},"function"==typeof o?o(u):o);return d.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof o?o:"",className:(0,h.default)("".concat(b),"".concat(b,"-").concat(e.getNodeState()||"normal"),!y&&(i||n)&&"".concat(s,"-node-selected"),!y&&v&&"draggable"),draggable:!y&&v||void 0,"aria-grabbed":!y&&v||void 0,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick,onDragStart:v?e.onDragStart:void 0},t,O)},e}return(0,u.default)(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,r=t.className,o=t.style,c=t.dragOver,u=t.dragOverGapTop,l=t.dragOverGapBottom,s=t.isLeaf,f=t.isStart,p=t.isEnd,v=t.expanded,g=t.selected,O=t.checked,w=t.halfChecked,j=t.loading,x=t.domRef,E=t.active,S=t.onMouseMove,C=(0,i.default)(t,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),_=this.props.context,P=_.prefixCls,k=_.filterTreeNode,M=_.draggable,N=_.keyEntities,T=this.isDisabled(),A=(0,m.getDataAndAria)(C),R=(N[n]||{}).level,D=p[p.length-1];return d.createElement("div",Object.assign({ref:x,className:(0,h.default)(r,"".concat(P,"-treenode"),(e={},(0,a.default)(e,"".concat(P,"-treenode-disabled"),T),(0,a.default)(e,"".concat(P,"-treenode-switcher-").concat(v?"open":"close"),!s),(0,a.default)(e,"".concat(P,"-treenode-checkbox-checked"),O),(0,a.default)(e,"".concat(P,"-treenode-checkbox-indeterminate"),w),(0,a.default)(e,"".concat(P,"-treenode-selected"),g),(0,a.default)(e,"".concat(P,"-treenode-loading"),j),(0,a.default)(e,"".concat(P,"-treenode-active"),E),(0,a.default)(e,"".concat(P,"-treenode-leaf-last"),D),(0,a.default)(e,"drag-over",!T&&c),(0,a.default)(e,"drag-over-gap-top",!T&&u),(0,a.default)(e,"drag-over-gap-bottom",!T&&l),(0,a.default)(e,"filter-node",k&&k((0,b.convertNodePropsToEventData)(this.props))),e)),style:o,onDragEnter:M?this.onDragEnter:void 0,onDragOver:M?this.onDragOver:void 0,onDragLeave:M?this.onDragLeave:void 0,onDrop:M?this.onDrop:void 0,onDragEnd:M?this.onDragEnd:void 0,onMouseMove:S},A),d.createElement(y.default,{prefixCls:P,level:R,isStart:f,isEnd:p}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(d.Component);t.InternalTreeNode=j;var x=function(e){return d.createElement(v.TreeContext.Consumer,null,(function(t){return d.createElement(j,Object.assign({},e,{context:t}))}))};x.displayName="TreeNode",x.defaultProps={title:"---"},x.isTreeNode=1;var E=x;t.default=E},function(e,t,n){"use strict";var r=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.TreeContext=void 0;var o=r(n(0)).createContext(null);t.TreeContext=o},function(e,t,n){"use strict";var r=n(36),o=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(227)),a=r(n(0)),c=o(n(4)),u=function(e){var t=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd;if(!n)return null;for(var u="".concat(t,"-indent-unit"),l=[],s=0;s<n;s+=1){var f;l.push(a.createElement("span",{key:s,className:(0,c.default)(u,(f={},(0,i.default)(f,"".concat(u,"-start"),r[s+1]),(0,i.default)(f,"".concat(u,"-end"),o[s+1]),f))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},l)};t.default=u},function(e,t,n){"use strict";var r=n(33);Object.defineProperty(t,"__esModule",{value:!0}),t.isCheckDisabled=a,t.conductCheck=function(e,t,n,r){var c,u=[];c=r||a;var l,s=new Set(e.filter((function(e){var t=!!n[e];return t||u.push(e),t}))),f=new Map,p=0;Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=f.get(r);o||(o=new Set,f.set(r,o)),o.add(t),p=Math.max(p,r)})),(0,o.default)(!u.length,"Tree missing follow keys: ".concat(u.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),l=!0===t?function(e,t,n,r){for(var o=new Set(e),a=new Set,c=0;c<=n;c+=1){(t.get(c)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}))}for(var u=new Set,l=n;l>=0;l-=1){(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!u.has(e.parent.key))if(r(e.parent.node))u.add(t.key);else{var i=!0,c=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);i&&!n&&(i=!1),c||!n&&!a.has(t)||(c=!0)})),i&&o.add(t.key),c&&a.add(t.key),u.add(t.key)}}))}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(i(a,o))}}(s,f,p,c):function(e,t,n,r,o){for(var a=new Set(e),c=new Set(t),u=0;u<=r;u+=1){(n.get(u)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,i=void 0===r?[]:r;a.has(t)||c.has(t)||o(n)||i.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}))}c=new Set;for(var l=new Set,s=r;s>=0;s-=1){(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!l.has(e.parent.key))if(o(e.parent.node))l.add(t.key);else{var r=!0,i=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);r&&!n&&(r=!1),i||!n&&!c.has(t)||(i=!0)})),r||a.delete(t.key),i&&c.add(t.key),l.add(t.key)}}))}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(i(c,a))}}(s,t.halfCheckedKeys,f,p,c);return l};var o=r(n(488));function i(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function a(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t||{},r=n.defaultValue,i=n.value,c=n.onChange,u=n.postState,l=(d=o.useState((function(){return void 0!==i?i:void 0!==r?"function"==typeof r?r():r:"function"==typeof e?e():e})),h=2,function(e){if(Array.isArray(e))return e}(d)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(d,h)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(d,h)||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.")}()),s=l[0],f=l[1],p=void 0!==i?i:s;var d,h;u&&(p=u(p));var v=o.useRef(!0);return o.useEffect((function(){v.current?v.current=!1:void 0===i&&f(i)}),[i]),[p,function(e){f(e),p!==e&&c&&c(e,p)}]};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=s(n(4)),a=s(n(626)),c=s(n(920)),u=n(159),l=s(n(919));function s(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=c.default.Group,y=function(e){var t=o.useContext(u.ConfigContext),n=t.getPopupContainer,r=t.getPrefixCls,s=t.direction,f=e.prefixCls,h=e.type,y=e.disabled,b=e.onClick,g=e.htmlType,O=e.children,w=e.className,j=e.overlay,x=e.trigger,E=e.align,S=e.visible,C=e.onVisibleChange,_=e.placement,P=e.getPopupContainer,k=e.href,M=e.icon,N=void 0===M?o.createElement(a.default,null):M,T=e.title,A=e.buttonsRender,R=v(e,["prefixCls","type","disabled","onClick","htmlType","children","className","overlay","trigger","align","visible","onVisibleChange","placement","getPopupContainer","href","icon","title","buttonsRender"]),D=r("dropdown-button",f),I={align:E,overlay:j,disabled:y,trigger:y?[]:x,onVisibleChange:C,getPopupContainer:P||n};"visible"in e&&(I.visible=S),I.placement="placement"in e?_:"rtl"===s?"bottomLeft":"bottomRight";var L=d(A([o.createElement(c.default,{type:h,disabled:y,onClick:b,htmlType:g,href:k,title:T},O),o.createElement(c.default,{type:h,icon:N})]),2),F=L[0],z=L[1];return o.createElement(m,p({},R,{className:(0,i.default)(D,w)}),F,o.createElement(l.default,I,z))};y.__ANT_BUTTON=!0,y.defaultProps={type:"default",buttonsRender:function(e){return e}};var b=y;t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertLegacyProps=function(e){if("danger"===e)return{danger:!0};return{type:e}},t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==O(e)&&"function"!=typeof e)return{default:e};var t=v();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=h(n(4)),i=h(n(84)),a=h(n(1260)),c=n(159),u=h(n(1262)),l=n(719),s=h(n(490)),f=h(n(619)),p=h(n(1265)),d=n(572);function h(e){return e&&e.__esModule?e:{default:e}}function v(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return v=function(){return e},e}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e,t)||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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},j=/^[\u4e00-\u9fa5]{2}$/,x=j.test.bind(j);function E(e){return"text"===e||"link"===e}function S(e,t){var n=!1,o=[];return r.Children.forEach(e,(function(e){var t=O(e),r="string"===t||"number"===t;if(n&&r){var i=o.length-1,a=o[i];o[i]="".concat(a).concat(e)}else o.push(e);n=r})),r.Children.map(o,(function(e){return function(e,t){if(null!=e){var n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&x(e.props.children)?(0,d.cloneElement)(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?(x(e)&&(e=e.split("").join(n)),r.createElement("span",null,e)):e}}(e,t)}))}(0,l.tuple)("default","primary","ghost","dashed","link","text"),(0,l.tuple)("circle","circle-outline","round"),(0,l.tuple)("submit","button","reset");var C=function(e,t){var n,a,l=e.loading,d=e.prefixCls,h=e.type,v=e.danger,g=e.shape,j=e.size,C=e.className,_=e.children,P=e.icon,k=e.ghost,M=e.block,N=w(e,["loading","prefixCls","type","danger","shape","size","className","children","icon","ghost","block"]),T=r.useContext(f.default),A=b(r.useState(!!l),2),R=A[0],D=A[1],I=b(r.useState(!1),2),L=I[0],F=I[1],z=r.useContext(c.ConfigContext),H=z.getPrefixCls,B=z.autoInsertSpaceInButton,V=z.direction,K=t||r.createRef(),U=r.useRef(),W=function(){return 1===r.Children.count(_)&&!P&&!E(h)};a="object"===O(l)&&l.delay?l.delay||!0:!!l,r.useEffect((function(){clearTimeout(U.current),"number"==typeof a?U.current=window.setTimeout((function(){D(a)}),a):D(a)}),[a]),r.useEffect((function(){!function(){if(K&&K.current&&!1!==B){var e=K.current.textContent;W()&&x(e)?L||F(!0):L&&F(!1)}}()}),[K]);var q=function(t){var n=e.onClick;R||n&&n(t)};(0,s.default)(!("string"==typeof P&&P.length>2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(P,"` at https://ant.design/components/icon")),(0,s.default)(!(k&&E(h)),"Button","`link` or `text` button can't be a `ghost` button.");var G=H("btn",d),$=!1!==B,Y="";switch(j||T){case"large":Y="lg";break;case"small":Y="sm"}var X=R?"loading":P,Z=(0,o.default)(G,C,(y(n={},"".concat(G,"-").concat(h),h),y(n,"".concat(G,"-").concat(g),g),y(n,"".concat(G,"-").concat(Y),Y),y(n,"".concat(G,"-icon-only"),!_&&0!==_&&X),y(n,"".concat(G,"-background-ghost"),k&&!E(h)),y(n,"".concat(G,"-loading"),R),y(n,"".concat(G,"-two-chinese-chars"),L&&$),y(n,"".concat(G,"-block"),M),y(n,"".concat(G,"-dangerous"),!!v),y(n,"".concat(G,"-rtl"),"rtl"===V),n)),J=P&&!R?P:r.createElement(p.default,{existIcon:!!P,prefixCls:G,loading:!!R}),Q=_||0===_?S(_,W()&&$):null,ee=(0,i.default)(N,["htmlType","loading"]);if(void 0!==ee.href)return r.createElement("a",m({},ee,{className:Z,onClick:q,ref:K}),J,Q);var te=N,ne=te.htmlType,re=w(te,["htmlType"]),oe=r.createElement("button",m({},(0,i.default)(re,["loading"]),{type:ne,className:Z,onClick:q,ref:K}),J,Q);return E(h)?oe:r.createElement(u.default,null,oe)},_=r.forwardRef(C);_.displayName="Button",_.defaultProps={loading:!1,ghost:!1,block:!1,htmlType:"button"},_.Group=a.default,_.__ANT_BUTTON=!0;var P=_;t.default=P},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=u(n(4)),a=n(159),c=u(n(1261));function u(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d=function(e){return o.createElement(a.ConfigConsumer,null,(function(t){var n,r=t.getPrefixCls,a=t.direction,u=e.prefixCls,l=e.size,d=e.className,h=p(e,["prefixCls","size","className"]),v=r("btn-group",u),m="";switch(l){case"large":m="lg";break;case"small":m="sm";break;case"middle":case void 0:break;default:console.warn(new c.default(l))}var y=(0,i.default)(v,(f(n={},"".concat(v,"-").concat(m),m),f(n,"".concat(v,"-rtl"),"rtl"===a),n),d);return o.createElement("div",s({},h,{className:y}))}))};t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),new Error("unreachable case: ".concat(JSON.stringify(t)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=n(20),a=l(n(1263)),c=l(n(1264)),u=n(159);function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){return!e||null===e.offsetParent}function O(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(f,e);var t,n,l,s=v(f);function f(){var e;return p(this,f),(e=s.apply(this,arguments)).animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){if(!(!t||g(t)||t.className.indexOf("-leave")>=0)){var o=e.props.insertExtraNode;e.extraNode=document.createElement("div");var i=y(e).extraNode,c=e.context.getPrefixCls;i.className="".concat(c(""),"-click-animating-node");var u=e.getAttributeName();t.setAttribute(u,"true"),r=r||document.createElement("style"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&O(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n&&(e.csp&&e.csp.nonce&&(r.nonce=e.csp.nonce),i.style.borderColor=n,r.innerHTML="\n [".concat(c(""),"-click-animating-without-extra-node='true']::after, .").concat(c(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),document.body.contains(r)||document.body.appendChild(r)),o&&t.appendChild(i),a.default.addStartEventListener(t,e.onTransitionStart),a.default.addEndEventListener(t,e.onTransitionEnd)}},e.onTransitionStart=function(t){if(!e.destroyed){var n=(0,i.findDOMNode)(y(e));t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!g(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),c.default.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=(0,c.default)((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;return e.csp=n,r},e}return t=f,(n=[{key:"componentDidMount",value:function(){var e=(0,i.findDOMNode)(this);e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){if(e&&e!==this.extraNode&&e instanceof Element){var t=this.props.insertExtraNode,n=this.getAttributeName();e.setAttribute(n,"false"),r&&(r.innerHTML=""),t&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),a.default.removeStartEventListener(e,this.onTransitionStart),a.default.removeEndEventListener(e,this.onTransitionEnd)}}},{key:"render",value:function(){return o.createElement(u.ConfigConsumer,null,this.renderWave)}}])&&d(t.prototype,n),l&&d(t,l),f}(o.Component);t.default=w,w.contextType=u.ConfigContext},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},o={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},i=[],a=[];function c(e,t,n){e.addEventListener(t,n,!1)}function u(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var e=document.createElement("div").style;function t(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];for(var i in o)if(i in e){n.push(o[i]);break}}}"AnimationEvent"in window||(delete r.animationstart.animation,delete o.animationend.animation),"TransitionEvent"in window||(delete r.transitionstart.transition,delete o.transitionend.transition),t(r,i),t(o,a)}();var l={startEvents:i,addStartEventListener:function(e,t){0!==i.length?i.forEach((function(n){c(e,n,t)})):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==i.length&&i.forEach((function(n){u(e,n,t)}))},endEvents:a,addEndEventListener:function(e,t){0!==a.length?a.forEach((function(n){c(e,n,t)})):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==a.length&&a.forEach((function(n){u(e,n,t)}))}};t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r,o=(r=n(101))&&r.__esModule?r:{default:r};var i=0,a={};function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=i++,r=t;function c(){(r-=1)<=0?(e(),delete a[n]):a[n]=(0,o.default)(c)}return a[n]=(0,o.default)(c),n}c.cancel=function(e){void 0!==e&&(o.default.cancel(a[e]),delete a[e])},c.ids=a},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prefixCls,n=e.loading,r=e.existIcon,u=!!n;if(r)return o.createElement("span",{className:"".concat(t,"-loading-icon")},o.createElement(c.default,null));return o.createElement(a.default,{visible:u,motionName:"".concat(t,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:s,onAppearActive:f,onEnterStart:s,onEnterActive:f,onLeaveStart:f,onLeaveActive:s},(function(e,n){var r=e.className,a=e.style;return o.createElement("span",{className:"".concat(t,"-loading-icon"),style:a,ref:n},o.createElement(c.default,{className:(0,i.default)(r)}))}))};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=u(n(4)),a=u(n(1266)),c=u(n(174));function u(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}var s=function(){return{width:0,opacity:0,transform:"scale(0)"}},f=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.genCSSMotion=p;var i=s(n(0)),a=s(n(1267)),c=s(n(4)),u=s(n(101)),l=n(1268);function s(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=e,n=!!i.default.forwardRef;function s(e){return!(!e.motionName||!t)}"object"==typeof e&&(t=e.transitionSupport,n="forwardRef"in e?e.forwardRef:n);var p=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.onDomUpdate=function(){var t=e.state,n=t.status,r=t.newStatus,o=e.props,i=o.onAppearStart,a=o.onEnterStart,c=o.onLeaveStart,u=o.onAppearActive,l=o.onEnterActive,f=o.onLeaveActive,p=o.motionAppear,d=o.motionEnter,h=o.motionLeave;if(s(e.props)){var v=e.getElement();e.$cacheEle!==v&&(e.removeEventListener(e.$cacheEle),e.addEventListener(v),e.$cacheEle=v),r&&"appear"===n&&p?e.updateStatus(i,null,null,(function(){e.updateActiveStatus(u,"appear")})):r&&"enter"===n&&d?e.updateStatus(a,null,null,(function(){e.updateActiveStatus(l,"enter")})):r&&"leave"===n&&h&&e.updateStatus(c,null,null,(function(){e.updateActiveStatus(f,"leave")}))}},e.onMotionEnd=function(t){var n=e.state,r=n.status,o=n.statusActive,i=e.props,a=i.onAppearEnd,c=i.onEnterEnd,u=i.onLeaveEnd;"appear"===r&&o?e.updateStatus(a,{status:"none"},t):"enter"===r&&o?e.updateStatus(c,{status:"none"},t):"leave"===r&&o&&e.updateStatus(u,{status:"none"},t)},e.setNodeRef=function(t){var n=e.props.internalRef;e.node=t,"function"==typeof n?n(t):n&&"current"in n&&(n.current=t)},e.getElement=function(){try{return(0,a.default)(e.node||e)}catch(t){return e.$cacheEle}},e.addEventListener=function(t){t&&(t.addEventListener(l.transitionEndName,e.onMotionEnd),t.addEventListener(l.animationEndName,e.onMotionEnd))},e.removeEventListener=function(t){t&&(t.removeEventListener(l.transitionEndName,e.onMotionEnd),t.removeEventListener(l.animationEndName,e.onMotionEnd))},e.updateStatus=function(t,n,o,i){var a=t?t(e.getElement(),o):null;if(!1!==a&&!e._destroyed){var c=void 0;i&&(c=function(){e.nextFrame(i)}),e.setState(r({statusStyle:"object"==typeof a?a:null,newStatus:!1},n),c)}},e.updateActiveStatus=function(t,n){e.nextFrame((function(){if(e.state.status===n){var r=e.props.motionDeadline;e.updateStatus(t,{statusActive:!0}),r>0&&setTimeout((function(){e.onMotionEnd({deadline:!0})}),r)}}))},e.nextFrame=function(t){e.cancelNextFrame(),e.raf=(0,u.default)(t)},e.cancelNextFrame=function(){e.raf&&(u.default.cancel(e.raf),e.raf=null)},e.state={status:"none",statusActive:!1,newStatus:!1,statusStyle:null},e.$cacheEle=null,e.node=null,e.raf=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame()}},{key:"render",value:function(){var e,t=this.state,n=t.status,o=t.statusActive,i=t.statusStyle,a=this.props,u=a.children,p=a.motionName,d=a.visible,h=a.removeOnLeave,v=a.leavedClassName,m=a.eventProps;return u?"none"!==n&&s(this.props)?u(r({},m,{className:(0,c.default)((e={},f(e,(0,l.getTransitionName)(p,n),"none"!==n),f(e,(0,l.getTransitionName)(p,n+"-active"),"none"!==n&&o),f(e,p,"string"==typeof p),e)),style:i}),this.setNodeRef):d?u(r({},m),this.setNodeRef):h?null:u(r({},m,{className:v}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.status;if(!s(e))return{};var o=e.visible,i=e.motionAppear,a=e.motionEnter,c=e.motionLeave,u=e.motionLeaveImmediately,l={prevProps:e};return("appear"===r&&!i||"enter"===r&&!a||"leave"===r&&!c)&&(l.status="none",l.statusActive=!1,l.newStatus=!1),!n&&o&&i&&(l.status="appear",l.statusActive=!1,l.newStatus=!0),n&&!n.visible&&o&&a&&(l.status="enter",l.statusActive=!1,l.newStatus=!0),(n&&n.visible&&!o&&c||!n&&u&&!o&&c)&&(l.status="leave",l.statusActive=!1,l.newStatus=!0),l}}]),t}(i.default.Component);return p.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},n?i.default.forwardRef((function(e,t){return i.default.createElement(p,r({internalRef:t},e))})):p}t.default=p(l.supportTransition)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(e instanceof HTMLElement)return e;return o.default.findDOMNode(e)};var r,o=(r=n(20))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVendorPrefixes=i,t.getVendorPrefixedEventName=l,t.getTransitionName=function(e,t){if(!e)return null;if("object"==typeof e){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return e+"-"+t};var r=!("undefined"==typeof window||!window.document||!window.document.createElement);function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function i(e,t){var n={animationend:o("Animation","AnimationEnd"),transitionend:o("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var a=i(r,"undefined"!=typeof window?window:{}),c={};r&&(c=document.createElement("div").style);var u={};function l(e){if(u[e])return u[e];var t=a[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in c)return u[e]=t[i],u[e]}return""}var s=t.animationEndName=l("animationend"),f=t.transitionEndName=l("transitionend");t.supportTransition=!(!s||!f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=n(370),i=l(n(4)),a=l(n(84)),c=l(n(796)),u=n(572);function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(f,e);var t,n,l,s=m(f);function f(){var e;return d(this,f),(e=s.apply(this,arguments)).onKeyDown=function(t){e.subMenu.onKeyDown(t)},e.saveSubMenu=function(t){e.subMenu=t},e}return t=f,(n=[{key:"renderTitle",value:function(e){var t=this.props,n=t.icon,o=t.title,i=t.level,a=t.rootPrefixCls;if(!n)return e&&1===i&&o&&"string"==typeof o?r.createElement("div",{className:"".concat(a,"-inline-collapsed-noicon")},o.charAt(0)):o;var c=(0,u.isValidElement)(o)&&"span"===o.type;return r.createElement(r.Fragment,null,n,c?o:r.createElement("span",null,o))}},{key:"render",value:function(){var e=this,t=this.props,n=t.rootPrefixCls,u=t.popupClassName;return r.createElement(c.default.Consumer,null,(function(t){var c=t.inlineCollapsed,l=t.antdMenuTheme;return r.createElement(o.SubMenu,p({},(0,a.default)(e.props,["icon"]),{title:e.renderTitle(c),ref:e.saveSubMenu,popupClassName:(0,i.default)(n,"".concat(n,"-").concat(l),u)}))}))}}])&&h(t.prototype,n),l&&h(t,l),f}(r.Component);g.contextType=c.default,g.isSubMenu=1;var O=g;t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=n(370),i=f(n(792)),a=f(n(4)),c=f(n(796)),u=f(n(922)),l=n(923),s=n(572);function f(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(d,e);var t,n,f,p=g(d);function d(){var e;return m(this,d),(e=p.apply(this,arguments)).onKeyDown=function(t){e.menuItem.onKeyDown(t)},e.saveMenuItem=function(t){e.menuItem=t},e.renderItem=function(t){var n=t.siderCollapsed,l=e.props,s=l.level,f=l.className,p=l.children,d=l.rootPrefixCls,m=e.props,y=m.title,b=m.icon,g=m.danger,O=j(m,["title","icon","danger"]);return r.createElement(c.default.Consumer,null,(function(t){var c,l=t.inlineCollapsed,m=t.direction,w=y;void 0===y?w=1===s?p:"":!1===y&&(w="");var j={title:w};n||l||(j.title=null,j.visible=!1);var x=(0,i.default)(p).length;return r.createElement(u.default,h({},j,{placement:"rtl"===m?"left":"right",overlayClassName:"".concat(d,"-inline-collapsed-tooltip")}),r.createElement(o.Item,h({},O,{className:(0,a.default)(f,(c={},v(c,"".concat(d,"-item-danger"),g),v(c,"".concat(d,"-item-only-child"),1===(b?x+1:x)),c)),title:y,ref:e.saveMenuItem}),b,e.renderItemChildren(l)))}))},e}return t=d,(n=[{key:"renderItemChildren",value:function(e){var t=this.props,n=t.icon,o=t.children,i=t.level,a=t.rootPrefixCls;return!n||(0,s.isValidElement)(o)&&"span"===o.type?o&&e&&1===i&&"string"==typeof o?r.createElement("div",{className:"".concat(a,"-inline-collapsed-noicon")},o.charAt(0)):o:r.createElement("span",null,o)}},{key:"render",value:function(){return r.createElement(l.SiderContext.Consumer,null,this.renderItem)}}])&&y(t.prototype,n),f&&y(t,f),d}(r.Component);t.default=x,x.isMenuItem=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOverflowOptions=u,t.default=function(e){var t=e.arrowWidth,n=void 0===t?5:t,i=e.horizontalArrowShift,a=void 0===i?16:i,l=e.verticalArrowShift,s=void 0===l?8:l,f=e.autoAdjustOverflow,p={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(s+n)]},topRight:{points:["br","tc"],offset:[a+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(s+n)]},bottomRight:{points:["tr","bc"],offset:[a+n,4]},rightBottom:{points:["bl","cr"],offset:[4,s+n]},bottomLeft:{points:["tl","bc"],offset:[-(a+n),4]},leftBottom:{points:["br","cl"],offset:[-4,s+n]}};return Object.keys(p).forEach((function(t){p[t]=e.arrowPointAtCenter?o(o({},p[t]),{overflow:u(f),targetOffset:c}):o(o({},r.placements[t]),{overflow:u(f)}),p[t].ignoreShake=!0})),p};var r=n(1272);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i={adjustX:1,adjustY:1},a={adjustX:0,adjustY:0},c=[0,0];function u(e){return"boolean"==typeof e?e?i:a:o(o({},a),e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.placements=void 0;var r={adjustX:1,adjustY:1},o=[0,0],i={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:o}};t.placements=i;var a=i;t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PresetColorTypes=t.PresetStatusColorTypes=void 0;var r=n(719),o=(0,r.tuple)("success","processing","error","default","warning");t.PresetStatusColorTypes=o;var i=(0,r.tuple)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");t.PresetColorTypes=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.LayoutContext=void 0;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=(r=n(4))&&r.__esModule?r:{default:r},a=n(159);function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)||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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},j=o.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function x(e){var t=e.suffixCls,n=e.tagName,r=e.displayName;return function(e){var i;return(i=function(r){m(c,r);var i=b(c);function c(){var r;return d(this,c),(r=i.apply(this,arguments)).renderComponent=function(i){var a=i.getPrefixCls,c=r.props.prefixCls,u=a(t,c);return o.createElement(e,p({prefixCls:u,tagName:n},r.props))},r}return v(c,[{key:"render",value:function(){return o.createElement(a.ConfigConsumer,null,this.renderComponent)}}]),c}(o.Component)).displayName=r,i}}t.LayoutContext=j;var E=function(e){var t=e.prefixCls,n=e.className,r=e.children,a=e.tagName,c=w(e,["prefixCls","className","children","tagName"]),u=(0,i.default)(t,n);return o.createElement(a,p({className:u},c),r)},S=function(e){m(n,e);var t=b(n);function n(){var e;return d(this,n),(e=t.apply(this,arguments)).state={siders:[]},e.renderComponent=function(t){var n,r=t.direction,a=e.props,c=a.prefixCls,u=a.className,l=a.children,s=a.hasSider,d=a.tagName,h=w(a,["prefixCls","className","children","hasSider","tagName"]),v=(0,i.default)(c,(f(n={},"".concat(c,"-has-sider"),"boolean"==typeof s?s:e.state.siders.length>0),f(n,"".concat(c,"-rtl"),"rtl"===r),n),u);return o.createElement(j.Provider,{value:{siderHook:e.getSiderHook()}},o.createElement(d,p({className:v},h),l))},e}return v(n,[{key:"getSiderHook",value:function(){var e=this;return{addSider:function(t){e.setState((function(e){return{siders:[].concat(l(e.siders),[t])}}))},removeSider:function(t){e.setState((function(e){return{siders:e.siders.filter((function(e){return e!==t}))}}))}}}},{key:"render",value:function(){return o.createElement(a.ConfigConsumer,null,this.renderComponent)}}]),n}(o.Component),C=x({suffixCls:"layout",tagName:"section",displayName:"Layout"})(S),_=x({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(E),P=x({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(E),k=x({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(E);C.Header=_,C.Footer=P,C.Content=k;var M=C;t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){return{height:0,opacity:0}},o=function(e){return{height:e.scrollHeight,opacity:1}};function i(e,t){return"height"===t.propertyName}var a={motionName:"ant-motion-collapse",onAppearStart:r,onEnterStart:r,onAppearActive:o,onEnterActive:o,onLeaveStart:function(e){return{height:e.offsetHeight}},onLeaveActive:r,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500};t.default=a},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=f(n(4)),a=f(n(797)),c=n(159),u=f(n(619)),l=n(798),s=n(925);function f(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=o.forwardRef((function(e,t){var n,r=o.useContext(c.ConfigContext),f=r.getPrefixCls,p=r.direction,v=o.useContext(u.default);void 0!==e.value?n=e.value:void 0!==e.defaultValue&&(n=e.defaultValue);var m=h(o.useState(n),2),y=m[0],b=m[1],g=(0,s.usePrevious)(e.value);o.useEffect((function(){void 0===e.value&&g===e.value||b(e.value)}),[e.value]);return o.createElement(l.RadioGroupContextProvider,{value:{onChange:function(t){var n=y,r=t.target.value;"value"in e||b(r);var o=e.onChange;o&&r!==n&&o(t)},value:y,disabled:e.disabled,name:e.name}},function(){var n,r=e.prefixCls,c=e.className,u=void 0===c?"":c,l=e.options,s=e.optionType,h=e.buttonStyle,m=e.disabled,b=e.children,g=e.size,O=e.style,w=e.id,j=e.onMouseEnter,x=e.onMouseLeave,E=f("radio",r),S="".concat(E,"-group"),C=b;if(l&&l.length>0){var _="button"===s?"".concat(E,"-button"):E;C=l.map((function(e){return"string"==typeof e?o.createElement(a.default,{ref:t,key:e,prefixCls:_,disabled:m,value:e,checked:y===e},e):o.createElement(a.default,{ref:t,key:"radio-group-value-options-".concat(e.value),prefixCls:_,disabled:e.disabled||m,value:e.value,checked:y===e.value,style:e.style},e.label)}))}var P=g||v,k=(0,i.default)(S,"".concat(S,"-").concat(h),(d(n={},"".concat(S,"-").concat(P),P),d(n,"".concat(S,"-rtl"),"rtl"===p),n),u);return o.createElement("div",{className:k,style:O,onMouseEnter:j,onMouseLeave:x,id:w},C)}())}));m.defaultProps={buttonStyle:"outline"};var y=o.memo(m);t.default=y},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=u(n(797)),a=n(159),c=u(n(798));function u(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},p=function(e,t){var n=o.useContext(c.default),r=o.useContext(a.ConfigContext).getPrefixCls,u=e.prefixCls,l=f(e,["prefixCls"]),p=r("radio-button",u);return n&&(l.checked=e.value===n.value,l.disabled=e.disabled||n.disabled),o.createElement(i.default,s({prefixCls:p},l,{type:"radio",ref:t}))},d=o.forwardRef(p);t.default=d},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortData=function e(t,n,r){var o=n.slice().sort((function(e,t){return t.multiplePriority-e.multiplePriority})),i=t.slice(),a=o.filter((function(e){var t=e.column.sorter,n=e.sortOrder;return b(t)&&n}));if(!a.length)return i;return i.sort((function(e,t){for(var n=0;n<a.length;n+=1){var r=a[n],o=r.column.sorter,i=r.sortOrder,c=b(o);if(c&&i){var u=c(e,t,i);if(0!==u)return"ascend"===i?u:-u}}return 0})).map((function(t){var o=t[r];return o?p(p({},t),f({},r,e(o,n,r))):t}))},t.default=function(e){var t=e.prefixCls,n=e.mergedColumns,l=e.onSorterChange,s=e.sortDirections,v=e.tableLocale,m=e.showSorterTooltip,b=(S=r.useState(g(n,!0)),C=2,function(e){if(Array.isArray(e))return e}(S)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(S,C)||h(S,C)||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.")}()),O=b[0],j=b[1],x=r.useMemo((function(){var e=!0,t=g(n,!1);if(!t.length)return O;var r=[];function o(t){e?r.push(t):r.push(p(p({},t),{sortOrder:null}))}var i=null;return t.forEach((function(t){null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))})),r}),[n,O]),E=r.useMemo((function(){var e=x.map((function(e){return{column:e.column,order:e.sortOrder}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[x]);var S,C;function _(e){var t;t=!1!==e.multiplePriority&&x.length&&!1!==x[0].multiplePriority?[].concat(d(x.filter((function(t){return t.key!==e.key}))),[e]):[e],j(t),l(w(t),t)}return[function(e){return function e(t,n,l,s,d,h,v,m){return(n||[]).map((function(n,b){var g=(0,u.getColumnPos)(b,m),O=n;if(O.sorter){var w=O.sortDirections||d,j=void 0===O.showSorterTooltip?v:O.showSorterTooltip,x=(0,u.getColumnKey)(O,g),E=l.find((function(e){return e.key===x})),S=E?E.sortOrder:null,C=function(e,t){if(!t)return e[0];return e[e.indexOf(t)+1]}(w,S),_=w.includes("ascend")&&r.createElement(a.default,{className:(0,o.default)("".concat(t,"-column-sorter-up"),{active:"ascend"===S})}),P=w.includes("descend")&&r.createElement(i.default,{className:(0,o.default)("".concat(t,"-column-sorter-down"),{active:"descend"===S})}),k=h||{},M=k.cancelSort,N=k.triggerAsc,T=k.triggerDesc,A=M;"descend"===C?A=T:"ascend"===C&&(A=N),O=p(p({},O),{className:(0,o.default)(O.className,f({},"".concat(t,"-column-sort"),S)),title:function(e){var i=r.createElement("div",{className:"".concat(t,"-column-sorters")},r.createElement("span",null,(0,u.renderColumnTitle)(n.title,e)),r.createElement("span",{className:(0,o.default)("".concat(t,"-column-sorter"),f({},"".concat(t,"-column-sorter-full"),_&&P))},r.createElement("span",{className:"".concat(t,"-column-sorter-inner")},_,P)));return j?r.createElement(c.default,{title:A},r.createElement("div",{className:"".concat(t,"-column-sorters-with-tooltip")},i)):i},onHeaderCell:function(e){var r=n.onHeaderCell&&n.onHeaderCell(e)||{},i=r.onClick;return r.onClick=function(e){s({column:n,key:x,sortOrder:C,multiplePriority:y(n)}),i&&i(e)},r.className=(0,o.default)(r.className,"".concat(t,"-column-has-sorters")),r}})}return"children"in O&&(O=p(p({},O),{children:e(t,O.children,l,s,d,h,v,g)})),O}))}(t,e,x,_,s,v,m)},x,E,function(){return w(x)}]};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=l(n(4)),i=l(n(809)),a=l(n(810)),c=l(n(922)),u=n(799);function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||h(e)||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 h(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e){return"object"===m(e.sorter)&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function b(e){return"function"==typeof e?e:!(!e||"object"!==m(e)||!e.compare)&&e.compare}function g(e,t,n){var r=[];function o(e,t){r.push({column:e,key:(0,u.getColumnKey)(e,t),multiplePriority:y(e),sortOrder:e.sortOrder})}return(e||[]).forEach((function(e,i){var a=(0,u.getColumnPos)(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(d(r),d(g(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:(0,u.getColumnKey)(e,a),multiplePriority:y(e),sortOrder:e.defaultSortOrder}))})),r}function O(e){var t=e.column;return{column:t,order:e.sortOrder,field:t.dataIndex,columnKey:t.key}}function w(e){var t=e.filter((function(e){return e.sortOrder})).map(O);return 0===t.length&&e.length?p(p({},O(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1282)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CaretDownOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"}},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1284)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="CaretUpOutlined";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterData=function(e,t){return t.reduce((function(e,t){var n=t.column,r=n.onFilter,o=n.filters,i=t.filteredKeys;return r&&i&&i.length?e.filter((function(e){return i.some((function(t){var n=function e(t){var n=[];return(t||[]).forEach((function(t){var r=t.value,o=t.children;n.push(r),o&&(n=[].concat(f(n),f(e(o))))})),n}(o),i=n.findIndex((function(e){return String(e)===String(t)})),a=-1!==i?n[i]:t;return r(a,e)}))})):e}),e)},t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=n(799),c=(o=n(1286))&&o.__esModule?o:{default:o};function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||p(e,t)||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 s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||p(e)||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 p(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n){var r=[];return(e||[]).forEach((function(e,o){var i=(0,a.getColumnPos)(o,n);"children"in e?r=[].concat(f(r),f(h(e.children,t,i))):(e.filters||"filterDropdown"in e||"onFilter"in e)&&("filteredValue"in e?r.push({column:e,key:(0,a.getColumnKey)(e,i),filteredKeys:e.filteredValue,forceFiltered:e.filtered}):r.push({column:e,key:(0,a.getColumnKey)(e,i),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered}))})),r}function v(e){var t={};return e.forEach((function(e){var n=e.key,r=e.filteredKeys;t[n]=r||null})),t}var m=function(e){var t=e.prefixCls,n=e.dropdownPrefixCls,r=e.mergedColumns,o=e.onFilterChange,u=e.getPopupContainer,f=e.locale,p=l(i.useState(h(r,!0)),2),d=p[0],m=p[1],y=i.useMemo((function(){var e=h(r,!1);return e.every((function(e){return void 0===e.filteredKeys}))?d:e}),[r,d]),b=i.useCallback((function(){return v(y)}),[y]),g=function(e){var t=y.filter((function(t){return t.key!==e.key}));t.push(e),m(t),o(v(t),t)};return[function(e){return function e(t,n,r,o,u,l,f,p){return r.map((function(r,d){var h=(0,a.getColumnPos)(d,p),v=r.filterMultiple,m=void 0===v||v;if(r.filters||"filterDropdown"in r){var y=(0,a.getColumnKey)(r,h),b=o.find((function(e){var t=e.key;return y===t}));return s(s({},r),{title:function(e){return i.createElement(c.default,{prefixCls:"".concat(t,"-filter"),dropdownPrefixCls:n,column:r,columnKey:y,filterState:b,filterMultiple:m,triggerFilter:u,locale:f,getPopupContainer:l},(0,a.renderColumnTitle)(r.title,e))}})}return"children"in r?s(s({},r),{children:e(t,n,r.children,o,u,l,f,h)}):r}))}(t,n,e,y,g,u,f)},y,b]};t.default=m},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=b();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=y(n(4)),a=y(n(492)),c=y(n(811)),u=y(n(920)),l=y(n(921)),s=y(n(915)),f=y(n(924)),p=y(n(918)),d=y(n(905)),h=y(n(1289)),v=y(n(1290)),m=n(794);function y(e){return e&&e.__esModule?e:{default:e}}function b(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return b=function(){return e},e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var j=l.default.SubMenu,x=l.default.Item;var E=function(e){var t,n=e.prefixCls,r=e.column,y=e.dropdownPrefixCls,b=e.columnKey,w=e.filterMultiple,E=e.filterState,S=e.triggerFilter,C=e.locale,_=e.children,P=e.getPopupContainer,k=r.filterDropdownVisible,M=r.onFilterDropdownVisibleChange,N=O(o.useState(!1),2),T=N[0],A=N[1],R=!(!E||!(null===(t=E.filteredKeys)||void 0===t?void 0:t.length)&&!E.forceFiltered),D=function(e){A(e),M&&M(e)},I="boolean"==typeof k?k:T,L=E&&E.filteredKeys,F=O((0,v.default)(L||[]),2),z=F[0],H=F[1],B=function(e){var t=e.selectedKeys;H(t)};o.useEffect((function(){B({selectedKeys:L||[]})}),[L]);var V=O(o.useState([]),2),K=V[0],U=V[1],W=o.useRef();o.useEffect((function(){return function(){window.clearTimeout(W.current)}}),[]);var q,G=function(e){D(!1);var t=e&&e.length?e:null;return null!==t||E&&E.filteredKeys?(0,a.default)(t,null==E?void 0:E.filteredKeys)?null:void S({column:r,key:b,filteredKeys:t}):null},$=function(){G(z())},Y=function(){H([]),G([])},X=(0,i.default)(g({},"".concat(y,"-menu-without-submenu"),!(r.filters||[]).some((function(e){return e.children}))));if("function"==typeof r.filterDropdown)q=r.filterDropdown({prefixCls:"".concat(y,"-custom"),setSelectedKeys:function(e){return B({selectedKeys:e})},selectedKeys:z(),confirm:$,clearFilters:Y,filters:r.filters,visible:I});else if(r.filterDropdown)q=r.filterDropdown;else{var Z=z()||[];q=o.createElement(o.Fragment,null,o.createElement(l.default,{multiple:w,prefixCls:"".concat(y,"-menu"),className:X,onClick:function(){window.clearTimeout(W.current)},onSelect:B,onDeselect:B,selectedKeys:Z,getPopupContainer:P,openKeys:K,onOpenChange:function(e){W.current=window.setTimeout((function(){U(e)}))}},function e(t){var n=t.filters,r=t.prefixCls,i=t.filteredKeys,a=t.filterMultiple,c=t.locale;return 0===n.length?o.createElement(d.default,{image:d.default.PRESENTED_IMAGE_SIMPLE,description:c.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}}):n.map((function(t,n){var u=String(t.value);if(t.children)return o.createElement(j,{key:u||n,title:t.text,popupClassName:"".concat(r,"-dropdown-submenu")},e({filters:t.children,prefixCls:r,filteredKeys:i,filterMultiple:a,locale:c}));var l=a?s.default:f.default;return o.createElement(x,{key:void 0!==t.value?u:n},o.createElement(l,{checked:i.includes(u)}),o.createElement("span",null,t.text))}))}({filters:r.filters||[],prefixCls:n,filteredKeys:z(),filterMultiple:w,locale:C})),o.createElement("div",{className:"".concat(n,"-dropdown-btns")},o.createElement(u.default,{type:"link",size:"small",disabled:0===Z.length,onClick:Y},C.filterReset),o.createElement(u.default,{type:"primary",size:"small",onClick:$},C.filterConfirm)))}var J,Q=o.createElement(h.default,{className:"".concat(n,"-dropdown")},q);J="function"==typeof r.filterIcon?r.filterIcon(R):r.filterIcon?r.filterIcon:o.createElement(c.default,null);var ee=o.useContext(m.ConfigContext).direction;return o.createElement("div",{className:(0,i.default)("".concat(n,"-column"))},o.createElement("span",{className:"".concat(n,"-column-title")},_),o.createElement("span",{className:(0,i.default)("".concat(n,"-trigger-container"),g({},"".concat(n,"-trigger-container-open"),I)),onClick:function(e){e.stopPropagation()}},o.createElement(p.default,{overlay:Q,trigger:["click"],visible:I,onVisibleChange:function(e){e&&void 0!==L&&H(L||[]),D(e),e||r.filterDropdown||$()},getPopupContainer:P,placement:"rtl"===ee?"bottomLeft":"bottomRight"},o.createElement("span",{role:"button",tabIndex:-1,className:(0,i.default)("".concat(n,"-trigger"),{active:R})},J))))};t.default=E},function(e,t,n){"use strict";var r=n(33),o=n(36);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(0)),a=r(n(1288)),c=r(n(70)),u=function(e,t){return i.createElement(c.default,Object.assign({},e,{ref:t,icon:a.default}))};u.displayName="FilterFilled";var l=i.forwardRef(u);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=function(e){return o.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()}},e.children)};t.default=a},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.useRef(e),n=(r=o.useState(null),i=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(r,i)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(r,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];var r,i;return[function(){return t.current},function(e){t.current=e,n({})}]};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=o?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(0));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[o.useCallback((function(t){return function e(t,n){return t.map((function(t){var r=c({},t);return r.title=(0,i.renderColumnTitle)(t.title,n),"children"in r&&(r.children=e(r.children,n)),r}))}(t,e)}),[e])]};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var c=o?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=n(799);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),a=(o=n(4))&&o.__esModule?o:{default:o};function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e){return function(t){var n,r=t.prefixCls,o=t.onExpand,c=t.record,l=t.expanded,s=t.expandable,f="".concat(r,"-row-expand-icon");return i.createElement("button",{type:"button",onClick:function(e){o(c,e),e.stopPropagation()},className:(0,a.default)(f,(n={},u(n,"".concat(f,"-spaced"),!s),u(n,"".concat(f,"-expanded"),s&&l),u(n,"".concat(f,"-collapsed"),s&&!l),n)),"aria-label":l?e.collapse:e.expand})}};t.default=l},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getContainer,r=void 0===n?function(){return window}:n,o=t.callback,u=t.duration,l=void 0===u?450:u,s=r(),f=(0,a.default)(s,!0),p=Date.now(),d=function t(){var n=Date.now()-p,r=(0,c.easeInOutCubic)(n>l?l:n,f,e,l);(0,a.isWindow)(s)?s.scrollTo(window.pageXOffset,r):s instanceof HTMLDocument||"HTMLDocument"===s.constructor.name?s.documentElement.scrollTop=r:s.scrollTop=r,n<l?(0,i.default)(t):"function"==typeof o&&o()};(0,i.default)(d)};var o,i=(o=n(101))&&o.__esModule?o:{default:o},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(1294)),c=n(1295);function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}},function(e,t,n){"use strict";function r(e){return null!=e&&e===e.window}Object.defineProperty(t,"__esModule",{value:!0}),t.isWindow=r,t.default=function(e,t){if("undefined"==typeof window)return 0;var n=t?"scrollTop":"scrollLeft",o=0;r(e)?o=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?o=e.documentElement[n]:e&&(o=e[n]);e&&!r(e)&&"number"!=typeof o&&(o=(e.ownerDocument||e).documentElement[n]);return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.easeInOutCubic=function(e,t,n,r){var o=n-t;if((e/=r/2)<1)return o/2*e*e*e+t;return o/2*((e-=2)*e*e+2)+t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return null};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return null};t.default=r},function(e,t,n){var r=n(1299)({"&":"&","<":"<",">":">",'"':""","'":"'"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(4),a=n.n(i);function c(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function u(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append(t+"[]",e)})):n.append(t,e.data[t])})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot "+e.method+" "+e.action+" "+t.status+"'",r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),c(t)):e.onSuccess(c(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var l=+new Date,s=0;function f(){return"rc-upload-"+l+"-"+ ++s}var p=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t,n,a=e.trim();return"."===a.charAt(0)?(t=r.toLowerCase(),n=a.toLowerCase(),-1!==t.indexOf(n,t.length-n.length)):/\/\*$/.test(a)?i===a.replace(/\/.*$/,""):o===a}))}return!0};var d=function(e,t,n){var r=function e(r,o){o=o||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var o=Array.prototype.slice.apply(n);r=r.concat(o),!o.length?t(r):e()}))}()}(r,(function(t){t.forEach((function(t){e(t,""+o+r.name+"/")}))}))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var O=function(e){function t(){var e,n,r;b(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={uid:f()},r.reqs={},r.onChange=function(e){var t=e.target.files;r.uploadFiles(t),r.reset()},r.onClick=function(e){var t=r.fileInput;if(t){var n=r.props,o=n.children,i=n.onClick;o&&"button"===o.type&&(t.parentNode.focus(),t.parentNode.querySelector("button").blur()),t.click(),i&&i(e)}},r.onKeyDown=function(e){"Enter"===e.key&&r.onClick()},r.onFileDrop=function(e){var t=r.props.multiple;if(e.preventDefault(),"dragover"!==e.type)if(r.props.directory)d(Array.prototype.slice.call(e.dataTransfer.items),r.uploadFiles,(function(e){return p(e,r.props.accept)}));else{var n=Array.prototype.slice.call(e.dataTransfer.files).filter((function(e){return p(e,r.props.accept)}));!1===t&&(n=n.slice(0,1)),r.uploadFiles(n)}},r.uploadFiles=function(e){var t=Array.prototype.slice.call(e);t.map((function(e){return e.uid=f(),e})).forEach((function(e){r.upload(e,t)}))},r.saveFileInput=function(e){r.fileInput=e},g(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),m(t,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(e,t){var n=this,r=this.props;if(!r.beforeUpload)return setTimeout((function(){return n.post(e)}),0);var o=r.beforeUpload(e,t);o&&o.then?o.then((function(t){var r=Object.prototype.toString.call(t);return"[object File]"===r||"[object Blob]"===r?n.post(t):n.post(e)})).catch((function(e){console.log(e)})):!1!==o&&setTimeout((function(){return n.post(e)}),0)}},{key:"post",value:function(e){var t=this;if(this._isMounted){var n=this.props,r=n.onStart,o=n.onProgress,i=n.transformFile,a=void 0===i?function(e){return e}:i;new Promise((function(t){var r=n.action;return"function"==typeof r&&(r=r(e)),t(r)})).then((function(i){var c=e.uid,l=n.customRequest||u;Promise.resolve(a(e)).then((function(e){var t=n.data;return"function"==typeof t&&(t=t(e)),Promise.all([e,t])})).catch((function(e){console.error(e)})).then((function(a){var u=v(a,2),s=u[0],f=u[1],p={action:i,filename:n.name,data:f,file:s,headers:n.headers,withCredentials:n.withCredentials,method:n.method||"post",onProgress:o?function(t){o(t,e)}:null,onSuccess:function(r,o){delete t.reqs[c],n.onSuccess(r,e,o)},onError:function(r,o){delete t.reqs[c],n.onError(r,o,e)}};t.reqs[c]=l(p),r(e)}))}))}}},{key:"reset",value:function(){this.setState({uid:f()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e;e&&e.uid&&(n=e.uid),t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e,t,n=this.props,r=n.component,i=n.prefixCls,c=n.className,u=n.disabled,l=n.id,s=n.style,f=n.multiple,p=n.accept,d=n.children,v=n.directory,m=n.openFileDialogOnClick,b=n.onMouseEnter,g=n.onMouseLeave,O=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),w=a()((y(e={},i,!0),y(e,i+"-disabled",u),y(e,c,c),e)),j=u?{}:{onClick:m?this.onClick:function(){},onKeyDown:m?this.onKeyDown:function(){},onMouseEnter:b,onMouseLeave:g,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return o.a.createElement(r,h({},j,{className:w,role:"button",style:s}),o.a.createElement("input",h({},(t=O,Object.keys(t).reduce((function(e,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(e[n]=t[n]),e}),{})),{id:l,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:p,directory:v?"directory":null,webkitdirectory:v?"webkitdirectory":null,multiple:f,onChange:this.onChange})),d)}}]),t}(r.Component),w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function S(){}var C=function(e){function t(){var e,n,r;x(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=E(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.saveUploader=function(e){r.uploader=e},E(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),j(t,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return o.a.createElement(O,w({},this.props,{ref:this.saveUploader}))}}]),t}(r.Component);C.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:S,onError:S,onSuccess:S,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var _=C,P=n(506),k=n(174),M=n.n(k),N=n(952),T=n.n(N),A=n(950),R=n.n(A),D=n(951),I=n.n(D),L=n(743),F=n.n(L),z=n(953),H=n.n(z),B=n(748),V=n.n(B),K=n(102);function U(){return(U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function W(e){return U(U({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function q(e,t){var n=void 0!==e.uid?"uid":"name";return t.filter((function(t){return t[n]===e[n]}))[0]}var G=function(e){return 0===e.indexOf("image/")};var $=n(309),Y=n(84),X=n(219),Z=n.n(X),J=n(529),Q=n.n(J),ee=n(527),te=n.n(ee),ne=n(305),re=n.n(ne),oe=n(190),ie=n(171),ae=n(86);function ce(e){return!e||e<0?0:e>100?100:e}function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var le=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},se=function(e){var t,n,r=e.from,o=void 0===r?"#1890ff":r,i=e.to,a=void 0===i?"#1890ff":i,c=e.direction,u=void 0===c?"to right":c,l=le(e,["from","to","direction"]);if(0!==Object.keys(l).length){var s=(t=l,n=[],Object.keys(t).forEach((function(e){var r=parseFloat(e.replace(/%/g,""));isNaN(r)||n.push({key:r,value:t[e]})})),(n=n.sort((function(e,t){return e.key-t.key}))).map((function(e){var t=e.key,n=e.value;return"".concat(n," ").concat(t,"%")})).join(", "));return{backgroundImage:"linear-gradient(".concat(u,", ").concat(s,")")}}return{backgroundImage:"linear-gradient(".concat(u,", ").concat(o,", ").concat(a,")")}},fe=function(e){var t,n,o,i,a=e.prefixCls,c=e.percent,u=e.strokeWidth,l=e.size,s=e.strokeColor,f=e.strokeLinecap,p=e.children,d=e.trailColor,h=e.success;t=s&&"string"!=typeof s?se(s):{background:s},d&&"string"==typeof d&&(n={backgroundColor:d}),h&&"strokeColor"in h&&(o=h.strokeColor),o&&"string"==typeof o&&(i={backgroundColor:o});var v=ue({width:"".concat(ce(c),"%"),height:u||("small"===l?6:8),borderRadius:"square"===f?0:""},t),m=e.successPercent;h&&"progress"in h&&(m=h.progress),h&&"percent"in h&&(m=h.percent);var y={width:"".concat(ce(m),"%"),height:u||("small"===l?6:8),borderRadius:"square"===f?0:""};i&&(y=ue(ue({},y),i));var b=void 0!==m?r.createElement("div",{className:"".concat(a,"-success-bg"),style:y}):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(a,"-outer")},r.createElement("div",{className:"".concat(a,"-inner"),style:n},r.createElement("div",{className:"".concat(a,"-bg"),style:v}),b)),p)},pe={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},de=function(e){var t=e.map((function(){return Object(r.useRef)()})),n=Object(r.useRef)();return Object(r.useEffect)((function(){var e=Date.now(),r=!1;Object.keys(t).forEach((function(o){var i=t[o].current;if(i){r=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&e-n.current<100&&(a.transitionDuration="0s, 0s")}})),r&&(n.current=Date.now())})),[t]};function he(){return(he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return me(e,t)}(e,t)||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 me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ye(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var be=function(e){var t=e.className,n=e.percent,r=e.prefixCls,i=e.strokeColor,c=e.strokeLinecap,u=e.strokeWidth,l=e.style,s=e.trailColor,f=e.trailWidth,p=e.transition,d=ye(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete d.gapPosition;var h=Array.isArray(n)?n:[n],v=Array.isArray(i)?i:[i],m=ve(de(h),1)[0],y=u/2,b=100-u/2,g="M ".concat("round"===c?y:0,",").concat(y,"\n L ").concat("round"===c?b:100,",").concat(y),O="0 0 100 ".concat(u),w=0;return o.a.createElement("svg",he({className:a()("".concat(r,"-line"),t),viewBox:O,preserveAspectRatio:"none",style:l},d),o.a.createElement("path",{className:"".concat(r,"-line-trail"),d:g,strokeLinecap:c,stroke:s,strokeWidth:f||u,fillOpacity:"0"}),h.map((function(e,t){var n={strokeDasharray:"".concat(e,"px, 100px"),strokeDashoffset:"-".concat(w,"px"),transition:p||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},i=v[t]||v[v.length-1];return w+=e,o.a.createElement("path",{key:t,className:"".concat(r,"-line-path"),d:g,strokeLinecap:c,stroke:i,strokeWidth:u,fillOpacity:"0",ref:m[t],style:n})})))};be.defaultProps=pe;function ge(){return(ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return we(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return we(e,t)}(e,t)||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 we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function je(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var xe=0;function Ee(e){return+e.replace("%","")}function Se(e){return Array.isArray(e)?e:[e]}function Ce(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=50-r/2,c=0,u=-a,l=0,s=-2*a;switch(i){case"left":c=-a,u=0,l=2*a,s=0;break;case"right":c=a,u=0,l=-2*a,s=0;break;case"bottom":u=a,s=2*a}var f="M 50,50 m ".concat(c,",").concat(u,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(l,",").concat(-s,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(-l,",").concat(s),p=2*Math.PI*a,d={stroke:n,strokeDasharray:"".concat(t/100*(p-o),"px ").concat(p,"px"),strokeDashoffset:"-".concat(o/2+e/100*(p-o),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:f,pathStyle:d}}var _e=function(e){var t,n=e.prefixCls,i=e.strokeWidth,c=e.trailWidth,u=e.gapDegree,l=e.gapPosition,s=e.trailColor,f=e.strokeLinecap,p=e.style,d=e.className,h=e.strokeColor,v=e.percent,m=je(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),y=Object(r.useMemo)((function(){return xe+=1}),[]),b=Ce(0,100,s,i,u,l),g=b.pathString,O=b.pathStyle,w=Se(v),j=Se(h),x=j.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),E=Oe(de(w),1)[0];return o.a.createElement("svg",ge({className:a()("".concat(n,"-circle"),d),viewBox:"0 0 100 100",style:p},m),x&&o.a.createElement("defs",null,o.a.createElement("linearGradient",{id:"".concat(n,"-gradient-").concat(y),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(x).sort((function(e,t){return Ee(e)-Ee(t)})).map((function(e,t){return o.a.createElement("stop",{key:t,offset:e,stopColor:x[e]})})))),o.a.createElement("path",{className:"".concat(n,"-circle-trail"),d:g,stroke:s,strokeLinecap:f,strokeWidth:c||i,fillOpacity:"0",style:O}),(t=0,w.map((function(e,r){var a=j[r]||j[j.length-1],c="[object Object]"===Object.prototype.toString.call(a)?"url(#".concat(n,"-gradient-").concat(y,")"):"",s=Ce(t,e,a,i,u,l);return t+=e,o.a.createElement("path",{key:r,className:"".concat(n,"-circle-path"),d:s.pathString,stroke:c,strokeLinecap:f,strokeWidth:i,opacity:0===e?0:1,fillOpacity:"0",style:s.pathStyle,ref:E[r]})}))).reverse())};_e.defaultProps=pe;var Pe=_e;function ke(e){var t=e.percent,n=e.success,r=e.successPercent,o=ce(t);if(n&&"progress"in n&&(r=n.progress),n&&"percent"in n&&(r=n.percent),!r)return o;var i=ce(r);return[r,ce(o-i)]}var Me=function(e){var t,n=e.prefixCls,o=e.width,i=e.strokeWidth,c=e.trailColor,u=e.strokeLinecap,l=e.gapPosition,s=e.gapDegree,f=e.type,p=e.children,d=o||120,h={width:d,height:d,fontSize:.15*d+6},v=i||6,m=l||"dashboard"===f&&"bottom"||"top";s||0===s?t=s:"dashboard"===f&&(t=75);var y,b,g,O=function(e){var t=e.success,n=e.strokeColor,r=e.successPercent,o=n||null;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r?[null,o]:o}(e),w="[object Object]"===Object.prototype.toString.call(O),j=a()("".concat(n,"-inner"),(y={},b="".concat(n,"-circle-gradient"),g=w,b in y?Object.defineProperty(y,b,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[b]=g,y));return r.createElement("div",{className:j,style:h},r.createElement(Pe,{percent:ke(e),strokeWidth:v,trailWidth:v,strokeColor:O,strokeLinecap:u,trailColor:c,prefixCls:n,gapDegree:t,gapPosition:m}),p)};var Ne=function(e){for(var t,n,o,i=e.size,c=e.steps,u=e.percent,l=void 0===u?0:u,s=e.strokeWidth,f=void 0===s?8:s,p=e.strokeColor,d=e.prefixCls,h=e.children,v=Math.floor(c*(l/100)),m="small"===i?2:14,y=[],b=0;b<c;b+=1)y.push(r.createElement("div",{key:b,className:a()("".concat(d,"-steps-item"),(t={},n="".concat(d,"-steps-item-active"),o=b<=v-1,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t)),style:{backgroundColor:b<=v-1?p:void 0,width:m,height:f}}));return r.createElement("div",{className:"".concat(d,"-steps-outer")},y,h)};function Te(e){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(){return(Re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Le(e,t){return(Le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Be(e);if(t){var o=Be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ze(this,n)}}function ze(e,t){return!t||"object"!==Te(t)&&"function"!=typeof t?He(e):t}function He(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Ke=(Object(ie.a)("line","circle","dashboard"),Object(ie.a)("normal","exception","active","success")),Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Le(e,t)}(c,e);var t,n,o,i=Fe(c);function c(){var e;return De(this,c),(e=i.apply(this,arguments)).renderProgress=function(t){var n,o,i=t.getPrefixCls,c=t.direction,u=He(e).props,l=u.prefixCls,s=u.className,f=u.size,p=u.type,d=u.steps,h=u.showInfo,v=u.strokeColor,m=Ve(u,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),y=i("progress",l),b=e.getProgressStatus(),g=e.renderProcessInfo(y,b);Object(ae.a)(!("successPercent"in u),"Progress","`successPercent` is deprecated. Please use `success` instead."),"line"===p?o=d?r.createElement(Ne,Re({},e.props,{strokeColor:"string"==typeof v?v:void 0,prefixCls:y,steps:d}),g):r.createElement(fe,Re({},e.props,{prefixCls:y}),g):"circle"!==p&&"dashboard"!==p||(o=r.createElement(Me,Re({},e.props,{prefixCls:y,progressStatus:b}),g));var O=a()(y,(Ae(n={},"".concat(y,"-").concat(("dashboard"===p?"circle":d&&"steps")||p),!0),Ae(n,"".concat(y,"-status-").concat(b),!0),Ae(n,"".concat(y,"-show-info"),h),Ae(n,"".concat(y,"-").concat(f),f),Ae(n,"".concat(y,"-rtl"),"rtl"===c),n),s);return r.createElement("div",Re({},Object(Y.default)(m,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:O}),o)},e}return t=c,(n=[{key:"getPercentNumber",value:function(){var e=this.props,t=e.percent,n=void 0===t?0:t,r=e.success,o=this.props.successPercent;return r&&"progress"in r&&(o=r.progress),r&&"percent"in r&&(o=r.percent),parseInt(void 0!==o?o.toString():n.toString(),10)}},{key:"getProgressStatus",value:function(){var e=this.props.status;return Ke.indexOf(e)<0&&this.getPercentNumber()>=100?"success":e||"normal"}},{key:"renderProcessInfo",value:function(e,t){var n,o=this.props,i=o.showInfo,a=o.format,c=o.type,u=o.percent,l=o.success,s=this.props.successPercent;if(l&&"progress"in l&&(Object(ae.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),s=l.progress),l&&"percent"in l&&(s=l.percent),!i)return null;var f="line"===c;return a||"exception"!==t&&"success"!==t?n=(a||function(e){return"".concat(e,"%")})(ce(u),ce(s)):"exception"===t?n=f?r.createElement(re.a,null):r.createElement(Z.a,null):"success"===t&&(n=f?r.createElement(te.a,null):r.createElement(Q.a,null)),r.createElement("span",{className:"".concat(e,"-text"),title:"string"==typeof n?n:void 0},n)}},{key:"render",value:function(){return r.createElement(oe.a,null,this.renderProgress)}}])&&Ie(t.prototype,n),o&&Ie(t,o),c}(r.Component);Ue.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var We=Ue,qe=n(82);function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(){return(Ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,t){return(Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tt(e);if(t){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return et(this,n)}}function et(e,t){return!t||"object"!==Ge(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tt(e){return(tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Je(e,t)}(c,e);var t,n,o,i=Qe(c);function c(){var e;return Xe(this,c),(e=i.apply(this,arguments)).handlePreview=function(t,n){var r=e.props.onPreview;if(r)return n.preventDefault(),r(t)},e.handleDownload=function(t){var n=e.props.onDownload;"function"==typeof n?n(t):t.url&&window.open(t.url)},e.handleClose=function(t){var n=e.props.onRemove;n&&n(t)},e.handleIconRender=function(t){var n=e.props,o=n.listType,i=n.locale,a=n.iconRender,c=n.isImageUrl;if(a)return a(t,o);var u="uploading"===t.status,l=c&&c(t)?r.createElement(R.a,null):r.createElement(I.a,null),s=u?r.createElement(M.a,null):r.createElement(T.a,null);return"picture"===o?s=u?r.createElement(M.a,null):l:"picture-card"===o&&(s=u?i.uploading:l),s},e.handleActionIconRender=function(e,t,n,o){var i={type:"text",size:"small",title:o,onClick:function(n){t(),Object(K.b)(e)&&e.props.onClick&&e.props.onClick(n)},className:"".concat(n,"-list-item-card-actions-btn")};if(Object(K.b)(e)){var a=Object(K.a)(e,Ye(Ye({},e.props),{onClick:function(){}}));return r.createElement(qe.a,Ye({},i,{icon:a}))}return r.createElement(qe.a,i,r.createElement("span",null,e))},e.renderUploadList=function(t){var n,o=t.getPrefixCls,i=t.direction,c=e.props,u=c.prefixCls,l=c.items,s=void 0===l?[]:l,f=c.listType,p=c.showPreviewIcon,d=c.showRemoveIcon,h=c.showDownloadIcon,v=c.removeIcon,m=c.downloadIcon,y=c.locale,b=c.progress,g=c.isImageUrl,O=o("upload",u),w=s.map((function(t){var n,o,i,c=e.handleIconRender(t),u=r.createElement("div",{className:"".concat(O,"-text-icon")},c);if("picture"===f||"picture-card"===f)if("uploading"===t.status||!t.thumbUrl&&!t.url){var l,s=a()(($e(l={},"".concat(O,"-list-item-thumbnail"),!0),$e(l,"".concat(O,"-list-item-file"),"uploading"!==t.status),l));u=r.createElement("div",{className:s},c)}else{var w,j=g&&g(t)?r.createElement("img",{src:t.thumbUrl||t.url,alt:t.name,className:"".concat(O,"-list-item-image")}):c,x=a()(($e(w={},"".concat(O,"-list-item-thumbnail"),!0),$e(w,"".concat(O,"-list-item-file"),g&&!g(t)),w));u=r.createElement("a",{className:x,onClick:function(n){return e.handlePreview(t,n)},href:t.url||t.thumbUrl,target:"_blank",rel:"noopener noreferrer"},j)}if("uploading"===t.status){var E="percent"in t?r.createElement(We,Ye({},b,{type:"line",percent:t.percent})):null;i=r.createElement("div",{className:"".concat(O,"-list-item-progress"),key:"progress"},E)}var S,C=a()(($e(n={},"".concat(O,"-list-item"),!0),$e(n,"".concat(O,"-list-item-").concat(t.status),!0),$e(n,"".concat(O,"-list-item-list-type-").concat(f),!0),n)),_="string"==typeof t.linkProps?JSON.parse(t.linkProps):t.linkProps,k=d?e.handleActionIconRender(v||r.createElement(H.a,null),(function(){return e.handleClose(t)}),O,y.removeFile):null,M=h&&"done"===t.status?e.handleActionIconRender(m||r.createElement(V.a,null),(function(){return e.handleDownload(t)}),O,y.downloadFile):null,N="picture-card"!==f&&r.createElement("span",{key:"download-delete",className:"".concat(O,"-list-item-card-actions ").concat("picture"===f?"picture":"")},M,k),T=a()(($e(o={},"".concat(O,"-list-item-name"),!0),$e(o,"".concat(O,"-list-item-name-icon-count-").concat([M,k].filter((function(e){return e})).length),!0),o)),A=t.url?[r.createElement("a",Ye({key:"view",target:"_blank",rel:"noopener noreferrer",className:T,title:t.name},_,{href:t.url,onClick:function(n){return e.handlePreview(t,n)}}),t.name),N]:[r.createElement("span",{key:"view",className:T,onClick:function(n){return e.handlePreview(t,n)},title:t.name},t.name),N],R=p?r.createElement("a",{href:t.url||t.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:t.url||t.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(n){return e.handlePreview(t,n)},title:y.previewFile},r.createElement(F.a,null)):null,D="picture-card"===f&&"uploading"!==t.status&&r.createElement("span",{className:"".concat(O,"-list-item-actions")},R,"done"===t.status&&M,k);S=t.response&&"string"==typeof t.response?t.response:t.error&&t.error.statusText||y.uploadError;var I=r.createElement("span",null,u,A),L=r.createElement("div",{className:C},r.createElement("div",{className:"".concat(O,"-list-item-info")},I),D,r.createElement(P.a,{transitionName:"fade",component:""},i)),z=a()($e({},"".concat(O,"-list-picture-card-container"),"picture-card"===f));return r.createElement("div",{key:t.uid,className:z},"error"===t.status?r.createElement($.a,{title:S,getPopupContainer:function(e){return e.parentNode}},L):r.createElement("span",null,L))})),j=a()(($e(n={},"".concat(O,"-list"),!0),$e(n,"".concat(O,"-list-").concat(f),!0),$e(n,"".concat(O,"-list-rtl"),"rtl"===i),n)),x="picture-card"===f?"animate-inline":"animate";return r.createElement(P.a,{transitionName:"".concat(O,"-").concat(x),component:"div",className:j},w)},e}return t=c,(n=[{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.listType,r=t.items,o=t.previewFile;"picture"!==n&&"picture-card"!==n||(r||[]).forEach((function(t){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(t.thumbUrl="",o&&o(t.originFileObj).then((function(n){t.thumbUrl=n||"",e.forceUpdate()})))}))}},{key:"render",value:function(){return r.createElement(oe.a,null,this.renderUploadList)}}])&&Ze(t.prototype,n),o&&Ze(t,o),c}(r.Component);nt.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(e){return new Promise((function(t){if(e.type&&G(e.type)){var n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var r=n.getContext("2d"),o=new Image;o.onload=function(){var e=o.width,i=o.height,a=200,c=200,u=0,l=0;e<i?l=-((c=i*(200/e))-a)/2:u=-((a=e*(200/i))-c)/2,r.drawImage(o,u,l,a,c);var s=n.toDataURL();document.body.removeChild(n),t(s)},o.src=window.URL.createObjectURL(e)}else t("")}))},isImageUrl:function(e){if(e.type)return G(e.type);var t=e.thumbUrl||e.url,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),n=t[t.length-1],r=n.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n}};var rt=n(307),ot=n(372);function it(e){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ct(e){return function(e){if(Array.isArray(e))return ut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ut(e,t)}(e)||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 ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lt(){return(lt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function st(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ft(e,t){return(ft=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ht(e);if(t){var o=ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dt(this,n)}}function dt(e,t){return!t||"object"!==it(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ft(e,t)}(c,e);var t,n,o,i=pt(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,e)).saveUpload=function(e){t.upload=e},t.onStart=function(e){var n=t.state.fileList,r=W(e);r.status="uploading";var o=n.concat(),i=o.findIndex((function(e){return e.uid===r.uid}));-1===i?o.push(r):o[i]=r,t.onChange({file:r,fileList:o})},t.onSuccess=function(e,n,r){t.clearProgressTimer();try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}var o=t.state.fileList,i=q(n,o);i&&(i.status="done",i.response=e,i.xhr=r,t.onChange({file:lt({},i),fileList:o}))},t.onProgress=function(e,n){var r=t.state.fileList,o=q(n,r);o&&(o.percent=e.percent,t.onChange({event:e,file:lt({},o),fileList:r}))},t.onError=function(e,n,r){t.clearProgressTimer();var o=t.state.fileList,i=q(r,o);i&&(i.error=e,i.response=n,i.status="error",t.onChange({file:lt({},i),fileList:o}))},t.handleRemove=function(e){var n=t.props.onRemove,r=t.state.fileList;Promise.resolve("function"==typeof n?n(e):n).then((function(n){if(!1!==n){var o=function(e,t){var n=void 0!==e.uid?"uid":"name",r=t.filter((function(t){return t[n]!==e[n]}));return r.length===t.length?null:r}(e,r);o&&(e.status="removed",t.upload&&t.upload.abort(e),t.onChange({file:e,fileList:o}))}}))},t.onChange=function(e){"fileList"in t.props||t.setState({fileList:e.fileList});var n=t.props.onChange;n&&n(lt(lt({},e),{fileList:ct(e.fileList)}))},t.onFileDrop=function(e){t.setState({dragState:e.type})},t.beforeUpload=function(e,n){var r=t.props.beforeUpload,o=t.state.fileList;if(!r)return!0;var i=r(e,n);if(!1===i){var a=[];return o.concat(n.map(W)).forEach((function(e){a.every((function(t){return t.uid!==e.uid}))&&a.push(e)})),t.onChange({file:e,fileList:a}),!1}return!i||!i.then||i},t.renderUploadList=function(e){var n=t.props,o=n.showUploadList,i=n.listType,a=n.onPreview,c=n.onDownload,u=n.previewFile,l=n.disabled,s=n.locale,f=n.iconRender,p=n.isImageUrl,d=n.progress,h=o.showRemoveIcon,v=o.showPreviewIcon,m=o.showDownloadIcon,y=o.removeIcon,b=o.downloadIcon,g=t.state.fileList;return r.createElement(nt,{listType:i,items:g,previewFile:u,onPreview:a,onDownload:c,onRemove:t.handleRemove,showRemoveIcon:!l&&h,showPreviewIcon:v,showDownloadIcon:m,removeIcon:y,downloadIcon:b,iconRender:f,locale:lt(lt({},e),s),isImageUrl:p,progress:d})},t.renderUpload=function(e){var n,o=e.getPrefixCls,i=e.direction,c=t.props,u=c.prefixCls,l=c.className,s=c.showUploadList,f=c.listType,p=c.type,d=c.disabled,h=c.children,v=c.style,m=t.state,y=m.fileList,b=m.dragState,g=o("upload",u),O=lt(lt({onStart:t.onStart,onError:t.onError,onProgress:t.onProgress,onSuccess:t.onSuccess},t.props),{prefixCls:g,beforeUpload:t.beforeUpload});delete O.className,delete O.style,h&&!d||delete O.id;var w=s?r.createElement(rt.a,{componentName:"Upload",defaultLocale:ot.a.Upload},t.renderUploadList):null;if("drag"===p){var j,x=a()(g,(at(j={},"".concat(g,"-drag"),!0),at(j,"".concat(g,"-drag-uploading"),y.some((function(e){return"uploading"===e.status}))),at(j,"".concat(g,"-drag-hover"),"dragover"===b),at(j,"".concat(g,"-disabled"),d),at(j,"".concat(g,"-rtl"),"rtl"===i),j),l);return r.createElement("span",null,r.createElement("div",{className:x,onDrop:t.onFileDrop,onDragOver:t.onFileDrop,onDragLeave:t.onFileDrop,style:v},r.createElement(_,lt({},O,{ref:t.saveUpload,className:"".concat(g,"-btn")}),r.createElement("div",{className:"".concat(g,"-drag-container")},h))),w)}var E=a()(g,(at(n={},"".concat(g,"-select"),!0),at(n,"".concat(g,"-select-").concat(f),!0),at(n,"".concat(g,"-disabled"),d),at(n,"".concat(g,"-rtl"),"rtl"===i),n)),S=r.createElement("div",{className:E,style:h?void 0:{display:"none"}},r.createElement(_,lt({},O,{ref:t.saveUpload})));return"picture-card"===f?r.createElement("span",{className:a()(l,"".concat(g,"-picture-card-wrapper"))},w,S):r.createElement("span",{className:l},S,w)},t.state={fileList:e.fileList||e.defaultFileList||[],dragState:"drop"},Object(ae.a)("fileList"in e||!("value"in e),"Upload","`value` is not a valid prop, do you mean `fileList`?"),t}return t=c,o=[{key:"getDerivedStateFromProps",value:function(e){return"fileList"in e?{fileList:e.fileList||[]}:null}}],(n=[{key:"componentWillUnmount",value:function(){this.clearProgressTimer()}},{key:"clearProgressTimer",value:function(){clearInterval(this.progressTimer)}},{key:"render",value:function(){return r.createElement(oe.a,null,this.renderUpload)}}])&&st(t.prototype,n),o&&st(t,o),c}(r.Component);vt.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:function(){return!0},showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var mt=vt;function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bt(){return(bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wt(e,t){return(wt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Et(e);if(t){var o=Et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xt(this,n)}}function xt(e,t){return!t||"object"!==yt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Et(e){return(Et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var St=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Ct=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wt(e,t)}(a,e);var t,n,o,i=jt(a);function a(){return gt(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.style,n=e.height,o=St(e,["style","height"]);return r.createElement(mt,bt({},o,{type:"drag",style:bt(bt({},t),{height:n})}))}}])&&Ot(t.prototype,n),o&&Ot(t,o),a}(r.Component);mt.Dragger=Ct;t.a=mt},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(84),c=n(190);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},s=function(e){return r.createElement(c.a,null,(function(t){var n,o,a,c=t.getPrefixCls,s=e.prefixCls,f=e.className,p=e.hoverable,d=void 0===p||p,h=l(e,["prefixCls","className","hoverable"]),v=c("card",s),m=i()("".concat(v,"-grid"),f,(n={},o="".concat(v,"-grid-hoverable"),a=d,o in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n));return r.createElement("div",u({},h,{className:m}))}))};function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d=function(e){return r.createElement(c.a,null,(function(t){var n=t.getPrefixCls,o=e.prefixCls,a=e.className,c=e.avatar,u=e.title,l=e.description,s=p(e,["prefixCls","className","avatar","title","description"]),d=n("card",o),h=i()("".concat(d,"-meta"),a),v=c?r.createElement("div",{className:"".concat(d,"-meta-avatar")},c):null,m=u?r.createElement("div",{className:"".concat(d,"-meta-title")},u):null,y=l?r.createElement("div",{className:"".concat(d,"-meta-description")},l):null,b=m||y?r.createElement("div",{className:"".concat(d,"-meta-detail")},m,y):null;return r.createElement("div",f({},s,{className:h}),v,b)}))},h=n(28),v=n(72),m=n(6),y=n(204),b=n(387),g=n(31),O=n(101),w=n.n(O),j=n(237);function x(e){var t=Object(r.useRef)(),n=Object(r.useRef)(!1);return Object(r.useEffect)((function(){return function(){n.current=!0,w.a.cancel(t.current)}}),[]),function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];n.current||(w.a.cancel(t.current),t.current=w()((function(){e.apply(void 0,o)})))}}var E=n(37);var S=r.forwardRef((function(e,t){var n,o=e.prefixCls,a=e.id,c=e.active,u=e.rtl,l=e.tab,s=l.key,f=l.tab,p=l.disabled,d=l.closeIcon,h=e.tabBarGutter,v=e.tabPosition,y=e.closable,b=e.renderWrapper,g=e.removeAriaLabel,O=e.editable,w=e.onClick,j=e.onRemove,x=e.onFocus,S="".concat(o,"-tab");r.useEffect((function(){return j}),[]);var C={};"top"===v||"bottom"===v?C[u?"marginLeft":"marginRight"]=h:C.marginBottom=h;var _=O&&!1!==y&&!p;function P(e){p||w(e)}var k=r.createElement("div",{key:s,ref:t,className:i()(S,(n={},Object(m.a)(n,"".concat(S,"-with-remove"),_),Object(m.a)(n,"".concat(S,"-active"),c),Object(m.a)(n,"".concat(S,"-disabled"),p),n)),style:C,onClick:P},r.createElement("div",{role:"tab","aria-selected":c,id:a&&"".concat(a,"-tab-").concat(s),className:"".concat(S,"-btn"),"aria-controls":a&&"".concat(a,"-panel-").concat(s),"aria-disabled":p,tabIndex:p?null:0,onClick:function(e){e.stopPropagation(),P(e)},onKeyDown:function(e){[E.a.SPACE,E.a.ENTER].includes(e.which)&&(e.preventDefault(),P(e))},onFocus:x},f),_&&r.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(S,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),O.onEdit("remove",{key:s,event:t})}},d||O.removeIcon||"×"));return b&&(k=b(k)),k}));function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){Object(m.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P={width:0,height:0,left:0,top:0};var k={width:0,height:0,left:0,top:0,right:0};var M=n(816),N=n(628);var T=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));var A=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,a=e.tabs,c=e.locale,u=e.mobile,l=e.moreIcon,s=void 0===l?"More":l,f=e.moreTransitionName,p=e.style,d=e.className,v=e.editable,y=e.tabBarGutter,b=e.rtl,g=e.onTabClick,O=Object(r.useState)(!1),w=Object(h.a)(O,2),j=w[0],x=w[1],S=Object(r.useState)(null),C=Object(h.a)(S,2),_=C[0],P=C[1],k="".concat(o,"-more-popup"),A="".concat(n,"-dropdown"),R=null!==_?"".concat(k,"-").concat(_):null,D=null==c?void 0:c.dropdownAriaLabel,I=r.createElement(M.b,{onClick:function(e){var t=e.key,n=e.domEvent;g(t,n),x(!1)},id:k,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[_],"aria-label":void 0!==D?D:"expanded dropdown"},a.map((function(e){return r.createElement(M.a,{key:e.key,id:"".concat(k,"-").concat(e.key),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function L(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===_}))||0,r=t.length,o=0;o<r;o+=1){var i=t[n=(n+e+r)%r];if(!i.disabled)return void P(i.key)}}Object(r.useEffect)((function(){var e=document.getElementById(R);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[_]),Object(r.useEffect)((function(){j||P(null)}),[j]);var F=Object(m.a)({},b?"marginLeft":"marginRight",y);a.length||(F.visibility="hidden",F.order=1);var z=i()(Object(m.a)({},"".concat(A,"-rtl"),b)),H=u?null:r.createElement(N.default,{prefixCls:A,overlay:I,trigger:["hover"],visible:j,transitionName:f,onVisibleChange:x,overlayClassName:z},r.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:F,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":k,id:"".concat(o,"-more"),"aria-expanded":j,onKeyDown:function(e){var t=e.which;if(j)switch(t){case E.a.UP:L(-1),e.preventDefault();break;case E.a.DOWN:L(1),e.preventDefault();break;case E.a.ESC:x(!1);break;case E.a.SPACE:case E.a.ENTER:null!==_&&g(_,e)}else[E.a.DOWN,E.a.SPACE,E.a.ENTER].includes(t)&&(x(!0),e.preventDefault())}},s));return r.createElement("div",{className:i()("".concat(n,"-nav-operations"),d),style:p,ref:t},H,r.createElement(T,{prefixCls:n,locale:c,editable:v}))})),R=Object(r.createContext)(null),D=Math.pow(.995,20);function I(e,t){var n=r.useRef(e),o=r.useState({}),i=Object(h.a)(o,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){Object(m.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z=r.forwardRef((function(e,t){var n,o,a=r.useContext(R),c=a.prefixCls,u=a.tabs,l=e.className,s=e.style,f=e.id,p=e.animated,d=e.activeKey,v=e.rtl,y=e.extra,b=e.editable,O=e.locale,E=e.tabPosition,C=e.tabBarGutter,M=e.children,N=e.onTabClick,L=e.onTabScroll,z=Object(r.useRef)(),H=Object(r.useRef)(),B=Object(r.useRef)(),V=Object(r.useRef)(),K=(o=Object(r.useRef)(new Map),[function(e){return o.current.has(e)||o.current.set(e,r.createRef()),o.current.get(e)},function(e){o.current.delete(e)}]),U=Object(h.a)(K,2),W=U[0],q=U[1],G="top"===E||"bottom"===E,$=I(0,(function(e,t){G&&L&&L({direction:e>t?"left":"right"})})),Y=Object(h.a)($,2),X=Y[0],Z=Y[1],J=I(0,(function(e,t){!G&&L&&L({direction:e>t?"top":"bottom"})})),Q=Object(h.a)(J,2),ee=Q[0],te=Q[1],ne=Object(r.useState)(0),re=Object(h.a)(ne,2),oe=re[0],ie=re[1],ae=Object(r.useState)(0),ce=Object(h.a)(ae,2),ue=ce[0],le=ce[1],se=Object(r.useState)(null),fe=Object(h.a)(se,2),pe=fe[0],de=fe[1],he=Object(r.useState)(null),ve=Object(h.a)(he,2),me=ve[0],ye=ve[1],be=function(e){var t=Object(r.useRef)([]),n=Object(r.useState)({}),o=Object(h.a)(n,2)[1],i=Object(r.useRef)("function"==typeof e?e():e),a=x((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,o({})}));return[i.current,function(e){t.current.push(e),a()}]}(new Map),ge=Object(h.a)(be,2),Oe=ge[0],we=ge[1],je=function(e,t,n){return Object(r.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||P,i=o.left+o.width,a=0;a<e.length;a+=1){var c,u=e[a].key,l=t.get(u);if(!l)l=t.get(null===(c=e[a-1])||void 0===c?void 0:c.key)||P;var s=r.get(u)||_({},l);s.right=i-s.left-s.width,r.set(u,s)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(u,Oe,oe),xe="".concat(c,"-nav-operations-hidden"),Ee=0,Se=0;function Ce(e){return e<Ee?[Ee,!1]:e>Se?[Se,!1]:[e,!0]}G?v?(Ee=0,Se=Math.max(0,oe-pe)):(Ee=Math.min(0,pe-oe),Se=0):(Ee=Math.min(0,me-ue),Se=0);var _e=Object(r.useRef)(),Pe=Object(r.useState)(),ke=Object(h.a)(Pe,2),Me=ke[0],Ne=ke[1];function Te(){Ne(Date.now())}function Ae(){window.clearTimeout(_e.current)}function Re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=je.get(e);if(t)if(G){var n=X;v?t.right<X?n=t.right:t.right+t.width>X+pe&&(n=t.right+t.width-pe):t.left<-X?n=-t.left:t.left+t.width>-X+pe&&(n=-(t.left+t.width-pe)),te(0),Z(Ce(n)[0])}else{var r=ee;t.top<-ee?r=-t.top:t.top+t.height>-ee+me&&(r=-(t.top+t.height-me)),Z(0),te(Ce(r)[0])}}!function(e,t){var n=Object(r.useState)(),o=Object(h.a)(n,2),i=o[0],a=o[1],c=Object(r.useState)(0),u=Object(h.a)(c,2),l=u[0],s=u[1],f=Object(r.useState)(0),p=Object(h.a)(f,2),d=p[0],v=p[1],m=Object(r.useState)(),y=Object(h.a)(m,2),b=y[0],g=y[1],O=Object(r.useRef)(),w=Object(r.useRef)(0),j=Object(r.useRef)(0),x=Object(r.useRef)(!1),E=Object(r.useRef)(),S=Object(r.useRef)(null);S.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(O.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],r=n.screenX,o=n.screenY;a({x:r,y:o});var c=r-i.x,u=o-i.y;t(c,u);var f=Date.now();s(f),v(f-l),g({x:c,y:u})}},onTouchEnd:function(){if(i&&(a(null),g(null),b)){var e=b.x/d,n=b.y/d,r=Math.abs(e),o=Math.abs(n);if(Math.max(r,o)<.1)return;var c=e,u=n;O.current=window.setInterval((function(){Math.abs(c)<.01&&Math.abs(u)<.01?window.clearInterval(O.current):t(20*(c*=D),20*(u*=D))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===E.current?n:r:i>a?(o=n,E.current="x"):(o=r,E.current="y");var c=Date.now(),u=Math.abs(o);(c-j.current>100||u-w.current>10)&&(x.current=!1),(t(-o,-o)||x.current)&&(e.preventDefault(),x.current=!0),j.current=c,w.current=u}},r.useEffect((function(){function t(e){S.current.onTouchMove(e)}function n(e){S.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){S.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){S.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(z,(function(e,t){var n=!1;function r(e,t){e((function(e){var r=Ce(e+t),o=Object(h.a)(r,2),i=o[0],a=o[1];return n=a,i}))}if(G){if(pe>=oe)return n;r(Z,e)}else{if(me>=ue)return n;r(te,t)}return Ae(),Te(),n})),Object(r.useEffect)((function(){return Ae(),Me&&(_e.current=window.setTimeout((function(){Ne(0)}),100)),Ae}),[Me]);var De=function(e,t,n){var o,i,a,c=n.tabs,u=n.tabPosition,l=n.rtl;["top","bottom"].includes(u)?(o="width",i=l?"right":"left",a=Math.abs(t.left)):(o="height",i="top",a=-t.top);var s=t[o];return Object(r.useMemo)((function(){if(!c.length)return[0,0];for(var t=c.length,n=t,r=0;r<t;r+=1){var u=e.get(c[r].key)||k;if(u[i]+u[o]>a+s){n=r-1;break}}for(var l=0,f=t-1;f>=0;f-=1){if((e.get(c[f].key)||k)[i]<a){l=f+1;break}}return[l,n]}),[e,a,s,u,c.map((function(e){return e.key})).join("_"),l])}(je,{width:pe,height:me,left:X,top:ee},F(F({},e),{},{tabs:u})),Ie=Object(h.a)(De,2),Le=Ie[0],Fe=Ie[1];function ze(e){var t,n,r=(null===(t=V.current)||void 0===t?void 0:t[e])||0,o=0;return(null===(n=B.current)||void 0===n?void 0:n.className.includes(xe))&&(o=B.current[e]),r+o}var He=u.map((function(e){var t=e.key;return r.createElement(S,{id:f,prefixCls:c,key:t,rtl:v,tab:e,closable:e.closable,editable:b,active:t===d,tabPosition:E,tabBarGutter:C,renderWrapper:M,removeAriaLabel:null==O?void 0:O.removeAriaLabel,ref:W(t),onClick:function(e){N(t,e)},onRemove:function(){q(t)},onFocus:function(){Re(t),Te(),v||(z.current.scrollLeft=0),z.current.scrollTop=0}})})),Be=x((function(){var e,t,n,r,o=(null===(e=z.current)||void 0===e?void 0:e.offsetWidth)||0,i=(null===(t=z.current)||void 0===t?void 0:t.offsetHeight)||0;de(o),ye(i),ie(((null===(n=H.current)||void 0===n?void 0:n.offsetWidth)||0)-ze("offsetWidth")),le(((null===(r=H.current)||void 0===r?void 0:r.offsetHeight)||0)-ze("offsetHeight")),we((function(){var e=new Map;return u.forEach((function(t){var n=t.key,r=W(n).current;e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),Ve=u.slice(0,Le),Ke=u.slice(Fe+1),Ue=[].concat(Object(g.a)(Ve),Object(g.a)(Ke)),We=Object(r.useState)(),qe=Object(h.a)(We,2),Ge=qe[0],$e=qe[1],Ye=je.get(d),Xe=Object(r.useRef)();function Ze(){w.a.cancel(Xe.current)}Object(r.useEffect)((function(){var e={};return Ye&&(G?(v?e.right=Ye.right:e.left=Ye.left,e.width=Ye.width):(e.top=Ye.top,e.height=Ye.height)),Ze(),Xe.current=w()((function(){$e(e)})),Ze}),[Ye,G,v]),Object(r.useEffect)((function(){Re()}),[d,Ye,je,G]),Object(r.useEffect)((function(){Be()}),[v,C,d,u.map((function(e){return e.key})).join("_")]);var Je,Qe,et,tt,nt=!!Ue.length,rt="".concat(c,"-nav-wrap");return G?v?(Qe=X>0,Je=X+pe<oe):(Je=X<0,Qe=-X+pe<oe):(et=ee<0,tt=-ee+me<ue),r.createElement("div",{ref:t,role:"tablist",className:i()("".concat(c,"-nav"),l),style:s,onKeyDown:function(){Te()}},r.createElement(j.default,{onResize:Be},r.createElement("div",{className:i()(rt,(n={},Object(m.a)(n,"".concat(rt,"-ping-left"),Je),Object(m.a)(n,"".concat(rt,"-ping-right"),Qe),Object(m.a)(n,"".concat(rt,"-ping-top"),et),Object(m.a)(n,"".concat(rt,"-ping-bottom"),tt),n)),ref:z},r.createElement(j.default,{onResize:Be},r.createElement("div",{ref:H,className:"".concat(c,"-nav-list"),style:{transform:"translate(".concat(X,"px, ").concat(ee,"px)"),transition:Me?"none":void 0}},He,!nt&&r.createElement(T,{ref:V,prefixCls:c,locale:O,editable:b}),r.createElement("div",{className:i()("".concat(c,"-ink-bar"),Object(m.a)({},"".concat(c,"-ink-bar-animated"),p.inkBar)),style:Ge}))))),r.createElement(A,Object.assign({},e,{ref:B,prefixCls:c,tabs:Ue,className:!nt&&xe})),y&&r.createElement("div",{className:"".concat(c,"-extra-content")},y))}));function H(e){var t=e.id,n=e.activeKey,o=e.animated,a=e.tabPosition,c=e.rtl,u=e.destroyInactiveTabPane,l=r.useContext(R),s=l.prefixCls,f=l.tabs,p=o.tabPane,d=f.findIndex((function(e){return e.key===n}));return r.createElement("div",{className:i()("".concat(s,"-content-holder"))},r.createElement("div",{className:i()("".concat(s,"-content"),"".concat(s,"-content-").concat(a),Object(m.a)({},"".concat(s,"-content-animated"),p)),style:d&&p?Object(m.a)({},c?"marginRight":"marginLeft","-".concat(d,"00%")):null},f.map((function(e){return r.cloneElement(e.node,{key:e.key,prefixCls:s,tabKey:e.key,id:t,animated:p,active:e.key===n,destroyInactiveTabPane:u})}))))}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){Object(m.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e){var t=e.prefixCls,n=e.forceRender,o=e.className,a=e.style,c=e.id,u=e.active,l=e.animated,s=e.destroyInactiveTabPane,f=e.tabKey,p=e.children,d=r.useState(n),v=Object(h.a)(d,2),m=v[0],y=v[1];r.useEffect((function(){u?y(!0):s&&y(!1)}),[u,s]);var b={};return u||(l?(b.visibility="hidden",b.height=0,b.overflowY="hidden"):b.display="none"),r.createElement("div",{id:c&&"".concat(c,"-panel-").concat(f),role:"tabpanel",tabIndex:u?0:-1,"aria-labelledby":c&&"".concat(c,"-tab-").concat(f),"aria-hidden":!u,style:V(V({},b),a),className:i()("".concat(t,"-tabpane"),u&&"".concat(t,"-tabpane-active"),o)},(u||m||n)&&p)}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){Object(m.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q=0;var G=r.forwardRef((function(e,t){var n,o,a=e.id,c=e.prefixCls,u=void 0===c?"rc-tabs":c,l=e.className,s=e.children,f=e.direction,p=e.activeKey,d=e.defaultActiveKey,g=e.editable,O=e.animated,w=e.tabPosition,j=void 0===w?"top":w,x=e.tabBarGutter,E=e.tabBarStyle,S=e.tabBarExtraContent,C=e.locale,_=e.moreIcon,P=e.moreTransitionName,k=e.destroyInactiveTabPane,M=e.renderTabBar,N=e.onChange,T=e.onTabClick,A=e.onTabScroll,D=Object(v.a)(e,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),I=function(e){return Object(y.a)(e).map((function(e){return r.isValidElement(e)?W(W({key:void 0!==e.key?String(e.key):void 0},e.props),{},{node:e}):null})).filter((function(e){return e}))}(s),L="rtl"===f;o=!1===O?{inkBar:!1,tabPane:!1}:W({inkBar:!0,tabPane:!1},!0!==O?O:null);var F=Object(r.useState)(!1),B=Object(h.a)(F,2),V=B[0],K=B[1];Object(r.useEffect)((function(){var e;K((e=navigator.userAgent||navigator.vendor||window.opera,!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))))}),[]);var U=Object(b.a)((function(){var e;return null===(e=I[0])||void 0===e?void 0:e.key}),{value:p,defaultValue:d}),G=Object(h.a)(U,2),$=G[0],Y=G[1],X=Object(r.useState)((function(){return I.findIndex((function(e){return e.key===$}))})),Z=Object(h.a)(X,2),J=Z[0],Q=Z[1];Object(r.useEffect)((function(){var e,t=I.findIndex((function(e){return e.key===$}));-1===t&&(t=Math.max(0,Math.min(J,I.length-1)),Y(null===(e=I[t])||void 0===e?void 0:e.key));Q(t)}),[I.map((function(e){return e.key})).join("_"),$,J]);var ee=Object(b.a)(null,{value:a}),te=Object(h.a)(ee,2),ne=te[0],re=te[1],oe=j;V&&!["left","right"].includes(j)&&(oe="top"),Object(r.useEffect)((function(){a||(re("rc-tabs-".concat(q)),q+=1)}),[]);var ie,ae={id:ne,activeKey:$,animated:o,tabPosition:oe,rtl:L,mobile:V},ce=W(W({},ae),{},{editable:g,locale:C,moreIcon:_,moreTransitionName:P,tabBarGutter:x,onTabClick:function(e,t){null==T||T(e,t),Y(e),null==N||N(e)},onTabScroll:A,extra:S,style:E,panes:s});return ie=M?M(ce,z):r.createElement(z,Object.assign({},ce)),r.createElement(R.Provider,{value:{tabs:I,prefixCls:u}},r.createElement("div",Object.assign({ref:t,id:a,className:i()(u,"".concat(u,"-").concat(oe),(n={},Object(m.a)(n,"".concat(u,"-mobile"),V),Object(m.a)(n,"".concat(u,"-editable"),g),Object(m.a)(n,"".concat(u,"-rtl"),L),n),l)},D),ie,r.createElement(H,Object.assign({destroyInactiveTabPane:k},ae,{animated:o}))))}));G.TabPane=K;var $=G,Y=n(626),X=n.n(Y),Z=n(533),J=n.n(Z),Q=n(219),ee=n.n(Q),te=n(86);function ne(){return(ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ie(e){var t,n,o=e.type,a=e.className,u=e.size,l=e.onEdit,s=e.hideAdd,f=e.centered,p=e.addIcon,d=oe(e,["type","className","size","onEdit","hideAdd","centered","addIcon"]),h=d.prefixCls,v=r.useContext(c.b),m=v.getPrefixCls,y=v.direction,b=m("tabs",h);return"editable-card"===o&&(n={onEdit:function(e,t){var n=t.key,r=t.event;null==l||l("add"===e?r:n,e)},removeIcon:r.createElement(ee.a,null),addIcon:p||r.createElement(J.a,null),showAdd:!0!==s}),Object(te.a)(!("onPrevClick"in d)&&!("onNextClick"in d),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),r.createElement($,ne({direction:y},d,{moreTransitionName:"slide-up",className:i()(a,(t={},re(t,"".concat(b,"-").concat(u),u),re(t,"".concat(b,"-card"),["card","editable-card"].includes(o)),re(t,"".concat(b,"-editable-card"),"editable-card"===o),re(t,"".concat(b,"-centered"),f),t)),editable:n,moreIcon:r.createElement(X.a,null),prefixCls:b}))}ie.TabPane=K;var ae=ie,ce=n(311),ue=n(206),le=n(148);function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fe(){return(fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var pe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var de=function(e){var t,n,o,u=r.useContext(c.b),l=u.getPrefixCls,f=u.direction,p=r.useContext(le.b),d=e.prefixCls,h=e.className,v=e.extra,m=e.headStyle,y=void 0===m?{}:m,b=e.bodyStyle,g=void 0===b?{}:b,O=e.title,w=e.loading,j=e.bordered,x=void 0===j||j,E=e.size,S=e.type,C=e.cover,_=e.actions,P=e.tabList,k=e.children,M=e.activeTabKey,N=e.defaultActiveTabKey,T=e.tabBarExtraContent,A=e.hoverable,R=e.tabProps,D=void 0===R?{}:R,I=pe(e,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),L=l("card",d),F=0===g.padding||"0px"===g.padding?{padding:24}:void 0,z=r.createElement("div",{className:"".concat(L,"-loading-block")}),H=r.createElement("div",{className:"".concat(L,"-loading-content"),style:F},r.createElement(ce.a,{gutter:8},r.createElement(ue.a,{span:22},z)),r.createElement(ce.a,{gutter:8},r.createElement(ue.a,{span:8},z),r.createElement(ue.a,{span:15},z)),r.createElement(ce.a,{gutter:8},r.createElement(ue.a,{span:6},z),r.createElement(ue.a,{span:18},z)),r.createElement(ce.a,{gutter:8},r.createElement(ue.a,{span:13},z),r.createElement(ue.a,{span:9},z)),r.createElement(ce.a,{gutter:8},r.createElement(ue.a,{span:4},z),r.createElement(ue.a,{span:3},z),r.createElement(ue.a,{span:16},z))),B=void 0!==M,V=fe(fe({},D),(se(t={},B?"activeKey":"defaultActiveKey",B?M:N),se(t,"tabBarExtraContent",T),t)),K=P&&P.length?r.createElement(ae,fe({size:"large"},V,{className:"".concat(L,"-head-tabs"),onChange:function(t){e.onTabChange&&e.onTabChange(t)}}),P.map((function(e){return r.createElement(ae.TabPane,{tab:e.tab,disabled:e.disabled,key:e.key})}))):null;(O||v||K)&&(o=r.createElement("div",{className:"".concat(L,"-head"),style:y},r.createElement("div",{className:"".concat(L,"-head-wrapper")},O&&r.createElement("div",{className:"".concat(L,"-head-title")},O),v&&r.createElement("div",{className:"".concat(L,"-extra")},v)),K));var U,W=C?r.createElement("div",{className:"".concat(L,"-cover")},C):null,q=r.createElement("div",{className:"".concat(L,"-body"),style:g},w?H:k),G=_&&_.length?r.createElement("ul",{className:"".concat(L,"-actions")},function(e){return e.map((function(t,n){return r.createElement("li",{style:{width:"".concat(100/e.length,"%")},key:"action-".concat(n)},r.createElement("span",null,t))}))}(_)):null,$=Object(a.default)(I,["onTabChange"]),Y=E||p,X=i()(L,h,(se(n={},"".concat(L,"-loading"),w),se(n,"".concat(L,"-bordered"),x),se(n,"".concat(L,"-hoverable"),A),se(n,"".concat(L,"-contain-grid"),(r.Children.forEach(e.children,(function(e){e&&e.type&&e.type===s&&(U=!0)})),U)),se(n,"".concat(L,"-contain-tabs"),P&&P.length),se(n,"".concat(L,"-").concat(Y),Y),se(n,"".concat(L,"-type-").concat(S),!!S),se(n,"".concat(L,"-rtl"),"rtl"===f),n));return r.createElement("div",fe({},$,{className:X}),o,W,q,G)};de.Grid=s,de.Meta=d;t.a=de},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(4),a=n.n(i),c=n(37),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){}function p(e){e.preventDefault()}var d=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,h=function(e){return null!=e},v=function(e,t){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));y.call(n);var r=void 0;r="value"in e?e.value:e.defaultValue,n.state={focused:e.autoFocus};var o=n.getValidValue(n.toNumber(r));return n.state=u({},n.state,{inputValue:n.toPrecisionAsStep(o),value:o}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.onChange,o=t.max,i=t.min,a=this.state.focused;if(e){if(!v(e.value,n)||!v(e.max,o)||!v(e.min,i)){var u=a?n:this.getValidValue(n),l=void 0;l=this.pressingUpOrDown?u:this.inputting?this.rawInput:this.toPrecisionAsStep(u),this.setState({value:u,inputValue:l})}var s="value"in this.props?n:this.state.value;"max"in this.props&&e.max!==o&&"number"==typeof s&&s>o&&r&&r(o),"min"in this.props&&e.min!==i&&"number"==typeof s&&s<i&&r&&r(i)}try{if(void 0!==this.cursorStart&&this.state.focused)if(this.partRestoreByAfter(this.cursorAfter)||this.state.value===this.props.value){if(this.currentValue===this.input.value)switch(this.lastKeyCode){case c.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case c.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1)}}else{var f=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===c.a.BACKSPACE?f=this.cursorStart-1:this.lastKeyCode===c.a.DELETE&&(f=this.cursorStart):f=this.input.value.length,this.fixCaret(f,f)}}catch(e){}this.lastKeyCode=null,this.pressingUpOrDown&&this.props.focusOnUpDown&&this.state.focused&&document.activeElement!==this.input&&this.focus()}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(e){var t=e;return t=""===t?"":this.isNotCompleteNumber(parseFloat(t,10))?this.state.value:this.getValidValue(t),this.toNumber(t)}},{key:"getRatio",value:function(e){var t=1;return e.metaKey||e.ctrlKey?t=.1:e.shiftKey&&(t=10),t}},{key:"getValueFromEvent",value:function(e){var t=e.target.value.trim().replace(/。/g,".");return h(this.props.decimalSeparator)&&(t=t.replace(this.props.decimalSeparator,".")),t}},{key:"getValidValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.min,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.max,r=parseFloat(e,10);return isNaN(r)?e:(r<t&&(r=t),r>n&&(r=n),r)}},{key:"setValue",value:function(e,t){var n=this.props.precision,r=this.isNotCompleteNumber(parseFloat(e,10))?null:parseFloat(e,10),o=this.state,i=o.value,a=void 0===i?null:i,c=o.inputValue,u=void 0===c?null:c,l="number"==typeof r?r.toFixed(n):""+r,s=r!==a||l!==""+u;return"value"in this.props?this.setState({inputValue:this.toPrecisionAsStep(this.state.value)},t):this.setState({value:r,inputValue:this.toPrecisionAsStep(e)},t),s&&this.props.onChange(r),r}},{key:"getFullNum",value:function(e){return isNaN(e)?e:/e/i.test(String(e))?Number(e).toFixed(18).replace(/\.?0+$/,""):e}},{key:"getPrecision",value:function(e){if(h(this.props.precision))return this.props.precision;var t=e.toString();if(t.indexOf("e-")>=0)return parseInt(t.slice(t.indexOf("e-")+2),10);var n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}},{key:"getMaxPrecision",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.props,r=n.precision,o=n.step;if(h(r))return r;var i=this.getPrecision(t),a=this.getPrecision(o),c=this.getPrecision(e);return e?Math.max(c,i+a):i+a}},{key:"getPrecisionFactor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getMaxPrecision(e,t);return Math.pow(10,n)}},{key:"fixCaret",value:function(e,t){if(void 0!==e&&void 0!==t&&this.input&&this.input.value)try{var n=this.input.selectionStart,r=this.input.selectionEnd;e===n&&t===r||this.input.setSelectionRange(e,t)}catch(e){}}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(e){return this.props.formatter?this.props.formatter(e):e}},{key:"toPrecisionAsStep",value:function(e){if(this.isNotCompleteNumber(e)||""===e)return e;var t=Math.abs(this.getMaxPrecision(e));return isNaN(t)?e.toString():Number(e).toFixed(t)}},{key:"isNotCompleteNumber",value:function(e){return isNaN(e)||""===e||null===e||e&&e.toString().indexOf(".")===e.toString().length-1}},{key:"toNumber",value:function(e){var t=this.props.precision,n=this.state.focused,r=e&&e.length>16&&n;return this.isNotCompleteNumber(e)||r?e:h(t)?Math.round(e*Math.pow(10,t))/Math.pow(10,t):Number(e)}},{key:"upStep",value:function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),o=Math.abs(this.getMaxPrecision(e,t)),i=((r*e+r*n*t)/r).toFixed(o);return this.toNumber(i)}},{key:"downStep",value:function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),o=Math.abs(this.getMaxPrecision(e,t)),i=((r*e-r*n*t)/r).toFixed(o);return this.toNumber(i)}},{key:"step",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments[3];this.stop(),t&&(t.persist(),t.preventDefault());var i=this.props;if(!i.disabled){var a=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(a)){var c=this[e+"Step"](a,r),u=c>i.max||c<i.min;c>i.max?c=i.max:c<i.min&&(c=i.min),this.setValue(c),this.setState({focused:!0},(function(){n.pressingUpOrDown=!1})),u||(this.autoStepTimer=setTimeout((function(){n[e](t,r,!0)}),o?200:600))}}}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,r=t.disabled,i=t.readOnly,c=t.useTouch,l=t.autoComplete,d=t.upHandler,h=t.downHandler,v=t.className,m=t.max,y=t.min,b=t.style,g=t.title,O=t.onMouseEnter,w=t.onMouseLeave,j=t.onMouseOver,x=t.onMouseOut,E=t.required,S=t.onClick,C=t.tabIndex,_=t.type,P=t.placeholder,k=t.id,M=t.inputMode,N=t.pattern,T=t.step,A=t.maxLength,R=t.autoFocus,D=t.name,I=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name"]),L=this.state,F=L.value,z=L.focused,H=a()(n,(s(e={},v,!!v),s(e,n+"-disabled",r),s(e,n+"-focused",z),e)),B={};Object.keys(I).forEach((function(e){"data-"!==e.substr(0,5)&&"aria-"!==e.substr(0,5)&&"role"!==e||(B[e]=I[e])}));var V=!i&&!r,K=this.getInputDisplayValue(),U=(F||0===F)&&(isNaN(F)||Number(F)>=m)||r||i,W=(F||0===F)&&(isNaN(F)||Number(F)<=y)||r||i,q=a()(n+"-handler",n+"-handler-up",s({},n+"-handler-up-disabled",U)),G=a()(n+"-handler",n+"-handler-down",s({},n+"-handler-down-disabled",W)),$=c?{onTouchStart:U?f:this.up,onTouchEnd:this.stop}:{onMouseDown:U?f:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Y=c?{onTouchStart:W?f:this.down,onTouchEnd:this.stop}:{onMouseDown:W?f:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return o.a.createElement("div",{className:H,style:b,title:g,onMouseEnter:O,onMouseLeave:w,onMouseOver:j,onMouseOut:x,onFocus:function(){return null},onBlur:function(){return null}},o.a.createElement("div",{className:n+"-handler-wrap"},o.a.createElement("span",u({unselectable:"unselectable"},$,{role:"button","aria-label":"Increase Value","aria-disabled":U,className:q}),d||o.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-up-inner",onClick:p})),o.a.createElement("span",u({unselectable:"unselectable"},Y,{role:"button","aria-label":"Decrease Value","aria-disabled":W,className:G}),h||o.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-down-inner",onClick:p}))),o.a.createElement("div",{className:n+"-input-wrap"},o.a.createElement("input",u({role:"spinbutton","aria-valuemin":y,"aria-valuemax":m,"aria-valuenow":F,required:E,type:_,placeholder:P,onClick:S,onMouseUp:this.onMouseUp,className:n+"-input",tabIndex:C,autoComplete:l,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:V?this.onKeyDown:f,onKeyUp:V?this.onKeyUp:f,autoFocus:R,maxLength:A,readOnly:i,disabled:r,max:m,min:y,step:T,name:D,title:g,id:k,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(K),pattern:N,inputMode:M},B))))}}]),t}(o.a.Component);m.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:d,min:-d,step:1,style:{},onChange:f,onKeyDown:f,onPressEnter:f,onFocus:f,onBlur:f,parser:function(e){return e.replace(/[^\w.-]+/g,"")},required:!1,autoComplete:"off"};var y=function(){var e=this;this.onKeyDown=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e.props,a=i.onKeyDown,u=i.onPressEnter;if(t.keyCode===c.a.UP){var l=e.getRatio(t);e.up(t,l),e.stop()}else if(t.keyCode===c.a.DOWN){var s=e.getRatio(t);e.down(t,s),e.stop()}else t.keyCode===c.a.ENTER&&u&&u(t);e.recordCursorPosition(),e.lastKeyCode=t.keyCode,a&&a.apply(void 0,[t].concat(r))},this.onKeyUp=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e.props.onKeyUp;e.stop(),e.recordCursorPosition(),i&&i.apply(void 0,[t].concat(r))},this.onChange=function(t){var n=e.props.onChange;e.state.focused&&(e.inputting=!0),e.rawInput=e.props.parser(e.getValueFromEvent(t)),e.setState({inputValue:e.rawInput}),n(e.toNumber(e.rawInput))},this.onMouseUp=function(){var t=e.props.onMouseUp;e.recordCursorPosition(),t&&t.apply(void 0,arguments)},this.onFocus=function(){var t;e.setState({focused:!0}),(t=e.props).onFocus.apply(t,arguments)},this.onBlur=function(){var t=e.props.onBlur;e.inputting=!1,e.setState({focused:!1});var n=e.getCurrentValidValue(e.state.inputValue),r=e.setValue(n);if(t){var o=e.input.value,i=Number(e.getInputDisplayValue({focus:!1,value:r}));e.input.value=i,t.apply(void 0,arguments),e.input.value=o}},this.getInputDisplayValue=function(t){var n=t||e.state,r=n.focused,o=n.inputValue,i=n.value,a=void 0;null==(a=r?o:e.toPrecisionAsStep(i))&&(a="");var c=e.formatWrapper(a);return h(e.props.decimalSeparator)&&(c=c.toString().replace(".",e.props.decimalSeparator)),c},this.recordCursorPosition=function(){try{e.cursorStart=e.input.selectionStart,e.cursorEnd=e.input.selectionEnd,e.currentValue=e.input.value,e.cursorBefore=e.input.value.substring(0,e.cursorStart),e.cursorAfter=e.input.value.substring(e.cursorEnd)}catch(e){}},this.restoreByAfter=function(t){if(void 0===t)return!1;var n=e.input.value,r=n.lastIndexOf(t);if(-1===r)return!1;var o=e.cursorBefore.length;return e.lastKeyCode===c.a.DELETE&&e.cursorBefore.charAt(o-1)===t[0]?(e.fixCaret(o,o),!0):r+t.length===n.length&&(e.fixCaret(r,r),!0)},this.partRestoreByAfter=function(t){return void 0!==t&&Array.prototype.some.call(t,(function(n,r){var o=t.substring(r);return e.restoreByAfter(o)}))},this.stop=function(){e.autoStepTimer&&clearTimeout(e.autoStepTimer)},this.down=function(t,n,r){e.pressingUpOrDown=!0,e.step("down",t,n,r)},this.up=function(t,n,r){e.pressingUpOrDown=!0,e.step("up",t,n,r)},this.saveInput=function(t){e.input=t}},b=m,g=n(949),O=n.n(g),w=n(369),j=n.n(w),x=n(190),E=n(148);function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},P=r.forwardRef((function(e,t){var n=function(n){var o=n.getPrefixCls,i=n.direction,c=e.className,u=e.size,l=e.prefixCls,s=_(e,["className","size","prefixCls"]),f=o("input-number",l),p=r.createElement(O.a,{className:"".concat(f,"-handler-up-inner")}),d=r.createElement(j.a,{className:"".concat(f,"-handler-down-inner")});return r.createElement(E.b.Consumer,null,(function(e){var n,o=u||e,l=a()((C(n={},"".concat(f,"-lg"),"large"===o),C(n,"".concat(f,"-sm"),"small"===o),C(n,"".concat(f,"-rtl"),"rtl"===i),n),c);return r.createElement(b,S({ref:t,className:l,upHandler:p,downHandler:d,prefixCls:f},s))}))};return r.createElement(x.a,null,n)}));P.defaultProps={step:1};t.a=P},,function(e,t,n){"use strict";var r=n(630),o=n(587);r.b.Sider=o.b,t.a=r.b},,function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(84),c=n(530),u=n(751),l=n(750),s=n(742),f=n(753),p=n(190);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function b(e,t,n){var o=t&&"object"===m(t)?t:{},i=o.total,a=void 0===i?0:i,c=y(o,["total"]),u=h(Object(r.useState)((function(){return{current:"defaultCurrent"in c?c.defaultCurrent:1,pageSize:"defaultPageSize"in c?c.defaultPageSize:10}})),2),l=u[0],s=u[1],f=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(l,c,{total:a>0?a:e});a||Math.ceil(e/f.pageSize)<f.current&&(f.current=1);var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;s(d(d({},f),{current:e}))};return!1===t?[{},function(){}]:[d(d({},f),{onChange:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=r[0];p(i),n(i,r[1]||f.pageSize),t&&t.onChange&&t.onChange.apply(t,r)},onShowSizeChange:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=r[1];s(d(d({},f),{current:1,pageSize:i})),n(1,i),t&&t.onShowSizeChange&&t.onShowSizeChange.apply(t,r)}}),p]}var g=n(369),O=n.n(g),w=n(253),j=n(758),x=n(438),E=n(387),S=n(172),C=n(754),_=n(538),P=n(744),k=n(86);function M(){return(M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function N(e,t){return A(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||D(e,t)||T()}function T(){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 A(e){if(Array.isArray(e))return e}function R(e){return function(e){if(Array.isArray(e))return L(e)}(e)||I(e)||D(e)||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 D(e,t){if(e){if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function I(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function F(e){return e&&e.fixed}function z(e,t){var n=e||{},o=n.preserveSelectedRowKeys,i=n.selectedRowKeys,a=n.getCheckboxProps,u=n.onChange,l=n.onSelect,s=n.onSelectAll,f=n.onSelectInvert,p=n.onSelectMultiple,d=n.columnWidth,h=n.type,v=n.selections,m=n.fixed,y=n.renderCell,b=n.hideSelectAll,g=n.checkStrictly,L=void 0===g||g,z=t.prefixCls,H=t.data,B=t.pageData,V=t.getRecordByKey,K=t.getRowKey,U=t.expandType,W=t.childrenColumnName,q=t.locale,G=t.expandIconColumnIndex,$=t.getPopupContainer,Y=r.useRef(new Map),X=N(Object(E.a)(i||[],{value:i}),2),Z=X[0],J=X[1],Q=Object(r.useMemo)((function(){return L?{keyEntities:null}:Object(w.a)(H,void 0,K)}),[H,K,L]).keyEntities,ee=Object(r.useMemo)((function(){return function e(t,n){var r=[];return(t||[]).forEach((function(t){r.push(t),n in t&&(r=[].concat(R(r),R(e(t[n],n))))})),r}(B,W)}),[B,W]),te=Object(r.useMemo)((function(){var e=new Map;return ee.forEach((function(t,n){var r=K(t,n),o=(a?a(t):null)||{};e.set(r,o)})),e}),[ee,K,a]),ne=Object(r.useCallback)((function(e){var t;return!!(null===(t=te.get(K(e)))||void 0===t?void 0:t.disabled)}),[te,K]),re=N(Object(r.useMemo)((function(){if(L)return[Z,[]];var e=Object(j.a)(Z,!0,Q,ne);return[e.checkedKeys,e.halfCheckedKeys]}),[Z,L,Q,ne]),2),oe=re[0],ie=re[1],ae=Object(r.useMemo)((function(){var e="radio"===h?oe.slice(0,1):oe;return new Set(e)}),[oe,h]),ce=Object(r.useMemo)((function(){return"radio"===h?new Set:new Set(ie)}),[ie,h]),ue=N(Object(r.useState)(null),2),le=ue[0],se=ue[1];r.useEffect((function(){e||J([])}),[!!e]);var fe=Object(r.useCallback)((function(e){var t,n;if(o){var r=new Map;t=e,n=e.map((function(e){var t=V(e);return!t&&Y.current.has(e)&&(t=Y.current.get(e)),r.set(e,t),t})),Y.current=r}else t=[],n=[],e.forEach((function(e){var r=V(e);void 0!==r&&(t.push(e),n.push(r))}));J(t),u&&u(t,n)}),[J,V,u,o]),pe=Object(r.useCallback)((function(e,t,n,r){if(l){var o=n.map((function(e){return V(e)}));l(V(e),t,o,r)}fe(n)}),[l,V,fe]),de=Object(r.useMemo)((function(){return!v||b?null:(!0===v?["SELECT_ALL","SELECT_INVERT"]:v).map((function(e){return"SELECT_ALL"===e?{key:"all",text:q.selectionAll,onSelect:function(){fe(H.map((function(e,t){return K(e,t)})))}}:"SELECT_INVERT"===e?{key:"invert",text:q.selectInvert,onSelect:function(){var e=new Set(ae);B.forEach((function(t,n){var r=K(t,n);e.has(r)?e.delete(r):e.add(r)}));var t=Array.from(e);fe(t),f&&(Object(k.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),f(t))}}:e}))}),[v,ae,B,K,f,fe]);return[Object(r.useCallback)((function(t){if(!e)return t;var n,o,i=new Set(ae),a=ee.map(K).filter((function(e){return!te.get(e).disabled})),u=a.every((function(e){return i.has(e)})),l=a.some((function(e){return i.has(e)}));if("radio"!==h){var f;if(de){var v=r.createElement(_.a,{getPopupContainer:$},de.map((function(e,t){var n=e.key,o=e.text,i=e.onSelect;return r.createElement(_.a.Item,{key:n||t,onClick:function(){i&&i(a)}},o)})));f=r.createElement("div",{className:"".concat(z,"-selection-extra")},r.createElement(C.a,{overlay:v,getPopupContainer:$},r.createElement("span",null,r.createElement(O.a,null))))}var g=ee.every((function(e,t){var n=K(e,t);return(te.get(n)||{}).disabled}));n=!b&&r.createElement("div",{className:"".concat(z,"-selection")},r.createElement(S.a,{checked:!g&&!!ee.length&&u,indeterminate:!u&&l,onChange:function(){var e=[];u?a.forEach((function(t){i.delete(t),e.push(t)})):a.forEach((function(t){i.has(t)||(i.add(t),e.push(t))}));var t=Array.from(i);fe(t),s&&s(!u,t.map((function(e){return V(e)})),e.map((function(e){return V(e)})))},disabled:0===ee.length||g}),f)}o="radio"===h?function(e,t,n){var o=K(t,n),a=i.has(o);return{node:r.createElement(P.default,M({},te.get(o),{checked:a,onClick:function(e){return e.stopPropagation()},onChange:function(e){i.has(o)||pe(o,!0,[o],e.nativeEvent)}})),checked:a}}:function(e,t,n){var o=K(t,n),c=i.has(o),u=ce.has(o);return{node:r.createElement(S.a,M({},te.get(o),{checked:c,indeterminate:u,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=e.nativeEvent,n=t.shiftKey,r=-1,u=-1;if(n&&L){var l=new Set([le,o]);a.some((function(e,t){if(l.has(e)){if(-1!==r)return u=t,!0;r=t}return!1}))}if(-1!==u&&r!==u&&L){var s=a.slice(r,u+1),f=[];c?s.forEach((function(e){i.has(e)&&(f.push(e),i.delete(e))})):s.forEach((function(e){i.has(e)||(f.push(e),i.add(e))}));var d=Array.from(i);fe(d),p&&p(!c,d.map((function(e){return V(e)})),f.map((function(e){return V(e)})))}else{var h=oe;if(L){var v=c?Object(x.b)(h,o):Object(x.a)(h,o);pe(o,!c,v,t)}else{var m=Object(j.a)([].concat(R(h),[o]),!0,Q,ne),y=m.checkedKeys,b=m.halfCheckedKeys,g=y;if(c){var O=new Set(y);O.delete(o),g=Object(j.a)(Array.from(O),{checked:!1,halfCheckedKeys:b},Q,ne).checkedKeys}pe(o,!c,g,t)}}se(o)}})),checked:c}};var w,E,k,N,H=(w={width:d,className:"".concat(z,"-selection-column"),title:e.columnTitle||n,render:function(e,t,n){var r=o(e,t,n),i=r.node,a=r.checked;return y?y(a,t,n,i):i}},E=c.INTERNAL_COL_DEFINE,k={className:"".concat(z,"-selection-col")},E in w?Object.defineProperty(w,E,{value:k,enumerable:!0,configurable:!0,writable:!0}):w[E]=k,w);if("row"===U&&t.length&&!G){var B=A(N=t)||I(N)||D(N)||T(),W=B[0],q=B.slice(1),Y=m||F(q[0]);return Y&&(W.fixed=Y),[W,M(M({},H),{fixed:Y})].concat(R(q))}return[M(M({},H),{fixed:m||F(t[0])})].concat(R(t))}),[K,ee,e,oe,ae,ce,d,de,U,le,te,p,pe,ne]),ae]}var H=n(809),B=n.n(H),V=n(810),K=n.n(V),U=n(309);function W(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function q(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function G(e,t){return"function"==typeof e?e(t):e}function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||J(e,t)||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 Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Z(e){return function(e){if(Array.isArray(e))return Q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||J(e)||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 J(e,t){if(e){if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e){return"object"===ee(e.sorter)&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function ne(e){return"function"==typeof e?e:!(!e||"object"!==ee(e)||!e.compare)&&e.compare}function re(e,t,n){var r=[];function o(e,t){r.push({column:e,key:W(e,t),multiplePriority:te(e),sortOrder:e.sortOrder})}return(e||[]).forEach((function(e,i){var a=q(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(Z(r),Z(re(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:W(e,a),multiplePriority:te(e),sortOrder:e.defaultSortOrder}))})),r}function oe(e){var t=e.column;return{column:t,order:e.sortOrder,field:t.dataIndex,columnKey:t.key}}function ie(e){var t=e.filter((function(e){return e.sortOrder})).map(oe);return 0===t.length&&e.length?X(X({},oe(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function ae(e,t,n){var r=t.slice().sort((function(e,t){return t.multiplePriority-e.multiplePriority})),o=e.slice(),i=r.filter((function(e){var t=e.column.sorter,n=e.sortOrder;return ne(t)&&n}));return i.length?o.sort((function(e,t){for(var n=0;n<i.length;n+=1){var r=i[n],o=r.column.sorter,a=r.sortOrder,c=ne(o);if(c&&a){var u=c(e,t,a);if(0!==u)return"ascend"===a?u:-u}}return 0})).map((function(e){var r=e[n];return r?X(X({},e),Y({},n,ae(r,t,n))):e})):o}function ce(e){var t=e.prefixCls,n=e.mergedColumns,o=e.onSorterChange,a=e.sortDirections,c=e.tableLocale,u=e.showSorterTooltip,l=$(r.useState(re(n,!0)),2),s=l[0],f=l[1],p=r.useMemo((function(){var e=!0,t=re(n,!1);if(!t.length)return s;var r=[];function o(t){e?r.push(t):r.push(X(X({},t),{sortOrder:null}))}var i=null;return t.forEach((function(t){null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))})),r}),[n,s]),d=r.useMemo((function(){var e=p.map((function(e){return{column:e.column,order:e.sortOrder}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[p]);function h(e){var t;t=!1!==e.multiplePriority&&p.length&&!1!==p[0].multiplePriority?[].concat(Z(p.filter((function(t){return t.key!==e.key}))),[e]):[e],f(t),o(ie(t),t)}return[function(e){return function e(t,n,o,a,c,u,l,s){return(n||[]).map((function(n,f){var p=q(f,s),d=n;if(d.sorter){var h=d.sortDirections||c,v=void 0===d.showSorterTooltip?l:d.showSorterTooltip,m=W(d,p),y=o.find((function(e){return e.key===m})),b=y?y.sortOrder:null,g=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(h,b),O=h.includes("ascend")&&r.createElement(K.a,{className:i()("".concat(t,"-column-sorter-up"),{active:"ascend"===b})}),w=h.includes("descend")&&r.createElement(B.a,{className:i()("".concat(t,"-column-sorter-down"),{active:"descend"===b})}),j=u||{},x=j.cancelSort,E=j.triggerAsc,S=j.triggerDesc,C=x;"descend"===g?C=S:"ascend"===g&&(C=E),d=X(X({},d),{className:i()(d.className,Y({},"".concat(t,"-column-sort"),b)),title:function(e){var o=r.createElement("div",{className:"".concat(t,"-column-sorters")},r.createElement("span",null,G(n.title,e)),r.createElement("span",{className:i()("".concat(t,"-column-sorter"),Y({},"".concat(t,"-column-sorter-full"),O&&w))},r.createElement("span",{className:"".concat(t,"-column-sorter-inner")},O,w)));return v?r.createElement(U.a,{title:C},r.createElement("div",{className:"".concat(t,"-column-sorters-with-tooltip")},o)):o},onHeaderCell:function(e){var r=n.onHeaderCell&&n.onHeaderCell(e)||{},o=r.onClick;return r.onClick=function(e){a({column:n,key:m,sortOrder:g,multiplePriority:te(n)}),o&&o(e)},r.className=i()(r.className,"".concat(t,"-column-has-sorters")),r}})}return"children"in d&&(d=X(X({},d),{children:e(t,d.children,o,a,c,u,l,p)})),d}))}(t,e,p,h,a,c,u)},p,d,function(){return ie(p)}]}var ue=n(492),le=n.n(ue),se=n(811),fe=n.n(se),pe=n(82),de=n(440),he=function(e){return r.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()}},e.children)};function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return me(e,t)}(e,t)||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 me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ge(e,t)}(e,t)||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 ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Oe=_.a.SubMenu,we=_.a.Item;var je=function(e){var t,n,o,a,c=e.prefixCls,u=e.column,l=e.dropdownPrefixCls,s=e.columnKey,f=e.filterMultiple,d=e.filterState,h=e.triggerFilter,v=e.locale,m=e.children,y=e.getPopupContainer,b=u.filterDropdownVisible,g=u.onFilterDropdownVisibleChange,O=be(r.useState(!1),2),w=O[0],j=O[1],x=!(!d||!(null===(t=d.filteredKeys)||void 0===t?void 0:t.length)&&!d.forceFiltered),E=function(e){j(e),g&&g(e)},k="boolean"==typeof b?b:w,M=d&&d.filteredKeys,N=be((n=M||[],o=r.useRef(n),a=ve(r.useState(null),2)[1],[function(){return o.current},function(e){o.current=e,a({})}]),2),T=N[0],A=N[1],R=function(e){var t=e.selectedKeys;A(t)};r.useEffect((function(){R({selectedKeys:M||[]})}),[M]);var D=be(r.useState([]),2),I=D[0],L=D[1],F=r.useRef();r.useEffect((function(){return function(){window.clearTimeout(F.current)}}),[]);var z,H=function(e){E(!1);var t=e&&e.length?e:null;return null!==t||d&&d.filteredKeys?le()(t,null==d?void 0:d.filteredKeys)?null:void h({column:u,key:s,filteredKeys:t}):null},B=function(){H(T())},V=function(){A([]),H([])},K=i()(ye({},"".concat(l,"-menu-without-submenu"),!(u.filters||[]).some((function(e){return e.children}))));if("function"==typeof u.filterDropdown)z=u.filterDropdown({prefixCls:"".concat(l,"-custom"),setSelectedKeys:function(e){return R({selectedKeys:e})},selectedKeys:T(),confirm:B,clearFilters:V,filters:u.filters,visible:k});else if(u.filterDropdown)z=u.filterDropdown;else{var U=T()||[];z=r.createElement(r.Fragment,null,r.createElement(_.a,{multiple:f,prefixCls:"".concat(l,"-menu"),className:K,onClick:function(){window.clearTimeout(F.current)},onSelect:R,onDeselect:R,selectedKeys:U,getPopupContainer:y,openKeys:I,onOpenChange:function(e){F.current=window.setTimeout((function(){L(e)}))}},function e(t){var n=t.filters,o=t.prefixCls,i=t.filteredKeys,a=t.filterMultiple,c=t.locale;return 0===n.length?r.createElement(de.a,{image:de.a.PRESENTED_IMAGE_SIMPLE,description:c.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}}):n.map((function(t,n){var u=String(t.value);if(t.children)return r.createElement(Oe,{key:u||n,title:t.text,popupClassName:"".concat(o,"-dropdown-submenu")},e({filters:t.children,prefixCls:o,filteredKeys:i,filterMultiple:a,locale:c}));var l=a?S.a:P.default;return r.createElement(we,{key:void 0!==t.value?u:n},r.createElement(l,{checked:i.includes(u)}),r.createElement("span",null,t.text))}))}({filters:u.filters||[],prefixCls:c,filteredKeys:T(),filterMultiple:f,locale:v})),r.createElement("div",{className:"".concat(c,"-dropdown-btns")},r.createElement(pe.a,{type:"link",size:"small",disabled:0===U.length,onClick:V},v.filterReset),r.createElement(pe.a,{type:"primary",size:"small",onClick:B},v.filterConfirm)))}var W,q=r.createElement(he,{className:"".concat(c,"-dropdown")},z);W="function"==typeof u.filterIcon?u.filterIcon(x):u.filterIcon?u.filterIcon:r.createElement(fe.a,null);var G=r.useContext(p.b).direction;return r.createElement("div",{className:i()("".concat(c,"-column"))},r.createElement("span",{className:"".concat(c,"-column-title")},m),r.createElement("span",{className:i()("".concat(c,"-trigger-container"),ye({},"".concat(c,"-trigger-container-open"),k)),onClick:function(e){e.stopPropagation()}},r.createElement(C.a,{overlay:q,trigger:["click"],visible:k,onVisibleChange:function(e){e&&void 0!==M&&A(M||[]),E(e),e||u.filterDropdown||B()},getPopupContainer:y,placement:"rtl"===G?"bottomLeft":"bottomRight"},r.createElement("span",{role:"button",tabIndex:-1,className:i()("".concat(c,"-trigger"),{active:x})},W))))};function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||Ce(e,t)||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 Ee(){return(Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Se(e){return function(e){if(Array.isArray(e))return _e(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ce(e)||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 Ce(e,t){if(e){if("string"==typeof e)return _e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_e(e,t):void 0}}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e,t,n){var r=[];return(e||[]).forEach((function(e,o){var i=q(o,n);"children"in e?r=[].concat(Se(r),Se(Pe(e.children,t,i))):(e.filters||"filterDropdown"in e||"onFilter"in e)&&("filteredValue"in e?r.push({column:e,key:W(e,i),filteredKeys:e.filteredValue,forceFiltered:e.filtered}):r.push({column:e,key:W(e,i),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered}))})),r}function ke(e){var t={};return e.forEach((function(e){var n=e.key,r=e.filteredKeys;t[n]=r||null})),t}function Me(e,t){return t.reduce((function(e,t){var n=t.column,r=n.onFilter,o=n.filters,i=t.filteredKeys;return r&&i&&i.length?e.filter((function(e){return i.some((function(t){var n=function e(t){var n=[];return(t||[]).forEach((function(t){var r=t.value,o=t.children;n.push(r),o&&(n=[].concat(Se(n),Se(e(o))))})),n}(o),i=n.findIndex((function(e){return String(e)===String(t)})),a=-1!==i?n[i]:t;return r(a,e)}))})):e}),e)}var Ne=function(e){var t=e.prefixCls,n=e.dropdownPrefixCls,o=e.mergedColumns,i=e.onFilterChange,a=e.getPopupContainer,c=e.locale,u=xe(r.useState(Pe(o,!0)),2),l=u[0],s=u[1],f=r.useMemo((function(){var e=Pe(o,!1);return e.every((function(e){return void 0===e.filteredKeys}))?l:e}),[o,l]),p=r.useCallback((function(){return ke(f)}),[f]),d=function(e){var t=f.filter((function(t){return t.key!==e.key}));t.push(e),s(t),i(ke(t),t)};return[function(e){return function e(t,n,o,i,a,c,u,l){return o.map((function(o,s){var f=q(s,l),p=o.filterMultiple,d=void 0===p||p;if(o.filters||"filterDropdown"in o){var h=W(o,f),v=i.find((function(e){var t=e.key;return h===t}));return Ee(Ee({},o),{title:function(e){return r.createElement(je,{prefixCls:"".concat(t,"-filter"),dropdownPrefixCls:n,column:o,columnKey:h,filterState:v,filterMultiple:d,triggerFilter:a,locale:u,getPopupContainer:c},G(o.title,e))}})}return"children"in o?Ee(Ee({},o),{children:e(t,n,o.children,i,a,c,u,f)}):o}))}(t,n,e,f,d,a,c)},f,p]};function Te(){return(Te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ae(e){return[r.useCallback((function(t){return function e(t,n){return t.map((function(t){var r=Te({},t);return r.title=G(t.title,n),"children"in r&&(r.children=e(r.children,n)),r}))}(t,e)}),[e])]}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var De=function(e){return function(t){var n,o=t.prefixCls,a=t.onExpand,c=t.record,u=t.expanded,l=t.expandable,s="".concat(o,"-row-expand-icon");return r.createElement("button",{type:"button",onClick:function(e){a(c,e),e.stopPropagation()},className:i()(s,(n={},Re(n,"".concat(s,"-spaced"),!l),Re(n,"".concat(s,"-expanded"),l&&u),Re(n,"".concat(s,"-collapsed"),l&&!u),n)),"aria-label":u?e.collapse:e.expand})}},Ie=n(101),Le=n.n(Ie);function Fe(e){return null!=e&&e===e.window}function ze(e,t){if("undefined"==typeof window)return 0;var n=t?"scrollTop":"scrollLeft",r=0;return Fe(e)?r=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?r=e.documentElement[n]:e&&(r=e[n]),e&&!Fe(e)&&"number"!=typeof r&&(r=(e.ownerDocument||e).documentElement[n]),r}function He(e,t,n,r){var o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function Be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getContainer,r=void 0===n?function(){return window}:n,o=t.callback,i=t.duration,a=void 0===i?450:i,c=r(),u=ze(c,!0),l=Date.now(),s=function t(){var n=Date.now()-l,r=He(n>a?a:n,u,e,a);Fe(c)?c.scrollTo(window.pageXOffset,r):c instanceof HTMLDocument||"HTMLDocument"===c.constructor.name?c.documentElement.scrollTop=r:c.scrollTop=r,n<a?Le()(t):"function"==typeof o&&o()};Le()(s)}var Ve=n(372).a,Ke=n(148);var Ue=function(e){return null};var We=function(e){return null},qe=n(580);function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xe(e,t)}(e,t)||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 Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ze(){return(Ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Je=[];function Qe(e){var t,n=e.prefixCls,o=e.className,d=e.style,h=e.size,v=e.bordered,y=e.dropdownPrefixCls,g=e.dataSource,O=e.pagination,w=e.rowSelection,j=e.rowKey,x=e.rowClassName,E=e.columns,S=e.children,C=e.childrenColumnName,_=e.onChange,P=e.getPopupContainer,M=e.loading,N=e.expandIcon,T=e.expandable,A=e.expandedRowRender,R=e.expandIconColumnIndex,D=e.indentSize,I=e.scroll,L=e.sortDirections,F=e.locale,H=e.showSorterTooltip,B=void 0===H||H;Object(k.a)(!("function"==typeof j&&j.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var V=Object(qe.a)(),K=r.useMemo((function(){var e=new Set(Object.keys(V).filter((function(e){return V[e]})));return(E||Object(l.a)(S)).filter((function(t){return!t.responsive||t.responsive.some((function(t){return e.has(t)}))}))}),[S,E,V]),U=Object(a.default)(e,["className","style","columns"]),W=r.useContext(Ke.b),q=r.useContext(p.b),G=q.locale,$=void 0===G?Ve:G,Y=q.renderEmpty,X=q.direction,Z=h||W,J=Ze(Ze({},$.Table),F),Q=g||Je,ee=r.useContext(p.b).getPrefixCls,te=ee("table",n),ne=ee("dropdown",y),re=Ze({childrenColumnName:C,expandIconColumnIndex:R},T),oe=re.childrenColumnName,ie=void 0===oe?"children":oe,ue=r.useMemo((function(){return Q.some((function(e){return e[ie]}))?"nest":A||T&&T.expandedRowRender?"row":null}),[Q]),le={body:r.useRef()},se=r.useMemo((function(){return"function"==typeof j?j:function(e){return e[j]}}),[j]),fe=Ye(function(e,t,n){var o=r.useRef({});return[function(r){if(!o.current||o.current.data!==e||o.current.childrenColumnName!==t||o.current.getRowKey!==n){var i=new Map;!function e(r){r.forEach((function(r,o){var a=n(r,o);i.set(a,r),t in r&&e(r[t]||[])}))}(e),o.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return o.current.kvMap.get(r)}]}(Q,ie,se),1)[0],pe={},de=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Ze(Ze({},pe),e);n&&(pe.resetPagination(),r.pagination.current&&(r.pagination.current=1),O&&O.onChange&&O.onChange(1,r.pagination.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&le.body.current&&Be(0,{getContainer:function(){return le.body.current}}),_&&_(r.pagination,r.filters,r.sorter,{currentDataSource:Me(ae(Q,r.sorterStates,ie),r.filterStates),action:t})},he=Ye(ce({prefixCls:te,mergedColumns:K,onSorterChange:function(e,t){de({sorter:e,sorterStates:t},"sort",!1)},sortDirections:L||["ascend","descend"],tableLocale:J,showSorterTooltip:B}),4),ve=he[0],me=he[1],ye=he[2],be=he[3],ge=r.useMemo((function(){return ae(Q,me,ie)}),[Q,me]);pe.sorter=be(),pe.sorterStates=me;var Oe=Ye(Ne({prefixCls:te,locale:J,dropdownPrefixCls:ne,mergedColumns:K,onFilterChange:function(e,t){de({filters:e,filterStates:t},"filter",!0)},getPopupContainer:P}),3),we=Oe[0],je=Oe[1],xe=Oe[2],Ee=Me(ge,je);pe.filters=xe(),pe.filterStates=je;var Se=Ye(Ae(r.useMemo((function(){return Ze({},ye)}),[ye])),1)[0],Ce=Ye(b(Ee.length,O,(function(e,t){de({pagination:Ze(Ze({},pe.pagination),{current:e,pageSize:t})},"paginate")})),2),_e=Ce[0],Pe=Ce[1];pe.pagination=!1===O?{}:function(e,t){var n={current:t.current,pageSize:t.pageSize},r=e&&"object"===m(e)?e:{};return Object.keys(r).forEach((function(e){var r=t[e];"function"!=typeof r&&(n[e]=r)})),n}(O,_e),pe.resetPagination=Pe;var ke=r.useMemo((function(){if(!1===O||!_e.pageSize)return Ee;var e=_e.current,t=void 0===e?1:e,n=_e.total,r=_e.pageSize,o=void 0===r?10:r;return Ee.length<n?Ee.length>o?(Object(k.a)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),Ee.slice((t-1)*o,t*o)):Ee:Ee.slice((t-1)*o,t*o)}),[!!O,Ee,_e&&_e.current,_e&&_e.pageSize,_e&&_e.total]),Te=Ye(z(w,{prefixCls:te,data:Ee,pageData:ke,getRowKey:se,getRecordByKey:fe,expandType:ue,childrenColumnName:ie,locale:J,expandIconColumnIndex:re.expandIconColumnIndex,getPopupContainer:P}),2),Re=Te[0],Ie=Te[1];re.__PARENT_RENDER_ICON__=re.expandIcon,re.expandIcon=re.expandIcon||N||De(J),"nest"===ue&&void 0===re.expandIconColumnIndex?re.expandIconColumnIndex=w?1:0:re.expandIconColumnIndex>0&&w&&(re.expandIconColumnIndex-=1),re.indentSize=re.indentSize||D||15;var Le,Fe,ze,He=r.useCallback((function(e){return Se(Re(we(ve(e))))}),[ve,we,Re]);if(!1!==O){var Ue;Ue=_e.size?_e.size:"small"===Z||"middle"===Z?"small":void 0;var We=function(e){return r.createElement(f.a,Ze({className:"".concat(te,"-pagination ").concat(te,"-pagination-").concat(e)},_e,{size:Ue}))},Xe="rtl"===X?"left":"right";if(null!==_e.position&&Array.isArray(_e.position)){var Qe=_e.position.find((function(e){return-1!==e.indexOf("top")})),et=_e.position.find((function(e){return-1!==e.indexOf("bottom")}));Qe||et?(Qe&&(Le=We(Qe.toLowerCase().replace("top",""))),et&&(Fe=We(et.toLowerCase().replace("bottom","")))):Fe=We(Xe)}else Fe=We(Xe)}"boolean"==typeof M?ze={spinning:M}:"object"===Ge(M)&&(ze=Ze({spinning:!0},M));var tt=i()("".concat(te,"-wrapper"),o,$e({},"".concat(te,"-wrapper-rtl"),"rtl"===X));return r.createElement("div",{className:tt,style:d},r.createElement(s.a,Ze({spinning:!1},ze),Le,r.createElement(c.default,Ze({},U,{columns:K,direction:X,expandable:re,prefixCls:te,className:i()((t={},$e(t,"".concat(te,"-middle"),"middle"===Z),$e(t,"".concat(te,"-small"),"small"===Z),$e(t,"".concat(te,"-bordered"),v),$e(t,"".concat(te,"-empty"),0===Q.length),t)),data:ke,rowKey:se,rowClassName:function(e,t,n){var r;return r="function"==typeof x?i()(x(e,t,n)):i()(x),i()($e({},"".concat(te,"-row-selected"),Ie.has(se(e,t))),r)},emptyText:F&&F.emptyText||Y("Table"),internalHooks:u.a,internalRefs:le,transformColumns:He})),ke&&ke.length>0&&Fe))}Qe.defaultProps={rowKey:"key"},Qe.SELECTION_ALL="SELECT_ALL",Qe.SELECTION_INVERT="SELECT_INVERT",Qe.Column=Ue,Qe.ColumnGroup=We,Qe.Summary=c.Summary;var et=Qe;t.a=et},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(84),c=n(237),u=n(190),l=n(101),s=n.n(l);function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e)||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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(){return function(e,t,n){var r=n.value,o=!1;return{configurable:!0,get:function(){if(o||this===e.prototype||this.hasOwnProperty(t))return r;var n=function(e){var t,n=function(n){return function(){t=null,e.apply(void 0,f(n))}},r=function(){if(null==t){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t=s()(n(r))}};return r.cancel=function(){return s.a.cancel(t)},r}(r.bind(this));return o=!0,Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),o=!1,n}}}}var h=n(188);function v(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function m(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n)return n+(window.innerHeight-t.bottom)}var b=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],g=[];function O(e,t){if(e){var n=g.find((function(t){return t.target===e}));n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},g.push(n),b.forEach((function(t){n.eventHandlers[t]=Object(h.a)(e,t,(function(){n.affixList.forEach((function(e){e.lazyUpdatePosition()}))}))})))}}function w(e){var t=g.find((function(t){var n=t.affixList.some((function(t){return t===e}));return n&&(t.affixList=t.affixList.filter((function(t){return t!==e}))),n}));t&&0===t.affixList.length&&(g=g.filter((function(e){return e!==t})),b.forEach((function(e){var n=t.eventHandlers[e];n&&n.remove&&n.remove()})))}function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(e,t){return!t||"object"!==M(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var N,T=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":M(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};function A(){return"undefined"!=typeof window?window:null}!function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"}(N||(N={}));var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(l,e);var t,n,o,u=_(l);function l(){var e;return E(this,l),(e=u.apply(this,arguments)).state={status:N.None,lastAffix:!1,prevTarget:null},e.getOffsetTop=function(){var t=e.props.offsetBottom,n=e.props.offsetTop;return void 0===t&&void 0===n&&(n=0),n},e.getOffsetBottom=function(){return e.props.offsetBottom},e.savePlaceholderNode=function(t){e.placeholderNode=t},e.saveFixedNode=function(t){e.fixedNode=t},e.measure=function(){var t=e.state,n=t.status,r=t.lastAffix,o=e.props.onChange,i=e.getTargetFunc();if(n===N.Prepare&&e.fixedNode&&e.placeholderNode&&i){var a=e.getOffsetTop(),c=e.getOffsetBottom(),u=i();if(u){var l={status:N.None},s=v(u),f=v(e.placeholderNode),p=m(f,s,a),d=y(f,s,c);void 0!==p?(l.affixStyle={position:"fixed",top:p,width:f.width,height:f.height},l.placeholderStyle={width:f.width,height:f.height}):void 0!==d&&(l.affixStyle={position:"fixed",bottom:d,width:f.width,height:f.height},l.placeholderStyle={width:f.width,height:f.height}),l.lastAffix=!!l.affixStyle,o&&r!==l.lastAffix&&o(l.lastAffix),e.setState(l)}}},e.prepareMeasure=function(){e.setState({status:N.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.render=function(){var t=e.context.getPrefixCls,n=e.state,o=n.affixStyle,u=n.placeholderStyle,l=e.props,s=l.prefixCls,f=l.children,p=i()(x({},t("affix",s),o)),d=Object(a.default)(e.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return r.createElement(c.default,{onResize:function(){e.updatePosition()}},r.createElement("div",j({},d,{ref:e.savePlaceholderNode}),o&&r.createElement("div",{style:u,"aria-hidden":"true"}),r.createElement("div",{className:p,ref:e.saveFixedNode,style:o},r.createElement(c.default,{onResize:function(){e.updatePosition()}},f))))},e}return t=l,(n=[{key:"getTargetFunc",value:function(){var e=this.context.getTargetContainer,t=this.props.target;return void 0!==t?t:e||A}},{key:"componentDidMount",value:function(){var e=this,t=this.getTargetFunc();t&&(this.timeout=setTimeout((function(){O(t(),e),e.updatePosition()})))}},{key:"componentDidUpdate",value:function(e){var t=this.state.prevTarget,n=this.getTargetFunc(),r=null;n&&(r=n()||null),t!==r&&(w(this),r&&(O(r,this),this.updatePosition()),this.setState({prevTarget:r})),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),w(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var e=this.getTargetFunc(),t=this.state.affixStyle;if(e&&t){var n=this.getOffsetTop(),r=this.getOffsetBottom(),o=e();if(o&&this.placeholderNode){var i=v(o),a=v(this.placeholderNode),c=m(a,i,n),u=y(a,i,r);if(void 0!==c&&t.top===c||void 0!==u&&t.bottom===u)return}}this.prepareMeasure()}}])&&S(t.prototype,n),o&&S(t,o),l}(r.Component);R.contextType=u.b,T([d()],R.prototype,"updatePosition",null),T([d()],R.prototype,"lazyUpdatePosition",null);t.a=R},function(e,t,n){"use strict";var r=n(0),o=n(309),i=n(190),a=function(e){return e?"function"==typeof e?e():e:null};function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},l=r.forwardRef((function(e,t){var n=e.prefixCls,l=e.title,s=e.content,f=u(e,["prefixCls","title","content"]),p=(0,r.useContext(i.b).getPrefixCls)("popover",n);return r.createElement(o.a,c({},f,{prefixCls:p,ref:t,overlay:function(e){return r.createElement(r.Fragment,null,l&&r.createElement("div",{className:"".concat(e,"-title")},a(l)),r.createElement("div",{className:"".concat(e,"-inner-content")},a(s)))}(p)}))}));l.displayName="Popover",l.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}};t.a=l}]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/audio-control.272bd884.js b/plugins/saladict-ztools/ext-saladic/assets/audio-control.272bd884.js deleted file mode 100644 index 4bd1c973..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/audio-control.272bd884.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[8],{1:function(e,t,s){"use strict";s.d(t,"c",(function(){return d})),s.d(t,"a",(function(){return l})),s.d(t,"b",(function(){return u}));var r=s(76),n=s(38),i=s(10);const a=()=>{},o=new WeakMap,c=new WeakMap,h=new WeakMap,d={sync:{clear:g,remove:f,get:p,set:w,addListener:_,removeListener:v,createStream:m,get __storageArea__(){return"sync"}},local:{clear:g,remove:f,get:p,set:w,addListener:_,removeListener:v,createStream:m,get __storageArea__(){return"local"}},clear:g,addListener:_,removeListener:v,createStream:m,get __storageArea__(){return"all"}},l={send:L,addListener:y,removeListener:b,createStream:S,get __self__(){return!1},self:{initClient:T,initServer:function(){window.pageId="background page";const e=/^\[\[(.+)\]\]$/;browser.runtime.onMessage.addListener((t,s)=>{if(!t||!t.type)return;if("PAGE_INFO"===t.type)return Promise.resolve(function(e){const t={pageId:"",faviconURL:"",pageTitle:"",pageURL:""},s=e.tab;s?(t.pageId=s.id||"",s.favIconUrl&&(t.faviconURL=s.favIconUrl),s.url&&(t.pageURL=s.url),s.title&&(t.pageTitle=s.title)):(t.pageId="popup",e.url&&!e.url.startsWith("http")&&(t.faviconURL="https://saladict.crimx.com/favicon.ico"));return t}(s));const r=e.exec(t.type);if(r){t.type=r[1];const e=s.tab&&s.tab.id;return e?L(e,t):L(t)}})},send:async function(e){!1;void 0===window.pageId&&await T();return browser.runtime.sendMessage(Object.assign({},e,{__pageId__:window.pageId,type:`[[${e.type}]]`})).catch(e=>{!1})},addListener:y,removeListener:b,createStream:S,get __self__(){return!0}}};async function u(e,t){const s="string"==typeof e?{url:e,self:t}:e,r=!1!==s.unique,n=s.self?browser.runtime.getURL(s.url):s.url;if(r){const e=await browser.tabs.query({url:n}).catch(()=>[]);if(e.length>0){const{index:t,windowId:s}=e[0];return"function"==typeof browser.tabs.highlight&&await browser.tabs.highlight({tabs:t,windowId:s}),void await browser.windows.update(s,{focused:!0})}}await browser.tabs.create({url:n,active:!1!==s.active})}function g(){return"all"===this.__storageArea__?Promise.all([browser.storage.local.clear(),browser.storage.sync.clear()]).then(a):browser.storage[this.__storageArea__].clear()}function f(e){return browser.storage[this.__storageArea__].remove(e)}function p(...e){return browser.storage[this.__storageArea__].get(...e)}function w(e){return browser.storage[this.__storageArea__].set(e)}function _(...e){let t,s;if("function"==typeof e[0])t="",s=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],s=e[1]}let r=h.get(s);r||(r=new Map,h.set(s,r));const n=this.__storageArea__+t;let i=r.get(n);return i||(i=(e,r)=>{"all"!==this.__storageArea__&&r!==this.__storageArea__||t&&!(t in e)||s(e,r)},r.set(n,i)),browser.storage.onChanged.addListener(i)}function v(...e){let t,s;if("function"==typeof e[0])t="",s=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],s=e[1]}const r=h.get(s);if(r){if(!t)return r.forEach(e=>{browser.storage.onChanged.removeListener(e)}),void h.delete(s);{const e=this.__storageArea__+t,n=r.get(e);if(n)return browser.storage.onChanged.removeListener(n),r.delete(e),void(r.size<=0&&h.delete(s))}}browser.storage.onChanged.removeListener(s)}function m(e){if(!e)throw new Error("Missing key");return Object(r.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)).pipe(Object(n.a)(t=>Object.prototype.hasOwnProperty.call(Array.isArray(t)?t[0]:t,e)),Object(i.a)(t=>Array.isArray(t)?t[0][e]:t[e]))}function L(...e){return(1===e.length?browser.runtime.sendMessage(e[0]):browser.tabs.sendMessage(e[0],e[1])).catch(e=>{!1})}function y(...e){void 0===window.pageId&&T();const t=this.__self__?c:o,s=1===e.length?void 0:e[0],r=1===e.length?e[0]:e[1];let n=t.get(r);n||(n=new Map,t.set(r,n));let i=n.get(s||"__DEFAULT_MSGTYPE__");return i||(i=(e,t)=>{if(e&&(this.__self__?window.pageId===e.__pageId__:!e.__pageId__)&&(null==s||e.type===s))return r(e,t)},n.set(s||"__DEFAULT_MSGTYPE__",i)),browser.runtime.onMessage.addListener(i)}function b(...e){const t=this.__self__?c:o,s=1===e.length?void 0:e[0],r=1===e.length?e[0]:e[1],n=t.get(r);if(n){if(!s)return n.forEach(e=>browser.runtime.onMessage.removeListener(e)),void t.delete(r);{const e=n.get(s);if(e)return browser.runtime.onMessage.removeListener(e),n.delete(s),void(n.size<=0&&t.delete(r))}}browser.runtime.onMessage.removeListener(r)}function S(e){return(e?Object(r.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)):Object(r.a)(e=>this.addListener(e),e=>this.removeListener(e))).pipe(Object(i.a)(e=>Array.isArray(e)?e[0]:e))}function T(){return void 0===window.pageId?l.send({type:"PAGE_INFO"}).then(({pageId:e,faviconURL:t,pageTitle:s,pageURL:r})=>(window.pageId=e,window.faviconURL=t,s&&(window.pageTitle=s),r&&(window.pageURL=r),e)):Promise.resolve(window.pageId)}},1306:function(e,t,s){e.exports=s(1317)},1309:function(e,t,s){},1317:function(e,t,s){"use strict";s.r(t);var r=s(0),n=s.n(r),i=s(20),a=s.n(i),o=s(4),c=s.n(o),h=s(958),d=s.n(h),l=s(959),u=s.n(l),g=s(960),f=s.n(g),p=s(1),w=s(2),_=s(759);class v extends r.PureComponent{constructor(...e){super(...e),this.containerRef=r.createRef(),this.wavesurfer=void 0,this.region=void 0,this.soundTouch=void 0,this.soundTouchNode=void 0,this.shouldSTSync=!1,this.playOnLoad=!0,this.src=void 0,this.state={isPlaying:!1,speed:1,loop:!1,pitchStretch:!w.c},this.initSoundTouch=e=>{const t=e.backend.buffer,s=t.length,r=t.getChannelData(0),n=t.numberOfChannels>1?t.getChannelData(1):r;let i=0;const a={extract:(t,a,o)=>{this.shouldSTSync&&(i=~~(e.backend.getPlayedPercents()*s)-o,this.shouldSTSync=!1),o+=i;for(let e=0;e<a;e++)t[2*e]=r[e+o],t[2*e+1]=n[e+o];return Math.min(a,s-o)}};this.soundTouch=new _.b(e.backend.ac.sampleRate),this.soundTouchNode=Object(_.c)(e.backend.ac,new _.a(a,this.soundTouch)),e.backend.setFilter(this.soundTouchNode)},this.initWavesurfer=()=>{const e=d.a.create({container:this.containerRef.current,waveColor:"#f9690e",progressColor:"#B71C0C",plugins:[u.a.create()]});this.wavesurfer=e,e.enableDragSelection({}),e.on("region-created",e=>{this.removeRegion(),this.region=e}),e.on("region-update-end",this.play),e.on("region-out",this.onPlayEnd),e.on("seek",()=>{this.isInRegion()||this.removeRegion(),this.shouldSTSync=!0}),e.on("ready",this.onLoad),e.on("finish",this.onPlayEnd)},this.onLoad=()=>{this.playOnLoad&&this.play(),this.playOnLoad=!0},this.play=()=>{this.setState({isPlaying:!0}),this.wavesurfer&&(this.state.pitchStretch&&this.soundTouchNode&&this.wavesurfer.getFilters().length<=0&&this.wavesurfer.backend.setFilter(this.soundTouchNode),this.region&&!this.isInRegion()?this.wavesurfer.play(this.region.start):this.wavesurfer.play()),this.shouldSTSync=!0},this.pause=()=>{this.setState({isPlaying:!1}),this.soundTouchNode&&this.soundTouchNode.disconnect(),this.wavesurfer&&(this.wavesurfer.pause(),this.wavesurfer.backend.disconnectFilters())},this.togglePlay=()=>{this.state.isPlaying?this.pause():this.play()},this.onPlayEnd=()=>{this.state.loop?this.play():this.pause()},this.updateSpeed=e=>{this.setState({speed:e}),e<.1||e>3||(this.wavesurfer&&(this.wavesurfer.setPlaybackRate(e),1!==e&&this.state.pitchStretch&&!this.soundTouch&&this.initSoundTouch(this.wavesurfer),this.soundTouch&&(this.soundTouch.tempo=e)),this.shouldSTSync=!0)},this.toggleLoop=e=>{this.setState({loop:e.currentTarget.checked}),e.currentTarget.checked&&!this.state.isPlaying&&this.play()},this.togglePitchStretch=e=>{this.updatePitchStretch(e.currentTarget.checked),p.c.local.set({waveform_pitch:e.currentTarget.checked})},this.updatePitchStretch=e=>{this.setState({pitchStretch:e}),e?1!==this.state.speed&&this.soundTouchNode&&this.wavesurfer&&this.wavesurfer.getFilters().length<=0&&(this.wavesurfer.backend.setFilter(this.soundTouchNode),this.shouldSTSync=!0):(this.soundTouchNode&&this.soundTouchNode.disconnect(),this.wavesurfer&&this.wavesurfer.backend.disconnectFilters())},this.isInRegion=(e=this.region)=>{if(e&&this.wavesurfer){const t=this.wavesurfer.getCurrentTime();return t>=e.start&&t<=e.end}return!1},this.removeRegion=()=>{this.region&&this.region.remove(),this.region=null},this.reset=()=>{this.removeRegion(),this.updateSpeed(1),this.wavesurfer&&(this.wavesurfer.pause(),this.wavesurfer.empty(),this.wavesurfer.backend.disconnectFilters()),this.soundTouch&&(this.soundTouch.clear(),this.soundTouch.tempo=1),this.soundTouchNode&&this.soundTouchNode.disconnect(),this.soundTouch=null,this.soundTouchNode=null,this.shouldSTSync=!1},this.load=e=>{e?(this.wavesurfer?this.reset():this.initWavesurfer(),this.wavesurfer&&(this.wavesurfer.load(e),"suspended"===this.wavesurfer.backend.ac.state&&this.playOnLoad&&new Audio(e).play())):this.reset()}}async componentDidMount(){p.a.self.addListener("PLAY_AUDIO",async({payload:e})=>{this.load(e)}),p.a.self.send({type:"LAST_PLAY_AUDIO"}).then(e=>{e&&e.src&&e.timestamp-Date.now()<1e4?this.load(e.src):(this.playOnLoad=!1,this.load("https://fanyi.sogou.com/reventondc/synthesis?text=Nothing%20to%20play&speed=1&lang=en&from=translateweb"))}),p.c.local.get("waveform_pitch").then(({waveform_pitch:e})=>{null!=e&&this.updatePitchStretch(Boolean(e))})}componentWillUnmount(){this.reset(),this.wavesurfer&&(this.wavesurfer.destroy(),this.wavesurfer=null)}render(){return r.createElement("div",{className:c()({darkMode:this.props.darkMode})},r.createElement("div",{className:"saladict-waveformWrap saladict-theme"},r.createElement("div",{ref:this.containerRef}),r.createElement("div",{className:"saladict-waveformCtrl"},r.createElement("button",{type:"button",className:"saladict-waveformPlay",title:"Play/Pause",onClick:this.togglePlay},r.createElement("div",{className:"saladict-waveformPlay_FG"+(this.state.isPlaying?" isPlaying":"")})),r.createElement(f.a,{className:"saladict-waveformSpeed",title:"Speed",value:this.state.speed,min:.1,max:3,step:.005,decimals:3,onValueChange:this.updateSpeed}),r.createElement("label",{className:"saladict-waveformBtn_label",title:"Loop"},this.state.loop?r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"var(--color-font)"},r.createElement("path",{d:"M23.242 388.417l162.59 120.596v-74.925h300.281l-.297-240.358-89.555-.239-.44 150.801H185.832l.81-75.934-163.4 120.06z"}),r.createElement("path",{d:"M490.884 120.747L328.294.15l.001 74.925H28.013l.297 240.358 89.555.239.44-150.801h209.99l-.81 75.934 163.4-120.06z"})):r.createElement("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",fill:"var(--color-divider)"},r.createElement("path",{d:"M 23.242 388.417 L 23.243 388.417 L 23.242 388.418 Z M 23.243 388.418 L 186.642 268.358 L 185.832 344.292 L 283.967 344.292 L 331.712 434.088 L 185.832 434.088 L 185.832 509.013 Z M 395.821 344.292 L 396.261 193.491 L 485.816 193.73 L 486.113 434.088 L 388.064 434.088 L 340.319 344.292 Z"}),r.createElement("path",{d:"M 490.884 120.747 L 490.883 120.746 L 490.885 120.745 Z M 490.883 120.746 L 327.485 240.805 L 328.295 164.871 L 244.267 164.871 L 196.521 75.075 L 328.295 75.075 L 328.294 0.15 Z M 118.305 164.871 L 117.865 315.672 L 28.31 315.433 L 28.013 75.075 L 141.077 75.075 L 188.823 164.871 Z"}),r.createElement("rect",{x:"525.825",y:"9.264",width:"45.879",height:"644.398",transform:"matrix(0.882947, -0.469472, 0.469472, 0.882947, -403.998657, 225.106232)"})),r.createElement("input",{type:"checkbox",checked:this.state.loop,onChange:this.toggleLoop})),!w.c&&r.createElement("label",{className:"saladict-waveformPitch saladict-waveformBtn_label",title:"Pitch Stretch"},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 467.987 467.987",fill:this.state.pitchStretch?"var(--color-font)":"var(--color-divider)"},r.createElement("path",{d:"M70.01 146.717h47.924V321.27H70.01zM210.032 146.717h47.924V321.27h-47.924zM350.053 146.717h47.924V321.27h-47.924zM0 196.717h47.924v74.553H0zM280.042 196.717h47.924v74.553h-47.924zM420.063 196.717h47.924v74.553h-47.924zM140.021 96.717h47.924V371.27h-47.924z"})),r.createElement("input",{type:"checkbox",checked:this.state.pitchStretch,onChange:this.togglePitchStretch})))))}}var m=v;s(1309);const L=new URL(document.URL).searchParams,y=Boolean(L.get("darkmode"));a.a.render(n.a.createElement(m,{darkMode:y}),document.getElementById("root"))},2:function(e,t,s){"use strict";s.d(t,"f",(function(){return r})),s.d(t,"h",(function(){return n})),s.d(t,"j",(function(){return i})),s.d(t,"i",(function(){return a})),s.d(t,"k",(function(){return o})),s.d(t,"l",(function(){return c})),s.d(t,"a",(function(){return h})),s.d(t,"b",(function(){return d})),s.d(t,"c",(function(){return l})),s.d(t,"g",(function(){return u})),s.d(t,"e",(function(){return g})),s.d(t,"d",(function(){return f}));const r=()=>!!window.__SALADICT_INTERNAL_PAGE__,n=()=>!!window.__SALADICT_OPTIONS_PAGE__,i=()=>!!window.__SALADICT_POPUP_PAGE__,a=()=>!!window.__SALADICT_PDF_PAGE__,o=()=>!!window.__SALADICT_QUICK_SEARCH_PAGE__,c=()=>i()||o(),h="saladict-external",d="saladict-panel",l=navigator.userAgent.includes("Firefox"),u=navigator.userAgent.includes("OPR");function g(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(h))return!0;return!1}function f(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(d))return!0;return!1}}},[[1306,0,1,24]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/audio-control.8c2ee2d3.css b/plugins/saladict-ztools/ext-saladic/assets/audio-control.8c2ee2d3.css deleted file mode 100644 index 319630de..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/audio-control.8c2ee2d3.css +++ /dev/null @@ -1 +0,0 @@ -html,body{height:165px;overflow:hidden;margin:0;padding:0}.saladict-theme{background-color:#fff;color:#333;--color-brand: #5caf9e;--color-background: #fff;--color-rgb-background: 255, 255, 255;--color-font: #333;--color-font-grey: #666;--color-divider: #ddd}.darkMode .saladict-theme{background-color:#222;color:#ddd;--color-brand: #1e947e;--color-background: #222;--color-rgb-background: 34, 34, 34;--color-font: #ddd;--color-font-grey: #aaa;--color-divider: #4d4748}#waveform-container{min-height:128px;background:var(--color-background)}.saladict-waveformWrap{overflow:hidden;height:165px}.saladict-waveformCtrl{display:flex;justify-content:center;align-items:center;font-size:16px}.saladict-waveformPlay_FG:after,.saladict-waveformPlay_FG:before{content:"";position:absolute;top:0;width:0;height:0;border:.65em solid transparent;border-width:.65em 1.3em;border-left-color:var(--color-font);transition-property:border,height,right;transition-duration:.25s;transition-timing-function:ease}.saladict-waveformPlay{margin:.5em;padding:3px;border:none;background:none;cursor:pointer}.saladict-waveformPlay:hover{outline:none}.saladict-waveformPlay_FG{position:relative;width:1.3em;height:1.3em;overflow:hidden}.saladict-waveformPlay_FG:before{left:0}.saladict-waveformPlay_FG.isPlaying:before{height:1.3em;border-width:0 .6em}.saladict-waveformPlay_FG:after{right:0}.saladict-waveformPlay_FG.isPlaying:after{right:-0.6em;height:1.3em;border-width:0 .6em}.saladict-waveformSpeed{width:3em;text-align:center}.saladict-waveformBtn_label{display:block;width:1.3em;height:1.3em;overflow:hidden;margin:.5em;cursor:pointer}.saladict-waveformBtn_label>input{display:inline-block;position:absolute;width:0;height:0;opacity:0;z-index:-20000px}.saladict-waveformPitch{margin:.5em 0} diff --git a/plugins/saladict-ztools/ext-saladic/assets/audio-control.917f4576.css b/plugins/saladict-ztools/ext-saladic/assets/audio-control.917f4576.css new file mode 100644 index 00000000..295db052 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/audio-control.917f4576.css @@ -0,0 +1 @@ +html,body{height:165px;overflow:hidden;margin:0;padding:0}.saladict-theme{background-color:#fff;color:#24292f;--color-brand: #2f9d8a;--color-background: #ffffff;--color-rgb-background: 255, 255, 255;--color-font: #24292f;--color-font-grey: #5d6670;--color-divider: #d9dee3;--color-surface: #f6f8fa;--color-surface-active: #eaeef2;--color-link: #286aa8}.darkMode .saladict-theme{background-color:#282c30;color:#e3e0da;--color-brand: #2b9f8d;--color-background: #282c30;--color-rgb-background: 40, 44, 48;--color-font: #e3e0da;--color-font-grey: #b8b3aa;--color-divider: #555b61;--color-surface: #33383d;--color-surface-active: #3d444a;--color-link: #8eb7e6}#waveform-container{min-height:128px;background:var(--color-background)}.saladict-waveformWrap{overflow:hidden;height:165px}.saladict-waveformCtrl{display:flex;justify-content:center;align-items:center;font-size:16px}.saladict-waveformPlay_FG:after,.saladict-waveformPlay_FG:before{content:"";position:absolute;top:0;width:0;height:0;border:.65em solid transparent;border-width:.65em 1.3em;border-left-color:var(--color-font);transition-property:border,height,right;transition-duration:.25s;transition-timing-function:ease}.saladict-waveformPlay{margin:.5em;padding:3px;border:none;background:none;cursor:pointer}.saladict-waveformPlay:hover{outline:none}.saladict-waveformPlay_FG{position:relative;width:1.3em;height:1.3em;overflow:hidden}.saladict-waveformPlay_FG:before{left:0}.saladict-waveformPlay_FG.isPlaying:before{height:1.3em;border-width:0 .6em}.saladict-waveformPlay_FG:after{right:0}.saladict-waveformPlay_FG.isPlaying:after{right:-0.6em;height:1.3em;border-width:0 .6em}.saladict-waveformSpeed{width:3em;text-align:center}.saladict-waveformBtn_label{display:block;width:1.3em;height:1.3em;overflow:hidden;margin:.5em;cursor:pointer}.saladict-waveformBtn_label>input{display:inline-block;position:absolute;width:0;height:0;opacity:0;z-index:-20000px}.saladict-waveformPitch{margin:.5em 0} diff --git a/plugins/saladict-ztools/ext-saladic/assets/audio-control.c2446ee5.js b/plugins/saladict-ztools/ext-saladic/assets/audio-control.c2446ee5.js new file mode 100644 index 00000000..45dc1fd4 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/audio-control.c2446ee5.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[8],{1:function(e,t,r){"use strict";r.d(t,"c",(function(){return d})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return u}));var s=r(81),n=r(39),i=r(10);const a=()=>{},o=new WeakMap,c=new WeakMap,h=new WeakMap,d={sync:{clear:g,remove:f,get:w,set:p,addListener:_,removeListener:m,createStream:v,get __storageArea__(){return"sync"}},local:{clear:g,remove:f,get:w,set:p,addListener:_,removeListener:m,createStream:v,get __storageArea__(){return"local"}},clear:g,addListener:_,removeListener:m,createStream:v,get __storageArea__(){return"all"}},l={send:E,addListener:S,removeListener:T,createStream:A,get __self__(){return!1},self:{initClient:P,initServer:function(){window.pageId="background page";const e=/^\[\[(.+)\]\]$/;browser.runtime.onMessage.addListener((t,r)=>{if(!t||!t.type)return;if("PAGE_INFO"===t.type)return Promise.resolve(function(e){const t={pageId:"",faviconURL:"",pageTitle:"",pageURL:""},r=e.tab;r?(t.pageId=r.id||"",r.favIconUrl&&(t.faviconURL=r.favIconUrl),r.url&&(t.pageURL=r.url),r.title&&(t.pageTitle=r.title)):(t.pageId="popup",e.url&&!e.url.startsWith("http")&&(t.faviconURL="https://saladict.crimx.com/favicon.ico"));return t}(r));const s=e.exec(t.type);if(s){t.type=s[1];const e=r.tab&&r.tab.id;return e?E(e,t):E(t)}})},send:async function e(t){const r=y("message.self.send",e);try{return void 0===window.pageId&&await P(),browser.runtime.sendMessage(Object.assign({},t,{__pageId__:window.pageId,type:`[[${t.type}]]`})).then(e=>b("message.self.send",[t],e,r)).catch(e=>{throw L("message.self.send",[t],e,r)})}catch(e){throw L("message.self.send",[t],e,r)}},addListener:S,removeListener:T,createStream:A,get __self__(){return!0}}};async function u(e,t){const r="string"==typeof e?{url:e,self:t}:e,s=!1!==r.unique,n=r.self?browser.runtime.getURL(r.url):r.url;if(s){const e=await browser.tabs.query({url:n}).catch(()=>[]);if(e.length>0){const{index:t,windowId:r}=e[0];return"function"==typeof browser.tabs.highlight&&await browser.tabs.highlight({tabs:t,windowId:r}),void await browser.windows.update(r,{focused:!0})}}await browser.tabs.create({url:n,active:!1!==r.active})}function g(){return"all"===this.__storageArea__?Promise.all([browser.storage.local.clear(),browser.storage.sync.clear()]).then(a):browser.storage[this.__storageArea__].clear()}function f(e){return browser.storage[this.__storageArea__].remove(e)}function w(...e){return browser.storage[this.__storageArea__].get(...e)}function p(e){return browser.storage[this.__storageArea__].set(e)}function _(...e){let t,r;if("function"==typeof e[0])t="",r=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],r=e[1]}let s=h.get(r);s||(s=new Map,h.set(r,s));const n=this.__storageArea__+t;let i=s.get(n);return i||(i=(e,s)=>{"all"!==this.__storageArea__&&s!==this.__storageArea__||t&&!(t in e)||r(e,s)},s.set(n,i)),browser.storage.onChanged.addListener(i)}function m(...e){let t,r;if("function"==typeof e[0])t="",r=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],r=e[1]}const s=h.get(r);if(s){if(!t)return s.forEach(e=>{browser.storage.onChanged.removeListener(e)}),void h.delete(r);{const e=this.__storageArea__+t,n=s.get(e);if(n)return browser.storage.onChanged.removeListener(n),s.delete(e),void(s.size<=0&&h.delete(r))}}browser.storage.onChanged.removeListener(r)}function v(e){if(!e)throw new Error("Missing key");return Object(s.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)).pipe(Object(n.a)(t=>Object.prototype.hasOwnProperty.call(Array.isArray(t)?t[0]:t,e)),Object(i.a)(t=>Array.isArray(t)?t[0][e]:t[e]))}function y(e,t){const r=new Error(`[${e}] call stack`),s=Error.captureStackTrace;return s&&s(r,t),r}function L(e,t,r,s){const n=r&&"object"==typeof r&&r.runtimeLastError instanceof Error?r.runtimeLastError:r instanceof Error?r:new Error(String(r||"Unknown error")),i=1===t.length?t[0]:t[1],a=1===t.length?"runtime":"tab "+t[0],o=new Error(`[${e}] runtime.lastError while sending "${i.type}" to ${a}: ${n.message}`);return o.name="MessageRuntimeError",o.cause=n,o.runtimeLastError=n,o.callContext=s,o.stack=[`${o.name}: ${o.message}`,"","Runtime error stack:",n.stack||n.message,"","Message call stack:",s.stack||s.message].join("\n"),o}function b(e,t,r,s){if("PAGE_INFO"===(1===t.length?t[0]:t[1]).type){const n=r;if(!n||"object"!=typeof n||null==n.pageId)throw L(e,t,new Error('Invalid response for "PAGE_INFO": expected an object with pageId, received '+String(r)),s)}return r}function E(...e){const t=y("message.send",E);return(1===e.length?browser.runtime.sendMessage(e[0]):browser.tabs.sendMessage(e[0],e[1])).then(r=>b("message.send",e,r,t)).catch(r=>{throw L("message.send",e,r,t)})}function S(...e){this.__self__&&void 0===window.pageId&&P().catch(console.error);const t=this.__self__?c:o,r=1===e.length?void 0:e[0],s=1===e.length?e[0]:e[1];let n=t.get(s);n||(n=new Map,t.set(s,n));let i=n.get(r||"__DEFAULT_MSGTYPE__");return i||(i=(e,t)=>{if(e&&(this.__self__?window.pageId===e.__pageId__:!e.__pageId__)&&(null==r||e.type===r))return s(e,t)},n.set(r||"__DEFAULT_MSGTYPE__",i)),browser.runtime.onMessage.addListener(i)}function T(...e){const t=this.__self__?c:o,r=1===e.length?void 0:e[0],s=1===e.length?e[0]:e[1],n=t.get(s);if(n){if(!r)return n.forEach(e=>browser.runtime.onMessage.removeListener(e)),void t.delete(s);{const e=n.get(r);if(e)return browser.runtime.onMessage.removeListener(e),n.delete(r),void(n.size<=0&&t.delete(s))}}browser.runtime.onMessage.removeListener(s)}function A(e){return(e?Object(s.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)):Object(s.a)(e=>this.addListener(e),e=>this.removeListener(e))).pipe(Object(i.a)(e=>Array.isArray(e)?e[0]:e))}function P(){return void 0===window.pageId?l.send({type:"PAGE_INFO"}).then(e=>{const{pageId:t,faviconURL:r,pageTitle:s,pageURL:n}=e;return window.pageId=t,window.faviconURL=r,s&&(window.pageTitle=s),n&&(window.pageURL=n),t}):Promise.resolve(window.pageId)}},1352:function(e,t,r){e.exports=r(1363)},1355:function(e,t,r){},1363:function(e,t,r){"use strict";r.r(t);var s=r(0),n=r.n(s),i=r(21),a=r.n(i),o=r(5),c=r.n(o),h=r(1024),d=r.n(h),l=r(1025),u=r.n(l),g=r(1026),f=r.n(g),w=r(1),p=r(2),_=r(792);class m extends s.PureComponent{constructor(...e){super(...e),this.containerRef=s.createRef(),this.wavesurfer=void 0,this.region=void 0,this.soundTouch=void 0,this.soundTouchNode=void 0,this.shouldSTSync=!1,this.playOnLoad=!0,this.src=void 0,this.state={isPlaying:!1,speed:1,loop:!1,pitchStretch:!p.d},this.initSoundTouch=e=>{const t=e.backend.buffer,r=t.length,s=t.getChannelData(0),n=t.numberOfChannels>1?t.getChannelData(1):s;let i=0;const a={extract:(t,a,o)=>{this.shouldSTSync&&(i=~~(e.backend.getPlayedPercents()*r)-o,this.shouldSTSync=!1),o+=i;for(let e=0;e<a;e++)t[2*e]=s[e+o],t[2*e+1]=n[e+o];return Math.min(a,r-o)}};this.soundTouch=new _.b(e.backend.ac.sampleRate),this.soundTouchNode=Object(_.c)(e.backend.ac,new _.a(a,this.soundTouch)),e.backend.setFilter(this.soundTouchNode)},this.initWavesurfer=()=>{const e=d.a.create({container:this.containerRef.current,waveColor:"#f9690e",progressColor:"#B71C0C",plugins:[u.a.create()]});this.wavesurfer=e,e.enableDragSelection({}),e.on("region-created",e=>{this.removeRegion(),this.region=e}),e.on("region-update-end",this.play),e.on("region-out",this.onPlayEnd),e.on("seek",()=>{this.isInRegion()||this.removeRegion(),this.shouldSTSync=!0}),e.on("ready",this.onLoad),e.on("finish",this.onPlayEnd)},this.onLoad=()=>{this.playOnLoad&&this.play(),this.playOnLoad=!0},this.play=()=>{this.setState({isPlaying:!0}),this.wavesurfer&&(this.state.pitchStretch&&this.soundTouchNode&&this.wavesurfer.getFilters().length<=0&&this.wavesurfer.backend.setFilter(this.soundTouchNode),this.region&&!this.isInRegion()?this.wavesurfer.play(this.region.start):this.wavesurfer.play()),this.shouldSTSync=!0},this.pause=()=>{this.setState({isPlaying:!1}),this.soundTouchNode&&this.soundTouchNode.disconnect(),this.wavesurfer&&(this.wavesurfer.pause(),this.wavesurfer.backend.disconnectFilters())},this.togglePlay=()=>{this.state.isPlaying?this.pause():this.play()},this.onPlayEnd=()=>{this.state.loop?this.play():this.pause()},this.updateSpeed=e=>{this.setState({speed:e}),e<.1||e>3||(this.wavesurfer&&(this.wavesurfer.setPlaybackRate(e),1!==e&&this.state.pitchStretch&&!this.soundTouch&&this.initSoundTouch(this.wavesurfer),this.soundTouch&&(this.soundTouch.tempo=e)),this.shouldSTSync=!0)},this.toggleLoop=e=>{this.setState({loop:e.currentTarget.checked}),e.currentTarget.checked&&!this.state.isPlaying&&this.play()},this.togglePitchStretch=e=>{this.updatePitchStretch(e.currentTarget.checked),w.c.local.set({waveform_pitch:e.currentTarget.checked})},this.updatePitchStretch=e=>{this.setState({pitchStretch:e}),e?1!==this.state.speed&&this.soundTouchNode&&this.wavesurfer&&this.wavesurfer.getFilters().length<=0&&(this.wavesurfer.backend.setFilter(this.soundTouchNode),this.shouldSTSync=!0):(this.soundTouchNode&&this.soundTouchNode.disconnect(),this.wavesurfer&&this.wavesurfer.backend.disconnectFilters())},this.isInRegion=(e=this.region)=>{if(e&&this.wavesurfer){const t=this.wavesurfer.getCurrentTime();return t>=e.start&&t<=e.end}return!1},this.removeRegion=()=>{this.region&&this.region.remove(),this.region=null},this.reset=()=>{this.removeRegion(),this.updateSpeed(1),this.wavesurfer&&(this.wavesurfer.pause(),this.wavesurfer.empty(),this.wavesurfer.backend.disconnectFilters()),this.soundTouch&&(this.soundTouch.clear(),this.soundTouch.tempo=1),this.soundTouchNode&&this.soundTouchNode.disconnect(),this.soundTouch=null,this.soundTouchNode=null,this.shouldSTSync=!1},this.load=e=>{e?(this.wavesurfer?this.reset():this.initWavesurfer(),this.wavesurfer&&(this.wavesurfer.load(e),"suspended"===this.wavesurfer.backend.ac.state&&this.playOnLoad&&new Audio(e).play())):this.reset()}}async componentDidMount(){w.a.self.addListener("PLAY_AUDIO",async({payload:e})=>{this.load(e)}),w.a.self.send({type:"LAST_PLAY_AUDIO"}).then(e=>{e&&e.src&&e.timestamp-Date.now()<1e4?this.load(e.src):(this.playOnLoad=!1,this.load("https://fanyi.sogou.com/reventondc/synthesis?text=Nothing%20to%20play&speed=1&lang=en&from=translateweb"))}),w.c.local.get("waveform_pitch").then(({waveform_pitch:e})=>{null!=e&&this.updatePitchStretch(Boolean(e))})}componentWillUnmount(){this.reset(),this.wavesurfer&&(this.wavesurfer.destroy(),this.wavesurfer=null)}render(){return s.createElement("div",{className:c()({darkMode:this.props.darkMode})},s.createElement("div",{className:"saladict-waveformWrap saladict-theme"},s.createElement("div",{ref:this.containerRef}),s.createElement("div",{className:"saladict-waveformCtrl"},s.createElement("button",{type:"button",className:"saladict-waveformPlay",title:"Play/Pause",onClick:this.togglePlay},s.createElement("div",{className:"saladict-waveformPlay_FG"+(this.state.isPlaying?" isPlaying":"")})),s.createElement(f.a,{className:"saladict-waveformSpeed",title:"Speed",value:this.state.speed,min:.1,max:3,step:.005,decimals:3,onValueChange:this.updateSpeed}),s.createElement("label",{className:"saladict-waveformBtn_label",title:"Loop"},this.state.loop?s.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"var(--color-font)"},s.createElement("path",{d:"M23.242 388.417l162.59 120.596v-74.925h300.281l-.297-240.358-89.555-.239-.44 150.801H185.832l.81-75.934-163.4 120.06z"}),s.createElement("path",{d:"M490.884 120.747L328.294.15l.001 74.925H28.013l.297 240.358 89.555.239.44-150.801h209.99l-.81 75.934 163.4-120.06z"})):s.createElement("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",fill:"var(--color-divider)"},s.createElement("path",{d:"M 23.242 388.417 L 23.243 388.417 L 23.242 388.418 Z M 23.243 388.418 L 186.642 268.358 L 185.832 344.292 L 283.967 344.292 L 331.712 434.088 L 185.832 434.088 L 185.832 509.013 Z M 395.821 344.292 L 396.261 193.491 L 485.816 193.73 L 486.113 434.088 L 388.064 434.088 L 340.319 344.292 Z"}),s.createElement("path",{d:"M 490.884 120.747 L 490.883 120.746 L 490.885 120.745 Z M 490.883 120.746 L 327.485 240.805 L 328.295 164.871 L 244.267 164.871 L 196.521 75.075 L 328.295 75.075 L 328.294 0.15 Z M 118.305 164.871 L 117.865 315.672 L 28.31 315.433 L 28.013 75.075 L 141.077 75.075 L 188.823 164.871 Z"}),s.createElement("rect",{x:"525.825",y:"9.264",width:"45.879",height:"644.398",transform:"matrix(0.882947, -0.469472, 0.469472, 0.882947, -403.998657, 225.106232)"})),s.createElement("input",{type:"checkbox",checked:this.state.loop,onChange:this.toggleLoop})),!p.d&&s.createElement("label",{className:"saladict-waveformPitch saladict-waveformBtn_label",title:"Pitch Stretch"},s.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 467.987 467.987",fill:this.state.pitchStretch?"var(--color-font)":"var(--color-divider)"},s.createElement("path",{d:"M70.01 146.717h47.924V321.27H70.01zM210.032 146.717h47.924V321.27h-47.924zM350.053 146.717h47.924V321.27h-47.924zM0 196.717h47.924v74.553H0zM280.042 196.717h47.924v74.553h-47.924zM420.063 196.717h47.924v74.553h-47.924zM140.021 96.717h47.924V371.27h-47.924z"})),s.createElement("input",{type:"checkbox",checked:this.state.pitchStretch,onChange:this.togglePitchStretch})))))}}var v=m;r(1355);const y=new URL(document.URL).searchParams,L=Boolean(y.get("darkmode"));a.a.render(n.a.createElement(v,{darkMode:L}),document.getElementById("root"))},2:function(e,t,r){"use strict";r.d(t,"c",(function(){return s})),r.d(t,"g",(function(){return n})),r.d(t,"i",(function(){return i})),r.d(t,"k",(function(){return a})),r.d(t,"j",(function(){return o})),r.d(t,"l",(function(){return c})),r.d(t,"n",(function(){return h})),r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"h",(function(){return g})),r.d(t,"m",(function(){return f})),r.d(t,"f",(function(){return w})),r.d(t,"e",(function(){return p}));const s=()=>!!window.__SALADICT_BACKGROUND_PAGE__,n=()=>!!window.__SALADICT_INTERNAL_PAGE__,i=()=>!!window.__SALADICT_OPTIONS_PAGE__,a=()=>!!window.__SALADICT_POPUP_PAGE__,o=()=>!!window.__SALADICT_PDF_PAGE__,c=()=>!!window.__SALADICT_QUICK_SEARCH_PAGE__,h=()=>a()||c(),d="saladict-external",l="saladict-panel",u=navigator.userAgent.includes("Firefox"),g=navigator.userAgent.includes("OPR"),f=/apple/i.test(navigator.vendor);function w(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(d))return!0;return!1}function p(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(l))return!0;return!1}}},[[1352,0,1,22]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/background.68a7256d.js b/plugins/saladict-ztools/ext-saladic/assets/background.68a7256d.js deleted file mode 100644 index f340a4a2..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/background.68a7256d.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[9,110,117,124],{1:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h}));var a=n(76),s=n(38),i=n(10);const o=()=>{},r=new WeakMap,c=new WeakMap,l=new WeakMap,d={sync:{clear:f,remove:p,get:g,set:w,addListener:b,removeListener:m,createStream:y,get __storageArea__(){return"sync"}},local:{clear:f,remove:p,get:g,set:w,addListener:b,removeListener:m,createStream:y,get __storageArea__(){return"local"}},clear:f,addListener:b,removeListener:m,createStream:y,get __storageArea__(){return"all"}},u={send:C,addListener:_,removeListener:v,createStream:T,get __self__(){return!1},self:{initClient:z,initServer:function(){window.pageId="background page";const e=/^\[\[(.+)\]\]$/;browser.runtime.onMessage.addListener((t,n)=>{if(!t||!t.type)return;if("PAGE_INFO"===t.type)return Promise.resolve(function(e){const t={pageId:"",faviconURL:"",pageTitle:"",pageURL:""},n=e.tab;n?(t.pageId=n.id||"",n.favIconUrl&&(t.faviconURL=n.favIconUrl),n.url&&(t.pageURL=n.url),n.title&&(t.pageTitle=n.title)):(t.pageId="popup",e.url&&!e.url.startsWith("http")&&(t.faviconURL="https://saladict.crimx.com/favicon.ico"));return t}(n));const a=e.exec(t.type);if(a){t.type=a[1];const e=n.tab&&n.tab.id;return e?C(e,t):C(t)}})},send:async function(e){!1;void 0===window.pageId&&await z();return browser.runtime.sendMessage(Object.assign({},e,{__pageId__:window.pageId,type:`[[${e.type}]]`})).catch(e=>{!1})},addListener:_,removeListener:v,createStream:T,get __self__(){return!0}}};async function h(e,t){const n="string"==typeof e?{url:e,self:t}:e,a=!1!==n.unique,s=n.self?browser.runtime.getURL(n.url):n.url;if(a){const e=await browser.tabs.query({url:s}).catch(()=>[]);if(e.length>0){const{index:t,windowId:n}=e[0];return"function"==typeof browser.tabs.highlight&&await browser.tabs.highlight({tabs:t,windowId:n}),void await browser.windows.update(n,{focused:!0})}}await browser.tabs.create({url:s,active:!1!==n.active})}function f(){return"all"===this.__storageArea__?Promise.all([browser.storage.local.clear(),browser.storage.sync.clear()]).then(o):browser.storage[this.__storageArea__].clear()}function p(e){return browser.storage[this.__storageArea__].remove(e)}function g(...e){return browser.storage[this.__storageArea__].get(...e)}function w(e){return browser.storage[this.__storageArea__].set(e)}function b(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}let a=l.get(n);a||(a=new Map,l.set(n,a));const s=this.__storageArea__+t;let i=a.get(s);return i||(i=(e,a)=>{"all"!==this.__storageArea__&&a!==this.__storageArea__||t&&!(t in e)||n(e,a)},a.set(s,i)),browser.storage.onChanged.addListener(i)}function m(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}const a=l.get(n);if(a){if(!t)return a.forEach(e=>{browser.storage.onChanged.removeListener(e)}),void l.delete(n);{const e=this.__storageArea__+t,s=a.get(e);if(s)return browser.storage.onChanged.removeListener(s),a.delete(e),void(a.size<=0&&l.delete(n))}}browser.storage.onChanged.removeListener(n)}function y(e){if(!e)throw new Error("Missing key");return Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)).pipe(Object(s.a)(t=>Object.prototype.hasOwnProperty.call(Array.isArray(t)?t[0]:t,e)),Object(i.a)(t=>Array.isArray(t)?t[0][e]:t[e]))}function C(...e){return(1===e.length?browser.runtime.sendMessage(e[0]):browser.tabs.sendMessage(e[0],e[1])).catch(e=>{!1})}function _(...e){void 0===window.pageId&&z();const t=this.__self__?c:r,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1];let s=t.get(a);s||(s=new Map,t.set(a,s));let i=s.get(n||"__DEFAULT_MSGTYPE__");return i||(i=(e,t)=>{if(e&&(this.__self__?window.pageId===e.__pageId__:!e.__pageId__)&&(null==n||e.type===n))return a(e,t)},s.set(n||"__DEFAULT_MSGTYPE__",i)),browser.runtime.onMessage.addListener(i)}function v(...e){const t=this.__self__?c:r,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1],s=t.get(a);if(s){if(!n)return s.forEach(e=>browser.runtime.onMessage.removeListener(e)),void t.delete(a);{const e=s.get(n);if(e)return browser.runtime.onMessage.removeListener(e),s.delete(n),void(s.size<=0&&t.delete(a))}}browser.runtime.onMessage.removeListener(a)}function T(e){return(e?Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)):Object(a.a)(e=>this.addListener(e),e=>this.removeListener(e))).pipe(Object(i.a)(e=>Array.isArray(e)?e[0]:e))}function z(){return void 0===window.pageId?u.send({type:"PAGE_INFO"}).then(({pageId:e,faviconURL:t,pageTitle:n,pageURL:a})=>(window.pageId=e,window.faviconURL=t,n&&(window.pageTitle=n),a&&(window.pageURL=a),e)):Promise.resolve(window.pageId)}},107:function(e,t,n){"use strict";n.d(t,"g",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return h})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return p}));var a=n(1),s=n(432),i=n(436),o=n(142);var r=n(251);async function c(e,t){let{syncConfig:n}=await a.c.sync.get("syncConfig");n||(n={}),n[e]=t,await a.c.sync.set({syncConfig:n})}async function l(e){e?await c(e,null):await a.c.sync.remove("syncConfig")}async function d(e,t){await async function(e,t){return(await Object(o.a)()).syncmeta.put({id:e,json:t})}(e,JSON.stringify(t))}async function u(e){const t=await async function(e){return(await Object(o.a)()).syncmeta.where("id").equals(e).first(e=>e&&e.json).catch(e=>{!1})}(e);if(t)return JSON.parse(t)}async function h(e){await Object(i.c)({area:"notebook",words:e})}async function f(){return(await Object(s.a)({area:"notebook"})).words||[]}async function p(e,t,n="",a=""){const{i18n:s}=await r.a.getInstance();await s.loadNamespaces("sync");const i="string"==typeof t?t:t.message,o=`sync:${e}.error.${i}`,c=s.exists(o)?s.t(o):"Unknown error: "+i;browser.notifications.create({type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict "+s.t(`sync:${e}.title`),message:n+c+a,eventTime:Date.now()+2e4,priority:2})}},11:function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(1);function s(e){return e?{date:e.date||Date.now(),text:e.text||"",context:e.context||"",title:e.title||"",url:e.url||"",favicon:e.favicon||"",trans:e.trans||"",note:e.note||""}:{date:Date.now(),text:"",context:"",title:"",url:"",favicon:"",trans:"",note:""}}function i(e){return a.a.send({type:"IS_IN_NOTEBOOK",payload:e}).catch((t=!1,e=>t));var t}async function o(e,t){await a.a.send({type:"SAVE_WORD",payload:{area:e,word:t}})}async function r(e,t){await a.a.send({type:"SYNC_SERVICE_DOWNLOAD"}),await a.a.send({type:"DELETE_WORDS",payload:{area:e,dates:t}})}function c(e,t){return a.a.send({type:"GET_WORDS_BY_TEXT",payload:{area:e,text:t}})}function l(e,t){return a.a.send({type:"GET_WORDS",payload:{area:e,...t}})}},113:function(e,t,n){"use strict";function a(){return Date.now().toString().slice(6)+Math.random().toString().slice(2,8)}n.d(t,"a",(function(){return a}))},1207:function(e,t,n){n(1208),e.exports=n(1310)},1209:function(e,t,n){var a={"./ankiconnect/index.ts":535,"./shanbay/index.ts":536,"./webdav/index.ts":505};function s(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}s.keys=function(){return Object.keys(a)},s.resolve=i,e.exports=s,s.id=1209},1210:function(e,t,n){var a={"./baidu/engine.ts":[542,2,27],"./bing/engine.ts":[821,38],"./caiyun/engine.ts":[822,2,26],"./cambridge/engine.ts":[824,30],"./cnki/engine.ts":[825,39],"./cobuild/engine.ts":[826,31],"./etymonline/engine.ts":[827,40],"./eudic/engine.ts":[828,41],"./google/engine.ts":[829,2,29],"./googledict/engine.ts":[831,32],"./guoyu/engine.ts":[637,55],"./hjdict/engine.ts":[832,33],"./jikipedia/engine.ts":[833,42],"./jukuu/engine.ts":[834,43],"./lexico/engine.ts":[835,34],"./liangan/engine.ts":[836,54],"./longman/engine.ts":[837,35],"./macmillan/engine.ts":[838,44],"./mojidict/engine.ts":[839,56],"./naver/engine.ts":[840,45],"./renren/engine.ts":[841,46],"./shanbay/engine.ts":[842,47],"./sogou/engine.ts":[843,2,28],"./tencent/engine.ts":[845,2,23],"./urban/engine.ts":[847,48],"./vocabulary/engine.ts":[848,49],"./weblio/engine.ts":[849,50],"./weblioejje/engine.ts":[850,36],"./websterlearner/engine.ts":[851,51],"./wikipedia/engine.ts":[852,52],"./youdao/engine.ts":[853,53],"./youdaotrans/engine.ts":[854,2,25],"./zdic/engine.ts":[856,37]};function s(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],s=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(s)}))}s.keys=function(){return Object.keys(a)},s.id=1210,e.exports=s},1310:function(e,t,n){"use strict";n.r(t);var a=n(134),s=n.n(a),i=n(1);const o=browser.runtime.id!==atob("Y2Rvbm5tZmZrZGFvYWpma25vZWVlY21jaGlicG1rbWc=")&&browser.runtime.id!==atob("c2FsYWRpY3RAY3JpbXguY29t")&&browser.runtime.id!==atob("aWRnaG9jYmJhaGFmcGZoam5maHBiZmJtcGVncGhtbXA=");async function r(e,t){if(!t)try{const e=window.appConfig.langCode.startsWith("zh"),n=await fetch(`https://saladict.crimx.com/releases/${e?"chs":"eng"}.json`);t=await n.json()}catch(e){console.error(e)}if(!t)return{diff:0};if(!e)return{diff:3,data:t};const n=e.split(".").map(Number),a=t.version.slice(1).split(".").map(Number);for(let e=0;e<3;e++){if(a[e]>n[e])return{diff:3-e,data:t};if(a[e]<n[e])return{diff:e-3,data:t}}return{diff:0,data:t}}var c=n(29),l=n(40);async function d(e){if(e&&e.id){const t=e.id,n=browser.runtime.getManifest();if(n.content_scripts)for(const e of n.content_scripts){if(e.js)for(const n of e.js)await browser.tabs.executeScript(t,{file:"/"===n[0]?n:"/"+n,allFrames:e.all_frames,matchAboutBlank:e.match_about_blank,runAt:e.run_at});if(e.css)for(const n of e.css)await browser.tabs.insertCSS(t,{file:"/"===n[0]?n:"/"+n,allFrames:e.all_frames,matchAboutBlank:e.match_about_blank,runAt:e.run_at})}}}var u=n(2),h=n(46),f=n(310),p=n(149),g=n(492),w=n.n(g),b=(n(717),n(251)),m=n(704),y=n(176),C=n(38),_=n(1323);function v(e){browser.webRequest.onBeforeRequest.hasListener(k)||(e.pdfSniff&&z(),Object(c.a)(({newConfig:e,oldConfig:t})=>{e&&(t&&e.pdfSniff===t.pdfSniff||(e.pdfSniff?z():(browser.webRequest.onBeforeRequest.removeListener(k),browser.webRequest.onHeadersReceived.removeListener(j))))}))}async function T(e,t){let n=browser.runtime.getURL("assets/pdf/web/viewer.html");if(e)n+="?file="+encodeURIComponent(e);else{const e=await browser.tabs.query({active:!0,currentWindow:!0});if(e.length>0&&e[0].url){const a=e[0].url;if(a.startsWith(n)){if(!window.appConfig.pdfStandalone)return;null!=e[0].id&&await browser.tabs.remove(e[0].id),n=a}else(t||a.endsWith("pdf"))&&(n+="?file="+encodeURIComponent(a))}}return window.appConfig.pdfStandalone?O(n):Object(i.b)({url:n,unique:!1})}function z(){browser.webRequest.onBeforeRequest.hasListener(k)||browser.webRequest.onBeforeRequest.addListener(k,{urls:["ftp://*/*.pdf","ftp://*/*.PDF","file://*/*.pdf","file://*/*.PDF"],types:["main_frame","sub_frame"]},["blocking"]),browser.webRequest.onHeadersReceived.hasListener(j)||browser.webRequest.onHeadersReceived.addListener(j,{urls:["https://*/*","https://*/*","http://*/*","http://*/*"],types:["main_frame","sub_frame"]},["blocking","responseHeaders"])}function k({tabId:e,url:t}){const n=([e])=>new RegExp(e).test(t);if(window.appConfig.pdfBlacklist.some(n)&&!window.appConfig.pdfWhitelist.some(n))return;const a=browser.runtime.getURL("assets/pdf/web/viewer.html?file="+encodeURIComponent(t));return-1!==e&&"always"===window.appConfig.pdfStandalone?(browser.tabs.remove(e),O(a),{cancel:!0}):{redirectUrl:a}}function j({tabId:e,responseHeaders:t,url:n}){if(!t)return;const a=([e])=>new RegExp(e).test(n);if(window.appConfig.pdfBlacklist.some(a)&&!window.appConfig.pdfWhitelist.some(a))return;const s=t.find(({name:e})=>"content-type"===e.toLowerCase());if(s&&s.value){const t=s.value.toLowerCase();if(t.endsWith("pdf")||"application/octet-stream"===t&&n.endsWith(".pdf")){const t=browser.runtime.getURL("assets/pdf/web/viewer.html?file="+encodeURIComponent(n));return-1!==e&&"always"===window.appConfig.pdfStandalone?(browser.tabs.remove(e),O(t),{cancel:!0}):{redirectUrl:t}}}}function O(e){return browser.windows.create({type:"popup",url:e})}async function S(e){if(!await browser.permissions.contains({permissions:["clipboardWrite"]}))return void Object(i.b)("options.html?menuselected=Permissions&missing_permission=clipboardWrite",!0);const t=document.createElement("textarea");t.textContent=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.blur(),document.body.removeChild(t)}async function N(){if(!await browser.permissions.contains({permissions:["clipboardRead"]}))return Object(i.b)("options.html?menuselected=Permissions&missing_permission=clipboardRead",!0),"";{let e=document.getElementById("saladict-paste");return e||(e=document.createElement("textarea"),e.id="saladict-paste",document.body.appendChild(e)),e.value="",e.focus(),document.execCommand("paste"),e.value||""}}function W(e){return fetch("http://dict-mobile.iciba.com/interface/index.php?c=word&m=getsuggest&nums=10&client=6&uid=0&is_need_mean=1&word="+encodeURIComponent(e)).then(e=>e.json()).then(e=>{if(e&&Array.isArray(e.message))return e.message.filter(e=>e&&e.key).map(e=>({entry:e.key,explain:Array.isArray(e.means)&&e.means.length>0?e.means[0].part+" "+e.means[0].means.join(" "):""}));throw new Error})}function A(e){return fetch("https://dict.youdao.com/suggest?doctype=json&le=en&ver=2.0&q="+encodeURIComponent(e)).then(e=>e.json()).then(e=>{if(e&&e.data&&Array.isArray(e.data.entries))return e.data.entries.filter(e=>e&&e.explain&&e.entry);throw new Error})}var E=n(11),x=n(432),L=n(436),I=n(95),D=n(64),P=n(161),U=n(10),F=n(107);const M=n(1209),R=M.keys().reduce((e,t)=>{const n=M(t).Service;return e.set(n.id,n)},new Map),$=new Map;async function q(e){$.forEach(async(t,n)=>{try{"ADD"===e.action?await t.add({words:e.words,force:e.force}):"DELETE"===e.action&&await t.delete({dates:e.dates,force:e.force})}catch(t){var a,s;Object(F.c)(n,t,"ADD"===e.action&&(null===(a=e.words)||void 0===a?void 0:a[0])?`「${null===(s=e.words)||void 0===s?void 0:s[0].text}」`:"")}})}class B{static getInstance(){return B.instance||(B.instance=new B)}constructor(){this.audio=void 0,this.currentSrc=void 0}reset(){this.audio&&(this.audio.pause(),this.audio.currentTime=0,this.audio.src="",this.audio.onended=null),this.currentSrc=""}load(e){return this.reset(),this.currentSrc=e,this.audio=new Audio(e)}async play(e){if(!e||e===this.currentSrc)return void this.reset();const t=this.load(e),n=Promise.race([new Promise(e=>{t.onended=e}),Object(h.d)(2e4)]);await t.play(),await n,this.currentSrc=""}}B.instance=void 0;const H=(...e)=>browser.windows.update(...e).catch(console.warn);class J{constructor(){this.snapshot=null}async correctTop(e){if(!e)return e;const t=await Object(f.b)();return t?e-t.main:e}async focus(){this.snapshot&&null!=this.snapshot.id&&await H(this.snapshot.id,{focused:!0})}async takeSnapshot(){this.snapshot=null;try{const e=await browser.windows.getLastFocused({windowTypes:["normal"]});if(e.focused&&"normal"===e.type&&"minimized"!==e.state)this.snapshot=e;else if(u.c){const e=(await browser.windows.getAll()).filter(e=>e.focused&&"normal"===e.type&&"minimized"!==e.state);if(1===e.length)this.snapshot=e[0];else{const t=e.filter(e=>e.focused);1===t.length&&(this.snapshot=t[0])}}}catch(e){console.warn(e)}return this.snapshot}destroySnapshot(){this.snapshot=null}async makeRoomForSidebar(e,t){const n=this.snapshot;if(!n||null==n.id)return;const a=t&&t.width||window.appConfig.panelWidth,s=null!=n.top&&null!=n.left&&null!=n.width&&null!=n.height?{top:await this.correctTop(n.top),left:"right"===e?n.left:n.left+a,width:n.width-a,height:n.height,state:"normal"}:{top:0,left:"right"===e?0:a,width:window.screen.availWidth-a,height:window.screen.availHeight,state:"normal"};"right"===e&&await H(n.id,{...s,left:s.left+1}),await H(n.id,s)}async restoreSnapshot(){this.snapshot&&null!=this.snapshot.id&&await H(this.snapshot.id,"normal"===this.snapshot.state?{top:await this.correctTop(this.snapshot.top),left:this.snapshot.left,width:this.snapshot.width,height:this.snapshot.height}:{state:this.snapshot.state})}}class G{constructor(){this.qsPanelId=null,this.snapshot=null,this.isSidebar=!1,this.mainWindowsManager=new J}async correctTop(e){if(!e)return e;const t=await Object(f.b)();return t?e-t.panel:e}async create(e){this.isSidebar=!1;let t="",n="";if(e)try{t="&word="+encodeURIComponent(JSON.stringify(e))}catch(e){!1}else if("selection"===window.appConfig.qsPreload){const e=(await browser.tabs.query({active:!0,lastFocusedWindow:!0}))[0];e&&e.id&&(n="&lastTab="+e.id)}await this.mainWindowsManager.takeSnapshot();const a=window.appConfig.qssaSidebar?await this.getSidebarRect(window.appConfig.qssaSidebar):window.appConfig.qssaRectMemo&&await this.getStorageRect()||this.getDefaultRect();let s;try{s=await browser.windows.create({...a,type:"popup",url:browser.runtime.getURL(`quick-search.html?sidebar=${window.appConfig.qssaSidebar}${t}${n}`)})}catch(e){browser.notifications.create({type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict",message:e.message,priority:2,eventTime:Date.now()+5e3})}s&&s.id&&(u.c&&H(s.id,a),this.qsPanelId=s.id,window.appConfig.qssaSidebar&&(this.isSidebar=!0,await this.mainWindowsManager.makeRoomForSidebar(window.appConfig.qssaSidebar,s)),window.appConfig.qsFocus||await this.mainWindowsManager.focus(),(await browser.tabs.query({})).forEach(e=>{e.id&&e.windowId!==this.qsPanelId&&i.a.send(e.id,{type:"QS_PANEL_CHANGED",payload:null!=this.qsPanelId})}))}async getWin(){return this.qsPanelId?browser.windows.get(this.qsPanelId).catch(()=>null):null}async destroy(){(await browser.tabs.query({})).forEach(e=>{e.id&&e.windowId!==this.qsPanelId&&i.a.send(e.id,{type:"QS_PANEL_CHANGED",payload:!1})}),this.qsPanelId=null,this.isSidebar=!1,this.destroySnapshot(),await this.mainWindowsManager.restoreSnapshot(),this.mainWindowsManager.destroySnapshot()}isQsPanel(e){return null!=e&&e===this.qsPanelId}async hasCreated(){const e=await this.getWin();return e||(this.qsPanelId=null),!!e}async focus(){if(null!=this.qsPanelId){await H(this.qsPanelId,{focused:!0});const[e]=await browser.tabs.query({windowId:this.qsPanelId});e&&e.id&&await i.a.send(e.id,{type:"QS_PANEL_FOCUSED"})}}async takeSnapshot(){null!=this.qsPanelId&&(this.snapshot=await browser.windows.get(this.qsPanelId).catch(()=>null))}destroySnapshot(){this.snapshot=null}async restoreSnapshot(){await this.mainWindowsManager.restoreSnapshot(),null!=this.snapshot&&null!=this.snapshot.id?await H(this.snapshot.id,{top:await this.correctTop(this.snapshot.top),left:this.snapshot.left,width:this.snapshot.width,height:this.snapshot.height}):null!=this.qsPanelId&&await H(this.qsPanelId,{focused:!0,...this.getDefaultRect()}),this.destroySnapshot()}async moveToSidebar(e){null!=this.qsPanelId&&(await this.takeSnapshot(),await H(this.qsPanelId,await this.getSidebarRect(e)),await this.mainWindowsManager.makeRoomForSidebar(e,this.snapshot))}async toggleSidebar(e){await this.hasCreated()&&(this.isSidebar?await this.restoreSnapshot():await this.moveToSidebar(e),this.isSidebar=!this.isSidebar)}getDefaultRect(){const{qsLocation:e,qssaHeight:t}=window.appConfig;let n=10,a=30;const s=window.appConfig.panelWidth,i=window.appConfig.qssaHeight;switch(e){case"CENTER":n=(window.screen.availWidth-s)/2,a=(window.screen.availHeight-t)/2;break;case"TOP":n=(window.screen.availWidth-s)/2,a=30;break;case"RIGHT":n=window.screen.availWidth-s-30,a=(window.screen.availHeight-t)/2;break;case"BOTTOM":n=(window.screen.availWidth-s)/2,a=window.screen.availHeight-i-10;break;case"LEFT":n=10,a=(window.screen.availHeight-t)/2;break;case"TOP_LEFT":n=10,a=30;break;case"TOP_RIGHT":n=window.screen.availWidth-s-30,a=30;break;case"BOTTOM_LEFT":n=10,a=window.screen.availHeight-i-10;break;case"BOTTOM_RIGHT":n=window.screen.availWidth-s-30,a=window.screen.availHeight-i-10}return{top:Math.round(a+(window.screen.availTop||0)),left:Math.round(n+(window.screen.availLeft||0)),width:Math.round(s),height:Math.round(i)}}async getStorageRect(){const{qssaRect:e}=await i.c.local.get("qssaRect");return e?{...e,top:await this.correctTop(e.top)||0}:null}async getSidebarRect(e){const t=this.snapshot&&this.snapshot.width||window.appConfig.panelWidth,n=this.mainWindowsManager.snapshot;return n&&"normal"===n.state&&null!=n.top&&null!=n.left&&null!=n.width&&null!=n.height?{top:Math.round(await this.mainWindowsManager.correctTop(n.top)||0),left:Math.round("right"===e?Math.max(n.width-t,t):n.left),width:Math.round(t),height:Math.round(n.height)}:{top:0,left:Math.round("right"===e?window.screen.availWidth-t:0),width:Math.round(t),height:Math.round(window.screen.availHeight)}}}class V{static getInstance(){return V.instance||(V.instance=new V)}static getDictEngine(e){return n(1210)(`./${e}/engine.ts`)}constructor(){this.qsPanelManager=void 0,this.qsPanelManager=new G,i.a.addListener((e,t)=>{switch(e.type){case"OPEN_DICT_SRC_PAGE":return this.openSrcPage(e.payload);case"OPEN_URL":return Object(i.b)(e.payload);case"PLAY_AUDIO":return B.getInstance().play(e.payload);case"STOP_AUDIO":return void B.getInstance().reset();case"FETCH_DICT_RESULT":return this.fetchDictResult(e.payload);case"DICT_ENGINE_METHOD":return this.callDictEngineMethod(e.payload);case"GET_CLIPBOARD":return N();case"SET_CLIPBOARD":return Promise.resolve(S(e.payload));case"INJECT_DICTPANEL":return d(t.tab);case"QUERY_QS_PANEL":return this.qsPanelManager.hasCreated();case"OPEN_QS_PANEL":return this.openQSPanel();case"CLOSE_QS_PANEL":return B.getInstance().reset(),this.qsPanelManager.destroy();case"QS_SWITCH_SIDEBAR":return this.qsPanelManager.toggleSidebar(e.payload);case"IS_IN_NOTEBOOK":return Object(x.c)(e.payload);case"SAVE_WORD":return(a=e.payload,"notebook"===a.area&&a.word&&q({action:"ADD",words:[a.word]}),Object(L.b)(a)).then(e=>(this.notifyWordSaved(),e));case"DELETE_WORDS":return(e=>("notebook"===e.area&&q({action:"DELETE",dates:e.dates}),Object(L.a)(e)))(e.payload).then(e=>(this.notifyWordSaved(),e));case"GET_WORDS_BY_TEXT":return Object(x.b)(e.payload);case"GET_WORDS":return Object(x.a)(e.payload);case"GET_SUGGESTS":return n=e.payload,Object(h.a)([W(n),A(n)]).catch(()=>[]);case"YOUDAO_TRANSLATE_AJAX":return this.youdaoTranslateAjax(e.payload)}var n,a}),browser.runtime.onConnect.addListener(e=>{"popup"===e.name&&e.onDisconnect.addListener(()=>{B.getInstance().reset()})})}async openQSPanel(){await this.qsPanelManager.hasCreated()?await this.qsPanelManager.focus():await this.qsPanelManager.create()}async searchClipboard(){const e=Object(E.e)({text:await N()});await this.qsPanelManager.hasCreated()?await i.a.send({type:"QS_PANEL_SEARCH_TEXT",payload:e}):await this.qsPanelManager.create(e)}async searchPageSelection(){const e=await browser.tabs.query({active:!0,lastFocusedWindow:!0});let t;e.length>0&&null!=e[0].id&&(t=await i.a.send(e[0].id,{type:"PRELOAD_SELECTION"}));await this.qsPanelManager.hasCreated()?await this.qsPanelManager.focus():await this.qsPanelManager.create(t)}async openSrcPage({id:e,text:t,active:n}){const a=await V.getDictEngine(e);return Object(i.b)({url:await a.getSrcPage(t,window.appConfig,window.activeProfile),active:n})}async fetchDictResult(e){const t=e.payload||{};let n;try{const{search:a}=await V.getDictEngine(e.id);try{n=await Object(h.c)(a(e.text,window.appConfig,window.activeProfile,t),25e3)}catch(s){if("NETWORK_ERROR"!==s.message)throw s;await Object(h.d)(500),n=await Object(h.c)(a(e.text,window.appConfig,window.activeProfile,t),25e3)}}catch(e){!1}const a=n?{...n,id:e.id}:{result:null,id:e.id};return a}async callDictEngineMethod(e){return(await V.getDictEngine(e.id))[e.method](...e.args||[])}notifyWordSaved(){browser.tabs.query({}).then(e=>{e.forEach(async e=>{if(e.id&&e.url)try{await i.a.send(e.id,{type:"WORD_SAVED"})}catch(e){console.warn(e)}})})}youdaoTranslateAjax(e){return new Promise(t=>{const n=new XMLHttpRequest;n.onreadystatechange=()=>{if(4===n.readyState){const a=200===n.status?n.responseText:null;t({response:a,index:e.index})}},n.open(e.type,e.url,!0),"POST"===e.type?(n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.send(e.data)):n.send(null)})}}V.instance=void 0,V.init=V.getInstance;class Y{static async getInstance(){if(!Y.instance){const e=new Y;Y.instance=e;const t=await b.a.getInstance(),n=Object(c.b)().pipe(Object(y.a)((e,t)=>e&&t&&w()(e.contextMenus.selected,t.contextMenus.selected)),Object(C.a)(e=>!!e));Object(m.a)(n,t.getFixedT$("menus")).pipe(Object(_.a)(e.setContextMenus)).subscribe()}return Y.instance}static openGoogle(){return K({file:"/assets/google-page-trans.js"},"google_page_translate")}static openCaiyunTrs(){if(!u.c)return K({file:"/assets/trs.js"},"caiyuntrs")}static async openYoudao(){if(u.c)return;const e=await K({file:"/assets/fanyi.youdao.2.0/main.js"},"youdao_page_translate");(!e||1!==e&&1!==e[0])&&await browser.notifications.create({type:"basic",eventTime:Date.now()+4e3,iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict",message:(await b.a.getInstance()).i18n.t("menus:notification_youdao_err")})}static openBaiduPage(){browser.tabs.query({active:!0,currentWindow:!0}).then(e=>{if(e.length>0&&e[0].url){const t="zh-CN"===window.appConfig.langCode?"zh":"zh-TW"===window.appConfig.langCode?"cht":"en";Object(i.b)(`https://fanyi.baidu.com/transpage?query=${encodeURIComponent(e[0].url)}&from=auto&to=${t}&source=url&render=1`)}})}static openSogouPage(){browser.tabs.query({active:!0,currentWindow:!0}).then(e=>{if(e.length>0&&e[0].url){const t="zh-CN"===window.appConfig.langCode?"zh-CHS":"en";Object(i.b)(`https://translate.sogoucdn.com/pcvtsnapshot?from=auto&to=${t}&tfr=translatepc&url=${encodeURIComponent(e[0].url)}&domainType=sogou`)}})}static openMicrosoftPage(){browser.tabs.query({active:!0,currentWindow:!0}).then(e=>{if(e.length>0&&e[0].url){const t="zh-CN"===window.appConfig.langCode?"zh-Hans":"zh-TW"===window.appConfig.langCode?"zh-Hant":"en";Object(i.b)(`https://www.microsofttranslator.com/bv.aspx?from=auto&to=${t}&r=true&a=${encodeURIComponent(e[0].url)}`)}})}static requestSelection(){browser.tabs.query({active:!0,currentWindow:!0}).then(e=>{e.length>0&&null!=e[0].id&&i.a.send(e[0].id,{type:"EMIT_SELECTION"})})}handleContextMenusClick(e){const t=String(e.menuItemId).replace(/_ba$/,""),n=e.selectionText||"",a=e.linkUrl||"";switch(t){case"google_page_translate":Y.openGoogle();break;case"caiyuntrs":Y.openCaiyunTrs();break;case"google_cn_page_translate":Y.openGoogle();break;case"youdao_page_translate":Y.openYoudao();break;case"baidu_page_translate":Y.openBaiduPage();break;case"sogou_page_translate":Y.openSogouPage();break;case"microsoft_page_translate":Y.openMicrosoftPage();break;case"view_as_pdf":T(a,"view_as_pdf_ba"!==e.menuItemId);break;case"copy_pdf_url":{const t=function(e){if(!e)return;const t=new URL(e);return decodeURIComponent(t.searchParams.get("file")||"")}(e.pageUrl);t&&S(t);break}case"saladict":Y.requestSelection();break;case"saladict_standalone":V.getInstance().searchPageSelection();break;case"search_history":Object(i.b)(browser.runtime.getURL("history.html"));break;case"notebook":Object(i.b)(browser.runtime.getURL("notebook.html"));break;default:{const e=window.appConfig.contextMenus.all[t];if(e){const t="string"==typeof e?e:e.url;t&&Object(i.b)(t.replace("%s",encodeURIComponent(n)))}}}}constructor(){browser.contextMenus.onClicked.addListener(e=>(Q(e.menuItemId,"From_Context_Menus"),this.handleContextMenusClick(e))),i.a.addListener("CONTEXT_MENUS_CLICK",({payload:e})=>(Q(e.menuItemId,"From_Browser_Action"),this.handleContextMenusClick(e)))}async setContextMenus([{searchHistory:e,contextMenus:t},n]){browser.extension.inIncognitoContext||await browser.contextMenus.removeAll();const a=["audio","editable","frame","image","link","selection","page","video"],s=new Set(["selection"]),i=[],o=[];for(const e of t.selected){let t;switch(e){case"caiyuntrs":case"google_page_translate":case"google_cn_page_translate":case"youdao_page_translate":case"sogou_page_translate":case"baidu_page_translate":case"microsoft_page_translate":t=a,o.push(e);break;case"view_as_pdf":s.add("link"),s.add("page"),t=["link","page"];break;case"copy_pdf_url":s.add("page"),t=["page"];break;default:t=["selection"]}i.push({id:e,title:r(e),contexts:t})}if(i.length>1){o.length>0&&a.forEach(e=>s.add(e)),await c({id:"saladict_container",title:n("saladict"),contexts:[...s]});for(const e of i)e.parentId="saladict_container",await c(e)}else i.length>0&&await c(i[0]);if(await c({id:"view_as_pdf_ba",title:n("view_as_pdf"),contexts:["browser_action","page_action"]}),o.length>2){await c({id:"saladict_ba_container",title:n("page_translations"),contexts:["browser_action","page_action"]});for(const e of o)await c({id:e+"_ba",parentId:"saladict_ba_container",title:r(e),contexts:["browser_action","page_action"]})}else if(o.length>0)for(const e of o)await c({id:e+"_ba",title:r(e),contexts:["browser_action","page_action"]});else await c({id:"google_cn_page_translate_ba",title:n("google_cn_page_translate"),contexts:["browser_action","page_action"]}),await c({id:"youdao_page_translate_ba",title:n("youdao_page_translate"),contexts:["browser_action","page_action"]});function r(e){const a=t.all[e];return a&&"string"!=typeof a?a.name:n(e)}function c(e){return new Promise(t=>{browser.contextMenus.create(e,()=>{browser.runtime.lastError&&console.error(browser.runtime.lastError),t()})})}await c({type:"separator",id:Date.now().toString(),contexts:["browser_action"]}),e&&await c({id:"search_history",title:n("history_title"),contexts:["browser_action"]}),await c({id:"notebook",title:n("notebook_title"),contexts:["browser_action"]})}}async function K(e,t){try{return await browser.tabs.executeScript(e)}catch(e){const{i18n:n}=await b.a.getInstance();return await browser.notifications.create({type:"basic",eventTime:Date.now()+4e3,iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict",message:n.t("menus:page_permission_err",{name:n.t("menus:"+t)})}),e}}function Q(e,t){switch(e=String(e).replace(/_ba$/,"")){case"google_page_translate":Object(p.a)({category:"Page_Translate",action:"Open_Google",label:t});break;case"caiyuntrs":Object(p.a)({category:"Page_Translate",action:"Open_Caiyun",label:t});break;case"google_cn_page_translate":Object(p.a)({category:"Page_Translate",action:"Open_Google",label:t});break;case"youdao_page_translate":Object(p.a)({category:"Page_Translate",action:"Open_Youdao",label:t});break;case"view_as_pdf":Object(p.a)({category:"PDF_Viewer",action:"Open_PDF_Viewer",label:t})}}Y.init=Y.getInstance,Y.instance=void 0,browser.runtime.onInstalled.addListener((async function({reason:e,previousVersion:t}){if(window.appConfig=await Object(c.d)(),window.activeProfile=await Object(l.i)(),await i.c.local.set(s()(await i.c.local.get(null),(e,t)=>t.startsWith("dict_")?null:"lastCheckUpdate"===t?Date.now():e)),"install"===e)(await i.c.sync.get("hasInstructionsShown")).hasInstructionsShown||(Object(i.b)("options.html?menuselected=Privacy&nopanel=true",!0),window.appConfig.langCode.startsWith("zh")?Object(i.b)("https://saladict.crimx.com/notice.html"):Object(i.b)("https://saladict.crimx.com/en/notice.html"),i.c.sync.set({hasInstructionsShown:!0}));else if("update"===e){const e=await r(browser.runtime.getManifest().version);if(e.data&&0===e.diff){const{diff:n,data:a}=await r(t,e.data);a&&n>=2&&setTimeout(()=>{const e=window.appConfig.langCode.startsWith("zh"),t={type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:e?"沙拉查词已更新到 "+a.version:"Saladict has updated to "+a.version,message:a.data.map((e,t)=>`${t+1}. ${e}`).join("\n"),priority:2,eventTime:Date.now()+5e3};u.c||(t.buttons=[{title:e?"查看更新介绍":"More Info"}],t.silent=!0),browser.notifications.create("sd-install",t)},5e3)}}if(ee(),!u.c&&!await Object(f.b)()){const e=await Object(f.a)();e&&Object(f.c)(e)}})),browser.runtime.onStartup.addListener((function(){setTimeout(()=>{window.appConfig.updateCheck&&i.c.local.get("lastCheckUpdate").then(async({lastCheckUpdate:e})=>{const t=Date.now();if(e){if(t-e>6048e5){i.c.local.set({lastCheckUpdate:t});const{data:e,diff:n}=await r(browser.runtime.getManifest().version);if(e&&n>0){const t={type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:X("%E6%B2%99%E6%8B%89%E6%9F%A5%E8%AF%8D"),message:`${X("%E5%8F%AF%E6%9B%B4%E6%96%B0%E8%87%B3")}【${e.version}】`};u.c||(t.buttons=[{title:X("%E6%9F%A5%E7%9C%8B%E6%9B%B4%E6%96%B0")}]),browser.notifications.create("sd-update",t)}}}else i.c.local.set({lastCheckUpdate:t})})},1e3),o&&i.c.local.get("swat").then(({swat:e})=>{const t=Date.now();if(e){if(t-e>864e6){i.c.local.set({swat:t});const e={type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:X("%E6%B2%99%E6%8B%89%E6%9F%A5%E8%AF%8D"),message:X("%E6%AD%A4%E3%80%8C%E6%B2%99%E6%8B%89%E6%9F%A5%E8%AF%8D%E3%80%8D%E6%89%A9%E5%B1%95%E5%B7%B2%E8%A2%AB%E4%BA%8C%E6%AC%A1%E6%89%93%E5%8C%85%EF%BC%8C%E8%AF%B7%E5%9C%A8%E5%AE%98%E6%96%B9%E5%BB%BA%E8%AE%AE%E7%9A%84%E5%B9%B3%E5%8F%B0%E5%AE%89%E8%A3%85%E3%80%82")};u.c||(e.buttons=[{title:X("%E6%9F%A5%E7%9C%8B%E5%8F%AF%E9%9D%A0%E7%9A%84%E5%B9%B3%E5%8F%B0")}]),browser.notifications.create("sd-update",e)}}else i.c.local.set({swat:t})});setTimeout(()=>{ee()},1e3)})),browser.notifications.onClicked.addListener(Z("https://saladict.crimx.com/releases/")),browser.notifications.onButtonClicked&&browser.notifications.onButtonClicked.addListener(Z("https://saladict.crimx.com/releases/")),browser.commands.onCommand.addListener((function(e){switch(e){case"toggle-active":Object(c.f)({...window.appConfig,active:!window.appConfig.active});break;case"toggle-instant":browser.tabs.query({active:!0,currentWindow:!0}).then(e=>{e.length<=0||null==e[0].id||i.a.send(e[0].id,{type:"QUERY_PIN_STATE"}).then(e=>{const t=window.appConfig,{enable:n}=t[e?"pinMode":"mode"].instant;Object(c.f)({...t,mode:{...t.mode,instant:{...t.mode.instant,enable:!n}},pinMode:{...t.pinMode,instant:{...t.pinMode.instant,enable:!n}}})})});break;case"open-quick-search":V.getInstance().openQSPanel();break;case"open-google":Y.openGoogle(),Object(p.a)({category:"Page_Translate",action:"Open_Google",label:"From_Browser_Shortcut"});break;case"open-youdao":Y.openYoudao(),Object(p.a)({category:"Page_Translate",action:"Open_Youdao",label:"From_Browser_Shortcut"});break;case"open-caiyun":Y.openCaiyunTrs(),Object(p.a)({category:"Page_Translate",action:"Open_Caiyun",label:"From_Browser_Shortcut"});break;case"open-pdf":T(),Object(p.a)({category:"PDF_Viewer",action:"Open_PDF_Viewer",label:"From_Browser_Shortcut"});break;case"search-clipboard":V.getInstance().searchClipboard();break;case"next-history":case"prev-history":i.a.send({type:"SWITCH_HISTORY",payload:"next-history"===e?"next":"prev"}).then(t=>{if(!t)return browser.tabs.query({active:!0,currentWindow:!0}).then(t=>{if(!(t.length<=0||null==t[0].id))return i.a.send(t[0].id,{type:"SWITCH_HISTORY",payload:"next-history"===e?"next":"prev"})})});break;case"next-profile":case"prev-profile":{const t=window.activeProfile.id,n=window.profileIDList.findIndex(({id:e})=>e===t),a="next-profile"===e?1:-1,s=n<0?0:(n+a)%window.profileIDList.length;Object(l.l)(window.profileIDList[s].id).then(te)}break;case"profile-1":case"profile-2":case"profile-3":case"profile-4":case"profile-5":{const t=+e.slice(-1);t<window.profileIDList.length&&window.profileIDList[t].id!==window.activeProfile.id&&Object(l.l)(window.profileIDList[t].id).then(te)}break;case"add-notebook":!async function(){if(await i.a.send({type:"ADD_NOTEBOOK",payload:{popup:!0}}))return;const e=await browser.tabs.query({active:!0,currentWindow:!0});if(e.length<=0||null==e[0].id)return;i.a.send(e[0].id,{type:"ADD_NOTEBOOK",payload:{popup:!1}})}()}}));const X=decodeURI;function Z(e){return function(t){switch(t){case"sd-install":case"sd-update":Object(i.b)(e),browser.notifications.getAll().then(e=>{Object.keys(e).forEach(e=>browser.notifications.clear(e))})}}}async function ee(){(await browser.tabs.query({})).forEach(async e=>{if(e.id&&e.url&&e.url.startsWith("http"))try{await d(e)}catch(e){console.warn(e)}})}async function te(){if(await Object(h.d)(10),await i.a.send({type:"SEARCH_TEXT_BOX"}))return;const e=await browser.tabs.query({active:!0,currentWindow:!0});e.length<=0||null==e[0].id||i.a.send(e[0].id,{type:"SEARCH_TEXT_BOX"})}var ne=n(91),ae=n(87);const se=new ne.a;function ie(e,t){browser.browserAction.setIcon({tabId:t,path:e?{16:"assets/icon-gray-16.png",19:"assets/icon-gray-19.png",24:"assets/icon-gray-24.png",38:"assets/icon-gray-38.png",48:"assets/icon-gray-48.png",128:"assets/icon-gray-128.png"}:{16:"assets/icon-16.png",19:"assets/icon-19.png",24:"assets/icon-24.png",38:"assets/icon-38.png",48:"assets/icon-48.png",128:"assets/icon-128.png"}})}se.pipe(Object(ae.e)("tabId",async e=>e.options?e:(e.delay&&await Object(h.d)(1e3),{tabId:e.tabId,options:await i.a.send(e.tabId,{type:"GET_TAB_BADGE_INFO"}).catch(()=>{})||{active:window.appConfig.active,tempDisable:!1,unsupported:!0}}))).subscribe(({tabId:e,options:t})=>t.active?t.tempDisable?function(e){ie(!0,e),browser.browserAction.setTitle({title:n(789)("./"+window.appConfig.langCode+"/background").locale.app.tempOff,tabId:e})}(e):t.unsupported?function(e){ie(!0,e),browser.browserAction.setTitle({title:n(789)("./"+window.appConfig.langCode+"/background").locale.app.unsupported,tabId:e})}(e):function(e){ie(!1,e)}(e):function(e){ie(!0,e),browser.browserAction.setTitle({title:n(789)("./"+window.appConfig.langCode+"/background").locale.app.off,tabId:e})}(e)),i.a.self.initServer(),Object(I.a)(Object(D.a)(i.c.sync.get("syncConfig")).pipe(Object(P.a)("syncConfig")),i.c.sync.createStream("syncConfig").pipe(Object(P.a)("newValue"))).pipe(Object(C.a)(e=>!!e),Object(U.a)(e=>(e.webdav&&!Object.prototype.hasOwnProperty.call(e.webdav,"enable")&&(e.webdav.enable=!!e.webdav.url),e))).subscribe(async e=>{try{await Promise.all([...$.values()].map(e=>e.destroy()))}catch(e){console.error(e)}$.clear(),e&&R.forEach(t=>{var n;if(null===(n=e[t.id])||void 0===n?void 0:n.enable){const n=new t(e[t.id]);$.set(t.id,n),n.onStart()}})}),Y.init(),V.init(),browser.runtime.onMessage.addListener(e=>{if("fetchUrl"===e.contentScriptQuery){const t={method:e.method||"GET",credentials:"include",headers:{...e.headers||{},"content-type":"application/json"}};if(e.data)try{t.body=JSON.stringify(e.data)}catch(e){}return fetch(e.url,t).then(e=>e.text()).then(e=>({status:"ok",data:e})).catch(e=>({status:"error",error:e}))}}),Object(c.c)().then(async e=>{window.appConfig=e,v(e),Object(p.b)("/background"),i.a.addListener("SEND_TAB_BADGE_INFO",({payload:e},t)=>{t.tab&&t.tab.id&&se.next({tabId:t.tab.id,options:e})}),browser.tabs.onUpdated.addListener(async(e,t)=>{"complete"===t.status&&se.next({tabId:e,delay:!0})}),Object(c.a)(({newConfig:e})=>{window.appConfig=e})}),Object(l.c)().subscribe(e=>{window.activeProfile=e}),Object(l.d)().subscribe(e=>{window.profileIDList=e})},142:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(749);class s extends a.a{constructor(){super("SaladictWords"),this.notebook=void 0,this.history=void 0,this.syncmeta=void 0,this.version(1).stores({notebook:"date,text,context,url",history:"date,text,context,url",syncmeta:"id"}),this.notebook=this.table("notebook"),this.history=this.table("history"),this.syncmeta=this.table("syncmeta")}}let i;async function o(){return i||(i=new s),i.isOpen()||await i.open(),i}},149:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return h}));var a=n(383),s=n.n(a),i=n(131),o=n.n(i),r=n(384),c=n.n(r),l=n(1),d=n(113);async function u(e){const t=new s.a,n=t.getBrowser(),a=t.getOS();try{await f({t:"pageview",dp:e,cd1:n.name||"None",cd2:(n.version||"0.0").split(".").slice(0,3).join("."),cd3:a.name||"None",cd4:a.version||"0.0",de:"UTF-8",dl:document.location.href,sd:screen.colorDepth+"-bit",sr:screen.width+"x"+screen.height,ul:"zh-cn"})}catch(e){console.error("Report pageview error",e)}}async function h(e){const t={t:"event",ec:e.category,ea:e.action};null!=e.label&&(t.el=e.label),null!=e.value&&(t.ev=e.value);try{await f(t)}catch(e){console.error("Report event error",e)}}async function f(e){let t=(await l.c.sync.get("gacid")).gacid;return t||(t=c()(),l.c.sync.set({gacid:t})),o()({url:"https://www.google-analytics.com/collect",method:"post",headers:{"content-type":"text/plain;charset=UTF-8"},data:new URLSearchParams({v:"1",tid:"UA-49163616-4",cid:t,z:Object(d.a)(),...e})})}},160:function(e,t,n){"use strict";n.d(t,"b",(function(){return b}));var a=n(78),s=n(81),i=n(73),o=n.n(i),r=n(90),c=n.n(r),l=n(100),d=n.n(l),u=n(57),h=n.n(u),f=n(21),p=n.n(f),g=n(27),w=n.n(g);function b(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.a)();let i=e.version;return i<13&&(e.showedDictAuth=!0),i<=9&&(i=10,["mode","pinMode","panelMode","qsPanelMode"].forEach(t=>{n[t].holding.shift=!1,n[t].holding.ctrl=!!e[t].ctrl,n[t].holding.meta=!!e[t].ctrl,delete e[t].ctrl})),r("tripleCtrlPreload","qsPreload"),r("tripleCtrlAuto","qsAuto"),r("tripleCtrlLocation","qsLocation"),r("tripleCtrlStandalone","qsStandalone"),r("tripleCtrlHeight","qssaHeight"),r("tripleCtrlSidebar","qssaSidebar"),r("tripleCtrlPageSel","qssaPageSel"),Object.keys(n).forEach(t=>{switch(t){case"langCode":g("langCode",e=>/^(zh-CN|zh-TW|en)$/.test(e));break;case"pdfWhitelist":case"pdfBlacklist":case"whitelist":case"blacklist":g(t,e=>Array.isArray(e));break;case"searhHistory":case"searchHistory":n.searchHistory=e[t];break;case"searhHistoryInco":case"searchHistoryInco":n.searchHistoryInco=e[t];break;case"mode":case"pinMode":case"panelMode":case"qsPanelMode":"mode"===t&&f("mode.icon"),f(t+".direct"),f(t+".double"),f(t+".holding.alt"),f(t+".holding.shift"),f(t+".holding.ctrl"),f(t+".holding.meta"),f(t+".instant.enable"),g(t+".instant.key",e=>/^(direct|ctrl|alt|shift)$/.test(e)),l(t+".instant.delay");break;case"qsPreload":g("qsPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"qsLocation":g("qsLocation",e=>"CENTER"===e||"TOP"===e||"RIGHT"===e||"BOTTOM"===e||"LEFT"===e||"TOP_LEFT"===e||"TOP_RIGHT"===e||"BOTTOM_LEFT"===e||"BOTTOM_RIGHT"===e);break;case"baPreload":g("baPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"ctxTrans":o()(n.ctxTrans,(e,t)=>{f("ctxTrans."+t)});break;case"language":o()(n.language,(e,t)=>{f("language."+t)});break;case"autopron":g("autopron.cn.dict",e=>s.a[e]),g("autopron.en.dict",e=>s.a[e]),g("autopron.en.accent",e=>"us"===e||"uk"===e),g("autopron.machine.dict",e=>s.a[e]),g("autopron.machine.src",e=>"trans"===e||"searchText"===e);break;case"contextMenus":o()(e.contextMenus.all,(e,t)=>{"string"==typeof e?n.contextMenus.all[t]&&u("contextMenus.all."+t):(u(`contextMenus.all.${t}.name`),u(`contextMenus.all.${t}.url`))}),function(t){const a=p()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)w()(n,[t,"selected"],[]);else{const e=p()(n,[t,"all"]),s=a.filter(t=>e[t]);s.length>0&&w()(n,[t,"selected"],s)}}("contextMenus");break;case"dictAuth":g("dictAuth",Boolean);break;default:switch(typeof n[t]){case"string":u(t);break;case"boolean":f(t);break;case"number":l(t);break;default:console.error(new Error(`merge config: missing handler for '${t}'`))}}}),i=e.version,i<=10&&(i=11,n.contextMenus.selected.unshift("view_as_pdf")),i<=11&&(i=12,n.blacklist.push(["^https://stackedit.io(/.*)?$","https://stackedit.io/*"])),!1===e.language.minor&&(n.language.japanese=!1,n.language.korean=!1,n.language.french=!1,n.language.spanish=!1,n.language.deutsch=!1),n.panelMaxHeightRatio<1&&(n.panelMaxHeightRatio=Math.round(100*n.panelMaxHeightRatio)),n;function r(t,n){!Object.prototype.hasOwnProperty.call(e,n)&&Object.prototype.hasOwnProperty.call(e,t)&&(e[n]=e[t])}function l(e){return g(e,c.a)}function u(e){return g(e,d.a)}function f(e){return g(e,h.a)}function g(t,a){const s=p()(e,t);a(s)&&w()(n,t,s)}}t.a=b},165:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return s}));const a={appid:"",key:""},s="http://api.fanyi.baidu.com/api/trans/product/prodinfo"},166:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return s}));const a={token:""},s="https://fanyi.caiyunapp.com/#/api"},167:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return s}));const a={pid:"",key:""},s="https://deepi.sogou.com/?from=translatepc"},168:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return s}));const a={secretId:"",secretKey:""},s="https://curl.qcloud.com/imsowZzT"},169:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return s}));const a={appKey:"",key:""},s="http://ai.youdao.com/gw.s"},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}));var a=n(24);async function s(e,t,{options:n,options_sel:s},i,o){("none"===n.keepLF||"pdf"===n.keepLF&&!o.isPDF||"webpage"===n.keepLF&&o.isPDF)&&(t=t.replace(/\n+/g," "));let r=o.sl;r||(Object(a.g)(t)?r="ja":Object(a.h)(t)&&(r="ko")),r||(r=await e.detect(t));let c="";return o.tl?c=o.tl:"default"===n.tl?s.tl.includes(i.langCode)&&(c=i.langCode):c=n.tl,c||(c=s.tl.find(e=>"default"!==e)||"en"),r===c&&(o.tl?o.sl||(r="auto"):c="default"===n.tl2?c!==i.langCode?i.langCode:"en"!==c?"en":s.tl.find(e=>"default"!==e&&e!==c)||"en":n.tl2),{sl:r,tl:c,text:t}}function i(e,t,n,a){return{lang:"11111111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:320,selectionWC:{min:1,max:999999999999999},...t,options:{keepLF:"webpage",slInitial:"collapse",tl:"default",tl2:"default",...n},options_sel:{keepLF:["none","all","webpage","pdf"],slInitial:["collapse","hide","full"],tl:["default",...e],tl2:["default",...e],...a}}}function o(e,t){const n=[{value:"auto",label:"%t(content:machineTrans.auto)"}];for(const e of t)n.push({value:e,label:`${e} %t(langcode:${e})`});const a=[{key:"sl",value:e.result.sl,title:"%t(content:machineTrans.sl)",options:n},{key:"tl",value:e.result.tl,title:"%t(content:machineTrans.tl)",options:n},{key:"copySrc",value:"copySrc",label:"%t(content:machineTrans.copySrc)"},{key:"copyTrans",value:"copyTrans",label:"%t(content:machineTrans.copyTrans)"}];return"hide"===e.result.slInitial&&a.push({key:"showSl",value:"",label:"%t(content:machineTrans.showSl)"}),{...e,catalog:a}}},178:function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var a=n(74),s=n(73),i=n.n(s),o=n(90),r=n.n(o),c=n(100),l=n.n(c),d=n(57),u=n.n(d),h=n(21),f=n.n(h),p=n(27),g=n.n(p);function w(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.b)(e.id);return Object.keys(n).forEach(t=>{switch(t){case"dicts":(function(t){const a=f()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)g()(n,[t,"selected"],[]);else{const e=f()(n,[t,"all"]),s=a.map(e=>"olad"===e?"lexico":e).filter(t=>e[t]);s.length>0&&g()(n,[t,"selected"],s)}})("dicts"),i()(n.dicts.all,(t,a)=>{const c=f()(e,`dicts.all.${a}.defaultUnfold`);u()(c)?g()(n,`dicts.all.${a}.defaultUnfold`,{chinese:c,english:c,japanese:c,korean:c,french:c,spanish:c,deutsch:c,others:c}):(o(`dicts.all.${a}.defaultUnfold.chinese`),o(`dicts.all.${a}.defaultUnfold.english`),o(`dicts.all.${a}.defaultUnfold.japanese`),o(`dicts.all.${a}.defaultUnfold.korean`),o(`dicts.all.${a}.defaultUnfold.french`),o(`dicts.all.${a}.defaultUnfold.spanish`),o(`dicts.all.${a}.defaultUnfold.deutsch`),o(`dicts.all.${a}.defaultUnfold.others`));const d=f()(e,`dicts.all.${a}.selectionLang.chs`);u()(d)?g()(n,`dicts.all.${a}.selectionLang.chinese`,d):o(`dicts.all.${a}.selectionLang.chinese`);const h=f()(e,`dicts.all.${a}.selectionLang.eng`);if(u()(h)?g()(n,`dicts.all.${a}.selectionLang.english`,h):o(`dicts.all.${a}.selectionLang.english`),o(`dicts.all.${a}.selectionLang.japanese`),o(`dicts.all.${a}.selectionLang.korean`),o(`dicts.all.${a}.selectionLang.french`),o(`dicts.all.${a}.selectionLang.spanish`),o(`dicts.all.${a}.selectionLang.deutsch`),o(`dicts.all.${a}.selectionLang.others`),s(`dicts.all.${a}.preferredHeight`),s(`dicts.all.${a}.selectionWC.min`),s(`dicts.all.${a}.selectionWC.max`),t.options){if(i()(t.options,(t,i)=>{if(r()(t))s(`dicts.all.${a}.options.${i}`);else if(u()(t))o(`dicts.all.${a}.options.${i}`);else if(l()(t)){const s=f()(e,`dicts.all.${a}.options.${i}`),o=f()(n,`dicts.all.${a}.options_sel.${i}`);g()(n,`dicts.all.${a}.options.${i}`,o.includes(s)?s:t)}}),!r()(e.version)){const e=["baidu","caiyun","google","sogou","tencent","youdaotrans"];e.every(e=>"hide"===f()(n,`dicts.all.${e}.options.slInitial`))&&e.forEach(e=>{g()(n,`dicts.all.${e}.options.slInitial`,"collapse")})}const c=f()(e,`dicts.all.${a}.options.pdfNewline`);u()(c)&&g()(n,`dicts.all.${a}.options.keepLF`,c?"all":"webpage")}});break;default:switch(typeof n[t]){case"string":c(t,l.a);break;case"boolean":o(t);break;case"number":s(t);break;default:console.error(new Error(`merge profile: missing handler for '${t}'`))}}}),"kor"===n.dicts.all.hjdict.options.chsas&&(n.dicts.all.hjdict.options.chsas="kr"),n;function s(e){return c(e,r.a)}function o(e){return c(e,u.a)}function c(t,a){const s=f()(e,t);a(s)&&g()(n,t,s)}}},2:function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"j",(function(){return i})),n.d(t,"i",(function(){return o})),n.d(t,"k",(function(){return r})),n.d(t,"l",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"g",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return p}));const a=()=>!!window.__SALADICT_INTERNAL_PAGE__,s=()=>!!window.__SALADICT_OPTIONS_PAGE__,i=()=>!!window.__SALADICT_POPUP_PAGE__,o=()=>!!window.__SALADICT_PDF_PAGE__,r=()=>!!window.__SALADICT_QUICK_SEARCH_PAGE__,c=()=>i()||r(),l="saladict-external",d="saladict-panel",u=navigator.userAgent.includes("Firefox"),h=navigator.userAgent.includes("OPR");function f(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(l))return!0;return!1}function p(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(d))return!0;return!1}},24:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return r})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"i",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return y}));var a=n(19);const s=["chinese","english","japanese","korean","french","spanish","deutsch"],i={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},o=e=>i.chinese.test(e),r=e=>i.english.test(e),c=e=>i.japanese.test(e),l=e=>i.korean.test(e),d=e=>i.french.test(e),u=e=>i.deutsch.test(e),h=e=>i.spanish.test(e),f={chinese:Object(a.a)(o),english:Object(a.a)(r),japanese:Object(a.a)(c),korean:Object(a.a)(l),french:Object(a.a)(d),spanish:Object(a.a)(h),deutsch:Object(a.a)(u)},p=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,g=new RegExp(`^(\\d|\\s|${p.source})+$`),w=new RegExp(`${i.chinese.source}|${i.japanese.source}|${i.korean.source}`),b=Object(a.a)(e=>(e.replace(new RegExp(p,"g")," ").replace(new RegExp(w,"g")," x ").match(/\S+/g)||"").length),m=[...s,"others","matchAll"];function y(e,t){if(!t)return!1;if(e.matchAll){if(g.test(t))return!1;if(e.others){const n=[/-|\.|\d|\s/],a=[];for(let t=s.length-1;t>=0;t--){const o=s[t];e[o]?n.push(i[o]):a.push(i[o])}for(let e=0;e<t.length;e++)if(n.every(n=>!n.test(t[e]))&&a.some(n=>n.test(t[e])))return!1;return!0}{const n=s.filter(t=>e[t]).map(e=>i[e]);n.push(/-|\.|\d|\s/);for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!1;return!0}}{if(s.some(n=>e[n]&&f[n](t)))return!0;if(!e.others||g.test(t))return!1;const n=s.filter(t=>!e[t]).map(e=>i[e]);n.push(new RegExp(p.source+"|\\d|\\s"));for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!0;return!1}}},250:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{static getDefaultConfig(){return{}}static getDefaultMeta(){return{}}constructor(e){this.config=void 0,this.meta=void 0,this.config=e}async delete(e){}async destroy(){}async download(e){}onStart(){}}a.id=void 0},251:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(12),s=n(9),i=n(308),o=n(108);class r{static async getInstance(){if(!r.instance){const e=new r;r.instance=e,e.i18n=await Object(s.d)(),e.i18n$$.next(e.i18n)}return r.instance}constructor(){this.i18n=void 0,this.i18n$$=void 0,this.i18n=a.a,this.i18n$$=new i.a(this.i18n),this.i18n.on("languageChanged",()=>{this.i18n$$.next(this.i18n)})}getFixedT$(e){return this.i18n$$.pipe(Object(o.a)(async t=>(await this.i18n.loadNamespaces(e),t.getFixedT(t.language,e))))}}r.instance=void 0},259:function(e,t,n){var a={"./en/background.ts":[442,110],"./en/common.ts":[543,111],"./en/content.ts":[544,112],"./en/langcode.ts":[545,91],"./en/menus.ts":[546,113],"./en/options.ts":[547,114],"./en/popup.ts":[548,115],"./en/wordpage.ts":[549,116],"./zh-CN/background.ts":[443,117],"./zh-CN/common.ts":[550,118],"./zh-CN/content.ts":[551,119],"./zh-CN/langcode.ts":[552,92],"./zh-CN/menus.ts":[553,120],"./zh-CN/options.ts":[554,121],"./zh-CN/popup.ts":[555,122],"./zh-CN/wordpage.ts":[556,123],"./zh-TW/background.ts":[444,124],"./zh-TW/common.ts":[557,125],"./zh-TW/content.ts":[558,126],"./zh-TW/langcode.ts":[559,93],"./zh-TW/menus.ts":[560,127],"./zh-TW/options.ts":[561,128],"./zh-TW/popup.ts":[562,129],"./zh-TW/wordpage.ts":[563,130]};function s(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],s=t[0];return n.e(t[1]).then((function(){return n(s)}))}s.keys=function(){return Object.keys(a)},s.id=259,e.exports=s},260:function(e,t,n){var a={"./baidu/_locales.ts":261,"./bing/_locales.json":262,"./caiyun/_locales.ts":263,"./cambridge/_locales.json":264,"./cnki/_locales.json":265,"./cobuild/_locales.json":266,"./etymonline/_locales.json":267,"./eudic/_locales.json":268,"./google/_locales.ts":269,"./googledict/_locales.json":270,"./guoyu/_locales.json":271,"./hjdict/_locales.json":272,"./jikipedia/_locales.json":273,"./jukuu/_locales.json":274,"./lexico/_locales.json":275,"./liangan/_locales.json":276,"./longman/_locales.json":277,"./macmillan/_locales.json":278,"./mojidict/_locales.json":279,"./naver/_locales.json":280,"./renren/_locales.json":281,"./shanbay/_locales.json":282,"./sogou/_locales.ts":283,"./tencent/_locales.ts":284,"./urban/_locales.json":285,"./vocabulary/_locales.json":286,"./weblio/_locales.json":287,"./weblioejje/_locales.json":288,"./websterlearner/_locales.json":289,"./wikipedia/_locales.json":290,"./youdao/_locales.json":291,"./youdaotrans/_locales.ts":292,"./zdic/_locales.json":293};function s(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}s.keys=function(){return Object.keys(a)},s.resolve=i,e.exports=s,s.id=260},261:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return s}));var a=n(39);const s=Object(a.a)({en:"Baidu Translate","zh-CN":"百度翻译","zh-TW":"百度翻譯"})},262:function(e){e.exports=JSON.parse('{"name":{"en":"Bing Dict","zh-CN":"必应词典","zh-TW":"必應詞典"},"options":{"tense":{"en":"Show sense","zh-CN":"显示单词时态","zh-TW":"展示單詞時態"},"phsym":{"en":"Show pronunciation","zh-CN":"显示单词发音","zh-TW":"展示單詞發音"},"cdef":{"en":"Show definitions","zh-CN":"显示单词解释","zh-TW":"展示單詞解釋"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"sentence":{"en":"Show sentences","zh-CN":"显示例句","zh-TW":"展示例句"},"sentence_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},263:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return s}));var a=n(39);const s=Object(a.a)({en:"LingoCloud","zh-CN":"彩云小译","zh-TW":"彩雲小譯"})},264:function(e){e.exports=JSON.parse('{"name":{"en":"Cambridge Dictionary","zh-CN":"剑桥词典","zh-TW":"劍橋詞典"},"options":{"lang":{"en":"Language","zh-CN":"语言","zh-TW":"語言"},"lang-default":{"en":"Default","zh-CN":"随扩展","zh-TW":"未設定"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-en-chs":{"en":"English–Chinese (Simplified)","zh-CN":"英简","zh-TW":"英简"},"lang-en-chz":{"en":"English–Chinese (Traditional)","zh-CN":"英繁","zh-TW":"英繁"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},265:function(e){e.exports=JSON.parse('{"name":{"en":"CNKI Dict","zh-CN":"CNKI翻译助手","zh-TW":"CNKI翻譯助手"},"options":{"dict":{"en":"Show dict result","zh-CN":"显示词典结果","zh-TW":"展示字典結果"},"senbi":{"en":"Show bilingual sentences","zh-CN":"显示双语例句","zh-TW":"展示雙語例句"},"seneng":{"en":"Show English sentences","zh-CN":"显示英文例句","zh-TW":"展示英文例句"},"digests":{"en":"Show relevant digests","zh-CN":"显示相关文摘","zh-TW":"展示相關文摘"}}}')},266:function(e){e.exports=JSON.parse('{"name":{"en":"COBUILD","zh-CN":"柯林斯高阶","zh-TW":"柯林斯高階"},"options":{"cibaFirst":{"en":"Prefer bilingual dictionary","zh-CN":"优先查双语词典","zh-TW":"優先查雙語詞典"}},"helps":{"cibaFirst":{"en":"Bilingual server is less stable","zh-CN":"双语词典服务器不稳定,解释没全英丰富","zh-TW":"雙語詞典伺服器不穩定,解釋沒全英豐富"}}}')},267:function(e){e.exports=JSON.parse('{"name":{"en":"Etymonline","zh-CN":"Etymonline","zh-TW":"Etymonline"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"},"chart":{"en":"Show Chart","zh-CN":"显示图表","zh-TW":"顯示圖表"}}}')},268:function(e){e.exports=JSON.parse('{"name":{"en":"Eudic","zh-CN":"双语例句","zh-TW":"雙語例句"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},269:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return s}));var a=n(39);const s=Object(a.a)({en:"Google Translation","zh-CN":"谷歌翻译","zh-TW":"谷歌翻譯"},{cnfirst:{en:"Use google.cn first","zh-CN":"优先使用 google.cn","zh-TW":"優先使用 google.cn"},concurrent:{en:"Search concurrently","zh-CN":"并行查询","zh-TW":"並行查詢"}},{concurrent:{en:"Search .com and .cn concurrently","zh-CN":"同时搜索 .com 和 .cn 取最先返回的结果","zh-TW":"同時搜尋 .com 和 .cn 取最先返回的結果"}})},270:function(e){e.exports=JSON.parse('{"name":{"en":"Google Dictionary","zh-CN":"谷歌词典","zh-TW":"谷歌詞典"},"options":{"enresult":{"en":"English Result","zh-CN":"强制显示英文结果","zh-TW":"強制顯示英文結果"}}}')},271:function(e){e.exports=JSON.parse('{"name":{"en":"國語辭典","zh-CN":"国语辞典","zh-TW":"國語辭典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},272:function(e){e.exports=JSON.parse('{"name":{"en":"Hu Jiang","zh-CN":"沪江小D","zh-TW":"沪江小D"},"options":{"engas":{"en":"Treat English as","zh-CN":"对全英文使用词典","zh-TW":"對全英文使用字典"},"chsas":{"en":"Treat Chinese as","zh-CN":"对全中文使用词典","zh-TW":"對全中文使用字典"},"uas":{"en":"Treat \'ü\' as","zh-CN":"将 \'ü\' 字符当作","zh-TW":"把 \'ü\' 字元當成"},"aas":{"en":"Treat \'ä\' as","zh-CN":"将 \'ä\' 字符当作","zh-TW":"把 \'ä\' 字元當成"},"eas":{"en":"Treat \'é\' as","zh-CN":"将 \'é\' 字符当作","zh-TW":"把 \'é\' 字元當成"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"chsas-jp/cj":{"en":"中 → 日","zh-CN":"中 → 日","zh-TW":"中 → 日"},"chsas-jp/jc":{"en":"日 → 中","zh-CN":"日 → 中","zh-TW":"日 → 中"},"chsas-kr":{"en":"Korean","zh-CN":"韩文","zh-TW":"韓文"},"chsas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"chsas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"chsas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"chsas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"engas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"engas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"engas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"engas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"uas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"uas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"uas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"aas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"aas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"eas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"eas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"}}}')},273:function(e){e.exports=JSON.parse('{"name":{"en":"Jikipedia","zh-CN":"小鸡词典","zh-TW":"小雞詞典"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},274:function(e){e.exports=JSON.parse('{"name":{"en":"Jukuu","zh-CN":"句酷","zh-TW":"句酷"},"options":{"lang":{"en":"Language","zh-CN":"语言","zh-TW":"語言"},"lang-zheng":{"en":"Chinese-English","zh-CN":"中英","zh-TW":"中英"},"lang-engjp":{"en":"English-Japanese","zh-CN":"英日","zh-TW":"英日"},"lang-zhjp":{"en":"Chinese-Japanese","zh-CN":"中日","zh-TW":"中日"}}}')},275:function(e){e.exports=JSON.parse('{"name":{"en":"Lexico","zh-CN":"Lexico","zh-TW":"Lexico"},"options":{"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},276:function(e){e.exports=JSON.parse('{"name":{"en":"兩岸詞典","zh-CN":"两岸词典","zh-TW":"兩岸詞典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},277:function(e){e.exports=JSON.parse('{"name":{"en":"Longman Dictionary","zh-CN":"朗文词典","zh-TW":"朗文詞典"},"options":{"wordfams":{"en":"Show word family","zh-CN":"显示单词家族","zh-TW":"展示單字家族"},"collocations":{"en":"Show collocations","zh-CN":"显示惯用搭配","zh-TW":"展示慣用搭配"},"grammar":{"en":"Show grammar","zh-CN":"显示语法解释","zh-TW":"展示文法講解"},"thesaurus":{"en":"Show thesaurus","zh-CN":"显示同义词","zh-TW":"展示同義詞"},"examples":{"en":"Show examples","zh-CN":"显示例句","zh-TW":"展示例句"},"bussinessFirst":{"en":"Show bussiness result first","zh-CN":"优先显示商务词典","zh-TW":"優先展示商務字典"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},278:function(e){e.exports=JSON.parse('{"name":{"en":"Macmillan","zh-CN":"麦克米伦","zh-TW":"麥克米倫"},"options":{"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"locale":{"en":"Locale","zh-CN":"方言","zh-TW":"方言"},"locale-uk":{"en":"UK","zh-CN":"英式","zh-TW":"英式"},"locale-us":{"en":"US","zh-CN":"美式","zh-TW":"美式"}}}')},279:function(e){e.exports=JSON.parse('{"name":{"en":"MOJi辞書","zh-CN":"MOJi辞書","zh-TW":"MOJi辞書"}}')},280:function(e){e.exports=JSON.parse('{"name":{"en":"Naver韩国语词典","zh-CN":"Naver韩国语词典","zh-TW":"Naver韩国语词典"},"options":{"hanAsJa":{"en":"Search Chinese with Japanese Dictionary","zh-CN":"用日语词典查中文","zh-TW":"用日語詞典查漢字"},"korAsJa":{"en":"Search Korean with Japanese Dictionary","zh-CN":"用日语词典查韩语","zh-TW":"用日语词典查韓語"}}}')},281:function(e){e.exports=JSON.parse('{"name":{"en":"91dict","zh-CN":"人人词典","zh-TW":"人人詞典"}}')},282:function(e){e.exports=JSON.parse('{"name":{"en":"Shanbay Dictionary","zh-CN":"扇贝词典","zh-TW":"扇貝詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"}}}')},283:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return s}));var a=n(39);const s=Object(a.a)({en:"Sogou Translation","zh-CN":"搜狗翻译","zh-TW":"搜狗翻譯"})},284:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return s}));var a=n(39);const s=Object(a.a)({en:"Tencent Translate","zh-CN":"腾讯翻译君","zh-TW":"騰訊翻譯君"})},285:function(e){e.exports=JSON.parse('{"name":{"en":"Urban","zh-CN":"Urban","zh-TW":"Urban"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},286:function(e){e.exports=JSON.parse('{"name":{"en":"Vocabulary.com","zh-CN":"Vocabulary.com","zh-TW":"Vocabulary.com"}}')},287:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio","zh-CN":"Weblio 辞書","zh-TW":"Weblio 辞書"}}')},288:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio ejje","zh-CN":"Weblio 英和和英","zh-TW":"Weblio 英和和英"}}')},289:function(e){e.exports=JSON.parse('{"name":{"en":"Merriam-Webster\'s Learner\'s Dictionary","zh-CN":"韦氏学习词典","zh-TW":"韋氏學習字典"},"options":{"defs":{"en":"Show definitions","zh-CN":"显示释义","zh-TW":"顯示解釋"},"phrase":{"en":"Show phrases","zh-CN":"显示词组","zh-TW":"顯示片語"},"derived":{"en":"Show derived words","zh-CN":"显示派生词","zh-TW":"顯示衍生字"},"arts":{"en":"Show pictures","zh-CN":"显示图片释义","zh-TW":"顯示圖片解釋"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},29:function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"f",(function(){return w})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return m}));var a=n(85),s=n.n(a),i=n(78),o=n(160),r=n(1),c=n(95),l=n(64),d=n(76),u=n(10);function h(e){return e&&1===e.v?JSON.parse(s.a.inflate(e.d,{to:"string"})):e}async function f(){let e=await g();return e=e&&e.version?Object(o.b)(e):Object(i.a)(),await w(e),e}async function p(){const e=Object(i.a)();return await w(e),e}async function g(){const{baseconfig:e}=await r.c.sync.get("baseconfig");return h(e||Object(i.a)())}function w(e){return r.c.sync.set({baseconfig:(t=e,{v:1,d:s.a.deflate(JSON.stringify(t),{to:"string"})})});var t}async function b(e){r.c.sync.addListener(t=>{if(t.baseconfig){const{newValue:n,oldValue:a}=t.baseconfig;n&&e({newConfig:h(n),oldConfig:h(a)})}})}function m(){return Object(c.a)(Object(l.a)(g()),Object(d.a)(b).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newConfig)))}},290:function(e){e.exports=JSON.parse('{"name":{"en":"Wikipedia","zh-CN":"维基百科","zh-TW":"維基百科"},"options":{"lang":{"en":"Language","zh-CN":"百科语言","zh-TW":"百科語言"},"lang-auto":{"en":"Auto (respect Wiki settings)","zh-CN":"自动(遵循维基账户设定)","zh-TW":"自动(遵循維基賬戶設定)"},"lang-zh":{"en":"中文(简繁由维基账户设定)","zh-CN":"中文(简繁由维基账户设定)","zh-TW":"中文(簡繁由維基賬戶設定)"},"lang-zh-cn":{"en":"强制简体中文子页面","zh-CN":"强制简体中文子页面","zh-TW":"强制简体中文子页面"},"lang-zh-tw":{"en":"強制台灣正體子頁面","zh-CN":"強制台灣正體子頁面","zh-TW":"強制台灣正體子頁面"},"lang-zh-hk":{"en":"強制香港繁體子頁面","zh-CN":"強制香港繁體子頁面","zh-TW":"強制香港繁體子頁面"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-ja":{"en":"日本語","zh-CN":"日本語","zh-TW":"日本語"},"lang-fr":{"en":"Français","zh-CN":"Français","zh-TW":"Français"},"lang-de":{"en":"Deutschsprachige","zh-CN":"Deutschsprachige","zh-TW":"Deutschsprachige"}}}')},291:function(e){e.exports=JSON.parse('{"name":{"en":"Youdao Dictionary","zh-CN":"有道词典","zh-TW":"有道詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"collins":{"en":"Show Collins result","zh-CN":"显示柯林斯双解","zh-TW":"顯示柯林斯雙解"},"discrimination":{"en":"Show discrimination","zh-CN":"显示词语辨析","zh-TW":"顯示詞語辨析"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"},"translation":{"en":"Show translation","zh-CN":"显示有道翻译","zh-TW":"顯示有道翻譯"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},292:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return s}));var a=n(39);const s=Object(a.a)({en:"Youdao Translate","zh-CN":"有道翻译","zh-TW":"有道翻譯"})},293:function(e){e.exports=JSON.parse('{"name":{"en":"汉典","zh-CN":"汉典","zh-TW":"漢典"},"options":{"audio":{"en":"Enable audio","zh-CN":"开启发音","zh-TW":"啟用發音"}},"helps":{"audio":{"en":"Referer modification is required, which may slightly impact performance.","zh-CN":"突破外链限制需要改写 Referer,可能会轻微影响性能。","zh-TW":"突破外鏈限制需要改寫 Referer,可能會輕微影響效能。"}}}')},294:function(e,t,n){var a={"./ankiconnect/_locales/en.ts":295,"./ankiconnect/_locales/zh-CN.ts":296,"./ankiconnect/_locales/zh-TW.ts":297,"./shanbay/_locales/en.ts":298,"./shanbay/_locales/zh-CN.ts":299,"./shanbay/_locales/zh-TW.ts":300,"./webdav/_locales/en.ts":301,"./webdav/_locales/zh-CN.ts":302,"./webdav/_locales/zh-TW.ts":303};function s(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}s.keys=function(){return Object.keys(a)},s.resolve=i,e.exports=s,s.id=294},295:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"Cannot connect to Anki Connect. Please make sure Anki is running.",deck:"Deck not found in Anki.",notetype:"Note type not found in Anki.",add:"Failed to add word to Anki."}}},296:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"无法连接 Anki Connect,请确认 Anki 已在运行。",deck:"Anki 中没有找到相应牌组。",notetype:"Anki 中没有找到相应笔记类型。",add:"添加单词到 Anki 失败。"}}},297:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"無法連線 Anki Connect,請確認 Anki 已在執行。",deck:"Anki 中沒有找到相應牌組。",notetype:"Anki 中沒有找到相應筆記型別。",add:"新增單詞到 Anki 失敗。"}}},298:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Shanbay Word Syncing",open:"Open",error:{login:"Shanbay login failed. Click to open shanbay.com.",network:"Unable to access shanbay.com. Please check your network connection.",word:"Unable to add to Shanbay notebook. This word is not in Shanbay's vocabulary database."}}},299:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇贝单词同步",open:"打开",error:{login:"扇贝登录已失效,请点击打开官网重新登录。",network:"无法访问扇贝生词本,请检查网络。",word:"无法添加到扇贝生词本,扇贝单词库没有收录此单词。"}}},300:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇貝單字同步",open:"開啟",error:{login:"扇貝登入已失效,請點選開啟官網重新登入。",network:"無法訪問扇貝生字本,請檢查網路。",word:"無法新增到扇貝生字本,扇貝單字庫沒有收錄此單字。"}}},301:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV Word Syncing",error:{dir:'Incorrect "Saladict" directory on server.',download:"Download failed. Unable to connect WebDAV Server. If browser proxy is enabled please adjust rules to bypass WebDAV server.",internal:"Unable to save settings.",missing:'Missing "Saladict" directory on server.',mkcol:'Cannot create "Saladict" directory on server. Please create the directory manualy on server.',network:"Network error. Cannot connect to server.",parse:"Incorrect response XML from server.",unauthorized:"Incorrect account or password."}}},302:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 单词同步",error:{dir:"服务器上“Saladict”目录格式不正确,请检查。",download:"下载失败。无法访问 WebDAV 服务器。如启用了浏览器代理请调整规则,不要代理 WebDAV 服务器。",internal:"无法保存。",missing:"服务器上缺少“Saladict”目录。",mkcol:"无法在服务器创建“Saladict”目录。请手动在服务器上创建。",network:"连接服务器失败。",parse:"服务器返回 XML 格式不正确。",unauthorized:"账户或密码不正确。"}}},303:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 單字同步",error:{dir:"伺服器上“Saladict”目錄格式不正確,請檢查。",download:"下載失敗。無法訪問 WebDAV 伺服器。如啟用了瀏覽器代理請調整規則,不要代理 WebDAV 伺服器。",internal:"無法儲存。",missing:"伺服器上缺少“Saladict”目錄。",mkcol:"無法在伺服器建立“Saladict”目錄。請手動在伺服器上建立。",network:"連線伺服器失敗。",parse:"伺服器返回 XML 格式不正確。",unauthorized:"帳戶或密碼不正確。"}}},310:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r}));var a=n(1),s=n(46);async function i(){return(await a.c.local.get("titlebarOffset")).titlebarOffset}function o(e){return a.c.local.set({titlebarOffset:e})}async function r(){try{const e=await browser.windows.getCurrent();if(null==e.id)return;const t=await browser.windows.create({state:"maximized"}),n=await browser.windows.create({state:"maximized",type:"panel"});if(null==(null==t?void 0:t.id)||null==(null==n?void 0:n.id))return;await browser.windows.update(e.id,{focused:!0}),await Object(s.d)(0);const a=(await browser.windows.get(t.id)).top,i=(await browser.windows.get(n.id)).top;if(browser.windows.remove(t.id),browser.windows.remove(n.id),null==a||null==i)return;return{main:a,panel:i}}catch(e){!1}}},39:function(e,t,n){"use strict";function a(e,t={},n={}){return{name:e,options:{keepLF:{en:"Keep linebreaks","zh-CN":"保留换行","zh-TW":"保留換行"},"keepLF-none":{en:"None","zh-CN":"不保留","zh-TW":"不保留"},"keepLF-all":{en:"All","zh-CN":"全保留","zh-TW":"全保留"},"keepLF-pdf":{en:"PDF","zh-CN":"保留 PDF 换行","zh-TW":"保留 PDF 換行"},"keepLF-webpage":{en:"Webpage","zh-CN":"保留网页换行","zh-TW":"保留網頁換行"},slInitial:{en:"Source Language","zh-CN":"原文显示","zh-TW":"原文顯示"},"slInitial-hide":{en:"Hide","zh-CN":"隐藏","zh-TW":"隱藏"},"slInitial-collapse":{en:"Collapse","zh-CN":"收起","zh-TW":"收起"},"slInitial-full":{en:"Full","zh-CN":"完整显示","zh-TW":"完整顯示"},tl:{en:"Target language","zh-CN":"目标语言","zh-TW":"目標語言"},tl2:{en:"Fallback target language","zh-CN":"第二目标语言","zh-TW":"第二目標語言"},...t},helps:{slInitial:{en:"Source language initial state. If hided can be reopened via dictionary titlebar menu.","zh-CN":"原文初始显示状态。隐藏后可通过字典标题栏菜单打开。","zh-TW":"原文初始顯示狀態。隱藏後可通過字典標題欄選單開啟。"},tl2:{en:"Fallback when detected languange and target language are identical.","zh-CN":"如果检测的源语言与目标语言相同将自动切换第二目标语言。","zh-TW":"如果檢測的源語言與目標語言相同將自動切換第二目標語言。"},...n}}}n.d(t,"a",(function(){return a}))},40:function(e,t,n){"use strict";n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return g})),n.d(t,"k",(function(){return w})),n.d(t,"f",(function(){return b})),n.d(t,"m",(function(){return m})),n.d(t,"b",(function(){return y})),n.d(t,"j",(function(){return C})),n.d(t,"e",(function(){return _})),n.d(t,"l",(function(){return T})),n.d(t,"g",(function(){return z})),n.d(t,"n",(function(){return k})),n.d(t,"a",(function(){return O})),n.d(t,"d",(function(){return S})),n.d(t,"c",(function(){return N}));var a=n(85),s=n.n(a),i=n(74),o=n(178),r=n(1),c=n(95),l=n(64),d=n(76),u=n(10);function h(e){return{v:1,d:s.a.deflate(JSON.stringify(e),{to:"string"})}}function f(e){return e&&1===e.v?JSON.parse(s.a.inflate(e.d,{to:"string"})):e}function p(e,t){const n=/^%%_(\S+)_%%$/.exec(e);return n&&t("common:profile."+n[1])||e}async function g(){let e=[],t=[],n="";const a=await r.c.sync.get(["profileIDList","activeProfileID"]);if(a.profileIDList&&(t=a.profileIDList.filter(e=>Boolean(e&&"string"==typeof e.id&&"string"==typeof e.name))),a.activeProfileID&&(n=a.activeProfileID),t.length>0)for(const{id:n}of t){const t=await b(n);e.push(t?Object(o.a)(t):Object(i.b)(n))}else({profileIDList:t,profiles:e}=Object(i.a)()),n=t[0].id;n||(n=t[0].id);let s=e.find(({id:e})=>e===n);s||(s=e[0],n=s.id),await r.c.sync.set({profileIDList:t,activeProfileID:n});for(const t of e)await m(t);return s}async function w(){const{profileIDList:e}=await r.c.sync.get("profileIDList");return e&&await r.c.sync.remove([...e.map(({id:e})=>e),"profileIDList","activeProfileID","configProfileIDs","activeConfigID"]),g()}async function b(e){return f((await r.c.sync.get(e))[e])}async function m(e){return r.c.sync.set({[e.id]:h(e)})}async function y(e){const t=e.id,n=await z();return r.c.sync.set({profileIDList:[...n,e],[t]:h(Object(i.b)(t))})}async function C(e){const t=await v();let n=await z();return n=n.filter(t=>t.id!==e),t===e&&await T(n[0].id),await k(n),r.c.sync.remove(e)}async function _(){const e=await v();if(e){const t=await b(e);if(t)return t}return Object(i.b)()}async function v(){return(await r.c.sync.get("activeProfileID")).activeProfileID||""}function T(e){return r.c.sync.set({activeProfileID:e})}async function z(){return(await r.c.sync.get("profileIDList")).profileIDList||[]}function k(e){return r.c.sync.set({profileIDList:e})}function j(e){r.c.sync.addListener("profileIDList",({profileIDList:t})=>{t&&t.newValue&&e(t)})}async function O(e){let t=await v();r.c.sync.addListener(n=>{if(n.activeProfileID){const{newValue:a,oldValue:s}=n.activeProfileID;a&&(t=a,s?r.c.sync.get([s,a]).then(t=>{t[a]&&e({newProfile:f(t[a]),oldProfile:f(t[s])})}):b(a).then(t=>{t&&e({newProfile:t})}))}if(t&&n[t]){const{newValue:a,oldValue:s}=n[t];if(a)return void e({newProfile:f(a),oldProfile:f(s)})}})}function S(){return Object(c.a)(Object(l.a)(z()),Object(d.a)(j).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newValue)))}function N(){return Object(c.a)(Object(l.a)(_()),Object(d.a)(O).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newProfile)))}},432:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}));var a=n(24),s=n(142);async function i(e){return(await Object(s.a)()).notebook.where("text").equalsIgnoreCase(e.text).count().then(e=>e>0)}async function o({area:e,text:t}){return(await Object(s.a)())[e].where("text").equalsIgnoreCase(t).toArray()}async function r({area:e,itemsPerPage:t,pageNum:n,filters:i={},sortField:o="date",sortOrder:r="descend",searchText:c}){const l=(await Object(s.a)())[e].orderBy(o?Array.isArray(o)?o.map(e=>String(e)):String(o):"date");r&&"descend"!==r||l.reverse();const d=Array.isArray(i.text)&&i.text.length>0;if(d||c){const e=d?i.text.reduce((e,t)=>(e[t]=!0,e),{}):{},t=c?c.toLocaleLowerCase():"";l.filter(n=>{const s=!d||(e.en&&Object(a.e)(n.text)||e.ch&&Object(a.c)(n.text)||e.word&&!/\s/.test(n.text)||e.phra&&/\s/.test(n.text)),i=!c||Object.values(n).some(e=>"string"==typeof e&&-1!==e.toLocaleLowerCase().indexOf(t));return s&&i})}const u=await l.count();void 0!==t&&void 0!==n&&l.offset(t*(n-1)).limit(t);return{total:u,words:await l.toArray()}}},436:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n(142);async function s({area:e,word:t}){return(await Object(a.a)())[e].put(t)}async function i({area:e,words:t}){return(await Object(a.a)())[e].bulkPut(t)}async function o({area:e,dates:t}){const n=await Object(a.a)();return Array.isArray(t)?n[e].bulkDelete(t):n[e].clear()}},442:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={app:{off:"Saladict disabled. (Quick Search Panel is still available)",tempOff:"Saladict disabled on current tab. (Quick Search Panel is still available)",unsupported:"Embedded Saladict panel is unsupported for current tab. Use Standalone Saladict panel instead."}}},443:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={app:{off:"沙拉查词已关闭(快捷查词依然可用)",tempOff:"沙拉查词已对当前标签关闭(快捷查词依然可用)",unsupported:"内嵌查词面板不支持此类页面(独立窗口查词面板依然可用)"}}},444:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={app:{off:"沙拉查詞已關閉(快捷查詞依然可用)",tempOff:"沙拉查詞已對當前標籤關閉(快捷查詞依然可用)",unsupported:"內嵌查字介面不支援此類頁面(獨立視窗查字介面依然可用)"}}},46:function(e,t,n){"use strict";function a(e){const t=Array.isArray(e)?e:Array.from(e);return Promise.all(t.map(e=>Promise.resolve(e).catch(()=>null)))}function s(e){const t=Array.isArray(e)?e:Array.from(e);let n=0;return new Promise((e,a)=>t.forEach(s=>{Promise.resolve(s).then(e).catch(()=>{++n===t.length&&a(new Error("All rejected"))})}))}function i(...e){return new Promise(t=>{setTimeout(()=>e.length>1?t(e[1]):t(),Number(e[0])||0)})}function o(e,t=0){return Promise.race([e,i(t).then(()=>Promise.reject(new Error(`timeout ${t}ms`)))])}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o}))},505:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return o}));var a=n(250),s=n(107),i=n(1);class o extends a.a{constructor(...e){super(...e),this.meta={},this.handleSyncAlarm=async e=>{if("webdav"!==e.name)return;try{await this.download({})}catch(e){console.error(e),Object(s.c)(o.id,"download")}const t=6e4*this.config.duration||9e5;await i.c.local.set({webdavInterval:Date.now()+t})}}static getDefaultConfig(){return{enable:!1,url:"",user:"",passwd:"",duration:15}}async onStart(){if(this.config.enable)if(this.meta=await Object(s.a)(o.id)||this.meta,await browser.alarms.clear("webdav"),browser.alarms.onAlarm.addListener(this.handleSyncAlarm),"string"!=typeof this.config.url||this.config.url.endsWith("/")||(this.config.url+="/"),this.config.url){const e=+this.config.duration||15,t=Date.now();let n=+(await i.c.local.get("webdavInterval")).webdavInterval;(!n||n<t||t+6e4*e<n)&&(n=t+1e3),await i.c.local.set({webdavInterval:n}),browser.alarms.create("webdav",{when:n,periodInMinutes:e})}else await i.c.local.set({webdavInterval:0})}async checkDir(){let e,t="";try{const e=await fetch(this.config.url,{method:"PROPFIND",headers:{Authorization:"Basic "+window.btoa(`${this.config.user}:${this.config.passwd}`),"Content-Type":'application/xml; charset="utf-8"',Depth:"1"}});if(!e.ok){if(401===e.status)throw new Error("unauthorized");throw new Error("Network error: "+e.status)}t=await e.text()}catch(e){throw new Error("network")}try{t&&(e=(new DOMParser).parseFromString(t,"text/xml"))}catch(e){throw new Error("parse")}if(!e)throw new Error("parse");const n=Array.from(e.querySelectorAll("response"));for(const e in n){const t=n[e].querySelector("href");if(t&&t.textContent&&t.textContent.endsWith("/Saladict/")){if(n[e].querySelector("resourcetype collection"))return!0;throw new Error("dir")}}return!1}async init(){const e=await this.checkDir();if(!e){if(!(await fetch(this.config.url+"Saladict",{method:"MKCOL",headers:{Authorization:"Basic "+window.btoa(`${this.config.user}:${this.config.passwd}`)}})).ok)throw new Error("mkcol")}if(e){try{await this.download({testConfig:this.config,noCache:!0})}catch(e){return}throw new Error("exist")}}async add({force:e}){if(!this.config.url)return void 0;e||await this.download({});const t=await Object(s.b)();if(!t||t.length<=0)return;const n=Date.now();try{var a=JSON.stringify({timestamp:n,words:t})}catch(e){throw new Error("parse")}try{if(!(await fetch(this.config.url+"Saladict/notebook.json",{method:"PUT",headers:{Authorization:"Basic "+window.btoa(`${this.config.user}:${this.config.passwd}`)},body:a})).ok)throw new Error("network")}catch(e){throw new Error("network")}await this.setMeta({timestamp:n,etag:""})}delete({force:e}){return this.add({force:e})}async download({testConfig:e,noCache:t}){const n=e||this.config;if(!n.url)return void 0;const a={Authorization:"Basic "+window.btoa(`${n.user}:${n.passwd}`)};e||t||null==this.meta.etag||(a["If-None-Match"]=this.meta.etag,a["If-Modified-Since"]=this.meta.etag);try{var i=await fetch(n.url+(n.url.endsWith("/")?"":"/")+"Saladict/notebook.json",{method:"GET",headers:a});if(304===i.status)return;if(!i.ok)throw new Error}catch(e){throw new Error("network")}try{var o=await i.json()}catch(e){throw new Error("parse")}if(!Array.isArray(o.words)||o.words.some(e=>!e.date))throw new Error("format");if(!o.timestamp)throw new Error("timestamp");if(e)return;const r=this.meta;(!r.timestamp||o.timestamp>=r.timestamp)&&await this.setMeta({timestamp:o.timestamp,etag:i.headers.get("ETag")||r.etag||""}),!t&&r.timestamp&&o.timestamp<=r.timestamp||await Object(s.f)(o.words)}async destroy(){browser.alarms.onAlarm.removeListener(this.handleSyncAlarm),await browser.alarms.clear("webdav")}setMeta(e){return this.meta=e,Object(s.e)(o.id,e)}async getMeta(){const e=await Object(s.a)(o.id);this.meta=e||{}}}o.id="webdav"},535:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return l}));var a=n(131),s=n.n(a),i=n(80),o=n(250),r=n(107),c=n(1);class l extends o.a{constructor(...e){super(...e),this.noteFileds=void 0,this.handleMessage=e=>{switch(e.type){case"ANKI_CONNECT_FIND_WORD":return this.findNote(e.payload).catch(()=>"");case"ANKI_CONNECT_UPDATE_WORD":return this.updateWord(e.payload.cardId,e.payload.word).catch(e=>Promise.reject(e))}},this._div=void 0}static getDefaultConfig(){return{enable:!1,host:"127.0.0.1",port:"8765",key:null,deckName:"Saladict",noteType:"Saladict Word",tags:"",escapeContext:!0,escapeTrans:!0,escapeNote:!0,syncServer:!1}}async init(){if(!await this.isServerUp())throw new Error("server");const e=await this.request("deckNames");if(!(null==e?void 0:e.includes(this.config.deckName)))throw new Error("deck");const t=await this.request("modelNames");if(!(null==t?void 0:t.includes(this.config.noteType)))throw new Error("notetype")}onStart(){c.a.addListener(this.handleMessage)}async destroy(){c.a.removeListener(this.handleMessage)}async findNote(e){this.noteFileds||(this.noteFileds=await this.getNotefields());try{return(await this.request("findNotes",{query:`deck:${this.config.deckName} ${this.noteFileds[0]}:${e}`}))[0]}catch(e){!1}}async add({words:e,force:t}){if(!await this.isServerUp())throw new Error("server");if(t&&(e=await Object(r.b)()),e&&!(e.length<=0)&&(await Promise.all(e.map(async e=>{if(!await this.findNote(e.date))try{await this.addWord(e)}catch(e){throw new Error("add")}})),this.config.syncServer))try{await this.request("sync")}catch(e){!1}}async addWord(e){return this.request("addNote",{note:{deckName:this.config.deckName,modelName:this.config.noteType,options:{allowDuplicate:!1,duplicateScope:"deck"},tags:this.extractTags(),fields:await this.wordToFields(e)}})}async updateWord(e,t){return this.request("updateNoteFields",{note:{id:e,fields:await this.wordToFields(t)}})}async addDeck(){return this.request("createDeck",{deck:this.config.deckName})}async addNoteType(){this.noteFileds=["Date","Text","Translation","Context","ContextCloze","Note","Title","Url","Favicon","Audio"],await this.request("createModel",{modelName:this.config.noteType,inOrderFields:this.noteFileds,css:".card {\n font-family: arial;\n font-size: 20px;\n text-align: center;\n color: #333;\n background-color: white;\n}\n\na {\n color: #5caf9e;\n}\n\ninput {\n border: 1px solid #eee;\n}\n\nsection {\n margin: 1em 0;\n}\n\n.trans {\n border: 1px solid #eee;\n padding: 0.5em;\n}\n\n.trans_title {\n display: block;\n font-size: 0.9em;\n font-weight: bold;\n}\n\n.trans_content {\n margin-bottom: 0.5em;\n}\n\n.cloze {\n font-weight: bold;\n color: #f9690e;\n}\n\n.tsource {\n position: relative;\n font-size: .8em;\n}\n\n.tsource img {\n height: .7em;\n}\n\n.tsource a {\n text-decoration: none;\n}\n\n.typeGood {\n color: #fff;\n background: #1EBC61;\n}\n\n.typeBad {\n color: #fff;\n background: #F75C4C;\n}\n\n.typeMissed {\n color: #fff;\n background: #7C8A99;\n}\n",cardTemplates:[{Name:"Saladict Cloze",Front:d(!0,this.noteFileds),Back:d(!1,this.noteFileds)}]}),this.noteFileds=await this.getNotefields(),await this.request("updateModelTemplates",{model:{name:this.config.noteType,templates:{"Saladict Cloze":{Front:d(!0,this.noteFileds),Back:d(!1,this.noteFileds)}}}})}async request(e,t){const{data:n}=await s()({method:"post",url:`http://${this.config.host}:${this.config.port}`,data:{key:this.config.key||null,version:6,action:e,params:t||{}}});if(!n||!Object.prototype.hasOwnProperty.call(n,"result"))throw new Error("Deprecated Anki Connect version");if(n.error)throw new Error(n.error);return n.result}async wordToFields(e){return this.noteFileds||(this.noteFileds=await this.getNotefields()),{[this.noteFileds[0]]:""+e.date,[this.noteFileds[1]]:e.text||"",[this.noteFileds[2]]:this.parseTrans(e.trans,this.config.escapeTrans),[this.noteFileds[3]]:this.multiline(e.context,this.config.escapeContext),[this.noteFileds[4]]:this.multiline(e.context.split(e.text).join(`{{c1::${e.text}}}`),this.config.escapeContext)||`{{c1::${e.text}}}`,[this.noteFileds[5]]:this.multiline(e.note,this.config.escapeNote),[this.noteFileds[6]]:e.title||"",[this.noteFileds[7]]:e.url||"",[this.noteFileds[8]]:e.favicon||"",[this.noteFileds[9]]:""}}async getNotefields(){const e=await this.request("modelFieldNames",{modelName:this.config.noteType});return(null==e?void 0:e.includes("Date."))?["Date.","Text.","Translation.","Context.","ContextCloze.","Note.","Title.","Url.","Favicon.","Audio."]:(null==e?void 0:e.includes("日期"))?["日期","文字","Translation","Context","ContextCloze","笔记","Title","Url","Favicon","Audio"]:["Date","Text","Translation","Context","ContextCloze","Note","Title","Url","Favicon","Audio"]}multiline(e,t){return(e=e.trim())?(t&&(e=this.escapeHTML(e)),e.trim().replace(/\n/g,"<br/>")):""}parseTrans(e,t){if(!(e=e.trim()))return"";const n=Object(i.b)(e),a=Object.keys(n);if(a.length<=0)return this.multiline(e,t);const s=a.map(e=>`<span class="trans_title">${e}</span><div class="trans_content">${n[e]}</div>`).join("");return e.split(/\[:: \w+ ::\](?:[\s\S]+?)(?:-{15})/).map(e=>this.multiline(e,t)).join(`<div class="trans">${s}</div>`)}escapeHTML(e){return this._div||(this._div=document.createElement("div"),this._div.appendChild(document.createTextNode(""))),this._div.firstChild.nodeValue=e,this._div.innerHTML}extractTags(){return this.config.tags.split(/,|,/).map(e=>e.trim()).filter(Boolean)}async isServerUp(){try{return null!=await this.request("version")}catch(e){return!1}}}function d(e,t){return`{{#${t[4]}}}\n<section>{{cloze:${t[4]}}}</section>\n<section>{{{{type:cloze:${t[4]}}}</section>\n{{#${t[2]}}}\n<section>{{${t[2]}}}</section>\n{{/${t[2]}}}\n{{/${t[4]}}}\n\n{{^${t[4]}}}\n<h1>{{${t[1]}}}</h1>\n{{#${t[2]}}}\n<section>{{${t[2]}}}</section>\n{{/${t[2]}}}\n{{/${t[4]}}}\n\n{{#${t[5]}}}\n<section>{{${(e?"hint:":"")+t[5]}}}</section>\n{{/${t[5]}}}\n\n{{#${t[6]}}}\n<section class="tsource">\n<hr />\n{{#${t[8]}}}<img src="{{${t[8]}}}" />{{/${t[8]}}}\n<a href="{{${t[7]}}}">{{${t[6]}}}</a>\n</section>\n{{/${t[6]}}}\n`}l.id="ankiconnect"},536:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return l}));var a=n(250),s=n(107),i=n(1),o=n(46),r=n(2),c=n(251);class l extends a.a{static getDefaultConfig(){return{enable:!1}}static openLogin(){return Object(i.b)("https://www.shanbay.com/web/account/login")}async init(){if(!await this.isLogin())throw new Error("login")}async add(e){await this.addInternal(e)}async addInternal({words:e,force:t}){if(!this.config.enable)return 0;if(!await this.isLogin())return this.notifyLogin(),0;if(t&&(e=await Object(s.b)()),!e||e.length<=0)return 0;let n=0;for(let t=0;t<e.length;t++){try{await this.addWord(e[t].text)}catch(a){if("word"!==a.message)throw a;n+=1,Object(s.c)(l.id,"word",`「${e[t].text}」`)}(t+1)%50==0?await Object(o.d)(9e5):await Object(o.d)(500)}return n}async addWord(e){let t,n;try{const n="https://apiv3.shanbay.com/abc/words/senses?vocabulary_content="+encodeURIComponent(e);t=await fetch(n).then(e=>e.json())}catch(e){throw new Error("network")}if(!t||!t.id)throw new Error("word");try{n=await fetch("https://apiv3.shanbay.com/wordscollection/words",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vocab_id:t.id,business_id:6})}).then(e=>e.json())}catch(e){throw new Error("network")}if(!n||!n.created_at)throw new Error("word")}async isLogin(){return Boolean(await browser.cookies.get({url:"http://www.shanbay.com",name:"auth_token"}))}async notifyLogin(){const{i18n:e}=await c.a.getInstance();await e.loadNamespaces("sync"),browser.notifications.onClicked.addListener(d),browser.notifications.onClosed.removeListener(u),browser.notifications.onButtonClicked&&browser.notifications.onButtonClicked.addListener(d);const t={type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict "+e.t("sync:shanbay.title"),message:e.t("sync:shanbay.error.login"),eventTime:Date.now()+1e4,priority:2};r.c||(t.buttons=[{title:e.t("sync:shanbay.open")}]),browser.notifications.create("shanbay-login",t)}}function d(e){"shanbay-login"===e&&(l.openLogin(),u(e))}function u(e){"shanbay-login"===e&&(browser.notifications.onClicked.removeListener(d),browser.notifications.onClosed.removeListener(u),browser.notifications.onButtonClicked&&browser.notifications.onButtonClicked.removeListener(d))}l.id="shanbay"},717:function(e,t){},74:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r}));var a=n(113),s=n(81);const i=function(e){return{version:1,id:e||Object(a.a)(),mtaAutoUnfold:"",waveform:!0,stickyFold:!1,dicts:{selected:["bing","cobuild","cambridge","youdao","urban","vocabulary","google","zdic","guoyu","liangan","googledict"],all:Object(s.b)()}}};function o(e){return{id:e||Object(a.a)(),name:"%%_default_%%"}}function r(){const e=o(),t=i(e.id),n=function(){const e=o();e.name="%%_sentence_%%";const t=i(e.id);t.dicts.selected=["jukuu","bing","cnki","renren","eudic","cobuild","cambridge","longman","macmillan"];const n=t.dicts.all;return n.bing.options.tense=!1,n.bing.options.phsym=!1,n.bing.options.cdef=!1,n.bing.options.related=!1,n.bing.options.sentence=9999,n.cnki.options.dict=!1,n.eudic.options.resultnum=9999,n.macmillan.options.related=!1,n.longman.options.wordfams=!1,n.longman.options.collocations=!1,n.longman.options.grammar=!1,n.longman.options.thesaurus=!1,n.longman.options.examples=!0,n.longman.options.bussinessFirst=!1,n.longman.options.related=!1,{idItem:e,profile:t}}(),a=function(){const e=o();e.name="%%_translation_%%";const t=i(e.id);return t.dicts.selected=["google","tencent","baidu","caiyun","youdaotrans","zdic","guoyu","liangan"],t.mtaAutoUnfold="always",{idItem:e,profile:t}}(),s=function(){const e=o();e.name="%%_scholar_%%";const t=i(e.id);t.dicts.selected=["googledict","cambridge","cobuild","etymonline","cnki","macmillan","lexico","websterlearner","google","youdaotrans","zdic","guoyu","liangan"];const n=t.dicts.all;return n.macmillan.defaultUnfold={matchAll:!1,english:!1,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1},n.lexico.defaultUnfold={matchAll:!1,english:!1,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1},n.websterlearner.defaultUnfold={matchAll:!1,english:!1,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1},n.google.selectionWC.min=5,n.youdaotrans.selectionWC.min=5,{idItem:e,profile:t}}(),r=function(){const e=o();e.name="%%_nihongo_%%";const t=i(e.id);return t.dicts.selected=["mojidict","hjdict","weblioejje","weblio","google","tencent","caiyun","googledict","wikipedia"],t.dicts.all.wikipedia.options.lang="ja",t.waveform=!1,{idItem:e,profile:t}}();return{profileIDList:[e,n.idItem,a.idItem,s.idItem,r.idItem],profiles:[t,n.profile,a.profile,s.profile,r.profile]}}},78:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(165),s=n(166),i=n(167),o=n(168),r=n(169);const c={baidu:a.auth,caiyun:s.auth,sogou:i.auth,tencent:o.auth,youdaotrans:r.auth};var l=n(2);const d=browser.i18n.getUILanguage(),u="zh-CN"===d?"zh-CN":"zh-TW"===d||"zh-HK"===d?"zh-TW":"en",h=function(){return{version:14,active:!0,runInBg:!1,analytics:!0,updateCheck:!0,noTypeField:!1,animation:!0,langCode:u,panelWidth:450,panelMaxHeightRatio:80,bowlOffsetX:15,bowlOffsetY:-45,darkMode:!1,panelCSS:"",fontSize:13,pdfSniff:!1,pdfStandalone:"",pdfWhitelist:[],pdfBlacklist:[["^(http|https)://[^/]*?cnki\\.net(/.*)?$","*://*.cnki.net/*"],["^(http|https)://[^/]*?googleusercontent\\.com(/.*)?$","*://*.googleusercontent.com/*"],["^(http|https)://sh-download\\.weiyun\\.com(/.*)?$","*://sh-download.weiyun.com/*"]],searchHistory:!1,searchHistoryInco:!1,editOnFav:!0,searchSuggests:!0,touchMode:!1,mode:{icon:!0,direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},pinMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},panelMode:{direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},qsPanelMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!0,meta:!1},instant:{enable:!1,key:"alt",delay:600}},bowlHover:!0,doubleClickDelay:450,tripleCtrl:!0,qsPreload:"clipboard",qsAuto:!0,qsLocation:"CENTER",qsFocus:!0,defaultPinned:!1,qsStandalone:!0,qssaHeight:600,qssaSidebar:"",qssaPageSel:!0,qssaRectMemo:!1,baWidth:-1,baHeight:550,baPreload:"selection",baAuto:!1,baOpen:"popup_panel",ctxTrans:{google:!0,youdaotrans:!0,baidu:!0,tencent:!1,caiyun:!1,sogou:!1},language:{chinese:!0,english:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},autopron:{cn:{dict:"",list:["zdic","guoyu"]},en:{dict:"",list:["bing","cambridge","cobuild","eudic","longman","macmillan","lexico","urban","websterlearner","youdao"],accent:"uk"},machine:{dict:"",list:["google","sogou","tencent","baidu","caiyun"],src:"trans"}},whitelist:[],blacklist:[["^https://stackedit\\.io(/.*)?$","https://stackedit.io/*"],["^https://docs\\.google\\.com(/.*)?$","https://docs.google.com/*"],["^https://docs\\.qq\\.com(/.*)?$","https://docs.qq.com/*"]],contextMenus:{selected:l.c||!u.startsWith("zh-")?["view_as_pdf","google_translate","saladict"]:["view_as_pdf","caiyuntrs","google_translate","saladict"],all:{baidu_page_translate:"x",baidu_search:"https://www.baidu.com/s?ie=utf-8&wd=%s",bing_dict:"https://cn.bing.com/dict/?q=%s",bing_search:"https://www.bing.com/search?q=%s",caiyuntrs:"x",cambridge:"http://dictionary.cambridge.org/spellcheck/english-chinese-simplified/?q=%s",copy_pdf_url:"x",dictcn:"https://dict.eudic.net/dicts/en/%s",etymonline:"http://www.etymonline.com/index.php?search=%s",google_cn_page_translate:"x",google_page_translate:"x",google_search:"https://www.google.com/#newwindow=1&q=%s",google_translate:"https://translate.google.com/#auto/zh-CN/%s",google_cn_translate:"https://translate.google.cn/#auto/zh-CN/%s",guoyu:"https://www.moedict.tw/%s",iciba:"http://www.iciba.com/%s",liangan:"https://www.moedict.tw/~%s",longman_business:"http://www.ldoceonline.com/search/?q=%s",merriam_webster:"http://www.merriam-webster.com/dictionary/%s",microsoft_page_translate:"x",oxford:"http://www.oxforddictionaries.com/us/definition/english/%s",saladict:"x",saladict_standalone:"x",sogou_page_translate:"x",sogou:"https://fanyi.sogou.com/#auto/zh-CHS/%s",termonline:"https://www.termonline.cn/list.htm?k=%s",view_as_pdf:"x",youdao_page_translate:"x",youdao:"http://dict.youdao.com/w/%s",youglish:"https://youglish.com/search/%s"}},showedDictAuth:!1,dictAuth:JSON.parse(JSON.stringify(c))}}},789:function(e,t,n){var a={"./en/background":442,"./zh-CN/background":443,"./zh-TW/background":444};function s(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}s.keys=function(){return Object.keys(a)},s.resolve=i,e.exports=s,s.id=789},80:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return c}));var a=n(1),s=n(2);async function i(e,t){try{const n=await a.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:e,payload:{isPDF:Object(s.i)()}}});return n&&n.result&&n.result.trans&&n.result.trans.paragraphs.join("\n")||""}catch(e){return""}}async function o(e,t){return(await Promise.all(Object.keys(t).map(async n=>{let a="";if(t[n])try{a=await i(e,n)}catch(e){console.warn(e)}return{id:n,content:a}}))).reduce((e,{id:t,content:n})=>(e[t]=n,e),{})}function r(e){const t=/\[:: (\w+) ::\]\n([\s\S]+?)(?=(?:\[:: \w+ ::\])|(?:-{15}))/g;let n;const a={};for(;null!==(n=t.exec(e));)a[n[1]]=n[2].replace(/\n+$/g,"");return a}function c(e,t){const n=Object.keys(t).filter(e=>t[e]);if(n.length<=0)return e;const a=n.map(e=>`[:: ${e} ::]\n`+t[e]).join("\n\n")+`\n${"".padEnd(15,"-")}\n`;if(!e)return a;const s=/\[:: (\w+) ::\]\n([\s\S]+?)-{15}/;return s.test(e)?e.replace(s,a):e+"\n\n"+a}},81:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i}));var a=n(17);const s={baidu:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{},{}),bing:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{tense:!0,phsym:!0,cdef:!0,related:!0,sentence:4}},caiyun:Object(a.b)(["zh-CN","en","ja"],{lang:"11010000"},{},{}),cambridge:{lang:"11100000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{lang:"default",related:!0},options_sel:{lang:["default","en","en-chs","en-chz"]}},cnki:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:100},options:{dict:!0,senbi:!0,seneng:!0}},cobuild:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:5},options:{cibaFirst:(browser.i18n.getUILanguage()||"en").startsWith("zh-")}},etymonline:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{resultnum:4,chart:!0}},eudic:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:10}},google:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{cnfirst:!0,concurrent:!1},{}),googledict:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{enresult:!0}},guoyu:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!0}},hjdict:{lang:"10011111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:10},options:{related:!0,chsas:"jp/jc",engas:"w",uas:"fr",aas:"fr",eas:"fr"},options_sel:{chsas:["jp/cj","jp/jc","kr","w","fr","de","es"],engas:["w","fr","de","es"],uas:["fr","de","es"],aas:["fr","de"],eas:["fr","es"]}},jikipedia:{lang:"01000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:380,selectionWC:{min:1,max:5},options:{resultnum:4}},jukuu:{lang:"11010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:99999},options:{lang:"zheng"},options_sel:{lang:["zheng","engjp","zhjp"]}},lexico:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{related:!0}},liangan:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!1}},longman:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{wordfams:!1,collocations:!0,grammar:!0,thesaurus:!0,examples:!0,bussinessFirst:!0,related:!0}},macmillan:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:5},options:{related:!0,locale:"uk"},options_sel:{locale:["uk","us"]}},mojidict:{lang:"10010000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5}},naver:{lang:"01011000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!0,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:10},options:{hanAsJa:!1,korAsJa:!1}},renren:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},sogou:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru"],{},{},{}),tencent:Object(a.b)(["zh-CN","en","ja","ko","fr","de","es","ru"],{lang:"11011111"},{},{}),urban:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},vocabulary:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5}},weblio:{lang:"00010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:20}},weblioejje:{lang:"10010000",selectionLang:{english:!0,chinese:!1,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},websterlearner:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{defs:!0,phrase:!0,derived:!0,arts:!0,related:!0}},wikipedia:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:420,selectionWC:{min:1,max:999999999999999},options:{lang:"auto"},options_sel:{lang:["auto","zh","zh-cn","zh-tw","zh-hk","en","ja","fr","de"]}},youdao:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:999999999999999},options:{basic:!0,collins:!0,discrimination:!0,sentence:!0,translation:!1,related:!0}},youdaotrans:Object(a.b)(["zh-CN","en","pt","es","ja","ko","fr","ru"],{lang:"11011111"},{},{}),zdic:{lang:"01000000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:5},options:{audio:!1}}},i=()=>JSON.parse(JSON.stringify(s))},87:function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"e",(function(){return w})),n.d(t,"d",(function(){return b}));var a=n(38),s=n(10),i=n(108),o=n(180),r=n(371),c=n(145),l=n(499),d=n(83),u=n(96),h=n(64);function f(e){return e.pipe(Object(a.a)(e=>!(e.relatedTarget===e.currentTarget||e.relatedTarget instanceof Node&&e.currentTarget.contains(e.relatedTarget))),Object(s.a)(e=>"mouseover"===e.type))}function p(e){return f(e).pipe(Object(i.a)(e=>Object(u.a)(e).pipe(Object(o.a)(e?500:100))))}function g(e){return e.pipe(Object(s.a)(e=>"blur"!==e.type),Object(r.a)(100))}function w(e,t){return n=>n.pipe(Object(c.a)(s=>Object(h.a)(t(s)).pipe(Object(l.a)(n.pipe(Object(a.a)(t=>t[e]===s[e]))))))}function b(e){return Object(d.a)(!0)(e)}},9:function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"c",(function(){return w}));var a=n(0),s=n.n(a),i=n(134),o=n.n(i),r=n(12),c=n(29),l=n(217),d=n.n(l);async function u(){if(r.a.language)return r.a;const{langCode:e}=await Object(c.c)();return await r.a.use({type:"backend",init:()=>{},create:()=>{},read:async(e,t,a)=>{try{if("dicts"===t){const t=function(e){const t=n(260);return t.keys().reduce((n,a)=>{const s=t(a),i=s.locales||s,r=/([^/]+)\/_locales\.(json|ts)$/.exec(a)[1];return n[r]={name:i.name[e]},i.options&&(n[r].options=o()(i.options,t=>t[e])),i.helps&&(n[r].helps=o()(i.helps,t=>t[e])),n},{})}(e);return a(null,t),t}if("sync"===t){const t=function(e){const t=n(294);return t.keys().reduce((n,a)=>{const s=new RegExp(`/([^/]+)/_locales/${e}\\.ts$`).exec(a);if(s){const e=t(a);n[s[1]]=e.locale||e}return n},{})}(e);return a(null,t),t}const{locale:s}=await n(259)(`./${e}/${t}.ts`);return a(null,s),s}catch(e){a(e)}}}).init({lng:e,fallbackLng:!1,whitelist:["en","zh-CN","zh-TW"],debug:!1,saveMissing:!1,load:"currentOnly",ns:"common",defaultNS:"common",interpolation:{escapeValue:!1}}),Object(c.a)(({newConfig:e})=>{r.a.language!==e.langCode&&r.a.changeLanguage(e.langCode)}),r.a}const h=()=>"",f=s.a.createContext(void 0);const p=({children:e})=>{const[t,n]=Object(a.useState)(void 0);return Object(a.useLayoutEffect)(()=>{const e=()=>{n(r.a.language)};return r.a.language||u().then(()=>{n(r.a.language),r.a.on("languageChanged",e)}),()=>{r.a.off("languageChanged",e)}},[]),s.a.createElement(f.Provider,{value:t},e)};function g(e){const t=Object(a.useRef)(0),n=Object(a.useRef)(h),s=Object(a.useRef)((...e)=>n.current(...e)),i=Object(a.useContext)(f),o=(e,a)=>{e&&(n.current=e),a&&(t.current=(t.current+1)%1e5);return{t:s.current,i18n:r.a,ready:!!a&&t.current}},[c,l]=Object(a.useState)(()=>i?e?(Array.isArray(e)?e.every(e=>r.a.hasResourceBundle(i,e)):r.a.hasResourceBundle(i,e))?o(r.a.getFixedT(i,e),!0):o(h,!1):o(r.a.t,!0):o(h,!1));return Object(a.useLayoutEffect)(()=>{let t=!0;return i&&(e?(Array.isArray(e)?e.every(e=>r.a.hasResourceBundle(i,e)):r.a.hasResourceBundle(i,e))?l(o(r.a.getFixedT(i,e),!0)):(l(o(null,!1)),r.a.loadNamespaces(e).then(()=>{t&&l(o(r.a.getFixedT(i,e),!0))})):l(o(r.a.t,!0))),()=>{t=!1}},[i]),c}const w=s.a.memo(({message:e,children:t})=>e?s.a.createElement(a.Fragment,null,d()(e.split(/{[^}]*?}/),Array.isArray(t)?t:[t])):null)}},[[1207,0,1,4,20]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/background.fd20cdb7.js b/plugins/saladict-ztools/ext-saladic/assets/background.fd20cdb7.js new file mode 100644 index 00000000..ddff0220 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/background.fd20cdb7.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[9,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117],{1:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p}));var a=n(81),o=n(39),r=n(10);const i=()=>{},s=new WeakMap,c=new WeakMap,l=new WeakMap,d={sync:{clear:h,remove:f,get:g,set:m,addListener:b,removeListener:y,createStream:w,get __storageArea__(){return"sync"}},local:{clear:h,remove:f,get:g,set:m,addListener:b,removeListener:y,createStream:w,get __storageArea__(){return"local"}},clear:h,addListener:b,removeListener:y,createStream:w,get __storageArea__(){return"all"}},u={send:k,addListener:A,removeListener:C,createStream:O,get __self__(){return!1},self:{initClient:x,initServer:function(){window.pageId="background page";const e=/^\[\[(.+)\]\]$/;browser.runtime.onMessage.addListener((t,n)=>{if(!t||!t.type)return;if("PAGE_INFO"===t.type)return Promise.resolve(function(e){const t={pageId:"",faviconURL:"",pageTitle:"",pageURL:""},n=e.tab;n?(t.pageId=n.id||"",n.favIconUrl&&(t.faviconURL=n.favIconUrl),n.url&&(t.pageURL=n.url),n.title&&(t.pageTitle=n.title)):(t.pageId="popup",e.url&&!e.url.startsWith("http")&&(t.faviconURL="https://saladict.crimx.com/favicon.ico"));return t}(n));const a=e.exec(t.type);if(a){t.type=a[1];const e=n.tab&&n.tab.id;return e?k(e,t):k(t)}})},send:async function e(t){const n=_("message.self.send",e);try{return void 0===window.pageId&&await x(),browser.runtime.sendMessage(Object.assign({},t,{__pageId__:window.pageId,type:`[[${t.type}]]`})).then(e=>S("message.self.send",[t],e,n)).catch(e=>{throw v("message.self.send",[t],e,n)})}catch(e){throw v("message.self.send",[t],e,n)}},addListener:A,removeListener:C,createStream:O,get __self__(){return!0}}};async function p(e,t){const n="string"==typeof e?{url:e,self:t}:e,a=!1!==n.unique,o=n.self?browser.runtime.getURL(n.url):n.url;if(a){const e=await browser.tabs.query({url:o}).catch(()=>[]);if(e.length>0){const{index:t,windowId:n}=e[0];return"function"==typeof browser.tabs.highlight&&await browser.tabs.highlight({tabs:t,windowId:n}),void await browser.windows.update(n,{focused:!0})}}await browser.tabs.create({url:o,active:!1!==n.active})}function h(){return"all"===this.__storageArea__?Promise.all([browser.storage.local.clear(),browser.storage.sync.clear()]).then(i):browser.storage[this.__storageArea__].clear()}function f(e){return browser.storage[this.__storageArea__].remove(e)}function g(...e){return browser.storage[this.__storageArea__].get(...e)}function m(e){return browser.storage[this.__storageArea__].set(e)}function b(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}let a=l.get(n);a||(a=new Map,l.set(n,a));const o=this.__storageArea__+t;let r=a.get(o);return r||(r=(e,a)=>{"all"!==this.__storageArea__&&a!==this.__storageArea__||t&&!(t in e)||n(e,a)},a.set(o,r)),browser.storage.onChanged.addListener(r)}function y(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}const a=l.get(n);if(a){if(!t)return a.forEach(e=>{browser.storage.onChanged.removeListener(e)}),void l.delete(n);{const e=this.__storageArea__+t,o=a.get(e);if(o)return browser.storage.onChanged.removeListener(o),a.delete(e),void(a.size<=0&&l.delete(n))}}browser.storage.onChanged.removeListener(n)}function w(e){if(!e)throw new Error("Missing key");return Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)).pipe(Object(o.a)(t=>Object.prototype.hasOwnProperty.call(Array.isArray(t)?t[0]:t,e)),Object(r.a)(t=>Array.isArray(t)?t[0][e]:t[e]))}function _(e,t){const n=new Error(`[${e}] call stack`),a=Error.captureStackTrace;return a&&a(n,t),n}function v(e,t,n,a){const o=n&&"object"==typeof n&&n.runtimeLastError instanceof Error?n.runtimeLastError:n instanceof Error?n:new Error(String(n||"Unknown error")),r=1===t.length?t[0]:t[1],i=1===t.length?"runtime":"tab "+t[0],s=new Error(`[${e}] runtime.lastError while sending "${r.type}" to ${i}: ${o.message}`);return s.name="MessageRuntimeError",s.cause=o,s.runtimeLastError=o,s.callContext=a,s.stack=[`${s.name}: ${s.message}`,"","Runtime error stack:",o.stack||o.message,"","Message call stack:",a.stack||a.message].join("\n"),s}function S(e,t,n,a){if("PAGE_INFO"===(1===t.length?t[0]:t[1]).type){const o=n;if(!o||"object"!=typeof o||null==o.pageId)throw v(e,t,new Error('Invalid response for "PAGE_INFO": expected an object with pageId, received '+String(n)),a)}return n}function k(...e){const t=_("message.send",k);return(1===e.length?browser.runtime.sendMessage(e[0]):browser.tabs.sendMessage(e[0],e[1])).then(n=>S("message.send",e,n,t)).catch(n=>{throw v("message.send",e,n,t)})}function A(...e){this.__self__&&void 0===window.pageId&&x().catch(console.error);const t=this.__self__?c:s,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1];let o=t.get(a);o||(o=new Map,t.set(a,o));let r=o.get(n||"__DEFAULT_MSGTYPE__");return r||(r=(e,t)=>{if(e&&(this.__self__?window.pageId===e.__pageId__:!e.__pageId__)&&(null==n||e.type===n))return a(e,t)},o.set(n||"__DEFAULT_MSGTYPE__",r)),browser.runtime.onMessage.addListener(r)}function C(...e){const t=this.__self__?c:s,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1],o=t.get(a);if(o){if(!n)return o.forEach(e=>browser.runtime.onMessage.removeListener(e)),void t.delete(a);{const e=o.get(n);if(e)return browser.runtime.onMessage.removeListener(e),o.delete(n),void(o.size<=0&&t.delete(a))}}browser.runtime.onMessage.removeListener(a)}function O(e){return(e?Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)):Object(a.a)(e=>this.addListener(e),e=>this.removeListener(e))).pipe(Object(r.a)(e=>Array.isArray(e)?e[0]:e))}function x(){return void 0===window.pageId?u.send({type:"PAGE_INFO"}).then(e=>{const{pageId:t,faviconURL:n,pageTitle:a,pageURL:o}=e;return window.pageId=t,window.faviconURL=n,a&&(window.pageTitle=a),o&&(window.pageURL=o),t}):Promise.resolve(window.pageId)}},101:function(e,t,n){"use strict";n.d(t,"g",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return f}));var a=n(1),o=n(505),r=n(509),i=n(148);var s=n(274);async function c(e,t){let{syncConfig:n}=await a.c.sync.get("syncConfig");n||(n={}),n[e]=t,await a.c.sync.set({syncConfig:n})}async function l(e){e?await c(e,null):await a.c.sync.remove("syncConfig")}async function d(e,t){await async function(e,t){return(await Object(i.a)()).syncmeta.put({id:e,json:t})}(e,JSON.stringify(t))}async function u(e){const t=await async function(e){return(await Object(i.a)()).syncmeta.where("id").equals(e).first(e=>e&&e.json).catch(e=>{!1})}(e);if(t)return JSON.parse(t)}async function p(e){await Object(r.c)({area:"notebook",words:e})}async function h(){return(await Object(o.a)({area:"notebook"})).words||[]}async function f(e,t,n="",a=""){const{i18n:o}=await s.a.getInstance();await o.loadNamespaces("sync");const r="string"==typeof t?t:t.message,i=`sync:${e}.error.${r}`,c=o.exists(i)?o.t(i):"Unknown error: "+r;browser.notifications.create({type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict "+o.t(`sync:${e}.title`),message:n+c+a,eventTime:Date.now()+2e4,priority:2})}},107:function(e,t,n){"use strict";function a(){return Date.now().toString().slice(6)+Math.random().toString().slice(2,8)}n.d(t,"a",(function(){return a}))},11:function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(1);function o(e){return e?{date:e.date||Date.now(),text:e.text||"",context:e.context||"",title:e.title||"",url:e.url||"",favicon:e.favicon||"",trans:e.trans||"",note:e.note||""}:{date:Date.now(),text:"",context:"",title:"",url:"",favicon:"",trans:"",note:""}}function r(e){return a.a.send({type:"IS_IN_NOTEBOOK",payload:e}).catch((t=!1,e=>t));var t}async function i(e,t){await a.a.send({type:"SAVE_WORD",payload:{area:e,word:t}})}async function s(e,t){await a.a.send({type:"SYNC_SERVICE_DOWNLOAD"}),await a.a.send({type:"DELETE_WORDS",payload:{area:e,dates:t}})}function c(e,t){return a.a.send({type:"GET_WORDS_BY_TEXT",payload:{area:e,text:t}})}function l(e,t){return a.a.send({type:"GET_WORDS",payload:{area:e,...t}})}},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i}));var a=n(20);async function o(e,t,{options:n,options_sel:o},r,i){("none"===n.keepLF||"pdf"===n.keepLF&&!i.isPDF||"webpage"===n.keepLF&&i.isPDF)&&(t=t.replace(/\n+/g," "));let s=i.sl;s||(Object(a.g)(t)?s="ja":Object(a.h)(t)&&(s="ko")),s||(s=await e.detect(t));let c="";return i.tl?c=i.tl:"default"===n.tl?o.tl.includes(r.langCode)&&(c=r.langCode):c=n.tl,c||(c=o.tl.find(e=>"default"!==e)||"en"),s===c&&(i.tl?i.sl||(s="auto"):c="default"===n.tl2?c!==r.langCode?r.langCode:"en"!==c?"en":o.tl.find(e=>"default"!==e&&e!==c)||"en":n.tl2),{sl:s,tl:c,text:t}}function r(e,t,n,a){return{lang:"11111111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:320,selectionWC:{min:1,max:999999999999999},...t,options:{keepLF:"webpage",slInitial:"collapse",tl:"default",tl2:"default",...n},options_sel:{keepLF:["none","all","webpage","pdf"],slInitial:["collapse","hide","full"],tl:["default",...e],tl2:["default",...e],...a}}}function i(e,t){const n=[{value:"auto",label:"%t(content:machineTrans.auto)"}];for(const e of t)n.push({value:e,label:`${e} %t(langcode:${e})`});const a=[{key:"sl",value:e.result.sl,title:"%t(content:machineTrans.sl)",options:n},{key:"tl",value:e.result.tl,title:"%t(content:machineTrans.tl)",options:n},{key:"copySrc",value:"copySrc",label:"%t(content:machineTrans.copySrc)"},{key:"copyTrans",value:"copyTrans",label:"%t(content:machineTrans.copyTrans)"}];return"hide"===e.result.slInitial&&a.push({key:"showSl",value:"",label:"%t(content:machineTrans.showSl)"}),{...e,catalog:a}}},1252:function(e,t,n){n(1253),e.exports=n(1356)},1254:function(e,t,n){var a={"./ankiconnect/index.ts":607,"./eudic/index.ts":608,"./shanbay/index.ts":609,"./webdav/index.ts":567};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=1254},1255:function(e,t,n){var a={"./cambridge/network.ts":1256,"./hjdict/network.ts":1257};function o(e){return r(e).then(n)}function r(e){return Promise.resolve().then((function(){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}))}o.keys=function(){return Object.keys(a)},o.resolve=r,o.id=1255,e.exports=o},1256:function(e,t,n){"use strict";n.r(t),n.d(t,"ensureNetworkCompatibility",(function(){return s}));const a="https://dictionary.cambridge.org",o=["https://dictionary.cambridge.org/*"],r=[{url:a,name:"cf_clearance"},{url:a,name:"cf_clearance",partitionKey:{topLevelSite:"https://cambridge.org"}}];let i=null;function s(){return i||(i=async function(){const e=function(){const e=self.chrome;return e&&e.declarativeNetRequest?e.declarativeNetRequest:void 0}();if(e)return void await async function(e,t){const n=[{header:"referer",operation:"set",value:a}];t&&n.push({header:"cookie",operation:"append",value:t});await e.updateSessionRules({removeRuleIds:[32002],addRules:[{id:32002,priority:1,action:{type:"modifyHeaders",requestHeaders:n},condition:{regexFilter:"^https://dictionary\\.cambridge\\.org/.*",resourceTypes:["xmlhttprequest","media"]}}]})}(e,await c());const t=function(){const e=browser;return e&&e.webRequest?e.webRequest:void 0}();if(t&&t.onBeforeSendHeaders)return void function(e,t){const n=["blocking","requestHeaders"],r=e.OnBeforeSendHeadersOptions;r&&Object.prototype.hasOwnProperty.call(r,"EXTRA_HEADERS")&&n.push("extraHeaders");e.onBeforeSendHeaders.addListener(e=>(e&&e.requestHeaders&&(function(e,t,n){const a=t.toLowerCase();for(var o=0;o<e.length;++o)if(e[o].name.toLowerCase()===a)return void(e[o].value=n);e.push({name:t,value:n})}(e.requestHeaders,"Referer",a),t&&function(e,t){const n=function(e,t){const n=t.toLowerCase();return e.find(e=>e.name.toLowerCase()===n)}(e,"Cookie");if(n)return void(new RegExp("(?:^|;\\s*)cf_clearance=").test(n.value||"")||(n.value=n.value?`${n.value}; ${t}`:t));e.push({name:"Cookie",value:t})}(e.requestHeaders,t)),{requestHeaders:e.requestHeaders}),{urls:o},n)}(t,await c());if(function(){const e=browser.runtime.getManifest&&browser.runtime.getManifest();return!(!e||3!==e.manifest_version)}())throw new Error("declarativeNetRequest is unavailable in the current MV3 context.");throw new Error("webRequest.onBeforeSendHeaders is unavailable.")}().catch(e=>{throw i=null,e})),i}async function c(){const e=function(){const e=browser;return e&&e.cookies?e.cookies:void 0}();if(!e||!e.get)return"";for(const t of r){const n=await e.get(t);if(n&&n.value)return"cf_clearance="+n.value}if(e.getAll)for(const t of[void 0,{topLevelSite:"https://cambridge.org"}]){const n=await e.getAll({domain:"dictionary.cambridge.org",name:"cf_clearance",partitionKey:t}),a=n&&n.find(e=>e.value);if(a)return"cf_clearance="+a.value}return""}},1257:function(e,t,n){"use strict";n.r(t),n.d(t,"ensureNetworkCompatibility",(function(){return a}));async function a(){const e=function(){const e=browser;return e&&e.cookies?e.cookies:void 0}();if(!e)return;const t=[["HJ_SITEID",3],["HJ_UID",r()],["HJC_USRC","uzhi"],["HJC_NUID",1],["TRACKSITEMAP",3],["_REF",""],["_SREF_3",""],["HJ_CST",0],["HJ_CSST_3",0],["HJ_SID",o()],["HJ_SSID_3",o()],["_SREG_3","direct%7C%7Cdirect%7Cdirect"],["_REG","direct%7C%7Cdirect%7Cdirect"],["HJID",0],["HJ_VT",2],["HJ_SST",1],["HJ_ST",1],["HJ_T",+new Date],["_",r(16)]];await Promise.all(t.map(([t,n])=>e.set({url:"https://dict.hujiang.com",name:t,value:String(n)})))}function o(){return`${r(6,36)}-${r("xxxx-4xxx-yxxx-xxxxxxxxxxxx")}`}function r(e,t){let n=null==t?16:t,a="";if("number"==typeof e)for(let t=0;t<e;t++){a+=Math.floor(10*Math.random())%2==0?"x":"y"}else a=e||"xxxxxxxx-xyxx-yxxx-xxxy-xxyxxxxxxxxx";return("number"!=typeof n||n<2||n>36)&&(n=16),a.replace(/[xy]/g,(function(e){const t=Math.random()*n|0;return("x"===e?t:3&t|8).toString(n)}))}},1258:function(e,t,n){var a={"./ahdict/engine.ts":818,"./baidu/engine.ts":353,"./bing/engine.ts":832,"./caiyun/engine.ts":833,"./cambridge/engine.ts":834,"./cobuild/engine.ts":835,"./etymonline/engine.ts":836,"./eudic/engine.ts":837,"./google/engine.ts":838,"./guoyu/engine.ts":597,"./hjdict/engine.ts":841,"./liangan/engine.ts":842,"./longman/engine.ts":843,"./merriamwebster/engine.ts":844,"./mojidict/engine.ts":845,"./naver/engine.ts":846,"./oaldict/engine.ts":847,"./renren/engine.ts":848,"./shanbay/engine.ts":905,"./sogou/engine.ts":849,"./tencent/engine.ts":850,"./urban/engine.ts":854,"./vocabulary/engine.ts":855,"./weblio/engine.ts":856,"./weblioejje/engine.ts":857,"./wikipedia/engine.ts":858,"./youdao/engine.ts":859,"./youdaotrans/engine.ts":860,"./zdic/engine.ts":906};function o(e){return r(e).then(n)}function r(e){return Promise.resolve().then((function(){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}))}o.keys=function(){return Object.keys(a)},o.resolve=r,o.id=1258,e.exports=o},1356:function(e,t,n){"use strict";n.r(t),window.__SALADICT_INTERNAL_PAGE__=!0,window.__SALADICT_BACKGROUND_PAGE__=!0;var a=n(47),o=n.n(a);const r=n(230),i=n(400);function s(e,t,n,a,o){const r=new Error(e);return r.config=t,r.request=a,r.response=o,r.isAxiosError=!0,n&&(r.code=n),r.toJSON=function(){return{message:this.message,name:this.name,stack:this.stack,config:this.config,code:this.code}},r}function c(e){const t={};return e.forEach((e,n)=>{t[n]=t[n]?`${t[n]}, ${e}`:e}),t}function l(e){if(null!=e)return e}async function d(e,t){switch(t.responseType){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"json":case"text":case void 0:default:return e.text()}}const u=async e=>{const t=new AbortController;let n,a=!1;const o=e.timeout&&e.timeout>0?setTimeout(()=>{a=!0,t.abort()},e.timeout):null;e.cancelToken&&e.cancelToken.promise.then(e=>{n=e,t.abort()});const u={...e.headers};if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";u.Authorization="Basic "+btoa(`${t}:${n}`)}const p=(e.method||"get").toUpperCase(),h=r(i(e.baseURL,e.url),e.params,e.paramsSerializer);try{const n=await fetch(h,{method:p,headers:u,body:["GET","HEAD"].includes(p)?void 0:l(e.data),signal:t.signal,credentials:e.withCredentials?"include":"same-origin"}),a={data:await d(n,e),status:n.status,statusText:n.statusText,headers:c(n.headers),config:e,request:n};if(function(e,t){return t.status&&e.validateStatus?e.validateStatus(t.status):t.status>=200&&t.status<300}(e,a))return a;throw s("Request failed with status code "+n.status,e,void 0,n,a)}catch(t){if(n)throw n;if(a)throw s(e.timeoutErrorMessage||`timeout of ${e.timeout||0}ms exceeded`,e,"ECONNABORTED");if(t&&t.isAxiosError)throw t;throw s("Network Error",e)}finally{o&&clearTimeout(o)}};"undefined"!=typeof document||"undefined"==typeof browser||!browser.runtime||!browser.runtime.getManifest||3!==browser.runtime.getManifest().manifest_version||"function"==typeof o.a.defaults.adapter||(o.a.defaults.adapter=u);var p=n(154),h=n.n(p),f=n(1);const g=browser.runtime.id!==atob("Y2Rvbm5tZmZrZGFvYWpma25vZWVlY21jaGlicG1rbWc=")&&browser.runtime.id!==atob("c2FsYWRpY3RAY3JpbXguY29t")&&browser.runtime.id!==atob("aWRnaG9jYmJhaGFmcGZoam5maHBiZmJtcGVncGhtbXA=")&&/apple/i.test(navigator.vendor);async function m(e,t,n){const a=n||browser.i18n.getUILanguage&&browser.i18n.getUILanguage()||"";if(!t)try{const e=a.startsWith("zh"),n=await fetch(`https://saladict.crimx.com/releases/${e?"chs":"eng"}.json`);t=await n.json()}catch(e){console.error(e)}if(!t)return{diff:0};if(!e)return{diff:3,data:t};const o=e.split(".").map(Number),r=t.version.slice(1).split(".").map(Number);for(let e=0;e<3;e++){if(r[e]>o[e])return{diff:3-e,data:t};if(r[e]<o[e])return{diff:e-3,data:t}}return{diff:0,data:t}}var b=n(29),y=n(33);function w(){return self.chrome&&self.chrome.scripting}function _(){return 3===browser.runtime.getManifest().manifest_version}async function v(e,t){const n=w();if(_()&&n){const a=null!=t?t:await async function(){const[e]=await browser.tabs.query({active:!0,currentWindow:!0});return e&&null!=e.id?e.id:void 0}();if(null==a||!e.file)return;return n.executeScript({target:{tabId:a,allFrames:!!e.allFrames},files:[e.file],injectImmediately:"document_start"===e.runAt})}return null==t?browser.tabs.executeScript(e):browser.tabs.executeScript(t,e)}async function S(e,t){const n=w();if(_()&&n){if(!e.file)return;return n.insertCSS({target:{tabId:t,allFrames:!!e.allFrames},files:[e.file]})}return browser.tabs.insertCSS(t,e)}async function k(e){if(e&&e.id){const t=e.id,n=browser.runtime.getManifest();if(n.content_scripts)for(const e of n.content_scripts){if(e.js)for(const n of e.js)await v({file:"/"===n[0]?n:"/"+n,allFrames:e.all_frames,matchAboutBlank:e.match_about_blank,runAt:e.run_at},t);if(e.css)for(const n of e.css)await S({file:"/"===n[0]?n:"/"+n,allFrames:e.all_frames,matchAboutBlank:e.match_about_blank,runAt:e.run_at},t)}}}var A=n(2),C=n(42),O=n(298),x=n(80),T=n(553),j=n.n(T),E=(n(964),n(274)),P=n(736),D=n(182),I=n(39),L=n(1368);const q="assets/pdf/web/viewer.html",M=/\.pdf(?:$|[?#].*)?/i;function R(e){return M.test(e)}function N(e){return!!e.pdfSniff&&"manual"!==e.pdfStandalone}function U(e,t){if(!N(t))return null;const n=([t])=>new RegExp(t).test(e);return t.pdfBlacklist.some(n)&&!t.pdfWhitelist.some(n)?"bypass":"open"}function F(e,t){return R(e)?U(e,t):null}function W(e,t,n){if(!t)return null;const a=t.find(({name:e})=>"content-type"===e.toLowerCase());if(!a||!a.value)return null;const o=a.value.toLowerCase();return o.endsWith("pdf")||"application/octet-stream"===o&&R(e)?U(e,n):null}function H(){const e=self.chrome;return e&&e.storage&&e.storage.session?e.storage.session:browser.storage.local}function z(e,t){return`saladict:pdf-pending:${e}:${t}`}function B(e){return!!e&&"string"==typeof e.url&&"number"==typeof e.tabId&&"number"==typeof e.frameId&&"number"==typeof e.createdAt&&("open"===e.action||"bypass"===e.action)}function $(e){return Date.now()-e.createdAt<=12e4}async function G(e){await V();const t=H(),n=z(e.tabId,e.frameId);await t.set({[n]:e})}async function V(){const e=H(),t=await e.get(null)||{},n=Object.keys(t).filter(e=>{if(!e.startsWith("saladict:pdf-pending:"))return!1;const n=t[e];return!B(n)||!$(n)});n.length>0&&await e.remove(n)}let Y=null,K=null,J=!1;function Q(){if(!Y)throw new Error("Background state has not been initialized yet.");return Y}function X(e){return Y=e,e}async function Z(){return function(){if(J)return;J=!0,Promise.resolve(Object(b.a)(({newConfig:e})=>{Y&&(Y={...Y,appConfig:e})})).catch(console.error),Promise.resolve(Object(y.a)(({newProfile:e})=>{Y&&(Y={...Y,activeProfile:e})})).catch(console.error),Object(y.c)(({newValue:e})=>{Y&&(Y={...Y,profileIDList:e})})}(),Y||(K||(K=async function(){const[e,t,n]=await Promise.all([Object(b.c)(),Object(y.e)(),Object(y.g)()]);if(n.length>0)return{appConfig:e,activeProfile:t,profileIDList:n};const a=await Object(y.i)();return{appConfig:e,activeProfile:a,profileIDList:await Object(y.g)()}}().then(X).finally(()=>{K=null})),K)}const ee=[33001,33002,33003],te=["main_frame","sub_frame"],ne=browser.runtime.getURL(q+"?saladict-pdf=1");let ae=!1,oe=33100,re=Promise.resolve(),ie=null;function se(e){if(!ae)return ae=!0,function(){browser.webRequest.onBeforeRequest.hasListener(ue)||browser.webRequest.onBeforeRequest.addListener(ue,{urls:["https://*/*","http://*/*"],types:te});browser.webRequest.onHeadersReceived.hasListener(pe)||browser.webRequest.onHeadersReceived.addListener(pe,{urls:["https://*/*","http://*/*"],types:te},["responseHeaders"]);browser.tabs.onUpdated.hasListener(he)||browser.tabs.onUpdated.addListener(he)}(),de(e),async function(){const e=le();if(!e)return;await e.updateSessionRules({removeRuleIds:Array.from({length:32},(e,t)=>33100+t)})}().catch(console.error),void Promise.resolve(Object(b.a)(({newConfig:e,oldConfig:t})=>{t&&N(e)===N(t)||de(e)})).catch(console.error);de(e)}async function ce(e){const t=e.tab&&e.tab.id;if("number"!=typeof t||t<0)return null;const n="number"==typeof e.frameId?e.frameId:0,a=await async function(e,t){await V();const n=H(),a=z(e,t),o=(await n.get(a)||{})[a];return await n.remove(a),B(o)&&$(o)?o:null}(t,n);return a?("bypass"===a.action&&await async function(e,t){const n=le();if(!n)return;const a=function(){const e=oe;oe+=1,oe>=33132&&(oe=33100);return e}();await n.updateSessionRules({removeRuleIds:[a],addRules:[{id:a,priority:100,action:{type:"allow"},condition:{regexFilter:(o=e.url,`^${o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`),resourceTypes:te,tabIds:[t]}}]}),setTimeout(()=>{const e=le();e&&e.updateSessionRules({removeRuleIds:[a]}).catch(console.error)},1e4);var o}(a,t),{action:a.action,url:a.url}):null}function le(){const e=self.chrome;return e&&e.declarativeNetRequest?e.declarativeNetRequest:void 0}function de(e){return re=re.then(()=>async function(e){const t=le();if(!t)return;const n=N(e);if(null!==ie&&ie===n)return;if(ie=n,!n)return void await t.updateDynamicRules({removeRuleIds:ee});await t.updateDynamicRules({removeRuleIds:ee,addRules:[{id:ee[0],priority:1,action:{type:"redirect",redirect:{url:ne}},condition:{regexFilter:"^https?://.*\\.[Pp][Dd][Ff](?:$|[?#].*)?",resourceTypes:te}},{id:ee[1],priority:1,action:{type:"redirect",redirect:{url:ne}},condition:{regexFilter:"^https?://.*",resourceTypes:te,responseHeaders:[{header:"content-type",values:["*pdf*"]}]}},{id:ee[2],priority:1,action:{type:"redirect",redirect:{url:ne}},condition:{regexFilter:"^https?://.*\\.[Pp][Dd][Ff](?:$|[?#].*)?",resourceTypes:te,responseHeaders:[{header:"content-type",values:["application/octet-stream"]}]}}]})}(e)).catch(e=>{console.error("Failed to update MV3 PDF rules:",e)}),re}function ue({frameId:e=0,tabId:t,url:n}){if(t<0)return;const{appConfig:{pdfBlacklist:a,pdfSniff:o,pdfStandalone:r,pdfWhitelist:i}}=Q(),s=function(e,t){return R(e)?U(e,t):null}(n,{pdfBlacklist:a,pdfSniff:o,pdfStandalone:r,pdfWhitelist:i});s&&G({action:s,createdAt:Date.now(),frameId:e,source:"url",tabId:t,url:n}).catch(console.error)}function pe({frameId:e=0,responseHeaders:t,tabId:n,url:a}){if(n<0)return;const{appConfig:{pdfBlacklist:o,pdfSniff:r,pdfStandalone:i,pdfWhitelist:s}}=Q(),c=W(a,t,{pdfBlacklist:o,pdfSniff:r,pdfStandalone:i,pdfWhitelist:s});c&&G({action:c,createdAt:Date.now(),frameId:e,source:"headers",tabId:n,url:a}).catch(console.error)}async function he(e,t,n){const a=t.url||n.url;if(!a||!function(e){return e.startsWith("file://")}(a))return;if(!await async function(){try{return await browser.extension.isAllowedFileSchemeAccess()}catch(e){return!1}}())return;const{appConfig:{pdfBlacklist:o,pdfSniff:r,pdfStandalone:i,pdfWhitelist:s}}=Q();if("open"!==F(a,{pdfBlacklist:o,pdfSniff:r,pdfStandalone:i,pdfWhitelist:s}))return;const c=browser.runtime.getURL(`${q}?file=${encodeURIComponent(a)}`);try{if("always"===i)return await browser.windows.create({type:"popup",url:c}),void await browser.tabs.remove(e);await browser.tabs.update(e,{url:c})}catch(e){console.error("Failed to redirect local PDF tab:",e)}}function fe(e){const t=browser.runtime.getManifest&&browser.runtime.getManifest();t&&3===t.manifest_version?se(e):browser.webRequest.onBeforeRequest.hasListener(ye)||(N(e)&&be(),Object(b.a)(({newConfig:e,oldConfig:t})=>{e&&(t&&N(e)===N(t)||(N(e)?be():(browser.webRequest.onBeforeRequest.removeListener(ye),browser.webRequest.onHeadersReceived.removeListener(we))))}))}async function ge(e,t){const{appConfig:{pdfStandalone:n}}=await Z();let a=browser.runtime.getURL(q);if(e)a+="?file="+encodeURIComponent(e);else{const e=await browser.tabs.query({active:!0,currentWindow:!0});if(e.length>0&&e[0].url){const o=e[0].url;if(o.startsWith(a)){if(!n)return;null!=e[0].id&&await browser.tabs.remove(e[0].id),a=o}else(t||o.endsWith("pdf"))&&(a+="?file="+encodeURIComponent(o))}}return n?_e(a):Object(f.b)({url:a,unique:!1})}async function me(e,t){const{appConfig:{pdfStandalone:n}}=null!=Y?Q():await Z();if("always"!==n)return!1;const a=browser.runtime.getURL(`${q}?file=${encodeURIComponent(e)}`);await _e(a);const o=t.tab&&t.tab.id;return"number"==typeof o&&o>=0&&await browser.tabs.remove(o),!0}function be(){browser.webRequest.onBeforeRequest.hasListener(ye)||browser.webRequest.onBeforeRequest.addListener(ye,{urls:["ftp://*/*.pdf","ftp://*/*.PDF","file://*/*.pdf","file://*/*.PDF"],types:["main_frame","sub_frame"]},["blocking"]),browser.webRequest.onHeadersReceived.hasListener(we)||browser.webRequest.onHeadersReceived.addListener(we,{urls:["https://*/*","https://*/*","http://*/*","http://*/*"],types:["main_frame","sub_frame"]},["blocking","responseHeaders"])}function ye({tabId:e,url:t}){const{appConfig:{pdfBlacklist:n,pdfWhitelist:a,pdfStandalone:o}}=Q();if("open"!==F(t,{pdfBlacklist:n,pdfSniff:!0,pdfStandalone:o,pdfWhitelist:a}))return;const r=browser.runtime.getURL(`${q}?file=${encodeURIComponent(t)}`);return-1!==e&&"always"===o?(browser.tabs.remove(e),_e(r),{cancel:!0}):{redirectUrl:r}}function we({tabId:e,responseHeaders:t,url:n}){const{appConfig:{pdfBlacklist:a,pdfWhitelist:o,pdfStandalone:r}}=Q();if("open"!==W(n,t,{pdfBlacklist:a,pdfSniff:!0,pdfStandalone:r,pdfWhitelist:o}))return;const i=browser.runtime.getURL(`${q}?file=${encodeURIComponent(n)}`);return-1!==e&&"always"===r?(browser.tabs.remove(e),_e(i),{cancel:!0}):{redirectUrl:i}}function _e(e){return browser.windows.create({type:"popup",url:e})}function ve(e){return fetch("http://dict-mobile.iciba.com/interface/index.php?c=word&m=getsuggest&nums=10&client=6&uid=0&is_need_mean=1&word="+encodeURIComponent(e)).then(e=>e.json()).then(e=>{if(e&&Array.isArray(e.message))return e.message.filter(e=>e&&e.key).map(e=>({entry:e.key,explain:Array.isArray(e.means)&&e.means.length>0?e.means[0].part+" "+e.means[0].means.join(" "):""}));throw new Error})}function Se(e){return fetch("https://dict.youdao.com/suggest?doctype=json&le=en&ver=2.0&q="+encodeURIComponent(e)).then(e=>e.json()).then(e=>{if(e&&e.data&&Array.isArray(e.data.entries))return e.data.entries.filter(e=>e&&e.explain&&e.entry);throw new Error})}var ke=n(11),Ae=n(3),Ce=n(505),Oe=n(509),xe=n(636);var Te=n(146);const je=(...e)=>browser.windows.update(...e).catch(console.warn);async function Ee(e){if("undefined"!=typeof window&&window.screen)return{availWidth:window.screen.availWidth,availHeight:window.screen.availHeight,availLeft:window.screen.availLeft||0,availTop:window.screen.availTop||0};const t=e||await browser.windows.getLastFocused({windowTypes:["normal"]}).catch(()=>null);return{availWidth:t&&t.width?t.width:1280,availHeight:t&&t.height?t.height:800,availLeft:t&&t.left?t.left:0,availTop:t&&t.top?t.top:0}}class Pe{constructor(){this.snapshot=null}async correctTop(e){if(!e)return e;const t=await Object(O.b)();return t?e-t.main:e}async focus(){this.snapshot&&null!=this.snapshot.id&&await je(this.snapshot.id,{focused:!0})}async takeSnapshot(){this.snapshot=null;try{const e=await browser.windows.getLastFocused({windowTypes:["normal"]});if(e.focused&&"normal"===e.type&&"minimized"!==e.state)this.snapshot=e;else if(A.d){const e=(await browser.windows.getAll()).filter(e=>e.focused&&"normal"===e.type&&"minimized"!==e.state);if(1===e.length)this.snapshot=e[0];else{const t=e.filter(e=>e.focused);1===t.length&&(this.snapshot=t[0])}}}catch(e){console.warn(e)}return this.snapshot}destroySnapshot(){this.snapshot=null}async makeRoomForSidebar(e,t){const n=this.snapshot,{appConfig:{panelWidth:a}}=await Z();if(!n||null==n.id)return;const o=t&&t.width||a,r=await Ee(n),i=null!=n.top&&null!=n.left&&null!=n.width&&null!=n.height?{top:await this.correctTop(n.top),left:"right"===e?n.left:n.left+o,width:n.width-o,height:n.height,state:"normal"}:{top:0,left:"right"===e?0:o,width:r.availWidth-o,height:r.availHeight,state:"normal"};"right"===e&&await je(n.id,{...i,left:i.left+1}),await je(n.id,i)}async restoreSnapshot(){this.snapshot&&null!=this.snapshot.id&&await je(this.snapshot.id,"normal"===this.snapshot.state?{top:await this.correctTop(this.snapshot.top),left:this.snapshot.left,width:this.snapshot.width,height:this.snapshot.height}:{state:this.snapshot.state})}}class De{constructor(){this.qsPanelId=null,this.snapshot=null,this.isSidebar=!1,this.mainWindowsManager=new Pe}async correctTop(e){if(!e)return e;const t=await Object(O.b)();return t?e-t.panel:e}async create(e){this.isSidebar=!1;let t="",n="";if(e)try{t="&word="+encodeURIComponent(JSON.stringify(e))}catch(e){!1}else{const{appConfig:{qsPreload:e}}=await Z();if("selection"===e){const e=(await browser.tabs.query({active:!0,lastFocusedWindow:!0}))[0];e&&e.id&&(n="&lastTab="+e.id)}}await this.mainWindowsManager.takeSnapshot();const{appConfig:{qssaSidebar:a,qssaRectMemo:o,qsFocus:r}}=Q(),i=a?await this.getSidebarRect(a):o&&await this.getStorageRect()||await this.getDefaultRect();let s;try{s=await browser.windows.create({...i,type:"popup",url:browser.runtime.getURL(`quick-search.html?sidebar=${a}${t}${n}`)})}catch(e){browser.notifications.create({type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict",message:e.message,priority:2,eventTime:Date.now()+5e3})}s&&s.id&&(A.d&&je(s.id,i),this.qsPanelId=s.id,a&&(this.isSidebar=!0,await this.mainWindowsManager.makeRoomForSidebar(a,s)),r||await this.mainWindowsManager.focus(),await this.notifyQsPanelChanged(null!=this.qsPanelId))}async getWin(){return this.qsPanelId?browser.windows.get(this.qsPanelId).catch(()=>null):null}async destroy(){await this.notifyQsPanelChanged(!1),this.qsPanelId=null,this.isSidebar=!1,this.destroySnapshot(),await this.mainWindowsManager.restoreSnapshot(),this.mainWindowsManager.destroySnapshot()}isQsPanel(e){return null!=e&&e===this.qsPanelId}async hasCreated(){const e=await this.getWin();return e||(this.qsPanelId=null),!!e}async focus(){if(null!=this.qsPanelId){await je(this.qsPanelId,{focused:!0});const[e]=await browser.tabs.query({windowId:this.qsPanelId});e&&e.id&&await f.a.send(e.id,{type:"QS_PANEL_FOCUSED"})}}async takeSnapshot(){null!=this.qsPanelId&&(this.snapshot=await browser.windows.get(this.qsPanelId).catch(()=>null))}destroySnapshot(){this.snapshot=null}async restoreSnapshot(){await this.mainWindowsManager.restoreSnapshot(),null!=this.snapshot&&null!=this.snapshot.id?await je(this.snapshot.id,{top:await this.correctTop(this.snapshot.top),left:this.snapshot.left,width:this.snapshot.width,height:this.snapshot.height}):null!=this.qsPanelId&&await je(this.qsPanelId,{focused:!0,...await this.getDefaultRect()}),this.destroySnapshot()}async moveToSidebar(e){null!=this.qsPanelId&&(await this.takeSnapshot(),await je(this.qsPanelId,await this.getSidebarRect(e)),await this.mainWindowsManager.makeRoomForSidebar(e,this.snapshot))}async toggleSidebar(e){await this.hasCreated()&&(this.isSidebar?await this.restoreSnapshot():await this.moveToSidebar(e),this.isSidebar=!this.isSidebar)}async getDefaultRect(){const{appConfig:{qsLocation:e,qssaHeight:t,panelWidth:n}}=Q(),a=await Ee(this.mainWindowsManager.snapshot);let o=10,r=30;const i=n,s=t;switch(e){case"CENTER":o=(a.availWidth-i)/2,r=(a.availHeight-t)/2;break;case"TOP":o=(a.availWidth-i)/2,r=30;break;case"RIGHT":o=a.availWidth-i-30,r=(a.availHeight-t)/2;break;case"BOTTOM":o=(a.availWidth-i)/2,r=a.availHeight-s-10;break;case"LEFT":o=10,r=(a.availHeight-t)/2;break;case"TOP_LEFT":o=10,r=30;break;case"TOP_RIGHT":o=a.availWidth-i-30,r=30;break;case"BOTTOM_LEFT":o=10,r=a.availHeight-s-10;break;case"BOTTOM_RIGHT":o=a.availWidth-i-30,r=a.availHeight-s-10}return{top:Math.round(r+a.availTop),left:Math.round(o+a.availLeft),width:Math.round(i),height:Math.round(s)}}async getStorageRect(){const{qssaRect:e}=await f.c.local.get("qssaRect");return e?{...e,top:await this.correctTop(e.top)||0}:null}async getSidebarRect(e){const{appConfig:{panelWidth:t}}=await Z(),n=this.snapshot&&this.snapshot.width||t,a=this.mainWindowsManager.snapshot,o=await Ee(a);return a&&"normal"===a.state&&null!=a.top&&null!=a.left&&null!=a.width&&null!=a.height?{top:Math.round(await this.mainWindowsManager.correctTop(a.top)||0),left:Math.round("right"===e?Math.max(a.width-n,n):a.left),width:Math.round(n),height:Math.round(a.height)}:{top:0,left:Math.round("right"===e?o.availWidth-n:0),width:Math.round(n),height:Math.round(o.availHeight)}}async notifyQsPanelChanged(e){await Promise.allSettled((await browser.tabs.query({})).filter(e=>e.id&&e.windowId!==this.qsPanelId).map(t=>Object(Te.a)(t.id,{type:"QS_PANEL_CHANGED",payload:e})))}}class Ie{static getInstance(){return Ie.instance||(Ie.instance=new Ie)}constructor(){this.audio=void 0,this.currentSrc=void 0}reset(){this.audio&&(this.audio.pause(),this.audio.currentTime=0,this.audio.src="",this.audio.onended=null),this.currentSrc=""}load(e){return this.reset(),this.currentSrc=e,this.audio=new Audio(e)}async play(e){if(!e||e===this.currentSrc)return void this.reset();const t=this.load(e),n=Promise.race([new Promise(e=>{t.onended=e}),Object(C.d)(2e4)]);try{await t.play()}catch(e){return void(this.audio===t&&this.reset())}await n,this.audio===t&&(this.currentSrc="")}}Ie.instance=void 0;const Le=["AUDIO_PLAYBACK","CLIPBOARD","DOM_PARSER"];let qe=null;function Me(){const e=browser.runtime.getManifest(),t=self.chrome;return!(3!==e.manifest_version||!t||!t.offscreen)}function Re(){return browser.runtime.getURL("offscreen.html")}async function Ne(){if(Me())return qe||(qe=async function(){const e=self.chrome;if(!e||!e.offscreen)return;await function(){const e=self.chrome;if(e&&e.runtime&&e.runtime.getContexts)return e.runtime.getContexts({contextTypes:["OFFSCREEN_DOCUMENT"],documentUrls:[Re()]}).then(e=>e.length>0);return self.clients.matchAll().then(e=>e.some(e=>e.url===Re()))}()||await e.offscreen.createDocument({url:"offscreen.html",reasons:[...Le],justification:"Play audio, access the clipboard, and run DOM-based extension tasks."});await async function(){for(let e=0;e<10;e++){try{if(await Ue({type:"SALADICT_OFFSCREEN_PING"}))return}catch(e){}await Object(C.d)(50*(e+1))}throw new Error("Offscreen document did not become ready in time.")}()}().finally(()=>{qe=null}),qe)}async function Ue(e){return browser.runtime.sendMessage(e)}class Fe{playAudio(e){return Ie.getInstance().play(e)}stopAudio(){return Ie.getInstance().reset(),Promise.resolve()}readClipboard(){return async function(){if(!await browser.permissions.contains({permissions:["clipboardRead"]}))return Object(f.b)("options.html?menuselected=Permissions&missing_permission=clipboardRead",!0),"";{let e=document.getElementById("saladict-paste");return e||(e=document.createElement("textarea"),e.id="saladict-paste",document.body.appendChild(e)),e.value="",e.focus(),document.execCommand("paste"),e.value||""}}()}writeClipboard(e){return async function(e){if(!await browser.permissions.contains({permissions:["clipboardWrite"]}))return void Object(f.b)("options.html?menuselected=Permissions&missing_permission=clipboardWrite",!0);const t=document.createElement("textarea");t.textContent=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.blur(),document.body.removeChild(t)}(e)}}class We{async playAudio(e){await this.ensureOffscreen(),await Ue({type:"SALADICT_OFFSCREEN_TASK",task:"PLAY_AUDIO",src:e})}async stopAudio(){await this.ensureOffscreen(),await Ue({type:"SALADICT_OFFSCREEN_TASK",task:"STOP_AUDIO"})}async readClipboard(){return await browser.permissions.contains({permissions:["clipboardRead"]})?(await this.ensureOffscreen(),Ue({type:"SALADICT_OFFSCREEN_TASK",task:"READ_CLIPBOARD"})):(Object(f.b)("options.html?menuselected=Permissions&missing_permission=clipboardRead",!0),"")}async writeClipboard(e){await browser.permissions.contains({permissions:["clipboardWrite"]})?(await this.ensureOffscreen(),await Ue({type:"SALADICT_OFFSCREEN_TASK",task:"WRITE_CLIPBOARD",text:e})):Object(f.b)("options.html?menuselected=Permissions&missing_permission=clipboardWrite",!0)}async ensureOffscreen(){return Ne()}}let He=Me()?new We:new Fe;function ze(){return He}const Be=new Set(["baidu","caiyun","google","sogou","tencent","youdaotrans","zdic"]);function $e(e){return!!Me()&&!Be.has(e)}class Ge{static getInstance(){return Ge.instance||(Ge.instance=new Ge)}static getDictEngine(e){return n(1258)(`./${e}/engine.ts`)}constructor(){this.qsPanelManager=void 0,this.qsPanelManager=new De,f.a.addListener((e,t)=>{switch(e.type){case"OPEN_DICT_SRC_PAGE":return this.openSrcPage(e.payload);case"OPEN_URL":return Object(f.b)(e.payload);case"PLAY_AUDIO":return ze().playAudio(e.payload);case"STOP_AUDIO":return ze().stopAudio();case"FETCH_DICT_RESULT":return this.fetchDictResult(e.payload);case"DICT_ENGINE_METHOD":return this.callDictEngineMethod(e.payload);case"GET_CLIPBOARD":return ze().readClipboard();case"SET_CLIPBOARD":return ze().writeClipboard(e.payload);case"INJECT_DICTPANEL":return k(t.tab);case"QUERY_QS_PANEL":return this.qsPanelManager.hasCreated();case"OPEN_QS_PANEL":return this.openQSPanel();case"CLOSE_QS_PANEL":return ze().stopAudio().then(()=>this.qsPanelManager.destroy());case"QS_SWITCH_SIDEBAR":return this.qsPanelManager.toggleSidebar(e.payload);case"IS_IN_NOTEBOOK":return Object(Ce.c)(e.payload);case"SAVE_WORD":return(o=e.payload,"notebook"===o.area&&o.word&&Object(xe.syncServiceUpload)({action:"ADD",words:[o.word]}),Object(Oe.b)(o)).then(e=>(this.notifyWordSaved(),e));case"DELETE_WORDS":return(e=>("notebook"===e.area&&Object(xe.syncServiceUpload)({action:"DELETE",dates:e.dates}),Object(Oe.a)(e)))(e.payload).then(e=>(this.notifyWordSaved(),e));case"GET_WORDS_BY_TEXT":return Object(Ce.b)(e.payload);case"GET_WORDS":return Object(Ce.a)(e.payload);case"SYNC_SERVICE_DOWNLOAD":return Promise.resolve().then(n.bind(null,636)).then(({syncServiceDownload:e})=>e());case"GET_SUGGESTS":return a=e.payload,Object(C.a)([ve(a),Se(a)]).catch(()=>[]);case"GET_PDF_SNIFF_PENDING":return function(e){const t=browser.runtime.getManifest&&browser.runtime.getManifest();return t&&3===t.manifest_version?ce(e):Promise.resolve(null)}(t);case"OPEN_PDF_VIEWER_STANDALONE_IF_NEEDED":return me(e.payload.url,t);case"YOUDAO_TRANSLATE_AJAX":return this.youdaoTranslateAjax(e.payload)}var a,o}),browser.runtime.onConnect.addListener(e=>{"popup"===e.name&&e.onDisconnect.addListener(()=>{ze().stopAudio()})})}async openQSPanel(){await this.qsPanelManager.hasCreated()?await this.qsPanelManager.focus():await this.qsPanelManager.create()}async searchClipboard(){const e=Object(ke.e)({text:await ze().readClipboard()});await this.qsPanelManager.hasCreated()?await f.a.send({type:"QS_PANEL_SEARCH_TEXT",payload:e}):await this.qsPanelManager.create(e)}async searchPageSelection(){const e=await browser.tabs.query({active:!0,lastFocusedWindow:!0});let t;e.length>0&&null!=e[0].id&&(t=await f.a.send(e[0].id,{type:"PRELOAD_SELECTION"}));await this.qsPanelManager.hasCreated()?await this.qsPanelManager.focus():await this.qsPanelManager.create(t)}async openSrcPage({id:e,text:t,active:n}){const{appConfig:a,activeProfile:o}=await Z(),r=$e(e);const i=r?await async function(e,t,n){if(!Me())throw new Error("Offscreen document is unavailable.");return await Ne(),Ue({type:"SALADICT_OFFSCREEN_DICT_TASK",task:"GET_DICT_SRC_PAGE",payload:{...e,appConfig:t,activeProfile:n}})}({id:e,text:t,active:n},a,o):await Ge.getDictEngine(e).then(e=>e.getSrcPage(t,a,o));return Object(f.b)({url:i,active:n})}async fetchDictResult(e){const t=e.payload||{},{appConfig:a,activeProfile:o}=await Z();let r;try{await async function(e){try{const t=await n(1255)(`./${e}/network.ts`);t&&"function"==typeof t.ensureNetworkCompatibility&&await t.ensureNetworkCompatibility()}catch(e){}}(e.id);const i=$e(e.id);!1;const s=i?()=>async function(e,t,n){if(!Me())throw new Error("Offscreen document is unavailable.");return await Ne(),Ue({type:"SALADICT_OFFSCREEN_DICT_TASK",task:"FETCH_DICT_RESULT",payload:{...e,appConfig:t,activeProfile:n}})}(e,a,o):async()=>{const{search:n}=await Ge.getDictEngine(e.id);return n(e.text,a,o,t)};try{r=await Object(C.c)(s(),25e3)}catch(e){if("NETWORK_ERROR"!==e.message)throw e;await Object(C.d)(500),r=await Object(C.c)(s(),25e3)}}catch(e){Object(Ae.k)(e)&&(r=Object(Ae.a)(e.manualVerification))}const i=r?{...r,id:e.id}:{result:null,id:e.id};return i}async callDictEngineMethod(e){const t=$e(e.id);if(t)return async function(e){if(!Me())throw new Error("Offscreen document is unavailable.");return await Ne(),Ue({type:"SALADICT_OFFSCREEN_DICT_TASK",task:"DICT_ENGINE_METHOD",payload:e})}(e);return(await Ge.getDictEngine(e.id))[e.method](...e.args||[])}notifyWordSaved(){browser.tabs.query({}).then(e=>{e.forEach(async e=>{if(e.id&&e.url)try{await f.a.send(e.id,{type:"WORD_SAVED"})}catch(e){console.warn(e)}})})}async youdaoTranslateAjax(e){try{const t=await fetch(e.url,{method:e.type,headers:"POST"===e.type?{"Content-Type":"application/x-www-form-urlencoded"}:void 0,body:"POST"===e.type?e.data:void 0});return{response:t.ok?await t.text():null,index:e.index}}catch(t){return{response:null,index:e.index}}}}Ge.instance=void 0,Ge.init=Ge.getInstance;class Ve{static async getInstance(){if(!Ve.instance){const e=new Ve;Ve.instance=e;const t=await E.a.getInstance(),n=Object(b.b)().pipe(Object(D.a)((e,t)=>e&&t&&j()(e.contextMenus.selected,t.contextMenus.selected)),Object(I.a)(e=>!!e));Object(P.a)(n,t.getFixedT$("menus")).pipe(Object(L.a)(e.setContextMenus)).subscribe()}return Ve.instance}static openGoogle(){return Ye({file:"/assets/google-page-trans.js"},"google_page_translate")}static openCaiyunTrs(){if(!A.d)return Ye({file:"/assets/trs.js"},"caiyuntrs")}static async openYoudao(){if(A.d)return;const e=await Ye({file:"/assets/fanyi.youdao.2.0/main.js"},"youdao_page_translate");(!e||1!==e&&1!==e[0])&&await browser.notifications.create({type:"basic",eventTime:Date.now()+4e3,iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict",message:(await E.a.getInstance()).i18n.t("menus:notification_youdao_err")})}static async openBaiduPage(){const{appConfig:e}=await Z();browser.tabs.query({active:!0,currentWindow:!0}).then(t=>{if(t.length>0&&t[0].url){const n="zh-CN"===e.langCode?"zh":"zh-TW"===e.langCode?"cht":"en";Object(f.b)(`https://fanyi.baidu.com/transpage?query=${encodeURIComponent(t[0].url)}&from=auto&to=${n}&source=url&render=1`)}})}static async openSogouPage(){const{appConfig:e}=await Z();browser.tabs.query({active:!0,currentWindow:!0}).then(t=>{if(t.length>0&&t[0].url){const n="zh-CN"===e.langCode?"zh-CHS":"en";Object(f.b)(`https://translate.sogoucdn.com/pcvtsnapshot?from=auto&to=${n}&tfr=translatepc&url=${encodeURIComponent(t[0].url)}&domainType=sogou`)}})}static async openMicrosoftPage(){const{appConfig:e}=await Z();browser.tabs.query({active:!0,currentWindow:!0}).then(t=>{if(t.length>0&&t[0].url){const n="zh-CN"===e.langCode?"zh-Hans":"zh-TW"===e.langCode?"zh-Hant":"en";Object(f.b)(`https://www.microsofttranslator.com/bv.aspx?from=auto&to=${n}&r=true&a=${encodeURIComponent(t[0].url)}`)}})}static requestSelection(){browser.tabs.query({active:!0,currentWindow:!0}).then(e=>{e.length>0&&null!=e[0].id&&f.a.send(e[0].id,{type:"EMIT_SELECTION"})})}async handleContextMenusClick(e){const t=String(e.menuItemId).replace(/_ba$/,""),n=e.selectionText||"",a=e.linkUrl||"";switch(t){case"google_page_translate":Ve.openGoogle();break;case"caiyuntrs":Ve.openCaiyunTrs();break;case"google_cn_page_translate":Ve.openGoogle();break;case"youdao_page_translate":Ve.openYoudao();break;case"baidu_page_translate":Ve.openBaiduPage();break;case"sogou_page_translate":Ve.openSogouPage();break;case"microsoft_page_translate":Ve.openMicrosoftPage();break;case"view_as_pdf":ge(a,"view_as_pdf_ba"!==e.menuItemId);break;case"copy_pdf_url":{const t=function(e){if(!e)return;const t=new URL(e);return decodeURIComponent(t.searchParams.get("file")||"")}(e.pageUrl);t&&ze().writeClipboard(t);break}case"saladict":Ve.requestSelection();break;case"saladict_standalone":Ge.getInstance().searchPageSelection();break;case"search_history":Object(f.b)(browser.runtime.getURL("history.html"));break;case"notebook":Object(f.b)(browser.runtime.getURL("notebook.html"));break;default:{const{appConfig:{contextMenus:{all:e}}}=await Z(),a=e[t];if(a){const e="string"==typeof a?a:a.url;e&&Object(f.b)(e.replace("%s",encodeURIComponent(n)))}}}}constructor(){browser.contextMenus.onClicked.addListener(e=>(Je(e.menuItemId,"From_Context_Menus"),this.handleContextMenusClick(e))),f.a.addListener("CONTEXT_MENUS_CLICK",({payload:e})=>(Je(e.menuItemId,"From_Browser_Action"),this.handleContextMenusClick(e)))}async setContextMenus([{searchHistory:e,contextMenus:t},n]){const a=3===browser.runtime.getManifest().manifest_version?["action"]:["browser_action","page_action"];browser.extension.inIncognitoContext||await browser.contextMenus.removeAll();const o=["audio","editable","frame","image","link","selection","page","video"],r=new Set(["selection"]),i=[],s=[];for(const e of t.selected){let t;switch(e){case"caiyuntrs":case"google_page_translate":case"google_cn_page_translate":case"youdao_page_translate":case"sogou_page_translate":case"baidu_page_translate":case"microsoft_page_translate":t=o,s.push(e);break;case"view_as_pdf":r.add("link"),r.add("page"),t=["link","page"];break;case"copy_pdf_url":r.add("page"),t=["page"];break;default:t=["selection"]}i.push({id:e,title:c(e),contexts:t})}if(i.length>1){s.length>0&&o.forEach(e=>r.add(e)),await l({id:"saladict_container",title:n("saladict"),contexts:[...r]});for(const e of i)e.parentId="saladict_container",await l(e)}else i.length>0&&await l(i[0]);if(await l({id:"view_as_pdf_ba",title:n("view_as_pdf"),contexts:a}),s.length>2){await l({id:"saladict_ba_container",title:n("page_translations"),contexts:a});for(const e of s)await l({id:e+"_ba",parentId:"saladict_ba_container",title:c(e),contexts:a})}else if(s.length>0)for(const e of s)await l({id:e+"_ba",title:c(e),contexts:a});else await l({id:"google_cn_page_translate_ba",title:n("google_cn_page_translate"),contexts:a}),await l({id:"youdao_page_translate_ba",title:n("youdao_page_translate"),contexts:a});function c(e){const a=t.all[e];return a&&"string"!=typeof a?a.name:n(e)}function l(e){return new Promise(t=>{browser.contextMenus.create(e,()=>{browser.runtime.lastError&&console.error(browser.runtime.lastError),t()})})}await l({type:"separator",id:Date.now().toString(),contexts:Ke()}),e&&await l({id:"search_history",title:n("history_title"),contexts:Ke()}),await l({id:"notebook",title:n("notebook_title"),contexts:Ke()})}}async function Ye(e,t){try{return await v(e)}catch(e){const{i18n:n}=await E.a.getInstance();return await browser.notifications.create({type:"basic",eventTime:Date.now()+4e3,iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict",message:n.t("menus:page_permission_err",{name:n.t("menus:"+t)})}),e}}function Ke(){return 3===browser.runtime.getManifest().manifest_version?["action"]:["browser_action"]}function Je(e,t){switch(e=String(e).replace(/_ba$/,"")){case"google_page_translate":Object(x.a)({category:"Page_Translate",action:"Open_Google",label:t});break;case"caiyuntrs":Object(x.a)({category:"Page_Translate",action:"Open_Caiyun",label:t});break;case"google_cn_page_translate":Object(x.a)({category:"Page_Translate",action:"Open_Google",label:t});break;case"youdao_page_translate":Object(x.a)({category:"Page_Translate",action:"Open_Youdao",label:t});break;case"view_as_pdf":Object(x.a)({category:"PDF_Viewer",action:"Open_PDF_Viewer",label:t})}}Ve.init=Ve.getInstance,Ve.instance=void 0,browser.runtime.onInstalled.addListener((async function({reason:e,previousVersion:t}){const[n,a]=await Promise.all([Object(b.d)(),Object(y.i)()]);if(X({appConfig:n,activeProfile:a,profileIDList:await Object(y.g)()}),await f.c.local.set(h()(await f.c.local.get(null),(e,t)=>t.startsWith("dict_")?null:"lastCheckUpdate"===t?Date.now():e)),"install"===e)(await f.c.sync.get("hasInstructionsShown")).hasInstructionsShown||(n.langCode.startsWith("zh")?Object(f.b)("https://saladict.crimx.com/notice.html"):Object(f.b)("https://saladict.crimx.com/en/notice.html"),f.c.sync.set({hasInstructionsShown:!0}));else if("update"===e){const e=await m(browser.runtime.getManifest().version,void 0,n.langCode);if(e.data&&0===e.diff){const{diff:a,data:o}=await m(t,e.data,n.langCode);o&&a>=2&&setTimeout(()=>{const{appConfig:e}=Q(),t=e.langCode.startsWith("zh"),n={type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:t?"沙拉查词已更新到 "+o.version:"Saladict has updated to "+o.version,message:o.data.map((e,t)=>`${t+1}. ${e}`).join("\n"),priority:2,eventTime:Date.now()+5e3};A.d||(n.buttons=[{title:t?"查看更新介绍":"More Info"}],n.silent=!0),browser.notifications&&browser.notifications.create("sd-install",n)},5e3)}}if(Ze(),!A.d&&!await Object(O.b)()){const e=await Object(O.a)();e&&Object(O.c)(e)}})),browser.runtime.onStartup.addListener((function(){setTimeout(()=>{Z().then(({appConfig:e})=>{e.updateCheck&&f.c.local.get("lastCheckUpdate").then(async({lastCheckUpdate:t})=>{const n=Date.now();if(t){if(n-t>6048e5){f.c.local.set({lastCheckUpdate:n});const{data:t,diff:a}=await m(browser.runtime.getManifest().version,void 0,e.langCode);if(t&&a>0){const e={type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:Qe("%E6%B2%99%E6%8B%89%E6%9F%A5%E8%AF%8D"),message:`${Qe("%E5%8F%AF%E6%9B%B4%E6%96%B0%E8%87%B3")}【${t.version}】`};A.d||(e.buttons=[{title:Qe("%E6%9F%A5%E7%9C%8B%E6%9B%B4%E6%96%B0")}]),browser.notifications&&browser.notifications.create("sd-update",e)}}}else f.c.local.set({lastCheckUpdate:n})})}).catch(console.error)},1e3),g&&f.c.local.get("swat").then(({swat:e})=>{const t=Date.now();if(e){if(t-e>864e6){f.c.local.set({swat:t});const e={type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:Qe("%E6%B2%99%E6%8B%89%E6%9F%A5%E8%AF%8D"),message:Qe("%E6%AD%A4%E3%80%8C%E6%B2%99%E6%8B%89%E6%9F%A5%E8%AF%8D%E3%80%8D%E6%89%A9%E5%B1%95%E5%B7%B2%E8%A2%AB%E4%BA%8C%E6%AC%A1%E6%89%93%E5%8C%85%EF%BC%8C%E8%AF%B7%E5%9C%A8%E5%AE%98%E6%96%B9%E5%BB%BA%E8%AE%AE%E7%9A%84%E5%B9%B3%E5%8F%B0%E5%AE%89%E8%A3%85%E3%80%82")};A.d||(e.buttons=[{title:Qe("%E6%9F%A5%E7%9C%8B%E5%8F%AF%E9%9D%A0%E7%9A%84%E5%B9%B3%E5%8F%B0")}]),browser.notifications&&browser.notifications.create("sd-update",e)}}else f.c.local.set({swat:t})});setTimeout(()=>{Ze()},1e3)})),browser.notifications&&(browser.notifications.onClicked.addListener(Xe("https://saladict.crimx.com/releases/")),browser.notifications.onButtonClicked&&browser.notifications.onButtonClicked.addListener(Xe("https://saladict.crimx.com/releases/"))),browser.commands.onCommand.addListener((async function(e){switch(e){case"toggle-active":{const{appConfig:e}=await Z();await Object(b.f)({...e,active:!e.active})}break;case"toggle-instant":browser.tabs.query({active:!0,currentWindow:!0}).then(e=>{e.length<=0||null==e[0].id||f.a.send(e[0].id,{type:"QUERY_PIN_STATE"}).then(async e=>{const{appConfig:t}=await Z(),{enable:n}=t[e?"pinMode":"mode"].instant;return Object(b.f)({...t,mode:{...t.mode,instant:{...t.mode.instant,enable:!n}},pinMode:{...t.pinMode,instant:{...t.pinMode.instant,enable:!n}}})})});break;case"open-quick-search":Ge.getInstance().openQSPanel();break;case"open-google":Ve.openGoogle(),Object(x.a)({category:"Page_Translate",action:"Open_Google",label:"From_Browser_Shortcut"});break;case"open-youdao":Ve.openYoudao(),Object(x.a)({category:"Page_Translate",action:"Open_Youdao",label:"From_Browser_Shortcut"});break;case"open-caiyun":Ve.openCaiyunTrs(),Object(x.a)({category:"Page_Translate",action:"Open_Caiyun",label:"From_Browser_Shortcut"});break;case"open-pdf":ge(),Object(x.a)({category:"PDF_Viewer",action:"Open_PDF_Viewer",label:"From_Browser_Shortcut"});break;case"search-clipboard":Ge.getInstance().searchClipboard();break;case"next-history":case"prev-history":f.a.send({type:"SWITCH_HISTORY",payload:"next-history"===e?"next":"prev"}).then(t=>{if(!t)return browser.tabs.query({active:!0,currentWindow:!0}).then(t=>{if(!(t.length<=0||null==t[0].id))return f.a.send(t[0].id,{type:"SWITCH_HISTORY",payload:"next-history"===e?"next":"prev"})})});break;case"next-profile":case"prev-profile":{const{activeProfile:t,profileIDList:n}=await Z();if(n.length<=0)return;const a=t.id,o=n.findIndex(({id:e})=>e===a),r="next-profile"===e?1:-1,i=o<0?0:(o+r+n.length)%n.length;Object(y.l)(n[i].id).then(et)}break;case"profile-1":case"profile-2":case"profile-3":case"profile-4":case"profile-5":{const t=+e.slice(-1),{activeProfile:n,profileIDList:a}=await Z();a.length>0&&t<a.length&&a[t].id!==n.id&&Object(y.l)(a[t].id).then(et)}break;case"add-notebook":!async function(){if(await f.a.send({type:"ADD_NOTEBOOK",payload:{popup:!0}}))return;const e=await browser.tabs.query({active:!0,currentWindow:!0});if(e.length<=0||null==e[0].id)return;f.a.send(e[0].id,{type:"ADD_NOTEBOOK",payload:{popup:!1}})}()}}));const Qe=decodeURI;function Xe(e){return function(t){switch(t){case"sd-install":case"sd-update":Object(f.b)(e),browser.notifications&&browser.notifications.getAll().then(e=>{Object.keys(e).forEach(e=>browser.notifications.clear(e))})}}}async function Ze(){(await browser.tabs.query({})).forEach(async e=>{if(e.id&&e.url&&e.url.startsWith("http"))try{await k(e)}catch(e){console.warn(e)}})}async function et(){if(await Object(C.d)(10),await f.a.send({type:"SEARCH_TEXT_BOX"}))return;const e=await browser.tabs.query({active:!0,currentWindow:!0});e.length<=0||null==e[0].id||f.a.send(e[0].id,{type:"SEARCH_TEXT_BOX"})}var tt=n(95),nt=n(92),at=n(510);const ot=new tt.a;function rt(e,t){it.setIcon({tabId:t,path:e?{16:"assets/icon-gray-16.png",19:"assets/icon-gray-19.png",24:"assets/icon-gray-24.png",38:"assets/icon-gray-38.png",48:"assets/icon-gray-48.png",128:"assets/icon-gray-128.png"}:{16:"assets/icon-16.png",19:"assets/icon-19.png",24:"assets/icon-24.png",38:"assets/icon-38.png",48:"assets/icon-48.png",128:"assets/icon-128.png"}})}ot.pipe(Object(nt.e)("tabId",async e=>{if(e.options)return e;e.delay&&await Object(C.d)(1e3);return function(e){if(!e||!e.url)return!1;const t=browser.runtime.getURL("");return!/^(about:|chrome:|chrome-extension:|devtools:|edge:|moz-extension:|opera:|vivaldi:|brave:|view-source:)/i.test(e.url)&&!e.url.startsWith(t)}(e.tab||await browser.tabs.get(e.tabId).catch(()=>{}))?{tabId:e.tabId,options:await f.a.send(e.tabId,{type:"GET_TAB_BADGE_INFO"}).catch(()=>{})||{active:(await Z()).appConfig.active,tempDisable:!1,unsupported:!0}}:{tabId:e.tabId,options:{active:(await Z()).appConfig.active,tempDisable:!1,unsupported:!0}}})).subscribe(({tabId:e,options:t})=>t.active?t.tempDisable?function(e){const{appConfig:{langCode:t}}=Q();rt(!0,e),it.setTitle({title:Object(at.a)(t,"background").app.tempOff,tabId:e})}(e):t.unsupported?function(e){const{appConfig:{langCode:t}}=Q();rt(!0,e),it.setTitle({title:Object(at.a)(t,"background").app.unsupported,tabId:e})}(e):function(e){rt(!1,e)}(e):function(e){const{appConfig:{langCode:t}}=Q();rt(!0,e),it.setTitle({title:Object(at.a)(t,"background").app.off,tabId:e})}(e));const it=browser.action||browser.browserAction;f.a.self.initServer(),Object(xe.startSyncServiceInterval)(),Ve.init(),Ge.init(),browser.runtime.onMessage.addListener(e=>{if("fetchUrl"===e.contentScriptQuery){const t={method:e.method||"GET",credentials:"include",headers:{...e.headers||{},"content-type":"application/json"}};if(e.data)try{t.body=JSON.stringify(e.data)}catch(e){}return fetch(e.url,t).then(e=>e.text()).then(e=>({status:"ok",data:e})).catch(e=>({status:"error",error:e}))}}),Object(x.c)(),Z().then(({appConfig:e})=>{fe(e),f.a.addListener("SEND_TAB_BADGE_INFO",({payload:e},t)=>{t.tab&&t.tab.id&&ot.next({tabId:t.tab.id,options:e})}),browser.tabs.onUpdated.addListener(async(e,t)=>{if("complete"===t.status){const t=await browser.tabs.get(e).catch(()=>{});ot.next({tabId:e,tab:t,delay:!0})}})}).catch(console.error)},146:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(1);async function o(e,t){try{return await a.a.send(e,t)}catch(e){if(function(e){const t=e&&"object"==typeof e&&e.runtimeLastError instanceof Error?e.runtimeLastError:e instanceof Error?e:null;return!(!t||!/Could not establish connection|Receiving end does not exist/.test(t.message))}(e))return;throw e}}},148:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(782);class o extends a.a{constructor(){super("SaladictWords"),this.notebook=void 0,this.history=void 0,this.syncmeta=void 0,this.version(1).stores({notebook:"date,text,context,url",history:"date,text,context,url",syncmeta:"id"}),this.notebook=this.table("notebook"),this.history=this.table("history"),this.syncmeta=this.table("syncmeta")}}let r;async function i(){return r||(r=new o),r.isOpen()||await r.open(),r}},165:function(e,t,n){"use strict";n.d(t,"b",(function(){return b}));var a=n(83),o=n(87),r=n(77),i=n.n(r),s=n(96),c=n.n(s),l=n(108),d=n.n(l),u=n(63),p=n.n(u),h=n(22),f=n.n(h),g=n(27),m=n.n(g);function b(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.a)();let r=e.version;return r<13&&(e.showedDictAuth=!0),r<=9&&(r=10,["mode","pinMode","panelMode","qsPanelMode"].forEach(t=>{n[t].holding.shift=!1,n[t].holding.ctrl=!!e[t].ctrl,n[t].holding.meta=!!e[t].ctrl,delete e[t].ctrl})),s("tripleCtrlPreload","qsPreload"),s("tripleCtrlAuto","qsAuto"),s("tripleCtrlLocation","qsLocation"),s("tripleCtrlStandalone","qsStandalone"),s("tripleCtrlHeight","qssaHeight"),s("tripleCtrlSidebar","qssaSidebar"),s("tripleCtrlPageSel","qssaPageSel"),Object.keys(n).forEach(t=>{switch(t){case"langCode":g("langCode",e=>/^(zh-CN|zh-TW|en)$/.test(e));break;case"pdfWhitelist":case"pdfBlacklist":case"whitelist":case"blacklist":g(t,e=>Array.isArray(e));break;case"searhHistory":case"searchHistory":n.searchHistory=e[t];break;case"searhHistoryInco":case"searchHistoryInco":n.searchHistoryInco=e[t];break;case"mode":case"pinMode":case"panelMode":case"qsPanelMode":"mode"===t&&h("mode.icon"),h(t+".direct"),h(t+".double"),h(t+".holding.alt"),h(t+".holding.shift"),h(t+".holding.ctrl"),h(t+".holding.meta"),h(t+".instant.enable"),g(t+".instant.key",e=>/^(direct|ctrl|alt|shift)$/.test(e)),l(t+".instant.delay");break;case"qsPreload":g("qsPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"qsLocation":g("qsLocation",e=>"CENTER"===e||"TOP"===e||"RIGHT"===e||"BOTTOM"===e||"LEFT"===e||"TOP_LEFT"===e||"TOP_RIGHT"===e||"BOTTOM_LEFT"===e||"BOTTOM_RIGHT"===e);break;case"baPreload":g("baPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"ctxTrans":i()(n.ctxTrans,(e,t)=>{h("ctxTrans."+t)});break;case"language":i()(n.language,(e,t)=>{h("language."+t)});break;case"autopron":g("autopron.cn.dict",e=>o.a[e]),g("autopron.en.dict",e=>o.a[e]),g("autopron.en.accent",e=>"us"===e||"uk"===e),g("autopron.machine.dict",e=>o.a[e]),g("autopron.machine.src",e=>"trans"===e||"searchText"===e);break;case"contextMenus":i()(e.contextMenus.all,(e,t)=>{"string"==typeof e?n.contextMenus.all[t]&&u("contextMenus.all."+t):(u(`contextMenus.all.${t}.name`),u(`contextMenus.all.${t}.url`))}),function(t){const a=f()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)m()(n,[t,"selected"],[]);else{const e=f()(n,[t,"all"]),o=a.filter(t=>e[t]);o.length>0&&m()(n,[t,"selected"],o)}}("contextMenus");break;case"dictAuth":g("dictAuth",Boolean);break;default:switch(typeof n[t]){case"string":u(t);break;case"boolean":h(t);break;case"number":l(t);break;default:console.error(new Error(`merge config: missing handler for '${t}'`))}}}),r=e.version,r<=10&&(r=11,n.contextMenus.selected.unshift("view_as_pdf")),r<=11&&(r=12,n.blacklist.push(["^https://stackedit.io(/.*)?$","https://stackedit.io/*"])),!1===e.language.minor&&(n.language.japanese=!1,n.language.korean=!1,n.language.french=!1,n.language.spanish=!1,n.language.deutsch=!1),n.panelMaxHeightRatio<1&&(n.panelMaxHeightRatio=Math.round(100*n.panelMaxHeightRatio)),n;function s(t,n){!Object.prototype.hasOwnProperty.call(e,n)&&Object.prototype.hasOwnProperty.call(e,t)&&(e[n]=e[t])}function l(e){return g(e,c.a)}function u(e){return g(e,d.a)}function h(e){return g(e,p.a)}function g(t,a){const o=f()(e,t);a(o)&&m()(n,t,o)}}t.a=b},171:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appid:"",key:""},o="http://api.fanyi.baidu.com/api/trans/product/prodinfo"},172:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={token:""},o="https://fanyi.caiyunapp.com/#/api"},173:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={pid:"",key:""},o="https://deepi.sogou.com/?from=translatepc"},174:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={secretId:"",secretKey:""},o="https://curl.qcloud.com/imsowZzT"},175:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appKey:"",key:""},o="http://ai.youdao.com/gw.s"},185:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(78),o=n(77),r=n.n(o),i=n(96),s=n.n(i),c=n(108),l=n.n(c),d=n(63),u=n.n(d),p=n(22),h=n.n(p),f=n(27),g=n.n(f);function m(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.b)(e.id);return Object.keys(n).forEach(t=>{switch(t){case"dicts":(function(t){const a=h()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)g()(n,[t,"selected"],[]);else{const e=h()(n,[t,"all"]),o=a.map(e=>"olad"===e?"lexico":e).filter(t=>e[t]);o.length>0&&g()(n,[t,"selected"],o)}})("dicts"),r()(n.dicts.all,(t,a)=>{const c=h()(e,`dicts.all.${a}.defaultUnfold`);u()(c)?g()(n,`dicts.all.${a}.defaultUnfold`,{chinese:c,english:c,japanese:c,korean:c,french:c,spanish:c,deutsch:c,others:c}):(i(`dicts.all.${a}.defaultUnfold.chinese`),i(`dicts.all.${a}.defaultUnfold.english`),i(`dicts.all.${a}.defaultUnfold.japanese`),i(`dicts.all.${a}.defaultUnfold.korean`),i(`dicts.all.${a}.defaultUnfold.french`),i(`dicts.all.${a}.defaultUnfold.spanish`),i(`dicts.all.${a}.defaultUnfold.deutsch`),i(`dicts.all.${a}.defaultUnfold.others`));const d=h()(e,`dicts.all.${a}.selectionLang.chs`);u()(d)?g()(n,`dicts.all.${a}.selectionLang.chinese`,d):i(`dicts.all.${a}.selectionLang.chinese`);const p=h()(e,`dicts.all.${a}.selectionLang.eng`);if(u()(p)?g()(n,`dicts.all.${a}.selectionLang.english`,p):i(`dicts.all.${a}.selectionLang.english`),i(`dicts.all.${a}.selectionLang.japanese`),i(`dicts.all.${a}.selectionLang.korean`),i(`dicts.all.${a}.selectionLang.french`),i(`dicts.all.${a}.selectionLang.spanish`),i(`dicts.all.${a}.selectionLang.deutsch`),i(`dicts.all.${a}.selectionLang.others`),o(`dicts.all.${a}.preferredHeight`),o(`dicts.all.${a}.selectionWC.min`),o(`dicts.all.${a}.selectionWC.max`),t.options){if(r()(t.options,(t,r)=>{if(s()(t))o(`dicts.all.${a}.options.${r}`);else if(u()(t))i(`dicts.all.${a}.options.${r}`);else if(l()(t)){const o=h()(e,`dicts.all.${a}.options.${r}`),i=h()(n,`dicts.all.${a}.options_sel.${r}`);g()(n,`dicts.all.${a}.options.${r}`,i.includes(o)?o:t)}}),!s()(e.version)){const e=["baidu","caiyun","google","sogou","tencent","youdaotrans"];e.every(e=>"hide"===h()(n,`dicts.all.${e}.options.slInitial`))&&e.forEach(e=>{g()(n,`dicts.all.${e}.options.slInitial`,"collapse")})}const c=h()(e,`dicts.all.${a}.options.pdfNewline`);u()(c)&&g()(n,`dicts.all.${a}.options.keepLF`,c?"all":"webpage")}});break;default:switch(typeof n[t]){case"string":c(t,l.a);break;case"boolean":i(t);break;case"number":o(t);break;default:console.error(new Error(`merge profile: missing handler for '${t}'`))}}}),"kor"===n.dicts.all.hjdict.options.chsas&&(n.dicts.all.hjdict.options.chsas="kr"),n;function o(e){return c(e,s.a)}function i(e){return c(e,u.a)}function c(t,a){const o=h()(e,t);a(o)&&g()(n,t,o)}}},2:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"g",(function(){return o})),n.d(t,"i",(function(){return r})),n.d(t,"k",(function(){return i})),n.d(t,"j",(function(){return s})),n.d(t,"l",(function(){return c})),n.d(t,"n",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"m",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"e",(function(){return m}));const a=()=>!!window.__SALADICT_BACKGROUND_PAGE__,o=()=>!!window.__SALADICT_INTERNAL_PAGE__,r=()=>!!window.__SALADICT_OPTIONS_PAGE__,i=()=>!!window.__SALADICT_POPUP_PAGE__,s=()=>!!window.__SALADICT_PDF_PAGE__,c=()=>!!window.__SALADICT_QUICK_SEARCH_PAGE__,l=()=>i()||c(),d="saladict-external",u="saladict-panel",p=navigator.userAgent.includes("Firefox"),h=navigator.userAgent.includes("OPR"),f=/apple/i.test(navigator.vendor);function g(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(d))return!0;return!1}function m(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(u))return!0;return!1}},20:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"i",(function(){return p})),n.d(t,"b",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"a",(function(){return w}));var a=n(16);const o=["chinese","english","japanese","korean","french","spanish","deutsch"],r={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},i=e=>r.chinese.test(e),s=e=>r.english.test(e),c=e=>r.japanese.test(e),l=e=>r.korean.test(e),d=e=>r.french.test(e),u=e=>r.deutsch.test(e),p=e=>r.spanish.test(e),h={chinese:Object(a.a)(i),english:Object(a.a)(s),japanese:Object(a.a)(c),korean:Object(a.a)(l),french:Object(a.a)(d),spanish:Object(a.a)(p),deutsch:Object(a.a)(u)},f=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,g=new RegExp(`^(\\d|\\s|${f.source})+$`),m=new RegExp(`${r.chinese.source}|${r.japanese.source}|${r.korean.source}`),b=Object(a.a)(e=>(e.replace(new RegExp(f,"g")," ").replace(new RegExp(m,"g")," x ").match(/\S+/g)||"").length),y=[...o,"others","matchAll"];function w(e,t){if(!t)return!1;if(e.matchAll){if(g.test(t))return!1;if(e.others){const n=[/-|\.|\d|\s/],a=[];for(let t=o.length-1;t>=0;t--){const i=o[t];e[i]?n.push(r[i]):a.push(r[i])}for(let e=0;e<t.length;e++)if(n.every(n=>!n.test(t[e]))&&a.some(n=>n.test(t[e])))return!1;return!0}{const n=o.filter(t=>e[t]).map(e=>r[e]);n.push(/-|\.|\d|\s/);for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!1;return!0}}{if(o.some(n=>e[n]&&h[n](t)))return!0;if(!e.others||g.test(t))return!1;const n=o.filter(t=>!e[t]).map(e=>r[e]);n.push(new RegExp(f.source+"|\\d|\\s"));for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!0;return!1}}},209:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{static getDefaultConfig(){return{}}static getDefaultMeta(){return{}}constructor(e){this.config=void 0,this.meta=void 0,this.config=e}async delete(e){}async destroy(){}async download(e){}onStart(){}}a.id=void 0},265:function(e,t,n){var a={"./ankiconnect/_locales/en.ts":281,"./ankiconnect/_locales/zh-CN.ts":282,"./ankiconnect/_locales/zh-TW.ts":283,"./eudic/_locales/en.ts":284,"./eudic/_locales/zh-CN.ts":285,"./eudic/_locales/zh-TW.ts":286,"./shanbay/_locales/en.ts":287,"./shanbay/_locales/zh-CN.ts":288,"./shanbay/_locales/zh-TW.ts":289,"./webdav/_locales/en.ts":290,"./webdav/_locales/zh-CN.ts":291,"./webdav/_locales/zh-TW.ts":292};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=265},274:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(13),o=n(405),r=n(121),i=n(29),s=n(510);async function c(){if(a.a.language)return a.a;const{langCode:e}=await Object(i.c)();return await a.a.use({type:"backend",init:()=>{},create:()=>{},read:async(e,t,a)=>{try{if("sync"===t){const t=function(e){const t=n(265);return t.keys().reduce((n,a)=>{const o=new RegExp(`/([^/]+)/_locales/${e}\\.ts$`).exec(a);if(o){const e=t(a);n[o[1]]=e.locale||e}return n},{})}(e);return a(null,t),t}const o=Object(s.a)(e,t);return a(null,o),o}catch(e){a(e)}}}).init({lng:e,fallbackLng:!1,whitelist:["en","zh-CN","zh-TW"],debug:!1,saveMissing:!1,load:"currentOnly",ns:"common",defaultNS:"common",interpolation:{escapeValue:!1}}),Object(i.a)(({newConfig:e})=>{a.a.language!==e.langCode&&a.a.changeLanguage(e.langCode)}),a.a}class l{static async getInstance(){if(!l.instance){const e=new l;l.instance=e,e.i18n=await c(),e.i18n$$.next(e.i18n)}return l.instance}constructor(){this.i18n=void 0,this.i18n$$=void 0,this.i18n=a.a,this.i18n$$=new o.a(this.i18n),this.i18n.on("languageChanged",()=>{this.i18n$$.next(this.i18n)})}getFixedT$(e){return this.i18n$$.pipe(Object(r.a)(async t=>(await this.i18n.loadNamespaces(e),t.getFixedT(t.language,e))))}}l.instance=void 0},281:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"Cannot connect to Anki Connect. Please make sure Anki is running.",deck:"Deck not found in Anki.",notetype:"Note type not found in Anki.",add:"Failed to add word to Anki."}}},282:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"无法连接 Anki Connect,请确认 Anki 已在运行。",deck:"Anki 中没有找到相应牌组。",notetype:"Anki 中没有找到相应笔记类型。",add:"添加单词到 Anki 失败。"}}},283:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"無法連線 Anki Connect,請確認 Anki 已在執行。",deck:"Anki 中沒有找到相應牌組。",notetype:"Anki 中沒有找到相應筆記型別。",add:"新增單詞到 Anki 失敗。"}}},284:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Eudic Word Syncing",open:"Open",error:{network:"Unable to access the new word book of Eudic, please check the network.",illegal_token:"Please set legal Eudic authorization information.",no_wordbook:"Unable to add to the new word book of European dictionary. Please go to the European official website to generate the default new word book first."}}},285:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"欧路单词同步",open:"打开",error:{network:"无法访问欧路词典生词本,请检查网络。",illegal_token:"请设置合法的欧路词典授权信息",no_wordbook:"无法添加到欧路词典生词本,请先上欧路官网生成默认生词本"}}},286:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"歐路單字同步",open:"開啟",error:{network:"無法訪問歐路詞典生詞本,請檢查網絡。",illegal_token:"請設定合法的歐路詞典授權資訊",no_wordbook:"無法添加到歐路詞典生詞本,請先上歐路官網生成默認生詞本"}}},287:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Shanbay Word Syncing",open:"Open",error:{login:"Shanbay login failed. Click to open shanbay.com.",network:"Unable to access shanbay.com. Please check your network connection.",word:"Unable to add to Shanbay notebook. This word is not in Shanbay's vocabulary database."}}},288:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇贝单词同步",open:"打开",error:{login:"扇贝登录已失效,请点击打开官网重新登录。",network:"无法访问扇贝生词本,请检查网络。",word:"无法添加到扇贝生词本,扇贝单词库没有收录此单词。"}}},289:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇貝單字同步",open:"開啟",error:{login:"扇貝登入已失效,請點選開啟官網重新登入。",network:"無法訪問扇貝生字本,請檢查網路。",word:"無法新增到扇貝生字本,扇貝單字庫沒有收錄此單字。"}}},29:function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return g})),n.d(t,"f",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return y}));var a=n(90),o=n.n(a),r=n(83),i=n(165),s=n(1),c=n(100),l=n(67),d=n(81),u=n(10);function p(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}async function h(){let e=await g();return e=e&&e.version?Object(i.b)(e):Object(r.a)(),await m(e),e}async function f(){const e=Object(r.a)();return await m(e),e}async function g(){const{baseconfig:e}=await s.c.sync.get("baseconfig");return p(e||Object(r.a)())}function m(e){return function(e){try{"undefined"!=typeof localStorage&&"undefined"!=typeof location&&/^(chrome-extension|moz-extension|safari-web-extension):$/.test(location.protocol)&&localStorage.setItem("saladict-pdf-viewer-dark-mode",e?"1":"0")}catch(e){}}(e.darkMode),s.c.sync.set({baseconfig:(t=e,{v:1,d:o.a.deflate(JSON.stringify(t),{to:"string"})})});var t}async function b(e){s.c.sync.addListener(t=>{if(t.baseconfig){const{newValue:n,oldValue:a}=t.baseconfig;n&&e({newConfig:p(n),oldConfig:p(a)})}})}function y(){return Object(c.a)(Object(l.a)(g()),Object(d.a)(b).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newConfig)))}},290:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV Word Syncing",error:{dir:'Incorrect "Saladict" directory on server.',download:"Download failed. Unable to connect WebDAV Server. If browser proxy is enabled please adjust rules to bypass WebDAV server.",internal:"Unable to save settings.",missing:'Missing "Saladict" directory on server.',mkcol:'Cannot create "Saladict" directory on server. Please create the directory manualy on server.',network:"Network error. Cannot connect to server.",parse:"Incorrect response XML from server.",unauthorized:"Incorrect account or password."}}},291:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 单词同步",error:{dir:"服务器上“Saladict”目录格式不正确,请检查。",download:"下载失败。无法访问 WebDAV 服务器。如启用了浏览器代理请调整规则,不要代理 WebDAV 服务器。",internal:"无法保存。",missing:"服务器上缺少“Saladict”目录。",mkcol:"无法在服务器创建“Saladict”目录。请手动在服务器上创建。",network:"连接服务器失败。",parse:"服务器返回 XML 格式不正确。",unauthorized:"账户或密码不正确。"}}},292:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 單字同步",error:{dir:"伺服器上“Saladict”目錄格式不正確,請檢查。",download:"下載失敗。無法訪問 WebDAV 伺服器。如啟用了瀏覽器代理請調整規則,不要代理 WebDAV 伺服器。",internal:"無法儲存。",missing:"伺服器上缺少“Saladict”目錄。",mkcol:"無法在伺服器建立“Saladict”目錄。請手動在伺服器上建立。",network:"連線伺服器失敗。",parse:"伺服器返回 XML 格式不正確。",unauthorized:"帳戶或密碼不正確。"}}},298:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return s}));var a=n(1),o=n(42);async function r(){return(await a.c.local.get("titlebarOffset")).titlebarOffset}function i(e){return a.c.local.set({titlebarOffset:e})}async function s(){try{const e=await browser.windows.getCurrent();if(null==e.id)return;const t=await browser.windows.create({state:"maximized"}),n=await browser.windows.create({state:"maximized",type:"panel"});if(null==(null==t?void 0:t.id)||null==(null==n?void 0:n.id))return;await browser.windows.update(e.id,{focused:!0}),await Object(o.d)(0);const a=(await browser.windows.get(t.id)).top,r=(await browser.windows.get(n.id)).top;if(browser.windows.remove(t.id),browser.windows.remove(n.id),null==a||null==r)return;return{main:a,panel:r}}catch(e){!1}}},3:function(e,t,n){"use strict";n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"h",(function(){return u})),n.d(t,"k",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"l",(function(){return f})),n.d(t,"c",(function(){return g})),n.d(t,"g",(function(){return m})),n.d(t,"e",(function(){return w})),n.d(t,"f",(function(){return _})),n.d(t,"m",(function(){return v})),n.d(t,"n",(function(){return S})),n.d(t,"b",(function(){return k})),n.d(t,"d",(function(){return A}));var a=n(139),o=n.n(a);n(0),n(125),n(190),n(10),n(404),n(752);const r=new Map([["与","與"],["丒","囟"],["专","專"],["丗","卅"],["业","業"],["丛","叢"],["东","東"],["丝","絲"],["両","兩"],["丢","丟"],["两","兩"],["严","嚴"],["丧","喪"],["个","個"],["丬","爿"],["丯","丰"],["临","臨"],["丶","⼂"],["为","為"],["丽","麗"],["举","舉"],["义","義"],["乌","烏"],["乐","樂"],["乔","喬"],["习","習"],["乡","鄉"],["书","書"],["买","買"],["乱","亂"],["亀","龜"],["亁","乾"],["争","爭"],["亏","虧"],["亘","亙"],["亚","亞"],["产","產"],["亩","畝"],["亲","親"],["亵","褻"],["亸","嚲"],["亻","人"],["亿","億"],["仅","僅"],["从","從"],["仑","崙"],["仓","倉"],["仪","儀"],["们","們"],["仮","假"],["众","眾"],["会","會"],["伛","傴"],["伞","傘"],["伟","偉"],["传","傳"],["伤","傷"],["伥","倀"],["伦","倫"],["伧","傖"],["伪","偽"],["伫","佇"],["体","體"],["佥","僉"],["侠","俠"],["侣","侶"],["侥","僥"],["侦","偵"],["侧","側"],["侨","僑"],["侩","儈"],["侪","儕"],["侬","儂"],["俣","俁"],["俦","儔"],["俨","儼"],["俩","倆"],["俪","儷"],["俭","儉"],["债","債"],["倾","傾"],["偬","傯"],["偻","僂"],["偾","僨"],["偿","償"],["傥","儻"],["傧","儐"],["储","儲"],["傩","儺"],["兎","兔"],["兑","兌"],["兖","兗"],["兪","俞"],["兰","蘭"],["关","關"],["兴","興"],["兹","茲"],["养","養"],["兽","獸"],["兾","糞"],["兿","藝"],["冁","囅"],["内","內"],["円","丹"],["冈","岡"],["册","冊"],["写","寫"],["军","軍"],["农","農"],["冝","宜"],["冦","寇"],["冧","霖"],["冨","富"],["冩","寫"],["冮","江"],["冯","馮"],["冲","沖"],["决","決"],["况","況"],["冸","泮"],["冺","泯"],["冻","凍"],["冿","津"],["净","淨"],["凁","涑"],["凂","浼"],["凃","涂"],["凄","淒"],["凉","涼"],["减","減"],["凑","湊"],["凒","溰"],["凓","溧"],["凕","溟"],["凖","準"],["凙","澤"],["凛","凜"],["凟","瀆"],["凤","鳳"],["凥","尻"],["処","處"],["凨","云"],["凫","鳧"],["凬","凰"],["凭","憑"],["凮","鳳"],["凯","凱"],["凴","憑"],["击","擊"],["凼","窞"],["凾","亟"],["凿","鑿"],["刄","刃"],["刅","刃"],["刋","刊"],["刍","芻"],["刘","劉"],["则","則"],["刚","剛"],["创","創"],["删","刪"],["刦","劫"],["刧","劫"],["别","別"],["刭","剄"],["刴","剁"],["刹","剎"],["刼","劫"],["刽","劊"],["刿","劌"],["剀","剴"],["剂","劑"],["剐","剮"],["剑","劍"],["剥","剝"],["剧","劇"],["剰","剩"],["劎","劍"],["劒","劍"],["劔","劍"],["劝","勸"],["办","辦"],["务","務"],["劢","勱"],["动","動"],["励","勵"],["劲","勁"],["劳","勞"],["労","勞"],["劵","卷"],["効","效"],["劽","裂"],["势","勢"],["勅","敕"],["勋","勛"],["勐","猛"],["勚","勩"],["勠","戮"],["勥","強"],["勧","勸"],["匀","勻"],["匦","匭"],["匮","匱"],["区","區"],["医","醫"],["华","華"],["协","協"],["单","單"],["卖","賣"],["単","單"],["卙","斟"],["卛","攣"],["卟","嚇"],["卢","盧"],["卤","鹵"],["卥","囟"],["卧","臥"],["卫","衛"],["却","卻"],["卺","巹"],["厅","廳"],["历","歷"],["厉","厲"],["压","壓"],["厌","厭"],["厕","廁"],["厛","廳"],["厠","廁"],["厢","廂"],["厣","厴"],["厦","廈"],["厨","廚"],["厩","廄"],["厮","廝"],["厰","廠"],["厳","嚴"],["厶","⼛"],["县","縣"],["叁","參"],["叄","參"],["叆","靉"],["叇","靆"],["双","雙"],["収","收"],["叏","發"],["叐","發"],["发","發"],["变","變"],["叙","敘"],["叠","疊"],["叧","另"],["叶","葉"],["号","號"],["叹","嘆"],["叽","嘰"],["吓","嚇"],["吕","呂"],["吖","嗄"],["吗","嗎"],["吣","唚"],["吨","噸"],["启","啟"],["吴","吳"],["吿","告"],["呋","咐"],["呐","吶"],["呑","吞"],["呒","嘸"],["呓","囈"],["呕","嘔"],["呖","嚦"],["呗","唄"],["员","員"],["呙","咼"],["呛","嗆"],["呜","嗚"],["呪","咒"],["咏","詠"],["咙","嚨"],["咛","嚀"],["咝","吱"],["咣","光"],["咤","吒"],["哌","呱"],["响","響"],["哐","匡"],["哑","啞"],["哒","噠"],["哓","嘵"],["哔","嗶"],["哕","噦"],["哗","嘩"],["哙","噲"],["哜","嚌"],["哝","噥"],["哟","喲"],["唝","嗊"],["唠","嘮"],["唡","啢"],["唢","嗩"],["唣","嗦"],["唤","喚"],["唿","呼"],["啧","嘖"],["啬","嗇"],["啭","囀"],["啰","囉"],["啴","嘽"],["啸","嘯"],["喷","噴"],["喹","奎"],["喽","嘍"],["喾","嚳"],["嗪","唚"],["嗫","囁"],["嗬","呵"],["嗳","噯"],["嗵","通"],["嘘","噓"],["嘞","咧"],["嘠","嘎"],["嘣","迸"],["嘤","嚶"],["嘨","嘯"],["嘭","膨"],["嘱","囑"],["嘷","嚎"],["噜","嚕"],["噻","塞"],["噼","劈"],["嚔","涕"],["嚢","囊"],["嚣","囂"],["嚯","謔"],["团","團"],["园","園"],["囱","囪"],["围","圍"],["囵","圇"],["国","國"],["图","圖"],["圆","圓"],["圣","聖"],["圹","壙"],["场","場"],["块","塊"],["坚","堅"],["坛","壇"],["坜","壢"],["坝","壩"],["坞","塢"],["坟","墳"],["坠","墜"],["垄","壟"],["垅","壟"],["垆","壚"],["垒","壘"],["垦","墾"],["垧","坰"],["垩","堊"],["垫","墊"],["垲","塏"],["垴","瑙"],["埘","塒"],["埚","堝"],["堑","塹"],["堕","墮"],["塡","填"],["塬","原"],["墙","牆"],["壮","壯"],["声","聲"],["壳","殼"],["壶","壺"],["壸","壼"],["夂","⼢"],["处","處"],["备","備"],["夊","⼢"],["够","夠"],["头","頭"],["夹","夾"],["夺","奪"],["奁","奩"],["奂","奐"],["奋","奮"],["奖","獎"],["奥","奧"],["妆","妝"],["妇","婦"],["妈","媽"],["妩","嫵"],["妪","嫗"],["妫","媯"],["姗","姍"],["姹","奼"],["娄","婁"],["娅","婭"],["娆","嬈"],["娇","嬌"],["娈","孌"],["娱","娛"],["娲","媧"],["娴","嫻"],["婳","嫿"],["婴","嬰"],["婵","嬋"],["婶","嬸"],["媪","媼"],["嫒","嬡"],["嫔","嬪"],["嫱","嬙"],["嬷","嬤"],["孙","孫"],["学","學"],["孪","孿"],["孶","孳"],["宝","寶"],["实","實"],["宠","寵"],["审","審"],["宪","憲"],["宫","宮"],["宽","寬"],["宾","賓"],["寝","寢"],["对","對"],["寻","尋"],["导","導"],["対","對"],["寿","壽"],["専","專"],["尅","剋"],["将","將"],["尓","爾"],["尔","爾"],["尘","塵"],["尝","嘗"],["尧","堯"],["尴","尷"],["尽","盡"],["层","層"],["屃","屭"],["屉","屜"],["届","屆"],["屛","屏"],["属","屬"],["屡","屢"],["屦","屨"],["屿","嶼"],["岁","歲"],["岂","豈"],["岖","嶇"],["岗","崗"],["岘","峴"],["岙","嶴"],["岚","嵐"],["岛","島"],["岭","嶺"],["岿","巋"],["峄","嶧"],["峡","峽"],["峣","嶢"],["峤","嶠"],["峥","崢"],["峦","巒"],["峯","峰"],["崂","嶗"],["崃","崍"],["崄","嶮"],["崭","嶄"],["崾","要"],["嵘","嶸"],["嵚","嶔"],["嵝","嶁"],["巄","巃"],["巅","巔"],["巌","巖"],["巓","巔"],["巩","鞏"],["币","幣"],["帅","帥"],["师","師"],["帏","幃"],["帐","帳"],["帜","幟"],["带","帶"],["帧","幀"],["帮","幫"],["帯","帶"],["帱","幬"],["帻","幘"],["帼","幗"],["幂","冪"],["幇","幫"],["幚","幫"],["幞","襆"],["幷","并"],["广","廣"],["庁","廳"],["広","麼"],["庄","莊"],["庅","麼"],["庆","慶"],["庐","廬"],["庑","廡"],["库","庫"],["应","應"],["庙","廟"],["庞","龐"],["废","廢"],["庼","廎"],["廏","廄"],["廐","廄"],["廪","廩"],["廴","⼵"],["廵","巡"],["开","開"],["异","異"],["弃","棄"],["弑","弒"],["张","張"],["弥","彌"],["弯","彎"],["弹","彈"],["强","強"],["归","歸"],["当","當"],["录","錄"],["彚","彙"],["彛","羿"],["彜","羿"],["彟","獲"],["彠","獲"],["彡","⼺"],["彦","彥"],["彻","徹"],["径","徑"],["徕","徠"],["徸","德"],["忄","心"],["忆","憶"],["忏","懺"],["忧","憂"],["忾","愾"],["怀","懷"],["态","態"],["怂","慫"],["怃","憮"],["怅","悵"],["怆","愴"],["怜","憐"],["总","總"],["怼","懟"],["怿","懌"],["恋","戀"],["恒","恆"],["恳","懇"],["恶","惡"],["恸","慟"],["恹","懨"],["恺","愷"],["恻","惻"],["恼","惱"],["恽","惲"],["悦","悅"],["悫","愨"],["悬","懸"],["悭","慳"],["悯","憫"],["惊","驚"],["惧","懼"],["惨","慘"],["惩","懲"],["惫","憊"],["惬","愜"],["惭","慚"],["惮","憚"],["惯","慣"],["惽","惛"],["愠","慍"],["愤","憤"],["愦","憒"],["慑","懾"],["慭","憖"],["懑","懣"],["懒","懶"],["懔","懍"],["懴","懺"],["戅","戇"],["戆","戇"],["戋","戔"],["戏","戲"],["戗","戧"],["战","戰"],["戝","敗"],["戦","戰"],["戬","戩"],["戯","戲"],["戱","戲"],["户","戶"],["戸","戶"],["扌","手"],["执","執"],["扩","擴"],["扪","捫"],["扫","掃"],["扬","揚"],["扰","擾"],["抅","拘"],["抚","撫"],["抛","拋"],["抟","摶"],["抠","摳"],["抡","掄"],["抢","搶"],["护","護"],["报","報"],["担","擔"],["拟","擬"],["拢","攏"],["拣","揀"],["拥","擁"],["拦","攔"],["拧","擰"],["拨","撥"],["择","擇"],["挚","摯"],["挛","攣"],["挜","掗"],["挝","撾"],["挞","撻"],["挟","挾"],["挠","撓"],["挡","擋"],["挢","撟"],["挣","掙"],["挤","擠"],["挥","揮"],["挦","撏"],["捞","撈"],["损","損"],["捡","撿"],["换","換"],["捣","搗"],["掳","擄"],["掴","摑"],["掷","擲"],["掸","撣"],["掺","摻"],["掼","摜"],["揸","喳"],["揽","攬"],["揿","撳"],["搀","攙"],["搁","擱"],["搂","摟"],["搃","摠"],["搅","攪"],["携","攜"],["摄","攝"],["摅","攄"],["摆","擺"],["摇","搖"],["摈","擯"],["摊","攤"],["撃","擊"],["撄","攖"],["撑","撐"],["撪","攆"],["撵","攆"],["撷","擷"],["撹","攪"],["撺","攛"],["擕","攜"],["擞","擻"],["擡","抬"],["擥","掔"],["擧","舉"],["擪","壓"],["攒","攢"],["攵","又"],["敇","敕"],["敌","敵"],["敛","斂"],["敮","歃"],["数","數"],["斉","齊"],["斋","齋"],["斎","齋"],["斓","斕"],["斩","斬"],["断","斷"],["旧","舊"],["时","時"],["旷","曠"],["旸","暘"],["昙","曇"],["昼","晝"],["昽","曨"],["显","顯"],["晋","晉"],["晓","曉"],["晔","曄"],["晕","暈"],["晖","暉"],["暂","暫"],["暧","曖"],["术","術"],["杀","殺"],["杂","雜"],["权","權"],["条","條"],["来","來"],["杨","楊"],["极","極"],["枞","樅"],["枢","樞"],["枣","棗"],["枥","櫪"],["枧","見"],["枨","棖"],["枪","槍"],["枫","楓"],["枭","梟"],["柠","檸"],["柽","檉"],["栀","梔"],["栅","柵"],["标","標"],["栈","棧"],["栉","櫛"],["栊","櫳"],["栋","棟"],["栌","櫨"],["栎","櫟"],["栏","欄"],["树","樹"],["样","樣"],["栾","欒"],["桊","棬"],["桠","椏"],["桡","橈"],["桢","楨"],["档","檔"],["桤","榿"],["桥","橋"],["桦","樺"],["桧","檜"],["桨","槳"],["桩","樁"],["梦","夢"],["梼","檮"],["梾","棶"],["检","檢"],["棂","欞"],["椁","槨"],["椟","櫝"],["椠","槧"],["椭","橢"],["楼","樓"],["楽","樂"],["榄","欖"],["榇","櫬"],["榈","櫚"],["榉","櫸"],["榘","矩"],["槚","檟"],["槛","檻"],["槟","檳"],["槠","櫧"],["横","橫"],["樯","檣"],["樱","櫻"],["橥","櫫"],["橱","櫥"],["橹","櫓"],["橼","櫞"],["檪","櫟"],["檫","察"],["欢","歡"],["欤","歟"],["欧","歐"],["歳","歲"],["歴","曆"],["歺","歲"],["歼","殲"],["殁","歿"],["殇","殤"],["残","殘"],["殒","殞"],["殓","殮"],["殚","殫"],["殡","殯"],["殱","殲"],["殴","毆"],["毁","毀"],["毂","轂"],["毕","畢"],["毙","斃"],["毡","氈"],["毵","毿"],["毶","鞠"],["気","氣"],["氢","氫"],["氩","氬"],["氲","氳"],["氵","水"],["氽","汆"],["汇","匯"],["汉","漢"],["污","汙"],["汤","湯"],["汹","洶"],["沟","溝"],["没","沒"],["沣","灃"],["沤","漚"],["沥","瀝"],["沦","淪"],["沧","滄"],["沨","渢"],["沩","溈"],["沪","滬"],["沵","濔"],["泞","濘"],["泪","淚"],["泶","澩"],["泷","瀧"],["泸","瀘"],["泺","濼"],["泻","瀉"],["泼","潑"],["泽","澤"],["泾","涇"],["洁","潔"],["浃","浹"],["浅","淺"],["浆","漿"],["浇","澆"],["浈","湞"],["浊","濁"],["测","測"],["浍","澮"],["济","濟"],["浏","瀏"],["浐","滻"],["浑","渾"],["浒","滸"],["浓","濃"],["浔","潯"],["浕","濜"],["浜","濱"],["涙","淚"],["涛","濤"],["涝","澇"],["涞","淶"],["涟","漣"],["涡","渦"],["涣","渙"],["涤","滌"],["润","潤"],["涧","澗"],["涨","漲"],["涩","澀"],["淀","澱"],["渊","淵"],["渌","淥"],["渍","漬"],["渎","瀆"],["渐","漸"],["渑","澠"],["渔","漁"],["渖","瀋"],["渗","滲"],["温","溫"],["湼","涅"],["湾","灣"],["湿","濕"],["溃","潰"],["溅","濺"],["溆","漵"],["溇","漊"],["滙","匯"],["滚","滾"],["滝","瀧"],["滞","滯"],["滟","灩"],["滠","灄"],["满","滿"],["滢","瀅"],["滤","濾"],["滥","濫"],["滦","灤"],["滨","濱"],["滩","灘"],["滪","澦"],["漑","溉"],["潆","瀠"],["潇","瀟"],["潋","瀲"],["潍","濰"],["潜","潛"],["潴","瀦"],["澜","瀾"],["濑","瀨"],["濒","瀕"],["灎","灩"],["灏","灝"],["灔","灩"],["灜","瀛"],["灧","灩"],["灬","火"],["灭","滅"],["灯","燈"],["灵","靈"],["灾","災"],["灿","燦"],["炀","煬"],["炉","爐"],["炖","燉"],["炜","煒"],["炝","熗"],["点","點"],["炼","煉"],["炽","熾"],["烁","爍"],["烂","爛"],["烃","烴"],["烛","燭"],["烟","煙"],["烦","煩"],["烧","燒"],["烨","燁"],["烩","燴"],["烫","燙"],["烬","燼"],["热","熱"],["焕","煥"],["焖","燜"],["焘","燾"],["煅","煆"],["煳","糊"],["煺","退"],["熘","溜"],["爱","愛"],["爲","為"],["爷","爺"],["牍","牘"],["牜","牛"],["牦","犛"],["牵","牽"],["牺","犧"],["犊","犢"],["犟","強"],["犭","犬"],["状","狀"],["犷","獷"],["犸","馬"],["犹","猶"],["狈","狽"],["狍","包"],["狝","獮"],["狞","獰"],["独","獨"],["狭","狹"],["狮","獅"],["狯","獪"],["狰","猙"],["狱","獄"],["狲","猻"],["猃","獫"],["猎","獵"],["猕","獼"],["猡","玀"],["猪","豬"],["猫","貓"],["猬","蝟"],["献","獻"],["獭","獺"],["玑","璣"],["玙","璵"],["玚","瑒"],["玛","瑪"],["玮","瑋"],["环","環"],["现","現"],["玱","瑲"],["玺","璽"],["珏","玨"],["珐","琺"],["珑","瓏"],["珰","璫"],["珱","瓔"],["珲","琿"],["琏","璉"],["琐","瑣"],["琼","瓊"],["瑶","瑤"],["瑷","璦"],["璎","瓔"],["瓒","瓚"],["瓯","甌"],["産","產"],["电","電"],["画","畫"],["畅","暢"],["畲","畬"],["畳","疊"],["畴","疇"],["畵","畫"],["疎","疏"],["疖","癤"],["疗","療"],["疟","瘧"],["疠","癘"],["疡","瘍"],["疬","癆"],["疮","瘡"],["疯","瘋"],["疴","痾"],["痈","癰"],["痉","痙"],["痖","啞"],["痨","癆"],["痩","瘦"],["痪","瘓"],["痫","癇"],["痬","瘍"],["瘅","癉"],["瘆","疹"],["瘗","瘞"],["瘘","瘺"],["瘪","癟"],["瘫","癱"],["瘾","癮"],["瘿","癭"],["癀","廣"],["癍","斑"],["癎","癇"],["癞","癩"],["癣","癬"],["癫","癲"],["発","發"],["皑","皚"],["皱","皺"],["皲","皸"],["盏","盞"],["盐","鹽"],["监","監"],["盖","蓋"],["盗","盜"],["盘","盤"],["県","縣"],["眍","區"],["眞","真"],["眦","眥"],["眬","矓"],["着","著"],["睁","睜"],["睐","睞"],["睑","瞼"],["瞒","瞞"],["瞩","矚"],["矤","病"],["矫","矯"],["矶","磯"],["矾","礬"],["矿","礦"],["砀","碭"],["码","碼"],["砖","磚"],["砗","硨"],["砚","硯"],["砜","風"],["砺","礪"],["砻","礱"],["砾","礫"],["础","礎"],["硁","硜"],["硕","碩"],["硖","硤"],["硗","磽"],["硙","磑"],["硚","礄"],["硷","鹼"],["碍","礙"],["碛","磧"],["碜","磣"],["碱","鹼"],["碹","宣"],["磙","袞"],["礻","示"],["礼","禮"],["祎","禕"],["祢","禰"],["祯","禎"],["祷","禱"],["祸","禍"],["禀","稟"],["禄","祿"],["禅","禪"],["离","離"],["秃","禿"],["秆","稈"],["积","積"],["称","稱"],["秽","穢"],["秾","穠"],["税","稅"],["稣","穌"],["稳","穩"],["穑","穡"],["穷","窮"],["窃","竊"],["窍","竅"],["窑","窯"],["窜","竄"],["窝","窩"],["窥","窺"],["窦","竇"],["窭","窶"],["竖","豎"],["竜","龍"],["竞","競"],["笃","篤"],["笋","筍"],["笔","筆"],["笕","筧"],["笺","箋"],["笼","籠"],["笾","籩"],["筚","篳"],["筛","篩"],["筜","簹"],["筝","箏"],["筹","籌"],["签","簽"],["简","簡"],["箓","籙"],["箢","宛"],["箦","簀"],["箧","篋"],["箨","籜"],["箩","籮"],["箪","簞"],["箫","簫"],["篑","簣"],["篓","簍"],["篮","籃"],["篱","籬"],["簖","籪"],["籁","籟"],["籴","糴"],["类","類"],["籼","秈"],["粜","糶"],["粝","糲"],["粤","粵"],["粪","糞"],["粮","糧"],["糁","糝"],["糇","餱"],["糹","糸"],["紧","緊"],["絵","繪"],["絶","絕"],["絷","縶"],["綘","健"],["継","繼"],["続","續"],["緜","綿"],["縂","總"],["縄","繩"],["繋","繫"],["繍","繡"],["纟","糸"],["纠","糾"],["纡","紆"],["红","紅"],["纣","紂"],["纤","纖"],["纥","紇"],["约","約"],["级","級"],["纨","紈"],["纩","纊"],["纪","紀"],["纫","紉"],["纬","緯"],["纭","紜"],["纮","紘"],["纯","純"],["纰","紕"],["纱","紗"],["纲","綱"],["纳","納"],["纴","紝"],["纵","縱"],["纶","綸"],["纷","紛"],["纸","紙"],["纹","紋"],["纺","紡"],["纻","紵"],["纼","紖"],["纽","紐"],["纾","紓"],["线","線"],["绀","紺"],["绁","紲"],["绂","紱"],["练","練"],["组","組"],["绅","紳"],["细","細"],["织","織"],["终","終"],["绉","縐"],["绊","絆"],["绋","紼"],["绌","絀"],["绍","紹"],["绎","繹"],["经","經"],["绐","紿"],["绑","綁"],["绒","絨"],["结","結"],["绔","褲"],["绕","繞"],["绖","絰"],["绗","絎"],["绘","繪"],["给","給"],["绚","絢"],["绛","絳"],["络","絡"],["绝","絕"],["绞","絞"],["统","統"],["绠","綆"],["绡","綃"],["绢","絹"],["绣","繡"],["绤","綌"],["绥","綏"],["绦","絛"],["继","繼"],["绨","綈"],["绩","績"],["绪","緒"],["绫","綾"],["续","續"],["绮","綺"],["绯","緋"],["绰","綽"],["绱","鞜"],["绲","緄"],["绳","繩"],["维","維"],["绵","綿"],["绶","綬"],["绷","繃"],["绸","綢"],["绹","綯"],["绺","綹"],["绻","綣"],["综","綜"],["绽","綻"],["绾","綰"],["绿","綠"],["缀","綴"],["缁","緇"],["缂","緙"],["缃","緗"],["缄","緘"],["缅","緬"],["缆","纜"],["缇","緹"],["缈","緲"],["缉","緝"],["缊","縕"],["缋","繢"],["缌","緦"],["缍","綞"],["缎","緞"],["缏","緶"],["缐","線"],["缑","緱"],["缒","縋"],["缓","緩"],["缔","締"],["缕","縷"],["编","編"],["缗","緡"],["缘","緣"],["缙","縉"],["缚","縛"],["缛","縟"],["缜","縝"],["缝","縫"],["缞","縗"],["缟","縞"],["缠","纏"],["缡","縭"],["缢","縊"],["缣","縑"],["缤","繽"],["缥","縹"],["缦","縵"],["缧","縲"],["缨","纓"],["缩","縮"],["缪","繆"],["缫","繅"],["缬","纈"],["缭","繚"],["缮","繕"],["缯","繒"],["缰","韁"],["缱","繾"],["缲","繰"],["缳","繯"],["缴","繳"],["缵","纘"],["罂","罌"],["罗","羅"],["罚","罰"],["罢","罷"],["罴","羆"],["羁","羈"],["羗","羌"],["羟","羥"],["羡","羨"],["羣","群"],["羮","羹"],["翘","翹"],["翙","翽"],["翚","翬"],["耢","勞"],["耥","尚"],["耧","耬"],["耸","聳"],["耻","恥"],["聂","聶"],["聋","聾"],["职","職"],["聍","聹"],["联","聯"],["聩","聵"],["聪","聰"],["肀","聿"],["肃","肅"],["肠","腸"],["肤","膚"],["肷","欠"],["肾","腎"],["肿","腫"],["胀","脹"],["胁","脅"],["胆","膽"],["胧","朧"],["胨","東"],["胪","臚"],["胫","脛"],["胶","膠"],["脉","脈"],["脍","膾"],["脏","髒"],["脐","臍"],["脑","腦"],["脓","膿"],["脔","臠"],["脚","腳"],["脱","脫"],["脲","反"],["脶","腡"],["脸","臉"],["腭","齶"],["腻","膩"],["腽","膃"],["腾","騰"],["膑","臏"],["臓","摹"],["臜","臢"],["舆","輿"],["舣","艤"],["舰","艦"],["舱","艙"],["舻","艫"],["艰","艱"],["艹","艸"],["艺","藝"],["节","節"],["芈","羋"],["芗","薌"],["芜","蕪"],["芦","蘆"],["苁","蓯"],["苇","葦"],["苋","莧"],["苌","萇"],["苍","蒼"],["苎","苧"],["苏","蘇"],["苘","萵"],["茎","莖"],["茏","蘢"],["茑","蔦"],["茔","塋"],["茕","煢"],["茧","繭"],["荆","荊"],["荚","莢"],["荛","蕘"],["荜","蓽"],["荞","蕎"],["荟","薈"],["荠","薺"],["荡","蕩"],["荣","榮"],["荤","葷"],["荥","滎"],["荦","犖"],["荧","熒"],["荨","蕁"],["荩","藎"],["荪","蓀"],["荫","蔭"],["荬","賣"],["荭","葒"],["荮","紂"],["药","藥"],["莅","蒞"],["莱","萊"],["莲","蓮"],["莳","蒔"],["莴","萵"],["获","獲"],["莸","蕕"],["莹","瑩"],["莺","鶯"],["莼","蓴"],["菭","恰"],["萚","蘀"],["萝","蘿"],["萤","螢"],["营","營"],["萦","縈"],["萧","蕭"],["萨","薩"],["葱","蔥"],["蒇","蕆"],["蒉","蕢"],["蒋","蔣"],["蒌","蔞"],["蓝","藍"],["蓟","薊"],["蓠","蘺"],["蓦","驀"],["蔷","薔"],["蔹","蘞"],["蔺","藺"],["蔼","藹"],["蕲","蘄"],["蕴","蘊"],["薮","藪"],["藁","槁"],["藓","蘚"],["蘖","蘗"],["虏","虜"],["虑","慮"],["虚","虛"],["虬","虯"],["虮","蟣"],["虽","雖"],["虾","蝦"],["虿","蠆"],["蚀","蝕"],["蚁","蟻"],["蚂","螞"],["蚕","蠶"],["蚬","蜆"],["蛊","蠱"],["蛎","蠣"],["蛏","蟶"],["蛮","蠻"],["蛰","蟄"],["蛱","蛺"],["蛲","蟯"],["蛳","螄"],["蛴","蠐"],["蜕","蛻"],["蜖","汀"],["蜗","蝸"],["蝇","蠅"],["蝈","蟈"],["蝉","蟬"],["蝼","螻"],["蝾","蠑"],["蝿","蠅"],["螀","螿"],["螨","顢"],["蟏","蠨"],["蟮","蟺"],["蠎","蟒"],["衅","釁"],["衔","銜"],["衤","衣"],["补","補"],["衬","襯"],["衮","袞"],["袄","襖"],["袅","裊"],["袆","褘"],["袭","襲"],["袯","襏"],["袴","褲"],["装","裝"],["裆","襠"],["裈","褌"],["裢","褳"],["裣","襝"],["裤","褲"],["裥","襉"],["褛","褸"],["褴","襤"],["襕","襴"],["覇","霸"],["覚","覺"],["覧","覽"],["覩","睹"],["见","見"],["观","觀"],["规","規"],["觅","覓"],["视","視"],["觇","覘"],["览","覽"],["觉","覺"],["觊","覬"],["觋","覡"],["觌","覿"],["觎","覦"],["觏","覯"],["觐","覲"],["觑","覷"],["觗","觝"],["觞","觴"],["触","觸"],["觯","觶"],["訡","吟"],["詟","讋"],["詤","謊"],["誀","浴"],["誉","譽"],["誊","謄"],["説","說"],["読","讀"],["讁","謫"],["讠","言"],["计","計"],["订","訂"],["讣","訃"],["认","認"],["讥","譏"],["讦","訐"],["讧","訌"],["讨","討"],["让","讓"],["讪","訕"],["讫","訖"],["训","訓"],["议","議"],["讯","訊"],["记","記"],["讱","訒"],["讲","講"],["讳","諱"],["讴","謳"],["讵","詎"],["讶","訝"],["讷","訥"],["许","許"],["讹","訛"],["论","論"],["讼","訟"],["讽","諷"],["设","設"],["访","訪"],["诀","訣"],["证","證"],["诂","詁"],["诃","訶"],["评","評"],["诅","詛"],["识","識"],["诇","詗"],["诈","詐"],["诉","訴"],["诊","診"],["诋","詆"],["诌","謅"],["词","詞"],["诎","詘"],["诏","詔"],["诐","詖"],["译","譯"],["诒","詒"],["诓","誆"],["诔","誄"],["试","試"],["诖","詿"],["诗","詩"],["诘","詰"],["诙","詼"],["诚","誠"],["诛","誅"],["诜","詵"],["话","話"],["诞","誕"],["诟","詬"],["诠","詮"],["诡","詭"],["询","詢"],["诣","詣"],["诤","諍"],["该","該"],["详","詳"],["诧","詫"],["诨","諢"],["诩","詡"],["诪","譸"],["诫","誡"],["诬","誣"],["语","語"],["诮","誚"],["误","誤"],["诰","誥"],["诱","誘"],["诲","誨"],["诳","誑"],["说","說"],["诵","誦"],["诶","誒"],["请","請"],["诸","諸"],["诹","諏"],["诺","諾"],["读","讀"],["诼","諑"],["诽","誹"],["课","課"],["诿","諉"],["谀","諛"],["谁","誰"],["谂","諗"],["调","調"],["谄","諂"],["谅","諒"],["谆","諄"],["谇","誶"],["谈","談"],["谊","誼"],["谋","謀"],["谌","諶"],["谍","諜"],["谎","謊"],["谏","諫"],["谐","諧"],["谑","謔"],["谒","謁"],["谓","謂"],["谔","諤"],["谕","諭"],["谖","諼"],["谗","讒"],["谘","諮"],["谙","諳"],["谚","諺"],["谛","諦"],["谜","謎"],["谝","諞"],["谞","住"],["谟","謨"],["谠","讜"],["谡","謖"],["谢","謝"],["谣","謠"],["谤","謗"],["谥","謚"],["谦","謙"],["谧","謐"],["谨","謹"],["谩","謾"],["谪","謫"],["谫","譾"],["谬","謬"],["谭","譚"],["谮","譖"],["谯","譙"],["谰","讕"],["谱","譜"],["谲","譎"],["谳","讞"],["谴","譴"],["谵","譫"],["谶","讖"],["豮","豶"],["貭","亍"],["貮","貳"],["賍","贓"],["賎","賤"],["賖","賒"],["賘","髒"],["贋","贗"],["贘","償"],["贝","貝"],["贞","貞"],["负","負"],["贡","貢"],["财","財"],["责","責"],["贤","賢"],["败","敗"],["账","賬"],["货","貨"],["质","質"],["贩","販"],["贪","貪"],["贫","貧"],["贬","貶"],["购","購"],["贮","貯"],["贯","貫"],["贰","貳"],["贱","賤"],["贲","賁"],["贳","貰"],["贴","貼"],["贵","貴"],["贶","貺"],["贷","貸"],["贸","貿"],["费","費"],["贺","賀"],["贻","貽"],["贼","賊"],["贽","贄"],["贾","賈"],["贿","賄"],["赀","貲"],["赁","賃"],["赂","賂"],["赃","贓"],["资","資"],["赅","賅"],["赆","贐"],["赇","賕"],["赈","賑"],["赉","賚"],["赊","賒"],["赋","賦"],["赌","賭"],["赍","齎"],["赎","贖"],["赏","賞"],["赐","賜"],["赑","贔"],["赒","賙"],["赓","賡"],["赔","賠"],["赖","賴"],["赗","賵"],["赘","贅"],["赙","賻"],["赚","賺"],["赛","賽"],["赜","賾"],["赝","贗"],["赞","贊"],["赟","贇"],["赠","贈"],["赡","贍"],["赢","贏"],["赣","贛"],["赪","赬"],["赵","趙"],["趋","趨"],["趱","趲"],["趸","躉"],["跃","躍"],["跄","蹌"],["跞","躒"],["践","踐"],["跶","躂"],["跷","蹺"],["跸","蹕"],["跹","躚"],["跻","躋"],["踌","躊"],["踪","蹤"],["踬","躓"],["踯","躑"],["蹑","躡"],["蹒","蹣"],["蹰","躕"],["蹿","躥"],["躏","躪"],["躜","躦"],["躯","軀"],["车","車"],["轧","軋"],["轨","軌"],["轩","軒"],["轪","軑"],["轫","軔"],["转","轉"],["轭","軛"],["轮","輪"],["软","軟"],["轰","轟"],["轱","古"],["轲","軻"],["轳","轤"],["轴","軸"],["轵","軹"],["轶","軼"],["轷","乎"],["轸","軫"],["轹","轢"],["轺","軺"],["轻","輕"],["轼","軾"],["载","載"],["轾","輊"],["轿","轎"],["辀","輈"],["辁","輇"],["辂","輅"],["较","較"],["辄","輒"],["辅","輔"],["辆","輛"],["辇","輦"],["辈","輩"],["辉","輝"],["辊","輥"],["辋","輞"],["辌","輬"],["辍","輟"],["辎","輜"],["辏","輳"],["辐","輻"],["辑","輯"],["辒","轀"],["输","輸"],["辔","轡"],["辕","轅"],["辖","轄"],["辗","輾"],["辘","轆"],["辙","轍"],["辚","轔"],["辞","辭"],["辩","辯"],["辫","辮"],["辬","辨"],["边","邊"],["辽","遼"],["达","達"],["迁","遷"],["过","過"],["迈","邁"],["运","運"],["还","還"],["这","這"],["进","進"],["远","遠"],["违","違"],["连","連"],["迟","遲"],["迩","邇"],["迳","逕"],["迹","跡"],["选","選"],["逊","遜"],["递","遞"],["逦","邐"],["逻","邏"],["遗","遺"],["遥","遙"],["邓","鄧"],["邝","鄺"],["邬","鄔"],["邮","郵"],["邹","鄒"],["邺","鄴"],["邻","鄰"],["郄","卻"],["郏","郟"],["郐","鄶"],["郑","鄭"],["郓","鄆"],["郦","酈"],["郧","鄖"],["郷","鄉"],["郸","鄲"],["鄊","鄉"],["鄕","鄉"],["鄷","酆"],["酝","醞"],["酦","醱"],["酱","醬"],["酽","釅"],["酾","釃"],["酿","釀"],["释","釋"],["釡","斧"],["鉴","鑒"],["銮","鑾"],["錾","鏨"],["鎻","鎖"],["钅","金"],["钆","釓"],["钇","釔"],["针","針"],["钉","釘"],["钊","釗"],["钋","釙"],["钌","釕"],["钍","釷"],["钏","釧"],["钐","釤"],["钑","鈒"],["钒","釩"],["钓","釣"],["钔","鍆"],["钕","釹"],["钖","鍚"],["钗","釵"],["钘","鈃"],["钙","鈣"],["钚","鈽"],["钛","鈦"],["钜","鉅"],["钝","鈍"],["钞","鈔"],["钟","鐘"],["钠","鈉"],["钡","鋇"],["钢","鋼"],["钣","鈑"],["钤","鈐"],["钥","鑰"],["钦","欽"],["钧","鈞"],["钨","鎢"],["钩","鉤"],["钪","鈧"],["钫","鈁"],["钬","鈥"],["钮","鈕"],["钯","鈀"],["钰","鈺"],["钱","錢"],["钲","鉦"],["钳","鉗"],["钴","鈷"],["钵","缽"],["钶","鈳"],["钸","鈽"],["钹","鈸"],["钺","鉞"],["钻","鑽"],["钼","鉬"],["钽","鉭"],["钾","鉀"],["钿","鈿"],["铀","鈾"],["铁","鐵"],["铂","鉑"],["铃","鈴"],["铄","鑠"],["铅","鉛"],["铆","鉚"],["铈","鈰"],["铉","鉉"],["铊","鉈"],["铋","鉍"],["铌","鈮"],["铍","鈹"],["铎","鐸"],["铏","鉶"],["铐","銬"],["铑","銠"],["铒","鉺"],["铓","鋩"],["铔","錏"],["铕","銪"],["铖","鋮"],["铗","鋏"],["铘","邪"],["铙","鐃"],["铚","銍"],["铛","鐺"],["铜","銅"],["铝","鋁"],["铞","吊"],["铟","銦"],["铠","鎧"],["铡","鍘"],["铢","銖"],["铣","銑"],["铤","鋌"],["铥","銩"],["铦","銛"],["铧","鏵"],["铨","銓"],["铩","鎩"],["铪","鉿"],["铫","銚"],["铬","鉻"],["铭","銘"],["铮","錚"],["铯","銫"],["铰","鉸"],["铱","銥"],["铲","鏟"],["铳","銃"],["铴","鐋"],["铵","銨"],["银","銀"],["铷","銣"],["铸","鑄"],["铹","鐒"],["铺","鋪"],["铻","鋙"],["铼","錸"],["铽","鋱"],["链","鏈"],["铿","鏗"],["销","銷"],["锁","鎖"],["锂","鋰"],["锃","呈"],["锄","鋤"],["锅","鍋"],["锆","鋯"],["锇","鋨"],["锈","鏽"],["锉","銼"],["锊","鋝"],["锋","鋒"],["锌","鋅"],["锍","琉"],["锎","鉲"],["锏","閒"],["锐","銳"],["锑","銻"],["锒","鋃"],["锓","鋟"],["锔","鋦"],["锕","錒"],["锖","錆"],["锗","鍺"],["锘","若"],["错","錯"],["锚","錨"],["锛","錛"],["锜","錡"],["锝","鎝"],["锞","錁"],["锟","錕"],["锠","琛"],["锡","錫"],["锢","錮"],["锣","鑼"],["锤","錘"],["锥","錐"],["锦","錦"],["锧","鑕"],["锨","杴"],["锪","忽"],["锫","培"],["锬","錟"],["锭","錠"],["键","鍵"],["锯","鋸"],["锰","錳"],["锱","錙"],["锲","鍥"],["锴","鍇"],["锵","鏘"],["锶","鍶"],["锷","鍔"],["锸","鍤"],["锹","鍬"],["锺","鍾"],["锻","鍛"],["锼","鎪"],["锽","鍠"],["锾","鍰"],["锿","鑀"],["镀","鍍"],["镁","鎂"],["镂","鏤"],["镃","鎡"],["镄","鐨"],["镅","鋂"],["镆","鏌"],["镇","鎮"],["镈","鎛"],["镉","鎘"],["镊","鑷"],["镋","钂"],["镌","鐫"],["镍","鎳"],["镎","拿"],["镏","鎦"],["镐","鎬"],["镑","鎊"],["镒","鎰"],["镓","鎵"],["镔","鑌"],["镕","鎔"],["镖","鏢"],["镗","鏜"],["镘","鏝"],["镙","鏍"],["镛","鏞"],["镜","鏡"],["镝","鏑"],["镞","鏃"],["镟","鏇"],["镠","鏐"],["镡","鐔"],["镢","钁"],["镣","鐐"],["镤","鏷"],["镥","魯"],["镧","鑭"],["镨","鐠"],["镩","串"],["镪","鏹"],["镫","鐙"],["镬","鑊"],["镭","鐳"],["镮","鐶"],["镯","鐲"],["镰","鐮"],["镱","鐿"],["镲","察"],["镳","鑣"],["镴","鑞"],["镵","鑱"],["镶","鑲"],["长","長"],["閲","閱"],["门","門"],["闩","閂"],["闪","閃"],["闫","閆"],["闬","閈"],["闭","閉"],["问","問"],["闯","闖"],["闰","閏"],["闱","闈"],["闲","閒"],["闳","閎"],["间","間"],["闵","閔"],["闶","閌"],["闷","悶"],["闸","閘"],["闹","鬧"],["闺","閨"],["闻","聞"],["闼","闥"],["闽","閩"],["闾","閭"],["闿","闓"],["阀","閥"],["阁","閣"],["阂","閡"],["阃","閫"],["阄","鬮"],["阅","閱"],["阆","閬"],["阇","闍"],["阈","閾"],["阉","閹"],["阊","閶"],["阋","鬩"],["阌","閿"],["阍","閽"],["阎","閻"],["阏","閼"],["阐","闡"],["阑","闌"],["阒","闃"],["阓","闠"],["阔","闊"],["阕","闋"],["阖","闔"],["阗","闐"],["阘","闒"],["阙","闕"],["阚","闞"],["阛","闤"],["阝","阜"],["队","隊"],["阳","陽"],["阴","陰"],["阵","陣"],["阶","階"],["际","際"],["陆","陸"],["陇","隴"],["陈","陳"],["陉","陘"],["陕","陝"],["陧","隉"],["陨","隕"],["险","險"],["隂","陰"],["隌","暗"],["随","隨"],["隐","隱"],["隠","隱"],["隷","隸"],["隽","雋"],["难","難"],["雏","雛"],["雠","讎"],["雳","靂"],["雾","霧"],["霁","霽"],["霊","靈"],["霭","靄"],["靓","靚"],["静","靜"],["靥","靨"],["鞑","韃"],["鞒","轎"],["鞯","韉"],["鞲","韝"],["鞽","轎"],["韦","韋"],["韧","韌"],["韨","韍"],["韩","韓"],["韪","韙"],["韫","韞"],["韬","韜"],["韯","籤"],["韲","齋"],["韵","韻"],["顋","腮"],["顔","顏"],["顕","顯"],["页","頁"],["顶","頂"],["顷","頃"],["顸","頇"],["项","項"],["顺","順"],["须","須"],["顼","頊"],["顽","頑"],["顾","顧"],["顿","頓"],["颀","頎"],["颁","頒"],["颂","頌"],["颃","頏"],["预","預"],["颅","顱"],["领","領"],["颇","頗"],["颈","頸"],["颉","頡"],["颊","頰"],["颋","頲"],["颌","頜"],["颍","潁"],["颎","熲"],["颏","頦"],["颐","頤"],["频","頻"],["颓","頹"],["颔","頷"],["颕","穎"],["颖","穎"],["颗","顆"],["题","題"],["颙","顒"],["颚","顎"],["颛","顓"],["颜","顏"],["额","額"],["颞","顳"],["颟","顢"],["颠","顛"],["颡","顙"],["颢","顥"],["颣","纇"],["颤","顫"],["颥","須"],["颦","顰"],["颧","顴"],["颷","飆"],["风","風"],["飏","颺"],["飐","颭"],["飑","颮"],["飒","颯"],["飓","颶"],["飔","颸"],["飕","颼"],["飖","颻"],["飗","飀"],["飘","飄"],["飙","飆"],["飚","飆"],["飞","飛"],["飨","饗"],["飬","養"],["飮","飲"],["飱","餐"],["餍","饜"],["饣","食"],["饤","飣"],["饥","飢"],["饦","飥"],["饧","餳"],["饨","飩"],["饩","餼"],["饪","飪"],["饫","飫"],["饬","飭"],["饭","飯"],["饮","飲"],["饯","餞"],["饰","飾"],["饱","飽"],["饲","飼"],["饴","飴"],["饵","餌"],["饶","饒"],["饷","餉"],["饺","餃"],["饼","餅"],["饽","餑"],["饾","餖"],["饿","餓"],["馀","餘"],["馁","餒"],["馂","餕"],["馄","餛"],["馅","餡"],["馆","館"],["馇","查"],["馈","饋"],["馉","稹"],["馊","餿"],["馋","饞"],["馌","饁"],["馍","饃"],["馎","餺"],["馏","餾"],["馐","饈"],["馑","饉"],["馒","饅"],["馓","饊"],["馔","饌"],["馕","囊"],["马","馬"],["驭","馭"],["驮","馱"],["驯","馴"],["驰","馳"],["驱","驅"],["驲","馹"],["驳","駁"],["驴","驢"],["驵","駔"],["驶","駛"],["驷","駟"],["驸","駙"],["驹","駒"],["驺","騶"],["驻","駐"],["驼","駝"],["驽","駑"],["驾","駕"],["驿","驛"],["骀","駘"],["骁","驍"],["骂","罵"],["骃","駰"],["骄","驕"],["骅","驊"],["骆","駱"],["骇","駭"],["骈","駢"],["骊","驪"],["骋","騁"],["验","驗"],["骍","騂"],["骎","駸"],["骏","駿"],["骐","騏"],["骑","騎"],["骒","騍"],["骓","騅"],["骕","驌"],["骖","驂"],["骗","騙"],["骘","騭"],["骙","騤"],["骚","騷"],["骛","騖"],["骜","驁"],["骝","騮"],["骞","騫"],["骟","騸"],["骠","驃"],["骡","騾"],["骢","驄"],["骣","驏"],["骤","驟"],["骥","驥"],["骦","驦"],["骧","驤"],["髅","髏"],["髋","髖"],["髌","髕"],["鬓","鬢"],["魇","魘"],["魉","魎"],["鱼","魚"],["鱿","魷"],["鲀","魨"],["鲁","魯"],["鲂","魴"],["鲅","鱍"],["鲆","平"],["鲇","占"],["鲈","鱸"],["鲊","鮓"],["鲋","鮒"],["鲍","鮑"],["鲎","鱟"],["鲐","鮐"],["鲑","鮭"],["鲒","鮚"],["鲔","鮪"],["鲕","鮞"],["鲖","鮦"],["鲙","鱠"],["鲚","鱭"],["鲛","鮫"],["鲜","鮮"],["鲞","鯗"],["鲟","鱘"],["鲠","鯁"],["鲡","鱺"],["鲢","鰱"],["鲣","鰹"],["鲤","鯉"],["鲥","鰣"],["鲦","鰷"],["鲧","鯀"],["鲨","鯊"],["鲩","鯇"],["鲫","鯽"],["鲭","鯖"],["鲮","鯪"],["鲰","鯫"],["鲱","鯡"],["鲲","鯤"],["鲳","鯧"],["鲴","固"],["鲵","鯢"],["鲶","鯰"],["鲷","鯛"],["鲸","鯨"],["鲺","虱"],["鲻","鯔"],["鲼","賁"],["鲽","鰈"],["鲿","鱨"],["鳀","鯷"],["鳃","鰓"],["鳄","鱷"],["鳅","鰍"],["鳆","鰒"],["鳇","鰉"],["鳊","扁"],["鳋","蚤"],["鳌","鰲"],["鳍","鰭"],["鳏","鰥"],["鳐","鰩"],["鳒","鰜"],["鳔","鰾"],["鳕","鱈"],["鳖","鱉"],["鳗","鰻"],["鳘","鱉"],["鳙","庸"],["鳛","鰼"],["鳜","鱖"],["鳝","鱔"],["鳞","鱗"],["鳟","鱒"],["鳡","鰲"],["鳢","鱧"],["鳣","鱣"],["鸟","鳥"],["鸠","鳩"],["鸡","雞"],["鸢","鳶"],["鸣","鳴"],["鸤","鳲"],["鸥","鷗"],["鸦","鴉"],["鸧","鶬"],["鸨","鴇"],["鸩","鴆"],["鸪","鴣"],["鸬","鸕"],["鸭","鴨"],["鸮","鴞"],["鸯","鴦"],["鸰","鴒"],["鸱","鴟"],["鸲","鴝"],["鸳","鴛"],["鸵","鴕"],["鸶","鷥"],["鸷","鷙"],["鸹","鴰"],["鸺","鵂"],["鸼","鵃"],["鸽","鴿"],["鸾","鸞"],["鸿","鴻"],["鹁","鵓"],["鹂","鸝"],["鹃","鵑"],["鹄","鵠"],["鹅","鵝"],["鹆","鵒"],["鹇","鷳"],["鹈","鵜"],["鹉","鵡"],["鹊","鵲"],["鹋","苗"],["鹌","鵪"],["鹎","鵯"],["鹏","鵬"],["鹑","鶉"],["鹒","鶊"],["鹓","鵷"],["鹔","鷫"],["鹕","鶘"],["鹖","鶡"],["鹗","鶚"],["鹘","鶻"],["鹙","鶖"],["鹚","鶿"],["鹛","眉"],["鹜","鶩"],["鹝","鷊"],["鹞","鷂"],["鹠","鶹"],["鹡","鶺"],["鹢","鷁"],["鹣","鶼"],["鹤","鶴"],["鹥","鷖"],["鹦","鸚"],["鹧","鷓"],["鹨","鷚"],["鹩","鷯"],["鹪","鷦"],["鹫","鷲"],["鹬","鷸"],["鹭","鷺"],["鹯","鸇"],["鹰","鷹"],["鹱","獲"],["鹲","鸏"],["鹳","鸛"],["鹾","鹺"],["麦","麥"],["麸","麩"],["麹","麴"],["麺","麵"],["麽","麼"],["黄","黃"],["黉","黌"],["黒","黑"],["黙","默"],["黡","黶"],["黩","黷"],["黪","黲"],["黾","黽"],["鼋","黿"],["鼍","鼉"],["鼗","鞀"],["鼹","鼴"],["齄","皻"],["齐","齊"],["齑","齏"],["齿","齒"],["龀","齔"],["龁","齕"],["龂","齗"],["龃","齟"],["龄","齡"],["龅","齙"],["龆","齠"],["龇","齜"],["龈","齦"],["龉","齬"],["龊","齪"],["龋","齲"],["龌","齷"],["龙","龍"],["龚","龔"],["龛","龕"],["龟","龜"]]);function i(e){if(!e)return"";let t="";for(let n=0;n<e.length;n++)t+=r.get(e[n])||e[n];return t}var s=n(38),c=n(2);function l(e){return Promise.reject(new Error("NO_RESULT"))}function d(e){return Promise.reject(new Error("NETWORK_ERROR"))}function u(e){const t=new Error("MANUAL_VERIFICATION");return t.manualVerification=e,Promise.reject(t)}function p(e){return e&&"MANUAL_VERIFICATION"===e.message&&e.manualVerification&&"string"==typeof e.manualVerification.url}function h(e){return{result:{type:"MANUAL_VERIFICATION",...e}}}function f(e){return e&&"MANUAL_VERIFICATION"===e.type&&"string"==typeof e.url}async function g(e){return null==e||/zh-TW|zh-HK/i.test(e)?i:null}function m(e,...t){if(!e)return"";let n="",a=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(a=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const r=o.textContent||"";return a?a(r):r}const b={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function y(e,{mode:t="innerHTML",selector:n,transform:a,host:r,config:i=b}={}){const l=n?e.querySelector(n):e;if(!l)return"";if(r){const e=e=>{e.getAttribute("href")&&e.setAttribute("href",A(r,e,"href")),e.getAttribute("src")&&e.setAttribute("src",A(r,e,"src")),Object(c.g)()&&e.getAttribute("srcset")&&e.setAttribute("srcset",e.getAttribute("srcset").replace(/(,| |^)\/\//g,(e,t)=>t+"https://"))};(Object(s.a)(l,"a")||Object(s.a)(l,"img"))&&e(l),l.querySelectorAll("a").forEach(e),l.querySelectorAll("img").forEach(e)}const d=o.a.sanitize(l,{...i,RETURN_DOM_FRAGMENT:!0}),u=d.firstChild?d.firstChild[t]:"";return a?a(u):u}function w(e,t,n={}){return y(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function _(e,t,n={}){return y(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function v(e,t){const n=e.querySelector(t);n&&n.remove()}function S(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function k(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function A(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const a=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?a+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},31:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));n(139);var a=n(47),o=n.n(a);function r(e,t){return o()(e,{withCredentials:!1,headers:{Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",...null==t?void 0:t.headers},...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function i(e,t){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},33:function(e,t,n){"use strict";n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return g})),n.d(t,"k",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"m",(function(){return y})),n.d(t,"b",(function(){return w})),n.d(t,"j",(function(){return _})),n.d(t,"e",(function(){return v})),n.d(t,"l",(function(){return k})),n.d(t,"g",(function(){return A})),n.d(t,"n",(function(){return C})),n.d(t,"c",(function(){return O})),n.d(t,"a",(function(){return x})),n.d(t,"d",(function(){return T}));var a=n(90),o=n.n(a),r=n(78),i=n(185),s=n(1),c=n(100),l=n(67),d=n(81),u=n(10);function p(e){return{v:1,d:o.a.deflate(JSON.stringify(e),{to:"string"})}}function h(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}function f(e,t){const n=/^%%_(\S+)_%%$/.exec(e);return n&&t("common:profile."+n[1])||e}async function g(){let e=[],t=[],n="";const a=await s.c.sync.get(["profileIDList","activeProfileID"]);if(a.profileIDList&&(t=a.profileIDList.filter(e=>Boolean(e&&"string"==typeof e.id&&"string"==typeof e.name))),a.activeProfileID&&(n=a.activeProfileID),t.length>0)for(const{id:n}of t){const t=await b(n);e.push(t?Object(i.a)(t):Object(r.b)(n))}else({profileIDList:t,profiles:e}=Object(r.a)()),n=t[0].id;n||(n=t[0].id);let o=e.find(({id:e})=>e===n);o||(o=e[0],n=o.id),await s.c.sync.set({profileIDList:t,activeProfileID:n});for(const t of e)await y(t);return o}async function m(){const{profileIDList:e}=await s.c.sync.get("profileIDList");return e&&await s.c.sync.remove([...e.map(({id:e})=>e),"profileIDList","activeProfileID","configProfileIDs","activeConfigID"]),g()}async function b(e){return h((await s.c.sync.get(e))[e])}async function y(e){return s.c.sync.set({[e.id]:p(e)})}async function w(e){const t=e.id,n=await A();return s.c.sync.set({profileIDList:[...n,e],[t]:p(Object(r.b)(t))})}async function _(e){const t=await S();let n=await A();return n=n.filter(t=>t.id!==e),t===e&&await k(n[0].id),await C(n),s.c.sync.remove(e)}async function v(){const e=await S();if(e){const t=await b(e);if(t)return t}return Object(r.b)()}async function S(){return(await s.c.sync.get("activeProfileID")).activeProfileID||""}function k(e){return s.c.sync.set({activeProfileID:e})}async function A(){return(await s.c.sync.get("profileIDList")).profileIDList||[]}function C(e){return s.c.sync.set({profileIDList:e})}function O(e){s.c.sync.addListener("profileIDList",({profileIDList:t})=>{t&&t.newValue&&e(t)})}async function x(e){let t=await S();s.c.sync.addListener(n=>{if(n.activeProfileID){const{newValue:a,oldValue:o}=n.activeProfileID;a&&(t=a,o?s.c.sync.get([o,a]).then(t=>{t[a]&&e({newProfile:h(t[a]),oldProfile:h(t[o])})}):b(a).then(t=>{t&&e({newProfile:t})}))}if(t&&n[t]){const{newValue:a,oldValue:o}=n[t];if(a)return void e({newProfile:h(a),oldProfile:h(o)})}})}function T(){return Object(c.a)(Object(l.a)(A()),Object(d.a)(O).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newValue)))}},353:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return i})),n.d(t,"getSrcPage",(function(){return s})),n.d(t,"search",(function(){return c}));var a=n(16),o=n(664),r=n(12);const i=Object(a.a)(()=>new o.Baidu({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.BAIDU_APPID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.BAIDU_KEY?{appid:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.BAIDU_APPID,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.BAIDU_KEY}:void 0})),s=(e,t,n)=>`https://fanyi.baidu.com/#auto/${"default"===n.dicts.all.baidu.options.tl?"zh-CN"===t.langCode?"zh":"zh-TW"===t.langCode?"cht":"en":n.dicts.all.baidu.options.tl}/${e}`,c=async(e,t,n,a)=>{const o=i(),{sl:s,tl:c,text:l}=await Object(r.a)(o,e,n.dicts.all.baidu,t,a),d=t.dictAuth.baidu.appid,u=t.dictAuth.baidu.key,p=d&&u?{appid:d,key:u}:void 0;try{const e=await o.translate(l,s,c,p);return Object(r.c)({result:{id:"baidu",slInitial:n.dicts.all.baidu.options.slInitial,sl:e.from,tl:e.to,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"baidu",slInitial:"hide",sl:s,tl:c,searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},38:function(e,t,n){"use strict";function a(e,t){return(e.tagName||"").toLowerCase()===t.toLowerCase()}n.d(t,"a",(function(){return a}))},409:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={app:{off:"Saladict disabled. (Quick Search Panel is still available)",tempOff:"Saladict disabled on current tab. (Quick Search Panel is still available)",unsupported:"Embedded Saladict panel is unsupported for current tab. Use Standalone Saladict panel instead."}}},410:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={add:"Add",delete:"Delete",save:"Save",cancel:"Cancel",edit:"Edit",sort:"Sort",rename:"Rename",confirm:"Confirm",changes_confirm:"Changes not saved. Close anyway?",delete_confirm:"Deleted item completely?",max:"Max",min:"Min",name:"Name",none:"None",enable:"Enable",enabled:"Enabled",disabled:"Disabled",blacklist:"Blacklist",whitelist:"Whitelist",import:"Import",export:"Export",lang:{chinese:"Chinese",chs:"Chinese",deutsch:"Deutsch",eng:"English",english:"English",french:"French",japanese:"Japanese",korean:"Korean",matchAll:"Match every character",minor:"Minor",others:"Others",spanish:"Spanish"},unit:{mins:"minutes",ms:"ms",s:"s",word:"words"},note:{word:"Word",trans:"Translation",note:"Note",context:"Context",contextCloze:"Context Cloze",date:"Date",srcTitle:"Source Title",srcLink:"Source Link",srcFavicon:"Source Favicon"},profile:{daily:"Daily Mode",sentence:"Sentence Mode",default:"Default Mode",scholar:"Scholar Mode",translation:"Translation Mode",nihongo:"Japanese Mode"}}},411:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={chooseLang:"Choose another language",standalone:"Saladict Standalone Panel",fetchLangList:"Fetch full language list",transContext:"Retranslate",neverShow:"Stop showing",fromSaladict:"From Saladict Panel",tip:{historyBack:"Previous search history",historyNext:"Next search history",searchText:"Search text",openOptions:"Open Options",addToNotebook:"Add to Notebook. Right click to open Notebook",openNotebook:"Open Notebook",openHistory:"Open History",shareImg:"Share as image",pinPanel:"Pin the panel",closePanel:"Close the panel",sidebar:"Switch to sidebar mode. Right click to right side.",focusPanel:"Panel gains focus when searching",unfocusPanel:"Panel does not gain focus when searching"},wordEditor:{title:"Add to Notebook",wordCardsTitle:"Other results from Notebook",deleteConfirm:"Delete from Notebook?",closeConfirm:"Changes will not be saved. Are you sure to close?",chooseCtxTitle:"Pick translated results",ctxHelp:"Keep the [:: xxx ::] and --------------- format if you want Saladict to handle translation selection and generate Anki table."},machineTrans:{switch:"Switch Language",sl:"Source Language",tl:"Target Language",auto:"Detect language",stext:"Original",showSl:"Show Source",copySrc:"Copy Source",copyTrans:"Copy Translation",login:"Please provide {access token}.",dictAccount:"access token"},manualVerification:{title:"Manual verification required",message:"Open the original dictionary page and complete the human verification, then try this search again in Saladict.",openPage:"Open dictionary page"},updateAnki:{title:"Update to Anki",success:"Successfully update word to Anki.",failed:"Failed to update word to Anki."}}},412:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));var a=n(269);const o={...a,default:"Default",ne_NP:"Nepali",ara:"Arabic","bs-Latn":"Bosnian",bul:"Bulgarian",cht:"Chinese (Traditional)",dan:"Danish",est:"Estonian",fin:"Finnish",fra:"French",iw:"Hebrew",jp:"Japanese",kor:"Korean",kr:"Korean",pt_BR:"Brazilian",rom:"Romanian",slo:"Slovenian",spa:"Spanish",swe:"Swedish",tl:"Tagalog (Filipino)",vie:"Vietnamese",zh:"Chinese (Simplified)","zh-CHS":"Chinese (Simplified)","zh-CHT":"Chinese (Traditional)"}},413:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={baidu_page_translate:"Baidu Page Translate",baidu_search:"Baidu Search",bing_dict:"Bing Dict",bing_search:"Bing Search",caiyuntrs:"Lingocloud Page Translate",cambridge:"Cambridge",copy_pdf_url:"Copy PDF URL to Clipboard",dictcn:"Dictcn",etymonline:"Etymonline",google_cn_page_translate:"Google cn Page Translate",google_page_translate:"Google Page Translate",google_search:"Google Search",google_translate:"Google Translate",google_cn_translate:"Google.cn Translate",guoyu:"國語辭典",history_title:"Search History",iciba:"iciba",liangan:"兩岸詞典",longman_business:"Longman Business",manual_title:"Manual",merriam_webster:"Merriam Webster",microsoft_page_translate:"Microsoft Page Translate",notebook_title:"New Word List",notification_youdao_err:"Youdao Page Translate 2.0 not responding.\nSaladict might not have permission to access this page.\nIgnore this message if Youdao panal is shown.",oxford:"Oxford",page_permission_err:'Saladict "{{name}}" does not have permission to access this page.',page_translations:"Page Translations",saladict:"Saladict",saladict_standalone:"Saladict Standalone Panel",sogou:"Sogou Translate",sogou_page_translate:"Sogou Page Translate",termonline:"Termonline",view_as_pdf:"Open in PDF Viewer",youdao:"Youdao",youdao_page_translate:"Youdao Page Translate",youglish:"YouGlish"}},414:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Saladict Options",previewPanel:"Preview Dict Panel",shortcuts:"Set Shortcuts",msg_update_error:"Unable to update",msg_updated:"Successfully updated",msg_first_time_notice:"First time notice",msg_err_permission:'Unable to request "{{permission}}" permission.',unsave_confirm:"Settings not saved. Sure to leave?",nativeSearch:"search selected text outside of browser",firefox_shortcuts:'Open about:addons, click the top right "gear" button, choose the last "Manage extension shortcuts".',tutorial:"Tutorial",page_selection:"Page Selection",nav:{General:"General",Notebook:"Notebook",Profiles:"Profiles",DictPanel:"Dict Panel",SearchModes:"Search Modes",Dictionaries:"Dictionaries",DictAuths:"Access Tokens",Popup:"Popup Panel",QuickSearch:"Quick Search",Pronunciation:"Pronunciation",PDF:"PDF",ContextMenus:"Context Menus",BlackWhiteList:"Black/White List",ImportExport:"Import/Export",Privacy:"Privacy",Permissions:"Permissions"},config:{active:"Enable Inline Translator",active_help:'"Quick Search" is still available even if Inline translation is turned off.',animation:"Animation transitions",animation_help:"Switch off animation transitions to reduce runtime cost.",runInBg:"Keep in Background",runInBg_help:"Keep the browser running in background after close so that global shortcuts still work.",darkMode:"Dark Mode",langCode:"App Language",editOnFav:"Open WordEditor when saving",editOnFav_help:"When turned off, new words will be added to notebook directly.",searchHistory:"Keep search history",searchHistory_help:"Your browsing history could be unintentionally revealed in Search history.",searchHistoryInco:"Also in incognito mode",ctxTrans:"Context Translate Engines",ctxTrans_help:"Context sentence will be translated before being added to notebook.",searchSuggests:"Search suggests",panelMaxHeightRatio:"Panel max height ratio",panelWidth:"Panel width",fontSize:"Font size for search reasults",bowlOffsetX:"Saladict icon Offset X",bowlOffsetY:"Saladict icon Offset Y",panelCSS:"Custom Dict Panel Styles",panelCSS_help:"Custom CSS. For Dict Panel use .dictPanel-Root as root. For dictionaries use .dictRoot or .d-{id} as root",noTypeField:"No selection on editable regions",noTypeField_help:"If selection making in editable regions is banned, the extension will identify Input Boxes, TextAreas and other common text editors like CodeMirror, ACE and Monaco.",touchMode:"Touch Mode",touchMode_help:"Enable touch related selection",language:"Selection Languages",language_help:"Search when selection contains words in the chosen languages.",language_extra:"Note that Japanese and Korean also include Chinese. French, Deutsch and Spanish also include English. If Chinese or English is cancelled while others are selected, only the exclusive parts of those languages are tested. E.g. kana characters in Japanese.",doubleClickDelay:"Double Click Delay",mode:"Normal Selection",panelMode:"Inside Dict Panel",pinMode:"When Panel is Pinned",qsPanelMode:"When Standalone Panel is Opened",bowlHover:"Icon Mouse Hover",bowlHover_help:"Hover on the bowl icon to trigger searching instead of clicking.",autopron:{cn:{dict:"Chinese Auto-Pronounce"},en:{dict:"English Auto-Pronounce",accent:"Accent Preference"},machine:{dict:"Machine Auto-Pronounce",src:"Machine Pronounce",src_help:"Machine Translation Dictionary needs to be added and enabled on the list below to enable auto-pronunciation.",src_search:"Read Source Text",src_trans:"Read Translation Text"}},pdfSniff:"Enable PDF Sniffer",pdfSniff_help:"If turned on, PDF links will be automatically captured (including local files, if file URL access is enabled on the extensions page).",pdfSniff_extra:"It is recommended to {search selected text outside of browser} with your own favorite local reader.",pdfStandalone:"Standalone Panel",pdfStandalone_help:"Open PDF viewer in standalone panel.",baWidth:"Width",baWidth_help:"Browser Action Panel wdith. Dict Panel width will be used if a negative value is chosen.",baHeight:"Height",baHeight_help:"Browser Action Panel height.",baOpen:"Browser Action",baOpen_help:"When clicking the browser action icon in toolbar (next to the address bar). Items are same as Context Menus, which can be added or edited on the Context Menus config page.",tripleCtrl:"Enable Ctrl Shortkey",tripleCtrl_help:"Press {⌘ Command}(macOS) or {Ctrl}(Others) three times (or with browser shortkey) to summon the dictionary panel. ",defaultPinned:"Pinned when shows up",qsLocation:"Location",qsFocus:"Focus when shows up",qsStandalone:"Standalone",qsStandalone_help:"Render dict panel in a standalone window. You can {search selected text outside of browser}.",qssaSidebar:"Sidebar Layout",qssaSidebar_help:"Rearrange windows to sidebar-like layout.",qssaHeight:"Window Height",qssaPageSel:"Selection Response",qssaPageSel_help:"Response to page selection.",qssaRectMemo:"Remember size and position",qssaRectMemo_help:"Remember standalone panel size and position on close.",updateCheck:"Check Update",updateCheck_help:"Check update automatically.",analytics:"Enable Google Analytics",analytics_help:"Share anonymous device browser version information. Saladict author will offer prioritized support to popular devices and browsers.",opt:{reset:"Reset Configs",reset_confirm:"Reset to default settings. Confirm?",upload_error:"Unable to save settings.",accent:{uk:"UK",us:"US"},sel_blackwhitelist:"Selection Black/White List",sel_blackwhitelist_help:"Saladict will not react to selection in blacklisted pages.",pdf_blackwhitelist_help:"Blacklisted PDF links will not jump to Saladict PDF Viewer.",contextMenus_description:"Each context menus item can also be customized. Youdao and Google page translate are deprecated in favor of the official extensions.",contextMenus_edit:"Edit Context Menus Items",contextMenus_url_rules:"URL with %s in place of query.",baOpen:{popup_panel:"Dict Panel",popup_fav:"Add to Notebook",popup_options:"Open Saladict Options",popup_standalone:"Open Saladict Standalone Panel"},openQsStandalone:"Standalone Panel Options",pdfStandalone:{default:"Never",always:"Always",manual:"Manual"}}},matchPattern:{description:"Specify URL as {URL Match Pattern} or {Regular Expression}. Empty fields will be removed.",url:"URL Match Pattern",url_error:"Incorrect URL Match Pattern.",regex:"Regular Expression",regex_error:"Incorrect Regular Expression."},searchMode:{icon:"Show Icon",icon_help:"A cute little icon pops up nearby the cursor.",direct:"Direct Search",direct_help:"Show dict panel directly.",double:"Double Click",double_help:"Show dict panel after double click selection.",holding:"Hold a key",holding_help:'After a selection is made, the selected key must be pressing when releasing mouse (Alt is "⌥ Option" on macOS. Meta key is "⌘ Command" on macOS and "⊞ Windows" for others.).',instant:"Instant Capture",instant_help:"Selection is automatically made near by the cursor.",instantDirect:"Direct",instantKey:"Key",instantKey_help:'If "Direct" is chosen it is also recommeded setting browser shortkey to toggle Instant Capture. Otherwise browser text selection could be unable to perform.',instantDelay:"Capture delay"},profiles:{opt:{add_name:"Add Profile Name",delete_confirm:'Delete Profile "{{name}}". Confirm?',edit_name:"Change Profile Name",help:"Each profile represents an independent set of settings. Some of the settings (with {*} prefix) change according to profile. One may switch profiles by hovering on the menu icon on Dict Panel, or focus on the icon then hit {↓}."}},profile:{mtaAutoUnfold:"Auto unfold multiline search box",waveform:"Waveform Control",waveform_help:"Display a button at the bottom of the Dict Panel for expanding the Waveform Control Panel which is only loaded after expansion.",stickyFold:"Sticky Folding",stickyFold_help:"Remembers manual dictionary folding/unfolding states when searching. Only last on the same page.",opt:{item_extra:'This option may change base on "Profile".',mtaAutoUnfold:{always:"Keep Unfolding",never:"Never Unfold",once:"Unfold Once",popup:"Only On Browser Action",hide:"Hide"},dict_selected:"Selected Dicts"}},dict:{add:"Add dicts",more_options:"More Options",selectionLang:"Selection Languages",selectionLang_help:"Show this dictionary when selection contains words in the chosen languages.",defaultUnfold:"Default Unfold",defaultUnfold_help:"If turned off, this dictionary won't start searching unless it's title bar is clicked.",selectionWC:"Selection Word Count",selectionWC_help:"Show this dictionary when selection word count meets the requirements. Set 999999 for unlimited words.",preferredHeight:"Default Panel Height",preferredHeight_help:"Maximum height on first appearance. Contents exceeding this height will be hidden. Set 999999 for unlimited height.",lang:{de:"De",en:"En",es:"Es",fr:"Fr",ja:"Ja",kor:"Kor",zhs:"Zhs",zht:"Zht"}},syncService:{description:"Sync settings.",start:"Syncing. Do not close this page until finished.",finished:"Syncing finished",success:"Syncing success",failed:"Syncing failed",close_confirm:"Settings not saved. Close?",delete_confirm:"Delete?",shanbay:{description:"Go to shanbay.com and log in first(must stay logged in). Note that it's a one-way sync(from Saladict to Shanbay). Only the new added words are synced. Words also need to be supported by Shanbay's database.",login:"Will open shanbay.com. Please log in then come back and enable again.",sync_all:"Upload all existing new words",sync_all_confirm:"Too many new words in notebook. Saladict will upload in batches. Note that uploading too many words in short period would cause account banning which is unrecoverable. Confirm?",sync_last:"Upload the last new word"},eudic:{description:"Before using Eudic to synchronize words, you must first create a default new word book on Eudic official website (my.eudic.net/home/index) (generally, it will be automatically generated and cannot be deleted after the first manual import). Pay attention not to synchronize frequently in a short time, which may cause temporary lock.",token:"Authorization information",getToken:"Get authorization",verify:"Check authorization information",verified:"Eudic authorization information checked successfully",enable_help:"After opening, each new word added will be automatically synchronized to the Eudic default word book (salad to Eudic word book) in one direction, and only the new word itself will be synchronized (deleted out of synchronization)",token_help:"Please confirm to set valid personal authorization information, otherwise the synchronization will fail. You can click the button at the bottom to check.",sync_all:"Synchronize all new words",sync_help:"Synchronize all existing new words in salad word book to the Eudic default word book (turn on the synchronization switch above at the same time and click save)",sync_all_confirm:"Note that frequent synchronization in a short time may lead to lock temporarily. Are you sure to continue?"},webdav:{description:"Extension settings (including this) are synced via browser. New words notebook can be synced via WebDAV through settings here.",jianguo:"See Jianguoyun for example",checking:"Connecting...",exist_confirm:"Saladict directory exists on server. Download it and merge with local data?",upload_confirm:"Upload local data to Server right away?",verify:"Verify server",verified:"Successfully verified WebDAV server.",duration:"Duration",duration_help:"Data is guaranteed to be updated before upload. If you do not need real-time syncing across browsers, set a longer polling cycle to reduce CPU and memory footprint.",passwd:"Password",url:"Server Address",user:"User Account"},ankiconnect:{description:"Please make sure Anki Connect plugin is installed and Anki is running. You can also update word to Anki in Word Editor.",checking:"Checking...",deck_confirm:'Deck "{{deck}}" does not exist in Anki. Generate a new deck?',deck_error:'Unable to create deck "{{deck}}".',notetype_confirm:'Note type "{{noteType}}" does not exist in Anki. Generate a new note type.',notetype_error:'Unable to create note type "{{noteType}}".',upload_confirm:"Sync local new words to Anki right away? Duplicated words (with same timestamp) will be skipped.",add_yourself:"Please add it youself in Anki.",verify:"Verify Anki Connect",verified:"Successfully verified Anki Connect",enable_help:'When enabled, each time a new word is added to Notebook it will also be ported to Anki automatically. Words that exist in Anki(with same "Date") can be force-updated in Word Editor.',host:"Address",port:"port",key:"Key",key_help:"Optional key can be added in Anki Connect config for identification.",deckName:"Deck",deckName_help:'If deck does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below.',noteType:"Note Type",noteType_help:'Anki note type includes a set of fields and card type. If note type does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below. DO NOT change field names when editing or adding card templates in Anki',tags:"Tags",tags_help:"Anki notes can include tags separated with commas.",escapeHTML:"Escape HTML",escapeHTML_help:"Escape HTML entities. Turn off if using HTML for manual layout.",syncServer:"Sync Server",syncServer_help:"Sync to server(e.g. AnkiWeb) after new words being added to local Anki."}},titlebarOffset:{title:"Calibrate Titlebar Height",help:"Different systems or browser settings may result in different titlebar height. Saladict will attempt to calibrate automatically. If you may adjust manually.",main:"Normal",main_help:"Normal windows may not have titlebar.",panel:"Panel",panel_help:"Saladict standalone quick search panel is a type of panel window.",calibrate:"Auto-calibrate",calibrateSuccess:"Calibration success",calibrateError:"Calibration failed"},headInfo:{acknowledgement:{title:"Acknowledgement",yipanhuasheng:"for adding Merriam Webster's Dict, American Heritage Dict, Oxford Learner's Dict and Eudic Notebook sync service; and updating Urban Dict and Naver Dict",naver:"for helping add Naver dict",shanbay:"for adding Shanbay dict",trans_tw:"for traditional Chinese translation",weblio:"for helping add Weblio dict"},contact_author:"Contact Author",donate:"Donate",instructions:"Instructions",report_issue:"Report Issue"},form:{url_error:"Incorrect URL.",number_error:"Incorrect number."},preload:{title:"Preload",auto:"Auto search",auto_help:"Search automatically when panel shows up.",clipboard:"Clipboard",help:"Preload content in search box when panel shows up.",selection:"Page Selection"},locations:{CENTER:"Center",TOP:"Top",RIGHT:"Right",BOTTOM:"Bottom",LEFT:"Left",TOP_LEFT:"Top Left",TOP_RIGHT:"Top Right",BOTTOM_LEFT:"Bottom Left",BOTTOM_RIGHT:"Bottom Right"},import_export_help:"Configs are auto-synced via browser. Here you can also import/export manually. Backups are exported as plain text files. Please encrypt it yourself if needed.",import:{title:"Import Configs",error:{title:"Import Error",parse:"Unable to parse backup. Incorrect format.",load:"Unable to load backup. Browser cannot obtain the local file.",empty:"No valid data found in the backup."}},export:{title:"Export Configs",error:{title:"Export Error",empty:"No config to export.",parse:"Unable to parse configs."}},dictAuth:{description:"As the number of Saladict users grows, if you make heavily use of machine translation services it is recommended to register an account for better stability and accuracy. The account data will only be stored in the browser.",dictHelp:"See the official website of {dict}.",manage:"Manage Translator Accounts"},third_party_privacy:"Third Party Privacy",third_party_privacy_help:'Saladict will not collect further information but search text and releated cookies will be sent to third party dictionary services(just like how you would search on their websites). If you do not want third party services to collect you data, remove the corresponding dictionaries at "Dictionaries" settings.',third_party_privacy_extra:"Cannot be turned off as it is the core functionality of Saladict.",permissions:{success:"Permission requested",cancel_success:"Permission cancelled",failed:"Permission request failed",cancelled:"Permission request cancelled by user",missing:'Missing permission "{{permission}}". Either grant it or disable related functions.',clipboardRead:"Read Clipboard",clipboardRead_help:"This permission is needed when clipboard preload is enable for popup panel or quick search panel.",clipboardWrite:"Write Clipboard",clipboardWrite_help:"This permission is needed when using titlebar menus to copy source/target text from machine translator."},unsupportedFeatures:{ff:'Feature "{{feature}}" is not supported in Firefox.'}}},415:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Saladict Browser Action Panel",app_active_title:"Enable Inline Translator",app_temp_active_title:"Temporary disabled to the page",instant_capture_pinned:" (pinned) ",instant_capture_title:"Enable Instant Capture",notebook_added:"Added",notebook_empty:"No selection found on the current page",notebook_error:"Cannot add selected text to Notebook",page_no_response:"Page no response",qrcode_title:"Qrcode of the page"}},416:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:{history:"Saladict Search History",notebook:"Saladict Notebook"},localonly:"local only",column:{add:"Add",date:"Date",edit:"Edit",note:"Note",source:"Source",trans:"Translation",word:"Word"},delete:{title:"Delete",all:"Delete all",confirm:". Confirm?",page:"Delete page",selected:"Delete selected"},export:{title:"Export",all:"Export all",description:"Describe the shape of each record: ",explain:"How to export to ANKI and other tools",gencontent:"Generated Content",linebreak:{default:"Keep default linebreaks",n:"replace linebreaks with \\n",br:"replace linebreaks with <br>",p:"replace linebreaks with <p>",space:"replace linebreaks with space"},page:"Export page",placeholder:"Placeholder",htmlescape:{title:"Escape HTML characters in notes",text:"Escape HTML"},selected:"Export selected"},filterWord:{chs:"Chinese",eng:"English",word:"Word",phrase:"Phrase"},wordCount:{selected:"{{count}} item selected",selected_plural:"{{count}} item selected",total:"{{count}} item total",total_plural:"{{count}} item total"}}},417:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={app:{off:"Saladict desactivado. (El panel de búsqueda rápida sigue disponible)",tempOff:"Saladict desactivado en la pestaña actual. (El panel de búsqueda rápida sigue disponible)",unsupported:"El panel Saladict incrustado no es compatible con la pestaña actual. Utilice el panel Saladict independiente en su lugar."}}},418:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={add:"Añadir",delete:"Eliminar",save:"Guardar",cancel:"CAncelar",edit:"Editar",sort:"Ordenar",rename:"Renombrar",confirm:"Confirmar",changes_confirm:"Cambios no guardados. ¿Cerrar de todas formas?",delete_confirm:"¿Eliminar completamente el elemento?",max:"Max",min:"Min",name:"Nombre",none:"Ninguno",enable:"Activar",enabled:"Activado",disabled:"Desactivado",blacklist:"Lista negra",whitelist:"Lista blanca",import:"Importar",export:"Exportar",lang:{chinese:"Chino",chs:"Chino",deutsch:"Alemán",eng:"Inglés",english:"Inglés",french:"Francés",japanese:"Japonés",korean:"Coreano",matchAll:"Coincidir con todos los caracteres",minor:"Menor",others:"Otros",spanish:"Español"},unit:{mins:"minutes",ms:"ms",s:"s",word:"words"},note:{word:"Word",trans:"Translation",note:"Note",context:"Context",contextCloze:"Context Cloze",date:"Date",srcTitle:"Source Title",srcLink:"Source Link",srcFavicon:"Source Favicon"},profile:{daily:"Daily Mode",sentence:"Sentence Mode",default:"Default Mode",scholar:"Scholar Mode",translation:"Translation Mode",nihongo:"Japanese Mode"}}},419:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={chooseLang:"elegir otro idioma",standalone:"Panel de Saladict independiente",fetchLangList:"Obtener la lista completa de idiomas",transContext:"Retraducir",neverShow:"Dejar de mostrar",fromSaladict:"Desde el panel de Saladict",tip:{historyBack:"Historial de búsqueda anterior",historyNext:"Siguiente historial de búsqueda",searchText:"Buscar texto",openOptions:"Abrir opciones",addToNotebook:"Agregar al cuaderno. Haga clic derecho para abrir el cuaderno",openNotebook:"Abrir cuaderno",openHistory:"Abrir historial",shareImg:"Compartir como imagen",pinPanel:"Fijar el panel",closePanel:"Cerrar el panel",sidebar:"Cambiar a modo barra lateral. Haga clic derecho para el lado derecho.",focusPanel:"El panel gana foco al buscar",unfocusPanel:"El panel no gana foco al buscar"},wordEditor:{title:"Agregar al cuaderno",wordCardsTitle:"Otros resultados del cuaderno",deleteConfirm:"¿Eliminar del cuaderno?",closeConfirm:"Los cambios no se guardarán. ¿Estás seguro de cerrar?",chooseCtxTitle:"Elija los resultados traducidos",ctxHelp:"Mantenga el formato [:: xxx ::] y --------------- si desea que Saladict maneje la selección de traducción y genere una tabla de Anki."},machineTrans:{switch:"Cambiar idioma",sl:"Idioma de origen",tl:"Idioma de destino",auto:"Detectar idioma",stext:"Original",showSl:"Mostrar fuente",copySrc:"Copiar fuente",copyTrans:"Copiar traducción",login:"Proporcione {access token}.",dictAccount:"access token"},manualVerification:{title:"Se requiere verificación manual",message:"Abra la página original del diccionario y complete la verificación humana, luego vuelva a buscar en Saladict.",openPage:"Abrir página del diccionario"},updateAnki:{title:"Actualizar a Anki",success:"Se actualizó correctamente la palabra a Anki.",failed:"No se pudo actualizar la palabra a Anki."}}},42:function(e,t,n){"use strict";function a(e){const t=Array.isArray(e)?e:Array.from(e);return Promise.all(t.map(e=>Promise.resolve(e).catch(()=>null)))}function o(e){const t=Array.isArray(e)?e:Array.from(e);let n=0;return new Promise((e,a)=>t.forEach(o=>{Promise.resolve(o).then(e).catch(()=>{++n===t.length&&a(new Error("All rejected"))})}))}function r(...e){return new Promise(t=>{setTimeout(()=>e.length>1?t(e[1]):t(),Number(e[0])||0)})}function i(e,t=0){return Promise.race([e,r(t).then(()=>Promise.reject(new Error(`timeout ${t}ms`)))])}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i}))},420:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));var a=n(269);const o={...a,default:"Predeterminado",ne_NP:"Nepalí",ara:"Arabe","bs-Latn":"Bosnio",bul:"Búlgaro",cht:"Chino (Tradicional)",dan:"Danés",est:"Estonio",fin:"Finlandés",fra:"Francés",iw:"Hebreo",jp:"Japonés",kor:"Coreano",kr:"Coreano",pt_BR:"Brasileño",rom:"Rumano",slo:"Esloveno",spa:"Español",swe:"Sueco",tl:"Tagalo (Filipino)",vie:"Vietnamita",zh:"Chino (Simplificado)","zh-CHS":"Chino (Simplificado)","zh-CHT":"Chino (Tradicional)"}},421:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={baidu_page_translate:"Traductor web de baidu",baidu_search:"Buscar en baidu",bing_dict:"Bing diccionario",bing_search:"Buscar en bing",caiyuntrs:"Traductor de Lingocloud",cambridge:"Cambridge",copy_pdf_url:"Copiar URL de PDF al portapapeles",dictcn:"Dictcn",etymonline:"Etymonline",google_cn_page_translate:"Traductor web de Google.cn",google_page_translate:"Traductor de Google",google_search:"Buscar en Google",google_translate:"Traductor de Google",google_cn_translate:"Traductor de Google.cn",guoyu:"國語辭典",history_title:"Historial de búsqueda",iciba:"iciba",liangan:"兩岸詞典",longman_business:"Longman Business",manual_title:"Manual",merriam_webster:"Merriam Webster",microsoft_page_translate:"Traductor web de Microsoft",notebook_title:"Lista de palabras nuevas",notification_youdao_err:"Youdao Page Translate 2.0 no responde.\nSaladict puede que no tenga permiso para acceder a esta página.\nIgnora este mensaje si el panel de Youdao se muestra.",oxford:"Oxford",page_permission_err:'Saladict "{{name}}" no tiene permiso para acceder a esta página.',page_translations:"Traducciones de página",saladict:"Saladict",saladict_standalone:"Panel Saladict independiente",sogou:"Traductor de Sogou",sogou_page_translate:"Traductor web de Sogou",termonline:"Termonline",view_as_pdf:"Abrir en el visor de PDF",youdao:"Youdao",youdao_page_translate:"Traductor web de Youdao",youglish:"YouGlish"}},422:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Saladict Opciones",previewPanel:"Panel de vista previa",shortcuts:"Atajos de teclado",msg_update_error:"Error al actualizar",msg_updated:"Actualizado",msg_first_time_notice:"¡Bienvenido a Saladict!",msg_err_permission:'No se ha podido solicitar el permiso "{{permission}}".',unsave_confirm:"Hay cambios sin guardar. ¿Estás seguro de que quieres salir?",nativeSearch:"Buscar con el motor de búsqueda nativo",firefox_shortcuts:'Abra about:addons, haga clic en el botón superior derecho "engranaje", elija la última "Administrar accesos directos de extensión".',tutorial:"Tutorial",page_selection:"Selección de página",nav:{General:"General",Notebook:"Bloc de notas",Profiles:"Perfiles",DictPanel:"Panel de diccionario",SearchModes:"Modos de búsqueda",Dictionaries:"Diccionarios",DictAuths:"Access Tokens",Popup:"Popup Panel",QuickSearch:"Busqueda rápida",Pronunciation:"Pronunciación",PDF:"PDF",ContextMenus:"Menús de contexto",BlackWhiteList:"Lista negra/Blanca",ImportExport:"Importar/Exportar",Privacy:"Privacidad",Permissions:"Permisos"},config:{active:"Activar el traductor en línea",active_help:"Si está desactivado, el traductor en línea no se mostrará en el panel de búsqueda rápida.",animation:"Transiciones de animación",animation_help:"Desactive las transiciones de animación para mejorar el rendimiento.",runInBg:"Ejecutar en segundo plano",runInBg_help:"Si está desactivado, Saladict se cerrará cuando se cierre la última ventana.",darkMode:" Modo oscuro",langCode:"Idioma de Saladict",editOnFav:"Abrir WordEditor al guardar",editOnFav_help:"Si está desactivado, WordEditor se abrirá cuando se agregue una palabra nueva.",searchHistory:"Historial de búsqueda",searchHistory_help:"Si está desactivado, el historial de búsqueda no se mostrará en el panel de búsqueda rápida.",searchHistoryInco:"Incluir búsqueda de incógnito",ctxTrans:"Traducir contexto",ctxTrans_help:"Si está desactivado, el contexto no se mostrará en el panel de búsqueda rápida.",searchSuggests:"Sugerencias de búsqueda",panelMaxHeightRatio:"Altura máxima del panel",panelWidth:"Ancho del panel",fontSize:"Tamaño de fuente",bowlOffsetX:"Desplazamiento X del icono de Saladict",bowlOffsetY:"Desplazamiento Y del icono de Saladict",panelCSS:"CSS personalizado",panelCSS_help:"CSS personalizado. Para el panel de dictado, utilice .dictPanel-Root como raíz. Para diccionarios utilice .dictRoot o .d-{id} como raíz.",noTypeField:"No hay selección en las regiones editables",noTypeField_help:"Si la selección en regiones editables está prohibida, la extensión identificará los cuadros de entrada, las áreas de texto y otros editores de texto comunes como CodeMirror, ACE y Monaco.",touchMode:"Modo táctil",touchMode_help:"Activar la selección táctil",language:"Selección de idiomas",language_help:"Buscar cuando la selección contiene palabras en los idiomas elegidos.",language_extra:"Tenga en cuenta que el japonés y el coreano también incluyen el chino. El francés, el alemán y el español también incluyen el inglés. Si se cancela el chino o el inglés mientras se seleccionan otros, sólo se comprueban las partes exclusivas de esos idiomas. Por ejemplo, los caracteres kana en japonés.",doubleClickDelay:"Retraso de doble clic",mode:"Seleccion normal",panelMode:"Interior del panel Dict",pinMode:"Cuando el panel está fijado",qsPanelMode:"Cuando se abre el panel independiente",bowlHover:"Icono al pasar el cursor por encima",bowlHover_help:"Pase el ratón sobre el icono del cuenco para activar la búsqueda en lugar de hacer clic.",autopron:{cn:{dict:"Autopronunciación en chino"},en:{dict:"Autopronunciación en inglés",accent:"Preferencia de acento"},machine:{dict:"Autopronunciación de la máquina",src:"Pronunciar a máquina",src_help:"El diccionario de traducción automática debe añadirse y activarse en la siguiente lista para activar la pronunciación automática.",src_search:"Leer texto original",src_trans:"Leer el texto de la traducción"}},pdfSniff:"Activar PDF Sniffer",pdfSniff_help:"Si está activada, los enlaces PDF se capturarán automáticamente.",pdfSniff_extra:"Se recomienda {search selected text outside of browser} con su propio lector local favorito.",pdfStandalone:"Panel independiente",pdfStandalone_help:"Abrir visor de PDF en panel independiente.",baWidth:"Anchura",baWidth_help:"Navegador Acción Panel con. Si se elige un valor negativo, se utilizará la anchura del panel.",baHeight:"Altura",baHeight_help:"Navegador Acción Panel altura.",baOpen:"Acción del navegador",baOpen_help:"Al pulsar el icono de acción del navegador en la barra de herramientas (junto a la barra de direcciones). Los elementos son los mismos que los menús contextuales, que pueden añadirse o editarse en la página de configuración de menús contextuales.",tripleCtrl:"Activar tecla corta Ctrl",tripleCtrl_help:"Pulse {⌘ Command}(macOS) o {Ctrl}(Otros) tres veces (o con la tecla rápida del navegador) para acceder al panel del diccionario.",defaultPinned:"Fijado cuando aparece",qsLocation:"Ubicación",qsFocus:"Concéntrese cuando aparezca",qsStandalone:"Independiente",qsStandalone_help:"Renderizar el panel de dictado en una ventana independiente. Puede {buscar texto seleccionado fuera del navegador}.",qssaSidebar:"Barra lateral",qssaSidebar_help:"Renderizar el panel de dictado en la barra lateral.",qssaHeight:"Ventana altura",qssaPageSel:"Selección de página",qssaPageSel_help:"Seleccionar automáticamente el texto de la página.",qssaRectMemo:"Recordar tamaño y posición",qssaRectMemo_help:"Recuerde el tamaño y la posición del panel independiente al cerrar.",updateCheck:"Comprobar actualizaciones",updateCheck_help:"Compruebe si hay actualizaciones automáticamente.",analytics:"Activar Google Analytics",analytics_help:"Compartir información anónima sobre la versión del navegador del dispositivo. El autor de Saladict ofrecerá soporte prioritario a los dispositivos y navegadores más populares.",opt:{reset:"Restablecer configuración",reset_confirm:"¿Estás seguro de que quieres restablecer la configuración?",upload_error:"Error al cargar la configuración",accent:{uk:"UK",us:"US"},sel_blackwhitelist:"Lista negra y blanca de selección",sel_blackwhitelist_help:"Saladict no reaccionará a la selección en páginas de la lista negra.",pdf_blackwhitelist_help:"Los enlaces PDF de la lista negra no saltarán a Saladict PDF Viewer.",contextMenus_description:"Cada elemento del menú contextual también se puede personalizar. Youdao y Google Traductor están obsoletos en favor de las extensiones oficiales.",contextMenus_edit:"Editar elementos de menús contextuales",contextMenus_url_rules:"URL con %s en lugar de query.",baOpen:{popup_panel:"Panel de diccionario",popup_fav:"Añadir al bloc de notas",popup_options:"Abrir opciones de Saladict",popup_standalone:"Panel independiente Open Saladict"},openQsStandalone:"Opciones de panel independiente",pdfStandalone:{default:"Nunca",always:"Siempre",manual:"Manual"}}},matchPattern:{description:"Especifique URL como {URL Patrón de Coincidencia} o {Expresión Regular}. Se eliminarán los campos vacíos.",url:"URL Patrón de Coincidencia",url_error:"Patrón de coincidencia de URL incorrecto.",regex:"Expresión regular",regex_error:"Expresión regular incorrecta."},searchMode:{icon:"Mostrar icono",icon_help:"Aparecerá un bonito icono cerca del cursor.",direct:"Busqueda directa",direct_help:"Mostrar directamente el panel dict.",double:"Doble clic",double_help:"Mostrar panel de dict después de la selección de doble clic.",holding:"Mantener pulsado",holding_help:'Después de realizar una selección, la tecla seleccionada debe estar pulsada al soltar el ratón (Alt es "⌥ Opción" en macOS. Meta es "⌘ Comando" en macOS y "⊞ Windows" para los demás).',instant:"Captura instantánea",instant_help:"La selección se realiza automáticamente cerca del cursor.",instantDirect:"Directo",instantKey:"Tecla",instantKey_help:'Si se elige "Directo", también se recomienda configurar la tecla de acceso directo del navegador para activar la Captura instantánea. De lo contrario, la selección de texto en el navegador podría ser imposible.',instantDelay:"Retraso de captura"},profiles:{opt:{add_name:"Añadir nombre de perfil",delete_confirm:'Eliminar Perfil "{{name}}". ¿Confirmar?',edit_name:"Cambiar el nombre del perfil",help:"Cada perfil representa un conjunto independiente de ajustes. Algunos de los ajustes (con el prefijo {*}) cambian según el perfil. Para cambiar de perfil, sitúe el cursor sobre el icono de menú del panel de dictado, o bien sitúe el cursor sobre el icono y pulse {↓}."}},profile:{mtaAutoUnfold:"Despliegue automático del cuadro de búsqueda multilínea",waveform:"Forma de onda",waveform_help:"Muestra un botón en la parte inferior del panel de dictado para expandir el panel de control de forma de onda que sólo se carga después de la expansión.",stickyFold:"Plegado adhesivo",stickyFold_help:"Recuerda los estados de plegado/desplegado del diccionario manual al buscar. Sólo dura en la misma página.",opt:{item_extra:'Esta opción puede cambiar en función del "Perfil".',mtaAutoUnfold:{always:"Siempre Desplegar",never:"Nunca Desplegar",once:"Desplegar una vez",popup:"Sólo en la acción del navegador",hide:"Ocultar"},dict_selected:"Seleccionar diccionarios"}},dict:{add:"Añadir diccionarios",more_options:"Mas opciones",selectionLang:"Seleccionar idiomas",selectionLang_help:"Muestra este diccionario cuando la selección contiene palabras en los idiomas elegidos.",defaultUnfold:"Despliegue por defecto",defaultUnfold_help:"Si está desactivado, este diccionario no iniciará la búsqueda a menos que se haga clic en su barra de título.",selectionWC:"Selección Número de palabras",selectionWC_help:"Muestre este diccionario cuando el recuento de palabras de la selección cumpla los requisitos. Establezca 999999 para un número ilimitado de palabras.",preferredHeight:"Altura predeterminada del panel",preferredHeight_help:"Altura máxima en la primera aparición. Los contenidos que superen esta altura se ocultarán. Establezca 999999 para una altura ilimitada.",lang:{de:"De",en:"En",es:"Es",fr:"Fr",ja:"Ja",kor:"Kor",zhs:"Zhs",zht:"Zht"}},syncService:{description:"Ajustes de sincronización.",start:"Sincronizando. No cierre esta página hasta que haya terminado.",finished:"Sincronización finalizada",success:"Sincronización correcta",failed:"Sincronización fallida",close_confirm:"No se ha guardado la configuración. ¿Cerrar?",delete_confirm:"¿Eliminar?",shanbay:{description:" Vaya a shanbay.com y conéctese primero(debe permanecer conectado). Tenga en cuenta que se trata de una sincronización unidireccional (de Saladict a Shanbay). Sólo se sincronizan las nuevas palabras añadidas. Las palabras también deben ser compatibles con la base de datos de Shanbay.",login:"Se abrirá shanbay.com. Por favor, inicie sesión y luego volver y habilitar de nuevo.",sync_all:"Cargar todas las palabras nuevas existentes",sync_all_confirm:"Demasiadas palabras nuevas en el cuaderno. Saladict cargará por lotes. Ten en cuenta que si subes demasiadas palabras en un periodo corto de tiempo, tu cuenta será bloqueada y no se podrá recuperar. ¿Confirmar?",sync_last:"Cargar la última palabra nueva"},eudic:{description:"Antes de utilizar Eudic para sincronizar palabras, primero debe crear un nuevo libro de palabras predeterminado en el sitio web oficial de Eudic (my.eudic.net/home/index) (por lo general, se generará automáticamente y no se podrá eliminar después de la primera importación manual). Preste atención a no sincronizar con frecuencia en poco tiempo, ya que podría provocar un bloqueo temporal.",token:"Información sobre la autorización",getToken:"Obtener autorización",verify:"Comprobar la información de autorización",verified:"Información de autorización Eudic comprobada correctamente",enable_help:"Tras la apertura, cada nueva palabra añadida se sincronizará automáticamente con el libro de palabras predeterminado de Eudic (ensalada al libro de palabras de Eudic) en una dirección, y sólo se sincronizará la nueva palabra en sí (eliminada fuera de sincronización)",token_help:"Por favor, confirme que la información de autorización personal es válida, de lo contrario la sincronización fallará. Puede hacer clic en el botón de la parte inferior para comprobarlo.",sync_all:"Sincronizar todas las palabras nuevas",sync_help:"Sincronice todas las palabras nuevas existentes en el libro de palabras de la ensalada con el libro de palabras predeterminado de Eudic (active el interruptor de sincronización anterior al mismo tiempo y haga clic en guardar).",sync_all_confirm:"Tenga en cuenta que una sincronización frecuente en poco tiempo puede provocar un bloqueo temporal. ¿Está seguro de continuar?"},webdav:{description:"La configuración de las extensiones (incluida esta) se sincroniza a través del navegador. El cuaderno de nuevas palabras se puede sincronizar mediante WebDAV a través de la configuración aquí.",jianguo:"Véase Jianguoyun, por ejemplo",checking:"Conectando...",exist_confirm:"El directorio Saladict existe en el servidor. ¿Descargarlo y fusionarlo con los datos locales?",upload_confirm:"¿Subir los datos locales al servidor de inmediato?",verify:"Verificar servidor",verified:"Verificado con éxito el servidor WebDAV.",duration:"Duracion",duration_help:"Se garantiza que los datos se actualizan antes de cargarlos. Si no necesita sincronización en tiempo real entre navegadores, establezca un ciclo de sondeo más largo para reducir el consumo de CPU y memoria.",passwd:"Contraseña",url:"Dirección del servidor",user:"Usuario"},ankiconnect:{description:"Por favor, asegúrate de que el plugin Anki Connect está instalado y Anki se está ejecutando. También puede actualizar la palabra a Anki en el editor de Word.",checking:"Verificando...",deck_confirm:'El tablero "{{deck}}" no existe en Anki. ¿Generar un nuevo tablero?',deck_error:'No se puede crear el tablero "{{deck}}".',notetype_confirm:'El tipo de nota "{{noteType}}" no existe en Anki. Genera un nuevo tipo de nota.',notetype_error:'No se puede crear el tipo de nota"{{noteType}}".',upload_confirm:"¿Sincronizar nuevas palabras locales a Anki inmediatamente? Las palabras duplicadas (con la misma marca de tiempo) se omitirán.",add_yourself:"Por favor, añádelo tú mismo en Anki.",verify:"Verificar Anki Connect",verified:"Anki Connect verificado correctamente.",enable_help:'Cuando está activada, cada vez que se añade una nueva palabra al Cuaderno, también se transfiere automáticamente a Anki. Las palabras que existen en Anki (con la misma "Fecha") pueden ser forzadas a actualizarse en el Editor de Palabras.',host:"Dirección",port:"Puerto",key:"Clave",key_help:"Se puede añadir una clave opcional en la configuración de Anki Connect para la identificación.",deckName:"Tablero",deckName_help:'Si el tablero no existe, puedes generar uno automáticamente haciendo clic en "Verificar Anki Connect" más abajo.',noteType:"Tipo de nota",noteType_help:'El tipo de nota Anki incluye un conjunto de campos y un tipo de tarjeta. Si el tipo de nota no existe puedes generar uno por defecto automáticamente haciendo clic en "Verificar Anki Connect" más abajo. NO cambie los nombres de los campos cuando edite o añada plantillas de tarjetas en Anki',tags:"Etiquetas",tags_help:"Anki notes can include tags separated with commas.",escapeHTML:"Escapar HTML",escapeHTML_help:"Escapar entidades HTML. Desactivar si se utiliza HTML para la maquetación manual.",syncServer:"Sincronizar con el servidor",syncServer_help:"Sincronización con el servidor (p.e. AnkiWeb) después de añadir nuevas palabras al Anki local."}},titlebarOffset:{title:"Calibración de la altura de la barra de título",help:"La altura de la barra de título puede variar según el sistema o la configuración del navegador. Saladict intentará calibrarla automáticamente. Si puede ajustar manualmente.",main:"Normal",main_help:"Las ventanas normales pueden no tener barra de título.",panel:"Panel",panel_help:"El panel de búsqueda rápida independiente de Saladict es un tipo de ventana de panel.",calibrate:"Auto-calibrate",calibrateSuccess:"Calibración correcta",calibrateError:"Error de calibración"},headInfo:{acknowledgement:{title:"Reconocimiento",yipanhuasheng:"por añadir los diccionarios Merriam Webster's Dict, American Heritage Dict, Oxford Learner's Dict y el servicio de sincronización Eudic Notebook; y por actualizar los diccionarios Urban Dict y Naver Dict.",naver:"por ayudar a añadir Naver dict",shanbay:"por añadir Shanbay dict",trans_tw:"por la traducción al chino tradicional",weblio:"por ayudar a añadir Weblio dict"},contact_author:"Contactar al autor",donate:"Donar",instructions:"Instrucciones",report_issue:"Informar de un problema"},form:{url_error:"URL incorrecta.",number_error:"Numero incorrecto."},preload:{title:"Precarga",auto:"Búsqueda automática",auto_help:"Búsqueda automática cuando aparece el panel.",clipboard:"Clipboard",help:"Precarga de contenido en el cuadro de búsqueda cuando aparece el panel.",selection:"Selección de página"},locations:{CENTER:"Centrado",TOP:"Arriba",RIGHT:"Derecha",BOTTOM:"Abajo",LEFT:"Izquierda",TOP_LEFT:"Arriba a la izquierda",TOP_RIGHT:"Arriba a la derecha",BOTTOM_LEFT:"Abajo a la izquierda",BOTTOM_RIGHT:"Abajo a la derecha"},import_export_help:"Las configuraciones se sincronizan automáticamente a través del navegador. Aquí también puede importar/exportar manualmente. Las copias de seguridad se exportan como archivos de texto sin formato. Por favor, codifíquelos usted mismo si es necesario.",import:{title:"Importar Configuraciones",error:{title:"Error de importación",parse:"No se ha podido analizar la copia de seguridad. Formato incorrecto.",load:"No se puede cargar la copia de seguridad. El navegador no puede obtener el archivo local.",empty:"No se han encontrado datos válidos en la copia de seguridad."}},export:{title:"Exportar Configuraciones",error:{title:"Error de exportación",empty:"No hay configuración para exportar.",parse:"No se pueden analizar las configuraciones."}},dictAuth:{description:"A medida que crece el número de usuarios de Saladict, si hace un uso intensivo de los servicios de traducción automática se recomienda registrar una cuenta para mejorar la estabilidad y la precisión. Los datos de la cuenta sólo se almacenarán en el navegador.",dictHelp:"Consulte el sitio web oficial de {dict}.",manage:"Gestionar cuentas de traductor"},third_party_privacy:"Privacidad de terceros",third_party_privacy_help:'Saladict no recopilará más información, pero el texto de la búsqueda y las cookies correspondientes se enviarán a servicios de diccionarios de terceros (igual que si buscara en sus sitios web). Si no desea que los servicios de terceros recopilen sus datos, elimine los diccionarios correspondientes en la configuración de "Diccionarios".',third_party_privacy_extra:"No se puede desactivar, ya que es la funcionalidad principal de Saladict.",permissions:{success:"Permiso solicitado",cancel_success:"Permiso cancelado",failed:"Solitud de permiso fallida",cancelled:"Solicitud de permiso cancelada por el usuario",missing:'Falta el permiso "{{permission}}". Concederlo o desactivar las funciones relacionadas.',clipboardRead:"Leer portapapeles",clipboardRead_help:"Este permiso es necesario cuando la precarga del portapapeles está activada para el panel emergente o el panel de búsqueda rápida.",clipboardWrite:"Escribir en el portapapeles",clipboardWrite_help:"Este permiso es necesario cuando se utilizan los menús de la barra de títulos para copiar texto de origen/destino del traductor automático."},unsupportedFeatures:{ff:'La característica "{{feature}}" no es compatible con Firefox.'}}},423:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Panel de acciones del navegador de Saladict",app_active_title:"Activar el traductor en línea",app_temp_active_title:"Desactivación temporal de la página",instant_capture_pinned:" (fijado) ",instant_capture_title:"Activar captura instantánea",notebook_added:"Añadido",notebook_empty:"No se ha encontrado ninguna selección en la página actual",notebook_error:"No se puede añadir el texto seleccionado al bloc de notas",page_no_response:"La pagina no responde",qrcode_title:"Qrcode de la página"}},424:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:{history:"Historial de búsqueda de Saladict",notebook:"Bloc de notas Saladict"},localonly:"Solo local",column:{add:"Añadir",date:"Fecha",edit:"Editar",note:"Nota",source:"Fuente",trans:"Traducción",word:"Palabra"},delete:{title:"Eliminar",all:"Eliminar todo",confirm:". ¿Desea eliminarlo?",page:"Eliminar página",selected:"Eliminar seleccionado"},export:{title:"Exportar",all:"Exportar todo",description:"Exportar a un archivo de texto",explain:"Cómo exportar a ANKI y otras herramientas",gencontent:"Generar contenido",linebreak:{default:"Mantener los saltos de línea por defecto",n:"sustituir los saltos de línea por \\n",br:"sustituir los saltos de línea por <br>",p:"sustituir los saltos de línea por <p>",space:"sustituir los saltos de línea por espacios"},page:"Exportar página",placeholder:"Marcador",htmlescape:{title:"Caracteres HTML de escape en las notas",text:"Escape HTML"},selected:"Exportar seleccionado"},filterWord:{chs:"Chino",eng:"Inglés",word:"Palabra",phrase:"Frase"},wordCount:{selected:"{{count}} elemento seleccionado",selected_plural:"{{count}} elemento seleccionado",total:"{{count}} elemento total",total_plural:"{{count}} elemento total"}}},425:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={app:{off:"सलाडिक्ट असक्षम। (द्रुत खोज प्यानल अझै उपलब्ध छ)",tempOff:"हालको ट्याबमा सलाडिक्ट असक्षम पारियो। (द्रुत खोज प्यानल अझै उपलब्ध छ)",unsupported:"हालको ट्याबका लागि एम्बेडेड सलाडिक प्यानल असमर्थित छ। यसको सट्टा स्ट्यान्डअलोन सलाडिक्ट प्यानल प्रयोग गर्नुहोस्।"}}},426:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={add:"थप्नुहोस्",delete:"हटाउनुहोस्",save:"बचत गर्नुहोस्",cancel:"रद्द गर्नुहोस्",edit:"सम्पादन",sort:"क्रमबद्ध",rename:"पुनःनामकरण",confirm:"पुष्टि गर्नुहोस्",changes_confirm:"परिवर्तनहरू बचत गरिएका छैनन्। जे भए पनि बन्द?",delete_confirm:"वस्तु पूर्ण रूपमा मेटाउने",max:"अधिकतम",min:"न्यूनतम",name:"नाम",none:"खाली",enable:"सक्षम गर्नुहोस्",enabled:"सक्षम गरिएको",disabled:"असक्षम गरिएको",blacklist:"कालो सूची",whitelist:"सेतो सूची",import:"आयात गर्नुहोस्",export:"निर्यात गर्नुहोस्",lang:{chinese:"चिनियाँ",chs:"चिनियाँ",deutsch:"डेउस्च",eng:"अंग्रेजी",english:"अंग्रेजी",french:"फ्रान्सेली",japanese:"जापानी",korean:"कोरियाली",matchAll:"सबै अक्षर मिलाउनुहोस्",minor:"झिनो",others:"अन्य",spanish:"स्पेनिस"},unit:{mins:"मिनेट",ms:"मिसे",s:"सेकेन्ड",word:"शब्द"},note:{word:"शब्द",trans:"अनुवाद",note:"टिप्पणी",context:"सन्दर्भ",contextCloze:"सन्दर्भ क्लोज",date:"मिति",srcTitle:"स्रोत शीर्षक",srcLink:"स्रोत लिंक",srcFavicon:"स्रोत फेभिकन"},profile:{daily:"दैनिक मोड",sentence:"वाक्य मोड",default:"पूर्वनिर्धारित मोड",scholar:"विद्वान मोड",translation:"अनुवाद मोड",nihongo:"जापानी मोड"}}},427:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={chooseLang:"अर्को भाषा छान्नुहोस्",standalone:"सलाडिक्ट स्ट्यान्डअलोन प्यानल",fetchLangList:"पूर्ण भाषा सूची तान्नुहोस्",transContext:"पुनः अनुवाद गर्नुहोस्",neverShow:"देखाउन रोक्नुहोस्",fromSaladict:"सलाडिक्ट प्यानलबाट",tip:{historyBack:"अघिल्लो खोज इतिहास",historyNext:"पछिल्लो खोज इतिहास",searchText:"पाठ खोज्नुहोस्",openOptions:"विकल्प खोल्नुहोस्",addToNotebook:"नोटबुकमा जोड्नुहोस्। नोटबुक खोल्न राइट क्लिक गर्नुहोस्",openNotebook:"नोटबुक खोल्नुहोस्",openHistory:"इतिहास खोल्नुहोस्",shareImg:"तस्विर रूपमा साझा गर्नुहोस्",pinPanel:"प्यानल पिन गर्नुहोस्",closePanel:"प्यानल बन्द गर्नुहोस्",sidebar:"साइडबार मोडमा स्विच गर्नुहोस्। दायाँ तर्फ दायाँ क्लिक गर्नुहोस्।",focusPanel:"खोज गर्दा प्यानलले फोकस गर्ने",unfocusPanel:"खोज गर्दा प्यानलले फोकस नगर्ने"},wordEditor:{title:"नोटबुकमा जोड्नुहोस्",wordCardsTitle:"नोटबुकबाट अन्य परिणामहरू",deleteConfirm:"नोटबुकबाट हटाउनुहोस्?",closeConfirm:"परिवर्तनहरू सुरक्षित हुँदैनन्। के तपाईँ बन्द गर्न चाहानुहुन्छ?",chooseCtxTitle:"अनुवाद गरिएको परिणामहरू छान्नुहोस्",ctxHelp:"अनुवाद छान्न र एन्की तालिका उत्पन्न गर्न सलाडिकलाई निर्देशन गर्न यदि तपाईँले [:: xxx ::] र --------------- ढाँचा राख्न चाहानुहुन्छ भने।"},machineTrans:{switch:"भाषा बदल्नुहोस्",sl:"स्रोत भाषा",tl:"लक्षित भाषा",auto:"भाषा पत्ता लगाउनुहोस्",stext:"सक्कल",showSl:"सोर्स देखाउनुहोस्",copySrc:"स्रोत कपि गर्नुहोस्",copyTrans:"अनुवाद कपि गर्नुहोस्",login:"कृपया {एसेस टोकन्} प्रदान गर्नुहोस्।",dictAccount:"एसेस टोकन्"},manualVerification:{title:"म्यानुअल प्रमाणीकरण आवश्यक छ",message:"मूल शब्दकोश पृष्ठ खोल्नुहोस् र मानव प्रमाणीकरण पूरा गर्नुहोस्, त्यसपछि Saladict मा फेरि खोज्नुहोस्।",openPage:"शब्दकोश पृष्ठ खोल्नुहोस्"},updateAnki:{title:"एन्कीमा अद्यावधिक गर्नुहोस्",success:"शब्द एन्कीमा सफलतापूर्वक अद्यावधिक गरियो।",failed:"शब्द एन्कीमा अद्यावधिक गर्न असफल भयो।"}}},428:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));var a=n(269);const o={...a,default:"पुर्वनिर्धारित",ne_NP:"नेपाली",ara:"अरबी","bs-Latn":"बोस्नियाली (ल्याटिन)",bul:"बुल्गेरियाली",cht:"चिनियाँ (परम्परागत)",dan:"डेनिस",est:"इस्टोनियाली",fin:"फिनिस",fra:"फ्रान्सेली",iw:"हिब्रु",jp:"जापानी",kor:"कोरियाली",kr:"कोरियाली",pt_BR:"पोर्तुगी (ब्राजिल)",rom:"रोमानियाली",slo:"स्लोभाकियाली",spa:"स्पेनिस",swe:"स्विडिस",tl:"फिलिपिनी (तागालोग)",vie:"भियतनामी",zh:"चिनियाँ (सरलिकृत)","zh-CHS":"चिनियाँ (सरलिकृत)","zh-CHT":"चिनियाँ (परम्परागत)"}},429:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={baidu_page_translate:"बाइडु पृष्ठ अनुवाद",baidu_search:"बाइडु खोजी",bing_dict:"बिङ शब्दकोश",bing_search:"बिङ खोजी",caiyuntrs:"Lingocloud पृष्ठ अनुवाद",cambridge:"क्याम्ब्रिज",copy_pdf_url:"पीडीएफ यूआरएल क्लिपबोर्डमा प्रतिलिपि गर्नुहोस्",dictcn:"Dictcn",etymonline:"Etymonline",google_cn_page_translate:"Google cn पृष्ठ अनुवाद",google_page_translate:"Google पृष्ठ अनुवाद",google_search:"Google खोजी",google_translate:"Google अनुवाद",google_cn_translate:"Google.cn अनुवाद",guoyu:"國語辭典",history_title:"खोज इतिहास",iciba:"iciba",liangan:"兩岸詞典",longman_business:"Longman Business",manual_title:"मैनुअल",merriam_webster:"Merriam Webster",microsoft_page_translate:"Microsoft पृष्ठ अनुवाद",notebook_title:"नयाँ शब्द सूची",notification_youdao_err:"यूडाओ पृष्ठ अनुवाद 2.0ले प्रतिक्रिया दिएन ।\nसलाडिक्ट यस पृष्ठमा पहुँच प्राप्त गर्न सक्दैन।\nयदि यूडाओ प्यानल देखाइएको छ भने यो सन्देश अवहेलना गर्नुहोस्।",oxford:"अक्सफोर्ड",page_permission_err:'सलाडिक्ट "{{name}}" यस पृष्ठमा पहुँच प्राप्त गर्न अनुमति छैन।',page_translations:"पृष्ठ अनुवाद",saladict:"सलाडिक्ट",saladict_standalone:"सलाडिक्ट स्ट्यान्डअलोन प्यानल",sogou:"सोगो अनुवाद",sogou_page_translate:"सोगो पृष्ठ अनुवाद",termonline:"Termonline",view_as_pdf:"पीडीएफ भिउमा खोल्नुहोस्",youdao:"यौडाओ",youdao_page_translate:"यौडाओ पृष्ठ अनुवाद",youglish:"यौग्लिश"}},430:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Saladict Options",previewPanel:"Preview Dict Panel",shortcuts:"Set Shortcuts",msg_update_error:"Unable to update",msg_updated:"Successfully updated",msg_first_time_notice:"First time notice",msg_err_permission:'Unable to request "{{permission}}" permission.',unsave_confirm:"Settings not saved. Sure to leave?",nativeSearch:"search selected text outside of browser",firefox_shortcuts:'Open about:addons, click the top right "gear" button, choose the last "Manage extension shortcuts".',tutorial:"Tutorial",page_selection:"Page Selection",nav:{General:"General",Notebook:"Notebook",Profiles:"Profiles",DictPanel:"Dict Panel",SearchModes:"Search Modes",Dictionaries:"Dictionaries",DictAuths:"Access Tokens",Popup:"Popup Panel",QuickSearch:"Quick Search",Pronunciation:"Pronunciation",PDF:"PDF",ContextMenus:"Context Menus",BlackWhiteList:"Black/White List",ImportExport:"Import/Export",Privacy:"Privacy",Permissions:"Permissions"},config:{active:"Enable Inline Translator",active_help:'"Quick Search" is still available even if Inline translation is turned off.',animation:"Animation transitions",animation_help:"Switch off animation transitions to reduce runtime cost.",runInBg:"Keep in Background",runInBg_help:"Keep the browser running in background after close so that global shortcuts still work.",darkMode:"Dark Mode",langCode:"App Language",editOnFav:"Open WordEditor when saving",editOnFav_help:"When turned off, new words will be added to notebook directly.",searchHistory:"Keep search history",searchHistory_help:"Your browsing history could be unintentionally revealed in Search history.",searchHistoryInco:"Also in incognito mode",ctxTrans:"Context Translate Engines",ctxTrans_help:"Context sentence will be translated before being added to notebook.",searchSuggests:"Search suggests",panelMaxHeightRatio:"Panel max height ratio",panelWidth:"Panel width",fontSize:"Font size for search reasults",bowlOffsetX:"Saladict icon Offset X",bowlOffsetY:"Saladict icon Offset Y",panelCSS:"Custom Dict Panel Styles",panelCSS_help:"Custom CSS. For Dict Panel use .dictPanel-Root as root. For dictionaries use .dictRoot or .d-{id} as root",noTypeField:"No selection on editable regions",noTypeField_help:"If selection making in editable regions is banned, the extension will identify Input Boxes, TextAreas and other common text editors like CodeMirror, ACE and Monaco.",touchMode:"Touch Mode",touchMode_help:"Enable touch related selection",language:"Selection Languages",language_help:"Search when selection contains words in the chosen languages.",language_extra:"Note that Japanese and Korean also include Chinese. French, Deutsch and Spanish also include English. If Chinese or English is cancelled while others are selected, only the exclusive parts of those languages are tested. E.g. kana characters in Japanese.",doubleClickDelay:"Double Click Delay",mode:"Normal Selection",panelMode:"Inside Dict Panel",pinMode:"When Panel is Pinned",qsPanelMode:"When Standalone Panel is Opened",bowlHover:"Icon Mouse Hover",bowlHover_help:"Hover on the bowl icon to trigger searching instead of clicking.",autopron:{cn:{dict:"Chinese Auto-Pronounce"},en:{dict:"English Auto-Pronounce",accent:"Accent Preference"},machine:{dict:"Machine Auto-Pronounce",src:"Machine Pronounce",src_help:"Machine Translation Dictionary needs to be added and enabled on the list below to enable auto-pronunciation.",src_search:"Read Source Text",src_trans:"Read Translation Text"}},pdfSniff:"Enable PDF Sniffer",pdfSniff_help:"If turned on, PDF links will be automatically captured (including local files, if file URL access is enabled on the extensions page).",pdfSniff_extra:"It is recommended to {search selected text outside of browser} with your own favorite local reader.",pdfStandalone:"Standalone Panel",pdfStandalone_help:"Open PDF viewer in standalone panel.",baWidth:"Width",baWidth_help:"Browser Action Panel wdith. Dict Panel width will be used if a negative value is chosen.",baHeight:"Height",baHeight_help:"Browser Action Panel height.",baOpen:"Browser Action",baOpen_help:"When clicking the browser action icon in toolbar (next to the address bar). Items are same as Context Menus, which can be added or edited on the Context Menus config page.",tripleCtrl:"Enable Ctrl Shortkey",tripleCtrl_help:"Press {⌘ Command}(macOS) or {Ctrl}(Others) three times (or with browser shortkey) to summon the dictionary panel. ",defaultPinned:"Pinned when shows up",qsLocation:"Location",qsFocus:"Focus when shows up",qsStandalone:"Standalone",qsStandalone_help:"Render dict panel in a standalone window. You can {search selected text outside of browser}.",qssaSidebar:"Sidebar Layout",qssaSidebar_help:"Rearrange windows to sidebar-like layout.",qssaHeight:"Window Height",qssaPageSel:"Selection Response",qssaPageSel_help:"Response to page selection.",qssaRectMemo:"Remember size and position",qssaRectMemo_help:"Remember standalone panel size and position on close.",updateCheck:"Check Update",updateCheck_help:"Check update automatically.",analytics:"Enable Google Analytics",analytics_help:"Share anonymous device browser version information. Saladict author will offer prioritized support to popular devices and browsers.",opt:{reset:"Reset Configs",reset_confirm:"Reset to default settings. Confirm?",upload_error:"Unable to save settings.",accent:{uk:"UK",us:"US"},sel_blackwhitelist:"Selection Black/White List",sel_blackwhitelist_help:"Saladict will not react to selection in blacklisted pages.",pdf_blackwhitelist_help:"Blacklisted PDF links will not jump to Saladict PDF Viewer.",contextMenus_description:"Each context menus item can also be customized. Youdao and Google page translate are deprecated in favor of the official extensions.",contextMenus_edit:"Edit Context Menus Items",contextMenus_url_rules:"URL with %s in place of query.",baOpen:{popup_panel:"Dict Panel",popup_fav:"Add to Notebook",popup_options:"Open Saladict Options",popup_standalone:"Open Saladict Standalone Panel"},openQsStandalone:"Standalone Panel Options",pdfStandalone:{default:"Never",always:"Always",manual:"Manual"}}},matchPattern:{description:"Specify URL as {URL Match Pattern} or {Regular Expression}. Empty fields will be removed.",url:"URL Match Pattern",url_error:"Incorrect URL Match Pattern.",regex:"Regular Expression",regex_error:"Incorrect Regular Expression."},searchMode:{icon:"Show Icon",icon_help:"A cute little icon pops up nearby the cursor.",direct:"Direct Search",direct_help:"Show dict panel directly.",double:"Double Click",double_help:"Show dict panel after double click selection.",holding:"Hold a key",holding_help:'After a selection is made, the selected key must be pressing when releasing mouse (Alt is "⌥ Option" on macOS. Meta key is "⌘ Command" on macOS and "⊞ Windows" for others.).',instant:"Instant Capture",instant_help:"Selection is automatically made near by the cursor.",instantDirect:"Direct",instantKey:"Key",instantKey_help:'If "Direct" is chosen it is also recommeded setting browser shortkey to toggle Instant Capture. Otherwise browser text selection could be unable to perform.',instantDelay:"Capture delay"},profiles:{opt:{add_name:"Add Profile Name",delete_confirm:'Delete Profile "{{name}}". Confirm?',edit_name:"Change Profile Name",help:"Each profile represents an independent set of settings. Some of the settings (with {*} prefix) change according to profile. One may switch profiles by hovering on the menu icon on Dict Panel, or focus on the icon then hit {↓}."}},profile:{mtaAutoUnfold:"Auto unfold multiline search box",waveform:"Waveform Control",waveform_help:"Display a button at the bottom of the Dict Panel for expanding the Waveform Control Panel which is only loaded after expansion.",stickyFold:"Sticky Folding",stickyFold_help:"Remembers manual dictionary folding/unfolding states when searching. Only last on the same page.",opt:{item_extra:'This option may change base on "Profile".',mtaAutoUnfold:{always:"Keep Unfolding",never:"Never Unfold",once:"Unfold Once",popup:"Only On Browser Action",hide:"Hide"},dict_selected:"Selected Dicts"}},dict:{add:"Add dicts",more_options:"More Options",selectionLang:"Selection Languages",selectionLang_help:"Show this dictionary when selection contains words in the chosen languages.",defaultUnfold:"Default Unfold",defaultUnfold_help:"If turned off, this dictionary won't start searching unless it's title bar is clicked.",selectionWC:"Selection Word Count",selectionWC_help:"Show this dictionary when selection word count meets the requirements. Set 999999 for unlimited words.",preferredHeight:"Default Panel Height",preferredHeight_help:"Maximum height on first appearance. Contents exceeding this height will be hidden. Set 999999 for unlimited height.",lang:{de:"De",en:"En",es:"Es",fr:"Fr",ja:"Ja",kor:"Kor",zhs:"Zhs",zht:"Zht"}},syncService:{description:"Sync settings.",start:"Syncing. Do not close this page until finished.",finished:"Syncing finished",success:"Syncing success",failed:"Syncing failed",close_confirm:"Settings not saved. Close?",delete_confirm:"Delete?",shanbay:{description:"Go to shanbay.com and log in first(must stay logged in). Note that it's a one-way sync(from Saladict to Shanbay). Only the new added words are synced. Words also need to be supported by Shanbay's database.",login:"Will open shanbay.com. Please log in then come back and enable again.",sync_all:"Upload all existing new words",sync_all_confirm:"Too many new words in notebook. Saladict will upload in batches. Note that uploading too many words in short period would cause account banning which is unrecoverable. Confirm?",sync_last:"Upload the last new word"},eudic:{description:"Before using Eudic to synchronize words, you must first create a default new word book on Eudic official website (my.eudic.net/home/index) (generally, it will be automatically generated and cannot be deleted after the first manual import). Pay attention not to synchronize frequently in a short time, which may cause temporary lock.",token:"Authorization information",getToken:"Get authorization",verify:"Check authorization information",verified:"Eudic authorization information checked successfully",enable_help:"After opening, each new word added will be automatically synchronized to the Eudic default word book (salad to Eudic word book) in one direction, and only the new word itself will be synchronized (deleted out of synchronization)",token_help:"Please confirm to set valid personal authorization information, otherwise the synchronization will fail. You can click the button at the bottom to check.",sync_all:"Synchronize all new words",sync_help:"Synchronize all existing new words in salad word book to the Eudic default word book (turn on the synchronization switch above at the same time and click save)",sync_all_confirm:"Note that frequent synchronization in a short time may lead to lock temporarily. Are you sure to continue?"},webdav:{description:"Extension settings (including this) are synced via browser. New words notebook can be synced via WebDAV through settings here.",jianguo:"See Jianguoyun for example",checking:"Connecting...",exist_confirm:"Saladict directory exists on server. Download it and merge with local data?",upload_confirm:"Upload local data to Server right away?",verify:"Verify server",verified:"Successfully verified WebDAV server.",duration:"Duration",duration_help:"Data is guaranteed to be updated before upload. If you do not need real-time syncing across browsers, set a longer polling cycle to reduce CPU and memory footprint.",passwd:"Password",url:"Server Address",user:"User Account"},ankiconnect:{description:"Please make sure Anki Connect plugin is installed and Anki is running. You can also update word to Anki in Word Editor.",checking:"Checking...",deck_confirm:'Deck "{{deck}}" does not exist in Anki. Generate a new deck?',deck_error:'Unable to create deck "{{deck}}".',notetype_confirm:'Note type "{{noteType}}" does not exist in Anki. Generate a new note type.',notetype_error:'Unable to create note type "{{noteType}}".',upload_confirm:"Sync local new words to Anki right away? Duplicated words (with same timestamp) will be skipped.",add_yourself:"Please add it youself in Anki.",verify:"Verify Anki Connect",verified:"Successfully verified Anki Connect",enable_help:'When enabled, each time a new word is added to Notebook it will also be ported to Anki automatically. Words that exist in Anki(with same "Date") can be force-updated in Word Editor.',host:"Address",port:"port",key:"Key",key_help:"Optional key can be added in Anki Connect config for identification.",deckName:"Deck",deckName_help:'If deck does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below.',noteType:"Note Type",noteType_help:'Anki note type includes a set of fields and card type. If note type does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below. DO NOT change field names when editing or adding card templates in Anki',tags:"Tags",tags_help:"Anki notes can include tags separated with commas.",escapeHTML:"Escape HTML",escapeHTML_help:"Escape HTML entities. Turn off if using HTML for manual layout.",syncServer:"Sync Server",syncServer_help:"Sync to server(e.g. AnkiWeb) after new words being added to local Anki."}},titlebarOffset:{title:"Calibrate Titlebar Height",help:"Different systems or browser settings may result in different titlebar height. Saladict will attempt to calibrate automatically. If you may adjust manually.",main:"Normal",main_help:"Normal windows may not have titlebar.",panel:"Panel",panel_help:"Saladict standalone quick search panel is a type of panel window.",calibrate:"Auto-calibrate",calibrateSuccess:"Calibration success",calibrateError:"Calibration failed"},headInfo:{acknowledgement:{title:"Acknowledgement",yipanhuasheng:"for adding Merriam Webster's Dict, American Heritage Dict, Oxford Learner's Dict and Eudic Notebook sync service; and updating Urban Dict and Naver Dict",naver:"for helping add Naver dict",shanbay:"for adding Shanbay dict",trans_tw:"for traditional Chinese translation",weblio:"for helping add Weblio dict"},contact_author:"Contact Author",donate:"Donate",instructions:"Instructions",report_issue:"Report Issue"},form:{url_error:"Incorrect URL.",number_error:"Incorrect number."},preload:{title:"Preload",auto:"Auto search",auto_help:"Search automatically when panel shows up.",clipboard:"Clipboard",help:"Preload content in search box when panel shows up.",selection:"Page Selection"},locations:{CENTER:"Center",TOP:"Top",RIGHT:"Right",BOTTOM:"Bottom",LEFT:"Left",TOP_LEFT:"Top Left",TOP_RIGHT:"Top Right",BOTTOM_LEFT:"Bottom Left",BOTTOM_RIGHT:"Bottom Right"},import_export_help:"Configs are auto-synced via browser. Here you can also import/export manually. Backups are exported as plain text files. Please encrypt it yourself if needed.",import:{title:"Import Configs",error:{title:"Import Error",parse:"Unable to parse backup. Incorrect format.",load:"Unable to load backup. Browser cannot obtain the local file.",empty:"No valid data found in the backup."}},export:{title:"Export Configs",error:{title:"Export Error",empty:"No config to export.",parse:"Unable to parse configs."}},dictAuth:{description:"As the number of Saladict users grows, if you make heavily use of machine translation services it is recommended to register an account for better stability and accuracy. The account data will only be stored in the browser.",dictHelp:"See the official website of {dict}.",manage:"Manage Translator Accounts"},third_party_privacy:"Third Party Privacy",third_party_privacy_help:'Saladict will not collect further information but search text and releated cookies will be sent to third party dictionary services(just like how you would search on their websites). If you do not want third party services to collect you data, remove the corresponding dictionaries at "Dictionaries" settings.',third_party_privacy_extra:"Cannot be turned off as it is the core functionality of Saladict.",permissions:{success:"Permission requested",cancel_success:"Permission cancelled",failed:"Permission request failed",cancelled:"Permission request cancelled by user",missing:'Missing permission "{{permission}}". Either grant it or disable related functions.',clipboardRead:"Read Clipboard",clipboardRead_help:"This permission is needed when clipboard preload is enable for popup panel or quick search panel.",clipboardWrite:"Write Clipboard",clipboardWrite_help:"This permission is needed when using titlebar menus to copy source/target text from machine translator."},unsupportedFeatures:{ff:'Feature "{{feature}}" is not supported in Firefox.'}}},431:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"सलाडिक्ट ब्राउजर एक्सन प्यानल",app_active_title:"ईनलाइन अनुवादक सक्षम गर्नुहोस्",app_temp_active_title:"पृष्ठमा अस्थायी रूपमा असक्षम गरियो",instant_capture_pinned:" (ताराङकित)",instant_capture_title:"तत्काल क्याप्चर सक्षम गर्नुहोस्",notebook_added:"थपियो",notebook_empty:"हालको पृष्ठमा कुनै चयन फेला परेन",notebook_error:"नोटबुकमा चयन गरिएको पाठ थप्न सकिएन",page_no_response:"पृष्ठको कुनै प्रतिक्रिया छैन",qrcode_title:"पृष्ठको क्युआर कोड"}},432:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:{history:"सलाडिक्ट खोज इतिहास",notebook:"सलाडिक्ट नोटबुक"},localonly:"स्थानीयमा मात्र",column:{add:"थप्नुहोस्",date:"मिति",edit:"सम्पादन",note:"टिप्पणी",source:"स्रोत",trans:"अनुवाद",word:"शब्द"},delete:{title:"मेटाउनुहोस्",all:"सबै मेटाउनुहोस्",confirm:". साच्चै ?",page:"पृष्ठ मेटाउनुहोस्",selected:"चयन गरिएको मेटाउनुहोस्"},export:{title:"निर्यात",all:"सबै निर्यात गर्नुहोस्",description:"हरेक रेकर्डको आकार बताउनुहोस्:",explain:"एन्की र अन्य उपकरणमा कसरी निर्यात गर्ने",gencontent:"निर्मित सामग्री",linebreak:{default:"पूर्वनिर्धारित लाइनब्रेक राख्नुहोस्",n:"लाइनब्रेकहरूलाई \\n संग स्थानान्तरण गर्नुहोस्",br:"लाइनब्रेकहरूलाई <br> संग स्थानान्तरण गर्नुहोस्",p:"लाइनब्रेकहरूलाई <p> संग स्थानान्तरण गर्नुहोस्",space:"लाइनब्रेकहरूलाई स्पेस संग स्थानान्तरण गर्नुहोस्"},page:"पृष्ठ निर्यात गर्नुहोस्",placeholder:"प्लेसहोल्डर",htmlescape:{title:"टिप्पणीहरूमा HTML वर्णहरू ऐस्केप गर्नुहोस्",text:"HTML ऐस्केप गर्नुहोस्"},selected:"चयन गरिएको निर्यात गर्नुहोस्"},filterWord:{chs:"चिनियाँ",eng:"अंग्रेजी",word:"शब्द",phrase:"वाक्यांश"},wordCount:{selected:"{{count}} बस्तु चयन गरिएको",selected_plural:"{{count}} बस्तुहरु चयन गरिएको",total:"{{count}} बस्तु जम्मा",total_plural:"{{count}} बस्तुहरु जम्मा"}}},433:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={app:{off:"沙拉查词已关闭(快捷查词依然可用)",tempOff:"沙拉查词已对当前标签关闭(快捷查词依然可用)",unsupported:"内嵌查词面板不支持此类页面(独立窗口查词面板依然可用)"}}},434:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={add:"添加",delete:"删除",save:"保存",cancel:"取消",edit:"编辑",sort:"排序",rename:"重命名",confirm:"确认",changes_confirm:"修改未保存。确认关闭?",delete_confirm:"确定完全删除该条目?",max:"最大",min:"最小",name:"名称",none:"无",enable:"开启",enabled:"已开启",disabled:"已关闭",blacklist:"黑名单",whitelist:"白名单",import:"导入",export:"导出",lang:{chinese:"中文",chs:"中文",deutsch:"德文",eng:"英文",english:"英文",french:"法文",japanese:"日文",korean:"韩文",minor:"其它语言",matchAll:"所有的字符都必须匹配",others:"其它字符",spanish:"西班牙文"},unit:{mins:"分钟",ms:"毫秒",s:"秒",word:"个"},note:{word:"单词",trans:"翻译",note:"笔记",context:"上下文",contextCloze:"上下文填空",date:"日期",srcTitle:"来源标题",srcLink:"来源链接",srcFavicon:"来源图标"},profile:{daily:"日常模式",sentence:"句库模式",default:"默认模式",scholar:"学术模式",translation:"翻译模式",nihongo:"日语模式"}}},435:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={chooseLang:"-选择其它语言-",standalone:"沙拉查词-独立查词窗口",fetchLangList:"获取全部语言列表",transContext:"重新翻译",neverShow:"不再弹出",fromSaladict:"来自沙拉查词面板",tip:{historyBack:"上一个查词记录",historyNext:"下一个查词记录",searchText:"查单词",openOptions:"打开设置",addToNotebook:"保存单词到生词本,右键打开生词本",openNotebook:"打开生词本",openHistory:"打开查词记录",shareImg:"以图片方式分享查词结果",pinPanel:"钉住查词面板",closePanel:"关闭查词面板",sidebar:"切换侧边栏模式,右键切换右侧",focusPanel:"查词时面板获取焦点",unfocusPanel:"查词时面板不获取焦点"},wordEditor:{title:"保存到生词本",wordCardsTitle:"生词本其它记录",deleteConfirm:"从单词本中移除?",closeConfirm:"记录尚未保存,确认关闭?",chooseCtxTitle:"选择翻译结果",ctxHelp:"如需兼容选择翻译结果以及 Anki 生成表格请保持 [:: xxx ::] 和 --------------- 格式。"},machineTrans:{switch:"更改语言",sl:"来源语言",tl:"目标语言",auto:"自动检测",stext:"原文",showSl:"显示原文",copySrc:"复制原文",copyTrans:"复制译文",login:"请登录{词典帐号}以使用。",dictAccount:"词典帐号"},manualVerification:{title:"需要手动验证",message:"请打开词典原网页完成人机验证,然后回到沙拉查词重新查询。",openPage:"打开词典网页"},updateAnki:{title:"更新到 Anki",success:"更新到 Anki 成功。",failed:"更新单词到 Anki 失败。"}}},436:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));var a=n(653);const o={...a,default:"随扩展语言",ne_NP:"尼泊尔语",ara:"阿拉伯语","bs-Latn":"波斯尼亚语",bul:"保加利亚语",cht:"中文(繁体)",dan:"丹麦语",est:"爱沙尼亚语",fin:"芬兰语",fra:"法语",iw:"希伯来语",jp:"日语",kor:"韩语",kr:"韩语",pt_BR:"巴西语",rom:"罗马尼亚语",slo:"斯洛文尼亚语",spa:"西班牙语",swe:"瑞典语",tl:"塔加路语(菲律宾语)",vie:"越南语",zh:"中文(简体)","zh-CHS":"中文(简体)","zh-CHT":"中文(繁体)"}},437:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={baidu_page_translate:"百度网页翻译",baidu_search:"百度搜索",bing_dict:"必应词典",bing_search:"必应搜索",caiyuntrs:"彩云小译网页翻译",cambridge:"剑桥词典",copy_pdf_url:"复制PDF链接到剪贴板",dictcn:"海词词典",etymonline:"培根词源",google_cn_page_translate:"谷歌cn网页翻译",google_page_translate:"谷歌网页翻译",google_search:"谷歌搜索",google_translate:"谷歌翻译",google_cn_translate:"谷歌CN翻译",guoyu:"国语辞典",history_title:"查词历史记录",iciba:"金山词霸",liangan:"两岸词典",longman_business:"朗文商务",manual_title:"详细使用说明",merriam_webster:"韦氏词典",microsoft_page_translate:"微软网页翻译",notebook_title:"生词本",notification_youdao_err:"有道网页翻译2.0 加载无响应,\n可能扩展无权访问该页面,\n如加载成功请忽略本消息。",oxford:"牛津词典",page_permission_err:"沙拉查词「{{name}}」无权访问此页面。",page_translations:"网页翻译",saladict:"沙拉查词",saladict_standalone:"沙拉查词独立窗口",sogou:"搜狗翻译",sogou_page_translate:"搜狗网页翻译",termonline:"术语在线",view_as_pdf:"在 PDF 阅读器中打开",youdao:"有道词典",youdao_page_translate:"有道网页翻译",youglish:"YouGlish"}},438:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"沙拉查词设置",previewPanel:"预览查词面板",shortcuts:"设置快捷键",msg_update_error:"设置更新失败",msg_updated:"设置已更新",msg_first_time_notice:"初次使用注意",msg_err_permission:"权限“{{permission}}”申请失败。",unsave_confirm:"修改尚未保存,确定放弃?",nativeSearch:"浏览器外划词",firefox_shortcuts:"地址栏输入 about:addons 打开,点击右上方的齿轮,选择最后一项管理扩展快捷键。",tutorial:"教程",page_selection:"网页划词",nav:{General:"基本选项",Notebook:"单词管理",Profiles:"情景模式",DictPanel:"查词面板",SearchModes:"查词习惯",Dictionaries:"词典设置",DictAuths:"词典帐号",Popup:"右上弹框",QuickSearch:"快捷查词",Pronunciation:"发音设置",PDF:"PDF 设置",ContextMenus:"右键菜单",BlackWhiteList:"黑白名单",ImportExport:"导入导出",Privacy:"隐私设置",Permissions:"权限管理"},config:{active:"启用划词翻译",active_help:"关闭后「快捷查词」功能依然可用。",animation:"开启动画过渡",animation_help:"在低性能设备上关闭过渡动画可减少渲染负担。",runInBg:"后台保持运行",runInBg_help:"让浏览器关闭后依然保持后台运行,从而继续响应快捷键以及浏览器外划词。",darkMode:"黑暗模式",langCode:"界面语言",editOnFav:"红心单词时弹出编辑面板",editOnFav_help:"关闭后,点击红心生词将自动添加到生词本,上下文翻译亦会自动获取。",searchHistory:"记录查词历史",searchHistory_help:"查词记录可能会泄漏您的浏览痕迹。",searchHistoryInco:"在私隐模式中记录",ctxTrans:"上下文翻译引擎",ctxTrans_help:"单词被添加进生词本前会自动翻译上下文。",searchSuggests:"输入时显示候选",panelMaxHeightRatio:"查词面板最高占屏幕比例",panelWidth:"查词面板宽度",fontSize:"词典内容字体大小",bowlOffsetX:"沙拉图标水平偏移",bowlOffsetY:"沙拉图标垂直偏移",panelCSS:"自定义查词面板样式",panelCSS_help:"为查词面板添加自定义 CSS 。词典面板使用 .dictPanel-Root 作为根,词典使用 .dictRoot 或者 .d-词典ID 作为根。",noTypeField:"不在输入框划词",noTypeField_help:"开启后,本扩展会自动识别输入框以及常见编辑器,如 CodeMirror、ACE 和 Monaco。",touchMode:"触摸模式",touchMode_help:"支持触摸相关选词。",language:"划词语言",language_help:"当选中的文字包含相应的语言时才进行查找。",language_extra:"注意日语与韩语也包含了汉字。法语、德语和西语也包含了英文。若取消了中文或英语而勾选了其它语言,则只匹配那些语言独有的部分,如日语只匹配假名。",doubleClickDelay:"双击间隔",mode:"普通划词",defaultPinned:"出现时钉住查词面板",panelMode:"查词面板内部划词",pinMode:"查词面板钉住后划词",qsPanelMode:"独立窗口响应页面划词",bowlHover:"图标悬停查词",bowlHover_help:"鼠标悬停在沙拉图标上触发查词,否则需要点击。",autopron:{cn:{dict:"中文自动发音"},en:{dict:"英文自动发音",accent:"优先口音"},machine:{dict:"机器自动发音",src:"机器发音部分",src_help:"机器翻译词典需要在下方添加并启用才会自动发音。",src_search:"朗读原文",src_trans:"朗读翻译"}},pdfSniff:"嗅探 PDF 链接",pdfSniff_help:"开启后所有 PDF 链接将自动跳转到本扩展打开(包括本地,如果在扩展管理页面勾选了允许)。",pdfSniff_extra:"现在更推荐使用自己喜欢的本地阅读器搭配{浏览器外划词}。",pdfStandalone:"独立窗口",pdfStandalone_help:"在独立窗口中打开 PDF 阅读器。独立窗口只有标题栏,占用更少空间,但不能复制链接等操作。",baWidth:"弹窗宽度",baWidth_help:"右上弹框面板宽度。若为负数则取查词面板的宽度。",baHeight:"弹窗高度",baHeight_help:"右上弹框面板高度。",baOpen:"点击地址栏旁图标",baOpen_help:"点击地址栏旁 Saladict 图标时发生的操作。沿用了「右键菜单」的项目,可以前往该设置页面进行增加或编辑。",tripleCtrl:"启用 Ctrl 快捷键",tripleCtrl_help:"连续按三次{⌘ Command}(Mac)或者{Ctrl}(其它键盘)(或设置浏览器快捷键)将弹出词典界面。",qsLocation:"出现位置",qsFocus:"出现时获取焦点",qsStandalone:"独立窗口",qsStandalone_help:"显示为单独的窗口,支持响应{浏览器以外划词}。",qssaSidebar:"类侧边栏",qssaSidebar_help:"并排显示窗口以达到类似侧边栏的布局。",qssaHeight:"窗口高度",qssaPageSel:"响应划词",qssaPageSel_help:"响应网页划词。",qssaRectMemo:"记住位置与大小",qssaRectMemo_help:"独立窗口关闭时记住位置与大小。",updateCheck:"检查更新",updateCheck_help:"自动检查更新",analytics:"启用 Google Analytics",analytics_help:"提供匿名设备浏览器版本信息。因精力有限,沙拉查词作者会尽可能支持用户量更多的设备和浏览器。",opt:{reset:"重置设定",reset_confirm:"所有设定将还原到默认值,确定?",upload_error:"设置保存失败",accent:{uk:"英式",us:"美式"},sel_blackwhitelist:"划词黑白名单",sel_blackwhitelist_help:"黑名单匹配的页面 Saladict 将不会响应鼠标划词。",pdf_blackwhitelist_help:"黑名单匹配的 PDF 链接将不会跳转到 Saladict 打开。",contextMenus_description:"设置右键菜单,可添加可自定义链接。网页翻译其实不需要沙拉查词,故已有的有道和谷歌网页翻译目前处于维护状态,没有计划添加新功能,请用其它官方扩展如彩云小译和谷歌翻译。",contextMenus_edit:"编辑右键菜单项目",contextMenus_url_rules:"链接中的 %s 会被替换为选词。",baOpen:{popup_panel:"显示查词面板",popup_fav:"添加选词到生词本",popup_options:"打开 Saladict 设置",popup_standalone:"打开快捷查词独立窗口"},openQsStandalone:"打开独立窗口设置",pdfStandalone:{default:"从不",always:"总是",manual:"手动"}}},matchPattern:{description:"网址支持{超链匹配}和{正则匹配}。留空保存即可清除。",url:"超链匹配",url_error:"不正确的超链接模式表达式。",regex:"正则匹配",regex_error:"不正确的正则表达式。"},searchMode:{icon:"显示图标",icon_help:"在鼠标附近显示一个图标,鼠标移上去后才显示词典面板。",direct:"直接搜索",direct_help:"直接显示词典面板。",double:"双击搜索",double_help:"双击选择文本之后直接显示词典面板。",holding:"按住按键",holding_help:'在放开鼠标之前按住选择的按键才显示词典面板(Alt 为 macOS 上的 "⌥ Option"键。 Meta 键为 macOS 上的「⌘ Command」键以及其它键盘的「⊞ Windows」键)。',instant:"鼠标悬浮取词",instant_help:"自动选取鼠标附近的单词。",instantDirect:"直接取词",instantKey:"按键",instantKey_help:"因技术限制,悬浮取词通过自动选择鼠标附近单词实现,不设置按键直接取词可导致无法选词,建议配合快捷键开启关闭。",instantDelay:"取词延时"},profiles:{opt:{add_name:"新增情景模式名称",delete_confirm:"「{{name}}」将被删除,确认?",edit_name:"更改情景模式名称",help:"每个情景模式相当于一套独立的设置,一些选项(带 {*})会随着情景模式变化。鼠标悬浮在查词面板的菜单图标上可快速切换,或者焦点选中菜单图标然后按{↓}。"}},profile:{mtaAutoUnfold:"自动展开多行搜索框",waveform:"波形控制按钮",waveform_help:"在词典面板下方显示音频控制面板展开按钮。控制面板只會在展開時才載入。",stickyFold:"记忆折叠",stickyFold_help:"查词时记住之前手动展开与折叠词典的状态,仅在同个页面生效。",opt:{item_extra:"此选项会因「情景模式」而改变。",mtaAutoUnfold:{always:"保持展开",never:"从不展开",once:"展开一次",popup:"只在右上弹框展开",hide:"隐藏"},dict_selected:"已选词典"}},dict:{add:"添加词典",more_options:"更多设置",selectionLang:"划词语言",selectionLang_help:"当选中的文字包含相应的语言时才显示该词典。",defaultUnfold:"默认展开",defaultUnfold_help:"关闭后该词典将不会自动搜索,除非点击「展开」箭头。适合一些需要时再深入了解的词典,以加快初次查词速度。",selectionWC:"划词字数",selectionWC_help:"当选中文字的字数符合条件时才显示该词典。可设置 999999 如果不希望限制字数。",preferredHeight:"词典默认高度",preferredHeight_help:"词典初次出现的最大高度。超出此高度的内容将被隐藏并显示下箭头。可设置 999999 如果不希望限制高度。",lang:{de:"德",en:"英",es:"西",fr:"法",ja:"日",kor:"韩",zhs:"简",zht:"繁"}},syncService:{description:"数据同步设置。",start:"同步进行中,结束前请勿关闭此页面。",finished:"同步结束",success:"同步成功",failed:"同步失败",close_confirm:"设置未保存,关闭?",delete_confirm:"清空同步设置?",shanbay:{description:"先去 shanbay.com 登录扇贝(退出后将失效)。开启后每次添加生词将自动单向同步到扇贝生词本(只从沙拉查词到扇贝),只同步新增单词(删除不同步),只同步单词本身(上下文等均不能同步)。生词需要扇贝单词库支持才能被添加。",login:"将打开扇贝官网,请登录再回来重新开启。",sync_all:"上传现有的所有生词",sync_all_confirm:"生词本存在较多单词,将分批上传。注意短时间上传太多有可能会导致封号,且不可恢复,确定继续?",sync_last:"上传最近的一个生词"},eudic:{description:"使用欧路词典同步单词前,必须先在欧路官网(my.eudic.net/home/index)创建默认生词本(一般初次手动导入会自动生成且无法删除)。注意短时间内不要频繁同步,可能会造成暂时封停。",token:"授权信息",getToken:"获取授权",verify:"检查 授权信息",verified:"成功检查 欧路授权信息",enable_help:"开启后每次添加生词将自动单向同步到欧路默认生词本(salad到欧路生词本),只同步新增单词本身(删除不同步)",token_help:"请确认设置有效的个人授权信息,否则将同步失败。可点击底部按钮检查。",sync_all:"同步全部生词",sync_help:"将salad单词本中现有的所有生词,同步到欧路词典默认生词本中(需同时开启上方同步开关,点击保存)",sync_all_confirm:"注意短时间内频繁同步有可能会导致接下来一小段时间的封停,确定继续?"},webdav:{description:"应用设置(包括本设置)已通过浏览器自动同步。生词本可通过本设置实现 WebDAV 同步。",jianguo:"参考坚果云设置",checking:"连接中...",exist_confirm:"服务器上已存在 Saladict 目录。是否下载合并到本地?",upload_confirm:"马上上传本地数据到服务器?",verify:"验证服务器",verified:"成功验证服务器",duration:"同步周期",duration_help:"添加生词后会马上上传,数据会在上传前保证同步,所以如果不需要多个浏览器实时查看更新,可将更新检测周期调大些以减少资源占用及避免服务器拒绝响应。",passwd:"密码",url:"服务器地址",user:"账户"},ankiconnect:{description:"请确保 Anki Connect 插件已安装且 Anki 在后台运行。",checking:"连接中...",deck_confirm:"牌组「{{deck}}」不存在 Anki 中,是否自动添加?",deck_error:"无法创建牌组「{{deck}}」。",notetype_confirm:"笔记类型「{{noteType}}」不存在 Anki 中,是否自动添加?",notetype_error:"无法创建笔记类型「{{noteType}}」。",upload_confirm:"马上同步本地生词到 Anki?重复的单词(相同“Date”)会被跳过。",add_yourself:"请在 Anki 中自行添加。",verify:"检查 Anki Connect",verified:"成功检查 Anki Connect",enable_help:"开启后每次保存新生词都会自动同步到 Anki。Anki 上已存在的单词(以“Date”为准)可以在单词编辑器中编辑强制更新覆盖到 Anki。",host:"地址",port:"端口",key:"Key",key_help:"可在 Anki Connect 插件中设置 key 以做简单令牌。",deckName:"牌组",deckName_help:"如果不存在的话可以点下方「检查 Anki Connect」让本设置生成默认牌组。",noteType:"笔记类型",noteType_help:"Anki 笔记类型包括一套字段和卡片类型。如果不存在的话可以点下方「检查 Anki Connect」让本设置生成一套默认的笔记类型。如需自行在 Anki 添加或修改卡片模板请不要更改字段名字。",tags:"标签",tags_help:"Anki 笔记可以附带标签。以逗号分割。",escapeHTML:"转义 HTML",escapeHTML_help:"对笔记内容中的 HTML 字符进行转义。如手动进行 HTML 排版请关闭选项。",syncServer:"同步服务器",syncServer_help:"单词添加到本地 Anki 后自动同步到服务器(如 AnkiWeb)。"}},titlebarOffset:{title:"校准标题栏高度",help:"不同的系统以及不同的浏览器设置会影响标题栏高度,沙拉查词会尝试自动校准,如弹出窗口依然出现偏移可自行调整。",main:"普通窗口",main_help:"普通窗口可能没有标题栏。",panel:"简化窗口",panel_help:"沙拉查词的独立窗口快捷查词面板为简化窗口。",calibrate:"自动校准",calibrateSuccess:"自动校准成功",calibrateError:"自动校准失败"},headInfo:{acknowledgement:{title:"特别鸣谢",yipanhuasheng:"添加韦氏词典、美国传统词典、牛津学习词典与欧路生词同步;更新 Urban 词典与 Naver 词典",naver:"协助添加 Naver 韩国语词典",shanbay:"编写扇贝词典模块",trans_tw:"提供部分繁体中文翻译",weblio:"协助添加 Weblio 辞書"},contact_author:"联系作者",donate:"支持项目",instructions:"使用说明",report_issue:"反馈问题"},form:{url_error:"不正确的超链接格式。",number_error:"不正确的数字"},preload:{title:"预先加载",auto:"自动查词",auto_help:"查词面板出现时自动搜索预加载内容。",clipboard:"剪贴板",help:"查词面板出现时预先加载内容到搜索框。",selection:"页面划词"},locations:{CENTER:"居中",TOP:"上方",RIGHT:"右方",BOTTOM:"下方",LEFT:"左方",TOP_LEFT:"左上",TOP_RIGHT:"右上",BOTTOM_LEFT:"左下",BOTTOM_RIGHT:"右下"},import_export_help:"设定已通过浏览器自动同步,也可以手动导入导出。备份为明文保存,对安全性有要求的请自行加密。",import:{title:"导入设定",error:{title:"导入失败",parse:"备份解析失败,格式不正确。",load:"备份加载失败,浏览器无法获得本地备份。",empty:"备份中没有发现有效数据。"}},export:{title:"导出设定",error:{title:"导出失败",empty:"没有设置可以导出。",parse:"设置解析失败,无法导出。"}},dictAuth:{description:"随着沙拉查词用户增多,如经常使用机器翻译,建议到官网申请帐号以获得更稳定的体验以及更准确的结果。以下帐号数据只会保留在浏览器中。",dictHelp:"见{词典}官网。",manage:"管理私用帐号"},third_party_privacy:"第三方隐私",third_party_privacy_help:"沙拉查词不会收集更多数据,但在查词时单词以及相关 cookies 数据会发送给第三方词典服务(与在该网站上查词一样),如果你不希望被该服务获取数据,请在「词典设置」中关闭相应词典。",third_party_privacy_extra:"本特性为沙拉查词核心功能,无法关闭。",permissions:{success:"申请权限成功",cancel_success:"取消权限成功",failed:"申请权限失败",cancelled:"申请权限被用户取消",missing:"缺少权限「{{permission}}」。请给予权限或者关闭相关功能。",clipboardRead:"读取剪贴板",clipboardRead_help:"快捷查词或者右上弹框设置预加载剪贴板时需要读取剪贴板权限。",clipboardWrite:"写入剪贴板",clipboardWrite_help:"机器翻译词典标题栏菜单复制原文译文或生词本导出到剪贴板需要写入剪贴板权限。"},unsupportedFeatures:{ff:"火狐尚不支持「{{feature}}」功能。"}}},439:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"沙拉查词-右上弹框",app_active_title:"启用划词",app_temp_active_title:"对当前页暂时关闭划词",instant_capture_pinned:"(钉住)",instant_capture_title:"开启鼠标悬浮取词",notebook_added:"已添加",notebook_empty:"当前页面没有发现选词",notebook_error:"无法添加选词到生词本",page_no_response:"页面无响应",qrcode_title:"当前页面二维码"}},440:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:{history:"沙拉查词-查词记录",notebook:"沙拉查词-生词本"},localonly:"仅本地保存",column:{add:"添加",date:"日期",edit:"编辑",note:"笔记",source:"来源",trans:"翻译",word:"单词"},delete:{title:"删除单词",all:"删除所有单词",confirm:",确定?",page:"删除本页单词",selected:"删除选中单词"},export:{title:"导出文本",all:"导出所有单词",description:"编写生成模板,描述每条记录生成的样子:",explain:"如何配合 ANKI 等工具",gencontent:"代表的内容",linebreak:{default:"保留换行",n:"换行替换为 \\n",br:"换行替换为 <br>",p:"换行替换为 <p>",space:"换行替换为空格"},page:"导出本页单词",placeholder:"替换符",htmlescape:{title:"对笔记内容中的 HTML 字符进行转义",text:"转义 HTML"},selected:"导出选中单词"},filterWord:{chs:"中文",eng:"英文",word:"单词",phrase:"词组和句子"},wordCount:{selected:"已选 {{count}} 项",selected_plural:"已选 {{count}} 项",total:"共 {{count}} 项",total_plural:"共 {{count}} 项"}}},441:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={app:{off:"沙拉查詞已關閉(快捷查詞依然可用)",tempOff:"沙拉查詞已對當前標籤關閉(快捷查詞依然可用)",unsupported:"內嵌查字介面不支援此類頁面(獨立視窗查字介面依然可用)"}}},442:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={add:"新增",delete:"删除",save:"保存",cancel:"取消",edit:"編輯",sort:"排序",rename:"重新命名",confirm:"確認",changes_confirm:"變更未儲存。確定關閉?",delete_confirm:"確定完全刪除該條目?",max:"最大",min:"最小",name:"名稱",none:"無",enable:"開啟",enabled:"已開啟",disabled:"已關閉",blacklist:"黑名單",whitelist:"白名單",import:"匯入",export:"匯出",lang:{chinese:"漢字",chs:"漢字",deutsch:"德文",eng:"英文",english:"英文",french:"法文",japanese:"日文",korean:"韓文",minor:"其它語言",matchAll:"所有的字元都必須匹配",others:"其它字元",spanish:"西班牙文"},unit:{mins:"分鐘",ms:"毫秒",s:"秒",word:"个"},note:{word:"單字",trans:"翻譯",note:"筆記",context:"上下文",contextCloze:"上下文填空",date:"日期",srcTitle:"來源標題",srcLink:"來源連結",srcFavicon:"來源圖示"},profile:{daily:"日常模式",sentence:"句庫模式",default:"預設模式",scholar:"學術模式",translation:"翻譯模式",nihongo:"日語模式"}}},443:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={chooseLang:"-選擇其它語言-",standalone:"沙拉查詞-獨立查詞視窗",fetchLangList:"取得全部語言清單",transContext:"重新翻譯",neverShow:"不再彈出",fromSaladict:"来自沙拉查詞介面",tip:{historyBack:"上一個查單字記錄",historyNext:"下一個查單字記錄",searchText:"查單字",openOptions:"開啟設定",addToNotebook:"儲存單字到單字本,右点击開啟單字本",openNotebook:"開啟單字本",openHistory:"開啟查單字記錄",shareImg:"以圖片方式分享查單字結果",pinPanel:"釘選字典視窗",closePanel:"關閉字典視窗",sidebar:"切換側邊欄模式,右點選切換右側",focusPanel:"查詞時面板獲取焦點",unfocusPanel:"查詞時面板不獲取焦點"},wordEditor:{title:"儲存到單字本",wordCardsTitle:"單字本其它記錄",deleteConfirm:"從單字本中移除?",closeConfirm:"記錄尚未儲存,確定關閉?",chooseCtxTitle:"選擇翻譯結果",ctxHelp:"如需相容選擇翻譯結果以及 Anki 生成表格請保持 [:: xxx ::] 和 --------------- 格式。"},machineTrans:{switch:"變更語言",sl:"來源語言",tl:"目標語言",auto:"偵測語言",stext:"原文",showSl:"顯示原文",copySrc:"複製原文",copyTrans:"複製譯文",login:"請登入{詞典帳號}以使用。",dictAccount:"詞典帳號"},manualVerification:{title:"需要手動驗證",message:"請開啟詞典原網頁完成人機驗證,然後回到沙拉查詞重新查詢。",openPage:"開啟詞典網頁"},updateAnki:{title:"更新到 Anki",success:"更新到 Anki 成功。",failed:"更新單詞到 Anki 失敗。"}}},444:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));var a=n(654);const o={...a,default:"同介面語言",ne_NP:"尼泊爾語",ara:"阿拉伯語","bs-Latn":"波斯尼亞語",bul:"保加利亞語",cht:"中文(繁體)",dan:"丹麥語",est:"愛沙尼亞語",fin:"芬蘭語",fra:"法語",iw:"希伯來語",jp:"日語",kor:"韓語",kr:"韓語",pt_BR:"巴西語",rom:"羅馬尼亞語",slo:"斯洛維尼亞語",spa:"西班牙語",swe:"瑞典語",tl:"他加祿語(菲律賓語)",vie:"越南語",zh:"中文(簡體)","zh-CHS":"中文(簡體)","zh-CHT":"中文(繁體)"}},445:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={baidu_page_translate:"百度網頁翻譯",baidu_search:"百度搜尋",bing_dict:"Bing 字典",bing_search:"Bing 搜尋",caiyuntrs:"彩雲小譯網頁翻譯",cambridge:"劍橋字典",copy_pdf_url:"複製PDF連結到剪貼簿",dictcn:"海詞字典",etymonline:"培根字根",google_cn_page_translate:"Google cn 網頁翻譯",google_page_translate:"Google 網頁翻譯",google_search:"Google 搜尋",google_translate:"Google 翻譯",google_cn_translate:"Google.cn 翻譯",guoyu:"國語字典",history_title:"查單字歷史記錄",iciba:"金山詞霸",liangan:"兩岸字典",longman_business:"朗文商務",manual_title:"詳細使用說明",merriam_webster:"韋氏字典",microsoft_page_translate:"微軟網頁翻譯",notebook_title:"生字本",notification_youdao_err:"有道網頁翻譯2.0 下載後無回應,\n可能是套件無權造訪該網站,\n如果下載成功後,請忽略本訊息。",oxford:"牛津字典",page_permission_err:"沙拉查詞「{{name}}」無權訪問此頁面。",page_translations:"網頁翻譯",saladict:"沙拉查詞",saladict_standalone:"沙拉查詞獨立視窗",sogou:"搜狗翻譯",sogou_page_translate:"搜狗網頁翻譯",termonline:"術語在線",view_as_pdf:"在 PDF 閱讀器中開啟",youdao:"有道字典",youdao_page_translate:"有道網頁翻譯",youglish:"YouGlish"}},446:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"沙拉查詞設定",previewPanel:"預覽字典介面",shortcuts:"設定快速鍵",msg_update_error:"設定更新失敗",msg_updated:"設定已更新",msg_first_time_notice:"初次使用注意",msg_err_permission:"許可權“{{permission}}”申請失敗。",unsave_confirm:"修改尚未儲存,確定放棄?",nativeSearch:"瀏覽器外選字翻譯",firefox_shortcuts:"位址列跳轉到 about:addons,點選右上方的齒輪,選擇最後一項管理擴充套件快捷鍵",tutorial:"教程",page_selection:"網頁選字",nav:{General:"基本選項",Notebook:"單字管理",Profiles:"情景模式",DictPanel:"字典介面",SearchModes:"查字習慣",Dictionaries:"字典設定",DictAuths:"詞典帳號",Popup:"右上彈出式視窗",QuickSearch:"迅速查字",Pronunciation:"朗讀設定",PDF:"PDF 設定",ContextMenus:"右鍵選單",BlackWhiteList:"黑白名單",ImportExport:"匯入匯出",Privacy:"隱私設定",Permissions:"許可權管理"},config:{active:"啟用滑鼠選字翻譯",active_help:"關閉後「迅速查字」功能依然可用。",animation:"啟用轉換動畫",animation_help:"在低效能裝置上關閉過渡動畫可減少渲染負擔。",runInBg:"保持瀏覽器執行",runInBg_help:"讓瀏覽器關閉後依然保持執行,從而繼續響應快捷鍵以及瀏覽器外劃字(見右上角官網使用說明)。",darkMode:"黑暗模式",langCode:"介面語言",editOnFav:"紅心單字時彈出編輯介面",editOnFav_help:"關閉後,點選紅心生詞將自動新增到生詞本,上下文翻譯亦會自動獲取。",searchHistory:"記錄查字歷史",searchHistory_help:"查字典記錄可能會泄漏您的瀏覽痕跡。",searchHistoryInco:"在無痕模式中記錄",ctxTrans:"上下文翻譯引擎",ctxTrans_help:"單字加入生字本前會自動翻譯上下文。",searchSuggests:"輸入時顯示候選",panelMaxHeightRatio:"字典介面最高占螢幕高度比例",panelWidth:"查字典介面寬度",fontSize:"字典內容字型大小",bowlOffsetX:"沙拉圖示水平偏移",bowlOffsetY:"沙拉圖示垂直偏移",panelCSS:"自訂查字介面樣式",panelCSS_help:"為查詞面板新增自定義 CSS 。詞典面板使用 .dictPanel-Root 作為根,詞典使用 .dictRoot 或者 .d-詞典ID 作為根。",noTypeField:"不在輸入框滑鼠滑字",noTypeField_help:"開啟後,本程式會自動識別輸入框以及常見編輯器,如 CodeMirror、ACE 和 Monaco。",touchMode:"觸控模式",touchMode_help:"支援觸控相關選字",language:"選詞語言",language_help:"當選取的文字包含相對應的語言時,才進行尋找。",language_extra:"注意日語與韓語也包含了漢字。法語、德語和西語也包含了英文。若取消了中文或英語而勾選了其它語言,則只翻譯那些語言獨有的部分,如日語只翻譯假名。",doubleClickDelay:"滑鼠按兩下間隔",mode:"普通選字",panelMode:"字典視窗介面內部選字",defaultPinned:"出現時釘住面板",pinMode:"字典視窗介面釘住后選字",qsPanelMode:"獨立字典視窗介面響應頁面選字",bowlHover:"圖示暫留查字",bowlHover_help:"滑鼠暫留在沙拉圖示上開啟字典介面,否則需要點選。",autopron:{cn:{dict:"中文自動發音"},en:{dict:"英文自動發音",accent:"優先口音"},machine:{dict:"機器自動發音",src:"機器發音部分",src_help:"機器翻譯字典需要在下方新增並啟用才會自動發音。",src_search:"朗讀原文",src_trans:"朗讀翻譯"}},pdfSniff:"嗅探 PDF 連結",pdfSniff_help:"開啟後所有 PDF 連結將自動跳至本套件開啟(包括本機,如果在套件管理頁面勾選了允許)。",pdfSniff_extra:"現在更推薦使用自己喜歡的本地閱讀器搭配{瀏覽器外選字翻譯}。",pdfStandalone:"獨立視窗",pdfStandalone_help:"在獨立視窗中開啟 PDF 閱讀器。獨立視窗只有標題欄,佔用更少空間,但不能複製連結等操作。",baWidth:"彈窗寬度",baWidth_help:"右上彈框面板寬度。若為負數則取查字介面的寬度。",baHeight:"彈窗高度",baHeight_help:"右上彈框面板高度。",baOpen:"點選網址列旁圖示",baOpen_help:"點選網址列旁 Saladict 圖示時發生的操作。沿用了「右鍵選單」的條目,可以前往該設定頁面增加或編輯。",tripleCtrl:"啟用 Ctrl 快速鍵",tripleCtrl_help:"連續按三次{⌘ Command}(macOS)或者{Ctrl}(其它鍵盤)(或設定瀏覽器快速鍵),將會彈出字典視窗介面。",qsLocation:"出現位置",qsFocus:"出現時獲取焦點",qsStandalone:"獨立視窗",qsStandalone_help:"顯示為獨立的視窗,支援{瀏覽器外選字翻譯}。",qssaSidebar:"類側邊欄",qssaSidebar_help:"並排顯示視窗以達到類似側邊欄的配置。",qssaHeight:"視窗高度",qssaPageSel:"響應滑字",qssaPageSel_help:"對網頁滑鼠滑字作出反應。",qssaRectMemo:"記住位置和大小",qssaRectMemo_help:"獨立視窗關閉時記住位置和大小。",updateCheck:"檢查更新",updateCheck_help:"自動檢查更新",analytics:"啟用 Google Analytics",analytics_help:"提供匿名裝置瀏覽器版本資訊。因精力有限,沙拉查詞作者會盡可能支援使用者量更多的裝置和瀏覽器。",opt:{reset:"重設設定",reset_confirm:"所有設定將還原至預設值,確定?",upload_error:"設定儲存失敗",accent:{uk:"英式",us:"美式"},sel_blackwhitelist:"選詞黑白名單",sel_blackwhitelist_help:"黑名單相符的頁面 Saladict 將不會響應滑鼠劃詞。",pdf_blackwhitelist_help:"黑名單相符的 PDF 連結將不會跳至 Saladict 開啟。",contextMenus_description:"設定右鍵選單,可新增可自定義連結。網頁翻譯其實不需要沙拉查詞,故已有的有道和谷歌網頁翻譯目前處於維護狀態,沒有計劃新增新功能,請用其它官方擴充套件如彩雲小譯和谷歌翻譯。",contextMenus_edit:"編輯右鍵選單項目",contextMenus_url_rules:"連結中的 %s 會被取代為選詞。",baOpen:{popup_panel:"開啟字典介面",popup_fav:"新增選詞到生字本",popup_options:"進入 Saladict 設定",popup_standalone:"開啟快捷查詞獨立視窗"},openQsStandalone:"獨立視窗設定",pdfStandalone:{default:"從不",always:"總是",manual:"手動"}}},matchPattern:{description:"網址支援{超鏈匹配}和{正則匹配}。留空儲存即可清除。",url:"連結匹配",url_error:"不正確的超連結模式匹配表示式。",regex:"正則匹配",regex_error:"不正確的正則表示式。"},searchMode:{icon:"顯示圖示",icon_help:"在滑鼠附近顯示一個圖示,滑鼠移動到圖示後,會顯示出字典的視窗介面。",direct:"直接搜尋",direct_help:"直接顯示字典視窗介面。",double:"滑鼠按兩下",double_help:"滑鼠按兩下所選擇的句子或單字後,會直接顯示字典視窗介面。",holding:"按住按键",holding_help:'在放開滑鼠之前,需按住選擇的按鍵才顯示字典視窗介面(Alt 為 macOS 上的 "⌥ Option"鍵。Meta 鍵為 macOS 上的「⌘ Command」鍵以及其它鍵盤的「⊞ Windows」鍵)。',instant:"滑鼠懸浮取詞",instant_help:"自動選取滑鼠附近的單字。",instantDirect:"直接取詞",instantKey:"按鍵",instantKey_help:"因技術限制,懸浮取詞通過自動選擇滑鼠附近單字實現,不設定按鍵直接取詞可能導致滑鼠無法選字,建議配合快速鍵開啟關閉。",instantDelay:"取詞等待"},profiles:{opt:{add_name:"新增情景模式名稱",delete_confirm:"「{{name}}」將被刪除,確認?",edit_name:"變更情景模式名稱",help:"每個情景模式相當於一套獨立的設定,一些選項(帶有 {*})會隨著情景模式變化。滑鼠懸浮在字典介面的選單圖示上可快速切換,或者焦點選中選單圖示然後按{↓}。"}},profile:{mtaAutoUnfold:"自動展開多行搜尋框",waveform:"波形控制",waveform_help:"在字典介面下方顯示音訊控制面板展開按鈕。關閉依然可以播放音訊。",stickyFold:"記憶摺疊",stickyFold_help:"查字時記住之前手動展開和收起字典的狀態,只在同個頁面生效。",opt:{item_extra:"此選項會因「情景模式」而改變。",mtaAutoUnfold:{always:"保持展開",never:"永遠不展開",once:"展開一次",popup:"只在右上彈框展開",hide:"隱藏"},dict_selected:"已選字典"}},dict:{add:"新增字典",more_options:"更多設定",selectionLang:"選詞語言",selectionLang_help:"當選中的文字包含相對應的語言時才顯示這個字典。",defaultUnfold:"自動展開",defaultUnfold_help:"關閉後此字典將不會自動搜尋,除非點選「展開」箭頭。適合一些需要時再深入瞭解的字典,以加快初次查字典速度。",selectionWC:"選詞字數",selectionWC_help:"當選中文字的字數符合條件時才顯示該詞典。可設定 999999 如果不希望限制字數。",preferredHeight:"字典預設高度",preferredHeight_help:"字典初次出現的最大高度。超出此高度的內容將被隱藏並顯示下箭頭。可設定 999999 如果不希望限制高度。",lang:{de:"德",en:"英",es:"西",fr:"法",ja:"日",kor:"韓",zhs:"简",zht:"繁"}},syncService:{description:"資料同步設定。",start:"同步進行中,結束前請勿關閉此頁面。",finished:"同步結束",success:"同步成功",failed:"同步失敗",close_confirm:"設定未儲存,關閉?",delete_confirm:"清空同步設定?",shanbay:{description:"先去 shanbay.com 登入扇貝(退出後將失效)。開啟後將單向同步到扇貝生詞本(只從沙拉查詞到扇貝),只同步新增單詞(刪除不同步),只同步單詞本身(上下文等均不能同步)。生詞需要扇貝單詞庫支援才能被新增。",login:"將開啟扇貝官網,請登入再回來重新開啟。",sync_all:"上傳現有的所有生字",sync_all_confirm:"生詞本存在較多單詞,將分批上傳。注意短時間上傳太多有可能會導致封號,且不可恢復,確定繼續?",sync_last:"上傳最近的一個生字"},eudic:{description:"使用歐路詞典同步單詞前,必須先在歐路官網(my.eudic.net/home/index)創建默認生詞本(一般初次手動導入會自動生成且無法删除)。注意短時間內不要頻繁同步,可能會造成暫時封停。",token:"授權資訊",getToken:"獲取授權",verify:"檢查 授權資訊",verified:"成功檢查 歐路授權資訊",enable_help:"開啟後每次添加生詞將自動單向同步到歐路默認生詞本(salad到歐路生詞本),只同步新增單詞本身(删除不同步)",token_help:"請確認設定有效的個人授權資訊,否則將同步失敗。可點擊底部按鈕檢查。",sync_all:"同步全部生詞",sync_help:"將salad單詞本中現有的所有生詞,同步到歐路詞典默認生詞本中(需同時開啟上方同步開關,點擊保存)",sync_all_confirm:"注意短時間內頻繁同步有可能會導致接下來一小段時間的封停,確定繼續?"},webdav:{description:"應用設定(包括本設定)已通過瀏覽器自動同步。生詞本可通過本設定實現 WebDAV 同步。",jianguo:"參考堅果雲設定",checking:"連線中...",exist_confirm:"伺服器上已存在 Saladict 目錄。是否下載合併到本地?",upload_confirm:"馬上上傳本地資料到伺服器?",verify:"驗證伺服器",verified:"成功驗證伺服器",duration:"同步頻率",duration_help:"新增生字後會馬上上傳,資料會在上傳前保證同步,所以如果不需要多個瀏覽器即時檢視更新,可將更新檢查週期調大些以減少資源佔用及避免伺服器拒絕回應。",passwd:"密碼",url:"伺服器位址",user:"帳戶"},ankiconnect:{description:"請確保 Anki Connect 已安裝且 Anki 在執行。",checking:"連線中...",deck_confirm:"牌組「{{deck}}」不存在 Anki 中,是否自動新增?",deck_error:"無法建立牌組「{{deck}}」。",notetype_confirm:"筆記型別「{{noteType}}」不存在 Anki 中,是否自動新增?",notetype_error:"無法建立筆記型別「{{noteType}}」。",upload_confirm:"馬上同步本地生詞到 Anki?重複的單詞(相同“Date”)會被跳過。",add_yourself:"請在 Anki 中自行新增。",verify:"檢查 Anki Connect",verified:"成功檢查 Anki Connect",enable_help:"開啟後每次儲存新單字都會自動同步到 Anki。Anki 上已存在的單字(以“Date”為準)可以在單字編輯器中編輯強制更新覆蓋到 Anki。",host:"地址",port:"埠",key:"Key",key_help:"可在 Anki Connect 外掛中設定 key 以做簡單令牌。",deckName:"牌組",deckName_help:"如果不存在的話可以點下方「檢查 Anki Connect」讓本設定生成預設牌組。",noteType:"筆記型別",noteType_help:"Anki 筆記型別包括一套欄位和卡片型別。如果不存在的話可以點下方「檢查 Anki Connect」讓本設定生成一套預設的筆記型別。如需自行在 Anki 新增或修改卡片模板請不要更改欄位名字。",tags:"標籤",tags_help:"Anki 筆記可以附帶標籤。以逗號分割。",escapeHTML:"轉義 HTML",escapeHTML_help:"對筆記內容中的 HTML 字元進行轉義。如手動進行 HTML 排版請關閉選項。",syncServer:"同步伺服器",syncServer_help:"單詞新增到本地 Anki 後自動同步到伺服器(如 AnkiWeb)。"}},titlebarOffset:{title:"校準標題欄高度",help:"不同的系統以及不同的瀏覽器設定會影響標題欄高度,沙拉查詞會嘗試自動校準,如彈出視窗依然出現偏移可自行調整。",main:"普通視窗",main_help:"普通視窗可能沒有標題欄。",panel:"簡化視窗",panel_help:"沙拉查詞的獨立視窗快捷查詞介面為簡化視窗。",calibrate:"自動校準",calibrateSuccess:"自動校準成功",calibrateError:"自動校準失敗"},headInfo:{acknowledgement:{title:"特別鳴謝",yipanhuasheng:"新增韋氏詞典、美國傳統詞典、牛津學習詞典與歐路生詞同步;更新 Urban 詞典與 Naver 詞典",naver:"協助新增 Naver 韓國語字典",shanbay:"編寫扇貝詞典模組",trans_tw:"提供部分繁體中文翻譯",weblio:"協助新增 Weblio 辭書"},contact_author:"聯絡作者",donate:"支援項目",instructions:"使用說明",report_issue:"軟體使用疑問和建言"},form:{url_error:"不正確的超連結格式。",number_error:"不正確的數字"},preload:{title:"預先下載",auto:"自動查字",auto_help:"字典介面出現時自動搜尋預先載入內容。",clipboard:"剪貼簿",help:"字典介面出現時預先載入內容到搜尋框。",selection:"滑鼠選字"},locations:{CENTER:"居中",TOP:"上方",RIGHT:"右方",BOTTOM:"下方",LEFT:"左方",TOP_LEFT:"左上",TOP_RIGHT:"右上",BOTTOM_LEFT:"左下",BOTTOM_RIGHT:"右下"},import_export_help:"設定已通過瀏覽器自動同步,也可以手動匯入匯出。備份為明文儲存,對安全性有要求的請自行加密。",import:{title:"匯入設定",error:{title:"匯入失敗",parse:"備份解析失敗,格式不正確。",load:"備份載入失敗,瀏覽器無法獲得本地備份。",empty:"備份中沒有發現有效資料。"}},export:{title:"匯出設定",error:{title:"匯出失敗",empty:"沒有設定可以匯出。",parse:"設定解析失敗,無法匯出。"}},dictAuth:{description:"隨著沙拉查詞使用者增多,如經常使用機器翻譯,建議到官網申請帳號以獲得更穩定的體驗以及更準確的結果。以下帳號資料只會保留在瀏覽器中。",dictHelp:"見{詞典}官網。",manage:"管理私用帳號"},third_party_privacy:"第三方隱私",third_party_privacy_help:"沙拉查詞不會收集更多資料,但在查詞時單詞以及相關 cookies 資料會發送給第三方詞典服務(與在該網站上查詞一樣),如果你不希望被該服務獲取資料,請在「詞典設定」中關閉相應詞典。",third_party_privacy_extra:"本特性為沙拉查詞核心功能,無法關閉。",permissions:{success:"申請許可權成功",cancel_success:"取消許可權成功",failed:"申請許可權失敗",cancelled:"申請許可權被使用者取消",missing:"缺少許可權「{{permission}}」。請給予許可權或者關閉相關功能。",clipboardRead:"讀取剪貼簿",clipboardRead_help:"快捷查詞或者右上彈框設定預載入剪貼簿時需要讀取剪貼簿許可權。",clipboardWrite:"寫入剪貼簿",clipboardWrite_help:"機器翻譯詞典標題欄選單複製原文譯文或生詞本匯出到剪貼簿需要寫入剪貼簿許可權。"},unsupportedFeatures:{ff:"火狐尚不支援「{{feature}}」功能。"}}},447:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"沙拉查詞-右上彈框",app_active_title:"啟用滑鼠選字",app_temp_active_title:"對目前頁面暫時關閉滑鼠選字",instant_capture_pinned:"(釘選)",instant_capture_title:"啟用滑鼠懸浮取詞",notebook_added:"已新增",notebook_empty:"目前頁面沒有發現選詞",notebook_error:"無法新增選詞到生字本",page_no_response:"頁面無回應",qrcode_title:"目前頁面二維條碼"}},448:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:{history:"沙拉查詞-查單字紀錄",notebook:"沙拉查詞-生字本"},localonly:"僅本機儲存",column:{add:"新增",date:"日期",edit:"編輯",note:"筆記",source:"來源",trans:"翻譯",word:"單字"},delete:{title:"刪除單字",all:"刪除所有單字",confirm:",確認?",page:"刪除本頁單字",selected:"刪除選取單字"},export:{title:"匯出文字",all:"匯出所有單字",description:"編寫產生的範本,描述每條記錄產生的樣子:",explain:"如何配合 ANKI 等工具",gencontent:"代表的內容",linebreak:{default:"保留換行",n:"換行替換為 \\n",br:"換行替換為 <br>",p:"換行替換為 <p>",space:"換行替換為空格"},page:"輸出本頁單字",placeholder:"預留位置",htmlescape:{title:"對筆記內容中的 HTML 字元進行轉義",text:"轉義 HTML"},selected:"輸出選中單字"},filterWord:{chs:"中文",eng:"英文",word:"單字",phrase:"片語和句子"},wordCount:{selected:"選中 {{count}} 個",selected_plural:"選中 {{count}} 個",total:"共 {{count}} 個",total_plural:"共 {{count}} 個"}}},505:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return s}));var a=n(20),o=n(148);async function r(e){return(await Object(o.a)()).notebook.where("text").equalsIgnoreCase(e.text).count().then(e=>e>0)}async function i({area:e,text:t}){return(await Object(o.a)())[e].where("text").equalsIgnoreCase(t).toArray()}async function s({area:e,itemsPerPage:t,pageNum:n,filters:r={},sortField:i="date",sortOrder:s="descend",searchText:c}){const l=(await Object(o.a)())[e].orderBy(i?Array.isArray(i)?i.map(e=>String(e)):String(i):"date");s&&"descend"!==s||l.reverse();const d=Array.isArray(r.text)&&r.text.length>0;if(d||c){const e=d?r.text.reduce((e,t)=>(e[t]=!0,e),{}):{},t=c?c.toLocaleLowerCase():"";l.filter(n=>{const o=!d||(e.en&&Object(a.e)(n.text)||e.ch&&Object(a.c)(n.text)||e.word&&!/\s/.test(n.text)||e.phra&&/\s/.test(n.text)),r=!c||Object.values(n).some(e=>"string"==typeof e&&-1!==e.toLocaleLowerCase().indexOf(t));return o&&r})}const u=await l.count();void 0!==t&&void 0!==n&&l.offset(t*(n-1)).limit(t);return{total:u,words:await l.toArray()}}},509:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n(148);async function o({area:e,word:t}){return(await Object(a.a)())[e].put(t)}async function r({area:e,words:t}){return(await Object(a.a)())[e].bulkPut(t)}async function i({area:e,dates:t}){const n=await Object(a.a)();return Array.isArray(t)?n[e].bulkDelete(t):n[e].clear()}},510:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const a=n(889);function o(e,t){const n=a(`./${e}/${t}.ts`);return n.locale||n}},567:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return s}));var a=n(209),o=n(101),r=n(1);function i(e,t){return"Basic "+function(e){const t=globalThis;if("function"==typeof t.btoa)return t.btoa(unescape(encodeURIComponent(e)));if(t.Buffer)return t.Buffer.from(e,"utf8").toString("base64");throw new Error("Base64 encoding is not available in the current runtime.")}(`${e}:${t}`)}class s extends a.a{constructor(...e){super(...e),this.meta={},this.handleSyncAlarm=async e=>{if("webdav"!==e.name)return;try{await this.download({})}catch(e){console.error(e),Object(o.c)(s.id,"download")}const t=6e4*this.config.duration||9e5;await r.c.local.set({webdavInterval:Date.now()+t})}}static getDefaultConfig(){return{enable:!1,url:"",user:"",passwd:"",duration:15}}getAuthorizationHeader(e){return i(e.user,e.passwd)}async onStart(){if(this.config.enable)if(this.meta=await Object(o.a)(s.id)||this.meta,await browser.alarms.clear("webdav"),browser.alarms.onAlarm.addListener(this.handleSyncAlarm),"string"!=typeof this.config.url||this.config.url.endsWith("/")||(this.config.url+="/"),this.config.url){const e=+this.config.duration||15,t=Date.now();let n=+(await r.c.local.get("webdavInterval")).webdavInterval;(!n||n<t||t+6e4*e<n)&&(n=t+1e3),await r.c.local.set({webdavInterval:n}),browser.alarms.create("webdav",{when:n,periodInMinutes:e})}else await r.c.local.set({webdavInterval:0})}async checkDir(){let e,t="";try{const e=await fetch(this.config.url,{method:"PROPFIND",headers:{Authorization:this.getAuthorizationHeader(this.config),"Content-Type":'application/xml; charset="utf-8"',Depth:"1"}});if(!e.ok){if(401===e.status)throw new Error("unauthorized");throw new Error("Network error: "+e.status)}t=await e.text()}catch(e){throw new Error("network")}try{t&&(e=(new DOMParser).parseFromString(t,"text/xml"))}catch(e){throw new Error("parse")}if(!e)throw new Error("parse");const n=Array.from(e.querySelectorAll("response"));for(const e in n){const t=n[e].querySelector("href");if(t&&t.textContent&&t.textContent.endsWith("/Saladict/")){if(n[e].querySelector("resourcetype collection"))return!0;throw new Error("dir")}}return!1}async init(){const e=await this.checkDir();if(!e){if(!(await fetch(this.config.url+"Saladict",{method:"MKCOL",headers:{Authorization:this.getAuthorizationHeader(this.config)}})).ok)throw new Error("mkcol")}if(e){try{await this.download({testConfig:this.config,noCache:!0})}catch(e){return}throw new Error("exist")}}async add({force:e}){if(!this.config.url)return void 0;e||await this.download({});const t=await Object(o.b)();if(!t||t.length<=0)return;const n=Date.now();try{var a=JSON.stringify({timestamp:n,words:t})}catch(e){throw new Error("parse")}try{if(!(await fetch(this.config.url+"Saladict/notebook.json",{method:"PUT",headers:{Authorization:this.getAuthorizationHeader(this.config)},body:a})).ok)throw new Error("network")}catch(e){throw new Error("network")}await this.setMeta({timestamp:n,etag:""})}delete({force:e}){return this.add({force:e})}async download({testConfig:e,noCache:t}){const n=e||this.config;if(!n.url)return void 0;const a={Authorization:this.getAuthorizationHeader(n)};e||t||null==this.meta.etag||(a["If-None-Match"]=this.meta.etag,a["If-Modified-Since"]=this.meta.etag);try{var r=await fetch(n.url+(n.url.endsWith("/")?"":"/")+"Saladict/notebook.json",{method:"GET",headers:a});if(304===r.status)return;if(!r.ok)throw new Error}catch(e){throw new Error("network")}try{var i=await r.json()}catch(e){throw new Error("parse")}if(!Array.isArray(i.words)||i.words.some(e=>!e.date))throw new Error("format");if(!i.timestamp)throw new Error("timestamp");if(e)return;const s=this.meta;(!s.timestamp||i.timestamp>=s.timestamp)&&await this.setMeta({timestamp:i.timestamp,etag:r.headers.get("ETag")||s.etag||""}),!t&&s.timestamp&&i.timestamp<=s.timestamp||await Object(o.f)(i.words)}async destroy(){browser.alarms.onAlarm.removeListener(this.handleSyncAlarm),await browser.alarms.clear("webdav")}setMeta(e){return this.meta=e,Object(o.e)(s.id,e)}async getMeta(){const e=await Object(o.a)(s.id);this.meta=e||{}}}s.id="webdav"},597:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return s})),n.d(t,"moedictSearch",(function(){return c}));var a=n(3),o=n(47),r=n.n(o);const i=async e=>"https://www.moedict.tw/"+(await Object(a.c)())(e),s=(e,t,n,a)=>c("a",e,t,n.dicts.all.guoyu.options);async function c(e,t,n,o){const i=await Object(a.c)(),{data:s}=await r.a.get(`https://www.moedict.tw/${e}/${encodeURIComponent(i(t.replace(/\s+/g,"")))}.json`).catch(a.i);if(!s||!s.h)return Object(a.j)();o.trans||(s.translation=void 0);const c={result:s};for(const e of s.h)e["="]&&(e["="]=`https://203146b5091e8f0aafda-15d41c68795720c6e932125f5ace0c70.ssl.cf1.rackcdn.com/${e["="]}.ogg`),c.audio||(c.audio={py:e["="]});return c}},607:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return u}));var a=n(47),o=n.n(a),r=n(601),i=n.n(r),s=n(86),c=n(209),l=n(101),d=n(1);class u extends c.a{constructor(...e){super(...e),this.noteFileds=void 0,this.handleMessage=e=>{switch(e.type){case"ANKI_CONNECT_FIND_WORD":return this.findNote(e.payload).catch(()=>"");case"ANKI_CONNECT_UPDATE_WORD":return this.updateWord(e.payload.cardId,e.payload.word).catch(e=>Promise.reject(e))}}}static getDefaultConfig(){return{enable:!1,host:"127.0.0.1",port:"8765",key:null,deckName:"Saladict",noteType:"Saladict Word",tags:"",escapeContext:!0,escapeTrans:!0,escapeNote:!0,syncServer:!1}}async init(){if(!await this.isServerUp())throw new Error("server");const e=await this.request("deckNames");if(!(null==e?void 0:e.includes(this.config.deckName)))throw new Error("deck");const t=await this.request("modelNames");if(!(null==t?void 0:t.includes(this.config.noteType)))throw new Error("notetype")}onStart(){d.a.addListener(this.handleMessage)}async destroy(){d.a.removeListener(this.handleMessage)}async findNote(e){this.noteFileds||(this.noteFileds=await this.getNotefields());try{return(await this.request("findNotes",{query:`deck:${this.config.deckName} ${this.noteFileds[0]}:${e}`}))[0]}catch(e){!1}}async add({words:e,force:t}){if(!await this.isServerUp())throw new Error("server");if(t&&(e=await Object(l.b)()),e&&!(e.length<=0)&&(await Promise.all(e.map(async e=>{if(!await this.findNote(e.date))try{await this.addWord(e)}catch(e){throw new Error("add")}})),this.config.syncServer))try{await this.request("sync")}catch(e){!1}}async addWord(e){return this.request("addNote",{note:{deckName:this.config.deckName,modelName:this.config.noteType,options:{allowDuplicate:!1,duplicateScope:"deck"},tags:this.extractTags(),fields:await this.wordToFields(e)}})}async updateWord(e,t){return this.request("updateNoteFields",{note:{id:e,fields:await this.wordToFields(t)}})}async addDeck(){return this.request("createDeck",{deck:this.config.deckName})}async addNoteType(){this.noteFileds=["Date","Text","Translation","Context","ContextCloze","Note","Title","Url","Favicon","Audio"],await this.request("createModel",{modelName:this.config.noteType,inOrderFields:this.noteFileds,css:".card {\n font-family: arial;\n font-size: 20px;\n text-align: center;\n color: #333;\n background-color: white;\n}\n\na {\n color: #5caf9e;\n}\n\ninput {\n border: 1px solid #eee;\n}\n\nsection {\n margin: 1em 0;\n}\n\n.trans {\n border: 1px solid #eee;\n padding: 0.5em;\n}\n\n.trans_title {\n display: block;\n font-size: 0.9em;\n font-weight: bold;\n}\n\n.trans_content {\n margin-bottom: 0.5em;\n}\n\n.cloze {\n font-weight: bold;\n color: #f9690e;\n}\n\n.tsource {\n position: relative;\n font-size: .8em;\n}\n\n.tsource img {\n height: .7em;\n}\n\n.tsource a {\n text-decoration: none;\n}\n\n.typeGood {\n color: #fff;\n background: #1EBC61;\n}\n\n.typeBad {\n color: #fff;\n background: #F75C4C;\n}\n\n.typeMissed {\n color: #fff;\n background: #7C8A99;\n}\n\n.favicon {\n display: inline-block;\n width: 1em;\n height: 1em;\n background: center/cover no-repeat;\n}\n",cardTemplates:[{Name:"Saladict Cloze",Front:p(!0,this.noteFileds),Back:p(!1,this.noteFileds)}]}),this.noteFileds=await this.getNotefields(),await this.request("updateModelTemplates",{model:{name:this.config.noteType,templates:{"Saladict Cloze":{Front:p(!0,this.noteFileds),Back:p(!1,this.noteFileds)}}}})}async request(e,t){const{data:n}=await o()({method:"post",url:`http://${this.config.host}:${this.config.port}`,data:{key:this.config.key||null,version:6,action:e,params:t||{}}});if(!n||!Object.prototype.hasOwnProperty.call(n,"result"))throw new Error("Deprecated Anki Connect version");if(n.error)throw new Error(n.error);return n.result}async wordToFields(e){return this.noteFileds||(this.noteFileds=await this.getNotefields()),{[this.noteFileds[0]]:""+e.date,[this.noteFileds[1]]:e.text||"",[this.noteFileds[2]]:this.parseTrans(e.trans,this.config.escapeTrans),[this.noteFileds[3]]:this.multiline(e.context,this.config.escapeContext),[this.noteFileds[4]]:this.multiline(e.context.split(e.text).join(`{{c1::${e.text}}}`),this.config.escapeContext)||`{{c1::${e.text}}}`,[this.noteFileds[5]]:this.multiline(e.note,this.config.escapeNote),[this.noteFileds[6]]:e.title||"",[this.noteFileds[7]]:e.url||"",[this.noteFileds[8]]:e.favicon||"",[this.noteFileds[9]]:""}}async getNotefields(){const e=await this.request("modelFieldNames",{modelName:this.config.noteType});return(null==e?void 0:e.includes("Date."))?["Date.","Text.","Translation.","Context.","ContextCloze.","Note.","Title.","Url.","Favicon.","Audio."]:(null==e?void 0:e.includes("日期"))?["日期","文字","Translation","Context","ContextCloze","笔记","Title","Url","Favicon","Audio"]:["Date","Text","Translation","Context","ContextCloze","Note","Title","Url","Favicon","Audio"]}multiline(e,t){return(e=e.trim())?(t&&(e=i()(e)),e.trim().replace(/\n/g,"<br/>")):""}parseTrans(e,t){if(!(e=e.trim()))return"";const n=Object(s.b)(e),a=Object.keys(n);if(a.length<=0)return this.multiline(e,t);const o=a.map(e=>`<span class="trans_title">${e}</span><div class="trans_content">${n[e]}</div>`).join("");return e.split(/\[:: \w+ ::\](?:[\s\S]+?)(?:-{15})/).map(e=>this.multiline(e,t)).join(`<div class="trans">${o}</div>`)}extractTags(){return this.config.tags.split(/,|,/).map(e=>e.trim()).filter(Boolean)}async isServerUp(){try{return null!=await this.request("version")}catch(e){return!1}}}function p(e,t){return`{{#${t[4]}}}\n<section>{{cloze:${t[4]}}}</section>\n<section>{{type:cloze:${t[4]}}}</section>\n{{#${t[2]}}}\n<section>{{${t[2]}}}</section>\n{{/${t[2]}}}\n{{/${t[4]}}}\n\n{{^${t[4]}}}\n<h1>{{${t[1]}}}</h1>\n{{#${t[2]}}}\n<section>{{${t[2]}}}</section>\n{{/${t[2]}}}\n{{/${t[4]}}}\n\n{{#${t[5]}}}\n<section>{{${(e?"hint:":"")+t[5]}}}</section>\n{{/${t[5]}}}\n\n{{#${t[6]}}}\n<section class="tsource">\n<hr />\n{{#${t[8]}}}\n<span class="favicon" style="background-image:url({{${t[8]}}})"></span>\n{{/${t[8]}}}\n<a href="{{${t[7]}}}">{{${t[6]}}}</a>\n</section>\n{{/${t[6]}}}\n`}u.id="ankiconnect"},608:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return s}));var a=n(209),o=n(101),r=n(47),i=n.n(r);class s extends a.a{static getDefaultConfig(){return{enable:!1,token:"",syncAll:!1}}async init(){const e=await this.getWordbooks();if(0===e.length||!e)throw new Error("no_wordbook")}async add(e){await this.addWordOrPatch(e)}async addWordOrPatch({words:e,force:t}){if(!this.config.enable)return 0;if(t&&(e=await Object(o.b)()),!e||e.length<=0)return 0;const n=t?e.map(e=>e.text):e[0].text;await this.requestAddWords(n)}async getWordbooks(){const e=await i()({method:"get",url:"https://api.frdic.com/api/open/v1/studylist/category",params:{language:"en"},headers:{Authorization:this.config.token}}).catch(e=>{throw e.response&&401===e.response.status?new Error("illegal_token"):new Error("network")});if(!(null==e?void 0:e.data))throw new Error("network");const{data:t}=e;if(!t||!Object.prototype.hasOwnProperty.call(t,"data"))throw new Error("network");return t.data}async requestAddWords(e){return await i()({method:"post",url:"https://api.frdic.com/api/open/v1/studylist/words",data:{id:"0",language:"en",words:"string"==typeof e?[e]:e},headers:{Authorization:this.config.token}}).catch(e=>{throw e.response&&401===e.response.status?new Error("illegal_token"):new Error("network")})}}s.id="eudic"},609:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return l}));var a=n(209),o=n(101),r=n(1),i=n(42),s=n(2),c=n(274);class l extends a.a{static getDefaultConfig(){return{enable:!1}}static openLogin(){return Object(r.b)("https://www.shanbay.com/web/account/login")}async init(){if(!await this.isLogin())throw new Error("login")}async add(e){await this.addInternal(e)}async addInternal({words:e,force:t}){if(!this.config.enable)return 0;if(!await this.isLogin())return this.notifyLogin(),0;if(t&&(e=await Object(o.b)()),!e||e.length<=0)return 0;let n=0;for(let t=0;t<e.length;t++){try{await this.addWord(e[t].text)}catch(a){if("word"!==a.message)throw a;n+=1,Object(o.c)(l.id,"word",`「${e[t].text}」`)}(t+1)%50==0?await Object(i.d)(9e5):await Object(i.d)(500)}return n}async addWord(e){let t,n;try{const n="https://apiv3.shanbay.com/abc/words/senses?vocabulary_content="+encodeURIComponent(e);t=await fetch(n).then(e=>e.json())}catch(e){throw new Error("network")}if(!t||!t.id)throw new Error("word");try{n=await fetch("https://apiv3.shanbay.com/wordscollection/words",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vocab_id:t.id,business_id:6})}).then(e=>e.json())}catch(e){throw new Error("network")}if(!n||!n.created_at)throw new Error("word")}async isLogin(){return Boolean(await browser.cookies.get({url:"http://www.shanbay.com",name:"auth_token"}))}async notifyLogin(){const{i18n:e}=await c.a.getInstance();if(await e.loadNamespaces("sync"),browser.notifications){browser.notifications.onClicked.addListener(d),browser.notifications.onClosed.removeListener(u),browser.notifications.onButtonClicked&&browser.notifications.onButtonClicked.addListener(d);const t={type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict "+e.t("sync:shanbay.title"),message:e.t("sync:shanbay.error.login"),eventTime:Date.now()+1e4,priority:2};s.d||(t.buttons=[{title:e.t("sync:shanbay.open")}]),browser.notifications.create("shanbay-login",t)}}}function d(e){"shanbay-login"===e&&(l.openLogin(),u(e))}function u(e){"shanbay-login"===e&&browser.notifications&&(browser.notifications.onClicked.removeListener(d),browser.notifications.onClosed.removeListener(u),browser.notifications.onButtonClicked&&browser.notifications.onButtonClicked.removeListener(d))}l.id="shanbay"},636:function(e,t,n){"use strict";n.r(t),n.d(t,"startSyncServiceInterval",(function(){return h})),n.d(t,"syncServiceUpload",(function(){return f})),n.d(t,"syncServiceDownload",(function(){return g}));var a=n(100),o=n(67),r=n(141),i=n(39),s=n(10),c=n(1),l=n(101);const d=n(1254),u=d.keys().reduce((e,t)=>{const n=d(t).Service;return e.set(n.id,n)},new Map),p=new Map;function h(){Object(a.a)(Object(o.a)(c.c.sync.get("syncConfig")).pipe(Object(r.a)("syncConfig")),c.c.sync.createStream("syncConfig").pipe(Object(r.a)("newValue"))).pipe(Object(i.a)(e=>!!e),Object(s.a)(e=>(e.webdav&&!Object.prototype.hasOwnProperty.call(e.webdav,"enable")&&(e.webdav.enable=!!e.webdav.url),e))).subscribe(async e=>{try{await Promise.all([...p.values()].map(e=>e.destroy()))}catch(e){console.error(e)}p.clear(),e&&u.forEach(t=>{var n;if(null===(n=e[t.id])||void 0===n?void 0:n.enable){const n=new t(e[t.id]);p.set(t.id,n),n.onStart()}})})}async function f(e){p.forEach(async(t,n)=>{try{"ADD"===e.action?await t.add({words:e.words,force:e.force}):"DELETE"===e.action&&await t.delete({dates:e.dates,force:e.force})}catch(t){var a,o;Object(l.c)(n,t,"ADD"===e.action&&(null===(a=e.words)||void 0===a?void 0:a[0])?`「${null===(o=e.words)||void 0===o?void 0:o[0].text}」`:"")}})}async function g(){await Promise.all([...p.values()].map(e=>e.download({})))}},78:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return s}));var a=n(107),o=n(87);const r=function(e){return{version:1,id:e||Object(a.a)(),mtaAutoUnfold:"",waveform:!0,stickyFold:!1,dicts:{selected:["bing","cobuild","cambridge","youdao","urban","vocabulary","caiyun","youdaotrans","zdic","guoyu","liangan"],all:Object(o.b)()}}};function i(e){return{id:e||Object(a.a)(),name:"%%_default_%%"}}function s(){const e=i(),t=r(e.id),n=function(){const e=i();e.name="%%_sentence_%%";const t=r(e.id);t.dicts.selected=["bing","renren","eudic","cobuild","cambridge","longman"];const n=t.dicts.all;return n.bing.options.tense=!1,n.bing.options.phsym=!1,n.bing.options.cdef=!1,n.bing.options.related=!1,n.bing.options.sentence=9999,n.eudic.options.resultnum=9999,n.longman.options.wordfams=!1,n.longman.options.collocations=!1,n.longman.options.grammar=!1,n.longman.options.thesaurus=!1,n.longman.options.examples=!0,n.longman.options.bussinessFirst=!1,n.longman.options.related=!1,{idItem:e,profile:t}}(),a=function(){const e=i();e.name="%%_translation_%%";const t=r(e.id);return t.dicts.selected=["google","tencent","baidu","caiyun","youdaotrans","zdic","guoyu","liangan"],t.mtaAutoUnfold="always",{idItem:e,profile:t}}(),o=function(){const e=i();e.name="%%_scholar_%%";const t=r(e.id);t.dicts.selected=["cambridge","cobuild","etymonline","google","youdaotrans","zdic","guoyu","liangan"];const n=t.dicts.all;return n.google.selectionWC.min=5,n.youdaotrans.selectionWC.min=5,{idItem:e,profile:t}}(),s=function(){const e=i();e.name="%%_nihongo_%%";const t=r(e.id);return t.dicts.selected=["mojidict","hjdict","weblioejje","weblio","google","tencent","caiyun","wikipedia"],t.dicts.all.wikipedia.options.lang="ja",t.waveform=!1,{idItem:e,profile:t}}();return{profileIDList:[e,n.idItem,a.idItem,o.idItem,s.idItem],profiles:[t,n.profile,a.profile,o.profile,s.profile]}}},80:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return g}));var a=n(221),o=n.n(a),r=n(47),i=n.n(r),s=n(222),c=n.n(s),l=n(1),d=n(107),u=n(2);async function p(e){const t=new o.a,n=t.getBrowser(),a=t.getOS();try{await f({t:"pageview",dp:e,cd1:n.name||"None",cd2:(n.version||"0.0").split(".").slice(0,3).join("."),cd3:a.name||"None",cd4:a.version||"0.0",de:"UTF-8",dl:document.location.href,sd:screen.colorDepth+"-bit",sr:screen.width+"x"+screen.height,ul:"zh-cn"})}catch(e){console.error("Report pageview error",e)}}async function h(e){const t={t:"event",ec:e.category,ea:e.action};null!=e.label&&(t.el=e.label),null!=e.value&&(t.ev=e.value);try{await f(t)}catch(e){console.error("Report event error",e)}}async function f(e){if(!Object(u.c)())return l.a.send({type:"REQUEST_GA",payload:e});let t=(await l.c.sync.get("gacid")).gacid;return t||(t=c()(),l.c.sync.set({gacid:t})),i()({url:"https://www.google-analytics.com/collect",method:"post",headers:{"content-type":"text/plain;charset=UTF-8"},data:new URLSearchParams({v:"1",tid:"UA-49163616-4",cid:t,z:Object(d.a)(),...e})})}function g(){l.a.addListener("REQUEST_GA",({payload:e})=>{f(e)})}},818:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return s}));var a=n(31),o=n(3);const r=e=>"https://ahdictionary.com/word/search.html?q="+e,i="https://ahdictionary.com",s=(e,t,n,r)=>{const s=n.dicts.all.ahdict.options;return Object(a.a)("https://ahdictionary.com/word/search.html?q="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>function(e,{resultnum:t}){const n=[],a=Array.from(e.querySelectorAll("#results>table"));if(a.length<=0)return Object(o.j)();for(let e=0;e<a.length&&n.length<t;e++){const t=a[e],r={title:"",meaning:[],idioms:[]};if(t.querySelector(".rtseg")){const e=t.querySelectorAll(".rtseg>a");e[1]&&e[1].getAttribute("href")&&(r.pron=`${i}${e[1].getAttribute("href")}`),r.title=Object(o.g)(e[0],"font")}Array.from(t.querySelectorAll(".pseg")).map(e=>{r.meaning.push(Object(o.e)(i,e).replace(/<\/?(span|font)[^>]*>/g,""))});const s=Array.from(t.querySelectorAll(".idmseg"));s.length&&s.map(e=>{const t={};t.title=Object(o.g)(e,"b"),t.eg=Object(o.g)(e,".ds-single"),t.tips=Object(o.g)(e,"span+i"),r.idioms.push(t)});const c=t.querySelector(".etyseg");c&&(r.origin=Object(o.e)(i,c).replace(/<\/?(span|font)[^>]*>/g,""));const l=t.querySelector(".usen");l&&(r.usageNote=Object(o.e)(i,l).replace(/<\/?(span|font|i)[^>]*>/g,"")),n.push(r)}return n.length>0?{result:n}:Object(o.j)()}(e,s))}},83:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(171),o=n(172),r=n(173),i=n(174),s=n(175);const c={baidu:a.auth,caiyun:o.auth,sogou:r.auth,tencent:i.auth,youdaotrans:s.auth};var l=n(2);const d=browser.i18n.getUILanguage(),u="zh-CN"===d?"zh-CN":"zh-TW"===d||"zh-HK"===d?"zh-TW":"en",p=function(){return{version:14,active:!0,runInBg:!1,analytics:!0,updateCheck:!0,noTypeField:!1,animation:!0,langCode:u,panelWidth:450,panelMaxHeightRatio:80,bowlOffsetX:15,bowlOffsetY:-45,darkMode:!1,panelCSS:"",fontSize:13,pdfSniff:!1,pdfStandalone:"",pdfWhitelist:[],pdfBlacklist:[["^(http|https)://[^/]*?cnki\\.net(/.*)?$","*://*.cnki.net/*"],["^(http|https)://[^/]*?googleusercontent\\.com(/.*)?$","*://*.googleusercontent.com/*"],["^(http|https)://sh-download\\.weiyun\\.com(/.*)?$","*://sh-download.weiyun.com/*"]],searchHistory:!1,searchHistoryInco:!1,editOnFav:!0,searchSuggests:!0,touchMode:!1,mode:{icon:!0,direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},pinMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},panelMode:{direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},qsPanelMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!0,meta:!1},instant:{enable:!1,key:"alt",delay:600}},bowlHover:!0,doubleClickDelay:450,tripleCtrl:!0,qsPreload:"clipboard",qsAuto:!0,qsLocation:"CENTER",qsFocus:!0,defaultPinned:!1,qsStandalone:!0,qssaHeight:600,qssaSidebar:"",qssaPageSel:!0,qssaRectMemo:!1,baWidth:-1,baHeight:550,baPreload:"selection",baAuto:!1,baOpen:"popup_panel",ctxTrans:{google:!0,youdaotrans:!0,baidu:!0,tencent:!1,caiyun:!1,sogou:!1},language:{chinese:!0,english:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},autopron:{cn:{dict:"",list:["zdic","guoyu"]},en:{dict:"",list:["bing","cambridge","cobuild","eudic","longman","urban","youdao"],accent:"uk"},machine:{dict:"",list:["google","sogou","tencent","baidu","caiyun"],src:"trans"}},whitelist:[],blacklist:[["^https://stackedit\\.io(/.*)?$","https://stackedit.io/*"],["^https://docs\\.google\\.com(/.*)?$","https://docs.google.com/*"],["^https://docs\\.qq\\.com(/.*)?$","https://docs.qq.com/*"]],contextMenus:{selected:l.d||!u.startsWith("zh-")?["view_as_pdf","google_translate","saladict"]:["view_as_pdf","caiyuntrs","google_translate","saladict"],all:{baidu_page_translate:"x",baidu_search:"https://www.baidu.com/s?ie=utf-8&wd=%s",bing_dict:"https://cn.bing.com/dict/?q=%s",bing_search:"https://www.bing.com/search?q=%s",caiyuntrs:"x",cambridge:"http://dictionary.cambridge.org/spellcheck/english-chinese-simplified/?q=%s",copy_pdf_url:"x",dictcn:"https://dict.eudic.net/dicts/en/%s",etymonline:"http://www.etymonline.com/index.php?search=%s",google_cn_page_translate:"x",google_page_translate:"x",google_search:"https://www.google.com/search?safe=off&newwindow=1&q=%s",google_translate:"https://translate.google.com/#auto/zh-CN/%s",google_cn_translate:"https://translate.google.cn/#auto/zh-CN/%s",guoyu:"https://www.moedict.tw/%s",iciba:"http://www.iciba.com/%s",liangan:"https://www.moedict.tw/~%s",longman_business:"http://www.ldoceonline.com/search/?q=%s",merriam_webster:"http://www.merriam-webster.com/dictionary/%s",microsoft_page_translate:"x",oxford:"http://www.oxforddictionaries.com/us/definition/english/%s",saladict:"x",saladict_standalone:"x",sogou_page_translate:"x",sogou:"https://fanyi.sogou.com/#auto/zh-CHS/%s",termonline:"https://www.termonline.cn/list.htm?k=%s",view_as_pdf:"x",youdao_page_translate:"x",youdao:"http://dict.youdao.com/w/%s",youglish:"https://youglish.com/search/%s"}},showedDictAuth:!1,dictAuth:JSON.parse(JSON.stringify(c))}}},832:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(31),o=n(3);const r=e=>"https://cn.bing.com/dict/search?q="+encodeURIComponent(e.replace(/\s+/g," ")),i="https://cn.bing.com",s=["data-pronunciation","data-mp3link","audiomd5"],c=(e,t,n,r)=>{const s=n.dicts.all.bing;return Object(a.a)("https://cn.bing.com/dict/clientsearch?mkt=zh-CN&setLang=zh&form=BDVEHC&ClientVer=BDDTV3.5.1.4320&q="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(async e=>{const n=await Object(o.c)(t.langCode);return e.querySelector(".client_def_hd_hd")?function(e,t,n){const a={result:{type:"lex",title:Object(o.g)(e,".client_def_hd_hd",n)}};if(t.phsym){const t=Array.from(e.querySelectorAll(".client_def_hd_pn_list"));t.length>0&&(a.result.phsym=t.map(e=>({lang:Object(o.g)(e,".client_def_hd_pn"),pron:d(e)})),a.audio=a.result.phsym.reduce((e,{lang:t,pron:n})=>(/us|美/i.test(t)?e.us=n:/uk|英/i.test(t)&&(e.uk=n),e),{}))}if(t.cdef){const t=e.querySelector(".client_def_container");if(t){const e=Array.from(t.querySelectorAll(".client_def_bar"));e.length>0&&(a.result.cdef=e.map(e=>({pos:Object(o.g)(e,".client_def_title_bar",n),def:Object(o.g)(e,".client_def_list",n)})))}}if(t.tense){const t=Array.from(e.querySelectorAll(".client_word_change_word"));t.length>0&&(a.result.infs=t.map(e=>(e.textContent||"").trim()))}if(t.sentence>0){const r=e.querySelectorAll(".client_sentence_list"),s=[];for(let e=0;e<r.length&&s.length<t.sentence;e++){const t=r[e];t.querySelectorAll(".client_sen_en_word").forEach(e=>{u(e,Object(o.g)(e))}),t.querySelectorAll(".client_sen_cn_word").forEach(e=>{u(e,Object(o.g)(e,n))}),t.querySelectorAll(".client_sentence_search").forEach(e=>{p(e,Object(o.g)(e))}),s.push({en:Object(o.e)(i,t,".client_sen_en"),chs:Object(o.e)(i,t,{selector:".client_sen_cn",transform:n}),source:Object(o.g)(t,".client_sentence_list_link"),mp3:d(t)})}a.result.sentences=s}if(Object.keys(a.result).length>2)return a;return Object(o.j)()}(e,s.options,n):e.querySelector(".client_trans_head")?function(e,t){const n=Object(o.g)(e,".client_sen_cn",t);if(n)return{result:{type:"machine",mt:n}};return Object(o.j)()}(e,n):s.options.related&&e.querySelector(".client_do_you_mean_title_bar")?function(e,t,n){const a={result:{type:"related",title:Object(o.g)(e,".client_do_you_mean_title_bar",n),defs:[]}};if(e.querySelectorAll(".client_do_you_mean_area").forEach(e=>{const t=e.querySelectorAll(".client_do_you_mean_list");t.length>0&&a.result.defs.push({title:Object(o.g)(e,".client_do_you_mean_title",n),meanings:Array.from(t).map(e=>{const t=Object(o.g)(e,".client_do_you_mean_list_word",n);return{href:"https://cn.bing.com/dict/search?q="+t,word:t,def:Object(o.g)(e,".client_do_you_mean_list_def",n)}})})}),a.result.defs.length>0)return a;return Object(o.j)()}(e,0,n):Object(o.j)()})};function l(e){const t=(e.getAttribute("onclick")||"").match(/((?:https?:)?\/\/[^'")\s]+\.mp3(?:\?[^'")\s]*)?|\/[^'")\s]+\.mp3(?:\?[^'")\s]*)?)/);return t?new URL(t[1],i).href:""}function d(e){if(!e)return"";const t=[];e instanceof Element&&t.push(e),t.push(...Array.from(e.querySelectorAll("[data-pronunciation], [data-mp3link], [audiomd5], [onclick]")));for(const e of t){for(const t of s)if(e.hasAttribute(t))return Object(o.d)(i,e,t);const t=l(e);if(t)return t}return""}function u(e,t){e.replaceWith(e.ownerDocument.createTextNode(t))}function p(e,t){const n=e.ownerDocument.createElement("span");n.className="dictBing-SentenceItem_HL",n.textContent=t,e.replaceWith(n)}},833:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return s})),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return l}));var a=n(16),o=n(665),r=n(12),i=n(353);const s=Object(a.a)(()=>new o.Caiyun({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.CAIYUN_TOKEN?{token:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.CAIYUN_TOKEN}:void 0})),c=()=>"https://fanyi.caiyunapp.com/",l=async(e,t,n,a)=>{const o=s(),c=o.getSupportLanguages();let{sl:l,tl:d,text:u}=await Object(r.a)(o,e,n.dicts.all.caiyun,t,a);const p=Object(i.getTranslator)();let h;try{h=await p.translate(u,l,d),c.includes(h.from)&&(l=h.from)}catch(e){}const f=t.dictAuth.caiyun.token,g=f?{token:f}:void 0;try{const e=await o.translate(u,l,d,g);return e.origin.tts=await p.textToSpeech(e.origin.paragraphs.join("\n"),e.from),e.trans.tts=await p.textToSpeech(e.trans.paragraphs.join("\n"),e.to),Object(r.c)({result:{id:"caiyun",sl:e.from,tl:e.to,slInitial:n.dicts.all.caiyun.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},c)}catch(e){return Object(r.c)({result:{id:"caiyun",sl:l,tl:d,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},834:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var a=n(31),o=n(97),r=n(3);const i=async(e,t,n)=>{let{lang:a}=n.dicts.all.cambridge.options;if("default"===a)switch(t.langCode){case"zh-CN":a="en-chs";break;case"zh-TW":a="en-chz";break;default:a="en"}switch(a){case"en":return"https://dictionary.cambridge.org/search/direct/?datasetsearch=english&q="+encodeURIComponent(e.trim().split(/\s+/).join("-"));case"en-chs":return"https://dictionary.cambridge.org/zhs/%E6%90%9C%E7%B4%A2/direct/?datasetsearch=english-chinese-simplified&q="+encodeURIComponent(e);case"en-chz":{const t=await Object(r.c)();return"https://dictionary.cambridge.org/zht/%E6%90%9C%E7%B4%A2/direct/?datasetsearch=english-chinese-traditional&q="+encodeURIComponent(t(e))}}},s="https://dictionary.cambridge.org",c=async(e,t,n,c)=>{const d=await i(e,t,n);try{return function(e,t){const n=[],a=[],i={};if(e.querySelectorAll(".entry-body__el").forEach((e,t)=>{if(!Object(r.g)(e,".headword"))return;const c=e.querySelector(".pos-header");c&&(c.querySelectorAll(".dpron-i").forEach(e=>{const t=e.querySelector(".daud");if(!t)return;const n=t.querySelector('source[type="audio/mpeg"]');if(!n)return;const a=Object(r.d)(s,n,"src");a&&(t.replaceWith(Object(o.d)(a)),!i.uk&&e.classList.contains("uk")&&(i.uk=a),!i.us&&e.classList.contains("us")&&(i.us=a))}),Object(r.m)(c,".share")),l(e);const d="d-cambridge-entry"+t;n.push({id:d,html:Object(r.e)(s,e)}),a.push({key:"#"+t,value:d,label:"#"+Object(r.g)(e,".di-title")+" "+Object(r.g)(e,".posgram")})}),n.length<=0){const t=e.querySelector(".idiom-block");t&&(Object(r.m)(t,".bb.hax"),l(t),n.push({id:"d-cambridge-entry-idiom",html:Object(r.e)(s,t)}))}if(n.length<=0&&t.related){const t=e.querySelector("link[rel=canonical]");if(t&&/dictionary\.cambridge\.org\/([^/]+\/)?spellcheck\//.test(t.getAttribute("href")||"")){const t=e.querySelector(".hfl-s.lt2b.lmt-10.lmb-25.lp-s_r-20");t&&n.push({id:"d-cambridge-entry-related",html:Object(r.e)(s,t)})}}if(n.length>0)return{result:n,audio:i,catalog:a};return Object(r.j)()}(await Object(a.a)(d,{withCredentials:!0}),n.dicts.all.cambridge.options)}catch(t){return function(e){return e&&e.response&&403===e.response.status}(t)?Object(r.h)({text:e,url:d}):Object(r.i)(t)}};function l(e){return e.querySelectorAll(".daccord_h").forEach(e=>{e.parentElement.classList.add("amp-accordion")}),e.querySelectorAll("amp-img").forEach(e=>{const t=document.createElement("img");t.setAttribute("src",Object(r.d)(s,e,"src"));const n=["width","height","title"];for(const a of n){const n=e.getAttribute(a);n&&t.setAttribute(a,n)}e.replaceWith(t)}),e.querySelectorAll("amp-audio").forEach(e=>{const t=e.querySelector("source");if(t){const n=Object(r.d)(s,t,"src");if(n)return void e.replaceWith(Object(o.d)(n))}e.remove()}),e.querySelectorAll("a.had").forEach(r.b),e}},835:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return s}));var a=n(31),o=n(3),r=n(97);const i=e=>"https://www.collinsdictionary.com/dictionary/english/"+encodeURIComponent(e.replace(/\s+/g,"-")),s=async(e,t,n,r)=>{e=encodeURIComponent(e.replace(/\s+/g,"-"));const{options:i}=n.dicts.all.cobuild,s=["https://www.collinsdictionary.com/dictionary/english/","https://www.collinsdictionary.com/zh/dictionary/english/"];i.cibaFirst&&s.reverse();try{return c(await Object(a.a)(s[0]+e),t)}catch(n){let r;try{r=await Object(a.a)(s[1]+e)}catch(e){return Object(o.i)()}return c(r,t)}};async function c(e,t){const n=await Object(o.c)(t.langCode),a={type:"collins",sections:[]},i={};return a.sections=[...e.querySelectorAll("[data-type-block]")].filter(e=>{const t=e.dataset.typeBlock||"";return t&&"Video"!==t&&"Trends"!==t&&"英语词汇表"!==t&&"趋势"!==t}).map(e=>{const a=e.dataset.typeBlock||"",s=e.dataset.titleBlock||"",c=e.dataset.numBlock||"",d=a+s+c,u=e.className||"";if("Learner"===a){if(!i.uk){const t=l(e);t&&(i.uk=t)}}else"English"===a?i.uk=l(e):"American"===a&&(i.us=l(e));const p=e.querySelector("#videos .video");if(p){const e=p.querySelector(".youtube-video");if(e&&e.dataset.embed){const n=t.panelWidth-25;return{id:d,className:u,type:a,title:s,num:c,content:`<iframe width="${n}" height="${n/560*315}" src="https://www.youtube-nocookie.com/embed/${e.dataset.embed}" frameborder="0" allow="accelerometer; encrypted-media"></iframe>`}}}return e.querySelectorAll(".audio_play_button").forEach(e=>{e.replaceWith(Object(r.d)(e.dataset.srcMp3))}),e.querySelectorAll("a.type-thesaurus").forEach(o.b),{id:d,className:u,type:a,title:s,num:c,content:Object(o.e)("https://www.collinsdictionary.com",e,{transform:n})}}),a.sections.length>0?{result:a,audio:i}:Object(o.j)()}function l(e){const t=e.querySelector(".pron .audio_play_button");if(t){const e=t.dataset.srcMp3;if(e)return e}}},836:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return s}));var a=n(31),o=n(3);const r=e=>"http://www.etymonline.com/search?q="+e,i="https://www.etymonline.com",s=(e,t,n,r)=>{const s=n.dicts.all.etymonline.options;return e=encodeURIComponent(e.replace(/\s+/g," ")),Object(a.a)("https://www.etymonline.com/word/"+e).catch(()=>Object(a.a)("https://www.etymonline.com/search?q="+e)).catch(o.i).then(e=>function(e,t){const n=[],a=[];(function(e,t,n,a){const r=Array.from(e.querySelectorAll('[class*="word--"]'));for(let s=0;s<r.length&&n.length<t.resultnum;s++){const l=r[s],d=Object(o.g)(l,'[class*="word__name--"]').trim();if(!d)continue;const h=l.querySelector('[class*="word__defination--"]>*'),f=c(e,h);f&&p(n,a,{title:d,def:f,href:Object(o.d)(i,l,"href"),chart:t.chart?u(l.querySelector('[class*="chart--"] img')):""})}})(e,t,n,a),0===n.length&&function(e,t,n,a){var o;const r=null===(o=e.querySelector('link[rel="canonical"]'))||void 0===o?void 0:o.getAttribute("href"),i=Array.from(e.querySelectorAll("section.max-w-none"));for(let o=0;o<i.length&&n.length<t.resultnum;o++){const s=i[o],h=s.querySelector("h2"),f=Array.from(s.children).find(e=>"SECTION"===e.tagName),g=l(h),m=c(e,f);h&&g&&m&&p(n,a,{title:g,def:m,href:d(r,h.id),chart:t.chart?u(s.querySelector('img[src*="chart/"]')):""})}}(e,t,n,a);0===n.length&&function(e,t,n,a){const r=Array.from(e.querySelectorAll("a.w-full.group[href]"));for(let s=0;s<r.length&&n.length<t.resultnum;s++){const h=r[s],f=h.querySelector("[id]")||h,g=h.closest('div[tabindex="-1"]'),m=null==g?void 0:g.querySelector('section[class*="prose"]'),b=l(f),y=c(e,m);b&&y&&p(n,a,{title:b,def:y,href:d(Object(o.d)(i,h,"href"),f.id),chart:t.chart&&g?u(g.querySelector('img[src*="chart/"]')):""})}}(e,t,n,a);if(n.length>0)return{result:n,catalog:a};return Object(o.j)()}(e,s))};function c(e,t){return t?(function(e,t){t.querySelectorAll(".crossreference").forEach(t=>{if("a"===t.tagName.toLowerCase())return;const n=Object(o.g)(t).trim();if(!n)return;const a=e.createElement("a");a.target="_blank",a.href="https://www.etymonline.com/word/"+n,a.textContent=n,t.replaceWith(a)})}(e,t),Object(o.e)(i,t)):""}function l(e){if(!e)return"";const t=Array.from(e.childNodes).map(e=>(e.textContent||"").trim()).filter(Boolean);return(t.length>0?t.join(" "):Object(o.g)(e)).replace(/\s+/g," ").trim()}function d(e,t){return e?!t||e.includes("#")?e:`${e}#${t}`:""}function u(e){return e?Object(o.d)(i,e,"src"):""}function p(e,t,n){const a=e.length,o="d-etymonline-entry"+a;e.push({id:o,...n}),t.push({key:"#"+a,value:o,label:"#"+n.title})}},837:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return i}));var a=n(31),o=n(3);const r=e=>"https://dict.eudic.net/dicts/en/"+e,i=(e,t,n,r)=>{e=encodeURIComponent(e.split(/\s+/).slice(0,2).join(" "));const i=n.dicts.all.eudic.options,c="https://dict.eudic.net/dicts/en/"+e;return Object(a.a)(c,{withCredentials:!1}).catch(o.i).then(s).then(e=>function(e,{resultnum:t}){const n=[],a={},r=Array.from(e.querySelectorAll("#lj_ting .lj_item"));for(let e=0;e<r.length&&n.length<t;e++){const t=r[e],i={chs:"",eng:""};if(i.chs=Object(o.g)(t,".exp"),!i.chs)continue;if(i.eng=Object(o.g)(t,".line"),!i.eng)continue;i.channel=Object(o.g)(t,".channel_title");const s=t.getAttribute("source");if(s){const e="https://fs-gateway.eudic.net/store_main/sentencemp3/"+s+".mp3";i.mp3=e,a.us||(a.us=e,a.uk=e)}n.push(i)}if(n.length>0)return{result:n,audio:a};return Object(o.j)()}(e,i))};function s(e){if(e.querySelector("#lj_ting .lj_item"))return e;const t=e.querySelector("#page-status");if(!t||!t.value)return Object(o.j)();const n="status="+encodeURIComponent(t.value);return Object(a.b)("https://dict.eudic.net/Dicts/en/tab-detail/-12",{method:"POST",data:n,headers:{"Content-Type":"application/x-www-form-urlencoded"},withCredentials:!1}).then(e=>(new DOMParser).parseFromString(e,"text/html")).catch(o.i)}},838:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return i})),n.d(t,"getSrcPage",(function(){return s})),n.d(t,"search",(function(){return c})),n.d(t,"getTTS",(function(){return l}));var a=n(16),o=n(666),r=n(12);const i=Object(a.a)(()=>new o.Google({env:"ext"})),s=(e,t,n)=>`https://translate.google.com/#auto/${"default"===n.dicts.all.google.options.tl?t.langCode:n.dicts.all.google.options.tl}/${e}`,c=async(e,t,n,a)=>{const o=n.dicts.all.google.options,s=i(),{sl:c,tl:l,text:d}=await Object(r.a)(s,e,n.dicts.all.google,t,a);try{const e=await s.translate(d,c,l,{concurrent:o.concurrent,apiAsFallback:!0,order:["cn","com"]});return Object(r.c)({result:{id:"google",sl:e.from,tl:e.to,slInitial:n.dicts.all.google.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},s.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"google",sl:c,tl:l,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},s.getSupportLanguages())}};async function l(e,t){return await i().textToSpeech(e,t)||""}},841:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return s})),n.d(t,"search",(function(){return l}));var a=n(20),o=n(3),r=n(97),i=n(31);const s=(e,t,n)=>`${c}/${u(e,n)}/${encodeURIComponent(e)}`,c="https://dict.hujiang.com",l=async(e,t,n,a)=>{const s=a.langCode||u(e,n);return Object(i.a)(`https://dict.hujiang.com/${s}/${encodeURIComponent(e)}`,{withCredentials:!0}).catch(o.i).then(e=>function(e,t,n){if(e.querySelector(".word-notfound"))return d(n);const a=e.querySelector(".word-suggestions");if(a)return t.related?{result:{type:"related",langCode:n,content:Object(o.e)(c,a)}}:d(n);let i="";const s=e.querySelector(".word-details-multi .word-details-header");s&&(s.querySelectorAll(".word-details-tab").forEach((e,t)=>{e.dataset.categories=String(t)}),i=Object(o.e)(c,s));e.querySelectorAll(".word-audio").forEach(e=>{e.replaceWith(Object(r.d)(e.dataset.src))});const l=[...e.querySelectorAll(".word-details-pane")].map((e,t)=>`\n <div class="word-details-pane${0===t?" word-details-pane-active":""}">\n <div class="word-details-pane-header">\n ${Object(o.e)(c,e,".word-details-pane-header")}\n </div>\n <div class="word-details-pane-content">\n ${Object(o.e)(c,e,".word-details-pane-content")}\n </div>\n </div>\n `);return l.length>0?{result:{type:"lex",header:i,entries:l,langCode:n}}:d(n)}(e,n.dicts.all.hjdict.options,s))};function d(e){return{result:{type:"related",langCode:e,content:'<p style="text-align:center;">No Result</p>'}}}function u(e,t){return/\u00fc/i.test(e)?t.dicts.all.hjdict.options.uas:/\u00e4/i.test(e)?t.dicts.all.hjdict.options.aas:/\u00e9/i.test(e)?t.dicts.all.hjdict.options.eas:Object(a.f)(e)?"fr":Object(a.d)(e)?"de":Object(a.i)(e)?"es":Object(a.e)(e)?t.dicts.all.hjdict.options.engas:Object(a.g)(e)?"jp/jc":Object(a.h)(e)?"kr":Object(a.c)(e)?t.dicts.all.hjdict.options.chsas:"w"}},842:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return i}));var a=n(3),o=n(597);const r=async e=>"https://www.moedict.tw/~"+(await Object(a.c)())(e),i=(e,t,n,a)=>Object(o.moedictSearch)("c",e,t,n.dicts.all.liangan.options).then(e=>(e.result.h&&e.result.h.forEach(e=>{e.p&&(e.p=e.p.replace("<br>陸⃝"," [大陆]: "))}),e))},843:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var a=n(31),o=n(3),r=n(97);const i=e=>"https://www.ldoceonline.com/dictionary/"+e.trim().split(/\s+/).join("-"),s="https://www.ldoceonline.com",c=(e,t,n,i)=>{const c=n.dicts.all.longman.options;return Object(a.a)("https://www.ldoceonline.com/dictionary/"+e.toLocaleLowerCase().replace(/[^A-Za-z0-9]+/g,"-")).catch(o.i).then(e=>function(e,t){if(e.querySelector(".dictentry"))return function(e,t){const n={type:"lex",bussinessFirst:t.bussinessFirst,contemporary:[],bussiness:[]},a={};e.querySelectorAll(".speaker.exafile").forEach(e=>{const t=e.dataset.srcMp3;if(t){const n=e.parentElement;e.replaceWith(Object(r.d)(t)),n&&n.classList.contains("EXAMPLE")&&n.classList.add("withSpeaker")}}),t.wordfams&&(n.wordfams=Object(o.e)(s,e,".wordfams"));const i=e.querySelectorAll(".dictentry");let c="";for(let e=0;e<i.length;e++){const r=i[e],l=r.querySelector(".dictionary_intro");if(l){const e=l.textContent||"";c=e.includes("Contemporary")?"contemporary":e.includes("Business")?"bussiness":""}if(!c)continue;const d={title:{HWD:"",HYPHENATION:"",HOMNUM:""},prons:[],senses:[]},u=r.querySelector("a.topic");u&&(d.topic={title:u.textContent||"",href:Object(o.d)(s,u,"href")});const p=r.querySelector(".Head");if(!p)continue;d.title.HWD=Object(o.g)(p,".HWD"),d.title.HYPHENATION=Object(o.g)(p,".HYPHENATION"),d.title.HOMNUM=Object(o.g)(p,".HOMNUM"),d.phsym=Object(o.g)(p,".PronCodes");const h=p.querySelector(".LEVEL");if(h){const e={rate:0,title:""};e.rate=((h.textContent||"").match(/●/g)||[]).length,e.title=h.title,d.level=e}d.freq=Array.from(p.querySelectorAll(".FREQ")).map(e=>({title:e.title,rank:e.textContent||""})),d.pos=Object(o.g)(p,".POS"),p.querySelectorAll(".speaker").forEach(e=>{let t="us";e.title.includes("British")&&(t="uk");const n=e.getAttribute("data-src-mp3")||"";a[t]=n,d.prons.push({lang:t,pron:n})}),d.senses=Array.from(r.querySelectorAll(".Sense")).map(e=>Object(o.e)(s,e)),t.collocations&&(d.collocations=Object(o.e)(s,r,".ColloBox")),t.grammar&&(d.grammar=Object(o.e)(s,r,".GramBox")),t.thesaurus&&(d.thesaurus=Object(o.e)(s,r,".ThesBox")),t.examples&&(d.examples=Array.from(r.querySelectorAll(".exaGroup")).map(e=>Object(o.e)(s,e))),n[c].push(d)}if(n.contemporary.length<=0&&n.bussiness.length<=0)return Object(o.j)();return{result:n,audio:a}}(e,t);if(t.related)return function(e){const t=e.querySelector(".didyoumean");if(t)return{result:{type:"related",list:Object(o.e)(s,t)}};return Object(o.j)()}(e);return Object(o.j)()}(e,c))}},844:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return i})),n.d(t,"_getContentEle",(function(){return s})),n.d(t,"_getGroupsEles",(function(){return c})),n.d(t,"_getSynonyms",(function(){return l})),n.d(t,"_getEtymology",(function(){return d})),n.d(t,"_getTitle",(function(){return u})),n.d(t,"_getPartOfSpeech",(function(){return p})),n.d(t,"_getPrEle",(function(){return h})),n.d(t,"_getSyllable",(function(){return f})),n.d(t,"_getPhoneticEles",(function(){return g})),n.d(t,"_getPhoneticSymbol",(function(){return m})),n.d(t,"_getPhoneticAudio",(function(){return b})),n.d(t,"_getConjugation",(function(){return y})),n.d(t,"_getSectionsEles",(function(){return w})),n.d(t,"_getForms",(function(){return _})),n.d(t,"_getSectionTitle",(function(){return v})),n.d(t,"_getMeaningGroupEles",(function(){return S})),n.d(t,"_getMeaningEles",(function(){return k})),n.d(t,"_getExpaining",(function(){return A})),n.d(t,"_getExamples",(function(){return C})),n.d(t,"getResult",(function(){return O}));var a=n(31),o=n(3);const r=e=>"https://www.merriam-webster.com/dictionary/"+e,i=(e,t,n,r)=>Object(a.a)("https://www.merriam-webster.com/dictionary/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>({result:O(e)}));function s(e){const t=e.querySelector("#left-content");if(!t||!t.querySelector("div[id^=dictionary-entry]"))throw new Error("NO_RESULT");return t}function c(e){return new Array(...e.querySelectorAll("div.entry-word-section-container[id^=dictionary-entry]").values())}function l(e){var t,n;const a=null===(t=e.querySelector("#synonyms"))||void 0===t?void 0:t.querySelector(".content-section-body");if(!a)return;const o=[...null==a?void 0:a.querySelectorAll(".function-label").values()],r=[...null==a||null===(n=a.querySelectorAll("ul.synonyms-antonyms-grid-list"))||void 0===n?void 0:n.values()];if(!r)return;const i=[...r].map(e=>[...e.querySelectorAll("a[lang]").values()].map(e=>{var t;return null===(t=e.textContent)||void 0===t?void 0:t.replace(/\s+/g," ").trim()}).filter(e=>!!e));return 0!==o.length&&0!==i.length?o.map((e,t)=>{var n;return[null===(n=e.textContent)||void 0===n?void 0:n.trim(),[...i[t]]]}):void 0}function d(e){var t;const n=null===(t=e.querySelector("#word-history"))||void 0===t?void 0:t.querySelector(".etymology-content-section");if(!n)return;const a=[...n.querySelectorAll("p.function-label").values()].map(e=>e.textContent),o=[...n.querySelectorAll("p.et")].map(e=>{var t;return null===(t=e.textContent)||void 0===t?void 0:t.trim()});return 0!==o.length?a.length>0?a.map((e,t)=>[e,o[t]]):o.map(e=>["",e]):void 0}function u(e){var t,n;return(null===(t=e.querySelector("div.entry-header-content"))||void 0===t||null===(n=t.querySelector(".hword"))||void 0===n?void 0:n.textContent)||void 0}function p(e){var t,n;return(null===(t=e.querySelector("h2.parts-of-speech"))||void 0===t||null===(n=t.querySelector("a.important-blue-link"))||void 0===n?void 0:n.textContent)||void 0}function h(e){return e.querySelector("div.word-syllables-prons-header-content")||void 0}function f(e){var t;return(null===(t=e.querySelector("span.word-syllables-entry"))||void 0===t?void 0:t.textContent)||void 0}function g(e){var t,n;const a=null===(t=e.querySelector("span.prons-entries-list-inline"))||void 0===t||null===(n=t.querySelectorAll(".prons-entry-list-item"))||void 0===n?void 0:n.values();return a?[...a]:void 0}function m(e){var t,n;return"a"===e.tagName?(null===(n=e.textContent)||void 0===n?void 0:n.trim())||void 0:(null===(t=e.childNodes.item(0).textContent)||void 0===t?void 0:t.trim())||void 0}function b(e){const t=e.getAttribute("data-dir"),n=e.getAttribute("data-file"),a=e.getAttribute("data-lang");return t&&n&&a?`https://media.merriam-webster.com/audio/prons/${a.replace("_","/")}/mp3/${t}/${n}.mp3`:void 0}function y(e){var t,n;const a=null===(t=e.querySelector(".row.headword-row.header-ins"))||void 0===t||null===(n=t.querySelectorAll("span.vg-ins"))||void 0===n?void 0:n.values();return a?new Array(...a).map(e=>e.textContent).join().trim():void 0}function w(e){const t=e.querySelectorAll("div.vg").values();return t?[...t]:void 0}function _(e){return[""]}function v(e){var t,n;return(null===(t=e.querySelector("p.vd"))||void 0===t||null===(n=t.querySelector("a.important-blue-link"))||void 0===n?void 0:n.textContent)||void 0}function S(e){const t=e.querySelectorAll("div.vg-sseq-entry-item").values();return t?[...t]:void 0}function k(e){const t=e.querySelectorAll("div.sb-entry").values();return t?[...t]:void 0}function A(e){var t,n,a,o;return(null===(t=e.querySelector("span.dtText"))||void 0===t||null===(n=t.textContent)||void 0===n?void 0:n.trim())||(null===(a=e.querySelector("span.unText"))||void 0===a||null===(o=a.textContent)||void 0===o?void 0:o.trim())}function C(e){const t=[],n=e.querySelectorAll("span.ex-sent.sents").values();if(n){for(const e of n)e.textContent&&t.push(e.textContent);return t.length>0?t:void 0}}function O(e){const t=s(e),n=[],a=l(t),o=d(t);for(const e of c(t)){const t=u(e),a=p(e),o=y(e),r={},i=[],s=[""],c=h(e);if(c){r.syllable=f(c),r.phonetics=[];const e=g(c);if(e)for(const t of e)if(t){const e=m(t),n=b(t);r.phonetics.push({symbol:e,audio:n})}}const l=w(e);if(l)for(const e of l){const t=v(e),n=[],a=S(e);if(a)for(const e of a){const t=[],a=k(e);if(a)for(const e of a){const n=A(e),a=C(e);t.push({explaining:n,examples:a})}n.push(t)}i.push({title:t,meaningGroups:n})}n.push({title:t,pos:a,pr:r,conjugation:o,sections:i,forms:s})}return{groups:n,synonyms:a,etymology:o}}},845:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return d})),n.d(t,"search",(function(){return u})),n.d(t,"getTTS",(function(){return S}));var a=n(3),o=n(47),r=n.n(o),i=n(139),s=n.n(i);const c="https://api.mojidict.com/app/mojidict/api/v1",l="https://www.mojidict.com",d=async e=>{var t,n,a;const o=await p(e).catch(()=>null),r=null==o||null===(t=o.word)||void 0===t||null===(n=t.list)||void 0===n||null===(a=n[0])||void 0===a?void 0:a.targetId;return r?`${l}/details/${r}`:l},u=async(e,t,n,o)=>{var i,s,l;const d=null===(i=(await p(e)).word)||void 0===i||null===(s=i.list)||void 0===s?void 0:s.find(e=>102===e.targetType);if(!(null==d?void 0:d.targetId))return Object(a.j)();const u=d.targetId,[m,v,k]=await Promise.all([h(u),f("example",{text:e,limit:"3",needNotation:"true",onlyJP:"true",onlyFull:"true",targetTypes:"121",wordId:u}).catch(()=>({list:[]})),f("examQuestion",{text:e,limit:"3",highlight:"false",onlyFull:"true",wordId:u}).catch(()=>({list:[]}))]),A=function(e,t,n,a){var o,r,i;const s=t.word,c={};s&&(c.word={tarId:e,spell:s.spell,pron:[s.pron,s.accent].filter(Boolean).join(" "),excerpt:s.excerpt,imgUrl:s.imgUrl});return c.details=null===(o=t.details)||void 0===o?void 0:o.map(e=>({objectId:e.objectId,title:y(e.partOfSpeech,null==s?void 0:s.excerpt),subdetails:g(e,t.subdetails,t.examples)})).filter(e=>e.subdetails&&e.subdetails.length>0),c.examples=null===(r=n.list)||void 0===r?void 0:r.map(e=>({objectId:e.targetId,title:e.title,trans:e.excerpt,notationTitle:w(e.notationTitle),source:e.srcTargetTitle})),c.examQuestions=null===(i=a.list)||void 0===i?void 0:i.map(e=>({objectId:e.targetId,title:e.title,excerpt:e.excerpt})),c}(u,m,v,k);if(null===(l=m.word)||void 0===l?void 0:l.hasRelated){const e=await async function(e){var t;const{data:n}=await r()({method:"post",url:c+"/word/related",headers:{..._(),"content-type":"application/json"},data:{wordIds:[e]}}),a=null===(t=n.list)||void 0===t?void 0:t[0];if(!a)return[];return[b("同义词",a.synonyms),b("反义词",a.antonyms),b("近形词",a.paronyms),b("多音词",a.polyphonics),a.subject?{title:"关联主题",words:a.subject.map(e=>({objectId:e.relatedId,title:e.title,excerpt:e.trans}))}:void 0].filter(e=>!!e&&e.words.length>0)}(u).catch(()=>[]);e.length>0&&(A.related=e)}return A.word&&"mojidict"===t.autopron.cn.dict?(A.word.tts=await S(u,102),{result:A,audio:{py:A.word.tts}}):{result:A}};async function p(e){try{const{data:t}=await r()({method:"get",url:`${c}/search/all${v({text:e,types:["102","106","103","671"],highlight:"true"})}`,headers:_()});return t}catch(e){return Object(a.i)(e)}}async function h(e){try{const{data:t}=await r()({method:"get",url:`${c}/word/detailInfo${v({wordId:e})}`,headers:_()});return t.word?t:Object(a.j)()}catch(e){return Object(a.i)(e)}}async function f(e,t){const{data:n}=await r()({method:"get",url:`${c}/search/${e}${v(t)}`,headers:_()});return n}function g(e,t=[],n=[]){const a=t.filter(t=>t.detailsId===e.objectId).reduce((e,t)=>{const n=t.relaId||t.objectId,a=e[n]||{};return/^ja/i.test(t.lang)?a.ja=t:a.zh=t,e[n]=a,e},{});return Object.keys(a).map(e=>{var t,o,r;const i=a[e],s=i.zh||i.ja;return{objectId:(null==s?void 0:s.objectId)||e,title:(null===(t=i.zh)||void 0===t?void 0:t.title)||(null===(o=i.ja)||void 0===o?void 0:o.title)||"",titleJa:null===(r=i.ja)||void 0===r?void 0:r.title,examples:m(e,n)}})}function m(e,t){const n=t.filter(t=>t.subdetailsId===e).reduce((e,t)=>{const n=t.relaId||t.objectId,a=e[n]||{};return/^ja/i.test(t.lang)?a.ja=t:a.zh=t,e[n]=a,e},{});return Object.keys(n).map(e=>{var t,a,o,r;const i=n[e],s=i.ja||i.zh;return{objectId:(null==s?void 0:s.objectId)||e,title:(null===(t=i.ja)||void 0===t?void 0:t.title)||(null===(a=i.zh)||void 0===a?void 0:a.title)||"",trans:null===(o=i.zh)||void 0===o?void 0:o.title,notationTitle:w(null===(r=i.ja)||void 0===r?void 0:r.notationTitle)}})}function b(e,t){return t&&t.length>0?{title:e,words:t.map(e=>({objectId:e.objectId||e.id,title:e.spell,excerpt:e.pron}))}:void 0}function y(e=[],t=""){var n;const a=e.map(e=>O[e]).filter(e=>!!e);return a.length>0?a.join("・"):(null===(n=t.match(/^\[[^\]]+\]/))||void 0===n?void 0:n[0])||"释义"}function w(e){if(e)return s.a.sanitize(e,{ALLOWED_TAGS:["ruby","rb","rp","rt","span"],ALLOWED_ATTR:["class","hiragana","lemma","lemma-t","roma"]})}function _(){return{accept:"application/json, text/plain, */*",origin:l,referer:l+"/","x-moji-app-id":"com.mojitec.mojidict","x-moji-app-version":"4.15.13","x-moji-device-id":A(),"x-moji-os":"PCWeb"}}function v(e){const t=new URLSearchParams;return Object.keys(e).forEach(n=>{const a=e[n];Array.isArray(a)?a.forEach(e=>t.append(n,e)):t.append(n,a)}),"?"+t.toString()}async function S(e,t){try{var n,a;const{data:o}=await r()({method:"post",url:"https://api.mojidict.com/parse/functions/tts-fetch",headers:{accept:"*/*",origin:l,referer:l+"/","content-type":"text/plain"},data:k({tarId:e,tarType:t,voiceId:"f002"})});return(null===(n=o.result)||void 0===n||null===(a=n.result)||void 0===a?void 0:a.url)||""}catch(e){!1}return""}function k(e){return JSON.stringify({_ApplicationId:"E62VyFVLMiW7kvbtVq3p",_ClientVersion:"js4.3.1",_InstallationId:A(),g_os:"PCWeb",g_ver:"4.15.13",...e})}function A(){return C()+C()+"-"+C()+"-"+C()+"-"+C()+"-"+C()+C()+C()}function C(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}const O={1:"名",2:"代",3:"动",4:"形",5:"形动",6:"副",7:"连体",8:"接续",9:"感",10:"助",11:"助动",12:"接头",13:"接尾",14:"惯用",15:"词组"}},846:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return s})),n.d(t,"search",(function(){return c}));var a=n(3),o=n(20),r=n(47),i=n.n(r);const s=e=>Object(o.g)(e)?"https://ja.dict.naver.com/#/search?query="+encodeURIComponent(e):"https://zh.dict.naver.com/#/search?query="+encodeURIComponent(e),c=(e,t,n,r)=>{const{options:s}=n.dicts.all.naver;return"ja"===r.lang||s.hanAsJa||Object(o.g)(e)||s.korAsJa&&Object(o.h)(e)?async function(e){var t;const{data:n}=await i.a.get("https://ja.dict.naver.com/api3/jako/search?query="+encodeURIComponent(e)).catch(a.i),o=null==n||null===(t=n.searchResultMap)||void 0===t?void 0:t.searchResultListMap;if(!o)return Object(a.j)();return{result:{lang:"ja",entry:o}}}(e):async function(e){var t;const{data:n}=await i.a.get(`https://zh.dict.naver.com/api3/zhko/search?query=${encodeURIComponent(e)}&lang=zh_CN`).catch(a.i),o=null==n||null===(t=n.searchResultMap)||void 0===t?void 0:t.searchResultListMap;if(!o)return Object(a.j)();return{result:{lang:"zh",entry:o}}}(e)}},847:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return s}));var a=n(31),o=n(3);const r=e=>"https://www.oxfordlearnersdictionaries.com/search/english/direct/?q="+e,i="https://www.oxfordlearnersdictionaries.com",s=(e,t,n,r)=>Object(a.a)("https://www.oxfordlearnersdictionaries.com/search/english/direct/?q="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>function(e){const t={title:"",idioms:[],senses:[],pron:{uk:{},us:{}}},n=e.querySelector("#entryContent");if(!n)return Object(o.j)();const a=n.querySelector(".symbols>a");a&&(t.symbol=(a.getAttribute("href")||"").split("level=")[1]);const r=n.querySelector(".top-container .webtop");if(r){t.title=Object(o.g)(r,".headword"),t.pos=Object(o.g)(r,".pos");Array.from(r.querySelectorAll(":scope>.phonetics>div")).map((e,n)=>{const a=n?"us":"uk",r=e.querySelector(".sound");let i;r&&(i=r.getAttribute("data-src-mp3"));const s=Object(o.g)(e,".phon");t.pron[a].sound=i,t.pron[a].phon=s})}const s=Array.from(n.querySelectorAll(".entry>ol>.sense")),c=Array.from(n.querySelectorAll(".senses_multiple .shcut-g")),l=Array.from(n.querySelectorAll(".entry>.pv-g"));function d(e,t){const n={},a=e.querySelector(".sensetop .symbols>a");a&&(n.symbols=(a.getAttribute("href")||"").split("level=")[1]),n.grammar=Object(o.g)(e.querySelector(".grammar")),n.labels=Object(o.g)(e.querySelector(".labels"));const r=e.querySelector(".variants");r&&(n.variantsIsBlock="vf"===r.getAttribute("type"),n.variants=Object(o.e)(i,e,".variants")),n.use=Object(o.g)(e.querySelector(".use")),n.cf=Object(o.g)(e.querySelector(":scope>.cf")||e.querySelector(".sensetop>.cf")),n.def=Object(o.g)(e.querySelector(".def")),n.examples=Object(o.f)(i,e,".examples"),t.means.push(n)}if(l.length)t.isPhrasal=!0,l.map(e=>{const n={title:"",means:[]},a=e.querySelector(".top-container .pv");a&&(n.symbol=a.getAttribute("cefr")||"",n.title=Object(o.f)(i,a));e.querySelector(".variants")&&(n.variants=Object(o.e)(i,e,".variants"));const r=Array.from(e.querySelectorAll(".senses_multiple .sense")),s=Array.from(e.querySelectorAll(".sense_single .sense"));(r.length&&r||s.length&&s||[]).map(e=>d(e,n)),t.senses.push(n)});else if(s.length){const e={title:"",means:[]};s.map(t=>d(t,e)),t.senses.push(e)}else c.map(e=>{const n={title:"",means:[]};n.title=Object(o.g)(e.querySelector(".shcut"));Array.from(e.querySelectorAll(".sense")).map(e=>d(e,n)),t.senses.push(n)});const u=n.querySelector(".senses_multiple>.collapse>span");u&&"wordorigin"===u.getAttribute("unbox")&&(t.origin=Object(o.e)(i,u,".body"));return Array.from(n.querySelectorAll(".idioms .idm-g")).map(e=>{const n={},a=e.querySelector(".top-container");a&&(n.title=Object(o.e)(i,a,".webtop")),n.labels=Object(o.g)(e.querySelector(".labels")),n.def=Object(o.g)(e.querySelector(".def")),n.examples=Object(o.f)(i,e,".examples"),t.idioms.push(n)}),t.title||t.senses.length>0||t.idioms.length>0?{result:t}:Object(o.j)()}(e))},848:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return s})),n.d(t,"getDetail",(function(){return l}));var a=n(31),o=n(3);const r=e=>"https://www.91dict.com/words?w="+encodeURIComponent(e.replace(/\s+/g,"+")),i="https://www.91dict.com",s=(e,t,n,r)=>Object(a.a)("https://www.91dict.com/words?w="+encodeURIComponent(e.replace(/\s+/g,"+"))).catch(o.i).then(c);function c(e){const t=[],n=e.querySelectorAll(".tmInfo .slides > li");return n.length<=0?Object(o.j)():(n.forEach(e=>{const n=Object(o.g)(e.querySelector(".mTop")).trim();if(!n)return;const a=d(e);if(!a)return;const r={key:"",title:n,detail:"",slide:a,context:[]},s=e.querySelector(".viewdetail");s&&(r.detail=Object(o.d)(i,s,"href")),e.querySelectorAll(".mTextend .box").forEach(e=>{const t=Object(o.g)(e,".sty1");t&&r.context.push({title:t,content:[...e.querySelectorAll(".sty2 > *")].map(e=>Object(o.g)(e))})}),r.key=n+a.cover,t.push(r)}),t.length>0?{result:t}:Object(o.j)())}async function l(e){const t=[];try{(await Object(a.a)(e)).querySelectorAll(".item li").forEach(e=>{const n=d(e);n&&t.push(n)})}catch(e){console.warn(e)}return t}function d(e){const t={cover:"",mp3:"",en:"",chs:""},n=e.querySelector("img");if(!n)return null;const a=Object(o.d)(i,n,"src");if(!a)return null;t.cover=a;const r=e.querySelector(".mTop audio");return r&&(t.mp3=Object(o.d)(i,r,"src")),t.en=Object(o.e)(i,e,".mBottom"),t.chs=Object(o.g)(e,".mFoot").trim(),t}},849:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return i})),n.d(t,"getSrcPage",(function(){return s})),n.d(t,"search",(function(){return c}));var a=n(16),o=n(667),r=n(12);const i=Object(a.a)(()=>new o.Sogou({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.SOGOU_PID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.SOGOU_KEY?{pid:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.SOGOU_PID,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.SOGOU_KEY}:void 0})),s=(e,t,n)=>`https://fanyi.sogou.com/#auto/${"default"===n.dicts.all.sogou.options.tl?"zh-CN"===t.langCode?"zh-CHS":"zh-TW"===t.langCode?"zh-CHT":"en":n.dicts.all.sogou.options.tl}/${e}`,c=async(e,t,n,a)=>{if(!t.dictAuth.sogou.pid)return Object(r.c)({result:{requireCredential:!0,id:"sogou",sl:"auto",tl:"auto",slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},[]);const o=i(),{sl:s,tl:c,text:l}=await Object(r.a)(o,e,n.dicts.all.sogou,t,a),d={pid:t.dictAuth.sogou.pid,key:t.dictAuth.sogou.key};try{const e=await o.translate(l,s,c,d);return Object(r.c)({result:{id:"sogou",sl:e.from,tl:e.to,slInitial:n.dicts.all.sogou.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"sogou",sl:s,tl:c,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},850:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return s})),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return l}));var a=n(16),o=n(668),r=n(12),i=n(353);const s=Object(a.a)(()=>new o.Tencent({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.TENCENT_SECRETID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.TENCENT_SECRETKEY?{secretId:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.TENCENT_SECRETID,secretKey:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.TENCENT_SECRETKEY}:void 0})),c=(e,t,n)=>`https://fanyi.qq.com/#auto/${"default"===n.dicts.all.tencent.options.tl?"zh-CN"===t.langCode?"zh-CHS":"zh-TW"===t.langCode?"zh-CHT":"en":n.dicts.all.tencent.options.tl}/${e}`,l=async(e,t,n,a)=>{const o=s(),{sl:c,tl:l,text:d}=await Object(r.a)(o,e,n.dicts.all.tencent,t,a),u=t.dictAuth.tencent.secretId,p=t.dictAuth.tencent.secretKey,h=u&&p?{secretId:u,secretKey:p}:void 0;if(!h)return Object(r.c)({result:{requireCredential:!0,id:"tencent",sl:"auto",tl:"auto",slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},[]);try{const e=await o.translate(d,c,l,h),t=Object(i.getTranslator)();return e.origin.tts=await t.textToSpeech(e.origin.paragraphs.join("\n"),e.from),e.trans.tts=await t.textToSpeech(e.trans.paragraphs.join("\n"),e.to),Object(r.c)({result:{id:"tencent",sl:e.from,tl:e.to,slInitial:n.dicts.all.tencent.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"tencent",sl:c,tl:l,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},854:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return s})),n.d(t,"search",(function(){return l}));var a=n(31),o=n(3),r=n(47),i=n.n(r);const s=e=>"http://www.urbandictionary.com/define.php?term="+e,c="https://www.urbandictionary.com",l=(e,t,n,r)=>{const s=n.dicts.all.urban.options;return Object(a.a)("http://www.urbandictionary.com/define.php?term="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>async function(e,{resultnum:t}){const n=[],a={},r=Array.from(e.querySelectorAll(".def-panel, .definition"));if(r.length<=0)return Object(o.j)();const s=[];for(let e=0;e<r.length&&n.length<t;e++){var l;const t=null===(l=r[e])||void 0===l?void 0:l.getAttribute("data-defid");t&&s.push(t)}const u=await async function(e){var t,n;const a={},r=await i.a.get("https://api.urbandictionary.com/v0/uncacheable",{params:{ids:e}}).catch(o.i);if(!(null==r?void 0:r.data))return null;return null==r||null===(t=r.data)||void 0===t||null===(n=t.thumbs)||void 0===n||n.map(e=>{a[e.defid]={up:e.up,down:e.down}}),a}(s.join(","));for(let e=0;e<r.length&&n.length<t;e++){var p,h,f,g,m;const t=r[e],i=(null===(p=r[e])||void 0===p?void 0:p.getAttribute("data-defid"))||"",s={title:""};if(s.title=Object(o.g)(t,".word"),!s.title)continue;const l=t.querySelector(".play-sound");if(l&&l.dataset.urls)try{const e=JSON.parse(l.dataset.urls)[0];e&&(s.pron=e,a.us=e)}catch(e){}const b=t.querySelector("[data-tts-url]");if(!s.pron&&(null==b?void 0:b.dataset.ttsUrl)&&(s.pron=b.dataset.ttsUrl,a.us=s.pron),s.meaning=Object(o.e)(c,t,".meaning"),/There aren't any definitions for/i.test(s.meaning||""))continue;s.example=Object(o.e)(c,t,".example");const y=t.querySelector(".gif > img");if(y){const e=y.nextElementSibling;s.gif={src:y.src,attr:Object(o.g)(e)}}const w=Array.from(t.querySelectorAll(".tags a"));w&&w.length>0&&(s.tags=w.map(e=>(e.textContent||" ").slice(1))),s.contributor=Object(o.g)(t,".contributor"),s.thumbsUp=null!==(h=null==u||null===(f=u[i])||void 0===f?void 0:f.up)&&void 0!==h?h:d(t,"up"),s.thumbsDown=null!==(g=null==u||null===(m=u[i])||void 0===m?void 0:m.down)&&void 0!==g?g:d(t,"down"),n.push(s)}return n.length>0?{result:n,audio:a}:Object(o.j)()}(e,s))};function d(e,t){const n=e.querySelector(`input[name="direction"][value="${t}"] + button`),a=Object(o.g)(n,"span").replace(/,/g,"").trim();return a?Number(a):void 0}},855:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return i}));var a=n(31),o=n(3);const r=e=>"https://www.vocabulary.com/dictionary/"+e,i=(e,t,n,r)=>Object(a.a)("https://www.vocabulary.com/dictionary/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(s);function s(e){const t=Object(o.g)(e,".short");if(!t)return Object(o.j)();const n=Object(o.g)(e,".long");return n?{result:{long:n,short:t}}:Object(o.j)()}},856:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return s}));var a=n(31),o=n(3);const r=e=>"https://www.weblio.jp/content/"+e,i="https://www.weblio.jp",s=(e,t,n,r)=>Object(a.a)("https://www.weblio.jp/content/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(c);function c(e){const t=[],n=e.querySelectorAll("#cont>.pbarT .pbarTL>a");return e.querySelectorAll("#cont>.kijiWrp>.kiji").forEach((e,a)=>{const r=n[a];r&&"百科事典"!==r.title&&t.push({title:Object(o.f)(i,r,{config:{}}),def:Object(o.e)(i,e,{config:{}})})}),t.length<=0&&e.querySelectorAll(".section-card .basic-card").forEach(e=>{const n=Object(o.g)(e,".pbarT h2");n&&(Object(o.m)(e,".pbarT"),t.push({title:n,def:Object(o.e)(i,e,{config:{}})}))}),t.length>0?{result:t}:Object(o.j)()}},857:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return d}));var a=n(31),o=n(3),r=n(97);const i=e=>"https://ejje.weblio.jp/content/"+encodeURIComponent(e.replace(/\s+/g,"+")),s="https://ejje.weblio.jp";function c(e){e.querySelectorAll(".fa-volume-up").forEach(e=>{const t=e.querySelector("source");t&&e.replaceWith(Object(r.d)(t.getAttribute("src")))})}function l(e,t){const n=e.ownerDocument.createElement("div");n.className="summaryHead",n.innerHTML=t,e.replaceWith(n)}const d=(e,t,n,r)=>Promise.resolve(i(e,t,n)).then(e=>Object(a.a)(e)).catch(o.i).then(u);function u(e){const t=[];return e.querySelectorAll(".mainBlock").forEach(e=>{if("summary"===e.id){let n="";const a=e.querySelector(".summaryTbl");if(a){n+=Object(o.f)(s,a,".summaryL h1");const e=a.querySelector(".summaryC audio source");e&&(n+=Object(r.e)(e.getAttribute("src"))),l(a,n)}else{const t=e.querySelector(".summary-title h1"),n=e.querySelector(".summary-title-wrp");if(t&&n){const a=e.querySelector(".contentTopAudioIcon source, .summary-icon-cells audio source");l(n,Object(o.f)(s,t)+Object(r.e)(a&&a.getAttribute("src")))}else c(e)}return Object(o.n)(e,"#leadBtnWrp"),Object(o.n)(e,".addLmFdWr"),Object(o.n)(e,".flex-rectangle-ads-frame"),Object(o.n)(e,".outsideLlTable"),void t.push({content:Object(o.f)(s,e)})}if(!e.className.includes("hlt_")||e.classList.contains("hlt_CPRHT")||e.classList.contains("hlt_RLTED"))return;let n="",a=e.querySelector(".wrp");if(a){if(n=Object(o.g)(a,".dictNm"),n.includes("Wiktionary"))return;a.remove()}else a=e.querySelector(".qotH"),a&&(n=Object(o.g)(a,".qotHT"),a.remove());Object(o.n)(e,".hideDictWrp"),Object(o.n)(e,".kijiFoot"),Object(o.n)(e,".addToSlBtnCntner"),c(e),e.querySelectorAll("br").forEach(e=>{!function(e){e.classList.add("br");const t=e.ownerDocument.createElement("div");t.className=e.className,e.replaceWith(t)}(e)}),e.querySelectorAll("a").forEach(e=>{e.classList.contains("crosslink")||Object(o.b)(e)}),t.push({title:n,content:Object(o.f)(s,e)})}),t.length>0?{result:t}:Object(o.j)()}},858:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return s})),n.d(t,"search",(function(){return c}));var a=n(47),o=n.n(a),r=n(20),i=n(3);const s=(e,t,n)=>{const{lang:a}=n.dicts.all.wikipedia.options;return`https://${l(e,a)}.wikipedia.org/${a.startsWith("zh-")?a:"wiki"}/${encodeURIComponent(e)}`},c=(e,t,n,a)=>{const{lang:r}=n.dicts.all.wikipedia.options,s=function(e,t,n){if(!e)return{subdomain:l(t,n),title:t};const a=e.match(/^https?:\/\/([^/.]+)\.wikipedia\.org\/(?:wiki|[^/]+)\/([^#?]+)/);if(a)return{subdomain:a[1],title:decodeURIComponent(a[2]).replace(/_/g," ")};return{subdomain:l(t,n),title:e}}(a.url,e,r);return o.a.get((c=s.subdomain,u=s.title,`https://${c}.wikipedia.org/w/api.php?action=parse&page=`+encodeURIComponent(u)+"&prop=text|displaytitle|langlinks&format=json&formatversion=2&redirects=1&disableeditsection=1&disabletoc=1"),{withCredentials:!1}).catch(i.i).then(({data:e})=>function(e,t){if(e.error||!e.parse||!e.parse.text)return Object(i.j)(e.error);const n=(new DOMParser).parseFromString(e.parse.text,"text/html"),a=Object(i.f)(`https://${t}.wikipedia.org/`,n,{selector:".mw-parser-output"}),o=function(e){if(!e)return"";return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent||""}(e.parse.displaytitle)||e.parse.title;if(!o||!a)return Object(i.j)();return{result:{title:o,content:a,langList:d(e.parse.langlinks)}}}(e,s.subdomain));var c,u};function l(e,t){return t.startsWith("zh-")?"zh":"auto"===t?Object(r.g)(e)?"ja":Object(r.c)(e)?"zh":"en":t}function d(e=[]){return e.map(e=>{if(e.url&&e.title)return{url:e.url,title:e.langname?`${e.langname} - ${e.title}`:e.autonym?`${e.autonym} - ${e.title}`:e.title}}).filter(e=>!!e)}},859:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return s}));var a=n(31),o=n(3);const r=e=>"https://dict.youdao.com/w/"+encodeURIComponent(e.replace(/\s+/g," ")),i="http://www.youdao.com",s=async(e,t,n,r)=>{const s=n.dicts.all.youdao.options,c=await Object(o.c)(t.langCode);return Object(a.a)("https://dict.youdao.com/w/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>function(e,t,n){const a=e.querySelector(".error-typo");if(!a)return function(e,t,n){const a={type:"lex",title:Object(o.g)(e,".keyword",n),stars:0,rank:Object(o.g)(e,".rank"),pattern:Object(o.g)(e,".pattern",n),prons:[],collins:[]},r={},s=e.querySelector(".star");s&&(a.stars=Number((s.className.match(/\d+/)||[0])[0]));e.querySelectorAll(".baav .pronounce").forEach(e=>{const t=e.textContent||"",n=e.querySelector(".dictvoice");if(n&&n.dataset.rel){const e="https://dict.youdao.com/dictvoice?audio="+n.dataset.rel;a.prons.push({phsym:t,url:e}),t.includes("英")?r.uk=e:t.includes("美")&&(r.us=e)}}),t.basic&&(a.basic=Object(o.e)(i,e,{selector:"#phrsListTab .trans-container",transform:n}));t.collins&&e.querySelectorAll("#collinsResult .wt-container").forEach(t=>{const r={title:"",content:""},s=t.querySelector(":scope > .title.trans-tip");s&&(Object(o.m)(s,".do-detail"),r.title=Object(o.g)(s),s.remove());const c=t.querySelector(".star");if(c){const t=/star(\d+)/.exec(String(c.className));if(t){const n=+t[1],a=[];for(let t=0;t<5;t++){const o=e.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("viewBox","0 0 426.67 426.67"),o.setAttribute("width","1em"),o.setAttribute("height","1em"),4!==t&&(o.style.marginRight="1px");const r=e.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("fill",t<n?"#FAC917":"#d1d8de"),r.setAttribute("d","M213.33 10.44l65.92 133.58 147.42 21.42L320 269.4l25.17 146.83-131.84-69.32-131.85 69.34 25.2-146.82L0 165.45l147.4-21.42"),o.appendChild(r),a.push(o)}for(;c.firstChild;)c.removeChild(c.firstChild);a.forEach(e=>c.appendChild(e))}}r.content=Object(o.e)(i,t,{transform:n}),r.content&&a.collins.push(r)});t.discrimination&&(a.discrimination=Object(o.e)(i,e,{selector:"#discriminate",transform:n}));t.sentence&&(a.sentence=Object(o.e)(i,e,{selector:"#authority .ol",transform:n}));t.translation&&(a.translation=Object(o.e)(i,e,{selector:"#fanyiToggle .trans-container",transform:n}));if(a.title||a.translation)return{result:a,audio:r};return Object(o.j)()}(e,t,n);if(t.related)return{result:{type:"related",list:Object(o.e)(i,a,{transform:n})}};return Object(o.j)()}(e,s,c))}},86:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var a=n(1),o=n(2);async function r(e,t){try{const n=await a.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:e,payload:{isPDF:Object(o.j)()}}});return n&&n.result&&n.result.trans&&n.result.trans.paragraphs.join("\n")||""}catch(e){return""}}async function i(e,t){return(await Promise.all(Object.keys(t).map(async n=>{let a="";if(t[n])try{a=await r(e,n)}catch(e){console.warn(e)}return{id:n,content:a}}))).reduce((e,{id:t,content:n})=>(e[t]=n,e),{})}function s(e){const t=/\[:: (\w+) ::\]\n([\s\S]+?)(?=(?:\[:: \w+ ::\])|(?:-{15}))/g;let n;const a={};for(;null!==(n=t.exec(e));)a[n[1]]=n[2].replace(/\n+$/g,"");return a}function c(e,t){const n=Object.keys(t).filter(e=>t[e]);if(n.length<=0)return e;const a=n.map(e=>`[:: ${e} ::]\n`+t[e]).join("\n\n")+`\n${"".padEnd(15,"-")}\n`;if(!e)return a;const o=/\[:: (\w+) ::\]\n([\s\S]+?)-{15}/;return o.test(e)?e.replace(o,a):e+"\n\n"+a}},860:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return i})),n.d(t,"getSrcPage",(function(){return s})),n.d(t,"search",(function(){return c}));var a=n(16),o=n(669),r=n(12);const i=Object(a.a)(()=>new o.Youdao({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.YOUDAO_APPKEY&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.YOUDAO_KEY?{appKey:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.YOUDAO_APPKEY,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.YOUDAO_KEY}:void 0})),s=(e,t,n)=>"http://fanyi.youdao.com",c=async(e,t,n,a)=>{const o=i(),{sl:s,tl:c,text:l}=await Object(r.a)(o,e,n.dicts.all.youdaotrans,t,a),d=t.dictAuth.youdaotrans.appKey,u=t.dictAuth.youdaotrans.key,p=d&&u?{appKey:d,key:u}:void 0;try{const e=await o.translate(l,s,c,p);return Object(r.c)({result:{id:"youdaotrans",sl:e.from,tl:e.to,slInitial:n.dicts.all.youdaotrans.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"youdaotrans",sl:s,tl:c,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},87:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var a=n(12);const o={baidu:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{},{}),bing:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{tense:!0,phsym:!0,cdef:!0,related:!0,sentence:4}},ahdict:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:4}},oaldict:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5}},caiyun:Object(a.b)(["zh-CN","en","ja"],{lang:"11010000"},{},{}),cambridge:{lang:"11100000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{lang:"default",related:!0},options_sel:{lang:["default","en","en-chs","en-chz"]}},cobuild:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:5},options:{cibaFirst:(browser.i18n.getUILanguage()||"en").startsWith("zh-")}},etymonline:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{resultnum:4,chart:!0}},eudic:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:10}},google:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{concurrent:!1},{}),guoyu:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!0}},hjdict:{lang:"10011111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:10},options:{related:!0,chsas:"jp/jc",engas:"w",uas:"fr",aas:"fr",eas:"fr"},options_sel:{chsas:["jp/cj","jp/jc","kr","w","fr","de","es"],engas:["w","fr","de","es"],uas:["fr","de","es"],aas:["fr","de"],eas:["fr","es"]}},liangan:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!1}},longman:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{wordfams:!1,collocations:!0,grammar:!0,thesaurus:!0,examples:!0,bussinessFirst:!0,related:!0}},mojidict:{lang:"10010000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5}},naver:{lang:"01011000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!0,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:10},options:{hanAsJa:!1,korAsJa:!1}},renren:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},sogou:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru"],{},{},{}),tencent:Object(a.b)(["zh-CN","en","ja","ko","fr","de","es","ru"],{lang:"11011111"},{},{}),urban:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},vocabulary:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5}},weblio:{lang:"00010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:20}},weblioejje:{lang:"10010000",selectionLang:{english:!0,chinese:!1,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},merriamwebster:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},wikipedia:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:420,selectionWC:{min:1,max:999999999999999},options:{lang:"auto"},options_sel:{lang:["auto","zh","zh-cn","zh-tw","zh-hk","en","ja","fr","de"]}},youdao:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:999999999999999},options:{basic:!0,collins:!0,discrimination:!0,sentence:!0,translation:!1,related:!0}},youdaotrans:Object(a.b)(["zh-CN","en","pt","es","ja","ko","fr","ru"],{lang:"11011111"},{},{}),zdic:{lang:"01000000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:5},options:{audio:!0}}},r=()=>JSON.parse(JSON.stringify(o))},889:function(e,t,n){var a={"./en/background.ts":409,"./en/common.ts":410,"./en/content.ts":411,"./en/langcode.ts":412,"./en/menus.ts":413,"./en/options.ts":414,"./en/popup.ts":415,"./en/wordpage.ts":416,"./es/background.ts":417,"./es/common.ts":418,"./es/content.ts":419,"./es/langcode.ts":420,"./es/menus.ts":421,"./es/options.ts":422,"./es/popup.ts":423,"./es/wordpage.ts":424,"./ne/background.ts":425,"./ne/common.ts":426,"./ne/content.ts":427,"./ne/langcode.ts":428,"./ne/menus.ts":429,"./ne/options.ts":430,"./ne/popup.ts":431,"./ne/wordpage.ts":432,"./zh-CN/background.ts":433,"./zh-CN/common.ts":434,"./zh-CN/content.ts":435,"./zh-CN/langcode.ts":436,"./zh-CN/menus.ts":437,"./zh-CN/options.ts":438,"./zh-CN/popup.ts":439,"./zh-CN/wordpage.ts":440,"./zh-TW/background.ts":441,"./zh-TW/common.ts":442,"./zh-TW/content.ts":443,"./zh-TW/langcode.ts":444,"./zh-TW/menus.ts":445,"./zh-TW/options.ts":446,"./zh-TW/popup.ts":447,"./zh-TW/wordpage.ts":448};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=889},905:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return l})),n.d(t,"search",(function(){return u}));var a=n(31),o=n(3),r=n(47),i=n.n(r),s=n(139),c=n.n(s);const l=e=>"https://www.shanbay.com/bdc/mobile/preview/word?word="+e,d={basic:!0,sentence:!0};const u=(e,t,n)=>{const r=function(e){const t=e.dicts.all.shanbay;return t?t.options:d}(n);return Object(a.a)("https://www.shanbay.com/bdc/mobile/preview/word?word="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>function(e,t){if(!e.querySelector(".error-typo"))return async function(e,t){const n=e.querySelector(".word-spell"),a={id:"shanbay",type:"lex",title:Object(o.g)(e,".word-spell"),pattern:Object(o.g)(e,".pattern"),prons:[],sentences:[]},r={uk:"http://media.shanbay.com/audio/uk/"+a.title+".mp3",us:"http://media.shanbay.com/audio/us/"+a.title+".mp3"};a.prons.push({phsym:Object(o.g)(e,".word-announace"),url:r.us}),t.basic&&(a.basic=Object(o.e)("http://www.shanbay.com",e,".definition-cn"));a.wordId=n&&n.getAttribute("data-id"),t.sentence&&a.wordId&&(a.sentences=await(s=a.wordId,i.a.get(`https://www.shanbay.com/api/v1/bdc/example/?vocabulary_id=${s}&type=sys`).then(({data:{data:e}})=>Array.isArray(e)?e.map(e=>({annotation:c.a.sanitize(e.annotation),translation:c.a.sanitize(e.translation)})):[])));var s;if(a.title)return{result:a,audio:r};return Object(o.j)()}(e,t);return Object(o.j)()}(e,r))}},906:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return l})),n.d(t,"search",(function(){return d}));var a=n(31),o=n(3),r=n(97);const i=["https://img.zdic.net/audio/*"];let s=null;function c(){return s||(s=async function(){const e=function(){const e=self.chrome;return e&&e.declarativeNetRequest?e.declarativeNetRequest:void 0}();if(e)return void await async function(e){await e.updateSessionRules({removeRuleIds:[32001],addRules:[{id:32001,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.zdic.net"}]},condition:{regexFilter:"^https://img\\.zdic\\.net/audio/.*",resourceTypes:["media"]}}]})}(e);const t=function(){const e=browser;return e&&e.webRequest?e.webRequest:void 0}();if(t&&t.onBeforeSendHeaders)return void function(e){const t=["blocking","requestHeaders"],n=e.OnBeforeSendHeadersOptions;n&&Object.prototype.hasOwnProperty.call(n,"EXTRA_HEADERS")&&t.push("extraHeaders");e.onBeforeSendHeaders.addListener(e=>{if(e&&e.requestHeaders){for(var t=0;t<e.requestHeaders.length;++t)if("Referer"===e.requestHeaders[t].name){e.requestHeaders[t].value="https://www.zdic.net";break}t===e.requestHeaders.length&&e.requestHeaders.push({name:"Referer",value:"https://www.zdic.net"})}return{requestHeaders:e.requestHeaders}},{urls:i},t)}(t);if(function(){const e=browser.runtime.getManifest&&browser.runtime.getManifest();return!(!e||3!==e.manifest_version)}())throw new Error("declarativeNetRequest is unavailable in the current MV3 context.");throw new Error("webRequest.onBeforeSendHeaders is unavailable.")}().catch(e=>{throw s=null,e})),s}const l=e=>"https://www.zdic.net/hans/"+e,d=(e,t,n,i)=>{const s=n.dicts.all.zdic.options.audio;return(s?c().catch(e=>{console.error("Failed to enable Zdic audio referer compatibility.",e)}):Promise.resolve()).then(()=>Object(a.a)("https://www.zdic.net/hans/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>function(e,t){const n={result:[]};for(const a of e.querySelectorAll("[data-type-block]")){const e=a.dataset.typeBlock||"";if(/基本解释|词语解释|详细解释/.test(e)){for(const e of a.querySelectorAll("[data-src-mp3]"))t?(n.audio||(n.audio={py:e.dataset.srcMp3}),e.replaceWith(Object(r.d)(e.dataset.srcMp3))):e.remove();n.result.push({title:e,content:Object(o.e)("https://www.zdic.net",a,".content")})}}return n.result.length>0?n:Object(o.j)()}(e,s)))}},92:function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return b}));var a=n(39),o=n(10),r=n(121),i=n(187),s=n(404),c=n(152),l=n(560),d=n(88),u=n(102),p=n(67);function h(e){return e.pipe(Object(a.a)(e=>!(e.relatedTarget===e.currentTarget||e.relatedTarget instanceof Node&&e.currentTarget.contains(e.relatedTarget))),Object(o.a)(e=>"mouseover"===e.type))}function f(e){return h(e).pipe(Object(r.a)(e=>Object(u.a)(e).pipe(Object(i.a)(e?500:100))))}function g(e){return e.pipe(Object(o.a)(e=>"blur"!==e.type),Object(s.a)(100))}function m(e,t){return n=>n.pipe(Object(c.a)(o=>Object(p.a)(t(o)).pipe(Object(l.a)(n.pipe(Object(a.a)(t=>t[e]===o[e]))))))}function b(e){return Object(d.a)(!0)(e)}},964:function(e,t){},97:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return u}));var a=n(0),o=n.n(a),r=n(362),i=n(42);const s=o.a.createContext(async()=>{}),c=e=>{const[t,n]=Object(a.useState)(()=>"string"==typeof e.src?e.src:"#"),i=Object(a.useContext)(s);if(Object(r.a)(()=>{n("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const c=e.width||e.height||"1.2em",l=e.height||c;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:c,height:l},onClick:async a=>{if("#"===t&&"function"==typeof e.src){a.stopPropagation(),a.preventDefault();const t=await e.src();i(t),n(t)}}})};t.c=o.a.memo(c);const l=e=>{const{onPlayStart:t,...n}=e,r=Object(a.useCallback)(e=>{const n=e.target;n instanceof HTMLAnchorElement&&"#"!==n.href&&n.classList.contains("saladict-Speaker")&&(e.preventDefault(),e.stopPropagation(),n.classList.add("isActive"),Object(i.b)([Object(i.d)(1e3),t(n.href)]).then(()=>{n.classList.remove("isActive")}))},[t]);return o.a.createElement(s.Provider,{value:t},o.a.createElement("div",{onClick:r,...n}))},d=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},u=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""}},[[1252,0,1,3,4,18]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/content.0bf00037.js b/plugins/saladict-ztools/ext-saladic/assets/content.0bf00037.js deleted file mode 100644 index 334195c8..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/content.0bf00037.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[10],{1:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h}));var a=n(76),o=n(38),r=n(10);const i=()=>{},s=new WeakMap,c=new WeakMap,l=new WeakMap,d={sync:{clear:p,remove:g,get:f,set:m,addListener:b,removeListener:x,createStream:w,get __storageArea__(){return"sync"}},local:{clear:p,remove:g,get:f,set:m,addListener:b,removeListener:x,createStream:w,get __storageArea__(){return"local"}},clear:p,addListener:b,removeListener:x,createStream:w,get __storageArea__(){return"all"}},u={send:y,addListener:C,removeListener:M,createStream:E,get __self__(){return!1},self:{initClient:I,initServer:function(){window.pageId="background page";const e=/^\[\[(.+)\]\]$/;browser.runtime.onMessage.addListener((t,n)=>{if(!t||!t.type)return;if("PAGE_INFO"===t.type)return Promise.resolve(function(e){const t={pageId:"",faviconURL:"",pageTitle:"",pageURL:""},n=e.tab;n?(t.pageId=n.id||"",n.favIconUrl&&(t.faviconURL=n.favIconUrl),n.url&&(t.pageURL=n.url),n.title&&(t.pageTitle=n.title)):(t.pageId="popup",e.url&&!e.url.startsWith("http")&&(t.faviconURL="https://saladict.crimx.com/favicon.ico"));return t}(n));const a=e.exec(t.type);if(a){t.type=a[1];const e=n.tab&&n.tab.id;return e?y(e,t):y(t)}})},send:async function(e){!1;void 0===window.pageId&&await I();return browser.runtime.sendMessage(Object.assign({},e,{__pageId__:window.pageId,type:`[[${e.type}]]`})).catch(e=>{!1})},addListener:C,removeListener:M,createStream:E,get __self__(){return!0}}};async function h(e,t){const n="string"==typeof e?{url:e,self:t}:e,a=!1!==n.unique,o=n.self?browser.runtime.getURL(n.url):n.url;if(a){const e=await browser.tabs.query({url:o}).catch(()=>[]);if(e.length>0){const{index:t,windowId:n}=e[0];return"function"==typeof browser.tabs.highlight&&await browser.tabs.highlight({tabs:t,windowId:n}),void await browser.windows.update(n,{focused:!0})}}await browser.tabs.create({url:o,active:!1!==n.active})}function p(){return"all"===this.__storageArea__?Promise.all([browser.storage.local.clear(),browser.storage.sync.clear()]).then(i):browser.storage[this.__storageArea__].clear()}function g(e){return browser.storage[this.__storageArea__].remove(e)}function f(...e){return browser.storage[this.__storageArea__].get(...e)}function m(e){return browser.storage[this.__storageArea__].set(e)}function b(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}let a=l.get(n);a||(a=new Map,l.set(n,a));const o=this.__storageArea__+t;let r=a.get(o);return r||(r=(e,a)=>{"all"!==this.__storageArea__&&a!==this.__storageArea__||t&&!(t in e)||n(e,a)},a.set(o,r)),browser.storage.onChanged.addListener(r)}function x(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}const a=l.get(n);if(a){if(!t)return a.forEach(e=>{browser.storage.onChanged.removeListener(e)}),void l.delete(n);{const e=this.__storageArea__+t,o=a.get(e);if(o)return browser.storage.onChanged.removeListener(o),a.delete(e),void(a.size<=0&&l.delete(n))}}browser.storage.onChanged.removeListener(n)}function w(e){if(!e)throw new Error("Missing key");return Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)).pipe(Object(o.a)(t=>Object.prototype.hasOwnProperty.call(Array.isArray(t)?t[0]:t,e)),Object(r.a)(t=>Array.isArray(t)?t[0][e]:t[e]))}function y(...e){return(1===e.length?browser.runtime.sendMessage(e[0]):browser.tabs.sendMessage(e[0],e[1])).catch(e=>{!1})}function C(...e){void 0===window.pageId&&I();const t=this.__self__?c:s,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1];let o=t.get(a);o||(o=new Map,t.set(a,o));let r=o.get(n||"__DEFAULT_MSGTYPE__");return r||(r=(e,t)=>{if(e&&(this.__self__?window.pageId===e.__pageId__:!e.__pageId__)&&(null==n||e.type===n))return a(e,t)},o.set(n||"__DEFAULT_MSGTYPE__",r)),browser.runtime.onMessage.addListener(r)}function M(...e){const t=this.__self__?c:s,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1],o=t.get(a);if(o){if(!n)return o.forEach(e=>browser.runtime.onMessage.removeListener(e)),void t.delete(a);{const e=o.get(n);if(e)return browser.runtime.onMessage.removeListener(e),o.delete(n),void(o.size<=0&&t.delete(a))}}browser.runtime.onMessage.removeListener(a)}function E(e){return(e?Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)):Object(a.a)(e=>this.addListener(e),e=>this.removeListener(e))).pipe(Object(r.a)(e=>Array.isArray(e)?e[0]:e))}function I(){return void 0===window.pageId?u.send({type:"PAGE_INFO"}).then(({pageId:e,faviconURL:t,pageTitle:n,pageURL:a})=>(window.pageId=e,window.faviconURL=t,n&&(window.pageTitle=n),a&&(window.pageURL=a),e)):Promise.resolve(window.pageId)}},11:function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(1);function o(e){return e?{date:e.date||Date.now(),text:e.text||"",context:e.context||"",title:e.title||"",url:e.url||"",favicon:e.favicon||"",trans:e.trans||"",note:e.note||""}:{date:Date.now(),text:"",context:"",title:"",url:"",favicon:"",trans:"",note:""}}function r(e){return a.a.send({type:"IS_IN_NOTEBOOK",payload:e}).catch((t=!1,e=>t));var t}async function i(e,t){await a.a.send({type:"SAVE_WORD",payload:{area:e,word:t}})}async function s(e,t){await a.a.send({type:"SYNC_SERVICE_DOWNLOAD"}),await a.a.send({type:"DELETE_WORDS",payload:{area:e,dates:t}})}function c(e,t){return a.a.send({type:"GET_WORDS_BY_TEXT",payload:{area:e,text:t}})}function l(e,t){return a.a.send({type:"GET_WORDS",payload:{area:e,...t}})}},113:function(e,t,n){"use strict";function a(){return Date.now().toString().slice(6)+Math.random().toString().slice(2,8)}n.d(t,"a",(function(){return a}))},119:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return u}));var a=n(0),o=n.n(a),r=n(389),i=n(46);const s=o.a.createContext(async()=>{}),c=e=>{const[t,n]=Object(a.useState)(()=>"string"==typeof e.src?e.src:"#"),i=Object(a.useContext)(s);if(Object(r.a)(()=>{n("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const c=e.width||e.height||"1.2em",l=e.height||c;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:c,height:l},onClick:async a=>{if("#"===t&&"function"==typeof e.src){a.stopPropagation(),a.preventDefault();const t=await e.src();i(t),n(t)}}})};t.c=o.a.memo(c);const l=e=>{const{onPlayStart:t,...n}=e,r=Object(a.useCallback)(e=>{if(e.target&&"A"===e.target.tagName&&e.target.href&&"#"!==e.target.href&&e.target.classList&&e.target.classList.contains("saladict-Speaker")){e.preventDefault(),e.stopPropagation();const n=e.target;n.classList.add("isActive"),Object(i.b)([Object(i.d)(1e3),t(n.href)]).then(()=>{n.classList.remove("isActive")})}},[t]);return o.a.createElement(s.Provider,{value:t},o.a.createElement("div",{onClick:r,...n}))},d=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},u=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""},133:function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return f}));var a=n(0),o=n.n(a),r=n(89),i=n(116),s=n(30),c=n(240),l=n(130),d=n(104),u=n(87),h=n(135),p=n(20);const g=o.a.createContext({current:null}),f=e=>{const t=Object(a.useContext)(g),n=Object(a.useRef)(null),f=Object(a.useRef)(null),[m,b]=Object(i.a)(u.c),[x,w]=Object(i.a)(u.d),[y,C]=Object(i.a)(u.b),[M,E]=Object(i.a)(u.a),[I,j]=Object(i.a)(s.b),N=Object(c.a)(Object(l.a)(()=>Object(d.a)(b,w)),!1),O=Object(c.a)(Object(l.a)(()=>Object(d.a)(C,E,j)),!1),v=N||O,[A,z]=Object(a.useState)(()=>null==e.left?{top:null==e.top?40:e.top,left:"50%",transform:"translateX(-50%)"}:{top:null==e.top?40:e.top,left:e.left});return o.a.createElement("div",{className:"hoverBox-Container",ref:n},o.a.createElement(e.Button,{onKeyDown:e=>{switch(e.key){case"ArrowDown":if(e.preventDefault(),e.stopPropagation(),v){if(f.current){const e=f.current.firstElementChild;e&&e.focus()}}else I(!0);break;case"Tab":if(!e.shiftKey&&v&&f.current){e.preventDefault(),e.stopPropagation();const t=f.current.firstElementChild;t&&t.focus()}}},onMouseOver:m,onMouseOut:m,onClick:()=>{e.onBtnClick&&!1===e.onBtnClick()||x()}}),o.a.createElement(r.a,{classNames:"csst-hoverBox",in:v,timeout:100,mountOnEnter:!0,unmountOnExit:!0,onEnter:()=>{if(t.current&&n.current){const a=t.current.getBoundingClientRect(),o=n.current.getBoundingClientRect();z({top:o.y-a.y+(null==e.top?40:e.top),left:o.x-a.x+(null==e.left?-Math.floor(o.width/2):e.left)})}},onExited:()=>e.onHeightChanged&&e.onHeightChanged(0)},()=>{const a=o.a.createElement("div",{className:"hoverBox-FloatBox",style:A},o.a.createElement(h.a,{ref:f,compact:e.compact,list:e.items,onFocus:M,onBlur:M,onMouseOver:y,onMouseOut:y,onArrowUpFirst:e=>e.lastElementChild.focus(),onArrowDownLast:e=>e.firstElementChild.focus(),onSelect:e.onSelect,onHeightChanged:e.onHeightChanged,onClose:()=>I(!1)}));return t.current&&n.current?Object(p.createPortal)(a,t.current):a}))}},135:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),o=n.n(a),r=n(184),i=n(4),s=n.n(i);const c=o.a.forwardRef((e,t)=>{const[n,i]=Object(a.useState)(0),[c,l]=Object(a.useState)(0),d=Object(a.useCallback)((t,a)=>{l(t),i(a),e.onHeightChanged&&a!==n&&e.onHeightChanged(a)},[e.onHeightChanged]);return o.a.createElement("div",{className:s()("floatBox-Container",{"floatBox-compact":e.compact}),style:{width:c,height:n},onMouseOver:e.onMouseOver,onMouseOut:e.onMouseOut},o.a.createElement("div",{className:"floatBox-Measure"},o.a.createElement(r.ResizeReporter,{reportInit:!0,onSizeChanged:d}),e.list?o.a.createElement("div",{key:"box",ref:t,className:"floatBox"},e.list.map((function(t){if(t.options)return o.a.createElement("select",{key:t.key,className:"floatBox-Item floatBox-Select","data-key":t.key,defaultValue:t.value,onFocus:e.onFocus,onBlur:e.onBlur,onChange:u},t.title&&o.a.createElement("option",{disabled:!0},t.title),t.options.map(e=>o.a.createElement("option",{key:e.value,value:e.value},e.label)));return o.a.createElement("button",{key:t.key,className:"floatBox-Item floatBox-Btn","data-key":t.key,"data-value":t.value,onFocus:e.onFocus,onBlur:e.onBlur,onClick:h,onKeyDown:p},t.label)}))):o.a.createElement("div",{key:"loading",className:"lds-ellipsis"},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))));function u(t){if(e.onSelect){const{dataset:{key:n},value:a}=t.currentTarget;e.onSelect(n,a)}}function h(t){if(e.onSelect){const{key:n,value:a}=t.currentTarget.dataset;e.onSelect(n,a)}}function p(t){if("ArrowDown"===t.key){t.preventDefault(),t.stopPropagation();const n=t.currentTarget.nextSibling;n?n.focus():e.onArrowDownLast&&e.onArrowDownLast(t.currentTarget.parentElement)}else if("ArrowUp"===t.key){t.preventDefault(),t.stopPropagation();const n=t.currentTarget.previousSibling;n?n.focus():e.onArrowUpFirst&&e.onArrowUpFirst(t.currentTarget.parentElement)}else"Escape"===t.key&&(t.preventDefault(),t.stopPropagation(),e.onClose&&e.onClose(t.currentTarget.parentElement))}})},140:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return h}));var a=n(0),o=n.n(a),r=n(20),i=n.n(r),s=n(89),c=n(218),l=n(2);const d={enter:400,exit:100,appear:400},u={all:"initial"},h=e=>{const{id:t,head:n,shadowRootClassName:r,innerRootClassName:h,panelCSS:p,onEnter:g,onExited:f,...m}=e,b=Object(a.useMemo)(()=>{let e=document.getElementById(t);return e||(e=document.createElement("div"),e.id=t,e.className="saladict-div "+(r||l.a)),e},[r]);return Object(a.useEffect)(()=>()=>{b.parentNode&&b.remove()},[]),i.a.createPortal(o.a.createElement(c.a.div,{className:r||l.a},o.a.createElement("div",{className:h,style:u},n,p?o.a.createElement("style",null,p):null,o.a.createElement(s.a,{classNames:"shadowPortal",mountOnEnter:!0,unmountOnExit:!0,appear:!0,timeout:d,...m,onEnter:(...e)=>{if(b.parentNode||document.documentElement.appendChild(b),g)return g(...e)},onExited:(...e)=>{if(b.parentNode&&b.remove(),f)return f(...e)}}))),b)};t.b=h},141:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=Object.keys},160:function(e,t,n){"use strict";n.d(t,"b",(function(){return b}));var a=n(78),o=n(81),r=n(73),i=n.n(r),s=n(90),c=n.n(s),l=n(100),d=n.n(l),u=n(57),h=n.n(u),p=n(21),g=n.n(p),f=n(27),m=n.n(f);function b(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.a)();let r=e.version;return r<13&&(e.showedDictAuth=!0),r<=9&&(r=10,["mode","pinMode","panelMode","qsPanelMode"].forEach(t=>{n[t].holding.shift=!1,n[t].holding.ctrl=!!e[t].ctrl,n[t].holding.meta=!!e[t].ctrl,delete e[t].ctrl})),s("tripleCtrlPreload","qsPreload"),s("tripleCtrlAuto","qsAuto"),s("tripleCtrlLocation","qsLocation"),s("tripleCtrlStandalone","qsStandalone"),s("tripleCtrlHeight","qssaHeight"),s("tripleCtrlSidebar","qssaSidebar"),s("tripleCtrlPageSel","qssaPageSel"),Object.keys(n).forEach(t=>{switch(t){case"langCode":f("langCode",e=>/^(zh-CN|zh-TW|en)$/.test(e));break;case"pdfWhitelist":case"pdfBlacklist":case"whitelist":case"blacklist":f(t,e=>Array.isArray(e));break;case"searhHistory":case"searchHistory":n.searchHistory=e[t];break;case"searhHistoryInco":case"searchHistoryInco":n.searchHistoryInco=e[t];break;case"mode":case"pinMode":case"panelMode":case"qsPanelMode":"mode"===t&&p("mode.icon"),p(t+".direct"),p(t+".double"),p(t+".holding.alt"),p(t+".holding.shift"),p(t+".holding.ctrl"),p(t+".holding.meta"),p(t+".instant.enable"),f(t+".instant.key",e=>/^(direct|ctrl|alt|shift)$/.test(e)),l(t+".instant.delay");break;case"qsPreload":f("qsPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"qsLocation":f("qsLocation",e=>"CENTER"===e||"TOP"===e||"RIGHT"===e||"BOTTOM"===e||"LEFT"===e||"TOP_LEFT"===e||"TOP_RIGHT"===e||"BOTTOM_LEFT"===e||"BOTTOM_RIGHT"===e);break;case"baPreload":f("baPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"ctxTrans":i()(n.ctxTrans,(e,t)=>{p("ctxTrans."+t)});break;case"language":i()(n.language,(e,t)=>{p("language."+t)});break;case"autopron":f("autopron.cn.dict",e=>o.a[e]),f("autopron.en.dict",e=>o.a[e]),f("autopron.en.accent",e=>"us"===e||"uk"===e),f("autopron.machine.dict",e=>o.a[e]),f("autopron.machine.src",e=>"trans"===e||"searchText"===e);break;case"contextMenus":i()(e.contextMenus.all,(e,t)=>{"string"==typeof e?n.contextMenus.all[t]&&u("contextMenus.all."+t):(u(`contextMenus.all.${t}.name`),u(`contextMenus.all.${t}.url`))}),function(t){const a=g()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)m()(n,[t,"selected"],[]);else{const e=g()(n,[t,"all"]),o=a.filter(t=>e[t]);o.length>0&&m()(n,[t,"selected"],o)}}("contextMenus");break;case"dictAuth":f("dictAuth",Boolean);break;default:switch(typeof n[t]){case"string":u(t);break;case"boolean":p(t);break;case"number":l(t);break;default:console.error(new Error(`merge config: missing handler for '${t}'`))}}}),r=e.version,r<=10&&(r=11,n.contextMenus.selected.unshift("view_as_pdf")),r<=11&&(r=12,n.blacklist.push(["^https://stackedit.io(/.*)?$","https://stackedit.io/*"])),!1===e.language.minor&&(n.language.japanese=!1,n.language.korean=!1,n.language.french=!1,n.language.spanish=!1,n.language.deutsch=!1),n.panelMaxHeightRatio<1&&(n.panelMaxHeightRatio=Math.round(100*n.panelMaxHeightRatio)),n;function s(t,n){!Object.prototype.hasOwnProperty.call(e,n)&&Object.prototype.hasOwnProperty.call(e,t)&&(e[n]=e[t])}function l(e){return f(e,c.a)}function u(e){return f(e,d.a)}function p(e){return f(e,h.a)}function f(t,a){const o=g()(e,t);a(o)&&m()(n,t,o)}}t.a=b},165:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appid:"",key:""},o="http://api.fanyi.baidu.com/api/trans/product/prodinfo"},166:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={token:""},o="https://fanyi.caiyunapp.com/#/api"},167:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={pid:"",key:""},o="https://deepi.sogou.com/?from=translatepc"},168:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={secretId:"",secretKey:""},o="https://curl.qcloud.com/imsowZzT"},169:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appKey:"",key:""},o="http://ai.youdao.com/gw.s"},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i}));var a=n(24);async function o(e,t,{options:n,options_sel:o},r,i){("none"===n.keepLF||"pdf"===n.keepLF&&!i.isPDF||"webpage"===n.keepLF&&i.isPDF)&&(t=t.replace(/\n+/g," "));let s=i.sl;s||(Object(a.g)(t)?s="ja":Object(a.h)(t)&&(s="ko")),s||(s=await e.detect(t));let c="";return i.tl?c=i.tl:"default"===n.tl?o.tl.includes(r.langCode)&&(c=r.langCode):c=n.tl,c||(c=o.tl.find(e=>"default"!==e)||"en"),s===c&&(i.tl?i.sl||(s="auto"):c="default"===n.tl2?c!==r.langCode?r.langCode:"en"!==c?"en":o.tl.find(e=>"default"!==e&&e!==c)||"en":n.tl2),{sl:s,tl:c,text:t}}function r(e,t,n,a){return{lang:"11111111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:320,selectionWC:{min:1,max:999999999999999},...t,options:{keepLF:"webpage",slInitial:"collapse",tl:"default",tl2:"default",...n},options_sel:{keepLF:["none","all","webpage","pdf"],slInitial:["collapse","hide","full"],tl:["default",...e],tl2:["default",...e],...a}}}function i(e,t){const n=[{value:"auto",label:"%t(content:machineTrans.auto)"}];for(const e of t)n.push({value:e,label:`${e} %t(langcode:${e})`});const a=[{key:"sl",value:e.result.sl,title:"%t(content:machineTrans.sl)",options:n},{key:"tl",value:e.result.tl,title:"%t(content:machineTrans.tl)",options:n},{key:"copySrc",value:"copySrc",label:"%t(content:machineTrans.copySrc)"},{key:"copyTrans",value:"copyTrans",label:"%t(content:machineTrans.copyTrans)"}];return"hide"===e.result.slInitial&&a.push({key:"showSl",value:"",label:"%t(content:machineTrans.showSl)"}),{...e,catalog:a}}},173:function(e,t,n){"use strict";n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return O}));var a=n(118),o=n(104),r=n(52),i=n(155),s=n(38),c=n(10),l=n(83),d=n(128),u=n(500),h=n(501),p=n(180),g=n(176),f=n(108),m=n(435),b=n(502),x=n(116),w=n(130),y=n(30),C=n(182),M=n(2),E=n(42),I=n(24),j=n(41);function N(e){return e?e.touchMode?function(e){const t=Object(o.a)(Object(r.a)(window,"mousedown",{capture:!0}).pipe(Object(s.a)(e=>0===e.button)),Object(r.a)(window,"touchstart",{capture:!0}).pipe(Object(c.a)(e=>e.changedTouches[0]))),n=Object(o.a)(Object(r.a)(window,"mouseup",{capture:!0}).pipe(Object(s.a)(e=>0===e.button)),Object(r.a)(window,"touchend",{capture:!0}).pipe(Object(c.a)(e=>e.changedTouches[0]))),a=v(n,e.doubleClickDelay),p=Object(o.a)(Object(l.a)(!0)(t),Object(l.a)(!1)(n),Object(l.a)(!1)(Object(r.a)(window,"mouseout",{capture:!0})),Object(l.a)(!1)(Object(r.a)(window,"blur",{capture:!0})));return Object(r.a)(document,"selectionchange").pipe(Object(d.a)(p),Object(u.a)(([,e])=>e?n:Object(i.a)(400)),Object(c.a)(([,e])=>[window.getSelection(),e]),Object(s.a)(e=>!!e[0]&&!Object(M.e)(e[0].anchorNode)),Object(d.a)(n,t,a),Object(c.a)(([[t,n],a,o,r])=>{const i=Object(M.d)(t.anchorNode||o.target);if(e.noTypeField&&Object(j.d)(n?o.target:t.anchorNode))return{self:i};const s=Object(E.d)(t);if(!Object(I.a)(e.language,s))return{self:i};if(n)return{word:{text:s,context:Object(E.b)(t)},self:i,dbClick:r>=2,mouseX:a.clientX,mouseY:a.clientY,altKey:!!a.altKey,shiftKey:!!a.shiftKey,ctrlKey:!!a.ctrlKey,metaKey:!!a.metaKey};const c=t.getRangeAt(0).getBoundingClientRect();return 0===c.top&&0===c.left&&0===c.width&&0===c.height?{self:i}:{word:{text:s,context:Object(E.b)(t)},self:i,dbClick:r>=2,mouseX:c.right,mouseY:c.top}}),Object(h.a)(t=>{if(M.c&&t.self&&t.word&&t.word.text){const{direct:n,double:a,holding:o}=e.panelMode;if(n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey)return Object(i.a)(500)}return Object(i.a)(0)}))}(e):function(e){const t=Object(r.a)(window,"mousedown",{capture:!0}).pipe(Object(s.a)(e=>0===e.button)),n=Object(r.a)(window,"mouseup",{capture:!0}).pipe(Object(s.a)(e=>0===e.button)),a=v(n,e.doubleClickDelay);return n.pipe(Object(s.a)(e=>!Object(M.e)(e.target)),Object(p.a)(10),Object(d.a)(t,a),Object(s.a)(([e,t])=>!Object(M.d)(e.target)&&!Object(M.d)(t.target)),Object(c.a)(([t,n,a])=>{if(e.noTypeField&&Object(j.d)(n.target))return{self:!1};const o=window.getSelection(),r=Object(E.d)(o);return Object(I.a)(e.language,r)?{word:{text:r,context:Object(E.b)(o)},self:!1,dbClick:a>=2,mouseX:t.clientX,mouseY:t.clientY,altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey}:{self:!1}}),Object(g.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context))}(e):a.a}function O(e,t,n,a){const[o,r]=Object(x.a)(e=>e.pipe(Object(s.a)(e=>0===e.button))),i=Object(w.a)(y.b,[e,t]),l=Object(w.a)(e=>e.pipe(Object(f.a)(([e])=>v(r,e))),[n]),u=Object(w.a)(()=>r.pipe(Object(d.a)(i),Object(s.a)(([e,[t]])=>{if(t)return!1;for(let t=e.target;t;t=t.parentElement)if("A"===t.tagName||"BUTTON"===t.tagName)return!1;return!0}),Object(c.a)(([e,[,t]])=>({mouseup:e.nativeEvent,language:t})),Object(p.a)(10),Object(d.a)(l),Object(c.a)(([{mouseup:e,language:t},n])=>{const a=window.getSelection(),o=Object(E.d)(a);return Object(I.a)(t,o)?{word:{text:o,context:Object(E.b)(a)},dbClick:n>=2,mouseX:e.clientX,mouseY:e.clientY,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,self:!0,instant:!1,force:!1}:{word:null,self:!0,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}}),Object(g.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context)));return Object(C.a)(u,async e=>{e.word&&(e.word=await Object(j.e)(e.word)),a(e)}),o}function v(e,t){return e.pipe(Object(f.a)(()=>Object(i.a)(t).pipe(Object(l.a)(!1),Object(m.a)(!0))),Object(b.a)((e,t)=>t?e+1:0,0))}},178:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(74),o=n(73),r=n.n(o),i=n(90),s=n.n(i),c=n(100),l=n.n(c),d=n(57),u=n.n(d),h=n(21),p=n.n(h),g=n(27),f=n.n(g);function m(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.b)(e.id);return Object.keys(n).forEach(t=>{switch(t){case"dicts":(function(t){const a=p()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)f()(n,[t,"selected"],[]);else{const e=p()(n,[t,"all"]),o=a.map(e=>"olad"===e?"lexico":e).filter(t=>e[t]);o.length>0&&f()(n,[t,"selected"],o)}})("dicts"),r()(n.dicts.all,(t,a)=>{const c=p()(e,`dicts.all.${a}.defaultUnfold`);u()(c)?f()(n,`dicts.all.${a}.defaultUnfold`,{chinese:c,english:c,japanese:c,korean:c,french:c,spanish:c,deutsch:c,others:c}):(i(`dicts.all.${a}.defaultUnfold.chinese`),i(`dicts.all.${a}.defaultUnfold.english`),i(`dicts.all.${a}.defaultUnfold.japanese`),i(`dicts.all.${a}.defaultUnfold.korean`),i(`dicts.all.${a}.defaultUnfold.french`),i(`dicts.all.${a}.defaultUnfold.spanish`),i(`dicts.all.${a}.defaultUnfold.deutsch`),i(`dicts.all.${a}.defaultUnfold.others`));const d=p()(e,`dicts.all.${a}.selectionLang.chs`);u()(d)?f()(n,`dicts.all.${a}.selectionLang.chinese`,d):i(`dicts.all.${a}.selectionLang.chinese`);const h=p()(e,`dicts.all.${a}.selectionLang.eng`);if(u()(h)?f()(n,`dicts.all.${a}.selectionLang.english`,h):i(`dicts.all.${a}.selectionLang.english`),i(`dicts.all.${a}.selectionLang.japanese`),i(`dicts.all.${a}.selectionLang.korean`),i(`dicts.all.${a}.selectionLang.french`),i(`dicts.all.${a}.selectionLang.spanish`),i(`dicts.all.${a}.selectionLang.deutsch`),i(`dicts.all.${a}.selectionLang.others`),o(`dicts.all.${a}.preferredHeight`),o(`dicts.all.${a}.selectionWC.min`),o(`dicts.all.${a}.selectionWC.max`),t.options){if(r()(t.options,(t,r)=>{if(s()(t))o(`dicts.all.${a}.options.${r}`);else if(u()(t))i(`dicts.all.${a}.options.${r}`);else if(l()(t)){const o=p()(e,`dicts.all.${a}.options.${r}`),i=p()(n,`dicts.all.${a}.options_sel.${r}`);f()(n,`dicts.all.${a}.options.${r}`,i.includes(o)?o:t)}}),!s()(e.version)){const e=["baidu","caiyun","google","sogou","tencent","youdaotrans"];e.every(e=>"hide"===p()(n,`dicts.all.${e}.options.slInitial`))&&e.forEach(e=>{f()(n,`dicts.all.${e}.options.slInitial`,"collapse")})}const c=p()(e,`dicts.all.${a}.options.pdfNewline`);u()(c)&&f()(n,`dicts.all.${a}.options.keepLF`,c?"all":"webpage")}});break;default:switch(typeof n[t]){case"string":c(t,l.a);break;case"boolean":i(t);break;case"number":o(t);break;default:console.error(new Error(`merge profile: missing handler for '${t}'`))}}}),"kor"===n.dicts.all.hjdict.options.chsas&&(n.dicts.all.hjdict.options.chsas="kr"),n;function o(e){return c(e,s.a)}function i(e){return c(e,u.a)}function c(t,a){const o=p()(e,t);a(o)&&f()(n,t,o)}}},2:function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"h",(function(){return o})),n.d(t,"j",(function(){return r})),n.d(t,"i",(function(){return i})),n.d(t,"k",(function(){return s})),n.d(t,"l",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"g",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return g}));const a=()=>!!window.__SALADICT_INTERNAL_PAGE__,o=()=>!!window.__SALADICT_OPTIONS_PAGE__,r=()=>!!window.__SALADICT_POPUP_PAGE__,i=()=>!!window.__SALADICT_PDF_PAGE__,s=()=>!!window.__SALADICT_QUICK_SEARCH_PAGE__,c=()=>r()||s(),l="saladict-external",d="saladict-panel",u=navigator.userAgent.includes("Firefox"),h=navigator.userAgent.includes("OPR");function p(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(l))return!0;return!1}function g(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(d))return!0;return!1}},24:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"i",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"j",(function(){return x})),n.d(t,"a",(function(){return w}));var a=n(19);const o=["chinese","english","japanese","korean","french","spanish","deutsch"],r={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},i=e=>r.chinese.test(e),s=e=>r.english.test(e),c=e=>r.japanese.test(e),l=e=>r.korean.test(e),d=e=>r.french.test(e),u=e=>r.deutsch.test(e),h=e=>r.spanish.test(e),p={chinese:Object(a.a)(i),english:Object(a.a)(s),japanese:Object(a.a)(c),korean:Object(a.a)(l),french:Object(a.a)(d),spanish:Object(a.a)(h),deutsch:Object(a.a)(u)},g=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,f=new RegExp(`^(\\d|\\s|${g.source})+$`),m=new RegExp(`${r.chinese.source}|${r.japanese.source}|${r.korean.source}`),b=Object(a.a)(e=>(e.replace(new RegExp(g,"g")," ").replace(new RegExp(m,"g")," x ").match(/\S+/g)||"").length),x=[...o,"others","matchAll"];function w(e,t){if(!t)return!1;if(e.matchAll){if(f.test(t))return!1;if(e.others){const n=[/-|\.|\d|\s/],a=[];for(let t=o.length-1;t>=0;t--){const i=o[t];e[i]?n.push(r[i]):a.push(r[i])}for(let e=0;e<t.length;e++)if(n.every(n=>!n.test(t[e]))&&a.some(n=>n.test(t[e])))return!1;return!0}{const n=o.filter(t=>e[t]).map(e=>r[e]);n.push(/-|\.|\d|\s/);for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!1;return!0}}{if(o.some(n=>e[n]&&p[n](t)))return!0;if(!e.others||f.test(t))return!1;const n=o.filter(t=>!e[t]).map(e=>r[e]);n.push(new RegExp(g.source+"|\\d|\\s"));for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!0;return!1}}},247:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),o=n.n(a);class r extends o.a.PureComponent{constructor(...e){super(...e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.error?o.a.createElement(this.props.error):null:this.props.children}}},259:function(e,t,n){var a={"./en/background.ts":[442,110],"./en/common.ts":[543,111],"./en/content.ts":[544,112],"./en/langcode.ts":[545,91],"./en/menus.ts":[546,113],"./en/options.ts":[547,114],"./en/popup.ts":[548,115],"./en/wordpage.ts":[549,116],"./zh-CN/background.ts":[443,117],"./zh-CN/common.ts":[550,118],"./zh-CN/content.ts":[551,119],"./zh-CN/langcode.ts":[552,92],"./zh-CN/menus.ts":[553,120],"./zh-CN/options.ts":[554,121],"./zh-CN/popup.ts":[555,122],"./zh-CN/wordpage.ts":[556,123],"./zh-TW/background.ts":[444,124],"./zh-TW/common.ts":[557,125],"./zh-TW/content.ts":[558,126],"./zh-TW/langcode.ts":[559,93],"./zh-TW/menus.ts":[560,127],"./zh-TW/options.ts":[561,128],"./zh-TW/popup.ts":[562,129],"./zh-TW/wordpage.ts":[563,130]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(a)},o.id=259,e.exports=o},260:function(e,t,n){var a={"./baidu/_locales.ts":261,"./bing/_locales.json":262,"./caiyun/_locales.ts":263,"./cambridge/_locales.json":264,"./cnki/_locales.json":265,"./cobuild/_locales.json":266,"./etymonline/_locales.json":267,"./eudic/_locales.json":268,"./google/_locales.ts":269,"./googledict/_locales.json":270,"./guoyu/_locales.json":271,"./hjdict/_locales.json":272,"./jikipedia/_locales.json":273,"./jukuu/_locales.json":274,"./lexico/_locales.json":275,"./liangan/_locales.json":276,"./longman/_locales.json":277,"./macmillan/_locales.json":278,"./mojidict/_locales.json":279,"./naver/_locales.json":280,"./renren/_locales.json":281,"./shanbay/_locales.json":282,"./sogou/_locales.ts":283,"./tencent/_locales.ts":284,"./urban/_locales.json":285,"./vocabulary/_locales.json":286,"./weblio/_locales.json":287,"./weblioejje/_locales.json":288,"./websterlearner/_locales.json":289,"./wikipedia/_locales.json":290,"./youdao/_locales.json":291,"./youdaotrans/_locales.ts":292,"./zdic/_locales.json":293};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=260},261:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Baidu Translate","zh-CN":"百度翻译","zh-TW":"百度翻譯"})},262:function(e){e.exports=JSON.parse('{"name":{"en":"Bing Dict","zh-CN":"必应词典","zh-TW":"必應詞典"},"options":{"tense":{"en":"Show sense","zh-CN":"显示单词时态","zh-TW":"展示單詞時態"},"phsym":{"en":"Show pronunciation","zh-CN":"显示单词发音","zh-TW":"展示單詞發音"},"cdef":{"en":"Show definitions","zh-CN":"显示单词解释","zh-TW":"展示單詞解釋"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"sentence":{"en":"Show sentences","zh-CN":"显示例句","zh-TW":"展示例句"},"sentence_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},263:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"LingoCloud","zh-CN":"彩云小译","zh-TW":"彩雲小譯"})},264:function(e){e.exports=JSON.parse('{"name":{"en":"Cambridge Dictionary","zh-CN":"剑桥词典","zh-TW":"劍橋詞典"},"options":{"lang":{"en":"Language","zh-CN":"语言","zh-TW":"語言"},"lang-default":{"en":"Default","zh-CN":"随扩展","zh-TW":"未設定"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-en-chs":{"en":"English–Chinese (Simplified)","zh-CN":"英简","zh-TW":"英简"},"lang-en-chz":{"en":"English–Chinese (Traditional)","zh-CN":"英繁","zh-TW":"英繁"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},265:function(e){e.exports=JSON.parse('{"name":{"en":"CNKI Dict","zh-CN":"CNKI翻译助手","zh-TW":"CNKI翻譯助手"},"options":{"dict":{"en":"Show dict result","zh-CN":"显示词典结果","zh-TW":"展示字典結果"},"senbi":{"en":"Show bilingual sentences","zh-CN":"显示双语例句","zh-TW":"展示雙語例句"},"seneng":{"en":"Show English sentences","zh-CN":"显示英文例句","zh-TW":"展示英文例句"},"digests":{"en":"Show relevant digests","zh-CN":"显示相关文摘","zh-TW":"展示相關文摘"}}}')},266:function(e){e.exports=JSON.parse('{"name":{"en":"COBUILD","zh-CN":"柯林斯高阶","zh-TW":"柯林斯高階"},"options":{"cibaFirst":{"en":"Prefer bilingual dictionary","zh-CN":"优先查双语词典","zh-TW":"優先查雙語詞典"}},"helps":{"cibaFirst":{"en":"Bilingual server is less stable","zh-CN":"双语词典服务器不稳定,解释没全英丰富","zh-TW":"雙語詞典伺服器不穩定,解釋沒全英豐富"}}}')},267:function(e){e.exports=JSON.parse('{"name":{"en":"Etymonline","zh-CN":"Etymonline","zh-TW":"Etymonline"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"},"chart":{"en":"Show Chart","zh-CN":"显示图表","zh-TW":"顯示圖表"}}}')},268:function(e){e.exports=JSON.parse('{"name":{"en":"Eudic","zh-CN":"双语例句","zh-TW":"雙語例句"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},269:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Google Translation","zh-CN":"谷歌翻译","zh-TW":"谷歌翻譯"},{cnfirst:{en:"Use google.cn first","zh-CN":"优先使用 google.cn","zh-TW":"優先使用 google.cn"},concurrent:{en:"Search concurrently","zh-CN":"并行查询","zh-TW":"並行查詢"}},{concurrent:{en:"Search .com and .cn concurrently","zh-CN":"同时搜索 .com 和 .cn 取最先返回的结果","zh-TW":"同時搜尋 .com 和 .cn 取最先返回的結果"}})},270:function(e){e.exports=JSON.parse('{"name":{"en":"Google Dictionary","zh-CN":"谷歌词典","zh-TW":"谷歌詞典"},"options":{"enresult":{"en":"English Result","zh-CN":"强制显示英文结果","zh-TW":"強制顯示英文結果"}}}')},271:function(e){e.exports=JSON.parse('{"name":{"en":"國語辭典","zh-CN":"国语辞典","zh-TW":"國語辭典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},272:function(e){e.exports=JSON.parse('{"name":{"en":"Hu Jiang","zh-CN":"沪江小D","zh-TW":"沪江小D"},"options":{"engas":{"en":"Treat English as","zh-CN":"对全英文使用词典","zh-TW":"對全英文使用字典"},"chsas":{"en":"Treat Chinese as","zh-CN":"对全中文使用词典","zh-TW":"對全中文使用字典"},"uas":{"en":"Treat \'ü\' as","zh-CN":"将 \'ü\' 字符当作","zh-TW":"把 \'ü\' 字元當成"},"aas":{"en":"Treat \'ä\' as","zh-CN":"将 \'ä\' 字符当作","zh-TW":"把 \'ä\' 字元當成"},"eas":{"en":"Treat \'é\' as","zh-CN":"将 \'é\' 字符当作","zh-TW":"把 \'é\' 字元當成"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"chsas-jp/cj":{"en":"中 → 日","zh-CN":"中 → 日","zh-TW":"中 → 日"},"chsas-jp/jc":{"en":"日 → 中","zh-CN":"日 → 中","zh-TW":"日 → 中"},"chsas-kr":{"en":"Korean","zh-CN":"韩文","zh-TW":"韓文"},"chsas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"chsas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"chsas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"chsas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"engas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"engas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"engas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"engas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"uas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"uas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"uas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"aas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"aas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"eas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"eas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"}}}')},273:function(e){e.exports=JSON.parse('{"name":{"en":"Jikipedia","zh-CN":"小鸡词典","zh-TW":"小雞詞典"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},274:function(e){e.exports=JSON.parse('{"name":{"en":"Jukuu","zh-CN":"句酷","zh-TW":"句酷"},"options":{"lang":{"en":"Language","zh-CN":"语言","zh-TW":"語言"},"lang-zheng":{"en":"Chinese-English","zh-CN":"中英","zh-TW":"中英"},"lang-engjp":{"en":"English-Japanese","zh-CN":"英日","zh-TW":"英日"},"lang-zhjp":{"en":"Chinese-Japanese","zh-CN":"中日","zh-TW":"中日"}}}')},275:function(e){e.exports=JSON.parse('{"name":{"en":"Lexico","zh-CN":"Lexico","zh-TW":"Lexico"},"options":{"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},276:function(e){e.exports=JSON.parse('{"name":{"en":"兩岸詞典","zh-CN":"两岸词典","zh-TW":"兩岸詞典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},277:function(e){e.exports=JSON.parse('{"name":{"en":"Longman Dictionary","zh-CN":"朗文词典","zh-TW":"朗文詞典"},"options":{"wordfams":{"en":"Show word family","zh-CN":"显示单词家族","zh-TW":"展示單字家族"},"collocations":{"en":"Show collocations","zh-CN":"显示惯用搭配","zh-TW":"展示慣用搭配"},"grammar":{"en":"Show grammar","zh-CN":"显示语法解释","zh-TW":"展示文法講解"},"thesaurus":{"en":"Show thesaurus","zh-CN":"显示同义词","zh-TW":"展示同義詞"},"examples":{"en":"Show examples","zh-CN":"显示例句","zh-TW":"展示例句"},"bussinessFirst":{"en":"Show bussiness result first","zh-CN":"优先显示商务词典","zh-TW":"優先展示商務字典"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},278:function(e){e.exports=JSON.parse('{"name":{"en":"Macmillan","zh-CN":"麦克米伦","zh-TW":"麥克米倫"},"options":{"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"locale":{"en":"Locale","zh-CN":"方言","zh-TW":"方言"},"locale-uk":{"en":"UK","zh-CN":"英式","zh-TW":"英式"},"locale-us":{"en":"US","zh-CN":"美式","zh-TW":"美式"}}}')},279:function(e){e.exports=JSON.parse('{"name":{"en":"MOJi辞書","zh-CN":"MOJi辞書","zh-TW":"MOJi辞書"}}')},280:function(e){e.exports=JSON.parse('{"name":{"en":"Naver韩国语词典","zh-CN":"Naver韩国语词典","zh-TW":"Naver韩国语词典"},"options":{"hanAsJa":{"en":"Search Chinese with Japanese Dictionary","zh-CN":"用日语词典查中文","zh-TW":"用日語詞典查漢字"},"korAsJa":{"en":"Search Korean with Japanese Dictionary","zh-CN":"用日语词典查韩语","zh-TW":"用日语词典查韓語"}}}')},281:function(e){e.exports=JSON.parse('{"name":{"en":"91dict","zh-CN":"人人词典","zh-TW":"人人詞典"}}')},282:function(e){e.exports=JSON.parse('{"name":{"en":"Shanbay Dictionary","zh-CN":"扇贝词典","zh-TW":"扇貝詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"}}}')},283:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Sogou Translation","zh-CN":"搜狗翻译","zh-TW":"搜狗翻譯"})},284:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Tencent Translate","zh-CN":"腾讯翻译君","zh-TW":"騰訊翻譯君"})},285:function(e){e.exports=JSON.parse('{"name":{"en":"Urban","zh-CN":"Urban","zh-TW":"Urban"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},286:function(e){e.exports=JSON.parse('{"name":{"en":"Vocabulary.com","zh-CN":"Vocabulary.com","zh-TW":"Vocabulary.com"}}')},287:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio","zh-CN":"Weblio 辞書","zh-TW":"Weblio 辞書"}}')},288:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio ejje","zh-CN":"Weblio 英和和英","zh-TW":"Weblio 英和和英"}}')},289:function(e){e.exports=JSON.parse('{"name":{"en":"Merriam-Webster\'s Learner\'s Dictionary","zh-CN":"韦氏学习词典","zh-TW":"韋氏學習字典"},"options":{"defs":{"en":"Show definitions","zh-CN":"显示释义","zh-TW":"顯示解釋"},"phrase":{"en":"Show phrases","zh-CN":"显示词组","zh-TW":"顯示片語"},"derived":{"en":"Show derived words","zh-CN":"显示派生词","zh-TW":"顯示衍生字"},"arts":{"en":"Show pictures","zh-CN":"显示图片释义","zh-TW":"顯示圖片解釋"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},29:function(e,t,n){"use strict";n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"c",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return x}));var a=n(85),o=n.n(a),r=n(78),i=n(160),s=n(1),c=n(95),l=n(64),d=n(76),u=n(10);function h(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}async function p(){let e=await f();return e=e&&e.version?Object(i.b)(e):Object(r.a)(),await m(e),e}async function g(){const e=Object(r.a)();return await m(e),e}async function f(){const{baseconfig:e}=await s.c.sync.get("baseconfig");return h(e||Object(r.a)())}function m(e){return s.c.sync.set({baseconfig:(t=e,{v:1,d:o.a.deflate(JSON.stringify(t),{to:"string"})})});var t}async function b(e){s.c.sync.addListener(t=>{if(t.baseconfig){const{newValue:n,oldValue:a}=t.baseconfig;n&&e({newConfig:h(n),oldConfig:h(a)})}})}function x(){return Object(c.a)(Object(l.a)(f()),Object(d.a)(b).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newConfig)))}},290:function(e){e.exports=JSON.parse('{"name":{"en":"Wikipedia","zh-CN":"维基百科","zh-TW":"維基百科"},"options":{"lang":{"en":"Language","zh-CN":"百科语言","zh-TW":"百科語言"},"lang-auto":{"en":"Auto (respect Wiki settings)","zh-CN":"自动(遵循维基账户设定)","zh-TW":"自动(遵循維基賬戶設定)"},"lang-zh":{"en":"中文(简繁由维基账户设定)","zh-CN":"中文(简繁由维基账户设定)","zh-TW":"中文(簡繁由維基賬戶設定)"},"lang-zh-cn":{"en":"强制简体中文子页面","zh-CN":"强制简体中文子页面","zh-TW":"强制简体中文子页面"},"lang-zh-tw":{"en":"強制台灣正體子頁面","zh-CN":"強制台灣正體子頁面","zh-TW":"強制台灣正體子頁面"},"lang-zh-hk":{"en":"強制香港繁體子頁面","zh-CN":"強制香港繁體子頁面","zh-TW":"強制香港繁體子頁面"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-ja":{"en":"日本語","zh-CN":"日本語","zh-TW":"日本語"},"lang-fr":{"en":"Français","zh-CN":"Français","zh-TW":"Français"},"lang-de":{"en":"Deutschsprachige","zh-CN":"Deutschsprachige","zh-TW":"Deutschsprachige"}}}')},291:function(e){e.exports=JSON.parse('{"name":{"en":"Youdao Dictionary","zh-CN":"有道词典","zh-TW":"有道詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"collins":{"en":"Show Collins result","zh-CN":"显示柯林斯双解","zh-TW":"顯示柯林斯雙解"},"discrimination":{"en":"Show discrimination","zh-CN":"显示词语辨析","zh-TW":"顯示詞語辨析"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"},"translation":{"en":"Show translation","zh-CN":"显示有道翻译","zh-TW":"顯示有道翻譯"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},292:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Youdao Translate","zh-CN":"有道翻译","zh-TW":"有道翻譯"})},293:function(e){e.exports=JSON.parse('{"name":{"en":"汉典","zh-CN":"汉典","zh-TW":"漢典"},"options":{"audio":{"en":"Enable audio","zh-CN":"开启发音","zh-TW":"啟用發音"}},"helps":{"audio":{"en":"Referer modification is required, which may slightly impact performance.","zh-CN":"突破外链限制需要改写 Referer,可能会轻微影响性能。","zh-TW":"突破外鏈限制需要改寫 Referer,可能會輕微影響效能。"}}}')},294:function(e,t,n){var a={"./ankiconnect/_locales/en.ts":295,"./ankiconnect/_locales/zh-CN.ts":296,"./ankiconnect/_locales/zh-TW.ts":297,"./shanbay/_locales/en.ts":298,"./shanbay/_locales/zh-CN.ts":299,"./shanbay/_locales/zh-TW.ts":300,"./webdav/_locales/en.ts":301,"./webdav/_locales/zh-CN.ts":302,"./webdav/_locales/zh-TW.ts":303};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=294},295:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"Cannot connect to Anki Connect. Please make sure Anki is running.",deck:"Deck not found in Anki.",notetype:"Note type not found in Anki.",add:"Failed to add word to Anki."}}},296:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"无法连接 Anki Connect,请确认 Anki 已在运行。",deck:"Anki 中没有找到相应牌组。",notetype:"Anki 中没有找到相应笔记类型。",add:"添加单词到 Anki 失败。"}}},297:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"無法連線 Anki Connect,請確認 Anki 已在執行。",deck:"Anki 中沒有找到相應牌組。",notetype:"Anki 中沒有找到相應筆記型別。",add:"新增單詞到 Anki 失敗。"}}},298:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Shanbay Word Syncing",open:"Open",error:{login:"Shanbay login failed. Click to open shanbay.com.",network:"Unable to access shanbay.com. Please check your network connection.",word:"Unable to add to Shanbay notebook. This word is not in Shanbay's vocabulary database."}}},299:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇贝单词同步",open:"打开",error:{login:"扇贝登录已失效,请点击打开官网重新登录。",network:"无法访问扇贝生词本,请检查网络。",word:"无法添加到扇贝生词本,扇贝单词库没有收录此单词。"}}},300:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇貝單字同步",open:"開啟",error:{login:"扇貝登入已失效,請點選開啟官網重新登入。",network:"無法訪問扇貝生字本,請檢查網路。",word:"無法新增到扇貝生字本,扇貝單字庫沒有收錄此單字。"}}},301:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV Word Syncing",error:{dir:'Incorrect "Saladict" directory on server.',download:"Download failed. Unable to connect WebDAV Server. If browser proxy is enabled please adjust rules to bypass WebDAV server.",internal:"Unable to save settings.",missing:'Missing "Saladict" directory on server.',mkcol:'Cannot create "Saladict" directory on server. Please create the directory manualy on server.',network:"Network error. Cannot connect to server.",parse:"Incorrect response XML from server.",unauthorized:"Incorrect account or password."}}},302:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 单词同步",error:{dir:"服务器上“Saladict”目录格式不正确,请检查。",download:"下载失败。无法访问 WebDAV 服务器。如启用了浏览器代理请调整规则,不要代理 WebDAV 服务器。",internal:"无法保存。",missing:"服务器上缺少“Saladict”目录。",mkcol:"无法在服务器创建“Saladict”目录。请手动在服务器上创建。",network:"连接服务器失败。",parse:"服务器返回 XML 格式不正确。",unauthorized:"账户或密码不正确。"}}},303:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 單字同步",error:{dir:"伺服器上“Saladict”目錄格式不正確,請檢查。",download:"下載失敗。無法訪問 WebDAV 伺服器。如啟用了瀏覽器代理請調整規則,不要代理 WebDAV 伺服器。",internal:"無法儲存。",missing:"伺服器上缺少“Saladict”目錄。",mkcol:"無法在伺服器建立“Saladict”目錄。請手動在伺服器上建立。",network:"連線伺服器失敗。",parse:"伺服器返回 XML 格式不正確。",unauthorized:"帳戶或密碼不正確。"}}},364:function(e,t,n){"use strict";n.d(t,"a",(function(){return V}));var a=n(22),o=n(40),r=n(2),i=n(11),s=n(1),c=n(0),l=n.n(c),d=n(116),u=n(182),h=n(130),p=n(704),g=n(371),f=n(10),m=n(435),b=n(9);const x=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn-dir",title:t("tip.historyBack"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M 7.191 15.999 L 21.643 1.548 C 21.998 1.192 21.998 0.622 21.643 0.267 C 21.288 -0.089 20.718 -0.089 20.362 0.267 L 5.267 15.362 C 4.911 15.718 4.911 16.288 5.267 16.643 L 20.362 31.732 C 20.537 31.906 20.771 32 20.999 32 C 21.227 32 21.462 31.913 21.636 31.732 C 21.992 31.377 21.992 30.807 21.636 30.451 L 7.191 15.999 Z"})))},w=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn-dir",title:e.t("tip.historyNext"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},l.a.createElement("path",{d:"M 25.643 15.362 L 10.547 0.267 C 10.192 -0.089 9.622 -0.089 9.267 0.267 C 8.911 0.622 8.911 1.192 9.267 1.547 L 23.718 15.999 L 9.267 30.451 C 8.911 30.806 8.911 31.376 9.267 31.732 C 9.441 31.906 9.676 32 9.904 32 C 10.132 32 10.366 31.913 10.541 31.732 L 25.636 16.636 C 25.992 16.288 25.992 15.711 25.643 15.362 Z"})))},y=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.searchText"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52.966 52.966"},l.a.createElement("path",{d:"M51.704 51.273L36.844 35.82c3.79-3.8 6.14-9.04 6.14-14.82 0-11.58-9.42-21-21-21s-21 9.42-21 21 9.42 21 21 21c5.082 0 9.747-1.817 13.383-4.832l14.895 15.49c.196.206.458.308.72.308.25 0 .5-.093.694-.28.398-.382.41-1.015.028-1.413zM21.984 40c-10.478 0-19-8.523-19-19s8.522-19 19-19 19 8.523 19 19-8.525 19-19 19z"})))},C=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openOptions"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 612 612"},l.a.createElement("path",{d:"M0 97.92v24.48h612V97.92H0zm0 220.32h612v-24.48H0v24.48zm0 195.84h612V489.6H0v24.48z"})))},M=e=>{const{t:t,isFav:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.addToNotebook"),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon-fav"+(n?" isActive":""),width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},l.a.createElement("path",{d:"M 23.363 2 C 20.105 2 17.3 4.65 16.001 7.42 C 14.701 4.65 11.896 2 8.637 2 C 4.145 2 0.5 5.646 0.5 10.138 C 0.5 19.278 9.719 21.673 16.001 30.708 C 21.939 21.729 31.5 18.986 31.5 10.138 C 31.5 5.646 27.855 2 23.363 2 Z"})))},E=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openHistory"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon-history",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},l.a.createElement("path",{d:"M34.688 3.315c-15.887 0-28.812 12.924-28.81 28.73-.012.25-.157 4.434 1.034 8.94l-3.88-2.262c-.965-.56-2.193-.235-2.76.727-.557.96-.233 2.195.728 2.755l9.095 5.302c.02.01.038.013.056.022.1.05.2.09.31.12.07.02.14.05.21.07.09.02.176.02.265.03.06.003.124.022.186.022.036 0 .07-.01.105-.015.034 0 .063.007.097.004.05-.003.097-.024.146-.032.097-.017.19-.038.28-.068.08-.028.157-.06.23-.095.086-.04.165-.085.24-.137.074-.046.14-.096.206-.15.07-.06.135-.125.198-.195.06-.067.11-.135.16-.207.026-.04.062-.07.086-.11.017-.03.017-.067.032-.1.03-.053.07-.1.096-.16l3.62-8.96c.417-1.03-.08-2.205-1.112-2.622-1.033-.413-2.207.083-2.624 1.115l-1.86 4.6c-1.24-4.145-1.1-8.406-1.093-8.523C9.92 18.455 21.04 7.34 34.7 7.34c13.663 0 24.78 11.116 24.78 24.78S48.357 56.9 34.694 56.9c-1.114 0-2.016.902-2.016 2.015s.9 2.02 2.012 2.02c15.89 0 28.81-12.925 28.81-28.81 0-15.89-12.923-28.814-28.81-28.814z"}),l.a.createElement("path",{d:"M33.916 36.002c.203.084.417.114.634.13.045.002.09.026.134.026.236 0 .465-.054.684-.134.06-.022.118-.054.177-.083.167-.08.32-.18.463-.3.03-.023.072-.033.103-.07L48.7 22.98c.788-.79.788-2.064 0-2.852-.787-.788-2.062-.788-2.85 0l-11.633 11.63-10.44-4.37c-1.032-.432-2.208.052-2.64 1.08-.43 1.027.056 2.208 1.08 2.638L33.907 36c.002 0 .006 0 .01.002z"})))},I=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openNotebook"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 64 64"},l.a.createElement("path",{d:"M 57.389 0.966 L 6.612 0.966 C 5.699 0.966 4.957 1.525 4.957 2.217 L 4.957 61.783 C 4.955 62.282 5.342 62.734 5.949 62.933 C 6.16 63.001 6.385 63.036 6.612 63.034 C 7.023 63.032 7.417 62.917 7.723 62.709 L 32.003 46.006 L 56.282 62.709 C 57.227 63.354 58.742 62.983 59.008 62.041 C 59.033 61.956 59.044 61.871 59.044 61.783 L 59.044 2.217 C 59.044 1.525 58.306 0.966 57.389 0.966 Z M 33.111 43.392 C 32.478 42.954 31.508 42.954 30.875 43.392 L 8.266 58.955 L 8.266 3.469 L 55.735 3.469 L 55.735 58.955 L 33.111 43.392 Z"}),l.a.createElement("path",{d:"M 47.508 17.756 C 47.287 17.526 46.994 17.375 46.677 17.33 L 37.446 15.988 L 33.262 7.693 C 32.767 6.7 31.382 6.614 30.77 7.541 C 30.737 7.59 30.708 7.641 30.68 7.693 L 26.555 16.06 L 17.325 17.401 C 16.225 17.56 15.712 18.849 16.399 19.722 C 16.44 19.774 16.484 19.822 16.532 19.867 L 23.252 26.3 L 21.723 35.561 C 21.541 36.655 22.613 37.537 23.653 37.146 C 23.708 37.127 23.763 37.102 23.816 37.076 L 32.066 32.748 L 40.316 37.076 C 41.3 37.59 42.472 36.845 42.425 35.737 C 42.423 35.679 42.417 35.619 42.407 35.561 L 40.792 26.3 L 47.472 19.794 C 48.045 19.243 48.061 18.33 47.508 17.756 Z M 38.238 24.857 C 37.899 25.186 37.744 25.661 37.821 26.127 L 39.031 33.165 L 32.687 29.835 C 32.265 29.613 31.765 29.613 31.344 29.835 L 25.013 33.165 L 26.223 26.113 C 26.3 25.646 26.145 25.174 25.806 24.844 L 20.685 19.853 L 27.768 18.743 C 28.236 18.672 28.641 18.376 28.849 17.95 L 32.023 11.531 L 35.196 17.95 C 35.403 18.376 35.808 18.672 36.277 18.743 L 43.36 19.766 L 38.238 24.857 Z"})))},j=e=>{const{t:t,isPinned:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.pinPanel"),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 53.011 53.011"},l.a.createElement("path",{className:"menuBar-Btn_Icon-pin"+(n?" isActive":""),d:"M52.963 21.297c-.068-.33-.297-.603-.61-.727-8.573-3.416-16.172-.665-18.36.288L19.113 8.2C19.634 3.632 17.17.508 17.06.372c-.18-.22-.442-.356-.725-.372-.282-.006-.56.09-.76.292L.32 15.546c-.202.2-.308.48-.29.765.015.285.152.55.375.727 2.775 2.202 6.35 2.167 7.726 2.055l12.722 14.953c-.868 2.23-3.52 10.27-.307 18.337.124.313.397.54.727.61.067.013.135.02.202.02.263 0 .518-.104.707-.293l14.57-14.57 13.57 13.57c.196.194.452.292.708.292s.512-.098.707-.293c.39-.392.39-1.024 0-1.415l-13.57-13.57 14.527-14.528c.237-.238.34-.58.27-.91zm-17.65 15.458L21.89 50.18c-2.437-8.005.993-15.827 1.03-15.91.158-.352.1-.764-.15-1.058L9.31 17.39c-.19-.225-.473-.352-.764-.352-.05 0-.103.004-.154.013-.036.007-3.173.473-5.794-.954l13.5-13.5c.604 1.156 1.39 3.26.964 5.848-.058.346.07.697.338.924l15.785 13.43c.31.262.748.31 1.105.128.077-.04 7.378-3.695 15.87-1.017L35.313 36.754z"})))},N=e=>{const{t:t,isFocus:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip."+(n?"focusPanel":"unfocusPanel")),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 53 53"},n?l.a.createElement(l.a.Fragment,null,l.a.createElement("path",{d:"M 36.414 35 L 46 35 C 46.553 35 47 34.552 47 34 C 47 33.448 46.553 33 46 33 L 34 33 C 33.87 33 33.74 33.027 33.618 33.077 C 33.374 33.178 33.179 33.373 33.077 33.618 C 33.026 33.74 33 33.869 33 34 L 33 46 C 33 46.552 33.448 47 34 47 C 34.552 47 35 46.552 35 46 L 35 36.414 L 51.293 52.707 C 51.488 52.902 51.744 53 52 53 C 52.256 53 52.512 52.902 52.707 52.707 C 53.098 52.316 53.098 51.684 52.707 51.293 L 36.414 35 Z"}),l.a.createElement("path",{d:"M 16.584 17.999 L 6.999 17.999 C 6.447 17.999 5.999 18.447 5.999 18.999 C 5.999 19.551 6.447 19.999 6.999 19.999 L 18.999 19.999 C 19.129 19.999 19.259 19.972 19.381 19.922 C 19.625 19.821 19.82 19.626 19.922 19.381 C 19.973 19.259 19.999 19.129 19.999 18.999 L 19.999 6.999 C 19.999 6.447 19.551 5.999 18.999 5.999 C 18.447 5.999 17.999 6.447 17.999 6.999 L 17.999 16.585 L 1.707 0.293 C 1.316 -0.098 0.684 -0.098 0.293 0.293 C -0.098 0.684 -0.098 1.316 0.293 1.707 L 16.584 17.999 Z"}),l.a.createElement("path",{d:"M 19.382 33.077 C 19.26 33.027 19.13 33 19 33 L 7 33 C 6.448 33 6 33.448 6 34 C 6 34.552 6.448 35 7 35 L 16.586 35 L 0.293 51.293 C -0.098 51.684 -0.098 52.316 0.293 52.707 C 0.488 52.902 0.744 53 1 53 C 1.256 53 1.512 52.902 1.707 52.707 L 18 36.414 L 18 46 C 18 46.552 18.448 47 19 47 C 19.552 47 20 46.552 20 46 L 20 34 C 20 33.87 19.973 33.74 19.923 33.618 C 19.821 33.373 19.627 33.179 19.382 33.077 Z"}),l.a.createElement("path",{d:"M 33.618 19.923 C 33.74 19.973 33.87 20 34 20 L 46 20 C 46.553 20 47 19.552 47 19 C 47 18.448 46.553 18 46 18 L 36.414 18 L 52.707 1.707 C 53.098 1.316 53.098 0.684 52.707 0.293 C 52.316 -0.098 51.684 -0.098 51.293 0.293 L 35 16.586 L 35 7 C 35 6.448 34.552 6 34 6 C 33.448 6 33 6.448 33 7 L 33 19 C 33 19.13 33.027 19.26 33.077 19.382 C 33.179 19.627 33.373 19.821 33.618 19.923 Z"}),l.a.createElement("path",{d:"M 26.5 19 C 22.364 19 19 22.364 19 26.5 C 19 30.636 22.364 34 26.5 34 C 30.636 34 34 30.636 34 26.5 C 34 22.364 30.636 19 26.5 19 Z M 26.5 32 C 23.467 32 21 29.533 21 26.5 C 21 23.467 23.467 21 26.5 21 C 29.533 21 32 23.467 32 26.5 C 32 29.533 29.533 32 26.5 32 Z"})):l.a.createElement(l.a.Fragment,null,l.a.createElement("path",{d:"M 34 20 C 33.744 20 33.488 19.902 33.293 19.707 C 32.902 19.316 32.902 18.684 33.293 18.293 L 49.586 2 L 40 2 C 39.448 2 39 1.552 39 1 C 39 0.448 39.448 0 40 0 L 51.978 0 C 52.241 -0.006 52.506 0.092 52.707 0.293 C 52.908 0.494 53.006 0.759 53 1.022 L 53 13 C 53 13.552 52.552 14 52 14 C 51.448 14 51 13.552 51 13 L 51 3.414 L 34.707 19.707 C 34.512 19.902 34.256 20 34 20 Z"}),l.a.createElement("path",{d:"M 0.293 52.707 C 0.092 52.506 -0.006 52.241 0 51.978 L 0 40 C 0 39.448 0.448 39 1 39 C 1.552 39 2 39.448 2 40 L 2 49.586 L 18.293 33.293 C 18.684 32.902 19.316 32.902 19.707 33.293 C 20.098 33.684 20.098 34.316 19.707 34.707 L 3.414 51 L 13 51 C 13.552 51 14 51.448 14 52 C 14 52.552 13.552 53 13 53 L 1 53 C 0.879 53 0.764 52.979 0.658 52.94 C 0.602 52.919 0.548 52.894 0.498 52.865 C 0.424 52.822 0.355 52.769 0.293 52.707 Z"}),l.a.createElement("path",{d:"M 33.293 34.707 C 32.902 34.316 32.902 33.684 33.293 33.293 C 33.684 32.902 34.316 32.902 34.707 33.293 L 51 49.586 L 51 40 C 51 39.448 51.448 39 52 39 C 52.552 39 53 39.448 53 40 L 53 51.978 C 53.006 52.241 52.908 52.506 52.707 52.707 C 52.645 52.769 52.576 52.822 52.502 52.865 C 52.452 52.894 52.398 52.919 52.342 52.94 C 52.236 52.979 52.121 53 52 53 L 40 53 C 39.448 53 39 52.552 39 52 C 39 51.448 39.448 51 40 51 L 49.586 51 Z"}),l.a.createElement("path",{d:"M 18.999 19.999 C 18.743 19.999 18.487 19.901 18.292 19.706 L 2 3.414 L 2 13 C 2 13.552 1.552 14 1 14 C 0.448 14 0 13.552 0 13 L 0 1.022 C -0.006 0.759 0.092 0.494 0.293 0.293 C 0.494 0.092 0.759 -0.006 1.022 0 L 13 0 C 13.552 0 14 0.448 14 1 C 14 1.552 13.552 2 13 2 L 3.414 2 L 19.706 18.292 C 20.097 18.683 20.097 19.315 19.706 19.706 C 19.51 19.901 19.254 19.999 18.999 19.999 Z"}))))},O=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.closePanel"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 31.112 31.112"},l.a.createElement("path",{d:"M31.112 1.414L29.698 0 15.556 14.142 1.414 0 0 1.414l14.142 14.142L0 29.698l1.414 1.414L15.556 16.97l14.142 14.142 1.414-1.414L16.97 15.556"})))},v=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.sidebar"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},l.a.createElement("path",{d:"M 29.318 0 L 0.682 0 C 0.305 0 0 0.305 0 0.682 L 0 29.318 C 0 29.695 0.305 30 0.682 30 L 29.318 30 C 29.695 30 30 29.695 30 29.318 L 30 0.682 C 30 0.305 29.695 0 29.318 0 Z M 9.545 28.636 L 1.364 28.636 L 1.364 1.364 L 9.545 1.364 L 9.545 28.636 Z M 28.636 28.636 L 10.909 28.636 L 10.909 1.364 L 28.636 1.364 L 28.636 28.636 Z"})))};var A=n(89),z=n(30),D=n(240),T=n(104),k=n(38),L=n(180),S=n(83),B=n(176),_=n(87),P=n(64),W=n(108),U=n(135);const H=l.a.forwardRef((e,t)=>Object(D.a)(Object(h.a)(n=>n.pipe(Object(f.a)(([e])=>e),Object(k.a)(Boolean),Object(B.a)(),Object(g.a)(750),Object(W.a)(n=>Object(P.a)(s.a.send({type:"GET_SUGGESTS",payload:n}).catch(()=>[])).pipe(Object(f.a)(n=>l.a.createElement(U.a,{ref:t,list:n.map(e=>({key:e.entry,value:e.entry,label:l.a.createElement(l.a.Fragment,null,l.a.createElement("span",{className:"menuBar-SuggestsEntry"},e.entry),l.a.createElement("span",{className:"menuBar-SuggestsExplain"},e.explain))})),...e})),Object(m.a)(l.a.createElement(U.a,{...e}))))),[e.text]),()=>l.a.createElement(U.a,{...e}))),R=e=>{const t=Object(c.useMemo)(()=>e.text.replace(/\s+/g," "),[e.text]),[n,a]=Object(d.a)(_.a),[o,r]=Object(d.a)(_.a),[i,u]=Object(d.a)(z.b),g=Object(D.a)(Object(h.a)(e=>Object(p.a)([e,Object(T.a)(a.pipe(Object(k.a)(e=>!e)),r,u.pipe(Object(L.a)(0)),s.a.createStream("SEARCH_TEXT_BOX").pipe(Object(S.a)(!1)))]).pipe(Object(f.a)(([[e,t],n])=>Boolean(e&&t&&n)),Object(B.a)()),[e.enableSuggest,e.text]),!1),m=Object(D.a)(a),b=Object(c.useRef)(!1),x=Object(c.useRef)(null),w=Object(c.useRef)(null),C=Object(c.useRef)(()=>{x.current&&(x.current.focus(),x.current.select())}).current,M=t=>{b.current=!1,i(!1),e.onSearch("string"==typeof t?t:e.text),C()},E=()=>{!e.shouldFocus||b.current||g||C()};return Object(c.useLayoutEffect)(E,[]),Object(c.useEffect)(E,[e.text]),l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"menuBar-SearchBox_Wrap"+(m?" isExpand":"")},l.a.createElement("input",{type:"text",className:"menuBar-SearchBox",key:"search-box",ref:x,onChange:t=>{e.onInput(t.currentTarget.value),i(!0)},onKeyDown:t=>{if(t.nativeEvent.stopPropagation(),b.current=!0,"ArrowDown"===t.key){const e=w.current&&w.current.querySelector("button");e?e.focus():i(!0),t.preventDefault(),t.stopPropagation()}else"Enter"===t.key&&M(e.text)},onFocus:e=>{e.currentTarget.select(),n(e)},onBlur:n,value:t}),l.a.createElement(A.a,{classNames:"csst-menuBar-SearchBox_Suggests",in:g,timeout:100,mountOnEnter:!0,unmountOnExit:!0,onExited:()=>e.onHeightChanged(0)},()=>l.a.createElement("div",{className:"menuBar-SearchBox_Suggests"},l.a.createElement(H,{ref:w,text:t,onSelect:M,onFocus:o,onBlur:o,onArrowUpFirst:C,onClose:C,onHeightChanged:e.onHeightChanged})))),l.a.createElement(y,{t:e.t,onClick:M}))};var F=n(133);const Q=e=>{const{t:t}=Object(b.e)(["common"]),n=e.profiles.map(n=>({key:n.id,value:n.id,label:l.a.createElement("span",{className:"menuBar-ProfileItem"+(n.id===e.activeProfileId?" isActive":"")},Object(o.h)(n.name,t))}));return l.a.createElement(F.a,{Button:Y,items:n,onBtnClick:()=>(s.a.send({type:"OPEN_URL",payload:{url:"options.html",self:!0}}),!1),onSelect:e.onSelectProfile,onHeightChanged:e.onHeightChanged})};function Y(e){const{t:t}=Object(b.e)(["content"]);return l.a.createElement(C,{...e,t:t,disabled:Object(r.h)()})}function G(e){return Object(m.a)(0)(e)}var K=n(29),Z=n(46),$=n(141);const V=Object(a.b)(e=>({text:e.text,isInNotebook:e.isFav,shouldFocus:!e.isExpandMtaBox&&((e.isQSPanel||Object(r.k)())&&e.config.qsFocus||Object(r.j)()),enableSuggest:e.config.searchSuggests,isTrackHistory:e.config.searchHistory,histories:e.searchHistory,historyIndex:e.historyIndex,showedDictAuth:e.config.showedDictAuth,profiles:e.profiles,activeProfileId:e.activeProfile.id,isPinned:e.isPinned,isQSFocus:e.isQSFocus}),e=>({searchText:t=>{e({type:"SEARCH_START",payload:{word:Object(i.e)({text:t,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}})},updateText:t=>{e({type:"UPDATE_TEXT",payload:t})},addToNoteBook:()=>{e({type:"ADD_TO_NOTEBOOK"})},switchHistory:t=>{e({type:"SWITCH_HISTORY",payload:t})},togglePin:()=>{e({type:"TOGGLE_PIN"})},toggleQSFocus:()=>{e({type:"TOGGLE_QS_FOCUS"})},onClose:()=>{Object(r.l)()?window.close():e({type:"CLOSE_PANEL"})},onSwitchSidebar:e=>{s.a.send({type:"QS_SWITCH_SIDEBAR",payload:e})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"menubar",height:30,floatHeight:t}})},onDragAreaMouseDown:t=>{e({type:"DRAG_START_COORD",payload:{x:t.clientX,y:t.clientY}})},onDragAreaTouchStart:t=>{e({type:"DRAG_START_COORD",payload:{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}})},onSelectProfile:t=>{e(async(e,n)=>{var a;const c=n(),{showedDictAuth:l,dictAuth:d}=c.config;l||Object(r.j)()||(await Object(K.f)({...c.config,showedDictAuth:!0}),!Object($.a)(d).every(e=>Object($.a)(d[e]).every(t=>{var n;return!(null===(n=d[e])||void 0===n?void 0:n[t])})))?(await Object(o.l)(t),await Object(Z.d)(10),e({type:"SEARCH_START",payload:{word:(null===(a=c.searchHistory[c.historyIndex])||void 0===a?void 0:a.text)===c.text?c.searchHistory[c.historyIndex]:Object(i.e)({text:c.text,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}})):s.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=DictAuths",self:!0}})})}}))(e=>{const{t:t}=Object(b.e)(["content","common"]),[n,a]=Object(d.a)(G),[o,i]=Object(d.a)(G);return Object(u.a)(Object(h.a)(()=>Object(p.a)(a,i).pipe(Object(g.a)(100),Object(f.a)(e=>{const t=Math.max(...e);return t>0?t+72:0}))),e.onHeightChanged),l.a.createElement("header",{className:"menuBar"},l.a.createElement(x,{t:t,disabled:e.historyIndex<=0,onClick:()=>e.switchHistory("prev")}),l.a.createElement(w,{t:t,disabled:e.historyIndex>=e.histories.length-1,onClick:()=>e.switchHistory("next")}),l.a.createElement(R,{key:"searchbox",t:t,text:e.text,shouldFocus:e.shouldFocus,enableSuggest:e.enableSuggest,onInput:e.updateText,onSearch:e.searchText,onHeightChanged:o}),Object(r.l)()||l.a.createElement("div",{className:"menuBar-DragArea",onMouseDown:e.onDragAreaMouseDown,onTouchStart:e.onDragAreaTouchStart}),l.a.createElement(Q,{t:t,profiles:e.profiles,activeProfileId:e.activeProfileId,onSelectProfile:e.onSelectProfile,onHeightChanged:n}),l.a.createElement(M,{t:t,isFav:e.isInNotebook,onClick:e.addToNoteBook,onMouseDown:e=>{2===e.button&&(e.preventDefault(),e.stopPropagation(),e.currentTarget.blur(),s.a.send({type:"OPEN_URL",payload:{url:"notebook.html",self:!0}}))}}),e.isTrackHistory?l.a.createElement(E,{t:t,onClick:()=>s.a.send({type:"OPEN_URL",payload:{url:"history.html",self:!0}})}):l.a.createElement(I,{t:t,onClick:()=>s.a.send({type:"OPEN_URL",payload:{url:"notebook.html",self:!0}})}),Object(r.k)()?l.a.createElement(l.a.Fragment,null,l.a.createElement(N,{t:t,isFocus:e.isQSFocus,onClick:e.toggleQSFocus,disabled:Object(r.h)()||Object(r.j)()}),l.a.createElement(v,{t:t,onMouseDown:t=>{t.preventDefault(),e.onSwitchSidebar(0===t.button?"left":"right")}})):Object(r.j)()?null:l.a.createElement(l.a.Fragment,null,l.a.createElement(j,{t:t,isPinned:e.isPinned,onClick:e.togglePin,disabled:Object(r.h)()||Object(r.j)()}),l.a.createElement(O,{t:t,onClick:e.onClose})))})},365:function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var a=n(22),o=n(19),r=n(1),i=n(0),s=n.n(i),c=n(116),l=n(30),d=n(4),u=n.n(d),h=n(184),p=n(11),g=n(46),f=n(9),m=n(133);const b=e=>{const{t:t,ready:a}=Object(f.e)(["dicts","content","langcode"]),[o,c]=Object(i.useState)(!1);Object(i.useEffect)(()=>{const t=setTimeout(()=>c(e.isSearching),1500*Math.random());return()=>{clearTimeout(t)}},[e.isSearching]);const l=Object(i.useMemo)(()=>browser.runtime.getURL(n(429)("./"+e.dictID+"/favicon.png")),[e.dictID]),d=Object(i.useMemo)(()=>{const n=[],a=e=>e.replace(/%t\((\S+)\)/g,(e,n)=>t(n));if(e.catalog)for(const t of e.catalog)t.options?n.push({key:t.key,value:t.value,title:t.title&&a(t.title),options:t.options.map(e=>({value:e.value,label:a(e.label)}))}):n.push({key:t.key,value:t.value,label:a(t.label)});return n.push({key:"_options",value:"_options",label:t("content:tip.openOptions")}),n},[e.catalog,a]);return s.a.createElement("header",{className:u()("dictItemHead",{isSearching:e.isSearching})},s.a.createElement("img",{className:"dictItemHead-Logo",src:l,alt:"dict logo"}),s.a.createElement("h1",{className:"dictItemHead-Title"},s.a.createElement("a",{href:"#",onClick:t=>{t.stopPropagation(),t.preventDefault(),e.openDictSrcPage(e.dictID,t.ctrlKey)}},t(e.dictID+".name"))),s.a.createElement(m.a,{compact:!0,Button:x,items:d,top:25,onSelect:(t,n)=>{"_options"===t?r.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=Dictionaries",self:!0}}):e.onCatalogSelect({key:t,value:n})}}),o&&s.a.createElement("div",{className:"dictItemHead-Loader"},s.a.createElement("div",null),s.a.createElement("div",null),s.a.createElement("div",null),s.a.createElement("div",null),s.a.createElement("div",null)),s.a.createElement("div",{className:"dictItemHead-EmptyArea",onClick:e.toggleFold}),s.a.createElement("button",{className:"dictItemHead-FoldArrowBtn",onMouseOut:e=>e.currentTarget.blur(),onClick:e.toggleFold},s.a.createElement("svg",{className:"dictItemHead-FoldArrow",width:"18",height:"18",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("path",{className:"dictItemHead-FoldArrowPath",d:"M43.854 59.414L14.146 29.707 43.854 0l1.414 1.414-28.293 28.293L45.268 58"}))))};function x(e){return s.a.createElement("button",{className:"dictItemHead-Menus_Btn",...e},s.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 512 512"},s.a.createElement("path",{d:"M301.256 394.29A45.256 45.256 0 01256 439.546a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 349.034a45.256 45.256 0 0145.256 45.256zM301.256 257.48A45.256 45.256 0 01256 302.736a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 212.224a45.256 45.256 0 0145.256 45.256zM301.256 117.71A45.256 45.256 0 01256 162.964a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 72.453a45.256 45.256 0 0145.256 45.256z"})))}var w=n(218),y=n(2),C=n(247),M=n(119);const E=n(511).toString(),I=e=>{const t=Object(i.useMemo)(()=>s.a.lazy(()=>n(478)(`./${e.dictID}/View.tsx`)),[e.dictID]),a=Object(i.useMemo)(()=>s.a.lazy(async()=>{const t=await n(479)(`./${e.dictID}/_style.shadow.scss`);return{default:()=>s.a.createElement("style",null,(t.default||t).toString())}}),[e.dictID]);return s.a.createElement(C.a,{error:j},s.a.createElement(i.Suspense,{fallback:null},"FINISH"===e.searchStatus&&e.searchResult&&s.a.createElement(w.a.div,null,s.a.createElement("div",{ref:e.dictRootRef},s.a.createElement("style",null,E),s.a.createElement(a,null),e.panelCSS?s.a.createElement("style",null,e.panelCSS):null,s.a.createElement(M.b,{className:u()("d-"+e.dictID,"dictRoot",y.b,{isAnimate:e.withAnimation}),onPlayStart:e.onSpeakerPlay,onMouseUp:e.onInPanelSelect},s.a.createElement(t,{result:e.searchResult,searchText:e.searchText,catalogSelect$:e.catalogSelect$}))))))};function j(){return s.a.createElement("p",{style:{textAlign:"center"}},"Render error. Please"," ",s.a.createElement("a",{href:"https://github.com/crimx/ext-saladict/issues",target:"_blank",rel:"nofollow noopener noreferrer"},"report issue"),".")}const N=e=>{const[t,n]=Object(c.a)(l.b),[a,o]=Object(i.useState)(!1),[d,f]=Object(i.useState)("COLLAPSE"),[m,x]=Object(i.useState)(10),w=Object(i.useMemo)(()=>Math.max(10,"COLLAPSE"===d?10:"FULL"===d?m:Math.min(m,e.preferredHeight)),[d,m,e.preferredHeight]);Object(i.useEffect)(()=>{"FINISH"===e.searchStatus?f("HALF"):f("COLLAPSE")},[e.searchStatus]),Object(i.useEffect)(()=>{e.onHeightChanged(e.dictID,w+20)},[w]);const y=Object(i.useRef)(null),C=Object(i.useRef)(null),M=Object(i.useCallback)(async n=>{if("#"!==n.key[0])return t(n);if(!C.current)return;const a=C.current.querySelector("#"+n.value);if(a){if("FULL"!==d&&(o(!0),f("FULL"),await Object(g.d)(0),o(!1)),y.current){const t=y.current.getRootNode();if(t.querySelector){const n=t.querySelector(".dictPanel-Body");if(n)return void n.scrollTo({top:a.getBoundingClientRect().y-n.firstElementChild.getBoundingClientRect().y-30,behavior:e.withAnimation?"smooth":"auto"})}}a.scrollIntoView({behavior:e.withAnimation?"smooth":"auto"})}},[d,e.withAnimation]);return s.a.createElement("section",{ref:y,className:u()("dictItem",{isUnfold:"COLLAPSE"!==d,noHeightTransition:a})},s.a.createElement(b,{dictID:e.dictID,catalog:e.catalog,isSearching:"SEARCHING"===e.searchStatus,toggleFold:function(){if("SEARCHING"===e.searchStatus)return;if("COLLAPSE"!==d)return f("COLLAPSE"),void e.onUserFold(e.dictID,!0);e.onUserFold(e.dictID,!1),e.searchResult?f("HALF"):e.searchText({id:e.dictID})},openDictSrcPage:e.openDictSrcPage,onCatalogSelect:M}),s.a.createElement("div",{className:"dictItem-Body",key:e.dictID,style:{height:w},onClick:function(t){if(t.ctrlKey||t.metaKey||t.altKey)return;if(!t.target.tagName)return;const n=t.currentTarget;for(let a=t.target;a&&a!==n;a=a.parentElement)if("A"===a.tagName||"link"===a.getAttribute("role")){t.preventDefault(),t.stopPropagation();const n=a;return void(/nofollow|noopener|noreferrer/.test(n.rel)?r.a.send({type:"OPEN_URL",payload:{url:n.href}}):e.searchText({word:Object(p.e)({text:n.textContent||"",title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}))}}},s.a.createElement("article",{className:"dictItem-BodyMesure"},s.a.createElement(h.ResizeReporter,{reportInit:!0,onHeightChanged:x}),e.TestComp?"FINISH"===e.searchStatus&&e.searchResult&&s.a.createElement(e.TestComp,{result:e.searchResult,searchText:e.searchText,catalogSelect$:n}):s.a.createElement(I,{...e,catalogSelect$:n,dictRootRef:C})),"HALF"===d&&w<m&&e.searchResult&&s.a.createElement("button",{className:"dictItem-FoldMask",onClick:()=>f("FULL")},s.a.createElement("svg",{className:"dictItem-FoldMaskArrow",width:"15",height:"15",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("path",{d:"M58 14.146L29.707 42.44 1.414 14.145 0 15.56 29.707 45.27 59.414 15.56"})))))};var O=n(182),v=n(371),A=n(173);const z=s.a.memo(N),D=Object(o.a)((e,t)=>e.map(e=>({dictID:e.id,searchStatus:e.searchStatus,searchResult:e.searchResult,catalog:e.catalog,preferredHeight:t[e.id].preferredHeight}))),T=Object(a.b)(e=>{const{config:t}=e;return{withAnimation:t.animation,panelCSS:t.panelCSS,touchMode:t.touchMode,language:t.language,doubleClickDelay:t.doubleClickDelay,dicts:D(e.renderedDicts,e.activeProfile.dicts.all)}},e=>({searchText:t=>{e({type:"SEARCH_START",payload:t})},openDictSrcPage:(t,n)=>{e((e,a)=>{const{searchHistory:o}=a(),i=o[o.length-1];r.a.send({type:"OPEN_DICT_SRC_PAGE",payload:{id:t,text:i&&i.text?i.text:"",active:!n}})})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"dictlist",height:t}})},onUserFold:(t,n)=>{e({type:"USER_FOLD_DICT",payload:{id:t,fold:n}})},onSpeakerPlay:t=>new Promise(n=>{e((e,a)=>{a().isExpandWaveformBox?r.a.self.send({type:"PLAY_AUDIO",payload:t}).then(n):r.a.send({type:"PLAY_AUDIO",payload:t}).then(n),e({type:"PLAY_AUDIO",payload:{src:t,timestamp:Date.now()}})})}),newSelection:t=>{e({type:"NEW_SELECTION",payload:t})}}))(e=>{const{dicts:t,onHeightChanged:n,touchMode:a,language:o,doubleClickDelay:r,newSelection:l,...d}=e,u=Object(i.useRef)({dicts:{},sum:0}),[h,p]=Object(c.a)(e=>Object(v.a)(10)(e));Object(O.a)(p,n);const g=Object(i.useRef)((e,t)=>{u.current.sum=u.current.sum-(u.current.dicts[e]||0)+t,u.current.dicts[e]=t,h(u.current.sum)}).current,f=Object(i.useMemo)(()=>t.reduce((e,{dictID:t})=>e+t+",",""),[t]);Object(i.useEffect)(()=>{const e=u.current;u.current=t.reduce((t,{dictID:n})=>(t.dicts[n]=e.dicts[n]||30,t.sum+=t.dicts[n]||30,t),{dicts:{},sum:0}),h(u.current.sum)},[f]);const m=Object(A.b)(a,o,r,l);return s.a.createElement("div",{className:"dictList"},t.map(e=>s.a.createElement(z,{key:e.dictID,...d,...e,onInPanelSelect:m,onHeightChanged:g})))})},366:function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var a=n(0),o=n.n(a),r=n(389),i=n(130),s=n(30),c=n(116),l=n(240),d=n(182),u=n(96),h=n(371),p=n(128),g=n(108),f=n(435),m=n(11),b=n(80),x=n(9),w=n(1),y=n(2);const C=({words:e,onCardDelete:t})=>{const{t:n}=Object(x.e)(["common","content"]);return o.a.createElement("aside",{className:"wordCards"},o.a.createElement("header",null,o.a.createElement("h1",{className:"wordCards-Title"},n("content:wordEditor.wordCardsTitle"))),o.a.createElement("ul",{className:"wordCards-CardList"},e.map(e=>o.a.createElement("li",{className:"wordCards-Card",key:e.date},o.a.createElement("button",{type:"button",className:"wordCards-CardClose",onClick:()=>t(e)},"×"),o.a.createElement("h2",{className:"wordCards-CardTitle"},e.text),e.context&&o.a.createElement("div",{className:"wordCards-CardItem"},o.a.createElement("svg",{className:"wordCards-CardItem_Icon",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.333 95.332"},o.a.createElement("title",null,n("note.context")),o.a.createElement("path",{d:"M 36.587 45.263 C 35.07 44.825 33.553 44.605 32.078 44.605 C 29.799 44.605 27.898 45.125 26.423 45.763 C 27.844 40.559 31.259 31.582 38.061 30.57 C 38.69 30.476 39.207 30.021 39.379 29.408 L 40.864 24.09 C 40.99 23.641 40.916 23.16 40.66 22.77 C 40.403 22.38 39.991 22.119 39.529 22.056 C 39.027 21.987 38.515 21.952 38.009 21.952 C 29.844 21.952 21.759 30.474 18.347 42.675 C 16.344 49.833 15.757 60.595 20.686 67.369 C 23.445 71.16 27.472 73.183 32.657 73.385 L 32.717 73.386 C 39.114 73.386 44.783 69.079 46.508 62.915 C 47.538 59.229 47.073 55.364 45.196 52.029 C 43.338 48.731 40.28 46.327 36.581 45.263 Z M 76.615 52.029 C 74.758 48.731 71.699 46.327 68.002 45.263 C 66.484 44.823 64.968 44.604 63.492 44.604 C 61.214 44.604 59.311 45.121 57.838 45.76 C 59.259 40.553 62.673 31.579 69.475 30.564 C 70.102 30.47 70.619 30.016 70.793 29.402 L 72.28 24.085 C 72.403 23.635 72.332 23.155 72.073 22.764 C 71.814 22.373 71.401 22.113 70.942 22.049 C 70.438 21.981 69.928 21.946 69.417 21.946 C 61.253 21.946 53.169 30.467 49.755 42.669 C 47.752 49.827 47.166 60.59 52.101 67.364 C 54.858 71.153 58.887 73.178 64.069 73.379 C 64.091 73.38 64.111 73.381 64.134 73.381 C 70.527 73.381 76.198 69.074 77.923 62.908 C 78.953 59.224 78.485 55.358 76.609 52.022 Z"})),o.a.createElement("div",{className:"wordCards-CardItem_Cont"},M(e.context))),e.trans&&o.a.createElement("div",{className:"wordCards-CardItem"},o.a.createElement("svg",{className:"wordCards-CardItem_Icon",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 469.333 469.333"},o.a.createElement("title",null,n("note.trans")),o.a.createElement("path",{d:"M253.227 300.267L199.04 246.72l.64-.64c37.12-41.387 63.573-88.96 79.147-139.307h62.507V64H192V21.333h-42.667V64H0v42.453h238.293c-14.4 41.173-36.907 80.213-67.627 114.347-19.84-22.08-36.267-46.08-49.28-71.467H78.72c15.573 34.773 36.907 67.627 63.573 97.28l-108.48 107.2L64 384l106.667-106.667 66.347 66.347 16.213-43.413zM373.333 192h-42.667l-96 256h42.667l24-64h101.333l24 64h42.667l-96-256zm-56 149.333L352 248.853l34.667 92.48h-69.334z"})),o.a.createElement("div",{className:"wordCards-CardItem_Cont"},M(e.trans))),e.note&&o.a.createElement("div",{className:"wordCards-CardItem"},o.a.createElement("svg",{className:"wordCards-CardItem_Icon",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 35.738 35.738"},o.a.createElement("title",null,n("note.note")),o.a.createElement("path",{d:"M0 35.667S11.596-1.403 35.738.117c0 0-2.994 4.85-10.55 6.416 0 0 3.517.43 6.368-.522 0 0-1.71 5.517-11.025 6.275 0 0 5.135 1.33 7.416.57 0 0-.62 4.11-10.102 6.154-.562.12-4.347 1.066-1.306 1.447 0 0 4.37.763 5.514.38 0 0-3.743 5.608-12.927 5.133-.903-.048-1.332 0-1.332 0L0 35.666z"})),o.a.createElement("div",{className:"wordCards-CardItem_Cont"},M(e.note))),o.a.createElement("div",{className:"wordCards-CardFooter"},e.favicon&&o.a.createElement("img",{className:"wordCards-Favicon",src:e.favicon}),o.a.createElement("a",{className:"wordCards-URL",href:e.url,target:"_blank",rel:"nofollow noopener noreferrer",title:e.title},e.title))))))};function M(e){return e.split("\n").map((e,t)=>o.a.createElement("p",{key:t},e))}const E=e=>o.a.createElement("div",{className:"wordEditorPanel-Background",style:{zIndex:Object(y.f)()?998:2147483645}},o.a.createElement("div",{className:"wordEditorPanel-Container",style:{width:e.containerWidth}},o.a.createElement("div",{className:"wordEditorPanel"},o.a.createElement("header",{className:"wordEditorPanel-Header"},o.a.createElement("h1",{className:"wordEditorPanel-Title"},e.title),o.a.createElement("button",{type:"button",className:"wordEditorPanel-BtnClose",onClick:e.onClose},"×")),o.a.createElement("div",{className:"wordEditorPanel-Main fancy-scrollbar"},e.children),e.btns&&e.btns.length>0&&o.a.createElement("footer",{className:"wordEditorPanel-Footer"},e.btns.map((e,t)=>o.a.createElement("button",{key:t,type:"button",className:e.type?"wordEditorPanel-Btn_"+e.type:"wordEditorPanel-Btn",onClick:e.onClick},e.title))))));var I=n(89);const j=e=>{const[t,n]=Object(a.useState)(()=>Object.keys(e.ctxTransConfig).reduce((e,t)=>(e[t]=!1,e),{})),r=async t=>{const{name:a}=t.currentTarget.dataset;if(a&&Object.prototype.hasOwnProperty.call(e.ctxTransConfig,a)){e.onNewCtxTransConfig(a,t.currentTarget.checked);const o=e.word.context||e.word.text;if(t.currentTarget.checked&&o){n(e=>({...e,[a]:!0}));const t=await Object(b.c)(o,a);n(e=>({...e,[a]:!1})),e.onNewCtxTransResult(a,t)}else e.onNewCtxTransResult(a,"")}};return o.a.createElement("ul",{className:"ctxTransList"},Object.keys(e.ctxTransResult).map(n=>o.a.createElement("li",{key:n,className:"ctxTransItem"},o.a.createElement("div",{className:"ctxTransItem-Head"},o.a.createElement("h1",{className:"ctxTrans-Title"},o.a.createElement("input",{type:"checkbox",checked:e.ctxTransConfig[n],id:"ctx-"+n,"data-name":n,onChange:r}),o.a.createElement("label",{htmlFor:"ctx-"+n},n)),t[n]&&o.a.createElement("div",{className:"ctxTrans-Loader"},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))),o.a.createElement("p",{className:"ctxTrans-Content"},e.ctxTransResult[n]))))},N={enter:400,exit:100,appear:400},O=e=>{const{t:t}=Object(x.e)(["common","content"]),[n,M]=Object(a.useState)(!1),[O,A]=Object(a.useState)(!1),[z,D]=Object(a.useState)(e.wordEditor.word),T=Object(i.a)(s.c,[z]),[k,L]=Object(a.useState)(e.ctxTrans);Object(r.a)(()=>{L(e.ctxTrans)},[e.ctxTrans]);const[S,B]=Object(a.useState)(()=>Object.keys(e.ctxTrans).reduce((e,t)=>(e[t]="",e),{})),[_,P]=Object(c.a)(e=>e.pipe(Object(h.a)(200),Object(p.a)(T),Object(g.a)(([,e])=>e.text?Object(m.c)("notebook",e.text).then(t=>t.filter(({date:t})=>t!==e.date)).catch(()=>[]):Object(u.a)([])),Object(f.a)([]))),W=Object(l.a)(P),[U,H]=Object(c.a)(e=>e.pipe(Object(p.a)(T),Object(g.a)(([e,t])=>Object(b.d)(t.context||t.text,e))));Object(d.a)(H,B),Object(a.useEffect)(()=>{e.wordEditor.translateCtx&&U(k)},[]),Object(a.useEffect)(_,[z.text,z.context]),Object(r.a)(()=>{D({...z,trans:Object(b.a)(z.trans,S)})},[S]);const R=()=>{n&&!confirm(t("content:wordEditor.closeConfirm"))||e.onClose()},F=({currentTarget:e})=>{M(!0),D({...z,[e.name]:e.value})},Q=[{type:"normal",title:t("content:transContext"),onClick:()=>U(k)},{type:"normal",title:t("content:neverShow"),onClick:()=>{Object(y.h)()||w.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=Notebook",self:!0}})}},{type:"normal",title:t("cancel"),onClick:R},{type:"primary",title:t("save"),onClick:()=>{Object(m.f)("notebook",z).then(e.onClose).catch(console.error)}}],[Y,G]=Object(a.useState)();return Object(a.useEffect)(()=>{let e=!0;return w.c.sync.get("syncConfig").then(async({syncConfig:t})=>{var n;if(null==t||null===(n=t.ankiconnect)||void 0===n?void 0:n.enable){const t=await w.a.send({type:"ANKI_CONNECT_FIND_WORD",payload:z.date});e&&G(t)}}),()=>{e=!1}},[]),Y&&Q.unshift({type:"normal",title:t("content:updateAnki.title"),onClick:async()=>{let e="content:updateAnki.success";try{await w.a.send({type:"ANKI_CONNECT_UPDATE_WORD",payload:{cardId:Y,word:z}})}catch(t){!1,e="content:updateAnki.failed"}browser.notifications.create({type:"basic",eventTime:Date.now()+2e3,iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict",message:t(e)})}}),o.a.createElement(o.a.Fragment,null,o.a.createElement(E,{containerWidth:e.containerWidth,title:t("content:wordEditor.title"),btns:Q,onClose:R},o.a.createElement("div",{className:"wordEditorNote-Container"},o.a.createElement("div",{className:"wordEditorNote"},o.a.createElement("label",{htmlFor:"wordEditorNote_Word"},t("note.word")),o.a.createElement("input",{type:"text",name:"text",id:"wordEditorNote_Word",value:z.text,onChange:F,onKeyDown:v}),o.a.createElement("label",{htmlFor:"wordEditorNote_Context"},t("note.context")),o.a.createElement("textarea",{rows:3,name:"context",id:"wordEditorNote_Context",value:z.context,onChange:F,onKeyDown:v}),o.a.createElement("div",{className:"wordEditorNote_LabelWithBtn"},o.a.createElement("label",{htmlFor:"wordEditorNote_Trans"},t("note.trans"),o.a.createElement("a",{href:"https://saladict.crimx.com/q&a.html#%E9%97%AE%EF%BC%9A%E6%B7%BB%E5%8A%A0%E7%94%9F%E8%AF%8D%E5%8F%AF%E4%B8%8D%E5%8F%AF%E4%BB%A5%E5%8A%A0%E5%85%A5%E5%8D%95%E8%AF%8D%E7%BF%BB%E8%AF%91%EF%BC%88%E8%80%8C%E4%B8%8D%E6%98%AF%E7%BF%BB%E8%AF%91%E6%95%B4%E5%8F%A5%E4%B8%8A%E4%B8%8B%E6%96%87%EF%BC%89%E3%80%82",target:"_blank",rel:"nofollow noopener noreferrer"}," ","Why?")),o.a.createElement("button",{onClick:()=>A(!0)},t("content:wordEditor.chooseCtxTitle"))),o.a.createElement("textarea",{rows:10,name:"trans",id:"wordEditorNote_Trans",value:z.trans,onChange:F,onKeyDown:v}),o.a.createElement("p",{className:"wordEditorNote_Help"},t("content:wordEditor.ctxHelp")),o.a.createElement("label",{htmlFor:"wordEditorNote_Note"},t("note.note")),o.a.createElement("textarea",{rows:5,name:"note",id:"wordEditorNote_Note",value:z.note,onChange:F,onKeyDown:v}),o.a.createElement("label",{htmlFor:"wordEditorNote_SrcTitle"},t("note.srcTitle")),o.a.createElement("input",{type:"text",name:"title",id:"wordEditorNote_SrcTitle",value:z.title,onChange:F,onKeyDown:v}),o.a.createElement("label",{htmlFor:"wordEditorNote_SrcLink"},t("note.srcLink")),o.a.createElement("input",{type:"text",name:"url",id:"wordEditorNote_SrcLink",value:z.url,onChange:F,onKeyDown:v}),o.a.createElement("label",{htmlFor:"wordEditorNote_SrcFavicon"},t("note.srcFavicon"),z.favicon?o.a.createElement("img",{className:"wordEditorNote_SrcFavicon",src:z.favicon,alt:t("note.srcTitle")}):null),o.a.createElement("input",{type:"text",name:"favicon",id:"wordEditorNote_SrcFavicon",value:z.favicon,onChange:F,onKeyDown:v})),W&&W.length>0&&o.a.createElement(C,{words:W,onCardDelete:e=>{window.confirm(t("content:wordEditor.deleteConfirm"))&&Object(m.a)("notebook",[e.date]).then(_)}}))),o.a.createElement(I.a,{classNames:"notes-fade",mountOnEnter:!0,unmountOnExit:!0,timeout:N,in:O},()=>o.a.createElement(E,{containerWidth:e.containerWidth-100,title:t("content:wordEditor.chooseCtxTitle"),onClose:()=>A(!1),btns:[{type:"normal",title:t("content:transContext"),onClick:()=>U(k)}]},o.a.createElement(j,{word:z,ctxTransConfig:k,ctxTransResult:S,onNewCtxTransConfig:(e,t)=>{L(n=>({...n,[e]:t}))},onNewCtxTransResult:(e,t)=>{B(n=>({...n,[e]:t}))}}))))};function v(e){e.stopPropagation(),e.nativeEvent.stopPropagation()}const A=e=>o.a.createElement("div",{className:y.a+" saladict-theme"},o.a.createElement(O,{...e}))},367:function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var a=n(22),o=n(11),r=n(2),i=n(0),s=n.n(i),c=n(4),l=n.n(c),d=n(89),u=n(382),h=n(240),p=n(108),g=n(83),f=n(435),m=n(155);const b=e=>{const t=Object(i.useRef)(!1),n=Object(i.useRef)(null),[a,o]=Object(i.useState)(0),[r,c]=Object(h.a)(x,!1),p=Object(i.useRef)(!0);return Object(i.useEffect)(()=>{e.expand&&(p.current&&!e.shouldFocus||n.current&&(n.current.focus(),n.current.select()),p.current=!1)},[e.expand]),Object(i.useEffect)(()=>{e.shouldFocus&&!t.current&&e.expand&&n.current&&(n.current.focus(),n.current.select())},[e.text]),Object(i.useEffect)(()=>{e.onHeightChanged((e.expand?a:0)+12)},[a,e.expand]),s.a.createElement("div",null,s.a.createElement("div",{className:l()("mtaBox-TextArea-Wrap",{isTyping:r}),style:{height:e.expand?a:0}},s.a.createElement(d.a,{in:e.expand,timeout:400,classNames:"mtaBox-TextArea-Wrap",appear:!0,mountOnEnter:!0,unmountOnExit:!0},()=>s.a.createElement(u.a,{autoFocus:!0,inputRef:n,className:"mtaBox-TextArea",value:e.text,onChange:n=>{t.current=!0,e.onInput(n.currentTarget.value)},onKeyDown:t=>{t.nativeEvent.stopPropagation(),"Enter"===t.key&&(t.ctrlKey||t.metaKey)&&e.searchText(e.text),c(t)},minRows:2,onHeightChange:e=>o(e)}))),s.a.createElement("button",{className:"mtaBox-DrawerBtn",onClick:e.onDrawerToggle},s.a.createElement("svg",{width:"10",height:"10",viewBox:"0 0 59.414 59.414",className:l()("mtaBox-DrawerBtn_Arrow",{isExpand:e.expand})},s.a.createElement("path",{d:"M58 14.146L29.707 42.44 1.414 14.145 0 15.56 29.707 45.27 59.414 15.56"}))))};function x(e){return e.pipe(Object(p.a)(e=>(e.stopPropagation(),Object(m.a)(1e3).pipe(Object(g.a)(!1),Object(f.a)(!0)))))}const w=Object(a.b)(e=>({expand:e.isExpandMtaBox,text:e.text,shouldFocus:!e.activeProfile.mtaAutoUnfold||"hide"!==e.activeProfile.mtaAutoUnfold||(e.isQSPanel||Object(r.k)())&&e.config.qsFocus||Object(r.j)()}),e=>({searchText:t=>{e({type:"SEARCH_START",payload:{word:Object(o.e)({text:t})}})},onInput:t=>{e({type:"UPDATE_TEXT",payload:t})},onDrawerToggle:()=>{e({type:"TOGGLE_MTA_BOX"})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"mtabox",height:t}})}}))(b)},368:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(22),o=n(0),r=n.n(o),i=n(89),s=n(2);const c=Object(a.b)(e=>({darkMode:e.config.darkMode,isExpand:e.isExpandWaveformBox}),e=>({onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"waveformbox",height:t}})},toggleExpand:()=>{e({type:"TOGGLE_WAVEFORM_BOX"})}}))(e=>(Object(o.useEffect)(()=>{e.onHeightChanged(12+(e.isExpand?165:0))},[e.isExpand]),r.a.createElement("div",{className:`waveformBox ${s.a}${e.isExpand?" isExpand":""}`},r.a.createElement("button",{className:"waveformBox-DrawerBtn",onClick:e.toggleExpand},r.a.createElement("svg",{width:"10",height:"10",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg",className:"waveformBox-DrawerBtn_Arrow"},r.a.createElement("path",{d:"M 58 45.269 L 29.707 16.975 L 1.414 45.27 L 0 43.855 L 29.707 14.145 L 59.414 43.855"}))),r.a.createElement("div",{className:"waveformBox-FrameWrap"},r.a.createElement(i.a,{timeout:400,in:e.isExpand,classNames:"waveformBox-Frame",mountOnEnter:!0,unmountOnExit:!0},()=>r.a.createElement("iframe",{className:"waveformBox-Frame",src:`${browser.runtime.getURL("audio-control.html")}${e.darkMode?"?darkmode=true":""}`,sandbox:"allow-same-origin allow-scripts"}))))))},39:function(e,t,n){"use strict";function a(e,t={},n={}){return{name:e,options:{keepLF:{en:"Keep linebreaks","zh-CN":"保留换行","zh-TW":"保留換行"},"keepLF-none":{en:"None","zh-CN":"不保留","zh-TW":"不保留"},"keepLF-all":{en:"All","zh-CN":"全保留","zh-TW":"全保留"},"keepLF-pdf":{en:"PDF","zh-CN":"保留 PDF 换行","zh-TW":"保留 PDF 換行"},"keepLF-webpage":{en:"Webpage","zh-CN":"保留网页换行","zh-TW":"保留網頁換行"},slInitial:{en:"Source Language","zh-CN":"原文显示","zh-TW":"原文顯示"},"slInitial-hide":{en:"Hide","zh-CN":"隐藏","zh-TW":"隱藏"},"slInitial-collapse":{en:"Collapse","zh-CN":"收起","zh-TW":"收起"},"slInitial-full":{en:"Full","zh-CN":"完整显示","zh-TW":"完整顯示"},tl:{en:"Target language","zh-CN":"目标语言","zh-TW":"目標語言"},tl2:{en:"Fallback target language","zh-CN":"第二目标语言","zh-TW":"第二目標語言"},...t},helps:{slInitial:{en:"Source language initial state. If hided can be reopened via dictionary titlebar menu.","zh-CN":"原文初始显示状态。隐藏后可通过字典标题栏菜单打开。","zh-TW":"原文初始顯示狀態。隱藏後可通過字典標題欄選單開啟。"},tl2:{en:"Fallback when detected languange and target language are identical.","zh-CN":"如果检测的源语言与目标语言相同将自动切换第二目标语言。","zh-TW":"如果檢測的源語言與目標語言相同將自動切換第二目標語言。"},...n}}}n.d(t,"a",(function(){return a}))},40:function(e,t,n){"use strict";n.d(t,"h",(function(){return g})),n.d(t,"i",(function(){return f})),n.d(t,"k",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"m",(function(){return x})),n.d(t,"b",(function(){return w})),n.d(t,"j",(function(){return y})),n.d(t,"e",(function(){return C})),n.d(t,"l",(function(){return E})),n.d(t,"g",(function(){return I})),n.d(t,"n",(function(){return j})),n.d(t,"a",(function(){return O})),n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return A}));var a=n(85),o=n.n(a),r=n(74),i=n(178),s=n(1),c=n(95),l=n(64),d=n(76),u=n(10);function h(e){return{v:1,d:o.a.deflate(JSON.stringify(e),{to:"string"})}}function p(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}function g(e,t){const n=/^%%_(\S+)_%%$/.exec(e);return n&&t("common:profile."+n[1])||e}async function f(){let e=[],t=[],n="";const a=await s.c.sync.get(["profileIDList","activeProfileID"]);if(a.profileIDList&&(t=a.profileIDList.filter(e=>Boolean(e&&"string"==typeof e.id&&"string"==typeof e.name))),a.activeProfileID&&(n=a.activeProfileID),t.length>0)for(const{id:n}of t){const t=await b(n);e.push(t?Object(i.a)(t):Object(r.b)(n))}else({profileIDList:t,profiles:e}=Object(r.a)()),n=t[0].id;n||(n=t[0].id);let o=e.find(({id:e})=>e===n);o||(o=e[0],n=o.id),await s.c.sync.set({profileIDList:t,activeProfileID:n});for(const t of e)await x(t);return o}async function m(){const{profileIDList:e}=await s.c.sync.get("profileIDList");return e&&await s.c.sync.remove([...e.map(({id:e})=>e),"profileIDList","activeProfileID","configProfileIDs","activeConfigID"]),f()}async function b(e){return p((await s.c.sync.get(e))[e])}async function x(e){return s.c.sync.set({[e.id]:h(e)})}async function w(e){const t=e.id,n=await I();return s.c.sync.set({profileIDList:[...n,e],[t]:h(Object(r.b)(t))})}async function y(e){const t=await M();let n=await I();return n=n.filter(t=>t.id!==e),t===e&&await E(n[0].id),await j(n),s.c.sync.remove(e)}async function C(){const e=await M();if(e){const t=await b(e);if(t)return t}return Object(r.b)()}async function M(){return(await s.c.sync.get("activeProfileID")).activeProfileID||""}function E(e){return s.c.sync.set({activeProfileID:e})}async function I(){return(await s.c.sync.get("profileIDList")).profileIDList||[]}function j(e){return s.c.sync.set({profileIDList:e})}function N(e){s.c.sync.addListener("profileIDList",({profileIDList:t})=>{t&&t.newValue&&e(t)})}async function O(e){let t=await M();s.c.sync.addListener(n=>{if(n.activeProfileID){const{newValue:a,oldValue:o}=n.activeProfileID;a&&(t=a,o?s.c.sync.get([o,a]).then(t=>{t[a]&&e({newProfile:p(t[a]),oldProfile:p(t[o])})}):b(a).then(t=>{t&&e({newProfile:t})}))}if(t&&n[t]){const{newValue:a,oldValue:o}=n[t];if(a)return void e({newProfile:p(a),oldProfile:p(o)})}})}function v(){return Object(c.a)(Object(l.a)(I()),Object(d.a)(N).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newValue)))}function A(){return Object(c.a)(Object(l.a)(C()),Object(d.a)(O).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newProfile)))}},41:function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return g})),n.d(t,"f",(function(){return f})),n.d(t,"d",(function(){return b})),n.d(t,"a",(function(){return x})),n.d(t,"e",(function(){return w}));var a=n(104),o=n(52),r=n(96),i=n(10),s=n(83),c=n(176),l=n(38),d=n(11),u=n(1);const h=/mac/i.test(navigator.platform);function p(e){return h?"Meta"===e.key:"Control"===e.key}function g(e){return"Escape"===e.key}function f(e){return Object(a.a)(Object(i.a)(e)(Object(o.a)(window,"keydown",{capture:!0})),Object(s.a)(!1)(Object(o.a)(window,"keyup",{capture:!0})),Object(s.a)(!1)(Object(o.a)(window,"blur",{capture:!0})),Object(r.a)(!1)).pipe(Object(c.a)(),Object(l.a)(e=>e))}const m=/CodeMirror|ace_editor|monaco-editor/;function b(e){if(!e||!e.tagName)return!1;for(let t=e;t;t=t.parentElement){if("INPUT"===t.tagName||"TEXTAREA"===t.tagName)return!0;if(m.test(String(t.className)))return!0}return!1}function x(e){const t=window.pageURL||document.URL||"";return!!t&&(e.blacklist.some(([e])=>new RegExp(e).test(t))&&e.whitelist.every(([e])=>!new RegExp(e).test(t)))}async function w(e={}){const t=await u.a.send({type:"PAGE_INFO"});return window.faviconURL=t.faviconURL,t.pageTitle&&(window.pageTitle=t.pageTitle),t.pageURL&&(window.pageURL=t.pageURL),Object(d.e)({title:t.pageTitle||document.title||"",url:t.pageURL||document.URL||"",favicon:t.faviconURL||"",...e})}},429:function(e,t,n){var a={"./baidu/favicon.png":445,"./bing/favicon.png":446,"./caiyun/favicon.png":447,"./cambridge/favicon.png":448,"./cnki/favicon.png":449,"./cobuild/favicon.png":450,"./etymonline/favicon.png":451,"./eudic/favicon.png":452,"./google/favicon.png":453,"./googledict/favicon.png":454,"./guoyu/favicon.png":455,"./hjdict/favicon.png":456,"./jikipedia/favicon.png":457,"./jukuu/favicon.png":458,"./lexico/favicon.png":459,"./liangan/favicon.png":460,"./longman/favicon.png":461,"./macmillan/favicon.png":462,"./mojidict/favicon.png":463,"./naver/favicon.png":464,"./renren/favicon.png":465,"./shanbay/favicon.png":466,"./sogou/favicon.png":467,"./tencent/favicon.png":468,"./urban/favicon.png":469,"./vocabulary/favicon.png":470,"./weblio/favicon.png":471,"./weblioejje/favicon.png":472,"./websterlearner/favicon.png":473,"./wikipedia/favicon.png":474,"./youdao/favicon.png":475,"./youdaotrans/favicon.png":476,"./zdic/favicon.png":477};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=429},445:function(e,t,n){e.exports=n.p+"assets/favicon-baidu.b1036c7f.png"},446:function(e,t,n){e.exports=n.p+"assets/favicon-bing.e3d3533d.png"},447:function(e,t,n){e.exports=n.p+"assets/favicon-caiyun.7da16416.png"},448:function(e,t,n){e.exports=n.p+"assets/favicon-cambridge.fa1166e5.png"},449:function(e,t,n){e.exports=n.p+"assets/favicon-cnki.9d1835fe.png"},450:function(e,t,n){e.exports=n.p+"assets/favicon-cobuild.b6b15fdf.png"},451:function(e,t,n){e.exports=n.p+"assets/favicon-etymonline.eb3c1833.png"},452:function(e,t,n){e.exports=n.p+"assets/favicon-eudic.e582c08d.png"},453:function(e,t,n){e.exports=n.p+"assets/favicon-google.8edddd23.png"},454:function(e,t,n){e.exports=n.p+"assets/favicon-googledict.e936e12b.png"},455:function(e,t,n){e.exports=n.p+"assets/favicon-guoyu.b08539ad.png"},456:function(e,t,n){e.exports=n.p+"assets/favicon-hjdict.d4d70891.png"},457:function(e,t,n){e.exports=n.p+"assets/favicon-jikipedia.40135efc.png"},458:function(e,t,n){e.exports=n.p+"assets/favicon-jukuu.7d8ea82f.png"},459:function(e,t,n){e.exports=n.p+"assets/favicon-lexico.cfe48cf5.png"},46:function(e,t,n){"use strict";function a(e){const t=Array.isArray(e)?e:Array.from(e);return Promise.all(t.map(e=>Promise.resolve(e).catch(()=>null)))}function o(e){const t=Array.isArray(e)?e:Array.from(e);let n=0;return new Promise((e,a)=>t.forEach(o=>{Promise.resolve(o).then(e).catch(()=>{++n===t.length&&a(new Error("All rejected"))})}))}function r(...e){return new Promise(t=>{setTimeout(()=>e.length>1?t(e[1]):t(),Number(e[0])||0)})}function i(e,t=0){return Promise.race([e,r(t).then(()=>Promise.reject(new Error(`timeout ${t}ms`)))])}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i}))},460:function(e,t,n){e.exports=n.p+"assets/favicon-liangan.b08539ad.png"},461:function(e,t,n){e.exports=n.p+"assets/favicon-longman.c733be7c.png"},462:function(e,t,n){e.exports=n.p+"assets/favicon-macmillan.50284e7f.png"},463:function(e,t,n){e.exports=n.p+"assets/favicon-mojidict.435cd8b4.png"},464:function(e,t,n){e.exports=n.p+"assets/favicon-naver.6094f3e0.png"},465:function(e,t,n){e.exports=n.p+"assets/favicon-renren.7fdf60c5.png"},466:function(e,t,n){e.exports=n.p+"assets/favicon-shanbay.082532e3.png"},467:function(e,t,n){e.exports=n.p+"assets/favicon-sogou.5f76dc4a.png"},468:function(e,t,n){e.exports=n.p+"assets/favicon-tencent.6981c3c3.png"},469:function(e,t,n){e.exports=n.p+"assets/favicon-urban.e32bfdde.png"},470:function(e,t,n){e.exports=n.p+"assets/favicon-vocabulary.06f9ac91.png"},471:function(e,t,n){e.exports=n.p+"assets/favicon-weblio.b2639663.png"},472:function(e,t,n){e.exports=n.p+"assets/favicon-weblioejje.a7f3d53c.png"},473:function(e,t,n){e.exports=n.p+"assets/favicon-websterlearner.ef2a5d08.png"},474:function(e,t,n){e.exports=n.p+"assets/favicon-wikipedia.47e324fa.png"},475:function(e,t,n){e.exports=n.p+"assets/favicon-youdao.da86f82a.png"},476:function(e,t,n){e.exports=n.p+"assets/favicon-youdaotrans.0d8d4512.png"},477:function(e,t,n){e.exports=n.p+"assets/favicon-zdic.1310d810.png"},478:function(e,t,n){var a={"./baidu/View.tsx":[638,99],"./bing/View.tsx":[639,131],"./caiyun/View.tsx":[640,100],"./cambridge/View.tsx":[641,132],"./cnki/View.tsx":[642,94],"./cobuild/View.tsx":[643,105],"./etymonline/View.tsx":[644,133],"./eudic/View.tsx":[645,134],"./google/View.tsx":[646,101],"./googledict/View.tsx":[647,135],"./guoyu/View.tsx":[636,136],"./hjdict/View.tsx":[648,137],"./jikipedia/View.tsx":[649,138],"./jukuu/View.tsx":[650,139],"./lexico/View.tsx":[651,140],"./liangan/View.tsx":[652,108],"./longman/View.tsx":[653,106],"./macmillan/View.tsx":[654,107],"./mojidict/View.tsx":[655,95],"./naver/View.tsx":[656,141],"./renren/View.tsx":[657,142],"./shanbay/View.tsx":[658,143],"./sogou/View.tsx":[659,102],"./tencent/View.tsx":[660,103],"./urban/View.tsx":[661,144],"./vocabulary/View.tsx":[662,145],"./weblio/View.tsx":[663,96],"./weblioejje/View.tsx":[664,97],"./websterlearner/View.tsx":[665,146],"./wikipedia/View.tsx":[666,147],"./youdao/View.tsx":[667,57],"./youdaotrans/View.tsx":[668,104],"./zdic/View.tsx":[669,98]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(a)},o.id=478,e.exports=o},479:function(e,t,n){var a={"./baidu/_style.shadow.scss":[670,58],"./bing/_style.shadow.scss":[671,59],"./caiyun/_style.shadow.scss":[672,60],"./cambridge/_style.shadow.scss":[673,61],"./cnki/_style.shadow.scss":[674,62],"./cobuild/_style.shadow.scss":[675,63],"./etymonline/_style.shadow.scss":[676,64],"./eudic/_style.shadow.scss":[677,65],"./google/_style.shadow.scss":[678,66],"./googledict/_style.shadow.scss":[679,67],"./guoyu/_style.shadow.scss":[680,68],"./hjdict/_style.shadow.scss":[681,69],"./jikipedia/_style.shadow.scss":[682,70],"./jukuu/_style.shadow.scss":[683,71],"./lexico/_style.shadow.scss":[684,72],"./liangan/_style.shadow.scss":[685,73],"./longman/_style.shadow.scss":[686,74],"./macmillan/_style.shadow.scss":[687,75],"./mojidict/_style.shadow.scss":[688,76],"./naver/_style.shadow.scss":[689,77],"./renren/_style.shadow.scss":[690,78],"./shanbay/_style.shadow.scss":[691,79],"./sogou/_style.shadow.scss":[692,80],"./tencent/_style.shadow.scss":[693,81],"./urban/_style.shadow.scss":[694,82],"./vocabulary/_style.shadow.scss":[695,83],"./weblio/_style.shadow.scss":[696,84],"./weblioejje/_style.shadow.scss":[697,85],"./websterlearner/_style.shadow.scss":[698,86],"./wikipedia/_style.shadow.scss":[699,87],"./youdao/_style.shadow.scss":[700,88],"./youdaotrans/_style.shadow.scss":[701,89],"./zdic/_style.shadow.scss":[702,90]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n.t(o,7)}))}o.keys=function(){return Object.keys(a)},o.id=479,e.exports=o},493:function(e,t,n){"use strict";var a=n(0),o=n.n(a),r=n(22),i=n(389),s=n(4),c=n.n(s),l=n(30),d=n(2),u=n(140),h=n(19);const p=Object(h.a)(()=>{if("undefined"==typeof document)return 0;const e=document.createElement("div"),t=e.style;t.position="fixed",t.left="0",t.overflowY="scroll",t.visibility="hidden",document.body.appendChild(e);const n=e.getBoundingClientRect().right;return e.remove(),n});var g=n(133);const f=e=>{const t=Object(a.useRef)(null),[n,r]=Object(a.useState)(()=>m(e.width,e.coord.x)),[s,l]=Object(a.useState)(()=>b(e.height,e.coord.y)),u=Object(a.useRef)(!1),h=Object(a.useRef)();Object(i.a)(()=>{e.takeCoordSnapshot?h.current={x:n,y:s}:h.current&&(r(m(e.width,h.current.x)),l(b(e.height,h.current.y)))},[e.takeCoordSnapshot]),Object(i.a)(()=>{r(m(e.width,e.coord.x)),l(b(e.height,e.coord.y))},[e.coord]),Object(i.a)(()=>{u.current||(r(t=>m(e.width,t)),l(t=>b(e.height,t)))},[e.width,e.height]),Object(a.useEffect)(()=>{e.dragStartCoord&&(u.current=!0)},[e.dragStartCoord]);const f=Object(a.useMemo)(()=>e.dragStartCoord?{x:n,y:s}:null,[e.dragStartCoord]);return o.a.createElement("div",{ref:t,className:"dictPanel-FloatBox-Container saladict-theme"},o.a.createElement("div",{className:c()("dictPanel-Root",d.b,{isDragging:e.dragStartCoord}),style:{left:n,top:s,zIndex:Object(d.f)()?999:2147483647,width:e.width,height:e.height,"--panel-width":e.width+"px","--panel-max-height":e.maxHeight+"px","--panel-font-size":e.fontSize+"px"}},o.a.createElement("div",{className:"dictPanel-Head"},e.menuBar),o.a.createElement(g.b.Provider,{value:t},o.a.createElement("div",{className:"dictPanel-Body"+(p()>0?" fancy-scrollbar":"")},e.mtaBox,e.dictList)),e.waveformBox,e.dragStartCoord&&o.a.createElement("div",{className:"dictPanel-DragMask",onMouseMove:t=>{f&&e.dragStartCoord&&(t.stopPropagation(),t.preventDefault(),r(t.clientX-e.dragStartCoord.x+f.x),l(t.clientY-e.dragStartCoord.y+f.y))},onTouchMove:t=>{f&&e.dragStartCoord&&(t.stopPropagation(),t.preventDefault(),r(t.changedTouches[0].clientX-e.dragStartCoord.x+f.x),l(t.changedTouches[0].clientY-e.dragStartCoord.y+f.y))},onMouseOut:t=>{t.relatedTarget||e.onDragEnd()},onMouseUp:e.onDragEnd,onTouchCancel:e.onDragEnd,onTouchEnd:e.onDragEnd})))};function m(e,t){const n=window.innerWidth;return t+e+25>n&&(t=n-25-e),t<10&&(t=10),t}function b(e,t){const n=window.innerHeight;return t+e+15>n&&(t=n-15-e),t<15&&(t=15),t}const x=e=>{const{show:t,panelCSS:r,withAnimation:s,darkMode:h,...p}=e,g=Object(a.useRef)(t),[m,b]=Object(a.useState)(t),x=Object(l.e)(()=>o.a.createElement("style",null,n(592).toString())).current;return Object(i.a)(()=>{b(t)},[t]),Object(i.a)(()=>{e.takeCoordSnapshot?g.current=m:g.current||b(!1)},[e.takeCoordSnapshot]),o.a.createElement(u.a,{id:"saladict-dictpanel-root",head:x,shadowRootClassName:d.b,innerRootClassName:c()({isAnimate:s,darkMode:h}),panelCSS:r,in:m,timeout:e.withAnimation?u.c:0},()=>o.a.createElement(f,{...p}))};var w=n(364),y=n(367),C=n(365),M=n(368);const E=o.a.createElement(w.a,null),I=o.a.createElement(C.a,null),j=o.a.createElement(M.a,null),N=Object(r.b)(e=>({show:e.isShowDictPanel,coord:e.dictPanelCoord,takeCoordSnapshot:e.wordEditor.isShow,width:e.config.panelWidth,height:e.panelHeight,maxHeight:e.panelMaxHeight,fontSize:e.config.fontSize,withAnimation:e.config.animation,panelCSS:e.config.panelCSS,darkMode:e.config.darkMode,menuBar:E,mtaBox:e.isShowMtaBox?o.a.createElement(y.a,null):null,dictList:I,waveformBox:e.activeProfile.waveform?j:null,dragStartCoord:e.dragStartCoord}),e=>({onDragEnd:()=>{e({type:"DRAG_START_COORD",payload:null})}}))(x);t.a=N},494:function(e,t,n){"use strict";var a=n(22),o=n(0),r=n.n(o),i=n(30),s=n(140),c=n(4),l=n.n(c),d=n(116),u=n(182),h=n(87),p=n(2);const g=e=>{const[t,n]=Object(d.a)(h.c);return Object(u.a)(n,t=>{e.onHover(t),t&&e.onActive()}),r.a.createElement("div",{role:"img",className:l()("saladbowl",p.a,{enableHover:e.enableHover}),style:{transform:`translate(${e.x}px, ${e.y}px)`},onMouseOver:e.enableHover?t:void 0,onMouseOut:t,onClick:()=>e.onActive()},r.a.createElement("svg",{viewBox:"0 0 612 612",width:"30",height:"30"},r.a.createElement("g",{className:"saladbowl-leaf"},r.a.createElement("path",{fill:"#6bbc57",d:"M 577.557 184.258 C 560.417 140.85 519.54 59.214 519.54 59.214 L 519.543 59.204 C 519.543 59.204 436.903 97.626 396.441 120.878 C 366.171 138.274 354.981 169.755 352.221 177.621 C 349.001 186.851 339.891 228.811 358.341 268.481 C 382.271 319.921 409.201 374.521 409.201 374.521 L 409.201 374.531 C 409.201 374.531 464.511 348.701 515.291 323.401 C 554.451 303.891 573.591 265.441 576.821 256.221 C 579.571 248.356 590.398 216.746 577.574 184.271 Z"}),r.a.createElement("path",{fill:"#bde9b7",d:"M 501.052 102.162 L 507.518 104.425 L 426.69 335.38 L 420.224 333.117 Z"})),r.a.createElement("g",{className:"saladbowl-orange"},r.a.createElement("circle",{fill:"#ffb30d",cx:"299.756",cy:"198.246",r:"178.613"}),r.a.createElement("circle",{fill:"#fce29c",cx:"299.756",cy:"198.246",r:"155.24"}),r.a.createElement("path",{fill:"#fcc329",d:"M 299.756 189.873 L 341.269 113.475 C 349.169 82.543 324.349 58.588 299.749 57.891 C 275.149 57.201 248.229 82.781 256.489 113.481 L 299.749 189.881 Z M 307.026 194.757 L 393.974 194.757 C 424.928 187.083 434.124 153.681 422.994 131.737 C 411.864 109.795 376.534 98.357 353.5 120.27 L 307.025 194.757 Z M 308.79 203.444 L 354.885 277.168 C 377.925 299.268 410.995 289.438 423.701 268.368 C 436.411 247.298 427.381 211.276 396.591 203.362 L 308.801 203.442 Z M 300.208 206.618 L 259.628 283.516 C 252.098 314.543 277.214 338.193 301.815 338.591 C 326.415 338.991 353.022 313.081 344.392 282.491 L 300.208 206.631 Z M 292.058 203.3 L 205.108 203.415 C 174.163 211.277 165.014 244.54 176.172 266.468 C 187.33 288.396 226.052 300.541 249.056 278.598 L 292.056 203.301 Z M 292.465 194.83 L 246.497 121.024 C 223.494 98.884 190.409 108.658 177.667 129.706 C 164.925 150.753 173.893 186.791 204.669 194.756 L 292.459 194.829 Z"})),r.a.createElement("g",{className:"saladbowl-tomato"},r.a.createElement("path",{fill:"#a63131",d:"M 71.014 337.344 C 147.291 422.594 278.234 429.866 363.482 353.589 L 87.258 44.87 C 2.01 121.15 -5.262 252.092 71.014 337.342 Z"}),r.a.createElement("path",{fill:"#bc5757",d:"M 101.447 310.115 C 162.685 378.555 267.811 384.393 336.251 323.155 L 114.49 75.31 C 46.047 136.55 40.21 241.674 101.447 310.115 Z"}),r.a.createElement("path",{fill:"#f1d4af",d:"M 186.412 237.54 L 151.659 245.444 C 139.989 251.384 139.339 265.51 145.779 273.27 C 152.219 281.028 167.379 282.39 174.599 271.538 L 186.399 237.54 Z M 242.062 269.832 L 223.366 300.175 C 219.439 312.658 229.066 323.018 239.116 323.85 C 249.168 324.685 260.756 314.815 258.061 302.065 L 242.061 269.832 Z M 160.202 178.317 L 130.357 158.837 C 117.98 154.585 107.375 163.939 106.277 173.965 C 105.183 183.99 114.747 195.833 127.563 193.471 L 160.203 178.321 Z"})),r.a.createElement("g",{className:"saladbowl-bowl"},r.a.createElement("path",{fill:"#2d97b7",d:"M 30.857 311.46 C 30.857 429.87 105.371 530.8 209.867 569.52 L 209.867 589.2 L 400.987 589.2 L 400.987 568.9 C 503.595 530.114 576.887 431.202 578.31 314.907 L 589.196 295.97 L 22.804 295.97 L 30.867 309.998 C 30.865 310.488 30.857 310.971 30.857 311.458 Z"}),r.a.createElement("path",{fill:"#fff",d:"M 540.565 321.42 C 540.585 322.587 540.595 323.755 540.595 324.927 C 540.595 405.941 497.513 476.884 433.015 516.122 L 437.178 523.317 C 504.152 482.64 548.895 409.009 548.895 324.927 C 548.895 323.755 548.885 322.587 548.865 321.419 Z M 399.885 532.68 C 388.298 537.31 376.237 541.002 363.793 543.654 L 363.793 544.45 L 364.971 551.893 C 378.481 549.049 391.551 545.018 404.081 539.935 Z"}))))},f={enter:1e3,exit:100,appear:1e3},m=Object(a.b)(e=>({show:e.isShowBowl,panelCSS:e.config.panelCSS,x:e.bowlCoord.x,y:e.bowlCoord.y,withAnimation:e.config.animation,enableHover:e.config.bowlHover}),e=>({onActive:()=>{e({type:"BOWL_ACTIVATED"})}}))(e=>{const{show:t,panelCSS:a,withAnimation:c,...l}=e,[d,u]=Object(o.useState)(!1),h=Object(i.e)(()=>r.a.createElement("style",null,n(589).toString())).current;return r.a.createElement(s.b,{id:"saladict-saladbowl-root",head:h,classNames:"saladbowl",innerRootClassName:c?"isAnimate":"",panelCSS:a,in:t||d,timeout:c?f:0},()=>r.a.createElement(g,{...l,onHover:u}))});t.a=m},495:function(e,t,n){"use strict";var a=n(22),o=n(0),r=n.n(o),i=n(4),s=n.n(i),c=n(30),l=n(140),d=n(366);const u=e=>{const{show:t,withAnimation:a,darkMode:o,...i}=e,u=Object(c.e)(()=>r.a.createElement("style",null,n(594).toString())).current;return r.a.createElement(l.a,{id:"saladict-wordeditor-root",head:u,in:t,innerRootClassName:s()({isAnimate:a,darkMode:o}),timeout:a?l.c:0},()=>r.a.createElement(d.a,{...i}))};const h=Object(a.b)(e=>({show:e.wordEditor.isShow,darkMode:e.config.darkMode,withAnimation:e.config.animation,containerWidth:window.innerWidth-e.config.panelWidth-100,ctxTrans:e.config.ctxTrans,wordEditor:e.wordEditor}),e=>({onClose:()=>{e({type:"WORD_EDITOR_STATUS",payload:{word:null}})}}))(u);t.a=h},511:function(e,t,n){var a=n(512);e.exports="string"==typeof a?a:a.toString()},512:function(e,t,n){var a=n(221),o=n(564),r=n(513);t=a(!1);var i=o(r);t.push([e.i,"button,h1,h2,h3,h4,li,ul{margin:0;padding:0}img{display:block;max-width:95%}p{margin:.5em 0}ul li{list-style-type:none}button{background:0 0;border:none}button:hover{outline:0}a{color:#f9690e;text-decoration:none}a:hover{text-decoration:underline}select{color:#666;border:1px solid rgba(133,133,133,.28);background:0 0}.saladict-Speaker{display:inline-block;width:1.1em;height:1.1em;text-decoration:none;margin:0 5px;padding:0;line-height:1;vertical-align:text-bottom;border:none;background:no-repeat left/cover url("+i+');-moz-user-select:none;user-select:none;cursor:pointer}.saladict-Speaker:hover{outline:0}.saladict-Speaker.isActive{animation:saladict-Speaker-playing 1s steps(6) infinite}@keyframes saladict-Speaker-playing{from{background-position-x:0}70%{background-position-x:100%}100%{background-position-x:100%}}.entryBox-Wrap{padding-top:.8em}.entryBox{position:relative;border:1px solid #c76e06;border-radius:5px;margin-bottom:1em;padding:1em .5em .5em .5em}.entryBox-Title{position:absolute;top:0;left:1em;transform:translateY(-50%);max-width:90%;overflow:hidden;padding:0 5px;white-space:nowrap;text-overflow:ellipsis;font-size:1.2em;background:var(--color-background)}.dictRoot{font-size:var(--panel-font-size);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-family:"Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei",sans-serif}.dictRoot select{display:block;box-sizing:border-box;width:100%;margin:0 0 .5em 0;padding:.6em 1.4em .5em .8em;border-radius:.5em;font-size:var(--panel-font-size);font-weight:700;line-height:1.3;-moz-appearance:none;-webkit-appearance:none;appearance:none;-moz-appearance:none;border:1px solid rgba(133,133,133,.28);box-shadow:0 1px 0 1px rgba(0,0,0,.04);color:var(--color-font-grey);background-color:var(--color-background);background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%235caf9e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.65em auto,100%}.dictRoot select::-ms-expand{display:none}.dictRoot select:hover{border-color:rgba(133,133,133,.48)}.dictRoot select:focus{border-color:rgba(59,153,252,.7);outline:0}.dictRoot select option{font-weight:400}',""]),e.exports=t},513:function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMzUwIDUwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAxMS41ODUgMTYuOTc2IEwgMy43MjggMTYuOTc2IEMgMi42MjkgMTYuOTc2IDEuNzQxIDE3Ljg2NCAxLjc0MSAxOC45NjMgTCAxLjc0MSAzMS4wMzkgQyAxLjc0MSAzMi4xMzQgMi42MjkgMzMuMDI0IDMuNzI4IDMzLjAyNCBMIDExLjU4NSAzMy4wMjQgQyAxMS45MzkgMzMuMDI0IDEyLjI4NyAzMy4xMTkgMTIuNTkyIDMzLjI5OSBMIDI1LjE4IDQ1LjAyIEMgMjYuNTA0IDQ1Ljc5OCAyOC4xNzQgNDQuODQ1IDI4LjE3NCA0My4zMDggTCAyOC4xNzQgNi42OTIgQyAyOC4xNzQgNS4xNTcgMjYuNTA0IDQuMjAxIDI1LjE4IDQuOTggTCAxMi41OTMgMTYuNyBDIDEyLjI4NyAxNi44NzkgMTEuOTQgMTYuOTc1IDExLjU4NSAxNi45NzUgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCA1MCwgMCkiPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAxMS41ODUgMTYuOTc2IEwgMy43MjggMTYuOTc2IEMgMi42MjkgMTYuOTc2IDEuNzQxIDE3Ljg2NCAxLjc0MSAxOC45NjMgTCAxLjc0MSAzMS4wMzkgQyAxLjc0MSAzMi4xMzQgMi42MjkgMzMuMDI0IDMuNzI4IDMzLjAyNCBMIDExLjU4NSAzMy4wMjQgQyAxMS45MzkgMzMuMDI0IDEyLjI4NyAzMy4xMTkgMTIuNTkyIDMzLjI5OSBMIDI1LjE4IDQ1LjAyIEMgMjYuNTA0IDQ1Ljc5OCAyOC4xNzQgNDQuODQ1IDI4LjE3NCA0My4zMDggTCAyOC4xNzQgNi42OTIgQyAyOC4xNzQgNS4xNTcgMjYuNTA0IDQuMjAxIDI1LjE4IDQuOTggTCAxMi41OTMgMTYuNyBDIDEyLjI4NyAxNi44NzkgMTEuOTQgMTYuOTc1IDExLjU4NSAxNi45NzUgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzMi4xMTcgMzUuMDU1IEMgMzEuODMzIDM1LjA1NSAzMS41NDkgMzQuOTQ2IDMxLjMzMyAzNC43MjkgQyAzMC44OTYgMzQuMjk1IDMwLjg5NiAzMy41OTEgMzEuMzMzIDMzLjE1OCBDIDM2LjEwNSAyOC4zODIgMzYuMTA1IDIwLjYxMiAzMS4zMzMgMTUuODM3IEMgMzAuODk2IDE1LjQwMyAzMC44OTYgMTQuNzAyIDMxLjMzMyAxNC4yNjUgQyAzMS43NjYgMTMuODMyIDMyLjQ2OCAxMy44MzIgMzIuOTAzIDE0LjI2NSBDIDM4LjU0NiAxOS45MDYgMzguNTQ2IDI5LjA4NiAzMi45MDMgMzQuNzI4IEMgMzIuNjg5IDM0Ljk0NSAzMi40MDMgMzUuMDU1IDMyLjExNyAzNS4wNTUgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAxMDAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzIuMTE3IDM1LjA1NSBDIDMxLjgzMyAzNS4wNTUgMzEuNTQ5IDM0Ljk0NiAzMS4zMzMgMzQuNzI5IEMgMzAuODk2IDM0LjI5NSAzMC44OTYgMzMuNTkxIDMxLjMzMyAzMy4xNTggQyAzNi4xMDUgMjguMzgyIDM2LjEwNSAyMC42MTIgMzEuMzMzIDE1LjgzNyBDIDMwLjg5NiAxNS40MDMgMzAuODk2IDE0LjcwMiAzMS4zMzMgMTQuMjY1IEMgMzEuNzY2IDEzLjgzMiAzMi40NjggMTMuODMyIDMyLjkwMyAxNC4yNjUgQyAzOC41NDYgMTkuOTA2IDM4LjU0NiAyOS4wODYgMzIuOTAzIDM0LjcyOCBDIDMyLjY4OSAzNC45NDUgMzIuNDAzIDM1LjA1NSAzMi4xMTcgMzUuMDU1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAxNTAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzIuMTE3IDM1LjA1NSBDIDMxLjgzMyAzNS4wNTUgMzEuNTQ5IDM0Ljk0NiAzMS4zMzMgMzQuNzI5IEMgMzAuODk2IDM0LjI5NSAzMC44OTYgMzMuNTkxIDMxLjMzMyAzMy4xNTggQyAzNi4xMDUgMjguMzgyIDM2LjEwNSAyMC42MTIgMzEuMzMzIDE1LjgzNyBDIDMwLjg5NiAxNS40MDMgMzAuODk2IDE0LjcwMiAzMS4zMzMgMTQuMjY1IEMgMzEuNzY2IDEzLjgzMiAzMi40NjggMTMuODMyIDMyLjkwMyAxNC4yNjUgQyAzOC41NDYgMTkuOTA2IDM4LjU0NiAyOS4wODYgMzIuOTAzIDM0LjcyOCBDIDMyLjY4OSAzNC45NDUgMzIuNDAzIDM1LjA1NSAzMi4xMTcgMzUuMDU1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzOS4zMTQgNDUuMDU3IEMgMzkuMDI4IDQ1LjA1NyAzOC43NDQgNDQuOTQ4IDM4LjUyOCA0NC43MyBDIDM4LjA5MyA0NC4yOTcgMzguMDkzIDQzLjU5NSAzOC41MjggNDMuMTYgQyA0My4zNjkgMzguMzIxIDQ2LjAzNSAzMS44OSA0Ni4wMzUgMjUuMDU2IEMgNDYuMDM1IDE4LjIyIDQzLjM3IDExLjc4OCAzOC41MjggNi45NDggQyAzOC4wOTMgNi41MTQgMzguMDkzIDUuODEyIDM4LjUyOCA1LjM3OCBDIDM4Ljk2MyA0Ljk0NCAzOS42NjQgNC45NDQgNDAuMSA1LjM3OCBDIDQ1LjM2MSAxMC42MzcgNDguMjYgMTcuNjI1IDQ4LjI2IDI1LjA1NiBDIDQ4LjI2IDMyLjQ4NCA0NS4zNjEgMzkuNDczIDQwLjEgNDQuNzMxIEMgMzkuODgzIDQ0Ljk0OSAzOS41OTkgNDUuMDU4IDM5LjMxNSA0NS4wNTggWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAyMDAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzOS4zMTQgNDUuMDU3IEMgMzkuMDI4IDQ1LjA1NyAzOC43NDQgNDQuOTQ4IDM4LjUyOCA0NC43MyBDIDM4LjA5MyA0NC4yOTcgMzguMDkzIDQzLjU5NSAzOC41MjggNDMuMTYgQyA0My4zNjkgMzguMzIxIDQ2LjAzNSAzMS44OSA0Ni4wMzUgMjUuMDU2IEMgNDYuMDM1IDE4LjIyIDQzLjM3IDExLjc4OCAzOC41MjggNi45NDggQyAzOC4wOTMgNi41MTQgMzguMDkzIDUuODEyIDM4LjUyOCA1LjM3OCBDIDM4Ljk2MyA0Ljk0NCAzOS42NjQgNC45NDQgNDAuMSA1LjM3OCBDIDQ1LjM2MSAxMC42MzcgNDguMjYgMTcuNjI1IDQ4LjI2IDI1LjA1NiBDIDQ4LjI2IDMyLjQ4NCA0NS4zNjEgMzkuNDczIDQwLjEgNDQuNzMxIEMgMzkuODgzIDQ0Ljk0OSAzOS41OTkgNDUuMDU4IDM5LjMxNSA0NS4wNTggWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAyNTAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzkuMzE0IDQ1LjA1NyBDIDM5LjAyOCA0NS4wNTcgMzguNzQ0IDQ0Ljk0OCAzOC41MjggNDQuNzMgQyAzOC4wOTMgNDQuMjk3IDM4LjA5MyA0My41OTUgMzguNTI4IDQzLjE2IEMgNDMuMzY5IDM4LjMyMSA0Ni4wMzUgMzEuODkgNDYuMDM1IDI1LjA1NiBDIDQ2LjAzNSAxOC4yMiA0My4zNyAxMS43ODggMzguNTI4IDYuOTQ4IEMgMzguMDkzIDYuNTE0IDM4LjA5MyA1LjgxMiAzOC41MjggNS4zNzggQyAzOC45NjMgNC45NDQgMzkuNjY0IDQuOTQ0IDQwLjEgNS4zNzggQyA0NS4zNjEgMTAuNjM3IDQ4LjI2IDE3LjYyNSA0OC4yNiAyNS4wNTYgQyA0OC4yNiAzMi40ODQgNDUuMzYxIDM5LjQ3MyA0MC4xIDQ0LjczMSBDIDM5Ljg4MyA0NC45NDkgMzkuNTk5IDQ1LjA1OCAzOS4zMTUgNDUuMDU4IFoiIHN0eWxlPSIiLz4KICA8L2c+CiAgPGcgdHJhbnNmb3JtPSJtYXRyaXgoMSwgMCwgMCwgMSwgMzAwLCAwKSI+CiAgICA8cGF0aCBmaWxsPSIjZjk2OTBlIiBkPSJNIDExLjU4NSAxNi45NzYgTCAzLjcyOCAxNi45NzYgQyAyLjYyOSAxNi45NzYgMS43NDEgMTcuODY0IDEuNzQxIDE4Ljk2MyBMIDEuNzQxIDMxLjAzOSBDIDEuNzQxIDMyLjEzNCAyLjYyOSAzMy4wMjQgMy43MjggMzMuMDI0IEwgMTEuNTg1IDMzLjAyNCBDIDExLjkzOSAzMy4wMjQgMTIuMjg3IDMzLjExOSAxMi41OTIgMzMuMjk5IEwgMjUuMTggNDUuMDIgQyAyNi41MDQgNDUuNzk4IDI4LjE3NCA0NC44NDUgMjguMTc0IDQzLjMwOCBMIDI4LjE3NCA2LjY5MiBDIDI4LjE3NCA1LjE1NyAyNi41MDQgNC4yMDEgMjUuMTggNC45OCBMIDEyLjU5MyAxNi43IEMgMTIuMjg3IDE2Ljg3OSAxMS45NCAxNi45NzUgMTEuNTg1IDE2Ljk3NSBaIiBzdHlsZT0iIi8+CiAgPC9nPgo8L3N2Zz4="},589:function(e,t,n){var a=n(590);e.exports="string"==typeof a?a:a.toString()},590:function(e,t,n){(t=n(221)(!1)).push([e.i,".saladbowl{position:fixed;z-index:2147483647;top:0;left:0;width:30px;height:30px;-moz-user-select:none;user-select:none;cursor:pointer}.isAnimate .saladbowl{will-change:transform;transition:transform .3s ease-out}.isAnimate .saladbowl.enableHover:hover .saladbowl-leaf{animation:saladbowl-leaf-shake .7s infinite linear}.isAnimate .saladbowl.enableHover:hover .saladbowl-orange{transform-origin:301.8px 187.4px;animation:saladbowl-orange-spin .7s infinite linear}.isAnimate .saladbowl.enableHover:hover .saladbowl-tomato{transform-origin:297.8px 126.4px;animation:saladbowl-tomato-shake .7s infinite linear}.saladbowl,.saladbowl>svg{background-color:transparent!important}.isAnimate .saladbowl-enter-active>svg{animation:saladbowl-jelly 1s linear}.isAnimate .saladbowl-exit{opacity:1}.isAnimate .saladbowl-exit-active{opacity:0;transition:opacity .1s}.saladbowl-exit-done{display:none}@keyframes saladbowl-jelly{0%{transform:matrix3d(.5,0,0,0,0,.5,0,0,0,0,1,0,0,0,0,1)}3.40%{transform:matrix3d(.658,0,0,0,0,.703,0,0,0,0,1,0,0,0,0,1)}4.70%{transform:matrix3d(.725,0,0,0,0,.8,0,0,0,0,1,0,0,0,0,1)}6.81%{transform:matrix3d(.83,0,0,0,0,.946,0,0,0,0,1,0,0,0,0,1)}9.41%{transform:matrix3d(.942,0,0,0,0,1.084,0,0,0,0,1,0,0,0,0,1)}10.21%{transform:matrix3d(.971,0,0,0,0,1.113,0,0,0,0,1,0,0,0,0,1)}13.61%{transform:matrix3d(1.062,0,0,0,0,1.166,0,0,0,0,1,0,0,0,0,1)}14.11%{transform:matrix3d(1.07,0,0,0,0,1.165,0,0,0,0,1,0,0,0,0,1)}17.52%{transform:matrix3d(1.104,0,0,0,0,1.12,0,0,0,0,1,0,0,0,0,1)}18.72%{transform:matrix3d(1.106,0,0,0,0,1.094,0,0,0,0,1,0,0,0,0,1)}21.32%{transform:matrix3d(1.098,0,0,0,0,1.035,0,0,0,0,1,0,0,0,0,1)}24.32%{transform:matrix3d(1.075,0,0,0,0,.98,0,0,0,0,1,0,0,0,0,1)}25.23%{transform:matrix3d(1.067,0,0,0,0,.969,0,0,0,0,1,0,0,0,0,1)}29.03%{transform:matrix3d(1.031,0,0,0,0,.948,0,0,0,0,1,0,0,0,0,1)}29.93%{transform:matrix3d(1.024,0,0,0,0,.949,0,0,0,0,1,0,0,0,0,1)}35.54%{transform:matrix3d(.99,0,0,0,0,.981,0,0,0,0,1,0,0,0,0,1)}36.74%{transform:matrix3d(.986,0,0,0,0,.989,0,0,0,0,1,0,0,0,0,1)}41.04%{transform:matrix3d(.98,0,0,0,0,1.011,0,0,0,0,1,0,0,0,0,1)}44.44%{transform:matrix3d(.983,0,0,0,0,1.016,0,0,0,0,1,0,0,0,0,1)}52.15%{transform:matrix3d(.996,0,0,0,0,1.003,0,0,0,0,1,0,0,0,0,1)}59.86%{transform:matrix3d(1.003,0,0,0,0,.995,0,0,0,0,1,0,0,0,0,1)}63.26%{transform:matrix3d(1.004,0,0,0,0,.996,0,0,0,0,1,0,0,0,0,1)}75.28%{transform:matrix3d(1.001,0,0,0,0,1.002,0,0,0,0,1,0,0,0,0,1)}85.49%{transform:matrix3d(.999,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}90.69%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}100%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}}@keyframes saladbowl-leaf-shake{0%{transform:translate(2px,1px) rotate(0)}10%{transform:translate(-1px,-2px) rotate(1deg)}20%{transform:translate(-2px,0) rotate(1deg)}30%{transform:translate(0,2px) rotate(0)}40%{transform:translate(1px,-1px) rotate(1deg)}50%{transform:translate(-1px,2px) rotate(1deg)}60%{transform:translate(-2px,1px) rotate(0)}70%{transform:translate(2px,1px) rotate(1deg)}80%{transform:translate(-1px,-1px) rotate(1deg)}90%{transform:translate(2px,2px) rotate(0)}100%{transform:translate(1px,-2px) rotate(1deg)}}@keyframes saladbowl-orange-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes saladbowl-tomato-shake{0%{transform:rotate(10deg)}30%{transform:rotate(0)}60%{transform:rotate(10deg)}90%{transform:rotate(0)}100%{transform:rotate(5deg)}}",""]),e.exports=t},592:function(e,t,n){var a=n(593);e.exports="string"==typeof a?a:a.toString()},593:function(e,t,n){(t=n(221)(!1)).push([e.i,'.shadowPortal-appear,.shadowPortal-enter{opacity:0}.shadowPortal-appear-active,.shadowPortal-enter-active{opacity:1;transition:opacity .4s}.shadowPortal-exit{opacity:1}.shadowPortal-exit-active{opacity:0;transition:opacity .1s}.saladict-theme{background-color:#fff;color:#333;--color-brand:#5caf9e;--color-background:#fff;--color-rgb-background:255,255,255;--color-font:#333;--color-font-grey:#666;--color-divider:#ddd}.darkMode .saladict-theme{background-color:#222;color:#ddd;--color-brand:#1e947e;--color-background:#222;--color-rgb-background:34,34,34;--color-font:#ddd;--color-font-grey:#aaa;--color-divider:#4d4748}.dictPanel-FloatBox-Container{position:relative}.dictPanel-Root{display:flex;flex-direction:column;box-sizing:border-box;position:fixed;z-index:2147483647;top:0;left:0;overflow:hidden;text-align:initial;border-radius:6px;background-color:inherit;box-shadow:rgba(0,0,0,.8) 0 4px 23px -6px}.dictPanel-Head{flex-shrink:0}.dictPanel-Body{flex:1;overflow-x:hidden;overflow-y:scroll;-webkit-overflow-scrolling:touch}.fancy-scrollbar{overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;scrollbar-width:auto}.fancy-scrollbar::-webkit-scrollbar{height:8px;width:8px}.fancy-scrollbar::-webkit-scrollbar-track{background-color:transparent}.fancy-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(138,138,138,.25);border-radius:4px}.fancy-scrollbar::-webkit-scrollbar-thumb:hover{background-color:rgba(138,138,138,.35)}.fancy-scrollbar::-webkit-scrollbar-thumb:active{background-color:rgba(138,138,138,.6)}.fancy-scrollbar::-webkit-scrollbar-thumb:vertical{min-height:50px}.fancy-scrollbar::-webkit-scrollbar-thumb:horizontal{min-width:50px}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:0 0;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn-dir:focus,.menuBar-Btn-dir:hover,.menuBar-Btn:focus,.menuBar-Btn:hover{outline:0;background:rgba(0,0,0,.05)}.menuBar-Btn-dir:disabled svg,.menuBar-Btn:disabled svg{fill:#9accc1}.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn-dir:disabled:hover,.menuBar-Btn:disabled:hover{cursor:unset;background:0 0}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * .7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:focus,.floatBox-Item:hover{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em!important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:400}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;color:var(--color-font);background:0 0;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:focus,.floatBox-Btn:hover{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(19px,0)}}.menuBar-SuggestsEntry{margin-right:1.5em;color:#f9690e}.menuBar-SuggestsExplain{color:var(--color-font)}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:0 0;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn-dir:focus,.menuBar-Btn-dir:hover,.menuBar-Btn:focus,.menuBar-Btn:hover{outline:0;background:rgba(0,0,0,.05)}.menuBar-Btn-dir:disabled svg,.menuBar-Btn:disabled svg{fill:#9accc1}.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn-dir:disabled:hover,.menuBar-Btn:disabled:hover{cursor:unset;background:0 0}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-SearchBox_Wrap{flex:2;position:relative}.menuBar-SearchBox_Wrap.isExpand{flex:7}.isAnimate .menuBar-SearchBox_Wrap{transition:flex .6s}.menuBar-SearchBox{width:100%;box-sizing:border-box;padding:0 5px;border:0 none;outline:0 none;color:#fff;background-color:rgba(225,225,225,.1)}.menuBar-SearchBox_Suggests{position:absolute;left:0;top:30px;z-index:1000}.isAnimate .csst-menuBar-SearchBox_Suggests-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-enter-active,.isAnimate .csst-menuBar-SearchBox_Suggests-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-exit-active{opacity:0;transition:opacity .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * .7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:focus,.floatBox-Item:hover{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em!important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:400}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;color:var(--color-font);background:0 0;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:focus,.floatBox-Btn:hover{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(19px,0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:0 0;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn-dir:focus,.menuBar-Btn-dir:hover,.menuBar-Btn:focus,.menuBar-Btn:hover{outline:0;background:rgba(0,0,0,.05)}.menuBar-Btn-dir:disabled svg,.menuBar-Btn:disabled svg{fill:#9accc1}.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn-dir:disabled:hover,.menuBar-Btn:disabled:hover{cursor:unset;background:0 0}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-ProfileItem{position:relative;padding-left:10px;color:var(--color-font)}.menuBar-ProfileItem.isActive::before{content:"";position:absolute;top:50%;transform:translateY(-55%);left:-5px;width:0;height:0;border-left:10px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}.menuBar{display:flex;align-items:center;position:relative;height:30px;padding:0 3px;font-size:14px;background-color:var(--color-brand)}.menuBar-DragArea{flex:3;align-self:stretch;-moz-user-select:none;user-select:none;touch-action:none;cursor:move}.mtaBox-TextArea-Wrap{max-height:var(--panel-max-height);position:relative;overflow:hidden;height:0}.isAnimate .mtaBox-TextArea-Wrap{transition:height .4s}.isAnimate .mtaBox-TextArea-Wrap.isTyping{transition:height 0s}.mtaBox-TextArea{display:block;width:100%;max-height:var(--panel-max-height);box-sizing:border-box;padding:5px 5px 10px;border:none;color:var(--color-font);font-size:var(--panel-font-size);background:0 0}.mtaBox-TextArea-Wrap-appear .mtaBox-TextArea,.mtaBox-TextArea-Wrap-appear-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit-active .mtaBox-TextArea{position:absolute;bottom:0}.mtaBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;padding:0;border:none;border-top:1px solid var(--color-divider);border-bottom:1px dashed var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.mtaBox-DrawerBtn:focus{outline:0;border:1px solid var(--color-font)!important}.mtaBox-DrawerBtn_Arrow{fill:var(--color-font)}.mtaBox-DrawerBtn_Arrow.isExpand{transform:rotate(180deg)}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * .7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:focus,.floatBox-Item:hover{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em!important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:400}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;color:var(--color-font);background:0 0;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:focus,.floatBox-Btn:hover{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(19px,0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.dictItemHead{display:flex;box-sizing:border-box;align-items:flex-start;position:sticky;top:0;z-index:100;height:20px;padding-right:2px;border-top:1px var(--color-divider) dashed;background:var(--color-background)}.dictItemHead-Logo{width:20px;height:20px;margin-top:-1px;-moz-user-select:none;user-select:none}.dictItemHead-Title{margin:0;padding:0 3px;line-height:20px;font-size:12px;font-weight:400}.dictItemHead-Title a{color:var(--color-font);text-decoration:none}.dictItemHead-Menus_Btn{width:18px;height:18px;margin:1px 0 0;padding:0;font-size:0;border:none;border-radius:3px;outline:0;background-color:transparent;opacity:.7;transition:background-color .4s;cursor:pointer}.dictItemHead-Menus_Btn svg{fill:var(--color-font)}.dictItemHead-Menus_Btn:active,.dictItemHead-Menus_Btn:focus,.dictItemHead-Menus_Btn:hover{background-color:var(--color-divider)}.darkMode .dictItemHead-Menus_Btn:active,.darkMode .dictItemHead-Menus_Btn:focus,.darkMode .dictItemHead-Menus_Btn:hover{background-color:#2d3338}.dictItemHead-EmptyArea{flex:1;align-self:stretch}.dictItemHead-FoldArrowBtn{width:19px;height:19px;overflow:hidden;background:0 0;border:none;padding:0;cursor:pointer;-moz-user-select:none;user-select:none}.dictItemHead-FoldArrowBtn:hover{outline:0}.dictItemHead-FoldArrow{box-sizing:border-box;fill:var(--color-font);width:18px;height:18px;padding:3px;transform-origin:center}.isAnimate .dictItemHead-FoldArrow{transition:transform .4s}.isUnfold .dictItemHead-FoldArrow{transform:rotate(-90deg)}.dictItemHead-Loader{display:flex;align-items:center;width:54px;height:20px}.dictItemHead-Loader>div{width:8px;height:8px;margin:2px;background:#f9690e;border-radius:100%}.isAnimate .dictItemHead-Loader>div{animation:dictItemHead-Loader 1.5s infinite ease-in-out}.isAnimate .dictItemHead-Loader>div:nth-child(5){animation-delay:0s}.isAnimate .dictItemHead-Loader>div:nth-child(4){animation-delay:-.1s}.isAnimate .dictItemHead-Loader>div:nth-child(3){animation-delay:-.2s}.isAnimate .dictItemHead-Loader>div:nth-child(2){animation-delay:-.3s}.isAnimate .dictItemHead-Loader>div:nth-child(1){animation-delay:-.4s}@keyframes dictItemHead-Loader{0%,100%,30%,70%{transform:scale(0)}50%{transform:scale(1)}}.dictItem{position:relative;background:var(--color-background)}.dictItem-Body{overflow:hidden;position:relative;padding:0 10px;font-size:13px;line-height:1.6;color:var(--color-font)}.isAnimate .dictItem-Body{transition:height .4s,opacity .4s}.dictItem-BodyMesure{overflow:hidden;opacity:0;position:relative}.dictItem-BodyMesure>:first-child{margin-top:10px!important}.dictItem-BodyMesure>:last-child{margin-bottom:10px!important}.isAnimate .dictItem-BodyMesure{transition:opacity .4s}.isUnfold .dictItem-BodyMesure{opacity:1}.dictItem-Loader{align-self:center;width:120px;height:10px;-moz-user-select:none;user-select:none}.dictItem-Loader_Ball{width:10px;height:10px;fill:orange}.dictItem-Loader_Ball:nth-child(2){transform:translateX(15px)}.dictItem-Loader_Ball:nth-child(3){transform:translateX(30px)}.dictItem-Loader_Ball:nth-child(4){transform:translateX(45px)}.dictItem-Loader_Ball:nth-child(5){transform:translateX(60px)}.isAnimate .dictItem-Loader_Ball{animation:dictItem-Loader-shift 2s linear infinite}.isAnimate .dictItem-Loader_Ball:nth-child(2){animation-delay:-.4s}.isAnimate .dictItem-Loader_Ball:nth-child(3){animation-delay:-.8s}.isAnimate .dictItem-Loader_Ball:nth-child(4){animation-delay:-1.2s}.isAnimate .dictItem-Loader_Ball:nth-child(5){animation-delay:-1.6s}.dictItem-FoldMask{position:absolute;left:0;bottom:0;width:100%;height:50px;padding:0;border:none;background:linear-gradient(transparent 40%,rgba(var(--color-rgb-background),.5) 60%,var(--color-background) 100%);opacity:.6;cursor:pointer;-moz-user-select:none;user-select:none}.dictItem-FoldMask:hover{outline:0;opacity:1}.isAnimate .dictItem-FoldMask{transition:opacity .4s}.dictItem-FoldMaskArrow{position:absolute;z-index:10;bottom:0;left:0;right:0;margin:0 auto;width:15px;height:15px;fill:var(--color-font)}.isAnimate .noHeightTransition .dictItem-Body{transition:height 0s}@keyframes dictItem-Loader-shift{0%{transform:translateX(0);opacity:0}10%{transform:translateX(30px);opacity:1}90%{transform:translateX(80px);opacity:1}100%{transform:translateX(110px);opacity:0}}.dictList>.dictItem:first-child>.dictItemHead{border-top-color:transparent}.waveformBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;border:none;border-top:1px solid var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.waveformBox-DrawerBtn:focus{outline:0;border:1px solid var(--color-font)!important}.waveformBox-FrameWrap{overflow:hidden;height:0;font-size:0;transition:height .4s}.waveformBox-DrawerBtn_Arrow{fill:var(--color-font)}.waveformBox.isExpand .waveformBox-FrameWrap{height:165px}.waveformBox.isExpand .waveformBox-DrawerBtn{border-bottom:1px solid var(--color-divider)}.waveformBox.isExpand .waveformBox-DrawerBtn_Arrow{transform:rotate(180deg)}.waveformBox-Frame{width:100%;height:165px;border:none;transition:opacity .4s}.waveformBox-Frame-enter{opacity:0}.waveformBox-Frame-enter-active,.waveformBox-Frame-exit{opacity:1}.waveformBox-Frame-exit-active{opacity:0}.dictPanel-DragMask{position:fixed;z-index:2147483647;top:0;left:0;bottom:0;right:0;margin:auto;background:rgba(225,225,225,.01);cursor:grabbing;cursor:-webkit-grabbing}.isAnimate .dictPanel-Root{transition:width .4s,height .4s,opacity .4s,top .4s cubic-bezier(.55,.82,.63,.95),left .4s cubic-bezier(.4,.9,.71,1.02)}.isAnimate .dictPanel-Root.isDragging{transition:width .4s,height .4s,opacity .4s}',""]),e.exports=t},594:function(e,t,n){var a=n(595);e.exports="string"==typeof a?a:a.toString()},595:function(e,t,n){(t=n(221)(!1)).push([e.i,'.saladict-theme{background-color:#fff;color:#333;--color-brand:#5caf9e;--color-background:#fff;--color-rgb-background:255,255,255;--color-font:#333;--color-font-grey:#666;--color-divider:#ddd}.darkMode .saladict-theme{background-color:#222;color:#ddd;--color-brand:#1e947e;--color-background:#222;--color-rgb-background:34,34,34;--color-font:#ddd;--color-font-grey:#aaa;--color-divider:#4d4748}.fancy-scrollbar{overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;scrollbar-width:auto}.fancy-scrollbar::-webkit-scrollbar{height:8px;width:8px}.fancy-scrollbar::-webkit-scrollbar-track{background-color:transparent}.fancy-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(138,138,138,.25);border-radius:4px}.fancy-scrollbar::-webkit-scrollbar-thumb:hover{background-color:rgba(138,138,138,.35)}.fancy-scrollbar::-webkit-scrollbar-thumb:active{background-color:rgba(138,138,138,.6)}.fancy-scrollbar::-webkit-scrollbar-thumb:vertical{min-height:50px}.fancy-scrollbar::-webkit-scrollbar-thumb:horizontal{min-width:50px}.wordEditorPanel-Background{position:fixed;z-index:2147483645;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;text-align:initial;background:rgba(0,0,0,.4)}.wordEditorPanel-Container{display:flex;align-items:center;height:100%;min-width:440px;margin-left:auto}.wordEditorPanel{display:flex;flex-direction:column;width:80%;max-width:800px;min-width:400px;max-height:90vh;border-radius:6px;color:var(--color-font);background-color:var(--color-background);box-shadow:0 5px 15px rgba(0,0,0,.5);font-size:13px;font-family:"Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei",sans-serif}.wordEditorPanel-Header{display:flex;border-bottom:1px solid #ccc}.wordEditorPanel-Title{margin:0;font-size:18px;padding:15px}.wordEditorPanel-BtnClose{text-decoration:none;margin-left:auto;padding:15px;font-size:21px;font-weight:700;line-height:1;border:none;background:0 0;color:var(--color-font);text-shadow:0 1px 0 var(--color-background);opacity:.5;cursor:pointer}.wordEditorPanel-BtnClose:hover{outline:0}.wordEditorPanel-Main{flex:1;overflow-x:hidden;overflow-y:scroll;overscroll-behavior:contain}.wordEditorPanel-Footer{padding:15px;text-align:right;border-top:1px solid #ccc}.darkMode .wordEditorPanel-Btn,.darkMode .wordEditorPanel-Btn_normal,.wordEditorPanel-Btn,.wordEditorPanel-Btn_normal,.wordEditorPanel-Btn_primary{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857;border-radius:4px;-moz-user-select:none;user-select:none}.wordEditorPanel-Btn,.wordEditorPanel-Btn_normal{margin-right:10px;color:#333;background-color:#fff;border-color:#ccc}.wordEditorPanel-Btn:focus,.wordEditorPanel-Btn_normal:focus{background-color:#e6e6e6;border-color:#8c8c8c}.wordEditorPanel-Btn:hover,.wordEditorPanel-Btn_normal:hover{outline:0;background-color:#e6e6e6;border-color:#adadad}.wordEditorPanel-Btn:active,.wordEditorPanel-Btn_normal:active{outline:0;background-color:#e6e6e6;border-color:#8c8c8c;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.wordEditorPanel-Btn_primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.wordEditorPanel-Btn_primary:focus{background-color:#286090;border-color:#122b40}.wordEditorPanel-Btn_primary:hover{outline:0;background-color:#286090;border-color:#204d74}.wordEditorPanel-Btn_primary:active{outline:0;background-color:#204d74;border-color:#122b40;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.darkMode .wordEditorPanel-Footer,.darkMode .wordEditorPanel-Header{border-color:#8b8b8b}.darkMode .wordEditorPanel-Btn,.darkMode .wordEditorPanel-Btn_normal{margin-right:10px;color:#333;background-color:#ddd;border-color:#ccc}.darkMode .wordEditorPanel-Btn:focus,.darkMode .wordEditorPanel-Btn_normal:focus{background-color:#bfbfbf;border-color:#8c8c8c}.darkMode .wordEditorPanel-Btn:hover,.darkMode .wordEditorPanel-Btn_normal:hover{outline:0;background-color:#bfbfbf;border-color:#adadad}.darkMode .wordEditorPanel-Btn:active,.darkMode .wordEditorPanel-Btn_normal:active{outline:0;background-color:#bfbfbf;border-color:#8c8c8c;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.wordCards{flex:2;display:flex;flex-direction:column;overflow:hidden}.wordCards-Title{margin:0;padding:3px 0;text-align:center;font-size:1em;font-weight:400;border-bottom:1px solid #e5e5e5}.wordCards-CardList{flex:1;margin:0;padding:10px;overflow-x:hidden;overflow-y:auto}.wordCards-Card{list-style-type:none;position:relative;display:block;overflow:hidden;margin:0 0 10px 0;padding:10px 10px 10px;word-wrap:break-word;border:1px #faebcc solid;border-radius:20px;color:#8a6d3b;background:#fcf8e3}.wordCards-CardClose{position:absolute;top:5px;right:5px;border:none;font-size:20px;font-weight:700;color:#8a6d3b;background:0 0;cursor:pointer}.wordCards-CardTitle{margin:0 0 .5em;text-align:center}.wordCards-CardItem{position:relative;overflow:visible;margin-bottom:.5em;padding:0 0 0 25px}.wordCards-CardItem_Cont p{margin:0}.wordCards-CardItem_Icon{position:absolute;top:-5px;left:0;width:18px;height:18px;fill:#8a6d3b;-moz-user-select:none;user-select:none}.wordCards-CardFooter{position:relative;border-top:1px solid #faebcc;padding:8px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wordCards-Favicon{position:absolute;top:8px;left:3px;width:14px;height:14px}.wordCards-URL{padding:0 0 0 25px;color:inherit;font-size:12px}.ctxTransList{margin-top:0}.ctxTransItem{list-style-type:none;border-top:1px #ccc dashed}.ctxTransItem:first-of-type{border-top:none}.ctxTransItem-Head{display:flex;align-items:center}.ctxTrans-Title{position:relative;margin:5px 5px 5px 0;font-size:16px}.ctxTrans-Title input{position:absolute;top:3px;left:-25px}.ctxTrans-Content{margin:0 0 5px 0}.ctxTrans-Loader{display:flex;align-items:center;width:54px;height:20px}.ctxTrans-Loader>div{width:8px;height:8px;margin:2px;background:#f9690e;border-radius:100%;animation:ctxTrans-Loader 1.5s infinite ease-in-out}.ctxTrans-Loader>div:nth-child(5){animation-delay:0s}.ctxTrans-Loader>div:nth-child(4){animation-delay:-.1s}.ctxTrans-Loader>div:nth-child(3){animation-delay:-.2s}.ctxTrans-Loader>div:nth-child(2){animation-delay:-.3s}.ctxTrans-Loader>div:nth-child(1){animation-delay:-.4s}@keyframes ctxTrans-Loader{0%,100%,30%,70%{transform:scale(0)}50%{transform:scale(1)}}.wordEditorNote-Container{display:flex}.wordEditorNote{flex:3;padding:15px}.wordEditorNote a{text-decoration:none;color:#1890ff}.wordEditorNote label{display:block;margin-bottom:5px;font-weight:700}.wordEditorNote input,.wordEditorNote textarea{box-sizing:border-box;display:block;resize:vertical;width:100%;margin-bottom:15px;padding:6px 12px;font-size:14px;line-height:1.42857;color:var(--color-font);background:var(--color-background);background-image:none;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.wordEditorNote input:focus,.wordEditorNote textarea:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.darkMode .wordEditorNote input,.darkMode .wordEditorNote textarea{border-color:#8b8b8b}.wordEditorNote_Help{margin-top:-15px;color:var(--color-font-grey)}.wordEditorNote_SrcFavicon{height:16px;margin-left:5px;vertical-align:text-bottom}.wordEditorNote_LabelWithBtn>label{display:inline-block;margin-right:5px}.wordEditorNote_LabelWithBtn>button{position:relative;top:-1px;padding:1px 5px;background:0 0;border:1px solid #ccc;border-radius:3px;font-size:90%;color:var(--color-font);cursor:pointer}.notes-fade-appear,.notes-fade-enter{opacity:0}.notes-fade-appear-active,.notes-fade-enter-active{opacity:1;transition:opacity .4s}.notes-fade-exit{opacity:1}.notes-fade-exit-active{opacity:0;transition:opacity .1s}.shadowPortal-appear,.shadowPortal-enter{opacity:0}.shadowPortal-appear-active,.shadowPortal-enter-active{opacity:1;transition:opacity .4s}.shadowPortal-exit{opacity:1}.shadowPortal-exit-active{opacity:0;transition:opacity .1s}',""]),e.exports=t},63:function(e,t,n){"use strict";n.d(t,"d",(function(){return Q})),n.d(t,"c",(function(){return Y})),n.d(t,"b",(function(){return G})),n.d(t,"a",(function(){return K}));var a=n(98),o=n(248),r=n(22),i=n(800),s=n(8),c=n(10),l=n(176),d=n(1),u=n(249),h=n(11),p=n(29),g=n(40),f=n(2);const m=async()=>{const e=Object(p.c)(),t=Object(g.g)(),n=Object(g.e)(),a=await e,o=await t,r=await n,i=window.location.href,s="hide"!==r.mtaAutoUnfold;return{config:a,profiles:o,activeProfile:r,selection:{word:Object(h.e)(),mouseX:0,mouseY:0,self:!1,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1},isTempDisabled:a.blacklist.some(([e])=>new RegExp(e).test(i))&&a.whitelist.every(([e])=>!new RegExp(e).test(i)),isQSPanel:Object(f.k)(),isQSFocus:a.qsFocus,withQssaPanel:!1,wordEditor:{isShow:!1,word:Object(h.e)(),translateCtx:!1},isShowBowl:!1,isShowDictPanel:Object(f.l)(),isShowMtaBox:s,isExpandMtaBox:s&&("once"===r.mtaAutoUnfold||"always"===r.mtaAutoUnfold||"popup"===r.mtaAutoUnfold&&Object(f.j)()),isExpandWaveformBox:!1,isPinned:a.defaultPinned,isFav:!1,bowlCoord:{x:0,y:0},dictPanelCoord:Object(f.h)()?{x:window.innerWidth-a.panelWidth-20,y:80}:{x:0,y:0},panelHeight:30,_panelHeightCache:{menubar:30,mtabox:0,dictlist:0,waveformbox:0,sum:30,floatHeight:0},panelMaxHeight:window.innerHeight*a.panelMaxHeightRatio/100,renderedDicts:[],userFoldedDicts:{},text:"",searchHistory:[],historyIndex:-1,dragStartCoord:null,lastPlayAudio:null}};var b=n(24);const x=(e,{payload:t})=>{const{activeProfile:n,searchHistory:a,historyIndex:o}=e;let r;const i=t&&t.noHistory?a:a.slice(0,o+1);let s=o;if(t&&t.word){r=t.word;const e=a[o];t.noHistory||e&&e.text===r.text||(i.push(r),s=i.length-1)}else r=a[o];return r?{...e,text:r.text,isShowDictPanel:!0,isExpandMtaBox:"always"===n.mtaAutoUnfold||"popup"===n.mtaAutoUnfold&&Object(f.j)(),searchHistory:i,historyIndex:s,renderedDicts:t&&t.id?e.renderedDicts.map(e=>e.id===t.id?{id:e.id,searchStatus:"SEARCHING",searchResult:null}:e):n.dicts.selected.filter(e=>{const t=n.dicts.all[e];if(Object(b.a)(t.selectionLang,r.text)){const e=Object(b.b)(r.text),{min:n,max:a}=t.selectionWC;return e>=n&&e<=a}return!1}).map(t=>({id:t,searchStatus:!Object(b.a)(n.dicts.all[t].defaultUnfold,r.text)||e.activeProfile.stickyFold&&e.userFoldedDicts[t]?"IDLE":"SEARCHING",searchResult:null}))}:e};const w=(e,{payload:t})=>{if(t.self)return e;const{config:n}=e,a={...e,selection:t};if(Object(f.h)())return a;if(t.word)if(t.force)a.dictPanelCoord={x:t.mouseX,y:t.mouseY};else if(!e.isPinned){const e=30,o=10;a.bowlCoord={x:t.mouseX+n.bowlOffsetX,y:t.mouseY+n.bowlOffsetY},a.bowlCoord.x<30?a.bowlCoord.x=30:a.bowlCoord.x+e+30+o>window.innerWidth&&(a.bowlCoord.x=window.innerWidth-e-o-30),a.bowlCoord.y<30?a.bowlCoord.y=30:a.bowlCoord.y+e+30>window.innerHeight&&(a.bowlCoord.y=window.innerHeight-e-30),a.dictPanelCoord={x:a.bowlCoord.x+e+10,y:a.bowlCoord.y},a.dictPanelCoord.x+a.config.panelWidth+20>window.innerWidth&&(a.dictPanelCoord.x=a.bowlCoord.x-10-a.config.panelWidth)}if(e.withQssaPanel&&n.qssaPageSel||Object(f.l)())return a;const o=n.active&&!e.isTempDisabled,{direct:r,holding:i,double:s,icon:c}=n.mode;return a.isShowDictPanel=Boolean(e.isPinned||o&&t.word&&t.word.text&&(e.isShowDictPanel||r||s&&t.dbClick||i.alt&&t.altKey||i.shift&&t.shiftKey||i.ctrl&&t.ctrlKey||i.meta&&t.metaKey||t.instant)||Object(f.l)()),a.isShowBowl=Boolean(o&&t.word&&t.word.text&&c&&!a.isShowDictPanel&&!r&&!(s&&t.dbClick)&&!(i.alt&&t.altKey)&&!(i.shift&&t.shiftKey)&&!(i.ctrl&&t.ctrlKey)&&!(i.meta&&t.metaKey)&&!t.instant&&!Object(f.l)()),a};const y=e=>{const{panelWidth:t,tripleCtrl:n,qsLocation:a}=e.config;if(!n||e.isShowDictPanel)return e;let o=10,r=10;switch(a){case"CENTER":o=(window.innerWidth-t)/2,r=.3*window.innerHeight;break;case"TOP":o=(window.innerWidth-t)/2,r=10;break;case"RIGHT":o=window.innerWidth-t-30,r=.3*window.innerHeight;break;case"BOTTOM":o=(window.innerWidth-t)/2,r=window.innerHeight-10;break;case"LEFT":o=10,r=.3*window.innerHeight;break;case"TOP_LEFT":o=10,r=10;break;case"TOP_RIGHT":o=window.innerWidth-t-30,r=10;break;case"BOTTOM_LEFT":o=10,r=window.innerHeight-10;break;case"BOTTOM_RIGHT":o=window.innerWidth-t-30,r=window.innerHeight-10}return{...e,isQSPanel:!0,isShowDictPanel:!0,dictPanelCoord:{x:o,y:r}}};const C={NEW_CONFIG:(e,{payload:t})=>{const n=window.location.href,a=window.innerHeight*t.panelMaxHeightRatio/100;return{...e,config:t,panelHeight:Math.min(e.panelHeight,a),panelMaxHeight:a,isQSFocus:t.qsFocus,isTempDisabled:t.blacklist.some(([e])=>new RegExp(e).test(n))&&t.whitelist.every(([e])=>!new RegExp(e).test(n))}},NEW_PROFILES:(e,{payload:t})=>({...e,profiles:t}),NEW_ACTIVE_PROFILE:(e,{payload:t})=>{const n="hide"!==t.mtaAutoUnfold;return{...e,activeProfile:t,isShowMtaBox:n,isExpandMtaBox:n&&("once"===t.mtaAutoUnfold||"always"===t.mtaAutoUnfold||"popup"===t.mtaAutoUnfold&&Object(f.j)()),renderedDicts:e.renderedDicts.filter(({id:e})=>t.dicts.selected.includes(e))}},NEW_SELECTION:w,WINDOW_RESIZE:e=>({...e,panelMaxHeight:window.innerHeight*e.config.panelMaxHeightRatio/100}),TEMP_DISABLED_STATE:(e,{payload:t})=>t?{...e,isTempDisabled:!0,isPinned:!1,isShowDictPanel:Object(f.l)(),isShowBowl:!1,isQSPanel:Object(f.k)()}:{...e,isTempDisabled:!1},BOWL_ACTIVATED:e=>({...e,isShowBowl:!1,isShowDictPanel:!0}),UPDATE_TEXT:(e,{payload:t})=>({...e,text:t}),TOGGLE_MTA_BOX:e=>({...e,isExpandMtaBox:!e.isExpandMtaBox}),TOGGLE_PIN:e=>({...e,isPinned:!e.isPinned}),TOGGLE_QS_FOCUS:e=>({...e,isQSFocus:!e.isQSFocus}),TOGGLE_WAVEFORM_BOX:e=>({...e,isExpandWaveformBox:!e.isExpandWaveformBox}),OPEN_PANEL:(e,{payload:t})=>Object(f.l)()?e:{...e,isShowDictPanel:!0,dictPanelCoord:{x:t.x,y:t.y}},CLOSE_PANEL:e=>Object(f.l)()?e:{...e,isPinned:!1,isShowBowl:!1,isShowDictPanel:!1,isQSPanel:Object(f.k)()},SWITCH_HISTORY:(e,{payload:t})=>{const n=Math.min(Math.max(0,e.historyIndex+("prev"===t?-1:1)),e.searchHistory.length-1);return{...e,historyIndex:n,text:e.searchHistory[n]?e.searchHistory[n].text:e.text}},WORD_IN_NOTEBOOK:(e,{payload:t})=>({...e,isFav:t}),ADD_TO_NOTEBOOK:e=>e.config.editOnFav&&!Object(f.l)()?e:{...e,isFav:!0},SEARCH_START:x,SEARCH_END:(e,{payload:t})=>e.renderedDicts.every(({id:e})=>e!==t.id)?e:{...e,renderedDicts:e.renderedDicts.map(e=>e.id===t.id?{id:e.id,searchStatus:"FINISH",searchResult:t.result,catalog:t.catalog}:e)},UPDATE_PANEL_HEIGHT:(e,{payload:t})=>{const{_panelHeightCache:n}=e,a=n.sum-n[t.area]+t.height,o=null==t.floatHeight?n.floatHeight:t.floatHeight;return{...e,panelHeight:Math.min(Math.max(a,o),e.panelMaxHeight),_panelHeightCache:{...n,[t.area]:t.height,sum:a,floatHeight:o}}},USER_FOLD_DICT:(e,{payload:t})=>({...e,userFoldedDicts:{...e.userFoldedDicts,[t.id]:t.fold}}),DRAG_START_COORD:(e,{payload:t})=>({...e,dragStartCoord:t}),SUMMONED_PANEL_INIT:(e,{payload:t})=>({...e,text:t,historyIndex:0,isShowDictPanel:!0,isShowBowl:!1}),QS_PANEL_CHANGED:(e,{payload:t})=>e.withQssaPanel===t?e:t&&e.config.qssaPageSel?{...e,withQssaPanel:t,isPinned:!1,isShowDictPanel:Object(f.j)()||!!Object(f.h)()&&e.isShowDictPanel,isShowBowl:!1,isQSPanel:!1}:{...e,withQssaPanel:t,isQSPanel:Object(f.k)()},OPEN_QS_PANEL:y,WORD_EDITOR_STATUS:(e,{payload:{word:t,translateCtx:n}})=>t?{...e,wordEditor:{isShow:!0,word:t,translateCtx:!!n},dictPanelCoord:{x:50,y:.2*window.innerHeight}}:{...e,wordEditor:{isShow:!1,word:e.wordEditor.word,translateCtx:!1}},PLAY_AUDIO:(e,{payload:t})=>({...e,lastPlayAudio:t})};var M=n(46);const E=(e,t)=>{window.addEventListener("resize",()=>{e({type:"WINDOW_RESIZE"})}),Object(p.a)(({newConfig:n})=>{n.active!==t().config.active&&d.a.send({type:"SEND_TAB_BADGE_INFO",payload:{active:n.active,tempDisable:t().isTempDisabled,unsupported:!Object(f.l)()&&"BODY"!==document.body.tagName}}),e({type:"NEW_CONFIG",payload:n})}),Object(g.a)(({newProfile:t})=>{e({type:"NEW_ACTIVE_PROFILE",payload:t})}),Object(g.d)().subscribe(t=>{e({type:"NEW_PROFILES",payload:t})}),d.a.addListener(n=>{switch(n.type){case"TEMP_DISABLED_STATE":return"set"===n.payload.op?(e({type:"TEMP_DISABLED_STATE",payload:n.payload.value}),setTimeout(()=>{const e=t();d.a.send({type:"SEND_TAB_BADGE_INFO",payload:{active:e.config.active,tempDisable:e.isTempDisabled,unsupported:!Object(f.l)()&&"BODY"!==document.body.tagName}})},0),Promise.resolve(!0)):Promise.resolve(t().isTempDisabled);case"SEARCH_TEXT_BOX":{var a;const{searchHistory:n,historyIndex:o,text:r}=t();return e({type:"SEARCH_START",payload:{word:(null===(a=n[o])||void 0===a?void 0:a.text)===r?n[o]:Object(h.e)({text:r,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}}),Object(f.j)()?Promise.resolve(!0):Promise.resolve()}case"WORD_SAVED":{const{text:n}=t();n&&d.a.send({type:"IS_IN_NOTEBOOK",payload:Object(h.e)({text:n})}).then(t=>{e({type:"WORD_IN_NOTEBOOK",payload:t})});break}case"ADD_NOTEBOOK":return n.payload.popup===Object(f.j)()?(e({type:"ADD_TO_NOTEBOOK"}),Promise.resolve(!0)):void 0;case"SWITCH_HISTORY":return e({type:"SWITCH_HISTORY",payload:n.payload}),Promise.resolve(!0);case"QS_PANEL_SEARCH_TEXT":return Object(f.k)()&&(e({type:"SEARCH_START",payload:{word:n.payload}}),t().isQSFocus&&d.a.send({type:"OPEN_QS_PANEL"})),Promise.resolve();case"QS_PANEL_CHANGED":return Object(f.k)()||e({type:"QS_PANEL_CHANGED",payload:n.payload}),Promise.resolve();case"QS_PANEL_FOCUSED":if(Object(f.k)()){const e=document.querySelector(t().isExpandMtaBox?".mtaBox-TextArea":".menuBar-SearchBox");e&&(e.focus(),e.select())}return Promise.resolve();case"GET_TAB_BADGE_INFO":{const e=t();return Promise.resolve({active:e.config.active,tempDisable:e.isTempDisabled,unsupported:!Object(f.l)()&&"BODY"!==document.body.tagName})}}});let n=0;d.a.self.addListener(a=>{switch(a.type){case"SELECTION":if(a.payload.instant)n=Date.now();else if(Date.now()-n<500)return Promise.resolve();return e({type:"NEW_SELECTION",payload:a.payload}),Promise.resolve();case"ESCAPE_KEY":return e({type:"CLOSE_PANEL"}),Promise.resolve();case"SEARCH_TEXT":return e({type:"SEARCH_START",payload:{word:a.payload}}),Promise.resolve();case"CLOSE_PANEL":return e({type:"CLOSE_PANEL"}),Promise.resolve();case"TRIPLE_CTRL":if(!Object(f.j)()&&!Object(f.h)()){const n=t();n.config.tripleCtrl&&(n.config.qsStandalone?d.a.send({type:"OPEN_QS_PANEL"}):n.isShowDictPanel||(e({type:"OPEN_QS_PANEL"}),async function(e,t){let n=null;"selection"===t.config.qsPreload?t.selection.word&&(n=t.selection.word):"clipboard"===t.config.qsPreload&&(n=Object(h.e)({text:await d.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&t.config.qsAuto?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,n)))}return Promise.resolve();case"UPDATE_WORD_EDITOR_WORD":return e({type:"WORD_EDITOR_STATUS",payload:a.payload}),Object(M.d)(100).then(()=>{e({type:"SEARCH_START",payload:{word:a.payload.word}})});case"LAST_PLAY_AUDIO":return Promise.resolve(t().lastPlayAudio)}}),Object(f.j)()?async function(e,t){let n=null;if("selection"===t.config.baPreload){const e=(await browser.tabs.query({active:!0,currentWindow:!0}))[0];e&&null!=e.id&&(n=await d.a.send(e.id,{type:"PRELOAD_SELECTION"}))}else"clipboard"===t.config.baPreload&&(n=Object(h.e)({text:await d.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&t.config.baAuto?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,t()):Object(f.k)()?async function(e,t){let n=null;const{searchParams:a}=new URL(document.URL);a.get("sidebar")||e({type:"TOGGLE_PIN"});const o=a.get("word");if(o)try{n=JSON.parse(decodeURIComponent(o))}catch(e){!1,n=null}if(!n)if("selection"===t.config.qsPreload){const e=Number(a.get("lastTab"));e&&(n=await d.a.send(e,{type:"PRELOAD_SELECTION"}))}else"clipboard"===t.config.qsPreload&&(n=Object(h.e)({text:await d.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&(t.config.qsAuto||o)?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,t()):d.a.send({type:"QUERY_QS_PANEL"}).then(t=>e({type:"QS_PANEL_CHANGED",payload:t}))};var I=n(767),j=n(118),N=n(96),O=n(64),v=n(83),A=n(768),z=n(145),D=n(38);const T=n(363).a;var k=n(108),L=n(720),S=n(801),B=n(634),_=n(766),P=n(104);var W=(e,t)=>e.pipe(T("SEARCH_START"),Object(k.a)(({payload:e})=>{const{config:n,searchHistory:a,historyIndex:o,renderedDicts:r}=t.value,i=a[o];!n.searchHistory||Object(f.f)()&&!Object(f.l)()||browser.extension.inIncognitoContext&&!n.searchHistoryInco||!(o<=0||a[o-1].text!==i.text||a[o-1].context!==i.context)||Object(h.f)("history",i);const s=new Set;for(const e of r)"SEARCHING"===e.searchStatus&&s.add(e.id);const{cn:l,en:u,machine:p}=n.autopron;l.dict&&s.add(l.dict),u.dict&&s.add(u.dict),p.dict&&s.add(p.dict);const g=Object(P.a)(...[...s].map(t=>d.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:i.text,payload:e&&e.payload?{isPDF:Object(f.i)(),...e.payload}:{isPDF:Object(f.i)()}}}).catch(()=>({id:t,result:null})))).pipe(Object(L.a)()),m=e&&e.id?j.a:g.pipe(Object(D.a)(({id:e,audio:t,result:n})=>!!t&&(!(e!==l.dict||!t.py)||(!(e!==u.dict||!t.uk&&!t.us)||e===p.dict&&!!n[p.src].tts))),Object(S.a)(1),Object(B.a)(({id:e,audio:t,result:n})=>{if(e===l.dict)return d.a.send({type:"PLAY_AUDIO",payload:t.py});if(e===u.dict){const e="us"===u.accent?t.us||t.uk:t.uk||t.us;return d.a.send({type:"PLAY_AUDIO",payload:e})}d.a.send({type:"PLAY_AUDIO",payload:n[p.src].tts})}),Object(_.a)(j.a));return Object(P.a)(Object(O.a)(Object(h.d)(i).catch(()=>!1)).pipe(Object(c.a)(e=>({type:"WORD_IN_NOTEBOOK",payload:e}))),g.pipe(Object(c.a)(({id:e,result:t,catalog:n})=>({type:"SEARCH_END",payload:{id:e,result:t,catalog:n}}))),m)}));var U=(e,t)=>e.pipe(T("NEW_SELECTION"),Object(k.a)(({payload:e})=>{const{config:n,withQssaPanel:a,isShowDictPanel:o,isPinned:r}=t.value;if(e.self)return function(e,t){const{direct:n,double:a,holding:o}=e.panelMode;if(t.word&&t.word.text&&(t.instant||n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey))return Object(N.a)({type:"SEARCH_START",payload:{word:{...t.word,title:"Saladict Panel",favicon:"https://saladict.crimx.com/favicon.ico"}}});return j.a}(n,e);if(Object(f.h)())return j.a;if(a&&n.qssaPageSel)return function(e,t){const{direct:n,double:a,holding:o}=e.qsPanelMode;t.word&&t.word.text&&(t.instant||n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey)&&d.a.send({type:"QS_PANEL_SEARCH_TEXT",payload:t.word});return j.a}(n,e);if(Object(f.l)())return j.a;const{pinMode:i}=n;return o&&e.word&&e.word.text&&(!r||i.direct||i.double&&e.dbClick||i.holding.alt&&e.altKey||i.holding.shift&&e.shiftKey||i.holding.ctrl&&e.ctrlKey||i.holding.meta&&e.metaKey)?Object(N.a)({type:"SEARCH_START",payload:{word:e.word}}):j.a}));var H=n(80);const R=Object(I.a)((e,t)=>e.pipe(T("BOWL_ACTIVATED"),Object(c.a)(()=>t.value.selection.word?{type:"SEARCH_START",payload:{word:t.value.selection.word}}:{type:"SEARCH_START"})),(e,t)=>e.pipe(T("SWITCH_HISTORY"),Object(v.a)({type:"SEARCH_START",payload:{noHistory:!0}})),(e,t)=>t.pipe(Object(c.a)(e=>e.isShowDictPanel),Object(A.a)(),Object(z.a)(([e,t])=>(e&&!t&&d.a.send({type:"STOP_AUDIO"}),j.a))),(e,t)=>e.pipe(T("ADD_TO_NOTEBOOK"),Object(z.a)(()=>{if(t.value.config.editOnFav){const e=t.value.searchHistory[t.value.historyIndex];if(Object(f.j)()||Object(f.l)()){const{width:t,height:n}=window.screen,a=Math.round(Math.min(Math.max(t,440),640)),o=Math.round(Math.min(n-150,800));let r="";try{r=encodeURIComponent(JSON.stringify(e))}catch(e){console.warn(e)}return browser.windows.create({type:"popup",url:browser.runtime.getURL("word-editor.html?word="+r),top:Math.round((n-o)/2),left:Math.round((t-a)/2),width:a,height:o}).catch(e=>{console.warn(e)}),j.a}return Object(N.a)({type:"WORD_EDITOR_STATUS",payload:{word:e,translateCtx:!0}})}return Object(O.a)((async()=>{const e=t.value.searchHistory[t.value.searchHistory.length-1];if(e)try{return e.trans=Object(H.a)(e.trans,await Object(H.d)(e.context||e.text,t.value.config.ctxTrans)),await Object(h.f)("notebook",e),!0}catch(e){return console.warn(e),!1}return!1})()).pipe(Object(D.a)(e=>!e),Object(v.a)({type:"WORD_IN_NOTEBOOK",payload:!1}))})),U,W);const F=Object(i.a)(),Q=r.f,Y=r.e,G=r.d,K=async()=>{const e=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||a.c,t=Object(a.d)(await(async()=>Object(u.createReducer)(await m(),C))(),e(Object(a.a)(o.a,F)));F.run(R),E(t.dispatch,t.getState);async function n(){return t.getState().isPinned}return new s.a(e=>{t.subscribe(()=>e.next(t.getState()))}).pipe(Object(c.a)(e=>e.isPinned),Object(l.a)()).subscribe(e=>{d.a.self.send({type:"PIN_STATE",payload:e})}),d.a.addListener("QUERY_PIN_STATE",n),d.a.self.addListener("QUERY_PIN_STATE",n),t}},74:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return s}));var a=n(113),o=n(81);const r=function(e){return{version:1,id:e||Object(a.a)(),mtaAutoUnfold:"",waveform:!0,stickyFold:!1,dicts:{selected:["bing","cobuild","cambridge","youdao","urban","vocabulary","google","zdic","guoyu","liangan","googledict"],all:Object(o.b)()}}};function i(e){return{id:e||Object(a.a)(),name:"%%_default_%%"}}function s(){const e=i(),t=r(e.id),n=function(){const e=i();e.name="%%_sentence_%%";const t=r(e.id);t.dicts.selected=["jukuu","bing","cnki","renren","eudic","cobuild","cambridge","longman","macmillan"];const n=t.dicts.all;return n.bing.options.tense=!1,n.bing.options.phsym=!1,n.bing.options.cdef=!1,n.bing.options.related=!1,n.bing.options.sentence=9999,n.cnki.options.dict=!1,n.eudic.options.resultnum=9999,n.macmillan.options.related=!1,n.longman.options.wordfams=!1,n.longman.options.collocations=!1,n.longman.options.grammar=!1,n.longman.options.thesaurus=!1,n.longman.options.examples=!0,n.longman.options.bussinessFirst=!1,n.longman.options.related=!1,{idItem:e,profile:t}}(),a=function(){const e=i();e.name="%%_translation_%%";const t=r(e.id);return t.dicts.selected=["google","tencent","baidu","caiyun","youdaotrans","zdic","guoyu","liangan"],t.mtaAutoUnfold="always",{idItem:e,profile:t}}(),o=function(){const e=i();e.name="%%_scholar_%%";const t=r(e.id);t.dicts.selected=["googledict","cambridge","cobuild","etymonline","cnki","macmillan","lexico","websterlearner","google","youdaotrans","zdic","guoyu","liangan"];const n=t.dicts.all;return n.macmillan.defaultUnfold={matchAll:!1,english:!1,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1},n.lexico.defaultUnfold={matchAll:!1,english:!1,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1},n.websterlearner.defaultUnfold={matchAll:!1,english:!1,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1},n.google.selectionWC.min=5,n.youdaotrans.selectionWC.min=5,{idItem:e,profile:t}}(),s=function(){const e=i();e.name="%%_nihongo_%%";const t=r(e.id);return t.dicts.selected=["mojidict","hjdict","weblioejje","weblio","google","tencent","caiyun","googledict","wikipedia"],t.dicts.all.wikipedia.options.lang="ja",t.waveform=!1,{idItem:e,profile:t}}();return{profileIDList:[e,n.idItem,a.idItem,o.idItem,s.idItem],profiles:[t,n.profile,a.profile,o.profile,s.profile]}}},78:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(165),o=n(166),r=n(167),i=n(168),s=n(169);const c={baidu:a.auth,caiyun:o.auth,sogou:r.auth,tencent:i.auth,youdaotrans:s.auth};var l=n(2);const d=browser.i18n.getUILanguage(),u="zh-CN"===d?"zh-CN":"zh-TW"===d||"zh-HK"===d?"zh-TW":"en",h=function(){return{version:14,active:!0,runInBg:!1,analytics:!0,updateCheck:!0,noTypeField:!1,animation:!0,langCode:u,panelWidth:450,panelMaxHeightRatio:80,bowlOffsetX:15,bowlOffsetY:-45,darkMode:!1,panelCSS:"",fontSize:13,pdfSniff:!1,pdfStandalone:"",pdfWhitelist:[],pdfBlacklist:[["^(http|https)://[^/]*?cnki\\.net(/.*)?$","*://*.cnki.net/*"],["^(http|https)://[^/]*?googleusercontent\\.com(/.*)?$","*://*.googleusercontent.com/*"],["^(http|https)://sh-download\\.weiyun\\.com(/.*)?$","*://sh-download.weiyun.com/*"]],searchHistory:!1,searchHistoryInco:!1,editOnFav:!0,searchSuggests:!0,touchMode:!1,mode:{icon:!0,direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},pinMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},panelMode:{direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},qsPanelMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!0,meta:!1},instant:{enable:!1,key:"alt",delay:600}},bowlHover:!0,doubleClickDelay:450,tripleCtrl:!0,qsPreload:"clipboard",qsAuto:!0,qsLocation:"CENTER",qsFocus:!0,defaultPinned:!1,qsStandalone:!0,qssaHeight:600,qssaSidebar:"",qssaPageSel:!0,qssaRectMemo:!1,baWidth:-1,baHeight:550,baPreload:"selection",baAuto:!1,baOpen:"popup_panel",ctxTrans:{google:!0,youdaotrans:!0,baidu:!0,tencent:!1,caiyun:!1,sogou:!1},language:{chinese:!0,english:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},autopron:{cn:{dict:"",list:["zdic","guoyu"]},en:{dict:"",list:["bing","cambridge","cobuild","eudic","longman","macmillan","lexico","urban","websterlearner","youdao"],accent:"uk"},machine:{dict:"",list:["google","sogou","tencent","baidu","caiyun"],src:"trans"}},whitelist:[],blacklist:[["^https://stackedit\\.io(/.*)?$","https://stackedit.io/*"],["^https://docs\\.google\\.com(/.*)?$","https://docs.google.com/*"],["^https://docs\\.qq\\.com(/.*)?$","https://docs.qq.com/*"]],contextMenus:{selected:l.c||!u.startsWith("zh-")?["view_as_pdf","google_translate","saladict"]:["view_as_pdf","caiyuntrs","google_translate","saladict"],all:{baidu_page_translate:"x",baidu_search:"https://www.baidu.com/s?ie=utf-8&wd=%s",bing_dict:"https://cn.bing.com/dict/?q=%s",bing_search:"https://www.bing.com/search?q=%s",caiyuntrs:"x",cambridge:"http://dictionary.cambridge.org/spellcheck/english-chinese-simplified/?q=%s",copy_pdf_url:"x",dictcn:"https://dict.eudic.net/dicts/en/%s",etymonline:"http://www.etymonline.com/index.php?search=%s",google_cn_page_translate:"x",google_page_translate:"x",google_search:"https://www.google.com/#newwindow=1&q=%s",google_translate:"https://translate.google.com/#auto/zh-CN/%s",google_cn_translate:"https://translate.google.cn/#auto/zh-CN/%s",guoyu:"https://www.moedict.tw/%s",iciba:"http://www.iciba.com/%s",liangan:"https://www.moedict.tw/~%s",longman_business:"http://www.ldoceonline.com/search/?q=%s",merriam_webster:"http://www.merriam-webster.com/dictionary/%s",microsoft_page_translate:"x",oxford:"http://www.oxforddictionaries.com/us/definition/english/%s",saladict:"x",saladict_standalone:"x",sogou_page_translate:"x",sogou:"https://fanyi.sogou.com/#auto/zh-CHS/%s",termonline:"https://www.termonline.cn/list.htm?k=%s",view_as_pdf:"x",youdao_page_translate:"x",youdao:"http://dict.youdao.com/w/%s",youglish:"https://youglish.com/search/%s"}},showedDictAuth:!1,dictAuth:JSON.parse(JSON.stringify(c))}}},80:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var a=n(1),o=n(2);async function r(e,t){try{const n=await a.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:e,payload:{isPDF:Object(o.i)()}}});return n&&n.result&&n.result.trans&&n.result.trans.paragraphs.join("\n")||""}catch(e){return""}}async function i(e,t){return(await Promise.all(Object.keys(t).map(async n=>{let a="";if(t[n])try{a=await r(e,n)}catch(e){console.warn(e)}return{id:n,content:a}}))).reduce((e,{id:t,content:n})=>(e[t]=n,e),{})}function s(e){const t=/\[:: (\w+) ::\]\n([\s\S]+?)(?=(?:\[:: \w+ ::\])|(?:-{15}))/g;let n;const a={};for(;null!==(n=t.exec(e));)a[n[1]]=n[2].replace(/\n+$/g,"");return a}function c(e,t){const n=Object.keys(t).filter(e=>t[e]);if(n.length<=0)return e;const a=n.map(e=>`[:: ${e} ::]\n`+t[e]).join("\n\n")+`\n${"".padEnd(15,"-")}\n`;if(!e)return a;const o=/\[:: (\w+) ::\]\n([\s\S]+?)-{15}/;return o.test(e)?e.replace(o,a):e+"\n\n"+a}},81:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var a=n(17);const o={baidu:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{},{}),bing:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{tense:!0,phsym:!0,cdef:!0,related:!0,sentence:4}},caiyun:Object(a.b)(["zh-CN","en","ja"],{lang:"11010000"},{},{}),cambridge:{lang:"11100000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{lang:"default",related:!0},options_sel:{lang:["default","en","en-chs","en-chz"]}},cnki:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:100},options:{dict:!0,senbi:!0,seneng:!0}},cobuild:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:5},options:{cibaFirst:(browser.i18n.getUILanguage()||"en").startsWith("zh-")}},etymonline:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{resultnum:4,chart:!0}},eudic:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:10}},google:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{cnfirst:!0,concurrent:!1},{}),googledict:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{enresult:!0}},guoyu:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!0}},hjdict:{lang:"10011111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:10},options:{related:!0,chsas:"jp/jc",engas:"w",uas:"fr",aas:"fr",eas:"fr"},options_sel:{chsas:["jp/cj","jp/jc","kr","w","fr","de","es"],engas:["w","fr","de","es"],uas:["fr","de","es"],aas:["fr","de"],eas:["fr","es"]}},jikipedia:{lang:"01000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:380,selectionWC:{min:1,max:5},options:{resultnum:4}},jukuu:{lang:"11010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:99999},options:{lang:"zheng"},options_sel:{lang:["zheng","engjp","zhjp"]}},lexico:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{related:!0}},liangan:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!1}},longman:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{wordfams:!1,collocations:!0,grammar:!0,thesaurus:!0,examples:!0,bussinessFirst:!0,related:!0}},macmillan:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:5},options:{related:!0,locale:"uk"},options_sel:{locale:["uk","us"]}},mojidict:{lang:"10010000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5}},naver:{lang:"01011000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!0,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:10},options:{hanAsJa:!1,korAsJa:!1}},renren:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},sogou:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru"],{},{},{}),tencent:Object(a.b)(["zh-CN","en","ja","ko","fr","de","es","ru"],{lang:"11011111"},{},{}),urban:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},vocabulary:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5}},weblio:{lang:"00010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:20}},weblioejje:{lang:"10010000",selectionLang:{english:!0,chinese:!1,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},websterlearner:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{defs:!0,phrase:!0,derived:!0,arts:!0,related:!0}},wikipedia:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:420,selectionWC:{min:1,max:999999999999999},options:{lang:"auto"},options_sel:{lang:["auto","zh","zh-cn","zh-tw","zh-hk","en","ja","fr","de"]}},youdao:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:999999999999999},options:{basic:!0,collins:!0,discrimination:!0,sentence:!0,translation:!1,related:!0}},youdaotrans:Object(a.b)(["zh-CN","en","pt","es","ja","ko","fr","ru"],{lang:"11011111"},{},{}),zdic:{lang:"01000000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:5},options:{audio:!1}}},r=()=>JSON.parse(JSON.stringify(o))},87:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return b}));var a=n(38),o=n(10),r=n(108),i=n(180),s=n(371),c=n(145),l=n(499),d=n(83),u=n(96),h=n(64);function p(e){return e.pipe(Object(a.a)(e=>!(e.relatedTarget===e.currentTarget||e.relatedTarget instanceof Node&&e.currentTarget.contains(e.relatedTarget))),Object(o.a)(e=>"mouseover"===e.type))}function g(e){return p(e).pipe(Object(r.a)(e=>Object(u.a)(e).pipe(Object(i.a)(e?500:100))))}function f(e){return e.pipe(Object(o.a)(e=>"blur"!==e.type),Object(s.a)(100))}function m(e,t){return n=>n.pipe(Object(c.a)(o=>Object(h.a)(t(o)).pipe(Object(l.a)(n.pipe(Object(a.a)(t=>t[e]===o[e]))))))}function b(e){return Object(d.a)(!0)(e)}},9:function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return g})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return m}));var a=n(0),o=n.n(a),r=n(134),i=n.n(r),s=n(12),c=n(29),l=n(217),d=n.n(l);async function u(){if(s.a.language)return s.a;const{langCode:e}=await Object(c.c)();return await s.a.use({type:"backend",init:()=>{},create:()=>{},read:async(e,t,a)=>{try{if("dicts"===t){const t=function(e){const t=n(260);return t.keys().reduce((n,a)=>{const o=t(a),r=o.locales||o,s=/([^/]+)\/_locales\.(json|ts)$/.exec(a)[1];return n[s]={name:r.name[e]},r.options&&(n[s].options=i()(r.options,t=>t[e])),r.helps&&(n[s].helps=i()(r.helps,t=>t[e])),n},{})}(e);return a(null,t),t}if("sync"===t){const t=function(e){const t=n(294);return t.keys().reduce((n,a)=>{const o=new RegExp(`/([^/]+)/_locales/${e}\\.ts$`).exec(a);if(o){const e=t(a);n[o[1]]=e.locale||e}return n},{})}(e);return a(null,t),t}const{locale:o}=await n(259)(`./${e}/${t}.ts`);return a(null,o),o}catch(e){a(e)}}}).init({lng:e,fallbackLng:!1,whitelist:["en","zh-CN","zh-TW"],debug:!1,saveMissing:!1,load:"currentOnly",ns:"common",defaultNS:"common",interpolation:{escapeValue:!1}}),Object(c.a)(({newConfig:e})=>{s.a.language!==e.langCode&&s.a.changeLanguage(e.langCode)}),s.a}const h=()=>"",p=o.a.createContext(void 0);const g=({children:e})=>{const[t,n]=Object(a.useState)(void 0);return Object(a.useLayoutEffect)(()=>{const e=()=>{n(s.a.language)};return s.a.language||u().then(()=>{n(s.a.language),s.a.on("languageChanged",e)}),()=>{s.a.off("languageChanged",e)}},[]),o.a.createElement(p.Provider,{value:t},e)};function f(e){const t=Object(a.useRef)(0),n=Object(a.useRef)(h),o=Object(a.useRef)((...e)=>n.current(...e)),r=Object(a.useContext)(p),i=(e,a)=>{e&&(n.current=e),a&&(t.current=(t.current+1)%1e5);return{t:o.current,i18n:s.a,ready:!!a&&t.current}},[c,l]=Object(a.useState)(()=>r?e?(Array.isArray(e)?e.every(e=>s.a.hasResourceBundle(r,e)):s.a.hasResourceBundle(r,e))?i(s.a.getFixedT(r,e),!0):i(h,!1):i(s.a.t,!0):i(h,!1));return Object(a.useLayoutEffect)(()=>{let t=!0;return r&&(e?(Array.isArray(e)?e.every(e=>s.a.hasResourceBundle(r,e)):s.a.hasResourceBundle(r,e))?l(i(s.a.getFixedT(r,e),!0)):(l(i(null,!1)),s.a.loadNamespaces(e).then(()=>{t&&l(i(s.a.getFixedT(r,e),!0))})):l(i(s.a.t,!0))),()=>{t=!1}},[r]),c}const m=o.a.memo(({message:e,children:t})=>e?o.a.createElement(a.Fragment,null,d()(e.split(/{[^}]*?}/),Array.isArray(t)?t:[t])):null)},990:function(e,t,n){e.exports=n(991)},991:function(e,t,n){"use strict";n.r(t);var a=n(0),o=n.n(a),r=n(20),i=n.n(r),s=n(22),c=n(494),l=n(493),d=n(495),u=n(63),h=n(9);n(994);window.parent!==window||window.__SALADICT_PANEL_LOADED__||(window.__SALADICT_PANEL_LOADED__=!0,async function(){const e=await Object(u.a)(),t=()=>o.a.createElement(s.a,{store:e},o.a.createElement(h.b,null,o.a.createElement(c.a,null),o.a.createElement(l.a,null),o.a.createElement(d.a,null)));i.a.render(o.a.createElement(t,null),document.createElement("div"))}())},994:function(e,t,n){}},[[990,0,1,18]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/content.22e28abb.js b/plugins/saladict-ztools/ext-saladic/assets/content.22e28abb.js new file mode 100644 index 00000000..54cbcc55 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/content.22e28abb.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[10],{1:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p}));var a=n(81),o=n(39),r=n(10);const i=()=>{},s=new WeakMap,c=new WeakMap,l=new WeakMap,d={sync:{clear:h,remove:g,get:f,set:m,addListener:b,removeListener:x,createStream:w,get __storageArea__(){return"sync"}},local:{clear:h,remove:g,get:f,set:m,addListener:b,removeListener:x,createStream:w,get __storageArea__(){return"local"}},clear:h,addListener:b,removeListener:x,createStream:w,get __storageArea__(){return"all"}},u={send:E,addListener:I,removeListener:O,createStream:j,get __self__(){return!1},self:{initClient:N,initServer:function(){window.pageId="background page";const e=/^\[\[(.+)\]\]$/;browser.runtime.onMessage.addListener((t,n)=>{if(!t||!t.type)return;if("PAGE_INFO"===t.type)return Promise.resolve(function(e){const t={pageId:"",faviconURL:"",pageTitle:"",pageURL:""},n=e.tab;n?(t.pageId=n.id||"",n.favIconUrl&&(t.faviconURL=n.favIconUrl),n.url&&(t.pageURL=n.url),n.title&&(t.pageTitle=n.title)):(t.pageId="popup",e.url&&!e.url.startsWith("http")&&(t.faviconURL="https://saladict.crimx.com/favicon.ico"));return t}(n));const a=e.exec(t.type);if(a){t.type=a[1];const e=n.tab&&n.tab.id;return e?E(e,t):E(t)}})},send:async function e(t){const n=y("message.self.send",e);try{return void 0===window.pageId&&await N(),browser.runtime.sendMessage(Object.assign({},t,{__pageId__:window.pageId,type:`[[${t.type}]]`})).then(e=>C("message.self.send",[t],e,n)).catch(e=>{throw M("message.self.send",[t],e,n)})}catch(e){throw M("message.self.send",[t],e,n)}},addListener:I,removeListener:O,createStream:j,get __self__(){return!0}}};async function p(e,t){const n="string"==typeof e?{url:e,self:t}:e,a=!1!==n.unique,o=n.self?browser.runtime.getURL(n.url):n.url;if(a){const e=await browser.tabs.query({url:o}).catch(()=>[]);if(e.length>0){const{index:t,windowId:n}=e[0];return"function"==typeof browser.tabs.highlight&&await browser.tabs.highlight({tabs:t,windowId:n}),void await browser.windows.update(n,{focused:!0})}}await browser.tabs.create({url:o,active:!1!==n.active})}function h(){return"all"===this.__storageArea__?Promise.all([browser.storage.local.clear(),browser.storage.sync.clear()]).then(i):browser.storage[this.__storageArea__].clear()}function g(e){return browser.storage[this.__storageArea__].remove(e)}function f(...e){return browser.storage[this.__storageArea__].get(...e)}function m(e){return browser.storage[this.__storageArea__].set(e)}function b(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}let a=l.get(n);a||(a=new Map,l.set(n,a));const o=this.__storageArea__+t;let r=a.get(o);return r||(r=(e,a)=>{"all"!==this.__storageArea__&&a!==this.__storageArea__||t&&!(t in e)||n(e,a)},a.set(o,r)),browser.storage.onChanged.addListener(r)}function x(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}const a=l.get(n);if(a){if(!t)return a.forEach(e=>{browser.storage.onChanged.removeListener(e)}),void l.delete(n);{const e=this.__storageArea__+t,o=a.get(e);if(o)return browser.storage.onChanged.removeListener(o),a.delete(e),void(a.size<=0&&l.delete(n))}}browser.storage.onChanged.removeListener(n)}function w(e){if(!e)throw new Error("Missing key");return Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)).pipe(Object(o.a)(t=>Object.prototype.hasOwnProperty.call(Array.isArray(t)?t[0]:t,e)),Object(r.a)(t=>Array.isArray(t)?t[0][e]:t[e]))}function y(e,t){const n=new Error(`[${e}] call stack`),a=Error.captureStackTrace;return a&&a(n,t),n}function M(e,t,n,a){const o=n&&"object"==typeof n&&n.runtimeLastError instanceof Error?n.runtimeLastError:n instanceof Error?n:new Error(String(n||"Unknown error")),r=1===t.length?t[0]:t[1],i=1===t.length?"runtime":"tab "+t[0],s=new Error(`[${e}] runtime.lastError while sending "${r.type}" to ${i}: ${o.message}`);return s.name="MessageRuntimeError",s.cause=o,s.runtimeLastError=o,s.callContext=a,s.stack=[`${s.name}: ${s.message}`,"","Runtime error stack:",o.stack||o.message,"","Message call stack:",a.stack||a.message].join("\n"),s}function C(e,t,n,a){if("PAGE_INFO"===(1===t.length?t[0]:t[1]).type){const o=n;if(!o||"object"!=typeof o||null==o.pageId)throw M(e,t,new Error('Invalid response for "PAGE_INFO": expected an object with pageId, received '+String(n)),a)}return n}function E(...e){const t=y("message.send",E);return(1===e.length?browser.runtime.sendMessage(e[0]):browser.tabs.sendMessage(e[0],e[1])).then(n=>C("message.send",e,n,t)).catch(n=>{throw M("message.send",e,n,t)})}function I(...e){this.__self__&&void 0===window.pageId&&N().catch(console.error);const t=this.__self__?c:s,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1];let o=t.get(a);o||(o=new Map,t.set(a,o));let r=o.get(n||"__DEFAULT_MSGTYPE__");return r||(r=(e,t)=>{if(e&&(this.__self__?window.pageId===e.__pageId__:!e.__pageId__)&&(null==n||e.type===n))return a(e,t)},o.set(n||"__DEFAULT_MSGTYPE__",r)),browser.runtime.onMessage.addListener(r)}function O(...e){const t=this.__self__?c:s,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1],o=t.get(a);if(o){if(!n)return o.forEach(e=>browser.runtime.onMessage.removeListener(e)),void t.delete(a);{const e=o.get(n);if(e)return browser.runtime.onMessage.removeListener(e),o.delete(n),void(o.size<=0&&t.delete(a))}}browser.runtime.onMessage.removeListener(a)}function j(e){return(e?Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)):Object(a.a)(e=>this.addListener(e),e=>this.removeListener(e))).pipe(Object(r.a)(e=>Array.isArray(e)?e[0]:e))}function N(){return void 0===window.pageId?u.send({type:"PAGE_INFO"}).then(e=>{const{pageId:t,faviconURL:n,pageTitle:a,pageURL:o}=e;return window.pageId=t,window.faviconURL=n,a&&(window.pageTitle=a),o&&(window.pageURL=o),t}):Promise.resolve(window.pageId)}},1033:function(e,t,n){e.exports=n(1034)},1034:function(e,t,n){"use strict";n.r(t);var a=n(0),o=n.n(a),r=n(21),i=n.n(r),s=n(23),c=n(555),l=n(554),d=n(556),u=n(71),p=n(9);n(1037);window.parent!==window||window.__SALADICT_PANEL_LOADED__||(window.__SALADICT_PANEL_LOADED__=!0,async function(){const e=await Object(u.a)(),t=()=>o.a.createElement(s.a,{store:e},o.a.createElement(p.b,null,o.a.createElement(c.a,null),o.a.createElement(l.a,null),o.a.createElement(d.a,null)));i.a.render(o.a.createElement(t,null),document.createElement("div"))}())},1037:function(e,t,n){},107:function(e,t,n){"use strict";function a(){return Date.now().toString().slice(6)+Math.random().toString().slice(2,8)}n.d(t,"a",(function(){return a}))},11:function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(1);function o(e){return e?{date:e.date||Date.now(),text:e.text||"",context:e.context||"",title:e.title||"",url:e.url||"",favicon:e.favicon||"",trans:e.trans||"",note:e.note||""}:{date:Date.now(),text:"",context:"",title:"",url:"",favicon:"",trans:"",note:""}}function r(e){return a.a.send({type:"IS_IN_NOTEBOOK",payload:e}).catch((t=!1,e=>t));var t}async function i(e,t){await a.a.send({type:"SAVE_WORD",payload:{area:e,word:t}})}async function s(e,t){await a.a.send({type:"SYNC_SERVICE_DOWNLOAD"}),await a.a.send({type:"DELETE_WORDS",payload:{area:e,dates:t}})}function c(e,t){return a.a.send({type:"GET_WORDS_BY_TEXT",payload:{area:e,text:t}})}function l(e,t){return a.a.send({type:"GET_WORDS",payload:{area:e,...t}})}},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i}));var a=n(20);async function o(e,t,{options:n,options_sel:o},r,i){("none"===n.keepLF||"pdf"===n.keepLF&&!i.isPDF||"webpage"===n.keepLF&&i.isPDF)&&(t=t.replace(/\n+/g," "));let s=i.sl;s||(Object(a.g)(t)?s="ja":Object(a.h)(t)&&(s="ko")),s||(s=await e.detect(t));let c="";return i.tl?c=i.tl:"default"===n.tl?o.tl.includes(r.langCode)&&(c=r.langCode):c=n.tl,c||(c=o.tl.find(e=>"default"!==e)||"en"),s===c&&(i.tl?i.sl||(s="auto"):c="default"===n.tl2?c!==r.langCode?r.langCode:"en"!==c?"en":o.tl.find(e=>"default"!==e&&e!==c)||"en":n.tl2),{sl:s,tl:c,text:t}}function r(e,t,n,a){return{lang:"11111111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:320,selectionWC:{min:1,max:999999999999999},...t,options:{keepLF:"webpage",slInitial:"collapse",tl:"default",tl2:"default",...n},options_sel:{keepLF:["none","all","webpage","pdf"],slInitial:["collapse","hide","full"],tl:["default",...e],tl2:["default",...e],...a}}}function i(e,t){const n=[{value:"auto",label:"%t(content:machineTrans.auto)"}];for(const e of t)n.push({value:e,label:`${e} %t(langcode:${e})`});const a=[{key:"sl",value:e.result.sl,title:"%t(content:machineTrans.sl)",options:n},{key:"tl",value:e.result.tl,title:"%t(content:machineTrans.tl)",options:n},{key:"copySrc",value:"copySrc",label:"%t(content:machineTrans.copySrc)"},{key:"copyTrans",value:"copyTrans",label:"%t(content:machineTrans.copyTrans)"}];return"hide"===e.result.slInitial&&a.push({key:"showSl",value:"",label:"%t(content:machineTrans.showSl)"}),{...e,catalog:a}}},138:function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return f}));var a=n(0),o=n.n(a),r=n(94),i=n(125),s=n(30),c=n(256),l=n(136),d=n(112),u=n(92),p=n(140),h=n(21);const g=o.a.createContext({current:null}),f=e=>{const t=Object(a.useContext)(g),n=Object(a.useRef)(null),f=Object(a.useRef)(null),[m,b]=Object(i.a)(u.c),[x,w]=Object(i.a)(u.d),[y,M]=Object(i.a)(u.b),[C,E]=Object(i.a)(u.a),[I,O]=Object(i.a)(s.b),j=Object(c.a)(Object(l.a)(()=>Object(d.a)(b,w)),!1),N=Object(c.a)(Object(l.a)(()=>Object(d.a)(M,E,O)),!1),v=j||N,[A,D]=Object(a.useState)(()=>null==e.left?{top:null==e.top?40:e.top,left:"50%",transform:"translateX(-50%)"}:{top:null==e.top?40:e.top,left:e.left});return o.a.createElement("div",{className:"hoverBox-Container",ref:n},o.a.createElement(e.Button,{onKeyDown:e=>{switch(e.key){case"ArrowDown":if(e.preventDefault(),e.stopPropagation(),v){if(f.current){const e=f.current.firstElementChild;e&&e.focus()}}else I(!0);break;case"Tab":if(!e.shiftKey&&v&&f.current){e.preventDefault(),e.stopPropagation();const t=f.current.firstElementChild;t&&t.focus()}}},onMouseOver:m,onMouseOut:m,onClick:()=>{e.onBtnClick&&!1===e.onBtnClick()||x()}}),o.a.createElement(r.a,{classNames:"csst-hoverBox",in:v,timeout:100,mountOnEnter:!0,unmountOnExit:!0,onEnter:()=>{if(t.current&&n.current){const a=t.current.getBoundingClientRect(),o=n.current.getBoundingClientRect();D({top:o.y-a.y+(null==e.top?40:e.top),left:o.x-a.x+(null==e.left?-Math.floor(o.width/2):e.left)})}},onExited:()=>e.onHeightChanged&&e.onHeightChanged(0)},()=>{const a=o.a.createElement("div",{className:"hoverBox-FloatBox",style:A},o.a.createElement(p.a,{ref:f,compact:e.compact,list:e.items,onFocus:C,onBlur:C,onMouseOver:y,onMouseOut:y,onArrowUpFirst:e=>e.lastElementChild.focus(),onArrowDownLast:e=>e.firstElementChild.focus(),onSelect:e.onSelect,onHeightChanged:e.onHeightChanged,onClose:()=>I(!1)}));return t.current&&n.current?Object(h.createPortal)(a,t.current):a}))}},140:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),o=n.n(a),r=n(189),i=n(5),s=n.n(i);const c=o.a.forwardRef((e,t)=>{const[n,i]=Object(a.useState)(0),[c,l]=Object(a.useState)(0),d=Object(a.useCallback)((t,a)=>{l(t),i(a),e.onHeightChanged&&a!==n&&e.onHeightChanged(a)},[e.onHeightChanged]);return o.a.createElement("div",{className:s()("floatBox-Container",{"floatBox-compact":e.compact}),style:{width:c,height:n},onMouseOver:e.onMouseOver,onMouseOut:e.onMouseOut},o.a.createElement("div",{className:"floatBox-Measure"},o.a.createElement(r.ResizeReporter,{reportInit:!0,onSizeChanged:d}),e.list?o.a.createElement("div",{key:"box",ref:t,className:"floatBox"},e.list.map((function(t){if(t.options)return o.a.createElement("select",{key:t.key,className:"floatBox-Item floatBox-Select","data-key":t.key,defaultValue:t.value,onFocus:e.onFocus,onBlur:e.onBlur,onChange:u},t.title&&o.a.createElement("option",{disabled:!0},t.title),t.options.map(e=>o.a.createElement("option",{key:e.value,value:e.value},e.label)));return o.a.createElement("button",{key:t.key,className:"floatBox-Item floatBox-Btn","data-key":t.key,"data-value":t.value,onFocus:e.onFocus,onBlur:e.onBlur,onClick:p,onKeyDown:h},t.label)}))):o.a.createElement("div",{key:"loading",className:"lds-ellipsis"},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))));function u(t){if(e.onSelect){const{dataset:{key:n},value:a}=t.currentTarget;e.onSelect(n,a)}}function p(t){if(e.onSelect){const{key:n,value:a}=t.currentTarget.dataset;e.onSelect(n,a)}}function h(t){if("ArrowDown"===t.key){t.preventDefault(),t.stopPropagation();const n=t.currentTarget.nextSibling;n?n.focus():e.onArrowDownLast&&e.onArrowDownLast(t.currentTarget.parentElement)}else if("ArrowUp"===t.key){t.preventDefault(),t.stopPropagation();const n=t.currentTarget.previousSibling;n?n.focus():e.onArrowUpFirst&&e.onArrowUpFirst(t.currentTarget.parentElement)}else"Escape"===t.key&&(t.preventDefault(),t.stopPropagation(),e.onClose&&e.onClose(t.currentTarget.parentElement))}})},146:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(1);async function o(e,t){try{return await a.a.send(e,t)}catch(e){if(function(e){const t=e&&"object"==typeof e&&e.runtimeLastError instanceof Error?e.runtimeLastError:e instanceof Error?e:null;return!(!t||!/Could not establish connection|Receiving end does not exist/.test(t.message))}(e))return;throw e}}},147:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return p}));var a=n(0),o=n.n(a),r=n(21),i=n.n(r),s=n(94),c=n(223),l=n(2);const d={enter:400,exit:100,appear:400},u={all:"initial"},p=e=>{const{id:t,head:n,shadowRootClassName:r,innerRootClassName:p,panelCSS:h,onEnter:g,onExited:f,...m}=e,b=Object(a.useMemo)(()=>{let e=document.getElementById(t);return e||(e=document.createElement("div"),e.id=t,e.className="saladict-div "+(r||l.a)),e},[r]);return Object(a.useEffect)(()=>()=>{b.parentNode&&b.remove()},[]),i.a.createPortal(o.a.createElement(c.a.div,{className:r||l.a},o.a.createElement("div",{className:p,style:u},n,h?o.a.createElement("style",null,h):null,o.a.createElement(s.a,{classNames:"shadowPortal",mountOnEnter:!0,unmountOnExit:!0,appear:!0,timeout:d,...m,onEnter:(...e)=>{if(b.parentNode||document.documentElement.appendChild(b),g)return g(...e)},onExited:(...e)=>{if(b.parentNode&&b.remove(),f)return f(...e)}}))),b)};t.b=p},165:function(e,t,n){"use strict";n.d(t,"b",(function(){return b}));var a=n(83),o=n(87),r=n(77),i=n.n(r),s=n(96),c=n.n(s),l=n(108),d=n.n(l),u=n(63),p=n.n(u),h=n(22),g=n.n(h),f=n(27),m=n.n(f);function b(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.a)();let r=e.version;return r<13&&(e.showedDictAuth=!0),r<=9&&(r=10,["mode","pinMode","panelMode","qsPanelMode"].forEach(t=>{n[t].holding.shift=!1,n[t].holding.ctrl=!!e[t].ctrl,n[t].holding.meta=!!e[t].ctrl,delete e[t].ctrl})),s("tripleCtrlPreload","qsPreload"),s("tripleCtrlAuto","qsAuto"),s("tripleCtrlLocation","qsLocation"),s("tripleCtrlStandalone","qsStandalone"),s("tripleCtrlHeight","qssaHeight"),s("tripleCtrlSidebar","qssaSidebar"),s("tripleCtrlPageSel","qssaPageSel"),Object.keys(n).forEach(t=>{switch(t){case"langCode":f("langCode",e=>/^(zh-CN|zh-TW|en)$/.test(e));break;case"pdfWhitelist":case"pdfBlacklist":case"whitelist":case"blacklist":f(t,e=>Array.isArray(e));break;case"searhHistory":case"searchHistory":n.searchHistory=e[t];break;case"searhHistoryInco":case"searchHistoryInco":n.searchHistoryInco=e[t];break;case"mode":case"pinMode":case"panelMode":case"qsPanelMode":"mode"===t&&h("mode.icon"),h(t+".direct"),h(t+".double"),h(t+".holding.alt"),h(t+".holding.shift"),h(t+".holding.ctrl"),h(t+".holding.meta"),h(t+".instant.enable"),f(t+".instant.key",e=>/^(direct|ctrl|alt|shift)$/.test(e)),l(t+".instant.delay");break;case"qsPreload":f("qsPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"qsLocation":f("qsLocation",e=>"CENTER"===e||"TOP"===e||"RIGHT"===e||"BOTTOM"===e||"LEFT"===e||"TOP_LEFT"===e||"TOP_RIGHT"===e||"BOTTOM_LEFT"===e||"BOTTOM_RIGHT"===e);break;case"baPreload":f("baPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"ctxTrans":i()(n.ctxTrans,(e,t)=>{h("ctxTrans."+t)});break;case"language":i()(n.language,(e,t)=>{h("language."+t)});break;case"autopron":f("autopron.cn.dict",e=>o.a[e]),f("autopron.en.dict",e=>o.a[e]),f("autopron.en.accent",e=>"us"===e||"uk"===e),f("autopron.machine.dict",e=>o.a[e]),f("autopron.machine.src",e=>"trans"===e||"searchText"===e);break;case"contextMenus":i()(e.contextMenus.all,(e,t)=>{"string"==typeof e?n.contextMenus.all[t]&&u("contextMenus.all."+t):(u(`contextMenus.all.${t}.name`),u(`contextMenus.all.${t}.url`))}),function(t){const a=g()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)m()(n,[t,"selected"],[]);else{const e=g()(n,[t,"all"]),o=a.filter(t=>e[t]);o.length>0&&m()(n,[t,"selected"],o)}}("contextMenus");break;case"dictAuth":f("dictAuth",Boolean);break;default:switch(typeof n[t]){case"string":u(t);break;case"boolean":h(t);break;case"number":l(t);break;default:console.error(new Error(`merge config: missing handler for '${t}'`))}}}),r=e.version,r<=10&&(r=11,n.contextMenus.selected.unshift("view_as_pdf")),r<=11&&(r=12,n.blacklist.push(["^https://stackedit.io(/.*)?$","https://stackedit.io/*"])),!1===e.language.minor&&(n.language.japanese=!1,n.language.korean=!1,n.language.french=!1,n.language.spanish=!1,n.language.deutsch=!1),n.panelMaxHeightRatio<1&&(n.panelMaxHeightRatio=Math.round(100*n.panelMaxHeightRatio)),n;function s(t,n){!Object.prototype.hasOwnProperty.call(e,n)&&Object.prototype.hasOwnProperty.call(e,t)&&(e[n]=e[t])}function l(e){return f(e,c.a)}function u(e){return f(e,d.a)}function h(e){return f(e,p.a)}function f(t,a){const o=g()(e,t);a(o)&&m()(n,t,o)}}t.a=b},166:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=Object.keys},171:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appid:"",key:""},o="http://api.fanyi.baidu.com/api/trans/product/prodinfo"},172:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={token:""},o="https://fanyi.caiyunapp.com/#/api"},173:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={pid:"",key:""},o="https://deepi.sogou.com/?from=translatepc"},174:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={secretId:"",secretKey:""},o="https://curl.qcloud.com/imsowZzT"},175:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appKey:"",key:""},o="http://ai.youdao.com/gw.s"},179:function(e,t,n){"use strict";n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return v}));var a=n(124),o=n(112),r=n(57),i=n(159),s=n(39),c=n(10),l=n(88),d=n(134),u=n(561),p=n(562),h=n(187),g=n(182),f=n(121),m=n(508),b=n(563),x=n(125),w=n(136),y=n(30),M=n(190),C=n(2),E=n(44),I=n(20),O=n(43),j=n(38);function N(e){return e?e.touchMode?function(e){const t=Object(o.a)(Object(r.a)(window,"mousedown",{capture:!0}).pipe(Object(s.a)(e=>0===e.button)),Object(r.a)(window,"touchstart",{capture:!0}).pipe(Object(c.a)(e=>e.changedTouches[0]))),n=Object(o.a)(Object(r.a)(window,"mouseup",{capture:!0}).pipe(Object(s.a)(e=>0===e.button)),Object(r.a)(window,"touchend",{capture:!0}).pipe(Object(c.a)(e=>e.changedTouches[0]))),a=A(n,e.doubleClickDelay),h=Object(o.a)(Object(l.a)(!0)(t),Object(l.a)(!1)(n),Object(l.a)(!1)(Object(r.a)(window,"mouseout",{capture:!0})),Object(l.a)(!1)(Object(r.a)(window,"blur",{capture:!0})));return Object(r.a)(document,"selectionchange").pipe(Object(d.a)(h),Object(u.a)(([,e])=>e?n:Object(i.a)(400)),Object(c.a)(([,e])=>[window.getSelection(),e]),Object(s.a)(e=>!!e[0]&&!Object(C.f)(e[0].anchorNode)),Object(d.a)(n,t,a),Object(c.a)(([[t,n],a,o,r])=>{const i=Object(C.e)(t.anchorNode||o.target);if(e.noTypeField&&Object(O.d)(n?o.target:t.anchorNode))return{self:i};const s=Object(E.d)(t);if(!Object(I.a)(e.language,s))return{self:i};if(n)return{word:{text:s,context:Object(E.b)(t)},self:i,dbClick:r>=2,mouseX:a.clientX,mouseY:a.clientY,altKey:!!a.altKey,shiftKey:!!a.shiftKey,ctrlKey:!!a.ctrlKey,metaKey:!!a.metaKey};if(t.rangeCount<=0)return{self:i};const c=t.getRangeAt(0).getBoundingClientRect();return 0===c.top&&0===c.left&&0===c.width&&0===c.height?{self:i}:{word:{text:s,context:Object(E.b)(t)},self:i,dbClick:r>=2,mouseX:c.right,mouseY:c.top}}),Object(p.a)(t=>{if(C.d&&t.self&&t.word&&t.word.text){const{direct:n,double:a,holding:o}=e.panelMode;if(n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey)return Object(i.a)(500)}return Object(i.a)(0)}))}(e):function(e){const t=Object(r.a)(window,"mousedown",{capture:!0}).pipe(Object(s.a)(e=>0===e.button)),n=Object(r.a)(window,"mouseup",{capture:!0}).pipe(Object(s.a)(e=>0===e.button)),a=A(n,e.doubleClickDelay);return n.pipe(Object(s.a)(e=>!Object(C.f)(e.target)),Object(h.a)(10),Object(d.a)(t,a),Object(s.a)(([e,t])=>!Object(C.e)(e.target)&&!Object(C.e)(t.target)),Object(c.a)(([t,n,a])=>{if(e.noTypeField&&Object(O.d)(n.target))return{self:!1};const o=window.getSelection(),r=Object(E.d)(o);return Object(I.a)(e.language,r)?{word:{text:r,context:Object(E.b)(o)},self:!1,dbClick:a>=2,mouseX:t.clientX,mouseY:t.clientY,altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey}:{self:!1}}),Object(g.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context))}(e):a.a}function v(e,t,n,a){const[o,r]=Object(x.a)(e=>e.pipe(Object(s.a)(e=>0===e.button))),i=Object(w.a)(y.b,[e,t]),l=Object(w.a)(e=>e.pipe(Object(f.a)(([e])=>A(r,e))),[n]),u=Object(w.a)(()=>r.pipe(Object(d.a)(i),Object(s.a)(([e,[t]])=>{if(t)return!1;for(let t=e.target;t;t=t.parentElement)if(Object(j.a)(t,"a")||Object(j.a)(t,"button"))return!1;return!0}),Object(c.a)(([e,[,t]])=>({mouseup:e.nativeEvent,language:t})),Object(h.a)(10),Object(d.a)(l),Object(c.a)(([{mouseup:e,language:t},n])=>{const a=window.getSelection(),o=Object(E.d)(a);return Object(I.a)(t,o)?{word:{text:o,context:Object(E.b)(a)},dbClick:n>=2,mouseX:e.clientX,mouseY:e.clientY,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,self:!0,instant:!1,force:!1}:{word:null,self:!0,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}}),Object(g.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context)));return Object(M.a)(u,async e=>{e.word&&(e.word=await Object(O.e)(e.word)),a(e)}),o}function A(e,t){return e.pipe(Object(f.a)(()=>Object(i.a)(t).pipe(Object(l.a)(!1),Object(m.a)(!0))),Object(b.a)((e,t)=>t?e+1:0,0))}},185:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(78),o=n(77),r=n.n(o),i=n(96),s=n.n(i),c=n(108),l=n.n(c),d=n(63),u=n.n(d),p=n(22),h=n.n(p),g=n(27),f=n.n(g);function m(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.b)(e.id);return Object.keys(n).forEach(t=>{switch(t){case"dicts":(function(t){const a=h()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)f()(n,[t,"selected"],[]);else{const e=h()(n,[t,"all"]),o=a.map(e=>"olad"===e?"lexico":e).filter(t=>e[t]);o.length>0&&f()(n,[t,"selected"],o)}})("dicts"),r()(n.dicts.all,(t,a)=>{const c=h()(e,`dicts.all.${a}.defaultUnfold`);u()(c)?f()(n,`dicts.all.${a}.defaultUnfold`,{chinese:c,english:c,japanese:c,korean:c,french:c,spanish:c,deutsch:c,others:c}):(i(`dicts.all.${a}.defaultUnfold.chinese`),i(`dicts.all.${a}.defaultUnfold.english`),i(`dicts.all.${a}.defaultUnfold.japanese`),i(`dicts.all.${a}.defaultUnfold.korean`),i(`dicts.all.${a}.defaultUnfold.french`),i(`dicts.all.${a}.defaultUnfold.spanish`),i(`dicts.all.${a}.defaultUnfold.deutsch`),i(`dicts.all.${a}.defaultUnfold.others`));const d=h()(e,`dicts.all.${a}.selectionLang.chs`);u()(d)?f()(n,`dicts.all.${a}.selectionLang.chinese`,d):i(`dicts.all.${a}.selectionLang.chinese`);const p=h()(e,`dicts.all.${a}.selectionLang.eng`);if(u()(p)?f()(n,`dicts.all.${a}.selectionLang.english`,p):i(`dicts.all.${a}.selectionLang.english`),i(`dicts.all.${a}.selectionLang.japanese`),i(`dicts.all.${a}.selectionLang.korean`),i(`dicts.all.${a}.selectionLang.french`),i(`dicts.all.${a}.selectionLang.spanish`),i(`dicts.all.${a}.selectionLang.deutsch`),i(`dicts.all.${a}.selectionLang.others`),o(`dicts.all.${a}.preferredHeight`),o(`dicts.all.${a}.selectionWC.min`),o(`dicts.all.${a}.selectionWC.max`),t.options){if(r()(t.options,(t,r)=>{if(s()(t))o(`dicts.all.${a}.options.${r}`);else if(u()(t))i(`dicts.all.${a}.options.${r}`);else if(l()(t)){const o=h()(e,`dicts.all.${a}.options.${r}`),i=h()(n,`dicts.all.${a}.options_sel.${r}`);f()(n,`dicts.all.${a}.options.${r}`,i.includes(o)?o:t)}}),!s()(e.version)){const e=["baidu","caiyun","google","sogou","tencent","youdaotrans"];e.every(e=>"hide"===h()(n,`dicts.all.${e}.options.slInitial`))&&e.forEach(e=>{f()(n,`dicts.all.${e}.options.slInitial`,"collapse")})}const c=h()(e,`dicts.all.${a}.options.pdfNewline`);u()(c)&&f()(n,`dicts.all.${a}.options.keepLF`,c?"all":"webpage")}});break;default:switch(typeof n[t]){case"string":c(t,l.a);break;case"boolean":i(t);break;case"number":o(t);break;default:console.error(new Error(`merge profile: missing handler for '${t}'`))}}}),"kor"===n.dicts.all.hjdict.options.chsas&&(n.dicts.all.hjdict.options.chsas="kr"),n;function o(e){return c(e,s.a)}function i(e){return c(e,u.a)}function c(t,a){const o=h()(e,t);a(o)&&f()(n,t,o)}}},2:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"g",(function(){return o})),n.d(t,"i",(function(){return r})),n.d(t,"k",(function(){return i})),n.d(t,"j",(function(){return s})),n.d(t,"l",(function(){return c})),n.d(t,"n",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"m",(function(){return g})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return m}));const a=()=>!!window.__SALADICT_BACKGROUND_PAGE__,o=()=>!!window.__SALADICT_INTERNAL_PAGE__,r=()=>!!window.__SALADICT_OPTIONS_PAGE__,i=()=>!!window.__SALADICT_POPUP_PAGE__,s=()=>!!window.__SALADICT_PDF_PAGE__,c=()=>!!window.__SALADICT_QUICK_SEARCH_PAGE__,l=()=>i()||c(),d="saladict-external",u="saladict-panel",p=navigator.userAgent.includes("Firefox"),h=navigator.userAgent.includes("OPR"),g=/apple/i.test(navigator.vendor);function f(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(d))return!0;return!1}function m(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(u))return!0;return!1}},20:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"i",(function(){return p})),n.d(t,"b",(function(){return b})),n.d(t,"j",(function(){return x})),n.d(t,"a",(function(){return w}));var a=n(16);const o=["chinese","english","japanese","korean","french","spanish","deutsch"],r={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},i=e=>r.chinese.test(e),s=e=>r.english.test(e),c=e=>r.japanese.test(e),l=e=>r.korean.test(e),d=e=>r.french.test(e),u=e=>r.deutsch.test(e),p=e=>r.spanish.test(e),h={chinese:Object(a.a)(i),english:Object(a.a)(s),japanese:Object(a.a)(c),korean:Object(a.a)(l),french:Object(a.a)(d),spanish:Object(a.a)(p),deutsch:Object(a.a)(u)},g=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,f=new RegExp(`^(\\d|\\s|${g.source})+$`),m=new RegExp(`${r.chinese.source}|${r.japanese.source}|${r.korean.source}`),b=Object(a.a)(e=>(e.replace(new RegExp(g,"g")," ").replace(new RegExp(m,"g")," x ").match(/\S+/g)||"").length),x=[...o,"others","matchAll"];function w(e,t){if(!t)return!1;if(e.matchAll){if(f.test(t))return!1;if(e.others){const n=[/-|\.|\d|\s/],a=[];for(let t=o.length-1;t>=0;t--){const i=o[t];e[i]?n.push(r[i]):a.push(r[i])}for(let e=0;e<t.length;e++)if(n.every(n=>!n.test(t[e]))&&a.some(n=>n.test(t[e])))return!1;return!0}{const n=o.filter(t=>e[t]).map(e=>r[e]);n.push(/-|\.|\d|\s/);for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!1;return!0}}{if(o.some(n=>e[n]&&h[n](t)))return!0;if(!e.others||f.test(t))return!1;const n=o.filter(t=>!e[t]).map(e=>r[e]);n.push(new RegExp(g.source+"|\\d|\\s"));for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!0;return!1}}},265:function(e,t,n){var a={"./ankiconnect/_locales/en.ts":281,"./ankiconnect/_locales/zh-CN.ts":282,"./ankiconnect/_locales/zh-TW.ts":283,"./eudic/_locales/en.ts":284,"./eudic/_locales/zh-CN.ts":285,"./eudic/_locales/zh-TW.ts":286,"./shanbay/_locales/en.ts":287,"./shanbay/_locales/zh-CN.ts":288,"./shanbay/_locales/zh-TW.ts":289,"./webdav/_locales/en.ts":290,"./webdav/_locales/zh-CN.ts":291,"./webdav/_locales/zh-TW.ts":292};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=265},271:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),o=n.n(a);class r extends o.a.PureComponent{constructor(...e){super(...e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.error?o.a.createElement(this.props.error):null:this.props.children}}},281:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"Cannot connect to Anki Connect. Please make sure Anki is running.",deck:"Deck not found in Anki.",notetype:"Note type not found in Anki.",add:"Failed to add word to Anki."}}},282:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"无法连接 Anki Connect,请确认 Anki 已在运行。",deck:"Anki 中没有找到相应牌组。",notetype:"Anki 中没有找到相应笔记类型。",add:"添加单词到 Anki 失败。"}}},283:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"無法連線 Anki Connect,請確認 Anki 已在執行。",deck:"Anki 中沒有找到相應牌組。",notetype:"Anki 中沒有找到相應筆記型別。",add:"新增單詞到 Anki 失敗。"}}},284:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Eudic Word Syncing",open:"Open",error:{network:"Unable to access the new word book of Eudic, please check the network.",illegal_token:"Please set legal Eudic authorization information.",no_wordbook:"Unable to add to the new word book of European dictionary. Please go to the European official website to generate the default new word book first."}}},285:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"欧路单词同步",open:"打开",error:{network:"无法访问欧路词典生词本,请检查网络。",illegal_token:"请设置合法的欧路词典授权信息",no_wordbook:"无法添加到欧路词典生词本,请先上欧路官网生成默认生词本"}}},286:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"歐路單字同步",open:"開啟",error:{network:"無法訪問歐路詞典生詞本,請檢查網絡。",illegal_token:"請設定合法的歐路詞典授權資訊",no_wordbook:"無法添加到歐路詞典生詞本,請先上歐路官網生成默認生詞本"}}},287:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Shanbay Word Syncing",open:"Open",error:{login:"Shanbay login failed. Click to open shanbay.com.",network:"Unable to access shanbay.com. Please check your network connection.",word:"Unable to add to Shanbay notebook. This word is not in Shanbay's vocabulary database."}}},288:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇贝单词同步",open:"打开",error:{login:"扇贝登录已失效,请点击打开官网重新登录。",network:"无法访问扇贝生词本,请检查网络。",word:"无法添加到扇贝生词本,扇贝单词库没有收录此单词。"}}},289:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇貝單字同步",open:"開啟",error:{login:"扇貝登入已失效,請點選開啟官網重新登入。",network:"無法訪問扇貝生字本,請檢查網路。",word:"無法新增到扇貝生字本,扇貝單字庫沒有收錄此單字。"}}},29:function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return g})),n.d(t,"c",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return x}));var a=n(90),o=n.n(a),r=n(83),i=n(165),s=n(1),c=n(100),l=n(67),d=n(81),u=n(10);function p(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}async function h(){let e=await f();return e=e&&e.version?Object(i.b)(e):Object(r.a)(),await m(e),e}async function g(){const e=Object(r.a)();return await m(e),e}async function f(){const{baseconfig:e}=await s.c.sync.get("baseconfig");return p(e||Object(r.a)())}function m(e){return function(e){try{"undefined"!=typeof localStorage&&"undefined"!=typeof location&&/^(chrome-extension|moz-extension|safari-web-extension):$/.test(location.protocol)&&localStorage.setItem("saladict-pdf-viewer-dark-mode",e?"1":"0")}catch(e){}}(e.darkMode),s.c.sync.set({baseconfig:(t=e,{v:1,d:o.a.deflate(JSON.stringify(t),{to:"string"})})});var t}async function b(e){s.c.sync.addListener(t=>{if(t.baseconfig){const{newValue:n,oldValue:a}=t.baseconfig;n&&e({newConfig:p(n),oldConfig:p(a)})}})}function x(){return Object(c.a)(Object(l.a)(f()),Object(d.a)(b).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newConfig)))}},290:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV Word Syncing",error:{dir:'Incorrect "Saladict" directory on server.',download:"Download failed. Unable to connect WebDAV Server. If browser proxy is enabled please adjust rules to bypass WebDAV server.",internal:"Unable to save settings.",missing:'Missing "Saladict" directory on server.',mkcol:'Cannot create "Saladict" directory on server. Please create the directory manualy on server.',network:"Network error. Cannot connect to server.",parse:"Incorrect response XML from server.",unauthorized:"Incorrect account or password."}}},291:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 单词同步",error:{dir:"服务器上“Saladict”目录格式不正确,请检查。",download:"下载失败。无法访问 WebDAV 服务器。如启用了浏览器代理请调整规则,不要代理 WebDAV 服务器。",internal:"无法保存。",missing:"服务器上缺少“Saladict”目录。",mkcol:"无法在服务器创建“Saladict”目录。请手动在服务器上创建。",network:"连接服务器失败。",parse:"服务器返回 XML 格式不正确。",unauthorized:"账户或密码不正确。"}}},292:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 單字同步",error:{dir:"伺服器上“Saladict”目錄格式不正確,請檢查。",download:"下載失敗。無法訪問 WebDAV 伺服器。如啟用了瀏覽器代理請調整規則,不要代理 WebDAV 伺服器。",internal:"無法儲存。",missing:"伺服器上缺少“Saladict”目錄。",mkcol:"無法在伺服器建立“Saladict”目錄。請手動在伺服器上建立。",network:"連線伺服器失敗。",parse:"伺服器返回 XML 格式不正確。",unauthorized:"帳戶或密碼不正確。"}}},3:function(e,t,n){"use strict";n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"h",(function(){return u})),n.d(t,"k",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"l",(function(){return g})),n.d(t,"c",(function(){return f})),n.d(t,"g",(function(){return m})),n.d(t,"e",(function(){return w})),n.d(t,"f",(function(){return y})),n.d(t,"m",(function(){return M})),n.d(t,"n",(function(){return C})),n.d(t,"b",(function(){return E})),n.d(t,"d",(function(){return I}));var a=n(139),o=n.n(a);n(0),n(125),n(190),n(10),n(404),n(752);const r=new Map([["与","與"],["丒","囟"],["专","專"],["丗","卅"],["业","業"],["丛","叢"],["东","東"],["丝","絲"],["両","兩"],["丢","丟"],["两","兩"],["严","嚴"],["丧","喪"],["个","個"],["丬","爿"],["丯","丰"],["临","臨"],["丶","⼂"],["为","為"],["丽","麗"],["举","舉"],["义","義"],["乌","烏"],["乐","樂"],["乔","喬"],["习","習"],["乡","鄉"],["书","書"],["买","買"],["乱","亂"],["亀","龜"],["亁","乾"],["争","爭"],["亏","虧"],["亘","亙"],["亚","亞"],["产","產"],["亩","畝"],["亲","親"],["亵","褻"],["亸","嚲"],["亻","人"],["亿","億"],["仅","僅"],["从","從"],["仑","崙"],["仓","倉"],["仪","儀"],["们","們"],["仮","假"],["众","眾"],["会","會"],["伛","傴"],["伞","傘"],["伟","偉"],["传","傳"],["伤","傷"],["伥","倀"],["伦","倫"],["伧","傖"],["伪","偽"],["伫","佇"],["体","體"],["佥","僉"],["侠","俠"],["侣","侶"],["侥","僥"],["侦","偵"],["侧","側"],["侨","僑"],["侩","儈"],["侪","儕"],["侬","儂"],["俣","俁"],["俦","儔"],["俨","儼"],["俩","倆"],["俪","儷"],["俭","儉"],["债","債"],["倾","傾"],["偬","傯"],["偻","僂"],["偾","僨"],["偿","償"],["傥","儻"],["傧","儐"],["储","儲"],["傩","儺"],["兎","兔"],["兑","兌"],["兖","兗"],["兪","俞"],["兰","蘭"],["关","關"],["兴","興"],["兹","茲"],["养","養"],["兽","獸"],["兾","糞"],["兿","藝"],["冁","囅"],["内","內"],["円","丹"],["冈","岡"],["册","冊"],["写","寫"],["军","軍"],["农","農"],["冝","宜"],["冦","寇"],["冧","霖"],["冨","富"],["冩","寫"],["冮","江"],["冯","馮"],["冲","沖"],["决","決"],["况","況"],["冸","泮"],["冺","泯"],["冻","凍"],["冿","津"],["净","淨"],["凁","涑"],["凂","浼"],["凃","涂"],["凄","淒"],["凉","涼"],["减","減"],["凑","湊"],["凒","溰"],["凓","溧"],["凕","溟"],["凖","準"],["凙","澤"],["凛","凜"],["凟","瀆"],["凤","鳳"],["凥","尻"],["処","處"],["凨","云"],["凫","鳧"],["凬","凰"],["凭","憑"],["凮","鳳"],["凯","凱"],["凴","憑"],["击","擊"],["凼","窞"],["凾","亟"],["凿","鑿"],["刄","刃"],["刅","刃"],["刋","刊"],["刍","芻"],["刘","劉"],["则","則"],["刚","剛"],["创","創"],["删","刪"],["刦","劫"],["刧","劫"],["别","別"],["刭","剄"],["刴","剁"],["刹","剎"],["刼","劫"],["刽","劊"],["刿","劌"],["剀","剴"],["剂","劑"],["剐","剮"],["剑","劍"],["剥","剝"],["剧","劇"],["剰","剩"],["劎","劍"],["劒","劍"],["劔","劍"],["劝","勸"],["办","辦"],["务","務"],["劢","勱"],["动","動"],["励","勵"],["劲","勁"],["劳","勞"],["労","勞"],["劵","卷"],["効","效"],["劽","裂"],["势","勢"],["勅","敕"],["勋","勛"],["勐","猛"],["勚","勩"],["勠","戮"],["勥","強"],["勧","勸"],["匀","勻"],["匦","匭"],["匮","匱"],["区","區"],["医","醫"],["华","華"],["协","協"],["单","單"],["卖","賣"],["単","單"],["卙","斟"],["卛","攣"],["卟","嚇"],["卢","盧"],["卤","鹵"],["卥","囟"],["卧","臥"],["卫","衛"],["却","卻"],["卺","巹"],["厅","廳"],["历","歷"],["厉","厲"],["压","壓"],["厌","厭"],["厕","廁"],["厛","廳"],["厠","廁"],["厢","廂"],["厣","厴"],["厦","廈"],["厨","廚"],["厩","廄"],["厮","廝"],["厰","廠"],["厳","嚴"],["厶","⼛"],["县","縣"],["叁","參"],["叄","參"],["叆","靉"],["叇","靆"],["双","雙"],["収","收"],["叏","發"],["叐","發"],["发","發"],["变","變"],["叙","敘"],["叠","疊"],["叧","另"],["叶","葉"],["号","號"],["叹","嘆"],["叽","嘰"],["吓","嚇"],["吕","呂"],["吖","嗄"],["吗","嗎"],["吣","唚"],["吨","噸"],["启","啟"],["吴","吳"],["吿","告"],["呋","咐"],["呐","吶"],["呑","吞"],["呒","嘸"],["呓","囈"],["呕","嘔"],["呖","嚦"],["呗","唄"],["员","員"],["呙","咼"],["呛","嗆"],["呜","嗚"],["呪","咒"],["咏","詠"],["咙","嚨"],["咛","嚀"],["咝","吱"],["咣","光"],["咤","吒"],["哌","呱"],["响","響"],["哐","匡"],["哑","啞"],["哒","噠"],["哓","嘵"],["哔","嗶"],["哕","噦"],["哗","嘩"],["哙","噲"],["哜","嚌"],["哝","噥"],["哟","喲"],["唝","嗊"],["唠","嘮"],["唡","啢"],["唢","嗩"],["唣","嗦"],["唤","喚"],["唿","呼"],["啧","嘖"],["啬","嗇"],["啭","囀"],["啰","囉"],["啴","嘽"],["啸","嘯"],["喷","噴"],["喹","奎"],["喽","嘍"],["喾","嚳"],["嗪","唚"],["嗫","囁"],["嗬","呵"],["嗳","噯"],["嗵","通"],["嘘","噓"],["嘞","咧"],["嘠","嘎"],["嘣","迸"],["嘤","嚶"],["嘨","嘯"],["嘭","膨"],["嘱","囑"],["嘷","嚎"],["噜","嚕"],["噻","塞"],["噼","劈"],["嚔","涕"],["嚢","囊"],["嚣","囂"],["嚯","謔"],["团","團"],["园","園"],["囱","囪"],["围","圍"],["囵","圇"],["国","國"],["图","圖"],["圆","圓"],["圣","聖"],["圹","壙"],["场","場"],["块","塊"],["坚","堅"],["坛","壇"],["坜","壢"],["坝","壩"],["坞","塢"],["坟","墳"],["坠","墜"],["垄","壟"],["垅","壟"],["垆","壚"],["垒","壘"],["垦","墾"],["垧","坰"],["垩","堊"],["垫","墊"],["垲","塏"],["垴","瑙"],["埘","塒"],["埚","堝"],["堑","塹"],["堕","墮"],["塡","填"],["塬","原"],["墙","牆"],["壮","壯"],["声","聲"],["壳","殼"],["壶","壺"],["壸","壼"],["夂","⼢"],["处","處"],["备","備"],["夊","⼢"],["够","夠"],["头","頭"],["夹","夾"],["夺","奪"],["奁","奩"],["奂","奐"],["奋","奮"],["奖","獎"],["奥","奧"],["妆","妝"],["妇","婦"],["妈","媽"],["妩","嫵"],["妪","嫗"],["妫","媯"],["姗","姍"],["姹","奼"],["娄","婁"],["娅","婭"],["娆","嬈"],["娇","嬌"],["娈","孌"],["娱","娛"],["娲","媧"],["娴","嫻"],["婳","嫿"],["婴","嬰"],["婵","嬋"],["婶","嬸"],["媪","媼"],["嫒","嬡"],["嫔","嬪"],["嫱","嬙"],["嬷","嬤"],["孙","孫"],["学","學"],["孪","孿"],["孶","孳"],["宝","寶"],["实","實"],["宠","寵"],["审","審"],["宪","憲"],["宫","宮"],["宽","寬"],["宾","賓"],["寝","寢"],["对","對"],["寻","尋"],["导","導"],["対","對"],["寿","壽"],["専","專"],["尅","剋"],["将","將"],["尓","爾"],["尔","爾"],["尘","塵"],["尝","嘗"],["尧","堯"],["尴","尷"],["尽","盡"],["层","層"],["屃","屭"],["屉","屜"],["届","屆"],["屛","屏"],["属","屬"],["屡","屢"],["屦","屨"],["屿","嶼"],["岁","歲"],["岂","豈"],["岖","嶇"],["岗","崗"],["岘","峴"],["岙","嶴"],["岚","嵐"],["岛","島"],["岭","嶺"],["岿","巋"],["峄","嶧"],["峡","峽"],["峣","嶢"],["峤","嶠"],["峥","崢"],["峦","巒"],["峯","峰"],["崂","嶗"],["崃","崍"],["崄","嶮"],["崭","嶄"],["崾","要"],["嵘","嶸"],["嵚","嶔"],["嵝","嶁"],["巄","巃"],["巅","巔"],["巌","巖"],["巓","巔"],["巩","鞏"],["币","幣"],["帅","帥"],["师","師"],["帏","幃"],["帐","帳"],["帜","幟"],["带","帶"],["帧","幀"],["帮","幫"],["帯","帶"],["帱","幬"],["帻","幘"],["帼","幗"],["幂","冪"],["幇","幫"],["幚","幫"],["幞","襆"],["幷","并"],["广","廣"],["庁","廳"],["広","麼"],["庄","莊"],["庅","麼"],["庆","慶"],["庐","廬"],["庑","廡"],["库","庫"],["应","應"],["庙","廟"],["庞","龐"],["废","廢"],["庼","廎"],["廏","廄"],["廐","廄"],["廪","廩"],["廴","⼵"],["廵","巡"],["开","開"],["异","異"],["弃","棄"],["弑","弒"],["张","張"],["弥","彌"],["弯","彎"],["弹","彈"],["强","強"],["归","歸"],["当","當"],["录","錄"],["彚","彙"],["彛","羿"],["彜","羿"],["彟","獲"],["彠","獲"],["彡","⼺"],["彦","彥"],["彻","徹"],["径","徑"],["徕","徠"],["徸","德"],["忄","心"],["忆","憶"],["忏","懺"],["忧","憂"],["忾","愾"],["怀","懷"],["态","態"],["怂","慫"],["怃","憮"],["怅","悵"],["怆","愴"],["怜","憐"],["总","總"],["怼","懟"],["怿","懌"],["恋","戀"],["恒","恆"],["恳","懇"],["恶","惡"],["恸","慟"],["恹","懨"],["恺","愷"],["恻","惻"],["恼","惱"],["恽","惲"],["悦","悅"],["悫","愨"],["悬","懸"],["悭","慳"],["悯","憫"],["惊","驚"],["惧","懼"],["惨","慘"],["惩","懲"],["惫","憊"],["惬","愜"],["惭","慚"],["惮","憚"],["惯","慣"],["惽","惛"],["愠","慍"],["愤","憤"],["愦","憒"],["慑","懾"],["慭","憖"],["懑","懣"],["懒","懶"],["懔","懍"],["懴","懺"],["戅","戇"],["戆","戇"],["戋","戔"],["戏","戲"],["戗","戧"],["战","戰"],["戝","敗"],["戦","戰"],["戬","戩"],["戯","戲"],["戱","戲"],["户","戶"],["戸","戶"],["扌","手"],["执","執"],["扩","擴"],["扪","捫"],["扫","掃"],["扬","揚"],["扰","擾"],["抅","拘"],["抚","撫"],["抛","拋"],["抟","摶"],["抠","摳"],["抡","掄"],["抢","搶"],["护","護"],["报","報"],["担","擔"],["拟","擬"],["拢","攏"],["拣","揀"],["拥","擁"],["拦","攔"],["拧","擰"],["拨","撥"],["择","擇"],["挚","摯"],["挛","攣"],["挜","掗"],["挝","撾"],["挞","撻"],["挟","挾"],["挠","撓"],["挡","擋"],["挢","撟"],["挣","掙"],["挤","擠"],["挥","揮"],["挦","撏"],["捞","撈"],["损","損"],["捡","撿"],["换","換"],["捣","搗"],["掳","擄"],["掴","摑"],["掷","擲"],["掸","撣"],["掺","摻"],["掼","摜"],["揸","喳"],["揽","攬"],["揿","撳"],["搀","攙"],["搁","擱"],["搂","摟"],["搃","摠"],["搅","攪"],["携","攜"],["摄","攝"],["摅","攄"],["摆","擺"],["摇","搖"],["摈","擯"],["摊","攤"],["撃","擊"],["撄","攖"],["撑","撐"],["撪","攆"],["撵","攆"],["撷","擷"],["撹","攪"],["撺","攛"],["擕","攜"],["擞","擻"],["擡","抬"],["擥","掔"],["擧","舉"],["擪","壓"],["攒","攢"],["攵","又"],["敇","敕"],["敌","敵"],["敛","斂"],["敮","歃"],["数","數"],["斉","齊"],["斋","齋"],["斎","齋"],["斓","斕"],["斩","斬"],["断","斷"],["旧","舊"],["时","時"],["旷","曠"],["旸","暘"],["昙","曇"],["昼","晝"],["昽","曨"],["显","顯"],["晋","晉"],["晓","曉"],["晔","曄"],["晕","暈"],["晖","暉"],["暂","暫"],["暧","曖"],["术","術"],["杀","殺"],["杂","雜"],["权","權"],["条","條"],["来","來"],["杨","楊"],["极","極"],["枞","樅"],["枢","樞"],["枣","棗"],["枥","櫪"],["枧","見"],["枨","棖"],["枪","槍"],["枫","楓"],["枭","梟"],["柠","檸"],["柽","檉"],["栀","梔"],["栅","柵"],["标","標"],["栈","棧"],["栉","櫛"],["栊","櫳"],["栋","棟"],["栌","櫨"],["栎","櫟"],["栏","欄"],["树","樹"],["样","樣"],["栾","欒"],["桊","棬"],["桠","椏"],["桡","橈"],["桢","楨"],["档","檔"],["桤","榿"],["桥","橋"],["桦","樺"],["桧","檜"],["桨","槳"],["桩","樁"],["梦","夢"],["梼","檮"],["梾","棶"],["检","檢"],["棂","欞"],["椁","槨"],["椟","櫝"],["椠","槧"],["椭","橢"],["楼","樓"],["楽","樂"],["榄","欖"],["榇","櫬"],["榈","櫚"],["榉","櫸"],["榘","矩"],["槚","檟"],["槛","檻"],["槟","檳"],["槠","櫧"],["横","橫"],["樯","檣"],["樱","櫻"],["橥","櫫"],["橱","櫥"],["橹","櫓"],["橼","櫞"],["檪","櫟"],["檫","察"],["欢","歡"],["欤","歟"],["欧","歐"],["歳","歲"],["歴","曆"],["歺","歲"],["歼","殲"],["殁","歿"],["殇","殤"],["残","殘"],["殒","殞"],["殓","殮"],["殚","殫"],["殡","殯"],["殱","殲"],["殴","毆"],["毁","毀"],["毂","轂"],["毕","畢"],["毙","斃"],["毡","氈"],["毵","毿"],["毶","鞠"],["気","氣"],["氢","氫"],["氩","氬"],["氲","氳"],["氵","水"],["氽","汆"],["汇","匯"],["汉","漢"],["污","汙"],["汤","湯"],["汹","洶"],["沟","溝"],["没","沒"],["沣","灃"],["沤","漚"],["沥","瀝"],["沦","淪"],["沧","滄"],["沨","渢"],["沩","溈"],["沪","滬"],["沵","濔"],["泞","濘"],["泪","淚"],["泶","澩"],["泷","瀧"],["泸","瀘"],["泺","濼"],["泻","瀉"],["泼","潑"],["泽","澤"],["泾","涇"],["洁","潔"],["浃","浹"],["浅","淺"],["浆","漿"],["浇","澆"],["浈","湞"],["浊","濁"],["测","測"],["浍","澮"],["济","濟"],["浏","瀏"],["浐","滻"],["浑","渾"],["浒","滸"],["浓","濃"],["浔","潯"],["浕","濜"],["浜","濱"],["涙","淚"],["涛","濤"],["涝","澇"],["涞","淶"],["涟","漣"],["涡","渦"],["涣","渙"],["涤","滌"],["润","潤"],["涧","澗"],["涨","漲"],["涩","澀"],["淀","澱"],["渊","淵"],["渌","淥"],["渍","漬"],["渎","瀆"],["渐","漸"],["渑","澠"],["渔","漁"],["渖","瀋"],["渗","滲"],["温","溫"],["湼","涅"],["湾","灣"],["湿","濕"],["溃","潰"],["溅","濺"],["溆","漵"],["溇","漊"],["滙","匯"],["滚","滾"],["滝","瀧"],["滞","滯"],["滟","灩"],["滠","灄"],["满","滿"],["滢","瀅"],["滤","濾"],["滥","濫"],["滦","灤"],["滨","濱"],["滩","灘"],["滪","澦"],["漑","溉"],["潆","瀠"],["潇","瀟"],["潋","瀲"],["潍","濰"],["潜","潛"],["潴","瀦"],["澜","瀾"],["濑","瀨"],["濒","瀕"],["灎","灩"],["灏","灝"],["灔","灩"],["灜","瀛"],["灧","灩"],["灬","火"],["灭","滅"],["灯","燈"],["灵","靈"],["灾","災"],["灿","燦"],["炀","煬"],["炉","爐"],["炖","燉"],["炜","煒"],["炝","熗"],["点","點"],["炼","煉"],["炽","熾"],["烁","爍"],["烂","爛"],["烃","烴"],["烛","燭"],["烟","煙"],["烦","煩"],["烧","燒"],["烨","燁"],["烩","燴"],["烫","燙"],["烬","燼"],["热","熱"],["焕","煥"],["焖","燜"],["焘","燾"],["煅","煆"],["煳","糊"],["煺","退"],["熘","溜"],["爱","愛"],["爲","為"],["爷","爺"],["牍","牘"],["牜","牛"],["牦","犛"],["牵","牽"],["牺","犧"],["犊","犢"],["犟","強"],["犭","犬"],["状","狀"],["犷","獷"],["犸","馬"],["犹","猶"],["狈","狽"],["狍","包"],["狝","獮"],["狞","獰"],["独","獨"],["狭","狹"],["狮","獅"],["狯","獪"],["狰","猙"],["狱","獄"],["狲","猻"],["猃","獫"],["猎","獵"],["猕","獼"],["猡","玀"],["猪","豬"],["猫","貓"],["猬","蝟"],["献","獻"],["獭","獺"],["玑","璣"],["玙","璵"],["玚","瑒"],["玛","瑪"],["玮","瑋"],["环","環"],["现","現"],["玱","瑲"],["玺","璽"],["珏","玨"],["珐","琺"],["珑","瓏"],["珰","璫"],["珱","瓔"],["珲","琿"],["琏","璉"],["琐","瑣"],["琼","瓊"],["瑶","瑤"],["瑷","璦"],["璎","瓔"],["瓒","瓚"],["瓯","甌"],["産","產"],["电","電"],["画","畫"],["畅","暢"],["畲","畬"],["畳","疊"],["畴","疇"],["畵","畫"],["疎","疏"],["疖","癤"],["疗","療"],["疟","瘧"],["疠","癘"],["疡","瘍"],["疬","癆"],["疮","瘡"],["疯","瘋"],["疴","痾"],["痈","癰"],["痉","痙"],["痖","啞"],["痨","癆"],["痩","瘦"],["痪","瘓"],["痫","癇"],["痬","瘍"],["瘅","癉"],["瘆","疹"],["瘗","瘞"],["瘘","瘺"],["瘪","癟"],["瘫","癱"],["瘾","癮"],["瘿","癭"],["癀","廣"],["癍","斑"],["癎","癇"],["癞","癩"],["癣","癬"],["癫","癲"],["発","發"],["皑","皚"],["皱","皺"],["皲","皸"],["盏","盞"],["盐","鹽"],["监","監"],["盖","蓋"],["盗","盜"],["盘","盤"],["県","縣"],["眍","區"],["眞","真"],["眦","眥"],["眬","矓"],["着","著"],["睁","睜"],["睐","睞"],["睑","瞼"],["瞒","瞞"],["瞩","矚"],["矤","病"],["矫","矯"],["矶","磯"],["矾","礬"],["矿","礦"],["砀","碭"],["码","碼"],["砖","磚"],["砗","硨"],["砚","硯"],["砜","風"],["砺","礪"],["砻","礱"],["砾","礫"],["础","礎"],["硁","硜"],["硕","碩"],["硖","硤"],["硗","磽"],["硙","磑"],["硚","礄"],["硷","鹼"],["碍","礙"],["碛","磧"],["碜","磣"],["碱","鹼"],["碹","宣"],["磙","袞"],["礻","示"],["礼","禮"],["祎","禕"],["祢","禰"],["祯","禎"],["祷","禱"],["祸","禍"],["禀","稟"],["禄","祿"],["禅","禪"],["离","離"],["秃","禿"],["秆","稈"],["积","積"],["称","稱"],["秽","穢"],["秾","穠"],["税","稅"],["稣","穌"],["稳","穩"],["穑","穡"],["穷","窮"],["窃","竊"],["窍","竅"],["窑","窯"],["窜","竄"],["窝","窩"],["窥","窺"],["窦","竇"],["窭","窶"],["竖","豎"],["竜","龍"],["竞","競"],["笃","篤"],["笋","筍"],["笔","筆"],["笕","筧"],["笺","箋"],["笼","籠"],["笾","籩"],["筚","篳"],["筛","篩"],["筜","簹"],["筝","箏"],["筹","籌"],["签","簽"],["简","簡"],["箓","籙"],["箢","宛"],["箦","簀"],["箧","篋"],["箨","籜"],["箩","籮"],["箪","簞"],["箫","簫"],["篑","簣"],["篓","簍"],["篮","籃"],["篱","籬"],["簖","籪"],["籁","籟"],["籴","糴"],["类","類"],["籼","秈"],["粜","糶"],["粝","糲"],["粤","粵"],["粪","糞"],["粮","糧"],["糁","糝"],["糇","餱"],["糹","糸"],["紧","緊"],["絵","繪"],["絶","絕"],["絷","縶"],["綘","健"],["継","繼"],["続","續"],["緜","綿"],["縂","總"],["縄","繩"],["繋","繫"],["繍","繡"],["纟","糸"],["纠","糾"],["纡","紆"],["红","紅"],["纣","紂"],["纤","纖"],["纥","紇"],["约","約"],["级","級"],["纨","紈"],["纩","纊"],["纪","紀"],["纫","紉"],["纬","緯"],["纭","紜"],["纮","紘"],["纯","純"],["纰","紕"],["纱","紗"],["纲","綱"],["纳","納"],["纴","紝"],["纵","縱"],["纶","綸"],["纷","紛"],["纸","紙"],["纹","紋"],["纺","紡"],["纻","紵"],["纼","紖"],["纽","紐"],["纾","紓"],["线","線"],["绀","紺"],["绁","紲"],["绂","紱"],["练","練"],["组","組"],["绅","紳"],["细","細"],["织","織"],["终","終"],["绉","縐"],["绊","絆"],["绋","紼"],["绌","絀"],["绍","紹"],["绎","繹"],["经","經"],["绐","紿"],["绑","綁"],["绒","絨"],["结","結"],["绔","褲"],["绕","繞"],["绖","絰"],["绗","絎"],["绘","繪"],["给","給"],["绚","絢"],["绛","絳"],["络","絡"],["绝","絕"],["绞","絞"],["统","統"],["绠","綆"],["绡","綃"],["绢","絹"],["绣","繡"],["绤","綌"],["绥","綏"],["绦","絛"],["继","繼"],["绨","綈"],["绩","績"],["绪","緒"],["绫","綾"],["续","續"],["绮","綺"],["绯","緋"],["绰","綽"],["绱","鞜"],["绲","緄"],["绳","繩"],["维","維"],["绵","綿"],["绶","綬"],["绷","繃"],["绸","綢"],["绹","綯"],["绺","綹"],["绻","綣"],["综","綜"],["绽","綻"],["绾","綰"],["绿","綠"],["缀","綴"],["缁","緇"],["缂","緙"],["缃","緗"],["缄","緘"],["缅","緬"],["缆","纜"],["缇","緹"],["缈","緲"],["缉","緝"],["缊","縕"],["缋","繢"],["缌","緦"],["缍","綞"],["缎","緞"],["缏","緶"],["缐","線"],["缑","緱"],["缒","縋"],["缓","緩"],["缔","締"],["缕","縷"],["编","編"],["缗","緡"],["缘","緣"],["缙","縉"],["缚","縛"],["缛","縟"],["缜","縝"],["缝","縫"],["缞","縗"],["缟","縞"],["缠","纏"],["缡","縭"],["缢","縊"],["缣","縑"],["缤","繽"],["缥","縹"],["缦","縵"],["缧","縲"],["缨","纓"],["缩","縮"],["缪","繆"],["缫","繅"],["缬","纈"],["缭","繚"],["缮","繕"],["缯","繒"],["缰","韁"],["缱","繾"],["缲","繰"],["缳","繯"],["缴","繳"],["缵","纘"],["罂","罌"],["罗","羅"],["罚","罰"],["罢","罷"],["罴","羆"],["羁","羈"],["羗","羌"],["羟","羥"],["羡","羨"],["羣","群"],["羮","羹"],["翘","翹"],["翙","翽"],["翚","翬"],["耢","勞"],["耥","尚"],["耧","耬"],["耸","聳"],["耻","恥"],["聂","聶"],["聋","聾"],["职","職"],["聍","聹"],["联","聯"],["聩","聵"],["聪","聰"],["肀","聿"],["肃","肅"],["肠","腸"],["肤","膚"],["肷","欠"],["肾","腎"],["肿","腫"],["胀","脹"],["胁","脅"],["胆","膽"],["胧","朧"],["胨","東"],["胪","臚"],["胫","脛"],["胶","膠"],["脉","脈"],["脍","膾"],["脏","髒"],["脐","臍"],["脑","腦"],["脓","膿"],["脔","臠"],["脚","腳"],["脱","脫"],["脲","反"],["脶","腡"],["脸","臉"],["腭","齶"],["腻","膩"],["腽","膃"],["腾","騰"],["膑","臏"],["臓","摹"],["臜","臢"],["舆","輿"],["舣","艤"],["舰","艦"],["舱","艙"],["舻","艫"],["艰","艱"],["艹","艸"],["艺","藝"],["节","節"],["芈","羋"],["芗","薌"],["芜","蕪"],["芦","蘆"],["苁","蓯"],["苇","葦"],["苋","莧"],["苌","萇"],["苍","蒼"],["苎","苧"],["苏","蘇"],["苘","萵"],["茎","莖"],["茏","蘢"],["茑","蔦"],["茔","塋"],["茕","煢"],["茧","繭"],["荆","荊"],["荚","莢"],["荛","蕘"],["荜","蓽"],["荞","蕎"],["荟","薈"],["荠","薺"],["荡","蕩"],["荣","榮"],["荤","葷"],["荥","滎"],["荦","犖"],["荧","熒"],["荨","蕁"],["荩","藎"],["荪","蓀"],["荫","蔭"],["荬","賣"],["荭","葒"],["荮","紂"],["药","藥"],["莅","蒞"],["莱","萊"],["莲","蓮"],["莳","蒔"],["莴","萵"],["获","獲"],["莸","蕕"],["莹","瑩"],["莺","鶯"],["莼","蓴"],["菭","恰"],["萚","蘀"],["萝","蘿"],["萤","螢"],["营","營"],["萦","縈"],["萧","蕭"],["萨","薩"],["葱","蔥"],["蒇","蕆"],["蒉","蕢"],["蒋","蔣"],["蒌","蔞"],["蓝","藍"],["蓟","薊"],["蓠","蘺"],["蓦","驀"],["蔷","薔"],["蔹","蘞"],["蔺","藺"],["蔼","藹"],["蕲","蘄"],["蕴","蘊"],["薮","藪"],["藁","槁"],["藓","蘚"],["蘖","蘗"],["虏","虜"],["虑","慮"],["虚","虛"],["虬","虯"],["虮","蟣"],["虽","雖"],["虾","蝦"],["虿","蠆"],["蚀","蝕"],["蚁","蟻"],["蚂","螞"],["蚕","蠶"],["蚬","蜆"],["蛊","蠱"],["蛎","蠣"],["蛏","蟶"],["蛮","蠻"],["蛰","蟄"],["蛱","蛺"],["蛲","蟯"],["蛳","螄"],["蛴","蠐"],["蜕","蛻"],["蜖","汀"],["蜗","蝸"],["蝇","蠅"],["蝈","蟈"],["蝉","蟬"],["蝼","螻"],["蝾","蠑"],["蝿","蠅"],["螀","螿"],["螨","顢"],["蟏","蠨"],["蟮","蟺"],["蠎","蟒"],["衅","釁"],["衔","銜"],["衤","衣"],["补","補"],["衬","襯"],["衮","袞"],["袄","襖"],["袅","裊"],["袆","褘"],["袭","襲"],["袯","襏"],["袴","褲"],["装","裝"],["裆","襠"],["裈","褌"],["裢","褳"],["裣","襝"],["裤","褲"],["裥","襉"],["褛","褸"],["褴","襤"],["襕","襴"],["覇","霸"],["覚","覺"],["覧","覽"],["覩","睹"],["见","見"],["观","觀"],["规","規"],["觅","覓"],["视","視"],["觇","覘"],["览","覽"],["觉","覺"],["觊","覬"],["觋","覡"],["觌","覿"],["觎","覦"],["觏","覯"],["觐","覲"],["觑","覷"],["觗","觝"],["觞","觴"],["触","觸"],["觯","觶"],["訡","吟"],["詟","讋"],["詤","謊"],["誀","浴"],["誉","譽"],["誊","謄"],["説","說"],["読","讀"],["讁","謫"],["讠","言"],["计","計"],["订","訂"],["讣","訃"],["认","認"],["讥","譏"],["讦","訐"],["讧","訌"],["讨","討"],["让","讓"],["讪","訕"],["讫","訖"],["训","訓"],["议","議"],["讯","訊"],["记","記"],["讱","訒"],["讲","講"],["讳","諱"],["讴","謳"],["讵","詎"],["讶","訝"],["讷","訥"],["许","許"],["讹","訛"],["论","論"],["讼","訟"],["讽","諷"],["设","設"],["访","訪"],["诀","訣"],["证","證"],["诂","詁"],["诃","訶"],["评","評"],["诅","詛"],["识","識"],["诇","詗"],["诈","詐"],["诉","訴"],["诊","診"],["诋","詆"],["诌","謅"],["词","詞"],["诎","詘"],["诏","詔"],["诐","詖"],["译","譯"],["诒","詒"],["诓","誆"],["诔","誄"],["试","試"],["诖","詿"],["诗","詩"],["诘","詰"],["诙","詼"],["诚","誠"],["诛","誅"],["诜","詵"],["话","話"],["诞","誕"],["诟","詬"],["诠","詮"],["诡","詭"],["询","詢"],["诣","詣"],["诤","諍"],["该","該"],["详","詳"],["诧","詫"],["诨","諢"],["诩","詡"],["诪","譸"],["诫","誡"],["诬","誣"],["语","語"],["诮","誚"],["误","誤"],["诰","誥"],["诱","誘"],["诲","誨"],["诳","誑"],["说","說"],["诵","誦"],["诶","誒"],["请","請"],["诸","諸"],["诹","諏"],["诺","諾"],["读","讀"],["诼","諑"],["诽","誹"],["课","課"],["诿","諉"],["谀","諛"],["谁","誰"],["谂","諗"],["调","調"],["谄","諂"],["谅","諒"],["谆","諄"],["谇","誶"],["谈","談"],["谊","誼"],["谋","謀"],["谌","諶"],["谍","諜"],["谎","謊"],["谏","諫"],["谐","諧"],["谑","謔"],["谒","謁"],["谓","謂"],["谔","諤"],["谕","諭"],["谖","諼"],["谗","讒"],["谘","諮"],["谙","諳"],["谚","諺"],["谛","諦"],["谜","謎"],["谝","諞"],["谞","住"],["谟","謨"],["谠","讜"],["谡","謖"],["谢","謝"],["谣","謠"],["谤","謗"],["谥","謚"],["谦","謙"],["谧","謐"],["谨","謹"],["谩","謾"],["谪","謫"],["谫","譾"],["谬","謬"],["谭","譚"],["谮","譖"],["谯","譙"],["谰","讕"],["谱","譜"],["谲","譎"],["谳","讞"],["谴","譴"],["谵","譫"],["谶","讖"],["豮","豶"],["貭","亍"],["貮","貳"],["賍","贓"],["賎","賤"],["賖","賒"],["賘","髒"],["贋","贗"],["贘","償"],["贝","貝"],["贞","貞"],["负","負"],["贡","貢"],["财","財"],["责","責"],["贤","賢"],["败","敗"],["账","賬"],["货","貨"],["质","質"],["贩","販"],["贪","貪"],["贫","貧"],["贬","貶"],["购","購"],["贮","貯"],["贯","貫"],["贰","貳"],["贱","賤"],["贲","賁"],["贳","貰"],["贴","貼"],["贵","貴"],["贶","貺"],["贷","貸"],["贸","貿"],["费","費"],["贺","賀"],["贻","貽"],["贼","賊"],["贽","贄"],["贾","賈"],["贿","賄"],["赀","貲"],["赁","賃"],["赂","賂"],["赃","贓"],["资","資"],["赅","賅"],["赆","贐"],["赇","賕"],["赈","賑"],["赉","賚"],["赊","賒"],["赋","賦"],["赌","賭"],["赍","齎"],["赎","贖"],["赏","賞"],["赐","賜"],["赑","贔"],["赒","賙"],["赓","賡"],["赔","賠"],["赖","賴"],["赗","賵"],["赘","贅"],["赙","賻"],["赚","賺"],["赛","賽"],["赜","賾"],["赝","贗"],["赞","贊"],["赟","贇"],["赠","贈"],["赡","贍"],["赢","贏"],["赣","贛"],["赪","赬"],["赵","趙"],["趋","趨"],["趱","趲"],["趸","躉"],["跃","躍"],["跄","蹌"],["跞","躒"],["践","踐"],["跶","躂"],["跷","蹺"],["跸","蹕"],["跹","躚"],["跻","躋"],["踌","躊"],["踪","蹤"],["踬","躓"],["踯","躑"],["蹑","躡"],["蹒","蹣"],["蹰","躕"],["蹿","躥"],["躏","躪"],["躜","躦"],["躯","軀"],["车","車"],["轧","軋"],["轨","軌"],["轩","軒"],["轪","軑"],["轫","軔"],["转","轉"],["轭","軛"],["轮","輪"],["软","軟"],["轰","轟"],["轱","古"],["轲","軻"],["轳","轤"],["轴","軸"],["轵","軹"],["轶","軼"],["轷","乎"],["轸","軫"],["轹","轢"],["轺","軺"],["轻","輕"],["轼","軾"],["载","載"],["轾","輊"],["轿","轎"],["辀","輈"],["辁","輇"],["辂","輅"],["较","較"],["辄","輒"],["辅","輔"],["辆","輛"],["辇","輦"],["辈","輩"],["辉","輝"],["辊","輥"],["辋","輞"],["辌","輬"],["辍","輟"],["辎","輜"],["辏","輳"],["辐","輻"],["辑","輯"],["辒","轀"],["输","輸"],["辔","轡"],["辕","轅"],["辖","轄"],["辗","輾"],["辘","轆"],["辙","轍"],["辚","轔"],["辞","辭"],["辩","辯"],["辫","辮"],["辬","辨"],["边","邊"],["辽","遼"],["达","達"],["迁","遷"],["过","過"],["迈","邁"],["运","運"],["还","還"],["这","這"],["进","進"],["远","遠"],["违","違"],["连","連"],["迟","遲"],["迩","邇"],["迳","逕"],["迹","跡"],["选","選"],["逊","遜"],["递","遞"],["逦","邐"],["逻","邏"],["遗","遺"],["遥","遙"],["邓","鄧"],["邝","鄺"],["邬","鄔"],["邮","郵"],["邹","鄒"],["邺","鄴"],["邻","鄰"],["郄","卻"],["郏","郟"],["郐","鄶"],["郑","鄭"],["郓","鄆"],["郦","酈"],["郧","鄖"],["郷","鄉"],["郸","鄲"],["鄊","鄉"],["鄕","鄉"],["鄷","酆"],["酝","醞"],["酦","醱"],["酱","醬"],["酽","釅"],["酾","釃"],["酿","釀"],["释","釋"],["釡","斧"],["鉴","鑒"],["銮","鑾"],["錾","鏨"],["鎻","鎖"],["钅","金"],["钆","釓"],["钇","釔"],["针","針"],["钉","釘"],["钊","釗"],["钋","釙"],["钌","釕"],["钍","釷"],["钏","釧"],["钐","釤"],["钑","鈒"],["钒","釩"],["钓","釣"],["钔","鍆"],["钕","釹"],["钖","鍚"],["钗","釵"],["钘","鈃"],["钙","鈣"],["钚","鈽"],["钛","鈦"],["钜","鉅"],["钝","鈍"],["钞","鈔"],["钟","鐘"],["钠","鈉"],["钡","鋇"],["钢","鋼"],["钣","鈑"],["钤","鈐"],["钥","鑰"],["钦","欽"],["钧","鈞"],["钨","鎢"],["钩","鉤"],["钪","鈧"],["钫","鈁"],["钬","鈥"],["钮","鈕"],["钯","鈀"],["钰","鈺"],["钱","錢"],["钲","鉦"],["钳","鉗"],["钴","鈷"],["钵","缽"],["钶","鈳"],["钸","鈽"],["钹","鈸"],["钺","鉞"],["钻","鑽"],["钼","鉬"],["钽","鉭"],["钾","鉀"],["钿","鈿"],["铀","鈾"],["铁","鐵"],["铂","鉑"],["铃","鈴"],["铄","鑠"],["铅","鉛"],["铆","鉚"],["铈","鈰"],["铉","鉉"],["铊","鉈"],["铋","鉍"],["铌","鈮"],["铍","鈹"],["铎","鐸"],["铏","鉶"],["铐","銬"],["铑","銠"],["铒","鉺"],["铓","鋩"],["铔","錏"],["铕","銪"],["铖","鋮"],["铗","鋏"],["铘","邪"],["铙","鐃"],["铚","銍"],["铛","鐺"],["铜","銅"],["铝","鋁"],["铞","吊"],["铟","銦"],["铠","鎧"],["铡","鍘"],["铢","銖"],["铣","銑"],["铤","鋌"],["铥","銩"],["铦","銛"],["铧","鏵"],["铨","銓"],["铩","鎩"],["铪","鉿"],["铫","銚"],["铬","鉻"],["铭","銘"],["铮","錚"],["铯","銫"],["铰","鉸"],["铱","銥"],["铲","鏟"],["铳","銃"],["铴","鐋"],["铵","銨"],["银","銀"],["铷","銣"],["铸","鑄"],["铹","鐒"],["铺","鋪"],["铻","鋙"],["铼","錸"],["铽","鋱"],["链","鏈"],["铿","鏗"],["销","銷"],["锁","鎖"],["锂","鋰"],["锃","呈"],["锄","鋤"],["锅","鍋"],["锆","鋯"],["锇","鋨"],["锈","鏽"],["锉","銼"],["锊","鋝"],["锋","鋒"],["锌","鋅"],["锍","琉"],["锎","鉲"],["锏","閒"],["锐","銳"],["锑","銻"],["锒","鋃"],["锓","鋟"],["锔","鋦"],["锕","錒"],["锖","錆"],["锗","鍺"],["锘","若"],["错","錯"],["锚","錨"],["锛","錛"],["锜","錡"],["锝","鎝"],["锞","錁"],["锟","錕"],["锠","琛"],["锡","錫"],["锢","錮"],["锣","鑼"],["锤","錘"],["锥","錐"],["锦","錦"],["锧","鑕"],["锨","杴"],["锪","忽"],["锫","培"],["锬","錟"],["锭","錠"],["键","鍵"],["锯","鋸"],["锰","錳"],["锱","錙"],["锲","鍥"],["锴","鍇"],["锵","鏘"],["锶","鍶"],["锷","鍔"],["锸","鍤"],["锹","鍬"],["锺","鍾"],["锻","鍛"],["锼","鎪"],["锽","鍠"],["锾","鍰"],["锿","鑀"],["镀","鍍"],["镁","鎂"],["镂","鏤"],["镃","鎡"],["镄","鐨"],["镅","鋂"],["镆","鏌"],["镇","鎮"],["镈","鎛"],["镉","鎘"],["镊","鑷"],["镋","钂"],["镌","鐫"],["镍","鎳"],["镎","拿"],["镏","鎦"],["镐","鎬"],["镑","鎊"],["镒","鎰"],["镓","鎵"],["镔","鑌"],["镕","鎔"],["镖","鏢"],["镗","鏜"],["镘","鏝"],["镙","鏍"],["镛","鏞"],["镜","鏡"],["镝","鏑"],["镞","鏃"],["镟","鏇"],["镠","鏐"],["镡","鐔"],["镢","钁"],["镣","鐐"],["镤","鏷"],["镥","魯"],["镧","鑭"],["镨","鐠"],["镩","串"],["镪","鏹"],["镫","鐙"],["镬","鑊"],["镭","鐳"],["镮","鐶"],["镯","鐲"],["镰","鐮"],["镱","鐿"],["镲","察"],["镳","鑣"],["镴","鑞"],["镵","鑱"],["镶","鑲"],["长","長"],["閲","閱"],["门","門"],["闩","閂"],["闪","閃"],["闫","閆"],["闬","閈"],["闭","閉"],["问","問"],["闯","闖"],["闰","閏"],["闱","闈"],["闲","閒"],["闳","閎"],["间","間"],["闵","閔"],["闶","閌"],["闷","悶"],["闸","閘"],["闹","鬧"],["闺","閨"],["闻","聞"],["闼","闥"],["闽","閩"],["闾","閭"],["闿","闓"],["阀","閥"],["阁","閣"],["阂","閡"],["阃","閫"],["阄","鬮"],["阅","閱"],["阆","閬"],["阇","闍"],["阈","閾"],["阉","閹"],["阊","閶"],["阋","鬩"],["阌","閿"],["阍","閽"],["阎","閻"],["阏","閼"],["阐","闡"],["阑","闌"],["阒","闃"],["阓","闠"],["阔","闊"],["阕","闋"],["阖","闔"],["阗","闐"],["阘","闒"],["阙","闕"],["阚","闞"],["阛","闤"],["阝","阜"],["队","隊"],["阳","陽"],["阴","陰"],["阵","陣"],["阶","階"],["际","際"],["陆","陸"],["陇","隴"],["陈","陳"],["陉","陘"],["陕","陝"],["陧","隉"],["陨","隕"],["险","險"],["隂","陰"],["隌","暗"],["随","隨"],["隐","隱"],["隠","隱"],["隷","隸"],["隽","雋"],["难","難"],["雏","雛"],["雠","讎"],["雳","靂"],["雾","霧"],["霁","霽"],["霊","靈"],["霭","靄"],["靓","靚"],["静","靜"],["靥","靨"],["鞑","韃"],["鞒","轎"],["鞯","韉"],["鞲","韝"],["鞽","轎"],["韦","韋"],["韧","韌"],["韨","韍"],["韩","韓"],["韪","韙"],["韫","韞"],["韬","韜"],["韯","籤"],["韲","齋"],["韵","韻"],["顋","腮"],["顔","顏"],["顕","顯"],["页","頁"],["顶","頂"],["顷","頃"],["顸","頇"],["项","項"],["顺","順"],["须","須"],["顼","頊"],["顽","頑"],["顾","顧"],["顿","頓"],["颀","頎"],["颁","頒"],["颂","頌"],["颃","頏"],["预","預"],["颅","顱"],["领","領"],["颇","頗"],["颈","頸"],["颉","頡"],["颊","頰"],["颋","頲"],["颌","頜"],["颍","潁"],["颎","熲"],["颏","頦"],["颐","頤"],["频","頻"],["颓","頹"],["颔","頷"],["颕","穎"],["颖","穎"],["颗","顆"],["题","題"],["颙","顒"],["颚","顎"],["颛","顓"],["颜","顏"],["额","額"],["颞","顳"],["颟","顢"],["颠","顛"],["颡","顙"],["颢","顥"],["颣","纇"],["颤","顫"],["颥","須"],["颦","顰"],["颧","顴"],["颷","飆"],["风","風"],["飏","颺"],["飐","颭"],["飑","颮"],["飒","颯"],["飓","颶"],["飔","颸"],["飕","颼"],["飖","颻"],["飗","飀"],["飘","飄"],["飙","飆"],["飚","飆"],["飞","飛"],["飨","饗"],["飬","養"],["飮","飲"],["飱","餐"],["餍","饜"],["饣","食"],["饤","飣"],["饥","飢"],["饦","飥"],["饧","餳"],["饨","飩"],["饩","餼"],["饪","飪"],["饫","飫"],["饬","飭"],["饭","飯"],["饮","飲"],["饯","餞"],["饰","飾"],["饱","飽"],["饲","飼"],["饴","飴"],["饵","餌"],["饶","饒"],["饷","餉"],["饺","餃"],["饼","餅"],["饽","餑"],["饾","餖"],["饿","餓"],["馀","餘"],["馁","餒"],["馂","餕"],["馄","餛"],["馅","餡"],["馆","館"],["馇","查"],["馈","饋"],["馉","稹"],["馊","餿"],["馋","饞"],["馌","饁"],["馍","饃"],["馎","餺"],["馏","餾"],["馐","饈"],["馑","饉"],["馒","饅"],["馓","饊"],["馔","饌"],["馕","囊"],["马","馬"],["驭","馭"],["驮","馱"],["驯","馴"],["驰","馳"],["驱","驅"],["驲","馹"],["驳","駁"],["驴","驢"],["驵","駔"],["驶","駛"],["驷","駟"],["驸","駙"],["驹","駒"],["驺","騶"],["驻","駐"],["驼","駝"],["驽","駑"],["驾","駕"],["驿","驛"],["骀","駘"],["骁","驍"],["骂","罵"],["骃","駰"],["骄","驕"],["骅","驊"],["骆","駱"],["骇","駭"],["骈","駢"],["骊","驪"],["骋","騁"],["验","驗"],["骍","騂"],["骎","駸"],["骏","駿"],["骐","騏"],["骑","騎"],["骒","騍"],["骓","騅"],["骕","驌"],["骖","驂"],["骗","騙"],["骘","騭"],["骙","騤"],["骚","騷"],["骛","騖"],["骜","驁"],["骝","騮"],["骞","騫"],["骟","騸"],["骠","驃"],["骡","騾"],["骢","驄"],["骣","驏"],["骤","驟"],["骥","驥"],["骦","驦"],["骧","驤"],["髅","髏"],["髋","髖"],["髌","髕"],["鬓","鬢"],["魇","魘"],["魉","魎"],["鱼","魚"],["鱿","魷"],["鲀","魨"],["鲁","魯"],["鲂","魴"],["鲅","鱍"],["鲆","平"],["鲇","占"],["鲈","鱸"],["鲊","鮓"],["鲋","鮒"],["鲍","鮑"],["鲎","鱟"],["鲐","鮐"],["鲑","鮭"],["鲒","鮚"],["鲔","鮪"],["鲕","鮞"],["鲖","鮦"],["鲙","鱠"],["鲚","鱭"],["鲛","鮫"],["鲜","鮮"],["鲞","鯗"],["鲟","鱘"],["鲠","鯁"],["鲡","鱺"],["鲢","鰱"],["鲣","鰹"],["鲤","鯉"],["鲥","鰣"],["鲦","鰷"],["鲧","鯀"],["鲨","鯊"],["鲩","鯇"],["鲫","鯽"],["鲭","鯖"],["鲮","鯪"],["鲰","鯫"],["鲱","鯡"],["鲲","鯤"],["鲳","鯧"],["鲴","固"],["鲵","鯢"],["鲶","鯰"],["鲷","鯛"],["鲸","鯨"],["鲺","虱"],["鲻","鯔"],["鲼","賁"],["鲽","鰈"],["鲿","鱨"],["鳀","鯷"],["鳃","鰓"],["鳄","鱷"],["鳅","鰍"],["鳆","鰒"],["鳇","鰉"],["鳊","扁"],["鳋","蚤"],["鳌","鰲"],["鳍","鰭"],["鳏","鰥"],["鳐","鰩"],["鳒","鰜"],["鳔","鰾"],["鳕","鱈"],["鳖","鱉"],["鳗","鰻"],["鳘","鱉"],["鳙","庸"],["鳛","鰼"],["鳜","鱖"],["鳝","鱔"],["鳞","鱗"],["鳟","鱒"],["鳡","鰲"],["鳢","鱧"],["鳣","鱣"],["鸟","鳥"],["鸠","鳩"],["鸡","雞"],["鸢","鳶"],["鸣","鳴"],["鸤","鳲"],["鸥","鷗"],["鸦","鴉"],["鸧","鶬"],["鸨","鴇"],["鸩","鴆"],["鸪","鴣"],["鸬","鸕"],["鸭","鴨"],["鸮","鴞"],["鸯","鴦"],["鸰","鴒"],["鸱","鴟"],["鸲","鴝"],["鸳","鴛"],["鸵","鴕"],["鸶","鷥"],["鸷","鷙"],["鸹","鴰"],["鸺","鵂"],["鸼","鵃"],["鸽","鴿"],["鸾","鸞"],["鸿","鴻"],["鹁","鵓"],["鹂","鸝"],["鹃","鵑"],["鹄","鵠"],["鹅","鵝"],["鹆","鵒"],["鹇","鷳"],["鹈","鵜"],["鹉","鵡"],["鹊","鵲"],["鹋","苗"],["鹌","鵪"],["鹎","鵯"],["鹏","鵬"],["鹑","鶉"],["鹒","鶊"],["鹓","鵷"],["鹔","鷫"],["鹕","鶘"],["鹖","鶡"],["鹗","鶚"],["鹘","鶻"],["鹙","鶖"],["鹚","鶿"],["鹛","眉"],["鹜","鶩"],["鹝","鷊"],["鹞","鷂"],["鹠","鶹"],["鹡","鶺"],["鹢","鷁"],["鹣","鶼"],["鹤","鶴"],["鹥","鷖"],["鹦","鸚"],["鹧","鷓"],["鹨","鷚"],["鹩","鷯"],["鹪","鷦"],["鹫","鷲"],["鹬","鷸"],["鹭","鷺"],["鹯","鸇"],["鹰","鷹"],["鹱","獲"],["鹲","鸏"],["鹳","鸛"],["鹾","鹺"],["麦","麥"],["麸","麩"],["麹","麴"],["麺","麵"],["麽","麼"],["黄","黃"],["黉","黌"],["黒","黑"],["黙","默"],["黡","黶"],["黩","黷"],["黪","黲"],["黾","黽"],["鼋","黿"],["鼍","鼉"],["鼗","鞀"],["鼹","鼴"],["齄","皻"],["齐","齊"],["齑","齏"],["齿","齒"],["龀","齔"],["龁","齕"],["龂","齗"],["龃","齟"],["龄","齡"],["龅","齙"],["龆","齠"],["龇","齜"],["龈","齦"],["龉","齬"],["龊","齪"],["龋","齲"],["龌","齷"],["龙","龍"],["龚","龔"],["龛","龕"],["龟","龜"]]);function i(e){if(!e)return"";let t="";for(let n=0;n<e.length;n++)t+=r.get(e[n])||e[n];return t}var s=n(38),c=n(2);function l(e){return Promise.reject(new Error("NO_RESULT"))}function d(e){return Promise.reject(new Error("NETWORK_ERROR"))}function u(e){const t=new Error("MANUAL_VERIFICATION");return t.manualVerification=e,Promise.reject(t)}function p(e){return e&&"MANUAL_VERIFICATION"===e.message&&e.manualVerification&&"string"==typeof e.manualVerification.url}function h(e){return{result:{type:"MANUAL_VERIFICATION",...e}}}function g(e){return e&&"MANUAL_VERIFICATION"===e.type&&"string"==typeof e.url}async function f(e){return null==e||/zh-TW|zh-HK/i.test(e)?i:null}function m(e,...t){if(!e)return"";let n="",a=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(a=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const r=o.textContent||"";return a?a(r):r}const b={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function x(e,{mode:t="innerHTML",selector:n,transform:a,host:r,config:i=b}={}){const l=n?e.querySelector(n):e;if(!l)return"";if(r){const e=e=>{e.getAttribute("href")&&e.setAttribute("href",I(r,e,"href")),e.getAttribute("src")&&e.setAttribute("src",I(r,e,"src")),Object(c.g)()&&e.getAttribute("srcset")&&e.setAttribute("srcset",e.getAttribute("srcset").replace(/(,| |^)\/\//g,(e,t)=>t+"https://"))};(Object(s.a)(l,"a")||Object(s.a)(l,"img"))&&e(l),l.querySelectorAll("a").forEach(e),l.querySelectorAll("img").forEach(e)}const d=o.a.sanitize(l,{...i,RETURN_DOM_FRAGMENT:!0}),u=d.firstChild?d.firstChild[t]:"";return a?a(u):u}function w(e,t,n={}){return x(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function y(e,t,n={}){return x(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function M(e,t){const n=e.querySelector(t);n&&n.remove()}function C(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function E(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function I(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const a=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?a+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},33:function(e,t,n){"use strict";n.d(t,"h",(function(){return g})),n.d(t,"i",(function(){return f})),n.d(t,"k",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"m",(function(){return x})),n.d(t,"b",(function(){return w})),n.d(t,"j",(function(){return y})),n.d(t,"e",(function(){return M})),n.d(t,"l",(function(){return E})),n.d(t,"g",(function(){return I})),n.d(t,"n",(function(){return O})),n.d(t,"c",(function(){return j})),n.d(t,"a",(function(){return N})),n.d(t,"d",(function(){return v}));var a=n(90),o=n.n(a),r=n(78),i=n(185),s=n(1),c=n(100),l=n(67),d=n(81),u=n(10);function p(e){return{v:1,d:o.a.deflate(JSON.stringify(e),{to:"string"})}}function h(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}function g(e,t){const n=/^%%_(\S+)_%%$/.exec(e);return n&&t("common:profile."+n[1])||e}async function f(){let e=[],t=[],n="";const a=await s.c.sync.get(["profileIDList","activeProfileID"]);if(a.profileIDList&&(t=a.profileIDList.filter(e=>Boolean(e&&"string"==typeof e.id&&"string"==typeof e.name))),a.activeProfileID&&(n=a.activeProfileID),t.length>0)for(const{id:n}of t){const t=await b(n);e.push(t?Object(i.a)(t):Object(r.b)(n))}else({profileIDList:t,profiles:e}=Object(r.a)()),n=t[0].id;n||(n=t[0].id);let o=e.find(({id:e})=>e===n);o||(o=e[0],n=o.id),await s.c.sync.set({profileIDList:t,activeProfileID:n});for(const t of e)await x(t);return o}async function m(){const{profileIDList:e}=await s.c.sync.get("profileIDList");return e&&await s.c.sync.remove([...e.map(({id:e})=>e),"profileIDList","activeProfileID","configProfileIDs","activeConfigID"]),f()}async function b(e){return h((await s.c.sync.get(e))[e])}async function x(e){return s.c.sync.set({[e.id]:p(e)})}async function w(e){const t=e.id,n=await I();return s.c.sync.set({profileIDList:[...n,e],[t]:p(Object(r.b)(t))})}async function y(e){const t=await C();let n=await I();return n=n.filter(t=>t.id!==e),t===e&&await E(n[0].id),await O(n),s.c.sync.remove(e)}async function M(){const e=await C();if(e){const t=await b(e);if(t)return t}return Object(r.b)()}async function C(){return(await s.c.sync.get("activeProfileID")).activeProfileID||""}function E(e){return s.c.sync.set({activeProfileID:e})}async function I(){return(await s.c.sync.get("profileIDList")).profileIDList||[]}function O(e){return s.c.sync.set({profileIDList:e})}function j(e){s.c.sync.addListener("profileIDList",({profileIDList:t})=>{t&&t.newValue&&e(t)})}async function N(e){let t=await C();s.c.sync.addListener(n=>{if(n.activeProfileID){const{newValue:a,oldValue:o}=n.activeProfileID;a&&(t=a,o?s.c.sync.get([o,a]).then(t=>{t[a]&&e({newProfile:h(t[a]),oldProfile:h(t[o])})}):b(a).then(t=>{t&&e({newProfile:t})}))}if(t&&n[t]){const{newValue:a,oldValue:o}=n[t];if(a)return void e({newProfile:h(a),oldProfile:h(o)})}})}function v(){return Object(c.a)(Object(l.a)(I()),Object(d.a)(j).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newValue)))}},354:function(e,t,n){"use strict";n.d(t,"a",(function(){return V}));var a=n(23),o=n(33),r=n(2),i=n(11),s=n(1),c=n(0),l=n.n(c),d=n(125),u=n(190),p=n(136),h=n(736),g=n(404),f=n(10),m=n(508),b=n(9);const x=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn-dir",title:t("tip.historyBack"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M 7.191 15.999 L 21.643 1.548 C 21.998 1.192 21.998 0.622 21.643 0.267 C 21.288 -0.089 20.718 -0.089 20.362 0.267 L 5.267 15.362 C 4.911 15.718 4.911 16.288 5.267 16.643 L 20.362 31.732 C 20.537 31.906 20.771 32 20.999 32 C 21.227 32 21.462 31.913 21.636 31.732 C 21.992 31.377 21.992 30.807 21.636 30.451 L 7.191 15.999 Z"})))},w=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn-dir",title:e.t("tip.historyNext"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},l.a.createElement("path",{d:"M 25.643 15.362 L 10.547 0.267 C 10.192 -0.089 9.622 -0.089 9.267 0.267 C 8.911 0.622 8.911 1.192 9.267 1.547 L 23.718 15.999 L 9.267 30.451 C 8.911 30.806 8.911 31.376 9.267 31.732 C 9.441 31.906 9.676 32 9.904 32 C 10.132 32 10.366 31.913 10.541 31.732 L 25.636 16.636 C 25.992 16.288 25.992 15.711 25.643 15.362 Z"})))},y=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.searchText"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52.966 52.966"},l.a.createElement("path",{d:"M51.704 51.273L36.844 35.82c3.79-3.8 6.14-9.04 6.14-14.82 0-11.58-9.42-21-21-21s-21 9.42-21 21 9.42 21 21 21c5.082 0 9.747-1.817 13.383-4.832l14.895 15.49c.196.206.458.308.72.308.25 0 .5-.093.694-.28.398-.382.41-1.015.028-1.413zM21.984 40c-10.478 0-19-8.523-19-19s8.522-19 19-19 19 8.523 19 19-8.525 19-19 19z"})))},M=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openOptions"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 612 612"},l.a.createElement("path",{d:"M0 97.92v24.48h612V97.92H0zm0 220.32h612v-24.48H0v24.48zm0 195.84h612V489.6H0v24.48z"})))},C=e=>{const{t:t,isFav:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.addToNotebook"),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon-fav"+(n?" isActive":""),width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},l.a.createElement("path",{d:"M 23.363 2 C 20.105 2 17.3 4.65 16.001 7.42 C 14.701 4.65 11.896 2 8.637 2 C 4.145 2 0.5 5.646 0.5 10.138 C 0.5 19.278 9.719 21.673 16.001 30.708 C 21.939 21.729 31.5 18.986 31.5 10.138 C 31.5 5.646 27.855 2 23.363 2 Z"})))},E=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openHistory"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon-history",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},l.a.createElement("path",{d:"M34.688 3.315c-15.887 0-28.812 12.924-28.81 28.73-.012.25-.157 4.434 1.034 8.94l-3.88-2.262c-.965-.56-2.193-.235-2.76.727-.557.96-.233 2.195.728 2.755l9.095 5.302c.02.01.038.013.056.022.1.05.2.09.31.12.07.02.14.05.21.07.09.02.176.02.265.03.06.003.124.022.186.022.036 0 .07-.01.105-.015.034 0 .063.007.097.004.05-.003.097-.024.146-.032.097-.017.19-.038.28-.068.08-.028.157-.06.23-.095.086-.04.165-.085.24-.137.074-.046.14-.096.206-.15.07-.06.135-.125.198-.195.06-.067.11-.135.16-.207.026-.04.062-.07.086-.11.017-.03.017-.067.032-.1.03-.053.07-.1.096-.16l3.62-8.96c.417-1.03-.08-2.205-1.112-2.622-1.033-.413-2.207.083-2.624 1.115l-1.86 4.6c-1.24-4.145-1.1-8.406-1.093-8.523C9.92 18.455 21.04 7.34 34.7 7.34c13.663 0 24.78 11.116 24.78 24.78S48.357 56.9 34.694 56.9c-1.114 0-2.016.902-2.016 2.015s.9 2.02 2.012 2.02c15.89 0 28.81-12.925 28.81-28.81 0-15.89-12.923-28.814-28.81-28.814z"}),l.a.createElement("path",{d:"M33.916 36.002c.203.084.417.114.634.13.045.002.09.026.134.026.236 0 .465-.054.684-.134.06-.022.118-.054.177-.083.167-.08.32-.18.463-.3.03-.023.072-.033.103-.07L48.7 22.98c.788-.79.788-2.064 0-2.852-.787-.788-2.062-.788-2.85 0l-11.633 11.63-10.44-4.37c-1.032-.432-2.208.052-2.64 1.08-.43 1.027.056 2.208 1.08 2.638L33.907 36c.002 0 .006 0 .01.002z"})))},I=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openNotebook"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 64 64"},l.a.createElement("path",{d:"M 57.389 0.966 L 6.612 0.966 C 5.699 0.966 4.957 1.525 4.957 2.217 L 4.957 61.783 C 4.955 62.282 5.342 62.734 5.949 62.933 C 6.16 63.001 6.385 63.036 6.612 63.034 C 7.023 63.032 7.417 62.917 7.723 62.709 L 32.003 46.006 L 56.282 62.709 C 57.227 63.354 58.742 62.983 59.008 62.041 C 59.033 61.956 59.044 61.871 59.044 61.783 L 59.044 2.217 C 59.044 1.525 58.306 0.966 57.389 0.966 Z M 33.111 43.392 C 32.478 42.954 31.508 42.954 30.875 43.392 L 8.266 58.955 L 8.266 3.469 L 55.735 3.469 L 55.735 58.955 L 33.111 43.392 Z"}),l.a.createElement("path",{d:"M 47.508 17.756 C 47.287 17.526 46.994 17.375 46.677 17.33 L 37.446 15.988 L 33.262 7.693 C 32.767 6.7 31.382 6.614 30.77 7.541 C 30.737 7.59 30.708 7.641 30.68 7.693 L 26.555 16.06 L 17.325 17.401 C 16.225 17.56 15.712 18.849 16.399 19.722 C 16.44 19.774 16.484 19.822 16.532 19.867 L 23.252 26.3 L 21.723 35.561 C 21.541 36.655 22.613 37.537 23.653 37.146 C 23.708 37.127 23.763 37.102 23.816 37.076 L 32.066 32.748 L 40.316 37.076 C 41.3 37.59 42.472 36.845 42.425 35.737 C 42.423 35.679 42.417 35.619 42.407 35.561 L 40.792 26.3 L 47.472 19.794 C 48.045 19.243 48.061 18.33 47.508 17.756 Z M 38.238 24.857 C 37.899 25.186 37.744 25.661 37.821 26.127 L 39.031 33.165 L 32.687 29.835 C 32.265 29.613 31.765 29.613 31.344 29.835 L 25.013 33.165 L 26.223 26.113 C 26.3 25.646 26.145 25.174 25.806 24.844 L 20.685 19.853 L 27.768 18.743 C 28.236 18.672 28.641 18.376 28.849 17.95 L 32.023 11.531 L 35.196 17.95 C 35.403 18.376 35.808 18.672 36.277 18.743 L 43.36 19.766 L 38.238 24.857 Z"})))},O=e=>{const{t:t,isPinned:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.pinPanel"),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 53.011 53.011"},l.a.createElement("path",{className:"menuBar-Btn_Icon-pin"+(n?" isActive":""),d:"M52.963 21.297c-.068-.33-.297-.603-.61-.727-8.573-3.416-16.172-.665-18.36.288L19.113 8.2C19.634 3.632 17.17.508 17.06.372c-.18-.22-.442-.356-.725-.372-.282-.006-.56.09-.76.292L.32 15.546c-.202.2-.308.48-.29.765.015.285.152.55.375.727 2.775 2.202 6.35 2.167 7.726 2.055l12.722 14.953c-.868 2.23-3.52 10.27-.307 18.337.124.313.397.54.727.61.067.013.135.02.202.02.263 0 .518-.104.707-.293l14.57-14.57 13.57 13.57c.196.194.452.292.708.292s.512-.098.707-.293c.39-.392.39-1.024 0-1.415l-13.57-13.57 14.527-14.528c.237-.238.34-.58.27-.91zm-17.65 15.458L21.89 50.18c-2.437-8.005.993-15.827 1.03-15.91.158-.352.1-.764-.15-1.058L9.31 17.39c-.19-.225-.473-.352-.764-.352-.05 0-.103.004-.154.013-.036.007-3.173.473-5.794-.954l13.5-13.5c.604 1.156 1.39 3.26.964 5.848-.058.346.07.697.338.924l15.785 13.43c.31.262.748.31 1.105.128.077-.04 7.378-3.695 15.87-1.017L35.313 36.754z"})))},j=e=>{const{t:t,isFocus:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip."+(n?"focusPanel":"unfocusPanel")),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 53 53"},n?l.a.createElement(l.a.Fragment,null,l.a.createElement("path",{d:"M 36.414 35 L 46 35 C 46.553 35 47 34.552 47 34 C 47 33.448 46.553 33 46 33 L 34 33 C 33.87 33 33.74 33.027 33.618 33.077 C 33.374 33.178 33.179 33.373 33.077 33.618 C 33.026 33.74 33 33.869 33 34 L 33 46 C 33 46.552 33.448 47 34 47 C 34.552 47 35 46.552 35 46 L 35 36.414 L 51.293 52.707 C 51.488 52.902 51.744 53 52 53 C 52.256 53 52.512 52.902 52.707 52.707 C 53.098 52.316 53.098 51.684 52.707 51.293 L 36.414 35 Z"}),l.a.createElement("path",{d:"M 16.584 17.999 L 6.999 17.999 C 6.447 17.999 5.999 18.447 5.999 18.999 C 5.999 19.551 6.447 19.999 6.999 19.999 L 18.999 19.999 C 19.129 19.999 19.259 19.972 19.381 19.922 C 19.625 19.821 19.82 19.626 19.922 19.381 C 19.973 19.259 19.999 19.129 19.999 18.999 L 19.999 6.999 C 19.999 6.447 19.551 5.999 18.999 5.999 C 18.447 5.999 17.999 6.447 17.999 6.999 L 17.999 16.585 L 1.707 0.293 C 1.316 -0.098 0.684 -0.098 0.293 0.293 C -0.098 0.684 -0.098 1.316 0.293 1.707 L 16.584 17.999 Z"}),l.a.createElement("path",{d:"M 19.382 33.077 C 19.26 33.027 19.13 33 19 33 L 7 33 C 6.448 33 6 33.448 6 34 C 6 34.552 6.448 35 7 35 L 16.586 35 L 0.293 51.293 C -0.098 51.684 -0.098 52.316 0.293 52.707 C 0.488 52.902 0.744 53 1 53 C 1.256 53 1.512 52.902 1.707 52.707 L 18 36.414 L 18 46 C 18 46.552 18.448 47 19 47 C 19.552 47 20 46.552 20 46 L 20 34 C 20 33.87 19.973 33.74 19.923 33.618 C 19.821 33.373 19.627 33.179 19.382 33.077 Z"}),l.a.createElement("path",{d:"M 33.618 19.923 C 33.74 19.973 33.87 20 34 20 L 46 20 C 46.553 20 47 19.552 47 19 C 47 18.448 46.553 18 46 18 L 36.414 18 L 52.707 1.707 C 53.098 1.316 53.098 0.684 52.707 0.293 C 52.316 -0.098 51.684 -0.098 51.293 0.293 L 35 16.586 L 35 7 C 35 6.448 34.552 6 34 6 C 33.448 6 33 6.448 33 7 L 33 19 C 33 19.13 33.027 19.26 33.077 19.382 C 33.179 19.627 33.373 19.821 33.618 19.923 Z"}),l.a.createElement("path",{d:"M 26.5 19 C 22.364 19 19 22.364 19 26.5 C 19 30.636 22.364 34 26.5 34 C 30.636 34 34 30.636 34 26.5 C 34 22.364 30.636 19 26.5 19 Z M 26.5 32 C 23.467 32 21 29.533 21 26.5 C 21 23.467 23.467 21 26.5 21 C 29.533 21 32 23.467 32 26.5 C 32 29.533 29.533 32 26.5 32 Z"})):l.a.createElement(l.a.Fragment,null,l.a.createElement("path",{d:"M 34 20 C 33.744 20 33.488 19.902 33.293 19.707 C 32.902 19.316 32.902 18.684 33.293 18.293 L 49.586 2 L 40 2 C 39.448 2 39 1.552 39 1 C 39 0.448 39.448 0 40 0 L 51.978 0 C 52.241 -0.006 52.506 0.092 52.707 0.293 C 52.908 0.494 53.006 0.759 53 1.022 L 53 13 C 53 13.552 52.552 14 52 14 C 51.448 14 51 13.552 51 13 L 51 3.414 L 34.707 19.707 C 34.512 19.902 34.256 20 34 20 Z"}),l.a.createElement("path",{d:"M 0.293 52.707 C 0.092 52.506 -0.006 52.241 0 51.978 L 0 40 C 0 39.448 0.448 39 1 39 C 1.552 39 2 39.448 2 40 L 2 49.586 L 18.293 33.293 C 18.684 32.902 19.316 32.902 19.707 33.293 C 20.098 33.684 20.098 34.316 19.707 34.707 L 3.414 51 L 13 51 C 13.552 51 14 51.448 14 52 C 14 52.552 13.552 53 13 53 L 1 53 C 0.879 53 0.764 52.979 0.658 52.94 C 0.602 52.919 0.548 52.894 0.498 52.865 C 0.424 52.822 0.355 52.769 0.293 52.707 Z"}),l.a.createElement("path",{d:"M 33.293 34.707 C 32.902 34.316 32.902 33.684 33.293 33.293 C 33.684 32.902 34.316 32.902 34.707 33.293 L 51 49.586 L 51 40 C 51 39.448 51.448 39 52 39 C 52.552 39 53 39.448 53 40 L 53 51.978 C 53.006 52.241 52.908 52.506 52.707 52.707 C 52.645 52.769 52.576 52.822 52.502 52.865 C 52.452 52.894 52.398 52.919 52.342 52.94 C 52.236 52.979 52.121 53 52 53 L 40 53 C 39.448 53 39 52.552 39 52 C 39 51.448 39.448 51 40 51 L 49.586 51 Z"}),l.a.createElement("path",{d:"M 18.999 19.999 C 18.743 19.999 18.487 19.901 18.292 19.706 L 2 3.414 L 2 13 C 2 13.552 1.552 14 1 14 C 0.448 14 0 13.552 0 13 L 0 1.022 C -0.006 0.759 0.092 0.494 0.293 0.293 C 0.494 0.092 0.759 -0.006 1.022 0 L 13 0 C 13.552 0 14 0.448 14 1 C 14 1.552 13.552 2 13 2 L 3.414 2 L 19.706 18.292 C 20.097 18.683 20.097 19.315 19.706 19.706 C 19.51 19.901 19.254 19.999 18.999 19.999 Z"}))))},N=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.closePanel"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 31.112 31.112"},l.a.createElement("path",{d:"M31.112 1.414L29.698 0 15.556 14.142 1.414 0 0 1.414l14.142 14.142L0 29.698l1.414 1.414L15.556 16.97l14.142 14.142 1.414-1.414L16.97 15.556"})))},v=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.sidebar"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},l.a.createElement("path",{d:"M 29.318 0 L 0.682 0 C 0.305 0 0 0.305 0 0.682 L 0 29.318 C 0 29.695 0.305 30 0.682 30 L 29.318 30 C 29.695 30 30 29.695 30 29.318 L 30 0.682 C 30 0.305 29.695 0 29.318 0 Z M 9.545 28.636 L 1.364 28.636 L 1.364 1.364 L 9.545 1.364 L 9.545 28.636 Z M 28.636 28.636 L 10.909 28.636 L 10.909 1.364 L 28.636 1.364 L 28.636 28.636 Z"})))};var A=n(94),D=n(30),z=n(256),T=n(112),k=n(39),L=n(187),S=n(88),B=n(182),_=n(92),P=n(67),W=n(121),U=n(140);const H=l.a.forwardRef((e,t)=>Object(z.a)(Object(p.a)(n=>n.pipe(Object(f.a)(([e])=>e),Object(k.a)(Boolean),Object(B.a)(),Object(g.a)(750),Object(W.a)(n=>Object(P.a)(s.a.send({type:"GET_SUGGESTS",payload:n}).catch(()=>[])).pipe(Object(f.a)(n=>l.a.createElement(U.a,{ref:t,list:n.map(e=>({key:e.entry,value:e.entry,label:l.a.createElement(l.a.Fragment,null,l.a.createElement("span",{className:"menuBar-SuggestsEntry"},e.entry),l.a.createElement("span",{className:"menuBar-SuggestsExplain"},e.explain))})),...e})),Object(m.a)(l.a.createElement(U.a,{...e}))))),[e.text]),()=>l.a.createElement(U.a,{...e}))),R=e=>{const t=Object(c.useMemo)(()=>e.text.replace(/\s+/g," "),[e.text]),[n,a]=Object(d.a)(_.a),[o,r]=Object(d.a)(_.a),[i,u]=Object(d.a)(D.b),g=Object(z.a)(Object(p.a)(e=>Object(h.a)([e,Object(T.a)(a.pipe(Object(k.a)(e=>!e)),r,u.pipe(Object(L.a)(0)),s.a.createStream("SEARCH_TEXT_BOX").pipe(Object(S.a)(!1)))]).pipe(Object(f.a)(([[e,t],n])=>Boolean(e&&t&&n)),Object(B.a)()),[e.enableSuggest,e.text]),!1),m=Object(z.a)(a),b=Object(c.useRef)(!1),x=Object(c.useRef)(null),w=Object(c.useRef)(null),M=Object(c.useRef)(()=>{x.current&&(x.current.focus(),x.current.select())}).current,C=t=>{b.current=!1,i(!1),e.onSearch("string"==typeof t?t:e.text),M()},E=()=>{!e.shouldFocus||b.current||g||M()};return Object(c.useLayoutEffect)(E,[]),Object(c.useEffect)(E,[e.text]),l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"menuBar-SearchBox_Wrap"+(m?" isExpand":"")},l.a.createElement("input",{type:"text",className:"menuBar-SearchBox",key:"search-box",ref:x,onChange:t=>{e.onInput(t.currentTarget.value),i(!0)},onKeyDown:t=>{if(t.nativeEvent.stopPropagation(),b.current=!0,"ArrowDown"===t.key){const e=w.current&&w.current.querySelector("button");e?e.focus():i(!0),t.preventDefault(),t.stopPropagation()}else"Enter"===t.key&&C(e.text)},onFocus:e=>{e.currentTarget.select(),n(e)},onBlur:n,value:t}),l.a.createElement(A.a,{classNames:"csst-menuBar-SearchBox_Suggests",in:g,timeout:100,mountOnEnter:!0,unmountOnExit:!0,onExited:()=>e.onHeightChanged(0)},()=>l.a.createElement("div",{className:"menuBar-SearchBox_Suggests"},l.a.createElement(H,{ref:w,text:t,onSelect:C,onFocus:o,onBlur:o,onArrowUpFirst:M,onClose:M,onHeightChanged:e.onHeightChanged})))),l.a.createElement(y,{t:e.t,onClick:C}))};var F=n(138);const Q=e=>{const{t:t}=Object(b.d)(["common"]),n=e.profiles.map(n=>({key:n.id,value:n.id,label:l.a.createElement("span",{className:"menuBar-ProfileItem"+(n.id===e.activeProfileId?" isActive":"")},Object(o.h)(n.name,t))}));return l.a.createElement(F.a,{Button:Y,items:n,onBtnClick:()=>(s.a.send({type:"OPEN_URL",payload:{url:"options.html",self:!0}}),!1),onSelect:e.onSelectProfile,onHeightChanged:e.onHeightChanged})};function Y(e){const{t:t}=Object(b.d)(["content"]);return l.a.createElement(M,{...e,t:t,disabled:Object(r.i)()})}function G(e){return Object(m.a)(0)(e)}var K=n(29),$=n(42),Z=n(166);const V=Object(a.b)(e=>({text:e.text,isInNotebook:e.isFav,shouldFocus:!e.isExpandMtaBox&&((e.isQSPanel||Object(r.l)())&&e.config.qsFocus||Object(r.k)()),enableSuggest:e.config.searchSuggests,isTrackHistory:e.config.searchHistory,histories:e.searchHistory,historyIndex:e.historyIndex,showedDictAuth:e.config.showedDictAuth,profiles:e.profiles,activeProfileId:e.activeProfile.id,isPinned:e.isPinned,isQSFocus:e.isQSFocus}),e=>({searchText:t=>{e({type:"SEARCH_START",payload:{word:Object(i.e)({text:t,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}})},updateText:t=>{e({type:"UPDATE_TEXT",payload:t})},addToNoteBook:()=>{e({type:"ADD_TO_NOTEBOOK"})},switchHistory:t=>{e({type:"SWITCH_HISTORY",payload:t})},togglePin:()=>{e({type:"TOGGLE_PIN"})},toggleQSFocus:()=>{e({type:"TOGGLE_QS_FOCUS"})},onClose:()=>{Object(r.n)()?window.close():e({type:"CLOSE_PANEL"})},onSwitchSidebar:e=>{s.a.send({type:"QS_SWITCH_SIDEBAR",payload:e})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"menubar",height:30,floatHeight:t}})},onDragAreaMouseDown:t=>{e({type:"DRAG_START_COORD",payload:{x:t.clientX,y:t.clientY}})},onDragAreaTouchStart:t=>{e({type:"DRAG_START_COORD",payload:{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}})},onSelectProfile:t=>{e(async(e,n)=>{var a;const c=n(),{showedDictAuth:l,dictAuth:d}=c.config;l||Object(r.k)()||(await Object(K.f)({...c.config,showedDictAuth:!0}),!Object(Z.a)(d).every(e=>Object(Z.a)(d[e]).every(t=>{var n;return!(null===(n=d[e])||void 0===n?void 0:n[t])})))?(await Object(o.l)(t),await Object($.d)(10),e({type:"SEARCH_START",payload:{word:(null===(a=c.searchHistory[c.historyIndex])||void 0===a?void 0:a.text)===c.text?c.searchHistory[c.historyIndex]:Object(i.e)({text:c.text,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}})):s.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=DictAuths",self:!0}})})}}))(e=>{const{t:t}=Object(b.d)(["content","common"]),[n,a]=Object(d.a)(G),[o,i]=Object(d.a)(G);return Object(u.a)(Object(p.a)(()=>Object(h.a)(a,i).pipe(Object(g.a)(100),Object(f.a)(e=>{const t=Math.max(...e);return t>0?t+72:0}))),e.onHeightChanged),l.a.createElement("header",{className:"menuBar"},l.a.createElement(x,{t:t,disabled:e.historyIndex<=0,onClick:()=>e.switchHistory("prev")}),l.a.createElement(w,{t:t,disabled:e.historyIndex>=e.histories.length-1,onClick:()=>e.switchHistory("next")}),l.a.createElement(R,{key:"searchbox",t:t,text:e.text,shouldFocus:e.shouldFocus,enableSuggest:e.enableSuggest,onInput:e.updateText,onSearch:e.searchText,onHeightChanged:o}),Object(r.n)()||l.a.createElement("div",{className:"menuBar-DragArea",onMouseDown:e.onDragAreaMouseDown,onTouchStart:e.onDragAreaTouchStart}),l.a.createElement(Q,{t:t,profiles:e.profiles,activeProfileId:e.activeProfileId,onSelectProfile:e.onSelectProfile,onHeightChanged:n}),l.a.createElement(C,{t:t,isFav:e.isInNotebook,onClick:e.addToNoteBook,onMouseDown:e=>{2===e.button&&(e.preventDefault(),e.stopPropagation(),e.currentTarget.blur(),s.a.send({type:"OPEN_URL",payload:{url:"notebook.html",self:!0}}))}}),e.isTrackHistory?l.a.createElement(E,{t:t,onClick:()=>s.a.send({type:"OPEN_URL",payload:{url:"history.html",self:!0}})}):l.a.createElement(I,{t:t,onClick:()=>s.a.send({type:"OPEN_URL",payload:{url:"notebook.html",self:!0}})}),Object(r.l)()?l.a.createElement(l.a.Fragment,null,l.a.createElement(j,{t:t,isFocus:e.isQSFocus,onClick:e.toggleQSFocus,disabled:Object(r.i)()||Object(r.k)()}),l.a.createElement(v,{t:t,onMouseDown:t=>{t.preventDefault(),e.onSwitchSidebar(0===t.button?"left":"right")}})):Object(r.k)()?null:l.a.createElement(l.a.Fragment,null,l.a.createElement(O,{t:t,isPinned:e.isPinned,onClick:e.togglePin,disabled:Object(r.i)()||Object(r.k)()}),l.a.createElement(N,{t:t,onClick:e.onClose})))})},355:function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var a=n(23),o=n(16),r=n(1),i=n(0),s=n.n(i),c=n(125),l=n(30),d=n(5),u=n.n(d),p=n(189),h=n(11),g=n(42),f=n(9),m=n(138);const b=e=>{const{t:t,ready:a}=Object(f.d)(["dicts","content","langcode"]),[o,c]=Object(i.useState)(!1);Object(i.useEffect)(()=>{const t=setTimeout(()=>c(e.isSearching),1500*Math.random());return()=>{clearTimeout(t)}},[e.isSearching]);const l=Object(i.useMemo)(()=>browser.runtime.getURL(n(481)("./"+e.dictID+"/favicon.png")),[e.dictID]),d=Object(i.useMemo)(()=>{const n=[],a=e=>e.replace(/%t\((\S+)\)/g,(e,n)=>t(n));if(e.catalog)for(const t of e.catalog)t.options?n.push({key:t.key,value:t.value,title:t.title&&a(t.title),options:t.options.map(e=>({value:e.value,label:a(e.label)}))}):n.push({key:t.key,value:t.value,label:a(t.label)});return n.push({key:"_options",value:"_options",label:t("content:tip.openOptions")}),n},[e.catalog,a]);return s.a.createElement("header",{className:u()("dictItemHead",{isSearching:e.isSearching})},s.a.createElement("img",{className:"dictItemHead-Logo",src:l,alt:"dict logo"}),s.a.createElement("h1",{className:"dictItemHead-Title"},s.a.createElement("a",{href:"#",onClick:t=>{t.stopPropagation(),t.preventDefault(),e.openDictSrcPage(e.dictID,t.ctrlKey)}},t(e.dictID+".name"))),s.a.createElement(m.a,{compact:!0,Button:x,items:d,top:25,onSelect:(t,n)=>{"_options"===t?r.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=Dictionaries",self:!0}}):e.onCatalogSelect({key:t,value:n})}}),o&&s.a.createElement("div",{className:"dictItemHead-Loader"},s.a.createElement("div",null),s.a.createElement("div",null),s.a.createElement("div",null),s.a.createElement("div",null),s.a.createElement("div",null)),s.a.createElement("div",{className:"dictItemHead-EmptyArea",onClick:e.toggleFold}),s.a.createElement("button",{className:"dictItemHead-FoldArrowBtn",onMouseOut:e=>e.currentTarget.blur(),onClick:e.toggleFold},s.a.createElement("svg",{className:"dictItemHead-FoldArrow",width:"18",height:"18",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("path",{className:"dictItemHead-FoldArrowPath",d:"M43.854 59.414L14.146 29.707 43.854 0l1.414 1.414-28.293 28.293L45.268 58"}))))};function x(e){return s.a.createElement("button",{className:"dictItemHead-Menus_Btn",...e},s.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 512 512"},s.a.createElement("path",{d:"M301.256 394.29A45.256 45.256 0 01256 439.546a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 349.034a45.256 45.256 0 0145.256 45.256zM301.256 257.48A45.256 45.256 0 01256 302.736a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 212.224a45.256 45.256 0 0145.256 45.256zM301.256 117.71A45.256 45.256 0 01256 162.964a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 72.453a45.256 45.256 0 0145.256 45.256z"})))}var w=n(223),y=n(2),M=n(3),C=n(271),E=n(97);const I=({result:e})=>{const{t:t}=Object(f.d)("content");return s.a.createElement("div",{className:"dictManualVerification"},s.a.createElement("h2",null,t("manualVerification.title")),s.a.createElement("p",null,t("manualVerification.message")),s.a.createElement("a",{href:e.url,target:"_blank",rel:"nofollow noopener noreferrer"},t("manualVerification.openPage")))},O=n(578).toString(),j=e=>{const t=Object(i.useMemo)(()=>s.a.lazy(()=>n(547)(`./${e.dictID}/View.tsx`)),[e.dictID]),a=Object(i.useMemo)(()=>s.a.lazy(async()=>{const t=await n(548)(`./${e.dictID}/_style.shadow.scss`);return{default:()=>s.a.createElement("style",null,(t.default||t).toString())}}),[e.dictID]);return s.a.createElement(C.a,{error:N},s.a.createElement(i.Suspense,{fallback:null},"FINISH"===e.searchStatus&&e.searchResult&&s.a.createElement(w.a.div,null,s.a.createElement("div",{ref:e.dictRootRef,className:u()({darkMode:e.darkMode})},s.a.createElement("style",null,O),s.a.createElement(a,null),e.panelCSS?s.a.createElement("style",null,e.panelCSS):null,s.a.createElement(E.b,{className:u()("d-"+e.dictID,"dictRoot",y.b,{isAnimate:e.withAnimation}),onPlayStart:e.onSpeakerPlay,onMouseUp:e.onInPanelSelect},Object(M.l)(e.searchResult)?s.a.createElement(I,{result:e.searchResult}):s.a.createElement(t,{result:e.searchResult,searchText:e.searchText,catalogSelect$:e.catalogSelect$}))))))};function N(){return s.a.createElement("p",{style:{textAlign:"center"}},"Render error. Please"," ",s.a.createElement("a",{href:"https://github.com/crimx/ext-saladict/issues",target:"_blank",rel:"nofollow noopener noreferrer"},"report issue"),".")}var v=n(38);const A=e=>{const[t,n]=Object(c.a)(l.b),[a,o]=Object(i.useState)(!1),[d,f]=Object(i.useState)("COLLAPSE"),[m,x]=Object(i.useState)(10),w=Object(i.useMemo)(()=>Math.max(10,"COLLAPSE"===d?10:"FULL"===d?m:Math.min(m,e.preferredHeight)),[d,m,e.preferredHeight]);Object(i.useEffect)(()=>{"FINISH"===e.searchStatus?f("HALF"):f("COLLAPSE")},[e.searchStatus]),Object(i.useEffect)(()=>{e.onHeightChanged(e.dictID,w+20)},[w]);const y=Object(i.useRef)(null),M=Object(i.useRef)(null),C=Object(i.useCallback)(async n=>{if("#"!==n.key[0])return t(n);if(!M.current)return;const a=M.current.querySelector("#"+n.value);if(a){if("FULL"!==d&&(o(!0),f("FULL"),await Object(g.d)(0),o(!1)),y.current){const t=y.current.getRootNode();if(t.querySelector){const n=t.querySelector(".dictPanel-Body");if(n)return void n.scrollTo({top:a.getBoundingClientRect().y-n.firstElementChild.getBoundingClientRect().y-30,behavior:e.withAnimation?"smooth":"auto"})}}a.scrollIntoView({behavior:e.withAnimation?"smooth":"auto"})}},[d,e.withAnimation]);return s.a.createElement("section",{ref:y,className:u()("dictItem",{isUnfold:"COLLAPSE"!==d,noHeightTransition:a})},s.a.createElement(b,{dictID:e.dictID,catalog:e.catalog,isSearching:"SEARCHING"===e.searchStatus,toggleFold:function(){if("SEARCHING"===e.searchStatus)return;if("COLLAPSE"!==d)return f("COLLAPSE"),void e.onUserFold(e.dictID,!0);e.onUserFold(e.dictID,!1),e.searchResult?f("HALF"):e.searchText({id:e.dictID})},openDictSrcPage:e.openDictSrcPage,onCatalogSelect:C}),s.a.createElement("div",{className:"dictItem-Body",key:e.dictID,style:{height:w},onClick:function(t){if(t.ctrlKey||t.metaKey||t.altKey)return;if(!t.target.tagName)return;const n=t.currentTarget;for(let a=t.target;a&&a!==n;a=a.parentElement)if(Object(v.a)(a,"a")||"link"===a.getAttribute("role")){t.preventDefault(),t.stopPropagation();const n=a;return void(/nofollow|noopener|noreferrer/.test(n.rel)?r.a.send({type:"OPEN_URL",payload:{url:n.href}}):e.searchText({word:Object(h.e)({text:n.textContent||"",title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}))}}},s.a.createElement("article",{className:"dictItem-BodyMesure"},s.a.createElement(p.ResizeReporter,{reportInit:!0,onHeightChanged:x}),e.TestComp?"FINISH"===e.searchStatus&&e.searchResult&&s.a.createElement(e.TestComp,{result:e.searchResult,searchText:e.searchText,catalogSelect$:n}):s.a.createElement(j,{...e,catalogSelect$:n,dictRootRef:M})),"HALF"===d&&w<m&&e.searchResult&&s.a.createElement("button",{className:"dictItem-FoldMask",onClick:()=>f("FULL")},s.a.createElement("svg",{className:"dictItem-FoldMaskArrow",width:"15",height:"15",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("path",{d:"M58 14.146L29.707 42.44 1.414 14.145 0 15.56 29.707 45.27 59.414 15.56"})))))};var D=n(190),z=n(404),T=n(179);const k=s.a.memo(A),L=Object(o.a)((e,t)=>e.map(e=>({dictID:e.id,searchStatus:e.searchStatus,searchResult:e.searchResult,catalog:e.catalog,preferredHeight:t[e.id].preferredHeight}))),S=Object(a.b)(e=>{const{config:t}=e;return{darkMode:t.darkMode,withAnimation:t.animation,panelCSS:t.panelCSS,touchMode:t.touchMode,language:t.language,doubleClickDelay:t.doubleClickDelay,dicts:L(e.renderedDicts,e.activeProfile.dicts.all)}},e=>({searchText:t=>{e({type:"SEARCH_START",payload:t})},openDictSrcPage:(t,n)=>{e((e,a)=>{const{searchHistory:o}=a(),i=o[o.length-1];r.a.send({type:"OPEN_DICT_SRC_PAGE",payload:{id:t,text:i&&i.text?i.text:"",active:!n}})})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"dictlist",height:t}})},onUserFold:(t,n)=>{e({type:"USER_FOLD_DICT",payload:{id:t,fold:n}})},onSpeakerPlay:t=>new Promise(n=>{e((e,a)=>{a().isExpandWaveformBox?r.a.self.send({type:"PLAY_AUDIO",payload:t}).then(n):r.a.send({type:"PLAY_AUDIO",payload:t}).then(n),e({type:"PLAY_AUDIO",payload:{src:t,timestamp:Date.now()}})})}),newSelection:t=>{e({type:"NEW_SELECTION",payload:t})}}))(e=>{const{dicts:t,onHeightChanged:n,touchMode:a,language:o,doubleClickDelay:r,newSelection:l,...d}=e,u=Object(i.useRef)({dicts:{},sum:0}),[p,h]=Object(c.a)(e=>Object(z.a)(10)(e));Object(D.a)(h,n);const g=Object(i.useRef)((e,t)=>{u.current.sum=u.current.sum-(u.current.dicts[e]||0)+t,u.current.dicts[e]=t,p(u.current.sum)}).current,f=Object(i.useMemo)(()=>t.reduce((e,{dictID:t})=>e+t+",",""),[t]);Object(i.useEffect)(()=>{const e=u.current;u.current=t.reduce((t,{dictID:n})=>(t.dicts[n]=e.dicts[n]||30,t.sum+=t.dicts[n]||30,t),{dicts:{},sum:0}),p(u.current.sum)},[f]);const m=Object(T.b)(a,o,r,l);return s.a.createElement("div",{className:"dictList"},t.map(e=>s.a.createElement(k,{key:e.dictID,...d,...e,onInPanelSelect:m,onHeightChanged:g})))})},356:function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var a=n(0),o=n.n(a),r=n(362),i=n(136),s=n(30),c=n(125),l=n(256),d=n(190),u=n(102),p=n(404),h=n(134),g=n(121),f=n(508),m=n(11),b=n(86),x=n(9),w=n(1),y=n(2);const M=({words:e,onCardDelete:t})=>{const{t:n}=Object(x.d)(["common","content"]);return o.a.createElement("aside",{className:"wordCards"},o.a.createElement("header",null,o.a.createElement("h1",{className:"wordCards-Title"},n("content:wordEditor.wordCardsTitle"))),o.a.createElement("ul",{className:"wordCards-CardList"},e.map(e=>o.a.createElement("li",{className:"wordCards-Card",key:e.date},o.a.createElement("button",{type:"button",className:"wordCards-CardClose",onClick:()=>t(e)},"×"),o.a.createElement("h2",{className:"wordCards-CardTitle"},e.text),e.context&&o.a.createElement("div",{className:"wordCards-CardItem"},o.a.createElement("svg",{className:"wordCards-CardItem_Icon",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.333 95.332"},o.a.createElement("title",null,n("note.context")),o.a.createElement("path",{d:"M 36.587 45.263 C 35.07 44.825 33.553 44.605 32.078 44.605 C 29.799 44.605 27.898 45.125 26.423 45.763 C 27.844 40.559 31.259 31.582 38.061 30.57 C 38.69 30.476 39.207 30.021 39.379 29.408 L 40.864 24.09 C 40.99 23.641 40.916 23.16 40.66 22.77 C 40.403 22.38 39.991 22.119 39.529 22.056 C 39.027 21.987 38.515 21.952 38.009 21.952 C 29.844 21.952 21.759 30.474 18.347 42.675 C 16.344 49.833 15.757 60.595 20.686 67.369 C 23.445 71.16 27.472 73.183 32.657 73.385 L 32.717 73.386 C 39.114 73.386 44.783 69.079 46.508 62.915 C 47.538 59.229 47.073 55.364 45.196 52.029 C 43.338 48.731 40.28 46.327 36.581 45.263 Z M 76.615 52.029 C 74.758 48.731 71.699 46.327 68.002 45.263 C 66.484 44.823 64.968 44.604 63.492 44.604 C 61.214 44.604 59.311 45.121 57.838 45.76 C 59.259 40.553 62.673 31.579 69.475 30.564 C 70.102 30.47 70.619 30.016 70.793 29.402 L 72.28 24.085 C 72.403 23.635 72.332 23.155 72.073 22.764 C 71.814 22.373 71.401 22.113 70.942 22.049 C 70.438 21.981 69.928 21.946 69.417 21.946 C 61.253 21.946 53.169 30.467 49.755 42.669 C 47.752 49.827 47.166 60.59 52.101 67.364 C 54.858 71.153 58.887 73.178 64.069 73.379 C 64.091 73.38 64.111 73.381 64.134 73.381 C 70.527 73.381 76.198 69.074 77.923 62.908 C 78.953 59.224 78.485 55.358 76.609 52.022 Z"})),o.a.createElement("div",{className:"wordCards-CardItem_Cont"},C(e.context))),e.trans&&o.a.createElement("div",{className:"wordCards-CardItem"},o.a.createElement("svg",{className:"wordCards-CardItem_Icon",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 469.333 469.333"},o.a.createElement("title",null,n("note.trans")),o.a.createElement("path",{d:"M253.227 300.267L199.04 246.72l.64-.64c37.12-41.387 63.573-88.96 79.147-139.307h62.507V64H192V21.333h-42.667V64H0v42.453h238.293c-14.4 41.173-36.907 80.213-67.627 114.347-19.84-22.08-36.267-46.08-49.28-71.467H78.72c15.573 34.773 36.907 67.627 63.573 97.28l-108.48 107.2L64 384l106.667-106.667 66.347 66.347 16.213-43.413zM373.333 192h-42.667l-96 256h42.667l24-64h101.333l24 64h42.667l-96-256zm-56 149.333L352 248.853l34.667 92.48h-69.334z"})),o.a.createElement("div",{className:"wordCards-CardItem_Cont"},C(e.trans))),e.note&&o.a.createElement("div",{className:"wordCards-CardItem"},o.a.createElement("svg",{className:"wordCards-CardItem_Icon",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 35.738 35.738"},o.a.createElement("title",null,n("note.note")),o.a.createElement("path",{d:"M0 35.667S11.596-1.403 35.738.117c0 0-2.994 4.85-10.55 6.416 0 0 3.517.43 6.368-.522 0 0-1.71 5.517-11.025 6.275 0 0 5.135 1.33 7.416.57 0 0-.62 4.11-10.102 6.154-.562.12-4.347 1.066-1.306 1.447 0 0 4.37.763 5.514.38 0 0-3.743 5.608-12.927 5.133-.903-.048-1.332 0-1.332 0L0 35.666z"})),o.a.createElement("div",{className:"wordCards-CardItem_Cont"},C(e.note))),o.a.createElement("div",{className:"wordCards-CardFooter"},e.favicon&&o.a.createElement("img",{className:"wordCards-Favicon",src:e.favicon}),o.a.createElement("a",{className:"wordCards-URL",href:e.url,target:"_blank",rel:"nofollow noopener noreferrer",title:e.title},e.title))))))};function C(e){return e.split("\n").map((e,t)=>o.a.createElement("p",{key:t},e))}const E=e=>o.a.createElement("div",{className:"wordEditorPanel-Background",style:{zIndex:Object(y.g)()?998:2147483646}},o.a.createElement("div",{className:"wordEditorPanel-Container",style:{width:e.containerWidth}},o.a.createElement("div",{className:"wordEditorPanel"},o.a.createElement("header",{className:"wordEditorPanel-Header"},o.a.createElement("h1",{className:"wordEditorPanel-Title"},e.title),o.a.createElement("button",{type:"button",className:"wordEditorPanel-BtnClose",onClick:e.onClose},"×")),o.a.createElement("div",{className:"wordEditorPanel-Main fancy-scrollbar"},e.children),e.btns&&e.btns.length>0&&o.a.createElement("footer",{className:"wordEditorPanel-Footer"},e.btns.map((e,t)=>o.a.createElement("button",{key:t,type:"button",className:e.type?"wordEditorPanel-Btn_"+e.type:"wordEditorPanel-Btn",onClick:e.onClick},e.title))))));var I=n(94);const O=e=>{const[t,n]=Object(a.useState)(()=>Object.keys(e.ctxTransConfig).reduce((e,t)=>(e[t]=!1,e),{})),r=async t=>{const{name:a}=t.currentTarget.dataset;if(a&&Object.prototype.hasOwnProperty.call(e.ctxTransConfig,a)){e.onNewCtxTransConfig(a,t.currentTarget.checked);const o=e.word.context||e.word.text;if(t.currentTarget.checked&&o){n(e=>({...e,[a]:!0}));const t=await Object(b.c)(o,a);n(e=>({...e,[a]:!1})),e.onNewCtxTransResult(a,t)}else e.onNewCtxTransResult(a,"")}};return o.a.createElement("ul",{className:"ctxTransList"},Object.keys(e.ctxTransResult).map(n=>o.a.createElement("li",{key:n,className:"ctxTransItem"},o.a.createElement("div",{className:"ctxTransItem-Head"},o.a.createElement("h1",{className:"ctxTrans-Title"},o.a.createElement("input",{type:"checkbox",checked:e.ctxTransConfig[n],id:"ctx-"+n,"data-name":n,onChange:r}),o.a.createElement("label",{htmlFor:"ctx-"+n},n)),t[n]&&o.a.createElement("div",{className:"ctxTrans-Loader"},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))),o.a.createElement("p",{className:"ctxTrans-Content"},e.ctxTransResult[n]))))},j={enter:400,exit:100,appear:400},N=e=>{const{t:t}=Object(x.d)(["common","content"]),[n,C]=Object(a.useState)(!1),[N,A]=Object(a.useState)(!1),[D,z]=Object(a.useState)(e.wordEditor.word),T=Object(i.a)(s.c,[D]),[k,L]=Object(a.useState)(e.ctxTrans);Object(r.a)(()=>{L(e.ctxTrans)},[e.ctxTrans]);const[S,B]=Object(a.useState)(()=>Object.keys(e.ctxTrans).reduce((e,t)=>(e[t]="",e),{})),[_,P]=Object(c.a)(e=>e.pipe(Object(p.a)(200),Object(h.a)(T),Object(g.a)(([,e])=>e.text?Object(m.c)("notebook",e.text).then(t=>t.filter(({date:t})=>t!==e.date)).catch(()=>[]):Object(u.a)([])),Object(f.a)([]))),W=Object(l.a)(P),[U,H]=Object(c.a)(e=>e.pipe(Object(h.a)(T),Object(g.a)(([e,t])=>Object(b.d)(t.context||t.text,e))));Object(d.a)(H,B),Object(a.useEffect)(()=>{e.wordEditor.translateCtx&&U(k)},[]),Object(a.useEffect)(_,[D.text,D.context]),Object(r.a)(()=>{z({...D,trans:Object(b.a)(D.trans,S)})},[S]);const R=()=>{n&&!confirm(t("content:wordEditor.closeConfirm"))||e.onClose()},F=({currentTarget:e})=>{C(!0),z({...D,[e.name]:e.value})},Q=[{type:"normal",title:t("content:transContext"),onClick:()=>U(k)},{type:"normal",title:t("content:neverShow"),onClick:()=>{Object(y.i)()||w.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=Notebook",self:!0}})}},{type:"normal",title:t("cancel"),onClick:R},{type:"primary",title:t("save"),onClick:()=>{Object(m.f)("notebook",D).then(e.onClose).catch(console.error)}}],[Y,G]=Object(a.useState)();return Object(a.useEffect)(()=>{let e=!0;return w.c.sync.get("syncConfig").then(async({syncConfig:t})=>{var n;if(null==t||null===(n=t.ankiconnect)||void 0===n?void 0:n.enable){const t=await w.a.send({type:"ANKI_CONNECT_FIND_WORD",payload:D.date});e&&G(t)}}),()=>{e=!1}},[]),Y&&Q.unshift({type:"normal",title:t("content:updateAnki.title"),onClick:async()=>{let e="content:updateAnki.success";try{await w.a.send({type:"ANKI_CONNECT_UPDATE_WORD",payload:{cardId:Y,word:D}})}catch(t){!1,e="content:updateAnki.failed"}browser.notifications.create({type:"basic",eventTime:Date.now()+2e3,iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict",message:t(e)})}}),o.a.createElement(o.a.Fragment,null,o.a.createElement(E,{containerWidth:e.containerWidth,title:t("content:wordEditor.title"),btns:Q,onClose:R},o.a.createElement("div",{className:"wordEditorNote-Container"},o.a.createElement("div",{className:"wordEditorNote"},o.a.createElement("label",{htmlFor:"wordEditorNote_Word"},t("note.word")),o.a.createElement("input",{type:"text",name:"text",id:"wordEditorNote_Word",value:D.text,onChange:F,onKeyDown:v}),o.a.createElement("label",{htmlFor:"wordEditorNote_Context"},t("note.context")),o.a.createElement("textarea",{rows:3,name:"context",id:"wordEditorNote_Context",value:D.context,onChange:F,onKeyDown:v}),o.a.createElement("div",{className:"wordEditorNote_LabelWithBtn"},o.a.createElement("label",{htmlFor:"wordEditorNote_Trans"},t("note.trans"),o.a.createElement("a",{href:"https://saladict.crimx.com/q&a.html#%E9%97%AE%EF%BC%9A%E6%B7%BB%E5%8A%A0%E7%94%9F%E8%AF%8D%E5%8F%AF%E4%B8%8D%E5%8F%AF%E4%BB%A5%E5%8A%A0%E5%85%A5%E5%8D%95%E8%AF%8D%E7%BF%BB%E8%AF%91%EF%BC%88%E8%80%8C%E4%B8%8D%E6%98%AF%E7%BF%BB%E8%AF%91%E6%95%B4%E5%8F%A5%E4%B8%8A%E4%B8%8B%E6%96%87%EF%BC%89%E3%80%82",target:"_blank",rel:"nofollow noopener noreferrer"}," ","Why?")),o.a.createElement("button",{onClick:()=>A(!0)},t("content:wordEditor.chooseCtxTitle"))),o.a.createElement("textarea",{rows:10,name:"trans",id:"wordEditorNote_Trans",value:D.trans,onChange:F,onKeyDown:v}),o.a.createElement("p",{className:"wordEditorNote_Help"},t("content:wordEditor.ctxHelp")),o.a.createElement("label",{htmlFor:"wordEditorNote_Note"},t("note.note")),o.a.createElement("textarea",{rows:5,name:"note",id:"wordEditorNote_Note",value:D.note,onChange:F,onKeyDown:v}),o.a.createElement("label",{htmlFor:"wordEditorNote_SrcTitle"},t("note.srcTitle")),o.a.createElement("input",{type:"text",name:"title",id:"wordEditorNote_SrcTitle",value:D.title,onChange:F,onKeyDown:v}),o.a.createElement("label",{htmlFor:"wordEditorNote_SrcLink"},t("note.srcLink")),o.a.createElement("input",{type:"text",name:"url",id:"wordEditorNote_SrcLink",value:D.url,onChange:F,onKeyDown:v}),o.a.createElement("label",{htmlFor:"wordEditorNote_SrcFavicon"},t("note.srcFavicon"),D.favicon?o.a.createElement("img",{className:"wordEditorNote_SrcFavicon",src:D.favicon,alt:t("note.srcTitle")}):null),o.a.createElement("input",{type:"text",name:"favicon",id:"wordEditorNote_SrcFavicon",value:D.favicon,onChange:F,onKeyDown:v})),W&&W.length>0&&o.a.createElement(M,{words:W,onCardDelete:e=>{window.confirm(t("content:wordEditor.deleteConfirm"))&&Object(m.a)("notebook",[e.date]).then(_)}}))),o.a.createElement(I.a,{classNames:"notes-fade",mountOnEnter:!0,unmountOnExit:!0,timeout:j,in:N},()=>o.a.createElement(E,{containerWidth:e.containerWidth-100,title:t("content:wordEditor.chooseCtxTitle"),onClose:()=>A(!1),btns:[{type:"normal",title:t("content:transContext"),onClick:()=>U(k)}]},o.a.createElement(O,{word:D,ctxTransConfig:k,ctxTransResult:S,onNewCtxTransConfig:(e,t)=>{L(n=>({...n,[e]:t}))},onNewCtxTransResult:(e,t)=>{B(n=>({...n,[e]:t}))}}))))};function v(e){e.stopPropagation(),e.nativeEvent.stopPropagation()}const A=e=>o.a.createElement("div",{className:y.a+" saladict-theme"},o.a.createElement(N,{...e}))},357:function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var a=n(23),o=n(11),r=n(2),i=n(0),s=n.n(i),c=n(5),l=n.n(c),d=n(94),u=n(402),p=n(256),h=n(121),g=n(88),f=n(508),m=n(159);const b=e=>{const t=Object(i.useRef)(!1),n=Object(i.useRef)(null),[a,o]=Object(i.useState)(0),[r,c]=Object(p.a)(x,!1),h=Object(i.useRef)(!0);return Object(i.useEffect)(()=>{e.expand&&(h.current&&!e.shouldFocus||n.current&&(n.current.focus(),n.current.select()),h.current=!1)},[e.expand]),Object(i.useEffect)(()=>{e.shouldFocus&&!t.current&&e.expand&&n.current&&(n.current.focus(),n.current.select())},[e.text]),Object(i.useEffect)(()=>{e.onHeightChanged((e.expand?a:0)+12)},[a,e.expand]),s.a.createElement("div",null,s.a.createElement("div",{className:l()("mtaBox-TextArea-Wrap",{isTyping:r}),style:{height:e.expand?a:0}},s.a.createElement(d.a,{in:e.expand,timeout:400,classNames:"mtaBox-TextArea-Wrap",appear:!0,mountOnEnter:!0,unmountOnExit:!0},()=>s.a.createElement(u.a,{autoFocus:!0,inputRef:n,className:"mtaBox-TextArea",value:e.text,onChange:n=>{t.current=!0,e.onInput(n.currentTarget.value)},onKeyDown:t=>{t.nativeEvent.stopPropagation(),"Enter"===t.key&&(t.ctrlKey||t.metaKey)&&e.searchText(e.text),c(t)},minRows:2,onHeightChange:e=>o(e)}))),s.a.createElement("button",{className:"mtaBox-DrawerBtn",onClick:e.onDrawerToggle},s.a.createElement("svg",{width:"10",height:"10",viewBox:"0 0 59.414 59.414",className:l()("mtaBox-DrawerBtn_Arrow",{isExpand:e.expand})},s.a.createElement("path",{d:"M58 14.146L29.707 42.44 1.414 14.145 0 15.56 29.707 45.27 59.414 15.56"}))))};function x(e){return e.pipe(Object(h.a)(e=>(e.stopPropagation(),Object(m.a)(1e3).pipe(Object(g.a)(!1),Object(f.a)(!0)))))}const w=Object(a.b)(e=>({expand:e.isExpandMtaBox,text:e.text,shouldFocus:!e.activeProfile.mtaAutoUnfold||"hide"!==e.activeProfile.mtaAutoUnfold||(e.isQSPanel||Object(r.l)())&&e.config.qsFocus||Object(r.k)()}),e=>({searchText:t=>{e({type:"SEARCH_START",payload:{word:Object(o.e)({text:t})}})},onInput:t=>{e({type:"UPDATE_TEXT",payload:t})},onDrawerToggle:()=>{e({type:"TOGGLE_MTA_BOX"})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"mtabox",height:t}})}}))(b)},358:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(23),o=n(0),r=n.n(o),i=n(94),s=n(2);const c=Object(a.b)(e=>({darkMode:e.config.darkMode,isExpand:e.isExpandWaveformBox}),e=>({onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"waveformbox",height:t}})},toggleExpand:()=>{e({type:"TOGGLE_WAVEFORM_BOX"})}}))(e=>(Object(o.useEffect)(()=>{e.onHeightChanged(12+(e.isExpand?165:0))},[e.isExpand]),r.a.createElement("div",{className:`waveformBox ${s.a}${e.isExpand?" isExpand":""}`},r.a.createElement("button",{className:"waveformBox-DrawerBtn",onClick:e.toggleExpand},r.a.createElement("svg",{width:"10",height:"10",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg",className:"waveformBox-DrawerBtn_Arrow"},r.a.createElement("path",{d:"M 58 45.269 L 29.707 16.975 L 1.414 45.27 L 0 43.855 L 29.707 14.145 L 59.414 43.855"}))),r.a.createElement("div",{className:"waveformBox-FrameWrap"},r.a.createElement(i.a,{timeout:400,in:e.isExpand,classNames:"waveformBox-Frame",mountOnEnter:!0,unmountOnExit:!0},()=>r.a.createElement("iframe",{className:"waveformBox-Frame",src:`${browser.runtime.getURL("audio-control.html")}${e.darkMode?"?darkmode=true":""}`,sandbox:"allow-same-origin allow-scripts"}))))))},369:function(e,t,n){var a={"./en/background.ts":[409,83],"./en/common.ts":[410,84],"./en/content.ts":[411,85],"./en/langcode.ts":[412,60],"./en/menus.ts":[413,86],"./en/options.ts":[414,87],"./en/popup.ts":[415,88],"./en/wordpage.ts":[416,89],"./es/background.ts":[417,90],"./es/common.ts":[418,91],"./es/content.ts":[419,92],"./es/langcode.ts":[420,61],"./es/menus.ts":[421,93],"./es/options.ts":[422,94],"./es/popup.ts":[423,95],"./es/wordpage.ts":[424,96],"./ne/background.ts":[425,97],"./ne/common.ts":[426,98],"./ne/content.ts":[427,99],"./ne/langcode.ts":[428,62],"./ne/menus.ts":[429,100],"./ne/options.ts":[430,101],"./ne/popup.ts":[431,102],"./ne/wordpage.ts":[432,103],"./zh-CN/background.ts":[433,104],"./zh-CN/common.ts":[434,105],"./zh-CN/content.ts":[435,106],"./zh-CN/langcode.ts":[436,63],"./zh-CN/menus.ts":[437,107],"./zh-CN/options.ts":[438,108],"./zh-CN/popup.ts":[439,109],"./zh-CN/wordpage.ts":[440,110],"./zh-TW/background.ts":[441,111],"./zh-TW/common.ts":[442,112],"./zh-TW/content.ts":[443,113],"./zh-TW/langcode.ts":[444,64],"./zh-TW/menus.ts":[445,114],"./zh-TW/options.ts":[446,115],"./zh-TW/popup.ts":[447,116],"./zh-TW/wordpage.ts":[448,117]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(a)},o.id=369,e.exports=o},370:function(e,t,n){var a={"./ahdict/_locales.json":371,"./baidu/_locales.ts":372,"./bing/_locales.json":373,"./caiyun/_locales.ts":374,"./cambridge/_locales.json":375,"./cobuild/_locales.json":376,"./etymonline/_locales.json":377,"./eudic/_locales.json":378,"./google/_locales.ts":379,"./guoyu/_locales.json":380,"./hjdict/_locales.json":381,"./liangan/_locales.json":382,"./longman/_locales.json":383,"./merriamwebster/_locales.json":384,"./mojidict/_locales.json":385,"./naver/_locales.json":386,"./oaldict/_locales.json":387,"./renren/_locales.json":388,"./shanbay/_locales.json":389,"./sogou/_locales.ts":390,"./tencent/_locales.ts":391,"./urban/_locales.json":392,"./vocabulary/_locales.json":393,"./weblio/_locales.json":394,"./weblioejje/_locales.json":395,"./wikipedia/_locales.json":396,"./youdao/_locales.json":397,"./youdaotrans/_locales.ts":398,"./zdic/_locales.json":399};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=370},371:function(e){e.exports=JSON.parse('{"name":{"en":"Amercian Heritage Dict","zh-CN":"美国传统词典","zh-TW":"美國傳統詞典"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},372:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Baidu Translate","zh-CN":"百度翻译","zh-TW":"百度翻譯"})},373:function(e){e.exports=JSON.parse('{"name":{"en":"Bing Dict","zh-CN":"必应词典","zh-TW":"必應詞典"},"options":{"tense":{"en":"Show sense","zh-CN":"显示单词时态","zh-TW":"展示單詞時態"},"phsym":{"en":"Show pronunciation","zh-CN":"显示单词发音","zh-TW":"展示單詞發音"},"cdef":{"en":"Show definitions","zh-CN":"显示单词解释","zh-TW":"展示單詞解釋"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"sentence":{"en":"Show sentences","zh-CN":"显示例句","zh-TW":"展示例句"},"sentence_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},374:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"LingoCloud","zh-CN":"彩云小译","zh-TW":"彩雲小譯"})},375:function(e){e.exports=JSON.parse('{"name":{"en":"Cambridge Dictionary","zh-CN":"剑桥词典","zh-TW":"劍橋詞典"},"options":{"lang":{"en":"Language","zh-CN":"语言","zh-TW":"語言"},"lang-default":{"en":"Default","zh-CN":"随扩展","zh-TW":"未設定"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-en-chs":{"en":"English–Chinese (Simplified)","zh-CN":"英简","zh-TW":"英简"},"lang-en-chz":{"en":"English–Chinese (Traditional)","zh-CN":"英繁","zh-TW":"英繁"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},376:function(e){e.exports=JSON.parse('{"name":{"en":"COBUILD","zh-CN":"柯林斯高阶","zh-TW":"柯林斯高階"},"options":{"cibaFirst":{"en":"Prefer bilingual dictionary","zh-CN":"优先查双语词典","zh-TW":"優先查雙語詞典"}},"helps":{"cibaFirst":{"en":"Bilingual server is less stable","zh-CN":"双语词典服务器不稳定,解释没全英丰富","zh-TW":"雙語詞典伺服器不穩定,解釋沒全英豐富"}}}')},377:function(e){e.exports=JSON.parse('{"name":{"en":"Etymonline","zh-CN":"Etymonline","zh-TW":"Etymonline"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"},"chart":{"en":"Show Chart","zh-CN":"显示图表","zh-TW":"顯示圖表"}}}')},378:function(e){e.exports=JSON.parse('{"name":{"en":"Eudic","zh-CN":"双语例句","zh-TW":"雙語例句"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},379:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Google Translation","zh-CN":"谷歌翻译","zh-TW":"谷歌翻譯"},{cnfirst:{en:"Use google.cn first","zh-CN":"优先使用 google.cn","zh-TW":"優先使用 google.cn"},concurrent:{en:"Search concurrently","zh-CN":"并行查询","zh-TW":"並行查詢"}},{concurrent:{en:"Search .com and .cn concurrently","zh-CN":"同时搜索 .com 和 .cn 取最先返回的结果","zh-TW":"同時搜尋 .com 和 .cn 取最先返回的結果"}})},38:function(e,t,n){"use strict";function a(e,t){return(e.tagName||"").toLowerCase()===t.toLowerCase()}n.d(t,"a",(function(){return a}))},380:function(e){e.exports=JSON.parse('{"name":{"en":"國語辭典","zh-CN":"国语辞典","zh-TW":"國語辭典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},381:function(e){e.exports=JSON.parse('{"name":{"en":"Hu Jiang","zh-CN":"沪江小D","zh-TW":"沪江小D"},"options":{"engas":{"en":"Treat English as","zh-CN":"对全英文使用词典","zh-TW":"對全英文使用字典"},"chsas":{"en":"Treat Chinese as","zh-CN":"对全中文使用词典","zh-TW":"對全中文使用字典"},"uas":{"en":"Treat \'ü\' as","zh-CN":"将 \'ü\' 字符当作","zh-TW":"把 \'ü\' 字元當成"},"aas":{"en":"Treat \'ä\' as","zh-CN":"将 \'ä\' 字符当作","zh-TW":"把 \'ä\' 字元當成"},"eas":{"en":"Treat \'é\' as","zh-CN":"将 \'é\' 字符当作","zh-TW":"把 \'é\' 字元當成"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"chsas-jp/cj":{"en":"中 → 日","zh-CN":"中 → 日","zh-TW":"中 → 日"},"chsas-jp/jc":{"en":"日 → 中","zh-CN":"日 → 中","zh-TW":"日 → 中"},"chsas-kr":{"en":"Korean","zh-CN":"韩文","zh-TW":"韓文"},"chsas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"chsas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"chsas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"chsas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"engas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"engas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"engas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"engas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"uas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"uas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"uas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"aas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"aas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"eas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"eas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"}}}')},382:function(e){e.exports=JSON.parse('{"name":{"en":"兩岸詞典","zh-CN":"两岸词典","zh-TW":"兩岸詞典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},383:function(e){e.exports=JSON.parse('{"name":{"en":"Longman Dictionary","zh-CN":"朗文词典","zh-TW":"朗文詞典"},"options":{"wordfams":{"en":"Show word family","zh-CN":"显示单词家族","zh-TW":"展示單字家族"},"collocations":{"en":"Show collocations","zh-CN":"显示惯用搭配","zh-TW":"展示慣用搭配"},"grammar":{"en":"Show grammar","zh-CN":"显示语法解释","zh-TW":"展示文法講解"},"thesaurus":{"en":"Show thesaurus","zh-CN":"显示同义词","zh-TW":"展示同義詞"},"examples":{"en":"Show examples","zh-CN":"显示例句","zh-TW":"展示例句"},"bussinessFirst":{"en":"Show bussiness result first","zh-CN":"优先显示商务词典","zh-TW":"優先展示商務字典"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},384:function(e){e.exports=JSON.parse('{"name":{"en":"Merriam-Webster\'s Dictionary","zh-CN":"韦氏词典","zh-TW":"韋氏字典"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},385:function(e){e.exports=JSON.parse('{"name":{"en":"MOJi辞書","zh-CN":"MOJi辞書","zh-TW":"MOJi辞書"}}')},386:function(e){e.exports=JSON.parse('{"name":{"en":"Naver韩国语词典","zh-CN":"Naver韩国语词典","zh-TW":"Naver韩国语词典"},"options":{"hanAsJa":{"en":"Search Chinese with Japanese Dictionary","zh-CN":"用日语词典查中文","zh-TW":"用日語詞典查漢字"},"korAsJa":{"en":"Search Korean with Japanese Dictionary","zh-CN":"用日语词典查韩语","zh-TW":"用日语词典查韓語"}}}')},387:function(e){e.exports=JSON.parse('{"name":{"en":"Oxford Learner\'s Dict","zh-CN":"牛津高阶词典","zh-TW":"牛津高階詞典"}}')},388:function(e){e.exports=JSON.parse('{"name":{"en":"91dict","zh-CN":"人人词典","zh-TW":"人人詞典"}}')},389:function(e){e.exports=JSON.parse('{"name":{"en":"Shanbay Dictionary","zh-CN":"扇贝词典","zh-TW":"扇貝詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"}}}')},390:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Sogou Translation","zh-CN":"搜狗翻译","zh-TW":"搜狗翻譯"})},391:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Tencent Translate","zh-CN":"腾讯翻译君","zh-TW":"騰訊翻譯君"})},392:function(e){e.exports=JSON.parse('{"name":{"en":"Urban","zh-CN":"Urban","zh-TW":"Urban"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},393:function(e){e.exports=JSON.parse('{"name":{"en":"Vocabulary.com","zh-CN":"Vocabulary.com","zh-TW":"Vocabulary.com"}}')},394:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio","zh-CN":"Weblio 辞書","zh-TW":"Weblio 辞書"}}')},395:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio ejje","zh-CN":"Weblio 英和和英","zh-TW":"Weblio 英和和英"}}')},396:function(e){e.exports=JSON.parse('{"name":{"en":"Wikipedia","zh-CN":"维基百科","zh-TW":"維基百科"},"options":{"lang":{"en":"Language","zh-CN":"百科语言","zh-TW":"百科語言"},"lang-auto":{"en":"Auto (respect Wiki settings)","zh-CN":"自动(遵循维基账户设定)","zh-TW":"自动(遵循維基賬戶設定)"},"lang-zh":{"en":"中文(简繁由维基账户设定)","zh-CN":"中文(简繁由维基账户设定)","zh-TW":"中文(簡繁由維基賬戶設定)"},"lang-zh-cn":{"en":"强制简体中文子页面","zh-CN":"强制简体中文子页面","zh-TW":"强制简体中文子页面"},"lang-zh-tw":{"en":"強制台灣正體子頁面","zh-CN":"強制台灣正體子頁面","zh-TW":"強制台灣正體子頁面"},"lang-zh-hk":{"en":"強制香港繁體子頁面","zh-CN":"強制香港繁體子頁面","zh-TW":"強制香港繁體子頁面"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-ja":{"en":"日本語","zh-CN":"日本語","zh-TW":"日本語"},"lang-fr":{"en":"Français","zh-CN":"Français","zh-TW":"Français"},"lang-de":{"en":"Deutschsprachige","zh-CN":"Deutschsprachige","zh-TW":"Deutschsprachige"}}}')},397:function(e){e.exports=JSON.parse('{"name":{"en":"Youdao Dictionary","zh-CN":"有道词典","zh-TW":"有道詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"collins":{"en":"Show Collins result","zh-CN":"显示柯林斯双解","zh-TW":"顯示柯林斯雙解"},"discrimination":{"en":"Show discrimination","zh-CN":"显示词语辨析","zh-TW":"顯示詞語辨析"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"},"translation":{"en":"Show translation","zh-CN":"显示有道翻译","zh-TW":"顯示有道翻譯"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},398:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Youdao Translate","zh-CN":"有道翻译","zh-TW":"有道翻譯"})},399:function(e){e.exports=JSON.parse('{"name":{"en":"汉典","zh-CN":"汉典","zh-TW":"漢典"},"options":{"audio":{"en":"Enable audio","zh-CN":"开启发音","zh-TW":"啟用發音"}},"helps":{"audio":{"en":"Referer modification is required, which may slightly impact performance.","zh-CN":"突破外链限制需要改写 Referer,可能会轻微影响性能。","zh-TW":"突破外鏈限制需要改寫 Referer,可能會輕微影響效能。"}}}')},42:function(e,t,n){"use strict";function a(e){const t=Array.isArray(e)?e:Array.from(e);return Promise.all(t.map(e=>Promise.resolve(e).catch(()=>null)))}function o(e){const t=Array.isArray(e)?e:Array.from(e);let n=0;return new Promise((e,a)=>t.forEach(o=>{Promise.resolve(o).then(e).catch(()=>{++n===t.length&&a(new Error("All rejected"))})}))}function r(...e){return new Promise(t=>{setTimeout(()=>e.length>1?t(e[1]):t(),Number(e[0])||0)})}function i(e,t=0){return Promise.race([e,r(t).then(()=>Promise.reject(new Error(`timeout ${t}ms`)))])}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i}))},43:function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"d",(function(){return x})),n.d(t,"a",(function(){return w})),n.d(t,"e",(function(){return y}));var a=n(112),o=n(57),r=n(102),i=n(10),s=n(88),c=n(182),l=n(39),d=n(11),u=n(1),p=n(38);const h=/mac/i.test(navigator.platform);function g(e){return h?"Meta"===e.key:"Control"===e.key}function f(e){return"Escape"===e.key}function m(e){return Object(a.a)(Object(i.a)(e)(Object(o.a)(window,"keydown",{capture:!0})),Object(s.a)(!1)(Object(o.a)(window,"keyup",{capture:!0})),Object(s.a)(!1)(Object(o.a)(window,"blur",{capture:!0})),Object(r.a)(!1)).pipe(Object(c.a)(),Object(l.a)(e=>e))}const b=/CodeMirror|ace_editor|monaco-editor/;function x(e){if(!e||!e.tagName)return!1;for(let t=e;t;t=t.parentElement){if(Object(p.a)(t,"input")||Object(p.a)(t,"textarea")||t.isContentEditable)return!0;if(b.test(String(t.className)))return!0}return!1}function w(e){const t=window.pageURL||document.URL||"";return!!t&&(e.blacklist.some(([e])=>new RegExp(e).test(t))&&e.whitelist.every(([e])=>!new RegExp(e).test(t)))}async function y(e={}){const t=await u.a.send({type:"PAGE_INFO"});return window.faviconURL=t.faviconURL,t.pageTitle&&(window.pageTitle=t.pageTitle),t.pageURL&&(window.pageURL=t.pageURL),Object(d.e)({title:t.pageTitle||document.title||"",url:t.pageURL||document.URL||"",favicon:t.faviconURL||"",...e})}},481:function(e,t,n){var a={"./ahdict/favicon.png":518,"./baidu/favicon.png":519,"./bing/favicon.png":520,"./caiyun/favicon.png":521,"./cambridge/favicon.png":522,"./cobuild/favicon.png":523,"./etymonline/favicon.png":524,"./eudic/favicon.png":525,"./google/favicon.png":526,"./guoyu/favicon.png":527,"./hjdict/favicon.png":528,"./liangan/favicon.png":529,"./longman/favicon.png":530,"./merriamwebster/favicon.png":531,"./mojidict/favicon.png":532,"./naver/favicon.png":533,"./oaldict/favicon.png":534,"./renren/favicon.png":535,"./shanbay/favicon.png":536,"./sogou/favicon.png":537,"./tencent/favicon.png":538,"./urban/favicon.png":539,"./vocabulary/favicon.png":540,"./weblio/favicon.png":541,"./weblioejje/favicon.png":542,"./wikipedia/favicon.png":543,"./youdao/favicon.png":544,"./youdaotrans/favicon.png":545,"./zdic/favicon.png":546};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=481},518:function(e,t,n){e.exports=n.p+"assets/favicon-ahdict.51ab8a55.png"},519:function(e,t,n){e.exports=n.p+"assets/favicon-baidu.b1036c7f.png"},520:function(e,t,n){e.exports=n.p+"assets/favicon-bing.e3d3533d.png"},521:function(e,t,n){e.exports=n.p+"assets/favicon-caiyun.7da16416.png"},522:function(e,t,n){e.exports=n.p+"assets/favicon-cambridge.fa1166e5.png"},523:function(e,t,n){e.exports=n.p+"assets/favicon-cobuild.b6b15fdf.png"},524:function(e,t,n){e.exports=n.p+"assets/favicon-etymonline.eb3c1833.png"},525:function(e,t,n){e.exports=n.p+"assets/favicon-eudic.e582c08d.png"},526:function(e,t,n){e.exports=n.p+"assets/favicon-google.8edddd23.png"},527:function(e,t,n){e.exports=n.p+"assets/favicon-guoyu.b08539ad.png"},528:function(e,t,n){e.exports=n.p+"assets/favicon-hjdict.d4d70891.png"},529:function(e,t,n){e.exports=n.p+"assets/favicon-liangan.b08539ad.png"},530:function(e,t,n){e.exports=n.p+"assets/favicon-longman.c733be7c.png"},531:function(e,t,n){e.exports=n.p+"assets/favicon-merriamwebster.1fc05990.png"},532:function(e,t,n){e.exports=n.p+"assets/favicon-mojidict.435cd8b4.png"},533:function(e,t,n){e.exports=n.p+"assets/favicon-naver.6094f3e0.png"},534:function(e,t,n){e.exports=n.p+"assets/favicon-oaldict.3cf302d4.png"},535:function(e,t,n){e.exports=n.p+"assets/favicon-renren.7fdf60c5.png"},536:function(e,t,n){e.exports=n.p+"assets/favicon-shanbay.082532e3.png"},537:function(e,t,n){e.exports=n.p+"assets/favicon-sogou.5f76dc4a.png"},538:function(e,t,n){e.exports=n.p+"assets/favicon-tencent.6981c3c3.png"},539:function(e,t,n){e.exports=n.p+"assets/favicon-urban.e32bfdde.png"},540:function(e,t,n){e.exports=n.p+"assets/favicon-vocabulary.06f9ac91.png"},541:function(e,t,n){e.exports=n.p+"assets/favicon-weblio.b2639663.png"},542:function(e,t,n){e.exports=n.p+"assets/favicon-weblioejje.a7f3d53c.png"},543:function(e,t,n){e.exports=n.p+"assets/favicon-wikipedia.47e324fa.png"},544:function(e,t,n){e.exports=n.p+"assets/favicon-youdao.da86f82a.png"},545:function(e,t,n){e.exports=n.p+"assets/favicon-youdaotrans.0d8d4512.png"},546:function(e,t,n){e.exports=n.p+"assets/favicon-zdic.1310d810.png"},547:function(e,t,n){var a={"./ahdict/View.tsx":[678,71],"./baidu/View.tsx":[679,65],"./bing/View.tsx":[680,72],"./caiyun/View.tsx":[681,66],"./cambridge/View.tsx":[682,73],"./cobuild/View.tsx":[683,29],"./etymonline/View.tsx":[684,74],"./eudic/View.tsx":[685,118],"./google/View.tsx":[686,67],"./guoyu/View.tsx":[677,119],"./hjdict/View.tsx":[687,75],"./liangan/View.tsx":[688,82],"./longman/View.tsx":[689,30],"./merriamwebster/View.tsx":[690,120],"./mojidict/View.tsx":[691,25],"./naver/View.tsx":[692,76],"./oaldict/View.tsx":[693,77],"./renren/View.tsx":[694,78],"./shanbay/View.tsx":[695,79],"./sogou/View.tsx":[696,68],"./tencent/View.tsx":[697,69],"./urban/View.tsx":[698,80],"./vocabulary/View.tsx":[699,121],"./weblio/View.tsx":[700,26],"./weblioejje/View.tsx":[701,27],"./wikipedia/View.tsx":[702,81],"./youdao/View.tsx":[703,24],"./youdaotrans/View.tsx":[704,70],"./zdic/View.tsx":[705,28]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(a)},o.id=547,e.exports=o},548:function(e,t,n){var a={"./ahdict/_style.shadow.scss":[706,31],"./baidu/_style.shadow.scss":[707,32],"./bing/_style.shadow.scss":[708,33],"./caiyun/_style.shadow.scss":[709,34],"./cambridge/_style.shadow.scss":[710,35],"./cobuild/_style.shadow.scss":[711,36],"./etymonline/_style.shadow.scss":[712,37],"./eudic/_style.shadow.scss":[713,38],"./google/_style.shadow.scss":[714,39],"./guoyu/_style.shadow.scss":[715,40],"./hjdict/_style.shadow.scss":[716,41],"./liangan/_style.shadow.scss":[717,42],"./longman/_style.shadow.scss":[718,43],"./merriamwebster/_style.shadow.scss":[719,44],"./mojidict/_style.shadow.scss":[720,45],"./naver/_style.shadow.scss":[721,46],"./oaldict/_style.shadow.scss":[722,47],"./renren/_style.shadow.scss":[723,48],"./shanbay/_style.shadow.scss":[724,49],"./sogou/_style.shadow.scss":[725,50],"./tencent/_style.shadow.scss":[726,51],"./urban/_style.shadow.scss":[727,52],"./vocabulary/_style.shadow.scss":[728,53],"./weblio/_style.shadow.scss":[729,54],"./weblioejje/_style.shadow.scss":[730,55],"./wikipedia/_style.shadow.scss":[731,56],"./youdao/_style.shadow.scss":[732,57],"./youdaotrans/_style.shadow.scss":[733,58],"./zdic/_style.shadow.scss":[734,59]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n.t(o,7)}))}o.keys=function(){return Object.keys(a)},o.id=548,e.exports=o},55:function(e,t,n){"use strict";function a(e,t={},n={}){return{name:e,options:{keepLF:{en:"Keep linebreaks","zh-CN":"保留换行","zh-TW":"保留換行"},"keepLF-none":{en:"None","zh-CN":"不保留","zh-TW":"不保留"},"keepLF-all":{en:"All","zh-CN":"全保留","zh-TW":"全保留"},"keepLF-pdf":{en:"PDF","zh-CN":"保留 PDF 换行","zh-TW":"保留 PDF 換行"},"keepLF-webpage":{en:"Webpage","zh-CN":"保留网页换行","zh-TW":"保留網頁換行"},slInitial:{en:"Source Language","zh-CN":"原文显示","zh-TW":"原文顯示"},"slInitial-hide":{en:"Hide","zh-CN":"隐藏","zh-TW":"隱藏"},"slInitial-collapse":{en:"Collapse","zh-CN":"收起","zh-TW":"收起"},"slInitial-full":{en:"Full","zh-CN":"完整显示","zh-TW":"完整顯示"},tl:{en:"Target language","zh-CN":"目标语言","zh-TW":"目標語言"},tl2:{en:"Fallback target language","zh-CN":"第二目标语言","zh-TW":"第二目標語言"},...t},helps:{slInitial:{en:"Source language initial state. If hided can be reopened via dictionary titlebar menu.","zh-CN":"原文初始显示状态。隐藏后可通过字典标题栏菜单打开。","zh-TW":"原文初始顯示狀態。隱藏後可通過字典標題欄選單開啟。"},tl2:{en:"Fallback when detected languange and target language are identical.","zh-CN":"如果检测的源语言与目标语言相同将自动切换第二目标语言。","zh-TW":"如果檢測的源語言與目標語言相同將自動切換第二目標語言。"},...n}}}n.d(t,"a",(function(){return a}))},554:function(e,t,n){"use strict";var a=n(0),o=n.n(a),r=n(23),i=n(362),s=n(5),c=n.n(s),l=n(30),d=n(2),u=n(147),p=n(16);const h=Object(p.a)(()=>{if("undefined"==typeof document)return 0;const e=document.createElement("div"),t=e.style;t.position="fixed",t.left="0",t.overflowY="scroll",t.visibility="hidden",document.body.appendChild(e);const n=e.getBoundingClientRect().right;return e.remove(),n});var g=n(138);const f=e=>{const t=Object(a.useRef)(null),[n,r]=Object(a.useState)(()=>m(e.width,e.coord.x)),[s,l]=Object(a.useState)(()=>b(e.height,e.coord.y)),u=Object(a.useRef)(!1),p=Object(a.useRef)();Object(i.a)(()=>{e.takeCoordSnapshot?p.current={x:n,y:s}:p.current&&(r(m(e.width,p.current.x)),l(b(e.height,p.current.y)))},[e.takeCoordSnapshot]),Object(i.a)(()=>{r(m(e.width,e.coord.x)),l(b(e.height,e.coord.y))},[e.coord]),Object(i.a)(()=>{u.current||(r(t=>m(e.width,t)),l(t=>b(e.height,t)))},[e.width,e.height]),Object(a.useEffect)(()=>{e.dragStartCoord&&(u.current=!0)},[e.dragStartCoord]);const f=Object(a.useMemo)(()=>e.dragStartCoord?{x:n,y:s}:null,[e.dragStartCoord]);return o.a.createElement("div",{ref:t,className:"dictPanel-FloatBox-Container saladict-theme"},o.a.createElement("div",{className:c()("dictPanel-Root",d.b,{isDragging:e.dragStartCoord}),style:{left:n,top:s,zIndex:Object(d.g)()?999:2147483647,width:e.width,height:e.height,"--panel-width":e.width+"px","--panel-max-height":e.maxHeight+"px","--panel-font-size":e.fontSize+"px"}},o.a.createElement("div",{className:"dictPanel-Head"},e.menuBar),o.a.createElement(g.b.Provider,{value:t},o.a.createElement("div",{className:"dictPanel-Body"+(h()>0?" fancy-scrollbar":"")},e.mtaBox,e.dictList)),e.waveformBox,e.dragStartCoord&&o.a.createElement("div",{className:"dictPanel-DragMask",onMouseMove:t=>{f&&e.dragStartCoord&&(t.stopPropagation(),t.preventDefault(),r(t.clientX-e.dragStartCoord.x+f.x),l(t.clientY-e.dragStartCoord.y+f.y))},onTouchMove:t=>{f&&e.dragStartCoord&&(t.stopPropagation(),t.preventDefault(),r(t.changedTouches[0].clientX-e.dragStartCoord.x+f.x),l(t.changedTouches[0].clientY-e.dragStartCoord.y+f.y))},onMouseOut:t=>{t.relatedTarget||e.onDragEnd()},onMouseUp:e.onDragEnd,onTouchCancel:e.onDragEnd,onTouchEnd:e.onDragEnd})))};function m(e,t){const n=window.innerWidth;return t+e+25>n&&(t=n-25-e),t<10&&(t=10),t}function b(e,t){const n=window.innerHeight;return t+e+15>n&&(t=n-15-e),t<15&&(t=15),t}const x=e=>{const{show:t,panelCSS:r,withAnimation:s,darkMode:p,...h}=e,g=Object(a.useRef)(t),[m,b]=Object(a.useState)(t),x=Object(l.e)(()=>o.a.createElement("style",null,n(641).toString())).current;return Object(i.a)(()=>{b(t)},[t]),Object(i.a)(()=>{e.takeCoordSnapshot?g.current=m:g.current||b(!1)},[e.takeCoordSnapshot]),o.a.createElement(u.a,{id:"saladict-dictpanel-root",head:x,shadowRootClassName:d.b,innerRootClassName:c()({isAnimate:s,darkMode:p}),panelCSS:r,in:m,timeout:e.withAnimation?u.c:0},()=>o.a.createElement(f,{...h}))};var w=n(354),y=n(357),M=n(355),C=n(358);const E=o.a.createElement(w.a,null),I=o.a.createElement(M.a,null),O=o.a.createElement(C.a,null),j=Object(r.b)(e=>({show:e.isShowDictPanel,coord:e.dictPanelCoord,takeCoordSnapshot:e.wordEditor.isShow,width:e.config.panelWidth,height:e.panelHeight,maxHeight:e.panelMaxHeight,fontSize:e.config.fontSize,withAnimation:e.config.animation,panelCSS:e.config.panelCSS,darkMode:e.config.darkMode,menuBar:E,mtaBox:e.isShowMtaBox?o.a.createElement(y.a,null):null,dictList:I,waveformBox:e.activeProfile.waveform?O:null,dragStartCoord:e.dragStartCoord}),e=>({onDragEnd:()=>{e({type:"DRAG_START_COORD",payload:null})}}))(x);t.a=j},555:function(e,t,n){"use strict";var a=n(23),o=n(0),r=n.n(o),i=n(30),s=n(147),c=n(5),l=n.n(c),d=n(125),u=n(190),p=n(92),h=n(2);const g=e=>{const[t,n]=Object(d.a)(p.c);return Object(u.a)(n,t=>{e.onHover(t),t&&e.onActive()}),r.a.createElement("div",{role:"img",className:l()("saladbowl",h.a,{enableHover:e.enableHover}),style:{transform:`translate(${e.x}px, ${e.y}px)`},onMouseOver:e.enableHover?t:void 0,onMouseOut:t,onClick:()=>e.onActive()},r.a.createElement("svg",{viewBox:"0 0 612 612",width:"30",height:"30"},r.a.createElement("g",{className:"saladbowl-leaf"},r.a.createElement("path",{fill:"#6bbc57",d:"M 577.557 184.258 C 560.417 140.85 519.54 59.214 519.54 59.214 L 519.543 59.204 C 519.543 59.204 436.903 97.626 396.441 120.878 C 366.171 138.274 354.981 169.755 352.221 177.621 C 349.001 186.851 339.891 228.811 358.341 268.481 C 382.271 319.921 409.201 374.521 409.201 374.521 L 409.201 374.531 C 409.201 374.531 464.511 348.701 515.291 323.401 C 554.451 303.891 573.591 265.441 576.821 256.221 C 579.571 248.356 590.398 216.746 577.574 184.271 Z"}),r.a.createElement("path",{fill:"#bde9b7",d:"M 501.052 102.162 L 507.518 104.425 L 426.69 335.38 L 420.224 333.117 Z"})),r.a.createElement("g",{className:"saladbowl-orange"},r.a.createElement("circle",{fill:"#ffb30d",cx:"299.756",cy:"198.246",r:"178.613"}),r.a.createElement("circle",{fill:"#fce29c",cx:"299.756",cy:"198.246",r:"155.24"}),r.a.createElement("path",{fill:"#fcc329",d:"M 299.756 189.873 L 341.269 113.475 C 349.169 82.543 324.349 58.588 299.749 57.891 C 275.149 57.201 248.229 82.781 256.489 113.481 L 299.749 189.881 Z M 307.026 194.757 L 393.974 194.757 C 424.928 187.083 434.124 153.681 422.994 131.737 C 411.864 109.795 376.534 98.357 353.5 120.27 L 307.025 194.757 Z M 308.79 203.444 L 354.885 277.168 C 377.925 299.268 410.995 289.438 423.701 268.368 C 436.411 247.298 427.381 211.276 396.591 203.362 L 308.801 203.442 Z M 300.208 206.618 L 259.628 283.516 C 252.098 314.543 277.214 338.193 301.815 338.591 C 326.415 338.991 353.022 313.081 344.392 282.491 L 300.208 206.631 Z M 292.058 203.3 L 205.108 203.415 C 174.163 211.277 165.014 244.54 176.172 266.468 C 187.33 288.396 226.052 300.541 249.056 278.598 L 292.056 203.301 Z M 292.465 194.83 L 246.497 121.024 C 223.494 98.884 190.409 108.658 177.667 129.706 C 164.925 150.753 173.893 186.791 204.669 194.756 L 292.459 194.829 Z"})),r.a.createElement("g",{className:"saladbowl-tomato"},r.a.createElement("path",{fill:"#a63131",d:"M 71.014 337.344 C 147.291 422.594 278.234 429.866 363.482 353.589 L 87.258 44.87 C 2.01 121.15 -5.262 252.092 71.014 337.342 Z"}),r.a.createElement("path",{fill:"#bc5757",d:"M 101.447 310.115 C 162.685 378.555 267.811 384.393 336.251 323.155 L 114.49 75.31 C 46.047 136.55 40.21 241.674 101.447 310.115 Z"}),r.a.createElement("path",{fill:"#f1d4af",d:"M 186.412 237.54 L 151.659 245.444 C 139.989 251.384 139.339 265.51 145.779 273.27 C 152.219 281.028 167.379 282.39 174.599 271.538 L 186.399 237.54 Z M 242.062 269.832 L 223.366 300.175 C 219.439 312.658 229.066 323.018 239.116 323.85 C 249.168 324.685 260.756 314.815 258.061 302.065 L 242.061 269.832 Z M 160.202 178.317 L 130.357 158.837 C 117.98 154.585 107.375 163.939 106.277 173.965 C 105.183 183.99 114.747 195.833 127.563 193.471 L 160.203 178.321 Z"})),r.a.createElement("g",{className:"saladbowl-bowl"},r.a.createElement("path",{fill:"#2d97b7",d:"M 30.857 311.46 C 30.857 429.87 105.371 530.8 209.867 569.52 L 209.867 589.2 L 400.987 589.2 L 400.987 568.9 C 503.595 530.114 576.887 431.202 578.31 314.907 L 589.196 295.97 L 22.804 295.97 L 30.867 309.998 C 30.865 310.488 30.857 310.971 30.857 311.458 Z"}),r.a.createElement("path",{fill:"#fff",d:"M 540.565 321.42 C 540.585 322.587 540.595 323.755 540.595 324.927 C 540.595 405.941 497.513 476.884 433.015 516.122 L 437.178 523.317 C 504.152 482.64 548.895 409.009 548.895 324.927 C 548.895 323.755 548.885 322.587 548.865 321.419 Z M 399.885 532.68 C 388.298 537.31 376.237 541.002 363.793 543.654 L 363.793 544.45 L 364.971 551.893 C 378.481 549.049 391.551 545.018 404.081 539.935 Z"}))))},f={enter:1e3,exit:100,appear:1e3},m=Object(a.b)(e=>({show:e.isShowBowl,panelCSS:e.config.panelCSS,x:e.bowlCoord.x,y:e.bowlCoord.y,withAnimation:e.config.animation,enableHover:e.config.bowlHover}),e=>({onActive:()=>{e({type:"BOWL_ACTIVATED"})}}))(e=>{const{show:t,panelCSS:a,withAnimation:c,...l}=e,[d,u]=Object(o.useState)(!1),p=Object(i.e)(()=>r.a.createElement("style",null,n(638).toString())).current;return r.a.createElement(s.b,{id:"saladict-saladbowl-root",head:p,classNames:"saladbowl",innerRootClassName:c?"isAnimate":"",panelCSS:a,in:t||d,timeout:c?f:0},()=>r.a.createElement(g,{...l,onHover:u}))});t.a=m},556:function(e,t,n){"use strict";var a=n(23),o=n(0),r=n.n(o),i=n(5),s=n.n(i),c=n(30),l=n(147),d=n(356);const u=e=>{const{show:t,withAnimation:a,darkMode:o,...i}=e,u=Object(c.e)(()=>r.a.createElement("style",null,n(643).toString())).current;return r.a.createElement(l.a,{id:"saladict-wordeditor-root",head:u,in:t,innerRootClassName:s()({isAnimate:a,darkMode:o}),timeout:a?l.c:0},()=>r.a.createElement(d.a,{...i}))};const p=Object(a.b)(e=>({show:e.wordEditor.isShow,darkMode:e.config.darkMode,withAnimation:e.config.animation,containerWidth:window.innerWidth-e.config.panelWidth-100,ctxTrans:e.config.ctxTrans,wordEditor:e.wordEditor}),e=>({onClose:()=>{e({type:"WORD_EDITOR_STATUS",payload:{word:null}})}}))(u);t.a=p},578:function(e,t,n){var a=n(579);e.exports="string"==typeof a?a:a.toString()},579:function(e,t,n){var a=n(226),o=n(613),r=n(580);t=a(!1);var i=o(r);t.push([e.i,"button,h1,h2,h3,h4,li,ul{margin:0;padding:0}img{display:block;max-width:95%}p{margin:.5em 0}ul li{list-style-type:none}button{background:0 0;border:none}button:hover{outline:0}a{color:#f9690e;text-decoration:none}a:hover{text-decoration:underline}select{color:#666;border:1px solid rgba(133,133,133,.28);background:0 0}.saladict-Speaker{display:inline-block;width:1.1em;height:1.1em;text-decoration:none;margin:0 5px;padding:0;line-height:1;vertical-align:text-bottom;border:none;background:no-repeat left/cover url("+i+');-moz-user-select:none;user-select:none;cursor:pointer}.saladict-Speaker:hover{outline:0}.saladict-Speaker.isActive{animation:saladict-Speaker-playing 1s steps(6) infinite}@keyframes saladict-Speaker-playing{from{background-position-x:0}70%{background-position-x:100%}100%{background-position-x:100%}}.entryBox-Wrap{padding-top:.8em}.entryBox{position:relative;border:1px solid #c76e06;border-radius:5px;margin-bottom:1em;padding:1em .5em .5em .5em}.entryBox-Title{position:absolute;top:0;left:1em;transform:translateY(-50%);max-width:90%;overflow:hidden;padding:0 5px;white-space:nowrap;text-overflow:ellipsis;font-size:1.2em;background:var(--color-background)}.dictRoot{font-size:var(--panel-font-size);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-family:"Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei",sans-serif}.dictRoot select{display:block;box-sizing:border-box;width:100%;margin:0 0 .5em 0;padding:.6em 1.4em .5em .8em;border-radius:.5em;font-size:var(--panel-font-size);font-weight:700;line-height:1.3;-moz-appearance:none;-webkit-appearance:none;appearance:none;-moz-appearance:none;border:1px solid rgba(133,133,133,.28);box-shadow:0 1px 0 1px rgba(0,0,0,.04);color:var(--color-font-grey);background-color:var(--color-background);background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%235caf9e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.65em auto,100%}.dictRoot select::-ms-expand{display:none}.dictRoot select:hover{border-color:rgba(133,133,133,.48)}.dictRoot select:focus{border-color:rgba(59,153,252,.7);outline:0}.dictRoot select option{font-weight:400}.dictManualVerification{padding:12px;border:1px solid rgba(133,133,133,.28);border-radius:4px;background:var(--color-background);color:var(--color-font)}.dictManualVerification h2{margin:0 0 8px;font-size:1.1em}.dictManualVerification p{margin:0 0 10px;line-height:1.5}.dictManualVerification a{color:#f9690e;font-weight:700}',""]),e.exports=t},580:function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMzUwIDUwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAxMS41ODUgMTYuOTc2IEwgMy43MjggMTYuOTc2IEMgMi42MjkgMTYuOTc2IDEuNzQxIDE3Ljg2NCAxLjc0MSAxOC45NjMgTCAxLjc0MSAzMS4wMzkgQyAxLjc0MSAzMi4xMzQgMi42MjkgMzMuMDI0IDMuNzI4IDMzLjAyNCBMIDExLjU4NSAzMy4wMjQgQyAxMS45MzkgMzMuMDI0IDEyLjI4NyAzMy4xMTkgMTIuNTkyIDMzLjI5OSBMIDI1LjE4IDQ1LjAyIEMgMjYuNTA0IDQ1Ljc5OCAyOC4xNzQgNDQuODQ1IDI4LjE3NCA0My4zMDggTCAyOC4xNzQgNi42OTIgQyAyOC4xNzQgNS4xNTcgMjYuNTA0IDQuMjAxIDI1LjE4IDQuOTggTCAxMi41OTMgMTYuNyBDIDEyLjI4NyAxNi44NzkgMTEuOTQgMTYuOTc1IDExLjU4NSAxNi45NzUgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCA1MCwgMCkiPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAxMS41ODUgMTYuOTc2IEwgMy43MjggMTYuOTc2IEMgMi42MjkgMTYuOTc2IDEuNzQxIDE3Ljg2NCAxLjc0MSAxOC45NjMgTCAxLjc0MSAzMS4wMzkgQyAxLjc0MSAzMi4xMzQgMi42MjkgMzMuMDI0IDMuNzI4IDMzLjAyNCBMIDExLjU4NSAzMy4wMjQgQyAxMS45MzkgMzMuMDI0IDEyLjI4NyAzMy4xMTkgMTIuNTkyIDMzLjI5OSBMIDI1LjE4IDQ1LjAyIEMgMjYuNTA0IDQ1Ljc5OCAyOC4xNzQgNDQuODQ1IDI4LjE3NCA0My4zMDggTCAyOC4xNzQgNi42OTIgQyAyOC4xNzQgNS4xNTcgMjYuNTA0IDQuMjAxIDI1LjE4IDQuOTggTCAxMi41OTMgMTYuNyBDIDEyLjI4NyAxNi44NzkgMTEuOTQgMTYuOTc1IDExLjU4NSAxNi45NzUgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzMi4xMTcgMzUuMDU1IEMgMzEuODMzIDM1LjA1NSAzMS41NDkgMzQuOTQ2IDMxLjMzMyAzNC43MjkgQyAzMC44OTYgMzQuMjk1IDMwLjg5NiAzMy41OTEgMzEuMzMzIDMzLjE1OCBDIDM2LjEwNSAyOC4zODIgMzYuMTA1IDIwLjYxMiAzMS4zMzMgMTUuODM3IEMgMzAuODk2IDE1LjQwMyAzMC44OTYgMTQuNzAyIDMxLjMzMyAxNC4yNjUgQyAzMS43NjYgMTMuODMyIDMyLjQ2OCAxMy44MzIgMzIuOTAzIDE0LjI2NSBDIDM4LjU0NiAxOS45MDYgMzguNTQ2IDI5LjA4NiAzMi45MDMgMzQuNzI4IEMgMzIuNjg5IDM0Ljk0NSAzMi40MDMgMzUuMDU1IDMyLjExNyAzNS4wNTUgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAxMDAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzIuMTE3IDM1LjA1NSBDIDMxLjgzMyAzNS4wNTUgMzEuNTQ5IDM0Ljk0NiAzMS4zMzMgMzQuNzI5IEMgMzAuODk2IDM0LjI5NSAzMC44OTYgMzMuNTkxIDMxLjMzMyAzMy4xNTggQyAzNi4xMDUgMjguMzgyIDM2LjEwNSAyMC42MTIgMzEuMzMzIDE1LjgzNyBDIDMwLjg5NiAxNS40MDMgMzAuODk2IDE0LjcwMiAzMS4zMzMgMTQuMjY1IEMgMzEuNzY2IDEzLjgzMiAzMi40NjggMTMuODMyIDMyLjkwMyAxNC4yNjUgQyAzOC41NDYgMTkuOTA2IDM4LjU0NiAyOS4wODYgMzIuOTAzIDM0LjcyOCBDIDMyLjY4OSAzNC45NDUgMzIuNDAzIDM1LjA1NSAzMi4xMTcgMzUuMDU1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAxNTAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzIuMTE3IDM1LjA1NSBDIDMxLjgzMyAzNS4wNTUgMzEuNTQ5IDM0Ljk0NiAzMS4zMzMgMzQuNzI5IEMgMzAuODk2IDM0LjI5NSAzMC44OTYgMzMuNTkxIDMxLjMzMyAzMy4xNTggQyAzNi4xMDUgMjguMzgyIDM2LjEwNSAyMC42MTIgMzEuMzMzIDE1LjgzNyBDIDMwLjg5NiAxNS40MDMgMzAuODk2IDE0LjcwMiAzMS4zMzMgMTQuMjY1IEMgMzEuNzY2IDEzLjgzMiAzMi40NjggMTMuODMyIDMyLjkwMyAxNC4yNjUgQyAzOC41NDYgMTkuOTA2IDM4LjU0NiAyOS4wODYgMzIuOTAzIDM0LjcyOCBDIDMyLjY4OSAzNC45NDUgMzIuNDAzIDM1LjA1NSAzMi4xMTcgMzUuMDU1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzOS4zMTQgNDUuMDU3IEMgMzkuMDI4IDQ1LjA1NyAzOC43NDQgNDQuOTQ4IDM4LjUyOCA0NC43MyBDIDM4LjA5MyA0NC4yOTcgMzguMDkzIDQzLjU5NSAzOC41MjggNDMuMTYgQyA0My4zNjkgMzguMzIxIDQ2LjAzNSAzMS44OSA0Ni4wMzUgMjUuMDU2IEMgNDYuMDM1IDE4LjIyIDQzLjM3IDExLjc4OCAzOC41MjggNi45NDggQyAzOC4wOTMgNi41MTQgMzguMDkzIDUuODEyIDM4LjUyOCA1LjM3OCBDIDM4Ljk2MyA0Ljk0NCAzOS42NjQgNC45NDQgNDAuMSA1LjM3OCBDIDQ1LjM2MSAxMC42MzcgNDguMjYgMTcuNjI1IDQ4LjI2IDI1LjA1NiBDIDQ4LjI2IDMyLjQ4NCA0NS4zNjEgMzkuNDczIDQwLjEgNDQuNzMxIEMgMzkuODgzIDQ0Ljk0OSAzOS41OTkgNDUuMDU4IDM5LjMxNSA0NS4wNTggWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAyMDAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzOS4zMTQgNDUuMDU3IEMgMzkuMDI4IDQ1LjA1NyAzOC43NDQgNDQuOTQ4IDM4LjUyOCA0NC43MyBDIDM4LjA5MyA0NC4yOTcgMzguMDkzIDQzLjU5NSAzOC41MjggNDMuMTYgQyA0My4zNjkgMzguMzIxIDQ2LjAzNSAzMS44OSA0Ni4wMzUgMjUuMDU2IEMgNDYuMDM1IDE4LjIyIDQzLjM3IDExLjc4OCAzOC41MjggNi45NDggQyAzOC4wOTMgNi41MTQgMzguMDkzIDUuODEyIDM4LjUyOCA1LjM3OCBDIDM4Ljk2MyA0Ljk0NCAzOS42NjQgNC45NDQgNDAuMSA1LjM3OCBDIDQ1LjM2MSAxMC42MzcgNDguMjYgMTcuNjI1IDQ4LjI2IDI1LjA1NiBDIDQ4LjI2IDMyLjQ4NCA0NS4zNjEgMzkuNDczIDQwLjEgNDQuNzMxIEMgMzkuODgzIDQ0Ljk0OSAzOS41OTkgNDUuMDU4IDM5LjMxNSA0NS4wNTggWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAyNTAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzkuMzE0IDQ1LjA1NyBDIDM5LjAyOCA0NS4wNTcgMzguNzQ0IDQ0Ljk0OCAzOC41MjggNDQuNzMgQyAzOC4wOTMgNDQuMjk3IDM4LjA5MyA0My41OTUgMzguNTI4IDQzLjE2IEMgNDMuMzY5IDM4LjMyMSA0Ni4wMzUgMzEuODkgNDYuMDM1IDI1LjA1NiBDIDQ2LjAzNSAxOC4yMiA0My4zNyAxMS43ODggMzguNTI4IDYuOTQ4IEMgMzguMDkzIDYuNTE0IDM4LjA5MyA1LjgxMiAzOC41MjggNS4zNzggQyAzOC45NjMgNC45NDQgMzkuNjY0IDQuOTQ0IDQwLjEgNS4zNzggQyA0NS4zNjEgMTAuNjM3IDQ4LjI2IDE3LjYyNSA0OC4yNiAyNS4wNTYgQyA0OC4yNiAzMi40ODQgNDUuMzYxIDM5LjQ3MyA0MC4xIDQ0LjczMSBDIDM5Ljg4MyA0NC45NDkgMzkuNTk5IDQ1LjA1OCAzOS4zMTUgNDUuMDU4IFoiIHN0eWxlPSIiLz4KICA8L2c+CiAgPGcgdHJhbnNmb3JtPSJtYXRyaXgoMSwgMCwgMCwgMSwgMzAwLCAwKSI+CiAgICA8cGF0aCBmaWxsPSIjZjk2OTBlIiBkPSJNIDExLjU4NSAxNi45NzYgTCAzLjcyOCAxNi45NzYgQyAyLjYyOSAxNi45NzYgMS43NDEgMTcuODY0IDEuNzQxIDE4Ljk2MyBMIDEuNzQxIDMxLjAzOSBDIDEuNzQxIDMyLjEzNCAyLjYyOSAzMy4wMjQgMy43MjggMzMuMDI0IEwgMTEuNTg1IDMzLjAyNCBDIDExLjkzOSAzMy4wMjQgMTIuMjg3IDMzLjExOSAxMi41OTIgMzMuMjk5IEwgMjUuMTggNDUuMDIgQyAyNi41MDQgNDUuNzk4IDI4LjE3NCA0NC44NDUgMjguMTc0IDQzLjMwOCBMIDI4LjE3NCA2LjY5MiBDIDI4LjE3NCA1LjE1NyAyNi41MDQgNC4yMDEgMjUuMTggNC45OCBMIDEyLjU5MyAxNi43IEMgMTIuMjg3IDE2Ljg3OSAxMS45NCAxNi45NzUgMTEuNTg1IDE2Ljk3NSBaIiBzdHlsZT0iIi8+CiAgPC9nPgo8L3N2Zz4="},638:function(e,t,n){var a=n(639);e.exports="string"==typeof a?a:a.toString()},639:function(e,t,n){(t=n(226)(!1)).push([e.i,".saladbowl{position:fixed;z-index:2147483647;top:0;left:0;width:30px;height:30px;-moz-user-select:none;user-select:none;cursor:pointer}.isAnimate .saladbowl{will-change:transform;transition:transform .3s ease-out}.isAnimate .saladbowl.enableHover:hover .saladbowl-leaf{animation:saladbowl-leaf-shake .7s infinite linear}.isAnimate .saladbowl.enableHover:hover .saladbowl-orange{transform-origin:301.8px 187.4px;animation:saladbowl-orange-spin .7s infinite linear}.isAnimate .saladbowl.enableHover:hover .saladbowl-tomato{transform-origin:297.8px 126.4px;animation:saladbowl-tomato-shake .7s infinite linear}.saladbowl,.saladbowl>svg{background-color:transparent!important}.isAnimate .saladbowl-enter-active>svg{animation:saladbowl-jelly 1s linear}.isAnimate .saladbowl-exit{opacity:1}.isAnimate .saladbowl-exit-active{opacity:0;transition:opacity .1s}.saladbowl-exit-done{display:none}@keyframes saladbowl-jelly{0%{transform:matrix3d(.5,0,0,0,0,.5,0,0,0,0,1,0,0,0,0,1)}3.40%{transform:matrix3d(.658,0,0,0,0,.703,0,0,0,0,1,0,0,0,0,1)}4.70%{transform:matrix3d(.725,0,0,0,0,.8,0,0,0,0,1,0,0,0,0,1)}6.81%{transform:matrix3d(.83,0,0,0,0,.946,0,0,0,0,1,0,0,0,0,1)}9.41%{transform:matrix3d(.942,0,0,0,0,1.084,0,0,0,0,1,0,0,0,0,1)}10.21%{transform:matrix3d(.971,0,0,0,0,1.113,0,0,0,0,1,0,0,0,0,1)}13.61%{transform:matrix3d(1.062,0,0,0,0,1.166,0,0,0,0,1,0,0,0,0,1)}14.11%{transform:matrix3d(1.07,0,0,0,0,1.165,0,0,0,0,1,0,0,0,0,1)}17.52%{transform:matrix3d(1.104,0,0,0,0,1.12,0,0,0,0,1,0,0,0,0,1)}18.72%{transform:matrix3d(1.106,0,0,0,0,1.094,0,0,0,0,1,0,0,0,0,1)}21.32%{transform:matrix3d(1.098,0,0,0,0,1.035,0,0,0,0,1,0,0,0,0,1)}24.32%{transform:matrix3d(1.075,0,0,0,0,.98,0,0,0,0,1,0,0,0,0,1)}25.23%{transform:matrix3d(1.067,0,0,0,0,.969,0,0,0,0,1,0,0,0,0,1)}29.03%{transform:matrix3d(1.031,0,0,0,0,.948,0,0,0,0,1,0,0,0,0,1)}29.93%{transform:matrix3d(1.024,0,0,0,0,.949,0,0,0,0,1,0,0,0,0,1)}35.54%{transform:matrix3d(.99,0,0,0,0,.981,0,0,0,0,1,0,0,0,0,1)}36.74%{transform:matrix3d(.986,0,0,0,0,.989,0,0,0,0,1,0,0,0,0,1)}41.04%{transform:matrix3d(.98,0,0,0,0,1.011,0,0,0,0,1,0,0,0,0,1)}44.44%{transform:matrix3d(.983,0,0,0,0,1.016,0,0,0,0,1,0,0,0,0,1)}52.15%{transform:matrix3d(.996,0,0,0,0,1.003,0,0,0,0,1,0,0,0,0,1)}59.86%{transform:matrix3d(1.003,0,0,0,0,.995,0,0,0,0,1,0,0,0,0,1)}63.26%{transform:matrix3d(1.004,0,0,0,0,.996,0,0,0,0,1,0,0,0,0,1)}75.28%{transform:matrix3d(1.001,0,0,0,0,1.002,0,0,0,0,1,0,0,0,0,1)}85.49%{transform:matrix3d(.999,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}90.69%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}100%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}}@keyframes saladbowl-leaf-shake{0%{transform:translate(2px,1px) rotate(0)}10%{transform:translate(-1px,-2px) rotate(1deg)}20%{transform:translate(-2px,0) rotate(1deg)}30%{transform:translate(0,2px) rotate(0)}40%{transform:translate(1px,-1px) rotate(1deg)}50%{transform:translate(-1px,2px) rotate(1deg)}60%{transform:translate(-2px,1px) rotate(0)}70%{transform:translate(2px,1px) rotate(1deg)}80%{transform:translate(-1px,-1px) rotate(1deg)}90%{transform:translate(2px,2px) rotate(0)}100%{transform:translate(1px,-2px) rotate(1deg)}}@keyframes saladbowl-orange-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes saladbowl-tomato-shake{0%{transform:rotate(10deg)}30%{transform:rotate(0)}60%{transform:rotate(10deg)}90%{transform:rotate(0)}100%{transform:rotate(5deg)}}",""]),e.exports=t},641:function(e,t,n){var a=n(642);e.exports="string"==typeof a?a:a.toString()},642:function(e,t,n){(t=n(226)(!1)).push([e.i,'.shadowPortal-appear,.shadowPortal-enter{opacity:0}.shadowPortal-appear-active,.shadowPortal-enter-active{opacity:1;transition:opacity .4s}.shadowPortal-exit{opacity:1}.shadowPortal-exit-active{opacity:0;transition:opacity .1s}.saladict-theme{background-color:#fff;color:#24292f;--color-brand:#2f9d8a;--color-background:#ffffff;--color-rgb-background:255,255,255;--color-font:#24292f;--color-font-grey:#5d6670;--color-divider:#d9dee3;--color-surface:#f6f8fa;--color-surface-active:#eaeef2;--color-link:#286aa8}.darkMode .saladict-theme{background-color:#282c30;color:#e3e0da;--color-brand:#2b9f8d;--color-background:#282c30;--color-rgb-background:40,44,48;--color-font:#e3e0da;--color-font-grey:#b8b3aa;--color-divider:#555b61;--color-surface:#33383d;--color-surface-active:#3d444a;--color-link:#8eb7e6}.dictPanel-FloatBox-Container{position:relative}.dictPanel-Root{display:flex;flex-direction:column;box-sizing:border-box;position:fixed;z-index:2147483647;top:0;left:0;overflow:hidden;text-align:initial;border-radius:6px;background-color:inherit;box-shadow:rgba(0,0,0,.8) 0 4px 23px -6px}.dictPanel-Head{flex-shrink:0}.dictPanel-Body{flex:1;overflow-x:hidden;overflow-y:scroll;-webkit-overflow-scrolling:touch}.fancy-scrollbar{overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;scrollbar-width:auto}.fancy-scrollbar::-webkit-scrollbar{height:8px;width:8px}.fancy-scrollbar::-webkit-scrollbar-track{background-color:transparent}.fancy-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(138,138,138,.25);border-radius:4px}.fancy-scrollbar::-webkit-scrollbar-thumb:hover{background-color:rgba(138,138,138,.35)}.fancy-scrollbar::-webkit-scrollbar-thumb:active{background-color:rgba(138,138,138,.6)}.fancy-scrollbar::-webkit-scrollbar-thumb:vertical{min-height:50px}.fancy-scrollbar::-webkit-scrollbar-thumb:horizontal{min-width:50px}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:0 0;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn-dir:focus,.menuBar-Btn-dir:hover,.menuBar-Btn:focus,.menuBar-Btn:hover{outline:0;background:rgba(0,0,0,.05)}.menuBar-Btn-dir:disabled svg,.menuBar-Btn:disabled svg{fill:#9accc1}.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn-dir:disabled:hover,.menuBar-Btn:disabled:hover{cursor:unset;background:0 0}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * .7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:focus,.floatBox-Item:hover{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em!important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:400}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;color:var(--color-font);background:0 0;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:focus,.floatBox-Btn:hover{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(19px,0)}}.menuBar-SuggestsEntry{margin-right:1.5em;color:#f9690e}.menuBar-SuggestsExplain{color:var(--color-font)}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:0 0;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn-dir:focus,.menuBar-Btn-dir:hover,.menuBar-Btn:focus,.menuBar-Btn:hover{outline:0;background:rgba(0,0,0,.05)}.menuBar-Btn-dir:disabled svg,.menuBar-Btn:disabled svg{fill:#9accc1}.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn-dir:disabled:hover,.menuBar-Btn:disabled:hover{cursor:unset;background:0 0}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-SearchBox_Wrap{flex:2;position:relative}.menuBar-SearchBox_Wrap.isExpand{flex:7}.isAnimate .menuBar-SearchBox_Wrap{transition:flex .6s}.menuBar-SearchBox{width:100%;box-sizing:border-box;padding:0 5px;border:0 none;outline:0 none;color:#fff;background-color:rgba(225,225,225,.1)}.menuBar-SearchBox_Suggests{position:absolute;left:0;top:30px;z-index:1000}.isAnimate .csst-menuBar-SearchBox_Suggests-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-enter-active,.isAnimate .csst-menuBar-SearchBox_Suggests-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-exit-active{opacity:0;transition:opacity .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * .7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:focus,.floatBox-Item:hover{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em!important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:400}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;color:var(--color-font);background:0 0;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:focus,.floatBox-Btn:hover{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(19px,0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:0 0;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn-dir:focus,.menuBar-Btn-dir:hover,.menuBar-Btn:focus,.menuBar-Btn:hover{outline:0;background:rgba(0,0,0,.05)}.menuBar-Btn-dir:disabled svg,.menuBar-Btn:disabled svg{fill:#9accc1}.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn-dir:disabled:hover,.menuBar-Btn:disabled:hover{cursor:unset;background:0 0}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-ProfileItem{position:relative;padding-left:10px;color:var(--color-font)}.menuBar-ProfileItem.isActive::before{content:"";position:absolute;top:50%;transform:translateY(-55%);left:-5px;width:0;height:0;border-left:10px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}.menuBar{display:flex;align-items:center;position:relative;height:30px;padding:0 3px;font-size:14px;background-color:var(--color-brand)}.menuBar-DragArea{flex:3;align-self:stretch;-moz-user-select:none;user-select:none;touch-action:none;cursor:move}.mtaBox-TextArea-Wrap{max-height:var(--panel-max-height);position:relative;overflow:hidden;height:0}.isAnimate .mtaBox-TextArea-Wrap{transition:height .4s}.isAnimate .mtaBox-TextArea-Wrap.isTyping{transition:height 0s}.mtaBox-TextArea{display:block;width:100%;max-height:var(--panel-max-height);box-sizing:border-box;padding:5px 5px 10px;border:none;color:var(--color-font);font-size:var(--panel-font-size);background:0 0}.mtaBox-TextArea-Wrap-appear .mtaBox-TextArea,.mtaBox-TextArea-Wrap-appear-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit-active .mtaBox-TextArea{position:absolute;bottom:0}.mtaBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;padding:0;border:none;border-top:1px solid var(--color-divider);border-bottom:1px dashed var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.mtaBox-DrawerBtn:focus{outline:0;border:1px solid var(--color-font)!important}.mtaBox-DrawerBtn_Arrow{fill:var(--color-font)}.mtaBox-DrawerBtn_Arrow.isExpand{transform:rotate(180deg)}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * .7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:focus,.floatBox-Item:hover{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em!important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:400}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;color:var(--color-font);background:0 0;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:focus,.floatBox-Btn:hover{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(19px,0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.dictItemHead{display:flex;box-sizing:border-box;align-items:flex-start;position:sticky;top:0;z-index:100;height:20px;padding-right:2px;border-top:1px var(--color-divider) dashed;background:var(--color-background)}.dictItemHead-Logo{width:20px;height:20px;margin-top:-1px;-moz-user-select:none;user-select:none}.dictItemHead-Title{margin:0;padding:0 3px;line-height:20px;font-size:12px;font-weight:400}.dictItemHead-Title a{color:var(--color-font);text-decoration:none}.dictItemHead-Menus_Btn{width:18px;height:18px;margin:1px 0 0;padding:0;font-size:0;border:none;border-radius:3px;outline:0;background-color:transparent;opacity:.7;transition:background-color .4s;cursor:pointer}.dictItemHead-Menus_Btn svg{fill:var(--color-font)}.dictItemHead-Menus_Btn:active,.dictItemHead-Menus_Btn:focus,.dictItemHead-Menus_Btn:hover{background-color:var(--color-divider)}.darkMode .dictItemHead-Menus_Btn:active,.darkMode .dictItemHead-Menus_Btn:focus,.darkMode .dictItemHead-Menus_Btn:hover{background-color:var(--color-divider)}.dictItemHead-EmptyArea{flex:1;align-self:stretch}.dictItemHead-FoldArrowBtn{width:19px;height:19px;overflow:hidden;background:0 0;border:none;padding:0;cursor:pointer;-moz-user-select:none;user-select:none}.dictItemHead-FoldArrowBtn:hover{outline:0}.dictItemHead-FoldArrow{box-sizing:border-box;fill:var(--color-font);width:18px;height:18px;padding:3px;transform-origin:center}.isAnimate .dictItemHead-FoldArrow{transition:transform .4s}.isUnfold .dictItemHead-FoldArrow{transform:rotate(-90deg)}.dictItemHead-Loader{display:flex;align-items:center;width:54px;height:20px}.dictItemHead-Loader>div{width:8px;height:8px;margin:2px;background:#f9690e;border-radius:100%}.isAnimate .dictItemHead-Loader>div{animation:dictItemHead-Loader 1.5s infinite ease-in-out}.isAnimate .dictItemHead-Loader>div:nth-child(5){animation-delay:0s}.isAnimate .dictItemHead-Loader>div:nth-child(4){animation-delay:-.1s}.isAnimate .dictItemHead-Loader>div:nth-child(3){animation-delay:-.2s}.isAnimate .dictItemHead-Loader>div:nth-child(2){animation-delay:-.3s}.isAnimate .dictItemHead-Loader>div:nth-child(1){animation-delay:-.4s}@keyframes dictItemHead-Loader{0%,100%,30%,70%{transform:scale(0)}50%{transform:scale(1)}}.dictItem{position:relative;background:var(--color-background)}.dictItem-Body{overflow:hidden;position:relative;padding:0 10px;font-size:13px;line-height:1.6;color:var(--color-font)}.isAnimate .dictItem-Body{transition:height .4s,opacity .4s}.dictItem-BodyMesure{overflow:hidden;opacity:0;position:relative}.dictItem-BodyMesure>:first-child{margin-top:10px!important}.dictItem-BodyMesure>:last-child{margin-bottom:10px!important}.isAnimate .dictItem-BodyMesure{transition:opacity .4s}.isUnfold .dictItem-BodyMesure{opacity:1}.dictItem-Loader{align-self:center;width:120px;height:10px;-moz-user-select:none;user-select:none}.dictItem-Loader_Ball{width:10px;height:10px;fill:orange}.dictItem-Loader_Ball:nth-child(2){transform:translateX(15px)}.dictItem-Loader_Ball:nth-child(3){transform:translateX(30px)}.dictItem-Loader_Ball:nth-child(4){transform:translateX(45px)}.dictItem-Loader_Ball:nth-child(5){transform:translateX(60px)}.isAnimate .dictItem-Loader_Ball{animation:dictItem-Loader-shift 2s linear infinite}.isAnimate .dictItem-Loader_Ball:nth-child(2){animation-delay:-.4s}.isAnimate .dictItem-Loader_Ball:nth-child(3){animation-delay:-.8s}.isAnimate .dictItem-Loader_Ball:nth-child(4){animation-delay:-1.2s}.isAnimate .dictItem-Loader_Ball:nth-child(5){animation-delay:-1.6s}.dictItem-FoldMask{position:absolute;left:0;bottom:0;width:100%;height:50px;padding:0;border:none;background:linear-gradient(rgba(var(--color-rgb-background),0) 40%,rgba(var(--color-rgb-background),.5) 60%,var(--color-background) 100%);opacity:.6;cursor:pointer;-moz-user-select:none;user-select:none}.dictItem-FoldMask:hover{outline:0;opacity:1}.isAnimate .dictItem-FoldMask{transition:opacity .4s}.dictItem-FoldMaskArrow{position:absolute;z-index:10;bottom:0;left:0;right:0;margin:0 auto;width:15px;height:15px;fill:var(--color-font)}.isAnimate .noHeightTransition .dictItem-Body{transition:height 0s}@keyframes dictItem-Loader-shift{0%{transform:translateX(0);opacity:0}10%{transform:translateX(30px);opacity:1}90%{transform:translateX(80px);opacity:1}100%{transform:translateX(110px);opacity:0}}.dictList>.dictItem:first-child>.dictItemHead{border-top-color:transparent}.waveformBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;border:none;border-top:1px solid var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.waveformBox-DrawerBtn:focus{outline:0;border:1px solid var(--color-font)!important}.waveformBox-FrameWrap{overflow:hidden;height:0;font-size:0;transition:height .4s}.waveformBox-DrawerBtn_Arrow{fill:var(--color-font)}.waveformBox.isExpand .waveformBox-FrameWrap{height:165px}.waveformBox.isExpand .waveformBox-DrawerBtn{border-bottom:1px solid var(--color-divider)}.waveformBox.isExpand .waveformBox-DrawerBtn_Arrow{transform:rotate(180deg)}.waveformBox-Frame{width:100%;height:165px;border:none;transition:opacity .4s}.waveformBox-Frame-enter{opacity:0}.waveformBox-Frame-enter-active,.waveformBox-Frame-exit{opacity:1}.waveformBox-Frame-exit-active{opacity:0}.dictPanel-DragMask{position:fixed;z-index:2147483647;top:0;left:0;bottom:0;right:0;margin:auto;background:rgba(225,225,225,.01);cursor:grabbing;cursor:-webkit-grabbing}.isAnimate .dictPanel-Root{transition:width .4s,height .4s,opacity .4s,top .4s cubic-bezier(.55,.82,.63,.95),left .4s cubic-bezier(.4,.9,.71,1.02)}.isAnimate .dictPanel-Root.isDragging{transition:width .4s,height .4s,opacity .4s}',""]),e.exports=t},643:function(e,t,n){var a=n(644);e.exports="string"==typeof a?a:a.toString()},644:function(e,t,n){(t=n(226)(!1)).push([e.i,'.saladict-theme{background-color:#fff;color:#24292f;--color-brand:#2f9d8a;--color-background:#ffffff;--color-rgb-background:255,255,255;--color-font:#24292f;--color-font-grey:#5d6670;--color-divider:#d9dee3;--color-surface:#f6f8fa;--color-surface-active:#eaeef2;--color-link:#286aa8}.darkMode .saladict-theme{background-color:#282c30;color:#e3e0da;--color-brand:#2b9f8d;--color-background:#282c30;--color-rgb-background:40,44,48;--color-font:#e3e0da;--color-font-grey:#b8b3aa;--color-divider:#555b61;--color-surface:#33383d;--color-surface-active:#3d444a;--color-link:#8eb7e6}.fancy-scrollbar{overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;scrollbar-width:auto}.fancy-scrollbar::-webkit-scrollbar{height:8px;width:8px}.fancy-scrollbar::-webkit-scrollbar-track{background-color:transparent}.fancy-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(138,138,138,.25);border-radius:4px}.fancy-scrollbar::-webkit-scrollbar-thumb:hover{background-color:rgba(138,138,138,.35)}.fancy-scrollbar::-webkit-scrollbar-thumb:active{background-color:rgba(138,138,138,.6)}.fancy-scrollbar::-webkit-scrollbar-thumb:vertical{min-height:50px}.fancy-scrollbar::-webkit-scrollbar-thumb:horizontal{min-width:50px}.wordEditorPanel-Background{position:fixed;z-index:2147483646;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;text-align:initial;background:rgba(0,0,0,.4)}.wordEditorPanel-Container{display:flex;align-items:center;height:100%;min-width:440px;margin-left:auto}.wordEditorPanel{display:flex;flex-direction:column;width:80%;max-width:800px;min-width:400px;max-height:90vh;border-radius:6px;color:var(--color-font);background-color:var(--color-background);box-shadow:0 5px 15px rgba(0,0,0,.5);font-size:13px;font-family:"Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei",sans-serif}.wordEditorPanel-Header{display:flex;border-bottom:1px solid #ccc}.wordEditorPanel-Title{margin:0;font-size:18px;padding:15px}.wordEditorPanel-BtnClose{text-decoration:none;margin-left:auto;padding:15px;font-size:21px;font-weight:700;line-height:1;border:none;background:0 0;color:var(--color-font);text-shadow:0 1px 0 var(--color-background);opacity:.5;cursor:pointer}.wordEditorPanel-BtnClose:hover{outline:0}.wordEditorPanel-Main{flex:1;overflow-x:hidden;overflow-y:scroll;overscroll-behavior:contain}.wordEditorPanel-Footer{padding:15px;text-align:right;border-top:1px solid #ccc}.darkMode .wordEditorPanel-Btn,.darkMode .wordEditorPanel-Btn_normal,.wordEditorPanel-Btn,.wordEditorPanel-Btn_normal,.wordEditorPanel-Btn_primary{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857;border-radius:4px;-moz-user-select:none;user-select:none}.wordEditorPanel-Btn,.wordEditorPanel-Btn_normal{margin-right:10px;color:#333;background-color:#fff;border-color:#ccc}.wordEditorPanel-Btn:focus,.wordEditorPanel-Btn_normal:focus{background-color:#e6e6e6;border-color:#8c8c8c}.wordEditorPanel-Btn:hover,.wordEditorPanel-Btn_normal:hover{outline:0;background-color:#e6e6e6;border-color:#adadad}.wordEditorPanel-Btn:active,.wordEditorPanel-Btn_normal:active{outline:0;background-color:#e6e6e6;border-color:#8c8c8c;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.wordEditorPanel-Btn_primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.wordEditorPanel-Btn_primary:focus{background-color:#286090;border-color:#122b40}.wordEditorPanel-Btn_primary:hover{outline:0;background-color:#286090;border-color:#204d74}.wordEditorPanel-Btn_primary:active{outline:0;background-color:#204d74;border-color:#122b40;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.darkMode .wordEditorPanel-Footer,.darkMode .wordEditorPanel-Header{border-color:#8b8b8b}.darkMode .wordEditorPanel-Btn,.darkMode .wordEditorPanel-Btn_normal{margin-right:10px;color:#333;background-color:#ddd;border-color:#ccc}.darkMode .wordEditorPanel-Btn:focus,.darkMode .wordEditorPanel-Btn_normal:focus{background-color:#bfbfbf;border-color:#8c8c8c}.darkMode .wordEditorPanel-Btn:hover,.darkMode .wordEditorPanel-Btn_normal:hover{outline:0;background-color:#bfbfbf;border-color:#adadad}.darkMode .wordEditorPanel-Btn:active,.darkMode .wordEditorPanel-Btn_normal:active{outline:0;background-color:#bfbfbf;border-color:#8c8c8c;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.wordCards{flex:2;display:flex;flex-direction:column;overflow:hidden}.wordCards-Title{margin:0;padding:3px 0;text-align:center;font-size:1em;font-weight:400;border-bottom:1px solid #e5e5e5}.wordCards-CardList{flex:1;margin:0;padding:10px;overflow-x:hidden;overflow-y:auto}.wordCards-Card{list-style-type:none;position:relative;display:block;overflow:hidden;margin:0 0 10px 0;padding:10px 10px 10px;word-wrap:break-word;border:1px #faebcc solid;border-radius:20px;color:#8a6d3b;background:#fcf8e3}.wordCards-CardClose{position:absolute;top:5px;right:5px;border:none;font-size:20px;font-weight:700;color:#8a6d3b;background:0 0;cursor:pointer}.wordCards-CardTitle{margin:0 0 .5em;text-align:center}.wordCards-CardItem{position:relative;overflow:visible;margin-bottom:.5em;padding:0 0 0 25px}.wordCards-CardItem_Cont p{margin:0}.wordCards-CardItem_Icon{position:absolute;top:-5px;left:0;width:18px;height:18px;fill:#8a6d3b;-moz-user-select:none;user-select:none}.wordCards-CardFooter{position:relative;border-top:1px solid #faebcc;padding:8px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wordCards-Favicon{position:absolute;top:8px;left:3px;width:14px;height:14px}.wordCards-URL{padding:0 0 0 25px;color:inherit;font-size:12px}.ctxTransList{margin-top:0}.ctxTransItem{list-style-type:none;border-top:1px #ccc dashed}.ctxTransItem:first-of-type{border-top:none}.ctxTransItem-Head{display:flex;align-items:center}.ctxTrans-Title{position:relative;margin:5px 5px 5px 0;font-size:16px}.ctxTrans-Title input{position:absolute;top:3px;left:-25px}.ctxTrans-Content{margin:0 0 5px 0}.ctxTrans-Loader{display:flex;align-items:center;width:54px;height:20px}.ctxTrans-Loader>div{width:8px;height:8px;margin:2px;background:#f9690e;border-radius:100%;animation:ctxTrans-Loader 1.5s infinite ease-in-out}.ctxTrans-Loader>div:nth-child(5){animation-delay:0s}.ctxTrans-Loader>div:nth-child(4){animation-delay:-.1s}.ctxTrans-Loader>div:nth-child(3){animation-delay:-.2s}.ctxTrans-Loader>div:nth-child(2){animation-delay:-.3s}.ctxTrans-Loader>div:nth-child(1){animation-delay:-.4s}@keyframes ctxTrans-Loader{0%,100%,30%,70%{transform:scale(0)}50%{transform:scale(1)}}.wordEditorNote-Container{display:flex}.wordEditorNote{flex:3;padding:15px}.wordEditorNote a{text-decoration:none;color:#1890ff}.wordEditorNote label{display:block;margin-bottom:5px;font-weight:700}.wordEditorNote input,.wordEditorNote textarea{box-sizing:border-box;display:block;resize:vertical;width:100%;margin-bottom:15px;padding:6px 12px;font-size:14px;line-height:1.42857;color:var(--color-font);background:var(--color-background);background-image:none;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.wordEditorNote input:focus,.wordEditorNote textarea:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.darkMode .wordEditorNote input,.darkMode .wordEditorNote textarea{border-color:#8b8b8b}.wordEditorNote_Help{margin-top:-15px;color:var(--color-font-grey)}.wordEditorNote_SrcFavicon{height:16px;margin-left:5px;vertical-align:text-bottom}.wordEditorNote_LabelWithBtn>label{display:inline-block;margin-right:5px}.wordEditorNote_LabelWithBtn>button{position:relative;top:-1px;padding:1px 5px;background:0 0;border:1px solid #ccc;border-radius:3px;font-size:90%;color:var(--color-font);cursor:pointer}.notes-fade-appear,.notes-fade-enter{opacity:0}.notes-fade-appear-active,.notes-fade-enter-active{opacity:1;transition:opacity .4s}.notes-fade-exit{opacity:1}.notes-fade-exit-active{opacity:0;transition:opacity .1s}.shadowPortal-appear,.shadowPortal-enter{opacity:0}.shadowPortal-appear-active,.shadowPortal-enter-active{opacity:1;transition:opacity .4s}.shadowPortal-exit{opacity:1}.shadowPortal-exit-active{opacity:0;transition:opacity .1s}',""]),e.exports=t},71:function(e,t,n){"use strict";n.d(t,"c",(function(){return $})),n.d(t,"b",(function(){return Z})),n.d(t,"a",(function(){return V}));var a=n(104),o=n(272),r=n(23),i=n(903),s=n(8),c=n(10),l=n(182),d=n(508),u=n(1),p=n(80),h=n(2),g=n(273),f=n(11),m=n(29),b=n(33);const x=async()=>{const e=Object(m.c)(),t=Object(b.g)(),n=Object(b.e)(),a=await e,o=await t,r=await n,i=window.location.href,s="hide"!==r.mtaAutoUnfold;return{config:a,profiles:o,activeProfile:r,selection:{word:Object(f.e)(),mouseX:0,mouseY:0,self:!1,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1},isTempDisabled:a.blacklist.some(([e])=>new RegExp(e).test(i))&&a.whitelist.every(([e])=>!new RegExp(e).test(i)),isQSPanel:Object(h.l)(),isQSFocus:a.qsFocus,withQssaPanel:!1,wordEditor:{isShow:!1,word:Object(f.e)(),translateCtx:!1},isShowBowl:!1,isShowDictPanel:Object(h.n)(),isShowMtaBox:s,isExpandMtaBox:s&&("once"===r.mtaAutoUnfold||"always"===r.mtaAutoUnfold||"popup"===r.mtaAutoUnfold&&Object(h.k)()),isExpandWaveformBox:!1,isPinned:!1,isFav:!1,bowlCoord:{x:0,y:0},dictPanelCoord:Object(h.i)()?{x:window.innerWidth-a.panelWidth-20,y:80}:{x:0,y:0},panelHeight:30,_panelHeightCache:{menubar:30,mtabox:0,dictlist:0,waveformbox:0,sum:30,floatHeight:0},panelMaxHeight:window.innerHeight*a.panelMaxHeightRatio/100,renderedDicts:[],userFoldedDicts:{},text:"",searchHistory:[],historyIndex:-1,dragStartCoord:null,lastPlayAudio:null}};var w=n(20);const y=(e,{payload:t})=>{const{activeProfile:n,searchHistory:a,historyIndex:o}=e;let r;const i=t&&t.noHistory?a:a.slice(0,o+1);let s=o;if(t&&t.word){r=t.word;const e=a[o];t.noHistory||e&&e.text===r.text||(i.push(r),s=i.length-1)}else r=a[o];return r?{...e,text:r.text,isShowDictPanel:!0,isExpandMtaBox:"always"===n.mtaAutoUnfold||"popup"===n.mtaAutoUnfold&&Object(h.k)(),searchHistory:i,historyIndex:s,renderedDicts:t&&t.id?e.renderedDicts.map(e=>e.id===t.id?{id:e.id,searchStatus:"SEARCHING",searchResult:null}:e):n.dicts.selected.filter(e=>{const t=n.dicts.all[e];if(Object(w.a)(t.selectionLang,r.text)){const e=Object(w.b)(r.text),{min:n,max:a}=t.selectionWC;return e>=n&&e<=a}return!1}).map(t=>({id:t,searchStatus:!Object(w.a)(n.dicts.all[t].defaultUnfold,r.text)||e.activeProfile.stickyFold&&e.userFoldedDicts[t]?"IDLE":"SEARCHING",searchResult:null}))}:e};const M=(e,{payload:t})=>{if(t.self)return e;const{config:n}=e,a={...e,selection:t};if(Object(h.i)())return a;if(t.word)if(t.force)a.dictPanelCoord={x:t.mouseX,y:t.mouseY};else if(!e.isPinned){const e=30,o=10;a.bowlCoord={x:t.mouseX+n.bowlOffsetX,y:t.mouseY+n.bowlOffsetY},a.bowlCoord.x<30?a.bowlCoord.x=30:a.bowlCoord.x+e+30+o>window.innerWidth&&(a.bowlCoord.x=window.innerWidth-e-o-30),a.bowlCoord.y<30?a.bowlCoord.y=30:a.bowlCoord.y+e+30>window.innerHeight&&(a.bowlCoord.y=window.innerHeight-e-30),a.dictPanelCoord={x:a.bowlCoord.x+e+10,y:a.bowlCoord.y},a.dictPanelCoord.x+a.config.panelWidth+20>window.innerWidth&&(a.dictPanelCoord.x=a.bowlCoord.x-10-a.config.panelWidth)}if(e.withQssaPanel&&n.qssaPageSel||Object(h.n)())return a;const o=n.active&&!e.isTempDisabled,{direct:r,holding:i,double:s,icon:c}=n.mode;return a.isShowDictPanel=Boolean(e.isPinned||o&&t.word&&t.word.text&&(e.isShowDictPanel||r||s&&t.dbClick||i.alt&&t.altKey||i.shift&&t.shiftKey||i.ctrl&&t.ctrlKey||i.meta&&t.metaKey||t.instant)||Object(h.n)()),a.isShowBowl=Boolean(o&&t.word&&t.word.text&&c&&!a.isShowDictPanel&&!r&&!(s&&t.dbClick)&&!(i.alt&&t.altKey)&&!(i.shift&&t.shiftKey)&&!(i.ctrl&&t.ctrlKey)&&!(i.meta&&t.metaKey)&&!t.instant&&!Object(h.n)()),a};const C=e=>{const{panelWidth:t,tripleCtrl:n,qsLocation:a}=e.config;if(!n||e.isShowDictPanel)return e;let o=10,r=10;switch(a){case"CENTER":o=(window.innerWidth-t)/2,r=.3*window.innerHeight;break;case"TOP":o=(window.innerWidth-t)/2,r=10;break;case"RIGHT":o=window.innerWidth-t-30,r=.3*window.innerHeight;break;case"BOTTOM":o=(window.innerWidth-t)/2,r=window.innerHeight-10;break;case"LEFT":o=10,r=.3*window.innerHeight;break;case"TOP_LEFT":o=10,r=10;break;case"TOP_RIGHT":o=window.innerWidth-t-30,r=10;break;case"BOTTOM_LEFT":o=10,r=window.innerHeight-10;break;case"BOTTOM_RIGHT":o=window.innerWidth-t-30,r=window.innerHeight-10}return{...e,isQSPanel:!0,isShowDictPanel:!0,dictPanelCoord:{x:o,y:r}}};const E={NEW_CONFIG:(e,{payload:t})=>{const n=window.location.href,a=window.innerHeight*t.panelMaxHeightRatio/100;return{...e,config:t,panelHeight:Math.min(e.panelHeight,a),panelMaxHeight:a,isQSFocus:t.qsFocus,isTempDisabled:t.blacklist.some(([e])=>new RegExp(e).test(n))&&t.whitelist.every(([e])=>!new RegExp(e).test(n))}},NEW_PROFILES:(e,{payload:t})=>({...e,profiles:t}),NEW_ACTIVE_PROFILE:(e,{payload:t})=>{const n="hide"!==t.mtaAutoUnfold;return{...e,activeProfile:t,isShowMtaBox:n,isExpandMtaBox:n&&("once"===t.mtaAutoUnfold||"always"===t.mtaAutoUnfold||"popup"===t.mtaAutoUnfold&&Object(h.k)()),renderedDicts:e.renderedDicts.filter(({id:e})=>t.dicts.selected.includes(e))}},NEW_SELECTION:M,WINDOW_RESIZE:e=>({...e,panelMaxHeight:window.innerHeight*e.config.panelMaxHeightRatio/100}),TEMP_DISABLED_STATE:(e,{payload:t})=>t?{...e,isTempDisabled:!0,isPinned:!1,isShowDictPanel:Object(h.n)(),isShowBowl:!1,isQSPanel:Object(h.l)()}:{...e,isTempDisabled:!1},BOWL_ACTIVATED:e=>({...e,isShowBowl:!1,isShowDictPanel:!0,isPinned:e.config.defaultPinned}),UPDATE_TEXT:(e,{payload:t})=>({...e,text:t}),TOGGLE_MTA_BOX:e=>({...e,isExpandMtaBox:!e.isExpandMtaBox}),TOGGLE_PIN:e=>({...e,isPinned:!e.isPinned}),TOGGLE_QS_FOCUS:e=>({...e,isQSFocus:!e.isQSFocus}),TOGGLE_WAVEFORM_BOX:e=>({...e,isExpandWaveformBox:!e.isExpandWaveformBox}),OPEN_PANEL:(e,{payload:t})=>Object(h.n)()?e:{...e,isPinned:e.config.defaultPinned,isShowDictPanel:!0,dictPanelCoord:{x:t.x,y:t.y}},CLOSE_PANEL:e=>Object(h.n)()?e:{...e,isPinned:!1,isShowBowl:!1,isShowDictPanel:!1,isQSPanel:Object(h.l)()},SWITCH_HISTORY:(e,{payload:t})=>{const n=Math.min(Math.max(0,e.historyIndex+("prev"===t?-1:1)),e.searchHistory.length-1);return{...e,historyIndex:n,text:e.searchHistory[n]?e.searchHistory[n].text:e.text}},WORD_IN_NOTEBOOK:(e,{payload:t})=>({...e,isFav:t}),ADD_TO_NOTEBOOK:e=>e.config.editOnFav&&!Object(h.n)()?e:{...e,isFav:!0},SEARCH_START:y,SEARCH_END:(e,{payload:t})=>e.renderedDicts.every(({id:e})=>e!==t.id)?e:{...e,renderedDicts:e.renderedDicts.map(e=>e.id===t.id?{id:e.id,searchStatus:"FINISH",searchResult:t.result,catalog:t.catalog}:e)},UPDATE_PANEL_HEIGHT:(e,{payload:t})=>{const{_panelHeightCache:n}=e,a=n.sum-n[t.area]+t.height,o=null==t.floatHeight?n.floatHeight:t.floatHeight;return{...e,panelHeight:Math.min(Math.max(a,o),e.panelMaxHeight),_panelHeightCache:{...n,[t.area]:t.height,sum:a,floatHeight:o}}},USER_FOLD_DICT:(e,{payload:t})=>({...e,userFoldedDicts:{...e.userFoldedDicts,[t.id]:t.fold}}),DRAG_START_COORD:(e,{payload:t})=>({...e,dragStartCoord:t}),SUMMONED_PANEL_INIT:(e,{payload:t})=>({...e,text:t,historyIndex:0,isPinned:e.config.defaultPinned,isShowDictPanel:!0,isShowBowl:!1}),QS_PANEL_CHANGED:(e,{payload:t})=>e.withQssaPanel===t?e:t&&e.config.qssaPageSel?{...e,withQssaPanel:t,isPinned:!1,isShowDictPanel:Object(h.k)()||!!Object(h.i)()&&e.isShowDictPanel,isShowBowl:!1,isQSPanel:!1}:{...e,withQssaPanel:t,isQSPanel:Object(h.l)()},OPEN_QS_PANEL:C,WORD_EDITOR_STATUS:(e,{payload:{word:t,translateCtx:n}})=>t?{...e,wordEditor:{isShow:!0,word:t,translateCtx:!!n},dictPanelCoord:{x:50,y:.2*window.innerHeight}}:{...e,wordEditor:{isShow:!1,word:e.wordEditor.word,translateCtx:!1}},PLAY_AUDIO:(e,{payload:t})=>({...e,lastPlayAudio:t})};var I=n(146),O=n(42),j=n(38);const N=(e,t)=>{window.addEventListener("resize",()=>{e({type:"WINDOW_RESIZE"})}),Object(m.a)(({newConfig:n})=>{n.active!==t().config.active&&u.a.send({type:"SEND_TAB_BADGE_INFO",payload:{active:n.active,tempDisable:t().isTempDisabled,unsupported:!Object(h.n)()&&!Object(j.a)(document.body,"body")}}),e({type:"NEW_CONFIG",payload:n})}),Object(b.a)(({newProfile:t})=>{e({type:"NEW_ACTIVE_PROFILE",payload:t})}),Object(b.d)().subscribe(t=>{e({type:"NEW_PROFILES",payload:t})}),u.a.addListener(n=>{switch(n.type){case"TEMP_DISABLED_STATE":return"set"===n.payload.op?(e({type:"TEMP_DISABLED_STATE",payload:n.payload.value}),setTimeout(()=>{const e=t();u.a.send({type:"SEND_TAB_BADGE_INFO",payload:{active:e.config.active,tempDisable:e.isTempDisabled,unsupported:!Object(h.n)()&&!Object(j.a)(document.body,"body")}})},0),Promise.resolve(!0)):Promise.resolve(t().isTempDisabled);case"SEARCH_TEXT_BOX":{var a;const{searchHistory:n,historyIndex:o,text:r}=t();return e({type:"SEARCH_START",payload:{word:(null===(a=n[o])||void 0===a?void 0:a.text)===r?n[o]:Object(f.e)({text:r,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}}),Object(h.k)()?Promise.resolve(!0):Promise.resolve()}case"WORD_SAVED":{const{text:n}=t();n&&u.a.send({type:"IS_IN_NOTEBOOK",payload:Object(f.e)({text:n})}).then(t=>{e({type:"WORD_IN_NOTEBOOK",payload:t})});break}case"ADD_NOTEBOOK":return n.payload.popup===Object(h.k)()?(e({type:"ADD_TO_NOTEBOOK"}),Promise.resolve(!0)):void 0;case"SWITCH_HISTORY":return e({type:"SWITCH_HISTORY",payload:n.payload}),Promise.resolve(!0);case"QS_PANEL_SEARCH_TEXT":return Object(h.l)()&&(e({type:"SEARCH_START",payload:{word:n.payload}}),t().isQSFocus&&u.a.send({type:"OPEN_QS_PANEL"})),Promise.resolve();case"QS_PANEL_CHANGED":return Object(h.l)()||e({type:"QS_PANEL_CHANGED",payload:n.payload}),Promise.resolve();case"QS_PANEL_FOCUSED":if(Object(h.l)()){const e=document.querySelector(t().isExpandMtaBox?".mtaBox-TextArea":".menuBar-SearchBox");e&&(e.focus(),e.select())}return Promise.resolve();case"GET_TAB_BADGE_INFO":{const e=t();return Promise.resolve({active:e.config.active,tempDisable:e.isTempDisabled,unsupported:!Object(h.n)()&&!Object(j.a)(document.body,"body")})}}});let n=0;u.a.self.addListener(a=>{switch(a.type){case"SELECTION":if(a.payload.instant)n=Date.now();else if(Date.now()-n<500)return Promise.resolve();return e({type:"NEW_SELECTION",payload:a.payload}),Promise.resolve();case"ESCAPE_KEY":return e({type:"CLOSE_PANEL"}),Promise.resolve();case"SEARCH_TEXT":return e({type:"SEARCH_START",payload:{word:a.payload}}),Promise.resolve();case"CLOSE_PANEL":return e({type:"CLOSE_PANEL"}),Promise.resolve();case"TRIPLE_CTRL":if(!Object(h.k)()&&!Object(h.i)()){const n=t();n.config.tripleCtrl&&(n.config.qsStandalone?u.a.send({type:"OPEN_QS_PANEL"}):n.isShowDictPanel||(e({type:"OPEN_QS_PANEL"}),async function(e,t){let n=null;"selection"===t.config.qsPreload?t.selection.word&&(n=t.selection.word):"clipboard"===t.config.qsPreload&&(n=Object(f.e)({text:await u.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&t.config.qsAuto?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,n)))}return Promise.resolve();case"UPDATE_WORD_EDITOR_WORD":return e({type:"WORD_EDITOR_STATUS",payload:a.payload}),Object(O.d)(100).then(()=>{e({type:"SEARCH_START",payload:{word:a.payload.word}})});case"LAST_PLAY_AUDIO":return Promise.resolve(t().lastPlayAudio)}}),Object(h.k)()?async function(e,t){let n=null;if("selection"===t.config.baPreload){const e=(await browser.tabs.query({active:!0,currentWindow:!0}))[0];e&&null!=e.id&&(n=await Object(I.a)(e.id,{type:"PRELOAD_SELECTION"})||null)}else"clipboard"===t.config.baPreload&&(n=Object(f.e)({text:await u.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&t.config.baAuto?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,t()):Object(h.l)()?async function(e,t){let n=null;const{searchParams:a}=new URL(document.URL);a.get("sidebar")||e({type:"TOGGLE_PIN"});const o=a.get("word");if(o)try{n=JSON.parse(decodeURIComponent(o))}catch(e){!1,n=null}if(!n)if("selection"===t.config.qsPreload){const e=Number(a.get("lastTab"));e&&(n=await Object(I.a)(e,{type:"PRELOAD_SELECTION"})||null)}else"clipboard"===t.config.qsPreload&&(n=Object(f.e)({text:await u.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&(t.config.qsAuto||o)?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,t()):u.a.send({type:"QUERY_QS_PANEL"}).then(t=>e({type:"QS_PANEL_CHANGED",payload:t}))};var v=n(798),A=n(124),D=n(102),z=n(67),T=n(88),k=n(799),L=n(152),S=n(39);const B=n(352).a;var _=n(121),P=n(751),W=n(904),U=n(752),H=n(797),R=n(112);var F=(e,t)=>e.pipe(B("SEARCH_START"),Object(_.a)(({payload:e})=>{const{config:n,searchHistory:a,historyIndex:o,renderedDicts:r}=t.value,i=a[o];!n.searchHistory||Object(h.g)()&&!Object(h.n)()||browser.extension.inIncognitoContext&&!n.searchHistoryInco||!(o<=0||a[o-1].text!==i.text||a[o-1].context!==i.context)||Object(f.f)("history",i);const s=new Set;for(const e of r)"SEARCHING"===e.searchStatus&&s.add(e.id);const{cn:l,en:d,machine:p}=n.autopron;l.dict&&s.add(l.dict),d.dict&&s.add(d.dict),p.dict&&s.add(p.dict);const g=Object(R.a)(...[...s].map(t=>u.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:i.text,payload:e&&e.payload?{isPDF:Object(h.j)(),...e.payload}:{isPDF:Object(h.j)()}}}).catch(()=>({id:t,result:null})))).pipe(Object(P.a)()),m=e&&e.id?A.a:g.pipe(Object(S.a)(({id:e,audio:t,result:n})=>!!t&&(!(e!==l.dict||!t.py)||(!(e!==d.dict||!t.uk&&!t.us)||e===p.dict&&!!n[p.src].tts))),Object(W.a)(1),Object(U.a)(({id:e,audio:t,result:n})=>{if(e===l.dict)return u.a.send({type:"PLAY_AUDIO",payload:t.py});if(e===d.dict){const e="us"===d.accent?t.us||t.uk:t.uk||t.us;return u.a.send({type:"PLAY_AUDIO",payload:e})}u.a.send({type:"PLAY_AUDIO",payload:n[p.src].tts})}),Object(H.a)(A.a));return Object(R.a)(Object(z.a)(Object(f.d)(i).catch(()=>!1)).pipe(Object(c.a)(e=>({type:"WORD_IN_NOTEBOOK",payload:e}))),g.pipe(Object(c.a)(({id:e,result:t,catalog:n})=>({type:"SEARCH_END",payload:{id:e,result:t,catalog:n}}))),m)}));var Q=(e,t)=>e.pipe(B("NEW_SELECTION"),Object(_.a)(({payload:e})=>{const{config:n,withQssaPanel:a,isShowDictPanel:o,isPinned:r}=t.value;if(e.self)return function(e,t){const{direct:n,double:a,holding:o}=e.panelMode;if(t.word&&t.word.text&&(t.instant||n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey))return Object(D.a)({type:"SEARCH_START",payload:{word:{...t.word,title:"Saladict Panel",favicon:"https://saladict.crimx.com/favicon.ico"}}});return A.a}(n,e);if(Object(h.i)())return A.a;if(a&&n.qssaPageSel)return function(e,t){const{direct:n,double:a,holding:o}=e.qsPanelMode;t.word&&t.word.text&&(t.instant||n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey)&&u.a.send({type:"QS_PANEL_SEARCH_TEXT",payload:t.word});return A.a}(n,e);if(Object(h.n)())return A.a;const{pinMode:i}=n;return o&&e.word&&e.word.text&&(!r||i.direct||i.double&&e.dbClick||i.holding.alt&&e.altKey||i.holding.shift&&e.shiftKey||i.holding.ctrl&&e.ctrlKey||i.holding.meta&&e.metaKey)?Object(D.a)({type:"SEARCH_START",payload:{word:e.word}}):A.a}));var Y=n(86);const G=Object(v.a)((e,t)=>e.pipe(B("BOWL_ACTIVATED"),Object(c.a)(()=>t.value.selection.word?{type:"SEARCH_START",payload:{word:t.value.selection.word}}:{type:"SEARCH_START"})),(e,t)=>e.pipe(B("SWITCH_HISTORY"),Object(T.a)({type:"SEARCH_START",payload:{noHistory:!0}})),(e,t)=>t.pipe(Object(c.a)(e=>e.isShowDictPanel),Object(k.a)(),Object(L.a)(([e,t])=>(e&&!t&&u.a.send({type:"STOP_AUDIO"}),A.a))),(e,t)=>e.pipe(B("ADD_TO_NOTEBOOK"),Object(L.a)(()=>{if(t.value.config.editOnFav){const e=t.value.searchHistory[t.value.historyIndex];if(Object(h.k)()||Object(h.n)()){const{width:t,height:n}=window.screen,a=Math.round(Math.min(Math.max(t,440),640)),o=Math.round(Math.min(n-150,800));let r="";try{r=encodeURIComponent(JSON.stringify(e))}catch(e){console.warn(e)}return browser.windows.create({type:"popup",url:browser.runtime.getURL("word-editor.html?word="+r),top:Math.round((n-o)/2),left:Math.round((t-a)/2),width:a,height:o}).catch(e=>{console.warn(e)}),A.a}return Object(D.a)({type:"WORD_EDITOR_STATUS",payload:{word:e,translateCtx:!0}})}return Object(z.a)((async()=>{const e=t.value.searchHistory[t.value.searchHistory.length-1];if(e)try{return e.trans=Object(Y.a)(e.trans,await Object(Y.d)(e.context||e.text,t.value.config.ctxTrans)),await Object(f.f)("notebook",e),!0}catch(e){return console.warn(e),!1}return!1})()).pipe(Object(S.a)(e=>!e),Object(T.a)({type:"WORD_IN_NOTEBOOK",payload:!1}))})),Q,F);const K=Object(i.a)(),$=(r.f,r.e),Z=r.d,V=async()=>{const e=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||a.c,t=Object(a.d)(await(async()=>Object(g.createReducer)(await x(),E))(),e(Object(a.a)(o.a,K)));K.run(G),N(t.dispatch,t.getState);const n=new s.a(e=>{t.subscribe(()=>e.next(t.getState()))});async function r(){return t.getState().isPinned}return n.pipe(Object(c.a)(e=>e.isPinned),Object(l.a)()).subscribe(e=>{u.a.self.send({type:"PIN_STATE",payload:e})}),n.pipe(Object(c.a)(e=>e.isShowDictPanel),Object(d.a)(!1),Object(l.a)()).subscribe(e=>{e&&(Object(h.k)()?Object(p.b)("/popup"):Object(h.j)()?Object(p.b)("/pdf-dictpanel"):Object(h.n)()?Object(p.b)("/standalone"):Object(p.b)("/dictpanel"))}),u.a.addListener("QUERY_PIN_STATE",r),u.a.self.addListener("QUERY_PIN_STATE",r),t}},78:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return s}));var a=n(107),o=n(87);const r=function(e){return{version:1,id:e||Object(a.a)(),mtaAutoUnfold:"",waveform:!0,stickyFold:!1,dicts:{selected:["bing","cobuild","cambridge","youdao","urban","vocabulary","caiyun","youdaotrans","zdic","guoyu","liangan"],all:Object(o.b)()}}};function i(e){return{id:e||Object(a.a)(),name:"%%_default_%%"}}function s(){const e=i(),t=r(e.id),n=function(){const e=i();e.name="%%_sentence_%%";const t=r(e.id);t.dicts.selected=["bing","renren","eudic","cobuild","cambridge","longman"];const n=t.dicts.all;return n.bing.options.tense=!1,n.bing.options.phsym=!1,n.bing.options.cdef=!1,n.bing.options.related=!1,n.bing.options.sentence=9999,n.eudic.options.resultnum=9999,n.longman.options.wordfams=!1,n.longman.options.collocations=!1,n.longman.options.grammar=!1,n.longman.options.thesaurus=!1,n.longman.options.examples=!0,n.longman.options.bussinessFirst=!1,n.longman.options.related=!1,{idItem:e,profile:t}}(),a=function(){const e=i();e.name="%%_translation_%%";const t=r(e.id);return t.dicts.selected=["google","tencent","baidu","caiyun","youdaotrans","zdic","guoyu","liangan"],t.mtaAutoUnfold="always",{idItem:e,profile:t}}(),o=function(){const e=i();e.name="%%_scholar_%%";const t=r(e.id);t.dicts.selected=["cambridge","cobuild","etymonline","google","youdaotrans","zdic","guoyu","liangan"];const n=t.dicts.all;return n.google.selectionWC.min=5,n.youdaotrans.selectionWC.min=5,{idItem:e,profile:t}}(),s=function(){const e=i();e.name="%%_nihongo_%%";const t=r(e.id);return t.dicts.selected=["mojidict","hjdict","weblioejje","weblio","google","tencent","caiyun","wikipedia"],t.dicts.all.wikipedia.options.lang="ja",t.waveform=!1,{idItem:e,profile:t}}();return{profileIDList:[e,n.idItem,a.idItem,o.idItem,s.idItem],profiles:[t,n.profile,a.profile,o.profile,s.profile]}}},80:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return f}));var a=n(221),o=n.n(a),r=n(47),i=n.n(r),s=n(222),c=n.n(s),l=n(1),d=n(107),u=n(2);async function p(e){const t=new o.a,n=t.getBrowser(),a=t.getOS();try{await g({t:"pageview",dp:e,cd1:n.name||"None",cd2:(n.version||"0.0").split(".").slice(0,3).join("."),cd3:a.name||"None",cd4:a.version||"0.0",de:"UTF-8",dl:document.location.href,sd:screen.colorDepth+"-bit",sr:screen.width+"x"+screen.height,ul:"zh-cn"})}catch(e){console.error("Report pageview error",e)}}async function h(e){const t={t:"event",ec:e.category,ea:e.action};null!=e.label&&(t.el=e.label),null!=e.value&&(t.ev=e.value);try{await g(t)}catch(e){console.error("Report event error",e)}}async function g(e){if(!Object(u.c)())return l.a.send({type:"REQUEST_GA",payload:e});let t=(await l.c.sync.get("gacid")).gacid;return t||(t=c()(),l.c.sync.set({gacid:t})),i()({url:"https://www.google-analytics.com/collect",method:"post",headers:{"content-type":"text/plain;charset=UTF-8"},data:new URLSearchParams({v:"1",tid:"UA-49163616-4",cid:t,z:Object(d.a)(),...e})})}function f(){l.a.addListener("REQUEST_GA",({payload:e})=>{g(e)})}},83:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(171),o=n(172),r=n(173),i=n(174),s=n(175);const c={baidu:a.auth,caiyun:o.auth,sogou:r.auth,tencent:i.auth,youdaotrans:s.auth};var l=n(2);const d=browser.i18n.getUILanguage(),u="zh-CN"===d?"zh-CN":"zh-TW"===d||"zh-HK"===d?"zh-TW":"en",p=function(){return{version:14,active:!0,runInBg:!1,analytics:!0,updateCheck:!0,noTypeField:!1,animation:!0,langCode:u,panelWidth:450,panelMaxHeightRatio:80,bowlOffsetX:15,bowlOffsetY:-45,darkMode:!1,panelCSS:"",fontSize:13,pdfSniff:!1,pdfStandalone:"",pdfWhitelist:[],pdfBlacklist:[["^(http|https)://[^/]*?cnki\\.net(/.*)?$","*://*.cnki.net/*"],["^(http|https)://[^/]*?googleusercontent\\.com(/.*)?$","*://*.googleusercontent.com/*"],["^(http|https)://sh-download\\.weiyun\\.com(/.*)?$","*://sh-download.weiyun.com/*"]],searchHistory:!1,searchHistoryInco:!1,editOnFav:!0,searchSuggests:!0,touchMode:!1,mode:{icon:!0,direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},pinMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},panelMode:{direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},qsPanelMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!0,meta:!1},instant:{enable:!1,key:"alt",delay:600}},bowlHover:!0,doubleClickDelay:450,tripleCtrl:!0,qsPreload:"clipboard",qsAuto:!0,qsLocation:"CENTER",qsFocus:!0,defaultPinned:!1,qsStandalone:!0,qssaHeight:600,qssaSidebar:"",qssaPageSel:!0,qssaRectMemo:!1,baWidth:-1,baHeight:550,baPreload:"selection",baAuto:!1,baOpen:"popup_panel",ctxTrans:{google:!0,youdaotrans:!0,baidu:!0,tencent:!1,caiyun:!1,sogou:!1},language:{chinese:!0,english:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},autopron:{cn:{dict:"",list:["zdic","guoyu"]},en:{dict:"",list:["bing","cambridge","cobuild","eudic","longman","urban","youdao"],accent:"uk"},machine:{dict:"",list:["google","sogou","tencent","baidu","caiyun"],src:"trans"}},whitelist:[],blacklist:[["^https://stackedit\\.io(/.*)?$","https://stackedit.io/*"],["^https://docs\\.google\\.com(/.*)?$","https://docs.google.com/*"],["^https://docs\\.qq\\.com(/.*)?$","https://docs.qq.com/*"]],contextMenus:{selected:l.d||!u.startsWith("zh-")?["view_as_pdf","google_translate","saladict"]:["view_as_pdf","caiyuntrs","google_translate","saladict"],all:{baidu_page_translate:"x",baidu_search:"https://www.baidu.com/s?ie=utf-8&wd=%s",bing_dict:"https://cn.bing.com/dict/?q=%s",bing_search:"https://www.bing.com/search?q=%s",caiyuntrs:"x",cambridge:"http://dictionary.cambridge.org/spellcheck/english-chinese-simplified/?q=%s",copy_pdf_url:"x",dictcn:"https://dict.eudic.net/dicts/en/%s",etymonline:"http://www.etymonline.com/index.php?search=%s",google_cn_page_translate:"x",google_page_translate:"x",google_search:"https://www.google.com/search?safe=off&newwindow=1&q=%s",google_translate:"https://translate.google.com/#auto/zh-CN/%s",google_cn_translate:"https://translate.google.cn/#auto/zh-CN/%s",guoyu:"https://www.moedict.tw/%s",iciba:"http://www.iciba.com/%s",liangan:"https://www.moedict.tw/~%s",longman_business:"http://www.ldoceonline.com/search/?q=%s",merriam_webster:"http://www.merriam-webster.com/dictionary/%s",microsoft_page_translate:"x",oxford:"http://www.oxforddictionaries.com/us/definition/english/%s",saladict:"x",saladict_standalone:"x",sogou_page_translate:"x",sogou:"https://fanyi.sogou.com/#auto/zh-CHS/%s",termonline:"https://www.termonline.cn/list.htm?k=%s",view_as_pdf:"x",youdao_page_translate:"x",youdao:"http://dict.youdao.com/w/%s",youglish:"https://youglish.com/search/%s"}},showedDictAuth:!1,dictAuth:JSON.parse(JSON.stringify(c))}}},86:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var a=n(1),o=n(2);async function r(e,t){try{const n=await a.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:e,payload:{isPDF:Object(o.j)()}}});return n&&n.result&&n.result.trans&&n.result.trans.paragraphs.join("\n")||""}catch(e){return""}}async function i(e,t){return(await Promise.all(Object.keys(t).map(async n=>{let a="";if(t[n])try{a=await r(e,n)}catch(e){console.warn(e)}return{id:n,content:a}}))).reduce((e,{id:t,content:n})=>(e[t]=n,e),{})}function s(e){const t=/\[:: (\w+) ::\]\n([\s\S]+?)(?=(?:\[:: \w+ ::\])|(?:-{15}))/g;let n;const a={};for(;null!==(n=t.exec(e));)a[n[1]]=n[2].replace(/\n+$/g,"");return a}function c(e,t){const n=Object.keys(t).filter(e=>t[e]);if(n.length<=0)return e;const a=n.map(e=>`[:: ${e} ::]\n`+t[e]).join("\n\n")+`\n${"".padEnd(15,"-")}\n`;if(!e)return a;const o=/\[:: (\w+) ::\]\n([\s\S]+?)-{15}/;return o.test(e)?e.replace(o,a):e+"\n\n"+a}},87:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var a=n(12);const o={baidu:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{},{}),bing:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{tense:!0,phsym:!0,cdef:!0,related:!0,sentence:4}},ahdict:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:4}},oaldict:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5}},caiyun:Object(a.b)(["zh-CN","en","ja"],{lang:"11010000"},{},{}),cambridge:{lang:"11100000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{lang:"default",related:!0},options_sel:{lang:["default","en","en-chs","en-chz"]}},cobuild:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:5},options:{cibaFirst:(browser.i18n.getUILanguage()||"en").startsWith("zh-")}},etymonline:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{resultnum:4,chart:!0}},eudic:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:10}},google:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{concurrent:!1},{}),guoyu:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!0}},hjdict:{lang:"10011111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:10},options:{related:!0,chsas:"jp/jc",engas:"w",uas:"fr",aas:"fr",eas:"fr"},options_sel:{chsas:["jp/cj","jp/jc","kr","w","fr","de","es"],engas:["w","fr","de","es"],uas:["fr","de","es"],aas:["fr","de"],eas:["fr","es"]}},liangan:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!1}},longman:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{wordfams:!1,collocations:!0,grammar:!0,thesaurus:!0,examples:!0,bussinessFirst:!0,related:!0}},mojidict:{lang:"10010000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5}},naver:{lang:"01011000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!0,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:10},options:{hanAsJa:!1,korAsJa:!1}},renren:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},sogou:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru"],{},{},{}),tencent:Object(a.b)(["zh-CN","en","ja","ko","fr","de","es","ru"],{lang:"11011111"},{},{}),urban:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},vocabulary:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5}},weblio:{lang:"00010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:20}},weblioejje:{lang:"10010000",selectionLang:{english:!0,chinese:!1,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},merriamwebster:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},wikipedia:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:420,selectionWC:{min:1,max:999999999999999},options:{lang:"auto"},options_sel:{lang:["auto","zh","zh-cn","zh-tw","zh-hk","en","ja","fr","de"]}},youdao:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:999999999999999},options:{basic:!0,collins:!0,discrimination:!0,sentence:!0,translation:!1,related:!0}},youdaotrans:Object(a.b)(["zh-CN","en","pt","es","ja","ko","fr","ru"],{lang:"11011111"},{},{}),zdic:{lang:"01000000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:5},options:{audio:!0}}},r=()=>JSON.parse(JSON.stringify(o))},9:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return m}));var a=n(0),o=n.n(a),r=n(154),i=n.n(r),s=n(13),c=n(29),l=n(270),d=n.n(l);async function u(){if(s.a.language)return s.a;const{langCode:e}=await Object(c.c)();return await s.a.use({type:"backend",init:()=>{},create:()=>{},read:async(e,t,a)=>{try{if("dicts"===t){const t=function(e){const t=n(370);return t.keys().reduce((n,a)=>{const o=t(a),r=o.locales||o,s=/([^/]+)\/_locales\.(json|ts)$/.exec(a)[1];return n[s]={name:r.name[e]},r.options&&(n[s].options=i()(r.options,t=>t[e])),r.helps&&(n[s].helps=i()(r.helps,t=>t[e])),n},{})}(e);return a(null,t),t}if("sync"===t){const t=function(e){const t=n(265);return t.keys().reduce((n,a)=>{const o=new RegExp(`/([^/]+)/_locales/${e}\\.ts$`).exec(a);if(o){const e=t(a);n[o[1]]=e.locale||e}return n},{})}(e);return a(null,t),t}const o=await async function(e,t){const{locale:a}=await n(369)(`./${e}/${t}.ts`);return a}(e,t);return a(null,o),o}catch(e){a(e)}}}).init({lng:e,fallbackLng:!1,whitelist:["en","zh-CN","zh-TW"],debug:!1,saveMissing:!1,load:"currentOnly",ns:"common",defaultNS:"common",interpolation:{escapeValue:!1}}),Object(c.a)(({newConfig:e})=>{s.a.language!==e.langCode&&s.a.changeLanguage(e.langCode)}),s.a}const p=()=>"",h=o.a.createContext(void 0);const g=({children:e})=>{const[t,n]=Object(a.useState)(void 0);return Object(a.useLayoutEffect)(()=>{const e=()=>{n(s.a.language)};return s.a.language||u().then(()=>{n(s.a.language),s.a.on("languageChanged",e)}),()=>{s.a.off("languageChanged",e)}},[]),o.a.createElement(h.Provider,{value:t},e)};function f(e){const t=Object(a.useRef)(0),n=Object(a.useRef)(p),o=Object(a.useRef)((...e)=>n.current(...e)),r=Object(a.useContext)(h),i=(e,a)=>{e&&(n.current=e),a&&(t.current=(t.current+1)%1e5);return{t:o.current,i18n:s.a,ready:!!a&&t.current}},[c,l]=Object(a.useState)(()=>r?e?(Array.isArray(e)?e.every(e=>s.a.hasResourceBundle(r,e)):s.a.hasResourceBundle(r,e))?i(s.a.getFixedT(r,e),!0):i(p,!1):i(s.a.t,!0):i(p,!1));return Object(a.useLayoutEffect)(()=>{let t=!0;return r&&(e?(Array.isArray(e)?e.every(e=>s.a.hasResourceBundle(r,e)):s.a.hasResourceBundle(r,e))?l(i(s.a.getFixedT(r,e),!0)):(l(i(null,!1)),s.a.loadNamespaces(e).then(()=>{t&&l(i(s.a.getFixedT(r,e),!0))})):l(i(s.a.t,!0))),()=>{t=!1}},[r]),c}const m=o.a.memo(({message:e,children:t})=>e?o.a.createElement(a.Fragment,null,d()(e.split(/{[^}]*?}/),Array.isArray(t)?t:[t])):null)},92:function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return g})),n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return b}));var a=n(39),o=n(10),r=n(121),i=n(187),s=n(404),c=n(152),l=n(560),d=n(88),u=n(102),p=n(67);function h(e){return e.pipe(Object(a.a)(e=>!(e.relatedTarget===e.currentTarget||e.relatedTarget instanceof Node&&e.currentTarget.contains(e.relatedTarget))),Object(o.a)(e=>"mouseover"===e.type))}function g(e){return h(e).pipe(Object(r.a)(e=>Object(u.a)(e).pipe(Object(i.a)(e?500:100))))}function f(e){return e.pipe(Object(o.a)(e=>"blur"!==e.type),Object(s.a)(100))}function m(e,t){return n=>n.pipe(Object(c.a)(o=>Object(p.a)(t(o)).pipe(Object(l.a)(n.pipe(Object(a.a)(t=>t[e]===o[e]))))))}function b(e){return Object(d.a)(!0)(e)}},97:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return u}));var a=n(0),o=n.n(a),r=n(362),i=n(42);const s=o.a.createContext(async()=>{}),c=e=>{const[t,n]=Object(a.useState)(()=>"string"==typeof e.src?e.src:"#"),i=Object(a.useContext)(s);if(Object(r.a)(()=>{n("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const c=e.width||e.height||"1.2em",l=e.height||c;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:c,height:l},onClick:async a=>{if("#"===t&&"function"==typeof e.src){a.stopPropagation(),a.preventDefault();const t=await e.src();i(t),n(t)}}})};t.c=o.a.memo(c);const l=e=>{const{onPlayStart:t,...n}=e,r=Object(a.useCallback)(e=>{const n=e.target;n instanceof HTMLAnchorElement&&"#"!==n.href&&n.classList.contains("saladict-Speaker")&&(e.preventDefault(),e.stopPropagation(),n.classList.add("isActive"),Object(i.b)([Object(i.d)(1e3),t(n.href)]).then(()=>{n.classList.remove("isActive")}))},[t]);return o.a.createElement(s.Provider,{value:t},o.a.createElement("div",{onClick:r,...n}))},d=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},u=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""}},[[1033,0,1,19]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/dexie.c13adbda.js b/plugins/saladict-ztools/ext-saladic/assets/dexie.d676e448.js similarity index 99% rename from plugins/saladict-ztools/ext-saladic/assets/dexie.c13adbda.js rename to plugins/saladict-ztools/ext-saladic/assets/dexie.d676e448.js index 89f53d03..d98f8e6a 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/dexie.c13adbda.js +++ b/plugins/saladict-ztools/ext-saladic/assets/dexie.d676e448.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[4],{749:function(n,t,e){"use strict";var r=Object.keys,i=Array.isArray,o="undefined"!=typeof self?self:"undefined"!=typeof window?window:global;function u(n,t){return"object"!=typeof t||r(t).forEach((function(e){n[e]=t[e]})),n}var a=Object.getPrototypeOf,c={}.hasOwnProperty;function s(n,t){return c.call(n,t)}function f(n,t){"function"==typeof t&&(t=t(a(n))),r(t).forEach((function(e){h(n,e,t[e])}))}var l=Object.defineProperty;function h(n,t,e,r){l(n,t,u(e&&s(e,"get")&&"function"==typeof e.get?{get:e.get,set:e.set,configurable:!0}:{value:e,configurable:!0,writable:!0},r))}function d(n){return{from:function(t){return n.prototype=Object.create(t.prototype),h(n.prototype,"constructor",n),{extend:f.bind(null,n.prototype)}}}}var v=Object.getOwnPropertyDescriptor;var p=[].slice;function y(n,t,e){return p.call(n,t,e)}function m(n,t){return t(n)}function g(n){if(!n)throw new Error("Assertion Failed")}function b(n){o.setImmediate?setImmediate(n):setTimeout(n,0)}function w(n,t){return n.reduce((function(n,e,r){var i=t(e,r);return i&&(n[i[0]]=i[1]),n}),{})}function _(n,t){return function(){try{n.apply(this,arguments)}catch(n){t(n)}}}function k(n,t,e){try{n.apply(null,e)}catch(n){t&&t(n)}}function x(n,t){if(s(n,t))return n[t];if(!t)return n;if("string"!=typeof t){for(var e=[],r=0,i=t.length;r<i;++r){var o=x(n,t[r]);e.push(o)}return e}var u=t.indexOf(".");if(-1!==u){var a=n[t.substr(0,u)];return void 0===a?void 0:x(a,t.substr(u+1))}}function j(n,t,e){if(n&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(n)))if("string"!=typeof t&&"length"in t){g("string"!=typeof e&&"length"in e);for(var r=0,i=t.length;r<i;++r)j(n,t[r],e[r])}else{var o=t.indexOf(".");if(-1!==o){var u=t.substr(0,o),a=t.substr(o+1);if(""===a)void 0===e?delete n[u]:n[u]=e;else{var c=n[u];c||(c=n[u]={}),j(c,a,e)}}else void 0===e?delete n[t]:n[t]=e}}function P(n){var t={};for(var e in n)s(n,e)&&(t[e]=n[e]);return t}var E=[].concat;function A(n){return E.apply([],n)}var O="Boolean,String,Date,RegExp,Blob,File,FileList,ArrayBuffer,DataView,Uint8ClampedArray,ImageData,Map,Set".split(",").concat(A([8,16,32,64].map((function(n){return["Int","Uint","Float"].map((function(t){return t+n+"Array"}))})))).filter((function(n){return o[n]})).map((function(n){return o[n]}));function S(n){if(!n||"object"!=typeof n)return n;var t;if(i(n)){t=[];for(var e=0,r=n.length;e<r;++e)t.push(S(n[e]))}else if(O.indexOf(n.constructor)>=0)t=n;else for(var o in t=n.constructor?Object.create(n.constructor.prototype):{},n)s(n,o)&&(t[o]=S(n[o]));return t}function D(n,t,e,i){return e=e||{},i=i||"",r(n).forEach((function(r){if(s(t,r)){var o=n[r],u=t[r];"object"==typeof o&&"object"==typeof u&&o&&u&&""+o.constructor==""+u.constructor?D(o,u,e,i+r+"."):o!==u&&(e[i+r]=t[r])}else e[i+r]=void 0})),r(t).forEach((function(r){s(n,r)||(e[i+r]=t[r])})),e}var I="undefined"!=typeof Symbol&&Symbol.iterator,C=I?function(n){var t;return null!=n&&(t=n[I])&&t.apply(n)}:function(){return null},K={};function T(n){var t,e,r,o;if(1===arguments.length){if(i(n))return n.slice();if(this===K&&"string"==typeof n)return[n];if(o=C(n)){for(e=[];!(r=o.next()).done;)e.push(r.value);return e}if(null==n)return[n];if("number"==typeof(t=n.length)){for(e=new Array(t);t--;)e[t]=n[t];return e}return[n]}for(t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return e}var B="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function F(n,t){B=n,N=t}var N=function(){return!0},M=!new Error("").stack;function q(){if(M)try{throw q.arguments,new Error}catch(n){return n}return new Error}function R(n,t){var e=n.stack;return e?(t=t||0,0===e.indexOf(n.name)&&(t+=(n.name+n.message).split("\n").length),e.split("\n").slice(t).filter(N).map((function(n){return"\n"+n})).join("")):""}var U=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],V=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(U),z={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed"};function L(n,t){this._e=q(),this.name=n,this.message=t}function W(n,t,e,r){this._e=q(),this.failures=t,this.failedKeys=r,this.successCount=e}function Q(n,t){this._e=q(),this.name="BulkError",this.failures=t,this.message=function(n,t){return n+". Errors: "+t.map((function(n){return n.toString()})).filter((function(n,t,e){return e.indexOf(n)===t})).join("\n")}(n,t)}d(L).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+R(this._e,2))}},toString:function(){return this.name+": "+this.message}}),d(W).from(L),d(Q).from(L);var H=V.reduce((function(n,t){return n[t]=t+"Error",n}),{}),G=L,J=V.reduce((function(n,t){var e=t+"Error";function r(n,r){this._e=q(),this.name=e,n?"string"==typeof n?(this.message=n,this.inner=r||null):"object"==typeof n&&(this.message=n.name+" "+n.message,this.inner=n):(this.message=z[t]||e,this.inner=null)}return d(r).from(G),n[t]=r,n}),{});J.Syntax=SyntaxError,J.Type=TypeError,J.Range=RangeError;var Y=U.reduce((function(n,t){return n[t+"Error"]=J[t],n}),{});var $=V.reduce((function(n,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(n[t+"Error"]=J[t]),n}),{});function X(){}function Z(n){return n}function nn(n,t){return null==n||n===Z?t:function(e){return t(n(e))}}function tn(n,t){return function(){n.apply(this,arguments),t.apply(this,arguments)}}function en(n,t){return n===X?t:function(){var e=n.apply(this,arguments);void 0!==e&&(arguments[0]=e);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?tn(r,this.onsuccess):r),i&&(this.onerror=this.onerror?tn(i,this.onerror):i),void 0!==o?o:e}}function rn(n,t){return n===X?t:function(){n.apply(this,arguments);var e=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),e&&(this.onsuccess=this.onsuccess?tn(e,this.onsuccess):e),r&&(this.onerror=this.onerror?tn(r,this.onerror):r)}}function on(n,t){return n===X?t:function(e){var r=n.apply(this,arguments);u(e,r);var i=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?tn(i,this.onsuccess):i),o&&(this.onerror=this.onerror?tn(o,this.onerror):o),void 0===r?void 0===a?void 0:a:u(r,a)}}function un(n,t){return n===X?t:function(){return!1!==t.apply(this,arguments)&&n.apply(this,arguments)}}function an(n,t){return n===X?t:function(){var e=n.apply(this,arguments);if(e&&"function"==typeof e.then){for(var r=this,i=arguments.length,o=new Array(i);i--;)o[i]=arguments[i];return e.then((function(){return t.apply(r,o)}))}return t.apply(this,arguments)}}$.ModifyError=W,$.DexieError=L,$.BulkError=Q;var cn={},sn=function(){try{return new Function("let F=async ()=>{},p=F();return [p,Object.getPrototypeOf(p),Promise.resolve(),F.constructor];")()}catch(t){var n=o.Promise;return n?[n.resolve(),n.prototype,n.resolve()]:[]}}(),fn=sn[0],ln=sn[1],hn=sn[2],dn=ln&&ln.then,vn=fn&&fn.constructor,pn=sn[3],yn=!!hn,mn=!1,gn=hn?function(){hn.then(Rn)}:o.setImmediate?setImmediate.bind(null,Rn):o.MutationObserver?function(){var n=document.createElement("div");new MutationObserver((function(){Rn(),n=null})).observe(n,{attributes:!0}),n.setAttribute("i","1")}:function(){setTimeout(Rn,0)},bn=function(n,t){On.push([n,t]),_n&&(gn(),_n=!1)},wn=!0,_n=!0,kn=[],xn=[],jn=null,Pn=Z,En={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:st,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((function(n){try{st(n[0],n[1])}catch(n){}}))}},An=En,On=[],Sn=0,Dn=[];function In(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=X,this._lib=!1;var t=this._PSD=An;if(B&&(this._stackHolder=q(),this._prev=null,this._numPrev=0),"function"!=typeof n){if(n!==cn)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Bn(this,this._value))}this._state=null,this._value=null,++t.ref,Tn(this,n)}var Cn={get:function(){var n=An,t=Yn;function e(e,r){var i=this,o=!n.global&&(n!==An||t!==Yn);o&&nt();var u=new In((function(t,u){Nn(i,new Kn(at(e,n,o),at(r,n,o),t,u,n))}));return B&&qn(u,this),u}return e.prototype=cn,e},set:function(n){h(this,"then",n&&n.prototype===cn?Cn:{get:function(){return n},set:Cn.set})}};function Kn(n,t,e,r,i){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.resolve=e,this.reject=r,this.psd=i}function Tn(n,t){try{t((function(t){if(null===n._state){if(t===n)throw new TypeError("A promise cannot be resolved with itself.");var e=n._lib&&Un();t&&"function"==typeof t.then?Tn(n,(function(n,e){t instanceof In?t._then(n,e):t.then(n,e)})):(n._state=!0,n._value=t,Fn(n)),e&&Vn()}}),Bn.bind(null,n))}catch(t){Bn(n,t)}}function Bn(n,t){if(xn.push(t),null===n._state){var e=n._lib&&Un();t=Pn(t),n._state=!1,n._value=t,B&&null!==t&&"object"==typeof t&&!t._promise&&k((function(){var e=function n(t,e){var r;return v(t,e)||(r=a(t))&&n(r,e)}(t,"stack");t._promise=n,h(t,"stack",{get:function(){return mn?e&&(e.get?e.get.apply(t):e.value):n.stack}})})),function(n){kn.some((function(t){return t._value===n._value}))||kn.push(n)}(n),Fn(n),e&&Vn()}}function Fn(n){var t=n._listeners;n._listeners=[];for(var e=0,r=t.length;e<r;++e)Nn(n,t[e]);var i=n._PSD;--i.ref||i.finalize(),0===Sn&&(++Sn,bn((function(){0==--Sn&&zn()}),[]))}function Nn(n,t){if(null!==n._state){var e=n._state?t.onFulfilled:t.onRejected;if(null===e)return(n._state?t.resolve:t.reject)(n._value);++t.psd.ref,++Sn,bn(Mn,[e,n,t])}else n._listeners.push(t)}function Mn(n,t,e){try{jn=t;var r,i=t._value;t._state?r=n(i):(xn.length&&(xn=[]),r=n(i),-1===xn.indexOf(i)&&function(n){var t=kn.length;for(;t;)if(kn[--t]._value===n._value)return void kn.splice(t,1)}(t)),e.resolve(r)}catch(n){e.reject(n)}finally{jn=null,0==--Sn&&zn(),--e.psd.ref||e.psd.finalize()}}function qn(n,t){var e=t?t._numPrev+1:0;e<100&&(n._prev=t,n._numPrev=e)}function Rn(){Un()&&Vn()}function Un(){var n=wn;return wn=!1,_n=!1,n}function Vn(){var n,t,e;do{for(;On.length>0;)for(n=On,On=[],e=n.length,t=0;t<e;++t){var r=n[t];r[0].apply(null,r[1])}}while(On.length>0);wn=!0,_n=!0}function zn(){var n=kn;kn=[],n.forEach((function(n){n._PSD.onunhandled.call(null,n._value,n)}));for(var t=Dn.slice(0),e=t.length;e;)t[--e]()}function Ln(n){return new In(cn,!1,n)}function Wn(n,t){var e=An;return function(){var r=Un(),i=An;try{return it(e,!0),n.apply(this,arguments)}catch(n){t&&t(n)}finally{it(i,!1),r&&Vn()}}}f(In.prototype,{then:Cn,_then:function(n,t){Nn(this,new Kn(null,null,n,t,An))},catch:function(n){if(1===arguments.length)return this.then(null,n);var t=arguments[0],e=arguments[1];return"function"==typeof t?this.then(null,(function(n){return n instanceof t?e(n):Ln(n)})):this.then(null,(function(n){return n&&n.name===t?e(n):Ln(n)}))},finally:function(n){return this.then((function(t){return n(),t}),(function(t){return n(),Ln(t)}))},stack:{get:function(){if(this._stack)return this._stack;try{mn=!0;var n=function n(t,e,r){if(e.length===r)return e;var i="";if(!1===t._state){var o,u,a=t._value;null!=a?(o=a.name||"Error",u=a.message||a,i=R(a,0)):(o=a,u=""),e.push(o+(u?": "+u:"")+i)}B&&((i=R(t._stackHolder,2))&&-1===e.indexOf(i)&&e.push(i),t._prev&&n(t._prev,e,r));return e}(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=n),n}finally{mn=!1}}},timeout:function(n,t){var e=this;return n<1/0?new In((function(r,i){var o=setTimeout((function(){return i(new J.Timeout(t))}),n);e.then(r,i).finally(clearTimeout.bind(null,o))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&h(In.prototype,Symbol.toStringTag,"Promise"),En.env=ot(),f(In,{all:function(){var n=T.apply(null,arguments).map(tt);return new In((function(t,e){0===n.length&&t([]);var r=n.length;n.forEach((function(i,o){return In.resolve(i).then((function(e){n[o]=e,--r||t(n)}),e)}))}))},resolve:function(n){if(n instanceof In)return n;if(n&&"function"==typeof n.then)return new In((function(t,e){n.then(t,e)}));var t=new In(cn,!0,n);return qn(t,jn),t},reject:Ln,race:function(){var n=T.apply(null,arguments).map(tt);return new In((function(t,e){n.map((function(n){return In.resolve(n).then(t,e)}))}))},PSD:{get:function(){return An},set:function(n){return An=n}},newPSD:Xn,usePSD:ut,scheduler:{get:function(){return bn},set:function(n){bn=n}},rejectionMapper:{get:function(){return Pn},set:function(n){Pn=n}},follow:function(n,t){return new In((function(e,r){return Xn((function(t,e){var r=An;r.unhandleds=[],r.onunhandled=e,r.finalize=tn((function(){var n=this;!function(n){Dn.push((function t(){n(),Dn.splice(Dn.indexOf(t),1)})),++Sn,bn((function(){0==--Sn&&zn()}),[])}((function(){0===n.unhandleds.length?t():e(n.unhandleds[0])}))}),r.finalize),n()}),t,e,r)}))}});var Qn={awaits:0,echoes:0,id:0},Hn=0,Gn=[],Jn=0,Yn=0,$n=0;function Xn(n,t,e,r){var i=An,o=Object.create(i);o.parent=i,o.ref=0,o.global=!1,o.id=++$n;var a=En.env;o.env=yn?{Promise:In,PromiseProp:{value:In,configurable:!0,writable:!0},all:In.all,race:In.race,resolve:In.resolve,reject:In.reject,nthen:ct(a.nthen,o),gthen:ct(a.gthen,o)}:{},t&&u(o,t),++i.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var c=ut(o,n,e,r);return 0===o.ref&&o.finalize(),c}function Zn(){return Qn.id||(Qn.id=++Hn),++Qn.awaits,Qn.echoes+=7,Qn.id}function nt(n){!Qn.awaits||n&&n!==Qn.id||(0==--Qn.awaits&&(Qn.id=0),Qn.echoes=7*Qn.awaits)}function tt(n){return Qn.echoes&&n&&n.constructor===vn?(Zn(),n.then((function(n){return nt(),n}),(function(n){return nt(),ft(n)}))):n}function et(n){++Yn,Qn.echoes&&0!=--Qn.echoes||(Qn.echoes=Qn.id=0),Gn.push(An),it(n,!0)}function rt(){var n=Gn[Gn.length-1];Gn.pop(),it(n,!1)}function it(n,t){var e,r=An;if((t?!Qn.echoes||Jn++&&n===An:!Jn||--Jn&&n===An)||(e=t?et.bind(null,n):rt,dn.call(fn,e)),n!==An&&(An=n,r===En&&(En.env=ot()),yn)){var i=En.env.Promise,u=n.env;ln.then=u.nthen,i.prototype.then=u.gthen,(r.global||n.global)&&(Object.defineProperty(o,"Promise",u.PromiseProp),i.all=u.all,i.race=u.race,i.resolve=u.resolve,i.reject=u.reject)}}function ot(){var n=o.Promise;return yn?{Promise:n,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:n.all,race:n.race,resolve:n.resolve,reject:n.reject,nthen:ln.then,gthen:n.prototype.then}:{}}function ut(n,t,e,r,i){var o=An;try{return it(n,!0),t(e,r,i)}finally{it(o,!1)}}function at(n,t,e){return"function"!=typeof n?n:function(){var r=An;e&&Zn(),it(t,!0);try{return n.apply(this,arguments)}finally{it(r,!1)}}}function ct(n,t){return function(e,r){return n.call(this,at(e,t,!1),at(r,t,!1))}}function st(n,t){var e;try{e=t.onuncatched(n)}catch(n){}if(!1!==e)try{var r,i={promise:t,reason:n};if(o.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),u(r,i)):o.CustomEvent&&u(r=new CustomEvent("unhandledrejection",{detail:i}),i),r&&o.dispatchEvent&&(dispatchEvent(r),!o.PromiseRejectionEvent&&o.onunhandledrejection))try{o.onunhandledrejection(r)}catch(n){}r.defaultPrevented||console.warn("Unhandled rejection: "+(n.stack||n))}catch(n){}}var ft=In.reject;function lt(n){var t={},e=function(e,r){if(r){for(var i=arguments.length,o=new Array(i-1);--i;)o[i-1]=arguments[i];return t[e].subscribe.apply(null,o),n}if("string"==typeof e)return t[e]};e.addEventType=a;for(var o=1,u=arguments.length;o<u;++o)a(arguments[o]);return e;function a(n,r,i){if("object"==typeof n)return c(n);r||(r=un),i||(i=X);var o={subscribers:[],fire:i,subscribe:function(n){-1===o.subscribers.indexOf(n)&&(o.subscribers.push(n),o.fire=r(o.fire,n))},unsubscribe:function(n){o.subscribers=o.subscribers.filter((function(t){return t!==n})),o.fire=o.subscribers.reduce(r,i)}};return t[n]=e[n]=o,o}function c(n){r(n).forEach((function(t){var e=n[t];if(i(e))a(t,n[t][0],n[t][1]);else{if("asap"!==e)throw new J.InvalidArgument("Invalid event config");var r=a(t,Z,(function(){for(var n=arguments.length,t=new Array(n);n--;)t[n]=arguments[n];r.subscribers.forEach((function(n){b((function(){n.apply(null,t)}))}))}))}}))}}var ht,dt=String.fromCharCode(65535),vt=function(){try{return IDBKeyRange.only([[]]),[[]]}catch(n){return dt}}(),pt="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",yt=[],mt="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),gt=mt,bt=mt,wt=function(n){return!/(dexie\.js|dexie\.min\.js)/.test(n)};function _t(n,t){var e,a,c,l,d,v=_t.dependencies,p=u({addons:_t.addons,autoOpen:!0,indexedDB:v.indexedDB,IDBKeyRange:v.IDBKeyRange},t),b=p.addons,E=p.autoOpen,O=p.indexedDB,I=p.IDBKeyRange,C=this._dbSchema={},F=[],N=[],M={},U=null,V=null,z=!1,L=null,H=!1,G="readwrite",Y=this,$=new In((function(n){e=n})),tn=new In((function(n,t){a=t})),un=!0,cn=!!Ct(O);function sn(n){this._cfg={version:n,storesSource:null,dbschema:{},tables:{},contentUpgrade:null},this.stores({})}function fn(n,t,e){var i=Y._createTransaction(G,N,C);i.create(t),i._completion.catch(e);var o=i._reject.bind(i);Xn((function(){An.trans=i,0===n?(r(C).forEach((function(n){ln(t,n,C[n].primKey,C[n].indexes)})),In.follow((function(){return Y.on.populate.fire(i)})).catch(o)):function(n,t,e){var i=[],o=F.filter((function(t){return t._cfg.version===n}))[0];if(!o)throw new J.Upgrade("Dexie specification of currently installed DB version is missing");C=Y._dbSchema=o._cfg.dbschema;var u=!1;function a(){return i.length?In.resolve(i.shift()(t.idbtrans)).then(a):In.resolve()}return F.filter((function(t){return t._cfg.version>n})).forEach((function(n){i.push((function(){var r=C,i=n._cfg.dbschema;Bn(r,e),Bn(i,e),C=Y._dbSchema=i;var o=function(n,t){var e={del:[],add:[],change:[]};for(var r in n)t[r]||e.del.push(r);for(r in t){var i=n[r],o=t[r];if(i){var u={name:r,def:o,recreate:!1,del:[],add:[],change:[]};if(i.primKey.src!==o.primKey.src)u.recreate=!0,e.change.push(u);else{var a=i.idxByName,c=o.idxByName;for(var s in a)c[s]||u.del.push(s);for(s in c){var f=a[s],l=c[s];f?f.src!==l.src&&u.change.push(l):u.add.push(l)}(u.del.length>0||u.add.length>0||u.change.length>0)&&e.change.push(u)}}else e.add.push([r,o])}return e}(r,i);if(o.add.forEach((function(n){ln(e,n[0],n[1].primKey,n[1].indexes)})),o.change.forEach((function(n){if(n.recreate)throw new J.Upgrade("Not yet support for changing primary key");var t=e.objectStore(n.name);n.add.forEach((function(n){hn(t,n)})),n.change.forEach((function(n){t.deleteIndex(n.name),hn(t,n)})),n.del.forEach((function(n){t.deleteIndex(n)}))})),n._cfg.contentUpgrade)return u=!0,In.follow((function(){n._cfg.contentUpgrade(t)}))})),i.push((function(t){u&>||function(n,t){for(var e=0;e<t.db.objectStoreNames.length;++e){var r=t.db.objectStoreNames[e];null==n[r]&&t.db.deleteObjectStore(r)}}(n._cfg.dbschema,t)}))})),a().then((function(){!function(n,t){r(n).forEach((function(e){t.db.objectStoreNames.contains(e)||ln(t,e,n[e].primKey,n[e].indexes)}))}(C,e)}))}(n,i,t).catch(o)}))}function ln(n,t,e,r){var i=n.db.createObjectStore(t,e.keyPath?{keyPath:e.keyPath,autoIncrement:e.auto}:{autoIncrement:e.auto});return r.forEach((function(n){hn(i,n)})),i}function hn(n,t){n.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function dn(n,t,e){var r=arguments.length;if(r<2)throw new J.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];e=i.pop();var o=A(i);return[n,o,e]}function yn(n,t,e){this.name=n,this.schema=t,this._tx=e,this.hook=M[n]?M[n].hook:lt(null,{creating:[en,X],reading:[nn,Z],updating:[on,X],deleting:[rn,X]})}function mn(n,t,e){return(e?Et:jt)((function(e){n.push(e),t&&t()}))}function gn(n,t,e,r,i){return new In((function(o,u){var a=e.length,c=a-1;if(0===a)return o();if(r){var s,f=Et(u),l=xt(null);k((function(){for(var r=0;r<a;++r){s={onsuccess:null,onerror:null};var u=e[r];i.call(s,u[0],u[1],t);var h=n.delete(u[0]);h._hookCtx=s,h.onerror=f,h.onsuccess=r===c?xt(o):l}}),(function(n){throw s.onerror&&s.onerror(n),n}))}else for(var h=0;h<a;++h){var d=n.delete(e[h]);d.onerror=jt(u),h===c&&(d.onsuccess=Wn((function(){return o()})))}}))}function bn(n,t,e,r){var i=this;this.db=Y,this.mode=n,this.storeNames=t,this.idbtrans=null,this.on=lt(this,"complete","error","abort"),this.parent=r||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new In((function(n,t){i._resolve=n,i._reject=t})),this._completion.then((function(){i.active=!1,i.on.complete.fire()}),(function(n){var t=i.active;return i.active=!1,i.on.error.fire(n),i.parent?i.parent._reject(n):t&&i.idbtrans&&i.idbtrans.abort(),ft(n)}))}function wn(n,t,e){this._ctx={table:n,index:":id"===t?null:t,or:e}}function _n(n,t){var e=null,r=null;if(t)try{e=t()}catch(n){r=n}var i=n._ctx,o=i.table;this._ctx={table:o,index:i.index,isPrimKey:!i.index||o.schema.primKey.keyPath&&i.index===o.schema.primKey.name,range:e,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:i.or,valueMapper:o.hook.reading.fire}}function kn(n,t){return!(n.filter||n.algorithm||n.or)&&(t?n.justLimit:!n.replayFilter)}function xn(n,t){return n._cfg.version-t._cfg.version}function jn(n,t,e){t.forEach((function(t){var r=e[t];n.forEach((function(n){t in n||(n===bn.prototype||n instanceof bn?h(n,t,{get:function(){return this.table(t)}}):n[t]=new yn(t,r))}))}))}function Pn(n,t,e,r,i,o){var u=Wn(o?function(n,t,r){return e(o(n),t,r)}:e,i);n.onerror||(n.onerror=jt(i)),n.onsuccess=_(t?function(){var e=n.result;if(e){var o=function(){e.continue()};t(e,(function(n){o=n}),r,i)&&u(e.value,e,(function(n){o=n})),o()}else r()}:function(){var t=n.result;if(t){var e=function(){t.continue()};u(t.value,t,(function(n){e=n})),e()}else r()},i)}function En(n,t){return O.cmp(n,t)}function On(n,t){return En(n,t)>0?n:t}function Sn(n,t){return O.cmp(n,t)}function Dn(n,t){return O.cmp(t,n)}function Cn(n,t){return n<t?-1:n===t?0:1}function Kn(n,t){return n>t?-1:n===t?0:1}function Tn(n,t){return n?t?function(){return n.apply(this,arguments)&&t.apply(this,arguments)}:n:t}function Bn(n,t){for(var e=t.db.objectStoreNames,r=0;r<e.length;++r){var i=e[r],u=t.objectStore(i);c="getAll"in u;for(var a=0;a<u.indexNames.length;++a){var s=u.indexNames[a],f=u.index(s).keyPath,l="string"==typeof f?f:"["+y(f).join("+")+"]";if(n[i]){var h=n[i].idxByName[l];h&&(h.name=s)}}}/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&o.WorkerGlobalScope&&o instanceof o.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(c=!1)}function Fn(n){Y.on("blocked").fire(n),yt.filter((function(n){return n.name===Y.name&&n!==Y&&!n._vcFired})).map((function(t){return t.on("versionchange").fire(n)}))}this.version=function(n){if(U||z)throw new J.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,n);var t=F.filter((function(t){return t._cfg.version===n}))[0];return t||(t=new sn(n),F.push(t),F.sort(xn),un=!1,t)},u(sn.prototype,{stores:function(n){this._cfg.storesSource=this._cfg.storesSource?u(this._cfg.storesSource,n):n;var t={};F.forEach((function(n){u(t,n._cfg.storesSource)}));var e=this._cfg.dbschema={};return this._parseStoresSpec(t,e),C=Y._dbSchema=e,[M,Y,bn.prototype].forEach((function(n){for(var t in n)n[t]instanceof yn&&delete n[t]})),jn([M,Y,bn.prototype,this._cfg.tables],r(e),e),N=r(e),this},upgrade:function(n){return this._cfg.contentUpgrade=n,this},_parseStoresSpec:function(n,t){r(n).forEach((function(e){if(null!==n[e]){var r={},o=function(n){var t=[];return n.split(",").forEach((function(n){var e=(n=n.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(e)?e.match(/^\[(.*)\]$/)[1].split("+"):e;t.push(new St(e,r||null,/\&/.test(n),/\*/.test(n),/\+\+/.test(n),i(r),/\./.test(n)))})),t}(n[e]),u=o.shift();if(u.multi)throw new J.Schema("Primary key cannot be multi-valued");u.keyPath&&j(r,u.keyPath,u.auto?0:u.keyPath),o.forEach((function(n){if(n.auto)throw new J.Schema("Only primary key can be marked as autoIncrement (++)");if(!n.keyPath)throw new J.Schema("Index must have a name and cannot be an empty string");j(r,n.keyPath,n.compound?n.keyPath.map((function(){return""})):"")})),t[e]=new Dt(e,u,o,r)}}))}}),this._allTables=M,this._createTransaction=function(n,t,e,r){return new bn(n,t,e,r)},this._whenReady=function(n){return H||An.letThrough?n():new In((function(n,t){if(!z){if(!E)return void t(new J.DatabaseClosed);Y.open().catch(X)}$.then(n,t)})).then(n)},this.verno=0,this.open=function(){if(z||U)return $.then((function(){return V?ft(V):Y}));B&&(tn._stackHolder=q()),z=!0,V=null,H=!1;var t=e,i=null;return In.race([tn,new In((function(t,e){if(!O)throw new J.MissingAPI("indexedDB API not found. If using IE10+, make sure to run your code on a server URL (not locally). If using old Safari versions, make sure to include indexedDB polyfill.");var o=un?O.open(n):O.open(n,Math.round(10*Y.verno));if(!o)throw new J.MissingAPI("IndexedDB API not available");o.onerror=jt(e),o.onblocked=Wn(Fn),o.onupgradeneeded=Wn((function(t){if(i=o.transaction,un&&!Y._allowEmptyDB){o.onerror=At,i.abort(),o.result.close();var r=O.deleteDatabase(n);r.onsuccess=r.onerror=Wn((function(){e(new J.NoSuchDatabase("Database "+n+" doesnt exist"))}))}else{i.onerror=jt(e),fn((t.oldVersion>Math.pow(2,62)?0:t.oldVersion)/10,i,e)}}),e),o.onsuccess=Wn((function(){if(i=null,U=o.result,yt.push(Y),un)!function(){if(Y.verno=U.version/10,Y._dbSchema=C={},0===(N=y(U.objectStoreNames,0)).length)return;var n=U.transaction(It(N),"readonly");N.forEach((function(t){for(var e=n.objectStore(t),r=e.keyPath,i=r&&"string"==typeof r&&-1!==r.indexOf("."),o=new St(r,r||"",!1,!1,!!e.autoIncrement,r&&"string"!=typeof r,i),u=[],a=0;a<e.indexNames.length;++a){var c=e.index(e.indexNames[a]);i=(r=c.keyPath)&&"string"==typeof r&&-1!==r.indexOf(".");var s=new St(c.name,r,!!c.unique,!!c.multiEntry,!1,r&&"string"!=typeof r,i);u.push(s)}C[t]=new Dt(t,o,u,{})})),jn([M],r(C),C)}();else if(U.objectStoreNames.length>0)try{Bn(C,U.transaction(It(U.objectStoreNames),"readonly"))}catch(n){}U.onversionchange=Wn((function(n){Y._vcFired=!0,Y.on("versionchange").fire(n)})),cn||"__dbnames"===n||ht.dbnames.put({name:n}).catch(X),t()}),e)}))]).then((function(){return L=[],In.resolve(_t.vip(Y.on.ready.fire)).then((function n(){if(L.length>0){var t=L.reduce(an,X);return L=[],In.resolve(_t.vip(t)).then(n)}}))})).finally((function(){L=null})).then((function(){return z=!1,Y})).catch((function(n){try{i&&i.abort()}catch(n){}return z=!1,Y.close(),ft(V=n)})).finally((function(){H=!0,t()}))},this.close=function(){var n=yt.indexOf(Y);if(n>=0&&yt.splice(n,1),U){try{U.close()}catch(n){}U=null}E=!1,V=new J.DatabaseClosed,z&&a(V),$=new In((function(n){e=n})),tn=new In((function(n,t){a=t}))},this.delete=function(){var t=arguments.length>0;return new In((function(e,r){if(t)throw new J.InvalidArgument("Arguments not allowed in db.delete()");function i(){Y.close();var t=O.deleteDatabase(n);t.onsuccess=Wn((function(){cn||ht.dbnames.delete(n).catch(X),e()})),t.onerror=jt(r),t.onblocked=Fn}z?$.then(i):i()}))},this.backendDB=function(){return U},this.isOpen=function(){return null!==U},this.hasBeenClosed=function(){return V&&V instanceof J.DatabaseClosed},this.hasFailed=function(){return null!==V},this.dynamicallyOpened=function(){return un},this.name=n,f(this,{tables:{get:function(){return r(M).map((function(n){return M[n]}))}}}),this.on=lt(this,"populate","blocked","versionchange",{ready:[an,X]}),this.on.ready.subscribe=m(this.on.ready.subscribe,(function(n){return function(t,e){_t.vip((function(){H?(V||In.resolve().then(t),e&&n(t)):L?(L.push(t),e&&n(t)):(n(t),e||n((function n(){Y.on.ready.unsubscribe(t),Y.on.ready.unsubscribe(n)})))}))}})),this.transaction=function(){var n=dn.apply(this,arguments);return this._transaction.apply(this,n)},this._transaction=function(n,t,e){var r=An.trans;r&&r.db===Y&&-1===n.indexOf("!")||(r=null);var i=-1!==n.indexOf("?");n=n.replace("!","").replace("?","");try{var o=t.map((function(n){var t=n instanceof yn?n.name:n;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t}));if("r"==n||"readonly"==n)n="readonly";else{if("rw"!=n&&n!=G)throw new J.InvalidArgument("Invalid transaction mode: "+n);n=G}if(r){if("readonly"===r.mode&&n===G){if(!i)throw new J.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&o.forEach((function(n){if(r&&-1===r.storeNames.indexOf(n)){if(!i)throw new J.SubTransaction("Table "+n+" not included in parent transaction.");r=null}})),i&&r&&!r.active&&(r=null)}}catch(n){return r?r._promise(null,(function(t,e){e(n)})):ft(n)}return r?r._promise(n,u,"lock"):An.trans?ut(An.transless,(function(){return Y._whenReady(u)})):Y._whenReady(u);function u(){return In.resolve().then((function(){var t,i=An.transless||An,u=Y._createTransaction(n,o,C,r),a={trans:u,transless:i};r?u.idbtrans=r.idbtrans:u.create(),e.constructor===pn&&Zn();var c=In.follow((function(){if(t=e.call(u,u))if(t.constructor===vn){var n=nt.bind(null,null);t.then(n,n)}else"function"==typeof t.next&&"function"==typeof t.throw&&(t=Ot(t))}),a);return(t&&"function"==typeof t.then?In.resolve(t).then((function(n){return u.active?n:ft(new J.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):c.then((function(){return t}))).then((function(n){return r&&u._resolve(),u._completion.then((function(){return n}))})).catch((function(n){return u._reject(n),ft(n)}))}))}},this.table=function(n){if(!s(M,n))throw new J.InvalidTable("Table "+n+" does not exist");return M[n]},f(yn.prototype,{_trans:function(n,t,e){var r=this._tx||An.trans;return r&&r.db===Y?r===An.trans?r._promise(n,t,e):Xn((function(){return r._promise(n,t,e)}),{trans:r,transless:An.transless||An}):function n(t,e,r){if(H||An.letThrough){var i=Y._createTransaction(t,e,C);try{i.create()}catch(n){return ft(n)}return i._promise(t,(function(n,t){return Xn((function(){return An.trans=i,r(n,t,i)}))})).then((function(n){return i._completion.then((function(){return n}))}))}if(!z){if(!E)return ft(new J.DatabaseClosed);Y.open().catch(X)}return $.then((function(){return n(t,e,r)}))}(n,[this.name],t)},_idbstore:function(n,t,e){var r=this.name;return this._trans(n,(function(n,e,i){if(-1===i.storeNames.indexOf(r))throw new J.NotFound("Table"+r+" not part of transaction");return t(n,e,i.idbtrans.objectStore(r),i)}),e)},get:function(n,t){if(n&&n.constructor===Object)return this.where(n).first(t);var e=this;return this._idbstore("readonly",(function(t,r,i){var o=i.get(n);o.onerror=jt(r),o.onsuccess=Wn((function(){t(e.hook.reading.fire(o.result))}),r)})).then(t)},where:function(n){if("string"==typeof n)return new wn(this,n);if(i(n))return new wn(this,"["+n.join("+")+"]");var t=r(n);if(1===t.length)return this.where(t[0]).equals(n[t[0]]);var e=this.schema.indexes.concat(this.schema.primKey).filter((function(n){return n.compound&&t.every((function(t){return n.keyPath.indexOf(t)>=0}))&&n.keyPath.every((function(n){return t.indexOf(n)>=0}))}))[0];if(e&&vt!==dt)return this.where(e.name).equals(e.keyPath.map((function(t){return n[t]})));e||console.warn("The query "+JSON.stringify(n)+" on "+this.name+" would benefit of a compound index ["+t.join("+")+"]");var o=this.schema.idxByName,u=t.reduce((function(t,e){return[t[0]||o[e],t[0]||!o[e]?Tn(t[1],(function(t){return""+x(t,e)==""+n[e]})):t[1]]}),[null,null]),a=u[0];return a?this.where(a.name).equals(n[a.keyPath]).filter(u[1]):e?this.filter(u[1]):this.where(t).equals("")},count:function(n){return this.toCollection().count(n)},offset:function(n){return this.toCollection().offset(n)},limit:function(n){return this.toCollection().limit(n)},reverse:function(){return this.toCollection().reverse()},filter:function(n){return this.toCollection().and(n)},each:function(n){return this.toCollection().each(n)},toArray:function(n){return this.toCollection().toArray(n)},orderBy:function(n){return new _n(new wn(this,i(n)?"["+n.join("+")+"]":n))},toCollection:function(){return new _n(new wn(this))},mapToClass:function(n,t){this.schema.mappedClass=n;var e=Object.create(n.prototype);t&&kt(e,t),this.schema.instanceTemplate=e;var r=function(t){if(!t)return t;var e=Object.create(n.prototype);for(var r in t)if(s(t,r))try{e[r]=t[r]}catch(n){}return e};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),n},defineClass:function(n){return this.mapToClass(_t.defineClass(n),n)},bulkDelete:function(n){return this.hook.deleting.fire===X?this._idbstore(G,(function(t,e,r,i){t(gn(r,i,n,!1,X))})):this.where(":id").anyOf(n).delete().then((function(){}))},bulkPut:function(n,t){var e=this;return this._idbstore(G,(function(r,i,o){if(!o.keyPath&&!e.schema.primKey.auto&&!t)throw new J.InvalidArgument("bulkPut() with non-inbound keys requires keys array in second argument");if(o.keyPath&&t)throw new J.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(t&&t.length!==n.length)throw new J.InvalidArgument("Arguments objects and keys must have the same length");if(0===n.length)return r();var u,a,c=function(n){0===s.length?r(n):i(new Q(e.name+".bulkPut(): "+s.length+" of "+f+" operations failed",s))},s=[],f=n.length,l=e;if(e.hook.creating.fire===X&&e.hook.updating.fire===X){a=mn(s);for(var h=0,d=n.length;h<d;++h)(u=t?o.put(n[h],t[h]):o.put(n[h])).onerror=a;u.onerror=mn(s,c),u.onsuccess=Pt(c)}else{var v=t||o.keyPath&&n.map((function(n){return x(n,o.keyPath)})),p=v&&w(v,(function(t,e){return null!=t&&[t,n[e]]}));(v?l.where(":id").anyOf(v.filter((function(n){return null!=n}))).modify((function(){this.value=p[this.primKey],p[this.primKey]=null})).catch(W,(function(n){s=n.failures})).then((function(){for(var e=[],r=t&&[],i=v.length-1;i>=0;--i){var o=v[i];(null==o||p[o])&&(e.push(n[i]),t&&r.push(o),null!=o&&(p[o]=null))}return e.reverse(),t&&r.reverse(),l.bulkAdd(e,r)})).then((function(n){var t=v[v.length-1];return null!=t?t:n})):l.bulkAdd(n)).then(c).catch(Q,(function(n){s=s.concat(n.failures),c()})).catch(i)}}),"locked")},bulkAdd:function(n,t){var e=this,r=this.hook.creating.fire;return this._idbstore(G,(function(i,o,u,a){if(!u.keyPath&&!e.schema.primKey.auto&&!t)throw new J.InvalidArgument("bulkAdd() with non-inbound keys requires keys array in second argument");if(u.keyPath&&t)throw new J.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(t&&t.length!==n.length)throw new J.InvalidArgument("Arguments objects and keys must have the same length");if(0===n.length)return i();function c(n){0===h.length?i(n):o(new Q(e.name+".bulkAdd(): "+h.length+" of "+d+" operations failed",h))}var s,f,l,h=[],d=n.length;if(r!==X){var v,p=u.keyPath;f=mn(h,null,!0),l=xt(null),k((function(){for(var e=0,i=n.length;e<i;++e){v={onerror:null,onsuccess:null};var o=t&&t[e],c=n[e],h=t?o:p?x(c,p):void 0,d=r.call(v,h,c,a);null==h&&null!=d&&(p?j(c=S(c),p,d):o=d),(s=null!=o?u.add(c,o):u.add(c))._hookCtx=v,e<i-1&&(s.onerror=f,v.onsuccess&&(s.onsuccess=l))}}),(function(n){throw v.onerror&&v.onerror(n),n})),s.onerror=mn(h,c,!0),s.onsuccess=xt(c)}else{f=mn(h);for(var y=0,m=n.length;y<m;++y)(s=t?u.add(n[y],t[y]):u.add(n[y])).onerror=f;s.onerror=mn(h,c),s.onsuccess=Pt(c)}}))},add:function(n,t){var e=this.hook.creating.fire;return this._idbstore(G,(function(r,i,o,u){var a={onsuccess:null,onerror:null};if(e!==X){var c=null!=t?t:o.keyPath?x(n,o.keyPath):void 0,s=e.call(a,c,n,u);null==c&&null!=s&&(o.keyPath?j(n,o.keyPath,s):t=s)}try{var f=null!=t?o.add(n,t):o.add(n);f._hookCtx=a,f.onerror=Et(i),f.onsuccess=xt((function(t){var e=o.keyPath;e&&j(n,e,t),r(t)}))}catch(n){throw a.onerror&&a.onerror(n),n}}))},put:function(n,t){var e=this,r=this.hook.creating.fire,i=this.hook.updating.fire;if(r!==X||i!==X){var o=this.schema.primKey.keyPath,u=void 0!==t?t:o&&x(n,o);return null==u?this.add(n):(n=S(n),this._trans(G,(function(){return e.where(":id").equals(u).modify((function(){this.value=n})).then((function(r){return 0===r?e.add(n,t):u}))}),"locked"))}return this._idbstore(G,(function(e,r,i){var o=void 0!==t?i.put(n,t):i.put(n);o.onerror=jt(r),o.onsuccess=Wn((function(t){var r=i.keyPath;r&&j(n,r,t.target.result),e(o.result)}))}))},delete:function(n){return this.hook.deleting.subscribers.length?this.where(":id").equals(n).delete():this._idbstore(G,(function(t,e,r){var i=r.delete(n);i.onerror=jt(e),i.onsuccess=Wn((function(){t(i.result)}))}))},clear:function(){return this.hook.deleting.subscribers.length?this.toCollection().delete():this._idbstore(G,(function(n,t,e){var r=e.clear();r.onerror=jt(t),r.onsuccess=Wn((function(){n(r.result)}))}))},update:function(n,t){if("object"!=typeof t||i(t))throw new J.InvalidArgument("Modifications must be an object.");if("object"!=typeof n||i(n))return this.where(":id").equals(n).modify(t);r(t).forEach((function(e){j(n,e,t[e])}));var e=x(n,this.schema.primKey.keyPath);return void 0===e?ft(new J.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(e).modify(t)}}),f(bn.prototype,{_lock:function(){return g(!An.global),++this._reculock,1!==this._reculock||An.global||(An.lockOwnerFor=this),this},_unlock:function(){if(g(!An.global),0==--this._reculock)for(An.global||(An.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var n=this._blockedFuncs.shift();try{ut(n[1],n[0])}catch(n){}}return this},_locked:function(){return this._reculock&&An.lockOwnerFor!==this},create:function(n){var t=this;if(!this.mode)return this;if(g(!this.idbtrans),!n&&!U)switch(V&&V.name){case"DatabaseClosedError":throw new J.DatabaseClosed(V);case"MissingAPIError":throw new J.MissingAPI(V.message,V);default:throw new J.OpenFailed(V)}if(!this.active)throw new J.TransactionInactive;return g(null===this._completion._state),(n=this.idbtrans=n||U.transaction(It(this.storeNames),this.mode)).onerror=Wn((function(e){At(e),t._reject(n.error)})),n.onabort=Wn((function(e){At(e),t.active&&t._reject(new J.Abort(n.error)),t.active=!1,t.on("abort").fire(e)})),n.oncomplete=Wn((function(){t.active=!1,t._resolve()})),this},_promise:function(n,t,e){var r=this;if(n===G&&this.mode!==G)return ft(new J.ReadOnly("Transaction is readonly"));if(!this.active)return ft(new J.TransactionInactive);if(this._locked())return new In((function(i,o){r._blockedFuncs.push([function(){r._promise(n,t,e).then(i,o)},An])}));if(e)return Xn((function(){var n=new In((function(n,e){r._lock();var i=t(n,e,r);i&&i.then&&i.then(n,e)}));return n.finally((function(){return r._unlock()})),n._lib=!0,n}));var i=new In((function(n,e){var i=t(n,e,r);i&&i.then&&i.then(n,e)}));return i._lib=!0,i},_root:function(){return this.parent?this.parent._root():this},waitFor:function(n){var t=this._root();if(n=In.resolve(n),t._waitingFor)t._waitingFor=t._waitingFor.then((function(){return n}));else{t._waitingFor=n,t._waitingQueue=[];var e=t.idbtrans.objectStore(t.storeNames[0]);!function n(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(e.get(-1/0).onsuccess=n)}()}var r=t._waitingFor;return new In((function(e,i){n.then((function(n){return t._waitingQueue.push(Wn(e.bind(null,n)))}),(function(n){return t._waitingQueue.push(Wn(i.bind(null,n)))})).finally((function(){t._waitingFor===r&&(t._waitingFor=null)}))}))},abort:function(){this.active&&this._reject(new J.Abort),this.active=!1},tables:{get:(l="Transaction.tables",d=function(){return M},function(){return console.warn(l+" is deprecated. See https://github.com/dfahlander/Dexie.js/wiki/Deprecations. "+R(q(),1)),d.apply(this,arguments)})},table:function(n){return new yn(n,Y.table(n).schema,this)}}),f(wn.prototype,(function(){function n(n,t,e){var r=n instanceof wn?new _n(n):n;return r._ctx.error=e?new e(t):new TypeError(t),r}function t(n){return new _n(n,(function(){return I.only("")})).limit(0)}function e(n,t,e,r,i,o){for(var u=Math.min(n.length,r.length),a=-1,c=0;c<u;++c){var s=t[c];if(s!==r[c])return i(n[c],e[c])<0?n.substr(0,c)+e[c]+e.substr(c+1):i(n[c],r[c])<0?n.substr(0,c)+r[c]+e.substr(c+1):a>=0?n.substr(0,a)+t[a]+e.substr(a+1):null;i(n[c],s)<0&&(a=c)}return u<r.length&&"next"===o?n+e.substr(n.length):u<n.length&&"prev"===o?n.substr(0,e.length):a<0?null:n.substr(0,a)+r[a]+e.substr(a+1)}function r(t,r,i,o){var u,a,c,s,f,l,h,d=i.length;if(!i.every((function(n){return"string"==typeof n})))return n(t,"String expected.");function v(n){u=function(n){return"next"===n?function(n){return n.toUpperCase()}:function(n){return n.toLowerCase()}}(n),a=function(n){return"next"===n?function(n){return n.toLowerCase()}:function(n){return n.toUpperCase()}}(n),c="next"===n?Cn:Kn;var t=i.map((function(n){return{lower:a(n),upper:u(n)}})).sort((function(n,t){return c(n.lower,t.lower)}));s=t.map((function(n){return n.upper})),f=t.map((function(n){return n.lower})),l=n,h="next"===n?"":o}v("next");var p=new _n(t,(function(){return I.bound(s[0],f[d-1]+o)}));p._ondirectionchange=function(n){v(n)};var y=0;return p._addAlgorithm((function(n,t,i){var o=n.key;if("string"!=typeof o)return!1;var u=a(o);if(r(u,f,y))return!0;for(var v=null,p=y;p<d;++p){var m=e(o,u,s[p],f[p],c,l);null===m&&null===v?y=p+1:(null===v||c(v,m)>0)&&(v=m)}return t(null!==v?function(){n.continue(v+h)}:i),!1})),p}return{between:function(e,r,i,o){i=!1!==i,o=!0===o;try{return En(e,r)>0||0===En(e,r)&&(i||o)&&(!i||!o)?t(this):new _n(this,(function(){return I.bound(e,r,!i,!o)}))}catch(t){return n(this,pt)}},equals:function(n){return new _n(this,(function(){return I.only(n)}))},above:function(n){return new _n(this,(function(){return I.lowerBound(n,!0)}))},aboveOrEqual:function(n){return new _n(this,(function(){return I.lowerBound(n)}))},below:function(n){return new _n(this,(function(){return I.upperBound(n,!0)}))},belowOrEqual:function(n){return new _n(this,(function(){return I.upperBound(n)}))},startsWith:function(t){return"string"!=typeof t?n(this,"String expected."):this.between(t,t+dt,!0,!0)},startsWithIgnoreCase:function(n){return""===n?this.startsWith(n):r(this,(function(n,t){return 0===n.indexOf(t[0])}),[n],dt)},equalsIgnoreCase:function(n){return r(this,(function(n,t){return n===t[0]}),[n],"")},anyOfIgnoreCase:function(){var n=T.apply(K,arguments);return 0===n.length?t(this):r(this,(function(n,t){return-1!==t.indexOf(n)}),n,"")},startsWithAnyOfIgnoreCase:function(){var n=T.apply(K,arguments);return 0===n.length?t(this):r(this,(function(n,t){return t.some((function(t){return 0===n.indexOf(t)}))}),n,dt)},anyOf:function(){var e=T.apply(K,arguments),r=Sn;try{e.sort(r)}catch(t){return n(this,pt)}if(0===e.length)return t(this);var i=new _n(this,(function(){return I.bound(e[0],e[e.length-1])}));i._ondirectionchange=function(n){r="next"===n?Sn:Dn,e.sort(r)};var o=0;return i._addAlgorithm((function(n,t,i){for(var u=n.key;r(u,e[o])>0;)if(++o===e.length)return t(i),!1;return 0===r(u,e[o])||(t((function(){n.continue(e[o])})),!1)})),i},notEqual:function(n){return this.inAnyRange([[-1/0,n],[n,vt]],{includeLowers:!1,includeUppers:!1})},noneOf:function(){var t=T.apply(K,arguments);if(0===t.length)return new _n(this);try{t.sort(Sn)}catch(t){return n(this,pt)}var e=t.reduce((function(n,t){return n?n.concat([[n[n.length-1][1],t]]):[[-1/0,t]]}),null);return e.push([t[t.length-1],vt]),this.inAnyRange(e,{includeLowers:!1,includeUppers:!1})},inAnyRange:function(e,r){if(0===e.length)return t(this);if(!e.every((function(n){return void 0!==n[0]&&void 0!==n[1]&&Sn(n[0],n[1])<=0})))return n(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",J.InvalidArgument);var i=!r||!1!==r.includeLowers,o=r&&!0===r.includeUppers;var u,a=Sn;function c(n,t){return a(n[0],t[0])}try{(u=e.reduce((function(n,t){for(var e=0,r=n.length;e<r;++e){var i=n[e];if(En(t[0],i[1])<0&&En(t[1],i[0])>0){i[0]=(o=i[0],u=t[0],En(o,u)<0?o:u),i[1]=On(i[1],t[1]);break}}var o,u;return e===r&&n.push(t),n}),[])).sort(c)}catch(t){return n(this,pt)}var s=0,f=o?function(n){return Sn(n,u[s][1])>0}:function(n){return Sn(n,u[s][1])>=0},l=i?function(n){return Dn(n,u[s][0])>0}:function(n){return Dn(n,u[s][0])>=0};var h=f,d=new _n(this,(function(){return I.bound(u[0][0],u[u.length-1][1],!i,!o)}));return d._ondirectionchange=function(n){"next"===n?(h=f,a=Sn):(h=l,a=Dn),u.sort(c)},d._addAlgorithm((function(n,t,e){for(var r=n.key;h(r);)if(++s===u.length)return t(e),!1;return!!function(n){return!f(n)&&!l(n)}(r)||(0===En(r,u[s][1])||0===En(r,u[s][0])||t((function(){a===Sn?n.continue(u[s][0]):n.continue(u[s][1])})),!1)})),d},startsWithAnyOf:function(){var e=T.apply(K,arguments);return e.every((function(n){return"string"==typeof n}))?0===e.length?t(this):this.inAnyRange(e.map((function(n){return[n,n+dt]}))):n(this,"startsWithAnyOf() only works with strings")}}})),f(_n.prototype,(function(){function n(n,t){n.filter=Tn(n.filter,t)}function t(n,t,e){var r=n.replayFilter;n.replayFilter=r?function(){return Tn(r(),t())}:t,n.justLimit=e&&!r}function e(n,t){if(n.isPrimKey)return t;var e=n.table.schema.idxByName[n.index];if(!e)throw new J.Schema("KeyPath "+n.index+" on object store "+t.name+" is not indexed");return t.index(e.name)}function i(n,t){var r=e(n,t);return n.keysOnly&&"openKeyCursor"in r?r.openKeyCursor(n.range||null,n.dir+n.unique):r.openCursor(n.range||null,n.dir+n.unique)}function o(n,t,e,r,o){var u=n.replayFilter?Tn(n.filter,n.replayFilter()):n.filter;n.or?function(){var a={},c=0;function f(){2==++c&&e()}function l(n,e,i){if(!u||u(e,i,f,r)){var o=e.primaryKey,c=""+o;"[object ArrayBuffer]"===c&&(c=""+new Uint8Array(o)),s(a,c)||(a[c]=!0,t(n,e,i))}}n.or._iterate(l,f,r,o),Pn(i(n,o),n.algorithm,l,f,r,!n.keysOnly&&n.valueMapper)}():Pn(i(n,o),Tn(n.algorithm,u),t,e,r,!n.keysOnly&&n.valueMapper)}return{_read:function(n,t){var e=this._ctx;return e.error?e.table._trans(null,ft.bind(null,e.error)):e.table._idbstore("readonly",n).then(t)},_write:function(n){var t=this._ctx;return t.error?t.table._trans(null,ft.bind(null,t.error)):t.table._idbstore(G,n,"locked")},_addAlgorithm:function(n){var t=this._ctx;t.algorithm=Tn(t.algorithm,n)},_iterate:function(n,t,e,r){return o(this._ctx,n,t,e,r)},clone:function(n){var t=Object.create(this.constructor.prototype),e=Object.create(this._ctx);return n&&u(e,n),t._ctx=e,t},raw:function(){return this._ctx.valueMapper=null,this},each:function(n){var t=this._ctx;return this._read((function(e,r,i){o(t,n,e,r,i)}))},count:function(n){var t=this._ctx;if(kn(t,!0))return this._read((function(n,r,i){var o=e(t,i),u=t.range?o.count(t.range):o.count();u.onerror=jt(r),u.onsuccess=function(e){n(Math.min(e.target.result,t.limit))}}),n);var r=0;return this._read((function(n,e,i){o(t,(function(){return++r,!1}),(function(){n(r)}),e,i)}),n)},sortBy:function(n,t){var e=n.split(".").reverse(),r=e[0],i=e.length-1;function o(n,t){return t?o(n[e[t]],t-1):n[r]}var u="next"===this._ctx.dir?1:-1;function a(n,t){var e=o(n,i),r=o(t,i);return e<r?-u:e>r?u:0}return this.toArray((function(n){return n.sort(a)})).then(t)},toArray:function(n){var t=this._ctx;return this._read((function(n,r,i){if(c&&"next"===t.dir&&kn(t,!0)&&t.limit>0){var u=t.table.hook.reading.fire,a=e(t,i),s=t.limit<1/0?a.getAll(t.range,t.limit):a.getAll(t.range);s.onerror=jt(r),s.onsuccess=Pt(u===Z?n:function(t){try{n(t.map(u))}catch(n){r(n)}})}else{var f=[];o(t,(function(n){f.push(n)}),(function(){n(f)}),r,i)}}),n)},offset:function(n){var e=this._ctx;return n<=0||(e.offset+=n,kn(e)?t(e,(function(){var t=n;return function(n,e){return 0===t||(1===t?(--t,!1):(e((function(){n.advance(t),t=0})),!1))}})):t(e,(function(){var t=n;return function(){return--t<0}}))),this},limit:function(n){return this._ctx.limit=Math.min(this._ctx.limit,n),t(this._ctx,(function(){var t=n;return function(n,e,r){return--t<=0&&e(r),t>=0}}),!0),this},until:function(t,e){return n(this._ctx,(function(n,r,i){return!t(n.value)||(r(i),e)})),this},first:function(n){return this.limit(1).toArray((function(n){return n[0]})).then(n)},last:function(n){return this.reverse().first(n)},filter:function(t){return n(this._ctx,(function(n){return t(n.value)})),function(n,t){n.isMatch=Tn(n.isMatch,t)}(this._ctx,t),this},and:function(n){return this.filter(n)},or:function(n){return new wn(this._ctx.table,n,this)},reverse:function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},desc:function(){return this.reverse()},eachKey:function(n){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,e){n(e.key,e)}))},eachUniqueKey:function(n){return this._ctx.unique="unique",this.eachKey(n)},eachPrimaryKey:function(n){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,e){n(e.primaryKey,e)}))},keys:function(n){var t=this._ctx;t.keysOnly=!t.isMatch;var e=[];return this.each((function(n,t){e.push(t.key)})).then((function(){return e})).then(n)},primaryKeys:function(n){var t=this._ctx;if(c&&"next"===t.dir&&kn(t,!0)&&t.limit>0)return this._read((function(n,r,i){var o=e(t,i),u=t.limit<1/0?o.getAllKeys(t.range,t.limit):o.getAllKeys(t.range);u.onerror=jt(r),u.onsuccess=Pt(n)})).then(n);t.keysOnly=!t.isMatch;var r=[];return this.each((function(n,t){r.push(t.primaryKey)})).then((function(){return r})).then(n)},uniqueKeys:function(n){return this._ctx.unique="unique",this.keys(n)},firstKey:function(n){return this.limit(1).keys((function(n){return n[0]})).then(n)},lastKey:function(n){return this.reverse().firstKey(n)},distinct:function(){var t=this._ctx,e=t.index&&t.table.schema.idxByName[t.index];if(!e||!e.multi)return this;var r={};return n(this._ctx,(function(n){var t=n.primaryKey.toString(),e=s(r,t);return r[t]=!0,!e})),this},modify:function(n){var t=this,e=this._ctx.table.hook,i=e.updating.fire,o=e.deleting.fire;return this._write((function(e,a,c,f){var l;if("function"==typeof n)l=i===X&&o===X?n:function(t){var e=S(t);if(!1===n.call(this,t,this))return!1;if(s(this,"value")){var u=D(e,this.value),a=i.call(this,u,this.primKey,e,f);a&&(t=this.value,r(a).forEach((function(n){j(t,n,a[n])})))}else o.call(this,this.primKey,t,f)};else if(i===X){var h=r(n),d=h.length;l=function(t){for(var e=!1,r=0;r<d;++r){var i=h[r],o=n[i];x(t,i)!==o&&(j(t,i,o),e=!0)}return e}}else{var v=n;n=P(v),l=function(t){var e=!1,o=i.call(this,n,this.primKey,S(t),f);return o&&u(n,o),r(n).forEach((function(r){var i=n[r];x(t,r)!==i&&(j(t,r,i),e=!0)})),o&&(n=P(v)),e}}var p=0,y=0,m=!1,g=[],b=[],w=null;function _(n){return n&&(g.push(n),b.push(w)),a(new W("Error modifying one or more objects",g,y,b))}function E(){m&&y+g.length===p&&(g.length>0?_():e(y))}t.clone().raw()._iterate((function(n,t){w=t.primaryKey;var e={primKey:t.primaryKey,value:n,onsuccess:null,onerror:null};function r(n){return g.push(n),b.push(e.primKey),E(),!0}if(!1!==l.call(e,n,e)){var i=!s(e,"value");++p,k((function(){var n=i?t.delete():t.update(e.value);n._hookCtx=e,n.onerror=Et(r),n.onsuccess=xt((function(){++y,E()}))}),r)}else e.onsuccess&&e.onsuccess(e.value)}),(function(){m=!0,E()}),_,c)}))},delete:function(){var n=this,t=this._ctx,e=t.range,r=t.table.hook.deleting.fire,i=r!==X;if(!i&&kn(t)&&(t.isPrimKey&&!bt||!e))return this._write((function(n,t,r){var i=jt(t),o=e?r.count(e):r.count();o.onerror=i,o.onsuccess=function(){var u=o.result;k((function(){var t=e?r.delete(e):r.clear();t.onerror=i,t.onsuccess=function(){return n(u)}}),(function(n){return t(n)}))}}));var o=i?2e3:1e4;return this._write((function(e,u,a,c){var s=0,f=n.clone({keysOnly:!t.isMatch&&!i}).distinct().limit(o).raw(),l=[],h=function(){return f.each(i?function(n,t){l.push([t.primaryKey,t.value])}:function(n,t){l.push(t.primaryKey)}).then((function(){return i?l.sort((function(n,t){return Sn(n[0],t[0])})):l.sort(Sn),gn(a,c,l,i,r)})).then((function(){var n=l.length;return s+=n,l=[],n<o?s:h()}))};e(h())}))}}})),u(this,{Collection:_n,Table:yn,Transaction:bn,Version:sn,WhereClause:wn}),Y.on("versionchange",(function(n){n.newVersion>0?console.warn("Another connection wants to upgrade database '"+Y.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+Y.name+"'. Closing db now to resume the delete request."),Y.close()})),Y.on("blocked",(function(n){!n.newVersion||n.newVersion<n.oldVersion?console.warn("Dexie.delete('"+Y.name+"') was blocked"):console.warn("Upgrade '"+Y.name+"' blocked by other connection holding version "+n.oldVersion/10)})),b.forEach((function(n){n(Y)}))}function kt(n,t){return r(t).forEach((function(e){var r=function n(t){if("function"==typeof t)return new t;if(i(t))return[n(t[0])];if(t&&"object"==typeof t){var e={};return kt(e,t),e}return t}(t[e]);n[e]=r})),n}function xt(n){return Wn((function(t){var e=t.target,r=e._hookCtx,i=r.value||e.result,o=r&&r.onsuccess;o&&o(i),n&&n(i)}),n)}function jt(n){return Wn((function(t){return At(t),n(t.target.error),!1}))}function Pt(n){return Wn((function(t){n(t.target.result)}))}function Et(n){return Wn((function(t){var e=t.target,r=e.error,i=e._hookCtx,o=i&&i.onerror;return o&&o(r),At(t),n(r),!1}))}function At(n){n.stopPropagation&&n.stopPropagation(),n.preventDefault&&n.preventDefault()}function Ot(n){var t=function(t){return n.next(t)},e=o(t),r=o((function(t){return n.throw(t)}));function o(n){return function(t){var o=n(t),u=o.value;return o.done?u:u&&"function"==typeof u.then?u.then(e,r):i(u)?In.all(u).then(e,r):e(u)}}return o(t)()}function St(n,t,e,r,i,o,u){this.name=n,this.keyPath=t,this.unique=e,this.multi=r,this.auto=i,this.compound=o,this.dotted=u;var a="string"==typeof t?t:t&&"["+[].join.call(t,"+")+"]";this.src=(e?"&":"")+(r?"*":"")+(i?"++":"")+a}function Dt(n,t,e,r){this.name=n,this.primKey=t||new St,this.indexes=e||[new St],this.instanceTemplate=r,this.mappedClass=null,this.idxByName=w(e,(function(n){return[n.name,n]}))}function It(n){return 1===n.length?n[0]:n}function Ct(n){var t=n&&(n.getDatabaseNames||n.webkitGetDatabaseNames);return t&&t.bind(n)}F(B,wt),f(_t,$),f(_t,{delete:function(n){var t=new _t(n),e=t.delete();return e.onblocked=function(n){return t.on("blocked",n),this},e},exists:function(n){return new _t(n).open().then((function(n){return n.close(),!0})).catch(_t.NoSuchDatabaseError,(function(){return!1}))},getDatabaseNames:function(n){var t=Ct(_t.dependencies.indexedDB);return t?new In((function(n,e){var r=t();r.onsuccess=function(t){n(y(t.target.result,0))},r.onerror=jt(e)})).then(n):ht.dbnames.toCollection().primaryKeys(n)},defineClass:function(){return function(n){n&&u(this,n)}},applyStructure:kt,ignoreTransaction:function(n){return An.trans?ut(An.transless,n):n()},vip:function(n){return Xn((function(){return An.letThrough=!0,n()}))},async:function(n){return function(){try{var t=Ot(n.apply(this,arguments));return t&&"function"==typeof t.then?t:In.resolve(t)}catch(n){return ft(n)}}},spawn:function(n,t,e){try{var r=Ot(n.apply(e,t||[]));return r&&"function"==typeof r.then?r:In.resolve(r)}catch(n){return ft(n)}},currentTransaction:{get:function(){return An.trans||null}},waitFor:function(n,t){var e=In.resolve("function"==typeof n?_t.ignoreTransaction(n):n).timeout(t||6e4);return An.trans?An.trans.waitFor(e):e},Promise:In,debug:{get:function(){return B},set:function(n){F(n,"dexie"===n?function(){return!0}:wt)}},derive:d,extend:u,props:f,override:m,Events:lt,getByKeyPath:x,setByKeyPath:j,delByKeyPath:function(n,t){"string"==typeof t?j(n,t,void 0):"length"in t&&[].map.call(t,(function(t){j(n,t,void 0)}))},shallowClone:P,deepClone:S,getObjectDiff:D,asap:b,maxKey:vt,minKey:-1/0,addons:[],connections:yt,MultiModifyError:J.Modify,errnames:H,IndexSpec:St,TableSchema:Dt,dependencies:function(){try{return{indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch(n){return{indexedDB:null,IDBKeyRange:null}}}(),semVer:"{version}",version:"{version}".split(".").map((function(n){return parseInt(n)})).reduce((function(n,t,e){return n+t/Math.pow(10,2*e)})),default:_t,Dexie:_t}),In.rejectionMapper=function(n,t){if(!n||n instanceof L||n instanceof TypeError||n instanceof SyntaxError||!n.name||!Y[n.name])return n;var e=new Y[n.name](t||n.message,n);return"stack"in n&&h(e,"stack",{get:function(){return this.inner.stack}}),e},(ht=new _t("__dbnames")).version(1).stores({dbnames:"name"}),function(){try{void 0!==typeof localStorage&&void 0!==o.document&&(JSON.parse(localStorage.getItem("Dexie.DatabaseNames")||"[]").forEach((function(n){return ht.dbnames.put({name:n}).catch(X)})),localStorage.removeItem("Dexie.DatabaseNames"))}catch(n){}}(),t.a=_t}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[3],{782:function(n,t,e){"use strict";var r=Object.keys,i=Array.isArray,o="undefined"!=typeof self?self:"undefined"!=typeof window?window:global;function u(n,t){return"object"!=typeof t||r(t).forEach((function(e){n[e]=t[e]})),n}var a=Object.getPrototypeOf,c={}.hasOwnProperty;function s(n,t){return c.call(n,t)}function f(n,t){"function"==typeof t&&(t=t(a(n))),r(t).forEach((function(e){h(n,e,t[e])}))}var l=Object.defineProperty;function h(n,t,e,r){l(n,t,u(e&&s(e,"get")&&"function"==typeof e.get?{get:e.get,set:e.set,configurable:!0}:{value:e,configurable:!0,writable:!0},r))}function d(n){return{from:function(t){return n.prototype=Object.create(t.prototype),h(n.prototype,"constructor",n),{extend:f.bind(null,n.prototype)}}}}var v=Object.getOwnPropertyDescriptor;var p=[].slice;function y(n,t,e){return p.call(n,t,e)}function m(n,t){return t(n)}function g(n){if(!n)throw new Error("Assertion Failed")}function b(n){o.setImmediate?setImmediate(n):setTimeout(n,0)}function w(n,t){return n.reduce((function(n,e,r){var i=t(e,r);return i&&(n[i[0]]=i[1]),n}),{})}function _(n,t){return function(){try{n.apply(this,arguments)}catch(n){t(n)}}}function k(n,t,e){try{n.apply(null,e)}catch(n){t&&t(n)}}function x(n,t){if(s(n,t))return n[t];if(!t)return n;if("string"!=typeof t){for(var e=[],r=0,i=t.length;r<i;++r){var o=x(n,t[r]);e.push(o)}return e}var u=t.indexOf(".");if(-1!==u){var a=n[t.substr(0,u)];return void 0===a?void 0:x(a,t.substr(u+1))}}function j(n,t,e){if(n&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(n)))if("string"!=typeof t&&"length"in t){g("string"!=typeof e&&"length"in e);for(var r=0,i=t.length;r<i;++r)j(n,t[r],e[r])}else{var o=t.indexOf(".");if(-1!==o){var u=t.substr(0,o),a=t.substr(o+1);if(""===a)void 0===e?delete n[u]:n[u]=e;else{var c=n[u];c||(c=n[u]={}),j(c,a,e)}}else void 0===e?delete n[t]:n[t]=e}}function P(n){var t={};for(var e in n)s(n,e)&&(t[e]=n[e]);return t}var E=[].concat;function A(n){return E.apply([],n)}var O="Boolean,String,Date,RegExp,Blob,File,FileList,ArrayBuffer,DataView,Uint8ClampedArray,ImageData,Map,Set".split(",").concat(A([8,16,32,64].map((function(n){return["Int","Uint","Float"].map((function(t){return t+n+"Array"}))})))).filter((function(n){return o[n]})).map((function(n){return o[n]}));function S(n){if(!n||"object"!=typeof n)return n;var t;if(i(n)){t=[];for(var e=0,r=n.length;e<r;++e)t.push(S(n[e]))}else if(O.indexOf(n.constructor)>=0)t=n;else for(var o in t=n.constructor?Object.create(n.constructor.prototype):{},n)s(n,o)&&(t[o]=S(n[o]));return t}function D(n,t,e,i){return e=e||{},i=i||"",r(n).forEach((function(r){if(s(t,r)){var o=n[r],u=t[r];"object"==typeof o&&"object"==typeof u&&o&&u&&""+o.constructor==""+u.constructor?D(o,u,e,i+r+"."):o!==u&&(e[i+r]=t[r])}else e[i+r]=void 0})),r(t).forEach((function(r){s(n,r)||(e[i+r]=t[r])})),e}var I="undefined"!=typeof Symbol&&Symbol.iterator,C=I?function(n){var t;return null!=n&&(t=n[I])&&t.apply(n)}:function(){return null},K={};function T(n){var t,e,r,o;if(1===arguments.length){if(i(n))return n.slice();if(this===K&&"string"==typeof n)return[n];if(o=C(n)){for(e=[];!(r=o.next()).done;)e.push(r.value);return e}if(null==n)return[n];if("number"==typeof(t=n.length)){for(e=new Array(t);t--;)e[t]=n[t];return e}return[n]}for(t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return e}var B="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function F(n,t){B=n,N=t}var N=function(){return!0},M=!new Error("").stack;function q(){if(M)try{throw q.arguments,new Error}catch(n){return n}return new Error}function R(n,t){var e=n.stack;return e?(t=t||0,0===e.indexOf(n.name)&&(t+=(n.name+n.message).split("\n").length),e.split("\n").slice(t).filter(N).map((function(n){return"\n"+n})).join("")):""}var U=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],V=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(U),z={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed"};function L(n,t){this._e=q(),this.name=n,this.message=t}function W(n,t,e,r){this._e=q(),this.failures=t,this.failedKeys=r,this.successCount=e}function Q(n,t){this._e=q(),this.name="BulkError",this.failures=t,this.message=function(n,t){return n+". Errors: "+t.map((function(n){return n.toString()})).filter((function(n,t,e){return e.indexOf(n)===t})).join("\n")}(n,t)}d(L).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+R(this._e,2))}},toString:function(){return this.name+": "+this.message}}),d(W).from(L),d(Q).from(L);var H=V.reduce((function(n,t){return n[t]=t+"Error",n}),{}),G=L,J=V.reduce((function(n,t){var e=t+"Error";function r(n,r){this._e=q(),this.name=e,n?"string"==typeof n?(this.message=n,this.inner=r||null):"object"==typeof n&&(this.message=n.name+" "+n.message,this.inner=n):(this.message=z[t]||e,this.inner=null)}return d(r).from(G),n[t]=r,n}),{});J.Syntax=SyntaxError,J.Type=TypeError,J.Range=RangeError;var Y=U.reduce((function(n,t){return n[t+"Error"]=J[t],n}),{});var $=V.reduce((function(n,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(n[t+"Error"]=J[t]),n}),{});function X(){}function Z(n){return n}function nn(n,t){return null==n||n===Z?t:function(e){return t(n(e))}}function tn(n,t){return function(){n.apply(this,arguments),t.apply(this,arguments)}}function en(n,t){return n===X?t:function(){var e=n.apply(this,arguments);void 0!==e&&(arguments[0]=e);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?tn(r,this.onsuccess):r),i&&(this.onerror=this.onerror?tn(i,this.onerror):i),void 0!==o?o:e}}function rn(n,t){return n===X?t:function(){n.apply(this,arguments);var e=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),e&&(this.onsuccess=this.onsuccess?tn(e,this.onsuccess):e),r&&(this.onerror=this.onerror?tn(r,this.onerror):r)}}function on(n,t){return n===X?t:function(e){var r=n.apply(this,arguments);u(e,r);var i=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?tn(i,this.onsuccess):i),o&&(this.onerror=this.onerror?tn(o,this.onerror):o),void 0===r?void 0===a?void 0:a:u(r,a)}}function un(n,t){return n===X?t:function(){return!1!==t.apply(this,arguments)&&n.apply(this,arguments)}}function an(n,t){return n===X?t:function(){var e=n.apply(this,arguments);if(e&&"function"==typeof e.then){for(var r=this,i=arguments.length,o=new Array(i);i--;)o[i]=arguments[i];return e.then((function(){return t.apply(r,o)}))}return t.apply(this,arguments)}}$.ModifyError=W,$.DexieError=L,$.BulkError=Q;var cn={},sn=function(){try{return new Function("let F=async ()=>{},p=F();return [p,Object.getPrototypeOf(p),Promise.resolve(),F.constructor];")()}catch(t){var n=o.Promise;return n?[n.resolve(),n.prototype,n.resolve()]:[]}}(),fn=sn[0],ln=sn[1],hn=sn[2],dn=ln&&ln.then,vn=fn&&fn.constructor,pn=sn[3],yn=!!hn,mn=!1,gn=hn?function(){hn.then(Rn)}:o.setImmediate?setImmediate.bind(null,Rn):o.MutationObserver?function(){var n=document.createElement("div");new MutationObserver((function(){Rn(),n=null})).observe(n,{attributes:!0}),n.setAttribute("i","1")}:function(){setTimeout(Rn,0)},bn=function(n,t){On.push([n,t]),_n&&(gn(),_n=!1)},wn=!0,_n=!0,kn=[],xn=[],jn=null,Pn=Z,En={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:st,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((function(n){try{st(n[0],n[1])}catch(n){}}))}},An=En,On=[],Sn=0,Dn=[];function In(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=X,this._lib=!1;var t=this._PSD=An;if(B&&(this._stackHolder=q(),this._prev=null,this._numPrev=0),"function"!=typeof n){if(n!==cn)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Bn(this,this._value))}this._state=null,this._value=null,++t.ref,Tn(this,n)}var Cn={get:function(){var n=An,t=Yn;function e(e,r){var i=this,o=!n.global&&(n!==An||t!==Yn);o&&nt();var u=new In((function(t,u){Nn(i,new Kn(at(e,n,o),at(r,n,o),t,u,n))}));return B&&qn(u,this),u}return e.prototype=cn,e},set:function(n){h(this,"then",n&&n.prototype===cn?Cn:{get:function(){return n},set:Cn.set})}};function Kn(n,t,e,r,i){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.resolve=e,this.reject=r,this.psd=i}function Tn(n,t){try{t((function(t){if(null===n._state){if(t===n)throw new TypeError("A promise cannot be resolved with itself.");var e=n._lib&&Un();t&&"function"==typeof t.then?Tn(n,(function(n,e){t instanceof In?t._then(n,e):t.then(n,e)})):(n._state=!0,n._value=t,Fn(n)),e&&Vn()}}),Bn.bind(null,n))}catch(t){Bn(n,t)}}function Bn(n,t){if(xn.push(t),null===n._state){var e=n._lib&&Un();t=Pn(t),n._state=!1,n._value=t,B&&null!==t&&"object"==typeof t&&!t._promise&&k((function(){var e=function n(t,e){var r;return v(t,e)||(r=a(t))&&n(r,e)}(t,"stack");t._promise=n,h(t,"stack",{get:function(){return mn?e&&(e.get?e.get.apply(t):e.value):n.stack}})})),function(n){kn.some((function(t){return t._value===n._value}))||kn.push(n)}(n),Fn(n),e&&Vn()}}function Fn(n){var t=n._listeners;n._listeners=[];for(var e=0,r=t.length;e<r;++e)Nn(n,t[e]);var i=n._PSD;--i.ref||i.finalize(),0===Sn&&(++Sn,bn((function(){0==--Sn&&zn()}),[]))}function Nn(n,t){if(null!==n._state){var e=n._state?t.onFulfilled:t.onRejected;if(null===e)return(n._state?t.resolve:t.reject)(n._value);++t.psd.ref,++Sn,bn(Mn,[e,n,t])}else n._listeners.push(t)}function Mn(n,t,e){try{jn=t;var r,i=t._value;t._state?r=n(i):(xn.length&&(xn=[]),r=n(i),-1===xn.indexOf(i)&&function(n){var t=kn.length;for(;t;)if(kn[--t]._value===n._value)return void kn.splice(t,1)}(t)),e.resolve(r)}catch(n){e.reject(n)}finally{jn=null,0==--Sn&&zn(),--e.psd.ref||e.psd.finalize()}}function qn(n,t){var e=t?t._numPrev+1:0;e<100&&(n._prev=t,n._numPrev=e)}function Rn(){Un()&&Vn()}function Un(){var n=wn;return wn=!1,_n=!1,n}function Vn(){var n,t,e;do{for(;On.length>0;)for(n=On,On=[],e=n.length,t=0;t<e;++t){var r=n[t];r[0].apply(null,r[1])}}while(On.length>0);wn=!0,_n=!0}function zn(){var n=kn;kn=[],n.forEach((function(n){n._PSD.onunhandled.call(null,n._value,n)}));for(var t=Dn.slice(0),e=t.length;e;)t[--e]()}function Ln(n){return new In(cn,!1,n)}function Wn(n,t){var e=An;return function(){var r=Un(),i=An;try{return it(e,!0),n.apply(this,arguments)}catch(n){t&&t(n)}finally{it(i,!1),r&&Vn()}}}f(In.prototype,{then:Cn,_then:function(n,t){Nn(this,new Kn(null,null,n,t,An))},catch:function(n){if(1===arguments.length)return this.then(null,n);var t=arguments[0],e=arguments[1];return"function"==typeof t?this.then(null,(function(n){return n instanceof t?e(n):Ln(n)})):this.then(null,(function(n){return n&&n.name===t?e(n):Ln(n)}))},finally:function(n){return this.then((function(t){return n(),t}),(function(t){return n(),Ln(t)}))},stack:{get:function(){if(this._stack)return this._stack;try{mn=!0;var n=function n(t,e,r){if(e.length===r)return e;var i="";if(!1===t._state){var o,u,a=t._value;null!=a?(o=a.name||"Error",u=a.message||a,i=R(a,0)):(o=a,u=""),e.push(o+(u?": "+u:"")+i)}B&&((i=R(t._stackHolder,2))&&-1===e.indexOf(i)&&e.push(i),t._prev&&n(t._prev,e,r));return e}(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=n),n}finally{mn=!1}}},timeout:function(n,t){var e=this;return n<1/0?new In((function(r,i){var o=setTimeout((function(){return i(new J.Timeout(t))}),n);e.then(r,i).finally(clearTimeout.bind(null,o))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&h(In.prototype,Symbol.toStringTag,"Promise"),En.env=ot(),f(In,{all:function(){var n=T.apply(null,arguments).map(tt);return new In((function(t,e){0===n.length&&t([]);var r=n.length;n.forEach((function(i,o){return In.resolve(i).then((function(e){n[o]=e,--r||t(n)}),e)}))}))},resolve:function(n){if(n instanceof In)return n;if(n&&"function"==typeof n.then)return new In((function(t,e){n.then(t,e)}));var t=new In(cn,!0,n);return qn(t,jn),t},reject:Ln,race:function(){var n=T.apply(null,arguments).map(tt);return new In((function(t,e){n.map((function(n){return In.resolve(n).then(t,e)}))}))},PSD:{get:function(){return An},set:function(n){return An=n}},newPSD:Xn,usePSD:ut,scheduler:{get:function(){return bn},set:function(n){bn=n}},rejectionMapper:{get:function(){return Pn},set:function(n){Pn=n}},follow:function(n,t){return new In((function(e,r){return Xn((function(t,e){var r=An;r.unhandleds=[],r.onunhandled=e,r.finalize=tn((function(){var n=this;!function(n){Dn.push((function t(){n(),Dn.splice(Dn.indexOf(t),1)})),++Sn,bn((function(){0==--Sn&&zn()}),[])}((function(){0===n.unhandleds.length?t():e(n.unhandleds[0])}))}),r.finalize),n()}),t,e,r)}))}});var Qn={awaits:0,echoes:0,id:0},Hn=0,Gn=[],Jn=0,Yn=0,$n=0;function Xn(n,t,e,r){var i=An,o=Object.create(i);o.parent=i,o.ref=0,o.global=!1,o.id=++$n;var a=En.env;o.env=yn?{Promise:In,PromiseProp:{value:In,configurable:!0,writable:!0},all:In.all,race:In.race,resolve:In.resolve,reject:In.reject,nthen:ct(a.nthen,o),gthen:ct(a.gthen,o)}:{},t&&u(o,t),++i.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var c=ut(o,n,e,r);return 0===o.ref&&o.finalize(),c}function Zn(){return Qn.id||(Qn.id=++Hn),++Qn.awaits,Qn.echoes+=7,Qn.id}function nt(n){!Qn.awaits||n&&n!==Qn.id||(0==--Qn.awaits&&(Qn.id=0),Qn.echoes=7*Qn.awaits)}function tt(n){return Qn.echoes&&n&&n.constructor===vn?(Zn(),n.then((function(n){return nt(),n}),(function(n){return nt(),ft(n)}))):n}function et(n){++Yn,Qn.echoes&&0!=--Qn.echoes||(Qn.echoes=Qn.id=0),Gn.push(An),it(n,!0)}function rt(){var n=Gn[Gn.length-1];Gn.pop(),it(n,!1)}function it(n,t){var e,r=An;if((t?!Qn.echoes||Jn++&&n===An:!Jn||--Jn&&n===An)||(e=t?et.bind(null,n):rt,dn.call(fn,e)),n!==An&&(An=n,r===En&&(En.env=ot()),yn)){var i=En.env.Promise,u=n.env;ln.then=u.nthen,i.prototype.then=u.gthen,(r.global||n.global)&&(Object.defineProperty(o,"Promise",u.PromiseProp),i.all=u.all,i.race=u.race,i.resolve=u.resolve,i.reject=u.reject)}}function ot(){var n=o.Promise;return yn?{Promise:n,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:n.all,race:n.race,resolve:n.resolve,reject:n.reject,nthen:ln.then,gthen:n.prototype.then}:{}}function ut(n,t,e,r,i){var o=An;try{return it(n,!0),t(e,r,i)}finally{it(o,!1)}}function at(n,t,e){return"function"!=typeof n?n:function(){var r=An;e&&Zn(),it(t,!0);try{return n.apply(this,arguments)}finally{it(r,!1)}}}function ct(n,t){return function(e,r){return n.call(this,at(e,t,!1),at(r,t,!1))}}function st(n,t){var e;try{e=t.onuncatched(n)}catch(n){}if(!1!==e)try{var r,i={promise:t,reason:n};if(o.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),u(r,i)):o.CustomEvent&&u(r=new CustomEvent("unhandledrejection",{detail:i}),i),r&&o.dispatchEvent&&(dispatchEvent(r),!o.PromiseRejectionEvent&&o.onunhandledrejection))try{o.onunhandledrejection(r)}catch(n){}r.defaultPrevented||console.warn("Unhandled rejection: "+(n.stack||n))}catch(n){}}var ft=In.reject;function lt(n){var t={},e=function(e,r){if(r){for(var i=arguments.length,o=new Array(i-1);--i;)o[i-1]=arguments[i];return t[e].subscribe.apply(null,o),n}if("string"==typeof e)return t[e]};e.addEventType=a;for(var o=1,u=arguments.length;o<u;++o)a(arguments[o]);return e;function a(n,r,i){if("object"==typeof n)return c(n);r||(r=un),i||(i=X);var o={subscribers:[],fire:i,subscribe:function(n){-1===o.subscribers.indexOf(n)&&(o.subscribers.push(n),o.fire=r(o.fire,n))},unsubscribe:function(n){o.subscribers=o.subscribers.filter((function(t){return t!==n})),o.fire=o.subscribers.reduce(r,i)}};return t[n]=e[n]=o,o}function c(n){r(n).forEach((function(t){var e=n[t];if(i(e))a(t,n[t][0],n[t][1]);else{if("asap"!==e)throw new J.InvalidArgument("Invalid event config");var r=a(t,Z,(function(){for(var n=arguments.length,t=new Array(n);n--;)t[n]=arguments[n];r.subscribers.forEach((function(n){b((function(){n.apply(null,t)}))}))}))}}))}}var ht,dt=String.fromCharCode(65535),vt=function(){try{return IDBKeyRange.only([[]]),[[]]}catch(n){return dt}}(),pt="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",yt=[],mt="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),gt=mt,bt=mt,wt=function(n){return!/(dexie\.js|dexie\.min\.js)/.test(n)};function _t(n,t){var e,a,c,l,d,v=_t.dependencies,p=u({addons:_t.addons,autoOpen:!0,indexedDB:v.indexedDB,IDBKeyRange:v.IDBKeyRange},t),b=p.addons,E=p.autoOpen,O=p.indexedDB,I=p.IDBKeyRange,C=this._dbSchema={},F=[],N=[],M={},U=null,V=null,z=!1,L=null,H=!1,G="readwrite",Y=this,$=new In((function(n){e=n})),tn=new In((function(n,t){a=t})),un=!0,cn=!!Ct(O);function sn(n){this._cfg={version:n,storesSource:null,dbschema:{},tables:{},contentUpgrade:null},this.stores({})}function fn(n,t,e){var i=Y._createTransaction(G,N,C);i.create(t),i._completion.catch(e);var o=i._reject.bind(i);Xn((function(){An.trans=i,0===n?(r(C).forEach((function(n){ln(t,n,C[n].primKey,C[n].indexes)})),In.follow((function(){return Y.on.populate.fire(i)})).catch(o)):function(n,t,e){var i=[],o=F.filter((function(t){return t._cfg.version===n}))[0];if(!o)throw new J.Upgrade("Dexie specification of currently installed DB version is missing");C=Y._dbSchema=o._cfg.dbschema;var u=!1;function a(){return i.length?In.resolve(i.shift()(t.idbtrans)).then(a):In.resolve()}return F.filter((function(t){return t._cfg.version>n})).forEach((function(n){i.push((function(){var r=C,i=n._cfg.dbschema;Bn(r,e),Bn(i,e),C=Y._dbSchema=i;var o=function(n,t){var e={del:[],add:[],change:[]};for(var r in n)t[r]||e.del.push(r);for(r in t){var i=n[r],o=t[r];if(i){var u={name:r,def:o,recreate:!1,del:[],add:[],change:[]};if(i.primKey.src!==o.primKey.src)u.recreate=!0,e.change.push(u);else{var a=i.idxByName,c=o.idxByName;for(var s in a)c[s]||u.del.push(s);for(s in c){var f=a[s],l=c[s];f?f.src!==l.src&&u.change.push(l):u.add.push(l)}(u.del.length>0||u.add.length>0||u.change.length>0)&&e.change.push(u)}}else e.add.push([r,o])}return e}(r,i);if(o.add.forEach((function(n){ln(e,n[0],n[1].primKey,n[1].indexes)})),o.change.forEach((function(n){if(n.recreate)throw new J.Upgrade("Not yet support for changing primary key");var t=e.objectStore(n.name);n.add.forEach((function(n){hn(t,n)})),n.change.forEach((function(n){t.deleteIndex(n.name),hn(t,n)})),n.del.forEach((function(n){t.deleteIndex(n)}))})),n._cfg.contentUpgrade)return u=!0,In.follow((function(){n._cfg.contentUpgrade(t)}))})),i.push((function(t){u&>||function(n,t){for(var e=0;e<t.db.objectStoreNames.length;++e){var r=t.db.objectStoreNames[e];null==n[r]&&t.db.deleteObjectStore(r)}}(n._cfg.dbschema,t)}))})),a().then((function(){!function(n,t){r(n).forEach((function(e){t.db.objectStoreNames.contains(e)||ln(t,e,n[e].primKey,n[e].indexes)}))}(C,e)}))}(n,i,t).catch(o)}))}function ln(n,t,e,r){var i=n.db.createObjectStore(t,e.keyPath?{keyPath:e.keyPath,autoIncrement:e.auto}:{autoIncrement:e.auto});return r.forEach((function(n){hn(i,n)})),i}function hn(n,t){n.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function dn(n,t,e){var r=arguments.length;if(r<2)throw new J.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];e=i.pop();var o=A(i);return[n,o,e]}function yn(n,t,e){this.name=n,this.schema=t,this._tx=e,this.hook=M[n]?M[n].hook:lt(null,{creating:[en,X],reading:[nn,Z],updating:[on,X],deleting:[rn,X]})}function mn(n,t,e){return(e?Et:jt)((function(e){n.push(e),t&&t()}))}function gn(n,t,e,r,i){return new In((function(o,u){var a=e.length,c=a-1;if(0===a)return o();if(r){var s,f=Et(u),l=xt(null);k((function(){for(var r=0;r<a;++r){s={onsuccess:null,onerror:null};var u=e[r];i.call(s,u[0],u[1],t);var h=n.delete(u[0]);h._hookCtx=s,h.onerror=f,h.onsuccess=r===c?xt(o):l}}),(function(n){throw s.onerror&&s.onerror(n),n}))}else for(var h=0;h<a;++h){var d=n.delete(e[h]);d.onerror=jt(u),h===c&&(d.onsuccess=Wn((function(){return o()})))}}))}function bn(n,t,e,r){var i=this;this.db=Y,this.mode=n,this.storeNames=t,this.idbtrans=null,this.on=lt(this,"complete","error","abort"),this.parent=r||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new In((function(n,t){i._resolve=n,i._reject=t})),this._completion.then((function(){i.active=!1,i.on.complete.fire()}),(function(n){var t=i.active;return i.active=!1,i.on.error.fire(n),i.parent?i.parent._reject(n):t&&i.idbtrans&&i.idbtrans.abort(),ft(n)}))}function wn(n,t,e){this._ctx={table:n,index:":id"===t?null:t,or:e}}function _n(n,t){var e=null,r=null;if(t)try{e=t()}catch(n){r=n}var i=n._ctx,o=i.table;this._ctx={table:o,index:i.index,isPrimKey:!i.index||o.schema.primKey.keyPath&&i.index===o.schema.primKey.name,range:e,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:i.or,valueMapper:o.hook.reading.fire}}function kn(n,t){return!(n.filter||n.algorithm||n.or)&&(t?n.justLimit:!n.replayFilter)}function xn(n,t){return n._cfg.version-t._cfg.version}function jn(n,t,e){t.forEach((function(t){var r=e[t];n.forEach((function(n){t in n||(n===bn.prototype||n instanceof bn?h(n,t,{get:function(){return this.table(t)}}):n[t]=new yn(t,r))}))}))}function Pn(n,t,e,r,i,o){var u=Wn(o?function(n,t,r){return e(o(n),t,r)}:e,i);n.onerror||(n.onerror=jt(i)),n.onsuccess=_(t?function(){var e=n.result;if(e){var o=function(){e.continue()};t(e,(function(n){o=n}),r,i)&&u(e.value,e,(function(n){o=n})),o()}else r()}:function(){var t=n.result;if(t){var e=function(){t.continue()};u(t.value,t,(function(n){e=n})),e()}else r()},i)}function En(n,t){return O.cmp(n,t)}function On(n,t){return En(n,t)>0?n:t}function Sn(n,t){return O.cmp(n,t)}function Dn(n,t){return O.cmp(t,n)}function Cn(n,t){return n<t?-1:n===t?0:1}function Kn(n,t){return n>t?-1:n===t?0:1}function Tn(n,t){return n?t?function(){return n.apply(this,arguments)&&t.apply(this,arguments)}:n:t}function Bn(n,t){for(var e=t.db.objectStoreNames,r=0;r<e.length;++r){var i=e[r],u=t.objectStore(i);c="getAll"in u;for(var a=0;a<u.indexNames.length;++a){var s=u.indexNames[a],f=u.index(s).keyPath,l="string"==typeof f?f:"["+y(f).join("+")+"]";if(n[i]){var h=n[i].idxByName[l];h&&(h.name=s)}}}/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&o.WorkerGlobalScope&&o instanceof o.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(c=!1)}function Fn(n){Y.on("blocked").fire(n),yt.filter((function(n){return n.name===Y.name&&n!==Y&&!n._vcFired})).map((function(t){return t.on("versionchange").fire(n)}))}this.version=function(n){if(U||z)throw new J.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,n);var t=F.filter((function(t){return t._cfg.version===n}))[0];return t||(t=new sn(n),F.push(t),F.sort(xn),un=!1,t)},u(sn.prototype,{stores:function(n){this._cfg.storesSource=this._cfg.storesSource?u(this._cfg.storesSource,n):n;var t={};F.forEach((function(n){u(t,n._cfg.storesSource)}));var e=this._cfg.dbschema={};return this._parseStoresSpec(t,e),C=Y._dbSchema=e,[M,Y,bn.prototype].forEach((function(n){for(var t in n)n[t]instanceof yn&&delete n[t]})),jn([M,Y,bn.prototype,this._cfg.tables],r(e),e),N=r(e),this},upgrade:function(n){return this._cfg.contentUpgrade=n,this},_parseStoresSpec:function(n,t){r(n).forEach((function(e){if(null!==n[e]){var r={},o=function(n){var t=[];return n.split(",").forEach((function(n){var e=(n=n.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(e)?e.match(/^\[(.*)\]$/)[1].split("+"):e;t.push(new St(e,r||null,/\&/.test(n),/\*/.test(n),/\+\+/.test(n),i(r),/\./.test(n)))})),t}(n[e]),u=o.shift();if(u.multi)throw new J.Schema("Primary key cannot be multi-valued");u.keyPath&&j(r,u.keyPath,u.auto?0:u.keyPath),o.forEach((function(n){if(n.auto)throw new J.Schema("Only primary key can be marked as autoIncrement (++)");if(!n.keyPath)throw new J.Schema("Index must have a name and cannot be an empty string");j(r,n.keyPath,n.compound?n.keyPath.map((function(){return""})):"")})),t[e]=new Dt(e,u,o,r)}}))}}),this._allTables=M,this._createTransaction=function(n,t,e,r){return new bn(n,t,e,r)},this._whenReady=function(n){return H||An.letThrough?n():new In((function(n,t){if(!z){if(!E)return void t(new J.DatabaseClosed);Y.open().catch(X)}$.then(n,t)})).then(n)},this.verno=0,this.open=function(){if(z||U)return $.then((function(){return V?ft(V):Y}));B&&(tn._stackHolder=q()),z=!0,V=null,H=!1;var t=e,i=null;return In.race([tn,new In((function(t,e){if(!O)throw new J.MissingAPI("indexedDB API not found. If using IE10+, make sure to run your code on a server URL (not locally). If using old Safari versions, make sure to include indexedDB polyfill.");var o=un?O.open(n):O.open(n,Math.round(10*Y.verno));if(!o)throw new J.MissingAPI("IndexedDB API not available");o.onerror=jt(e),o.onblocked=Wn(Fn),o.onupgradeneeded=Wn((function(t){if(i=o.transaction,un&&!Y._allowEmptyDB){o.onerror=At,i.abort(),o.result.close();var r=O.deleteDatabase(n);r.onsuccess=r.onerror=Wn((function(){e(new J.NoSuchDatabase("Database "+n+" doesnt exist"))}))}else{i.onerror=jt(e),fn((t.oldVersion>Math.pow(2,62)?0:t.oldVersion)/10,i,e)}}),e),o.onsuccess=Wn((function(){if(i=null,U=o.result,yt.push(Y),un)!function(){if(Y.verno=U.version/10,Y._dbSchema=C={},0===(N=y(U.objectStoreNames,0)).length)return;var n=U.transaction(It(N),"readonly");N.forEach((function(t){for(var e=n.objectStore(t),r=e.keyPath,i=r&&"string"==typeof r&&-1!==r.indexOf("."),o=new St(r,r||"",!1,!1,!!e.autoIncrement,r&&"string"!=typeof r,i),u=[],a=0;a<e.indexNames.length;++a){var c=e.index(e.indexNames[a]);i=(r=c.keyPath)&&"string"==typeof r&&-1!==r.indexOf(".");var s=new St(c.name,r,!!c.unique,!!c.multiEntry,!1,r&&"string"!=typeof r,i);u.push(s)}C[t]=new Dt(t,o,u,{})})),jn([M],r(C),C)}();else if(U.objectStoreNames.length>0)try{Bn(C,U.transaction(It(U.objectStoreNames),"readonly"))}catch(n){}U.onversionchange=Wn((function(n){Y._vcFired=!0,Y.on("versionchange").fire(n)})),cn||"__dbnames"===n||ht.dbnames.put({name:n}).catch(X),t()}),e)}))]).then((function(){return L=[],In.resolve(_t.vip(Y.on.ready.fire)).then((function n(){if(L.length>0){var t=L.reduce(an,X);return L=[],In.resolve(_t.vip(t)).then(n)}}))})).finally((function(){L=null})).then((function(){return z=!1,Y})).catch((function(n){try{i&&i.abort()}catch(n){}return z=!1,Y.close(),ft(V=n)})).finally((function(){H=!0,t()}))},this.close=function(){var n=yt.indexOf(Y);if(n>=0&&yt.splice(n,1),U){try{U.close()}catch(n){}U=null}E=!1,V=new J.DatabaseClosed,z&&a(V),$=new In((function(n){e=n})),tn=new In((function(n,t){a=t}))},this.delete=function(){var t=arguments.length>0;return new In((function(e,r){if(t)throw new J.InvalidArgument("Arguments not allowed in db.delete()");function i(){Y.close();var t=O.deleteDatabase(n);t.onsuccess=Wn((function(){cn||ht.dbnames.delete(n).catch(X),e()})),t.onerror=jt(r),t.onblocked=Fn}z?$.then(i):i()}))},this.backendDB=function(){return U},this.isOpen=function(){return null!==U},this.hasBeenClosed=function(){return V&&V instanceof J.DatabaseClosed},this.hasFailed=function(){return null!==V},this.dynamicallyOpened=function(){return un},this.name=n,f(this,{tables:{get:function(){return r(M).map((function(n){return M[n]}))}}}),this.on=lt(this,"populate","blocked","versionchange",{ready:[an,X]}),this.on.ready.subscribe=m(this.on.ready.subscribe,(function(n){return function(t,e){_t.vip((function(){H?(V||In.resolve().then(t),e&&n(t)):L?(L.push(t),e&&n(t)):(n(t),e||n((function n(){Y.on.ready.unsubscribe(t),Y.on.ready.unsubscribe(n)})))}))}})),this.transaction=function(){var n=dn.apply(this,arguments);return this._transaction.apply(this,n)},this._transaction=function(n,t,e){var r=An.trans;r&&r.db===Y&&-1===n.indexOf("!")||(r=null);var i=-1!==n.indexOf("?");n=n.replace("!","").replace("?","");try{var o=t.map((function(n){var t=n instanceof yn?n.name:n;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t}));if("r"==n||"readonly"==n)n="readonly";else{if("rw"!=n&&n!=G)throw new J.InvalidArgument("Invalid transaction mode: "+n);n=G}if(r){if("readonly"===r.mode&&n===G){if(!i)throw new J.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&o.forEach((function(n){if(r&&-1===r.storeNames.indexOf(n)){if(!i)throw new J.SubTransaction("Table "+n+" not included in parent transaction.");r=null}})),i&&r&&!r.active&&(r=null)}}catch(n){return r?r._promise(null,(function(t,e){e(n)})):ft(n)}return r?r._promise(n,u,"lock"):An.trans?ut(An.transless,(function(){return Y._whenReady(u)})):Y._whenReady(u);function u(){return In.resolve().then((function(){var t,i=An.transless||An,u=Y._createTransaction(n,o,C,r),a={trans:u,transless:i};r?u.idbtrans=r.idbtrans:u.create(),e.constructor===pn&&Zn();var c=In.follow((function(){if(t=e.call(u,u))if(t.constructor===vn){var n=nt.bind(null,null);t.then(n,n)}else"function"==typeof t.next&&"function"==typeof t.throw&&(t=Ot(t))}),a);return(t&&"function"==typeof t.then?In.resolve(t).then((function(n){return u.active?n:ft(new J.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):c.then((function(){return t}))).then((function(n){return r&&u._resolve(),u._completion.then((function(){return n}))})).catch((function(n){return u._reject(n),ft(n)}))}))}},this.table=function(n){if(!s(M,n))throw new J.InvalidTable("Table "+n+" does not exist");return M[n]},f(yn.prototype,{_trans:function(n,t,e){var r=this._tx||An.trans;return r&&r.db===Y?r===An.trans?r._promise(n,t,e):Xn((function(){return r._promise(n,t,e)}),{trans:r,transless:An.transless||An}):function n(t,e,r){if(H||An.letThrough){var i=Y._createTransaction(t,e,C);try{i.create()}catch(n){return ft(n)}return i._promise(t,(function(n,t){return Xn((function(){return An.trans=i,r(n,t,i)}))})).then((function(n){return i._completion.then((function(){return n}))}))}if(!z){if(!E)return ft(new J.DatabaseClosed);Y.open().catch(X)}return $.then((function(){return n(t,e,r)}))}(n,[this.name],t)},_idbstore:function(n,t,e){var r=this.name;return this._trans(n,(function(n,e,i){if(-1===i.storeNames.indexOf(r))throw new J.NotFound("Table"+r+" not part of transaction");return t(n,e,i.idbtrans.objectStore(r),i)}),e)},get:function(n,t){if(n&&n.constructor===Object)return this.where(n).first(t);var e=this;return this._idbstore("readonly",(function(t,r,i){var o=i.get(n);o.onerror=jt(r),o.onsuccess=Wn((function(){t(e.hook.reading.fire(o.result))}),r)})).then(t)},where:function(n){if("string"==typeof n)return new wn(this,n);if(i(n))return new wn(this,"["+n.join("+")+"]");var t=r(n);if(1===t.length)return this.where(t[0]).equals(n[t[0]]);var e=this.schema.indexes.concat(this.schema.primKey).filter((function(n){return n.compound&&t.every((function(t){return n.keyPath.indexOf(t)>=0}))&&n.keyPath.every((function(n){return t.indexOf(n)>=0}))}))[0];if(e&&vt!==dt)return this.where(e.name).equals(e.keyPath.map((function(t){return n[t]})));e||console.warn("The query "+JSON.stringify(n)+" on "+this.name+" would benefit of a compound index ["+t.join("+")+"]");var o=this.schema.idxByName,u=t.reduce((function(t,e){return[t[0]||o[e],t[0]||!o[e]?Tn(t[1],(function(t){return""+x(t,e)==""+n[e]})):t[1]]}),[null,null]),a=u[0];return a?this.where(a.name).equals(n[a.keyPath]).filter(u[1]):e?this.filter(u[1]):this.where(t).equals("")},count:function(n){return this.toCollection().count(n)},offset:function(n){return this.toCollection().offset(n)},limit:function(n){return this.toCollection().limit(n)},reverse:function(){return this.toCollection().reverse()},filter:function(n){return this.toCollection().and(n)},each:function(n){return this.toCollection().each(n)},toArray:function(n){return this.toCollection().toArray(n)},orderBy:function(n){return new _n(new wn(this,i(n)?"["+n.join("+")+"]":n))},toCollection:function(){return new _n(new wn(this))},mapToClass:function(n,t){this.schema.mappedClass=n;var e=Object.create(n.prototype);t&&kt(e,t),this.schema.instanceTemplate=e;var r=function(t){if(!t)return t;var e=Object.create(n.prototype);for(var r in t)if(s(t,r))try{e[r]=t[r]}catch(n){}return e};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),n},defineClass:function(n){return this.mapToClass(_t.defineClass(n),n)},bulkDelete:function(n){return this.hook.deleting.fire===X?this._idbstore(G,(function(t,e,r,i){t(gn(r,i,n,!1,X))})):this.where(":id").anyOf(n).delete().then((function(){}))},bulkPut:function(n,t){var e=this;return this._idbstore(G,(function(r,i,o){if(!o.keyPath&&!e.schema.primKey.auto&&!t)throw new J.InvalidArgument("bulkPut() with non-inbound keys requires keys array in second argument");if(o.keyPath&&t)throw new J.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(t&&t.length!==n.length)throw new J.InvalidArgument("Arguments objects and keys must have the same length");if(0===n.length)return r();var u,a,c=function(n){0===s.length?r(n):i(new Q(e.name+".bulkPut(): "+s.length+" of "+f+" operations failed",s))},s=[],f=n.length,l=e;if(e.hook.creating.fire===X&&e.hook.updating.fire===X){a=mn(s);for(var h=0,d=n.length;h<d;++h)(u=t?o.put(n[h],t[h]):o.put(n[h])).onerror=a;u.onerror=mn(s,c),u.onsuccess=Pt(c)}else{var v=t||o.keyPath&&n.map((function(n){return x(n,o.keyPath)})),p=v&&w(v,(function(t,e){return null!=t&&[t,n[e]]}));(v?l.where(":id").anyOf(v.filter((function(n){return null!=n}))).modify((function(){this.value=p[this.primKey],p[this.primKey]=null})).catch(W,(function(n){s=n.failures})).then((function(){for(var e=[],r=t&&[],i=v.length-1;i>=0;--i){var o=v[i];(null==o||p[o])&&(e.push(n[i]),t&&r.push(o),null!=o&&(p[o]=null))}return e.reverse(),t&&r.reverse(),l.bulkAdd(e,r)})).then((function(n){var t=v[v.length-1];return null!=t?t:n})):l.bulkAdd(n)).then(c).catch(Q,(function(n){s=s.concat(n.failures),c()})).catch(i)}}),"locked")},bulkAdd:function(n,t){var e=this,r=this.hook.creating.fire;return this._idbstore(G,(function(i,o,u,a){if(!u.keyPath&&!e.schema.primKey.auto&&!t)throw new J.InvalidArgument("bulkAdd() with non-inbound keys requires keys array in second argument");if(u.keyPath&&t)throw new J.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(t&&t.length!==n.length)throw new J.InvalidArgument("Arguments objects and keys must have the same length");if(0===n.length)return i();function c(n){0===h.length?i(n):o(new Q(e.name+".bulkAdd(): "+h.length+" of "+d+" operations failed",h))}var s,f,l,h=[],d=n.length;if(r!==X){var v,p=u.keyPath;f=mn(h,null,!0),l=xt(null),k((function(){for(var e=0,i=n.length;e<i;++e){v={onerror:null,onsuccess:null};var o=t&&t[e],c=n[e],h=t?o:p?x(c,p):void 0,d=r.call(v,h,c,a);null==h&&null!=d&&(p?j(c=S(c),p,d):o=d),(s=null!=o?u.add(c,o):u.add(c))._hookCtx=v,e<i-1&&(s.onerror=f,v.onsuccess&&(s.onsuccess=l))}}),(function(n){throw v.onerror&&v.onerror(n),n})),s.onerror=mn(h,c,!0),s.onsuccess=xt(c)}else{f=mn(h);for(var y=0,m=n.length;y<m;++y)(s=t?u.add(n[y],t[y]):u.add(n[y])).onerror=f;s.onerror=mn(h,c),s.onsuccess=Pt(c)}}))},add:function(n,t){var e=this.hook.creating.fire;return this._idbstore(G,(function(r,i,o,u){var a={onsuccess:null,onerror:null};if(e!==X){var c=null!=t?t:o.keyPath?x(n,o.keyPath):void 0,s=e.call(a,c,n,u);null==c&&null!=s&&(o.keyPath?j(n,o.keyPath,s):t=s)}try{var f=null!=t?o.add(n,t):o.add(n);f._hookCtx=a,f.onerror=Et(i),f.onsuccess=xt((function(t){var e=o.keyPath;e&&j(n,e,t),r(t)}))}catch(n){throw a.onerror&&a.onerror(n),n}}))},put:function(n,t){var e=this,r=this.hook.creating.fire,i=this.hook.updating.fire;if(r!==X||i!==X){var o=this.schema.primKey.keyPath,u=void 0!==t?t:o&&x(n,o);return null==u?this.add(n):(n=S(n),this._trans(G,(function(){return e.where(":id").equals(u).modify((function(){this.value=n})).then((function(r){return 0===r?e.add(n,t):u}))}),"locked"))}return this._idbstore(G,(function(e,r,i){var o=void 0!==t?i.put(n,t):i.put(n);o.onerror=jt(r),o.onsuccess=Wn((function(t){var r=i.keyPath;r&&j(n,r,t.target.result),e(o.result)}))}))},delete:function(n){return this.hook.deleting.subscribers.length?this.where(":id").equals(n).delete():this._idbstore(G,(function(t,e,r){var i=r.delete(n);i.onerror=jt(e),i.onsuccess=Wn((function(){t(i.result)}))}))},clear:function(){return this.hook.deleting.subscribers.length?this.toCollection().delete():this._idbstore(G,(function(n,t,e){var r=e.clear();r.onerror=jt(t),r.onsuccess=Wn((function(){n(r.result)}))}))},update:function(n,t){if("object"!=typeof t||i(t))throw new J.InvalidArgument("Modifications must be an object.");if("object"!=typeof n||i(n))return this.where(":id").equals(n).modify(t);r(t).forEach((function(e){j(n,e,t[e])}));var e=x(n,this.schema.primKey.keyPath);return void 0===e?ft(new J.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(e).modify(t)}}),f(bn.prototype,{_lock:function(){return g(!An.global),++this._reculock,1!==this._reculock||An.global||(An.lockOwnerFor=this),this},_unlock:function(){if(g(!An.global),0==--this._reculock)for(An.global||(An.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var n=this._blockedFuncs.shift();try{ut(n[1],n[0])}catch(n){}}return this},_locked:function(){return this._reculock&&An.lockOwnerFor!==this},create:function(n){var t=this;if(!this.mode)return this;if(g(!this.idbtrans),!n&&!U)switch(V&&V.name){case"DatabaseClosedError":throw new J.DatabaseClosed(V);case"MissingAPIError":throw new J.MissingAPI(V.message,V);default:throw new J.OpenFailed(V)}if(!this.active)throw new J.TransactionInactive;return g(null===this._completion._state),(n=this.idbtrans=n||U.transaction(It(this.storeNames),this.mode)).onerror=Wn((function(e){At(e),t._reject(n.error)})),n.onabort=Wn((function(e){At(e),t.active&&t._reject(new J.Abort(n.error)),t.active=!1,t.on("abort").fire(e)})),n.oncomplete=Wn((function(){t.active=!1,t._resolve()})),this},_promise:function(n,t,e){var r=this;if(n===G&&this.mode!==G)return ft(new J.ReadOnly("Transaction is readonly"));if(!this.active)return ft(new J.TransactionInactive);if(this._locked())return new In((function(i,o){r._blockedFuncs.push([function(){r._promise(n,t,e).then(i,o)},An])}));if(e)return Xn((function(){var n=new In((function(n,e){r._lock();var i=t(n,e,r);i&&i.then&&i.then(n,e)}));return n.finally((function(){return r._unlock()})),n._lib=!0,n}));var i=new In((function(n,e){var i=t(n,e,r);i&&i.then&&i.then(n,e)}));return i._lib=!0,i},_root:function(){return this.parent?this.parent._root():this},waitFor:function(n){var t=this._root();if(n=In.resolve(n),t._waitingFor)t._waitingFor=t._waitingFor.then((function(){return n}));else{t._waitingFor=n,t._waitingQueue=[];var e=t.idbtrans.objectStore(t.storeNames[0]);!function n(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(e.get(-1/0).onsuccess=n)}()}var r=t._waitingFor;return new In((function(e,i){n.then((function(n){return t._waitingQueue.push(Wn(e.bind(null,n)))}),(function(n){return t._waitingQueue.push(Wn(i.bind(null,n)))})).finally((function(){t._waitingFor===r&&(t._waitingFor=null)}))}))},abort:function(){this.active&&this._reject(new J.Abort),this.active=!1},tables:{get:(l="Transaction.tables",d=function(){return M},function(){return console.warn(l+" is deprecated. See https://github.com/dfahlander/Dexie.js/wiki/Deprecations. "+R(q(),1)),d.apply(this,arguments)})},table:function(n){return new yn(n,Y.table(n).schema,this)}}),f(wn.prototype,(function(){function n(n,t,e){var r=n instanceof wn?new _n(n):n;return r._ctx.error=e?new e(t):new TypeError(t),r}function t(n){return new _n(n,(function(){return I.only("")})).limit(0)}function e(n,t,e,r,i,o){for(var u=Math.min(n.length,r.length),a=-1,c=0;c<u;++c){var s=t[c];if(s!==r[c])return i(n[c],e[c])<0?n.substr(0,c)+e[c]+e.substr(c+1):i(n[c],r[c])<0?n.substr(0,c)+r[c]+e.substr(c+1):a>=0?n.substr(0,a)+t[a]+e.substr(a+1):null;i(n[c],s)<0&&(a=c)}return u<r.length&&"next"===o?n+e.substr(n.length):u<n.length&&"prev"===o?n.substr(0,e.length):a<0?null:n.substr(0,a)+r[a]+e.substr(a+1)}function r(t,r,i,o){var u,a,c,s,f,l,h,d=i.length;if(!i.every((function(n){return"string"==typeof n})))return n(t,"String expected.");function v(n){u=function(n){return"next"===n?function(n){return n.toUpperCase()}:function(n){return n.toLowerCase()}}(n),a=function(n){return"next"===n?function(n){return n.toLowerCase()}:function(n){return n.toUpperCase()}}(n),c="next"===n?Cn:Kn;var t=i.map((function(n){return{lower:a(n),upper:u(n)}})).sort((function(n,t){return c(n.lower,t.lower)}));s=t.map((function(n){return n.upper})),f=t.map((function(n){return n.lower})),l=n,h="next"===n?"":o}v("next");var p=new _n(t,(function(){return I.bound(s[0],f[d-1]+o)}));p._ondirectionchange=function(n){v(n)};var y=0;return p._addAlgorithm((function(n,t,i){var o=n.key;if("string"!=typeof o)return!1;var u=a(o);if(r(u,f,y))return!0;for(var v=null,p=y;p<d;++p){var m=e(o,u,s[p],f[p],c,l);null===m&&null===v?y=p+1:(null===v||c(v,m)>0)&&(v=m)}return t(null!==v?function(){n.continue(v+h)}:i),!1})),p}return{between:function(e,r,i,o){i=!1!==i,o=!0===o;try{return En(e,r)>0||0===En(e,r)&&(i||o)&&(!i||!o)?t(this):new _n(this,(function(){return I.bound(e,r,!i,!o)}))}catch(t){return n(this,pt)}},equals:function(n){return new _n(this,(function(){return I.only(n)}))},above:function(n){return new _n(this,(function(){return I.lowerBound(n,!0)}))},aboveOrEqual:function(n){return new _n(this,(function(){return I.lowerBound(n)}))},below:function(n){return new _n(this,(function(){return I.upperBound(n,!0)}))},belowOrEqual:function(n){return new _n(this,(function(){return I.upperBound(n)}))},startsWith:function(t){return"string"!=typeof t?n(this,"String expected."):this.between(t,t+dt,!0,!0)},startsWithIgnoreCase:function(n){return""===n?this.startsWith(n):r(this,(function(n,t){return 0===n.indexOf(t[0])}),[n],dt)},equalsIgnoreCase:function(n){return r(this,(function(n,t){return n===t[0]}),[n],"")},anyOfIgnoreCase:function(){var n=T.apply(K,arguments);return 0===n.length?t(this):r(this,(function(n,t){return-1!==t.indexOf(n)}),n,"")},startsWithAnyOfIgnoreCase:function(){var n=T.apply(K,arguments);return 0===n.length?t(this):r(this,(function(n,t){return t.some((function(t){return 0===n.indexOf(t)}))}),n,dt)},anyOf:function(){var e=T.apply(K,arguments),r=Sn;try{e.sort(r)}catch(t){return n(this,pt)}if(0===e.length)return t(this);var i=new _n(this,(function(){return I.bound(e[0],e[e.length-1])}));i._ondirectionchange=function(n){r="next"===n?Sn:Dn,e.sort(r)};var o=0;return i._addAlgorithm((function(n,t,i){for(var u=n.key;r(u,e[o])>0;)if(++o===e.length)return t(i),!1;return 0===r(u,e[o])||(t((function(){n.continue(e[o])})),!1)})),i},notEqual:function(n){return this.inAnyRange([[-1/0,n],[n,vt]],{includeLowers:!1,includeUppers:!1})},noneOf:function(){var t=T.apply(K,arguments);if(0===t.length)return new _n(this);try{t.sort(Sn)}catch(t){return n(this,pt)}var e=t.reduce((function(n,t){return n?n.concat([[n[n.length-1][1],t]]):[[-1/0,t]]}),null);return e.push([t[t.length-1],vt]),this.inAnyRange(e,{includeLowers:!1,includeUppers:!1})},inAnyRange:function(e,r){if(0===e.length)return t(this);if(!e.every((function(n){return void 0!==n[0]&&void 0!==n[1]&&Sn(n[0],n[1])<=0})))return n(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",J.InvalidArgument);var i=!r||!1!==r.includeLowers,o=r&&!0===r.includeUppers;var u,a=Sn;function c(n,t){return a(n[0],t[0])}try{(u=e.reduce((function(n,t){for(var e=0,r=n.length;e<r;++e){var i=n[e];if(En(t[0],i[1])<0&&En(t[1],i[0])>0){i[0]=(o=i[0],u=t[0],En(o,u)<0?o:u),i[1]=On(i[1],t[1]);break}}var o,u;return e===r&&n.push(t),n}),[])).sort(c)}catch(t){return n(this,pt)}var s=0,f=o?function(n){return Sn(n,u[s][1])>0}:function(n){return Sn(n,u[s][1])>=0},l=i?function(n){return Dn(n,u[s][0])>0}:function(n){return Dn(n,u[s][0])>=0};var h=f,d=new _n(this,(function(){return I.bound(u[0][0],u[u.length-1][1],!i,!o)}));return d._ondirectionchange=function(n){"next"===n?(h=f,a=Sn):(h=l,a=Dn),u.sort(c)},d._addAlgorithm((function(n,t,e){for(var r=n.key;h(r);)if(++s===u.length)return t(e),!1;return!!function(n){return!f(n)&&!l(n)}(r)||(0===En(r,u[s][1])||0===En(r,u[s][0])||t((function(){a===Sn?n.continue(u[s][0]):n.continue(u[s][1])})),!1)})),d},startsWithAnyOf:function(){var e=T.apply(K,arguments);return e.every((function(n){return"string"==typeof n}))?0===e.length?t(this):this.inAnyRange(e.map((function(n){return[n,n+dt]}))):n(this,"startsWithAnyOf() only works with strings")}}})),f(_n.prototype,(function(){function n(n,t){n.filter=Tn(n.filter,t)}function t(n,t,e){var r=n.replayFilter;n.replayFilter=r?function(){return Tn(r(),t())}:t,n.justLimit=e&&!r}function e(n,t){if(n.isPrimKey)return t;var e=n.table.schema.idxByName[n.index];if(!e)throw new J.Schema("KeyPath "+n.index+" on object store "+t.name+" is not indexed");return t.index(e.name)}function i(n,t){var r=e(n,t);return n.keysOnly&&"openKeyCursor"in r?r.openKeyCursor(n.range||null,n.dir+n.unique):r.openCursor(n.range||null,n.dir+n.unique)}function o(n,t,e,r,o){var u=n.replayFilter?Tn(n.filter,n.replayFilter()):n.filter;n.or?function(){var a={},c=0;function f(){2==++c&&e()}function l(n,e,i){if(!u||u(e,i,f,r)){var o=e.primaryKey,c=""+o;"[object ArrayBuffer]"===c&&(c=""+new Uint8Array(o)),s(a,c)||(a[c]=!0,t(n,e,i))}}n.or._iterate(l,f,r,o),Pn(i(n,o),n.algorithm,l,f,r,!n.keysOnly&&n.valueMapper)}():Pn(i(n,o),Tn(n.algorithm,u),t,e,r,!n.keysOnly&&n.valueMapper)}return{_read:function(n,t){var e=this._ctx;return e.error?e.table._trans(null,ft.bind(null,e.error)):e.table._idbstore("readonly",n).then(t)},_write:function(n){var t=this._ctx;return t.error?t.table._trans(null,ft.bind(null,t.error)):t.table._idbstore(G,n,"locked")},_addAlgorithm:function(n){var t=this._ctx;t.algorithm=Tn(t.algorithm,n)},_iterate:function(n,t,e,r){return o(this._ctx,n,t,e,r)},clone:function(n){var t=Object.create(this.constructor.prototype),e=Object.create(this._ctx);return n&&u(e,n),t._ctx=e,t},raw:function(){return this._ctx.valueMapper=null,this},each:function(n){var t=this._ctx;return this._read((function(e,r,i){o(t,n,e,r,i)}))},count:function(n){var t=this._ctx;if(kn(t,!0))return this._read((function(n,r,i){var o=e(t,i),u=t.range?o.count(t.range):o.count();u.onerror=jt(r),u.onsuccess=function(e){n(Math.min(e.target.result,t.limit))}}),n);var r=0;return this._read((function(n,e,i){o(t,(function(){return++r,!1}),(function(){n(r)}),e,i)}),n)},sortBy:function(n,t){var e=n.split(".").reverse(),r=e[0],i=e.length-1;function o(n,t){return t?o(n[e[t]],t-1):n[r]}var u="next"===this._ctx.dir?1:-1;function a(n,t){var e=o(n,i),r=o(t,i);return e<r?-u:e>r?u:0}return this.toArray((function(n){return n.sort(a)})).then(t)},toArray:function(n){var t=this._ctx;return this._read((function(n,r,i){if(c&&"next"===t.dir&&kn(t,!0)&&t.limit>0){var u=t.table.hook.reading.fire,a=e(t,i),s=t.limit<1/0?a.getAll(t.range,t.limit):a.getAll(t.range);s.onerror=jt(r),s.onsuccess=Pt(u===Z?n:function(t){try{n(t.map(u))}catch(n){r(n)}})}else{var f=[];o(t,(function(n){f.push(n)}),(function(){n(f)}),r,i)}}),n)},offset:function(n){var e=this._ctx;return n<=0||(e.offset+=n,kn(e)?t(e,(function(){var t=n;return function(n,e){return 0===t||(1===t?(--t,!1):(e((function(){n.advance(t),t=0})),!1))}})):t(e,(function(){var t=n;return function(){return--t<0}}))),this},limit:function(n){return this._ctx.limit=Math.min(this._ctx.limit,n),t(this._ctx,(function(){var t=n;return function(n,e,r){return--t<=0&&e(r),t>=0}}),!0),this},until:function(t,e){return n(this._ctx,(function(n,r,i){return!t(n.value)||(r(i),e)})),this},first:function(n){return this.limit(1).toArray((function(n){return n[0]})).then(n)},last:function(n){return this.reverse().first(n)},filter:function(t){return n(this._ctx,(function(n){return t(n.value)})),function(n,t){n.isMatch=Tn(n.isMatch,t)}(this._ctx,t),this},and:function(n){return this.filter(n)},or:function(n){return new wn(this._ctx.table,n,this)},reverse:function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},desc:function(){return this.reverse()},eachKey:function(n){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,e){n(e.key,e)}))},eachUniqueKey:function(n){return this._ctx.unique="unique",this.eachKey(n)},eachPrimaryKey:function(n){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,e){n(e.primaryKey,e)}))},keys:function(n){var t=this._ctx;t.keysOnly=!t.isMatch;var e=[];return this.each((function(n,t){e.push(t.key)})).then((function(){return e})).then(n)},primaryKeys:function(n){var t=this._ctx;if(c&&"next"===t.dir&&kn(t,!0)&&t.limit>0)return this._read((function(n,r,i){var o=e(t,i),u=t.limit<1/0?o.getAllKeys(t.range,t.limit):o.getAllKeys(t.range);u.onerror=jt(r),u.onsuccess=Pt(n)})).then(n);t.keysOnly=!t.isMatch;var r=[];return this.each((function(n,t){r.push(t.primaryKey)})).then((function(){return r})).then(n)},uniqueKeys:function(n){return this._ctx.unique="unique",this.keys(n)},firstKey:function(n){return this.limit(1).keys((function(n){return n[0]})).then(n)},lastKey:function(n){return this.reverse().firstKey(n)},distinct:function(){var t=this._ctx,e=t.index&&t.table.schema.idxByName[t.index];if(!e||!e.multi)return this;var r={};return n(this._ctx,(function(n){var t=n.primaryKey.toString(),e=s(r,t);return r[t]=!0,!e})),this},modify:function(n){var t=this,e=this._ctx.table.hook,i=e.updating.fire,o=e.deleting.fire;return this._write((function(e,a,c,f){var l;if("function"==typeof n)l=i===X&&o===X?n:function(t){var e=S(t);if(!1===n.call(this,t,this))return!1;if(s(this,"value")){var u=D(e,this.value),a=i.call(this,u,this.primKey,e,f);a&&(t=this.value,r(a).forEach((function(n){j(t,n,a[n])})))}else o.call(this,this.primKey,t,f)};else if(i===X){var h=r(n),d=h.length;l=function(t){for(var e=!1,r=0;r<d;++r){var i=h[r],o=n[i];x(t,i)!==o&&(j(t,i,o),e=!0)}return e}}else{var v=n;n=P(v),l=function(t){var e=!1,o=i.call(this,n,this.primKey,S(t),f);return o&&u(n,o),r(n).forEach((function(r){var i=n[r];x(t,r)!==i&&(j(t,r,i),e=!0)})),o&&(n=P(v)),e}}var p=0,y=0,m=!1,g=[],b=[],w=null;function _(n){return n&&(g.push(n),b.push(w)),a(new W("Error modifying one or more objects",g,y,b))}function E(){m&&y+g.length===p&&(g.length>0?_():e(y))}t.clone().raw()._iterate((function(n,t){w=t.primaryKey;var e={primKey:t.primaryKey,value:n,onsuccess:null,onerror:null};function r(n){return g.push(n),b.push(e.primKey),E(),!0}if(!1!==l.call(e,n,e)){var i=!s(e,"value");++p,k((function(){var n=i?t.delete():t.update(e.value);n._hookCtx=e,n.onerror=Et(r),n.onsuccess=xt((function(){++y,E()}))}),r)}else e.onsuccess&&e.onsuccess(e.value)}),(function(){m=!0,E()}),_,c)}))},delete:function(){var n=this,t=this._ctx,e=t.range,r=t.table.hook.deleting.fire,i=r!==X;if(!i&&kn(t)&&(t.isPrimKey&&!bt||!e))return this._write((function(n,t,r){var i=jt(t),o=e?r.count(e):r.count();o.onerror=i,o.onsuccess=function(){var u=o.result;k((function(){var t=e?r.delete(e):r.clear();t.onerror=i,t.onsuccess=function(){return n(u)}}),(function(n){return t(n)}))}}));var o=i?2e3:1e4;return this._write((function(e,u,a,c){var s=0,f=n.clone({keysOnly:!t.isMatch&&!i}).distinct().limit(o).raw(),l=[],h=function(){return f.each(i?function(n,t){l.push([t.primaryKey,t.value])}:function(n,t){l.push(t.primaryKey)}).then((function(){return i?l.sort((function(n,t){return Sn(n[0],t[0])})):l.sort(Sn),gn(a,c,l,i,r)})).then((function(){var n=l.length;return s+=n,l=[],n<o?s:h()}))};e(h())}))}}})),u(this,{Collection:_n,Table:yn,Transaction:bn,Version:sn,WhereClause:wn}),Y.on("versionchange",(function(n){n.newVersion>0?console.warn("Another connection wants to upgrade database '"+Y.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+Y.name+"'. Closing db now to resume the delete request."),Y.close()})),Y.on("blocked",(function(n){!n.newVersion||n.newVersion<n.oldVersion?console.warn("Dexie.delete('"+Y.name+"') was blocked"):console.warn("Upgrade '"+Y.name+"' blocked by other connection holding version "+n.oldVersion/10)})),b.forEach((function(n){n(Y)}))}function kt(n,t){return r(t).forEach((function(e){var r=function n(t){if("function"==typeof t)return new t;if(i(t))return[n(t[0])];if(t&&"object"==typeof t){var e={};return kt(e,t),e}return t}(t[e]);n[e]=r})),n}function xt(n){return Wn((function(t){var e=t.target,r=e._hookCtx,i=r.value||e.result,o=r&&r.onsuccess;o&&o(i),n&&n(i)}),n)}function jt(n){return Wn((function(t){return At(t),n(t.target.error),!1}))}function Pt(n){return Wn((function(t){n(t.target.result)}))}function Et(n){return Wn((function(t){var e=t.target,r=e.error,i=e._hookCtx,o=i&&i.onerror;return o&&o(r),At(t),n(r),!1}))}function At(n){n.stopPropagation&&n.stopPropagation(),n.preventDefault&&n.preventDefault()}function Ot(n){var t=function(t){return n.next(t)},e=o(t),r=o((function(t){return n.throw(t)}));function o(n){return function(t){var o=n(t),u=o.value;return o.done?u:u&&"function"==typeof u.then?u.then(e,r):i(u)?In.all(u).then(e,r):e(u)}}return o(t)()}function St(n,t,e,r,i,o,u){this.name=n,this.keyPath=t,this.unique=e,this.multi=r,this.auto=i,this.compound=o,this.dotted=u;var a="string"==typeof t?t:t&&"["+[].join.call(t,"+")+"]";this.src=(e?"&":"")+(r?"*":"")+(i?"++":"")+a}function Dt(n,t,e,r){this.name=n,this.primKey=t||new St,this.indexes=e||[new St],this.instanceTemplate=r,this.mappedClass=null,this.idxByName=w(e,(function(n){return[n.name,n]}))}function It(n){return 1===n.length?n[0]:n}function Ct(n){var t=n&&(n.getDatabaseNames||n.webkitGetDatabaseNames);return t&&t.bind(n)}F(B,wt),f(_t,$),f(_t,{delete:function(n){var t=new _t(n),e=t.delete();return e.onblocked=function(n){return t.on("blocked",n),this},e},exists:function(n){return new _t(n).open().then((function(n){return n.close(),!0})).catch(_t.NoSuchDatabaseError,(function(){return!1}))},getDatabaseNames:function(n){var t=Ct(_t.dependencies.indexedDB);return t?new In((function(n,e){var r=t();r.onsuccess=function(t){n(y(t.target.result,0))},r.onerror=jt(e)})).then(n):ht.dbnames.toCollection().primaryKeys(n)},defineClass:function(){return function(n){n&&u(this,n)}},applyStructure:kt,ignoreTransaction:function(n){return An.trans?ut(An.transless,n):n()},vip:function(n){return Xn((function(){return An.letThrough=!0,n()}))},async:function(n){return function(){try{var t=Ot(n.apply(this,arguments));return t&&"function"==typeof t.then?t:In.resolve(t)}catch(n){return ft(n)}}},spawn:function(n,t,e){try{var r=Ot(n.apply(e,t||[]));return r&&"function"==typeof r.then?r:In.resolve(r)}catch(n){return ft(n)}},currentTransaction:{get:function(){return An.trans||null}},waitFor:function(n,t){var e=In.resolve("function"==typeof n?_t.ignoreTransaction(n):n).timeout(t||6e4);return An.trans?An.trans.waitFor(e):e},Promise:In,debug:{get:function(){return B},set:function(n){F(n,"dexie"===n?function(){return!0}:wt)}},derive:d,extend:u,props:f,override:m,Events:lt,getByKeyPath:x,setByKeyPath:j,delByKeyPath:function(n,t){"string"==typeof t?j(n,t,void 0):"length"in t&&[].map.call(t,(function(t){j(n,t,void 0)}))},shallowClone:P,deepClone:S,getObjectDiff:D,asap:b,maxKey:vt,minKey:-1/0,addons:[],connections:yt,MultiModifyError:J.Modify,errnames:H,IndexSpec:St,TableSchema:Dt,dependencies:function(){try{return{indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch(n){return{indexedDB:null,IDBKeyRange:null}}}(),semVer:"{version}",version:"{version}".split(".").map((function(n){return parseInt(n)})).reduce((function(n,t,e){return n+t/Math.pow(10,2*e)})),default:_t,Dexie:_t}),In.rejectionMapper=function(n,t){if(!n||n instanceof L||n instanceof TypeError||n instanceof SyntaxError||!n.name||!Y[n.name])return n;var e=new Y[n.name](t||n.message,n);return"stack"in n&&h(e,"stack",{get:function(){return this.inner.stack}}),e},(ht=new _t("__dbnames")).version(1).stores({dbnames:"name"}),function(){try{void 0!==typeof localStorage&&void 0!==o.document&&(JSON.parse(localStorage.getItem("Dexie.DatabaseNames")||"[]").forEach((function(n){return ht.dbnames.put({name:n}).catch(X)})),localStorage.removeItem("Dexie.DatabaseNames"))}catch(n){}}(),t.a=_t}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/all-packed.css b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/all-packed.css deleted file mode 100644 index 2eed4559..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/all-packed.css +++ /dev/null @@ -1 +0,0 @@ -html{_background:url(null) fixed;}.forbid-select{-moz-user-select:none;-khtml-user-select:none;user-select:none;}.OUTFOX_JTR_BAR{width:100%;margin:0;padding:0;border:none;position:fixed;z-index:2147483646;top:0;left:0;height:50px;_position:absolute;_top:expression((body.scrollTop+documentElement.scrollTop)+'px');}#OUTFOX_JTR_BAR_CLOSE_UPDATE_TIP{color:#429d3b;height:38px;width:200px;background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/ydd_tip.png") left top no-repeat;overflow:hidden;text-align:left;margin:0 auto;display:none;position:relative;top:-31px;z-index:1;}#OUTFOX_JTR_BAR_CLOSE_UPDATE_TIP div{margin-left:5px;color:#429d3b;height:38px;background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/ydd_tip.png") right top no-repeat;padding:3px 8px 3px 3px;}#OUTFOX_JTR_BAR_CLOSE_UPDATE_TIP .update-date{margin-left:20px;}#OUTFOX_JTR_BAR_UPDATE_SHADE{background-color:#818181;height:50px;left:0;position:absolute;top:0;width:100%;opacity:.75;filter:alpha(opacity = 75);display:none;}#OUTFOX_JTR_BAR_CLOSE_UPDATE_TIP_CONTENT_CLOSE{width:10px;height:10px;position:absolute;right:5px;top:5px;cursor:pointer;}.OUTFOX_JTR_BAR_CLOSE{display:block;background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/bar-sp.png") -35px -69px no-repeat;width:17px;height:13px;position:absolute;top:1px;right:1px;cursor:pointer;}.OUTFOX_JTR_BAR_CLOSE:hover{background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/bar-sp.png") -56px -69px no-repeat;}#OUTFOX_JTR_BAR_BODY{margin:0;padding:0;background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/bar-sp-repeat-x.png") 0 -92px repeat-x;font-size:12px;height:50px;overflow:hidden;color:#6F6F6F;text-align:center;border:0;}#OUTFOX_JTR_BAR_BODY #wrapper{*width:960px;padding:0 10px;max-width:960px;margin:0 auto;text-align:left;}#OUTFOX_JTR_BAR_BODY .OUTFOX_BAR_TOTAL_NUM{font-family:Arial;font-size:18px;margin:0 5px;}#OUTFOX_JTR_BAR_BODY #headerLogo{background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/logo.png") no-repeat;text-indent:-999em;display:block;width:141px;height:41px;float:left;margin-top:7px;font-size:0;_background-image:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled = true,sizingMethod = image,src = "http://shared.ydstatic.com/jtr/v1/images/header_logo.png");_margin-top:17px;}#OUTFOX_JTR_BAR_BODY #sliderLabel{float:left;margin:22px 0 0 20px;}#OUTFOX_JTR_BAR_BODY #sliderWrapper{float:left;margin-top:6px;position:relative;left:15px;width:269px;}#OUTFOX_JTR_BAR_BODY #levelLabel{position:relative;height:20px;}#OUTFOX_JTR_BAR_BODY #level-0{right:10px;}#OUTFOX_JTR_BAR_BODY #level-1{left:149px;}#OUTFOX_JTR_BAR_BODY #level-2{left:83px;}#OUTFOX_JTR_BAR_BODY #level-3{left:17px;}#OUTFOX_JTR_BAR_BODY #levelLabel label{position:absolute;cursor:pointer;color:#4E86CC;}#OUTFOX_JTR_BAR_BODY.disable #levelLabel label{color:#ccc;cursor:default;}#OUTFOX_JTR_BAR_BODY #levelLabel .active{color:#707070;cursor:default;font-weight:bold;}#OUTFOX_JTR_BAR_BODY #status{float:left;margin:20px 10px 0 20px;_margin-top:22px;}#OUTFOX_JTR_BAR_BODY .statistic #status{margin-top:16px;}#OUTFOX_JTR_BAR_BODY #switchWrapper{float:right;margin-top:16px;}#OUTFOX_JTR_BAR_BODY #feedback{margin:18px 0 0 15px;float:right;text-align:right;}#OUTFOX_JTR_BAR_BODY #feedback a{color:#4E86CC;text-decoration:none;}#OUTFOX_JTR_BAR_BODY #feedback #fb{color:#FF8D3D;}#OUTFOX_JTR_BAR_BODY #feedback a:hover{text-decoration:underline;}#OUTFOX_JTR_BAR_BODY a:link{color:#4E86CC;text-decoration:none;}#OUTFOX_JTR_BAR_BODY #switch{color:#4D86CC;background-image:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/switch_button.png");display:block;width:70px;height:23px;cursor:pointer;line-height:23px;text-align:center;text-decoration:none;}#OUTFOX_JTR_BAR_BODY #switch:hover{background-image:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/switch_button_hover.png");}.OUTFOX_JTR_TRANSTIP_WRAPPER{z-index:2147483640;max-width:300px;*width:300px;}.OUTFOX_JTR_TRANSTIP_WRAPPER p{padding:10px;margin:0;}.OUTFOX_JTR_TRANSTIP_ADVISE_TOGGLE{display:block;cursor:pointer;}.OUTFOX_JTR_TRANSTIP_ADVISE_THANK_TIP .OUTFOX_JTR_TRANSTIP_ADVISE_TOGGLE{display:none;}.OUTFOX_JTR_TRANSTIP_ADVISE_THANK{display:none;}.OUTFOX_JTR_TRANSTIP_ADVISE_THANK_TIP .OUTFOX_JTR_TRANSTIP_ADVISE_THANK{display:inline;}.expand .OUTFOX_JTR_TRANSTIP_ADVISE_TEXT{width:250px;height:50px;margin:10px 0 0;resize:none;}.OUTFOX_JTR_NANCI_BAR{position:absolute;text-decoration:none;overflow:hidden;background:#fff;border:1px solid #AFCEF5;padding-left:3px;z-index:2147483641;-webkit-box-shadow:2px 2px 2px #ccc;-moz-box-shadow:2px 2px 2px #ccc;box-shadow:2px 2px 2px #ccc;}.OUTFOX_JTR_NANCI_BAR a{cursor:pointer;text-decoration:none;text-indent:-999em;width:15px;height:15px;display:inline-block;}.OUTFOX_JTR_NANCI_CTRL_DETAIL_BG{_width:15px;_height:15px;_zoom:1;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled = true,sizingMethod = image,src = "http://shared.ydstatic.com/jtr/v1/images/icon_detail.png");}.OUTFOX_JTR_NANCI_CTRL_CLOSE_BG{_width:15px;_height:15px;_zoom:1;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled = true,sizingMethod = image,src = "http://shared.ydstatic.com/jtr/v1/images/icon_delete.png");}.OUTFOX_JTR_NANCI_CTRL_DETAIL{_position:absolute;_margin-left:-8px;background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/bar-sp.png") 0 -68px no-repeat;_background-image:none;}.OUTFOX_JTR_NANCI_CTRL_CLOSE{_position:absolute;_margin-left:-6px;background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/bar-sp.png") -13px -70px no-repeat;_background-image:none;}.OUTFOX_JTR_TRANSTIP_ORIGIN .OUTFOX_JTR_TRANSTIP_ADVISE{padding-bottom:14px;}.OUTFOX_JTR_TRANSTIP_ADVISE_TEXT,.OUTFOX_JTR_TRANSTIP_ADVISE_SUBMIT{display:none;}.expand .OUTFOX_JTR_TRANSTIP_ADVISE_TEXT,.expand .OUTFOX_JTR_TRANSTIP_ADVISE_SUBMIT{display:block;}.finish .OUTFOX_JTR_TRANSTIP_ADVISE_TEXT,.finish .OUTFOX_JTR_TRANSTIP_ADVISE_SUBMIT{display:block;visibility:hidden;}div.expand a.OUTFOX_JTR_TRANSTIP_ADVISE_SUBMIT{background-image:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/trans_tip_submit_bg.png");width:96px;height:23px;line-height:23px;text-align:center;cursor:pointer;float:right;margin-top:10px;outline:none;text-decoration:none;}div.expand a.OUTFOX_JTR_TRANSTIP_ADVISE_SUBMIT:hover{background-image:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/trans_tip_submit_bg_hover.png");}.OUTFOX_NANCI_TIPS{white-space:nowrap;}.OUTFOX_JTR_NANCI_CTRL_WORD{color:#000;margin-right:5px;}#OUTFOX_JTR_BAR_BODY #failed{line-height:50px;}#OUTFOX_BAR_WRAPPER iframe.OUTFOX_JTR_BAR_HIDE{display:none;}*html .OUTFOX_JTR_TRANSTIP_WRAPPER .ydd-bg-bottom,*html .OUTFOX_JTR_TRANSTIP_WRAPPER .ydd-bg-top{width:300px;}*html .OUTFOX_JTR_TRANSTIP_WRAPPER{width:300px;border-width:0 1px;border-color:#d9d9d9;border-style:solid;}#yddWrapper{z-index:2147483640;max-width:280px;display:none;}.ydd-container *{padding:0;margin:0;font-size:12px;color:#2A2A2A;}.ydd-container{display:block;position:relative;width:100%;height:100%;font-size:12px;text-align:left;opacity:.95;*filter:alpha(opacity = 95);*background-color:#FFF;}.ydd-container div{display:block;float:none;}.ydd-container a{color:#4E86CC;}.ydd-container a:link{text-decoration:none;}.ydd-container a:hover{text-decoration:underline;}.ydd-body-wrapper{position:relative;padding:0 5px 0 6px;*background-color:transparent;}.ydd-body{padding:0 15px 10px;overflow:hidden;background-color:#fff;*background-color:transparent;}.ydd-lb{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAoCAYAAADdaosOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAAAWdEVYdENyZWF0aW9uIFRpbWUAMTAvMTUvMTDB0g89AAAANklEQVQoke3LsQ0AIAgF0YOEwsbZnPQPxSK6ALRWXPtyAA4EsIAt6WTmdZpKMLMa2mNgYOAbPAs0Bm/LtPJAAAAAAElFTkSuQmCC);*background-image:none;background-repeat:repeat-y;background-position:left 0;width:6px;height:100%;position:absolute;left:0;top:0;}.ydd-rb{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAoCAYAAADdaosOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAAAWdEVYdENyZWF0aW9uIFRpbWUAMTAvMTUvMTDB0g89AAAANElEQVQoke3JoREAIAwEwQuDwKDov7AvJhMaCBrzJ2/JzJJUwAE2sIA5IoKuN7TXYDB8hwuIjQgBYxgxJgAAAABJRU5ErkJggg==);*background-image:none;background-repeat:repeat-y;background-position:right 0;width:6px;height:100%;position:absolute;right:0;top:0;}.ydd-top-wrapper{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAUCAYAAAC07qxWAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAxMC8xNS8xMMHSDz0AAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzVxteM2AAAA2ElEQVQokcWQMY6DMBRE37etSAsFot8bUFPlAjlDjrIHyFFyAK7henuKPQAIEAhHeBsnIsFC0TY70sguxuOZEe8970AAE+4+kMiJBg7hwSufoIEPQL0ItsKqqk55nvfWWrfnKHVde+cczrmfYRiuZVlegFvgcqc0TeO11izLQtd1tG37XRTFEXBrsRrHkb7vmaaJJEnIsqyw1n6F/PfsKBFBRPDeM88zxhjSND0H0aOkUUptxtVaf67dAIzIpuCj6HqBqGNky/jXEdddxye8L9wp80fH/8v4C8bURyFzKYfYAAAAAElFTkSuQmCC);*background-image:none;background-repeat:no-repeat;background-position:right 0;padding-right:10px;height:20px;}.ydd-top{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVAAAAAUCAYAAADbVmUXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAZFJREFUeNrs2ktKw1AYhuFzSaIQLGRkRqEjR67A7Th1Irq0LqILElpDk3jS5nJ6/C0WYgn2fSAE21ILhZePpLppGtXSWiuB+CAAzNBf9ar58R8KAdXCB9IEFcDMRRMHsxEC2pwKqB9K6QCAubqZeHVKx1FE/YD2gTRdLE0QT8MKBTBj6cTr0z9q7zy8LgxoH03rnY0QUwCYm2zi5Vl3R9U9V4UR9a8Z6CCa0Wq1eiqK4jmO40djzD3fD4B/HtDePpxuYH66864bmd9uJvkL1HrxjNfr9Uue5+9pmqokSZS1lq8HwLUEVPVtdOet6+NWiqi4QNvlmWXZ62KxUFVVqc1mM7wZAFwT177bboXuwp97SgE1y+XyzcXTlmU5Pqm59Ang+rTt6yL6cfhzXKFiQKMoejDGEE0AOKxQK43JMKD7O+7uBXdtQAEAQx9PBvQIAQWAYYGq3wR0+J0nAQWA8wLKAgWAQF3XQzgJKACc6ayAcgceAMYeskAB4BILlIACAAEFgMsGlGugADD2UArolwADAA7gcFvj3gN0AAAAAElFTkSuQmCC);*background-image:none;background-repeat:no-repeat;background-position:left 0;height:20px;*width:240px;}.ydd-bottom-wrapper{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAeCAYAAAAVdY8wAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAAAWdEVYdENyZWF0aW9uIFRpbWUAMTAvMTUvMTDB0g89AAAArElEQVQ4jeWUsQ3CMBBFX4AJEDukSJ2K/SgYhI3oU2SBFCnC4X8UOGCSECgoEJx0siw/ve9z4azrOmdQVVWR5/kGOAEGnFfuI26y3gclfdj4n9E/Ncz3RnvsWTA98FfgvDGEUANKrSNQEm3bHiLYw4/R7o6ZHcuy3AEhtS4kIQkzq5um2RdFsQXOEbzdMwPWcdNHhcR2j+b6bfgA9hTqQUum8ydNBiwHbze1cgH57aT/yHsyngAAAABJRU5ErkJggg==);*background-image:none;background-repeat:no-repeat;background-position:right 0;padding-right:10px;height:30px;}.ydd-bottom{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAU8AAAAeCAYAAACsaJwUAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAAAWdEVYdENyZWF0aW9uIFRpbWUAMTAvMTUvMTDB0g89AAABXklEQVR4nO3dPY7TUBQF4PNshxSp0qVgB5Qp0rMMNkFHwYIowyqoUqJkJaTEpsAWJmQG6RWTjPJ90pOVn+JWR+e6eSVJk6RN0iVZ7Pf799vt9utmswkA13VP/TAMw0vOAfCqCE+AClfDcxiG9H3/0rMAvBqaJ0AF4QlQwdoOUEHzBKggPAEqWNsBKmieABU0T4AKmidABeEJUMHaDlBB8wSoIDwBKljbASpongAVpvAcxpOmaYZEeAI8p8sYmqNBeAL8X5uk5PclcCVJs16vf+x2u49N09x2MoA7VvInPKcbNN+cTqfvy+Xy7U0nA7hjl+88+yQ/z+fzl67rPmmfANeV/N0+m4z3tx+Px2+LxeJdKeWW8wHcpTJ7TuHZjqc7HA6fV6vVh7ZtrfAAM/PwvGygU4hOn8vs/wAPbf7Oc9LPvuvzb3AKUODhXQZheeLkyhPgYV0LwufCUnACJPkFXHpxDgJO4nYAAAAASUVORK5CYII=);*background-image:none;background-repeat:no-repeat;background-position:left 0;height:30px;_line-height:24px;line-height:24px;padding:0 15px;*width:210px;}.ydd-key-title{font-size:13px;font-weight:bold;}.ydd-phonetic{font-family:"lucida sans unicode",arial,sans-serif;color:#999;}.ydd-base-trans .ydd-tabs{display:none;}.ydd-trans-wrapper{margin:5px 0;}.ydd-trans-wrapper a{color:#999;}.ydd-tabs{background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/swipe_hr.png") 0 9px no-repeat;margin:5px 0;}.ydd-tab{color:#707070;background:#fff;padding-right:5px;}.ydd-voice{margin:0 5px;}.ydd-no-result{margin-top:7px;}html* .ydd-bg-top{background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/bar-sp-repeat-x.png") 0 0 repeat-x;width:280px;height:40px;position:absolute;z-index:-1;top:0;left:0;}html* .ydd-bottom-wrapper{background:url(chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/bar-sp-repeat-x.png) 0 -46px repeat-x;}html* #yddWrapper{width:280px;border-width:0 1px;border-color:#d9d9d9;border-style:solid;}html* .OUTFOX_JTR_TRANSTIP_WRAPPER #yddWrapper,html* .OUTFOX_JTR_TRANSTIP_WRAPPER .ydd-bg-bottom,html* .OUTFOX_JTR_TRANSTIP_WRAPPER .ydd-bg-top{width:300px;}html* .ydd-title{line-height:14px;}.slider-container{height:9px;width:269px;margin:0;cursor:pointer;background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/bar-sp.png") 0 -56px no-repeat;_background-image:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled = true,sizingMethod = image,src = "http://shared.ydstatic.com/jtr/v1/images/slider_bg.png");}.disable .slider-container{cursor:default;}#sliderBackground{width:0;overflow:hidden;}.slider-background{height:100%;background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/bar-sp.png") 0 -23px no-repeat;_background-image:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled = true,sizingMethod = image,src = "http://shared.ydstatic.com/jtr/v1/images/slider_bar.png");}.disable .slider-background{background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/bar-sp.png") 0 -39px no-repeat;_background-image:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled = true,sizingMethod = image,src = "http://shared.ydstatic.com/jtr/v1/images/slider_bar_gray.png");}.slider{display:block;height:20px;width:75px;top:14px;position:absolute;background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/bar-sp.png") 0 0 no-repeat;_background-image:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled = true,sizingMethod = image,src = "http://shared.ydstatic.com/jtr/v1/images/slider.png");cursor:pointer;}.slider:hover{background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/bar-sp.png") -157px 0 no-repeat;_background-image:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled = true,sizingMethod = image,src = "http://shared.ydstatic.com/jtr/v1/images/slider_hover.png");}.disable .slider,.disable .slider:hover{background:url("chrome-extension://__MSG_@@extension_id__/assets/fanyi.youdao.2.0/bar-sp.png") -78px 0 no-repeat;_background-image:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled = true,sizingMethod = image,src = "http://shared.ydstatic.com/jtr/v1/images/slider_gray.png");} diff --git a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/bar-sp-repeat-x.png b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/bar-sp-repeat-x.png deleted file mode 100644 index 9593b425..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/bar-sp-repeat-x.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/bar-sp.png b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/bar-sp.png deleted file mode 100644 index 20a03af4..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/bar-sp.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/conn.html b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/conn.html deleted file mode 100644 index b7cc0745..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/conn.html +++ /dev/null @@ -1,10 +0,0 @@ - -<!DOCTYPE HTML> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> -<script type="text/javascript" src="../browser-polyfill.min.js"></script> -<script type="text/javascript" src="./conn.js"></script> -</head> -<body></body> -</html> diff --git a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/conn.js b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/conn.js deleted file mode 100644 index 42dbb1ff..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/conn.js +++ /dev/null @@ -1,356 +0,0 @@ -if (!this.JSON) { - this.JSON = {}; -} -/** -* JSON 解析库 -*/ -(function() { - function f(n) { - return n < 10 ? '0' + n : n; - } - - if (typeof Date.prototype.toJSON !== 'function') { - Date.prototype.toJSON = function(key) { - 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; - }; - String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function(key) { - return this.valueOf(); - }; - } - var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta = {'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep; - - function quote(string) { - escapable.lastIndex = 0; - return escapable.test(string) ? '"' + string.replace(escapable, function(a) { - var c = meta[a]; - return typeof c === 'string' ? c : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); - }) + '"' : '"' + string + '"'; - } - - function str(key, holder) { - var i,k,v,length,mind = gap,partial,value = holder[key]; - if (value && typeof value === 'object' && typeof value.toJSON === 'function') { - value = value.toJSON(key); - } - if (typeof rep === 'function') { - value = rep.call(holder, key, value); - } - switch (typeof value) {case'string':return quote(value);case'number':return isFinite(value) ? String(value) : 'null';case'boolean':case'null':return String(value);case'object':if (!value) { - return'null'; - } - gap += indent;partial = [];if (Object.prototype.toString.apply(value) === '[object Array]') { - length = value.length; - for (i = 0; i < length; i += 1) { - partial[i] = str(i, value) || 'null'; - } - v = partial.length === 0 ? '[]' : gap ? '[\n' + gap + - partial.join(',\n' + gap) + '\n' + - mind + ']' : '[' + partial.join(',') + ']'; - gap = mind; - return v; - } - if (rep && typeof rep === 'object') { - length = rep.length; - for (i = 0; i < length; i += 1) { - k = rep[i]; - if (typeof k === 'string') { - v = str(k, value); - if (v) { - partial.push(quote(k) + (gap ? ': ' : ':') + v); - } - } - } - } else { - for (k in value) { - if (Object.hasOwnProperty.call(value, k)) { - v = str(k, value); - if (v) { - partial.push(quote(k) + (gap ? ': ' : ':') + v); - } - } - } - } - v = partial.length === 0 ? '{}' : gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + - mind + '}' : '{' + partial.join(',') + '}';gap = mind;return v; - } - } - - if (typeof JSON.stringify !== 'function') { - JSON.stringify = function(value, replacer, space) { - var i; - gap = ''; - indent = ''; - if (typeof space === 'number') { - for (i = 0; i < space; i += 1) { - indent += ' '; - } - } else if (typeof space === 'string') { - indent = space; - } - rep = replacer; - if (replacer && typeof replacer !== 'function' && (typeof replacer !== 'object' || typeof replacer.length !== 'number')) { - throw new Error('JSON.stringify'); - } - return str('', {'':value}); - }; - } - if (typeof JSON.parse !== 'function') { - JSON.parse = function(text, reviver) { - var j; - - function walk(holder, key) { - var k,v,value = holder[key]; - if (value && typeof value === 'object') { - for (k in value) { - if (Object.hasOwnProperty.call(value, k)) { - v = walk(value, k); - if (v !== undefined) { - value[k] = v; - } else { - delete value[k]; - } - } - } - } - return reviver.call(holder, key, value); - } - - text = String(text); - cx.lastIndex = 0; - if (cx.test(text)) { - text = text.replace(cx, function(a) { - return'\\u' + - ('0000' + a.charCodeAt(0).toString(16)).slice(-4); - }); - } - if (/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) { - j = eval('(' + text + ')'); - return typeof reviver === 'function' ? walk({'':j}, '') : j; - } - throw new SyntaxError('JSON.parse'); - }; - } -}()); - -window.onload = function() { - var BACKFLAG = 'dataBack'; - - /** - * 事件绑定 - * @param object 要绑定事件的对象 - * @param eventName 事件名称 - * @param callback 事件处理函数 - */ - var bind = function(object, eventName, callback) { - if (!callback) { - return; - } - if (object.addEventListener) { - object.addEventListener(eventName, callback, false); - } else if (object.attachEvent) { - object.attachEvent('on' + eventName, callback); - } else { - object['on' + eventName] = callback; - } - return this; - }; - /** - * 判断对象是否函数 - * @param obj 待检查对象 - */ - var isFunction = function(obj) { - return !!(Object.prototype.toString.call(obj) === "[object Function]"); - }; - /** - * 跨域通信响应对象 - */ - var Response = { - /** - * 响应请求信息 - * @param callback - */ - onMessage:function(callback) { - if (!isFunction(callback)) { - callback = function() { - }; - } - bind(window, 'message', function(eve) { - callback(eve); - }); - }, - /** - * 向另一个域发送请求 - * @param responseData - */ - sendMessage : function(responseData) { - parent.postMessage(JSON.stringify(responseData), '*'); - } - }; - /** - * 本地存储。 所有本地存储相关数据存储到 youdao 的域下,这样才能做到用户设置与域无关。 - * @param key 键 - * @param value 值 - */ - var storage = function(key, value) { - /** - * html5 中的本地存储方式 - * @param key - * @param value - */ - var html5LocalStorage = function(key, value) { - var store = window.localStorage; - if (value === undefined) { - return store.getItem(key); - } - if (key !== undefined && value !== undefined) { - store.setItem(key, value); - return value; - } - }; - /** - * IE 本地存储方式 userData - * @param key - * @param value - */ - var userdata = function(key, value) { - var store = document.documentElement; - store.addBehavior("#default#userData"); - if (value === undefined) { - store.load("fanyiweb2"); - return store.getAttribute(key); - } - if (key !== undefined && value !== undefined) { - store.setAttribute(key, value); - store.save("fanyiweb2"); - return value; - } - }; - if (!!window.localStorage) { - return html5LocalStorage(key, value); - } - if (!!document.documentElement.addBehavior) { - return userdata(key, value); - } - }; - - /** - * 创建 Ajax 对象 - */ - function createXMLHttpObject() { - var XHRFactory = [ - function () { - return new XMLHttpRequest(); - }, - function () { - return new ActiveXObject('Msxml2.XMLHTTP'); - }, - function () { - return new ActiveXObject('Msxml3.XMLHTTP'); - }, - function () { - return new ActiveXObject('Microsoft.XMLHTTP'); - } - ]; - var xhr = false; - for (var i = 0; i < XHRFactory.length; i++) { - try { - xhr = XHRFactory[i](); - } catch(e) { - continue; - } - break; - } - return xhr; - } - - /** - * 处理跨域请求 - */ - var handleMessage = function() { - /** - * 将 request 中的 data 转为对象 - * @param request - */ - var initData = function(request) { - var dataArray = request.data,data = {}; - if (typeof dataArray === 'string') { - dataArray = dataArray.split('&'); - } - - for (var i = 0; i < dataArray.length; i++) { - var d = dataArray[i].split('='); - data[d[0]] = d[1]; - } - return data; - }; - /** - * 所有请求的处理函数,请求的处理函数与 request.handler 属性值应保持一致 - */ - var handlers = { - /** - * 获取翻译的查询结果 - * @param request 请求数据 - */ - translate : function(request) { - browser.runtime.sendMessage({ type: 'YOUDAO_TRANSLATE_AJAX', payload: request }) - .then(response => { - Response.sendMessage({ - ...response, - 'handler': BACKFLAG, - }) - }) - // var xhr = createXMLHttpObject(); - // xhr.onreadystatechange = function(event) { - // if (xhr.readyState == 4) { - // var data = xhr.status == 200 ? xhr.responseText : null; - // Response.sendMessage({ - // 'handler': BACKFLAG, - // 'response': data, - // 'index': request.index - // }); - // } - // }; - // xhr.open(request.type, request.url, true); - - // if (request.type === 'POST') { - // xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); - // xhr.send(request.data); - // } else { - // xhr.send(null); - // } - }, - /** - * 本地存储 - * @param request 请求信息 - */ - localStorage:function(request) { - var data = initData(request); - var result = decodeURIComponent(storage(data.key, data.value)); - Response.sendMessage({ - 'handler': BACKFLAG, - 'response': result, - 'index': request.index - }); - } - }; - return function(request) { - if (!!!handlers[request.handler]) { - throw new Error('类别为 ' + request.handler + ' 跨域请求处理函数不存在!'); - } - handlers[request.handler](request); - }; - }(); - /** - * 注册消息处理机制 - */ - Response.onMessage(function(eve) { - handleMessage(JSON.parse(eve.data)); - }); - - Response.sendMessage({handler:'transferStationReady'}); -} diff --git a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/logo.png b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/logo.png deleted file mode 100644 index ad0b759e..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/logo.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/main.js b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/main.js index 246208de..e69de29b 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/main.js +++ b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/main.js @@ -1,8 +0,0 @@ -/* eslint-disable */ - -;(function () { - var JSONDAO, TR; - if(this.JSON&&this.JSON.stringify.toString().indexOf("[native code]")!==-1){JSONDAO=this.JSON}else{JSONDAO={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){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};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSONDAO.stringify!=="function"){JSONDAO.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSONDAO.stringify")}return str("",{"":value})}}if(typeof JSONDAO.parse!=="function"){JSONDAO.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSONDAO.parse")}}}());(function(){var a={browser:function(){var e={};var c=navigator.userAgent.toLowerCase();var d;(d=c.match(/msie ([\d.]+)/))?e.msie=d[1]:(d=c.match(/firefox\/([\d.]+)/))?e.firefox=d[1]:(d=c.match(/chrome\/([\d.]+)/))?e.chrome=d[1]:(d=c.match(/opera.([\d.]+)/))?e.opera=d[1]:(d=c.match(/version\/([\d.]+).*safari/))?e.safari=d[1]:0;return e}(),isDOM:function(c){return Boolean(c&&c.nodeType===1)},isArray:function(c){return Object.prototype.toString.call(c)==="[object Array]"},isFunction:function(c){return Object.prototype.toString.call(c)==="[object Function]"},each:function(d,g,f){if(d===undefined||d===null){return}if(d.length===undefined||a.isFunction(d)){for(var c in d){if(d.hasOwnProperty(c)){if(g.call(f||d[c],c,d[c])===false){break}}}}else{for(var e=0;e<d.length;e++){if(g.call(f||d[e],e,d[e])===false){break}}}return d},indexOf:function b(d,e){if(d.indexOf){return d.indexOf(e)}else{var c=-1;a.each(d,function(f){if(this===e){c=f;return false}});return c}},bind:function(d,c,e){if(!e){return}if(d.addEventListener){d.addEventListener(c,e,false)}else{if(d.attachEvent){d.attachEvent("on"+c,e)}else{d["on"+c]=e}}return this},unbind:function(d,c,e){if(!e){return}if(d.removeEventListener){d.removeEventListener(c,e,false)}else{if(d.detachEvent){d.detachEvent("on"+c,e)}else{d["on"+c]=function(){}}}return this},param:function(c){if(typeof c==="string"){return c}var d=[];a.each(c,function(e,f){if(f){f=encodeURIComponent(f);if(a.browser.firefox){f=encodeURIComponent(unescape(f))}d.push(encodeURIComponent(e)+"="+f)}});return d.join("&")},makeArray:function(c){return Array.prototype.slice.call(c,0)},getDocumentCharset:function(){a.log("document.characterSet || document.charset:::"+document.characterSet||document.charset);return document.characterSet||document.charset},log:function(){},css:function(){var c=function(h,d){var i="";if(d=="float"){document.defaultView?d="float":d="styleFloat"}if(h.style[d]){i=h.style[d]}else{if(h.currentStyle){i=h.currentStyle[d]}else{if(document.defaultView&&document.defaultView.getComputedStyle){d=d.replace(/([A-Z])/g,"-$1").toLowerCase();var f=document.defaultView.getComputedStyle(h,"");i=f&&f.getPropertyValue(d)}else{i=null}}}if((i=="auto"||i.indexOf("%")!==-1)&&("width"===d.toLowerCase()||"height"===d.toLowerCase())&&h.style.display!="none"&&i.indexOf("%")!==-1){i=h["offset"+d.charAt(0).toUpperCase()+d.substring(1).toLowerCase()]+"px"}if(d=="opacity"){try{i=h.filters["DXImageTransform.Microsoft.Alpha"].opacity;i=i/100}catch(j){try{i=h.filters("alpha").opacity}catch(g){}}}return i};return function(e,d){if(typeof d==="string"){return c(e,d)}else{a.each(d,function(f,g){e.style[f]=g})}}}(),getPageSize:function(){var g,c;if(window.innerHeight&&window.scrollMaxY){g=document.body.scrollWidth;c=window.innerHeight+window.scrollMaxY}else{g=Math.max(document.body.scrollWidth,document.body.offsetWidth);c=Math.max(document.body.scrollHeight,document.body.offsetHeight)}var e,h;e=document.documentElement.clientWidth||document.body.clientWidth;h=document.documentElement.clientHeight||document.body.clientHeight;var f=Math.max(c,h);var d=Math.max(g,e);return{page:{width:d,height:f},window:{width:e,height:h}}},findPos:function(c){var d={x:0,y:0};if(!!document.documentElement.getBoundingClientRect()){d.x=c.getBoundingClientRect().left+a.scroll().left;d.y=c.getBoundingClientRect().top+a.scroll().top}else{while(c){d.x+=c.offsetLeft;d.y+=c.offsetTop;c=c.offsetParent}}return d},textPos:function(e,h){var i=e||window.event;var g={};var j={};var d=h.h;var f=h.v||"bottom";if(window.getSelection){g=window.getSelection().getRangeAt(0)}else{if(document.selection){g=document.selection.createRange()}}if(!!d){j.x=c[d]+a.scroll().left}else{if(i.pageX||i.pageY){j.x=i.pageX}else{if(i.clientX||i.clientY){j.x=i.clientX+a.scroll().left}}}if(!!g.getBoundingClientRect){var c=g.getBoundingClientRect();j.y=c[f]+a.scroll().top}else{if(i.pageX||i.pageY){j.y=i.pageY}else{if(i.clientX||i.clientY){j.y=i.clientY+a.scroll().top}}}return j},scroll:function(){return{left:document.documentElement.scrollLeft+document.body.scrollLeft,top:document.documentElement.scrollTop+document.body.scrollTop}},walkTheDOM:function walkTheDOM(e,d,c){if(c&&!c(e)){return}d(e);if(e.tagName==="NOSCRIPT"){return}else{if(e.tagName==="IFRAME"||e.tagName==="FRAME"){return}else{e=e.firstChild}}while(e){walkTheDOM(e,d,c);e=e.nextSibling}},getTextNodes:function(e,c){var d=[];a.walkTheDOM(e,function(f){if(f.nodeType===3&&a.trim(f.nodeValue)){d.push(f)}},c);return d},getElementsByClassName:function(e,d){if(e.getElementsByClassName){return e.getElementsByClassName(d)}else{var c=[];a.walkTheDOM(e,function(f){if(a.hasClass(f,d)){c.push(f)}});return c}},query:function(e,f){var d=new RegExp("(?:(?:\\.([^()]+))?)(?:(?:#([^()]+))?)");var c=d.exec(e);var i=f||document;if(!c){return null}else{if(!!c[1]){var h=c[1];if(i.getElementsByClassName){return i.getElementsByClassName(h)}else{var g=[];a.walkTheDOM(i,function(j){if(a.hasClass(j,h)){g.push(j)}});return g}}if(!!c[2]){return i.getElementById(c[2])}}},trim:function(c){return c.replace(/^\s*/,"").replace(/\s*$/,"")},formatTemplate:function(f,g){var d=document.createElement("div");for(var e in g){if(g.hasOwnProperty(e)){f=f.replace(new RegExp("{"+e+"}","g"),g[e])}}d.innerHTML=f;var c=d.firstChild;d.removeChild(c);return c},hasClass:function(g,f){if(a.isDOM(g)){if(g.className===f){return true}var e=g.className.split(" "),d=0,c=e.length;for(;d<c;d++){if(f===e[d]){return true}}}return false},loadCSS:function(e,d){var c=function(j){if(e&&e.createElement){var i=Date.parse(new Date()),g=e.createElement("link");var f=j;g.setAttribute("rel","stylesheet");g.setAttribute("href",f);g.setAttribute("type","text/css");var h=e.getElementsByTagName("head")[0]||e.body;h.appendChild(g)}};if(a.isArray(d)){a.each(d,function(f,g){c(g)})}else{if(typeof d==="string"){c(d)}}},addClass:function(g,f){if(a.isDOM(g)){var e=g.className.split(" "),d=0,c=e.length;for(;d<c;d++){if(f===e[d]){return}}e[d]=f;g.className=e.join(" ")}},removeClass:function(g,f){if(a.isDOM(g)){var e=g.className.split(" "),d=0,c=e.length,h=[];for(;d<c;d++){if(f!==e[d]){h.push(e[d])}}g.className=h.join(" ")}},toggleClass:function(g,f){if(a.isDOM(g)){var e=g.className.split(" "),d=0,c=e.length,j=[],h="add";for(;d<c;d++){if(f===e[d]){h="remove"}else{j.push(e[d])}}if(h==="add"){e[d]=f}else{e=j}g.className=e.join(" ")}},guid:function(){var c=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return function(){return(c()+c()+"-"+c()+"-"+c()+"-"+c()+"-"+c()+c()+c())}}(),protoExtend:function(e,c){var d=a.isFunction(c)?c:function(){};d.prototype=e;return new d()},stopPropagation:function(d){var c=d||window.event;if(c.stopPropagation){c.stopPropagation()}c.cancelBubble=true;return c},storage:function(d,f){var e=function(h,i){var g=window.localStorage;if(i===undefined){return g.getItem(h)}if(h!==undefined&&i!==undefined){g.setItem(h,i);return i}};var c=function(h,i){var g=document.documentElement;g.addBehavior("#default#userData");if(i===undefined){g.load("fanyiweb2");return g.getAttribute(h)}if(h!==undefined&&i!==undefined){g.setAttribute(h,i);g.save("fanyiweb2");return i}};if(!!window.localStorage){return e(d,f)}if(!!document.documentElement.addBehavior){return c(d,f)}},cookie:function(c,f){function d(g,i){var h=30;var j=new Date();j.setTime(j.getTime()+h*24*60*60*1000);document.cookie=g+"="+i+";expire*="+j.toGMTString()}function e(h){var g=document.cookie.match(new RegExp("(^| )"+h+"=([^;]*)(;|$)"));if(g!=null){return decodeURIComponent(g[2])}return null}if(!!f){d(c,f)}else{return e(c)}},parseData:function(){var c={json:function(d){try{return d=JSONDAO.parse(d)}catch(f){a.log("[Error]","Invalid JSON data:",d)}},xml:function(e){if(window.DOMParser){return(new DOMParser()).parseFromString(e,"text/xml")}else{var d=new ActiveXObject("Microsoft.XMLDOM");d.async="false";d.loadXML(e);return d}}};return function(d,e){if(d===undefined){return e}if(a.isFunction(d)){return d(e)}if(!!d&&!c[d]){a.log("[Error]","Function parseData() dosen't support this type:",d);return e}return c[d](e)}}(),once:function(c){return function(){if(a.isFunction(c)){c.apply(this,arguments)}c=function(){}}}};window.J=a})();(function(a){var b=function(e,d,c){return new b.prototype.init(e,d,c)};b.prototype={init:function(c,f,g){var d=this;var e=[];var h=function(i){d.ajax=i;while(e.length>0){i(e.pop())}};if(!!window.postMessage){this.createMessageChannel(c,f,g,h)}else{this.createJTRAssist(c,h)}this.ajax=function(i){e.push(i);return this};return this},createMessageChannel:function(d,f,h,i){var e=this;var c=(function(){if(a.isDOM(a.query("#"+d))){throw new Error("Existed CDA iFrame element")}if(f&&h){var j=document.createElement("iframe");j.setAttribute("id",d);j.className=("OUTFOX_JTR_CONN");j.style.display="none";j.setAttribute("src",h);document.body.appendChild(j);return j.contentWindow}else{throw new Error("Empty domain is not allowed")}})();var g=(function(){var k=[];var l=0;var j={transferStationReady:function(){i(function(m){m.data=a.param(m.data);m.index=l++;k[m.index]={dataType:m.dataType,callback:m.callback};delete m.callback;c.postMessage(JSONDAO.stringify(m),'*');return e})},dataBack:function(n){if(!!n&&!!k[n.index]){var m=k[n.index];if(a.isFunction(m.callback)){m.callback(a.parseData(m.dataType,n.response))}delete k[n.index]}}};return function(n){var m=JSONDAO.parse(n.data);j[m.handler](JSONDAO.parse(n.data))}})();a.bind(window,"message",function(j){g.call(e,j)})},createJTRAssist:function(h,e){var k=this;var d="http://fanyi.youdao.com/web2/JTRAssist.swf?"+(+new Date());var j=function(){if(!!a.query("#"+h)){return}var l=document.createElement("div");if(a.browser.msie==="6.0"||a.browser.msie==="7.0"){l.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1" height="1" id="'+h+'"><param name="allowScriptAccess" value="always" /><param name="movie" value="'+d+'" /></object>'}else{l.innerHTML='<object height="1" width="1" id="'+h+'" data="'+d+'"><param name="allowScriptAccess" value="always"></object>'}document.body.appendChild(l)};var c="outfox_jtr_fproxy_callback_",f=0;var g=function(m){var l=c+(f++);window[l]=function(n){m.callback.call(k,a.parseData(m.dataType,decodeURI(n)))};a.query("#"+h).load(m.url,m.data,m.type||"POST",'window["'+l+'"]')};var i=function(n){var l=n.data.key,m=n.data.value;if(m===undefined){if(a.isFunction(n.callback)){n.callback(a.parseData(n.dataType,a.query("#"+h).getItem(l)))}}else{a.query("#"+h).setItem(l,m)}};j();window.JTRAssistIsReady=function(){e(function(l){switch(l.handler){case"translate":l.data=a.param(l.data);g(l);break;case"localStorage":i(l);break;default:throw new Error("Unsupported request type :"+l.handler)}return k})}}};b.prototype.init.prototype=b.prototype;a.CDA=b})(J);(function(a){TR=function(d,b,g,c){this._manager=c;this._reqSize=b.reqSize;this._onStatusChange=b.onStatusChange||function(){};this._url=b.url;this.conn=g;this._context=d;this._request=function(i,j,k){g.ajax({url:i,handler:"translate",type:"POST",data:j,callback:k,dataType:"json"})};var h=new a.Page(d);var f=[];var e=h.getMainArticle();if(e){f=a.getTextNodes(e.elem,TR.isInclude)}this.mainNodeLength=f.length||null;this._nodeIndex=[];f=f.concat(a.getTextNodes(d,function(i){return(i!==(e&&e.elem))&&TR.isInclude(i)}));a.each(f,function(i,j){this._nodeIndex.push(this._manager.addNode(j))},this);this.workingThread=0;this.guid=b.guid||a.guid()};TR.prototype={doTrans:function(){var d=++this.workingThread;var h={ue:a.getDocumentCharset()||null,data:null,relatedUrl:document.location.href,guid:this.guid,mainLength:this.mainNodeLength,requestId:a.guid()};var j=[];var f=0;for(var g=0;g<this._nodeIndex.length;g++){if(this._manager.transResults[g]){if(d===this.workingThread){this._manager.replaceTrans(g)}}else{var e=null;if(j[parseInt(f/this._reqSize,10)]){e=j[parseInt(f++/this._reqSize,10)]}else{e=j[parseInt(f++/this._reqSize,10)]={}}var i=null;try{i=this._manager.nodes[g].parentNode&&this._manager.nodes[g].parentNode.tagName||null}catch(c){}e[g]={src:this._manager.originals[g],tag:i}}}if(j.length===0){this._onStatusChange({id:d,action:"TRANS",level:"0",status:"finish"});return}var k=this,b=function(l){k._onStatusChange({id:d,action:"TRANS",level:"0",status:"busy",data:[l,j.length]});h.data=JSONDAO.stringify(j[l]);k._request(k._url.textTrans,h,function(m){k._updateTrans(m,d);if(++l<j.length){b(l)}else{k._onStatusChange({id:d,action:"TRANS",level:"0",status:"finish"})}})};b(0)},revertTrans:function(){var c=++this.workingThread;for(var b=0;b<this._nodeIndex.length;b++){if(c===this.workingThread){this._manager.revertTrans(this._nodeIndex[b])}}},_updateTrans:function(b,c){if(!!!b){return}if(b.errorCode===40&&b.errorCode===30){a.log("Get Error Code:",b.errorCode);return}a.each(b.data,function(d,e){this._manager.transResults[d]=e.tst;if(c===this.workingThread){this._manager.replaceTrans(d)}},this)},doTips:function(b){var e=++this.workingThread;var i={type:"X",ue:a.getDocumentCharset()||null,data:null,relatedUrl:document.location.href,mainLength:this.mainNodeLength,guid:this.guid};var k=[];var g=0;for(var h=0;h<this._nodeIndex.length;h++){if(this._manager.tipsResults[h]){if(e===this.workingThread){this._manager.replaceTips(h,b)}}else{var f=null;if(k[parseInt(g/this._reqSize,10)]){f=k[parseInt(g++/this._reqSize,10)]}else{f=k[parseInt(g++/this._reqSize,10)]={}}var j=null;try{j=this._manager.nodes[h].parentNode&&this._manager.nodes[h].parentNode.tagName||null}catch(d){}f[h]={src:this._manager.originals[h],tag:j}}}if(k.length===0){this._onStatusChange({id:e,action:"TIPS",level:b,status:"finish"});return}var l=this;var c=function(m){a.log("Send:",k[m]);l._onStatusChange({id:e,action:"TIPS",level:b,data:[m,k.length],status:"busy"});i.data=JSONDAO.stringify(k[m]);l._request(l._url.tips,i,function(n){l._updateTips(n,e,b);if(++m<k.length){c(m)}else{l._onStatusChange({id:e,action:"TIPS",level:b,status:"finish"})}})};c(0)},revertTips:function(){var c=++this.workingThread;for(var b=0;b<this._nodeIndex.length;b++){if(c===this.workingThread){this._manager.revertTips(this._nodeIndex[b])}}},_updateTips:function(e,d,c){if(!!!e){return}if(e.errorCode===40&&e.errorCode===30){a.log("Get Error Code:",e.errorCode);return}var b=function(g,f){return g.start>f.start};a.each(e.data,function(f,g){if(g.length>0){this._bubbleSort(g,b);this._manager.tipsResults[f]=g;if(d===this.workingThread){this._manager.replaceTips(f,c)}}else{this._manager.tipsResults[f]=[]}},this)},_bubbleSort:function(c,f){for(var d=c.length-2;d>=0;d--){for(var b=0;b<=d;b++){if(f(c[b+1],c[b])){var e=c[b];c[b]=c[b+1];c[b+1]=e}}}return c}};TR.isInclude=function(b){return !(b.tagName==="SCRIPT"||b.tagName==="STYLE"||b.tagName==="PRE"||(b.className&&/OUTFOX_JTR_/.test(b.className)))};a.TR=TR})(J);if(!J||!J.bind){throw new Error("swipe extension need J.bind support")}(function(h){var g="http://fanyi.youdao.com",f=g+"/fsearch",b=g+"/translate";var j=function(k){return'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="15px" height="15px" align="absmiddle" id="speach_flash"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://cidian.youdao.com/chromeplus/voice.swf" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="wmode" value="transparent"><param name="FlashVars" value="audio='+k+'"><embed wmode="transparent" play="false" src="http://cidian.youdao.com/chromeplus/voice.swf" loop="false" menu="false" quality="high" bgcolor="#ffffff" width="15" height="15" align="absmiddle" allowScriptAccess="sameDomain" FlashVars="audio='+k+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'};var c=function(k){return k.split&&k.split(" ").length||0};var e={isJapanese:function(k){return !Boolean(/[^\u0800-\u4e00]/.test(k))},isContainJapanese:function(k){var m=0;for(var l=0;l<k.length;l++){if(this.isJapanese(k.charAt(l))){m++}}return m>2},isKoera:function(k){for(i=0;i<k.length;i++){if(((k.charCodeAt(i)>12592&&k.charCodeAt(i)<12687)||(k.charCodeAt(i)>=44032&&k.charCodeAt(i)<=55203))){return true}}return false},isContainKoera:function(k){var m=0;for(var l=0;l<k.length;l++){if(this.isKoera(k.charAt(l))){m++}}return m>0},isChinese:function(k){return !Boolean(/[^\u4e00-\u9fa5]/.test(k))},isContainChinese:function(k){var m=0;for(var l=0;l<k.length;l++){if(this.isChinese(k.charAt(l))){m++}}return m>5}};var a=function(k,l){return new a.fn.init(k,l)};a.fn=a.prototype={init:function(l,m){var k=this;this.wrapper=a.createFrameWrapper();this.conn=a.initConnection(m);this.context=l;h.bind(document.body,"click",function(o){var n=o||window.event;k.wrapper.style.display="none";k.wrapper.style.position="absolute";k.wrapper.innerHTML=""})},enableSwipe:function(){if(!this._swipeListener){var k=this;this._swipeListener=function(l){k._onSwipe.call(k,l)};h.bind(this.context,"mouseup",this._swipeListener)}},disableSwipe:function(){if(this._swipeListener){h.unbind(this.context,"mouseup",this._swipeListener);delete this._swipeListener}},_onSwipe:function(l){var k="",n="";var m={};if(window.getSelection){k=window.getSelection()}else{if(document.selection){k=document.selection.createRange()}}if(k.toString){n=k.toString()}else{if(k.text){n=k.text.toString()}}var o=h.textPos(l,{});n=h.trim(n);if(!a.validateSwipeWord(n)){return}this.swipeWord(n,o.x,o.y);if(this.onSwipeCallback){this.onSwipeCallback(n)}},swipeWord:function(p,k,q,o,n){var l=this;var m=null;this.wrapper.innerHTML="";if((!e.isContainChinese(p)&&c(p)>=3)||(e.isContainChinese(p)||e.isContainJapanese(p)&&p.length>4)){m="translate"}else{m="dict"}this.conn.request({action:m,word:p},function(r){l.wrapper.innerHTML="";l._onResponse.call(l,r);a.initWrapper(l.wrapper,k,q,o,n)})},_onResponse:function(l){var m=l.firstChild,k=null;if(!m){return}else{if(m.baseName&&m.baseName=="xml"){m=m.nextSibling}}switch(m.tagName){case"response":k=a.processXmlTransData(l);break;case"yodaodict":k=a.processXmlDictData(l);break;default:throw new Error("Incorrect xml data")}if(k){this.wrapper.appendChild(k);this.wrapper.style.display="block"}}};a.createFrameWrapper=function(){var k=document.createElement("div");k.id="yddWrapper";h.bind(k,"click",function(l){h.stopPropagation(l)});h.bind(k,"mouseup",function(l){h.stopPropagation(l)});document.body.appendChild(k);return k};a.validateSwipeWord=function(k){return !(k===""||k.length>2000)};a.initConnection=function(k){var n=null;var m=function(q){var p=null,r=null;if(q.action=="dict"){r={client:"JTRHelper",keyfrom:"JTRHelper.bookmark",q:q.word,pos:-1,doctype:"xml",xmlVersion:"3.2",dogVersion:"1.0",vendor:"jtr",le:"eng"};p=f}else{r={client:"JTRHelper",keyfrom:"JTRHelper.bookmark",i:q.word,doctype:"xml",xmlVersion:"1.1",dogVersion:"1.0"};p=b}return[p,r]};if(window.chrome&&window.chrome.extension&&window.chrome.extension.sendRequest){n={request:function(p,q){window.chrome.extension.sendRequest(p,function(r){if(r){q((new DOMParser()).parseFromString(r,"text/xml"))}})}};return n}else{if(k){n={request:function(q,r){var p=m(q);k.ajax({url:p[0],handler:"translate",data:p[1],callback:r,dataType:"xml",type:"POST"})}};return n}else{if(h.CDA){var l=null;try{l=h.CDA("_OUTFOX_JTR_SWIPE_CONN",g,CONN_FILE_PATH)}catch(o){throw new Error("Unable to get cross-domain ajax file.")}n={request:function(q,r){var p=m(q);l.ajax({url:p[0],handler:"translate",data:p[1],callback:r,dataType:"xml",type:"POST"})}};return n}else{throw new Error("Unable to initialize cross-domain connection port.")}}}};a.initWrapper=function(p,t,s,q,D){var n=0,v=0,B=50,l=h.scroll().top,z=h.scroll().left,u=p.clientHeight,C=p.clientWidth,w=h.getPageSize().window.height,F=h.getPageSize().window.width;q=q||0;D=D||0;if(s-u>=l+B){v=s-u}else{v=s+D}if(t+C<=F+z){n=t+q}else{n=F+z-C}var r=!!(h.css(document.body,"position")!=="static");var A=h.css(document.body,"marginLeft");var o=h.css(document.body,"marginRight");if(A==="auto"&&o==="auto"){var E=h.getPageSize().page.width;var k=parseInt(h.css(document.body,"width"));if(E>k){A=(E-k)/2}else{A=0}}A=r?parseInt(A):0;var m=r?parseInt(h.css(document.body,"marginTop")):0;h.css(p,{position:"absolute",left:(n-A)+"px",top:(v-m)+"px"})};a.processXmlTransData=function(r){var l=(r.getElementsByTagName("input")[0].childNodes[1]||r.getElementsByTagName("input")[0].childNodes[0]).nodeValue,q=(r.getElementsByTagName("translation")[0].childNodes[1]||r.getElementsByTagName("translation")[0].childNodes[0]).nodeValue,p=r.getElementsByTagName("response")[0].getAttribute("errorCode")-0,n=h.trim(q),m=h.trim(l);if((e.isContainChinese(m)||e.isContainJapanese(m)||e.isContainKoera(m))&&m.length>15){m=m.substring(0,8)+" ..."}else{if(m.length>25){m=m.substring(0,15)+" ..."}}if(m==n){return null}var o="http://fanyi.youdao.com/translate?i="+encodeURIComponent(l)+"&keyfrom=chrome";var k='<div class="ydd-container"> <div class="ydd-top-wrapper"> <div class="ydd-top"> </div> </div> <div class="ydd-body-wrapper"> <div class="ydd-lb"></div> <div class="ydd-rb"></div> <div class="ydd-body"> <div class="ydd-titile"> <span>{input}</span> <span><a href="{searchURL}" target="_blank">详细››</a></span> </div> <div class="ydd-middle"> <div class="ydd-trans-wrapper ydd-simple-trans"> <div class="ydd-trans-container">{trans}</div> </div> </div> </div> </div> <div class="ydd-bottom-wrapper"><div class="ydd-bottom"></div></div> <div class="ydd-bg-top"></div></div> </div>';return h.formatTemplate(k,{searchURL:o,input:a.escapeHTML(m),trans:a.escapeHTML(q)})};a.processXmlDictData=function(D){var l=null,n=null,q=[],z=[],x="",v="",F="",r="",w=0;var t=function(H){try{return D.getElementsByTagName(H)[0].firstChild.nodeValue}catch(G){return""}};x=t("return-phrase");v=t("dictcn-speach");F=t("lang");r=t("phonetic-symbol");if((n=D.getElementsByTagName("translation"))&&n.length>0){for(w=0;w<n.length;w++){q.push(n[w].getElementsByTagName("content")[0].firstChild.nodeValue)}}if((l=D.getElementsByTagName("web-translation"))&&l.length>0){for(w=0;w<l.length-1;w++){z.push({key:l[w].getElementsByTagName("key")[0].firstChild.nodeValue,value:l[w].getElementsByTagName("trans")[0].getElementsByTagName("value")[0].firstChild.nodeValue})}}var B="http://dict.youdao.com/search?q="+encodeURIComponent(x)+"&keyfrom=chrome.extension"+F,E=x,A="",o="",m="",u=null,C="http://www.youdao.com/search?q={title}&keyfrom=fanyi.jtr",s="";s='<div class="ydd-container"> <div class="ydd-top-wrapper"> <div class="ydd-top"></div> </div> <div class="ydd-body-wrapper"> <div class="ydd-lb"></div> <div class="ydd-rb"></div> <div class="ydd-body"> <div class="ydd-titile"> <span class="ydd-key-title">{title}</span> <span class="ydd-phonetic">{phonetic}</span> {speechHTML} <span class="ydd-detail"><a href="{searchURL}" target="_blank">详细››</a></span> </div> <div class="ydd-middle"> <div class="ydd-trans-wrapper ydd-base-trans"> <div class="ydd-tabs"><span class="ydd-tab">基本翻译</span></div>{baseTransHTML}</div> <div class="ydd-trans-wrapper ydd-web-trans"> <div class="ydd-tabs"><span class="ydd-tab">网络释义</span></div>{webTransHTML}</div> </div> </div> </div> <div class="ydd-bottom-wrapper"> <div class="ydd-bottom"><a href="'+C+'" target="_blank" title="使用有道搜索 {title}">搜索 {title}</a></div> </div> <div class="ydd-bg-top"></div> </div> </div>';if((e.isContainChinese(E)||e.isContainJapanese(E)||e.isContainKoera(E))&&E.length>15){E=E.substring(0,10)+"..."}else{if(E.length>25){E=E.substring(0,15)+" ..."}}if(q.length+z.length>0&&v){A='<span class="ydd-voice">'+j("http://dict.youdao.com/speech?audio="+v,"test","CLICK","dictcn_speech")+"</span>"}for(w=0;w<q.length;w++){o+='<div class="ydd-trans-container">'+q[w]+"</div>"}for(w=0;w<z.length;w++){var p="http://dict.youdao.com/search?q="+encodeURIComponent(z[w].key)+"&keyfrom=chrome.extension"+F;m+='<div class="ydd-trans-container"><a href="'+p+'" target="_blank">'+z[w].key+":</a> "+z[w].value+"</div>"}u=h.formatTemplate(s,{phonetic:r?"["+r+"]":"",title:E,searchURL:B,speechHTML:A,baseTransHTML:o,webTransHTML:m});var k=h.query(".ydd-middle",u)[0];n=h.query(".ydd-base-trans",k)[0];l=h.query(".ydd-web-trans",k)[0];if(q.length+z.length===0){k.innerHTML='<p class="ydd-no-result">没有英汉互译结果</p>'}try{if(q.length===0){k.removeChild(n)}else{if(z.length===0){k.removeChild(l)}}}catch(y){}return u};var d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};a.escapeHTML=function(k){return String(k).replace(/[&<>"'\/]/g,function(l){return d[l]})};a.fn.init.prototype=a.fn;h.Swipe=a})(J);(function(a){var b=function(d,c,f){var e=this;if(!a.isDOM(d)){throw Error("Invalid slider container element")}this.container=d;if(!a.isDOM(c)){throw Error("Invalid slider controller block element")}this.controller=c;for(var g=this.container;g;g=g.parentNode){if(g.nodeType===9){this.document=g;break}}if(!g){throw Error("Can't find parent Document element of container, container dom node should insert to document first")}if(a.isDOM(f.bar)){this.bar=f.bar}else{this.bar=null}this.range=Number(f.max-f.min);if(!(this.range&&this.range>0)){throw Error("range must greater than 0")}if(a.isFunction(f.callback)){this.callback=function(h){f.callback.call(e,h)}}this.borderFix=Number(f.borderFix)||0;this.mousemove=function(h){e._mousemove(h)};this.mouseup=function(h){e._mouseup(h)};this.mousedown=function(h){e._mousedown(h)}};b.prototype={enable:function(){a.bind(this.container,"mousedown",this.mousedown)},disable:function(){a.unbind(this.container,"mousedown",this.mousedown)},to:function(e,d){var c=this,f=null;tempFunc=function(){if(!c.container.offsetHeight||!c.container.clientWidth){f=setTimeout(tempFunc,200);return}var g=c.container.clientWidth-c.controller.clientWidth-2*c.borderFix;pos=e/c.range*g;c._valueChange(pos/g*c.range,pos)};tempFunc()},_mousemove:function(d){var c=d||window.event;this._moveHandler(c,false)},_mouseup:function(d){var c=d||window.event;this._moveHandler(c,true);a.unbind(this.document,"mouseup",this.mouseup);a.unbind(this.document,"mousemove",this.mousemove);this.container.style.cursor="pointer"},_mousedown:function(d){var c=d||window.event;this._moveHandler(c,false);a.bind(this.document,"mouseup",this.mouseup);a.bind(this.document,"mousemove",this.mousemove);if(c.preventDefault){c.preventDefault()}c.returnValue=false},_moveHandler:function(e,i){var f=e.clientX-1/2*this.controller.clientWidth-a.findPos(this.container).x-this.borderFix,h=this.container.clientWidth-this.controller.clientWidth-2*this.borderFix,g=h/this.range,c=g/2,d=f%g,j=0;if(f<0){f=0;d=0}else{if(f>h){f=h;d=0}}if(i&&d<c){j=f-d}else{if(i&&d>g-c){j=f-d+g}else{j=f}}this._valueChange(j/h*this.range,j)},_valueChange:function(c,d){this.callback(c);this.controller.style.left=d+this.borderFix+"px";if(this.bar){this.bar.style.width=d+this.controller.clientWidth/2+"px"}}};a.Slider=b})(J);(function(a){var b=function(){this.nodes=[];this.originals={};this.transResults={};this.tipsResults={}};b.prototype={addNode:function(e,c){var d=0;if(!c){for(;d<this.nodes.length;d++){if(this.nodes[d]===e){return d}}}this.nodes.push(e);this.originals[d]=e.nodeValue;return d},replaceTrans:function(d){if(this.nodes[d]&&this.transResults[d]){var f=this.nodes[d],h=document.createElement("font"),c=this.transResults[d];try{if(f.nodeValue===c){return false}if(!f.parentNode){return}}catch(g){return}f.nodeValue="";h.className="OUTFOX_JTR_TRANS_NODE";h.id="OUTFOX_JTR_TRANS_NODE-"+d;h.setAttribute("rel",d);h.innerHTML=c;try{f.parentNode.insertBefore(h,f.nextSibling)}catch(e){}}},revertTrans:function(c){if(this.nodes[c]&&this.originals[c]){var e=a.query("#OUTFOX_JTR_TRANS_NODE-"+c);if(e&&e.parentNode){e.parentNode.removeChild(e)}try{this.nodes[c].nodeValue=this.originals[c]}catch(d){}}},replaceTips:function(d,c){var e=c||-1;if(this.nodes[d]&&this.tipsResults[d]){a.each(this.tipsResults[d],function(q,n){if(n.level&&n.level<e){return}var k=this.nodes[d],i=n.start,m=n.end,o=n.explain;if(typeof k.parentNode===undefined){return}var h=document.createElement("font");h.className="OUTFOX_NANCI_WRAPPER";try{var p=k.nodeValue.substr(0,i),g=k.nodeValue.substr(i,m-i),f=k.nodeValue.substr(m);k.nodeValue=p;h.innerHTML=g;k.parentNode.insertBefore(document.createTextNode(f),k.nextSibling);k.parentNode.insertBefore(h,k.nextSibling);var j=document.createElement("font");j.className="OUTFOX_NANCI_TIPS";j.setAttribute("rel",d);j.innerHTML="("+o+")";h.parentNode.insertBefore(j,h.nextSibling)}catch(l){}},this)}},revertTips:function(c){if(this.nodes[c]){var d;do{try{d=!this.revertTip(this.nodes[c].nextSibling)}catch(e){d=true}}while(!d)}},revertTip:function(d){if(a.hasClass(d,"OUTFOX_NANCI_WRAPPER")&&d.firstChild){var c=d.nextSibling;if(a.hasClass(c,"OUTFOX_NANCI_TIPS")){c.parentNode.removeChild(c)}if(d.nextSibling&&d.nextSibling.nodeType===3){d.firstChild.nodeValue+=d.nextSibling.nodeValue;d.parentNode.removeChild(d.nextSibling)}if(d.previousSibling&&d.previousSibling.nodeType===3){d.previousSibling.nodeValue+=d.firstChild.nodeValue;d.parentNode.removeChild(d)}return true}else{return false}},countTips:function(d){var c=0;a.each(this.tipsResults,function(g,e){for(var f=0;f<e.length;f++){if(e[f].level>=d){c++}}},this);return c}};a.NodeManager=b})(J);(function(a){var b=function(){this.map={};this.dataMap={}};b.prototype={getId:function(c){var d=null;a.each(this.map,function(f,e){if(e===c){d=f;return false}});if(d===null){d=a.guid();this.map[d]=c}return d},data:function(g,c,f){var h=this.getId(g);if(arguments.length===3){if(!this.dataMap[h]){this.dataMap[h]={}}this.dataMap[h][c]=f;return f}else{var e=null;try{e=this.dataMap[h][c]}catch(d){e=undefined}return e}}};a.Cache=b})(J);(function(a){var b=function(d){this.contentDocument=d;this.cache=new a.Cache()};b.prototype={IGNORE_TAGS:["HTML","HEAD","META","TITLE","SCRIPT","STYLE","LINK","IMG","FORM","INPUT","BUTTON","TEXTAREA","SELECT","OPTION","LABEL","IFRAME","UL","OL","LI","DD","DT","A","OBJECT","PARAM","EMBED","NOSCRIPT","EM","B","STRONG","I","INS","BR","HR","PRE","H1","H2","H3","H4","H5","CITE"],getMainArticle:function(){return null;var g=null,e="";if(!!location){e=location.hostname}if(/\b(google|facebook|twitter)\b/i.test(e)){return null}var d=this._getAllArticle();if(!(d&&d.length)){return null}d.sort(function(i,h){return !!(h.weight-i.weight)});for(var f=2;f>0;f--){g=d[0];d.splice(0,1);break}return g},_getAllArticle:function(){var f=this.contentDocument.getElementsByTagName("*"),e=[];for(var d=0,h=f.length>100?100:f.length;d<h;d++){var g=f[d];if(this._checkTagName(g)&&this._checkSize(g)&&this._checkVisibility(g)){e[e.length]=new c(g)}}return e},_checkTagName:function(d){return a.indexOf(this.IGNORE_TAGS,d.tagName)==-1},_checkVisibility:function(d){return !(a.css(d,"visibility")=="hidden"||a.css(d,"display")=="none"||parseInt(a.css(d,"height"))<=0||parseInt(a.css(d,"width"))<=0)},_checkSize:function(d){return d.offsetWidth>300&&d.offsetHeight>200}};var c=function(d){this.elem=d;this._texts=this._getAllTexts();this.weight=this.calcWeight()};c.prototype={IGNORE_TAGS:["A","DD","DT","OL","OPTION","PRE","SCRIPT","STYLE","UL","IFRAME"],MINOR_REGEXP:/comment|combx|disqus|foot|header|menu|rss|shoutbox|sidebar|sponsor/i,MAJOR_REGEXP:/article|entry|post|body|column|main|content/i,TINY_REGEXP:/comment/i,BLANK_REGEXP:/\S/i,_getAllTexts:function(){var g=[],d=a.getTextNodes(this.elem);for(var h=0,f=d.length;h<f;h++){var j=d[h];if(this._checkTagName(j)&&this._checkLength(j)){var e=j.parentNode||{},i=e.parentNode||{};if(!(this._checkMinorContent(e)||this._checkMinorContent(i))){g.push(j)}}}return g},calcStructWeight:function(){var d=0;for(var i=0,e=this._texts.length;i<e;i++){var j=this._texts[i],g=j.nodeValue.length,h=1;if(g>20){continue}for(var f=j.parentNode;f&&f!=this.elem;f=f.parentNode){h-=0.1}d+=Math.pow(g*h,1.25)}return d},calcContentWeight:function(){var d=1;for(var e=this.elem;e;e=e.parentNode){var f=e.id+" "+e.className;if(this.MAJOR_REGEXP.test(f)){d+=0.4}if(this.MINOR_REGEXP.test(f)){d-=0.8}}return d},calcWeight:function(){return this.calcStructWeight()*this.calcContentWeight()},_checkTagName:function(d){return a.indexOf(this.IGNORE_TAGS,d.tagName)==-1},_checkLength:function(d){return Boolean(this.BLANK_REGEXP.test(d.nodeValue))},_checkMinorContent:function(d){return Boolean(this.TINY_REGEXP.test(d.id+" "+d.className))}};a.Page=b})(J);(function(a){var b={runCount:0,swipe:true,mode:"TIPS",level:1};var c={0:["TIPS",3],1:["TIPS",2],2:["TIPS",1],3:["TRANS","0"],4:["NONE","NONE"]};a.TR.UI=function(e,f){var d=this;this.initLogger(f.logURL);this.log({action:"start"});this.guid=a.guid();this.context=e;this.conn=a.CDA("OUTFOX_JTR_CDA",f.domain,f.connFilePath);this.update=f.update;this.updateTipMsg=f.updateTipMsg;this.updateDate=f.updateDate;this.manager=new a.NodeManager();this.barHeight=50;this.permissionDenied="由于该网页存在安全性限制, 无法加载有道网页翻译2.0";this.translator=new a.TR(e,{reqSize:f.reqSize,onStatusChange:function(){d._trStatusChangeCallback.apply(d,arguments)},url:{textTrans:f.transURL,tips:f.tipsURL},guid:this.guid},this.conn,this.manager);this.queue={TRANS:{0:{currentThread:-1}},TIPS:{1:{currentThread:-1},2:{currentThread:-1},3:{currentThread:-1}},NONE:{NONE:{}}};this.mode=null;this.level=null;this.initFrame(f.cssURL,function(){var h="";var g=this;if(location){h=location.href}this.movePage(g.barHeight);this.frame.body.innerHTML=' <div id="wrapper"> <a href="http://fanyi.youdao.com/web2/?keyfrom=headerLogo" target="_blank"> <h1 id="headerLogo" class="logo"></h1> </a> <div id="sliderLabel">翻译级别</div> <div id="sliderWrapper" class="slider-wrapper"> <div id="levelLabel"> <label id="level-3" rel="0"><a>专   家</a></label> <label id="level-2" rel="1"><a>进   阶</a></label> <label id="level-1" rel="2"><a>入   门</a></label> <label id="level-0" rel="3"><a>全文翻译</a></label> </div> <div id="sliderContainer" class="slider-container"> <div id="sliderBackground"><div class="slider-background"></div></div> <a id="slider" href="javascript:void(0);" class="slider"></a> </div> </div> <div id="status"></div> <div id="switchWrapper"><a id="switch" href="javascript:void(0);"></a></div> </div> <a id="OUTFOX_JTR_BAR_CLOSE" href="javascript:void(0);" class="OUTFOX_JTR_BAR_CLOSE"></a> <div id="OUTFOX_JTR_BAR_UPDATE_SHADE"></div> <div id="OUTFOX_JTR_BAR_CLOSE_UPDATE_TIP"> <div id="OUTFOX_JTR_BAR_CLOSE_UPDATE_TIP_CONTENT"></div> </div>';this.initTipContent();this.initBarClose();this.initSwitch();this.initSlider();this.initLabel();this.initTipsCtrl();this.initTransTip();this.initSwipe();var i=function(j){g.loadSetting(j);g.enable();g.writeSettings({runCount:g.settings.runCount+1});a.each(c,function(k,l){if(g.mode===l[0]&&g.level===l[1]){g.slider.to(k)}})};this.conn.ajax({handler:"localStorage",data:{key:"settings"},dataType:"json",callback:function(j){i(j)}})})};a.TR.UI.prototype={positionElementInViewPort:function(k){var n=k.tip;var x=k.target;var l=!!(a.css(document.body,"position")!=="static");var r=a.css(document.body,"marginLeft");var h=a.css(document.body,"marginRight");if(r==="auto"&&h==="auto"){var w=a.getPageSize().page.width;var d=parseInt(a.css(document.body,"width"));if(w>d){r=(w-d)/2}else{r=0}}r=l?parseInt(r):0;var f=l?parseInt(a.css(document.body,"marginTop")):0;var j=a.findPos(x),p=0,g=0,e=a.scroll().top,s=a.scroll().left,t=j.x,m=j.y,i=x.offsetHeight,o=n.clientHeight,u=n.clientWidth,q=a.getPageSize().window.height,v=a.getPageSize().window.width;if(m-o>=e+this.barHeight){p=m-o}else{p=m+i}if(t+u<=v+s){g=t}else{g=v+s-u}a.css(k.tip,{position:"absolute",top:(p-f)+"px",left:(g-r)+"px"})},disable:function(){this.changeMode("NONE","NONE");this.slider.disable();this.frame.body.className="disable";this.disabled=true;this.updateStatus();this.switchElem.innerHTML="重新翻译"},enable:function(){this.changeMode(this.settings.mode,this.settings.level);this.slider.enable();a.removeClass(this.frame.body,"disable");a.addClass(this.frame.body,"enable");this.disabled=false;this.updateStatus();this.switchElem.innerHTML="取消翻译"},_trStatusChangeCallback:function(e){if(!e.id||!e.action||!e.level){return}var d=this.queue[e.action][e.level];if(d.currentThread<=e.id){d.currentThread=e.id;d.status=e.status;d.data=e.data||null;if(e.action===this.mode&&e.level===this.level){this.updateStatus()}}},updateStatus:function(){var f=this.queue[this.mode][this.level];a.removeClass(this.statusElem.parentNode,"statistic");if(f.status==="busy"&&f.data){this.switchElem.style.visibility="hidden";var d=parseInt(f.data[0]*100/f.data[1],10);if(this.mode==="TRANS"){this.statusElem.innerHTML="正在翻译 "+d+"% ..."}else{this.statusElem.innerHTML="正在分析 "+d+"% ..."}this.statusElem.className="busy"}else{if(f.status==="finish"){this.switchElem.style.visibility="inherit";if(this.mode==="TRANS"){this.statusElem.innerHTML="翻译完成"}else{var e=this.manager.countTips(this.level);if(e!==0){a.addClass(this.statusElem.parentNode,"statistic");this.statusElem.innerHTML='共注释<span class="OUTFOX_BAR_TOTAL_NUM">'+e+"</span>个难词"}else{this.statusElem.innerHTML="恭喜您!该网页上没有难词~"}}this.statusElem.className="finish"}else{this.switchElem.style.visibility="inherit";this.statusElem.innerHTML="翻译助手已关闭";this.statusElem.className="finish"}}},initLogger:function(d){this.logURL=d;this._logImgCache=[]},log:function(e){/*if(this.logURL){e.relatedURL=document.location.href;e.guid=this.guid;var d=new Image();d.src=this.logURL+"?"+a.param(e)+"&"+(new Date()).getTime();this._logImgCache[this._logImgCache.length]=d}*/},initSwipe:function(){var d=this;this.swipe=a.Swipe(this.context,this.conn);this.swipe.onSwipeCallback=function(e){d.log({action:"swipeWord",word:e})}},movePage:function(d){if(a.browser.msie){var f=a.css(this.context,"paddingTop");try{f=parseInt(f)}catch(e){f=0}this.context.style.cssText+=";padding-top:"+(d+f)+"px !important;"}else{var g=a.css(this.context,"marginTop");try{g=parseInt(g)}catch(e){g=0}if(a.css(this.context,"position")==="static"){a.css(this.context,{position:"relative"})}this.context.style.cssText+=";margin-top:"+(d+g)+"px !important;"}},initFrame:function(f,i){var d=this;var h=document.createElement("div");h.id="OUTFOX_BAR_WRAPPER";this.context.appendChild(h);this.wrapper=h;function g(k){k.innerHTML='<iframe id="OUTFOX_JTR_BAR" src="" style="display:none;"></iframe>';var j=a.query("#OUTFOX_JTR_BAR");j.setAttribute("frameBorder",0);if(a.browser.msie&&document.domain!=window.location.hostname){j.src="javascript:void(document.write(\"<script>document.domain='"+document.domain+"';<\/script><body></body>\"))"}if(a.browser.msie&&!(a.browser.msie==="8.0"&&document.compatMode==="CSS1Compat")){a.css(j,{width:a.getPageSize().window.width+"px"});a.bind(window,"resize",function(l){a.css(j,{width:a.getPageSize().window.width+"px"})})}return j}var e=g(h);this.iframe=e;setTimeout(function(){try{d.frame=e.contentDocument||e.contentWindow.document}catch(j){d.log({action:"secRestrict",relatedURL:window.location.href});alert(d.permissionDenied);return}a.css(e,{display:"block"});a.addClass(e,"OUTFOX_JTR_BAR");a.loadCSS(d.frame,f);d.frame.body.id="OUTFOX_JTR_BAR_BODY";a.addClass(d.frame.body,"forbid-select");d.frame.body.onselectstart=d.frame.body.ondrag=function(){return false};i.call(d)},100)},initBarClose:function(){var d=this;var e=this.frame.getElementById("OUTFOX_JTR_BAR_CLOSE");a.addClass(e,"OUTFOX_JTR_BAR_CLOSE");a.bind(window,"resize",function(f){a.css(e,{top:1+"px",right:1+"px"})});a.bind(e,"click",function(){d.disable();d.movePage(-d.barHeight);d.context.removeChild(d.wrapper);d.context.removeChild(a.query("#OUTFOX_JTR_CDA"));d.context.removeChild(a.query("#yddWrapper"));d.context.removeChild(a.query("#outfox_seed_js"))})},initTipContent:function(){if(!this.update){return}var d=this;var e=function(){var i=a.query("#OUTFOX_JTR_BAR_CLOSE_UPDATE_TIP_CONTENT",d.frame);var f=a.query("#OUTFOX_JTR_BAR_UPDATE_SHADE",d.frame);var h=a.query("#OUTFOX_JTR_BAR_CLOSE_UPDATE_TIP",d.frame);i.innerHTML="更新提示:<br/>"+d.updateTipMsg+'<span class="update-date">'+d.updateDate+'</span><a href="javascript:void(0);" id="OUTFOX_JTR_BAR_CLOSE_UPDATE_TIP_CONTENT_CLOSE"></a>';var g=a.query("#OUTFOX_JTR_BAR_CLOSE_UPDATE_TIP_CONTENT_CLOSE",d.frame);a.css(f,{display:"block"});a.css(h,{display:"block"});a.bind(g,"click",function(){a.css(f,{display:"none"});a.css(h,{display:"none"})})};d.conn.ajax({handler:"localStorage",data:{key:"date"},callback:function(f){if(f!==d.updateDate){e();d.conn.ajax({handler:"localStorage",data:{key:"date",value:d.updateDate}})}}})},initSwitch:function(){var d=this;this.statusElem=a.query("#status",this.frame);this.switchElem=a.query("#switch",this.frame);a.bind(this.switchElem,"click",function(f){if(d.disabled){d.enable()}else{d.disable()}})},initLabel:function(){this.labels=[];var d=this;var f=function(i){var g=i||window.event,h=g.target||g.srcElement,j=h.parentNode.getAttribute("rel");if(d.disabled){return}if(j){d.changeMode(c[j][0],c[j][1]);a.each(c,function(k,l){if(d.mode===l[0]&&d.level===l[1]){d.slider.to(k)}})}};for(var e=0;e<4;e++){this.labels[e]=a.query("#level-"+e,this.frame);a.bind(this.labels[e],"click",f)}},initSlider:function(){var e=a.query("#sliderContainer",this.frame);var d=a.query("#slider",this.frame);var f=this,h=null,g=10;this.slider=new a.Slider(e,d,{bar:a.query("#sliderBackground",this.frame),max:3,min:0,step:1,borderFix:-3,callback:function(i){clearTimeout(h);h=setTimeout(function(){f._valueChange(i)},g)}})},loadSetting:function(f){var e={};if(f===null||Object.prototype.toString.call(f)!=="[object Object]"){this.conn.ajax({handler:"localStorage",dataType:"json",data:{key:"settings",value:JSONDAO.stringify(b)}});e=b}else{for(var d in b){if(b.hasOwnProperty(d)){e[d]=f.hasOwnProperty(d)?f[d]:b[d]}}}e.mode=e.mode||b.mode;e.level=e.level||b.level;a.log("Load Settings:",e);this.settings=e},_valueChange:function(f){var g=Math.round(f),e=c[g][0],d=c[g][1];if(e!==this.mode){this.changeMode(e,d)}else{if(d!==this.level){this.changeLevel(d)}}},changeMode:function(e,f){if(this.mode==="TIPS"){for(var d=1;d<=3;d++){this.labels[d].className="deactive"}this.translator.revertTips()}else{if(this.mode==="TRANS"){this.labels[0].className="deactive";this.translator.revertTrans()}}this.swipe.disableSwipe();this.disableTransTip();this.disableTipsCtrl();this.mode=e;this.changeLevel(f)},changeLevel:function(e){a.log("Change level to:",e);if(this.level===null){this.log({action:"view",level:e})}else{this.log({action:"changeLevel",oldLevel:this.level,newLevel:e})}this.level=e;if(this.mode==="TIPS"){this.swipe.enableSwipe();for(var d=1;d<=3;d++){this.labels[d].className=d==e?"active":"deactive"}this.translator.revertTips();this.translator.doTips(this.level);this.enableTipsCtrl()}else{if(this.mode==="TRANS"){this.labels[0].className="active";this.translator.doTrans();this.enableTransTip()}}if(this.mode!=="NONE"){this.writeSettings({mode:this.mode,level:this.level})}},writeSettings:function(d){a.each(d,function(e,f){this.settings[e]=f},this);this.conn.ajax({handler:"localStorage",dataType:"json",data:{key:"settings",value:JSONDAO.stringify(this.settings)}})},initTipsCtrl:function(){var d=this,f=this.initTipsCtrlElem();var e=null;this.tipsTarget=null;this.tipsCtrlHandler=function(j){var h=j||window.evt,i=h.target||h.srcElement,g=0,k=0;clearTimeout(e);if(i===d.tipsTarget||i.className&&i.className.indexOf("OUTFOX_JTR_NANCI_")!==-1){return}e=setTimeout(function(){if(f.parentNode){f.parentNode.removeChild(f)}if(a.hasClass(i,"OUTFOX_NANCI_TIPS")){var t=a.findPos(i),l=a.query(".OUTFOX_JTR_NANCI_CTRL_WORD",f)[0],m=null;d.context.appendChild(f);l.innerHTML=i.innerHTML;var v=a.css(i,"fontSize");var r=a.css(i,"fontFamily");try{if(v.indexOf("em")!=-1){}else{if(parseInt(v)<12){v="12px"}}}catch(q){v="12px"}var w=!!(a.css(document.body,"position")!=="static");var o=a.css(document.body,"marginLeft");var s=a.css(document.body,"marginRight");if(o==="auto"&&s==="auto"){var u=a.getPageSize().page.width;var p=parseInt(a.css(document.body,"width"));if(u>p){o=(u-p)/2}else{o=0}}o=w?parseInt(o):0;var n=w?parseInt(a.css(document.body,"marginTop")):0;a.css(l,{fontSize:v});a.css(l,{fontFamily:r});a.css(f,{left:(t.x-o)+"px",top:(t.y-n)+"px",position:"absolute"});d.tipsTarget=i}else{d.tipsTarget=null}},200)}},initTipsCtrlElem:function(){var j=document.createElement("span"),g=document.createElement("span"),h=document.createElement("a"),i=document.createElement("span"),k=document.createElement("a"),d=document.createElement("span"),l=this;d.className="OUTFOX_JTR_NANCI_CTRL_WORD";j.appendChild(d);h.className="OUTFOX_JTR_NANCI_CTRL_DETAIL";h.setAttribute("title","查看详细解释");h.innerHTML="详解";g.appendChild(h);g.className="OUTFOX_JTR_NANCI_CTRL_DETAIL_BG";j.appendChild(g);k.className="OUTFOX_JTR_NANCI_CTRL_CLOSE";k.setAttribute("title","我知道了");k.innerHTML="关闭";i.appendChild(k);i.className="OUTFOX_JTR_NANCI_CTRL_CLOSE_BG";j.appendChild(i);j.className="OUTFOX_JTR_NANCI_BAR";var f=function(){var m=null;try{m=l.tipsTarget.previousSibling}catch(n){}return m};var e=function(o){var m=null;if(document.createRange){var n=window.getSelection();m=document.createRange();n.removeAllRanges();m.selectNode(o);n.addRange(m)}else{if(document.body.createTextRange){m=document.body.createTextRange();m.moveToElementText(o);m.select()}}};a.bind(h,"click",function(o){var q=f();if(q&&l.swipe){l.log({action:"viewDetail",word:q.innerHTML});e(q);var p=document.createElement("font");p.innerHTML=" ";q.appendChild(p);var n=a.findPos(p),m=p.offsetHeight;q.removeChild(p);l.swipe.swipeWord(q.firstChild.nodeValue,n.x,n.y,0,m)}j.parentNode.removeChild(j);a.removeClass(l.tipsTarget,"on")});a.bind(k,"click",function(m){var n=j.getAttribute("rel"),o=f();if(o){l.log({action:"closeTip",word:o.innerHTML,tip:l.tipsTarget.innerHTML});l.translator._manager.revertTip(o)}j.parentNode.removeChild(j);a.removeClass(l.tipsTarget,"on")});return j},_findTipCtrlPosition:function(e,t){var u=e.firstChild,n=u.nodeValue,p=u.nodeValue.length,k=document.createElement("font"),f=document.createTextNode(""),r=[0,0],j=null,h=null,q=null,o=0,m=0,d=0,s=p,g=null;a.css(k,{border:"none",padding:0,margin:0});for(var l=0;l<=p;l++){f.nodeValue=u.nodeValue.substr(l);u.nodeValue=u.nodeValue.substr(0,l);e.insertBefore(f,u.nextSibling);e.insertBefore(k,u.nextSibling);q=a.findPos(k);o=q.x-t[0];m=q.y-t[1];if(m<=0&&(h===null||m>h)){g=h=m;r[0]=q.x;r[1]=q.y;j=null;d=l}if(m!==g){s=l;g=m}u.nodeValue=n;e.removeChild(f);e.removeChild(k)}k.innerHTML=u.nodeValue.substr(d,s);u.nodeValue=u.nodeValue.substr(0,d);e.insertBefore(k,u.nextSibling);r[0]+=k.offsetWidth;e.removeChild(k);u.nodeValue=n;return r},preventClose:function(){a.css(a.query("#OUTFOX_JTR_BAR_CLOSE",this.frame),{display:"none"})},enableTipsCtrl:function(){a.bind(this.context,"mouseover",this.tipsCtrlHandler)},disableTipsCtrl:function(){a.unbind(this.context,"mouseover",this.tipsCtrlHandler)},enableTransTip:function(){a.bind(this.context,"mouseover",this.transTipHandler)},disableTransTip:function(){a.unbind(this.context,"mouseover",this.transTipHandler)},initTransTip:function(d){var f=this,g=null,e=null;this.initTransTipElem("","");this.transTipHandler=function(j){var h=j||window.event,i=h.target||h.srcElement;clearTimeout(e);e=setTimeout(function(){if(g===i||i.className&&(i.className.indexOf("OUTFOX_JTR_TRANSTIP_")!==-1||i.className.indexOf("ydd-")!==-1)){return}if(g){g.style.textDecoration="none"}if(f.transTipElem.elem.parentNode){f.transTipElem.elem.parentNode.removeChild(f.transTipElem.elem)}if(a.hasClass(i,"OUTFOX_JTR_TRANS_NODE")){g=i;var k=i.getAttribute("rel"),l=f.translator._manager;f.resetTransTipElem(l.originals[k],l.transResults[k],k);f.context.appendChild(f.transTipElem.elem);f.positionElementInViewPort({target:i,tip:f.transTipElem.elem});i.style.textDecoration="underline"}else{g=null}},200)}},initTransTipElem:function(){var k=this,g=document.createElement("div");g.className="OUTFOX_JTR_TRANSTIP_WRAPPER";var m=document.createTextNode("");var e=document.createTextNode("");g.innerHTML+='<div class="OUTFOX_JTR_TRANSTIP_ORIGIN"> <div class="ydd-container"> <div class="ydd-top-wrapper"> <div class="ydd-top"> </div> </div> <div class="ydd-body-wrapper"> <div class="ydd-lb"></div> <div class="ydd-rb"></div> <div class="ydd-body"> <div class="ydd-title"> <strong>原文:</strong> </div> <div class="ydd-middle"> <div class="OUTFOX_JTR_TRANSTIP_ORIGIN_TEXT"></div> <div class="OUTFOX_JTR_TRANSTIP_ADVISE"> <textarea class="OUTFOX_JTR_TRANSTIP_ADVISE_TEXT"></textarea> <a class="OUTFOX_JTR_TRANSTIP_ADVISE_SUBMIT" href="javascript:void(0);">提交翻译建议</a> </div> </div> </div> </div> <div class="ydd-bottom-wrapper"> <div class="ydd-bottom"> <a class="OUTFOX_JTR_TRANSTIP_ADVISE_TOGGLE">更好的翻译建议</a> <span class="OUTFOX_JTR_TRANSTIP_ADVISE_THANK">感谢您为有道提供建议^_^</span> </div> </div> <div class="ydd-bg-top"></div> </div> </div>';a.query(".OUTFOX_JTR_TRANSTIP_ORIGIN_TEXT",g)[0].appendChild(e);a.query(".OUTFOX_JTR_TRANSTIP_ADVISE_TEXT",g)[0].appendChild(m);var f=a.query(".OUTFOX_JTR_TRANSTIP_ADVISE_TOGGLE",g)[0],i=a.query(".OUTFOX_JTR_TRANSTIP_ADVISE_SUBMIT",g)[0],l=a.query(".OUTFOX_JTR_TRANSTIP_ADVISE",g)[0],d=a.query(".ydd-bottom",g)[0],h=a.query(".OUTFOX_JTR_TRANSTIP_ADVISE_TEXT",g)[0];i.hideFocus=true;a.bind(f,"click",function(){a.toggleClass(l,"expand");a.css(f,{display:"none"})});var j=function(n){n=n.replace(/</g,"<").replace(/>/g,">");return n};a.bind(i,"click",function(){var o=h.value;if(o===""){alert("翻译建议不能为空,请您输入内容后再次提交");return}o=j(o);a.addClass(l,"finish");a.removeClass(l,"expand");a.addClass(d,"OUTFOX_JTR_TRANSTIP_ADVISE_THANK_TIP");var n=k.transTipElem.index;if(n&&k.manager.transResults[n]){k.manager.transResults[n]=o;k.manager.revertTrans(n);k.manager.replaceTrans(n)}});this.transTipElem={elem:g,transTextContainer:h,trans:m,original:e,toggle:f,submit:i,advise:l,bottom:d,index:null}},resetTransTipElem:function(d,f,e){a.removeClass(this.transTipElem.advise,"finish");a.removeClass(this.transTipElem.advise,"expand");a.removeClass(this.transTipElem.bottom,"OUTFOX_JTR_TRANSTIP_ADVISE_THANK_TIP");this.transTipElem.toggle.innerHTML="提交翻译建议";a.css(this.transTipElem.toggle,{display:""});this.transTipElem.transTextContainer.value=f;this.transTipElem.original.nodeValue=d;this.transTipElem.index=e}}})(J);(function(d){var f="http://fanyi.youdao.com/web2";var g="http://fanyi.youdao.com";var h=browser.runtime.getURL("assets/fanyi.youdao.2.0/conn.html");var c=f+"/index.do";var a=g+"/jtr";var e=f+"/rl.do";var b=browser.runtime.getURL("assets/fanyi.youdao.2.0/all-packed.css");d.loadCSS(document,b);window.OUTFOX_JavascriptTranslatoR=new d.TR.UI(document.body,{domain:g,update:false,updateTipMsg:"修复链接错误",updateDate:"2013-12-24",cssURL:b,tipsURL:c,transURL:a,logURL:e,connFilePath:h,reqSize:20})})(J); - - return 1; // so that chrome.tabs.executeScript knows everything is fine -})() diff --git a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/swipe_hr.png b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/swipe_hr.png deleted file mode 100644 index d932ccd4..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/swipe_hr.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/switch_button.png b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/switch_button.png deleted file mode 100644 index e42164ae..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/switch_button.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/switch_button_hover.png b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/switch_button_hover.png deleted file mode 100644 index 5def75aa..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/switch_button_hover.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/trans_tip_submit_bg.png b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/trans_tip_submit_bg.png deleted file mode 100644 index a90bf7ef..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/trans_tip_submit_bg.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/trans_tip_submit_bg_hover.png b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/trans_tip_submit_bg_hover.png deleted file mode 100644 index 227bed2f..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/trans_tip_submit_bg_hover.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/ydd_tip.png b/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/ydd_tip.png deleted file mode 100644 index 7d05cdf4..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/fanyi.youdao.2.0/ydd_tip.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/favicon-ahdict.51ab8a55.png b/plugins/saladict-ztools/ext-saladic/assets/favicon-ahdict.51ab8a55.png new file mode 100644 index 00000000..d65495ea Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/favicon-ahdict.51ab8a55.png differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/favicon-cnki.9d1835fe.png b/plugins/saladict-ztools/ext-saladic/assets/favicon-cnki.9d1835fe.png deleted file mode 100644 index 6fac9a75..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/favicon-cnki.9d1835fe.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/favicon-googledict.e936e12b.png b/plugins/saladict-ztools/ext-saladic/assets/favicon-googledict.e936e12b.png deleted file mode 100644 index 9cec0133..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/favicon-googledict.e936e12b.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/favicon-jikipedia.40135efc.png b/plugins/saladict-ztools/ext-saladic/assets/favicon-jikipedia.40135efc.png deleted file mode 100644 index fcdb4a75..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/favicon-jikipedia.40135efc.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/favicon-jukuu.7d8ea82f.png b/plugins/saladict-ztools/ext-saladic/assets/favicon-jukuu.7d8ea82f.png deleted file mode 100644 index b49e4718..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/favicon-jukuu.7d8ea82f.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/favicon-lexico.cfe48cf5.png b/plugins/saladict-ztools/ext-saladic/assets/favicon-lexico.cfe48cf5.png deleted file mode 100644 index bdd1981e..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/favicon-lexico.cfe48cf5.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/favicon-macmillan.50284e7f.png b/plugins/saladict-ztools/ext-saladic/assets/favicon-macmillan.50284e7f.png deleted file mode 100644 index 3b5c742c..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/favicon-macmillan.50284e7f.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/favicon-merriamwebster.1fc05990.png b/plugins/saladict-ztools/ext-saladic/assets/favicon-merriamwebster.1fc05990.png new file mode 100644 index 00000000..e3f79cf2 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/favicon-merriamwebster.1fc05990.png differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/favicon-oaldict.3cf302d4.png b/plugins/saladict-ztools/ext-saladic/assets/favicon-oaldict.3cf302d4.png new file mode 100644 index 00000000..94d808c7 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/favicon-oaldict.3cf302d4.png differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/favicon-websterlearner.ef2a5d08.png b/plugins/saladict-ztools/ext-saladic/assets/favicon-websterlearner.ef2a5d08.png deleted file mode 100644 index e366f29b..00000000 Binary files a/plugins/saladict-ztools/ext-saladic/assets/favicon-websterlearner.ef2a5d08.png and /dev/null differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/franc.2cee6ff1.js b/plugins/saladict-ztools/ext-saladic/assets/franc.36a29920.js similarity index 99% rename from plugins/saladict-ztools/ext-saladic/assets/franc.2cee6ff1.js rename to plugins/saladict-ztools/ext-saladic/assets/franc.36a29920.js index c84c64ef..199f56d7 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/franc.2cee6ff1.js +++ b/plugins/saladict-ztools/ext-saladic/assets/franc.36a29920.js @@ -1 +1 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[2],{1191:function(a,n){a.exports={cmn:/[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DB5\u4E00-\u9FCC\uF900-\uFA6D\uFA70-\uFAD9]|[\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/g,Latin:/[A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A]/g,Cyrillic:/[\u0400-\u0484\u0487-\u052F\u1D2B\u1D78\u2DE0-\u2DFF\uA640-\uA69D\uA69F]/g,Arabic:/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061E\u0620-\u063F\u0641-\u064A\u0656-\u065F\u066A-\u066F\u0671-\u06DC\u06DE-\u06FF\u0750-\u077F\u08A0-\u08B2\u08E4-\u08FF\uFB50-\uFBC1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFD\uFE70-\uFE74\uFE76-\uFEFC]|\uD803[\uDE60-\uDE7E]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB\uDEF0\uDEF1]/g,ben:/[\u0980-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FB]/g,Devanagari:/[\u0900-\u0950\u0953-\u0963\u0966-\u097F\uA8E0-\uA8FB]/g,jpn:/[\u3041-\u3096\u309D-\u309F]|\uD82C\uDC01|\uD83C\uDE00|[\u30A1-\u30FA\u30FD-\u30FF\u31F0-\u31FF\u32D0-\u32FE\u3300-\u3357\uFF66-\uFF6F\uFF71-\uFF9D]|\uD82C\uDC00|[㐀-䶵一-龯]/g,kor:/[\u1100-\u11FF\u302E\u302F\u3131-\u318E\u3200-\u321E\u3260-\u327E\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/g,tel:/[\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C78-\u0C7F]/g,tam:/[\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA]/g,guj:/[\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1]/g,kan:/[\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2]/g,mal:/[\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D75\u0D79-\u0D7F]/g,mya:/[\u1000-\u109F\uA9E0-\uA9FE\uAA60-\uAA7F]/g,ori:/[\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77]/g,pan:/[\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75]/g,amh:/[\u1200-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]/g,tha:/[\u0E01-\u0E3A\u0E40-\u0E5B]/g,sin:/[\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4]|\uD804[\uDDE1-\uDDF4]/g,ell:/[\u0370-\u0373\u0375-\u0377\u037A-\u037D\u037F\u0384\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03E1\u03F0-\u03FF\u1D26-\u1D2A\u1D5D-\u1D61\u1D66-\u1D6A\u1DBF\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u2126\uAB65]|\uD800[\uDD40-\uDD8C\uDDA0]|\uD834[\uDE00-\uDE45]/g}},1192:function(a){a.exports=JSON.parse('{"Latin":{"spa":" de|os |de | la|la | y | a |es |ón |ión|rec|ere|der| co|e l|el |en |ien|cho|ent|ech|ció|aci|o a|a p| el|a l|al |as |e d| en|na |ona|s d|da |nte| to|ad |ene|con| pr| su|tod| se|ho |los| pe|per|ers| lo|o d| ti|cia|n d|cio| es|ida|res|a t|tie|ion|rso|te |do | in|son| re| li|to |dad|tad|e s|est|pro|que|men| po|a e|oda|nci| qu| un|ue |ne |n e|s y|lib|su | na|s e|nac|ia |e e|tra| pa|or |ado|a d|nes|ra |se |ual|a c|er |por|com|nal|rta|a s|ber| o |one|s p|dos|rá |sta|les|des|ibe|ser|era|ar |ert|ter| di|ale|l d|nto|hos|del|ica|a a|s n|n c|oci|imi|io |o e|re |y l|e c|ant|cci| as|las|par|ame| cu|ici|ara|enc|s t|ndi| so|o s|mie|tos|una|bre|dic|cla|s l|e a|l p|pre|ntr|o t|ial|y a|nid|n p|a y|man|omo|so |n l| al|ali|s a|no | ig|s s|e p|nta|uma|ten|gua|ade|y e|soc|mo | fu|igu|o p|n t|hum|d d|ran|ria|y d|ada|tiv|l e|cas| ca|vid|l t|s c|ido|das|dis|s i| hu|s o|nad|fun| ma|rac|nda|eli|sar|und| ac|uni|mbr|a u|die|e i|qui|a i| ha|lar| tr|odo|ca |tic|o y|cti|lid|ori|ndo|ari| me|ta |ind|esa|cua|un |ier|tal|esp|seg|ele|ons|ito|ont|iva|s h|d y|nos|ist|rse| le|cie|ide|edi|ecc|ios|l m|r e|med|tor|sti|n a|rim|uie|ple|tri|ibr|sus|lo |ect|pen|y c|an |e h|n s|ern|tar|l y|egu|gur|ura|int|ond|mat|l r|r a|isf|ote","eng":" th|the| an|he |nd |and|ion| of|of |tio| to|to |on | in|al |ati|igh|ght|rig| ri|or |ent|as |ed |is |ll |in | be|e r|ne |one|ver|all|s t|eve|t t| fr|s a| ha| re|ty |ery| or|d t| pr|ht | co| ev|e h|e a|ng |ts |his|ing|be |yon| sh|ce |ree|fre|ryo|n t|her|men|nat|sha|pro|nal|y a|has|es |for| hi|hal|f t|n a|n o|nt | pe|s o| fo|d i|nce|er |ons|res|e s|ect|ity|ly |l b|ry |e e|ers|e i|an |e o| de|cti|dom|edo|eed|hts|ter|ona|re | no| wh| a | un|d f| as|ny |l a|e p|ere| en| na| wi|nit|nte|d a|any|ted| di|ns |sta|th |per|ith|e t|st |e c|y t|om |soc| ar|ch |t o|d o|nti|s e|equ|ve |oci|man| fu|ote|oth|ess| al| ac|wit|ial| ma|uni| se|rea| so| on|lit|int|r t|y o|enc|thi|ual|t a| eq|tat|qua|ive| st|ali|e w|l o|are|f h|con|te |led| is|und|cia|e f|le | la|y i|uma|by | by|hum|f a|ic | hu|ave|ge |r a| wo|o a|ms |com| me|eas|s d|tec| li|n e|en |rat|tit|ple|whe|ate|o t|s r|t f|rot| ch|cie|dis|age|ary|o o|anc|eli|no | fa| su|son|inc|at |nda|hou|wor|t i|nde|rom|oms| ot|g t|eme|tle|iti|gni|s w|itl|duc|d w|whi|act|hic|aw |law| he|ich|min|imi|ort|o s|se |e b|ntr|tra|edu|oun|tan|e d|nst|l p|d n|ld |nta|s i|ble|n p| pu|n s| at|ily|rth|tho|ful|ssi|der|o e|cat|uca|unt|ien| ed|o p|h a|era|ind|pen|sec|n w|omm|r s","por":"os |de | de| a | e |o d|to |ão | di|ent|da |ito|em | co|eit|as |dir|es |ire|rei| se|ção|ade|a p|dad|e d|s d|men|nte|do |s e| pr| pe|dos| to| da|a a|o e| o |o a|ess|con|tod|que| qu|te |e a| do|al |res|ida|m d| in| ou|er |sso| na| re| po|a s| li|uma|cia|ar |pro|e e|a d| te|açã|a t| es| su|ou |ue |s p|tos|a e|des|ra |com|no |ame|ia |e p|tem|nto| pa|is |est|tra|ões|na |s o|oda|das|ser|soa|s n|pes|o p|s a|o s|e o| em| as| à |o o|ais|ber|ado|oa |o t|e s|man|sua|ua | no| os|a c|ter|çõe|erd|lib|rda|s s|nci|ibe|e n|ica|odo|so |nal|ntr|s t|hum|ura| ao|ona|ual| so|or |ma |sta|o c|a n|pre|ara|era|ons|e t|r a|par|o à| hu|ind|por|cio|ria|m a|s c| um|a l|gua|ran| en|ndi|o i|e c|raç|ion|nid|aci|ano|soc|e r|oci| ac|und|sen|nos|nsi|rec|ime|ali|int|um |per|nac| al|m o|r p| fu|ndo|ont|açõ| ig|igu|fun|nta| ma|uni|cçã|ere| ex|a i| me|ese|rio|l d|a o|s h|pel|ada|pri|ide|am |m p|pod|s f|ém |a f|io |ode|ca |ita|lid|tiv|e f|vid|r e|esp|nda|omo|e l|naç|o r|ant|a q|tad|lic|iva| fa|ver|s l|ial|cla|ngu|ing| ca|mo |der| vi|eli|ist|ta |se |ati|ios|ido|r o|eci|dis| un|e i|r d|ecç|o q|s i|qua|ênc|a m|seu|sti|nin|uer|rar|cas|aos|ens|gué|ias|sid|uém|tur|dam|sse|ao |ela|l e|for|tec|ote| pl|ena| tr|m c|tro| ni|ico|rot","ind":"an |ang| da|ng | pe|ak | ke| me|ata| se|dan|kan| di| be|hak|ber|per|ran|nga|yan|eng| ya| ha|asa|gan|men|ara|nya|n p|n d|n k|a d|tan| at|at |ora|ala|san| ba|ap |erh|n b|rha|ya | ma|g b|a s|pen|eba|as |aan|uk |ntu| or|eti|tas|aka|tia|ban|set| un|n s|ter|n y| te|k m|tuk|bas|iap|lam|beb|am | de|k a|keb|n m|i d|unt|ama|dal|ah |ika|dak|ebe|p o|sa |pun|mem|n h|end|den|ra |ela|ri |nda| sa|di |ma |a m|n t|k d|n a|ngg|tau|man|gar|eri|asi| ti|un |al |ada|um |a p|lak|ari|au | ne|neg|a b|ngs|ta |ole|leh|ert|ers|ida|k h|ana|gsa|dar|uka|tid|bat|sia|era|eh |dap|ila|dil|h d|atu|sam|ia |i m| in|lan|aha|uan|tu |ai |t d|a a|g d|har|sem|na |apa|ser|ena|kat|uat|erb|erl|mas|rta|ega|ung|nan|emp|n u|kum|l d|g s| hu|ka |ent|pat|mba|aga|nta|adi| su|eni|uku|n i|huk|ind|ar |rga|i s|aku|ndi|sua|ni |rus|han|si |car|nny| la|in |u d|ik |ua |lah|rik|usi|emb|ann|mer|ian|gga|lai|min|a u|lua|ema|emu|arg|dun|dip|a t|mat|aya|rbu|aru|erk|rka|ini|eka|a k|rak|kes|yat|iba|nas|rma|ern|ese|s p|nus| pu|anu|ina| ta|mel|mua|kel|k s|us |ndu|nak|da |sya|das|pem|lin|ut |yar|ami|upu|seo|aik|eor|iny|aup|tak|ipe|ing|tin| an|dik|uar|ili|g t|rse|sar|ant|g p|a n|aks|ain| ja|t p| um|g m|dir|ksa|umu|kep|mum|i k|eca|rat|m p|h p|aba|ses|m m","fra":" de|es |de |ion|nt |et |tio| et|ent| la|la |e d|on |ne |oit|e l|le | le|s d|e p|t d|ati|roi| dr|dro|it | à | co|té |ns |te |e s|men|re | to|con| l’|tou|que| qu|les| so|des|son| pe|ons| un|s l|s e| pr|ue | pa|e c|t l|ts |onn| au|e a|eme|e e| li|ont|ant|out|ute|t à|res|ers| sa|ce | a |tre|per|a d|cti|er |lib|ité| en|ux | re|en |rso|à l| ou| in|lle|un |nat|ou |nne|n d|une| d’| se|par|nte|us |ur |s s|ans|dan|a p|r l|pro|its|és |t p|ire|e t|s p|sa | dé|ond|é d|a l|nce|ert|aux|omm|nal|me | na| fo|iqu| ce|rté|ect|ale|ber|t a|s a| da|mme|ibe|san|e r| po|com|al |s c|qui|our|t e| ne|e n|ous|r d|ali|ter| di|fon|e o|au | ch|air|ui |ell| es|lit|s n|iss|éra|tes|soc|aut|oci|êtr|ien|int|du |est|été|tra|pou| pl|rat|ar |ran|rai|s o|ona|ain|cla|éga|anc|rs |eur|pri|n c|e m|s t|à u| do|ure|bre|ut | êt|age| ét|nsi|sur|ein|sen|ser|ndi|ens|ess|ntr|ir | ma|cia|n p|st |a c| du|l e| su|bli|ge |rés| ré|e q|ass|nda|peu|ée |l’a| te|a s|tat|il |tés|ais|u d|ine|ind|é e|qu’| ac|s i|n t|t c|n a|l’h|t q|soi|t s|cun|rit| ég|oir|’en|nta|hom| on|n e| mo|ie |ign|rel|nna|t i|l n| tr|ill|ple|s é|l’e|rec|a r|ote|sse|uni|idé|ive|s u|t ê|ins|act| fa|n s| vi|gal| as|lig|ssa|pré|leu|e f|lic|dis|ver| nu|ten|ssi|rot|tec|s m|abl","deu":"en |er |der| un|nd |und|ein|ung|cht| de|ich|sch|ng | ge|ie |che|ech| di|die|rec|gen|ine|eit| re|ch | da|n d|ver|hen| zu|t d| au|ht | ha|lic|it |ten|rei| be|in | ve| in| ei|nde|auf|den|ede|zu |n s|uf |fre|ne |ter|es | je|jed|n u| an|sei|and| fr|run|at | se|e u|das|hei|s r|hte|hat|nsc|nge|r h|as |ens| al|ere|lle|t a| we|n g|rde|nte|ese|men| od|ode|ner|g d|all|t u|ers|te |nen| so|d d|n a|ben|lei| gr| vo|wer|e a|ege|ion| st|ige|le |cha| me|haf|aft|n j|ren| er|erk|ent|bei| si|eih|ihe|kei|erd|tig|n i|on |lun|r d|len|gem|ies|gru|tli|unt|chu|ern|ges|end|e s|ft |st |ist|tio|ati| gl|sta|gun|mit|sen|n n| na|n z|ite| wi|r g|eic|e e|ei |lie|r s|n w|gle|mei|de |uch|em |chl|nat|rch|t w|des|n e|hre|ale|spr|d f|ach|sse|r e| sc|urc|r m|nie|e f|fen|e g|e d| ni|dur|dar|int| du|geh|ied|t s| mi|alt|her|hab|f g|sic|ste|taa|aat|he |ang|ruc|hli|tz |eme|abe|h a|n v|nun|geg|arf|rf |ehe|pru| is|erf|e m|ans|ndl|e b|tun|n o|d g|n r|r v|wie|ber|r a|arb|bes|t i|h d|r w|r b| ih|d s|igk|gke|nsp|dig|ema|ell|eru|n f|ins|rbe|ffe|esc|igu|ger|str|ken|e v|gew|han|ind|rt | ar|ieß|n h|rn |man|r i|hut|utz|d a|ls |ebe|von|lte|r o|rli|etz|tra|aus|det|hul|e i|one|nne|isc|son|sel|et |ohn|t g|sam| fa|rst|rkl|ser|iem|g v|t z|err","jav":"ng |an |ang| ka|ing|kan| sa|ak |lan| la|hak| ha| pa| ma|ngg|ara|sa |abe|ne | in|n k|ant| ng|tan|nin| an|nga|ata|en |ran| ba|man|ban|ane|hi |n u|ong|ra |nth|ake|ke |thi| da|won|uwo|ung|ngs| uw|asa|gsa|ben|sab|ana|aka|beb|a k|g p|nan|nda|adi|at |awa|san|ni |dan|g k|pan|eba| be|e k|g s|ani|bas| pr|dha|aya|gan|ya |wa |di |mar|n s| wa|ta |a s|g u| na|e h|arb|a n|a b|a l|n n| ut|yan|n p|asi|g d|han|ah |g n| tu| um|as |wen|dak|rbe|dar| di|ggo|sar|mat|k h|a a|iya| un|und|eni|kab|be |art|ka |uma|ora|n b|ala|n m|ngk|rta|i h| or|gar|yat|kar|al |a m|n i|na |g b|ega|pra|ina|kak|g a|a p|tum|nya|kal|ger|gge| ta|kat|i k|ena|oni|kas| pe|dad|aga|g m|duw|k k|uta|uwe| si| ne|adh|pa |n a|go |and|i l| ke|nun|nal|ngu|uju|apa|a d|t m|i p|min|iba|er | li|anu|sak|per|ama|gay|war|pad|ggu|ha |ind|taw|ras|n l|ali|eng|awi|a u| bi|we |bad|ndu|uwa|awe|bak|ase|eh | me|neg|pri| ku|ron|ih |g t|bis|iji|i t|e p| pi|aba|isa|mba|ini|a w|g l|ika|n t|ebu|ndh|ar |sin|lak|ur |mra|men|ku | we|e s|a i|liy| ik|ayo|rib|ngl|ami|arg|nas|yom|wae|ut |kon|ae |rap|aku| te|dil|tin|rga|jud|umu| as|rak|bed|k b|il |kap|h k|jin|k a| nd|e d|i s| lu|i w|eka|mum|um |uha|ate| mi|k p|gon|eda| ti|but|n d|r k|ona|uto|tow|wat|gka|si |umr|k l|oma","vie":"ng |̣c |́c | qu| th|à |nh | ng|̣i | nh|và| va|̀n |uyê| ph| ca|quy|ền|yề|̀i | ch|̀nh| tr| cu|ngư|i n|gươ|ườ|́t |ời| gi|ác| co|̣t |ó |c t|ự |n t|cá|ông| kh|ượ|ợc| tư| đư|iệ|đươ|ìn|́i | ha|có|i đ|gia| đê|pha| mo|ọi|mọ|như|n n|củ| ba|̣n |̉a |ủa|n c|̀u |̃ng|ân |ều|ất| bi|tự|hôn| vi|g t| la|n đ|đề|nhâ| ti|t c| đô|ên |bả|hiê|u c| tô|do |hân| do|ch |́ q|̀ t| na|́n |ay | hi|àn|̣ d|ới|há| đi|hay|g n| mô|ốc|uố|n v|ội|hữ|thư|́p |quô| ho|̣p |nà|ào|̀ng|̉n |ị |́ch|ôn |̀o |khô|c h|i c|c đ| hô|i v|tro| đa|́ng|mộ|i t|ột|g v|ia |̣ng|ản|ướ|ữn|̉ng|h t|hư |ện|n b|ộc|ả |là|c c|g c| đo|̉ c|n h|hà|hộ| bâ|ã |̀y | vơ|̣ t|̉i |iế| cô|t t|g đ|ức|iên| vê|viê|vớ|h v|ớc|ực|ật|tha|̉m |ron|ong|áp|g b|hươ| sư|a c|sự|̉o |ảo|h c|ể |o v|uậ|a m|ế |iá|̀ c|cho|qua|hạ|ục| mi|̀ n|phâ|c q|côn|o c|á |i h|ại| hơ|̃ h| cư|n l|bị| lu|bấ|cả|ín|h đ| xa|độ|g h|c n|c p|thu|ải|ệ | hư|́ c|o n| nư|ốn|́o |áo|xã|oà|y t|hả|tộ|̣ c| tâ|thô| du|m v|mì|ho |hứ|ệc|́ t|hợ|án|n p|cũ|ũn|iể|ối|tiê|ề |hấ|ợp|hoa|y đ|chi|o h|ở |ày|̉ t|đó|c l|về|̀ đ|i b|kha|c b| đâ|luâ|ai |̉ n|đố|ết|hự|tri|p q|nươ|dụ|hí|g q|yên|họ|́nh| ta| bă|c g|n g|thê|o t|c v|am |c m|an ","ita":" di|to | de|ion| in|la |e d|di |ne | e |zio|re |le |ni |ell|one|lla|rit|a d|o d|del|itt|iri|dir| co|ti |ess|ent| al|azi|tto|te |i d|i i|ere|tà | pr|ndi|e l|ale|o a|ind|e e|e i|gni|nte|con|i e|li |a s| un|men|ogn| ne|uo | og|idu|e a|ivi|duo|vid| es|tti| ha|div| li|a p|no |all|pro|za |ato|per|sse|ser| so|i s| la| su|e p| pe|ibe|na |a l| il|ber|e n|il |ali|lib|ha |che|in |o s|e s| qu|o e|ia |e c| ri|nza|ta |nto|he |oni|o i| o |sta|o c|nel| a |o p|naz|e o|so | po|o h|gli|i u|ond|i c|ers|ame|i p|lle|un |era|ri |ver|ro |el |una|a c| ch|ert|ua |i a|ssi|rtà|a e|ei |dis|ant| l |tat|a a|ona|ual| le|ità|are|ter| ad|nit| da|pri|dei|à e|cia| st| si|nal|est|tut|ist|com|uni| ed|ono| na|sua|al |si |anz| pa| re|raz|gua|ita|res|der|soc|man|o o|ad |i o|ese|que|enz|ed | se|io |ett|on | tu|dic|à d|sia|i r|rso|oci|rio|ari|qua|ial|pre|ich|rat|ien|tra|ani|uma|se |ll |eri|a n|o n| um|do |ara|a t|zza|er |tri|att|ico|pos|sci|i l|son|nda|par|e u|fon| fo|nti|uzi|str|utt|ati|sen|int|nes|iar| i |hia|n c|sti|chi|ann|ra | eg|egu|isp|bil|ont|a r| no|rop| me|opr|ost| ma|ues|ica|sso|tal|cie|sun|lit|ore|ina|ite|tan| ra|non|gio|d a|e r|dev|i m|l i|ezz|izi| cu|nno|rà |a i|tta|ria|lia|cos|ssu|dal|l p| as|ass|opo|ve |eve","tur":" ve| ha|ve |ler|lar|ir |in |hak| he|her|bir|er |an |arı|eri|ya | bi|ak |r h|eti|ın |iye|yet| ka|ası|ını| ol|tle|eya|kkı|ara|akk|etl|sın|esi|na |de |ek | ta|nda|ini| bu|ile|rın|rin|vey|ne |kla|e h|ine|ır |ere|ama|dır|n h| sa|ına|sin|e k|le | ge|mas|ınd|nın|ı v| va|lan|lma|erk|rke|nma|tin|rle| te|nin|akl|a v|da | de|let|ill|e m|ard|en |riy|aya|nı | hü| şa|e b|k v|kın|k h| me|mil|san| il|si |rdı|e d|dan|hür|var|ana|e a|kes|et |mes|şah|dir| mi|ret|rri| se|ola|ürr|irl|bu |mak| ma|mek|n e|kı |n v|n i|lik|lle| ed| hi|n b|a h| ba|nsa| iş|eli|kar| iç|ı h|ala|li |ulu|rak|evl|e i|ni |re |r ş|eme|etm|e t|ik |e s|a b|iş |n k|hai|nde|aiz| eş|izd|un |olm|hiç|zdi|ar |unm|ma | gö|ilm|lme|im |n t|tir|dil|mal|e g|i v| ko|lun|e e|mel|ket|ık |n s|ele|la |el |r v|ede|şit|ili|eşi|yla|a i| an|anı| et|rı |ahs| ya|sı |edi|siy|t v|i b|se |içi|çin|bul|ame| da|miş|may|tim|a k|tme|r b|ins|yan|nla|mle| di|eye|ger|ye |uğu|erd|din|ser| mü|mem|vle| ke|nam|ind|len|eke|es | ki|n m|it | in| ku|rşı|a s|arş| ay|eml|lek|oru|rme|kor|rde|i m| so|tür|al |lam|eni|nun| uy|ken|hsı|i i|a d|ri |dev|ün |a m|r a|mey|cak|ıyl|maz|e v|ece|ade|iç |şma|mse|te |tün|ims|kim|e y|şı |end|k g|ndi|alı| ce|lem|öğr|ütü|k i|r t| öğ|büt|anl| bü","pol":" pr|nie| i |ie |pra| po|ani|raw|ia |nia|wie|go | do|ch |ego|iek|owi| ni|ści|ci |a p|do |awo| cz|ośc|ych| ma|ek |rze| na|prz| w |wo |ej | za|noś|czł|zło|eni|wa | je|łow|i p|wol|oln| lu|rod| ka| wo|lno|wsz|y c|ma |ny |każ|ażd|o d|stw|owa|dy |żdy| wy|rzy|sta|ecz| sw|dzi|i w|e p|czn|twa|na |zys|ów |szy|ub |lub|a w|est|kie|k m|wan| sp|ają| ws|e w|pow|pos|nyc|rac|spo|ać |a i|cze|sze|neg|yst|jak| ja|o p|pod|acj|ne |ńst|aro|mi | z |i i|nar| ko|obo|awa| ro|i n|jąc|zec|zne|zan|dow| ró|iej|zy |zen|nic|ony|aw |i z|czy|no |nej|o s|rów|odn|cy |ówn|odz|o w|o z|jeg|edn|o o|aki|mie|ien|kol| in|zie|bez|ami|eńs|owo|dno| ob| or| st|a s|ni |orz|o u|ym |stę|tęp|łec|jed|i k| os|w c|lwi|ez |olw|ołe|poł|cji|y w|o n|wia| be|któ|a j|zna|zyn|owe|wob|ka |wyc|owy|ji | od|aln|inn|jes|icz|h p|i s|się|a o|ją |ost|kra|st |sza|swo|war|cza|roz|y s|raz|nik|ara|ora|lud|i o|a z|zes| kr|ran|ows|ech|w p|dów|ą p|pop|a n|tki|stk|gan|zon|raj|e o|iec|i l| si|że |eka| kt| de|em |tór|ię |wni|lni|ejs|ini|odo|dni|ełn|kow|peł|a d|ron|dek|pie|udz|bod|nan|h i|dst|ieg|taw|z p|z w|zeń|god|iu |ano|lar| to|y z|a k|ale|kla|trz|zaw|ich|e i|ier|iko|dzy|chn|w z|by |ków|adz|ekl|ywa|ju |och|kor|sob|ocz|oso|u p|du |tyc|tan|ędz| mi|e s| ta|ki ","gax":"aa |an |uu | ka|ni |aan|umm|ii |mma|maa| wa|ti |nam| fi|ta |tti| na|saa|fi | mi|rga|i k|a n| qa|dha|iyy|oot|in |mir|irg|raa|qab|a i|a k|kan|akk|isa|chu|amu|a f|huu|aba|kka| ta|kam|a a| is|amn|ami|att|ach|mni|yaa| bi|yuu|yyu|ee |wal|miy|waa|ga |ata|aat|tii|oo |a e|moo| ni| ee|ba | ak|ota|a h|i q| ga| dh|daa|haa|a m|ama|yoo|a b|i a|ka |kaa| hi|sum|aas|arg|man| hu| uu|u n| yo| ar| ke| ha|ees| ba|uf |i i|taa|uuf|iin|ada|a w|i f|ani|rra|na |isu| ad|i w|a u|nya|irr|da |hun|hin|ess| ho| ma|i m|und|i b|bar|ana|een|mu |is |bu |f m| ir| sa|u a|add|aad| la|i d|n h|eeg|i h|sa |hoj|abu| ya|kee|al |udh|ook|goo|ala|ira|nda|itt|gac|as |n k|mum|see|rgo|uum|ra |n t|n i|ara|muu|ums|mat|nii|sii|ssa|a d|a q| da|haw|a g|yya|asu|eef|u h|tum|biy| mo|a t|ati|eny|gam|abs|awa|roo|uma|n b|n m|u y|a s|sat|baa|gar|n a|mmo|nis| qo|nna| ku|eer| to|kko|bil|ili|lis|bir|otu|tee|ya |msa|aaf|suu|n d|jii|n w|okk|rka|gaa|ald|un |rum| ye|ame| fu|mee|yer|ero|amm|era|kun|i y|oti|tok|ant|ali|nni| am|lda|lii|n u|lee|ura|lab|aal|tan|laa|i g|ila|ddu|aru|u m|oji|gum|han|ega| se|ffa|dar|faa|ark|n y|hii|qix|gal|ndi| qi|asa|art|ef |uud| bu|jir| ji|arb|n g|chi|tam|u b|dda|bat|di |kar|lam|a l| go|bsi|sad|oka|a j|egu|u t|bee|u f|uun","swh":"a k|wa |na | ya| ku|ya | na| wa|a m| ha|i y|a h|a n|ana|ki |aki|kwa| kw|hak| ka| ma|la |a w|tu |li |a u|ni |i k|a a|ila| ki|ali|a y|ati|za |ili|ifa| mt|ke | an|kil|kat|mtu|ake|ote|te |ka |ika|ma |we |a s|yo |fa |i n|ata|e k|ama|zi |amb|u a|ia |u w| yo|azi|kut|ina|i z|asi| za|o y|uhu|yak|au |ish|mba|e a|u k|hur|ha |tik|wat| au|uru| bi|sha|mu |ara|u n| as|hi | hi|ru |aif|tai|cha|ayo|a b|hal| uh| ch|yot|i h| zi|awa|chi|atu|e n|ngi|u y|mat|shi|ani|eri| am|uli|ele|sa |ja |e y|a t|oja|o k|nch|i a|a j| nc|ima| sh|ami| ta|end|any|moj|i w|ari|ham|uta|ii |iki|ra |ada|wan|wak|nay|ye |uwa| la|ti |eza|o h|iri|iwa|kuw|iwe| wo|fan| sa|she|bu |kan|ao |jam|wen|lim|i m|her|uto|ria| ja| ni|kam|di | hu|zo |a l|da |kaz|ahi|amu|wot|o w|si |dha|bin|ing|adh|a z|bil|e w|nya|kup|har|ri |ang|aka|sta|aji|ne |kus|e m|zim|ini|ind|lin|kul|agu|kuf|ita|bar|o n|uu |iyo|u h|nad|maa|mwe|ine|gin|nye|nde|dam|ta | nd|ndi|rik|asa| ba|rif|uni|nga|hii|lez|bo |azo|uzi|mbo|sil|ush|tah|wam|ibu|uba|imu| ye|esh| ut|taa|aar|wez|i s|e b| si|ala|dhi|eng|aza|tak|hir|saw|izo|kos|tok|oka|yan|a c|wal|del|i b|pat| um|ndo|zwa|mam|a i|guz|ais|eli|mai|laz|ian|aba|man|ten|zin|ba |nda|oa |u m|uku|ufu| mw|liw|aha|ndw|kuh|ua |upa| el|umi|sia","sun":"an |na |eun| ka|ng | sa|ana|ang| di|ak | ha|nga|hak|un |ung|keu|anu| ba| an|nu |a b| bo| je|a h|ata|asa|jeu|ina| ng|ara|nan|awa|gan|ah |sa |a k| na|n k|kan|aha|a p|a s|ga |ban| ma|a n|ing|oga|bog|sar| pa| ku|man|a a|ha |san|ae |bae|din|g s|aga|sah|ra |tan|n s| pe|ala| si|kat|ma |per| ti|aya|sin| at| pi| te|n a|aan|lah|pan|gar|n n|u d|ta |eu |ari|kum|ngs|a m|n b|n d|ran|a d|gsa|wa |taw|k h|ama|ku |ike|n p|eba|bas| ja|al |a t|ika|at |beb|kab|pik|asi|atu|nda|una|a j|nag|e b|n h|en |g k|oh |aba|ila|rta|aku|boh|ngg|abe|art|ar |n j|di |ima|um |ola|geu|usa|aca|sak|adi|k a|udu|teu|car|tin| me| ay|h k| po|eh |u s|aka|rim|ti |sac|k n|ngt|jen|awe|ent|u a|uma|teh|law|ur |h s|dan|bar|uku|gaw|aru|ate|iba|dil|pol|aja|ieu|ere|jal|nar| hu|n t|nya|pa |are|upa|mas|ake|ut |wan| ge|kal|nus| so|ngk|ya |yan|huk| du|tun| mi|mpa|isa|lan|ura|u m|uan|ern|ena|nte|rup|tay|n m| ke|ka |han|und|us |h b|kud|ula|tut| tu| ie|hna|kaw|u k|lak|gam|mna|umn|g d| nu|yun|ri |ayu|wat| wa|eri|g n|a u|i m|u p| ta|du |dit|umu|k k|ren|mba|rik|gta| be|ali|h p|h a|eus|u n|alm|il | da|sas|ami|min|lma|ngu|nas|yat|rak|amp|mer|k j|sab|mum| ra|rua|ame|ua |ter|sal|ksa|men|kas|nge|k d|ona| bi|bis|sio|ion|nal|taa| de|uh |gal|dip|we |bad","ron":" de|și | și|re | în|are|te |de |ea |ul |rep|le |ept|dre|e d| dr|ie |în |e a|ate|ptu| sa|tul| pr|or |e p| pe|la |e s|ori| la| co|lor| or|ii |rea|ce |au |tat|ați| a | ca|ent| fi|ale|ă a|a s| ar|ers|per|ice| li|uri|a d|al | re|e c|ric|nă |i s|e o|ei |tur| să|lib|con|men|ibe|ber|rso|să |tăț|sau| ac|ilo|pri|ăți|i a|i l|car|l l|ter| in|ție|că |soa|oan|ții|lă |tea|ri |a p| al|ril|e ș|ană|in |nal|pre|i î|uni|ui |se |e f|ere|i d|e î|ita| un|ert|ile|tă |a o| se|i ș|pen|ia |ele|fie|i c|a l|ace|nte|ntr|eni| că|ală| ni|ire|ă d|pro|est|a c| cu| nu|n c|lui|eri|ona| as|sal|ând|naț|ecu|i p|rin|inț| su|ră |e n| om|ici|nu |i n|oat|ări|l d| to|tor| di| na|iun| po|oci|tre|ni |ste|soc|ega|i o|gal| so| tr|ă p|a a|n m|sta|va |ă î|fi |res|rec|ulu|nic|din|sa |cla|nd | mo| ce| au|ara|lit|int|i e|ces|uie|at |rar|rel|iei|ons|e e|leg|nit|ă f| îm|a î|act|e l|ru |u d|nta|a f|ial|ra |ă c| eg|ță | fa|i f|rtă|tru|tar|ți |ă ș|ion|ntu|dep|ame|i i|reb|ect|ali|l c|eme|nde|n a|ite|ebu|bui|ât |ili|toa|dec| o |pli|văț|nt |e r|u c|ța |t î|l ș|cu |rta|cia|ane|țio|ca |ită|poa|cți|împ|bil|r ș| st|omu|ăță|țiu|rie|uma|mân| ma|ani|nța|cur|era|u a|tra|oar| ex|t s|iil|ta |rit|rot|mod|tri|riv|od |lic|rii|eze|man|înv|ne |nvă|a ș|cti","hau":"da | da|in |a k|ya |an |a d|a a| ya| ko| wa| a |sa |na | ha|a s|ta |kin|wan|wa | ta| ba|a y|a h|n d|n a|iya|ko |a t|ma |ar | na|yan|ba | sa|asa| za| ma|a w|hak|ata| ka|ama|akk|i d|a m| mu|su |owa|a z|iki|a b|nci| ƙa| ci| sh|ai |kow|anc|nsa|a ƙ|a c| su|shi|ka | ku| ga|ci |ne |ani|e d|uma|‘ya|cik|kum|uwa|ana| du| ‘y|ɗan|ali|i k| yi|ada|ƙas|aka|kki|utu|n y|a n|hi | ra|mut| do| ad|tar| ɗa|nda| ab|man|a g|nan|ars|and|cin|ane|i a|yi |n k|min|sam|ke |a i|ins|yin|ki |nin|aɗa|ann|ni |tum|za |e m|ami|dam|kan|yar|en |um |n h|oka|duk|mi | ja|ewa|abi|kam|i y|dai|mat|nna|waɗ|n s|ash|ga |kok|oki|re |am |ida|sar|awa|mas|abu|uni|n j|una|ra |i b| ƙu|dun|a ‘|cew|a r|aba|ƙun|ce |e s|a ɗ|san|she|ara|li |kko|ari|n w|m n|buw|aik|u d|kar| ai|niy| ne|hal|rin|bub|zam|omi| la|rsa|ubu|han|are|aya|a l|i m|zai|ban|o n|add|n m|i s| fa|bin|r d|ake|n ‘|uns|sas|tsa|dom| ce|ans| hu|me |kiy|ƙar| am|ɗin| an|ika|jam|i w|wat|n t|yya|ame|n ƙ|abb|bay|har|din|hen|dok|yak|n b|nce|ray|gan|fa |on | ki|aid| ts|rsu| al|aye| id|n r|u k|ili|nsu|bba|aur|kka|ayu|ant|aci|dan|ukk|ayi|tun|aga|fan|unc| lo|o d|lok|sha|un |lin|kac|aɗi|fi |gam|i i|yuw|sun|aif|aja| ir|yay|imi|war| iy|riy|ace|nta|uka|o a|bat|mar|bi |sak|n i| ak|tab|afi|sab","fuv":"de | e |e n|nde| ha|la |e e| ka|akk| nd| wa|ina|al |hak|na | in|ndi|kke|ɗo |di |ii |ade|aad|um |ko |i h|ala| mu| ne|lla|mum|ji |wal| jo| fo|all|eɗɗ| le|neɗ|e h|kal| ko|taa|re | ng|aaw|e k|aa |jog|e w|ley|ee |ke |laa|e m|eed|e l|nnd|aag|ɗɗo|ol | ta|o k|gu |kee|le |waa|ond|gal|a j|ogi|am |eji|dee|m e|ti |nga|e d|ɗe |awa|ɓe | wo|gii|eej|ede|gol|aan| re| go|i e|agu|e t|ann|fot|eyd|oti|ɗee|pot| po|maa|naa|oto|ydi| he|i n|ni |taw|enn|een|dim|to |a i|e f|e j|goo|a k|der| fa| aa|ele| de|o n|dir| ba|er |ngu|oot|ndo|i k|ota|ima| sa|won|ay |ka |a n|oor|a f|ngo|tee| ja|i f| to|o f|e ɓ|i w|wa |ren|a e|nan|kam|hay|ma |eyɗ|o t|awi|yɗe|ore|o e|too|and|fof|i m|a w|ñaa|e y|hee| do|eel|ira|nka|aak|e g|e s|l e|of |aar| ɓe|dii| la|ani|e p|tin|a t| te| na|e i| so|o w|ral|e r|are|ooj|awo|woo|gaa| ma|u m|kaa|faw| ña|dow| mo|oo | ya|aam|nge|nng| yi|und| ho|en |i l|so | mb| li|o i|e a| nj| o |ude|e b|o h|igg|ɗi |lig|nda|ita|baa| di|iin| fe|iti|aaɗ|ama|inn|haa|iiɗ|a h| no|tii|den|tal| tu|tuu|yan|l n|yim|do |non|imɓ|bel| je|ine| hu|njo|ugn|guu|no | da|edd|uug|mii|nee|jey|a d|ano| ke|lit|lli|go |je |ank|tde|amt|ent|eɗe|ɓam| ɓa|mɓe|y g|aga|alt|ɗɗa|ind|wit| su|nna| ɗe|ree|ŋde|i a|m t|aŋd|l h|jaŋ|ago|ow |ete| ɗu","bos":" pr| i |je |rav| na|pra|na |da |ma |ima| sv|a s|nje|a p| da| po|anj|a i|vo |va |ko |ja | u |ako|o i|no | za|e s|ju |avo| im|ti |sva|ava|i p|o n|li |ili|i s|van|ost| ko|vak|ih |ne |a u| sl|nja|koj| dr| ne|jed| bi|i d|ije|stv|u s|lob|im |slo| il|bod|obo| ra|sti|pri| je| su|vje|om |a d|se |e i| ob|a n|i i| se|dru|enj| os|voj|cij|e p|a b|su |o d|uje|u p|raz|i n|a o| od|lo |u o|ova|u i|edn|i u| nj|ovo|jen|lju|ni |oje|nos|a k|ran|dje|iti|o p|aci|žav|a j|i o|e o|pre|pro|bra|nih|ji | ka|e d|jeg|og |sta| tr|tre|bud|u n|drž|u z|rža|bit|svo|ija|elj|reb|e b|mij|jem|avn|pos| bu|ka |aju| iz|ba |ve |rod|de |aro|e u|iva|a z|em |šti|ilo|eni|lje|ći |red|bil|jel|jer| ni|odn|m i|du |tva|nar|gov| sa|oji| do|tu |vim|u d| st|o k|e n|a t|za |nim| dj| sm|ući|ičn|dna|i m|oda|vno|eba|ist|nac|e k|čno|nak|ave|tiv|eđu|nov|olj|sno|ani|aln|an |nom|i b|stu|nst|eno|oj |osn|a r|ovj|nap|smi|nog|čov|oja|nju|ara|nu |dno|ans|ovi|jan|edi|m s| kr|h p|tup| op| čo|iko|jek|tvo| vj| mi|tel|vu |obr|živ|tit|o o|una|odu| mo| ov|kri|ego|din|rug|nik|rad|pod|nji|sam|sto|lja|dst|rim|ite|riv| te|m n|vol|i v|e t|vni|akv|itu|g p| ta|ašt|zaš|svi|ao |te |o s|ak |mje|a č|odr|udu|kla|i t|avi|tno|nič| vr|nic|dni|u u|ina| de|oba|od |jih|st ","hrv":" pr| i |je |rav|pra|ma | na|ima| sv|na |ti |a p|nje| po|a s|anj|a i|vo |ko |da |vat|va |no | za|i s|o i|ja |avo| u | im|sva|i p| bi|e s|ju |tko|o n|li |ili|van|ava| sl|ih |ne |ost| dr|ije| ne|jed|slo| ra|u s|lob|obo| os|bod| da| ko|ova|nja|koj|i d|atk|iti| il|stv|pri|om |im | je| ob| su| ka|i i|i n|e i|vje|i u|se |dru|bit|voj|ati|i o|ćen|a o|o p|a b|a n|ući| se|enj|sti|a u|edn|dje|lo |ćav| mo|raz|u p| od|ran|ni |rod|a k|su |aro|drć|svo|ako|u i|rća|a j|mij|ji |nih|eni|e n|e o| nj|pre|pos|ćiv|oje|eno|e p|nar|oda|nim|ovo|aju|ra |ći |og |nov|iva|a d|nos|bra|bil|i b|avn|a z|jen|e d|ve |ora|tva|jel|sta|mor|u o|cij|pro|ovi|za |jer|ka |sno|ilo|jem|red|em |lju|osn|oji| iz|aci| do|lje|i m| ni|odn|nom|jeg| dj|vno|vim|elj|u z|o d|rad|o o|m i|du |uje| sa|nit|e b| st|oj |tit|a ć|dno|e u|o s|u d|eću|ani|dna|nak|nst|stu| sm|e k|u u|an |gov|nju|juć|aln|m s|tu |a r|ćov|jan|u n|o k|ist|ću |te |tvo|ans|šti|nu |ara|nap|m p|nić|olj|bud| bu|edi|ovj|i v|pod|sam|obr|tel| mi|ina|zaš|e m|ašt| vj|ona|nji|jek| ta|duć|ija| ćo|tup|h p|oja|smi|ada| op|oso|una|sob|odu|dni|rug|udu|ao |di |avi|tno|jim|itu|itk|će |odr|ave|meć|nog|din|svi| ći|kak|kla|rim|akv|elo|štv|ite|vol|jet|opć|pot|tan|ak |nic|nac|uće| sk| me|ven","nld":"en |de |an | de|van| va| en| he|ing|cht|der|ng |n d|n v|et |een| ge|ech|n e|ver|rec|nde| ee| re| be|ede|er |e v|gen|den|het|ten| te| in| op|n i| ve|lij| zi|ere|eli|zij|ijk|te |oor|ht |ens|n o|and|t o|ijn|ied|ke | on|eid|op | vo|jn |id |ond|in |sch| vr|aar|n z|aan| ie|rde|rij|men|ren|ord|hei|hte| we|eft|n g|ft |n w|or |n h|eef|vri|wor| me|hee|al |t r|of |le | of|ati|g v|e b|eni| aa|lle| wo|n a|e o|nd |r h|voo| al|ege|n t|erk| da| na|t h|sta|jke|at |nat|nge|e e|end| st|om |e g|tie|n b|ste|die|e r|erw|wel|e s|r d| om|ij |dig|t e|ige|ter|ie |gel|re |jhe|t d| za|e m|ers|ijh|nig|zal|nie|d v|ns |d e|e w|e n|est|ele|bes| do|g e|che|vol|ge |eze|e d|ig |gin|dat|hap|cha|eke| di|ona|e a|lke|nst|ard| gr|tel|min| to|waa|len|elk|lin|eme|jk |n s|del|str|han|eve|gro|ich|ven|doo| wa|t v|it |ove|rin|aat|n n|wet|uit|ijd|ze | zo|ion| ov|dez|gem|met|tio|bbe|ach| ni|hed|st |all|ies|per|heb|ebb|e i|toe|es |taa|n m|nte|ien|el |nin|ale|ben|daa|sti| ma|mee|kin|pen|e h|wer|ont|iet|tig|g o|s e| er|igd|ete|ang|lan|nsc|ema|man|t g|is |beg|her|esc|bij|d o|ron|tin|nal|eer|p v|edi|erm|ite|t w|t a| hu|rwi|wij|ijs|r e|weg|js |rmi|naa|t b|app|rwe| bi|t z|ker|ame|eri|ken| an|ar | la|tre|ger|rdi|tan|eit|gde|g i|d z|oep","srp":" pr| i |rav|pra| na|na |ma | po|je | sv|da |a p|ima|ja |a i|vo |nje|va |ko |anj|ti |i p| u |ako|a s| da|avo|i s|ju |ost| za|sva|o i|vak| im|e s|o n|ava| sl|nja| ko|no |ne |li |om | ne|ili| dr|u s|slo|koj|a n|obo|ih |lob|bod|im |sti|stv|a o| bi| il| ra|pri|a u|og | je|jed|e p|enj|ni |van|u p|nos|a d|iti|a k|edn|i u|pro|o d|ova| su|ran|cij|i i|sta|se | os|e i|dru| ob|i o|rod|aju|ove| de|i n| ka|aci|e o| ni| od|ovo|i d|ve | se|eni|voj|ija|su |u i|žav|avn|uje| st|red|m i|dna|a b|odi|ara|drž|ji |nov|lju|e b|rža|tva|što|u o|oja| ov|a j|odn|u u|jan|poš|jen| nj|nim|ka |ošt|du |raz|a z| iz|sno|o p|vu |u n|u d|šti|osn|e d|pre|u z|de |ave|nih|bit|aro|oji|bez|tu |gov|lje|ičn| sa|lja|svo|lo |za |vno|e n|eđu| tr|nar| me|vim|čno|oda|ani|đen|nac|nak|an |to |tre|ašt| kr|stu|nog|o k|m s|tit|aln|nom|oj |pos|e u|reb| vr|olj|dno|iko|ku |me |nik| do|ika|e k|jeg|nst|tav|em |i m|sme|o s|dni|bra|nju|šen|ovi|tan|te |avi|vol| li|zaš|ilo|rug|var|kao|ao |riv|tup|st |živ|ans|eno|čov|štv|kla|vre|bud|ena| ve|ver|odu|međ|oju|ušt| bu|kom|kri|pod|ruš|m n|i b|ba |a t|ugi|edi| mo|la |u v|kak| sm|ego|akv|o j|rad|dst|jav|del|tvo| op|nu |por|vlj|avl|m p|od |jem|oje| čo|a r|sam|i v|ere|pot|o o|šte|rem|vek|svi| on|rot|e r","ckb":" he| û |ên | bi| ma|in |na | di|maf|an |ku | de| ku| ji|xwe|her| xw|iya|ya |kes|kir|rin|iri| ne|ji |bi |yên|afê|e b|de |tin|e h|iyê|ke |es |ye | we|er |di |we |ê d|i b| be|erk|ina| na| an|î û|yê |eye|î y|kî |rke|nê |diy|ete|eke|ber|hem|hey| li| ci|wek|li |n d|fê | bê| te|ne |yî | se|net|rî |tew|yek|sti|af | ki|re |yan|n b|kar|hev|e k|aza|n û|wî | ew|i h|n k|û b|î b| mi| az|dan| wî|ekî|î a|a m|zad|e d|mir|bin|est|ara|iro|nav|ser|a w|adi|rov|n h|anê|tê |ewe|be |ewl|ev |mû | ya|tî |ta |emû| yê|ast|wle| tê|n m| bo|wey|s m|bo | tu|n j|ras| da| me|din|î d|ê h|n n|n w|ing|st | ke| ge|în |ar | pê|iye|îna|bat|r k|ema|cih|ê b|wed|û m|dî |û a|vak|ê t|ekh|par| ye|vî |civ|n e|ana|î h|ê k|khe|geh|nge|ûna|fên|ane|av |î m|bik|eyê|eyî|e û| re|man|erb|a x|vê |ê m|iva|e n|hî |bûn|kê | pa|erî|jî |end| ta|ela|nên|n x|a k|ika|f û|f h|î n|ari|mî |a s|e j|eza|tên|nek| ni|ra |ehî|tiy|n a|bes|rbe|û h|rwe|zan| a |erw|ov |inê|ama|ek |nîn|bê |ovî|ike|a n| ra|riy|i d|anî|û d|e e|etê|ê x|yet|aye|ê j|tem|e t|erd|i n|eta|ibe|a g|u d|xeb|atê|i m|tu | wi|dew|mal|let|nda|ewa| ên|awa|e m|a d|mam|han|u h|a b|pêş|ere| ba|lat|ist| za|bib|uke|tuk|are|asî|rti|arî|i a|hîn| hî|edi|nûn|anû|qan| qa| hi| şe|ine|n l|mên|ûn |e a","yor":"ti | ní|ó̩ | è̩|ní | lá|̩n |o̩n|é̩ |wo̩|àn | e̩|kan|an |tí | tí|tó̩| kò|ò̩ |̩tó| àw| àt|è̩ |è̩t|e̩n|bí |àti|lát|áti| gb|lè̩|s̩e| ló| ó |àwo|gbo|̩nì|n l| a | tó|í è|ra | s̩|n t|ò̩k|sí |tó |̩ka|kò̩|ìyà|o̩ | sí|ílè|orí|ni |yàn|dè |̩‐è|ì k|̩ à|èdè| or|ún |ríl|è̩‐|í à|jé̩|‐èd|àbí|̩ò̩|ò̩ò|tàb|nì |í ó|n à| tà|̩ l|jo̩| ti|̩e |̩ t| wo|nìy|í ì|ó n| jé| sì|ló |kò |n è|wó̩| bá|n n|sì | fú|̩ s|í a|rè̩|fún| pé| òm|̩ni|gbà| kí| èn|ènì|in |òmì|ìí |ba |nir|pé |ira|mìn|ìni|n o|ràn|ìgb| ìg|bá |e̩ | rè|̩ n|kí |n e|un |gba|̩ p|í ò|nú | o̩|nín|gbé|yé | ka|ínú|a k|fi | fi|mo̩|bé̩|o̩d|dò̩|̩dò|ó s|i l|̩ o|̩ ì|wà |í i|i ì|hun|bò |i ò|dá |bo̩|o̩m|̩mo|̩wó|bo |áà |̩ k|ó j|ló̩|àgb|ohu| oh| bí| ò̩|bà |ara|yìí|ogb|írà|n s|ú ì| ìb|pò̩|í k| lè|bog|i t|à t|óò |yóò|kó̩|gé̩|à l|ó̩n|rú |lè | yó|̩ ò|̩ e|a w|̩ y|ò̩r|̩ f| wà|ò l|í t|ó b|i n|ó̩w|̩gb|yí |í w|ìké|̩ a|láà|wùj|àbò|i è|ùjo|fin|é̩n|n k|í e|i j|ú à| ìk|òfi| òf| ar|i s|mìí|ìír| mì| ir|rin|náà| ná|jú |̩ b| yì|ó t|̩é̩| i |̩ m|fé̩|kàn|rí |ú è|à n|wù |s̩é|é à| mú| èt|áyé|í g|̩kó|̩dá|è̩d|àwù|è̩k| ìd|irú|í o|i o|i à|láì|í n|ípa| kú|níp| ìm|a l|ké̩|bé |i g|de |ábé|ìn |báy|̩è̩|ígb|wò̩|níg|mú |láb| àà|n f|è̩s|̩ w|ùn |i a|ayé|èyí| èy|mó̩|á è| ni|n b| wó|je̩| ìj|gbá|ò̩n|ó̩g","uzn":"lar|ish|an |ga |ar | va| bi|da |va |ir | hu|iga|sh |uqu|shi|bir|quq|huq|gan| bo| ha|ini|ng |a e|r b| ta|lis|ni |ing|lik|ida|oʻl|ili|ari|nin|on |ins| in|adi|nso|son|iy | oʻ|lan| ma|dir|hi |kin|har|i b|ash| yo|boʻ| mu|dan|uqi|ila|ega|qla|r i|qig|oʻz| eg|kla|a b|qil|erk|ki | er|oli|nli|at | ol|gad|lga|rki|oki|i h|a o| qa|yok|lig|osh|igi|ib |las|n b|atl|n m| ba|ara| qi|ri | sh|iya|ala|lat|in |ham|bil|a t|a y|bos|r h|siy|n o|yat|inl|ik |a q|cha|a h| et|eti|nis|a s|til|ani|h h|i v|mas|tla|osi|asi| qo|ʻli|ati|i m|rni|im |uql|arn|ris|qar|a i|gi | da|n h|ha |sha|i t|mla|rch| xa|i o|li |hun|bar|lin|ʻz |arc|rla| bu|a m|a a| as|mum| be| tu|aro|r v|ikl|lib|taʼ|h v|tga|tib|un |lla|mda| ke|shg| to|n q|sid|n e|mat|amd|shu|hga| te|tas|ali|umk|oya|hla|ola|aml|iro|ill|tis|iri|rga|mki|irl| ya|xal|dam| de|gin|eng|rda|tar|ush|rak|ayo| eʼ| so|ten|alq| sa|ur | is|imo|r t| ki|mil| mi|era|zar|hqa|aza|k b| si|nda|hda|kat|ak |oʻr|n v|a k|or |rat|ada|ʻlg|miy|tni|i q|shq|oda|shl|bu |dav|nid|y t|ch |asl|sos|ilg|aso|n t|atn|sin|am |ti |as |ana|rin|siz|yot|lim|uni|nga|lak|n i|a u|qon|i a|h k|vla|avl|ami|dek| ja|ema|a d|na | em|ekl|gʻi|si |i e|ino| ka|uch|bor|ker| ch|lma|liy|a v|ʼti|lli|aka|muh|rig|ech|i y|uri|ror","zlm":"an |ang| ke| se|ng | da|dan|ada|ara| pe|ak | be|ran|ber| me|ah |nya|hak|per|n s|ata|ala|ya |a s|kan|asa|n k|lah| di|da |aan|gan|nga|dal| ma|n d|erh|eba|rha|a p| ha|kep|pad|yan| ya|ap |ama| ba|nda| te|ra |tia|man|eng|a b|a d|ora|men|n p|ter|iap|san|epa| or|pen|eti| ad| at|a a|n a|set|tan|h b|tau|sia|n t|apa|dak|pa |sa |au |ta |ela|bas|at | sa|n b|beb|n m|keb|h d|p o|end|ega|aka|a k|am |sam|gar|ana|leh|lam|ole| un|neg|k k|ban|g a|di |n y|eh |a m|eri|aha|han| ti|a t|ma |any|uan|seb|ebe|ngs|atu|mas|bag|car|mem|ing|ian| ne|kes|i d|gsa|ia |ika|mat|agi|ert| de| la|emb|und|nan|asi|emu|ers|epe|na |anu|gi |ung|erk|n h|ngg|tu |ind|pem|i m|g b|kla| in|iha|pun|i s|erl|akl|era|as |dap|eca|sec|al |k m|bar|nus|usi|lan|tin|si |awa|nny| su|bol|sas| as|ini|rta|rat|ena|sem|aya|ni |den|g m|g t|kem|i k|adi|ai |ti | ap| ta|in | he| bo|had|uka|tar| an|hen|ann|ain|ka |rka|ri |ema|k h|n i|g s|dia|dun|ira|rsa|elu|nta|a n|mel|iad|uk |mpu|ua |har|kat|aga|lai|enu|ses|emp|ntu|k d|ent|un |mba|rma|jua|uat|k a|mar|rak|h m|ila|lua|i a|aja|ker|dil|g d|uma|rli|lin|esi|sua|nak|ndu|l d| pu|t d|erm|ser|ar |ese|ati|tuk|rga|i p|dar|esa|bah| ol|ari|ngk|ant|sek|gam|raa|mbe|ida|sat|iri|kea|i b|saa|dir|g u|erj|tik|unt|eka|rja","ibo":"a n|e n|ke | na|na | ọ | bụ| n |nwe|ere|ọ b|re |nye| nk|ya |la | nw| ik| ma|ye |e ọ|ike|a o|nke|a m|ụ n| ya|a ọ|ma |bụl|ụla| on| a |e i|kik|iki|ka |ony|ta |bụ |kwa| nd|a i|i n|di |a a|wa |wer|do | mm|dụ |e a|ha | ga|any| ob|ndi| ok|he |e m|e o|a e|ọ n|ite|rụ |hi |mma|ga‐|wu |ara| dị|aka|che|oke|we |o n| ih|n o|adụ|mad|obo|bod|a g|odo| ka| ez|te |hị |be |ụta|dị | an|zi | oh|a‐e|akw|gba|i m|me | ak|u n|nya|ihe|ala|ohe|ghi|ri | ọz|her|ra |weg| nt| iw| mb|ba |pụt| si|ro |oro|iwu|chi|a‐a|rị |ụ i|ụ ọ| eb|iri|ebe|ụrụ|zọ | in|a y|ezi|e ị|kpa|le |ile|ịrị|n e|kpe|mba| ha|bi |sit|e e|inw|nil|asị| en|mak|a u| ni|apụ|chị|i i|ghị|i ọ|i o|si | e |ide|o i|e y|ụ m|a s|u o|kwu|ozu|yer|ru |enw|ụ o|ọzọ|gid|hụ |n a|ahụ|nkw|sor|egh|edo|a ụ|tar|n i|toz|ị o|pa |i a| me|ime|uru|kwe| mk|tu |ama|eny|uso|de | im|ọ d|osi|hed|a d| kw|mkp|wet| ọr| ọn|obi|ọrụ| ịk| to|gas| ch|ịch|nha|ọnọ|nọd| nc| al|n ụ|ị m| us|nọ |u ọ|nch| o |eta|n u| ot|otu|sir|sịr| nh|a k|ali|o m| ag| gb|e s|ọta|nwa|ị n|lit|ega|ji |ọdụ|e k|ban|e g|ị k|esi|agb|eme|hu |ikp|zu |pe |nta|na‐|chọ|u a|a b|uch|n ọ|onw|ram|kwụ|ekọ|i e| nọ| ug|ọch|u m|gwu|a h|zụz|ugw|meg|ị e|nat|e h|dịg|o y|kpu|pụr|cha|zụ |hịc|ich| ng|ach| og|wap|wan|ịgh|uwa| di| nn|i ị","ceb":"sa | sa|ng |ang| ka|an | pa|ga | ma|nga|pag| ng|a p|on |kat|a k|ug |od | ug|g m| an|ana|n s|ay |ung|ata|ngo|a m|atu|ala|san|ag |tun|g s|g k|god|d s|a s|ong|mga| mg|g p|n u|yon|a a|pan|ing|usa|tan|tag|una|aga|mat|ali|g u|han|nan| us|man|y k|ina|non|kin| na|syo|lan|a b|asa|nay|n n|a i|awa| ta|taw|gaw|nsa|a n|nas| o |ban|agp|isa|dun|was|iya| gi|asy|adu|ini|bis| ad|ili|o s| bi|g a|nah|nag|a t| ki|lin|lay|ahi|sam|al |wal| di|nal|asu| ba|ano|agt| wa|ama|yan|a u| iy|kan|him|n k|gan|ags|n a|kag| un|ya |kas|gpa|g t| su|aha|wha|agk|awh|gka|a g|kal|l n|gla|gsa|sud|gal|imo|ud |d u|ran|uka|ig |aka|aba|ika|g d|ara|ipo|ngl|g n|uns|n o|kau|i s|y s|og |uta|d n|li | si|gik|g i|mta|ot |iin| la| og|o a|ayo|ok |awo|aki|kab|aho|n m|hat|o p|gpi|a w|apa|lip|ip | hu| ga|a h|uba|na | ti|bal|gon|la |ati|wo |ad |hin|sal|gba|buh| bu| ub|uha|agb|hon|ma |nin|uga|t n|ihi| pi|may| pu|mak|ni | ni|d a|pin|abu|agh|ahu|uma|as |dil|say| in|at |ins|lak|hun|ila|mo |s s|sak|amt|o u|pod|ngp|tin|a d|but|ura|lam|aod|t s|bah|ami|aug|mal|sos|os |k s| il|tra| at|gta|bat|aan|ulo|iha|ha |n p| al|g b|lih|kar|lao|agi|amb|mah|ho |sya|ona|aya|ngb|in |inu|a l| hi|mag|iko|it |agl|mbo|oon|tar|o n|til|ghi|rab|y p| re|yal|aw |nab|osy|dan","tgl":"ng |ang| pa|an |sa | sa|at | ka| ng| ma|ala|g p|apa| na|ata|pag|pan| an| at|ay |ara|ga |a p|tan|g m|mga| mg|n n|pat| ba|n a|aya|na |ama|g k|awa|kar|a k|lan|rap|gka|nga|n s|g n|aha|g b|a a| ta|agk|gan|tao|asa|aka|yan|ao |a m|may|man|kal|ing|a s|nan|aga| la|ban|ali|g a|ana|y m|kat|san|kan|g i|ong|pam|mag|a n|o a|baw|isa|wat| y |lay|g s|y k|in |ila|t t| ay|aan|o y|kas|ina|t n|ag |t p|wal|una|yon| o | it|nag|lal|tay|pin|ili|ans|ito|nsa|lah|kak|any|a i|nta|nya|to |hay|gal|mam|aba|ran|ant|agt|on |t s|agp| wa| ga|gaw|han|kap|o m|lip|ya |as |g t|hat|y n|ngk|ung|no |g l|gpa|wa |lag|gta|t m|kai|yaa|sal|ari|lin|a l|pap|ahi| is| di|ita| pi|pun|agi|ipi|mak|a b|y s|bat|yag|ags|o n|aki|tat|pah|la |gay|hin| si|di |i n|sas|iti|a t|t k|mal|ais|s n|t a|al |ipu|ika|lit|gin| ip|ano|gsa|alo|nin|uma|hal|ira|ap |ani|od |i a|gga|y p|par|tas|ig |sap|ihi|nah|ini| bu|ngi|syo|o s|nap|o p|a g| ha|uka|a h|aru|a o|mah|iba|asy|li |usa|g e|uha|ipa|mba|lam|kin|kil|duk|n o|iga| da|dai|aig|igd|gdi|pil|dig|pak| tu|d n|sam|nas|nak|ba |ad |lim|sin|buh|ri |lab|it |tag|g g|lun|ain|and|nda|pas|kab|aho|lig|nar|ula| ed|edu| ib|git|ma |mas|agb|ami|agg|gi |sar|i m|siy|g w|api|pul|iya|amb|nil|agl|sta|uli|ino|abu|aun|ayu| al|iyo","hun":" sz| a |en | va|és | és|min|ek | mi| jo|jog|ind|an |nek|sze|ság| az|gy |sza|nde|ala|az |den|a v|val|ele| el|oga|mél|egy| eg|n a|ga |zab| me|zem|emé|aba|int|van|bad|tel|tet| te|ak |tás|ény|t a| ne|gye|ély|tt |n s|ben|ség|zet|lam|meg|nak|ni | se|ete|sen|agy|let|lyn|s a|yne|ra |z e|et | al|mel|kin|k j|eté|ok |tek| ki|vag|re |n m|oz |hoz|ez |s s|ett|gok|ogy| kö|mbe|es |em |nem|ely| le|ell|emb|hog|k a|atá|köz|nt | ho|yen|hez|el |z a|len|dsá|ásá|tés|ads|k m| ál| em|a s|nte|a m|szt|a t|áll|ás |y a|ogo|sem|a h|enk|nye|ese|nki|ágo|t s|lap|ame|ber|ló |k é|nyi|ban|mén|s e|i m|t m| vé|lla|ly |ébe|lat|ág |ami|on |mze|n v|emz|fel|a n|lő |a a|eki|eri|yes| cs|lle|tat|elő|nd |i é|ég |ésé|lis|yil|vet|át |kül|ért| ke|éte|rés|l a|het|szo|art|alá| ny|tar|koz| am|a j|ész|enl|elé|ól |s k|tár|s é|éle|s t|lem|sít|ges|ott| fe|n k|tko|zás|t é|kel|ja | ha|aló|zés|nlő|ése|ot |ri |lek|más|tő |vel|i j|se |ehe|tes|eve|ssá|tot|t k|olg|eze|i v|áza|leh|n e|ül |tte|os |ti |atk|zto|e a|tos|ány|ána|zte|fej|del|árs|k k|kor|ége|szá|t n| bi|zat|véd|nev|elm|éde|zer|téb|biz|rra|ife|izt|ere|at |ll |k e|ny |sel| né|ába|lt |ai |sül|ház|kif|t e| ar|leg|d a|is |i e|arr|t t|áso|it |ető|al | má|t v| bá|bár|a é|esü|lye|m l| es|nyo","azj":" və|və |ər |lar| hə|in |ir | ol| hü| bi|hüq|üqu|quq|na |lər|də |hər| şə|bir|an |lik| tə|r b|mal|lma|ası|ini|r h|əxs|şəx|ən |arı|qla|a m|dir|aq |uqu|ali| ma|una|ilə|ın |yət| ya|ara|ikd|əri|ar |əsi|əti|r ş|rin|yyə|n h| az|dən|nin|ərə|tin|iyy|mək|zad| mü|sin| mə|ni |nda|ət |ndə|aza|rın|ün |ını|ə a|i v|nın|olu|qun| qa| et|ilm|lıq|ə y|ək |lmə|lə |kdi|ind|ına|olm|lun|mas|xs |sın|ə b| in|n m|q v|nə |əmi|n t|ya |da | bə|tmə|dlı|adl|bər| on|əya|ə h|sı |nun|maq|dan|inə|etm|un |ə v|rlə|n b|si |raq| va|ə m|n a|ınd|rı |anı| öz|əra|nma|n i|ama|a b|irl|ala|li |ins|bil|ik | al| di|ığı|ə d|lət|il |ələ|ə i|ıq |nı |nla|dil|müd|n v|ə e|unm|alı| sə|xsi|ə o|uq |uql|nsa|ətl| də|ili|üda|asi| he|ola|san|əni|məs| da|lan| bu|tər|həm|dır|kil|iş |u v| ki|min|eyn|mi |yin| ha|sos|heç|bu |eç | ed|kim|lığ|alq|xal| as|sia|osi|r v|q h|rə |yan|i s| əs|daf|afi| iş|ı h|fiə| ta|ə q|ıql|a q|yar|sas|lı |ill|mil|əsa|liy|tlə|siy|a h|məz|tün|ə t| is|ist|iyi| so|n ə|al |ifa|ina|lıd|ı o|ıdı|əmə|ır |ədə|ial| mi|əyi|miy|çün|n e|iya|edi| cə| bü|büt|ütü|xil|üçü|mən|adə|t v|a v|axi|dax|r a|onu| üç|seç| nə| se|man|ril|sil|əz |iə |öz |ılı|aya|qan|i t|şər|təm|ulm|rəf|məh| xa|ğın| dö| ni|sti|ild|amə|qu |nam|n o|n d|var|ad |zam|tam|təh","ces":" pr| a |ní | ne|prá|ráv|ost| sv| po|na |ho |ch | na|nos|o n|ání| ro|ti |neb|vo |má |ávo|ebo|kaž|ažd| ka|ou | má|bo | za| je| př|ždý|dý |svo|a s|sti| st|á p| v |obo|vob|bod| sp| zá|pro|rod|ých|ván|ého| by|ý m|ení|né | ná|spo|ová|o p|ter|mi |ně |í a|roz|to |a p|by |jak|nár|áro| li| ja|a z|í p|i a| vš|lid|kte|ny |u p|o v|ím |odn|at |mu | vy| ma| so|li |zák| kt|kla|í n|tní|a v|ví |oli|pod|mí |en |je | do|stá|byl|t s|do |em |áva|pol|být| bý|o s| ve|vše|í s|it |í b|čin|rov|dní|tví| se| k |ýt |vol|sou|a n|ejn|nou|se |ran|nýc|nes|stn|ci |i s|vé |ým |kol|pří|ova|ích|žen|du |ečn|stv|e s|mez|své|ají|tát|ké |u s|jeh|eho|ným|va |ním|ech|eré|o z|maj| ze|ole| i |ému|i v|y s|ids|kon|hra|nu |ave|í v| to|m p|o d|i n|len|pra|chn|esm|že | ta| ni| os|vat|sta|dsk|st | že|ovn|rac|lad|i p|chr|aby|m a| ab|ako|aké|néh|sob|smí|áv |bez|dy |čen|lně|í m|vou|leč|a m|t v|lní| ji|při|áln|oci|rav|i k|ými| či|ens|odu|m n| s |jí |ákl|zem|kdo|och| oc|ste| vz|ven|ky |oko|tej|jin|slu|ivo|zen|inn|ské|y b|zac|a j|věd|ezi| me|nez|u a|ský|stu|a o|oln|iál|nit|řís|níc|í z|u k|pln| tr|u o|svě|nik|ikd| od|ože|anu|vin|i j|cho|aci|děl| pl|ává|a t|odi|í k| vo|adn|est|tup| mu|obe|ve |din|odů|h n|u v|nem|por|hov|čno|kéh| vý|tak|jno","run":"ra |we |wa | mu|e a|se | n |a k|ira|ntu|tu | ku| um|ko |a i|mu |iri|mun|hir|ye |unt|ing|ash|ere|shi|a n|umu|zwa| bi|gu |ege|a a|za |teg|ama|e k|go |uba|aba|ngo|ora|o a|ish| ba| ar|ung|a m| we|e n|na |sho|ese|nga| ab|e m|mwe|ugu| kw|ndi| gu|ate|kwi|wes|riz|ger|u w| at|di |gih|iza|n u|ngi|ban|yo |ka |e b|a b| am| ca|ara|e i|obo|hob|ri |u b|can|nke|ro |bor| in|bah|ahi|ezw|a u|gir|ke |igi|iki|iwe|rez|ihu|hug|aku|ari|ang|a g|ank|ose|u n|o n|rwa|kan| ak|nta|and|ngu| vy|aka|n i|ran| nt| ub|kun|ata|i n|kur|ana|e u| ko|gin|nye|re | ka|any|ta |uko|amw|iye| zi|ga |ite| ib|aha| ng|era|o b|ako|o i| bu|o k|o u|o z| ig|o m|ho |mak|sha| as| iv|ivy|n a|i b|izw|o y| uk|ubu|aga|ba |kir|vyi|aho| is|nya|gan|uri| it| im|u m|kub|rik|hin|guk|ene|bat|nge|jwe|imi| y |vyo|imw|ani|kug|u a|ina|gek|ham|i i|e c|ze |ush|e y|uru|bur|amb|ibi|agi|uza|zi |eye|u g|gus|i a| nk|no |abi|ha |rah|ber|eme|ras|ura|kiz|ne |tun|ron| zu|ma |gen|wo |zub|w i|kor|zin|wub|ind| gi|y i|ugi|je |iro|mbe| mw|bak| ma|ryo|eka|mat| ic|onk|a z| bo|ika|eko|ihe|ukw|wir|bwa| ry| ha|bwo| ag|umw|yiw|tse| ya|he |eng| ki|nka|bir|ant|aro|gis|ury|twa| yo|bik|rek|ni | ah| bw|uro|mw |tan|i y|nde|ejw| no|zam|puz|ku |y a|a c|bih|ya |mur|utu|eny|uki|bos","plt":"ny |na |ana| ny|y f|a n|sy |aha|ra |a a| fa|n n|y n|a m|an | fi|tra|any| ma|han|nan|ara|y a| am|ka |in |y m|ami|olo| ts|lon|min| mi| sy| na|a t| ol|fan| ha|a i|man|iza| iz|ina|ona|y h|aka|o a|ian|a h|reh|etr|a s|het|on |a f|ire|fah|tsy|mba| ar| hi|zan|ay |ndr|y o|ira|y t| an|ehe|o h|afa|y i|ren|ran| zo|ena|amb|dia|ala|amp|zo |ika| di|tan|y s|y z| az|ia |m p|rin|jo |n j| jo| dr|zy |ry |a d|ao |and|dre|haf|nen|mpi|rah| ka|eo |n d| ir|ho |am |rai|fa |elo|ene|oan|omb| ta| pi| ho|ava|azo|dra|itr|iny|ant|tsi|zon|asa|tsa| to|ari|ha |a k|van|n i|fia|ray| fo|mbe|ony|sa |isy|azy|o f|lal|ly |ova|lom| vo|nat|fir|sam|oto|zay|mis|ham|bel| ra|a r|ban|kan|iha|nin|a e|ary|ito| he| re| no|ita|voa|nam|fit|iar| ko|tok|isa|fot|no |otr|mah|aly|har|y v|y r| sa|o n|ain|kam|aza|n o|oka|ial|ila|ano|atr|oa | la|y l|eri|y d|ata|hev|sia|pia|its|reo| ao|pan|anj|aro|tov|nja|o s|fam|pir| as|ty |nto|oko|y k|sir|air|tin|hia|ais|mit|ba | it| eo|o t|mpa|kon|a z|a v|ity|ton|rak|era|ani|ive|mik|ati|tot|vy |hit|hoa|aho|ank|ame|ver|vah|tao|o m|ino|dy |dri|oni|ori| mo|hah|nao|koa|ato|end|n t| za|eha|nga|jak|bar|lah|mia|lna|aln|va | mb|lan| pa|aov|ama|eve|za |dro|ria|to |nar|izy|ifa|adi|via|aja| va|ind|n k|idi|fiv|rov|vel","qug":"una|ta | ka|na |ka |ash|cha|a k|ari|ish|kun|kta|ana|pak|hka|shk|apa|mi |ach|hay|akt|shp|man|ak | ch| ha|rin|ata|tak|lla|ita|ami|ama|aku|har| pa|pas|ayñ|yñi|ina| ma| ru|uku|sh |hpa|run|all|kuy|aka|an | tu|tuk|yta|chi|chu|a c|ñit|in |nak|a h|nka|ris|tap|kan| ki|ayt|pi | sh|pa |i k|a p|nap|kam|kaw|pay|nam|ayp|aws|iri|wsa|a s|ank|nta|uy |a t|hin|a m|ay | li|ant|lia|kay|nat|a r|shi|iak|lak|uya| wa|yuy|say|kis|y r|ypa|hun|a a| yu|n t|tam| ti|yay|n k| ya|a w|hpi|lli| al|api|yku|un |ipa|a i|iku|ayk|shu| sa|ush|pir|ich|kat|hu |huk| il|ill|kas|a y|rik|yac|a l| ku|kac|hik|tan|wan|ypi|ink|ika| ni|ila|ima|i c|yll|ayl| wi|mac|nis| ta|i y|kus|tin|n s|i p|yan|llu|la |iks|tik|kpi| pi|awa|may|lan|li | ri|kll|yas|kin|kak|aya|ksi|k h|aym|war|ura| ay|lat|ukt|i t|iya|ull|mas|sha|kir|uch|h k|nch|akp|uma|pip|han|kik|iki|riy|aki| ii|i s|n p|h m|kar|nal|y h|tac| su|nac|mak|n m|nki|k a|mam|iwa|k t|k k|i m|yma| ña|wil|asi|nmi|kap|pal|sam|pam|k i|k l|i i|pan|sum|i w| hu|his| mu|iia|mun|k m|u t|pik|was|ik |ma |hat|k r|akl|huc| im|mal|uyk|imi|n y|anc|y k|a n|iñi| iñ|wak|unk|yka| mi|iña|a u|has|ywa| ak|llp|ian|ha |tar|rmi|i a|arm|las|ati|pur|sak|ayw|hap|yar|uti|si |iyt|uri|kim| ar|san|h p|akk|iy |wat|wpa|y i|u k","mad":"an |eng|ban|ng | sa| ka|dha| ba|ren|ak |ang| se| ha|hak| dh|na | pa|se |adh|a s|aba|n s|ara|ngg|are|ha |aga|sa | or|ore|asa|sar|ana| ma|aan|a k|ale|gi | ag|gad|a b|n o|n k|eba|ala|ra |gan| ke|dhu|ota|aja|bas|n b|ka |man|tab|dhi|beb|sab|ama|ako|abb|at |ggu|nga| ta|pan|wi |huw|uwi|eka|ata|a d|san| ot|agi|lak|hal|ba |bba|i h|ong|em |kab|g a|lem|a o| pe| na|ane|par|ngs|nge|gar|a a|tan|gsa|a p|ran|i s|k h|n p|uy |guy|ken|n a|al |ada| ga|apa|pon|e d| e |nek| an|g s|ta |kaa|on |kal|a m|ssa|ona|abe|kat| la|a e|e e|sal|ate|jan|ri |nan|lab|asi|sad|i p|e a|lan|aka|a h|ari| bi|ena|si |daj| ng|ton|e k|har|oss|gen|i k|g k|car|ase|ano|era|kon| be|nya|n d|nag|bad|ar |epo| da|mas| kl| al|n t|mat|nos|n n|ela|g e|a n|k k|uwa|adi|pad|ggi|uan|i d|ne | so|hi |sae|oan|wan|as |le |gap|ter|yat|om |kla|k a|e b|ina|ah |k s|koa|i a|ega|neg|n h|m p|aha| as| ja|abi|ma |kas|bi | mo|aon| di|one| ep|per|aya|e s|nto|te |bat|epa|nda|n e| ca|int|pam|di |ann| ra|aen|k d|amp|a t|nta|and|e p|rga|pen|yar|mpo|ste|dra|ok |oko|ila|g p|k b|i b|set|to |isa|nao|nna|n m|ett| a |bis|hid|bin|i m|nas| ho|kar|t s| po|dil| to|aju|ika|kom|arg|ant|raj|a l|das|tto|ost|mos|lae|ga |rek|idh|tad|hig|en |rny|arn|ndh|eta|adu| dr|jat|jua|gam","nya":"ndi|ali|a k|a m| ku| nd|wa |na |nth| mu| al|yen|thu|se |ra |nse|hu |di |a n|la | pa|mun| wa|nga|unt| la|a u|u a|e a|ons|za | ma| lo|iye|ace|ce |a l|idw|ang| ka|kha|liy|ens|li |ala|ira|ene|pa |i n|we |e m|ana|dwa|era|hal|ulu|lo |ko |dzi| ci|yo |o w|iko|ga |a p|chi| mo|lu |o l|o m|oyo|ufu| um|moy|zik| an|ner|and|umo|ena| uf|dan|iri|ful|a a|ka |to |hit|nch| nc|a c|ito|fun|dwe| da|kuk|wac| dz|e l|a z|ape|kap|u w|e k|ere|ti |lir| za|pen|tha|aye|kut|mu |ro |ofu|ing|lid| zo|amu|o c|i m|mal|kwa|mwa|o a|eza|i p|o n|so |i d|lin|nso| mw|iro|zo | a |ati| li|i l|a d|ri |edw|kul|una|uti|lan|a b|iki|i c|alo|i k| ca|lam|o k|dza|ung|o z|mul|ulo|uni|gan|ant|nzi| na|nkh|e n|san|oli|wir|tsa|u k|ome|ca |gwi|unz|lon|dip|ipo|yan|gwe|pon|akh|uli|aku|mer|ngw|cit| po| ko|kir|mba|ukh|tsi|bun|iya|ope|kup|bvo|han| bu|pan|ame|vom|ama| ya|siy| am|rez|u n|zid|men|osa|ao |pez|i a| kw| on|u o|lac|ezo|aka|nda|hun|u d|ank|diz|ina|its|adz| kh|ne |nik|e p|o o|ku |phu|eka| un|eze|mol|ma | ad|pat|oma|ets|wez|kwe|kho|ya |izo|sa |o p|kus|oci|khu|okh|ans|awi|izi|zi |ndu|iza|no |say| si|i u|aik|jir|ats|ogw|du |mak|ukw|nji|mai|ja |sam|ika|aph|sid|isa|amb|ula|osi|haw|u m| zi|oye|lok|win|lal|ani| ba|si | yo|e o|opa|ha |map|emb","zyb":"bou|aeu|enz|nz |eng|iz |ih |uz |uq |oux|ing| bo| di| ca|z g|dih|ux |ngh|cae|gen|euq|z c|you|ng |ung|ngz|ij | gi| mi|miz|aen| ge|z d| ci|gya| yi| de|ouj|uj | gu|cin|ngj|ien|mbo|dae| mb|zli| se|gij|j g|ang|ouz|z y|j d|nae| cu| ba| da|h g|oz |yin|de |z b|nzl|li |nj |euz|x m| cw|iq | yo|gz |q g|yau|inh|vun|x b|h c| ga|ix |cwy|wyo| ro|rox|oxn|vei|nda|i c| nd|z m|gh |j b|wz | si| gy|hoz|unz|xna|cun|gue| li|ei |z h|yen|bau|can|inz|q c|dan| hi|gj |uh |yie| vu|faz|hin| bi|uek|goz|zci|nh |aej|ya |ej | fa|gun|ciz|au | go| ae|h m|ngq|den|gva|ouq|nq |z s|q d|ekg|q s| do|h d|kgy|eix| wn|ci |az |hu |nhy| ha|j c|u d|j n|z l|auj|gai|gjs|lij|eve|h s|sen|sin|sev|ou |sou|aiq|q y|h y|jso|bin|nei| la|en |ouh|din|uen|enj|enh|i b|z r|awz|q n|vih|j y|anj|bwn|sei|z n| ne|ozc|hye|j s|i d|awj|liz|g g|bae|wng|g b|eiq|bie|enq|zda| ya|n d|h f|x d|gak|hix|z v|h b|oen|anh|u c|in |i g|ghc|zsi|hci|siz|anz|ghg|ez |dun|cou| du|ngg|ngd|j m|cuz| ho|law|eiz|g c| dw|aw |g d|izy|hgy|ak |nde|min|dei|gda|ujc|wn |env|auy|iuz|ai |wnj|a d|hen|ozg|nzg|ek |g y|gzd|gzs|yaw|e c|yuz|daw|giz|jhu|ujh| co|nvi|guh|coz| ve| he|i m|sae|aih|x l|iet|iuj|dwg|iqg|qgy|gih|yai| na| fu|uyu|zbi|zdi|q b|cie|inj|zge|wnh|jsi|uzl| bu| le|eij|izc|aq ","kin":"ra | ku| mu|se |a k|ntu|nga|tu |umu|ye |li | um|mun|unt|a n|ira| n |ere|wa |we | gu|mu |ko |a b|e n|o k|e a|a u|a a|u b|e k|ose|uli|aba|ro | ab|gom|e b|ba |ugu| ag|omb|ang| ib|eng|mba|o a|gu | ub|ama| by| bu|za |ihu|ga |e u|o b| ba|kwi|hug|ash|ren|yo |ndi|e i| ka| ak| cy|iye| bi|ora|re |gih|igi|ban|ubu| nt| kw|di |gan|a g|a m|aka|nta|aga| am|a i|ku |iro|i m|ta |ka |ago|byo|ali|and|ibi|na |uba|ili| bw|sha|cya|u m|yan|o n| ig|ese|no |obo|ana|ish|kan|sho| we|era|ya |aci|wes|ura|i a|uko|e m|n a|o i|kub|uru|hob|ber|ran|bor| im|ure|u w|wo |cir|gac|ani|bur|u a|o m|ush| no|e y| y |rwa|eke|nge|ara|wiy|uga|zo |ne |ho |bwa|yos|anz|aha|ind|mwe|teg|ege|are|ze |n i|rag|ane|u n|ge |mo |u k|bul| uk|bwo|bye|iza|age|ngo|u g|gir|ger|zir|kug|ite|bah| al| ki|uha|go |mul|ugo|n u|tan|guh|y i| ry|gar|bih|iki|atu|ha |mbe|bat|o g|akw|iby|imi|kim|ate|abo|e c|aho|o u|eye|tur|kir| ni|je |bo |ata|u u| ng|shy|a s|gek| ru|iko| bo|bos|i i| gi|nir|i n|gus|eza|nzi|i b|kur| ya|o r|ung|rez|ugi|ngi|nya| se|mat|eko|o y| in|uki| as|any|bis|ako|gaz|imw|rer|bak|ige|mug|ing|byi|kor|eme|nu | at|bit| ik|hin|ire|kar|shi|yem|yam| yi|gen|tse|ets|ihe|hak|ubi|key|rek|icy| na|bag|yer| ic|eze|awe|but|irw| ur|fit|ruk|ubw|rya|uka|afi","zul":"nge|oku|lo | ng|a n|ung|nga|le |lun| no|elo|wa |la |e n|ele|ntu|gel|tu |we |ngo| um|e u|thi|uth|ke |hi |lek|ni |ezi| ku|ma |nom|o n|pha|gok|nke|onk|a u|nel|ulu|oma|o e|o l|kwe|unt|ang|lul|kul| uk|a k|eni|uku|hla| ne| wo|mun| lo|kel|ama|ath|umu|ho |ela|lwa|won|zwe|ban|elw|ule|a i| un|ana|une|lok|ing|elu|wen|aka|tho|aba| kw|gan|ko |ala|enz|o y|khe|akh|thu|u u|na |enk|kho|a e|zin|gen|i n|kun|alu|mal|lel|e k|nku|e a|eko| na|kat|lan|he |hak| ez|o a|kwa|o o|ayo|okw|kut|kub|lwe| em|yo |nzi|ane|obu| ok|eth|het|ise|so |ile|nok| ba|ben|eki|nye|ike|i k|isi| is|aph|esi|nhl|mph| ab|fan|e i|isa| ye|nen|ini|ga |zi |fut| fu|uba|ukh|ka |ant|uhl|hol|ba |and|do |kuk|abe|za |nda| ya|e w|kil|the| im|eke|a a|olo|sa |olu|ith|kuh|o u|ye |nis| in|ekh|e e| ak|i w|any|khu|eng|eli|yok|ne |no |ume|ndl|iph|amb|emp| ko|i i| le|isw|zo |a o|emi|uny|mel|eka|mth|uph|ndo|vik| yo|hlo|alo|kuf|yen|enh|o w|nay|lin|hul|ezw|ind|eze|ebe|kan|kuz|phe|kug|nez|ake|nya|wez|wam|seb|ufa|bo |din|ahl|azw|fun|yez|und|a l|li |bus|ale|ula|kuq|ola|izi|ink|i e|da |nan|ase|phi|ano|nem|hel|a y|hut|kis|kup|swa|han|ili|mbi|kuv|o k|kek|omp|pho|kol|i u|oko|izw|lon|e l| el|uke|kus|kom|ulo|zis|hun|nje|lak|u n|huk|sek|ham| ol|ani|o i|ubu|mba| am","swe":" oc|och|ch |er |ing|för|tt |ar |en |ätt|nde| fö|rät|ill|et |and| rä| en| ti| de|til|het|ll |de |om |var|lig|gen| fr|ell|ska|nin|ng |ter| ha|as | in|ka |att|lle|der|sam| i |und|lla|ghe|fri|all|ens|ete|na |ler| at|ör |den| el|av | av| so|igh|r h|nva|ga |r r|env|la |tig|nsk|iga|har|t a|som|tti| ut|ion|t t|a s|nge|ns |a f|r s|män|a o| sk| si|rna|isk|an | st|är |ra | vi| al|t f| sa|a r|ati| är| me| be|n s| an|tio|nna|lan|ern|t e|med| va|ig |äns| åt|sta|ta |nat| un|kli|ten| gr|vis|äll| la|one|han|änd|t s|stä|t i|ner|ans|gru| ge|ver| må| li|lik|ihe|ers|rih|r a| re|må |sni|n f|t o| mä| na|r e|ri |ad |ent|kla|det| vä|run|rkl|da |h r|upp|dra|rin|igt|dig|n e|erk|kap|tta|ed |d f|ran|e s|tan|uta|nom|lar|gt |s f| på| om|kte|lin|r u|vid|g o|änn|erv|ika|ari|a i|lag|rvi|id |r o|s s|vil|r m|örk|ot |ndl|str|els|ro |a m|mot| mo|i o|på |r d|on |del|isn|sky|e m|ras| hä|r f|i s|a n|nad|n o|gan|tni|era|ärd|a d|täl|ber|nga|r i|enn|nd |n a| up|sin|dd |örs|je |itt|kal|n m|amt|n i|kil|lse|ski|nas|end|s e| så|inn|tat|per|t v|arj|e f|l a|rel|t b|int|tet|g a|öra|l v|kyd|ydd|rje| fa|bet|se |t l|lit|sa |när|häl|l s|ndr|nis|yck|h a|llm|lke|h f|arb|lmä|nda|bar|ckl|v s|rän|gar|tra|re |ege|r g|ara|ess|d e|vär|mt |ap ","lin":"na | na| ya|ya |a m| mo|a b|to | ko| bo|li |o n| li|i n| pe|i y|a y|a n|ngo|ki | ba| ma|kok|pe |la |a l|zal|oki|ali|nso|oto|ala|ons|so |mot|a k|nyo|eng|kol|go |nge| ny|yon|o e|ang|eko|te |o y|oko|olo|ma |iko|a e|e m|e b|lik|ko |o a|ako|ong| ye|mak|ye |isa| ek|si |lo |aza|sal|ama| te|bat|o p|oyo|e n| az|a p|ani|sen|o m|ela|ta |amb|i k|ban|ni | es|yo |mi |mba|osa| oy|aka|lis|i p|eli|a t|mok|i m|ba |mbo| to| mi|isi|bok|lon|ato|ing|o b| nd|ota|bot| ez|ge |nga|eza|o t|nde|ka |bo |gel|kan|e k|lam|sa |ese|koz| po|den|ga |oba|omb|oli|yan|kop|bon|mos|e e|kob|oka|kos|bik|lin|po |e a| lo| bi|kot|’te|ngi|sam| ’t|omi|e y|ti |i b| el|elo|som|lok|esa|gom|ate|kam|i t|ika|a s|ata|kat|ati|wa |ope|oza|iki|i e| ka|bom|tal|o l|bek|zwa|oke|pes| se|bos|o o|ola|bak|lak|mis|omo|oso|nza| at|nda|bal|ndi|mu |mob|osu|e t|asi|bis|ase|i l|ele|sus|usu|su |ozw|and|mol|tel|lib|mbi|ami| nz|ne |ene|kel|aye|emb|yeb|nis|gi |obo|le |kum|mal|wan|a ’|pon| ep|baz|tan|sem|nya|e l| ta|gis|opo|ana|ina|tin|obe| ti|san| ak|mab|bol|oku|u y|mat|oti|bas|ote|mib|ebi|a o|da |bi | mb|lel|tey|ibe|eta|boy|umb|e p|eni|za |be |mbe|bwa|ike|se | et|ibo|eba|ale|yok|kom| en|i a|mik|ben|i o| so|gob|bu |son|sol|sik|ime|eso|abo| as|kon|eya|mel","som":" ka|ay |ka |an |uu |oo |da |yo |aha| iy|ada|aan|iyo|a i| wa| in|sha| ah| u |a a| qo|ama| la|hay|ga |ma |aad| dh| xa|ah |qof|in | da|a d|aa |iya|a s|a w| si| oo|isa|yah|eey|xaq|ku | le|lee| ku|u l|la |taa| ma|q u|dha|y i|ta |aq |eya|sta|ast|a k|of |ha |u x|kas|wux| wu|doo|sa |ara|wax|uxu| am|xuu|inu|nuu|a x|iis|ala|a q|ro |maa|o a| qa|nay|o i| sh| aa|kal|loo| lo|le |a u| xo| xu|o x|f k| ba|ana|o d| uu|iga|a l|yad|dii|yaa|si |a m|gu |ale|u d|ash|ima|adk|do |aas| ca|o m|lag|san|dka|xor|adi|add| so|o k| is|lo | mi|aqa|na | fa|soo|baa| he|kar|mid|dad|rka|had|iin|a o|aro|ado|aar|u k|qaa| ha|ad |nta|o h|har|axa|quu| sa|n k| ay|mad|u s| ga|eed|aga|dda|hii|aal|haa|n l|daa|xuq|o q|o s|uqu|uuq|aya|i k|hel|id |n i| ee|nka| ho|ina|waa|dan|nim|elo|agu|ihi|naa|mar|ark|saa|riy|rri|qda|uqd| bu|ax |a h|o w|ya |ays|gga|ee |ank| no|n s|oon|u h|n a|ab |haq|iri|o l| gu|uur|lka|laa|u a|ida|int|lad|aam|ood|ofk|dhi|dah|orr|eli| xi|ysa|arc|rci|to |yih|ool|kii|h q|a f| ug|ayn|asa| ge|sho|n x|siy|ido|a g|gel|ami|hoo|i a|jee|n q|agg|al | di| ta|e u|o u| ji|goo|a c|sag|alk|aba|sig| mu|caa|aqo|u q|ooc|oob|bar|ii |ra |a b|ago|xir|aaq| ci|dal|oba|mo |iir|hor|fal|qan| du|dar|ari|uma|d k|ban|y d|qar|ugu| ya|xay|a j","hms":"ang|gd |ngd|ib | na|nan|ex |id | ji|ad |eb |nl |b n|d n| li|ud |jid| le|leb| ga|ot |anl|aot|d g|l l|b l| me|ob |x n|gs |ngs|mex|nd |d d| ne|jan|ul | ni|nja| nj| gu| zh|lib|l n|ong| gh|gao|b j|b g|nb |l g|end|gan| ad| je|jex|ngb|gb |han|el | sh| da|ub |d j|d l|t n| nh|nha|b m|is |d z|x g| ya|oul|l j| wu|she|il |nex| ch|b y|d s|gue|gho|uel|wud|d y| gi|d b|hob|nis|s g| zi| yo|lie|es |nx |it |aob|gia|ies| de|eib|you| ba| hu|ian|zib|d m|s j|oud|b d|chu|ol |ut | do|t j|nen|hud|at |s n|hen|iad|ab |enl| go|dao| mi|t g|zha|b z|enb|x j| ze|eit|hei|d c|nt |b s| se|al | xi|inl|hao| re| fa|d h|gua|yad|ren| ho|anb|gx |ngx|ix |nib|x z|and|b h|b w|fal| xa|d x|t l|x m|don|gou|bao|ant|s z|had|d p|yan|anx|l d|zhe|hib| pu|ox | du|hui|sen|uib|uan|lil|dan|s m| di| we|gha|xin|b x|od |zhi|pud| ju| ng|oub|xan| ge|t z|hub|t h|hol|t m|jil|hea|x l| ma|eud|jul|enx|l z|l s|b a| lo| he|nga|d r|zen| yi|did|hon|zho|gt |heb|ngt|os |d a|s l|aos| si|dei|dud|b b|geu|wei|d w|x c|x b|d k|dou|l h|lou| bi|x a|x d|b c| sa|s a| bo|eut|blo| bl|nia|lol|t w|bad|aod| qi|ax |deb| ja|eab| nd|x s|can|pao| pa|gl |ngl|che|sat|s y|l m|t s|b f|heu|s w| to|lia| ca|aox|unb|ghu|ux | cu|d f|inb|iel| pi|jib|t p|x x|zei|eul|l t|l y|min|dad","hnj":"it | zh| ni|ab |at | sh|ang|nit|os | do|uat|ox |ax |nx |ol |ob | nd|t d|x n|nf |zhi|as | ta|tab|ef |if |d n|ad | mu| cu|uax|cua|mua|b n|uf |ib |s d|dos|id |enx|nb |hit| lo|f n|t l|ngd|gd |us |inf|ux |ed | go|she|b d|b z|t n| ho|x z| yi|aob|l n|ong|t z| zi|ix |nda|d z|ut |yao|uab|enb| de|dol|f g| dr|zhe| yo| le|euf|x d|inx|nen|das| ne|dro|gb |ngb|d s| ge|hox|f z|uef|s n|len|b g| ua|ud |nd |gox| na|il | du|x j|oux|f y|f h|ndo|x c|han|of |zha|uad|s z| da| ny| ja| gu|heu| ji|ik | bu|shi|lob|od | ya|gf |t g|hai|ged|ngf|b h|you| hu|ex |bua|out|nil|hen|rou|yin|zhu|ous|nya|enf|f d|is | re|b c|lol|nad|dou|af | xa| id|t s| ha|uk |jai|xan|sha|b y|hua|aib|s s|d d| la| qi|ren|x l|hue|l m|x g|ot | xi| ba| zo| kh| dl|jua| ju|aod|zif|ait|bao| di| ga|x y| nz|b s|x s|xin| li|aof|b b|ngx|gx |eb |b l|x t|x m|hed| be|dax|b t|s t|hef|las|d j|gua| pi|t y|f b|d l|l d|nzh| ib|hif|t h|dus|t r|hou|f l|hun|und|s l|el |aik|d y|aos|f t| mo| bi|hab|ngt|gai| za|uas|x h|gt | zu|ros|aid|zos| gh|end|pin|k n|k z| ao|iao|s b|dex|x b|due|ak |d g| fu|s x|deu|s y|mol|x i|f s|hik| hl| bo|l b|eut|lb |uaf|zho|d b| lb|s m|lan|al |b k|t b| ch|d p|x x|f x|ub |t c|d m| ro| nt|d h|et |uak|aox|gon|tua|yua|t t|zis|deb|d t| we|shu","ilo":"ti |iti|an |nga|ga | ng| pa| it|en | ka| ke| ma|ana| a | ti|pan|ken|agi|ang|a n|a k|aya|gan|n a|int|lin|ali|n t|a m|dag|git|a a|i p|teg|a p| na|nte|man|awa|kal|da |ng |ega|ada|way|nag|n i| da|na |i k|sa |n k|ysa|n n|no |a i|al |add|aba| me|i a|eys|nna|dda|ngg|mey| sa|pag|ann|ya |gal| ba|mai| tu|gga|kad|i s|yan|ung|nak|tun|wen|aan|nan|aka| ad|enn| ag|asa| we|yaw|i n|wan|nno|ata| ta|l m|i t|ami|a t| si|ong|apa|kas|li |i m|ina| an|aki|ay |n d|ala|gpa|a s|g k|ara|et |n p|at |ili|eng|mak|ika|ama|dad|nai|g i|ipa|in | aw|toy|oy |ao |yon|ag |on |aen|ta |ani|ily|bab|tao|ket|lya|sin|aik| ki|bal|oma|agp|ngi|a d|y n|iwa|o k|kin|naa|uma|daa|o t|gil|bae|i i|g a|mil| am| um|aga|kab|pad|ram|ags|syo|ar |ida|yto|i b|gim|sab|ino|n w| wa| de|a b|nia|dey|n m|o n|min|nom|asi|tan|aar|eg |agt|san|pap|eyt|iam|i e|saa|sal|pam|bag|nat|ak |sap|ed |gsa|lak|t n|ari|i u| gi|o p|nay|kan|t k|sia|aw |g n|day|i l|kit|uka|lan|i d|aib|pak|imo|y a|ias|mon|ma | li|den|i g|to |dum|sta|apu|o i|ubo|ged|lub|agb|pul|bia|i w|ita|asy|mid|umi|abi|akd|kar|kap|kai| ar|gin|kni| id|ban|bas|ad |bon|agk|nib|o m|ibi|ing|ran|kda|din|abs|iba|akn|nnu|t i|isu|o a|aip|as |inn|sar| la|maa|nto|amm|idi|g t|ulo|lal|bsa|waw|kip|w k|ura|d n|y i"},"Cyrillic":{"rus":" пр| и |рав|ств| на|пра|го |ени|ове|во | ка|ани|ть | в | по| об|ия |сво| св|лов|на | че|ело|о н| со|ост|чел|ие |ого|ет |ния|ест|аво|ый |ажд| им|ние|век| не|льн|ли |ова|име|ать|при|т п|и п|каж|или|обо| ра|ых |жды| до|дый|воб|ек |бод|ва |й ч|его|ся |и с|ии |аци|еет|но |мее|и и|лен|ой |тва|ных|то | ил|к и|енн| бы|ию | за|ми |тво|и н|о п|ван|о с|сто|аль| вс|ом |о в|ьно|их |ног|и в|нов|ако|про|ий |сти|и о|пол|олж|дол|ое |бра|я в| ос|ным|жен|раз|ти |нос|я и| во|тор|все| ег|ей |тел|не |и р|ред|ель|тве|оди| ко|общ|о и| де|има|а и|чес|ним|сно|как| ли|щес|вле|ься|нны|аст|тьс|нно|осу|е д| от|пре|шен|а с|бще|осн|одн|быт|сов|ыть|лжн|ран|нию|иче|ак |ым |ват|что|сту|чен|е в| ст|рес|оль| ни|ном|род|ля |нар|вен|ду |оже|ны |е и| то|вер|а о|зов|м и|нац|ден|рин|туп|ежд|стр| чт|я п|она|дос|х и|й и|тоя|есп|лич|бес|обр|ото|о б|ьны|ь в|нии|е м|ую | мо|ем | ме|аро| ре|ава|кот|ав | вы|ам |жно|ста|ая |под|и к|ное| к | та| го|гос|суд|еоб|я н|ен |и д|мож|еск|ели|авн|ве |ече|уще|печ|дно|о д|ход|ка | дл|для|ово|ате|льс|ю и|в к|нен|ции|ной|уда|вов| бе|оро|нст|ами|циа|кон|сем|е о|вно| эт|азо|х п|ни |жде|м п|ког|от |дст|вны|сть|ые |о о|пос|сре|тра|ейс|так|и б|дов|му |я к|нал|дру| др|кой|тер|ь п|арс|изн|соц|еди|олн","ukr":"на | пр| і |пра|рав| на|ня |ння| за|ого| по|ти |го |люд| лю|во | ко| ма|льн|юди|их |о н| не|аво|анн|дин| св|сво|ожн|кож|енн|пов|жна| до|ати|ина|ає |а л| бу|аці|не |ува|обо| ос| як|має| ви|них|аль|або|є п| та|ні |ть |ови|бо | ві| аб|ере|і п|а м|вин|без|при|іль|ног|о п|ми |та |ом |ою |бод|ста|воб| бе|до |ва |ті | об|о в|ост| в | що|ий |ся |і с| сп|инн|від|ств|и п|ван|нов|нан|кон| у |ват|она|ії |но |дно|ій |езп|пер| де|ути|ьно|ист|під|сті|бут| мо|и і|ідн|ако|нні|ід |тис|що |род|і в|а з|ава| пе|му |і н|а п|соб|ої |а в|спр|ів |ний|яко|ду |вно|і д|ну |аро|и с| ін|ля |рів|у в| рі|и д|нар|нен|ова|ому|лен|нац|ним|ися|чи |ав |і р|ном| ро|нос|ві |вни|овн| її|ові|мож|віл|у п| пі| су|її |одн| вс|ово|ють|іст|сть|і з| ст|буд| ра|чен|про|роз|івн|оду|а о|ьни|ни |о с|сно|зна|рац|им |о д|ими|я і|ції|х п|дер|чин| со|а с|ерж|и з|и в|е п|ди |заб|осо|у с|е б|сі |тер|ніх|я н|і б|кла|спі|в і| ні|о з|ржа|сту|їх |а н|нна|так|я п|зпе| од|абе|для|ту |і м|печ| дл|же |ки |віт|ніс|гал|ага|е м|ами|зах|рим|ї о|тан|ког|рес|удь| ре|то |ков|тор|ара|сві|тва|а б|оже|соц|оці|ціа|осн|роб|дь‐|ь‐я|‐як|і і|заг|ахи|хис|піл|цій|х в|лив|осв|іал|руч|ь п|інш|в я|ги |аги| ді|ком|ини|а і|оди|нал|тво|кої|всі|я в|ною|об |о у|о о|і о","bos":" пр| и |рав| на|пра|на |да |ма |има| св|а с|а п| да|а и| по|је |во |ко |ва | у |ако|но |о и|е с| за| им|аво|ти |ава|сва|и п|ли |о н|или|и с|их |вак| ко|ост|а у| сл|не |вањ| др|ње | не|кој|ња | би|ије|и д|им |ств|у с|јед|бод|сло|лоб|обо| ил|при| је|ање| ра|а д| об| су|е и|вје|се |ом |и и|сти| се|ју |дру|а б| ос|циј|вој|е п|а н|раз|су |у п|ања|о д|ује|а о|у и| од|и у|ло |ова|дје|жав|оје|а к|ни |ово|едн|ити|аци|у о|о п|нос|и о|бра| ка|шти|а ј|них|е о|пре|про|ржа| бу|буд|тре| тр|ог |држ|бит|е д|у з|ја |ста|авн|ија|е б|миј|и н|реб|сво|ђи |а з|ве |бил|ред|род|аро|ило|ива|ту |пос| ње| из|е у|ају|ба |ка |ем |ени|де |јер|у д|одн|њег|ду |гов|вим|јел|тва|за | до|еђу|ним| са|нар|а т| ни|о к|оји|м и| см| ст|еба|ода|ран|у н|дна|ичн|уђи|ист|вно|алн|и м| дј|нак|нац|сно|нст|тив|ани|ено|е к|е н|аве|ан |чно|и б|ном|сту|нов|ови|чов|нап|ног|м с|ој |ну |а р|еди|овј|оја|сми|осн|анс|ара|дно|х п|под|сам|обр|о о|руг|тво|ји | мо|его|тит|ашт|заш| кр|тељ|ико|уна|ник|рад|оду|туп|жив| ми|јек|кри| ов| вј| чо|ву |г п| оп|међ|њу |рив|нич|ина|одр|е т|уду| те|мје|ење|сви|а ч|у у|ниц|дни| та|и т|тно|ите|и в|дст|акв|те |ао | вр|ра |вољ|рим|ак |иту|ави|кла|вни|амо| он|ада|ере|ена|сто|кон|ст |она|иво|оби|оба|едс|как|љу ","srp":" пр| и |рав|пра| на|на | по|ма | св|да |има|а п|а и|во |ко |ва |ти |и п| у |ако| да|а с|аво|и с|ост| за|о и|сва| им|вак|ава|је |е с| сл| ко|о н|ња |но |не | не|ом |ли | др|или|у с|сло|обо|кој|их |лоб|бод|им |а н|ју | ил|ств| би|сти|а о|при|а у| ра|јед|ог | је|е п|ње |ни |у п|а д|едн|ити|а к|нос|и у|о д|про| су|ање|ова|е и|вањ|и и|циј| ос|се |дру|ста|ају|ања|и о| об|род|ове| ка| де|е о|аци|ја |ово| ни| од|и д| се|ве |ује|ени|ија|авн|жав| ст|у и|м и|дна|су |ред|и н|оја|е б|ара|што|нов|ржа|вој|држ|тва|оди|у о|а б|одн|пош|ошт|ним|а ј|ка |ран|у у| ов|аро|е д|сно|ења|у з|раз| из|осн|а з|о п|аве|пре|де |бит|них|шти|ву |у д|ду |ту | тр|нар| са|гов|за |без|оји|у н|вно|ичн|еђу|ло |ан |чно|ји |нак|ода| ме|вим|то |сво|ани|нац| ње|ник|њег|тит|ој |ме |ном|м с|е у|о к|ку | до|ика|ико|е к|пос|ашт|тре|алн|ног| вр|реб|нст| кр|сту|дно|ем |вар|е н|рив|туп|жив|те |чов|ст |ови|дни|ао |сме|бра|ави| ли|као|вољ|ило|о с|штв|и м|заш|њу |руг|тав|анс|ено|пор|кри|и б|оду|а р|ла | чо|а т|руш|ушт| бу|буд|ављ|уги|м п|ком|оје|вер| ве|под|и в|међ|его|вре|акв|еди|тво| см|од |дел|ена|рад|ба | мо|ну |о ј|дст|кла| оп|как|сам|ере|рим|вич|ива|о о| он|вни|тер|збе|х п|ниц|еба|е р|у в|ист|век|рем|сви|бил|ште|езб|јућ|њен|гла","uzn":"лар|ан |га |ар | ва| би|да |ва |ир | ҳу|ига|уқу|бир|ҳуқ|қуқ|ган| ҳа|ини|нг |р б|иш | та|ни |инг|лик|а э|ида|или|лиш|нин|ари|иши| ин|ади|он |инс|нсо|сон|ий |лан|дир| ма|кин|и б|ши |ҳар| бў|бўл| му|дан|уқи|ила|қла|р и|қиг|эга| эг| ўз|ки |эрк|қил|а б|оли|кла| эр|гад|лга|нли| ол|рки|и ҳ| ёк|ёки| қа|иб |иги|лиг|н б|н м| қи| ба|ара|атл|ри | бо|лат|бил|ин |ҳам|а т|лаш|р ҳ|ала| эт|инл|ик |бош|ниш|ш ҳ|мас|и в|эти|тил|тла|а ҳ|и м|а қ|уқл|қар|ани|арн|рни|им |ат |оси|ўли|ги | да|а и|н ҳ|риш|и т|мла|ли | ха|а м|ият| бу|рла|а а|рча|бар|аси|ўз |арч|ати|лин|ча |либ|мум| ас|аро|а о|ун |таъ| бе| ту|икл|р в|тга|тиб| ке|н э|ш в|мда|амд|али|н қ|мат|шга| те|сид|лла|иро| шу| қо|дам|а ш|ирл|илл|хал|рга| де|ири|тиш|умк|ола|амл|мки|тен|гин|ур |а ў|рак|а ё|имо| эъ|алқ| са|енг|тар|рда|ода| ша|шқа|ўлг|кат|сий|ак |н о|зар|и қ|ор | ми|нда|н в| си|аза|ера|а к|тни|р т|мил| ки|к б|ана|ам |ошқ|рин|сос|ас | со|сиз|асо|нид|асл|н ў|н т|илг|бу |й т|ти |син|дав|шла|на |лим|қон|и а|лак|эма|муҳ|ъти|си |бор|аш |и э|ака|нга|а в|дек|уни|екл|ино|ами| жа|риг|а д| эм|вла|лма|кер| то|лли|авл| ка|ят |н и|аъл|чун|анл|учу| уч|и с|аёт| иш|а у|тда|мия|а с|ра |ўзи|оий|ай |диг|эът|сла|ага|ник|р д|ция| ни|и ў|ада|рор|лад|сит|кда|икд|ким","azj":" вә|вә |әр |лар| һә|ин |ир | ол| һү| би|һүг|үгу|гуг|на |ләр|дә |һәр| шә|бир|ан | тә|лик|р б|мал|лма|асы|ини|р һ|шәх|ән |әхс|ары|гла|дир|а м|али|угу|аг | ма|ын |илә|уна|јәт| ја|икд|ара|ар |әри|әси|рин|әти|р ш|нин|дән|јјә|н һ| аз|ни |әрә| мә|зад|мәк|ијј| мү|син|тин|үн |олу|и в|ндә|гун|рын|аза|нда|ә а|әт |ыны|нын|лыг|илм| га| ет|ә ј|кди|әк |лә |лмә|олм|ына|инд|лун| ин|мас|хс |сын|ә б|г в|н м|адл|ја |тмә|н т|әми|нә |длы|да | бә|нун|бәр|сы | он|әја|ә һ|маг|дан|ун |етм|инә|н а|рлә|си | ва|ә в|раг|н б|ә м|ама|ры |н и|әра|нма|ынд|инс| өз|аны|ала| ал|ик |ә д|ләт|ирл|ил | ди|бил|ығы|ли |а б|әлә|дил|ә е|унм|алы|мүд| сә|ны |ә и|н в|ыг |нла|үда|аси|или| дә|нса|сан|угл|уг |әтл|ә о|хси| һе|ола|кил|ејн|тәр|јин| бу|ми |мәс|дыр|һәм| да|мин|иш | һа| ки|у в|лан|әни| ас|хал|бу |лығ|р в| ед|јан|рә |һеч|алг| та|еч |и с|ы һ|сиа|оси|сос|фиә|г һ|афи|ким|даф| әс|ә г| иш|н ә|ији|ыгл|әмә|ы о|әдә|әса| со|а г|лыд|илл|мил|а һ|ыды|сас|лы |ист| ис|ифа|мәз|ыр |јар|тлә|лиј|түн|ина|ә т|сиј|ал |рил| бү|иә |бүт| үч|үтү|өз |ону| ми|ија| нә|адә|ман|үчү|чүн|сеч|ылы|т в| се|иал|дах|сил|еди|н е|әји|ахи|хил| ҹә|миј|мән|р а|әз |а в|илд|и һ|тәһ|әһс|ы в|һси|вар|шәр|абә|гу |раб|аја|з һ|амә|там|ғын|ад |уғу|н д|мәһ|тәм| ни|и т| ха","koi":"ны |ӧн | бы|да | пр|пра|рав| мо|лӧн| да|быд|лӧ |орт|мор|ӧм |аво|ӧй | ве|ыд | не|нӧй|ыс |ын |сӧ |тӧм|сь |во |эз |льн|ьнӧ|тны|д м| ас|ыны|м п| по|сьӧ| и |то |бы | ӧт| эм| кы|аль|тлӧ|н э| от|вер|эм | кӧ|ртл|ӧ в| ко|воэ|ств|ерм|тшӧ| до|ола|ылӧ|вол|ас |ӧдн|кыт|ісь|ето|нет|тво|ліс|кӧр|ӧс | се|ы с|шӧм|а с|та |злӧ| ме| ол|аци|ӧ к|ӧ д|мед| вы|вны|а в|на |з в| на|ӧ б|лас|ӧрт| во| вӧ| сі|лан|рмӧ|дбы|едб|ыдӧ|оз |ась| оз| сы|ытш|олӧ|оэз|тир|с о| чу|ы а|оти|ция|ись|ӧтл| эт|рты| го|ы п|ы б|кол|тыс|сет| сь|рті|кӧт|о с|н б|дз |н н| мы| ке|кер|тӧн|тӧг|ӧтн|ис |а д|мӧ |ост|ӧ м| со|онд|нац|дӧс|итӧ|ест|выл| ви|сис|эта| уд|суд|нӧ |удж|ӧг |пон|ы н|н п|мӧд|а п|орй|ӧны|ӧмӧ|н м|ть |сыл|ана|ті |нда|рны|сси|рре|укӧ|з к|чук|йын|рез| эз|ысл|ӧр |ьӧр|с с|с д|рт |с в|езл|кин|осу|эзл|й о|отс| тӧ|ы д| ло| об|овн|лӧт|асс|кӧд|с м|ӧ о|нал|быт|она|ӧт |слӧ|скӧ|кон|тӧд|ытӧ|дны|а м|ы м|нек|ы к|ӧ н|асл|дор|ӧ п| де| за|а о| ов|сть|тра| дз|ь к|ӧтч|н к| ст|аса|етӧ|ьны|мӧл|умӧ|сьн| ум|ерн|код| пы|тла|оль|иал|а к|н о| сэ|а н|ь м|кыд|циа|са | ли|а б|езӧ|й д| чт|ськ|эсӧ|ион|еск|ӧ с|оци|что|ан |соц|йӧ |мӧс|тко|зын|нӧя|вес|енн| мӧ|ӧтк|ӧсь|тӧ |рлӧ|ӧя |оля|рйӧ|ӧмы|гос|тсӧ|зак|рст|з д|дек|ннё|уда|пыр|еки|ако|озь| а |исӧ|поз|дар|арс|ы ч","bel":" і | пр|пра|ава| на|на | па|рав|ны |ць |або| аб|ва |ацы|аве|ае | ча|ння|анн|льн| ма| св|сва|ала|не |чал|лав|ня |ай |ых | як|га |век|е п| ад|а н| не|пры|ага| ко|а п| за|кож|ожн|ы ч|бод|дна|жны|ваб|цца|ца | ў |а а|ек |мае|і п|нне|ных|асц|а с|пав|бо |ам |ста| са| вы|ван|ьна| да|ара|дзе|одн|го |наг|він|аць|оўн|цыя|мі |то | ра|і а|тва| ас|ств|лен|аві|ад |і с|енн|і н|аль|най|аво|рац|аро|ці |сці|пад|ама| бы| яг|яго|к м|іх |рым|ым |энн|што|і і|род| та|нан| дз|ні |я а|гэт|нас|ана| гэ|інн|а б|ыць|да |ыі |оў |чын| шт|а ў|цыі|які|дзя|а і|агу|я п|ным|нац| у | ўс|ыя |ьны|оль|нар|ўна|х п|і д|ў і| гр|амі|ымі|ах | ус|адз| ні|эта|ля |воў|ыма|рад|ы п|зна|чэн|нен|аба| ка|ўле|іна|быц|ход| ін|о п| ст|ера|уль|аў |асн|сам|рам|ры | су|нал|ду |ь с|чы |кла|аны|жна|і р|пер|і з|ь у|маю|ако|ыцц|яко|для|ую |гра|ука|е і|нае|адс|і ў|кац|ўны|а з| дл|яўл|а р|аюч|ючы|оду| пе| ро|ы і|вы |і м|аса|е м|аду|х н|ода|адн|нні|кі | шл|але|раз|ада|х і|авя|нав|алі|раб|ы ў|нна|мад|роў|кан|зе |дст|жыц|ані|нст|зяр|ржа|зак|дзі|люб|аюц|бар|ім |ены|бес|тан|м п|дук|е а|гул|я ў| дэ|ве |жав|ацц|ахо|заб|а в|авы|ган|о н|ваг|я і|чна|я я|сац|так|од |ярж|соб|м н|се |чац|ніч|ыял|яль|цця|ь п|о с|вол|дэк| бе|ну |ога| рэ|рас|буд|а т|асо|сно|ейн","bul":" на|на | пр|то | и |рав|да |пра| да|а с|ств|ва |та |а п|ите|но |во |ени|а н|е н| за|о и|ото|ван|не | вс|те |ки | не|о н|ове| по|а и|ава|чов|ни |ане|ия | чо|аво|ие | св|е п|а д| об|век|ест|сво| им|има|ост|и д|и ч|ани|или|все|ли |тво|и с|ние|вот|а в|ват|ма | ра|и п|и н| в |ек |сек|еки|а о| ил|е и|при| се|ова|ето|ата|воб|обо|бод|аци|ат |пре|оди|к и| бъ| съ|раз| ос|ред| ка|а б|о д|се | ко|бъд|лно|ния|о п| от|ъде|о в|за |ята| е | тр|и и|о с|тел|и в|нит|е с|ран| де|от |общ|де |ка |бра|ен |ява|ция|про|алн|и о|ият|ст |нов| до|его|как|ато| из|нег|а т|ден|а к|щес|а р|тря|а ч|ряб|о о|вен|ябв|бва|дър|гов|нац|ено|тве|ърж|е д|нос|ржа|а з|вит|зи |акв|лен| та|ежд|и з|род|е о|обр|нот| ни| с |т с|нар|о т|она|ез |йст|кат|иче| бе|жав|е т|е в|тва|зак|аро|кой|осн| ли|ува|авн|ейс|сно|рес|пол|нен|вни|без|ри |стр| ст|сто|под|чки|вид|ган|си |ди |и к|нст| те|а е|вси|еоб| дъ|сич|ичк|едв|жен|ник|ода|т н|о р|ака|ели|одн|елн|лич| че|чес|бще| ре|и м| ср|сре|и р|са |лни| си|дви|ичн|жда| къ|оет|ира|я н|дей| ме|еди|дру|ход|еме|кри|че |дос|ста|гра| то|ой |тъп|въз|ико|и у|нет| со|ави|той|елс|меж|чит|ита|що |ъм |азо|зов|нич|нал|дно| мо|ине|а у|тно|таз|кон|лит|ан |клю|люч|пос|тви|а м|й н|т и|изв|рез|ази|ра |оят|нео|чре","kaz":"ен |не | құ|тар|ұқы| ба| қа|ға |ада|дам|құқ|ық | бо| ад|ықт|қта|ына|ар | жә|ың |ылы|әне|жән| не|мен|лық|на |р а|де | жа|ін |а қ|ары|ан | әр|қыл|ара|ала| ме|н қ|еме|уға|ның| де|асы|ам |іне|тан|лы |нды|да |әр |ығы|ста|еке| өз|ын |ған|анд|мес| бі| қо|ды |ің |бас|бол|етт|ып |н б|ілі|қық|нде|ері|е қ|алы|нем|се |бір|лар|есе|ы б|тын|а ж| ке|тиі|ост|ге |бар| ти|е б| ар|дық|сы |інд|е а|аты| та| бе|ы т|ік |олы|нда|ғын|ры |иіс|ғы | те|бос|луы|алу|сын|рын|еті|іс |рде|қығ|е ж|рін|дар|іні|н ж|тті|қар|н к|ім | ер|егі|ыры|ыны| са|рға|ген|ынд|аны|уын|ы м|лға|ана|нің|тер|уы |ей |тік|ке |сқа|қа |мыс|тық|м б|ард| от|е н|е т|мны|өзі|нан|гіз|еге| на|ы ә|аза|ң қ|лан|нег|асқ|кін|амн|кет|рал|айд|луғ|аса|ті |рды|і б|а б|ру | же|р м|ді |тта|мет|лік|тыр|ама|жас|н н|лып| мү|дай|өз |ігі| ал|ауд|дей|зін|бер|р б|уда|кел|біл|і т|қор|тең|лге| жү|ден|ы а|елі|дер|ы ж|а т|рқы|рлы|арқ| тү|қам|еле|а о|е ө|тін|ір |ең |уге|е м|лде|ау |ауы|ркі|н а|ы е|оны|н т|рыл|түр|ция|гін| то| ха|жағ|оға|осы|зде| ос|ікт|кті|а д|ұлт|лтт|тты|лім|ғда| ау| да|хал|тте|лма| ұл|амд|құр|ірі|қат|тал|орғ|зі |елг|сіз|ағы| ел|ң б|ыс | ас|імд|оты| әл|н е|ағд|қты|шін|ерк|е д|ек |ені|кім|ылм|шіл|аға|сты|лер|гі |атт|кен| кө|ым‐| кұ|кұқ|ра |рік|н ә| еш"},"Arabic":{"arb":" ال|ية | في|الح|في | وا|وال| أو|ة ا|أو |الم|الت|لحق|حق |لى |كل |ان |ة و|الأ| لك|لكل|ن ا|ها |ق ف|ات |مة |ون |أن |ما |اء |ته |و ا|الع|ي ا|شخص|ي أ| أن|الإ|م ا|حري| عل|ة ل|من |الا|حقو|على|قوق|ت ا|أي |رد | شخ| لل| أي|ق ا|لا |فرد|رية| ول| من|د ا| كا| إل|خص |وق |ا ا|ة أ|ا ي|ل ف|ه ا|نسا|جتم|ن ي|امة|كان|دة | حق|ام |الق|ة م| فر|اية|سان|ل ش|ين |ن ت|إنس|ا ل| لا|ذا |هذا|ن أ|لة |ي ح| دو|ه ل|لك |ترا|لتع|اً |له |إلى| عن|ى ا|ه و|ع ا|ماع|د أ|اسي| حر|ة ع|مع |الد|نون| با|لحر|لعا|ن و|، و|يات|ي ت|الج| هذ|ير |بال|دول|لإن|عية|الف|ص ا| وي|الو|لأس| إن|أسا|ساس|ماي|حما|رام|سية|انو|مل |ي و|عام|ا و|تما| مت|ة ت|علي|ع ب|ك ا| له|ة ف|قان|ى أ|ول |هم |الب|ة ب|ساو|لقا|الر|لجم|ا ك|تمت|ليه|لتم|لمت|انت| قد|اد |ه أ| يج|ريا|ق و|ل ا|ا ب|ال |يه |اعي|لدو|ل و|لإع|لمي|لمج|لأم|تع |دم |تسا|عمل|اته|لاد|رة |اة |غير|قدم|وز |جوز|يجو|عال|لان|متع|مان|فيه|اجت|م و|يد |تعل|ن ل|ر ا| يع| كل|مم |مجت|تمع|دون| مع|تمي|ذلك|كرا|يها| مس|ميع|إعل|علا| تم| عا|ملا|اعا|لاج|ني |ليم|متس|ييز|يم |اعت|الش| تع|ميي|عن |تنا| بح|لما|ي ي|يز |ود |أمم|لات|أسر|شتر|تي | جم|ه ع|ر و|ي إ|تحد|حدة| أس|عة |ي م|ة، |معي|ن م|لمس|م ب|اق |جمي|لي |مية|الض|الس|لضم|ضما|لفر| وس|لحم|امل|ق م|را |ا ح|نت | تن|يته| أم|إلي|واج|د و|لتي| مر|مرا|متح| ذل| وأ| تح|ا ف| به| وم| بم|وية|ولي|لزو","urd":"ور | او|اور|کے | کے| کی|یں | کا|کی | حق|ے ک|کا | کو|یا |نے |سے | اس|ئے |کو |میں| ہے| می|ے ا| کر| ان|وں | ہو|اس |ر ا|شخص|ی ا| شخ| سے| جا|حق |خص |ہر |ام |ے م|ں ک|ہیں| یا|سی | آز|آزا|زاد|ادی|ائے|ا ح|ص ک|ہ ا|ہے |جائ|ت ک|ر ش|کہ |م ک| پر|ی ک|پر |ان |ا ج|۔ہر|س ک|دی |ہے۔|ق ہ|ی ح|ں ا|و ا|ر م|ار |حقو|قوق|ن ک|ری |کسی|ے گ|ی ج| مع| ہی|وق |سان|نی |ر ک|کرن|ی ت| حا| جو|تی |ئی | نہ| کہ|ل ک|اپن|جو |نسا|انس|ہ ک|ے ب|نہ |ہو | مل| اپ|یت |می |ے ہ|رنے|ے ل|ل ہ|ا ا| کس|رے |ی ش| ای|وہ |۔ ا|اصل|نہی|صل |ی م|یں۔|حاص|معا|د ک|انہ|ایس|ی ب|ی ہ|ملک|ق ک|ات | تع|دہ |قوم| قو|ے، |ر ہ|ا م|یہ | دو| من| بن| گا|اشر|کیا|ں م|عاش|وام| عا|اد |قوا|ی س|بر |اقو|انی| جس| لئ|لئے|دار|ر ب|ائی| وہ|ے۔ہ|مل |ے ج|علا|یوں| یہ|ے ح|ہ م|و ت|جس |ا ہ|کر |ر ن|لیم|انو| قا| و |ے۔ | اق|یم |ریق|لک |گی |ی آ|دوس| گی|وئی|ر پ|، ا|نیا|تعل| مس|ر ع|ی، |یر |لاق|خلا| رک|ین | با|ن ا|ی ن|ے پ|پنے|وری|ا س| سک| دی|ون |گا۔|م ا|انے|علی|یاد|قان|نون|س م|اف |رکھ| اع| پو| شا|وسر|ق ح|سب | بر|رتی| بی|اری| بھ|رائ| مم|ر س|یسے|ومی|دگی|ندگ| مر| پی| چا|و گ|نا |ے خ|ہ و|ادا| ہر|ا پ|تما|پور|مام|ے ع|ائد| عل|بھی|ھی |عام| مت| مق|من |د ا| ام|ونک| خل|نکہ|لاف|اعل|کوئ|اں |ریع|ذری| ذر|بنی| لی|و ک|دان|ں، |ے ی|ا ک| مح|، م|ت ا|ال |پنی|ے س|ر آ|ر ح|دیو|غیر| طر|ہوں|ی پ|ِ م|کرے| سا|اسے|رہ |برا","fas":" و | حق| با|که |ند | که| در|در |رد | دا|دار|از | از|هر | هر|یت |ر ک|حق |د ه|ای |د و|ان | را|ین |ود |یا | یا|را |ارد|ی و|کس | کس| بر| آز|باش|ه ب|آزا|د ک| خو|ه ا|د ب|زاد| اس|ار | آن|ق د|شد |حقو|قوق|ی ب|وق |ده |ه د|ید |ی ک|و ا|ور |ر م|رای|اشد|خود|ادی|تما|ری | اج|ام |دی |اید|س ح|است|ر ا|و م| ان|د ا|نه | بی|با | هم| نم|مای| تا|د، |ی ا|انه|ات |ون |ایت|ا ب|ست | کن|برا|انو| بش| مو|این| مر|اسا| مل|وان|ر ب|جتم| شو| اع|ن ا|ورد| می| ای|آن | به|و آ|ملل|ا م|ماع|نی |ت ا|، ا|ت و|ئی |عی |ائی|اجت|و ب|های|ن م|ی ی|بشر|کند|شود| من| زن|ن و|ی، |بای|ی ر| مس|مل |مور|ز آ|توا|دان|اری|علا|گرد|یگر|کار| گر| بد|ن ب|ت ب|ت م|ی م| مق|د آ|شور|یه |اعی| عم|ر خ|ن ح| کش|رند|مین| اح|ن ت|ی د| مت|ه م|د ش| حم|و د|دیگ|لام|کشو|هٔ |ه و|انی|لی |ت ک| مج|ق م|میت| کا| شد|اه |نون| آم|اد |ادا|اعل|د م|ق و|ا ک|می |ی ح|لل |نجا| مح|ساس|یده| قا|بعی|قان|ر ش|مقا|ا د|هد |وی |نوا|گی |ساو|ر ت|بر |اً |نمی|اسی|اده|او | او| دی| هی|هیچ|ه‌ا|‌ها|یر |خوا|د ت|همه|ا ه|تی |حما|دگی|بین|ع ا|سان|ر و|شده|ومی| عق| بع|ز ح|شر |مند| شر|ٔمی|أم|تأ|انت|اند|اوی|مسا|ردد|بهر| بم|ارن|یتو|ل م|ران|و ه|ر د|م م|رار|عقی|سی |و ت|زش | بو|ا ا|ی ن|موم|جا |عمو|رفت|عیت| فر|ندگ|واه|زند|م و|نما|ه ح|ا ر|دیه|جام|مرد|ت، |د ر|مام| تم|ملی|نند|الم|طور|ی ت|تخا|ا ت|امی|امل|دد | شخ|شخص","zlm":" دا|ان |دان| بر| او|ن س| ڤر|له |كن |ن ك|ن ا|دال|ن د|رڠ |يڠ |حق | يڠ|ارا| كڤ|أن |تيا|ڤد |ورڠ|ڠن |ياڤ| تر|اله|ولي|ن ڤ|اور|كڤد|برح|رحق|ين |اڤ |را | ات|ليه|ستي|ه ب|يه |اتا| ست| عد|عدا|ن ب|تاو|ن ت|يبس|ڤ ا|او |بيب|سي | كب|ه د|ن م| سو| من| حق| سا|لم |ق ك|اسا|الم|ن ي| تي| اي|سام|رن |ن، | ما|اتو|باڬ|بسن|سن |نڬا|ڬار|اين| مم|د س| با|كبي|ي د|ڠ ع|چار| سب|ڽ س|اڬي|د ڤ|ندق|سبا|اڽ | د | ڤم|نسي|قله|يند|ڬي |ام |تن |وان|تا |اون|ي ا| نڬ|هن | بو|ا ڤ|أنس|بول| كس| سم| سچ|ڠ ب|سچا|مأن|ا ب|ا س|بڠس| ڤڠ|دڠن|سيا|اسي|ساس| مأ| دڠ| اس|بار|هند|مان|ارڠ|رتا|دقل|تي |ت د| هن|ڤرل|نڽ |ات |ادي|ق م|، ك|تره|رها|هاد| ڤو|ادڤ| لا|ي م|ڤا |يكن|اول|ڤون|، د|ون |ڠسا|٢ د|اي |ق٢ |تو |وق |دڤ |يأن|وين|ن ه|ن٢ |ا د|وڠن|نتو|اكن|وا |ندو|وات|ه م|ي س|ڠ٢ | مڠ| ان|حق٢|يك |اد |مڤو|رات|اس |مرا|برس|ائن| مل| سس|ماس| كو|ري | بي|سوا|ڠ ت|ا، |، ت|ياد|امر|سمو|ڠ م|ڤرا|لوا|ڤري|دوڠ|ي ك|ل د|تار|ريك|تيك|ارك|ونت|لين| سر|رلي|سرت|وند|واس|رسا|ڤمب|ترم|، س|اڬا|يري|رأن| در|ا ا|دير| بڠ|ي ڤ|لائ|سوس|ڠ س|توق|سأن|ورو|جوا|هار|اڤا|وكن| ڤن|٢ ب|موا| كم|ارأ|نن |ندڠ|ا٢ | كأ|دڠ٢|و ك|كرج|وه |ا م|ڤرك|تها|اجر|جرن|ي، |شته| سڤ| به|ندي|ق ا|ڠڬو|بها|ڤ٢ | مر|سات|راس|بوا|ه ا|ا ك|د ك| ڤل|ن ح|لاج|هڽ |ڠ ا|مبي|ينڠ|بس | اڤ|ملا|كور|وار|م ڤ|سسي|نتي|تيڠ| دل|سال|وبو|منو|ڤول|مول|ڠ د|نتا|انت|ال ","skr":"تے |اں | تے|دے |دی |وں | دا| حق| کو|ے ا|کوں| دے|دا | دی|یاں| کی|ے ۔|یں |ہر | ۔ |کیت|ہے | وچ| ہے|وچ | ان| شخ|شخص|ادی|ال | حا|اصل|حق |حاص|ے م|خص |صل |ں د| نا|یا | ای|اتے|ق ح|ل ہ|ے و|ں ک| ات|ہیں|سی | مل|نال|زاد|ازا|ی ت| از|قوق|ار |ا ح|حقو| او|ص ک| ۔ہ|۔ہر|ر ش|دیا|ے ج|وق |ندے| کر|یند| یا|نہ | جو|کہی|ئے |ی د|سان|نسا|وند|ی ا|یتے|انس|ا ا|ملک|ے ح|و ڄ|ے ک|ڻ د| وی|یسی|ے ب|ا و| ہو|ں ا|ئی |ندی|تی |آپڻ|وڻ |ر ک|ن ۔| نہ|انہ|جو | کن| آپ| جی|اون|ویس|ی ن| تھ| کہ|ان |ری |ڻے | ڄئ| ہر|ے ن|دہ |ام |ں م|ے ہ|تھی|ں و|۔ ا|ں ت|ی ۔|کنو|ی ح|ی ک|نوں|رے |ہاں| بچ|ون |ے ت|کو | من|ی ہ|اری|ور |نہا|ہکو|یتا|نی |یاد|ت د|ن د| ون|وام|ی م|قوا|تا |ڄئے|پڻے| ہک|می | قو|ق ت|ے د|لے |اف |ل ک|ل ت| تع|چ ا|ین |خلا|اے |علا| سا|جیا|ئو |کرڻ|ی و|انی|ہو |دار| و |ی ج| اق|ن ا|یت |ارے|ے س|لک |ق د|ہوو| ڋو|ر ت| اے|ے خ| چا| خل|لاف|قنو|نون|پور|ڻ ک| پو|ایہ|بچئ|چئو|ات |الا|ونڄ|وری|این| وس| لو|و ا|ہ د| رک|یب |سیب|وسی|یر |ا ک|قوم|ریا|ں آ| جا|رکھ|مل |کاں|رڻ |اد |او |عزت| قن|ب د|وئی|ے ع| عز| ۔ک| مع|اقو|ایں|م م|زت |ڻی |یوڻ|ر ہ| سم|ں س|لوک| جھ| سی|جھی|ت ت|ل ا|اوڻ|کوئ|ں ج|ہی |حدہ|تعل|ے ذ|وے |تحد|متح|لا |ا ت|کار| اع|ے ر| مت|ر ا|ا م|ھین|ھیو|یہو| مط| سڱ|ی س|ڄے |نڄے|سڱد|لیم|علی|ے ق| ذر|م ت| کھ|ن ک| کم|ہ ا|سار|ائد|ائی|د ا| ہن|ہن |ی، |و ک|ں ب|ھیا|ذری|ں پ|لی ","pbu":" د | او|او |په | په|چې | چې| حق|ي ا|ره |ې د|نه |و ا|و د|هر |ه ا|ه و|ه د| څو| کښ|ري |حق |ي چ|کښې|له |غه |ښې |څوک|وي | شي|وک |و پ|لري| سر| لر|ه پ|سره|لو |ټول|کړي|يت |ه ک|ي۔ه| ټو|ي، |ر څ| له|ق ل|يا | هغ| از|۔هر|ازا| کړ|د م|هغه|دي | کو|نو |حقو|د ا|زاد|قوق|خه | وا| پر|ه ت|ولو|ه ه|ه م| وي| څخ| يا|يو |څخه|د د|ول | دي|ه ش|ي د|کول|ته |ه ب|ګه |و ي|ړي |و م|شي۔|اد |ونو|واد|دې | مل| تر| هي|خپل| نه|د ه| تو|ې پ| يو|تون|د پ|ان | با|ني |ک ح|ولن|ه ح|يوا|ادي| هر|وقو|د ت|ړي۔|ي و| مس|ې ا|ي پ|شي |امي|لي |ې و|يد |هيو| دا|وګه|دان| دغ| عم|قو |ي۔ |انه|ار | خپ|ايد|ه چ|باي|بشر| ده|لني|هغو|توګ|اند|، د|ه ن|و ه| لا| بر|مي | تا|ين |ي ح|م د|ايت| من|غو |وي،|دهغ| شو|شوي|دغه|و ح|اوي| ته|د ب|ي ت|پل |نيز| بش|ه ي| ډو|ه ل|ه ګ|ون |نون|پر |يڅ |انو|هيڅ|رو |و ت|بعي|علا|وم |ډول|ده |ومي|ونه|تر |و ک|کار|اره|ساو|اتو|ن ک|وند| اع|مين|اعل|لام|يه |موم| ان|اسي|سي |مسا| وک| ځا|تو |ي ش| پي|قان| ګټ|اخل|ديو|د ټ|و ر|ټه | مح| بي|ل ت|وکړ| ور|ن ش|ه س|ې ک|وون| قا|عمو|عقي|و س|ژون| اس| ژو|و ب|لان|کي |ې چ| وس|ځاي|پار|يز |ندې|لتو|ک د|ولے|لے | نو| ار|رته|وسي| بل|شري|و ن|د ق|ا ب|من |وق |ر د|اسا|بل | غو|ونک|ملت|ګټه|ا د| عق|دو | اج| هم|مان|ر م| را|هم |ښوو|۔هي| وړ|څ څ|تام|و څ| رو|ي م|ت ا|شخص| شخ|مل |ل ا|خصي|ل ه|نې |ت ک| چا|ن د|ړان|وړا|بر | ښو|ادا|ورو"},"Devanagari":{"hin":"के |प्र| के|और | और|ों | का|कार| प्|का | को|या |ं क|ार |ति |को | है|िका|ने |है |्रत|धिक| अध|अधि|की |ा क| कि| की| सम|ें |व्य|्ति|से |क्त|ा अ|्यक| व्|में|ि क|मान| मे| स्|सी |न्त| हो|े क|यक्|ता |ै ।|क्ष|त्य| कर|िक | वि| या|्य |भी |रत्|ी स| जा|र स|येक|स्व|ेक |रों|्ये|ा ज|िया|त्र|क व|र ह| अन|किस|्रा|ित |ा स|िसी|ा ह|ना | से| सा| । |देश|र क|गा | पर| अप|े स|ान |्त्|ी क|्त |समा| रा|ा प| ।प|वार|था |ष्ट|।प्|अन्|न क|षा |्वा|तन्| मा|ारो|्षा|्ट्|राष|वतन|ाष्|ाप्|ट्र|प्त|े अ|्वत| इस|राप| उस|कि |हो |त ह|ं औ| सं|े प|ार्|करन| भी| दे|किय|ा ।| न |जाए|ी प|र अ|क स|री | नि|अपन|े व|सभी|्तर| तथ|तथा|रा |यों|ओं |िवा|ाओं|ीय |सके|द्व|सम्|व क|पर |्री| द्|रता|ारा| ऐस|िए | सभ|रक्|्या|र प|ा व|माज|रने|र उ|होग|ो स|ं म|िक्| जि| लि|त क|ाएग|स्थ|े म|पूर|ाव |पने| भा|इस |े ल| घो|कृत|घोष|श्य|द्ध|लिए|ा औ|ो प|र्व|ाने|भाव|रूप|र्य|ी र|ेश |णा |ं स|ूर्|शिक|ूप |्ध |रीय| रू|। इ|े ब|दी |न्य|य क|रति|एगा| उन|ी अ|े औ| सु|सार|ेशो|जो |शों|जिस|ा उ| शि|ियो|तर्|ी भ|परा|चित|ानव|तिक|्र | पा| पू|म क|षणा|ोषण|ोगा|गी |र्ण|ाना|िश्|ो क|विश|ले |ारी|परि|र द|नव | यह|्म |साम|रका|म्म|राध| बु| जो|ानू| जन|चार|वाह|नून|स्त|े य|्रो|दिय|न स|ास |कर |य स|ं न|ाज |कता| सद|निय|अपर| ।क|ताओ|न अ|ाह |ी ज|बन्|ी न|े ज|ोई |य ह|्था|ामा|याद|ी व|ंकि|ूंक|ी म|चूं|श क|ुक्|त र","mar":"्या|या |त्य|याच|चा | व |ण्य|कार|प्र|ाचा| प्|िका|धिक| अध|अधि|च्य|ार |आहे| आह|ा अ|हे | स्|्ये|्रत|स्व|ा क| कर|्वा|ता |ास |ा स| त्|त्र|ा व|यां|ांच|िक |वा |मान| या| अस| का|्य |ष्ट|रत्|र्य|येक|ल्य|ाहि|र आ| को|ामा| सं|क्ष|कोण|ाच्| रा|ा न|ात |ंत्| सा|ून |ेका|ाष्|्ट्|ट्र|ने |राष| मा|चे |तंत|किं|िंव|ंवा| कि|व्य|े स|वात|करण|क्त|कास| मि|ा प| सम|ना |ये |मिळ|समा|ातं|र्व|्र्|े प| जा|यास|व स|ोणत|रण्|ा आ|ीय |काम|े क| दे|ांन|्यक|हि | व्|रां|ा म| आप|ही |्षण| पा|ान |े अ|ार्|िळण|ारा| आण|ळण्|ंच्|ाही|ची | वि|मा |्रा|ली |ा द|े व|ा ह|्री| नि|सर्|द्ध|णे |नये|ला | नय| सर|ी अ|्त |त क|ंना|्व |षण |आपल|ाचे|ले |माज|लेल| हो|ील |बंध|ी प|आणि|ध्य|ी स|देश|े ज| शि|शिक|णि |हिज|िजे|जे |यात|ानव|रीय|यक्|क स|न क|ा ज|पाह|व त|ज्य| ज्|िक्|स्थ|न्य|ंबं|त स|े आ|रक्|वी |पल्| के|संब|केल|य क|य अ| उप|असल|क व|त व|ीत |्वत|णत्|ाने|त्व|िष्|ेण्|साम|क आ|भाव|र्थ|ीने|्ती|कां|साठ|ाठी|रता|करत|ठी |याह|े य|सार|व म|ासा|याय|रति|े त|ंचा|र व|ंधा|ी आ|स स|ायद|त आ|ित |हीर|जाह|ेशा|ोणा| अश|ी व|ंरक|च्छ|संर|तील|हक्| हक|नवी|य व|शा |िवा|ांत|ंचे|ूर्|ा ब|ेत |क्क| अर|ाची|वस्|व आ|पूर|ी म|कृत|ेले|द्य|देण|ा त|याव|स्त|ारण|ेल्|थवा|तीन|अथव|ा य| अथ|अर्|ण म|ती |ेश |धात|र्ण|धार|त्त|साध| इत|ुक्|इतर|जिक| आल|ाजि|ाला|रून|तिष|राध|े ह|ेक |श्र|्थी|रणा|असे|्रद|ी क|थी |रका|सले","mai":"ाक |प्र|कार|िका|धिक|ार | आʼ|आʼ |्रत|ेँ |क अ|्यक|िक |्ति| अध|व्य|अधि|क स| प्| व्|क्त|केँ|यक्|तिक|हि | स्|न्त|क व|मे |बाक| सम|मान|त्य|क्ष|छैक| छै|ेक |स्व|रत्|त्र| अप|्ये|ष्ट|येक|र छ|सँ |ित |ैक।| एह| वि|वा | जा|्त्|िके|ति |ट्र|ाष्| हो|्ट्|राष| अन| रा| सा|्य |अपन| कर|कोन|।प्|्वत|क आ|तन्|अछि| अछ|वतन| को|था | वा|ताक| पर|ार्|एहि|नहि|पन |ा आ|रता|समा| मा|्री|नो | नह|्षा|देश|क प| दे| का| कए|रक | नि| सं|न्य|ि क|ोनो|छि |्त |ारक|्वा|ा स|ान्|ल ज|तथा| तथ|ान |करब|ँ क| आ |र आ|ीय |ता |क ह|वार| जे|्या|िवा|जाए|ना |ओर |ानव|ा प|ँ अ|अन्|ारण|माज|स्थ|घोष| आओ|्तर| एक|साम|र्व|आओर|धार|त क|परि|रीय|्रस|कएल|ामा|्रा|रण |ँ स| सभ|द्ध|स्त|एबा|पूर|ʼ स|ा अ| घो|षा |ाहि|ʼ अ|क।प|यक |नक |रक्|रबा|चित|िक्|क ज|ोषण|कर |र प|ेतु|हेत|शिक|एल |सम्| उप|ाधि|एहन|हन |त अ|तु |ूर्|षणा| हे|िमे| अव|ेल |सभ |े स|ि ज|निर| शि|िर्|रति|होए|अनु|र अ|जाह|क क|हो |्ध |रूप|वक |च्छ|प्त|ँ ए| सक|भाव|क उ|ाप्|सभक|त आ|ि आ|र्ण|त स|्रक|एत।|र्य|त ह|जिक| जन|ाजि|चार|ण स|ैक |रा |ि स|ारा|री |िश्|वाध|ा व|ाएत|न अ| ओ |हु |कान|जे |न व|िसँ|रसं|विव|कृत|ि घ|क ब| भा|उद्|ोएत| उद|राप|ʼ प|श्य|न प|्ण |य आ|द्व| द्|िष्| सह|ि द|धक | बी|ेश | पू|षाक|नवा|ास |ामे|ए स|जेँ| कि|कि |क ल| भे|पर |यता| रू|ओ व|ाके| पए|केओ|ेओ |पएब|राज| अथ|अथव|थवा|त्त|विश|्थि|य प|ा क|न क|वास|रिव|क र| दो|सार","bho":" के|के |ार |े क|कार|धिक|िका|ओर |आओर| आओ| अध|अधि|े स|ा क|े अ| हो| सं|र क|र स|ें | मे|में|िक | कर|ा स|र ह| से|से |रा |मान| सम|न क|क्ष|े ब|नो | चा|वे |ता |चाह|ष्ट| रा|ति |्रा|खे |राष|ाष्|प्र| सा| का|ट्र|े आ| प्| सक| मा|्ट्| स्|होख| बा|करे|ि क|ौनो|त क|था |कौन|पन | जा| कौ|रे |ाति|ला | ओक|ेला|तथा|आपन|्त | आप|कर |हवे|र म| हव| तथ|सबह|र आ|ोखे| ह।|िर |े ओ|केल|सके|हे | और|ही |तिर|त्र|जा |ना |बहि|।सब|े च| खा|े म| पर|खात|ान |र ब|न स|ावे| लो|षा |ाहे|ी क|ओकर|ा आ|माज|ित |े ज|ल ज|मिल|संग|्षा|ं क| सब|ा प|और |रक्|वे।|िं |े ह|ंत्|ाज |स्व|हिं|नइख|कान|ो स| जे|समा|क स|लोग|करा|क्त|्रत|ला।| नइ|े। |ानव|िया|हु |इखे|्र |रता|्वत|ानू|े न|ाम |नून|ाही|वतं|पर |ी स| ओ |े उ|े व|्री|रीय|स्थ|तंत|दी |ीय |े त|र अ|र प|्य |साम|बा।| आद|ून |। स|व्य|ा।स|सभे|भे |या | दे|ा म|े ख| वि| सु|केह|प्त|योग|ु क|ोग |े द|चार|ादी|ाप्| दो| या|राप|ल ह|पूर| मि|तिक|खल |यता|्ति| बि|ए क|आदि|दिम| ही|हि |मी | नि|र न| इ |ेहु|नवा|ा ह|री |ले | पा|ाधि| सह| उप|्या| जर|षण | सभ|िमी|देश|े प|म क|जे |ाव | अप|शिक|ाजि|जाद|जिक|े भ|क आ|्तर|िक्|ि म|ेकर|ुक्|वाध|गठन| व्|निय|ठन |।के|ामा|रो | जी|य क|न म|े ल|न ह|ास |ेश | शा|घोष|ंगठ|िल | घो|्षण| पू|े र|ंरक|संर|उपय|पयो|हो |बा |ी ब|्म |सब |दोस|ा। | आज|साथ| शि|आजा| भी| उच|ने |चित| अं|र व|ज क|न आ| ले|नि |ार्|कि |याह|्थि","nep":"को | र |कार|प्र|ार |ने |िका|क्त|धिक|्यक| गर|व्य|्रत| प्|अधि|्ति| अध| व्|यक्|मा |िक |त्य|ाई |लाई|न्त|मान| सम|त्र|गर्|र्न|क व| वा|्ने|वा | स्|रत्|र स|्ये|तिल|येक|ेक |छ ।|ो स|ा स|हरू| वि|क्ष|्त्|िला| । |स्व|हुन|ति | हु|ले | रा| मा|ष्ट|समा|वतन|तन्| छ |र छ| सं|्ट्|ट्र|ाष्|ो अ|राष|्वत|ुने|नेछ|हरु|ान |ता |े अ|्र | का|िने|ाको|गरि|े छ|ना | अन| नि|रता|नै | सा|ित |तिक|क स|र र|रू |ा अ|था |स्त|कुन|ा र|ुनै| छै|्त |छैन|ा प|ार्|वार|ा व| पर|तथा| तथ|का |्या|एको|रु |्षा|माज|रक्|परि|द्ध|। प| ला|सको|ामा| यस|ाहर|ेछ |धार|्रा|ो प|नि |देश|भाव|िवा|्य |र ह|र व|र म|सबै|न अ|े र|न स|रको|अन्|ताक|ंरक|संर|्वा| त्|सम्|री |ो व|ा भ|रहर| कु|्रि|त र|रिन|श्य|पनि|ै व|यस्|ारा|ानव| शि|ा त|लाग|रा |शिक| सब|ाउन|िक्|्न |ारक|ा न|रिय|्यस|द्व|रति|चार| सह|्षण| सु|ारम|ुक्|ुद्|साम|षा |ैन | अप| भए|बाट|ुन | उप|ान्|ो आ|्तर|िय |कान|ि र|रूक|द्द|र प|ाव |ो ल|तो | पन|ैन।| आव|ा ग|।प्|बै |ूर्|िएक|र त|निज|त्प| भे|जिक|ेछ।|िको|्तो|वाह|त स|ाट | अर|ाजि|्ध | उस|रमा|ात्|र्य|नको|ाय |जको|ित्|ागि| अभ|न ग|गि |ा म| आध|स्थ| पा|ारह|घोष|त्व|यता|ा क|र्द| मत|विध| सक|सार|परा|युक|राध| घो|णको|अपर|े स|ारी|।कु| दि| जन|भेद|रिव|उसक|क र|र अ|ि स|ानु|ो ह|रुद| छ।|ूको|रका|नमा| भन|र्म|हित|पूर|न्य|क अ|ा ब|ो भ|राज|अनु|ोषण|षणा|य र| मन| बि|्धा| दे|निर|ताह|र उ|यस |उने|रण |विक"}}')},979:function(a,n,i){"use strict";var e=i(980),u=i(1191),o=i(1192);t.all=s,a.exports=t;function t(a,n){return s(a,n)[0][0]}function s(a,n){var i,t=n||{},s=10,h=[].concat(t.whitelist||[],t.only||[]),b=[].concat(t.blacklist||[],t.ignore||[]);return null!==t.minLength&&void 0!==t.minLength&&(s=t.minLength),!a||a.length<s?k():(i=function(a,n){var i,e,u,o=-1;for(e in n)(u=r(a,n[e]))>o&&(o=u,i=e);return[i,o]}(a=a.slice(0,2048),u))[0]in o?function(a,n){var i=n[0][1],e=300*a.length-i,u=-1,o=n.length;for(;++u<o;)n[u][1]=1-(n[u][1]-i)/e||0;return n}(a,function(a,n,i,e){var u,o=[];for(u in n=function(a,n,i){var e,u;if(0===n.length&&0===i.length)return a;for(u in e={},a)d(u,n,i)&&(e[u]=a[u]);return e}(n,i,e))o.push([u,l(a,n[u])]);return 0===o.length?k():o.sort(g)}(e.asTuples(a),o[i[0]],h,b)):0!==i[1]&&d(i[0],h,b)?m(i[0]):k()}function r(a,n){var i=a.match(n);return(i?i.length:0)/a.length||0}function l(a,n){for(var i,e,u=0,o=-1,t=a.length;++o<t;)(i=a[o])[0]in n?(e=i[1]-n[i[0]]-1)<0&&(e=-e):e=300,u+=e;return u}function d(a,n,i){return 0===n.length&&0===i.length||(0===n.length||-1!==n.indexOf(a))&&-1===i.indexOf(a)}function k(){return m("und")}function m(a){return[[a,1]]}function g(a,n){return a[1]-n[1]}!function(){var a,n,i,e,u,t;for(u in o)for(n in a=o[u]){for(t=(e=a[n].split("|")).length,i={};t--;)i[e[t]]=t;a[n]=i}}()}}]); \ No newline at end of file +(window.saladictEntry=window.saladictEntry||[]).push([[4],{1236:function(a,n){a.exports={cmn:/[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DB5\u4E00-\u9FCC\uF900-\uFA6D\uFA70-\uFAD9]|[\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/g,Latin:/[A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A]/g,Cyrillic:/[\u0400-\u0484\u0487-\u052F\u1D2B\u1D78\u2DE0-\u2DFF\uA640-\uA69D\uA69F]/g,Arabic:/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061E\u0620-\u063F\u0641-\u064A\u0656-\u065F\u066A-\u066F\u0671-\u06DC\u06DE-\u06FF\u0750-\u077F\u08A0-\u08B2\u08E4-\u08FF\uFB50-\uFBC1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFD\uFE70-\uFE74\uFE76-\uFEFC]|\uD803[\uDE60-\uDE7E]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB\uDEF0\uDEF1]/g,ben:/[\u0980-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FB]/g,Devanagari:/[\u0900-\u0950\u0953-\u0963\u0966-\u097F\uA8E0-\uA8FB]/g,jpn:/[\u3041-\u3096\u309D-\u309F]|\uD82C\uDC01|\uD83C\uDE00|[\u30A1-\u30FA\u30FD-\u30FF\u31F0-\u31FF\u32D0-\u32FE\u3300-\u3357\uFF66-\uFF6F\uFF71-\uFF9D]|\uD82C\uDC00|[㐀-䶵一-龯]/g,kor:/[\u1100-\u11FF\u302E\u302F\u3131-\u318E\u3200-\u321E\u3260-\u327E\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/g,tel:/[\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C78-\u0C7F]/g,tam:/[\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA]/g,guj:/[\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1]/g,kan:/[\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2]/g,mal:/[\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D75\u0D79-\u0D7F]/g,mya:/[\u1000-\u109F\uA9E0-\uA9FE\uAA60-\uAA7F]/g,ori:/[\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77]/g,pan:/[\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75]/g,amh:/[\u1200-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]/g,tha:/[\u0E01-\u0E3A\u0E40-\u0E5B]/g,sin:/[\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4]|\uD804[\uDDE1-\uDDF4]/g,ell:/[\u0370-\u0373\u0375-\u0377\u037A-\u037D\u037F\u0384\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03E1\u03F0-\u03FF\u1D26-\u1D2A\u1D5D-\u1D61\u1D66-\u1D6A\u1DBF\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u2126\uAB65]|\uD800[\uDD40-\uDD8C\uDDA0]|\uD834[\uDE00-\uDE45]/g}},1237:function(a){a.exports=JSON.parse('{"Latin":{"spa":" de|os |de | la|la | y | a |es |ón |ión|rec|ere|der| co|e l|el |en |ien|cho|ent|ech|ció|aci|o a|a p| el|a l|al |as |e d| en|na |ona|s d|da |nte| to|ad |ene|con| pr| su|tod| se|ho |los| pe|per|ers| lo|o d| ti|cia|n d|cio| es|ida|res|a t|tie|ion|rso|te |do | in|son| re| li|to |dad|tad|e s|est|pro|que|men| po|a e|oda|nci| qu| un|ue |ne |n e|s y|lib|su | na|s e|nac|ia |e e|tra| pa|or |ado|a d|nes|ra |se |ual|a c|er |por|com|nal|rta|a s|ber| o |one|s p|dos|rá |sta|les|des|ibe|ser|era|ar |ert|ter| di|ale|l d|nto|hos|del|ica|a a|s n|n c|oci|imi|io |o e|re |y l|e c|ant|cci| as|las|par|ame| cu|ici|ara|enc|s t|ndi| so|o s|mie|tos|una|bre|dic|cla|s l|e a|l p|pre|ntr|o t|ial|y a|nid|n p|a y|man|omo|so |n l| al|ali|s a|no | ig|s s|e p|nta|uma|ten|gua|ade|y e|soc|mo | fu|igu|o p|n t|hum|d d|ran|ria|y d|ada|tiv|l e|cas| ca|vid|l t|s c|ido|das|dis|s i| hu|s o|nad|fun| ma|rac|nda|eli|sar|und| ac|uni|mbr|a u|die|e i|qui|a i| ha|lar| tr|odo|ca |tic|o y|cti|lid|ori|ndo|ari| me|ta |ind|esa|cua|un |ier|tal|esp|seg|ele|ons|ito|ont|iva|s h|d y|nos|ist|rse| le|cie|ide|edi|ecc|ios|l m|r e|med|tor|sti|n a|rim|uie|ple|tri|ibr|sus|lo |ect|pen|y c|an |e h|n s|ern|tar|l y|egu|gur|ura|int|ond|mat|l r|r a|isf|ote","eng":" th|the| an|he |nd |and|ion| of|of |tio| to|to |on | in|al |ati|igh|ght|rig| ri|or |ent|as |ed |is |ll |in | be|e r|ne |one|ver|all|s t|eve|t t| fr|s a| ha| re|ty |ery| or|d t| pr|ht | co| ev|e h|e a|ng |ts |his|ing|be |yon| sh|ce |ree|fre|ryo|n t|her|men|nat|sha|pro|nal|y a|has|es |for| hi|hal|f t|n a|n o|nt | pe|s o| fo|d i|nce|er |ons|res|e s|ect|ity|ly |l b|ry |e e|ers|e i|an |e o| de|cti|dom|edo|eed|hts|ter|ona|re | no| wh| a | un|d f| as|ny |l a|e p|ere| en| na| wi|nit|nte|d a|any|ted| di|ns |sta|th |per|ith|e t|st |e c|y t|om |soc| ar|ch |t o|d o|nti|s e|equ|ve |oci|man| fu|ote|oth|ess| al| ac|wit|ial| ma|uni| se|rea| so| on|lit|int|r t|y o|enc|thi|ual|t a| eq|tat|qua|ive| st|ali|e w|l o|are|f h|con|te |led| is|und|cia|e f|le | la|y i|uma|by | by|hum|f a|ic | hu|ave|ge |r a| wo|o a|ms |com| me|eas|s d|tec| li|n e|en |rat|tit|ple|whe|ate|o t|s r|t f|rot| ch|cie|dis|age|ary|o o|anc|eli|no | fa| su|son|inc|at |nda|hou|wor|t i|nde|rom|oms| ot|g t|eme|tle|iti|gni|s w|itl|duc|d w|whi|act|hic|aw |law| he|ich|min|imi|ort|o s|se |e b|ntr|tra|edu|oun|tan|e d|nst|l p|d n|ld |nta|s i|ble|n p| pu|n s| at|ily|rth|tho|ful|ssi|der|o e|cat|uca|unt|ien| ed|o p|h a|era|ind|pen|sec|n w|omm|r s","por":"os |de | de| a | e |o d|to |ão | di|ent|da |ito|em | co|eit|as |dir|es |ire|rei| se|ção|ade|a p|dad|e d|s d|men|nte|do |s e| pr| pe|dos| to| da|a a|o e| o |o a|ess|con|tod|que| qu|te |e a| do|al |res|ida|m d| in| ou|er |sso| na| re| po|a s| li|uma|cia|ar |pro|e e|a d| te|açã|a t| es| su|ou |ue |s p|tos|a e|des|ra |com|no |ame|ia |e p|tem|nto| pa|is |est|tra|ões|na |s o|oda|das|ser|soa|s n|pes|o p|s a|o s|e o| em| as| à |o o|ais|ber|ado|oa |o t|e s|man|sua|ua | no| os|a c|ter|çõe|erd|lib|rda|s s|nci|ibe|e n|ica|odo|so |nal|ntr|s t|hum|ura| ao|ona|ual| so|or |ma |sta|o c|a n|pre|ara|era|ons|e t|r a|par|o à| hu|ind|por|cio|ria|m a|s c| um|a l|gua|ran| en|ndi|o i|e c|raç|ion|nid|aci|ano|soc|e r|oci| ac|und|sen|nos|nsi|rec|ime|ali|int|um |per|nac| al|m o|r p| fu|ndo|ont|açõ| ig|igu|fun|nta| ma|uni|cçã|ere| ex|a i| me|ese|rio|l d|a o|s h|pel|ada|pri|ide|am |m p|pod|s f|ém |a f|io |ode|ca |ita|lid|tiv|e f|vid|r e|esp|nda|omo|e l|naç|o r|ant|a q|tad|lic|iva| fa|ver|s l|ial|cla|ngu|ing| ca|mo |der| vi|eli|ist|ta |se |ati|ios|ido|r o|eci|dis| un|e i|r d|ecç|o q|s i|qua|ênc|a m|seu|sti|nin|uer|rar|cas|aos|ens|gué|ias|sid|uém|tur|dam|sse|ao |ela|l e|for|tec|ote| pl|ena| tr|m c|tro| ni|ico|rot","ind":"an |ang| da|ng | pe|ak | ke| me|ata| se|dan|kan| di| be|hak|ber|per|ran|nga|yan|eng| ya| ha|asa|gan|men|ara|nya|n p|n d|n k|a d|tan| at|at |ora|ala|san| ba|ap |erh|n b|rha|ya | ma|g b|a s|pen|eba|as |aan|uk |ntu| or|eti|tas|aka|tia|ban|set| un|n s|ter|n y| te|k m|tuk|bas|iap|lam|beb|am | de|k a|keb|n m|i d|unt|ama|dal|ah |ika|dak|ebe|p o|sa |pun|mem|n h|end|den|ra |ela|ri |nda| sa|di |ma |a m|n t|k d|n a|ngg|tau|man|gar|eri|asi| ti|un |al |ada|um |a p|lak|ari|au | ne|neg|a b|ngs|ta |ole|leh|ert|ers|ida|k h|ana|gsa|dar|uka|tid|bat|sia|era|eh |dap|ila|dil|h d|atu|sam|ia |i m| in|lan|aha|uan|tu |ai |t d|a a|g d|har|sem|na |apa|ser|ena|kat|uat|erb|erl|mas|rta|ega|ung|nan|emp|n u|kum|l d|g s| hu|ka |ent|pat|mba|aga|nta|adi| su|eni|uku|n i|huk|ind|ar |rga|i s|aku|ndi|sua|ni |rus|han|si |car|nny| la|in |u d|ik |ua |lah|rik|usi|emb|ann|mer|ian|gga|lai|min|a u|lua|ema|emu|arg|dun|dip|a t|mat|aya|rbu|aru|erk|rka|ini|eka|a k|rak|kes|yat|iba|nas|rma|ern|ese|s p|nus| pu|anu|ina| ta|mel|mua|kel|k s|us |ndu|nak|da |sya|das|pem|lin|ut |yar|ami|upu|seo|aik|eor|iny|aup|tak|ipe|ing|tin| an|dik|uar|ili|g t|rse|sar|ant|g p|a n|aks|ain| ja|t p| um|g m|dir|ksa|umu|kep|mum|i k|eca|rat|m p|h p|aba|ses|m m","fra":" de|es |de |ion|nt |et |tio| et|ent| la|la |e d|on |ne |oit|e l|le | le|s d|e p|t d|ati|roi| dr|dro|it | à | co|té |ns |te |e s|men|re | to|con| l’|tou|que| qu|les| so|des|son| pe|ons| un|s l|s e| pr|ue | pa|e c|t l|ts |onn| au|e a|eme|e e| li|ont|ant|out|ute|t à|res|ers| sa|ce | a |tre|per|a d|cti|er |lib|ité| en|ux | re|en |rso|à l| ou| in|lle|un |nat|ou |nne|n d|une| d’| se|par|nte|us |ur |s s|ans|dan|a p|r l|pro|its|és |t p|ire|e t|s p|sa | dé|ond|é d|a l|nce|ert|aux|omm|nal|me | na| fo|iqu| ce|rté|ect|ale|ber|t a|s a| da|mme|ibe|san|e r| po|com|al |s c|qui|our|t e| ne|e n|ous|r d|ali|ter| di|fon|e o|au | ch|air|ui |ell| es|lit|s n|iss|éra|tes|soc|aut|oci|êtr|ien|int|du |est|été|tra|pou| pl|rat|ar |ran|rai|s o|ona|ain|cla|éga|anc|rs |eur|pri|n c|e m|s t|à u| do|ure|bre|ut | êt|age| ét|nsi|sur|ein|sen|ser|ndi|ens|ess|ntr|ir | ma|cia|n p|st |a c| du|l e| su|bli|ge |rés| ré|e q|ass|nda|peu|ée |l’a| te|a s|tat|il |tés|ais|u d|ine|ind|é e|qu’| ac|s i|n t|t c|n a|l’h|t q|soi|t s|cun|rit| ég|oir|’en|nta|hom| on|n e| mo|ie |ign|rel|nna|t i|l n| tr|ill|ple|s é|l’e|rec|a r|ote|sse|uni|idé|ive|s u|t ê|ins|act| fa|n s| vi|gal| as|lig|ssa|pré|leu|e f|lic|dis|ver| nu|ten|ssi|rot|tec|s m|abl","deu":"en |er |der| un|nd |und|ein|ung|cht| de|ich|sch|ng | ge|ie |che|ech| di|die|rec|gen|ine|eit| re|ch | da|n d|ver|hen| zu|t d| au|ht | ha|lic|it |ten|rei| be|in | ve| in| ei|nde|auf|den|ede|zu |n s|uf |fre|ne |ter|es | je|jed|n u| an|sei|and| fr|run|at | se|e u|das|hei|s r|hte|hat|nsc|nge|r h|as |ens| al|ere|lle|t a| we|n g|rde|nte|ese|men| od|ode|ner|g d|all|t u|ers|te |nen| so|d d|n a|ben|lei| gr| vo|wer|e a|ege|ion| st|ige|le |cha| me|haf|aft|n j|ren| er|erk|ent|bei| si|eih|ihe|kei|erd|tig|n i|on |lun|r d|len|gem|ies|gru|tli|unt|chu|ern|ges|end|e s|ft |st |ist|tio|ati| gl|sta|gun|mit|sen|n n| na|n z|ite| wi|r g|eic|e e|ei |lie|r s|n w|gle|mei|de |uch|em |chl|nat|rch|t w|des|n e|hre|ale|spr|d f|ach|sse|r e| sc|urc|r m|nie|e f|fen|e g|e d| ni|dur|dar|int| du|geh|ied|t s| mi|alt|her|hab|f g|sic|ste|taa|aat|he |ang|ruc|hli|tz |eme|abe|h a|n v|nun|geg|arf|rf |ehe|pru| is|erf|e m|ans|ndl|e b|tun|n o|d g|n r|r v|wie|ber|r a|arb|bes|t i|h d|r w|r b| ih|d s|igk|gke|nsp|dig|ema|ell|eru|n f|ins|rbe|ffe|esc|igu|ger|str|ken|e v|gew|han|ind|rt | ar|ieß|n h|rn |man|r i|hut|utz|d a|ls |ebe|von|lte|r o|rli|etz|tra|aus|det|hul|e i|one|nne|isc|son|sel|et |ohn|t g|sam| fa|rst|rkl|ser|iem|g v|t z|err","jav":"ng |an |ang| ka|ing|kan| sa|ak |lan| la|hak| ha| pa| ma|ngg|ara|sa |abe|ne | in|n k|ant| ng|tan|nin| an|nga|ata|en |ran| ba|man|ban|ane|hi |n u|ong|ra |nth|ake|ke |thi| da|won|uwo|ung|ngs| uw|asa|gsa|ben|sab|ana|aka|beb|a k|g p|nan|nda|adi|at |awa|san|ni |dan|g k|pan|eba| be|e k|g s|ani|bas| pr|dha|aya|gan|ya |wa |di |mar|n s| wa|ta |a s|g u| na|e h|arb|a n|a b|a l|n n| ut|yan|n p|asi|g d|han|ah |g n| tu| um|as |wen|dak|rbe|dar| di|ggo|sar|mat|k h|a a|iya| un|und|eni|kab|be |art|ka |uma|ora|n b|ala|n m|ngk|rta|i h| or|gar|yat|kar|al |a m|n i|na |g b|ega|pra|ina|kak|g a|a p|tum|nya|kal|ger|gge| ta|kat|i k|ena|oni|kas| pe|dad|aga|g m|duw|k k|uta|uwe| si| ne|adh|pa |n a|go |and|i l| ke|nun|nal|ngu|uju|apa|a d|t m|i p|min|iba|er | li|anu|sak|per|ama|gay|war|pad|ggu|ha |ind|taw|ras|n l|ali|eng|awi|a u| bi|we |bad|ndu|uwa|awe|bak|ase|eh | me|neg|pri| ku|ron|ih |g t|bis|iji|i t|e p| pi|aba|isa|mba|ini|a w|g l|ika|n t|ebu|ndh|ar |sin|lak|ur |mra|men|ku | we|e s|a i|liy| ik|ayo|rib|ngl|ami|arg|nas|yom|wae|ut |kon|ae |rap|aku| te|dil|tin|rga|jud|umu| as|rak|bed|k b|il |kap|h k|jin|k a| nd|e d|i s| lu|i w|eka|mum|um |uha|ate| mi|k p|gon|eda| ti|but|n d|r k|ona|uto|tow|wat|gka|si |umr|k l|oma","vie":"ng |̣c |́c | qu| th|à |nh | ng|̣i | nh|và| va|̀n |uyê| ph| ca|quy|ền|yề|̀i | ch|̀nh| tr| cu|ngư|i n|gươ|ườ|́t |ời| gi|ác| co|̣t |ó |c t|ự |n t|cá|ông| kh|ượ|ợc| tư| đư|iệ|đươ|ìn|́i | ha|có|i đ|gia| đê|pha| mo|ọi|mọ|như|n n|củ| ba|̣n |̉a |ủa|n c|̀u |̃ng|ân |ều|ất| bi|tự|hôn| vi|g t| la|n đ|đề|nhâ| ti|t c| đô|ên |bả|hiê|u c| tô|do |hân| do|ch |́ q|̀ t| na|́n |ay | hi|àn|̣ d|ới|há| đi|hay|g n| mô|ốc|uố|n v|ội|hữ|thư|́p |quô| ho|̣p |nà|ào|̀ng|̉n |ị |́ch|ôn |̀o |khô|c h|i c|c đ| hô|i v|tro| đa|́ng|mộ|i t|ột|g v|ia |̣ng|ản|ướ|ữn|̉ng|h t|hư |ện|n b|ộc|ả |là|c c|g c| đo|̉ c|n h|hà|hộ| bâ|ã |̀y | vơ|̣ t|̉i |iế| cô|t t|g đ|ức|iên| vê|viê|vớ|h v|ớc|ực|ật|tha|̉m |ron|ong|áp|g b|hươ| sư|a c|sự|̉o |ảo|h c|ể |o v|uậ|a m|ế |iá|̀ c|cho|qua|hạ|ục| mi|̀ n|phâ|c q|côn|o c|á |i h|ại| hơ|̃ h| cư|n l|bị| lu|bấ|cả|ín|h đ| xa|độ|g h|c n|c p|thu|ải|ệ | hư|́ c|o n| nư|ốn|́o |áo|xã|oà|y t|hả|tộ|̣ c| tâ|thô| du|m v|mì|ho |hứ|ệc|́ t|hợ|án|n p|cũ|ũn|iể|ối|tiê|ề |hấ|ợp|hoa|y đ|chi|o h|ở |ày|̉ t|đó|c l|về|̀ đ|i b|kha|c b| đâ|luâ|ai |̉ n|đố|ết|hự|tri|p q|nươ|dụ|hí|g q|yên|họ|́nh| ta| bă|c g|n g|thê|o t|c v|am |c m|an ","ita":" di|to | de|ion| in|la |e d|di |ne | e |zio|re |le |ni |ell|one|lla|rit|a d|o d|del|itt|iri|dir| co|ti |ess|ent| al|azi|tto|te |i d|i i|ere|tà | pr|ndi|e l|ale|o a|ind|e e|e i|gni|nte|con|i e|li |a s| un|men|ogn| ne|uo | og|idu|e a|ivi|duo|vid| es|tti| ha|div| li|a p|no |all|pro|za |ato|per|sse|ser| so|i s| la| su|e p| pe|ibe|na |a l| il|ber|e n|il |ali|lib|ha |che|in |o s|e s| qu|o e|ia |e c| ri|nza|ta |nto|he |oni|o i| o |sta|o c|nel| a |o p|naz|e o|so | po|o h|gli|i u|ond|i c|ers|ame|i p|lle|un |era|ri |ver|ro |el |una|a c| ch|ert|ua |i a|ssi|rtà|a e|ei |dis|ant| l |tat|a a|ona|ual| le|ità|are|ter| ad|nit| da|pri|dei|à e|cia| st| si|nal|est|tut|ist|com|uni| ed|ono| na|sua|al |si |anz| pa| re|raz|gua|ita|res|der|soc|man|o o|ad |i o|ese|que|enz|ed | se|io |ett|on | tu|dic|à d|sia|i r|rso|oci|rio|ari|qua|ial|pre|ich|rat|ien|tra|ani|uma|se |ll |eri|a n|o n| um|do |ara|a t|zza|er |tri|att|ico|pos|sci|i l|son|nda|par|e u|fon| fo|nti|uzi|str|utt|ati|sen|int|nes|iar| i |hia|n c|sti|chi|ann|ra | eg|egu|isp|bil|ont|a r| no|rop| me|opr|ost| ma|ues|ica|sso|tal|cie|sun|lit|ore|ina|ite|tan| ra|non|gio|d a|e r|dev|i m|l i|ezz|izi| cu|nno|rà |a i|tta|ria|lia|cos|ssu|dal|l p| as|ass|opo|ve |eve","tur":" ve| ha|ve |ler|lar|ir |in |hak| he|her|bir|er |an |arı|eri|ya | bi|ak |r h|eti|ın |iye|yet| ka|ası|ını| ol|tle|eya|kkı|ara|akk|etl|sın|esi|na |de |ek | ta|nda|ini| bu|ile|rın|rin|vey|ne |kla|e h|ine|ır |ere|ama|dır|n h| sa|ına|sin|e k|le | ge|mas|ınd|nın|ı v| va|lan|lma|erk|rke|nma|tin|rle| te|nin|akl|a v|da | de|let|ill|e m|ard|en |riy|aya|nı | hü| şa|e b|k v|kın|k h| me|mil|san| il|si |rdı|e d|dan|hür|var|ana|e a|kes|et |mes|şah|dir| mi|ret|rri| se|ola|ürr|irl|bu |mak| ma|mek|n e|kı |n v|n i|lik|lle| ed| hi|n b|a h| ba|nsa| iş|eli|kar| iç|ı h|ala|li |ulu|rak|evl|e i|ni |re |r ş|eme|etm|e t|ik |e s|a b|iş |n k|hai|nde|aiz| eş|izd|un |olm|hiç|zdi|ar |unm|ma | gö|ilm|lme|im |n t|tir|dil|mal|e g|i v| ko|lun|e e|mel|ket|ık |n s|ele|la |el |r v|ede|şit|ili|eşi|yla|a i| an|anı| et|rı |ahs| ya|sı |edi|siy|t v|i b|se |içi|çin|bul|ame| da|miş|may|tim|a k|tme|r b|ins|yan|nla|mle| di|eye|ger|ye |uğu|erd|din|ser| mü|mem|vle| ke|nam|ind|len|eke|es | ki|n m|it | in| ku|rşı|a s|arş| ay|eml|lek|oru|rme|kor|rde|i m| so|tür|al |lam|eni|nun| uy|ken|hsı|i i|a d|ri |dev|ün |a m|r a|mey|cak|ıyl|maz|e v|ece|ade|iç |şma|mse|te |tün|ims|kim|e y|şı |end|k g|ndi|alı| ce|lem|öğr|ütü|k i|r t| öğ|büt|anl| bü","pol":" pr|nie| i |ie |pra| po|ani|raw|ia |nia|wie|go | do|ch |ego|iek|owi| ni|ści|ci |a p|do |awo| cz|ośc|ych| ma|ek |rze| na|prz| w |wo |ej | za|noś|czł|zło|eni|wa | je|łow|i p|wol|oln| lu|rod| ka| wo|lno|wsz|y c|ma |ny |każ|ażd|o d|stw|owa|dy |żdy| wy|rzy|sta|ecz| sw|dzi|i w|e p|czn|twa|na |zys|ów |szy|ub |lub|a w|est|kie|k m|wan| sp|ają| ws|e w|pow|pos|nyc|rac|spo|ać |a i|cze|sze|neg|yst|jak| ja|o p|pod|acj|ne |ńst|aro|mi | z |i i|nar| ko|obo|awa| ro|i n|jąc|zec|zne|zan|dow| ró|iej|zy |zen|nic|ony|aw |i z|czy|no |nej|o s|rów|odn|cy |ówn|odz|o w|o z|jeg|edn|o o|aki|mie|ien|kol| in|zie|bez|ami|eńs|owo|dno| ob| or| st|a s|ni |orz|o u|ym |stę|tęp|łec|jed|i k| os|w c|lwi|ez |olw|ołe|poł|cji|y w|o n|wia| be|któ|a j|zna|zyn|owe|wob|ka |wyc|owy|ji | od|aln|inn|jes|icz|h p|i s|się|a o|ją |ost|kra|st |sza|swo|war|cza|roz|y s|raz|nik|ara|ora|lud|i o|a z|zes| kr|ran|ows|ech|w p|dów|ą p|pop|a n|tki|stk|gan|zon|raj|e o|iec|i l| si|że |eka| kt| de|em |tór|ię |wni|lni|ejs|ini|odo|dni|ełn|kow|peł|a d|ron|dek|pie|udz|bod|nan|h i|dst|ieg|taw|z p|z w|zeń|god|iu |ano|lar| to|y z|a k|ale|kla|trz|zaw|ich|e i|ier|iko|dzy|chn|w z|by |ków|adz|ekl|ywa|ju |och|kor|sob|ocz|oso|u p|du |tyc|tan|ędz| mi|e s| ta|ki ","gax":"aa |an |uu | ka|ni |aan|umm|ii |mma|maa| wa|ti |nam| fi|ta |tti| na|saa|fi | mi|rga|i k|a n| qa|dha|iyy|oot|in |mir|irg|raa|qab|a i|a k|kan|akk|isa|chu|amu|a f|huu|aba|kka| ta|kam|a a| is|amn|ami|att|ach|mni|yaa| bi|yuu|yyu|ee |wal|miy|waa|ga |ata|aat|tii|oo |a e|moo| ni| ee|ba | ak|ota|a h|i q| ga| dh|daa|haa|a m|ama|yoo|a b|i a|ka |kaa| hi|sum|aas|arg|man| hu| uu|u n| yo| ar| ke| ha|ees| ba|uf |i i|taa|uuf|iin|ada|a w|i f|ani|rra|na |isu| ad|i w|a u|nya|irr|da |hun|hin|ess| ho| ma|i m|und|i b|bar|ana|een|mu |is |bu |f m| ir| sa|u a|add|aad| la|i d|n h|eeg|i h|sa |hoj|abu| ya|kee|al |udh|ook|goo|ala|ira|nda|itt|gac|as |n k|mum|see|rgo|uum|ra |n t|n i|ara|muu|ums|mat|nii|sii|ssa|a d|a q| da|haw|a g|yya|asu|eef|u h|tum|biy| mo|a t|ati|eny|gam|abs|awa|roo|uma|n b|n m|u y|a s|sat|baa|gar|n a|mmo|nis| qo|nna| ku|eer| to|kko|bil|ili|lis|bir|otu|tee|ya |msa|aaf|suu|n d|jii|n w|okk|rka|gaa|ald|un |rum| ye|ame| fu|mee|yer|ero|amm|era|kun|i y|oti|tok|ant|ali|nni| am|lda|lii|n u|lee|ura|lab|aal|tan|laa|i g|ila|ddu|aru|u m|oji|gum|han|ega| se|ffa|dar|faa|ark|n y|hii|qix|gal|ndi| qi|asa|art|ef |uud| bu|jir| ji|arb|n g|chi|tam|u b|dda|bat|di |kar|lam|a l| go|bsi|sad|oka|a j|egu|u t|bee|u f|uun","swh":"a k|wa |na | ya| ku|ya | na| wa|a m| ha|i y|a h|a n|ana|ki |aki|kwa| kw|hak| ka| ma|la |a w|tu |li |a u|ni |i k|a a|ila| ki|ali|a y|ati|za |ili|ifa| mt|ke | an|kil|kat|mtu|ake|ote|te |ka |ika|ma |we |a s|yo |fa |i n|ata|e k|ama|zi |amb|u a|ia |u w| yo|azi|kut|ina|i z|asi| za|o y|uhu|yak|au |ish|mba|e a|u k|hur|ha |tik|wat| au|uru| bi|sha|mu |ara|u n| as|hi | hi|ru |aif|tai|cha|ayo|a b|hal| uh| ch|yot|i h| zi|awa|chi|atu|e n|ngi|u y|mat|shi|ani|eri| am|uli|ele|sa |ja |e y|a t|oja|o k|nch|i a|a j| nc|ima| sh|ami| ta|end|any|moj|i w|ari|ham|uta|ii |iki|ra |ada|wan|wak|nay|ye |uwa| la|ti |eza|o h|iri|iwa|kuw|iwe| wo|fan| sa|she|bu |kan|ao |jam|wen|lim|i m|her|uto|ria| ja| ni|kam|di | hu|zo |a l|da |kaz|ahi|amu|wot|o w|si |dha|bin|ing|adh|a z|bil|e w|nya|kup|har|ri |ang|aka|sta|aji|ne |kus|e m|zim|ini|ind|lin|kul|agu|kuf|ita|bar|o n|uu |iyo|u h|nad|maa|mwe|ine|gin|nye|nde|dam|ta | nd|ndi|rik|asa| ba|rif|uni|nga|hii|lez|bo |azo|uzi|mbo|sil|ush|tah|wam|ibu|uba|imu| ye|esh| ut|taa|aar|wez|i s|e b| si|ala|dhi|eng|aza|tak|hir|saw|izo|kos|tok|oka|yan|a c|wal|del|i b|pat| um|ndo|zwa|mam|a i|guz|ais|eli|mai|laz|ian|aba|man|ten|zin|ba |nda|oa |u m|uku|ufu| mw|liw|aha|ndw|kuh|ua |upa| el|umi|sia","sun":"an |na |eun| ka|ng | sa|ana|ang| di|ak | ha|nga|hak|un |ung|keu|anu| ba| an|nu |a b| bo| je|a h|ata|asa|jeu|ina| ng|ara|nan|awa|gan|ah |sa |a k| na|n k|kan|aha|a p|a s|ga |ban| ma|a n|ing|oga|bog|sar| pa| ku|man|a a|ha |san|ae |bae|din|g s|aga|sah|ra |tan|n s| pe|ala| si|kat|ma |per| ti|aya|sin| at| pi| te|n a|aan|lah|pan|gar|n n|u d|ta |eu |ari|kum|ngs|a m|n b|n d|ran|a d|gsa|wa |taw|k h|ama|ku |ike|n p|eba|bas| ja|al |a t|ika|at |beb|kab|pik|asi|atu|nda|una|a j|nag|e b|n h|en |g k|oh |aba|ila|rta|aku|boh|ngg|abe|art|ar |n j|di |ima|um |ola|geu|usa|aca|sak|adi|k a|udu|teu|car|tin| me| ay|h k| po|eh |u s|aka|rim|ti |sac|k n|ngt|jen|awe|ent|u a|uma|teh|law|ur |h s|dan|bar|uku|gaw|aru|ate|iba|dil|pol|aja|ieu|ere|jal|nar| hu|n t|nya|pa |are|upa|mas|ake|ut |wan| ge|kal|nus| so|ngk|ya |yan|huk| du|tun| mi|mpa|isa|lan|ura|u m|uan|ern|ena|nte|rup|tay|n m| ke|ka |han|und|us |h b|kud|ula|tut| tu| ie|hna|kaw|u k|lak|gam|mna|umn|g d| nu|yun|ri |ayu|wat| wa|eri|g n|a u|i m|u p| ta|du |dit|umu|k k|ren|mba|rik|gta| be|ali|h p|h a|eus|u n|alm|il | da|sas|ami|min|lma|ngu|nas|yat|rak|amp|mer|k j|sab|mum| ra|rua|ame|ua |ter|sal|ksa|men|kas|nge|k d|ona| bi|bis|sio|ion|nal|taa| de|uh |gal|dip|we |bad","ron":" de|și | și|re | în|are|te |de |ea |ul |rep|le |ept|dre|e d| dr|ie |în |e a|ate|ptu| sa|tul| pr|or |e p| pe|la |e s|ori| la| co|lor| or|ii |rea|ce |au |tat|ați| a | ca|ent| fi|ale|ă a|a s| ar|ers|per|ice| li|uri|a d|al | re|e c|ric|nă |i s|e o|ei |tur| să|lib|con|men|ibe|ber|rso|să |tăț|sau| ac|ilo|pri|ăți|i a|i l|car|l l|ter| in|ție|că |soa|oan|ții|lă |tea|ri |a p| al|ril|e ș|ană|in |nal|pre|i î|uni|ui |se |e f|ere|i d|e î|ita| un|ert|ile|tă |a o| se|i ș|pen|ia |ele|fie|i c|a l|ace|nte|ntr|eni| că|ală| ni|ire|ă d|pro|est|a c| cu| nu|n c|lui|eri|ona| as|sal|ând|naț|ecu|i p|rin|inț| su|ră |e n| om|ici|nu |i n|oat|ări|l d| to|tor| di| na|iun| po|oci|tre|ni |ste|soc|ega|i o|gal| so| tr|ă p|a a|n m|sta|va |ă î|fi |res|rec|ulu|nic|din|sa |cla|nd | mo| ce| au|ara|lit|int|i e|ces|uie|at |rar|rel|iei|ons|e e|leg|nit|ă f| îm|a î|act|e l|ru |u d|nta|a f|ial|ra |ă c| eg|ță | fa|i f|rtă|tru|tar|ți |ă ș|ion|ntu|dep|ame|i i|reb|ect|ali|l c|eme|nde|n a|ite|ebu|bui|ât |ili|toa|dec| o |pli|văț|nt |e r|u c|ța |t î|l ș|cu |rta|cia|ane|țio|ca |ită|poa|cți|împ|bil|r ș| st|omu|ăță|țiu|rie|uma|mân| ma|ani|nța|cur|era|u a|tra|oar| ex|t s|iil|ta |rit|rot|mod|tri|riv|od |lic|rii|eze|man|înv|ne |nvă|a ș|cti","hau":"da | da|in |a k|ya |an |a d|a a| ya| ko| wa| a |sa |na | ha|a s|ta |kin|wan|wa | ta| ba|a y|a h|n d|n a|iya|ko |a t|ma |ar | na|yan|ba | sa|asa| za| ma|a w|hak|ata| ka|ama|akk|i d|a m| mu|su |owa|a z|iki|a b|nci| ƙa| ci| sh|ai |kow|anc|nsa|a ƙ|a c| su|shi|ka | ku| ga|ci |ne |ani|e d|uma|‘ya|cik|kum|uwa|ana| du| ‘y|ɗan|ali|i k| yi|ada|ƙas|aka|kki|utu|n y|a n|hi | ra|mut| do| ad|tar| ɗa|nda| ab|man|a g|nan|ars|and|cin|ane|i a|yi |n k|min|sam|ke |a i|ins|yin|ki |nin|aɗa|ann|ni |tum|za |e m|ami|dam|kan|yar|en |um |n h|oka|duk|mi | ja|ewa|abi|kam|i y|dai|mat|nna|waɗ|n s|ash|ga |kok|oki|re |am |ida|sar|awa|mas|abu|uni|n j|una|ra |i b| ƙu|dun|a ‘|cew|a r|aba|ƙun|ce |e s|a ɗ|san|she|ara|li |kko|ari|n w|m n|buw|aik|u d|kar| ai|niy| ne|hal|rin|bub|zam|omi| la|rsa|ubu|han|are|aya|a l|i m|zai|ban|o n|add|n m|i s| fa|bin|r d|ake|n ‘|uns|sas|tsa|dom| ce|ans| hu|me |kiy|ƙar| am|ɗin| an|ika|jam|i w|wat|n t|yya|ame|n ƙ|abb|bay|har|din|hen|dok|yak|n b|nce|ray|gan|fa |on | ki|aid| ts|rsu| al|aye| id|n r|u k|ili|nsu|bba|aur|kka|ayu|ant|aci|dan|ukk|ayi|tun|aga|fan|unc| lo|o d|lok|sha|un |lin|kac|aɗi|fi |gam|i i|yuw|sun|aif|aja| ir|yay|imi|war| iy|riy|ace|nta|uka|o a|bat|mar|bi |sak|n i| ak|tab|afi|sab","fuv":"de | e |e n|nde| ha|la |e e| ka|akk| nd| wa|ina|al |hak|na | in|ndi|kke|ɗo |di |ii |ade|aad|um |ko |i h|ala| mu| ne|lla|mum|ji |wal| jo| fo|all|eɗɗ| le|neɗ|e h|kal| ko|taa|re | ng|aaw|e k|aa |jog|e w|ley|ee |ke |laa|e m|eed|e l|nnd|aag|ɗɗo|ol | ta|o k|gu |kee|le |waa|ond|gal|a j|ogi|am |eji|dee|m e|ti |nga|e d|ɗe |awa|ɓe | wo|gii|eej|ede|gol|aan| re| go|i e|agu|e t|ann|fot|eyd|oti|ɗee|pot| po|maa|naa|oto|ydi| he|i n|ni |taw|enn|een|dim|to |a i|e f|e j|goo|a k|der| fa| aa|ele| de|o n|dir| ba|er |ngu|oot|ndo|i k|ota|ima| sa|won|ay |ka |a n|oor|a f|ngo|tee| ja|i f| to|o f|e ɓ|i w|wa |ren|a e|nan|kam|hay|ma |eyɗ|o t|awi|yɗe|ore|o e|too|and|fof|i m|a w|ñaa|e y|hee| do|eel|ira|nka|aak|e g|e s|l e|of |aar| ɓe|dii| la|ani|e p|tin|a t| te| na|e i| so|o w|ral|e r|are|ooj|awo|woo|gaa| ma|u m|kaa|faw| ña|dow| mo|oo | ya|aam|nge|nng| yi|und| ho|en |i l|so | mb| li|o i|e a| nj| o |ude|e b|o h|igg|ɗi |lig|nda|ita|baa| di|iin| fe|iti|aaɗ|ama|inn|haa|iiɗ|a h| no|tii|den|tal| tu|tuu|yan|l n|yim|do |non|imɓ|bel| je|ine| hu|njo|ugn|guu|no | da|edd|uug|mii|nee|jey|a d|ano| ke|lit|lli|go |je |ank|tde|amt|ent|eɗe|ɓam| ɓa|mɓe|y g|aga|alt|ɗɗa|ind|wit| su|nna| ɗe|ree|ŋde|i a|m t|aŋd|l h|jaŋ|ago|ow |ete| ɗu","bos":" pr| i |je |rav| na|pra|na |da |ma |ima| sv|a s|nje|a p| da| po|anj|a i|vo |va |ko |ja | u |ako|o i|no | za|e s|ju |avo| im|ti |sva|ava|i p|o n|li |ili|i s|van|ost| ko|vak|ih |ne |a u| sl|nja|koj| dr| ne|jed| bi|i d|ije|stv|u s|lob|im |slo| il|bod|obo| ra|sti|pri| je| su|vje|om |a d|se |e i| ob|a n|i i| se|dru|enj| os|voj|cij|e p|a b|su |o d|uje|u p|raz|i n|a o| od|lo |u o|ova|u i|edn|i u| nj|ovo|jen|lju|ni |oje|nos|a k|ran|dje|iti|o p|aci|žav|a j|i o|e o|pre|pro|bra|nih|ji | ka|e d|jeg|og |sta| tr|tre|bud|u n|drž|u z|rža|bit|svo|ija|elj|reb|e b|mij|jem|avn|pos| bu|ka |aju| iz|ba |ve |rod|de |aro|e u|iva|a z|em |šti|ilo|eni|lje|ći |red|bil|jel|jer| ni|odn|m i|du |tva|nar|gov| sa|oji| do|tu |vim|u d| st|o k|e n|a t|za |nim| dj| sm|ući|ičn|dna|i m|oda|vno|eba|ist|nac|e k|čno|nak|ave|tiv|eđu|nov|olj|sno|ani|aln|an |nom|i b|stu|nst|eno|oj |osn|a r|ovj|nap|smi|nog|čov|oja|nju|ara|nu |dno|ans|ovi|jan|edi|m s| kr|h p|tup| op| čo|iko|jek|tvo| vj| mi|tel|vu |obr|živ|tit|o o|una|odu| mo| ov|kri|ego|din|rug|nik|rad|pod|nji|sam|sto|lja|dst|rim|ite|riv| te|m n|vol|i v|e t|vni|akv|itu|g p| ta|ašt|zaš|svi|ao |te |o s|ak |mje|a č|odr|udu|kla|i t|avi|tno|nič| vr|nic|dni|u u|ina| de|oba|od |jih|st ","hrv":" pr| i |je |rav|pra|ma | na|ima| sv|na |ti |a p|nje| po|a s|anj|a i|vo |ko |da |vat|va |no | za|i s|o i|ja |avo| u | im|sva|i p| bi|e s|ju |tko|o n|li |ili|van|ava| sl|ih |ne |ost| dr|ije| ne|jed|slo| ra|u s|lob|obo| os|bod| da| ko|ova|nja|koj|i d|atk|iti| il|stv|pri|om |im | je| ob| su| ka|i i|i n|e i|vje|i u|se |dru|bit|voj|ati|i o|ćen|a o|o p|a b|a n|ući| se|enj|sti|a u|edn|dje|lo |ćav| mo|raz|u p| od|ran|ni |rod|a k|su |aro|drć|svo|ako|u i|rća|a j|mij|ji |nih|eni|e n|e o| nj|pre|pos|ćiv|oje|eno|e p|nar|oda|nim|ovo|aju|ra |ći |og |nov|iva|a d|nos|bra|bil|i b|avn|a z|jen|e d|ve |ora|tva|jel|sta|mor|u o|cij|pro|ovi|za |jer|ka |sno|ilo|jem|red|em |lju|osn|oji| iz|aci| do|lje|i m| ni|odn|nom|jeg| dj|vno|vim|elj|u z|o d|rad|o o|m i|du |uje| sa|nit|e b| st|oj |tit|a ć|dno|e u|o s|u d|eću|ani|dna|nak|nst|stu| sm|e k|u u|an |gov|nju|juć|aln|m s|tu |a r|ćov|jan|u n|o k|ist|ću |te |tvo|ans|šti|nu |ara|nap|m p|nić|olj|bud| bu|edi|ovj|i v|pod|sam|obr|tel| mi|ina|zaš|e m|ašt| vj|ona|nji|jek| ta|duć|ija| ćo|tup|h p|oja|smi|ada| op|oso|una|sob|odu|dni|rug|udu|ao |di |avi|tno|jim|itu|itk|će |odr|ave|meć|nog|din|svi| ći|kak|kla|rim|akv|elo|štv|ite|vol|jet|opć|pot|tan|ak |nic|nac|uće| sk| me|ven","nld":"en |de |an | de|van| va| en| he|ing|cht|der|ng |n d|n v|et |een| ge|ech|n e|ver|rec|nde| ee| re| be|ede|er |e v|gen|den|het|ten| te| in| op|n i| ve|lij| zi|ere|eli|zij|ijk|te |oor|ht |ens|n o|and|t o|ijn|ied|ke | on|eid|op | vo|jn |id |ond|in |sch| vr|aar|n z|aan| ie|rde|rij|men|ren|ord|hei|hte| we|eft|n g|ft |n w|or |n h|eef|vri|wor| me|hee|al |t r|of |le | of|ati|g v|e b|eni| aa|lle| wo|n a|e o|nd |r h|voo| al|ege|n t|erk| da| na|t h|sta|jke|at |nat|nge|e e|end| st|om |e g|tie|n b|ste|die|e r|erw|wel|e s|r d| om|ij |dig|t e|ige|ter|ie |gel|re |jhe|t d| za|e m|ers|ijh|nig|zal|nie|d v|ns |d e|e w|e n|est|ele|bes| do|g e|che|vol|ge |eze|e d|ig |gin|dat|hap|cha|eke| di|ona|e a|lke|nst|ard| gr|tel|min| to|waa|len|elk|lin|eme|jk |n s|del|str|han|eve|gro|ich|ven|doo| wa|t v|it |ove|rin|aat|n n|wet|uit|ijd|ze | zo|ion| ov|dez|gem|met|tio|bbe|ach| ni|hed|st |all|ies|per|heb|ebb|e i|toe|es |taa|n m|nte|ien|el |nin|ale|ben|daa|sti| ma|mee|kin|pen|e h|wer|ont|iet|tig|g o|s e| er|igd|ete|ang|lan|nsc|ema|man|t g|is |beg|her|esc|bij|d o|ron|tin|nal|eer|p v|edi|erm|ite|t w|t a| hu|rwi|wij|ijs|r e|weg|js |rmi|naa|t b|app|rwe| bi|t z|ker|ame|eri|ken| an|ar | la|tre|ger|rdi|tan|eit|gde|g i|d z|oep","srp":" pr| i |rav|pra| na|na |ma | po|je | sv|da |a p|ima|ja |a i|vo |nje|va |ko |anj|ti |i p| u |ako|a s| da|avo|i s|ju |ost| za|sva|o i|vak| im|e s|o n|ava| sl|nja| ko|no |ne |li |om | ne|ili| dr|u s|slo|koj|a n|obo|ih |lob|bod|im |sti|stv|a o| bi| il| ra|pri|a u|og | je|jed|e p|enj|ni |van|u p|nos|a d|iti|a k|edn|i u|pro|o d|ova| su|ran|cij|i i|sta|se | os|e i|dru| ob|i o|rod|aju|ove| de|i n| ka|aci|e o| ni| od|ovo|i d|ve | se|eni|voj|ija|su |u i|žav|avn|uje| st|red|m i|dna|a b|odi|ara|drž|ji |nov|lju|e b|rža|tva|što|u o|oja| ov|a j|odn|u u|jan|poš|jen| nj|nim|ka |ošt|du |raz|a z| iz|sno|o p|vu |u n|u d|šti|osn|e d|pre|u z|de |ave|nih|bit|aro|oji|bez|tu |gov|lje|ičn| sa|lja|svo|lo |za |vno|e n|eđu| tr|nar| me|vim|čno|oda|ani|đen|nac|nak|an |to |tre|ašt| kr|stu|nog|o k|m s|tit|aln|nom|oj |pos|e u|reb| vr|olj|dno|iko|ku |me |nik| do|ika|e k|jeg|nst|tav|em |i m|sme|o s|dni|bra|nju|šen|ovi|tan|te |avi|vol| li|zaš|ilo|rug|var|kao|ao |riv|tup|st |živ|ans|eno|čov|štv|kla|vre|bud|ena| ve|ver|odu|međ|oju|ušt| bu|kom|kri|pod|ruš|m n|i b|ba |a t|ugi|edi| mo|la |u v|kak| sm|ego|akv|o j|rad|dst|jav|del|tvo| op|nu |por|vlj|avl|m p|od |jem|oje| čo|a r|sam|i v|ere|pot|o o|šte|rem|vek|svi| on|rot|e r","ckb":" he| û |ên | bi| ma|in |na | di|maf|an |ku | de| ku| ji|xwe|her| xw|iya|ya |kes|kir|rin|iri| ne|ji |bi |yên|afê|e b|de |tin|e h|iyê|ke |es |ye | we|er |di |we |ê d|i b| be|erk|ina| na| an|î û|yê |eye|î y|kî |rke|nê |diy|ete|eke|ber|hem|hey| li| ci|wek|li |n d|fê | bê| te|ne |yî | se|net|rî |tew|yek|sti|af | ki|re |yan|n b|kar|hev|e k|aza|n û|wî | ew|i h|n k|û b|î b| mi| az|dan| wî|ekî|î a|a m|zad|e d|mir|bin|est|ara|iro|nav|ser|a w|adi|rov|n h|anê|tê |ewe|be |ewl|ev |mû | ya|tî |ta |emû| yê|ast|wle| tê|n m| bo|wey|s m|bo | tu|n j|ras| da| me|din|î d|ê h|n n|n w|ing|st | ke| ge|în |ar | pê|iye|îna|bat|r k|ema|cih|ê b|wed|û m|dî |û a|vak|ê t|ekh|par| ye|vî |civ|n e|ana|î h|ê k|khe|geh|nge|ûna|fên|ane|av |î m|bik|eyê|eyî|e û| re|man|erb|a x|vê |ê m|iva|e n|hî |bûn|kê | pa|erî|jî |end| ta|ela|nên|n x|a k|ika|f û|f h|î n|ari|mî |a s|e j|eza|tên|nek| ni|ra |ehî|tiy|n a|bes|rbe|û h|rwe|zan| a |erw|ov |inê|ama|ek |nîn|bê |ovî|ike|a n| ra|riy|i d|anî|û d|e e|etê|ê x|yet|aye|ê j|tem|e t|erd|i n|eta|ibe|a g|u d|xeb|atê|i m|tu | wi|dew|mal|let|nda|ewa| ên|awa|e m|a d|mam|han|u h|a b|pêş|ere| ba|lat|ist| za|bib|uke|tuk|are|asî|rti|arî|i a|hîn| hî|edi|nûn|anû|qan| qa| hi| şe|ine|n l|mên|ûn |e a","yor":"ti | ní|ó̩ | è̩|ní | lá|̩n |o̩n|é̩ |wo̩|àn | e̩|kan|an |tí | tí|tó̩| kò|ò̩ |̩tó| àw| àt|è̩ |è̩t|e̩n|bí |àti|lát|áti| gb|lè̩|s̩e| ló| ó |àwo|gbo|̩nì|n l| a | tó|í è|ra | s̩|n t|ò̩k|sí |tó |̩ka|kò̩|ìyà|o̩ | sí|ílè|orí|ni |yàn|dè |̩‐è|ì k|̩ à|èdè| or|ún |ríl|è̩‐|í à|jé̩|‐èd|àbí|̩ò̩|ò̩ò|tàb|nì |í ó|n à| tà|̩ l|jo̩| ti|̩e |̩ t| wo|nìy|í ì|ó n| jé| sì|ló |kò |n è|wó̩| bá|n n|sì | fú|̩ s|í a|rè̩|fún| pé| òm|̩ni|gbà| kí| èn|ènì|in |òmì|ìí |ba |nir|pé |ira|mìn|ìni|n o|ràn|ìgb| ìg|bá |e̩ | rè|̩ n|kí |n e|un |gba|̩ p|í ò|nú | o̩|nín|gbé|yé | ka|ínú|a k|fi | fi|mo̩|bé̩|o̩d|dò̩|̩dò|ó s|i l|̩ o|̩ ì|wà |í i|i ì|hun|bò |i ò|dá |bo̩|o̩m|̩mo|̩wó|bo |áà |̩ k|ó j|ló̩|àgb|ohu| oh| bí| ò̩|bà |ara|yìí|ogb|írà|n s|ú ì| ìb|pò̩|í k| lè|bog|i t|à t|óò |yóò|kó̩|gé̩|à l|ó̩n|rú |lè | yó|̩ ò|̩ e|a w|̩ y|ò̩r|̩ f| wà|ò l|í t|ó b|i n|ó̩w|̩gb|yí |í w|ìké|̩ a|láà|wùj|àbò|i è|ùjo|fin|é̩n|n k|í e|i j|ú à| ìk|òfi| òf| ar|i s|mìí|ìír| mì| ir|rin|náà| ná|jú |̩ b| yì|ó t|̩é̩| i |̩ m|fé̩|kàn|rí |ú è|à n|wù |s̩é|é à| mú| èt|áyé|í g|̩kó|̩dá|è̩d|àwù|è̩k| ìd|irú|í o|i o|i à|láì|í n|ípa| kú|níp| ìm|a l|ké̩|bé |i g|de |ábé|ìn |báy|̩è̩|ígb|wò̩|níg|mú |láb| àà|n f|è̩s|̩ w|ùn |i a|ayé|èyí| èy|mó̩|á è| ni|n b| wó|je̩| ìj|gbá|ò̩n|ó̩g","uzn":"lar|ish|an |ga |ar | va| bi|da |va |ir | hu|iga|sh |uqu|shi|bir|quq|huq|gan| bo| ha|ini|ng |a e|r b| ta|lis|ni |ing|lik|ida|oʻl|ili|ari|nin|on |ins| in|adi|nso|son|iy | oʻ|lan| ma|dir|hi |kin|har|i b|ash| yo|boʻ| mu|dan|uqi|ila|ega|qla|r i|qig|oʻz| eg|kla|a b|qil|erk|ki | er|oli|nli|at | ol|gad|lga|rki|oki|i h|a o| qa|yok|lig|osh|igi|ib |las|n b|atl|n m| ba|ara| qi|ri | sh|iya|ala|lat|in |ham|bil|a t|a y|bos|r h|siy|n o|yat|inl|ik |a q|cha|a h| et|eti|nis|a s|til|ani|h h|i v|mas|tla|osi|asi| qo|ʻli|ati|i m|rni|im |uql|arn|ris|qar|a i|gi | da|n h|ha |sha|i t|mla|rch| xa|i o|li |hun|bar|lin|ʻz |arc|rla| bu|a m|a a| as|mum| be| tu|aro|r v|ikl|lib|taʼ|h v|tga|tib|un |lla|mda| ke|shg| to|n q|sid|n e|mat|amd|shu|hga| te|tas|ali|umk|oya|hla|ola|aml|iro|ill|tis|iri|rga|mki|irl| ya|xal|dam| de|gin|eng|rda|tar|ush|rak|ayo| eʼ| so|ten|alq| sa|ur | is|imo|r t| ki|mil| mi|era|zar|hqa|aza|k b| si|nda|hda|kat|ak |oʻr|n v|a k|or |rat|ada|ʻlg|miy|tni|i q|shq|oda|shl|bu |dav|nid|y t|ch |asl|sos|ilg|aso|n t|atn|sin|am |ti |as |ana|rin|siz|yot|lim|uni|nga|lak|n i|a u|qon|i a|h k|vla|avl|ami|dek| ja|ema|a d|na | em|ekl|gʻi|si |i e|ino| ka|uch|bor|ker| ch|lma|liy|a v|ʼti|lli|aka|muh|rig|ech|i y|uri|ror","zlm":"an |ang| ke| se|ng | da|dan|ada|ara| pe|ak | be|ran|ber| me|ah |nya|hak|per|n s|ata|ala|ya |a s|kan|asa|n k|lah| di|da |aan|gan|nga|dal| ma|n d|erh|eba|rha|a p| ha|kep|pad|yan| ya|ap |ama| ba|nda| te|ra |tia|man|eng|a b|a d|ora|men|n p|ter|iap|san|epa| or|pen|eti| ad| at|a a|n a|set|tan|h b|tau|sia|n t|apa|dak|pa |sa |au |ta |ela|bas|at | sa|n b|beb|n m|keb|h d|p o|end|ega|aka|a k|am |sam|gar|ana|leh|lam|ole| un|neg|k k|ban|g a|di |n y|eh |a m|eri|aha|han| ti|a t|ma |any|uan|seb|ebe|ngs|atu|mas|bag|car|mem|ing|ian| ne|kes|i d|gsa|ia |ika|mat|agi|ert| de| la|emb|und|nan|asi|emu|ers|epe|na |anu|gi |ung|erk|n h|ngg|tu |ind|pem|i m|g b|kla| in|iha|pun|i s|erl|akl|era|as |dap|eca|sec|al |k m|bar|nus|usi|lan|tin|si |awa|nny| su|bol|sas| as|ini|rta|rat|ena|sem|aya|ni |den|g m|g t|kem|i k|adi|ai |ti | ap| ta|in | he| bo|had|uka|tar| an|hen|ann|ain|ka |rka|ri |ema|k h|n i|g s|dia|dun|ira|rsa|elu|nta|a n|mel|iad|uk |mpu|ua |har|kat|aga|lai|enu|ses|emp|ntu|k d|ent|un |mba|rma|jua|uat|k a|mar|rak|h m|ila|lua|i a|aja|ker|dil|g d|uma|rli|lin|esi|sua|nak|ndu|l d| pu|t d|erm|ser|ar |ese|ati|tuk|rga|i p|dar|esa|bah| ol|ari|ngk|ant|sek|gam|raa|mbe|ida|sat|iri|kea|i b|saa|dir|g u|erj|tik|unt|eka|rja","ibo":"a n|e n|ke | na|na | ọ | bụ| n |nwe|ere|ọ b|re |nye| nk|ya |la | nw| ik| ma|ye |e ọ|ike|a o|nke|a m|ụ n| ya|a ọ|ma |bụl|ụla| on| a |e i|kik|iki|ka |ony|ta |bụ |kwa| nd|a i|i n|di |a a|wa |wer|do | mm|dụ |e a|ha | ga|any| ob|ndi| ok|he |e m|e o|a e|ọ n|ite|rụ |hi |mma|ga‐|wu |ara| dị|aka|che|oke|we |o n| ih|n o|adụ|mad|obo|bod|a g|odo| ka| ez|te |hị |be |ụta|dị | an|zi | oh|a‐e|akw|gba|i m|me | ak|u n|nya|ihe|ala|ohe|ghi|ri | ọz|her|ra |weg| nt| iw| mb|ba |pụt| si|ro |oro|iwu|chi|a‐a|rị |ụ i|ụ ọ| eb|iri|ebe|ụrụ|zọ | in|a y|ezi|e ị|kpa|le |ile|ịrị|n e|kpe|mba| ha|bi |sit|e e|inw|nil|asị| en|mak|a u| ni|apụ|chị|i i|ghị|i ọ|i o|si | e |ide|o i|e y|ụ m|a s|u o|kwu|ozu|yer|ru |enw|ụ o|ọzọ|gid|hụ |n a|ahụ|nkw|sor|egh|edo|a ụ|tar|n i|toz|ị o|pa |i a| me|ime|uru|kwe| mk|tu |ama|eny|uso|de | im|ọ d|osi|hed|a d| kw|mkp|wet| ọr| ọn|obi|ọrụ| ịk| to|gas| ch|ịch|nha|ọnọ|nọd| nc| al|n ụ|ị m| us|nọ |u ọ|nch| o |eta|n u| ot|otu|sir|sịr| nh|a k|ali|o m| ag| gb|e s|ọta|nwa|ị n|lit|ega|ji |ọdụ|e k|ban|e g|ị k|esi|agb|eme|hu |ikp|zu |pe |nta|na‐|chọ|u a|a b|uch|n ọ|onw|ram|kwụ|ekọ|i e| nọ| ug|ọch|u m|gwu|a h|zụz|ugw|meg|ị e|nat|e h|dịg|o y|kpu|pụr|cha|zụ |hịc|ich| ng|ach| og|wap|wan|ịgh|uwa| di| nn|i ị","ceb":"sa | sa|ng |ang| ka|an | pa|ga | ma|nga|pag| ng|a p|on |kat|a k|ug |od | ug|g m| an|ana|n s|ay |ung|ata|ngo|a m|atu|ala|san|ag |tun|g s|g k|god|d s|a s|ong|mga| mg|g p|n u|yon|a a|pan|ing|usa|tan|tag|una|aga|mat|ali|g u|han|nan| us|man|y k|ina|non|kin| na|syo|lan|a b|asa|nay|n n|a i|awa| ta|taw|gaw|nsa|a n|nas| o |ban|agp|isa|dun|was|iya| gi|asy|adu|ini|bis| ad|ili|o s| bi|g a|nah|nag|a t| ki|lin|lay|ahi|sam|al |wal| di|nal|asu| ba|ano|agt| wa|ama|yan|a u| iy|kan|him|n k|gan|ags|n a|kag| un|ya |kas|gpa|g t| su|aha|wha|agk|awh|gka|a g|kal|l n|gla|gsa|sud|gal|imo|ud |d u|ran|uka|ig |aka|aba|ika|g d|ara|ipo|ngl|g n|uns|n o|kau|i s|y s|og |uta|d n|li | si|gik|g i|mta|ot |iin| la| og|o a|ayo|ok |awo|aki|kab|aho|n m|hat|o p|gpi|a w|apa|lip|ip | hu| ga|a h|uba|na | ti|bal|gon|la |ati|wo |ad |hin|sal|gba|buh| bu| ub|uha|agb|hon|ma |nin|uga|t n|ihi| pi|may| pu|mak|ni | ni|d a|pin|abu|agh|ahu|uma|as |dil|say| in|at |ins|lak|hun|ila|mo |s s|sak|amt|o u|pod|ngp|tin|a d|but|ura|lam|aod|t s|bah|ami|aug|mal|sos|os |k s| il|tra| at|gta|bat|aan|ulo|iha|ha |n p| al|g b|lih|kar|lao|agi|amb|mah|ho |sya|ona|aya|ngb|in |inu|a l| hi|mag|iko|it |agl|mbo|oon|tar|o n|til|ghi|rab|y p| re|yal|aw |nab|osy|dan","tgl":"ng |ang| pa|an |sa | sa|at | ka| ng| ma|ala|g p|apa| na|ata|pag|pan| an| at|ay |ara|ga |a p|tan|g m|mga| mg|n n|pat| ba|n a|aya|na |ama|g k|awa|kar|a k|lan|rap|gka|nga|n s|g n|aha|g b|a a| ta|agk|gan|tao|asa|aka|yan|ao |a m|may|man|kal|ing|a s|nan|aga| la|ban|ali|g a|ana|y m|kat|san|kan|g i|ong|pam|mag|a n|o a|baw|isa|wat| y |lay|g s|y k|in |ila|t t| ay|aan|o y|kas|ina|t n|ag |t p|wal|una|yon| o | it|nag|lal|tay|pin|ili|ans|ito|nsa|lah|kak|any|a i|nta|nya|to |hay|gal|mam|aba|ran|ant|agt|on |t s|agp| wa| ga|gaw|han|kap|o m|lip|ya |as |g t|hat|y n|ngk|ung|no |g l|gpa|wa |lag|gta|t m|kai|yaa|sal|ari|lin|a l|pap|ahi| is| di|ita| pi|pun|agi|ipi|mak|a b|y s|bat|yag|ags|o n|aki|tat|pah|la |gay|hin| si|di |i n|sas|iti|a t|t k|mal|ais|s n|t a|al |ipu|ika|lit|gin| ip|ano|gsa|alo|nin|uma|hal|ira|ap |ani|od |i a|gga|y p|par|tas|ig |sap|ihi|nah|ini| bu|ngi|syo|o s|nap|o p|a g| ha|uka|a h|aru|a o|mah|iba|asy|li |usa|g e|uha|ipa|mba|lam|kin|kil|duk|n o|iga| da|dai|aig|igd|gdi|pil|dig|pak| tu|d n|sam|nas|nak|ba |ad |lim|sin|buh|ri |lab|it |tag|g g|lun|ain|and|nda|pas|kab|aho|lig|nar|ula| ed|edu| ib|git|ma |mas|agb|ami|agg|gi |sar|i m|siy|g w|api|pul|iya|amb|nil|agl|sta|uli|ino|abu|aun|ayu| al|iyo","hun":" sz| a |en | va|és | és|min|ek | mi| jo|jog|ind|an |nek|sze|ság| az|gy |sza|nde|ala|az |den|a v|val|ele| el|oga|mél|egy| eg|n a|ga |zab| me|zem|emé|aba|int|van|bad|tel|tet| te|ak |tás|ény|t a| ne|gye|ély|tt |n s|ben|ség|zet|lam|meg|nak|ni | se|ete|sen|agy|let|lyn|s a|yne|ra |z e|et | al|mel|kin|k j|eté|ok |tek| ki|vag|re |n m|oz |hoz|ez |s s|ett|gok|ogy| kö|mbe|es |em |nem|ely| le|ell|emb|hog|k a|atá|köz|nt | ho|yen|hez|el |z a|len|dsá|ásá|tés|ads|k m| ál| em|a s|nte|a m|szt|a t|áll|ás |y a|ogo|sem|a h|enk|nye|ese|nki|ágo|t s|lap|ame|ber|ló |k é|nyi|ban|mén|s e|i m|t m| vé|lla|ly |ébe|lat|ág |ami|on |mze|n v|emz|fel|a n|lő |a a|eki|eri|yes| cs|lle|tat|elő|nd |i é|ég |ésé|lis|yil|vet|át |kül|ért| ke|éte|rés|l a|het|szo|art|alá| ny|tar|koz| am|a j|ész|enl|elé|ól |s k|tár|s é|éle|s t|lem|sít|ges|ott| fe|n k|tko|zás|t é|kel|ja | ha|aló|zés|nlő|ése|ot |ri |lek|más|tő |vel|i j|se |ehe|tes|eve|ssá|tot|t k|olg|eze|i v|áza|leh|n e|ül |tte|os |ti |atk|zto|e a|tos|ány|ána|zte|fej|del|árs|k k|kor|ége|szá|t n| bi|zat|véd|nev|elm|éde|zer|téb|biz|rra|ife|izt|ere|at |ll |k e|ny |sel| né|ába|lt |ai |sül|ház|kif|t e| ar|leg|d a|is |i e|arr|t t|áso|it |ető|al | má|t v| bá|bár|a é|esü|lye|m l| es|nyo","azj":" və|və |ər |lar| hə|in |ir | ol| hü| bi|hüq|üqu|quq|na |lər|də |hər| şə|bir|an |lik| tə|r b|mal|lma|ası|ini|r h|əxs|şəx|ən |arı|qla|a m|dir|aq |uqu|ali| ma|una|ilə|ın |yət| ya|ara|ikd|əri|ar |əsi|əti|r ş|rin|yyə|n h| az|dən|nin|ərə|tin|iyy|mək|zad| mü|sin| mə|ni |nda|ət |ndə|aza|rın|ün |ını|ə a|i v|nın|olu|qun| qa| et|ilm|lıq|ə y|ək |lmə|lə |kdi|ind|ına|olm|lun|mas|xs |sın|ə b| in|n m|q v|nə |əmi|n t|ya |da | bə|tmə|dlı|adl|bər| on|əya|ə h|sı |nun|maq|dan|inə|etm|un |ə v|rlə|n b|si |raq| va|ə m|n a|ınd|rı |anı| öz|əra|nma|n i|ama|a b|irl|ala|li |ins|bil|ik | al| di|ığı|ə d|lət|il |ələ|ə i|ıq |nı |nla|dil|müd|n v|ə e|unm|alı| sə|xsi|ə o|uq |uql|nsa|ətl| də|ili|üda|asi| he|ola|san|əni|məs| da|lan| bu|tər|həm|dır|kil|iş |u v| ki|min|eyn|mi |yin| ha|sos|heç|bu |eç | ed|kim|lığ|alq|xal| as|sia|osi|r v|q h|rə |yan|i s| əs|daf|afi| iş|ı h|fiə| ta|ə q|ıql|a q|yar|sas|lı |ill|mil|əsa|liy|tlə|siy|a h|məz|tün|ə t| is|ist|iyi| so|n ə|al |ifa|ina|lıd|ı o|ıdı|əmə|ır |ədə|ial| mi|əyi|miy|çün|n e|iya|edi| cə| bü|büt|ütü|xil|üçü|mən|adə|t v|a v|axi|dax|r a|onu| üç|seç| nə| se|man|ril|sil|əz |iə |öz |ılı|aya|qan|i t|şər|təm|ulm|rəf|məh| xa|ğın| dö| ni|sti|ild|amə|qu |nam|n o|n d|var|ad |zam|tam|təh","ces":" pr| a |ní | ne|prá|ráv|ost| sv| po|na |ho |ch | na|nos|o n|ání| ro|ti |neb|vo |má |ávo|ebo|kaž|ažd| ka|ou | má|bo | za| je| př|ždý|dý |svo|a s|sti| st|á p| v |obo|vob|bod| sp| zá|pro|rod|ých|ván|ého| by|ý m|ení|né | ná|spo|ová|o p|ter|mi |ně |í a|roz|to |a p|by |jak|nár|áro| li| ja|a z|í p|i a| vš|lid|kte|ny |u p|o v|ím |odn|at |mu | vy| ma| so|li |zák| kt|kla|í n|tní|a v|ví |oli|pod|mí |en |je | do|stá|byl|t s|do |em |áva|pol|být| bý|o s| ve|vše|í s|it |í b|čin|rov|dní|tví| se| k |ýt |vol|sou|a n|ejn|nou|se |ran|nýc|nes|stn|ci |i s|vé |ým |kol|pří|ova|ích|žen|du |ečn|stv|e s|mez|své|ají|tát|ké |u s|jeh|eho|ným|va |ním|ech|eré|o z|maj| ze|ole| i |ému|i v|y s|ids|kon|hra|nu |ave|í v| to|m p|o d|i n|len|pra|chn|esm|že | ta| ni| os|vat|sta|dsk|st | že|ovn|rac|lad|i p|chr|aby|m a| ab|ako|aké|néh|sob|smí|áv |bez|dy |čen|lně|í m|vou|leč|a m|t v|lní| ji|při|áln|oci|rav|i k|ými| či|ens|odu|m n| s |jí |ákl|zem|kdo|och| oc|ste| vz|ven|ky |oko|tej|jin|slu|ivo|zen|inn|ské|y b|zac|a j|věd|ezi| me|nez|u a|ský|stu|a o|oln|iál|nit|řís|níc|í z|u k|pln| tr|u o|svě|nik|ikd| od|ože|anu|vin|i j|cho|aci|děl| pl|ává|a t|odi|í k| vo|adn|est|tup| mu|obe|ve |din|odů|h n|u v|nem|por|hov|čno|kéh| vý|tak|jno","run":"ra |we |wa | mu|e a|se | n |a k|ira|ntu|tu | ku| um|ko |a i|mu |iri|mun|hir|ye |unt|ing|ash|ere|shi|a n|umu|zwa| bi|gu |ege|a a|za |teg|ama|e k|go |uba|aba|ngo|ora|o a|ish| ba| ar|ung|a m| we|e n|na |sho|ese|nga| ab|e m|mwe|ugu| kw|ndi| gu|ate|kwi|wes|riz|ger|u w| at|di |gih|iza|n u|ngi|ban|yo |ka |e b|a b| am| ca|ara|e i|obo|hob|ri |u b|can|nke|ro |bor| in|bah|ahi|ezw|a u|gir|ke |igi|iki|iwe|rez|ihu|hug|aku|ari|ang|a g|ank|ose|u n|o n|rwa|kan| ak|nta|and|ngu| vy|aka|n i|ran| nt| ub|kun|ata|i n|kur|ana|e u| ko|gin|nye|re | ka|any|ta |uko|amw|iye| zi|ga |ite| ib|aha| ng|era|o b|ako|o i| bu|o k|o u|o z| ig|o m|ho |mak|sha| as| iv|ivy|n a|i b|izw|o y| uk|ubu|aga|ba |kir|vyi|aho| is|nya|gan|uri| it| im|u m|kub|rik|hin|guk|ene|bat|nge|jwe|imi| y |vyo|imw|ani|kug|u a|ina|gek|ham|i i|e c|ze |ush|e y|uru|bur|amb|ibi|agi|uza|zi |eye|u g|gus|i a| nk|no |abi|ha |rah|ber|eme|ras|ura|kiz|ne |tun|ron| zu|ma |gen|wo |zub|w i|kor|zin|wub|ind| gi|y i|ugi|je |iro|mbe| mw|bak| ma|ryo|eka|mat| ic|onk|a z| bo|ika|eko|ihe|ukw|wir|bwa| ry| ha|bwo| ag|umw|yiw|tse| ya|he |eng| ki|nka|bir|ant|aro|gis|ury|twa| yo|bik|rek|ni | ah| bw|uro|mw |tan|i y|nde|ejw| no|zam|puz|ku |y a|a c|bih|ya |mur|utu|eny|uki|bos","plt":"ny |na |ana| ny|y f|a n|sy |aha|ra |a a| fa|n n|y n|a m|an | fi|tra|any| ma|han|nan|ara|y a| am|ka |in |y m|ami|olo| ts|lon|min| mi| sy| na|a t| ol|fan| ha|a i|man|iza| iz|ina|ona|y h|aka|o a|ian|a h|reh|etr|a s|het|on |a f|ire|fah|tsy|mba| ar| hi|zan|ay |ndr|y o|ira|y t| an|ehe|o h|afa|y i|ren|ran| zo|ena|amb|dia|ala|amp|zo |ika| di|tan|y s|y z| az|ia |m p|rin|jo |n j| jo| dr|zy |ry |a d|ao |and|dre|haf|nen|mpi|rah| ka|eo |n d| ir|ho |am |rai|fa |elo|ene|oan|omb| ta| pi| ho|ava|azo|dra|itr|iny|ant|tsi|zon|asa|tsa| to|ari|ha |a k|van|n i|fia|ray| fo|mbe|ony|sa |isy|azy|o f|lal|ly |ova|lom| vo|nat|fir|sam|oto|zay|mis|ham|bel| ra|a r|ban|kan|iha|nin|a e|ary|ito| he| re| no|ita|voa|nam|fit|iar| ko|tok|isa|fot|no |otr|mah|aly|har|y v|y r| sa|o n|ain|kam|aza|n o|oka|ial|ila|ano|atr|oa | la|y l|eri|y d|ata|hev|sia|pia|its|reo| ao|pan|anj|aro|tov|nja|o s|fam|pir| as|ty |nto|oko|y k|sir|air|tin|hia|ais|mit|ba | it| eo|o t|mpa|kon|a z|a v|ity|ton|rak|era|ani|ive|mik|ati|tot|vy |hit|hoa|aho|ank|ame|ver|vah|tao|o m|ino|dy |dri|oni|ori| mo|hah|nao|koa|ato|end|n t| za|eha|nga|jak|bar|lah|mia|lna|aln|va | mb|lan| pa|aov|ama|eve|za |dro|ria|to |nar|izy|ifa|adi|via|aja| va|ind|n k|idi|fiv|rov|vel","qug":"una|ta | ka|na |ka |ash|cha|a k|ari|ish|kun|kta|ana|pak|hka|shk|apa|mi |ach|hay|akt|shp|man|ak | ch| ha|rin|ata|tak|lla|ita|ami|ama|aku|har| pa|pas|ayñ|yñi|ina| ma| ru|uku|sh |hpa|run|all|kuy|aka|an | tu|tuk|yta|chi|chu|a c|ñit|in |nak|a h|nka|ris|tap|kan| ki|ayt|pi | sh|pa |i k|a p|nap|kam|kaw|pay|nam|ayp|aws|iri|wsa|a s|ank|nta|uy |a t|hin|a m|ay | li|ant|lia|kay|nat|a r|shi|iak|lak|uya| wa|yuy|say|kis|y r|ypa|hun|a a| yu|n t|tam| ti|yay|n k| ya|a w|hpi|lli| al|api|yku|un |ipa|a i|iku|ayk|shu| sa|ush|pir|ich|kat|hu |huk| il|ill|kas|a y|rik|yac|a l| ku|kac|hik|tan|wan|ypi|ink|ika| ni|ila|ima|i c|yll|ayl| wi|mac|nis| ta|i y|kus|tin|n s|i p|yan|llu|la |iks|tik|kpi| pi|awa|may|lan|li | ri|kll|yas|kin|kak|aya|ksi|k h|aym|war|ura| ay|lat|ukt|i t|iya|ull|mas|sha|kir|uch|h k|nch|akp|uma|pip|han|kik|iki|riy|aki| ii|i s|n p|h m|kar|nal|y h|tac| su|nac|mak|n m|nki|k a|mam|iwa|k t|k k|i m|yma| ña|wil|asi|nmi|kap|pal|sam|pam|k i|k l|i i|pan|sum|i w| hu|his| mu|iia|mun|k m|u t|pik|was|ik |ma |hat|k r|akl|huc| im|mal|uyk|imi|n y|anc|y k|a n|iñi| iñ|wak|unk|yka| mi|iña|a u|has|ywa| ak|llp|ian|ha |tar|rmi|i a|arm|las|ati|pur|sak|ayw|hap|yar|uti|si |iyt|uri|kim| ar|san|h p|akk|iy |wat|wpa|y i|u k","mad":"an |eng|ban|ng | sa| ka|dha| ba|ren|ak |ang| se| ha|hak| dh|na | pa|se |adh|a s|aba|n s|ara|ngg|are|ha |aga|sa | or|ore|asa|sar|ana| ma|aan|a k|ale|gi | ag|gad|a b|n o|n k|eba|ala|ra |gan| ke|dhu|ota|aja|bas|n b|ka |man|tab|dhi|beb|sab|ama|ako|abb|at |ggu|nga| ta|pan|wi |huw|uwi|eka|ata|a d|san| ot|agi|lak|hal|ba |bba|i h|ong|em |kab|g a|lem|a o| pe| na|ane|par|ngs|nge|gar|a a|tan|gsa|a p|ran|i s|k h|n p|uy |guy|ken|n a|al |ada| ga|apa|pon|e d| e |nek| an|g s|ta |kaa|on |kal|a m|ssa|ona|abe|kat| la|a e|e e|sal|ate|jan|ri |nan|lab|asi|sad|i p|e a|lan|aka|a h|ari| bi|ena|si |daj| ng|ton|e k|har|oss|gen|i k|g k|car|ase|ano|era|kon| be|nya|n d|nag|bad|ar |epo| da|mas| kl| al|n t|mat|nos|n n|ela|g e|a n|k k|uwa|adi|pad|ggi|uan|i d|ne | so|hi |sae|oan|wan|as |le |gap|ter|yat|om |kla|k a|e b|ina|ah |k s|koa|i a|ega|neg|n h|m p|aha| as| ja|abi|ma |kas|bi | mo|aon| di|one| ep|per|aya|e s|nto|te |bat|epa|nda|n e| ca|int|pam|di |ann| ra|aen|k d|amp|a t|nta|and|e p|rga|pen|yar|mpo|ste|dra|ok |oko|ila|g p|k b|i b|set|to |isa|nao|nna|n m|ett| a |bis|hid|bin|i m|nas| ho|kar|t s| po|dil| to|aju|ika|kom|arg|ant|raj|a l|das|tto|ost|mos|lae|ga |rek|idh|tad|hig|en |rny|arn|ndh|eta|adu| dr|jat|jua|gam","nya":"ndi|ali|a k|a m| ku| nd|wa |na |nth| mu| al|yen|thu|se |ra |nse|hu |di |a n|la | pa|mun| wa|nga|unt| la|a u|u a|e a|ons|za | ma| lo|iye|ace|ce |a l|idw|ang| ka|kha|liy|ens|li |ala|ira|ene|pa |i n|we |e m|ana|dwa|era|hal|ulu|lo |ko |dzi| ci|yo |o w|iko|ga |a p|chi| mo|lu |o l|o m|oyo|ufu| um|moy|zik| an|ner|and|umo|ena| uf|dan|iri|ful|a a|ka |to |hit|nch| nc|a c|ito|fun|dwe| da|kuk|wac| dz|e l|a z|ape|kap|u w|e k|ere|ti |lir| za|pen|tha|aye|kut|mu |ro |ofu|ing|lid| zo|amu|o c|i m|mal|kwa|mwa|o a|eza|i p|o n|so |i d|lin|nso| mw|iro|zo | a |ati| li|i l|a d|ri |edw|kul|una|uti|lan|a b|iki|i c|alo|i k| ca|lam|o k|dza|ung|o z|mul|ulo|uni|gan|ant|nzi| na|nkh|e n|san|oli|wir|tsa|u k|ome|ca |gwi|unz|lon|dip|ipo|yan|gwe|pon|akh|uli|aku|mer|ngw|cit| po| ko|kir|mba|ukh|tsi|bun|iya|ope|kup|bvo|han| bu|pan|ame|vom|ama| ya|siy| am|rez|u n|zid|men|osa|ao |pez|i a| kw| on|u o|lac|ezo|aka|nda|hun|u d|ank|diz|ina|its|adz| kh|ne |nik|e p|o o|ku |phu|eka| un|eze|mol|ma | ad|pat|oma|ets|wez|kwe|kho|ya |izo|sa |o p|kus|oci|khu|okh|ans|awi|izi|zi |ndu|iza|no |say| si|i u|aik|jir|ats|ogw|du |mak|ukw|nji|mai|ja |sam|ika|aph|sid|isa|amb|ula|osi|haw|u m| zi|oye|lok|win|lal|ani| ba|si | yo|e o|opa|ha |map|emb","zyb":"bou|aeu|enz|nz |eng|iz |ih |uz |uq |oux|ing| bo| di| ca|z g|dih|ux |ngh|cae|gen|euq|z c|you|ng |ung|ngz|ij | gi| mi|miz|aen| ge|z d| ci|gya| yi| de|ouj|uj | gu|cin|ngj|ien|mbo|dae| mb|zli| se|gij|j g|ang|ouz|z y|j d|nae| cu| ba| da|h g|oz |yin|de |z b|nzl|li |nj |euz|x m| cw|iq | yo|gz |q g|yau|inh|vun|x b|h c| ga|ix |cwy|wyo| ro|rox|oxn|vei|nda|i c| nd|z m|gh |j b|wz | si| gy|hoz|unz|xna|cun|gue| li|ei |z h|yen|bau|can|inz|q c|dan| hi|gj |uh |yie| vu|faz|hin| bi|uek|goz|zci|nh |aej|ya |ej | fa|gun|ciz|au | go| ae|h m|ngq|den|gva|ouq|nq |z s|q d|ekg|q s| do|h d|kgy|eix| wn|ci |az |hu |nhy| ha|j c|u d|j n|z l|auj|gai|gjs|lij|eve|h s|sen|sin|sev|ou |sou|aiq|q y|h y|jso|bin|nei| la|en |ouh|din|uen|enj|enh|i b|z r|awz|q n|vih|j y|anj|bwn|sei|z n| ne|ozc|hye|j s|i d|awj|liz|g g|bae|wng|g b|eiq|bie|enq|zda| ya|n d|h f|x d|gak|hix|z v|h b|oen|anh|u c|in |i g|ghc|zsi|hci|siz|anz|ghg|ez |dun|cou| du|ngg|ngd|j m|cuz| ho|law|eiz|g c| dw|aw |g d|izy|hgy|ak |nde|min|dei|gda|ujc|wn |env|auy|iuz|ai |wnj|a d|hen|ozg|nzg|ek |g y|gzd|gzs|yaw|e c|yuz|daw|giz|jhu|ujh| co|nvi|guh|coz| ve| he|i m|sae|aih|x l|iet|iuj|dwg|iqg|qgy|gih|yai| na| fu|uyu|zbi|zdi|q b|cie|inj|zge|wnh|jsi|uzl| bu| le|eij|izc|aq ","kin":"ra | ku| mu|se |a k|ntu|nga|tu |umu|ye |li | um|mun|unt|a n|ira| n |ere|wa |we | gu|mu |ko |a b|e n|o k|e a|a u|a a|u b|e k|ose|uli|aba|ro | ab|gom|e b|ba |ugu| ag|omb|ang| ib|eng|mba|o a|gu | ub|ama| by| bu|za |ihu|ga |e u|o b| ba|kwi|hug|ash|ren|yo |ndi|e i| ka| ak| cy|iye| bi|ora|re |gih|igi|ban|ubu| nt| kw|di |gan|a g|a m|aka|nta|aga| am|a i|ku |iro|i m|ta |ka |ago|byo|ali|and|ibi|na |uba|ili| bw|sha|cya|u m|yan|o n| ig|ese|no |obo|ana|ish|kan|sho| we|era|ya |aci|wes|ura|i a|uko|e m|n a|o i|kub|uru|hob|ber|ran|bor| im|ure|u w|wo |cir|gac|ani|bur|u a|o m|ush| no|e y| y |rwa|eke|nge|ara|wiy|uga|zo |ne |ho |bwa|yos|anz|aha|ind|mwe|teg|ege|are|ze |n i|rag|ane|u n|ge |mo |u k|bul| uk|bwo|bye|iza|age|ngo|u g|gir|ger|zir|kug|ite|bah| al| ki|uha|go |mul|ugo|n u|tan|guh|y i| ry|gar|bih|iki|atu|ha |mbe|bat|o g|akw|iby|imi|kim|ate|abo|e c|aho|o u|eye|tur|kir| ni|je |bo |ata|u u| ng|shy|a s|gek| ru|iko| bo|bos|i i| gi|nir|i n|gus|eza|nzi|i b|kur| ya|o r|ung|rez|ugi|ngi|nya| se|mat|eko|o y| in|uki| as|any|bis|ako|gaz|imw|rer|bak|ige|mug|ing|byi|kor|eme|nu | at|bit| ik|hin|ire|kar|shi|yem|yam| yi|gen|tse|ets|ihe|hak|ubi|key|rek|icy| na|bag|yer| ic|eze|awe|but|irw| ur|fit|ruk|ubw|rya|uka|afi","zul":"nge|oku|lo | ng|a n|ung|nga|le |lun| no|elo|wa |la |e n|ele|ntu|gel|tu |we |ngo| um|e u|thi|uth|ke |hi |lek|ni |ezi| ku|ma |nom|o n|pha|gok|nke|onk|a u|nel|ulu|oma|o e|o l|kwe|unt|ang|lul|kul| uk|a k|eni|uku|hla| ne| wo|mun| lo|kel|ama|ath|umu|ho |ela|lwa|won|zwe|ban|elw|ule|a i| un|ana|une|lok|ing|elu|wen|aka|tho|aba| kw|gan|ko |ala|enz|o y|khe|akh|thu|u u|na |enk|kho|a e|zin|gen|i n|kun|alu|mal|lel|e k|nku|e a|eko| na|kat|lan|he |hak| ez|o a|kwa|o o|ayo|okw|kut|kub|lwe| em|yo |nzi|ane|obu| ok|eth|het|ise|so |ile|nok| ba|ben|eki|nye|ike|i k|isi| is|aph|esi|nhl|mph| ab|fan|e i|isa| ye|nen|ini|ga |zi |fut| fu|uba|ukh|ka |ant|uhl|hol|ba |and|do |kuk|abe|za |nda| ya|e w|kil|the| im|eke|a a|olo|sa |olu|ith|kuh|o u|ye |nis| in|ekh|e e| ak|i w|any|khu|eng|eli|yok|ne |no |ume|ndl|iph|amb|emp| ko|i i| le|isw|zo |a o|emi|uny|mel|eka|mth|uph|ndo|vik| yo|hlo|alo|kuf|yen|enh|o w|nay|lin|hul|ezw|ind|eze|ebe|kan|kuz|phe|kug|nez|ake|nya|wez|wam|seb|ufa|bo |din|ahl|azw|fun|yez|und|a l|li |bus|ale|ula|kuq|ola|izi|ink|i e|da |nan|ase|phi|ano|nem|hel|a y|hut|kis|kup|swa|han|ili|mbi|kuv|o k|kek|omp|pho|kol|i u|oko|izw|lon|e l| el|uke|kus|kom|ulo|zis|hun|nje|lak|u n|huk|sek|ham| ol|ani|o i|ubu|mba| am","swe":" oc|och|ch |er |ing|för|tt |ar |en |ätt|nde| fö|rät|ill|et |and| rä| en| ti| de|til|het|ll |de |om |var|lig|gen| fr|ell|ska|nin|ng |ter| ha|as | in|ka |att|lle|der|sam| i |und|lla|ghe|fri|all|ens|ete|na |ler| at|ör |den| el|av | av| so|igh|r h|nva|ga |r r|env|la |tig|nsk|iga|har|t a|som|tti| ut|ion|t t|a s|nge|ns |a f|r s|män|a o| sk| si|rna|isk|an | st|är |ra | vi| al|t f| sa|a r|ati| är| me| be|n s| an|tio|nna|lan|ern|t e|med| va|ig |äns| åt|sta|ta |nat| un|kli|ten| gr|vis|äll| la|one|han|änd|t s|stä|t i|ner|ans|gru| ge|ver| må| li|lik|ihe|ers|rih|r a| re|må |sni|n f|t o| mä| na|r e|ri |ad |ent|kla|det| vä|run|rkl|da |h r|upp|dra|rin|igt|dig|n e|erk|kap|tta|ed |d f|ran|e s|tan|uta|nom|lar|gt |s f| på| om|kte|lin|r u|vid|g o|änn|erv|ika|ari|a i|lag|rvi|id |r o|s s|vil|r m|örk|ot |ndl|str|els|ro |a m|mot| mo|i o|på |r d|on |del|isn|sky|e m|ras| hä|r f|i s|a n|nad|n o|gan|tni|era|ärd|a d|täl|ber|nga|r i|enn|nd |n a| up|sin|dd |örs|je |itt|kal|n m|amt|n i|kil|lse|ski|nas|end|s e| så|inn|tat|per|t v|arj|e f|l a|rel|t b|int|tet|g a|öra|l v|kyd|ydd|rje| fa|bet|se |t l|lit|sa |när|häl|l s|ndr|nis|yck|h a|llm|lke|h f|arb|lmä|nda|bar|ckl|v s|rän|gar|tra|re |ege|r g|ara|ess|d e|vär|mt |ap ","lin":"na | na| ya|ya |a m| mo|a b|to | ko| bo|li |o n| li|i n| pe|i y|a y|a n|ngo|ki | ba| ma|kok|pe |la |a l|zal|oki|ali|nso|oto|ala|ons|so |mot|a k|nyo|eng|kol|go |nge| ny|yon|o e|ang|eko|te |o y|oko|olo|ma |iko|a e|e m|e b|lik|ko |o a|ako|ong| ye|mak|ye |isa| ek|si |lo |aza|sal|ama| te|bat|o p|oyo|e n| az|a p|ani|sen|o m|ela|ta |amb|i k|ban|ni | es|yo |mi |mba|osa| oy|aka|lis|i p|eli|a t|mok|i m|ba |mbo| to| mi|isi|bok|lon|ato|ing|o b| nd|ota|bot| ez|ge |nga|eza|o t|nde|ka |bo |gel|kan|e k|lam|sa |ese|koz| po|den|ga |oba|omb|oli|yan|kop|bon|mos|e e|kob|oka|kos|bik|lin|po |e a| lo| bi|kot|’te|ngi|sam| ’t|omi|e y|ti |i b| el|elo|som|lok|esa|gom|ate|kam|i t|ika|a s|ata|kat|ati|wa |ope|oza|iki|i e| ka|bom|tal|o l|bek|zwa|oke|pes| se|bos|o o|ola|bak|lak|mis|omo|oso|nza| at|nda|bal|ndi|mu |mob|osu|e t|asi|bis|ase|i l|ele|sus|usu|su |ozw|and|mol|tel|lib|mbi|ami| nz|ne |ene|kel|aye|emb|yeb|nis|gi |obo|le |kum|mal|wan|a ’|pon| ep|baz|tan|sem|nya|e l| ta|gis|opo|ana|ina|tin|obe| ti|san| ak|mab|bol|oku|u y|mat|oti|bas|ote|mib|ebi|a o|da |bi | mb|lel|tey|ibe|eta|boy|umb|e p|eni|za |be |mbe|bwa|ike|se | et|ibo|eba|ale|yok|kom| en|i a|mik|ben|i o| so|gob|bu |son|sol|sik|ime|eso|abo| as|kon|eya|mel","som":" ka|ay |ka |an |uu |oo |da |yo |aha| iy|ada|aan|iyo|a i| wa| in|sha| ah| u |a a| qo|ama| la|hay|ga |ma |aad| dh| xa|ah |qof|in | da|a d|aa |iya|a s|a w| si| oo|isa|yah|eey|xaq|ku | le|lee| ku|u l|la |taa| ma|q u|dha|y i|ta |aq |eya|sta|ast|a k|of |ha |u x|kas|wux| wu|doo|sa |ara|wax|uxu| am|xuu|inu|nuu|a x|iis|ala|a q|ro |maa|o a| qa|nay|o i| sh| aa|kal|loo| lo|le |a u| xo| xu|o x|f k| ba|ana|o d| uu|iga|a l|yad|dii|yaa|si |a m|gu |ale|u d|ash|ima|adk|do |aas| ca|o m|lag|san|dka|xor|adi|add| so|o k| is|lo | mi|aqa|na | fa|soo|baa| he|kar|mid|dad|rka|had|iin|a o|aro|ado|aar|u k|qaa| ha|ad |nta|o h|har|axa|quu| sa|n k| ay|mad|u s| ga|eed|aga|dda|hii|aal|haa|n l|daa|xuq|o q|o s|uqu|uuq|aya|i k|hel|id |n i| ee|nka| ho|ina|waa|dan|nim|elo|agu|ihi|naa|mar|ark|saa|riy|rri|qda|uqd| bu|ax |a h|o w|ya |ays|gga|ee |ank| no|n s|oon|u h|n a|ab |haq|iri|o l| gu|uur|lka|laa|u a|ida|int|lad|aam|ood|ofk|dhi|dah|orr|eli| xi|ysa|arc|rci|to |yih|ool|kii|h q|a f| ug|ayn|asa| ge|sho|n x|siy|ido|a g|gel|ami|hoo|i a|jee|n q|agg|al | di| ta|e u|o u| ji|goo|a c|sag|alk|aba|sig| mu|caa|aqo|u q|ooc|oob|bar|ii |ra |a b|ago|xir|aaq| ci|dal|oba|mo |iir|hor|fal|qan| du|dar|ari|uma|d k|ban|y d|qar|ugu| ya|xay|a j","hms":"ang|gd |ngd|ib | na|nan|ex |id | ji|ad |eb |nl |b n|d n| li|ud |jid| le|leb| ga|ot |anl|aot|d g|l l|b l| me|ob |x n|gs |ngs|mex|nd |d d| ne|jan|ul | ni|nja| nj| gu| zh|lib|l n|ong| gh|gao|b j|b g|nb |l g|end|gan| ad| je|jex|ngb|gb |han|el | sh| da|ub |d j|d l|t n| nh|nha|b m|is |d z|x g| ya|oul|l j| wu|she|il |nex| ch|b y|d s|gue|gho|uel|wud|d y| gi|d b|hob|nis|s g| zi| yo|lie|es |nx |it |aob|gia|ies| de|eib|you| ba| hu|ian|zib|d m|s j|oud|b d|chu|ol |ut | do|t j|nen|hud|at |s n|hen|iad|ab |enl| go|dao| mi|t g|zha|b z|enb|x j| ze|eit|hei|d c|nt |b s| se|al | xi|inl|hao| re| fa|d h|gua|yad|ren| ho|anb|gx |ngx|ix |nib|x z|and|b h|b w|fal| xa|d x|t l|x m|don|gou|bao|ant|s z|had|d p|yan|anx|l d|zhe|hib| pu|ox | du|hui|sen|uib|uan|lil|dan|s m| di| we|gha|xin|b x|od |zhi|pud| ju| ng|oub|xan| ge|t z|hub|t h|hol|t m|jil|hea|x l| ma|eud|jul|enx|l z|l s|b a| lo| he|nga|d r|zen| yi|did|hon|zho|gt |heb|ngt|os |d a|s l|aos| si|dei|dud|b b|geu|wei|d w|x c|x b|d k|dou|l h|lou| bi|x a|x d|b c| sa|s a| bo|eut|blo| bl|nia|lol|t w|bad|aod| qi|ax |deb| ja|eab| nd|x s|can|pao| pa|gl |ngl|che|sat|s y|l m|t s|b f|heu|s w| to|lia| ca|aox|unb|ghu|ux | cu|d f|inb|iel| pi|jib|t p|x x|zei|eul|l t|l y|min|dad","hnj":"it | zh| ni|ab |at | sh|ang|nit|os | do|uat|ox |ax |nx |ol |ob | nd|t d|x n|nf |zhi|as | ta|tab|ef |if |d n|ad | mu| cu|uax|cua|mua|b n|uf |ib |s d|dos|id |enx|nb |hit| lo|f n|t l|ngd|gd |us |inf|ux |ed | go|she|b d|b z|t n| ho|x z| yi|aob|l n|ong|t z| zi|ix |nda|d z|ut |yao|uab|enb| de|dol|f g| dr|zhe| yo| le|euf|x d|inx|nen|das| ne|dro|gb |ngb|d s| ge|hox|f z|uef|s n|len|b g| ua|ud |nd |gox| na|il | du|x j|oux|f y|f h|ndo|x c|han|of |zha|uad|s z| da| ny| ja| gu|heu| ji|ik | bu|shi|lob|od | ya|gf |t g|hai|ged|ngf|b h|you| hu|ex |bua|out|nil|hen|rou|yin|zhu|ous|nya|enf|f d|is | re|b c|lol|nad|dou|af | xa| id|t s| ha|uk |jai|xan|sha|b y|hua|aib|s s|d d| la| qi|ren|x l|hue|l m|x g|ot | xi| ba| zo| kh| dl|jua| ju|aod|zif|ait|bao| di| ga|x y| nz|b s|x s|xin| li|aof|b b|ngx|gx |eb |b l|x t|x m|hed| be|dax|b t|s t|hef|las|d j|gua| pi|t y|f b|d l|l d|nzh| ib|hif|t h|dus|t r|hou|f l|hun|und|s l|el |aik|d y|aos|f t| mo| bi|hab|ngt|gai| za|uas|x h|gt | zu|ros|aid|zos| gh|end|pin|k n|k z| ao|iao|s b|dex|x b|due|ak |d g| fu|s x|deu|s y|mol|x i|f s|hik| hl| bo|l b|eut|lb |uaf|zho|d b| lb|s m|lan|al |b k|t b| ch|d p|x x|f x|ub |t c|d m| ro| nt|d h|et |uak|aox|gon|tua|yua|t t|zis|deb|d t| we|shu","ilo":"ti |iti|an |nga|ga | ng| pa| it|en | ka| ke| ma|ana| a | ti|pan|ken|agi|ang|a n|a k|aya|gan|n a|int|lin|ali|n t|a m|dag|git|a a|i p|teg|a p| na|nte|man|awa|kal|da |ng |ega|ada|way|nag|n i| da|na |i k|sa |n k|ysa|n n|no |a i|al |add|aba| me|i a|eys|nna|dda|ngg|mey| sa|pag|ann|ya |gal| ba|mai| tu|gga|kad|i s|yan|ung|nak|tun|wen|aan|nan|aka| ad|enn| ag|asa| we|yaw|i n|wan|nno|ata| ta|l m|i t|ami|a t| si|ong|apa|kas|li |i m|ina| an|aki|ay |n d|ala|gpa|a s|g k|ara|et |n p|at |ili|eng|mak|ika|ama|dad|nai|g i|ipa|in | aw|toy|oy |ao |yon|ag |on |aen|ta |ani|ily|bab|tao|ket|lya|sin|aik| ki|bal|oma|agp|ngi|a d|y n|iwa|o k|kin|naa|uma|daa|o t|gil|bae|i i|g a|mil| am| um|aga|kab|pad|ram|ags|syo|ar |ida|yto|i b|gim|sab|ino|n w| wa| de|a b|nia|dey|n m|o n|min|nom|asi|tan|aar|eg |agt|san|pap|eyt|iam|i e|saa|sal|pam|bag|nat|ak |sap|ed |gsa|lak|t n|ari|i u| gi|o p|nay|kan|t k|sia|aw |g n|day|i l|kit|uka|lan|i d|aib|pak|imo|y a|ias|mon|ma | li|den|i g|to |dum|sta|apu|o i|ubo|ged|lub|agb|pul|bia|i w|ita|asy|mid|umi|abi|akd|kar|kap|kai| ar|gin|kni| id|ban|bas|ad |bon|agk|nib|o m|ibi|ing|ran|kda|din|abs|iba|akn|nnu|t i|isu|o a|aip|as |inn|sar| la|maa|nto|amm|idi|g t|ulo|lal|bsa|waw|kip|w k|ura|d n|y i"},"Cyrillic":{"rus":" пр| и |рав|ств| на|пра|го |ени|ове|во | ка|ани|ть | в | по| об|ия |сво| св|лов|на | че|ело|о н| со|ост|чел|ие |ого|ет |ния|ест|аво|ый |ажд| им|ние|век| не|льн|ли |ова|име|ать|при|т п|и п|каж|или|обо| ра|ых |жды| до|дый|воб|ек |бод|ва |й ч|его|ся |и с|ии |аци|еет|но |мее|и и|лен|ой |тва|ных|то | ил|к и|енн| бы|ию | за|ми |тво|и н|о п|ван|о с|сто|аль| вс|ом |о в|ьно|их |ног|и в|нов|ако|про|ий |сти|и о|пол|олж|дол|ое |бра|я в| ос|ным|жен|раз|ти |нос|я и| во|тор|все| ег|ей |тел|не |и р|ред|ель|тве|оди| ко|общ|о и| де|има|а и|чес|ним|сно|как| ли|щес|вле|ься|нны|аст|тьс|нно|осу|е д| от|пре|шен|а с|бще|осн|одн|быт|сов|ыть|лжн|ран|нию|иче|ак |ым |ват|что|сту|чен|е в| ст|рес|оль| ни|ном|род|ля |нар|вен|ду |оже|ны |е и| то|вер|а о|зов|м и|нац|ден|рин|туп|ежд|стр| чт|я п|она|дос|х и|й и|тоя|есп|лич|бес|обр|ото|о б|ьны|ь в|нии|е м|ую | мо|ем | ме|аро| ре|ава|кот|ав | вы|ам |жно|ста|ая |под|и к|ное| к | та| го|гос|суд|еоб|я н|ен |и д|мож|еск|ели|авн|ве |ече|уще|печ|дно|о д|ход|ка | дл|для|ово|ате|льс|ю и|в к|нен|ции|ной|уда|вов| бе|оро|нст|ами|циа|кон|сем|е о|вно| эт|азо|х п|ни |жде|м п|ког|от |дст|вны|сть|ые |о о|пос|сре|тра|ейс|так|и б|дов|му |я к|нал|дру| др|кой|тер|ь п|арс|изн|соц|еди|олн","ukr":"на | пр| і |пра|рав| на|ня |ння| за|ого| по|ти |го |люд| лю|во | ко| ма|льн|юди|их |о н| не|аво|анн|дин| св|сво|ожн|кож|енн|пов|жна| до|ати|ина|ає |а л| бу|аці|не |ува|обо| ос| як|має| ви|них|аль|або|є п| та|ні |ть |ови|бо | ві| аб|ере|і п|а м|вин|без|при|іль|ног|о п|ми |та |ом |ою |бод|ста|воб| бе|до |ва |ті | об|о в|ост| в | що|ий |ся |і с| сп|инн|від|ств|и п|ван|нов|нан|кон| у |ват|она|ії |но |дно|ій |езп|пер| де|ути|ьно|ист|під|сті|бут| мо|и і|ідн|ако|нні|ід |тис|що |род|і в|а з|ава| пе|му |і н|а п|соб|ої |а в|спр|ів |ний|яко|ду |вно|і д|ну |аро|и с| ін|ля |рів|у в| рі|и д|нар|нен|ова|ому|лен|нац|ним|ися|чи |ав |і р|ном| ро|нос|ві |вни|овн| її|ові|мож|віл|у п| пі| су|її |одн| вс|ово|ють|іст|сть|і з| ст|буд| ра|чен|про|роз|івн|оду|а о|ьни|ни |о с|сно|зна|рац|им |о д|ими|я і|ції|х п|дер|чин| со|а с|ерж|и з|и в|е п|ди |заб|осо|у с|е б|сі |тер|ніх|я н|і б|кла|спі|в і| ні|о з|ржа|сту|їх |а н|нна|так|я п|зпе| од|абе|для|ту |і м|печ| дл|же |ки |віт|ніс|гал|ага|е м|ами|зах|рим|ї о|тан|ког|рес|удь| ре|то |ков|тор|ара|сві|тва|а б|оже|соц|оці|ціа|осн|роб|дь‐|ь‐я|‐як|і і|заг|ахи|хис|піл|цій|х в|лив|осв|іал|руч|ь п|інш|в я|ги |аги| ді|ком|ини|а і|оди|нал|тво|кої|всі|я в|ною|об |о у|о о|і о","bos":" пр| и |рав| на|пра|на |да |ма |има| св|а с|а п| да|а и| по|је |во |ко |ва | у |ако|но |о и|е с| за| им|аво|ти |ава|сва|и п|ли |о н|или|и с|их |вак| ко|ост|а у| сл|не |вањ| др|ње | не|кој|ња | би|ије|и д|им |ств|у с|јед|бод|сло|лоб|обо| ил|при| је|ање| ра|а д| об| су|е и|вје|се |ом |и и|сти| се|ју |дру|а б| ос|циј|вој|е п|а н|раз|су |у п|ања|о д|ује|а о|у и| од|и у|ло |ова|дје|жав|оје|а к|ни |ово|едн|ити|аци|у о|о п|нос|и о|бра| ка|шти|а ј|них|е о|пре|про|ржа| бу|буд|тре| тр|ог |држ|бит|е д|у з|ја |ста|авн|ија|е б|миј|и н|реб|сво|ђи |а з|ве |бил|ред|род|аро|ило|ива|ту |пос| ње| из|е у|ају|ба |ка |ем |ени|де |јер|у д|одн|њег|ду |гов|вим|јел|тва|за | до|еђу|ним| са|нар|а т| ни|о к|оји|м и| см| ст|еба|ода|ран|у н|дна|ичн|уђи|ист|вно|алн|и м| дј|нак|нац|сно|нст|тив|ани|ено|е к|е н|аве|ан |чно|и б|ном|сту|нов|ови|чов|нап|ног|м с|ој |ну |а р|еди|овј|оја|сми|осн|анс|ара|дно|х п|под|сам|обр|о о|руг|тво|ји | мо|его|тит|ашт|заш| кр|тељ|ико|уна|ник|рад|оду|туп|жив| ми|јек|кри| ов| вј| чо|ву |г п| оп|међ|њу |рив|нич|ина|одр|е т|уду| те|мје|ење|сви|а ч|у у|ниц|дни| та|и т|тно|ите|и в|дст|акв|те |ао | вр|ра |вољ|рим|ак |иту|ави|кла|вни|амо| он|ада|ере|ена|сто|кон|ст |она|иво|оби|оба|едс|как|љу ","srp":" пр| и |рав|пра| на|на | по|ма | св|да |има|а п|а и|во |ко |ва |ти |и п| у |ако| да|а с|аво|и с|ост| за|о и|сва| им|вак|ава|је |е с| сл| ко|о н|ња |но |не | не|ом |ли | др|или|у с|сло|обо|кој|их |лоб|бод|им |а н|ју | ил|ств| би|сти|а о|при|а у| ра|јед|ог | је|е п|ње |ни |у п|а д|едн|ити|а к|нос|и у|о д|про| су|ање|ова|е и|вањ|и и|циј| ос|се |дру|ста|ају|ања|и о| об|род|ове| ка| де|е о|аци|ја |ово| ни| од|и д| се|ве |ује|ени|ија|авн|жав| ст|у и|м и|дна|су |ред|и н|оја|е б|ара|што|нов|ржа|вој|држ|тва|оди|у о|а б|одн|пош|ошт|ним|а ј|ка |ран|у у| ов|аро|е д|сно|ења|у з|раз| из|осн|а з|о п|аве|пре|де |бит|них|шти|ву |у д|ду |ту | тр|нар| са|гов|за |без|оји|у н|вно|ичн|еђу|ло |ан |чно|ји |нак|ода| ме|вим|то |сво|ани|нац| ње|ник|њег|тит|ој |ме |ном|м с|е у|о к|ку | до|ика|ико|е к|пос|ашт|тре|алн|ног| вр|реб|нст| кр|сту|дно|ем |вар|е н|рив|туп|жив|те |чов|ст |ови|дни|ао |сме|бра|ави| ли|као|вољ|ило|о с|штв|и м|заш|њу |руг|тав|анс|ено|пор|кри|и б|оду|а р|ла | чо|а т|руш|ушт| бу|буд|ављ|уги|м п|ком|оје|вер| ве|под|и в|међ|его|вре|акв|еди|тво| см|од |дел|ена|рад|ба | мо|ну |о ј|дст|кла| оп|как|сам|ере|рим|вич|ива|о о| он|вни|тер|збе|х п|ниц|еба|е р|у в|ист|век|рем|сви|бил|ште|езб|јућ|њен|гла","uzn":"лар|ан |га |ар | ва| би|да |ва |ир | ҳу|ига|уқу|бир|ҳуқ|қуқ|ган| ҳа|ини|нг |р б|иш | та|ни |инг|лик|а э|ида|или|лиш|нин|ари|иши| ин|ади|он |инс|нсо|сон|ий |лан|дир| ма|кин|и б|ши |ҳар| бў|бўл| му|дан|уқи|ила|қла|р и|қиг|эга| эг| ўз|ки |эрк|қил|а б|оли|кла| эр|гад|лга|нли| ол|рки|и ҳ| ёк|ёки| қа|иб |иги|лиг|н б|н м| қи| ба|ара|атл|ри | бо|лат|бил|ин |ҳам|а т|лаш|р ҳ|ала| эт|инл|ик |бош|ниш|ш ҳ|мас|и в|эти|тил|тла|а ҳ|и м|а қ|уқл|қар|ани|арн|рни|им |ат |оси|ўли|ги | да|а и|н ҳ|риш|и т|мла|ли | ха|а м|ият| бу|рла|а а|рча|бар|аси|ўз |арч|ати|лин|ча |либ|мум| ас|аро|а о|ун |таъ| бе| ту|икл|р в|тга|тиб| ке|н э|ш в|мда|амд|али|н қ|мат|шга| те|сид|лла|иро| шу| қо|дам|а ш|ирл|илл|хал|рга| де|ири|тиш|умк|ола|амл|мки|тен|гин|ур |а ў|рак|а ё|имо| эъ|алқ| са|енг|тар|рда|ода| ша|шқа|ўлг|кат|сий|ак |н о|зар|и қ|ор | ми|нда|н в| си|аза|ера|а к|тни|р т|мил| ки|к б|ана|ам |ошқ|рин|сос|ас | со|сиз|асо|нид|асл|н ў|н т|илг|бу |й т|ти |син|дав|шла|на |лим|қон|и а|лак|эма|муҳ|ъти|си |бор|аш |и э|ака|нга|а в|дек|уни|екл|ино|ами| жа|риг|а д| эм|вла|лма|кер| то|лли|авл| ка|ят |н и|аъл|чун|анл|учу| уч|и с|аёт| иш|а у|тда|мия|а с|ра |ўзи|оий|ай |диг|эът|сла|ага|ник|р д|ция| ни|и ў|ада|рор|лад|сит|кда|икд|ким","azj":" вә|вә |әр |лар| һә|ин |ир | ол| һү| би|һүг|үгу|гуг|на |ләр|дә |һәр| шә|бир|ан | тә|лик|р б|мал|лма|асы|ини|р һ|шәх|ән |әхс|ары|гла|дир|а м|али|угу|аг | ма|ын |илә|уна|јәт| ја|икд|ара|ар |әри|әси|рин|әти|р ш|нин|дән|јјә|н һ| аз|ни |әрә| мә|зад|мәк|ијј| мү|син|тин|үн |олу|и в|ндә|гун|рын|аза|нда|ә а|әт |ыны|нын|лыг|илм| га| ет|ә ј|кди|әк |лә |лмә|олм|ына|инд|лун| ин|мас|хс |сын|ә б|г в|н м|адл|ја |тмә|н т|әми|нә |длы|да | бә|нун|бәр|сы | он|әја|ә һ|маг|дан|ун |етм|инә|н а|рлә|си | ва|ә в|раг|н б|ә м|ама|ры |н и|әра|нма|ынд|инс| өз|аны|ала| ал|ик |ә д|ләт|ирл|ил | ди|бил|ығы|ли |а б|әлә|дил|ә е|унм|алы|мүд| сә|ны |ә и|н в|ыг |нла|үда|аси|или| дә|нса|сан|угл|уг |әтл|ә о|хси| һе|ола|кил|ејн|тәр|јин| бу|ми |мәс|дыр|һәм| да|мин|иш | һа| ки|у в|лан|әни| ас|хал|бу |лығ|р в| ед|јан|рә |һеч|алг| та|еч |и с|ы һ|сиа|оси|сос|фиә|г һ|афи|ким|даф| әс|ә г| иш|н ә|ији|ыгл|әмә|ы о|әдә|әса| со|а г|лыд|илл|мил|а һ|ыды|сас|лы |ист| ис|ифа|мәз|ыр |јар|тлә|лиј|түн|ина|ә т|сиј|ал |рил| бү|иә |бүт| үч|үтү|өз |ону| ми|ија| нә|адә|ман|үчү|чүн|сеч|ылы|т в| се|иал|дах|сил|еди|н е|әји|ахи|хил| ҹә|миј|мән|р а|әз |а в|илд|и һ|тәһ|әһс|ы в|һси|вар|шәр|абә|гу |раб|аја|з һ|амә|там|ғын|ад |уғу|н д|мәһ|тәм| ни|и т| ха","koi":"ны |ӧн | бы|да | пр|пра|рав| мо|лӧн| да|быд|лӧ |орт|мор|ӧм |аво|ӧй | ве|ыд | не|нӧй|ыс |ын |сӧ |тӧм|сь |во |эз |льн|ьнӧ|тны|д м| ас|ыны|м п| по|сьӧ| и |то |бы | ӧт| эм| кы|аль|тлӧ|н э| от|вер|эм | кӧ|ртл|ӧ в| ко|воэ|ств|ерм|тшӧ| до|ола|ылӧ|вол|ас |ӧдн|кыт|ісь|ето|нет|тво|ліс|кӧр|ӧс | се|ы с|шӧм|а с|та |злӧ| ме| ол|аци|ӧ к|ӧ д|мед| вы|вны|а в|на |з в| на|ӧ б|лас|ӧрт| во| вӧ| сі|лан|рмӧ|дбы|едб|ыдӧ|оз |ась| оз| сы|ытш|олӧ|оэз|тир|с о| чу|ы а|оти|ция|ись|ӧтл| эт|рты| го|ы п|ы б|кол|тыс|сет| сь|рті|кӧт|о с|н б|дз |н н| мы| ке|кер|тӧн|тӧг|ӧтн|ис |а д|мӧ |ост|ӧ м| со|онд|нац|дӧс|итӧ|ест|выл| ви|сис|эта| уд|суд|нӧ |удж|ӧг |пон|ы н|н п|мӧд|а п|орй|ӧны|ӧмӧ|н м|ть |сыл|ана|ті |нда|рны|сси|рре|укӧ|з к|чук|йын|рез| эз|ысл|ӧр |ьӧр|с с|с д|рт |с в|езл|кин|осу|эзл|й о|отс| тӧ|ы д| ло| об|овн|лӧт|асс|кӧд|с м|ӧ о|нал|быт|она|ӧт |слӧ|скӧ|кон|тӧд|ытӧ|дны|а м|ы м|нек|ы к|ӧ н|асл|дор|ӧ п| де| за|а о| ов|сть|тра| дз|ь к|ӧтч|н к| ст|аса|етӧ|ьны|мӧл|умӧ|сьн| ум|ерн|код| пы|тла|оль|иал|а к|н о| сэ|а н|ь м|кыд|циа|са | ли|а б|езӧ|й д| чт|ськ|эсӧ|ион|еск|ӧ с|оци|что|ан |соц|йӧ |мӧс|тко|зын|нӧя|вес|енн| мӧ|ӧтк|ӧсь|тӧ |рлӧ|ӧя |оля|рйӧ|ӧмы|гос|тсӧ|зак|рст|з д|дек|ннё|уда|пыр|еки|ако|озь| а |исӧ|поз|дар|арс|ы ч","bel":" і | пр|пра|ава| на|на | па|рав|ны |ць |або| аб|ва |ацы|аве|ае | ча|ння|анн|льн| ма| св|сва|ала|не |чал|лав|ня |ай |ых | як|га |век|е п| ад|а н| не|пры|ага| ко|а п| за|кож|ожн|ы ч|бод|дна|жны|ваб|цца|ца | ў |а а|ек |мае|і п|нне|ных|асц|а с|пав|бо |ам |ста| са| вы|ван|ьна| да|ара|дзе|одн|го |наг|він|аць|оўн|цыя|мі |то | ра|і а|тва| ас|ств|лен|аві|ад |і с|енн|і н|аль|най|аво|рац|аро|ці |сці|пад|ама| бы| яг|яго|к м|іх |рым|ым |энн|што|і і|род| та|нан| дз|ні |я а|гэт|нас|ана| гэ|інн|а б|ыць|да |ыі |оў |чын| шт|а ў|цыі|які|дзя|а і|агу|я п|ным|нац| у | ўс|ыя |ьны|оль|нар|ўна|х п|і д|ў і| гр|амі|ымі|ах | ус|адз| ні|эта|ля |воў|ыма|рад|ы п|зна|чэн|нен|аба| ка|ўле|іна|быц|ход| ін|о п| ст|ера|уль|аў |асн|сам|рам|ры | су|нал|ду |ь с|чы |кла|аны|жна|і р|пер|і з|ь у|маю|ако|ыцц|яко|для|ую |гра|ука|е і|нае|адс|і ў|кац|ўны|а з| дл|яўл|а р|аюч|ючы|оду| пе| ро|ы і|вы |і м|аса|е м|аду|х н|ода|адн|нні|кі | шл|але|раз|ада|х і|авя|нав|алі|раб|ы ў|нна|мад|роў|кан|зе |дст|жыц|ані|нст|зяр|ржа|зак|дзі|люб|аюц|бар|ім |ены|бес|тан|м п|дук|е а|гул|я ў| дэ|ве |жав|ацц|ахо|заб|а в|авы|ган|о н|ваг|я і|чна|я я|сац|так|од |ярж|соб|м н|се |чац|ніч|ыял|яль|цця|ь п|о с|вол|дэк| бе|ну |ога| рэ|рас|буд|а т|асо|сно|ейн","bul":" на|на | пр|то | и |рав|да |пра| да|а с|ств|ва |та |а п|ите|но |во |ени|а н|е н| за|о и|ото|ван|не | вс|те |ки | не|о н|ове| по|а и|ава|чов|ни |ане|ия | чо|аво|ие | св|е п|а д| об|век|ест|сво| им|има|ост|и д|и ч|ани|или|все|ли |тво|и с|ние|вот|а в|ват|ма | ра|и п|и н| в |ек |сек|еки|а о| ил|е и|при| се|ова|ето|ата|воб|обо|бод|аци|ат |пре|оди|к и| бъ| съ|раз| ос|ред| ка|а б|о д|се | ко|бъд|лно|ния|о п| от|ъде|о в|за |ята| е | тр|и и|о с|тел|и в|нит|е с|ран| де|от |общ|де |ка |бра|ен |ява|ция|про|алн|и о|ият|ст |нов| до|его|как|ато| из|нег|а т|ден|а к|щес|а р|тря|а ч|ряб|о о|вен|ябв|бва|дър|гов|нац|ено|тве|ърж|е д|нос|ржа|а з|вит|зи |акв|лен| та|ежд|и з|род|е о|обр|нот| ни| с |т с|нар|о т|она|ез |йст|кат|иче| бе|жав|е т|е в|тва|зак|аро|кой|осн| ли|ува|авн|ейс|сно|рес|пол|нен|вни|без|ри |стр| ст|сто|под|чки|вид|ган|си |ди |и к|нст| те|а е|вси|еоб| дъ|сич|ичк|едв|жен|ник|ода|т н|о р|ака|ели|одн|елн|лич| че|чес|бще| ре|и м| ср|сре|и р|са |лни| си|дви|ичн|жда| къ|оет|ира|я н|дей| ме|еди|дру|ход|еме|кри|че |дос|ста|гра| то|ой |тъп|въз|ико|и у|нет| со|ави|той|елс|меж|чит|ита|що |ъм |азо|зов|нич|нал|дно| мо|ине|а у|тно|таз|кон|лит|ан |клю|люч|пос|тви|а м|й н|т и|изв|рез|ази|ра |оят|нео|чре","kaz":"ен |не | құ|тар|ұқы| ба| қа|ға |ада|дам|құқ|ық | бо| ад|ықт|қта|ына|ар | жә|ың |ылы|әне|жән| не|мен|лық|на |р а|де | жа|ін |а қ|ары|ан | әр|қыл|ара|ала| ме|н қ|еме|уға|ның| де|асы|ам |іне|тан|лы |нды|да |әр |ығы|ста|еке| өз|ын |ған|анд|мес| бі| қо|ды |ің |бас|бол|етт|ып |н б|ілі|қық|нде|ері|е қ|алы|нем|се |бір|лар|есе|ы б|тын|а ж| ке|тиі|ост|ге |бар| ти|е б| ар|дық|сы |інд|е а|аты| та| бе|ы т|ік |олы|нда|ғын|ры |иіс|ғы | те|бос|луы|алу|сын|рын|еті|іс |рде|қығ|е ж|рін|дар|іні|н ж|тті|қар|н к|ім | ер|егі|ыры|ыны| са|рға|ген|ынд|аны|уын|ы м|лға|ана|нің|тер|уы |ей |тік|ке |сқа|қа |мыс|тық|м б|ард| от|е н|е т|мны|өзі|нан|гіз|еге| на|ы ә|аза|ң қ|лан|нег|асқ|кін|амн|кет|рал|айд|луғ|аса|ті |рды|і б|а б|ру | же|р м|ді |тта|мет|лік|тыр|ама|жас|н н|лып| мү|дай|өз |ігі| ал|ауд|дей|зін|бер|р б|уда|кел|біл|і т|қор|тең|лге| жү|ден|ы а|елі|дер|ы ж|а т|рқы|рлы|арқ| тү|қам|еле|а о|е ө|тін|ір |ең |уге|е м|лде|ау |ауы|ркі|н а|ы е|оны|н т|рыл|түр|ция|гін| то| ха|жағ|оға|осы|зде| ос|ікт|кті|а д|ұлт|лтт|тты|лім|ғда| ау| да|хал|тте|лма| ұл|амд|құр|ірі|қат|тал|орғ|зі |елг|сіз|ағы| ел|ң б|ыс | ас|імд|оты| әл|н е|ағд|қты|шін|ерк|е д|ек |ені|кім|ылм|шіл|аға|сты|лер|гі |атт|кен| кө|ым‐| кұ|кұқ|ра |рік|н ә| еш"},"Arabic":{"arb":" ال|ية | في|الح|في | وا|وال| أو|ة ا|أو |الم|الت|لحق|حق |لى |كل |ان |ة و|الأ| لك|لكل|ن ا|ها |ق ف|ات |مة |ون |أن |ما |اء |ته |و ا|الع|ي ا|شخص|ي أ| أن|الإ|م ا|حري| عل|ة ل|من |الا|حقو|على|قوق|ت ا|أي |رد | شخ| لل| أي|ق ا|لا |فرد|رية| ول| من|د ا| كا| إل|خص |وق |ا ا|ة أ|ا ي|ل ف|ه ا|نسا|جتم|ن ي|امة|كان|دة | حق|ام |الق|ة م| فر|اية|سان|ل ش|ين |ن ت|إنس|ا ل| لا|ذا |هذا|ن أ|لة |ي ح| دو|ه ل|لك |ترا|لتع|اً |له |إلى| عن|ى ا|ه و|ع ا|ماع|د أ|اسي| حر|ة ع|مع |الد|نون| با|لحر|لعا|ن و|، و|يات|ي ت|الج| هذ|ير |بال|دول|لإن|عية|الف|ص ا| وي|الو|لأس| إن|أسا|ساس|ماي|حما|رام|سية|انو|مل |ي و|عام|ا و|تما| مت|ة ت|علي|ع ب|ك ا| له|ة ف|قان|ى أ|ول |هم |الب|ة ب|ساو|لقا|الر|لجم|ا ك|تمت|ليه|لتم|لمت|انت| قد|اد |ه أ| يج|ريا|ق و|ل ا|ا ب|ال |يه |اعي|لدو|ل و|لإع|لمي|لمج|لأم|تع |دم |تسا|عمل|اته|لاد|رة |اة |غير|قدم|وز |جوز|يجو|عال|لان|متع|مان|فيه|اجت|م و|يد |تعل|ن ل|ر ا| يع| كل|مم |مجت|تمع|دون| مع|تمي|ذلك|كرا|يها| مس|ميع|إعل|علا| تم| عا|ملا|اعا|لاج|ني |ليم|متس|ييز|يم |اعت|الش| تع|ميي|عن |تنا| بح|لما|ي ي|يز |ود |أمم|لات|أسر|شتر|تي | جم|ه ع|ر و|ي إ|تحد|حدة| أس|عة |ي م|ة، |معي|ن م|لمس|م ب|اق |جمي|لي |مية|الض|الس|لضم|ضما|لفر| وس|لحم|امل|ق م|را |ا ح|نت | تن|يته| أم|إلي|واج|د و|لتي| مر|مرا|متح| ذل| وأ| تح|ا ف| به| وم| بم|وية|ولي|لزو","urd":"ور | او|اور|کے | کے| کی|یں | کا|کی | حق|ے ک|کا | کو|یا |نے |سے | اس|ئے |کو |میں| ہے| می|ے ا| کر| ان|وں | ہو|اس |ر ا|شخص|ی ا| شخ| سے| جا|حق |خص |ہر |ام |ے م|ں ک|ہیں| یا|سی | آز|آزا|زاد|ادی|ائے|ا ح|ص ک|ہ ا|ہے |جائ|ت ک|ر ش|کہ |م ک| پر|ی ک|پر |ان |ا ج|۔ہر|س ک|دی |ہے۔|ق ہ|ی ح|ں ا|و ا|ر م|ار |حقو|قوق|ن ک|ری |کسی|ے گ|ی ج| مع| ہی|وق |سان|نی |ر ک|کرن|ی ت| حا| جو|تی |ئی | نہ| کہ|ل ک|اپن|جو |نسا|انس|ہ ک|ے ب|نہ |ہو | مل| اپ|یت |می |ے ہ|رنے|ے ل|ل ہ|ا ا| کس|رے |ی ش| ای|وہ |۔ ا|اصل|نہی|صل |ی م|یں۔|حاص|معا|د ک|انہ|ایس|ی ب|ی ہ|ملک|ق ک|ات | تع|دہ |قوم| قو|ے، |ر ہ|ا م|یہ | دو| من| بن| گا|اشر|کیا|ں م|عاش|وام| عا|اد |قوا|ی س|بر |اقو|انی| جس| لئ|لئے|دار|ر ب|ائی| وہ|ے۔ہ|مل |ے ج|علا|یوں| یہ|ے ح|ہ م|و ت|جس |ا ہ|کر |ر ن|لیم|انو| قا| و |ے۔ | اق|یم |ریق|لک |گی |ی آ|دوس| گی|وئی|ر پ|، ا|نیا|تعل| مس|ر ع|ی، |یر |لاق|خلا| رک|ین | با|ن ا|ی ن|ے پ|پنے|وری|ا س| سک| دی|ون |گا۔|م ا|انے|علی|یاد|قان|نون|س م|اف |رکھ| اع| پو| شا|وسر|ق ح|سب | بر|رتی| بی|اری| بھ|رائ| مم|ر س|یسے|ومی|دگی|ندگ| مر| پی| چا|و گ|نا |ے خ|ہ و|ادا| ہر|ا پ|تما|پور|مام|ے ع|ائد| عل|بھی|ھی |عام| مت| مق|من |د ا| ام|ونک| خل|نکہ|لاف|اعل|کوئ|اں |ریع|ذری| ذر|بنی| لی|و ک|دان|ں، |ے ی|ا ک| مح|، م|ت ا|ال |پنی|ے س|ر آ|ر ح|دیو|غیر| طر|ہوں|ی پ|ِ م|کرے| سا|اسے|رہ |برا","fas":" و | حق| با|که |ند | که| در|در |رد | دا|دار|از | از|هر | هر|یت |ر ک|حق |د ه|ای |د و|ان | را|ین |ود |یا | یا|را |ارد|ی و|کس | کس| بر| آز|باش|ه ب|آزا|د ک| خو|ه ا|د ب|زاد| اس|ار | آن|ق د|شد |حقو|قوق|ی ب|وق |ده |ه د|ید |ی ک|و ا|ور |ر م|رای|اشد|خود|ادی|تما|ری | اج|ام |دی |اید|س ح|است|ر ا|و م| ان|د ا|نه | بی|با | هم| نم|مای| تا|د، |ی ا|انه|ات |ون |ایت|ا ب|ست | کن|برا|انو| بش| مو|این| مر|اسا| مل|وان|ر ب|جتم| شو| اع|ن ا|ورد| می| ای|آن | به|و آ|ملل|ا م|ماع|نی |ت ا|، ا|ت و|ئی |عی |ائی|اجت|و ب|های|ن م|ی ی|بشر|کند|شود| من| زن|ن و|ی، |بای|ی ر| مس|مل |مور|ز آ|توا|دان|اری|علا|گرد|یگر|کار| گر| بد|ن ب|ت ب|ت م|ی م| مق|د آ|شور|یه |اعی| عم|ر خ|ن ح| کش|رند|مین| اح|ن ت|ی د| مت|ه م|د ش| حم|و د|دیگ|لام|کشو|هٔ |ه و|انی|لی |ت ک| مج|ق م|میت| کا| شد|اه |نون| آم|اد |ادا|اعل|د م|ق و|ا ک|می |ی ح|لل |نجا| مح|ساس|یده| قا|بعی|قان|ر ش|مقا|ا د|هد |وی |نوا|گی |ساو|ر ت|بر |اً |نمی|اسی|اده|او | او| دی| هی|هیچ|ه‌ا|‌ها|یر |خوا|د ت|همه|ا ه|تی |حما|دگی|بین|ع ا|سان|ر و|شده|ومی| عق| بع|ز ح|شر |مند| شر|ٔمی|أم|تأ|انت|اند|اوی|مسا|ردد|بهر| بم|ارن|یتو|ل م|ران|و ه|ر د|م م|رار|عقی|سی |و ت|زش | بو|ا ا|ی ن|موم|جا |عمو|رفت|عیت| فر|ندگ|واه|زند|م و|نما|ه ح|ا ر|دیه|جام|مرد|ت، |د ر|مام| تم|ملی|نند|الم|طور|ی ت|تخا|ا ت|امی|امل|دد | شخ|شخص","zlm":" دا|ان |دان| بر| او|ن س| ڤر|له |كن |ن ك|ن ا|دال|ن د|رڠ |يڠ |حق | يڠ|ارا| كڤ|أن |تيا|ڤد |ورڠ|ڠن |ياڤ| تر|اله|ولي|ن ڤ|اور|كڤد|برح|رحق|ين |اڤ |را | ات|ليه|ستي|ه ب|يه |اتا| ست| عد|عدا|ن ب|تاو|ن ت|يبس|ڤ ا|او |بيب|سي | كب|ه د|ن م| سو| من| حق| سا|لم |ق ك|اسا|الم|ن ي| تي| اي|سام|رن |ن، | ما|اتو|باڬ|بسن|سن |نڬا|ڬار|اين| مم|د س| با|كبي|ي د|ڠ ع|چار| سب|ڽ س|اڬي|د ڤ|ندق|سبا|اڽ | د | ڤم|نسي|قله|يند|ڬي |ام |تن |وان|تا |اون|ي ا| نڬ|هن | بو|ا ڤ|أنس|بول| كس| سم| سچ|ڠ ب|سچا|مأن|ا ب|ا س|بڠس| ڤڠ|دڠن|سيا|اسي|ساس| مأ| دڠ| اس|بار|هند|مان|ارڠ|رتا|دقل|تي |ت د| هن|ڤرل|نڽ |ات |ادي|ق م|، ك|تره|رها|هاد| ڤو|ادڤ| لا|ي م|ڤا |يكن|اول|ڤون|، د|ون |ڠسا|٢ د|اي |ق٢ |تو |وق |دڤ |يأن|وين|ن ه|ن٢ |ا د|وڠن|نتو|اكن|وا |ندو|وات|ه م|ي س|ڠ٢ | مڠ| ان|حق٢|يك |اد |مڤو|رات|اس |مرا|برس|ائن| مل| سس|ماس| كو|ري | بي|سوا|ڠ ت|ا، |، ت|ياد|امر|سمو|ڠ م|ڤرا|لوا|ڤري|دوڠ|ي ك|ل د|تار|ريك|تيك|ارك|ونت|لين| سر|رلي|سرت|وند|واس|رسا|ڤمب|ترم|، س|اڬا|يري|رأن| در|ا ا|دير| بڠ|ي ڤ|لائ|سوس|ڠ س|توق|سأن|ورو|جوا|هار|اڤا|وكن| ڤن|٢ ب|موا| كم|ارأ|نن |ندڠ|ا٢ | كأ|دڠ٢|و ك|كرج|وه |ا م|ڤرك|تها|اجر|جرن|ي، |شته| سڤ| به|ندي|ق ا|ڠڬو|بها|ڤ٢ | مر|سات|راس|بوا|ه ا|ا ك|د ك| ڤل|ن ح|لاج|هڽ |ڠ ا|مبي|ينڠ|بس | اڤ|ملا|كور|وار|م ڤ|سسي|نتي|تيڠ| دل|سال|وبو|منو|ڤول|مول|ڠ د|نتا|انت|ال ","skr":"تے |اں | تے|دے |دی |وں | دا| حق| کو|ے ا|کوں| دے|دا | دی|یاں| کی|ے ۔|یں |ہر | ۔ |کیت|ہے | وچ| ہے|وچ | ان| شخ|شخص|ادی|ال | حا|اصل|حق |حاص|ے م|خص |صل |ں د| نا|یا | ای|اتے|ق ح|ل ہ|ے و|ں ک| ات|ہیں|سی | مل|نال|زاد|ازا|ی ت| از|قوق|ار |ا ح|حقو| او|ص ک| ۔ہ|۔ہر|ر ش|دیا|ے ج|وق |ندے| کر|یند| یا|نہ | جو|کہی|ئے |ی د|سان|نسا|وند|ی ا|یتے|انس|ا ا|ملک|ے ح|و ڄ|ے ک|ڻ د| وی|یسی|ے ب|ا و| ہو|ں ا|ئی |ندی|تی |آپڻ|وڻ |ر ک|ن ۔| نہ|انہ|جو | کن| آپ| جی|اون|ویس|ی ن| تھ| کہ|ان |ری |ڻے | ڄئ| ہر|ے ن|دہ |ام |ں م|ے ہ|تھی|ں و|۔ ا|ں ت|ی ۔|کنو|ی ح|ی ک|نوں|رے |ہاں| بچ|ون |ے ت|کو | من|ی ہ|اری|ور |نہا|ہکو|یتا|نی |یاد|ت د|ن د| ون|وام|ی م|قوا|تا |ڄئے|پڻے| ہک|می | قو|ق ت|ے د|لے |اف |ل ک|ل ت| تع|چ ا|ین |خلا|اے |علا| سا|جیا|ئو |کرڻ|ی و|انی|ہو |دار| و |ی ج| اق|ن ا|یت |ارے|ے س|لک |ق د|ہوو| ڋو|ر ت| اے|ے خ| چا| خل|لاف|قنو|نون|پور|ڻ ک| پو|ایہ|بچئ|چئو|ات |الا|ونڄ|وری|این| وس| لو|و ا|ہ د| رک|یب |سیب|وسی|یر |ا ک|قوم|ریا|ں آ| جا|رکھ|مل |کاں|رڻ |اد |او |عزت| قن|ب د|وئی|ے ع| عز| ۔ک| مع|اقو|ایں|م م|زت |ڻی |یوڻ|ر ہ| سم|ں س|لوک| جھ| سی|جھی|ت ت|ل ا|اوڻ|کوئ|ں ج|ہی |حدہ|تعل|ے ذ|وے |تحد|متح|لا |ا ت|کار| اع|ے ر| مت|ر ا|ا م|ھین|ھیو|یہو| مط| سڱ|ی س|ڄے |نڄے|سڱد|لیم|علی|ے ق| ذر|م ت| کھ|ن ک| کم|ہ ا|سار|ائد|ائی|د ا| ہن|ہن |ی، |و ک|ں ب|ھیا|ذری|ں پ|لی ","pbu":" د | او|او |په | په|چې | چې| حق|ي ا|ره |ې د|نه |و ا|و د|هر |ه ا|ه و|ه د| څو| کښ|ري |حق |ي چ|کښې|له |غه |ښې |څوک|وي | شي|وک |و پ|لري| سر| لر|ه پ|سره|لو |ټول|کړي|يت |ه ک|ي۔ه| ټو|ي، |ر څ| له|ق ل|يا | هغ| از|۔هر|ازا| کړ|د م|هغه|دي | کو|نو |حقو|د ا|زاد|قوق|خه | وا| پر|ه ت|ولو|ه ه|ه م| وي| څخ| يا|يو |څخه|د د|ول | دي|ه ش|ي د|کول|ته |ه ب|ګه |و ي|ړي |و م|شي۔|اد |ونو|واد|دې | مل| تر| هي|خپل| نه|د ه| تو|ې پ| يو|تون|د پ|ان | با|ني |ک ح|ولن|ه ح|يوا|ادي| هر|وقو|د ت|ړي۔|ي و| مس|ې ا|ي پ|شي |امي|لي |ې و|يد |هيو| دا|وګه|دان| دغ| عم|قو |ي۔ |انه|ار | خپ|ايد|ه چ|باي|بشر| ده|لني|هغو|توګ|اند|، د|ه ن|و ه| لا| بر|مي | تا|ين |ي ح|م د|ايت| من|غو |وي،|دهغ| شو|شوي|دغه|و ح|اوي| ته|د ب|ي ت|پل |نيز| بش|ه ي| ډو|ه ل|ه ګ|ون |نون|پر |يڅ |انو|هيڅ|رو |و ت|بعي|علا|وم |ډول|ده |ومي|ونه|تر |و ک|کار|اره|ساو|اتو|ن ک|وند| اع|مين|اعل|لام|يه |موم| ان|اسي|سي |مسا| وک| ځا|تو |ي ش| پي|قان| ګټ|اخل|ديو|د ټ|و ر|ټه | مح| بي|ل ت|وکړ| ور|ن ش|ه س|ې ک|وون| قا|عمو|عقي|و س|ژون| اس| ژو|و ب|لان|کي |ې چ| وس|ځاي|پار|يز |ندې|لتو|ک د|ولے|لے | نو| ار|رته|وسي| بل|شري|و ن|د ق|ا ب|من |وق |ر د|اسا|بل | غو|ونک|ملت|ګټه|ا د| عق|دو | اج| هم|مان|ر م| را|هم |ښوو|۔هي| وړ|څ څ|تام|و څ| رو|ي م|ت ا|شخص| شخ|مل |ل ا|خصي|ل ه|نې |ت ک| چا|ن د|ړان|وړا|بر | ښو|ادا|ورو"},"Devanagari":{"hin":"के |प्र| के|और | और|ों | का|कार| प्|का | को|या |ं क|ार |ति |को | है|िका|ने |है |्रत|धिक| अध|अधि|की |ा क| कि| की| सम|ें |व्य|्ति|से |क्त|ा अ|्यक| व्|में|ि क|मान| मे| स्|सी |न्त| हो|े क|यक्|ता |ै ।|क्ष|त्य| कर|िक | वि| या|्य |भी |रत्|ी स| जा|र स|येक|स्व|ेक |रों|्ये|ा ज|िया|त्र|क व|र ह| अन|किस|्रा|ित |ा स|िसी|ा ह|ना | से| सा| । |देश|र क|गा | पर| अप|े स|ान |्त्|ी क|्त |समा| रा|ा प| ।प|वार|था |ष्ट|।प्|अन्|न क|षा |्वा|तन्| मा|ारो|्षा|्ट्|राष|वतन|ाष्|ाप्|ट्र|प्त|े अ|्वत| इस|राप| उस|कि |हो |त ह|ं औ| सं|े प|ार्|करन| भी| दे|किय|ा ।| न |जाए|ी प|र अ|क स|री | नि|अपन|े व|सभी|्तर| तथ|तथा|रा |यों|ओं |िवा|ाओं|ीय |सके|द्व|सम्|व क|पर |्री| द्|रता|ारा| ऐस|िए | सभ|रक्|्या|र प|ा व|माज|रने|र उ|होग|ो स|ं म|िक्| जि| लि|त क|ाएग|स्थ|े म|पूर|ाव |पने| भा|इस |े ल| घो|कृत|घोष|श्य|द्ध|लिए|ा औ|ो प|र्व|ाने|भाव|रूप|र्य|ी र|ेश |णा |ं स|ूर्|शिक|ूप |्ध |रीय| रू|। इ|े ब|दी |न्य|य क|रति|एगा| उन|ी अ|े औ| सु|सार|ेशो|जो |शों|जिस|ा उ| शि|ियो|तर्|ी भ|परा|चित|ानव|तिक|्र | पा| पू|म क|षणा|ोषण|ोगा|गी |र्ण|ाना|िश्|ो क|विश|ले |ारी|परि|र द|नव | यह|्म |साम|रका|म्म|राध| बु| जो|ानू| जन|चार|वाह|नून|स्त|े य|्रो|दिय|न स|ास |कर |य स|ं न|ाज |कता| सद|निय|अपर| ।क|ताओ|न अ|ाह |ी ज|बन्|ी न|े ज|ोई |य ह|्था|ामा|याद|ी व|ंकि|ूंक|ी म|चूं|श क|ुक्|त र","mar":"्या|या |त्य|याच|चा | व |ण्य|कार|प्र|ाचा| प्|िका|धिक| अध|अधि|च्य|ार |आहे| आह|ा अ|हे | स्|्ये|्रत|स्व|ा क| कर|्वा|ता |ास |ा स| त्|त्र|ा व|यां|ांच|िक |वा |मान| या| अस| का|्य |ष्ट|रत्|र्य|येक|ल्य|ाहि|र आ| को|ामा| सं|क्ष|कोण|ाच्| रा|ा न|ात |ंत्| सा|ून |ेका|ाष्|्ट्|ट्र|ने |राष| मा|चे |तंत|किं|िंव|ंवा| कि|व्य|े स|वात|करण|क्त|कास| मि|ा प| सम|ना |ये |मिळ|समा|ातं|र्व|्र्|े प| जा|यास|व स|ोणत|रण्|ा आ|ीय |काम|े क| दे|ांन|्यक|हि | व्|रां|ा म| आप|ही |्षण| पा|ान |े अ|ार्|िळण|ारा| आण|ळण्|ंच्|ाही|ची | वि|मा |्रा|ली |ा द|े व|ा ह|्री| नि|सर्|द्ध|णे |नये|ला | नय| सर|ी अ|्त |त क|ंना|्व |षण |आपल|ाचे|ले |माज|लेल| हो|ील |बंध|ी प|आणि|ध्य|ी स|देश|े ज| शि|शिक|णि |हिज|िजे|जे |यात|ानव|रीय|यक्|क स|न क|ा ज|पाह|व त|ज्य| ज्|िक्|स्थ|न्य|ंबं|त स|े आ|रक्|वी |पल्| के|संब|केल|य क|य अ| उप|असल|क व|त व|ीत |्वत|णत्|ाने|त्व|िष्|ेण्|साम|क आ|भाव|र्थ|ीने|्ती|कां|साठ|ाठी|रता|करत|ठी |याह|े य|सार|व म|ासा|याय|रति|े त|ंचा|र व|ंधा|ी आ|स स|ायद|त आ|ित |हीर|जाह|ेशा|ोणा| अश|ी व|ंरक|च्छ|संर|तील|हक्| हक|नवी|य व|शा |िवा|ांत|ंचे|ूर्|ा ब|ेत |क्क| अर|ाची|वस्|व आ|पूर|ी म|कृत|ेले|द्य|देण|ा त|याव|स्त|ारण|ेल्|थवा|तीन|अथव|ा य| अथ|अर्|ण म|ती |ेश |धात|र्ण|धार|त्त|साध| इत|ुक्|इतर|जिक| आल|ाजि|ाला|रून|तिष|राध|े ह|ेक |श्र|्थी|रणा|असे|्रद|ी क|थी |रका|सले","mai":"ाक |प्र|कार|िका|धिक|ार | आʼ|आʼ |्रत|ेँ |क अ|्यक|िक |्ति| अध|व्य|अधि|क स| प्| व्|क्त|केँ|यक्|तिक|हि | स्|न्त|क व|मे |बाक| सम|मान|त्य|क्ष|छैक| छै|ेक |स्व|रत्|त्र| अप|्ये|ष्ट|येक|र छ|सँ |ित |ैक।| एह| वि|वा | जा|्त्|िके|ति |ट्र|ाष्| हो|्ट्|राष| अन| रा| सा|्य |अपन| कर|कोन|।प्|्वत|क आ|तन्|अछि| अछ|वतन| को|था | वा|ताक| पर|ार्|एहि|नहि|पन |ा आ|रता|समा| मा|्री|नो | नह|्षा|देश|क प| दे| का| कए|रक | नि| सं|न्य|ि क|ोनो|छि |्त |ारक|्वा|ा स|ान्|ल ज|तथा| तथ|ान |करब|ँ क| आ |र आ|ीय |ता |क ह|वार| जे|्या|िवा|जाए|ना |ओर |ानव|ा प|ँ अ|अन्|ारण|माज|स्थ|घोष| आओ|्तर| एक|साम|र्व|आओर|धार|त क|परि|रीय|्रस|कएल|ामा|्रा|रण |ँ स| सभ|द्ध|स्त|एबा|पूर|ʼ स|ा अ| घो|षा |ाहि|ʼ अ|क।प|यक |नक |रक्|रबा|चित|िक्|क ज|ोषण|कर |र प|ेतु|हेत|शिक|एल |सम्| उप|ाधि|एहन|हन |त अ|तु |ूर्|षणा| हे|िमे| अव|ेल |सभ |े स|ि ज|निर| शि|िर्|रति|होए|अनु|र अ|जाह|क क|हो |्ध |रूप|वक |च्छ|प्त|ँ ए| सक|भाव|क उ|ाप्|सभक|त आ|ि आ|र्ण|त स|्रक|एत।|र्य|त ह|जिक| जन|ाजि|चार|ण स|ैक |रा |ि स|ारा|री |िश्|वाध|ा व|ाएत|न अ| ओ |हु |कान|जे |न व|िसँ|रसं|विव|कृत|ि घ|क ब| भा|उद्|ोएत| उद|राप|ʼ प|श्य|न प|्ण |य आ|द्व| द्|िष्| सह|ि द|धक | बी|ेश | पू|षाक|नवा|ास |ामे|ए स|जेँ| कि|कि |क ल| भे|पर |यता| रू|ओ व|ाके| पए|केओ|ेओ |पएब|राज| अथ|अथव|थवा|त्त|विश|्थि|य प|ा क|न क|वास|रिव|क र| दो|सार","bho":" के|के |ार |े क|कार|धिक|िका|ओर |आओर| आओ| अध|अधि|े स|ा क|े अ| हो| सं|र क|र स|ें | मे|में|िक | कर|ा स|र ह| से|से |रा |मान| सम|न क|क्ष|े ब|नो | चा|वे |ता |चाह|ष्ट| रा|ति |्रा|खे |राष|ाष्|प्र| सा| का|ट्र|े आ| प्| सक| मा|्ट्| स्|होख| बा|करे|ि क|ौनो|त क|था |कौन|पन | जा| कौ|रे |ाति|ला | ओक|ेला|तथा|आपन|्त | आप|कर |हवे|र म| हव| तथ|सबह|र आ|ोखे| ह।|िर |े ओ|केल|सके|हे | और|ही |तिर|त्र|जा |ना |बहि|।सब|े च| खा|े म| पर|खात|ान |र ब|न स|ावे| लो|षा |ाहे|ी क|ओकर|ा आ|माज|ित |े ज|ल ज|मिल|संग|्षा|ं क| सब|ा प|और |रक्|वे।|िं |े ह|ंत्|ाज |स्व|हिं|नइख|कान|ो स| जे|समा|क स|लोग|करा|क्त|्रत|ला।| नइ|े। |ानव|िया|हु |इखे|्र |रता|्वत|ानू|े न|ाम |नून|ाही|वतं|पर |ी स| ओ |े उ|े व|्री|रीय|स्थ|तंत|दी |ीय |े त|र अ|र प|्य |साम|बा।| आद|ून |। स|व्य|ा।स|सभे|भे |या | दे|ा म|े ख| वि| सु|केह|प्त|योग|ु क|ोग |े द|चार|ादी|ाप्| दो| या|राप|ल ह|पूर| मि|तिक|खल |यता|्ति| बि|ए क|आदि|दिम| ही|हि |मी | नि|र न| इ |ेहु|नवा|ा ह|री |ले | पा|ाधि| सह| उप|्या| जर|षण | सभ|िमी|देश|े प|म क|जे |ाव | अप|शिक|ाजि|जाद|जिक|े भ|क आ|्तर|िक्|ि म|ेकर|ुक्|वाध|गठन| व्|निय|ठन |।के|ामा|रो | जी|य क|न म|े ल|न ह|ास |ेश | शा|घोष|ंगठ|िल | घो|्षण| पू|े र|ंरक|संर|उपय|पयो|हो |बा |ी ब|्म |सब |दोस|ा। | आज|साथ| शि|आजा| भी| उच|ने |चित| अं|र व|ज क|न आ| ले|नि |ार्|कि |याह|्थि","nep":"को | र |कार|प्र|ार |ने |िका|क्त|धिक|्यक| गर|व्य|्रत| प्|अधि|्ति| अध| व्|यक्|मा |िक |त्य|ाई |लाई|न्त|मान| सम|त्र|गर्|र्न|क व| वा|्ने|वा | स्|रत्|र स|्ये|तिल|येक|ेक |छ ।|ो स|ा स|हरू| वि|क्ष|्त्|िला| । |स्व|हुन|ति | हु|ले | रा| मा|ष्ट|समा|वतन|तन्| छ |र छ| सं|्ट्|ट्र|ाष्|ो अ|राष|्वत|ुने|नेछ|हरु|ान |ता |े अ|्र | का|िने|ाको|गरि|े छ|ना | अन| नि|रता|नै | सा|ित |तिक|क स|र र|रू |ा अ|था |स्त|कुन|ा र|ुनै| छै|्त |छैन|ा प|ार्|वार|ा व| पर|तथा| तथ|का |्या|एको|रु |्षा|माज|रक्|परि|द्ध|। प| ला|सको|ामा| यस|ाहर|ेछ |धार|्रा|ो प|नि |देश|भाव|िवा|्य |र ह|र व|र म|सबै|न अ|े र|न स|रको|अन्|ताक|ंरक|संर|्वा| त्|सम्|री |ो व|ा भ|रहर| कु|्रि|त र|रिन|श्य|पनि|ै व|यस्|ारा|ानव| शि|ा त|लाग|रा |शिक| सब|ाउन|िक्|्न |ारक|ा न|रिय|्यस|द्व|रति|चार| सह|्षण| सु|ारम|ुक्|ुद्|साम|षा |ैन | अप| भए|बाट|ुन | उप|ान्|ो आ|्तर|िय |कान|ि र|रूक|द्द|र प|ाव |ो ल|तो | पन|ैन।| आव|ा ग|।प्|बै |ूर्|िएक|र त|निज|त्प| भे|जिक|ेछ।|िको|्तो|वाह|त स|ाट | अर|ाजि|्ध | उस|रमा|ात्|र्य|नको|ाय |जको|ित्|ागि| अभ|न ग|गि |ा म| आध|स्थ| पा|ारह|घोष|त्व|यता|ा क|र्द| मत|विध| सक|सार|परा|युक|राध| घो|णको|अपर|े स|ारी|।कु| दि| जन|भेद|रिव|उसक|क र|र अ|ि स|ानु|ो ह|रुद| छ।|ूको|रका|नमा| भन|र्म|हित|पूर|न्य|क अ|ा ब|ो भ|राज|अनु|ोषण|षणा|य र| मन| बि|्धा| दे|निर|ताह|र उ|यस |उने|रण |विक"}}')},955:function(a,n,i){"use strict";var e=i(956),u=i(1236),o=i(1237);t.all=s,a.exports=t;function t(a,n){return s(a,n)[0][0]}function s(a,n){var i,t=n||{},s=10,h=[].concat(t.whitelist||[],t.only||[]),b=[].concat(t.blacklist||[],t.ignore||[]);return null!==t.minLength&&void 0!==t.minLength&&(s=t.minLength),!a||a.length<s?k():(i=function(a,n){var i,e,u,o=-1;for(e in n)(u=r(a,n[e]))>o&&(o=u,i=e);return[i,o]}(a=a.slice(0,2048),u))[0]in o?function(a,n){var i=n[0][1],e=300*a.length-i,u=-1,o=n.length;for(;++u<o;)n[u][1]=1-(n[u][1]-i)/e||0;return n}(a,function(a,n,i,e){var u,o=[];for(u in n=function(a,n,i){var e,u;if(0===n.length&&0===i.length)return a;for(u in e={},a)d(u,n,i)&&(e[u]=a[u]);return e}(n,i,e))o.push([u,l(a,n[u])]);return 0===o.length?k():o.sort(g)}(e.asTuples(a),o[i[0]],h,b)):0!==i[1]&&d(i[0],h,b)?m(i[0]):k()}function r(a,n){var i=a.match(n);return(i?i.length:0)/a.length||0}function l(a,n){for(var i,e,u=0,o=-1,t=a.length;++o<t;)(i=a[o])[0]in n?(e=i[1]-n[i[0]]-1)<0&&(e=-e):e=300,u+=e;return u}function d(a,n,i){return 0===n.length&&0===i.length||(0===n.length||-1!==n.indexOf(a))&&-1===i.indexOf(a)}function k(){return m("und")}function m(a){return[[a,1]]}function g(a,n){return a[1]-n[1]}!function(){var a,n,i,e,u,t;for(u in o)for(n in a=o[u]){for(t=(e=a[n].split("|")).length,i={};t--;)i[e[t]]=t;a[n]=i}}()}}]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/google-page-trans.js b/plugins/saladict-ztools/ext-saladic/assets/google-page-trans.js index dc5d4f88..a16eaf57 100644 --- a/plugins/saladict-ztools/ext-saladic/assets/google-page-trans.js +++ b/plugins/saladict-ztools/ext-saladic/assets/google-page-trans.js @@ -70,7 +70,7 @@ `; const $style = document.createElement('style'); - $style.innerHTML = ` + $style.textContent = ` #google_translate_element { position: relative !important; } diff --git a/plugins/saladict-ztools/ext-saladic/assets/history.121ade87.js b/plugins/saladict-ztools/ext-saladic/assets/history.121ade87.js new file mode 100644 index 00000000..ab7b7e37 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/history.121ade87.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[11],{1347:function(s,n,o){s.exports=o(1361)},265:function(s,n,o){var e={"./ankiconnect/_locales/en.ts":281,"./ankiconnect/_locales/zh-CN.ts":282,"./ankiconnect/_locales/zh-TW.ts":283,"./eudic/_locales/en.ts":284,"./eudic/_locales/zh-CN.ts":285,"./eudic/_locales/zh-TW.ts":286,"./shanbay/_locales/en.ts":287,"./shanbay/_locales/zh-CN.ts":288,"./shanbay/_locales/zh-TW.ts":289,"./webdav/_locales/en.ts":290,"./webdav/_locales/zh-CN.ts":291,"./webdav/_locales/zh-TW.ts":292};function t(s){var n=a(s);return o(n)}function a(s){if(!o.o(e,s)){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}return e[s]}t.keys=function(){return Object.keys(e)},t.resolve=a,s.exports=t,t.id=265},369:function(s,n,o){var e={"./en/background.ts":[409,83],"./en/common.ts":[410,84],"./en/content.ts":[411,85],"./en/langcode.ts":[412,60],"./en/menus.ts":[413,86],"./en/options.ts":[414,87],"./en/popup.ts":[415,88],"./en/wordpage.ts":[416,89],"./es/background.ts":[417,90],"./es/common.ts":[418,91],"./es/content.ts":[419,92],"./es/langcode.ts":[420,61],"./es/menus.ts":[421,93],"./es/options.ts":[422,94],"./es/popup.ts":[423,95],"./es/wordpage.ts":[424,96],"./ne/background.ts":[425,97],"./ne/common.ts":[426,98],"./ne/content.ts":[427,99],"./ne/langcode.ts":[428,62],"./ne/menus.ts":[429,100],"./ne/options.ts":[430,101],"./ne/popup.ts":[431,102],"./ne/wordpage.ts":[432,103],"./zh-CN/background.ts":[433,104],"./zh-CN/common.ts":[434,105],"./zh-CN/content.ts":[435,106],"./zh-CN/langcode.ts":[436,63],"./zh-CN/menus.ts":[437,107],"./zh-CN/options.ts":[438,108],"./zh-CN/popup.ts":[439,109],"./zh-CN/wordpage.ts":[440,110],"./zh-TW/background.ts":[441,111],"./zh-TW/common.ts":[442,112],"./zh-TW/content.ts":[443,113],"./zh-TW/langcode.ts":[444,64],"./zh-TW/menus.ts":[445,114],"./zh-TW/options.ts":[446,115],"./zh-TW/popup.ts":[447,116],"./zh-TW/wordpage.ts":[448,117]};function t(s){if(!o.o(e,s))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=e[s],t=n[0];return o.e(n[1]).then((function(){return o(t)}))}t.keys=function(){return Object.keys(e)},t.id=369,s.exports=t},370:function(s,n,o){var e={"./ahdict/_locales.json":371,"./baidu/_locales.ts":372,"./bing/_locales.json":373,"./caiyun/_locales.ts":374,"./cambridge/_locales.json":375,"./cobuild/_locales.json":376,"./etymonline/_locales.json":377,"./eudic/_locales.json":378,"./google/_locales.ts":379,"./guoyu/_locales.json":380,"./hjdict/_locales.json":381,"./liangan/_locales.json":382,"./longman/_locales.json":383,"./merriamwebster/_locales.json":384,"./mojidict/_locales.json":385,"./naver/_locales.json":386,"./oaldict/_locales.json":387,"./renren/_locales.json":388,"./shanbay/_locales.json":389,"./sogou/_locales.ts":390,"./tencent/_locales.ts":391,"./urban/_locales.json":392,"./vocabulary/_locales.json":393,"./weblio/_locales.json":394,"./weblioejje/_locales.json":395,"./wikipedia/_locales.json":396,"./youdao/_locales.json":397,"./youdaotrans/_locales.ts":398,"./zdic/_locales.json":399};function t(s){var n=a(s);return o(n)}function a(s){if(!o.o(e,s)){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}return e[s]}t.keys=function(){return Object.keys(e)},t.resolve=a,s.exports=t,t.id=370},481:function(s,n,o){var e={"./ahdict/favicon.png":518,"./baidu/favicon.png":519,"./bing/favicon.png":520,"./caiyun/favicon.png":521,"./cambridge/favicon.png":522,"./cobuild/favicon.png":523,"./etymonline/favicon.png":524,"./eudic/favicon.png":525,"./google/favicon.png":526,"./guoyu/favicon.png":527,"./hjdict/favicon.png":528,"./liangan/favicon.png":529,"./longman/favicon.png":530,"./merriamwebster/favicon.png":531,"./mojidict/favicon.png":532,"./naver/favicon.png":533,"./oaldict/favicon.png":534,"./renren/favicon.png":535,"./shanbay/favicon.png":536,"./sogou/favicon.png":537,"./tencent/favicon.png":538,"./urban/favicon.png":539,"./vocabulary/favicon.png":540,"./weblio/favicon.png":541,"./weblioejje/favicon.png":542,"./wikipedia/favicon.png":543,"./youdao/favicon.png":544,"./youdaotrans/favicon.png":545,"./zdic/favicon.png":546};function t(s){var n=a(s);return o(n)}function a(s){if(!o.o(e,s)){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}return e[s]}t.keys=function(){return Object.keys(e)},t.resolve=a,s.exports=t,t.id=481},547:function(s,n,o){var e={"./ahdict/View.tsx":[678,71],"./baidu/View.tsx":[679,65],"./bing/View.tsx":[680,72],"./caiyun/View.tsx":[681,66],"./cambridge/View.tsx":[682,73],"./cobuild/View.tsx":[683,29],"./etymonline/View.tsx":[684,74],"./eudic/View.tsx":[685,118],"./google/View.tsx":[686,67],"./guoyu/View.tsx":[677,119],"./hjdict/View.tsx":[687,75],"./liangan/View.tsx":[688,82],"./longman/View.tsx":[689,30],"./merriamwebster/View.tsx":[690,120],"./mojidict/View.tsx":[691,25],"./naver/View.tsx":[692,76],"./oaldict/View.tsx":[693,77],"./renren/View.tsx":[694,78],"./shanbay/View.tsx":[695,79],"./sogou/View.tsx":[696,68],"./tencent/View.tsx":[697,69],"./urban/View.tsx":[698,80],"./vocabulary/View.tsx":[699,121],"./weblio/View.tsx":[700,26],"./weblioejje/View.tsx":[701,27],"./wikipedia/View.tsx":[702,81],"./youdao/View.tsx":[703,24],"./youdaotrans/View.tsx":[704,70],"./zdic/View.tsx":[705,28]};function t(s){if(!o.o(e,s))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=e[s],t=n[0];return o.e(n[1]).then((function(){return o(t)}))}t.keys=function(){return Object.keys(e)},t.id=547,s.exports=t},548:function(s,n,o){var e={"./ahdict/_style.shadow.scss":[706,31],"./baidu/_style.shadow.scss":[707,32],"./bing/_style.shadow.scss":[708,33],"./caiyun/_style.shadow.scss":[709,34],"./cambridge/_style.shadow.scss":[710,35],"./cobuild/_style.shadow.scss":[711,36],"./etymonline/_style.shadow.scss":[712,37],"./eudic/_style.shadow.scss":[713,38],"./google/_style.shadow.scss":[714,39],"./guoyu/_style.shadow.scss":[715,40],"./hjdict/_style.shadow.scss":[716,41],"./liangan/_style.shadow.scss":[717,42],"./longman/_style.shadow.scss":[718,43],"./merriamwebster/_style.shadow.scss":[719,44],"./mojidict/_style.shadow.scss":[720,45],"./naver/_style.shadow.scss":[721,46],"./oaldict/_style.shadow.scss":[722,47],"./renren/_style.shadow.scss":[723,48],"./shanbay/_style.shadow.scss":[724,49],"./sogou/_style.shadow.scss":[725,50],"./tencent/_style.shadow.scss":[726,51],"./urban/_style.shadow.scss":[727,52],"./vocabulary/_style.shadow.scss":[728,53],"./weblio/_style.shadow.scss":[729,54],"./weblioejje/_style.shadow.scss":[730,55],"./wikipedia/_style.shadow.scss":[731,56],"./youdao/_style.shadow.scss":[732,57],"./youdaotrans/_style.shadow.scss":[733,58],"./zdic/_style.shadow.scss":[734,59]};function t(s){if(!o.o(e,s))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=e[s],t=n[0];return o.e(n[1]).then((function(){return o.t(t,7)}))}t.keys=function(){return Object.keys(e)},t.id=548,s.exports=t}},[[1347,0,1,2,5]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/history.aeadfcd2.js b/plugins/saladict-ztools/ext-saladic/assets/history.aeadfcd2.js deleted file mode 100644 index 5ba19864..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/history.aeadfcd2.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[11],{1301:function(s,n,o){s.exports=o(1315)},259:function(s,n,o){var e={"./en/background.ts":[442,110],"./en/common.ts":[543,111],"./en/content.ts":[544,112],"./en/langcode.ts":[545,91],"./en/menus.ts":[546,113],"./en/options.ts":[547,114],"./en/popup.ts":[548,115],"./en/wordpage.ts":[549,116],"./zh-CN/background.ts":[443,117],"./zh-CN/common.ts":[550,118],"./zh-CN/content.ts":[551,119],"./zh-CN/langcode.ts":[552,92],"./zh-CN/menus.ts":[553,120],"./zh-CN/options.ts":[554,121],"./zh-CN/popup.ts":[555,122],"./zh-CN/wordpage.ts":[556,123],"./zh-TW/background.ts":[444,124],"./zh-TW/common.ts":[557,125],"./zh-TW/content.ts":[558,126],"./zh-TW/langcode.ts":[559,93],"./zh-TW/menus.ts":[560,127],"./zh-TW/options.ts":[561,128],"./zh-TW/popup.ts":[562,129],"./zh-TW/wordpage.ts":[563,130]};function a(s){if(!o.o(e,s))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=e[s],a=n[0];return o.e(n[1]).then((function(){return o(a)}))}a.keys=function(){return Object.keys(e)},a.id=259,s.exports=a},260:function(s,n,o){var e={"./baidu/_locales.ts":261,"./bing/_locales.json":262,"./caiyun/_locales.ts":263,"./cambridge/_locales.json":264,"./cnki/_locales.json":265,"./cobuild/_locales.json":266,"./etymonline/_locales.json":267,"./eudic/_locales.json":268,"./google/_locales.ts":269,"./googledict/_locales.json":270,"./guoyu/_locales.json":271,"./hjdict/_locales.json":272,"./jikipedia/_locales.json":273,"./jukuu/_locales.json":274,"./lexico/_locales.json":275,"./liangan/_locales.json":276,"./longman/_locales.json":277,"./macmillan/_locales.json":278,"./mojidict/_locales.json":279,"./naver/_locales.json":280,"./renren/_locales.json":281,"./shanbay/_locales.json":282,"./sogou/_locales.ts":283,"./tencent/_locales.ts":284,"./urban/_locales.json":285,"./vocabulary/_locales.json":286,"./weblio/_locales.json":287,"./weblioejje/_locales.json":288,"./websterlearner/_locales.json":289,"./wikipedia/_locales.json":290,"./youdao/_locales.json":291,"./youdaotrans/_locales.ts":292,"./zdic/_locales.json":293};function a(s){var n=t(s);return o(n)}function t(s){if(!o.o(e,s)){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}return e[s]}a.keys=function(){return Object.keys(e)},a.resolve=t,s.exports=a,a.id=260},294:function(s,n,o){var e={"./ankiconnect/_locales/en.ts":295,"./ankiconnect/_locales/zh-CN.ts":296,"./ankiconnect/_locales/zh-TW.ts":297,"./shanbay/_locales/en.ts":298,"./shanbay/_locales/zh-CN.ts":299,"./shanbay/_locales/zh-TW.ts":300,"./webdav/_locales/en.ts":301,"./webdav/_locales/zh-CN.ts":302,"./webdav/_locales/zh-TW.ts":303};function a(s){var n=t(s);return o(n)}function t(s){if(!o.o(e,s)){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}return e[s]}a.keys=function(){return Object.keys(e)},a.resolve=t,s.exports=a,a.id=294},429:function(s,n,o){var e={"./baidu/favicon.png":445,"./bing/favicon.png":446,"./caiyun/favicon.png":447,"./cambridge/favicon.png":448,"./cnki/favicon.png":449,"./cobuild/favicon.png":450,"./etymonline/favicon.png":451,"./eudic/favicon.png":452,"./google/favicon.png":453,"./googledict/favicon.png":454,"./guoyu/favicon.png":455,"./hjdict/favicon.png":456,"./jikipedia/favicon.png":457,"./jukuu/favicon.png":458,"./lexico/favicon.png":459,"./liangan/favicon.png":460,"./longman/favicon.png":461,"./macmillan/favicon.png":462,"./mojidict/favicon.png":463,"./naver/favicon.png":464,"./renren/favicon.png":465,"./shanbay/favicon.png":466,"./sogou/favicon.png":467,"./tencent/favicon.png":468,"./urban/favicon.png":469,"./vocabulary/favicon.png":470,"./weblio/favicon.png":471,"./weblioejje/favicon.png":472,"./websterlearner/favicon.png":473,"./wikipedia/favicon.png":474,"./youdao/favicon.png":475,"./youdaotrans/favicon.png":476,"./zdic/favicon.png":477};function a(s){var n=t(s);return o(n)}function t(s){if(!o.o(e,s)){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}return e[s]}a.keys=function(){return Object.keys(e)},a.resolve=t,s.exports=a,a.id=429},478:function(s,n,o){var e={"./baidu/View.tsx":[638,99],"./bing/View.tsx":[639,131],"./caiyun/View.tsx":[640,100],"./cambridge/View.tsx":[641,132],"./cnki/View.tsx":[642,94],"./cobuild/View.tsx":[643,105],"./etymonline/View.tsx":[644,133],"./eudic/View.tsx":[645,134],"./google/View.tsx":[646,101],"./googledict/View.tsx":[647,135],"./guoyu/View.tsx":[636,136],"./hjdict/View.tsx":[648,137],"./jikipedia/View.tsx":[649,138],"./jukuu/View.tsx":[650,139],"./lexico/View.tsx":[651,140],"./liangan/View.tsx":[652,108],"./longman/View.tsx":[653,106],"./macmillan/View.tsx":[654,107],"./mojidict/View.tsx":[655,95],"./naver/View.tsx":[656,141],"./renren/View.tsx":[657,142],"./shanbay/View.tsx":[658,143],"./sogou/View.tsx":[659,102],"./tencent/View.tsx":[660,103],"./urban/View.tsx":[661,144],"./vocabulary/View.tsx":[662,145],"./weblio/View.tsx":[663,96],"./weblioejje/View.tsx":[664,97],"./websterlearner/View.tsx":[665,146],"./wikipedia/View.tsx":[666,147],"./youdao/View.tsx":[667,57],"./youdaotrans/View.tsx":[668,104],"./zdic/View.tsx":[669,98]};function a(s){if(!o.o(e,s))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=e[s],a=n[0];return o.e(n[1]).then((function(){return o(a)}))}a.keys=function(){return Object.keys(e)},a.id=478,s.exports=a},479:function(s,n,o){var e={"./baidu/_style.shadow.scss":[670,58],"./bing/_style.shadow.scss":[671,59],"./caiyun/_style.shadow.scss":[672,60],"./cambridge/_style.shadow.scss":[673,61],"./cnki/_style.shadow.scss":[674,62],"./cobuild/_style.shadow.scss":[675,63],"./etymonline/_style.shadow.scss":[676,64],"./eudic/_style.shadow.scss":[677,65],"./google/_style.shadow.scss":[678,66],"./googledict/_style.shadow.scss":[679,67],"./guoyu/_style.shadow.scss":[680,68],"./hjdict/_style.shadow.scss":[681,69],"./jikipedia/_style.shadow.scss":[682,70],"./jukuu/_style.shadow.scss":[683,71],"./lexico/_style.shadow.scss":[684,72],"./liangan/_style.shadow.scss":[685,73],"./longman/_style.shadow.scss":[686,74],"./macmillan/_style.shadow.scss":[687,75],"./mojidict/_style.shadow.scss":[688,76],"./naver/_style.shadow.scss":[689,77],"./renren/_style.shadow.scss":[690,78],"./shanbay/_style.shadow.scss":[691,79],"./sogou/_style.shadow.scss":[692,80],"./tencent/_style.shadow.scss":[693,81],"./urban/_style.shadow.scss":[694,82],"./vocabulary/_style.shadow.scss":[695,83],"./weblio/_style.shadow.scss":[696,84],"./weblioejje/_style.shadow.scss":[697,85],"./websterlearner/_style.shadow.scss":[698,86],"./wikipedia/_style.shadow.scss":[699,87],"./youdao/_style.shadow.scss":[700,88],"./youdaotrans/_style.shadow.scss":[701,89],"./zdic/_style.shadow.scss":[702,90]};function a(s){if(!o.o(e,s))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=e[s],a=n[0];return o.e(n[1]).then((function(){return o.t(a,7)}))}a.keys=function(){return Object.keys(e)},a.id=479,s.exports=a}},[[1301,0,1,3,5]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/notebook.90acaaa0.js b/plugins/saladict-ztools/ext-saladic/assets/notebook.90acaaa0.js new file mode 100644 index 00000000..ce220f62 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/notebook.90acaaa0.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[12],{1259:function(s,n,o){s.exports=o(1360)},265:function(s,n,o){var e={"./ankiconnect/_locales/en.ts":281,"./ankiconnect/_locales/zh-CN.ts":282,"./ankiconnect/_locales/zh-TW.ts":283,"./eudic/_locales/en.ts":284,"./eudic/_locales/zh-CN.ts":285,"./eudic/_locales/zh-TW.ts":286,"./shanbay/_locales/en.ts":287,"./shanbay/_locales/zh-CN.ts":288,"./shanbay/_locales/zh-TW.ts":289,"./webdav/_locales/en.ts":290,"./webdav/_locales/zh-CN.ts":291,"./webdav/_locales/zh-TW.ts":292};function t(s){var n=a(s);return o(n)}function a(s){if(!o.o(e,s)){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}return e[s]}t.keys=function(){return Object.keys(e)},t.resolve=a,s.exports=t,t.id=265},369:function(s,n,o){var e={"./en/background.ts":[409,83],"./en/common.ts":[410,84],"./en/content.ts":[411,85],"./en/langcode.ts":[412,60],"./en/menus.ts":[413,86],"./en/options.ts":[414,87],"./en/popup.ts":[415,88],"./en/wordpage.ts":[416,89],"./es/background.ts":[417,90],"./es/common.ts":[418,91],"./es/content.ts":[419,92],"./es/langcode.ts":[420,61],"./es/menus.ts":[421,93],"./es/options.ts":[422,94],"./es/popup.ts":[423,95],"./es/wordpage.ts":[424,96],"./ne/background.ts":[425,97],"./ne/common.ts":[426,98],"./ne/content.ts":[427,99],"./ne/langcode.ts":[428,62],"./ne/menus.ts":[429,100],"./ne/options.ts":[430,101],"./ne/popup.ts":[431,102],"./ne/wordpage.ts":[432,103],"./zh-CN/background.ts":[433,104],"./zh-CN/common.ts":[434,105],"./zh-CN/content.ts":[435,106],"./zh-CN/langcode.ts":[436,63],"./zh-CN/menus.ts":[437,107],"./zh-CN/options.ts":[438,108],"./zh-CN/popup.ts":[439,109],"./zh-CN/wordpage.ts":[440,110],"./zh-TW/background.ts":[441,111],"./zh-TW/common.ts":[442,112],"./zh-TW/content.ts":[443,113],"./zh-TW/langcode.ts":[444,64],"./zh-TW/menus.ts":[445,114],"./zh-TW/options.ts":[446,115],"./zh-TW/popup.ts":[447,116],"./zh-TW/wordpage.ts":[448,117]};function t(s){if(!o.o(e,s))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=e[s],t=n[0];return o.e(n[1]).then((function(){return o(t)}))}t.keys=function(){return Object.keys(e)},t.id=369,s.exports=t},370:function(s,n,o){var e={"./ahdict/_locales.json":371,"./baidu/_locales.ts":372,"./bing/_locales.json":373,"./caiyun/_locales.ts":374,"./cambridge/_locales.json":375,"./cobuild/_locales.json":376,"./etymonline/_locales.json":377,"./eudic/_locales.json":378,"./google/_locales.ts":379,"./guoyu/_locales.json":380,"./hjdict/_locales.json":381,"./liangan/_locales.json":382,"./longman/_locales.json":383,"./merriamwebster/_locales.json":384,"./mojidict/_locales.json":385,"./naver/_locales.json":386,"./oaldict/_locales.json":387,"./renren/_locales.json":388,"./shanbay/_locales.json":389,"./sogou/_locales.ts":390,"./tencent/_locales.ts":391,"./urban/_locales.json":392,"./vocabulary/_locales.json":393,"./weblio/_locales.json":394,"./weblioejje/_locales.json":395,"./wikipedia/_locales.json":396,"./youdao/_locales.json":397,"./youdaotrans/_locales.ts":398,"./zdic/_locales.json":399};function t(s){var n=a(s);return o(n)}function a(s){if(!o.o(e,s)){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}return e[s]}t.keys=function(){return Object.keys(e)},t.resolve=a,s.exports=t,t.id=370},481:function(s,n,o){var e={"./ahdict/favicon.png":518,"./baidu/favicon.png":519,"./bing/favicon.png":520,"./caiyun/favicon.png":521,"./cambridge/favicon.png":522,"./cobuild/favicon.png":523,"./etymonline/favicon.png":524,"./eudic/favicon.png":525,"./google/favicon.png":526,"./guoyu/favicon.png":527,"./hjdict/favicon.png":528,"./liangan/favicon.png":529,"./longman/favicon.png":530,"./merriamwebster/favicon.png":531,"./mojidict/favicon.png":532,"./naver/favicon.png":533,"./oaldict/favicon.png":534,"./renren/favicon.png":535,"./shanbay/favicon.png":536,"./sogou/favicon.png":537,"./tencent/favicon.png":538,"./urban/favicon.png":539,"./vocabulary/favicon.png":540,"./weblio/favicon.png":541,"./weblioejje/favicon.png":542,"./wikipedia/favicon.png":543,"./youdao/favicon.png":544,"./youdaotrans/favicon.png":545,"./zdic/favicon.png":546};function t(s){var n=a(s);return o(n)}function a(s){if(!o.o(e,s)){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}return e[s]}t.keys=function(){return Object.keys(e)},t.resolve=a,s.exports=t,t.id=481},547:function(s,n,o){var e={"./ahdict/View.tsx":[678,71],"./baidu/View.tsx":[679,65],"./bing/View.tsx":[680,72],"./caiyun/View.tsx":[681,66],"./cambridge/View.tsx":[682,73],"./cobuild/View.tsx":[683,29],"./etymonline/View.tsx":[684,74],"./eudic/View.tsx":[685,118],"./google/View.tsx":[686,67],"./guoyu/View.tsx":[677,119],"./hjdict/View.tsx":[687,75],"./liangan/View.tsx":[688,82],"./longman/View.tsx":[689,30],"./merriamwebster/View.tsx":[690,120],"./mojidict/View.tsx":[691,25],"./naver/View.tsx":[692,76],"./oaldict/View.tsx":[693,77],"./renren/View.tsx":[694,78],"./shanbay/View.tsx":[695,79],"./sogou/View.tsx":[696,68],"./tencent/View.tsx":[697,69],"./urban/View.tsx":[698,80],"./vocabulary/View.tsx":[699,121],"./weblio/View.tsx":[700,26],"./weblioejje/View.tsx":[701,27],"./wikipedia/View.tsx":[702,81],"./youdao/View.tsx":[703,24],"./youdaotrans/View.tsx":[704,70],"./zdic/View.tsx":[705,28]};function t(s){if(!o.o(e,s))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=e[s],t=n[0];return o.e(n[1]).then((function(){return o(t)}))}t.keys=function(){return Object.keys(e)},t.id=547,s.exports=t},548:function(s,n,o){var e={"./ahdict/_style.shadow.scss":[706,31],"./baidu/_style.shadow.scss":[707,32],"./bing/_style.shadow.scss":[708,33],"./caiyun/_style.shadow.scss":[709,34],"./cambridge/_style.shadow.scss":[710,35],"./cobuild/_style.shadow.scss":[711,36],"./etymonline/_style.shadow.scss":[712,37],"./eudic/_style.shadow.scss":[713,38],"./google/_style.shadow.scss":[714,39],"./guoyu/_style.shadow.scss":[715,40],"./hjdict/_style.shadow.scss":[716,41],"./liangan/_style.shadow.scss":[717,42],"./longman/_style.shadow.scss":[718,43],"./merriamwebster/_style.shadow.scss":[719,44],"./mojidict/_style.shadow.scss":[720,45],"./naver/_style.shadow.scss":[721,46],"./oaldict/_style.shadow.scss":[722,47],"./renren/_style.shadow.scss":[723,48],"./shanbay/_style.shadow.scss":[724,49],"./sogou/_style.shadow.scss":[725,50],"./tencent/_style.shadow.scss":[726,51],"./urban/_style.shadow.scss":[727,52],"./vocabulary/_style.shadow.scss":[728,53],"./weblio/_style.shadow.scss":[729,54],"./weblioejje/_style.shadow.scss":[730,55],"./wikipedia/_style.shadow.scss":[731,56],"./youdao/_style.shadow.scss":[732,57],"./youdaotrans/_style.shadow.scss":[733,58],"./zdic/_style.shadow.scss":[734,59]};function t(s){if(!o.o(e,s))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=e[s],t=n[0];return o.e(n[1]).then((function(){return o.t(t,7)}))}t.keys=function(){return Object.keys(e)},t.id=548,s.exports=t}},[[1259,0,1,2,5]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/notebook.dbf8d02b.js b/plugins/saladict-ztools/ext-saladic/assets/notebook.dbf8d02b.js deleted file mode 100644 index 47f4a412..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/notebook.dbf8d02b.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[12],{1211:function(s,n,o){s.exports=o(1314)},259:function(s,n,o){var e={"./en/background.ts":[442,110],"./en/common.ts":[543,111],"./en/content.ts":[544,112],"./en/langcode.ts":[545,91],"./en/menus.ts":[546,113],"./en/options.ts":[547,114],"./en/popup.ts":[548,115],"./en/wordpage.ts":[549,116],"./zh-CN/background.ts":[443,117],"./zh-CN/common.ts":[550,118],"./zh-CN/content.ts":[551,119],"./zh-CN/langcode.ts":[552,92],"./zh-CN/menus.ts":[553,120],"./zh-CN/options.ts":[554,121],"./zh-CN/popup.ts":[555,122],"./zh-CN/wordpage.ts":[556,123],"./zh-TW/background.ts":[444,124],"./zh-TW/common.ts":[557,125],"./zh-TW/content.ts":[558,126],"./zh-TW/langcode.ts":[559,93],"./zh-TW/menus.ts":[560,127],"./zh-TW/options.ts":[561,128],"./zh-TW/popup.ts":[562,129],"./zh-TW/wordpage.ts":[563,130]};function a(s){if(!o.o(e,s))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=e[s],a=n[0];return o.e(n[1]).then((function(){return o(a)}))}a.keys=function(){return Object.keys(e)},a.id=259,s.exports=a},260:function(s,n,o){var e={"./baidu/_locales.ts":261,"./bing/_locales.json":262,"./caiyun/_locales.ts":263,"./cambridge/_locales.json":264,"./cnki/_locales.json":265,"./cobuild/_locales.json":266,"./etymonline/_locales.json":267,"./eudic/_locales.json":268,"./google/_locales.ts":269,"./googledict/_locales.json":270,"./guoyu/_locales.json":271,"./hjdict/_locales.json":272,"./jikipedia/_locales.json":273,"./jukuu/_locales.json":274,"./lexico/_locales.json":275,"./liangan/_locales.json":276,"./longman/_locales.json":277,"./macmillan/_locales.json":278,"./mojidict/_locales.json":279,"./naver/_locales.json":280,"./renren/_locales.json":281,"./shanbay/_locales.json":282,"./sogou/_locales.ts":283,"./tencent/_locales.ts":284,"./urban/_locales.json":285,"./vocabulary/_locales.json":286,"./weblio/_locales.json":287,"./weblioejje/_locales.json":288,"./websterlearner/_locales.json":289,"./wikipedia/_locales.json":290,"./youdao/_locales.json":291,"./youdaotrans/_locales.ts":292,"./zdic/_locales.json":293};function a(s){var n=t(s);return o(n)}function t(s){if(!o.o(e,s)){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}return e[s]}a.keys=function(){return Object.keys(e)},a.resolve=t,s.exports=a,a.id=260},294:function(s,n,o){var e={"./ankiconnect/_locales/en.ts":295,"./ankiconnect/_locales/zh-CN.ts":296,"./ankiconnect/_locales/zh-TW.ts":297,"./shanbay/_locales/en.ts":298,"./shanbay/_locales/zh-CN.ts":299,"./shanbay/_locales/zh-TW.ts":300,"./webdav/_locales/en.ts":301,"./webdav/_locales/zh-CN.ts":302,"./webdav/_locales/zh-TW.ts":303};function a(s){var n=t(s);return o(n)}function t(s){if(!o.o(e,s)){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}return e[s]}a.keys=function(){return Object.keys(e)},a.resolve=t,s.exports=a,a.id=294},429:function(s,n,o){var e={"./baidu/favicon.png":445,"./bing/favicon.png":446,"./caiyun/favicon.png":447,"./cambridge/favicon.png":448,"./cnki/favicon.png":449,"./cobuild/favicon.png":450,"./etymonline/favicon.png":451,"./eudic/favicon.png":452,"./google/favicon.png":453,"./googledict/favicon.png":454,"./guoyu/favicon.png":455,"./hjdict/favicon.png":456,"./jikipedia/favicon.png":457,"./jukuu/favicon.png":458,"./lexico/favicon.png":459,"./liangan/favicon.png":460,"./longman/favicon.png":461,"./macmillan/favicon.png":462,"./mojidict/favicon.png":463,"./naver/favicon.png":464,"./renren/favicon.png":465,"./shanbay/favicon.png":466,"./sogou/favicon.png":467,"./tencent/favicon.png":468,"./urban/favicon.png":469,"./vocabulary/favicon.png":470,"./weblio/favicon.png":471,"./weblioejje/favicon.png":472,"./websterlearner/favicon.png":473,"./wikipedia/favicon.png":474,"./youdao/favicon.png":475,"./youdaotrans/favicon.png":476,"./zdic/favicon.png":477};function a(s){var n=t(s);return o(n)}function t(s){if(!o.o(e,s)){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}return e[s]}a.keys=function(){return Object.keys(e)},a.resolve=t,s.exports=a,a.id=429},478:function(s,n,o){var e={"./baidu/View.tsx":[638,99],"./bing/View.tsx":[639,131],"./caiyun/View.tsx":[640,100],"./cambridge/View.tsx":[641,132],"./cnki/View.tsx":[642,94],"./cobuild/View.tsx":[643,105],"./etymonline/View.tsx":[644,133],"./eudic/View.tsx":[645,134],"./google/View.tsx":[646,101],"./googledict/View.tsx":[647,135],"./guoyu/View.tsx":[636,136],"./hjdict/View.tsx":[648,137],"./jikipedia/View.tsx":[649,138],"./jukuu/View.tsx":[650,139],"./lexico/View.tsx":[651,140],"./liangan/View.tsx":[652,108],"./longman/View.tsx":[653,106],"./macmillan/View.tsx":[654,107],"./mojidict/View.tsx":[655,95],"./naver/View.tsx":[656,141],"./renren/View.tsx":[657,142],"./shanbay/View.tsx":[658,143],"./sogou/View.tsx":[659,102],"./tencent/View.tsx":[660,103],"./urban/View.tsx":[661,144],"./vocabulary/View.tsx":[662,145],"./weblio/View.tsx":[663,96],"./weblioejje/View.tsx":[664,97],"./websterlearner/View.tsx":[665,146],"./wikipedia/View.tsx":[666,147],"./youdao/View.tsx":[667,57],"./youdaotrans/View.tsx":[668,104],"./zdic/View.tsx":[669,98]};function a(s){if(!o.o(e,s))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=e[s],a=n[0];return o.e(n[1]).then((function(){return o(a)}))}a.keys=function(){return Object.keys(e)},a.id=478,s.exports=a},479:function(s,n,o){var e={"./baidu/_style.shadow.scss":[670,58],"./bing/_style.shadow.scss":[671,59],"./caiyun/_style.shadow.scss":[672,60],"./cambridge/_style.shadow.scss":[673,61],"./cnki/_style.shadow.scss":[674,62],"./cobuild/_style.shadow.scss":[675,63],"./etymonline/_style.shadow.scss":[676,64],"./eudic/_style.shadow.scss":[677,65],"./google/_style.shadow.scss":[678,66],"./googledict/_style.shadow.scss":[679,67],"./guoyu/_style.shadow.scss":[680,68],"./hjdict/_style.shadow.scss":[681,69],"./jikipedia/_style.shadow.scss":[682,70],"./jukuu/_style.shadow.scss":[683,71],"./lexico/_style.shadow.scss":[684,72],"./liangan/_style.shadow.scss":[685,73],"./longman/_style.shadow.scss":[686,74],"./macmillan/_style.shadow.scss":[687,75],"./mojidict/_style.shadow.scss":[688,76],"./naver/_style.shadow.scss":[689,77],"./renren/_style.shadow.scss":[690,78],"./shanbay/_style.shadow.scss":[691,79],"./sogou/_style.shadow.scss":[692,80],"./tencent/_style.shadow.scss":[693,81],"./urban/_style.shadow.scss":[694,82],"./vocabulary/_style.shadow.scss":[695,83],"./weblio/_style.shadow.scss":[696,84],"./weblioejje/_style.shadow.scss":[697,85],"./websterlearner/_style.shadow.scss":[698,86],"./wikipedia/_style.shadow.scss":[699,87],"./youdao/_style.shadow.scss":[700,88],"./youdaotrans/_style.shadow.scss":[701,89],"./zdic/_style.shadow.scss":[702,90]};function a(s){if(!o.o(e,s))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=e[s],a=n[0];return o.e(n[1]).then((function(){return o.t(a,7)}))}a.keys=function(){return Object.keys(e)},a.id=479,s.exports=a}},[[1211,0,1,3,5]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/options.04620e00.js b/plugins/saladict-ztools/ext-saladic/assets/options.04620e00.js new file mode 100644 index 00000000..e6579e0a --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/options.04620e00.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[13,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117],{1:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p}));var a=n(81),o=n(39),r=n(10);const i=()=>{},c=new WeakMap,s=new WeakMap,l=new WeakMap,d={sync:{clear:h,remove:m,get:f,set:g,addListener:b,removeListener:y,createStream:w,get __storageArea__(){return"sync"}},local:{clear:h,remove:m,get:f,set:g,addListener:b,removeListener:y,createStream:w,get __storageArea__(){return"local"}},clear:h,addListener:b,removeListener:y,createStream:w,get __storageArea__(){return"all"}},u={send:O,addListener:_,removeListener:k,createStream:C,get __self__(){return!1},self:{initClient:j,initServer:function(){window.pageId="background page";const e=/^\[\[(.+)\]\]$/;browser.runtime.onMessage.addListener((t,n)=>{if(!t||!t.type)return;if("PAGE_INFO"===t.type)return Promise.resolve(function(e){const t={pageId:"",faviconURL:"",pageTitle:"",pageURL:""},n=e.tab;n?(t.pageId=n.id||"",n.favIconUrl&&(t.faviconURL=n.favIconUrl),n.url&&(t.pageURL=n.url),n.title&&(t.pageTitle=n.title)):(t.pageId="popup",e.url&&!e.url.startsWith("http")&&(t.faviconURL="https://saladict.crimx.com/favicon.ico"));return t}(n));const a=e.exec(t.type);if(a){t.type=a[1];const e=n.tab&&n.tab.id;return e?O(e,t):O(t)}})},send:async function e(t){const n=x("message.self.send",e);try{return void 0===window.pageId&&await j(),browser.runtime.sendMessage(Object.assign({},t,{__pageId__:window.pageId,type:`[[${t.type}]]`})).then(e=>E("message.self.send",[t],e,n)).catch(e=>{throw v("message.self.send",[t],e,n)})}catch(e){throw v("message.self.send",[t],e,n)}},addListener:_,removeListener:k,createStream:C,get __self__(){return!0}}};async function p(e,t){const n="string"==typeof e?{url:e,self:t}:e,a=!1!==n.unique,o=n.self?browser.runtime.getURL(n.url):n.url;if(a){const e=await browser.tabs.query({url:o}).catch(()=>[]);if(e.length>0){const{index:t,windowId:n}=e[0];return"function"==typeof browser.tabs.highlight&&await browser.tabs.highlight({tabs:t,windowId:n}),void await browser.windows.update(n,{focused:!0})}}await browser.tabs.create({url:o,active:!1!==n.active})}function h(){return"all"===this.__storageArea__?Promise.all([browser.storage.local.clear(),browser.storage.sync.clear()]).then(i):browser.storage[this.__storageArea__].clear()}function m(e){return browser.storage[this.__storageArea__].remove(e)}function f(...e){return browser.storage[this.__storageArea__].get(...e)}function g(e){return browser.storage[this.__storageArea__].set(e)}function b(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}let a=l.get(n);a||(a=new Map,l.set(n,a));const o=this.__storageArea__+t;let r=a.get(o);return r||(r=(e,a)=>{"all"!==this.__storageArea__&&a!==this.__storageArea__||t&&!(t in e)||n(e,a)},a.set(o,r)),browser.storage.onChanged.addListener(r)}function y(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}const a=l.get(n);if(a){if(!t)return a.forEach(e=>{browser.storage.onChanged.removeListener(e)}),void l.delete(n);{const e=this.__storageArea__+t,o=a.get(e);if(o)return browser.storage.onChanged.removeListener(o),a.delete(e),void(a.size<=0&&l.delete(n))}}browser.storage.onChanged.removeListener(n)}function w(e){if(!e)throw new Error("Missing key");return Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)).pipe(Object(o.a)(t=>Object.prototype.hasOwnProperty.call(Array.isArray(t)?t[0]:t,e)),Object(r.a)(t=>Array.isArray(t)?t[0][e]:t[e]))}function x(e,t){const n=new Error(`[${e}] call stack`),a=Error.captureStackTrace;return a&&a(n,t),n}function v(e,t,n,a){const o=n&&"object"==typeof n&&n.runtimeLastError instanceof Error?n.runtimeLastError:n instanceof Error?n:new Error(String(n||"Unknown error")),r=1===t.length?t[0]:t[1],i=1===t.length?"runtime":"tab "+t[0],c=new Error(`[${e}] runtime.lastError while sending "${r.type}" to ${i}: ${o.message}`);return c.name="MessageRuntimeError",c.cause=o,c.runtimeLastError=o,c.callContext=a,c.stack=[`${c.name}: ${c.message}`,"","Runtime error stack:",o.stack||o.message,"","Message call stack:",a.stack||a.message].join("\n"),c}function E(e,t,n,a){if("PAGE_INFO"===(1===t.length?t[0]:t[1]).type){const o=n;if(!o||"object"!=typeof o||null==o.pageId)throw v(e,t,new Error('Invalid response for "PAGE_INFO": expected an object with pageId, received '+String(n)),a)}return n}function O(...e){const t=x("message.send",O);return(1===e.length?browser.runtime.sendMessage(e[0]):browser.tabs.sendMessage(e[0],e[1])).then(n=>E("message.send",e,n,t)).catch(n=>{throw v("message.send",e,n,t)})}function _(...e){this.__self__&&void 0===window.pageId&&j().catch(console.error);const t=this.__self__?s:c,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1];let o=t.get(a);o||(o=new Map,t.set(a,o));let r=o.get(n||"__DEFAULT_MSGTYPE__");return r||(r=(e,t)=>{if(e&&(this.__self__?window.pageId===e.__pageId__:!e.__pageId__)&&(null==n||e.type===n))return a(e,t)},o.set(n||"__DEFAULT_MSGTYPE__",r)),browser.runtime.onMessage.addListener(r)}function k(...e){const t=this.__self__?s:c,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1],o=t.get(a);if(o){if(!n)return o.forEach(e=>browser.runtime.onMessage.removeListener(e)),void t.delete(a);{const e=o.get(n);if(e)return browser.runtime.onMessage.removeListener(e),o.delete(n),void(o.size<=0&&t.delete(a))}}browser.runtime.onMessage.removeListener(a)}function C(e){return(e?Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)):Object(a.a)(e=>this.addListener(e),e=>this.removeListener(e))).pipe(Object(r.a)(e=>Array.isArray(e)?e[0]:e))}function j(){return void 0===window.pageId?u.send({type:"PAGE_INFO"}).then(e=>{const{pageId:t,faviconURL:n,pageTitle:a,pageURL:o}=e;return window.pageId=t,window.faviconURL=n,a&&(window.pageTitle=a),o&&(window.pageURL=o),t}):Promise.resolve(window.pageId)}},101:function(e,t,n){"use strict";n.d(t,"g",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return m}));var a=n(1),o=n(505),r=n(509),i=n(148);var c=n(274);async function s(e,t){let{syncConfig:n}=await a.c.sync.get("syncConfig");n||(n={}),n[e]=t,await a.c.sync.set({syncConfig:n})}async function l(e){e?await s(e,null):await a.c.sync.remove("syncConfig")}async function d(e,t){await async function(e,t){return(await Object(i.a)()).syncmeta.put({id:e,json:t})}(e,JSON.stringify(t))}async function u(e){const t=await async function(e){return(await Object(i.a)()).syncmeta.where("id").equals(e).first(e=>e&&e.json).catch(e=>{!1})}(e);if(t)return JSON.parse(t)}async function p(e){await Object(r.c)({area:"notebook",words:e})}async function h(){return(await Object(o.a)({area:"notebook"})).words||[]}async function m(e,t,n="",a=""){const{i18n:o}=await c.a.getInstance();await o.loadNamespaces("sync");const r="string"==typeof t?t:t.message,i=`sync:${e}.error.${r}`,s=o.exists(i)?o.t(i):"Unknown error: "+r;browser.notifications.create({type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict "+o.t(`sync:${e}.title`),message:n+s+a,eventTime:Date.now()+2e4,priority:2})}},103:function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return N})),n.d(t,"c",(function(){return D}));var a=n(145),o=n.n(a),r=n(631),i=n.n(r),c=n(0),s=n.n(c),l=n(297),d=n(122),u=n(84),p=n(183),h=n(10),m=n(182),f=n(22),g=n.n(f),b=n(154),y=n.n(b),w=n(239),x=n.n(w),v=n(256),E=n(29),O=n(33),_=n(9),k=n(2),C=n(1),j=n(71),S=n(211),A=n(193),M=n(225);const I=()=>{const{t:e}=Object(_.d)("common"),t=Object(v.a)(A.a,"idle");return s.a.createElement(u.a,{type:"primary",htmlType:"submit",disabled:"uploading"===t},e("common:save"))};n(1186);const T=s.a.forwardRef((e,t)=>{const{items:n,hideFooter:a,...r}=e,f=Object(S.c)(),{t:b,i18n:w,ready:T}=Object(_.d)(["options","common"]),N=Object(j.c)(e=>({config:e.config,profile:e.activeProfile}),x.a),D=Object(A.b)();const{initialValues:z,hideFieldFns:L}=Object(c.useMemo)(()=>function e(t,n={initialValues:{},hideFieldFns:{}}){for(const a of t)if(a.items)e(a.items,n);else if(a.hide&&(n.hideFieldFns[a.key||a.name]=a.hide),a.name){const e=g()(N,a.name,N);e!==N&&(n.initialValues[a.name]=e)}return n}(n),[n]),[P,B]=Object(v.a)(e=>e.pipe(Object(h.a)(e=>y()(L,t=>t(e))),Object(m.a)(x.a)),()=>y()(L,e=>e(z)));const R=Object(c.useMemo)(()=>function e(t){return t.map(t=>{const n=t.key||t.name,a=n.startsWith("profile.");if(void 0===t.label&&T&&w.exists("options:"+n)&&(t.label=a?s.a.createElement(l.a,{title:b("profile.opt.item_extra"),className:"saladict-form-profile-title"},s.a.createElement("span",null,s.a.createElement(i.a,null),b(n))):b(n)),void 0===t.help){const e=`options:${n}_help`;T&&w.exists(e)&&(t.help=b(e))}if(void 0===t.extra){const e=`options:${n}_extra`;T&&w.exists(e)&&(t.extra=b(e))}let{className:o,hide:r,children:c,items:u,...p}=t;return P[n]&&(o=o?o+" saladict-hide":"saladict-hide"),s.a.createElement(d.a.Item,{key:n,...p,className:o},u?e(u):c)})}(n),[T,w.language,P,n]);return s.a.createElement(d.a,{...f,...r,initialValues:z,onFinish:D,onValuesChange:(t,n)=>{Object(M.a)(!0),B(n),e.onValuesChange&&e.onValuesChange(t,n)},ref:t},R,!a&&s.a.createElement(d.a.Item,{...S.a,className:"saladict-form-btns"},s.a.createElement(I,null),s.a.createElement(u.a,{onClick:()=>{k.d?p.a.info({content:b("firefox_shortcuts")}):Object(C.b)("chrome://extensions/shortcuts")}},b("shortcuts")),s.a.createElement(u.a,{type:"primary",danger:!0,onClick:()=>{p.a.confirm({title:b("config.opt.reset_confirm"),icon:s.a.createElement(o.a,null),okType:"danger",onOk:async()=>{await Object(E.e)(),await Object(O.k)(),Object(M.a)(!1)}})}},b("config.opt.reset"))))}),N=e=>(e||0)+"%",D=e=>(e||0)+"px"},1046:function(e,t,n){e.exports=n(1357)},107:function(e,t,n){"use strict";function a(){return Date.now().toString().slice(6)+Math.random().toString().slice(2,8)}n.d(t,"a",(function(){return a}))},1087:function(e,t,n){},11:function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l}));var a=n(1);function o(e){return e?{date:e.date||Date.now(),text:e.text||"",context:e.context||"",title:e.title||"",url:e.url||"",favicon:e.favicon||"",trans:e.trans||"",note:e.note||""}:{date:Date.now(),text:"",context:"",title:"",url:"",favicon:"",trans:"",note:""}}function r(e){return a.a.send({type:"IS_IN_NOTEBOOK",payload:e}).catch((t=!1,e=>t));var t}async function i(e,t){await a.a.send({type:"SAVE_WORD",payload:{area:e,word:t}})}async function c(e,t){await a.a.send({type:"SYNC_SERVICE_DOWNLOAD"}),await a.a.send({type:"DELETE_WORDS",payload:{area:e,dates:t}})}function s(e,t){return a.a.send({type:"GET_WORDS_BY_TEXT",payload:{area:e,text:t}})}function l(e,t){return a.a.send({type:"GET_WORDS",payload:{area:e,...t}})}},1178:function(e,t,n){},1181:function(e,t,n){},1184:function(e,t,n){},1185:function(e,t,n){var a={"./BlackWhiteList":949,"./BlackWhiteList.tsx":949,"./ContextMenus":743,"./ContextMenus/":743,"./ContextMenus/AddModal":753,"./ContextMenus/AddModal.tsx":753,"./ContextMenus/EditeModal":754,"./ContextMenus/EditeModal.tsx":754,"./ContextMenus/index":743,"./ContextMenus/index.tsx":743,"./DictAuths":952,"./DictAuths.tsx":952,"./DictPanel":953,"./DictPanel.tsx":953,"./Dictionaries":744,"./Dictionaries/":744,"./Dictionaries/AllDicts":756,"./Dictionaries/AllDicts.tsx":756,"./Dictionaries/DictTitle":552,"./Dictionaries/DictTitle/":552,"./Dictionaries/DictTitle/_style.scss":954,"./Dictionaries/DictTitle/index":552,"./Dictionaries/DictTitle/index.tsx":552,"./Dictionaries/EditModal":755,"./Dictionaries/EditModal.tsx":755,"./Dictionaries/index":744,"./Dictionaries/index.tsx":744,"./General":957,"./General.tsx":957,"./ImportExport":958,"./ImportExport.tsx":958,"./Notebook":745,"./Notebook/":745,"./Notebook/index":745,"./Notebook/index.tsx":745,"./Notebook/sync-services/ankiconnect":886,"./Notebook/sync-services/ankiconnect.tsx":886,"./Notebook/sync-services/eudic":890,"./Notebook/sync-services/eudic.tsx":890,"./Notebook/sync-services/shanbay":891,"./Notebook/sync-services/shanbay.tsx":891,"./Notebook/sync-services/webdav":892,"./Notebook/sync-services/webdav.tsx":892,"./PDF":959,"./PDF.tsx":959,"./Permissions":960,"./Permissions.tsx":960,"./Popup":961,"./Popup.tsx":961,"./Privacy":962,"./Privacy.tsx":962,"./Profiles":746,"./Profiles/":746,"./Profiles/EditNameModal":670,"./Profiles/EditNameModal.tsx":670,"./Profiles/index":746,"./Profiles/index.tsx":746,"./Pronunciation":963,"./Pronunciation.tsx":963,"./QuickSearch":747,"./QuickSearch/":747,"./QuickSearch/StandaloneModal":757,"./QuickSearch/StandaloneModal.tsx":757,"./QuickSearch/TitlebarOffsetModal":758,"./QuickSearch/TitlebarOffsetModal.tsx":758,"./QuickSearch/index":747,"./QuickSearch/index.tsx":747,"./SearchModes":748,"./SearchModes/":748,"./SearchModes/index":748,"./SearchModes/index.tsx":748,"./SearchModes/searchMode":511,"./SearchModes/searchMode.tsx":511};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=1185},1186:function(e,t,n){},1195:function(e,t,n){},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i}));var a=n(20);async function o(e,t,{options:n,options_sel:o},r,i){("none"===n.keepLF||"pdf"===n.keepLF&&!i.isPDF||"webpage"===n.keepLF&&i.isPDF)&&(t=t.replace(/\n+/g," "));let c=i.sl;c||(Object(a.g)(t)?c="ja":Object(a.h)(t)&&(c="ko")),c||(c=await e.detect(t));let s="";return i.tl?s=i.tl:"default"===n.tl?o.tl.includes(r.langCode)&&(s=r.langCode):s=n.tl,s||(s=o.tl.find(e=>"default"!==e)||"en"),c===s&&(i.tl?i.sl||(c="auto"):s="default"===n.tl2?s!==r.langCode?r.langCode:"en"!==s?"en":o.tl.find(e=>"default"!==e&&e!==s)||"en":n.tl2),{sl:c,tl:s,text:t}}function r(e,t,n,a){return{lang:"11111111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:320,selectionWC:{min:1,max:999999999999999},...t,options:{keepLF:"webpage",slInitial:"collapse",tl:"default",tl2:"default",...n},options_sel:{keepLF:["none","all","webpage","pdf"],slInitial:["collapse","hide","full"],tl:["default",...e],tl2:["default",...e],...a}}}function i(e,t){const n=[{value:"auto",label:"%t(content:machineTrans.auto)"}];for(const e of t)n.push({value:e,label:`${e} %t(langcode:${e})`});const a=[{key:"sl",value:e.result.sl,title:"%t(content:machineTrans.sl)",options:n},{key:"tl",value:e.result.tl,title:"%t(content:machineTrans.tl)",options:n},{key:"copySrc",value:"copySrc",label:"%t(content:machineTrans.copySrc)"},{key:"copyTrans",value:"copyTrans",label:"%t(content:machineTrans.copyTrans)"}];return"hide"===e.result.slInitial&&a.push({key:"showSl",value:"",label:"%t(content:machineTrans.showSl)"}),{...e,catalog:a}}},1231:function(e,t,n){var a={"./baidu/auth.ts":171,"./caiyun/auth.ts":172,"./sogou/auth.ts":173,"./tencent/auth.ts":174,"./youdaotrans/auth.ts":175};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=1231},1232:function(e,t,n){},1235:function(e,t,n){var a={"./ahdict/engine":818,"./baidu/engine":353,"./bing/engine":832,"./caiyun/engine":833,"./cambridge/engine":834,"./cobuild/engine":835,"./etymonline/engine":836,"./eudic/engine":837,"./google/engine":838,"./guoyu/engine":597,"./hjdict/engine":841,"./liangan/engine":842,"./longman/engine":843,"./merriamwebster/engine":844,"./mojidict/engine":845,"./naver/engine":846,"./oaldict/engine":847,"./renren/engine":848,"./shanbay/engine":905,"./sogou/engine":849,"./tencent/engine":850,"./urban/engine":854,"./vocabulary/engine":855,"./weblio/engine":856,"./weblioejje/engine":857,"./wikipedia/engine":858,"./youdao/engine":859,"./youdaotrans/engine":860,"./zdic/engine":906};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=1235},1250:function(e,t,n){var a={"./ankiconnect.tsx":886,"./eudic.tsx":890,"./shanbay.tsx":891,"./webdav.tsx":892};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=1250},1251:function(e,t,n){},1357:function(e,t,n){"use strict";n.r(t),window.__SALADICT_INTERNAL_PAGE__=!0,window.__SALADICT_OPTIONS_PAGE__=!0,window.__SALADICT_LAST_SEARCH__="";n(504);var a=n(0),o=n.n(a),r=n(603),i=n(506),c=n(23),s=n(142),l=n(1367),d=n(299),u=n(212),p=n(71),h=n(80),m=n(271),f=n(9),g=n(768),b=n(225),y=n(1008),w=n.n(y),x=n(1007),v=n.n(x),E=n(772),O=n.n(E),_=n(1006),k=n.n(_),C=n(1005),j=n.n(C),S=n(1004),A=n.n(S),M=n(1003),I=n.n(M),T=n(1002),N=n.n(T),D=n(1001),z=n.n(D),L=n(1e3),P=n.n(L),B=n(999),R=n.n(B),F=n(998),H=n.n(F),U=n(997),W=n.n(U),q=n(996),Q=n.n(q),G=n(995),Y=n.n(G),$=n(994),K=n.n($),V=n(145),Z=n.n(V),J=n(1370),X=n(611),ee=n(183),te=n(256),ne=n(5),ae=n.n(ne),oe=n(182),re=n(404),ie=n(563);n(1087);const ce=e=>{const{t:t}=Object(f.d)("options"),n=Object(b.b)(),[r,i]=Object(te.a)(e=>e.pipe(Object(oe.a)(),Object(re.a)(500),Object(ie.a)(e=>(e+1)%1e4,0))),[c,s]=Object(a.useState)();return o.a.createElement(J.a,{key:r,onChange:s},o.a.createElement(l.a,null,o.a.createElement(l.a.Sider,{className:ae()("entry-sidebar","fancy-scrollbar",{isAffixed:c}),width:180,breakpoint:"lg",collapsible:!0,trigger:null,onCollapse:i},o.a.createElement(X.a,{mode:"inline",selectedKeys:[e.entry],onSelect:({key:a})=>{const r=()=>{e.onChange(""+a),Object(b.a)(!1)};n.value?ee.a.confirm({title:t("unsave_confirm"),icon:o.a.createElement(Z.a,null),okType:"danger",onOk:r}):r()}},o.a.createElement(X.a.Item,{key:"General"},o.a.createElement(K.a,null),o.a.createElement("span",null,t("nav.General"))),o.a.createElement(X.a.Item,{key:"Notebook"},o.a.createElement(Y.a,null),o.a.createElement("span",null,t("nav.Notebook"))),o.a.createElement(X.a.Item,{key:"Profiles"},o.a.createElement(Q.a,null),o.a.createElement("span",null,t("nav.Profiles"))),o.a.createElement(X.a.Item,{key:"DictPanel"},o.a.createElement(W.a,null),o.a.createElement("span",null,t("nav.DictPanel"))),o.a.createElement(X.a.Item,{key:"SearchModes"},o.a.createElement(H.a,null),o.a.createElement("span",null,t("nav.SearchModes"))),o.a.createElement(X.a.Item,{key:"Dictionaries"},o.a.createElement(R.a,null),o.a.createElement("span",null,t("nav.Dictionaries"))),o.a.createElement(X.a.Item,{key:"DictAuths"},o.a.createElement(P.a,null),o.a.createElement("span",null,t("nav.DictAuths"))),o.a.createElement(X.a.Item,{key:"Popup"},o.a.createElement(z.a,null),o.a.createElement("span",null,t("nav.Popup"))),o.a.createElement(X.a.Item,{key:"QuickSearch"},o.a.createElement(N.a,null),o.a.createElement("span",null,t("nav.QuickSearch"))),o.a.createElement(X.a.Item,{key:"Pronunciation"},o.a.createElement(I.a,null),o.a.createElement("span",null,t("nav.Pronunciation"))),o.a.createElement(X.a.Item,{key:"PDF"},o.a.createElement(A.a,null),o.a.createElement("span",null,t("nav.PDF"))),o.a.createElement(X.a.Item,{key:"ContextMenus"},o.a.createElement(j.a,null),o.a.createElement("span",null,t("nav.ContextMenus"))),o.a.createElement(X.a.Item,{key:"BlackWhiteList"},o.a.createElement(k.a,null),o.a.createElement("span",null,t("nav.BlackWhiteList"))),o.a.createElement(X.a.Item,{key:"ImportExport"},o.a.createElement(O.a,null),o.a.createElement("span",null,t("nav.ImportExport"))),o.a.createElement(X.a.Item,{key:"Privacy"},o.a.createElement(v.a,null),o.a.createElement("span",null,t("nav.Privacy"))),o.a.createElement(X.a.Item,{key:"Permissions"},o.a.createElement(w.a,null),o.a.createElement("span",null,t("nav.Permissions")))))))},se=o.a.memo(ce);var le=n(33),de=(n(1010),n(297),n(1371)),ue=n(794);const pe=[{name:"yipanhuasheng",href:"https://github.com/crimx/ext-saladict/commits?author=yipanhuasheng",locale:"yipanhuasheng"},{name:"zhtw2013",href:"https://github.com/crimx/ext-saladict/commits?author=zhtw2013",locale:"trans_tw"},{name:"lwdgit",href:"https://github.com/crimx/ext-saladict/commits?author=lwdgit",locale:"shanbay"},{name:"Wekey",href:"https://weibo.com/925515171?is_hot=1",locale:"naver"},{name:"caerlie",href:"https://github.com/caerlie",locale:"weblio"},{name:"stockyman",href:"https://github.com/stockyman",locale:"trans_tw"}];const he=o.a.memo(()=>{const{t:e}=Object(f.d)("options");return o.a.createElement(ue.b,{dataSource:pe.map((t,n)=>o.a.createElement("div",{key:n},o.a.createElement("a",{href:t.href,rel:"nofollow noopener noreferrer",target:"_blank"},t.name)," ",e("headInfo.acknowledgement."+t.locale))),renderItem:e=>o.a.createElement(ue.b.Item,null,e)})});n(1178);const me=()=>{const{t:e}=Object(f.d)("options");return o.a.createElement("ul",{className:"head-info"},null,o.a.createElement("li",{className:"head-info-bubble-wrap head-info-unin"},o.a.createElement(de.a,{placement:"bottomRight",content:o.a.createElement(he,null)},o.a.createElement("a",{href:"https://github.com/crimx/ext-saladict/wiki#acknowledgement",onClick:ge},e("headInfo.acknowledgement.title")))),o.a.createElement("li",null,o.a.createElement("a",{href:"https://saladict.crimx.com/manual.html",target:"_blank",rel:"nofollow noopener noreferrer"},e("headInfo.instructions"))),o.a.createElement("li",null,o.a.createElement("a",{href:"https://saladict.crimx.com/support.html",target:"_blank",rel:"nofollow noopener noreferrer"},"💪",e("headInfo.donate"))),o.a.createElement("li",null,o.a.createElement("a",{href:"https://github.com/crimx/ext-saladict/issues",target:"_blank",rel:"nofollow noopener noreferrer"},e("headInfo.report_issue"))))},fe=o.a.memo(me);function ge(e){e.preventDefault()}n(1181);const be=e=>{const{t:t,ready:n}=Object(f.d)(["options","common"]),{profileId:r,profileIDList:i}=Object(p.c)(e=>({profileId:e.activeProfile.id,profileIDList:e.profiles}),c.c),s=Object(a.useMemo)(()=>"v"+browser.runtime.getManifest().version,[]),d=Object(a.useMemo)(()=>{var e;return n?`「 ${Object(le.h)((null===(e=i.find(({id:e})=>e===r))||void 0===e?void 0:e.name)||"",t)} 」`:""},[r,i,n]);return o.a.createElement(l.a.Header,null,o.a.createElement("div",{className:"options-header"},o.a.createElement("div",{className:"options-header-title"},o.a.createElement("h1",null,t("title")),o.a.createElement("span",null,s)),o.a.createElement("a",{href:"/?menuselected=Profiles",onClick:t=>{t.preventDefault(),t.stopPropagation(),e.openProfilesTab("Profiles")}},d),o.a.createElement(fe,null)))},ye=o.a.memo(be);var we=n(1011),xe=n.n(we),ve=n(1);const Ee=()=>(Object(a.useEffect)(()=>{ve.a.self.send({type:"CLOSE_PANEL"})},[]),o.a.createElement("div",{style:{height:"calc(100vh - 160px)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},o.a.createElement(xe.a,{style:{fontSize:80,color:"#eb2f96",marginBottom:10}}),o.a.createElement("h1",null,"Entry Not Found")));var Oe=n(94),_e=n(84),ke=n(11),Ce=n(31),je=n(42),Se=n(3);async function Ae(){const e=await Object(Ce.a)("https://www.merriam-webster.com/word-of-the-day"),t=Object(Se.g)(e,"title").match(/Word of the Day: (.+) \| Merriam-Webster/);return t&&t[1]||Object(Se.j)()}async function Me(){const e=await Object(Ce.a)("https://www.dictionary.com/wordoftheday/"),t=Object(Se.g)(e,"title").match(/Get the Word of the Day - (.+) \| Dictionary\.com/);return t&&t[1]||Object(Se.j)()}var Ie=n(675),Te=n(1012),Ne=n.n(Te);const De=e=>o.a.createElement(Ne.a,{component:()=>o.a.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"currentColor"},o.a.createElement("g",{fillRule:"evenodd"},o.a.createElement("g",{fillRule:"nonzero"},o.a.createElement("path",{d:"M7.02 3.635l12.518 12.518a1.863 1.863 0 010 2.635l-1.317 1.318a1.863 1.863 0 01-2.635 0L3.068 7.588A2.795 2.795 0 117.02 3.635zm2.09 14.428a.932.932 0 110 1.864.932.932 0 010-1.864zm-.043-9.747L7.75 9.635l9.154 9.153 1.318-1.317-9.154-9.155zM3.52 12.473c.514 0 .931.417.931.931v.932h.932a.932.932 0 110 1.864h-.932v.931a.932.932 0 01-1.863 0l-.001-.931h-.93a.932.932 0 010-1.864h.93v-.932c0-.514.418-.931.933-.931zm15.374-3.727a1.398 1.398 0 110 2.795 1.398 1.398 0 010-2.795zM4.385 4.953a.932.932 0 000 1.317l2.046 2.047L7.75 7 5.703 4.953a.932.932 0 00-1.318 0zM14.701.36a.932.932 0 01.931.932v.931h.932a.932.932 0 010 1.864h-.933l.001.932a.932.932 0 11-1.863 0l-.001-.932h-.93a.932.932 0 110-1.864h.93v-.931a.932.932 0 01.933-.932z"})))),...e});n(1184);const ze=async function(){try{return await Object(je.a)([Ae(),Me()])}catch(e){}return"salad"}(),Le=()=>{const{t:e}=Object(f.d)("options"),t=!Object(Ie.a)(),n=Object(c.d)();return o.a.createElement(Oe.a,{classNames:"btn-preview-fade",mountOnEnter:!0,unmountOnExit:!0,appear:!0,in:t,timeout:500},o.a.createElement("div",null,o.a.createElement(_e.a,{className:"btn-preview",title:e("previewPanel"),shape:"circle",size:"large",icon:o.a.createElement(De,null),onClick:async e=>{const{x:t,width:a}=e.currentTarget.getBoundingClientRect();n({type:"OPEN_PANEL",payload:{x:t+a,y:80}}),n({type:"SEARCH_START",payload:{word:Object(ke.e)({text:await ze})}})}})))},Pe=o.a.memo(Le),Be=o.a.memo(({entry:e})=>o.a.createElement(n(1185)("./"+e)[e])),Re=()=>{const e=Object(a.useContext)(f.a),{t:t,ready:n}=Object(f.d)("options"),[r,y]=Object(a.useState)(Fe),w=Object(b.b)(),x=Object(a.useRef)(!1),{analytics:v,darkMode:E}=Object(p.c)(e=>({analytics:e.config.analytics,darkMode:e.config.darkMode}),c.c);return Object(a.useEffect)(()=>{if(Fe()!==r){const{protocol:e,host:t,pathname:n}=window.location,a=`${e}//${t}${n}?menuselected=${r}`;window.history.pushState({key:r},"",a)}v&&Object(h.b)("/options/"+r)},[r,v]),Object(a.useEffect)(()=>{window.addEventListener("beforeunload",e=>{w.value&&(e.preventDefault(),e.returnValue=t("unsave_confirm"))})},[]),Object(a.useEffect)(()=>{if(n&&!x.current){x.current=!0;const e=new URL(document.URL).searchParams.get("missing_permission");e&&s.a.warn(t("permissions.missing",{permission:t("permissions."+e)}),20)}},[Boolean(n)]),o.a.createElement(o.a.Fragment,null,o.a.createElement(i.a,null,n&&o.a.createElement("title",null,`${t("title")} - ${t("nav."+r)}`)),o.a.createElement(ye,{openProfilesTab:y}),o.a.createElement(l.a,{style:{maxWidth:1400,margin:"0 auto"},className:"main-entry"+(E?" dark-mode":"")},o.a.createElement(d.a,null,o.a.createElement(u.a,null,o.a.createElement(se,{entry:r,onChange:y})),o.a.createElement(u.a,{style:{flex:"1"}},o.a.createElement(l.a,{style:{padding:24}},o.a.createElement(l.a.Content,{"data-option-content":r,style:{padding:24,backgroundColor:"var(--opt-background-color)"}},o.a.createElement(g.a.Provider,{value:y},o.a.createElement(m.a,{key:r+e,error:Ee},n&&o.a.createElement(Be,{entry:r}))))))),o.a.createElement(Pe,null)))};function Fe(){return new URL(document.URL).searchParams.get("menuselected")||"General"}n(1251);document.title="Saladict Options",Object(r.a)(()=>o.a.createElement(Re,null))},138:function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return f}));var a=n(0),o=n.n(a),r=n(94),i=n(125),c=n(30),s=n(256),l=n(136),d=n(112),u=n(92),p=n(140),h=n(21);const m=o.a.createContext({current:null}),f=e=>{const t=Object(a.useContext)(m),n=Object(a.useRef)(null),f=Object(a.useRef)(null),[g,b]=Object(i.a)(u.c),[y,w]=Object(i.a)(u.d),[x,v]=Object(i.a)(u.b),[E,O]=Object(i.a)(u.a),[_,k]=Object(i.a)(c.b),C=Object(s.a)(Object(l.a)(()=>Object(d.a)(b,w)),!1),j=Object(s.a)(Object(l.a)(()=>Object(d.a)(v,O,k)),!1),S=C||j,[A,M]=Object(a.useState)(()=>null==e.left?{top:null==e.top?40:e.top,left:"50%",transform:"translateX(-50%)"}:{top:null==e.top?40:e.top,left:e.left});return o.a.createElement("div",{className:"hoverBox-Container",ref:n},o.a.createElement(e.Button,{onKeyDown:e=>{switch(e.key){case"ArrowDown":if(e.preventDefault(),e.stopPropagation(),S){if(f.current){const e=f.current.firstElementChild;e&&e.focus()}}else _(!0);break;case"Tab":if(!e.shiftKey&&S&&f.current){e.preventDefault(),e.stopPropagation();const t=f.current.firstElementChild;t&&t.focus()}}},onMouseOver:g,onMouseOut:g,onClick:()=>{e.onBtnClick&&!1===e.onBtnClick()||y()}}),o.a.createElement(r.a,{classNames:"csst-hoverBox",in:S,timeout:100,mountOnEnter:!0,unmountOnExit:!0,onEnter:()=>{if(t.current&&n.current){const a=t.current.getBoundingClientRect(),o=n.current.getBoundingClientRect();M({top:o.y-a.y+(null==e.top?40:e.top),left:o.x-a.x+(null==e.left?-Math.floor(o.width/2):e.left)})}},onExited:()=>e.onHeightChanged&&e.onHeightChanged(0)},()=>{const a=o.a.createElement("div",{className:"hoverBox-FloatBox",style:A},o.a.createElement(p.a,{ref:f,compact:e.compact,list:e.items,onFocus:E,onBlur:E,onMouseOver:x,onMouseOut:x,onArrowUpFirst:e=>e.lastElementChild.focus(),onArrowDownLast:e=>e.firstElementChild.focus(),onSelect:e.onSelect,onHeightChanged:e.onHeightChanged,onClose:()=>_(!1)}));return t.current&&n.current?Object(h.createPortal)(a,t.current):a}))}},140:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),o=n.n(a),r=n(189),i=n(5),c=n.n(i);const s=o.a.forwardRef((e,t)=>{const[n,i]=Object(a.useState)(0),[s,l]=Object(a.useState)(0),d=Object(a.useCallback)((t,a)=>{l(t),i(a),e.onHeightChanged&&a!==n&&e.onHeightChanged(a)},[e.onHeightChanged]);return o.a.createElement("div",{className:c()("floatBox-Container",{"floatBox-compact":e.compact}),style:{width:s,height:n},onMouseOver:e.onMouseOver,onMouseOut:e.onMouseOut},o.a.createElement("div",{className:"floatBox-Measure"},o.a.createElement(r.ResizeReporter,{reportInit:!0,onSizeChanged:d}),e.list?o.a.createElement("div",{key:"box",ref:t,className:"floatBox"},e.list.map((function(t){if(t.options)return o.a.createElement("select",{key:t.key,className:"floatBox-Item floatBox-Select","data-key":t.key,defaultValue:t.value,onFocus:e.onFocus,onBlur:e.onBlur,onChange:u},t.title&&o.a.createElement("option",{disabled:!0},t.title),t.options.map(e=>o.a.createElement("option",{key:e.value,value:e.value},e.label)));return o.a.createElement("button",{key:t.key,className:"floatBox-Item floatBox-Btn","data-key":t.key,"data-value":t.value,onFocus:e.onFocus,onBlur:e.onBlur,onClick:p,onKeyDown:h},t.label)}))):o.a.createElement("div",{key:"loading",className:"lds-ellipsis"},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))));function u(t){if(e.onSelect){const{dataset:{key:n},value:a}=t.currentTarget;e.onSelect(n,a)}}function p(t){if(e.onSelect){const{key:n,value:a}=t.currentTarget.dataset;e.onSelect(n,a)}}function h(t){if("ArrowDown"===t.key){t.preventDefault(),t.stopPropagation();const n=t.currentTarget.nextSibling;n?n.focus():e.onArrowDownLast&&e.onArrowDownLast(t.currentTarget.parentElement)}else if("ArrowUp"===t.key){t.preventDefault(),t.stopPropagation();const n=t.currentTarget.previousSibling;n?n.focus():e.onArrowUpFirst&&e.onArrowUpFirst(t.currentTarget.parentElement)}else"Escape"===t.key&&(t.preventDefault(),t.stopPropagation(),e.onClose&&e.onClose(t.currentTarget.parentElement))}})},146:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(1);async function o(e,t){try{return await a.a.send(e,t)}catch(e){if(function(e){const t=e&&"object"==typeof e&&e.runtimeLastError instanceof Error?e.runtimeLastError:e instanceof Error?e:null;return!(!t||!/Could not establish connection|Receiving end does not exist/.test(t.message))}(e))return;throw e}}},147:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return p}));var a=n(0),o=n.n(a),r=n(21),i=n.n(r),c=n(94),s=n(223),l=n(2);const d={enter:400,exit:100,appear:400},u={all:"initial"},p=e=>{const{id:t,head:n,shadowRootClassName:r,innerRootClassName:p,panelCSS:h,onEnter:m,onExited:f,...g}=e,b=Object(a.useMemo)(()=>{let e=document.getElementById(t);return e||(e=document.createElement("div"),e.id=t,e.className="saladict-div "+(r||l.a)),e},[r]);return Object(a.useEffect)(()=>()=>{b.parentNode&&b.remove()},[]),i.a.createPortal(o.a.createElement(s.a.div,{className:r||l.a},o.a.createElement("div",{className:p,style:u},n,h?o.a.createElement("style",null,h):null,o.a.createElement(c.a,{classNames:"shadowPortal",mountOnEnter:!0,unmountOnExit:!0,appear:!0,timeout:d,...g,onEnter:(...e)=>{if(b.parentNode||document.documentElement.appendChild(b),m)return m(...e)},onExited:(...e)=>{if(b.parentNode&&b.remove(),f)return f(...e)}}))),b)};t.b=p},148:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(782);class o extends a.a{constructor(){super("SaladictWords"),this.notebook=void 0,this.history=void 0,this.syncmeta=void 0,this.version(1).stores({notebook:"date,text,context,url",history:"date,text,context,url",syncmeta:"id"}),this.notebook=this.table("notebook"),this.history=this.table("history"),this.syncmeta=this.table("syncmeta")}}let r;async function i(){return r||(r=new o),r.isOpen()||await r.open(),r}},165:function(e,t,n){"use strict";n.d(t,"b",(function(){return b}));var a=n(83),o=n(87),r=n(77),i=n.n(r),c=n(96),s=n.n(c),l=n(108),d=n.n(l),u=n(63),p=n.n(u),h=n(22),m=n.n(h),f=n(27),g=n.n(f);function b(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.a)();let r=e.version;return r<13&&(e.showedDictAuth=!0),r<=9&&(r=10,["mode","pinMode","panelMode","qsPanelMode"].forEach(t=>{n[t].holding.shift=!1,n[t].holding.ctrl=!!e[t].ctrl,n[t].holding.meta=!!e[t].ctrl,delete e[t].ctrl})),c("tripleCtrlPreload","qsPreload"),c("tripleCtrlAuto","qsAuto"),c("tripleCtrlLocation","qsLocation"),c("tripleCtrlStandalone","qsStandalone"),c("tripleCtrlHeight","qssaHeight"),c("tripleCtrlSidebar","qssaSidebar"),c("tripleCtrlPageSel","qssaPageSel"),Object.keys(n).forEach(t=>{switch(t){case"langCode":f("langCode",e=>/^(zh-CN|zh-TW|en)$/.test(e));break;case"pdfWhitelist":case"pdfBlacklist":case"whitelist":case"blacklist":f(t,e=>Array.isArray(e));break;case"searhHistory":case"searchHistory":n.searchHistory=e[t];break;case"searhHistoryInco":case"searchHistoryInco":n.searchHistoryInco=e[t];break;case"mode":case"pinMode":case"panelMode":case"qsPanelMode":"mode"===t&&h("mode.icon"),h(t+".direct"),h(t+".double"),h(t+".holding.alt"),h(t+".holding.shift"),h(t+".holding.ctrl"),h(t+".holding.meta"),h(t+".instant.enable"),f(t+".instant.key",e=>/^(direct|ctrl|alt|shift)$/.test(e)),l(t+".instant.delay");break;case"qsPreload":f("qsPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"qsLocation":f("qsLocation",e=>"CENTER"===e||"TOP"===e||"RIGHT"===e||"BOTTOM"===e||"LEFT"===e||"TOP_LEFT"===e||"TOP_RIGHT"===e||"BOTTOM_LEFT"===e||"BOTTOM_RIGHT"===e);break;case"baPreload":f("baPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"ctxTrans":i()(n.ctxTrans,(e,t)=>{h("ctxTrans."+t)});break;case"language":i()(n.language,(e,t)=>{h("language."+t)});break;case"autopron":f("autopron.cn.dict",e=>o.a[e]),f("autopron.en.dict",e=>o.a[e]),f("autopron.en.accent",e=>"us"===e||"uk"===e),f("autopron.machine.dict",e=>o.a[e]),f("autopron.machine.src",e=>"trans"===e||"searchText"===e);break;case"contextMenus":i()(e.contextMenus.all,(e,t)=>{"string"==typeof e?n.contextMenus.all[t]&&u("contextMenus.all."+t):(u(`contextMenus.all.${t}.name`),u(`contextMenus.all.${t}.url`))}),function(t){const a=m()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)g()(n,[t,"selected"],[]);else{const e=m()(n,[t,"all"]),o=a.filter(t=>e[t]);o.length>0&&g()(n,[t,"selected"],o)}}("contextMenus");break;case"dictAuth":f("dictAuth",Boolean);break;default:switch(typeof n[t]){case"string":u(t);break;case"boolean":h(t);break;case"number":l(t);break;default:console.error(new Error(`merge config: missing handler for '${t}'`))}}}),r=e.version,r<=10&&(r=11,n.contextMenus.selected.unshift("view_as_pdf")),r<=11&&(r=12,n.blacklist.push(["^https://stackedit.io(/.*)?$","https://stackedit.io/*"])),!1===e.language.minor&&(n.language.japanese=!1,n.language.korean=!1,n.language.french=!1,n.language.spanish=!1,n.language.deutsch=!1),n.panelMaxHeightRatio<1&&(n.panelMaxHeightRatio=Math.round(100*n.panelMaxHeightRatio)),n;function c(t,n){!Object.prototype.hasOwnProperty.call(e,n)&&Object.prototype.hasOwnProperty.call(e,t)&&(e[n]=e[t])}function l(e){return f(e,s.a)}function u(e){return f(e,d.a)}function h(e){return f(e,p.a)}function f(t,a){const o=m()(e,t);a(o)&&g()(n,t,o)}}t.a=b},166:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=Object.keys},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));n(30);function a(...e){return"config."+e.join(".")}function o(...e){return"profile."+e.join(".")}},171:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appid:"",key:""},o="http://api.fanyi.baidu.com/api/trans/product/prodinfo"},172:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={token:""},o="https://fanyi.caiyunapp.com/#/api"},173:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={pid:"",key:""},o="https://deepi.sogou.com/?from=translatepc"},174:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={secretId:"",secretKey:""},o="https://curl.qcloud.com/imsowZzT"},175:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appKey:"",key:""},o="http://ai.youdao.com/gw.s"},179:function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return S}));var a=n(124),o=n(112),r=n(57),i=n(159),c=n(39),s=n(10),l=n(88),d=n(134),u=n(561),p=n(562),h=n(187),m=n(182),f=n(121),g=n(508),b=n(563),y=n(125),w=n(136),x=n(30),v=n(190),E=n(2),O=n(44),_=n(20),k=n(43),C=n(38);function j(e){return e?e.touchMode?function(e){const t=Object(o.a)(Object(r.a)(window,"mousedown",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),Object(r.a)(window,"touchstart",{capture:!0}).pipe(Object(s.a)(e=>e.changedTouches[0]))),n=Object(o.a)(Object(r.a)(window,"mouseup",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),Object(r.a)(window,"touchend",{capture:!0}).pipe(Object(s.a)(e=>e.changedTouches[0]))),a=A(n,e.doubleClickDelay),h=Object(o.a)(Object(l.a)(!0)(t),Object(l.a)(!1)(n),Object(l.a)(!1)(Object(r.a)(window,"mouseout",{capture:!0})),Object(l.a)(!1)(Object(r.a)(window,"blur",{capture:!0})));return Object(r.a)(document,"selectionchange").pipe(Object(d.a)(h),Object(u.a)(([,e])=>e?n:Object(i.a)(400)),Object(s.a)(([,e])=>[window.getSelection(),e]),Object(c.a)(e=>!!e[0]&&!Object(E.f)(e[0].anchorNode)),Object(d.a)(n,t,a),Object(s.a)(([[t,n],a,o,r])=>{const i=Object(E.e)(t.anchorNode||o.target);if(e.noTypeField&&Object(k.d)(n?o.target:t.anchorNode))return{self:i};const c=Object(O.d)(t);if(!Object(_.a)(e.language,c))return{self:i};if(n)return{word:{text:c,context:Object(O.b)(t)},self:i,dbClick:r>=2,mouseX:a.clientX,mouseY:a.clientY,altKey:!!a.altKey,shiftKey:!!a.shiftKey,ctrlKey:!!a.ctrlKey,metaKey:!!a.metaKey};if(t.rangeCount<=0)return{self:i};const s=t.getRangeAt(0).getBoundingClientRect();return 0===s.top&&0===s.left&&0===s.width&&0===s.height?{self:i}:{word:{text:c,context:Object(O.b)(t)},self:i,dbClick:r>=2,mouseX:s.right,mouseY:s.top}}),Object(p.a)(t=>{if(E.d&&t.self&&t.word&&t.word.text){const{direct:n,double:a,holding:o}=e.panelMode;if(n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey)return Object(i.a)(500)}return Object(i.a)(0)}))}(e):function(e){const t=Object(r.a)(window,"mousedown",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),n=Object(r.a)(window,"mouseup",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),a=A(n,e.doubleClickDelay);return n.pipe(Object(c.a)(e=>!Object(E.f)(e.target)),Object(h.a)(10),Object(d.a)(t,a),Object(c.a)(([e,t])=>!Object(E.e)(e.target)&&!Object(E.e)(t.target)),Object(s.a)(([t,n,a])=>{if(e.noTypeField&&Object(k.d)(n.target))return{self:!1};const o=window.getSelection(),r=Object(O.d)(o);return Object(_.a)(e.language,r)?{word:{text:r,context:Object(O.b)(o)},self:!1,dbClick:a>=2,mouseX:t.clientX,mouseY:t.clientY,altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey}:{self:!1}}),Object(m.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context))}(e):a.a}function S(e,t,n,a){const[o,r]=Object(y.a)(e=>e.pipe(Object(c.a)(e=>0===e.button))),i=Object(w.a)(x.b,[e,t]),l=Object(w.a)(e=>e.pipe(Object(f.a)(([e])=>A(r,e))),[n]),u=Object(w.a)(()=>r.pipe(Object(d.a)(i),Object(c.a)(([e,[t]])=>{if(t)return!1;for(let t=e.target;t;t=t.parentElement)if(Object(C.a)(t,"a")||Object(C.a)(t,"button"))return!1;return!0}),Object(s.a)(([e,[,t]])=>({mouseup:e.nativeEvent,language:t})),Object(h.a)(10),Object(d.a)(l),Object(s.a)(([{mouseup:e,language:t},n])=>{const a=window.getSelection(),o=Object(O.d)(a);return Object(_.a)(t,o)?{word:{text:o,context:Object(O.b)(a)},dbClick:n>=2,mouseX:e.clientX,mouseY:e.clientY,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,self:!0,instant:!1,force:!1}:{word:null,self:!0,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}}),Object(m.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context)));return Object(v.a)(u,async e=>{e.word&&(e.word=await Object(k.e)(e.word)),a(e)}),o}function A(e,t){return e.pipe(Object(f.a)(()=>Object(i.a)(t).pipe(Object(l.a)(!1),Object(g.a)(!0))),Object(b.a)((e,t)=>t?e+1:0,0))}},185:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(78),o=n(77),r=n.n(o),i=n(96),c=n.n(i),s=n(108),l=n.n(s),d=n(63),u=n.n(d),p=n(22),h=n.n(p),m=n(27),f=n.n(m);function g(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.b)(e.id);return Object.keys(n).forEach(t=>{switch(t){case"dicts":(function(t){const a=h()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)f()(n,[t,"selected"],[]);else{const e=h()(n,[t,"all"]),o=a.map(e=>"olad"===e?"lexico":e).filter(t=>e[t]);o.length>0&&f()(n,[t,"selected"],o)}})("dicts"),r()(n.dicts.all,(t,a)=>{const s=h()(e,`dicts.all.${a}.defaultUnfold`);u()(s)?f()(n,`dicts.all.${a}.defaultUnfold`,{chinese:s,english:s,japanese:s,korean:s,french:s,spanish:s,deutsch:s,others:s}):(i(`dicts.all.${a}.defaultUnfold.chinese`),i(`dicts.all.${a}.defaultUnfold.english`),i(`dicts.all.${a}.defaultUnfold.japanese`),i(`dicts.all.${a}.defaultUnfold.korean`),i(`dicts.all.${a}.defaultUnfold.french`),i(`dicts.all.${a}.defaultUnfold.spanish`),i(`dicts.all.${a}.defaultUnfold.deutsch`),i(`dicts.all.${a}.defaultUnfold.others`));const d=h()(e,`dicts.all.${a}.selectionLang.chs`);u()(d)?f()(n,`dicts.all.${a}.selectionLang.chinese`,d):i(`dicts.all.${a}.selectionLang.chinese`);const p=h()(e,`dicts.all.${a}.selectionLang.eng`);if(u()(p)?f()(n,`dicts.all.${a}.selectionLang.english`,p):i(`dicts.all.${a}.selectionLang.english`),i(`dicts.all.${a}.selectionLang.japanese`),i(`dicts.all.${a}.selectionLang.korean`),i(`dicts.all.${a}.selectionLang.french`),i(`dicts.all.${a}.selectionLang.spanish`),i(`dicts.all.${a}.selectionLang.deutsch`),i(`dicts.all.${a}.selectionLang.others`),o(`dicts.all.${a}.preferredHeight`),o(`dicts.all.${a}.selectionWC.min`),o(`dicts.all.${a}.selectionWC.max`),t.options){if(r()(t.options,(t,r)=>{if(c()(t))o(`dicts.all.${a}.options.${r}`);else if(u()(t))i(`dicts.all.${a}.options.${r}`);else if(l()(t)){const o=h()(e,`dicts.all.${a}.options.${r}`),i=h()(n,`dicts.all.${a}.options_sel.${r}`);f()(n,`dicts.all.${a}.options.${r}`,i.includes(o)?o:t)}}),!c()(e.version)){const e=["baidu","caiyun","google","sogou","tencent","youdaotrans"];e.every(e=>"hide"===h()(n,`dicts.all.${e}.options.slInitial`))&&e.forEach(e=>{f()(n,`dicts.all.${e}.options.slInitial`,"collapse")})}const s=h()(e,`dicts.all.${a}.options.pdfNewline`);u()(s)&&f()(n,`dicts.all.${a}.options.keepLF`,s?"all":"webpage")}});break;default:switch(typeof n[t]){case"string":s(t,l.a);break;case"boolean":i(t);break;case"number":o(t);break;default:console.error(new Error(`merge profile: missing handler for '${t}'`))}}}),"kor"===n.dicts.all.hjdict.options.chsas&&(n.dicts.all.hjdict.options.chsas="kr"),n;function o(e){return s(e,c.a)}function i(e){return s(e,u.a)}function s(t,a){const o=h()(e,t);a(o)&&f()(n,t,o)}}},193:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return f}));var a=n(405),o=n(142),r=n(167),i=n(27),c=n.n(i),s=n(9),l=n(29),d=n(33),u=n(2);var p=n(71),h=n(225);const m=new a.a("idle"),f=()=>{const{t:e}=Object(s.d)("options"),t=Object(p.b)();return n=>t(async(t,a)=>{m.next("uploading");const i={},s=Object.keys(n);for(const e of s)e.startsWith("config.")?(i.config||(i.config=JSON.parse(JSON.stringify(a().config))),c()(i,e,n[e])):e.startsWith("profile.")?(i.profile||(i.profile=JSON.parse(JSON.stringify(a().activeProfile))),c()(i,e,n[e])):console.error(new Error("Saving unknown path: "+e));const p=[];if(i.config){if(!await async function(e,t){try{await async function(e){if(u.d||u.h||u.m)return;const t={permissions:["background"]},n=await browser.permissions.contains(t);if(e.runInBg)n||await browser.permissions.request(t);else if(n)try{await browser.permissions.remove(t)}catch(e){console.error(e)}}(e)}catch(e){return console.error(e),o.a.destroy(),o.a.error(t("msg_err_permission",{permission:"background"})),!1}return!0}(i.config,e))return;p.push(Object(l.f)(i.config))}i.profile&&p.push(Object(d.m)(i.profile));try{await Promise.all(p),Object(h.a)(!1),o.a.destroy(),o.a.success(e("msg_updated")),m.next("idle")}catch(t){r.a.error({message:e("config.opt.upload_error"),description:t.message}),m.next("error")}})}},2:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"g",(function(){return o})),n.d(t,"i",(function(){return r})),n.d(t,"k",(function(){return i})),n.d(t,"j",(function(){return c})),n.d(t,"l",(function(){return s})),n.d(t,"n",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"m",(function(){return m})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return g}));const a=()=>!!window.__SALADICT_BACKGROUND_PAGE__,o=()=>!!window.__SALADICT_INTERNAL_PAGE__,r=()=>!!window.__SALADICT_OPTIONS_PAGE__,i=()=>!!window.__SALADICT_POPUP_PAGE__,c=()=>!!window.__SALADICT_PDF_PAGE__,s=()=>!!window.__SALADICT_QUICK_SEARCH_PAGE__,l=()=>i()||s(),d="saladict-external",u="saladict-panel",p=navigator.userAgent.includes("Firefox"),h=navigator.userAgent.includes("OPR"),m=/apple/i.test(navigator.vendor);function f(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(d))return!0;return!1}function g(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(u))return!0;return!1}},20:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"i",(function(){return p})),n.d(t,"b",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"a",(function(){return w}));var a=n(16);const o=["chinese","english","japanese","korean","french","spanish","deutsch"],r={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},i=e=>r.chinese.test(e),c=e=>r.english.test(e),s=e=>r.japanese.test(e),l=e=>r.korean.test(e),d=e=>r.french.test(e),u=e=>r.deutsch.test(e),p=e=>r.spanish.test(e),h={chinese:Object(a.a)(i),english:Object(a.a)(c),japanese:Object(a.a)(s),korean:Object(a.a)(l),french:Object(a.a)(d),spanish:Object(a.a)(p),deutsch:Object(a.a)(u)},m=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,f=new RegExp(`^(\\d|\\s|${m.source})+$`),g=new RegExp(`${r.chinese.source}|${r.japanese.source}|${r.korean.source}`),b=Object(a.a)(e=>(e.replace(new RegExp(m,"g")," ").replace(new RegExp(g,"g")," x ").match(/\S+/g)||"").length),y=[...o,"others","matchAll"];function w(e,t){if(!t)return!1;if(e.matchAll){if(f.test(t))return!1;if(e.others){const n=[/-|\.|\d|\s/],a=[];for(let t=o.length-1;t>=0;t--){const i=o[t];e[i]?n.push(r[i]):a.push(r[i])}for(let e=0;e<t.length;e++)if(n.every(n=>!n.test(t[e]))&&a.some(n=>n.test(t[e])))return!1;return!0}{const n=o.filter(t=>e[t]).map(e=>r[e]);n.push(/-|\.|\d|\s/);for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!1;return!0}}{if(o.some(n=>e[n]&&h[n](t)))return!0;if(!e.others||f.test(t))return!1;const n=o.filter(t=>!e[t]).map(e=>r[e]);n.push(new RegExp(m.source+"|\\d|\\s"));for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!0;return!1}}},209:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{static getDefaultConfig(){return{}}static getDefaultMeta(){return{}}constructor(e){this.config=void 0,this.meta=void 0,this.config=e}async delete(e){}async destroy(){}async download(e){}onStart(){}}a.id=void 0},211:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return u}));var a=n(675);const o={wrapperCol:{offset:6,span:18}},r={labelCol:{span:6},wrapperCol:{span:18}},i={labelCol:{xs:{span:9},sm:{span:9},lg:{span:5}},wrapperCol:{xs:{span:15},sm:{span:15},lg:{span:8}}},c={labelCol:{xs:{span:9},sm:{span:9},lg:{span:7}},wrapperCol:{xs:{span:15},sm:{span:15},lg:{span:9}}},s=()=>Object(a.a)()&&window.innerWidth<1920?i:c,l={xs:{span:24},sm:{span:24},lg:{span:12}},d={xs:{span:24},sm:{span:24},lg:{span:14,offset:2}},u=()=>Object(a.a)()&&window.innerWidth<1920?l:d},225:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));const a={value:!1},o=e=>{a.value=e},r=()=>a},265:function(e,t,n){var a={"./ankiconnect/_locales/en.ts":281,"./ankiconnect/_locales/zh-CN.ts":282,"./ankiconnect/_locales/zh-TW.ts":283,"./eudic/_locales/en.ts":284,"./eudic/_locales/zh-CN.ts":285,"./eudic/_locales/zh-TW.ts":286,"./shanbay/_locales/en.ts":287,"./shanbay/_locales/zh-CN.ts":288,"./shanbay/_locales/zh-TW.ts":289,"./webdav/_locales/en.ts":290,"./webdav/_locales/zh-CN.ts":291,"./webdav/_locales/zh-TW.ts":292};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=265},271:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),o=n.n(a);class r extends o.a.PureComponent{constructor(...e){super(...e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.error?o.a.createElement(this.props.error):null:this.props.children}}},274:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(13),o=n(405),r=n(121),i=n(29),c=n(510);async function s(){if(a.a.language)return a.a;const{langCode:e}=await Object(i.c)();return await a.a.use({type:"backend",init:()=>{},create:()=>{},read:async(e,t,a)=>{try{if("sync"===t){const t=function(e){const t=n(265);return t.keys().reduce((n,a)=>{const o=new RegExp(`/([^/]+)/_locales/${e}\\.ts$`).exec(a);if(o){const e=t(a);n[o[1]]=e.locale||e}return n},{})}(e);return a(null,t),t}const o=Object(c.a)(e,t);return a(null,o),o}catch(e){a(e)}}}).init({lng:e,fallbackLng:!1,whitelist:["en","zh-CN","zh-TW"],debug:!1,saveMissing:!1,load:"currentOnly",ns:"common",defaultNS:"common",interpolation:{escapeValue:!1}}),Object(i.a)(({newConfig:e})=>{a.a.language!==e.langCode&&a.a.changeLanguage(e.langCode)}),a.a}class l{static async getInstance(){if(!l.instance){const e=new l;l.instance=e,e.i18n=await s(),e.i18n$$.next(e.i18n)}return l.instance}constructor(){this.i18n=void 0,this.i18n$$=void 0,this.i18n=a.a,this.i18n$$=new o.a(this.i18n),this.i18n.on("languageChanged",()=>{this.i18n$$.next(this.i18n)})}getFixedT$(e){return this.i18n$$.pipe(Object(r.a)(async t=>(await this.i18n.loadNamespaces(e),t.getFixedT(t.language,e))))}}l.instance=void 0},281:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"Cannot connect to Anki Connect. Please make sure Anki is running.",deck:"Deck not found in Anki.",notetype:"Note type not found in Anki.",add:"Failed to add word to Anki."}}},282:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"无法连接 Anki Connect,请确认 Anki 已在运行。",deck:"Anki 中没有找到相应牌组。",notetype:"Anki 中没有找到相应笔记类型。",add:"添加单词到 Anki 失败。"}}},283:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"無法連線 Anki Connect,請確認 Anki 已在執行。",deck:"Anki 中沒有找到相應牌組。",notetype:"Anki 中沒有找到相應筆記型別。",add:"新增單詞到 Anki 失敗。"}}},284:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Eudic Word Syncing",open:"Open",error:{network:"Unable to access the new word book of Eudic, please check the network.",illegal_token:"Please set legal Eudic authorization information.",no_wordbook:"Unable to add to the new word book of European dictionary. Please go to the European official website to generate the default new word book first."}}},285:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"欧路单词同步",open:"打开",error:{network:"无法访问欧路词典生词本,请检查网络。",illegal_token:"请设置合法的欧路词典授权信息",no_wordbook:"无法添加到欧路词典生词本,请先上欧路官网生成默认生词本"}}},286:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"歐路單字同步",open:"開啟",error:{network:"無法訪問歐路詞典生詞本,請檢查網絡。",illegal_token:"請設定合法的歐路詞典授權資訊",no_wordbook:"無法添加到歐路詞典生詞本,請先上歐路官網生成默認生詞本"}}},287:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Shanbay Word Syncing",open:"Open",error:{login:"Shanbay login failed. Click to open shanbay.com.",network:"Unable to access shanbay.com. Please check your network connection.",word:"Unable to add to Shanbay notebook. This word is not in Shanbay's vocabulary database."}}},288:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇贝单词同步",open:"打开",error:{login:"扇贝登录已失效,请点击打开官网重新登录。",network:"无法访问扇贝生词本,请检查网络。",word:"无法添加到扇贝生词本,扇贝单词库没有收录此单词。"}}},289:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇貝單字同步",open:"開啟",error:{login:"扇貝登入已失效,請點選開啟官網重新登入。",network:"無法訪問扇貝生字本,請檢查網路。",word:"無法新增到扇貝生字本,扇貝單字庫沒有收錄此單字。"}}},29:function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"c",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return y}));var a=n(90),o=n.n(a),r=n(83),i=n(165),c=n(1),s=n(100),l=n(67),d=n(81),u=n(10);function p(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}async function h(){let e=await f();return e=e&&e.version?Object(i.b)(e):Object(r.a)(),await g(e),e}async function m(){const e=Object(r.a)();return await g(e),e}async function f(){const{baseconfig:e}=await c.c.sync.get("baseconfig");return p(e||Object(r.a)())}function g(e){return function(e){try{"undefined"!=typeof localStorage&&"undefined"!=typeof location&&/^(chrome-extension|moz-extension|safari-web-extension):$/.test(location.protocol)&&localStorage.setItem("saladict-pdf-viewer-dark-mode",e?"1":"0")}catch(e){}}(e.darkMode),c.c.sync.set({baseconfig:(t=e,{v:1,d:o.a.deflate(JSON.stringify(t),{to:"string"})})});var t}async function b(e){c.c.sync.addListener(t=>{if(t.baseconfig){const{newValue:n,oldValue:a}=t.baseconfig;n&&e({newConfig:p(n),oldConfig:p(a)})}})}function y(){return Object(s.a)(Object(l.a)(f()),Object(d.a)(b).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newConfig)))}},290:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV Word Syncing",error:{dir:'Incorrect "Saladict" directory on server.',download:"Download failed. Unable to connect WebDAV Server. If browser proxy is enabled please adjust rules to bypass WebDAV server.",internal:"Unable to save settings.",missing:'Missing "Saladict" directory on server.',mkcol:'Cannot create "Saladict" directory on server. Please create the directory manualy on server.',network:"Network error. Cannot connect to server.",parse:"Incorrect response XML from server.",unauthorized:"Incorrect account or password."}}},291:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 单词同步",error:{dir:"服务器上“Saladict”目录格式不正确,请检查。",download:"下载失败。无法访问 WebDAV 服务器。如启用了浏览器代理请调整规则,不要代理 WebDAV 服务器。",internal:"无法保存。",missing:"服务器上缺少“Saladict”目录。",mkcol:"无法在服务器创建“Saladict”目录。请手动在服务器上创建。",network:"连接服务器失败。",parse:"服务器返回 XML 格式不正确。",unauthorized:"账户或密码不正确。"}}},292:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 單字同步",error:{dir:"伺服器上“Saladict”目錄格式不正確,請檢查。",download:"下載失敗。無法訪問 WebDAV 伺服器。如啟用了瀏覽器代理請調整規則,不要代理 WebDAV 伺服器。",internal:"無法儲存。",missing:"伺服器上缺少“Saladict”目錄。",mkcol:"無法在伺服器建立“Saladict”目錄。請手動在伺服器上建立。",network:"連線伺服器失敗。",parse:"伺服器返回 XML 格式不正確。",unauthorized:"帳戶或密碼不正確。"}}},298:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return c}));var a=n(1),o=n(42);async function r(){return(await a.c.local.get("titlebarOffset")).titlebarOffset}function i(e){return a.c.local.set({titlebarOffset:e})}async function c(){try{const e=await browser.windows.getCurrent();if(null==e.id)return;const t=await browser.windows.create({state:"maximized"}),n=await browser.windows.create({state:"maximized",type:"panel"});if(null==(null==t?void 0:t.id)||null==(null==n?void 0:n.id))return;await browser.windows.update(e.id,{focused:!0}),await Object(o.d)(0);const a=(await browser.windows.get(t.id)).top,r=(await browser.windows.get(n.id)).top;if(browser.windows.remove(t.id),browser.windows.remove(n.id),null==a||null==r)return;return{main:a,panel:r}}catch(e){!1}}},3:function(e,t,n){"use strict";n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"h",(function(){return u})),n.d(t,"k",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"l",(function(){return m})),n.d(t,"c",(function(){return f})),n.d(t,"g",(function(){return g})),n.d(t,"e",(function(){return w})),n.d(t,"f",(function(){return x})),n.d(t,"m",(function(){return v})),n.d(t,"n",(function(){return E})),n.d(t,"b",(function(){return O})),n.d(t,"d",(function(){return _}));var a=n(139),o=n.n(a);n(0),n(125),n(190),n(10),n(404),n(752);const r=new Map([["与","與"],["丒","囟"],["专","專"],["丗","卅"],["业","業"],["丛","叢"],["东","東"],["丝","絲"],["両","兩"],["丢","丟"],["两","兩"],["严","嚴"],["丧","喪"],["个","個"],["丬","爿"],["丯","丰"],["临","臨"],["丶","⼂"],["为","為"],["丽","麗"],["举","舉"],["义","義"],["乌","烏"],["乐","樂"],["乔","喬"],["习","習"],["乡","鄉"],["书","書"],["买","買"],["乱","亂"],["亀","龜"],["亁","乾"],["争","爭"],["亏","虧"],["亘","亙"],["亚","亞"],["产","產"],["亩","畝"],["亲","親"],["亵","褻"],["亸","嚲"],["亻","人"],["亿","億"],["仅","僅"],["从","從"],["仑","崙"],["仓","倉"],["仪","儀"],["们","們"],["仮","假"],["众","眾"],["会","會"],["伛","傴"],["伞","傘"],["伟","偉"],["传","傳"],["伤","傷"],["伥","倀"],["伦","倫"],["伧","傖"],["伪","偽"],["伫","佇"],["体","體"],["佥","僉"],["侠","俠"],["侣","侶"],["侥","僥"],["侦","偵"],["侧","側"],["侨","僑"],["侩","儈"],["侪","儕"],["侬","儂"],["俣","俁"],["俦","儔"],["俨","儼"],["俩","倆"],["俪","儷"],["俭","儉"],["债","債"],["倾","傾"],["偬","傯"],["偻","僂"],["偾","僨"],["偿","償"],["傥","儻"],["傧","儐"],["储","儲"],["傩","儺"],["兎","兔"],["兑","兌"],["兖","兗"],["兪","俞"],["兰","蘭"],["关","關"],["兴","興"],["兹","茲"],["养","養"],["兽","獸"],["兾","糞"],["兿","藝"],["冁","囅"],["内","內"],["円","丹"],["冈","岡"],["册","冊"],["写","寫"],["军","軍"],["农","農"],["冝","宜"],["冦","寇"],["冧","霖"],["冨","富"],["冩","寫"],["冮","江"],["冯","馮"],["冲","沖"],["决","決"],["况","況"],["冸","泮"],["冺","泯"],["冻","凍"],["冿","津"],["净","淨"],["凁","涑"],["凂","浼"],["凃","涂"],["凄","淒"],["凉","涼"],["减","減"],["凑","湊"],["凒","溰"],["凓","溧"],["凕","溟"],["凖","準"],["凙","澤"],["凛","凜"],["凟","瀆"],["凤","鳳"],["凥","尻"],["処","處"],["凨","云"],["凫","鳧"],["凬","凰"],["凭","憑"],["凮","鳳"],["凯","凱"],["凴","憑"],["击","擊"],["凼","窞"],["凾","亟"],["凿","鑿"],["刄","刃"],["刅","刃"],["刋","刊"],["刍","芻"],["刘","劉"],["则","則"],["刚","剛"],["创","創"],["删","刪"],["刦","劫"],["刧","劫"],["别","別"],["刭","剄"],["刴","剁"],["刹","剎"],["刼","劫"],["刽","劊"],["刿","劌"],["剀","剴"],["剂","劑"],["剐","剮"],["剑","劍"],["剥","剝"],["剧","劇"],["剰","剩"],["劎","劍"],["劒","劍"],["劔","劍"],["劝","勸"],["办","辦"],["务","務"],["劢","勱"],["动","動"],["励","勵"],["劲","勁"],["劳","勞"],["労","勞"],["劵","卷"],["効","效"],["劽","裂"],["势","勢"],["勅","敕"],["勋","勛"],["勐","猛"],["勚","勩"],["勠","戮"],["勥","強"],["勧","勸"],["匀","勻"],["匦","匭"],["匮","匱"],["区","區"],["医","醫"],["华","華"],["协","協"],["单","單"],["卖","賣"],["単","單"],["卙","斟"],["卛","攣"],["卟","嚇"],["卢","盧"],["卤","鹵"],["卥","囟"],["卧","臥"],["卫","衛"],["却","卻"],["卺","巹"],["厅","廳"],["历","歷"],["厉","厲"],["压","壓"],["厌","厭"],["厕","廁"],["厛","廳"],["厠","廁"],["厢","廂"],["厣","厴"],["厦","廈"],["厨","廚"],["厩","廄"],["厮","廝"],["厰","廠"],["厳","嚴"],["厶","⼛"],["县","縣"],["叁","參"],["叄","參"],["叆","靉"],["叇","靆"],["双","雙"],["収","收"],["叏","發"],["叐","發"],["发","發"],["变","變"],["叙","敘"],["叠","疊"],["叧","另"],["叶","葉"],["号","號"],["叹","嘆"],["叽","嘰"],["吓","嚇"],["吕","呂"],["吖","嗄"],["吗","嗎"],["吣","唚"],["吨","噸"],["启","啟"],["吴","吳"],["吿","告"],["呋","咐"],["呐","吶"],["呑","吞"],["呒","嘸"],["呓","囈"],["呕","嘔"],["呖","嚦"],["呗","唄"],["员","員"],["呙","咼"],["呛","嗆"],["呜","嗚"],["呪","咒"],["咏","詠"],["咙","嚨"],["咛","嚀"],["咝","吱"],["咣","光"],["咤","吒"],["哌","呱"],["响","響"],["哐","匡"],["哑","啞"],["哒","噠"],["哓","嘵"],["哔","嗶"],["哕","噦"],["哗","嘩"],["哙","噲"],["哜","嚌"],["哝","噥"],["哟","喲"],["唝","嗊"],["唠","嘮"],["唡","啢"],["唢","嗩"],["唣","嗦"],["唤","喚"],["唿","呼"],["啧","嘖"],["啬","嗇"],["啭","囀"],["啰","囉"],["啴","嘽"],["啸","嘯"],["喷","噴"],["喹","奎"],["喽","嘍"],["喾","嚳"],["嗪","唚"],["嗫","囁"],["嗬","呵"],["嗳","噯"],["嗵","通"],["嘘","噓"],["嘞","咧"],["嘠","嘎"],["嘣","迸"],["嘤","嚶"],["嘨","嘯"],["嘭","膨"],["嘱","囑"],["嘷","嚎"],["噜","嚕"],["噻","塞"],["噼","劈"],["嚔","涕"],["嚢","囊"],["嚣","囂"],["嚯","謔"],["团","團"],["园","園"],["囱","囪"],["围","圍"],["囵","圇"],["国","國"],["图","圖"],["圆","圓"],["圣","聖"],["圹","壙"],["场","場"],["块","塊"],["坚","堅"],["坛","壇"],["坜","壢"],["坝","壩"],["坞","塢"],["坟","墳"],["坠","墜"],["垄","壟"],["垅","壟"],["垆","壚"],["垒","壘"],["垦","墾"],["垧","坰"],["垩","堊"],["垫","墊"],["垲","塏"],["垴","瑙"],["埘","塒"],["埚","堝"],["堑","塹"],["堕","墮"],["塡","填"],["塬","原"],["墙","牆"],["壮","壯"],["声","聲"],["壳","殼"],["壶","壺"],["壸","壼"],["夂","⼢"],["处","處"],["备","備"],["夊","⼢"],["够","夠"],["头","頭"],["夹","夾"],["夺","奪"],["奁","奩"],["奂","奐"],["奋","奮"],["奖","獎"],["奥","奧"],["妆","妝"],["妇","婦"],["妈","媽"],["妩","嫵"],["妪","嫗"],["妫","媯"],["姗","姍"],["姹","奼"],["娄","婁"],["娅","婭"],["娆","嬈"],["娇","嬌"],["娈","孌"],["娱","娛"],["娲","媧"],["娴","嫻"],["婳","嫿"],["婴","嬰"],["婵","嬋"],["婶","嬸"],["媪","媼"],["嫒","嬡"],["嫔","嬪"],["嫱","嬙"],["嬷","嬤"],["孙","孫"],["学","學"],["孪","孿"],["孶","孳"],["宝","寶"],["实","實"],["宠","寵"],["审","審"],["宪","憲"],["宫","宮"],["宽","寬"],["宾","賓"],["寝","寢"],["对","對"],["寻","尋"],["导","導"],["対","對"],["寿","壽"],["専","專"],["尅","剋"],["将","將"],["尓","爾"],["尔","爾"],["尘","塵"],["尝","嘗"],["尧","堯"],["尴","尷"],["尽","盡"],["层","層"],["屃","屭"],["屉","屜"],["届","屆"],["屛","屏"],["属","屬"],["屡","屢"],["屦","屨"],["屿","嶼"],["岁","歲"],["岂","豈"],["岖","嶇"],["岗","崗"],["岘","峴"],["岙","嶴"],["岚","嵐"],["岛","島"],["岭","嶺"],["岿","巋"],["峄","嶧"],["峡","峽"],["峣","嶢"],["峤","嶠"],["峥","崢"],["峦","巒"],["峯","峰"],["崂","嶗"],["崃","崍"],["崄","嶮"],["崭","嶄"],["崾","要"],["嵘","嶸"],["嵚","嶔"],["嵝","嶁"],["巄","巃"],["巅","巔"],["巌","巖"],["巓","巔"],["巩","鞏"],["币","幣"],["帅","帥"],["师","師"],["帏","幃"],["帐","帳"],["帜","幟"],["带","帶"],["帧","幀"],["帮","幫"],["帯","帶"],["帱","幬"],["帻","幘"],["帼","幗"],["幂","冪"],["幇","幫"],["幚","幫"],["幞","襆"],["幷","并"],["广","廣"],["庁","廳"],["広","麼"],["庄","莊"],["庅","麼"],["庆","慶"],["庐","廬"],["庑","廡"],["库","庫"],["应","應"],["庙","廟"],["庞","龐"],["废","廢"],["庼","廎"],["廏","廄"],["廐","廄"],["廪","廩"],["廴","⼵"],["廵","巡"],["开","開"],["异","異"],["弃","棄"],["弑","弒"],["张","張"],["弥","彌"],["弯","彎"],["弹","彈"],["强","強"],["归","歸"],["当","當"],["录","錄"],["彚","彙"],["彛","羿"],["彜","羿"],["彟","獲"],["彠","獲"],["彡","⼺"],["彦","彥"],["彻","徹"],["径","徑"],["徕","徠"],["徸","德"],["忄","心"],["忆","憶"],["忏","懺"],["忧","憂"],["忾","愾"],["怀","懷"],["态","態"],["怂","慫"],["怃","憮"],["怅","悵"],["怆","愴"],["怜","憐"],["总","總"],["怼","懟"],["怿","懌"],["恋","戀"],["恒","恆"],["恳","懇"],["恶","惡"],["恸","慟"],["恹","懨"],["恺","愷"],["恻","惻"],["恼","惱"],["恽","惲"],["悦","悅"],["悫","愨"],["悬","懸"],["悭","慳"],["悯","憫"],["惊","驚"],["惧","懼"],["惨","慘"],["惩","懲"],["惫","憊"],["惬","愜"],["惭","慚"],["惮","憚"],["惯","慣"],["惽","惛"],["愠","慍"],["愤","憤"],["愦","憒"],["慑","懾"],["慭","憖"],["懑","懣"],["懒","懶"],["懔","懍"],["懴","懺"],["戅","戇"],["戆","戇"],["戋","戔"],["戏","戲"],["戗","戧"],["战","戰"],["戝","敗"],["戦","戰"],["戬","戩"],["戯","戲"],["戱","戲"],["户","戶"],["戸","戶"],["扌","手"],["执","執"],["扩","擴"],["扪","捫"],["扫","掃"],["扬","揚"],["扰","擾"],["抅","拘"],["抚","撫"],["抛","拋"],["抟","摶"],["抠","摳"],["抡","掄"],["抢","搶"],["护","護"],["报","報"],["担","擔"],["拟","擬"],["拢","攏"],["拣","揀"],["拥","擁"],["拦","攔"],["拧","擰"],["拨","撥"],["择","擇"],["挚","摯"],["挛","攣"],["挜","掗"],["挝","撾"],["挞","撻"],["挟","挾"],["挠","撓"],["挡","擋"],["挢","撟"],["挣","掙"],["挤","擠"],["挥","揮"],["挦","撏"],["捞","撈"],["损","損"],["捡","撿"],["换","換"],["捣","搗"],["掳","擄"],["掴","摑"],["掷","擲"],["掸","撣"],["掺","摻"],["掼","摜"],["揸","喳"],["揽","攬"],["揿","撳"],["搀","攙"],["搁","擱"],["搂","摟"],["搃","摠"],["搅","攪"],["携","攜"],["摄","攝"],["摅","攄"],["摆","擺"],["摇","搖"],["摈","擯"],["摊","攤"],["撃","擊"],["撄","攖"],["撑","撐"],["撪","攆"],["撵","攆"],["撷","擷"],["撹","攪"],["撺","攛"],["擕","攜"],["擞","擻"],["擡","抬"],["擥","掔"],["擧","舉"],["擪","壓"],["攒","攢"],["攵","又"],["敇","敕"],["敌","敵"],["敛","斂"],["敮","歃"],["数","數"],["斉","齊"],["斋","齋"],["斎","齋"],["斓","斕"],["斩","斬"],["断","斷"],["旧","舊"],["时","時"],["旷","曠"],["旸","暘"],["昙","曇"],["昼","晝"],["昽","曨"],["显","顯"],["晋","晉"],["晓","曉"],["晔","曄"],["晕","暈"],["晖","暉"],["暂","暫"],["暧","曖"],["术","術"],["杀","殺"],["杂","雜"],["权","權"],["条","條"],["来","來"],["杨","楊"],["极","極"],["枞","樅"],["枢","樞"],["枣","棗"],["枥","櫪"],["枧","見"],["枨","棖"],["枪","槍"],["枫","楓"],["枭","梟"],["柠","檸"],["柽","檉"],["栀","梔"],["栅","柵"],["标","標"],["栈","棧"],["栉","櫛"],["栊","櫳"],["栋","棟"],["栌","櫨"],["栎","櫟"],["栏","欄"],["树","樹"],["样","樣"],["栾","欒"],["桊","棬"],["桠","椏"],["桡","橈"],["桢","楨"],["档","檔"],["桤","榿"],["桥","橋"],["桦","樺"],["桧","檜"],["桨","槳"],["桩","樁"],["梦","夢"],["梼","檮"],["梾","棶"],["检","檢"],["棂","欞"],["椁","槨"],["椟","櫝"],["椠","槧"],["椭","橢"],["楼","樓"],["楽","樂"],["榄","欖"],["榇","櫬"],["榈","櫚"],["榉","櫸"],["榘","矩"],["槚","檟"],["槛","檻"],["槟","檳"],["槠","櫧"],["横","橫"],["樯","檣"],["樱","櫻"],["橥","櫫"],["橱","櫥"],["橹","櫓"],["橼","櫞"],["檪","櫟"],["檫","察"],["欢","歡"],["欤","歟"],["欧","歐"],["歳","歲"],["歴","曆"],["歺","歲"],["歼","殲"],["殁","歿"],["殇","殤"],["残","殘"],["殒","殞"],["殓","殮"],["殚","殫"],["殡","殯"],["殱","殲"],["殴","毆"],["毁","毀"],["毂","轂"],["毕","畢"],["毙","斃"],["毡","氈"],["毵","毿"],["毶","鞠"],["気","氣"],["氢","氫"],["氩","氬"],["氲","氳"],["氵","水"],["氽","汆"],["汇","匯"],["汉","漢"],["污","汙"],["汤","湯"],["汹","洶"],["沟","溝"],["没","沒"],["沣","灃"],["沤","漚"],["沥","瀝"],["沦","淪"],["沧","滄"],["沨","渢"],["沩","溈"],["沪","滬"],["沵","濔"],["泞","濘"],["泪","淚"],["泶","澩"],["泷","瀧"],["泸","瀘"],["泺","濼"],["泻","瀉"],["泼","潑"],["泽","澤"],["泾","涇"],["洁","潔"],["浃","浹"],["浅","淺"],["浆","漿"],["浇","澆"],["浈","湞"],["浊","濁"],["测","測"],["浍","澮"],["济","濟"],["浏","瀏"],["浐","滻"],["浑","渾"],["浒","滸"],["浓","濃"],["浔","潯"],["浕","濜"],["浜","濱"],["涙","淚"],["涛","濤"],["涝","澇"],["涞","淶"],["涟","漣"],["涡","渦"],["涣","渙"],["涤","滌"],["润","潤"],["涧","澗"],["涨","漲"],["涩","澀"],["淀","澱"],["渊","淵"],["渌","淥"],["渍","漬"],["渎","瀆"],["渐","漸"],["渑","澠"],["渔","漁"],["渖","瀋"],["渗","滲"],["温","溫"],["湼","涅"],["湾","灣"],["湿","濕"],["溃","潰"],["溅","濺"],["溆","漵"],["溇","漊"],["滙","匯"],["滚","滾"],["滝","瀧"],["滞","滯"],["滟","灩"],["滠","灄"],["满","滿"],["滢","瀅"],["滤","濾"],["滥","濫"],["滦","灤"],["滨","濱"],["滩","灘"],["滪","澦"],["漑","溉"],["潆","瀠"],["潇","瀟"],["潋","瀲"],["潍","濰"],["潜","潛"],["潴","瀦"],["澜","瀾"],["濑","瀨"],["濒","瀕"],["灎","灩"],["灏","灝"],["灔","灩"],["灜","瀛"],["灧","灩"],["灬","火"],["灭","滅"],["灯","燈"],["灵","靈"],["灾","災"],["灿","燦"],["炀","煬"],["炉","爐"],["炖","燉"],["炜","煒"],["炝","熗"],["点","點"],["炼","煉"],["炽","熾"],["烁","爍"],["烂","爛"],["烃","烴"],["烛","燭"],["烟","煙"],["烦","煩"],["烧","燒"],["烨","燁"],["烩","燴"],["烫","燙"],["烬","燼"],["热","熱"],["焕","煥"],["焖","燜"],["焘","燾"],["煅","煆"],["煳","糊"],["煺","退"],["熘","溜"],["爱","愛"],["爲","為"],["爷","爺"],["牍","牘"],["牜","牛"],["牦","犛"],["牵","牽"],["牺","犧"],["犊","犢"],["犟","強"],["犭","犬"],["状","狀"],["犷","獷"],["犸","馬"],["犹","猶"],["狈","狽"],["狍","包"],["狝","獮"],["狞","獰"],["独","獨"],["狭","狹"],["狮","獅"],["狯","獪"],["狰","猙"],["狱","獄"],["狲","猻"],["猃","獫"],["猎","獵"],["猕","獼"],["猡","玀"],["猪","豬"],["猫","貓"],["猬","蝟"],["献","獻"],["獭","獺"],["玑","璣"],["玙","璵"],["玚","瑒"],["玛","瑪"],["玮","瑋"],["环","環"],["现","現"],["玱","瑲"],["玺","璽"],["珏","玨"],["珐","琺"],["珑","瓏"],["珰","璫"],["珱","瓔"],["珲","琿"],["琏","璉"],["琐","瑣"],["琼","瓊"],["瑶","瑤"],["瑷","璦"],["璎","瓔"],["瓒","瓚"],["瓯","甌"],["産","產"],["电","電"],["画","畫"],["畅","暢"],["畲","畬"],["畳","疊"],["畴","疇"],["畵","畫"],["疎","疏"],["疖","癤"],["疗","療"],["疟","瘧"],["疠","癘"],["疡","瘍"],["疬","癆"],["疮","瘡"],["疯","瘋"],["疴","痾"],["痈","癰"],["痉","痙"],["痖","啞"],["痨","癆"],["痩","瘦"],["痪","瘓"],["痫","癇"],["痬","瘍"],["瘅","癉"],["瘆","疹"],["瘗","瘞"],["瘘","瘺"],["瘪","癟"],["瘫","癱"],["瘾","癮"],["瘿","癭"],["癀","廣"],["癍","斑"],["癎","癇"],["癞","癩"],["癣","癬"],["癫","癲"],["発","發"],["皑","皚"],["皱","皺"],["皲","皸"],["盏","盞"],["盐","鹽"],["监","監"],["盖","蓋"],["盗","盜"],["盘","盤"],["県","縣"],["眍","區"],["眞","真"],["眦","眥"],["眬","矓"],["着","著"],["睁","睜"],["睐","睞"],["睑","瞼"],["瞒","瞞"],["瞩","矚"],["矤","病"],["矫","矯"],["矶","磯"],["矾","礬"],["矿","礦"],["砀","碭"],["码","碼"],["砖","磚"],["砗","硨"],["砚","硯"],["砜","風"],["砺","礪"],["砻","礱"],["砾","礫"],["础","礎"],["硁","硜"],["硕","碩"],["硖","硤"],["硗","磽"],["硙","磑"],["硚","礄"],["硷","鹼"],["碍","礙"],["碛","磧"],["碜","磣"],["碱","鹼"],["碹","宣"],["磙","袞"],["礻","示"],["礼","禮"],["祎","禕"],["祢","禰"],["祯","禎"],["祷","禱"],["祸","禍"],["禀","稟"],["禄","祿"],["禅","禪"],["离","離"],["秃","禿"],["秆","稈"],["积","積"],["称","稱"],["秽","穢"],["秾","穠"],["税","稅"],["稣","穌"],["稳","穩"],["穑","穡"],["穷","窮"],["窃","竊"],["窍","竅"],["窑","窯"],["窜","竄"],["窝","窩"],["窥","窺"],["窦","竇"],["窭","窶"],["竖","豎"],["竜","龍"],["竞","競"],["笃","篤"],["笋","筍"],["笔","筆"],["笕","筧"],["笺","箋"],["笼","籠"],["笾","籩"],["筚","篳"],["筛","篩"],["筜","簹"],["筝","箏"],["筹","籌"],["签","簽"],["简","簡"],["箓","籙"],["箢","宛"],["箦","簀"],["箧","篋"],["箨","籜"],["箩","籮"],["箪","簞"],["箫","簫"],["篑","簣"],["篓","簍"],["篮","籃"],["篱","籬"],["簖","籪"],["籁","籟"],["籴","糴"],["类","類"],["籼","秈"],["粜","糶"],["粝","糲"],["粤","粵"],["粪","糞"],["粮","糧"],["糁","糝"],["糇","餱"],["糹","糸"],["紧","緊"],["絵","繪"],["絶","絕"],["絷","縶"],["綘","健"],["継","繼"],["続","續"],["緜","綿"],["縂","總"],["縄","繩"],["繋","繫"],["繍","繡"],["纟","糸"],["纠","糾"],["纡","紆"],["红","紅"],["纣","紂"],["纤","纖"],["纥","紇"],["约","約"],["级","級"],["纨","紈"],["纩","纊"],["纪","紀"],["纫","紉"],["纬","緯"],["纭","紜"],["纮","紘"],["纯","純"],["纰","紕"],["纱","紗"],["纲","綱"],["纳","納"],["纴","紝"],["纵","縱"],["纶","綸"],["纷","紛"],["纸","紙"],["纹","紋"],["纺","紡"],["纻","紵"],["纼","紖"],["纽","紐"],["纾","紓"],["线","線"],["绀","紺"],["绁","紲"],["绂","紱"],["练","練"],["组","組"],["绅","紳"],["细","細"],["织","織"],["终","終"],["绉","縐"],["绊","絆"],["绋","紼"],["绌","絀"],["绍","紹"],["绎","繹"],["经","經"],["绐","紿"],["绑","綁"],["绒","絨"],["结","結"],["绔","褲"],["绕","繞"],["绖","絰"],["绗","絎"],["绘","繪"],["给","給"],["绚","絢"],["绛","絳"],["络","絡"],["绝","絕"],["绞","絞"],["统","統"],["绠","綆"],["绡","綃"],["绢","絹"],["绣","繡"],["绤","綌"],["绥","綏"],["绦","絛"],["继","繼"],["绨","綈"],["绩","績"],["绪","緒"],["绫","綾"],["续","續"],["绮","綺"],["绯","緋"],["绰","綽"],["绱","鞜"],["绲","緄"],["绳","繩"],["维","維"],["绵","綿"],["绶","綬"],["绷","繃"],["绸","綢"],["绹","綯"],["绺","綹"],["绻","綣"],["综","綜"],["绽","綻"],["绾","綰"],["绿","綠"],["缀","綴"],["缁","緇"],["缂","緙"],["缃","緗"],["缄","緘"],["缅","緬"],["缆","纜"],["缇","緹"],["缈","緲"],["缉","緝"],["缊","縕"],["缋","繢"],["缌","緦"],["缍","綞"],["缎","緞"],["缏","緶"],["缐","線"],["缑","緱"],["缒","縋"],["缓","緩"],["缔","締"],["缕","縷"],["编","編"],["缗","緡"],["缘","緣"],["缙","縉"],["缚","縛"],["缛","縟"],["缜","縝"],["缝","縫"],["缞","縗"],["缟","縞"],["缠","纏"],["缡","縭"],["缢","縊"],["缣","縑"],["缤","繽"],["缥","縹"],["缦","縵"],["缧","縲"],["缨","纓"],["缩","縮"],["缪","繆"],["缫","繅"],["缬","纈"],["缭","繚"],["缮","繕"],["缯","繒"],["缰","韁"],["缱","繾"],["缲","繰"],["缳","繯"],["缴","繳"],["缵","纘"],["罂","罌"],["罗","羅"],["罚","罰"],["罢","罷"],["罴","羆"],["羁","羈"],["羗","羌"],["羟","羥"],["羡","羨"],["羣","群"],["羮","羹"],["翘","翹"],["翙","翽"],["翚","翬"],["耢","勞"],["耥","尚"],["耧","耬"],["耸","聳"],["耻","恥"],["聂","聶"],["聋","聾"],["职","職"],["聍","聹"],["联","聯"],["聩","聵"],["聪","聰"],["肀","聿"],["肃","肅"],["肠","腸"],["肤","膚"],["肷","欠"],["肾","腎"],["肿","腫"],["胀","脹"],["胁","脅"],["胆","膽"],["胧","朧"],["胨","東"],["胪","臚"],["胫","脛"],["胶","膠"],["脉","脈"],["脍","膾"],["脏","髒"],["脐","臍"],["脑","腦"],["脓","膿"],["脔","臠"],["脚","腳"],["脱","脫"],["脲","反"],["脶","腡"],["脸","臉"],["腭","齶"],["腻","膩"],["腽","膃"],["腾","騰"],["膑","臏"],["臓","摹"],["臜","臢"],["舆","輿"],["舣","艤"],["舰","艦"],["舱","艙"],["舻","艫"],["艰","艱"],["艹","艸"],["艺","藝"],["节","節"],["芈","羋"],["芗","薌"],["芜","蕪"],["芦","蘆"],["苁","蓯"],["苇","葦"],["苋","莧"],["苌","萇"],["苍","蒼"],["苎","苧"],["苏","蘇"],["苘","萵"],["茎","莖"],["茏","蘢"],["茑","蔦"],["茔","塋"],["茕","煢"],["茧","繭"],["荆","荊"],["荚","莢"],["荛","蕘"],["荜","蓽"],["荞","蕎"],["荟","薈"],["荠","薺"],["荡","蕩"],["荣","榮"],["荤","葷"],["荥","滎"],["荦","犖"],["荧","熒"],["荨","蕁"],["荩","藎"],["荪","蓀"],["荫","蔭"],["荬","賣"],["荭","葒"],["荮","紂"],["药","藥"],["莅","蒞"],["莱","萊"],["莲","蓮"],["莳","蒔"],["莴","萵"],["获","獲"],["莸","蕕"],["莹","瑩"],["莺","鶯"],["莼","蓴"],["菭","恰"],["萚","蘀"],["萝","蘿"],["萤","螢"],["营","營"],["萦","縈"],["萧","蕭"],["萨","薩"],["葱","蔥"],["蒇","蕆"],["蒉","蕢"],["蒋","蔣"],["蒌","蔞"],["蓝","藍"],["蓟","薊"],["蓠","蘺"],["蓦","驀"],["蔷","薔"],["蔹","蘞"],["蔺","藺"],["蔼","藹"],["蕲","蘄"],["蕴","蘊"],["薮","藪"],["藁","槁"],["藓","蘚"],["蘖","蘗"],["虏","虜"],["虑","慮"],["虚","虛"],["虬","虯"],["虮","蟣"],["虽","雖"],["虾","蝦"],["虿","蠆"],["蚀","蝕"],["蚁","蟻"],["蚂","螞"],["蚕","蠶"],["蚬","蜆"],["蛊","蠱"],["蛎","蠣"],["蛏","蟶"],["蛮","蠻"],["蛰","蟄"],["蛱","蛺"],["蛲","蟯"],["蛳","螄"],["蛴","蠐"],["蜕","蛻"],["蜖","汀"],["蜗","蝸"],["蝇","蠅"],["蝈","蟈"],["蝉","蟬"],["蝼","螻"],["蝾","蠑"],["蝿","蠅"],["螀","螿"],["螨","顢"],["蟏","蠨"],["蟮","蟺"],["蠎","蟒"],["衅","釁"],["衔","銜"],["衤","衣"],["补","補"],["衬","襯"],["衮","袞"],["袄","襖"],["袅","裊"],["袆","褘"],["袭","襲"],["袯","襏"],["袴","褲"],["装","裝"],["裆","襠"],["裈","褌"],["裢","褳"],["裣","襝"],["裤","褲"],["裥","襉"],["褛","褸"],["褴","襤"],["襕","襴"],["覇","霸"],["覚","覺"],["覧","覽"],["覩","睹"],["见","見"],["观","觀"],["规","規"],["觅","覓"],["视","視"],["觇","覘"],["览","覽"],["觉","覺"],["觊","覬"],["觋","覡"],["觌","覿"],["觎","覦"],["觏","覯"],["觐","覲"],["觑","覷"],["觗","觝"],["觞","觴"],["触","觸"],["觯","觶"],["訡","吟"],["詟","讋"],["詤","謊"],["誀","浴"],["誉","譽"],["誊","謄"],["説","說"],["読","讀"],["讁","謫"],["讠","言"],["计","計"],["订","訂"],["讣","訃"],["认","認"],["讥","譏"],["讦","訐"],["讧","訌"],["讨","討"],["让","讓"],["讪","訕"],["讫","訖"],["训","訓"],["议","議"],["讯","訊"],["记","記"],["讱","訒"],["讲","講"],["讳","諱"],["讴","謳"],["讵","詎"],["讶","訝"],["讷","訥"],["许","許"],["讹","訛"],["论","論"],["讼","訟"],["讽","諷"],["设","設"],["访","訪"],["诀","訣"],["证","證"],["诂","詁"],["诃","訶"],["评","評"],["诅","詛"],["识","識"],["诇","詗"],["诈","詐"],["诉","訴"],["诊","診"],["诋","詆"],["诌","謅"],["词","詞"],["诎","詘"],["诏","詔"],["诐","詖"],["译","譯"],["诒","詒"],["诓","誆"],["诔","誄"],["试","試"],["诖","詿"],["诗","詩"],["诘","詰"],["诙","詼"],["诚","誠"],["诛","誅"],["诜","詵"],["话","話"],["诞","誕"],["诟","詬"],["诠","詮"],["诡","詭"],["询","詢"],["诣","詣"],["诤","諍"],["该","該"],["详","詳"],["诧","詫"],["诨","諢"],["诩","詡"],["诪","譸"],["诫","誡"],["诬","誣"],["语","語"],["诮","誚"],["误","誤"],["诰","誥"],["诱","誘"],["诲","誨"],["诳","誑"],["说","說"],["诵","誦"],["诶","誒"],["请","請"],["诸","諸"],["诹","諏"],["诺","諾"],["读","讀"],["诼","諑"],["诽","誹"],["课","課"],["诿","諉"],["谀","諛"],["谁","誰"],["谂","諗"],["调","調"],["谄","諂"],["谅","諒"],["谆","諄"],["谇","誶"],["谈","談"],["谊","誼"],["谋","謀"],["谌","諶"],["谍","諜"],["谎","謊"],["谏","諫"],["谐","諧"],["谑","謔"],["谒","謁"],["谓","謂"],["谔","諤"],["谕","諭"],["谖","諼"],["谗","讒"],["谘","諮"],["谙","諳"],["谚","諺"],["谛","諦"],["谜","謎"],["谝","諞"],["谞","住"],["谟","謨"],["谠","讜"],["谡","謖"],["谢","謝"],["谣","謠"],["谤","謗"],["谥","謚"],["谦","謙"],["谧","謐"],["谨","謹"],["谩","謾"],["谪","謫"],["谫","譾"],["谬","謬"],["谭","譚"],["谮","譖"],["谯","譙"],["谰","讕"],["谱","譜"],["谲","譎"],["谳","讞"],["谴","譴"],["谵","譫"],["谶","讖"],["豮","豶"],["貭","亍"],["貮","貳"],["賍","贓"],["賎","賤"],["賖","賒"],["賘","髒"],["贋","贗"],["贘","償"],["贝","貝"],["贞","貞"],["负","負"],["贡","貢"],["财","財"],["责","責"],["贤","賢"],["败","敗"],["账","賬"],["货","貨"],["质","質"],["贩","販"],["贪","貪"],["贫","貧"],["贬","貶"],["购","購"],["贮","貯"],["贯","貫"],["贰","貳"],["贱","賤"],["贲","賁"],["贳","貰"],["贴","貼"],["贵","貴"],["贶","貺"],["贷","貸"],["贸","貿"],["费","費"],["贺","賀"],["贻","貽"],["贼","賊"],["贽","贄"],["贾","賈"],["贿","賄"],["赀","貲"],["赁","賃"],["赂","賂"],["赃","贓"],["资","資"],["赅","賅"],["赆","贐"],["赇","賕"],["赈","賑"],["赉","賚"],["赊","賒"],["赋","賦"],["赌","賭"],["赍","齎"],["赎","贖"],["赏","賞"],["赐","賜"],["赑","贔"],["赒","賙"],["赓","賡"],["赔","賠"],["赖","賴"],["赗","賵"],["赘","贅"],["赙","賻"],["赚","賺"],["赛","賽"],["赜","賾"],["赝","贗"],["赞","贊"],["赟","贇"],["赠","贈"],["赡","贍"],["赢","贏"],["赣","贛"],["赪","赬"],["赵","趙"],["趋","趨"],["趱","趲"],["趸","躉"],["跃","躍"],["跄","蹌"],["跞","躒"],["践","踐"],["跶","躂"],["跷","蹺"],["跸","蹕"],["跹","躚"],["跻","躋"],["踌","躊"],["踪","蹤"],["踬","躓"],["踯","躑"],["蹑","躡"],["蹒","蹣"],["蹰","躕"],["蹿","躥"],["躏","躪"],["躜","躦"],["躯","軀"],["车","車"],["轧","軋"],["轨","軌"],["轩","軒"],["轪","軑"],["轫","軔"],["转","轉"],["轭","軛"],["轮","輪"],["软","軟"],["轰","轟"],["轱","古"],["轲","軻"],["轳","轤"],["轴","軸"],["轵","軹"],["轶","軼"],["轷","乎"],["轸","軫"],["轹","轢"],["轺","軺"],["轻","輕"],["轼","軾"],["载","載"],["轾","輊"],["轿","轎"],["辀","輈"],["辁","輇"],["辂","輅"],["较","較"],["辄","輒"],["辅","輔"],["辆","輛"],["辇","輦"],["辈","輩"],["辉","輝"],["辊","輥"],["辋","輞"],["辌","輬"],["辍","輟"],["辎","輜"],["辏","輳"],["辐","輻"],["辑","輯"],["辒","轀"],["输","輸"],["辔","轡"],["辕","轅"],["辖","轄"],["辗","輾"],["辘","轆"],["辙","轍"],["辚","轔"],["辞","辭"],["辩","辯"],["辫","辮"],["辬","辨"],["边","邊"],["辽","遼"],["达","達"],["迁","遷"],["过","過"],["迈","邁"],["运","運"],["还","還"],["这","這"],["进","進"],["远","遠"],["违","違"],["连","連"],["迟","遲"],["迩","邇"],["迳","逕"],["迹","跡"],["选","選"],["逊","遜"],["递","遞"],["逦","邐"],["逻","邏"],["遗","遺"],["遥","遙"],["邓","鄧"],["邝","鄺"],["邬","鄔"],["邮","郵"],["邹","鄒"],["邺","鄴"],["邻","鄰"],["郄","卻"],["郏","郟"],["郐","鄶"],["郑","鄭"],["郓","鄆"],["郦","酈"],["郧","鄖"],["郷","鄉"],["郸","鄲"],["鄊","鄉"],["鄕","鄉"],["鄷","酆"],["酝","醞"],["酦","醱"],["酱","醬"],["酽","釅"],["酾","釃"],["酿","釀"],["释","釋"],["釡","斧"],["鉴","鑒"],["銮","鑾"],["錾","鏨"],["鎻","鎖"],["钅","金"],["钆","釓"],["钇","釔"],["针","針"],["钉","釘"],["钊","釗"],["钋","釙"],["钌","釕"],["钍","釷"],["钏","釧"],["钐","釤"],["钑","鈒"],["钒","釩"],["钓","釣"],["钔","鍆"],["钕","釹"],["钖","鍚"],["钗","釵"],["钘","鈃"],["钙","鈣"],["钚","鈽"],["钛","鈦"],["钜","鉅"],["钝","鈍"],["钞","鈔"],["钟","鐘"],["钠","鈉"],["钡","鋇"],["钢","鋼"],["钣","鈑"],["钤","鈐"],["钥","鑰"],["钦","欽"],["钧","鈞"],["钨","鎢"],["钩","鉤"],["钪","鈧"],["钫","鈁"],["钬","鈥"],["钮","鈕"],["钯","鈀"],["钰","鈺"],["钱","錢"],["钲","鉦"],["钳","鉗"],["钴","鈷"],["钵","缽"],["钶","鈳"],["钸","鈽"],["钹","鈸"],["钺","鉞"],["钻","鑽"],["钼","鉬"],["钽","鉭"],["钾","鉀"],["钿","鈿"],["铀","鈾"],["铁","鐵"],["铂","鉑"],["铃","鈴"],["铄","鑠"],["铅","鉛"],["铆","鉚"],["铈","鈰"],["铉","鉉"],["铊","鉈"],["铋","鉍"],["铌","鈮"],["铍","鈹"],["铎","鐸"],["铏","鉶"],["铐","銬"],["铑","銠"],["铒","鉺"],["铓","鋩"],["铔","錏"],["铕","銪"],["铖","鋮"],["铗","鋏"],["铘","邪"],["铙","鐃"],["铚","銍"],["铛","鐺"],["铜","銅"],["铝","鋁"],["铞","吊"],["铟","銦"],["铠","鎧"],["铡","鍘"],["铢","銖"],["铣","銑"],["铤","鋌"],["铥","銩"],["铦","銛"],["铧","鏵"],["铨","銓"],["铩","鎩"],["铪","鉿"],["铫","銚"],["铬","鉻"],["铭","銘"],["铮","錚"],["铯","銫"],["铰","鉸"],["铱","銥"],["铲","鏟"],["铳","銃"],["铴","鐋"],["铵","銨"],["银","銀"],["铷","銣"],["铸","鑄"],["铹","鐒"],["铺","鋪"],["铻","鋙"],["铼","錸"],["铽","鋱"],["链","鏈"],["铿","鏗"],["销","銷"],["锁","鎖"],["锂","鋰"],["锃","呈"],["锄","鋤"],["锅","鍋"],["锆","鋯"],["锇","鋨"],["锈","鏽"],["锉","銼"],["锊","鋝"],["锋","鋒"],["锌","鋅"],["锍","琉"],["锎","鉲"],["锏","閒"],["锐","銳"],["锑","銻"],["锒","鋃"],["锓","鋟"],["锔","鋦"],["锕","錒"],["锖","錆"],["锗","鍺"],["锘","若"],["错","錯"],["锚","錨"],["锛","錛"],["锜","錡"],["锝","鎝"],["锞","錁"],["锟","錕"],["锠","琛"],["锡","錫"],["锢","錮"],["锣","鑼"],["锤","錘"],["锥","錐"],["锦","錦"],["锧","鑕"],["锨","杴"],["锪","忽"],["锫","培"],["锬","錟"],["锭","錠"],["键","鍵"],["锯","鋸"],["锰","錳"],["锱","錙"],["锲","鍥"],["锴","鍇"],["锵","鏘"],["锶","鍶"],["锷","鍔"],["锸","鍤"],["锹","鍬"],["锺","鍾"],["锻","鍛"],["锼","鎪"],["锽","鍠"],["锾","鍰"],["锿","鑀"],["镀","鍍"],["镁","鎂"],["镂","鏤"],["镃","鎡"],["镄","鐨"],["镅","鋂"],["镆","鏌"],["镇","鎮"],["镈","鎛"],["镉","鎘"],["镊","鑷"],["镋","钂"],["镌","鐫"],["镍","鎳"],["镎","拿"],["镏","鎦"],["镐","鎬"],["镑","鎊"],["镒","鎰"],["镓","鎵"],["镔","鑌"],["镕","鎔"],["镖","鏢"],["镗","鏜"],["镘","鏝"],["镙","鏍"],["镛","鏞"],["镜","鏡"],["镝","鏑"],["镞","鏃"],["镟","鏇"],["镠","鏐"],["镡","鐔"],["镢","钁"],["镣","鐐"],["镤","鏷"],["镥","魯"],["镧","鑭"],["镨","鐠"],["镩","串"],["镪","鏹"],["镫","鐙"],["镬","鑊"],["镭","鐳"],["镮","鐶"],["镯","鐲"],["镰","鐮"],["镱","鐿"],["镲","察"],["镳","鑣"],["镴","鑞"],["镵","鑱"],["镶","鑲"],["长","長"],["閲","閱"],["门","門"],["闩","閂"],["闪","閃"],["闫","閆"],["闬","閈"],["闭","閉"],["问","問"],["闯","闖"],["闰","閏"],["闱","闈"],["闲","閒"],["闳","閎"],["间","間"],["闵","閔"],["闶","閌"],["闷","悶"],["闸","閘"],["闹","鬧"],["闺","閨"],["闻","聞"],["闼","闥"],["闽","閩"],["闾","閭"],["闿","闓"],["阀","閥"],["阁","閣"],["阂","閡"],["阃","閫"],["阄","鬮"],["阅","閱"],["阆","閬"],["阇","闍"],["阈","閾"],["阉","閹"],["阊","閶"],["阋","鬩"],["阌","閿"],["阍","閽"],["阎","閻"],["阏","閼"],["阐","闡"],["阑","闌"],["阒","闃"],["阓","闠"],["阔","闊"],["阕","闋"],["阖","闔"],["阗","闐"],["阘","闒"],["阙","闕"],["阚","闞"],["阛","闤"],["阝","阜"],["队","隊"],["阳","陽"],["阴","陰"],["阵","陣"],["阶","階"],["际","際"],["陆","陸"],["陇","隴"],["陈","陳"],["陉","陘"],["陕","陝"],["陧","隉"],["陨","隕"],["险","險"],["隂","陰"],["隌","暗"],["随","隨"],["隐","隱"],["隠","隱"],["隷","隸"],["隽","雋"],["难","難"],["雏","雛"],["雠","讎"],["雳","靂"],["雾","霧"],["霁","霽"],["霊","靈"],["霭","靄"],["靓","靚"],["静","靜"],["靥","靨"],["鞑","韃"],["鞒","轎"],["鞯","韉"],["鞲","韝"],["鞽","轎"],["韦","韋"],["韧","韌"],["韨","韍"],["韩","韓"],["韪","韙"],["韫","韞"],["韬","韜"],["韯","籤"],["韲","齋"],["韵","韻"],["顋","腮"],["顔","顏"],["顕","顯"],["页","頁"],["顶","頂"],["顷","頃"],["顸","頇"],["项","項"],["顺","順"],["须","須"],["顼","頊"],["顽","頑"],["顾","顧"],["顿","頓"],["颀","頎"],["颁","頒"],["颂","頌"],["颃","頏"],["预","預"],["颅","顱"],["领","領"],["颇","頗"],["颈","頸"],["颉","頡"],["颊","頰"],["颋","頲"],["颌","頜"],["颍","潁"],["颎","熲"],["颏","頦"],["颐","頤"],["频","頻"],["颓","頹"],["颔","頷"],["颕","穎"],["颖","穎"],["颗","顆"],["题","題"],["颙","顒"],["颚","顎"],["颛","顓"],["颜","顏"],["额","額"],["颞","顳"],["颟","顢"],["颠","顛"],["颡","顙"],["颢","顥"],["颣","纇"],["颤","顫"],["颥","須"],["颦","顰"],["颧","顴"],["颷","飆"],["风","風"],["飏","颺"],["飐","颭"],["飑","颮"],["飒","颯"],["飓","颶"],["飔","颸"],["飕","颼"],["飖","颻"],["飗","飀"],["飘","飄"],["飙","飆"],["飚","飆"],["飞","飛"],["飨","饗"],["飬","養"],["飮","飲"],["飱","餐"],["餍","饜"],["饣","食"],["饤","飣"],["饥","飢"],["饦","飥"],["饧","餳"],["饨","飩"],["饩","餼"],["饪","飪"],["饫","飫"],["饬","飭"],["饭","飯"],["饮","飲"],["饯","餞"],["饰","飾"],["饱","飽"],["饲","飼"],["饴","飴"],["饵","餌"],["饶","饒"],["饷","餉"],["饺","餃"],["饼","餅"],["饽","餑"],["饾","餖"],["饿","餓"],["馀","餘"],["馁","餒"],["馂","餕"],["馄","餛"],["馅","餡"],["馆","館"],["馇","查"],["馈","饋"],["馉","稹"],["馊","餿"],["馋","饞"],["馌","饁"],["馍","饃"],["馎","餺"],["馏","餾"],["馐","饈"],["馑","饉"],["馒","饅"],["馓","饊"],["馔","饌"],["馕","囊"],["马","馬"],["驭","馭"],["驮","馱"],["驯","馴"],["驰","馳"],["驱","驅"],["驲","馹"],["驳","駁"],["驴","驢"],["驵","駔"],["驶","駛"],["驷","駟"],["驸","駙"],["驹","駒"],["驺","騶"],["驻","駐"],["驼","駝"],["驽","駑"],["驾","駕"],["驿","驛"],["骀","駘"],["骁","驍"],["骂","罵"],["骃","駰"],["骄","驕"],["骅","驊"],["骆","駱"],["骇","駭"],["骈","駢"],["骊","驪"],["骋","騁"],["验","驗"],["骍","騂"],["骎","駸"],["骏","駿"],["骐","騏"],["骑","騎"],["骒","騍"],["骓","騅"],["骕","驌"],["骖","驂"],["骗","騙"],["骘","騭"],["骙","騤"],["骚","騷"],["骛","騖"],["骜","驁"],["骝","騮"],["骞","騫"],["骟","騸"],["骠","驃"],["骡","騾"],["骢","驄"],["骣","驏"],["骤","驟"],["骥","驥"],["骦","驦"],["骧","驤"],["髅","髏"],["髋","髖"],["髌","髕"],["鬓","鬢"],["魇","魘"],["魉","魎"],["鱼","魚"],["鱿","魷"],["鲀","魨"],["鲁","魯"],["鲂","魴"],["鲅","鱍"],["鲆","平"],["鲇","占"],["鲈","鱸"],["鲊","鮓"],["鲋","鮒"],["鲍","鮑"],["鲎","鱟"],["鲐","鮐"],["鲑","鮭"],["鲒","鮚"],["鲔","鮪"],["鲕","鮞"],["鲖","鮦"],["鲙","鱠"],["鲚","鱭"],["鲛","鮫"],["鲜","鮮"],["鲞","鯗"],["鲟","鱘"],["鲠","鯁"],["鲡","鱺"],["鲢","鰱"],["鲣","鰹"],["鲤","鯉"],["鲥","鰣"],["鲦","鰷"],["鲧","鯀"],["鲨","鯊"],["鲩","鯇"],["鲫","鯽"],["鲭","鯖"],["鲮","鯪"],["鲰","鯫"],["鲱","鯡"],["鲲","鯤"],["鲳","鯧"],["鲴","固"],["鲵","鯢"],["鲶","鯰"],["鲷","鯛"],["鲸","鯨"],["鲺","虱"],["鲻","鯔"],["鲼","賁"],["鲽","鰈"],["鲿","鱨"],["鳀","鯷"],["鳃","鰓"],["鳄","鱷"],["鳅","鰍"],["鳆","鰒"],["鳇","鰉"],["鳊","扁"],["鳋","蚤"],["鳌","鰲"],["鳍","鰭"],["鳏","鰥"],["鳐","鰩"],["鳒","鰜"],["鳔","鰾"],["鳕","鱈"],["鳖","鱉"],["鳗","鰻"],["鳘","鱉"],["鳙","庸"],["鳛","鰼"],["鳜","鱖"],["鳝","鱔"],["鳞","鱗"],["鳟","鱒"],["鳡","鰲"],["鳢","鱧"],["鳣","鱣"],["鸟","鳥"],["鸠","鳩"],["鸡","雞"],["鸢","鳶"],["鸣","鳴"],["鸤","鳲"],["鸥","鷗"],["鸦","鴉"],["鸧","鶬"],["鸨","鴇"],["鸩","鴆"],["鸪","鴣"],["鸬","鸕"],["鸭","鴨"],["鸮","鴞"],["鸯","鴦"],["鸰","鴒"],["鸱","鴟"],["鸲","鴝"],["鸳","鴛"],["鸵","鴕"],["鸶","鷥"],["鸷","鷙"],["鸹","鴰"],["鸺","鵂"],["鸼","鵃"],["鸽","鴿"],["鸾","鸞"],["鸿","鴻"],["鹁","鵓"],["鹂","鸝"],["鹃","鵑"],["鹄","鵠"],["鹅","鵝"],["鹆","鵒"],["鹇","鷳"],["鹈","鵜"],["鹉","鵡"],["鹊","鵲"],["鹋","苗"],["鹌","鵪"],["鹎","鵯"],["鹏","鵬"],["鹑","鶉"],["鹒","鶊"],["鹓","鵷"],["鹔","鷫"],["鹕","鶘"],["鹖","鶡"],["鹗","鶚"],["鹘","鶻"],["鹙","鶖"],["鹚","鶿"],["鹛","眉"],["鹜","鶩"],["鹝","鷊"],["鹞","鷂"],["鹠","鶹"],["鹡","鶺"],["鹢","鷁"],["鹣","鶼"],["鹤","鶴"],["鹥","鷖"],["鹦","鸚"],["鹧","鷓"],["鹨","鷚"],["鹩","鷯"],["鹪","鷦"],["鹫","鷲"],["鹬","鷸"],["鹭","鷺"],["鹯","鸇"],["鹰","鷹"],["鹱","獲"],["鹲","鸏"],["鹳","鸛"],["鹾","鹺"],["麦","麥"],["麸","麩"],["麹","麴"],["麺","麵"],["麽","麼"],["黄","黃"],["黉","黌"],["黒","黑"],["黙","默"],["黡","黶"],["黩","黷"],["黪","黲"],["黾","黽"],["鼋","黿"],["鼍","鼉"],["鼗","鞀"],["鼹","鼴"],["齄","皻"],["齐","齊"],["齑","齏"],["齿","齒"],["龀","齔"],["龁","齕"],["龂","齗"],["龃","齟"],["龄","齡"],["龅","齙"],["龆","齠"],["龇","齜"],["龈","齦"],["龉","齬"],["龊","齪"],["龋","齲"],["龌","齷"],["龙","龍"],["龚","龔"],["龛","龕"],["龟","龜"]]);function i(e){if(!e)return"";let t="";for(let n=0;n<e.length;n++)t+=r.get(e[n])||e[n];return t}var c=n(38),s=n(2);function l(e){return Promise.reject(new Error("NO_RESULT"))}function d(e){return Promise.reject(new Error("NETWORK_ERROR"))}function u(e){const t=new Error("MANUAL_VERIFICATION");return t.manualVerification=e,Promise.reject(t)}function p(e){return e&&"MANUAL_VERIFICATION"===e.message&&e.manualVerification&&"string"==typeof e.manualVerification.url}function h(e){return{result:{type:"MANUAL_VERIFICATION",...e}}}function m(e){return e&&"MANUAL_VERIFICATION"===e.type&&"string"==typeof e.url}async function f(e){return null==e||/zh-TW|zh-HK/i.test(e)?i:null}function g(e,...t){if(!e)return"";let n="",a=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(a=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const r=o.textContent||"";return a?a(r):r}const b={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function y(e,{mode:t="innerHTML",selector:n,transform:a,host:r,config:i=b}={}){const l=n?e.querySelector(n):e;if(!l)return"";if(r){const e=e=>{e.getAttribute("href")&&e.setAttribute("href",_(r,e,"href")),e.getAttribute("src")&&e.setAttribute("src",_(r,e,"src")),Object(s.g)()&&e.getAttribute("srcset")&&e.setAttribute("srcset",e.getAttribute("srcset").replace(/(,| |^)\/\//g,(e,t)=>t+"https://"))};(Object(c.a)(l,"a")||Object(c.a)(l,"img"))&&e(l),l.querySelectorAll("a").forEach(e),l.querySelectorAll("img").forEach(e)}const d=o.a.sanitize(l,{...i,RETURN_DOM_FRAGMENT:!0}),u=d.firstChild?d.firstChild[t]:"";return a?a(u):u}function w(e,t,n={}){return y(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function x(e,t,n={}){return y(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function v(e,t){const n=e.querySelector(t);n&&n.remove()}function E(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function O(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function _(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const a=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?a+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},31:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));n(139);var a=n(47),o=n.n(a);function r(e,t){return o()(e,{withCredentials:!1,headers:{Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",...null==t?void 0:t.headers},...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function i(e,t){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},33:function(e,t,n){"use strict";n.d(t,"h",(function(){return m})),n.d(t,"i",(function(){return f})),n.d(t,"k",(function(){return g})),n.d(t,"f",(function(){return b})),n.d(t,"m",(function(){return y})),n.d(t,"b",(function(){return w})),n.d(t,"j",(function(){return x})),n.d(t,"e",(function(){return v})),n.d(t,"l",(function(){return O})),n.d(t,"g",(function(){return _})),n.d(t,"n",(function(){return k})),n.d(t,"c",(function(){return C})),n.d(t,"a",(function(){return j})),n.d(t,"d",(function(){return S}));var a=n(90),o=n.n(a),r=n(78),i=n(185),c=n(1),s=n(100),l=n(67),d=n(81),u=n(10);function p(e){return{v:1,d:o.a.deflate(JSON.stringify(e),{to:"string"})}}function h(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}function m(e,t){const n=/^%%_(\S+)_%%$/.exec(e);return n&&t("common:profile."+n[1])||e}async function f(){let e=[],t=[],n="";const a=await c.c.sync.get(["profileIDList","activeProfileID"]);if(a.profileIDList&&(t=a.profileIDList.filter(e=>Boolean(e&&"string"==typeof e.id&&"string"==typeof e.name))),a.activeProfileID&&(n=a.activeProfileID),t.length>0)for(const{id:n}of t){const t=await b(n);e.push(t?Object(i.a)(t):Object(r.b)(n))}else({profileIDList:t,profiles:e}=Object(r.a)()),n=t[0].id;n||(n=t[0].id);let o=e.find(({id:e})=>e===n);o||(o=e[0],n=o.id),await c.c.sync.set({profileIDList:t,activeProfileID:n});for(const t of e)await y(t);return o}async function g(){const{profileIDList:e}=await c.c.sync.get("profileIDList");return e&&await c.c.sync.remove([...e.map(({id:e})=>e),"profileIDList","activeProfileID","configProfileIDs","activeConfigID"]),f()}async function b(e){return h((await c.c.sync.get(e))[e])}async function y(e){return c.c.sync.set({[e.id]:p(e)})}async function w(e){const t=e.id,n=await _();return c.c.sync.set({profileIDList:[...n,e],[t]:p(Object(r.b)(t))})}async function x(e){const t=await E();let n=await _();return n=n.filter(t=>t.id!==e),t===e&&await O(n[0].id),await k(n),c.c.sync.remove(e)}async function v(){const e=await E();if(e){const t=await b(e);if(t)return t}return Object(r.b)()}async function E(){return(await c.c.sync.get("activeProfileID")).activeProfileID||""}function O(e){return c.c.sync.set({activeProfileID:e})}async function _(){return(await c.c.sync.get("profileIDList")).profileIDList||[]}function k(e){return c.c.sync.set({profileIDList:e})}function C(e){c.c.sync.addListener("profileIDList",({profileIDList:t})=>{t&&t.newValue&&e(t)})}async function j(e){let t=await E();c.c.sync.addListener(n=>{if(n.activeProfileID){const{newValue:a,oldValue:o}=n.activeProfileID;a&&(t=a,o?c.c.sync.get([o,a]).then(t=>{t[a]&&e({newProfile:h(t[a]),oldProfile:h(t[o])})}):b(a).then(t=>{t&&e({newProfile:t})}))}if(t&&n[t]){const{newValue:a,oldValue:o}=n[t];if(a)return void e({newProfile:h(a),oldProfile:h(o)})}})}function S(){return Object(s.a)(Object(l.a)(_()),Object(d.a)(C).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newValue)))}},353:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return i})),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return s}));var a=n(16),o=n(664),r=n(12);const i=Object(a.a)(()=>new o.Baidu({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.BAIDU_APPID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.BAIDU_KEY?{appid:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.BAIDU_APPID,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.BAIDU_KEY}:void 0})),c=(e,t,n)=>`https://fanyi.baidu.com/#auto/${"default"===n.dicts.all.baidu.options.tl?"zh-CN"===t.langCode?"zh":"zh-TW"===t.langCode?"cht":"en":n.dicts.all.baidu.options.tl}/${e}`,s=async(e,t,n,a)=>{const o=i(),{sl:c,tl:s,text:l}=await Object(r.a)(o,e,n.dicts.all.baidu,t,a),d=t.dictAuth.baidu.appid,u=t.dictAuth.baidu.key,p=d&&u?{appid:d,key:u}:void 0;try{const e=await o.translate(l,c,s,p);return Object(r.c)({result:{id:"baidu",slInitial:n.dicts.all.baidu.options.slInitial,sl:e.from,tl:e.to,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"baidu",slInitial:"hide",sl:c,tl:s,searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},354:function(e,t,n){"use strict";n.d(t,"a",(function(){return V}));var a=n(23),o=n(33),r=n(2),i=n(11),c=n(1),s=n(0),l=n.n(s),d=n(125),u=n(190),p=n(136),h=n(736),m=n(404),f=n(10),g=n(508),b=n(9);const y=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn-dir",title:t("tip.historyBack"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M 7.191 15.999 L 21.643 1.548 C 21.998 1.192 21.998 0.622 21.643 0.267 C 21.288 -0.089 20.718 -0.089 20.362 0.267 L 5.267 15.362 C 4.911 15.718 4.911 16.288 5.267 16.643 L 20.362 31.732 C 20.537 31.906 20.771 32 20.999 32 C 21.227 32 21.462 31.913 21.636 31.732 C 21.992 31.377 21.992 30.807 21.636 30.451 L 7.191 15.999 Z"})))},w=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn-dir",title:e.t("tip.historyNext"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},l.a.createElement("path",{d:"M 25.643 15.362 L 10.547 0.267 C 10.192 -0.089 9.622 -0.089 9.267 0.267 C 8.911 0.622 8.911 1.192 9.267 1.547 L 23.718 15.999 L 9.267 30.451 C 8.911 30.806 8.911 31.376 9.267 31.732 C 9.441 31.906 9.676 32 9.904 32 C 10.132 32 10.366 31.913 10.541 31.732 L 25.636 16.636 C 25.992 16.288 25.992 15.711 25.643 15.362 Z"})))},x=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.searchText"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52.966 52.966"},l.a.createElement("path",{d:"M51.704 51.273L36.844 35.82c3.79-3.8 6.14-9.04 6.14-14.82 0-11.58-9.42-21-21-21s-21 9.42-21 21 9.42 21 21 21c5.082 0 9.747-1.817 13.383-4.832l14.895 15.49c.196.206.458.308.72.308.25 0 .5-.093.694-.28.398-.382.41-1.015.028-1.413zM21.984 40c-10.478 0-19-8.523-19-19s8.522-19 19-19 19 8.523 19 19-8.525 19-19 19z"})))},v=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openOptions"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 612 612"},l.a.createElement("path",{d:"M0 97.92v24.48h612V97.92H0zm0 220.32h612v-24.48H0v24.48zm0 195.84h612V489.6H0v24.48z"})))},E=e=>{const{t:t,isFav:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.addToNotebook"),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon-fav"+(n?" isActive":""),width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},l.a.createElement("path",{d:"M 23.363 2 C 20.105 2 17.3 4.65 16.001 7.42 C 14.701 4.65 11.896 2 8.637 2 C 4.145 2 0.5 5.646 0.5 10.138 C 0.5 19.278 9.719 21.673 16.001 30.708 C 21.939 21.729 31.5 18.986 31.5 10.138 C 31.5 5.646 27.855 2 23.363 2 Z"})))},O=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openHistory"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon-history",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},l.a.createElement("path",{d:"M34.688 3.315c-15.887 0-28.812 12.924-28.81 28.73-.012.25-.157 4.434 1.034 8.94l-3.88-2.262c-.965-.56-2.193-.235-2.76.727-.557.96-.233 2.195.728 2.755l9.095 5.302c.02.01.038.013.056.022.1.05.2.09.31.12.07.02.14.05.21.07.09.02.176.02.265.03.06.003.124.022.186.022.036 0 .07-.01.105-.015.034 0 .063.007.097.004.05-.003.097-.024.146-.032.097-.017.19-.038.28-.068.08-.028.157-.06.23-.095.086-.04.165-.085.24-.137.074-.046.14-.096.206-.15.07-.06.135-.125.198-.195.06-.067.11-.135.16-.207.026-.04.062-.07.086-.11.017-.03.017-.067.032-.1.03-.053.07-.1.096-.16l3.62-8.96c.417-1.03-.08-2.205-1.112-2.622-1.033-.413-2.207.083-2.624 1.115l-1.86 4.6c-1.24-4.145-1.1-8.406-1.093-8.523C9.92 18.455 21.04 7.34 34.7 7.34c13.663 0 24.78 11.116 24.78 24.78S48.357 56.9 34.694 56.9c-1.114 0-2.016.902-2.016 2.015s.9 2.02 2.012 2.02c15.89 0 28.81-12.925 28.81-28.81 0-15.89-12.923-28.814-28.81-28.814z"}),l.a.createElement("path",{d:"M33.916 36.002c.203.084.417.114.634.13.045.002.09.026.134.026.236 0 .465-.054.684-.134.06-.022.118-.054.177-.083.167-.08.32-.18.463-.3.03-.023.072-.033.103-.07L48.7 22.98c.788-.79.788-2.064 0-2.852-.787-.788-2.062-.788-2.85 0l-11.633 11.63-10.44-4.37c-1.032-.432-2.208.052-2.64 1.08-.43 1.027.056 2.208 1.08 2.638L33.907 36c.002 0 .006 0 .01.002z"})))},_=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openNotebook"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 64 64"},l.a.createElement("path",{d:"M 57.389 0.966 L 6.612 0.966 C 5.699 0.966 4.957 1.525 4.957 2.217 L 4.957 61.783 C 4.955 62.282 5.342 62.734 5.949 62.933 C 6.16 63.001 6.385 63.036 6.612 63.034 C 7.023 63.032 7.417 62.917 7.723 62.709 L 32.003 46.006 L 56.282 62.709 C 57.227 63.354 58.742 62.983 59.008 62.041 C 59.033 61.956 59.044 61.871 59.044 61.783 L 59.044 2.217 C 59.044 1.525 58.306 0.966 57.389 0.966 Z M 33.111 43.392 C 32.478 42.954 31.508 42.954 30.875 43.392 L 8.266 58.955 L 8.266 3.469 L 55.735 3.469 L 55.735 58.955 L 33.111 43.392 Z"}),l.a.createElement("path",{d:"M 47.508 17.756 C 47.287 17.526 46.994 17.375 46.677 17.33 L 37.446 15.988 L 33.262 7.693 C 32.767 6.7 31.382 6.614 30.77 7.541 C 30.737 7.59 30.708 7.641 30.68 7.693 L 26.555 16.06 L 17.325 17.401 C 16.225 17.56 15.712 18.849 16.399 19.722 C 16.44 19.774 16.484 19.822 16.532 19.867 L 23.252 26.3 L 21.723 35.561 C 21.541 36.655 22.613 37.537 23.653 37.146 C 23.708 37.127 23.763 37.102 23.816 37.076 L 32.066 32.748 L 40.316 37.076 C 41.3 37.59 42.472 36.845 42.425 35.737 C 42.423 35.679 42.417 35.619 42.407 35.561 L 40.792 26.3 L 47.472 19.794 C 48.045 19.243 48.061 18.33 47.508 17.756 Z M 38.238 24.857 C 37.899 25.186 37.744 25.661 37.821 26.127 L 39.031 33.165 L 32.687 29.835 C 32.265 29.613 31.765 29.613 31.344 29.835 L 25.013 33.165 L 26.223 26.113 C 26.3 25.646 26.145 25.174 25.806 24.844 L 20.685 19.853 L 27.768 18.743 C 28.236 18.672 28.641 18.376 28.849 17.95 L 32.023 11.531 L 35.196 17.95 C 35.403 18.376 35.808 18.672 36.277 18.743 L 43.36 19.766 L 38.238 24.857 Z"})))},k=e=>{const{t:t,isPinned:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.pinPanel"),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 53.011 53.011"},l.a.createElement("path",{className:"menuBar-Btn_Icon-pin"+(n?" isActive":""),d:"M52.963 21.297c-.068-.33-.297-.603-.61-.727-8.573-3.416-16.172-.665-18.36.288L19.113 8.2C19.634 3.632 17.17.508 17.06.372c-.18-.22-.442-.356-.725-.372-.282-.006-.56.09-.76.292L.32 15.546c-.202.2-.308.48-.29.765.015.285.152.55.375.727 2.775 2.202 6.35 2.167 7.726 2.055l12.722 14.953c-.868 2.23-3.52 10.27-.307 18.337.124.313.397.54.727.61.067.013.135.02.202.02.263 0 .518-.104.707-.293l14.57-14.57 13.57 13.57c.196.194.452.292.708.292s.512-.098.707-.293c.39-.392.39-1.024 0-1.415l-13.57-13.57 14.527-14.528c.237-.238.34-.58.27-.91zm-17.65 15.458L21.89 50.18c-2.437-8.005.993-15.827 1.03-15.91.158-.352.1-.764-.15-1.058L9.31 17.39c-.19-.225-.473-.352-.764-.352-.05 0-.103.004-.154.013-.036.007-3.173.473-5.794-.954l13.5-13.5c.604 1.156 1.39 3.26.964 5.848-.058.346.07.697.338.924l15.785 13.43c.31.262.748.31 1.105.128.077-.04 7.378-3.695 15.87-1.017L35.313 36.754z"})))},C=e=>{const{t:t,isFocus:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip."+(n?"focusPanel":"unfocusPanel")),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 53 53"},n?l.a.createElement(l.a.Fragment,null,l.a.createElement("path",{d:"M 36.414 35 L 46 35 C 46.553 35 47 34.552 47 34 C 47 33.448 46.553 33 46 33 L 34 33 C 33.87 33 33.74 33.027 33.618 33.077 C 33.374 33.178 33.179 33.373 33.077 33.618 C 33.026 33.74 33 33.869 33 34 L 33 46 C 33 46.552 33.448 47 34 47 C 34.552 47 35 46.552 35 46 L 35 36.414 L 51.293 52.707 C 51.488 52.902 51.744 53 52 53 C 52.256 53 52.512 52.902 52.707 52.707 C 53.098 52.316 53.098 51.684 52.707 51.293 L 36.414 35 Z"}),l.a.createElement("path",{d:"M 16.584 17.999 L 6.999 17.999 C 6.447 17.999 5.999 18.447 5.999 18.999 C 5.999 19.551 6.447 19.999 6.999 19.999 L 18.999 19.999 C 19.129 19.999 19.259 19.972 19.381 19.922 C 19.625 19.821 19.82 19.626 19.922 19.381 C 19.973 19.259 19.999 19.129 19.999 18.999 L 19.999 6.999 C 19.999 6.447 19.551 5.999 18.999 5.999 C 18.447 5.999 17.999 6.447 17.999 6.999 L 17.999 16.585 L 1.707 0.293 C 1.316 -0.098 0.684 -0.098 0.293 0.293 C -0.098 0.684 -0.098 1.316 0.293 1.707 L 16.584 17.999 Z"}),l.a.createElement("path",{d:"M 19.382 33.077 C 19.26 33.027 19.13 33 19 33 L 7 33 C 6.448 33 6 33.448 6 34 C 6 34.552 6.448 35 7 35 L 16.586 35 L 0.293 51.293 C -0.098 51.684 -0.098 52.316 0.293 52.707 C 0.488 52.902 0.744 53 1 53 C 1.256 53 1.512 52.902 1.707 52.707 L 18 36.414 L 18 46 C 18 46.552 18.448 47 19 47 C 19.552 47 20 46.552 20 46 L 20 34 C 20 33.87 19.973 33.74 19.923 33.618 C 19.821 33.373 19.627 33.179 19.382 33.077 Z"}),l.a.createElement("path",{d:"M 33.618 19.923 C 33.74 19.973 33.87 20 34 20 L 46 20 C 46.553 20 47 19.552 47 19 C 47 18.448 46.553 18 46 18 L 36.414 18 L 52.707 1.707 C 53.098 1.316 53.098 0.684 52.707 0.293 C 52.316 -0.098 51.684 -0.098 51.293 0.293 L 35 16.586 L 35 7 C 35 6.448 34.552 6 34 6 C 33.448 6 33 6.448 33 7 L 33 19 C 33 19.13 33.027 19.26 33.077 19.382 C 33.179 19.627 33.373 19.821 33.618 19.923 Z"}),l.a.createElement("path",{d:"M 26.5 19 C 22.364 19 19 22.364 19 26.5 C 19 30.636 22.364 34 26.5 34 C 30.636 34 34 30.636 34 26.5 C 34 22.364 30.636 19 26.5 19 Z M 26.5 32 C 23.467 32 21 29.533 21 26.5 C 21 23.467 23.467 21 26.5 21 C 29.533 21 32 23.467 32 26.5 C 32 29.533 29.533 32 26.5 32 Z"})):l.a.createElement(l.a.Fragment,null,l.a.createElement("path",{d:"M 34 20 C 33.744 20 33.488 19.902 33.293 19.707 C 32.902 19.316 32.902 18.684 33.293 18.293 L 49.586 2 L 40 2 C 39.448 2 39 1.552 39 1 C 39 0.448 39.448 0 40 0 L 51.978 0 C 52.241 -0.006 52.506 0.092 52.707 0.293 C 52.908 0.494 53.006 0.759 53 1.022 L 53 13 C 53 13.552 52.552 14 52 14 C 51.448 14 51 13.552 51 13 L 51 3.414 L 34.707 19.707 C 34.512 19.902 34.256 20 34 20 Z"}),l.a.createElement("path",{d:"M 0.293 52.707 C 0.092 52.506 -0.006 52.241 0 51.978 L 0 40 C 0 39.448 0.448 39 1 39 C 1.552 39 2 39.448 2 40 L 2 49.586 L 18.293 33.293 C 18.684 32.902 19.316 32.902 19.707 33.293 C 20.098 33.684 20.098 34.316 19.707 34.707 L 3.414 51 L 13 51 C 13.552 51 14 51.448 14 52 C 14 52.552 13.552 53 13 53 L 1 53 C 0.879 53 0.764 52.979 0.658 52.94 C 0.602 52.919 0.548 52.894 0.498 52.865 C 0.424 52.822 0.355 52.769 0.293 52.707 Z"}),l.a.createElement("path",{d:"M 33.293 34.707 C 32.902 34.316 32.902 33.684 33.293 33.293 C 33.684 32.902 34.316 32.902 34.707 33.293 L 51 49.586 L 51 40 C 51 39.448 51.448 39 52 39 C 52.552 39 53 39.448 53 40 L 53 51.978 C 53.006 52.241 52.908 52.506 52.707 52.707 C 52.645 52.769 52.576 52.822 52.502 52.865 C 52.452 52.894 52.398 52.919 52.342 52.94 C 52.236 52.979 52.121 53 52 53 L 40 53 C 39.448 53 39 52.552 39 52 C 39 51.448 39.448 51 40 51 L 49.586 51 Z"}),l.a.createElement("path",{d:"M 18.999 19.999 C 18.743 19.999 18.487 19.901 18.292 19.706 L 2 3.414 L 2 13 C 2 13.552 1.552 14 1 14 C 0.448 14 0 13.552 0 13 L 0 1.022 C -0.006 0.759 0.092 0.494 0.293 0.293 C 0.494 0.092 0.759 -0.006 1.022 0 L 13 0 C 13.552 0 14 0.448 14 1 C 14 1.552 13.552 2 13 2 L 3.414 2 L 19.706 18.292 C 20.097 18.683 20.097 19.315 19.706 19.706 C 19.51 19.901 19.254 19.999 18.999 19.999 Z"}))))},j=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.closePanel"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 31.112 31.112"},l.a.createElement("path",{d:"M31.112 1.414L29.698 0 15.556 14.142 1.414 0 0 1.414l14.142 14.142L0 29.698l1.414 1.414L15.556 16.97l14.142 14.142 1.414-1.414L16.97 15.556"})))},S=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.sidebar"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},l.a.createElement("path",{d:"M 29.318 0 L 0.682 0 C 0.305 0 0 0.305 0 0.682 L 0 29.318 C 0 29.695 0.305 30 0.682 30 L 29.318 30 C 29.695 30 30 29.695 30 29.318 L 30 0.682 C 30 0.305 29.695 0 29.318 0 Z M 9.545 28.636 L 1.364 28.636 L 1.364 1.364 L 9.545 1.364 L 9.545 28.636 Z M 28.636 28.636 L 10.909 28.636 L 10.909 1.364 L 28.636 1.364 L 28.636 28.636 Z"})))};var A=n(94),M=n(30),I=n(256),T=n(112),N=n(39),D=n(187),z=n(88),L=n(182),P=n(92),B=n(67),R=n(121),F=n(140);const H=l.a.forwardRef((e,t)=>Object(I.a)(Object(p.a)(n=>n.pipe(Object(f.a)(([e])=>e),Object(N.a)(Boolean),Object(L.a)(),Object(m.a)(750),Object(R.a)(n=>Object(B.a)(c.a.send({type:"GET_SUGGESTS",payload:n}).catch(()=>[])).pipe(Object(f.a)(n=>l.a.createElement(F.a,{ref:t,list:n.map(e=>({key:e.entry,value:e.entry,label:l.a.createElement(l.a.Fragment,null,l.a.createElement("span",{className:"menuBar-SuggestsEntry"},e.entry),l.a.createElement("span",{className:"menuBar-SuggestsExplain"},e.explain))})),...e})),Object(g.a)(l.a.createElement(F.a,{...e}))))),[e.text]),()=>l.a.createElement(F.a,{...e}))),U=e=>{const t=Object(s.useMemo)(()=>e.text.replace(/\s+/g," "),[e.text]),[n,a]=Object(d.a)(P.a),[o,r]=Object(d.a)(P.a),[i,u]=Object(d.a)(M.b),m=Object(I.a)(Object(p.a)(e=>Object(h.a)([e,Object(T.a)(a.pipe(Object(N.a)(e=>!e)),r,u.pipe(Object(D.a)(0)),c.a.createStream("SEARCH_TEXT_BOX").pipe(Object(z.a)(!1)))]).pipe(Object(f.a)(([[e,t],n])=>Boolean(e&&t&&n)),Object(L.a)()),[e.enableSuggest,e.text]),!1),g=Object(I.a)(a),b=Object(s.useRef)(!1),y=Object(s.useRef)(null),w=Object(s.useRef)(null),v=Object(s.useRef)(()=>{y.current&&(y.current.focus(),y.current.select())}).current,E=t=>{b.current=!1,i(!1),e.onSearch("string"==typeof t?t:e.text),v()},O=()=>{!e.shouldFocus||b.current||m||v()};return Object(s.useLayoutEffect)(O,[]),Object(s.useEffect)(O,[e.text]),l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"menuBar-SearchBox_Wrap"+(g?" isExpand":"")},l.a.createElement("input",{type:"text",className:"menuBar-SearchBox",key:"search-box",ref:y,onChange:t=>{e.onInput(t.currentTarget.value),i(!0)},onKeyDown:t=>{if(t.nativeEvent.stopPropagation(),b.current=!0,"ArrowDown"===t.key){const e=w.current&&w.current.querySelector("button");e?e.focus():i(!0),t.preventDefault(),t.stopPropagation()}else"Enter"===t.key&&E(e.text)},onFocus:e=>{e.currentTarget.select(),n(e)},onBlur:n,value:t}),l.a.createElement(A.a,{classNames:"csst-menuBar-SearchBox_Suggests",in:m,timeout:100,mountOnEnter:!0,unmountOnExit:!0,onExited:()=>e.onHeightChanged(0)},()=>l.a.createElement("div",{className:"menuBar-SearchBox_Suggests"},l.a.createElement(H,{ref:w,text:t,onSelect:E,onFocus:o,onBlur:o,onArrowUpFirst:v,onClose:v,onHeightChanged:e.onHeightChanged})))),l.a.createElement(x,{t:e.t,onClick:E}))};var W=n(138);const q=e=>{const{t:t}=Object(b.d)(["common"]),n=e.profiles.map(n=>({key:n.id,value:n.id,label:l.a.createElement("span",{className:"menuBar-ProfileItem"+(n.id===e.activeProfileId?" isActive":"")},Object(o.h)(n.name,t))}));return l.a.createElement(W.a,{Button:Q,items:n,onBtnClick:()=>(c.a.send({type:"OPEN_URL",payload:{url:"options.html",self:!0}}),!1),onSelect:e.onSelectProfile,onHeightChanged:e.onHeightChanged})};function Q(e){const{t:t}=Object(b.d)(["content"]);return l.a.createElement(v,{...e,t:t,disabled:Object(r.i)()})}function G(e){return Object(g.a)(0)(e)}var Y=n(29),$=n(42),K=n(166);const V=Object(a.b)(e=>({text:e.text,isInNotebook:e.isFav,shouldFocus:!e.isExpandMtaBox&&((e.isQSPanel||Object(r.l)())&&e.config.qsFocus||Object(r.k)()),enableSuggest:e.config.searchSuggests,isTrackHistory:e.config.searchHistory,histories:e.searchHistory,historyIndex:e.historyIndex,showedDictAuth:e.config.showedDictAuth,profiles:e.profiles,activeProfileId:e.activeProfile.id,isPinned:e.isPinned,isQSFocus:e.isQSFocus}),e=>({searchText:t=>{e({type:"SEARCH_START",payload:{word:Object(i.e)({text:t,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}})},updateText:t=>{e({type:"UPDATE_TEXT",payload:t})},addToNoteBook:()=>{e({type:"ADD_TO_NOTEBOOK"})},switchHistory:t=>{e({type:"SWITCH_HISTORY",payload:t})},togglePin:()=>{e({type:"TOGGLE_PIN"})},toggleQSFocus:()=>{e({type:"TOGGLE_QS_FOCUS"})},onClose:()=>{Object(r.n)()?window.close():e({type:"CLOSE_PANEL"})},onSwitchSidebar:e=>{c.a.send({type:"QS_SWITCH_SIDEBAR",payload:e})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"menubar",height:30,floatHeight:t}})},onDragAreaMouseDown:t=>{e({type:"DRAG_START_COORD",payload:{x:t.clientX,y:t.clientY}})},onDragAreaTouchStart:t=>{e({type:"DRAG_START_COORD",payload:{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}})},onSelectProfile:t=>{e(async(e,n)=>{var a;const s=n(),{showedDictAuth:l,dictAuth:d}=s.config;l||Object(r.k)()||(await Object(Y.f)({...s.config,showedDictAuth:!0}),!Object(K.a)(d).every(e=>Object(K.a)(d[e]).every(t=>{var n;return!(null===(n=d[e])||void 0===n?void 0:n[t])})))?(await Object(o.l)(t),await Object($.d)(10),e({type:"SEARCH_START",payload:{word:(null===(a=s.searchHistory[s.historyIndex])||void 0===a?void 0:a.text)===s.text?s.searchHistory[s.historyIndex]:Object(i.e)({text:s.text,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}})):c.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=DictAuths",self:!0}})})}}))(e=>{const{t:t}=Object(b.d)(["content","common"]),[n,a]=Object(d.a)(G),[o,i]=Object(d.a)(G);return Object(u.a)(Object(p.a)(()=>Object(h.a)(a,i).pipe(Object(m.a)(100),Object(f.a)(e=>{const t=Math.max(...e);return t>0?t+72:0}))),e.onHeightChanged),l.a.createElement("header",{className:"menuBar"},l.a.createElement(y,{t:t,disabled:e.historyIndex<=0,onClick:()=>e.switchHistory("prev")}),l.a.createElement(w,{t:t,disabled:e.historyIndex>=e.histories.length-1,onClick:()=>e.switchHistory("next")}),l.a.createElement(U,{key:"searchbox",t:t,text:e.text,shouldFocus:e.shouldFocus,enableSuggest:e.enableSuggest,onInput:e.updateText,onSearch:e.searchText,onHeightChanged:o}),Object(r.n)()||l.a.createElement("div",{className:"menuBar-DragArea",onMouseDown:e.onDragAreaMouseDown,onTouchStart:e.onDragAreaTouchStart}),l.a.createElement(q,{t:t,profiles:e.profiles,activeProfileId:e.activeProfileId,onSelectProfile:e.onSelectProfile,onHeightChanged:n}),l.a.createElement(E,{t:t,isFav:e.isInNotebook,onClick:e.addToNoteBook,onMouseDown:e=>{2===e.button&&(e.preventDefault(),e.stopPropagation(),e.currentTarget.blur(),c.a.send({type:"OPEN_URL",payload:{url:"notebook.html",self:!0}}))}}),e.isTrackHistory?l.a.createElement(O,{t:t,onClick:()=>c.a.send({type:"OPEN_URL",payload:{url:"history.html",self:!0}})}):l.a.createElement(_,{t:t,onClick:()=>c.a.send({type:"OPEN_URL",payload:{url:"notebook.html",self:!0}})}),Object(r.l)()?l.a.createElement(l.a.Fragment,null,l.a.createElement(C,{t:t,isFocus:e.isQSFocus,onClick:e.toggleQSFocus,disabled:Object(r.i)()||Object(r.k)()}),l.a.createElement(S,{t:t,onMouseDown:t=>{t.preventDefault(),e.onSwitchSidebar(0===t.button?"left":"right")}})):Object(r.k)()?null:l.a.createElement(l.a.Fragment,null,l.a.createElement(k,{t:t,isPinned:e.isPinned,onClick:e.togglePin,disabled:Object(r.i)()||Object(r.k)()}),l.a.createElement(j,{t:t,onClick:e.onClose})))})},355:function(e,t,n){"use strict";n.d(t,"a",(function(){return z}));var a=n(23),o=n(16),r=n(1),i=n(0),c=n.n(i),s=n(125),l=n(30),d=n(5),u=n.n(d),p=n(189),h=n(11),m=n(42),f=n(9),g=n(138);const b=e=>{const{t:t,ready:a}=Object(f.d)(["dicts","content","langcode"]),[o,s]=Object(i.useState)(!1);Object(i.useEffect)(()=>{const t=setTimeout(()=>s(e.isSearching),1500*Math.random());return()=>{clearTimeout(t)}},[e.isSearching]);const l=Object(i.useMemo)(()=>browser.runtime.getURL(n(481)("./"+e.dictID+"/favicon.png")),[e.dictID]),d=Object(i.useMemo)(()=>{const n=[],a=e=>e.replace(/%t\((\S+)\)/g,(e,n)=>t(n));if(e.catalog)for(const t of e.catalog)t.options?n.push({key:t.key,value:t.value,title:t.title&&a(t.title),options:t.options.map(e=>({value:e.value,label:a(e.label)}))}):n.push({key:t.key,value:t.value,label:a(t.label)});return n.push({key:"_options",value:"_options",label:t("content:tip.openOptions")}),n},[e.catalog,a]);return c.a.createElement("header",{className:u()("dictItemHead",{isSearching:e.isSearching})},c.a.createElement("img",{className:"dictItemHead-Logo",src:l,alt:"dict logo"}),c.a.createElement("h1",{className:"dictItemHead-Title"},c.a.createElement("a",{href:"#",onClick:t=>{t.stopPropagation(),t.preventDefault(),e.openDictSrcPage(e.dictID,t.ctrlKey)}},t(e.dictID+".name"))),c.a.createElement(g.a,{compact:!0,Button:y,items:d,top:25,onSelect:(t,n)=>{"_options"===t?r.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=Dictionaries",self:!0}}):e.onCatalogSelect({key:t,value:n})}}),o&&c.a.createElement("div",{className:"dictItemHead-Loader"},c.a.createElement("div",null),c.a.createElement("div",null),c.a.createElement("div",null),c.a.createElement("div",null),c.a.createElement("div",null)),c.a.createElement("div",{className:"dictItemHead-EmptyArea",onClick:e.toggleFold}),c.a.createElement("button",{className:"dictItemHead-FoldArrowBtn",onMouseOut:e=>e.currentTarget.blur(),onClick:e.toggleFold},c.a.createElement("svg",{className:"dictItemHead-FoldArrow",width:"18",height:"18",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg"},c.a.createElement("path",{className:"dictItemHead-FoldArrowPath",d:"M43.854 59.414L14.146 29.707 43.854 0l1.414 1.414-28.293 28.293L45.268 58"}))))};function y(e){return c.a.createElement("button",{className:"dictItemHead-Menus_Btn",...e},c.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 512 512"},c.a.createElement("path",{d:"M301.256 394.29A45.256 45.256 0 01256 439.546a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 349.034a45.256 45.256 0 0145.256 45.256zM301.256 257.48A45.256 45.256 0 01256 302.736a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 212.224a45.256 45.256 0 0145.256 45.256zM301.256 117.71A45.256 45.256 0 01256 162.964a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 72.453a45.256 45.256 0 0145.256 45.256z"})))}var w=n(223),x=n(2),v=n(3),E=n(271),O=n(97);const _=({result:e})=>{const{t:t}=Object(f.d)("content");return c.a.createElement("div",{className:"dictManualVerification"},c.a.createElement("h2",null,t("manualVerification.title")),c.a.createElement("p",null,t("manualVerification.message")),c.a.createElement("a",{href:e.url,target:"_blank",rel:"nofollow noopener noreferrer"},t("manualVerification.openPage")))},k=n(578).toString(),C=e=>{const t=Object(i.useMemo)(()=>c.a.lazy(()=>n(547)(`./${e.dictID}/View.tsx`)),[e.dictID]),a=Object(i.useMemo)(()=>c.a.lazy(async()=>{const t=await n(548)(`./${e.dictID}/_style.shadow.scss`);return{default:()=>c.a.createElement("style",null,(t.default||t).toString())}}),[e.dictID]);return c.a.createElement(E.a,{error:j},c.a.createElement(i.Suspense,{fallback:null},"FINISH"===e.searchStatus&&e.searchResult&&c.a.createElement(w.a.div,null,c.a.createElement("div",{ref:e.dictRootRef,className:u()({darkMode:e.darkMode})},c.a.createElement("style",null,k),c.a.createElement(a,null),e.panelCSS?c.a.createElement("style",null,e.panelCSS):null,c.a.createElement(O.b,{className:u()("d-"+e.dictID,"dictRoot",x.b,{isAnimate:e.withAnimation}),onPlayStart:e.onSpeakerPlay,onMouseUp:e.onInPanelSelect},Object(v.l)(e.searchResult)?c.a.createElement(_,{result:e.searchResult}):c.a.createElement(t,{result:e.searchResult,searchText:e.searchText,catalogSelect$:e.catalogSelect$}))))))};function j(){return c.a.createElement("p",{style:{textAlign:"center"}},"Render error. Please"," ",c.a.createElement("a",{href:"https://github.com/crimx/ext-saladict/issues",target:"_blank",rel:"nofollow noopener noreferrer"},"report issue"),".")}var S=n(38);const A=e=>{const[t,n]=Object(s.a)(l.b),[a,o]=Object(i.useState)(!1),[d,f]=Object(i.useState)("COLLAPSE"),[g,y]=Object(i.useState)(10),w=Object(i.useMemo)(()=>Math.max(10,"COLLAPSE"===d?10:"FULL"===d?g:Math.min(g,e.preferredHeight)),[d,g,e.preferredHeight]);Object(i.useEffect)(()=>{"FINISH"===e.searchStatus?f("HALF"):f("COLLAPSE")},[e.searchStatus]),Object(i.useEffect)(()=>{e.onHeightChanged(e.dictID,w+20)},[w]);const x=Object(i.useRef)(null),v=Object(i.useRef)(null),E=Object(i.useCallback)(async n=>{if("#"!==n.key[0])return t(n);if(!v.current)return;const a=v.current.querySelector("#"+n.value);if(a){if("FULL"!==d&&(o(!0),f("FULL"),await Object(m.d)(0),o(!1)),x.current){const t=x.current.getRootNode();if(t.querySelector){const n=t.querySelector(".dictPanel-Body");if(n)return void n.scrollTo({top:a.getBoundingClientRect().y-n.firstElementChild.getBoundingClientRect().y-30,behavior:e.withAnimation?"smooth":"auto"})}}a.scrollIntoView({behavior:e.withAnimation?"smooth":"auto"})}},[d,e.withAnimation]);return c.a.createElement("section",{ref:x,className:u()("dictItem",{isUnfold:"COLLAPSE"!==d,noHeightTransition:a})},c.a.createElement(b,{dictID:e.dictID,catalog:e.catalog,isSearching:"SEARCHING"===e.searchStatus,toggleFold:function(){if("SEARCHING"===e.searchStatus)return;if("COLLAPSE"!==d)return f("COLLAPSE"),void e.onUserFold(e.dictID,!0);e.onUserFold(e.dictID,!1),e.searchResult?f("HALF"):e.searchText({id:e.dictID})},openDictSrcPage:e.openDictSrcPage,onCatalogSelect:E}),c.a.createElement("div",{className:"dictItem-Body",key:e.dictID,style:{height:w},onClick:function(t){if(t.ctrlKey||t.metaKey||t.altKey)return;if(!t.target.tagName)return;const n=t.currentTarget;for(let a=t.target;a&&a!==n;a=a.parentElement)if(Object(S.a)(a,"a")||"link"===a.getAttribute("role")){t.preventDefault(),t.stopPropagation();const n=a;return void(/nofollow|noopener|noreferrer/.test(n.rel)?r.a.send({type:"OPEN_URL",payload:{url:n.href}}):e.searchText({word:Object(h.e)({text:n.textContent||"",title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}))}}},c.a.createElement("article",{className:"dictItem-BodyMesure"},c.a.createElement(p.ResizeReporter,{reportInit:!0,onHeightChanged:y}),e.TestComp?"FINISH"===e.searchStatus&&e.searchResult&&c.a.createElement(e.TestComp,{result:e.searchResult,searchText:e.searchText,catalogSelect$:n}):c.a.createElement(C,{...e,catalogSelect$:n,dictRootRef:v})),"HALF"===d&&w<g&&e.searchResult&&c.a.createElement("button",{className:"dictItem-FoldMask",onClick:()=>f("FULL")},c.a.createElement("svg",{className:"dictItem-FoldMaskArrow",width:"15",height:"15",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg"},c.a.createElement("path",{d:"M58 14.146L29.707 42.44 1.414 14.145 0 15.56 29.707 45.27 59.414 15.56"})))))};var M=n(190),I=n(404),T=n(179);const N=c.a.memo(A),D=Object(o.a)((e,t)=>e.map(e=>({dictID:e.id,searchStatus:e.searchStatus,searchResult:e.searchResult,catalog:e.catalog,preferredHeight:t[e.id].preferredHeight}))),z=Object(a.b)(e=>{const{config:t}=e;return{darkMode:t.darkMode,withAnimation:t.animation,panelCSS:t.panelCSS,touchMode:t.touchMode,language:t.language,doubleClickDelay:t.doubleClickDelay,dicts:D(e.renderedDicts,e.activeProfile.dicts.all)}},e=>({searchText:t=>{e({type:"SEARCH_START",payload:t})},openDictSrcPage:(t,n)=>{e((e,a)=>{const{searchHistory:o}=a(),i=o[o.length-1];r.a.send({type:"OPEN_DICT_SRC_PAGE",payload:{id:t,text:i&&i.text?i.text:"",active:!n}})})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"dictlist",height:t}})},onUserFold:(t,n)=>{e({type:"USER_FOLD_DICT",payload:{id:t,fold:n}})},onSpeakerPlay:t=>new Promise(n=>{e((e,a)=>{a().isExpandWaveformBox?r.a.self.send({type:"PLAY_AUDIO",payload:t}).then(n):r.a.send({type:"PLAY_AUDIO",payload:t}).then(n),e({type:"PLAY_AUDIO",payload:{src:t,timestamp:Date.now()}})})}),newSelection:t=>{e({type:"NEW_SELECTION",payload:t})}}))(e=>{const{dicts:t,onHeightChanged:n,touchMode:a,language:o,doubleClickDelay:r,newSelection:l,...d}=e,u=Object(i.useRef)({dicts:{},sum:0}),[p,h]=Object(s.a)(e=>Object(I.a)(10)(e));Object(M.a)(h,n);const m=Object(i.useRef)((e,t)=>{u.current.sum=u.current.sum-(u.current.dicts[e]||0)+t,u.current.dicts[e]=t,p(u.current.sum)}).current,f=Object(i.useMemo)(()=>t.reduce((e,{dictID:t})=>e+t+",",""),[t]);Object(i.useEffect)(()=>{const e=u.current;u.current=t.reduce((t,{dictID:n})=>(t.dicts[n]=e.dicts[n]||30,t.sum+=t.dicts[n]||30,t),{dicts:{},sum:0}),p(u.current.sum)},[f]);const g=Object(T.b)(a,o,r,l);return c.a.createElement("div",{className:"dictList"},t.map(e=>c.a.createElement(N,{key:e.dictID,...d,...e,onInPanelSelect:g,onHeightChanged:m})))})},356:function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var a=n(0),o=n.n(a),r=n(362),i=n(136),c=n(30),s=n(125),l=n(256),d=n(190),u=n(102),p=n(404),h=n(134),m=n(121),f=n(508),g=n(11),b=n(86),y=n(9),w=n(1),x=n(2);const v=({words:e,onCardDelete:t})=>{const{t:n}=Object(y.d)(["common","content"]);return o.a.createElement("aside",{className:"wordCards"},o.a.createElement("header",null,o.a.createElement("h1",{className:"wordCards-Title"},n("content:wordEditor.wordCardsTitle"))),o.a.createElement("ul",{className:"wordCards-CardList"},e.map(e=>o.a.createElement("li",{className:"wordCards-Card",key:e.date},o.a.createElement("button",{type:"button",className:"wordCards-CardClose",onClick:()=>t(e)},"×"),o.a.createElement("h2",{className:"wordCards-CardTitle"},e.text),e.context&&o.a.createElement("div",{className:"wordCards-CardItem"},o.a.createElement("svg",{className:"wordCards-CardItem_Icon",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.333 95.332"},o.a.createElement("title",null,n("note.context")),o.a.createElement("path",{d:"M 36.587 45.263 C 35.07 44.825 33.553 44.605 32.078 44.605 C 29.799 44.605 27.898 45.125 26.423 45.763 C 27.844 40.559 31.259 31.582 38.061 30.57 C 38.69 30.476 39.207 30.021 39.379 29.408 L 40.864 24.09 C 40.99 23.641 40.916 23.16 40.66 22.77 C 40.403 22.38 39.991 22.119 39.529 22.056 C 39.027 21.987 38.515 21.952 38.009 21.952 C 29.844 21.952 21.759 30.474 18.347 42.675 C 16.344 49.833 15.757 60.595 20.686 67.369 C 23.445 71.16 27.472 73.183 32.657 73.385 L 32.717 73.386 C 39.114 73.386 44.783 69.079 46.508 62.915 C 47.538 59.229 47.073 55.364 45.196 52.029 C 43.338 48.731 40.28 46.327 36.581 45.263 Z M 76.615 52.029 C 74.758 48.731 71.699 46.327 68.002 45.263 C 66.484 44.823 64.968 44.604 63.492 44.604 C 61.214 44.604 59.311 45.121 57.838 45.76 C 59.259 40.553 62.673 31.579 69.475 30.564 C 70.102 30.47 70.619 30.016 70.793 29.402 L 72.28 24.085 C 72.403 23.635 72.332 23.155 72.073 22.764 C 71.814 22.373 71.401 22.113 70.942 22.049 C 70.438 21.981 69.928 21.946 69.417 21.946 C 61.253 21.946 53.169 30.467 49.755 42.669 C 47.752 49.827 47.166 60.59 52.101 67.364 C 54.858 71.153 58.887 73.178 64.069 73.379 C 64.091 73.38 64.111 73.381 64.134 73.381 C 70.527 73.381 76.198 69.074 77.923 62.908 C 78.953 59.224 78.485 55.358 76.609 52.022 Z"})),o.a.createElement("div",{className:"wordCards-CardItem_Cont"},E(e.context))),e.trans&&o.a.createElement("div",{className:"wordCards-CardItem"},o.a.createElement("svg",{className:"wordCards-CardItem_Icon",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 469.333 469.333"},o.a.createElement("title",null,n("note.trans")),o.a.createElement("path",{d:"M253.227 300.267L199.04 246.72l.64-.64c37.12-41.387 63.573-88.96 79.147-139.307h62.507V64H192V21.333h-42.667V64H0v42.453h238.293c-14.4 41.173-36.907 80.213-67.627 114.347-19.84-22.08-36.267-46.08-49.28-71.467H78.72c15.573 34.773 36.907 67.627 63.573 97.28l-108.48 107.2L64 384l106.667-106.667 66.347 66.347 16.213-43.413zM373.333 192h-42.667l-96 256h42.667l24-64h101.333l24 64h42.667l-96-256zm-56 149.333L352 248.853l34.667 92.48h-69.334z"})),o.a.createElement("div",{className:"wordCards-CardItem_Cont"},E(e.trans))),e.note&&o.a.createElement("div",{className:"wordCards-CardItem"},o.a.createElement("svg",{className:"wordCards-CardItem_Icon",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 35.738 35.738"},o.a.createElement("title",null,n("note.note")),o.a.createElement("path",{d:"M0 35.667S11.596-1.403 35.738.117c0 0-2.994 4.85-10.55 6.416 0 0 3.517.43 6.368-.522 0 0-1.71 5.517-11.025 6.275 0 0 5.135 1.33 7.416.57 0 0-.62 4.11-10.102 6.154-.562.12-4.347 1.066-1.306 1.447 0 0 4.37.763 5.514.38 0 0-3.743 5.608-12.927 5.133-.903-.048-1.332 0-1.332 0L0 35.666z"})),o.a.createElement("div",{className:"wordCards-CardItem_Cont"},E(e.note))),o.a.createElement("div",{className:"wordCards-CardFooter"},e.favicon&&o.a.createElement("img",{className:"wordCards-Favicon",src:e.favicon}),o.a.createElement("a",{className:"wordCards-URL",href:e.url,target:"_blank",rel:"nofollow noopener noreferrer",title:e.title},e.title))))))};function E(e){return e.split("\n").map((e,t)=>o.a.createElement("p",{key:t},e))}const O=e=>o.a.createElement("div",{className:"wordEditorPanel-Background",style:{zIndex:Object(x.g)()?998:2147483646}},o.a.createElement("div",{className:"wordEditorPanel-Container",style:{width:e.containerWidth}},o.a.createElement("div",{className:"wordEditorPanel"},o.a.createElement("header",{className:"wordEditorPanel-Header"},o.a.createElement("h1",{className:"wordEditorPanel-Title"},e.title),o.a.createElement("button",{type:"button",className:"wordEditorPanel-BtnClose",onClick:e.onClose},"×")),o.a.createElement("div",{className:"wordEditorPanel-Main fancy-scrollbar"},e.children),e.btns&&e.btns.length>0&&o.a.createElement("footer",{className:"wordEditorPanel-Footer"},e.btns.map((e,t)=>o.a.createElement("button",{key:t,type:"button",className:e.type?"wordEditorPanel-Btn_"+e.type:"wordEditorPanel-Btn",onClick:e.onClick},e.title))))));var _=n(94);const k=e=>{const[t,n]=Object(a.useState)(()=>Object.keys(e.ctxTransConfig).reduce((e,t)=>(e[t]=!1,e),{})),r=async t=>{const{name:a}=t.currentTarget.dataset;if(a&&Object.prototype.hasOwnProperty.call(e.ctxTransConfig,a)){e.onNewCtxTransConfig(a,t.currentTarget.checked);const o=e.word.context||e.word.text;if(t.currentTarget.checked&&o){n(e=>({...e,[a]:!0}));const t=await Object(b.c)(o,a);n(e=>({...e,[a]:!1})),e.onNewCtxTransResult(a,t)}else e.onNewCtxTransResult(a,"")}};return o.a.createElement("ul",{className:"ctxTransList"},Object.keys(e.ctxTransResult).map(n=>o.a.createElement("li",{key:n,className:"ctxTransItem"},o.a.createElement("div",{className:"ctxTransItem-Head"},o.a.createElement("h1",{className:"ctxTrans-Title"},o.a.createElement("input",{type:"checkbox",checked:e.ctxTransConfig[n],id:"ctx-"+n,"data-name":n,onChange:r}),o.a.createElement("label",{htmlFor:"ctx-"+n},n)),t[n]&&o.a.createElement("div",{className:"ctxTrans-Loader"},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))),o.a.createElement("p",{className:"ctxTrans-Content"},e.ctxTransResult[n]))))},C={enter:400,exit:100,appear:400},j=e=>{const{t:t}=Object(y.d)(["common","content"]),[n,E]=Object(a.useState)(!1),[j,A]=Object(a.useState)(!1),[M,I]=Object(a.useState)(e.wordEditor.word),T=Object(i.a)(c.c,[M]),[N,D]=Object(a.useState)(e.ctxTrans);Object(r.a)(()=>{D(e.ctxTrans)},[e.ctxTrans]);const[z,L]=Object(a.useState)(()=>Object.keys(e.ctxTrans).reduce((e,t)=>(e[t]="",e),{})),[P,B]=Object(s.a)(e=>e.pipe(Object(p.a)(200),Object(h.a)(T),Object(m.a)(([,e])=>e.text?Object(g.c)("notebook",e.text).then(t=>t.filter(({date:t})=>t!==e.date)).catch(()=>[]):Object(u.a)([])),Object(f.a)([]))),R=Object(l.a)(B),[F,H]=Object(s.a)(e=>e.pipe(Object(h.a)(T),Object(m.a)(([e,t])=>Object(b.d)(t.context||t.text,e))));Object(d.a)(H,L),Object(a.useEffect)(()=>{e.wordEditor.translateCtx&&F(N)},[]),Object(a.useEffect)(P,[M.text,M.context]),Object(r.a)(()=>{I({...M,trans:Object(b.a)(M.trans,z)})},[z]);const U=()=>{n&&!confirm(t("content:wordEditor.closeConfirm"))||e.onClose()},W=({currentTarget:e})=>{E(!0),I({...M,[e.name]:e.value})},q=[{type:"normal",title:t("content:transContext"),onClick:()=>F(N)},{type:"normal",title:t("content:neverShow"),onClick:()=>{Object(x.i)()||w.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=Notebook",self:!0}})}},{type:"normal",title:t("cancel"),onClick:U},{type:"primary",title:t("save"),onClick:()=>{Object(g.f)("notebook",M).then(e.onClose).catch(console.error)}}],[Q,G]=Object(a.useState)();return Object(a.useEffect)(()=>{let e=!0;return w.c.sync.get("syncConfig").then(async({syncConfig:t})=>{var n;if(null==t||null===(n=t.ankiconnect)||void 0===n?void 0:n.enable){const t=await w.a.send({type:"ANKI_CONNECT_FIND_WORD",payload:M.date});e&&G(t)}}),()=>{e=!1}},[]),Q&&q.unshift({type:"normal",title:t("content:updateAnki.title"),onClick:async()=>{let e="content:updateAnki.success";try{await w.a.send({type:"ANKI_CONNECT_UPDATE_WORD",payload:{cardId:Q,word:M}})}catch(t){!1,e="content:updateAnki.failed"}browser.notifications.create({type:"basic",eventTime:Date.now()+2e3,iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict",message:t(e)})}}),o.a.createElement(o.a.Fragment,null,o.a.createElement(O,{containerWidth:e.containerWidth,title:t("content:wordEditor.title"),btns:q,onClose:U},o.a.createElement("div",{className:"wordEditorNote-Container"},o.a.createElement("div",{className:"wordEditorNote"},o.a.createElement("label",{htmlFor:"wordEditorNote_Word"},t("note.word")),o.a.createElement("input",{type:"text",name:"text",id:"wordEditorNote_Word",value:M.text,onChange:W,onKeyDown:S}),o.a.createElement("label",{htmlFor:"wordEditorNote_Context"},t("note.context")),o.a.createElement("textarea",{rows:3,name:"context",id:"wordEditorNote_Context",value:M.context,onChange:W,onKeyDown:S}),o.a.createElement("div",{className:"wordEditorNote_LabelWithBtn"},o.a.createElement("label",{htmlFor:"wordEditorNote_Trans"},t("note.trans"),o.a.createElement("a",{href:"https://saladict.crimx.com/q&a.html#%E9%97%AE%EF%BC%9A%E6%B7%BB%E5%8A%A0%E7%94%9F%E8%AF%8D%E5%8F%AF%E4%B8%8D%E5%8F%AF%E4%BB%A5%E5%8A%A0%E5%85%A5%E5%8D%95%E8%AF%8D%E7%BF%BB%E8%AF%91%EF%BC%88%E8%80%8C%E4%B8%8D%E6%98%AF%E7%BF%BB%E8%AF%91%E6%95%B4%E5%8F%A5%E4%B8%8A%E4%B8%8B%E6%96%87%EF%BC%89%E3%80%82",target:"_blank",rel:"nofollow noopener noreferrer"}," ","Why?")),o.a.createElement("button",{onClick:()=>A(!0)},t("content:wordEditor.chooseCtxTitle"))),o.a.createElement("textarea",{rows:10,name:"trans",id:"wordEditorNote_Trans",value:M.trans,onChange:W,onKeyDown:S}),o.a.createElement("p",{className:"wordEditorNote_Help"},t("content:wordEditor.ctxHelp")),o.a.createElement("label",{htmlFor:"wordEditorNote_Note"},t("note.note")),o.a.createElement("textarea",{rows:5,name:"note",id:"wordEditorNote_Note",value:M.note,onChange:W,onKeyDown:S}),o.a.createElement("label",{htmlFor:"wordEditorNote_SrcTitle"},t("note.srcTitle")),o.a.createElement("input",{type:"text",name:"title",id:"wordEditorNote_SrcTitle",value:M.title,onChange:W,onKeyDown:S}),o.a.createElement("label",{htmlFor:"wordEditorNote_SrcLink"},t("note.srcLink")),o.a.createElement("input",{type:"text",name:"url",id:"wordEditorNote_SrcLink",value:M.url,onChange:W,onKeyDown:S}),o.a.createElement("label",{htmlFor:"wordEditorNote_SrcFavicon"},t("note.srcFavicon"),M.favicon?o.a.createElement("img",{className:"wordEditorNote_SrcFavicon",src:M.favicon,alt:t("note.srcTitle")}):null),o.a.createElement("input",{type:"text",name:"favicon",id:"wordEditorNote_SrcFavicon",value:M.favicon,onChange:W,onKeyDown:S})),R&&R.length>0&&o.a.createElement(v,{words:R,onCardDelete:e=>{window.confirm(t("content:wordEditor.deleteConfirm"))&&Object(g.a)("notebook",[e.date]).then(P)}}))),o.a.createElement(_.a,{classNames:"notes-fade",mountOnEnter:!0,unmountOnExit:!0,timeout:C,in:j},()=>o.a.createElement(O,{containerWidth:e.containerWidth-100,title:t("content:wordEditor.chooseCtxTitle"),onClose:()=>A(!1),btns:[{type:"normal",title:t("content:transContext"),onClick:()=>F(N)}]},o.a.createElement(k,{word:M,ctxTransConfig:N,ctxTransResult:z,onNewCtxTransConfig:(e,t)=>{D(n=>({...n,[e]:t}))},onNewCtxTransResult:(e,t)=>{L(n=>({...n,[e]:t}))}}))))};function S(e){e.stopPropagation(),e.nativeEvent.stopPropagation()}const A=e=>o.a.createElement("div",{className:x.a+" saladict-theme"},o.a.createElement(j,{...e}))},357:function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var a=n(23),o=n(11),r=n(2),i=n(0),c=n.n(i),s=n(5),l=n.n(s),d=n(94),u=n(402),p=n(256),h=n(121),m=n(88),f=n(508),g=n(159);const b=e=>{const t=Object(i.useRef)(!1),n=Object(i.useRef)(null),[a,o]=Object(i.useState)(0),[r,s]=Object(p.a)(y,!1),h=Object(i.useRef)(!0);return Object(i.useEffect)(()=>{e.expand&&(h.current&&!e.shouldFocus||n.current&&(n.current.focus(),n.current.select()),h.current=!1)},[e.expand]),Object(i.useEffect)(()=>{e.shouldFocus&&!t.current&&e.expand&&n.current&&(n.current.focus(),n.current.select())},[e.text]),Object(i.useEffect)(()=>{e.onHeightChanged((e.expand?a:0)+12)},[a,e.expand]),c.a.createElement("div",null,c.a.createElement("div",{className:l()("mtaBox-TextArea-Wrap",{isTyping:r}),style:{height:e.expand?a:0}},c.a.createElement(d.a,{in:e.expand,timeout:400,classNames:"mtaBox-TextArea-Wrap",appear:!0,mountOnEnter:!0,unmountOnExit:!0},()=>c.a.createElement(u.a,{autoFocus:!0,inputRef:n,className:"mtaBox-TextArea",value:e.text,onChange:n=>{t.current=!0,e.onInput(n.currentTarget.value)},onKeyDown:t=>{t.nativeEvent.stopPropagation(),"Enter"===t.key&&(t.ctrlKey||t.metaKey)&&e.searchText(e.text),s(t)},minRows:2,onHeightChange:e=>o(e)}))),c.a.createElement("button",{className:"mtaBox-DrawerBtn",onClick:e.onDrawerToggle},c.a.createElement("svg",{width:"10",height:"10",viewBox:"0 0 59.414 59.414",className:l()("mtaBox-DrawerBtn_Arrow",{isExpand:e.expand})},c.a.createElement("path",{d:"M58 14.146L29.707 42.44 1.414 14.145 0 15.56 29.707 45.27 59.414 15.56"}))))};function y(e){return e.pipe(Object(h.a)(e=>(e.stopPropagation(),Object(g.a)(1e3).pipe(Object(m.a)(!1),Object(f.a)(!0)))))}const w=Object(a.b)(e=>({expand:e.isExpandMtaBox,text:e.text,shouldFocus:!e.activeProfile.mtaAutoUnfold||"hide"!==e.activeProfile.mtaAutoUnfold||(e.isQSPanel||Object(r.l)())&&e.config.qsFocus||Object(r.k)()}),e=>({searchText:t=>{e({type:"SEARCH_START",payload:{word:Object(o.e)({text:t})}})},onInput:t=>{e({type:"UPDATE_TEXT",payload:t})},onDrawerToggle:()=>{e({type:"TOGGLE_MTA_BOX"})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"mtabox",height:t}})}}))(b)},358:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(23),o=n(0),r=n.n(o),i=n(94),c=n(2);const s=Object(a.b)(e=>({darkMode:e.config.darkMode,isExpand:e.isExpandWaveformBox}),e=>({onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"waveformbox",height:t}})},toggleExpand:()=>{e({type:"TOGGLE_WAVEFORM_BOX"})}}))(e=>(Object(o.useEffect)(()=>{e.onHeightChanged(12+(e.isExpand?165:0))},[e.isExpand]),r.a.createElement("div",{className:`waveformBox ${c.a}${e.isExpand?" isExpand":""}`},r.a.createElement("button",{className:"waveformBox-DrawerBtn",onClick:e.toggleExpand},r.a.createElement("svg",{width:"10",height:"10",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg",className:"waveformBox-DrawerBtn_Arrow"},r.a.createElement("path",{d:"M 58 45.269 L 29.707 16.975 L 1.414 45.27 L 0 43.855 L 29.707 14.145 L 59.414 43.855"}))),r.a.createElement("div",{className:"waveformBox-FrameWrap"},r.a.createElement(i.a,{timeout:400,in:e.isExpand,classNames:"waveformBox-Frame",mountOnEnter:!0,unmountOnExit:!0},()=>r.a.createElement("iframe",{className:"waveformBox-Frame",src:`${browser.runtime.getURL("audio-control.html")}${e.darkMode?"?darkmode=true":""}`,sandbox:"allow-same-origin allow-scripts"}))))))},369:function(e,t,n){var a={"./en/background.ts":[409,83],"./en/common.ts":[410,84],"./en/content.ts":[411,85],"./en/langcode.ts":[412,60],"./en/menus.ts":[413,86],"./en/options.ts":[414,87],"./en/popup.ts":[415,88],"./en/wordpage.ts":[416,89],"./es/background.ts":[417,90],"./es/common.ts":[418,91],"./es/content.ts":[419,92],"./es/langcode.ts":[420,61],"./es/menus.ts":[421,93],"./es/options.ts":[422,94],"./es/popup.ts":[423,95],"./es/wordpage.ts":[424,96],"./ne/background.ts":[425,97],"./ne/common.ts":[426,98],"./ne/content.ts":[427,99],"./ne/langcode.ts":[428,62],"./ne/menus.ts":[429,100],"./ne/options.ts":[430,101],"./ne/popup.ts":[431,102],"./ne/wordpage.ts":[432,103],"./zh-CN/background.ts":[433,104],"./zh-CN/common.ts":[434,105],"./zh-CN/content.ts":[435,106],"./zh-CN/langcode.ts":[436,63],"./zh-CN/menus.ts":[437,107],"./zh-CN/options.ts":[438,108],"./zh-CN/popup.ts":[439,109],"./zh-CN/wordpage.ts":[440,110],"./zh-TW/background.ts":[441,111],"./zh-TW/common.ts":[442,112],"./zh-TW/content.ts":[443,113],"./zh-TW/langcode.ts":[444,64],"./zh-TW/menus.ts":[445,114],"./zh-TW/options.ts":[446,115],"./zh-TW/popup.ts":[447,116],"./zh-TW/wordpage.ts":[448,117]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(a)},o.id=369,e.exports=o},370:function(e,t,n){var a={"./ahdict/_locales.json":371,"./baidu/_locales.ts":372,"./bing/_locales.json":373,"./caiyun/_locales.ts":374,"./cambridge/_locales.json":375,"./cobuild/_locales.json":376,"./etymonline/_locales.json":377,"./eudic/_locales.json":378,"./google/_locales.ts":379,"./guoyu/_locales.json":380,"./hjdict/_locales.json":381,"./liangan/_locales.json":382,"./longman/_locales.json":383,"./merriamwebster/_locales.json":384,"./mojidict/_locales.json":385,"./naver/_locales.json":386,"./oaldict/_locales.json":387,"./renren/_locales.json":388,"./shanbay/_locales.json":389,"./sogou/_locales.ts":390,"./tencent/_locales.ts":391,"./urban/_locales.json":392,"./vocabulary/_locales.json":393,"./weblio/_locales.json":394,"./weblioejje/_locales.json":395,"./wikipedia/_locales.json":396,"./youdao/_locales.json":397,"./youdaotrans/_locales.ts":398,"./zdic/_locales.json":399};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=370},371:function(e){e.exports=JSON.parse('{"name":{"en":"Amercian Heritage Dict","zh-CN":"美国传统词典","zh-TW":"美國傳統詞典"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},372:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Baidu Translate","zh-CN":"百度翻译","zh-TW":"百度翻譯"})},373:function(e){e.exports=JSON.parse('{"name":{"en":"Bing Dict","zh-CN":"必应词典","zh-TW":"必應詞典"},"options":{"tense":{"en":"Show sense","zh-CN":"显示单词时态","zh-TW":"展示單詞時態"},"phsym":{"en":"Show pronunciation","zh-CN":"显示单词发音","zh-TW":"展示單詞發音"},"cdef":{"en":"Show definitions","zh-CN":"显示单词解释","zh-TW":"展示單詞解釋"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"sentence":{"en":"Show sentences","zh-CN":"显示例句","zh-TW":"展示例句"},"sentence_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},374:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"LingoCloud","zh-CN":"彩云小译","zh-TW":"彩雲小譯"})},375:function(e){e.exports=JSON.parse('{"name":{"en":"Cambridge Dictionary","zh-CN":"剑桥词典","zh-TW":"劍橋詞典"},"options":{"lang":{"en":"Language","zh-CN":"语言","zh-TW":"語言"},"lang-default":{"en":"Default","zh-CN":"随扩展","zh-TW":"未設定"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-en-chs":{"en":"English–Chinese (Simplified)","zh-CN":"英简","zh-TW":"英简"},"lang-en-chz":{"en":"English–Chinese (Traditional)","zh-CN":"英繁","zh-TW":"英繁"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},376:function(e){e.exports=JSON.parse('{"name":{"en":"COBUILD","zh-CN":"柯林斯高阶","zh-TW":"柯林斯高階"},"options":{"cibaFirst":{"en":"Prefer bilingual dictionary","zh-CN":"优先查双语词典","zh-TW":"優先查雙語詞典"}},"helps":{"cibaFirst":{"en":"Bilingual server is less stable","zh-CN":"双语词典服务器不稳定,解释没全英丰富","zh-TW":"雙語詞典伺服器不穩定,解釋沒全英豐富"}}}')},377:function(e){e.exports=JSON.parse('{"name":{"en":"Etymonline","zh-CN":"Etymonline","zh-TW":"Etymonline"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"},"chart":{"en":"Show Chart","zh-CN":"显示图表","zh-TW":"顯示圖表"}}}')},378:function(e){e.exports=JSON.parse('{"name":{"en":"Eudic","zh-CN":"双语例句","zh-TW":"雙語例句"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},379:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Google Translation","zh-CN":"谷歌翻译","zh-TW":"谷歌翻譯"},{cnfirst:{en:"Use google.cn first","zh-CN":"优先使用 google.cn","zh-TW":"優先使用 google.cn"},concurrent:{en:"Search concurrently","zh-CN":"并行查询","zh-TW":"並行查詢"}},{concurrent:{en:"Search .com and .cn concurrently","zh-CN":"同时搜索 .com 和 .cn 取最先返回的结果","zh-TW":"同時搜尋 .com 和 .cn 取最先返回的結果"}})},38:function(e,t,n){"use strict";function a(e,t){return(e.tagName||"").toLowerCase()===t.toLowerCase()}n.d(t,"a",(function(){return a}))},380:function(e){e.exports=JSON.parse('{"name":{"en":"國語辭典","zh-CN":"国语辞典","zh-TW":"國語辭典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},381:function(e){e.exports=JSON.parse('{"name":{"en":"Hu Jiang","zh-CN":"沪江小D","zh-TW":"沪江小D"},"options":{"engas":{"en":"Treat English as","zh-CN":"对全英文使用词典","zh-TW":"對全英文使用字典"},"chsas":{"en":"Treat Chinese as","zh-CN":"对全中文使用词典","zh-TW":"對全中文使用字典"},"uas":{"en":"Treat \'ü\' as","zh-CN":"将 \'ü\' 字符当作","zh-TW":"把 \'ü\' 字元當成"},"aas":{"en":"Treat \'ä\' as","zh-CN":"将 \'ä\' 字符当作","zh-TW":"把 \'ä\' 字元當成"},"eas":{"en":"Treat \'é\' as","zh-CN":"将 \'é\' 字符当作","zh-TW":"把 \'é\' 字元當成"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"chsas-jp/cj":{"en":"中 → 日","zh-CN":"中 → 日","zh-TW":"中 → 日"},"chsas-jp/jc":{"en":"日 → 中","zh-CN":"日 → 中","zh-TW":"日 → 中"},"chsas-kr":{"en":"Korean","zh-CN":"韩文","zh-TW":"韓文"},"chsas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"chsas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"chsas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"chsas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"engas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"engas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"engas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"engas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"uas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"uas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"uas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"aas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"aas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"eas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"eas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"}}}')},382:function(e){e.exports=JSON.parse('{"name":{"en":"兩岸詞典","zh-CN":"两岸词典","zh-TW":"兩岸詞典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},383:function(e){e.exports=JSON.parse('{"name":{"en":"Longman Dictionary","zh-CN":"朗文词典","zh-TW":"朗文詞典"},"options":{"wordfams":{"en":"Show word family","zh-CN":"显示单词家族","zh-TW":"展示單字家族"},"collocations":{"en":"Show collocations","zh-CN":"显示惯用搭配","zh-TW":"展示慣用搭配"},"grammar":{"en":"Show grammar","zh-CN":"显示语法解释","zh-TW":"展示文法講解"},"thesaurus":{"en":"Show thesaurus","zh-CN":"显示同义词","zh-TW":"展示同義詞"},"examples":{"en":"Show examples","zh-CN":"显示例句","zh-TW":"展示例句"},"bussinessFirst":{"en":"Show bussiness result first","zh-CN":"优先显示商务词典","zh-TW":"優先展示商務字典"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},384:function(e){e.exports=JSON.parse('{"name":{"en":"Merriam-Webster\'s Dictionary","zh-CN":"韦氏词典","zh-TW":"韋氏字典"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},385:function(e){e.exports=JSON.parse('{"name":{"en":"MOJi辞書","zh-CN":"MOJi辞書","zh-TW":"MOJi辞書"}}')},386:function(e){e.exports=JSON.parse('{"name":{"en":"Naver韩国语词典","zh-CN":"Naver韩国语词典","zh-TW":"Naver韩国语词典"},"options":{"hanAsJa":{"en":"Search Chinese with Japanese Dictionary","zh-CN":"用日语词典查中文","zh-TW":"用日語詞典查漢字"},"korAsJa":{"en":"Search Korean with Japanese Dictionary","zh-CN":"用日语词典查韩语","zh-TW":"用日语词典查韓語"}}}')},387:function(e){e.exports=JSON.parse('{"name":{"en":"Oxford Learner\'s Dict","zh-CN":"牛津高阶词典","zh-TW":"牛津高階詞典"}}')},388:function(e){e.exports=JSON.parse('{"name":{"en":"91dict","zh-CN":"人人词典","zh-TW":"人人詞典"}}')},389:function(e){e.exports=JSON.parse('{"name":{"en":"Shanbay Dictionary","zh-CN":"扇贝词典","zh-TW":"扇貝詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"}}}')},390:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Sogou Translation","zh-CN":"搜狗翻译","zh-TW":"搜狗翻譯"})},391:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Tencent Translate","zh-CN":"腾讯翻译君","zh-TW":"騰訊翻譯君"})},392:function(e){e.exports=JSON.parse('{"name":{"en":"Urban","zh-CN":"Urban","zh-TW":"Urban"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},393:function(e){e.exports=JSON.parse('{"name":{"en":"Vocabulary.com","zh-CN":"Vocabulary.com","zh-TW":"Vocabulary.com"}}')},394:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio","zh-CN":"Weblio 辞書","zh-TW":"Weblio 辞書"}}')},395:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio ejje","zh-CN":"Weblio 英和和英","zh-TW":"Weblio 英和和英"}}')},396:function(e){e.exports=JSON.parse('{"name":{"en":"Wikipedia","zh-CN":"维基百科","zh-TW":"維基百科"},"options":{"lang":{"en":"Language","zh-CN":"百科语言","zh-TW":"百科語言"},"lang-auto":{"en":"Auto (respect Wiki settings)","zh-CN":"自动(遵循维基账户设定)","zh-TW":"自动(遵循維基賬戶設定)"},"lang-zh":{"en":"中文(简繁由维基账户设定)","zh-CN":"中文(简繁由维基账户设定)","zh-TW":"中文(簡繁由維基賬戶設定)"},"lang-zh-cn":{"en":"强制简体中文子页面","zh-CN":"强制简体中文子页面","zh-TW":"强制简体中文子页面"},"lang-zh-tw":{"en":"強制台灣正體子頁面","zh-CN":"強制台灣正體子頁面","zh-TW":"強制台灣正體子頁面"},"lang-zh-hk":{"en":"強制香港繁體子頁面","zh-CN":"強制香港繁體子頁面","zh-TW":"強制香港繁體子頁面"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-ja":{"en":"日本語","zh-CN":"日本語","zh-TW":"日本語"},"lang-fr":{"en":"Français","zh-CN":"Français","zh-TW":"Français"},"lang-de":{"en":"Deutschsprachige","zh-CN":"Deutschsprachige","zh-TW":"Deutschsprachige"}}}')},397:function(e){e.exports=JSON.parse('{"name":{"en":"Youdao Dictionary","zh-CN":"有道词典","zh-TW":"有道詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"collins":{"en":"Show Collins result","zh-CN":"显示柯林斯双解","zh-TW":"顯示柯林斯雙解"},"discrimination":{"en":"Show discrimination","zh-CN":"显示词语辨析","zh-TW":"顯示詞語辨析"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"},"translation":{"en":"Show translation","zh-CN":"显示有道翻译","zh-TW":"顯示有道翻譯"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},398:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(55);const o=Object(a.a)({en:"Youdao Translate","zh-CN":"有道翻译","zh-TW":"有道翻譯"})},399:function(e){e.exports=JSON.parse('{"name":{"en":"汉典","zh-CN":"汉典","zh-TW":"漢典"},"options":{"audio":{"en":"Enable audio","zh-CN":"开启发音","zh-TW":"啟用發音"}},"helps":{"audio":{"en":"Referer modification is required, which may slightly impact performance.","zh-CN":"突破外链限制需要改写 Referer,可能会轻微影响性能。","zh-TW":"突破外鏈限制需要改寫 Referer,可能會輕微影響效能。"}}}')},409:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={app:{off:"Saladict disabled. (Quick Search Panel is still available)",tempOff:"Saladict disabled on current tab. (Quick Search Panel is still available)",unsupported:"Embedded Saladict panel is unsupported for current tab. Use Standalone Saladict panel instead."}}},410:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={add:"Add",delete:"Delete",save:"Save",cancel:"Cancel",edit:"Edit",sort:"Sort",rename:"Rename",confirm:"Confirm",changes_confirm:"Changes not saved. Close anyway?",delete_confirm:"Deleted item completely?",max:"Max",min:"Min",name:"Name",none:"None",enable:"Enable",enabled:"Enabled",disabled:"Disabled",blacklist:"Blacklist",whitelist:"Whitelist",import:"Import",export:"Export",lang:{chinese:"Chinese",chs:"Chinese",deutsch:"Deutsch",eng:"English",english:"English",french:"French",japanese:"Japanese",korean:"Korean",matchAll:"Match every character",minor:"Minor",others:"Others",spanish:"Spanish"},unit:{mins:"minutes",ms:"ms",s:"s",word:"words"},note:{word:"Word",trans:"Translation",note:"Note",context:"Context",contextCloze:"Context Cloze",date:"Date",srcTitle:"Source Title",srcLink:"Source Link",srcFavicon:"Source Favicon"},profile:{daily:"Daily Mode",sentence:"Sentence Mode",default:"Default Mode",scholar:"Scholar Mode",translation:"Translation Mode",nihongo:"Japanese Mode"}}},411:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={chooseLang:"Choose another language",standalone:"Saladict Standalone Panel",fetchLangList:"Fetch full language list",transContext:"Retranslate",neverShow:"Stop showing",fromSaladict:"From Saladict Panel",tip:{historyBack:"Previous search history",historyNext:"Next search history",searchText:"Search text",openOptions:"Open Options",addToNotebook:"Add to Notebook. Right click to open Notebook",openNotebook:"Open Notebook",openHistory:"Open History",shareImg:"Share as image",pinPanel:"Pin the panel",closePanel:"Close the panel",sidebar:"Switch to sidebar mode. Right click to right side.",focusPanel:"Panel gains focus when searching",unfocusPanel:"Panel does not gain focus when searching"},wordEditor:{title:"Add to Notebook",wordCardsTitle:"Other results from Notebook",deleteConfirm:"Delete from Notebook?",closeConfirm:"Changes will not be saved. Are you sure to close?",chooseCtxTitle:"Pick translated results",ctxHelp:"Keep the [:: xxx ::] and --------------- format if you want Saladict to handle translation selection and generate Anki table."},machineTrans:{switch:"Switch Language",sl:"Source Language",tl:"Target Language",auto:"Detect language",stext:"Original",showSl:"Show Source",copySrc:"Copy Source",copyTrans:"Copy Translation",login:"Please provide {access token}.",dictAccount:"access token"},manualVerification:{title:"Manual verification required",message:"Open the original dictionary page and complete the human verification, then try this search again in Saladict.",openPage:"Open dictionary page"},updateAnki:{title:"Update to Anki",success:"Successfully update word to Anki.",failed:"Failed to update word to Anki."}}},412:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));var a=n(269);const o={...a,default:"Default",ne_NP:"Nepali",ara:"Arabic","bs-Latn":"Bosnian",bul:"Bulgarian",cht:"Chinese (Traditional)",dan:"Danish",est:"Estonian",fin:"Finnish",fra:"French",iw:"Hebrew",jp:"Japanese",kor:"Korean",kr:"Korean",pt_BR:"Brazilian",rom:"Romanian",slo:"Slovenian",spa:"Spanish",swe:"Swedish",tl:"Tagalog (Filipino)",vie:"Vietnamese",zh:"Chinese (Simplified)","zh-CHS":"Chinese (Simplified)","zh-CHT":"Chinese (Traditional)"}},413:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={baidu_page_translate:"Baidu Page Translate",baidu_search:"Baidu Search",bing_dict:"Bing Dict",bing_search:"Bing Search",caiyuntrs:"Lingocloud Page Translate",cambridge:"Cambridge",copy_pdf_url:"Copy PDF URL to Clipboard",dictcn:"Dictcn",etymonline:"Etymonline",google_cn_page_translate:"Google cn Page Translate",google_page_translate:"Google Page Translate",google_search:"Google Search",google_translate:"Google Translate",google_cn_translate:"Google.cn Translate",guoyu:"國語辭典",history_title:"Search History",iciba:"iciba",liangan:"兩岸詞典",longman_business:"Longman Business",manual_title:"Manual",merriam_webster:"Merriam Webster",microsoft_page_translate:"Microsoft Page Translate",notebook_title:"New Word List",notification_youdao_err:"Youdao Page Translate 2.0 not responding.\nSaladict might not have permission to access this page.\nIgnore this message if Youdao panal is shown.",oxford:"Oxford",page_permission_err:'Saladict "{{name}}" does not have permission to access this page.',page_translations:"Page Translations",saladict:"Saladict",saladict_standalone:"Saladict Standalone Panel",sogou:"Sogou Translate",sogou_page_translate:"Sogou Page Translate",termonline:"Termonline",view_as_pdf:"Open in PDF Viewer",youdao:"Youdao",youdao_page_translate:"Youdao Page Translate",youglish:"YouGlish"}},414:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Saladict Options",previewPanel:"Preview Dict Panel",shortcuts:"Set Shortcuts",msg_update_error:"Unable to update",msg_updated:"Successfully updated",msg_first_time_notice:"First time notice",msg_err_permission:'Unable to request "{{permission}}" permission.',unsave_confirm:"Settings not saved. Sure to leave?",nativeSearch:"search selected text outside of browser",firefox_shortcuts:'Open about:addons, click the top right "gear" button, choose the last "Manage extension shortcuts".',tutorial:"Tutorial",page_selection:"Page Selection",nav:{General:"General",Notebook:"Notebook",Profiles:"Profiles",DictPanel:"Dict Panel",SearchModes:"Search Modes",Dictionaries:"Dictionaries",DictAuths:"Access Tokens",Popup:"Popup Panel",QuickSearch:"Quick Search",Pronunciation:"Pronunciation",PDF:"PDF",ContextMenus:"Context Menus",BlackWhiteList:"Black/White List",ImportExport:"Import/Export",Privacy:"Privacy",Permissions:"Permissions"},config:{active:"Enable Inline Translator",active_help:'"Quick Search" is still available even if Inline translation is turned off.',animation:"Animation transitions",animation_help:"Switch off animation transitions to reduce runtime cost.",runInBg:"Keep in Background",runInBg_help:"Keep the browser running in background after close so that global shortcuts still work.",darkMode:"Dark Mode",langCode:"App Language",editOnFav:"Open WordEditor when saving",editOnFav_help:"When turned off, new words will be added to notebook directly.",searchHistory:"Keep search history",searchHistory_help:"Your browsing history could be unintentionally revealed in Search history.",searchHistoryInco:"Also in incognito mode",ctxTrans:"Context Translate Engines",ctxTrans_help:"Context sentence will be translated before being added to notebook.",searchSuggests:"Search suggests",panelMaxHeightRatio:"Panel max height ratio",panelWidth:"Panel width",fontSize:"Font size for search reasults",bowlOffsetX:"Saladict icon Offset X",bowlOffsetY:"Saladict icon Offset Y",panelCSS:"Custom Dict Panel Styles",panelCSS_help:"Custom CSS. For Dict Panel use .dictPanel-Root as root. For dictionaries use .dictRoot or .d-{id} as root",noTypeField:"No selection on editable regions",noTypeField_help:"If selection making in editable regions is banned, the extension will identify Input Boxes, TextAreas and other common text editors like CodeMirror, ACE and Monaco.",touchMode:"Touch Mode",touchMode_help:"Enable touch related selection",language:"Selection Languages",language_help:"Search when selection contains words in the chosen languages.",language_extra:"Note that Japanese and Korean also include Chinese. French, Deutsch and Spanish also include English. If Chinese or English is cancelled while others are selected, only the exclusive parts of those languages are tested. E.g. kana characters in Japanese.",doubleClickDelay:"Double Click Delay",mode:"Normal Selection",panelMode:"Inside Dict Panel",pinMode:"When Panel is Pinned",qsPanelMode:"When Standalone Panel is Opened",bowlHover:"Icon Mouse Hover",bowlHover_help:"Hover on the bowl icon to trigger searching instead of clicking.",autopron:{cn:{dict:"Chinese Auto-Pronounce"},en:{dict:"English Auto-Pronounce",accent:"Accent Preference"},machine:{dict:"Machine Auto-Pronounce",src:"Machine Pronounce",src_help:"Machine Translation Dictionary needs to be added and enabled on the list below to enable auto-pronunciation.",src_search:"Read Source Text",src_trans:"Read Translation Text"}},pdfSniff:"Enable PDF Sniffer",pdfSniff_help:"If turned on, PDF links will be automatically captured (including local files, if file URL access is enabled on the extensions page).",pdfSniff_extra:"It is recommended to {search selected text outside of browser} with your own favorite local reader.",pdfStandalone:"Standalone Panel",pdfStandalone_help:"Open PDF viewer in standalone panel.",baWidth:"Width",baWidth_help:"Browser Action Panel wdith. Dict Panel width will be used if a negative value is chosen.",baHeight:"Height",baHeight_help:"Browser Action Panel height.",baOpen:"Browser Action",baOpen_help:"When clicking the browser action icon in toolbar (next to the address bar). Items are same as Context Menus, which can be added or edited on the Context Menus config page.",tripleCtrl:"Enable Ctrl Shortkey",tripleCtrl_help:"Press {⌘ Command}(macOS) or {Ctrl}(Others) three times (or with browser shortkey) to summon the dictionary panel. ",defaultPinned:"Pinned when shows up",qsLocation:"Location",qsFocus:"Focus when shows up",qsStandalone:"Standalone",qsStandalone_help:"Render dict panel in a standalone window. You can {search selected text outside of browser}.",qssaSidebar:"Sidebar Layout",qssaSidebar_help:"Rearrange windows to sidebar-like layout.",qssaHeight:"Window Height",qssaPageSel:"Selection Response",qssaPageSel_help:"Response to page selection.",qssaRectMemo:"Remember size and position",qssaRectMemo_help:"Remember standalone panel size and position on close.",updateCheck:"Check Update",updateCheck_help:"Check update automatically.",analytics:"Enable Google Analytics",analytics_help:"Share anonymous device browser version information. Saladict author will offer prioritized support to popular devices and browsers.",opt:{reset:"Reset Configs",reset_confirm:"Reset to default settings. Confirm?",upload_error:"Unable to save settings.",accent:{uk:"UK",us:"US"},sel_blackwhitelist:"Selection Black/White List",sel_blackwhitelist_help:"Saladict will not react to selection in blacklisted pages.",pdf_blackwhitelist_help:"Blacklisted PDF links will not jump to Saladict PDF Viewer.",contextMenus_description:"Each context menus item can also be customized. Youdao and Google page translate are deprecated in favor of the official extensions.",contextMenus_edit:"Edit Context Menus Items",contextMenus_url_rules:"URL with %s in place of query.",baOpen:{popup_panel:"Dict Panel",popup_fav:"Add to Notebook",popup_options:"Open Saladict Options",popup_standalone:"Open Saladict Standalone Panel"},openQsStandalone:"Standalone Panel Options",pdfStandalone:{default:"Never",always:"Always",manual:"Manual"}}},matchPattern:{description:"Specify URL as {URL Match Pattern} or {Regular Expression}. Empty fields will be removed.",url:"URL Match Pattern",url_error:"Incorrect URL Match Pattern.",regex:"Regular Expression",regex_error:"Incorrect Regular Expression."},searchMode:{icon:"Show Icon",icon_help:"A cute little icon pops up nearby the cursor.",direct:"Direct Search",direct_help:"Show dict panel directly.",double:"Double Click",double_help:"Show dict panel after double click selection.",holding:"Hold a key",holding_help:'After a selection is made, the selected key must be pressing when releasing mouse (Alt is "⌥ Option" on macOS. Meta key is "⌘ Command" on macOS and "⊞ Windows" for others.).',instant:"Instant Capture",instant_help:"Selection is automatically made near by the cursor.",instantDirect:"Direct",instantKey:"Key",instantKey_help:'If "Direct" is chosen it is also recommeded setting browser shortkey to toggle Instant Capture. Otherwise browser text selection could be unable to perform.',instantDelay:"Capture delay"},profiles:{opt:{add_name:"Add Profile Name",delete_confirm:'Delete Profile "{{name}}". Confirm?',edit_name:"Change Profile Name",help:"Each profile represents an independent set of settings. Some of the settings (with {*} prefix) change according to profile. One may switch profiles by hovering on the menu icon on Dict Panel, or focus on the icon then hit {↓}."}},profile:{mtaAutoUnfold:"Auto unfold multiline search box",waveform:"Waveform Control",waveform_help:"Display a button at the bottom of the Dict Panel for expanding the Waveform Control Panel which is only loaded after expansion.",stickyFold:"Sticky Folding",stickyFold_help:"Remembers manual dictionary folding/unfolding states when searching. Only last on the same page.",opt:{item_extra:'This option may change base on "Profile".',mtaAutoUnfold:{always:"Keep Unfolding",never:"Never Unfold",once:"Unfold Once",popup:"Only On Browser Action",hide:"Hide"},dict_selected:"Selected Dicts"}},dict:{add:"Add dicts",more_options:"More Options",selectionLang:"Selection Languages",selectionLang_help:"Show this dictionary when selection contains words in the chosen languages.",defaultUnfold:"Default Unfold",defaultUnfold_help:"If turned off, this dictionary won't start searching unless it's title bar is clicked.",selectionWC:"Selection Word Count",selectionWC_help:"Show this dictionary when selection word count meets the requirements. Set 999999 for unlimited words.",preferredHeight:"Default Panel Height",preferredHeight_help:"Maximum height on first appearance. Contents exceeding this height will be hidden. Set 999999 for unlimited height.",lang:{de:"De",en:"En",es:"Es",fr:"Fr",ja:"Ja",kor:"Kor",zhs:"Zhs",zht:"Zht"}},syncService:{description:"Sync settings.",start:"Syncing. Do not close this page until finished.",finished:"Syncing finished",success:"Syncing success",failed:"Syncing failed",close_confirm:"Settings not saved. Close?",delete_confirm:"Delete?",shanbay:{description:"Go to shanbay.com and log in first(must stay logged in). Note that it's a one-way sync(from Saladict to Shanbay). Only the new added words are synced. Words also need to be supported by Shanbay's database.",login:"Will open shanbay.com. Please log in then come back and enable again.",sync_all:"Upload all existing new words",sync_all_confirm:"Too many new words in notebook. Saladict will upload in batches. Note that uploading too many words in short period would cause account banning which is unrecoverable. Confirm?",sync_last:"Upload the last new word"},eudic:{description:"Before using Eudic to synchronize words, you must first create a default new word book on Eudic official website (my.eudic.net/home/index) (generally, it will be automatically generated and cannot be deleted after the first manual import). Pay attention not to synchronize frequently in a short time, which may cause temporary lock.",token:"Authorization information",getToken:"Get authorization",verify:"Check authorization information",verified:"Eudic authorization information checked successfully",enable_help:"After opening, each new word added will be automatically synchronized to the Eudic default word book (salad to Eudic word book) in one direction, and only the new word itself will be synchronized (deleted out of synchronization)",token_help:"Please confirm to set valid personal authorization information, otherwise the synchronization will fail. You can click the button at the bottom to check.",sync_all:"Synchronize all new words",sync_help:"Synchronize all existing new words in salad word book to the Eudic default word book (turn on the synchronization switch above at the same time and click save)",sync_all_confirm:"Note that frequent synchronization in a short time may lead to lock temporarily. Are you sure to continue?"},webdav:{description:"Extension settings (including this) are synced via browser. New words notebook can be synced via WebDAV through settings here.",jianguo:"See Jianguoyun for example",checking:"Connecting...",exist_confirm:"Saladict directory exists on server. Download it and merge with local data?",upload_confirm:"Upload local data to Server right away?",verify:"Verify server",verified:"Successfully verified WebDAV server.",duration:"Duration",duration_help:"Data is guaranteed to be updated before upload. If you do not need real-time syncing across browsers, set a longer polling cycle to reduce CPU and memory footprint.",passwd:"Password",url:"Server Address",user:"User Account"},ankiconnect:{description:"Please make sure Anki Connect plugin is installed and Anki is running. You can also update word to Anki in Word Editor.",checking:"Checking...",deck_confirm:'Deck "{{deck}}" does not exist in Anki. Generate a new deck?',deck_error:'Unable to create deck "{{deck}}".',notetype_confirm:'Note type "{{noteType}}" does not exist in Anki. Generate a new note type.',notetype_error:'Unable to create note type "{{noteType}}".',upload_confirm:"Sync local new words to Anki right away? Duplicated words (with same timestamp) will be skipped.",add_yourself:"Please add it youself in Anki.",verify:"Verify Anki Connect",verified:"Successfully verified Anki Connect",enable_help:'When enabled, each time a new word is added to Notebook it will also be ported to Anki automatically. Words that exist in Anki(with same "Date") can be force-updated in Word Editor.',host:"Address",port:"port",key:"Key",key_help:"Optional key can be added in Anki Connect config for identification.",deckName:"Deck",deckName_help:'If deck does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below.',noteType:"Note Type",noteType_help:'Anki note type includes a set of fields and card type. If note type does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below. DO NOT change field names when editing or adding card templates in Anki',tags:"Tags",tags_help:"Anki notes can include tags separated with commas.",escapeHTML:"Escape HTML",escapeHTML_help:"Escape HTML entities. Turn off if using HTML for manual layout.",syncServer:"Sync Server",syncServer_help:"Sync to server(e.g. AnkiWeb) after new words being added to local Anki."}},titlebarOffset:{title:"Calibrate Titlebar Height",help:"Different systems or browser settings may result in different titlebar height. Saladict will attempt to calibrate automatically. If you may adjust manually.",main:"Normal",main_help:"Normal windows may not have titlebar.",panel:"Panel",panel_help:"Saladict standalone quick search panel is a type of panel window.",calibrate:"Auto-calibrate",calibrateSuccess:"Calibration success",calibrateError:"Calibration failed"},headInfo:{acknowledgement:{title:"Acknowledgement",yipanhuasheng:"for adding Merriam Webster's Dict, American Heritage Dict, Oxford Learner's Dict and Eudic Notebook sync service; and updating Urban Dict and Naver Dict",naver:"for helping add Naver dict",shanbay:"for adding Shanbay dict",trans_tw:"for traditional Chinese translation",weblio:"for helping add Weblio dict"},contact_author:"Contact Author",donate:"Donate",instructions:"Instructions",report_issue:"Report Issue"},form:{url_error:"Incorrect URL.",number_error:"Incorrect number."},preload:{title:"Preload",auto:"Auto search",auto_help:"Search automatically when panel shows up.",clipboard:"Clipboard",help:"Preload content in search box when panel shows up.",selection:"Page Selection"},locations:{CENTER:"Center",TOP:"Top",RIGHT:"Right",BOTTOM:"Bottom",LEFT:"Left",TOP_LEFT:"Top Left",TOP_RIGHT:"Top Right",BOTTOM_LEFT:"Bottom Left",BOTTOM_RIGHT:"Bottom Right"},import_export_help:"Configs are auto-synced via browser. Here you can also import/export manually. Backups are exported as plain text files. Please encrypt it yourself if needed.",import:{title:"Import Configs",error:{title:"Import Error",parse:"Unable to parse backup. Incorrect format.",load:"Unable to load backup. Browser cannot obtain the local file.",empty:"No valid data found in the backup."}},export:{title:"Export Configs",error:{title:"Export Error",empty:"No config to export.",parse:"Unable to parse configs."}},dictAuth:{description:"As the number of Saladict users grows, if you make heavily use of machine translation services it is recommended to register an account for better stability and accuracy. The account data will only be stored in the browser.",dictHelp:"See the official website of {dict}.",manage:"Manage Translator Accounts"},third_party_privacy:"Third Party Privacy",third_party_privacy_help:'Saladict will not collect further information but search text and releated cookies will be sent to third party dictionary services(just like how you would search on their websites). If you do not want third party services to collect you data, remove the corresponding dictionaries at "Dictionaries" settings.',third_party_privacy_extra:"Cannot be turned off as it is the core functionality of Saladict.",permissions:{success:"Permission requested",cancel_success:"Permission cancelled",failed:"Permission request failed",cancelled:"Permission request cancelled by user",missing:'Missing permission "{{permission}}". Either grant it or disable related functions.',clipboardRead:"Read Clipboard",clipboardRead_help:"This permission is needed when clipboard preload is enable for popup panel or quick search panel.",clipboardWrite:"Write Clipboard",clipboardWrite_help:"This permission is needed when using titlebar menus to copy source/target text from machine translator."},unsupportedFeatures:{ff:'Feature "{{feature}}" is not supported in Firefox.'}}},415:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Saladict Browser Action Panel",app_active_title:"Enable Inline Translator",app_temp_active_title:"Temporary disabled to the page",instant_capture_pinned:" (pinned) ",instant_capture_title:"Enable Instant Capture",notebook_added:"Added",notebook_empty:"No selection found on the current page",notebook_error:"Cannot add selected text to Notebook",page_no_response:"Page no response",qrcode_title:"Qrcode of the page"}},416:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:{history:"Saladict Search History",notebook:"Saladict Notebook"},localonly:"local only",column:{add:"Add",date:"Date",edit:"Edit",note:"Note",source:"Source",trans:"Translation",word:"Word"},delete:{title:"Delete",all:"Delete all",confirm:". Confirm?",page:"Delete page",selected:"Delete selected"},export:{title:"Export",all:"Export all",description:"Describe the shape of each record: ",explain:"How to export to ANKI and other tools",gencontent:"Generated Content",linebreak:{default:"Keep default linebreaks",n:"replace linebreaks with \\n",br:"replace linebreaks with <br>",p:"replace linebreaks with <p>",space:"replace linebreaks with space"},page:"Export page",placeholder:"Placeholder",htmlescape:{title:"Escape HTML characters in notes",text:"Escape HTML"},selected:"Export selected"},filterWord:{chs:"Chinese",eng:"English",word:"Word",phrase:"Phrase"},wordCount:{selected:"{{count}} item selected",selected_plural:"{{count}} item selected",total:"{{count}} item total",total_plural:"{{count}} item total"}}},417:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={app:{off:"Saladict desactivado. (El panel de búsqueda rápida sigue disponible)",tempOff:"Saladict desactivado en la pestaña actual. (El panel de búsqueda rápida sigue disponible)",unsupported:"El panel Saladict incrustado no es compatible con la pestaña actual. Utilice el panel Saladict independiente en su lugar."}}},418:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={add:"Añadir",delete:"Eliminar",save:"Guardar",cancel:"CAncelar",edit:"Editar",sort:"Ordenar",rename:"Renombrar",confirm:"Confirmar",changes_confirm:"Cambios no guardados. ¿Cerrar de todas formas?",delete_confirm:"¿Eliminar completamente el elemento?",max:"Max",min:"Min",name:"Nombre",none:"Ninguno",enable:"Activar",enabled:"Activado",disabled:"Desactivado",blacklist:"Lista negra",whitelist:"Lista blanca",import:"Importar",export:"Exportar",lang:{chinese:"Chino",chs:"Chino",deutsch:"Alemán",eng:"Inglés",english:"Inglés",french:"Francés",japanese:"Japonés",korean:"Coreano",matchAll:"Coincidir con todos los caracteres",minor:"Menor",others:"Otros",spanish:"Español"},unit:{mins:"minutes",ms:"ms",s:"s",word:"words"},note:{word:"Word",trans:"Translation",note:"Note",context:"Context",contextCloze:"Context Cloze",date:"Date",srcTitle:"Source Title",srcLink:"Source Link",srcFavicon:"Source Favicon"},profile:{daily:"Daily Mode",sentence:"Sentence Mode",default:"Default Mode",scholar:"Scholar Mode",translation:"Translation Mode",nihongo:"Japanese Mode"}}},419:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={chooseLang:"elegir otro idioma",standalone:"Panel de Saladict independiente",fetchLangList:"Obtener la lista completa de idiomas",transContext:"Retraducir",neverShow:"Dejar de mostrar",fromSaladict:"Desde el panel de Saladict",tip:{historyBack:"Historial de búsqueda anterior",historyNext:"Siguiente historial de búsqueda",searchText:"Buscar texto",openOptions:"Abrir opciones",addToNotebook:"Agregar al cuaderno. Haga clic derecho para abrir el cuaderno",openNotebook:"Abrir cuaderno",openHistory:"Abrir historial",shareImg:"Compartir como imagen",pinPanel:"Fijar el panel",closePanel:"Cerrar el panel",sidebar:"Cambiar a modo barra lateral. Haga clic derecho para el lado derecho.",focusPanel:"El panel gana foco al buscar",unfocusPanel:"El panel no gana foco al buscar"},wordEditor:{title:"Agregar al cuaderno",wordCardsTitle:"Otros resultados del cuaderno",deleteConfirm:"¿Eliminar del cuaderno?",closeConfirm:"Los cambios no se guardarán. ¿Estás seguro de cerrar?",chooseCtxTitle:"Elija los resultados traducidos",ctxHelp:"Mantenga el formato [:: xxx ::] y --------------- si desea que Saladict maneje la selección de traducción y genere una tabla de Anki."},machineTrans:{switch:"Cambiar idioma",sl:"Idioma de origen",tl:"Idioma de destino",auto:"Detectar idioma",stext:"Original",showSl:"Mostrar fuente",copySrc:"Copiar fuente",copyTrans:"Copiar traducción",login:"Proporcione {access token}.",dictAccount:"access token"},manualVerification:{title:"Se requiere verificación manual",message:"Abra la página original del diccionario y complete la verificación humana, luego vuelva a buscar en Saladict.",openPage:"Abrir página del diccionario"},updateAnki:{title:"Actualizar a Anki",success:"Se actualizó correctamente la palabra a Anki.",failed:"No se pudo actualizar la palabra a Anki."}}},42:function(e,t,n){"use strict";function a(e){const t=Array.isArray(e)?e:Array.from(e);return Promise.all(t.map(e=>Promise.resolve(e).catch(()=>null)))}function o(e){const t=Array.isArray(e)?e:Array.from(e);let n=0;return new Promise((e,a)=>t.forEach(o=>{Promise.resolve(o).then(e).catch(()=>{++n===t.length&&a(new Error("All rejected"))})}))}function r(...e){return new Promise(t=>{setTimeout(()=>e.length>1?t(e[1]):t(),Number(e[0])||0)})}function i(e,t=0){return Promise.race([e,r(t).then(()=>Promise.reject(new Error(`timeout ${t}ms`)))])}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i}))},420:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));var a=n(269);const o={...a,default:"Predeterminado",ne_NP:"Nepalí",ara:"Arabe","bs-Latn":"Bosnio",bul:"Búlgaro",cht:"Chino (Tradicional)",dan:"Danés",est:"Estonio",fin:"Finlandés",fra:"Francés",iw:"Hebreo",jp:"Japonés",kor:"Coreano",kr:"Coreano",pt_BR:"Brasileño",rom:"Rumano",slo:"Esloveno",spa:"Español",swe:"Sueco",tl:"Tagalo (Filipino)",vie:"Vietnamita",zh:"Chino (Simplificado)","zh-CHS":"Chino (Simplificado)","zh-CHT":"Chino (Tradicional)"}},421:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={baidu_page_translate:"Traductor web de baidu",baidu_search:"Buscar en baidu",bing_dict:"Bing diccionario",bing_search:"Buscar en bing",caiyuntrs:"Traductor de Lingocloud",cambridge:"Cambridge",copy_pdf_url:"Copiar URL de PDF al portapapeles",dictcn:"Dictcn",etymonline:"Etymonline",google_cn_page_translate:"Traductor web de Google.cn",google_page_translate:"Traductor de Google",google_search:"Buscar en Google",google_translate:"Traductor de Google",google_cn_translate:"Traductor de Google.cn",guoyu:"國語辭典",history_title:"Historial de búsqueda",iciba:"iciba",liangan:"兩岸詞典",longman_business:"Longman Business",manual_title:"Manual",merriam_webster:"Merriam Webster",microsoft_page_translate:"Traductor web de Microsoft",notebook_title:"Lista de palabras nuevas",notification_youdao_err:"Youdao Page Translate 2.0 no responde.\nSaladict puede que no tenga permiso para acceder a esta página.\nIgnora este mensaje si el panel de Youdao se muestra.",oxford:"Oxford",page_permission_err:'Saladict "{{name}}" no tiene permiso para acceder a esta página.',page_translations:"Traducciones de página",saladict:"Saladict",saladict_standalone:"Panel Saladict independiente",sogou:"Traductor de Sogou",sogou_page_translate:"Traductor web de Sogou",termonline:"Termonline",view_as_pdf:"Abrir en el visor de PDF",youdao:"Youdao",youdao_page_translate:"Traductor web de Youdao",youglish:"YouGlish"}},422:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Saladict Opciones",previewPanel:"Panel de vista previa",shortcuts:"Atajos de teclado",msg_update_error:"Error al actualizar",msg_updated:"Actualizado",msg_first_time_notice:"¡Bienvenido a Saladict!",msg_err_permission:'No se ha podido solicitar el permiso "{{permission}}".',unsave_confirm:"Hay cambios sin guardar. ¿Estás seguro de que quieres salir?",nativeSearch:"Buscar con el motor de búsqueda nativo",firefox_shortcuts:'Abra about:addons, haga clic en el botón superior derecho "engranaje", elija la última "Administrar accesos directos de extensión".',tutorial:"Tutorial",page_selection:"Selección de página",nav:{General:"General",Notebook:"Bloc de notas",Profiles:"Perfiles",DictPanel:"Panel de diccionario",SearchModes:"Modos de búsqueda",Dictionaries:"Diccionarios",DictAuths:"Access Tokens",Popup:"Popup Panel",QuickSearch:"Busqueda rápida",Pronunciation:"Pronunciación",PDF:"PDF",ContextMenus:"Menús de contexto",BlackWhiteList:"Lista negra/Blanca",ImportExport:"Importar/Exportar",Privacy:"Privacidad",Permissions:"Permisos"},config:{active:"Activar el traductor en línea",active_help:"Si está desactivado, el traductor en línea no se mostrará en el panel de búsqueda rápida.",animation:"Transiciones de animación",animation_help:"Desactive las transiciones de animación para mejorar el rendimiento.",runInBg:"Ejecutar en segundo plano",runInBg_help:"Si está desactivado, Saladict se cerrará cuando se cierre la última ventana.",darkMode:" Modo oscuro",langCode:"Idioma de Saladict",editOnFav:"Abrir WordEditor al guardar",editOnFav_help:"Si está desactivado, WordEditor se abrirá cuando se agregue una palabra nueva.",searchHistory:"Historial de búsqueda",searchHistory_help:"Si está desactivado, el historial de búsqueda no se mostrará en el panel de búsqueda rápida.",searchHistoryInco:"Incluir búsqueda de incógnito",ctxTrans:"Traducir contexto",ctxTrans_help:"Si está desactivado, el contexto no se mostrará en el panel de búsqueda rápida.",searchSuggests:"Sugerencias de búsqueda",panelMaxHeightRatio:"Altura máxima del panel",panelWidth:"Ancho del panel",fontSize:"Tamaño de fuente",bowlOffsetX:"Desplazamiento X del icono de Saladict",bowlOffsetY:"Desplazamiento Y del icono de Saladict",panelCSS:"CSS personalizado",panelCSS_help:"CSS personalizado. Para el panel de dictado, utilice .dictPanel-Root como raíz. Para diccionarios utilice .dictRoot o .d-{id} como raíz.",noTypeField:"No hay selección en las regiones editables",noTypeField_help:"Si la selección en regiones editables está prohibida, la extensión identificará los cuadros de entrada, las áreas de texto y otros editores de texto comunes como CodeMirror, ACE y Monaco.",touchMode:"Modo táctil",touchMode_help:"Activar la selección táctil",language:"Selección de idiomas",language_help:"Buscar cuando la selección contiene palabras en los idiomas elegidos.",language_extra:"Tenga en cuenta que el japonés y el coreano también incluyen el chino. El francés, el alemán y el español también incluyen el inglés. Si se cancela el chino o el inglés mientras se seleccionan otros, sólo se comprueban las partes exclusivas de esos idiomas. Por ejemplo, los caracteres kana en japonés.",doubleClickDelay:"Retraso de doble clic",mode:"Seleccion normal",panelMode:"Interior del panel Dict",pinMode:"Cuando el panel está fijado",qsPanelMode:"Cuando se abre el panel independiente",bowlHover:"Icono al pasar el cursor por encima",bowlHover_help:"Pase el ratón sobre el icono del cuenco para activar la búsqueda en lugar de hacer clic.",autopron:{cn:{dict:"Autopronunciación en chino"},en:{dict:"Autopronunciación en inglés",accent:"Preferencia de acento"},machine:{dict:"Autopronunciación de la máquina",src:"Pronunciar a máquina",src_help:"El diccionario de traducción automática debe añadirse y activarse en la siguiente lista para activar la pronunciación automática.",src_search:"Leer texto original",src_trans:"Leer el texto de la traducción"}},pdfSniff:"Activar PDF Sniffer",pdfSniff_help:"Si está activada, los enlaces PDF se capturarán automáticamente.",pdfSniff_extra:"Se recomienda {search selected text outside of browser} con su propio lector local favorito.",pdfStandalone:"Panel independiente",pdfStandalone_help:"Abrir visor de PDF en panel independiente.",baWidth:"Anchura",baWidth_help:"Navegador Acción Panel con. Si se elige un valor negativo, se utilizará la anchura del panel.",baHeight:"Altura",baHeight_help:"Navegador Acción Panel altura.",baOpen:"Acción del navegador",baOpen_help:"Al pulsar el icono de acción del navegador en la barra de herramientas (junto a la barra de direcciones). Los elementos son los mismos que los menús contextuales, que pueden añadirse o editarse en la página de configuración de menús contextuales.",tripleCtrl:"Activar tecla corta Ctrl",tripleCtrl_help:"Pulse {⌘ Command}(macOS) o {Ctrl}(Otros) tres veces (o con la tecla rápida del navegador) para acceder al panel del diccionario.",defaultPinned:"Fijado cuando aparece",qsLocation:"Ubicación",qsFocus:"Concéntrese cuando aparezca",qsStandalone:"Independiente",qsStandalone_help:"Renderizar el panel de dictado en una ventana independiente. Puede {buscar texto seleccionado fuera del navegador}.",qssaSidebar:"Barra lateral",qssaSidebar_help:"Renderizar el panel de dictado en la barra lateral.",qssaHeight:"Ventana altura",qssaPageSel:"Selección de página",qssaPageSel_help:"Seleccionar automáticamente el texto de la página.",qssaRectMemo:"Recordar tamaño y posición",qssaRectMemo_help:"Recuerde el tamaño y la posición del panel independiente al cerrar.",updateCheck:"Comprobar actualizaciones",updateCheck_help:"Compruebe si hay actualizaciones automáticamente.",analytics:"Activar Google Analytics",analytics_help:"Compartir información anónima sobre la versión del navegador del dispositivo. El autor de Saladict ofrecerá soporte prioritario a los dispositivos y navegadores más populares.",opt:{reset:"Restablecer configuración",reset_confirm:"¿Estás seguro de que quieres restablecer la configuración?",upload_error:"Error al cargar la configuración",accent:{uk:"UK",us:"US"},sel_blackwhitelist:"Lista negra y blanca de selección",sel_blackwhitelist_help:"Saladict no reaccionará a la selección en páginas de la lista negra.",pdf_blackwhitelist_help:"Los enlaces PDF de la lista negra no saltarán a Saladict PDF Viewer.",contextMenus_description:"Cada elemento del menú contextual también se puede personalizar. Youdao y Google Traductor están obsoletos en favor de las extensiones oficiales.",contextMenus_edit:"Editar elementos de menús contextuales",contextMenus_url_rules:"URL con %s en lugar de query.",baOpen:{popup_panel:"Panel de diccionario",popup_fav:"Añadir al bloc de notas",popup_options:"Abrir opciones de Saladict",popup_standalone:"Panel independiente Open Saladict"},openQsStandalone:"Opciones de panel independiente",pdfStandalone:{default:"Nunca",always:"Siempre",manual:"Manual"}}},matchPattern:{description:"Especifique URL como {URL Patrón de Coincidencia} o {Expresión Regular}. Se eliminarán los campos vacíos.",url:"URL Patrón de Coincidencia",url_error:"Patrón de coincidencia de URL incorrecto.",regex:"Expresión regular",regex_error:"Expresión regular incorrecta."},searchMode:{icon:"Mostrar icono",icon_help:"Aparecerá un bonito icono cerca del cursor.",direct:"Busqueda directa",direct_help:"Mostrar directamente el panel dict.",double:"Doble clic",double_help:"Mostrar panel de dict después de la selección de doble clic.",holding:"Mantener pulsado",holding_help:'Después de realizar una selección, la tecla seleccionada debe estar pulsada al soltar el ratón (Alt es "⌥ Opción" en macOS. Meta es "⌘ Comando" en macOS y "⊞ Windows" para los demás).',instant:"Captura instantánea",instant_help:"La selección se realiza automáticamente cerca del cursor.",instantDirect:"Directo",instantKey:"Tecla",instantKey_help:'Si se elige "Directo", también se recomienda configurar la tecla de acceso directo del navegador para activar la Captura instantánea. De lo contrario, la selección de texto en el navegador podría ser imposible.',instantDelay:"Retraso de captura"},profiles:{opt:{add_name:"Añadir nombre de perfil",delete_confirm:'Eliminar Perfil "{{name}}". ¿Confirmar?',edit_name:"Cambiar el nombre del perfil",help:"Cada perfil representa un conjunto independiente de ajustes. Algunos de los ajustes (con el prefijo {*}) cambian según el perfil. Para cambiar de perfil, sitúe el cursor sobre el icono de menú del panel de dictado, o bien sitúe el cursor sobre el icono y pulse {↓}."}},profile:{mtaAutoUnfold:"Despliegue automático del cuadro de búsqueda multilínea",waveform:"Forma de onda",waveform_help:"Muestra un botón en la parte inferior del panel de dictado para expandir el panel de control de forma de onda que sólo se carga después de la expansión.",stickyFold:"Plegado adhesivo",stickyFold_help:"Recuerda los estados de plegado/desplegado del diccionario manual al buscar. Sólo dura en la misma página.",opt:{item_extra:'Esta opción puede cambiar en función del "Perfil".',mtaAutoUnfold:{always:"Siempre Desplegar",never:"Nunca Desplegar",once:"Desplegar una vez",popup:"Sólo en la acción del navegador",hide:"Ocultar"},dict_selected:"Seleccionar diccionarios"}},dict:{add:"Añadir diccionarios",more_options:"Mas opciones",selectionLang:"Seleccionar idiomas",selectionLang_help:"Muestra este diccionario cuando la selección contiene palabras en los idiomas elegidos.",defaultUnfold:"Despliegue por defecto",defaultUnfold_help:"Si está desactivado, este diccionario no iniciará la búsqueda a menos que se haga clic en su barra de título.",selectionWC:"Selección Número de palabras",selectionWC_help:"Muestre este diccionario cuando el recuento de palabras de la selección cumpla los requisitos. Establezca 999999 para un número ilimitado de palabras.",preferredHeight:"Altura predeterminada del panel",preferredHeight_help:"Altura máxima en la primera aparición. Los contenidos que superen esta altura se ocultarán. Establezca 999999 para una altura ilimitada.",lang:{de:"De",en:"En",es:"Es",fr:"Fr",ja:"Ja",kor:"Kor",zhs:"Zhs",zht:"Zht"}},syncService:{description:"Ajustes de sincronización.",start:"Sincronizando. No cierre esta página hasta que haya terminado.",finished:"Sincronización finalizada",success:"Sincronización correcta",failed:"Sincronización fallida",close_confirm:"No se ha guardado la configuración. ¿Cerrar?",delete_confirm:"¿Eliminar?",shanbay:{description:" Vaya a shanbay.com y conéctese primero(debe permanecer conectado). Tenga en cuenta que se trata de una sincronización unidireccional (de Saladict a Shanbay). Sólo se sincronizan las nuevas palabras añadidas. Las palabras también deben ser compatibles con la base de datos de Shanbay.",login:"Se abrirá shanbay.com. Por favor, inicie sesión y luego volver y habilitar de nuevo.",sync_all:"Cargar todas las palabras nuevas existentes",sync_all_confirm:"Demasiadas palabras nuevas en el cuaderno. Saladict cargará por lotes. Ten en cuenta que si subes demasiadas palabras en un periodo corto de tiempo, tu cuenta será bloqueada y no se podrá recuperar. ¿Confirmar?",sync_last:"Cargar la última palabra nueva"},eudic:{description:"Antes de utilizar Eudic para sincronizar palabras, primero debe crear un nuevo libro de palabras predeterminado en el sitio web oficial de Eudic (my.eudic.net/home/index) (por lo general, se generará automáticamente y no se podrá eliminar después de la primera importación manual). Preste atención a no sincronizar con frecuencia en poco tiempo, ya que podría provocar un bloqueo temporal.",token:"Información sobre la autorización",getToken:"Obtener autorización",verify:"Comprobar la información de autorización",verified:"Información de autorización Eudic comprobada correctamente",enable_help:"Tras la apertura, cada nueva palabra añadida se sincronizará automáticamente con el libro de palabras predeterminado de Eudic (ensalada al libro de palabras de Eudic) en una dirección, y sólo se sincronizará la nueva palabra en sí (eliminada fuera de sincronización)",token_help:"Por favor, confirme que la información de autorización personal es válida, de lo contrario la sincronización fallará. Puede hacer clic en el botón de la parte inferior para comprobarlo.",sync_all:"Sincronizar todas las palabras nuevas",sync_help:"Sincronice todas las palabras nuevas existentes en el libro de palabras de la ensalada con el libro de palabras predeterminado de Eudic (active el interruptor de sincronización anterior al mismo tiempo y haga clic en guardar).",sync_all_confirm:"Tenga en cuenta que una sincronización frecuente en poco tiempo puede provocar un bloqueo temporal. ¿Está seguro de continuar?"},webdav:{description:"La configuración de las extensiones (incluida esta) se sincroniza a través del navegador. El cuaderno de nuevas palabras se puede sincronizar mediante WebDAV a través de la configuración aquí.",jianguo:"Véase Jianguoyun, por ejemplo",checking:"Conectando...",exist_confirm:"El directorio Saladict existe en el servidor. ¿Descargarlo y fusionarlo con los datos locales?",upload_confirm:"¿Subir los datos locales al servidor de inmediato?",verify:"Verificar servidor",verified:"Verificado con éxito el servidor WebDAV.",duration:"Duracion",duration_help:"Se garantiza que los datos se actualizan antes de cargarlos. Si no necesita sincronización en tiempo real entre navegadores, establezca un ciclo de sondeo más largo para reducir el consumo de CPU y memoria.",passwd:"Contraseña",url:"Dirección del servidor",user:"Usuario"},ankiconnect:{description:"Por favor, asegúrate de que el plugin Anki Connect está instalado y Anki se está ejecutando. También puede actualizar la palabra a Anki en el editor de Word.",checking:"Verificando...",deck_confirm:'El tablero "{{deck}}" no existe en Anki. ¿Generar un nuevo tablero?',deck_error:'No se puede crear el tablero "{{deck}}".',notetype_confirm:'El tipo de nota "{{noteType}}" no existe en Anki. Genera un nuevo tipo de nota.',notetype_error:'No se puede crear el tipo de nota"{{noteType}}".',upload_confirm:"¿Sincronizar nuevas palabras locales a Anki inmediatamente? Las palabras duplicadas (con la misma marca de tiempo) se omitirán.",add_yourself:"Por favor, añádelo tú mismo en Anki.",verify:"Verificar Anki Connect",verified:"Anki Connect verificado correctamente.",enable_help:'Cuando está activada, cada vez que se añade una nueva palabra al Cuaderno, también se transfiere automáticamente a Anki. Las palabras que existen en Anki (con la misma "Fecha") pueden ser forzadas a actualizarse en el Editor de Palabras.',host:"Dirección",port:"Puerto",key:"Clave",key_help:"Se puede añadir una clave opcional en la configuración de Anki Connect para la identificación.",deckName:"Tablero",deckName_help:'Si el tablero no existe, puedes generar uno automáticamente haciendo clic en "Verificar Anki Connect" más abajo.',noteType:"Tipo de nota",noteType_help:'El tipo de nota Anki incluye un conjunto de campos y un tipo de tarjeta. Si el tipo de nota no existe puedes generar uno por defecto automáticamente haciendo clic en "Verificar Anki Connect" más abajo. NO cambie los nombres de los campos cuando edite o añada plantillas de tarjetas en Anki',tags:"Etiquetas",tags_help:"Anki notes can include tags separated with commas.",escapeHTML:"Escapar HTML",escapeHTML_help:"Escapar entidades HTML. Desactivar si se utiliza HTML para la maquetación manual.",syncServer:"Sincronizar con el servidor",syncServer_help:"Sincronización con el servidor (p.e. AnkiWeb) después de añadir nuevas palabras al Anki local."}},titlebarOffset:{title:"Calibración de la altura de la barra de título",help:"La altura de la barra de título puede variar según el sistema o la configuración del navegador. Saladict intentará calibrarla automáticamente. Si puede ajustar manualmente.",main:"Normal",main_help:"Las ventanas normales pueden no tener barra de título.",panel:"Panel",panel_help:"El panel de búsqueda rápida independiente de Saladict es un tipo de ventana de panel.",calibrate:"Auto-calibrate",calibrateSuccess:"Calibración correcta",calibrateError:"Error de calibración"},headInfo:{acknowledgement:{title:"Reconocimiento",yipanhuasheng:"por añadir los diccionarios Merriam Webster's Dict, American Heritage Dict, Oxford Learner's Dict y el servicio de sincronización Eudic Notebook; y por actualizar los diccionarios Urban Dict y Naver Dict.",naver:"por ayudar a añadir Naver dict",shanbay:"por añadir Shanbay dict",trans_tw:"por la traducción al chino tradicional",weblio:"por ayudar a añadir Weblio dict"},contact_author:"Contactar al autor",donate:"Donar",instructions:"Instrucciones",report_issue:"Informar de un problema"},form:{url_error:"URL incorrecta.",number_error:"Numero incorrecto."},preload:{title:"Precarga",auto:"Búsqueda automática",auto_help:"Búsqueda automática cuando aparece el panel.",clipboard:"Clipboard",help:"Precarga de contenido en el cuadro de búsqueda cuando aparece el panel.",selection:"Selección de página"},locations:{CENTER:"Centrado",TOP:"Arriba",RIGHT:"Derecha",BOTTOM:"Abajo",LEFT:"Izquierda",TOP_LEFT:"Arriba a la izquierda",TOP_RIGHT:"Arriba a la derecha",BOTTOM_LEFT:"Abajo a la izquierda",BOTTOM_RIGHT:"Abajo a la derecha"},import_export_help:"Las configuraciones se sincronizan automáticamente a través del navegador. Aquí también puede importar/exportar manualmente. Las copias de seguridad se exportan como archivos de texto sin formato. Por favor, codifíquelos usted mismo si es necesario.",import:{title:"Importar Configuraciones",error:{title:"Error de importación",parse:"No se ha podido analizar la copia de seguridad. Formato incorrecto.",load:"No se puede cargar la copia de seguridad. El navegador no puede obtener el archivo local.",empty:"No se han encontrado datos válidos en la copia de seguridad."}},export:{title:"Exportar Configuraciones",error:{title:"Error de exportación",empty:"No hay configuración para exportar.",parse:"No se pueden analizar las configuraciones."}},dictAuth:{description:"A medida que crece el número de usuarios de Saladict, si hace un uso intensivo de los servicios de traducción automática se recomienda registrar una cuenta para mejorar la estabilidad y la precisión. Los datos de la cuenta sólo se almacenarán en el navegador.",dictHelp:"Consulte el sitio web oficial de {dict}.",manage:"Gestionar cuentas de traductor"},third_party_privacy:"Privacidad de terceros",third_party_privacy_help:'Saladict no recopilará más información, pero el texto de la búsqueda y las cookies correspondientes se enviarán a servicios de diccionarios de terceros (igual que si buscara en sus sitios web). Si no desea que los servicios de terceros recopilen sus datos, elimine los diccionarios correspondientes en la configuración de "Diccionarios".',third_party_privacy_extra:"No se puede desactivar, ya que es la funcionalidad principal de Saladict.",permissions:{success:"Permiso solicitado",cancel_success:"Permiso cancelado",failed:"Solitud de permiso fallida",cancelled:"Solicitud de permiso cancelada por el usuario",missing:'Falta el permiso "{{permission}}". Concederlo o desactivar las funciones relacionadas.',clipboardRead:"Leer portapapeles",clipboardRead_help:"Este permiso es necesario cuando la precarga del portapapeles está activada para el panel emergente o el panel de búsqueda rápida.",clipboardWrite:"Escribir en el portapapeles",clipboardWrite_help:"Este permiso es necesario cuando se utilizan los menús de la barra de títulos para copiar texto de origen/destino del traductor automático."},unsupportedFeatures:{ff:'La característica "{{feature}}" no es compatible con Firefox.'}}},423:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Panel de acciones del navegador de Saladict",app_active_title:"Activar el traductor en línea",app_temp_active_title:"Desactivación temporal de la página",instant_capture_pinned:" (fijado) ",instant_capture_title:"Activar captura instantánea",notebook_added:"Añadido",notebook_empty:"No se ha encontrado ninguna selección en la página actual",notebook_error:"No se puede añadir el texto seleccionado al bloc de notas",page_no_response:"La pagina no responde",qrcode_title:"Qrcode de la página"}},424:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:{history:"Historial de búsqueda de Saladict",notebook:"Bloc de notas Saladict"},localonly:"Solo local",column:{add:"Añadir",date:"Fecha",edit:"Editar",note:"Nota",source:"Fuente",trans:"Traducción",word:"Palabra"},delete:{title:"Eliminar",all:"Eliminar todo",confirm:". ¿Desea eliminarlo?",page:"Eliminar página",selected:"Eliminar seleccionado"},export:{title:"Exportar",all:"Exportar todo",description:"Exportar a un archivo de texto",explain:"Cómo exportar a ANKI y otras herramientas",gencontent:"Generar contenido",linebreak:{default:"Mantener los saltos de línea por defecto",n:"sustituir los saltos de línea por \\n",br:"sustituir los saltos de línea por <br>",p:"sustituir los saltos de línea por <p>",space:"sustituir los saltos de línea por espacios"},page:"Exportar página",placeholder:"Marcador",htmlescape:{title:"Caracteres HTML de escape en las notas",text:"Escape HTML"},selected:"Exportar seleccionado"},filterWord:{chs:"Chino",eng:"Inglés",word:"Palabra",phrase:"Frase"},wordCount:{selected:"{{count}} elemento seleccionado",selected_plural:"{{count}} elemento seleccionado",total:"{{count}} elemento total",total_plural:"{{count}} elemento total"}}},425:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={app:{off:"सलाडिक्ट असक्षम। (द्रुत खोज प्यानल अझै उपलब्ध छ)",tempOff:"हालको ट्याबमा सलाडिक्ट असक्षम पारियो। (द्रुत खोज प्यानल अझै उपलब्ध छ)",unsupported:"हालको ट्याबका लागि एम्बेडेड सलाडिक प्यानल असमर्थित छ। यसको सट्टा स्ट्यान्डअलोन सलाडिक्ट प्यानल प्रयोग गर्नुहोस्।"}}},426:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={add:"थप्नुहोस्",delete:"हटाउनुहोस्",save:"बचत गर्नुहोस्",cancel:"रद्द गर्नुहोस्",edit:"सम्पादन",sort:"क्रमबद्ध",rename:"पुनःनामकरण",confirm:"पुष्टि गर्नुहोस्",changes_confirm:"परिवर्तनहरू बचत गरिएका छैनन्। जे भए पनि बन्द?",delete_confirm:"वस्तु पूर्ण रूपमा मेटाउने",max:"अधिकतम",min:"न्यूनतम",name:"नाम",none:"खाली",enable:"सक्षम गर्नुहोस्",enabled:"सक्षम गरिएको",disabled:"असक्षम गरिएको",blacklist:"कालो सूची",whitelist:"सेतो सूची",import:"आयात गर्नुहोस्",export:"निर्यात गर्नुहोस्",lang:{chinese:"चिनियाँ",chs:"चिनियाँ",deutsch:"डेउस्च",eng:"अंग्रेजी",english:"अंग्रेजी",french:"फ्रान्सेली",japanese:"जापानी",korean:"कोरियाली",matchAll:"सबै अक्षर मिलाउनुहोस्",minor:"झिनो",others:"अन्य",spanish:"स्पेनिस"},unit:{mins:"मिनेट",ms:"मिसे",s:"सेकेन्ड",word:"शब्द"},note:{word:"शब्द",trans:"अनुवाद",note:"टिप्पणी",context:"सन्दर्भ",contextCloze:"सन्दर्भ क्लोज",date:"मिति",srcTitle:"स्रोत शीर्षक",srcLink:"स्रोत लिंक",srcFavicon:"स्रोत फेभिकन"},profile:{daily:"दैनिक मोड",sentence:"वाक्य मोड",default:"पूर्वनिर्धारित मोड",scholar:"विद्वान मोड",translation:"अनुवाद मोड",nihongo:"जापानी मोड"}}},427:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={chooseLang:"अर्को भाषा छान्नुहोस्",standalone:"सलाडिक्ट स्ट्यान्डअलोन प्यानल",fetchLangList:"पूर्ण भाषा सूची तान्नुहोस्",transContext:"पुनः अनुवाद गर्नुहोस्",neverShow:"देखाउन रोक्नुहोस्",fromSaladict:"सलाडिक्ट प्यानलबाट",tip:{historyBack:"अघिल्लो खोज इतिहास",historyNext:"पछिल्लो खोज इतिहास",searchText:"पाठ खोज्नुहोस्",openOptions:"विकल्प खोल्नुहोस्",addToNotebook:"नोटबुकमा जोड्नुहोस्। नोटबुक खोल्न राइट क्लिक गर्नुहोस्",openNotebook:"नोटबुक खोल्नुहोस्",openHistory:"इतिहास खोल्नुहोस्",shareImg:"तस्विर रूपमा साझा गर्नुहोस्",pinPanel:"प्यानल पिन गर्नुहोस्",closePanel:"प्यानल बन्द गर्नुहोस्",sidebar:"साइडबार मोडमा स्विच गर्नुहोस्। दायाँ तर्फ दायाँ क्लिक गर्नुहोस्।",focusPanel:"खोज गर्दा प्यानलले फोकस गर्ने",unfocusPanel:"खोज गर्दा प्यानलले फोकस नगर्ने"},wordEditor:{title:"नोटबुकमा जोड्नुहोस्",wordCardsTitle:"नोटबुकबाट अन्य परिणामहरू",deleteConfirm:"नोटबुकबाट हटाउनुहोस्?",closeConfirm:"परिवर्तनहरू सुरक्षित हुँदैनन्। के तपाईँ बन्द गर्न चाहानुहुन्छ?",chooseCtxTitle:"अनुवाद गरिएको परिणामहरू छान्नुहोस्",ctxHelp:"अनुवाद छान्न र एन्की तालिका उत्पन्न गर्न सलाडिकलाई निर्देशन गर्न यदि तपाईँले [:: xxx ::] र --------------- ढाँचा राख्न चाहानुहुन्छ भने।"},machineTrans:{switch:"भाषा बदल्नुहोस्",sl:"स्रोत भाषा",tl:"लक्षित भाषा",auto:"भाषा पत्ता लगाउनुहोस्",stext:"सक्कल",showSl:"सोर्स देखाउनुहोस्",copySrc:"स्रोत कपि गर्नुहोस्",copyTrans:"अनुवाद कपि गर्नुहोस्",login:"कृपया {एसेस टोकन्} प्रदान गर्नुहोस्।",dictAccount:"एसेस टोकन्"},manualVerification:{title:"म्यानुअल प्रमाणीकरण आवश्यक छ",message:"मूल शब्दकोश पृष्ठ खोल्नुहोस् र मानव प्रमाणीकरण पूरा गर्नुहोस्, त्यसपछि Saladict मा फेरि खोज्नुहोस्।",openPage:"शब्दकोश पृष्ठ खोल्नुहोस्"},updateAnki:{title:"एन्कीमा अद्यावधिक गर्नुहोस्",success:"शब्द एन्कीमा सफलतापूर्वक अद्यावधिक गरियो।",failed:"शब्द एन्कीमा अद्यावधिक गर्न असफल भयो।"}}},428:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));var a=n(269);const o={...a,default:"पुर्वनिर्धारित",ne_NP:"नेपाली",ara:"अरबी","bs-Latn":"बोस्नियाली (ल्याटिन)",bul:"बुल्गेरियाली",cht:"चिनियाँ (परम्परागत)",dan:"डेनिस",est:"इस्टोनियाली",fin:"फिनिस",fra:"फ्रान्सेली",iw:"हिब्रु",jp:"जापानी",kor:"कोरियाली",kr:"कोरियाली",pt_BR:"पोर्तुगी (ब्राजिल)",rom:"रोमानियाली",slo:"स्लोभाकियाली",spa:"स्पेनिस",swe:"स्विडिस",tl:"फिलिपिनी (तागालोग)",vie:"भियतनामी",zh:"चिनियाँ (सरलिकृत)","zh-CHS":"चिनियाँ (सरलिकृत)","zh-CHT":"चिनियाँ (परम्परागत)"}},429:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={baidu_page_translate:"बाइडु पृष्ठ अनुवाद",baidu_search:"बाइडु खोजी",bing_dict:"बिङ शब्दकोश",bing_search:"बिङ खोजी",caiyuntrs:"Lingocloud पृष्ठ अनुवाद",cambridge:"क्याम्ब्रिज",copy_pdf_url:"पीडीएफ यूआरएल क्लिपबोर्डमा प्रतिलिपि गर्नुहोस्",dictcn:"Dictcn",etymonline:"Etymonline",google_cn_page_translate:"Google cn पृष्ठ अनुवाद",google_page_translate:"Google पृष्ठ अनुवाद",google_search:"Google खोजी",google_translate:"Google अनुवाद",google_cn_translate:"Google.cn अनुवाद",guoyu:"國語辭典",history_title:"खोज इतिहास",iciba:"iciba",liangan:"兩岸詞典",longman_business:"Longman Business",manual_title:"मैनुअल",merriam_webster:"Merriam Webster",microsoft_page_translate:"Microsoft पृष्ठ अनुवाद",notebook_title:"नयाँ शब्द सूची",notification_youdao_err:"यूडाओ पृष्ठ अनुवाद 2.0ले प्रतिक्रिया दिएन ।\nसलाडिक्ट यस पृष्ठमा पहुँच प्राप्त गर्न सक्दैन।\nयदि यूडाओ प्यानल देखाइएको छ भने यो सन्देश अवहेलना गर्नुहोस्।",oxford:"अक्सफोर्ड",page_permission_err:'सलाडिक्ट "{{name}}" यस पृष्ठमा पहुँच प्राप्त गर्न अनुमति छैन।',page_translations:"पृष्ठ अनुवाद",saladict:"सलाडिक्ट",saladict_standalone:"सलाडिक्ट स्ट्यान्डअलोन प्यानल",sogou:"सोगो अनुवाद",sogou_page_translate:"सोगो पृष्ठ अनुवाद",termonline:"Termonline",view_as_pdf:"पीडीएफ भिउमा खोल्नुहोस्",youdao:"यौडाओ",youdao_page_translate:"यौडाओ पृष्ठ अनुवाद",youglish:"यौग्लिश"}},43:function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"d",(function(){return y})),n.d(t,"a",(function(){return w})),n.d(t,"e",(function(){return x}));var a=n(112),o=n(57),r=n(102),i=n(10),c=n(88),s=n(182),l=n(39),d=n(11),u=n(1),p=n(38);const h=/mac/i.test(navigator.platform);function m(e){return h?"Meta"===e.key:"Control"===e.key}function f(e){return"Escape"===e.key}function g(e){return Object(a.a)(Object(i.a)(e)(Object(o.a)(window,"keydown",{capture:!0})),Object(c.a)(!1)(Object(o.a)(window,"keyup",{capture:!0})),Object(c.a)(!1)(Object(o.a)(window,"blur",{capture:!0})),Object(r.a)(!1)).pipe(Object(s.a)(),Object(l.a)(e=>e))}const b=/CodeMirror|ace_editor|monaco-editor/;function y(e){if(!e||!e.tagName)return!1;for(let t=e;t;t=t.parentElement){if(Object(p.a)(t,"input")||Object(p.a)(t,"textarea")||t.isContentEditable)return!0;if(b.test(String(t.className)))return!0}return!1}function w(e){const t=window.pageURL||document.URL||"";return!!t&&(e.blacklist.some(([e])=>new RegExp(e).test(t))&&e.whitelist.every(([e])=>!new RegExp(e).test(t)))}async function x(e={}){const t=await u.a.send({type:"PAGE_INFO"});return window.faviconURL=t.faviconURL,t.pageTitle&&(window.pageTitle=t.pageTitle),t.pageURL&&(window.pageURL=t.pageURL),Object(d.e)({title:t.pageTitle||document.title||"",url:t.pageURL||document.URL||"",favicon:t.faviconURL||"",...e})}},430:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Saladict Options",previewPanel:"Preview Dict Panel",shortcuts:"Set Shortcuts",msg_update_error:"Unable to update",msg_updated:"Successfully updated",msg_first_time_notice:"First time notice",msg_err_permission:'Unable to request "{{permission}}" permission.',unsave_confirm:"Settings not saved. Sure to leave?",nativeSearch:"search selected text outside of browser",firefox_shortcuts:'Open about:addons, click the top right "gear" button, choose the last "Manage extension shortcuts".',tutorial:"Tutorial",page_selection:"Page Selection",nav:{General:"General",Notebook:"Notebook",Profiles:"Profiles",DictPanel:"Dict Panel",SearchModes:"Search Modes",Dictionaries:"Dictionaries",DictAuths:"Access Tokens",Popup:"Popup Panel",QuickSearch:"Quick Search",Pronunciation:"Pronunciation",PDF:"PDF",ContextMenus:"Context Menus",BlackWhiteList:"Black/White List",ImportExport:"Import/Export",Privacy:"Privacy",Permissions:"Permissions"},config:{active:"Enable Inline Translator",active_help:'"Quick Search" is still available even if Inline translation is turned off.',animation:"Animation transitions",animation_help:"Switch off animation transitions to reduce runtime cost.",runInBg:"Keep in Background",runInBg_help:"Keep the browser running in background after close so that global shortcuts still work.",darkMode:"Dark Mode",langCode:"App Language",editOnFav:"Open WordEditor when saving",editOnFav_help:"When turned off, new words will be added to notebook directly.",searchHistory:"Keep search history",searchHistory_help:"Your browsing history could be unintentionally revealed in Search history.",searchHistoryInco:"Also in incognito mode",ctxTrans:"Context Translate Engines",ctxTrans_help:"Context sentence will be translated before being added to notebook.",searchSuggests:"Search suggests",panelMaxHeightRatio:"Panel max height ratio",panelWidth:"Panel width",fontSize:"Font size for search reasults",bowlOffsetX:"Saladict icon Offset X",bowlOffsetY:"Saladict icon Offset Y",panelCSS:"Custom Dict Panel Styles",panelCSS_help:"Custom CSS. For Dict Panel use .dictPanel-Root as root. For dictionaries use .dictRoot or .d-{id} as root",noTypeField:"No selection on editable regions",noTypeField_help:"If selection making in editable regions is banned, the extension will identify Input Boxes, TextAreas and other common text editors like CodeMirror, ACE and Monaco.",touchMode:"Touch Mode",touchMode_help:"Enable touch related selection",language:"Selection Languages",language_help:"Search when selection contains words in the chosen languages.",language_extra:"Note that Japanese and Korean also include Chinese. French, Deutsch and Spanish also include English. If Chinese or English is cancelled while others are selected, only the exclusive parts of those languages are tested. E.g. kana characters in Japanese.",doubleClickDelay:"Double Click Delay",mode:"Normal Selection",panelMode:"Inside Dict Panel",pinMode:"When Panel is Pinned",qsPanelMode:"When Standalone Panel is Opened",bowlHover:"Icon Mouse Hover",bowlHover_help:"Hover on the bowl icon to trigger searching instead of clicking.",autopron:{cn:{dict:"Chinese Auto-Pronounce"},en:{dict:"English Auto-Pronounce",accent:"Accent Preference"},machine:{dict:"Machine Auto-Pronounce",src:"Machine Pronounce",src_help:"Machine Translation Dictionary needs to be added and enabled on the list below to enable auto-pronunciation.",src_search:"Read Source Text",src_trans:"Read Translation Text"}},pdfSniff:"Enable PDF Sniffer",pdfSniff_help:"If turned on, PDF links will be automatically captured (including local files, if file URL access is enabled on the extensions page).",pdfSniff_extra:"It is recommended to {search selected text outside of browser} with your own favorite local reader.",pdfStandalone:"Standalone Panel",pdfStandalone_help:"Open PDF viewer in standalone panel.",baWidth:"Width",baWidth_help:"Browser Action Panel wdith. Dict Panel width will be used if a negative value is chosen.",baHeight:"Height",baHeight_help:"Browser Action Panel height.",baOpen:"Browser Action",baOpen_help:"When clicking the browser action icon in toolbar (next to the address bar). Items are same as Context Menus, which can be added or edited on the Context Menus config page.",tripleCtrl:"Enable Ctrl Shortkey",tripleCtrl_help:"Press {⌘ Command}(macOS) or {Ctrl}(Others) three times (or with browser shortkey) to summon the dictionary panel. ",defaultPinned:"Pinned when shows up",qsLocation:"Location",qsFocus:"Focus when shows up",qsStandalone:"Standalone",qsStandalone_help:"Render dict panel in a standalone window. You can {search selected text outside of browser}.",qssaSidebar:"Sidebar Layout",qssaSidebar_help:"Rearrange windows to sidebar-like layout.",qssaHeight:"Window Height",qssaPageSel:"Selection Response",qssaPageSel_help:"Response to page selection.",qssaRectMemo:"Remember size and position",qssaRectMemo_help:"Remember standalone panel size and position on close.",updateCheck:"Check Update",updateCheck_help:"Check update automatically.",analytics:"Enable Google Analytics",analytics_help:"Share anonymous device browser version information. Saladict author will offer prioritized support to popular devices and browsers.",opt:{reset:"Reset Configs",reset_confirm:"Reset to default settings. Confirm?",upload_error:"Unable to save settings.",accent:{uk:"UK",us:"US"},sel_blackwhitelist:"Selection Black/White List",sel_blackwhitelist_help:"Saladict will not react to selection in blacklisted pages.",pdf_blackwhitelist_help:"Blacklisted PDF links will not jump to Saladict PDF Viewer.",contextMenus_description:"Each context menus item can also be customized. Youdao and Google page translate are deprecated in favor of the official extensions.",contextMenus_edit:"Edit Context Menus Items",contextMenus_url_rules:"URL with %s in place of query.",baOpen:{popup_panel:"Dict Panel",popup_fav:"Add to Notebook",popup_options:"Open Saladict Options",popup_standalone:"Open Saladict Standalone Panel"},openQsStandalone:"Standalone Panel Options",pdfStandalone:{default:"Never",always:"Always",manual:"Manual"}}},matchPattern:{description:"Specify URL as {URL Match Pattern} or {Regular Expression}. Empty fields will be removed.",url:"URL Match Pattern",url_error:"Incorrect URL Match Pattern.",regex:"Regular Expression",regex_error:"Incorrect Regular Expression."},searchMode:{icon:"Show Icon",icon_help:"A cute little icon pops up nearby the cursor.",direct:"Direct Search",direct_help:"Show dict panel directly.",double:"Double Click",double_help:"Show dict panel after double click selection.",holding:"Hold a key",holding_help:'After a selection is made, the selected key must be pressing when releasing mouse (Alt is "⌥ Option" on macOS. Meta key is "⌘ Command" on macOS and "⊞ Windows" for others.).',instant:"Instant Capture",instant_help:"Selection is automatically made near by the cursor.",instantDirect:"Direct",instantKey:"Key",instantKey_help:'If "Direct" is chosen it is also recommeded setting browser shortkey to toggle Instant Capture. Otherwise browser text selection could be unable to perform.',instantDelay:"Capture delay"},profiles:{opt:{add_name:"Add Profile Name",delete_confirm:'Delete Profile "{{name}}". Confirm?',edit_name:"Change Profile Name",help:"Each profile represents an independent set of settings. Some of the settings (with {*} prefix) change according to profile. One may switch profiles by hovering on the menu icon on Dict Panel, or focus on the icon then hit {↓}."}},profile:{mtaAutoUnfold:"Auto unfold multiline search box",waveform:"Waveform Control",waveform_help:"Display a button at the bottom of the Dict Panel for expanding the Waveform Control Panel which is only loaded after expansion.",stickyFold:"Sticky Folding",stickyFold_help:"Remembers manual dictionary folding/unfolding states when searching. Only last on the same page.",opt:{item_extra:'This option may change base on "Profile".',mtaAutoUnfold:{always:"Keep Unfolding",never:"Never Unfold",once:"Unfold Once",popup:"Only On Browser Action",hide:"Hide"},dict_selected:"Selected Dicts"}},dict:{add:"Add dicts",more_options:"More Options",selectionLang:"Selection Languages",selectionLang_help:"Show this dictionary when selection contains words in the chosen languages.",defaultUnfold:"Default Unfold",defaultUnfold_help:"If turned off, this dictionary won't start searching unless it's title bar is clicked.",selectionWC:"Selection Word Count",selectionWC_help:"Show this dictionary when selection word count meets the requirements. Set 999999 for unlimited words.",preferredHeight:"Default Panel Height",preferredHeight_help:"Maximum height on first appearance. Contents exceeding this height will be hidden. Set 999999 for unlimited height.",lang:{de:"De",en:"En",es:"Es",fr:"Fr",ja:"Ja",kor:"Kor",zhs:"Zhs",zht:"Zht"}},syncService:{description:"Sync settings.",start:"Syncing. Do not close this page until finished.",finished:"Syncing finished",success:"Syncing success",failed:"Syncing failed",close_confirm:"Settings not saved. Close?",delete_confirm:"Delete?",shanbay:{description:"Go to shanbay.com and log in first(must stay logged in). Note that it's a one-way sync(from Saladict to Shanbay). Only the new added words are synced. Words also need to be supported by Shanbay's database.",login:"Will open shanbay.com. Please log in then come back and enable again.",sync_all:"Upload all existing new words",sync_all_confirm:"Too many new words in notebook. Saladict will upload in batches. Note that uploading too many words in short period would cause account banning which is unrecoverable. Confirm?",sync_last:"Upload the last new word"},eudic:{description:"Before using Eudic to synchronize words, you must first create a default new word book on Eudic official website (my.eudic.net/home/index) (generally, it will be automatically generated and cannot be deleted after the first manual import). Pay attention not to synchronize frequently in a short time, which may cause temporary lock.",token:"Authorization information",getToken:"Get authorization",verify:"Check authorization information",verified:"Eudic authorization information checked successfully",enable_help:"After opening, each new word added will be automatically synchronized to the Eudic default word book (salad to Eudic word book) in one direction, and only the new word itself will be synchronized (deleted out of synchronization)",token_help:"Please confirm to set valid personal authorization information, otherwise the synchronization will fail. You can click the button at the bottom to check.",sync_all:"Synchronize all new words",sync_help:"Synchronize all existing new words in salad word book to the Eudic default word book (turn on the synchronization switch above at the same time and click save)",sync_all_confirm:"Note that frequent synchronization in a short time may lead to lock temporarily. Are you sure to continue?"},webdav:{description:"Extension settings (including this) are synced via browser. New words notebook can be synced via WebDAV through settings here.",jianguo:"See Jianguoyun for example",checking:"Connecting...",exist_confirm:"Saladict directory exists on server. Download it and merge with local data?",upload_confirm:"Upload local data to Server right away?",verify:"Verify server",verified:"Successfully verified WebDAV server.",duration:"Duration",duration_help:"Data is guaranteed to be updated before upload. If you do not need real-time syncing across browsers, set a longer polling cycle to reduce CPU and memory footprint.",passwd:"Password",url:"Server Address",user:"User Account"},ankiconnect:{description:"Please make sure Anki Connect plugin is installed and Anki is running. You can also update word to Anki in Word Editor.",checking:"Checking...",deck_confirm:'Deck "{{deck}}" does not exist in Anki. Generate a new deck?',deck_error:'Unable to create deck "{{deck}}".',notetype_confirm:'Note type "{{noteType}}" does not exist in Anki. Generate a new note type.',notetype_error:'Unable to create note type "{{noteType}}".',upload_confirm:"Sync local new words to Anki right away? Duplicated words (with same timestamp) will be skipped.",add_yourself:"Please add it youself in Anki.",verify:"Verify Anki Connect",verified:"Successfully verified Anki Connect",enable_help:'When enabled, each time a new word is added to Notebook it will also be ported to Anki automatically. Words that exist in Anki(with same "Date") can be force-updated in Word Editor.',host:"Address",port:"port",key:"Key",key_help:"Optional key can be added in Anki Connect config for identification.",deckName:"Deck",deckName_help:'If deck does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below.',noteType:"Note Type",noteType_help:'Anki note type includes a set of fields and card type. If note type does not exist you can generate a default one automatically by clicking "Verify Anki Connect" below. DO NOT change field names when editing or adding card templates in Anki',tags:"Tags",tags_help:"Anki notes can include tags separated with commas.",escapeHTML:"Escape HTML",escapeHTML_help:"Escape HTML entities. Turn off if using HTML for manual layout.",syncServer:"Sync Server",syncServer_help:"Sync to server(e.g. AnkiWeb) after new words being added to local Anki."}},titlebarOffset:{title:"Calibrate Titlebar Height",help:"Different systems or browser settings may result in different titlebar height. Saladict will attempt to calibrate automatically. If you may adjust manually.",main:"Normal",main_help:"Normal windows may not have titlebar.",panel:"Panel",panel_help:"Saladict standalone quick search panel is a type of panel window.",calibrate:"Auto-calibrate",calibrateSuccess:"Calibration success",calibrateError:"Calibration failed"},headInfo:{acknowledgement:{title:"Acknowledgement",yipanhuasheng:"for adding Merriam Webster's Dict, American Heritage Dict, Oxford Learner's Dict and Eudic Notebook sync service; and updating Urban Dict and Naver Dict",naver:"for helping add Naver dict",shanbay:"for adding Shanbay dict",trans_tw:"for traditional Chinese translation",weblio:"for helping add Weblio dict"},contact_author:"Contact Author",donate:"Donate",instructions:"Instructions",report_issue:"Report Issue"},form:{url_error:"Incorrect URL.",number_error:"Incorrect number."},preload:{title:"Preload",auto:"Auto search",auto_help:"Search automatically when panel shows up.",clipboard:"Clipboard",help:"Preload content in search box when panel shows up.",selection:"Page Selection"},locations:{CENTER:"Center",TOP:"Top",RIGHT:"Right",BOTTOM:"Bottom",LEFT:"Left",TOP_LEFT:"Top Left",TOP_RIGHT:"Top Right",BOTTOM_LEFT:"Bottom Left",BOTTOM_RIGHT:"Bottom Right"},import_export_help:"Configs are auto-synced via browser. Here you can also import/export manually. Backups are exported as plain text files. Please encrypt it yourself if needed.",import:{title:"Import Configs",error:{title:"Import Error",parse:"Unable to parse backup. Incorrect format.",load:"Unable to load backup. Browser cannot obtain the local file.",empty:"No valid data found in the backup."}},export:{title:"Export Configs",error:{title:"Export Error",empty:"No config to export.",parse:"Unable to parse configs."}},dictAuth:{description:"As the number of Saladict users grows, if you make heavily use of machine translation services it is recommended to register an account for better stability and accuracy. The account data will only be stored in the browser.",dictHelp:"See the official website of {dict}.",manage:"Manage Translator Accounts"},third_party_privacy:"Third Party Privacy",third_party_privacy_help:'Saladict will not collect further information but search text and releated cookies will be sent to third party dictionary services(just like how you would search on their websites). If you do not want third party services to collect you data, remove the corresponding dictionaries at "Dictionaries" settings.',third_party_privacy_extra:"Cannot be turned off as it is the core functionality of Saladict.",permissions:{success:"Permission requested",cancel_success:"Permission cancelled",failed:"Permission request failed",cancelled:"Permission request cancelled by user",missing:'Missing permission "{{permission}}". Either grant it or disable related functions.',clipboardRead:"Read Clipboard",clipboardRead_help:"This permission is needed when clipboard preload is enable for popup panel or quick search panel.",clipboardWrite:"Write Clipboard",clipboardWrite_help:"This permission is needed when using titlebar menus to copy source/target text from machine translator."},unsupportedFeatures:{ff:'Feature "{{feature}}" is not supported in Firefox.'}}},431:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"सलाडिक्ट ब्राउजर एक्सन प्यानल",app_active_title:"ईनलाइन अनुवादक सक्षम गर्नुहोस्",app_temp_active_title:"पृष्ठमा अस्थायी रूपमा असक्षम गरियो",instant_capture_pinned:" (ताराङकित)",instant_capture_title:"तत्काल क्याप्चर सक्षम गर्नुहोस्",notebook_added:"थपियो",notebook_empty:"हालको पृष्ठमा कुनै चयन फेला परेन",notebook_error:"नोटबुकमा चयन गरिएको पाठ थप्न सकिएन",page_no_response:"पृष्ठको कुनै प्रतिक्रिया छैन",qrcode_title:"पृष्ठको क्युआर कोड"}},432:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:{history:"सलाडिक्ट खोज इतिहास",notebook:"सलाडिक्ट नोटबुक"},localonly:"स्थानीयमा मात्र",column:{add:"थप्नुहोस्",date:"मिति",edit:"सम्पादन",note:"टिप्पणी",source:"स्रोत",trans:"अनुवाद",word:"शब्द"},delete:{title:"मेटाउनुहोस्",all:"सबै मेटाउनुहोस्",confirm:". साच्चै ?",page:"पृष्ठ मेटाउनुहोस्",selected:"चयन गरिएको मेटाउनुहोस्"},export:{title:"निर्यात",all:"सबै निर्यात गर्नुहोस्",description:"हरेक रेकर्डको आकार बताउनुहोस्:",explain:"एन्की र अन्य उपकरणमा कसरी निर्यात गर्ने",gencontent:"निर्मित सामग्री",linebreak:{default:"पूर्वनिर्धारित लाइनब्रेक राख्नुहोस्",n:"लाइनब्रेकहरूलाई \\n संग स्थानान्तरण गर्नुहोस्",br:"लाइनब्रेकहरूलाई <br> संग स्थानान्तरण गर्नुहोस्",p:"लाइनब्रेकहरूलाई <p> संग स्थानान्तरण गर्नुहोस्",space:"लाइनब्रेकहरूलाई स्पेस संग स्थानान्तरण गर्नुहोस्"},page:"पृष्ठ निर्यात गर्नुहोस्",placeholder:"प्लेसहोल्डर",htmlescape:{title:"टिप्पणीहरूमा HTML वर्णहरू ऐस्केप गर्नुहोस्",text:"HTML ऐस्केप गर्नुहोस्"},selected:"चयन गरिएको निर्यात गर्नुहोस्"},filterWord:{chs:"चिनियाँ",eng:"अंग्रेजी",word:"शब्द",phrase:"वाक्यांश"},wordCount:{selected:"{{count}} बस्तु चयन गरिएको",selected_plural:"{{count}} बस्तुहरु चयन गरिएको",total:"{{count}} बस्तु जम्मा",total_plural:"{{count}} बस्तुहरु जम्मा"}}},433:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={app:{off:"沙拉查词已关闭(快捷查词依然可用)",tempOff:"沙拉查词已对当前标签关闭(快捷查词依然可用)",unsupported:"内嵌查词面板不支持此类页面(独立窗口查词面板依然可用)"}}},434:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={add:"添加",delete:"删除",save:"保存",cancel:"取消",edit:"编辑",sort:"排序",rename:"重命名",confirm:"确认",changes_confirm:"修改未保存。确认关闭?",delete_confirm:"确定完全删除该条目?",max:"最大",min:"最小",name:"名称",none:"无",enable:"开启",enabled:"已开启",disabled:"已关闭",blacklist:"黑名单",whitelist:"白名单",import:"导入",export:"导出",lang:{chinese:"中文",chs:"中文",deutsch:"德文",eng:"英文",english:"英文",french:"法文",japanese:"日文",korean:"韩文",minor:"其它语言",matchAll:"所有的字符都必须匹配",others:"其它字符",spanish:"西班牙文"},unit:{mins:"分钟",ms:"毫秒",s:"秒",word:"个"},note:{word:"单词",trans:"翻译",note:"笔记",context:"上下文",contextCloze:"上下文填空",date:"日期",srcTitle:"来源标题",srcLink:"来源链接",srcFavicon:"来源图标"},profile:{daily:"日常模式",sentence:"句库模式",default:"默认模式",scholar:"学术模式",translation:"翻译模式",nihongo:"日语模式"}}},435:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={chooseLang:"-选择其它语言-",standalone:"沙拉查词-独立查词窗口",fetchLangList:"获取全部语言列表",transContext:"重新翻译",neverShow:"不再弹出",fromSaladict:"来自沙拉查词面板",tip:{historyBack:"上一个查词记录",historyNext:"下一个查词记录",searchText:"查单词",openOptions:"打开设置",addToNotebook:"保存单词到生词本,右键打开生词本",openNotebook:"打开生词本",openHistory:"打开查词记录",shareImg:"以图片方式分享查词结果",pinPanel:"钉住查词面板",closePanel:"关闭查词面板",sidebar:"切换侧边栏模式,右键切换右侧",focusPanel:"查词时面板获取焦点",unfocusPanel:"查词时面板不获取焦点"},wordEditor:{title:"保存到生词本",wordCardsTitle:"生词本其它记录",deleteConfirm:"从单词本中移除?",closeConfirm:"记录尚未保存,确认关闭?",chooseCtxTitle:"选择翻译结果",ctxHelp:"如需兼容选择翻译结果以及 Anki 生成表格请保持 [:: xxx ::] 和 --------------- 格式。"},machineTrans:{switch:"更改语言",sl:"来源语言",tl:"目标语言",auto:"自动检测",stext:"原文",showSl:"显示原文",copySrc:"复制原文",copyTrans:"复制译文",login:"请登录{词典帐号}以使用。",dictAccount:"词典帐号"},manualVerification:{title:"需要手动验证",message:"请打开词典原网页完成人机验证,然后回到沙拉查词重新查询。",openPage:"打开词典网页"},updateAnki:{title:"更新到 Anki",success:"更新到 Anki 成功。",failed:"更新单词到 Anki 失败。"}}},436:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));var a=n(653);const o={...a,default:"随扩展语言",ne_NP:"尼泊尔语",ara:"阿拉伯语","bs-Latn":"波斯尼亚语",bul:"保加利亚语",cht:"中文(繁体)",dan:"丹麦语",est:"爱沙尼亚语",fin:"芬兰语",fra:"法语",iw:"希伯来语",jp:"日语",kor:"韩语",kr:"韩语",pt_BR:"巴西语",rom:"罗马尼亚语",slo:"斯洛文尼亚语",spa:"西班牙语",swe:"瑞典语",tl:"塔加路语(菲律宾语)",vie:"越南语",zh:"中文(简体)","zh-CHS":"中文(简体)","zh-CHT":"中文(繁体)"}},437:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={baidu_page_translate:"百度网页翻译",baidu_search:"百度搜索",bing_dict:"必应词典",bing_search:"必应搜索",caiyuntrs:"彩云小译网页翻译",cambridge:"剑桥词典",copy_pdf_url:"复制PDF链接到剪贴板",dictcn:"海词词典",etymonline:"培根词源",google_cn_page_translate:"谷歌cn网页翻译",google_page_translate:"谷歌网页翻译",google_search:"谷歌搜索",google_translate:"谷歌翻译",google_cn_translate:"谷歌CN翻译",guoyu:"国语辞典",history_title:"查词历史记录",iciba:"金山词霸",liangan:"两岸词典",longman_business:"朗文商务",manual_title:"详细使用说明",merriam_webster:"韦氏词典",microsoft_page_translate:"微软网页翻译",notebook_title:"生词本",notification_youdao_err:"有道网页翻译2.0 加载无响应,\n可能扩展无权访问该页面,\n如加载成功请忽略本消息。",oxford:"牛津词典",page_permission_err:"沙拉查词「{{name}}」无权访问此页面。",page_translations:"网页翻译",saladict:"沙拉查词",saladict_standalone:"沙拉查词独立窗口",sogou:"搜狗翻译",sogou_page_translate:"搜狗网页翻译",termonline:"术语在线",view_as_pdf:"在 PDF 阅读器中打开",youdao:"有道词典",youdao_page_translate:"有道网页翻译",youglish:"YouGlish"}},438:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"沙拉查词设置",previewPanel:"预览查词面板",shortcuts:"设置快捷键",msg_update_error:"设置更新失败",msg_updated:"设置已更新",msg_first_time_notice:"初次使用注意",msg_err_permission:"权限“{{permission}}”申请失败。",unsave_confirm:"修改尚未保存,确定放弃?",nativeSearch:"浏览器外划词",firefox_shortcuts:"地址栏输入 about:addons 打开,点击右上方的齿轮,选择最后一项管理扩展快捷键。",tutorial:"教程",page_selection:"网页划词",nav:{General:"基本选项",Notebook:"单词管理",Profiles:"情景模式",DictPanel:"查词面板",SearchModes:"查词习惯",Dictionaries:"词典设置",DictAuths:"词典帐号",Popup:"右上弹框",QuickSearch:"快捷查词",Pronunciation:"发音设置",PDF:"PDF 设置",ContextMenus:"右键菜单",BlackWhiteList:"黑白名单",ImportExport:"导入导出",Privacy:"隐私设置",Permissions:"权限管理"},config:{active:"启用划词翻译",active_help:"关闭后「快捷查词」功能依然可用。",animation:"开启动画过渡",animation_help:"在低性能设备上关闭过渡动画可减少渲染负担。",runInBg:"后台保持运行",runInBg_help:"让浏览器关闭后依然保持后台运行,从而继续响应快捷键以及浏览器外划词。",darkMode:"黑暗模式",langCode:"界面语言",editOnFav:"红心单词时弹出编辑面板",editOnFav_help:"关闭后,点击红心生词将自动添加到生词本,上下文翻译亦会自动获取。",searchHistory:"记录查词历史",searchHistory_help:"查词记录可能会泄漏您的浏览痕迹。",searchHistoryInco:"在私隐模式中记录",ctxTrans:"上下文翻译引擎",ctxTrans_help:"单词被添加进生词本前会自动翻译上下文。",searchSuggests:"输入时显示候选",panelMaxHeightRatio:"查词面板最高占屏幕比例",panelWidth:"查词面板宽度",fontSize:"词典内容字体大小",bowlOffsetX:"沙拉图标水平偏移",bowlOffsetY:"沙拉图标垂直偏移",panelCSS:"自定义查词面板样式",panelCSS_help:"为查词面板添加自定义 CSS 。词典面板使用 .dictPanel-Root 作为根,词典使用 .dictRoot 或者 .d-词典ID 作为根。",noTypeField:"不在输入框划词",noTypeField_help:"开启后,本扩展会自动识别输入框以及常见编辑器,如 CodeMirror、ACE 和 Monaco。",touchMode:"触摸模式",touchMode_help:"支持触摸相关选词。",language:"划词语言",language_help:"当选中的文字包含相应的语言时才进行查找。",language_extra:"注意日语与韩语也包含了汉字。法语、德语和西语也包含了英文。若取消了中文或英语而勾选了其它语言,则只匹配那些语言独有的部分,如日语只匹配假名。",doubleClickDelay:"双击间隔",mode:"普通划词",defaultPinned:"出现时钉住查词面板",panelMode:"查词面板内部划词",pinMode:"查词面板钉住后划词",qsPanelMode:"独立窗口响应页面划词",bowlHover:"图标悬停查词",bowlHover_help:"鼠标悬停在沙拉图标上触发查词,否则需要点击。",autopron:{cn:{dict:"中文自动发音"},en:{dict:"英文自动发音",accent:"优先口音"},machine:{dict:"机器自动发音",src:"机器发音部分",src_help:"机器翻译词典需要在下方添加并启用才会自动发音。",src_search:"朗读原文",src_trans:"朗读翻译"}},pdfSniff:"嗅探 PDF 链接",pdfSniff_help:"开启后所有 PDF 链接将自动跳转到本扩展打开(包括本地,如果在扩展管理页面勾选了允许)。",pdfSniff_extra:"现在更推荐使用自己喜欢的本地阅读器搭配{浏览器外划词}。",pdfStandalone:"独立窗口",pdfStandalone_help:"在独立窗口中打开 PDF 阅读器。独立窗口只有标题栏,占用更少空间,但不能复制链接等操作。",baWidth:"弹窗宽度",baWidth_help:"右上弹框面板宽度。若为负数则取查词面板的宽度。",baHeight:"弹窗高度",baHeight_help:"右上弹框面板高度。",baOpen:"点击地址栏旁图标",baOpen_help:"点击地址栏旁 Saladict 图标时发生的操作。沿用了「右键菜单」的项目,可以前往该设置页面进行增加或编辑。",tripleCtrl:"启用 Ctrl 快捷键",tripleCtrl_help:"连续按三次{⌘ Command}(Mac)或者{Ctrl}(其它键盘)(或设置浏览器快捷键)将弹出词典界面。",qsLocation:"出现位置",qsFocus:"出现时获取焦点",qsStandalone:"独立窗口",qsStandalone_help:"显示为单独的窗口,支持响应{浏览器以外划词}。",qssaSidebar:"类侧边栏",qssaSidebar_help:"并排显示窗口以达到类似侧边栏的布局。",qssaHeight:"窗口高度",qssaPageSel:"响应划词",qssaPageSel_help:"响应网页划词。",qssaRectMemo:"记住位置与大小",qssaRectMemo_help:"独立窗口关闭时记住位置与大小。",updateCheck:"检查更新",updateCheck_help:"自动检查更新",analytics:"启用 Google Analytics",analytics_help:"提供匿名设备浏览器版本信息。因精力有限,沙拉查词作者会尽可能支持用户量更多的设备和浏览器。",opt:{reset:"重置设定",reset_confirm:"所有设定将还原到默认值,确定?",upload_error:"设置保存失败",accent:{uk:"英式",us:"美式"},sel_blackwhitelist:"划词黑白名单",sel_blackwhitelist_help:"黑名单匹配的页面 Saladict 将不会响应鼠标划词。",pdf_blackwhitelist_help:"黑名单匹配的 PDF 链接将不会跳转到 Saladict 打开。",contextMenus_description:"设置右键菜单,可添加可自定义链接。网页翻译其实不需要沙拉查词,故已有的有道和谷歌网页翻译目前处于维护状态,没有计划添加新功能,请用其它官方扩展如彩云小译和谷歌翻译。",contextMenus_edit:"编辑右键菜单项目",contextMenus_url_rules:"链接中的 %s 会被替换为选词。",baOpen:{popup_panel:"显示查词面板",popup_fav:"添加选词到生词本",popup_options:"打开 Saladict 设置",popup_standalone:"打开快捷查词独立窗口"},openQsStandalone:"打开独立窗口设置",pdfStandalone:{default:"从不",always:"总是",manual:"手动"}}},matchPattern:{description:"网址支持{超链匹配}和{正则匹配}。留空保存即可清除。",url:"超链匹配",url_error:"不正确的超链接模式表达式。",regex:"正则匹配",regex_error:"不正确的正则表达式。"},searchMode:{icon:"显示图标",icon_help:"在鼠标附近显示一个图标,鼠标移上去后才显示词典面板。",direct:"直接搜索",direct_help:"直接显示词典面板。",double:"双击搜索",double_help:"双击选择文本之后直接显示词典面板。",holding:"按住按键",holding_help:'在放开鼠标之前按住选择的按键才显示词典面板(Alt 为 macOS 上的 "⌥ Option"键。 Meta 键为 macOS 上的「⌘ Command」键以及其它键盘的「⊞ Windows」键)。',instant:"鼠标悬浮取词",instant_help:"自动选取鼠标附近的单词。",instantDirect:"直接取词",instantKey:"按键",instantKey_help:"因技术限制,悬浮取词通过自动选择鼠标附近单词实现,不设置按键直接取词可导致无法选词,建议配合快捷键开启关闭。",instantDelay:"取词延时"},profiles:{opt:{add_name:"新增情景模式名称",delete_confirm:"「{{name}}」将被删除,确认?",edit_name:"更改情景模式名称",help:"每个情景模式相当于一套独立的设置,一些选项(带 {*})会随着情景模式变化。鼠标悬浮在查词面板的菜单图标上可快速切换,或者焦点选中菜单图标然后按{↓}。"}},profile:{mtaAutoUnfold:"自动展开多行搜索框",waveform:"波形控制按钮",waveform_help:"在词典面板下方显示音频控制面板展开按钮。控制面板只會在展開時才載入。",stickyFold:"记忆折叠",stickyFold_help:"查词时记住之前手动展开与折叠词典的状态,仅在同个页面生效。",opt:{item_extra:"此选项会因「情景模式」而改变。",mtaAutoUnfold:{always:"保持展开",never:"从不展开",once:"展开一次",popup:"只在右上弹框展开",hide:"隐藏"},dict_selected:"已选词典"}},dict:{add:"添加词典",more_options:"更多设置",selectionLang:"划词语言",selectionLang_help:"当选中的文字包含相应的语言时才显示该词典。",defaultUnfold:"默认展开",defaultUnfold_help:"关闭后该词典将不会自动搜索,除非点击「展开」箭头。适合一些需要时再深入了解的词典,以加快初次查词速度。",selectionWC:"划词字数",selectionWC_help:"当选中文字的字数符合条件时才显示该词典。可设置 999999 如果不希望限制字数。",preferredHeight:"词典默认高度",preferredHeight_help:"词典初次出现的最大高度。超出此高度的内容将被隐藏并显示下箭头。可设置 999999 如果不希望限制高度。",lang:{de:"德",en:"英",es:"西",fr:"法",ja:"日",kor:"韩",zhs:"简",zht:"繁"}},syncService:{description:"数据同步设置。",start:"同步进行中,结束前请勿关闭此页面。",finished:"同步结束",success:"同步成功",failed:"同步失败",close_confirm:"设置未保存,关闭?",delete_confirm:"清空同步设置?",shanbay:{description:"先去 shanbay.com 登录扇贝(退出后将失效)。开启后每次添加生词将自动单向同步到扇贝生词本(只从沙拉查词到扇贝),只同步新增单词(删除不同步),只同步单词本身(上下文等均不能同步)。生词需要扇贝单词库支持才能被添加。",login:"将打开扇贝官网,请登录再回来重新开启。",sync_all:"上传现有的所有生词",sync_all_confirm:"生词本存在较多单词,将分批上传。注意短时间上传太多有可能会导致封号,且不可恢复,确定继续?",sync_last:"上传最近的一个生词"},eudic:{description:"使用欧路词典同步单词前,必须先在欧路官网(my.eudic.net/home/index)创建默认生词本(一般初次手动导入会自动生成且无法删除)。注意短时间内不要频繁同步,可能会造成暂时封停。",token:"授权信息",getToken:"获取授权",verify:"检查 授权信息",verified:"成功检查 欧路授权信息",enable_help:"开启后每次添加生词将自动单向同步到欧路默认生词本(salad到欧路生词本),只同步新增单词本身(删除不同步)",token_help:"请确认设置有效的个人授权信息,否则将同步失败。可点击底部按钮检查。",sync_all:"同步全部生词",sync_help:"将salad单词本中现有的所有生词,同步到欧路词典默认生词本中(需同时开启上方同步开关,点击保存)",sync_all_confirm:"注意短时间内频繁同步有可能会导致接下来一小段时间的封停,确定继续?"},webdav:{description:"应用设置(包括本设置)已通过浏览器自动同步。生词本可通过本设置实现 WebDAV 同步。",jianguo:"参考坚果云设置",checking:"连接中...",exist_confirm:"服务器上已存在 Saladict 目录。是否下载合并到本地?",upload_confirm:"马上上传本地数据到服务器?",verify:"验证服务器",verified:"成功验证服务器",duration:"同步周期",duration_help:"添加生词后会马上上传,数据会在上传前保证同步,所以如果不需要多个浏览器实时查看更新,可将更新检测周期调大些以减少资源占用及避免服务器拒绝响应。",passwd:"密码",url:"服务器地址",user:"账户"},ankiconnect:{description:"请确保 Anki Connect 插件已安装且 Anki 在后台运行。",checking:"连接中...",deck_confirm:"牌组「{{deck}}」不存在 Anki 中,是否自动添加?",deck_error:"无法创建牌组「{{deck}}」。",notetype_confirm:"笔记类型「{{noteType}}」不存在 Anki 中,是否自动添加?",notetype_error:"无法创建笔记类型「{{noteType}}」。",upload_confirm:"马上同步本地生词到 Anki?重复的单词(相同“Date”)会被跳过。",add_yourself:"请在 Anki 中自行添加。",verify:"检查 Anki Connect",verified:"成功检查 Anki Connect",enable_help:"开启后每次保存新生词都会自动同步到 Anki。Anki 上已存在的单词(以“Date”为准)可以在单词编辑器中编辑强制更新覆盖到 Anki。",host:"地址",port:"端口",key:"Key",key_help:"可在 Anki Connect 插件中设置 key 以做简单令牌。",deckName:"牌组",deckName_help:"如果不存在的话可以点下方「检查 Anki Connect」让本设置生成默认牌组。",noteType:"笔记类型",noteType_help:"Anki 笔记类型包括一套字段和卡片类型。如果不存在的话可以点下方「检查 Anki Connect」让本设置生成一套默认的笔记类型。如需自行在 Anki 添加或修改卡片模板请不要更改字段名字。",tags:"标签",tags_help:"Anki 笔记可以附带标签。以逗号分割。",escapeHTML:"转义 HTML",escapeHTML_help:"对笔记内容中的 HTML 字符进行转义。如手动进行 HTML 排版请关闭选项。",syncServer:"同步服务器",syncServer_help:"单词添加到本地 Anki 后自动同步到服务器(如 AnkiWeb)。"}},titlebarOffset:{title:"校准标题栏高度",help:"不同的系统以及不同的浏览器设置会影响标题栏高度,沙拉查词会尝试自动校准,如弹出窗口依然出现偏移可自行调整。",main:"普通窗口",main_help:"普通窗口可能没有标题栏。",panel:"简化窗口",panel_help:"沙拉查词的独立窗口快捷查词面板为简化窗口。",calibrate:"自动校准",calibrateSuccess:"自动校准成功",calibrateError:"自动校准失败"},headInfo:{acknowledgement:{title:"特别鸣谢",yipanhuasheng:"添加韦氏词典、美国传统词典、牛津学习词典与欧路生词同步;更新 Urban 词典与 Naver 词典",naver:"协助添加 Naver 韩国语词典",shanbay:"编写扇贝词典模块",trans_tw:"提供部分繁体中文翻译",weblio:"协助添加 Weblio 辞書"},contact_author:"联系作者",donate:"支持项目",instructions:"使用说明",report_issue:"反馈问题"},form:{url_error:"不正确的超链接格式。",number_error:"不正确的数字"},preload:{title:"预先加载",auto:"自动查词",auto_help:"查词面板出现时自动搜索预加载内容。",clipboard:"剪贴板",help:"查词面板出现时预先加载内容到搜索框。",selection:"页面划词"},locations:{CENTER:"居中",TOP:"上方",RIGHT:"右方",BOTTOM:"下方",LEFT:"左方",TOP_LEFT:"左上",TOP_RIGHT:"右上",BOTTOM_LEFT:"左下",BOTTOM_RIGHT:"右下"},import_export_help:"设定已通过浏览器自动同步,也可以手动导入导出。备份为明文保存,对安全性有要求的请自行加密。",import:{title:"导入设定",error:{title:"导入失败",parse:"备份解析失败,格式不正确。",load:"备份加载失败,浏览器无法获得本地备份。",empty:"备份中没有发现有效数据。"}},export:{title:"导出设定",error:{title:"导出失败",empty:"没有设置可以导出。",parse:"设置解析失败,无法导出。"}},dictAuth:{description:"随着沙拉查词用户增多,如经常使用机器翻译,建议到官网申请帐号以获得更稳定的体验以及更准确的结果。以下帐号数据只会保留在浏览器中。",dictHelp:"见{词典}官网。",manage:"管理私用帐号"},third_party_privacy:"第三方隐私",third_party_privacy_help:"沙拉查词不会收集更多数据,但在查词时单词以及相关 cookies 数据会发送给第三方词典服务(与在该网站上查词一样),如果你不希望被该服务获取数据,请在「词典设置」中关闭相应词典。",third_party_privacy_extra:"本特性为沙拉查词核心功能,无法关闭。",permissions:{success:"申请权限成功",cancel_success:"取消权限成功",failed:"申请权限失败",cancelled:"申请权限被用户取消",missing:"缺少权限「{{permission}}」。请给予权限或者关闭相关功能。",clipboardRead:"读取剪贴板",clipboardRead_help:"快捷查词或者右上弹框设置预加载剪贴板时需要读取剪贴板权限。",clipboardWrite:"写入剪贴板",clipboardWrite_help:"机器翻译词典标题栏菜单复制原文译文或生词本导出到剪贴板需要写入剪贴板权限。"},unsupportedFeatures:{ff:"火狐尚不支持「{{feature}}」功能。"}}},439:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"沙拉查词-右上弹框",app_active_title:"启用划词",app_temp_active_title:"对当前页暂时关闭划词",instant_capture_pinned:"(钉住)",instant_capture_title:"开启鼠标悬浮取词",notebook_added:"已添加",notebook_empty:"当前页面没有发现选词",notebook_error:"无法添加选词到生词本",page_no_response:"页面无响应",qrcode_title:"当前页面二维码"}},440:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:{history:"沙拉查词-查词记录",notebook:"沙拉查词-生词本"},localonly:"仅本地保存",column:{add:"添加",date:"日期",edit:"编辑",note:"笔记",source:"来源",trans:"翻译",word:"单词"},delete:{title:"删除单词",all:"删除所有单词",confirm:",确定?",page:"删除本页单词",selected:"删除选中单词"},export:{title:"导出文本",all:"导出所有单词",description:"编写生成模板,描述每条记录生成的样子:",explain:"如何配合 ANKI 等工具",gencontent:"代表的内容",linebreak:{default:"保留换行",n:"换行替换为 \\n",br:"换行替换为 <br>",p:"换行替换为 <p>",space:"换行替换为空格"},page:"导出本页单词",placeholder:"替换符",htmlescape:{title:"对笔记内容中的 HTML 字符进行转义",text:"转义 HTML"},selected:"导出选中单词"},filterWord:{chs:"中文",eng:"英文",word:"单词",phrase:"词组和句子"},wordCount:{selected:"已选 {{count}} 项",selected_plural:"已选 {{count}} 项",total:"共 {{count}} 项",total_plural:"共 {{count}} 项"}}},441:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={app:{off:"沙拉查詞已關閉(快捷查詞依然可用)",tempOff:"沙拉查詞已對當前標籤關閉(快捷查詞依然可用)",unsupported:"內嵌查字介面不支援此類頁面(獨立視窗查字介面依然可用)"}}},442:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={add:"新增",delete:"删除",save:"保存",cancel:"取消",edit:"編輯",sort:"排序",rename:"重新命名",confirm:"確認",changes_confirm:"變更未儲存。確定關閉?",delete_confirm:"確定完全刪除該條目?",max:"最大",min:"最小",name:"名稱",none:"無",enable:"開啟",enabled:"已開啟",disabled:"已關閉",blacklist:"黑名單",whitelist:"白名單",import:"匯入",export:"匯出",lang:{chinese:"漢字",chs:"漢字",deutsch:"德文",eng:"英文",english:"英文",french:"法文",japanese:"日文",korean:"韓文",minor:"其它語言",matchAll:"所有的字元都必須匹配",others:"其它字元",spanish:"西班牙文"},unit:{mins:"分鐘",ms:"毫秒",s:"秒",word:"个"},note:{word:"單字",trans:"翻譯",note:"筆記",context:"上下文",contextCloze:"上下文填空",date:"日期",srcTitle:"來源標題",srcLink:"來源連結",srcFavicon:"來源圖示"},profile:{daily:"日常模式",sentence:"句庫模式",default:"預設模式",scholar:"學術模式",translation:"翻譯模式",nihongo:"日語模式"}}},443:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={chooseLang:"-選擇其它語言-",standalone:"沙拉查詞-獨立查詞視窗",fetchLangList:"取得全部語言清單",transContext:"重新翻譯",neverShow:"不再彈出",fromSaladict:"来自沙拉查詞介面",tip:{historyBack:"上一個查單字記錄",historyNext:"下一個查單字記錄",searchText:"查單字",openOptions:"開啟設定",addToNotebook:"儲存單字到單字本,右点击開啟單字本",openNotebook:"開啟單字本",openHistory:"開啟查單字記錄",shareImg:"以圖片方式分享查單字結果",pinPanel:"釘選字典視窗",closePanel:"關閉字典視窗",sidebar:"切換側邊欄模式,右點選切換右側",focusPanel:"查詞時面板獲取焦點",unfocusPanel:"查詞時面板不獲取焦點"},wordEditor:{title:"儲存到單字本",wordCardsTitle:"單字本其它記錄",deleteConfirm:"從單字本中移除?",closeConfirm:"記錄尚未儲存,確定關閉?",chooseCtxTitle:"選擇翻譯結果",ctxHelp:"如需相容選擇翻譯結果以及 Anki 生成表格請保持 [:: xxx ::] 和 --------------- 格式。"},machineTrans:{switch:"變更語言",sl:"來源語言",tl:"目標語言",auto:"偵測語言",stext:"原文",showSl:"顯示原文",copySrc:"複製原文",copyTrans:"複製譯文",login:"請登入{詞典帳號}以使用。",dictAccount:"詞典帳號"},manualVerification:{title:"需要手動驗證",message:"請開啟詞典原網頁完成人機驗證,然後回到沙拉查詞重新查詢。",openPage:"開啟詞典網頁"},updateAnki:{title:"更新到 Anki",success:"更新到 Anki 成功。",failed:"更新單詞到 Anki 失敗。"}}},444:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return o}));var a=n(654);const o={...a,default:"同介面語言",ne_NP:"尼泊爾語",ara:"阿拉伯語","bs-Latn":"波斯尼亞語",bul:"保加利亞語",cht:"中文(繁體)",dan:"丹麥語",est:"愛沙尼亞語",fin:"芬蘭語",fra:"法語",iw:"希伯來語",jp:"日語",kor:"韓語",kr:"韓語",pt_BR:"巴西語",rom:"羅馬尼亞語",slo:"斯洛維尼亞語",spa:"西班牙語",swe:"瑞典語",tl:"他加祿語(菲律賓語)",vie:"越南語",zh:"中文(簡體)","zh-CHS":"中文(簡體)","zh-CHT":"中文(繁體)"}},445:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={baidu_page_translate:"百度網頁翻譯",baidu_search:"百度搜尋",bing_dict:"Bing 字典",bing_search:"Bing 搜尋",caiyuntrs:"彩雲小譯網頁翻譯",cambridge:"劍橋字典",copy_pdf_url:"複製PDF連結到剪貼簿",dictcn:"海詞字典",etymonline:"培根字根",google_cn_page_translate:"Google cn 網頁翻譯",google_page_translate:"Google 網頁翻譯",google_search:"Google 搜尋",google_translate:"Google 翻譯",google_cn_translate:"Google.cn 翻譯",guoyu:"國語字典",history_title:"查單字歷史記錄",iciba:"金山詞霸",liangan:"兩岸字典",longman_business:"朗文商務",manual_title:"詳細使用說明",merriam_webster:"韋氏字典",microsoft_page_translate:"微軟網頁翻譯",notebook_title:"生字本",notification_youdao_err:"有道網頁翻譯2.0 下載後無回應,\n可能是套件無權造訪該網站,\n如果下載成功後,請忽略本訊息。",oxford:"牛津字典",page_permission_err:"沙拉查詞「{{name}}」無權訪問此頁面。",page_translations:"網頁翻譯",saladict:"沙拉查詞",saladict_standalone:"沙拉查詞獨立視窗",sogou:"搜狗翻譯",sogou_page_translate:"搜狗網頁翻譯",termonline:"術語在線",view_as_pdf:"在 PDF 閱讀器中開啟",youdao:"有道字典",youdao_page_translate:"有道網頁翻譯",youglish:"YouGlish"}},446:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"沙拉查詞設定",previewPanel:"預覽字典介面",shortcuts:"設定快速鍵",msg_update_error:"設定更新失敗",msg_updated:"設定已更新",msg_first_time_notice:"初次使用注意",msg_err_permission:"許可權“{{permission}}”申請失敗。",unsave_confirm:"修改尚未儲存,確定放棄?",nativeSearch:"瀏覽器外選字翻譯",firefox_shortcuts:"位址列跳轉到 about:addons,點選右上方的齒輪,選擇最後一項管理擴充套件快捷鍵",tutorial:"教程",page_selection:"網頁選字",nav:{General:"基本選項",Notebook:"單字管理",Profiles:"情景模式",DictPanel:"字典介面",SearchModes:"查字習慣",Dictionaries:"字典設定",DictAuths:"詞典帳號",Popup:"右上彈出式視窗",QuickSearch:"迅速查字",Pronunciation:"朗讀設定",PDF:"PDF 設定",ContextMenus:"右鍵選單",BlackWhiteList:"黑白名單",ImportExport:"匯入匯出",Privacy:"隱私設定",Permissions:"許可權管理"},config:{active:"啟用滑鼠選字翻譯",active_help:"關閉後「迅速查字」功能依然可用。",animation:"啟用轉換動畫",animation_help:"在低效能裝置上關閉過渡動畫可減少渲染負擔。",runInBg:"保持瀏覽器執行",runInBg_help:"讓瀏覽器關閉後依然保持執行,從而繼續響應快捷鍵以及瀏覽器外劃字(見右上角官網使用說明)。",darkMode:"黑暗模式",langCode:"介面語言",editOnFav:"紅心單字時彈出編輯介面",editOnFav_help:"關閉後,點選紅心生詞將自動新增到生詞本,上下文翻譯亦會自動獲取。",searchHistory:"記錄查字歷史",searchHistory_help:"查字典記錄可能會泄漏您的瀏覽痕跡。",searchHistoryInco:"在無痕模式中記錄",ctxTrans:"上下文翻譯引擎",ctxTrans_help:"單字加入生字本前會自動翻譯上下文。",searchSuggests:"輸入時顯示候選",panelMaxHeightRatio:"字典介面最高占螢幕高度比例",panelWidth:"查字典介面寬度",fontSize:"字典內容字型大小",bowlOffsetX:"沙拉圖示水平偏移",bowlOffsetY:"沙拉圖示垂直偏移",panelCSS:"自訂查字介面樣式",panelCSS_help:"為查詞面板新增自定義 CSS 。詞典面板使用 .dictPanel-Root 作為根,詞典使用 .dictRoot 或者 .d-詞典ID 作為根。",noTypeField:"不在輸入框滑鼠滑字",noTypeField_help:"開啟後,本程式會自動識別輸入框以及常見編輯器,如 CodeMirror、ACE 和 Monaco。",touchMode:"觸控模式",touchMode_help:"支援觸控相關選字",language:"選詞語言",language_help:"當選取的文字包含相對應的語言時,才進行尋找。",language_extra:"注意日語與韓語也包含了漢字。法語、德語和西語也包含了英文。若取消了中文或英語而勾選了其它語言,則只翻譯那些語言獨有的部分,如日語只翻譯假名。",doubleClickDelay:"滑鼠按兩下間隔",mode:"普通選字",panelMode:"字典視窗介面內部選字",defaultPinned:"出現時釘住面板",pinMode:"字典視窗介面釘住后選字",qsPanelMode:"獨立字典視窗介面響應頁面選字",bowlHover:"圖示暫留查字",bowlHover_help:"滑鼠暫留在沙拉圖示上開啟字典介面,否則需要點選。",autopron:{cn:{dict:"中文自動發音"},en:{dict:"英文自動發音",accent:"優先口音"},machine:{dict:"機器自動發音",src:"機器發音部分",src_help:"機器翻譯字典需要在下方新增並啟用才會自動發音。",src_search:"朗讀原文",src_trans:"朗讀翻譯"}},pdfSniff:"嗅探 PDF 連結",pdfSniff_help:"開啟後所有 PDF 連結將自動跳至本套件開啟(包括本機,如果在套件管理頁面勾選了允許)。",pdfSniff_extra:"現在更推薦使用自己喜歡的本地閱讀器搭配{瀏覽器外選字翻譯}。",pdfStandalone:"獨立視窗",pdfStandalone_help:"在獨立視窗中開啟 PDF 閱讀器。獨立視窗只有標題欄,佔用更少空間,但不能複製連結等操作。",baWidth:"彈窗寬度",baWidth_help:"右上彈框面板寬度。若為負數則取查字介面的寬度。",baHeight:"彈窗高度",baHeight_help:"右上彈框面板高度。",baOpen:"點選網址列旁圖示",baOpen_help:"點選網址列旁 Saladict 圖示時發生的操作。沿用了「右鍵選單」的條目,可以前往該設定頁面增加或編輯。",tripleCtrl:"啟用 Ctrl 快速鍵",tripleCtrl_help:"連續按三次{⌘ Command}(macOS)或者{Ctrl}(其它鍵盤)(或設定瀏覽器快速鍵),將會彈出字典視窗介面。",qsLocation:"出現位置",qsFocus:"出現時獲取焦點",qsStandalone:"獨立視窗",qsStandalone_help:"顯示為獨立的視窗,支援{瀏覽器外選字翻譯}。",qssaSidebar:"類側邊欄",qssaSidebar_help:"並排顯示視窗以達到類似側邊欄的配置。",qssaHeight:"視窗高度",qssaPageSel:"響應滑字",qssaPageSel_help:"對網頁滑鼠滑字作出反應。",qssaRectMemo:"記住位置和大小",qssaRectMemo_help:"獨立視窗關閉時記住位置和大小。",updateCheck:"檢查更新",updateCheck_help:"自動檢查更新",analytics:"啟用 Google Analytics",analytics_help:"提供匿名裝置瀏覽器版本資訊。因精力有限,沙拉查詞作者會盡可能支援使用者量更多的裝置和瀏覽器。",opt:{reset:"重設設定",reset_confirm:"所有設定將還原至預設值,確定?",upload_error:"設定儲存失敗",accent:{uk:"英式",us:"美式"},sel_blackwhitelist:"選詞黑白名單",sel_blackwhitelist_help:"黑名單相符的頁面 Saladict 將不會響應滑鼠劃詞。",pdf_blackwhitelist_help:"黑名單相符的 PDF 連結將不會跳至 Saladict 開啟。",contextMenus_description:"設定右鍵選單,可新增可自定義連結。網頁翻譯其實不需要沙拉查詞,故已有的有道和谷歌網頁翻譯目前處於維護狀態,沒有計劃新增新功能,請用其它官方擴充套件如彩雲小譯和谷歌翻譯。",contextMenus_edit:"編輯右鍵選單項目",contextMenus_url_rules:"連結中的 %s 會被取代為選詞。",baOpen:{popup_panel:"開啟字典介面",popup_fav:"新增選詞到生字本",popup_options:"進入 Saladict 設定",popup_standalone:"開啟快捷查詞獨立視窗"},openQsStandalone:"獨立視窗設定",pdfStandalone:{default:"從不",always:"總是",manual:"手動"}}},matchPattern:{description:"網址支援{超鏈匹配}和{正則匹配}。留空儲存即可清除。",url:"連結匹配",url_error:"不正確的超連結模式匹配表示式。",regex:"正則匹配",regex_error:"不正確的正則表示式。"},searchMode:{icon:"顯示圖示",icon_help:"在滑鼠附近顯示一個圖示,滑鼠移動到圖示後,會顯示出字典的視窗介面。",direct:"直接搜尋",direct_help:"直接顯示字典視窗介面。",double:"滑鼠按兩下",double_help:"滑鼠按兩下所選擇的句子或單字後,會直接顯示字典視窗介面。",holding:"按住按键",holding_help:'在放開滑鼠之前,需按住選擇的按鍵才顯示字典視窗介面(Alt 為 macOS 上的 "⌥ Option"鍵。Meta 鍵為 macOS 上的「⌘ Command」鍵以及其它鍵盤的「⊞ Windows」鍵)。',instant:"滑鼠懸浮取詞",instant_help:"自動選取滑鼠附近的單字。",instantDirect:"直接取詞",instantKey:"按鍵",instantKey_help:"因技術限制,懸浮取詞通過自動選擇滑鼠附近單字實現,不設定按鍵直接取詞可能導致滑鼠無法選字,建議配合快速鍵開啟關閉。",instantDelay:"取詞等待"},profiles:{opt:{add_name:"新增情景模式名稱",delete_confirm:"「{{name}}」將被刪除,確認?",edit_name:"變更情景模式名稱",help:"每個情景模式相當於一套獨立的設定,一些選項(帶有 {*})會隨著情景模式變化。滑鼠懸浮在字典介面的選單圖示上可快速切換,或者焦點選中選單圖示然後按{↓}。"}},profile:{mtaAutoUnfold:"自動展開多行搜尋框",waveform:"波形控制",waveform_help:"在字典介面下方顯示音訊控制面板展開按鈕。關閉依然可以播放音訊。",stickyFold:"記憶摺疊",stickyFold_help:"查字時記住之前手動展開和收起字典的狀態,只在同個頁面生效。",opt:{item_extra:"此選項會因「情景模式」而改變。",mtaAutoUnfold:{always:"保持展開",never:"永遠不展開",once:"展開一次",popup:"只在右上彈框展開",hide:"隱藏"},dict_selected:"已選字典"}},dict:{add:"新增字典",more_options:"更多設定",selectionLang:"選詞語言",selectionLang_help:"當選中的文字包含相對應的語言時才顯示這個字典。",defaultUnfold:"自動展開",defaultUnfold_help:"關閉後此字典將不會自動搜尋,除非點選「展開」箭頭。適合一些需要時再深入瞭解的字典,以加快初次查字典速度。",selectionWC:"選詞字數",selectionWC_help:"當選中文字的字數符合條件時才顯示該詞典。可設定 999999 如果不希望限制字數。",preferredHeight:"字典預設高度",preferredHeight_help:"字典初次出現的最大高度。超出此高度的內容將被隱藏並顯示下箭頭。可設定 999999 如果不希望限制高度。",lang:{de:"德",en:"英",es:"西",fr:"法",ja:"日",kor:"韓",zhs:"简",zht:"繁"}},syncService:{description:"資料同步設定。",start:"同步進行中,結束前請勿關閉此頁面。",finished:"同步結束",success:"同步成功",failed:"同步失敗",close_confirm:"設定未儲存,關閉?",delete_confirm:"清空同步設定?",shanbay:{description:"先去 shanbay.com 登入扇貝(退出後將失效)。開啟後將單向同步到扇貝生詞本(只從沙拉查詞到扇貝),只同步新增單詞(刪除不同步),只同步單詞本身(上下文等均不能同步)。生詞需要扇貝單詞庫支援才能被新增。",login:"將開啟扇貝官網,請登入再回來重新開啟。",sync_all:"上傳現有的所有生字",sync_all_confirm:"生詞本存在較多單詞,將分批上傳。注意短時間上傳太多有可能會導致封號,且不可恢復,確定繼續?",sync_last:"上傳最近的一個生字"},eudic:{description:"使用歐路詞典同步單詞前,必須先在歐路官網(my.eudic.net/home/index)創建默認生詞本(一般初次手動導入會自動生成且無法删除)。注意短時間內不要頻繁同步,可能會造成暫時封停。",token:"授權資訊",getToken:"獲取授權",verify:"檢查 授權資訊",verified:"成功檢查 歐路授權資訊",enable_help:"開啟後每次添加生詞將自動單向同步到歐路默認生詞本(salad到歐路生詞本),只同步新增單詞本身(删除不同步)",token_help:"請確認設定有效的個人授權資訊,否則將同步失敗。可點擊底部按鈕檢查。",sync_all:"同步全部生詞",sync_help:"將salad單詞本中現有的所有生詞,同步到歐路詞典默認生詞本中(需同時開啟上方同步開關,點擊保存)",sync_all_confirm:"注意短時間內頻繁同步有可能會導致接下來一小段時間的封停,確定繼續?"},webdav:{description:"應用設定(包括本設定)已通過瀏覽器自動同步。生詞本可通過本設定實現 WebDAV 同步。",jianguo:"參考堅果雲設定",checking:"連線中...",exist_confirm:"伺服器上已存在 Saladict 目錄。是否下載合併到本地?",upload_confirm:"馬上上傳本地資料到伺服器?",verify:"驗證伺服器",verified:"成功驗證伺服器",duration:"同步頻率",duration_help:"新增生字後會馬上上傳,資料會在上傳前保證同步,所以如果不需要多個瀏覽器即時檢視更新,可將更新檢查週期調大些以減少資源佔用及避免伺服器拒絕回應。",passwd:"密碼",url:"伺服器位址",user:"帳戶"},ankiconnect:{description:"請確保 Anki Connect 已安裝且 Anki 在執行。",checking:"連線中...",deck_confirm:"牌組「{{deck}}」不存在 Anki 中,是否自動新增?",deck_error:"無法建立牌組「{{deck}}」。",notetype_confirm:"筆記型別「{{noteType}}」不存在 Anki 中,是否自動新增?",notetype_error:"無法建立筆記型別「{{noteType}}」。",upload_confirm:"馬上同步本地生詞到 Anki?重複的單詞(相同“Date”)會被跳過。",add_yourself:"請在 Anki 中自行新增。",verify:"檢查 Anki Connect",verified:"成功檢查 Anki Connect",enable_help:"開啟後每次儲存新單字都會自動同步到 Anki。Anki 上已存在的單字(以“Date”為準)可以在單字編輯器中編輯強制更新覆蓋到 Anki。",host:"地址",port:"埠",key:"Key",key_help:"可在 Anki Connect 外掛中設定 key 以做簡單令牌。",deckName:"牌組",deckName_help:"如果不存在的話可以點下方「檢查 Anki Connect」讓本設定生成預設牌組。",noteType:"筆記型別",noteType_help:"Anki 筆記型別包括一套欄位和卡片型別。如果不存在的話可以點下方「檢查 Anki Connect」讓本設定生成一套預設的筆記型別。如需自行在 Anki 新增或修改卡片模板請不要更改欄位名字。",tags:"標籤",tags_help:"Anki 筆記可以附帶標籤。以逗號分割。",escapeHTML:"轉義 HTML",escapeHTML_help:"對筆記內容中的 HTML 字元進行轉義。如手動進行 HTML 排版請關閉選項。",syncServer:"同步伺服器",syncServer_help:"單詞新增到本地 Anki 後自動同步到伺服器(如 AnkiWeb)。"}},titlebarOffset:{title:"校準標題欄高度",help:"不同的系統以及不同的瀏覽器設定會影響標題欄高度,沙拉查詞會嘗試自動校準,如彈出視窗依然出現偏移可自行調整。",main:"普通視窗",main_help:"普通視窗可能沒有標題欄。",panel:"簡化視窗",panel_help:"沙拉查詞的獨立視窗快捷查詞介面為簡化視窗。",calibrate:"自動校準",calibrateSuccess:"自動校準成功",calibrateError:"自動校準失敗"},headInfo:{acknowledgement:{title:"特別鳴謝",yipanhuasheng:"新增韋氏詞典、美國傳統詞典、牛津學習詞典與歐路生詞同步;更新 Urban 詞典與 Naver 詞典",naver:"協助新增 Naver 韓國語字典",shanbay:"編寫扇貝詞典模組",trans_tw:"提供部分繁體中文翻譯",weblio:"協助新增 Weblio 辭書"},contact_author:"聯絡作者",donate:"支援項目",instructions:"使用說明",report_issue:"軟體使用疑問和建言"},form:{url_error:"不正確的超連結格式。",number_error:"不正確的數字"},preload:{title:"預先下載",auto:"自動查字",auto_help:"字典介面出現時自動搜尋預先載入內容。",clipboard:"剪貼簿",help:"字典介面出現時預先載入內容到搜尋框。",selection:"滑鼠選字"},locations:{CENTER:"居中",TOP:"上方",RIGHT:"右方",BOTTOM:"下方",LEFT:"左方",TOP_LEFT:"左上",TOP_RIGHT:"右上",BOTTOM_LEFT:"左下",BOTTOM_RIGHT:"右下"},import_export_help:"設定已通過瀏覽器自動同步,也可以手動匯入匯出。備份為明文儲存,對安全性有要求的請自行加密。",import:{title:"匯入設定",error:{title:"匯入失敗",parse:"備份解析失敗,格式不正確。",load:"備份載入失敗,瀏覽器無法獲得本地備份。",empty:"備份中沒有發現有效資料。"}},export:{title:"匯出設定",error:{title:"匯出失敗",empty:"沒有設定可以匯出。",parse:"設定解析失敗,無法匯出。"}},dictAuth:{description:"隨著沙拉查詞使用者增多,如經常使用機器翻譯,建議到官網申請帳號以獲得更穩定的體驗以及更準確的結果。以下帳號資料只會保留在瀏覽器中。",dictHelp:"見{詞典}官網。",manage:"管理私用帳號"},third_party_privacy:"第三方隱私",third_party_privacy_help:"沙拉查詞不會收集更多資料,但在查詞時單詞以及相關 cookies 資料會發送給第三方詞典服務(與在該網站上查詞一樣),如果你不希望被該服務獲取資料,請在「詞典設定」中關閉相應詞典。",third_party_privacy_extra:"本特性為沙拉查詞核心功能,無法關閉。",permissions:{success:"申請許可權成功",cancel_success:"取消許可權成功",failed:"申請許可權失敗",cancelled:"申請許可權被使用者取消",missing:"缺少許可權「{{permission}}」。請給予許可權或者關閉相關功能。",clipboardRead:"讀取剪貼簿",clipboardRead_help:"快捷查詞或者右上彈框設定預載入剪貼簿時需要讀取剪貼簿許可權。",clipboardWrite:"寫入剪貼簿",clipboardWrite_help:"機器翻譯詞典標題欄選單複製原文譯文或生詞本匯出到剪貼簿需要寫入剪貼簿許可權。"},unsupportedFeatures:{ff:"火狐尚不支援「{{feature}}」功能。"}}},447:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"沙拉查詞-右上彈框",app_active_title:"啟用滑鼠選字",app_temp_active_title:"對目前頁面暫時關閉滑鼠選字",instant_capture_pinned:"(釘選)",instant_capture_title:"啟用滑鼠懸浮取詞",notebook_added:"已新增",notebook_empty:"目前頁面沒有發現選詞",notebook_error:"無法新增選詞到生字本",page_no_response:"頁面無回應",qrcode_title:"目前頁面二維條碼"}},448:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:{history:"沙拉查詞-查單字紀錄",notebook:"沙拉查詞-生字本"},localonly:"僅本機儲存",column:{add:"新增",date:"日期",edit:"編輯",note:"筆記",source:"來源",trans:"翻譯",word:"單字"},delete:{title:"刪除單字",all:"刪除所有單字",confirm:",確認?",page:"刪除本頁單字",selected:"刪除選取單字"},export:{title:"匯出文字",all:"匯出所有單字",description:"編寫產生的範本,描述每條記錄產生的樣子:",explain:"如何配合 ANKI 等工具",gencontent:"代表的內容",linebreak:{default:"保留換行",n:"換行替換為 \\n",br:"換行替換為 <br>",p:"換行替換為 <p>",space:"換行替換為空格"},page:"輸出本頁單字",placeholder:"預留位置",htmlescape:{title:"對筆記內容中的 HTML 字元進行轉義",text:"轉義 HTML"},selected:"輸出選中單字"},filterWord:{chs:"中文",eng:"英文",word:"單字",phrase:"片語和句子"},wordCount:{selected:"選中 {{count}} 個",selected_plural:"選中 {{count}} 個",total:"共 {{count}} 個",total_plural:"共 {{count}} 個"}}},481:function(e,t,n){var a={"./ahdict/favicon.png":518,"./baidu/favicon.png":519,"./bing/favicon.png":520,"./caiyun/favicon.png":521,"./cambridge/favicon.png":522,"./cobuild/favicon.png":523,"./etymonline/favicon.png":524,"./eudic/favicon.png":525,"./google/favicon.png":526,"./guoyu/favicon.png":527,"./hjdict/favicon.png":528,"./liangan/favicon.png":529,"./longman/favicon.png":530,"./merriamwebster/favicon.png":531,"./mojidict/favicon.png":532,"./naver/favicon.png":533,"./oaldict/favicon.png":534,"./renren/favicon.png":535,"./shanbay/favicon.png":536,"./sogou/favicon.png":537,"./tencent/favicon.png":538,"./urban/favicon.png":539,"./vocabulary/favicon.png":540,"./weblio/favicon.png":541,"./weblioejje/favicon.png":542,"./wikipedia/favicon.png":543,"./youdao/favicon.png":544,"./youdaotrans/favicon.png":545,"./zdic/favicon.png":546};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=481},504:function(e,t,n){"use strict";n.r(t);var a=n(44),o=n(1),r=n(29),i=n(2),c=n(10),s=n(751),l=n(121);function d(e){window.parent===window?o.a.self.send({type:"SELECTION",payload:e}):window.parent.postMessage({type:"SALADICT_SELECTION",payload:e},"*")}var u=n(43),p=n(20),h=n(124),m=n(112),f=n(67),g=n(736),b=n(102),y=n(57),w=n(159),x=n(141),v=n(508),E=n(88),O=n(561),_=n(182),k=n(39);function C(e){const t=e.clientX,n=e.clientY;let o,r,i;const c=window.getSelection();if(!c)return null;if(c.rangeCount>0&&(i=c.getRangeAt(0),c.removeAllRanges()),document.caretPositionFromPoint){const e=document.caretPositionFromPoint(t,n);if(!e)return null;o=e.offsetNode,r=e.offset}else{if(!document.caretRangeFromPoint)return null;{const e=document.caretRangeFromPoint(t,n);if(!e)return null;o=e.startContainer,r=e.startOffset}}if(o.nodeType===Node.TEXT_NODE){const e=o,s=e.data,l=(s.slice(0,r).match(/[-_a-z]+$/i)||[""])[0],d=(s.slice(r).match(/^([-_a-z]+|[\u4e00-\u9fa5])/i)||[""])[0];if(l.length<=0&&d.length<=0)return null;const u=document.createRange();u.setStart(e,r-l.length),u.setEnd(e,r+d.length);const p=u.getBoundingClientRect();p.left<=t&&p.right>=t&&p.top<=n&&p.bottom>=n&&(c.removeAllRanges(),c.addRange(u),c.modify&&(c.modify("move","backward","word"),c.collapseToStart(),c.modify("extend","forward","word")));const h=Object(a.d)(c),m=Object(a.b)(c);return c.removeAllRanges(),i&&c.addRange(i),u.detach(),h?{text:h,context:m}:null}return null}var j=n(922),S=n(404);var A=n(179);if(!window.__SALADICT_SELECTION_LOADED__){window.__SALADICT_SELECTION_LOADED__=!0;const e=Object(r.b)().pipe(Object(c.a)(e=>Object(u.a)(e)?null:e),Object(s.a)());o.a.addListener("PRELOAD_SELECTION",()=>{const e=Object(a.c)();if(e)return Object(u.e)({text:e,context:Object(a.a)()})}),o.a.createStream("EMIT_SELECTION").subscribe(async()=>{const e=window.getSelection();if(e&&e.rangeCount>0){const t=Object(a.d)(e),n=e.getRangeAt(0).getBoundingClientRect();t&&d({mouseX:n.right,mouseY:n.top,instant:!0,self:Object(i.e)(e.anchorNode),word:await Object(u.e)({text:t,context:Object(a.b)(e)}),dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,force:!1})}}),window.addEventListener("message",(function({data:e,source:t}){if(!e||"SALADICT_SELECTION"!==e.type)return;const n=({contentWindow:e})=>e===t,a=Array.from(document.querySelectorAll("iframe")).find(n)||Array.from(document.querySelectorAll("frame")).find(n);if(!a)return;const{left:o,top:r}=a.getBoundingClientRect();e.payload.mouseX=e.payload.mouseX+o,e.payload.mouseY=e.payload.mouseY+r,d(e.payload)})),Object(u.f)(u.b).subscribe(()=>o.a.self.send({type:"ESCAPE_KEY"})),e.pipe(Object(l.a)((function(e){if(!e||!e.tripleCtrl||Object(i.n)()||Object(i.i)())return h.a;const t=Object(s.a)()(Object(u.f)(u.c));return t.pipe(Object(j.a)(Object(m.a)(Object(S.a)(500)(t),Object(u.f)(e=>!Object(u.c)(e)))),Object(k.a)(e=>e.length>=3))}))).subscribe(()=>{o.a.self.send({type:"TRIPLE_CTRL"})}),e.pipe(Object(l.a)(A.a)).subscribe(async e=>{e.word?d({dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,self:!1,instant:!1,force:!1,...e,word:await Object(u.e)(e.word)}):function(e){const t={type:"SELECTION",payload:{word:null,self:e,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}};o.a.self.send(t)}(e.self)}),e.pipe(Object(l.a)((function(e){if(!e)return h.a;const t=o.a.self.createStream("PIN_STATE").pipe(Object(x.a)("payload"),Object(v.a)(!1)),n=Object(m.a)(Object(f.a)(o.a.send({type:"QUERY_QS_PANEL"})),o.a.createStream("QS_PANEL_CHANGED").pipe(Object(x.a)("payload"))).pipe(Object(c.a)(t=>t&&e.qssaPageSel),Object(v.a)(!1));return Object(g.a)(t,n).pipe(Object(l.a)(([t,n])=>{const{instant:a}=e.panelMode,{instant:o}=e[n?"qsPanelMode":t?"pinMode":"mode"];if(!a.enable&&!o.enable)return Object(b.a)(null);const r={};return Object(m.a)(Object(E.a)(null)(Object(y.a)(window,"mouseup",{capture:!0})),Object(E.a)(null)(Object(y.a)(window,"mouseout",{capture:!0})),Object(E.a)(null)(Object(y.a)(window,"keyup",{capture:!0})),Object(y.a)(window,"mousemove",{capture:!0}).pipe(Object(c.a)(e=>{const t=Object(i.e)(e.target),n=t||Object(i.n)()?a:o;return n.enable&&("alt"===n.key&&e.altKey||"shift"===n.key&&e.shiftKey||"ctrl"===n.key&&(e.ctrlKey||e.metaKey)||"direct"===n.key&&!(e.ctrlKey||e.metaKey||e.altKey))?(r.event=e,r.self=t,r):null}))).pipe(Object(O.a)(e=>e?Object(w.a)(e.self?a.delay:o.delay):Object(b.a)()))}),Object(c.a)(e=>e&&{word:C(e.event),...e}),Object(_.a)((e,t)=>{if(!e||!t)return!1;const{word:n,event:a}=e,{word:o,event:r}=t;return(null==n?void 0:n.text)===(null==o?void 0:o.text)&&(null==n?void 0:n.context)===(null==o?void 0:o.context)&&a.shiftKey===r.shiftKey&&a.ctrlKey===r.ctrlKey&&a.metaKey===r.metaKey&&a.altKey===r.altKey}),Object(k.a)(t=>Boolean(t&&t.word&&Object(p.a)(e.language,t.word.text))))}))).subscribe(async({word:e,event:t,self:n})=>{d({word:await Object(u.e)(e),altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,dbClick:!1,force:!1,instant:!0,mouseX:t.clientX,mouseY:t.clientY,self:n})})}},505:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c}));var a=n(20),o=n(148);async function r(e){return(await Object(o.a)()).notebook.where("text").equalsIgnoreCase(e.text).count().then(e=>e>0)}async function i({area:e,text:t}){return(await Object(o.a)())[e].where("text").equalsIgnoreCase(t).toArray()}async function c({area:e,itemsPerPage:t,pageNum:n,filters:r={},sortField:i="date",sortOrder:c="descend",searchText:s}){const l=(await Object(o.a)())[e].orderBy(i?Array.isArray(i)?i.map(e=>String(e)):String(i):"date");c&&"descend"!==c||l.reverse();const d=Array.isArray(r.text)&&r.text.length>0;if(d||s){const e=d?r.text.reduce((e,t)=>(e[t]=!0,e),{}):{},t=s?s.toLocaleLowerCase():"";l.filter(n=>{const o=!d||(e.en&&Object(a.e)(n.text)||e.ch&&Object(a.c)(n.text)||e.word&&!/\s/.test(n.text)||e.phra&&/\s/.test(n.text)),r=!s||Object.values(n).some(e=>"string"==typeof e&&-1!==e.toLocaleLowerCase().indexOf(t));return o&&r})}const u=await l.count();void 0!==t&&void 0!==n&&l.offset(t*(n-1)).limit(t);return{total:u,words:await l.toArray()}}},509:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n(148);async function o({area:e,word:t}){return(await Object(a.a)())[e].put(t)}async function r({area:e,words:t}){return(await Object(a.a)())[e].bulkPut(t)}async function i({area:e,dates:t}){const n=await Object(a.a)();return Array.isArray(t)?n[e].bulkDelete(t):n[e].clear()}},510:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const a=n(889);function o(e,t){const n=a(`./${e}/${t}.ts`);return n.locale||n}},511:function(e,t,n){"use strict";n.r(t),n.d(t,"searchMode",(function(){return d}));var a=n(0),o=n.n(a),r=n(178),i=n(257),c=n(58),s=n(103),l=n(17);const d=(e,t)=>{const n=[];return"mode"===e&&n.push({name:Object(l.a)("mode","icon"),label:null,help:t("searchMode.icon_help"),valuePropName:"checked",children:o.a.createElement(r.a,null,t("searchMode.icon"))},{name:Object(l.a)("bowlHover"),label:null,hide:e=>!e[Object(l.a)("mode","icon")],valuePropName:"checked",children:o.a.createElement(r.a,null,t(Object(l.a)("bowlHover")))},{name:Object(l.a)("bowlOffsetX"),hide:e=>!e[Object(l.a)("mode","icon")],children:o.a.createElement(i.a,{tipFormatter:s.c,min:-100,max:100,marks:{"-100":"-100px",0:"0px",100:"100px"},style:{marginBottom:0}})},{name:Object(l.a)("bowlOffsetY"),hide:e=>!e[Object(l.a)("mode","icon")],children:o.a.createElement(i.a,{tipFormatter:s.c,min:-100,max:100,marks:{"-100":"-100px",0:"0px",100:"100px"},style:{marginBottom:0}})}),n.push({name:Object(l.a)(e,"direct"),label:null,help:t("searchMode.direct_help"),valuePropName:"checked",children:o.a.createElement(r.a,null,t("searchMode.direct"))},{name:Object(l.a)(e,"double"),label:null,help:t("searchMode.double_help"),valuePropName:"checked",children:o.a.createElement(r.a,null,t("searchMode.double"))},{key:Object(l.a)(e,"holding"),label:null,help:t("searchMode.holding_help"),items:[{name:Object(l.a)(e,"holding","ctrl"),label:null,className:"form-item-inline",valuePropName:"checked",children:o.a.createElement(r.a,null,o.a.createElement("kbd",null,"Ctrl"))},{name:Object(l.a)(e,"holding","alt"),label:null,className:"form-item-inline",valuePropName:"checked",children:o.a.createElement(r.a,null,o.a.createElement("kbd",null,"Alt"))},{name:Object(l.a)(e,"holding","shift"),label:null,className:"form-item-inline",valuePropName:"checked",children:o.a.createElement(r.a,null,o.a.createElement("kbd",null,"Shift"))},{name:Object(l.a)(e,"holding","meta"),label:null,className:"form-item-inline",valuePropName:"checked",children:o.a.createElement(r.a,null,o.a.createElement("kbd",null,"Meta"))}]},{name:Object(l.a)(e,"instant","enable"),label:null,help:t("searchMode.instant_help"),valuePropName:"checked",children:o.a.createElement(r.a,null,t("searchMode.instant"))},{name:Object(l.a)(e,"instant","key"),label:t("searchMode.instantKey"),help:t("searchMode.instantKey_help"),hide:t=>!t[Object(l.a)(e,"instant","enable")],children:o.a.createElement(c.a,{style:{width:100}},o.a.createElement(c.a.Option,{value:"direct"},t("searchMode.instantDirect")),o.a.createElement(c.a.Option,{value:"ctrl"},"Ctrl/⌘"),o.a.createElement(c.a.Option,{value:"alt"},"Alt"),o.a.createElement(c.a.Option,{value:"shift"},"Shift"))},{name:Object(l.a)(e,"instant","delay"),label:t("searchMode.instantDelay"),hide:t=>!t[Object(l.a)(e,"instant","enable")],children:o.a.createElement(i.a,{tipFormatter:e=>e+t("common:unit.ms"),min:100,max:2e3,marks:{100:"0.1"+t("common:unit.s"),2e3:"2"+t("common:unit.s")}})}),{key:Object(l.a)(e),items:n}}},513:function(e,t,n){"use strict";n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return x}));var a=n(224),o=n.n(a),r=n(779),i=n.n(r),c=n(772),s=n.n(c),l=n(605),d=n.n(l),u=n(0),p=n.n(u),h=n(793),m=n(1365),f=n(84),g=n(777),b=n(794),y=n(9);n(1195);function w(e,t,n){const a=Array.from(e),[o]=a.splice(t,1);return a.splice(n,0,o),a}function x(e){const{t:t}=Object(y.d)("common");return p.a.createElement(m.a,{title:e.title,extra:p.a.createElement(f.a,{type:"dashed",size:"small",onClick:e.onAdd},p.a.createElement(d.a,null),t("add"))},e.description,p.a.createElement(g.default.Group,{className:"sortable-list-radio-group",value:e.selected,onChange:e.onSelect},p.a.createElement(h.a,{onDragEnd:t=>{e.onOrderChanged&&t.destination&&t.source.index!==t.destination.index&&e.onOrderChanged(t.source.index,t.destination.index)}},p.a.createElement(h.c,{droppableId:"droppable"},({innerRef:n,droppableProps:a,placeholder:r})=>p.a.createElement("div",{ref:n,...a},p.a.createElement(b.b,{size:"large"},e.list.map((n,a)=>p.a.createElement(h.b,{key:n.value,draggableId:n.value,index:a,disableInteractiveElementBlocking:!0},({innerRef:r,draggableProps:c,dragHandleProps:l})=>p.a.createElement("div",{ref:r,...c},p.a.createElement(b.b.Item,{key:n.value},p.a.createElement("div",{className:"sortable-list-item"},null==e.selected?n.title:p.a.createElement(g.default,{value:n.value},n.title),p.a.createElement("div",{className:"sortable-list-item-btns"},p.a.createElement(s.a,{rotate:90,title:t("sort"),style:{cursor:"move"},...l}),p.a.createElement(f.a,{className:"sortable-list-item-btn",title:t("edit"),shape:"circle",size:"small",icon:p.a.createElement(i.a,null),disabled:null!=e.disableEdit&&e.disableEdit(a,n),onClick:()=>e.onEdit&&e.onEdit(a,n)}),p.a.createElement(f.a,{title:t("delete"),className:"sortable-list-item-btn",shape:"circle",size:"small",icon:p.a.createElement(o.a,null),disabled:null!=e.selected&&n.value===e.selected,onClick:()=>e.onDelete&&e.onDelete(a,n)}))))))),r))))),(null==e.isShowAdd||e.isShowAdd)&&p.a.createElement(f.a,{type:"dashed",style:{width:"100%"},onClick:e.onAdd},p.a.createElement(d.a,null)," ",t("add")))}},518:function(e,t,n){e.exports=n.p+"assets/favicon-ahdict.51ab8a55.png"},519:function(e,t,n){e.exports=n.p+"assets/favicon-baidu.b1036c7f.png"},520:function(e,t,n){e.exports=n.p+"assets/favicon-bing.e3d3533d.png"},521:function(e,t,n){e.exports=n.p+"assets/favicon-caiyun.7da16416.png"},522:function(e,t,n){e.exports=n.p+"assets/favicon-cambridge.fa1166e5.png"},523:function(e,t,n){e.exports=n.p+"assets/favicon-cobuild.b6b15fdf.png"},524:function(e,t,n){e.exports=n.p+"assets/favicon-etymonline.eb3c1833.png"},525:function(e,t,n){e.exports=n.p+"assets/favicon-eudic.e582c08d.png"},526:function(e,t,n){e.exports=n.p+"assets/favicon-google.8edddd23.png"},527:function(e,t,n){e.exports=n.p+"assets/favicon-guoyu.b08539ad.png"},528:function(e,t,n){e.exports=n.p+"assets/favicon-hjdict.d4d70891.png"},529:function(e,t,n){e.exports=n.p+"assets/favicon-liangan.b08539ad.png"},530:function(e,t,n){e.exports=n.p+"assets/favicon-longman.c733be7c.png"},531:function(e,t,n){e.exports=n.p+"assets/favicon-merriamwebster.1fc05990.png"},532:function(e,t,n){e.exports=n.p+"assets/favicon-mojidict.435cd8b4.png"},533:function(e,t,n){e.exports=n.p+"assets/favicon-naver.6094f3e0.png"},534:function(e,t,n){e.exports=n.p+"assets/favicon-oaldict.3cf302d4.png"},535:function(e,t,n){e.exports=n.p+"assets/favicon-renren.7fdf60c5.png"},536:function(e,t,n){e.exports=n.p+"assets/favicon-shanbay.082532e3.png"},537:function(e,t,n){e.exports=n.p+"assets/favicon-sogou.5f76dc4a.png"},538:function(e,t,n){e.exports=n.p+"assets/favicon-tencent.6981c3c3.png"},539:function(e,t,n){e.exports=n.p+"assets/favicon-urban.e32bfdde.png"},540:function(e,t,n){e.exports=n.p+"assets/favicon-vocabulary.06f9ac91.png"},541:function(e,t,n){e.exports=n.p+"assets/favicon-weblio.b2639663.png"},542:function(e,t,n){e.exports=n.p+"assets/favicon-weblioejje.a7f3d53c.png"},543:function(e,t,n){e.exports=n.p+"assets/favicon-wikipedia.47e324fa.png"},544:function(e,t,n){e.exports=n.p+"assets/favicon-youdao.da86f82a.png"},545:function(e,t,n){e.exports=n.p+"assets/favicon-youdaotrans.0d8d4512.png"},546:function(e,t,n){e.exports=n.p+"assets/favicon-zdic.1310d810.png"},547:function(e,t,n){var a={"./ahdict/View.tsx":[678,71],"./baidu/View.tsx":[679,65],"./bing/View.tsx":[680,72],"./caiyun/View.tsx":[681,66],"./cambridge/View.tsx":[682,73],"./cobuild/View.tsx":[683,29],"./etymonline/View.tsx":[684,74],"./eudic/View.tsx":[685,118],"./google/View.tsx":[686,67],"./guoyu/View.tsx":[677,119],"./hjdict/View.tsx":[687,75],"./liangan/View.tsx":[688,82],"./longman/View.tsx":[689,30],"./merriamwebster/View.tsx":[690,120],"./mojidict/View.tsx":[691,25],"./naver/View.tsx":[692,76],"./oaldict/View.tsx":[693,77],"./renren/View.tsx":[694,78],"./shanbay/View.tsx":[695,79],"./sogou/View.tsx":[696,68],"./tencent/View.tsx":[697,69],"./urban/View.tsx":[698,80],"./vocabulary/View.tsx":[699,121],"./weblio/View.tsx":[700,26],"./weblioejje/View.tsx":[701,27],"./wikipedia/View.tsx":[702,81],"./youdao/View.tsx":[703,24],"./youdaotrans/View.tsx":[704,70],"./zdic/View.tsx":[705,28]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(a)},o.id=547,e.exports=o},548:function(e,t,n){var a={"./ahdict/_style.shadow.scss":[706,31],"./baidu/_style.shadow.scss":[707,32],"./bing/_style.shadow.scss":[708,33],"./caiyun/_style.shadow.scss":[709,34],"./cambridge/_style.shadow.scss":[710,35],"./cobuild/_style.shadow.scss":[711,36],"./etymonline/_style.shadow.scss":[712,37],"./eudic/_style.shadow.scss":[713,38],"./google/_style.shadow.scss":[714,39],"./guoyu/_style.shadow.scss":[715,40],"./hjdict/_style.shadow.scss":[716,41],"./liangan/_style.shadow.scss":[717,42],"./longman/_style.shadow.scss":[718,43],"./merriamwebster/_style.shadow.scss":[719,44],"./mojidict/_style.shadow.scss":[720,45],"./naver/_style.shadow.scss":[721,46],"./oaldict/_style.shadow.scss":[722,47],"./renren/_style.shadow.scss":[723,48],"./shanbay/_style.shadow.scss":[724,49],"./sogou/_style.shadow.scss":[725,50],"./tencent/_style.shadow.scss":[726,51],"./urban/_style.shadow.scss":[727,52],"./vocabulary/_style.shadow.scss":[728,53],"./weblio/_style.shadow.scss":[729,54],"./weblioejje/_style.shadow.scss":[730,55],"./wikipedia/_style.shadow.scss":[731,56],"./youdao/_style.shadow.scss":[732,57],"./youdaotrans/_style.shadow.scss":[733,58],"./zdic/_style.shadow.scss":[734,59]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n.t(o,7)}))}o.keys=function(){return Object.keys(a)},o.id=548,e.exports=o},55:function(e,t,n){"use strict";function a(e,t={},n={}){return{name:e,options:{keepLF:{en:"Keep linebreaks","zh-CN":"保留换行","zh-TW":"保留換行"},"keepLF-none":{en:"None","zh-CN":"不保留","zh-TW":"不保留"},"keepLF-all":{en:"All","zh-CN":"全保留","zh-TW":"全保留"},"keepLF-pdf":{en:"PDF","zh-CN":"保留 PDF 换行","zh-TW":"保留 PDF 換行"},"keepLF-webpage":{en:"Webpage","zh-CN":"保留网页换行","zh-TW":"保留網頁換行"},slInitial:{en:"Source Language","zh-CN":"原文显示","zh-TW":"原文顯示"},"slInitial-hide":{en:"Hide","zh-CN":"隐藏","zh-TW":"隱藏"},"slInitial-collapse":{en:"Collapse","zh-CN":"收起","zh-TW":"收起"},"slInitial-full":{en:"Full","zh-CN":"完整显示","zh-TW":"完整顯示"},tl:{en:"Target language","zh-CN":"目标语言","zh-TW":"目標語言"},tl2:{en:"Fallback target language","zh-CN":"第二目标语言","zh-TW":"第二目標語言"},...t},helps:{slInitial:{en:"Source language initial state. If hided can be reopened via dictionary titlebar menu.","zh-CN":"原文初始显示状态。隐藏后可通过字典标题栏菜单打开。","zh-TW":"原文初始顯示狀態。隱藏後可通過字典標題欄選單開啟。"},tl2:{en:"Fallback when detected languange and target language are identical.","zh-CN":"如果检测的源语言与目标语言相同将自动切换第二目标语言。","zh-TW":"如果檢測的源語言與目標語言相同將自動切換第二目標語言。"},...n}}}n.d(t,"a",(function(){return a}))},552:function(e,t,n){"use strict";n.r(t),n.d(t,"DictTitle",(function(){return s})),n.d(t,"DictTitleMemo",(function(){return l}));var a=n(0),o=n.n(a),r=n(9),i=n(1);n(954);const c=["en","zhs","zht","ja","kor","fr","de","es"],s=({dictID:e,dictLangs:t})=>{const{t:a}=Object(r.d)(["options","dicts"]),s=a(`dicts:${e}.name`);return o.a.createElement("span",{className:"saladict-dict-title"},o.a.createElement("span",null,o.a.createElement("img",{className:"saladict-dict-title-icon",src:n(481)("./"+e+"/favicon.png"),alt:"logo "+s}),o.a.createElement("a",{className:"saladict-dict-title-link",href:"#",onClick:n=>{n.stopPropagation(),n.preventDefault(),function(e,t){const n=+t[0]?"salad":+t[1]||+t[2]?"沙拉":+t[3]?"サラダ":+t[4]?"샐러드":"salad";i.a.send({type:"OPEN_DICT_SRC_PAGE",payload:{id:e,text:n}})}(e,t)}},s)),o.a.createElement("span",null,t.split("").map((e,t)=>+e?o.a.createElement("span",{className:"saladict-dict-langs-char",key:c[t]},a("dict.lang."+c[t])):null)))},l=o.a.memo(s)},554:function(e,t,n){"use strict";var a=n(0),o=n.n(a),r=n(23),i=n(362),c=n(5),s=n.n(c),l=n(30),d=n(2),u=n(147),p=n(16);const h=Object(p.a)(()=>{if("undefined"==typeof document)return 0;const e=document.createElement("div"),t=e.style;t.position="fixed",t.left="0",t.overflowY="scroll",t.visibility="hidden",document.body.appendChild(e);const n=e.getBoundingClientRect().right;return e.remove(),n});var m=n(138);const f=e=>{const t=Object(a.useRef)(null),[n,r]=Object(a.useState)(()=>g(e.width,e.coord.x)),[c,l]=Object(a.useState)(()=>b(e.height,e.coord.y)),u=Object(a.useRef)(!1),p=Object(a.useRef)();Object(i.a)(()=>{e.takeCoordSnapshot?p.current={x:n,y:c}:p.current&&(r(g(e.width,p.current.x)),l(b(e.height,p.current.y)))},[e.takeCoordSnapshot]),Object(i.a)(()=>{r(g(e.width,e.coord.x)),l(b(e.height,e.coord.y))},[e.coord]),Object(i.a)(()=>{u.current||(r(t=>g(e.width,t)),l(t=>b(e.height,t)))},[e.width,e.height]),Object(a.useEffect)(()=>{e.dragStartCoord&&(u.current=!0)},[e.dragStartCoord]);const f=Object(a.useMemo)(()=>e.dragStartCoord?{x:n,y:c}:null,[e.dragStartCoord]);return o.a.createElement("div",{ref:t,className:"dictPanel-FloatBox-Container saladict-theme"},o.a.createElement("div",{className:s()("dictPanel-Root",d.b,{isDragging:e.dragStartCoord}),style:{left:n,top:c,zIndex:Object(d.g)()?999:2147483647,width:e.width,height:e.height,"--panel-width":e.width+"px","--panel-max-height":e.maxHeight+"px","--panel-font-size":e.fontSize+"px"}},o.a.createElement("div",{className:"dictPanel-Head"},e.menuBar),o.a.createElement(m.b.Provider,{value:t},o.a.createElement("div",{className:"dictPanel-Body"+(h()>0?" fancy-scrollbar":"")},e.mtaBox,e.dictList)),e.waveformBox,e.dragStartCoord&&o.a.createElement("div",{className:"dictPanel-DragMask",onMouseMove:t=>{f&&e.dragStartCoord&&(t.stopPropagation(),t.preventDefault(),r(t.clientX-e.dragStartCoord.x+f.x),l(t.clientY-e.dragStartCoord.y+f.y))},onTouchMove:t=>{f&&e.dragStartCoord&&(t.stopPropagation(),t.preventDefault(),r(t.changedTouches[0].clientX-e.dragStartCoord.x+f.x),l(t.changedTouches[0].clientY-e.dragStartCoord.y+f.y))},onMouseOut:t=>{t.relatedTarget||e.onDragEnd()},onMouseUp:e.onDragEnd,onTouchCancel:e.onDragEnd,onTouchEnd:e.onDragEnd})))};function g(e,t){const n=window.innerWidth;return t+e+25>n&&(t=n-25-e),t<10&&(t=10),t}function b(e,t){const n=window.innerHeight;return t+e+15>n&&(t=n-15-e),t<15&&(t=15),t}const y=e=>{const{show:t,panelCSS:r,withAnimation:c,darkMode:p,...h}=e,m=Object(a.useRef)(t),[g,b]=Object(a.useState)(t),y=Object(l.e)(()=>o.a.createElement("style",null,n(641).toString())).current;return Object(i.a)(()=>{b(t)},[t]),Object(i.a)(()=>{e.takeCoordSnapshot?m.current=g:m.current||b(!1)},[e.takeCoordSnapshot]),o.a.createElement(u.a,{id:"saladict-dictpanel-root",head:y,shadowRootClassName:d.b,innerRootClassName:s()({isAnimate:c,darkMode:p}),panelCSS:r,in:g,timeout:e.withAnimation?u.c:0},()=>o.a.createElement(f,{...h}))};var w=n(354),x=n(357),v=n(355),E=n(358);const O=o.a.createElement(w.a,null),_=o.a.createElement(v.a,null),k=o.a.createElement(E.a,null),C=Object(r.b)(e=>({show:e.isShowDictPanel,coord:e.dictPanelCoord,takeCoordSnapshot:e.wordEditor.isShow,width:e.config.panelWidth,height:e.panelHeight,maxHeight:e.panelMaxHeight,fontSize:e.config.fontSize,withAnimation:e.config.animation,panelCSS:e.config.panelCSS,darkMode:e.config.darkMode,menuBar:O,mtaBox:e.isShowMtaBox?o.a.createElement(x.a,null):null,dictList:_,waveformBox:e.activeProfile.waveform?k:null,dragStartCoord:e.dragStartCoord}),e=>({onDragEnd:()=>{e({type:"DRAG_START_COORD",payload:null})}}))(y);t.a=C},555:function(e,t,n){"use strict";var a=n(23),o=n(0),r=n.n(o),i=n(30),c=n(147),s=n(5),l=n.n(s),d=n(125),u=n(190),p=n(92),h=n(2);const m=e=>{const[t,n]=Object(d.a)(p.c);return Object(u.a)(n,t=>{e.onHover(t),t&&e.onActive()}),r.a.createElement("div",{role:"img",className:l()("saladbowl",h.a,{enableHover:e.enableHover}),style:{transform:`translate(${e.x}px, ${e.y}px)`},onMouseOver:e.enableHover?t:void 0,onMouseOut:t,onClick:()=>e.onActive()},r.a.createElement("svg",{viewBox:"0 0 612 612",width:"30",height:"30"},r.a.createElement("g",{className:"saladbowl-leaf"},r.a.createElement("path",{fill:"#6bbc57",d:"M 577.557 184.258 C 560.417 140.85 519.54 59.214 519.54 59.214 L 519.543 59.204 C 519.543 59.204 436.903 97.626 396.441 120.878 C 366.171 138.274 354.981 169.755 352.221 177.621 C 349.001 186.851 339.891 228.811 358.341 268.481 C 382.271 319.921 409.201 374.521 409.201 374.521 L 409.201 374.531 C 409.201 374.531 464.511 348.701 515.291 323.401 C 554.451 303.891 573.591 265.441 576.821 256.221 C 579.571 248.356 590.398 216.746 577.574 184.271 Z"}),r.a.createElement("path",{fill:"#bde9b7",d:"M 501.052 102.162 L 507.518 104.425 L 426.69 335.38 L 420.224 333.117 Z"})),r.a.createElement("g",{className:"saladbowl-orange"},r.a.createElement("circle",{fill:"#ffb30d",cx:"299.756",cy:"198.246",r:"178.613"}),r.a.createElement("circle",{fill:"#fce29c",cx:"299.756",cy:"198.246",r:"155.24"}),r.a.createElement("path",{fill:"#fcc329",d:"M 299.756 189.873 L 341.269 113.475 C 349.169 82.543 324.349 58.588 299.749 57.891 C 275.149 57.201 248.229 82.781 256.489 113.481 L 299.749 189.881 Z M 307.026 194.757 L 393.974 194.757 C 424.928 187.083 434.124 153.681 422.994 131.737 C 411.864 109.795 376.534 98.357 353.5 120.27 L 307.025 194.757 Z M 308.79 203.444 L 354.885 277.168 C 377.925 299.268 410.995 289.438 423.701 268.368 C 436.411 247.298 427.381 211.276 396.591 203.362 L 308.801 203.442 Z M 300.208 206.618 L 259.628 283.516 C 252.098 314.543 277.214 338.193 301.815 338.591 C 326.415 338.991 353.022 313.081 344.392 282.491 L 300.208 206.631 Z M 292.058 203.3 L 205.108 203.415 C 174.163 211.277 165.014 244.54 176.172 266.468 C 187.33 288.396 226.052 300.541 249.056 278.598 L 292.056 203.301 Z M 292.465 194.83 L 246.497 121.024 C 223.494 98.884 190.409 108.658 177.667 129.706 C 164.925 150.753 173.893 186.791 204.669 194.756 L 292.459 194.829 Z"})),r.a.createElement("g",{className:"saladbowl-tomato"},r.a.createElement("path",{fill:"#a63131",d:"M 71.014 337.344 C 147.291 422.594 278.234 429.866 363.482 353.589 L 87.258 44.87 C 2.01 121.15 -5.262 252.092 71.014 337.342 Z"}),r.a.createElement("path",{fill:"#bc5757",d:"M 101.447 310.115 C 162.685 378.555 267.811 384.393 336.251 323.155 L 114.49 75.31 C 46.047 136.55 40.21 241.674 101.447 310.115 Z"}),r.a.createElement("path",{fill:"#f1d4af",d:"M 186.412 237.54 L 151.659 245.444 C 139.989 251.384 139.339 265.51 145.779 273.27 C 152.219 281.028 167.379 282.39 174.599 271.538 L 186.399 237.54 Z M 242.062 269.832 L 223.366 300.175 C 219.439 312.658 229.066 323.018 239.116 323.85 C 249.168 324.685 260.756 314.815 258.061 302.065 L 242.061 269.832 Z M 160.202 178.317 L 130.357 158.837 C 117.98 154.585 107.375 163.939 106.277 173.965 C 105.183 183.99 114.747 195.833 127.563 193.471 L 160.203 178.321 Z"})),r.a.createElement("g",{className:"saladbowl-bowl"},r.a.createElement("path",{fill:"#2d97b7",d:"M 30.857 311.46 C 30.857 429.87 105.371 530.8 209.867 569.52 L 209.867 589.2 L 400.987 589.2 L 400.987 568.9 C 503.595 530.114 576.887 431.202 578.31 314.907 L 589.196 295.97 L 22.804 295.97 L 30.867 309.998 C 30.865 310.488 30.857 310.971 30.857 311.458 Z"}),r.a.createElement("path",{fill:"#fff",d:"M 540.565 321.42 C 540.585 322.587 540.595 323.755 540.595 324.927 C 540.595 405.941 497.513 476.884 433.015 516.122 L 437.178 523.317 C 504.152 482.64 548.895 409.009 548.895 324.927 C 548.895 323.755 548.885 322.587 548.865 321.419 Z M 399.885 532.68 C 388.298 537.31 376.237 541.002 363.793 543.654 L 363.793 544.45 L 364.971 551.893 C 378.481 549.049 391.551 545.018 404.081 539.935 Z"}))))},f={enter:1e3,exit:100,appear:1e3},g=Object(a.b)(e=>({show:e.isShowBowl,panelCSS:e.config.panelCSS,x:e.bowlCoord.x,y:e.bowlCoord.y,withAnimation:e.config.animation,enableHover:e.config.bowlHover}),e=>({onActive:()=>{e({type:"BOWL_ACTIVATED"})}}))(e=>{const{show:t,panelCSS:a,withAnimation:s,...l}=e,[d,u]=Object(o.useState)(!1),p=Object(i.e)(()=>r.a.createElement("style",null,n(638).toString())).current;return r.a.createElement(c.b,{id:"saladict-saladbowl-root",head:p,classNames:"saladbowl",innerRootClassName:s?"isAnimate":"",panelCSS:a,in:t||d,timeout:s?f:0},()=>r.a.createElement(m,{...l,onHover:u}))});t.a=g},556:function(e,t,n){"use strict";var a=n(23),o=n(0),r=n.n(o),i=n(5),c=n.n(i),s=n(30),l=n(147),d=n(356);const u=e=>{const{show:t,withAnimation:a,darkMode:o,...i}=e,u=Object(s.e)(()=>r.a.createElement("style",null,n(643).toString())).current;return r.a.createElement(l.a,{id:"saladict-wordeditor-root",head:u,in:t,innerRootClassName:c()({isAnimate:a,darkMode:o}),timeout:a?l.c:0},()=>r.a.createElement(d.a,{...i}))};const p=Object(a.b)(e=>({show:e.wordEditor.isShow,darkMode:e.config.darkMode,withAnimation:e.config.animation,containerWidth:window.innerWidth-e.config.panelWidth-100,ctxTrans:e.config.ctxTrans,wordEditor:e.wordEditor}),e=>({onClose:()=>{e({type:"WORD_EDITOR_STATUS",payload:{word:null}})}}))(u);t.a=p},567:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return c}));var a=n(209),o=n(101),r=n(1);function i(e,t){return"Basic "+function(e){const t=globalThis;if("function"==typeof t.btoa)return t.btoa(unescape(encodeURIComponent(e)));if(t.Buffer)return t.Buffer.from(e,"utf8").toString("base64");throw new Error("Base64 encoding is not available in the current runtime.")}(`${e}:${t}`)}class c extends a.a{constructor(...e){super(...e),this.meta={},this.handleSyncAlarm=async e=>{if("webdav"!==e.name)return;try{await this.download({})}catch(e){console.error(e),Object(o.c)(c.id,"download")}const t=6e4*this.config.duration||9e5;await r.c.local.set({webdavInterval:Date.now()+t})}}static getDefaultConfig(){return{enable:!1,url:"",user:"",passwd:"",duration:15}}getAuthorizationHeader(e){return i(e.user,e.passwd)}async onStart(){if(this.config.enable)if(this.meta=await Object(o.a)(c.id)||this.meta,await browser.alarms.clear("webdav"),browser.alarms.onAlarm.addListener(this.handleSyncAlarm),"string"!=typeof this.config.url||this.config.url.endsWith("/")||(this.config.url+="/"),this.config.url){const e=+this.config.duration||15,t=Date.now();let n=+(await r.c.local.get("webdavInterval")).webdavInterval;(!n||n<t||t+6e4*e<n)&&(n=t+1e3),await r.c.local.set({webdavInterval:n}),browser.alarms.create("webdav",{when:n,periodInMinutes:e})}else await r.c.local.set({webdavInterval:0})}async checkDir(){let e,t="";try{const e=await fetch(this.config.url,{method:"PROPFIND",headers:{Authorization:this.getAuthorizationHeader(this.config),"Content-Type":'application/xml; charset="utf-8"',Depth:"1"}});if(!e.ok){if(401===e.status)throw new Error("unauthorized");throw new Error("Network error: "+e.status)}t=await e.text()}catch(e){throw new Error("network")}try{t&&(e=(new DOMParser).parseFromString(t,"text/xml"))}catch(e){throw new Error("parse")}if(!e)throw new Error("parse");const n=Array.from(e.querySelectorAll("response"));for(const e in n){const t=n[e].querySelector("href");if(t&&t.textContent&&t.textContent.endsWith("/Saladict/")){if(n[e].querySelector("resourcetype collection"))return!0;throw new Error("dir")}}return!1}async init(){const e=await this.checkDir();if(!e){if(!(await fetch(this.config.url+"Saladict",{method:"MKCOL",headers:{Authorization:this.getAuthorizationHeader(this.config)}})).ok)throw new Error("mkcol")}if(e){try{await this.download({testConfig:this.config,noCache:!0})}catch(e){return}throw new Error("exist")}}async add({force:e}){if(!this.config.url)return void 0;e||await this.download({});const t=await Object(o.b)();if(!t||t.length<=0)return;const n=Date.now();try{var a=JSON.stringify({timestamp:n,words:t})}catch(e){throw new Error("parse")}try{if(!(await fetch(this.config.url+"Saladict/notebook.json",{method:"PUT",headers:{Authorization:this.getAuthorizationHeader(this.config)},body:a})).ok)throw new Error("network")}catch(e){throw new Error("network")}await this.setMeta({timestamp:n,etag:""})}delete({force:e}){return this.add({force:e})}async download({testConfig:e,noCache:t}){const n=e||this.config;if(!n.url)return void 0;const a={Authorization:this.getAuthorizationHeader(n)};e||t||null==this.meta.etag||(a["If-None-Match"]=this.meta.etag,a["If-Modified-Since"]=this.meta.etag);try{var r=await fetch(n.url+(n.url.endsWith("/")?"":"/")+"Saladict/notebook.json",{method:"GET",headers:a});if(304===r.status)return;if(!r.ok)throw new Error}catch(e){throw new Error("network")}try{var i=await r.json()}catch(e){throw new Error("parse")}if(!Array.isArray(i.words)||i.words.some(e=>!e.date))throw new Error("format");if(!i.timestamp)throw new Error("timestamp");if(e)return;const c=this.meta;(!c.timestamp||i.timestamp>=c.timestamp)&&await this.setMeta({timestamp:i.timestamp,etag:r.headers.get("ETag")||c.etag||""}),!t&&c.timestamp&&i.timestamp<=c.timestamp||await Object(o.f)(i.words)}async destroy(){browser.alarms.onAlarm.removeListener(this.handleSyncAlarm),await browser.alarms.clear("webdav")}setMeta(e){return this.meta=e,Object(o.e)(c.id,e)}async getMeta(){const e=await Object(o.a)(c.id);this.meta=e||{}}}c.id="webdav"},578:function(e,t,n){var a=n(579);e.exports="string"==typeof a?a:a.toString()},579:function(e,t,n){var a=n(226),o=n(613),r=n(580);t=a(!1);var i=o(r);t.push([e.i,"button,h1,h2,h3,h4,li,ul{margin:0;padding:0}img{display:block;max-width:95%}p{margin:.5em 0}ul li{list-style-type:none}button{background:0 0;border:none}button:hover{outline:0}a{color:#f9690e;text-decoration:none}a:hover{text-decoration:underline}select{color:#666;border:1px solid rgba(133,133,133,.28);background:0 0}.saladict-Speaker{display:inline-block;width:1.1em;height:1.1em;text-decoration:none;margin:0 5px;padding:0;line-height:1;vertical-align:text-bottom;border:none;background:no-repeat left/cover url("+i+');-moz-user-select:none;user-select:none;cursor:pointer}.saladict-Speaker:hover{outline:0}.saladict-Speaker.isActive{animation:saladict-Speaker-playing 1s steps(6) infinite}@keyframes saladict-Speaker-playing{from{background-position-x:0}70%{background-position-x:100%}100%{background-position-x:100%}}.entryBox-Wrap{padding-top:.8em}.entryBox{position:relative;border:1px solid #c76e06;border-radius:5px;margin-bottom:1em;padding:1em .5em .5em .5em}.entryBox-Title{position:absolute;top:0;left:1em;transform:translateY(-50%);max-width:90%;overflow:hidden;padding:0 5px;white-space:nowrap;text-overflow:ellipsis;font-size:1.2em;background:var(--color-background)}.dictRoot{font-size:var(--panel-font-size);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-family:"Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei",sans-serif}.dictRoot select{display:block;box-sizing:border-box;width:100%;margin:0 0 .5em 0;padding:.6em 1.4em .5em .8em;border-radius:.5em;font-size:var(--panel-font-size);font-weight:700;line-height:1.3;-moz-appearance:none;-webkit-appearance:none;appearance:none;-moz-appearance:none;border:1px solid rgba(133,133,133,.28);box-shadow:0 1px 0 1px rgba(0,0,0,.04);color:var(--color-font-grey);background-color:var(--color-background);background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%235caf9e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.65em auto,100%}.dictRoot select::-ms-expand{display:none}.dictRoot select:hover{border-color:rgba(133,133,133,.48)}.dictRoot select:focus{border-color:rgba(59,153,252,.7);outline:0}.dictRoot select option{font-weight:400}.dictManualVerification{padding:12px;border:1px solid rgba(133,133,133,.28);border-radius:4px;background:var(--color-background);color:var(--color-font)}.dictManualVerification h2{margin:0 0 8px;font-size:1.1em}.dictManualVerification p{margin:0 0 10px;line-height:1.5}.dictManualVerification a{color:#f9690e;font-weight:700}',""]),e.exports=t},580:function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMzUwIDUwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAxMS41ODUgMTYuOTc2IEwgMy43MjggMTYuOTc2IEMgMi42MjkgMTYuOTc2IDEuNzQxIDE3Ljg2NCAxLjc0MSAxOC45NjMgTCAxLjc0MSAzMS4wMzkgQyAxLjc0MSAzMi4xMzQgMi42MjkgMzMuMDI0IDMuNzI4IDMzLjAyNCBMIDExLjU4NSAzMy4wMjQgQyAxMS45MzkgMzMuMDI0IDEyLjI4NyAzMy4xMTkgMTIuNTkyIDMzLjI5OSBMIDI1LjE4IDQ1LjAyIEMgMjYuNTA0IDQ1Ljc5OCAyOC4xNzQgNDQuODQ1IDI4LjE3NCA0My4zMDggTCAyOC4xNzQgNi42OTIgQyAyOC4xNzQgNS4xNTcgMjYuNTA0IDQuMjAxIDI1LjE4IDQuOTggTCAxMi41OTMgMTYuNyBDIDEyLjI4NyAxNi44NzkgMTEuOTQgMTYuOTc1IDExLjU4NSAxNi45NzUgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCA1MCwgMCkiPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAxMS41ODUgMTYuOTc2IEwgMy43MjggMTYuOTc2IEMgMi42MjkgMTYuOTc2IDEuNzQxIDE3Ljg2NCAxLjc0MSAxOC45NjMgTCAxLjc0MSAzMS4wMzkgQyAxLjc0MSAzMi4xMzQgMi42MjkgMzMuMDI0IDMuNzI4IDMzLjAyNCBMIDExLjU4NSAzMy4wMjQgQyAxMS45MzkgMzMuMDI0IDEyLjI4NyAzMy4xMTkgMTIuNTkyIDMzLjI5OSBMIDI1LjE4IDQ1LjAyIEMgMjYuNTA0IDQ1Ljc5OCAyOC4xNzQgNDQuODQ1IDI4LjE3NCA0My4zMDggTCAyOC4xNzQgNi42OTIgQyAyOC4xNzQgNS4xNTcgMjYuNTA0IDQuMjAxIDI1LjE4IDQuOTggTCAxMi41OTMgMTYuNyBDIDEyLjI4NyAxNi44NzkgMTEuOTQgMTYuOTc1IDExLjU4NSAxNi45NzUgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzMi4xMTcgMzUuMDU1IEMgMzEuODMzIDM1LjA1NSAzMS41NDkgMzQuOTQ2IDMxLjMzMyAzNC43MjkgQyAzMC44OTYgMzQuMjk1IDMwLjg5NiAzMy41OTEgMzEuMzMzIDMzLjE1OCBDIDM2LjEwNSAyOC4zODIgMzYuMTA1IDIwLjYxMiAzMS4zMzMgMTUuODM3IEMgMzAuODk2IDE1LjQwMyAzMC44OTYgMTQuNzAyIDMxLjMzMyAxNC4yNjUgQyAzMS43NjYgMTMuODMyIDMyLjQ2OCAxMy44MzIgMzIuOTAzIDE0LjI2NSBDIDM4LjU0NiAxOS45MDYgMzguNTQ2IDI5LjA4NiAzMi45MDMgMzQuNzI4IEMgMzIuNjg5IDM0Ljk0NSAzMi40MDMgMzUuMDU1IDMyLjExNyAzNS4wNTUgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAxMDAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzIuMTE3IDM1LjA1NSBDIDMxLjgzMyAzNS4wNTUgMzEuNTQ5IDM0Ljk0NiAzMS4zMzMgMzQuNzI5IEMgMzAuODk2IDM0LjI5NSAzMC44OTYgMzMuNTkxIDMxLjMzMyAzMy4xNTggQyAzNi4xMDUgMjguMzgyIDM2LjEwNSAyMC42MTIgMzEuMzMzIDE1LjgzNyBDIDMwLjg5NiAxNS40MDMgMzAuODk2IDE0LjcwMiAzMS4zMzMgMTQuMjY1IEMgMzEuNzY2IDEzLjgzMiAzMi40NjggMTMuODMyIDMyLjkwMyAxNC4yNjUgQyAzOC41NDYgMTkuOTA2IDM4LjU0NiAyOS4wODYgMzIuOTAzIDM0LjcyOCBDIDMyLjY4OSAzNC45NDUgMzIuNDAzIDM1LjA1NSAzMi4xMTcgMzUuMDU1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAxNTAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzIuMTE3IDM1LjA1NSBDIDMxLjgzMyAzNS4wNTUgMzEuNTQ5IDM0Ljk0NiAzMS4zMzMgMzQuNzI5IEMgMzAuODk2IDM0LjI5NSAzMC44OTYgMzMuNTkxIDMxLjMzMyAzMy4xNTggQyAzNi4xMDUgMjguMzgyIDM2LjEwNSAyMC42MTIgMzEuMzMzIDE1LjgzNyBDIDMwLjg5NiAxNS40MDMgMzAuODk2IDE0LjcwMiAzMS4zMzMgMTQuMjY1IEMgMzEuNzY2IDEzLjgzMiAzMi40NjggMTMuODMyIDMyLjkwMyAxNC4yNjUgQyAzOC41NDYgMTkuOTA2IDM4LjU0NiAyOS4wODYgMzIuOTAzIDM0LjcyOCBDIDMyLjY4OSAzNC45NDUgMzIuNDAzIDM1LjA1NSAzMi4xMTcgMzUuMDU1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzOS4zMTQgNDUuMDU3IEMgMzkuMDI4IDQ1LjA1NyAzOC43NDQgNDQuOTQ4IDM4LjUyOCA0NC43MyBDIDM4LjA5MyA0NC4yOTcgMzguMDkzIDQzLjU5NSAzOC41MjggNDMuMTYgQyA0My4zNjkgMzguMzIxIDQ2LjAzNSAzMS44OSA0Ni4wMzUgMjUuMDU2IEMgNDYuMDM1IDE4LjIyIDQzLjM3IDExLjc4OCAzOC41MjggNi45NDggQyAzOC4wOTMgNi41MTQgMzguMDkzIDUuODEyIDM4LjUyOCA1LjM3OCBDIDM4Ljk2MyA0Ljk0NCAzOS42NjQgNC45NDQgNDAuMSA1LjM3OCBDIDQ1LjM2MSAxMC42MzcgNDguMjYgMTcuNjI1IDQ4LjI2IDI1LjA1NiBDIDQ4LjI2IDMyLjQ4NCA0NS4zNjEgMzkuNDczIDQwLjEgNDQuNzMxIEMgMzkuODgzIDQ0Ljk0OSAzOS41OTkgNDUuMDU4IDM5LjMxNSA0NS4wNTggWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAyMDAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzOS4zMTQgNDUuMDU3IEMgMzkuMDI4IDQ1LjA1NyAzOC43NDQgNDQuOTQ4IDM4LjUyOCA0NC43MyBDIDM4LjA5MyA0NC4yOTcgMzguMDkzIDQzLjU5NSAzOC41MjggNDMuMTYgQyA0My4zNjkgMzguMzIxIDQ2LjAzNSAzMS44OSA0Ni4wMzUgMjUuMDU2IEMgNDYuMDM1IDE4LjIyIDQzLjM3IDExLjc4OCAzOC41MjggNi45NDggQyAzOC4wOTMgNi41MTQgMzguMDkzIDUuODEyIDM4LjUyOCA1LjM3OCBDIDM4Ljk2MyA0Ljk0NCAzOS42NjQgNC45NDQgNDAuMSA1LjM3OCBDIDQ1LjM2MSAxMC42MzcgNDguMjYgMTcuNjI1IDQ4LjI2IDI1LjA1NiBDIDQ4LjI2IDMyLjQ4NCA0NS4zNjEgMzkuNDczIDQwLjEgNDQuNzMxIEMgMzkuODgzIDQ0Ljk0OSAzOS41OTkgNDUuMDU4IDM5LjMxNSA0NS4wNTggWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAyNTAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzkuMzE0IDQ1LjA1NyBDIDM5LjAyOCA0NS4wNTcgMzguNzQ0IDQ0Ljk0OCAzOC41MjggNDQuNzMgQyAzOC4wOTMgNDQuMjk3IDM4LjA5MyA0My41OTUgMzguNTI4IDQzLjE2IEMgNDMuMzY5IDM4LjMyMSA0Ni4wMzUgMzEuODkgNDYuMDM1IDI1LjA1NiBDIDQ2LjAzNSAxOC4yMiA0My4zNyAxMS43ODggMzguNTI4IDYuOTQ4IEMgMzguMDkzIDYuNTE0IDM4LjA5MyA1LjgxMiAzOC41MjggNS4zNzggQyAzOC45NjMgNC45NDQgMzkuNjY0IDQuOTQ0IDQwLjEgNS4zNzggQyA0NS4zNjEgMTAuNjM3IDQ4LjI2IDE3LjYyNSA0OC4yNiAyNS4wNTYgQyA0OC4yNiAzMi40ODQgNDUuMzYxIDM5LjQ3MyA0MC4xIDQ0LjczMSBDIDM5Ljg4MyA0NC45NDkgMzkuNTk5IDQ1LjA1OCAzOS4zMTUgNDUuMDU4IFoiIHN0eWxlPSIiLz4KICA8L2c+CiAgPGcgdHJhbnNmb3JtPSJtYXRyaXgoMSwgMCwgMCwgMSwgMzAwLCAwKSI+CiAgICA8cGF0aCBmaWxsPSIjZjk2OTBlIiBkPSJNIDExLjU4NSAxNi45NzYgTCAzLjcyOCAxNi45NzYgQyAyLjYyOSAxNi45NzYgMS43NDEgMTcuODY0IDEuNzQxIDE4Ljk2MyBMIDEuNzQxIDMxLjAzOSBDIDEuNzQxIDMyLjEzNCAyLjYyOSAzMy4wMjQgMy43MjggMzMuMDI0IEwgMTEuNTg1IDMzLjAyNCBDIDExLjkzOSAzMy4wMjQgMTIuMjg3IDMzLjExOSAxMi41OTIgMzMuMjk5IEwgMjUuMTggNDUuMDIgQyAyNi41MDQgNDUuNzk4IDI4LjE3NCA0NC44NDUgMjguMTc0IDQzLjMwOCBMIDI4LjE3NCA2LjY5MiBDIDI4LjE3NCA1LjE1NyAyNi41MDQgNC4yMDEgMjUuMTggNC45OCBMIDEyLjU5MyAxNi43IEMgMTIuMjg3IDE2Ljg3OSAxMS45NCAxNi45NzUgMTEuNTg1IDE2Ljk3NSBaIiBzdHlsZT0iIi8+CiAgPC9nPgo8L3N2Zz4="},597:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c})),n.d(t,"moedictSearch",(function(){return s}));var a=n(3),o=n(47),r=n.n(o);const i=async e=>"https://www.moedict.tw/"+(await Object(a.c)())(e),c=(e,t,n,a)=>s("a",e,t,n.dicts.all.guoyu.options);async function s(e,t,n,o){const i=await Object(a.c)(),{data:c}=await r.a.get(`https://www.moedict.tw/${e}/${encodeURIComponent(i(t.replace(/\s+/g,"")))}.json`).catch(a.i);if(!c||!c.h)return Object(a.j)();o.trans||(c.translation=void 0);const s={result:c};for(const e of c.h)e["="]&&(e["="]=`https://203146b5091e8f0aafda-15d41c68795720c6e932125f5ace0c70.ssl.cf1.rackcdn.com/${e["="]}.ogg`),s.audio||(s.audio={py:e["="]});return s}},603:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var a=n(0),o=n.n(a),r=n(23),i=n(21),c=n.n(i),s=n(71),l=n(555),d=n(554),u=n(556),p=n(9),h=n(42),m=n(85),f=n(761),g=n.n(f),b=n(762),y=n.n(b),w=n(763),x=n.n(w),v=n(80);const E=e=>{const{langCode:t,analytics:n,darkMode:i}=Object(s.c)(e=>{const{langCode:t,analytics:n,darkMode:a}=e.config;return{langCode:t,analytics:n,darkMode:a}},r.c),c=Object(a.useMemo)(()=>(e=>{switch(e){case"zh-CN":return g.a;case"zh-TW":return y.a;default:return x.a}})(t),[t]),l=Object(a.useMemo)(()=>({backgroundColor:i?"#000":"#f0f2f5"}),[i]);return Object(a.useEffect)(()=>{n&&e.gaPath&&Object(v.b)(e.gaPath)},[n,e.gaPath]),o.a.createElement(m.a,{locale:c},o.a.createElement("div",{style:l},e.render()))};n(801);const O=async(e,t)=>{const n=await Object(s.a)();let{darkMode:a}=n.getState().config;await _(a),n.subscribe(()=>{const{config:e}=n.getState();e.darkMode!==a&&(a=e.darkMode,_(a))}),c.a.render(o.a.createElement(p.b,null,o.a.createElement(r.a,{store:n},o.a.createElement(E,{gaPath:t,render:e}),o.a.createElement(l.a,null),o.a.createElement(d.a,null),o.a.createElement(u.a,null))),document.getElementById("root"))};async function _(e){const t=document.querySelector("#root");await new Promise(n=>{const a="./assets/"+`antd${e?".dark":""}.min.css`;let o=document.head.querySelector("link#saladict-antd-theme");if(o&&o.getAttribute("href")===a)return void n();t.classList.toggle("saladict-theme-dark",e),t.classList.toggle("saladict-theme-bright",!e),t.classList.toggle("saladict-theme-loading",!0),o?o.setAttribute("href",a):(o=document.createElement("link"),o.setAttribute("id","saladict-antd-theme"),o.setAttribute("rel","stylesheet"),o.setAttribute("href",a),document.head.insertBefore(o,document.head.firstChild));let r=!1;o.onreadystatechange=function(){"complete"!==this.readyState&&"loaded"!==this.readyState||(!1===r&&n(),r=!0)},o.onload=function(){!1===r&&n(),r=!0};const i=document.createElement("img");i.onerror=function(){!1===r&&n(),r=!0},i.src=a}),await Object(h.d)(500),t.classList.toggle("saladict-theme-loaded",!0),t.classList.toggle("saladict-theme-loading",!1)}},607:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return u}));var a=n(47),o=n.n(a),r=n(601),i=n.n(r),c=n(86),s=n(209),l=n(101),d=n(1);class u extends s.a{constructor(...e){super(...e),this.noteFileds=void 0,this.handleMessage=e=>{switch(e.type){case"ANKI_CONNECT_FIND_WORD":return this.findNote(e.payload).catch(()=>"");case"ANKI_CONNECT_UPDATE_WORD":return this.updateWord(e.payload.cardId,e.payload.word).catch(e=>Promise.reject(e))}}}static getDefaultConfig(){return{enable:!1,host:"127.0.0.1",port:"8765",key:null,deckName:"Saladict",noteType:"Saladict Word",tags:"",escapeContext:!0,escapeTrans:!0,escapeNote:!0,syncServer:!1}}async init(){if(!await this.isServerUp())throw new Error("server");const e=await this.request("deckNames");if(!(null==e?void 0:e.includes(this.config.deckName)))throw new Error("deck");const t=await this.request("modelNames");if(!(null==t?void 0:t.includes(this.config.noteType)))throw new Error("notetype")}onStart(){d.a.addListener(this.handleMessage)}async destroy(){d.a.removeListener(this.handleMessage)}async findNote(e){this.noteFileds||(this.noteFileds=await this.getNotefields());try{return(await this.request("findNotes",{query:`deck:${this.config.deckName} ${this.noteFileds[0]}:${e}`}))[0]}catch(e){!1}}async add({words:e,force:t}){if(!await this.isServerUp())throw new Error("server");if(t&&(e=await Object(l.b)()),e&&!(e.length<=0)&&(await Promise.all(e.map(async e=>{if(!await this.findNote(e.date))try{await this.addWord(e)}catch(e){throw new Error("add")}})),this.config.syncServer))try{await this.request("sync")}catch(e){!1}}async addWord(e){return this.request("addNote",{note:{deckName:this.config.deckName,modelName:this.config.noteType,options:{allowDuplicate:!1,duplicateScope:"deck"},tags:this.extractTags(),fields:await this.wordToFields(e)}})}async updateWord(e,t){return this.request("updateNoteFields",{note:{id:e,fields:await this.wordToFields(t)}})}async addDeck(){return this.request("createDeck",{deck:this.config.deckName})}async addNoteType(){this.noteFileds=["Date","Text","Translation","Context","ContextCloze","Note","Title","Url","Favicon","Audio"],await this.request("createModel",{modelName:this.config.noteType,inOrderFields:this.noteFileds,css:".card {\n font-family: arial;\n font-size: 20px;\n text-align: center;\n color: #333;\n background-color: white;\n}\n\na {\n color: #5caf9e;\n}\n\ninput {\n border: 1px solid #eee;\n}\n\nsection {\n margin: 1em 0;\n}\n\n.trans {\n border: 1px solid #eee;\n padding: 0.5em;\n}\n\n.trans_title {\n display: block;\n font-size: 0.9em;\n font-weight: bold;\n}\n\n.trans_content {\n margin-bottom: 0.5em;\n}\n\n.cloze {\n font-weight: bold;\n color: #f9690e;\n}\n\n.tsource {\n position: relative;\n font-size: .8em;\n}\n\n.tsource img {\n height: .7em;\n}\n\n.tsource a {\n text-decoration: none;\n}\n\n.typeGood {\n color: #fff;\n background: #1EBC61;\n}\n\n.typeBad {\n color: #fff;\n background: #F75C4C;\n}\n\n.typeMissed {\n color: #fff;\n background: #7C8A99;\n}\n\n.favicon {\n display: inline-block;\n width: 1em;\n height: 1em;\n background: center/cover no-repeat;\n}\n",cardTemplates:[{Name:"Saladict Cloze",Front:p(!0,this.noteFileds),Back:p(!1,this.noteFileds)}]}),this.noteFileds=await this.getNotefields(),await this.request("updateModelTemplates",{model:{name:this.config.noteType,templates:{"Saladict Cloze":{Front:p(!0,this.noteFileds),Back:p(!1,this.noteFileds)}}}})}async request(e,t){const{data:n}=await o()({method:"post",url:`http://${this.config.host}:${this.config.port}`,data:{key:this.config.key||null,version:6,action:e,params:t||{}}});if(!n||!Object.prototype.hasOwnProperty.call(n,"result"))throw new Error("Deprecated Anki Connect version");if(n.error)throw new Error(n.error);return n.result}async wordToFields(e){return this.noteFileds||(this.noteFileds=await this.getNotefields()),{[this.noteFileds[0]]:""+e.date,[this.noteFileds[1]]:e.text||"",[this.noteFileds[2]]:this.parseTrans(e.trans,this.config.escapeTrans),[this.noteFileds[3]]:this.multiline(e.context,this.config.escapeContext),[this.noteFileds[4]]:this.multiline(e.context.split(e.text).join(`{{c1::${e.text}}}`),this.config.escapeContext)||`{{c1::${e.text}}}`,[this.noteFileds[5]]:this.multiline(e.note,this.config.escapeNote),[this.noteFileds[6]]:e.title||"",[this.noteFileds[7]]:e.url||"",[this.noteFileds[8]]:e.favicon||"",[this.noteFileds[9]]:""}}async getNotefields(){const e=await this.request("modelFieldNames",{modelName:this.config.noteType});return(null==e?void 0:e.includes("Date."))?["Date.","Text.","Translation.","Context.","ContextCloze.","Note.","Title.","Url.","Favicon.","Audio."]:(null==e?void 0:e.includes("日期"))?["日期","文字","Translation","Context","ContextCloze","笔记","Title","Url","Favicon","Audio"]:["Date","Text","Translation","Context","ContextCloze","Note","Title","Url","Favicon","Audio"]}multiline(e,t){return(e=e.trim())?(t&&(e=i()(e)),e.trim().replace(/\n/g,"<br/>")):""}parseTrans(e,t){if(!(e=e.trim()))return"";const n=Object(c.b)(e),a=Object.keys(n);if(a.length<=0)return this.multiline(e,t);const o=a.map(e=>`<span class="trans_title">${e}</span><div class="trans_content">${n[e]}</div>`).join("");return e.split(/\[:: \w+ ::\](?:[\s\S]+?)(?:-{15})/).map(e=>this.multiline(e,t)).join(`<div class="trans">${o}</div>`)}extractTags(){return this.config.tags.split(/,|,/).map(e=>e.trim()).filter(Boolean)}async isServerUp(){try{return null!=await this.request("version")}catch(e){return!1}}}function p(e,t){return`{{#${t[4]}}}\n<section>{{cloze:${t[4]}}}</section>\n<section>{{type:cloze:${t[4]}}}</section>\n{{#${t[2]}}}\n<section>{{${t[2]}}}</section>\n{{/${t[2]}}}\n{{/${t[4]}}}\n\n{{^${t[4]}}}\n<h1>{{${t[1]}}}</h1>\n{{#${t[2]}}}\n<section>{{${t[2]}}}</section>\n{{/${t[2]}}}\n{{/${t[4]}}}\n\n{{#${t[5]}}}\n<section>{{${(e?"hint:":"")+t[5]}}}</section>\n{{/${t[5]}}}\n\n{{#${t[6]}}}\n<section class="tsource">\n<hr />\n{{#${t[8]}}}\n<span class="favicon" style="background-image:url({{${t[8]}}})"></span>\n{{/${t[8]}}}\n<a href="{{${t[7]}}}">{{${t[6]}}}</a>\n</section>\n{{/${t[6]}}}\n`}u.id="ankiconnect"},608:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return c}));var a=n(209),o=n(101),r=n(47),i=n.n(r);class c extends a.a{static getDefaultConfig(){return{enable:!1,token:"",syncAll:!1}}async init(){const e=await this.getWordbooks();if(0===e.length||!e)throw new Error("no_wordbook")}async add(e){await this.addWordOrPatch(e)}async addWordOrPatch({words:e,force:t}){if(!this.config.enable)return 0;if(t&&(e=await Object(o.b)()),!e||e.length<=0)return 0;const n=t?e.map(e=>e.text):e[0].text;await this.requestAddWords(n)}async getWordbooks(){const e=await i()({method:"get",url:"https://api.frdic.com/api/open/v1/studylist/category",params:{language:"en"},headers:{Authorization:this.config.token}}).catch(e=>{throw e.response&&401===e.response.status?new Error("illegal_token"):new Error("network")});if(!(null==e?void 0:e.data))throw new Error("network");const{data:t}=e;if(!t||!Object.prototype.hasOwnProperty.call(t,"data"))throw new Error("network");return t.data}async requestAddWords(e){return await i()({method:"post",url:"https://api.frdic.com/api/open/v1/studylist/words",data:{id:"0",language:"en",words:"string"==typeof e?[e]:e},headers:{Authorization:this.config.token}}).catch(e=>{throw e.response&&401===e.response.status?new Error("illegal_token"):new Error("network")})}}c.id="eudic"},609:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return l}));var a=n(209),o=n(101),r=n(1),i=n(42),c=n(2),s=n(274);class l extends a.a{static getDefaultConfig(){return{enable:!1}}static openLogin(){return Object(r.b)("https://www.shanbay.com/web/account/login")}async init(){if(!await this.isLogin())throw new Error("login")}async add(e){await this.addInternal(e)}async addInternal({words:e,force:t}){if(!this.config.enable)return 0;if(!await this.isLogin())return this.notifyLogin(),0;if(t&&(e=await Object(o.b)()),!e||e.length<=0)return 0;let n=0;for(let t=0;t<e.length;t++){try{await this.addWord(e[t].text)}catch(a){if("word"!==a.message)throw a;n+=1,Object(o.c)(l.id,"word",`「${e[t].text}」`)}(t+1)%50==0?await Object(i.d)(9e5):await Object(i.d)(500)}return n}async addWord(e){let t,n;try{const n="https://apiv3.shanbay.com/abc/words/senses?vocabulary_content="+encodeURIComponent(e);t=await fetch(n).then(e=>e.json())}catch(e){throw new Error("network")}if(!t||!t.id)throw new Error("word");try{n=await fetch("https://apiv3.shanbay.com/wordscollection/words",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vocab_id:t.id,business_id:6})}).then(e=>e.json())}catch(e){throw new Error("network")}if(!n||!n.created_at)throw new Error("word")}async isLogin(){return Boolean(await browser.cookies.get({url:"http://www.shanbay.com",name:"auth_token"}))}async notifyLogin(){const{i18n:e}=await s.a.getInstance();if(await e.loadNamespaces("sync"),browser.notifications){browser.notifications.onClicked.addListener(d),browser.notifications.onClosed.removeListener(u),browser.notifications.onButtonClicked&&browser.notifications.onButtonClicked.addListener(d);const t={type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict "+e.t("sync:shanbay.title"),message:e.t("sync:shanbay.error.login"),eventTime:Date.now()+1e4,priority:2};c.d||(t.buttons=[{title:e.t("sync:shanbay.open")}]),browser.notifications.create("shanbay-login",t)}}}function d(e){"shanbay-login"===e&&(l.openLogin(),u(e))}function u(e){"shanbay-login"===e&&browser.notifications&&(browser.notifications.onClicked.removeListener(d),browser.notifications.onClosed.removeListener(u),browser.notifications.onButtonClicked&&browser.notifications.onButtonClicked.removeListener(d))}l.id="shanbay"},610:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),o=n.n(a),r=n(1366);n(1232);const i=e=>{const{suffix:t,...n}=e;return o.a.createElement("span",{className:"input-number-group-wrapper"},o.a.createElement("span",{className:"input-number-group"},o.a.createElement(r.a,{...n}),t&&o.a.createElement("span",{className:"input-number-group-addon"},t)))}},633:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(145),o=n.n(a),r=n(0),i=n.n(r),c=n(362),s=n(256),l=n(183),d=n(9),u=n(103),p=n(211),h=n(225),m=n(193);const f=e=>{const{visible:t,title:n,zIndex:a,onClose:f,...g}=e,{t:b}=Object(d.d)("options"),y=Object(s.a)(m.a,"idle"),w=Object(h.b)(),x=Object(r.useRef)(null);return Object(c.a)(()=>{t&&"idle"===y&&f()},[y]),i.a.createElement(l.a,{visible:t,title:n,zIndex:a,width:600,destroyOnClose:!0,onOk:()=>{x.current&&x.current.submit()},onCancel:()=>{w.value?l.a.confirm({title:b("unsave_confirm"),icon:i.a.createElement(o.a,null),okType:"danger",onOk:()=>{Object(h.a)(!1),f()}}):f()}},i.a.createElement(u.a,{...p.b,hideFooter:!0,...g,ref:x}))}},638:function(e,t,n){var a=n(639);e.exports="string"==typeof a?a:a.toString()},639:function(e,t,n){(t=n(226)(!1)).push([e.i,".saladbowl{position:fixed;z-index:2147483647;top:0;left:0;width:30px;height:30px;-moz-user-select:none;user-select:none;cursor:pointer}.isAnimate .saladbowl{will-change:transform;transition:transform .3s ease-out}.isAnimate .saladbowl.enableHover:hover .saladbowl-leaf{animation:saladbowl-leaf-shake .7s infinite linear}.isAnimate .saladbowl.enableHover:hover .saladbowl-orange{transform-origin:301.8px 187.4px;animation:saladbowl-orange-spin .7s infinite linear}.isAnimate .saladbowl.enableHover:hover .saladbowl-tomato{transform-origin:297.8px 126.4px;animation:saladbowl-tomato-shake .7s infinite linear}.saladbowl,.saladbowl>svg{background-color:transparent!important}.isAnimate .saladbowl-enter-active>svg{animation:saladbowl-jelly 1s linear}.isAnimate .saladbowl-exit{opacity:1}.isAnimate .saladbowl-exit-active{opacity:0;transition:opacity .1s}.saladbowl-exit-done{display:none}@keyframes saladbowl-jelly{0%{transform:matrix3d(.5,0,0,0,0,.5,0,0,0,0,1,0,0,0,0,1)}3.40%{transform:matrix3d(.658,0,0,0,0,.703,0,0,0,0,1,0,0,0,0,1)}4.70%{transform:matrix3d(.725,0,0,0,0,.8,0,0,0,0,1,0,0,0,0,1)}6.81%{transform:matrix3d(.83,0,0,0,0,.946,0,0,0,0,1,0,0,0,0,1)}9.41%{transform:matrix3d(.942,0,0,0,0,1.084,0,0,0,0,1,0,0,0,0,1)}10.21%{transform:matrix3d(.971,0,0,0,0,1.113,0,0,0,0,1,0,0,0,0,1)}13.61%{transform:matrix3d(1.062,0,0,0,0,1.166,0,0,0,0,1,0,0,0,0,1)}14.11%{transform:matrix3d(1.07,0,0,0,0,1.165,0,0,0,0,1,0,0,0,0,1)}17.52%{transform:matrix3d(1.104,0,0,0,0,1.12,0,0,0,0,1,0,0,0,0,1)}18.72%{transform:matrix3d(1.106,0,0,0,0,1.094,0,0,0,0,1,0,0,0,0,1)}21.32%{transform:matrix3d(1.098,0,0,0,0,1.035,0,0,0,0,1,0,0,0,0,1)}24.32%{transform:matrix3d(1.075,0,0,0,0,.98,0,0,0,0,1,0,0,0,0,1)}25.23%{transform:matrix3d(1.067,0,0,0,0,.969,0,0,0,0,1,0,0,0,0,1)}29.03%{transform:matrix3d(1.031,0,0,0,0,.948,0,0,0,0,1,0,0,0,0,1)}29.93%{transform:matrix3d(1.024,0,0,0,0,.949,0,0,0,0,1,0,0,0,0,1)}35.54%{transform:matrix3d(.99,0,0,0,0,.981,0,0,0,0,1,0,0,0,0,1)}36.74%{transform:matrix3d(.986,0,0,0,0,.989,0,0,0,0,1,0,0,0,0,1)}41.04%{transform:matrix3d(.98,0,0,0,0,1.011,0,0,0,0,1,0,0,0,0,1)}44.44%{transform:matrix3d(.983,0,0,0,0,1.016,0,0,0,0,1,0,0,0,0,1)}52.15%{transform:matrix3d(.996,0,0,0,0,1.003,0,0,0,0,1,0,0,0,0,1)}59.86%{transform:matrix3d(1.003,0,0,0,0,.995,0,0,0,0,1,0,0,0,0,1)}63.26%{transform:matrix3d(1.004,0,0,0,0,.996,0,0,0,0,1,0,0,0,0,1)}75.28%{transform:matrix3d(1.001,0,0,0,0,1.002,0,0,0,0,1,0,0,0,0,1)}85.49%{transform:matrix3d(.999,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}90.69%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}100%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}}@keyframes saladbowl-leaf-shake{0%{transform:translate(2px,1px) rotate(0)}10%{transform:translate(-1px,-2px) rotate(1deg)}20%{transform:translate(-2px,0) rotate(1deg)}30%{transform:translate(0,2px) rotate(0)}40%{transform:translate(1px,-1px) rotate(1deg)}50%{transform:translate(-1px,2px) rotate(1deg)}60%{transform:translate(-2px,1px) rotate(0)}70%{transform:translate(2px,1px) rotate(1deg)}80%{transform:translate(-1px,-1px) rotate(1deg)}90%{transform:translate(2px,2px) rotate(0)}100%{transform:translate(1px,-2px) rotate(1deg)}}@keyframes saladbowl-orange-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes saladbowl-tomato-shake{0%{transform:rotate(10deg)}30%{transform:rotate(0)}60%{transform:rotate(10deg)}90%{transform:rotate(0)}100%{transform:rotate(5deg)}}",""]),e.exports=t},641:function(e,t,n){var a=n(642);e.exports="string"==typeof a?a:a.toString()},642:function(e,t,n){(t=n(226)(!1)).push([e.i,'.shadowPortal-appear,.shadowPortal-enter{opacity:0}.shadowPortal-appear-active,.shadowPortal-enter-active{opacity:1;transition:opacity .4s}.shadowPortal-exit{opacity:1}.shadowPortal-exit-active{opacity:0;transition:opacity .1s}.saladict-theme{background-color:#fff;color:#24292f;--color-brand:#2f9d8a;--color-background:#ffffff;--color-rgb-background:255,255,255;--color-font:#24292f;--color-font-grey:#5d6670;--color-divider:#d9dee3;--color-surface:#f6f8fa;--color-surface-active:#eaeef2;--color-link:#286aa8}.darkMode .saladict-theme{background-color:#282c30;color:#e3e0da;--color-brand:#2b9f8d;--color-background:#282c30;--color-rgb-background:40,44,48;--color-font:#e3e0da;--color-font-grey:#b8b3aa;--color-divider:#555b61;--color-surface:#33383d;--color-surface-active:#3d444a;--color-link:#8eb7e6}.dictPanel-FloatBox-Container{position:relative}.dictPanel-Root{display:flex;flex-direction:column;box-sizing:border-box;position:fixed;z-index:2147483647;top:0;left:0;overflow:hidden;text-align:initial;border-radius:6px;background-color:inherit;box-shadow:rgba(0,0,0,.8) 0 4px 23px -6px}.dictPanel-Head{flex-shrink:0}.dictPanel-Body{flex:1;overflow-x:hidden;overflow-y:scroll;-webkit-overflow-scrolling:touch}.fancy-scrollbar{overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;scrollbar-width:auto}.fancy-scrollbar::-webkit-scrollbar{height:8px;width:8px}.fancy-scrollbar::-webkit-scrollbar-track{background-color:transparent}.fancy-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(138,138,138,.25);border-radius:4px}.fancy-scrollbar::-webkit-scrollbar-thumb:hover{background-color:rgba(138,138,138,.35)}.fancy-scrollbar::-webkit-scrollbar-thumb:active{background-color:rgba(138,138,138,.6)}.fancy-scrollbar::-webkit-scrollbar-thumb:vertical{min-height:50px}.fancy-scrollbar::-webkit-scrollbar-thumb:horizontal{min-width:50px}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:0 0;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn-dir:focus,.menuBar-Btn-dir:hover,.menuBar-Btn:focus,.menuBar-Btn:hover{outline:0;background:rgba(0,0,0,.05)}.menuBar-Btn-dir:disabled svg,.menuBar-Btn:disabled svg{fill:#9accc1}.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn-dir:disabled:hover,.menuBar-Btn:disabled:hover{cursor:unset;background:0 0}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * .7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:focus,.floatBox-Item:hover{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em!important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:400}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;color:var(--color-font);background:0 0;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:focus,.floatBox-Btn:hover{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(19px,0)}}.menuBar-SuggestsEntry{margin-right:1.5em;color:#f9690e}.menuBar-SuggestsExplain{color:var(--color-font)}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:0 0;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn-dir:focus,.menuBar-Btn-dir:hover,.menuBar-Btn:focus,.menuBar-Btn:hover{outline:0;background:rgba(0,0,0,.05)}.menuBar-Btn-dir:disabled svg,.menuBar-Btn:disabled svg{fill:#9accc1}.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn-dir:disabled:hover,.menuBar-Btn:disabled:hover{cursor:unset;background:0 0}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-SearchBox_Wrap{flex:2;position:relative}.menuBar-SearchBox_Wrap.isExpand{flex:7}.isAnimate .menuBar-SearchBox_Wrap{transition:flex .6s}.menuBar-SearchBox{width:100%;box-sizing:border-box;padding:0 5px;border:0 none;outline:0 none;color:#fff;background-color:rgba(225,225,225,.1)}.menuBar-SearchBox_Suggests{position:absolute;left:0;top:30px;z-index:1000}.isAnimate .csst-menuBar-SearchBox_Suggests-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-enter-active,.isAnimate .csst-menuBar-SearchBox_Suggests-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-exit-active{opacity:0;transition:opacity .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * .7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:focus,.floatBox-Item:hover{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em!important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:400}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;color:var(--color-font);background:0 0;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:focus,.floatBox-Btn:hover{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(19px,0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:0 0;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn-dir:focus,.menuBar-Btn-dir:hover,.menuBar-Btn:focus,.menuBar-Btn:hover{outline:0;background:rgba(0,0,0,.05)}.menuBar-Btn-dir:disabled svg,.menuBar-Btn:disabled svg{fill:#9accc1}.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn-dir:disabled:hover,.menuBar-Btn:disabled:hover{cursor:unset;background:0 0}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-ProfileItem{position:relative;padding-left:10px;color:var(--color-font)}.menuBar-ProfileItem.isActive::before{content:"";position:absolute;top:50%;transform:translateY(-55%);left:-5px;width:0;height:0;border-left:10px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}.menuBar{display:flex;align-items:center;position:relative;height:30px;padding:0 3px;font-size:14px;background-color:var(--color-brand)}.menuBar-DragArea{flex:3;align-self:stretch;-moz-user-select:none;user-select:none;touch-action:none;cursor:move}.mtaBox-TextArea-Wrap{max-height:var(--panel-max-height);position:relative;overflow:hidden;height:0}.isAnimate .mtaBox-TextArea-Wrap{transition:height .4s}.isAnimate .mtaBox-TextArea-Wrap.isTyping{transition:height 0s}.mtaBox-TextArea{display:block;width:100%;max-height:var(--panel-max-height);box-sizing:border-box;padding:5px 5px 10px;border:none;color:var(--color-font);font-size:var(--panel-font-size);background:0 0}.mtaBox-TextArea-Wrap-appear .mtaBox-TextArea,.mtaBox-TextArea-Wrap-appear-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit-active .mtaBox-TextArea{position:absolute;bottom:0}.mtaBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;padding:0;border:none;border-top:1px solid var(--color-divider);border-bottom:1px dashed var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.mtaBox-DrawerBtn:focus{outline:0;border:1px solid var(--color-font)!important}.mtaBox-DrawerBtn_Arrow{fill:var(--color-font)}.mtaBox-DrawerBtn_Arrow.isExpand{transform:rotate(180deg)}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * .7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:focus,.floatBox-Item:hover{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em!important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:400}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;color:var(--color-font);background:0 0;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:focus,.floatBox-Btn:hover{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(19px,0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.dictItemHead{display:flex;box-sizing:border-box;align-items:flex-start;position:sticky;top:0;z-index:100;height:20px;padding-right:2px;border-top:1px var(--color-divider) dashed;background:var(--color-background)}.dictItemHead-Logo{width:20px;height:20px;margin-top:-1px;-moz-user-select:none;user-select:none}.dictItemHead-Title{margin:0;padding:0 3px;line-height:20px;font-size:12px;font-weight:400}.dictItemHead-Title a{color:var(--color-font);text-decoration:none}.dictItemHead-Menus_Btn{width:18px;height:18px;margin:1px 0 0;padding:0;font-size:0;border:none;border-radius:3px;outline:0;background-color:transparent;opacity:.7;transition:background-color .4s;cursor:pointer}.dictItemHead-Menus_Btn svg{fill:var(--color-font)}.dictItemHead-Menus_Btn:active,.dictItemHead-Menus_Btn:focus,.dictItemHead-Menus_Btn:hover{background-color:var(--color-divider)}.darkMode .dictItemHead-Menus_Btn:active,.darkMode .dictItemHead-Menus_Btn:focus,.darkMode .dictItemHead-Menus_Btn:hover{background-color:var(--color-divider)}.dictItemHead-EmptyArea{flex:1;align-self:stretch}.dictItemHead-FoldArrowBtn{width:19px;height:19px;overflow:hidden;background:0 0;border:none;padding:0;cursor:pointer;-moz-user-select:none;user-select:none}.dictItemHead-FoldArrowBtn:hover{outline:0}.dictItemHead-FoldArrow{box-sizing:border-box;fill:var(--color-font);width:18px;height:18px;padding:3px;transform-origin:center}.isAnimate .dictItemHead-FoldArrow{transition:transform .4s}.isUnfold .dictItemHead-FoldArrow{transform:rotate(-90deg)}.dictItemHead-Loader{display:flex;align-items:center;width:54px;height:20px}.dictItemHead-Loader>div{width:8px;height:8px;margin:2px;background:#f9690e;border-radius:100%}.isAnimate .dictItemHead-Loader>div{animation:dictItemHead-Loader 1.5s infinite ease-in-out}.isAnimate .dictItemHead-Loader>div:nth-child(5){animation-delay:0s}.isAnimate .dictItemHead-Loader>div:nth-child(4){animation-delay:-.1s}.isAnimate .dictItemHead-Loader>div:nth-child(3){animation-delay:-.2s}.isAnimate .dictItemHead-Loader>div:nth-child(2){animation-delay:-.3s}.isAnimate .dictItemHead-Loader>div:nth-child(1){animation-delay:-.4s}@keyframes dictItemHead-Loader{0%,100%,30%,70%{transform:scale(0)}50%{transform:scale(1)}}.dictItem{position:relative;background:var(--color-background)}.dictItem-Body{overflow:hidden;position:relative;padding:0 10px;font-size:13px;line-height:1.6;color:var(--color-font)}.isAnimate .dictItem-Body{transition:height .4s,opacity .4s}.dictItem-BodyMesure{overflow:hidden;opacity:0;position:relative}.dictItem-BodyMesure>:first-child{margin-top:10px!important}.dictItem-BodyMesure>:last-child{margin-bottom:10px!important}.isAnimate .dictItem-BodyMesure{transition:opacity .4s}.isUnfold .dictItem-BodyMesure{opacity:1}.dictItem-Loader{align-self:center;width:120px;height:10px;-moz-user-select:none;user-select:none}.dictItem-Loader_Ball{width:10px;height:10px;fill:orange}.dictItem-Loader_Ball:nth-child(2){transform:translateX(15px)}.dictItem-Loader_Ball:nth-child(3){transform:translateX(30px)}.dictItem-Loader_Ball:nth-child(4){transform:translateX(45px)}.dictItem-Loader_Ball:nth-child(5){transform:translateX(60px)}.isAnimate .dictItem-Loader_Ball{animation:dictItem-Loader-shift 2s linear infinite}.isAnimate .dictItem-Loader_Ball:nth-child(2){animation-delay:-.4s}.isAnimate .dictItem-Loader_Ball:nth-child(3){animation-delay:-.8s}.isAnimate .dictItem-Loader_Ball:nth-child(4){animation-delay:-1.2s}.isAnimate .dictItem-Loader_Ball:nth-child(5){animation-delay:-1.6s}.dictItem-FoldMask{position:absolute;left:0;bottom:0;width:100%;height:50px;padding:0;border:none;background:linear-gradient(rgba(var(--color-rgb-background),0) 40%,rgba(var(--color-rgb-background),.5) 60%,var(--color-background) 100%);opacity:.6;cursor:pointer;-moz-user-select:none;user-select:none}.dictItem-FoldMask:hover{outline:0;opacity:1}.isAnimate .dictItem-FoldMask{transition:opacity .4s}.dictItem-FoldMaskArrow{position:absolute;z-index:10;bottom:0;left:0;right:0;margin:0 auto;width:15px;height:15px;fill:var(--color-font)}.isAnimate .noHeightTransition .dictItem-Body{transition:height 0s}@keyframes dictItem-Loader-shift{0%{transform:translateX(0);opacity:0}10%{transform:translateX(30px);opacity:1}90%{transform:translateX(80px);opacity:1}100%{transform:translateX(110px);opacity:0}}.dictList>.dictItem:first-child>.dictItemHead{border-top-color:transparent}.waveformBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;border:none;border-top:1px solid var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.waveformBox-DrawerBtn:focus{outline:0;border:1px solid var(--color-font)!important}.waveformBox-FrameWrap{overflow:hidden;height:0;font-size:0;transition:height .4s}.waveformBox-DrawerBtn_Arrow{fill:var(--color-font)}.waveformBox.isExpand .waveformBox-FrameWrap{height:165px}.waveformBox.isExpand .waveformBox-DrawerBtn{border-bottom:1px solid var(--color-divider)}.waveformBox.isExpand .waveformBox-DrawerBtn_Arrow{transform:rotate(180deg)}.waveformBox-Frame{width:100%;height:165px;border:none;transition:opacity .4s}.waveformBox-Frame-enter{opacity:0}.waveformBox-Frame-enter-active,.waveformBox-Frame-exit{opacity:1}.waveformBox-Frame-exit-active{opacity:0}.dictPanel-DragMask{position:fixed;z-index:2147483647;top:0;left:0;bottom:0;right:0;margin:auto;background:rgba(225,225,225,.01);cursor:grabbing;cursor:-webkit-grabbing}.isAnimate .dictPanel-Root{transition:width .4s,height .4s,opacity .4s,top .4s cubic-bezier(.55,.82,.63,.95),left .4s cubic-bezier(.4,.9,.71,1.02)}.isAnimate .dictPanel-Root.isDragging{transition:width .4s,height .4s,opacity .4s}',""]),e.exports=t},643:function(e,t,n){var a=n(644);e.exports="string"==typeof a?a:a.toString()},644:function(e,t,n){(t=n(226)(!1)).push([e.i,'.saladict-theme{background-color:#fff;color:#24292f;--color-brand:#2f9d8a;--color-background:#ffffff;--color-rgb-background:255,255,255;--color-font:#24292f;--color-font-grey:#5d6670;--color-divider:#d9dee3;--color-surface:#f6f8fa;--color-surface-active:#eaeef2;--color-link:#286aa8}.darkMode .saladict-theme{background-color:#282c30;color:#e3e0da;--color-brand:#2b9f8d;--color-background:#282c30;--color-rgb-background:40,44,48;--color-font:#e3e0da;--color-font-grey:#b8b3aa;--color-divider:#555b61;--color-surface:#33383d;--color-surface-active:#3d444a;--color-link:#8eb7e6}.fancy-scrollbar{overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;scrollbar-width:auto}.fancy-scrollbar::-webkit-scrollbar{height:8px;width:8px}.fancy-scrollbar::-webkit-scrollbar-track{background-color:transparent}.fancy-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(138,138,138,.25);border-radius:4px}.fancy-scrollbar::-webkit-scrollbar-thumb:hover{background-color:rgba(138,138,138,.35)}.fancy-scrollbar::-webkit-scrollbar-thumb:active{background-color:rgba(138,138,138,.6)}.fancy-scrollbar::-webkit-scrollbar-thumb:vertical{min-height:50px}.fancy-scrollbar::-webkit-scrollbar-thumb:horizontal{min-width:50px}.wordEditorPanel-Background{position:fixed;z-index:2147483646;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;text-align:initial;background:rgba(0,0,0,.4)}.wordEditorPanel-Container{display:flex;align-items:center;height:100%;min-width:440px;margin-left:auto}.wordEditorPanel{display:flex;flex-direction:column;width:80%;max-width:800px;min-width:400px;max-height:90vh;border-radius:6px;color:var(--color-font);background-color:var(--color-background);box-shadow:0 5px 15px rgba(0,0,0,.5);font-size:13px;font-family:"Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei",sans-serif}.wordEditorPanel-Header{display:flex;border-bottom:1px solid #ccc}.wordEditorPanel-Title{margin:0;font-size:18px;padding:15px}.wordEditorPanel-BtnClose{text-decoration:none;margin-left:auto;padding:15px;font-size:21px;font-weight:700;line-height:1;border:none;background:0 0;color:var(--color-font);text-shadow:0 1px 0 var(--color-background);opacity:.5;cursor:pointer}.wordEditorPanel-BtnClose:hover{outline:0}.wordEditorPanel-Main{flex:1;overflow-x:hidden;overflow-y:scroll;overscroll-behavior:contain}.wordEditorPanel-Footer{padding:15px;text-align:right;border-top:1px solid #ccc}.darkMode .wordEditorPanel-Btn,.darkMode .wordEditorPanel-Btn_normal,.wordEditorPanel-Btn,.wordEditorPanel-Btn_normal,.wordEditorPanel-Btn_primary{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857;border-radius:4px;-moz-user-select:none;user-select:none}.wordEditorPanel-Btn,.wordEditorPanel-Btn_normal{margin-right:10px;color:#333;background-color:#fff;border-color:#ccc}.wordEditorPanel-Btn:focus,.wordEditorPanel-Btn_normal:focus{background-color:#e6e6e6;border-color:#8c8c8c}.wordEditorPanel-Btn:hover,.wordEditorPanel-Btn_normal:hover{outline:0;background-color:#e6e6e6;border-color:#adadad}.wordEditorPanel-Btn:active,.wordEditorPanel-Btn_normal:active{outline:0;background-color:#e6e6e6;border-color:#8c8c8c;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.wordEditorPanel-Btn_primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.wordEditorPanel-Btn_primary:focus{background-color:#286090;border-color:#122b40}.wordEditorPanel-Btn_primary:hover{outline:0;background-color:#286090;border-color:#204d74}.wordEditorPanel-Btn_primary:active{outline:0;background-color:#204d74;border-color:#122b40;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.darkMode .wordEditorPanel-Footer,.darkMode .wordEditorPanel-Header{border-color:#8b8b8b}.darkMode .wordEditorPanel-Btn,.darkMode .wordEditorPanel-Btn_normal{margin-right:10px;color:#333;background-color:#ddd;border-color:#ccc}.darkMode .wordEditorPanel-Btn:focus,.darkMode .wordEditorPanel-Btn_normal:focus{background-color:#bfbfbf;border-color:#8c8c8c}.darkMode .wordEditorPanel-Btn:hover,.darkMode .wordEditorPanel-Btn_normal:hover{outline:0;background-color:#bfbfbf;border-color:#adadad}.darkMode .wordEditorPanel-Btn:active,.darkMode .wordEditorPanel-Btn_normal:active{outline:0;background-color:#bfbfbf;border-color:#8c8c8c;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.wordCards{flex:2;display:flex;flex-direction:column;overflow:hidden}.wordCards-Title{margin:0;padding:3px 0;text-align:center;font-size:1em;font-weight:400;border-bottom:1px solid #e5e5e5}.wordCards-CardList{flex:1;margin:0;padding:10px;overflow-x:hidden;overflow-y:auto}.wordCards-Card{list-style-type:none;position:relative;display:block;overflow:hidden;margin:0 0 10px 0;padding:10px 10px 10px;word-wrap:break-word;border:1px #faebcc solid;border-radius:20px;color:#8a6d3b;background:#fcf8e3}.wordCards-CardClose{position:absolute;top:5px;right:5px;border:none;font-size:20px;font-weight:700;color:#8a6d3b;background:0 0;cursor:pointer}.wordCards-CardTitle{margin:0 0 .5em;text-align:center}.wordCards-CardItem{position:relative;overflow:visible;margin-bottom:.5em;padding:0 0 0 25px}.wordCards-CardItem_Cont p{margin:0}.wordCards-CardItem_Icon{position:absolute;top:-5px;left:0;width:18px;height:18px;fill:#8a6d3b;-moz-user-select:none;user-select:none}.wordCards-CardFooter{position:relative;border-top:1px solid #faebcc;padding:8px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wordCards-Favicon{position:absolute;top:8px;left:3px;width:14px;height:14px}.wordCards-URL{padding:0 0 0 25px;color:inherit;font-size:12px}.ctxTransList{margin-top:0}.ctxTransItem{list-style-type:none;border-top:1px #ccc dashed}.ctxTransItem:first-of-type{border-top:none}.ctxTransItem-Head{display:flex;align-items:center}.ctxTrans-Title{position:relative;margin:5px 5px 5px 0;font-size:16px}.ctxTrans-Title input{position:absolute;top:3px;left:-25px}.ctxTrans-Content{margin:0 0 5px 0}.ctxTrans-Loader{display:flex;align-items:center;width:54px;height:20px}.ctxTrans-Loader>div{width:8px;height:8px;margin:2px;background:#f9690e;border-radius:100%;animation:ctxTrans-Loader 1.5s infinite ease-in-out}.ctxTrans-Loader>div:nth-child(5){animation-delay:0s}.ctxTrans-Loader>div:nth-child(4){animation-delay:-.1s}.ctxTrans-Loader>div:nth-child(3){animation-delay:-.2s}.ctxTrans-Loader>div:nth-child(2){animation-delay:-.3s}.ctxTrans-Loader>div:nth-child(1){animation-delay:-.4s}@keyframes ctxTrans-Loader{0%,100%,30%,70%{transform:scale(0)}50%{transform:scale(1)}}.wordEditorNote-Container{display:flex}.wordEditorNote{flex:3;padding:15px}.wordEditorNote a{text-decoration:none;color:#1890ff}.wordEditorNote label{display:block;margin-bottom:5px;font-weight:700}.wordEditorNote input,.wordEditorNote textarea{box-sizing:border-box;display:block;resize:vertical;width:100%;margin-bottom:15px;padding:6px 12px;font-size:14px;line-height:1.42857;color:var(--color-font);background:var(--color-background);background-image:none;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.wordEditorNote input:focus,.wordEditorNote textarea:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.darkMode .wordEditorNote input,.darkMode .wordEditorNote textarea{border-color:#8b8b8b}.wordEditorNote_Help{margin-top:-15px;color:var(--color-font-grey)}.wordEditorNote_SrcFavicon{height:16px;margin-left:5px;vertical-align:text-bottom}.wordEditorNote_LabelWithBtn>label{display:inline-block;margin-right:5px}.wordEditorNote_LabelWithBtn>button{position:relative;top:-1px;padding:1px 5px;background:0 0;border:1px solid #ccc;border-radius:3px;font-size:90%;color:var(--color-font);cursor:pointer}.notes-fade-appear,.notes-fade-enter{opacity:0}.notes-fade-appear-active,.notes-fade-enter-active{opacity:1;transition:opacity .4s}.notes-fade-exit{opacity:1}.notes-fade-exit-active{opacity:0;transition:opacity .1s}.shadowPortal-appear,.shadowPortal-enter{opacity:0}.shadowPortal-appear-active,.shadowPortal-enter-active{opacity:1;transition:opacity .4s}.shadowPortal-exit{opacity:1}.shadowPortal-exit-active{opacity:0;transition:opacity .1s}',""]),e.exports=t},670:function(e,t,n){"use strict";n.r(t),n.d(t,"EditNameModal",(function(){return c}));var a=n(0),o=n.n(a),r=n(183),i=n(240);const c=e=>{var t;const n=Object(a.useRef)(null);return o.a.createElement(r.a,{visible:e.show,title:e.title,destroyOnClose:!0,onOk:()=>{var t;const a=((null===(t=n.current)||void 0===t?void 0:t.input.value)||"").trim();a&&e.profileID?e.onClose({...e.profileID,name:a}):e.onClose()},onCancel:()=>e.onClose()},o.a.createElement(i.a,{ref:n,autoFocus:!0,defaultValue:null===(t=e.profileID)||void 0===t?void 0:t.name}))}},675:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(23);const o=e=>e.isShowDictPanel,r=()=>Object(a.e)(o)},71:function(e,t,n){"use strict";n.d(t,"c",(function(){return $})),n.d(t,"b",(function(){return K})),n.d(t,"a",(function(){return V}));var a=n(104),o=n(272),r=n(23),i=n(903),c=n(8),s=n(10),l=n(182),d=n(508),u=n(1),p=n(80),h=n(2),m=n(273),f=n(11),g=n(29),b=n(33);const y=async()=>{const e=Object(g.c)(),t=Object(b.g)(),n=Object(b.e)(),a=await e,o=await t,r=await n,i=window.location.href,c="hide"!==r.mtaAutoUnfold;return{config:a,profiles:o,activeProfile:r,selection:{word:Object(f.e)(),mouseX:0,mouseY:0,self:!1,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1},isTempDisabled:a.blacklist.some(([e])=>new RegExp(e).test(i))&&a.whitelist.every(([e])=>!new RegExp(e).test(i)),isQSPanel:Object(h.l)(),isQSFocus:a.qsFocus,withQssaPanel:!1,wordEditor:{isShow:!1,word:Object(f.e)(),translateCtx:!1},isShowBowl:!1,isShowDictPanel:Object(h.n)(),isShowMtaBox:c,isExpandMtaBox:c&&("once"===r.mtaAutoUnfold||"always"===r.mtaAutoUnfold||"popup"===r.mtaAutoUnfold&&Object(h.k)()),isExpandWaveformBox:!1,isPinned:!1,isFav:!1,bowlCoord:{x:0,y:0},dictPanelCoord:Object(h.i)()?{x:window.innerWidth-a.panelWidth-20,y:80}:{x:0,y:0},panelHeight:30,_panelHeightCache:{menubar:30,mtabox:0,dictlist:0,waveformbox:0,sum:30,floatHeight:0},panelMaxHeight:window.innerHeight*a.panelMaxHeightRatio/100,renderedDicts:[],userFoldedDicts:{},text:"",searchHistory:[],historyIndex:-1,dragStartCoord:null,lastPlayAudio:null}};var w=n(20);const x=(e,{payload:t})=>{const{activeProfile:n,searchHistory:a,historyIndex:o}=e;let r;const i=t&&t.noHistory?a:a.slice(0,o+1);let c=o;if(t&&t.word){r=t.word;const e=a[o];t.noHistory||e&&e.text===r.text||(i.push(r),c=i.length-1)}else r=a[o];return r?{...e,text:r.text,isShowDictPanel:!0,isExpandMtaBox:"always"===n.mtaAutoUnfold||"popup"===n.mtaAutoUnfold&&Object(h.k)(),searchHistory:i,historyIndex:c,renderedDicts:t&&t.id?e.renderedDicts.map(e=>e.id===t.id?{id:e.id,searchStatus:"SEARCHING",searchResult:null}:e):n.dicts.selected.filter(e=>{const t=n.dicts.all[e];if(Object(w.a)(t.selectionLang,r.text)){const e=Object(w.b)(r.text),{min:n,max:a}=t.selectionWC;return e>=n&&e<=a}return!1}).map(t=>({id:t,searchStatus:!Object(w.a)(n.dicts.all[t].defaultUnfold,r.text)||e.activeProfile.stickyFold&&e.userFoldedDicts[t]?"IDLE":"SEARCHING",searchResult:null}))}:e};const v=(e,{payload:t})=>{if(t.self)return e;const{config:n}=e,a={...e,selection:t};if(Object(h.i)())return a;if(t.word)if(t.force)a.dictPanelCoord={x:t.mouseX,y:t.mouseY};else if(!e.isPinned){const e=30,o=10;a.bowlCoord={x:t.mouseX+n.bowlOffsetX,y:t.mouseY+n.bowlOffsetY},a.bowlCoord.x<30?a.bowlCoord.x=30:a.bowlCoord.x+e+30+o>window.innerWidth&&(a.bowlCoord.x=window.innerWidth-e-o-30),a.bowlCoord.y<30?a.bowlCoord.y=30:a.bowlCoord.y+e+30>window.innerHeight&&(a.bowlCoord.y=window.innerHeight-e-30),a.dictPanelCoord={x:a.bowlCoord.x+e+10,y:a.bowlCoord.y},a.dictPanelCoord.x+a.config.panelWidth+20>window.innerWidth&&(a.dictPanelCoord.x=a.bowlCoord.x-10-a.config.panelWidth)}if(e.withQssaPanel&&n.qssaPageSel||Object(h.n)())return a;const o=n.active&&!e.isTempDisabled,{direct:r,holding:i,double:c,icon:s}=n.mode;return a.isShowDictPanel=Boolean(e.isPinned||o&&t.word&&t.word.text&&(e.isShowDictPanel||r||c&&t.dbClick||i.alt&&t.altKey||i.shift&&t.shiftKey||i.ctrl&&t.ctrlKey||i.meta&&t.metaKey||t.instant)||Object(h.n)()),a.isShowBowl=Boolean(o&&t.word&&t.word.text&&s&&!a.isShowDictPanel&&!r&&!(c&&t.dbClick)&&!(i.alt&&t.altKey)&&!(i.shift&&t.shiftKey)&&!(i.ctrl&&t.ctrlKey)&&!(i.meta&&t.metaKey)&&!t.instant&&!Object(h.n)()),a};const E=e=>{const{panelWidth:t,tripleCtrl:n,qsLocation:a}=e.config;if(!n||e.isShowDictPanel)return e;let o=10,r=10;switch(a){case"CENTER":o=(window.innerWidth-t)/2,r=.3*window.innerHeight;break;case"TOP":o=(window.innerWidth-t)/2,r=10;break;case"RIGHT":o=window.innerWidth-t-30,r=.3*window.innerHeight;break;case"BOTTOM":o=(window.innerWidth-t)/2,r=window.innerHeight-10;break;case"LEFT":o=10,r=.3*window.innerHeight;break;case"TOP_LEFT":o=10,r=10;break;case"TOP_RIGHT":o=window.innerWidth-t-30,r=10;break;case"BOTTOM_LEFT":o=10,r=window.innerHeight-10;break;case"BOTTOM_RIGHT":o=window.innerWidth-t-30,r=window.innerHeight-10}return{...e,isQSPanel:!0,isShowDictPanel:!0,dictPanelCoord:{x:o,y:r}}};const O={NEW_CONFIG:(e,{payload:t})=>{const n=window.location.href,a=window.innerHeight*t.panelMaxHeightRatio/100;return{...e,config:t,panelHeight:Math.min(e.panelHeight,a),panelMaxHeight:a,isQSFocus:t.qsFocus,isTempDisabled:t.blacklist.some(([e])=>new RegExp(e).test(n))&&t.whitelist.every(([e])=>!new RegExp(e).test(n))}},NEW_PROFILES:(e,{payload:t})=>({...e,profiles:t}),NEW_ACTIVE_PROFILE:(e,{payload:t})=>{const n="hide"!==t.mtaAutoUnfold;return{...e,activeProfile:t,isShowMtaBox:n,isExpandMtaBox:n&&("once"===t.mtaAutoUnfold||"always"===t.mtaAutoUnfold||"popup"===t.mtaAutoUnfold&&Object(h.k)()),renderedDicts:e.renderedDicts.filter(({id:e})=>t.dicts.selected.includes(e))}},NEW_SELECTION:v,WINDOW_RESIZE:e=>({...e,panelMaxHeight:window.innerHeight*e.config.panelMaxHeightRatio/100}),TEMP_DISABLED_STATE:(e,{payload:t})=>t?{...e,isTempDisabled:!0,isPinned:!1,isShowDictPanel:Object(h.n)(),isShowBowl:!1,isQSPanel:Object(h.l)()}:{...e,isTempDisabled:!1},BOWL_ACTIVATED:e=>({...e,isShowBowl:!1,isShowDictPanel:!0,isPinned:e.config.defaultPinned}),UPDATE_TEXT:(e,{payload:t})=>({...e,text:t}),TOGGLE_MTA_BOX:e=>({...e,isExpandMtaBox:!e.isExpandMtaBox}),TOGGLE_PIN:e=>({...e,isPinned:!e.isPinned}),TOGGLE_QS_FOCUS:e=>({...e,isQSFocus:!e.isQSFocus}),TOGGLE_WAVEFORM_BOX:e=>({...e,isExpandWaveformBox:!e.isExpandWaveformBox}),OPEN_PANEL:(e,{payload:t})=>Object(h.n)()?e:{...e,isPinned:e.config.defaultPinned,isShowDictPanel:!0,dictPanelCoord:{x:t.x,y:t.y}},CLOSE_PANEL:e=>Object(h.n)()?e:{...e,isPinned:!1,isShowBowl:!1,isShowDictPanel:!1,isQSPanel:Object(h.l)()},SWITCH_HISTORY:(e,{payload:t})=>{const n=Math.min(Math.max(0,e.historyIndex+("prev"===t?-1:1)),e.searchHistory.length-1);return{...e,historyIndex:n,text:e.searchHistory[n]?e.searchHistory[n].text:e.text}},WORD_IN_NOTEBOOK:(e,{payload:t})=>({...e,isFav:t}),ADD_TO_NOTEBOOK:e=>e.config.editOnFav&&!Object(h.n)()?e:{...e,isFav:!0},SEARCH_START:x,SEARCH_END:(e,{payload:t})=>e.renderedDicts.every(({id:e})=>e!==t.id)?e:{...e,renderedDicts:e.renderedDicts.map(e=>e.id===t.id?{id:e.id,searchStatus:"FINISH",searchResult:t.result,catalog:t.catalog}:e)},UPDATE_PANEL_HEIGHT:(e,{payload:t})=>{const{_panelHeightCache:n}=e,a=n.sum-n[t.area]+t.height,o=null==t.floatHeight?n.floatHeight:t.floatHeight;return{...e,panelHeight:Math.min(Math.max(a,o),e.panelMaxHeight),_panelHeightCache:{...n,[t.area]:t.height,sum:a,floatHeight:o}}},USER_FOLD_DICT:(e,{payload:t})=>({...e,userFoldedDicts:{...e.userFoldedDicts,[t.id]:t.fold}}),DRAG_START_COORD:(e,{payload:t})=>({...e,dragStartCoord:t}),SUMMONED_PANEL_INIT:(e,{payload:t})=>({...e,text:t,historyIndex:0,isPinned:e.config.defaultPinned,isShowDictPanel:!0,isShowBowl:!1}),QS_PANEL_CHANGED:(e,{payload:t})=>e.withQssaPanel===t?e:t&&e.config.qssaPageSel?{...e,withQssaPanel:t,isPinned:!1,isShowDictPanel:Object(h.k)()||!!Object(h.i)()&&e.isShowDictPanel,isShowBowl:!1,isQSPanel:!1}:{...e,withQssaPanel:t,isQSPanel:Object(h.l)()},OPEN_QS_PANEL:E,WORD_EDITOR_STATUS:(e,{payload:{word:t,translateCtx:n}})=>t?{...e,wordEditor:{isShow:!0,word:t,translateCtx:!!n},dictPanelCoord:{x:50,y:.2*window.innerHeight}}:{...e,wordEditor:{isShow:!1,word:e.wordEditor.word,translateCtx:!1}},PLAY_AUDIO:(e,{payload:t})=>({...e,lastPlayAudio:t})};var _=n(146),k=n(42),C=n(38);const j=(e,t)=>{window.addEventListener("resize",()=>{e({type:"WINDOW_RESIZE"})}),Object(g.a)(({newConfig:n})=>{n.active!==t().config.active&&u.a.send({type:"SEND_TAB_BADGE_INFO",payload:{active:n.active,tempDisable:t().isTempDisabled,unsupported:!Object(h.n)()&&!Object(C.a)(document.body,"body")}}),e({type:"NEW_CONFIG",payload:n})}),Object(b.a)(({newProfile:t})=>{e({type:"NEW_ACTIVE_PROFILE",payload:t})}),Object(b.d)().subscribe(t=>{e({type:"NEW_PROFILES",payload:t})}),u.a.addListener(n=>{switch(n.type){case"TEMP_DISABLED_STATE":return"set"===n.payload.op?(e({type:"TEMP_DISABLED_STATE",payload:n.payload.value}),setTimeout(()=>{const e=t();u.a.send({type:"SEND_TAB_BADGE_INFO",payload:{active:e.config.active,tempDisable:e.isTempDisabled,unsupported:!Object(h.n)()&&!Object(C.a)(document.body,"body")}})},0),Promise.resolve(!0)):Promise.resolve(t().isTempDisabled);case"SEARCH_TEXT_BOX":{var a;const{searchHistory:n,historyIndex:o,text:r}=t();return e({type:"SEARCH_START",payload:{word:(null===(a=n[o])||void 0===a?void 0:a.text)===r?n[o]:Object(f.e)({text:r,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}}),Object(h.k)()?Promise.resolve(!0):Promise.resolve()}case"WORD_SAVED":{const{text:n}=t();n&&u.a.send({type:"IS_IN_NOTEBOOK",payload:Object(f.e)({text:n})}).then(t=>{e({type:"WORD_IN_NOTEBOOK",payload:t})});break}case"ADD_NOTEBOOK":return n.payload.popup===Object(h.k)()?(e({type:"ADD_TO_NOTEBOOK"}),Promise.resolve(!0)):void 0;case"SWITCH_HISTORY":return e({type:"SWITCH_HISTORY",payload:n.payload}),Promise.resolve(!0);case"QS_PANEL_SEARCH_TEXT":return Object(h.l)()&&(e({type:"SEARCH_START",payload:{word:n.payload}}),t().isQSFocus&&u.a.send({type:"OPEN_QS_PANEL"})),Promise.resolve();case"QS_PANEL_CHANGED":return Object(h.l)()||e({type:"QS_PANEL_CHANGED",payload:n.payload}),Promise.resolve();case"QS_PANEL_FOCUSED":if(Object(h.l)()){const e=document.querySelector(t().isExpandMtaBox?".mtaBox-TextArea":".menuBar-SearchBox");e&&(e.focus(),e.select())}return Promise.resolve();case"GET_TAB_BADGE_INFO":{const e=t();return Promise.resolve({active:e.config.active,tempDisable:e.isTempDisabled,unsupported:!Object(h.n)()&&!Object(C.a)(document.body,"body")})}}});let n=0;u.a.self.addListener(a=>{switch(a.type){case"SELECTION":if(a.payload.instant)n=Date.now();else if(Date.now()-n<500)return Promise.resolve();return e({type:"NEW_SELECTION",payload:a.payload}),Promise.resolve();case"ESCAPE_KEY":return e({type:"CLOSE_PANEL"}),Promise.resolve();case"SEARCH_TEXT":return e({type:"SEARCH_START",payload:{word:a.payload}}),Promise.resolve();case"CLOSE_PANEL":return e({type:"CLOSE_PANEL"}),Promise.resolve();case"TRIPLE_CTRL":if(!Object(h.k)()&&!Object(h.i)()){const n=t();n.config.tripleCtrl&&(n.config.qsStandalone?u.a.send({type:"OPEN_QS_PANEL"}):n.isShowDictPanel||(e({type:"OPEN_QS_PANEL"}),async function(e,t){let n=null;"selection"===t.config.qsPreload?t.selection.word&&(n=t.selection.word):"clipboard"===t.config.qsPreload&&(n=Object(f.e)({text:await u.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&t.config.qsAuto?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,n)))}return Promise.resolve();case"UPDATE_WORD_EDITOR_WORD":return e({type:"WORD_EDITOR_STATUS",payload:a.payload}),Object(k.d)(100).then(()=>{e({type:"SEARCH_START",payload:{word:a.payload.word}})});case"LAST_PLAY_AUDIO":return Promise.resolve(t().lastPlayAudio)}}),Object(h.k)()?async function(e,t){let n=null;if("selection"===t.config.baPreload){const e=(await browser.tabs.query({active:!0,currentWindow:!0}))[0];e&&null!=e.id&&(n=await Object(_.a)(e.id,{type:"PRELOAD_SELECTION"})||null)}else"clipboard"===t.config.baPreload&&(n=Object(f.e)({text:await u.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&t.config.baAuto?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,t()):Object(h.l)()?async function(e,t){let n=null;const{searchParams:a}=new URL(document.URL);a.get("sidebar")||e({type:"TOGGLE_PIN"});const o=a.get("word");if(o)try{n=JSON.parse(decodeURIComponent(o))}catch(e){!1,n=null}if(!n)if("selection"===t.config.qsPreload){const e=Number(a.get("lastTab"));e&&(n=await Object(_.a)(e,{type:"PRELOAD_SELECTION"})||null)}else"clipboard"===t.config.qsPreload&&(n=Object(f.e)({text:await u.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&(t.config.qsAuto||o)?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,t()):u.a.send({type:"QUERY_QS_PANEL"}).then(t=>e({type:"QS_PANEL_CHANGED",payload:t}))};var S=n(798),A=n(124),M=n(102),I=n(67),T=n(88),N=n(799),D=n(152),z=n(39);const L=n(352).a;var P=n(121),B=n(751),R=n(904),F=n(752),H=n(797),U=n(112);var W=(e,t)=>e.pipe(L("SEARCH_START"),Object(P.a)(({payload:e})=>{const{config:n,searchHistory:a,historyIndex:o,renderedDicts:r}=t.value,i=a[o];!n.searchHistory||Object(h.g)()&&!Object(h.n)()||browser.extension.inIncognitoContext&&!n.searchHistoryInco||!(o<=0||a[o-1].text!==i.text||a[o-1].context!==i.context)||Object(f.f)("history",i);const c=new Set;for(const e of r)"SEARCHING"===e.searchStatus&&c.add(e.id);const{cn:l,en:d,machine:p}=n.autopron;l.dict&&c.add(l.dict),d.dict&&c.add(d.dict),p.dict&&c.add(p.dict);const m=Object(U.a)(...[...c].map(t=>u.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:i.text,payload:e&&e.payload?{isPDF:Object(h.j)(),...e.payload}:{isPDF:Object(h.j)()}}}).catch(()=>({id:t,result:null})))).pipe(Object(B.a)()),g=e&&e.id?A.a:m.pipe(Object(z.a)(({id:e,audio:t,result:n})=>!!t&&(!(e!==l.dict||!t.py)||(!(e!==d.dict||!t.uk&&!t.us)||e===p.dict&&!!n[p.src].tts))),Object(R.a)(1),Object(F.a)(({id:e,audio:t,result:n})=>{if(e===l.dict)return u.a.send({type:"PLAY_AUDIO",payload:t.py});if(e===d.dict){const e="us"===d.accent?t.us||t.uk:t.uk||t.us;return u.a.send({type:"PLAY_AUDIO",payload:e})}u.a.send({type:"PLAY_AUDIO",payload:n[p.src].tts})}),Object(H.a)(A.a));return Object(U.a)(Object(I.a)(Object(f.d)(i).catch(()=>!1)).pipe(Object(s.a)(e=>({type:"WORD_IN_NOTEBOOK",payload:e}))),m.pipe(Object(s.a)(({id:e,result:t,catalog:n})=>({type:"SEARCH_END",payload:{id:e,result:t,catalog:n}}))),g)}));var q=(e,t)=>e.pipe(L("NEW_SELECTION"),Object(P.a)(({payload:e})=>{const{config:n,withQssaPanel:a,isShowDictPanel:o,isPinned:r}=t.value;if(e.self)return function(e,t){const{direct:n,double:a,holding:o}=e.panelMode;if(t.word&&t.word.text&&(t.instant||n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey))return Object(M.a)({type:"SEARCH_START",payload:{word:{...t.word,title:"Saladict Panel",favicon:"https://saladict.crimx.com/favicon.ico"}}});return A.a}(n,e);if(Object(h.i)())return A.a;if(a&&n.qssaPageSel)return function(e,t){const{direct:n,double:a,holding:o}=e.qsPanelMode;t.word&&t.word.text&&(t.instant||n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey)&&u.a.send({type:"QS_PANEL_SEARCH_TEXT",payload:t.word});return A.a}(n,e);if(Object(h.n)())return A.a;const{pinMode:i}=n;return o&&e.word&&e.word.text&&(!r||i.direct||i.double&&e.dbClick||i.holding.alt&&e.altKey||i.holding.shift&&e.shiftKey||i.holding.ctrl&&e.ctrlKey||i.holding.meta&&e.metaKey)?Object(M.a)({type:"SEARCH_START",payload:{word:e.word}}):A.a}));var Q=n(86);const G=Object(S.a)((e,t)=>e.pipe(L("BOWL_ACTIVATED"),Object(s.a)(()=>t.value.selection.word?{type:"SEARCH_START",payload:{word:t.value.selection.word}}:{type:"SEARCH_START"})),(e,t)=>e.pipe(L("SWITCH_HISTORY"),Object(T.a)({type:"SEARCH_START",payload:{noHistory:!0}})),(e,t)=>t.pipe(Object(s.a)(e=>e.isShowDictPanel),Object(N.a)(),Object(D.a)(([e,t])=>(e&&!t&&u.a.send({type:"STOP_AUDIO"}),A.a))),(e,t)=>e.pipe(L("ADD_TO_NOTEBOOK"),Object(D.a)(()=>{if(t.value.config.editOnFav){const e=t.value.searchHistory[t.value.historyIndex];if(Object(h.k)()||Object(h.n)()){const{width:t,height:n}=window.screen,a=Math.round(Math.min(Math.max(t,440),640)),o=Math.round(Math.min(n-150,800));let r="";try{r=encodeURIComponent(JSON.stringify(e))}catch(e){console.warn(e)}return browser.windows.create({type:"popup",url:browser.runtime.getURL("word-editor.html?word="+r),top:Math.round((n-o)/2),left:Math.round((t-a)/2),width:a,height:o}).catch(e=>{console.warn(e)}),A.a}return Object(M.a)({type:"WORD_EDITOR_STATUS",payload:{word:e,translateCtx:!0}})}return Object(I.a)((async()=>{const e=t.value.searchHistory[t.value.searchHistory.length-1];if(e)try{return e.trans=Object(Q.a)(e.trans,await Object(Q.d)(e.context||e.text,t.value.config.ctxTrans)),await Object(f.f)("notebook",e),!0}catch(e){return console.warn(e),!1}return!1})()).pipe(Object(z.a)(e=>!e),Object(T.a)({type:"WORD_IN_NOTEBOOK",payload:!1}))})),q,W);const Y=Object(i.a)(),$=(r.f,r.e),K=r.d,V=async()=>{const e=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||a.c,t=Object(a.d)(await(async()=>Object(m.createReducer)(await y(),O))(),e(Object(a.a)(o.a,Y)));Y.run(G),j(t.dispatch,t.getState);const n=new c.a(e=>{t.subscribe(()=>e.next(t.getState()))});async function r(){return t.getState().isPinned}return n.pipe(Object(s.a)(e=>e.isPinned),Object(l.a)()).subscribe(e=>{u.a.self.send({type:"PIN_STATE",payload:e})}),n.pipe(Object(s.a)(e=>e.isShowDictPanel),Object(d.a)(!1),Object(l.a)()).subscribe(e=>{e&&(Object(h.k)()?Object(p.b)("/popup"):Object(h.j)()?Object(p.b)("/pdf-dictpanel"):Object(h.n)()?Object(p.b)("/standalone"):Object(p.b)("/dictpanel"))}),u.a.addListener("QUERY_PIN_STATE",r),u.a.self.addListener("QUERY_PIN_STATE",r),t}},743:function(e,t,n){"use strict";n.r(t),n.d(t,"ContextMenus",(function(){return f}));var a=n(0),o=n.n(a),r=n(299),i=n(212),c=n(9),s=n(71),l=n(513),d=n(17),u=n(211),p=n(193),h=n(753),m=n(754);const f=()=>{const{t:e}=Object(c.d)(["options","common","menus"]),t=Object(p.b)(),[n,f]=Object(a.useState)(!1),[g,b]=Object(a.useState)(null),y=Object(u.d)(),w=Object(s.c)(e=>e.config.contextMenus),[x,v]=Object(a.useState)(w.selected);return Object(a.useLayoutEffect)(()=>{v(w.selected)},[w.selected]),o.a.createElement(r.a,null,o.a.createElement(i.a,{...y},o.a.createElement(l.a,{title:e("nav.ContextMenus"),description:o.a.createElement("p",null,e("config.opt.contextMenus_description")),list:x.map(t=>{const n=w.all[t];return{value:t,title:"string"==typeof n?e("menus:"+t):n.name}}),disableEdit:(e,t)=>"x"===w.all[t.value],onAdd:()=>f(!0),onEdit:e=>{b(x[e])},onDelete:e=>{const n=x.slice();n.splice(e,1),t({[Object(d.a)("contextMenus","selected")]:n}),v(n)},onOrderChanged:(e,n)=>{const a=Object(l.b)(x,e,n);t({[Object(d.a)("contextMenus","selected")]:a}),v(a)}})),o.a.createElement(h.AddModal,{show:n,onEdit:b,onClose:()=>f(!1)}),o.a.createElement(m.EditModal,{menuID:g,onClose:()=>b(null)}))}},744:function(e,t,n){"use strict";n.r(t),n.d(t,"Dictionaries",(function(){return v}));var a=n(631),o=n.n(a),r=n(0),i=n.n(r),c=n(299),s=n(212),l=n(297),d=n(9),u=n(71),p=n(513),h=n(633),m=n(17),f=n(780),g=n(211),b=n(193),y=n(552),w=n(755),x=n(756);const v=()=>{const{t:e}=Object(d.d)(["options","common","dicts"]),t=Object(f.a)(),[n,a]=Object(r.useState)(null),[v,E]=Object(r.useState)(!1),O=Object(g.d)(),_=Object(u.c)(e=>e.activeProfile.dicts),k=Object(b.b)(),[C,j]=Object(r.useState)(_.selected);return Object(r.useLayoutEffect)(()=>{j(_.selected)},[_.selected]),i.a.createElement(c.a,null,i.a.createElement(s.a,{...O},i.a.createElement(p.a,{title:i.a.createElement(l.a,{title:e("profile.opt.item_extra"),className:"saladict-form-profile-title"},i.a.createElement("span",null,i.a.createElement(o.a,null),e("profile.opt.dict_selected"))),list:C.map(e=>({value:e,title:i.a.createElement(y.DictTitleMemo,{dictID:e,dictLangs:_.all[e].lang})})),onAdd:async()=>{await t()&&E(!0)},onEdit:e=>{a(C[e])},onDelete:e=>{const t=C.slice();t.splice(e,1),k({[Object(m.b)("dicts","selected")]:t}),j(t)},onOrderChanged:(e,t)=>{const n=Object(p.b)(C,e,t);k({[Object(m.b)("dicts","selected")]:n}),j(n)}})),i.a.createElement(h.a,{visible:v,title:e("dict.add"),onClose:()=>E(!1),wrapperCol:{span:24},items:[{name:Object(m.b)("dicts","selected"),label:null,help:null,extra:null,children:i.a.createElement(x.AllDicts,null)}]}),i.a.createElement(w.EditModal,{dictID:n,onClose:()=>a(null)}))}},745:function(e,t,n){"use strict";n.r(t),n.d(t,"Notebook",(function(){return E}));var a=n(0),o=n.n(a),r=n(105),i=n(178),c=n(84),s=n(100),l=n(67),d=n(141),u=n(10),p=n(30),h=n(256),m=n(136),f=n(166),g=n(9),b=n(1),y=n(71),w=n(17),x=n(103);const v=n(1250),E=()=>{const{t:e}=Object(g.d)(["options","dicts","common","sync"]),t=Object(y.c)(e=>e.config.ctxTrans),n=Object(p.e)(()=>v.keys().map(e=>/([^/]+)\.tsx$/.exec(e)[1])).current,[E,O]=Object(a.useState)({}),_=Object(h.a)(Object(m.a)(()=>Object(s.a)(Object(l.a)(b.c.sync.get("syncConfig")).pipe(Object(d.a)("syncConfig")),b.c.sync.createStream("syncConfig").pipe(Object(d.a)("newValue"))).pipe(Object(u.a)(e=>((null==e?void 0:e.webdav)&&!Object.prototype.hasOwnProperty.call(e.webdav,"enable")&&(e.webdav.enable=!!e.webdav.url),e))))),k=[{name:Object(w.a)("editOnFav"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(w.a)("searchHistory"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(w.a)("searchHistoryInco"),hide:e=>!e[Object(w.a)("searchHistory")],valuePropName:"checked",children:o.a.createElement(r.a,null)},{key:Object(w.a)("ctxTrans"),style:{marginBottom:10},items:Object(f.a)(t).map(t=>({name:Object(w.a)("ctxTrans",t),valuePropName:"checked",style:{marginBottom:0},children:o.a.createElement(i.a,null,e(`dicts:${t}.name`))}))}];return n.forEach(t=>{var n;const a="syncService.btn."+t,r=e(`sync:${t}.title`);k.push({key:a,label:r,children:o.a.createElement(c.a,{onClick:()=>O(e=>({...e,[t]:!0}))},`${r} (${e((null==_||null===(n=_[t])||void 0===n?void 0:n.enable)?"common:enabled":"common:disabled")})`)})}),o.a.createElement(o.a.Fragment,null,o.a.createElement(x.a,{items:k}),n.map(e=>o.a.createElement(v(`./${e}.tsx`).default,{key:e,syncConfig:null==_?void 0:_[e],show:E[e],onClose:()=>O(t=>({...t,[e]:!1}))})))}},746:function(e,t,n){"use strict";n.r(t),n.d(t,"Profiles",(function(){return x}));var a=n(631),o=n.n(a),r=n(0),i=n.n(r),c=n(142),s=n(167),l=n(299),d=n(212),u=n(183),p=n(9),h=n(78),m=n(33),f=n(71),g=n(513),b=n(211),y=n(780),w=n(670);const x=()=>{const{t:e}=Object(p.d)("options"),t=Object(y.a)(),n=Object(f.c)(e=>e.activeProfile.id),[a,x]=Object(r.useState)(!1),[v,E]=Object(r.useState)(!1),[O,_]=Object(r.useState)(null),k=Object(b.d)(),C=Object(f.c)(e=>e.profiles),[j,S]=Object(r.useState)(C);Object(r.useLayoutEffect)(()=>{S(C)},[C]);const A=async t=>{try{await t(),c.a.destroy(),c.a.success(e("msg_updated"))}catch(e){s.a.error({message:"Error",description:e.message})}},M=e=>{x(!1),E(!1),e&&A(async()=>{if(j.find(({id:t})=>t===e.id)){const t=j.map(t=>t.id===e.id?e:t);await Object(m.n)(t)}else await Object(m.b)(e)})};return i.a.createElement(l.a,null,i.a.createElement(d.a,{...k},i.a.createElement(g.a,{title:e("nav.Profiles"),description:i.a.createElement(p.c,{message:e("profiles.opt.help")},i.a.createElement(o.a,{style:{color:"#f5222d"}}),i.a.createElement("kbd",null,"↓")),selected:n,list:j.map(({id:t,name:n})=>({value:t,title:Object(m.h)(n,e)})),onSelect:async({target:{value:e}})=>{await t()&&A(()=>Object(m.l)(e))},onAdd:()=>{_({...Object(h.c)(),name:""}),x(!0)},onEdit:t=>{_(j[t]?{...j[t],name:Object(m.h)(j[t].name,e)}:Object(h.c)()),E(!0)},onDelete:t=>{const{id:n,name:a}=j[t];u.a.confirm({title:e("profiles.opt.delete_confirm",{name:Object(m.h)(a,e)}),onOk:()=>A(()=>Object(m.j)(n))})},onOrderChanged:(e,t)=>{const n=Object(g.b)(j,e,t);S(n),A(()=>Object(m.n)(n))}}),i.a.createElement(w.EditNameModal,{title:e("profiles.opt.add_name"),show:a,profileID:O,onClose:M}),i.a.createElement(w.EditNameModal,{title:e("profiles.opt.edit_name"),show:v,profileID:O,onClose:M})))}},747:function(e,t,n){"use strict";n.r(t),n.d(t,"QuickSearch",(function(){return h}));var a=n(0),o=n.n(a),r=n(105),i=n(58),c=n(84),s=n(9),l=n(17),d=n(103),u=n(757);const p=["CENTER","TOP","RIGHT","BOTTOM","LEFT","TOP_LEFT","TOP_RIGHT","BOTTOM_LEFT","BOTTOM_RIGHT"],h=()=>{const{t:e}=Object(s.d)(["options","menus"]),[t,n]=Object(a.useState)(!1);return o.a.createElement(o.a.Fragment,null,o.a.createElement(d.a,{items:[{name:Object(l.a)("tripleCtrl"),help:o.a.createElement(s.c,{message:e(Object(l.a)("tripleCtrl")+"_help")},o.a.createElement("kbd",null,"⌘ Command"),o.a.createElement("kbd",null,"Ctrl")),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(l.a)("qsLocation"),children:o.a.createElement(i.a,null,p.map(t=>o.a.createElement(i.a.Option,{key:t,value:t},e("locations."+t))))},{name:Object(l.a)("qsPreload"),label:e("preload.title"),help:e("preload.help"),children:o.a.createElement(i.a,null,o.a.createElement(i.a.Option,{value:""},e("common:none")),o.a.createElement(i.a.Option,{value:"clipboard"},e("preload.clipboard")),o.a.createElement(i.a.Option,{value:"selection"},e("preload.selection")))},{name:Object(l.a)("qsAuto"),label:e("preload.auto"),help:e("preload.auto_help"),hide:e=>!e[Object(l.a)("qsPreload")],valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(l.a)("qsFocus"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(l.a)("qsStandalone"),help:o.a.createElement(s.c,{message:e(Object(l.a)("qsStandalone")+"_help")},o.a.createElement("a",{href:"https://saladict.crimx.com/native.html",target:"_blank",rel:"nofollow noopener noreferrer"},e("nativeSearch"))),valuePropName:"checked",children:o.a.createElement(r.a,null)},{key:"config.opt.openQsStandalone",children:o.a.createElement(c.a,{onClick:()=>n(!0)},e("config.opt.openQsStandalone"))}]}),o.a.createElement(u.StandaloneModal,{show:t,onClose:()=>n(!1)}))}},748:function(e,t,n){"use strict";n.r(t),n.d(t,"SearchModes",(function(){return h}));var a=n(0),o=n.n(a),r=n(105),i=n(178),c=n(257),s=n(9),l=n(17),d=n(103),u=n(20),p=n(511);const h=()=>{const{t:e}=Object(s.d)(["options","common"]);return o.a.createElement(d.a,{items:[{name:Object(l.a)("noTypeField"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(l.a)("touchMode"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{key:Object(l.a)("language"),className:"saladict-form-danger-extra",items:u.j.map(t=>({name:Object(l.a)("language",t),className:"form-item-inline",valuePropName:"checked",children:o.a.createElement(i.a,null,e("common:lang."+t))}))},{name:Object(l.b)("stickyFold"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(l.a)("doubleClickDelay"),children:o.a.createElement(c.a,{tipFormatter:t=>t+e("common:unit.ms"),min:100,max:2e3,marks:{100:"0.1"+e("common:unit.s"),2e3:"2"+e("common:unit.s")}})},Object(p.searchMode)("mode",e),Object(p.searchMode)("pinMode",e),Object(p.searchMode)("panelMode",e),Object(p.searchMode)("qsPanelMode",e)]})}},753:function(e,t,n){"use strict";n.r(t),n.d(t,"AddModal",(function(){return _}));var a=n(224),o=n.n(a),r=n(779),i=n.n(r),c=n(600),s=n.n(c),l=n(0),d=n.n(l),u=n(183),p=n(84),h=n(794),m=n(297),f=n(1015),g=n.n(f),b=n(9),y=n(2),w=n(107),x=n(71),v=n(17),E=n(193);const O={caiyuntrs:y.d?"ff":"",youdao_page_translate:y.d?"ff":""},_=({show:e,onEdit:t,onClose:n})=>{const{t:a}=Object(b.d)(["common","menus","options"]),r=Object(x.c)(e=>e.config.contextMenus),c=Object(l.useMemo)(()=>{if(!r)return[];const e=new Set(r.selected);return Object.keys(r.all).filter(t=>!e.has(t))},[r]),f=Object(E.b)();return d.a.createElement(u.a,{visible:e,title:a("common:add"),destroyOnClose:!0,onOk:n,onCancel:n,footer:null},d.a.createElement(p.a,{type:"dashed",block:!0,onClick:y},a("common:add")),d.a.createElement(h.b,{dataSource:c,renderItem:function(e){if(!r)return null;const n=r.all[e],c="string"==typeof n?a("menus:"+e):n.name;return d.a.createElement(h.b.Item,null,d.a.createElement("div",{className:"sortable-list-item"},c,d.a.createElement("div",null,d.a.createElement("div",null,d.a.createElement(m.a,{title:O[e]?a("options:unsupportedFeatures."+O[e],{feature:c}):""},d.a.createElement(p.a,{title:a("common:add"),className:"sortable-list-item-btn",shape:"circle",size:"small",icon:d.a.createElement(s.a,null),disabled:!!O[e],onClick:function(){if(!r)return;f({[Object(v.a)("contextMenus","selected")]:[...r.selected,e]})}})),d.a.createElement(p.a,{title:a("common:edit"),className:"sortable-list-item-btn",shape:"circle",size:"small",icon:d.a.createElement(i.a,null),disabled:"x"===n,onClick:()=>t(e)}),d.a.createElement(p.a,{title:a("common:delete"),disabled:"x"===n,className:"sortable-list-item-btn",shape:"circle",size:"small",icon:d.a.createElement(o.a,null),onClick:function(){if(!r)return;u.a.confirm({title:a("common:delete_confirm"),okType:"danger",onOk:()=>{"x"!==r.all[e]&&f({[Object(v.a)("contextMenus")]:{...r,selected:r.selected.filter(t=>t!==e),all:g()(r.all,[e])}})}})}})))))}}),d.a.createElement(p.a,{type:"dashed",block:!0,onClick:y},a("common:add")));function y(){t("c_"+Object(w.a)())}}},754:function(e,t,n){"use strict";n.r(t),n.d(t,"EditModal",(function(){return f}));var a=n(145),o=n.n(a),r=n(0),i=n.n(r),c=n(362),s=n(256),l=n(183),d=n(122),u=n(240),p=n(9),h=n(71),m=n(193);const f=({menuID:e,onClose:t})=>{const{t:n}=Object(p.d)(["options","dicts","common","langcode"]),a=Object(r.useRef)(null),f=Object(h.c)(e=>e.config.contextMenus.all),g=Object(s.a)(m.a,"idle"),b=Object(m.b)(),y=`config.contextMenus.all.${e}.name`,w=`config.contextMenus.all.${e}.url`,x=Object(r.useMemo)(()=>{if(f&&e){const t=f[e];if("string"==typeof t)return{[y]:n("menus:"+e),[w]:t};if(t)return{[y]:t.name,[w]:t.url}}return{[y]:"",[w]:""}},[f,e]);return Object(c.a)(()=>{e&&"idle"===g&&t()},[g]),i.a.createElement(l.a,{visible:!!e,zIndex:1001,title:n("config.opt.contextMenus_edit"),destroyOnClose:!0,onOk:function(){a.current&&a.current.submit()},onCancel:function(){a.current&&a.current.isFieldsTouched()?l.a.confirm({zIndex:1002,title:n("syncService.close_confirm"),icon:i.a.createElement(o.a,null),okType:"danger",onOk:t}):t()}},i.a.createElement(d.a,{ref:a,initialValues:x,onFinish:b},i.a.createElement(d.a.Item,{name:y,label:n("common:name")},i.a.createElement(u.a,null)),i.a.createElement(d.a.Item,{name:w,label:"URL"},i.a.createElement(u.a,null))))}},755:function(e,t,n){"use strict";n.r(t),n.d(t,"EditModal",(function(){return v}));var a=n(145),o=n.n(a),r=n(0),i=n.n(r),c=n(23),s=n(178),l=n(84),d=n(183),u=n(58),p=n(105),h=n(9),m=n(20),f=n(71),g=n(17),b=n(610),y=n(633),w=n(768),x=n(225);const v=({dictID:e,onClose:t})=>{const{t:a,i18n:v}=Object(h.d)(["options","dicts","common","langcode"]),E=Object(r.useContext)(w.a),O=Object(x.b)(),{dictAuth:_,allDicts:k}=Object(f.c)(e=>({dictAuth:e.config.dictAuth,allDicts:e.activeProfile.dicts.all}),c.c),C=[],j=[{type:"number",message:a("form.number_error"),required:!0}];if(e){C.push({key:Object(g.b)("dicts","all",e,"selectionLang"),label:a("dict.selectionLang"),help:a("dict.selectionLang_help"),extra:a("config.language_extra"),className:"saladict-form-danger-extra",items:m.j.map(t=>({name:Object(g.b)("dicts","all",e,"selectionLang",t),className:"form-item-inline",valuePropName:"checked",children:i.a.createElement(s.a,null,a("common:lang."+t))}))},{key:Object(g.b)("dicts","all",e,"defaultUnfold"),label:a("dict.defaultUnfold"),help:a("dict.defaultUnfold_help"),extra:a("config.language_extra"),className:"saladict-form-danger-extra",items:m.j.map(t=>({name:Object(g.b)("dicts","all",e,"defaultUnfold",t),className:"form-item-inline",valuePropName:"checked",children:i.a.createElement(s.a,null,a("common:lang."+t))}))},{key:Object(g.b)("dicts","all",e,"selectionWC"),label:a("dict.selectionWC"),help:a("dict.selectionWC_help"),items:[{name:Object(g.b)("dicts","all",e,"selectionWC","min"),label:null,style:{marginBottom:5},rules:j,children:i.a.createElement(b.a,{suffix:a("common:min")})},{name:Object(g.b)("dicts","all",e,"selectionWC","max"),label:null,style:{marginBottom:5},rules:j,children:i.a.createElement(b.a,{suffix:a("common:max")})}]},{name:Object(g.b)("dicts","all",e,"preferredHeight"),label:a("dict.preferredHeight"),help:a("dict.preferredHeight_help"),rules:j,children:i.a.createElement(b.a,{suffix:a("common:max")})}),_[e]&&C.push({key:e+"_auth",label:a("nav.DictAuths"),children:i.a.createElement(l.a,{href:"./?menuselected=DictAuths",onClick:e=>{e.preventDefault(),e.stopPropagation(),O.value?d.a.confirm({title:a("unsave_confirm"),icon:i.a.createElement(o.a,null),okType:"danger",onOk:()=>{Object(x.a)(!1),E("DictAuths")}}):E("DictAuths")}},a("dictAuth.manage"))});const t=k[e].options;t&&C.push(...Object.keys(t).map(o=>{const r=t[o],c={name:`profile.dicts.all.${e}.options.${o}`,label:a(`dicts:${e}.options.${o}`),help:v.exists(`dicts:${e}.helps.${o}`)?a(`dicts:${e}.helps.${o}`):null};switch(typeof r){case"number":c.rules=j,c.children=i.a.createElement(b.a,{suffix:a(`dicts:${e}.options.${o}_unit`)});break;case"string":if("tl"===o||"tl2"===o){const t=n(1235)(`./${e}/engine`).getTranslator,r=t?t().getSupportLanguages().map(e=>"auto"===e?"default":e):k[e].options_sel[o];c.children=i.a.createElement(u.a,null,r.map(e=>i.a.createElement(u.a.Option,{value:e,key:e},"default"===e?"":e+" ",a("langcode:"+e))))}else c.children=i.a.createElement(u.a,null,k[e].options_sel[o].map(t=>i.a.createElement(u.a.Option,{value:t,key:t},a(`dicts:${e}.options.${o}-${t}`))));break;default:c.valuePropName="checked",c.children=i.a.createElement(p.a,null)}return c}))}return i.a.createElement(y.a,{visible:!!e,title:a(`dicts:${e}.name`),items:C,onClose:t})}},756:function(e,t,n){"use strict";n.r(t),n.d(t,"AllDicts",(function(){return u}));var a=n(0),o=n.n(a),r=n(1365),i=n(794),c=n(105),s=n(71),l=n(166),d=n(552);const u=e=>{const t=Object(s.c)(e=>e.activeProfile.dicts.all),n=Object(a.useMemo)(()=>Object(l.a)(t),[t]),u=Object(a.useMemo)(()=>new Set(e.value||[]),[e.value]);return o.a.createElement(r.a,null,o.a.createElement(i.b,{size:"large",dataSource:n,renderItem:n=>o.a.createElement(i.b.Item,null,o.a.createElement("div",{className:"sortable-list-item"},o.a.createElement(d.DictTitle,{dictID:n,dictLangs:t[n].lang}),o.a.createElement(c.a,{checked:u.has(n),onChange:t=>{e.onChange&&e.value&&e.onChange(t?[...e.value,n]:e.value.filter(e=>e!==n))}})))}))}},757:function(e,t,n){"use strict";n.r(t),n.d(t,"StandaloneModal",(function(){return f}));var a=n(0),o=n.n(a),r=n(58),i=n(257),c=n(105),s=n(84),l=n(9),d=n(17),u=n(633),p=n(103),h=n(511),m=n(758);const f=({show:e,onClose:t})=>{const{t:n}=Object(l.d)(["options","common"]),{availHeight:f}=window.screen,[g,b]=Object(a.useState)(!1);return o.a.createElement(o.a.Fragment,null,o.a.createElement(u.a,{title:n(Object(d.a)("qsStandalone")),visible:e,onClose:t,items:[{name:Object(d.a)("qssaSidebar"),children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:""},n("common:none")),o.a.createElement(r.a.Option,{value:"left"},n("locations.LEFT")),o.a.createElement(r.a.Option,{value:"right"},n("locations.RIGHT")))},{name:Object(d.a)("qssaHeight"),hide:e=>e[Object(d.a)("qssaSidebar")],children:o.a.createElement(i.a,{tipFormatter:p.c,min:250,max:f,marks:{250:"250px",[f]:f+"px"}})},{name:Object(d.a)("qssaRectMemo"),valuePropName:"checked",children:o.a.createElement(c.a,null)},{key:"titlebar-offset",label:n("titlebarOffset.title"),help:n("titlebarOffset.help"),children:o.a.createElement(s.a,{onClick:()=>b(!0)},n("titlebarOffset.title"))},{name:Object(d.a)("qssaPageSel"),valuePropName:"checked",children:o.a.createElement(c.a,null)},{...Object(h.searchMode)("qsPanelMode",n),label:n("page_selection")}]}),o.a.createElement(m.TitlebarOffsetModal,{show:g,onClose:()=>b(!1)}))}},758:function(e,t,n){"use strict";n.r(t),n.d(t,"TitlebarOffsetModal",(function(){return g}));var a=n(145),o=n.n(a),r=n(0),i=n.n(r),c=n(183),s=n(142),l=n(84),d=n(122),u=n(257),p=n(298),h=n(211),m=n(103),f=n(9);const g=e=>{const{t:t}=Object(f.d)(["options","common"]),[n,a]=Object(r.useState)(),g=Object(r.useRef)(null);Object(r.useEffect)(()=>{if(e.show)return;let t=!1;return Object(p.b)().then(e=>{t||a(e||{main:0,panel:0})}),()=>{t=!0}},[e.show]);const b=()=>{g.current&&g.current.submit()},y=()=>{g.current&&g.current.isFieldsTouched()?c.a.confirm({title:t("unsave_confirm"),icon:i.a.createElement(o.a,null),okType:"danger",onOk:e.onClose}):e.onClose()};return i.a.createElement(c.a,{title:t("titlebarOffset.title"),visible:e.show&&!!n,onOk:b,onCancel:y,footer:[i.a.createElement(l.a,{key:"calibration",onClick:async()=>{const e=await Object(p.a)();e&&g.current?(g.current.setFieldsValue(e),s.a.destroy(),s.a.success(t("titlebarOffset.calibrateSuccess"))):(s.a.destroy(),s.a.error(t("titlebarOffset.calibrateError")))}},t("titlebarOffset.calibrate")),i.a.createElement(l.a,{key:"cancel",onClick:y},t("common:cancel")),i.a.createElement(l.a,{key:"submit",type:"primary",onClick:b},t("common:save"))]},i.a.createElement("p",null,t("titlebarOffset.help")),i.a.createElement(d.a,{...h.b,initialValues:n,ref:g,onFinish:async n=>{await Object(p.c)(n),s.a.destroy(),s.a.success(t("msg_updated")),e.onClose()}},i.a.createElement(d.a.Item,{name:"main",label:t("titlebarOffset.main"),help:t("titlebarOffset.main_help")},i.a.createElement(u.a,{tipFormatter:m.c,min:0,max:100,marks:{0:"0px",100:"100px"}})),i.a.createElement(d.a.Item,{name:"panel",label:t("titlebarOffset.panel"),help:t("titlebarOffset.panel_help")},i.a.createElement(u.a,{tipFormatter:m.c,min:0,max:100,marks:{0:"0px",100:"100px"}}))))}},768:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0);const o=n.n(a).a.createContext(null)},78:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return c}));var a=n(107),o=n(87);const r=function(e){return{version:1,id:e||Object(a.a)(),mtaAutoUnfold:"",waveform:!0,stickyFold:!1,dicts:{selected:["bing","cobuild","cambridge","youdao","urban","vocabulary","caiyun","youdaotrans","zdic","guoyu","liangan"],all:Object(o.b)()}}};function i(e){return{id:e||Object(a.a)(),name:"%%_default_%%"}}function c(){const e=i(),t=r(e.id),n=function(){const e=i();e.name="%%_sentence_%%";const t=r(e.id);t.dicts.selected=["bing","renren","eudic","cobuild","cambridge","longman"];const n=t.dicts.all;return n.bing.options.tense=!1,n.bing.options.phsym=!1,n.bing.options.cdef=!1,n.bing.options.related=!1,n.bing.options.sentence=9999,n.eudic.options.resultnum=9999,n.longman.options.wordfams=!1,n.longman.options.collocations=!1,n.longman.options.grammar=!1,n.longman.options.thesaurus=!1,n.longman.options.examples=!0,n.longman.options.bussinessFirst=!1,n.longman.options.related=!1,{idItem:e,profile:t}}(),a=function(){const e=i();e.name="%%_translation_%%";const t=r(e.id);return t.dicts.selected=["google","tencent","baidu","caiyun","youdaotrans","zdic","guoyu","liangan"],t.mtaAutoUnfold="always",{idItem:e,profile:t}}(),o=function(){const e=i();e.name="%%_scholar_%%";const t=r(e.id);t.dicts.selected=["cambridge","cobuild","etymonline","google","youdaotrans","zdic","guoyu","liangan"];const n=t.dicts.all;return n.google.selectionWC.min=5,n.youdaotrans.selectionWC.min=5,{idItem:e,profile:t}}(),c=function(){const e=i();e.name="%%_nihongo_%%";const t=r(e.id);return t.dicts.selected=["mojidict","hjdict","weblioejje","weblio","google","tencent","caiyun","wikipedia"],t.dicts.all.wikipedia.options.lang="ja",t.waveform=!1,{idItem:e,profile:t}}();return{profileIDList:[e,n.idItem,a.idItem,o.idItem,c.idItem],profiles:[t,n.profile,a.profile,o.profile,c.profile]}}},780:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=()=>async()=>!0},788:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var a=n(605),o=n.n(a),r=n(145),i=n.n(r),c=n(0),s=n.n(c),l=n(23),d=n(362),u=n(256),p=n(183),h=n(122),m=n(84),f=n(9);var g=n(71),b=n(17),y=n(193),w=n(240),x=n(58);const v=({value:e,onChange:t})=>{const{t:n}=Object(f.d)("options"),[a,o]=Object(c.useState)((null==e?void 0:e[1])?"1":"0");return s.a.createElement(w.a,{addonBefore:s.a.createElement(x.a,{value:a,onChange:o,className:"select-before"},s.a.createElement(x.a.Option,{value:"0"},n("matchPattern.regex")),s.a.createElement(x.a.Option,{value:"1"},n("matchPattern.url"))),value:null==e?void 0:e[a],onChange:e=>{"0"===a?t&&t([e.currentTarget.value,""]):t&&t(["",e.currentTarget.value])}})},E=({area:e,onClose:t})=>{const{t:n}=Object(f.d)(["options","common"]),a=Object(c.useRef)(null),r=Object(u.a)(y.a,"idle"),w=Object(g.c)(e=>({pdfWhitelist:e.config.pdfWhitelist,pdfBlacklist:e.config.pdfBlacklist,whitelist:e.config.whitelist,blacklist:e.config.blacklist}),l.c),x=Object(y.b)();Object(d.a)(()=>{e&&"idle"===r&&t()},[r]);const E=e?(e.startsWith("pdf")?"PDF ":"")+n(e.endsWith("hitelist")?"common:whitelist":"common:blacklist"):n("nav.BlackWhiteList");async function O(e,t){if(t[1]){if(t[0]=function(e){if(""===e)return"^(?:http|https|file|ftp|app)://";const t=new RegExp("^(\\*|http|https|ws|wss|file|ftp)://(\\*|(?:\\*\\.)?(?:[^/*]+))?/(.*)$").exec(e);if(!t)return"";let[,n,a,o]=t;if(!a)return"";let r="^";return r+="*"===n?"(http|https)":n,r+="://",a&&"*"===a?r+="[^/]+?":a&&(a.match(/^\*\./)&&(r+="[^/]*?",a=a.substring(2)),r+=a.replace(/\./g,"\\.")),o&&("*"===o?r+="(/.*)?":"/"!==o.charAt(0)&&(r+="/",r+=o.replace(/\./g,"\\.").replace(/\*/g,".*?"),r+="/?")),r+"$"}(t[1]),!t[0])throw new Error(n("matchPattern.url_error"))}else if(t[0])try{RegExp(t[0])}catch(e){throw new Error(n("matchPattern.regex_error"))}}return s.a.createElement(p.a,{visible:!!e,title:E,destroyOnClose:!0,onOk:()=>{a.current&&a.current.submit()},onCancel:()=>{a.current&&a.current.isFieldsTouched()?p.a.confirm({title:n("unsave_confirm"),icon:s.a.createElement(i.a,null),okType:"danger",onOk:t}):t()}},s.a.createElement("p",null,s.a.createElement(f.c,{message:n("matchPattern.description")},s.a.createElement("a",{href:"https://developer.mozilla.org/zh-CN/Add-ons/WebExtensions/Match_patterns#范例",target:"_blank",rel:"nofollow noopener noreferrer"},n("matchPattern.url")),s.a.createElement("a",{href:"https://deerchao.cn/tutorials/regex/regex.htm",target:"_blank",rel:"nofollow noopener noreferrer"},n("matchPattern.regex")))),s.a.createElement(h.a,{ref:a,wrapperCol:{span:24},initialValues:e?{patterns:w[e]}:{},onFinish:t=>{if(e){const n=t.patterns;x({[Object(b.a)(e)]:(n||[]).filter(e=>e[0])})}}},s.a.createElement(h.a.List,{name:"patterns"},(e,{add:t})=>s.a.createElement("div",null,e.map(e=>s.a.createElement(h.a.Item,{key:e.key,...e,validateTrigger:["onChange","onBlur"],hasFeedback:!0,rules:[{validator:O}]},s.a.createElement(v,null))),s.a.createElement(h.a.Item,null,s.a.createElement(m.a,{type:"dashed",block:!0,onClick:()=>t(["",""])},s.a.createElement(o.a,null)," ",n("common:add")))))))}},80:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return f}));var a=n(221),o=n.n(a),r=n(47),i=n.n(r),c=n(222),s=n.n(c),l=n(1),d=n(107),u=n(2);async function p(e){const t=new o.a,n=t.getBrowser(),a=t.getOS();try{await m({t:"pageview",dp:e,cd1:n.name||"None",cd2:(n.version||"0.0").split(".").slice(0,3).join("."),cd3:a.name||"None",cd4:a.version||"0.0",de:"UTF-8",dl:document.location.href,sd:screen.colorDepth+"-bit",sr:screen.width+"x"+screen.height,ul:"zh-cn"})}catch(e){console.error("Report pageview error",e)}}async function h(e){const t={t:"event",ec:e.category,ea:e.action};null!=e.label&&(t.el=e.label),null!=e.value&&(t.ev=e.value);try{await m(t)}catch(e){console.error("Report event error",e)}}async function m(e){if(!Object(u.c)())return l.a.send({type:"REQUEST_GA",payload:e});let t=(await l.c.sync.get("gacid")).gacid;return t||(t=s()(),l.c.sync.set({gacid:t})),i()({url:"https://www.google-analytics.com/collect",method:"post",headers:{"content-type":"text/plain;charset=UTF-8"},data:new URLSearchParams({v:"1",tid:"UA-49163616-4",cid:t,z:Object(d.a)(),...e})})}function f(){l.a.addListener("REQUEST_GA",({payload:e})=>{m(e)})}},801:function(e,t,n){},818:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(31),o=n(3);const r=e=>"https://ahdictionary.com/word/search.html?q="+e,i="https://ahdictionary.com",c=(e,t,n,r)=>{const c=n.dicts.all.ahdict.options;return Object(a.a)("https://ahdictionary.com/word/search.html?q="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>function(e,{resultnum:t}){const n=[],a=Array.from(e.querySelectorAll("#results>table"));if(a.length<=0)return Object(o.j)();for(let e=0;e<a.length&&n.length<t;e++){const t=a[e],r={title:"",meaning:[],idioms:[]};if(t.querySelector(".rtseg")){const e=t.querySelectorAll(".rtseg>a");e[1]&&e[1].getAttribute("href")&&(r.pron=`${i}${e[1].getAttribute("href")}`),r.title=Object(o.g)(e[0],"font")}Array.from(t.querySelectorAll(".pseg")).map(e=>{r.meaning.push(Object(o.e)(i,e).replace(/<\/?(span|font)[^>]*>/g,""))});const c=Array.from(t.querySelectorAll(".idmseg"));c.length&&c.map(e=>{const t={};t.title=Object(o.g)(e,"b"),t.eg=Object(o.g)(e,".ds-single"),t.tips=Object(o.g)(e,"span+i"),r.idioms.push(t)});const s=t.querySelector(".etyseg");s&&(r.origin=Object(o.e)(i,s).replace(/<\/?(span|font)[^>]*>/g,""));const l=t.querySelector(".usen");l&&(r.usageNote=Object(o.e)(i,l).replace(/<\/?(span|font|i)[^>]*>/g,"")),n.push(r)}return n.length>0?{result:n}:Object(o.j)()}(e,c))}},83:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(171),o=n(172),r=n(173),i=n(174),c=n(175);const s={baidu:a.auth,caiyun:o.auth,sogou:r.auth,tencent:i.auth,youdaotrans:c.auth};var l=n(2);const d=browser.i18n.getUILanguage(),u="zh-CN"===d?"zh-CN":"zh-TW"===d||"zh-HK"===d?"zh-TW":"en",p=function(){return{version:14,active:!0,runInBg:!1,analytics:!0,updateCheck:!0,noTypeField:!1,animation:!0,langCode:u,panelWidth:450,panelMaxHeightRatio:80,bowlOffsetX:15,bowlOffsetY:-45,darkMode:!1,panelCSS:"",fontSize:13,pdfSniff:!1,pdfStandalone:"",pdfWhitelist:[],pdfBlacklist:[["^(http|https)://[^/]*?cnki\\.net(/.*)?$","*://*.cnki.net/*"],["^(http|https)://[^/]*?googleusercontent\\.com(/.*)?$","*://*.googleusercontent.com/*"],["^(http|https)://sh-download\\.weiyun\\.com(/.*)?$","*://sh-download.weiyun.com/*"]],searchHistory:!1,searchHistoryInco:!1,editOnFav:!0,searchSuggests:!0,touchMode:!1,mode:{icon:!0,direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},pinMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},panelMode:{direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},qsPanelMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!0,meta:!1},instant:{enable:!1,key:"alt",delay:600}},bowlHover:!0,doubleClickDelay:450,tripleCtrl:!0,qsPreload:"clipboard",qsAuto:!0,qsLocation:"CENTER",qsFocus:!0,defaultPinned:!1,qsStandalone:!0,qssaHeight:600,qssaSidebar:"",qssaPageSel:!0,qssaRectMemo:!1,baWidth:-1,baHeight:550,baPreload:"selection",baAuto:!1,baOpen:"popup_panel",ctxTrans:{google:!0,youdaotrans:!0,baidu:!0,tencent:!1,caiyun:!1,sogou:!1},language:{chinese:!0,english:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},autopron:{cn:{dict:"",list:["zdic","guoyu"]},en:{dict:"",list:["bing","cambridge","cobuild","eudic","longman","urban","youdao"],accent:"uk"},machine:{dict:"",list:["google","sogou","tencent","baidu","caiyun"],src:"trans"}},whitelist:[],blacklist:[["^https://stackedit\\.io(/.*)?$","https://stackedit.io/*"],["^https://docs\\.google\\.com(/.*)?$","https://docs.google.com/*"],["^https://docs\\.qq\\.com(/.*)?$","https://docs.qq.com/*"]],contextMenus:{selected:l.d||!u.startsWith("zh-")?["view_as_pdf","google_translate","saladict"]:["view_as_pdf","caiyuntrs","google_translate","saladict"],all:{baidu_page_translate:"x",baidu_search:"https://www.baidu.com/s?ie=utf-8&wd=%s",bing_dict:"https://cn.bing.com/dict/?q=%s",bing_search:"https://www.bing.com/search?q=%s",caiyuntrs:"x",cambridge:"http://dictionary.cambridge.org/spellcheck/english-chinese-simplified/?q=%s",copy_pdf_url:"x",dictcn:"https://dict.eudic.net/dicts/en/%s",etymonline:"http://www.etymonline.com/index.php?search=%s",google_cn_page_translate:"x",google_page_translate:"x",google_search:"https://www.google.com/search?safe=off&newwindow=1&q=%s",google_translate:"https://translate.google.com/#auto/zh-CN/%s",google_cn_translate:"https://translate.google.cn/#auto/zh-CN/%s",guoyu:"https://www.moedict.tw/%s",iciba:"http://www.iciba.com/%s",liangan:"https://www.moedict.tw/~%s",longman_business:"http://www.ldoceonline.com/search/?q=%s",merriam_webster:"http://www.merriam-webster.com/dictionary/%s",microsoft_page_translate:"x",oxford:"http://www.oxforddictionaries.com/us/definition/english/%s",saladict:"x",saladict_standalone:"x",sogou_page_translate:"x",sogou:"https://fanyi.sogou.com/#auto/zh-CHS/%s",termonline:"https://www.termonline.cn/list.htm?k=%s",view_as_pdf:"x",youdao_page_translate:"x",youdao:"http://dict.youdao.com/w/%s",youglish:"https://youglish.com/search/%s"}},showedDictAuth:!1,dictAuth:JSON.parse(JSON.stringify(s))}}},832:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return s}));var a=n(31),o=n(3);const r=e=>"https://cn.bing.com/dict/search?q="+encodeURIComponent(e.replace(/\s+/g," ")),i="https://cn.bing.com",c=["data-pronunciation","data-mp3link","audiomd5"],s=(e,t,n,r)=>{const c=n.dicts.all.bing;return Object(a.a)("https://cn.bing.com/dict/clientsearch?mkt=zh-CN&setLang=zh&form=BDVEHC&ClientVer=BDDTV3.5.1.4320&q="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(async e=>{const n=await Object(o.c)(t.langCode);return e.querySelector(".client_def_hd_hd")?function(e,t,n){const a={result:{type:"lex",title:Object(o.g)(e,".client_def_hd_hd",n)}};if(t.phsym){const t=Array.from(e.querySelectorAll(".client_def_hd_pn_list"));t.length>0&&(a.result.phsym=t.map(e=>({lang:Object(o.g)(e,".client_def_hd_pn"),pron:d(e)})),a.audio=a.result.phsym.reduce((e,{lang:t,pron:n})=>(/us|美/i.test(t)?e.us=n:/uk|英/i.test(t)&&(e.uk=n),e),{}))}if(t.cdef){const t=e.querySelector(".client_def_container");if(t){const e=Array.from(t.querySelectorAll(".client_def_bar"));e.length>0&&(a.result.cdef=e.map(e=>({pos:Object(o.g)(e,".client_def_title_bar",n),def:Object(o.g)(e,".client_def_list",n)})))}}if(t.tense){const t=Array.from(e.querySelectorAll(".client_word_change_word"));t.length>0&&(a.result.infs=t.map(e=>(e.textContent||"").trim()))}if(t.sentence>0){const r=e.querySelectorAll(".client_sentence_list"),c=[];for(let e=0;e<r.length&&c.length<t.sentence;e++){const t=r[e];t.querySelectorAll(".client_sen_en_word").forEach(e=>{u(e,Object(o.g)(e))}),t.querySelectorAll(".client_sen_cn_word").forEach(e=>{u(e,Object(o.g)(e,n))}),t.querySelectorAll(".client_sentence_search").forEach(e=>{p(e,Object(o.g)(e))}),c.push({en:Object(o.e)(i,t,".client_sen_en"),chs:Object(o.e)(i,t,{selector:".client_sen_cn",transform:n}),source:Object(o.g)(t,".client_sentence_list_link"),mp3:d(t)})}a.result.sentences=c}if(Object.keys(a.result).length>2)return a;return Object(o.j)()}(e,c.options,n):e.querySelector(".client_trans_head")?function(e,t){const n=Object(o.g)(e,".client_sen_cn",t);if(n)return{result:{type:"machine",mt:n}};return Object(o.j)()}(e,n):c.options.related&&e.querySelector(".client_do_you_mean_title_bar")?function(e,t,n){const a={result:{type:"related",title:Object(o.g)(e,".client_do_you_mean_title_bar",n),defs:[]}};if(e.querySelectorAll(".client_do_you_mean_area").forEach(e=>{const t=e.querySelectorAll(".client_do_you_mean_list");t.length>0&&a.result.defs.push({title:Object(o.g)(e,".client_do_you_mean_title",n),meanings:Array.from(t).map(e=>{const t=Object(o.g)(e,".client_do_you_mean_list_word",n);return{href:"https://cn.bing.com/dict/search?q="+t,word:t,def:Object(o.g)(e,".client_do_you_mean_list_def",n)}})})}),a.result.defs.length>0)return a;return Object(o.j)()}(e,0,n):Object(o.j)()})};function l(e){const t=(e.getAttribute("onclick")||"").match(/((?:https?:)?\/\/[^'")\s]+\.mp3(?:\?[^'")\s]*)?|\/[^'")\s]+\.mp3(?:\?[^'")\s]*)?)/);return t?new URL(t[1],i).href:""}function d(e){if(!e)return"";const t=[];e instanceof Element&&t.push(e),t.push(...Array.from(e.querySelectorAll("[data-pronunciation], [data-mp3link], [audiomd5], [onclick]")));for(const e of t){for(const t of c)if(e.hasAttribute(t))return Object(o.d)(i,e,t);const t=l(e);if(t)return t}return""}function u(e,t){e.replaceWith(e.ownerDocument.createTextNode(t))}function p(e,t){const n=e.ownerDocument.createElement("span");n.className="dictBing-SentenceItem_HL",n.textContent=t,e.replaceWith(n)}},833:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return c})),n.d(t,"getSrcPage",(function(){return s})),n.d(t,"search",(function(){return l}));var a=n(16),o=n(665),r=n(12),i=n(353);const c=Object(a.a)(()=>new o.Caiyun({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.CAIYUN_TOKEN?{token:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.CAIYUN_TOKEN}:void 0})),s=()=>"https://fanyi.caiyunapp.com/",l=async(e,t,n,a)=>{const o=c(),s=o.getSupportLanguages();let{sl:l,tl:d,text:u}=await Object(r.a)(o,e,n.dicts.all.caiyun,t,a);const p=Object(i.getTranslator)();let h;try{h=await p.translate(u,l,d),s.includes(h.from)&&(l=h.from)}catch(e){}const m=t.dictAuth.caiyun.token,f=m?{token:m}:void 0;try{const e=await o.translate(u,l,d,f);return e.origin.tts=await p.textToSpeech(e.origin.paragraphs.join("\n"),e.from),e.trans.tts=await p.textToSpeech(e.trans.paragraphs.join("\n"),e.to),Object(r.c)({result:{id:"caiyun",sl:e.from,tl:e.to,slInitial:n.dicts.all.caiyun.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},s)}catch(e){return Object(r.c)({result:{id:"caiyun",sl:l,tl:d,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},834:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return s}));var a=n(31),o=n(97),r=n(3);const i=async(e,t,n)=>{let{lang:a}=n.dicts.all.cambridge.options;if("default"===a)switch(t.langCode){case"zh-CN":a="en-chs";break;case"zh-TW":a="en-chz";break;default:a="en"}switch(a){case"en":return"https://dictionary.cambridge.org/search/direct/?datasetsearch=english&q="+encodeURIComponent(e.trim().split(/\s+/).join("-"));case"en-chs":return"https://dictionary.cambridge.org/zhs/%E6%90%9C%E7%B4%A2/direct/?datasetsearch=english-chinese-simplified&q="+encodeURIComponent(e);case"en-chz":{const t=await Object(r.c)();return"https://dictionary.cambridge.org/zht/%E6%90%9C%E7%B4%A2/direct/?datasetsearch=english-chinese-traditional&q="+encodeURIComponent(t(e))}}},c="https://dictionary.cambridge.org",s=async(e,t,n,s)=>{const d=await i(e,t,n);try{return function(e,t){const n=[],a=[],i={};if(e.querySelectorAll(".entry-body__el").forEach((e,t)=>{if(!Object(r.g)(e,".headword"))return;const s=e.querySelector(".pos-header");s&&(s.querySelectorAll(".dpron-i").forEach(e=>{const t=e.querySelector(".daud");if(!t)return;const n=t.querySelector('source[type="audio/mpeg"]');if(!n)return;const a=Object(r.d)(c,n,"src");a&&(t.replaceWith(Object(o.d)(a)),!i.uk&&e.classList.contains("uk")&&(i.uk=a),!i.us&&e.classList.contains("us")&&(i.us=a))}),Object(r.m)(s,".share")),l(e);const d="d-cambridge-entry"+t;n.push({id:d,html:Object(r.e)(c,e)}),a.push({key:"#"+t,value:d,label:"#"+Object(r.g)(e,".di-title")+" "+Object(r.g)(e,".posgram")})}),n.length<=0){const t=e.querySelector(".idiom-block");t&&(Object(r.m)(t,".bb.hax"),l(t),n.push({id:"d-cambridge-entry-idiom",html:Object(r.e)(c,t)}))}if(n.length<=0&&t.related){const t=e.querySelector("link[rel=canonical]");if(t&&/dictionary\.cambridge\.org\/([^/]+\/)?spellcheck\//.test(t.getAttribute("href")||"")){const t=e.querySelector(".hfl-s.lt2b.lmt-10.lmb-25.lp-s_r-20");t&&n.push({id:"d-cambridge-entry-related",html:Object(r.e)(c,t)})}}if(n.length>0)return{result:n,audio:i,catalog:a};return Object(r.j)()}(await Object(a.a)(d,{withCredentials:!0}),n.dicts.all.cambridge.options)}catch(t){return function(e){return e&&e.response&&403===e.response.status}(t)?Object(r.h)({text:e,url:d}):Object(r.i)(t)}};function l(e){return e.querySelectorAll(".daccord_h").forEach(e=>{e.parentElement.classList.add("amp-accordion")}),e.querySelectorAll("amp-img").forEach(e=>{const t=document.createElement("img");t.setAttribute("src",Object(r.d)(c,e,"src"));const n=["width","height","title"];for(const a of n){const n=e.getAttribute(a);n&&t.setAttribute(a,n)}e.replaceWith(t)}),e.querySelectorAll("amp-audio").forEach(e=>{const t=e.querySelector("source");if(t){const n=Object(r.d)(c,t,"src");if(n)return void e.replaceWith(Object(o.d)(n))}e.remove()}),e.querySelectorAll("a.had").forEach(r.b),e}},835:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var a=n(31),o=n(3),r=n(97);const i=e=>"https://www.collinsdictionary.com/dictionary/english/"+encodeURIComponent(e.replace(/\s+/g,"-")),c=async(e,t,n,r)=>{e=encodeURIComponent(e.replace(/\s+/g,"-"));const{options:i}=n.dicts.all.cobuild,c=["https://www.collinsdictionary.com/dictionary/english/","https://www.collinsdictionary.com/zh/dictionary/english/"];i.cibaFirst&&c.reverse();try{return s(await Object(a.a)(c[0]+e),t)}catch(n){let r;try{r=await Object(a.a)(c[1]+e)}catch(e){return Object(o.i)()}return s(r,t)}};async function s(e,t){const n=await Object(o.c)(t.langCode),a={type:"collins",sections:[]},i={};return a.sections=[...e.querySelectorAll("[data-type-block]")].filter(e=>{const t=e.dataset.typeBlock||"";return t&&"Video"!==t&&"Trends"!==t&&"英语词汇表"!==t&&"趋势"!==t}).map(e=>{const a=e.dataset.typeBlock||"",c=e.dataset.titleBlock||"",s=e.dataset.numBlock||"",d=a+c+s,u=e.className||"";if("Learner"===a){if(!i.uk){const t=l(e);t&&(i.uk=t)}}else"English"===a?i.uk=l(e):"American"===a&&(i.us=l(e));const p=e.querySelector("#videos .video");if(p){const e=p.querySelector(".youtube-video");if(e&&e.dataset.embed){const n=t.panelWidth-25;return{id:d,className:u,type:a,title:c,num:s,content:`<iframe width="${n}" height="${n/560*315}" src="https://www.youtube-nocookie.com/embed/${e.dataset.embed}" frameborder="0" allow="accelerometer; encrypted-media"></iframe>`}}}return e.querySelectorAll(".audio_play_button").forEach(e=>{e.replaceWith(Object(r.d)(e.dataset.srcMp3))}),e.querySelectorAll("a.type-thesaurus").forEach(o.b),{id:d,className:u,type:a,title:c,num:s,content:Object(o.e)("https://www.collinsdictionary.com",e,{transform:n})}}),a.sections.length>0?{result:a,audio:i}:Object(o.j)()}function l(e){const t=e.querySelector(".pron .audio_play_button");if(t){const e=t.dataset.srcMp3;if(e)return e}}},836:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(31),o=n(3);const r=e=>"http://www.etymonline.com/search?q="+e,i="https://www.etymonline.com",c=(e,t,n,r)=>{const c=n.dicts.all.etymonline.options;return e=encodeURIComponent(e.replace(/\s+/g," ")),Object(a.a)("https://www.etymonline.com/word/"+e).catch(()=>Object(a.a)("https://www.etymonline.com/search?q="+e)).catch(o.i).then(e=>function(e,t){const n=[],a=[];(function(e,t,n,a){const r=Array.from(e.querySelectorAll('[class*="word--"]'));for(let c=0;c<r.length&&n.length<t.resultnum;c++){const l=r[c],d=Object(o.g)(l,'[class*="word__name--"]').trim();if(!d)continue;const h=l.querySelector('[class*="word__defination--"]>*'),m=s(e,h);m&&p(n,a,{title:d,def:m,href:Object(o.d)(i,l,"href"),chart:t.chart?u(l.querySelector('[class*="chart--"] img')):""})}})(e,t,n,a),0===n.length&&function(e,t,n,a){var o;const r=null===(o=e.querySelector('link[rel="canonical"]'))||void 0===o?void 0:o.getAttribute("href"),i=Array.from(e.querySelectorAll("section.max-w-none"));for(let o=0;o<i.length&&n.length<t.resultnum;o++){const c=i[o],h=c.querySelector("h2"),m=Array.from(c.children).find(e=>"SECTION"===e.tagName),f=l(h),g=s(e,m);h&&f&&g&&p(n,a,{title:f,def:g,href:d(r,h.id),chart:t.chart?u(c.querySelector('img[src*="chart/"]')):""})}}(e,t,n,a);0===n.length&&function(e,t,n,a){const r=Array.from(e.querySelectorAll("a.w-full.group[href]"));for(let c=0;c<r.length&&n.length<t.resultnum;c++){const h=r[c],m=h.querySelector("[id]")||h,f=h.closest('div[tabindex="-1"]'),g=null==f?void 0:f.querySelector('section[class*="prose"]'),b=l(m),y=s(e,g);b&&y&&p(n,a,{title:b,def:y,href:d(Object(o.d)(i,h,"href"),m.id),chart:t.chart&&f?u(f.querySelector('img[src*="chart/"]')):""})}}(e,t,n,a);if(n.length>0)return{result:n,catalog:a};return Object(o.j)()}(e,c))};function s(e,t){return t?(function(e,t){t.querySelectorAll(".crossreference").forEach(t=>{if("a"===t.tagName.toLowerCase())return;const n=Object(o.g)(t).trim();if(!n)return;const a=e.createElement("a");a.target="_blank",a.href="https://www.etymonline.com/word/"+n,a.textContent=n,t.replaceWith(a)})}(e,t),Object(o.e)(i,t)):""}function l(e){if(!e)return"";const t=Array.from(e.childNodes).map(e=>(e.textContent||"").trim()).filter(Boolean);return(t.length>0?t.join(" "):Object(o.g)(e)).replace(/\s+/g," ").trim()}function d(e,t){return e?!t||e.includes("#")?e:`${e}#${t}`:""}function u(e){return e?Object(o.d)(i,e,"src"):""}function p(e,t,n){const a=e.length,o="d-etymonline-entry"+a;e.push({id:o,...n}),t.push({key:"#"+a,value:o,label:"#"+n.title})}},837:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return i}));var a=n(31),o=n(3);const r=e=>"https://dict.eudic.net/dicts/en/"+e,i=(e,t,n,r)=>{e=encodeURIComponent(e.split(/\s+/).slice(0,2).join(" "));const i=n.dicts.all.eudic.options,s="https://dict.eudic.net/dicts/en/"+e;return Object(a.a)(s,{withCredentials:!1}).catch(o.i).then(c).then(e=>function(e,{resultnum:t}){const n=[],a={},r=Array.from(e.querySelectorAll("#lj_ting .lj_item"));for(let e=0;e<r.length&&n.length<t;e++){const t=r[e],i={chs:"",eng:""};if(i.chs=Object(o.g)(t,".exp"),!i.chs)continue;if(i.eng=Object(o.g)(t,".line"),!i.eng)continue;i.channel=Object(o.g)(t,".channel_title");const c=t.getAttribute("source");if(c){const e="https://fs-gateway.eudic.net/store_main/sentencemp3/"+c+".mp3";i.mp3=e,a.us||(a.us=e,a.uk=e)}n.push(i)}if(n.length>0)return{result:n,audio:a};return Object(o.j)()}(e,i))};function c(e){if(e.querySelector("#lj_ting .lj_item"))return e;const t=e.querySelector("#page-status");if(!t||!t.value)return Object(o.j)();const n="status="+encodeURIComponent(t.value);return Object(a.b)("https://dict.eudic.net/Dicts/en/tab-detail/-12",{method:"POST",data:n,headers:{"Content-Type":"application/x-www-form-urlencoded"},withCredentials:!1}).then(e=>(new DOMParser).parseFromString(e,"text/html")).catch(o.i)}},838:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return i})),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return s})),n.d(t,"getTTS",(function(){return l}));var a=n(16),o=n(666),r=n(12);const i=Object(a.a)(()=>new o.Google({env:"ext"})),c=(e,t,n)=>`https://translate.google.com/#auto/${"default"===n.dicts.all.google.options.tl?t.langCode:n.dicts.all.google.options.tl}/${e}`,s=async(e,t,n,a)=>{const o=n.dicts.all.google.options,c=i(),{sl:s,tl:l,text:d}=await Object(r.a)(c,e,n.dicts.all.google,t,a);try{const e=await c.translate(d,s,l,{concurrent:o.concurrent,apiAsFallback:!0,order:["cn","com"]});return Object(r.c)({result:{id:"google",sl:e.from,tl:e.to,slInitial:n.dicts.all.google.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},c.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"google",sl:s,tl:l,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},c.getSupportLanguages())}};async function l(e,t){return await i().textToSpeech(e,t)||""}},841:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return l}));var a=n(20),o=n(3),r=n(97),i=n(31);const c=(e,t,n)=>`${s}/${u(e,n)}/${encodeURIComponent(e)}`,s="https://dict.hujiang.com",l=async(e,t,n,a)=>{const c=a.langCode||u(e,n);return Object(i.a)(`https://dict.hujiang.com/${c}/${encodeURIComponent(e)}`,{withCredentials:!0}).catch(o.i).then(e=>function(e,t,n){if(e.querySelector(".word-notfound"))return d(n);const a=e.querySelector(".word-suggestions");if(a)return t.related?{result:{type:"related",langCode:n,content:Object(o.e)(s,a)}}:d(n);let i="";const c=e.querySelector(".word-details-multi .word-details-header");c&&(c.querySelectorAll(".word-details-tab").forEach((e,t)=>{e.dataset.categories=String(t)}),i=Object(o.e)(s,c));e.querySelectorAll(".word-audio").forEach(e=>{e.replaceWith(Object(r.d)(e.dataset.src))});const l=[...e.querySelectorAll(".word-details-pane")].map((e,t)=>`\n <div class="word-details-pane${0===t?" word-details-pane-active":""}">\n <div class="word-details-pane-header">\n ${Object(o.e)(s,e,".word-details-pane-header")}\n </div>\n <div class="word-details-pane-content">\n ${Object(o.e)(s,e,".word-details-pane-content")}\n </div>\n </div>\n `);return l.length>0?{result:{type:"lex",header:i,entries:l,langCode:n}}:d(n)}(e,n.dicts.all.hjdict.options,c))};function d(e){return{result:{type:"related",langCode:e,content:'<p style="text-align:center;">No Result</p>'}}}function u(e,t){return/\u00fc/i.test(e)?t.dicts.all.hjdict.options.uas:/\u00e4/i.test(e)?t.dicts.all.hjdict.options.aas:/\u00e9/i.test(e)?t.dicts.all.hjdict.options.eas:Object(a.f)(e)?"fr":Object(a.d)(e)?"de":Object(a.i)(e)?"es":Object(a.e)(e)?t.dicts.all.hjdict.options.engas:Object(a.g)(e)?"jp/jc":Object(a.h)(e)?"kr":Object(a.c)(e)?t.dicts.all.hjdict.options.chsas:"w"}},842:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return i}));var a=n(3),o=n(597);const r=async e=>"https://www.moedict.tw/~"+(await Object(a.c)())(e),i=(e,t,n,a)=>Object(o.moedictSearch)("c",e,t,n.dicts.all.liangan.options).then(e=>(e.result.h&&e.result.h.forEach(e=>{e.p&&(e.p=e.p.replace("<br>陸⃝"," [大陆]: "))}),e))},843:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return s}));var a=n(31),o=n(3),r=n(97);const i=e=>"https://www.ldoceonline.com/dictionary/"+e.trim().split(/\s+/).join("-"),c="https://www.ldoceonline.com",s=(e,t,n,i)=>{const s=n.dicts.all.longman.options;return Object(a.a)("https://www.ldoceonline.com/dictionary/"+e.toLocaleLowerCase().replace(/[^A-Za-z0-9]+/g,"-")).catch(o.i).then(e=>function(e,t){if(e.querySelector(".dictentry"))return function(e,t){const n={type:"lex",bussinessFirst:t.bussinessFirst,contemporary:[],bussiness:[]},a={};e.querySelectorAll(".speaker.exafile").forEach(e=>{const t=e.dataset.srcMp3;if(t){const n=e.parentElement;e.replaceWith(Object(r.d)(t)),n&&n.classList.contains("EXAMPLE")&&n.classList.add("withSpeaker")}}),t.wordfams&&(n.wordfams=Object(o.e)(c,e,".wordfams"));const i=e.querySelectorAll(".dictentry");let s="";for(let e=0;e<i.length;e++){const r=i[e],l=r.querySelector(".dictionary_intro");if(l){const e=l.textContent||"";s=e.includes("Contemporary")?"contemporary":e.includes("Business")?"bussiness":""}if(!s)continue;const d={title:{HWD:"",HYPHENATION:"",HOMNUM:""},prons:[],senses:[]},u=r.querySelector("a.topic");u&&(d.topic={title:u.textContent||"",href:Object(o.d)(c,u,"href")});const p=r.querySelector(".Head");if(!p)continue;d.title.HWD=Object(o.g)(p,".HWD"),d.title.HYPHENATION=Object(o.g)(p,".HYPHENATION"),d.title.HOMNUM=Object(o.g)(p,".HOMNUM"),d.phsym=Object(o.g)(p,".PronCodes");const h=p.querySelector(".LEVEL");if(h){const e={rate:0,title:""};e.rate=((h.textContent||"").match(/●/g)||[]).length,e.title=h.title,d.level=e}d.freq=Array.from(p.querySelectorAll(".FREQ")).map(e=>({title:e.title,rank:e.textContent||""})),d.pos=Object(o.g)(p,".POS"),p.querySelectorAll(".speaker").forEach(e=>{let t="us";e.title.includes("British")&&(t="uk");const n=e.getAttribute("data-src-mp3")||"";a[t]=n,d.prons.push({lang:t,pron:n})}),d.senses=Array.from(r.querySelectorAll(".Sense")).map(e=>Object(o.e)(c,e)),t.collocations&&(d.collocations=Object(o.e)(c,r,".ColloBox")),t.grammar&&(d.grammar=Object(o.e)(c,r,".GramBox")),t.thesaurus&&(d.thesaurus=Object(o.e)(c,r,".ThesBox")),t.examples&&(d.examples=Array.from(r.querySelectorAll(".exaGroup")).map(e=>Object(o.e)(c,e))),n[s].push(d)}if(n.contemporary.length<=0&&n.bussiness.length<=0)return Object(o.j)();return{result:n,audio:a}}(e,t);if(t.related)return function(e){const t=e.querySelector(".didyoumean");if(t)return{result:{type:"related",list:Object(o.e)(c,t)}};return Object(o.j)()}(e);return Object(o.j)()}(e,s))}},844:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return i})),n.d(t,"_getContentEle",(function(){return c})),n.d(t,"_getGroupsEles",(function(){return s})),n.d(t,"_getSynonyms",(function(){return l})),n.d(t,"_getEtymology",(function(){return d})),n.d(t,"_getTitle",(function(){return u})),n.d(t,"_getPartOfSpeech",(function(){return p})),n.d(t,"_getPrEle",(function(){return h})),n.d(t,"_getSyllable",(function(){return m})),n.d(t,"_getPhoneticEles",(function(){return f})),n.d(t,"_getPhoneticSymbol",(function(){return g})),n.d(t,"_getPhoneticAudio",(function(){return b})),n.d(t,"_getConjugation",(function(){return y})),n.d(t,"_getSectionsEles",(function(){return w})),n.d(t,"_getForms",(function(){return x})),n.d(t,"_getSectionTitle",(function(){return v})),n.d(t,"_getMeaningGroupEles",(function(){return E})),n.d(t,"_getMeaningEles",(function(){return O})),n.d(t,"_getExpaining",(function(){return _})),n.d(t,"_getExamples",(function(){return k})),n.d(t,"getResult",(function(){return C}));var a=n(31),o=n(3);const r=e=>"https://www.merriam-webster.com/dictionary/"+e,i=(e,t,n,r)=>Object(a.a)("https://www.merriam-webster.com/dictionary/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>({result:C(e)}));function c(e){const t=e.querySelector("#left-content");if(!t||!t.querySelector("div[id^=dictionary-entry]"))throw new Error("NO_RESULT");return t}function s(e){return new Array(...e.querySelectorAll("div.entry-word-section-container[id^=dictionary-entry]").values())}function l(e){var t,n;const a=null===(t=e.querySelector("#synonyms"))||void 0===t?void 0:t.querySelector(".content-section-body");if(!a)return;const o=[...null==a?void 0:a.querySelectorAll(".function-label").values()],r=[...null==a||null===(n=a.querySelectorAll("ul.synonyms-antonyms-grid-list"))||void 0===n?void 0:n.values()];if(!r)return;const i=[...r].map(e=>[...e.querySelectorAll("a[lang]").values()].map(e=>{var t;return null===(t=e.textContent)||void 0===t?void 0:t.replace(/\s+/g," ").trim()}).filter(e=>!!e));return 0!==o.length&&0!==i.length?o.map((e,t)=>{var n;return[null===(n=e.textContent)||void 0===n?void 0:n.trim(),[...i[t]]]}):void 0}function d(e){var t;const n=null===(t=e.querySelector("#word-history"))||void 0===t?void 0:t.querySelector(".etymology-content-section");if(!n)return;const a=[...n.querySelectorAll("p.function-label").values()].map(e=>e.textContent),o=[...n.querySelectorAll("p.et")].map(e=>{var t;return null===(t=e.textContent)||void 0===t?void 0:t.trim()});return 0!==o.length?a.length>0?a.map((e,t)=>[e,o[t]]):o.map(e=>["",e]):void 0}function u(e){var t,n;return(null===(t=e.querySelector("div.entry-header-content"))||void 0===t||null===(n=t.querySelector(".hword"))||void 0===n?void 0:n.textContent)||void 0}function p(e){var t,n;return(null===(t=e.querySelector("h2.parts-of-speech"))||void 0===t||null===(n=t.querySelector("a.important-blue-link"))||void 0===n?void 0:n.textContent)||void 0}function h(e){return e.querySelector("div.word-syllables-prons-header-content")||void 0}function m(e){var t;return(null===(t=e.querySelector("span.word-syllables-entry"))||void 0===t?void 0:t.textContent)||void 0}function f(e){var t,n;const a=null===(t=e.querySelector("span.prons-entries-list-inline"))||void 0===t||null===(n=t.querySelectorAll(".prons-entry-list-item"))||void 0===n?void 0:n.values();return a?[...a]:void 0}function g(e){var t,n;return"a"===e.tagName?(null===(n=e.textContent)||void 0===n?void 0:n.trim())||void 0:(null===(t=e.childNodes.item(0).textContent)||void 0===t?void 0:t.trim())||void 0}function b(e){const t=e.getAttribute("data-dir"),n=e.getAttribute("data-file"),a=e.getAttribute("data-lang");return t&&n&&a?`https://media.merriam-webster.com/audio/prons/${a.replace("_","/")}/mp3/${t}/${n}.mp3`:void 0}function y(e){var t,n;const a=null===(t=e.querySelector(".row.headword-row.header-ins"))||void 0===t||null===(n=t.querySelectorAll("span.vg-ins"))||void 0===n?void 0:n.values();return a?new Array(...a).map(e=>e.textContent).join().trim():void 0}function w(e){const t=e.querySelectorAll("div.vg").values();return t?[...t]:void 0}function x(e){return[""]}function v(e){var t,n;return(null===(t=e.querySelector("p.vd"))||void 0===t||null===(n=t.querySelector("a.important-blue-link"))||void 0===n?void 0:n.textContent)||void 0}function E(e){const t=e.querySelectorAll("div.vg-sseq-entry-item").values();return t?[...t]:void 0}function O(e){const t=e.querySelectorAll("div.sb-entry").values();return t?[...t]:void 0}function _(e){var t,n,a,o;return(null===(t=e.querySelector("span.dtText"))||void 0===t||null===(n=t.textContent)||void 0===n?void 0:n.trim())||(null===(a=e.querySelector("span.unText"))||void 0===a||null===(o=a.textContent)||void 0===o?void 0:o.trim())}function k(e){const t=[],n=e.querySelectorAll("span.ex-sent.sents").values();if(n){for(const e of n)e.textContent&&t.push(e.textContent);return t.length>0?t:void 0}}function C(e){const t=c(e),n=[],a=l(t),o=d(t);for(const e of s(t)){const t=u(e),a=p(e),o=y(e),r={},i=[],c=[""],s=h(e);if(s){r.syllable=m(s),r.phonetics=[];const e=f(s);if(e)for(const t of e)if(t){const e=g(t),n=b(t);r.phonetics.push({symbol:e,audio:n})}}const l=w(e);if(l)for(const e of l){const t=v(e),n=[],a=E(e);if(a)for(const e of a){const t=[],a=O(e);if(a)for(const e of a){const n=_(e),a=k(e);t.push({explaining:n,examples:a})}n.push(t)}i.push({title:t,meaningGroups:n})}n.push({title:t,pos:a,pr:r,conjugation:o,sections:i,forms:c})}return{groups:n,synonyms:a,etymology:o}}},845:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return d})),n.d(t,"search",(function(){return u})),n.d(t,"getTTS",(function(){return E}));var a=n(3),o=n(47),r=n.n(o),i=n(139),c=n.n(i);const s="https://api.mojidict.com/app/mojidict/api/v1",l="https://www.mojidict.com",d=async e=>{var t,n,a;const o=await p(e).catch(()=>null),r=null==o||null===(t=o.word)||void 0===t||null===(n=t.list)||void 0===n||null===(a=n[0])||void 0===a?void 0:a.targetId;return r?`${l}/details/${r}`:l},u=async(e,t,n,o)=>{var i,c,l;const d=null===(i=(await p(e)).word)||void 0===i||null===(c=i.list)||void 0===c?void 0:c.find(e=>102===e.targetType);if(!(null==d?void 0:d.targetId))return Object(a.j)();const u=d.targetId,[g,v,O]=await Promise.all([h(u),m("example",{text:e,limit:"3",needNotation:"true",onlyJP:"true",onlyFull:"true",targetTypes:"121",wordId:u}).catch(()=>({list:[]})),m("examQuestion",{text:e,limit:"3",highlight:"false",onlyFull:"true",wordId:u}).catch(()=>({list:[]}))]),_=function(e,t,n,a){var o,r,i;const c=t.word,s={};c&&(s.word={tarId:e,spell:c.spell,pron:[c.pron,c.accent].filter(Boolean).join(" "),excerpt:c.excerpt,imgUrl:c.imgUrl});return s.details=null===(o=t.details)||void 0===o?void 0:o.map(e=>({objectId:e.objectId,title:y(e.partOfSpeech,null==c?void 0:c.excerpt),subdetails:f(e,t.subdetails,t.examples)})).filter(e=>e.subdetails&&e.subdetails.length>0),s.examples=null===(r=n.list)||void 0===r?void 0:r.map(e=>({objectId:e.targetId,title:e.title,trans:e.excerpt,notationTitle:w(e.notationTitle),source:e.srcTargetTitle})),s.examQuestions=null===(i=a.list)||void 0===i?void 0:i.map(e=>({objectId:e.targetId,title:e.title,excerpt:e.excerpt})),s}(u,g,v,O);if(null===(l=g.word)||void 0===l?void 0:l.hasRelated){const e=await async function(e){var t;const{data:n}=await r()({method:"post",url:s+"/word/related",headers:{...x(),"content-type":"application/json"},data:{wordIds:[e]}}),a=null===(t=n.list)||void 0===t?void 0:t[0];if(!a)return[];return[b("同义词",a.synonyms),b("反义词",a.antonyms),b("近形词",a.paronyms),b("多音词",a.polyphonics),a.subject?{title:"关联主题",words:a.subject.map(e=>({objectId:e.relatedId,title:e.title,excerpt:e.trans}))}:void 0].filter(e=>!!e&&e.words.length>0)}(u).catch(()=>[]);e.length>0&&(_.related=e)}return _.word&&"mojidict"===t.autopron.cn.dict?(_.word.tts=await E(u,102),{result:_,audio:{py:_.word.tts}}):{result:_}};async function p(e){try{const{data:t}=await r()({method:"get",url:`${s}/search/all${v({text:e,types:["102","106","103","671"],highlight:"true"})}`,headers:x()});return t}catch(e){return Object(a.i)(e)}}async function h(e){try{const{data:t}=await r()({method:"get",url:`${s}/word/detailInfo${v({wordId:e})}`,headers:x()});return t.word?t:Object(a.j)()}catch(e){return Object(a.i)(e)}}async function m(e,t){const{data:n}=await r()({method:"get",url:`${s}/search/${e}${v(t)}`,headers:x()});return n}function f(e,t=[],n=[]){const a=t.filter(t=>t.detailsId===e.objectId).reduce((e,t)=>{const n=t.relaId||t.objectId,a=e[n]||{};return/^ja/i.test(t.lang)?a.ja=t:a.zh=t,e[n]=a,e},{});return Object.keys(a).map(e=>{var t,o,r;const i=a[e],c=i.zh||i.ja;return{objectId:(null==c?void 0:c.objectId)||e,title:(null===(t=i.zh)||void 0===t?void 0:t.title)||(null===(o=i.ja)||void 0===o?void 0:o.title)||"",titleJa:null===(r=i.ja)||void 0===r?void 0:r.title,examples:g(e,n)}})}function g(e,t){const n=t.filter(t=>t.subdetailsId===e).reduce((e,t)=>{const n=t.relaId||t.objectId,a=e[n]||{};return/^ja/i.test(t.lang)?a.ja=t:a.zh=t,e[n]=a,e},{});return Object.keys(n).map(e=>{var t,a,o,r;const i=n[e],c=i.ja||i.zh;return{objectId:(null==c?void 0:c.objectId)||e,title:(null===(t=i.ja)||void 0===t?void 0:t.title)||(null===(a=i.zh)||void 0===a?void 0:a.title)||"",trans:null===(o=i.zh)||void 0===o?void 0:o.title,notationTitle:w(null===(r=i.ja)||void 0===r?void 0:r.notationTitle)}})}function b(e,t){return t&&t.length>0?{title:e,words:t.map(e=>({objectId:e.objectId||e.id,title:e.spell,excerpt:e.pron}))}:void 0}function y(e=[],t=""){var n;const a=e.map(e=>C[e]).filter(e=>!!e);return a.length>0?a.join("・"):(null===(n=t.match(/^\[[^\]]+\]/))||void 0===n?void 0:n[0])||"释义"}function w(e){if(e)return c.a.sanitize(e,{ALLOWED_TAGS:["ruby","rb","rp","rt","span"],ALLOWED_ATTR:["class","hiragana","lemma","lemma-t","roma"]})}function x(){return{accept:"application/json, text/plain, */*",origin:l,referer:l+"/","x-moji-app-id":"com.mojitec.mojidict","x-moji-app-version":"4.15.13","x-moji-device-id":_(),"x-moji-os":"PCWeb"}}function v(e){const t=new URLSearchParams;return Object.keys(e).forEach(n=>{const a=e[n];Array.isArray(a)?a.forEach(e=>t.append(n,e)):t.append(n,a)}),"?"+t.toString()}async function E(e,t){try{var n,a;const{data:o}=await r()({method:"post",url:"https://api.mojidict.com/parse/functions/tts-fetch",headers:{accept:"*/*",origin:l,referer:l+"/","content-type":"text/plain"},data:O({tarId:e,tarType:t,voiceId:"f002"})});return(null===(n=o.result)||void 0===n||null===(a=n.result)||void 0===a?void 0:a.url)||""}catch(e){!1}return""}function O(e){return JSON.stringify({_ApplicationId:"E62VyFVLMiW7kvbtVq3p",_ClientVersion:"js4.3.1",_InstallationId:_(),g_os:"PCWeb",g_ver:"4.15.13",...e})}function _(){return k()+k()+"-"+k()+"-"+k()+"-"+k()+"-"+k()+k()+k()}function k(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}const C={1:"名",2:"代",3:"动",4:"形",5:"形动",6:"副",7:"连体",8:"接续",9:"感",10:"助",11:"助动",12:"接头",13:"接尾",14:"惯用",15:"词组"}},846:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return s}));var a=n(3),o=n(20),r=n(47),i=n.n(r);const c=e=>Object(o.g)(e)?"https://ja.dict.naver.com/#/search?query="+encodeURIComponent(e):"https://zh.dict.naver.com/#/search?query="+encodeURIComponent(e),s=(e,t,n,r)=>{const{options:c}=n.dicts.all.naver;return"ja"===r.lang||c.hanAsJa||Object(o.g)(e)||c.korAsJa&&Object(o.h)(e)?async function(e){var t;const{data:n}=await i.a.get("https://ja.dict.naver.com/api3/jako/search?query="+encodeURIComponent(e)).catch(a.i),o=null==n||null===(t=n.searchResultMap)||void 0===t?void 0:t.searchResultListMap;if(!o)return Object(a.j)();return{result:{lang:"ja",entry:o}}}(e):async function(e){var t;const{data:n}=await i.a.get(`https://zh.dict.naver.com/api3/zhko/search?query=${encodeURIComponent(e)}&lang=zh_CN`).catch(a.i),o=null==n||null===(t=n.searchResultMap)||void 0===t?void 0:t.searchResultListMap;if(!o)return Object(a.j)();return{result:{lang:"zh",entry:o}}}(e)}},847:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(31),o=n(3);const r=e=>"https://www.oxfordlearnersdictionaries.com/search/english/direct/?q="+e,i="https://www.oxfordlearnersdictionaries.com",c=(e,t,n,r)=>Object(a.a)("https://www.oxfordlearnersdictionaries.com/search/english/direct/?q="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>function(e){const t={title:"",idioms:[],senses:[],pron:{uk:{},us:{}}},n=e.querySelector("#entryContent");if(!n)return Object(o.j)();const a=n.querySelector(".symbols>a");a&&(t.symbol=(a.getAttribute("href")||"").split("level=")[1]);const r=n.querySelector(".top-container .webtop");if(r){t.title=Object(o.g)(r,".headword"),t.pos=Object(o.g)(r,".pos");Array.from(r.querySelectorAll(":scope>.phonetics>div")).map((e,n)=>{const a=n?"us":"uk",r=e.querySelector(".sound");let i;r&&(i=r.getAttribute("data-src-mp3"));const c=Object(o.g)(e,".phon");t.pron[a].sound=i,t.pron[a].phon=c})}const c=Array.from(n.querySelectorAll(".entry>ol>.sense")),s=Array.from(n.querySelectorAll(".senses_multiple .shcut-g")),l=Array.from(n.querySelectorAll(".entry>.pv-g"));function d(e,t){const n={},a=e.querySelector(".sensetop .symbols>a");a&&(n.symbols=(a.getAttribute("href")||"").split("level=")[1]),n.grammar=Object(o.g)(e.querySelector(".grammar")),n.labels=Object(o.g)(e.querySelector(".labels"));const r=e.querySelector(".variants");r&&(n.variantsIsBlock="vf"===r.getAttribute("type"),n.variants=Object(o.e)(i,e,".variants")),n.use=Object(o.g)(e.querySelector(".use")),n.cf=Object(o.g)(e.querySelector(":scope>.cf")||e.querySelector(".sensetop>.cf")),n.def=Object(o.g)(e.querySelector(".def")),n.examples=Object(o.f)(i,e,".examples"),t.means.push(n)}if(l.length)t.isPhrasal=!0,l.map(e=>{const n={title:"",means:[]},a=e.querySelector(".top-container .pv");a&&(n.symbol=a.getAttribute("cefr")||"",n.title=Object(o.f)(i,a));e.querySelector(".variants")&&(n.variants=Object(o.e)(i,e,".variants"));const r=Array.from(e.querySelectorAll(".senses_multiple .sense")),c=Array.from(e.querySelectorAll(".sense_single .sense"));(r.length&&r||c.length&&c||[]).map(e=>d(e,n)),t.senses.push(n)});else if(c.length){const e={title:"",means:[]};c.map(t=>d(t,e)),t.senses.push(e)}else s.map(e=>{const n={title:"",means:[]};n.title=Object(o.g)(e.querySelector(".shcut"));Array.from(e.querySelectorAll(".sense")).map(e=>d(e,n)),t.senses.push(n)});const u=n.querySelector(".senses_multiple>.collapse>span");u&&"wordorigin"===u.getAttribute("unbox")&&(t.origin=Object(o.e)(i,u,".body"));return Array.from(n.querySelectorAll(".idioms .idm-g")).map(e=>{const n={},a=e.querySelector(".top-container");a&&(n.title=Object(o.e)(i,a,".webtop")),n.labels=Object(o.g)(e.querySelector(".labels")),n.def=Object(o.g)(e.querySelector(".def")),n.examples=Object(o.f)(i,e,".examples"),t.idioms.push(n)}),t.title||t.senses.length>0||t.idioms.length>0?{result:t}:Object(o.j)()}(e))},848:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c})),n.d(t,"getDetail",(function(){return l}));var a=n(31),o=n(3);const r=e=>"https://www.91dict.com/words?w="+encodeURIComponent(e.replace(/\s+/g,"+")),i="https://www.91dict.com",c=(e,t,n,r)=>Object(a.a)("https://www.91dict.com/words?w="+encodeURIComponent(e.replace(/\s+/g,"+"))).catch(o.i).then(s);function s(e){const t=[],n=e.querySelectorAll(".tmInfo .slides > li");return n.length<=0?Object(o.j)():(n.forEach(e=>{const n=Object(o.g)(e.querySelector(".mTop")).trim();if(!n)return;const a=d(e);if(!a)return;const r={key:"",title:n,detail:"",slide:a,context:[]},c=e.querySelector(".viewdetail");c&&(r.detail=Object(o.d)(i,c,"href")),e.querySelectorAll(".mTextend .box").forEach(e=>{const t=Object(o.g)(e,".sty1");t&&r.context.push({title:t,content:[...e.querySelectorAll(".sty2 > *")].map(e=>Object(o.g)(e))})}),r.key=n+a.cover,t.push(r)}),t.length>0?{result:t}:Object(o.j)())}async function l(e){const t=[];try{(await Object(a.a)(e)).querySelectorAll(".item li").forEach(e=>{const n=d(e);n&&t.push(n)})}catch(e){console.warn(e)}return t}function d(e){const t={cover:"",mp3:"",en:"",chs:""},n=e.querySelector("img");if(!n)return null;const a=Object(o.d)(i,n,"src");if(!a)return null;t.cover=a;const r=e.querySelector(".mTop audio");return r&&(t.mp3=Object(o.d)(i,r,"src")),t.en=Object(o.e)(i,e,".mBottom"),t.chs=Object(o.g)(e,".mFoot").trim(),t}},849:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return i})),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return s}));var a=n(16),o=n(667),r=n(12);const i=Object(a.a)(()=>new o.Sogou({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.SOGOU_PID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.SOGOU_KEY?{pid:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.SOGOU_PID,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.SOGOU_KEY}:void 0})),c=(e,t,n)=>`https://fanyi.sogou.com/#auto/${"default"===n.dicts.all.sogou.options.tl?"zh-CN"===t.langCode?"zh-CHS":"zh-TW"===t.langCode?"zh-CHT":"en":n.dicts.all.sogou.options.tl}/${e}`,s=async(e,t,n,a)=>{if(!t.dictAuth.sogou.pid)return Object(r.c)({result:{requireCredential:!0,id:"sogou",sl:"auto",tl:"auto",slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},[]);const o=i(),{sl:c,tl:s,text:l}=await Object(r.a)(o,e,n.dicts.all.sogou,t,a),d={pid:t.dictAuth.sogou.pid,key:t.dictAuth.sogou.key};try{const e=await o.translate(l,c,s,d);return Object(r.c)({result:{id:"sogou",sl:e.from,tl:e.to,slInitial:n.dicts.all.sogou.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"sogou",sl:c,tl:s,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},850:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return c})),n.d(t,"getSrcPage",(function(){return s})),n.d(t,"search",(function(){return l}));var a=n(16),o=n(668),r=n(12),i=n(353);const c=Object(a.a)(()=>new o.Tencent({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.TENCENT_SECRETID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.TENCENT_SECRETKEY?{secretId:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.TENCENT_SECRETID,secretKey:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.TENCENT_SECRETKEY}:void 0})),s=(e,t,n)=>`https://fanyi.qq.com/#auto/${"default"===n.dicts.all.tencent.options.tl?"zh-CN"===t.langCode?"zh-CHS":"zh-TW"===t.langCode?"zh-CHT":"en":n.dicts.all.tencent.options.tl}/${e}`,l=async(e,t,n,a)=>{const o=c(),{sl:s,tl:l,text:d}=await Object(r.a)(o,e,n.dicts.all.tencent,t,a),u=t.dictAuth.tencent.secretId,p=t.dictAuth.tencent.secretKey,h=u&&p?{secretId:u,secretKey:p}:void 0;if(!h)return Object(r.c)({result:{requireCredential:!0,id:"tencent",sl:"auto",tl:"auto",slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},[]);try{const e=await o.translate(d,s,l,h),t=Object(i.getTranslator)();return e.origin.tts=await t.textToSpeech(e.origin.paragraphs.join("\n"),e.from),e.trans.tts=await t.textToSpeech(e.trans.paragraphs.join("\n"),e.to),Object(r.c)({result:{id:"tencent",sl:e.from,tl:e.to,slInitial:n.dicts.all.tencent.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"tencent",sl:s,tl:l,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},854:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return l}));var a=n(31),o=n(3),r=n(47),i=n.n(r);const c=e=>"http://www.urbandictionary.com/define.php?term="+e,s="https://www.urbandictionary.com",l=(e,t,n,r)=>{const c=n.dicts.all.urban.options;return Object(a.a)("http://www.urbandictionary.com/define.php?term="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>async function(e,{resultnum:t}){const n=[],a={},r=Array.from(e.querySelectorAll(".def-panel, .definition"));if(r.length<=0)return Object(o.j)();const c=[];for(let e=0;e<r.length&&n.length<t;e++){var l;const t=null===(l=r[e])||void 0===l?void 0:l.getAttribute("data-defid");t&&c.push(t)}const u=await async function(e){var t,n;const a={},r=await i.a.get("https://api.urbandictionary.com/v0/uncacheable",{params:{ids:e}}).catch(o.i);if(!(null==r?void 0:r.data))return null;return null==r||null===(t=r.data)||void 0===t||null===(n=t.thumbs)||void 0===n||n.map(e=>{a[e.defid]={up:e.up,down:e.down}}),a}(c.join(","));for(let e=0;e<r.length&&n.length<t;e++){var p,h,m,f,g;const t=r[e],i=(null===(p=r[e])||void 0===p?void 0:p.getAttribute("data-defid"))||"",c={title:""};if(c.title=Object(o.g)(t,".word"),!c.title)continue;const l=t.querySelector(".play-sound");if(l&&l.dataset.urls)try{const e=JSON.parse(l.dataset.urls)[0];e&&(c.pron=e,a.us=e)}catch(e){}const b=t.querySelector("[data-tts-url]");if(!c.pron&&(null==b?void 0:b.dataset.ttsUrl)&&(c.pron=b.dataset.ttsUrl,a.us=c.pron),c.meaning=Object(o.e)(s,t,".meaning"),/There aren't any definitions for/i.test(c.meaning||""))continue;c.example=Object(o.e)(s,t,".example");const y=t.querySelector(".gif > img");if(y){const e=y.nextElementSibling;c.gif={src:y.src,attr:Object(o.g)(e)}}const w=Array.from(t.querySelectorAll(".tags a"));w&&w.length>0&&(c.tags=w.map(e=>(e.textContent||" ").slice(1))),c.contributor=Object(o.g)(t,".contributor"),c.thumbsUp=null!==(h=null==u||null===(m=u[i])||void 0===m?void 0:m.up)&&void 0!==h?h:d(t,"up"),c.thumbsDown=null!==(f=null==u||null===(g=u[i])||void 0===g?void 0:g.down)&&void 0!==f?f:d(t,"down"),n.push(c)}return n.length>0?{result:n,audio:a}:Object(o.j)()}(e,c))};function d(e,t){const n=e.querySelector(`input[name="direction"][value="${t}"] + button`),a=Object(o.g)(n,"span").replace(/,/g,"").trim();return a?Number(a):void 0}},855:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return i}));var a=n(31),o=n(3);const r=e=>"https://www.vocabulary.com/dictionary/"+e,i=(e,t,n,r)=>Object(a.a)("https://www.vocabulary.com/dictionary/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(c);function c(e){const t=Object(o.g)(e,".short");if(!t)return Object(o.j)();const n=Object(o.g)(e,".long");return n?{result:{long:n,short:t}}:Object(o.j)()}},856:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(31),o=n(3);const r=e=>"https://www.weblio.jp/content/"+e,i="https://www.weblio.jp",c=(e,t,n,r)=>Object(a.a)("https://www.weblio.jp/content/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(s);function s(e){const t=[],n=e.querySelectorAll("#cont>.pbarT .pbarTL>a");return e.querySelectorAll("#cont>.kijiWrp>.kiji").forEach((e,a)=>{const r=n[a];r&&"百科事典"!==r.title&&t.push({title:Object(o.f)(i,r,{config:{}}),def:Object(o.e)(i,e,{config:{}})})}),t.length<=0&&e.querySelectorAll(".section-card .basic-card").forEach(e=>{const n=Object(o.g)(e,".pbarT h2");n&&(Object(o.m)(e,".pbarT"),t.push({title:n,def:Object(o.e)(i,e,{config:{}})}))}),t.length>0?{result:t}:Object(o.j)()}},857:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return d}));var a=n(31),o=n(3),r=n(97);const i=e=>"https://ejje.weblio.jp/content/"+encodeURIComponent(e.replace(/\s+/g,"+")),c="https://ejje.weblio.jp";function s(e){e.querySelectorAll(".fa-volume-up").forEach(e=>{const t=e.querySelector("source");t&&e.replaceWith(Object(r.d)(t.getAttribute("src")))})}function l(e,t){const n=e.ownerDocument.createElement("div");n.className="summaryHead",n.innerHTML=t,e.replaceWith(n)}const d=(e,t,n,r)=>Promise.resolve(i(e,t,n)).then(e=>Object(a.a)(e)).catch(o.i).then(u);function u(e){const t=[];return e.querySelectorAll(".mainBlock").forEach(e=>{if("summary"===e.id){let n="";const a=e.querySelector(".summaryTbl");if(a){n+=Object(o.f)(c,a,".summaryL h1");const e=a.querySelector(".summaryC audio source");e&&(n+=Object(r.e)(e.getAttribute("src"))),l(a,n)}else{const t=e.querySelector(".summary-title h1"),n=e.querySelector(".summary-title-wrp");if(t&&n){const a=e.querySelector(".contentTopAudioIcon source, .summary-icon-cells audio source");l(n,Object(o.f)(c,t)+Object(r.e)(a&&a.getAttribute("src")))}else s(e)}return Object(o.n)(e,"#leadBtnWrp"),Object(o.n)(e,".addLmFdWr"),Object(o.n)(e,".flex-rectangle-ads-frame"),Object(o.n)(e,".outsideLlTable"),void t.push({content:Object(o.f)(c,e)})}if(!e.className.includes("hlt_")||e.classList.contains("hlt_CPRHT")||e.classList.contains("hlt_RLTED"))return;let n="",a=e.querySelector(".wrp");if(a){if(n=Object(o.g)(a,".dictNm"),n.includes("Wiktionary"))return;a.remove()}else a=e.querySelector(".qotH"),a&&(n=Object(o.g)(a,".qotHT"),a.remove());Object(o.n)(e,".hideDictWrp"),Object(o.n)(e,".kijiFoot"),Object(o.n)(e,".addToSlBtnCntner"),s(e),e.querySelectorAll("br").forEach(e=>{!function(e){e.classList.add("br");const t=e.ownerDocument.createElement("div");t.className=e.className,e.replaceWith(t)}(e)}),e.querySelectorAll("a").forEach(e=>{e.classList.contains("crosslink")||Object(o.b)(e)}),t.push({title:n,content:Object(o.f)(c,e)})}),t.length>0?{result:t}:Object(o.j)()}},858:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return s}));var a=n(47),o=n.n(a),r=n(20),i=n(3);const c=(e,t,n)=>{const{lang:a}=n.dicts.all.wikipedia.options;return`https://${l(e,a)}.wikipedia.org/${a.startsWith("zh-")?a:"wiki"}/${encodeURIComponent(e)}`},s=(e,t,n,a)=>{const{lang:r}=n.dicts.all.wikipedia.options,c=function(e,t,n){if(!e)return{subdomain:l(t,n),title:t};const a=e.match(/^https?:\/\/([^/.]+)\.wikipedia\.org\/(?:wiki|[^/]+)\/([^#?]+)/);if(a)return{subdomain:a[1],title:decodeURIComponent(a[2]).replace(/_/g," ")};return{subdomain:l(t,n),title:e}}(a.url,e,r);return o.a.get((s=c.subdomain,u=c.title,`https://${s}.wikipedia.org/w/api.php?action=parse&page=`+encodeURIComponent(u)+"&prop=text|displaytitle|langlinks&format=json&formatversion=2&redirects=1&disableeditsection=1&disabletoc=1"),{withCredentials:!1}).catch(i.i).then(({data:e})=>function(e,t){if(e.error||!e.parse||!e.parse.text)return Object(i.j)(e.error);const n=(new DOMParser).parseFromString(e.parse.text,"text/html"),a=Object(i.f)(`https://${t}.wikipedia.org/`,n,{selector:".mw-parser-output"}),o=function(e){if(!e)return"";return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent||""}(e.parse.displaytitle)||e.parse.title;if(!o||!a)return Object(i.j)();return{result:{title:o,content:a,langList:d(e.parse.langlinks)}}}(e,c.subdomain));var s,u};function l(e,t){return t.startsWith("zh-")?"zh":"auto"===t?Object(r.g)(e)?"ja":Object(r.c)(e)?"zh":"en":t}function d(e=[]){return e.map(e=>{if(e.url&&e.title)return{url:e.url,title:e.langname?`${e.langname} - ${e.title}`:e.autonym?`${e.autonym} - ${e.title}`:e.title}}).filter(e=>!!e)}},859:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(31),o=n(3);const r=e=>"https://dict.youdao.com/w/"+encodeURIComponent(e.replace(/\s+/g," ")),i="http://www.youdao.com",c=async(e,t,n,r)=>{const c=n.dicts.all.youdao.options,s=await Object(o.c)(t.langCode);return Object(a.a)("https://dict.youdao.com/w/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>function(e,t,n){const a=e.querySelector(".error-typo");if(!a)return function(e,t,n){const a={type:"lex",title:Object(o.g)(e,".keyword",n),stars:0,rank:Object(o.g)(e,".rank"),pattern:Object(o.g)(e,".pattern",n),prons:[],collins:[]},r={},c=e.querySelector(".star");c&&(a.stars=Number((c.className.match(/\d+/)||[0])[0]));e.querySelectorAll(".baav .pronounce").forEach(e=>{const t=e.textContent||"",n=e.querySelector(".dictvoice");if(n&&n.dataset.rel){const e="https://dict.youdao.com/dictvoice?audio="+n.dataset.rel;a.prons.push({phsym:t,url:e}),t.includes("英")?r.uk=e:t.includes("美")&&(r.us=e)}}),t.basic&&(a.basic=Object(o.e)(i,e,{selector:"#phrsListTab .trans-container",transform:n}));t.collins&&e.querySelectorAll("#collinsResult .wt-container").forEach(t=>{const r={title:"",content:""},c=t.querySelector(":scope > .title.trans-tip");c&&(Object(o.m)(c,".do-detail"),r.title=Object(o.g)(c),c.remove());const s=t.querySelector(".star");if(s){const t=/star(\d+)/.exec(String(s.className));if(t){const n=+t[1],a=[];for(let t=0;t<5;t++){const o=e.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("viewBox","0 0 426.67 426.67"),o.setAttribute("width","1em"),o.setAttribute("height","1em"),4!==t&&(o.style.marginRight="1px");const r=e.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("fill",t<n?"#FAC917":"#d1d8de"),r.setAttribute("d","M213.33 10.44l65.92 133.58 147.42 21.42L320 269.4l25.17 146.83-131.84-69.32-131.85 69.34 25.2-146.82L0 165.45l147.4-21.42"),o.appendChild(r),a.push(o)}for(;s.firstChild;)s.removeChild(s.firstChild);a.forEach(e=>s.appendChild(e))}}r.content=Object(o.e)(i,t,{transform:n}),r.content&&a.collins.push(r)});t.discrimination&&(a.discrimination=Object(o.e)(i,e,{selector:"#discriminate",transform:n}));t.sentence&&(a.sentence=Object(o.e)(i,e,{selector:"#authority .ol",transform:n}));t.translation&&(a.translation=Object(o.e)(i,e,{selector:"#fanyiToggle .trans-container",transform:n}));if(a.title||a.translation)return{result:a,audio:r};return Object(o.j)()}(e,t,n);if(t.related)return{result:{type:"related",list:Object(o.e)(i,a,{transform:n})}};return Object(o.j)()}(e,c,s))}},86:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var a=n(1),o=n(2);async function r(e,t){try{const n=await a.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:e,payload:{isPDF:Object(o.j)()}}});return n&&n.result&&n.result.trans&&n.result.trans.paragraphs.join("\n")||""}catch(e){return""}}async function i(e,t){return(await Promise.all(Object.keys(t).map(async n=>{let a="";if(t[n])try{a=await r(e,n)}catch(e){console.warn(e)}return{id:n,content:a}}))).reduce((e,{id:t,content:n})=>(e[t]=n,e),{})}function c(e){const t=/\[:: (\w+) ::\]\n([\s\S]+?)(?=(?:\[:: \w+ ::\])|(?:-{15}))/g;let n;const a={};for(;null!==(n=t.exec(e));)a[n[1]]=n[2].replace(/\n+$/g,"");return a}function s(e,t){const n=Object.keys(t).filter(e=>t[e]);if(n.length<=0)return e;const a=n.map(e=>`[:: ${e} ::]\n`+t[e]).join("\n\n")+`\n${"".padEnd(15,"-")}\n`;if(!e)return a;const o=/\[:: (\w+) ::\]\n([\s\S]+?)-{15}/;return o.test(e)?e.replace(o,a):e+"\n\n"+a}},860:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return i})),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return s}));var a=n(16),o=n(669),r=n(12);const i=Object(a.a)(()=>new o.Youdao({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.YOUDAO_APPKEY&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.YOUDAO_KEY?{appKey:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.YOUDAO_APPKEY,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4"}.YOUDAO_KEY}:void 0})),c=(e,t,n)=>"http://fanyi.youdao.com",s=async(e,t,n,a)=>{const o=i(),{sl:c,tl:s,text:l}=await Object(r.a)(o,e,n.dicts.all.youdaotrans,t,a),d=t.dictAuth.youdaotrans.appKey,u=t.dictAuth.youdaotrans.key,p=d&&u?{appKey:d,key:u}:void 0;try{const e=await o.translate(l,c,s,p);return Object(r.c)({result:{id:"youdaotrans",sl:e.from,tl:e.to,slInitial:n.dicts.all.youdaotrans.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"youdaotrans",sl:c,tl:s,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},87:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var a=n(12);const o={baidu:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{},{}),bing:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{tense:!0,phsym:!0,cdef:!0,related:!0,sentence:4}},ahdict:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:4}},oaldict:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5}},caiyun:Object(a.b)(["zh-CN","en","ja"],{lang:"11010000"},{},{}),cambridge:{lang:"11100000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{lang:"default",related:!0},options_sel:{lang:["default","en","en-chs","en-chz"]}},cobuild:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:5},options:{cibaFirst:(browser.i18n.getUILanguage()||"en").startsWith("zh-")}},etymonline:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{resultnum:4,chart:!0}},eudic:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:10}},google:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{concurrent:!1},{}),guoyu:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!0}},hjdict:{lang:"10011111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:10},options:{related:!0,chsas:"jp/jc",engas:"w",uas:"fr",aas:"fr",eas:"fr"},options_sel:{chsas:["jp/cj","jp/jc","kr","w","fr","de","es"],engas:["w","fr","de","es"],uas:["fr","de","es"],aas:["fr","de"],eas:["fr","es"]}},liangan:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!1}},longman:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{wordfams:!1,collocations:!0,grammar:!0,thesaurus:!0,examples:!0,bussinessFirst:!0,related:!0}},mojidict:{lang:"10010000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5}},naver:{lang:"01011000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!0,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:10},options:{hanAsJa:!1,korAsJa:!1}},renren:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},sogou:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru"],{},{},{}),tencent:Object(a.b)(["zh-CN","en","ja","ko","fr","de","es","ru"],{lang:"11011111"},{},{}),urban:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},vocabulary:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5}},weblio:{lang:"00010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:20}},weblioejje:{lang:"10010000",selectionLang:{english:!0,chinese:!1,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},merriamwebster:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},wikipedia:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:420,selectionWC:{min:1,max:999999999999999},options:{lang:"auto"},options_sel:{lang:["auto","zh","zh-cn","zh-tw","zh-hk","en","ja","fr","de"]}},youdao:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:999999999999999},options:{basic:!0,collins:!0,discrimination:!0,sentence:!0,translation:!1,related:!0}},youdaotrans:Object(a.b)(["zh-CN","en","pt","es","ja","ko","fr","ru"],{lang:"11011111"},{},{}),zdic:{lang:"01000000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:5},options:{audio:!0}}},r=()=>JSON.parse(JSON.stringify(o))},886:function(e,t,n){"use strict";n.r(t),n.d(t,"AnkiConnectModal",(function(){return b}));var a=n(145),o=n.n(a),r=n(0),i=n.n(r),c=n(183),s=n(84),l=n(122),d=n(105),u=n(240),p=n(178),h=n(167),m=n(607),f=n(101),g=n(9);const b=e=>{const{t:t,i18n:n}=Object(g.d)(["options","common","sync"]),[a,b]=Object(r.useState)(!1),y=Object(r.useRef)(null);return i.a.createElement(c.a,{visible:e.show,title:t("sync:ankiconnect.title"),onOk:w,onCancel:x,destroyOnClose:!0,footer:[i.a.createElement(s.a,{key:"verify",disabled:a,loading:a,onClick:async function(){const e=E();if(!e)return;b(!0);const n=new m.Service(e);try{await v(n),confirm(t("syncService.ankiconnect.upload_confirm"))&&await n.add({force:!0})}catch(e){O(e)}b(!1)}},t("syncService.ankiconnect.verify")),i.a.createElement(s.a,{key:"save",type:"primary",disabled:a,onClick:w},t("common:save")),i.a.createElement(s.a,{key:"cancel",onClick:x},t("common:cancel"))]},i.a.createElement(l.a,{ref:y,initialValues:e.syncConfig||m.Service.getDefaultConfig(),labelCol:{span:5},wrapperCol:{span:18},onFinish:async function(){const t=E();if(!t)return;if(t.enable){b(!0);const e=new m.Service(t);try{await v(e)}catch(e){return b(!1),O(e)}b(!1)}try{await Object(f.g)(m.Service.id,t),e.onClose()}catch(e){O(e)}}},i.a.createElement("p",null,t("syncService.ankiconnect.description"),i.a.createElement("a",{href:"https://saladict.crimx.com/anki.html",target:"_blank",rel:"nofollow noopener noreferrer"},t("tutorial"))),i.a.createElement(l.a.Item,{name:"enable",label:t("common:enable"),help:t("syncService.ankiconnect.enable_help"),valuePropName:"checked"},i.a.createElement(d.a,null)),i.a.createElement(l.a.Item,{name:"host",label:t("syncService.ankiconnect.host"),hasFeedback:!0,rules:[{required:!0}]},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"port",label:t("syncService.ankiconnect.port"),hasFeedback:!0,rules:[{required:!0}]},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"key",label:t("syncService.ankiconnect.key"),help:t("syncService.ankiconnect.key_help")},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"deckName",label:t("syncService.ankiconnect.deckName"),help:t("syncService.ankiconnect.deckName_help"),hasFeedback:!0,rules:[{required:!0}]},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"noteType",label:t("syncService.ankiconnect.noteType"),help:t("syncService.ankiconnect.noteType_help"),hasFeedback:!0,rules:[{required:!0}]},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"tags",label:t("syncService.ankiconnect.tags"),help:t("syncService.ankiconnect.tags_help")},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{label:t("syncService.ankiconnect.escapeHTML"),help:t("syncService.ankiconnect.escapeHTML_help")},i.a.createElement(l.a.Item,{name:"escapeContext",className:"form-item-inline",valuePropName:"checked"},i.a.createElement(p.a,null,t("common:note.context"))),i.a.createElement(l.a.Item,{name:"escapeTrans",className:"form-item-inline",valuePropName:"checked"},i.a.createElement(p.a,null,t("common:note.trans"))),i.a.createElement(l.a.Item,{name:"escapeNote",className:"form-item-inline",valuePropName:"checked"},i.a.createElement(p.a,null,t("common:note.note")))),i.a.createElement(l.a.Item,{name:"syncServer",label:t("syncService.ankiconnect.syncServer"),help:t("syncService.ankiconnect.syncServer_help"),valuePropName:"checked"},i.a.createElement(d.a,null))));function w(){y.current&&y.current.submit()}function x(){y.current&&y.current.isFieldsTouched()?c.a.confirm({title:t("syncService.close_confirm"),icon:i.a.createElement(o.a,null),okType:"danger",onOk:e.onClose}):e.onClose()}async function v(e){try{await e.init(),h.a.success({message:t("syncService.ankiconnect.verified")})}catch(n){switch("string"==typeof n?n:n.message){case"deck":if(confirm(t("syncService.ankiconnect.deck_confirm",{deck:e.config.deckName})))try{return await e.addDeck(),v(e)}catch(n){return void h.a.error({message:"Error",description:t("syncService.ankiconnect.deck_error",{deck:e.config.deckName})})}else confirm(t("syncService.ankiconnect.add_yourself"));break;case"notetype":if(confirm(t("syncService.ankiconnect.notetype_confirm",{noteType:e.config.noteType})))try{return await e.addNoteType(),v(e)}catch(n){return void h.a.error({message:"Error",description:t("syncService.ankiconnect.notetype_error",{noteType:e.config.noteType})})}else confirm(t("syncService.ankiconnect.add_yourself"));break;default:throw n}}}function E(){if(y.current)return y.current.getFieldsValue();h.a.error({message:"Error",description:t("sync:ankiconnect.error.internal")})}function O(e){const a="string"==typeof e?e:e.message,o="sync:ankiconnect.error."+a,r=n.exists(o)?t(o):a;h.a.error({message:"Error",description:r})}};t.default=b},889:function(e,t,n){var a={"./en/background.ts":409,"./en/common.ts":410,"./en/content.ts":411,"./en/langcode.ts":412,"./en/menus.ts":413,"./en/options.ts":414,"./en/popup.ts":415,"./en/wordpage.ts":416,"./es/background.ts":417,"./es/common.ts":418,"./es/content.ts":419,"./es/langcode.ts":420,"./es/menus.ts":421,"./es/options.ts":422,"./es/popup.ts":423,"./es/wordpage.ts":424,"./ne/background.ts":425,"./ne/common.ts":426,"./ne/content.ts":427,"./ne/langcode.ts":428,"./ne/menus.ts":429,"./ne/options.ts":430,"./ne/popup.ts":431,"./ne/wordpage.ts":432,"./zh-CN/background.ts":433,"./zh-CN/common.ts":434,"./zh-CN/content.ts":435,"./zh-CN/langcode.ts":436,"./zh-CN/menus.ts":437,"./zh-CN/options.ts":438,"./zh-CN/popup.ts":439,"./zh-CN/wordpage.ts":440,"./zh-TW/background.ts":441,"./zh-TW/common.ts":442,"./zh-TW/content.ts":443,"./zh-TW/langcode.ts":444,"./zh-TW/menus.ts":445,"./zh-TW/options.ts":446,"./zh-TW/popup.ts":447,"./zh-TW/wordpage.ts":448};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=889},890:function(e,t,n){"use strict";n.r(t),n.d(t,"EuDicModal",(function(){return y}));var a=n(145),o=n.n(a),r=n(0),i=n.n(r),c=n(183),s=n(84),l=n(122),d=n(105),u=n(240),p=n(167),h=n(142),m=n(608),f=n(101),g=n(11),b=n(9);const y=e=>{const{t:t,i18n:n}=Object(b.d)(["options","common","sync"]),[a,y]=Object(r.useState)(!1),w=Object(r.useRef)(null);return i.a.createElement(c.a,{visible:e.show,title:t("sync:eudic.title"),destroyOnClose:!0,onOk:x,onCancel:v,footer:[i.a.createElement(s.a,{key:"verify",disabled:a,loading:a,onClick:async function(){const e=O();if(!e)return;y(!0);const t=new m.Service(e);await E(t),y(!1)}},t("syncService.eudic.verify")),i.a.createElement(s.a,{key:"save",type:"primary",disabled:a,onClick:x},t("common:save")),i.a.createElement(s.a,{key:"cancel",onClick:v},t("common:cancel"))]},i.a.createElement("p",null,t("syncService.eudic.description"),t("syncService.eudic.token_help"),i.a.createElement("a",{href:"https://my.eudic.net/OpenAPI/Authorization",target:"_blank",rel:"nofollow noopener noreferrer"},t("syncService.eudic.getToken"))),i.a.createElement(l.a,{ref:w,initialValues:e.syncConfig||m.Service.getDefaultConfig(),labelCol:{span:5},wrapperCol:{span:18},onFinish:async function(){const n=O();if(!n)return;if(n.enable){y(!0);const e=new m.Service(n),a=await E(e);if(y(!1),a)return;n.syncAll&&await async function(e){const{total:n}=await Object(g.b)("notebook",{itemsPerPage:1,filters:{}});if(n>50&&!confirm(t("syncService.eudic.sync_all_confirm")))return;await async function(e){h.a.destroy(),h.a.success(t("syncService.start"),0);try{await e.addWordOrPatch({words:[],force:!0}),h.a.destroy(),h.a.success(t("syncService.success"))}catch(e){_(e,t("syncService.failed"))}}(e)}(e)}try{await Object(f.g)(m.Service.id,n),e.onClose()}catch(e){_(e)}}},i.a.createElement(l.a.Item,{name:"enable",label:t("common:enable"),help:t("syncService.eudic.enable_help"),valuePropName:"checked"},i.a.createElement(d.a,null)),i.a.createElement(l.a.Item,{name:"token",label:t("syncService.eudic.token"),hasFeedback:!0,rules:[{required:!0}]},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"syncAll",label:t("syncService.eudic.sync_all"),help:t("syncService.eudic.sync_help"),valuePropName:"checked"},i.a.createElement(d.a,null))));function x(){w.current&&w.current.submit()}function v(){w.current&&w.current.isFieldsTouched()?c.a.confirm({title:t("syncService.close_confirm"),icon:i.a.createElement(o.a,null),okType:"danger",onOk:e.onClose}):e.onClose()}async function E(e){let n=!1;try{await e.init(),p.a.success({message:t("syncService.eudic.verified")}),n=!1}catch(e){n=!0,_(e)}return n}function O(){if(w.current)return w.current.getFieldsValue();p.a.error({message:"Error",description:t("sync:eudic.error.internal")})}function _(e,a="Error"){const o="string"==typeof e?e:e.message,r="sync:eudic.error."+o,i=n.exists(r)?t(r):o;p.a.error({message:a,description:i})}};t.default=y},891:function(e,t,n){"use strict";n.r(t),n.d(t,"ShanbayModal",(function(){return m}));var a=n(0),o=n.n(a),r=n(183),i=n(105),c=n(84),s=n(142),l=n(167),d=n(609),u=n(101),p=n(11),h=n(9);const m=e=>{const{t:t,i18n:n}=Object(h.d)(["options","common","sync"]),[m,f]=Object(a.useState)(()=>e.syncConfig||d.Service.getDefaultConfig());return Object(a.useEffect)(()=>{e.syncConfig&&f(e.syncConfig)},[e.syncConfig]),o.a.createElement(r.a,{visible:e.show,title:t("sync:shanbay.title"),destroyOnClose:!0,onCancel:e.onClose,footer:null},o.a.createElement("p",null,t("syncService.shanbay.description")),o.a.createElement("div",{style:{textAlign:"center",marginBottom:20}},t("common:enable"),":",o.a.createElement(i.a,{checked:m.enable,onChange:async function(e){const n={...m,enable:e};if(e){const e=new d.Service(n);try{await e.init()}catch(e){return void r.a.confirm({title:t("syncService.shanbay.login"),onOk:()=>{d.Service.openLogin()}})}}try{await Object(u.g)("shanbay",n),f(n),s.a.destroy(),s.a.success(t("msg_updated"))}catch(e){l.a.error({message:t("config.opt.upload_error"),description:""+e})}}})),m.enable&&o.a.createElement("div",{style:{textAlign:"center"}},o.a.createElement(c.a,{onClick:async function(){const{total:e}=await Object(p.b)("notebook",{itemsPerPage:1,filters:{}});if(e>50&&!confirm(t("syncService.shanbay.sync_all_confirm")))return;await g()},style:{marginRight:10}},t("syncService.shanbay.sync_all")),o.a.createElement(c.a,{onClick:async function(){const{words:e}=await Object(p.b)("notebook",{itemsPerPage:1,filters:{}});if(!e||e.length<=0)return;await g(e)}},t("syncService.shanbay.sync_last"))));async function g(e){s.a.destroy(),s.a.success(t("syncService.start"),0);const a=new d.Service(m);try{const n=await a.addInternal({words:e,force:!0});s.a.destroy(),n>0?s.a.info(t("syncService.finished")):s.a.success(t("syncService.success"))}catch(e){if("words"===e)return;const a="sync:shanbay.error."+e;l.a.error({message:t("syncService.failed"),description:n.exists(a)?t(a):""+e})}}};t.default=m},892:function(e,t,n){"use strict";n.r(t),n.d(t,"WebdavModal",(function(){return y}));var a=n(145),o=n.n(a),r=n(0),i=n.n(r),c=n(183),s=n(84),l=n(122),d=n(105),u=n(240),p=n(167),h=n(142),m=n(567),f=n(101),g=n(9),b=n(610);const y=e=>{const{t:t,i18n:n}=Object(g.d)(["options","common","sync"]),[a,y]=Object(r.useState)(!1),w=Object(r.useRef)(null);return i.a.createElement(c.a,{visible:e.show,title:t("sync:webdav.title"),onOk:x,onCancel:v,destroyOnClose:!0,footer:[i.a.createElement(s.a,{key:"delete",type:"primary",danger:!0,onClick:function(){c.a.confirm({title:t("syncService.delete_confirm"),onOk:()=>async function(e){try{await e(),h.a.destroy(),h.a.success(t("msg_updated"))}catch(e){p.a.error({message:"Error",description:e.message})}}(async()=>{await Object(f.d)(m.Service.id),e.onClose()})})}},t("common:delete")),i.a.createElement(s.a,{key:"verify",disabled:a,loading:a,onClick:async function(){const e=E();if(!e)return;y(!0);const n=new m.Service(e);try{if(!e.url)throw new Error("network");try{await n.init()}catch(e){if("exist"!==("string"==typeof e?e:e.message))throw e;confirm(t("syncService.webdav.exist_confirm"))&&await n.download({noCache:!0})}confirm(t("syncService.webdav.upload_confirm"))&&await n.add({force:!0}),p.a.success({message:t("syncService.webdav.verified")})}catch(e){O(e)}y(!1)}},t("syncService.webdav.verify")),i.a.createElement(s.a,{key:"save",type:"primary",disabled:a,onClick:x},t("common:save")),i.a.createElement(s.a,{key:"cancel",onClick:v},t("common:cancel"))]},i.a.createElement(l.a,{ref:w,initialValues:e.syncConfig||m.Service.getDefaultConfig(),labelCol:{span:5},wrapperCol:{span:18},onFinish:async function(){const t=E();if(!t)return;if(t.enable){if(!t.url)return O("network");y(!0);const e=new m.Service(t);try{if(!await e.checkDir())throw new Error("missing")}catch(e){return y(!1),O(e)}e.setMeta({}),y(!1)}try{await Object(f.g)(m.Service.id,t),e.onClose()}catch(e){O(e)}}},i.a.createElement("p",null,t("syncService.webdav.description"),i.a.createElement("a",{href:"http://help.jianguoyun.com/?p=2064",target:"_blank",rel:"noopener noreferrer"},t("syncService.webdav.jianguo"))),i.a.createElement(l.a.Item,{name:"enable",label:t("common:enable"),valuePropName:"checked"},i.a.createElement(d.a,null)),i.a.createElement(l.a.Item,{name:"url",label:t("syncService.webdav.url"),hasFeedback:!0,rules:[{type:"url",message:t("form.url_error"),required:!0}]},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"user",label:t("syncService.webdav.user")},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"passwd",label:t("syncService.webdav.passwd")},i.a.createElement(u.a,{type:"password"})),i.a.createElement(l.a.Item,{name:"duration",label:t("syncService.webdav.duration"),extra:t("syncService.webdav.duration_help"),rules:[{type:"number",message:t("form.number_error"),required:!0}]},i.a.createElement(b.a,{suffix:t("common:unit.mins")}))));function x(){w.current&&w.current.submit()}function v(){w.current&&w.current.isFieldsTouched()?c.a.confirm({title:t("syncService.close_confirm"),icon:i.a.createElement(o.a,null),okType:"danger",onOk:e.onClose}):e.onClose()}function E(){if(!w.current)return void p.a.error({message:"Error",description:t("sync:webdav.error.internal")});const e=w.current.getFieldsValue();return{...e,url:e.url&&!e.url.endsWith("/")?e.url+="/":e.url}}function O(e){const a="string"==typeof e?e:e.message,o="sync:webdav.error."+a,r=n.exists(o)?t(o):a;p.a.error({message:"Error",description:r})}};t.default=y},9:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return g}));var a=n(0),o=n.n(a),r=n(154),i=n.n(r),c=n(13),s=n(29),l=n(270),d=n.n(l);async function u(){if(c.a.language)return c.a;const{langCode:e}=await Object(s.c)();return await c.a.use({type:"backend",init:()=>{},create:()=>{},read:async(e,t,a)=>{try{if("dicts"===t){const t=function(e){const t=n(370);return t.keys().reduce((n,a)=>{const o=t(a),r=o.locales||o,c=/([^/]+)\/_locales\.(json|ts)$/.exec(a)[1];return n[c]={name:r.name[e]},r.options&&(n[c].options=i()(r.options,t=>t[e])),r.helps&&(n[c].helps=i()(r.helps,t=>t[e])),n},{})}(e);return a(null,t),t}if("sync"===t){const t=function(e){const t=n(265);return t.keys().reduce((n,a)=>{const o=new RegExp(`/([^/]+)/_locales/${e}\\.ts$`).exec(a);if(o){const e=t(a);n[o[1]]=e.locale||e}return n},{})}(e);return a(null,t),t}const o=await async function(e,t){const{locale:a}=await n(369)(`./${e}/${t}.ts`);return a}(e,t);return a(null,o),o}catch(e){a(e)}}}).init({lng:e,fallbackLng:!1,whitelist:["en","zh-CN","zh-TW"],debug:!1,saveMissing:!1,load:"currentOnly",ns:"common",defaultNS:"common",interpolation:{escapeValue:!1}}),Object(s.a)(({newConfig:e})=>{c.a.language!==e.langCode&&c.a.changeLanguage(e.langCode)}),c.a}const p=()=>"",h=o.a.createContext(void 0);const m=({children:e})=>{const[t,n]=Object(a.useState)(void 0);return Object(a.useLayoutEffect)(()=>{const e=()=>{n(c.a.language)};return c.a.language||u().then(()=>{n(c.a.language),c.a.on("languageChanged",e)}),()=>{c.a.off("languageChanged",e)}},[]),o.a.createElement(h.Provider,{value:t},e)};function f(e){const t=Object(a.useRef)(0),n=Object(a.useRef)(p),o=Object(a.useRef)((...e)=>n.current(...e)),r=Object(a.useContext)(h),i=(e,a)=>{e&&(n.current=e),a&&(t.current=(t.current+1)%1e5);return{t:o.current,i18n:c.a,ready:!!a&&t.current}},[s,l]=Object(a.useState)(()=>r?e?(Array.isArray(e)?e.every(e=>c.a.hasResourceBundle(r,e)):c.a.hasResourceBundle(r,e))?i(c.a.getFixedT(r,e),!0):i(p,!1):i(c.a.t,!0):i(p,!1));return Object(a.useLayoutEffect)(()=>{let t=!0;return r&&(e?(Array.isArray(e)?e.every(e=>c.a.hasResourceBundle(r,e)):c.a.hasResourceBundle(r,e))?l(i(c.a.getFixedT(r,e),!0)):(l(i(null,!1)),c.a.loadNamespaces(e).then(()=>{t&&l(i(c.a.getFixedT(r,e),!0))})):l(i(c.a.t,!0))),()=>{t=!1}},[r]),s}const g=o.a.memo(({message:e,children:t})=>e?o.a.createElement(a.Fragment,null,d()(e.split(/{[^}]*?}/),Array.isArray(t)?t:[t])):null)},905:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return l})),n.d(t,"search",(function(){return u}));var a=n(31),o=n(3),r=n(47),i=n.n(r),c=n(139),s=n.n(c);const l=e=>"https://www.shanbay.com/bdc/mobile/preview/word?word="+e,d={basic:!0,sentence:!0};const u=(e,t,n)=>{const r=function(e){const t=e.dicts.all.shanbay;return t?t.options:d}(n);return Object(a.a)("https://www.shanbay.com/bdc/mobile/preview/word?word="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>function(e,t){if(!e.querySelector(".error-typo"))return async function(e,t){const n=e.querySelector(".word-spell"),a={id:"shanbay",type:"lex",title:Object(o.g)(e,".word-spell"),pattern:Object(o.g)(e,".pattern"),prons:[],sentences:[]},r={uk:"http://media.shanbay.com/audio/uk/"+a.title+".mp3",us:"http://media.shanbay.com/audio/us/"+a.title+".mp3"};a.prons.push({phsym:Object(o.g)(e,".word-announace"),url:r.us}),t.basic&&(a.basic=Object(o.e)("http://www.shanbay.com",e,".definition-cn"));a.wordId=n&&n.getAttribute("data-id"),t.sentence&&a.wordId&&(a.sentences=await(c=a.wordId,i.a.get(`https://www.shanbay.com/api/v1/bdc/example/?vocabulary_id=${c}&type=sys`).then(({data:{data:e}})=>Array.isArray(e)?e.map(e=>({annotation:s.a.sanitize(e.annotation),translation:s.a.sanitize(e.translation)})):[])));var c;if(a.title)return{result:a,audio:r};return Object(o.j)()}(e,t);return Object(o.j)()}(e,r))}},906:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return l})),n.d(t,"search",(function(){return d}));var a=n(31),o=n(3),r=n(97);const i=["https://img.zdic.net/audio/*"];let c=null;function s(){return c||(c=async function(){const e=function(){const e=self.chrome;return e&&e.declarativeNetRequest?e.declarativeNetRequest:void 0}();if(e)return void await async function(e){await e.updateSessionRules({removeRuleIds:[32001],addRules:[{id:32001,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.zdic.net"}]},condition:{regexFilter:"^https://img\\.zdic\\.net/audio/.*",resourceTypes:["media"]}}]})}(e);const t=function(){const e=browser;return e&&e.webRequest?e.webRequest:void 0}();if(t&&t.onBeforeSendHeaders)return void function(e){const t=["blocking","requestHeaders"],n=e.OnBeforeSendHeadersOptions;n&&Object.prototype.hasOwnProperty.call(n,"EXTRA_HEADERS")&&t.push("extraHeaders");e.onBeforeSendHeaders.addListener(e=>{if(e&&e.requestHeaders){for(var t=0;t<e.requestHeaders.length;++t)if("Referer"===e.requestHeaders[t].name){e.requestHeaders[t].value="https://www.zdic.net";break}t===e.requestHeaders.length&&e.requestHeaders.push({name:"Referer",value:"https://www.zdic.net"})}return{requestHeaders:e.requestHeaders}},{urls:i},t)}(t);if(function(){const e=browser.runtime.getManifest&&browser.runtime.getManifest();return!(!e||3!==e.manifest_version)}())throw new Error("declarativeNetRequest is unavailable in the current MV3 context.");throw new Error("webRequest.onBeforeSendHeaders is unavailable.")}().catch(e=>{throw c=null,e})),c}const l=e=>"https://www.zdic.net/hans/"+e,d=(e,t,n,i)=>{const c=n.dicts.all.zdic.options.audio;return(c?s().catch(e=>{console.error("Failed to enable Zdic audio referer compatibility.",e)}):Promise.resolve()).then(()=>Object(a.a)("https://www.zdic.net/hans/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.i).then(e=>function(e,t){const n={result:[]};for(const a of e.querySelectorAll("[data-type-block]")){const e=a.dataset.typeBlock||"";if(/基本解释|词语解释|详细解释/.test(e)){for(const e of a.querySelectorAll("[data-src-mp3]"))t?(n.audio||(n.audio={py:e.dataset.srcMp3}),e.replaceWith(Object(r.d)(e.dataset.srcMp3))):e.remove();n.result.push({title:e,content:Object(o.e)("https://www.zdic.net",a,".content")})}}return n.result.length>0?n:Object(o.j)()}(e,c)))}},92:function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return g})),n.d(t,"d",(function(){return b}));var a=n(39),o=n(10),r=n(121),i=n(187),c=n(404),s=n(152),l=n(560),d=n(88),u=n(102),p=n(67);function h(e){return e.pipe(Object(a.a)(e=>!(e.relatedTarget===e.currentTarget||e.relatedTarget instanceof Node&&e.currentTarget.contains(e.relatedTarget))),Object(o.a)(e=>"mouseover"===e.type))}function m(e){return h(e).pipe(Object(r.a)(e=>Object(u.a)(e).pipe(Object(i.a)(e?500:100))))}function f(e){return e.pipe(Object(o.a)(e=>"blur"!==e.type),Object(c.a)(100))}function g(e,t){return n=>n.pipe(Object(s.a)(o=>Object(p.a)(t(o)).pipe(Object(l.a)(n.pipe(Object(a.a)(t=>t[e]===o[e]))))))}function b(e){return Object(d.a)(!0)(e)}},949:function(e,t,n){"use strict";n.r(t),n.d(t,"BlackWhiteList",(function(){return l}));var a=n(0),o=n.n(a),r=n(84),i=n(103),c=n(9),s=n(788);const l=()=>{const{t:e}=Object(c.d)(["options","common"]),[t,n]=Object(a.useState)(null);return o.a.createElement(o.a.Fragment,null,o.a.createElement(i.a,{hideFooter:!0,items:[{key:"BlackWhiteList",label:e("config.opt.sel_blackwhitelist"),help:e("config.opt.sel_blackwhitelist_help"),children:o.a.createElement(o.a.Fragment,null,o.a.createElement(r.a,{style:{marginRight:10},onClick:()=>n("blacklist")},e("common:blacklist")),o.a.createElement(r.a,{onClick:()=>n("whitelist")},e("common:whitelist")))},{key:"PDFBlackWhiteList",label:"PDF "+e("nav.BlackWhiteList"),help:e("config.opt.pdf_blackwhitelist_help"),children:o.a.createElement(o.a.Fragment,null,o.a.createElement(r.a,{style:{marginRight:10},onClick:()=>n("pdfBlacklist")},"PDF ",e("common:blacklist")),o.a.createElement(r.a,{onClick:()=>n("pdfWhitelist")},"PDF ",e("common:whitelist")))}]}),o.a.createElement(s.a,{area:t,onClose:()=>n(null)}))}},952:function(e,t,n){"use strict";n.r(t),n.d(t,"DictAuths",(function(){return u}));var a=n(0),o=n.n(a),r=n(240),i=n(71),c=n(17),s=n(103),l=n(9),d=n(166);const u=()=>{const{t:e}=Object(l.d)(["options","dicts"]),t=Object(i.c)(e=>e.config.dictAuth);if(null===t)return null;const a=[{key:"dictauthstitle",label:e("nav.DictAuths"),children:o.a.createElement("span",{className:"ant-form-text"},e("dictAuth.description"))}];return Object(d.a)(t).forEach(i=>{const s=t[i],u=Object(c.a)("dictAuth",i),p=e(`dicts:${i}.name`);Object(d.a)(s).forEach((t,c,s)=>{const d=c+1===s.length;a.push({name:u+"."+t,label:o.a.createElement("span",null,0===c?p+" ":"",o.a.createElement("code",null,t)),help:d?o.a.createElement(l.c,{message:e("dictAuth.dictHelp")},o.a.createElement("a",{href:n(1231)(`./${i}/auth.ts`).url,target:"_blank",rel:"nofollow noopener noreferrer"},p)):null,style:{marginBottom:d?10:5},children:o.a.createElement(r.a,{autoComplete:"off"})})})}),o.a.createElement(s.a,{items:a})}},953:function(e,t,n){"use strict";n.r(t),n.d(t,"DictPanel",(function(){return p}));var a=n(0),o=n.n(a),r=n(58),i=n(105),c=n(257),s=n(240),l=n(9),d=n(17),u=n(103);const p=()=>{const{t:e}=Object(l.d)("options"),{availWidth:t}=window.screen;return o.a.createElement(u.a,{items:[{name:Object(d.b)("mtaAutoUnfold"),children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:""},e("profile.opt.mtaAutoUnfold.never")),o.a.createElement(r.a.Option,{value:"once"},e("profile.opt.mtaAutoUnfold.once")),o.a.createElement(r.a.Option,{value:"always"},e("profile.opt.mtaAutoUnfold.always")),o.a.createElement(r.a.Option,{value:"popup"},e("profile.opt.mtaAutoUnfold.popup")),o.a.createElement(r.a.Option,{value:"hide"},e("profile.opt.mtaAutoUnfold.hide")))},{name:Object(d.b)("waveform"),valuePropName:"checked",children:o.a.createElement(i.a,null)},{name:Object(d.a)("searchSuggests"),valuePropName:"checked",children:o.a.createElement(i.a,null)},{name:Object(d.a)("defaultPinned"),valuePropName:"checked",children:o.a.createElement(i.a,null)},{name:Object(d.a)("animation"),valuePropName:"checked",children:o.a.createElement(i.a,null)},{name:Object(d.a)("darkMode"),valuePropName:"checked",children:o.a.createElement(i.a,null)},{name:Object(d.a)("panelMaxHeightRatio"),children:o.a.createElement(c.a,{tipFormatter:u.b,min:0,max:100,marks:{0:"0%",80:"80%",100:"100%"}})},{name:Object(d.a)("panelWidth"),children:o.a.createElement(c.a,{tipFormatter:u.c,min:250,max:t,marks:{250:"250px",450:"450px",[t]:t+"px"}})},{name:Object(d.a)("fontSize"),children:o.a.createElement(c.a,{tipFormatter:u.c,min:8,max:30,marks:{8:"8px",30:"30px"}})},{name:Object(d.a)("bowlOffsetX"),children:o.a.createElement(c.a,{tipFormatter:u.c,min:-100,max:100,marks:{"-100":"-100px",0:"0px",100:"100px"}})},{name:Object(d.a)("bowlOffsetY"),children:o.a.createElement(c.a,{tipFormatter:u.c,min:-100,max:100,marks:{"-100":"-100px",0:"0px",100:"100px"}})},{name:Object(d.a)("panelCSS"),extra:o.a.createElement("a",{href:"https://github.com/crimx/ext-saladict/wiki/PanelCSS#wiki-content",target:"_blank",rel:"nofollow noopener noreferrer"},"Examples"),children:o.a.createElement(s.a.TextArea,{placeholder:".dictPanel-Root { }",autoSize:{minRows:4,maxRows:15}})}]})}},954:function(e,t,n){},957:function(e,t,n){"use strict";n.r(t),n.d(t,"General",(function(){return d}));var a=n(0),o=n.n(a),r=n(105),i=n(58),c=n(17),s=n(103),l=n(2);const d=()=>{const e=[{name:Object(c.a)("active"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(c.a)("animation"),valuePropName:"checked",children:o.a.createElement(r.a,null)}];return l.d||l.h||e.push({name:Object(c.a)("runInBg"),valuePropName:"checked",children:o.a.createElement(r.a,null)}),e.push({name:Object(c.a)("darkMode"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(c.a)("langCode"),children:o.a.createElement(i.a,null,o.a.createElement(i.a.Option,{value:"zh-CN"},"简体中文"),o.a.createElement(i.a.Option,{value:"zh-TW"},"繁體中文"),o.a.createElement(i.a.Option,{value:"en"},"English"))}),o.a.createElement(s.a,{items:e})}},958:function(e,t,n){"use strict";n.r(t),n.d(t,"ImportExport",(function(){return x}));var a=n(1021),o=n.n(a),r=n(781),i=n.n(r),c=n(0),s=n.n(c),l=n(299),d=n(212),u=n(1364),p=n(167),h=n(165),m=n(185),f=n(9),g=n(1),b=n(29),y=n(33),w=n(211);const x=()=>{const{t:e}=Object(f.d)("options"),t=Object(w.d)();return s.a.createElement(l.a,null,s.a.createElement(d.a,{...t},s.a.createElement(l.a,{gutter:10},s.a.createElement(d.a,{span:12},s.a.createElement(u.a.Dragger,{showUploadList:!1,beforeUpload:t=>(async function(e,t){const n=await new Promise(n=>{const a=new FileReader;a.onload=()=>{try{const e=JSON.parse(a.result);n(e)}catch(e){p.a.error({message:t("import.error.title"),description:t("import.error.parse")})}n()},a.onerror=()=>{p.a.error({message:t("import.error.title"),description:t("import.error.parse")}),n()},a.readAsText(e)});if(!n)return;let{baseconfig:a,activeProfileID:o,hasInstructionsShown:r,profileIDList:i,syncConfig:c}=n;if(!a&&!o&&!i&&null==r)return void p.a.error({message:t("import.error.title"),description:t("import.error.empty")});await g.c.sync.clear(),a&&await Object(b.f)(Object(h.a)(a));c&&await g.c.sync.set({syncConfig:c});null!=r&&await g.c.sync.set({hasInstructionsShown:r});if(i&&(i=i.filter(({id:e})=>n[e]),i.length>0)){for(const{id:e}of i)await Object(y.m)(Object(m.a)(n[e]));o&&!i.every(({id:e})=>e!==o)||(o=i[0].id),await g.c.sync.set({activeProfileID:o,profileIDList:i})}}(t,e),!1)},s.a.createElement("p",{className:"ant-upload-drag-icon"},s.a.createElement(i.a,null)),s.a.createElement("p",{className:"ant-upload-text"},e("import.title")))),s.a.createElement(d.a,{span:12},s.a.createElement("button",{className:"ant-upload ant-upload-drag",onClick:()=>async function(e){const t=await g.c.sync.get(["activeProfileID","hasInstructionsShown","profileIDList","syncConfig"]);if(t.baseconfig=await Object(b.c)(),!t.baseconfig||!t.activeProfileID||!t.profileIDList)return void p.a.error({message:e("export.error.title"),description:e("export.error.empty")});for(const{id:e}of t.profileIDList)t[e]=await Object(y.f)(e);try{let e=JSON.stringify(t);const{os:n}=await browser.runtime.getPlatformInfo();"win"===n&&(e=e.replace(/\r\n|\n/g,"\r\n"));const a=new Blob([e],{type:"text/plain;charset=utf-8"}),o=document.createElement("a");o.href=URL.createObjectURL(a),o.download=`config-${Date.now()}.saladict`,o.target="_blank",document.body.appendChild(o),o.click()}catch(t){p.a.error({message:e("export.error.title"),description:e("export.error.parse")})}}(e)},s.a.createElement("div",{className:"ant-upload ant-upload-btn"},s.a.createElement("p",{className:"ant-upload-drag-icon"},s.a.createElement(o.a,null)),s.a.createElement("p",{className:"ant-upload-text"},e("export.title")))))),s.a.createElement(l.a,{justify:"center"},s.a.createElement("p",{style:{margin:"1em 0"}},e("import_export_help")))))}},959:function(e,t,n){"use strict";n.r(t),n.d(t,"PDF",(function(){return p}));var a=n(0),o=n.n(a),r=n(105),i=n(58),c=n(84),s=n(17),l=n(103),d=n(9),u=n(788);const p=()=>{const{t:e}=Object(d.d)(["options","common"]),[t,n]=Object(a.useState)(null);return o.a.createElement(o.a.Fragment,null,o.a.createElement(l.a,{items:[{name:Object(s.a)("pdfSniff"),valuePropName:"checked",extra:o.a.createElement(d.c,{message:e(Object(s.a)("pdfSniff")+"_extra")},o.a.createElement("a",{href:"https://saladict.crimx.com/native.html",target:"_blank",rel:"nofollow noopener noreferrer"},e("nativeSearch"))),children:o.a.createElement(r.a,null)},{name:Object(s.a)("pdfStandalone"),children:o.a.createElement(i.a,null,o.a.createElement(i.a.Option,{value:""},e("config.opt.pdfStandalone.default")),o.a.createElement(i.a.Option,{value:"always"},e("config.opt.pdfStandalone.always")),o.a.createElement(i.a.Option,{value:"manual"},e("config.opt.pdfStandalone.manual")))},{key:"BlackWhiteList",label:e("nav.BlackWhiteList"),help:e("config.opt.pdf_blackwhitelist_help"),children:o.a.createElement(o.a.Fragment,null,o.a.createElement(c.a,{style:{marginRight:10},onClick:()=>n("pdfBlacklist")},"PDF ",e("common:blacklist")),o.a.createElement(c.a,{onClick:()=>n("pdfWhitelist")},"PDF ",e("common:whitelist")))}]}),o.a.createElement(u.a,{area:t,onClose:()=>n(null)}))}},960:function(e,t,n){"use strict";n.r(t),n.d(t,"Permissions",(function(){return u}));var a=n(0),o=n.n(a),r=n(122),i=n(105),c=n(142),s=n(9),l=n(211);const d=["clipboardRead","clipboardWrite"],u=()=>{const e=Object(l.c)(),{t:t}=Object(s.d)(["options","common"]),[n,u]=Object(a.useState)(()=>d.reduce((e,t)=>(e[t]=!1,e),{}));return Object(a.useEffect)(()=>{Promise.all(d.map(async e=>{try{return await browser.permissions.contains({permissions:[e]})}catch(e){console.error(e)}return!1})).then(e=>{u(d.reduce((t,n,a)=>(t[n]=e[a],t),{}))})},[]),o.a.createElement(r.a,{...e},d.map(e=>o.a.createElement(r.a.Item,{key:e,label:t("permissions."+e),help:t(`permissions.${e}_help`)},o.a.createElement(i.a,{checked:n[e],onChange:async n=>{if(n)try{if(!await browser.permissions.request({permissions:[e]}))return void c.a.warn(t("permissions.cancelled"));c.a.success(t("permissions.success")),u(t=>({...t,[e]:!0}))}catch(e){console.error(e),c.a.error(t("permissions.failed"))}else await browser.permissions.remove({permissions:[e]}),c.a.success(t("permissions.cancel_success")),u(t=>({...t,[e]:!1}))}}))))}},961:function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return h}));var a=n(0),o=n.n(a),r=n(58),i=n(257),c=n(105),s=n(9),l=n(2),d=n(71),u=n(17),p=n(103);const h=()=>{const{t:e}=Object(s.d)(["options","menus"]),t=Object(d.c)(e=>{const t=Object.keys(e.config.contextMenus.all);return l.d?t.filter(e=>{switch(e){case"youdao_page_translate":case"caiyuntrs":return!1}return!0}):t}),{availWidth:n}=window.screen;return o.a.createElement(p.a,{items:[{name:Object(u.a)("baOpen"),children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:"popup_panel"},e("config.opt.baOpen.popup_panel")),o.a.createElement(r.a.Option,{value:"popup_fav"},e("config.opt.baOpen.popup_fav")),o.a.createElement(r.a.Option,{value:"popup_options"},e("config.opt.baOpen.popup_options")),o.a.createElement(r.a.Option,{value:"popup_standalone"},e("config.opt.baOpen.popup_standalone")),t.map(t=>o.a.createElement(r.a.Option,{key:t,value:t},e("menus:"+t))))},{name:Object(u.a)("baWidth"),hide:e=>"popup_panel"!==e[Object(u.a)("baOpen")],children:o.a.createElement(i.a,{tipFormatter:p.c,min:-1,max:n,marks:{"-1":"-1",450:"450px",[n]:n+"px"}})},{name:Object(u.a)("baHeight"),hide:e=>"popup_panel"!==e[Object(u.a)("baOpen")],children:o.a.createElement(i.a,{tipFormatter:p.c,min:250,max:n,marks:{250:"250px",550:"550px",[n]:n+"px"}})},{name:Object(u.a)("baPreload"),label:e("preload.title"),help:e("preload.help"),hide:e=>"popup_panel"!==e[Object(u.a)("baOpen")],children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:""},e("common:none")),o.a.createElement(r.a.Option,{value:"clipboard"},e("preload.clipboard")),o.a.createElement(r.a.Option,{value:"selection"},e("preload.selection")))},{name:Object(u.a)("baAuto"),label:e("preload.auto"),help:e("preload.auto_help"),hide:e=>"popup_panel"!==e[Object(u.a)("baOpen")]||!e[Object(u.a)("baPreload")],valuePropName:"checked",children:o.a.createElement(c.a,null)}]})}},962:function(e,t,n){"use strict";n.r(t),n.d(t,"Privacy",(function(){return s}));var a=n(0),o=n.n(a),r=n(105),i=n(17),c=n(103);const s=()=>o.a.createElement(c.a,{items:[{name:Object(i.a)("updateCheck"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(i.a)("analytics"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(i.a)("searchHistory"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(i.a)("searchHistoryInco"),hide:e=>!e[Object(i.a)("searchHistory")],valuePropName:"checked",children:o.a.createElement(r.a,null)},{key:"third_party_privacy",children:o.a.createElement(r.a,{disabled:!0,checked:!0})}]})},963:function(e,t,n){"use strict";n.r(t),n.d(t,"Pronunciation",(function(){return u}));var a=n(0),o=n.n(a),r=n(58),i=n(105),c=n(9),s=n(71),l=n(17),d=n(103);const u=()=>{const{t:e}=Object(c.d)(["options","common","dicts"]),t=Object(s.c)(e=>({cn:e.activeProfile.dicts.all.zdic.options.audio?e.config.autopron.cn.list:e.config.autopron.cn.list.filter(e=>"zdic"!==e),en:e.config.autopron.en.list,machine:e.config.autopron.machine.list}));return o.a.createElement(d.a,{items:[{name:Object(l.a)("autopron","cn","dict"),children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:""},e("common:none")),t.cn.map(t=>o.a.createElement(r.a.Option,{key:t,value:t},e(`dicts:${t}.name`))))},{name:Object(l.a)("autopron","en","dict"),children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:""},e("common:none")),t.en.map(t=>o.a.createElement(r.a.Option,{key:t,value:t},e(`dicts:${t}.name`))))},{name:Object(l.a)("autopron","en","accent"),hide:e=>!e[Object(l.a)("autopron","en","dict")],children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:"uk"},e("config.opt.accent.uk")),o.a.createElement(r.a.Option,{value:"us"},e("config.opt.accent.us")))},{name:Object(l.a)("autopron","machine","dict"),children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:""},e("common:none")),t.machine.map(t=>o.a.createElement(r.a.Option,{key:t,value:t},e(`dicts:${t}.name`))))},{name:Object(l.a)("autopron","machine","src"),hide:e=>!e[Object(l.a)("autopron","machine","dict")],children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:"trans"},e("config.autopron.machine.src_trans")),o.a.createElement(r.a.Option,{value:"searchText"},e("config.autopron.machine.src_search")))},{name:Object(l.b)("waveform"),valuePropName:"checked",children:o.a.createElement(i.a,null)}]})}},97:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return u}));var a=n(0),o=n.n(a),r=n(362),i=n(42);const c=o.a.createContext(async()=>{}),s=e=>{const[t,n]=Object(a.useState)(()=>"string"==typeof e.src?e.src:"#"),i=Object(a.useContext)(c);if(Object(r.a)(()=>{n("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const s=e.width||e.height||"1.2em",l=e.height||s;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:s,height:l},onClick:async a=>{if("#"===t&&"function"==typeof e.src){a.stopPropagation(),a.preventDefault();const t=await e.src();i(t),n(t)}}})};t.c=o.a.memo(s);const l=e=>{const{onPlayStart:t,...n}=e,r=Object(a.useCallback)(e=>{const n=e.target;n instanceof HTMLAnchorElement&&"#"!==n.href&&n.classList.contains("saladict-Speaker")&&(e.preventDefault(),e.stopPropagation(),n.classList.add("isActive"),Object(i.b)([Object(i.d)(1e3),t(n.href)]).then(()=>{n.classList.remove("isActive")}))},[t]);return o.a.createElement(c.Provider,{value:t},o.a.createElement("div",{onClick:r,...n}))},d=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},u=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""}},[[1046,0,1,3,4,2]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/options.6f3e9bff.js b/plugins/saladict-ztools/ext-saladic/assets/options.6f3e9bff.js deleted file mode 100644 index e740c716..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/options.6f3e9bff.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[13],{1:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h}));var a=n(76),o=n(38),r=n(10);const i=()=>{},c=new WeakMap,s=new WeakMap,l=new WeakMap,d={sync:{clear:p,remove:m,get:f,set:g,addListener:b,removeListener:y,createStream:w,get __storageArea__(){return"sync"}},local:{clear:p,remove:m,get:f,set:g,addListener:b,removeListener:y,createStream:w,get __storageArea__(){return"local"}},clear:p,addListener:b,removeListener:y,createStream:w,get __storageArea__(){return"all"}},u={send:O,addListener:x,removeListener:j,createStream:E,get __self__(){return!1},self:{initClient:v,initServer:function(){window.pageId="background page";const e=/^\[\[(.+)\]\]$/;browser.runtime.onMessage.addListener((t,n)=>{if(!t||!t.type)return;if("PAGE_INFO"===t.type)return Promise.resolve(function(e){const t={pageId:"",faviconURL:"",pageTitle:"",pageURL:""},n=e.tab;n?(t.pageId=n.id||"",n.favIconUrl&&(t.faviconURL=n.favIconUrl),n.url&&(t.pageURL=n.url),n.title&&(t.pageTitle=n.title)):(t.pageId="popup",e.url&&!e.url.startsWith("http")&&(t.faviconURL="https://saladict.crimx.com/favicon.ico"));return t}(n));const a=e.exec(t.type);if(a){t.type=a[1];const e=n.tab&&n.tab.id;return e?O(e,t):O(t)}})},send:async function(e){!1;void 0===window.pageId&&await v();return browser.runtime.sendMessage(Object.assign({},e,{__pageId__:window.pageId,type:`[[${e.type}]]`})).catch(e=>{!1})},addListener:x,removeListener:j,createStream:E,get __self__(){return!0}}};async function h(e,t){const n="string"==typeof e?{url:e,self:t}:e,a=!1!==n.unique,o=n.self?browser.runtime.getURL(n.url):n.url;if(a){const e=await browser.tabs.query({url:o}).catch(()=>[]);if(e.length>0){const{index:t,windowId:n}=e[0];return"function"==typeof browser.tabs.highlight&&await browser.tabs.highlight({tabs:t,windowId:n}),void await browser.windows.update(n,{focused:!0})}}await browser.tabs.create({url:o,active:!1!==n.active})}function p(){return"all"===this.__storageArea__?Promise.all([browser.storage.local.clear(),browser.storage.sync.clear()]).then(i):browser.storage[this.__storageArea__].clear()}function m(e){return browser.storage[this.__storageArea__].remove(e)}function f(...e){return browser.storage[this.__storageArea__].get(...e)}function g(e){return browser.storage[this.__storageArea__].set(e)}function b(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}let a=l.get(n);a||(a=new Map,l.set(n,a));const o=this.__storageArea__+t;let r=a.get(o);return r||(r=(e,a)=>{"all"!==this.__storageArea__&&a!==this.__storageArea__||t&&!(t in e)||n(e,a)},a.set(o,r)),browser.storage.onChanged.addListener(r)}function y(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}const a=l.get(n);if(a){if(!t)return a.forEach(e=>{browser.storage.onChanged.removeListener(e)}),void l.delete(n);{const e=this.__storageArea__+t,o=a.get(e);if(o)return browser.storage.onChanged.removeListener(o),a.delete(e),void(a.size<=0&&l.delete(n))}}browser.storage.onChanged.removeListener(n)}function w(e){if(!e)throw new Error("Missing key");return Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)).pipe(Object(o.a)(t=>Object.prototype.hasOwnProperty.call(Array.isArray(t)?t[0]:t,e)),Object(r.a)(t=>Array.isArray(t)?t[0][e]:t[e]))}function O(...e){return(1===e.length?browser.runtime.sendMessage(e[0]):browser.tabs.sendMessage(e[0],e[1])).catch(e=>{!1})}function x(...e){void 0===window.pageId&&v();const t=this.__self__?s:c,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1];let o=t.get(a);o||(o=new Map,t.set(a,o));let r=o.get(n||"__DEFAULT_MSGTYPE__");return r||(r=(e,t)=>{if(e&&(this.__self__?window.pageId===e.__pageId__:!e.__pageId__)&&(null==n||e.type===n))return a(e,t)},o.set(n||"__DEFAULT_MSGTYPE__",r)),browser.runtime.onMessage.addListener(r)}function j(...e){const t=this.__self__?s:c,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1],o=t.get(a);if(o){if(!n)return o.forEach(e=>browser.runtime.onMessage.removeListener(e)),void t.delete(a);{const e=o.get(n);if(e)return browser.runtime.onMessage.removeListener(e),o.delete(n),void(o.size<=0&&t.delete(a))}}browser.runtime.onMessage.removeListener(a)}function E(e){return(e?Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)):Object(a.a)(e=>this.addListener(e),e=>this.removeListener(e))).pipe(Object(r.a)(e=>Array.isArray(e)?e[0]:e))}function v(){return void 0===window.pageId?u.send({type:"PAGE_INFO"}).then(({pageId:e,faviconURL:t,pageTitle:n,pageURL:a})=>(window.pageId=e,window.faviconURL=t,n&&(window.pageTitle=n),a&&(window.pageURL=a),e)):Promise.resolve(window.pageId)}},1003:function(e,t,n){e.exports=n(1311)},1044:function(e,t,n){},107:function(e,t,n){"use strict";n.d(t,"g",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return m}));var a=n(1),o=n(432),r=n(436),i=n(142);var c=n(251);async function s(e,t){let{syncConfig:n}=await a.c.sync.get("syncConfig");n||(n={}),n[e]=t,await a.c.sync.set({syncConfig:n})}async function l(e){e?await s(e,null):await a.c.sync.remove("syncConfig")}async function d(e,t){await async function(e,t){return(await Object(i.a)()).syncmeta.put({id:e,json:t})}(e,JSON.stringify(t))}async function u(e){const t=await async function(e){return(await Object(i.a)()).syncmeta.where("id").equals(e).first(e=>e&&e.json).catch(e=>{!1})}(e);if(t)return JSON.parse(t)}async function h(e){await Object(r.c)({area:"notebook",words:e})}async function p(){return(await Object(o.a)({area:"notebook"})).words||[]}async function m(e,t,n="",a=""){const{i18n:o}=await c.a.getInstance();await o.loadNamespaces("sync");const r="string"==typeof t?t:t.message,i=`sync:${e}.error.${r}`,s=o.exists(i)?o.t(i):"Unknown error: "+r;browser.notifications.create({type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict "+o.t(`sync:${e}.title`),message:n+s+a,eventTime:Date.now()+2e4,priority:2})}},11:function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l}));var a=n(1);function o(e){return e?{date:e.date||Date.now(),text:e.text||"",context:e.context||"",title:e.title||"",url:e.url||"",favicon:e.favicon||"",trans:e.trans||"",note:e.note||""}:{date:Date.now(),text:"",context:"",title:"",url:"",favicon:"",trans:"",note:""}}function r(e){return a.a.send({type:"IS_IN_NOTEBOOK",payload:e}).catch((t=!1,e=>t));var t}async function i(e,t){await a.a.send({type:"SAVE_WORD",payload:{area:e,word:t}})}async function c(e,t){await a.a.send({type:"SYNC_SERVICE_DOWNLOAD"}),await a.a.send({type:"DELETE_WORDS",payload:{area:e,dates:t}})}function s(e,t){return a.a.send({type:"GET_WORDS_BY_TEXT",payload:{area:e,text:t}})}function l(e,t){return a.a.send({type:"GET_WORDS",payload:{area:e,...t}})}},113:function(e,t,n){"use strict";function a(){return Date.now().toString().slice(6)+Math.random().toString().slice(2,8)}n.d(t,"a",(function(){return a}))},1133:function(e,t,n){},1136:function(e,t,n){},1139:function(e,t,n){},1140:function(e,t,n){var a={"./BlackWhiteList":884,"./BlackWhiteList.tsx":884,"./ContextMenus":711,"./ContextMenus/":711,"./ContextMenus/AddModal":721,"./ContextMenus/AddModal.tsx":721,"./ContextMenus/EditeModal":722,"./ContextMenus/EditeModal.tsx":722,"./ContextMenus/index":711,"./ContextMenus/index.tsx":711,"./DictAuths":888,"./DictAuths.tsx":888,"./DictPanel":889,"./DictPanel.tsx":889,"./Dictionaries":712,"./Dictionaries/":712,"./Dictionaries/AllDicts":724,"./Dictionaries/AllDicts.tsx":724,"./Dictionaries/DictTitle":491,"./Dictionaries/DictTitle/":491,"./Dictionaries/DictTitle/_style.scss":890,"./Dictionaries/DictTitle/index":491,"./Dictionaries/DictTitle/index.tsx":491,"./Dictionaries/EditModal":723,"./Dictionaries/EditModal.tsx":723,"./Dictionaries/index":712,"./Dictionaries/index.tsx":712,"./General":891,"./General.tsx":891,"./ImportExport":892,"./ImportExport.tsx":892,"./Notebook":713,"./Notebook/":713,"./Notebook/index":713,"./Notebook/index.tsx":713,"./Notebook/sync-services/ankiconnect":786,"./Notebook/sync-services/ankiconnect.tsx":786,"./Notebook/sync-services/shanbay":787,"./Notebook/sync-services/shanbay.tsx":787,"./Notebook/sync-services/webdav":788,"./Notebook/sync-services/webdav.tsx":788,"./PDF":893,"./PDF.tsx":893,"./Permissions":894,"./Permissions.tsx":894,"./Popup":895,"./Popup.tsx":895,"./Privacy":896,"./Privacy.tsx":896,"./Profiles":714,"./Profiles/":714,"./Profiles/EditNameModal":627,"./Profiles/EditNameModal.tsx":627,"./Profiles/index":714,"./Profiles/index.tsx":714,"./Pronunciation":897,"./Pronunciation.tsx":897,"./QuickSearch":715,"./QuickSearch/":715,"./QuickSearch/StandaloneModal":725,"./QuickSearch/StandaloneModal.tsx":725,"./QuickSearch/TitlebarOffsetModal":726,"./QuickSearch/TitlebarOffsetModal.tsx":726,"./QuickSearch/index":715,"./QuickSearch/index.tsx":715,"./SearchModes":716,"./SearchModes/":716,"./SearchModes/index":716,"./SearchModes/index.tsx":716,"./SearchModes/searchMode":437,"./SearchModes/searchMode.tsx":437};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=1140},1141:function(e,t,n){},1150:function(e,t,n){},1186:function(e,t,n){var a={"./baidu/auth.ts":165,"./caiyun/auth.ts":166,"./sogou/auth.ts":167,"./tencent/auth.ts":168,"./youdaotrans/auth.ts":169};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=1186},1187:function(e,t,n){},119:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return u}));var a=n(0),o=n.n(a),r=n(389),i=n(46);const c=o.a.createContext(async()=>{}),s=e=>{const[t,n]=Object(a.useState)(()=>"string"==typeof e.src?e.src:"#"),i=Object(a.useContext)(c);if(Object(r.a)(()=>{n("string"==typeof e.src?e.src:"#")},[e.src]),!e.src)return null;const s=e.width||e.height||"1.2em",l=e.height||s;return o.a.createElement("a",{className:"saladict-Speaker",href:t,target:"_blank",rel:"noopener noreferrer",style:{width:s,height:l},onClick:async a=>{if("#"===t&&"function"==typeof e.src){a.stopPropagation(),a.preventDefault();const t=await e.src();i(t),n(t)}}})};t.c=o.a.memo(s);const l=e=>{const{onPlayStart:t,...n}=e,r=Object(a.useCallback)(e=>{if(e.target&&"A"===e.target.tagName&&e.target.href&&"#"!==e.target.href&&e.target.classList&&e.target.classList.contains("saladict-Speaker")){e.preventDefault(),e.stopPropagation();const n=e.target;n.classList.add("isActive"),Object(i.b)([Object(i.d)(1e3),t(n.href)]).then(()=>{n.classList.remove("isActive")})}},[t]);return o.a.createElement(c.Provider,{value:t},o.a.createElement("div",{onClick:r,...n}))},d=e=>{if(!e)return"";const t=document.createElement("a");return t.target="_blank",t.href=e,t.className="saladict-Speaker",t},u=e=>e?`<a href="${e}" target="_blank" rel="noopener noreferrer" class="saladict-Speaker"></a>`:""},1190:function(e,t,n){var a={"./baidu/engine":542,"./bing/engine":821,"./caiyun/engine":822,"./cambridge/engine":824,"./cnki/engine":825,"./cobuild/engine":826,"./etymonline/engine":827,"./eudic/engine":828,"./google/engine":829,"./googledict/engine":831,"./guoyu/engine":637,"./hjdict/engine":832,"./jikipedia/engine":833,"./jukuu/engine":834,"./lexico/engine":835,"./liangan/engine":836,"./longman/engine":837,"./macmillan/engine":838,"./mojidict/engine":839,"./naver/engine":840,"./renren/engine":841,"./shanbay/engine":842,"./sogou/engine":843,"./tencent/engine":845,"./urban/engine":847,"./vocabulary/engine":848,"./weblio/engine":849,"./weblioejje/engine":850,"./websterlearner/engine":851,"./wikipedia/engine":852,"./youdao/engine":853,"./youdaotrans/engine":854,"./zdic/engine":856};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=1190},1205:function(e,t,n){var a={"./ankiconnect.tsx":786,"./shanbay.tsx":787,"./webdav.tsx":788};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=1205},1206:function(e,t,n){},1311:function(e,t,n){"use strict";n.r(t),window.__SALADICT_INTERNAL_PAGE__=!0,window.__SALADICT_OPTIONS_PAGE__=!0,window.__SALADICT_LAST_SEARCH__="";n(431);var a=n(0),o=n.n(a),r=n(531),i=n(433),c=n(22),s=n(150),l=n(1322),d=n(311),u=n(206),h=n(63),p=n(149),m=n(247),f=n(9),g=n(576),b=n(220),y=n(941),w=n.n(y),O=n(940),x=n.n(O),j=n(739),E=n.n(j),v=n(939),C=n.n(v),k=n(938),S=n.n(k),M=n(937),I=n.n(M),A=n(936),N=n.n(A),T=n(935),D=n.n(T),_=n(934),z=n.n(_),L=n(933),B=n.n(L),P=n(932),R=n.n(P),U=n(931),W=n.n(U),H=n(930),F=n.n(H),q=n(929),Y=n.n(q),Q=n(928),$=n.n(Q),V=n(927),G=n.n(V),K=n(147),X=n.n(K),J=n(1325),Z=n(538),ee=n(191),te=n(240),ne=n(4),ae=n.n(ne),oe=n(176),re=n(371),ie=n(502);n(1044);const ce=e=>{const{t:t}=Object(f.e)("options"),n=Object(b.b)(),[r,i]=Object(te.a)(e=>e.pipe(Object(oe.a)(),Object(re.a)(500),Object(ie.a)(e=>(e+1)%1e4,0))),[c,s]=Object(a.useState)();return o.a.createElement(J.a,{key:r,onChange:s},o.a.createElement(l.a,null,o.a.createElement(l.a.Sider,{className:ae()("entry-sidebar","fancy-scrollbar",{isAffixed:c}),width:180,breakpoint:"lg",collapsible:!0,trigger:null,onCollapse:i},o.a.createElement(Z.a,{mode:"inline",selectedKeys:[e.entry],onSelect:({key:a})=>{const r=()=>{e.onChange(""+a),Object(b.a)(!1)};n.value?ee.a.confirm({title:t("unsave_confirm"),icon:o.a.createElement(X.a,null),okType:"danger",onOk:r}):r()}},o.a.createElement(Z.a.Item,{key:"General"},o.a.createElement(G.a,null),o.a.createElement("span",null,t("nav.General"))),o.a.createElement(Z.a.Item,{key:"Notebook"},o.a.createElement($.a,null),o.a.createElement("span",null,t("nav.Notebook"))),o.a.createElement(Z.a.Item,{key:"Profiles"},o.a.createElement(Y.a,null),o.a.createElement("span",null,t("nav.Profiles"))),o.a.createElement(Z.a.Item,{key:"DictPanel"},o.a.createElement(F.a,null),o.a.createElement("span",null,t("nav.DictPanel"))),o.a.createElement(Z.a.Item,{key:"SearchModes"},o.a.createElement(W.a,null),o.a.createElement("span",null,t("nav.SearchModes"))),o.a.createElement(Z.a.Item,{key:"Dictionaries"},o.a.createElement(R.a,null),o.a.createElement("span",null,t("nav.Dictionaries"))),o.a.createElement(Z.a.Item,{key:"DictAuths"},o.a.createElement(B.a,null),o.a.createElement("span",null,t("nav.DictAuths"))),o.a.createElement(Z.a.Item,{key:"Popup"},o.a.createElement(z.a,null),o.a.createElement("span",null,t("nav.Popup"))),o.a.createElement(Z.a.Item,{key:"QuickSearch"},o.a.createElement(D.a,null),o.a.createElement("span",null,t("nav.QuickSearch"))),o.a.createElement(Z.a.Item,{key:"Pronunciation"},o.a.createElement(N.a,null),o.a.createElement("span",null,t("nav.Pronunciation"))),o.a.createElement(Z.a.Item,{key:"PDF"},o.a.createElement(I.a,null),o.a.createElement("span",null,t("nav.PDF"))),o.a.createElement(Z.a.Item,{key:"ContextMenus"},o.a.createElement(S.a,null),o.a.createElement("span",null,t("nav.ContextMenus"))),o.a.createElement(Z.a.Item,{key:"BlackWhiteList"},o.a.createElement(C.a,null),o.a.createElement("span",null,t("nav.BlackWhiteList"))),o.a.createElement(Z.a.Item,{key:"ImportExport"},o.a.createElement(E.a,null),o.a.createElement("span",null,t("nav.ImportExport"))),o.a.createElement(Z.a.Item,{key:"Privacy"},o.a.createElement(x.a,null),o.a.createElement("span",null,t("nav.Privacy"))),o.a.createElement(Z.a.Item,{key:"Permissions"},o.a.createElement(w.a,null),o.a.createElement("span",null,t("nav.Permissions")))))))},se=o.a.memo(ce);var le=n(40),de=(n(943),n(309),n(1326)),ue=n(761);const he=[{name:"zhtw2013",href:"https://github.com/crimx/ext-saladict/commits?author=zhtw2013",locale:"trans_tw"},{name:"lwdgit",href:"https://github.com/crimx/ext-saladict/commits?author=lwdgit",locale:"shanbay"},{name:"Wekey",href:"https://weibo.com/925515171?is_hot=1",locale:"naver"},{name:"caerlie",href:"https://github.com/caerlie",locale:"weblio"},{name:"stockyman",href:"https://github.com/stockyman",locale:"trans_tw"}];const pe=o.a.memo(()=>{const{t:e}=Object(f.e)("options");return o.a.createElement(ue.b,{dataSource:he.map((t,n)=>o.a.createElement("div",{key:n},o.a.createElement("a",{href:t.href,rel:"nofollow noopener noreferrer",target:"_blank"},t.name)," ",e("headInfo.acknowledgement."+t.locale))),renderItem:e=>o.a.createElement(ue.b.Item,null,e)})});n(1133);const me=()=>{const{t:e}=Object(f.e)("options");return o.a.createElement("ul",{className:"head-info"},null,o.a.createElement("li",{className:"head-info-bubble-wrap head-info-unin"},o.a.createElement(de.a,{placement:"bottomRight",content:o.a.createElement(pe,null)},o.a.createElement("a",{href:"https://github.com/crimx/ext-saladict/wiki#acknowledgement",onClick:ge},e("headInfo.acknowledgement.title")))),o.a.createElement("li",null,o.a.createElement("a",{href:"https://saladict.crimx.com/manual.html",target:"_blank",rel:"nofollow noopener noreferrer"},e("headInfo.instructions"))),o.a.createElement("li",null,o.a.createElement("a",{href:"https://saladict.crimx.com/support.html",target:"_blank",rel:"nofollow noopener noreferrer"},"💪",e("headInfo.donate"))),o.a.createElement("li",null,o.a.createElement("a",{href:"https://github.com/crimx/ext-saladict/issues",target:"_blank",rel:"nofollow noopener noreferrer"},e("headInfo.report_issue"))))},fe=o.a.memo(me);function ge(e){e.preventDefault()}n(1136);const be=e=>{const{t:t,ready:n}=Object(f.e)(["options","common"]),{profileId:r,profileIDList:i}=Object(h.c)(e=>({profileId:e.activeProfile.id,profileIDList:e.profiles}),c.c),s=Object(a.useMemo)(()=>"v"+browser.runtime.getManifest().version,[]),d=Object(a.useMemo)(()=>{var e;return n?`「 ${Object(le.h)((null===(e=i.find(({id:e})=>e===r))||void 0===e?void 0:e.name)||"",t)} 」`:""},[r,i,n]);return o.a.createElement(l.a.Header,null,o.a.createElement("div",{className:"options-header"},o.a.createElement("div",{className:"options-header-title"},o.a.createElement("h1",null,t("title")),o.a.createElement("span",null,s)),o.a.createElement("a",{href:"/?menuselected=Profiles",onClick:t=>{t.preventDefault(),t.stopPropagation(),e.openProfilesTab("Profiles")}},d),o.a.createElement(fe,null)))},ye=o.a.memo(be);var we=n(944),Oe=n.n(we),xe=n(1);const je=()=>(Object(a.useEffect)(()=>{xe.a.self.send({type:"CLOSE_PANEL"})},[]),o.a.createElement("div",{style:{height:"calc(100vh - 160px)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},o.a.createElement(Oe.a,{style:{fontSize:80,color:"#eb2f96",marginBottom:10}}),o.a.createElement("h1",null,"Entry Not Found")));var Ee=n(89),ve=n(82),Ce=n(11),ke=n(61),Se=n(46),Me=n(5);async function Ie(){const e=await Object(ke.a)("https://www.merriam-webster.com/word-of-the-day"),t=Object(Me.f)(e,"title").match(/Word of the Day: (.+) \| Merriam-Webster/);return t&&t[1]||Object(Me.h)()}async function Ae(){const e=await Object(ke.a)("https://www.dictionary.com/wordoftheday/"),t=Object(Me.f)(e,"title").match(/Get the Word of the Day - (.+) \| Dictionary\.com/);return t&&t[1]||Object(Me.h)()}var Ne=n(632),Te=n(945),De=n.n(Te);const _e=e=>o.a.createElement(De.a,{component:()=>o.a.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"currentColor"},o.a.createElement("g",{fillRule:"evenodd"},o.a.createElement("g",{fillRule:"nonzero"},o.a.createElement("path",{d:"M7.02 3.635l12.518 12.518a1.863 1.863 0 010 2.635l-1.317 1.318a1.863 1.863 0 01-2.635 0L3.068 7.588A2.795 2.795 0 117.02 3.635zm2.09 14.428a.932.932 0 110 1.864.932.932 0 010-1.864zm-.043-9.747L7.75 9.635l9.154 9.153 1.318-1.317-9.154-9.155zM3.52 12.473c.514 0 .931.417.931.931v.932h.932a.932.932 0 110 1.864h-.932v.931a.932.932 0 01-1.863 0l-.001-.931h-.93a.932.932 0 010-1.864h.93v-.932c0-.514.418-.931.933-.931zm15.374-3.727a1.398 1.398 0 110 2.795 1.398 1.398 0 010-2.795zM4.385 4.953a.932.932 0 000 1.317l2.046 2.047L7.75 7 5.703 4.953a.932.932 0 00-1.318 0zM14.701.36a.932.932 0 01.931.932v.931h.932a.932.932 0 010 1.864h-.933l.001.932a.932.932 0 11-1.863 0l-.001-.932h-.93a.932.932 0 110-1.864h.93v-.931a.932.932 0 01.933-.932z"})))),...e});n(1139);const ze=async function(){try{return await Object(Se.a)([Ie(),Ae()])}catch(e){}return"salad"}(),Le=()=>{const{t:e}=Object(f.e)("options"),t=!Object(Ne.a)(),n=Object(c.d)();return o.a.createElement(Ee.a,{classNames:"btn-preview-fade",mountOnEnter:!0,unmountOnExit:!0,appear:!0,in:t,timeout:500},o.a.createElement("div",null,o.a.createElement(ve.a,{className:"btn-preview",title:e("previewPanel"),shape:"circle",size:"large",icon:o.a.createElement(_e,null),onClick:async e=>{const{x:t,width:a}=e.currentTarget.getBoundingClientRect();n({type:"OPEN_PANEL",payload:{x:t+a,y:80}}),n({type:"SEARCH_START",payload:{word:Object(Ce.e)({text:await ze})}})}})))},Be=o.a.memo(Le),Pe=o.a.memo(({entry:e})=>o.a.createElement(n(1140)("./"+e)[e])),Re=()=>{const e=Object(a.useContext)(f.a),{t:t,ready:n}=Object(f.e)("options"),[r,y]=Object(a.useState)(Ue),w=Object(b.b)(),O=Object(a.useRef)(!1),{analytics:x,darkMode:j}=Object(h.c)(e=>({analytics:e.config.analytics,darkMode:e.config.darkMode}),c.c);return Object(a.useEffect)(()=>{if(Ue()!==r){const{protocol:e,host:t,pathname:n}=window.location,a=`${e}//${t}${n}?menuselected=${r}`;window.history.pushState({key:r},"",a)}x&&Object(p.b)("/options/"+r)},[r,x]),Object(a.useEffect)(()=>{window.addEventListener("beforeunload",e=>{w.value&&(e.preventDefault(),e.returnValue=t("unsave_confirm"))})},[]),Object(a.useEffect)(()=>{if(n&&!O.current){O.current=!0;const e=new URL(document.URL).searchParams.get("missing_permission");e&&s.a.warn(t("permissions.missing",{permission:t("permissions."+e)}),20)}},[Boolean(n)]),o.a.createElement(o.a.Fragment,null,o.a.createElement(i.a,null,n&&o.a.createElement("title",null,`${t("title")} - ${t("nav."+r)}`)),o.a.createElement(ye,{openProfilesTab:y}),o.a.createElement(l.a,{style:{maxWidth:1400,margin:"0 auto"},className:"main-entry"+(j?" dark-mode":"")},o.a.createElement(d.a,null,o.a.createElement(u.a,null,o.a.createElement(se,{entry:r,onChange:y})),o.a.createElement(u.a,{style:{flex:"1"}},o.a.createElement(l.a,{style:{padding:24}},o.a.createElement(l.a.Content,{"data-option-content":r,style:{padding:24,backgroundColor:"var(--opt-background-color)"}},o.a.createElement(g.a.Provider,{value:y},o.a.createElement(m.a,{key:r+e,error:je},n&&o.a.createElement(Pe,{entry:r}))))))),o.a.createElement(Be,null)))};function Ue(){return new URL(document.URL).searchParams.get("menuselected")||"General"}n(1206);document.title="Saladict Options",Object(r.a)(()=>o.a.createElement(Re,null))},133:function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return f}));var a=n(0),o=n.n(a),r=n(89),i=n(116),c=n(30),s=n(240),l=n(130),d=n(104),u=n(87),h=n(135),p=n(20);const m=o.a.createContext({current:null}),f=e=>{const t=Object(a.useContext)(m),n=Object(a.useRef)(null),f=Object(a.useRef)(null),[g,b]=Object(i.a)(u.c),[y,w]=Object(i.a)(u.d),[O,x]=Object(i.a)(u.b),[j,E]=Object(i.a)(u.a),[v,C]=Object(i.a)(c.b),k=Object(s.a)(Object(l.a)(()=>Object(d.a)(b,w)),!1),S=Object(s.a)(Object(l.a)(()=>Object(d.a)(x,E,C)),!1),M=k||S,[I,A]=Object(a.useState)(()=>null==e.left?{top:null==e.top?40:e.top,left:"50%",transform:"translateX(-50%)"}:{top:null==e.top?40:e.top,left:e.left});return o.a.createElement("div",{className:"hoverBox-Container",ref:n},o.a.createElement(e.Button,{onKeyDown:e=>{switch(e.key){case"ArrowDown":if(e.preventDefault(),e.stopPropagation(),M){if(f.current){const e=f.current.firstElementChild;e&&e.focus()}}else v(!0);break;case"Tab":if(!e.shiftKey&&M&&f.current){e.preventDefault(),e.stopPropagation();const t=f.current.firstElementChild;t&&t.focus()}}},onMouseOver:g,onMouseOut:g,onClick:()=>{e.onBtnClick&&!1===e.onBtnClick()||y()}}),o.a.createElement(r.a,{classNames:"csst-hoverBox",in:M,timeout:100,mountOnEnter:!0,unmountOnExit:!0,onEnter:()=>{if(t.current&&n.current){const a=t.current.getBoundingClientRect(),o=n.current.getBoundingClientRect();A({top:o.y-a.y+(null==e.top?40:e.top),left:o.x-a.x+(null==e.left?-Math.floor(o.width/2):e.left)})}},onExited:()=>e.onHeightChanged&&e.onHeightChanged(0)},()=>{const a=o.a.createElement("div",{className:"hoverBox-FloatBox",style:I},o.a.createElement(h.a,{ref:f,compact:e.compact,list:e.items,onFocus:j,onBlur:j,onMouseOver:O,onMouseOut:O,onArrowUpFirst:e=>e.lastElementChild.focus(),onArrowDownLast:e=>e.firstElementChild.focus(),onSelect:e.onSelect,onHeightChanged:e.onHeightChanged,onClose:()=>v(!1)}));return t.current&&n.current?Object(p.createPortal)(a,t.current):a}))}},135:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),o=n.n(a),r=n(184),i=n(4),c=n.n(i);const s=o.a.forwardRef((e,t)=>{const[n,i]=Object(a.useState)(0),[s,l]=Object(a.useState)(0),d=Object(a.useCallback)((t,a)=>{l(t),i(a),e.onHeightChanged&&a!==n&&e.onHeightChanged(a)},[e.onHeightChanged]);return o.a.createElement("div",{className:c()("floatBox-Container",{"floatBox-compact":e.compact}),style:{width:s,height:n},onMouseOver:e.onMouseOver,onMouseOut:e.onMouseOut},o.a.createElement("div",{className:"floatBox-Measure"},o.a.createElement(r.ResizeReporter,{reportInit:!0,onSizeChanged:d}),e.list?o.a.createElement("div",{key:"box",ref:t,className:"floatBox"},e.list.map((function(t){if(t.options)return o.a.createElement("select",{key:t.key,className:"floatBox-Item floatBox-Select","data-key":t.key,defaultValue:t.value,onFocus:e.onFocus,onBlur:e.onBlur,onChange:u},t.title&&o.a.createElement("option",{disabled:!0},t.title),t.options.map(e=>o.a.createElement("option",{key:e.value,value:e.value},e.label)));return o.a.createElement("button",{key:t.key,className:"floatBox-Item floatBox-Btn","data-key":t.key,"data-value":t.value,onFocus:e.onFocus,onBlur:e.onBlur,onClick:h,onKeyDown:p},t.label)}))):o.a.createElement("div",{key:"loading",className:"lds-ellipsis"},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))));function u(t){if(e.onSelect){const{dataset:{key:n},value:a}=t.currentTarget;e.onSelect(n,a)}}function h(t){if(e.onSelect){const{key:n,value:a}=t.currentTarget.dataset;e.onSelect(n,a)}}function p(t){if("ArrowDown"===t.key){t.preventDefault(),t.stopPropagation();const n=t.currentTarget.nextSibling;n?n.focus():e.onArrowDownLast&&e.onArrowDownLast(t.currentTarget.parentElement)}else if("ArrowUp"===t.key){t.preventDefault(),t.stopPropagation();const n=t.currentTarget.previousSibling;n?n.focus():e.onArrowUpFirst&&e.onArrowUpFirst(t.currentTarget.parentElement)}else"Escape"===t.key&&(t.preventDefault(),t.stopPropagation(),e.onClose&&e.onClose(t.currentTarget.parentElement))}})},140:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return h}));var a=n(0),o=n.n(a),r=n(20),i=n.n(r),c=n(89),s=n(218),l=n(2);const d={enter:400,exit:100,appear:400},u={all:"initial"},h=e=>{const{id:t,head:n,shadowRootClassName:r,innerRootClassName:h,panelCSS:p,onEnter:m,onExited:f,...g}=e,b=Object(a.useMemo)(()=>{let e=document.getElementById(t);return e||(e=document.createElement("div"),e.id=t,e.className="saladict-div "+(r||l.a)),e},[r]);return Object(a.useEffect)(()=>()=>{b.parentNode&&b.remove()},[]),i.a.createPortal(o.a.createElement(s.a.div,{className:r||l.a},o.a.createElement("div",{className:h,style:u},n,p?o.a.createElement("style",null,p):null,o.a.createElement(c.a,{classNames:"shadowPortal",mountOnEnter:!0,unmountOnExit:!0,appear:!0,timeout:d,...g,onEnter:(...e)=>{if(b.parentNode||document.documentElement.appendChild(b),m)return m(...e)},onExited:(...e)=>{if(b.parentNode&&b.remove(),f)return f(...e)}}))),b)};t.b=h},141:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=Object.keys},142:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(749);class o extends a.a{constructor(){super("SaladictWords"),this.notebook=void 0,this.history=void 0,this.syncmeta=void 0,this.version(1).stores({notebook:"date,text,context,url",history:"date,text,context,url",syncmeta:"id"}),this.notebook=this.table("notebook"),this.history=this.table("history"),this.syncmeta=this.table("syncmeta")}}let r;async function i(){return r||(r=new o),r.isOpen()||await r.open(),r}},149:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return h}));var a=n(383),o=n.n(a),r=n(131),i=n.n(r),c=n(384),s=n.n(c),l=n(1),d=n(113);async function u(e){const t=new o.a,n=t.getBrowser(),a=t.getOS();try{await p({t:"pageview",dp:e,cd1:n.name||"None",cd2:(n.version||"0.0").split(".").slice(0,3).join("."),cd3:a.name||"None",cd4:a.version||"0.0",de:"UTF-8",dl:document.location.href,sd:screen.colorDepth+"-bit",sr:screen.width+"x"+screen.height,ul:"zh-cn"})}catch(e){console.error("Report pageview error",e)}}async function h(e){const t={t:"event",ec:e.category,ea:e.action};null!=e.label&&(t.el=e.label),null!=e.value&&(t.ev=e.value);try{await p(t)}catch(e){console.error("Report event error",e)}}async function p(e){let t=(await l.c.sync.get("gacid")).gacid;return t||(t=s()(),l.c.sync.set({gacid:t})),i()({url:"https://www.google-analytics.com/collect",method:"post",headers:{"content-type":"text/plain;charset=UTF-8"},data:new URLSearchParams({v:"1",tid:"UA-49163616-4",cid:t,z:Object(d.a)(),...e})})}},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));n(30);function a(...e){return"config."+e.join(".")}function o(...e){return"profile."+e.join(".")}},160:function(e,t,n){"use strict";n.d(t,"b",(function(){return b}));var a=n(78),o=n(81),r=n(73),i=n.n(r),c=n(90),s=n.n(c),l=n(100),d=n.n(l),u=n(57),h=n.n(u),p=n(21),m=n.n(p),f=n(27),g=n.n(f);function b(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.a)();let r=e.version;return r<13&&(e.showedDictAuth=!0),r<=9&&(r=10,["mode","pinMode","panelMode","qsPanelMode"].forEach(t=>{n[t].holding.shift=!1,n[t].holding.ctrl=!!e[t].ctrl,n[t].holding.meta=!!e[t].ctrl,delete e[t].ctrl})),c("tripleCtrlPreload","qsPreload"),c("tripleCtrlAuto","qsAuto"),c("tripleCtrlLocation","qsLocation"),c("tripleCtrlStandalone","qsStandalone"),c("tripleCtrlHeight","qssaHeight"),c("tripleCtrlSidebar","qssaSidebar"),c("tripleCtrlPageSel","qssaPageSel"),Object.keys(n).forEach(t=>{switch(t){case"langCode":f("langCode",e=>/^(zh-CN|zh-TW|en)$/.test(e));break;case"pdfWhitelist":case"pdfBlacklist":case"whitelist":case"blacklist":f(t,e=>Array.isArray(e));break;case"searhHistory":case"searchHistory":n.searchHistory=e[t];break;case"searhHistoryInco":case"searchHistoryInco":n.searchHistoryInco=e[t];break;case"mode":case"pinMode":case"panelMode":case"qsPanelMode":"mode"===t&&p("mode.icon"),p(t+".direct"),p(t+".double"),p(t+".holding.alt"),p(t+".holding.shift"),p(t+".holding.ctrl"),p(t+".holding.meta"),p(t+".instant.enable"),f(t+".instant.key",e=>/^(direct|ctrl|alt|shift)$/.test(e)),l(t+".instant.delay");break;case"qsPreload":f("qsPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"qsLocation":f("qsLocation",e=>"CENTER"===e||"TOP"===e||"RIGHT"===e||"BOTTOM"===e||"LEFT"===e||"TOP_LEFT"===e||"TOP_RIGHT"===e||"BOTTOM_LEFT"===e||"BOTTOM_RIGHT"===e);break;case"baPreload":f("baPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"ctxTrans":i()(n.ctxTrans,(e,t)=>{p("ctxTrans."+t)});break;case"language":i()(n.language,(e,t)=>{p("language."+t)});break;case"autopron":f("autopron.cn.dict",e=>o.a[e]),f("autopron.en.dict",e=>o.a[e]),f("autopron.en.accent",e=>"us"===e||"uk"===e),f("autopron.machine.dict",e=>o.a[e]),f("autopron.machine.src",e=>"trans"===e||"searchText"===e);break;case"contextMenus":i()(e.contextMenus.all,(e,t)=>{"string"==typeof e?n.contextMenus.all[t]&&u("contextMenus.all."+t):(u(`contextMenus.all.${t}.name`),u(`contextMenus.all.${t}.url`))}),function(t){const a=m()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)g()(n,[t,"selected"],[]);else{const e=m()(n,[t,"all"]),o=a.filter(t=>e[t]);o.length>0&&g()(n,[t,"selected"],o)}}("contextMenus");break;case"dictAuth":f("dictAuth",Boolean);break;default:switch(typeof n[t]){case"string":u(t);break;case"boolean":p(t);break;case"number":l(t);break;default:console.error(new Error(`merge config: missing handler for '${t}'`))}}}),r=e.version,r<=10&&(r=11,n.contextMenus.selected.unshift("view_as_pdf")),r<=11&&(r=12,n.blacklist.push(["^https://stackedit.io(/.*)?$","https://stackedit.io/*"])),!1===e.language.minor&&(n.language.japanese=!1,n.language.korean=!1,n.language.french=!1,n.language.spanish=!1,n.language.deutsch=!1),n.panelMaxHeightRatio<1&&(n.panelMaxHeightRatio=Math.round(100*n.panelMaxHeightRatio)),n;function c(t,n){!Object.prototype.hasOwnProperty.call(e,n)&&Object.prototype.hasOwnProperty.call(e,t)&&(e[n]=e[t])}function l(e){return f(e,s.a)}function u(e){return f(e,d.a)}function p(e){return f(e,h.a)}function f(t,a){const o=m()(e,t);a(o)&&g()(n,t,o)}}t.a=b},165:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appid:"",key:""},o="http://api.fanyi.baidu.com/api/trans/product/prodinfo"},166:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={token:""},o="https://fanyi.caiyunapp.com/#/api"},167:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={pid:"",key:""},o="https://deepi.sogou.com/?from=translatepc"},168:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={secretId:"",secretKey:""},o="https://curl.qcloud.com/imsowZzT"},169:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return o}));const a={appKey:"",key:""},o="http://ai.youdao.com/gw.s"},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i}));var a=n(24);async function o(e,t,{options:n,options_sel:o},r,i){("none"===n.keepLF||"pdf"===n.keepLF&&!i.isPDF||"webpage"===n.keepLF&&i.isPDF)&&(t=t.replace(/\n+/g," "));let c=i.sl;c||(Object(a.g)(t)?c="ja":Object(a.h)(t)&&(c="ko")),c||(c=await e.detect(t));let s="";return i.tl?s=i.tl:"default"===n.tl?o.tl.includes(r.langCode)&&(s=r.langCode):s=n.tl,s||(s=o.tl.find(e=>"default"!==e)||"en"),c===s&&(i.tl?i.sl||(c="auto"):s="default"===n.tl2?s!==r.langCode?r.langCode:"en"!==s?"en":o.tl.find(e=>"default"!==e&&e!==s)||"en":n.tl2),{sl:c,tl:s,text:t}}function r(e,t,n,a){return{lang:"11111111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:320,selectionWC:{min:1,max:999999999999999},...t,options:{keepLF:"webpage",slInitial:"collapse",tl:"default",tl2:"default",...n},options_sel:{keepLF:["none","all","webpage","pdf"],slInitial:["collapse","hide","full"],tl:["default",...e],tl2:["default",...e],...a}}}function i(e,t){const n=[{value:"auto",label:"%t(content:machineTrans.auto)"}];for(const e of t)n.push({value:e,label:`${e} %t(langcode:${e})`});const a=[{key:"sl",value:e.result.sl,title:"%t(content:machineTrans.sl)",options:n},{key:"tl",value:e.result.tl,title:"%t(content:machineTrans.tl)",options:n},{key:"copySrc",value:"copySrc",label:"%t(content:machineTrans.copySrc)"},{key:"copyTrans",value:"copyTrans",label:"%t(content:machineTrans.copyTrans)"}];return"hide"===e.result.slInitial&&a.push({key:"showSl",value:"",label:"%t(content:machineTrans.showSl)"}),{...e,catalog:a}}},173:function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return S}));var a=n(118),o=n(104),r=n(52),i=n(155),c=n(38),s=n(10),l=n(83),d=n(128),u=n(500),h=n(501),p=n(180),m=n(176),f=n(108),g=n(435),b=n(502),y=n(116),w=n(130),O=n(30),x=n(182),j=n(2),E=n(42),v=n(24),C=n(41);function k(e){return e?e.touchMode?function(e){const t=Object(o.a)(Object(r.a)(window,"mousedown",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),Object(r.a)(window,"touchstart",{capture:!0}).pipe(Object(s.a)(e=>e.changedTouches[0]))),n=Object(o.a)(Object(r.a)(window,"mouseup",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),Object(r.a)(window,"touchend",{capture:!0}).pipe(Object(s.a)(e=>e.changedTouches[0]))),a=M(n,e.doubleClickDelay),p=Object(o.a)(Object(l.a)(!0)(t),Object(l.a)(!1)(n),Object(l.a)(!1)(Object(r.a)(window,"mouseout",{capture:!0})),Object(l.a)(!1)(Object(r.a)(window,"blur",{capture:!0})));return Object(r.a)(document,"selectionchange").pipe(Object(d.a)(p),Object(u.a)(([,e])=>e?n:Object(i.a)(400)),Object(s.a)(([,e])=>[window.getSelection(),e]),Object(c.a)(e=>!!e[0]&&!Object(j.e)(e[0].anchorNode)),Object(d.a)(n,t,a),Object(s.a)(([[t,n],a,o,r])=>{const i=Object(j.d)(t.anchorNode||o.target);if(e.noTypeField&&Object(C.d)(n?o.target:t.anchorNode))return{self:i};const c=Object(E.d)(t);if(!Object(v.a)(e.language,c))return{self:i};if(n)return{word:{text:c,context:Object(E.b)(t)},self:i,dbClick:r>=2,mouseX:a.clientX,mouseY:a.clientY,altKey:!!a.altKey,shiftKey:!!a.shiftKey,ctrlKey:!!a.ctrlKey,metaKey:!!a.metaKey};const s=t.getRangeAt(0).getBoundingClientRect();return 0===s.top&&0===s.left&&0===s.width&&0===s.height?{self:i}:{word:{text:c,context:Object(E.b)(t)},self:i,dbClick:r>=2,mouseX:s.right,mouseY:s.top}}),Object(h.a)(t=>{if(j.c&&t.self&&t.word&&t.word.text){const{direct:n,double:a,holding:o}=e.panelMode;if(n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey)return Object(i.a)(500)}return Object(i.a)(0)}))}(e):function(e){const t=Object(r.a)(window,"mousedown",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),n=Object(r.a)(window,"mouseup",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),a=M(n,e.doubleClickDelay);return n.pipe(Object(c.a)(e=>!Object(j.e)(e.target)),Object(p.a)(10),Object(d.a)(t,a),Object(c.a)(([e,t])=>!Object(j.d)(e.target)&&!Object(j.d)(t.target)),Object(s.a)(([t,n,a])=>{if(e.noTypeField&&Object(C.d)(n.target))return{self:!1};const o=window.getSelection(),r=Object(E.d)(o);return Object(v.a)(e.language,r)?{word:{text:r,context:Object(E.b)(o)},self:!1,dbClick:a>=2,mouseX:t.clientX,mouseY:t.clientY,altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey}:{self:!1}}),Object(m.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context))}(e):a.a}function S(e,t,n,a){const[o,r]=Object(y.a)(e=>e.pipe(Object(c.a)(e=>0===e.button))),i=Object(w.a)(O.b,[e,t]),l=Object(w.a)(e=>e.pipe(Object(f.a)(([e])=>M(r,e))),[n]),u=Object(w.a)(()=>r.pipe(Object(d.a)(i),Object(c.a)(([e,[t]])=>{if(t)return!1;for(let t=e.target;t;t=t.parentElement)if("A"===t.tagName||"BUTTON"===t.tagName)return!1;return!0}),Object(s.a)(([e,[,t]])=>({mouseup:e.nativeEvent,language:t})),Object(p.a)(10),Object(d.a)(l),Object(s.a)(([{mouseup:e,language:t},n])=>{const a=window.getSelection(),o=Object(E.d)(a);return Object(v.a)(t,o)?{word:{text:o,context:Object(E.b)(a)},dbClick:n>=2,mouseX:e.clientX,mouseY:e.clientY,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,self:!0,instant:!1,force:!1}:{word:null,self:!0,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}}),Object(m.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context)));return Object(x.a)(u,async e=>{e.word&&(e.word=await Object(C.e)(e.word)),a(e)}),o}function M(e,t){return e.pipe(Object(f.a)(()=>Object(i.a)(t).pipe(Object(l.a)(!1),Object(g.a)(!0))),Object(b.a)((e,t)=>t?e+1:0,0))}},178:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(74),o=n(73),r=n.n(o),i=n(90),c=n.n(i),s=n(100),l=n.n(s),d=n(57),u=n.n(d),h=n(21),p=n.n(h),m=n(27),f=n.n(m);function g(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.b)(e.id);return Object.keys(n).forEach(t=>{switch(t){case"dicts":(function(t){const a=p()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)f()(n,[t,"selected"],[]);else{const e=p()(n,[t,"all"]),o=a.map(e=>"olad"===e?"lexico":e).filter(t=>e[t]);o.length>0&&f()(n,[t,"selected"],o)}})("dicts"),r()(n.dicts.all,(t,a)=>{const s=p()(e,`dicts.all.${a}.defaultUnfold`);u()(s)?f()(n,`dicts.all.${a}.defaultUnfold`,{chinese:s,english:s,japanese:s,korean:s,french:s,spanish:s,deutsch:s,others:s}):(i(`dicts.all.${a}.defaultUnfold.chinese`),i(`dicts.all.${a}.defaultUnfold.english`),i(`dicts.all.${a}.defaultUnfold.japanese`),i(`dicts.all.${a}.defaultUnfold.korean`),i(`dicts.all.${a}.defaultUnfold.french`),i(`dicts.all.${a}.defaultUnfold.spanish`),i(`dicts.all.${a}.defaultUnfold.deutsch`),i(`dicts.all.${a}.defaultUnfold.others`));const d=p()(e,`dicts.all.${a}.selectionLang.chs`);u()(d)?f()(n,`dicts.all.${a}.selectionLang.chinese`,d):i(`dicts.all.${a}.selectionLang.chinese`);const h=p()(e,`dicts.all.${a}.selectionLang.eng`);if(u()(h)?f()(n,`dicts.all.${a}.selectionLang.english`,h):i(`dicts.all.${a}.selectionLang.english`),i(`dicts.all.${a}.selectionLang.japanese`),i(`dicts.all.${a}.selectionLang.korean`),i(`dicts.all.${a}.selectionLang.french`),i(`dicts.all.${a}.selectionLang.spanish`),i(`dicts.all.${a}.selectionLang.deutsch`),i(`dicts.all.${a}.selectionLang.others`),o(`dicts.all.${a}.preferredHeight`),o(`dicts.all.${a}.selectionWC.min`),o(`dicts.all.${a}.selectionWC.max`),t.options){if(r()(t.options,(t,r)=>{if(c()(t))o(`dicts.all.${a}.options.${r}`);else if(u()(t))i(`dicts.all.${a}.options.${r}`);else if(l()(t)){const o=p()(e,`dicts.all.${a}.options.${r}`),i=p()(n,`dicts.all.${a}.options_sel.${r}`);f()(n,`dicts.all.${a}.options.${r}`,i.includes(o)?o:t)}}),!c()(e.version)){const e=["baidu","caiyun","google","sogou","tencent","youdaotrans"];e.every(e=>"hide"===p()(n,`dicts.all.${e}.options.slInitial`))&&e.forEach(e=>{f()(n,`dicts.all.${e}.options.slInitial`,"collapse")})}const s=p()(e,`dicts.all.${a}.options.pdfNewline`);u()(s)&&f()(n,`dicts.all.${a}.options.keepLF`,s?"all":"webpage")}});break;default:switch(typeof n[t]){case"string":s(t,l.a);break;case"boolean":i(t);break;case"number":o(t);break;default:console.error(new Error(`merge profile: missing handler for '${t}'`))}}}),"kor"===n.dicts.all.hjdict.options.chsas&&(n.dicts.all.hjdict.options.chsas="kr"),n;function o(e){return s(e,c.a)}function i(e){return s(e,u.a)}function s(t,a){const o=p()(e,t);a(o)&&f()(n,t,o)}}},187:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return f}));var a=n(308),o=n(150),r=n(181),i=n(27),c=n.n(i),s=n(9),l=n(29),d=n(40),u=n(2);var h=n(63),p=n(220);const m=new a.a("idle"),f=()=>{const{t:e}=Object(s.e)("options"),t=Object(h.b)();return n=>t(async(t,a)=>{m.next("uploading");const i={},s=Object.keys(n);for(const e of s)e.startsWith("config.")?(i.config||(i.config=JSON.parse(JSON.stringify(a().config))),c()(i,e,n[e])):e.startsWith("profile.")?(i.profile||(i.profile=JSON.parse(JSON.stringify(a().activeProfile))),c()(i,e,n[e])):console.error(new Error("Saving unknown path: "+e));const h=[];if(i.config){if(!await async function(e,t){try{await async function(e){if(u.c||u.g)return;const t={permissions:["background"]},n=await browser.permissions.contains(t);if(e.runInBg)n||await browser.permissions.request(t);else if(n)try{await browser.permissions.remove(t)}catch(e){console.error(e)}}(e)}catch(e){return console.error(e),o.a.destroy(),o.a.error(t("msg_err_permission",{permission:"background"})),!1}return!0}(i.config,e))return;h.push(Object(l.f)(i.config))}i.profile&&h.push(Object(d.m)(i.profile));try{await Promise.all(h),Object(p.a)(!1),o.a.destroy(),o.a.success(e("msg_updated")),m.next("idle")}catch(t){r.a.error({message:e("config.opt.upload_error"),description:t.message}),m.next("error")}})}},2:function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"h",(function(){return o})),n.d(t,"j",(function(){return r})),n.d(t,"i",(function(){return i})),n.d(t,"k",(function(){return c})),n.d(t,"l",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"g",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return m}));const a=()=>!!window.__SALADICT_INTERNAL_PAGE__,o=()=>!!window.__SALADICT_OPTIONS_PAGE__,r=()=>!!window.__SALADICT_POPUP_PAGE__,i=()=>!!window.__SALADICT_PDF_PAGE__,c=()=>!!window.__SALADICT_QUICK_SEARCH_PAGE__,s=()=>r()||c(),l="saladict-external",d="saladict-panel",u=navigator.userAgent.includes("Firefox"),h=navigator.userAgent.includes("OPR");function p(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(l))return!0;return!1}function m(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(d))return!0;return!1}},205:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return u}));var a=n(632);const o={wrapperCol:{offset:6,span:18}},r={labelCol:{span:6},wrapperCol:{span:18}},i={labelCol:{xs:{span:9},sm:{span:9},lg:{span:5}},wrapperCol:{xs:{span:15},sm:{span:15},lg:{span:8}}},c={labelCol:{xs:{span:9},sm:{span:9},lg:{span:7}},wrapperCol:{xs:{span:15},sm:{span:15},lg:{span:9}}},s=()=>Object(a.a)()&&window.innerWidth<1920?i:c,l={xs:{span:24},sm:{span:24},lg:{span:12}},d={xs:{span:24},sm:{span:24},lg:{span:14,offset:2}},u=()=>Object(a.a)()&&window.innerWidth<1920?l:d},220:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));const a={value:!1},o=e=>{a.value=e},r=()=>a},24:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"i",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"a",(function(){return w}));var a=n(19);const o=["chinese","english","japanese","korean","french","spanish","deutsch"],r={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},i=e=>r.chinese.test(e),c=e=>r.english.test(e),s=e=>r.japanese.test(e),l=e=>r.korean.test(e),d=e=>r.french.test(e),u=e=>r.deutsch.test(e),h=e=>r.spanish.test(e),p={chinese:Object(a.a)(i),english:Object(a.a)(c),japanese:Object(a.a)(s),korean:Object(a.a)(l),french:Object(a.a)(d),spanish:Object(a.a)(h),deutsch:Object(a.a)(u)},m=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,f=new RegExp(`^(\\d|\\s|${m.source})+$`),g=new RegExp(`${r.chinese.source}|${r.japanese.source}|${r.korean.source}`),b=Object(a.a)(e=>(e.replace(new RegExp(m,"g")," ").replace(new RegExp(g,"g")," x ").match(/\S+/g)||"").length),y=[...o,"others","matchAll"];function w(e,t){if(!t)return!1;if(e.matchAll){if(f.test(t))return!1;if(e.others){const n=[/-|\.|\d|\s/],a=[];for(let t=o.length-1;t>=0;t--){const i=o[t];e[i]?n.push(r[i]):a.push(r[i])}for(let e=0;e<t.length;e++)if(n.every(n=>!n.test(t[e]))&&a.some(n=>n.test(t[e])))return!1;return!0}{const n=o.filter(t=>e[t]).map(e=>r[e]);n.push(/-|\.|\d|\s/);for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!1;return!0}}{if(o.some(n=>e[n]&&p[n](t)))return!0;if(!e.others||f.test(t))return!1;const n=o.filter(t=>!e[t]).map(e=>r[e]);n.push(new RegExp(m.source+"|\\d|\\s"));for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!0;return!1}}},247:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),o=n.n(a);class r extends o.a.PureComponent{constructor(...e){super(...e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.error?o.a.createElement(this.props.error):null:this.props.children}}},250:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{static getDefaultConfig(){return{}}static getDefaultMeta(){return{}}constructor(e){this.config=void 0,this.meta=void 0,this.config=e}async delete(e){}async destroy(){}async download(e){}onStart(){}}a.id=void 0},251:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(12),o=n(9),r=n(308),i=n(108);class c{static async getInstance(){if(!c.instance){const e=new c;c.instance=e,e.i18n=await Object(o.d)(),e.i18n$$.next(e.i18n)}return c.instance}constructor(){this.i18n=void 0,this.i18n$$=void 0,this.i18n=a.a,this.i18n$$=new r.a(this.i18n),this.i18n.on("languageChanged",()=>{this.i18n$$.next(this.i18n)})}getFixedT$(e){return this.i18n$$.pipe(Object(i.a)(async t=>(await this.i18n.loadNamespaces(e),t.getFixedT(t.language,e))))}}c.instance=void 0},259:function(e,t,n){var a={"./en/background.ts":[442,110],"./en/common.ts":[543,111],"./en/content.ts":[544,112],"./en/langcode.ts":[545,91],"./en/menus.ts":[546,113],"./en/options.ts":[547,114],"./en/popup.ts":[548,115],"./en/wordpage.ts":[549,116],"./zh-CN/background.ts":[443,117],"./zh-CN/common.ts":[550,118],"./zh-CN/content.ts":[551,119],"./zh-CN/langcode.ts":[552,92],"./zh-CN/menus.ts":[553,120],"./zh-CN/options.ts":[554,121],"./zh-CN/popup.ts":[555,122],"./zh-CN/wordpage.ts":[556,123],"./zh-TW/background.ts":[444,124],"./zh-TW/common.ts":[557,125],"./zh-TW/content.ts":[558,126],"./zh-TW/langcode.ts":[559,93],"./zh-TW/menus.ts":[560,127],"./zh-TW/options.ts":[561,128],"./zh-TW/popup.ts":[562,129],"./zh-TW/wordpage.ts":[563,130]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(a)},o.id=259,e.exports=o},260:function(e,t,n){var a={"./baidu/_locales.ts":261,"./bing/_locales.json":262,"./caiyun/_locales.ts":263,"./cambridge/_locales.json":264,"./cnki/_locales.json":265,"./cobuild/_locales.json":266,"./etymonline/_locales.json":267,"./eudic/_locales.json":268,"./google/_locales.ts":269,"./googledict/_locales.json":270,"./guoyu/_locales.json":271,"./hjdict/_locales.json":272,"./jikipedia/_locales.json":273,"./jukuu/_locales.json":274,"./lexico/_locales.json":275,"./liangan/_locales.json":276,"./longman/_locales.json":277,"./macmillan/_locales.json":278,"./mojidict/_locales.json":279,"./naver/_locales.json":280,"./renren/_locales.json":281,"./shanbay/_locales.json":282,"./sogou/_locales.ts":283,"./tencent/_locales.ts":284,"./urban/_locales.json":285,"./vocabulary/_locales.json":286,"./weblio/_locales.json":287,"./weblioejje/_locales.json":288,"./websterlearner/_locales.json":289,"./wikipedia/_locales.json":290,"./youdao/_locales.json":291,"./youdaotrans/_locales.ts":292,"./zdic/_locales.json":293};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=260},261:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Baidu Translate","zh-CN":"百度翻译","zh-TW":"百度翻譯"})},262:function(e){e.exports=JSON.parse('{"name":{"en":"Bing Dict","zh-CN":"必应词典","zh-TW":"必應詞典"},"options":{"tense":{"en":"Show sense","zh-CN":"显示单词时态","zh-TW":"展示單詞時態"},"phsym":{"en":"Show pronunciation","zh-CN":"显示单词发音","zh-TW":"展示單詞發音"},"cdef":{"en":"Show definitions","zh-CN":"显示单词解释","zh-TW":"展示單詞解釋"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"sentence":{"en":"Show sentences","zh-CN":"显示例句","zh-TW":"展示例句"},"sentence_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},263:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"LingoCloud","zh-CN":"彩云小译","zh-TW":"彩雲小譯"})},264:function(e){e.exports=JSON.parse('{"name":{"en":"Cambridge Dictionary","zh-CN":"剑桥词典","zh-TW":"劍橋詞典"},"options":{"lang":{"en":"Language","zh-CN":"语言","zh-TW":"語言"},"lang-default":{"en":"Default","zh-CN":"随扩展","zh-TW":"未設定"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-en-chs":{"en":"English–Chinese (Simplified)","zh-CN":"英简","zh-TW":"英简"},"lang-en-chz":{"en":"English–Chinese (Traditional)","zh-CN":"英繁","zh-TW":"英繁"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},265:function(e){e.exports=JSON.parse('{"name":{"en":"CNKI Dict","zh-CN":"CNKI翻译助手","zh-TW":"CNKI翻譯助手"},"options":{"dict":{"en":"Show dict result","zh-CN":"显示词典结果","zh-TW":"展示字典結果"},"senbi":{"en":"Show bilingual sentences","zh-CN":"显示双语例句","zh-TW":"展示雙語例句"},"seneng":{"en":"Show English sentences","zh-CN":"显示英文例句","zh-TW":"展示英文例句"},"digests":{"en":"Show relevant digests","zh-CN":"显示相关文摘","zh-TW":"展示相關文摘"}}}')},266:function(e){e.exports=JSON.parse('{"name":{"en":"COBUILD","zh-CN":"柯林斯高阶","zh-TW":"柯林斯高階"},"options":{"cibaFirst":{"en":"Prefer bilingual dictionary","zh-CN":"优先查双语词典","zh-TW":"優先查雙語詞典"}},"helps":{"cibaFirst":{"en":"Bilingual server is less stable","zh-CN":"双语词典服务器不稳定,解释没全英丰富","zh-TW":"雙語詞典伺服器不穩定,解釋沒全英豐富"}}}')},267:function(e){e.exports=JSON.parse('{"name":{"en":"Etymonline","zh-CN":"Etymonline","zh-TW":"Etymonline"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"},"chart":{"en":"Show Chart","zh-CN":"显示图表","zh-TW":"顯示圖表"}}}')},268:function(e){e.exports=JSON.parse('{"name":{"en":"Eudic","zh-CN":"双语例句","zh-TW":"雙語例句"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},269:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Google Translation","zh-CN":"谷歌翻译","zh-TW":"谷歌翻譯"},{cnfirst:{en:"Use google.cn first","zh-CN":"优先使用 google.cn","zh-TW":"優先使用 google.cn"},concurrent:{en:"Search concurrently","zh-CN":"并行查询","zh-TW":"並行查詢"}},{concurrent:{en:"Search .com and .cn concurrently","zh-CN":"同时搜索 .com 和 .cn 取最先返回的结果","zh-TW":"同時搜尋 .com 和 .cn 取最先返回的結果"}})},270:function(e){e.exports=JSON.parse('{"name":{"en":"Google Dictionary","zh-CN":"谷歌词典","zh-TW":"谷歌詞典"},"options":{"enresult":{"en":"English Result","zh-CN":"强制显示英文结果","zh-TW":"強制顯示英文結果"}}}')},271:function(e){e.exports=JSON.parse('{"name":{"en":"國語辭典","zh-CN":"国语辞典","zh-TW":"國語辭典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},272:function(e){e.exports=JSON.parse('{"name":{"en":"Hu Jiang","zh-CN":"沪江小D","zh-TW":"沪江小D"},"options":{"engas":{"en":"Treat English as","zh-CN":"对全英文使用词典","zh-TW":"對全英文使用字典"},"chsas":{"en":"Treat Chinese as","zh-CN":"对全中文使用词典","zh-TW":"對全中文使用字典"},"uas":{"en":"Treat \'ü\' as","zh-CN":"将 \'ü\' 字符当作","zh-TW":"把 \'ü\' 字元當成"},"aas":{"en":"Treat \'ä\' as","zh-CN":"将 \'ä\' 字符当作","zh-TW":"把 \'ä\' 字元當成"},"eas":{"en":"Treat \'é\' as","zh-CN":"将 \'é\' 字符当作","zh-TW":"把 \'é\' 字元當成"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"chsas-jp/cj":{"en":"中 → 日","zh-CN":"中 → 日","zh-TW":"中 → 日"},"chsas-jp/jc":{"en":"日 → 中","zh-CN":"日 → 中","zh-TW":"日 → 中"},"chsas-kr":{"en":"Korean","zh-CN":"韩文","zh-TW":"韓文"},"chsas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"chsas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"chsas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"chsas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"engas-w":{"en":"English","zh-CN":"英文","zh-TW":"英文"},"engas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"engas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"engas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"uas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"uas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"uas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"},"aas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"aas-de":{"en":"Deutsch","zh-CN":"德文","zh-TW":"德文"},"eas-fr":{"en":"French","zh-CN":"法文","zh-TW":"法文"},"eas-es":{"en":"Spanish","zh-CN":"西班牙文","zh-TW":"西班牙文"}}}')},273:function(e){e.exports=JSON.parse('{"name":{"en":"Jikipedia","zh-CN":"小鸡词典","zh-TW":"小雞詞典"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},274:function(e){e.exports=JSON.parse('{"name":{"en":"Jukuu","zh-CN":"句酷","zh-TW":"句酷"},"options":{"lang":{"en":"Language","zh-CN":"语言","zh-TW":"語言"},"lang-zheng":{"en":"Chinese-English","zh-CN":"中英","zh-TW":"中英"},"lang-engjp":{"en":"English-Japanese","zh-CN":"英日","zh-TW":"英日"},"lang-zhjp":{"en":"Chinese-Japanese","zh-CN":"中日","zh-TW":"中日"}}}')},275:function(e){e.exports=JSON.parse('{"name":{"en":"Lexico","zh-CN":"Lexico","zh-TW":"Lexico"},"options":{"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},276:function(e){e.exports=JSON.parse('{"name":{"en":"兩岸詞典","zh-CN":"两岸词典","zh-TW":"兩岸詞典"},"options":{"trans":{"en":"Show Translation","zh-CN":"显示翻译","zh-TW":"顯示翻譯"}},"helps":{"trans":{"en":"Show translation of other languages.","zh-CN":"显示其它语言的翻译。","zh-TW":"顯示其它語言的翻譯。"}}}')},277:function(e){e.exports=JSON.parse('{"name":{"en":"Longman Dictionary","zh-CN":"朗文词典","zh-TW":"朗文詞典"},"options":{"wordfams":{"en":"Show word family","zh-CN":"显示单词家族","zh-TW":"展示單字家族"},"collocations":{"en":"Show collocations","zh-CN":"显示惯用搭配","zh-TW":"展示慣用搭配"},"grammar":{"en":"Show grammar","zh-CN":"显示语法解释","zh-TW":"展示文法講解"},"thesaurus":{"en":"Show thesaurus","zh-CN":"显示同义词","zh-TW":"展示同義詞"},"examples":{"en":"Show examples","zh-CN":"显示例句","zh-TW":"展示例句"},"bussinessFirst":{"en":"Show bussiness result first","zh-CN":"优先显示商务词典","zh-TW":"優先展示商務字典"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},278:function(e){e.exports=JSON.parse('{"name":{"en":"Macmillan","zh-CN":"麦克米伦","zh-TW":"麥克米倫"},"options":{"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"},"locale":{"en":"Locale","zh-CN":"方言","zh-TW":"方言"},"locale-uk":{"en":"UK","zh-CN":"英式","zh-TW":"英式"},"locale-us":{"en":"US","zh-CN":"美式","zh-TW":"美式"}}}')},279:function(e){e.exports=JSON.parse('{"name":{"en":"MOJi辞書","zh-CN":"MOJi辞書","zh-TW":"MOJi辞書"}}')},280:function(e){e.exports=JSON.parse('{"name":{"en":"Naver韩国语词典","zh-CN":"Naver韩国语词典","zh-TW":"Naver韩国语词典"},"options":{"hanAsJa":{"en":"Search Chinese with Japanese Dictionary","zh-CN":"用日语词典查中文","zh-TW":"用日語詞典查漢字"},"korAsJa":{"en":"Search Korean with Japanese Dictionary","zh-CN":"用日语词典查韩语","zh-TW":"用日语词典查韓語"}}}')},281:function(e){e.exports=JSON.parse('{"name":{"en":"91dict","zh-CN":"人人词典","zh-TW":"人人詞典"}}')},282:function(e){e.exports=JSON.parse('{"name":{"en":"Shanbay Dictionary","zh-CN":"扇贝词典","zh-TW":"扇貝詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"}}}')},283:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Sogou Translation","zh-CN":"搜狗翻译","zh-TW":"搜狗翻譯"})},284:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Tencent Translate","zh-CN":"腾讯翻译君","zh-TW":"騰訊翻譯君"})},285:function(e){e.exports=JSON.parse('{"name":{"en":"Urban","zh-CN":"Urban","zh-TW":"Urban"},"options":{"resultnum":{"en":"Show","zh-CN":"结果数量","zh-TW":"結果數量"},"resultnum_unit":{"en":"results","zh-CN":"个","zh-TW":"個"}}}')},286:function(e){e.exports=JSON.parse('{"name":{"en":"Vocabulary.com","zh-CN":"Vocabulary.com","zh-TW":"Vocabulary.com"}}')},287:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio","zh-CN":"Weblio 辞書","zh-TW":"Weblio 辞書"}}')},288:function(e){e.exports=JSON.parse('{"name":{"en":"Weblio ejje","zh-CN":"Weblio 英和和英","zh-TW":"Weblio 英和和英"}}')},289:function(e){e.exports=JSON.parse('{"name":{"en":"Merriam-Webster\'s Learner\'s Dictionary","zh-CN":"韦氏学习词典","zh-TW":"韋氏學習字典"},"options":{"defs":{"en":"Show definitions","zh-CN":"显示释义","zh-TW":"顯示解釋"},"phrase":{"en":"Show phrases","zh-CN":"显示词组","zh-TW":"顯示片語"},"derived":{"en":"Show derived words","zh-CN":"显示派生词","zh-TW":"顯示衍生字"},"arts":{"en":"Show pictures","zh-CN":"显示图片释义","zh-TW":"顯示圖片解釋"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},29:function(e,t,n){"use strict";n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return m})),n.d(t,"c",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return y}));var a=n(85),o=n.n(a),r=n(78),i=n(160),c=n(1),s=n(95),l=n(64),d=n(76),u=n(10);function h(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}async function p(){let e=await f();return e=e&&e.version?Object(i.b)(e):Object(r.a)(),await g(e),e}async function m(){const e=Object(r.a)();return await g(e),e}async function f(){const{baseconfig:e}=await c.c.sync.get("baseconfig");return h(e||Object(r.a)())}function g(e){return c.c.sync.set({baseconfig:(t=e,{v:1,d:o.a.deflate(JSON.stringify(t),{to:"string"})})});var t}async function b(e){c.c.sync.addListener(t=>{if(t.baseconfig){const{newValue:n,oldValue:a}=t.baseconfig;n&&e({newConfig:h(n),oldConfig:h(a)})}})}function y(){return Object(s.a)(Object(l.a)(f()),Object(d.a)(b).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newConfig)))}},290:function(e){e.exports=JSON.parse('{"name":{"en":"Wikipedia","zh-CN":"维基百科","zh-TW":"維基百科"},"options":{"lang":{"en":"Language","zh-CN":"百科语言","zh-TW":"百科語言"},"lang-auto":{"en":"Auto (respect Wiki settings)","zh-CN":"自动(遵循维基账户设定)","zh-TW":"自动(遵循維基賬戶設定)"},"lang-zh":{"en":"中文(简繁由维基账户设定)","zh-CN":"中文(简繁由维基账户设定)","zh-TW":"中文(簡繁由維基賬戶設定)"},"lang-zh-cn":{"en":"强制简体中文子页面","zh-CN":"强制简体中文子页面","zh-TW":"强制简体中文子页面"},"lang-zh-tw":{"en":"強制台灣正體子頁面","zh-CN":"強制台灣正體子頁面","zh-TW":"強制台灣正體子頁面"},"lang-zh-hk":{"en":"強制香港繁體子頁面","zh-CN":"強制香港繁體子頁面","zh-TW":"強制香港繁體子頁面"},"lang-en":{"en":"English","zh-CN":"English","zh-TW":"English"},"lang-ja":{"en":"日本語","zh-CN":"日本語","zh-TW":"日本語"},"lang-fr":{"en":"Français","zh-CN":"Français","zh-TW":"Français"},"lang-de":{"en":"Deutschsprachige","zh-CN":"Deutschsprachige","zh-TW":"Deutschsprachige"}}}')},291:function(e){e.exports=JSON.parse('{"name":{"en":"Youdao Dictionary","zh-CN":"有道词典","zh-TW":"有道詞典"},"options":{"basic":{"en":"Show basic meaning","zh-CN":"显示简单释义","zh-TW":"顯示簡單解釋"},"collins":{"en":"Show Collins result","zh-CN":"显示柯林斯双解","zh-TW":"顯示柯林斯雙解"},"discrimination":{"en":"Show discrimination","zh-CN":"显示词语辨析","zh-TW":"顯示詞語辨析"},"sentence":{"en":"Show sentences","zh-CN":"显示权威例句","zh-TW":"顯示權威例句"},"translation":{"en":"Show translation","zh-CN":"显示有道翻译","zh-TW":"顯示有道翻譯"},"related":{"en":"Show related results","zh-CN":"失败时显示备选","zh-TW":"失敗時顯示備選"}}}')},292:function(e,t,n){"use strict";n.r(t),n.d(t,"locales",(function(){return o}));var a=n(39);const o=Object(a.a)({en:"Youdao Translate","zh-CN":"有道翻译","zh-TW":"有道翻譯"})},293:function(e){e.exports=JSON.parse('{"name":{"en":"汉典","zh-CN":"汉典","zh-TW":"漢典"},"options":{"audio":{"en":"Enable audio","zh-CN":"开启发音","zh-TW":"啟用發音"}},"helps":{"audio":{"en":"Referer modification is required, which may slightly impact performance.","zh-CN":"突破外链限制需要改写 Referer,可能会轻微影响性能。","zh-TW":"突破外鏈限制需要改寫 Referer,可能會輕微影響效能。"}}}')},294:function(e,t,n){var a={"./ankiconnect/_locales/en.ts":295,"./ankiconnect/_locales/zh-CN.ts":296,"./ankiconnect/_locales/zh-TW.ts":297,"./shanbay/_locales/en.ts":298,"./shanbay/_locales/zh-CN.ts":299,"./shanbay/_locales/zh-TW.ts":300,"./webdav/_locales/en.ts":301,"./webdav/_locales/zh-CN.ts":302,"./webdav/_locales/zh-TW.ts":303};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=294},295:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"Cannot connect to Anki Connect. Please make sure Anki is running.",deck:"Deck not found in Anki.",notetype:"Note type not found in Anki.",add:"Failed to add word to Anki."}}},296:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"无法连接 Anki Connect,请确认 Anki 已在运行。",deck:"Anki 中没有找到相应牌组。",notetype:"Anki 中没有找到相应笔记类型。",add:"添加单词到 Anki 失败。"}}},297:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Anki Connect",error:{server:"無法連線 Anki Connect,請確認 Anki 已在執行。",deck:"Anki 中沒有找到相應牌組。",notetype:"Anki 中沒有找到相應筆記型別。",add:"新增單詞到 Anki 失敗。"}}},298:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"Shanbay Word Syncing",open:"Open",error:{login:"Shanbay login failed. Click to open shanbay.com.",network:"Unable to access shanbay.com. Please check your network connection.",word:"Unable to add to Shanbay notebook. This word is not in Shanbay's vocabulary database."}}},299:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇贝单词同步",open:"打开",error:{login:"扇贝登录已失效,请点击打开官网重新登录。",network:"无法访问扇贝生词本,请检查网络。",word:"无法添加到扇贝生词本,扇贝单词库没有收录此单词。"}}},300:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"扇貝單字同步",open:"開啟",error:{login:"扇貝登入已失效,請點選開啟官網重新登入。",network:"無法訪問扇貝生字本,請檢查網路。",word:"無法新增到扇貝生字本,扇貝單字庫沒有收錄此單字。"}}},301:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV Word Syncing",error:{dir:'Incorrect "Saladict" directory on server.',download:"Download failed. Unable to connect WebDAV Server. If browser proxy is enabled please adjust rules to bypass WebDAV server.",internal:"Unable to save settings.",missing:'Missing "Saladict" directory on server.',mkcol:'Cannot create "Saladict" directory on server. Please create the directory manualy on server.',network:"Network error. Cannot connect to server.",parse:"Incorrect response XML from server.",unauthorized:"Incorrect account or password."}}},302:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 单词同步",error:{dir:"服务器上“Saladict”目录格式不正确,请检查。",download:"下载失败。无法访问 WebDAV 服务器。如启用了浏览器代理请调整规则,不要代理 WebDAV 服务器。",internal:"无法保存。",missing:"服务器上缺少“Saladict”目录。",mkcol:"无法在服务器创建“Saladict”目录。请手动在服务器上创建。",network:"连接服务器失败。",parse:"服务器返回 XML 格式不正确。",unauthorized:"账户或密码不正确。"}}},303:function(e,t,n){"use strict";n.r(t),n.d(t,"locale",(function(){return a}));const a={title:"WebDAV 單字同步",error:{dir:"伺服器上“Saladict”目錄格式不正確,請檢查。",download:"下載失敗。無法訪問 WebDAV 伺服器。如啟用了瀏覽器代理請調整規則,不要代理 WebDAV 伺服器。",internal:"無法儲存。",missing:"伺服器上缺少“Saladict”目錄。",mkcol:"無法在伺服器建立“Saladict”目錄。請手動在伺服器上建立。",network:"連線伺服器失敗。",parse:"伺服器返回 XML 格式不正確。",unauthorized:"帳戶或密碼不正確。"}}},310:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return c}));var a=n(1),o=n(46);async function r(){return(await a.c.local.get("titlebarOffset")).titlebarOffset}function i(e){return a.c.local.set({titlebarOffset:e})}async function c(){try{const e=await browser.windows.getCurrent();if(null==e.id)return;const t=await browser.windows.create({state:"maximized"}),n=await browser.windows.create({state:"maximized",type:"panel"});if(null==(null==t?void 0:t.id)||null==(null==n?void 0:n.id))return;await browser.windows.update(e.id,{focused:!0}),await Object(o.d)(0);const a=(await browser.windows.get(t.id)).top,r=(await browser.windows.get(n.id)).top;if(browser.windows.remove(t.id),browser.windows.remove(n.id),null==a||null==r)return;return{main:a,panel:r}}catch(e){!1}}},364:function(e,t,n){"use strict";n.d(t,"a",(function(){return K}));var a=n(22),o=n(40),r=n(2),i=n(11),c=n(1),s=n(0),l=n.n(s),d=n(116),u=n(182),h=n(130),p=n(704),m=n(371),f=n(10),g=n(435),b=n(9);const y=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn-dir",title:t("tip.historyBack"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M 7.191 15.999 L 21.643 1.548 C 21.998 1.192 21.998 0.622 21.643 0.267 C 21.288 -0.089 20.718 -0.089 20.362 0.267 L 5.267 15.362 C 4.911 15.718 4.911 16.288 5.267 16.643 L 20.362 31.732 C 20.537 31.906 20.771 32 20.999 32 C 21.227 32 21.462 31.913 21.636 31.732 C 21.992 31.377 21.992 30.807 21.636 30.451 L 7.191 15.999 Z"})))},w=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn-dir",title:e.t("tip.historyNext"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},l.a.createElement("path",{d:"M 25.643 15.362 L 10.547 0.267 C 10.192 -0.089 9.622 -0.089 9.267 0.267 C 8.911 0.622 8.911 1.192 9.267 1.547 L 23.718 15.999 L 9.267 30.451 C 8.911 30.806 8.911 31.376 9.267 31.732 C 9.441 31.906 9.676 32 9.904 32 C 10.132 32 10.366 31.913 10.541 31.732 L 25.636 16.636 C 25.992 16.288 25.992 15.711 25.643 15.362 Z"})))},O=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.searchText"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52.966 52.966"},l.a.createElement("path",{d:"M51.704 51.273L36.844 35.82c3.79-3.8 6.14-9.04 6.14-14.82 0-11.58-9.42-21-21-21s-21 9.42-21 21 9.42 21 21 21c5.082 0 9.747-1.817 13.383-4.832l14.895 15.49c.196.206.458.308.72.308.25 0 .5-.093.694-.28.398-.382.41-1.015.028-1.413zM21.984 40c-10.478 0-19-8.523-19-19s8.522-19 19-19 19 8.523 19 19-8.525 19-19 19z"})))},x=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openOptions"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 612 612"},l.a.createElement("path",{d:"M0 97.92v24.48h612V97.92H0zm0 220.32h612v-24.48H0v24.48zm0 195.84h612V489.6H0v24.48z"})))},j=e=>{const{t:t,isFav:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.addToNotebook"),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon-fav"+(n?" isActive":""),width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},l.a.createElement("path",{d:"M 23.363 2 C 20.105 2 17.3 4.65 16.001 7.42 C 14.701 4.65 11.896 2 8.637 2 C 4.145 2 0.5 5.646 0.5 10.138 C 0.5 19.278 9.719 21.673 16.001 30.708 C 21.939 21.729 31.5 18.986 31.5 10.138 C 31.5 5.646 27.855 2 23.363 2 Z"})))},E=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openHistory"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon-history",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},l.a.createElement("path",{d:"M34.688 3.315c-15.887 0-28.812 12.924-28.81 28.73-.012.25-.157 4.434 1.034 8.94l-3.88-2.262c-.965-.56-2.193-.235-2.76.727-.557.96-.233 2.195.728 2.755l9.095 5.302c.02.01.038.013.056.022.1.05.2.09.31.12.07.02.14.05.21.07.09.02.176.02.265.03.06.003.124.022.186.022.036 0 .07-.01.105-.015.034 0 .063.007.097.004.05-.003.097-.024.146-.032.097-.017.19-.038.28-.068.08-.028.157-.06.23-.095.086-.04.165-.085.24-.137.074-.046.14-.096.206-.15.07-.06.135-.125.198-.195.06-.067.11-.135.16-.207.026-.04.062-.07.086-.11.017-.03.017-.067.032-.1.03-.053.07-.1.096-.16l3.62-8.96c.417-1.03-.08-2.205-1.112-2.622-1.033-.413-2.207.083-2.624 1.115l-1.86 4.6c-1.24-4.145-1.1-8.406-1.093-8.523C9.92 18.455 21.04 7.34 34.7 7.34c13.663 0 24.78 11.116 24.78 24.78S48.357 56.9 34.694 56.9c-1.114 0-2.016.902-2.016 2.015s.9 2.02 2.012 2.02c15.89 0 28.81-12.925 28.81-28.81 0-15.89-12.923-28.814-28.81-28.814z"}),l.a.createElement("path",{d:"M33.916 36.002c.203.084.417.114.634.13.045.002.09.026.134.026.236 0 .465-.054.684-.134.06-.022.118-.054.177-.083.167-.08.32-.18.463-.3.03-.023.072-.033.103-.07L48.7 22.98c.788-.79.788-2.064 0-2.852-.787-.788-2.062-.788-2.85 0l-11.633 11.63-10.44-4.37c-1.032-.432-2.208.052-2.64 1.08-.43 1.027.056 2.208 1.08 2.638L33.907 36c.002 0 .006 0 .01.002z"})))},v=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.openNotebook"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 64 64"},l.a.createElement("path",{d:"M 57.389 0.966 L 6.612 0.966 C 5.699 0.966 4.957 1.525 4.957 2.217 L 4.957 61.783 C 4.955 62.282 5.342 62.734 5.949 62.933 C 6.16 63.001 6.385 63.036 6.612 63.034 C 7.023 63.032 7.417 62.917 7.723 62.709 L 32.003 46.006 L 56.282 62.709 C 57.227 63.354 58.742 62.983 59.008 62.041 C 59.033 61.956 59.044 61.871 59.044 61.783 L 59.044 2.217 C 59.044 1.525 58.306 0.966 57.389 0.966 Z M 33.111 43.392 C 32.478 42.954 31.508 42.954 30.875 43.392 L 8.266 58.955 L 8.266 3.469 L 55.735 3.469 L 55.735 58.955 L 33.111 43.392 Z"}),l.a.createElement("path",{d:"M 47.508 17.756 C 47.287 17.526 46.994 17.375 46.677 17.33 L 37.446 15.988 L 33.262 7.693 C 32.767 6.7 31.382 6.614 30.77 7.541 C 30.737 7.59 30.708 7.641 30.68 7.693 L 26.555 16.06 L 17.325 17.401 C 16.225 17.56 15.712 18.849 16.399 19.722 C 16.44 19.774 16.484 19.822 16.532 19.867 L 23.252 26.3 L 21.723 35.561 C 21.541 36.655 22.613 37.537 23.653 37.146 C 23.708 37.127 23.763 37.102 23.816 37.076 L 32.066 32.748 L 40.316 37.076 C 41.3 37.59 42.472 36.845 42.425 35.737 C 42.423 35.679 42.417 35.619 42.407 35.561 L 40.792 26.3 L 47.472 19.794 C 48.045 19.243 48.061 18.33 47.508 17.756 Z M 38.238 24.857 C 37.899 25.186 37.744 25.661 37.821 26.127 L 39.031 33.165 L 32.687 29.835 C 32.265 29.613 31.765 29.613 31.344 29.835 L 25.013 33.165 L 26.223 26.113 C 26.3 25.646 26.145 25.174 25.806 24.844 L 20.685 19.853 L 27.768 18.743 C 28.236 18.672 28.641 18.376 28.849 17.95 L 32.023 11.531 L 35.196 17.95 C 35.403 18.376 35.808 18.672 36.277 18.743 L 43.36 19.766 L 38.238 24.857 Z"})))},C=e=>{const{t:t,isPinned:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.pinPanel"),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 53.011 53.011"},l.a.createElement("path",{className:"menuBar-Btn_Icon-pin"+(n?" isActive":""),d:"M52.963 21.297c-.068-.33-.297-.603-.61-.727-8.573-3.416-16.172-.665-18.36.288L19.113 8.2C19.634 3.632 17.17.508 17.06.372c-.18-.22-.442-.356-.725-.372-.282-.006-.56.09-.76.292L.32 15.546c-.202.2-.308.48-.29.765.015.285.152.55.375.727 2.775 2.202 6.35 2.167 7.726 2.055l12.722 14.953c-.868 2.23-3.52 10.27-.307 18.337.124.313.397.54.727.61.067.013.135.02.202.02.263 0 .518-.104.707-.293l14.57-14.57 13.57 13.57c.196.194.452.292.708.292s.512-.098.707-.293c.39-.392.39-1.024 0-1.415l-13.57-13.57 14.527-14.528c.237-.238.34-.58.27-.91zm-17.65 15.458L21.89 50.18c-2.437-8.005.993-15.827 1.03-15.91.158-.352.1-.764-.15-1.058L9.31 17.39c-.19-.225-.473-.352-.764-.352-.05 0-.103.004-.154.013-.036.007-3.173.473-5.794-.954l13.5-13.5c.604 1.156 1.39 3.26.964 5.848-.058.346.07.697.338.924l15.785 13.43c.31.262.748.31 1.105.128.077-.04 7.378-3.695 15.87-1.017L35.313 36.754z"})))},k=e=>{const{t:t,isFocus:n,...a}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip."+(n?"focusPanel":"unfocusPanel")),...a},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 53 53"},n?l.a.createElement(l.a.Fragment,null,l.a.createElement("path",{d:"M 36.414 35 L 46 35 C 46.553 35 47 34.552 47 34 C 47 33.448 46.553 33 46 33 L 34 33 C 33.87 33 33.74 33.027 33.618 33.077 C 33.374 33.178 33.179 33.373 33.077 33.618 C 33.026 33.74 33 33.869 33 34 L 33 46 C 33 46.552 33.448 47 34 47 C 34.552 47 35 46.552 35 46 L 35 36.414 L 51.293 52.707 C 51.488 52.902 51.744 53 52 53 C 52.256 53 52.512 52.902 52.707 52.707 C 53.098 52.316 53.098 51.684 52.707 51.293 L 36.414 35 Z"}),l.a.createElement("path",{d:"M 16.584 17.999 L 6.999 17.999 C 6.447 17.999 5.999 18.447 5.999 18.999 C 5.999 19.551 6.447 19.999 6.999 19.999 L 18.999 19.999 C 19.129 19.999 19.259 19.972 19.381 19.922 C 19.625 19.821 19.82 19.626 19.922 19.381 C 19.973 19.259 19.999 19.129 19.999 18.999 L 19.999 6.999 C 19.999 6.447 19.551 5.999 18.999 5.999 C 18.447 5.999 17.999 6.447 17.999 6.999 L 17.999 16.585 L 1.707 0.293 C 1.316 -0.098 0.684 -0.098 0.293 0.293 C -0.098 0.684 -0.098 1.316 0.293 1.707 L 16.584 17.999 Z"}),l.a.createElement("path",{d:"M 19.382 33.077 C 19.26 33.027 19.13 33 19 33 L 7 33 C 6.448 33 6 33.448 6 34 C 6 34.552 6.448 35 7 35 L 16.586 35 L 0.293 51.293 C -0.098 51.684 -0.098 52.316 0.293 52.707 C 0.488 52.902 0.744 53 1 53 C 1.256 53 1.512 52.902 1.707 52.707 L 18 36.414 L 18 46 C 18 46.552 18.448 47 19 47 C 19.552 47 20 46.552 20 46 L 20 34 C 20 33.87 19.973 33.74 19.923 33.618 C 19.821 33.373 19.627 33.179 19.382 33.077 Z"}),l.a.createElement("path",{d:"M 33.618 19.923 C 33.74 19.973 33.87 20 34 20 L 46 20 C 46.553 20 47 19.552 47 19 C 47 18.448 46.553 18 46 18 L 36.414 18 L 52.707 1.707 C 53.098 1.316 53.098 0.684 52.707 0.293 C 52.316 -0.098 51.684 -0.098 51.293 0.293 L 35 16.586 L 35 7 C 35 6.448 34.552 6 34 6 C 33.448 6 33 6.448 33 7 L 33 19 C 33 19.13 33.027 19.26 33.077 19.382 C 33.179 19.627 33.373 19.821 33.618 19.923 Z"}),l.a.createElement("path",{d:"M 26.5 19 C 22.364 19 19 22.364 19 26.5 C 19 30.636 22.364 34 26.5 34 C 30.636 34 34 30.636 34 26.5 C 34 22.364 30.636 19 26.5 19 Z M 26.5 32 C 23.467 32 21 29.533 21 26.5 C 21 23.467 23.467 21 26.5 21 C 29.533 21 32 23.467 32 26.5 C 32 29.533 29.533 32 26.5 32 Z"})):l.a.createElement(l.a.Fragment,null,l.a.createElement("path",{d:"M 34 20 C 33.744 20 33.488 19.902 33.293 19.707 C 32.902 19.316 32.902 18.684 33.293 18.293 L 49.586 2 L 40 2 C 39.448 2 39 1.552 39 1 C 39 0.448 39.448 0 40 0 L 51.978 0 C 52.241 -0.006 52.506 0.092 52.707 0.293 C 52.908 0.494 53.006 0.759 53 1.022 L 53 13 C 53 13.552 52.552 14 52 14 C 51.448 14 51 13.552 51 13 L 51 3.414 L 34.707 19.707 C 34.512 19.902 34.256 20 34 20 Z"}),l.a.createElement("path",{d:"M 0.293 52.707 C 0.092 52.506 -0.006 52.241 0 51.978 L 0 40 C 0 39.448 0.448 39 1 39 C 1.552 39 2 39.448 2 40 L 2 49.586 L 18.293 33.293 C 18.684 32.902 19.316 32.902 19.707 33.293 C 20.098 33.684 20.098 34.316 19.707 34.707 L 3.414 51 L 13 51 C 13.552 51 14 51.448 14 52 C 14 52.552 13.552 53 13 53 L 1 53 C 0.879 53 0.764 52.979 0.658 52.94 C 0.602 52.919 0.548 52.894 0.498 52.865 C 0.424 52.822 0.355 52.769 0.293 52.707 Z"}),l.a.createElement("path",{d:"M 33.293 34.707 C 32.902 34.316 32.902 33.684 33.293 33.293 C 33.684 32.902 34.316 32.902 34.707 33.293 L 51 49.586 L 51 40 C 51 39.448 51.448 39 52 39 C 52.552 39 53 39.448 53 40 L 53 51.978 C 53.006 52.241 52.908 52.506 52.707 52.707 C 52.645 52.769 52.576 52.822 52.502 52.865 C 52.452 52.894 52.398 52.919 52.342 52.94 C 52.236 52.979 52.121 53 52 53 L 40 53 C 39.448 53 39 52.552 39 52 C 39 51.448 39.448 51 40 51 L 49.586 51 Z"}),l.a.createElement("path",{d:"M 18.999 19.999 C 18.743 19.999 18.487 19.901 18.292 19.706 L 2 3.414 L 2 13 C 2 13.552 1.552 14 1 14 C 0.448 14 0 13.552 0 13 L 0 1.022 C -0.006 0.759 0.092 0.494 0.293 0.293 C 0.494 0.092 0.759 -0.006 1.022 0 L 13 0 C 13.552 0 14 0.448 14 1 C 14 1.552 13.552 2 13 2 L 3.414 2 L 19.706 18.292 C 20.097 18.683 20.097 19.315 19.706 19.706 C 19.51 19.901 19.254 19.999 18.999 19.999 Z"}))))},S=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.closePanel"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 31.112 31.112"},l.a.createElement("path",{d:"M31.112 1.414L29.698 0 15.556 14.142 1.414 0 0 1.414l14.142 14.142L0 29.698l1.414 1.414L15.556 16.97l14.142 14.142 1.414-1.414L16.97 15.556"})))},M=e=>{const{t:t,...n}=e;return l.a.createElement("button",{className:"menuBar-Btn",title:t("tip.sidebar"),...n},l.a.createElement("svg",{className:"menuBar-Btn_Icon",width:"30",height:"30",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},l.a.createElement("path",{d:"M 29.318 0 L 0.682 0 C 0.305 0 0 0.305 0 0.682 L 0 29.318 C 0 29.695 0.305 30 0.682 30 L 29.318 30 C 29.695 30 30 29.695 30 29.318 L 30 0.682 C 30 0.305 29.695 0 29.318 0 Z M 9.545 28.636 L 1.364 28.636 L 1.364 1.364 L 9.545 1.364 L 9.545 28.636 Z M 28.636 28.636 L 10.909 28.636 L 10.909 1.364 L 28.636 1.364 L 28.636 28.636 Z"})))};var I=n(89),A=n(30),N=n(240),T=n(104),D=n(38),_=n(180),z=n(83),L=n(176),B=n(87),P=n(64),R=n(108),U=n(135);const W=l.a.forwardRef((e,t)=>Object(N.a)(Object(h.a)(n=>n.pipe(Object(f.a)(([e])=>e),Object(D.a)(Boolean),Object(L.a)(),Object(m.a)(750),Object(R.a)(n=>Object(P.a)(c.a.send({type:"GET_SUGGESTS",payload:n}).catch(()=>[])).pipe(Object(f.a)(n=>l.a.createElement(U.a,{ref:t,list:n.map(e=>({key:e.entry,value:e.entry,label:l.a.createElement(l.a.Fragment,null,l.a.createElement("span",{className:"menuBar-SuggestsEntry"},e.entry),l.a.createElement("span",{className:"menuBar-SuggestsExplain"},e.explain))})),...e})),Object(g.a)(l.a.createElement(U.a,{...e}))))),[e.text]),()=>l.a.createElement(U.a,{...e}))),H=e=>{const t=Object(s.useMemo)(()=>e.text.replace(/\s+/g," "),[e.text]),[n,a]=Object(d.a)(B.a),[o,r]=Object(d.a)(B.a),[i,u]=Object(d.a)(A.b),m=Object(N.a)(Object(h.a)(e=>Object(p.a)([e,Object(T.a)(a.pipe(Object(D.a)(e=>!e)),r,u.pipe(Object(_.a)(0)),c.a.createStream("SEARCH_TEXT_BOX").pipe(Object(z.a)(!1)))]).pipe(Object(f.a)(([[e,t],n])=>Boolean(e&&t&&n)),Object(L.a)()),[e.enableSuggest,e.text]),!1),g=Object(N.a)(a),b=Object(s.useRef)(!1),y=Object(s.useRef)(null),w=Object(s.useRef)(null),x=Object(s.useRef)(()=>{y.current&&(y.current.focus(),y.current.select())}).current,j=t=>{b.current=!1,i(!1),e.onSearch("string"==typeof t?t:e.text),x()},E=()=>{!e.shouldFocus||b.current||m||x()};return Object(s.useLayoutEffect)(E,[]),Object(s.useEffect)(E,[e.text]),l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"menuBar-SearchBox_Wrap"+(g?" isExpand":"")},l.a.createElement("input",{type:"text",className:"menuBar-SearchBox",key:"search-box",ref:y,onChange:t=>{e.onInput(t.currentTarget.value),i(!0)},onKeyDown:t=>{if(t.nativeEvent.stopPropagation(),b.current=!0,"ArrowDown"===t.key){const e=w.current&&w.current.querySelector("button");e?e.focus():i(!0),t.preventDefault(),t.stopPropagation()}else"Enter"===t.key&&j(e.text)},onFocus:e=>{e.currentTarget.select(),n(e)},onBlur:n,value:t}),l.a.createElement(I.a,{classNames:"csst-menuBar-SearchBox_Suggests",in:m,timeout:100,mountOnEnter:!0,unmountOnExit:!0,onExited:()=>e.onHeightChanged(0)},()=>l.a.createElement("div",{className:"menuBar-SearchBox_Suggests"},l.a.createElement(W,{ref:w,text:t,onSelect:j,onFocus:o,onBlur:o,onArrowUpFirst:x,onClose:x,onHeightChanged:e.onHeightChanged})))),l.a.createElement(O,{t:e.t,onClick:j}))};var F=n(133);const q=e=>{const{t:t}=Object(b.e)(["common"]),n=e.profiles.map(n=>({key:n.id,value:n.id,label:l.a.createElement("span",{className:"menuBar-ProfileItem"+(n.id===e.activeProfileId?" isActive":"")},Object(o.h)(n.name,t))}));return l.a.createElement(F.a,{Button:Y,items:n,onBtnClick:()=>(c.a.send({type:"OPEN_URL",payload:{url:"options.html",self:!0}}),!1),onSelect:e.onSelectProfile,onHeightChanged:e.onHeightChanged})};function Y(e){const{t:t}=Object(b.e)(["content"]);return l.a.createElement(x,{...e,t:t,disabled:Object(r.h)()})}function Q(e){return Object(g.a)(0)(e)}var $=n(29),V=n(46),G=n(141);const K=Object(a.b)(e=>({text:e.text,isInNotebook:e.isFav,shouldFocus:!e.isExpandMtaBox&&((e.isQSPanel||Object(r.k)())&&e.config.qsFocus||Object(r.j)()),enableSuggest:e.config.searchSuggests,isTrackHistory:e.config.searchHistory,histories:e.searchHistory,historyIndex:e.historyIndex,showedDictAuth:e.config.showedDictAuth,profiles:e.profiles,activeProfileId:e.activeProfile.id,isPinned:e.isPinned,isQSFocus:e.isQSFocus}),e=>({searchText:t=>{e({type:"SEARCH_START",payload:{word:Object(i.e)({text:t,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}})},updateText:t=>{e({type:"UPDATE_TEXT",payload:t})},addToNoteBook:()=>{e({type:"ADD_TO_NOTEBOOK"})},switchHistory:t=>{e({type:"SWITCH_HISTORY",payload:t})},togglePin:()=>{e({type:"TOGGLE_PIN"})},toggleQSFocus:()=>{e({type:"TOGGLE_QS_FOCUS"})},onClose:()=>{Object(r.l)()?window.close():e({type:"CLOSE_PANEL"})},onSwitchSidebar:e=>{c.a.send({type:"QS_SWITCH_SIDEBAR",payload:e})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"menubar",height:30,floatHeight:t}})},onDragAreaMouseDown:t=>{e({type:"DRAG_START_COORD",payload:{x:t.clientX,y:t.clientY}})},onDragAreaTouchStart:t=>{e({type:"DRAG_START_COORD",payload:{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}})},onSelectProfile:t=>{e(async(e,n)=>{var a;const s=n(),{showedDictAuth:l,dictAuth:d}=s.config;l||Object(r.j)()||(await Object($.f)({...s.config,showedDictAuth:!0}),!Object(G.a)(d).every(e=>Object(G.a)(d[e]).every(t=>{var n;return!(null===(n=d[e])||void 0===n?void 0:n[t])})))?(await Object(o.l)(t),await Object(V.d)(10),e({type:"SEARCH_START",payload:{word:(null===(a=s.searchHistory[s.historyIndex])||void 0===a?void 0:a.text)===s.text?s.searchHistory[s.historyIndex]:Object(i.e)({text:s.text,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}})):c.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=DictAuths",self:!0}})})}}))(e=>{const{t:t}=Object(b.e)(["content","common"]),[n,a]=Object(d.a)(Q),[o,i]=Object(d.a)(Q);return Object(u.a)(Object(h.a)(()=>Object(p.a)(a,i).pipe(Object(m.a)(100),Object(f.a)(e=>{const t=Math.max(...e);return t>0?t+72:0}))),e.onHeightChanged),l.a.createElement("header",{className:"menuBar"},l.a.createElement(y,{t:t,disabled:e.historyIndex<=0,onClick:()=>e.switchHistory("prev")}),l.a.createElement(w,{t:t,disabled:e.historyIndex>=e.histories.length-1,onClick:()=>e.switchHistory("next")}),l.a.createElement(H,{key:"searchbox",t:t,text:e.text,shouldFocus:e.shouldFocus,enableSuggest:e.enableSuggest,onInput:e.updateText,onSearch:e.searchText,onHeightChanged:o}),Object(r.l)()||l.a.createElement("div",{className:"menuBar-DragArea",onMouseDown:e.onDragAreaMouseDown,onTouchStart:e.onDragAreaTouchStart}),l.a.createElement(q,{t:t,profiles:e.profiles,activeProfileId:e.activeProfileId,onSelectProfile:e.onSelectProfile,onHeightChanged:n}),l.a.createElement(j,{t:t,isFav:e.isInNotebook,onClick:e.addToNoteBook,onMouseDown:e=>{2===e.button&&(e.preventDefault(),e.stopPropagation(),e.currentTarget.blur(),c.a.send({type:"OPEN_URL",payload:{url:"notebook.html",self:!0}}))}}),e.isTrackHistory?l.a.createElement(E,{t:t,onClick:()=>c.a.send({type:"OPEN_URL",payload:{url:"history.html",self:!0}})}):l.a.createElement(v,{t:t,onClick:()=>c.a.send({type:"OPEN_URL",payload:{url:"notebook.html",self:!0}})}),Object(r.k)()?l.a.createElement(l.a.Fragment,null,l.a.createElement(k,{t:t,isFocus:e.isQSFocus,onClick:e.toggleQSFocus,disabled:Object(r.h)()||Object(r.j)()}),l.a.createElement(M,{t:t,onMouseDown:t=>{t.preventDefault(),e.onSwitchSidebar(0===t.button?"left":"right")}})):Object(r.j)()?null:l.a.createElement(l.a.Fragment,null,l.a.createElement(C,{t:t,isPinned:e.isPinned,onClick:e.togglePin,disabled:Object(r.h)()||Object(r.j)()}),l.a.createElement(S,{t:t,onClick:e.onClose})))})},365:function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var a=n(22),o=n(19),r=n(1),i=n(0),c=n.n(i),s=n(116),l=n(30),d=n(4),u=n.n(d),h=n(184),p=n(11),m=n(46),f=n(9),g=n(133);const b=e=>{const{t:t,ready:a}=Object(f.e)(["dicts","content","langcode"]),[o,s]=Object(i.useState)(!1);Object(i.useEffect)(()=>{const t=setTimeout(()=>s(e.isSearching),1500*Math.random());return()=>{clearTimeout(t)}},[e.isSearching]);const l=Object(i.useMemo)(()=>browser.runtime.getURL(n(429)("./"+e.dictID+"/favicon.png")),[e.dictID]),d=Object(i.useMemo)(()=>{const n=[],a=e=>e.replace(/%t\((\S+)\)/g,(e,n)=>t(n));if(e.catalog)for(const t of e.catalog)t.options?n.push({key:t.key,value:t.value,title:t.title&&a(t.title),options:t.options.map(e=>({value:e.value,label:a(e.label)}))}):n.push({key:t.key,value:t.value,label:a(t.label)});return n.push({key:"_options",value:"_options",label:t("content:tip.openOptions")}),n},[e.catalog,a]);return c.a.createElement("header",{className:u()("dictItemHead",{isSearching:e.isSearching})},c.a.createElement("img",{className:"dictItemHead-Logo",src:l,alt:"dict logo"}),c.a.createElement("h1",{className:"dictItemHead-Title"},c.a.createElement("a",{href:"#",onClick:t=>{t.stopPropagation(),t.preventDefault(),e.openDictSrcPage(e.dictID,t.ctrlKey)}},t(e.dictID+".name"))),c.a.createElement(g.a,{compact:!0,Button:y,items:d,top:25,onSelect:(t,n)=>{"_options"===t?r.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=Dictionaries",self:!0}}):e.onCatalogSelect({key:t,value:n})}}),o&&c.a.createElement("div",{className:"dictItemHead-Loader"},c.a.createElement("div",null),c.a.createElement("div",null),c.a.createElement("div",null),c.a.createElement("div",null),c.a.createElement("div",null)),c.a.createElement("div",{className:"dictItemHead-EmptyArea",onClick:e.toggleFold}),c.a.createElement("button",{className:"dictItemHead-FoldArrowBtn",onMouseOut:e=>e.currentTarget.blur(),onClick:e.toggleFold},c.a.createElement("svg",{className:"dictItemHead-FoldArrow",width:"18",height:"18",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg"},c.a.createElement("path",{className:"dictItemHead-FoldArrowPath",d:"M43.854 59.414L14.146 29.707 43.854 0l1.414 1.414-28.293 28.293L45.268 58"}))))};function y(e){return c.a.createElement("button",{className:"dictItemHead-Menus_Btn",...e},c.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 512 512"},c.a.createElement("path",{d:"M301.256 394.29A45.256 45.256 0 01256 439.546a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 349.034a45.256 45.256 0 0145.256 45.256zM301.256 257.48A45.256 45.256 0 01256 302.736a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 212.224a45.256 45.256 0 0145.256 45.256zM301.256 117.71A45.256 45.256 0 01256 162.964a45.256 45.256 0 01-45.256-45.256A45.256 45.256 0 01256 72.453a45.256 45.256 0 0145.256 45.256z"})))}var w=n(218),O=n(2),x=n(247),j=n(119);const E=n(511).toString(),v=e=>{const t=Object(i.useMemo)(()=>c.a.lazy(()=>n(478)(`./${e.dictID}/View.tsx`)),[e.dictID]),a=Object(i.useMemo)(()=>c.a.lazy(async()=>{const t=await n(479)(`./${e.dictID}/_style.shadow.scss`);return{default:()=>c.a.createElement("style",null,(t.default||t).toString())}}),[e.dictID]);return c.a.createElement(x.a,{error:C},c.a.createElement(i.Suspense,{fallback:null},"FINISH"===e.searchStatus&&e.searchResult&&c.a.createElement(w.a.div,null,c.a.createElement("div",{ref:e.dictRootRef},c.a.createElement("style",null,E),c.a.createElement(a,null),e.panelCSS?c.a.createElement("style",null,e.panelCSS):null,c.a.createElement(j.b,{className:u()("d-"+e.dictID,"dictRoot",O.b,{isAnimate:e.withAnimation}),onPlayStart:e.onSpeakerPlay,onMouseUp:e.onInPanelSelect},c.a.createElement(t,{result:e.searchResult,searchText:e.searchText,catalogSelect$:e.catalogSelect$}))))))};function C(){return c.a.createElement("p",{style:{textAlign:"center"}},"Render error. Please"," ",c.a.createElement("a",{href:"https://github.com/crimx/ext-saladict/issues",target:"_blank",rel:"nofollow noopener noreferrer"},"report issue"),".")}const k=e=>{const[t,n]=Object(s.a)(l.b),[a,o]=Object(i.useState)(!1),[d,f]=Object(i.useState)("COLLAPSE"),[g,y]=Object(i.useState)(10),w=Object(i.useMemo)(()=>Math.max(10,"COLLAPSE"===d?10:"FULL"===d?g:Math.min(g,e.preferredHeight)),[d,g,e.preferredHeight]);Object(i.useEffect)(()=>{"FINISH"===e.searchStatus?f("HALF"):f("COLLAPSE")},[e.searchStatus]),Object(i.useEffect)(()=>{e.onHeightChanged(e.dictID,w+20)},[w]);const O=Object(i.useRef)(null),x=Object(i.useRef)(null),j=Object(i.useCallback)(async n=>{if("#"!==n.key[0])return t(n);if(!x.current)return;const a=x.current.querySelector("#"+n.value);if(a){if("FULL"!==d&&(o(!0),f("FULL"),await Object(m.d)(0),o(!1)),O.current){const t=O.current.getRootNode();if(t.querySelector){const n=t.querySelector(".dictPanel-Body");if(n)return void n.scrollTo({top:a.getBoundingClientRect().y-n.firstElementChild.getBoundingClientRect().y-30,behavior:e.withAnimation?"smooth":"auto"})}}a.scrollIntoView({behavior:e.withAnimation?"smooth":"auto"})}},[d,e.withAnimation]);return c.a.createElement("section",{ref:O,className:u()("dictItem",{isUnfold:"COLLAPSE"!==d,noHeightTransition:a})},c.a.createElement(b,{dictID:e.dictID,catalog:e.catalog,isSearching:"SEARCHING"===e.searchStatus,toggleFold:function(){if("SEARCHING"===e.searchStatus)return;if("COLLAPSE"!==d)return f("COLLAPSE"),void e.onUserFold(e.dictID,!0);e.onUserFold(e.dictID,!1),e.searchResult?f("HALF"):e.searchText({id:e.dictID})},openDictSrcPage:e.openDictSrcPage,onCatalogSelect:j}),c.a.createElement("div",{className:"dictItem-Body",key:e.dictID,style:{height:w},onClick:function(t){if(t.ctrlKey||t.metaKey||t.altKey)return;if(!t.target.tagName)return;const n=t.currentTarget;for(let a=t.target;a&&a!==n;a=a.parentElement)if("A"===a.tagName||"link"===a.getAttribute("role")){t.preventDefault(),t.stopPropagation();const n=a;return void(/nofollow|noopener|noreferrer/.test(n.rel)?r.a.send({type:"OPEN_URL",payload:{url:n.href}}):e.searchText({word:Object(p.e)({text:n.textContent||"",title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}))}}},c.a.createElement("article",{className:"dictItem-BodyMesure"},c.a.createElement(h.ResizeReporter,{reportInit:!0,onHeightChanged:y}),e.TestComp?"FINISH"===e.searchStatus&&e.searchResult&&c.a.createElement(e.TestComp,{result:e.searchResult,searchText:e.searchText,catalogSelect$:n}):c.a.createElement(v,{...e,catalogSelect$:n,dictRootRef:x})),"HALF"===d&&w<g&&e.searchResult&&c.a.createElement("button",{className:"dictItem-FoldMask",onClick:()=>f("FULL")},c.a.createElement("svg",{className:"dictItem-FoldMaskArrow",width:"15",height:"15",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg"},c.a.createElement("path",{d:"M58 14.146L29.707 42.44 1.414 14.145 0 15.56 29.707 45.27 59.414 15.56"})))))};var S=n(182),M=n(371),I=n(173);const A=c.a.memo(k),N=Object(o.a)((e,t)=>e.map(e=>({dictID:e.id,searchStatus:e.searchStatus,searchResult:e.searchResult,catalog:e.catalog,preferredHeight:t[e.id].preferredHeight}))),T=Object(a.b)(e=>{const{config:t}=e;return{withAnimation:t.animation,panelCSS:t.panelCSS,touchMode:t.touchMode,language:t.language,doubleClickDelay:t.doubleClickDelay,dicts:N(e.renderedDicts,e.activeProfile.dicts.all)}},e=>({searchText:t=>{e({type:"SEARCH_START",payload:t})},openDictSrcPage:(t,n)=>{e((e,a)=>{const{searchHistory:o}=a(),i=o[o.length-1];r.a.send({type:"OPEN_DICT_SRC_PAGE",payload:{id:t,text:i&&i.text?i.text:"",active:!n}})})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"dictlist",height:t}})},onUserFold:(t,n)=>{e({type:"USER_FOLD_DICT",payload:{id:t,fold:n}})},onSpeakerPlay:t=>new Promise(n=>{e((e,a)=>{a().isExpandWaveformBox?r.a.self.send({type:"PLAY_AUDIO",payload:t}).then(n):r.a.send({type:"PLAY_AUDIO",payload:t}).then(n),e({type:"PLAY_AUDIO",payload:{src:t,timestamp:Date.now()}})})}),newSelection:t=>{e({type:"NEW_SELECTION",payload:t})}}))(e=>{const{dicts:t,onHeightChanged:n,touchMode:a,language:o,doubleClickDelay:r,newSelection:l,...d}=e,u=Object(i.useRef)({dicts:{},sum:0}),[h,p]=Object(s.a)(e=>Object(M.a)(10)(e));Object(S.a)(p,n);const m=Object(i.useRef)((e,t)=>{u.current.sum=u.current.sum-(u.current.dicts[e]||0)+t,u.current.dicts[e]=t,h(u.current.sum)}).current,f=Object(i.useMemo)(()=>t.reduce((e,{dictID:t})=>e+t+",",""),[t]);Object(i.useEffect)(()=>{const e=u.current;u.current=t.reduce((t,{dictID:n})=>(t.dicts[n]=e.dicts[n]||30,t.sum+=t.dicts[n]||30,t),{dicts:{},sum:0}),h(u.current.sum)},[f]);const g=Object(I.b)(a,o,r,l);return c.a.createElement("div",{className:"dictList"},t.map(e=>c.a.createElement(A,{key:e.dictID,...d,...e,onInPanelSelect:g,onHeightChanged:m})))})},366:function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var a=n(0),o=n.n(a),r=n(389),i=n(130),c=n(30),s=n(116),l=n(240),d=n(182),u=n(96),h=n(371),p=n(128),m=n(108),f=n(435),g=n(11),b=n(80),y=n(9),w=n(1),O=n(2);const x=({words:e,onCardDelete:t})=>{const{t:n}=Object(y.e)(["common","content"]);return o.a.createElement("aside",{className:"wordCards"},o.a.createElement("header",null,o.a.createElement("h1",{className:"wordCards-Title"},n("content:wordEditor.wordCardsTitle"))),o.a.createElement("ul",{className:"wordCards-CardList"},e.map(e=>o.a.createElement("li",{className:"wordCards-Card",key:e.date},o.a.createElement("button",{type:"button",className:"wordCards-CardClose",onClick:()=>t(e)},"×"),o.a.createElement("h2",{className:"wordCards-CardTitle"},e.text),e.context&&o.a.createElement("div",{className:"wordCards-CardItem"},o.a.createElement("svg",{className:"wordCards-CardItem_Icon",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.333 95.332"},o.a.createElement("title",null,n("note.context")),o.a.createElement("path",{d:"M 36.587 45.263 C 35.07 44.825 33.553 44.605 32.078 44.605 C 29.799 44.605 27.898 45.125 26.423 45.763 C 27.844 40.559 31.259 31.582 38.061 30.57 C 38.69 30.476 39.207 30.021 39.379 29.408 L 40.864 24.09 C 40.99 23.641 40.916 23.16 40.66 22.77 C 40.403 22.38 39.991 22.119 39.529 22.056 C 39.027 21.987 38.515 21.952 38.009 21.952 C 29.844 21.952 21.759 30.474 18.347 42.675 C 16.344 49.833 15.757 60.595 20.686 67.369 C 23.445 71.16 27.472 73.183 32.657 73.385 L 32.717 73.386 C 39.114 73.386 44.783 69.079 46.508 62.915 C 47.538 59.229 47.073 55.364 45.196 52.029 C 43.338 48.731 40.28 46.327 36.581 45.263 Z M 76.615 52.029 C 74.758 48.731 71.699 46.327 68.002 45.263 C 66.484 44.823 64.968 44.604 63.492 44.604 C 61.214 44.604 59.311 45.121 57.838 45.76 C 59.259 40.553 62.673 31.579 69.475 30.564 C 70.102 30.47 70.619 30.016 70.793 29.402 L 72.28 24.085 C 72.403 23.635 72.332 23.155 72.073 22.764 C 71.814 22.373 71.401 22.113 70.942 22.049 C 70.438 21.981 69.928 21.946 69.417 21.946 C 61.253 21.946 53.169 30.467 49.755 42.669 C 47.752 49.827 47.166 60.59 52.101 67.364 C 54.858 71.153 58.887 73.178 64.069 73.379 C 64.091 73.38 64.111 73.381 64.134 73.381 C 70.527 73.381 76.198 69.074 77.923 62.908 C 78.953 59.224 78.485 55.358 76.609 52.022 Z"})),o.a.createElement("div",{className:"wordCards-CardItem_Cont"},j(e.context))),e.trans&&o.a.createElement("div",{className:"wordCards-CardItem"},o.a.createElement("svg",{className:"wordCards-CardItem_Icon",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 469.333 469.333"},o.a.createElement("title",null,n("note.trans")),o.a.createElement("path",{d:"M253.227 300.267L199.04 246.72l.64-.64c37.12-41.387 63.573-88.96 79.147-139.307h62.507V64H192V21.333h-42.667V64H0v42.453h238.293c-14.4 41.173-36.907 80.213-67.627 114.347-19.84-22.08-36.267-46.08-49.28-71.467H78.72c15.573 34.773 36.907 67.627 63.573 97.28l-108.48 107.2L64 384l106.667-106.667 66.347 66.347 16.213-43.413zM373.333 192h-42.667l-96 256h42.667l24-64h101.333l24 64h42.667l-96-256zm-56 149.333L352 248.853l34.667 92.48h-69.334z"})),o.a.createElement("div",{className:"wordCards-CardItem_Cont"},j(e.trans))),e.note&&o.a.createElement("div",{className:"wordCards-CardItem"},o.a.createElement("svg",{className:"wordCards-CardItem_Icon",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 35.738 35.738"},o.a.createElement("title",null,n("note.note")),o.a.createElement("path",{d:"M0 35.667S11.596-1.403 35.738.117c0 0-2.994 4.85-10.55 6.416 0 0 3.517.43 6.368-.522 0 0-1.71 5.517-11.025 6.275 0 0 5.135 1.33 7.416.57 0 0-.62 4.11-10.102 6.154-.562.12-4.347 1.066-1.306 1.447 0 0 4.37.763 5.514.38 0 0-3.743 5.608-12.927 5.133-.903-.048-1.332 0-1.332 0L0 35.666z"})),o.a.createElement("div",{className:"wordCards-CardItem_Cont"},j(e.note))),o.a.createElement("div",{className:"wordCards-CardFooter"},e.favicon&&o.a.createElement("img",{className:"wordCards-Favicon",src:e.favicon}),o.a.createElement("a",{className:"wordCards-URL",href:e.url,target:"_blank",rel:"nofollow noopener noreferrer",title:e.title},e.title))))))};function j(e){return e.split("\n").map((e,t)=>o.a.createElement("p",{key:t},e))}const E=e=>o.a.createElement("div",{className:"wordEditorPanel-Background",style:{zIndex:Object(O.f)()?998:2147483645}},o.a.createElement("div",{className:"wordEditorPanel-Container",style:{width:e.containerWidth}},o.a.createElement("div",{className:"wordEditorPanel"},o.a.createElement("header",{className:"wordEditorPanel-Header"},o.a.createElement("h1",{className:"wordEditorPanel-Title"},e.title),o.a.createElement("button",{type:"button",className:"wordEditorPanel-BtnClose",onClick:e.onClose},"×")),o.a.createElement("div",{className:"wordEditorPanel-Main fancy-scrollbar"},e.children),e.btns&&e.btns.length>0&&o.a.createElement("footer",{className:"wordEditorPanel-Footer"},e.btns.map((e,t)=>o.a.createElement("button",{key:t,type:"button",className:e.type?"wordEditorPanel-Btn_"+e.type:"wordEditorPanel-Btn",onClick:e.onClick},e.title))))));var v=n(89);const C=e=>{const[t,n]=Object(a.useState)(()=>Object.keys(e.ctxTransConfig).reduce((e,t)=>(e[t]=!1,e),{})),r=async t=>{const{name:a}=t.currentTarget.dataset;if(a&&Object.prototype.hasOwnProperty.call(e.ctxTransConfig,a)){e.onNewCtxTransConfig(a,t.currentTarget.checked);const o=e.word.context||e.word.text;if(t.currentTarget.checked&&o){n(e=>({...e,[a]:!0}));const t=await Object(b.c)(o,a);n(e=>({...e,[a]:!1})),e.onNewCtxTransResult(a,t)}else e.onNewCtxTransResult(a,"")}};return o.a.createElement("ul",{className:"ctxTransList"},Object.keys(e.ctxTransResult).map(n=>o.a.createElement("li",{key:n,className:"ctxTransItem"},o.a.createElement("div",{className:"ctxTransItem-Head"},o.a.createElement("h1",{className:"ctxTrans-Title"},o.a.createElement("input",{type:"checkbox",checked:e.ctxTransConfig[n],id:"ctx-"+n,"data-name":n,onChange:r}),o.a.createElement("label",{htmlFor:"ctx-"+n},n)),t[n]&&o.a.createElement("div",{className:"ctxTrans-Loader"},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))),o.a.createElement("p",{className:"ctxTrans-Content"},e.ctxTransResult[n]))))},k={enter:400,exit:100,appear:400},S=e=>{const{t:t}=Object(y.e)(["common","content"]),[n,j]=Object(a.useState)(!1),[S,I]=Object(a.useState)(!1),[A,N]=Object(a.useState)(e.wordEditor.word),T=Object(i.a)(c.c,[A]),[D,_]=Object(a.useState)(e.ctxTrans);Object(r.a)(()=>{_(e.ctxTrans)},[e.ctxTrans]);const[z,L]=Object(a.useState)(()=>Object.keys(e.ctxTrans).reduce((e,t)=>(e[t]="",e),{})),[B,P]=Object(s.a)(e=>e.pipe(Object(h.a)(200),Object(p.a)(T),Object(m.a)(([,e])=>e.text?Object(g.c)("notebook",e.text).then(t=>t.filter(({date:t})=>t!==e.date)).catch(()=>[]):Object(u.a)([])),Object(f.a)([]))),R=Object(l.a)(P),[U,W]=Object(s.a)(e=>e.pipe(Object(p.a)(T),Object(m.a)(([e,t])=>Object(b.d)(t.context||t.text,e))));Object(d.a)(W,L),Object(a.useEffect)(()=>{e.wordEditor.translateCtx&&U(D)},[]),Object(a.useEffect)(B,[A.text,A.context]),Object(r.a)(()=>{N({...A,trans:Object(b.a)(A.trans,z)})},[z]);const H=()=>{n&&!confirm(t("content:wordEditor.closeConfirm"))||e.onClose()},F=({currentTarget:e})=>{j(!0),N({...A,[e.name]:e.value})},q=[{type:"normal",title:t("content:transContext"),onClick:()=>U(D)},{type:"normal",title:t("content:neverShow"),onClick:()=>{Object(O.h)()||w.a.send({type:"OPEN_URL",payload:{url:"options.html?menuselected=Notebook",self:!0}})}},{type:"normal",title:t("cancel"),onClick:H},{type:"primary",title:t("save"),onClick:()=>{Object(g.f)("notebook",A).then(e.onClose).catch(console.error)}}],[Y,Q]=Object(a.useState)();return Object(a.useEffect)(()=>{let e=!0;return w.c.sync.get("syncConfig").then(async({syncConfig:t})=>{var n;if(null==t||null===(n=t.ankiconnect)||void 0===n?void 0:n.enable){const t=await w.a.send({type:"ANKI_CONNECT_FIND_WORD",payload:A.date});e&&Q(t)}}),()=>{e=!1}},[]),Y&&q.unshift({type:"normal",title:t("content:updateAnki.title"),onClick:async()=>{let e="content:updateAnki.success";try{await w.a.send({type:"ANKI_CONNECT_UPDATE_WORD",payload:{cardId:Y,word:A}})}catch(t){!1,e="content:updateAnki.failed"}browser.notifications.create({type:"basic",eventTime:Date.now()+2e3,iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict",message:t(e)})}}),o.a.createElement(o.a.Fragment,null,o.a.createElement(E,{containerWidth:e.containerWidth,title:t("content:wordEditor.title"),btns:q,onClose:H},o.a.createElement("div",{className:"wordEditorNote-Container"},o.a.createElement("div",{className:"wordEditorNote"},o.a.createElement("label",{htmlFor:"wordEditorNote_Word"},t("note.word")),o.a.createElement("input",{type:"text",name:"text",id:"wordEditorNote_Word",value:A.text,onChange:F,onKeyDown:M}),o.a.createElement("label",{htmlFor:"wordEditorNote_Context"},t("note.context")),o.a.createElement("textarea",{rows:3,name:"context",id:"wordEditorNote_Context",value:A.context,onChange:F,onKeyDown:M}),o.a.createElement("div",{className:"wordEditorNote_LabelWithBtn"},o.a.createElement("label",{htmlFor:"wordEditorNote_Trans"},t("note.trans"),o.a.createElement("a",{href:"https://saladict.crimx.com/q&a.html#%E9%97%AE%EF%BC%9A%E6%B7%BB%E5%8A%A0%E7%94%9F%E8%AF%8D%E5%8F%AF%E4%B8%8D%E5%8F%AF%E4%BB%A5%E5%8A%A0%E5%85%A5%E5%8D%95%E8%AF%8D%E7%BF%BB%E8%AF%91%EF%BC%88%E8%80%8C%E4%B8%8D%E6%98%AF%E7%BF%BB%E8%AF%91%E6%95%B4%E5%8F%A5%E4%B8%8A%E4%B8%8B%E6%96%87%EF%BC%89%E3%80%82",target:"_blank",rel:"nofollow noopener noreferrer"}," ","Why?")),o.a.createElement("button",{onClick:()=>I(!0)},t("content:wordEditor.chooseCtxTitle"))),o.a.createElement("textarea",{rows:10,name:"trans",id:"wordEditorNote_Trans",value:A.trans,onChange:F,onKeyDown:M}),o.a.createElement("p",{className:"wordEditorNote_Help"},t("content:wordEditor.ctxHelp")),o.a.createElement("label",{htmlFor:"wordEditorNote_Note"},t("note.note")),o.a.createElement("textarea",{rows:5,name:"note",id:"wordEditorNote_Note",value:A.note,onChange:F,onKeyDown:M}),o.a.createElement("label",{htmlFor:"wordEditorNote_SrcTitle"},t("note.srcTitle")),o.a.createElement("input",{type:"text",name:"title",id:"wordEditorNote_SrcTitle",value:A.title,onChange:F,onKeyDown:M}),o.a.createElement("label",{htmlFor:"wordEditorNote_SrcLink"},t("note.srcLink")),o.a.createElement("input",{type:"text",name:"url",id:"wordEditorNote_SrcLink",value:A.url,onChange:F,onKeyDown:M}),o.a.createElement("label",{htmlFor:"wordEditorNote_SrcFavicon"},t("note.srcFavicon"),A.favicon?o.a.createElement("img",{className:"wordEditorNote_SrcFavicon",src:A.favicon,alt:t("note.srcTitle")}):null),o.a.createElement("input",{type:"text",name:"favicon",id:"wordEditorNote_SrcFavicon",value:A.favicon,onChange:F,onKeyDown:M})),R&&R.length>0&&o.a.createElement(x,{words:R,onCardDelete:e=>{window.confirm(t("content:wordEditor.deleteConfirm"))&&Object(g.a)("notebook",[e.date]).then(B)}}))),o.a.createElement(v.a,{classNames:"notes-fade",mountOnEnter:!0,unmountOnExit:!0,timeout:k,in:S},()=>o.a.createElement(E,{containerWidth:e.containerWidth-100,title:t("content:wordEditor.chooseCtxTitle"),onClose:()=>I(!1),btns:[{type:"normal",title:t("content:transContext"),onClick:()=>U(D)}]},o.a.createElement(C,{word:A,ctxTransConfig:D,ctxTransResult:z,onNewCtxTransConfig:(e,t)=>{_(n=>({...n,[e]:t}))},onNewCtxTransResult:(e,t)=>{L(n=>({...n,[e]:t}))}}))))};function M(e){e.stopPropagation(),e.nativeEvent.stopPropagation()}const I=e=>o.a.createElement("div",{className:O.a+" saladict-theme"},o.a.createElement(S,{...e}))},367:function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var a=n(22),o=n(11),r=n(2),i=n(0),c=n.n(i),s=n(4),l=n.n(s),d=n(89),u=n(382),h=n(240),p=n(108),m=n(83),f=n(435),g=n(155);const b=e=>{const t=Object(i.useRef)(!1),n=Object(i.useRef)(null),[a,o]=Object(i.useState)(0),[r,s]=Object(h.a)(y,!1),p=Object(i.useRef)(!0);return Object(i.useEffect)(()=>{e.expand&&(p.current&&!e.shouldFocus||n.current&&(n.current.focus(),n.current.select()),p.current=!1)},[e.expand]),Object(i.useEffect)(()=>{e.shouldFocus&&!t.current&&e.expand&&n.current&&(n.current.focus(),n.current.select())},[e.text]),Object(i.useEffect)(()=>{e.onHeightChanged((e.expand?a:0)+12)},[a,e.expand]),c.a.createElement("div",null,c.a.createElement("div",{className:l()("mtaBox-TextArea-Wrap",{isTyping:r}),style:{height:e.expand?a:0}},c.a.createElement(d.a,{in:e.expand,timeout:400,classNames:"mtaBox-TextArea-Wrap",appear:!0,mountOnEnter:!0,unmountOnExit:!0},()=>c.a.createElement(u.a,{autoFocus:!0,inputRef:n,className:"mtaBox-TextArea",value:e.text,onChange:n=>{t.current=!0,e.onInput(n.currentTarget.value)},onKeyDown:t=>{t.nativeEvent.stopPropagation(),"Enter"===t.key&&(t.ctrlKey||t.metaKey)&&e.searchText(e.text),s(t)},minRows:2,onHeightChange:e=>o(e)}))),c.a.createElement("button",{className:"mtaBox-DrawerBtn",onClick:e.onDrawerToggle},c.a.createElement("svg",{width:"10",height:"10",viewBox:"0 0 59.414 59.414",className:l()("mtaBox-DrawerBtn_Arrow",{isExpand:e.expand})},c.a.createElement("path",{d:"M58 14.146L29.707 42.44 1.414 14.145 0 15.56 29.707 45.27 59.414 15.56"}))))};function y(e){return e.pipe(Object(p.a)(e=>(e.stopPropagation(),Object(g.a)(1e3).pipe(Object(m.a)(!1),Object(f.a)(!0)))))}const w=Object(a.b)(e=>({expand:e.isExpandMtaBox,text:e.text,shouldFocus:!e.activeProfile.mtaAutoUnfold||"hide"!==e.activeProfile.mtaAutoUnfold||(e.isQSPanel||Object(r.k)())&&e.config.qsFocus||Object(r.j)()}),e=>({searchText:t=>{e({type:"SEARCH_START",payload:{word:Object(o.e)({text:t})}})},onInput:t=>{e({type:"UPDATE_TEXT",payload:t})},onDrawerToggle:()=>{e({type:"TOGGLE_MTA_BOX"})},onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"mtabox",height:t}})}}))(b)},368:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(22),o=n(0),r=n.n(o),i=n(89),c=n(2);const s=Object(a.b)(e=>({darkMode:e.config.darkMode,isExpand:e.isExpandWaveformBox}),e=>({onHeightChanged:t=>{e({type:"UPDATE_PANEL_HEIGHT",payload:{area:"waveformbox",height:t}})},toggleExpand:()=>{e({type:"TOGGLE_WAVEFORM_BOX"})}}))(e=>(Object(o.useEffect)(()=>{e.onHeightChanged(12+(e.isExpand?165:0))},[e.isExpand]),r.a.createElement("div",{className:`waveformBox ${c.a}${e.isExpand?" isExpand":""}`},r.a.createElement("button",{className:"waveformBox-DrawerBtn",onClick:e.toggleExpand},r.a.createElement("svg",{width:"10",height:"10",viewBox:"0 0 59.414 59.414",xmlns:"http://www.w3.org/2000/svg",className:"waveformBox-DrawerBtn_Arrow"},r.a.createElement("path",{d:"M 58 45.269 L 29.707 16.975 L 1.414 45.27 L 0 43.855 L 29.707 14.145 L 59.414 43.855"}))),r.a.createElement("div",{className:"waveformBox-FrameWrap"},r.a.createElement(i.a,{timeout:400,in:e.isExpand,classNames:"waveformBox-Frame",mountOnEnter:!0,unmountOnExit:!0},()=>r.a.createElement("iframe",{className:"waveformBox-Frame",src:`${browser.runtime.getURL("audio-control.html")}${e.darkMode?"?darkmode=true":""}`,sandbox:"allow-same-origin allow-scripts"}))))))},39:function(e,t,n){"use strict";function a(e,t={},n={}){return{name:e,options:{keepLF:{en:"Keep linebreaks","zh-CN":"保留换行","zh-TW":"保留換行"},"keepLF-none":{en:"None","zh-CN":"不保留","zh-TW":"不保留"},"keepLF-all":{en:"All","zh-CN":"全保留","zh-TW":"全保留"},"keepLF-pdf":{en:"PDF","zh-CN":"保留 PDF 换行","zh-TW":"保留 PDF 換行"},"keepLF-webpage":{en:"Webpage","zh-CN":"保留网页换行","zh-TW":"保留網頁換行"},slInitial:{en:"Source Language","zh-CN":"原文显示","zh-TW":"原文顯示"},"slInitial-hide":{en:"Hide","zh-CN":"隐藏","zh-TW":"隱藏"},"slInitial-collapse":{en:"Collapse","zh-CN":"收起","zh-TW":"收起"},"slInitial-full":{en:"Full","zh-CN":"完整显示","zh-TW":"完整顯示"},tl:{en:"Target language","zh-CN":"目标语言","zh-TW":"目標語言"},tl2:{en:"Fallback target language","zh-CN":"第二目标语言","zh-TW":"第二目標語言"},...t},helps:{slInitial:{en:"Source language initial state. If hided can be reopened via dictionary titlebar menu.","zh-CN":"原文初始显示状态。隐藏后可通过字典标题栏菜单打开。","zh-TW":"原文初始顯示狀態。隱藏後可通過字典標題欄選單開啟。"},tl2:{en:"Fallback when detected languange and target language are identical.","zh-CN":"如果检测的源语言与目标语言相同将自动切换第二目标语言。","zh-TW":"如果檢測的源語言與目標語言相同將自動切換第二目標語言。"},...n}}}n.d(t,"a",(function(){return a}))},40:function(e,t,n){"use strict";n.d(t,"h",(function(){return m})),n.d(t,"i",(function(){return f})),n.d(t,"k",(function(){return g})),n.d(t,"f",(function(){return b})),n.d(t,"m",(function(){return y})),n.d(t,"b",(function(){return w})),n.d(t,"j",(function(){return O})),n.d(t,"e",(function(){return x})),n.d(t,"l",(function(){return E})),n.d(t,"g",(function(){return v})),n.d(t,"n",(function(){return C})),n.d(t,"a",(function(){return S})),n.d(t,"d",(function(){return M})),n.d(t,"c",(function(){return I}));var a=n(85),o=n.n(a),r=n(74),i=n(178),c=n(1),s=n(95),l=n(64),d=n(76),u=n(10);function h(e){return{v:1,d:o.a.deflate(JSON.stringify(e),{to:"string"})}}function p(e){return e&&1===e.v?JSON.parse(o.a.inflate(e.d,{to:"string"})):e}function m(e,t){const n=/^%%_(\S+)_%%$/.exec(e);return n&&t("common:profile."+n[1])||e}async function f(){let e=[],t=[],n="";const a=await c.c.sync.get(["profileIDList","activeProfileID"]);if(a.profileIDList&&(t=a.profileIDList.filter(e=>Boolean(e&&"string"==typeof e.id&&"string"==typeof e.name))),a.activeProfileID&&(n=a.activeProfileID),t.length>0)for(const{id:n}of t){const t=await b(n);e.push(t?Object(i.a)(t):Object(r.b)(n))}else({profileIDList:t,profiles:e}=Object(r.a)()),n=t[0].id;n||(n=t[0].id);let o=e.find(({id:e})=>e===n);o||(o=e[0],n=o.id),await c.c.sync.set({profileIDList:t,activeProfileID:n});for(const t of e)await y(t);return o}async function g(){const{profileIDList:e}=await c.c.sync.get("profileIDList");return e&&await c.c.sync.remove([...e.map(({id:e})=>e),"profileIDList","activeProfileID","configProfileIDs","activeConfigID"]),f()}async function b(e){return p((await c.c.sync.get(e))[e])}async function y(e){return c.c.sync.set({[e.id]:h(e)})}async function w(e){const t=e.id,n=await v();return c.c.sync.set({profileIDList:[...n,e],[t]:h(Object(r.b)(t))})}async function O(e){const t=await j();let n=await v();return n=n.filter(t=>t.id!==e),t===e&&await E(n[0].id),await C(n),c.c.sync.remove(e)}async function x(){const e=await j();if(e){const t=await b(e);if(t)return t}return Object(r.b)()}async function j(){return(await c.c.sync.get("activeProfileID")).activeProfileID||""}function E(e){return c.c.sync.set({activeProfileID:e})}async function v(){return(await c.c.sync.get("profileIDList")).profileIDList||[]}function C(e){return c.c.sync.set({profileIDList:e})}function k(e){c.c.sync.addListener("profileIDList",({profileIDList:t})=>{t&&t.newValue&&e(t)})}async function S(e){let t=await j();c.c.sync.addListener(n=>{if(n.activeProfileID){const{newValue:a,oldValue:o}=n.activeProfileID;a&&(t=a,o?c.c.sync.get([o,a]).then(t=>{t[a]&&e({newProfile:p(t[a]),oldProfile:p(t[o])})}):b(a).then(t=>{t&&e({newProfile:t})}))}if(t&&n[t]){const{newValue:a,oldValue:o}=n[t];if(a)return void e({newProfile:p(a),oldProfile:p(o)})}})}function M(){return Object(s.a)(Object(l.a)(v()),Object(d.a)(k).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newValue)))}function I(){return Object(s.a)(Object(l.a)(x()),Object(d.a)(S).pipe(Object(u.a)(e=>(Array.isArray(e)?e[0]:e).newProfile)))}},41:function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"f",(function(){return f})),n.d(t,"d",(function(){return b})),n.d(t,"a",(function(){return y})),n.d(t,"e",(function(){return w}));var a=n(104),o=n(52),r=n(96),i=n(10),c=n(83),s=n(176),l=n(38),d=n(11),u=n(1);const h=/mac/i.test(navigator.platform);function p(e){return h?"Meta"===e.key:"Control"===e.key}function m(e){return"Escape"===e.key}function f(e){return Object(a.a)(Object(i.a)(e)(Object(o.a)(window,"keydown",{capture:!0})),Object(c.a)(!1)(Object(o.a)(window,"keyup",{capture:!0})),Object(c.a)(!1)(Object(o.a)(window,"blur",{capture:!0})),Object(r.a)(!1)).pipe(Object(s.a)(),Object(l.a)(e=>e))}const g=/CodeMirror|ace_editor|monaco-editor/;function b(e){if(!e||!e.tagName)return!1;for(let t=e;t;t=t.parentElement){if("INPUT"===t.tagName||"TEXTAREA"===t.tagName)return!0;if(g.test(String(t.className)))return!0}return!1}function y(e){const t=window.pageURL||document.URL||"";return!!t&&(e.blacklist.some(([e])=>new RegExp(e).test(t))&&e.whitelist.every(([e])=>!new RegExp(e).test(t)))}async function w(e={}){const t=await u.a.send({type:"PAGE_INFO"});return window.faviconURL=t.faviconURL,t.pageTitle&&(window.pageTitle=t.pageTitle),t.pageURL&&(window.pageURL=t.pageURL),Object(d.e)({title:t.pageTitle||document.title||"",url:t.pageURL||document.URL||"",favicon:t.faviconURL||"",...e})}},429:function(e,t,n){var a={"./baidu/favicon.png":445,"./bing/favicon.png":446,"./caiyun/favicon.png":447,"./cambridge/favicon.png":448,"./cnki/favicon.png":449,"./cobuild/favicon.png":450,"./etymonline/favicon.png":451,"./eudic/favicon.png":452,"./google/favicon.png":453,"./googledict/favicon.png":454,"./guoyu/favicon.png":455,"./hjdict/favicon.png":456,"./jikipedia/favicon.png":457,"./jukuu/favicon.png":458,"./lexico/favicon.png":459,"./liangan/favicon.png":460,"./longman/favicon.png":461,"./macmillan/favicon.png":462,"./mojidict/favicon.png":463,"./naver/favicon.png":464,"./renren/favicon.png":465,"./shanbay/favicon.png":466,"./sogou/favicon.png":467,"./tencent/favicon.png":468,"./urban/favicon.png":469,"./vocabulary/favicon.png":470,"./weblio/favicon.png":471,"./weblioejje/favicon.png":472,"./websterlearner/favicon.png":473,"./wikipedia/favicon.png":474,"./youdao/favicon.png":475,"./youdaotrans/favicon.png":476,"./zdic/favicon.png":477};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id=429},431:function(e,t,n){"use strict";n.r(t);var a=n(42),o=n(1),r=n(29),i=n(2),c=n(10),s=n(720),l=n(108);function d(e){window.parent===window?o.a.self.send({type:"SELECTION",payload:e}):window.parent.postMessage({type:"SALADICT_SELECTION",payload:e},"*")}var u=n(41),h=n(24),p=n(118),m=n(104),f=n(64),g=n(704),b=n(96),y=n(52),w=n(155),O=n(161),x=n(435),j=n(83),E=n(500),v=n(176),C=n(38);function k(e){const t=e.clientX,n=e.clientY;let o,r,i;const c=window.getSelection();if(!c)return null;if(c.rangeCount>0&&(i=c.getRangeAt(0),c.removeAllRanges()),document.caretPositionFromPoint){const e=document.caretPositionFromPoint(t,n);if(!e)return null;o=e.offsetNode,r=e.offset}else{if(!document.caretRangeFromPoint)return null;{const e=document.caretRangeFromPoint(t,n);if(!e)return null;o=e.startContainer,r=e.startOffset}}if(o.nodeType===Node.TEXT_NODE){const e=o,s=e.data,l=(s.slice(0,r).match(/[-_a-z]+$/i)||[""])[0],d=(s.slice(r).match(/^([-_a-z]+|[\u4e00-\u9fa5])/i)||[""])[0];if(l.length<=0&&d.length<=0)return null;const u=document.createRange();u.setStart(e,r-l.length),u.setEnd(e,r+d.length);const h=u.getBoundingClientRect();h.left<=t&&h.right>=t&&h.top<=n&&h.bottom>=n&&(c.removeAllRanges(),c.addRange(u),c.modify&&(c.modify("move","backward","word"),c.collapseToStart(),c.modify("extend","forward","word")));const p=Object(a.d)(c),m=Object(a.b)(c);return c.removeAllRanges(),i&&c.addRange(i),u.detach(),p?{text:p,context:m}:null}return null}var S=n(857),M=n(371);var I=n(173);if(!window.__SALADICT_SELECTION_LOADED__){window.__SALADICT_SELECTION_LOADED__=!0;const e=Object(r.b)().pipe(Object(c.a)(e=>Object(u.a)(e)?null:e),Object(s.a)());o.a.addListener("PRELOAD_SELECTION",()=>{const e=Object(a.c)();if(e)return Object(u.e)({text:e,context:Object(a.a)()})}),o.a.createStream("EMIT_SELECTION").subscribe(async()=>{const e=window.getSelection();if(e){const t=Object(a.d)(e),n=e.getRangeAt(0).getBoundingClientRect();t&&d({mouseX:n.right,mouseY:n.top,instant:!0,self:Object(i.d)(e.anchorNode),word:await Object(u.e)({text:t,context:Object(a.b)(e)}),dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,force:!1})}}),window.addEventListener("message",(function({data:e,source:t}){if(!e||"SALADICT_SELECTION"!==e.type)return;const n=({contentWindow:e})=>e===t,a=Array.from(document.querySelectorAll("iframe")).find(n)||Array.from(document.querySelectorAll("frame")).find(n);if(!a)return;const{left:o,top:r}=a.getBoundingClientRect();e.payload.mouseX=e.payload.mouseX+o,e.payload.mouseY=e.payload.mouseY+r,d(e.payload)})),Object(u.f)(u.b).subscribe(()=>o.a.self.send({type:"ESCAPE_KEY"})),e.pipe(Object(l.a)((function(e){if(!e||!e.tripleCtrl||Object(i.l)()||Object(i.h)())return p.a;const t=Object(s.a)()(Object(u.f)(u.c));return t.pipe(Object(S.a)(Object(m.a)(Object(M.a)(500)(t),Object(u.f)(e=>!Object(u.c)(e)))),Object(C.a)(e=>e.length>=3))}))).subscribe(()=>{o.a.self.send({type:"TRIPLE_CTRL"})}),e.pipe(Object(l.a)(I.a)).subscribe(async e=>{e.word?d({dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,self:!1,instant:!1,force:!1,...e,word:await Object(u.e)(e.word)}):function(e){const t={type:"SELECTION",payload:{word:null,self:e,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}};o.a.self.send(t)}(e.self)}),e.pipe(Object(l.a)((function(e){if(!e)return p.a;const t=o.a.self.createStream("PIN_STATE").pipe(Object(O.a)("payload"),Object(x.a)(!1)),n=Object(m.a)(Object(f.a)(o.a.send({type:"QUERY_QS_PANEL"})),o.a.createStream("QS_PANEL_CHANGED").pipe(Object(O.a)("payload"))).pipe(Object(c.a)(t=>t&&e.qssaPageSel),Object(x.a)(!1));return Object(g.a)(t,n).pipe(Object(l.a)(([t,n])=>{const{instant:a}=e.panelMode,{instant:o}=e[n?"qsPanelMode":t?"pinMode":"mode"];if(!a.enable&&!o.enable)return Object(b.a)(null);const r={};return Object(m.a)(Object(j.a)(null)(Object(y.a)(window,"mouseup",{capture:!0})),Object(j.a)(null)(Object(y.a)(window,"mouseout",{capture:!0})),Object(j.a)(null)(Object(y.a)(window,"keyup",{capture:!0})),Object(y.a)(window,"mousemove",{capture:!0}).pipe(Object(c.a)(e=>{const t=Object(i.d)(e.target),n=t||Object(i.l)()?a:o;return n.enable&&("alt"===n.key&&e.altKey||"shift"===n.key&&e.shiftKey||"ctrl"===n.key&&(e.ctrlKey||e.metaKey)||"direct"===n.key&&!(e.ctrlKey||e.metaKey||e.altKey))?(r.event=e,r.self=t,r):null}))).pipe(Object(E.a)(e=>e?Object(w.a)(e.self?a.delay:o.delay):Object(b.a)()))}),Object(c.a)(e=>e&&{word:k(e.event),...e}),Object(v.a)((e,t)=>{if(!e||!t)return!1;const{word:n,event:a}=e,{word:o,event:r}=t;return(null==n?void 0:n.text)===(null==o?void 0:o.text)&&(null==n?void 0:n.context)===(null==o?void 0:o.context)&&a.shiftKey===r.shiftKey&&a.ctrlKey===r.ctrlKey&&a.metaKey===r.metaKey&&a.altKey===r.altKey}),Object(C.a)(t=>Boolean(t&&t.word&&Object(h.a)(e.language,t.word.text))))}))).subscribe(async({word:e,event:t,self:n})=>{d({word:await Object(u.e)(e),altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,dbClick:!1,force:!1,instant:!0,mouseX:t.clientX,mouseY:t.clientY,self:n})})}},432:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c}));var a=n(24),o=n(142);async function r(e){return(await Object(o.a)()).notebook.where("text").equalsIgnoreCase(e.text).count().then(e=>e>0)}async function i({area:e,text:t}){return(await Object(o.a)())[e].where("text").equalsIgnoreCase(t).toArray()}async function c({area:e,itemsPerPage:t,pageNum:n,filters:r={},sortField:i="date",sortOrder:c="descend",searchText:s}){const l=(await Object(o.a)())[e].orderBy(i?Array.isArray(i)?i.map(e=>String(e)):String(i):"date");c&&"descend"!==c||l.reverse();const d=Array.isArray(r.text)&&r.text.length>0;if(d||s){const e=d?r.text.reduce((e,t)=>(e[t]=!0,e),{}):{},t=s?s.toLocaleLowerCase():"";l.filter(n=>{const o=!d||(e.en&&Object(a.e)(n.text)||e.ch&&Object(a.c)(n.text)||e.word&&!/\s/.test(n.text)||e.phra&&/\s/.test(n.text)),r=!s||Object.values(n).some(e=>"string"==typeof e&&-1!==e.toLocaleLowerCase().indexOf(t));return o&&r})}const u=await l.count();void 0!==t&&void 0!==n&&l.offset(t*(n-1)).limit(t);return{total:u,words:await l.toArray()}}},436:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n(142);async function o({area:e,word:t}){return(await Object(a.a)())[e].put(t)}async function r({area:e,words:t}){return(await Object(a.a)())[e].bulkPut(t)}async function i({area:e,dates:t}){const n=await Object(a.a)();return Array.isArray(t)?n[e].bulkDelete(t):n[e].clear()}},437:function(e,t,n){"use strict";n.r(t),n.d(t,"searchMode",(function(){return d}));var a=n(0),o=n.n(a),r=n(172),i=n(241),c=n(53),s=n(97),l=n(15);const d=(e,t)=>{const n=[];return"mode"===e&&n.push({name:Object(l.a)("mode","icon"),label:null,help:t("searchMode.icon_help"),valuePropName:"checked",children:o.a.createElement(r.a,null,t("searchMode.icon"))},{name:Object(l.a)("bowlHover"),label:null,hide:e=>!e[Object(l.a)("mode","icon")],valuePropName:"checked",children:o.a.createElement(r.a,null,t(Object(l.a)("bowlHover")))},{name:Object(l.a)("bowlOffsetX"),hide:e=>!e[Object(l.a)("mode","icon")],children:o.a.createElement(i.a,{tipFormatter:s.c,min:-100,max:100,marks:{"-100":"-100px",0:"0px",100:"100px"},style:{marginBottom:0}})},{name:Object(l.a)("bowlOffsetY"),hide:e=>!e[Object(l.a)("mode","icon")],children:o.a.createElement(i.a,{tipFormatter:s.c,min:-100,max:100,marks:{"-100":"-100px",0:"0px",100:"100px"},style:{marginBottom:0}})}),n.push({name:Object(l.a)(e,"direct"),label:null,help:t("searchMode.direct_help"),valuePropName:"checked",children:o.a.createElement(r.a,null,t("searchMode.direct"))},{name:Object(l.a)(e,"double"),label:null,help:t("searchMode.double_help"),valuePropName:"checked",children:o.a.createElement(r.a,null,t("searchMode.double"))},{key:Object(l.a)(e,"holding"),label:null,help:t("searchMode.holding_help"),items:[{name:Object(l.a)(e,"holding","ctrl"),label:null,className:"form-item-inline",valuePropName:"checked",children:o.a.createElement(r.a,null,o.a.createElement("kbd",null,"Ctrl"))},{name:Object(l.a)(e,"holding","alt"),label:null,className:"form-item-inline",valuePropName:"checked",children:o.a.createElement(r.a,null,o.a.createElement("kbd",null,"Alt"))},{name:Object(l.a)(e,"holding","shift"),label:null,className:"form-item-inline",valuePropName:"checked",children:o.a.createElement(r.a,null,o.a.createElement("kbd",null,"Shift"))},{name:Object(l.a)(e,"holding","meta"),label:null,className:"form-item-inline",valuePropName:"checked",children:o.a.createElement(r.a,null,o.a.createElement("kbd",null,"Meta"))}]},{name:Object(l.a)(e,"instant","enable"),label:null,help:t("searchMode.instant_help"),valuePropName:"checked",children:o.a.createElement(r.a,null,t("searchMode.instant"))},{name:Object(l.a)(e,"instant","key"),label:t("searchMode.instantKey"),help:t("searchMode.instantKey_help"),hide:t=>!t[Object(l.a)(e,"instant","enable")],children:o.a.createElement(c.a,{style:{width:100}},o.a.createElement(c.a.Option,{value:"direct"},t("searchMode.instantDirect")),o.a.createElement(c.a.Option,{value:"ctrl"},"Ctrl/⌘"),o.a.createElement(c.a.Option,{value:"alt"},"Alt"),o.a.createElement(c.a.Option,{value:"shift"},"Shift"))},{name:Object(l.a)(e,"instant","delay"),label:t("searchMode.instantDelay"),hide:t=>!t[Object(l.a)(e,"instant","enable")],children:o.a.createElement(i.a,{tipFormatter:e=>e+t("common:unit.ms"),min:100,max:2e3,marks:{100:"0.1"+t("common:unit.s"),2e3:"2"+t("common:unit.s")}})}),{key:Object(l.a)(e),items:n}}},439:function(e,t,n){"use strict";n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return O}));var a=n(219),o=n.n(a),r=n(746),i=n.n(r),c=n(739),s=n.n(c),l=n(533),d=n.n(l),u=n(0),h=n.n(u),p=n(760),m=n(1319),f=n(82),g=n(744),b=n(761),y=n(9);n(1150);function w(e,t,n){const a=Array.from(e),[o]=a.splice(t,1);return a.splice(n,0,o),a}function O(e){const{t:t}=Object(y.e)("common");return h.a.createElement(m.a,{title:e.title,extra:h.a.createElement(f.a,{type:"dashed",size:"small",onClick:e.onAdd},h.a.createElement(d.a,null),t("add"))},e.description,h.a.createElement(g.default.Group,{className:"sortable-list-radio-group",value:e.selected,onChange:e.onSelect},h.a.createElement(p.a,{onDragEnd:t=>{e.onOrderChanged&&t.destination&&t.source.index!==t.destination.index&&e.onOrderChanged(t.source.index,t.destination.index)}},h.a.createElement(p.c,{droppableId:"droppable"},({innerRef:n,droppableProps:a,placeholder:r})=>h.a.createElement("div",{ref:n,...a},h.a.createElement(b.b,{size:"large"},e.list.map((n,a)=>h.a.createElement(p.b,{key:n.value,draggableId:n.value,index:a,disableInteractiveElementBlocking:!0},({innerRef:r,draggableProps:c,dragHandleProps:l})=>h.a.createElement("div",{ref:r,...c},h.a.createElement(b.b.Item,{key:n.value},h.a.createElement("div",{className:"sortable-list-item"},null==e.selected?n.title:h.a.createElement(g.default,{value:n.value},n.title),h.a.createElement("div",{className:"sortable-list-item-btns"},h.a.createElement(s.a,{rotate:90,title:t("sort"),style:{cursor:"move"},...l}),h.a.createElement(f.a,{className:"sortable-list-item-btn",title:t("edit"),shape:"circle",size:"small",icon:h.a.createElement(i.a,null),disabled:null!=e.disableEdit&&e.disableEdit(a,n),onClick:()=>e.onEdit&&e.onEdit(a,n)}),h.a.createElement(f.a,{title:t("delete"),className:"sortable-list-item-btn",shape:"circle",size:"small",icon:h.a.createElement(o.a,null),disabled:null!=e.selected&&n.value===e.selected,onClick:()=>e.onDelete&&e.onDelete(a,n)}))))))),r))))),(null==e.isShowAdd||e.isShowAdd)&&h.a.createElement(f.a,{type:"dashed",style:{width:"100%"},onClick:e.onAdd},h.a.createElement(d.a,null)," ",t("add")))}},445:function(e,t,n){e.exports=n.p+"assets/favicon-baidu.b1036c7f.png"},446:function(e,t,n){e.exports=n.p+"assets/favicon-bing.e3d3533d.png"},447:function(e,t,n){e.exports=n.p+"assets/favicon-caiyun.7da16416.png"},448:function(e,t,n){e.exports=n.p+"assets/favicon-cambridge.fa1166e5.png"},449:function(e,t,n){e.exports=n.p+"assets/favicon-cnki.9d1835fe.png"},450:function(e,t,n){e.exports=n.p+"assets/favicon-cobuild.b6b15fdf.png"},451:function(e,t,n){e.exports=n.p+"assets/favicon-etymonline.eb3c1833.png"},452:function(e,t,n){e.exports=n.p+"assets/favicon-eudic.e582c08d.png"},453:function(e,t,n){e.exports=n.p+"assets/favicon-google.8edddd23.png"},454:function(e,t,n){e.exports=n.p+"assets/favicon-googledict.e936e12b.png"},455:function(e,t,n){e.exports=n.p+"assets/favicon-guoyu.b08539ad.png"},456:function(e,t,n){e.exports=n.p+"assets/favicon-hjdict.d4d70891.png"},457:function(e,t,n){e.exports=n.p+"assets/favicon-jikipedia.40135efc.png"},458:function(e,t,n){e.exports=n.p+"assets/favicon-jukuu.7d8ea82f.png"},459:function(e,t,n){e.exports=n.p+"assets/favicon-lexico.cfe48cf5.png"},46:function(e,t,n){"use strict";function a(e){const t=Array.isArray(e)?e:Array.from(e);return Promise.all(t.map(e=>Promise.resolve(e).catch(()=>null)))}function o(e){const t=Array.isArray(e)?e:Array.from(e);let n=0;return new Promise((e,a)=>t.forEach(o=>{Promise.resolve(o).then(e).catch(()=>{++n===t.length&&a(new Error("All rejected"))})}))}function r(...e){return new Promise(t=>{setTimeout(()=>e.length>1?t(e[1]):t(),Number(e[0])||0)})}function i(e,t=0){return Promise.race([e,r(t).then(()=>Promise.reject(new Error(`timeout ${t}ms`)))])}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i}))},460:function(e,t,n){e.exports=n.p+"assets/favicon-liangan.b08539ad.png"},461:function(e,t,n){e.exports=n.p+"assets/favicon-longman.c733be7c.png"},462:function(e,t,n){e.exports=n.p+"assets/favicon-macmillan.50284e7f.png"},463:function(e,t,n){e.exports=n.p+"assets/favicon-mojidict.435cd8b4.png"},464:function(e,t,n){e.exports=n.p+"assets/favicon-naver.6094f3e0.png"},465:function(e,t,n){e.exports=n.p+"assets/favicon-renren.7fdf60c5.png"},466:function(e,t,n){e.exports=n.p+"assets/favicon-shanbay.082532e3.png"},467:function(e,t,n){e.exports=n.p+"assets/favicon-sogou.5f76dc4a.png"},468:function(e,t,n){e.exports=n.p+"assets/favicon-tencent.6981c3c3.png"},469:function(e,t,n){e.exports=n.p+"assets/favicon-urban.e32bfdde.png"},470:function(e,t,n){e.exports=n.p+"assets/favicon-vocabulary.06f9ac91.png"},471:function(e,t,n){e.exports=n.p+"assets/favicon-weblio.b2639663.png"},472:function(e,t,n){e.exports=n.p+"assets/favicon-weblioejje.a7f3d53c.png"},473:function(e,t,n){e.exports=n.p+"assets/favicon-websterlearner.ef2a5d08.png"},474:function(e,t,n){e.exports=n.p+"assets/favicon-wikipedia.47e324fa.png"},475:function(e,t,n){e.exports=n.p+"assets/favicon-youdao.da86f82a.png"},476:function(e,t,n){e.exports=n.p+"assets/favicon-youdaotrans.0d8d4512.png"},477:function(e,t,n){e.exports=n.p+"assets/favicon-zdic.1310d810.png"},478:function(e,t,n){var a={"./baidu/View.tsx":[638,99],"./bing/View.tsx":[639,131],"./caiyun/View.tsx":[640,100],"./cambridge/View.tsx":[641,132],"./cnki/View.tsx":[642,94],"./cobuild/View.tsx":[643,105],"./etymonline/View.tsx":[644,133],"./eudic/View.tsx":[645,134],"./google/View.tsx":[646,101],"./googledict/View.tsx":[647,135],"./guoyu/View.tsx":[636,136],"./hjdict/View.tsx":[648,137],"./jikipedia/View.tsx":[649,138],"./jukuu/View.tsx":[650,139],"./lexico/View.tsx":[651,140],"./liangan/View.tsx":[652,108],"./longman/View.tsx":[653,106],"./macmillan/View.tsx":[654,107],"./mojidict/View.tsx":[655,95],"./naver/View.tsx":[656,141],"./renren/View.tsx":[657,142],"./shanbay/View.tsx":[658,143],"./sogou/View.tsx":[659,102],"./tencent/View.tsx":[660,103],"./urban/View.tsx":[661,144],"./vocabulary/View.tsx":[662,145],"./weblio/View.tsx":[663,96],"./weblioejje/View.tsx":[664,97],"./websterlearner/View.tsx":[665,146],"./wikipedia/View.tsx":[666,147],"./youdao/View.tsx":[667,57],"./youdaotrans/View.tsx":[668,104],"./zdic/View.tsx":[669,98]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(a)},o.id=478,e.exports=o},479:function(e,t,n){var a={"./baidu/_style.shadow.scss":[670,58],"./bing/_style.shadow.scss":[671,59],"./caiyun/_style.shadow.scss":[672,60],"./cambridge/_style.shadow.scss":[673,61],"./cnki/_style.shadow.scss":[674,62],"./cobuild/_style.shadow.scss":[675,63],"./etymonline/_style.shadow.scss":[676,64],"./eudic/_style.shadow.scss":[677,65],"./google/_style.shadow.scss":[678,66],"./googledict/_style.shadow.scss":[679,67],"./guoyu/_style.shadow.scss":[680,68],"./hjdict/_style.shadow.scss":[681,69],"./jikipedia/_style.shadow.scss":[682,70],"./jukuu/_style.shadow.scss":[683,71],"./lexico/_style.shadow.scss":[684,72],"./liangan/_style.shadow.scss":[685,73],"./longman/_style.shadow.scss":[686,74],"./macmillan/_style.shadow.scss":[687,75],"./mojidict/_style.shadow.scss":[688,76],"./naver/_style.shadow.scss":[689,77],"./renren/_style.shadow.scss":[690,78],"./shanbay/_style.shadow.scss":[691,79],"./sogou/_style.shadow.scss":[692,80],"./tencent/_style.shadow.scss":[693,81],"./urban/_style.shadow.scss":[694,82],"./vocabulary/_style.shadow.scss":[695,83],"./weblio/_style.shadow.scss":[696,84],"./weblioejje/_style.shadow.scss":[697,85],"./websterlearner/_style.shadow.scss":[698,86],"./wikipedia/_style.shadow.scss":[699,87],"./youdao/_style.shadow.scss":[700,88],"./youdaotrans/_style.shadow.scss":[701,89],"./zdic/_style.shadow.scss":[702,90]};function o(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((function(){return n.t(o,7)}))}o.keys=function(){return Object.keys(a)},o.id=479,e.exports=o},491:function(e,t,n){"use strict";n.r(t),n.d(t,"DictTitle",(function(){return s})),n.d(t,"DictTitleMemo",(function(){return l}));var a=n(0),o=n.n(a),r=n(9),i=n(1);n(890);const c=["en","zhs","zht","ja","kor","fr","de","es"],s=({dictID:e,dictLangs:t})=>{const{t:a}=Object(r.e)(["options","dicts"]),s=a(`dicts:${e}.name`);return o.a.createElement("span",{className:"saladict-dict-title"},o.a.createElement("span",null,o.a.createElement("img",{className:"saladict-dict-title-icon",src:n(429)("./"+e+"/favicon.png"),alt:"logo "+s}),o.a.createElement("a",{className:"saladict-dict-title-link",href:"#",onClick:n=>{n.stopPropagation(),n.preventDefault(),function(e,t){const n=+t[0]?"salad":+t[1]||+t[2]?"沙拉":+t[3]?"サラダ":+t[4]?"샐러드":"salad";i.a.send({type:"OPEN_DICT_SRC_PAGE",payload:{id:e,text:n}})}(e,t)}},s)),o.a.createElement("span",null,t.split("").map((e,t)=>+e?o.a.createElement("span",{className:"saladict-dict-langs-char",key:c[t]},a("dict.lang."+c[t])):null)))},l=o.a.memo(s)},493:function(e,t,n){"use strict";var a=n(0),o=n.n(a),r=n(22),i=n(389),c=n(4),s=n.n(c),l=n(30),d=n(2),u=n(140),h=n(19);const p=Object(h.a)(()=>{if("undefined"==typeof document)return 0;const e=document.createElement("div"),t=e.style;t.position="fixed",t.left="0",t.overflowY="scroll",t.visibility="hidden",document.body.appendChild(e);const n=e.getBoundingClientRect().right;return e.remove(),n});var m=n(133);const f=e=>{const t=Object(a.useRef)(null),[n,r]=Object(a.useState)(()=>g(e.width,e.coord.x)),[c,l]=Object(a.useState)(()=>b(e.height,e.coord.y)),u=Object(a.useRef)(!1),h=Object(a.useRef)();Object(i.a)(()=>{e.takeCoordSnapshot?h.current={x:n,y:c}:h.current&&(r(g(e.width,h.current.x)),l(b(e.height,h.current.y)))},[e.takeCoordSnapshot]),Object(i.a)(()=>{r(g(e.width,e.coord.x)),l(b(e.height,e.coord.y))},[e.coord]),Object(i.a)(()=>{u.current||(r(t=>g(e.width,t)),l(t=>b(e.height,t)))},[e.width,e.height]),Object(a.useEffect)(()=>{e.dragStartCoord&&(u.current=!0)},[e.dragStartCoord]);const f=Object(a.useMemo)(()=>e.dragStartCoord?{x:n,y:c}:null,[e.dragStartCoord]);return o.a.createElement("div",{ref:t,className:"dictPanel-FloatBox-Container saladict-theme"},o.a.createElement("div",{className:s()("dictPanel-Root",d.b,{isDragging:e.dragStartCoord}),style:{left:n,top:c,zIndex:Object(d.f)()?999:2147483647,width:e.width,height:e.height,"--panel-width":e.width+"px","--panel-max-height":e.maxHeight+"px","--panel-font-size":e.fontSize+"px"}},o.a.createElement("div",{className:"dictPanel-Head"},e.menuBar),o.a.createElement(m.b.Provider,{value:t},o.a.createElement("div",{className:"dictPanel-Body"+(p()>0?" fancy-scrollbar":"")},e.mtaBox,e.dictList)),e.waveformBox,e.dragStartCoord&&o.a.createElement("div",{className:"dictPanel-DragMask",onMouseMove:t=>{f&&e.dragStartCoord&&(t.stopPropagation(),t.preventDefault(),r(t.clientX-e.dragStartCoord.x+f.x),l(t.clientY-e.dragStartCoord.y+f.y))},onTouchMove:t=>{f&&e.dragStartCoord&&(t.stopPropagation(),t.preventDefault(),r(t.changedTouches[0].clientX-e.dragStartCoord.x+f.x),l(t.changedTouches[0].clientY-e.dragStartCoord.y+f.y))},onMouseOut:t=>{t.relatedTarget||e.onDragEnd()},onMouseUp:e.onDragEnd,onTouchCancel:e.onDragEnd,onTouchEnd:e.onDragEnd})))};function g(e,t){const n=window.innerWidth;return t+e+25>n&&(t=n-25-e),t<10&&(t=10),t}function b(e,t){const n=window.innerHeight;return t+e+15>n&&(t=n-15-e),t<15&&(t=15),t}const y=e=>{const{show:t,panelCSS:r,withAnimation:c,darkMode:h,...p}=e,m=Object(a.useRef)(t),[g,b]=Object(a.useState)(t),y=Object(l.e)(()=>o.a.createElement("style",null,n(592).toString())).current;return Object(i.a)(()=>{b(t)},[t]),Object(i.a)(()=>{e.takeCoordSnapshot?m.current=g:m.current||b(!1)},[e.takeCoordSnapshot]),o.a.createElement(u.a,{id:"saladict-dictpanel-root",head:y,shadowRootClassName:d.b,innerRootClassName:s()({isAnimate:c,darkMode:h}),panelCSS:r,in:g,timeout:e.withAnimation?u.c:0},()=>o.a.createElement(f,{...p}))};var w=n(364),O=n(367),x=n(365),j=n(368);const E=o.a.createElement(w.a,null),v=o.a.createElement(x.a,null),C=o.a.createElement(j.a,null),k=Object(r.b)(e=>({show:e.isShowDictPanel,coord:e.dictPanelCoord,takeCoordSnapshot:e.wordEditor.isShow,width:e.config.panelWidth,height:e.panelHeight,maxHeight:e.panelMaxHeight,fontSize:e.config.fontSize,withAnimation:e.config.animation,panelCSS:e.config.panelCSS,darkMode:e.config.darkMode,menuBar:E,mtaBox:e.isShowMtaBox?o.a.createElement(O.a,null):null,dictList:v,waveformBox:e.activeProfile.waveform?C:null,dragStartCoord:e.dragStartCoord}),e=>({onDragEnd:()=>{e({type:"DRAG_START_COORD",payload:null})}}))(y);t.a=k},494:function(e,t,n){"use strict";var a=n(22),o=n(0),r=n.n(o),i=n(30),c=n(140),s=n(4),l=n.n(s),d=n(116),u=n(182),h=n(87),p=n(2);const m=e=>{const[t,n]=Object(d.a)(h.c);return Object(u.a)(n,t=>{e.onHover(t),t&&e.onActive()}),r.a.createElement("div",{role:"img",className:l()("saladbowl",p.a,{enableHover:e.enableHover}),style:{transform:`translate(${e.x}px, ${e.y}px)`},onMouseOver:e.enableHover?t:void 0,onMouseOut:t,onClick:()=>e.onActive()},r.a.createElement("svg",{viewBox:"0 0 612 612",width:"30",height:"30"},r.a.createElement("g",{className:"saladbowl-leaf"},r.a.createElement("path",{fill:"#6bbc57",d:"M 577.557 184.258 C 560.417 140.85 519.54 59.214 519.54 59.214 L 519.543 59.204 C 519.543 59.204 436.903 97.626 396.441 120.878 C 366.171 138.274 354.981 169.755 352.221 177.621 C 349.001 186.851 339.891 228.811 358.341 268.481 C 382.271 319.921 409.201 374.521 409.201 374.521 L 409.201 374.531 C 409.201 374.531 464.511 348.701 515.291 323.401 C 554.451 303.891 573.591 265.441 576.821 256.221 C 579.571 248.356 590.398 216.746 577.574 184.271 Z"}),r.a.createElement("path",{fill:"#bde9b7",d:"M 501.052 102.162 L 507.518 104.425 L 426.69 335.38 L 420.224 333.117 Z"})),r.a.createElement("g",{className:"saladbowl-orange"},r.a.createElement("circle",{fill:"#ffb30d",cx:"299.756",cy:"198.246",r:"178.613"}),r.a.createElement("circle",{fill:"#fce29c",cx:"299.756",cy:"198.246",r:"155.24"}),r.a.createElement("path",{fill:"#fcc329",d:"M 299.756 189.873 L 341.269 113.475 C 349.169 82.543 324.349 58.588 299.749 57.891 C 275.149 57.201 248.229 82.781 256.489 113.481 L 299.749 189.881 Z M 307.026 194.757 L 393.974 194.757 C 424.928 187.083 434.124 153.681 422.994 131.737 C 411.864 109.795 376.534 98.357 353.5 120.27 L 307.025 194.757 Z M 308.79 203.444 L 354.885 277.168 C 377.925 299.268 410.995 289.438 423.701 268.368 C 436.411 247.298 427.381 211.276 396.591 203.362 L 308.801 203.442 Z M 300.208 206.618 L 259.628 283.516 C 252.098 314.543 277.214 338.193 301.815 338.591 C 326.415 338.991 353.022 313.081 344.392 282.491 L 300.208 206.631 Z M 292.058 203.3 L 205.108 203.415 C 174.163 211.277 165.014 244.54 176.172 266.468 C 187.33 288.396 226.052 300.541 249.056 278.598 L 292.056 203.301 Z M 292.465 194.83 L 246.497 121.024 C 223.494 98.884 190.409 108.658 177.667 129.706 C 164.925 150.753 173.893 186.791 204.669 194.756 L 292.459 194.829 Z"})),r.a.createElement("g",{className:"saladbowl-tomato"},r.a.createElement("path",{fill:"#a63131",d:"M 71.014 337.344 C 147.291 422.594 278.234 429.866 363.482 353.589 L 87.258 44.87 C 2.01 121.15 -5.262 252.092 71.014 337.342 Z"}),r.a.createElement("path",{fill:"#bc5757",d:"M 101.447 310.115 C 162.685 378.555 267.811 384.393 336.251 323.155 L 114.49 75.31 C 46.047 136.55 40.21 241.674 101.447 310.115 Z"}),r.a.createElement("path",{fill:"#f1d4af",d:"M 186.412 237.54 L 151.659 245.444 C 139.989 251.384 139.339 265.51 145.779 273.27 C 152.219 281.028 167.379 282.39 174.599 271.538 L 186.399 237.54 Z M 242.062 269.832 L 223.366 300.175 C 219.439 312.658 229.066 323.018 239.116 323.85 C 249.168 324.685 260.756 314.815 258.061 302.065 L 242.061 269.832 Z M 160.202 178.317 L 130.357 158.837 C 117.98 154.585 107.375 163.939 106.277 173.965 C 105.183 183.99 114.747 195.833 127.563 193.471 L 160.203 178.321 Z"})),r.a.createElement("g",{className:"saladbowl-bowl"},r.a.createElement("path",{fill:"#2d97b7",d:"M 30.857 311.46 C 30.857 429.87 105.371 530.8 209.867 569.52 L 209.867 589.2 L 400.987 589.2 L 400.987 568.9 C 503.595 530.114 576.887 431.202 578.31 314.907 L 589.196 295.97 L 22.804 295.97 L 30.867 309.998 C 30.865 310.488 30.857 310.971 30.857 311.458 Z"}),r.a.createElement("path",{fill:"#fff",d:"M 540.565 321.42 C 540.585 322.587 540.595 323.755 540.595 324.927 C 540.595 405.941 497.513 476.884 433.015 516.122 L 437.178 523.317 C 504.152 482.64 548.895 409.009 548.895 324.927 C 548.895 323.755 548.885 322.587 548.865 321.419 Z M 399.885 532.68 C 388.298 537.31 376.237 541.002 363.793 543.654 L 363.793 544.45 L 364.971 551.893 C 378.481 549.049 391.551 545.018 404.081 539.935 Z"}))))},f={enter:1e3,exit:100,appear:1e3},g=Object(a.b)(e=>({show:e.isShowBowl,panelCSS:e.config.panelCSS,x:e.bowlCoord.x,y:e.bowlCoord.y,withAnimation:e.config.animation,enableHover:e.config.bowlHover}),e=>({onActive:()=>{e({type:"BOWL_ACTIVATED"})}}))(e=>{const{show:t,panelCSS:a,withAnimation:s,...l}=e,[d,u]=Object(o.useState)(!1),h=Object(i.e)(()=>r.a.createElement("style",null,n(589).toString())).current;return r.a.createElement(c.b,{id:"saladict-saladbowl-root",head:h,classNames:"saladbowl",innerRootClassName:s?"isAnimate":"",panelCSS:a,in:t||d,timeout:s?f:0},()=>r.a.createElement(m,{...l,onHover:u}))});t.a=g},495:function(e,t,n){"use strict";var a=n(22),o=n(0),r=n.n(o),i=n(4),c=n.n(i),s=n(30),l=n(140),d=n(366);const u=e=>{const{show:t,withAnimation:a,darkMode:o,...i}=e,u=Object(s.e)(()=>r.a.createElement("style",null,n(594).toString())).current;return r.a.createElement(l.a,{id:"saladict-wordeditor-root",head:u,in:t,innerRootClassName:c()({isAnimate:a,darkMode:o}),timeout:a?l.c:0},()=>r.a.createElement(d.a,{...i}))};const h=Object(a.b)(e=>({show:e.wordEditor.isShow,darkMode:e.config.darkMode,withAnimation:e.config.animation,containerWidth:window.innerWidth-e.config.panelWidth-100,ctxTrans:e.config.ctxTrans,wordEditor:e.wordEditor}),e=>({onClose:()=>{e({type:"WORD_EDITOR_STATUS",payload:{word:null}})}}))(u);t.a=h},5:function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"g",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return g}));var a=n(507),o=n.n(a);n(0),n(116),n(182),n(10),n(371),n(634);function r(){return Promise.reject(new Error("NO_RESULT"))}function i(){return Promise.reject(new Error("NETWORK_ERROR"))}async function c(e){return null==e||/zh-TW|zh-HK/i.test(e)?(await n.e(109).then(n.bind(null,1321))).chsToChz:null}function s(e,...t){if(!e)return"";let n="",a=null;for(let e=t.length-1;e>=0;e--)"string"==typeof t[e]?n=t[e]:"function"==typeof t[e]&&(a=t[e]);const o=n?e.querySelector(n):e;if(!o)return"";const r=o.textContent||"";return a?a(r):r}const l={FORBID_TAGS:["style"],FORBID_ATTR:["style"]};function d(e,{mode:t="innerHTML",selector:n,transform:a,host:r,config:i=l}={}){const c=n?e.querySelector(n):e;if(!c)return"";if(r){const e=e=>{e.setAttribute("href",g(r,e,"href")),e.setAttribute("src",g(r,e,"src"))};"A"!==c.tagName&&"IMG"!==c.tagName||e(c),c.querySelectorAll("a").forEach(e),c.querySelectorAll("img").forEach(e)}const s=o.a.sanitize(c,{...i,RETURN_DOM_FRAGMENT:!0}),d=s.firstChild?s.firstChild[t]:"";return a?a(d):d}function u(e,t,n={}){return d(t,"string"==typeof n?{selector:n,host:e,mode:"innerHTML"}:{...n,host:e,mode:"innerHTML"})}function h(e,t,n={}){return d(t,"string"==typeof n?{selector:n,host:e,mode:"outerHTML"}:{...n,host:e,mode:"outerHTML"})}function p(e,t){const n=e.querySelector(t);n&&n.remove()}function m(e,t){e.querySelectorAll(t).forEach(e=>e.remove())}function f(e){e.setAttribute("target","_blank"),e.setAttribute("rel","nofollow noopener noreferrer")}function g(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1));const a=e.startsWith("https")?"https:":"http:",o=t.getAttribute(n);return o?/^[a-zA-Z0-9]+:/.test(o)?o:o.startsWith("//")?a+o:/^.?\/+/.test(o)?e+"/"+o.replace(/^.?\/+/,""):e+"/"+o:""}},505:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return i}));var a=n(250),o=n(107),r=n(1);class i extends a.a{constructor(...e){super(...e),this.meta={},this.handleSyncAlarm=async e=>{if("webdav"!==e.name)return;try{await this.download({})}catch(e){console.error(e),Object(o.c)(i.id,"download")}const t=6e4*this.config.duration||9e5;await r.c.local.set({webdavInterval:Date.now()+t})}}static getDefaultConfig(){return{enable:!1,url:"",user:"",passwd:"",duration:15}}async onStart(){if(this.config.enable)if(this.meta=await Object(o.a)(i.id)||this.meta,await browser.alarms.clear("webdav"),browser.alarms.onAlarm.addListener(this.handleSyncAlarm),"string"!=typeof this.config.url||this.config.url.endsWith("/")||(this.config.url+="/"),this.config.url){const e=+this.config.duration||15,t=Date.now();let n=+(await r.c.local.get("webdavInterval")).webdavInterval;(!n||n<t||t+6e4*e<n)&&(n=t+1e3),await r.c.local.set({webdavInterval:n}),browser.alarms.create("webdav",{when:n,periodInMinutes:e})}else await r.c.local.set({webdavInterval:0})}async checkDir(){let e,t="";try{const e=await fetch(this.config.url,{method:"PROPFIND",headers:{Authorization:"Basic "+window.btoa(`${this.config.user}:${this.config.passwd}`),"Content-Type":'application/xml; charset="utf-8"',Depth:"1"}});if(!e.ok){if(401===e.status)throw new Error("unauthorized");throw new Error("Network error: "+e.status)}t=await e.text()}catch(e){throw new Error("network")}try{t&&(e=(new DOMParser).parseFromString(t,"text/xml"))}catch(e){throw new Error("parse")}if(!e)throw new Error("parse");const n=Array.from(e.querySelectorAll("response"));for(const e in n){const t=n[e].querySelector("href");if(t&&t.textContent&&t.textContent.endsWith("/Saladict/")){if(n[e].querySelector("resourcetype collection"))return!0;throw new Error("dir")}}return!1}async init(){const e=await this.checkDir();if(!e){if(!(await fetch(this.config.url+"Saladict",{method:"MKCOL",headers:{Authorization:"Basic "+window.btoa(`${this.config.user}:${this.config.passwd}`)}})).ok)throw new Error("mkcol")}if(e){try{await this.download({testConfig:this.config,noCache:!0})}catch(e){return}throw new Error("exist")}}async add({force:e}){if(!this.config.url)return void 0;e||await this.download({});const t=await Object(o.b)();if(!t||t.length<=0)return;const n=Date.now();try{var a=JSON.stringify({timestamp:n,words:t})}catch(e){throw new Error("parse")}try{if(!(await fetch(this.config.url+"Saladict/notebook.json",{method:"PUT",headers:{Authorization:"Basic "+window.btoa(`${this.config.user}:${this.config.passwd}`)},body:a})).ok)throw new Error("network")}catch(e){throw new Error("network")}await this.setMeta({timestamp:n,etag:""})}delete({force:e}){return this.add({force:e})}async download({testConfig:e,noCache:t}){const n=e||this.config;if(!n.url)return void 0;const a={Authorization:"Basic "+window.btoa(`${n.user}:${n.passwd}`)};e||t||null==this.meta.etag||(a["If-None-Match"]=this.meta.etag,a["If-Modified-Since"]=this.meta.etag);try{var r=await fetch(n.url+(n.url.endsWith("/")?"":"/")+"Saladict/notebook.json",{method:"GET",headers:a});if(304===r.status)return;if(!r.ok)throw new Error}catch(e){throw new Error("network")}try{var i=await r.json()}catch(e){throw new Error("parse")}if(!Array.isArray(i.words)||i.words.some(e=>!e.date))throw new Error("format");if(!i.timestamp)throw new Error("timestamp");if(e)return;const c=this.meta;(!c.timestamp||i.timestamp>=c.timestamp)&&await this.setMeta({timestamp:i.timestamp,etag:r.headers.get("ETag")||c.etag||""}),!t&&c.timestamp&&i.timestamp<=c.timestamp||await Object(o.f)(i.words)}async destroy(){browser.alarms.onAlarm.removeListener(this.handleSyncAlarm),await browser.alarms.clear("webdav")}setMeta(e){return this.meta=e,Object(o.e)(i.id,e)}async getMeta(){const e=await Object(o.a)(i.id);this.meta=e||{}}}i.id="webdav"},511:function(e,t,n){var a=n(512);e.exports="string"==typeof a?a:a.toString()},512:function(e,t,n){var a=n(221),o=n(564),r=n(513);t=a(!1);var i=o(r);t.push([e.i,"button,h1,h2,h3,h4,li,ul{margin:0;padding:0}img{display:block;max-width:95%}p{margin:.5em 0}ul li{list-style-type:none}button{background:0 0;border:none}button:hover{outline:0}a{color:#f9690e;text-decoration:none}a:hover{text-decoration:underline}select{color:#666;border:1px solid rgba(133,133,133,.28);background:0 0}.saladict-Speaker{display:inline-block;width:1.1em;height:1.1em;text-decoration:none;margin:0 5px;padding:0;line-height:1;vertical-align:text-bottom;border:none;background:no-repeat left/cover url("+i+');-moz-user-select:none;user-select:none;cursor:pointer}.saladict-Speaker:hover{outline:0}.saladict-Speaker.isActive{animation:saladict-Speaker-playing 1s steps(6) infinite}@keyframes saladict-Speaker-playing{from{background-position-x:0}70%{background-position-x:100%}100%{background-position-x:100%}}.entryBox-Wrap{padding-top:.8em}.entryBox{position:relative;border:1px solid #c76e06;border-radius:5px;margin-bottom:1em;padding:1em .5em .5em .5em}.entryBox-Title{position:absolute;top:0;left:1em;transform:translateY(-50%);max-width:90%;overflow:hidden;padding:0 5px;white-space:nowrap;text-overflow:ellipsis;font-size:1.2em;background:var(--color-background)}.dictRoot{font-size:var(--panel-font-size);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-family:"Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei",sans-serif}.dictRoot select{display:block;box-sizing:border-box;width:100%;margin:0 0 .5em 0;padding:.6em 1.4em .5em .8em;border-radius:.5em;font-size:var(--panel-font-size);font-weight:700;line-height:1.3;-moz-appearance:none;-webkit-appearance:none;appearance:none;-moz-appearance:none;border:1px solid rgba(133,133,133,.28);box-shadow:0 1px 0 1px rgba(0,0,0,.04);color:var(--color-font-grey);background-color:var(--color-background);background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%235caf9e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.65em auto,100%}.dictRoot select::-ms-expand{display:none}.dictRoot select:hover{border-color:rgba(133,133,133,.48)}.dictRoot select:focus{border-color:rgba(59,153,252,.7);outline:0}.dictRoot select option{font-weight:400}',""]),e.exports=t},513:function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMzUwIDUwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAxMS41ODUgMTYuOTc2IEwgMy43MjggMTYuOTc2IEMgMi42MjkgMTYuOTc2IDEuNzQxIDE3Ljg2NCAxLjc0MSAxOC45NjMgTCAxLjc0MSAzMS4wMzkgQyAxLjc0MSAzMi4xMzQgMi42MjkgMzMuMDI0IDMuNzI4IDMzLjAyNCBMIDExLjU4NSAzMy4wMjQgQyAxMS45MzkgMzMuMDI0IDEyLjI4NyAzMy4xMTkgMTIuNTkyIDMzLjI5OSBMIDI1LjE4IDQ1LjAyIEMgMjYuNTA0IDQ1Ljc5OCAyOC4xNzQgNDQuODQ1IDI4LjE3NCA0My4zMDggTCAyOC4xNzQgNi42OTIgQyAyOC4xNzQgNS4xNTcgMjYuNTA0IDQuMjAxIDI1LjE4IDQuOTggTCAxMi41OTMgMTYuNyBDIDEyLjI4NyAxNi44NzkgMTEuOTQgMTYuOTc1IDExLjU4NSAxNi45NzUgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCA1MCwgMCkiPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAxMS41ODUgMTYuOTc2IEwgMy43MjggMTYuOTc2IEMgMi42MjkgMTYuOTc2IDEuNzQxIDE3Ljg2NCAxLjc0MSAxOC45NjMgTCAxLjc0MSAzMS4wMzkgQyAxLjc0MSAzMi4xMzQgMi42MjkgMzMuMDI0IDMuNzI4IDMzLjAyNCBMIDExLjU4NSAzMy4wMjQgQyAxMS45MzkgMzMuMDI0IDEyLjI4NyAzMy4xMTkgMTIuNTkyIDMzLjI5OSBMIDI1LjE4IDQ1LjAyIEMgMjYuNTA0IDQ1Ljc5OCAyOC4xNzQgNDQuODQ1IDI4LjE3NCA0My4zMDggTCAyOC4xNzQgNi42OTIgQyAyOC4xNzQgNS4xNTcgMjYuNTA0IDQuMjAxIDI1LjE4IDQuOTggTCAxMi41OTMgMTYuNyBDIDEyLjI4NyAxNi44NzkgMTEuOTQgMTYuOTc1IDExLjU4NSAxNi45NzUgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzMi4xMTcgMzUuMDU1IEMgMzEuODMzIDM1LjA1NSAzMS41NDkgMzQuOTQ2IDMxLjMzMyAzNC43MjkgQyAzMC44OTYgMzQuMjk1IDMwLjg5NiAzMy41OTEgMzEuMzMzIDMzLjE1OCBDIDM2LjEwNSAyOC4zODIgMzYuMTA1IDIwLjYxMiAzMS4zMzMgMTUuODM3IEMgMzAuODk2IDE1LjQwMyAzMC44OTYgMTQuNzAyIDMxLjMzMyAxNC4yNjUgQyAzMS43NjYgMTMuODMyIDMyLjQ2OCAxMy44MzIgMzIuOTAzIDE0LjI2NSBDIDM4LjU0NiAxOS45MDYgMzguNTQ2IDI5LjA4NiAzMi45MDMgMzQuNzI4IEMgMzIuNjg5IDM0Ljk0NSAzMi40MDMgMzUuMDU1IDMyLjExNyAzNS4wNTUgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAxMDAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzIuMTE3IDM1LjA1NSBDIDMxLjgzMyAzNS4wNTUgMzEuNTQ5IDM0Ljk0NiAzMS4zMzMgMzQuNzI5IEMgMzAuODk2IDM0LjI5NSAzMC44OTYgMzMuNTkxIDMxLjMzMyAzMy4xNTggQyAzNi4xMDUgMjguMzgyIDM2LjEwNSAyMC42MTIgMzEuMzMzIDE1LjgzNyBDIDMwLjg5NiAxNS40MDMgMzAuODk2IDE0LjcwMiAzMS4zMzMgMTQuMjY1IEMgMzEuNzY2IDEzLjgzMiAzMi40NjggMTMuODMyIDMyLjkwMyAxNC4yNjUgQyAzOC41NDYgMTkuOTA2IDM4LjU0NiAyOS4wODYgMzIuOTAzIDM0LjcyOCBDIDMyLjY4OSAzNC45NDUgMzIuNDAzIDM1LjA1NSAzMi4xMTcgMzUuMDU1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAxNTAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzIuMTE3IDM1LjA1NSBDIDMxLjgzMyAzNS4wNTUgMzEuNTQ5IDM0Ljk0NiAzMS4zMzMgMzQuNzI5IEMgMzAuODk2IDM0LjI5NSAzMC44OTYgMzMuNTkxIDMxLjMzMyAzMy4xNTggQyAzNi4xMDUgMjguMzgyIDM2LjEwNSAyMC42MTIgMzEuMzMzIDE1LjgzNyBDIDMwLjg5NiAxNS40MDMgMzAuODk2IDE0LjcwMiAzMS4zMzMgMTQuMjY1IEMgMzEuNzY2IDEzLjgzMiAzMi40NjggMTMuODMyIDMyLjkwMyAxNC4yNjUgQyAzOC41NDYgMTkuOTA2IDM4LjU0NiAyOS4wODYgMzIuOTAzIDM0LjcyOCBDIDMyLjY4OSAzNC45NDUgMzIuNDAzIDM1LjA1NSAzMi4xMTcgMzUuMDU1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzOS4zMTQgNDUuMDU3IEMgMzkuMDI4IDQ1LjA1NyAzOC43NDQgNDQuOTQ4IDM4LjUyOCA0NC43MyBDIDM4LjA5MyA0NC4yOTcgMzguMDkzIDQzLjU5NSAzOC41MjggNDMuMTYgQyA0My4zNjkgMzguMzIxIDQ2LjAzNSAzMS44OSA0Ni4wMzUgMjUuMDU2IEMgNDYuMDM1IDE4LjIyIDQzLjM3IDExLjc4OCAzOC41MjggNi45NDggQyAzOC4wOTMgNi41MTQgMzguMDkzIDUuODEyIDM4LjUyOCA1LjM3OCBDIDM4Ljk2MyA0Ljk0NCAzOS42NjQgNC45NDQgNDAuMSA1LjM3OCBDIDQ1LjM2MSAxMC42MzcgNDguMjYgMTcuNjI1IDQ4LjI2IDI1LjA1NiBDIDQ4LjI2IDMyLjQ4NCA0NS4zNjEgMzkuNDczIDQwLjEgNDQuNzMxIEMgMzkuODgzIDQ0Ljk0OSAzOS41OTkgNDUuMDU4IDM5LjMxNSA0NS4wNTggWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAyMDAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzYuMDUyIDM5LjU0NyBDIDM1Ljc2NiAzOS41NDcgMzUuNDg0IDM5LjQzOSAzNS4yNjQgMzkuMjIxIEMgMzQuODMyIDM4Ljc4NiAzNC44MzIgMzguMDg1IDM1LjI2NCAzNy42NTEgQyA0Mi4xOTkgMzAuNzE4IDQyLjE5OSAxOS40MzcgMzUuMjY0IDEyLjUwNCBDIDM0LjgzMiAxMi4wNyAzNC44MzIgMTEuMzY4IDM1LjI2NCAxMC45MzMgQyAzNS43MDMgMTAuNDk5IDM2LjQwMyAxMC40OTkgMzYuODM3IDEwLjkzMyBDIDQ0LjYzNiAxOC43MzQgNDQuNjM2IDMxLjQyMyAzNi44MzcgMzkuMjIxIEMgMzYuNjE5IDM5LjQzOSAzNi4zMzYgMzkuNTQ3IDM2LjA1MiAzOS41NDcgWiIgc3R5bGU9IiIvPgogICAgPHBhdGggZmlsbD0iI2Y5NjkwZSIgZD0iTSAzOS4zMTQgNDUuMDU3IEMgMzkuMDI4IDQ1LjA1NyAzOC43NDQgNDQuOTQ4IDM4LjUyOCA0NC43MyBDIDM4LjA5MyA0NC4yOTcgMzguMDkzIDQzLjU5NSAzOC41MjggNDMuMTYgQyA0My4zNjkgMzguMzIxIDQ2LjAzNSAzMS44OSA0Ni4wMzUgMjUuMDU2IEMgNDYuMDM1IDE4LjIyIDQzLjM3IDExLjc4OCAzOC41MjggNi45NDggQyAzOC4wOTMgNi41MTQgMzguMDkzIDUuODEyIDM4LjUyOCA1LjM3OCBDIDM4Ljk2MyA0Ljk0NCAzOS42NjQgNC45NDQgNDAuMSA1LjM3OCBDIDQ1LjM2MSAxMC42MzcgNDguMjYgMTcuNjI1IDQ4LjI2IDI1LjA1NiBDIDQ4LjI2IDMyLjQ4NCA0NS4zNjEgMzkuNDczIDQwLjEgNDQuNzMxIEMgMzkuODgzIDQ0Ljk0OSAzOS41OTkgNDUuMDU4IDM5LjMxNSA0NS4wNTggWiIgc3R5bGU9IiIvPgogIDwvZz4KICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAyNTAsIDApIj4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMTEuNTg1IDE2Ljk3NiBMIDMuNzI4IDE2Ljk3NiBDIDIuNjI5IDE2Ljk3NiAxLjc0MSAxNy44NjQgMS43NDEgMTguOTYzIEwgMS43NDEgMzEuMDM5IEMgMS43NDEgMzIuMTM0IDIuNjI5IDMzLjAyNCAzLjcyOCAzMy4wMjQgTCAxMS41ODUgMzMuMDI0IEMgMTEuOTM5IDMzLjAyNCAxMi4yODcgMzMuMTE5IDEyLjU5MiAzMy4yOTkgTCAyNS4xOCA0NS4wMiBDIDI2LjUwNCA0NS43OTggMjguMTc0IDQ0Ljg0NSAyOC4xNzQgNDMuMzA4IEwgMjguMTc0IDYuNjkyIEMgMjguMTc0IDUuMTU3IDI2LjUwNCA0LjIwMSAyNS4xOCA0Ljk4IEwgMTIuNTkzIDE2LjcgQyAxMi4yODcgMTYuODc5IDExLjk0IDE2Ljk3NSAxMS41ODUgMTYuOTc1IFoiIHN0eWxlPSIiLz4KICAgIDxwYXRoIGZpbGw9IiNmOTY5MGUiIGQ9Ik0gMzkuMzE0IDQ1LjA1NyBDIDM5LjAyOCA0NS4wNTcgMzguNzQ0IDQ0Ljk0OCAzOC41MjggNDQuNzMgQyAzOC4wOTMgNDQuMjk3IDM4LjA5MyA0My41OTUgMzguNTI4IDQzLjE2IEMgNDMuMzY5IDM4LjMyMSA0Ni4wMzUgMzEuODkgNDYuMDM1IDI1LjA1NiBDIDQ2LjAzNSAxOC4yMiA0My4zNyAxMS43ODggMzguNTI4IDYuOTQ4IEMgMzguMDkzIDYuNTE0IDM4LjA5MyA1LjgxMiAzOC41MjggNS4zNzggQyAzOC45NjMgNC45NDQgMzkuNjY0IDQuOTQ0IDQwLjEgNS4zNzggQyA0NS4zNjEgMTAuNjM3IDQ4LjI2IDE3LjYyNSA0OC4yNiAyNS4wNTYgQyA0OC4yNiAzMi40ODQgNDUuMzYxIDM5LjQ3MyA0MC4xIDQ0LjczMSBDIDM5Ljg4MyA0NC45NDkgMzkuNTk5IDQ1LjA1OCAzOS4zMTUgNDUuMDU4IFoiIHN0eWxlPSIiLz4KICA8L2c+CiAgPGcgdHJhbnNmb3JtPSJtYXRyaXgoMSwgMCwgMCwgMSwgMzAwLCAwKSI+CiAgICA8cGF0aCBmaWxsPSIjZjk2OTBlIiBkPSJNIDExLjU4NSAxNi45NzYgTCAzLjcyOCAxNi45NzYgQyAyLjYyOSAxNi45NzYgMS43NDEgMTcuODY0IDEuNzQxIDE4Ljk2MyBMIDEuNzQxIDMxLjAzOSBDIDEuNzQxIDMyLjEzNCAyLjYyOSAzMy4wMjQgMy43MjggMzMuMDI0IEwgMTEuNTg1IDMzLjAyNCBDIDExLjkzOSAzMy4wMjQgMTIuMjg3IDMzLjExOSAxMi41OTIgMzMuMjk5IEwgMjUuMTggNDUuMDIgQyAyNi41MDQgNDUuNzk4IDI4LjE3NCA0NC44NDUgMjguMTc0IDQzLjMwOCBMIDI4LjE3NCA2LjY5MiBDIDI4LjE3NCA1LjE1NyAyNi41MDQgNC4yMDEgMjUuMTggNC45OCBMIDEyLjU5MyAxNi43IEMgMTIuMjg3IDE2Ljg3OSAxMS45NCAxNi45NzUgMTEuNTg1IDE2Ljk3NSBaIiBzdHlsZT0iIi8+CiAgPC9nPgo8L3N2Zz4="},531:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var a=n(0),o=n.n(a),r=n(22),i=n(20),c=n.n(i),s=n(63),l=n(494),d=n(493),u=n(495),h=n(9),p=n(46),m=n(79),f=n(729),g=n.n(f),b=n(730),y=n.n(b),w=n(731),O=n.n(w),x=n(149);const j=e=>{const{langCode:t,analytics:n,darkMode:i}=Object(s.c)(e=>{const{langCode:t,analytics:n,darkMode:a}=e.config;return{langCode:t,analytics:n,darkMode:a}},r.c),c=Object(a.useMemo)(()=>(e=>{switch(e){case"zh-CN":return g.a;case"zh-TW":return y.a;default:return O.a}})(t),[t]),l=Object(a.useMemo)(()=>({backgroundColor:i?"#000":"#f0f2f5"}),[i]);return Object(a.useEffect)(()=>{n&&e.gaPath&&Object(x.b)(e.gaPath)},[n,e.gaPath]),o.a.createElement(m.a,{locale:c},o.a.createElement("div",{style:l},e.render()))};n(770);const E=async(e,t)=>{const n=await Object(s.a)();let{darkMode:a}=n.getState().config;await v(a),n.subscribe(()=>{const{config:e}=n.getState();e.darkMode!==a&&(a=e.darkMode,v(a))}),c.a.render(o.a.createElement(h.b,null,o.a.createElement(r.a,{store:n},o.a.createElement(j,{gaPath:t,render:e}),o.a.createElement(l.a,null),o.a.createElement(d.a,null),o.a.createElement(u.a,null))),document.getElementById("root"))};async function v(e){const t=document.querySelector("#root");await new Promise(n=>{const a="./assets/"+`antd${e?".dark":""}.min.css`;let o=document.head.querySelector("link#saladict-antd-theme");if(o&&o.getAttribute("href")===a)return void n();t.classList.toggle("saladict-theme-dark",e),t.classList.toggle("saladict-theme-bright",!e),t.classList.toggle("saladict-theme-loading",!0),o?o.setAttribute("href",a):(o=document.createElement("link"),o.setAttribute("id","saladict-antd-theme"),o.setAttribute("rel","stylesheet"),o.setAttribute("href",a),document.head.insertBefore(o,document.head.firstChild));let r=!1;o.onreadystatechange=function(){"complete"!==this.readyState&&"loaded"!==this.readyState||(!1===r&&n(),r=!0)},o.onload=function(){!1===r&&n(),r=!0};const i=document.createElement("img");i.onerror=function(){!1===r&&n(),r=!0},i.src=a}),await Object(p.d)(500),t.classList.toggle("saladict-theme-loaded",!0),t.classList.toggle("saladict-theme-loading",!1)}},535:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return l}));var a=n(131),o=n.n(a),r=n(80),i=n(250),c=n(107),s=n(1);class l extends i.a{constructor(...e){super(...e),this.noteFileds=void 0,this.handleMessage=e=>{switch(e.type){case"ANKI_CONNECT_FIND_WORD":return this.findNote(e.payload).catch(()=>"");case"ANKI_CONNECT_UPDATE_WORD":return this.updateWord(e.payload.cardId,e.payload.word).catch(e=>Promise.reject(e))}},this._div=void 0}static getDefaultConfig(){return{enable:!1,host:"127.0.0.1",port:"8765",key:null,deckName:"Saladict",noteType:"Saladict Word",tags:"",escapeContext:!0,escapeTrans:!0,escapeNote:!0,syncServer:!1}}async init(){if(!await this.isServerUp())throw new Error("server");const e=await this.request("deckNames");if(!(null==e?void 0:e.includes(this.config.deckName)))throw new Error("deck");const t=await this.request("modelNames");if(!(null==t?void 0:t.includes(this.config.noteType)))throw new Error("notetype")}onStart(){s.a.addListener(this.handleMessage)}async destroy(){s.a.removeListener(this.handleMessage)}async findNote(e){this.noteFileds||(this.noteFileds=await this.getNotefields());try{return(await this.request("findNotes",{query:`deck:${this.config.deckName} ${this.noteFileds[0]}:${e}`}))[0]}catch(e){!1}}async add({words:e,force:t}){if(!await this.isServerUp())throw new Error("server");if(t&&(e=await Object(c.b)()),e&&!(e.length<=0)&&(await Promise.all(e.map(async e=>{if(!await this.findNote(e.date))try{await this.addWord(e)}catch(e){throw new Error("add")}})),this.config.syncServer))try{await this.request("sync")}catch(e){!1}}async addWord(e){return this.request("addNote",{note:{deckName:this.config.deckName,modelName:this.config.noteType,options:{allowDuplicate:!1,duplicateScope:"deck"},tags:this.extractTags(),fields:await this.wordToFields(e)}})}async updateWord(e,t){return this.request("updateNoteFields",{note:{id:e,fields:await this.wordToFields(t)}})}async addDeck(){return this.request("createDeck",{deck:this.config.deckName})}async addNoteType(){this.noteFileds=["Date","Text","Translation","Context","ContextCloze","Note","Title","Url","Favicon","Audio"],await this.request("createModel",{modelName:this.config.noteType,inOrderFields:this.noteFileds,css:".card {\n font-family: arial;\n font-size: 20px;\n text-align: center;\n color: #333;\n background-color: white;\n}\n\na {\n color: #5caf9e;\n}\n\ninput {\n border: 1px solid #eee;\n}\n\nsection {\n margin: 1em 0;\n}\n\n.trans {\n border: 1px solid #eee;\n padding: 0.5em;\n}\n\n.trans_title {\n display: block;\n font-size: 0.9em;\n font-weight: bold;\n}\n\n.trans_content {\n margin-bottom: 0.5em;\n}\n\n.cloze {\n font-weight: bold;\n color: #f9690e;\n}\n\n.tsource {\n position: relative;\n font-size: .8em;\n}\n\n.tsource img {\n height: .7em;\n}\n\n.tsource a {\n text-decoration: none;\n}\n\n.typeGood {\n color: #fff;\n background: #1EBC61;\n}\n\n.typeBad {\n color: #fff;\n background: #F75C4C;\n}\n\n.typeMissed {\n color: #fff;\n background: #7C8A99;\n}\n",cardTemplates:[{Name:"Saladict Cloze",Front:d(!0,this.noteFileds),Back:d(!1,this.noteFileds)}]}),this.noteFileds=await this.getNotefields(),await this.request("updateModelTemplates",{model:{name:this.config.noteType,templates:{"Saladict Cloze":{Front:d(!0,this.noteFileds),Back:d(!1,this.noteFileds)}}}})}async request(e,t){const{data:n}=await o()({method:"post",url:`http://${this.config.host}:${this.config.port}`,data:{key:this.config.key||null,version:6,action:e,params:t||{}}});if(!n||!Object.prototype.hasOwnProperty.call(n,"result"))throw new Error("Deprecated Anki Connect version");if(n.error)throw new Error(n.error);return n.result}async wordToFields(e){return this.noteFileds||(this.noteFileds=await this.getNotefields()),{[this.noteFileds[0]]:""+e.date,[this.noteFileds[1]]:e.text||"",[this.noteFileds[2]]:this.parseTrans(e.trans,this.config.escapeTrans),[this.noteFileds[3]]:this.multiline(e.context,this.config.escapeContext),[this.noteFileds[4]]:this.multiline(e.context.split(e.text).join(`{{c1::${e.text}}}`),this.config.escapeContext)||`{{c1::${e.text}}}`,[this.noteFileds[5]]:this.multiline(e.note,this.config.escapeNote),[this.noteFileds[6]]:e.title||"",[this.noteFileds[7]]:e.url||"",[this.noteFileds[8]]:e.favicon||"",[this.noteFileds[9]]:""}}async getNotefields(){const e=await this.request("modelFieldNames",{modelName:this.config.noteType});return(null==e?void 0:e.includes("Date."))?["Date.","Text.","Translation.","Context.","ContextCloze.","Note.","Title.","Url.","Favicon.","Audio."]:(null==e?void 0:e.includes("日期"))?["日期","文字","Translation","Context","ContextCloze","笔记","Title","Url","Favicon","Audio"]:["Date","Text","Translation","Context","ContextCloze","Note","Title","Url","Favicon","Audio"]}multiline(e,t){return(e=e.trim())?(t&&(e=this.escapeHTML(e)),e.trim().replace(/\n/g,"<br/>")):""}parseTrans(e,t){if(!(e=e.trim()))return"";const n=Object(r.b)(e),a=Object.keys(n);if(a.length<=0)return this.multiline(e,t);const o=a.map(e=>`<span class="trans_title">${e}</span><div class="trans_content">${n[e]}</div>`).join("");return e.split(/\[:: \w+ ::\](?:[\s\S]+?)(?:-{15})/).map(e=>this.multiline(e,t)).join(`<div class="trans">${o}</div>`)}escapeHTML(e){return this._div||(this._div=document.createElement("div"),this._div.appendChild(document.createTextNode(""))),this._div.firstChild.nodeValue=e,this._div.innerHTML}extractTags(){return this.config.tags.split(/,|,/).map(e=>e.trim()).filter(Boolean)}async isServerUp(){try{return null!=await this.request("version")}catch(e){return!1}}}function d(e,t){return`{{#${t[4]}}}\n<section>{{cloze:${t[4]}}}</section>\n<section>{{{{type:cloze:${t[4]}}}</section>\n{{#${t[2]}}}\n<section>{{${t[2]}}}</section>\n{{/${t[2]}}}\n{{/${t[4]}}}\n\n{{^${t[4]}}}\n<h1>{{${t[1]}}}</h1>\n{{#${t[2]}}}\n<section>{{${t[2]}}}</section>\n{{/${t[2]}}}\n{{/${t[4]}}}\n\n{{#${t[5]}}}\n<section>{{${(e?"hint:":"")+t[5]}}}</section>\n{{/${t[5]}}}\n\n{{#${t[6]}}}\n<section class="tsource">\n<hr />\n{{#${t[8]}}}<img src="{{${t[8]}}}" />{{/${t[8]}}}\n<a href="{{${t[7]}}}">{{${t[6]}}}</a>\n</section>\n{{/${t[6]}}}\n`}l.id="ankiconnect"},536:function(e,t,n){"use strict";n.r(t),n.d(t,"Service",(function(){return l}));var a=n(250),o=n(107),r=n(1),i=n(46),c=n(2),s=n(251);class l extends a.a{static getDefaultConfig(){return{enable:!1}}static openLogin(){return Object(r.b)("https://www.shanbay.com/web/account/login")}async init(){if(!await this.isLogin())throw new Error("login")}async add(e){await this.addInternal(e)}async addInternal({words:e,force:t}){if(!this.config.enable)return 0;if(!await this.isLogin())return this.notifyLogin(),0;if(t&&(e=await Object(o.b)()),!e||e.length<=0)return 0;let n=0;for(let t=0;t<e.length;t++){try{await this.addWord(e[t].text)}catch(a){if("word"!==a.message)throw a;n+=1,Object(o.c)(l.id,"word",`「${e[t].text}」`)}(t+1)%50==0?await Object(i.d)(9e5):await Object(i.d)(500)}return n}async addWord(e){let t,n;try{const n="https://apiv3.shanbay.com/abc/words/senses?vocabulary_content="+encodeURIComponent(e);t=await fetch(n).then(e=>e.json())}catch(e){throw new Error("network")}if(!t||!t.id)throw new Error("word");try{n=await fetch("https://apiv3.shanbay.com/wordscollection/words",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vocab_id:t.id,business_id:6})}).then(e=>e.json())}catch(e){throw new Error("network")}if(!n||!n.created_at)throw new Error("word")}async isLogin(){return Boolean(await browser.cookies.get({url:"http://www.shanbay.com",name:"auth_token"}))}async notifyLogin(){const{i18n:e}=await s.a.getInstance();await e.loadNamespaces("sync"),browser.notifications.onClicked.addListener(d),browser.notifications.onClosed.removeListener(u),browser.notifications.onButtonClicked&&browser.notifications.onButtonClicked.addListener(d);const t={type:"basic",iconUrl:browser.runtime.getURL("assets/icon-128.png"),title:"Saladict "+e.t("sync:shanbay.title"),message:e.t("sync:shanbay.error.login"),eventTime:Date.now()+1e4,priority:2};c.c||(t.buttons=[{title:e.t("sync:shanbay.open")}]),browser.notifications.create("shanbay-login",t)}}function d(e){"shanbay-login"===e&&(l.openLogin(),u(e))}function u(e){"shanbay-login"===e&&(browser.notifications.onClicked.removeListener(d),browser.notifications.onClosed.removeListener(u),browser.notifications.onButtonClicked&&browser.notifications.onButtonClicked.removeListener(d))}l.id="shanbay"},537:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),o=n.n(a),r=n(1320);n(1187);const i=e=>{const{suffix:t,...n}=e;return o.a.createElement("span",{className:"input-number-group-wrapper"},o.a.createElement("span",{className:"input-number-group"},o.a.createElement(r.a,{...n}),t&&o.a.createElement("span",{className:"input-number-group-addon"},t)))}},542:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return i})),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return s}));var a=n(19),o=n(819),r=n(17);const i=Object(a.a)(()=>new o.Baidu({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_APPID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_KEY?{appid:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_APPID,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.BAIDU_KEY}:void 0})),c=(e,t,n)=>`https://fanyi.baidu.com/#auto/${"default"===n.dicts.all.baidu.options.tl?"zh-CN"===t.langCode?"zh":"zh-TW"===t.langCode?"cht":"en":n.dicts.all.baidu.options.tl}/${e}`,s=async(e,t,n,a)=>{const o=i(),{sl:c,tl:s,text:l}=await Object(r.a)(o,e,n.dicts.all.baidu,t,a),d=t.dictAuth.baidu.appid,u=t.dictAuth.baidu.key,h=d&&u?{appid:d,key:u}:void 0;try{const e=await o.translate(l,c,s,h);return Object(r.c)({result:{id:"baidu",slInitial:n.dicts.all.baidu.options.slInitial,sl:e.from,tl:e.to,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"baidu",slInitial:"hide",sl:c,tl:s,searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},576:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0);const o=n.n(a).a.createContext(null)},585:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(147),o=n.n(a),r=n(0),i=n.n(r),c=n(389),s=n(240),l=n(191),d=n(9),u=n(97),h=n(205),p=n(220),m=n(187);const f=e=>{const{visible:t,title:n,zIndex:a,onClose:f,...g}=e,{t:b}=Object(d.e)("options"),y=Object(s.a)(m.a,"idle"),w=Object(p.b)(),O=Object(r.useRef)(null);return Object(c.a)(()=>{t&&"idle"===y&&f()},[y]),i.a.createElement(l.a,{visible:t,title:n,zIndex:a,width:600,destroyOnClose:!0,onOk:()=>{O.current&&O.current.submit()},onCancel:()=>{w.value?l.a.confirm({title:b("unsave_confirm"),icon:i.a.createElement(o.a,null),okType:"danger",onOk:()=>{Object(p.a)(!1),f()}}):f()}},i.a.createElement(u.a,{...h.b,hideFooter:!0,...g,ref:O}))}},589:function(e,t,n){var a=n(590);e.exports="string"==typeof a?a:a.toString()},590:function(e,t,n){(t=n(221)(!1)).push([e.i,".saladbowl{position:fixed;z-index:2147483647;top:0;left:0;width:30px;height:30px;-moz-user-select:none;user-select:none;cursor:pointer}.isAnimate .saladbowl{will-change:transform;transition:transform .3s ease-out}.isAnimate .saladbowl.enableHover:hover .saladbowl-leaf{animation:saladbowl-leaf-shake .7s infinite linear}.isAnimate .saladbowl.enableHover:hover .saladbowl-orange{transform-origin:301.8px 187.4px;animation:saladbowl-orange-spin .7s infinite linear}.isAnimate .saladbowl.enableHover:hover .saladbowl-tomato{transform-origin:297.8px 126.4px;animation:saladbowl-tomato-shake .7s infinite linear}.saladbowl,.saladbowl>svg{background-color:transparent!important}.isAnimate .saladbowl-enter-active>svg{animation:saladbowl-jelly 1s linear}.isAnimate .saladbowl-exit{opacity:1}.isAnimate .saladbowl-exit-active{opacity:0;transition:opacity .1s}.saladbowl-exit-done{display:none}@keyframes saladbowl-jelly{0%{transform:matrix3d(.5,0,0,0,0,.5,0,0,0,0,1,0,0,0,0,1)}3.40%{transform:matrix3d(.658,0,0,0,0,.703,0,0,0,0,1,0,0,0,0,1)}4.70%{transform:matrix3d(.725,0,0,0,0,.8,0,0,0,0,1,0,0,0,0,1)}6.81%{transform:matrix3d(.83,0,0,0,0,.946,0,0,0,0,1,0,0,0,0,1)}9.41%{transform:matrix3d(.942,0,0,0,0,1.084,0,0,0,0,1,0,0,0,0,1)}10.21%{transform:matrix3d(.971,0,0,0,0,1.113,0,0,0,0,1,0,0,0,0,1)}13.61%{transform:matrix3d(1.062,0,0,0,0,1.166,0,0,0,0,1,0,0,0,0,1)}14.11%{transform:matrix3d(1.07,0,0,0,0,1.165,0,0,0,0,1,0,0,0,0,1)}17.52%{transform:matrix3d(1.104,0,0,0,0,1.12,0,0,0,0,1,0,0,0,0,1)}18.72%{transform:matrix3d(1.106,0,0,0,0,1.094,0,0,0,0,1,0,0,0,0,1)}21.32%{transform:matrix3d(1.098,0,0,0,0,1.035,0,0,0,0,1,0,0,0,0,1)}24.32%{transform:matrix3d(1.075,0,0,0,0,.98,0,0,0,0,1,0,0,0,0,1)}25.23%{transform:matrix3d(1.067,0,0,0,0,.969,0,0,0,0,1,0,0,0,0,1)}29.03%{transform:matrix3d(1.031,0,0,0,0,.948,0,0,0,0,1,0,0,0,0,1)}29.93%{transform:matrix3d(1.024,0,0,0,0,.949,0,0,0,0,1,0,0,0,0,1)}35.54%{transform:matrix3d(.99,0,0,0,0,.981,0,0,0,0,1,0,0,0,0,1)}36.74%{transform:matrix3d(.986,0,0,0,0,.989,0,0,0,0,1,0,0,0,0,1)}41.04%{transform:matrix3d(.98,0,0,0,0,1.011,0,0,0,0,1,0,0,0,0,1)}44.44%{transform:matrix3d(.983,0,0,0,0,1.016,0,0,0,0,1,0,0,0,0,1)}52.15%{transform:matrix3d(.996,0,0,0,0,1.003,0,0,0,0,1,0,0,0,0,1)}59.86%{transform:matrix3d(1.003,0,0,0,0,.995,0,0,0,0,1,0,0,0,0,1)}63.26%{transform:matrix3d(1.004,0,0,0,0,.996,0,0,0,0,1,0,0,0,0,1)}75.28%{transform:matrix3d(1.001,0,0,0,0,1.002,0,0,0,0,1,0,0,0,0,1)}85.49%{transform:matrix3d(.999,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}90.69%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}100%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}}@keyframes saladbowl-leaf-shake{0%{transform:translate(2px,1px) rotate(0)}10%{transform:translate(-1px,-2px) rotate(1deg)}20%{transform:translate(-2px,0) rotate(1deg)}30%{transform:translate(0,2px) rotate(0)}40%{transform:translate(1px,-1px) rotate(1deg)}50%{transform:translate(-1px,2px) rotate(1deg)}60%{transform:translate(-2px,1px) rotate(0)}70%{transform:translate(2px,1px) rotate(1deg)}80%{transform:translate(-1px,-1px) rotate(1deg)}90%{transform:translate(2px,2px) rotate(0)}100%{transform:translate(1px,-2px) rotate(1deg)}}@keyframes saladbowl-orange-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes saladbowl-tomato-shake{0%{transform:rotate(10deg)}30%{transform:rotate(0)}60%{transform:rotate(10deg)}90%{transform:rotate(0)}100%{transform:rotate(5deg)}}",""]),e.exports=t},592:function(e,t,n){var a=n(593);e.exports="string"==typeof a?a:a.toString()},593:function(e,t,n){(t=n(221)(!1)).push([e.i,'.shadowPortal-appear,.shadowPortal-enter{opacity:0}.shadowPortal-appear-active,.shadowPortal-enter-active{opacity:1;transition:opacity .4s}.shadowPortal-exit{opacity:1}.shadowPortal-exit-active{opacity:0;transition:opacity .1s}.saladict-theme{background-color:#fff;color:#333;--color-brand:#5caf9e;--color-background:#fff;--color-rgb-background:255,255,255;--color-font:#333;--color-font-grey:#666;--color-divider:#ddd}.darkMode .saladict-theme{background-color:#222;color:#ddd;--color-brand:#1e947e;--color-background:#222;--color-rgb-background:34,34,34;--color-font:#ddd;--color-font-grey:#aaa;--color-divider:#4d4748}.dictPanel-FloatBox-Container{position:relative}.dictPanel-Root{display:flex;flex-direction:column;box-sizing:border-box;position:fixed;z-index:2147483647;top:0;left:0;overflow:hidden;text-align:initial;border-radius:6px;background-color:inherit;box-shadow:rgba(0,0,0,.8) 0 4px 23px -6px}.dictPanel-Head{flex-shrink:0}.dictPanel-Body{flex:1;overflow-x:hidden;overflow-y:scroll;-webkit-overflow-scrolling:touch}.fancy-scrollbar{overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;scrollbar-width:auto}.fancy-scrollbar::-webkit-scrollbar{height:8px;width:8px}.fancy-scrollbar::-webkit-scrollbar-track{background-color:transparent}.fancy-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(138,138,138,.25);border-radius:4px}.fancy-scrollbar::-webkit-scrollbar-thumb:hover{background-color:rgba(138,138,138,.35)}.fancy-scrollbar::-webkit-scrollbar-thumb:active{background-color:rgba(138,138,138,.6)}.fancy-scrollbar::-webkit-scrollbar-thumb:vertical{min-height:50px}.fancy-scrollbar::-webkit-scrollbar-thumb:horizontal{min-width:50px}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:0 0;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn-dir:focus,.menuBar-Btn-dir:hover,.menuBar-Btn:focus,.menuBar-Btn:hover{outline:0;background:rgba(0,0,0,.05)}.menuBar-Btn-dir:disabled svg,.menuBar-Btn:disabled svg{fill:#9accc1}.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn-dir:disabled:hover,.menuBar-Btn:disabled:hover{cursor:unset;background:0 0}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * .7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:focus,.floatBox-Item:hover{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em!important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:400}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;color:var(--color-font);background:0 0;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:focus,.floatBox-Btn:hover{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(19px,0)}}.menuBar-SuggestsEntry{margin-right:1.5em;color:#f9690e}.menuBar-SuggestsExplain{color:var(--color-font)}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:0 0;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn-dir:focus,.menuBar-Btn-dir:hover,.menuBar-Btn:focus,.menuBar-Btn:hover{outline:0;background:rgba(0,0,0,.05)}.menuBar-Btn-dir:disabled svg,.menuBar-Btn:disabled svg{fill:#9accc1}.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn-dir:disabled:hover,.menuBar-Btn:disabled:hover{cursor:unset;background:0 0}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-SearchBox_Wrap{flex:2;position:relative}.menuBar-SearchBox_Wrap.isExpand{flex:7}.isAnimate .menuBar-SearchBox_Wrap{transition:flex .6s}.menuBar-SearchBox{width:100%;box-sizing:border-box;padding:0 5px;border:0 none;outline:0 none;color:#fff;background-color:rgba(225,225,225,.1)}.menuBar-SearchBox_Suggests{position:absolute;left:0;top:30px;z-index:1000}.isAnimate .csst-menuBar-SearchBox_Suggests-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-enter-active,.isAnimate .csst-menuBar-SearchBox_Suggests-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-exit-active{opacity:0;transition:opacity .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * .7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:focus,.floatBox-Item:hover{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em!important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:400}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;color:var(--color-font);background:0 0;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:focus,.floatBox-Btn:hover{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(19px,0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:0 0;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn-dir:focus,.menuBar-Btn-dir:hover,.menuBar-Btn:focus,.menuBar-Btn:hover{outline:0;background:rgba(0,0,0,.05)}.menuBar-Btn-dir:disabled svg,.menuBar-Btn:disabled svg{fill:#9accc1}.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn-dir:disabled:hover,.menuBar-Btn:disabled:hover{cursor:unset;background:0 0}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-ProfileItem{position:relative;padding-left:10px;color:var(--color-font)}.menuBar-ProfileItem.isActive::before{content:"";position:absolute;top:50%;transform:translateY(-55%);left:-5px;width:0;height:0;border-left:10px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}.menuBar{display:flex;align-items:center;position:relative;height:30px;padding:0 3px;font-size:14px;background-color:var(--color-brand)}.menuBar-DragArea{flex:3;align-self:stretch;-moz-user-select:none;user-select:none;touch-action:none;cursor:move}.mtaBox-TextArea-Wrap{max-height:var(--panel-max-height);position:relative;overflow:hidden;height:0}.isAnimate .mtaBox-TextArea-Wrap{transition:height .4s}.isAnimate .mtaBox-TextArea-Wrap.isTyping{transition:height 0s}.mtaBox-TextArea{display:block;width:100%;max-height:var(--panel-max-height);box-sizing:border-box;padding:5px 5px 10px;border:none;color:var(--color-font);font-size:var(--panel-font-size);background:0 0}.mtaBox-TextArea-Wrap-appear .mtaBox-TextArea,.mtaBox-TextArea-Wrap-appear-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit-active .mtaBox-TextArea{position:absolute;bottom:0}.mtaBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;padding:0;border:none;border-top:1px solid var(--color-divider);border-bottom:1px dashed var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.mtaBox-DrawerBtn:focus{outline:0;border:1px solid var(--color-font)!important}.mtaBox-DrawerBtn_Arrow{fill:var(--color-font)}.mtaBox-DrawerBtn_Arrow.isExpand{transform:rotate(180deg)}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * .7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:focus,.floatBox-Item:hover{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em!important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:400}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:0;color:var(--color-font);background:0 0;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:focus,.floatBox-Btn:hover{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(19px,0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.dictItemHead{display:flex;box-sizing:border-box;align-items:flex-start;position:sticky;top:0;z-index:100;height:20px;padding-right:2px;border-top:1px var(--color-divider) dashed;background:var(--color-background)}.dictItemHead-Logo{width:20px;height:20px;margin-top:-1px;-moz-user-select:none;user-select:none}.dictItemHead-Title{margin:0;padding:0 3px;line-height:20px;font-size:12px;font-weight:400}.dictItemHead-Title a{color:var(--color-font);text-decoration:none}.dictItemHead-Menus_Btn{width:18px;height:18px;margin:1px 0 0;padding:0;font-size:0;border:none;border-radius:3px;outline:0;background-color:transparent;opacity:.7;transition:background-color .4s;cursor:pointer}.dictItemHead-Menus_Btn svg{fill:var(--color-font)}.dictItemHead-Menus_Btn:active,.dictItemHead-Menus_Btn:focus,.dictItemHead-Menus_Btn:hover{background-color:var(--color-divider)}.darkMode .dictItemHead-Menus_Btn:active,.darkMode .dictItemHead-Menus_Btn:focus,.darkMode .dictItemHead-Menus_Btn:hover{background-color:#2d3338}.dictItemHead-EmptyArea{flex:1;align-self:stretch}.dictItemHead-FoldArrowBtn{width:19px;height:19px;overflow:hidden;background:0 0;border:none;padding:0;cursor:pointer;-moz-user-select:none;user-select:none}.dictItemHead-FoldArrowBtn:hover{outline:0}.dictItemHead-FoldArrow{box-sizing:border-box;fill:var(--color-font);width:18px;height:18px;padding:3px;transform-origin:center}.isAnimate .dictItemHead-FoldArrow{transition:transform .4s}.isUnfold .dictItemHead-FoldArrow{transform:rotate(-90deg)}.dictItemHead-Loader{display:flex;align-items:center;width:54px;height:20px}.dictItemHead-Loader>div{width:8px;height:8px;margin:2px;background:#f9690e;border-radius:100%}.isAnimate .dictItemHead-Loader>div{animation:dictItemHead-Loader 1.5s infinite ease-in-out}.isAnimate .dictItemHead-Loader>div:nth-child(5){animation-delay:0s}.isAnimate .dictItemHead-Loader>div:nth-child(4){animation-delay:-.1s}.isAnimate .dictItemHead-Loader>div:nth-child(3){animation-delay:-.2s}.isAnimate .dictItemHead-Loader>div:nth-child(2){animation-delay:-.3s}.isAnimate .dictItemHead-Loader>div:nth-child(1){animation-delay:-.4s}@keyframes dictItemHead-Loader{0%,100%,30%,70%{transform:scale(0)}50%{transform:scale(1)}}.dictItem{position:relative;background:var(--color-background)}.dictItem-Body{overflow:hidden;position:relative;padding:0 10px;font-size:13px;line-height:1.6;color:var(--color-font)}.isAnimate .dictItem-Body{transition:height .4s,opacity .4s}.dictItem-BodyMesure{overflow:hidden;opacity:0;position:relative}.dictItem-BodyMesure>:first-child{margin-top:10px!important}.dictItem-BodyMesure>:last-child{margin-bottom:10px!important}.isAnimate .dictItem-BodyMesure{transition:opacity .4s}.isUnfold .dictItem-BodyMesure{opacity:1}.dictItem-Loader{align-self:center;width:120px;height:10px;-moz-user-select:none;user-select:none}.dictItem-Loader_Ball{width:10px;height:10px;fill:orange}.dictItem-Loader_Ball:nth-child(2){transform:translateX(15px)}.dictItem-Loader_Ball:nth-child(3){transform:translateX(30px)}.dictItem-Loader_Ball:nth-child(4){transform:translateX(45px)}.dictItem-Loader_Ball:nth-child(5){transform:translateX(60px)}.isAnimate .dictItem-Loader_Ball{animation:dictItem-Loader-shift 2s linear infinite}.isAnimate .dictItem-Loader_Ball:nth-child(2){animation-delay:-.4s}.isAnimate .dictItem-Loader_Ball:nth-child(3){animation-delay:-.8s}.isAnimate .dictItem-Loader_Ball:nth-child(4){animation-delay:-1.2s}.isAnimate .dictItem-Loader_Ball:nth-child(5){animation-delay:-1.6s}.dictItem-FoldMask{position:absolute;left:0;bottom:0;width:100%;height:50px;padding:0;border:none;background:linear-gradient(transparent 40%,rgba(var(--color-rgb-background),.5) 60%,var(--color-background) 100%);opacity:.6;cursor:pointer;-moz-user-select:none;user-select:none}.dictItem-FoldMask:hover{outline:0;opacity:1}.isAnimate .dictItem-FoldMask{transition:opacity .4s}.dictItem-FoldMaskArrow{position:absolute;z-index:10;bottom:0;left:0;right:0;margin:0 auto;width:15px;height:15px;fill:var(--color-font)}.isAnimate .noHeightTransition .dictItem-Body{transition:height 0s}@keyframes dictItem-Loader-shift{0%{transform:translateX(0);opacity:0}10%{transform:translateX(30px);opacity:1}90%{transform:translateX(80px);opacity:1}100%{transform:translateX(110px);opacity:0}}.dictList>.dictItem:first-child>.dictItemHead{border-top-color:transparent}.waveformBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;border:none;border-top:1px solid var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.waveformBox-DrawerBtn:focus{outline:0;border:1px solid var(--color-font)!important}.waveformBox-FrameWrap{overflow:hidden;height:0;font-size:0;transition:height .4s}.waveformBox-DrawerBtn_Arrow{fill:var(--color-font)}.waveformBox.isExpand .waveformBox-FrameWrap{height:165px}.waveformBox.isExpand .waveformBox-DrawerBtn{border-bottom:1px solid var(--color-divider)}.waveformBox.isExpand .waveformBox-DrawerBtn_Arrow{transform:rotate(180deg)}.waveformBox-Frame{width:100%;height:165px;border:none;transition:opacity .4s}.waveformBox-Frame-enter{opacity:0}.waveformBox-Frame-enter-active,.waveformBox-Frame-exit{opacity:1}.waveformBox-Frame-exit-active{opacity:0}.dictPanel-DragMask{position:fixed;z-index:2147483647;top:0;left:0;bottom:0;right:0;margin:auto;background:rgba(225,225,225,.01);cursor:grabbing;cursor:-webkit-grabbing}.isAnimate .dictPanel-Root{transition:width .4s,height .4s,opacity .4s,top .4s cubic-bezier(.55,.82,.63,.95),left .4s cubic-bezier(.4,.9,.71,1.02)}.isAnimate .dictPanel-Root.isDragging{transition:width .4s,height .4s,opacity .4s}',""]),e.exports=t},594:function(e,t,n){var a=n(595);e.exports="string"==typeof a?a:a.toString()},595:function(e,t,n){(t=n(221)(!1)).push([e.i,'.saladict-theme{background-color:#fff;color:#333;--color-brand:#5caf9e;--color-background:#fff;--color-rgb-background:255,255,255;--color-font:#333;--color-font-grey:#666;--color-divider:#ddd}.darkMode .saladict-theme{background-color:#222;color:#ddd;--color-brand:#1e947e;--color-background:#222;--color-rgb-background:34,34,34;--color-font:#ddd;--color-font-grey:#aaa;--color-divider:#4d4748}.fancy-scrollbar{overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;scrollbar-width:auto}.fancy-scrollbar::-webkit-scrollbar{height:8px;width:8px}.fancy-scrollbar::-webkit-scrollbar-track{background-color:transparent}.fancy-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(138,138,138,.25);border-radius:4px}.fancy-scrollbar::-webkit-scrollbar-thumb:hover{background-color:rgba(138,138,138,.35)}.fancy-scrollbar::-webkit-scrollbar-thumb:active{background-color:rgba(138,138,138,.6)}.fancy-scrollbar::-webkit-scrollbar-thumb:vertical{min-height:50px}.fancy-scrollbar::-webkit-scrollbar-thumb:horizontal{min-width:50px}.wordEditorPanel-Background{position:fixed;z-index:2147483645;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;text-align:initial;background:rgba(0,0,0,.4)}.wordEditorPanel-Container{display:flex;align-items:center;height:100%;min-width:440px;margin-left:auto}.wordEditorPanel{display:flex;flex-direction:column;width:80%;max-width:800px;min-width:400px;max-height:90vh;border-radius:6px;color:var(--color-font);background-color:var(--color-background);box-shadow:0 5px 15px rgba(0,0,0,.5);font-size:13px;font-family:"Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei",sans-serif}.wordEditorPanel-Header{display:flex;border-bottom:1px solid #ccc}.wordEditorPanel-Title{margin:0;font-size:18px;padding:15px}.wordEditorPanel-BtnClose{text-decoration:none;margin-left:auto;padding:15px;font-size:21px;font-weight:700;line-height:1;border:none;background:0 0;color:var(--color-font);text-shadow:0 1px 0 var(--color-background);opacity:.5;cursor:pointer}.wordEditorPanel-BtnClose:hover{outline:0}.wordEditorPanel-Main{flex:1;overflow-x:hidden;overflow-y:scroll;overscroll-behavior:contain}.wordEditorPanel-Footer{padding:15px;text-align:right;border-top:1px solid #ccc}.darkMode .wordEditorPanel-Btn,.darkMode .wordEditorPanel-Btn_normal,.wordEditorPanel-Btn,.wordEditorPanel-Btn_normal,.wordEditorPanel-Btn_primary{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857;border-radius:4px;-moz-user-select:none;user-select:none}.wordEditorPanel-Btn,.wordEditorPanel-Btn_normal{margin-right:10px;color:#333;background-color:#fff;border-color:#ccc}.wordEditorPanel-Btn:focus,.wordEditorPanel-Btn_normal:focus{background-color:#e6e6e6;border-color:#8c8c8c}.wordEditorPanel-Btn:hover,.wordEditorPanel-Btn_normal:hover{outline:0;background-color:#e6e6e6;border-color:#adadad}.wordEditorPanel-Btn:active,.wordEditorPanel-Btn_normal:active{outline:0;background-color:#e6e6e6;border-color:#8c8c8c;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.wordEditorPanel-Btn_primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.wordEditorPanel-Btn_primary:focus{background-color:#286090;border-color:#122b40}.wordEditorPanel-Btn_primary:hover{outline:0;background-color:#286090;border-color:#204d74}.wordEditorPanel-Btn_primary:active{outline:0;background-color:#204d74;border-color:#122b40;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.darkMode .wordEditorPanel-Footer,.darkMode .wordEditorPanel-Header{border-color:#8b8b8b}.darkMode .wordEditorPanel-Btn,.darkMode .wordEditorPanel-Btn_normal{margin-right:10px;color:#333;background-color:#ddd;border-color:#ccc}.darkMode .wordEditorPanel-Btn:focus,.darkMode .wordEditorPanel-Btn_normal:focus{background-color:#bfbfbf;border-color:#8c8c8c}.darkMode .wordEditorPanel-Btn:hover,.darkMode .wordEditorPanel-Btn_normal:hover{outline:0;background-color:#bfbfbf;border-color:#adadad}.darkMode .wordEditorPanel-Btn:active,.darkMode .wordEditorPanel-Btn_normal:active{outline:0;background-color:#bfbfbf;border-color:#8c8c8c;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.wordCards{flex:2;display:flex;flex-direction:column;overflow:hidden}.wordCards-Title{margin:0;padding:3px 0;text-align:center;font-size:1em;font-weight:400;border-bottom:1px solid #e5e5e5}.wordCards-CardList{flex:1;margin:0;padding:10px;overflow-x:hidden;overflow-y:auto}.wordCards-Card{list-style-type:none;position:relative;display:block;overflow:hidden;margin:0 0 10px 0;padding:10px 10px 10px;word-wrap:break-word;border:1px #faebcc solid;border-radius:20px;color:#8a6d3b;background:#fcf8e3}.wordCards-CardClose{position:absolute;top:5px;right:5px;border:none;font-size:20px;font-weight:700;color:#8a6d3b;background:0 0;cursor:pointer}.wordCards-CardTitle{margin:0 0 .5em;text-align:center}.wordCards-CardItem{position:relative;overflow:visible;margin-bottom:.5em;padding:0 0 0 25px}.wordCards-CardItem_Cont p{margin:0}.wordCards-CardItem_Icon{position:absolute;top:-5px;left:0;width:18px;height:18px;fill:#8a6d3b;-moz-user-select:none;user-select:none}.wordCards-CardFooter{position:relative;border-top:1px solid #faebcc;padding:8px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wordCards-Favicon{position:absolute;top:8px;left:3px;width:14px;height:14px}.wordCards-URL{padding:0 0 0 25px;color:inherit;font-size:12px}.ctxTransList{margin-top:0}.ctxTransItem{list-style-type:none;border-top:1px #ccc dashed}.ctxTransItem:first-of-type{border-top:none}.ctxTransItem-Head{display:flex;align-items:center}.ctxTrans-Title{position:relative;margin:5px 5px 5px 0;font-size:16px}.ctxTrans-Title input{position:absolute;top:3px;left:-25px}.ctxTrans-Content{margin:0 0 5px 0}.ctxTrans-Loader{display:flex;align-items:center;width:54px;height:20px}.ctxTrans-Loader>div{width:8px;height:8px;margin:2px;background:#f9690e;border-radius:100%;animation:ctxTrans-Loader 1.5s infinite ease-in-out}.ctxTrans-Loader>div:nth-child(5){animation-delay:0s}.ctxTrans-Loader>div:nth-child(4){animation-delay:-.1s}.ctxTrans-Loader>div:nth-child(3){animation-delay:-.2s}.ctxTrans-Loader>div:nth-child(2){animation-delay:-.3s}.ctxTrans-Loader>div:nth-child(1){animation-delay:-.4s}@keyframes ctxTrans-Loader{0%,100%,30%,70%{transform:scale(0)}50%{transform:scale(1)}}.wordEditorNote-Container{display:flex}.wordEditorNote{flex:3;padding:15px}.wordEditorNote a{text-decoration:none;color:#1890ff}.wordEditorNote label{display:block;margin-bottom:5px;font-weight:700}.wordEditorNote input,.wordEditorNote textarea{box-sizing:border-box;display:block;resize:vertical;width:100%;margin-bottom:15px;padding:6px 12px;font-size:14px;line-height:1.42857;color:var(--color-font);background:var(--color-background);background-image:none;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.wordEditorNote input:focus,.wordEditorNote textarea:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.darkMode .wordEditorNote input,.darkMode .wordEditorNote textarea{border-color:#8b8b8b}.wordEditorNote_Help{margin-top:-15px;color:var(--color-font-grey)}.wordEditorNote_SrcFavicon{height:16px;margin-left:5px;vertical-align:text-bottom}.wordEditorNote_LabelWithBtn>label{display:inline-block;margin-right:5px}.wordEditorNote_LabelWithBtn>button{position:relative;top:-1px;padding:1px 5px;background:0 0;border:1px solid #ccc;border-radius:3px;font-size:90%;color:var(--color-font);cursor:pointer}.notes-fade-appear,.notes-fade-enter{opacity:0}.notes-fade-appear-active,.notes-fade-enter-active{opacity:1;transition:opacity .4s}.notes-fade-exit{opacity:1}.notes-fade-exit-active{opacity:0;transition:opacity .1s}.shadowPortal-appear,.shadowPortal-enter{opacity:0}.shadowPortal-appear-active,.shadowPortal-enter-active{opacity:1;transition:opacity .4s}.shadowPortal-exit{opacity:1}.shadowPortal-exit-active{opacity:0;transition:opacity .1s}',""]),e.exports=t},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));n(507);var a=n(131),o=n.n(a);function r(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"document"}).then(({data:e})=>new DOMParser().parseFromString(e,"text/html"))}function i(e,t={}){return o()(e,{withCredentials:!1,...t,transformResponse:[e=>e],responseType:"text"}).then(({data:e})=>e)}},627:function(e,t,n){"use strict";n.r(t),n.d(t,"EditNameModal",(function(){return c}));var a=n(0),o=n.n(a),r=n(191),i=n(242);const c=e=>{var t;const n=Object(a.useRef)(null);return o.a.createElement(r.a,{visible:e.show,title:e.title,destroyOnClose:!0,onOk:()=>{var t;const a=((null===(t=n.current)||void 0===t?void 0:t.input.value)||"").trim();a&&e.profileID?e.onClose({...e.profileID,name:a}):e.onClose()},onCancel:()=>e.onClose()},o.a.createElement(i.a,{ref:n,autoFocus:!0,defaultValue:null===(t=e.profileID)||void 0===t?void 0:t.name}))}},63:function(e,t,n){"use strict";n.d(t,"d",(function(){return q})),n.d(t,"c",(function(){return Y})),n.d(t,"b",(function(){return Q})),n.d(t,"a",(function(){return $}));var a=n(98),o=n(248),r=n(22),i=n(800),c=n(8),s=n(10),l=n(176),d=n(1),u=n(249),h=n(11),p=n(29),m=n(40),f=n(2);const g=async()=>{const e=Object(p.c)(),t=Object(m.g)(),n=Object(m.e)(),a=await e,o=await t,r=await n,i=window.location.href,c="hide"!==r.mtaAutoUnfold;return{config:a,profiles:o,activeProfile:r,selection:{word:Object(h.e)(),mouseX:0,mouseY:0,self:!1,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1},isTempDisabled:a.blacklist.some(([e])=>new RegExp(e).test(i))&&a.whitelist.every(([e])=>!new RegExp(e).test(i)),isQSPanel:Object(f.k)(),isQSFocus:a.qsFocus,withQssaPanel:!1,wordEditor:{isShow:!1,word:Object(h.e)(),translateCtx:!1},isShowBowl:!1,isShowDictPanel:Object(f.l)(),isShowMtaBox:c,isExpandMtaBox:c&&("once"===r.mtaAutoUnfold||"always"===r.mtaAutoUnfold||"popup"===r.mtaAutoUnfold&&Object(f.j)()),isExpandWaveformBox:!1,isPinned:a.defaultPinned,isFav:!1,bowlCoord:{x:0,y:0},dictPanelCoord:Object(f.h)()?{x:window.innerWidth-a.panelWidth-20,y:80}:{x:0,y:0},panelHeight:30,_panelHeightCache:{menubar:30,mtabox:0,dictlist:0,waveformbox:0,sum:30,floatHeight:0},panelMaxHeight:window.innerHeight*a.panelMaxHeightRatio/100,renderedDicts:[],userFoldedDicts:{},text:"",searchHistory:[],historyIndex:-1,dragStartCoord:null,lastPlayAudio:null}};var b=n(24);const y=(e,{payload:t})=>{const{activeProfile:n,searchHistory:a,historyIndex:o}=e;let r;const i=t&&t.noHistory?a:a.slice(0,o+1);let c=o;if(t&&t.word){r=t.word;const e=a[o];t.noHistory||e&&e.text===r.text||(i.push(r),c=i.length-1)}else r=a[o];return r?{...e,text:r.text,isShowDictPanel:!0,isExpandMtaBox:"always"===n.mtaAutoUnfold||"popup"===n.mtaAutoUnfold&&Object(f.j)(),searchHistory:i,historyIndex:c,renderedDicts:t&&t.id?e.renderedDicts.map(e=>e.id===t.id?{id:e.id,searchStatus:"SEARCHING",searchResult:null}:e):n.dicts.selected.filter(e=>{const t=n.dicts.all[e];if(Object(b.a)(t.selectionLang,r.text)){const e=Object(b.b)(r.text),{min:n,max:a}=t.selectionWC;return e>=n&&e<=a}return!1}).map(t=>({id:t,searchStatus:!Object(b.a)(n.dicts.all[t].defaultUnfold,r.text)||e.activeProfile.stickyFold&&e.userFoldedDicts[t]?"IDLE":"SEARCHING",searchResult:null}))}:e};const w=(e,{payload:t})=>{if(t.self)return e;const{config:n}=e,a={...e,selection:t};if(Object(f.h)())return a;if(t.word)if(t.force)a.dictPanelCoord={x:t.mouseX,y:t.mouseY};else if(!e.isPinned){const e=30,o=10;a.bowlCoord={x:t.mouseX+n.bowlOffsetX,y:t.mouseY+n.bowlOffsetY},a.bowlCoord.x<30?a.bowlCoord.x=30:a.bowlCoord.x+e+30+o>window.innerWidth&&(a.bowlCoord.x=window.innerWidth-e-o-30),a.bowlCoord.y<30?a.bowlCoord.y=30:a.bowlCoord.y+e+30>window.innerHeight&&(a.bowlCoord.y=window.innerHeight-e-30),a.dictPanelCoord={x:a.bowlCoord.x+e+10,y:a.bowlCoord.y},a.dictPanelCoord.x+a.config.panelWidth+20>window.innerWidth&&(a.dictPanelCoord.x=a.bowlCoord.x-10-a.config.panelWidth)}if(e.withQssaPanel&&n.qssaPageSel||Object(f.l)())return a;const o=n.active&&!e.isTempDisabled,{direct:r,holding:i,double:c,icon:s}=n.mode;return a.isShowDictPanel=Boolean(e.isPinned||o&&t.word&&t.word.text&&(e.isShowDictPanel||r||c&&t.dbClick||i.alt&&t.altKey||i.shift&&t.shiftKey||i.ctrl&&t.ctrlKey||i.meta&&t.metaKey||t.instant)||Object(f.l)()),a.isShowBowl=Boolean(o&&t.word&&t.word.text&&s&&!a.isShowDictPanel&&!r&&!(c&&t.dbClick)&&!(i.alt&&t.altKey)&&!(i.shift&&t.shiftKey)&&!(i.ctrl&&t.ctrlKey)&&!(i.meta&&t.metaKey)&&!t.instant&&!Object(f.l)()),a};const O=e=>{const{panelWidth:t,tripleCtrl:n,qsLocation:a}=e.config;if(!n||e.isShowDictPanel)return e;let o=10,r=10;switch(a){case"CENTER":o=(window.innerWidth-t)/2,r=.3*window.innerHeight;break;case"TOP":o=(window.innerWidth-t)/2,r=10;break;case"RIGHT":o=window.innerWidth-t-30,r=.3*window.innerHeight;break;case"BOTTOM":o=(window.innerWidth-t)/2,r=window.innerHeight-10;break;case"LEFT":o=10,r=.3*window.innerHeight;break;case"TOP_LEFT":o=10,r=10;break;case"TOP_RIGHT":o=window.innerWidth-t-30,r=10;break;case"BOTTOM_LEFT":o=10,r=window.innerHeight-10;break;case"BOTTOM_RIGHT":o=window.innerWidth-t-30,r=window.innerHeight-10}return{...e,isQSPanel:!0,isShowDictPanel:!0,dictPanelCoord:{x:o,y:r}}};const x={NEW_CONFIG:(e,{payload:t})=>{const n=window.location.href,a=window.innerHeight*t.panelMaxHeightRatio/100;return{...e,config:t,panelHeight:Math.min(e.panelHeight,a),panelMaxHeight:a,isQSFocus:t.qsFocus,isTempDisabled:t.blacklist.some(([e])=>new RegExp(e).test(n))&&t.whitelist.every(([e])=>!new RegExp(e).test(n))}},NEW_PROFILES:(e,{payload:t})=>({...e,profiles:t}),NEW_ACTIVE_PROFILE:(e,{payload:t})=>{const n="hide"!==t.mtaAutoUnfold;return{...e,activeProfile:t,isShowMtaBox:n,isExpandMtaBox:n&&("once"===t.mtaAutoUnfold||"always"===t.mtaAutoUnfold||"popup"===t.mtaAutoUnfold&&Object(f.j)()),renderedDicts:e.renderedDicts.filter(({id:e})=>t.dicts.selected.includes(e))}},NEW_SELECTION:w,WINDOW_RESIZE:e=>({...e,panelMaxHeight:window.innerHeight*e.config.panelMaxHeightRatio/100}),TEMP_DISABLED_STATE:(e,{payload:t})=>t?{...e,isTempDisabled:!0,isPinned:!1,isShowDictPanel:Object(f.l)(),isShowBowl:!1,isQSPanel:Object(f.k)()}:{...e,isTempDisabled:!1},BOWL_ACTIVATED:e=>({...e,isShowBowl:!1,isShowDictPanel:!0}),UPDATE_TEXT:(e,{payload:t})=>({...e,text:t}),TOGGLE_MTA_BOX:e=>({...e,isExpandMtaBox:!e.isExpandMtaBox}),TOGGLE_PIN:e=>({...e,isPinned:!e.isPinned}),TOGGLE_QS_FOCUS:e=>({...e,isQSFocus:!e.isQSFocus}),TOGGLE_WAVEFORM_BOX:e=>({...e,isExpandWaveformBox:!e.isExpandWaveformBox}),OPEN_PANEL:(e,{payload:t})=>Object(f.l)()?e:{...e,isShowDictPanel:!0,dictPanelCoord:{x:t.x,y:t.y}},CLOSE_PANEL:e=>Object(f.l)()?e:{...e,isPinned:!1,isShowBowl:!1,isShowDictPanel:!1,isQSPanel:Object(f.k)()},SWITCH_HISTORY:(e,{payload:t})=>{const n=Math.min(Math.max(0,e.historyIndex+("prev"===t?-1:1)),e.searchHistory.length-1);return{...e,historyIndex:n,text:e.searchHistory[n]?e.searchHistory[n].text:e.text}},WORD_IN_NOTEBOOK:(e,{payload:t})=>({...e,isFav:t}),ADD_TO_NOTEBOOK:e=>e.config.editOnFav&&!Object(f.l)()?e:{...e,isFav:!0},SEARCH_START:y,SEARCH_END:(e,{payload:t})=>e.renderedDicts.every(({id:e})=>e!==t.id)?e:{...e,renderedDicts:e.renderedDicts.map(e=>e.id===t.id?{id:e.id,searchStatus:"FINISH",searchResult:t.result,catalog:t.catalog}:e)},UPDATE_PANEL_HEIGHT:(e,{payload:t})=>{const{_panelHeightCache:n}=e,a=n.sum-n[t.area]+t.height,o=null==t.floatHeight?n.floatHeight:t.floatHeight;return{...e,panelHeight:Math.min(Math.max(a,o),e.panelMaxHeight),_panelHeightCache:{...n,[t.area]:t.height,sum:a,floatHeight:o}}},USER_FOLD_DICT:(e,{payload:t})=>({...e,userFoldedDicts:{...e.userFoldedDicts,[t.id]:t.fold}}),DRAG_START_COORD:(e,{payload:t})=>({...e,dragStartCoord:t}),SUMMONED_PANEL_INIT:(e,{payload:t})=>({...e,text:t,historyIndex:0,isShowDictPanel:!0,isShowBowl:!1}),QS_PANEL_CHANGED:(e,{payload:t})=>e.withQssaPanel===t?e:t&&e.config.qssaPageSel?{...e,withQssaPanel:t,isPinned:!1,isShowDictPanel:Object(f.j)()||!!Object(f.h)()&&e.isShowDictPanel,isShowBowl:!1,isQSPanel:!1}:{...e,withQssaPanel:t,isQSPanel:Object(f.k)()},OPEN_QS_PANEL:O,WORD_EDITOR_STATUS:(e,{payload:{word:t,translateCtx:n}})=>t?{...e,wordEditor:{isShow:!0,word:t,translateCtx:!!n},dictPanelCoord:{x:50,y:.2*window.innerHeight}}:{...e,wordEditor:{isShow:!1,word:e.wordEditor.word,translateCtx:!1}},PLAY_AUDIO:(e,{payload:t})=>({...e,lastPlayAudio:t})};var j=n(46);const E=(e,t)=>{window.addEventListener("resize",()=>{e({type:"WINDOW_RESIZE"})}),Object(p.a)(({newConfig:n})=>{n.active!==t().config.active&&d.a.send({type:"SEND_TAB_BADGE_INFO",payload:{active:n.active,tempDisable:t().isTempDisabled,unsupported:!Object(f.l)()&&"BODY"!==document.body.tagName}}),e({type:"NEW_CONFIG",payload:n})}),Object(m.a)(({newProfile:t})=>{e({type:"NEW_ACTIVE_PROFILE",payload:t})}),Object(m.d)().subscribe(t=>{e({type:"NEW_PROFILES",payload:t})}),d.a.addListener(n=>{switch(n.type){case"TEMP_DISABLED_STATE":return"set"===n.payload.op?(e({type:"TEMP_DISABLED_STATE",payload:n.payload.value}),setTimeout(()=>{const e=t();d.a.send({type:"SEND_TAB_BADGE_INFO",payload:{active:e.config.active,tempDisable:e.isTempDisabled,unsupported:!Object(f.l)()&&"BODY"!==document.body.tagName}})},0),Promise.resolve(!0)):Promise.resolve(t().isTempDisabled);case"SEARCH_TEXT_BOX":{var a;const{searchHistory:n,historyIndex:o,text:r}=t();return e({type:"SEARCH_START",payload:{word:(null===(a=n[o])||void 0===a?void 0:a.text)===r?n[o]:Object(h.e)({text:r,title:"Saladict",favicon:"https://saladict.crimx.com/favicon.ico"})}}),Object(f.j)()?Promise.resolve(!0):Promise.resolve()}case"WORD_SAVED":{const{text:n}=t();n&&d.a.send({type:"IS_IN_NOTEBOOK",payload:Object(h.e)({text:n})}).then(t=>{e({type:"WORD_IN_NOTEBOOK",payload:t})});break}case"ADD_NOTEBOOK":return n.payload.popup===Object(f.j)()?(e({type:"ADD_TO_NOTEBOOK"}),Promise.resolve(!0)):void 0;case"SWITCH_HISTORY":return e({type:"SWITCH_HISTORY",payload:n.payload}),Promise.resolve(!0);case"QS_PANEL_SEARCH_TEXT":return Object(f.k)()&&(e({type:"SEARCH_START",payload:{word:n.payload}}),t().isQSFocus&&d.a.send({type:"OPEN_QS_PANEL"})),Promise.resolve();case"QS_PANEL_CHANGED":return Object(f.k)()||e({type:"QS_PANEL_CHANGED",payload:n.payload}),Promise.resolve();case"QS_PANEL_FOCUSED":if(Object(f.k)()){const e=document.querySelector(t().isExpandMtaBox?".mtaBox-TextArea":".menuBar-SearchBox");e&&(e.focus(),e.select())}return Promise.resolve();case"GET_TAB_BADGE_INFO":{const e=t();return Promise.resolve({active:e.config.active,tempDisable:e.isTempDisabled,unsupported:!Object(f.l)()&&"BODY"!==document.body.tagName})}}});let n=0;d.a.self.addListener(a=>{switch(a.type){case"SELECTION":if(a.payload.instant)n=Date.now();else if(Date.now()-n<500)return Promise.resolve();return e({type:"NEW_SELECTION",payload:a.payload}),Promise.resolve();case"ESCAPE_KEY":return e({type:"CLOSE_PANEL"}),Promise.resolve();case"SEARCH_TEXT":return e({type:"SEARCH_START",payload:{word:a.payload}}),Promise.resolve();case"CLOSE_PANEL":return e({type:"CLOSE_PANEL"}),Promise.resolve();case"TRIPLE_CTRL":if(!Object(f.j)()&&!Object(f.h)()){const n=t();n.config.tripleCtrl&&(n.config.qsStandalone?d.a.send({type:"OPEN_QS_PANEL"}):n.isShowDictPanel||(e({type:"OPEN_QS_PANEL"}),async function(e,t){let n=null;"selection"===t.config.qsPreload?t.selection.word&&(n=t.selection.word):"clipboard"===t.config.qsPreload&&(n=Object(h.e)({text:await d.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&t.config.qsAuto?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,n)))}return Promise.resolve();case"UPDATE_WORD_EDITOR_WORD":return e({type:"WORD_EDITOR_STATUS",payload:a.payload}),Object(j.d)(100).then(()=>{e({type:"SEARCH_START",payload:{word:a.payload.word}})});case"LAST_PLAY_AUDIO":return Promise.resolve(t().lastPlayAudio)}}),Object(f.j)()?async function(e,t){let n=null;if("selection"===t.config.baPreload){const e=(await browser.tabs.query({active:!0,currentWindow:!0}))[0];e&&null!=e.id&&(n=await d.a.send(e.id,{type:"PRELOAD_SELECTION"}))}else"clipboard"===t.config.baPreload&&(n=Object(h.e)({text:await d.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&t.config.baAuto?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,t()):Object(f.k)()?async function(e,t){let n=null;const{searchParams:a}=new URL(document.URL);a.get("sidebar")||e({type:"TOGGLE_PIN"});const o=a.get("word");if(o)try{n=JSON.parse(decodeURIComponent(o))}catch(e){!1,n=null}if(!n)if("selection"===t.config.qsPreload){const e=Number(a.get("lastTab"));e&&(n=await d.a.send(e,{type:"PRELOAD_SELECTION"}))}else"clipboard"===t.config.qsPreload&&(n=Object(h.e)({text:await d.a.send({type:"GET_CLIPBOARD"}),title:"From Clipboard"}));n&&(n.text&&(t.config.qsAuto||o)?e({type:"SEARCH_START",payload:{word:n}}):e({type:"SUMMONED_PANEL_INIT",payload:n.text}))}(e,t()):d.a.send({type:"QUERY_QS_PANEL"}).then(t=>e({type:"QS_PANEL_CHANGED",payload:t}))};var v=n(767),C=n(118),k=n(96),S=n(64),M=n(83),I=n(768),A=n(145),N=n(38);const T=n(363).a;var D=n(108),_=n(720),z=n(801),L=n(634),B=n(766),P=n(104);var R=(e,t)=>e.pipe(T("SEARCH_START"),Object(D.a)(({payload:e})=>{const{config:n,searchHistory:a,historyIndex:o,renderedDicts:r}=t.value,i=a[o];!n.searchHistory||Object(f.f)()&&!Object(f.l)()||browser.extension.inIncognitoContext&&!n.searchHistoryInco||!(o<=0||a[o-1].text!==i.text||a[o-1].context!==i.context)||Object(h.f)("history",i);const c=new Set;for(const e of r)"SEARCHING"===e.searchStatus&&c.add(e.id);const{cn:l,en:u,machine:p}=n.autopron;l.dict&&c.add(l.dict),u.dict&&c.add(u.dict),p.dict&&c.add(p.dict);const m=Object(P.a)(...[...c].map(t=>d.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:i.text,payload:e&&e.payload?{isPDF:Object(f.i)(),...e.payload}:{isPDF:Object(f.i)()}}}).catch(()=>({id:t,result:null})))).pipe(Object(_.a)()),g=e&&e.id?C.a:m.pipe(Object(N.a)(({id:e,audio:t,result:n})=>!!t&&(!(e!==l.dict||!t.py)||(!(e!==u.dict||!t.uk&&!t.us)||e===p.dict&&!!n[p.src].tts))),Object(z.a)(1),Object(L.a)(({id:e,audio:t,result:n})=>{if(e===l.dict)return d.a.send({type:"PLAY_AUDIO",payload:t.py});if(e===u.dict){const e="us"===u.accent?t.us||t.uk:t.uk||t.us;return d.a.send({type:"PLAY_AUDIO",payload:e})}d.a.send({type:"PLAY_AUDIO",payload:n[p.src].tts})}),Object(B.a)(C.a));return Object(P.a)(Object(S.a)(Object(h.d)(i).catch(()=>!1)).pipe(Object(s.a)(e=>({type:"WORD_IN_NOTEBOOK",payload:e}))),m.pipe(Object(s.a)(({id:e,result:t,catalog:n})=>({type:"SEARCH_END",payload:{id:e,result:t,catalog:n}}))),g)}));var U=(e,t)=>e.pipe(T("NEW_SELECTION"),Object(D.a)(({payload:e})=>{const{config:n,withQssaPanel:a,isShowDictPanel:o,isPinned:r}=t.value;if(e.self)return function(e,t){const{direct:n,double:a,holding:o}=e.panelMode;if(t.word&&t.word.text&&(t.instant||n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey))return Object(k.a)({type:"SEARCH_START",payload:{word:{...t.word,title:"Saladict Panel",favicon:"https://saladict.crimx.com/favicon.ico"}}});return C.a}(n,e);if(Object(f.h)())return C.a;if(a&&n.qssaPageSel)return function(e,t){const{direct:n,double:a,holding:o}=e.qsPanelMode;t.word&&t.word.text&&(t.instant||n||a&&t.dbClick||o.alt&&t.altKey||o.shift&&t.shiftKey||o.ctrl&&t.ctrlKey||o.meta&&t.metaKey)&&d.a.send({type:"QS_PANEL_SEARCH_TEXT",payload:t.word});return C.a}(n,e);if(Object(f.l)())return C.a;const{pinMode:i}=n;return o&&e.word&&e.word.text&&(!r||i.direct||i.double&&e.dbClick||i.holding.alt&&e.altKey||i.holding.shift&&e.shiftKey||i.holding.ctrl&&e.ctrlKey||i.holding.meta&&e.metaKey)?Object(k.a)({type:"SEARCH_START",payload:{word:e.word}}):C.a}));var W=n(80);const H=Object(v.a)((e,t)=>e.pipe(T("BOWL_ACTIVATED"),Object(s.a)(()=>t.value.selection.word?{type:"SEARCH_START",payload:{word:t.value.selection.word}}:{type:"SEARCH_START"})),(e,t)=>e.pipe(T("SWITCH_HISTORY"),Object(M.a)({type:"SEARCH_START",payload:{noHistory:!0}})),(e,t)=>t.pipe(Object(s.a)(e=>e.isShowDictPanel),Object(I.a)(),Object(A.a)(([e,t])=>(e&&!t&&d.a.send({type:"STOP_AUDIO"}),C.a))),(e,t)=>e.pipe(T("ADD_TO_NOTEBOOK"),Object(A.a)(()=>{if(t.value.config.editOnFav){const e=t.value.searchHistory[t.value.historyIndex];if(Object(f.j)()||Object(f.l)()){const{width:t,height:n}=window.screen,a=Math.round(Math.min(Math.max(t,440),640)),o=Math.round(Math.min(n-150,800));let r="";try{r=encodeURIComponent(JSON.stringify(e))}catch(e){console.warn(e)}return browser.windows.create({type:"popup",url:browser.runtime.getURL("word-editor.html?word="+r),top:Math.round((n-o)/2),left:Math.round((t-a)/2),width:a,height:o}).catch(e=>{console.warn(e)}),C.a}return Object(k.a)({type:"WORD_EDITOR_STATUS",payload:{word:e,translateCtx:!0}})}return Object(S.a)((async()=>{const e=t.value.searchHistory[t.value.searchHistory.length-1];if(e)try{return e.trans=Object(W.a)(e.trans,await Object(W.d)(e.context||e.text,t.value.config.ctxTrans)),await Object(h.f)("notebook",e),!0}catch(e){return console.warn(e),!1}return!1})()).pipe(Object(N.a)(e=>!e),Object(M.a)({type:"WORD_IN_NOTEBOOK",payload:!1}))})),U,R);const F=Object(i.a)(),q=r.f,Y=r.e,Q=r.d,$=async()=>{const e=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||a.c,t=Object(a.d)(await(async()=>Object(u.createReducer)(await g(),x))(),e(Object(a.a)(o.a,F)));F.run(H),E(t.dispatch,t.getState);async function n(){return t.getState().isPinned}return new c.a(e=>{t.subscribe(()=>e.next(t.getState()))}).pipe(Object(s.a)(e=>e.isPinned),Object(l.a)()).subscribe(e=>{d.a.self.send({type:"PIN_STATE",payload:e})}),d.a.addListener("QUERY_PIN_STATE",n),d.a.self.addListener("QUERY_PIN_STATE",n),t}},632:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(22);const o=e=>e.isShowDictPanel,r=()=>Object(a.e)(o)},637:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c})),n.d(t,"moedictSearch",(function(){return s}));var a=n(5),o=n(131),r=n.n(o);const i=async e=>"https://www.moedict.tw/"+(await Object(a.b)())(e),c=(e,t,n,a)=>s("a",e,t,n.dicts.all.guoyu.options);async function s(e,t,n,o){const i=await Object(a.b)(),{data:c}=await r.a.get(`https://www.moedict.tw/${e}/${encodeURIComponent(i(t.replace(/\s+/g,"")))}.json`).catch(a.g);if(!c||!c.h)return Object(a.h)();o.trans||(c.translation=void 0);const s={result:c};for(const e of c.h)e["="]&&(e["="]=`https://203146b5091e8f0aafda-15d41c68795720c6e932125f5ace0c70.ssl.cf1.rackcdn.com/${e["="]}.ogg`),s.audio||(s.audio={py:e["="]});return s}},711:function(e,t,n){"use strict";n.r(t),n.d(t,"ContextMenus",(function(){return f}));var a=n(0),o=n.n(a),r=n(311),i=n(206),c=n(9),s=n(63),l=n(439),d=n(15),u=n(205),h=n(187),p=n(721),m=n(722);const f=()=>{const{t:e}=Object(c.e)(["options","common","menus"]),t=Object(h.b)(),[n,f]=Object(a.useState)(!1),[g,b]=Object(a.useState)(null),y=Object(u.d)(),w=Object(s.c)(e=>e.config.contextMenus),[O,x]=Object(a.useState)(w.selected);return Object(a.useLayoutEffect)(()=>{x(w.selected)},[w.selected]),o.a.createElement(r.a,null,o.a.createElement(i.a,{...y},o.a.createElement(l.a,{title:e("nav.ContextMenus"),description:o.a.createElement("p",null,e("config.opt.contextMenus_description")),list:O.map(t=>{const n=w.all[t];return{value:t,title:"string"==typeof n?e("menus:"+t):n.name}}),disableEdit:(e,t)=>"x"===w.all[t.value],onAdd:()=>f(!0),onEdit:e=>{b(O[e])},onDelete:e=>{const n=O.slice();n.splice(e,1),t({[Object(d.a)("contextMenus","selected")]:n}),x(n)},onOrderChanged:(e,n)=>{const a=Object(l.b)(O,e,n);t({[Object(d.a)("contextMenus","selected")]:a}),x(a)}})),o.a.createElement(p.AddModal,{show:n,onEdit:b,onClose:()=>f(!1)}),o.a.createElement(m.EditModal,{menuID:g,onClose:()=>b(null)}))}},712:function(e,t,n){"use strict";n.r(t),n.d(t,"Dictionaries",(function(){return x}));var a=n(583),o=n.n(a),r=n(0),i=n.n(r),c=n(311),s=n(206),l=n(309),d=n(9),u=n(63),h=n(439),p=n(585),m=n(15),f=n(747),g=n(205),b=n(187),y=n(491),w=n(723),O=n(724);const x=()=>{const{t:e}=Object(d.e)(["options","common","dicts"]),t=Object(f.a)(),[n,a]=Object(r.useState)(null),[x,j]=Object(r.useState)(!1),E=Object(g.d)(),v=Object(u.c)(e=>e.activeProfile.dicts),C=Object(b.b)(),[k,S]=Object(r.useState)(v.selected);return Object(r.useLayoutEffect)(()=>{S(v.selected)},[v.selected]),i.a.createElement(c.a,null,i.a.createElement(s.a,{...E},i.a.createElement(h.a,{title:i.a.createElement(l.a,{title:e("profile.opt.item_extra"),className:"saladict-form-profile-title"},i.a.createElement("span",null,i.a.createElement(o.a,null),e("profile.opt.dict_selected"))),list:k.map(e=>({value:e,title:i.a.createElement(y.DictTitleMemo,{dictID:e,dictLangs:v.all[e].lang})})),onAdd:async()=>{await t()&&j(!0)},onEdit:e=>{a(k[e])},onDelete:e=>{const t=k.slice();t.splice(e,1),C({[Object(m.b)("dicts","selected")]:t}),S(t)},onOrderChanged:(e,t)=>{const n=Object(h.b)(k,e,t);C({[Object(m.b)("dicts","selected")]:n}),S(n)}})),i.a.createElement(p.a,{visible:x,title:e("dict.add"),onClose:()=>j(!1),wrapperCol:{span:24},items:[{name:Object(m.b)("dicts","selected"),label:null,help:null,extra:null,children:i.a.createElement(O.AllDicts,null)}]}),i.a.createElement(w.EditModal,{dictID:n,onClose:()=>a(null)}))}},713:function(e,t,n){"use strict";n.r(t),n.d(t,"Notebook",(function(){return j}));var a=n(0),o=n.n(a),r=n(105),i=n(172),c=n(82),s=n(95),l=n(64),d=n(161),u=n(10),h=n(30),p=n(240),m=n(130),f=n(141),g=n(9),b=n(1),y=n(63),w=n(15),O=n(97);const x=n(1205),j=()=>{const{t:e}=Object(g.e)(["options","dicts","common","sync"]),t=Object(y.c)(e=>e.config.ctxTrans),n=Object(h.e)(()=>x.keys().map(e=>/([^/]+)\.tsx$/.exec(e)[1])).current,[j,E]=Object(a.useState)({}),v=Object(p.a)(Object(m.a)(()=>Object(s.a)(Object(l.a)(b.c.sync.get("syncConfig")).pipe(Object(d.a)("syncConfig")),b.c.sync.createStream("syncConfig").pipe(Object(d.a)("newValue"))).pipe(Object(u.a)(e=>((null==e?void 0:e.webdav)&&!Object.prototype.hasOwnProperty.call(e.webdav,"enable")&&(e.webdav.enable=!!e.webdav.url),e))))),C=[{name:Object(w.a)("editOnFav"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(w.a)("searchHistory"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(w.a)("searchHistoryInco"),hide:e=>!e[Object(w.a)("searchHistory")],valuePropName:"checked",children:o.a.createElement(r.a,null)},{key:Object(w.a)("ctxTrans"),style:{marginBottom:10},items:Object(f.a)(t).map(t=>({name:Object(w.a)("ctxTrans",t),valuePropName:"checked",style:{marginBottom:0},children:o.a.createElement(i.a,null,e(`dicts:${t}.name`))}))}];return n.forEach(t=>{var n;const a="syncService.btn."+t,r=e(`sync:${t}.title`);C.push({key:a,label:r,children:o.a.createElement(c.a,{onClick:()=>E(e=>({...e,[t]:!0}))},`${r} (${e((null==v||null===(n=v[t])||void 0===n?void 0:n.enable)?"common:enabled":"common:disabled")})`)})}),o.a.createElement(o.a.Fragment,null,o.a.createElement(O.a,{items:C}),n.map(e=>o.a.createElement(x(`./${e}.tsx`).default,{key:e,syncConfig:null==v?void 0:v[e],show:j[e],onClose:()=>E(t=>({...t,[e]:!1}))})))}},714:function(e,t,n){"use strict";n.r(t),n.d(t,"Profiles",(function(){return O}));var a=n(583),o=n.n(a),r=n(0),i=n.n(r),c=n(150),s=n(181),l=n(311),d=n(206),u=n(191),h=n(9),p=n(74),m=n(40),f=n(63),g=n(439),b=n(205),y=n(747),w=n(627);const O=()=>{const{t:e}=Object(h.e)("options"),t=Object(y.a)(),n=Object(f.c)(e=>e.activeProfile.id),[a,O]=Object(r.useState)(!1),[x,j]=Object(r.useState)(!1),[E,v]=Object(r.useState)(null),C=Object(b.d)(),k=Object(f.c)(e=>e.profiles),[S,M]=Object(r.useState)(k);Object(r.useLayoutEffect)(()=>{M(k)},[k]);const I=async t=>{try{await t(),c.a.destroy(),c.a.success(e("msg_updated"))}catch(e){s.a.error({message:"Error",description:e.message})}},A=e=>{O(!1),j(!1),e&&I(async()=>{if(S.find(({id:t})=>t===e.id)){const t=S.map(t=>t.id===e.id?e:t);await Object(m.n)(t)}else await Object(m.b)(e)})};return i.a.createElement(l.a,null,i.a.createElement(d.a,{...C},i.a.createElement(g.a,{title:e("nav.Profiles"),description:i.a.createElement(h.c,{message:e("profiles.opt.help")},i.a.createElement(o.a,{style:{color:"#f5222d"}}),i.a.createElement("kbd",null,"↓")),selected:n,list:S.map(({id:t,name:n})=>({value:t,title:Object(m.h)(n,e)})),onSelect:async({target:{value:e}})=>{await t()&&I(()=>Object(m.l)(e))},onAdd:()=>{v({...Object(p.c)(),name:""}),O(!0)},onEdit:t=>{v(S[t]?{...S[t],name:Object(m.h)(S[t].name,e)}:Object(p.c)()),j(!0)},onDelete:t=>{const{id:n,name:a}=S[t];u.a.confirm({title:e("profiles.opt.delete_confirm",{name:Object(m.h)(a,e)}),onOk:()=>I(()=>Object(m.j)(n))})},onOrderChanged:(e,t)=>{const n=Object(g.b)(S,e,t);M(n),I(()=>Object(m.n)(n))}}),i.a.createElement(w.EditNameModal,{title:e("profiles.opt.add_name"),show:a,profileID:E,onClose:A}),i.a.createElement(w.EditNameModal,{title:e("profiles.opt.edit_name"),show:x,profileID:E,onClose:A})))}},715:function(e,t,n){"use strict";n.r(t),n.d(t,"QuickSearch",(function(){return p}));var a=n(0),o=n.n(a),r=n(105),i=n(53),c=n(82),s=n(9),l=n(15),d=n(97),u=n(725);const h=["CENTER","TOP","RIGHT","BOTTOM","LEFT","TOP_LEFT","TOP_RIGHT","BOTTOM_LEFT","BOTTOM_RIGHT"],p=()=>{const{t:e}=Object(s.e)(["options","menus"]),[t,n]=Object(a.useState)(!1);return o.a.createElement(o.a.Fragment,null,o.a.createElement(d.a,{items:[{name:Object(l.a)("tripleCtrl"),help:o.a.createElement(s.c,{message:e(Object(l.a)("tripleCtrl")+"_help")},o.a.createElement("kbd",null,"⌘ Command"),o.a.createElement("kbd",null,"Ctrl")),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(l.a)("qsLocation"),children:o.a.createElement(i.a,null,h.map(t=>o.a.createElement(i.a.Option,{key:t,value:t},e("locations."+t))))},{name:Object(l.a)("qsPreload"),label:e("preload.title"),help:e("preload.help"),children:o.a.createElement(i.a,null,o.a.createElement(i.a.Option,{value:""},e("common:none")),o.a.createElement(i.a.Option,{value:"clipboard"},e("preload.clipboard")),o.a.createElement(i.a.Option,{value:"selection"},e("preload.selection")))},{name:Object(l.a)("qsAuto"),label:e("preload.auto"),help:e("preload.auto_help"),hide:e=>!e[Object(l.a)("qsPreload")],valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(l.a)("qsFocus"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(l.a)("qsStandalone"),help:o.a.createElement(s.c,{message:e(Object(l.a)("qsStandalone")+"_help")},o.a.createElement("a",{href:"https://saladict.crimx.com/native.html",target:"_blank",rel:"nofollow noopener noreferrer"},e("nativeSearch"))),valuePropName:"checked",children:o.a.createElement(r.a,null)},{key:"config.opt.openQsStandalone",children:o.a.createElement(c.a,{onClick:()=>n(!0)},e("config.opt.openQsStandalone"))}]}),o.a.createElement(u.StandaloneModal,{show:t,onClose:()=>n(!1)}))}},716:function(e,t,n){"use strict";n.r(t),n.d(t,"SearchModes",(function(){return p}));var a=n(0),o=n.n(a),r=n(105),i=n(172),c=n(241),s=n(9),l=n(15),d=n(97),u=n(24),h=n(437);const p=()=>{const{t:e}=Object(s.e)(["options","common"]);return o.a.createElement(d.a,{items:[{name:Object(l.a)("noTypeField"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(l.a)("touchMode"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{key:Object(l.a)("language"),className:"saladict-form-danger-extra",items:u.j.map(t=>({name:Object(l.a)("language",t),className:"form-item-inline",valuePropName:"checked",children:o.a.createElement(i.a,null,e("common:lang."+t))}))},{name:Object(l.b)("stickyFold"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(l.a)("doubleClickDelay"),children:o.a.createElement(c.a,{tipFormatter:t=>t+e("common:unit.ms"),min:100,max:2e3,marks:{100:"0.1"+e("common:unit.s"),2e3:"2"+e("common:unit.s")}})},Object(h.searchMode)("mode",e),Object(h.searchMode)("pinMode",e),Object(h.searchMode)("panelMode",e),Object(h.searchMode)("qsPanelMode",e)]})}},721:function(e,t,n){"use strict";n.r(t),n.d(t,"AddModal",(function(){return v}));var a=n(219),o=n.n(a),r=n(746),i=n.n(r),c=n(529),s=n.n(c),l=n(0),d=n.n(l),u=n(191),h=n(82),p=n(761),m=n(309),f=n(948),g=n.n(f),b=n(9),y=n(2),w=n(113),O=n(63),x=n(15),j=n(187);const E={caiyuntrs:y.c?"ff":"",youdao_page_translate:y.c?"ff":""},v=({show:e,onEdit:t,onClose:n})=>{const{t:a}=Object(b.e)(["common","menus","options"]),r=Object(O.c)(e=>e.config.contextMenus),c=Object(l.useMemo)(()=>{if(!r)return[];const e=new Set(r.selected);return Object.keys(r.all).filter(t=>!e.has(t))},[r]),f=Object(j.b)();return d.a.createElement(u.a,{visible:e,title:a("common:add"),destroyOnClose:!0,onOk:n,onCancel:n,footer:null},d.a.createElement(h.a,{type:"dashed",block:!0,onClick:y},a("common:add")),d.a.createElement(p.b,{dataSource:c,renderItem:function(e){if(!r)return null;const n=r.all[e],c="string"==typeof n?a("menus:"+e):n.name;return d.a.createElement(p.b.Item,null,d.a.createElement("div",{className:"sortable-list-item"},c,d.a.createElement("div",null,d.a.createElement("div",null,d.a.createElement(m.a,{title:E[e]?a("options:unsupportedFeatures."+E[e],{feature:c}):""},d.a.createElement(h.a,{title:a("common:add"),className:"sortable-list-item-btn",shape:"circle",size:"small",icon:d.a.createElement(s.a,null),disabled:!!E[e],onClick:function(){if(!r)return;f({[Object(x.a)("contextMenus","selected")]:[...r.selected,e]})}})),d.a.createElement(h.a,{title:a("common:edit"),className:"sortable-list-item-btn",shape:"circle",size:"small",icon:d.a.createElement(i.a,null),disabled:"x"===n,onClick:()=>t(e)}),d.a.createElement(h.a,{title:a("common:delete"),disabled:"x"===n,className:"sortable-list-item-btn",shape:"circle",size:"small",icon:d.a.createElement(o.a,null),onClick:function(){if(!r)return;u.a.confirm({title:a("common:delete_confirm"),okType:"danger",onOk:()=>{"x"!==r.all[e]&&f({[Object(x.a)("contextMenus")]:{...r,selected:r.selected.filter(t=>t!==e),all:g()(r.all,[e])}})}})}})))))}}),d.a.createElement(h.a,{type:"dashed",block:!0,onClick:y},a("common:add")));function y(){t("c_"+Object(w.a)())}}},722:function(e,t,n){"use strict";n.r(t),n.d(t,"EditModal",(function(){return f}));var a=n(147),o=n.n(a),r=n(0),i=n.n(r),c=n(389),s=n(240),l=n(191),d=n(136),u=n(242),h=n(9),p=n(63),m=n(187);const f=({menuID:e,onClose:t})=>{const{t:n}=Object(h.e)(["options","dicts","common","langcode"]),a=Object(r.useRef)(null),f=Object(p.c)(e=>e.config.contextMenus.all),g=Object(s.a)(m.a,"idle"),b=Object(m.b)(),y=`config.contextMenus.all.${e}.name`,w=`config.contextMenus.all.${e}.url`,O=Object(r.useMemo)(()=>{if(f&&e){const t=f[e];if("string"==typeof t)return{[y]:n("menus:"+e),[w]:t};if(t)return{[y]:t.name,[w]:t.url}}return{[y]:"",[w]:""}},[f,e]);return Object(c.a)(()=>{e&&"idle"===g&&t()},[g]),i.a.createElement(l.a,{visible:!!e,zIndex:1001,title:n("config.opt.contextMenus_edit"),destroyOnClose:!0,onOk:function(){a.current&&a.current.submit()},onCancel:function(){a.current&&a.current.isFieldsTouched()?l.a.confirm({zIndex:1002,title:n("syncService.close_confirm"),icon:i.a.createElement(o.a,null),okType:"danger",onOk:t}):t()}},i.a.createElement(d.a,{ref:a,initialValues:O,onFinish:b},i.a.createElement(d.a.Item,{name:y,label:n("common:name")},i.a.createElement(u.a,null)),i.a.createElement(d.a.Item,{name:w,label:"URL"},i.a.createElement(u.a,null))))}},723:function(e,t,n){"use strict";n.r(t),n.d(t,"EditModal",(function(){return x}));var a=n(147),o=n.n(a),r=n(0),i=n.n(r),c=n(22),s=n(172),l=n(82),d=n(191),u=n(53),h=n(105),p=n(9),m=n(24),f=n(63),g=n(15),b=n(537),y=n(585),w=n(576),O=n(220);const x=({dictID:e,onClose:t})=>{const{t:a,i18n:x}=Object(p.e)(["options","dicts","common","langcode"]),j=Object(r.useContext)(w.a),E=Object(O.b)(),{dictAuth:v,allDicts:C}=Object(f.c)(e=>({dictAuth:e.config.dictAuth,allDicts:e.activeProfile.dicts.all}),c.c),k=[],S=[{type:"number",message:a("form.number_error"),required:!0}];if(e){k.push({key:Object(g.b)("dicts","all",e,"selectionLang"),label:a("dict.selectionLang"),help:a("dict.selectionLang_help"),extra:a("config.language_extra"),className:"saladict-form-danger-extra",items:m.j.map(t=>({name:Object(g.b)("dicts","all",e,"selectionLang",t),className:"form-item-inline",valuePropName:"checked",children:i.a.createElement(s.a,null,a("common:lang."+t))}))},{key:Object(g.b)("dicts","all",e,"defaultUnfold"),label:a("dict.defaultUnfold"),help:a("dict.defaultUnfold_help"),extra:a("config.language_extra"),className:"saladict-form-danger-extra",items:m.j.map(t=>({name:Object(g.b)("dicts","all",e,"defaultUnfold",t),className:"form-item-inline",valuePropName:"checked",children:i.a.createElement(s.a,null,a("common:lang."+t))}))},{key:Object(g.b)("dicts","all",e,"selectionWC"),label:a("dict.selectionWC"),help:a("dict.selectionWC_help"),items:[{name:Object(g.b)("dicts","all",e,"selectionWC","min"),label:null,style:{marginBottom:5},rules:S,children:i.a.createElement(b.a,{suffix:a("common:min")})},{name:Object(g.b)("dicts","all",e,"selectionWC","max"),label:null,style:{marginBottom:5},rules:S,children:i.a.createElement(b.a,{suffix:a("common:max")})}]},{name:Object(g.b)("dicts","all",e,"preferredHeight"),label:a("dict.preferredHeight"),help:a("dict.preferredHeight_help"),rules:S,children:i.a.createElement(b.a,{suffix:a("common:max")})}),v[e]&&k.push({key:e+"_auth",label:a("nav.DictAuths"),children:i.a.createElement(l.a,{href:"./?menuselected=DictAuths",onClick:e=>{e.preventDefault(),e.stopPropagation(),E.value?d.a.confirm({title:a("unsave_confirm"),icon:i.a.createElement(o.a,null),okType:"danger",onOk:()=>{Object(O.a)(!1),j("DictAuths")}}):j("DictAuths")}},a("dictAuth.manage"))});const t=C[e].options;t&&k.push(...Object.keys(t).map(o=>{const r=t[o],c={name:`profile.dicts.all.${e}.options.${o}`,label:a(`dicts:${e}.options.${o}`),help:x.exists(`dicts:${e}.helps.${o}`)?a(`dicts:${e}.helps.${o}`):null};switch(typeof r){case"number":c.rules=S,c.children=i.a.createElement(b.a,{suffix:a(`dicts:${e}.options.${o}_unit`)});break;case"string":if("tl"===o||"tl2"===o){const t=n(1190)(`./${e}/engine`).getTranslator,r=t?t().getSupportLanguages().map(e=>"auto"===e?"default":e):C[e].options_sel[o];c.children=i.a.createElement(u.a,null,r.map(e=>i.a.createElement(u.a.Option,{value:e,key:e},"default"===e?"":e+" ",a("langcode:"+e))))}else c.children=i.a.createElement(u.a,null,C[e].options_sel[o].map(t=>i.a.createElement(u.a.Option,{value:t,key:t},a(`dicts:${e}.options.${o}-${t}`))));break;default:c.valuePropName="checked",c.children=i.a.createElement(h.a,null)}return c}))}return i.a.createElement(y.a,{visible:!!e,title:a(`dicts:${e}.name`),items:k,onClose:t})}},724:function(e,t,n){"use strict";n.r(t),n.d(t,"AllDicts",(function(){return u}));var a=n(0),o=n.n(a),r=n(1319),i=n(761),c=n(105),s=n(63),l=n(141),d=n(491);const u=e=>{const t=Object(s.c)(e=>e.activeProfile.dicts.all),n=Object(a.useMemo)(()=>Object(l.a)(t),[t]),u=Object(a.useMemo)(()=>new Set(e.value||[]),[e.value]);return o.a.createElement(r.a,null,o.a.createElement(i.b,{size:"large",dataSource:n,renderItem:n=>o.a.createElement(i.b.Item,null,o.a.createElement("div",{className:"sortable-list-item"},o.a.createElement(d.DictTitle,{dictID:n,dictLangs:t[n].lang}),o.a.createElement(c.a,{checked:u.has(n),onChange:t=>{e.onChange&&e.value&&e.onChange(t?[...e.value,n]:e.value.filter(e=>e!==n))}})))}))}},725:function(e,t,n){"use strict";n.r(t),n.d(t,"StandaloneModal",(function(){return f}));var a=n(0),o=n.n(a),r=n(53),i=n(241),c=n(105),s=n(82),l=n(9),d=n(15),u=n(585),h=n(97),p=n(437),m=n(726);const f=({show:e,onClose:t})=>{const{t:n}=Object(l.e)(["options","common"]),{availHeight:f}=window.screen,[g,b]=Object(a.useState)(!1);return o.a.createElement(o.a.Fragment,null,o.a.createElement(u.a,{title:n(Object(d.a)("qsStandalone")),visible:e,onClose:t,items:[{name:Object(d.a)("qssaSidebar"),children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:""},n("common:none")),o.a.createElement(r.a.Option,{value:"left"},n("locations.LEFT")),o.a.createElement(r.a.Option,{value:"right"},n("locations.RIGHT")))},{name:Object(d.a)("qssaHeight"),hide:e=>e[Object(d.a)("qssaSidebar")],children:o.a.createElement(i.a,{tipFormatter:h.c,min:250,max:f,marks:{250:"250px",[f]:f+"px"}})},{name:Object(d.a)("qssaRectMemo"),valuePropName:"checked",children:o.a.createElement(c.a,null)},{key:"titlebar-offset",label:n("titlebarOffset.title"),help:n("titlebarOffset.help"),children:o.a.createElement(s.a,{onClick:()=>b(!0)},n("titlebarOffset.title"))},{name:Object(d.a)("qssaPageSel"),valuePropName:"checked",children:o.a.createElement(c.a,null)},{...Object(p.searchMode)("qsPanelMode",n),label:n("page_selection")}]}),o.a.createElement(m.TitlebarOffsetModal,{show:g,onClose:()=>b(!1)}))}},726:function(e,t,n){"use strict";n.r(t),n.d(t,"TitlebarOffsetModal",(function(){return g}));var a=n(147),o=n.n(a),r=n(0),i=n.n(r),c=n(191),s=n(150),l=n(82),d=n(136),u=n(241),h=n(310),p=n(205),m=n(97),f=n(9);const g=e=>{const{t:t}=Object(f.e)(["options","common"]),[n,a]=Object(r.useState)(),g=Object(r.useRef)(null);Object(r.useEffect)(()=>{if(e.show)return;let t=!1;return Object(h.b)().then(e=>{t||a(e||{main:0,panel:0})}),()=>{t=!0}},[e.show]);const b=()=>{g.current&&g.current.submit()},y=()=>{g.current&&g.current.isFieldsTouched()?c.a.confirm({title:t("unsave_confirm"),icon:i.a.createElement(o.a,null),okType:"danger",onOk:e.onClose}):e.onClose()};return i.a.createElement(c.a,{title:t("titlebarOffset.title"),visible:e.show&&!!n,onOk:b,onCancel:y,footer:[i.a.createElement(l.a,{key:"calibration",onClick:async()=>{const e=await Object(h.a)();e&&g.current?(g.current.setFieldsValue(e),s.a.destroy(),s.a.success(t("titlebarOffset.calibrateSuccess"))):(s.a.destroy(),s.a.error(t("titlebarOffset.calibrateError")))}},t("titlebarOffset.calibrate")),i.a.createElement(l.a,{key:"cancel",onClick:y},t("common:cancel")),i.a.createElement(l.a,{key:"submit",type:"primary",onClick:b},t("common:save"))]},i.a.createElement("p",null,t("titlebarOffset.help")),i.a.createElement(d.a,{...p.b,initialValues:n,ref:g,onFinish:async n=>{await Object(h.c)(n),s.a.destroy(),s.a.success(t("msg_updated")),e.onClose()}},i.a.createElement(d.a.Item,{name:"main",label:t("titlebarOffset.main"),help:t("titlebarOffset.main_help")},i.a.createElement(u.a,{tipFormatter:m.c,min:0,max:100,marks:{0:"0px",100:"100px"}})),i.a.createElement(d.a.Item,{name:"panel",label:t("titlebarOffset.panel"),help:t("titlebarOffset.panel_help")},i.a.createElement(u.a,{tipFormatter:m.c,min:0,max:100,marks:{0:"0px",100:"100px"}}))))}},74:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return c}));var a=n(113),o=n(81);const r=function(e){return{version:1,id:e||Object(a.a)(),mtaAutoUnfold:"",waveform:!0,stickyFold:!1,dicts:{selected:["bing","cobuild","cambridge","youdao","urban","vocabulary","google","zdic","guoyu","liangan","googledict"],all:Object(o.b)()}}};function i(e){return{id:e||Object(a.a)(),name:"%%_default_%%"}}function c(){const e=i(),t=r(e.id),n=function(){const e=i();e.name="%%_sentence_%%";const t=r(e.id);t.dicts.selected=["jukuu","bing","cnki","renren","eudic","cobuild","cambridge","longman","macmillan"];const n=t.dicts.all;return n.bing.options.tense=!1,n.bing.options.phsym=!1,n.bing.options.cdef=!1,n.bing.options.related=!1,n.bing.options.sentence=9999,n.cnki.options.dict=!1,n.eudic.options.resultnum=9999,n.macmillan.options.related=!1,n.longman.options.wordfams=!1,n.longman.options.collocations=!1,n.longman.options.grammar=!1,n.longman.options.thesaurus=!1,n.longman.options.examples=!0,n.longman.options.bussinessFirst=!1,n.longman.options.related=!1,{idItem:e,profile:t}}(),a=function(){const e=i();e.name="%%_translation_%%";const t=r(e.id);return t.dicts.selected=["google","tencent","baidu","caiyun","youdaotrans","zdic","guoyu","liangan"],t.mtaAutoUnfold="always",{idItem:e,profile:t}}(),o=function(){const e=i();e.name="%%_scholar_%%";const t=r(e.id);t.dicts.selected=["googledict","cambridge","cobuild","etymonline","cnki","macmillan","lexico","websterlearner","google","youdaotrans","zdic","guoyu","liangan"];const n=t.dicts.all;return n.macmillan.defaultUnfold={matchAll:!1,english:!1,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1},n.lexico.defaultUnfold={matchAll:!1,english:!1,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1},n.websterlearner.defaultUnfold={matchAll:!1,english:!1,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1},n.google.selectionWC.min=5,n.youdaotrans.selectionWC.min=5,{idItem:e,profile:t}}(),c=function(){const e=i();e.name="%%_nihongo_%%";const t=r(e.id);return t.dicts.selected=["mojidict","hjdict","weblioejje","weblio","google","tencent","caiyun","googledict","wikipedia"],t.dicts.all.wikipedia.options.lang="ja",t.waveform=!1,{idItem:e,profile:t}}();return{profileIDList:[e,n.idItem,a.idItem,o.idItem,c.idItem],profiles:[t,n.profile,a.profile,o.profile,c.profile]}}},747:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),o=n(150),r=n(141),i=n(29),c=n(9),s=n(63),l=n(576);const d=()=>{const{t:e}=Object(c.e)("options"),t=Object(a.useContext)(l.a),n=Object(s.d)();return async()=>{const{config:a}=n.getState();return!(!a.showedDictAuth&&(await Object(i.f)({...a,showedDictAuth:!0}),Object(r.a)(a.dictAuth).every(e=>Object(r.a)(a.dictAuth[e]).every(t=>{var n;return!(null===(n=a.dictAuth[e])||void 0===n?void 0:n[t])}))))||(o.a.warning(e("msg_first_time_notice"),10),t("DictAuths"),!1)}}},755:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var a=n(533),o=n.n(a),r=n(147),i=n.n(r),c=n(0),s=n.n(c),l=n(22),d=n(389),u=n(240),h=n(191),p=n(136),m=n(82),f=n(9);var g=n(63),b=n(15),y=n(187),w=n(242),O=n(53);const x=({value:e,onChange:t})=>{const{t:n}=Object(f.e)("options"),[a,o]=Object(c.useState)((null==e?void 0:e[1])?"1":"0");return s.a.createElement(w.a,{addonBefore:s.a.createElement(O.a,{value:a,onChange:o,className:"select-before"},s.a.createElement(O.a.Option,{value:"0"},n("matchPattern.regex")),s.a.createElement(O.a.Option,{value:"1"},n("matchPattern.url"))),value:null==e?void 0:e[a],onChange:e=>{"0"===a?t&&t([e.currentTarget.value,""]):t&&t(["",e.currentTarget.value])}})},j=({area:e,onClose:t})=>{const{t:n}=Object(f.e)(["options","common"]),a=Object(c.useRef)(null),r=Object(u.a)(y.a,"idle"),w=Object(g.c)(e=>({pdfWhitelist:e.config.pdfWhitelist,pdfBlacklist:e.config.pdfBlacklist,whitelist:e.config.whitelist,blacklist:e.config.blacklist}),l.c),O=Object(y.b)();Object(d.a)(()=>{e&&"idle"===r&&t()},[r]);const j=e?(e.startsWith("pdf")?"PDF ":"")+n(e.endsWith("hitelist")?"common:whitelist":"common:blacklist"):n("nav.BlackWhiteList");async function E(e,t){if(t[1]){if(t[0]=function(e){if(""===e)return"^(?:http|https|file|ftp|app)://";const t=new RegExp("^(\\*|http|https|ws|wss|file|ftp)://(\\*|(?:\\*\\.)?(?:[^/*]+))?/(.*)$").exec(e);if(!t)return"";let[,n,a,o]=t;if(!a)return"";let r="^";return r+="*"===n?"(http|https)":n,r+="://",a&&"*"===a?r+="[^/]+?":a&&(a.match(/^\*\./)&&(r+="[^/]*?",a=a.substring(2)),r+=a.replace(/\./g,"\\.")),o&&("*"===o?r+="(/.*)?":"/"!==o.charAt(0)&&(r+="/",r+=o.replace(/\./g,"\\.").replace(/\*/g,".*?"),r+="/?")),r+"$"}(t[1]),!t[0])throw new Error(n("matchPattern.url_error"))}else if(t[0])try{RegExp(t[0])}catch(e){throw new Error(n("matchPattern.regex_error"))}}return s.a.createElement(h.a,{visible:!!e,title:j,destroyOnClose:!0,onOk:()=>{a.current&&a.current.submit()},onCancel:()=>{a.current&&a.current.isFieldsTouched()?h.a.confirm({title:n("unsave_confirm"),icon:s.a.createElement(i.a,null),okType:"danger",onOk:t}):t()}},s.a.createElement("p",null,s.a.createElement(f.c,{message:n("matchPattern.description")},s.a.createElement("a",{href:"https://developer.mozilla.org/zh-CN/Add-ons/WebExtensions/Match_patterns#范例",target:"_blank",rel:"nofollow noopener noreferrer"},n("matchPattern.url")),s.a.createElement("a",{href:"https://deerchao.cn/tutorials/regex/regex.htm",target:"_blank",rel:"nofollow noopener noreferrer"},n("matchPattern.regex")))),s.a.createElement(p.a,{ref:a,wrapperCol:{span:24},initialValues:e?{patterns:w[e]}:{},onFinish:t=>{if(e){const n=t.patterns;O({[Object(b.a)(e)]:(n||[]).filter(e=>e[0])})}}},s.a.createElement(p.a.List,{name:"patterns"},(e,{add:t})=>s.a.createElement("div",null,e.map(e=>s.a.createElement(p.a.Item,{key:e.key,...e,validateTrigger:["onChange","onBlur"],hasFeedback:!0,rules:[{validator:E}]},s.a.createElement(x,null))),s.a.createElement(p.a.Item,null,s.a.createElement(m.a,{type:"dashed",block:!0,onClick:()=>t(["",""])},s.a.createElement(o.a,null)," ",n("common:add")))))))}},770:function(e,t,n){},78:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(165),o=n(166),r=n(167),i=n(168),c=n(169);const s={baidu:a.auth,caiyun:o.auth,sogou:r.auth,tencent:i.auth,youdaotrans:c.auth};var l=n(2);const d=browser.i18n.getUILanguage(),u="zh-CN"===d?"zh-CN":"zh-TW"===d||"zh-HK"===d?"zh-TW":"en",h=function(){return{version:14,active:!0,runInBg:!1,analytics:!0,updateCheck:!0,noTypeField:!1,animation:!0,langCode:u,panelWidth:450,panelMaxHeightRatio:80,bowlOffsetX:15,bowlOffsetY:-45,darkMode:!1,panelCSS:"",fontSize:13,pdfSniff:!1,pdfStandalone:"",pdfWhitelist:[],pdfBlacklist:[["^(http|https)://[^/]*?cnki\\.net(/.*)?$","*://*.cnki.net/*"],["^(http|https)://[^/]*?googleusercontent\\.com(/.*)?$","*://*.googleusercontent.com/*"],["^(http|https)://sh-download\\.weiyun\\.com(/.*)?$","*://sh-download.weiyun.com/*"]],searchHistory:!1,searchHistoryInco:!1,editOnFav:!0,searchSuggests:!0,touchMode:!1,mode:{icon:!0,direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},pinMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},panelMode:{direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},qsPanelMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!0,meta:!1},instant:{enable:!1,key:"alt",delay:600}},bowlHover:!0,doubleClickDelay:450,tripleCtrl:!0,qsPreload:"clipboard",qsAuto:!0,qsLocation:"CENTER",qsFocus:!0,defaultPinned:!1,qsStandalone:!0,qssaHeight:600,qssaSidebar:"",qssaPageSel:!0,qssaRectMemo:!1,baWidth:-1,baHeight:550,baPreload:"selection",baAuto:!1,baOpen:"popup_panel",ctxTrans:{google:!0,youdaotrans:!0,baidu:!0,tencent:!1,caiyun:!1,sogou:!1},language:{chinese:!0,english:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},autopron:{cn:{dict:"",list:["zdic","guoyu"]},en:{dict:"",list:["bing","cambridge","cobuild","eudic","longman","macmillan","lexico","urban","websterlearner","youdao"],accent:"uk"},machine:{dict:"",list:["google","sogou","tencent","baidu","caiyun"],src:"trans"}},whitelist:[],blacklist:[["^https://stackedit\\.io(/.*)?$","https://stackedit.io/*"],["^https://docs\\.google\\.com(/.*)?$","https://docs.google.com/*"],["^https://docs\\.qq\\.com(/.*)?$","https://docs.qq.com/*"]],contextMenus:{selected:l.c||!u.startsWith("zh-")?["view_as_pdf","google_translate","saladict"]:["view_as_pdf","caiyuntrs","google_translate","saladict"],all:{baidu_page_translate:"x",baidu_search:"https://www.baidu.com/s?ie=utf-8&wd=%s",bing_dict:"https://cn.bing.com/dict/?q=%s",bing_search:"https://www.bing.com/search?q=%s",caiyuntrs:"x",cambridge:"http://dictionary.cambridge.org/spellcheck/english-chinese-simplified/?q=%s",copy_pdf_url:"x",dictcn:"https://dict.eudic.net/dicts/en/%s",etymonline:"http://www.etymonline.com/index.php?search=%s",google_cn_page_translate:"x",google_page_translate:"x",google_search:"https://www.google.com/#newwindow=1&q=%s",google_translate:"https://translate.google.com/#auto/zh-CN/%s",google_cn_translate:"https://translate.google.cn/#auto/zh-CN/%s",guoyu:"https://www.moedict.tw/%s",iciba:"http://www.iciba.com/%s",liangan:"https://www.moedict.tw/~%s",longman_business:"http://www.ldoceonline.com/search/?q=%s",merriam_webster:"http://www.merriam-webster.com/dictionary/%s",microsoft_page_translate:"x",oxford:"http://www.oxforddictionaries.com/us/definition/english/%s",saladict:"x",saladict_standalone:"x",sogou_page_translate:"x",sogou:"https://fanyi.sogou.com/#auto/zh-CHS/%s",termonline:"https://www.termonline.cn/list.htm?k=%s",view_as_pdf:"x",youdao_page_translate:"x",youdao:"http://dict.youdao.com/w/%s",youglish:"https://youglish.com/search/%s"}},showedDictAuth:!1,dictAuth:JSON.parse(JSON.stringify(s))}}},786:function(e,t,n){"use strict";n.r(t),n.d(t,"AnkiConnectModal",(function(){return b}));var a=n(147),o=n.n(a),r=n(0),i=n.n(r),c=n(191),s=n(82),l=n(136),d=n(105),u=n(242),h=n(172),p=n(181),m=n(535),f=n(107),g=n(9);const b=e=>{const{t:t,i18n:n}=Object(g.e)(["options","common","sync"]),[a,b]=Object(r.useState)(!1),y=Object(r.useRef)(null);return i.a.createElement(c.a,{visible:e.show,title:t("sync:ankiconnect.title"),onOk:w,onCancel:O,destroyOnClose:!0,footer:[i.a.createElement(s.a,{key:"verify",disabled:a,loading:a,onClick:async function(){const e=j();if(!e)return;b(!0);const n=new m.Service(e);try{await x(n),confirm(t("syncService.ankiconnect.upload_confirm"))&&await n.add({force:!0})}catch(e){E(e)}b(!1)}},t("syncService.ankiconnect.verify")),i.a.createElement(s.a,{key:"save",type:"primary",disabled:a,onClick:w},t("common:save")),i.a.createElement(s.a,{key:"cancel",onClick:O},t("common:cancel"))]},i.a.createElement(l.a,{ref:y,initialValues:e.syncConfig||m.Service.getDefaultConfig(),labelCol:{span:5},wrapperCol:{span:18},onFinish:async function(){const t=j();if(!t)return;if(t.enable){b(!0);const e=new m.Service(t);try{await x(e)}catch(e){return b(!1),E(e)}b(!1)}try{await Object(f.g)(m.Service.id,t),e.onClose()}catch(e){E(e)}}},i.a.createElement("p",null,t("syncService.ankiconnect.description"),i.a.createElement("a",{href:"https://saladict.crimx.com/anki.html",target:"_blank",rel:"nofollow noopener noreferrer"},t("tutorial"))),i.a.createElement(l.a.Item,{name:"enable",label:t("common:enable"),help:t("syncService.ankiconnect.enable_help"),valuePropName:"checked"},i.a.createElement(d.a,null)),i.a.createElement(l.a.Item,{name:"host",label:t("syncService.ankiconnect.host"),hasFeedback:!0,rules:[{required:!0}]},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"port",label:t("syncService.ankiconnect.port"),hasFeedback:!0,rules:[{required:!0}]},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"key",label:t("syncService.ankiconnect.key"),help:t("syncService.ankiconnect.key_help")},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"deckName",label:t("syncService.ankiconnect.deckName"),help:t("syncService.ankiconnect.deckName_help"),hasFeedback:!0,rules:[{required:!0}]},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"noteType",label:t("syncService.ankiconnect.noteType"),help:t("syncService.ankiconnect.noteType_help"),hasFeedback:!0,rules:[{required:!0}]},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"tags",label:t("syncService.ankiconnect.tags"),help:t("syncService.ankiconnect.tags_help")},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{label:t("syncService.ankiconnect.escapeHTML"),help:t("syncService.ankiconnect.escapeHTML_help")},i.a.createElement(l.a.Item,{name:"escapeContext",className:"form-item-inline",valuePropName:"checked"},i.a.createElement(h.a,null,t("common:note.context"))),i.a.createElement(l.a.Item,{name:"escapeTrans",className:"form-item-inline",valuePropName:"checked"},i.a.createElement(h.a,null,t("common:note.trans"))),i.a.createElement(l.a.Item,{name:"escapeNote",className:"form-item-inline",valuePropName:"checked"},i.a.createElement(h.a,null,t("common:note.note")))),i.a.createElement(l.a.Item,{name:"syncServer",label:t("syncService.ankiconnect.syncServer"),help:t("syncService.ankiconnect.syncServer_help"),valuePropName:"checked"},i.a.createElement(d.a,null))));function w(){y.current&&y.current.submit()}function O(){y.current&&y.current.isFieldsTouched()?c.a.confirm({title:t("syncService.close_confirm"),icon:i.a.createElement(o.a,null),okType:"danger",onOk:e.onClose}):e.onClose()}async function x(e){try{await e.init(),p.a.success({message:t("syncService.ankiconnect.verified")})}catch(n){switch("string"==typeof n?n:n.message){case"deck":if(confirm(t("syncService.ankiconnect.deck_confirm",{deck:e.config.deckName})))try{return await e.addDeck(),x(e)}catch(n){return void p.a.error({message:"Error",description:t("syncService.ankiconnect.deck_error",{deck:e.config.deckName})})}else confirm(t("syncService.ankiconnect.add_yourself"));break;case"notetype":if(confirm(t("syncService.ankiconnect.notetype_confirm",{noteType:e.config.noteType})))try{return await e.addNoteType(),x(e)}catch(n){return void p.a.error({message:"Error",description:t("syncService.ankiconnect.notetype_error",{noteType:e.config.noteType})})}else confirm(t("syncService.ankiconnect.add_yourself"));break;default:throw n}}}function j(){if(y.current)return y.current.getFieldsValue();p.a.error({message:"Error",description:t("sync:ankiconnect.error.internal")})}function E(e){const a="string"==typeof e?e:e.message,o="sync:ankiconnect.error."+a,r=n.exists(o)?t(o):a;p.a.error({message:"Error",description:r})}};t.default=b},787:function(e,t,n){"use strict";n.r(t),n.d(t,"ShanbayModal",(function(){return m}));var a=n(0),o=n.n(a),r=n(191),i=n(105),c=n(82),s=n(150),l=n(181),d=n(536),u=n(107),h=n(11),p=n(9);const m=e=>{const{t:t,i18n:n}=Object(p.e)(["options","common","sync"]),[m,f]=Object(a.useState)(()=>e.syncConfig||d.Service.getDefaultConfig());return Object(a.useEffect)(()=>{e.syncConfig&&f(e.syncConfig)},[e.syncConfig]),o.a.createElement(r.a,{visible:e.show,title:t("sync:shanbay.title"),destroyOnClose:!0,onCancel:e.onClose,footer:null},o.a.createElement("p",null,t("syncService.shanbay.description")),o.a.createElement("div",{style:{textAlign:"center",marginBottom:20}},t("common:enable"),":",o.a.createElement(i.a,{checked:m.enable,onChange:async function(e){const n={...m,enable:e};if(e){const e=new d.Service(n);try{await e.init()}catch(e){return void r.a.confirm({title:t("syncService.shanbay.login"),onOk:()=>{d.Service.openLogin()}})}}try{await Object(u.g)("shanbay",n),f(n),s.a.destroy(),s.a.success(t("msg_updated"))}catch(e){l.a.error({message:t("config.opt.upload_error"),description:""+e})}}})),m.enable&&o.a.createElement("div",{style:{textAlign:"center"}},o.a.createElement(c.a,{onClick:async function(){const{total:e}=await Object(h.b)("notebook",{itemsPerPage:1,filters:{}});if(e>50&&!confirm(t("syncService.shanbay.sync_all_confirm")))return;await g()},style:{marginRight:10}},t("syncService.shanbay.sync_all")),o.a.createElement(c.a,{onClick:async function(){const{words:e}=await Object(h.b)("notebook",{itemsPerPage:1,filters:{}});if(!e||e.length<=0)return;await g(e)}},t("syncService.shanbay.sync_last"))));async function g(e){s.a.destroy(),s.a.success(t("syncService.start"),0);const a=new d.Service(m);try{const n=await a.addInternal({words:e,force:!0});s.a.destroy(),n>0?s.a.info(t("syncService.finished")):s.a.success(t("syncService.success"))}catch(e){if("words"===e)return;const a="sync:shanbay.error."+e;l.a.error({message:t("syncService.failed"),description:n.exists(a)?t(a):""+e})}}};t.default=m},788:function(e,t,n){"use strict";n.r(t),n.d(t,"WebdavModal",(function(){return y}));var a=n(147),o=n.n(a),r=n(0),i=n.n(r),c=n(191),s=n(82),l=n(136),d=n(105),u=n(242),h=n(181),p=n(150),m=n(505),f=n(107),g=n(9),b=n(537);const y=e=>{const{t:t,i18n:n}=Object(g.e)(["options","common","sync"]),[a,y]=Object(r.useState)(!1),w=Object(r.useRef)(null);return i.a.createElement(c.a,{visible:e.show,title:t("sync:webdav.title"),onOk:O,onCancel:x,destroyOnClose:!0,footer:[i.a.createElement(s.a,{key:"delete",type:"primary",danger:!0,onClick:function(){c.a.confirm({title:t("syncService.delete_confirm"),onOk:()=>async function(e){try{await e(),p.a.destroy(),p.a.success(t("msg_updated"))}catch(e){h.a.error({message:"Error",description:e.message})}}(async()=>{await Object(f.d)(m.Service.id),e.onClose()})})}},t("common:delete")),i.a.createElement(s.a,{key:"verify",disabled:a,loading:a,onClick:async function(){const e=j();if(!e)return;y(!0);const n=new m.Service(e);try{if(!e.url)throw new Error("network");try{await n.init()}catch(e){if("exist"!==("string"==typeof e?e:e.message))throw e;confirm(t("syncService.webdav.exist_confirm"))&&await n.download({noCache:!0})}confirm(t("syncService.webdav.upload_confirm"))&&await n.add({force:!0}),h.a.success({message:t("syncService.webdav.verified")})}catch(e){E(e)}y(!1)}},t("syncService.webdav.verify")),i.a.createElement(s.a,{key:"save",type:"primary",disabled:a,onClick:O},t("common:save")),i.a.createElement(s.a,{key:"cancel",onClick:x},t("common:cancel"))]},i.a.createElement(l.a,{ref:w,initialValues:e.syncConfig||m.Service.getDefaultConfig(),labelCol:{span:5},wrapperCol:{span:18},onFinish:async function(){const t=j();if(!t)return;if(t.enable){if(!t.url)return E("network");y(!0);const e=new m.Service(t);try{if(!await e.checkDir())throw new Error("missing")}catch(e){return y(!1),E(e)}e.setMeta({}),y(!1)}try{await Object(f.g)(m.Service.id,t),e.onClose()}catch(e){E(e)}}},i.a.createElement("p",null,t("syncService.webdav.description"),i.a.createElement("a",{href:"http://help.jianguoyun.com/?p=2064",target:"_blank",rel:"noopener noreferrer"},t("syncService.webdav.jianguo"))),i.a.createElement(l.a.Item,{name:"enable",label:t("common:enable"),valuePropName:"checked"},i.a.createElement(d.a,null)),i.a.createElement(l.a.Item,{name:"url",label:t("syncService.webdav.url"),hasFeedback:!0,rules:[{type:"url",message:t("form.url_error"),required:!0}]},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"user",label:t("syncService.webdav.user")},i.a.createElement(u.a,null)),i.a.createElement(l.a.Item,{name:"passwd",label:t("syncService.webdav.passwd")},i.a.createElement(u.a,{type:"password"})),i.a.createElement(l.a.Item,{name:"duration",label:t("syncService.webdav.duration"),extra:t("syncService.webdav.duration_help"),rules:[{type:"number",message:t("form.number_error"),required:!0}]},i.a.createElement(b.a,{suffix:t("common:unit.mins")}))));function O(){w.current&&w.current.submit()}function x(){w.current&&w.current.isFieldsTouched()?c.a.confirm({title:t("syncService.close_confirm"),icon:i.a.createElement(o.a,null),okType:"danger",onOk:e.onClose}):e.onClose()}function j(){if(!w.current)return void h.a.error({message:"Error",description:t("sync:webdav.error.internal")});const e=w.current.getFieldsValue();return{...e,url:e.url&&!e.url.endsWith("/")?e.url+="/":e.url}}function E(e){const a="string"==typeof e?e:e.message,o="sync:webdav.error."+a,r=n.exists(o)?t(o):a;h.a.error({message:"Error",description:r})}};t.default=y},80:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var a=n(1),o=n(2);async function r(e,t){try{const n=await a.a.send({type:"FETCH_DICT_RESULT",payload:{id:t,text:e,payload:{isPDF:Object(o.i)()}}});return n&&n.result&&n.result.trans&&n.result.trans.paragraphs.join("\n")||""}catch(e){return""}}async function i(e,t){return(await Promise.all(Object.keys(t).map(async n=>{let a="";if(t[n])try{a=await r(e,n)}catch(e){console.warn(e)}return{id:n,content:a}}))).reduce((e,{id:t,content:n})=>(e[t]=n,e),{})}function c(e){const t=/\[:: (\w+) ::\]\n([\s\S]+?)(?=(?:\[:: \w+ ::\])|(?:-{15}))/g;let n;const a={};for(;null!==(n=t.exec(e));)a[n[1]]=n[2].replace(/\n+$/g,"");return a}function s(e,t){const n=Object.keys(t).filter(e=>t[e]);if(n.length<=0)return e;const a=n.map(e=>`[:: ${e} ::]\n`+t[e]).join("\n\n")+`\n${"".padEnd(15,"-")}\n`;if(!e)return a;const o=/\[:: (\w+) ::\]\n([\s\S]+?)-{15}/;return o.test(e)?e.replace(o,a):e+"\n\n"+a}},81:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var a=n(17);const o={baidu:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{},{}),bing:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{tense:!0,phsym:!0,cdef:!0,related:!0,sentence:4}},caiyun:Object(a.b)(["zh-CN","en","ja"],{lang:"11010000"},{},{}),cambridge:{lang:"11100000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{lang:"default",related:!0},options_sel:{lang:["default","en","en-chs","en-chz"]}},cnki:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:100},options:{dict:!0,senbi:!0,seneng:!0}},cobuild:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:5},options:{cibaFirst:(browser.i18n.getUILanguage()||"en").startsWith("zh-")}},etymonline:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{resultnum:4,chart:!0}},eudic:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:10}},google:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{cnfirst:!0,concurrent:!1},{}),googledict:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{enresult:!0}},guoyu:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!0}},hjdict:{lang:"10011111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:10},options:{related:!0,chsas:"jp/jc",engas:"w",uas:"fr",aas:"fr",eas:"fr"},options_sel:{chsas:["jp/cj","jp/jc","kr","w","fr","de","es"],engas:["w","fr","de","es"],uas:["fr","de","es"],aas:["fr","de"],eas:["fr","es"]}},jikipedia:{lang:"01000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:380,selectionWC:{min:1,max:5},options:{resultnum:4}},jukuu:{lang:"11010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:99999},options:{lang:"zheng"},options_sel:{lang:["zheng","engjp","zhjp"]}},lexico:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{related:!0}},liangan:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!1}},longman:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{wordfams:!1,collocations:!0,grammar:!0,thesaurus:!0,examples:!0,bussinessFirst:!0,related:!0}},macmillan:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:5},options:{related:!0,locale:"uk"},options_sel:{locale:["uk","us"]}},mojidict:{lang:"10010000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5}},naver:{lang:"01011000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!0,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:10},options:{hanAsJa:!1,korAsJa:!1}},renren:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},sogou:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru"],{},{},{}),tencent:Object(a.b)(["zh-CN","en","ja","ko","fr","de","es","ru"],{lang:"11011111"},{},{}),urban:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},vocabulary:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5}},weblio:{lang:"00010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:20}},weblioejje:{lang:"10010000",selectionLang:{english:!0,chinese:!1,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},websterlearner:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{defs:!0,phrase:!0,derived:!0,arts:!0,related:!0}},wikipedia:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:420,selectionWC:{min:1,max:999999999999999},options:{lang:"auto"},options_sel:{lang:["auto","zh","zh-cn","zh-tw","zh-hk","en","ja","fr","de"]}},youdao:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:999999999999999},options:{basic:!0,collins:!0,discrimination:!0,sentence:!0,translation:!1,related:!0}},youdaotrans:Object(a.b)(["zh-CN","en","pt","es","ja","ko","fr","ru"],{lang:"11011111"},{},{}),zdic:{lang:"01000000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:5},options:{audio:!1}}},r=()=>JSON.parse(JSON.stringify(o))},821:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(61),o=n(5);const r=e=>"https://cn.bing.com/dict/search?q="+encodeURIComponent(e.replace(/\s+/g," ")),i="https://cn.bing.com",c=(e,t,n,r)=>{const c=n.dicts.all.bing;return Object(a.a)("https://cn.bing.com/dict/clientsearch?mkt=zh-CN&setLang=zh&form=BDVEHC&ClientVer=BDDTV3.5.1.4320&q="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(async e=>{const n=await Object(o.b)(t.langCode);return e.querySelector(".client_def_hd_hd")?function(e,t,n){const a={result:{type:"lex",title:Object(o.f)(e,".client_def_hd_hd",n)}};if(t.phsym){const t=Array.from(e.querySelectorAll(".client_def_hd_pn_list"));t.length>0&&(a.result.phsym=t.map(e=>{let t="";const n=e.querySelector(".client_aud_o");return n&&(t=((n.getAttribute("onclick")||"").match(/https.*\.mp3/)||[""])[0]),{lang:Object(o.f)(e,".client_def_hd_pn"),pron:t}}),a.audio=a.result.phsym.reduce((e,{lang:t,pron:n})=>(/us|美/i.test(t)?e.us=n:/uk|英/i.test(t)&&(e.uk=n),e),{}))}if(t.cdef){const t=e.querySelector(".client_def_container");if(t){const e=Array.from(t.querySelectorAll(".client_def_bar"));e.length>0&&(a.result.cdef=e.map(e=>({pos:Object(o.f)(e,".client_def_title_bar",n),def:Object(o.f)(e,".client_def_list",n)})))}}if(t.tense){const t=Array.from(e.querySelectorAll(".client_word_change_word"));t.length>0&&(a.result.infs=t.map(e=>(e.textContent||"").trim()))}if(t.sentence>0){const r=e.querySelectorAll(".client_sentence_list"),c=[];for(let e=0;e<r.length&&c.length<t.sentence;e++){const t=r[e];let a="";const s=t.querySelector(".client_aud_o");s&&(a=((s.getAttribute("onclick")||"").match(/https.*\.mp3/)||[""])[0]),t.querySelectorAll(".client_sen_en_word").forEach(e=>{e.outerHTML=Object(o.f)(e)}),t.querySelectorAll(".client_sen_cn_word").forEach(e=>{e.outerHTML=Object(o.f)(e,n)}),t.querySelectorAll(".client_sentence_search").forEach(e=>{e.outerHTML=`<span class="dictBing-SentenceItem_HL">${Object(o.f)(e)}</span>`}),c.push({en:Object(o.d)(i,t,".client_sen_en"),chs:Object(o.d)(i,t,{selector:".client_sen_cn",transform:n}),source:Object(o.f)(t,".client_sentence_list_link"),mp3:a})}a.result.sentences=c}if(Object.keys(a.result).length>2)return a;return Object(o.h)()}(e,c.options,n):e.querySelector(".client_trans_head")?function(e,t){const n=Object(o.f)(e,".client_sen_cn",t);if(n)return{result:{type:"machine",mt:n}};return Object(o.h)()}(e,n):c.options.related&&e.querySelector(".client_do_you_mean_title_bar")?function(e,t,n){const a={result:{type:"related",title:Object(o.f)(e,".client_do_you_mean_title_bar",n),defs:[]}};if(e.querySelectorAll(".client_do_you_mean_area").forEach(e=>{const t=e.querySelectorAll(".client_do_you_mean_list");t.length>0&&a.result.defs.push({title:Object(o.f)(e,".client_do_you_mean_title",n),meanings:Array.from(t).map(e=>{const t=Object(o.f)(e,".client_do_you_mean_list_word",n);return{href:"https://cn.bing.com/dict/search?q="+t,word:t,def:Object(o.f)(e,".client_do_you_mean_list_def",n)}})})}),a.result.defs.length>0)return a;return Object(o.h)()}(e,0,n):Object(o.h)()})}},822:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return c})),n.d(t,"getSrcPage",(function(){return s})),n.d(t,"search",(function(){return l}));var a=n(19),o=n(823),r=n(17),i=n(542);const c=Object(a.a)(()=>new o.Caiyun({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.CAIYUN_TOKEN?{token:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.CAIYUN_TOKEN}:void 0})),s=()=>"https://fanyi.caiyunapp.com/",l=async(e,t,n,a)=>{const o=c(),s=o.getSupportLanguages();let{sl:l,tl:d,text:u}=await Object(r.a)(o,e,n.dicts.all.caiyun,t,a);const h=Object(i.getTranslator)();let p;try{p=await h.translate(u,l,d),s.includes(p.from)&&(l=p.from)}catch(e){}const m=t.dictAuth.caiyun.token,f=m?{token:m}:void 0;try{const e=await o.translate(u,l,d,f);return e.origin.tts=await h.textToSpeech(e.origin.paragraphs.join("\n"),e.from),e.trans.tts=await h.textToSpeech(e.trans.paragraphs.join("\n"),e.to),Object(r.c)({result:{id:"caiyun",sl:e.from,tl:e.to,slInitial:n.dicts.all.caiyun.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},s)}catch(e){return Object(r.c)({result:{id:"caiyun",sl:l,tl:d,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},824:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return s}));var a=n(61),o=n(119),r=n(5);const i=async(e,t,n)=>{let{lang:a}=n.dicts.all.cambridge.options;if("default"===a)switch(t.langCode){case"zh-CN":a="en-chs";break;case"zh-TW":a="en-chz";break;default:a="en"}switch(a){case"en":return"https://dictionary.cambridge.org/search/direct/?datasetsearch=english&q="+encodeURIComponent(e.trim().split(/\s+/).join("-"));case"en-chs":return"https://dictionary.cambridge.org/zhs/%E6%90%9C%E7%B4%A2/direct/?datasetsearch=english-chinese-simplified&q="+encodeURIComponent(e);case"en-chz":{const t=await Object(r.b)();return"https://dictionary.cambridge.org/zht/%E6%90%9C%E7%B4%A2/direct/?datasetsearch=english-chinese-traditional&q="+encodeURIComponent(t(e))}}},c="https://dictionary.cambridge.org",s=async(e,t,n,s)=>Object(a.a)(await i(e,t,n)).catch(r.g).then(e=>function(e,t){const n=[],a=[],i={};if(e.querySelectorAll(".entry-body__el").forEach((e,t)=>{if(!Object(r.f)(e,".headword"))return;const s=e.querySelector(".pos-header");s&&(s.querySelectorAll(".dpron-i").forEach(e=>{const t=e.querySelector(".daud");if(!t)return;const n=t.querySelector('source[type="audio/mpeg"]');if(!n)return;const a=Object(r.c)(c,n,"src");a&&(t.replaceWith(Object(o.d)(a)),!i.uk&&e.classList.contains("uk")&&(i.uk=a),!i.us&&e.classList.contains("us")&&(i.us=a))}),Object(r.i)(s,".share")),l(e);const d="d-cambridge-entry"+t;n.push({id:d,html:Object(r.d)(c,e)}),a.push({key:"#"+t,value:d,label:"#"+Object(r.f)(e,".di-title")+" "+Object(r.f)(e,".posgram")})}),n.length<=0){const t=e.querySelector(".idiom-block");t&&(Object(r.i)(t,".bb.hax"),l(t),n.push({id:"d-cambridge-entry-idiom",html:Object(r.d)(c,t)}))}if(n.length<=0&&t.related){const t=e.querySelector("link[rel=canonical]");if(t&&/dictionary\.cambridge\.org\/([^/]+\/)?spellcheck\//.test(t.getAttribute("href")||"")){const t=e.querySelector(".hfl-s.lt2b.lmt-10.lmb-25.lp-s_r-20");t&&n.push({id:"d-cambridge-entry-related",html:Object(r.d)(c,t)})}}if(n.length>0)return{result:n,audio:i,catalog:a};return Object(r.h)()}(e,n.dicts.all.cambridge.options));function l(e){return e.querySelectorAll(".daccord_h").forEach(e=>{e.parentElement.classList.add("amp-accordion")}),e.querySelectorAll("amp-img").forEach(e=>{const t=document.createElement("img");t.setAttribute("src",Object(r.c)(c,e,"src"));const n=["width","height","title"];for(const a of n){const n=e.getAttribute(a);n&&t.setAttribute(a,n)}e.replaceWith(t)}),e.querySelectorAll("amp-audio").forEach(e=>{const t=e.querySelector("source");if(t){const n=Object(r.c)(c,t,"src");if(n)return void e.replaceWith(Object(o.d)(n))}e.remove()}),e.querySelectorAll("a.had").forEach(r.a),e}},825:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(61),o=n(5);const r=e=>"http://dict.cnki.net/old/dict_result.aspx?scw="+encodeURIComponent(e),i="http://dict.cnki.net/old",c=(e,t,n,r)=>Object(a.a)("http://dict.cnki.net/old/dict_result.aspx?scw="+encodeURIComponent(e),{withCredentials:!1}).catch(o.g).then(e=>function(e,t){const n=[...e.querySelectorAll(".main-table")],a={dict:[],senbi:[],seneng:[]};if(t.dict){const e=n.find(e=>Boolean(e.querySelector('img[src="images/02.gif"]')));e&&(a.dict=[...e.querySelectorAll(".zztj li")].map(e=>{const t=(e.textContent||"").trim();if(t){const n=e.querySelector("a:nth-of-type(2)");if(n){const e=Object(o.c)(i,n,"href");if(e)return{word:t,href:e}}}}).filter(e=>Boolean(e)))}t.senbi&&(a.senbi=s(n,'img[src="images/word.jpg"]',"showjd_"));t.seneng&&(a.seneng=s(n,'img[src="images/dian_ywlj.gif"]',"showlj_"));if(a.dict.length>0||a.senbi.length>0||a.seneng.length>0)return{result:a};return Object(o.h)()}(e,n.dicts.all.cnki.options));function s(e,t,n){const a=e.find(e=>Boolean(e.querySelector(t)));return a?[...a.querySelectorAll(`[id^=${n}]`)].map(e=>{let t="";return e.querySelectorAll("td[align=right]").forEach(e=>{if("更多"===(e.textContent||"").trim()){const n=e.querySelector("a");n&&(t=Object(o.c)(i,n,"href"))}e.remove()}),{title:Object(o.f)(e.previousElementSibling).trim(),more:t,sens:[...e.querySelectorAll("td")].map(e=>Object(o.d)(i,e).replace(/ /g,""))}}):[]}},826:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var a=n(61),o=n(5),r=n(119);const i=e=>"https://www.collinsdictionary.com/dictionary/english/"+encodeURIComponent(e.replace(/\s+/g,"-")),c=async(e,t,n,r)=>{e=encodeURIComponent(e.replace(/\s+/g,"-"));const{options:i}=n.dicts.all.cobuild,c=["https://www.collinsdictionary.com/dictionary/english/","https://www.collinsdictionary.com/zh/dictionary/english/"];i.cibaFirst&&c.reverse();try{return s(await Object(a.a)(c[0]+e),t)}catch(n){let r;try{r=await Object(a.a)(c[1]+e)}catch(e){return Object(o.g)()}return s(r,t)}};async function s(e,t){const n=await Object(o.b)(t.langCode),a={type:"collins",sections:[]},i={};return a.sections=[...e.querySelectorAll("[data-type-block]")].filter(e=>{const t=e.dataset.typeBlock||"";return t&&"Video"!==t&&"Trends"!==t&&"英语词汇表"!==t&&"趋势"!==t}).map(e=>{const a=e.dataset.typeBlock||"",c=e.dataset.titleBlock||"",s=e.dataset.numBlock||"",d=a+c+s,u=e.className||"";if("Learner"===a){if(!i.uk){const t=l(e);t&&(i.uk=t)}}else"English"===a?i.uk=l(e):"American"===a&&(i.us=l(e));const h=e.querySelector("#videos .video");if(h){const e=h.querySelector(".youtube-video");if(e&&e.dataset.embed){const n=t.panelWidth-25;return{id:d,className:u,type:a,title:c,num:s,content:`<iframe width="${n}" height="${n/560*315}" src="https://www.youtube-nocookie.com/embed/${e.dataset.embed}" frameborder="0" allow="accelerometer; encrypted-media"></iframe>`}}}return e.querySelectorAll(".audio_play_button").forEach(e=>{e.replaceWith(Object(r.d)(e.dataset.srcMp3))}),e.querySelectorAll("a.type-thesaurus").forEach(o.a),{id:d,className:u,type:a,title:c,num:s,content:Object(o.d)("https://www.collinsdictionary.com",e,{transform:n})}}),a.sections.length>0?{result:a,audio:i}:Object(o.h)()}function l(e){const t=e.querySelector(".pron .audio_play_button");if(t){const e=t.dataset.srcMp3;if(e)return e}}},827:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(61),o=n(5);const r=e=>"http://www.etymonline.com/search?q="+e,i="https://www.etymonline.com",c=(e,t,n,r)=>{const c=n.dicts.all.etymonline.options;return e=encodeURIComponent(e.replace(/\s+/g," ")),Object(a.a)("https://www.etymonline.com/word/"+e).catch(()=>Object(a.a)("https://www.etymonline.com/search?q="+e)).catch(o.g).then(e=>function(e,t){const n=[],a=[],r=Array.from(e.querySelectorAll('[class*="word--"]'));for(let e=0;e<r.length&&n.length<t.resultnum;e++){const c=r[e],s=Object(o.f)(c,'[class*="word__name--"]');if(!s)continue;let l="";const d=c.querySelector('[class*="word__defination--"]>*');if(d&&(d.querySelectorAll(".crossreference").forEach(e=>{const t=Object(o.f)(e),n=document.createElement("a");n.target="_blank",n.href="https://www.etymonline.com/word/"+t,n.textContent=t,e.replaceWith(n)}),l=Object(o.d)(i,d)),!l)continue;const u=Object(o.c)(i,c,"href");let h="";if(t.chart){const e=c.querySelector('[class*="chart--"] img');e&&(h=Object(o.c)(i,e,"src"))}const p="d-etymonline-entry"+e;n.push({id:p,href:u,title:s,def:l,chart:h}),a.push({key:"#"+e,value:p,label:"#"+s})}if(n.length>0)return{result:n,catalog:a};return Object(o.h)()}(e,c))}},828:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return i}));var a=n(61),o=n(5);const r=e=>"https://dict.eudic.net/dicts/en/"+e,i=(e,t,n,r)=>{e=encodeURIComponent(e.split(/\s+/).slice(0,2).join(" "));const i=n.dicts.all.eudic.options;return Object(a.a)("https://dict.eudic.net/dicts/en/"+e,{withCredentials:!1}).catch(o.g).then(c).then(e=>function(e,{resultnum:t}){const n=[],a={},r=Array.from(e.querySelectorAll("#lj_ting .lj_item"));for(let e=0;e<r.length&&n.length<t;e++){const t=r[e],i={chs:"",eng:""};if(i.chs=Object(o.f)(t,".exp"),!i.chs)continue;if(i.eng=Object(o.f)(t,".line"),!i.eng)continue;i.channel=Object(o.f)(t,".channel_title");const c=t.getAttribute("source");if(c){const e="https://fs-gateway.eudic.net/store_main/sentencemp3/"+c+".mp3";i.mp3=e,a.us||(a.us=e,a.uk=e)}n.push(i)}if(n.length>0)return{result:n,audio:a};return Object(o.h)()}(e,i))};function c(e){if(e.querySelector("#TingLiju"))return e;const t=e.querySelector("#page-status");if(!t||!t.value)return Object(o.h)();const n=new FormData;return n.append("status",t.value),Object(a.a)("https://dict.eudic.net/Dicts/en/tab-detail/-12",{method:"POST",data:n,withCredentials:!1})}},829:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return i})),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return s}));var a=n(19),o=n(830),r=n(17);const i=Object(a.a)(()=>new o.Google({env:"ext"})),c=(e,t,n)=>`https://translate.google.${n.dicts.all.google.options.cnfirst?"cn":"com"}/#auto/${"default"===n.dicts.all.google.options.tl?t.langCode:n.dicts.all.google.options.tl}/${e}`,s=async(e,t,n,a)=>{const o=n.dicts.all.google.options,c=i(),{sl:s,tl:l,text:d}=await Object(r.a)(c,e,n.dicts.all.google,t,a);try{const e=await c.translate(d,s,l,{token:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.GOOGLE_TOKEN||"",concurrent:o.concurrent,order:o.cnfirst?["cn","com"]:["com","cn"],apiAsFallback:!0});return Object(r.c)({result:{id:"google",sl:e.from,tl:e.to,slInitial:n.dicts.all.google.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},c.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"google",sl:s,tl:l,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},c.getSupportLanguages())}}},831:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var a=n(5),o=n(119),r=n(61);const i=e=>"https://www.google.com.hk/search?hl=en&safe=off&q=meaning:"+encodeURIComponent(e.toLowerCase().replace(/\s+/g,"+")),c=async(e,t,n,i)=>{const c=n.dicts.all.googledict.options.enresult?"hl=en&gl=en&":"",l=encodeURIComponent(e.toLowerCase().replace(/\s+/g,"+"));try{return await Object(r.b)(`https://www.google.com/search?hl=en&safe=off&${c}q=meaning:${l}`).catch(a.g).then(d)}catch(e){return await Object(r.b)(`https://www.google.com/search?hl=en&safe=off&${c}q=define:${l}`).catch(a.g).then(d)}function d(t){const n=(new DOMParser).parseFromString(t,"text/html");(function(e){const t=[],n=/\(function\(\)\{window\.jsl\.dh\('([^']+)','([^']+)'\);\}\)\(\);/g;let a;for(;a=n.exec(e);)t.push({id:a[1],innerHTML:a[2].replace(/\\x([\da-f]{2})/gi,s).replace(/\\[u]([\da-f]{4})/gi,s)});return t})(t).forEach(({id:e,innerHTML:t})=>{try{const a=n.querySelector("#"+e);a&&(a.innerHTML=t)}catch(e){}});const r=n.querySelector(".lr_container");if(r){r.querySelectorAll(".vkc_np").forEach(e=>{(e.querySelector(".zbA8Me")||e.querySelector("#dw-siw")||e.querySelector("#tl_select"))&&e.remove()}),Object(a.j)(r,".lr_dct_trns_h"),Object(a.j)(r,".S5TwIf"),Object(a.j)(r,".VZVCid"),Object(a.j)(r,".u7XA4b"),Object(a.i)(r,"[jsname=L4Nn5e]"),r.querySelectorAll("audio").forEach(t=>{const n=t.querySelector("source");let r=n&&Object(a.c)("https://ssl.gstatic.com",n,"src");r||(r="https://www.google.com/speech-api/v1/synthesize?enc=mpeg&lang=zh-cn&speed=0.4&client=lr-language-tts&use_google_only_voices=1&text="+encodeURIComponent(e)),t.replaceWith(Object(o.d)(r))}),r.querySelectorAll("[role=listitem] > [jsname=F457ec]").forEach(e=>{e.innerHTML=`<a>${Object(a.f)(e)}</a>`,e.removeAttribute("style"),e.classList.add("MR2UAc"),e.classList.add("I6a0ee"),e.classList.remove("cO53qb")}),r.querySelectorAll("g-img > img").forEach(e=>{const t=e.getAttribute("title");t&&e.setAttribute("src",t)}),function(e){const t=/google.ldi={([^}]+)}/.exec(e);if(t)try{const e=JSON.parse(`{${t[1]}}`);return Object.keys(e).map(t=>({id:t,src:e[t]}))}catch(e){}return[]}(t).forEach(({id:e,src:t})=>{try{const n=r.querySelector("#"+e);n&&n.setAttribute("src",t)}catch(e){}});const i=Object(a.d)("https://www.google.com",r,{config:{ADD_TAGS:["g-img"],ADD_ATTR:["jsname","jsaction"]}}).replace(/synonyms:/g,"syn:").replace(/antonyms:/g,"ant:"),c=[];return n.querySelectorAll("style").forEach(e=>{const t=Object(a.f)(e);t&&/\.xpdxpnd|\.lr_container/.test(t)&&c.push(t)}),{result:{entry:i,styles:c}}}return Object(a.h)()}};function s(e,t){return String.fromCharCode(parseInt(t,16))}},832:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return l}));var a=n(24),o=n(5),r=n(119),i=n(61);const c=(e,t,n)=>`https://www.hjdict.com/${u(e,n)}/${encodeURIComponent(e)}`,s="https://www.hjdict.com",l=async(e,t,n,a)=>{const c={HJ_SITEID:3,HJ_UID:h(),HJ_SID:h(),HJ_SSID:h(),HJID:0,HJ_VT:2,HJ_SST:1,HJ_CSST:1,HJ_ST:1,HJ_CST:1,HJ_T:+new Date,_:h(16)};await Promise.all(Object.keys(c).map(e=>browser.cookies.set({url:"https://www.hjdict.com",domain:"hjdict.com",name:e,value:String(c[e])})));const l=a.langCode||u(e,n);return Object(i.a)(`https://www.hjdict.com/${l}/${encodeURIComponent(e)}`,{withCredentials:!0}).catch(o.g).then(e=>function(e,t,n){if(e.querySelector(".word-notfound"))return d(n);const a=e.querySelector(".word-suggestions");if(a)return t.related?{result:{type:"related",langCode:n,content:Object(o.d)(s,a)}}:d(n);let i="";const c=e.querySelector(".word-details-multi .word-details-header");c&&(c.querySelectorAll(".word-details-tab").forEach((e,t)=>{e.dataset.categories=String(t)}),i=Object(o.d)(s,c));e.querySelectorAll(".word-audio").forEach(e=>{e.replaceWith(Object(r.d)(e.dataset.src))});const l=[...e.querySelectorAll(".word-details-pane")].map((e,t)=>`\n <div class="word-details-pane${0===t?" word-details-pane-active":""}">\n <div class="word-details-pane-header">\n ${Object(o.d)(s,e,".word-details-pane-header")}\n </div>\n <div class="word-details-pane-content">\n ${Object(o.d)(s,e,".word-details-pane-content")}\n </div>\n </div>\n `);return l.length>0?{result:{type:"lex",header:i,entries:l,langCode:n}}:d(n)}(e,n.dicts.all.hjdict.options,l))};function d(e){return{result:{type:"related",langCode:e,content:'<p style="text-align:center;">No Result</p>'}}}function u(e,t){return/\u00fc/i.test(e)?t.dicts.all.hjdict.options.uas:/\u00e4/i.test(e)?t.dicts.all.hjdict.options.aas:/\u00e9/i.test(e)?t.dicts.all.hjdict.options.eas:Object(a.f)(e)?"fr":Object(a.d)(e)?"de":Object(a.i)(e)?"es":Object(a.e)(e)?t.dicts.all.hjdict.options.engas:Object(a.g)(e)?"jp/jc":Object(a.h)(e)?"kr":Object(a.c)(e)?t.dicts.all.hjdict.options.chsas:"w"}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n="";if("number"==typeof e)for(let t=0;t<e;t++){n+=Math.floor(10*Math.random())%2==0?"x":"y"}else n=e||"xxxxxxxx-xyxx-yxxx-xxxy-xxyxxxxxxxxx";return("number"!=typeof t||t<2||t>36)&&(t=16),n.replace(/[xy]/g,(function(e){const n=Math.random()*t|0;return("x"===e?n:3&n|8).toString(t)}))}},833:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(61),o=n(5);const r=e=>"https://jikipedia.com/search?phrase="+encodeURIComponent(e),i="https://jikipedia.com",c=(e,t,n,r)=>{const c=n.dicts.all.jikipedia.options;return Object(a.a)("https://jikipedia.com/search?phrase="+encodeURIComponent(e)).catch(o.g).then(e=>function(e,{resultnum:t}){const n=e.querySelectorAll(".lite-card");if(n.length<1)return Object(o.h)();e.querySelectorAll(".ad-card").forEach(e=>e.remove());const a=[];for(const e of n){if(a.length>=t)break;const n={title:Object(o.f)(e,".title"),content:Object(o.d)(i,e,".content"),likes:Number(Object(o.f)(e,".like-count"))||0};if(!n.content)continue;const r=e.querySelector("a.card-content");r&&(n.url=Object(o.c)(i,r,"href"));const c=e.querySelector(".author a");c&&(n.author={name:Object(o.f)(c),url:Object(o.c)(i,c,"href")}),a.push(n)}return a.length>0?{result:a}:Object(o.h)()}(e,c))}},834:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var a=n(61),o=n(5);function r(e,t){switch(e=encodeURIComponent(e.replace(/\s+/g,"+")),t){case"engjp":return"http://www.jukuu.com/jsearch.php?q="+e;case"zhjp":return"http://www.jukuu.com/jcsearch.php?q="+e;default:return"http://www.jukuu.com/search.php?q="+e}}const i=(e,t,n)=>r(e,n.dicts.all.jukuu.options.lang),c=(e,t,n,i)=>{const c=i.lang||n.dicts.all.jukuu.options.lang;return Object(a.a)(r(e,c)).catch(o.g).then(s).then(e=>e.length>0?{result:{lang:c,sens:e}}:Object(o.h)())};function s(e){return[...e.querySelectorAll("tr.e")].map(e=>{const t=e.lastElementChild;if(!t)return;Object(o.j)(t,"img");const n=e.nextElementSibling;if(!n||!n.classList.contains("c"))return;const a=n.nextElementSibling;return{trans:Object(o.d)("http://www.jukuu.com",t),original:Object(o.f)(n),src:a&&a.classList.contains("s")?Object(o.f)(a).replace(/^[\s-]*/,""):""}}).filter(e=>Boolean(e&&e.trans))}},835:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return l}));var a=n(61),o=n(5),r=n(119);const i=e=>"https://www.lexico.com/definition/"+e.trim().replace(/\s+/g,"_"),c=i,s="https://www.lexico.com",l=(e,t,n,c)=>{const{options:l}=n.dicts.all.lexico;return Object(a.a)(i(e)).catch(o.g).then(e=>{const t=e.querySelector(".no-exact-matches");if(t){if(l.related){const e=t.querySelectorAll(".similar-results .search-results li a");if(e.length>0){return{result:{type:"related",list:[...e].map(e=>({href:Object(o.c)(s,e,"href"),text:Object(o.f)(e)}))}}}}return Object(o.h)()}return function(e){const t=e.querySelector(".entryWrapper");if(t){let e;return Object(o.i)(t,".breadcrumbs"),Object(o.j)(t,".socials"),Object(o.j)(t,".homographs"),Object(o.j)(t,".associatedTranslation"),t.querySelectorAll(".entryHead header > h1").forEach(e=>{var t;(null===(t=e.textContent)||void 0===t?void 0:t.trim().startsWith("Meaning of"))&&e.remove()}),t.querySelectorAll('a[data-value="view synonyms"]').forEach(e=>Object(o.a)(e)),[...t.querySelectorAll(".headwordAudio"),...t.querySelectorAll(".speaker")].forEach(t=>{const n=t.querySelector("audio"),a=n&&Object(o.c)(s,n,"src");t.replaceWith(Object(r.d)(a)),a&&!e&&(e=a)}),{result:{type:"lex",entry:Object(o.d)(s,t)},audio:e?{uk:e}:void 0}}return Object(o.h)()}(e)})}},836:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return i}));var a=n(5),o=n(637);const r=async e=>"https://www.moedict.tw/~"+(await Object(a.b)())(e),i=(e,t,n,a)=>Object(o.moedictSearch)("c",e,t,n.dicts.all.liangan.options).then(e=>(e.result.h&&e.result.h.forEach(e=>{e.p&&(e.p=e.p.replace("<br>陸⃝"," [大陆]: "))}),e))},837:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return s}));var a=n(61),o=n(5),r=n(119);const i=e=>"https://www.ldoceonline.com/dictionary/"+e.trim().split(/\s+/).join("-"),c="https://www.ldoceonline.com",s=(e,t,n,i)=>{const s=n.dicts.all.longman.options;return Object(a.a)("http://www.ldoceonline.com/dictionary/"+e.toLocaleLowerCase().replace(/[^A-Za-z0-9]+/g,"-")).catch(o.g).then(e=>function(e,t){if(e.querySelector(".dictentry"))return function(e,t){const n={type:"lex",bussinessFirst:t.bussinessFirst,contemporary:[],bussiness:[]},a={};e.querySelectorAll(".speaker.exafile").forEach(e=>{const t=e.dataset.srcMp3;if(t){const n=e.parentElement;e.replaceWith(Object(r.d)(t)),n&&n.classList.contains("EXAMPLE")&&n.classList.add("withSpeaker")}}),t.wordfams&&(n.wordfams=Object(o.d)(c,e,".wordfams"));const i=e.querySelectorAll(".dictentry");let s="";for(let e=0;e<i.length;e++){const r=i[e],l=r.querySelector(".dictionary_intro");if(l){const e=l.textContent||"";s=e.includes("Contemporary")?"contemporary":e.includes("Business")?"bussiness":""}if(!s)continue;const d={title:{HWD:"",HYPHENATION:"",HOMNUM:""},prons:[],senses:[]},u=r.querySelector("a.topic");u&&(d.topic={title:u.textContent||"",href:Object(o.c)(c,u,"href")});const h=r.querySelector(".Head");if(!h)continue;d.title.HWD=Object(o.f)(h,".HWD"),d.title.HYPHENATION=Object(o.f)(h,".HYPHENATION"),d.title.HOMNUM=Object(o.f)(h,".HOMNUM"),d.phsym=Object(o.f)(h,".PronCodes");const p=h.querySelector(".LEVEL");if(p){const e={rate:0,title:""};e.rate=((p.textContent||"").match(/●/g)||[]).length,e.title=p.title,d.level=e}d.freq=Array.from(h.querySelectorAll(".FREQ")).map(e=>({title:e.title,rank:e.textContent||""})),d.pos=Object(o.f)(h,".POS"),h.querySelectorAll(".speaker").forEach(e=>{let t="us";e.title.includes("British")&&(t="uk");const n=e.getAttribute("data-src-mp3")||"";a[t]=n,d.prons.push({lang:t,pron:n})}),d.senses=Array.from(r.querySelectorAll(".Sense")).map(e=>Object(o.d)(c,e)),t.collocations&&(d.collocations=Object(o.d)(c,r,".ColloBox")),t.grammar&&(d.grammar=Object(o.d)(c,r,".GramBox")),t.thesaurus&&(d.thesaurus=Object(o.d)(c,r,".ThesBox")),t.examples&&(d.examples=Array.from(r.querySelectorAll(".exaGroup")).map(e=>Object(o.d)(c,e))),n[s].push(d)}if(n.contemporary.length<=0&&n.bussiness.length<=0)return Object(o.h)();return{result:n,audio:a}}(e,t);if(t.related)return function(e){const t=e.querySelector(".didyoumean");if(t)return{result:{type:"related",list:Object(o.d)(c,t)}};return Object(o.h)()}(e);return Object(o.h)()}(e,s))}},838:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(61),o=n(5);const r=(e,t,n)=>`http://www.macmillandictionary.com/dictionary/${"us"===n.dicts.all.macmillan.options.locale?"american":"british"}/`+encodeURIComponent(e.toLocaleLowerCase().replace(/[^A-Za-z0-9]+/g,"-")),i="http://www.macmillandictionary.com",c=async(e,t,n,c)=>{const s=n.dicts.all.macmillan.options;return async function(e){const t=await Object(a.a)(e);return Object(o.j)(t,".visible-xs"),t}(c.href||await r(e,t,n)).catch(o.g).then(e=>async function(e,t){if(e.querySelector(".senses"))return function(e){const t=e.querySelector("#entryContent .left-content");if(!t)return Object(o.h)();const n={type:"lex",title:Object(o.f)(t,".big-title .BASE"),senses:"",toggleables:[],relatedEntries:[]};if(!n.title)return Object(o.h)();if(t.querySelectorAll("a.moreButton").forEach(o.a),n.senses=Object(o.d)(i,t,".senses"),!n.senses)return Object(o.h)();Object(o.i)(t,".senses"),n.pos=Object(o.f)(t,".entry-pron-head .PART-OF-SPEECH"),n.sc=Object(o.f)(t,".entry-pron-head .SYNTAX-CODING"),n.phsym=Object(o.f)(t,".entry-pron-head .PRON"),n.ratting=t.querySelectorAll(".entry-red-star").length,t.querySelectorAll(".toggleable").forEach(e=>{n.toggleables.push(Object(o.e)(i,e))}),e.querySelectorAll(".related-entries-item a").forEach(e=>{const t=e.querySelector(".PART-OF-SPEECH");t&&(t.textContent=Object(o.f)(t).toUpperCase()),n.relatedEntries.push({title:Object(o.f)(e),href:Object(o.c)(i,e,"href")})});const a={},r=t.querySelector(".entry-pron-head .PRONS .sound");r&&r.dataset.srcMp3&&(n.pron=r.dataset.srcMp3,a.uk=n.pron);return{result:n,audio:a}}(e);if(t.related){const t=[...e.querySelectorAll(".display-list li a")].map(e=>({title:Object(o.f)(e),href:Object(o.c)(i,e,"href")}));if(t.length>0)return{result:{type:"related",list:t}}}return Object(o.h)()}(e,s))}},839:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c})),n.d(t,"getTTS",(function(){return l}));var a=n(5),o=n(131),r=n.n(o);const i=async e=>{const t=await s(e).catch(()=>null);if(t){const e=t.searchResults&&t.searchResults[0]&&t.searchResults[0].tarId;if(e)return"https://www.mojidict.com/details/"+e}return"https://www.mojidict.com"},c=async(e,t,n,o)=>{var i,c;const u=await s(e),h=null===(i=u.searchResults)||void 0===i||null===(c=i[0])||void 0===c?void 0:c.tarId;if(!h)return Object(a.h)();const{data:{result:p}}=await r()({method:"post",url:"https://api.mojidict.com/parse/functions/fetchWord_v2",headers:{"content-type":"text/plain"},data:d({wordId:h})}),m={};return p&&(p.details||p.word)?(p.word&&(m.word={tarId:h,spell:p.word.spell,pron:`${p.word.pron||""} ${p.word.accent||""}`}),p.details&&(m.details=p.details.map(e=>{var t;return{objectId:e.objectId,title:e.title,subdetails:null==p||null===(t=p.subdetails)||void 0===t?void 0:t.filter(t=>t.detailsId===e.objectId).map(e=>{var t;return{objectId:e.objectId,title:e.title,examples:null==p||null===(t=p.examples)||void 0===t?void 0:t.filter(t=>t.subdetailsId===e.objectId)}})}})),u.words&&(null==u?void 0:u.words.length)>1&&(m.releated=u.words.map(e=>({title:`${e.spell} | ${e.pron||""} ${e.accent||""}`,excerpt:e.excerpt})).slice(1)),m.word&&"mojidict"===t.autopron.cn.dict?(m.word.tts=await l(h,102),{result:m,audio:{py:m.word.tts}}):{result:m}):Object(a.h)()};async function s(e){try{const{data:{result:t}}=await r()({method:"post",url:"https://api.mojidict.com/parse/functions/search_v3",headers:{"content-type":"text/plain"},data:d({langEnv:"zh-CN_ja",needWords:!0,searchText:e})});return t||Object(a.h)()}catch(e){return Object(a.g)()}}async function l(e,t){try{var n,a;const{data:o}=await r()({method:"post",url:"https://api.mojidict.com/parse/functions/fetchTts_v2",headers:{"content-type":"text/plain"},data:d({tarId:e,tarType:t})});return(null===(n=o.result)||void 0===n||null===(a=n.result)||void 0===a?void 0:a.url)||""}catch(e){!1}return""}function d(e){return JSON.stringify({_ApplicationId:"E62VyFVLMiW7kvbtVq3p",_ClientVersion:"js2.12.0",_InstallationId:u()+u()+"-"+u()+"-"+u()+"-"+u()+"-"+u()+u()+u(),...e})}function u(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}},840:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c}));var a=n(61),o=n(5),r=n(24);const i=e=>Object(r.g)(e)?"https://ja.dict.naver.com/search.nhn?range=all&q="+encodeURIComponent(e):"https://zh.dict.naver.com/#/search?query="+encodeURIComponent(e),c=(e,t,n,i)=>{const{options:c}=n.dicts.all.naver;return"ja"===i.lang||c.hanAsJa||Object(r.g)(e)||c.korAsJa&&Object(r.h)(e)?async function(e){try{var t=await Object(a.a)("https://ja.dict.naver.com/search.nhn?range=all&q="+encodeURIComponent(e))}catch(e){return Object(o.g)()}const n=t.querySelector("#content");if(!n)return Object(o.h)();return Object(o.j)(n,".sorting"),Object(o.j)(n,".info_userent"),Object(o.j)(n,".view_ctrl"),Object(o.j)(n,".go_register"),Object(o.j)(n,".section_banner"),Object(o.j)(n,".conjugate"),{result:{lang:"ja",entry:Object(o.d)("https://ja.dict.naver.com",n)}}}(e):async function(e){try{var t=await Object(a.a)("http://m.cndic.naver.com/search/all?sLn=zh_CN&fromNewVer&q="+encodeURIComponent(e))}catch(e){return Object(o.g)()}let n=t.querySelector("#ct");if(!n)return Object(o.h)();return n=n.querySelector("#ct")||n,Object(o.j)(n,".recent_searches"),Object(o.j)(n,".m_tab"),Object(o.j)(n,".con_clt"),Object(o.j)(n,".info_userent"),Object(o.j)(n,".go_register"),Object(o.j)(n,".section_banner"),Object(o.j)(n,".spi_area"),Object(o.j)(n,".word_otr.word_line"),Object(o.j)(n,".common_btn_wrap.my_vlive_pageBar"),n.querySelectorAll("a.more_d").forEach(o.a),{result:{lang:"zh",entry:Object(o.d)("http://m.cndic.naver.com",n)}}}(e)}},841:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c})),n.d(t,"getDetail",(function(){return l}));var a=n(61),o=n(5);const r=e=>"https://www.91dict.com/words?w="+encodeURIComponent(e.replace(/\s+/g,"+")),i="https://www.91dict.com",c=(e,t,n,r)=>Object(a.a)("https://www.91dict.com/words?w="+encodeURIComponent(e.replace(/\s+/g,"+"))).catch(o.g).then(s);function s(e){const t=[],n=e.querySelectorAll(".tmInfo .slides > li");return n.length<=0?Object(o.h)():(n.forEach(e=>{const n=Object(o.f)(e.querySelector(".mTop")).trim();if(!n)return;const a=d(e);if(!a)return;const r={key:"",title:n,detail:"",slide:a,context:[]},c=e.querySelector(".viewdetail");c&&(r.detail=Object(o.c)(i,c,"href")),e.querySelectorAll(".mTextend .box").forEach(e=>{const t=Object(o.f)(e,".sty1");t&&r.context.push({title:t,content:[...e.querySelectorAll(".sty2 > *")].map(e=>Object(o.f)(e))})}),r.key=n+a.cover,t.push(r)}),t.length>0?{result:t}:Object(o.h)())}async function l(e){const t=[];try{(await Object(a.a)(e)).querySelectorAll(".item li").forEach(e=>{const n=d(e);n&&t.push(n)})}catch(e){console.warn(e)}return t}function d(e){const t={cover:"",mp3:"",en:"",chs:""},n=e.querySelector("img");if(!n)return null;const a=Object(o.c)(i,n,"src");if(!a)return null;t.cover=a;const r=e.querySelector(".mTop audio");return r&&(t.mp3=Object(o.c)(i,r,"src")),t.en=Object(o.d)(i,e,".mBottom"),t.chs=Object(o.f)(e,".mFoot").trim(),t}},842:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return l})),n.d(t,"search",(function(){return d}));var a=n(61),o=n(5),r=n(131),i=n.n(r),c=n(507),s=n.n(c);const l=e=>"https://www.shanbay.com/bdc/mobile/preview/word?word="+e,d=(e,t,n)=>{const r=n.dicts.all.shanbay.options;return Object(a.a)("https://www.shanbay.com/bdc/mobile/preview/word?word="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(e=>function(e,t){if(!e.querySelector(".error-typo"))return async function(e,t){const n=e.querySelector(".word-spell"),a={id:"shanbay",type:"lex",title:Object(o.f)(e,".word-spell"),pattern:Object(o.f)(e,".pattern"),prons:[],sentences:[]},r={uk:"http://media.shanbay.com/audio/uk/"+a.title+".mp3",us:"http://media.shanbay.com/audio/us/"+a.title+".mp3"};a.prons.push({phsym:Object(o.f)(e,".word-announace"),url:r.us}),t.basic&&(a.basic=Object(o.d)("http://www.shanbay.com",e,".definition-cn"));a.wordId=n&&n.getAttribute("data-id"),t.sentence&&a.wordId&&(a.sentences=await(c=a.wordId,i.a.get(`https://www.shanbay.com/api/v1/bdc/example/?vocabulary_id=${c}&type=sys`).then(({data:{data:e}})=>Array.isArray(e)?e.map(e=>({annotation:s.a.sanitize(e.annotation),translation:s.a.sanitize(e.translation)})):[])));var c;if(a.title)return{result:a,audio:r};return Object(o.h)()}(e,t);return Object(o.h)()}(e,r))}},843:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return i})),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return s}));var a=n(19),o=n(844),r=n(17);const i=Object(a.a)(()=>new o.Sogou({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.SOGOU_PID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.SOGOU_KEY?{pid:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.SOGOU_PID,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.SOGOU_KEY}:void 0})),c=(e,t,n)=>`https://fanyi.sogou.com/#auto/${"default"===n.dicts.all.sogou.options.tl?"zh-CN"===t.langCode?"zh-CHS":"zh-TW"===t.langCode?"zh-CHT":"en":n.dicts.all.sogou.options.tl}/${e}`,s=async(e,t,n,a)=>{if(!t.dictAuth.sogou.pid)return Object(r.c)({result:{requireCredential:!0,id:"sogou",sl:"auto",tl:"auto",slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},[]);const o=i(),{sl:c,tl:s,text:l}=await Object(r.a)(o,e,n.dicts.all.sogou,t,a),d={pid:t.dictAuth.sogou.pid,key:t.dictAuth.sogou.key};try{const e=await o.translate(l,c,s,d);return Object(r.c)({result:{id:"sogou",sl:e.from,tl:e.to,slInitial:n.dicts.all.sogou.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"sogou",sl:c,tl:s,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},845:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return c})),n.d(t,"getSrcPage",(function(){return s})),n.d(t,"search",(function(){return l}));var a=n(19),o=n(846),r=n(17),i=n(542);const c=Object(a.a)(()=>new o.Tencent({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.TENCENT_SECRETID&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.TENCENT_SECRETKEY?{secretId:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.TENCENT_SECRETID,secretKey:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.TENCENT_SECRETKEY}:void 0})),s=(e,t,n)=>`https://fanyi.qq.com/#auto/${"default"===n.dicts.all.tencent.options.tl?"zh-CN"===t.langCode?"zh-CHS":"zh-TW"===t.langCode?"zh-CHT":"en":n.dicts.all.tencent.options.tl}/${e}`,l=async(e,t,n,a)=>{const o=c(),{sl:s,tl:l,text:d}=await Object(r.a)(o,e,n.dicts.all.tencent,t,a),u=t.dictAuth.tencent.secretId,h=t.dictAuth.tencent.secretKey,p=u&&h?{secretId:u,secretKey:h}:void 0;try{const e=await o.translate(d,s,l,p),t=Object(i.getTranslator)();return e.origin.tts=await t.textToSpeech(e.origin.paragraphs.join("\n"),e.from),e.trans.tts=await t.textToSpeech(e.trans.paragraphs.join("\n"),e.to),Object(r.c)({result:{id:"tencent",sl:e.from,tl:e.to,slInitial:n.dicts.all.tencent.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"tencent",sl:s,tl:l,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},847:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(61),o=n(5);const r=e=>"http://www.urbandictionary.com/define.php?term="+e,i="https://www.urbandictionary.com",c=(e,t,n,r)=>{const c=n.dicts.all.urban.options;return Object(a.a)("http://www.urbandictionary.com/define.php?term="+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(e=>function(e,{resultnum:t}){const n=[],a={},r=Array.from(e.querySelectorAll(".def-panel"));if(r.length<=0)return Object(o.h)();for(let e=0;e<r.length&&n.length<t;e++){const t=r[e],c={title:""};if(c.title=Object(o.f)(t,".word"),!c.title)continue;const s=t.querySelector(".play-sound");if(s&&s.dataset.urls)try{const e=JSON.parse(s.dataset.urls)[0];e&&(c.pron=e,a.us=e)}catch(e){}if(c.meaning=Object(o.d)(i,t,".meaning"),/There aren't any definitions for/i.test(c.meaning||""))continue;c.example=Object(o.d)(i,t,".example");const l=t.querySelector(".gif > img");if(l){const e=l.nextElementSibling;c.gif={src:l.src,attr:Object(o.f)(e)}}const d=Array.from(t.querySelectorAll(".tags a"));d&&d.length>0&&(c.tags=d.map(e=>(e.textContent||" ").slice(1))),c.contributor=Object(o.f)(t,".contributor"),c.thumbsUp=Object(o.f)(t,".thumbs .up .count"),c.thumbsDown=Object(o.f)(t,".thumbs .down .count"),n.push(c)}return n.length>0?{result:n,audio:a}:Object(o.h)()}(e,c))}},848:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return i}));var a=n(61),o=n(5);const r=e=>"https://www.vocabulary.com/dictionary/"+e,i=(e,t,n,r)=>Object(a.a)("https://www.vocabulary.com/dictionary/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(c);function c(e){const t=Object(o.f)(e,".short");if(!t)return Object(o.h)();const n=Object(o.f)(e,".long");return n?{result:{long:n,short:t}}:Object(o.h)()}},849:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(61),o=n(5);const r=e=>"https://www.weblio.jp/content/"+e,i="https://www.weblio.jp",c=(e,t,n,r)=>Object(a.a)("https://www.weblio.jp/content/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(s);function s(e){const t=[],n=e.querySelectorAll("#cont>.pbarT .pbarTL>a");return e.querySelectorAll("#cont>.kijiWrp>.kiji").forEach((e,a)=>{const r=n[a];r&&"百科事典"!==r.title&&t.push({title:Object(o.e)(i,r,{config:{}}),def:Object(o.d)(i,e,{config:{}})})}),t.length<=0&&e.querySelectorAll(".section-card .basic-card").forEach(e=>{const n=Object(o.f)(e,".pbarT h2");n&&(Object(o.i)(e,".pbarT"),t.push({title:n,def:Object(o.d)(i,e,{config:{}})}))}),t.length>0?{result:t}:Object(o.h)()}},850:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return s}));var a=n(61),o=n(5),r=n(119);const i=e=>"https://ejje.weblio.jp/content/"+encodeURIComponent(e.replace(/\s+/g,"+")),c="https://ejje.weblio.jp",s=(e,t,n,r)=>Object(a.a)(i(e,t,n)).catch(o.g).then(l);function l(e){const t=[];return e.querySelectorAll(".mainBlock").forEach(e=>{if("summary"===e.id){let n="";const a=e.querySelector(".summaryTbl");if(a){n+=Object(o.e)(c,a,".summaryL h1");const e=a.querySelector(".summaryC audio source");e&&(n+=Object(r.e)(e.getAttribute("src"))),a.outerHTML=`<div class="summaryHead">${n}</div>`}return Object(o.j)(e,"#leadBtnWrp"),Object(o.j)(e,".addLmFdWr"),Object(o.j)(e,".flex-rectangle-ads-frame"),Object(o.j)(e,".outsideLlTable"),void t.push({content:Object(o.e)(c,e)})}if(!e.className.includes("hlt_")||e.classList.contains("hlt_CPRHT")||e.classList.contains("hlt_RLTED"))return;let n="",a=e.querySelector(".wrp");if(a){if(n=Object(o.f)(a,".dictNm"),n.includes("Wiktionary"))return;a.remove()}else a=e.querySelector(".qotH"),a&&(n=Object(o.f)(a,".qotHT"),a.remove());Object(o.j)(e,".hideDictWrp"),Object(o.j)(e,".kijiFoot"),Object(o.j)(e,".addToSlBtnCntner"),e.querySelectorAll(".fa-volume-up").forEach(e=>{const t=e.querySelector("source");t&&e.replaceWith(Object(r.d)(t.getAttribute("src")))}),e.querySelectorAll("br").forEach(e=>{e.classList.add("br"),e.outerHTML=`<div class="${e.className}"></div>`}),e.querySelectorAll("a").forEach(e=>{e.classList.contains("crosslink")||Object(o.a)(e)}),t.push({title:n,content:Object(o.e)(c,e)})}),t.length>0?{result:t}:Object(o.h)()}},851:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(61),o=n(5);const r=e=>"http://www.learnersdictionary.com/definition/"+e.trim().split(/\s+/).join("-"),i="http://www.learnersdictionary.com",c=(e,t,n,r)=>{const c=n.dicts.all.websterlearner.options;return Object(a.a)("http://www.learnersdictionary.com/definition/"+e.toLocaleLowerCase().replace(/[^A-Za-z0-9]+/g,"-")).catch(o.g).then(e=>function(e,t){const n=e.querySelector('[id^="spelling"] .links');if(!n)return function(e,t){e.querySelectorAll(".d_hidden").forEach(e=>e.remove());const n={type:"lex",items:[]},a={};if(e.querySelectorAll(".entry").forEach(e=>{const r={title:""},c=e.querySelector(".hw_d");if(!c)return;const s=c.querySelector(".play_pron");if(s){const e=(s.dataset.lang||"").replace("_","/"),t=s.dataset.dir||"",n=s.dataset.file||"";r.pron=`http://media.merriam-webster.com/audio/prons/${e}/mp3/${t}/${n}.mp3`,a.us=r.pron,s.remove()}r.title=Object(o.d)(i,c);const l=e.querySelector(".hw_infs_d");if(l){const e=l.querySelector(".play_pron");if(e){const t=(e.dataset.lang||"").replace("_","/"),n=e.dataset.dir||"",a=e.dataset.file||"";r.infsPron=`http://media.merriam-webster.com/audio/prons/${t}/mp3/${n}/${a}.mp3`,e.remove()}r.infs=Object(o.d)(i,l)}r.labels=Object(o.d)(i,e,".labels"),t.defs&&(r.senses=Object(o.d)(i,e,".sblocks")),t.phrase&&(r.phrases=Object(o.d)(i,e,".dros")),t.derived&&(r.derived=Object(o.d)(i,e,".uros")),t.arts&&(r.arts=Array.from(e.querySelectorAll(".arts img")).map(e=>e.src)),(r.senses||r.phrases||r.derived||r.arts&&r.arts.length>0)&&n.items.push(r)}),n.items.length>0)return{result:n,audio:a};return Object(o.h)()}(e,t);if(t.related)return{result:{type:"related",list:Object(o.d)(i,n)}};return Object(o.h)()}(e,c))}},852:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return c})),n.d(t,"fetchLangList",(function(){return s}));var a=n(61),o=n(24),r=n(5);const i=(e,t,n)=>{const{lang:a}=n.dicts.all.wikipedia.options;return`https://${l(e,a)}.wikipedia.org/${a.startsWith("zh-")?a:"wiki"}/${encodeURIComponent(e)}`},c=(e,t,n,o)=>{const{lang:i}=n.dicts.all.wikipedia.options;let c=l(e,i),s=o.url;if(s){const e=s.match(/([^/.]+)\.m\.wikipedia\.org/);e?c=e[1]:s=s.replace(/^\//,`https://${c}.m.wikipedia.org/`)}else{const t=i.startsWith("zh-")?i:"wiki";s=`https://${c}.m.wikipedia.org/${t}/${encodeURIComponent(e)}`}return Object(a.a)(s).catch(r.g).then(e=>function(e,t){if([...e.querySelectorAll("#mf-section-0 b")].some(e=>{const t=e.textContent;return"The article that you're looking for doesn't exist."===t||"维基百科目前还没有与上述标题相同的条目。"===t}))return Object(r.h)();const n=Object(r.f)(e,"#section_0");if(!n)return Object(r.h)();e.querySelectorAll("#bodyContent .section-heading").forEach(e=>{e.classList.add("collapsible-heading");const t=e.querySelector(".mw-ui-icon");t&&(t.classList.add("mw-ui-icon-mf-arrow"),t.classList.remove("mf-mw-ui-icon-rotate-flip"))});const a=Object(r.e)(`https://${t}.wikipedia.org/`,e,{selector:"#bodyContent",config:{}});if(!a)return Object(r.h)();let o="",i=e.querySelector("a.language-selector");i||(i=e.querySelector(".language-selector a"));i&&(o=Object(r.c)(`https://${t}.m.wikipedia.org/`,i,"href"));return{result:{title:n,content:a,langSelector:o}}}(e,c))};function s(e){return Object(a.a)(e).then(d).catch(e=>(console.error("dict wikipedia: fetch langlist failed",e),[]))}function l(e,t){return t.startsWith("zh-")?"zh":"auto"===t?Object(o.g)(e)?"ja":Object(o.c)(e)?"zh":"en":t}function d(e){return[...e.querySelectorAll("#mw-content-text li a")].map(e=>{const t=e.getAttribute("href"),n=e.getAttribute("title");if(t&&n)return{url:t,title:n}}).filter(e=>!!e)}},853:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return r})),n.d(t,"search",(function(){return c}));var a=n(61),o=n(5);const r=e=>"https://dict.youdao.com/w/"+encodeURIComponent(e.replace(/\s+/g," ")),i="http://www.youdao.com",c=async(e,t,n,r)=>{const c=n.dicts.all.youdao.options,s=await Object(o.b)(t.langCode);return Object(a.a)("https://dict.youdao.com/w/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(e=>function(e,t,n){const a=e.querySelector(".error-typo");if(!a)return function(e,t,n){const a={type:"lex",title:Object(o.f)(e,".keyword",n),stars:0,rank:Object(o.f)(e,".rank"),pattern:Object(o.f)(e,".pattern",n),prons:[],collins:[]},r={},c=e.querySelector(".star");c&&(a.stars=Number((c.className.match(/\d+/)||[0])[0]));e.querySelectorAll(".baav .pronounce").forEach(e=>{const t=e.textContent||"",n=e.querySelector(".dictvoice");if(n&&n.dataset.rel){const e="https://dict.youdao.com/dictvoice?audio="+n.dataset.rel;a.prons.push({phsym:t,url:e}),t.includes("英")?r.uk=e:t.includes("美")&&(r.us=e)}}),t.basic&&(a.basic=Object(o.d)(i,e,{selector:"#phrsListTab .trans-container",transform:n}));t.collins&&e.querySelectorAll("#collinsResult .wt-container").forEach(e=>{const t={title:"",content:""},r=e.querySelector(":scope > .title.trans-tip");r&&(Object(o.i)(r,".do-detail"),t.title=Object(o.f)(r),r.remove());const c=e.querySelector(".star");if(c){const e=/star(\d+)/.exec(String(c.className));if(e){const t=+e[1];let n="";for(let e=0;e<5;e++)n+=`<svg\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 426.67 426.67"\n width="1em"\n height="1em"\n style="${4===e?"":"margin-right: 1px"}"\n >\n <path\n fill=${e<t?"#FAC917":"#d1d8de"}\n d="M213.33 10.44l65.92 133.58 147.42 21.42L320 269.4l25.17 146.83-131.84-69.32-131.85 69.34 25.2-146.82L0 165.45l147.4-21.42"\n />\n </svg>`;c.innerHTML=n}}t.content=Object(o.d)(i,e,{transform:n}),t.content&&a.collins.push(t)});t.discrimination&&(a.discrimination=Object(o.d)(i,e,{selector:"#discriminate",transform:n}));t.sentence&&(a.sentence=Object(o.d)(i,e,{selector:"#authority .ol",transform:n}));t.translation&&(a.translation=Object(o.d)(i,e,{selector:"#fanyiToggle .trans-container",transform:n}));if(a.title||a.translation)return{result:a,audio:r};return Object(o.h)()}(e,t,n);if(t.related)return{result:{type:"related",list:Object(o.d)(i,a,{transform:n})}};return Object(o.h)()}(e,c,s))}},854:function(e,t,n){"use strict";n.r(t),n.d(t,"getTranslator",(function(){return i})),n.d(t,"getSrcPage",(function(){return c})),n.d(t,"search",(function(){return s}));var a=n(19),o=n(855),r=n(17);const i=Object(a.a)(()=>new o.Youdao({env:"ext",config:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.YOUDAO_APPKEY&&{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.YOUDAO_KEY?{appKey:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.YOUDAO_APPKEY,key:{DEBUG:!1,SDAPP_VETTED:"true",SDAPP_ANALYTICS:"UA-49163616-4",MOJI_ID:"E62VyFVLMiW7kvbtVq3p",PROXY_PROTOCAL:"socks5",PROXY_HOST:"localhost",PROXY_PORT:"7890"}.YOUDAO_KEY}:void 0})),c=(e,t,n)=>"http://fanyi.youdao.com",s=async(e,t,n,a)=>{const o=i(),{sl:c,tl:s,text:l}=await Object(r.a)(o,e,n.dicts.all.youdaotrans,t,a),d=t.dictAuth.youdaotrans.appKey,u=t.dictAuth.youdaotrans.key,h=d&&u?{appKey:d,key:u}:void 0;try{const e=await o.translate(l,c,s,h);return Object(r.c)({result:{id:"youdaotrans",sl:e.from,tl:e.to,slInitial:n.dicts.all.youdaotrans.options.slInitial,searchText:e.origin,trans:e.trans},audio:{py:e.trans.tts,us:e.trans.tts}},o.getSupportLanguages())}catch(e){return Object(r.c)({result:{id:"youdaotrans",sl:c,tl:s,slInitial:"hide",searchText:{paragraphs:[""]},trans:{paragraphs:[""]}}},o.getSupportLanguages())}}},856:function(e,t,n){"use strict";n.r(t),n.d(t,"getSrcPage",(function(){return i})),n.d(t,"search",(function(){return s}));var a=n(61),o=n(5),r=n(119);const i=e=>"https://www.zdic.net/hans/"+e;let c=!1;const s=(e,t,n,i)=>{const s=n.dicts.all.zdic.options.audio;return!c&&s&&(c=!0,function(){const e=["blocking","requestHeaders"];browser.webRequest.OnBeforeSendHeadersOptions&&Object.prototype.hasOwnProperty.call(browser.webRequest.OnBeforeSendHeadersOptions,"EXTRA_HEADERS")&&e.push("extraHeaders");browser.webRequest.onBeforeSendHeaders.addListener(e=>{if(e&&e.requestHeaders){for(var t=0;t<e.requestHeaders.length;++t)if("Referer"===e.requestHeaders[t].name){e.requestHeaders[t].value="https://www.zdic.net";break}t===e.requestHeaders.length&&e.requestHeaders.push({name:"Referer",value:"https://www.zdic.net"})}return{requestHeaders:e.requestHeaders}},{urls:["https://img.zdic.net/audio/*"]},e)}()),Object(a.a)("https://www.zdic.net/hans/"+encodeURIComponent(e.replace(/\s+/g," "))).catch(o.g).then(e=>function(e,t){const n={result:[]};for(const a of e.querySelectorAll("[data-type-block]")){const e=a.dataset.typeBlock||"";if(/基本解释|词语解释|详细解释/.test(e)){for(const e of a.querySelectorAll("[data-src-mp3]"))t?(n.audio||(n.audio={py:e.dataset.srcMp3}),e.replaceWith(Object(r.d)(e.dataset.srcMp3))):e.remove();n.result.push({title:e,content:Object(o.d)("https://www.zdic.net",a,".content")})}}return n.result.length>0?n:Object(o.h)()}(e,s))}},87:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return g})),n.d(t,"d",(function(){return b}));var a=n(38),o=n(10),r=n(108),i=n(180),c=n(371),s=n(145),l=n(499),d=n(83),u=n(96),h=n(64);function p(e){return e.pipe(Object(a.a)(e=>!(e.relatedTarget===e.currentTarget||e.relatedTarget instanceof Node&&e.currentTarget.contains(e.relatedTarget))),Object(o.a)(e=>"mouseover"===e.type))}function m(e){return p(e).pipe(Object(r.a)(e=>Object(u.a)(e).pipe(Object(i.a)(e?500:100))))}function f(e){return e.pipe(Object(o.a)(e=>"blur"!==e.type),Object(c.a)(100))}function g(e,t){return n=>n.pipe(Object(s.a)(o=>Object(h.a)(t(o)).pipe(Object(l.a)(n.pipe(Object(a.a)(t=>t[e]===o[e]))))))}function b(e){return Object(d.a)(!0)(e)}},884:function(e,t,n){"use strict";n.r(t),n.d(t,"BlackWhiteList",(function(){return l}));var a=n(0),o=n.n(a),r=n(82),i=n(97),c=n(9),s=n(755);const l=()=>{const{t:e}=Object(c.e)(["options","common"]),[t,n]=Object(a.useState)(null);return o.a.createElement(o.a.Fragment,null,o.a.createElement(i.a,{hideFooter:!0,items:[{key:"BlackWhiteList",label:e("config.opt.sel_blackwhitelist"),help:e("config.opt.sel_blackwhitelist_help"),children:o.a.createElement(o.a.Fragment,null,o.a.createElement(r.a,{style:{marginRight:10},onClick:()=>n("blacklist")},e("common:blacklist")),o.a.createElement(r.a,{onClick:()=>n("whitelist")},e("common:whitelist")))},{key:"PDFBlackWhiteList",label:"PDF "+e("nav.BlackWhiteList"),help:e("config.opt.pdf_blackwhitelist_help"),children:o.a.createElement(o.a.Fragment,null,o.a.createElement(r.a,{style:{marginRight:10},onClick:()=>n("pdfBlacklist")},"PDF ",e("common:blacklist")),o.a.createElement(r.a,{onClick:()=>n("pdfWhitelist")},"PDF ",e("common:whitelist")))}]}),o.a.createElement(s.a,{area:t,onClose:()=>n(null)}))}},888:function(e,t,n){"use strict";n.r(t),n.d(t,"DictAuths",(function(){return u}));var a=n(0),o=n.n(a),r=n(242),i=n(63),c=n(15),s=n(97),l=n(9),d=n(141);const u=()=>{const{t:e}=Object(l.e)(["options","dicts"]),t=Object(i.c)(e=>e.config.dictAuth);if(null===t)return null;const a=[{key:"dictauthstitle",label:e("nav.DictAuths"),children:o.a.createElement("span",{className:"ant-form-text"},e("dictAuth.description"))}];return Object(d.a)(t).forEach(i=>{const s=t[i],u=Object(c.a)("dictAuth",i),h=e(`dicts:${i}.name`);Object(d.a)(s).forEach((t,c,s)=>{const d=c+1===s.length;a.push({name:u+"."+t,label:o.a.createElement("span",null,0===c?h+" ":"",o.a.createElement("code",null,t)),help:d?o.a.createElement(l.c,{message:e("dictAuth.dictHelp")},o.a.createElement("a",{href:n(1186)(`./${i}/auth.ts`).url,target:"_blank",rel:"nofollow noopener noreferrer"},h)):null,style:{marginBottom:d?10:5},children:o.a.createElement(r.a,{autoComplete:"off"})})})}),o.a.createElement(s.a,{items:a})}},889:function(e,t,n){"use strict";n.r(t),n.d(t,"DictPanel",(function(){return h}));var a=n(0),o=n.n(a),r=n(53),i=n(105),c=n(241),s=n(242),l=n(9),d=n(15),u=n(97);const h=()=>{const{t:e}=Object(l.e)("options"),{availWidth:t}=window.screen;return o.a.createElement(u.a,{items:[{name:Object(d.b)("mtaAutoUnfold"),children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:""},e("profile.opt.mtaAutoUnfold.never")),o.a.createElement(r.a.Option,{value:"once"},e("profile.opt.mtaAutoUnfold.once")),o.a.createElement(r.a.Option,{value:"always"},e("profile.opt.mtaAutoUnfold.always")),o.a.createElement(r.a.Option,{value:"popup"},e("profile.opt.mtaAutoUnfold.popup")),o.a.createElement(r.a.Option,{value:"hide"},e("profile.opt.mtaAutoUnfold.hide")))},{name:Object(d.b)("waveform"),valuePropName:"checked",children:o.a.createElement(i.a,null)},{name:Object(d.a)("searchSuggests"),valuePropName:"checked",children:o.a.createElement(i.a,null)},{name:Object(d.a)("defaultPinned"),valuePropName:"checked",children:o.a.createElement(i.a,null)},{name:Object(d.a)("animation"),valuePropName:"checked",children:o.a.createElement(i.a,null)},{name:Object(d.a)("darkMode"),valuePropName:"checked",children:o.a.createElement(i.a,null)},{name:Object(d.a)("panelMaxHeightRatio"),children:o.a.createElement(c.a,{tipFormatter:u.b,min:0,max:100,marks:{0:"0%",80:"80%",100:"100%"}})},{name:Object(d.a)("panelWidth"),children:o.a.createElement(c.a,{tipFormatter:u.c,min:250,max:t,marks:{250:"250px",450:"450px",[t]:t+"px"}})},{name:Object(d.a)("fontSize"),children:o.a.createElement(c.a,{tipFormatter:u.c,min:8,max:30,marks:{8:"8px",30:"30px"}})},{name:Object(d.a)("bowlOffsetX"),children:o.a.createElement(c.a,{tipFormatter:u.c,min:-100,max:100,marks:{"-100":"-100px",0:"0px",100:"100px"}})},{name:Object(d.a)("bowlOffsetY"),children:o.a.createElement(c.a,{tipFormatter:u.c,min:-100,max:100,marks:{"-100":"-100px",0:"0px",100:"100px"}})},{name:Object(d.a)("panelCSS"),extra:o.a.createElement("a",{href:"https://github.com/crimx/ext-saladict/wiki/PanelCSS#wiki-content",target:"_blank",rel:"nofollow noopener noreferrer"},"Examples"),children:o.a.createElement(s.a.TextArea,{placeholder:".dictPanel-Root { }",autoSize:{minRows:4,maxRows:15}})}]})}},890:function(e,t,n){},891:function(e,t,n){"use strict";n.r(t),n.d(t,"General",(function(){return d}));var a=n(0),o=n.n(a),r=n(105),i=n(53),c=n(15),s=n(97),l=n(2);const d=()=>{const e=[{name:Object(c.a)("active"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(c.a)("animation"),valuePropName:"checked",children:o.a.createElement(r.a,null)}];return l.c||l.g||e.push({name:Object(c.a)("runInBg"),valuePropName:"checked",children:o.a.createElement(r.a,null)}),e.push({name:Object(c.a)("darkMode"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(c.a)("langCode"),children:o.a.createElement(i.a,null,o.a.createElement(i.a.Option,{value:"zh-CN"},"简体中文"),o.a.createElement(i.a.Option,{value:"zh-TW"},"繁體中文"),o.a.createElement(i.a.Option,{value:"en"},"English"))}),o.a.createElement(s.a,{items:e})}},892:function(e,t,n){"use strict";n.r(t),n.d(t,"ImportExport",(function(){return O}));var a=n(954),o=n.n(a),r=n(748),i=n.n(r),c=n(0),s=n.n(c),l=n(311),d=n(206),u=n(1318),h=n(181),p=n(160),m=n(178),f=n(9),g=n(1),b=n(29),y=n(40),w=n(205);const O=()=>{const{t:e}=Object(f.e)("options"),t=Object(w.d)();return s.a.createElement(l.a,null,s.a.createElement(d.a,{...t},s.a.createElement(l.a,{gutter:10},s.a.createElement(d.a,{span:12},s.a.createElement(u.a.Dragger,{showUploadList:!1,beforeUpload:t=>(async function(e,t){const n=await new Promise(n=>{const a=new FileReader;a.onload=()=>{try{const e=JSON.parse(a.result);n(e)}catch(e){h.a.error({message:t("import.error.title"),description:t("import.error.parse")})}n()},a.onerror=()=>{h.a.error({message:t("import.error.title"),description:t("import.error.parse")}),n()},a.readAsText(e)});if(!n)return;let{baseconfig:a,activeProfileID:o,hasInstructionsShown:r,profileIDList:i,syncConfig:c}=n;if(!a&&!o&&!i&&null==r)return void h.a.error({message:t("import.error.title"),description:t("import.error.empty")});await g.c.sync.clear(),a&&await Object(b.f)(Object(p.a)(a));c&&await g.c.sync.set({syncConfig:c});null!=r&&await g.c.sync.set({hasInstructionsShown:r});if(i&&(i=i.filter(({id:e})=>n[e]),i.length>0)){for(const{id:e}of i)await Object(y.m)(Object(m.a)(n[e]));o&&!i.every(({id:e})=>e!==o)||(o=i[0].id),await g.c.sync.set({activeProfileID:o,profileIDList:i})}}(t,e),!1)},s.a.createElement("p",{className:"ant-upload-drag-icon"},s.a.createElement(i.a,null)),s.a.createElement("p",{className:"ant-upload-text"},e("import.title")))),s.a.createElement(d.a,{span:12},s.a.createElement("button",{className:"ant-upload ant-upload-drag",onClick:()=>async function(e){const t=await g.c.sync.get(["activeProfileID","hasInstructionsShown","profileIDList","syncConfig"]);if(t.baseconfig=await Object(b.c)(),!t.baseconfig||!t.activeProfileID||!t.profileIDList)return void h.a.error({message:e("export.error.title"),description:e("export.error.empty")});for(const{id:e}of t.profileIDList)t[e]=await Object(y.f)(e);try{let e=JSON.stringify(t);const{os:n}=await browser.runtime.getPlatformInfo();"win"===n&&(e=e.replace(/\r\n|\n/g,"\r\n"));const a=new Blob([e],{type:"text/plain;charset=utf-8"}),o=document.createElement("a");o.href=URL.createObjectURL(a),o.download=`config-${Date.now()}.saladict`,o.target="_blank",document.body.appendChild(o),o.click()}catch(t){h.a.error({message:e("export.error.title"),description:e("export.error.parse")})}}(e)},s.a.createElement("div",{className:"ant-upload ant-upload-btn"},s.a.createElement("p",{className:"ant-upload-drag-icon"},s.a.createElement(o.a,null)),s.a.createElement("p",{className:"ant-upload-text"},e("export.title")))))),s.a.createElement(l.a,{justify:"center"},s.a.createElement("p",{style:{margin:"1em 0"}},e("import_export_help")))))}},893:function(e,t,n){"use strict";n.r(t),n.d(t,"PDF",(function(){return h}));var a=n(0),o=n.n(a),r=n(105),i=n(53),c=n(82),s=n(15),l=n(97),d=n(9),u=n(755);const h=()=>{const{t:e}=Object(d.e)(["options","common"]),[t,n]=Object(a.useState)(null);return o.a.createElement(o.a.Fragment,null,o.a.createElement(l.a,{items:[{name:Object(s.a)("pdfSniff"),valuePropName:"checked",extra:o.a.createElement(d.c,{message:e(Object(s.a)("pdfSniff")+"_extra")},o.a.createElement("a",{href:"https://saladict.crimx.com/native.html",target:"_blank",rel:"nofollow noopener noreferrer"},e("nativeSearch"))),children:o.a.createElement(r.a,null)},{name:Object(s.a)("pdfStandalone"),children:o.a.createElement(i.a,null,o.a.createElement(i.a.Option,{value:""},e("config.opt.pdfStandalone.default")),o.a.createElement(i.a.Option,{value:"always"},e("config.opt.pdfStandalone.always")),o.a.createElement(i.a.Option,{value:"manual"},e("config.opt.pdfStandalone.manual")))},{key:"BlackWhiteList",label:e("nav.BlackWhiteList"),help:e("config.opt.pdf_blackwhitelist_help"),children:o.a.createElement(o.a.Fragment,null,o.a.createElement(c.a,{style:{marginRight:10},onClick:()=>n("pdfBlacklist")},"PDF ",e("common:blacklist")),o.a.createElement(c.a,{onClick:()=>n("pdfWhitelist")},"PDF ",e("common:whitelist")))}]}),o.a.createElement(u.a,{area:t,onClose:()=>n(null)}))}},894:function(e,t,n){"use strict";n.r(t),n.d(t,"Permissions",(function(){return u}));var a=n(0),o=n.n(a),r=n(136),i=n(105),c=n(150),s=n(9),l=n(205);const d=["clipboardRead","clipboardWrite"],u=()=>{const e=Object(l.c)(),{t:t}=Object(s.e)(["options","common"]),[n,u]=Object(a.useState)(()=>d.reduce((e,t)=>(e[t]=!1,e),{}));return Object(a.useEffect)(()=>{Promise.all(d.map(async e=>{try{return await browser.permissions.contains({permissions:[e]})}catch(e){console.error(e)}return!1})).then(e=>{u(d.reduce((t,n,a)=>(t[n]=e[a],t),{}))})},[]),o.a.createElement(r.a,{...e},d.map(e=>o.a.createElement(r.a.Item,{key:e,label:t("permissions."+e),help:t(`permissions.${e}_help`)},o.a.createElement(i.a,{checked:n[e],onChange:async n=>{if(n)try{if(!await browser.permissions.request({permissions:[e]}))return void c.a.warn(t("permissions.cancelled"));c.a.success(t("permissions.success")),u(t=>({...t,[e]:!0}))}catch(e){console.error(e),c.a.error(t("permissions.failed"))}else await browser.permissions.remove({permissions:[e]}),c.a.success(t("permissions.cancel_success")),u(t=>({...t,[e]:!1}))}}))))}},895:function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return p}));var a=n(0),o=n.n(a),r=n(53),i=n(241),c=n(105),s=n(9),l=n(2),d=n(63),u=n(15),h=n(97);const p=()=>{const{t:e}=Object(s.e)(["options","menus"]),t=Object(d.c)(e=>{const t=Object.keys(e.config.contextMenus.all);return l.c?t.filter(e=>{switch(e){case"youdao_page_translate":case"caiyuntrs":return!1}return!0}):t}),{availWidth:n}=window.screen;return o.a.createElement(h.a,{items:[{name:Object(u.a)("baOpen"),children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:"popup_panel"},e("config.opt.baOpen.popup_panel")),o.a.createElement(r.a.Option,{value:"popup_fav"},e("config.opt.baOpen.popup_fav")),o.a.createElement(r.a.Option,{value:"popup_options"},e("config.opt.baOpen.popup_options")),o.a.createElement(r.a.Option,{value:"popup_standalone"},e("config.opt.baOpen.popup_standalone")),t.map(t=>o.a.createElement(r.a.Option,{key:t,value:t},e("menus:"+t))))},{name:Object(u.a)("baWidth"),hide:e=>"popup_panel"!==e[Object(u.a)("baOpen")],children:o.a.createElement(i.a,{tipFormatter:h.c,min:-1,max:n,marks:{"-1":"-1",450:"450px",[n]:n+"px"}})},{name:Object(u.a)("baHeight"),hide:e=>"popup_panel"!==e[Object(u.a)("baOpen")],children:o.a.createElement(i.a,{tipFormatter:h.c,min:250,max:n,marks:{250:"250px",550:"550px",[n]:n+"px"}})},{name:Object(u.a)("baPreload"),label:e("preload.title"),help:e("preload.help"),hide:e=>"popup_panel"!==e[Object(u.a)("baOpen")],children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:""},e("common:none")),o.a.createElement(r.a.Option,{value:"clipboard"},e("preload.clipboard")),o.a.createElement(r.a.Option,{value:"selection"},e("preload.selection")))},{name:Object(u.a)("baAuto"),label:e("preload.auto"),help:e("preload.auto_help"),hide:e=>"popup_panel"!==e[Object(u.a)("baOpen")]||!e[Object(u.a)("baPreload")],valuePropName:"checked",children:o.a.createElement(c.a,null)}]})}},896:function(e,t,n){"use strict";n.r(t),n.d(t,"Privacy",(function(){return s}));var a=n(0),o=n.n(a),r=n(105),i=n(15),c=n(97);const s=()=>o.a.createElement(c.a,{items:[{name:Object(i.a)("updateCheck"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(i.a)("analytics"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(i.a)("searchHistory"),valuePropName:"checked",children:o.a.createElement(r.a,null)},{name:Object(i.a)("searchHistoryInco"),hide:e=>!e[Object(i.a)("searchHistory")],valuePropName:"checked",children:o.a.createElement(r.a,null)},{key:"third_party_privacy",children:o.a.createElement(r.a,{disabled:!0,checked:!0})}]})},897:function(e,t,n){"use strict";n.r(t),n.d(t,"Pronunciation",(function(){return u}));var a=n(0),o=n.n(a),r=n(53),i=n(105),c=n(9),s=n(63),l=n(15),d=n(97);const u=()=>{const{t:e}=Object(c.e)(["options","common","dicts"]),t=Object(s.c)(e=>({cn:e.activeProfile.dicts.all.zdic.options.audio?e.config.autopron.cn.list:e.config.autopron.cn.list.filter(e=>"zdic"!==e),en:e.config.autopron.en.list,machine:e.config.autopron.machine.list}));return o.a.createElement(d.a,{items:[{name:Object(l.a)("autopron","cn","dict"),children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:""},e("common:none")),t.cn.map(t=>o.a.createElement(r.a.Option,{key:t,value:t},e(`dicts:${t}.name`))))},{name:Object(l.a)("autopron","en","dict"),children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:""},e("common:none")),t.en.map(t=>o.a.createElement(r.a.Option,{key:t,value:t},e(`dicts:${t}.name`))))},{name:Object(l.a)("autopron","en","accent"),hide:e=>!e[Object(l.a)("autopron","en","dict")],children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:"uk"},e("config.opt.accent.uk")),o.a.createElement(r.a.Option,{value:"us"},e("config.opt.accent.us")))},{name:Object(l.a)("autopron","machine","dict"),children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:""},e("common:none")),t.machine.map(t=>o.a.createElement(r.a.Option,{key:t,value:t},e(`dicts:${t}.name`))))},{name:Object(l.a)("autopron","machine","src"),hide:e=>!e[Object(l.a)("autopron","machine","dict")],children:o.a.createElement(r.a,null,o.a.createElement(r.a.Option,{value:"trans"},e("config.autopron.machine.src_trans")),o.a.createElement(r.a.Option,{value:"searchText"},e("config.autopron.machine.src_search")))},{name:Object(l.b)("waveform"),valuePropName:"checked",children:o.a.createElement(i.a,null)}]})}},9:function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return g}));var a=n(0),o=n.n(a),r=n(134),i=n.n(r),c=n(12),s=n(29),l=n(217),d=n.n(l);async function u(){if(c.a.language)return c.a;const{langCode:e}=await Object(s.c)();return await c.a.use({type:"backend",init:()=>{},create:()=>{},read:async(e,t,a)=>{try{if("dicts"===t){const t=function(e){const t=n(260);return t.keys().reduce((n,a)=>{const o=t(a),r=o.locales||o,c=/([^/]+)\/_locales\.(json|ts)$/.exec(a)[1];return n[c]={name:r.name[e]},r.options&&(n[c].options=i()(r.options,t=>t[e])),r.helps&&(n[c].helps=i()(r.helps,t=>t[e])),n},{})}(e);return a(null,t),t}if("sync"===t){const t=function(e){const t=n(294);return t.keys().reduce((n,a)=>{const o=new RegExp(`/([^/]+)/_locales/${e}\\.ts$`).exec(a);if(o){const e=t(a);n[o[1]]=e.locale||e}return n},{})}(e);return a(null,t),t}const{locale:o}=await n(259)(`./${e}/${t}.ts`);return a(null,o),o}catch(e){a(e)}}}).init({lng:e,fallbackLng:!1,whitelist:["en","zh-CN","zh-TW"],debug:!1,saveMissing:!1,load:"currentOnly",ns:"common",defaultNS:"common",interpolation:{escapeValue:!1}}),Object(s.a)(({newConfig:e})=>{c.a.language!==e.langCode&&c.a.changeLanguage(e.langCode)}),c.a}const h=()=>"",p=o.a.createContext(void 0);const m=({children:e})=>{const[t,n]=Object(a.useState)(void 0);return Object(a.useLayoutEffect)(()=>{const e=()=>{n(c.a.language)};return c.a.language||u().then(()=>{n(c.a.language),c.a.on("languageChanged",e)}),()=>{c.a.off("languageChanged",e)}},[]),o.a.createElement(p.Provider,{value:t},e)};function f(e){const t=Object(a.useRef)(0),n=Object(a.useRef)(h),o=Object(a.useRef)((...e)=>n.current(...e)),r=Object(a.useContext)(p),i=(e,a)=>{e&&(n.current=e),a&&(t.current=(t.current+1)%1e5);return{t:o.current,i18n:c.a,ready:!!a&&t.current}},[s,l]=Object(a.useState)(()=>r?e?(Array.isArray(e)?e.every(e=>c.a.hasResourceBundle(r,e)):c.a.hasResourceBundle(r,e))?i(c.a.getFixedT(r,e),!0):i(h,!1):i(c.a.t,!0):i(h,!1));return Object(a.useLayoutEffect)(()=>{let t=!0;return r&&(e?(Array.isArray(e)?e.every(e=>c.a.hasResourceBundle(r,e)):c.a.hasResourceBundle(r,e))?l(i(c.a.getFixedT(r,e),!0)):(l(i(null,!1)),c.a.loadNamespaces(e).then(()=>{t&&l(i(c.a.getFixedT(r,e),!0))})):l(i(c.a.t,!0))),()=>{t=!1}},[r]),s}const g=o.a.memo(({message:e,children:t})=>e?o.a.createElement(a.Fragment,null,d()(e.split(/{[^}]*?}/),Array.isArray(t)?t:[t])):null)},97:function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return D})),n.d(t,"c",(function(){return _}));var a=n(147),o=n.n(a),r=n(583),i=n.n(r),c=n(0),s=n.n(c),l=n(309),d=n(136),u=n(82),h=n(191),p=n(10),m=n(176),f=n(21),g=n.n(f),b=n(134),y=n.n(b),w=n(229),O=n.n(w),x=n(240),j=n(29),E=n(40),v=n(9),C=n(2),k=n(1),S=n(63),M=n(205),I=n(187),A=n(220);const N=()=>{const{t:e}=Object(v.e)("common"),t=Object(x.a)(I.a,"idle");return s.a.createElement(u.a,{type:"primary",htmlType:"submit",disabled:"uploading"===t},e("common:save"))};n(1141);const T=s.a.forwardRef((e,t)=>{const{items:n,hideFooter:a,...r}=e,f=Object(M.c)(),{t:b,i18n:w,ready:T}=Object(v.e)(["options","common"]),D=Object(S.c)(e=>({config:e.config,profile:e.activeProfile}),O.a),_=Object(I.b)();const{initialValues:z,hideFieldFns:L}=Object(c.useMemo)(()=>function e(t,n={initialValues:{},hideFieldFns:{}}){for(const a of t)if(a.items)e(a.items,n);else if(a.hide&&(n.hideFieldFns[a.key||a.name]=a.hide),a.name){const e=g()(D,a.name,D);e!==D&&(n.initialValues[a.name]=e)}return n}(n),[n]),[B,P]=Object(x.a)(e=>e.pipe(Object(p.a)(e=>y()(L,t=>t(e))),Object(m.a)(O.a)),()=>y()(L,e=>e(z)));const R=Object(c.useMemo)(()=>function e(t){return t.map(t=>{const n=t.key||t.name,a=n.startsWith("profile.");if(void 0===t.label&&T&&w.exists("options:"+n)&&(t.label=a?s.a.createElement(l.a,{title:b("profile.opt.item_extra"),className:"saladict-form-profile-title"},s.a.createElement("span",null,s.a.createElement(i.a,null),b(n))):b(n)),void 0===t.help){const e=`options:${n}_help`;T&&w.exists(e)&&(t.help=b(e))}if(void 0===t.extra){const e=`options:${n}_extra`;T&&w.exists(e)&&(t.extra=b(e))}let{className:o,hide:r,children:c,items:u,...h}=t;return B[n]&&(o=o?o+" saladict-hide":"saladict-hide"),s.a.createElement(d.a.Item,{key:n,...h,className:o},u?e(u):c)})}(n),[T,w.language,B,n]);return s.a.createElement(d.a,{...f,...r,initialValues:z,onFinish:_,onValuesChange:(t,n)=>{Object(A.a)(!0),P(n),e.onValuesChange&&e.onValuesChange(t,n)},ref:t},R,!a&&s.a.createElement(d.a.Item,{...M.a,className:"saladict-form-btns"},s.a.createElement(N,null),s.a.createElement(u.a,{onClick:()=>{C.c?h.a.info({content:b("firefox_shortcuts")}):Object(k.b)("chrome://extensions/shortcuts")}},b("shortcuts")),s.a.createElement(u.a,{type:"primary",danger:!0,onClick:()=>{h.a.confirm({title:b("config.opt.reset_confirm"),icon:s.a.createElement(o.a,null),okType:"danger",onOk:async()=>{await Object(j.e)(),await Object(E.k)(),Object(A.a)(!1)}})}},b("config.opt.reset"))))}),D=e=>(e||0)+"%",_=e=>(e||0)+"px"}},[[1003,0,1,2,4,3]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf-viewer-bridge.js b/plugins/saladict-ztools/ext-saladic/assets/pdf-viewer-bridge.js new file mode 100644 index 00000000..9a655f09 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf-viewer-bridge.js @@ -0,0 +1,88 @@ +;(function() { + var AUTO_MARKER = 'saladict-pdf' + var MAX_ATTEMPTS = 20 + + function sleep(ms) { + return new Promise(function(resolve) { + setTimeout(resolve, ms) + }) + } + + function buildViewerUrl(url) { + var viewerUrl = new URL(window.location.href) + viewerUrl.searchParams.delete(AUTO_MARKER) + viewerUrl.searchParams.set('file', url) + return viewerUrl.toString() + } + + async function fetchPendingPdfOpen() { + return browser.runtime.sendMessage({ + type: 'GET_PDF_SNIFF_PENDING' + }) + } + + async function openStandaloneIfNeeded(url) { + return browser.runtime.sendMessage({ + type: 'OPEN_PDF_VIEWER_STANDALONE_IF_NEEDED', + payload: { + url: url + } + }) + } + + async function bootstrapAutoPdfOpen() { + var currentUrl = new URL(window.location.href) + if (currentUrl.searchParams.get(AUTO_MARKER) !== '1') { + return + } + + if ( + !window.PDFViewerApplication || + !window.PDFViewerApplication.initializedPromise + ) { + return + } + + await window.PDFViewerApplication.initializedPromise + + for (var attempt = 0; attempt < MAX_ATTEMPTS; attempt++) { + var pending = null + + try { + pending = await fetchPendingPdfOpen() + } catch (error) { + pending = null + } + + if (!pending) { + await sleep((attempt + 1) * 50) + continue + } + + if (pending.action === 'bypass') { + window.location.replace(pending.url) + return + } + + try { + if (await openStandaloneIfNeeded(pending.url)) { + return + } + } catch (error) { + /* keep opening in the current viewer tab */ + } + + window.history.replaceState( + window.history.state, + '', + buildViewerUrl(pending.url) + ) + await window.PDFViewerApplication.open(pending.url) + return + } + + console.warn('Failed to resolve pending PDF sniff request for viewer.') + } + + bootstrapAutoPdfOpen().catch(console.error) +})() diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/build/pdf.js b/plugins/saladict-ztools/ext-saladic/assets/pdf/build/pdf.js new file mode 100644 index 00000000..63248c59 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/build/pdf.js @@ -0,0 +1,19773 @@ +/** + * @licstart The following is the entire license notice for the + * JavaScript code in this page + * + * Copyright 2022 Mozilla Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * @licend The above is the entire license notice for the + * JavaScript code in this page + */ + +(function webpackUniversalModuleDefinition(root, factory) { + if(typeof exports === 'object' && typeof module === 'object') + module.exports = factory(); + else if(typeof define === 'function' && define.amd) + define("pdfjs-dist/build/pdf", [], factory); + else if(typeof exports === 'object') + exports["pdfjs-dist/build/pdf"] = factory(); + else + root["pdfjs-dist/build/pdf"] = root.pdfjsLib = factory(); +})(globalThis, () => { +return /******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ([ +/* 0 */, +/* 1 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.VerbosityLevel = exports.Util = exports.UnknownErrorException = exports.UnexpectedResponseException = exports.UNSUPPORTED_FEATURES = exports.TextRenderingMode = exports.StreamType = exports.RenderingIntentFlag = exports.PermissionFlag = exports.PasswordResponses = exports.PasswordException = exports.PageActionEventType = exports.OPS = exports.MissingPDFException = exports.LINE_FACTOR = exports.LINE_DESCENT_FACTOR = exports.InvalidPDFException = exports.ImageKind = exports.IDENTITY_MATRIX = exports.FormatError = exports.FontType = exports.FeatureTest = exports.FONT_IDENTITY_MATRIX = exports.DocumentActionEventType = exports.CMapCompressionType = exports.BaseException = exports.AnnotationType = exports.AnnotationStateModelType = exports.AnnotationReviewState = exports.AnnotationReplyType = exports.AnnotationMode = exports.AnnotationMarkedState = exports.AnnotationFlag = exports.AnnotationFieldFlag = exports.AnnotationEditorType = exports.AnnotationEditorPrefix = exports.AnnotationEditorParamsType = exports.AnnotationBorderStyleType = exports.AnnotationActionEventType = exports.AbortException = void 0; +exports.arrayByteLength = arrayByteLength; +exports.arraysToBytes = arraysToBytes; +exports.assert = assert; +exports.bytesToString = bytesToString; +exports.createPromiseCapability = createPromiseCapability; +exports.createValidAbsoluteUrl = createValidAbsoluteUrl; +exports.escapeString = escapeString; +exports.getModificationDate = getModificationDate; +exports.getVerbosityLevel = getVerbosityLevel; +exports.info = info; +exports.isArrayBuffer = isArrayBuffer; +exports.isArrayEqual = isArrayEqual; +exports.isAscii = isAscii; +exports.objectFromMap = objectFromMap; +exports.objectSize = objectSize; +exports.setVerbosityLevel = setVerbosityLevel; +exports.shadow = shadow; +exports.string32 = string32; +exports.stringToBytes = stringToBytes; +exports.stringToPDFString = stringToPDFString; +exports.stringToUTF16BEString = stringToUTF16BEString; +exports.stringToUTF8String = stringToUTF8String; +exports.unreachable = unreachable; +exports.utf8StringToString = utf8StringToString; +exports.warn = warn; + +__w_pdfjs_require__(2); + +const IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0]; +exports.IDENTITY_MATRIX = IDENTITY_MATRIX; +const FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0]; +exports.FONT_IDENTITY_MATRIX = FONT_IDENTITY_MATRIX; +const LINE_FACTOR = 1.35; +exports.LINE_FACTOR = LINE_FACTOR; +const LINE_DESCENT_FACTOR = 0.35; +exports.LINE_DESCENT_FACTOR = LINE_DESCENT_FACTOR; +const RenderingIntentFlag = { + ANY: 0x01, + DISPLAY: 0x02, + PRINT: 0x04, + ANNOTATIONS_FORMS: 0x10, + ANNOTATIONS_STORAGE: 0x20, + ANNOTATIONS_DISABLE: 0x40, + OPLIST: 0x100 +}; +exports.RenderingIntentFlag = RenderingIntentFlag; +const AnnotationMode = { + DISABLE: 0, + ENABLE: 1, + ENABLE_FORMS: 2, + ENABLE_STORAGE: 3 +}; +exports.AnnotationMode = AnnotationMode; +const AnnotationEditorPrefix = "pdfjs_internal_editor_"; +exports.AnnotationEditorPrefix = AnnotationEditorPrefix; +const AnnotationEditorType = { + DISABLE: -1, + NONE: 0, + FREETEXT: 3, + INK: 15 +}; +exports.AnnotationEditorType = AnnotationEditorType; +const AnnotationEditorParamsType = { + FREETEXT_SIZE: 1, + FREETEXT_COLOR: 2, + FREETEXT_OPACITY: 3, + INK_COLOR: 11, + INK_THICKNESS: 12, + INK_OPACITY: 13 +}; +exports.AnnotationEditorParamsType = AnnotationEditorParamsType; +const PermissionFlag = { + PRINT: 0x04, + MODIFY_CONTENTS: 0x08, + COPY: 0x10, + MODIFY_ANNOTATIONS: 0x20, + FILL_INTERACTIVE_FORMS: 0x100, + COPY_FOR_ACCESSIBILITY: 0x200, + ASSEMBLE: 0x400, + PRINT_HIGH_QUALITY: 0x800 +}; +exports.PermissionFlag = PermissionFlag; +const TextRenderingMode = { + FILL: 0, + STROKE: 1, + FILL_STROKE: 2, + INVISIBLE: 3, + FILL_ADD_TO_PATH: 4, + STROKE_ADD_TO_PATH: 5, + FILL_STROKE_ADD_TO_PATH: 6, + ADD_TO_PATH: 7, + FILL_STROKE_MASK: 3, + ADD_TO_PATH_FLAG: 4 +}; +exports.TextRenderingMode = TextRenderingMode; +const ImageKind = { + GRAYSCALE_1BPP: 1, + RGB_24BPP: 2, + RGBA_32BPP: 3 +}; +exports.ImageKind = ImageKind; +const AnnotationType = { + TEXT: 1, + LINK: 2, + FREETEXT: 3, + LINE: 4, + SQUARE: 5, + CIRCLE: 6, + POLYGON: 7, + POLYLINE: 8, + HIGHLIGHT: 9, + UNDERLINE: 10, + SQUIGGLY: 11, + STRIKEOUT: 12, + STAMP: 13, + CARET: 14, + INK: 15, + POPUP: 16, + FILEATTACHMENT: 17, + SOUND: 18, + MOVIE: 19, + WIDGET: 20, + SCREEN: 21, + PRINTERMARK: 22, + TRAPNET: 23, + WATERMARK: 24, + THREED: 25, + REDACT: 26 +}; +exports.AnnotationType = AnnotationType; +const AnnotationStateModelType = { + MARKED: "Marked", + REVIEW: "Review" +}; +exports.AnnotationStateModelType = AnnotationStateModelType; +const AnnotationMarkedState = { + MARKED: "Marked", + UNMARKED: "Unmarked" +}; +exports.AnnotationMarkedState = AnnotationMarkedState; +const AnnotationReviewState = { + ACCEPTED: "Accepted", + REJECTED: "Rejected", + CANCELLED: "Cancelled", + COMPLETED: "Completed", + NONE: "None" +}; +exports.AnnotationReviewState = AnnotationReviewState; +const AnnotationReplyType = { + GROUP: "Group", + REPLY: "R" +}; +exports.AnnotationReplyType = AnnotationReplyType; +const AnnotationFlag = { + INVISIBLE: 0x01, + HIDDEN: 0x02, + PRINT: 0x04, + NOZOOM: 0x08, + NOROTATE: 0x10, + NOVIEW: 0x20, + READONLY: 0x40, + LOCKED: 0x80, + TOGGLENOVIEW: 0x100, + LOCKEDCONTENTS: 0x200 +}; +exports.AnnotationFlag = AnnotationFlag; +const AnnotationFieldFlag = { + READONLY: 0x0000001, + REQUIRED: 0x0000002, + NOEXPORT: 0x0000004, + MULTILINE: 0x0001000, + PASSWORD: 0x0002000, + NOTOGGLETOOFF: 0x0004000, + RADIO: 0x0008000, + PUSHBUTTON: 0x0010000, + COMBO: 0x0020000, + EDIT: 0x0040000, + SORT: 0x0080000, + FILESELECT: 0x0100000, + MULTISELECT: 0x0200000, + DONOTSPELLCHECK: 0x0400000, + DONOTSCROLL: 0x0800000, + COMB: 0x1000000, + RICHTEXT: 0x2000000, + RADIOSINUNISON: 0x2000000, + COMMITONSELCHANGE: 0x4000000 +}; +exports.AnnotationFieldFlag = AnnotationFieldFlag; +const AnnotationBorderStyleType = { + SOLID: 1, + DASHED: 2, + BEVELED: 3, + INSET: 4, + UNDERLINE: 5 +}; +exports.AnnotationBorderStyleType = AnnotationBorderStyleType; +const AnnotationActionEventType = { + E: "Mouse Enter", + X: "Mouse Exit", + D: "Mouse Down", + U: "Mouse Up", + Fo: "Focus", + Bl: "Blur", + PO: "PageOpen", + PC: "PageClose", + PV: "PageVisible", + PI: "PageInvisible", + K: "Keystroke", + F: "Format", + V: "Validate", + C: "Calculate" +}; +exports.AnnotationActionEventType = AnnotationActionEventType; +const DocumentActionEventType = { + WC: "WillClose", + WS: "WillSave", + DS: "DidSave", + WP: "WillPrint", + DP: "DidPrint" +}; +exports.DocumentActionEventType = DocumentActionEventType; +const PageActionEventType = { + O: "PageOpen", + C: "PageClose" +}; +exports.PageActionEventType = PageActionEventType; +const StreamType = { + UNKNOWN: "UNKNOWN", + FLATE: "FLATE", + LZW: "LZW", + DCT: "DCT", + JPX: "JPX", + JBIG: "JBIG", + A85: "A85", + AHX: "AHX", + CCF: "CCF", + RLX: "RLX" +}; +exports.StreamType = StreamType; +const FontType = { + UNKNOWN: "UNKNOWN", + TYPE1: "TYPE1", + TYPE1STANDARD: "TYPE1STANDARD", + TYPE1C: "TYPE1C", + CIDFONTTYPE0: "CIDFONTTYPE0", + CIDFONTTYPE0C: "CIDFONTTYPE0C", + TRUETYPE: "TRUETYPE", + CIDFONTTYPE2: "CIDFONTTYPE2", + TYPE3: "TYPE3", + OPENTYPE: "OPENTYPE", + TYPE0: "TYPE0", + MMTYPE1: "MMTYPE1" +}; +exports.FontType = FontType; +const VerbosityLevel = { + ERRORS: 0, + WARNINGS: 1, + INFOS: 5 +}; +exports.VerbosityLevel = VerbosityLevel; +const CMapCompressionType = { + NONE: 0, + BINARY: 1, + STREAM: 2 +}; +exports.CMapCompressionType = CMapCompressionType; +const OPS = { + dependency: 1, + setLineWidth: 2, + setLineCap: 3, + setLineJoin: 4, + setMiterLimit: 5, + setDash: 6, + setRenderingIntent: 7, + setFlatness: 8, + setGState: 9, + save: 10, + restore: 11, + transform: 12, + moveTo: 13, + lineTo: 14, + curveTo: 15, + curveTo2: 16, + curveTo3: 17, + closePath: 18, + rectangle: 19, + stroke: 20, + closeStroke: 21, + fill: 22, + eoFill: 23, + fillStroke: 24, + eoFillStroke: 25, + closeFillStroke: 26, + closeEOFillStroke: 27, + endPath: 28, + clip: 29, + eoClip: 30, + beginText: 31, + endText: 32, + setCharSpacing: 33, + setWordSpacing: 34, + setHScale: 35, + setLeading: 36, + setFont: 37, + setTextRenderingMode: 38, + setTextRise: 39, + moveText: 40, + setLeadingMoveText: 41, + setTextMatrix: 42, + nextLine: 43, + showText: 44, + showSpacedText: 45, + nextLineShowText: 46, + nextLineSetSpacingShowText: 47, + setCharWidth: 48, + setCharWidthAndBounds: 49, + setStrokeColorSpace: 50, + setFillColorSpace: 51, + setStrokeColor: 52, + setStrokeColorN: 53, + setFillColor: 54, + setFillColorN: 55, + setStrokeGray: 56, + setFillGray: 57, + setStrokeRGBColor: 58, + setFillRGBColor: 59, + setStrokeCMYKColor: 60, + setFillCMYKColor: 61, + shadingFill: 62, + beginInlineImage: 63, + beginImageData: 64, + endInlineImage: 65, + paintXObject: 66, + markPoint: 67, + markPointProps: 68, + beginMarkedContent: 69, + beginMarkedContentProps: 70, + endMarkedContent: 71, + beginCompat: 72, + endCompat: 73, + paintFormXObjectBegin: 74, + paintFormXObjectEnd: 75, + beginGroup: 76, + endGroup: 77, + beginAnnotations: 78, + endAnnotations: 79, + beginAnnotation: 80, + endAnnotation: 81, + paintJpegXObject: 82, + paintImageMaskXObject: 83, + paintImageMaskXObjectGroup: 84, + paintImageXObject: 85, + paintInlineImageXObject: 86, + paintInlineImageXObjectGroup: 87, + paintImageXObjectRepeat: 88, + paintImageMaskXObjectRepeat: 89, + paintSolidColorImageMask: 90, + constructPath: 91 +}; +exports.OPS = OPS; +const UNSUPPORTED_FEATURES = { + unknown: "unknown", + forms: "forms", + javaScript: "javaScript", + signatures: "signatures", + smask: "smask", + shadingPattern: "shadingPattern", + font: "font", + errorTilingPattern: "errorTilingPattern", + errorExtGState: "errorExtGState", + errorXObject: "errorXObject", + errorFontLoadType3: "errorFontLoadType3", + errorFontState: "errorFontState", + errorFontMissing: "errorFontMissing", + errorFontTranslate: "errorFontTranslate", + errorColorSpace: "errorColorSpace", + errorOperatorList: "errorOperatorList", + errorFontToUnicode: "errorFontToUnicode", + errorFontLoadNative: "errorFontLoadNative", + errorFontBuildPath: "errorFontBuildPath", + errorFontGetPath: "errorFontGetPath", + errorMarkedContent: "errorMarkedContent", + errorContentSubStream: "errorContentSubStream" +}; +exports.UNSUPPORTED_FEATURES = UNSUPPORTED_FEATURES; +const PasswordResponses = { + NEED_PASSWORD: 1, + INCORRECT_PASSWORD: 2 +}; +exports.PasswordResponses = PasswordResponses; +let verbosity = VerbosityLevel.WARNINGS; + +function setVerbosityLevel(level) { + if (Number.isInteger(level)) { + verbosity = level; + } +} + +function getVerbosityLevel() { + return verbosity; +} + +function info(msg) { + if (verbosity >= VerbosityLevel.INFOS) { + console.log(`Info: ${msg}`); + } +} + +function warn(msg) { + if (verbosity >= VerbosityLevel.WARNINGS) { + console.log(`Warning: ${msg}`); + } +} + +function unreachable(msg) { + throw new Error(msg); +} + +function assert(cond, msg) { + if (!cond) { + unreachable(msg); + } +} + +function _isValidProtocol(url) { + if (!url) { + return false; + } + + switch (url.protocol) { + case "http:": + case "https:": + case "ftp:": + case "mailto:": + case "tel:": + return true; + + default: + return false; + } +} + +function createValidAbsoluteUrl(url, baseUrl = null, options = null) { + if (!url) { + return null; + } + + try { + if (options && typeof url === "string") { + if (options.addDefaultProtocol && url.startsWith("www.")) { + const dots = url.match(/\./g); + + if (dots && dots.length >= 2) { + url = `http://${url}`; + } + } + + if (options.tryConvertEncoding) { + try { + url = stringToUTF8String(url); + } catch (ex) {} + } + } + + const absoluteUrl = baseUrl ? new URL(url, baseUrl) : new URL(url); + + if (_isValidProtocol(absoluteUrl)) { + return absoluteUrl; + } + } catch (ex) {} + + return null; +} + +function shadow(obj, prop, value) { + Object.defineProperty(obj, prop, { + value, + enumerable: true, + configurable: true, + writable: false + }); + return value; +} + +const BaseException = function BaseExceptionClosure() { + function BaseException(message, name) { + if (this.constructor === BaseException) { + unreachable("Cannot initialize BaseException."); + } + + this.message = message; + this.name = name; + } + + BaseException.prototype = new Error(); + BaseException.constructor = BaseException; + return BaseException; +}(); + +exports.BaseException = BaseException; + +class PasswordException extends BaseException { + constructor(msg, code) { + super(msg, "PasswordException"); + this.code = code; + } + +} + +exports.PasswordException = PasswordException; + +class UnknownErrorException extends BaseException { + constructor(msg, details) { + super(msg, "UnknownErrorException"); + this.details = details; + } + +} + +exports.UnknownErrorException = UnknownErrorException; + +class InvalidPDFException extends BaseException { + constructor(msg) { + super(msg, "InvalidPDFException"); + } + +} + +exports.InvalidPDFException = InvalidPDFException; + +class MissingPDFException extends BaseException { + constructor(msg) { + super(msg, "MissingPDFException"); + } + +} + +exports.MissingPDFException = MissingPDFException; + +class UnexpectedResponseException extends BaseException { + constructor(msg, status) { + super(msg, "UnexpectedResponseException"); + this.status = status; + } + +} + +exports.UnexpectedResponseException = UnexpectedResponseException; + +class FormatError extends BaseException { + constructor(msg) { + super(msg, "FormatError"); + } + +} + +exports.FormatError = FormatError; + +class AbortException extends BaseException { + constructor(msg) { + super(msg, "AbortException"); + } + +} + +exports.AbortException = AbortException; + +function bytesToString(bytes) { + if (typeof bytes !== "object" || bytes === null || bytes.length === undefined) { + unreachable("Invalid argument for bytesToString"); + } + + const length = bytes.length; + const MAX_ARGUMENT_COUNT = 8192; + + if (length < MAX_ARGUMENT_COUNT) { + return String.fromCharCode.apply(null, bytes); + } + + const strBuf = []; + + for (let i = 0; i < length; i += MAX_ARGUMENT_COUNT) { + const chunkEnd = Math.min(i + MAX_ARGUMENT_COUNT, length); + const chunk = bytes.subarray(i, chunkEnd); + strBuf.push(String.fromCharCode.apply(null, chunk)); + } + + return strBuf.join(""); +} + +function stringToBytes(str) { + if (typeof str !== "string") { + unreachable("Invalid argument for stringToBytes"); + } + + const length = str.length; + const bytes = new Uint8Array(length); + + for (let i = 0; i < length; ++i) { + bytes[i] = str.charCodeAt(i) & 0xff; + } + + return bytes; +} + +function arrayByteLength(arr) { + if (arr.length !== undefined) { + return arr.length; + } + + if (arr.byteLength !== undefined) { + return arr.byteLength; + } + + unreachable("Invalid argument for arrayByteLength"); +} + +function arraysToBytes(arr) { + const length = arr.length; + + if (length === 1 && arr[0] instanceof Uint8Array) { + return arr[0]; + } + + let resultLength = 0; + + for (let i = 0; i < length; i++) { + resultLength += arrayByteLength(arr[i]); + } + + let pos = 0; + const data = new Uint8Array(resultLength); + + for (let i = 0; i < length; i++) { + let item = arr[i]; + + if (!(item instanceof Uint8Array)) { + if (typeof item === "string") { + item = stringToBytes(item); + } else { + item = new Uint8Array(item); + } + } + + const itemLength = item.byteLength; + data.set(item, pos); + pos += itemLength; + } + + return data; +} + +function string32(value) { + return String.fromCharCode(value >> 24 & 0xff, value >> 16 & 0xff, value >> 8 & 0xff, value & 0xff); +} + +function objectSize(obj) { + return Object.keys(obj).length; +} + +function objectFromMap(map) { + const obj = Object.create(null); + + for (const [key, value] of map) { + obj[key] = value; + } + + return obj; +} + +function isLittleEndian() { + const buffer8 = new Uint8Array(4); + buffer8[0] = 1; + const view32 = new Uint32Array(buffer8.buffer, 0, 1); + return view32[0] === 1; +} + +function isEvalSupported() { + try { + new Function(""); + return true; + } catch (e) { + return false; + } +} + +class FeatureTest { + static get isLittleEndian() { + return shadow(this, "isLittleEndian", isLittleEndian()); + } + + static get isEvalSupported() { + return shadow(this, "isEvalSupported", isEvalSupported()); + } + + static get isOffscreenCanvasSupported() { + return shadow(this, "isOffscreenCanvasSupported", typeof OffscreenCanvas !== "undefined"); + } + +} + +exports.FeatureTest = FeatureTest; +const hexNumbers = [...Array(256).keys()].map(n => n.toString(16).padStart(2, "0")); + +class Util { + static makeHexColor(r, g, b) { + return `#${hexNumbers[r]}${hexNumbers[g]}${hexNumbers[b]}`; + } + + static scaleMinMax(transform, minMax) { + let temp; + + if (transform[0]) { + if (transform[0] < 0) { + temp = minMax[0]; + minMax[0] = minMax[1]; + minMax[1] = temp; + } + + minMax[0] *= transform[0]; + minMax[1] *= transform[0]; + + if (transform[3] < 0) { + temp = minMax[2]; + minMax[2] = minMax[3]; + minMax[3] = temp; + } + + minMax[2] *= transform[3]; + minMax[3] *= transform[3]; + } else { + temp = minMax[0]; + minMax[0] = minMax[2]; + minMax[2] = temp; + temp = minMax[1]; + minMax[1] = minMax[3]; + minMax[3] = temp; + + if (transform[1] < 0) { + temp = minMax[2]; + minMax[2] = minMax[3]; + minMax[3] = temp; + } + + minMax[2] *= transform[1]; + minMax[3] *= transform[1]; + + if (transform[2] < 0) { + temp = minMax[0]; + minMax[0] = minMax[1]; + minMax[1] = temp; + } + + minMax[0] *= transform[2]; + minMax[1] *= transform[2]; + } + + minMax[0] += transform[4]; + minMax[1] += transform[4]; + minMax[2] += transform[5]; + minMax[3] += transform[5]; + } + + static transform(m1, m2) { + return [m1[0] * m2[0] + m1[2] * m2[1], m1[1] * m2[0] + m1[3] * m2[1], m1[0] * m2[2] + m1[2] * m2[3], m1[1] * m2[2] + m1[3] * m2[3], m1[0] * m2[4] + m1[2] * m2[5] + m1[4], m1[1] * m2[4] + m1[3] * m2[5] + m1[5]]; + } + + static applyTransform(p, m) { + const xt = p[0] * m[0] + p[1] * m[2] + m[4]; + const yt = p[0] * m[1] + p[1] * m[3] + m[5]; + return [xt, yt]; + } + + static applyInverseTransform(p, m) { + const d = m[0] * m[3] - m[1] * m[2]; + const xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d; + const yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d; + return [xt, yt]; + } + + static getAxialAlignedBoundingBox(r, m) { + const p1 = Util.applyTransform(r, m); + const p2 = Util.applyTransform(r.slice(2, 4), m); + const p3 = Util.applyTransform([r[0], r[3]], m); + const p4 = Util.applyTransform([r[2], r[1]], m); + return [Math.min(p1[0], p2[0], p3[0], p4[0]), Math.min(p1[1], p2[1], p3[1], p4[1]), Math.max(p1[0], p2[0], p3[0], p4[0]), Math.max(p1[1], p2[1], p3[1], p4[1])]; + } + + static inverseTransform(m) { + const d = m[0] * m[3] - m[1] * m[2]; + return [m[3] / d, -m[1] / d, -m[2] / d, m[0] / d, (m[2] * m[5] - m[4] * m[3]) / d, (m[4] * m[1] - m[5] * m[0]) / d]; + } + + static apply3dTransform(m, v) { + return [m[0] * v[0] + m[1] * v[1] + m[2] * v[2], m[3] * v[0] + m[4] * v[1] + m[5] * v[2], m[6] * v[0] + m[7] * v[1] + m[8] * v[2]]; + } + + static singularValueDecompose2dScale(m) { + const transpose = [m[0], m[2], m[1], m[3]]; + const a = m[0] * transpose[0] + m[1] * transpose[2]; + const b = m[0] * transpose[1] + m[1] * transpose[3]; + const c = m[2] * transpose[0] + m[3] * transpose[2]; + const d = m[2] * transpose[1] + m[3] * transpose[3]; + const first = (a + d) / 2; + const second = Math.sqrt((a + d) ** 2 - 4 * (a * d - c * b)) / 2; + const sx = first + second || 1; + const sy = first - second || 1; + return [Math.sqrt(sx), Math.sqrt(sy)]; + } + + static normalizeRect(rect) { + const r = rect.slice(0); + + if (rect[0] > rect[2]) { + r[0] = rect[2]; + r[2] = rect[0]; + } + + if (rect[1] > rect[3]) { + r[1] = rect[3]; + r[3] = rect[1]; + } + + return r; + } + + static intersect(rect1, rect2) { + const xLow = Math.max(Math.min(rect1[0], rect1[2]), Math.min(rect2[0], rect2[2])); + const xHigh = Math.min(Math.max(rect1[0], rect1[2]), Math.max(rect2[0], rect2[2])); + + if (xLow > xHigh) { + return null; + } + + const yLow = Math.max(Math.min(rect1[1], rect1[3]), Math.min(rect2[1], rect2[3])); + const yHigh = Math.min(Math.max(rect1[1], rect1[3]), Math.max(rect2[1], rect2[3])); + + if (yLow > yHigh) { + return null; + } + + return [xLow, yLow, xHigh, yHigh]; + } + + static bezierBoundingBox(x0, y0, x1, y1, x2, y2, x3, y3) { + const tvalues = [], + bounds = [[], []]; + let a, b, c, t, t1, t2, b2ac, sqrtb2ac; + + for (let i = 0; i < 2; ++i) { + if (i === 0) { + b = 6 * x0 - 12 * x1 + 6 * x2; + a = -3 * x0 + 9 * x1 - 9 * x2 + 3 * x3; + c = 3 * x1 - 3 * x0; + } else { + b = 6 * y0 - 12 * y1 + 6 * y2; + a = -3 * y0 + 9 * y1 - 9 * y2 + 3 * y3; + c = 3 * y1 - 3 * y0; + } + + if (Math.abs(a) < 1e-12) { + if (Math.abs(b) < 1e-12) { + continue; + } + + t = -c / b; + + if (0 < t && t < 1) { + tvalues.push(t); + } + + continue; + } + + b2ac = b * b - 4 * c * a; + sqrtb2ac = Math.sqrt(b2ac); + + if (b2ac < 0) { + continue; + } + + t1 = (-b + sqrtb2ac) / (2 * a); + + if (0 < t1 && t1 < 1) { + tvalues.push(t1); + } + + t2 = (-b - sqrtb2ac) / (2 * a); + + if (0 < t2 && t2 < 1) { + tvalues.push(t2); + } + } + + let j = tvalues.length, + mt; + const jlen = j; + + while (j--) { + t = tvalues[j]; + mt = 1 - t; + bounds[0][j] = mt * mt * mt * x0 + 3 * mt * mt * t * x1 + 3 * mt * t * t * x2 + t * t * t * x3; + bounds[1][j] = mt * mt * mt * y0 + 3 * mt * mt * t * y1 + 3 * mt * t * t * y2 + t * t * t * y3; + } + + bounds[0][jlen] = x0; + bounds[1][jlen] = y0; + bounds[0][jlen + 1] = x3; + bounds[1][jlen + 1] = y3; + bounds[0].length = bounds[1].length = jlen + 2; + return [Math.min(...bounds[0]), Math.min(...bounds[1]), Math.max(...bounds[0]), Math.max(...bounds[1])]; + } + +} + +exports.Util = Util; +const PDFStringTranslateTable = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2d8, 0x2c7, 0x2c6, 0x2d9, 0x2dd, 0x2db, 0x2da, 0x2dc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014, 0x2013, 0x192, 0x2044, 0x2039, 0x203a, 0x2212, 0x2030, 0x201e, 0x201c, 0x201d, 0x2018, 0x2019, 0x201a, 0x2122, 0xfb01, 0xfb02, 0x141, 0x152, 0x160, 0x178, 0x17d, 0x131, 0x142, 0x153, 0x161, 0x17e, 0, 0x20ac]; + +function stringToPDFString(str) { + if (str[0] >= "\xEF") { + let encoding; + + if (str[0] === "\xFE" && str[1] === "\xFF") { + encoding = "utf-16be"; + } else if (str[0] === "\xFF" && str[1] === "\xFE") { + encoding = "utf-16le"; + } else if (str[0] === "\xEF" && str[1] === "\xBB" && str[2] === "\xBF") { + encoding = "utf-8"; + } + + if (encoding) { + try { + const decoder = new TextDecoder(encoding, { + fatal: true + }); + const buffer = stringToBytes(str); + return decoder.decode(buffer); + } catch (ex) { + warn(`stringToPDFString: "${ex}".`); + } + } + } + + const strBuf = []; + + for (let i = 0, ii = str.length; i < ii; i++) { + const code = PDFStringTranslateTable[str.charCodeAt(i)]; + strBuf.push(code ? String.fromCharCode(code) : str.charAt(i)); + } + + return strBuf.join(""); +} + +function escapeString(str) { + return str.replace(/([()\\\n\r])/g, match => { + if (match === "\n") { + return "\\n"; + } else if (match === "\r") { + return "\\r"; + } + + return `\\${match}`; + }); +} + +function isAscii(str) { + return /^[\x00-\x7F]*$/.test(str); +} + +function stringToUTF16BEString(str) { + const buf = ["\xFE\xFF"]; + + for (let i = 0, ii = str.length; i < ii; i++) { + const char = str.charCodeAt(i); + buf.push(String.fromCharCode(char >> 8 & 0xff), String.fromCharCode(char & 0xff)); + } + + return buf.join(""); +} + +function stringToUTF8String(str) { + return decodeURIComponent(escape(str)); +} + +function utf8StringToString(str) { + return unescape(encodeURIComponent(str)); +} + +function isArrayBuffer(v) { + return typeof v === "object" && v !== null && v.byteLength !== undefined; +} + +function isArrayEqual(arr1, arr2) { + if (arr1.length !== arr2.length) { + return false; + } + + for (let i = 0, ii = arr1.length; i < ii; i++) { + if (arr1[i] !== arr2[i]) { + return false; + } + } + + return true; +} + +function getModificationDate(date = new Date()) { + const buffer = [date.getUTCFullYear().toString(), (date.getUTCMonth() + 1).toString().padStart(2, "0"), date.getUTCDate().toString().padStart(2, "0"), date.getUTCHours().toString().padStart(2, "0"), date.getUTCMinutes().toString().padStart(2, "0"), date.getUTCSeconds().toString().padStart(2, "0")]; + return buffer.join(""); +} + +function createPromiseCapability() { + const capability = Object.create(null); + let isSettled = false; + Object.defineProperty(capability, "settled", { + get() { + return isSettled; + } + + }); + capability.promise = new Promise(function (resolve, reject) { + capability.resolve = function (data) { + isSettled = true; + resolve(data); + }; + + capability.reject = function (reason) { + isSettled = true; + reject(reason); + }; + }); + return capability; +} + +/***/ }), +/* 2 */ +/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => { + + + +var _is_node = __w_pdfjs_require__(3); + +; + +/***/ }), +/* 3 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.isNodeJS = void 0; +const isNodeJS = typeof process === "object" && process + "" === "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser"); +exports.isNodeJS = isNodeJS; + +/***/ }), +/* 4 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.build = exports.RenderTask = exports.PDFWorkerUtil = exports.PDFWorker = exports.PDFPageProxy = exports.PDFDocumentProxy = exports.PDFDocumentLoadingTask = exports.PDFDataRangeTransport = exports.LoopbackPort = exports.DefaultStandardFontDataFactory = exports.DefaultCanvasFactory = exports.DefaultCMapReaderFactory = void 0; +exports.getDocument = getDocument; +exports.setPDFNetworkStreamFactory = setPDFNetworkStreamFactory; +exports.version = void 0; + +var _util = __w_pdfjs_require__(1); + +var _annotation_storage = __w_pdfjs_require__(5); + +var _display_utils = __w_pdfjs_require__(8); + +var _font_loader = __w_pdfjs_require__(11); + +var _canvas = __w_pdfjs_require__(12); + +var _worker_options = __w_pdfjs_require__(15); + +var _is_node = __w_pdfjs_require__(3); + +var _message_handler = __w_pdfjs_require__(16); + +var _metadata = __w_pdfjs_require__(17); + +var _optional_content_config = __w_pdfjs_require__(18); + +var _transport_stream = __w_pdfjs_require__(19); + +var _xfa_text = __w_pdfjs_require__(20); + +const DEFAULT_RANGE_CHUNK_SIZE = 65536; +const RENDERING_CANCELLED_TIMEOUT = 100; +let DefaultCanvasFactory = _display_utils.DOMCanvasFactory; +exports.DefaultCanvasFactory = DefaultCanvasFactory; +let DefaultCMapReaderFactory = _display_utils.DOMCMapReaderFactory; +exports.DefaultCMapReaderFactory = DefaultCMapReaderFactory; +let DefaultStandardFontDataFactory = _display_utils.DOMStandardFontDataFactory; +exports.DefaultStandardFontDataFactory = DefaultStandardFontDataFactory; + +if (_is_node.isNodeJS) { + const { + NodeCanvasFactory, + NodeCMapReaderFactory, + NodeStandardFontDataFactory + } = __w_pdfjs_require__(21); + + exports.DefaultCanvasFactory = DefaultCanvasFactory = NodeCanvasFactory; + exports.DefaultCMapReaderFactory = DefaultCMapReaderFactory = NodeCMapReaderFactory; + exports.DefaultStandardFontDataFactory = DefaultStandardFontDataFactory = NodeStandardFontDataFactory; +} + +let createPDFNetworkStream; + +function setPDFNetworkStreamFactory(pdfNetworkStreamFactory) { + createPDFNetworkStream = pdfNetworkStreamFactory; +} + +function getDocument(src) { + const task = new PDFDocumentLoadingTask(); + let source; + + if (typeof src === "string" || src instanceof URL) { + source = { + url: src + }; + } else if ((0, _util.isArrayBuffer)(src)) { + source = { + data: src + }; + } else if (src instanceof PDFDataRangeTransport) { + source = { + range: src + }; + } else { + if (typeof src !== "object") { + throw new Error("Invalid parameter in getDocument, " + "need either string, URL, TypedArray, or parameter object."); + } + + if (!src.url && !src.data && !src.range) { + throw new Error("Invalid parameter object: need either .data, .range or .url"); + } + + source = src; + } + + const params = Object.create(null); + let rangeTransport = null, + worker = null; + + for (const key in source) { + const value = source[key]; + + switch (key) { + case "url": + if (typeof window !== "undefined") { + try { + params[key] = new URL(value, window.location).href; + continue; + } catch (ex) { + (0, _util.warn)(`Cannot create valid URL: "${ex}".`); + } + } else if (typeof value === "string" || value instanceof URL) { + params[key] = value.toString(); + continue; + } + + throw new Error("Invalid PDF url data: " + "either string or URL-object is expected in the url property."); + + case "range": + rangeTransport = value; + continue; + + case "worker": + worker = value; + continue; + + case "data": + if (_is_node.isNodeJS && typeof Buffer !== "undefined" && value instanceof Buffer) { + params[key] = new Uint8Array(value); + } else if (value instanceof Uint8Array) { + break; + } else if (typeof value === "string") { + params[key] = (0, _util.stringToBytes)(value); + } else if (typeof value === "object" && value !== null && !isNaN(value.length)) { + params[key] = new Uint8Array(value); + } else if ((0, _util.isArrayBuffer)(value)) { + params[key] = new Uint8Array(value); + } else { + throw new Error("Invalid PDF binary data: either TypedArray, " + "string, or array-like object is expected in the data property."); + } + + continue; + } + + params[key] = value; + } + + params.CMapReaderFactory = params.CMapReaderFactory || DefaultCMapReaderFactory; + params.StandardFontDataFactory = params.StandardFontDataFactory || DefaultStandardFontDataFactory; + params.ignoreErrors = params.stopAtErrors !== true; + params.fontExtraProperties = params.fontExtraProperties === true; + params.pdfBug = params.pdfBug === true; + params.enableXfa = params.enableXfa === true; + + if (!Number.isInteger(params.rangeChunkSize) || params.rangeChunkSize < 1) { + params.rangeChunkSize = DEFAULT_RANGE_CHUNK_SIZE; + } + + if (typeof params.docBaseUrl !== "string" || (0, _display_utils.isDataScheme)(params.docBaseUrl)) { + params.docBaseUrl = null; + } + + if (!Number.isInteger(params.maxImageSize) || params.maxImageSize < -1) { + params.maxImageSize = -1; + } + + if (typeof params.cMapUrl !== "string") { + params.cMapUrl = null; + } + + if (typeof params.standardFontDataUrl !== "string") { + params.standardFontDataUrl = null; + } + + if (typeof params.useWorkerFetch !== "boolean") { + params.useWorkerFetch = params.CMapReaderFactory === _display_utils.DOMCMapReaderFactory && params.StandardFontDataFactory === _display_utils.DOMStandardFontDataFactory; + } + + if (typeof params.isEvalSupported !== "boolean") { + params.isEvalSupported = true; + } + + if (typeof params.disableFontFace !== "boolean") { + params.disableFontFace = _is_node.isNodeJS; + } + + if (typeof params.useSystemFonts !== "boolean") { + params.useSystemFonts = !_is_node.isNodeJS && !params.disableFontFace; + } + + if (typeof params.ownerDocument !== "object" || params.ownerDocument === null) { + params.ownerDocument = globalThis.document; + } + + if (typeof params.disableRange !== "boolean") { + params.disableRange = false; + } + + if (typeof params.disableStream !== "boolean") { + params.disableStream = false; + } + + if (typeof params.disableAutoFetch !== "boolean") { + params.disableAutoFetch = false; + } + + (0, _util.setVerbosityLevel)(params.verbosity); + + if (!worker) { + const workerParams = { + verbosity: params.verbosity, + port: _worker_options.GlobalWorkerOptions.workerPort + }; + worker = workerParams.port ? PDFWorker.fromPort(workerParams) : new PDFWorker(workerParams); + task._worker = worker; + } + + const docId = task.docId; + worker.promise.then(function () { + if (task.destroyed) { + throw new Error("Loading aborted"); + } + + const workerIdPromise = _fetchDocument(worker, params, rangeTransport, docId); + + const networkStreamPromise = new Promise(function (resolve) { + let networkStream; + + if (rangeTransport) { + networkStream = new _transport_stream.PDFDataTransportStream({ + length: params.length, + initialData: params.initialData, + progressiveDone: params.progressiveDone, + contentDispositionFilename: params.contentDispositionFilename, + disableRange: params.disableRange, + disableStream: params.disableStream + }, rangeTransport); + } else if (!params.data) { + networkStream = createPDFNetworkStream({ + url: params.url, + length: params.length, + httpHeaders: params.httpHeaders, + withCredentials: params.withCredentials, + rangeChunkSize: params.rangeChunkSize, + disableRange: params.disableRange, + disableStream: params.disableStream + }); + } + + resolve(networkStream); + }); + return Promise.all([workerIdPromise, networkStreamPromise]).then(function ([workerId, networkStream]) { + if (task.destroyed) { + throw new Error("Loading aborted"); + } + + const messageHandler = new _message_handler.MessageHandler(docId, workerId, worker.port); + const transport = new WorkerTransport(messageHandler, task, networkStream, params); + task._transport = transport; + messageHandler.send("Ready", null); + }); + }).catch(task._capability.reject); + return task; +} + +async function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { + if (worker.destroyed) { + throw new Error("Worker was destroyed"); + } + + if (pdfDataRangeTransport) { + source.length = pdfDataRangeTransport.length; + source.initialData = pdfDataRangeTransport.initialData; + source.progressiveDone = pdfDataRangeTransport.progressiveDone; + source.contentDispositionFilename = pdfDataRangeTransport.contentDispositionFilename; + } + + const workerId = await worker.messageHandler.sendWithPromise("GetDocRequest", { + docId, + apiVersion: '2.16.105', + source: { + data: source.data, + url: source.url, + password: source.password, + disableAutoFetch: source.disableAutoFetch, + rangeChunkSize: source.rangeChunkSize, + length: source.length + }, + maxImageSize: source.maxImageSize, + disableFontFace: source.disableFontFace, + docBaseUrl: source.docBaseUrl, + ignoreErrors: source.ignoreErrors, + isEvalSupported: source.isEvalSupported, + fontExtraProperties: source.fontExtraProperties, + enableXfa: source.enableXfa, + useSystemFonts: source.useSystemFonts, + cMapUrl: source.useWorkerFetch ? source.cMapUrl : null, + standardFontDataUrl: source.useWorkerFetch ? source.standardFontDataUrl : null + }); + + if (source.data) { + source.data = null; + } + + if (worker.destroyed) { + throw new Error("Worker was destroyed"); + } + + return workerId; +} + +class PDFDocumentLoadingTask { + static #docId = 0; + + constructor() { + this._capability = (0, _util.createPromiseCapability)(); + this._transport = null; + this._worker = null; + this.docId = `d${PDFDocumentLoadingTask.#docId++}`; + this.destroyed = false; + this.onPassword = null; + this.onProgress = null; + this.onUnsupportedFeature = null; + } + + get promise() { + return this._capability.promise; + } + + async destroy() { + this.destroyed = true; + await this._transport?.destroy(); + this._transport = null; + + if (this._worker) { + this._worker.destroy(); + + this._worker = null; + } + } + +} + +exports.PDFDocumentLoadingTask = PDFDocumentLoadingTask; + +class PDFDataRangeTransport { + constructor(length, initialData, progressiveDone = false, contentDispositionFilename = null) { + this.length = length; + this.initialData = initialData; + this.progressiveDone = progressiveDone; + this.contentDispositionFilename = contentDispositionFilename; + this._rangeListeners = []; + this._progressListeners = []; + this._progressiveReadListeners = []; + this._progressiveDoneListeners = []; + this._readyCapability = (0, _util.createPromiseCapability)(); + } + + addRangeListener(listener) { + this._rangeListeners.push(listener); + } + + addProgressListener(listener) { + this._progressListeners.push(listener); + } + + addProgressiveReadListener(listener) { + this._progressiveReadListeners.push(listener); + } + + addProgressiveDoneListener(listener) { + this._progressiveDoneListeners.push(listener); + } + + onDataRange(begin, chunk) { + for (const listener of this._rangeListeners) { + listener(begin, chunk); + } + } + + onDataProgress(loaded, total) { + this._readyCapability.promise.then(() => { + for (const listener of this._progressListeners) { + listener(loaded, total); + } + }); + } + + onDataProgressiveRead(chunk) { + this._readyCapability.promise.then(() => { + for (const listener of this._progressiveReadListeners) { + listener(chunk); + } + }); + } + + onDataProgressiveDone() { + this._readyCapability.promise.then(() => { + for (const listener of this._progressiveDoneListeners) { + listener(); + } + }); + } + + transportReady() { + this._readyCapability.resolve(); + } + + requestDataRange(begin, end) { + (0, _util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange"); + } + + abort() {} + +} + +exports.PDFDataRangeTransport = PDFDataRangeTransport; + +class PDFDocumentProxy { + constructor(pdfInfo, transport) { + this._pdfInfo = pdfInfo; + this._transport = transport; + Object.defineProperty(this, "fingerprint", { + get() { + (0, _display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, " + "please use `PDFDocumentProxy.fingerprints` instead."); + return this.fingerprints[0]; + } + + }); + Object.defineProperty(this, "getStats", { + value: async () => { + (0, _display_utils.deprecated)("`PDFDocumentProxy.getStats`, " + "please use the `PDFDocumentProxy.stats`-getter instead."); + return this.stats || { + streamTypes: {}, + fontTypes: {} + }; + } + }); + } + + get annotationStorage() { + return this._transport.annotationStorage; + } + + get numPages() { + return this._pdfInfo.numPages; + } + + get fingerprints() { + return this._pdfInfo.fingerprints; + } + + get stats() { + return this._transport.stats; + } + + get isPureXfa() { + return !!this._transport._htmlForXfa; + } + + get allXfaHtml() { + return this._transport._htmlForXfa; + } + + getPage(pageNumber) { + return this._transport.getPage(pageNumber); + } + + getPageIndex(ref) { + return this._transport.getPageIndex(ref); + } + + getDestinations() { + return this._transport.getDestinations(); + } + + getDestination(id) { + return this._transport.getDestination(id); + } + + getPageLabels() { + return this._transport.getPageLabels(); + } + + getPageLayout() { + return this._transport.getPageLayout(); + } + + getPageMode() { + return this._transport.getPageMode(); + } + + getViewerPreferences() { + return this._transport.getViewerPreferences(); + } + + getOpenAction() { + return this._transport.getOpenAction(); + } + + getAttachments() { + return this._transport.getAttachments(); + } + + getJavaScript() { + return this._transport.getJavaScript(); + } + + getJSActions() { + return this._transport.getDocJSActions(); + } + + getOutline() { + return this._transport.getOutline(); + } + + getOptionalContentConfig() { + return this._transport.getOptionalContentConfig(); + } + + getPermissions() { + return this._transport.getPermissions(); + } + + getMetadata() { + return this._transport.getMetadata(); + } + + getMarkInfo() { + return this._transport.getMarkInfo(); + } + + getData() { + return this._transport.getData(); + } + + getDownloadInfo() { + return this._transport.downloadInfoCapability.promise; + } + + cleanup(keepLoadedFonts = false) { + return this._transport.startCleanup(keepLoadedFonts || this.isPureXfa); + } + + destroy() { + return this.loadingTask.destroy(); + } + + get loadingParams() { + return this._transport.loadingParams; + } + + get loadingTask() { + return this._transport.loadingTask; + } + + saveDocument() { + if (this._transport.annotationStorage.size <= 0) { + (0, _display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, " + "please use the getData-method instead."); + } + + return this._transport.saveDocument(); + } + + getFieldObjects() { + return this._transport.getFieldObjects(); + } + + hasJSActions() { + return this._transport.hasJSActions(); + } + + getCalculationOrderIds() { + return this._transport.getCalculationOrderIds(); + } + +} + +exports.PDFDocumentProxy = PDFDocumentProxy; + +class PDFPageProxy { + constructor(pageIndex, pageInfo, transport, ownerDocument, pdfBug = false) { + this._pageIndex = pageIndex; + this._pageInfo = pageInfo; + this._ownerDocument = ownerDocument; + this._transport = transport; + this._stats = pdfBug ? new _display_utils.StatTimer() : null; + this._pdfBug = pdfBug; + this.commonObjs = transport.commonObjs; + this.objs = new PDFObjects(); + this._bitmaps = new Set(); + this.cleanupAfterRender = false; + this.pendingCleanup = false; + this._intentStates = new Map(); + this._annotationPromises = new Map(); + this.destroyed = false; + } + + get pageNumber() { + return this._pageIndex + 1; + } + + get rotate() { + return this._pageInfo.rotate; + } + + get ref() { + return this._pageInfo.ref; + } + + get userUnit() { + return this._pageInfo.userUnit; + } + + get view() { + return this._pageInfo.view; + } + + getViewport({ + scale, + rotation = this.rotate, + offsetX = 0, + offsetY = 0, + dontFlip = false + } = {}) { + return new _display_utils.PageViewport({ + viewBox: this.view, + scale, + rotation, + offsetX, + offsetY, + dontFlip + }); + } + + getAnnotations({ + intent = "display" + } = {}) { + const intentArgs = this._transport.getRenderingIntent(intent); + + let promise = this._annotationPromises.get(intentArgs.cacheKey); + + if (!promise) { + promise = this._transport.getAnnotations(this._pageIndex, intentArgs.renderingIntent); + + this._annotationPromises.set(intentArgs.cacheKey, promise); + + promise = promise.then(annotations => { + for (const annotation of annotations) { + if (annotation.titleObj !== undefined) { + Object.defineProperty(annotation, "title", { + get() { + (0, _display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."); + return annotation.titleObj.str; + } + + }); + } + + if (annotation.contentsObj !== undefined) { + Object.defineProperty(annotation, "contents", { + get() { + (0, _display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."); + return annotation.contentsObj.str; + } + + }); + } + } + + return annotations; + }); + } + + return promise; + } + + getJSActions() { + return this._jsActionsPromise ||= this._transport.getPageJSActions(this._pageIndex); + } + + async getXfa() { + return this._transport._htmlForXfa?.children[this._pageIndex] || null; + } + + render({ + canvasContext, + viewport, + intent = "display", + annotationMode = _util.AnnotationMode.ENABLE, + transform = null, + imageLayer = null, + canvasFactory = null, + background = null, + optionalContentConfigPromise = null, + annotationCanvasMap = null, + pageColors = null, + printAnnotationStorage = null + }) { + if (arguments[0]?.renderInteractiveForms !== undefined) { + (0, _display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, " + "please use the `annotationMode`-option instead."); + + if (arguments[0].renderInteractiveForms === true && annotationMode === _util.AnnotationMode.ENABLE) { + annotationMode = _util.AnnotationMode.ENABLE_FORMS; + } + } + + if (arguments[0]?.includeAnnotationStorage !== undefined) { + (0, _display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, " + "please use the `annotationMode`-option instead."); + + if (arguments[0].includeAnnotationStorage === true && annotationMode === _util.AnnotationMode.ENABLE) { + annotationMode = _util.AnnotationMode.ENABLE_STORAGE; + } + } + + if (this._stats) { + this._stats.time("Overall"); + } + + const intentArgs = this._transport.getRenderingIntent(intent, annotationMode, printAnnotationStorage); + + this.pendingCleanup = false; + + if (!optionalContentConfigPromise) { + optionalContentConfigPromise = this._transport.getOptionalContentConfig(); + } + + let intentState = this._intentStates.get(intentArgs.cacheKey); + + if (!intentState) { + intentState = Object.create(null); + + this._intentStates.set(intentArgs.cacheKey, intentState); + } + + if (intentState.streamReaderCancelTimeout) { + clearTimeout(intentState.streamReaderCancelTimeout); + intentState.streamReaderCancelTimeout = null; + } + + const canvasFactoryInstance = canvasFactory || new DefaultCanvasFactory({ + ownerDocument: this._ownerDocument + }); + const intentPrint = !!(intentArgs.renderingIntent & _util.RenderingIntentFlag.PRINT); + + if (!intentState.displayReadyCapability) { + intentState.displayReadyCapability = (0, _util.createPromiseCapability)(); + intentState.operatorList = { + fnArray: [], + argsArray: [], + lastChunk: false, + separateAnnots: null + }; + + if (this._stats) { + this._stats.time("Page Request"); + } + + this._pumpOperatorList(intentArgs); + } + + const complete = error => { + intentState.renderTasks.delete(internalRenderTask); + + if (this.cleanupAfterRender || intentPrint) { + this.pendingCleanup = true; + } + + this._tryCleanup(); + + if (error) { + internalRenderTask.capability.reject(error); + + this._abortOperatorList({ + intentState, + reason: error instanceof Error ? error : new Error(error) + }); + } else { + internalRenderTask.capability.resolve(); + } + + if (this._stats) { + this._stats.timeEnd("Rendering"); + + this._stats.timeEnd("Overall"); + } + }; + + const internalRenderTask = new InternalRenderTask({ + callback: complete, + params: { + canvasContext, + viewport, + transform, + imageLayer, + background + }, + objs: this.objs, + commonObjs: this.commonObjs, + annotationCanvasMap, + operatorList: intentState.operatorList, + pageIndex: this._pageIndex, + canvasFactory: canvasFactoryInstance, + useRequestAnimationFrame: !intentPrint, + pdfBug: this._pdfBug, + pageColors + }); + (intentState.renderTasks ||= new Set()).add(internalRenderTask); + const renderTask = internalRenderTask.task; + Promise.all([intentState.displayReadyCapability.promise, optionalContentConfigPromise]).then(([transparency, optionalContentConfig]) => { + if (this.pendingCleanup) { + complete(); + return; + } + + if (this._stats) { + this._stats.time("Rendering"); + } + + internalRenderTask.initializeGraphics({ + transparency, + optionalContentConfig + }); + internalRenderTask.operatorListChanged(); + }).catch(complete); + return renderTask; + } + + getOperatorList({ + intent = "display", + annotationMode = _util.AnnotationMode.ENABLE, + printAnnotationStorage = null + } = {}) { + function operatorListChanged() { + if (intentState.operatorList.lastChunk) { + intentState.opListReadCapability.resolve(intentState.operatorList); + intentState.renderTasks.delete(opListTask); + } + } + + const intentArgs = this._transport.getRenderingIntent(intent, annotationMode, printAnnotationStorage, true); + + let intentState = this._intentStates.get(intentArgs.cacheKey); + + if (!intentState) { + intentState = Object.create(null); + + this._intentStates.set(intentArgs.cacheKey, intentState); + } + + let opListTask; + + if (!intentState.opListReadCapability) { + opListTask = Object.create(null); + opListTask.operatorListChanged = operatorListChanged; + intentState.opListReadCapability = (0, _util.createPromiseCapability)(); + (intentState.renderTasks ||= new Set()).add(opListTask); + intentState.operatorList = { + fnArray: [], + argsArray: [], + lastChunk: false, + separateAnnots: null + }; + + if (this._stats) { + this._stats.time("Page Request"); + } + + this._pumpOperatorList(intentArgs); + } + + return intentState.opListReadCapability.promise; + } + + streamTextContent({ + disableCombineTextItems = false, + includeMarkedContent = false + } = {}) { + const TEXT_CONTENT_CHUNK_SIZE = 100; + return this._transport.messageHandler.sendWithStream("GetTextContent", { + pageIndex: this._pageIndex, + combineTextItems: disableCombineTextItems !== true, + includeMarkedContent: includeMarkedContent === true + }, { + highWaterMark: TEXT_CONTENT_CHUNK_SIZE, + + size(textContent) { + return textContent.items.length; + } + + }); + } + + getTextContent(params = {}) { + if (this._transport._htmlForXfa) { + return this.getXfa().then(xfa => { + return _xfa_text.XfaText.textContent(xfa); + }); + } + + const readableStream = this.streamTextContent(params); + return new Promise(function (resolve, reject) { + function pump() { + reader.read().then(function ({ + value, + done + }) { + if (done) { + resolve(textContent); + return; + } + + Object.assign(textContent.styles, value.styles); + textContent.items.push(...value.items); + pump(); + }, reject); + } + + const reader = readableStream.getReader(); + const textContent = { + items: [], + styles: Object.create(null) + }; + pump(); + }); + } + + getStructTree() { + return this._structTreePromise ||= this._transport.getStructTree(this._pageIndex); + } + + _destroy() { + this.destroyed = true; + const waitOn = []; + + for (const intentState of this._intentStates.values()) { + this._abortOperatorList({ + intentState, + reason: new Error("Page was destroyed."), + force: true + }); + + if (intentState.opListReadCapability) { + continue; + } + + for (const internalRenderTask of intentState.renderTasks) { + waitOn.push(internalRenderTask.completed); + internalRenderTask.cancel(); + } + } + + this.objs.clear(); + + for (const bitmap of this._bitmaps) { + bitmap.close(); + } + + this._bitmaps.clear(); + + this._annotationPromises.clear(); + + this._jsActionsPromise = null; + this._structTreePromise = null; + this.pendingCleanup = false; + return Promise.all(waitOn); + } + + cleanup(resetStats = false) { + this.pendingCleanup = true; + return this._tryCleanup(resetStats); + } + + _tryCleanup(resetStats = false) { + if (!this.pendingCleanup) { + return false; + } + + for (const { + renderTasks, + operatorList + } of this._intentStates.values()) { + if (renderTasks.size > 0 || !operatorList.lastChunk) { + return false; + } + } + + this._intentStates.clear(); + + this.objs.clear(); + + this._annotationPromises.clear(); + + this._jsActionsPromise = null; + this._structTreePromise = null; + + if (resetStats && this._stats) { + this._stats = new _display_utils.StatTimer(); + } + + for (const bitmap of this._bitmaps) { + bitmap.close(); + } + + this._bitmaps.clear(); + + this.pendingCleanup = false; + return true; + } + + _startRenderPage(transparency, cacheKey) { + const intentState = this._intentStates.get(cacheKey); + + if (!intentState) { + return; + } + + if (this._stats) { + this._stats.timeEnd("Page Request"); + } + + if (intentState.displayReadyCapability) { + intentState.displayReadyCapability.resolve(transparency); + } + } + + _renderPageChunk(operatorListChunk, intentState) { + for (let i = 0, ii = operatorListChunk.length; i < ii; i++) { + intentState.operatorList.fnArray.push(operatorListChunk.fnArray[i]); + intentState.operatorList.argsArray.push(operatorListChunk.argsArray[i]); + } + + intentState.operatorList.lastChunk = operatorListChunk.lastChunk; + intentState.operatorList.separateAnnots = operatorListChunk.separateAnnots; + + for (const internalRenderTask of intentState.renderTasks) { + internalRenderTask.operatorListChanged(); + } + + if (operatorListChunk.lastChunk) { + this._tryCleanup(); + } + } + + _pumpOperatorList({ + renderingIntent, + cacheKey, + annotationStorageMap + }) { + const readableStream = this._transport.messageHandler.sendWithStream("GetOperatorList", { + pageIndex: this._pageIndex, + intent: renderingIntent, + cacheKey, + annotationStorage: annotationStorageMap + }); + + const reader = readableStream.getReader(); + + const intentState = this._intentStates.get(cacheKey); + + intentState.streamReader = reader; + + const pump = () => { + reader.read().then(({ + value, + done + }) => { + if (done) { + intentState.streamReader = null; + return; + } + + if (this._transport.destroyed) { + return; + } + + this._renderPageChunk(value, intentState); + + pump(); + }, reason => { + intentState.streamReader = null; + + if (this._transport.destroyed) { + return; + } + + if (intentState.operatorList) { + intentState.operatorList.lastChunk = true; + + for (const internalRenderTask of intentState.renderTasks) { + internalRenderTask.operatorListChanged(); + } + + this._tryCleanup(); + } + + if (intentState.displayReadyCapability) { + intentState.displayReadyCapability.reject(reason); + } else if (intentState.opListReadCapability) { + intentState.opListReadCapability.reject(reason); + } else { + throw reason; + } + }); + }; + + pump(); + } + + _abortOperatorList({ + intentState, + reason, + force = false + }) { + if (!intentState.streamReader) { + return; + } + + if (!force) { + if (intentState.renderTasks.size > 0) { + return; + } + + if (reason instanceof _display_utils.RenderingCancelledException) { + intentState.streamReaderCancelTimeout = setTimeout(() => { + this._abortOperatorList({ + intentState, + reason, + force: true + }); + + intentState.streamReaderCancelTimeout = null; + }, RENDERING_CANCELLED_TIMEOUT); + return; + } + } + + intentState.streamReader.cancel(new _util.AbortException(reason.message)).catch(() => {}); + intentState.streamReader = null; + + if (this._transport.destroyed) { + return; + } + + for (const [curCacheKey, curIntentState] of this._intentStates) { + if (curIntentState === intentState) { + this._intentStates.delete(curCacheKey); + + break; + } + } + + this.cleanup(); + } + + get stats() { + return this._stats; + } + +} + +exports.PDFPageProxy = PDFPageProxy; + +class LoopbackPort { + constructor() { + this._listeners = []; + this._deferred = Promise.resolve(); + } + + postMessage(obj, transfers) { + const event = { + data: structuredClone(obj, transfers) + }; + + this._deferred.then(() => { + for (const listener of this._listeners) { + listener.call(this, event); + } + }); + } + + addEventListener(name, listener) { + this._listeners.push(listener); + } + + removeEventListener(name, listener) { + const i = this._listeners.indexOf(listener); + + this._listeners.splice(i, 1); + } + + terminate() { + this._listeners.length = 0; + } + +} + +exports.LoopbackPort = LoopbackPort; +const PDFWorkerUtil = { + isWorkerDisabled: false, + fallbackWorkerSrc: null, + fakeWorkerId: 0 +}; +exports.PDFWorkerUtil = PDFWorkerUtil; +{ + if (_is_node.isNodeJS && typeof require === "function") { + PDFWorkerUtil.isWorkerDisabled = true; + PDFWorkerUtil.fallbackWorkerSrc = "./pdf.worker.js"; + } else if (typeof document === "object") { + const pdfjsFilePath = document?.currentScript?.src; + + if (pdfjsFilePath) { + PDFWorkerUtil.fallbackWorkerSrc = pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i, ".worker$1$2"); + } + } + + PDFWorkerUtil.isSameOrigin = function (baseUrl, otherUrl) { + let base; + + try { + base = new URL(baseUrl); + + if (!base.origin || base.origin === "null") { + return false; + } + } catch (e) { + return false; + } + + const other = new URL(otherUrl, base); + return base.origin === other.origin; + }; + + PDFWorkerUtil.createCDNWrapper = function (url) { + const wrapper = `importScripts("${url}");`; + return URL.createObjectURL(new Blob([wrapper])); + }; +} + +class PDFWorker { + static #workerPorts = new WeakMap(); + + constructor({ + name = null, + port = null, + verbosity = (0, _util.getVerbosityLevel)() + } = {}) { + if (port && PDFWorker.#workerPorts.has(port)) { + throw new Error("Cannot use more than one PDFWorker per port."); + } + + this.name = name; + this.destroyed = false; + this.verbosity = verbosity; + this._readyCapability = (0, _util.createPromiseCapability)(); + this._port = null; + this._webWorker = null; + this._messageHandler = null; + + if (port) { + PDFWorker.#workerPorts.set(port, this); + + this._initializeFromPort(port); + + return; + } + + this._initialize(); + } + + get promise() { + return this._readyCapability.promise; + } + + get port() { + return this._port; + } + + get messageHandler() { + return this._messageHandler; + } + + _initializeFromPort(port) { + this._port = port; + this._messageHandler = new _message_handler.MessageHandler("main", "worker", port); + + this._messageHandler.on("ready", function () {}); + + this._readyCapability.resolve(); + } + + _initialize() { + if (!PDFWorkerUtil.isWorkerDisabled && !PDFWorker._mainThreadWorkerMessageHandler) { + let { + workerSrc + } = PDFWorker; + + try { + if (!PDFWorkerUtil.isSameOrigin(window.location.href, workerSrc)) { + workerSrc = PDFWorkerUtil.createCDNWrapper(new URL(workerSrc, window.location).href); + } + + const worker = new Worker(workerSrc); + const messageHandler = new _message_handler.MessageHandler("main", "worker", worker); + + const terminateEarly = () => { + worker.removeEventListener("error", onWorkerError); + messageHandler.destroy(); + worker.terminate(); + + if (this.destroyed) { + this._readyCapability.reject(new Error("Worker was destroyed")); + } else { + this._setupFakeWorker(); + } + }; + + const onWorkerError = () => { + if (!this._webWorker) { + terminateEarly(); + } + }; + + worker.addEventListener("error", onWorkerError); + messageHandler.on("test", data => { + worker.removeEventListener("error", onWorkerError); + + if (this.destroyed) { + terminateEarly(); + return; + } + + if (data) { + this._messageHandler = messageHandler; + this._port = worker; + this._webWorker = worker; + + this._readyCapability.resolve(); + + messageHandler.send("configure", { + verbosity: this.verbosity + }); + } else { + this._setupFakeWorker(); + + messageHandler.destroy(); + worker.terminate(); + } + }); + messageHandler.on("ready", data => { + worker.removeEventListener("error", onWorkerError); + + if (this.destroyed) { + terminateEarly(); + return; + } + + try { + sendTest(); + } catch (e) { + this._setupFakeWorker(); + } + }); + + const sendTest = () => { + const testObj = new Uint8Array(); + messageHandler.send("test", testObj, [testObj.buffer]); + }; + + sendTest(); + return; + } catch (e) { + (0, _util.info)("The worker has been disabled."); + } + } + + this._setupFakeWorker(); + } + + _setupFakeWorker() { + if (!PDFWorkerUtil.isWorkerDisabled) { + (0, _util.warn)("Setting up fake worker."); + PDFWorkerUtil.isWorkerDisabled = true; + } + + PDFWorker._setupFakeWorkerGlobal.then(WorkerMessageHandler => { + if (this.destroyed) { + this._readyCapability.reject(new Error("Worker was destroyed")); + + return; + } + + const port = new LoopbackPort(); + this._port = port; + const id = `fake${PDFWorkerUtil.fakeWorkerId++}`; + const workerHandler = new _message_handler.MessageHandler(id + "_worker", id, port); + WorkerMessageHandler.setup(workerHandler, port); + const messageHandler = new _message_handler.MessageHandler(id, id + "_worker", port); + this._messageHandler = messageHandler; + + this._readyCapability.resolve(); + + messageHandler.send("configure", { + verbosity: this.verbosity + }); + }).catch(reason => { + this._readyCapability.reject(new Error(`Setting up fake worker failed: "${reason.message}".`)); + }); + } + + destroy() { + this.destroyed = true; + + if (this._webWorker) { + this._webWorker.terminate(); + + this._webWorker = null; + } + + PDFWorker.#workerPorts.delete(this._port); + this._port = null; + + if (this._messageHandler) { + this._messageHandler.destroy(); + + this._messageHandler = null; + } + } + + static fromPort(params) { + if (!params?.port) { + throw new Error("PDFWorker.fromPort - invalid method signature."); + } + + if (this.#workerPorts.has(params.port)) { + return this.#workerPorts.get(params.port); + } + + return new PDFWorker(params); + } + + static get workerSrc() { + if (_worker_options.GlobalWorkerOptions.workerSrc) { + return _worker_options.GlobalWorkerOptions.workerSrc; + } + + if (PDFWorkerUtil.fallbackWorkerSrc !== null) { + if (!_is_node.isNodeJS) { + (0, _display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'); + } + + return PDFWorkerUtil.fallbackWorkerSrc; + } + + throw new Error('No "GlobalWorkerOptions.workerSrc" specified.'); + } + + static get _mainThreadWorkerMessageHandler() { + try { + return globalThis.pdfjsWorker?.WorkerMessageHandler || null; + } catch (ex) { + return null; + } + } + + static get _setupFakeWorkerGlobal() { + const loader = async () => { + const mainWorkerMessageHandler = this._mainThreadWorkerMessageHandler; + + if (mainWorkerMessageHandler) { + return mainWorkerMessageHandler; + } + + if (_is_node.isNodeJS && typeof require === "function") { + const worker = eval("require")(this.workerSrc); + return worker.WorkerMessageHandler; + } + + await (0, _display_utils.loadScript)(this.workerSrc); + return window.pdfjsWorker.WorkerMessageHandler; + }; + + return (0, _util.shadow)(this, "_setupFakeWorkerGlobal", loader()); + } + +} + +exports.PDFWorker = PDFWorker; +{ + PDFWorker.getWorkerSrc = function () { + (0, _display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."); + return this.workerSrc; + }; +} + +class WorkerTransport { + #docStats = null; + #pageCache = new Map(); + #pagePromises = new Map(); + #metadataPromise = null; + + constructor(messageHandler, loadingTask, networkStream, params) { + this.messageHandler = messageHandler; + this.loadingTask = loadingTask; + this.commonObjs = new PDFObjects(); + this.fontLoader = new _font_loader.FontLoader({ + docId: loadingTask.docId, + onUnsupportedFeature: this._onUnsupportedFeature.bind(this), + ownerDocument: params.ownerDocument, + styleElement: params.styleElement + }); + this._params = params; + + if (!params.useWorkerFetch) { + this.CMapReaderFactory = new params.CMapReaderFactory({ + baseUrl: params.cMapUrl, + isCompressed: params.cMapPacked + }); + this.StandardFontDataFactory = new params.StandardFontDataFactory({ + baseUrl: params.standardFontDataUrl + }); + } + + this.destroyed = false; + this.destroyCapability = null; + this._passwordCapability = null; + this._networkStream = networkStream; + this._fullReader = null; + this._lastProgress = null; + this.downloadInfoCapability = (0, _util.createPromiseCapability)(); + this.setupMessageHandler(); + } + + get annotationStorage() { + return (0, _util.shadow)(this, "annotationStorage", new _annotation_storage.AnnotationStorage()); + } + + get stats() { + return this.#docStats; + } + + getRenderingIntent(intent, annotationMode = _util.AnnotationMode.ENABLE, printAnnotationStorage = null, isOpList = false) { + let renderingIntent = _util.RenderingIntentFlag.DISPLAY; + let annotationMap = null; + + switch (intent) { + case "any": + renderingIntent = _util.RenderingIntentFlag.ANY; + break; + + case "display": + break; + + case "print": + renderingIntent = _util.RenderingIntentFlag.PRINT; + break; + + default: + (0, _util.warn)(`getRenderingIntent - invalid intent: ${intent}`); + } + + switch (annotationMode) { + case _util.AnnotationMode.DISABLE: + renderingIntent += _util.RenderingIntentFlag.ANNOTATIONS_DISABLE; + break; + + case _util.AnnotationMode.ENABLE: + break; + + case _util.AnnotationMode.ENABLE_FORMS: + renderingIntent += _util.RenderingIntentFlag.ANNOTATIONS_FORMS; + break; + + case _util.AnnotationMode.ENABLE_STORAGE: + renderingIntent += _util.RenderingIntentFlag.ANNOTATIONS_STORAGE; + const annotationStorage = renderingIntent & _util.RenderingIntentFlag.PRINT && printAnnotationStorage instanceof _annotation_storage.PrintAnnotationStorage ? printAnnotationStorage : this.annotationStorage; + annotationMap = annotationStorage.serializable; + break; + + default: + (0, _util.warn)(`getRenderingIntent - invalid annotationMode: ${annotationMode}`); + } + + if (isOpList) { + renderingIntent += _util.RenderingIntentFlag.OPLIST; + } + + return { + renderingIntent, + cacheKey: `${renderingIntent}_${_annotation_storage.AnnotationStorage.getHash(annotationMap)}`, + annotationStorageMap: annotationMap + }; + } + + destroy() { + if (this.destroyCapability) { + return this.destroyCapability.promise; + } + + this.destroyed = true; + this.destroyCapability = (0, _util.createPromiseCapability)(); + + if (this._passwordCapability) { + this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback")); + } + + const waitOn = []; + + for (const page of this.#pageCache.values()) { + waitOn.push(page._destroy()); + } + + this.#pageCache.clear(); + this.#pagePromises.clear(); + + if (this.hasOwnProperty("annotationStorage")) { + this.annotationStorage.resetModified(); + } + + const terminated = this.messageHandler.sendWithPromise("Terminate", null); + waitOn.push(terminated); + Promise.all(waitOn).then(() => { + this.commonObjs.clear(); + this.fontLoader.clear(); + this.#metadataPromise = null; + this._getFieldObjectsPromise = null; + this._hasJSActionsPromise = null; + + if (this._networkStream) { + this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")); + } + + if (this.messageHandler) { + this.messageHandler.destroy(); + this.messageHandler = null; + } + + this.destroyCapability.resolve(); + }, this.destroyCapability.reject); + return this.destroyCapability.promise; + } + + setupMessageHandler() { + const { + messageHandler, + loadingTask + } = this; + messageHandler.on("GetReader", (data, sink) => { + (0, _util.assert)(this._networkStream, "GetReader - no `IPDFStream` instance available."); + this._fullReader = this._networkStream.getFullReader(); + + this._fullReader.onProgress = evt => { + this._lastProgress = { + loaded: evt.loaded, + total: evt.total + }; + }; + + sink.onPull = () => { + this._fullReader.read().then(function ({ + value, + done + }) { + if (done) { + sink.close(); + return; + } + + (0, _util.assert)((0, _util.isArrayBuffer)(value), "GetReader - expected an ArrayBuffer."); + sink.enqueue(new Uint8Array(value), 1, [value]); + }).catch(reason => { + sink.error(reason); + }); + }; + + sink.onCancel = reason => { + this._fullReader.cancel(reason); + + sink.ready.catch(readyReason => { + if (this.destroyed) { + return; + } + + throw readyReason; + }); + }; + }); + messageHandler.on("ReaderHeadersReady", data => { + const headersCapability = (0, _util.createPromiseCapability)(); + const fullReader = this._fullReader; + fullReader.headersReady.then(() => { + if (!fullReader.isStreamingSupported || !fullReader.isRangeSupported) { + if (this._lastProgress) { + loadingTask.onProgress?.(this._lastProgress); + } + + fullReader.onProgress = evt => { + loadingTask.onProgress?.({ + loaded: evt.loaded, + total: evt.total + }); + }; + } + + headersCapability.resolve({ + isStreamingSupported: fullReader.isStreamingSupported, + isRangeSupported: fullReader.isRangeSupported, + contentLength: fullReader.contentLength + }); + }, headersCapability.reject); + return headersCapability.promise; + }); + messageHandler.on("GetRangeReader", (data, sink) => { + (0, _util.assert)(this._networkStream, "GetRangeReader - no `IPDFStream` instance available."); + + const rangeReader = this._networkStream.getRangeReader(data.begin, data.end); + + if (!rangeReader) { + sink.close(); + return; + } + + sink.onPull = () => { + rangeReader.read().then(function ({ + value, + done + }) { + if (done) { + sink.close(); + return; + } + + (0, _util.assert)((0, _util.isArrayBuffer)(value), "GetRangeReader - expected an ArrayBuffer."); + sink.enqueue(new Uint8Array(value), 1, [value]); + }).catch(reason => { + sink.error(reason); + }); + }; + + sink.onCancel = reason => { + rangeReader.cancel(reason); + sink.ready.catch(readyReason => { + if (this.destroyed) { + return; + } + + throw readyReason; + }); + }; + }); + messageHandler.on("GetDoc", ({ + pdfInfo + }) => { + this._numPages = pdfInfo.numPages; + this._htmlForXfa = pdfInfo.htmlForXfa; + delete pdfInfo.htmlForXfa; + + loadingTask._capability.resolve(new PDFDocumentProxy(pdfInfo, this)); + }); + messageHandler.on("DocException", function (ex) { + let reason; + + switch (ex.name) { + case "PasswordException": + reason = new _util.PasswordException(ex.message, ex.code); + break; + + case "InvalidPDFException": + reason = new _util.InvalidPDFException(ex.message); + break; + + case "MissingPDFException": + reason = new _util.MissingPDFException(ex.message); + break; + + case "UnexpectedResponseException": + reason = new _util.UnexpectedResponseException(ex.message, ex.status); + break; + + case "UnknownErrorException": + reason = new _util.UnknownErrorException(ex.message, ex.details); + break; + + default: + (0, _util.unreachable)("DocException - expected a valid Error."); + } + + loadingTask._capability.reject(reason); + }); + messageHandler.on("PasswordRequest", exception => { + this._passwordCapability = (0, _util.createPromiseCapability)(); + + if (loadingTask.onPassword) { + const updatePassword = password => { + if (password instanceof Error) { + this._passwordCapability.reject(password); + } else { + this._passwordCapability.resolve({ + password + }); + } + }; + + try { + loadingTask.onPassword(updatePassword, exception.code); + } catch (ex) { + this._passwordCapability.reject(ex); + } + } else { + this._passwordCapability.reject(new _util.PasswordException(exception.message, exception.code)); + } + + return this._passwordCapability.promise; + }); + messageHandler.on("DataLoaded", data => { + loadingTask.onProgress?.({ + loaded: data.length, + total: data.length + }); + this.downloadInfoCapability.resolve(data); + }); + messageHandler.on("StartRenderPage", data => { + if (this.destroyed) { + return; + } + + const page = this.#pageCache.get(data.pageIndex); + + page._startRenderPage(data.transparency, data.cacheKey); + }); + messageHandler.on("commonobj", ([id, type, exportedData]) => { + if (this.destroyed) { + return; + } + + if (this.commonObjs.has(id)) { + return; + } + + switch (type) { + case "Font": + const params = this._params; + + if ("error" in exportedData) { + const exportedError = exportedData.error; + (0, _util.warn)(`Error during font loading: ${exportedError}`); + this.commonObjs.resolve(id, exportedError); + break; + } + + let fontRegistry = null; + + if (params.pdfBug && globalThis.FontInspector?.enabled) { + fontRegistry = { + registerFont(font, url) { + globalThis.FontInspector.fontAdded(font, url); + } + + }; + } + + const font = new _font_loader.FontFaceObject(exportedData, { + isEvalSupported: params.isEvalSupported, + disableFontFace: params.disableFontFace, + ignoreErrors: params.ignoreErrors, + onUnsupportedFeature: this._onUnsupportedFeature.bind(this), + fontRegistry + }); + this.fontLoader.bind(font).catch(reason => { + return messageHandler.sendWithPromise("FontFallback", { + id + }); + }).finally(() => { + if (!params.fontExtraProperties && font.data) { + font.data = null; + } + + this.commonObjs.resolve(id, font); + }); + break; + + case "FontPath": + case "Image": + this.commonObjs.resolve(id, exportedData); + break; + + default: + throw new Error(`Got unknown common object type ${type}`); + } + }); + messageHandler.on("obj", ([id, pageIndex, type, imageData]) => { + if (this.destroyed) { + return; + } + + const pageProxy = this.#pageCache.get(pageIndex); + + if (pageProxy.objs.has(id)) { + return; + } + + switch (type) { + case "Image": + pageProxy.objs.resolve(id, imageData); + const MAX_IMAGE_SIZE_TO_STORE = 8000000; + + if (imageData) { + let length; + + if (imageData.bitmap) { + const { + bitmap, + width, + height + } = imageData; + length = width * height * 4; + + pageProxy._bitmaps.add(bitmap); + } else { + length = imageData.data?.length || 0; + } + + if (length > MAX_IMAGE_SIZE_TO_STORE) { + pageProxy.cleanupAfterRender = true; + } + } + + break; + + case "Pattern": + pageProxy.objs.resolve(id, imageData); + break; + + default: + throw new Error(`Got unknown object type ${type}`); + } + }); + messageHandler.on("DocProgress", data => { + if (this.destroyed) { + return; + } + + loadingTask.onProgress?.({ + loaded: data.loaded, + total: data.total + }); + }); + messageHandler.on("DocStats", data => { + if (this.destroyed) { + return; + } + + this.#docStats = Object.freeze({ + streamTypes: Object.freeze(data.streamTypes), + fontTypes: Object.freeze(data.fontTypes) + }); + }); + messageHandler.on("UnsupportedFeature", this._onUnsupportedFeature.bind(this)); + messageHandler.on("FetchBuiltInCMap", data => { + if (this.destroyed) { + return Promise.reject(new Error("Worker was destroyed.")); + } + + if (!this.CMapReaderFactory) { + return Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")); + } + + return this.CMapReaderFactory.fetch(data); + }); + messageHandler.on("FetchStandardFontData", data => { + if (this.destroyed) { + return Promise.reject(new Error("Worker was destroyed.")); + } + + if (!this.StandardFontDataFactory) { + return Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")); + } + + return this.StandardFontDataFactory.fetch(data); + }); + } + + _onUnsupportedFeature({ + featureId + }) { + if (this.destroyed) { + return; + } + + this.loadingTask.onUnsupportedFeature?.(featureId); + } + + getData() { + return this.messageHandler.sendWithPromise("GetData", null); + } + + getPage(pageNumber) { + if (!Number.isInteger(pageNumber) || pageNumber <= 0 || pageNumber > this._numPages) { + return Promise.reject(new Error("Invalid page request.")); + } + + const pageIndex = pageNumber - 1, + cachedPromise = this.#pagePromises.get(pageIndex); + + if (cachedPromise) { + return cachedPromise; + } + + const promise = this.messageHandler.sendWithPromise("GetPage", { + pageIndex + }).then(pageInfo => { + if (this.destroyed) { + throw new Error("Transport destroyed"); + } + + const page = new PDFPageProxy(pageIndex, pageInfo, this, this._params.ownerDocument, this._params.pdfBug); + this.#pageCache.set(pageIndex, page); + return page; + }); + this.#pagePromises.set(pageIndex, promise); + return promise; + } + + getPageIndex(ref) { + if (typeof ref !== "object" || ref === null || !Number.isInteger(ref.num) || ref.num < 0 || !Number.isInteger(ref.gen) || ref.gen < 0) { + return Promise.reject(new Error("Invalid pageIndex request.")); + } + + return this.messageHandler.sendWithPromise("GetPageIndex", { + num: ref.num, + gen: ref.gen + }); + } + + getAnnotations(pageIndex, intent) { + return this.messageHandler.sendWithPromise("GetAnnotations", { + pageIndex, + intent + }); + } + + saveDocument() { + return this.messageHandler.sendWithPromise("SaveDocument", { + isPureXfa: !!this._htmlForXfa, + numPages: this._numPages, + annotationStorage: this.annotationStorage.serializable, + filename: this._fullReader?.filename ?? null + }).finally(() => { + this.annotationStorage.resetModified(); + }); + } + + getFieldObjects() { + return this._getFieldObjectsPromise ||= this.messageHandler.sendWithPromise("GetFieldObjects", null); + } + + hasJSActions() { + return this._hasJSActionsPromise ||= this.messageHandler.sendWithPromise("HasJSActions", null); + } + + getCalculationOrderIds() { + return this.messageHandler.sendWithPromise("GetCalculationOrderIds", null); + } + + getDestinations() { + return this.messageHandler.sendWithPromise("GetDestinations", null); + } + + getDestination(id) { + if (typeof id !== "string") { + return Promise.reject(new Error("Invalid destination request.")); + } + + return this.messageHandler.sendWithPromise("GetDestination", { + id + }); + } + + getPageLabels() { + return this.messageHandler.sendWithPromise("GetPageLabels", null); + } + + getPageLayout() { + return this.messageHandler.sendWithPromise("GetPageLayout", null); + } + + getPageMode() { + return this.messageHandler.sendWithPromise("GetPageMode", null); + } + + getViewerPreferences() { + return this.messageHandler.sendWithPromise("GetViewerPreferences", null); + } + + getOpenAction() { + return this.messageHandler.sendWithPromise("GetOpenAction", null); + } + + getAttachments() { + return this.messageHandler.sendWithPromise("GetAttachments", null); + } + + getJavaScript() { + return this.messageHandler.sendWithPromise("GetJavaScript", null); + } + + getDocJSActions() { + return this.messageHandler.sendWithPromise("GetDocJSActions", null); + } + + getPageJSActions(pageIndex) { + return this.messageHandler.sendWithPromise("GetPageJSActions", { + pageIndex + }); + } + + getStructTree(pageIndex) { + return this.messageHandler.sendWithPromise("GetStructTree", { + pageIndex + }); + } + + getOutline() { + return this.messageHandler.sendWithPromise("GetOutline", null); + } + + getOptionalContentConfig() { + return this.messageHandler.sendWithPromise("GetOptionalContentConfig", null).then(results => { + return new _optional_content_config.OptionalContentConfig(results); + }); + } + + getPermissions() { + return this.messageHandler.sendWithPromise("GetPermissions", null); + } + + getMetadata() { + return this.#metadataPromise ||= this.messageHandler.sendWithPromise("GetMetadata", null).then(results => { + return { + info: results[0], + metadata: results[1] ? new _metadata.Metadata(results[1]) : null, + contentDispositionFilename: this._fullReader?.filename ?? null, + contentLength: this._fullReader?.contentLength ?? null + }; + }); + } + + getMarkInfo() { + return this.messageHandler.sendWithPromise("GetMarkInfo", null); + } + + async startCleanup(keepLoadedFonts = false) { + await this.messageHandler.sendWithPromise("Cleanup", null); + + if (this.destroyed) { + return; + } + + for (const page of this.#pageCache.values()) { + const cleanupSuccessful = page.cleanup(); + + if (!cleanupSuccessful) { + throw new Error(`startCleanup: Page ${page.pageNumber} is currently rendering.`); + } + } + + this.commonObjs.clear(); + + if (!keepLoadedFonts) { + this.fontLoader.clear(); + } + + this.#metadataPromise = null; + this._getFieldObjectsPromise = null; + this._hasJSActionsPromise = null; + } + + get loadingParams() { + const params = this._params; + return (0, _util.shadow)(this, "loadingParams", { + disableAutoFetch: params.disableAutoFetch, + enableXfa: params.enableXfa + }); + } + +} + +class PDFObjects { + #objs = Object.create(null); + + #ensureObj(objId) { + const obj = this.#objs[objId]; + + if (obj) { + return obj; + } + + return this.#objs[objId] = { + capability: (0, _util.createPromiseCapability)(), + data: null + }; + } + + get(objId, callback = null) { + if (callback) { + const obj = this.#ensureObj(objId); + obj.capability.promise.then(() => callback(obj.data)); + return null; + } + + const obj = this.#objs[objId]; + + if (!obj?.capability.settled) { + throw new Error(`Requesting object that isn't resolved yet ${objId}.`); + } + + return obj.data; + } + + has(objId) { + const obj = this.#objs[objId]; + return obj?.capability.settled || false; + } + + resolve(objId, data = null) { + const obj = this.#ensureObj(objId); + obj.data = data; + obj.capability.resolve(); + } + + clear() { + this.#objs = Object.create(null); + } + +} + +class RenderTask { + #internalRenderTask = null; + + constructor(internalRenderTask) { + this.#internalRenderTask = internalRenderTask; + this.onContinue = null; + } + + get promise() { + return this.#internalRenderTask.capability.promise; + } + + cancel() { + this.#internalRenderTask.cancel(); + } + + get separateAnnots() { + const { + separateAnnots + } = this.#internalRenderTask.operatorList; + + if (!separateAnnots) { + return false; + } + + const { + annotationCanvasMap + } = this.#internalRenderTask; + return separateAnnots.form || separateAnnots.canvas && annotationCanvasMap?.size > 0; + } + +} + +exports.RenderTask = RenderTask; + +class InternalRenderTask { + static #canvasInUse = new WeakSet(); + + constructor({ + callback, + params, + objs, + commonObjs, + annotationCanvasMap, + operatorList, + pageIndex, + canvasFactory, + useRequestAnimationFrame = false, + pdfBug = false, + pageColors = null + }) { + this.callback = callback; + this.params = params; + this.objs = objs; + this.commonObjs = commonObjs; + this.annotationCanvasMap = annotationCanvasMap; + this.operatorListIdx = null; + this.operatorList = operatorList; + this._pageIndex = pageIndex; + this.canvasFactory = canvasFactory; + this._pdfBug = pdfBug; + this.pageColors = pageColors; + this.running = false; + this.graphicsReadyCallback = null; + this.graphicsReady = false; + this._useRequestAnimationFrame = useRequestAnimationFrame === true && typeof window !== "undefined"; + this.cancelled = false; + this.capability = (0, _util.createPromiseCapability)(); + this.task = new RenderTask(this); + this._cancelBound = this.cancel.bind(this); + this._continueBound = this._continue.bind(this); + this._scheduleNextBound = this._scheduleNext.bind(this); + this._nextBound = this._next.bind(this); + this._canvas = params.canvasContext.canvas; + } + + get completed() { + return this.capability.promise.catch(function () {}); + } + + initializeGraphics({ + transparency = false, + optionalContentConfig + }) { + if (this.cancelled) { + return; + } + + if (this._canvas) { + if (InternalRenderTask.#canvasInUse.has(this._canvas)) { + throw new Error("Cannot use the same canvas during multiple render() operations. " + "Use different canvas or ensure previous operations were " + "cancelled or completed."); + } + + InternalRenderTask.#canvasInUse.add(this._canvas); + } + + if (this._pdfBug && globalThis.StepperManager?.enabled) { + this.stepper = globalThis.StepperManager.create(this._pageIndex); + this.stepper.init(this.operatorList); + this.stepper.nextBreakPoint = this.stepper.getNextBreakPoint(); + } + + const { + canvasContext, + viewport, + transform, + imageLayer, + background + } = this.params; + this.gfx = new _canvas.CanvasGraphics(canvasContext, this.commonObjs, this.objs, this.canvasFactory, imageLayer, optionalContentConfig, this.annotationCanvasMap, this.pageColors); + this.gfx.beginDrawing({ + transform, + viewport, + transparency, + background + }); + this.operatorListIdx = 0; + this.graphicsReady = true; + + if (this.graphicsReadyCallback) { + this.graphicsReadyCallback(); + } + } + + cancel(error = null) { + this.running = false; + this.cancelled = true; + + if (this.gfx) { + this.gfx.endDrawing(); + } + + if (this._canvas) { + InternalRenderTask.#canvasInUse.delete(this._canvas); + } + + this.callback(error || new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex + 1}`, "canvas")); + } + + operatorListChanged() { + if (!this.graphicsReady) { + if (!this.graphicsReadyCallback) { + this.graphicsReadyCallback = this._continueBound; + } + + return; + } + + if (this.stepper) { + this.stepper.updateOperatorList(this.operatorList); + } + + if (this.running) { + return; + } + + this._continue(); + } + + _continue() { + this.running = true; + + if (this.cancelled) { + return; + } + + if (this.task.onContinue) { + this.task.onContinue(this._scheduleNextBound); + } else { + this._scheduleNext(); + } + } + + _scheduleNext() { + if (this._useRequestAnimationFrame) { + window.requestAnimationFrame(() => { + this._nextBound().catch(this._cancelBound); + }); + } else { + Promise.resolve().then(this._nextBound).catch(this._cancelBound); + } + } + + async _next() { + if (this.cancelled) { + return; + } + + this.operatorListIdx = this.gfx.executeOperatorList(this.operatorList, this.operatorListIdx, this._continueBound, this.stepper); + + if (this.operatorListIdx === this.operatorList.argsArray.length) { + this.running = false; + + if (this.operatorList.lastChunk) { + this.gfx.endDrawing(); + + if (this._canvas) { + InternalRenderTask.#canvasInUse.delete(this._canvas); + } + + this.callback(); + } + } + } + +} + +const version = '2.16.105'; +exports.version = version; +const build = '172ccdbe5'; +exports.build = build; + +/***/ }), +/* 5 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PrintAnnotationStorage = exports.AnnotationStorage = void 0; + +var _util = __w_pdfjs_require__(1); + +var _editor = __w_pdfjs_require__(6); + +var _murmurhash = __w_pdfjs_require__(10); + +class AnnotationStorage { + constructor() { + this._storage = new Map(); + this._modified = false; + this.onSetModified = null; + this.onResetModified = null; + this.onAnnotationEditor = null; + } + + getValue(key, defaultValue) { + const value = this._storage.get(key); + + if (value === undefined) { + return defaultValue; + } + + return Object.assign(defaultValue, value); + } + + getRawValue(key) { + return this._storage.get(key); + } + + remove(key) { + this._storage.delete(key); + + if (this._storage.size === 0) { + this.resetModified(); + } + + if (typeof this.onAnnotationEditor === "function") { + for (const value of this._storage.values()) { + if (value instanceof _editor.AnnotationEditor) { + return; + } + } + + this.onAnnotationEditor(null); + } + } + + setValue(key, value) { + const obj = this._storage.get(key); + + let modified = false; + + if (obj !== undefined) { + for (const [entry, val] of Object.entries(value)) { + if (obj[entry] !== val) { + modified = true; + obj[entry] = val; + } + } + } else { + modified = true; + + this._storage.set(key, value); + } + + if (modified) { + this.#setModified(); + } + + if (value instanceof _editor.AnnotationEditor && typeof this.onAnnotationEditor === "function") { + this.onAnnotationEditor(value.constructor._type); + } + } + + has(key) { + return this._storage.has(key); + } + + getAll() { + return this._storage.size > 0 ? (0, _util.objectFromMap)(this._storage) : null; + } + + get size() { + return this._storage.size; + } + + #setModified() { + if (!this._modified) { + this._modified = true; + + if (typeof this.onSetModified === "function") { + this.onSetModified(); + } + } + } + + resetModified() { + if (this._modified) { + this._modified = false; + + if (typeof this.onResetModified === "function") { + this.onResetModified(); + } + } + } + + get print() { + return new PrintAnnotationStorage(this); + } + + get serializable() { + if (this._storage.size === 0) { + return null; + } + + const clone = new Map(); + + for (const [key, val] of this._storage) { + const serialized = val instanceof _editor.AnnotationEditor ? val.serialize() : val; + + if (serialized) { + clone.set(key, serialized); + } + } + + return clone; + } + + static getHash(map) { + if (!map) { + return ""; + } + + const hash = new _murmurhash.MurmurHash3_64(); + + for (const [key, val] of map) { + hash.update(`${key}:${JSON.stringify(val)}`); + } + + return hash.hexdigest(); + } + +} + +exports.AnnotationStorage = AnnotationStorage; + +class PrintAnnotationStorage extends AnnotationStorage { + #serializable = null; + + constructor(parent) { + super(); + this.#serializable = structuredClone(parent.serializable); + } + + get print() { + (0, _util.unreachable)("Should not call PrintAnnotationStorage.print"); + } + + get serializable() { + return this.#serializable; + } + +} + +exports.PrintAnnotationStorage = PrintAnnotationStorage; + +/***/ }), +/* 6 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.AnnotationEditor = void 0; + +var _tools = __w_pdfjs_require__(7); + +var _util = __w_pdfjs_require__(1); + +class AnnotationEditor { + #boundFocusin = this.focusin.bind(this); + #boundFocusout = this.focusout.bind(this); + #hasBeenSelected = false; + #isEditing = false; + #isInEditMode = false; + #zIndex = AnnotationEditor._zIndex++; + static _colorManager = new _tools.ColorManager(); + static _zIndex = 1; + + constructor(parameters) { + if (this.constructor === AnnotationEditor) { + (0, _util.unreachable)("Cannot initialize AnnotationEditor."); + } + + this.parent = parameters.parent; + this.id = parameters.id; + this.width = this.height = null; + this.pageIndex = parameters.parent.pageIndex; + this.name = parameters.name; + this.div = null; + const [width, height] = this.parent.viewportBaseDimensions; + this.x = parameters.x / width; + this.y = parameters.y / height; + this.rotation = this.parent.viewport.rotation; + this.isAttachedToDOM = false; + } + + static get _defaultLineColor() { + return (0, _util.shadow)(this, "_defaultLineColor", this._colorManager.getHexCode("CanvasText")); + } + + setInBackground() { + this.div.style.zIndex = 0; + } + + setInForeground() { + this.div.style.zIndex = this.#zIndex; + } + + focusin(event) { + if (!this.#hasBeenSelected) { + this.parent.setSelected(this); + } else { + this.#hasBeenSelected = false; + } + } + + focusout(event) { + if (!this.isAttachedToDOM) { + return; + } + + const target = event.relatedTarget; + + if (target?.closest(`#${this.id}`)) { + return; + } + + event.preventDefault(); + + if (!this.parent.isMultipleSelection) { + this.commitOrRemove(); + } + } + + commitOrRemove() { + if (this.isEmpty()) { + this.remove(); + } else { + this.commit(); + } + } + + commit() { + this.parent.addToAnnotationStorage(this); + } + + dragstart(event) { + const rect = this.parent.div.getBoundingClientRect(); + this.startX = event.clientX - rect.x; + this.startY = event.clientY - rect.y; + event.dataTransfer.setData("text/plain", this.id); + event.dataTransfer.effectAllowed = "move"; + } + + setAt(x, y, tx, ty) { + const [width, height] = this.parent.viewportBaseDimensions; + [tx, ty] = this.screenToPageTranslation(tx, ty); + this.x = (x + tx) / width; + this.y = (y + ty) / height; + this.div.style.left = `${100 * this.x}%`; + this.div.style.top = `${100 * this.y}%`; + } + + translate(x, y) { + const [width, height] = this.parent.viewportBaseDimensions; + [x, y] = this.screenToPageTranslation(x, y); + this.x += x / width; + this.y += y / height; + this.div.style.left = `${100 * this.x}%`; + this.div.style.top = `${100 * this.y}%`; + } + + screenToPageTranslation(x, y) { + const { + rotation + } = this.parent.viewport; + + switch (rotation) { + case 90: + return [y, -x]; + + case 180: + return [-x, -y]; + + case 270: + return [-y, x]; + + default: + return [x, y]; + } + } + + setDims(width, height) { + const [parentWidth, parentHeight] = this.parent.viewportBaseDimensions; + this.div.style.width = `${100 * width / parentWidth}%`; + this.div.style.height = `${100 * height / parentHeight}%`; + } + + getInitialTranslation() { + return [0, 0]; + } + + render() { + this.div = document.createElement("div"); + this.div.setAttribute("data-editor-rotation", (360 - this.rotation) % 360); + this.div.className = this.name; + this.div.setAttribute("id", this.id); + this.div.setAttribute("tabIndex", 0); + this.setInForeground(); + this.div.addEventListener("focusin", this.#boundFocusin); + this.div.addEventListener("focusout", this.#boundFocusout); + const [tx, ty] = this.getInitialTranslation(); + this.translate(tx, ty); + (0, _tools.bindEvents)(this, this.div, ["dragstart", "pointerdown"]); + return this.div; + } + + pointerdown(event) { + const isMac = _tools.KeyboardManager.platform.isMac; + + if (event.button !== 0 || event.ctrlKey && isMac) { + event.preventDefault(); + return; + } + + if (event.ctrlKey && !isMac || event.shiftKey || event.metaKey && isMac) { + this.parent.toggleSelected(this); + } else { + this.parent.setSelected(this); + } + + this.#hasBeenSelected = true; + } + + getRect(tx, ty) { + const [parentWidth, parentHeight] = this.parent.viewportBaseDimensions; + const [pageWidth, pageHeight] = this.parent.pageDimensions; + const shiftX = pageWidth * tx / parentWidth; + const shiftY = pageHeight * ty / parentHeight; + const x = this.x * pageWidth; + const y = this.y * pageHeight; + const width = this.width * pageWidth; + const height = this.height * pageHeight; + + switch (this.rotation) { + case 0: + return [x + shiftX, pageHeight - y - shiftY - height, x + shiftX + width, pageHeight - y - shiftY]; + + case 90: + return [x + shiftY, pageHeight - y + shiftX, x + shiftY + height, pageHeight - y + shiftX + width]; + + case 180: + return [x - shiftX - width, pageHeight - y + shiftY, x - shiftX, pageHeight - y + shiftY + height]; + + case 270: + return [x - shiftY - height, pageHeight - y - shiftX - width, x - shiftY, pageHeight - y - shiftX]; + + default: + throw new Error("Invalid rotation"); + } + } + + getRectInCurrentCoords(rect, pageHeight) { + const [x1, y1, x2, y2] = rect; + const width = x2 - x1; + const height = y2 - y1; + + switch (this.rotation) { + case 0: + return [x1, pageHeight - y2, width, height]; + + case 90: + return [x1, pageHeight - y1, height, width]; + + case 180: + return [x2, pageHeight - y1, width, height]; + + case 270: + return [x2, pageHeight - y2, height, width]; + + default: + throw new Error("Invalid rotation"); + } + } + + onceAdded() {} + + isEmpty() { + return false; + } + + enableEditMode() { + this.#isInEditMode = true; + } + + disableEditMode() { + this.#isInEditMode = false; + } + + isInEditMode() { + return this.#isInEditMode; + } + + shouldGetKeyboardEvents() { + return false; + } + + needsToBeRebuilt() { + return this.div && !this.isAttachedToDOM; + } + + rebuild() { + this.div?.addEventListener("focusin", this.#boundFocusin); + } + + serialize() { + (0, _util.unreachable)("An editor must be serializable"); + } + + static deserialize(data, parent) { + const editor = new this.prototype.constructor({ + parent, + id: parent.getNextId() + }); + editor.rotation = data.rotation; + const [pageWidth, pageHeight] = parent.pageDimensions; + const [x, y, width, height] = editor.getRectInCurrentCoords(data.rect, pageHeight); + editor.x = x / pageWidth; + editor.y = y / pageHeight; + editor.width = width / pageWidth; + editor.height = height / pageHeight; + return editor; + } + + remove() { + this.div.removeEventListener("focusin", this.#boundFocusin); + this.div.removeEventListener("focusout", this.#boundFocusout); + + if (!this.isEmpty()) { + this.commit(); + } + + this.parent.remove(this); + } + + select() { + this.div?.classList.add("selectedEditor"); + } + + unselect() { + this.div?.classList.remove("selectedEditor"); + } + + updateParams(type, value) {} + + disableEditing() {} + + enableEditing() {} + + get propertiesToUpdate() { + return {}; + } + + get contentDiv() { + return this.div; + } + + get isEditing() { + return this.#isEditing; + } + + set isEditing(value) { + this.#isEditing = value; + + if (value) { + this.parent.setSelected(this); + this.parent.setActiveEditor(this); + } else { + this.parent.setActiveEditor(null); + } + } + +} + +exports.AnnotationEditor = AnnotationEditor; + +/***/ }), +/* 7 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.KeyboardManager = exports.CommandManager = exports.ColorManager = exports.AnnotationEditorUIManager = void 0; +exports.bindEvents = bindEvents; +exports.opacityToHex = opacityToHex; + +var _util = __w_pdfjs_require__(1); + +var _display_utils = __w_pdfjs_require__(8); + +function bindEvents(obj, element, names) { + for (const name of names) { + element.addEventListener(name, obj[name].bind(obj)); + } +} + +function opacityToHex(opacity) { + return Math.round(Math.min(255, Math.max(1, 255 * opacity))).toString(16).padStart(2, "0"); +} + +class IdManager { + #id = 0; + + getId() { + return `${_util.AnnotationEditorPrefix}${this.#id++}`; + } + +} + +class CommandManager { + #commands = []; + #locked = false; + #maxSize; + #position = -1; + + constructor(maxSize = 128) { + this.#maxSize = maxSize; + } + + add({ + cmd, + undo, + mustExec, + type = NaN, + overwriteIfSameType = false, + keepUndo = false + }) { + if (mustExec) { + cmd(); + } + + if (this.#locked) { + return; + } + + const save = { + cmd, + undo, + type + }; + + if (this.#position === -1) { + if (this.#commands.length > 0) { + this.#commands.length = 0; + } + + this.#position = 0; + this.#commands.push(save); + return; + } + + if (overwriteIfSameType && this.#commands[this.#position].type === type) { + if (keepUndo) { + save.undo = this.#commands[this.#position].undo; + } + + this.#commands[this.#position] = save; + return; + } + + const next = this.#position + 1; + + if (next === this.#maxSize) { + this.#commands.splice(0, 1); + } else { + this.#position = next; + + if (next < this.#commands.length) { + this.#commands.splice(next); + } + } + + this.#commands.push(save); + } + + undo() { + if (this.#position === -1) { + return; + } + + this.#locked = true; + this.#commands[this.#position].undo(); + this.#locked = false; + this.#position -= 1; + } + + redo() { + if (this.#position < this.#commands.length - 1) { + this.#position += 1; + this.#locked = true; + this.#commands[this.#position].cmd(); + this.#locked = false; + } + } + + hasSomethingToUndo() { + return this.#position !== -1; + } + + hasSomethingToRedo() { + return this.#position < this.#commands.length - 1; + } + + destroy() { + this.#commands = null; + } + +} + +exports.CommandManager = CommandManager; + +class KeyboardManager { + constructor(callbacks) { + this.buffer = []; + this.callbacks = new Map(); + this.allKeys = new Set(); + const isMac = KeyboardManager.platform.isMac; + + for (const [keys, callback] of callbacks) { + for (const key of keys) { + const isMacKey = key.startsWith("mac+"); + + if (isMac && isMacKey) { + this.callbacks.set(key.slice(4), callback); + this.allKeys.add(key.split("+").at(-1)); + } else if (!isMac && !isMacKey) { + this.callbacks.set(key, callback); + this.allKeys.add(key.split("+").at(-1)); + } + } + } + } + + static get platform() { + const platform = typeof navigator !== "undefined" ? navigator.platform : ""; + return (0, _util.shadow)(this, "platform", { + isWin: platform.includes("Win"), + isMac: platform.includes("Mac") + }); + } + + #serialize(event) { + if (event.altKey) { + this.buffer.push("alt"); + } + + if (event.ctrlKey) { + this.buffer.push("ctrl"); + } + + if (event.metaKey) { + this.buffer.push("meta"); + } + + if (event.shiftKey) { + this.buffer.push("shift"); + } + + this.buffer.push(event.key); + const str = this.buffer.join("+"); + this.buffer.length = 0; + return str; + } + + exec(self, event) { + if (!this.allKeys.has(event.key)) { + return; + } + + const callback = this.callbacks.get(this.#serialize(event)); + + if (!callback) { + return; + } + + callback.bind(self)(); + event.stopPropagation(); + event.preventDefault(); + } + +} + +exports.KeyboardManager = KeyboardManager; + +class ClipboardManager { + #elements = null; + + copy(element) { + if (!element) { + return; + } + + if (Array.isArray(element)) { + this.#elements = element.map(el => el.serialize()); + } else { + this.#elements = [element.serialize()]; + } + + this.#elements = this.#elements.filter(el => !!el); + + if (this.#elements.length === 0) { + this.#elements = null; + } + } + + paste() { + return this.#elements; + } + + isEmpty() { + return this.#elements === null; + } + + destroy() { + this.#elements = null; + } + +} + +class ColorManager { + static _colorsMapping = new Map([["CanvasText", [0, 0, 0]], ["Canvas", [255, 255, 255]]]); + + get _colors() { + const colors = new Map([["CanvasText", null], ["Canvas", null]]); + (0, _display_utils.getColorValues)(colors); + return (0, _util.shadow)(this, "_colors", colors); + } + + convert(color) { + const rgb = (0, _display_utils.getRGB)(color); + + if (!window.matchMedia("(forced-colors: active)").matches) { + return rgb; + } + + for (const [name, RGB] of this._colors) { + if (RGB.every((x, i) => x === rgb[i])) { + return ColorManager._colorsMapping.get(name); + } + } + + return rgb; + } + + getHexCode(name) { + const rgb = this._colors.get(name); + + if (!rgb) { + return name; + } + + return _util.Util.makeHexColor(...rgb); + } + +} + +exports.ColorManager = ColorManager; + +class AnnotationEditorUIManager { + #activeEditor = null; + #allEditors = new Map(); + #allLayers = new Map(); + #clipboardManager = new ClipboardManager(); + #commandManager = new CommandManager(); + #currentPageIndex = 0; + #editorTypes = null; + #eventBus = null; + #idManager = new IdManager(); + #isEnabled = false; + #mode = _util.AnnotationEditorType.NONE; + #selectedEditors = new Set(); + #boundKeydown = this.keydown.bind(this); + #boundOnEditingAction = this.onEditingAction.bind(this); + #boundOnPageChanging = this.onPageChanging.bind(this); + #previousStates = { + isEditing: false, + isEmpty: true, + hasEmptyClipboard: true, + hasSomethingToUndo: false, + hasSomethingToRedo: false, + hasSelectedEditor: false + }; + #container = null; + static _keyboardManager = new KeyboardManager([[["ctrl+a", "mac+meta+a"], AnnotationEditorUIManager.prototype.selectAll], [["ctrl+c", "mac+meta+c"], AnnotationEditorUIManager.prototype.copy], [["ctrl+v", "mac+meta+v"], AnnotationEditorUIManager.prototype.paste], [["ctrl+x", "mac+meta+x"], AnnotationEditorUIManager.prototype.cut], [["ctrl+z", "mac+meta+z"], AnnotationEditorUIManager.prototype.undo], [["ctrl+y", "ctrl+shift+Z", "mac+meta+shift+Z"], AnnotationEditorUIManager.prototype.redo], [["Backspace", "alt+Backspace", "ctrl+Backspace", "shift+Backspace", "mac+Backspace", "mac+alt+Backspace", "mac+ctrl+Backspace", "Delete", "ctrl+Delete", "shift+Delete"], AnnotationEditorUIManager.prototype.delete], [["Escape", "mac+Escape"], AnnotationEditorUIManager.prototype.unselectAll]]); + + constructor(container, eventBus) { + this.#container = container; + this.#eventBus = eventBus; + + this.#eventBus._on("editingaction", this.#boundOnEditingAction); + + this.#eventBus._on("pagechanging", this.#boundOnPageChanging); + } + + destroy() { + this.#removeKeyboardManager(); + + this.#eventBus._off("editingaction", this.#boundOnEditingAction); + + this.#eventBus._off("pagechanging", this.#boundOnPageChanging); + + for (const layer of this.#allLayers.values()) { + layer.destroy(); + } + + this.#allLayers.clear(); + this.#allEditors.clear(); + this.#activeEditor = null; + this.#selectedEditors.clear(); + this.#clipboardManager.destroy(); + this.#commandManager.destroy(); + } + + onPageChanging({ + pageNumber + }) { + this.#currentPageIndex = pageNumber - 1; + } + + focusMainContainer() { + this.#container.focus(); + } + + #addKeyboardManager() { + this.#container.addEventListener("keydown", this.#boundKeydown); + } + + #removeKeyboardManager() { + this.#container.removeEventListener("keydown", this.#boundKeydown); + } + + keydown(event) { + if (!this.getActive()?.shouldGetKeyboardEvents()) { + AnnotationEditorUIManager._keyboardManager.exec(this, event); + } + } + + onEditingAction(details) { + if (["undo", "redo", "cut", "copy", "paste", "delete", "selectAll"].includes(details.name)) { + this[details.name](); + } + } + + #dispatchUpdateStates(details) { + const hasChanged = Object.entries(details).some(([key, value]) => this.#previousStates[key] !== value); + + if (hasChanged) { + this.#eventBus.dispatch("annotationeditorstateschanged", { + source: this, + details: Object.assign(this.#previousStates, details) + }); + } + } + + #dispatchUpdateUI(details) { + this.#eventBus.dispatch("annotationeditorparamschanged", { + source: this, + details + }); + } + + setEditingState(isEditing) { + if (isEditing) { + this.#addKeyboardManager(); + this.#dispatchUpdateStates({ + isEditing: this.#mode !== _util.AnnotationEditorType.NONE, + isEmpty: this.#isEmpty(), + hasSomethingToUndo: this.#commandManager.hasSomethingToUndo(), + hasSomethingToRedo: this.#commandManager.hasSomethingToRedo(), + hasSelectedEditor: false, + hasEmptyClipboard: this.#clipboardManager.isEmpty() + }); + } else { + this.#removeKeyboardManager(); + this.#dispatchUpdateStates({ + isEditing: false + }); + } + } + + registerEditorTypes(types) { + this.#editorTypes = types; + + for (const editorType of this.#editorTypes) { + this.#dispatchUpdateUI(editorType.defaultPropertiesToUpdate); + } + } + + getId() { + return this.#idManager.getId(); + } + + addLayer(layer) { + this.#allLayers.set(layer.pageIndex, layer); + + if (this.#isEnabled) { + layer.enable(); + } else { + layer.disable(); + } + } + + removeLayer(layer) { + this.#allLayers.delete(layer.pageIndex); + } + + updateMode(mode) { + this.#mode = mode; + + if (mode === _util.AnnotationEditorType.NONE) { + this.setEditingState(false); + this.#disableAll(); + } else { + this.setEditingState(true); + this.#enableAll(); + + for (const layer of this.#allLayers.values()) { + layer.updateMode(mode); + } + } + } + + updateToolbar(mode) { + if (mode === this.#mode) { + return; + } + + this.#eventBus.dispatch("switchannotationeditormode", { + source: this, + mode + }); + } + + updateParams(type, value) { + for (const editor of this.#selectedEditors) { + editor.updateParams(type, value); + } + + for (const editorType of this.#editorTypes) { + editorType.updateDefaultParams(type, value); + } + } + + #enableAll() { + if (!this.#isEnabled) { + this.#isEnabled = true; + + for (const layer of this.#allLayers.values()) { + layer.enable(); + } + } + } + + #disableAll() { + this.unselectAll(); + + if (this.#isEnabled) { + this.#isEnabled = false; + + for (const layer of this.#allLayers.values()) { + layer.disable(); + } + } + } + + getEditors(pageIndex) { + const editors = []; + + for (const editor of this.#allEditors.values()) { + if (editor.pageIndex === pageIndex) { + editors.push(editor); + } + } + + return editors; + } + + getEditor(id) { + return this.#allEditors.get(id); + } + + addEditor(editor) { + this.#allEditors.set(editor.id, editor); + } + + removeEditor(editor) { + this.#allEditors.delete(editor.id); + this.unselect(editor); + } + + #addEditorToLayer(editor) { + const layer = this.#allLayers.get(editor.pageIndex); + + if (layer) { + layer.addOrRebuild(editor); + } else { + this.addEditor(editor); + } + } + + setActiveEditor(editor) { + if (this.#activeEditor === editor) { + return; + } + + this.#activeEditor = editor; + + if (editor) { + this.#dispatchUpdateUI(editor.propertiesToUpdate); + } + } + + toggleSelected(editor) { + if (this.#selectedEditors.has(editor)) { + this.#selectedEditors.delete(editor); + editor.unselect(); + this.#dispatchUpdateStates({ + hasSelectedEditor: this.hasSelection + }); + return; + } + + this.#selectedEditors.add(editor); + editor.select(); + this.#dispatchUpdateUI(editor.propertiesToUpdate); + this.#dispatchUpdateStates({ + hasSelectedEditor: true + }); + } + + setSelected(editor) { + for (const ed of this.#selectedEditors) { + if (ed !== editor) { + ed.unselect(); + } + } + + this.#selectedEditors.clear(); + this.#selectedEditors.add(editor); + editor.select(); + this.#dispatchUpdateUI(editor.propertiesToUpdate); + this.#dispatchUpdateStates({ + hasSelectedEditor: true + }); + } + + isSelected(editor) { + return this.#selectedEditors.has(editor); + } + + unselect(editor) { + editor.unselect(); + this.#selectedEditors.delete(editor); + this.#dispatchUpdateStates({ + hasSelectedEditor: this.hasSelection + }); + } + + get hasSelection() { + return this.#selectedEditors.size !== 0; + } + + undo() { + this.#commandManager.undo(); + this.#dispatchUpdateStates({ + hasSomethingToUndo: this.#commandManager.hasSomethingToUndo(), + hasSomethingToRedo: true, + isEmpty: this.#isEmpty() + }); + } + + redo() { + this.#commandManager.redo(); + this.#dispatchUpdateStates({ + hasSomethingToUndo: true, + hasSomethingToRedo: this.#commandManager.hasSomethingToRedo(), + isEmpty: this.#isEmpty() + }); + } + + addCommands(params) { + this.#commandManager.add(params); + this.#dispatchUpdateStates({ + hasSomethingToUndo: true, + hasSomethingToRedo: false, + isEmpty: this.#isEmpty() + }); + } + + #isEmpty() { + if (this.#allEditors.size === 0) { + return true; + } + + if (this.#allEditors.size === 1) { + for (const editor of this.#allEditors.values()) { + return editor.isEmpty(); + } + } + + return false; + } + + delete() { + if (this.#activeEditor) { + this.#activeEditor.commitOrRemove(); + } + + if (!this.hasSelection) { + return; + } + + const editors = [...this.#selectedEditors]; + + const cmd = () => { + for (const editor of editors) { + editor.remove(); + } + }; + + const undo = () => { + for (const editor of editors) { + this.#addEditorToLayer(editor); + } + }; + + this.addCommands({ + cmd, + undo, + mustExec: true + }); + } + + copy() { + if (this.#activeEditor) { + this.#activeEditor.commitOrRemove(); + } + + if (this.hasSelection) { + const editors = []; + + for (const editor of this.#selectedEditors) { + if (!editor.isEmpty()) { + editors.push(editor); + } + } + + if (editors.length === 0) { + return; + } + + this.#clipboardManager.copy(editors); + this.#dispatchUpdateStates({ + hasEmptyClipboard: false + }); + } + } + + cut() { + this.copy(); + this.delete(); + } + + paste() { + if (this.#clipboardManager.isEmpty()) { + return; + } + + this.unselectAll(); + const layer = this.#allLayers.get(this.#currentPageIndex); + const newEditors = this.#clipboardManager.paste().map(data => layer.deserialize(data)); + + const cmd = () => { + for (const editor of newEditors) { + this.#addEditorToLayer(editor); + } + + this.#selectEditors(newEditors); + }; + + const undo = () => { + for (const editor of newEditors) { + editor.remove(); + } + }; + + this.addCommands({ + cmd, + undo, + mustExec: true + }); + } + + #selectEditors(editors) { + this.#selectedEditors.clear(); + + for (const editor of editors) { + if (editor.isEmpty()) { + continue; + } + + this.#selectedEditors.add(editor); + editor.select(); + } + + this.#dispatchUpdateStates({ + hasSelectedEditor: true + }); + } + + selectAll() { + for (const editor of this.#selectedEditors) { + editor.commit(); + } + + this.#selectEditors(this.#allEditors.values()); + } + + unselectAll() { + if (this.#activeEditor) { + this.#activeEditor.commitOrRemove(); + return; + } + + if (this.#selectEditors.size === 0) { + return; + } + + for (const editor of this.#selectedEditors) { + editor.unselect(); + } + + this.#selectedEditors.clear(); + this.#dispatchUpdateStates({ + hasSelectedEditor: false + }); + } + + isActive(editor) { + return this.#activeEditor === editor; + } + + getActive() { + return this.#activeEditor; + } + + getMode() { + return this.#mode; + } + +} + +exports.AnnotationEditorUIManager = AnnotationEditorUIManager; + +/***/ }), +/* 8 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.StatTimer = exports.RenderingCancelledException = exports.PixelsPerInch = exports.PageViewport = exports.PDFDateString = exports.DOMStandardFontDataFactory = exports.DOMSVGFactory = exports.DOMCanvasFactory = exports.DOMCMapReaderFactory = exports.AnnotationPrefix = void 0; +exports.deprecated = deprecated; +exports.getColorValues = getColorValues; +exports.getCurrentTransform = getCurrentTransform; +exports.getCurrentTransformInverse = getCurrentTransformInverse; +exports.getFilenameFromUrl = getFilenameFromUrl; +exports.getPdfFilenameFromUrl = getPdfFilenameFromUrl; +exports.getRGB = getRGB; +exports.getXfaPageViewport = getXfaPageViewport; +exports.isDataScheme = isDataScheme; +exports.isPdfFile = isPdfFile; +exports.isValidFetchUrl = isValidFetchUrl; +exports.loadScript = loadScript; + +var _base_factory = __w_pdfjs_require__(9); + +var _util = __w_pdfjs_require__(1); + +const SVG_NS = "http://www.w3.org/2000/svg"; +const AnnotationPrefix = "pdfjs_internal_id_"; +exports.AnnotationPrefix = AnnotationPrefix; + +class PixelsPerInch { + static CSS = 96.0; + static PDF = 72.0; + static PDF_TO_CSS_UNITS = this.CSS / this.PDF; +} + +exports.PixelsPerInch = PixelsPerInch; + +class DOMCanvasFactory extends _base_factory.BaseCanvasFactory { + constructor({ + ownerDocument = globalThis.document + } = {}) { + super(); + this._document = ownerDocument; + } + + _createCanvas(width, height) { + const canvas = this._document.createElement("canvas"); + + canvas.width = width; + canvas.height = height; + return canvas; + } + +} + +exports.DOMCanvasFactory = DOMCanvasFactory; + +async function fetchData(url, asTypedArray = false) { + if (isValidFetchUrl(url, document.baseURI)) { + const response = await fetch(url); + + if (!response.ok) { + throw new Error(response.statusText); + } + + return asTypedArray ? new Uint8Array(await response.arrayBuffer()) : (0, _util.stringToBytes)(await response.text()); + } + + return new Promise((resolve, reject) => { + const request = new XMLHttpRequest(); + request.open("GET", url, true); + + if (asTypedArray) { + request.responseType = "arraybuffer"; + } + + request.onreadystatechange = () => { + if (request.readyState !== XMLHttpRequest.DONE) { + return; + } + + if (request.status === 200 || request.status === 0) { + let data; + + if (asTypedArray && request.response) { + data = new Uint8Array(request.response); + } else if (!asTypedArray && request.responseText) { + data = (0, _util.stringToBytes)(request.responseText); + } + + if (data) { + resolve(data); + return; + } + } + + reject(new Error(request.statusText)); + }; + + request.send(null); + }); +} + +class DOMCMapReaderFactory extends _base_factory.BaseCMapReaderFactory { + _fetchData(url, compressionType) { + return fetchData(url, this.isCompressed).then(data => { + return { + cMapData: data, + compressionType + }; + }); + } + +} + +exports.DOMCMapReaderFactory = DOMCMapReaderFactory; + +class DOMStandardFontDataFactory extends _base_factory.BaseStandardFontDataFactory { + _fetchData(url) { + return fetchData(url, true); + } + +} + +exports.DOMStandardFontDataFactory = DOMStandardFontDataFactory; + +class DOMSVGFactory extends _base_factory.BaseSVGFactory { + _createSVG(type) { + return document.createElementNS(SVG_NS, type); + } + +} + +exports.DOMSVGFactory = DOMSVGFactory; + +class PageViewport { + constructor({ + viewBox, + scale, + rotation, + offsetX = 0, + offsetY = 0, + dontFlip = false + }) { + this.viewBox = viewBox; + this.scale = scale; + this.rotation = rotation; + this.offsetX = offsetX; + this.offsetY = offsetY; + const centerX = (viewBox[2] + viewBox[0]) / 2; + const centerY = (viewBox[3] + viewBox[1]) / 2; + let rotateA, rotateB, rotateC, rotateD; + rotation %= 360; + + if (rotation < 0) { + rotation += 360; + } + + switch (rotation) { + case 180: + rotateA = -1; + rotateB = 0; + rotateC = 0; + rotateD = 1; + break; + + case 90: + rotateA = 0; + rotateB = 1; + rotateC = 1; + rotateD = 0; + break; + + case 270: + rotateA = 0; + rotateB = -1; + rotateC = -1; + rotateD = 0; + break; + + case 0: + rotateA = 1; + rotateB = 0; + rotateC = 0; + rotateD = -1; + break; + + default: + throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees."); + } + + if (dontFlip) { + rotateC = -rotateC; + rotateD = -rotateD; + } + + let offsetCanvasX, offsetCanvasY; + let width, height; + + if (rotateA === 0) { + offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX; + offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY; + width = Math.abs(viewBox[3] - viewBox[1]) * scale; + height = Math.abs(viewBox[2] - viewBox[0]) * scale; + } else { + offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX; + offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY; + width = Math.abs(viewBox[2] - viewBox[0]) * scale; + height = Math.abs(viewBox[3] - viewBox[1]) * scale; + } + + this.transform = [rotateA * scale, rotateB * scale, rotateC * scale, rotateD * scale, offsetCanvasX - rotateA * scale * centerX - rotateC * scale * centerY, offsetCanvasY - rotateB * scale * centerX - rotateD * scale * centerY]; + this.width = width; + this.height = height; + } + + clone({ + scale = this.scale, + rotation = this.rotation, + offsetX = this.offsetX, + offsetY = this.offsetY, + dontFlip = false + } = {}) { + return new PageViewport({ + viewBox: this.viewBox.slice(), + scale, + rotation, + offsetX, + offsetY, + dontFlip + }); + } + + convertToViewportPoint(x, y) { + return _util.Util.applyTransform([x, y], this.transform); + } + + convertToViewportRectangle(rect) { + const topLeft = _util.Util.applyTransform([rect[0], rect[1]], this.transform); + + const bottomRight = _util.Util.applyTransform([rect[2], rect[3]], this.transform); + + return [topLeft[0], topLeft[1], bottomRight[0], bottomRight[1]]; + } + + convertToPdfPoint(x, y) { + return _util.Util.applyInverseTransform([x, y], this.transform); + } + +} + +exports.PageViewport = PageViewport; + +class RenderingCancelledException extends _util.BaseException { + constructor(msg, type) { + super(msg, "RenderingCancelledException"); + this.type = type; + } + +} + +exports.RenderingCancelledException = RenderingCancelledException; + +function isDataScheme(url) { + const ii = url.length; + let i = 0; + + while (i < ii && url[i].trim() === "") { + i++; + } + + return url.substring(i, i + 5).toLowerCase() === "data:"; +} + +function isPdfFile(filename) { + return typeof filename === "string" && /\.pdf$/i.test(filename); +} + +function getFilenameFromUrl(url) { + const anchor = url.indexOf("#"); + const query = url.indexOf("?"); + const end = Math.min(anchor > 0 ? anchor : url.length, query > 0 ? query : url.length); + return url.substring(url.lastIndexOf("/", end) + 1, end); +} + +function getPdfFilenameFromUrl(url, defaultFilename = "document.pdf") { + if (typeof url !== "string") { + return defaultFilename; + } + + if (isDataScheme(url)) { + (0, _util.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'); + return defaultFilename; + } + + const reURI = /^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/; + const reFilename = /[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i; + const splitURI = reURI.exec(url); + let suggestedFilename = reFilename.exec(splitURI[1]) || reFilename.exec(splitURI[2]) || reFilename.exec(splitURI[3]); + + if (suggestedFilename) { + suggestedFilename = suggestedFilename[0]; + + if (suggestedFilename.includes("%")) { + try { + suggestedFilename = reFilename.exec(decodeURIComponent(suggestedFilename))[0]; + } catch (ex) {} + } + } + + return suggestedFilename || defaultFilename; +} + +class StatTimer { + constructor() { + this.started = Object.create(null); + this.times = []; + } + + time(name) { + if (name in this.started) { + (0, _util.warn)(`Timer is already running for ${name}`); + } + + this.started[name] = Date.now(); + } + + timeEnd(name) { + if (!(name in this.started)) { + (0, _util.warn)(`Timer has not been started for ${name}`); + } + + this.times.push({ + name, + start: this.started[name], + end: Date.now() + }); + delete this.started[name]; + } + + toString() { + const outBuf = []; + let longest = 0; + + for (const time of this.times) { + const name = time.name; + + if (name.length > longest) { + longest = name.length; + } + } + + for (const time of this.times) { + const duration = time.end - time.start; + outBuf.push(`${time.name.padEnd(longest)} ${duration}ms\n`); + } + + return outBuf.join(""); + } + +} + +exports.StatTimer = StatTimer; + +function isValidFetchUrl(url, baseUrl) { + try { + const { + protocol + } = baseUrl ? new URL(url, baseUrl) : new URL(url); + return protocol === "http:" || protocol === "https:"; + } catch (ex) { + return false; + } +} + +function loadScript(src, removeScriptElement = false) { + return new Promise((resolve, reject) => { + const script = document.createElement("script"); + script.src = src; + + script.onload = function (evt) { + if (removeScriptElement) { + script.remove(); + } + + resolve(evt); + }; + + script.onerror = function () { + reject(new Error(`Cannot load script at: ${script.src}`)); + }; + + (document.head || document.documentElement).append(script); + }); +} + +function deprecated(details) { + console.log("Deprecated API usage: " + details); +} + +let pdfDateStringRegex; + +class PDFDateString { + static toDateObject(input) { + if (!input || typeof input !== "string") { + return null; + } + + if (!pdfDateStringRegex) { + pdfDateStringRegex = new RegExp("^D:" + "(\\d{4})" + "(\\d{2})?" + "(\\d{2})?" + "(\\d{2})?" + "(\\d{2})?" + "(\\d{2})?" + "([Z|+|-])?" + "(\\d{2})?" + "'?" + "(\\d{2})?" + "'?"); + } + + const matches = pdfDateStringRegex.exec(input); + + if (!matches) { + return null; + } + + const year = parseInt(matches[1], 10); + let month = parseInt(matches[2], 10); + month = month >= 1 && month <= 12 ? month - 1 : 0; + let day = parseInt(matches[3], 10); + day = day >= 1 && day <= 31 ? day : 1; + let hour = parseInt(matches[4], 10); + hour = hour >= 0 && hour <= 23 ? hour : 0; + let minute = parseInt(matches[5], 10); + minute = minute >= 0 && minute <= 59 ? minute : 0; + let second = parseInt(matches[6], 10); + second = second >= 0 && second <= 59 ? second : 0; + const universalTimeRelation = matches[7] || "Z"; + let offsetHour = parseInt(matches[8], 10); + offsetHour = offsetHour >= 0 && offsetHour <= 23 ? offsetHour : 0; + let offsetMinute = parseInt(matches[9], 10) || 0; + offsetMinute = offsetMinute >= 0 && offsetMinute <= 59 ? offsetMinute : 0; + + if (universalTimeRelation === "-") { + hour += offsetHour; + minute += offsetMinute; + } else if (universalTimeRelation === "+") { + hour -= offsetHour; + minute -= offsetMinute; + } + + return new Date(Date.UTC(year, month, day, hour, minute, second)); + } + +} + +exports.PDFDateString = PDFDateString; + +function getXfaPageViewport(xfaPage, { + scale = 1, + rotation = 0 +}) { + const { + width, + height + } = xfaPage.attributes.style; + const viewBox = [0, 0, parseInt(width), parseInt(height)]; + return new PageViewport({ + viewBox, + scale, + rotation + }); +} + +function getRGB(color) { + if (color.startsWith("#")) { + const colorRGB = parseInt(color.slice(1), 16); + return [(colorRGB & 0xff0000) >> 16, (colorRGB & 0x00ff00) >> 8, colorRGB & 0x0000ff]; + } + + if (color.startsWith("rgb(")) { + return color.slice(4, -1).split(",").map(x => parseInt(x)); + } + + if (color.startsWith("rgba(")) { + return color.slice(5, -1).split(",").map(x => parseInt(x)).slice(0, 3); + } + + (0, _util.warn)(`Not a valid color format: "${color}"`); + return [0, 0, 0]; +} + +function getColorValues(colors) { + const span = document.createElement("span"); + span.style.visibility = "hidden"; + document.body.append(span); + + for (const name of colors.keys()) { + span.style.color = name; + const computedColor = window.getComputedStyle(span).color; + colors.set(name, getRGB(computedColor)); + } + + span.remove(); +} + +function getCurrentTransform(ctx) { + const { + a, + b, + c, + d, + e, + f + } = ctx.getTransform(); + return [a, b, c, d, e, f]; +} + +function getCurrentTransformInverse(ctx) { + const { + a, + b, + c, + d, + e, + f + } = ctx.getTransform().invertSelf(); + return [a, b, c, d, e, f]; +} + +/***/ }), +/* 9 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.BaseStandardFontDataFactory = exports.BaseSVGFactory = exports.BaseCanvasFactory = exports.BaseCMapReaderFactory = void 0; + +var _util = __w_pdfjs_require__(1); + +class BaseCanvasFactory { + constructor() { + if (this.constructor === BaseCanvasFactory) { + (0, _util.unreachable)("Cannot initialize BaseCanvasFactory."); + } + } + + create(width, height) { + if (width <= 0 || height <= 0) { + throw new Error("Invalid canvas size"); + } + + const canvas = this._createCanvas(width, height); + + return { + canvas, + context: canvas.getContext("2d") + }; + } + + reset(canvasAndContext, width, height) { + if (!canvasAndContext.canvas) { + throw new Error("Canvas is not specified"); + } + + if (width <= 0 || height <= 0) { + throw new Error("Invalid canvas size"); + } + + canvasAndContext.canvas.width = width; + canvasAndContext.canvas.height = height; + } + + destroy(canvasAndContext) { + if (!canvasAndContext.canvas) { + throw new Error("Canvas is not specified"); + } + + canvasAndContext.canvas.width = 0; + canvasAndContext.canvas.height = 0; + canvasAndContext.canvas = null; + canvasAndContext.context = null; + } + + _createCanvas(width, height) { + (0, _util.unreachable)("Abstract method `_createCanvas` called."); + } + +} + +exports.BaseCanvasFactory = BaseCanvasFactory; + +class BaseCMapReaderFactory { + constructor({ + baseUrl = null, + isCompressed = false + }) { + if (this.constructor === BaseCMapReaderFactory) { + (0, _util.unreachable)("Cannot initialize BaseCMapReaderFactory."); + } + + this.baseUrl = baseUrl; + this.isCompressed = isCompressed; + } + + async fetch({ + name + }) { + if (!this.baseUrl) { + throw new Error('The CMap "baseUrl" parameter must be specified, ensure that ' + 'the "cMapUrl" and "cMapPacked" API parameters are provided.'); + } + + if (!name) { + throw new Error("CMap name must be specified."); + } + + const url = this.baseUrl + name + (this.isCompressed ? ".bcmap" : ""); + const compressionType = this.isCompressed ? _util.CMapCompressionType.BINARY : _util.CMapCompressionType.NONE; + return this._fetchData(url, compressionType).catch(reason => { + throw new Error(`Unable to load ${this.isCompressed ? "binary " : ""}CMap at: ${url}`); + }); + } + + _fetchData(url, compressionType) { + (0, _util.unreachable)("Abstract method `_fetchData` called."); + } + +} + +exports.BaseCMapReaderFactory = BaseCMapReaderFactory; + +class BaseStandardFontDataFactory { + constructor({ + baseUrl = null + }) { + if (this.constructor === BaseStandardFontDataFactory) { + (0, _util.unreachable)("Cannot initialize BaseStandardFontDataFactory."); + } + + this.baseUrl = baseUrl; + } + + async fetch({ + filename + }) { + if (!this.baseUrl) { + throw new Error('The standard font "baseUrl" parameter must be specified, ensure that ' + 'the "standardFontDataUrl" API parameter is provided.'); + } + + if (!filename) { + throw new Error("Font filename must be specified."); + } + + const url = `${this.baseUrl}${filename}`; + return this._fetchData(url).catch(reason => { + throw new Error(`Unable to load font data at: ${url}`); + }); + } + + _fetchData(url) { + (0, _util.unreachable)("Abstract method `_fetchData` called."); + } + +} + +exports.BaseStandardFontDataFactory = BaseStandardFontDataFactory; + +class BaseSVGFactory { + constructor() { + if (this.constructor === BaseSVGFactory) { + (0, _util.unreachable)("Cannot initialize BaseSVGFactory."); + } + } + + create(width, height, skipDimensions = false) { + if (width <= 0 || height <= 0) { + throw new Error("Invalid SVG dimensions"); + } + + const svg = this._createSVG("svg:svg"); + + svg.setAttribute("version", "1.1"); + + if (!skipDimensions) { + svg.setAttribute("width", `${width}px`); + svg.setAttribute("height", `${height}px`); + } + + svg.setAttribute("preserveAspectRatio", "none"); + svg.setAttribute("viewBox", `0 0 ${width} ${height}`); + return svg; + } + + createElement(type) { + if (typeof type !== "string") { + throw new Error("Invalid SVG element type"); + } + + return this._createSVG(type); + } + + _createSVG(type) { + (0, _util.unreachable)("Abstract method `_createSVG` called."); + } + +} + +exports.BaseSVGFactory = BaseSVGFactory; + +/***/ }), +/* 10 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.MurmurHash3_64 = void 0; + +var _util = __w_pdfjs_require__(1); + +const SEED = 0xc3d2e1f0; +const MASK_HIGH = 0xffff0000; +const MASK_LOW = 0xffff; + +class MurmurHash3_64 { + constructor(seed) { + this.h1 = seed ? seed & 0xffffffff : SEED; + this.h2 = seed ? seed & 0xffffffff : SEED; + } + + update(input) { + let data, length; + + if (typeof input === "string") { + data = new Uint8Array(input.length * 2); + length = 0; + + for (let i = 0, ii = input.length; i < ii; i++) { + const code = input.charCodeAt(i); + + if (code <= 0xff) { + data[length++] = code; + } else { + data[length++] = code >>> 8; + data[length++] = code & 0xff; + } + } + } else if ((0, _util.isArrayBuffer)(input)) { + data = input.slice(); + length = data.byteLength; + } else { + throw new Error("Wrong data format in MurmurHash3_64_update. " + "Input must be a string or array."); + } + + const blockCounts = length >> 2; + const tailLength = length - blockCounts * 4; + const dataUint32 = new Uint32Array(data.buffer, 0, blockCounts); + let k1 = 0, + k2 = 0; + let h1 = this.h1, + h2 = this.h2; + const C1 = 0xcc9e2d51, + C2 = 0x1b873593; + const C1_LOW = C1 & MASK_LOW, + C2_LOW = C2 & MASK_LOW; + + for (let i = 0; i < blockCounts; i++) { + if (i & 1) { + k1 = dataUint32[i]; + k1 = k1 * C1 & MASK_HIGH | k1 * C1_LOW & MASK_LOW; + k1 = k1 << 15 | k1 >>> 17; + k1 = k1 * C2 & MASK_HIGH | k1 * C2_LOW & MASK_LOW; + h1 ^= k1; + h1 = h1 << 13 | h1 >>> 19; + h1 = h1 * 5 + 0xe6546b64; + } else { + k2 = dataUint32[i]; + k2 = k2 * C1 & MASK_HIGH | k2 * C1_LOW & MASK_LOW; + k2 = k2 << 15 | k2 >>> 17; + k2 = k2 * C2 & MASK_HIGH | k2 * C2_LOW & MASK_LOW; + h2 ^= k2; + h2 = h2 << 13 | h2 >>> 19; + h2 = h2 * 5 + 0xe6546b64; + } + } + + k1 = 0; + + switch (tailLength) { + case 3: + k1 ^= data[blockCounts * 4 + 2] << 16; + + case 2: + k1 ^= data[blockCounts * 4 + 1] << 8; + + case 1: + k1 ^= data[blockCounts * 4]; + k1 = k1 * C1 & MASK_HIGH | k1 * C1_LOW & MASK_LOW; + k1 = k1 << 15 | k1 >>> 17; + k1 = k1 * C2 & MASK_HIGH | k1 * C2_LOW & MASK_LOW; + + if (blockCounts & 1) { + h1 ^= k1; + } else { + h2 ^= k1; + } + + } + + this.h1 = h1; + this.h2 = h2; + } + + hexdigest() { + let h1 = this.h1, + h2 = this.h2; + h1 ^= h2 >>> 1; + h1 = h1 * 0xed558ccd & MASK_HIGH | h1 * 0x8ccd & MASK_LOW; + h2 = h2 * 0xff51afd7 & MASK_HIGH | ((h2 << 16 | h1 >>> 16) * 0xafd7ed55 & MASK_HIGH) >>> 16; + h1 ^= h2 >>> 1; + h1 = h1 * 0x1a85ec53 & MASK_HIGH | h1 * 0xec53 & MASK_LOW; + h2 = h2 * 0xc4ceb9fe & MASK_HIGH | ((h2 << 16 | h1 >>> 16) * 0xb9fe1a85 & MASK_HIGH) >>> 16; + h1 ^= h2 >>> 1; + const hex1 = (h1 >>> 0).toString(16), + hex2 = (h2 >>> 0).toString(16); + return hex1.padStart(8, "0") + hex2.padStart(8, "0"); + } + +} + +exports.MurmurHash3_64 = MurmurHash3_64; + +/***/ }), +/* 11 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.FontLoader = exports.FontFaceObject = void 0; + +var _util = __w_pdfjs_require__(1); + +class BaseFontLoader { + constructor({ + docId, + onUnsupportedFeature, + ownerDocument = globalThis.document, + styleElement = null + }) { + if (this.constructor === BaseFontLoader) { + (0, _util.unreachable)("Cannot initialize BaseFontLoader."); + } + + this.docId = docId; + this._onUnsupportedFeature = onUnsupportedFeature; + this._document = ownerDocument; + this.nativeFontFaces = []; + this.styleElement = null; + } + + addNativeFontFace(nativeFontFace) { + this.nativeFontFaces.push(nativeFontFace); + + this._document.fonts.add(nativeFontFace); + } + + insertRule(rule) { + let styleElement = this.styleElement; + + if (!styleElement) { + styleElement = this.styleElement = this._document.createElement("style"); + styleElement.id = `PDFJS_FONT_STYLE_TAG_${this.docId}`; + + this._document.documentElement.getElementsByTagName("head")[0].append(styleElement); + } + + const styleSheet = styleElement.sheet; + styleSheet.insertRule(rule, styleSheet.cssRules.length); + } + + clear() { + for (const nativeFontFace of this.nativeFontFaces) { + this._document.fonts.delete(nativeFontFace); + } + + this.nativeFontFaces.length = 0; + + if (this.styleElement) { + this.styleElement.remove(); + this.styleElement = null; + } + } + + async bind(font) { + if (font.attached || font.missingFile) { + return; + } + + font.attached = true; + + if (this.isFontLoadingAPISupported) { + const nativeFontFace = font.createNativeFontFace(); + + if (nativeFontFace) { + this.addNativeFontFace(nativeFontFace); + + try { + await nativeFontFace.loaded; + } catch (ex) { + this._onUnsupportedFeature({ + featureId: _util.UNSUPPORTED_FEATURES.errorFontLoadNative + }); + + (0, _util.warn)(`Failed to load font '${nativeFontFace.family}': '${ex}'.`); + font.disableFontFace = true; + throw ex; + } + } + + return; + } + + const rule = font.createFontFaceRule(); + + if (rule) { + this.insertRule(rule); + + if (this.isSyncFontLoadingSupported) { + return; + } + + await new Promise(resolve => { + const request = this._queueLoadingCallback(resolve); + + this._prepareFontLoadEvent([rule], [font], request); + }); + } + } + + _queueLoadingCallback(callback) { + (0, _util.unreachable)("Abstract method `_queueLoadingCallback`."); + } + + get isFontLoadingAPISupported() { + const hasFonts = !!this._document?.fonts; + return (0, _util.shadow)(this, "isFontLoadingAPISupported", hasFonts); + } + + get isSyncFontLoadingSupported() { + (0, _util.unreachable)("Abstract method `isSyncFontLoadingSupported`."); + } + + get _loadTestFont() { + (0, _util.unreachable)("Abstract method `_loadTestFont`."); + } + + _prepareFontLoadEvent(rules, fontsToLoad, request) { + (0, _util.unreachable)("Abstract method `_prepareFontLoadEvent`."); + } + +} + +let FontLoader; +exports.FontLoader = FontLoader; +{ + exports.FontLoader = FontLoader = class GenericFontLoader extends BaseFontLoader { + constructor(params) { + super(params); + this.loadingContext = { + requests: [], + nextRequestId: 0 + }; + this.loadTestFontId = 0; + } + + get isSyncFontLoadingSupported() { + let supported = false; + + if (typeof navigator === "undefined") { + supported = true; + } else { + const m = /Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent); + + if (m?.[1] >= 14) { + supported = true; + } + } + + return (0, _util.shadow)(this, "isSyncFontLoadingSupported", supported); + } + + _queueLoadingCallback(callback) { + function completeRequest() { + (0, _util.assert)(!request.done, "completeRequest() cannot be called twice."); + request.done = true; + + while (context.requests.length > 0 && context.requests[0].done) { + const otherRequest = context.requests.shift(); + setTimeout(otherRequest.callback, 0); + } + } + + const context = this.loadingContext; + const request = { + id: `pdfjs-font-loading-${context.nextRequestId++}`, + done: false, + complete: completeRequest, + callback + }; + context.requests.push(request); + return request; + } + + get _loadTestFont() { + const getLoadTestFont = function () { + return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQA" + "FQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAA" + "ALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgA" + "AAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1" + "AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD" + "6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACM" + "AooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4D" + "IP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAA" + "AAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUA" + "AQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgAB" + "AAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABY" + "AAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAA" + "AC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAA" + "AAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQAC" + "AQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3" + "Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTj" + "FQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="); + }; + + return (0, _util.shadow)(this, "_loadTestFont", getLoadTestFont()); + } + + _prepareFontLoadEvent(rules, fonts, request) { + function int32(data, offset) { + return data.charCodeAt(offset) << 24 | data.charCodeAt(offset + 1) << 16 | data.charCodeAt(offset + 2) << 8 | data.charCodeAt(offset + 3) & 0xff; + } + + function spliceString(s, offset, remove, insert) { + const chunk1 = s.substring(0, offset); + const chunk2 = s.substring(offset + remove); + return chunk1 + insert + chunk2; + } + + let i, ii; + + const canvas = this._document.createElement("canvas"); + + canvas.width = 1; + canvas.height = 1; + const ctx = canvas.getContext("2d"); + let called = 0; + + function isFontReady(name, callback) { + called++; + + if (called > 30) { + (0, _util.warn)("Load test font never loaded."); + callback(); + return; + } + + ctx.font = "30px " + name; + ctx.fillText(".", 0, 20); + const imageData = ctx.getImageData(0, 0, 1, 1); + + if (imageData.data[3] > 0) { + callback(); + return; + } + + setTimeout(isFontReady.bind(null, name, callback)); + } + + const loadTestFontId = `lt${Date.now()}${this.loadTestFontId++}`; + let data = this._loadTestFont; + const COMMENT_OFFSET = 976; + data = spliceString(data, COMMENT_OFFSET, loadTestFontId.length, loadTestFontId); + const CFF_CHECKSUM_OFFSET = 16; + const XXXX_VALUE = 0x58585858; + let checksum = int32(data, CFF_CHECKSUM_OFFSET); + + for (i = 0, ii = loadTestFontId.length - 3; i < ii; i += 4) { + checksum = checksum - XXXX_VALUE + int32(loadTestFontId, i) | 0; + } + + if (i < loadTestFontId.length) { + checksum = checksum - XXXX_VALUE + int32(loadTestFontId + "XXX", i) | 0; + } + + data = spliceString(data, CFF_CHECKSUM_OFFSET, 4, (0, _util.string32)(checksum)); + const url = `url(data:font/opentype;base64,${btoa(data)});`; + const rule = `@font-face {font-family:"${loadTestFontId}";src:${url}}`; + this.insertRule(rule); + const names = []; + + for (const font of fonts) { + names.push(font.loadedName); + } + + names.push(loadTestFontId); + + const div = this._document.createElement("div"); + + div.style.visibility = "hidden"; + div.style.width = div.style.height = "10px"; + div.style.position = "absolute"; + div.style.top = div.style.left = "0px"; + + for (const name of names) { + const span = this._document.createElement("span"); + + span.textContent = "Hi"; + span.style.fontFamily = name; + div.append(span); + } + + this._document.body.append(div); + + isFontReady(loadTestFontId, () => { + div.remove(); + request.complete(); + }); + } + + }; +} + +class FontFaceObject { + constructor(translatedData, { + isEvalSupported = true, + disableFontFace = false, + ignoreErrors = false, + onUnsupportedFeature, + fontRegistry = null + }) { + this.compiledGlyphs = Object.create(null); + + for (const i in translatedData) { + this[i] = translatedData[i]; + } + + this.isEvalSupported = isEvalSupported !== false; + this.disableFontFace = disableFontFace === true; + this.ignoreErrors = ignoreErrors === true; + this._onUnsupportedFeature = onUnsupportedFeature; + this.fontRegistry = fontRegistry; + } + + createNativeFontFace() { + if (!this.data || this.disableFontFace) { + return null; + } + + let nativeFontFace; + + if (!this.cssFontInfo) { + nativeFontFace = new FontFace(this.loadedName, this.data, {}); + } else { + const css = { + weight: this.cssFontInfo.fontWeight + }; + + if (this.cssFontInfo.italicAngle) { + css.style = `oblique ${this.cssFontInfo.italicAngle}deg`; + } + + nativeFontFace = new FontFace(this.cssFontInfo.fontFamily, this.data, css); + } + + if (this.fontRegistry) { + this.fontRegistry.registerFont(this); + } + + return nativeFontFace; + } + + createFontFaceRule() { + if (!this.data || this.disableFontFace) { + return null; + } + + const data = (0, _util.bytesToString)(this.data); + const url = `url(data:${this.mimetype};base64,${btoa(data)});`; + let rule; + + if (!this.cssFontInfo) { + rule = `@font-face {font-family:"${this.loadedName}";src:${url}}`; + } else { + let css = `font-weight: ${this.cssFontInfo.fontWeight};`; + + if (this.cssFontInfo.italicAngle) { + css += `font-style: oblique ${this.cssFontInfo.italicAngle}deg;`; + } + + rule = `@font-face {font-family:"${this.cssFontInfo.fontFamily}";${css}src:${url}}`; + } + + if (this.fontRegistry) { + this.fontRegistry.registerFont(this, url); + } + + return rule; + } + + getPathGenerator(objs, character) { + if (this.compiledGlyphs[character] !== undefined) { + return this.compiledGlyphs[character]; + } + + let cmds; + + try { + cmds = objs.get(this.loadedName + "_path_" + character); + } catch (ex) { + if (!this.ignoreErrors) { + throw ex; + } + + this._onUnsupportedFeature({ + featureId: _util.UNSUPPORTED_FEATURES.errorFontGetPath + }); + + (0, _util.warn)(`getPathGenerator - ignoring character: "${ex}".`); + return this.compiledGlyphs[character] = function (c, size) {}; + } + + if (this.isEvalSupported && _util.FeatureTest.isEvalSupported) { + const jsBuf = []; + + for (const current of cmds) { + const args = current.args !== undefined ? current.args.join(",") : ""; + jsBuf.push("c.", current.cmd, "(", args, ");\n"); + } + + return this.compiledGlyphs[character] = new Function("c", "size", jsBuf.join("")); + } + + return this.compiledGlyphs[character] = function (c, size) { + for (const current of cmds) { + if (current.cmd === "scale") { + current.args = [size, -size]; + } + + c[current.cmd].apply(c, current.args); + } + }; + } + +} + +exports.FontFaceObject = FontFaceObject; + +/***/ }), +/* 12 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.CanvasGraphics = void 0; + +var _display_utils = __w_pdfjs_require__(8); + +var _util = __w_pdfjs_require__(1); + +var _pattern_helper = __w_pdfjs_require__(13); + +var _image_utils = __w_pdfjs_require__(14); + +var _is_node = __w_pdfjs_require__(3); + +const MIN_FONT_SIZE = 16; +const MAX_FONT_SIZE = 100; +const MAX_GROUP_SIZE = 4096; +const EXECUTION_TIME = 15; +const EXECUTION_STEPS = 10; +const MAX_SIZE_TO_COMPILE = _is_node.isNodeJS && typeof Path2D === "undefined" ? -1 : 1000; +const FULL_CHUNK_HEIGHT = 16; + +function mirrorContextOperations(ctx, destCtx) { + if (ctx._removeMirroring) { + throw new Error("Context is already forwarding operations."); + } + + ctx.__originalSave = ctx.save; + ctx.__originalRestore = ctx.restore; + ctx.__originalRotate = ctx.rotate; + ctx.__originalScale = ctx.scale; + ctx.__originalTranslate = ctx.translate; + ctx.__originalTransform = ctx.transform; + ctx.__originalSetTransform = ctx.setTransform; + ctx.__originalResetTransform = ctx.resetTransform; + ctx.__originalClip = ctx.clip; + ctx.__originalMoveTo = ctx.moveTo; + ctx.__originalLineTo = ctx.lineTo; + ctx.__originalBezierCurveTo = ctx.bezierCurveTo; + ctx.__originalRect = ctx.rect; + ctx.__originalClosePath = ctx.closePath; + ctx.__originalBeginPath = ctx.beginPath; + + ctx._removeMirroring = () => { + ctx.save = ctx.__originalSave; + ctx.restore = ctx.__originalRestore; + ctx.rotate = ctx.__originalRotate; + ctx.scale = ctx.__originalScale; + ctx.translate = ctx.__originalTranslate; + ctx.transform = ctx.__originalTransform; + ctx.setTransform = ctx.__originalSetTransform; + ctx.resetTransform = ctx.__originalResetTransform; + ctx.clip = ctx.__originalClip; + ctx.moveTo = ctx.__originalMoveTo; + ctx.lineTo = ctx.__originalLineTo; + ctx.bezierCurveTo = ctx.__originalBezierCurveTo; + ctx.rect = ctx.__originalRect; + ctx.closePath = ctx.__originalClosePath; + ctx.beginPath = ctx.__originalBeginPath; + delete ctx._removeMirroring; + }; + + ctx.save = function ctxSave() { + destCtx.save(); + + this.__originalSave(); + }; + + ctx.restore = function ctxRestore() { + destCtx.restore(); + + this.__originalRestore(); + }; + + ctx.translate = function ctxTranslate(x, y) { + destCtx.translate(x, y); + + this.__originalTranslate(x, y); + }; + + ctx.scale = function ctxScale(x, y) { + destCtx.scale(x, y); + + this.__originalScale(x, y); + }; + + ctx.transform = function ctxTransform(a, b, c, d, e, f) { + destCtx.transform(a, b, c, d, e, f); + + this.__originalTransform(a, b, c, d, e, f); + }; + + ctx.setTransform = function ctxSetTransform(a, b, c, d, e, f) { + destCtx.setTransform(a, b, c, d, e, f); + + this.__originalSetTransform(a, b, c, d, e, f); + }; + + ctx.resetTransform = function ctxResetTransform() { + destCtx.resetTransform(); + + this.__originalResetTransform(); + }; + + ctx.rotate = function ctxRotate(angle) { + destCtx.rotate(angle); + + this.__originalRotate(angle); + }; + + ctx.clip = function ctxRotate(rule) { + destCtx.clip(rule); + + this.__originalClip(rule); + }; + + ctx.moveTo = function (x, y) { + destCtx.moveTo(x, y); + + this.__originalMoveTo(x, y); + }; + + ctx.lineTo = function (x, y) { + destCtx.lineTo(x, y); + + this.__originalLineTo(x, y); + }; + + ctx.bezierCurveTo = function (cp1x, cp1y, cp2x, cp2y, x, y) { + destCtx.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y); + + this.__originalBezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y); + }; + + ctx.rect = function (x, y, width, height) { + destCtx.rect(x, y, width, height); + + this.__originalRect(x, y, width, height); + }; + + ctx.closePath = function () { + destCtx.closePath(); + + this.__originalClosePath(); + }; + + ctx.beginPath = function () { + destCtx.beginPath(); + + this.__originalBeginPath(); + }; +} + +class CachedCanvases { + constructor(canvasFactory) { + this.canvasFactory = canvasFactory; + this.cache = Object.create(null); + } + + getCanvas(id, width, height) { + let canvasEntry; + + if (this.cache[id] !== undefined) { + canvasEntry = this.cache[id]; + this.canvasFactory.reset(canvasEntry, width, height); + } else { + canvasEntry = this.canvasFactory.create(width, height); + this.cache[id] = canvasEntry; + } + + return canvasEntry; + } + + delete(id) { + delete this.cache[id]; + } + + clear() { + for (const id in this.cache) { + const canvasEntry = this.cache[id]; + this.canvasFactory.destroy(canvasEntry); + delete this.cache[id]; + } + } + +} + +function drawImageAtIntegerCoords(ctx, srcImg, srcX, srcY, srcW, srcH, destX, destY, destW, destH) { + const [a, b, c, d, tx, ty] = (0, _display_utils.getCurrentTransform)(ctx); + + if (b === 0 && c === 0) { + const tlX = destX * a + tx; + const rTlX = Math.round(tlX); + const tlY = destY * d + ty; + const rTlY = Math.round(tlY); + const brX = (destX + destW) * a + tx; + const rWidth = Math.abs(Math.round(brX) - rTlX) || 1; + const brY = (destY + destH) * d + ty; + const rHeight = Math.abs(Math.round(brY) - rTlY) || 1; + ctx.setTransform(Math.sign(a), 0, 0, Math.sign(d), rTlX, rTlY); + ctx.drawImage(srcImg, srcX, srcY, srcW, srcH, 0, 0, rWidth, rHeight); + ctx.setTransform(a, b, c, d, tx, ty); + return [rWidth, rHeight]; + } + + if (a === 0 && d === 0) { + const tlX = destY * c + tx; + const rTlX = Math.round(tlX); + const tlY = destX * b + ty; + const rTlY = Math.round(tlY); + const brX = (destY + destH) * c + tx; + const rWidth = Math.abs(Math.round(brX) - rTlX) || 1; + const brY = (destX + destW) * b + ty; + const rHeight = Math.abs(Math.round(brY) - rTlY) || 1; + ctx.setTransform(0, Math.sign(b), Math.sign(c), 0, rTlX, rTlY); + ctx.drawImage(srcImg, srcX, srcY, srcW, srcH, 0, 0, rHeight, rWidth); + ctx.setTransform(a, b, c, d, tx, ty); + return [rHeight, rWidth]; + } + + ctx.drawImage(srcImg, srcX, srcY, srcW, srcH, destX, destY, destW, destH); + const scaleX = Math.hypot(a, b); + const scaleY = Math.hypot(c, d); + return [scaleX * destW, scaleY * destH]; +} + +function compileType3Glyph(imgData) { + const { + width, + height + } = imgData; + + if (width > MAX_SIZE_TO_COMPILE || height > MAX_SIZE_TO_COMPILE) { + return null; + } + + const POINT_TO_PROCESS_LIMIT = 1000; + const POINT_TYPES = new Uint8Array([0, 2, 4, 0, 1, 0, 5, 4, 8, 10, 0, 8, 0, 2, 1, 0]); + const width1 = width + 1; + let points = new Uint8Array(width1 * (height + 1)); + let i, j, j0; + const lineSize = width + 7 & ~7; + let data = new Uint8Array(lineSize * height), + pos = 0; + + for (const elem of imgData.data) { + let mask = 128; + + while (mask > 0) { + data[pos++] = elem & mask ? 0 : 255; + mask >>= 1; + } + } + + let count = 0; + pos = 0; + + if (data[pos] !== 0) { + points[0] = 1; + ++count; + } + + for (j = 1; j < width; j++) { + if (data[pos] !== data[pos + 1]) { + points[j] = data[pos] ? 2 : 1; + ++count; + } + + pos++; + } + + if (data[pos] !== 0) { + points[j] = 2; + ++count; + } + + for (i = 1; i < height; i++) { + pos = i * lineSize; + j0 = i * width1; + + if (data[pos - lineSize] !== data[pos]) { + points[j0] = data[pos] ? 1 : 8; + ++count; + } + + let sum = (data[pos] ? 4 : 0) + (data[pos - lineSize] ? 8 : 0); + + for (j = 1; j < width; j++) { + sum = (sum >> 2) + (data[pos + 1] ? 4 : 0) + (data[pos - lineSize + 1] ? 8 : 0); + + if (POINT_TYPES[sum]) { + points[j0 + j] = POINT_TYPES[sum]; + ++count; + } + + pos++; + } + + if (data[pos - lineSize] !== data[pos]) { + points[j0 + j] = data[pos] ? 2 : 4; + ++count; + } + + if (count > POINT_TO_PROCESS_LIMIT) { + return null; + } + } + + pos = lineSize * (height - 1); + j0 = i * width1; + + if (data[pos] !== 0) { + points[j0] = 8; + ++count; + } + + for (j = 1; j < width; j++) { + if (data[pos] !== data[pos + 1]) { + points[j0 + j] = data[pos] ? 4 : 8; + ++count; + } + + pos++; + } + + if (data[pos] !== 0) { + points[j0 + j] = 4; + ++count; + } + + if (count > POINT_TO_PROCESS_LIMIT) { + return null; + } + + const steps = new Int32Array([0, width1, -1, 0, -width1, 0, 0, 0, 1]); + const path = new Path2D(); + + for (i = 0; count && i <= height; i++) { + let p = i * width1; + const end = p + width; + + while (p < end && !points[p]) { + p++; + } + + if (p === end) { + continue; + } + + path.moveTo(p % width1, i); + const p0 = p; + let type = points[p]; + + do { + const step = steps[type]; + + do { + p += step; + } while (!points[p]); + + const pp = points[p]; + + if (pp !== 5 && pp !== 10) { + type = pp; + points[p] = 0; + } else { + type = pp & 0x33 * type >> 4; + points[p] &= type >> 2 | type << 2; + } + + path.lineTo(p % width1, p / width1 | 0); + + if (!points[p]) { + --count; + } + } while (p0 !== p); + + --i; + } + + data = null; + points = null; + + const drawOutline = function (c) { + c.save(); + c.scale(1 / width, -1 / height); + c.translate(0, -height); + c.fill(path); + c.beginPath(); + c.restore(); + }; + + return drawOutline; +} + +class CanvasExtraState { + constructor(width, height) { + this.alphaIsShape = false; + this.fontSize = 0; + this.fontSizeScale = 1; + this.textMatrix = _util.IDENTITY_MATRIX; + this.textMatrixScale = 1; + this.fontMatrix = _util.FONT_IDENTITY_MATRIX; + this.leading = 0; + this.x = 0; + this.y = 0; + this.lineX = 0; + this.lineY = 0; + this.charSpacing = 0; + this.wordSpacing = 0; + this.textHScale = 1; + this.textRenderingMode = _util.TextRenderingMode.FILL; + this.textRise = 0; + this.fillColor = "#000000"; + this.strokeColor = "#000000"; + this.patternFill = false; + this.fillAlpha = 1; + this.strokeAlpha = 1; + this.lineWidth = 1; + this.activeSMask = null; + this.transferMaps = null; + this.startNewPathAndClipBox([0, 0, width, height]); + } + + clone() { + const clone = Object.create(this); + clone.clipBox = this.clipBox.slice(); + return clone; + } + + setCurrentPoint(x, y) { + this.x = x; + this.y = y; + } + + updatePathMinMax(transform, x, y) { + [x, y] = _util.Util.applyTransform([x, y], transform); + this.minX = Math.min(this.minX, x); + this.minY = Math.min(this.minY, y); + this.maxX = Math.max(this.maxX, x); + this.maxY = Math.max(this.maxY, y); + } + + updateRectMinMax(transform, rect) { + const p1 = _util.Util.applyTransform(rect, transform); + + const p2 = _util.Util.applyTransform(rect.slice(2), transform); + + this.minX = Math.min(this.minX, p1[0], p2[0]); + this.minY = Math.min(this.minY, p1[1], p2[1]); + this.maxX = Math.max(this.maxX, p1[0], p2[0]); + this.maxY = Math.max(this.maxY, p1[1], p2[1]); + } + + updateScalingPathMinMax(transform, minMax) { + _util.Util.scaleMinMax(transform, minMax); + + this.minX = Math.min(this.minX, minMax[0]); + this.maxX = Math.max(this.maxX, minMax[1]); + this.minY = Math.min(this.minY, minMax[2]); + this.maxY = Math.max(this.maxY, minMax[3]); + } + + updateCurvePathMinMax(transform, x0, y0, x1, y1, x2, y2, x3, y3, minMax) { + const box = _util.Util.bezierBoundingBox(x0, y0, x1, y1, x2, y2, x3, y3); + + if (minMax) { + minMax[0] = Math.min(minMax[0], box[0], box[2]); + minMax[1] = Math.max(minMax[1], box[0], box[2]); + minMax[2] = Math.min(minMax[2], box[1], box[3]); + minMax[3] = Math.max(minMax[3], box[1], box[3]); + return; + } + + this.updateRectMinMax(transform, box); + } + + getPathBoundingBox(pathType = _pattern_helper.PathType.FILL, transform = null) { + const box = [this.minX, this.minY, this.maxX, this.maxY]; + + if (pathType === _pattern_helper.PathType.STROKE) { + if (!transform) { + (0, _util.unreachable)("Stroke bounding box must include transform."); + } + + const scale = _util.Util.singularValueDecompose2dScale(transform); + + const xStrokePad = scale[0] * this.lineWidth / 2; + const yStrokePad = scale[1] * this.lineWidth / 2; + box[0] -= xStrokePad; + box[1] -= yStrokePad; + box[2] += xStrokePad; + box[3] += yStrokePad; + } + + return box; + } + + updateClipFromPath() { + const intersect = _util.Util.intersect(this.clipBox, this.getPathBoundingBox()); + + this.startNewPathAndClipBox(intersect || [0, 0, 0, 0]); + } + + isEmptyClip() { + return this.minX === Infinity; + } + + startNewPathAndClipBox(box) { + this.clipBox = box; + this.minX = Infinity; + this.minY = Infinity; + this.maxX = 0; + this.maxY = 0; + } + + getClippedPathBoundingBox(pathType = _pattern_helper.PathType.FILL, transform = null) { + return _util.Util.intersect(this.clipBox, this.getPathBoundingBox(pathType, transform)); + } + +} + +function putBinaryImageData(ctx, imgData, transferMaps = null) { + if (typeof ImageData !== "undefined" && imgData instanceof ImageData) { + ctx.putImageData(imgData, 0, 0); + return; + } + + const height = imgData.height, + width = imgData.width; + const partialChunkHeight = height % FULL_CHUNK_HEIGHT; + const fullChunks = (height - partialChunkHeight) / FULL_CHUNK_HEIGHT; + const totalChunks = partialChunkHeight === 0 ? fullChunks : fullChunks + 1; + const chunkImgData = ctx.createImageData(width, FULL_CHUNK_HEIGHT); + let srcPos = 0, + destPos; + const src = imgData.data; + const dest = chunkImgData.data; + let i, j, thisChunkHeight, elemsInThisChunk; + let transferMapRed, transferMapGreen, transferMapBlue, transferMapGray; + + if (transferMaps) { + switch (transferMaps.length) { + case 1: + transferMapRed = transferMaps[0]; + transferMapGreen = transferMaps[0]; + transferMapBlue = transferMaps[0]; + transferMapGray = transferMaps[0]; + break; + + case 4: + transferMapRed = transferMaps[0]; + transferMapGreen = transferMaps[1]; + transferMapBlue = transferMaps[2]; + transferMapGray = transferMaps[3]; + break; + } + } + + if (imgData.kind === _util.ImageKind.GRAYSCALE_1BPP) { + const srcLength = src.byteLength; + const dest32 = new Uint32Array(dest.buffer, 0, dest.byteLength >> 2); + const dest32DataLength = dest32.length; + const fullSrcDiff = width + 7 >> 3; + let white = 0xffffffff; + let black = _util.FeatureTest.isLittleEndian ? 0xff000000 : 0x000000ff; + + if (transferMapGray) { + if (transferMapGray[0] === 0xff && transferMapGray[0xff] === 0) { + [white, black] = [black, white]; + } + } + + for (i = 0; i < totalChunks; i++) { + thisChunkHeight = i < fullChunks ? FULL_CHUNK_HEIGHT : partialChunkHeight; + destPos = 0; + + for (j = 0; j < thisChunkHeight; j++) { + const srcDiff = srcLength - srcPos; + let k = 0; + const kEnd = srcDiff > fullSrcDiff ? width : srcDiff * 8 - 7; + const kEndUnrolled = kEnd & ~7; + let mask = 0; + let srcByte = 0; + + for (; k < kEndUnrolled; k += 8) { + srcByte = src[srcPos++]; + dest32[destPos++] = srcByte & 128 ? white : black; + dest32[destPos++] = srcByte & 64 ? white : black; + dest32[destPos++] = srcByte & 32 ? white : black; + dest32[destPos++] = srcByte & 16 ? white : black; + dest32[destPos++] = srcByte & 8 ? white : black; + dest32[destPos++] = srcByte & 4 ? white : black; + dest32[destPos++] = srcByte & 2 ? white : black; + dest32[destPos++] = srcByte & 1 ? white : black; + } + + for (; k < kEnd; k++) { + if (mask === 0) { + srcByte = src[srcPos++]; + mask = 128; + } + + dest32[destPos++] = srcByte & mask ? white : black; + mask >>= 1; + } + } + + while (destPos < dest32DataLength) { + dest32[destPos++] = 0; + } + + ctx.putImageData(chunkImgData, 0, i * FULL_CHUNK_HEIGHT); + } + } else if (imgData.kind === _util.ImageKind.RGBA_32BPP) { + const hasTransferMaps = !!(transferMapRed || transferMapGreen || transferMapBlue); + j = 0; + elemsInThisChunk = width * FULL_CHUNK_HEIGHT * 4; + + for (i = 0; i < fullChunks; i++) { + dest.set(src.subarray(srcPos, srcPos + elemsInThisChunk)); + srcPos += elemsInThisChunk; + + if (hasTransferMaps) { + for (let k = 0; k < elemsInThisChunk; k += 4) { + if (transferMapRed) { + dest[k + 0] = transferMapRed[dest[k + 0]]; + } + + if (transferMapGreen) { + dest[k + 1] = transferMapGreen[dest[k + 1]]; + } + + if (transferMapBlue) { + dest[k + 2] = transferMapBlue[dest[k + 2]]; + } + } + } + + ctx.putImageData(chunkImgData, 0, j); + j += FULL_CHUNK_HEIGHT; + } + + if (i < totalChunks) { + elemsInThisChunk = width * partialChunkHeight * 4; + dest.set(src.subarray(srcPos, srcPos + elemsInThisChunk)); + + if (hasTransferMaps) { + for (let k = 0; k < elemsInThisChunk; k += 4) { + if (transferMapRed) { + dest[k + 0] = transferMapRed[dest[k + 0]]; + } + + if (transferMapGreen) { + dest[k + 1] = transferMapGreen[dest[k + 1]]; + } + + if (transferMapBlue) { + dest[k + 2] = transferMapBlue[dest[k + 2]]; + } + } + } + + ctx.putImageData(chunkImgData, 0, j); + } + } else if (imgData.kind === _util.ImageKind.RGB_24BPP) { + const hasTransferMaps = !!(transferMapRed || transferMapGreen || transferMapBlue); + thisChunkHeight = FULL_CHUNK_HEIGHT; + elemsInThisChunk = width * thisChunkHeight; + + for (i = 0; i < totalChunks; i++) { + if (i >= fullChunks) { + thisChunkHeight = partialChunkHeight; + elemsInThisChunk = width * thisChunkHeight; + } + + destPos = 0; + + for (j = elemsInThisChunk; j--;) { + dest[destPos++] = src[srcPos++]; + dest[destPos++] = src[srcPos++]; + dest[destPos++] = src[srcPos++]; + dest[destPos++] = 255; + } + + if (hasTransferMaps) { + for (let k = 0; k < destPos; k += 4) { + if (transferMapRed) { + dest[k + 0] = transferMapRed[dest[k + 0]]; + } + + if (transferMapGreen) { + dest[k + 1] = transferMapGreen[dest[k + 1]]; + } + + if (transferMapBlue) { + dest[k + 2] = transferMapBlue[dest[k + 2]]; + } + } + } + + ctx.putImageData(chunkImgData, 0, i * FULL_CHUNK_HEIGHT); + } + } else { + throw new Error(`bad image kind: ${imgData.kind}`); + } +} + +function putBinaryImageMask(ctx, imgData) { + if (imgData.bitmap) { + ctx.drawImage(imgData.bitmap, 0, 0); + return; + } + + const height = imgData.height, + width = imgData.width; + const partialChunkHeight = height % FULL_CHUNK_HEIGHT; + const fullChunks = (height - partialChunkHeight) / FULL_CHUNK_HEIGHT; + const totalChunks = partialChunkHeight === 0 ? fullChunks : fullChunks + 1; + const chunkImgData = ctx.createImageData(width, FULL_CHUNK_HEIGHT); + let srcPos = 0; + const src = imgData.data; + const dest = chunkImgData.data; + + for (let i = 0; i < totalChunks; i++) { + const thisChunkHeight = i < fullChunks ? FULL_CHUNK_HEIGHT : partialChunkHeight; + ({ + srcPos + } = (0, _image_utils.applyMaskImageData)({ + src, + srcPos, + dest, + width, + height: thisChunkHeight + })); + ctx.putImageData(chunkImgData, 0, i * FULL_CHUNK_HEIGHT); + } +} + +function copyCtxState(sourceCtx, destCtx) { + const properties = ["strokeStyle", "fillStyle", "fillRule", "globalAlpha", "lineWidth", "lineCap", "lineJoin", "miterLimit", "globalCompositeOperation", "font"]; + + for (let i = 0, ii = properties.length; i < ii; i++) { + const property = properties[i]; + + if (sourceCtx[property] !== undefined) { + destCtx[property] = sourceCtx[property]; + } + } + + if (sourceCtx.setLineDash !== undefined) { + destCtx.setLineDash(sourceCtx.getLineDash()); + destCtx.lineDashOffset = sourceCtx.lineDashOffset; + } +} + +function resetCtxToDefault(ctx, foregroundColor) { + ctx.strokeStyle = ctx.fillStyle = foregroundColor || "#000000"; + ctx.fillRule = "nonzero"; + ctx.globalAlpha = 1; + ctx.lineWidth = 1; + ctx.lineCap = "butt"; + ctx.lineJoin = "miter"; + ctx.miterLimit = 10; + ctx.globalCompositeOperation = "source-over"; + ctx.font = "10px sans-serif"; + + if (ctx.setLineDash !== undefined) { + ctx.setLineDash([]); + ctx.lineDashOffset = 0; + } +} + +function composeSMaskBackdrop(bytes, r0, g0, b0) { + const length = bytes.length; + + for (let i = 3; i < length; i += 4) { + const alpha = bytes[i]; + + if (alpha === 0) { + bytes[i - 3] = r0; + bytes[i - 2] = g0; + bytes[i - 1] = b0; + } else if (alpha < 255) { + const alpha_ = 255 - alpha; + bytes[i - 3] = bytes[i - 3] * alpha + r0 * alpha_ >> 8; + bytes[i - 2] = bytes[i - 2] * alpha + g0 * alpha_ >> 8; + bytes[i - 1] = bytes[i - 1] * alpha + b0 * alpha_ >> 8; + } + } +} + +function composeSMaskAlpha(maskData, layerData, transferMap) { + const length = maskData.length; + const scale = 1 / 255; + + for (let i = 3; i < length; i += 4) { + const alpha = transferMap ? transferMap[maskData[i]] : maskData[i]; + layerData[i] = layerData[i] * alpha * scale | 0; + } +} + +function composeSMaskLuminosity(maskData, layerData, transferMap) { + const length = maskData.length; + + for (let i = 3; i < length; i += 4) { + const y = maskData[i - 3] * 77 + maskData[i - 2] * 152 + maskData[i - 1] * 28; + layerData[i] = transferMap ? layerData[i] * transferMap[y >> 8] >> 8 : layerData[i] * y >> 16; + } +} + +function genericComposeSMask(maskCtx, layerCtx, width, height, subtype, backdrop, transferMap, layerOffsetX, layerOffsetY, maskOffsetX, maskOffsetY) { + const hasBackdrop = !!backdrop; + const r0 = hasBackdrop ? backdrop[0] : 0; + const g0 = hasBackdrop ? backdrop[1] : 0; + const b0 = hasBackdrop ? backdrop[2] : 0; + let composeFn; + + if (subtype === "Luminosity") { + composeFn = composeSMaskLuminosity; + } else { + composeFn = composeSMaskAlpha; + } + + const PIXELS_TO_PROCESS = 1048576; + const chunkSize = Math.min(height, Math.ceil(PIXELS_TO_PROCESS / width)); + + for (let row = 0; row < height; row += chunkSize) { + const chunkHeight = Math.min(chunkSize, height - row); + const maskData = maskCtx.getImageData(layerOffsetX - maskOffsetX, row + (layerOffsetY - maskOffsetY), width, chunkHeight); + const layerData = layerCtx.getImageData(layerOffsetX, row + layerOffsetY, width, chunkHeight); + + if (hasBackdrop) { + composeSMaskBackdrop(maskData.data, r0, g0, b0); + } + + composeFn(maskData.data, layerData.data, transferMap); + layerCtx.putImageData(layerData, layerOffsetX, row + layerOffsetY); + } +} + +function composeSMask(ctx, smask, layerCtx, layerBox) { + const layerOffsetX = layerBox[0]; + const layerOffsetY = layerBox[1]; + const layerWidth = layerBox[2] - layerOffsetX; + const layerHeight = layerBox[3] - layerOffsetY; + + if (layerWidth === 0 || layerHeight === 0) { + return; + } + + genericComposeSMask(smask.context, layerCtx, layerWidth, layerHeight, smask.subtype, smask.backdrop, smask.transferMap, layerOffsetX, layerOffsetY, smask.offsetX, smask.offsetY); + ctx.save(); + ctx.globalAlpha = 1; + ctx.globalCompositeOperation = "source-over"; + ctx.setTransform(1, 0, 0, 1, 0, 0); + ctx.drawImage(layerCtx.canvas, 0, 0); + ctx.restore(); +} + +function getImageSmoothingEnabled(transform, interpolate) { + const scale = _util.Util.singularValueDecompose2dScale(transform); + + scale[0] = Math.fround(scale[0]); + scale[1] = Math.fround(scale[1]); + const actualScale = Math.fround((globalThis.devicePixelRatio || 1) * _display_utils.PixelsPerInch.PDF_TO_CSS_UNITS); + + if (interpolate !== undefined) { + return interpolate; + } else if (scale[0] <= actualScale || scale[1] <= actualScale) { + return true; + } + + return false; +} + +const LINE_CAP_STYLES = ["butt", "round", "square"]; +const LINE_JOIN_STYLES = ["miter", "round", "bevel"]; +const NORMAL_CLIP = {}; +const EO_CLIP = {}; + +class CanvasGraphics { + constructor(canvasCtx, commonObjs, objs, canvasFactory, imageLayer, optionalContentConfig, annotationCanvasMap, pageColors) { + this.ctx = canvasCtx; + this.current = new CanvasExtraState(this.ctx.canvas.width, this.ctx.canvas.height); + this.stateStack = []; + this.pendingClip = null; + this.pendingEOFill = false; + this.res = null; + this.xobjs = null; + this.commonObjs = commonObjs; + this.objs = objs; + this.canvasFactory = canvasFactory; + this.imageLayer = imageLayer; + this.groupStack = []; + this.processingType3 = null; + this.baseTransform = null; + this.baseTransformStack = []; + this.groupLevel = 0; + this.smaskStack = []; + this.smaskCounter = 0; + this.tempSMask = null; + this.suspendedCtx = null; + this.contentVisible = true; + this.markedContentStack = []; + this.optionalContentConfig = optionalContentConfig; + this.cachedCanvases = new CachedCanvases(this.canvasFactory); + this.cachedPatterns = new Map(); + this.annotationCanvasMap = annotationCanvasMap; + this.viewportScale = 1; + this.outputScaleX = 1; + this.outputScaleY = 1; + this.backgroundColor = pageColors?.background || null; + this.foregroundColor = pageColors?.foreground || null; + this._cachedScaleForStroking = null; + this._cachedGetSinglePixelWidth = null; + this._cachedBitmapsMap = new Map(); + } + + getObject(data, fallback = null) { + if (typeof data === "string") { + return data.startsWith("g_") ? this.commonObjs.get(data) : this.objs.get(data); + } + + return fallback; + } + + beginDrawing({ + transform, + viewport, + transparency = false, + background = null + }) { + const width = this.ctx.canvas.width; + const height = this.ctx.canvas.height; + const defaultBackgroundColor = background || "#ffffff"; + this.ctx.save(); + + if (this.foregroundColor && this.backgroundColor) { + this.ctx.fillStyle = this.foregroundColor; + const fg = this.foregroundColor = this.ctx.fillStyle; + this.ctx.fillStyle = this.backgroundColor; + const bg = this.backgroundColor = this.ctx.fillStyle; + let isValidDefaultBg = true; + let defaultBg = defaultBackgroundColor; + this.ctx.fillStyle = defaultBackgroundColor; + defaultBg = this.ctx.fillStyle; + isValidDefaultBg = typeof defaultBg === "string" && /^#[0-9A-Fa-f]{6}$/.test(defaultBg); + + if (fg === "#000000" && bg === "#ffffff" || fg === bg || !isValidDefaultBg) { + this.foregroundColor = this.backgroundColor = null; + } else { + const [rB, gB, bB] = (0, _display_utils.getRGB)(defaultBg); + + const newComp = x => { + x /= 255; + return x <= 0.03928 ? x / 12.92 : ((x + 0.055) / 1.055) ** 2.4; + }; + + const lumB = Math.round(0.2126 * newComp(rB) + 0.7152 * newComp(gB) + 0.0722 * newComp(bB)); + + this.selectColor = (r, g, b) => { + const lumC = 0.2126 * newComp(r) + 0.7152 * newComp(g) + 0.0722 * newComp(b); + return Math.round(lumC) === lumB ? bg : fg; + }; + } + } + + this.ctx.fillStyle = this.backgroundColor || defaultBackgroundColor; + this.ctx.fillRect(0, 0, width, height); + this.ctx.restore(); + + if (transparency) { + const transparentCanvas = this.cachedCanvases.getCanvas("transparent", width, height); + this.compositeCtx = this.ctx; + this.transparentCanvas = transparentCanvas.canvas; + this.ctx = transparentCanvas.context; + this.ctx.save(); + this.ctx.transform(...(0, _display_utils.getCurrentTransform)(this.compositeCtx)); + } + + this.ctx.save(); + resetCtxToDefault(this.ctx, this.foregroundColor); + + if (transform) { + this.ctx.transform(...transform); + this.outputScaleX = transform[0]; + this.outputScaleY = transform[0]; + } + + this.ctx.transform(...viewport.transform); + this.viewportScale = viewport.scale; + this.baseTransform = (0, _display_utils.getCurrentTransform)(this.ctx); + + if (this.imageLayer) { + (0, _display_utils.deprecated)("The `imageLayer` functionality will be removed in the future."); + this.imageLayer.beginLayout(); + } + } + + executeOperatorList(operatorList, executionStartIdx, continueCallback, stepper) { + const argsArray = operatorList.argsArray; + const fnArray = operatorList.fnArray; + let i = executionStartIdx || 0; + const argsArrayLen = argsArray.length; + + if (argsArrayLen === i) { + return i; + } + + const chunkOperations = argsArrayLen - i > EXECUTION_STEPS && typeof continueCallback === "function"; + const endTime = chunkOperations ? Date.now() + EXECUTION_TIME : 0; + let steps = 0; + const commonObjs = this.commonObjs; + const objs = this.objs; + let fnId; + + while (true) { + if (stepper !== undefined && i === stepper.nextBreakPoint) { + stepper.breakIt(i, continueCallback); + return i; + } + + fnId = fnArray[i]; + + if (fnId !== _util.OPS.dependency) { + this[fnId].apply(this, argsArray[i]); + } else { + for (const depObjId of argsArray[i]) { + const objsPool = depObjId.startsWith("g_") ? commonObjs : objs; + + if (!objsPool.has(depObjId)) { + objsPool.get(depObjId, continueCallback); + return i; + } + } + } + + i++; + + if (i === argsArrayLen) { + return i; + } + + if (chunkOperations && ++steps > EXECUTION_STEPS) { + if (Date.now() > endTime) { + continueCallback(); + return i; + } + + steps = 0; + } + } + } + + #restoreInitialState() { + while (this.stateStack.length || this.inSMaskMode) { + this.restore(); + } + + this.ctx.restore(); + + if (this.transparentCanvas) { + this.ctx = this.compositeCtx; + this.ctx.save(); + this.ctx.setTransform(1, 0, 0, 1, 0, 0); + this.ctx.drawImage(this.transparentCanvas, 0, 0); + this.ctx.restore(); + this.transparentCanvas = null; + } + } + + endDrawing() { + this.#restoreInitialState(); + this.cachedCanvases.clear(); + this.cachedPatterns.clear(); + + for (const cache of this._cachedBitmapsMap.values()) { + for (const canvas of cache.values()) { + if (typeof HTMLCanvasElement !== "undefined" && canvas instanceof HTMLCanvasElement) { + canvas.width = canvas.height = 0; + } + } + + cache.clear(); + } + + this._cachedBitmapsMap.clear(); + + if (this.imageLayer) { + this.imageLayer.endLayout(); + } + } + + _scaleImage(img, inverseTransform) { + const width = img.width; + const height = img.height; + let widthScale = Math.max(Math.hypot(inverseTransform[0], inverseTransform[1]), 1); + let heightScale = Math.max(Math.hypot(inverseTransform[2], inverseTransform[3]), 1); + let paintWidth = width, + paintHeight = height; + let tmpCanvasId = "prescale1"; + let tmpCanvas, tmpCtx; + + while (widthScale > 2 && paintWidth > 1 || heightScale > 2 && paintHeight > 1) { + let newWidth = paintWidth, + newHeight = paintHeight; + + if (widthScale > 2 && paintWidth > 1) { + newWidth = Math.ceil(paintWidth / 2); + widthScale /= paintWidth / newWidth; + } + + if (heightScale > 2 && paintHeight > 1) { + newHeight = Math.ceil(paintHeight / 2); + heightScale /= paintHeight / newHeight; + } + + tmpCanvas = this.cachedCanvases.getCanvas(tmpCanvasId, newWidth, newHeight); + tmpCtx = tmpCanvas.context; + tmpCtx.clearRect(0, 0, newWidth, newHeight); + tmpCtx.drawImage(img, 0, 0, paintWidth, paintHeight, 0, 0, newWidth, newHeight); + img = tmpCanvas.canvas; + paintWidth = newWidth; + paintHeight = newHeight; + tmpCanvasId = tmpCanvasId === "prescale1" ? "prescale2" : "prescale1"; + } + + return { + img, + paintWidth, + paintHeight + }; + } + + _createMaskCanvas(img) { + const ctx = this.ctx; + const { + width, + height + } = img; + const fillColor = this.current.fillColor; + const isPatternFill = this.current.patternFill; + const currentTransform = (0, _display_utils.getCurrentTransform)(ctx); + let cache, cacheKey, scaled, maskCanvas; + + if ((img.bitmap || img.data) && img.count > 1) { + const mainKey = img.bitmap || img.data.buffer; + const withoutTranslation = currentTransform.slice(0, 4); + cacheKey = JSON.stringify(isPatternFill ? withoutTranslation : [withoutTranslation, fillColor]); + cache = this._cachedBitmapsMap.get(mainKey); + + if (!cache) { + cache = new Map(); + + this._cachedBitmapsMap.set(mainKey, cache); + } + + const cachedImage = cache.get(cacheKey); + + if (cachedImage && !isPatternFill) { + const offsetX = Math.round(Math.min(currentTransform[0], currentTransform[2]) + currentTransform[4]); + const offsetY = Math.round(Math.min(currentTransform[1], currentTransform[3]) + currentTransform[5]); + return { + canvas: cachedImage, + offsetX, + offsetY + }; + } + + scaled = cachedImage; + } + + if (!scaled) { + maskCanvas = this.cachedCanvases.getCanvas("maskCanvas", width, height); + putBinaryImageMask(maskCanvas.context, img); + } + + let maskToCanvas = _util.Util.transform(currentTransform, [1 / width, 0, 0, -1 / height, 0, 0]); + + maskToCanvas = _util.Util.transform(maskToCanvas, [1, 0, 0, 1, 0, -height]); + + const cord1 = _util.Util.applyTransform([0, 0], maskToCanvas); + + const cord2 = _util.Util.applyTransform([width, height], maskToCanvas); + + const rect = _util.Util.normalizeRect([cord1[0], cord1[1], cord2[0], cord2[1]]); + + const drawnWidth = Math.round(rect[2] - rect[0]) || 1; + const drawnHeight = Math.round(rect[3] - rect[1]) || 1; + const fillCanvas = this.cachedCanvases.getCanvas("fillCanvas", drawnWidth, drawnHeight); + const fillCtx = fillCanvas.context; + const offsetX = Math.min(cord1[0], cord2[0]); + const offsetY = Math.min(cord1[1], cord2[1]); + fillCtx.translate(-offsetX, -offsetY); + fillCtx.transform(...maskToCanvas); + + if (!scaled) { + scaled = this._scaleImage(maskCanvas.canvas, (0, _display_utils.getCurrentTransformInverse)(fillCtx)); + scaled = scaled.img; + + if (cache && isPatternFill) { + cache.set(cacheKey, scaled); + } + } + + fillCtx.imageSmoothingEnabled = getImageSmoothingEnabled((0, _display_utils.getCurrentTransform)(fillCtx), img.interpolate); + drawImageAtIntegerCoords(fillCtx, scaled, 0, 0, scaled.width, scaled.height, 0, 0, width, height); + fillCtx.globalCompositeOperation = "source-in"; + + const inverse = _util.Util.transform((0, _display_utils.getCurrentTransformInverse)(fillCtx), [1, 0, 0, 1, -offsetX, -offsetY]); + + fillCtx.fillStyle = isPatternFill ? fillColor.getPattern(ctx, this, inverse, _pattern_helper.PathType.FILL) : fillColor; + fillCtx.fillRect(0, 0, width, height); + + if (cache && !isPatternFill) { + this.cachedCanvases.delete("fillCanvas"); + cache.set(cacheKey, fillCanvas.canvas); + } + + return { + canvas: fillCanvas.canvas, + offsetX: Math.round(offsetX), + offsetY: Math.round(offsetY) + }; + } + + setLineWidth(width) { + if (width !== this.current.lineWidth) { + this._cachedScaleForStroking = null; + } + + this.current.lineWidth = width; + this.ctx.lineWidth = width; + } + + setLineCap(style) { + this.ctx.lineCap = LINE_CAP_STYLES[style]; + } + + setLineJoin(style) { + this.ctx.lineJoin = LINE_JOIN_STYLES[style]; + } + + setMiterLimit(limit) { + this.ctx.miterLimit = limit; + } + + setDash(dashArray, dashPhase) { + const ctx = this.ctx; + + if (ctx.setLineDash !== undefined) { + ctx.setLineDash(dashArray); + ctx.lineDashOffset = dashPhase; + } + } + + setRenderingIntent(intent) {} + + setFlatness(flatness) {} + + setGState(states) { + for (let i = 0, ii = states.length; i < ii; i++) { + const state = states[i]; + const key = state[0]; + const value = state[1]; + + switch (key) { + case "LW": + this.setLineWidth(value); + break; + + case "LC": + this.setLineCap(value); + break; + + case "LJ": + this.setLineJoin(value); + break; + + case "ML": + this.setMiterLimit(value); + break; + + case "D": + this.setDash(value[0], value[1]); + break; + + case "RI": + this.setRenderingIntent(value); + break; + + case "FL": + this.setFlatness(value); + break; + + case "Font": + this.setFont(value[0], value[1]); + break; + + case "CA": + this.current.strokeAlpha = state[1]; + break; + + case "ca": + this.current.fillAlpha = state[1]; + this.ctx.globalAlpha = state[1]; + break; + + case "BM": + this.ctx.globalCompositeOperation = value; + break; + + case "SMask": + this.current.activeSMask = value ? this.tempSMask : null; + this.tempSMask = null; + this.checkSMaskState(); + break; + + case "TR": + this.current.transferMaps = value; + } + } + } + + get inSMaskMode() { + return !!this.suspendedCtx; + } + + checkSMaskState() { + const inSMaskMode = this.inSMaskMode; + + if (this.current.activeSMask && !inSMaskMode) { + this.beginSMaskMode(); + } else if (!this.current.activeSMask && inSMaskMode) { + this.endSMaskMode(); + } + } + + beginSMaskMode() { + if (this.inSMaskMode) { + throw new Error("beginSMaskMode called while already in smask mode"); + } + + const drawnWidth = this.ctx.canvas.width; + const drawnHeight = this.ctx.canvas.height; + const cacheId = "smaskGroupAt" + this.groupLevel; + const scratchCanvas = this.cachedCanvases.getCanvas(cacheId, drawnWidth, drawnHeight); + this.suspendedCtx = this.ctx; + this.ctx = scratchCanvas.context; + const ctx = this.ctx; + ctx.setTransform(...(0, _display_utils.getCurrentTransform)(this.suspendedCtx)); + copyCtxState(this.suspendedCtx, ctx); + mirrorContextOperations(ctx, this.suspendedCtx); + this.setGState([["BM", "source-over"], ["ca", 1], ["CA", 1]]); + } + + endSMaskMode() { + if (!this.inSMaskMode) { + throw new Error("endSMaskMode called while not in smask mode"); + } + + this.ctx._removeMirroring(); + + copyCtxState(this.ctx, this.suspendedCtx); + this.ctx = this.suspendedCtx; + this.suspendedCtx = null; + } + + compose(dirtyBox) { + if (!this.current.activeSMask) { + return; + } + + if (!dirtyBox) { + dirtyBox = [0, 0, this.ctx.canvas.width, this.ctx.canvas.height]; + } else { + dirtyBox[0] = Math.floor(dirtyBox[0]); + dirtyBox[1] = Math.floor(dirtyBox[1]); + dirtyBox[2] = Math.ceil(dirtyBox[2]); + dirtyBox[3] = Math.ceil(dirtyBox[3]); + } + + const smask = this.current.activeSMask; + const suspendedCtx = this.suspendedCtx; + composeSMask(suspendedCtx, smask, this.ctx, dirtyBox); + this.ctx.save(); + this.ctx.setTransform(1, 0, 0, 1, 0, 0); + this.ctx.clearRect(0, 0, this.ctx.canvas.width, this.ctx.canvas.height); + this.ctx.restore(); + } + + save() { + if (this.inSMaskMode) { + copyCtxState(this.ctx, this.suspendedCtx); + this.suspendedCtx.save(); + } else { + this.ctx.save(); + } + + const old = this.current; + this.stateStack.push(old); + this.current = old.clone(); + } + + restore() { + if (this.stateStack.length === 0 && this.inSMaskMode) { + this.endSMaskMode(); + } + + if (this.stateStack.length !== 0) { + this.current = this.stateStack.pop(); + + if (this.inSMaskMode) { + this.suspendedCtx.restore(); + copyCtxState(this.suspendedCtx, this.ctx); + } else { + this.ctx.restore(); + } + + this.checkSMaskState(); + this.pendingClip = null; + this._cachedScaleForStroking = null; + this._cachedGetSinglePixelWidth = null; + } + } + + transform(a, b, c, d, e, f) { + this.ctx.transform(a, b, c, d, e, f); + this._cachedScaleForStroking = null; + this._cachedGetSinglePixelWidth = null; + } + + constructPath(ops, args, minMax) { + const ctx = this.ctx; + const current = this.current; + let x = current.x, + y = current.y; + let startX, startY; + const currentTransform = (0, _display_utils.getCurrentTransform)(ctx); + const isScalingMatrix = currentTransform[0] === 0 && currentTransform[3] === 0 || currentTransform[1] === 0 && currentTransform[2] === 0; + const minMaxForBezier = isScalingMatrix ? minMax.slice(0) : null; + + for (let i = 0, j = 0, ii = ops.length; i < ii; i++) { + switch (ops[i] | 0) { + case _util.OPS.rectangle: + x = args[j++]; + y = args[j++]; + const width = args[j++]; + const height = args[j++]; + const xw = x + width; + const yh = y + height; + ctx.moveTo(x, y); + + if (width === 0 || height === 0) { + ctx.lineTo(xw, yh); + } else { + ctx.lineTo(xw, y); + ctx.lineTo(xw, yh); + ctx.lineTo(x, yh); + } + + if (!isScalingMatrix) { + current.updateRectMinMax(currentTransform, [x, y, xw, yh]); + } + + ctx.closePath(); + break; + + case _util.OPS.moveTo: + x = args[j++]; + y = args[j++]; + ctx.moveTo(x, y); + + if (!isScalingMatrix) { + current.updatePathMinMax(currentTransform, x, y); + } + + break; + + case _util.OPS.lineTo: + x = args[j++]; + y = args[j++]; + ctx.lineTo(x, y); + + if (!isScalingMatrix) { + current.updatePathMinMax(currentTransform, x, y); + } + + break; + + case _util.OPS.curveTo: + startX = x; + startY = y; + x = args[j + 4]; + y = args[j + 5]; + ctx.bezierCurveTo(args[j], args[j + 1], args[j + 2], args[j + 3], x, y); + current.updateCurvePathMinMax(currentTransform, startX, startY, args[j], args[j + 1], args[j + 2], args[j + 3], x, y, minMaxForBezier); + j += 6; + break; + + case _util.OPS.curveTo2: + startX = x; + startY = y; + ctx.bezierCurveTo(x, y, args[j], args[j + 1], args[j + 2], args[j + 3]); + current.updateCurvePathMinMax(currentTransform, startX, startY, x, y, args[j], args[j + 1], args[j + 2], args[j + 3], minMaxForBezier); + x = args[j + 2]; + y = args[j + 3]; + j += 4; + break; + + case _util.OPS.curveTo3: + startX = x; + startY = y; + x = args[j + 2]; + y = args[j + 3]; + ctx.bezierCurveTo(args[j], args[j + 1], x, y, x, y); + current.updateCurvePathMinMax(currentTransform, startX, startY, args[j], args[j + 1], x, y, x, y, minMaxForBezier); + j += 4; + break; + + case _util.OPS.closePath: + ctx.closePath(); + break; + } + } + + if (isScalingMatrix) { + current.updateScalingPathMinMax(currentTransform, minMaxForBezier); + } + + current.setCurrentPoint(x, y); + } + + closePath() { + this.ctx.closePath(); + } + + stroke(consumePath) { + consumePath = typeof consumePath !== "undefined" ? consumePath : true; + const ctx = this.ctx; + const strokeColor = this.current.strokeColor; + ctx.globalAlpha = this.current.strokeAlpha; + + if (this.contentVisible) { + if (typeof strokeColor === "object" && strokeColor?.getPattern) { + ctx.save(); + ctx.strokeStyle = strokeColor.getPattern(ctx, this, (0, _display_utils.getCurrentTransformInverse)(ctx), _pattern_helper.PathType.STROKE); + this.rescaleAndStroke(false); + ctx.restore(); + } else { + this.rescaleAndStroke(true); + } + } + + if (consumePath) { + this.consumePath(this.current.getClippedPathBoundingBox()); + } + + ctx.globalAlpha = this.current.fillAlpha; + } + + closeStroke() { + this.closePath(); + this.stroke(); + } + + fill(consumePath) { + consumePath = typeof consumePath !== "undefined" ? consumePath : true; + const ctx = this.ctx; + const fillColor = this.current.fillColor; + const isPatternFill = this.current.patternFill; + let needRestore = false; + + if (isPatternFill) { + ctx.save(); + ctx.fillStyle = fillColor.getPattern(ctx, this, (0, _display_utils.getCurrentTransformInverse)(ctx), _pattern_helper.PathType.FILL); + needRestore = true; + } + + const intersect = this.current.getClippedPathBoundingBox(); + + if (this.contentVisible && intersect !== null) { + if (this.pendingEOFill) { + ctx.fill("evenodd"); + this.pendingEOFill = false; + } else { + ctx.fill(); + } + } + + if (needRestore) { + ctx.restore(); + } + + if (consumePath) { + this.consumePath(intersect); + } + } + + eoFill() { + this.pendingEOFill = true; + this.fill(); + } + + fillStroke() { + this.fill(false); + this.stroke(false); + this.consumePath(); + } + + eoFillStroke() { + this.pendingEOFill = true; + this.fillStroke(); + } + + closeFillStroke() { + this.closePath(); + this.fillStroke(); + } + + closeEOFillStroke() { + this.pendingEOFill = true; + this.closePath(); + this.fillStroke(); + } + + endPath() { + this.consumePath(); + } + + clip() { + this.pendingClip = NORMAL_CLIP; + } + + eoClip() { + this.pendingClip = EO_CLIP; + } + + beginText() { + this.current.textMatrix = _util.IDENTITY_MATRIX; + this.current.textMatrixScale = 1; + this.current.x = this.current.lineX = 0; + this.current.y = this.current.lineY = 0; + } + + endText() { + const paths = this.pendingTextPaths; + const ctx = this.ctx; + + if (paths === undefined) { + ctx.beginPath(); + return; + } + + ctx.save(); + ctx.beginPath(); + + for (const path of paths) { + ctx.setTransform(...path.transform); + ctx.translate(path.x, path.y); + path.addToPath(ctx, path.fontSize); + } + + ctx.restore(); + ctx.clip(); + ctx.beginPath(); + delete this.pendingTextPaths; + } + + setCharSpacing(spacing) { + this.current.charSpacing = spacing; + } + + setWordSpacing(spacing) { + this.current.wordSpacing = spacing; + } + + setHScale(scale) { + this.current.textHScale = scale / 100; + } + + setLeading(leading) { + this.current.leading = -leading; + } + + setFont(fontRefName, size) { + const fontObj = this.commonObjs.get(fontRefName); + const current = this.current; + + if (!fontObj) { + throw new Error(`Can't find font for ${fontRefName}`); + } + + current.fontMatrix = fontObj.fontMatrix || _util.FONT_IDENTITY_MATRIX; + + if (current.fontMatrix[0] === 0 || current.fontMatrix[3] === 0) { + (0, _util.warn)("Invalid font matrix for font " + fontRefName); + } + + if (size < 0) { + size = -size; + current.fontDirection = -1; + } else { + current.fontDirection = 1; + } + + this.current.font = fontObj; + this.current.fontSize = size; + + if (fontObj.isType3Font) { + return; + } + + const name = fontObj.loadedName || "sans-serif"; + let bold = "normal"; + + if (fontObj.black) { + bold = "900"; + } else if (fontObj.bold) { + bold = "bold"; + } + + const italic = fontObj.italic ? "italic" : "normal"; + const typeface = `"${name}", ${fontObj.fallbackName}`; + let browserFontSize = size; + + if (size < MIN_FONT_SIZE) { + browserFontSize = MIN_FONT_SIZE; + } else if (size > MAX_FONT_SIZE) { + browserFontSize = MAX_FONT_SIZE; + } + + this.current.fontSizeScale = size / browserFontSize; + this.ctx.font = `${italic} ${bold} ${browserFontSize}px ${typeface}`; + } + + setTextRenderingMode(mode) { + this.current.textRenderingMode = mode; + } + + setTextRise(rise) { + this.current.textRise = rise; + } + + moveText(x, y) { + this.current.x = this.current.lineX += x; + this.current.y = this.current.lineY += y; + } + + setLeadingMoveText(x, y) { + this.setLeading(-y); + this.moveText(x, y); + } + + setTextMatrix(a, b, c, d, e, f) { + this.current.textMatrix = [a, b, c, d, e, f]; + this.current.textMatrixScale = Math.hypot(a, b); + this.current.x = this.current.lineX = 0; + this.current.y = this.current.lineY = 0; + } + + nextLine() { + this.moveText(0, this.current.leading); + } + + paintChar(character, x, y, patternTransform) { + const ctx = this.ctx; + const current = this.current; + const font = current.font; + const textRenderingMode = current.textRenderingMode; + const fontSize = current.fontSize / current.fontSizeScale; + const fillStrokeMode = textRenderingMode & _util.TextRenderingMode.FILL_STROKE_MASK; + const isAddToPathSet = !!(textRenderingMode & _util.TextRenderingMode.ADD_TO_PATH_FLAG); + const patternFill = current.patternFill && !font.missingFile; + let addToPath; + + if (font.disableFontFace || isAddToPathSet || patternFill) { + addToPath = font.getPathGenerator(this.commonObjs, character); + } + + if (font.disableFontFace || patternFill) { + ctx.save(); + ctx.translate(x, y); + ctx.beginPath(); + addToPath(ctx, fontSize); + + if (patternTransform) { + ctx.setTransform(...patternTransform); + } + + if (fillStrokeMode === _util.TextRenderingMode.FILL || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) { + ctx.fill(); + } + + if (fillStrokeMode === _util.TextRenderingMode.STROKE || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) { + ctx.stroke(); + } + + ctx.restore(); + } else { + if (fillStrokeMode === _util.TextRenderingMode.FILL || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) { + ctx.fillText(character, x, y); + } + + if (fillStrokeMode === _util.TextRenderingMode.STROKE || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) { + ctx.strokeText(character, x, y); + } + } + + if (isAddToPathSet) { + const paths = this.pendingTextPaths || (this.pendingTextPaths = []); + paths.push({ + transform: (0, _display_utils.getCurrentTransform)(ctx), + x, + y, + fontSize, + addToPath + }); + } + } + + get isFontSubpixelAAEnabled() { + const { + context: ctx + } = this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled", 10, 10); + ctx.scale(1.5, 1); + ctx.fillText("I", 0, 10); + const data = ctx.getImageData(0, 0, 10, 10).data; + let enabled = false; + + for (let i = 3; i < data.length; i += 4) { + if (data[i] > 0 && data[i] < 255) { + enabled = true; + break; + } + } + + return (0, _util.shadow)(this, "isFontSubpixelAAEnabled", enabled); + } + + showText(glyphs) { + const current = this.current; + const font = current.font; + + if (font.isType3Font) { + return this.showType3Text(glyphs); + } + + const fontSize = current.fontSize; + + if (fontSize === 0) { + return undefined; + } + + const ctx = this.ctx; + const fontSizeScale = current.fontSizeScale; + const charSpacing = current.charSpacing; + const wordSpacing = current.wordSpacing; + const fontDirection = current.fontDirection; + const textHScale = current.textHScale * fontDirection; + const glyphsLength = glyphs.length; + const vertical = font.vertical; + const spacingDir = vertical ? 1 : -1; + const defaultVMetrics = font.defaultVMetrics; + const widthAdvanceScale = fontSize * current.fontMatrix[0]; + const simpleFillText = current.textRenderingMode === _util.TextRenderingMode.FILL && !font.disableFontFace && !current.patternFill; + ctx.save(); + ctx.transform(...current.textMatrix); + ctx.translate(current.x, current.y + current.textRise); + + if (fontDirection > 0) { + ctx.scale(textHScale, -1); + } else { + ctx.scale(textHScale, 1); + } + + let patternTransform; + + if (current.patternFill) { + ctx.save(); + const pattern = current.fillColor.getPattern(ctx, this, (0, _display_utils.getCurrentTransformInverse)(ctx), _pattern_helper.PathType.FILL); + patternTransform = (0, _display_utils.getCurrentTransform)(ctx); + ctx.restore(); + ctx.fillStyle = pattern; + } + + let lineWidth = current.lineWidth; + const scale = current.textMatrixScale; + + if (scale === 0 || lineWidth === 0) { + const fillStrokeMode = current.textRenderingMode & _util.TextRenderingMode.FILL_STROKE_MASK; + + if (fillStrokeMode === _util.TextRenderingMode.STROKE || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) { + lineWidth = this.getSinglePixelWidth(); + } + } else { + lineWidth /= scale; + } + + if (fontSizeScale !== 1.0) { + ctx.scale(fontSizeScale, fontSizeScale); + lineWidth /= fontSizeScale; + } + + ctx.lineWidth = lineWidth; + let x = 0, + i; + + for (i = 0; i < glyphsLength; ++i) { + const glyph = glyphs[i]; + + if (typeof glyph === "number") { + x += spacingDir * glyph * fontSize / 1000; + continue; + } + + let restoreNeeded = false; + const spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing; + const character = glyph.fontChar; + const accent = glyph.accent; + let scaledX, scaledY; + let width = glyph.width; + + if (vertical) { + const vmetric = glyph.vmetric || defaultVMetrics; + const vx = -(glyph.vmetric ? vmetric[1] : width * 0.5) * widthAdvanceScale; + const vy = vmetric[2] * widthAdvanceScale; + width = vmetric ? -vmetric[0] : width; + scaledX = vx / fontSizeScale; + scaledY = (x + vy) / fontSizeScale; + } else { + scaledX = x / fontSizeScale; + scaledY = 0; + } + + if (font.remeasure && width > 0) { + const measuredWidth = ctx.measureText(character).width * 1000 / fontSize * fontSizeScale; + + if (width < measuredWidth && this.isFontSubpixelAAEnabled) { + const characterScaleX = width / measuredWidth; + restoreNeeded = true; + ctx.save(); + ctx.scale(characterScaleX, 1); + scaledX /= characterScaleX; + } else if (width !== measuredWidth) { + scaledX += (width - measuredWidth) / 2000 * fontSize / fontSizeScale; + } + } + + if (this.contentVisible && (glyph.isInFont || font.missingFile)) { + if (simpleFillText && !accent) { + ctx.fillText(character, scaledX, scaledY); + } else { + this.paintChar(character, scaledX, scaledY, patternTransform); + + if (accent) { + const scaledAccentX = scaledX + fontSize * accent.offset.x / fontSizeScale; + const scaledAccentY = scaledY - fontSize * accent.offset.y / fontSizeScale; + this.paintChar(accent.fontChar, scaledAccentX, scaledAccentY, patternTransform); + } + } + } + + let charWidth; + + if (vertical) { + charWidth = width * widthAdvanceScale - spacing * fontDirection; + } else { + charWidth = width * widthAdvanceScale + spacing * fontDirection; + } + + x += charWidth; + + if (restoreNeeded) { + ctx.restore(); + } + } + + if (vertical) { + current.y -= x; + } else { + current.x += x * textHScale; + } + + ctx.restore(); + this.compose(); + return undefined; + } + + showType3Text(glyphs) { + const ctx = this.ctx; + const current = this.current; + const font = current.font; + const fontSize = current.fontSize; + const fontDirection = current.fontDirection; + const spacingDir = font.vertical ? 1 : -1; + const charSpacing = current.charSpacing; + const wordSpacing = current.wordSpacing; + const textHScale = current.textHScale * fontDirection; + const fontMatrix = current.fontMatrix || _util.FONT_IDENTITY_MATRIX; + const glyphsLength = glyphs.length; + const isTextInvisible = current.textRenderingMode === _util.TextRenderingMode.INVISIBLE; + let i, glyph, width, spacingLength; + + if (isTextInvisible || fontSize === 0) { + return; + } + + this._cachedScaleForStroking = null; + this._cachedGetSinglePixelWidth = null; + ctx.save(); + ctx.transform(...current.textMatrix); + ctx.translate(current.x, current.y); + ctx.scale(textHScale, fontDirection); + + for (i = 0; i < glyphsLength; ++i) { + glyph = glyphs[i]; + + if (typeof glyph === "number") { + spacingLength = spacingDir * glyph * fontSize / 1000; + this.ctx.translate(spacingLength, 0); + current.x += spacingLength * textHScale; + continue; + } + + const spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing; + const operatorList = font.charProcOperatorList[glyph.operatorListId]; + + if (!operatorList) { + (0, _util.warn)(`Type3 character "${glyph.operatorListId}" is not available.`); + continue; + } + + if (this.contentVisible) { + this.processingType3 = glyph; + this.save(); + ctx.scale(fontSize, fontSize); + ctx.transform(...fontMatrix); + this.executeOperatorList(operatorList); + this.restore(); + } + + const transformed = _util.Util.applyTransform([glyph.width, 0], fontMatrix); + + width = transformed[0] * fontSize + spacing; + ctx.translate(width, 0); + current.x += width * textHScale; + } + + ctx.restore(); + this.processingType3 = null; + } + + setCharWidth(xWidth, yWidth) {} + + setCharWidthAndBounds(xWidth, yWidth, llx, lly, urx, ury) { + this.ctx.rect(llx, lly, urx - llx, ury - lly); + this.ctx.clip(); + this.endPath(); + } + + getColorN_Pattern(IR) { + let pattern; + + if (IR[0] === "TilingPattern") { + const color = IR[1]; + const baseTransform = this.baseTransform || (0, _display_utils.getCurrentTransform)(this.ctx); + const canvasGraphicsFactory = { + createCanvasGraphics: ctx => { + return new CanvasGraphics(ctx, this.commonObjs, this.objs, this.canvasFactory); + } + }; + pattern = new _pattern_helper.TilingPattern(IR, color, this.ctx, canvasGraphicsFactory, baseTransform); + } else { + pattern = this._getPattern(IR[1], IR[2]); + } + + return pattern; + } + + setStrokeColorN() { + this.current.strokeColor = this.getColorN_Pattern(arguments); + } + + setFillColorN() { + this.current.fillColor = this.getColorN_Pattern(arguments); + this.current.patternFill = true; + } + + setStrokeRGBColor(r, g, b) { + const color = this.selectColor?.(r, g, b) || _util.Util.makeHexColor(r, g, b); + + this.ctx.strokeStyle = color; + this.current.strokeColor = color; + } + + setFillRGBColor(r, g, b) { + const color = this.selectColor?.(r, g, b) || _util.Util.makeHexColor(r, g, b); + + this.ctx.fillStyle = color; + this.current.fillColor = color; + this.current.patternFill = false; + } + + _getPattern(objId, matrix = null) { + let pattern; + + if (this.cachedPatterns.has(objId)) { + pattern = this.cachedPatterns.get(objId); + } else { + pattern = (0, _pattern_helper.getShadingPattern)(this.objs.get(objId)); + this.cachedPatterns.set(objId, pattern); + } + + if (matrix) { + pattern.matrix = matrix; + } + + return pattern; + } + + shadingFill(objId) { + if (!this.contentVisible) { + return; + } + + const ctx = this.ctx; + this.save(); + + const pattern = this._getPattern(objId); + + ctx.fillStyle = pattern.getPattern(ctx, this, (0, _display_utils.getCurrentTransformInverse)(ctx), _pattern_helper.PathType.SHADING); + const inv = (0, _display_utils.getCurrentTransformInverse)(ctx); + + if (inv) { + const canvas = ctx.canvas; + const width = canvas.width; + const height = canvas.height; + + const bl = _util.Util.applyTransform([0, 0], inv); + + const br = _util.Util.applyTransform([0, height], inv); + + const ul = _util.Util.applyTransform([width, 0], inv); + + const ur = _util.Util.applyTransform([width, height], inv); + + const x0 = Math.min(bl[0], br[0], ul[0], ur[0]); + const y0 = Math.min(bl[1], br[1], ul[1], ur[1]); + const x1 = Math.max(bl[0], br[0], ul[0], ur[0]); + const y1 = Math.max(bl[1], br[1], ul[1], ur[1]); + this.ctx.fillRect(x0, y0, x1 - x0, y1 - y0); + } else { + this.ctx.fillRect(-1e10, -1e10, 2e10, 2e10); + } + + this.compose(this.current.getClippedPathBoundingBox()); + this.restore(); + } + + beginInlineImage() { + (0, _util.unreachable)("Should not call beginInlineImage"); + } + + beginImageData() { + (0, _util.unreachable)("Should not call beginImageData"); + } + + paintFormXObjectBegin(matrix, bbox) { + if (!this.contentVisible) { + return; + } + + this.save(); + this.baseTransformStack.push(this.baseTransform); + + if (Array.isArray(matrix) && matrix.length === 6) { + this.transform(...matrix); + } + + this.baseTransform = (0, _display_utils.getCurrentTransform)(this.ctx); + + if (bbox) { + const width = bbox[2] - bbox[0]; + const height = bbox[3] - bbox[1]; + this.ctx.rect(bbox[0], bbox[1], width, height); + this.current.updateRectMinMax((0, _display_utils.getCurrentTransform)(this.ctx), bbox); + this.clip(); + this.endPath(); + } + } + + paintFormXObjectEnd() { + if (!this.contentVisible) { + return; + } + + this.restore(); + this.baseTransform = this.baseTransformStack.pop(); + } + + beginGroup(group) { + if (!this.contentVisible) { + return; + } + + this.save(); + + if (this.inSMaskMode) { + this.endSMaskMode(); + this.current.activeSMask = null; + } + + const currentCtx = this.ctx; + + if (!group.isolated) { + (0, _util.info)("TODO: Support non-isolated groups."); + } + + if (group.knockout) { + (0, _util.warn)("Knockout groups not supported."); + } + + const currentTransform = (0, _display_utils.getCurrentTransform)(currentCtx); + + if (group.matrix) { + currentCtx.transform(...group.matrix); + } + + if (!group.bbox) { + throw new Error("Bounding box is required."); + } + + let bounds = _util.Util.getAxialAlignedBoundingBox(group.bbox, (0, _display_utils.getCurrentTransform)(currentCtx)); + + const canvasBounds = [0, 0, currentCtx.canvas.width, currentCtx.canvas.height]; + bounds = _util.Util.intersect(bounds, canvasBounds) || [0, 0, 0, 0]; + const offsetX = Math.floor(bounds[0]); + const offsetY = Math.floor(bounds[1]); + let drawnWidth = Math.max(Math.ceil(bounds[2]) - offsetX, 1); + let drawnHeight = Math.max(Math.ceil(bounds[3]) - offsetY, 1); + let scaleX = 1, + scaleY = 1; + + if (drawnWidth > MAX_GROUP_SIZE) { + scaleX = drawnWidth / MAX_GROUP_SIZE; + drawnWidth = MAX_GROUP_SIZE; + } + + if (drawnHeight > MAX_GROUP_SIZE) { + scaleY = drawnHeight / MAX_GROUP_SIZE; + drawnHeight = MAX_GROUP_SIZE; + } + + this.current.startNewPathAndClipBox([0, 0, drawnWidth, drawnHeight]); + let cacheId = "groupAt" + this.groupLevel; + + if (group.smask) { + cacheId += "_smask_" + this.smaskCounter++ % 2; + } + + const scratchCanvas = this.cachedCanvases.getCanvas(cacheId, drawnWidth, drawnHeight); + const groupCtx = scratchCanvas.context; + groupCtx.scale(1 / scaleX, 1 / scaleY); + groupCtx.translate(-offsetX, -offsetY); + groupCtx.transform(...currentTransform); + + if (group.smask) { + this.smaskStack.push({ + canvas: scratchCanvas.canvas, + context: groupCtx, + offsetX, + offsetY, + scaleX, + scaleY, + subtype: group.smask.subtype, + backdrop: group.smask.backdrop, + transferMap: group.smask.transferMap || null, + startTransformInverse: null + }); + } else { + currentCtx.setTransform(1, 0, 0, 1, 0, 0); + currentCtx.translate(offsetX, offsetY); + currentCtx.scale(scaleX, scaleY); + currentCtx.save(); + } + + copyCtxState(currentCtx, groupCtx); + this.ctx = groupCtx; + this.setGState([["BM", "source-over"], ["ca", 1], ["CA", 1]]); + this.groupStack.push(currentCtx); + this.groupLevel++; + } + + endGroup(group) { + if (!this.contentVisible) { + return; + } + + this.groupLevel--; + const groupCtx = this.ctx; + const ctx = this.groupStack.pop(); + this.ctx = ctx; + this.ctx.imageSmoothingEnabled = false; + + if (group.smask) { + this.tempSMask = this.smaskStack.pop(); + this.restore(); + } else { + this.ctx.restore(); + const currentMtx = (0, _display_utils.getCurrentTransform)(this.ctx); + this.restore(); + this.ctx.save(); + this.ctx.setTransform(...currentMtx); + + const dirtyBox = _util.Util.getAxialAlignedBoundingBox([0, 0, groupCtx.canvas.width, groupCtx.canvas.height], currentMtx); + + this.ctx.drawImage(groupCtx.canvas, 0, 0); + this.ctx.restore(); + this.compose(dirtyBox); + } + } + + beginAnnotation(id, rect, transform, matrix, hasOwnCanvas) { + this.#restoreInitialState(); + resetCtxToDefault(this.ctx, this.foregroundColor); + this.ctx.save(); + this.save(); + + if (this.baseTransform) { + this.ctx.setTransform(...this.baseTransform); + } + + if (Array.isArray(rect) && rect.length === 4) { + const width = rect[2] - rect[0]; + const height = rect[3] - rect[1]; + + if (hasOwnCanvas && this.annotationCanvasMap) { + transform = transform.slice(); + transform[4] -= rect[0]; + transform[5] -= rect[1]; + rect = rect.slice(); + rect[0] = rect[1] = 0; + rect[2] = width; + rect[3] = height; + + const [scaleX, scaleY] = _util.Util.singularValueDecompose2dScale((0, _display_utils.getCurrentTransform)(this.ctx)); + + const { + viewportScale + } = this; + const canvasWidth = Math.ceil(width * this.outputScaleX * viewportScale); + const canvasHeight = Math.ceil(height * this.outputScaleY * viewportScale); + this.annotationCanvas = this.canvasFactory.create(canvasWidth, canvasHeight); + const { + canvas, + context + } = this.annotationCanvas; + this.annotationCanvasMap.set(id, canvas); + this.annotationCanvas.savedCtx = this.ctx; + this.ctx = context; + this.ctx.setTransform(scaleX, 0, 0, -scaleY, 0, height * scaleY); + resetCtxToDefault(this.ctx, this.foregroundColor); + } else { + resetCtxToDefault(this.ctx, this.foregroundColor); + this.ctx.rect(rect[0], rect[1], width, height); + this.ctx.clip(); + this.endPath(); + } + } + + this.current = new CanvasExtraState(this.ctx.canvas.width, this.ctx.canvas.height); + this.transform(...transform); + this.transform(...matrix); + } + + endAnnotation() { + if (this.annotationCanvas) { + this.ctx = this.annotationCanvas.savedCtx; + delete this.annotationCanvas.savedCtx; + delete this.annotationCanvas; + } + } + + paintImageMaskXObject(img) { + if (!this.contentVisible) { + return; + } + + const count = img.count; + img = this.getObject(img.data, img); + img.count = count; + const ctx = this.ctx; + const glyph = this.processingType3; + + if (glyph) { + if (glyph.compiled === undefined) { + glyph.compiled = compileType3Glyph(img); + } + + if (glyph.compiled) { + glyph.compiled(ctx); + return; + } + } + + const mask = this._createMaskCanvas(img); + + const maskCanvas = mask.canvas; + ctx.save(); + ctx.setTransform(1, 0, 0, 1, 0, 0); + ctx.drawImage(maskCanvas, mask.offsetX, mask.offsetY); + ctx.restore(); + this.compose(); + } + + paintImageMaskXObjectRepeat(img, scaleX, skewX = 0, skewY = 0, scaleY, positions) { + if (!this.contentVisible) { + return; + } + + img = this.getObject(img.data, img); + const ctx = this.ctx; + ctx.save(); + const currentTransform = (0, _display_utils.getCurrentTransform)(ctx); + ctx.transform(scaleX, skewX, skewY, scaleY, 0, 0); + + const mask = this._createMaskCanvas(img); + + ctx.setTransform(1, 0, 0, 1, 0, 0); + + for (let i = 0, ii = positions.length; i < ii; i += 2) { + const trans = _util.Util.transform(currentTransform, [scaleX, skewX, skewY, scaleY, positions[i], positions[i + 1]]); + + const [x, y] = _util.Util.applyTransform([0, 0], trans); + + ctx.drawImage(mask.canvas, x, y); + } + + ctx.restore(); + this.compose(); + } + + paintImageMaskXObjectGroup(images) { + if (!this.contentVisible) { + return; + } + + const ctx = this.ctx; + const fillColor = this.current.fillColor; + const isPatternFill = this.current.patternFill; + + for (const image of images) { + const { + data, + width, + height, + transform + } = image; + const maskCanvas = this.cachedCanvases.getCanvas("maskCanvas", width, height); + const maskCtx = maskCanvas.context; + maskCtx.save(); + const img = this.getObject(data, image); + putBinaryImageMask(maskCtx, img); + maskCtx.globalCompositeOperation = "source-in"; + maskCtx.fillStyle = isPatternFill ? fillColor.getPattern(maskCtx, this, (0, _display_utils.getCurrentTransformInverse)(ctx), _pattern_helper.PathType.FILL) : fillColor; + maskCtx.fillRect(0, 0, width, height); + maskCtx.restore(); + ctx.save(); + ctx.transform(...transform); + ctx.scale(1, -1); + drawImageAtIntegerCoords(ctx, maskCanvas.canvas, 0, 0, width, height, 0, -1, 1, 1); + ctx.restore(); + } + + this.compose(); + } + + paintImageXObject(objId) { + if (!this.contentVisible) { + return; + } + + const imgData = this.getObject(objId); + + if (!imgData) { + (0, _util.warn)("Dependent image isn't ready yet"); + return; + } + + this.paintInlineImageXObject(imgData); + } + + paintImageXObjectRepeat(objId, scaleX, scaleY, positions) { + if (!this.contentVisible) { + return; + } + + const imgData = this.getObject(objId); + + if (!imgData) { + (0, _util.warn)("Dependent image isn't ready yet"); + return; + } + + const width = imgData.width; + const height = imgData.height; + const map = []; + + for (let i = 0, ii = positions.length; i < ii; i += 2) { + map.push({ + transform: [scaleX, 0, 0, scaleY, positions[i], positions[i + 1]], + x: 0, + y: 0, + w: width, + h: height + }); + } + + this.paintInlineImageXObjectGroup(imgData, map); + } + + paintInlineImageXObject(imgData) { + if (!this.contentVisible) { + return; + } + + const width = imgData.width; + const height = imgData.height; + const ctx = this.ctx; + this.save(); + ctx.scale(1 / width, -1 / height); + let imgToPaint; + + if (typeof HTMLElement === "function" && imgData instanceof HTMLElement || !imgData.data) { + imgToPaint = imgData; + } else { + const tmpCanvas = this.cachedCanvases.getCanvas("inlineImage", width, height); + const tmpCtx = tmpCanvas.context; + putBinaryImageData(tmpCtx, imgData, this.current.transferMaps); + imgToPaint = tmpCanvas.canvas; + } + + const scaled = this._scaleImage(imgToPaint, (0, _display_utils.getCurrentTransformInverse)(ctx)); + + ctx.imageSmoothingEnabled = getImageSmoothingEnabled((0, _display_utils.getCurrentTransform)(ctx), imgData.interpolate); + const [rWidth, rHeight] = drawImageAtIntegerCoords(ctx, scaled.img, 0, 0, scaled.paintWidth, scaled.paintHeight, 0, -height, width, height); + + if (this.imageLayer) { + const [left, top] = _util.Util.applyTransform([0, -height], (0, _display_utils.getCurrentTransform)(this.ctx)); + + this.imageLayer.appendImage({ + imgData, + left, + top, + width: rWidth, + height: rHeight + }); + } + + this.compose(); + this.restore(); + } + + paintInlineImageXObjectGroup(imgData, map) { + if (!this.contentVisible) { + return; + } + + const ctx = this.ctx; + const w = imgData.width; + const h = imgData.height; + const tmpCanvas = this.cachedCanvases.getCanvas("inlineImage", w, h); + const tmpCtx = tmpCanvas.context; + putBinaryImageData(tmpCtx, imgData, this.current.transferMaps); + + for (const entry of map) { + ctx.save(); + ctx.transform(...entry.transform); + ctx.scale(1, -1); + drawImageAtIntegerCoords(ctx, tmpCanvas.canvas, entry.x, entry.y, entry.w, entry.h, 0, -1, 1, 1); + + if (this.imageLayer) { + const [left, top] = _util.Util.applyTransform([entry.x, entry.y], (0, _display_utils.getCurrentTransform)(this.ctx)); + + this.imageLayer.appendImage({ + imgData, + left, + top, + width: w, + height: h + }); + } + + ctx.restore(); + } + + this.compose(); + } + + paintSolidColorImageMask() { + if (!this.contentVisible) { + return; + } + + this.ctx.fillRect(0, 0, 1, 1); + this.compose(); + } + + markPoint(tag) {} + + markPointProps(tag, properties) {} + + beginMarkedContent(tag) { + this.markedContentStack.push({ + visible: true + }); + } + + beginMarkedContentProps(tag, properties) { + if (tag === "OC") { + this.markedContentStack.push({ + visible: this.optionalContentConfig.isVisible(properties) + }); + } else { + this.markedContentStack.push({ + visible: true + }); + } + + this.contentVisible = this.isContentVisible(); + } + + endMarkedContent() { + this.markedContentStack.pop(); + this.contentVisible = this.isContentVisible(); + } + + beginCompat() {} + + endCompat() {} + + consumePath(clipBox) { + const isEmpty = this.current.isEmptyClip(); + + if (this.pendingClip) { + this.current.updateClipFromPath(); + } + + if (!this.pendingClip) { + this.compose(clipBox); + } + + const ctx = this.ctx; + + if (this.pendingClip) { + if (!isEmpty) { + if (this.pendingClip === EO_CLIP) { + ctx.clip("evenodd"); + } else { + ctx.clip(); + } + } + + this.pendingClip = null; + } + + this.current.startNewPathAndClipBox(this.current.clipBox); + ctx.beginPath(); + } + + getSinglePixelWidth() { + if (!this._cachedGetSinglePixelWidth) { + const m = (0, _display_utils.getCurrentTransform)(this.ctx); + + if (m[1] === 0 && m[2] === 0) { + this._cachedGetSinglePixelWidth = 1 / Math.min(Math.abs(m[0]), Math.abs(m[3])); + } else { + const absDet = Math.abs(m[0] * m[3] - m[2] * m[1]); + const normX = Math.hypot(m[0], m[2]); + const normY = Math.hypot(m[1], m[3]); + this._cachedGetSinglePixelWidth = Math.max(normX, normY) / absDet; + } + } + + return this._cachedGetSinglePixelWidth; + } + + getScaleForStroking() { + if (!this._cachedScaleForStroking) { + const { + lineWidth + } = this.current; + const m = (0, _display_utils.getCurrentTransform)(this.ctx); + let scaleX, scaleY; + + if (m[1] === 0 && m[2] === 0) { + const normX = Math.abs(m[0]); + const normY = Math.abs(m[3]); + + if (lineWidth === 0) { + scaleX = 1 / normX; + scaleY = 1 / normY; + } else { + const scaledXLineWidth = normX * lineWidth; + const scaledYLineWidth = normY * lineWidth; + scaleX = scaledXLineWidth < 1 ? 1 / scaledXLineWidth : 1; + scaleY = scaledYLineWidth < 1 ? 1 / scaledYLineWidth : 1; + } + } else { + const absDet = Math.abs(m[0] * m[3] - m[2] * m[1]); + const normX = Math.hypot(m[0], m[1]); + const normY = Math.hypot(m[2], m[3]); + + if (lineWidth === 0) { + scaleX = normY / absDet; + scaleY = normX / absDet; + } else { + const baseArea = lineWidth * absDet; + scaleX = normY > baseArea ? normY / baseArea : 1; + scaleY = normX > baseArea ? normX / baseArea : 1; + } + } + + this._cachedScaleForStroking = [scaleX, scaleY]; + } + + return this._cachedScaleForStroking; + } + + rescaleAndStroke(saveRestore) { + const { + ctx + } = this; + const { + lineWidth + } = this.current; + const [scaleX, scaleY] = this.getScaleForStroking(); + ctx.lineWidth = lineWidth || 1; + + if (scaleX === 1 && scaleY === 1) { + ctx.stroke(); + return; + } + + let savedMatrix, savedDashes, savedDashOffset; + + if (saveRestore) { + savedMatrix = (0, _display_utils.getCurrentTransform)(ctx); + savedDashes = ctx.getLineDash().slice(); + savedDashOffset = ctx.lineDashOffset; + } + + ctx.scale(scaleX, scaleY); + const scale = Math.max(scaleX, scaleY); + ctx.setLineDash(ctx.getLineDash().map(x => x / scale)); + ctx.lineDashOffset /= scale; + ctx.stroke(); + + if (saveRestore) { + ctx.setTransform(...savedMatrix); + ctx.setLineDash(savedDashes); + ctx.lineDashOffset = savedDashOffset; + } + } + + isContentVisible() { + for (let i = this.markedContentStack.length - 1; i >= 0; i--) { + if (!this.markedContentStack[i].visible) { + return false; + } + } + + return true; + } + +} + +exports.CanvasGraphics = CanvasGraphics; + +for (const op in _util.OPS) { + if (CanvasGraphics.prototype[op] !== undefined) { + CanvasGraphics.prototype[_util.OPS[op]] = CanvasGraphics.prototype[op]; + } +} + +/***/ }), +/* 13 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.TilingPattern = exports.PathType = void 0; +exports.getShadingPattern = getShadingPattern; + +var _util = __w_pdfjs_require__(1); + +var _display_utils = __w_pdfjs_require__(8); + +var _is_node = __w_pdfjs_require__(3); + +const PathType = { + FILL: "Fill", + STROKE: "Stroke", + SHADING: "Shading" +}; +exports.PathType = PathType; + +function applyBoundingBox(ctx, bbox) { + if (!bbox || _is_node.isNodeJS) { + return; + } + + const width = bbox[2] - bbox[0]; + const height = bbox[3] - bbox[1]; + const region = new Path2D(); + region.rect(bbox[0], bbox[1], width, height); + ctx.clip(region); +} + +class BaseShadingPattern { + constructor() { + if (this.constructor === BaseShadingPattern) { + (0, _util.unreachable)("Cannot initialize BaseShadingPattern."); + } + } + + getPattern() { + (0, _util.unreachable)("Abstract method `getPattern` called."); + } + +} + +class RadialAxialShadingPattern extends BaseShadingPattern { + constructor(IR) { + super(); + this._type = IR[1]; + this._bbox = IR[2]; + this._colorStops = IR[3]; + this._p0 = IR[4]; + this._p1 = IR[5]; + this._r0 = IR[6]; + this._r1 = IR[7]; + this.matrix = null; + } + + _createGradient(ctx) { + let grad; + + if (this._type === "axial") { + grad = ctx.createLinearGradient(this._p0[0], this._p0[1], this._p1[0], this._p1[1]); + } else if (this._type === "radial") { + grad = ctx.createRadialGradient(this._p0[0], this._p0[1], this._r0, this._p1[0], this._p1[1], this._r1); + } + + for (const colorStop of this._colorStops) { + grad.addColorStop(colorStop[0], colorStop[1]); + } + + return grad; + } + + getPattern(ctx, owner, inverse, pathType) { + let pattern; + + if (pathType === PathType.STROKE || pathType === PathType.FILL) { + const ownerBBox = owner.current.getClippedPathBoundingBox(pathType, (0, _display_utils.getCurrentTransform)(ctx)) || [0, 0, 0, 0]; + const width = Math.ceil(ownerBBox[2] - ownerBBox[0]) || 1; + const height = Math.ceil(ownerBBox[3] - ownerBBox[1]) || 1; + const tmpCanvas = owner.cachedCanvases.getCanvas("pattern", width, height, true); + const tmpCtx = tmpCanvas.context; + tmpCtx.clearRect(0, 0, tmpCtx.canvas.width, tmpCtx.canvas.height); + tmpCtx.beginPath(); + tmpCtx.rect(0, 0, tmpCtx.canvas.width, tmpCtx.canvas.height); + tmpCtx.translate(-ownerBBox[0], -ownerBBox[1]); + inverse = _util.Util.transform(inverse, [1, 0, 0, 1, ownerBBox[0], ownerBBox[1]]); + tmpCtx.transform(...owner.baseTransform); + + if (this.matrix) { + tmpCtx.transform(...this.matrix); + } + + applyBoundingBox(tmpCtx, this._bbox); + tmpCtx.fillStyle = this._createGradient(tmpCtx); + tmpCtx.fill(); + pattern = ctx.createPattern(tmpCanvas.canvas, "no-repeat"); + const domMatrix = new DOMMatrix(inverse); + + try { + pattern.setTransform(domMatrix); + } catch (ex) { + (0, _util.warn)(`RadialAxialShadingPattern.getPattern: "${ex?.message}".`); + } + } else { + applyBoundingBox(ctx, this._bbox); + pattern = this._createGradient(ctx); + } + + return pattern; + } + +} + +function drawTriangle(data, context, p1, p2, p3, c1, c2, c3) { + const coords = context.coords, + colors = context.colors; + const bytes = data.data, + rowSize = data.width * 4; + let tmp; + + if (coords[p1 + 1] > coords[p2 + 1]) { + tmp = p1; + p1 = p2; + p2 = tmp; + tmp = c1; + c1 = c2; + c2 = tmp; + } + + if (coords[p2 + 1] > coords[p3 + 1]) { + tmp = p2; + p2 = p3; + p3 = tmp; + tmp = c2; + c2 = c3; + c3 = tmp; + } + + if (coords[p1 + 1] > coords[p2 + 1]) { + tmp = p1; + p1 = p2; + p2 = tmp; + tmp = c1; + c1 = c2; + c2 = tmp; + } + + const x1 = (coords[p1] + context.offsetX) * context.scaleX; + const y1 = (coords[p1 + 1] + context.offsetY) * context.scaleY; + const x2 = (coords[p2] + context.offsetX) * context.scaleX; + const y2 = (coords[p2 + 1] + context.offsetY) * context.scaleY; + const x3 = (coords[p3] + context.offsetX) * context.scaleX; + const y3 = (coords[p3 + 1] + context.offsetY) * context.scaleY; + + if (y1 >= y3) { + return; + } + + const c1r = colors[c1], + c1g = colors[c1 + 1], + c1b = colors[c1 + 2]; + const c2r = colors[c2], + c2g = colors[c2 + 1], + c2b = colors[c2 + 2]; + const c3r = colors[c3], + c3g = colors[c3 + 1], + c3b = colors[c3 + 2]; + const minY = Math.round(y1), + maxY = Math.round(y3); + let xa, car, cag, cab; + let xb, cbr, cbg, cbb; + + for (let y = minY; y <= maxY; y++) { + if (y < y2) { + let k; + + if (y < y1) { + k = 0; + } else { + k = (y1 - y) / (y1 - y2); + } + + xa = x1 - (x1 - x2) * k; + car = c1r - (c1r - c2r) * k; + cag = c1g - (c1g - c2g) * k; + cab = c1b - (c1b - c2b) * k; + } else { + let k; + + if (y > y3) { + k = 1; + } else if (y2 === y3) { + k = 0; + } else { + k = (y2 - y) / (y2 - y3); + } + + xa = x2 - (x2 - x3) * k; + car = c2r - (c2r - c3r) * k; + cag = c2g - (c2g - c3g) * k; + cab = c2b - (c2b - c3b) * k; + } + + let k; + + if (y < y1) { + k = 0; + } else if (y > y3) { + k = 1; + } else { + k = (y1 - y) / (y1 - y3); + } + + xb = x1 - (x1 - x3) * k; + cbr = c1r - (c1r - c3r) * k; + cbg = c1g - (c1g - c3g) * k; + cbb = c1b - (c1b - c3b) * k; + const x1_ = Math.round(Math.min(xa, xb)); + const x2_ = Math.round(Math.max(xa, xb)); + let j = rowSize * y + x1_ * 4; + + for (let x = x1_; x <= x2_; x++) { + k = (xa - x) / (xa - xb); + + if (k < 0) { + k = 0; + } else if (k > 1) { + k = 1; + } + + bytes[j++] = car - (car - cbr) * k | 0; + bytes[j++] = cag - (cag - cbg) * k | 0; + bytes[j++] = cab - (cab - cbb) * k | 0; + bytes[j++] = 255; + } + } +} + +function drawFigure(data, figure, context) { + const ps = figure.coords; + const cs = figure.colors; + let i, ii; + + switch (figure.type) { + case "lattice": + const verticesPerRow = figure.verticesPerRow; + const rows = Math.floor(ps.length / verticesPerRow) - 1; + const cols = verticesPerRow - 1; + + for (i = 0; i < rows; i++) { + let q = i * verticesPerRow; + + for (let j = 0; j < cols; j++, q++) { + drawTriangle(data, context, ps[q], ps[q + 1], ps[q + verticesPerRow], cs[q], cs[q + 1], cs[q + verticesPerRow]); + drawTriangle(data, context, ps[q + verticesPerRow + 1], ps[q + 1], ps[q + verticesPerRow], cs[q + verticesPerRow + 1], cs[q + 1], cs[q + verticesPerRow]); + } + } + + break; + + case "triangles": + for (i = 0, ii = ps.length; i < ii; i += 3) { + drawTriangle(data, context, ps[i], ps[i + 1], ps[i + 2], cs[i], cs[i + 1], cs[i + 2]); + } + + break; + + default: + throw new Error("illegal figure"); + } +} + +class MeshShadingPattern extends BaseShadingPattern { + constructor(IR) { + super(); + this._coords = IR[2]; + this._colors = IR[3]; + this._figures = IR[4]; + this._bounds = IR[5]; + this._bbox = IR[7]; + this._background = IR[8]; + this.matrix = null; + } + + _createMeshCanvas(combinedScale, backgroundColor, cachedCanvases) { + const EXPECTED_SCALE = 1.1; + const MAX_PATTERN_SIZE = 3000; + const BORDER_SIZE = 2; + const offsetX = Math.floor(this._bounds[0]); + const offsetY = Math.floor(this._bounds[1]); + const boundsWidth = Math.ceil(this._bounds[2]) - offsetX; + const boundsHeight = Math.ceil(this._bounds[3]) - offsetY; + const width = Math.min(Math.ceil(Math.abs(boundsWidth * combinedScale[0] * EXPECTED_SCALE)), MAX_PATTERN_SIZE); + const height = Math.min(Math.ceil(Math.abs(boundsHeight * combinedScale[1] * EXPECTED_SCALE)), MAX_PATTERN_SIZE); + const scaleX = boundsWidth / width; + const scaleY = boundsHeight / height; + const context = { + coords: this._coords, + colors: this._colors, + offsetX: -offsetX, + offsetY: -offsetY, + scaleX: 1 / scaleX, + scaleY: 1 / scaleY + }; + const paddedWidth = width + BORDER_SIZE * 2; + const paddedHeight = height + BORDER_SIZE * 2; + const tmpCanvas = cachedCanvases.getCanvas("mesh", paddedWidth, paddedHeight, false); + const tmpCtx = tmpCanvas.context; + const data = tmpCtx.createImageData(width, height); + + if (backgroundColor) { + const bytes = data.data; + + for (let i = 0, ii = bytes.length; i < ii; i += 4) { + bytes[i] = backgroundColor[0]; + bytes[i + 1] = backgroundColor[1]; + bytes[i + 2] = backgroundColor[2]; + bytes[i + 3] = 255; + } + } + + for (const figure of this._figures) { + drawFigure(data, figure, context); + } + + tmpCtx.putImageData(data, BORDER_SIZE, BORDER_SIZE); + const canvas = tmpCanvas.canvas; + return { + canvas, + offsetX: offsetX - BORDER_SIZE * scaleX, + offsetY: offsetY - BORDER_SIZE * scaleY, + scaleX, + scaleY + }; + } + + getPattern(ctx, owner, inverse, pathType) { + applyBoundingBox(ctx, this._bbox); + let scale; + + if (pathType === PathType.SHADING) { + scale = _util.Util.singularValueDecompose2dScale((0, _display_utils.getCurrentTransform)(ctx)); + } else { + scale = _util.Util.singularValueDecompose2dScale(owner.baseTransform); + + if (this.matrix) { + const matrixScale = _util.Util.singularValueDecompose2dScale(this.matrix); + + scale = [scale[0] * matrixScale[0], scale[1] * matrixScale[1]]; + } + } + + const temporaryPatternCanvas = this._createMeshCanvas(scale, pathType === PathType.SHADING ? null : this._background, owner.cachedCanvases); + + if (pathType !== PathType.SHADING) { + ctx.setTransform(...owner.baseTransform); + + if (this.matrix) { + ctx.transform(...this.matrix); + } + } + + ctx.translate(temporaryPatternCanvas.offsetX, temporaryPatternCanvas.offsetY); + ctx.scale(temporaryPatternCanvas.scaleX, temporaryPatternCanvas.scaleY); + return ctx.createPattern(temporaryPatternCanvas.canvas, "no-repeat"); + } + +} + +class DummyShadingPattern extends BaseShadingPattern { + getPattern() { + return "hotpink"; + } + +} + +function getShadingPattern(IR) { + switch (IR[0]) { + case "RadialAxial": + return new RadialAxialShadingPattern(IR); + + case "Mesh": + return new MeshShadingPattern(IR); + + case "Dummy": + return new DummyShadingPattern(); + } + + throw new Error(`Unknown IR type: ${IR[0]}`); +} + +const PaintType = { + COLORED: 1, + UNCOLORED: 2 +}; + +class TilingPattern { + static get MAX_PATTERN_SIZE() { + return (0, _util.shadow)(this, "MAX_PATTERN_SIZE", 3000); + } + + constructor(IR, color, ctx, canvasGraphicsFactory, baseTransform) { + this.operatorList = IR[2]; + this.matrix = IR[3] || [1, 0, 0, 1, 0, 0]; + this.bbox = IR[4]; + this.xstep = IR[5]; + this.ystep = IR[6]; + this.paintType = IR[7]; + this.tilingType = IR[8]; + this.color = color; + this.ctx = ctx; + this.canvasGraphicsFactory = canvasGraphicsFactory; + this.baseTransform = baseTransform; + } + + createPatternCanvas(owner) { + const operatorList = this.operatorList; + const bbox = this.bbox; + const xstep = this.xstep; + const ystep = this.ystep; + const paintType = this.paintType; + const tilingType = this.tilingType; + const color = this.color; + const canvasGraphicsFactory = this.canvasGraphicsFactory; + (0, _util.info)("TilingType: " + tilingType); + const x0 = bbox[0], + y0 = bbox[1], + x1 = bbox[2], + y1 = bbox[3]; + + const matrixScale = _util.Util.singularValueDecompose2dScale(this.matrix); + + const curMatrixScale = _util.Util.singularValueDecompose2dScale(this.baseTransform); + + const combinedScale = [matrixScale[0] * curMatrixScale[0], matrixScale[1] * curMatrixScale[1]]; + const dimx = this.getSizeAndScale(xstep, this.ctx.canvas.width, combinedScale[0]); + const dimy = this.getSizeAndScale(ystep, this.ctx.canvas.height, combinedScale[1]); + const tmpCanvas = owner.cachedCanvases.getCanvas("pattern", dimx.size, dimy.size, true); + const tmpCtx = tmpCanvas.context; + const graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx); + graphics.groupLevel = owner.groupLevel; + this.setFillAndStrokeStyleToContext(graphics, paintType, color); + let adjustedX0 = x0; + let adjustedY0 = y0; + let adjustedX1 = x1; + let adjustedY1 = y1; + + if (x0 < 0) { + adjustedX0 = 0; + adjustedX1 += Math.abs(x0); + } + + if (y0 < 0) { + adjustedY0 = 0; + adjustedY1 += Math.abs(y0); + } + + tmpCtx.translate(-(dimx.scale * adjustedX0), -(dimy.scale * adjustedY0)); + graphics.transform(dimx.scale, 0, 0, dimy.scale, 0, 0); + tmpCtx.save(); + this.clipBbox(graphics, adjustedX0, adjustedY0, adjustedX1, adjustedY1); + graphics.baseTransform = (0, _display_utils.getCurrentTransform)(graphics.ctx); + graphics.executeOperatorList(operatorList); + graphics.endDrawing(); + return { + canvas: tmpCanvas.canvas, + scaleX: dimx.scale, + scaleY: dimy.scale, + offsetX: adjustedX0, + offsetY: adjustedY0 + }; + } + + getSizeAndScale(step, realOutputSize, scale) { + step = Math.abs(step); + const maxSize = Math.max(TilingPattern.MAX_PATTERN_SIZE, realOutputSize); + let size = Math.ceil(step * scale); + + if (size >= maxSize) { + size = maxSize; + } else { + scale = size / step; + } + + return { + scale, + size + }; + } + + clipBbox(graphics, x0, y0, x1, y1) { + const bboxWidth = x1 - x0; + const bboxHeight = y1 - y0; + graphics.ctx.rect(x0, y0, bboxWidth, bboxHeight); + graphics.current.updateRectMinMax((0, _display_utils.getCurrentTransform)(graphics.ctx), [x0, y0, x1, y1]); + graphics.clip(); + graphics.endPath(); + } + + setFillAndStrokeStyleToContext(graphics, paintType, color) { + const context = graphics.ctx, + current = graphics.current; + + switch (paintType) { + case PaintType.COLORED: + const ctx = this.ctx; + context.fillStyle = ctx.fillStyle; + context.strokeStyle = ctx.strokeStyle; + current.fillColor = ctx.fillStyle; + current.strokeColor = ctx.strokeStyle; + break; + + case PaintType.UNCOLORED: + const cssColor = _util.Util.makeHexColor(color[0], color[1], color[2]); + + context.fillStyle = cssColor; + context.strokeStyle = cssColor; + current.fillColor = cssColor; + current.strokeColor = cssColor; + break; + + default: + throw new _util.FormatError(`Unsupported paint type: ${paintType}`); + } + } + + getPattern(ctx, owner, inverse, pathType) { + let matrix = inverse; + + if (pathType !== PathType.SHADING) { + matrix = _util.Util.transform(matrix, owner.baseTransform); + + if (this.matrix) { + matrix = _util.Util.transform(matrix, this.matrix); + } + } + + const temporaryPatternCanvas = this.createPatternCanvas(owner); + let domMatrix = new DOMMatrix(matrix); + domMatrix = domMatrix.translate(temporaryPatternCanvas.offsetX, temporaryPatternCanvas.offsetY); + domMatrix = domMatrix.scale(1 / temporaryPatternCanvas.scaleX, 1 / temporaryPatternCanvas.scaleY); + const pattern = ctx.createPattern(temporaryPatternCanvas.canvas, "repeat"); + + try { + pattern.setTransform(domMatrix); + } catch (ex) { + (0, _util.warn)(`TilingPattern.getPattern: "${ex?.message}".`); + } + + return pattern; + } + +} + +exports.TilingPattern = TilingPattern; + +/***/ }), +/* 14 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.applyMaskImageData = applyMaskImageData; + +var _util = __w_pdfjs_require__(1); + +function applyMaskImageData({ + src, + srcPos = 0, + dest, + destPos = 0, + width, + height, + inverseDecode = false +}) { + const opaque = _util.FeatureTest.isLittleEndian ? 0xff000000 : 0x000000ff; + const [zeroMapping, oneMapping] = !inverseDecode ? [opaque, 0] : [0, opaque]; + const widthInSource = width >> 3; + const widthRemainder = width & 7; + const srcLength = src.length; + dest = new Uint32Array(dest.buffer); + + for (let i = 0; i < height; i++) { + for (const max = srcPos + widthInSource; srcPos < max; srcPos++) { + const elem = srcPos < srcLength ? src[srcPos] : 255; + dest[destPos++] = elem & 0b10000000 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b1000000 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b100000 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b10000 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b1000 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b100 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b10 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b1 ? oneMapping : zeroMapping; + } + + if (widthRemainder === 0) { + continue; + } + + const elem = srcPos < srcLength ? src[srcPos++] : 255; + + for (let j = 0; j < widthRemainder; j++) { + dest[destPos++] = elem & 1 << 7 - j ? oneMapping : zeroMapping; + } + } + + return { + srcPos, + destPos + }; +} + +/***/ }), +/* 15 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.GlobalWorkerOptions = void 0; +const GlobalWorkerOptions = Object.create(null); +exports.GlobalWorkerOptions = GlobalWorkerOptions; +GlobalWorkerOptions.workerPort = GlobalWorkerOptions.workerPort === undefined ? null : GlobalWorkerOptions.workerPort; +GlobalWorkerOptions.workerSrc = GlobalWorkerOptions.workerSrc === undefined ? "" : GlobalWorkerOptions.workerSrc; + +/***/ }), +/* 16 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.MessageHandler = void 0; + +var _util = __w_pdfjs_require__(1); + +const CallbackKind = { + UNKNOWN: 0, + DATA: 1, + ERROR: 2 +}; +const StreamKind = { + UNKNOWN: 0, + CANCEL: 1, + CANCEL_COMPLETE: 2, + CLOSE: 3, + ENQUEUE: 4, + ERROR: 5, + PULL: 6, + PULL_COMPLETE: 7, + START_COMPLETE: 8 +}; + +function wrapReason(reason) { + if (!(reason instanceof Error || typeof reason === "object" && reason !== null)) { + (0, _util.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'); + } + + switch (reason.name) { + case "AbortException": + return new _util.AbortException(reason.message); + + case "MissingPDFException": + return new _util.MissingPDFException(reason.message); + + case "PasswordException": + return new _util.PasswordException(reason.message, reason.code); + + case "UnexpectedResponseException": + return new _util.UnexpectedResponseException(reason.message, reason.status); + + case "UnknownErrorException": + return new _util.UnknownErrorException(reason.message, reason.details); + + default: + return new _util.UnknownErrorException(reason.message, reason.toString()); + } +} + +class MessageHandler { + constructor(sourceName, targetName, comObj) { + this.sourceName = sourceName; + this.targetName = targetName; + this.comObj = comObj; + this.callbackId = 1; + this.streamId = 1; + this.streamSinks = Object.create(null); + this.streamControllers = Object.create(null); + this.callbackCapabilities = Object.create(null); + this.actionHandler = Object.create(null); + + this._onComObjOnMessage = event => { + const data = event.data; + + if (data.targetName !== this.sourceName) { + return; + } + + if (data.stream) { + this._processStreamMessage(data); + + return; + } + + if (data.callback) { + const callbackId = data.callbackId; + const capability = this.callbackCapabilities[callbackId]; + + if (!capability) { + throw new Error(`Cannot resolve callback ${callbackId}`); + } + + delete this.callbackCapabilities[callbackId]; + + if (data.callback === CallbackKind.DATA) { + capability.resolve(data.data); + } else if (data.callback === CallbackKind.ERROR) { + capability.reject(wrapReason(data.reason)); + } else { + throw new Error("Unexpected callback case"); + } + + return; + } + + const action = this.actionHandler[data.action]; + + if (!action) { + throw new Error(`Unknown action from worker: ${data.action}`); + } + + if (data.callbackId) { + const cbSourceName = this.sourceName; + const cbTargetName = data.sourceName; + new Promise(function (resolve) { + resolve(action(data.data)); + }).then(function (result) { + comObj.postMessage({ + sourceName: cbSourceName, + targetName: cbTargetName, + callback: CallbackKind.DATA, + callbackId: data.callbackId, + data: result + }); + }, function (reason) { + comObj.postMessage({ + sourceName: cbSourceName, + targetName: cbTargetName, + callback: CallbackKind.ERROR, + callbackId: data.callbackId, + reason: wrapReason(reason) + }); + }); + return; + } + + if (data.streamId) { + this._createStreamSink(data); + + return; + } + + action(data.data); + }; + + comObj.addEventListener("message", this._onComObjOnMessage); + } + + on(actionName, handler) { + const ah = this.actionHandler; + + if (ah[actionName]) { + throw new Error(`There is already an actionName called "${actionName}"`); + } + + ah[actionName] = handler; + } + + send(actionName, data, transfers) { + this.comObj.postMessage({ + sourceName: this.sourceName, + targetName: this.targetName, + action: actionName, + data + }, transfers); + } + + sendWithPromise(actionName, data, transfers) { + const callbackId = this.callbackId++; + const capability = (0, _util.createPromiseCapability)(); + this.callbackCapabilities[callbackId] = capability; + + try { + this.comObj.postMessage({ + sourceName: this.sourceName, + targetName: this.targetName, + action: actionName, + callbackId, + data + }, transfers); + } catch (ex) { + capability.reject(ex); + } + + return capability.promise; + } + + sendWithStream(actionName, data, queueingStrategy, transfers) { + const streamId = this.streamId++, + sourceName = this.sourceName, + targetName = this.targetName, + comObj = this.comObj; + return new ReadableStream({ + start: controller => { + const startCapability = (0, _util.createPromiseCapability)(); + this.streamControllers[streamId] = { + controller, + startCall: startCapability, + pullCall: null, + cancelCall: null, + isClosed: false + }; + comObj.postMessage({ + sourceName, + targetName, + action: actionName, + streamId, + data, + desiredSize: controller.desiredSize + }, transfers); + return startCapability.promise; + }, + pull: controller => { + const pullCapability = (0, _util.createPromiseCapability)(); + this.streamControllers[streamId].pullCall = pullCapability; + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.PULL, + streamId, + desiredSize: controller.desiredSize + }); + return pullCapability.promise; + }, + cancel: reason => { + (0, _util.assert)(reason instanceof Error, "cancel must have a valid reason"); + const cancelCapability = (0, _util.createPromiseCapability)(); + this.streamControllers[streamId].cancelCall = cancelCapability; + this.streamControllers[streamId].isClosed = true; + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.CANCEL, + streamId, + reason: wrapReason(reason) + }); + return cancelCapability.promise; + } + }, queueingStrategy); + } + + _createStreamSink(data) { + const streamId = data.streamId, + sourceName = this.sourceName, + targetName = data.sourceName, + comObj = this.comObj; + const self = this, + action = this.actionHandler[data.action]; + const streamSink = { + enqueue(chunk, size = 1, transfers) { + if (this.isCancelled) { + return; + } + + const lastDesiredSize = this.desiredSize; + this.desiredSize -= size; + + if (lastDesiredSize > 0 && this.desiredSize <= 0) { + this.sinkCapability = (0, _util.createPromiseCapability)(); + this.ready = this.sinkCapability.promise; + } + + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.ENQUEUE, + streamId, + chunk + }, transfers); + }, + + close() { + if (this.isCancelled) { + return; + } + + this.isCancelled = true; + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.CLOSE, + streamId + }); + delete self.streamSinks[streamId]; + }, + + error(reason) { + (0, _util.assert)(reason instanceof Error, "error must have a valid reason"); + + if (this.isCancelled) { + return; + } + + this.isCancelled = true; + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.ERROR, + streamId, + reason: wrapReason(reason) + }); + }, + + sinkCapability: (0, _util.createPromiseCapability)(), + onPull: null, + onCancel: null, + isCancelled: false, + desiredSize: data.desiredSize, + ready: null + }; + streamSink.sinkCapability.resolve(); + streamSink.ready = streamSink.sinkCapability.promise; + this.streamSinks[streamId] = streamSink; + new Promise(function (resolve) { + resolve(action(data.data, streamSink)); + }).then(function () { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.START_COMPLETE, + streamId, + success: true + }); + }, function (reason) { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.START_COMPLETE, + streamId, + reason: wrapReason(reason) + }); + }); + } + + _processStreamMessage(data) { + const streamId = data.streamId, + sourceName = this.sourceName, + targetName = data.sourceName, + comObj = this.comObj; + const streamController = this.streamControllers[streamId], + streamSink = this.streamSinks[streamId]; + + switch (data.stream) { + case StreamKind.START_COMPLETE: + if (data.success) { + streamController.startCall.resolve(); + } else { + streamController.startCall.reject(wrapReason(data.reason)); + } + + break; + + case StreamKind.PULL_COMPLETE: + if (data.success) { + streamController.pullCall.resolve(); + } else { + streamController.pullCall.reject(wrapReason(data.reason)); + } + + break; + + case StreamKind.PULL: + if (!streamSink) { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.PULL_COMPLETE, + streamId, + success: true + }); + break; + } + + if (streamSink.desiredSize <= 0 && data.desiredSize > 0) { + streamSink.sinkCapability.resolve(); + } + + streamSink.desiredSize = data.desiredSize; + new Promise(function (resolve) { + resolve(streamSink.onPull && streamSink.onPull()); + }).then(function () { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.PULL_COMPLETE, + streamId, + success: true + }); + }, function (reason) { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.PULL_COMPLETE, + streamId, + reason: wrapReason(reason) + }); + }); + break; + + case StreamKind.ENQUEUE: + (0, _util.assert)(streamController, "enqueue should have stream controller"); + + if (streamController.isClosed) { + break; + } + + streamController.controller.enqueue(data.chunk); + break; + + case StreamKind.CLOSE: + (0, _util.assert)(streamController, "close should have stream controller"); + + if (streamController.isClosed) { + break; + } + + streamController.isClosed = true; + streamController.controller.close(); + + this._deleteStreamController(streamController, streamId); + + break; + + case StreamKind.ERROR: + (0, _util.assert)(streamController, "error should have stream controller"); + streamController.controller.error(wrapReason(data.reason)); + + this._deleteStreamController(streamController, streamId); + + break; + + case StreamKind.CANCEL_COMPLETE: + if (data.success) { + streamController.cancelCall.resolve(); + } else { + streamController.cancelCall.reject(wrapReason(data.reason)); + } + + this._deleteStreamController(streamController, streamId); + + break; + + case StreamKind.CANCEL: + if (!streamSink) { + break; + } + + new Promise(function (resolve) { + resolve(streamSink.onCancel && streamSink.onCancel(wrapReason(data.reason))); + }).then(function () { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.CANCEL_COMPLETE, + streamId, + success: true + }); + }, function (reason) { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.CANCEL_COMPLETE, + streamId, + reason: wrapReason(reason) + }); + }); + streamSink.sinkCapability.reject(wrapReason(data.reason)); + streamSink.isCancelled = true; + delete this.streamSinks[streamId]; + break; + + default: + throw new Error("Unexpected stream case"); + } + } + + async _deleteStreamController(streamController, streamId) { + await Promise.allSettled([streamController.startCall && streamController.startCall.promise, streamController.pullCall && streamController.pullCall.promise, streamController.cancelCall && streamController.cancelCall.promise]); + delete this.streamControllers[streamId]; + } + + destroy() { + this.comObj.removeEventListener("message", this._onComObjOnMessage); + } + +} + +exports.MessageHandler = MessageHandler; + +/***/ }), +/* 17 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Metadata = void 0; + +var _util = __w_pdfjs_require__(1); + +class Metadata { + #metadataMap; + #data; + + constructor({ + parsedData, + rawData + }) { + this.#metadataMap = parsedData; + this.#data = rawData; + } + + getRaw() { + return this.#data; + } + + get(name) { + return this.#metadataMap.get(name) ?? null; + } + + getAll() { + return (0, _util.objectFromMap)(this.#metadataMap); + } + + has(name) { + return this.#metadataMap.has(name); + } + +} + +exports.Metadata = Metadata; + +/***/ }), +/* 18 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.OptionalContentConfig = void 0; + +var _util = __w_pdfjs_require__(1); + +const INTERNAL = Symbol("INTERNAL"); + +class OptionalContentGroup { + #visible = true; + + constructor(name, intent) { + this.name = name; + this.intent = intent; + } + + get visible() { + return this.#visible; + } + + _setVisible(internal, visible) { + if (internal !== INTERNAL) { + (0, _util.unreachable)("Internal method `_setVisible` called."); + } + + this.#visible = visible; + } + +} + +class OptionalContentConfig { + #cachedHasInitialVisibility = true; + #groups = new Map(); + #initialVisibility = null; + #order = null; + + constructor(data) { + this.name = null; + this.creator = null; + + if (data === null) { + return; + } + + this.name = data.name; + this.creator = data.creator; + this.#order = data.order; + + for (const group of data.groups) { + this.#groups.set(group.id, new OptionalContentGroup(group.name, group.intent)); + } + + if (data.baseState === "OFF") { + for (const group of this.#groups.values()) { + group._setVisible(INTERNAL, false); + } + } + + for (const on of data.on) { + this.#groups.get(on)._setVisible(INTERNAL, true); + } + + for (const off of data.off) { + this.#groups.get(off)._setVisible(INTERNAL, false); + } + + this.#initialVisibility = new Map(); + + for (const [id, group] of this.#groups) { + this.#initialVisibility.set(id, group.visible); + } + } + + #evaluateVisibilityExpression(array) { + const length = array.length; + + if (length < 2) { + return true; + } + + const operator = array[0]; + + for (let i = 1; i < length; i++) { + const element = array[i]; + let state; + + if (Array.isArray(element)) { + state = this.#evaluateVisibilityExpression(element); + } else if (this.#groups.has(element)) { + state = this.#groups.get(element).visible; + } else { + (0, _util.warn)(`Optional content group not found: ${element}`); + return true; + } + + switch (operator) { + case "And": + if (!state) { + return false; + } + + break; + + case "Or": + if (state) { + return true; + } + + break; + + case "Not": + return !state; + + default: + return true; + } + } + + return operator === "And"; + } + + isVisible(group) { + if (this.#groups.size === 0) { + return true; + } + + if (!group) { + (0, _util.warn)("Optional content group not defined."); + return true; + } + + if (group.type === "OCG") { + if (!this.#groups.has(group.id)) { + (0, _util.warn)(`Optional content group not found: ${group.id}`); + return true; + } + + return this.#groups.get(group.id).visible; + } else if (group.type === "OCMD") { + if (group.expression) { + return this.#evaluateVisibilityExpression(group.expression); + } + + if (!group.policy || group.policy === "AnyOn") { + for (const id of group.ids) { + if (!this.#groups.has(id)) { + (0, _util.warn)(`Optional content group not found: ${id}`); + return true; + } + + if (this.#groups.get(id).visible) { + return true; + } + } + + return false; + } else if (group.policy === "AllOn") { + for (const id of group.ids) { + if (!this.#groups.has(id)) { + (0, _util.warn)(`Optional content group not found: ${id}`); + return true; + } + + if (!this.#groups.get(id).visible) { + return false; + } + } + + return true; + } else if (group.policy === "AnyOff") { + for (const id of group.ids) { + if (!this.#groups.has(id)) { + (0, _util.warn)(`Optional content group not found: ${id}`); + return true; + } + + if (!this.#groups.get(id).visible) { + return true; + } + } + + return false; + } else if (group.policy === "AllOff") { + for (const id of group.ids) { + if (!this.#groups.has(id)) { + (0, _util.warn)(`Optional content group not found: ${id}`); + return true; + } + + if (this.#groups.get(id).visible) { + return false; + } + } + + return true; + } + + (0, _util.warn)(`Unknown optional content policy ${group.policy}.`); + return true; + } + + (0, _util.warn)(`Unknown group type ${group.type}.`); + return true; + } + + setVisibility(id, visible = true) { + if (!this.#groups.has(id)) { + (0, _util.warn)(`Optional content group not found: ${id}`); + return; + } + + this.#groups.get(id)._setVisible(INTERNAL, !!visible); + + this.#cachedHasInitialVisibility = null; + } + + get hasInitialVisibility() { + if (this.#cachedHasInitialVisibility !== null) { + return this.#cachedHasInitialVisibility; + } + + for (const [id, group] of this.#groups) { + const visible = this.#initialVisibility.get(id); + + if (group.visible !== visible) { + return this.#cachedHasInitialVisibility = false; + } + } + + return this.#cachedHasInitialVisibility = true; + } + + getOrder() { + if (!this.#groups.size) { + return null; + } + + if (this.#order) { + return this.#order.slice(); + } + + return [...this.#groups.keys()]; + } + + getGroups() { + return this.#groups.size > 0 ? (0, _util.objectFromMap)(this.#groups) : null; + } + + getGroup(id) { + return this.#groups.get(id) || null; + } + +} + +exports.OptionalContentConfig = OptionalContentConfig; + +/***/ }), +/* 19 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFDataTransportStream = void 0; + +var _util = __w_pdfjs_require__(1); + +var _display_utils = __w_pdfjs_require__(8); + +class PDFDataTransportStream { + constructor(params, pdfDataRangeTransport) { + (0, _util.assert)(pdfDataRangeTransport, 'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'); + this._queuedChunks = []; + this._progressiveDone = params.progressiveDone || false; + this._contentDispositionFilename = params.contentDispositionFilename || null; + const initialData = params.initialData; + + if (initialData?.length > 0) { + const buffer = new Uint8Array(initialData).buffer; + + this._queuedChunks.push(buffer); + } + + this._pdfDataRangeTransport = pdfDataRangeTransport; + this._isStreamingSupported = !params.disableStream; + this._isRangeSupported = !params.disableRange; + this._contentLength = params.length; + this._fullRequestReader = null; + this._rangeReaders = []; + + this._pdfDataRangeTransport.addRangeListener((begin, chunk) => { + this._onReceiveData({ + begin, + chunk + }); + }); + + this._pdfDataRangeTransport.addProgressListener((loaded, total) => { + this._onProgress({ + loaded, + total + }); + }); + + this._pdfDataRangeTransport.addProgressiveReadListener(chunk => { + this._onReceiveData({ + chunk + }); + }); + + this._pdfDataRangeTransport.addProgressiveDoneListener(() => { + this._onProgressiveDone(); + }); + + this._pdfDataRangeTransport.transportReady(); + } + + _onReceiveData(args) { + const buffer = new Uint8Array(args.chunk).buffer; + + if (args.begin === undefined) { + if (this._fullRequestReader) { + this._fullRequestReader._enqueue(buffer); + } else { + this._queuedChunks.push(buffer); + } + } else { + const found = this._rangeReaders.some(function (rangeReader) { + if (rangeReader._begin !== args.begin) { + return false; + } + + rangeReader._enqueue(buffer); + + return true; + }); + + (0, _util.assert)(found, "_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found."); + } + } + + get _progressiveDataLength() { + return this._fullRequestReader?._loaded ?? 0; + } + + _onProgress(evt) { + if (evt.total === undefined) { + const firstReader = this._rangeReaders[0]; + + if (firstReader?.onProgress) { + firstReader.onProgress({ + loaded: evt.loaded + }); + } + } else { + const fullReader = this._fullRequestReader; + + if (fullReader?.onProgress) { + fullReader.onProgress({ + loaded: evt.loaded, + total: evt.total + }); + } + } + } + + _onProgressiveDone() { + if (this._fullRequestReader) { + this._fullRequestReader.progressiveDone(); + } + + this._progressiveDone = true; + } + + _removeRangeReader(reader) { + const i = this._rangeReaders.indexOf(reader); + + if (i >= 0) { + this._rangeReaders.splice(i, 1); + } + } + + getFullReader() { + (0, _util.assert)(!this._fullRequestReader, "PDFDataTransportStream.getFullReader can only be called once."); + const queuedChunks = this._queuedChunks; + this._queuedChunks = null; + return new PDFDataTransportStreamReader(this, queuedChunks, this._progressiveDone, this._contentDispositionFilename); + } + + getRangeReader(begin, end) { + if (end <= this._progressiveDataLength) { + return null; + } + + const reader = new PDFDataTransportStreamRangeReader(this, begin, end); + + this._pdfDataRangeTransport.requestDataRange(begin, end); + + this._rangeReaders.push(reader); + + return reader; + } + + cancelAllRequests(reason) { + if (this._fullRequestReader) { + this._fullRequestReader.cancel(reason); + } + + for (const reader of this._rangeReaders.slice(0)) { + reader.cancel(reason); + } + + this._pdfDataRangeTransport.abort(); + } + +} + +exports.PDFDataTransportStream = PDFDataTransportStream; + +class PDFDataTransportStreamReader { + constructor(stream, queuedChunks, progressiveDone = false, contentDispositionFilename = null) { + this._stream = stream; + this._done = progressiveDone || false; + this._filename = (0, _display_utils.isPdfFile)(contentDispositionFilename) ? contentDispositionFilename : null; + this._queuedChunks = queuedChunks || []; + this._loaded = 0; + + for (const chunk of this._queuedChunks) { + this._loaded += chunk.byteLength; + } + + this._requests = []; + this._headersReady = Promise.resolve(); + stream._fullRequestReader = this; + this.onProgress = null; + } + + _enqueue(chunk) { + if (this._done) { + return; + } + + if (this._requests.length > 0) { + const requestCapability = this._requests.shift(); + + requestCapability.resolve({ + value: chunk, + done: false + }); + } else { + this._queuedChunks.push(chunk); + } + + this._loaded += chunk.byteLength; + } + + get headersReady() { + return this._headersReady; + } + + get filename() { + return this._filename; + } + + get isRangeSupported() { + return this._stream._isRangeSupported; + } + + get isStreamingSupported() { + return this._stream._isStreamingSupported; + } + + get contentLength() { + return this._stream._contentLength; + } + + async read() { + if (this._queuedChunks.length > 0) { + const chunk = this._queuedChunks.shift(); + + return { + value: chunk, + done: false + }; + } + + if (this._done) { + return { + value: undefined, + done: true + }; + } + + const requestCapability = (0, _util.createPromiseCapability)(); + + this._requests.push(requestCapability); + + return requestCapability.promise; + } + + cancel(reason) { + this._done = true; + + for (const requestCapability of this._requests) { + requestCapability.resolve({ + value: undefined, + done: true + }); + } + + this._requests.length = 0; + } + + progressiveDone() { + if (this._done) { + return; + } + + this._done = true; + } + +} + +class PDFDataTransportStreamRangeReader { + constructor(stream, begin, end) { + this._stream = stream; + this._begin = begin; + this._end = end; + this._queuedChunk = null; + this._requests = []; + this._done = false; + this.onProgress = null; + } + + _enqueue(chunk) { + if (this._done) { + return; + } + + if (this._requests.length === 0) { + this._queuedChunk = chunk; + } else { + const requestsCapability = this._requests.shift(); + + requestsCapability.resolve({ + value: chunk, + done: false + }); + + for (const requestCapability of this._requests) { + requestCapability.resolve({ + value: undefined, + done: true + }); + } + + this._requests.length = 0; + } + + this._done = true; + + this._stream._removeRangeReader(this); + } + + get isStreamingSupported() { + return false; + } + + async read() { + if (this._queuedChunk) { + const chunk = this._queuedChunk; + this._queuedChunk = null; + return { + value: chunk, + done: false + }; + } + + if (this._done) { + return { + value: undefined, + done: true + }; + } + + const requestCapability = (0, _util.createPromiseCapability)(); + + this._requests.push(requestCapability); + + return requestCapability.promise; + } + + cancel(reason) { + this._done = true; + + for (const requestCapability of this._requests) { + requestCapability.resolve({ + value: undefined, + done: true + }); + } + + this._requests.length = 0; + + this._stream._removeRangeReader(this); + } + +} + +/***/ }), +/* 20 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.XfaText = void 0; + +class XfaText { + static textContent(xfa) { + const items = []; + const output = { + items, + styles: Object.create(null) + }; + + function walk(node) { + if (!node) { + return; + } + + let str = null; + const name = node.name; + + if (name === "#text") { + str = node.value; + } else if (!XfaText.shouldBuildText(name)) { + return; + } else if (node?.attributes?.textContent) { + str = node.attributes.textContent; + } else if (node.value) { + str = node.value; + } + + if (str !== null) { + items.push({ + str + }); + } + + if (!node.children) { + return; + } + + for (const child of node.children) { + walk(child); + } + } + + walk(xfa); + return output; + } + + static shouldBuildText(name) { + return !(name === "textarea" || name === "input" || name === "option" || name === "select"); + } + +} + +exports.XfaText = XfaText; + +/***/ }), +/* 21 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.NodeStandardFontDataFactory = exports.NodeCanvasFactory = exports.NodeCMapReaderFactory = void 0; + +var _base_factory = __w_pdfjs_require__(9); + +; + +const fetchData = function (url) { + return new Promise((resolve, reject) => { + const fs = require("fs"); + + fs.readFile(url, (error, data) => { + if (error || !data) { + reject(new Error(error)); + return; + } + + resolve(new Uint8Array(data)); + }); + }); +}; + +class NodeCanvasFactory extends _base_factory.BaseCanvasFactory { + _createCanvas(width, height) { + const Canvas = require("canvas"); + + return Canvas.createCanvas(width, height); + } + +} + +exports.NodeCanvasFactory = NodeCanvasFactory; + +class NodeCMapReaderFactory extends _base_factory.BaseCMapReaderFactory { + _fetchData(url, compressionType) { + return fetchData(url).then(data => { + return { + cMapData: data, + compressionType + }; + }); + } + +} + +exports.NodeCMapReaderFactory = NodeCMapReaderFactory; + +class NodeStandardFontDataFactory extends _base_factory.BaseStandardFontDataFactory { + _fetchData(url) { + return fetchData(url); + } + +} + +exports.NodeStandardFontDataFactory = NodeStandardFontDataFactory; + +/***/ }), +/* 22 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.AnnotationEditorLayer = void 0; + +var _tools = __w_pdfjs_require__(7); + +var _util = __w_pdfjs_require__(1); + +var _freetext = __w_pdfjs_require__(23); + +var _ink = __w_pdfjs_require__(24); + +class AnnotationEditorLayer { + #accessibilityManager; + #allowClick = false; + #boundPointerup = this.pointerup.bind(this); + #boundPointerdown = this.pointerdown.bind(this); + #editors = new Map(); + #hadPointerDown = false; + #isCleaningUp = false; + #uiManager; + static _initialized = false; + + constructor(options) { + if (!AnnotationEditorLayer._initialized) { + AnnotationEditorLayer._initialized = true; + + _freetext.FreeTextEditor.initialize(options.l10n); + + _ink.InkEditor.initialize(options.l10n); + + options.uiManager.registerEditorTypes([_freetext.FreeTextEditor, _ink.InkEditor]); + } + + this.#uiManager = options.uiManager; + this.annotationStorage = options.annotationStorage; + this.pageIndex = options.pageIndex; + this.div = options.div; + this.#accessibilityManager = options.accessibilityManager; + this.#uiManager.addLayer(this); + } + + updateToolbar(mode) { + this.#uiManager.updateToolbar(mode); + } + + updateMode(mode = this.#uiManager.getMode()) { + this.#cleanup(); + + if (mode === _util.AnnotationEditorType.INK) { + this.addInkEditorIfNeeded(false); + this.disableClick(); + } else { + this.enableClick(); + } + + this.#uiManager.unselectAll(); + } + + addInkEditorIfNeeded(isCommitting) { + if (!isCommitting && this.#uiManager.getMode() !== _util.AnnotationEditorType.INK) { + return; + } + + if (!isCommitting) { + for (const editor of this.#editors.values()) { + if (editor.isEmpty()) { + editor.setInBackground(); + return; + } + } + } + + const editor = this.#createAndAddNewEditor({ + offsetX: 0, + offsetY: 0 + }); + editor.setInBackground(); + } + + setEditingState(isEditing) { + this.#uiManager.setEditingState(isEditing); + } + + addCommands(params) { + this.#uiManager.addCommands(params); + } + + enable() { + this.div.style.pointerEvents = "auto"; + + for (const editor of this.#editors.values()) { + editor.enableEditing(); + } + } + + disable() { + this.div.style.pointerEvents = "none"; + + for (const editor of this.#editors.values()) { + editor.disableEditing(); + } + } + + setActiveEditor(editor) { + const currentActive = this.#uiManager.getActive(); + + if (currentActive === editor) { + return; + } + + this.#uiManager.setActiveEditor(editor); + } + + enableClick() { + this.div.addEventListener("pointerdown", this.#boundPointerdown); + this.div.addEventListener("pointerup", this.#boundPointerup); + } + + disableClick() { + this.div.removeEventListener("pointerdown", this.#boundPointerdown); + this.div.removeEventListener("pointerup", this.#boundPointerup); + } + + attach(editor) { + this.#editors.set(editor.id, editor); + } + + detach(editor) { + this.#editors.delete(editor.id); + this.#accessibilityManager?.removePointerInTextLayer(editor.contentDiv); + } + + remove(editor) { + this.#uiManager.removeEditor(editor); + this.detach(editor); + this.annotationStorage.remove(editor.id); + editor.div.style.display = "none"; + setTimeout(() => { + editor.div.style.display = ""; + editor.div.remove(); + editor.isAttachedToDOM = false; + + if (document.activeElement === document.body) { + this.#uiManager.focusMainContainer(); + } + }, 0); + + if (!this.#isCleaningUp) { + this.addInkEditorIfNeeded(false); + } + } + + #changeParent(editor) { + if (editor.parent === this) { + return; + } + + this.attach(editor); + editor.pageIndex = this.pageIndex; + editor.parent?.detach(editor); + editor.parent = this; + + if (editor.div && editor.isAttachedToDOM) { + editor.div.remove(); + this.div.append(editor.div); + } + } + + add(editor) { + this.#changeParent(editor); + this.#uiManager.addEditor(editor); + this.attach(editor); + + if (!editor.isAttachedToDOM) { + const div = editor.render(); + this.div.append(div); + editor.isAttachedToDOM = true; + } + + this.moveEditorInDOM(editor); + editor.onceAdded(); + this.addToAnnotationStorage(editor); + } + + moveEditorInDOM(editor) { + this.#accessibilityManager?.moveElementInDOM(this.div, editor.div, editor.contentDiv, true); + } + + addToAnnotationStorage(editor) { + if (!editor.isEmpty() && !this.annotationStorage.has(editor.id)) { + this.annotationStorage.setValue(editor.id, editor); + } + } + + addOrRebuild(editor) { + if (editor.needsToBeRebuilt()) { + editor.rebuild(); + } else { + this.add(editor); + } + } + + addANewEditor(editor) { + const cmd = () => { + this.addOrRebuild(editor); + }; + + const undo = () => { + editor.remove(); + }; + + this.addCommands({ + cmd, + undo, + mustExec: true + }); + } + + addUndoableEditor(editor) { + const cmd = () => { + this.addOrRebuild(editor); + }; + + const undo = () => { + editor.remove(); + }; + + this.addCommands({ + cmd, + undo, + mustExec: false + }); + } + + getNextId() { + return this.#uiManager.getId(); + } + + #createNewEditor(params) { + switch (this.#uiManager.getMode()) { + case _util.AnnotationEditorType.FREETEXT: + return new _freetext.FreeTextEditor(params); + + case _util.AnnotationEditorType.INK: + return new _ink.InkEditor(params); + } + + return null; + } + + deserialize(data) { + switch (data.annotationType) { + case _util.AnnotationEditorType.FREETEXT: + return _freetext.FreeTextEditor.deserialize(data, this); + + case _util.AnnotationEditorType.INK: + return _ink.InkEditor.deserialize(data, this); + } + + return null; + } + + #createAndAddNewEditor(event) { + const id = this.getNextId(); + const editor = this.#createNewEditor({ + parent: this, + id, + x: event.offsetX, + y: event.offsetY + }); + + if (editor) { + this.add(editor); + } + + return editor; + } + + setSelected(editor) { + this.#uiManager.setSelected(editor); + } + + toggleSelected(editor) { + this.#uiManager.toggleSelected(editor); + } + + isSelected(editor) { + return this.#uiManager.isSelected(editor); + } + + unselect(editor) { + this.#uiManager.unselect(editor); + } + + pointerup(event) { + const isMac = _tools.KeyboardManager.platform.isMac; + + if (event.button !== 0 || event.ctrlKey && isMac) { + return; + } + + if (event.target !== this.div) { + return; + } + + if (!this.#hadPointerDown) { + return; + } + + this.#hadPointerDown = false; + + if (!this.#allowClick) { + this.#allowClick = true; + return; + } + + this.#createAndAddNewEditor(event); + } + + pointerdown(event) { + const isMac = _tools.KeyboardManager.platform.isMac; + + if (event.button !== 0 || event.ctrlKey && isMac) { + return; + } + + if (event.target !== this.div) { + return; + } + + this.#hadPointerDown = true; + const editor = this.#uiManager.getActive(); + this.#allowClick = !editor || editor.isEmpty(); + } + + drop(event) { + const id = event.dataTransfer.getData("text/plain"); + const editor = this.#uiManager.getEditor(id); + + if (!editor) { + return; + } + + event.preventDefault(); + event.dataTransfer.dropEffect = "move"; + this.#changeParent(editor); + const rect = this.div.getBoundingClientRect(); + const endX = event.clientX - rect.x; + const endY = event.clientY - rect.y; + editor.translate(endX - editor.startX, endY - editor.startY); + this.moveEditorInDOM(editor); + editor.div.focus(); + } + + dragover(event) { + event.preventDefault(); + } + + destroy() { + if (this.#uiManager.getActive()?.parent === this) { + this.#uiManager.setActiveEditor(null); + } + + for (const editor of this.#editors.values()) { + this.#accessibilityManager?.removePointerInTextLayer(editor.contentDiv); + editor.isAttachedToDOM = false; + editor.div.remove(); + editor.parent = null; + } + + this.div = null; + this.#editors.clear(); + this.#uiManager.removeLayer(this); + } + + #cleanup() { + this.#isCleaningUp = true; + + for (const editor of this.#editors.values()) { + if (editor.isEmpty()) { + editor.remove(); + } + } + + this.#isCleaningUp = false; + } + + render(parameters) { + this.viewport = parameters.viewport; + (0, _tools.bindEvents)(this, this.div, ["dragover", "drop"]); + this.setDimensions(); + + for (const editor of this.#uiManager.getEditors(this.pageIndex)) { + this.add(editor); + } + + this.updateMode(); + } + + update(parameters) { + this.viewport = parameters.viewport; + this.setDimensions(); + this.updateMode(); + } + + get scaleFactor() { + return this.viewport.scale; + } + + get pageDimensions() { + const [pageLLx, pageLLy, pageURx, pageURy] = this.viewport.viewBox; + const width = pageURx - pageLLx; + const height = pageURy - pageLLy; + return [width, height]; + } + + get viewportBaseDimensions() { + const { + width, + height, + rotation + } = this.viewport; + return rotation % 180 === 0 ? [width, height] : [height, width]; + } + + setDimensions() { + const { + width, + height, + rotation + } = this.viewport; + const flipOrientation = rotation % 180 !== 0, + widthStr = Math.floor(width) + "px", + heightStr = Math.floor(height) + "px"; + this.div.style.width = flipOrientation ? heightStr : widthStr; + this.div.style.height = flipOrientation ? widthStr : heightStr; + this.div.setAttribute("data-main-rotation", rotation); + } + +} + +exports.AnnotationEditorLayer = AnnotationEditorLayer; + +/***/ }), +/* 23 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.FreeTextEditor = void 0; + +var _util = __w_pdfjs_require__(1); + +var _tools = __w_pdfjs_require__(7); + +var _editor = __w_pdfjs_require__(6); + +class FreeTextEditor extends _editor.AnnotationEditor { + #boundEditorDivBlur = this.editorDivBlur.bind(this); + #boundEditorDivFocus = this.editorDivFocus.bind(this); + #boundEditorDivKeydown = this.editorDivKeydown.bind(this); + #color; + #content = ""; + #hasAlreadyBeenCommitted = false; + #fontSize; + static _freeTextDefaultContent = ""; + static _l10nPromise; + static _internalPadding = 0; + static _defaultColor = null; + static _defaultFontSize = 10; + static _keyboardManager = new _tools.KeyboardManager([[["ctrl+Enter", "mac+meta+Enter", "Escape", "mac+Escape"], FreeTextEditor.prototype.commitOrRemove]]); + static _type = "freetext"; + + constructor(params) { + super({ ...params, + name: "freeTextEditor" + }); + this.#color = params.color || FreeTextEditor._defaultColor || _editor.AnnotationEditor._defaultLineColor; + this.#fontSize = params.fontSize || FreeTextEditor._defaultFontSize; + } + + static initialize(l10n) { + this._l10nPromise = new Map(["free_text_default_content", "editor_free_text_aria_label"].map(str => [str, l10n.get(str)])); + const style = getComputedStyle(document.documentElement); + this._internalPadding = parseFloat(style.getPropertyValue("--freetext-padding")); + } + + static updateDefaultParams(type, value) { + switch (type) { + case _util.AnnotationEditorParamsType.FREETEXT_SIZE: + FreeTextEditor._defaultFontSize = value; + break; + + case _util.AnnotationEditorParamsType.FREETEXT_COLOR: + FreeTextEditor._defaultColor = value; + break; + } + } + + updateParams(type, value) { + switch (type) { + case _util.AnnotationEditorParamsType.FREETEXT_SIZE: + this.#updateFontSize(value); + break; + + case _util.AnnotationEditorParamsType.FREETEXT_COLOR: + this.#updateColor(value); + break; + } + } + + static get defaultPropertiesToUpdate() { + return [[_util.AnnotationEditorParamsType.FREETEXT_SIZE, FreeTextEditor._defaultFontSize], [_util.AnnotationEditorParamsType.FREETEXT_COLOR, FreeTextEditor._defaultColor || _editor.AnnotationEditor._defaultLineColor]]; + } + + get propertiesToUpdate() { + return [[_util.AnnotationEditorParamsType.FREETEXT_SIZE, this.#fontSize], [_util.AnnotationEditorParamsType.FREETEXT_COLOR, this.#color]]; + } + + #updateFontSize(fontSize) { + const setFontsize = size => { + this.editorDiv.style.fontSize = `calc(${size}px * var(--scale-factor))`; + this.translate(0, -(size - this.#fontSize) * this.parent.scaleFactor); + this.#fontSize = size; + this.#setEditorDimensions(); + }; + + const savedFontsize = this.#fontSize; + this.parent.addCommands({ + cmd: () => { + setFontsize(fontSize); + }, + undo: () => { + setFontsize(savedFontsize); + }, + mustExec: true, + type: _util.AnnotationEditorParamsType.FREETEXT_SIZE, + overwriteIfSameType: true, + keepUndo: true + }); + } + + #updateColor(color) { + const savedColor = this.#color; + this.parent.addCommands({ + cmd: () => { + this.#color = color; + this.editorDiv.style.color = color; + }, + undo: () => { + this.#color = savedColor; + this.editorDiv.style.color = savedColor; + }, + mustExec: true, + type: _util.AnnotationEditorParamsType.FREETEXT_COLOR, + overwriteIfSameType: true, + keepUndo: true + }); + } + + getInitialTranslation() { + return [-FreeTextEditor._internalPadding * this.parent.scaleFactor, -(FreeTextEditor._internalPadding + this.#fontSize) * this.parent.scaleFactor]; + } + + rebuild() { + super.rebuild(); + + if (this.div === null) { + return; + } + + if (!this.isAttachedToDOM) { + this.parent.add(this); + } + } + + enableEditMode() { + if (this.isInEditMode()) { + return; + } + + this.parent.setEditingState(false); + this.parent.updateToolbar(_util.AnnotationEditorType.FREETEXT); + super.enableEditMode(); + this.enableEditing(); + this.overlayDiv.classList.remove("enabled"); + this.editorDiv.contentEditable = true; + this.div.draggable = false; + this.editorDiv.addEventListener("keydown", this.#boundEditorDivKeydown); + this.editorDiv.addEventListener("focus", this.#boundEditorDivFocus); + this.editorDiv.addEventListener("blur", this.#boundEditorDivBlur); + } + + disableEditMode() { + if (!this.isInEditMode()) { + return; + } + + this.parent.setEditingState(true); + super.disableEditMode(); + this.disableEditing(); + this.overlayDiv.classList.add("enabled"); + this.editorDiv.contentEditable = false; + this.div.draggable = true; + this.editorDiv.removeEventListener("keydown", this.#boundEditorDivKeydown); + this.editorDiv.removeEventListener("focus", this.#boundEditorDivFocus); + this.editorDiv.removeEventListener("blur", this.#boundEditorDivBlur); + this.div.focus(); + this.isEditing = false; + } + + focusin(event) { + super.focusin(event); + + if (event.target !== this.editorDiv) { + this.editorDiv.focus(); + } + } + + onceAdded() { + if (this.width) { + return; + } + + this.enableEditMode(); + this.editorDiv.focus(); + } + + isEmpty() { + return !this.editorDiv || this.editorDiv.innerText.trim() === ""; + } + + remove() { + this.isEditing = false; + this.parent.setEditingState(true); + super.remove(); + } + + #extractText() { + const divs = this.editorDiv.getElementsByTagName("div"); + + if (divs.length === 0) { + return this.editorDiv.innerText; + } + + const buffer = []; + + for (let i = 0, ii = divs.length; i < ii; i++) { + const div = divs[i]; + const first = div.firstChild; + + if (first?.nodeName === "#text") { + buffer.push(first.data); + } else { + buffer.push(""); + } + } + + return buffer.join("\n"); + } + + #setEditorDimensions() { + const [parentWidth, parentHeight] = this.parent.viewportBaseDimensions; + const rect = this.div.getBoundingClientRect(); + this.width = rect.width / parentWidth; + this.height = rect.height / parentHeight; + } + + commit() { + super.commit(); + + if (!this.#hasAlreadyBeenCommitted) { + this.#hasAlreadyBeenCommitted = true; + this.parent.addUndoableEditor(this); + } + + this.disableEditMode(); + this.#content = this.#extractText().trimEnd(); + this.#setEditorDimensions(); + } + + shouldGetKeyboardEvents() { + return this.isInEditMode(); + } + + dblclick(event) { + this.enableEditMode(); + this.editorDiv.focus(); + } + + keydown(event) { + if (event.target === this.div && event.key === "Enter") { + this.enableEditMode(); + this.editorDiv.focus(); + } + } + + editorDivKeydown(event) { + FreeTextEditor._keyboardManager.exec(this, event); + } + + editorDivFocus(event) { + this.isEditing = true; + } + + editorDivBlur(event) { + this.isEditing = false; + } + + disableEditing() { + this.editorDiv.setAttribute("role", "comment"); + this.editorDiv.removeAttribute("aria-multiline"); + } + + enableEditing() { + this.editorDiv.setAttribute("role", "textbox"); + this.editorDiv.setAttribute("aria-multiline", true); + } + + render() { + if (this.div) { + return this.div; + } + + let baseX, baseY; + + if (this.width) { + baseX = this.x; + baseY = this.y; + } + + super.render(); + this.editorDiv = document.createElement("div"); + this.editorDiv.className = "internal"; + this.editorDiv.setAttribute("id", `${this.id}-editor`); + this.enableEditing(); + + FreeTextEditor._l10nPromise.get("editor_free_text_aria_label").then(msg => this.editorDiv?.setAttribute("aria-label", msg)); + + FreeTextEditor._l10nPromise.get("free_text_default_content").then(msg => this.editorDiv?.setAttribute("default-content", msg)); + + this.editorDiv.contentEditable = true; + const { + style + } = this.editorDiv; + style.fontSize = `calc(${this.#fontSize}px * var(--scale-factor))`; + style.color = this.#color; + this.div.append(this.editorDiv); + this.overlayDiv = document.createElement("div"); + this.overlayDiv.classList.add("overlay", "enabled"); + this.div.append(this.overlayDiv); + (0, _tools.bindEvents)(this, this.div, ["dblclick", "keydown"]); + + if (this.width) { + const [parentWidth, parentHeight] = this.parent.viewportBaseDimensions; + this.setAt(baseX * parentWidth, baseY * parentHeight, this.width * parentWidth, this.height * parentHeight); + + for (const line of this.#content.split("\n")) { + const div = document.createElement("div"); + div.append(line ? document.createTextNode(line) : document.createElement("br")); + this.editorDiv.append(div); + } + + this.div.draggable = true; + this.editorDiv.contentEditable = false; + } else { + this.div.draggable = false; + this.editorDiv.contentEditable = true; + } + + return this.div; + } + + get contentDiv() { + return this.editorDiv; + } + + static deserialize(data, parent) { + const editor = super.deserialize(data, parent); + editor.#fontSize = data.fontSize; + editor.#color = _util.Util.makeHexColor(...data.color); + editor.#content = data.value; + return editor; + } + + serialize() { + if (this.isEmpty()) { + return null; + } + + const padding = FreeTextEditor._internalPadding * this.parent.scaleFactor; + const rect = this.getRect(padding, padding); + + const color = _editor.AnnotationEditor._colorManager.convert(getComputedStyle(this.editorDiv).color); + + return { + annotationType: _util.AnnotationEditorType.FREETEXT, + color, + fontSize: this.#fontSize, + value: this.#content, + pageIndex: this.parent.pageIndex, + rect, + rotation: this.rotation + }; + } + +} + +exports.FreeTextEditor = FreeTextEditor; + +/***/ }), +/* 24 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.InkEditor = void 0; +Object.defineProperty(exports, "fitCurve", ({ + enumerable: true, + get: function () { + return _pdfjsFitCurve.fitCurve; + } +})); + +var _util = __w_pdfjs_require__(1); + +var _editor = __w_pdfjs_require__(6); + +var _pdfjsFitCurve = __w_pdfjs_require__(25); + +var _tools = __w_pdfjs_require__(7); + +const RESIZER_SIZE = 16; + +class InkEditor extends _editor.AnnotationEditor { + #aspectRatio = 0; + #baseHeight = 0; + #baseWidth = 0; + #boundCanvasPointermove = this.canvasPointermove.bind(this); + #boundCanvasPointerleave = this.canvasPointerleave.bind(this); + #boundCanvasPointerup = this.canvasPointerup.bind(this); + #boundCanvasPointerdown = this.canvasPointerdown.bind(this); + #disableEditing = false; + #isCanvasInitialized = false; + #lastPoint = null; + #observer = null; + #realWidth = 0; + #realHeight = 0; + #requestFrameCallback = null; + static _defaultColor = null; + static _defaultOpacity = 1; + static _defaultThickness = 1; + static _l10nPromise; + static _type = "ink"; + + constructor(params) { + super({ ...params, + name: "inkEditor" + }); + this.color = params.color || null; + this.thickness = params.thickness || null; + this.opacity = params.opacity || null; + this.paths = []; + this.bezierPath2D = []; + this.currentPath = []; + this.scaleFactor = 1; + this.translationX = this.translationY = 0; + this.x = 0; + this.y = 0; + } + + static initialize(l10n) { + this._l10nPromise = new Map(["editor_ink_canvas_aria_label", "editor_ink_aria_label"].map(str => [str, l10n.get(str)])); + } + + static updateDefaultParams(type, value) { + switch (type) { + case _util.AnnotationEditorParamsType.INK_THICKNESS: + InkEditor._defaultThickness = value; + break; + + case _util.AnnotationEditorParamsType.INK_COLOR: + InkEditor._defaultColor = value; + break; + + case _util.AnnotationEditorParamsType.INK_OPACITY: + InkEditor._defaultOpacity = value / 100; + break; + } + } + + updateParams(type, value) { + switch (type) { + case _util.AnnotationEditorParamsType.INK_THICKNESS: + this.#updateThickness(value); + break; + + case _util.AnnotationEditorParamsType.INK_COLOR: + this.#updateColor(value); + break; + + case _util.AnnotationEditorParamsType.INK_OPACITY: + this.#updateOpacity(value); + break; + } + } + + static get defaultPropertiesToUpdate() { + return [[_util.AnnotationEditorParamsType.INK_THICKNESS, InkEditor._defaultThickness], [_util.AnnotationEditorParamsType.INK_COLOR, InkEditor._defaultColor || _editor.AnnotationEditor._defaultLineColor], [_util.AnnotationEditorParamsType.INK_OPACITY, Math.round(InkEditor._defaultOpacity * 100)]]; + } + + get propertiesToUpdate() { + return [[_util.AnnotationEditorParamsType.INK_THICKNESS, this.thickness || InkEditor._defaultThickness], [_util.AnnotationEditorParamsType.INK_COLOR, this.color || InkEditor._defaultColor || _editor.AnnotationEditor._defaultLineColor], [_util.AnnotationEditorParamsType.INK_OPACITY, Math.round(100 * (this.opacity ?? InkEditor._defaultOpacity))]]; + } + + #updateThickness(thickness) { + const savedThickness = this.thickness; + this.parent.addCommands({ + cmd: () => { + this.thickness = thickness; + this.#fitToContent(); + }, + undo: () => { + this.thickness = savedThickness; + this.#fitToContent(); + }, + mustExec: true, + type: _util.AnnotationEditorParamsType.INK_THICKNESS, + overwriteIfSameType: true, + keepUndo: true + }); + } + + #updateColor(color) { + const savedColor = this.color; + this.parent.addCommands({ + cmd: () => { + this.color = color; + this.#redraw(); + }, + undo: () => { + this.color = savedColor; + this.#redraw(); + }, + mustExec: true, + type: _util.AnnotationEditorParamsType.INK_COLOR, + overwriteIfSameType: true, + keepUndo: true + }); + } + + #updateOpacity(opacity) { + opacity /= 100; + const savedOpacity = this.opacity; + this.parent.addCommands({ + cmd: () => { + this.opacity = opacity; + this.#redraw(); + }, + undo: () => { + this.opacity = savedOpacity; + this.#redraw(); + }, + mustExec: true, + type: _util.AnnotationEditorParamsType.INK_OPACITY, + overwriteIfSameType: true, + keepUndo: true + }); + } + + rebuild() { + super.rebuild(); + + if (this.div === null) { + return; + } + + if (!this.canvas) { + this.#createCanvas(); + this.#createObserver(); + } + + if (!this.isAttachedToDOM) { + this.parent.add(this); + this.#setCanvasDims(); + } + + this.#fitToContent(); + } + + remove() { + if (this.canvas === null) { + return; + } + + if (!this.isEmpty()) { + this.commit(); + } + + this.canvas.width = this.canvas.height = 0; + this.canvas.remove(); + this.canvas = null; + this.#observer.disconnect(); + this.#observer = null; + super.remove(); + } + + enableEditMode() { + if (this.#disableEditing || this.canvas === null) { + return; + } + + super.enableEditMode(); + this.div.draggable = false; + this.canvas.addEventListener("pointerdown", this.#boundCanvasPointerdown); + this.canvas.addEventListener("pointerup", this.#boundCanvasPointerup); + } + + disableEditMode() { + if (!this.isInEditMode() || this.canvas === null) { + return; + } + + super.disableEditMode(); + this.div.draggable = !this.isEmpty(); + this.div.classList.remove("editing"); + this.canvas.removeEventListener("pointerdown", this.#boundCanvasPointerdown); + this.canvas.removeEventListener("pointerup", this.#boundCanvasPointerup); + } + + onceAdded() { + this.div.draggable = !this.isEmpty(); + } + + isEmpty() { + return this.paths.length === 0 || this.paths.length === 1 && this.paths[0].length === 0; + } + + #getInitialBBox() { + const { + width, + height, + rotation + } = this.parent.viewport; + + switch (rotation) { + case 90: + return [0, width, width, height]; + + case 180: + return [width, height, width, height]; + + case 270: + return [height, 0, width, height]; + + default: + return [0, 0, width, height]; + } + } + + #setStroke() { + this.ctx.lineWidth = this.thickness * this.parent.scaleFactor / this.scaleFactor; + this.ctx.lineCap = "round"; + this.ctx.lineJoin = "round"; + this.ctx.miterLimit = 10; + this.ctx.strokeStyle = `${this.color}${(0, _tools.opacityToHex)(this.opacity)}`; + } + + #startDrawing(x, y) { + this.isEditing = true; + + if (!this.#isCanvasInitialized) { + this.#isCanvasInitialized = true; + this.#setCanvasDims(); + this.thickness ||= InkEditor._defaultThickness; + this.color ||= InkEditor._defaultColor || _editor.AnnotationEditor._defaultLineColor; + this.opacity ??= InkEditor._defaultOpacity; + } + + this.currentPath.push([x, y]); + this.#lastPoint = null; + this.#setStroke(); + this.ctx.beginPath(); + this.ctx.moveTo(x, y); + + this.#requestFrameCallback = () => { + if (!this.#requestFrameCallback) { + return; + } + + if (this.#lastPoint) { + if (this.isEmpty()) { + this.ctx.setTransform(1, 0, 0, 1, 0, 0); + this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height); + } else { + this.#redraw(); + } + + this.ctx.lineTo(...this.#lastPoint); + this.#lastPoint = null; + this.ctx.stroke(); + } + + window.requestAnimationFrame(this.#requestFrameCallback); + }; + + window.requestAnimationFrame(this.#requestFrameCallback); + } + + #draw(x, y) { + const [lastX, lastY] = this.currentPath.at(-1); + + if (x === lastX && y === lastY) { + return; + } + + this.currentPath.push([x, y]); + this.#lastPoint = [x, y]; + } + + #stopDrawing(x, y) { + this.ctx.closePath(); + this.#requestFrameCallback = null; + x = Math.min(Math.max(x, 0), this.canvas.width); + y = Math.min(Math.max(y, 0), this.canvas.height); + const [lastX, lastY] = this.currentPath.at(-1); + + if (x !== lastX || y !== lastY) { + this.currentPath.push([x, y]); + } + + let bezier; + + if (this.currentPath.length !== 1) { + bezier = (0, _pdfjsFitCurve.fitCurve)(this.currentPath, 30, null); + } else { + const xy = [x, y]; + bezier = [[xy, xy.slice(), xy.slice(), xy]]; + } + + const path2D = InkEditor.#buildPath2D(bezier); + this.currentPath.length = 0; + + const cmd = () => { + this.paths.push(bezier); + this.bezierPath2D.push(path2D); + this.rebuild(); + }; + + const undo = () => { + this.paths.pop(); + this.bezierPath2D.pop(); + + if (this.paths.length === 0) { + this.remove(); + } else { + if (!this.canvas) { + this.#createCanvas(); + this.#createObserver(); + } + + this.#fitToContent(); + } + }; + + this.parent.addCommands({ + cmd, + undo, + mustExec: true + }); + } + + #redraw() { + if (this.isEmpty()) { + this.#updateTransform(); + return; + } + + this.#setStroke(); + const { + canvas, + ctx + } = this; + ctx.setTransform(1, 0, 0, 1, 0, 0); + ctx.clearRect(0, 0, canvas.width, canvas.height); + this.#updateTransform(); + + for (const path of this.bezierPath2D) { + ctx.stroke(path); + } + } + + commit() { + if (this.#disableEditing) { + return; + } + + super.commit(); + this.isEditing = false; + this.disableEditMode(); + this.setInForeground(); + this.#disableEditing = true; + this.div.classList.add("disabled"); + this.#fitToContent(true); + this.parent.addInkEditorIfNeeded(true); + this.parent.moveEditorInDOM(this); + this.div.focus(); + } + + focusin(event) { + super.focusin(event); + this.enableEditMode(); + } + + canvasPointerdown(event) { + if (event.button !== 0 || !this.isInEditMode() || this.#disableEditing) { + return; + } + + this.setInForeground(); + + if (event.type !== "mouse") { + this.div.focus(); + } + + event.stopPropagation(); + this.canvas.addEventListener("pointerleave", this.#boundCanvasPointerleave); + this.canvas.addEventListener("pointermove", this.#boundCanvasPointermove); + this.#startDrawing(event.offsetX, event.offsetY); + } + + canvasPointermove(event) { + event.stopPropagation(); + this.#draw(event.offsetX, event.offsetY); + } + + canvasPointerup(event) { + if (event.button !== 0) { + return; + } + + if (this.isInEditMode() && this.currentPath.length !== 0) { + event.stopPropagation(); + this.#endDrawing(event); + this.setInBackground(); + } + } + + canvasPointerleave(event) { + this.#endDrawing(event); + this.setInBackground(); + } + + #endDrawing(event) { + this.#stopDrawing(event.offsetX, event.offsetY); + this.canvas.removeEventListener("pointerleave", this.#boundCanvasPointerleave); + this.canvas.removeEventListener("pointermove", this.#boundCanvasPointermove); + this.parent.addToAnnotationStorage(this); + } + + #createCanvas() { + this.canvas = document.createElement("canvas"); + this.canvas.width = this.canvas.height = 0; + this.canvas.className = "inkEditorCanvas"; + + InkEditor._l10nPromise.get("editor_ink_canvas_aria_label").then(msg => this.canvas?.setAttribute("aria-label", msg)); + + this.div.append(this.canvas); + this.ctx = this.canvas.getContext("2d"); + } + + #createObserver() { + this.#observer = new ResizeObserver(entries => { + const rect = entries[0].contentRect; + + if (rect.width && rect.height) { + this.setDimensions(rect.width, rect.height); + } + }); + this.#observer.observe(this.div); + } + + render() { + if (this.div) { + return this.div; + } + + let baseX, baseY; + + if (this.width) { + baseX = this.x; + baseY = this.y; + } + + super.render(); + + InkEditor._l10nPromise.get("editor_ink_aria_label").then(msg => this.div?.setAttribute("aria-label", msg)); + + const [x, y, w, h] = this.#getInitialBBox(); + this.setAt(x, y, 0, 0); + this.setDims(w, h); + this.#createCanvas(); + + if (this.width) { + const [parentWidth, parentHeight] = this.parent.viewportBaseDimensions; + this.setAt(baseX * parentWidth, baseY * parentHeight, this.width * parentWidth, this.height * parentHeight); + this.#isCanvasInitialized = true; + this.#setCanvasDims(); + this.setDims(this.width * parentWidth, this.height * parentHeight); + this.#redraw(); + this.#setMinDims(); + this.div.classList.add("disabled"); + } else { + this.div.classList.add("editing"); + this.enableEditMode(); + } + + this.#createObserver(); + return this.div; + } + + #setCanvasDims() { + if (!this.#isCanvasInitialized) { + return; + } + + const [parentWidth, parentHeight] = this.parent.viewportBaseDimensions; + this.canvas.width = Math.ceil(this.width * parentWidth); + this.canvas.height = Math.ceil(this.height * parentHeight); + this.#updateTransform(); + } + + setDimensions(width, height) { + const roundedWidth = Math.round(width); + const roundedHeight = Math.round(height); + + if (this.#realWidth === roundedWidth && this.#realHeight === roundedHeight) { + return; + } + + this.#realWidth = roundedWidth; + this.#realHeight = roundedHeight; + this.canvas.style.visibility = "hidden"; + + if (this.#aspectRatio && Math.abs(this.#aspectRatio - width / height) > 1e-2) { + height = Math.ceil(width / this.#aspectRatio); + this.setDims(width, height); + } + + const [parentWidth, parentHeight] = this.parent.viewportBaseDimensions; + this.width = width / parentWidth; + this.height = height / parentHeight; + + if (this.#disableEditing) { + this.#setScaleFactor(width, height); + } + + this.#setCanvasDims(); + this.#redraw(); + this.canvas.style.visibility = "visible"; + } + + #setScaleFactor(width, height) { + const padding = this.#getPadding(); + const scaleFactorW = (width - padding) / this.#baseWidth; + const scaleFactorH = (height - padding) / this.#baseHeight; + this.scaleFactor = Math.min(scaleFactorW, scaleFactorH); + } + + #updateTransform() { + const padding = this.#getPadding() / 2; + this.ctx.setTransform(this.scaleFactor, 0, 0, this.scaleFactor, this.translationX * this.scaleFactor + padding, this.translationY * this.scaleFactor + padding); + } + + static #buildPath2D(bezier) { + const path2D = new Path2D(); + + for (let i = 0, ii = bezier.length; i < ii; i++) { + const [first, control1, control2, second] = bezier[i]; + + if (i === 0) { + path2D.moveTo(...first); + } + + path2D.bezierCurveTo(control1[0], control1[1], control2[0], control2[1], second[0], second[1]); + } + + return path2D; + } + + #serializePaths(s, tx, ty, h) { + const NUMBER_OF_POINTS_ON_BEZIER_CURVE = 4; + const paths = []; + const padding = this.thickness / 2; + let buffer, points; + + for (const bezier of this.paths) { + buffer = []; + points = []; + + for (let i = 0, ii = bezier.length; i < ii; i++) { + const [first, control1, control2, second] = bezier[i]; + const p10 = s * (first[0] + tx) + padding; + const p11 = h - s * (first[1] + ty) - padding; + const p20 = s * (control1[0] + tx) + padding; + const p21 = h - s * (control1[1] + ty) - padding; + const p30 = s * (control2[0] + tx) + padding; + const p31 = h - s * (control2[1] + ty) - padding; + const p40 = s * (second[0] + tx) + padding; + const p41 = h - s * (second[1] + ty) - padding; + + if (i === 0) { + buffer.push(p10, p11); + points.push(p10, p11); + } + + buffer.push(p20, p21, p30, p31, p40, p41); + this.#extractPointsOnBezier(p10, p11, p20, p21, p30, p31, p40, p41, NUMBER_OF_POINTS_ON_BEZIER_CURVE, points); + } + + paths.push({ + bezier: buffer, + points + }); + } + + return paths; + } + + #extractPointsOnBezier(p10, p11, p20, p21, p30, p31, p40, p41, n, points) { + if (this.#isAlmostFlat(p10, p11, p20, p21, p30, p31, p40, p41)) { + points.push(p40, p41); + return; + } + + for (let i = 1; i < n - 1; i++) { + const t = i / n; + const mt = 1 - t; + let q10 = t * p10 + mt * p20; + let q11 = t * p11 + mt * p21; + let q20 = t * p20 + mt * p30; + let q21 = t * p21 + mt * p31; + const q30 = t * p30 + mt * p40; + const q31 = t * p31 + mt * p41; + q10 = t * q10 + mt * q20; + q11 = t * q11 + mt * q21; + q20 = t * q20 + mt * q30; + q21 = t * q21 + mt * q31; + q10 = t * q10 + mt * q20; + q11 = t * q11 + mt * q21; + points.push(q10, q11); + } + + points.push(p40, p41); + } + + #isAlmostFlat(p10, p11, p20, p21, p30, p31, p40, p41) { + const tol = 10; + const ax = (3 * p20 - 2 * p10 - p40) ** 2; + const ay = (3 * p21 - 2 * p11 - p41) ** 2; + const bx = (3 * p30 - p10 - 2 * p40) ** 2; + const by = (3 * p31 - p11 - 2 * p41) ** 2; + return Math.max(ax, bx) + Math.max(ay, by) <= tol; + } + + #getBbox() { + let xMin = Infinity; + let xMax = -Infinity; + let yMin = Infinity; + let yMax = -Infinity; + + for (const path of this.paths) { + for (const [first, control1, control2, second] of path) { + const bbox = _util.Util.bezierBoundingBox(...first, ...control1, ...control2, ...second); + + xMin = Math.min(xMin, bbox[0]); + yMin = Math.min(yMin, bbox[1]); + xMax = Math.max(xMax, bbox[2]); + yMax = Math.max(yMax, bbox[3]); + } + } + + return [xMin, yMin, xMax, yMax]; + } + + #getPadding() { + return this.#disableEditing ? Math.ceil(this.thickness * this.parent.scaleFactor) : 0; + } + + #fitToContent(firstTime = false) { + if (this.isEmpty()) { + return; + } + + if (!this.#disableEditing) { + this.#redraw(); + return; + } + + const bbox = this.#getBbox(); + const padding = this.#getPadding(); + this.#baseWidth = Math.max(RESIZER_SIZE, bbox[2] - bbox[0]); + this.#baseHeight = Math.max(RESIZER_SIZE, bbox[3] - bbox[1]); + const width = Math.ceil(padding + this.#baseWidth * this.scaleFactor); + const height = Math.ceil(padding + this.#baseHeight * this.scaleFactor); + const [parentWidth, parentHeight] = this.parent.viewportBaseDimensions; + this.width = width / parentWidth; + this.height = height / parentHeight; + this.#aspectRatio = width / height; + this.#setMinDims(); + const prevTranslationX = this.translationX; + const prevTranslationY = this.translationY; + this.translationX = -bbox[0]; + this.translationY = -bbox[1]; + this.#setCanvasDims(); + this.#redraw(); + this.#realWidth = width; + this.#realHeight = height; + this.setDims(width, height); + const unscaledPadding = firstTime ? padding / this.scaleFactor / 2 : 0; + this.translate(prevTranslationX - this.translationX - unscaledPadding, prevTranslationY - this.translationY - unscaledPadding); + } + + #setMinDims() { + const { + style + } = this.div; + + if (this.#aspectRatio >= 1) { + style.minHeight = `${RESIZER_SIZE}px`; + style.minWidth = `${Math.round(this.#aspectRatio * RESIZER_SIZE)}px`; + } else { + style.minWidth = `${RESIZER_SIZE}px`; + style.minHeight = `${Math.round(RESIZER_SIZE / this.#aspectRatio)}px`; + } + } + + static deserialize(data, parent) { + const editor = super.deserialize(data, parent); + editor.thickness = data.thickness; + editor.color = _util.Util.makeHexColor(...data.color); + editor.opacity = data.opacity; + const [pageWidth, pageHeight] = parent.pageDimensions; + const width = editor.width * pageWidth; + const height = editor.height * pageHeight; + const scaleFactor = parent.scaleFactor; + const padding = data.thickness / 2; + editor.#aspectRatio = width / height; + editor.#disableEditing = true; + editor.#realWidth = Math.round(width); + editor.#realHeight = Math.round(height); + + for (const { + bezier + } of data.paths) { + const path = []; + editor.paths.push(path); + let p0 = scaleFactor * (bezier[0] - padding); + let p1 = scaleFactor * (height - bezier[1] - padding); + + for (let i = 2, ii = bezier.length; i < ii; i += 6) { + const p10 = scaleFactor * (bezier[i] - padding); + const p11 = scaleFactor * (height - bezier[i + 1] - padding); + const p20 = scaleFactor * (bezier[i + 2] - padding); + const p21 = scaleFactor * (height - bezier[i + 3] - padding); + const p30 = scaleFactor * (bezier[i + 4] - padding); + const p31 = scaleFactor * (height - bezier[i + 5] - padding); + path.push([[p0, p1], [p10, p11], [p20, p21], [p30, p31]]); + p0 = p30; + p1 = p31; + } + + const path2D = this.#buildPath2D(path); + editor.bezierPath2D.push(path2D); + } + + const bbox = editor.#getBbox(); + editor.#baseWidth = Math.max(RESIZER_SIZE, bbox[2] - bbox[0]); + editor.#baseHeight = Math.max(RESIZER_SIZE, bbox[3] - bbox[1]); + editor.#setScaleFactor(width, height); + return editor; + } + + serialize() { + if (this.isEmpty()) { + return null; + } + + const rect = this.getRect(0, 0); + const height = this.rotation % 180 === 0 ? rect[3] - rect[1] : rect[2] - rect[0]; + + const color = _editor.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle); + + return { + annotationType: _util.AnnotationEditorType.INK, + color, + thickness: this.thickness, + opacity: this.opacity, + paths: this.#serializePaths(this.scaleFactor / this.parent.scaleFactor, this.translationX, this.translationY, height), + pageIndex: this.parent.pageIndex, + rect, + rotation: this.rotation + }; + } + +} + +exports.InkEditor = InkEditor; + +/***/ }), +/* 25 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.fitCurve = void 0; + +const fitCurve = __w_pdfjs_require__(26); + +exports.fitCurve = fitCurve; + +/***/ }), +/* 26 */ +/***/ ((module) => { + + + +function fitCurve(points, maxError, progressCallback) { + if (!Array.isArray(points)) { + throw new TypeError("First argument should be an array"); + } + + points.forEach(point => { + if (!Array.isArray(point) || point.some(item => typeof item !== 'number') || point.length !== points[0].length) { + throw Error("Each point should be an array of numbers. Each point should have the same amount of numbers."); + } + }); + points = points.filter((point, i) => i === 0 || !point.every((val, j) => val === points[i - 1][j])); + + if (points.length < 2) { + return []; + } + + const len = points.length; + const leftTangent = createTangent(points[1], points[0]); + const rightTangent = createTangent(points[len - 2], points[len - 1]); + return fitCubic(points, leftTangent, rightTangent, maxError, progressCallback); +} + +function fitCubic(points, leftTangent, rightTangent, error, progressCallback) { + const MaxIterations = 20; + var bezCurve, u, uPrime, maxError, prevErr, splitPoint, prevSplit, centerVector, toCenterTangent, fromCenterTangent, beziers, dist, i; + + if (points.length === 2) { + dist = maths.vectorLen(maths.subtract(points[0], points[1])) / 3.0; + bezCurve = [points[0], maths.addArrays(points[0], maths.mulItems(leftTangent, dist)), maths.addArrays(points[1], maths.mulItems(rightTangent, dist)), points[1]]; + return [bezCurve]; + } + + u = chordLengthParameterize(points); + [bezCurve, maxError, splitPoint] = generateAndReport(points, u, u, leftTangent, rightTangent, progressCallback); + + if (maxError === 0 || maxError < error) { + return [bezCurve]; + } + + if (maxError < error * error) { + uPrime = u; + prevErr = maxError; + prevSplit = splitPoint; + + for (i = 0; i < MaxIterations; i++) { + uPrime = reparameterize(bezCurve, points, uPrime); + [bezCurve, maxError, splitPoint] = generateAndReport(points, u, uPrime, leftTangent, rightTangent, progressCallback); + + if (maxError < error) { + return [bezCurve]; + } else if (splitPoint === prevSplit) { + let errChange = maxError / prevErr; + + if (errChange > .9999 && errChange < 1.0001) { + break; + } + } + + prevErr = maxError; + prevSplit = splitPoint; + } + } + + beziers = []; + centerVector = maths.subtract(points[splitPoint - 1], points[splitPoint + 1]); + + if (centerVector.every(val => val === 0)) { + centerVector = maths.subtract(points[splitPoint - 1], points[splitPoint]); + [centerVector[0], centerVector[1]] = [-centerVector[1], centerVector[0]]; + } + + toCenterTangent = maths.normalize(centerVector); + fromCenterTangent = maths.mulItems(toCenterTangent, -1); + beziers = beziers.concat(fitCubic(points.slice(0, splitPoint + 1), leftTangent, toCenterTangent, error, progressCallback)); + beziers = beziers.concat(fitCubic(points.slice(splitPoint), fromCenterTangent, rightTangent, error, progressCallback)); + return beziers; +} + +; + +function generateAndReport(points, paramsOrig, paramsPrime, leftTangent, rightTangent, progressCallback) { + var bezCurve, maxError, splitPoint; + bezCurve = generateBezier(points, paramsPrime, leftTangent, rightTangent, progressCallback); + [maxError, splitPoint] = computeMaxError(points, bezCurve, paramsOrig); + + if (progressCallback) { + progressCallback({ + bez: bezCurve, + points: points, + params: paramsOrig, + maxErr: maxError, + maxPoint: splitPoint + }); + } + + return [bezCurve, maxError, splitPoint]; +} + +function generateBezier(points, parameters, leftTangent, rightTangent) { + var bezCurve, + A, + a, + C, + X, + det_C0_C1, + det_C0_X, + det_X_C1, + alpha_l, + alpha_r, + epsilon, + segLength, + i, + len, + tmp, + u, + ux, + firstPoint = points[0], + lastPoint = points[points.length - 1]; + bezCurve = [firstPoint, null, null, lastPoint]; + A = maths.zeros_Xx2x2(parameters.length); + + for (i = 0, len = parameters.length; i < len; i++) { + u = parameters[i]; + ux = 1 - u; + a = A[i]; + a[0] = maths.mulItems(leftTangent, 3 * u * (ux * ux)); + a[1] = maths.mulItems(rightTangent, 3 * ux * (u * u)); + } + + C = [[0, 0], [0, 0]]; + X = [0, 0]; + + for (i = 0, len = points.length; i < len; i++) { + u = parameters[i]; + a = A[i]; + C[0][0] += maths.dot(a[0], a[0]); + C[0][1] += maths.dot(a[0], a[1]); + C[1][0] += maths.dot(a[0], a[1]); + C[1][1] += maths.dot(a[1], a[1]); + tmp = maths.subtract(points[i], bezier.q([firstPoint, firstPoint, lastPoint, lastPoint], u)); + X[0] += maths.dot(a[0], tmp); + X[1] += maths.dot(a[1], tmp); + } + + det_C0_C1 = C[0][0] * C[1][1] - C[1][0] * C[0][1]; + det_C0_X = C[0][0] * X[1] - C[1][0] * X[0]; + det_X_C1 = X[0] * C[1][1] - X[1] * C[0][1]; + alpha_l = det_C0_C1 === 0 ? 0 : det_X_C1 / det_C0_C1; + alpha_r = det_C0_C1 === 0 ? 0 : det_C0_X / det_C0_C1; + segLength = maths.vectorLen(maths.subtract(firstPoint, lastPoint)); + epsilon = 1.0e-6 * segLength; + + if (alpha_l < epsilon || alpha_r < epsilon) { + bezCurve[1] = maths.addArrays(firstPoint, maths.mulItems(leftTangent, segLength / 3.0)); + bezCurve[2] = maths.addArrays(lastPoint, maths.mulItems(rightTangent, segLength / 3.0)); + } else { + bezCurve[1] = maths.addArrays(firstPoint, maths.mulItems(leftTangent, alpha_l)); + bezCurve[2] = maths.addArrays(lastPoint, maths.mulItems(rightTangent, alpha_r)); + } + + return bezCurve; +} + +; + +function reparameterize(bezier, points, parameters) { + return parameters.map((p, i) => newtonRaphsonRootFind(bezier, points[i], p)); +} + +; + +function newtonRaphsonRootFind(bez, point, u) { + var d = maths.subtract(bezier.q(bez, u), point), + qprime = bezier.qprime(bez, u), + numerator = maths.mulMatrix(d, qprime), + denominator = maths.sum(maths.squareItems(qprime)) + 2 * maths.mulMatrix(d, bezier.qprimeprime(bez, u)); + + if (denominator === 0) { + return u; + } else { + return u - numerator / denominator; + } +} + +; + +function chordLengthParameterize(points) { + var u = [], + currU, + prevU, + prevP; + points.forEach((p, i) => { + currU = i ? prevU + maths.vectorLen(maths.subtract(p, prevP)) : 0; + u.push(currU); + prevU = currU; + prevP = p; + }); + u = u.map(x => x / prevU); + return u; +} + +; + +function computeMaxError(points, bez, parameters) { + var dist, maxDist, splitPoint, v, i, count, point, t; + maxDist = 0; + splitPoint = Math.floor(points.length / 2); + const t_distMap = mapTtoRelativeDistances(bez, 10); + + for (i = 0, count = points.length; i < count; i++) { + point = points[i]; + t = find_t(bez, parameters[i], t_distMap, 10); + v = maths.subtract(bezier.q(bez, t), point); + dist = v[0] * v[0] + v[1] * v[1]; + + if (dist > maxDist) { + maxDist = dist; + splitPoint = i; + } + } + + return [maxDist, splitPoint]; +} + +; + +var mapTtoRelativeDistances = function (bez, B_parts) { + var B_t_curr; + var B_t_dist = [0]; + var B_t_prev = bez[0]; + var sumLen = 0; + + for (var i = 1; i <= B_parts; i++) { + B_t_curr = bezier.q(bez, i / B_parts); + sumLen += maths.vectorLen(maths.subtract(B_t_curr, B_t_prev)); + B_t_dist.push(sumLen); + B_t_prev = B_t_curr; + } + + B_t_dist = B_t_dist.map(x => x / sumLen); + return B_t_dist; +}; + +function find_t(bez, param, t_distMap, B_parts) { + if (param < 0) { + return 0; + } + + if (param > 1) { + return 1; + } + + var lenMax, lenMin, tMax, tMin, t; + + for (var i = 1; i <= B_parts; i++) { + if (param <= t_distMap[i]) { + tMin = (i - 1) / B_parts; + tMax = i / B_parts; + lenMin = t_distMap[i - 1]; + lenMax = t_distMap[i]; + t = (param - lenMin) / (lenMax - lenMin) * (tMax - tMin) + tMin; + break; + } + } + + return t; +} + +function createTangent(pointA, pointB) { + return maths.normalize(maths.subtract(pointA, pointB)); +} + +class maths { + static zeros_Xx2x2(x) { + var zs = []; + + while (x--) { + zs.push([0, 0]); + } + + return zs; + } + + static mulItems(items, multiplier) { + return items.map(x => x * multiplier); + } + + static mulMatrix(m1, m2) { + return m1.reduce((sum, x1, i) => sum + x1 * m2[i], 0); + } + + static subtract(arr1, arr2) { + return arr1.map((x1, i) => x1 - arr2[i]); + } + + static addArrays(arr1, arr2) { + return arr1.map((x1, i) => x1 + arr2[i]); + } + + static addItems(items, addition) { + return items.map(x => x + addition); + } + + static sum(items) { + return items.reduce((sum, x) => sum + x); + } + + static dot(m1, m2) { + return maths.mulMatrix(m1, m2); + } + + static vectorLen(v) { + return Math.hypot(...v); + } + + static divItems(items, divisor) { + return items.map(x => x / divisor); + } + + static squareItems(items) { + return items.map(x => x * x); + } + + static normalize(v) { + return this.divItems(v, this.vectorLen(v)); + } + +} + +class bezier { + static q(ctrlPoly, t) { + var tx = 1.0 - t; + var pA = maths.mulItems(ctrlPoly[0], tx * tx * tx), + pB = maths.mulItems(ctrlPoly[1], 3 * tx * tx * t), + pC = maths.mulItems(ctrlPoly[2], 3 * tx * t * t), + pD = maths.mulItems(ctrlPoly[3], t * t * t); + return maths.addArrays(maths.addArrays(pA, pB), maths.addArrays(pC, pD)); + } + + static qprime(ctrlPoly, t) { + var tx = 1.0 - t; + var pA = maths.mulItems(maths.subtract(ctrlPoly[1], ctrlPoly[0]), 3 * tx * tx), + pB = maths.mulItems(maths.subtract(ctrlPoly[2], ctrlPoly[1]), 6 * tx * t), + pC = maths.mulItems(maths.subtract(ctrlPoly[3], ctrlPoly[2]), 3 * t * t); + return maths.addArrays(maths.addArrays(pA, pB), pC); + } + + static qprimeprime(ctrlPoly, t) { + return maths.addArrays(maths.mulItems(maths.addArrays(maths.subtract(ctrlPoly[2], maths.mulItems(ctrlPoly[1], 2)), ctrlPoly[0]), 6 * (1.0 - t)), maths.mulItems(maths.addArrays(maths.subtract(ctrlPoly[3], maths.mulItems(ctrlPoly[2], 2)), ctrlPoly[1]), 6 * t)); + } + +} + +module.exports = fitCurve; +module.exports.fitCubic = fitCubic; +module.exports.createTangent = createTangent; + +/***/ }), +/* 27 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.AnnotationLayer = void 0; + +var _util = __w_pdfjs_require__(1); + +var _display_utils = __w_pdfjs_require__(8); + +var _annotation_storage = __w_pdfjs_require__(5); + +var _scripting_utils = __w_pdfjs_require__(28); + +var _xfa_layer = __w_pdfjs_require__(29); + +const DEFAULT_TAB_INDEX = 1000; +const DEFAULT_FONT_SIZE = 9; +const GetElementsByNameSet = new WeakSet(); + +function getRectDims(rect) { + return { + width: rect[2] - rect[0], + height: rect[3] - rect[1] + }; +} + +class AnnotationElementFactory { + static create(parameters) { + const subtype = parameters.data.annotationType; + + switch (subtype) { + case _util.AnnotationType.LINK: + return new LinkAnnotationElement(parameters); + + case _util.AnnotationType.TEXT: + return new TextAnnotationElement(parameters); + + case _util.AnnotationType.WIDGET: + const fieldType = parameters.data.fieldType; + + switch (fieldType) { + case "Tx": + return new TextWidgetAnnotationElement(parameters); + + case "Btn": + if (parameters.data.radioButton) { + return new RadioButtonWidgetAnnotationElement(parameters); + } else if (parameters.data.checkBox) { + return new CheckboxWidgetAnnotationElement(parameters); + } + + return new PushButtonWidgetAnnotationElement(parameters); + + case "Ch": + return new ChoiceWidgetAnnotationElement(parameters); + } + + return new WidgetAnnotationElement(parameters); + + case _util.AnnotationType.POPUP: + return new PopupAnnotationElement(parameters); + + case _util.AnnotationType.FREETEXT: + return new FreeTextAnnotationElement(parameters); + + case _util.AnnotationType.LINE: + return new LineAnnotationElement(parameters); + + case _util.AnnotationType.SQUARE: + return new SquareAnnotationElement(parameters); + + case _util.AnnotationType.CIRCLE: + return new CircleAnnotationElement(parameters); + + case _util.AnnotationType.POLYLINE: + return new PolylineAnnotationElement(parameters); + + case _util.AnnotationType.CARET: + return new CaretAnnotationElement(parameters); + + case _util.AnnotationType.INK: + return new InkAnnotationElement(parameters); + + case _util.AnnotationType.POLYGON: + return new PolygonAnnotationElement(parameters); + + case _util.AnnotationType.HIGHLIGHT: + return new HighlightAnnotationElement(parameters); + + case _util.AnnotationType.UNDERLINE: + return new UnderlineAnnotationElement(parameters); + + case _util.AnnotationType.SQUIGGLY: + return new SquigglyAnnotationElement(parameters); + + case _util.AnnotationType.STRIKEOUT: + return new StrikeOutAnnotationElement(parameters); + + case _util.AnnotationType.STAMP: + return new StampAnnotationElement(parameters); + + case _util.AnnotationType.FILEATTACHMENT: + return new FileAttachmentAnnotationElement(parameters); + + default: + return new AnnotationElement(parameters); + } + } + +} + +class AnnotationElement { + constructor(parameters, { + isRenderable = false, + ignoreBorder = false, + createQuadrilaterals = false + } = {}) { + this.isRenderable = isRenderable; + this.data = parameters.data; + this.layer = parameters.layer; + this.page = parameters.page; + this.viewport = parameters.viewport; + this.linkService = parameters.linkService; + this.downloadManager = parameters.downloadManager; + this.imageResourcesPath = parameters.imageResourcesPath; + this.renderForms = parameters.renderForms; + this.svgFactory = parameters.svgFactory; + this.annotationStorage = parameters.annotationStorage; + this.enableScripting = parameters.enableScripting; + this.hasJSActions = parameters.hasJSActions; + this._fieldObjects = parameters.fieldObjects; + this._mouseState = parameters.mouseState; + + if (isRenderable) { + this.container = this._createContainer(ignoreBorder); + } + + if (createQuadrilaterals) { + this.quadrilaterals = this._createQuadrilaterals(ignoreBorder); + } + } + + _createContainer(ignoreBorder = false) { + const data = this.data, + page = this.page, + viewport = this.viewport; + const container = document.createElement("section"); + const { + width, + height + } = getRectDims(data.rect); + const [pageLLx, pageLLy, pageURx, pageURy] = viewport.viewBox; + const pageWidth = pageURx - pageLLx; + const pageHeight = pageURy - pageLLy; + container.setAttribute("data-annotation-id", data.id); + + const rect = _util.Util.normalizeRect([data.rect[0], page.view[3] - data.rect[1] + page.view[1], data.rect[2], page.view[3] - data.rect[3] + page.view[1]]); + + if (!ignoreBorder && data.borderStyle.width > 0) { + container.style.borderWidth = `${data.borderStyle.width}px`; + const horizontalRadius = data.borderStyle.horizontalCornerRadius; + const verticalRadius = data.borderStyle.verticalCornerRadius; + + if (horizontalRadius > 0 || verticalRadius > 0) { + const radius = `calc(${horizontalRadius}px * var(--scale-factor)) / calc(${verticalRadius}px * var(--scale-factor))`; + container.style.borderRadius = radius; + } else if (this instanceof RadioButtonWidgetAnnotationElement) { + const radius = `calc(${width}px * var(--scale-factor)) / calc(${height}px * var(--scale-factor))`; + container.style.borderRadius = radius; + } + + switch (data.borderStyle.style) { + case _util.AnnotationBorderStyleType.SOLID: + container.style.borderStyle = "solid"; + break; + + case _util.AnnotationBorderStyleType.DASHED: + container.style.borderStyle = "dashed"; + break; + + case _util.AnnotationBorderStyleType.BEVELED: + (0, _util.warn)("Unimplemented border style: beveled"); + break; + + case _util.AnnotationBorderStyleType.INSET: + (0, _util.warn)("Unimplemented border style: inset"); + break; + + case _util.AnnotationBorderStyleType.UNDERLINE: + container.style.borderBottomStyle = "solid"; + break; + + default: + break; + } + + const borderColor = data.borderColor || null; + + if (borderColor) { + container.style.borderColor = _util.Util.makeHexColor(borderColor[0] | 0, borderColor[1] | 0, borderColor[2] | 0); + } else { + container.style.borderWidth = 0; + } + } + + container.style.left = `${100 * (rect[0] - pageLLx) / pageWidth}%`; + container.style.top = `${100 * (rect[1] - pageLLy) / pageHeight}%`; + const { + rotation + } = data; + + if (data.hasOwnCanvas || rotation === 0) { + container.style.width = `${100 * width / pageWidth}%`; + container.style.height = `${100 * height / pageHeight}%`; + } else { + this.setRotation(rotation, container); + } + + return container; + } + + setRotation(angle, container = this.container) { + const [pageLLx, pageLLy, pageURx, pageURy] = this.viewport.viewBox; + const pageWidth = pageURx - pageLLx; + const pageHeight = pageURy - pageLLy; + const { + width, + height + } = getRectDims(this.data.rect); + let elementWidth, elementHeight; + + if (angle % 180 === 0) { + elementWidth = 100 * width / pageWidth; + elementHeight = 100 * height / pageHeight; + } else { + elementWidth = 100 * height / pageWidth; + elementHeight = 100 * width / pageHeight; + } + + container.style.width = `${elementWidth}%`; + container.style.height = `${elementHeight}%`; + container.setAttribute("data-main-rotation", (360 - angle) % 360); + } + + get _commonActions() { + const setColor = (jsName, styleName, event) => { + const color = event.detail[jsName]; + event.target.style[styleName] = _scripting_utils.ColorConverters[`${color[0]}_HTML`](color.slice(1)); + }; + + return (0, _util.shadow)(this, "_commonActions", { + display: event => { + const hidden = event.detail.display % 2 === 1; + this.container.style.visibility = hidden ? "hidden" : "visible"; + this.annotationStorage.setValue(this.data.id, { + hidden, + print: event.detail.display === 0 || event.detail.display === 3 + }); + }, + print: event => { + this.annotationStorage.setValue(this.data.id, { + print: event.detail.print + }); + }, + hidden: event => { + this.container.style.visibility = event.detail.hidden ? "hidden" : "visible"; + this.annotationStorage.setValue(this.data.id, { + hidden: event.detail.hidden + }); + }, + focus: event => { + setTimeout(() => event.target.focus({ + preventScroll: false + }), 0); + }, + userName: event => { + event.target.title = event.detail.userName; + }, + readonly: event => { + if (event.detail.readonly) { + event.target.setAttribute("readonly", ""); + } else { + event.target.removeAttribute("readonly"); + } + }, + required: event => { + this._setRequired(event.target, event.detail.required); + }, + bgColor: event => { + setColor("bgColor", "backgroundColor", event); + }, + fillColor: event => { + setColor("fillColor", "backgroundColor", event); + }, + fgColor: event => { + setColor("fgColor", "color", event); + }, + textColor: event => { + setColor("textColor", "color", event); + }, + borderColor: event => { + setColor("borderColor", "borderColor", event); + }, + strokeColor: event => { + setColor("strokeColor", "borderColor", event); + }, + rotation: event => { + const angle = event.detail.rotation; + this.setRotation(angle); + this.annotationStorage.setValue(this.data.id, { + rotation: angle + }); + } + }); + } + + _dispatchEventFromSandbox(actions, jsEvent) { + const commonActions = this._commonActions; + + for (const name of Object.keys(jsEvent.detail)) { + const action = actions[name] || commonActions[name]; + + if (action) { + action(jsEvent); + } + } + } + + _setDefaultPropertiesFromJS(element) { + if (!this.enableScripting) { + return; + } + + const storedData = this.annotationStorage.getRawValue(this.data.id); + + if (!storedData) { + return; + } + + const commonActions = this._commonActions; + + for (const [actionName, detail] of Object.entries(storedData)) { + const action = commonActions[actionName]; + + if (action) { + const eventProxy = { + detail: { + [actionName]: detail + }, + target: element + }; + action(eventProxy); + delete storedData[actionName]; + } + } + } + + _createQuadrilaterals(ignoreBorder = false) { + if (!this.data.quadPoints) { + return null; + } + + const quadrilaterals = []; + const savedRect = this.data.rect; + + for (const quadPoint of this.data.quadPoints) { + this.data.rect = [quadPoint[2].x, quadPoint[2].y, quadPoint[1].x, quadPoint[1].y]; + quadrilaterals.push(this._createContainer(ignoreBorder)); + } + + this.data.rect = savedRect; + return quadrilaterals; + } + + _createPopup(trigger, data) { + let container = this.container; + + if (this.quadrilaterals) { + trigger = trigger || this.quadrilaterals; + container = this.quadrilaterals[0]; + } + + if (!trigger) { + trigger = document.createElement("div"); + trigger.className = "popupTriggerArea"; + container.append(trigger); + } + + const popupElement = new PopupElement({ + container, + trigger, + color: data.color, + titleObj: data.titleObj, + modificationDate: data.modificationDate, + contentsObj: data.contentsObj, + richText: data.richText, + hideWrapper: true + }); + const popup = popupElement.render(); + popup.style.left = "100%"; + container.append(popup); + } + + _renderQuadrilaterals(className) { + for (const quadrilateral of this.quadrilaterals) { + quadrilateral.className = className; + } + + return this.quadrilaterals; + } + + render() { + (0, _util.unreachable)("Abstract method `AnnotationElement.render` called"); + } + + _getElementsByName(name, skipId = null) { + const fields = []; + + if (this._fieldObjects) { + const fieldObj = this._fieldObjects[name]; + + if (fieldObj) { + for (const { + page, + id, + exportValues + } of fieldObj) { + if (page === -1) { + continue; + } + + if (id === skipId) { + continue; + } + + const exportValue = typeof exportValues === "string" ? exportValues : null; + const domElement = document.querySelector(`[data-element-id="${id}"]`); + + if (domElement && !GetElementsByNameSet.has(domElement)) { + (0, _util.warn)(`_getElementsByName - element not allowed: ${id}`); + continue; + } + + fields.push({ + id, + exportValue, + domElement + }); + } + } + + return fields; + } + + for (const domElement of document.getElementsByName(name)) { + const { + id, + exportValue + } = domElement; + + if (id === skipId) { + continue; + } + + if (!GetElementsByNameSet.has(domElement)) { + continue; + } + + fields.push({ + id, + exportValue, + domElement + }); + } + + return fields; + } + + static get platform() { + const platform = typeof navigator !== "undefined" ? navigator.platform : ""; + return (0, _util.shadow)(this, "platform", { + isWin: platform.includes("Win"), + isMac: platform.includes("Mac") + }); + } + +} + +class LinkAnnotationElement extends AnnotationElement { + constructor(parameters, options = null) { + super(parameters, { + isRenderable: true, + ignoreBorder: !!options?.ignoreBorder, + createQuadrilaterals: true + }); + this.isTooltipOnly = parameters.data.isTooltipOnly; + } + + render() { + const { + data, + linkService + } = this; + const link = document.createElement("a"); + link.setAttribute("data-element-id", data.id); + let isBound = false; + + if (data.url) { + linkService.addLinkAttributes(link, data.url, data.newWindow); + isBound = true; + } else if (data.action) { + this._bindNamedAction(link, data.action); + + isBound = true; + } else if (data.dest) { + this._bindLink(link, data.dest); + + isBound = true; + } else { + if (data.actions && (data.actions.Action || data.actions["Mouse Up"] || data.actions["Mouse Down"]) && this.enableScripting && this.hasJSActions) { + this._bindJSAction(link, data); + + isBound = true; + } + + if (data.resetForm) { + this._bindResetFormAction(link, data.resetForm); + + isBound = true; + } else if (this.isTooltipOnly && !isBound) { + this._bindLink(link, ""); + + isBound = true; + } + } + + if (this.quadrilaterals) { + return this._renderQuadrilaterals("linkAnnotation").map((quadrilateral, index) => { + const linkElement = index === 0 ? link : link.cloneNode(); + quadrilateral.append(linkElement); + return quadrilateral; + }); + } + + this.container.className = "linkAnnotation"; + + if (isBound) { + this.container.append(link); + } + + return this.container; + } + + _bindLink(link, destination) { + link.href = this.linkService.getDestinationHash(destination); + + link.onclick = () => { + if (destination) { + this.linkService.goToDestination(destination); + } + + return false; + }; + + if (destination || destination === "") { + link.className = "internalLink"; + } + } + + _bindNamedAction(link, action) { + link.href = this.linkService.getAnchorUrl(""); + + link.onclick = () => { + this.linkService.executeNamedAction(action); + return false; + }; + + link.className = "internalLink"; + } + + _bindJSAction(link, data) { + link.href = this.linkService.getAnchorUrl(""); + const map = new Map([["Action", "onclick"], ["Mouse Up", "onmouseup"], ["Mouse Down", "onmousedown"]]); + + for (const name of Object.keys(data.actions)) { + const jsName = map.get(name); + + if (!jsName) { + continue; + } + + link[jsName] = () => { + this.linkService.eventBus?.dispatch("dispatcheventinsandbox", { + source: this, + detail: { + id: data.id, + name + } + }); + return false; + }; + } + + if (!link.onclick) { + link.onclick = () => false; + } + + link.className = "internalLink"; + } + + _bindResetFormAction(link, resetForm) { + const otherClickAction = link.onclick; + + if (!otherClickAction) { + link.href = this.linkService.getAnchorUrl(""); + } + + link.className = "internalLink"; + + if (!this._fieldObjects) { + (0, _util.warn)(`_bindResetFormAction - "resetForm" action not supported, ` + "ensure that the `fieldObjects` parameter is provided."); + + if (!otherClickAction) { + link.onclick = () => false; + } + + return; + } + + link.onclick = () => { + if (otherClickAction) { + otherClickAction(); + } + + const { + fields: resetFormFields, + refs: resetFormRefs, + include + } = resetForm; + const allFields = []; + + if (resetFormFields.length !== 0 || resetFormRefs.length !== 0) { + const fieldIds = new Set(resetFormRefs); + + for (const fieldName of resetFormFields) { + const fields = this._fieldObjects[fieldName] || []; + + for (const { + id + } of fields) { + fieldIds.add(id); + } + } + + for (const fields of Object.values(this._fieldObjects)) { + for (const field of fields) { + if (fieldIds.has(field.id) === include) { + allFields.push(field); + } + } + } + } else { + for (const fields of Object.values(this._fieldObjects)) { + allFields.push(...fields); + } + } + + const storage = this.annotationStorage; + const allIds = []; + + for (const field of allFields) { + const { + id + } = field; + allIds.push(id); + + switch (field.type) { + case "text": + { + const value = field.defaultValue || ""; + storage.setValue(id, { + value + }); + break; + } + + case "checkbox": + case "radiobutton": + { + const value = field.defaultValue === field.exportValues; + storage.setValue(id, { + value + }); + break; + } + + case "combobox": + case "listbox": + { + const value = field.defaultValue || ""; + storage.setValue(id, { + value + }); + break; + } + + default: + continue; + } + + const domElement = document.querySelector(`[data-element-id="${id}"]`); + + if (!domElement) { + continue; + } else if (!GetElementsByNameSet.has(domElement)) { + (0, _util.warn)(`_bindResetFormAction - element not allowed: ${id}`); + continue; + } + + domElement.dispatchEvent(new Event("resetform")); + } + + if (this.enableScripting) { + this.linkService.eventBus?.dispatch("dispatcheventinsandbox", { + source: this, + detail: { + id: "app", + ids: allIds, + name: "ResetForm" + } + }); + } + + return false; + }; + } + +} + +class TextAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.hasPopup || parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable + }); + } + + render() { + this.container.className = "textAnnotation"; + const image = document.createElement("img"); + image.src = this.imageResourcesPath + "annotation-" + this.data.name.toLowerCase() + ".svg"; + image.alt = "[{{type}} Annotation]"; + image.dataset.l10nId = "text_annotation_type"; + image.dataset.l10nArgs = JSON.stringify({ + type: this.data.name + }); + + if (!this.data.hasPopup) { + this._createPopup(image, this.data); + } + + this.container.append(image); + return this.container; + } + +} + +class WidgetAnnotationElement extends AnnotationElement { + render() { + if (this.data.alternativeText) { + this.container.title = this.data.alternativeText; + } + + return this.container; + } + + _getKeyModifier(event) { + const { + isWin, + isMac + } = AnnotationElement.platform; + return isWin && event.ctrlKey || isMac && event.metaKey; + } + + _setEventListener(element, baseName, eventName, valueGetter) { + if (baseName.includes("mouse")) { + element.addEventListener(baseName, event => { + this.linkService.eventBus?.dispatch("dispatcheventinsandbox", { + source: this, + detail: { + id: this.data.id, + name: eventName, + value: valueGetter(event), + shift: event.shiftKey, + modifier: this._getKeyModifier(event) + } + }); + }); + } else { + element.addEventListener(baseName, event => { + this.linkService.eventBus?.dispatch("dispatcheventinsandbox", { + source: this, + detail: { + id: this.data.id, + name: eventName, + value: valueGetter(event) + } + }); + }); + } + } + + _setEventListeners(element, names, getter) { + for (const [baseName, eventName] of names) { + if (eventName === "Action" || this.data.actions?.[eventName]) { + this._setEventListener(element, baseName, eventName, getter); + } + } + } + + _setBackgroundColor(element) { + const color = this.data.backgroundColor || null; + element.style.backgroundColor = color === null ? "transparent" : _util.Util.makeHexColor(color[0], color[1], color[2]); + } + + _setTextStyle(element) { + const TEXT_ALIGNMENT = ["left", "center", "right"]; + const { + fontColor + } = this.data.defaultAppearanceData; + const fontSize = this.data.defaultAppearanceData.fontSize || DEFAULT_FONT_SIZE; + const style = element.style; + let computedFontSize; + + if (this.data.multiLine) { + const height = Math.abs(this.data.rect[3] - this.data.rect[1]); + const numberOfLines = Math.round(height / (_util.LINE_FACTOR * fontSize)) || 1; + const lineHeight = height / numberOfLines; + computedFontSize = Math.min(fontSize, Math.round(lineHeight / _util.LINE_FACTOR)); + } else { + const height = Math.abs(this.data.rect[3] - this.data.rect[1]); + computedFontSize = Math.min(fontSize, Math.round(height / _util.LINE_FACTOR)); + } + + style.fontSize = `calc(${computedFontSize}px * var(--scale-factor))`; + style.color = _util.Util.makeHexColor(fontColor[0], fontColor[1], fontColor[2]); + + if (this.data.textAlignment !== null) { + style.textAlign = TEXT_ALIGNMENT[this.data.textAlignment]; + } + } + + _setRequired(element, isRequired) { + if (isRequired) { + element.setAttribute("required", true); + } else { + element.removeAttribute("required"); + } + + element.setAttribute("aria-required", isRequired); + } + +} + +class TextWidgetAnnotationElement extends WidgetAnnotationElement { + constructor(parameters) { + const isRenderable = parameters.renderForms || !parameters.data.hasAppearance && !!parameters.data.fieldValue; + super(parameters, { + isRenderable + }); + } + + setPropertyOnSiblings(base, key, value, keyInStorage) { + const storage = this.annotationStorage; + + for (const element of this._getElementsByName(base.name, base.id)) { + if (element.domElement) { + element.domElement[key] = value; + } + + storage.setValue(element.id, { + [keyInStorage]: value + }); + } + } + + render() { + const storage = this.annotationStorage; + const id = this.data.id; + this.container.className = "textWidgetAnnotation"; + let element = null; + + if (this.renderForms) { + const storedData = storage.getValue(id, { + value: this.data.fieldValue + }); + let textContent = storedData.formattedValue || storedData.value || ""; + const maxLen = storage.getValue(id, { + charLimit: this.data.maxLen + }).charLimit; + + if (maxLen && textContent.length > maxLen) { + textContent = textContent.slice(0, maxLen); + } + + const elementData = { + userValue: textContent, + formattedValue: null, + valueOnFocus: "" + }; + + if (this.data.multiLine) { + element = document.createElement("textarea"); + element.textContent = textContent; + + if (this.data.doNotScroll) { + element.style.overflowY = "hidden"; + } + } else { + element = document.createElement("input"); + element.type = "text"; + element.setAttribute("value", textContent); + + if (this.data.doNotScroll) { + element.style.overflowX = "hidden"; + } + } + + GetElementsByNameSet.add(element); + element.setAttribute("data-element-id", id); + element.disabled = this.data.readOnly; + element.name = this.data.fieldName; + element.tabIndex = DEFAULT_TAB_INDEX; + + this._setRequired(element, this.data.required); + + if (maxLen) { + element.maxLength = maxLen; + } + + element.addEventListener("input", event => { + storage.setValue(id, { + value: event.target.value + }); + this.setPropertyOnSiblings(element, "value", event.target.value, "value"); + }); + element.addEventListener("resetform", event => { + const defaultValue = this.data.defaultFieldValue ?? ""; + element.value = elementData.userValue = defaultValue; + elementData.formattedValue = null; + }); + + let blurListener = event => { + const { + formattedValue + } = elementData; + + if (formattedValue !== null && formattedValue !== undefined) { + event.target.value = formattedValue; + } + + event.target.scrollLeft = 0; + }; + + if (this.enableScripting && this.hasJSActions) { + element.addEventListener("focus", event => { + if (elementData.userValue) { + event.target.value = elementData.userValue; + } + + elementData.valueOnFocus = event.target.value; + }); + element.addEventListener("updatefromsandbox", jsEvent => { + const actions = { + value(event) { + elementData.userValue = event.detail.value ?? ""; + storage.setValue(id, { + value: elementData.userValue.toString() + }); + event.target.value = elementData.userValue; + }, + + formattedValue(event) { + const { + formattedValue + } = event.detail; + elementData.formattedValue = formattedValue; + + if (formattedValue !== null && formattedValue !== undefined && event.target !== document.activeElement) { + event.target.value = formattedValue; + } + + storage.setValue(id, { + formattedValue + }); + }, + + selRange(event) { + event.target.setSelectionRange(...event.detail.selRange); + }, + + charLimit: event => { + const { + charLimit + } = event.detail; + const { + target + } = event; + + if (charLimit === 0) { + target.removeAttribute("maxLength"); + return; + } + + target.setAttribute("maxLength", charLimit); + let value = elementData.userValue; + + if (!value || value.length <= charLimit) { + return; + } + + value = value.slice(0, charLimit); + target.value = elementData.userValue = value; + storage.setValue(id, { + value + }); + this.linkService.eventBus?.dispatch("dispatcheventinsandbox", { + source: this, + detail: { + id, + name: "Keystroke", + value, + willCommit: true, + commitKey: 1, + selStart: target.selectionStart, + selEnd: target.selectionEnd + } + }); + } + }; + + this._dispatchEventFromSandbox(actions, jsEvent); + }); + element.addEventListener("keydown", event => { + let commitKey = -1; + + if (event.key === "Escape") { + commitKey = 0; + } else if (event.key === "Enter") { + commitKey = 2; + } else if (event.key === "Tab") { + commitKey = 3; + } + + if (commitKey === -1) { + return; + } + + const { + value + } = event.target; + + if (elementData.valueOnFocus === value) { + return; + } + + elementData.userValue = value; + this.linkService.eventBus?.dispatch("dispatcheventinsandbox", { + source: this, + detail: { + id, + name: "Keystroke", + value, + willCommit: true, + commitKey, + selStart: event.target.selectionStart, + selEnd: event.target.selectionEnd + } + }); + }); + const _blurListener = blurListener; + blurListener = null; + element.addEventListener("blur", event => { + const { + value + } = event.target; + elementData.userValue = value; + + if (this._mouseState.isDown && elementData.valueOnFocus !== value) { + this.linkService.eventBus?.dispatch("dispatcheventinsandbox", { + source: this, + detail: { + id, + name: "Keystroke", + value, + willCommit: true, + commitKey: 1, + selStart: event.target.selectionStart, + selEnd: event.target.selectionEnd + } + }); + } + + _blurListener(event); + }); + + if (this.data.actions?.Keystroke) { + element.addEventListener("beforeinput", event => { + const { + data, + target + } = event; + const { + value, + selectionStart, + selectionEnd + } = target; + let selStart = selectionStart, + selEnd = selectionEnd; + + switch (event.inputType) { + case "deleteWordBackward": + { + const match = value.substring(0, selectionStart).match(/\w*[^\w]*$/); + + if (match) { + selStart -= match[0].length; + } + + break; + } + + case "deleteWordForward": + { + const match = value.substring(selectionStart).match(/^[^\w]*\w*/); + + if (match) { + selEnd += match[0].length; + } + + break; + } + + case "deleteContentBackward": + if (selectionStart === selectionEnd) { + selStart -= 1; + } + + break; + + case "deleteContentForward": + if (selectionStart === selectionEnd) { + selEnd += 1; + } + + break; + } + + event.preventDefault(); + this.linkService.eventBus?.dispatch("dispatcheventinsandbox", { + source: this, + detail: { + id, + name: "Keystroke", + value, + change: data || "", + willCommit: false, + selStart, + selEnd + } + }); + }); + } + + this._setEventListeners(element, [["focus", "Focus"], ["blur", "Blur"], ["mousedown", "Mouse Down"], ["mouseenter", "Mouse Enter"], ["mouseleave", "Mouse Exit"], ["mouseup", "Mouse Up"]], event => event.target.value); + } + + if (blurListener) { + element.addEventListener("blur", blurListener); + } + + if (this.data.comb) { + const fieldWidth = this.data.rect[2] - this.data.rect[0]; + const combWidth = fieldWidth / maxLen; + element.classList.add("comb"); + element.style.letterSpacing = `calc(${combWidth}px * var(--scale-factor) - 1ch)`; + } + } else { + element = document.createElement("div"); + element.textContent = this.data.fieldValue; + element.style.verticalAlign = "middle"; + element.style.display = "table-cell"; + } + + this._setTextStyle(element); + + this._setBackgroundColor(element); + + this._setDefaultPropertiesFromJS(element); + + this.container.append(element); + return this.container; + } + +} + +class CheckboxWidgetAnnotationElement extends WidgetAnnotationElement { + constructor(parameters) { + super(parameters, { + isRenderable: parameters.renderForms + }); + } + + render() { + const storage = this.annotationStorage; + const data = this.data; + const id = data.id; + let value = storage.getValue(id, { + value: data.exportValue === data.fieldValue + }).value; + + if (typeof value === "string") { + value = value !== "Off"; + storage.setValue(id, { + value + }); + } + + this.container.className = "buttonWidgetAnnotation checkBox"; + const element = document.createElement("input"); + GetElementsByNameSet.add(element); + element.setAttribute("data-element-id", id); + element.disabled = data.readOnly; + + this._setRequired(element, this.data.required); + + element.type = "checkbox"; + element.name = data.fieldName; + + if (value) { + element.setAttribute("checked", true); + } + + element.setAttribute("exportValue", data.exportValue); + element.tabIndex = DEFAULT_TAB_INDEX; + element.addEventListener("change", event => { + const { + name, + checked + } = event.target; + + for (const checkbox of this._getElementsByName(name, id)) { + const curChecked = checked && checkbox.exportValue === data.exportValue; + + if (checkbox.domElement) { + checkbox.domElement.checked = curChecked; + } + + storage.setValue(checkbox.id, { + value: curChecked + }); + } + + storage.setValue(id, { + value: checked + }); + }); + element.addEventListener("resetform", event => { + const defaultValue = data.defaultFieldValue || "Off"; + event.target.checked = defaultValue === data.exportValue; + }); + + if (this.enableScripting && this.hasJSActions) { + element.addEventListener("updatefromsandbox", jsEvent => { + const actions = { + value(event) { + event.target.checked = event.detail.value !== "Off"; + storage.setValue(id, { + value: event.target.checked + }); + } + + }; + + this._dispatchEventFromSandbox(actions, jsEvent); + }); + + this._setEventListeners(element, [["change", "Validate"], ["change", "Action"], ["focus", "Focus"], ["blur", "Blur"], ["mousedown", "Mouse Down"], ["mouseenter", "Mouse Enter"], ["mouseleave", "Mouse Exit"], ["mouseup", "Mouse Up"]], event => event.target.checked); + } + + this._setBackgroundColor(element); + + this._setDefaultPropertiesFromJS(element); + + this.container.append(element); + return this.container; + } + +} + +class RadioButtonWidgetAnnotationElement extends WidgetAnnotationElement { + constructor(parameters) { + super(parameters, { + isRenderable: parameters.renderForms + }); + } + + render() { + this.container.className = "buttonWidgetAnnotation radioButton"; + const storage = this.annotationStorage; + const data = this.data; + const id = data.id; + let value = storage.getValue(id, { + value: data.fieldValue === data.buttonValue + }).value; + + if (typeof value === "string") { + value = value !== data.buttonValue; + storage.setValue(id, { + value + }); + } + + const element = document.createElement("input"); + GetElementsByNameSet.add(element); + element.setAttribute("data-element-id", id); + element.disabled = data.readOnly; + + this._setRequired(element, this.data.required); + + element.type = "radio"; + element.name = data.fieldName; + + if (value) { + element.setAttribute("checked", true); + } + + element.tabIndex = DEFAULT_TAB_INDEX; + element.addEventListener("change", event => { + const { + name, + checked + } = event.target; + + for (const radio of this._getElementsByName(name, id)) { + storage.setValue(radio.id, { + value: false + }); + } + + storage.setValue(id, { + value: checked + }); + }); + element.addEventListener("resetform", event => { + const defaultValue = data.defaultFieldValue; + event.target.checked = defaultValue !== null && defaultValue !== undefined && defaultValue === data.buttonValue; + }); + + if (this.enableScripting && this.hasJSActions) { + const pdfButtonValue = data.buttonValue; + element.addEventListener("updatefromsandbox", jsEvent => { + const actions = { + value: event => { + const checked = pdfButtonValue === event.detail.value; + + for (const radio of this._getElementsByName(event.target.name)) { + const curChecked = checked && radio.id === id; + + if (radio.domElement) { + radio.domElement.checked = curChecked; + } + + storage.setValue(radio.id, { + value: curChecked + }); + } + } + }; + + this._dispatchEventFromSandbox(actions, jsEvent); + }); + + this._setEventListeners(element, [["change", "Validate"], ["change", "Action"], ["focus", "Focus"], ["blur", "Blur"], ["mousedown", "Mouse Down"], ["mouseenter", "Mouse Enter"], ["mouseleave", "Mouse Exit"], ["mouseup", "Mouse Up"]], event => event.target.checked); + } + + this._setBackgroundColor(element); + + this._setDefaultPropertiesFromJS(element); + + this.container.append(element); + return this.container; + } + +} + +class PushButtonWidgetAnnotationElement extends LinkAnnotationElement { + constructor(parameters) { + super(parameters, { + ignoreBorder: parameters.data.hasAppearance + }); + } + + render() { + const container = super.render(); + container.className = "buttonWidgetAnnotation pushButton"; + + if (this.data.alternativeText) { + container.title = this.data.alternativeText; + } + + const linkElement = container.lastChild; + + if (this.enableScripting && this.hasJSActions && linkElement) { + this._setDefaultPropertiesFromJS(linkElement); + + linkElement.addEventListener("updatefromsandbox", jsEvent => { + this._dispatchEventFromSandbox({}, jsEvent); + }); + } + + return container; + } + +} + +class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement { + constructor(parameters) { + super(parameters, { + isRenderable: parameters.renderForms + }); + } + + render() { + this.container.className = "choiceWidgetAnnotation"; + const storage = this.annotationStorage; + const id = this.data.id; + const storedData = storage.getValue(id, { + value: this.data.fieldValue + }); + const selectElement = document.createElement("select"); + GetElementsByNameSet.add(selectElement); + selectElement.setAttribute("data-element-id", id); + selectElement.disabled = this.data.readOnly; + + this._setRequired(selectElement, this.data.required); + + selectElement.name = this.data.fieldName; + selectElement.tabIndex = DEFAULT_TAB_INDEX; + let addAnEmptyEntry = this.data.combo && this.data.options.length > 0; + + if (!this.data.combo) { + selectElement.size = this.data.options.length; + + if (this.data.multiSelect) { + selectElement.multiple = true; + } + } + + selectElement.addEventListener("resetform", event => { + const defaultValue = this.data.defaultFieldValue; + + for (const option of selectElement.options) { + option.selected = option.value === defaultValue; + } + }); + + for (const option of this.data.options) { + const optionElement = document.createElement("option"); + optionElement.textContent = option.displayValue; + optionElement.value = option.exportValue; + + if (storedData.value.includes(option.exportValue)) { + optionElement.setAttribute("selected", true); + addAnEmptyEntry = false; + } + + selectElement.append(optionElement); + } + + let removeEmptyEntry = null; + + if (addAnEmptyEntry) { + const noneOptionElement = document.createElement("option"); + noneOptionElement.value = " "; + noneOptionElement.setAttribute("hidden", true); + noneOptionElement.setAttribute("selected", true); + selectElement.prepend(noneOptionElement); + + removeEmptyEntry = () => { + noneOptionElement.remove(); + selectElement.removeEventListener("input", removeEmptyEntry); + removeEmptyEntry = null; + }; + + selectElement.addEventListener("input", removeEmptyEntry); + } + + const getValue = (event, isExport) => { + const name = isExport ? "value" : "textContent"; + const options = event.target.options; + + if (!event.target.multiple) { + return options.selectedIndex === -1 ? null : options[options.selectedIndex][name]; + } + + return Array.prototype.filter.call(options, option => option.selected).map(option => option[name]); + }; + + const getItems = event => { + const options = event.target.options; + return Array.prototype.map.call(options, option => { + return { + displayValue: option.textContent, + exportValue: option.value + }; + }); + }; + + if (this.enableScripting && this.hasJSActions) { + selectElement.addEventListener("updatefromsandbox", jsEvent => { + const actions = { + value(event) { + removeEmptyEntry?.(); + const value = event.detail.value; + const values = new Set(Array.isArray(value) ? value : [value]); + + for (const option of selectElement.options) { + option.selected = values.has(option.value); + } + + storage.setValue(id, { + value: getValue(event, true) + }); + }, + + multipleSelection(event) { + selectElement.multiple = true; + }, + + remove(event) { + const options = selectElement.options; + const index = event.detail.remove; + options[index].selected = false; + selectElement.remove(index); + + if (options.length > 0) { + const i = Array.prototype.findIndex.call(options, option => option.selected); + + if (i === -1) { + options[0].selected = true; + } + } + + storage.setValue(id, { + value: getValue(event, true), + items: getItems(event) + }); + }, + + clear(event) { + while (selectElement.length !== 0) { + selectElement.remove(0); + } + + storage.setValue(id, { + value: null, + items: [] + }); + }, + + insert(event) { + const { + index, + displayValue, + exportValue + } = event.detail.insert; + const selectChild = selectElement.children[index]; + const optionElement = document.createElement("option"); + optionElement.textContent = displayValue; + optionElement.value = exportValue; + + if (selectChild) { + selectChild.before(optionElement); + } else { + selectElement.append(optionElement); + } + + storage.setValue(id, { + value: getValue(event, true), + items: getItems(event) + }); + }, + + items(event) { + const { + items + } = event.detail; + + while (selectElement.length !== 0) { + selectElement.remove(0); + } + + for (const item of items) { + const { + displayValue, + exportValue + } = item; + const optionElement = document.createElement("option"); + optionElement.textContent = displayValue; + optionElement.value = exportValue; + selectElement.append(optionElement); + } + + if (selectElement.options.length > 0) { + selectElement.options[0].selected = true; + } + + storage.setValue(id, { + value: getValue(event, true), + items: getItems(event) + }); + }, + + indices(event) { + const indices = new Set(event.detail.indices); + + for (const option of event.target.options) { + option.selected = indices.has(option.index); + } + + storage.setValue(id, { + value: getValue(event, true) + }); + }, + + editable(event) { + event.target.disabled = !event.detail.editable; + } + + }; + + this._dispatchEventFromSandbox(actions, jsEvent); + }); + selectElement.addEventListener("input", event => { + const exportValue = getValue(event, true); + const value = getValue(event, false); + storage.setValue(id, { + value: exportValue + }); + this.linkService.eventBus?.dispatch("dispatcheventinsandbox", { + source: this, + detail: { + id, + name: "Keystroke", + value, + changeEx: exportValue, + willCommit: true, + commitKey: 1, + keyDown: false + } + }); + }); + + this._setEventListeners(selectElement, [["focus", "Focus"], ["blur", "Blur"], ["mousedown", "Mouse Down"], ["mouseenter", "Mouse Enter"], ["mouseleave", "Mouse Exit"], ["mouseup", "Mouse Up"], ["input", "Action"]], event => event.target.checked); + } else { + selectElement.addEventListener("input", function (event) { + storage.setValue(id, { + value: getValue(event, true) + }); + }); + } + + if (this.data.combo) { + this._setTextStyle(selectElement); + } else {} + + this._setBackgroundColor(selectElement); + + this._setDefaultPropertiesFromJS(selectElement); + + this.container.append(selectElement); + return this.container; + } + +} + +class PopupAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable + }); + } + + render() { + const IGNORE_TYPES = ["Line", "Square", "Circle", "PolyLine", "Polygon", "Ink"]; + this.container.className = "popupAnnotation"; + + if (IGNORE_TYPES.includes(this.data.parentType)) { + return this.container; + } + + const selector = `[data-annotation-id="${this.data.parentId}"]`; + const parentElements = this.layer.querySelectorAll(selector); + + if (parentElements.length === 0) { + return this.container; + } + + const popup = new PopupElement({ + container: this.container, + trigger: Array.from(parentElements), + color: this.data.color, + titleObj: this.data.titleObj, + modificationDate: this.data.modificationDate, + contentsObj: this.data.contentsObj, + richText: this.data.richText + }); + const page = this.page; + + const rect = _util.Util.normalizeRect([this.data.parentRect[0], page.view[3] - this.data.parentRect[1] + page.view[1], this.data.parentRect[2], page.view[3] - this.data.parentRect[3] + page.view[1]]); + + const popupLeft = rect[0] + this.data.parentRect[2] - this.data.parentRect[0]; + const popupTop = rect[1]; + const [pageLLx, pageLLy, pageURx, pageURy] = this.viewport.viewBox; + const pageWidth = pageURx - pageLLx; + const pageHeight = pageURy - pageLLy; + this.container.style.left = `${100 * (popupLeft - pageLLx) / pageWidth}%`; + this.container.style.top = `${100 * (popupTop - pageLLy) / pageHeight}%`; + this.container.append(popup.render()); + return this.container; + } + +} + +class PopupElement { + constructor(parameters) { + this.container = parameters.container; + this.trigger = parameters.trigger; + this.color = parameters.color; + this.titleObj = parameters.titleObj; + this.modificationDate = parameters.modificationDate; + this.contentsObj = parameters.contentsObj; + this.richText = parameters.richText; + this.hideWrapper = parameters.hideWrapper || false; + this.pinned = false; + } + + render() { + const BACKGROUND_ENLIGHT = 0.7; + const wrapper = document.createElement("div"); + wrapper.className = "popupWrapper"; + this.hideElement = this.hideWrapper ? wrapper : this.container; + this.hideElement.hidden = true; + const popup = document.createElement("div"); + popup.className = "popup"; + const color = this.color; + + if (color) { + const r = BACKGROUND_ENLIGHT * (255 - color[0]) + color[0]; + const g = BACKGROUND_ENLIGHT * (255 - color[1]) + color[1]; + const b = BACKGROUND_ENLIGHT * (255 - color[2]) + color[2]; + popup.style.backgroundColor = _util.Util.makeHexColor(r | 0, g | 0, b | 0); + } + + const title = document.createElement("h1"); + title.dir = this.titleObj.dir; + title.textContent = this.titleObj.str; + popup.append(title); + + const dateObject = _display_utils.PDFDateString.toDateObject(this.modificationDate); + + if (dateObject) { + const modificationDate = document.createElement("span"); + modificationDate.className = "popupDate"; + modificationDate.textContent = "{{date}}, {{time}}"; + modificationDate.dataset.l10nId = "annotation_date_string"; + modificationDate.dataset.l10nArgs = JSON.stringify({ + date: dateObject.toLocaleDateString(), + time: dateObject.toLocaleTimeString() + }); + popup.append(modificationDate); + } + + if (this.richText?.str && (!this.contentsObj?.str || this.contentsObj.str === this.richText.str)) { + _xfa_layer.XfaLayer.render({ + xfaHtml: this.richText.html, + intent: "richText", + div: popup + }); + + popup.lastChild.className = "richText popupContent"; + } else { + const contents = this._formatContents(this.contentsObj); + + popup.append(contents); + } + + if (!Array.isArray(this.trigger)) { + this.trigger = [this.trigger]; + } + + for (const element of this.trigger) { + element.addEventListener("click", this._toggle.bind(this)); + element.addEventListener("mouseover", this._show.bind(this, false)); + element.addEventListener("mouseout", this._hide.bind(this, false)); + } + + popup.addEventListener("click", this._hide.bind(this, true)); + wrapper.append(popup); + return wrapper; + } + + _formatContents({ + str, + dir + }) { + const p = document.createElement("p"); + p.className = "popupContent"; + p.dir = dir; + const lines = str.split(/(?:\r\n?|\n)/); + + for (let i = 0, ii = lines.length; i < ii; ++i) { + const line = lines[i]; + p.append(document.createTextNode(line)); + + if (i < ii - 1) { + p.append(document.createElement("br")); + } + } + + return p; + } + + _toggle() { + if (this.pinned) { + this._hide(true); + } else { + this._show(true); + } + } + + _show(pin = false) { + if (pin) { + this.pinned = true; + } + + if (this.hideElement.hidden) { + this.hideElement.hidden = false; + this.container.style.zIndex = parseInt(this.container.style.zIndex) + 1000; + } + } + + _hide(unpin = true) { + if (unpin) { + this.pinned = false; + } + + if (!this.hideElement.hidden && !this.pinned) { + this.hideElement.hidden = true; + this.container.style.zIndex = parseInt(this.container.style.zIndex) - 1000; + } + } + +} + +class FreeTextAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.hasPopup || parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable, + ignoreBorder: true + }); + this.textContent = parameters.data.textContent; + } + + render() { + this.container.className = "freeTextAnnotation"; + + if (this.textContent) { + const content = document.createElement("div"); + content.className = "annotationTextContent"; + content.setAttribute("role", "comment"); + + for (const line of this.textContent) { + const lineSpan = document.createElement("span"); + lineSpan.textContent = line; + content.append(lineSpan); + } + + this.container.append(content); + } + + if (!this.data.hasPopup) { + this._createPopup(null, this.data); + } + + return this.container; + } + +} + +class LineAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.hasPopup || parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable, + ignoreBorder: true + }); + } + + render() { + this.container.className = "lineAnnotation"; + const data = this.data; + const { + width, + height + } = getRectDims(data.rect); + const svg = this.svgFactory.create(width, height, true); + const line = this.svgFactory.createElement("svg:line"); + line.setAttribute("x1", data.rect[2] - data.lineCoordinates[0]); + line.setAttribute("y1", data.rect[3] - data.lineCoordinates[1]); + line.setAttribute("x2", data.rect[2] - data.lineCoordinates[2]); + line.setAttribute("y2", data.rect[3] - data.lineCoordinates[3]); + line.setAttribute("stroke-width", data.borderStyle.width || 1); + line.setAttribute("stroke", "transparent"); + line.setAttribute("fill", "transparent"); + svg.append(line); + this.container.append(svg); + + this._createPopup(line, data); + + return this.container; + } + +} + +class SquareAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.hasPopup || parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable, + ignoreBorder: true + }); + } + + render() { + this.container.className = "squareAnnotation"; + const data = this.data; + const { + width, + height + } = getRectDims(data.rect); + const svg = this.svgFactory.create(width, height, true); + const borderWidth = data.borderStyle.width; + const square = this.svgFactory.createElement("svg:rect"); + square.setAttribute("x", borderWidth / 2); + square.setAttribute("y", borderWidth / 2); + square.setAttribute("width", width - borderWidth); + square.setAttribute("height", height - borderWidth); + square.setAttribute("stroke-width", borderWidth || 1); + square.setAttribute("stroke", "transparent"); + square.setAttribute("fill", "transparent"); + svg.append(square); + this.container.append(svg); + + this._createPopup(square, data); + + return this.container; + } + +} + +class CircleAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.hasPopup || parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable, + ignoreBorder: true + }); + } + + render() { + this.container.className = "circleAnnotation"; + const data = this.data; + const { + width, + height + } = getRectDims(data.rect); + const svg = this.svgFactory.create(width, height, true); + const borderWidth = data.borderStyle.width; + const circle = this.svgFactory.createElement("svg:ellipse"); + circle.setAttribute("cx", width / 2); + circle.setAttribute("cy", height / 2); + circle.setAttribute("rx", width / 2 - borderWidth / 2); + circle.setAttribute("ry", height / 2 - borderWidth / 2); + circle.setAttribute("stroke-width", borderWidth || 1); + circle.setAttribute("stroke", "transparent"); + circle.setAttribute("fill", "transparent"); + svg.append(circle); + this.container.append(svg); + + this._createPopup(circle, data); + + return this.container; + } + +} + +class PolylineAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.hasPopup || parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable, + ignoreBorder: true + }); + this.containerClassName = "polylineAnnotation"; + this.svgElementName = "svg:polyline"; + } + + render() { + this.container.className = this.containerClassName; + const data = this.data; + const { + width, + height + } = getRectDims(data.rect); + const svg = this.svgFactory.create(width, height, true); + let points = []; + + for (const coordinate of data.vertices) { + const x = coordinate.x - data.rect[0]; + const y = data.rect[3] - coordinate.y; + points.push(x + "," + y); + } + + points = points.join(" "); + const polyline = this.svgFactory.createElement(this.svgElementName); + polyline.setAttribute("points", points); + polyline.setAttribute("stroke-width", data.borderStyle.width || 1); + polyline.setAttribute("stroke", "transparent"); + polyline.setAttribute("fill", "transparent"); + svg.append(polyline); + this.container.append(svg); + + this._createPopup(polyline, data); + + return this.container; + } + +} + +class PolygonAnnotationElement extends PolylineAnnotationElement { + constructor(parameters) { + super(parameters); + this.containerClassName = "polygonAnnotation"; + this.svgElementName = "svg:polygon"; + } + +} + +class CaretAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.hasPopup || parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable, + ignoreBorder: true + }); + } + + render() { + this.container.className = "caretAnnotation"; + + if (!this.data.hasPopup) { + this._createPopup(null, this.data); + } + + return this.container; + } + +} + +class InkAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.hasPopup || parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable, + ignoreBorder: true + }); + this.containerClassName = "inkAnnotation"; + this.svgElementName = "svg:polyline"; + } + + render() { + this.container.className = this.containerClassName; + const data = this.data; + const { + width, + height + } = getRectDims(data.rect); + const svg = this.svgFactory.create(width, height, true); + + for (const inkList of data.inkLists) { + let points = []; + + for (const coordinate of inkList) { + const x = coordinate.x - data.rect[0]; + const y = data.rect[3] - coordinate.y; + points.push(`${x},${y}`); + } + + points = points.join(" "); + const polyline = this.svgFactory.createElement(this.svgElementName); + polyline.setAttribute("points", points); + polyline.setAttribute("stroke-width", data.borderStyle.width || 1); + polyline.setAttribute("stroke", "transparent"); + polyline.setAttribute("fill", "transparent"); + + this._createPopup(polyline, data); + + svg.append(polyline); + } + + this.container.append(svg); + return this.container; + } + +} + +class HighlightAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.hasPopup || parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable, + ignoreBorder: true, + createQuadrilaterals: true + }); + } + + render() { + if (!this.data.hasPopup) { + this._createPopup(null, this.data); + } + + if (this.quadrilaterals) { + return this._renderQuadrilaterals("highlightAnnotation"); + } + + this.container.className = "highlightAnnotation"; + return this.container; + } + +} + +class UnderlineAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.hasPopup || parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable, + ignoreBorder: true, + createQuadrilaterals: true + }); + } + + render() { + if (!this.data.hasPopup) { + this._createPopup(null, this.data); + } + + if (this.quadrilaterals) { + return this._renderQuadrilaterals("underlineAnnotation"); + } + + this.container.className = "underlineAnnotation"; + return this.container; + } + +} + +class SquigglyAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.hasPopup || parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable, + ignoreBorder: true, + createQuadrilaterals: true + }); + } + + render() { + if (!this.data.hasPopup) { + this._createPopup(null, this.data); + } + + if (this.quadrilaterals) { + return this._renderQuadrilaterals("squigglyAnnotation"); + } + + this.container.className = "squigglyAnnotation"; + return this.container; + } + +} + +class StrikeOutAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.hasPopup || parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable, + ignoreBorder: true, + createQuadrilaterals: true + }); + } + + render() { + if (!this.data.hasPopup) { + this._createPopup(null, this.data); + } + + if (this.quadrilaterals) { + return this._renderQuadrilaterals("strikeoutAnnotation"); + } + + this.container.className = "strikeoutAnnotation"; + return this.container; + } + +} + +class StampAnnotationElement extends AnnotationElement { + constructor(parameters) { + const isRenderable = !!(parameters.data.hasPopup || parameters.data.titleObj?.str || parameters.data.contentsObj?.str || parameters.data.richText?.str); + super(parameters, { + isRenderable, + ignoreBorder: true + }); + } + + render() { + this.container.className = "stampAnnotation"; + + if (!this.data.hasPopup) { + this._createPopup(null, this.data); + } + + return this.container; + } + +} + +class FileAttachmentAnnotationElement extends AnnotationElement { + constructor(parameters) { + super(parameters, { + isRenderable: true + }); + const { + filename, + content + } = this.data.file; + this.filename = (0, _display_utils.getFilenameFromUrl)(filename); + this.content = content; + this.linkService.eventBus?.dispatch("fileattachmentannotation", { + source: this, + filename, + content + }); + } + + render() { + this.container.className = "fileAttachmentAnnotation"; + const trigger = document.createElement("div"); + trigger.className = "popupTriggerArea"; + trigger.addEventListener("dblclick", this._download.bind(this)); + + if (!this.data.hasPopup && (this.data.titleObj?.str || this.data.contentsObj?.str || this.data.richText)) { + this._createPopup(trigger, this.data); + } + + this.container.append(trigger); + return this.container; + } + + _download() { + this.downloadManager?.openOrDownloadData(this.container, this.content, this.filename); + } + +} + +class AnnotationLayer { + static #appendElement(element, id, div, accessibilityManager) { + const contentElement = element.firstChild || element; + contentElement.id = `${_display_utils.AnnotationPrefix}${id}`; + div.append(element); + accessibilityManager?.moveElementInDOM(div, element, contentElement, false); + } + + static render(parameters) { + const { + annotations, + div, + viewport, + accessibilityManager + } = parameters; + this.#setDimensions(div, viewport); + let zIndex = 0; + + for (const data of annotations) { + if (data.annotationType !== _util.AnnotationType.POPUP) { + const { + width, + height + } = getRectDims(data.rect); + + if (width <= 0 || height <= 0) { + continue; + } + } + + const element = AnnotationElementFactory.create({ + data, + layer: div, + page: parameters.page, + viewport, + linkService: parameters.linkService, + downloadManager: parameters.downloadManager, + imageResourcesPath: parameters.imageResourcesPath || "", + renderForms: parameters.renderForms !== false, + svgFactory: new _display_utils.DOMSVGFactory(), + annotationStorage: parameters.annotationStorage || new _annotation_storage.AnnotationStorage(), + enableScripting: parameters.enableScripting, + hasJSActions: parameters.hasJSActions, + fieldObjects: parameters.fieldObjects, + mouseState: parameters.mouseState || { + isDown: false + } + }); + + if (element.isRenderable) { + const rendered = element.render(); + + if (data.hidden) { + rendered.style.visibility = "hidden"; + } + + if (Array.isArray(rendered)) { + for (const renderedElement of rendered) { + renderedElement.style.zIndex = zIndex++; + AnnotationLayer.#appendElement(renderedElement, data.id, div, accessibilityManager); + } + } else { + rendered.style.zIndex = zIndex++; + + if (element instanceof PopupAnnotationElement) { + div.prepend(rendered); + } else { + AnnotationLayer.#appendElement(rendered, data.id, div, accessibilityManager); + } + } + } + } + + this.#setAnnotationCanvasMap(div, parameters.annotationCanvasMap); + } + + static update(parameters) { + const { + annotationCanvasMap, + div, + viewport + } = parameters; + this.#setDimensions(div, viewport); + this.#setAnnotationCanvasMap(div, annotationCanvasMap); + div.hidden = false; + } + + static #setDimensions(div, { + width, + height, + rotation + }) { + const { + style + } = div; + const flipOrientation = rotation % 180 !== 0, + widthStr = Math.floor(width) + "px", + heightStr = Math.floor(height) + "px"; + style.width = flipOrientation ? heightStr : widthStr; + style.height = flipOrientation ? widthStr : heightStr; + div.setAttribute("data-main-rotation", rotation); + } + + static #setAnnotationCanvasMap(div, annotationCanvasMap) { + if (!annotationCanvasMap) { + return; + } + + for (const [id, canvas] of annotationCanvasMap) { + const element = div.querySelector(`[data-annotation-id="${id}"]`); + + if (!element) { + continue; + } + + const { + firstChild + } = element; + + if (!firstChild) { + element.append(canvas); + } else if (firstChild.nodeName === "CANVAS") { + firstChild.replaceWith(canvas); + } else { + firstChild.before(canvas); + } + } + + annotationCanvasMap.clear(); + } + +} + +exports.AnnotationLayer = AnnotationLayer; + +/***/ }), +/* 28 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ColorConverters = void 0; + +function makeColorComp(n) { + return Math.floor(Math.max(0, Math.min(1, n)) * 255).toString(16).padStart(2, "0"); +} + +class ColorConverters { + static CMYK_G([c, y, m, k]) { + return ["G", 1 - Math.min(1, 0.3 * c + 0.59 * m + 0.11 * y + k)]; + } + + static G_CMYK([g]) { + return ["CMYK", 0, 0, 0, 1 - g]; + } + + static G_RGB([g]) { + return ["RGB", g, g, g]; + } + + static G_HTML([g]) { + const G = makeColorComp(g); + return `#${G}${G}${G}`; + } + + static RGB_G([r, g, b]) { + return ["G", 0.3 * r + 0.59 * g + 0.11 * b]; + } + + static RGB_HTML([r, g, b]) { + const R = makeColorComp(r); + const G = makeColorComp(g); + const B = makeColorComp(b); + return `#${R}${G}${B}`; + } + + static T_HTML() { + return "#00000000"; + } + + static CMYK_RGB([c, y, m, k]) { + return ["RGB", 1 - Math.min(1, c + k), 1 - Math.min(1, m + k), 1 - Math.min(1, y + k)]; + } + + static CMYK_HTML(components) { + const rgb = this.CMYK_RGB(components).slice(1); + return this.RGB_HTML(rgb); + } + + static RGB_CMYK([r, g, b]) { + const c = 1 - r; + const m = 1 - g; + const y = 1 - b; + const k = Math.min(c, m, y); + return ["CMYK", c, m, y, k]; + } + +} + +exports.ColorConverters = ColorConverters; + +/***/ }), +/* 29 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.XfaLayer = void 0; + +var _xfa_text = __w_pdfjs_require__(20); + +class XfaLayer { + static setupStorage(html, id, element, storage, intent) { + const storedData = storage.getValue(id, { + value: null + }); + + switch (element.name) { + case "textarea": + if (storedData.value !== null) { + html.textContent = storedData.value; + } + + if (intent === "print") { + break; + } + + html.addEventListener("input", event => { + storage.setValue(id, { + value: event.target.value + }); + }); + break; + + case "input": + if (element.attributes.type === "radio" || element.attributes.type === "checkbox") { + if (storedData.value === element.attributes.xfaOn) { + html.setAttribute("checked", true); + } else if (storedData.value === element.attributes.xfaOff) { + html.removeAttribute("checked"); + } + + if (intent === "print") { + break; + } + + html.addEventListener("change", event => { + storage.setValue(id, { + value: event.target.checked ? event.target.getAttribute("xfaOn") : event.target.getAttribute("xfaOff") + }); + }); + } else { + if (storedData.value !== null) { + html.setAttribute("value", storedData.value); + } + + if (intent === "print") { + break; + } + + html.addEventListener("input", event => { + storage.setValue(id, { + value: event.target.value + }); + }); + } + + break; + + case "select": + if (storedData.value !== null) { + for (const option of element.children) { + if (option.attributes.value === storedData.value) { + option.attributes.selected = true; + } + } + } + + html.addEventListener("input", event => { + const options = event.target.options; + const value = options.selectedIndex === -1 ? "" : options[options.selectedIndex].value; + storage.setValue(id, { + value + }); + }); + break; + } + } + + static setAttributes({ + html, + element, + storage = null, + intent, + linkService + }) { + const { + attributes + } = element; + const isHTMLAnchorElement = html instanceof HTMLAnchorElement; + + if (attributes.type === "radio") { + attributes.name = `${attributes.name}-${intent}`; + } + + for (const [key, value] of Object.entries(attributes)) { + if (value === null || value === undefined) { + continue; + } + + switch (key) { + case "class": + if (value.length) { + html.setAttribute(key, value.join(" ")); + } + + break; + + case "dataId": + break; + + case "id": + html.setAttribute("data-element-id", value); + break; + + case "style": + Object.assign(html.style, value); + break; + + case "textContent": + html.textContent = value; + break; + + default: + if (!isHTMLAnchorElement || key !== "href" && key !== "newWindow") { + html.setAttribute(key, value); + } + + } + } + + if (isHTMLAnchorElement) { + linkService.addLinkAttributes(html, attributes.href, attributes.newWindow); + } + + if (storage && attributes.dataId) { + this.setupStorage(html, attributes.dataId, element, storage); + } + } + + static render(parameters) { + const storage = parameters.annotationStorage; + const linkService = parameters.linkService; + const root = parameters.xfaHtml; + const intent = parameters.intent || "display"; + const rootHtml = document.createElement(root.name); + + if (root.attributes) { + this.setAttributes({ + html: rootHtml, + element: root, + intent, + linkService + }); + } + + const stack = [[root, -1, rootHtml]]; + const rootDiv = parameters.div; + rootDiv.append(rootHtml); + + if (parameters.viewport) { + const transform = `matrix(${parameters.viewport.transform.join(",")})`; + rootDiv.style.transform = transform; + } + + if (intent !== "richText") { + rootDiv.setAttribute("class", "xfaLayer xfaFont"); + } + + const textDivs = []; + + while (stack.length > 0) { + const [parent, i, html] = stack.at(-1); + + if (i + 1 === parent.children.length) { + stack.pop(); + continue; + } + + const child = parent.children[++stack.at(-1)[1]]; + + if (child === null) { + continue; + } + + const { + name + } = child; + + if (name === "#text") { + const node = document.createTextNode(child.value); + textDivs.push(node); + html.append(node); + continue; + } + + let childHtml; + + if (child?.attributes?.xmlns) { + childHtml = document.createElementNS(child.attributes.xmlns, name); + } else { + childHtml = document.createElement(name); + } + + html.append(childHtml); + + if (child.attributes) { + this.setAttributes({ + html: childHtml, + element: child, + storage, + intent, + linkService + }); + } + + if (child.children && child.children.length > 0) { + stack.push([child, -1, childHtml]); + } else if (child.value) { + const node = document.createTextNode(child.value); + + if (_xfa_text.XfaText.shouldBuildText(name)) { + textDivs.push(node); + } + + childHtml.append(node); + } + } + + for (const el of rootDiv.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea")) { + el.setAttribute("readOnly", true); + } + + return { + textDivs + }; + } + + static update(parameters) { + const transform = `matrix(${parameters.viewport.transform.join(",")})`; + parameters.div.style.transform = transform; + parameters.div.hidden = false; + } + +} + +exports.XfaLayer = XfaLayer; + +/***/ }), +/* 30 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.TextLayerRenderTask = void 0; +exports.renderTextLayer = renderTextLayer; + +var _util = __w_pdfjs_require__(1); + +var _display_utils = __w_pdfjs_require__(8); + +const MAX_TEXT_DIVS_TO_RENDER = 100000; +const DEFAULT_FONT_SIZE = 30; +const DEFAULT_FONT_ASCENT = 0.8; +const ascentCache = new Map(); +const AllWhitespaceRegexp = /^\s+$/g; + +function getAscent(fontFamily, ctx) { + const cachedAscent = ascentCache.get(fontFamily); + + if (cachedAscent) { + return cachedAscent; + } + + ctx.save(); + ctx.font = `${DEFAULT_FONT_SIZE}px ${fontFamily}`; + const metrics = ctx.measureText(""); + let ascent = metrics.fontBoundingBoxAscent; + let descent = Math.abs(metrics.fontBoundingBoxDescent); + + if (ascent) { + ctx.restore(); + const ratio = ascent / (ascent + descent); + ascentCache.set(fontFamily, ratio); + return ratio; + } + + ctx.strokeStyle = "red"; + ctx.clearRect(0, 0, DEFAULT_FONT_SIZE, DEFAULT_FONT_SIZE); + ctx.strokeText("g", 0, 0); + let pixels = ctx.getImageData(0, 0, DEFAULT_FONT_SIZE, DEFAULT_FONT_SIZE).data; + descent = 0; + + for (let i = pixels.length - 1 - 3; i >= 0; i -= 4) { + if (pixels[i] > 0) { + descent = Math.ceil(i / 4 / DEFAULT_FONT_SIZE); + break; + } + } + + ctx.clearRect(0, 0, DEFAULT_FONT_SIZE, DEFAULT_FONT_SIZE); + ctx.strokeText("A", 0, DEFAULT_FONT_SIZE); + pixels = ctx.getImageData(0, 0, DEFAULT_FONT_SIZE, DEFAULT_FONT_SIZE).data; + ascent = 0; + + for (let i = 0, ii = pixels.length; i < ii; i += 4) { + if (pixels[i] > 0) { + ascent = DEFAULT_FONT_SIZE - Math.floor(i / 4 / DEFAULT_FONT_SIZE); + break; + } + } + + ctx.restore(); + + if (ascent) { + const ratio = ascent / (ascent + descent); + ascentCache.set(fontFamily, ratio); + return ratio; + } + + ascentCache.set(fontFamily, DEFAULT_FONT_ASCENT); + return DEFAULT_FONT_ASCENT; +} + +function appendText(task, geom, styles, ctx) { + const textDiv = document.createElement("span"); + const textDivProperties = task._enhanceTextSelection ? { + angle: 0, + canvasWidth: 0, + hasText: geom.str !== "", + hasEOL: geom.hasEOL, + originalTransform: null, + paddingBottom: 0, + paddingLeft: 0, + paddingRight: 0, + paddingTop: 0, + scale: 1, + fontSize: 0 + } : { + angle: 0, + canvasWidth: 0, + hasText: geom.str !== "", + hasEOL: geom.hasEOL, + fontSize: 0 + }; + + task._textDivs.push(textDiv); + + const tx = _util.Util.transform(task._viewport.transform, geom.transform); + + let angle = Math.atan2(tx[1], tx[0]); + const style = styles[geom.fontName]; + + if (style.vertical) { + angle += Math.PI / 2; + } + + const fontHeight = Math.hypot(tx[2], tx[3]); + const fontAscent = fontHeight * getAscent(style.fontFamily, ctx); + let left, top; + + if (angle === 0) { + left = tx[4]; + top = tx[5] - fontAscent; + } else { + left = tx[4] + fontAscent * Math.sin(angle); + top = tx[5] - fontAscent * Math.cos(angle); + } + + textDiv.style.left = `${left}px`; + textDiv.style.top = `${top}px`; + textDiv.style.fontSize = `${fontHeight}px`; + textDiv.style.fontFamily = style.fontFamily; + textDivProperties.fontSize = fontHeight; + textDiv.setAttribute("role", "presentation"); + textDiv.textContent = geom.str; + textDiv.dir = geom.dir; + + if (task._fontInspectorEnabled) { + textDiv.dataset.fontName = geom.fontName; + } + + if (angle !== 0) { + textDivProperties.angle = angle * (180 / Math.PI); + } + + let shouldScaleText = false; + + if (geom.str.length > 1 || task._enhanceTextSelection && AllWhitespaceRegexp.test(geom.str)) { + shouldScaleText = true; + } else if (geom.str !== " " && geom.transform[0] !== geom.transform[3]) { + const absScaleX = Math.abs(geom.transform[0]), + absScaleY = Math.abs(geom.transform[3]); + + if (absScaleX !== absScaleY && Math.max(absScaleX, absScaleY) / Math.min(absScaleX, absScaleY) > 1.5) { + shouldScaleText = true; + } + } + + if (shouldScaleText) { + if (style.vertical) { + textDivProperties.canvasWidth = geom.height * task._viewport.scale; + } else { + textDivProperties.canvasWidth = geom.width * task._viewport.scale; + } + } + + task._textDivProperties.set(textDiv, textDivProperties); + + if (task._textContentStream) { + task._layoutText(textDiv); + } + + if (task._enhanceTextSelection && textDivProperties.hasText) { + let angleCos = 1, + angleSin = 0; + + if (angle !== 0) { + angleCos = Math.cos(angle); + angleSin = Math.sin(angle); + } + + const divWidth = (style.vertical ? geom.height : geom.width) * task._viewport.scale; + const divHeight = fontHeight; + let m, b; + + if (angle !== 0) { + m = [angleCos, angleSin, -angleSin, angleCos, left, top]; + b = _util.Util.getAxialAlignedBoundingBox([0, 0, divWidth, divHeight], m); + } else { + b = [left, top, left + divWidth, top + divHeight]; + } + + task._bounds.push({ + left: b[0], + top: b[1], + right: b[2], + bottom: b[3], + div: textDiv, + size: [divWidth, divHeight], + m + }); + } +} + +function render(task) { + if (task._canceled) { + return; + } + + const textDivs = task._textDivs; + const capability = task._capability; + const textDivsLength = textDivs.length; + + if (textDivsLength > MAX_TEXT_DIVS_TO_RENDER) { + task._renderingDone = true; + capability.resolve(); + return; + } + + if (!task._textContentStream) { + for (let i = 0; i < textDivsLength; i++) { + task._layoutText(textDivs[i]); + } + } + + task._renderingDone = true; + capability.resolve(); +} + +function findPositiveMin(ts, offset, count) { + let result = 0; + + for (let i = 0; i < count; i++) { + const t = ts[offset++]; + + if (t > 0) { + result = result ? Math.min(t, result) : t; + } + } + + return result; +} + +function expand(task) { + const bounds = task._bounds; + const viewport = task._viewport; + const expanded = expandBounds(viewport.width, viewport.height, bounds); + + for (let i = 0; i < expanded.length; i++) { + const div = bounds[i].div; + + const divProperties = task._textDivProperties.get(div); + + if (divProperties.angle === 0) { + divProperties.paddingLeft = bounds[i].left - expanded[i].left; + divProperties.paddingTop = bounds[i].top - expanded[i].top; + divProperties.paddingRight = expanded[i].right - bounds[i].right; + divProperties.paddingBottom = expanded[i].bottom - bounds[i].bottom; + + task._textDivProperties.set(div, divProperties); + + continue; + } + + const e = expanded[i], + b = bounds[i]; + const m = b.m, + c = m[0], + s = m[1]; + const points = [[0, 0], [0, b.size[1]], [b.size[0], 0], b.size]; + const ts = new Float64Array(64); + + for (let j = 0, jj = points.length; j < jj; j++) { + const t = _util.Util.applyTransform(points[j], m); + + ts[j + 0] = c && (e.left - t[0]) / c; + ts[j + 4] = s && (e.top - t[1]) / s; + ts[j + 8] = c && (e.right - t[0]) / c; + ts[j + 12] = s && (e.bottom - t[1]) / s; + ts[j + 16] = s && (e.left - t[0]) / -s; + ts[j + 20] = c && (e.top - t[1]) / c; + ts[j + 24] = s && (e.right - t[0]) / -s; + ts[j + 28] = c && (e.bottom - t[1]) / c; + ts[j + 32] = c && (e.left - t[0]) / -c; + ts[j + 36] = s && (e.top - t[1]) / -s; + ts[j + 40] = c && (e.right - t[0]) / -c; + ts[j + 44] = s && (e.bottom - t[1]) / -s; + ts[j + 48] = s && (e.left - t[0]) / s; + ts[j + 52] = c && (e.top - t[1]) / -c; + ts[j + 56] = s && (e.right - t[0]) / s; + ts[j + 60] = c && (e.bottom - t[1]) / -c; + } + + const boxScale = 1 + Math.min(Math.abs(c), Math.abs(s)); + divProperties.paddingLeft = findPositiveMin(ts, 32, 16) / boxScale; + divProperties.paddingTop = findPositiveMin(ts, 48, 16) / boxScale; + divProperties.paddingRight = findPositiveMin(ts, 0, 16) / boxScale; + divProperties.paddingBottom = findPositiveMin(ts, 16, 16) / boxScale; + + task._textDivProperties.set(div, divProperties); + } +} + +function expandBounds(width, height, boxes) { + const bounds = boxes.map(function (box, i) { + return { + x1: box.left, + y1: box.top, + x2: box.right, + y2: box.bottom, + index: i, + x1New: undefined, + x2New: undefined + }; + }); + expandBoundsLTR(width, bounds); + const expanded = new Array(boxes.length); + + for (const b of bounds) { + const i = b.index; + expanded[i] = { + left: b.x1New, + top: 0, + right: b.x2New, + bottom: 0 + }; + } + + boxes.map(function (box, i) { + const e = expanded[i], + b = bounds[i]; + b.x1 = box.top; + b.y1 = width - e.right; + b.x2 = box.bottom; + b.y2 = width - e.left; + b.index = i; + b.x1New = undefined; + b.x2New = undefined; + }); + expandBoundsLTR(height, bounds); + + for (const b of bounds) { + const i = b.index; + expanded[i].top = b.x1New; + expanded[i].bottom = b.x2New; + } + + return expanded; +} + +function expandBoundsLTR(width, bounds) { + bounds.sort(function (a, b) { + return a.x1 - b.x1 || a.index - b.index; + }); + const fakeBoundary = { + x1: -Infinity, + y1: -Infinity, + x2: 0, + y2: Infinity, + index: -1, + x1New: 0, + x2New: 0 + }; + const horizon = [{ + start: -Infinity, + end: Infinity, + boundary: fakeBoundary + }]; + + for (const boundary of bounds) { + let i = 0; + + while (i < horizon.length && horizon[i].end <= boundary.y1) { + i++; + } + + let j = horizon.length - 1; + + while (j >= 0 && horizon[j].start >= boundary.y2) { + j--; + } + + let horizonPart, affectedBoundary; + let q, + k, + maxXNew = -Infinity; + + for (q = i; q <= j; q++) { + horizonPart = horizon[q]; + affectedBoundary = horizonPart.boundary; + let xNew; + + if (affectedBoundary.x2 > boundary.x1) { + xNew = affectedBoundary.index > boundary.index ? affectedBoundary.x1New : boundary.x1; + } else if (affectedBoundary.x2New === undefined) { + xNew = (affectedBoundary.x2 + boundary.x1) / 2; + } else { + xNew = affectedBoundary.x2New; + } + + if (xNew > maxXNew) { + maxXNew = xNew; + } + } + + boundary.x1New = maxXNew; + + for (q = i; q <= j; q++) { + horizonPart = horizon[q]; + affectedBoundary = horizonPart.boundary; + + if (affectedBoundary.x2New === undefined) { + if (affectedBoundary.x2 > boundary.x1) { + if (affectedBoundary.index > boundary.index) { + affectedBoundary.x2New = affectedBoundary.x2; + } + } else { + affectedBoundary.x2New = maxXNew; + } + } else if (affectedBoundary.x2New > maxXNew) { + affectedBoundary.x2New = Math.max(maxXNew, affectedBoundary.x2); + } + } + + const changedHorizon = []; + let lastBoundary = null; + + for (q = i; q <= j; q++) { + horizonPart = horizon[q]; + affectedBoundary = horizonPart.boundary; + const useBoundary = affectedBoundary.x2 > boundary.x2 ? affectedBoundary : boundary; + + if (lastBoundary === useBoundary) { + changedHorizon.at(-1).end = horizonPart.end; + } else { + changedHorizon.push({ + start: horizonPart.start, + end: horizonPart.end, + boundary: useBoundary + }); + lastBoundary = useBoundary; + } + } + + if (horizon[i].start < boundary.y1) { + changedHorizon[0].start = boundary.y1; + changedHorizon.unshift({ + start: horizon[i].start, + end: boundary.y1, + boundary: horizon[i].boundary + }); + } + + if (boundary.y2 < horizon[j].end) { + changedHorizon.at(-1).end = boundary.y2; + changedHorizon.push({ + start: boundary.y2, + end: horizon[j].end, + boundary: horizon[j].boundary + }); + } + + for (q = i; q <= j; q++) { + horizonPart = horizon[q]; + affectedBoundary = horizonPart.boundary; + + if (affectedBoundary.x2New !== undefined) { + continue; + } + + let used = false; + + for (k = i - 1; !used && k >= 0 && horizon[k].start >= affectedBoundary.y1; k--) { + used = horizon[k].boundary === affectedBoundary; + } + + for (k = j + 1; !used && k < horizon.length && horizon[k].end <= affectedBoundary.y2; k++) { + used = horizon[k].boundary === affectedBoundary; + } + + for (k = 0; !used && k < changedHorizon.length; k++) { + used = changedHorizon[k].boundary === affectedBoundary; + } + + if (!used) { + affectedBoundary.x2New = maxXNew; + } + } + + Array.prototype.splice.apply(horizon, [i, j - i + 1, ...changedHorizon]); + } + + for (const horizonPart of horizon) { + const affectedBoundary = horizonPart.boundary; + + if (affectedBoundary.x2New === undefined) { + affectedBoundary.x2New = Math.max(width, affectedBoundary.x2); + } + } +} + +class TextLayerRenderTask { + constructor({ + textContent, + textContentStream, + container, + viewport, + textDivs, + textContentItemsStr, + enhanceTextSelection + }) { + if (enhanceTextSelection) { + (0, _display_utils.deprecated)("The `enhanceTextSelection` functionality will be removed in the future."); + } + + this._textContent = textContent; + this._textContentStream = textContentStream; + this._container = container; + this._document = container.ownerDocument; + this._viewport = viewport; + this._textDivs = textDivs || []; + this._textContentItemsStr = textContentItemsStr || []; + this._enhanceTextSelection = !!enhanceTextSelection; + this._fontInspectorEnabled = !!globalThis.FontInspector?.enabled; + this._reader = null; + this._layoutTextLastFontSize = null; + this._layoutTextLastFontFamily = null; + this._layoutTextCtx = null; + this._textDivProperties = new WeakMap(); + this._renderingDone = false; + this._canceled = false; + this._capability = (0, _util.createPromiseCapability)(); + this._renderTimer = null; + this._bounds = []; + this._devicePixelRatio = globalThis.devicePixelRatio || 1; + + this._capability.promise.finally(() => { + if (!this._enhanceTextSelection) { + this._textDivProperties = null; + } + + if (this._layoutTextCtx) { + this._layoutTextCtx.canvas.width = 0; + this._layoutTextCtx.canvas.height = 0; + this._layoutTextCtx = null; + } + }).catch(() => {}); + } + + get promise() { + return this._capability.promise; + } + + cancel() { + this._canceled = true; + + if (this._reader) { + this._reader.cancel(new _util.AbortException("TextLayer task cancelled.")).catch(() => {}); + + this._reader = null; + } + + if (this._renderTimer !== null) { + clearTimeout(this._renderTimer); + this._renderTimer = null; + } + + this._capability.reject(new Error("TextLayer task cancelled.")); + } + + _processItems(items, styleCache) { + for (let i = 0, len = items.length; i < len; i++) { + if (items[i].str === undefined) { + if (items[i].type === "beginMarkedContentProps" || items[i].type === "beginMarkedContent") { + const parent = this._container; + this._container = document.createElement("span"); + + this._container.classList.add("markedContent"); + + if (items[i].id !== null) { + this._container.setAttribute("id", `${items[i].id}`); + } + + parent.append(this._container); + } else if (items[i].type === "endMarkedContent") { + this._container = this._container.parentNode; + } + + continue; + } + + this._textContentItemsStr.push(items[i].str); + + appendText(this, items[i], styleCache, this._layoutTextCtx); + } + } + + _layoutText(textDiv) { + const textDivProperties = this._textDivProperties.get(textDiv); + + let transform = ""; + + if (textDivProperties.canvasWidth !== 0 && textDivProperties.hasText) { + const { + fontFamily + } = textDiv.style; + const { + fontSize + } = textDivProperties; + + if (fontSize !== this._layoutTextLastFontSize || fontFamily !== this._layoutTextLastFontFamily) { + this._layoutTextCtx.font = `${fontSize * this._devicePixelRatio}px ${fontFamily}`; + this._layoutTextLastFontSize = fontSize; + this._layoutTextLastFontFamily = fontFamily; + } + + const { + width + } = this._layoutTextCtx.measureText(textDiv.textContent); + + if (width > 0) { + const scale = this._devicePixelRatio * textDivProperties.canvasWidth / width; + + if (this._enhanceTextSelection) { + textDivProperties.scale = scale; + } + + transform = `scaleX(${scale})`; + } + } + + if (textDivProperties.angle !== 0) { + transform = `rotate(${textDivProperties.angle}deg) ${transform}`; + } + + if (transform.length > 0) { + if (this._enhanceTextSelection) { + textDivProperties.originalTransform = transform; + } + + textDiv.style.transform = transform; + } + + if (textDivProperties.hasText) { + this._container.append(textDiv); + } + + if (textDivProperties.hasEOL) { + const br = document.createElement("br"); + br.setAttribute("role", "presentation"); + + this._container.append(br); + } + } + + _render(timeout = 0) { + const capability = (0, _util.createPromiseCapability)(); + let styleCache = Object.create(null); + + const canvas = this._document.createElement("canvas"); + + canvas.height = canvas.width = DEFAULT_FONT_SIZE; + this._layoutTextCtx = canvas.getContext("2d", { + alpha: false + }); + + if (this._textContent) { + const textItems = this._textContent.items; + const textStyles = this._textContent.styles; + + this._processItems(textItems, textStyles); + + capability.resolve(); + } else if (this._textContentStream) { + const pump = () => { + this._reader.read().then(({ + value, + done + }) => { + if (done) { + capability.resolve(); + return; + } + + Object.assign(styleCache, value.styles); + + this._processItems(value.items, styleCache); + + pump(); + }, capability.reject); + }; + + this._reader = this._textContentStream.getReader(); + pump(); + } else { + throw new Error('Neither "textContent" nor "textContentStream" parameters specified.'); + } + + capability.promise.then(() => { + styleCache = null; + + if (!timeout) { + render(this); + } else { + this._renderTimer = setTimeout(() => { + render(this); + this._renderTimer = null; + }, timeout); + } + }, this._capability.reject); + } + + expandTextDivs(expandDivs = false) { + if (!this._enhanceTextSelection || !this._renderingDone) { + return; + } + + if (this._bounds !== null) { + expand(this); + this._bounds = null; + } + + const transformBuf = [], + paddingBuf = []; + + for (let i = 0, ii = this._textDivs.length; i < ii; i++) { + const div = this._textDivs[i]; + + const divProps = this._textDivProperties.get(div); + + if (!divProps.hasText) { + continue; + } + + if (expandDivs) { + transformBuf.length = 0; + paddingBuf.length = 0; + + if (divProps.originalTransform) { + transformBuf.push(divProps.originalTransform); + } + + if (divProps.paddingTop > 0) { + paddingBuf.push(`${divProps.paddingTop}px`); + transformBuf.push(`translateY(${-divProps.paddingTop}px)`); + } else { + paddingBuf.push(0); + } + + if (divProps.paddingRight > 0) { + paddingBuf.push(`${divProps.paddingRight / divProps.scale}px`); + } else { + paddingBuf.push(0); + } + + if (divProps.paddingBottom > 0) { + paddingBuf.push(`${divProps.paddingBottom}px`); + } else { + paddingBuf.push(0); + } + + if (divProps.paddingLeft > 0) { + paddingBuf.push(`${divProps.paddingLeft / divProps.scale}px`); + transformBuf.push(`translateX(${-divProps.paddingLeft / divProps.scale}px)`); + } else { + paddingBuf.push(0); + } + + div.style.padding = paddingBuf.join(" "); + + if (transformBuf.length) { + div.style.transform = transformBuf.join(" "); + } + } else { + div.style.padding = null; + div.style.transform = divProps.originalTransform; + } + } + } + +} + +exports.TextLayerRenderTask = TextLayerRenderTask; + +function renderTextLayer(renderParameters) { + const task = new TextLayerRenderTask({ + textContent: renderParameters.textContent, + textContentStream: renderParameters.textContentStream, + container: renderParameters.container, + viewport: renderParameters.viewport, + textDivs: renderParameters.textDivs, + textContentItemsStr: renderParameters.textContentItemsStr, + enhanceTextSelection: renderParameters.enhanceTextSelection + }); + + task._render(renderParameters.timeout); + + return task; +} + +/***/ }), +/* 31 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.SVGGraphics = void 0; + +var _display_utils = __w_pdfjs_require__(8); + +var _util = __w_pdfjs_require__(1); + +var _is_node = __w_pdfjs_require__(3); + +let SVGGraphics = class { + constructor() { + (0, _util.unreachable)("Not implemented: SVGGraphics"); + } + +}; +exports.SVGGraphics = SVGGraphics; +{ + const SVG_DEFAULTS = { + fontStyle: "normal", + fontWeight: "normal", + fillColor: "#000000" + }; + const XML_NS = "http://www.w3.org/XML/1998/namespace"; + const XLINK_NS = "http://www.w3.org/1999/xlink"; + const LINE_CAP_STYLES = ["butt", "round", "square"]; + const LINE_JOIN_STYLES = ["miter", "round", "bevel"]; + + const createObjectURL = function (data, contentType = "", forceDataSchema = false) { + if (URL.createObjectURL && typeof Blob !== "undefined" && !forceDataSchema) { + return URL.createObjectURL(new Blob([data], { + type: contentType + })); + } + + const digits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; + let buffer = `data:${contentType};base64,`; + + for (let i = 0, ii = data.length; i < ii; i += 3) { + const b1 = data[i] & 0xff; + const b2 = data[i + 1] & 0xff; + const b3 = data[i + 2] & 0xff; + const d1 = b1 >> 2, + d2 = (b1 & 3) << 4 | b2 >> 4; + const d3 = i + 1 < ii ? (b2 & 0xf) << 2 | b3 >> 6 : 64; + const d4 = i + 2 < ii ? b3 & 0x3f : 64; + buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4]; + } + + return buffer; + }; + + const convertImgDataToPng = function () { + const PNG_HEADER = new Uint8Array([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]); + const CHUNK_WRAPPER_SIZE = 12; + const crcTable = new Int32Array(256); + + for (let i = 0; i < 256; i++) { + let c = i; + + for (let h = 0; h < 8; h++) { + if (c & 1) { + c = 0xedb88320 ^ c >> 1 & 0x7fffffff; + } else { + c = c >> 1 & 0x7fffffff; + } + } + + crcTable[i] = c; + } + + function crc32(data, start, end) { + let crc = -1; + + for (let i = start; i < end; i++) { + const a = (crc ^ data[i]) & 0xff; + const b = crcTable[a]; + crc = crc >>> 8 ^ b; + } + + return crc ^ -1; + } + + function writePngChunk(type, body, data, offset) { + let p = offset; + const len = body.length; + data[p] = len >> 24 & 0xff; + data[p + 1] = len >> 16 & 0xff; + data[p + 2] = len >> 8 & 0xff; + data[p + 3] = len & 0xff; + p += 4; + data[p] = type.charCodeAt(0) & 0xff; + data[p + 1] = type.charCodeAt(1) & 0xff; + data[p + 2] = type.charCodeAt(2) & 0xff; + data[p + 3] = type.charCodeAt(3) & 0xff; + p += 4; + data.set(body, p); + p += body.length; + const crc = crc32(data, offset + 4, p); + data[p] = crc >> 24 & 0xff; + data[p + 1] = crc >> 16 & 0xff; + data[p + 2] = crc >> 8 & 0xff; + data[p + 3] = crc & 0xff; + } + + function adler32(data, start, end) { + let a = 1; + let b = 0; + + for (let i = start; i < end; ++i) { + a = (a + (data[i] & 0xff)) % 65521; + b = (b + a) % 65521; + } + + return b << 16 | a; + } + + function deflateSync(literals) { + if (!_is_node.isNodeJS) { + return deflateSyncUncompressed(literals); + } + + try { + let input; + + if (parseInt(process.versions.node) >= 8) { + input = literals; + } else { + input = Buffer.from(literals); + } + + const output = require("zlib").deflateSync(input, { + level: 9 + }); + + return output instanceof Uint8Array ? output : new Uint8Array(output); + } catch (e) { + (0, _util.warn)("Not compressing PNG because zlib.deflateSync is unavailable: " + e); + } + + return deflateSyncUncompressed(literals); + } + + function deflateSyncUncompressed(literals) { + let len = literals.length; + const maxBlockLength = 0xffff; + const deflateBlocks = Math.ceil(len / maxBlockLength); + const idat = new Uint8Array(2 + len + deflateBlocks * 5 + 4); + let pi = 0; + idat[pi++] = 0x78; + idat[pi++] = 0x9c; + let pos = 0; + + while (len > maxBlockLength) { + idat[pi++] = 0x00; + idat[pi++] = 0xff; + idat[pi++] = 0xff; + idat[pi++] = 0x00; + idat[pi++] = 0x00; + idat.set(literals.subarray(pos, pos + maxBlockLength), pi); + pi += maxBlockLength; + pos += maxBlockLength; + len -= maxBlockLength; + } + + idat[pi++] = 0x01; + idat[pi++] = len & 0xff; + idat[pi++] = len >> 8 & 0xff; + idat[pi++] = ~len & 0xffff & 0xff; + idat[pi++] = (~len & 0xffff) >> 8 & 0xff; + idat.set(literals.subarray(pos), pi); + pi += literals.length - pos; + const adler = adler32(literals, 0, literals.length); + idat[pi++] = adler >> 24 & 0xff; + idat[pi++] = adler >> 16 & 0xff; + idat[pi++] = adler >> 8 & 0xff; + idat[pi++] = adler & 0xff; + return idat; + } + + function encode(imgData, kind, forceDataSchema, isMask) { + const width = imgData.width; + const height = imgData.height; + let bitDepth, colorType, lineSize; + const bytes = imgData.data; + + switch (kind) { + case _util.ImageKind.GRAYSCALE_1BPP: + colorType = 0; + bitDepth = 1; + lineSize = width + 7 >> 3; + break; + + case _util.ImageKind.RGB_24BPP: + colorType = 2; + bitDepth = 8; + lineSize = width * 3; + break; + + case _util.ImageKind.RGBA_32BPP: + colorType = 6; + bitDepth = 8; + lineSize = width * 4; + break; + + default: + throw new Error("invalid format"); + } + + const literals = new Uint8Array((1 + lineSize) * height); + let offsetLiterals = 0, + offsetBytes = 0; + + for (let y = 0; y < height; ++y) { + literals[offsetLiterals++] = 0; + literals.set(bytes.subarray(offsetBytes, offsetBytes + lineSize), offsetLiterals); + offsetBytes += lineSize; + offsetLiterals += lineSize; + } + + if (kind === _util.ImageKind.GRAYSCALE_1BPP && isMask) { + offsetLiterals = 0; + + for (let y = 0; y < height; y++) { + offsetLiterals++; + + for (let i = 0; i < lineSize; i++) { + literals[offsetLiterals++] ^= 0xff; + } + } + } + + const ihdr = new Uint8Array([width >> 24 & 0xff, width >> 16 & 0xff, width >> 8 & 0xff, width & 0xff, height >> 24 & 0xff, height >> 16 & 0xff, height >> 8 & 0xff, height & 0xff, bitDepth, colorType, 0x00, 0x00, 0x00]); + const idat = deflateSync(literals); + const pngLength = PNG_HEADER.length + CHUNK_WRAPPER_SIZE * 3 + ihdr.length + idat.length; + const data = new Uint8Array(pngLength); + let offset = 0; + data.set(PNG_HEADER, offset); + offset += PNG_HEADER.length; + writePngChunk("IHDR", ihdr, data, offset); + offset += CHUNK_WRAPPER_SIZE + ihdr.length; + writePngChunk("IDATA", idat, data, offset); + offset += CHUNK_WRAPPER_SIZE + idat.length; + writePngChunk("IEND", new Uint8Array(0), data, offset); + return createObjectURL(data, "image/png", forceDataSchema); + } + + return function convertImgDataToPng(imgData, forceDataSchema, isMask) { + const kind = imgData.kind === undefined ? _util.ImageKind.GRAYSCALE_1BPP : imgData.kind; + return encode(imgData, kind, forceDataSchema, isMask); + }; + }(); + + class SVGExtraState { + constructor() { + this.fontSizeScale = 1; + this.fontWeight = SVG_DEFAULTS.fontWeight; + this.fontSize = 0; + this.textMatrix = _util.IDENTITY_MATRIX; + this.fontMatrix = _util.FONT_IDENTITY_MATRIX; + this.leading = 0; + this.textRenderingMode = _util.TextRenderingMode.FILL; + this.textMatrixScale = 1; + this.x = 0; + this.y = 0; + this.lineX = 0; + this.lineY = 0; + this.charSpacing = 0; + this.wordSpacing = 0; + this.textHScale = 1; + this.textRise = 0; + this.fillColor = SVG_DEFAULTS.fillColor; + this.strokeColor = "#000000"; + this.fillAlpha = 1; + this.strokeAlpha = 1; + this.lineWidth = 1; + this.lineJoin = ""; + this.lineCap = ""; + this.miterLimit = 0; + this.dashArray = []; + this.dashPhase = 0; + this.dependencies = []; + this.activeClipUrl = null; + this.clipGroup = null; + this.maskId = ""; + } + + clone() { + return Object.create(this); + } + + setCurrentPoint(x, y) { + this.x = x; + this.y = y; + } + + } + + function opListToTree(opList) { + let opTree = []; + const tmp = []; + + for (const opListElement of opList) { + if (opListElement.fn === "save") { + opTree.push({ + fnId: 92, + fn: "group", + items: [] + }); + tmp.push(opTree); + opTree = opTree.at(-1).items; + continue; + } + + if (opListElement.fn === "restore") { + opTree = tmp.pop(); + } else { + opTree.push(opListElement); + } + } + + return opTree; + } + + function pf(value) { + if (Number.isInteger(value)) { + return value.toString(); + } + + const s = value.toFixed(10); + let i = s.length - 1; + + if (s[i] !== "0") { + return s; + } + + do { + i--; + } while (s[i] === "0"); + + return s.substring(0, s[i] === "." ? i : i + 1); + } + + function pm(m) { + if (m[4] === 0 && m[5] === 0) { + if (m[1] === 0 && m[2] === 0) { + if (m[0] === 1 && m[3] === 1) { + return ""; + } + + return `scale(${pf(m[0])} ${pf(m[3])})`; + } + + if (m[0] === m[3] && m[1] === -m[2]) { + const a = Math.acos(m[0]) * 180 / Math.PI; + return `rotate(${pf(a)})`; + } + } else { + if (m[0] === 1 && m[1] === 0 && m[2] === 0 && m[3] === 1) { + return `translate(${pf(m[4])} ${pf(m[5])})`; + } + } + + return `matrix(${pf(m[0])} ${pf(m[1])} ${pf(m[2])} ${pf(m[3])} ${pf(m[4])} ` + `${pf(m[5])})`; + } + + let clipCount = 0; + let maskCount = 0; + let shadingCount = 0; + exports.SVGGraphics = SVGGraphics = class { + constructor(commonObjs, objs, forceDataSchema = false) { + (0, _display_utils.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."); + this.svgFactory = new _display_utils.DOMSVGFactory(); + this.current = new SVGExtraState(); + this.transformMatrix = _util.IDENTITY_MATRIX; + this.transformStack = []; + this.extraStack = []; + this.commonObjs = commonObjs; + this.objs = objs; + this.pendingClip = null; + this.pendingEOFill = false; + this.embedFonts = false; + this.embeddedFonts = Object.create(null); + this.cssStyle = null; + this.forceDataSchema = !!forceDataSchema; + this._operatorIdMapping = []; + + for (const op in _util.OPS) { + this._operatorIdMapping[_util.OPS[op]] = op; + } + } + + save() { + this.transformStack.push(this.transformMatrix); + const old = this.current; + this.extraStack.push(old); + this.current = old.clone(); + } + + restore() { + this.transformMatrix = this.transformStack.pop(); + this.current = this.extraStack.pop(); + this.pendingClip = null; + this.tgrp = null; + } + + group(items) { + this.save(); + this.executeOpTree(items); + this.restore(); + } + + loadDependencies(operatorList) { + const fnArray = operatorList.fnArray; + const argsArray = operatorList.argsArray; + + for (let i = 0, ii = fnArray.length; i < ii; i++) { + if (fnArray[i] !== _util.OPS.dependency) { + continue; + } + + for (const obj of argsArray[i]) { + const objsPool = obj.startsWith("g_") ? this.commonObjs : this.objs; + const promise = new Promise(resolve => { + objsPool.get(obj, resolve); + }); + this.current.dependencies.push(promise); + } + } + + return Promise.all(this.current.dependencies); + } + + transform(a, b, c, d, e, f) { + const transformMatrix = [a, b, c, d, e, f]; + this.transformMatrix = _util.Util.transform(this.transformMatrix, transformMatrix); + this.tgrp = null; + } + + getSVG(operatorList, viewport) { + this.viewport = viewport; + + const svgElement = this._initialize(viewport); + + return this.loadDependencies(operatorList).then(() => { + this.transformMatrix = _util.IDENTITY_MATRIX; + this.executeOpTree(this.convertOpList(operatorList)); + return svgElement; + }); + } + + convertOpList(operatorList) { + const operatorIdMapping = this._operatorIdMapping; + const argsArray = operatorList.argsArray; + const fnArray = operatorList.fnArray; + const opList = []; + + for (let i = 0, ii = fnArray.length; i < ii; i++) { + const fnId = fnArray[i]; + opList.push({ + fnId, + fn: operatorIdMapping[fnId], + args: argsArray[i] + }); + } + + return opListToTree(opList); + } + + executeOpTree(opTree) { + for (const opTreeElement of opTree) { + const fn = opTreeElement.fn; + const fnId = opTreeElement.fnId; + const args = opTreeElement.args; + + switch (fnId | 0) { + case _util.OPS.beginText: + this.beginText(); + break; + + case _util.OPS.dependency: + break; + + case _util.OPS.setLeading: + this.setLeading(args); + break; + + case _util.OPS.setLeadingMoveText: + this.setLeadingMoveText(args[0], args[1]); + break; + + case _util.OPS.setFont: + this.setFont(args); + break; + + case _util.OPS.showText: + this.showText(args[0]); + break; + + case _util.OPS.showSpacedText: + this.showText(args[0]); + break; + + case _util.OPS.endText: + this.endText(); + break; + + case _util.OPS.moveText: + this.moveText(args[0], args[1]); + break; + + case _util.OPS.setCharSpacing: + this.setCharSpacing(args[0]); + break; + + case _util.OPS.setWordSpacing: + this.setWordSpacing(args[0]); + break; + + case _util.OPS.setHScale: + this.setHScale(args[0]); + break; + + case _util.OPS.setTextMatrix: + this.setTextMatrix(args[0], args[1], args[2], args[3], args[4], args[5]); + break; + + case _util.OPS.setTextRise: + this.setTextRise(args[0]); + break; + + case _util.OPS.setTextRenderingMode: + this.setTextRenderingMode(args[0]); + break; + + case _util.OPS.setLineWidth: + this.setLineWidth(args[0]); + break; + + case _util.OPS.setLineJoin: + this.setLineJoin(args[0]); + break; + + case _util.OPS.setLineCap: + this.setLineCap(args[0]); + break; + + case _util.OPS.setMiterLimit: + this.setMiterLimit(args[0]); + break; + + case _util.OPS.setFillRGBColor: + this.setFillRGBColor(args[0], args[1], args[2]); + break; + + case _util.OPS.setStrokeRGBColor: + this.setStrokeRGBColor(args[0], args[1], args[2]); + break; + + case _util.OPS.setStrokeColorN: + this.setStrokeColorN(args); + break; + + case _util.OPS.setFillColorN: + this.setFillColorN(args); + break; + + case _util.OPS.shadingFill: + this.shadingFill(args[0]); + break; + + case _util.OPS.setDash: + this.setDash(args[0], args[1]); + break; + + case _util.OPS.setRenderingIntent: + this.setRenderingIntent(args[0]); + break; + + case _util.OPS.setFlatness: + this.setFlatness(args[0]); + break; + + case _util.OPS.setGState: + this.setGState(args[0]); + break; + + case _util.OPS.fill: + this.fill(); + break; + + case _util.OPS.eoFill: + this.eoFill(); + break; + + case _util.OPS.stroke: + this.stroke(); + break; + + case _util.OPS.fillStroke: + this.fillStroke(); + break; + + case _util.OPS.eoFillStroke: + this.eoFillStroke(); + break; + + case _util.OPS.clip: + this.clip("nonzero"); + break; + + case _util.OPS.eoClip: + this.clip("evenodd"); + break; + + case _util.OPS.paintSolidColorImageMask: + this.paintSolidColorImageMask(); + break; + + case _util.OPS.paintImageXObject: + this.paintImageXObject(args[0]); + break; + + case _util.OPS.paintInlineImageXObject: + this.paintInlineImageXObject(args[0]); + break; + + case _util.OPS.paintImageMaskXObject: + this.paintImageMaskXObject(args[0]); + break; + + case _util.OPS.paintFormXObjectBegin: + this.paintFormXObjectBegin(args[0], args[1]); + break; + + case _util.OPS.paintFormXObjectEnd: + this.paintFormXObjectEnd(); + break; + + case _util.OPS.closePath: + this.closePath(); + break; + + case _util.OPS.closeStroke: + this.closeStroke(); + break; + + case _util.OPS.closeFillStroke: + this.closeFillStroke(); + break; + + case _util.OPS.closeEOFillStroke: + this.closeEOFillStroke(); + break; + + case _util.OPS.nextLine: + this.nextLine(); + break; + + case _util.OPS.transform: + this.transform(args[0], args[1], args[2], args[3], args[4], args[5]); + break; + + case _util.OPS.constructPath: + this.constructPath(args[0], args[1]); + break; + + case _util.OPS.endPath: + this.endPath(); + break; + + case 92: + this.group(opTreeElement.items); + break; + + default: + (0, _util.warn)(`Unimplemented operator ${fn}`); + break; + } + } + } + + setWordSpacing(wordSpacing) { + this.current.wordSpacing = wordSpacing; + } + + setCharSpacing(charSpacing) { + this.current.charSpacing = charSpacing; + } + + nextLine() { + this.moveText(0, this.current.leading); + } + + setTextMatrix(a, b, c, d, e, f) { + const current = this.current; + current.textMatrix = current.lineMatrix = [a, b, c, d, e, f]; + current.textMatrixScale = Math.hypot(a, b); + current.x = current.lineX = 0; + current.y = current.lineY = 0; + current.xcoords = []; + current.ycoords = []; + current.tspan = this.svgFactory.createElement("svg:tspan"); + current.tspan.setAttributeNS(null, "font-family", current.fontFamily); + current.tspan.setAttributeNS(null, "font-size", `${pf(current.fontSize)}px`); + current.tspan.setAttributeNS(null, "y", pf(-current.y)); + current.txtElement = this.svgFactory.createElement("svg:text"); + current.txtElement.append(current.tspan); + } + + beginText() { + const current = this.current; + current.x = current.lineX = 0; + current.y = current.lineY = 0; + current.textMatrix = _util.IDENTITY_MATRIX; + current.lineMatrix = _util.IDENTITY_MATRIX; + current.textMatrixScale = 1; + current.tspan = this.svgFactory.createElement("svg:tspan"); + current.txtElement = this.svgFactory.createElement("svg:text"); + current.txtgrp = this.svgFactory.createElement("svg:g"); + current.xcoords = []; + current.ycoords = []; + } + + moveText(x, y) { + const current = this.current; + current.x = current.lineX += x; + current.y = current.lineY += y; + current.xcoords = []; + current.ycoords = []; + current.tspan = this.svgFactory.createElement("svg:tspan"); + current.tspan.setAttributeNS(null, "font-family", current.fontFamily); + current.tspan.setAttributeNS(null, "font-size", `${pf(current.fontSize)}px`); + current.tspan.setAttributeNS(null, "y", pf(-current.y)); + } + + showText(glyphs) { + const current = this.current; + const font = current.font; + const fontSize = current.fontSize; + + if (fontSize === 0) { + return; + } + + const fontSizeScale = current.fontSizeScale; + const charSpacing = current.charSpacing; + const wordSpacing = current.wordSpacing; + const fontDirection = current.fontDirection; + const textHScale = current.textHScale * fontDirection; + const vertical = font.vertical; + const spacingDir = vertical ? 1 : -1; + const defaultVMetrics = font.defaultVMetrics; + const widthAdvanceScale = fontSize * current.fontMatrix[0]; + let x = 0; + + for (const glyph of glyphs) { + if (glyph === null) { + x += fontDirection * wordSpacing; + continue; + } else if (typeof glyph === "number") { + x += spacingDir * glyph * fontSize / 1000; + continue; + } + + const spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing; + const character = glyph.fontChar; + let scaledX, scaledY; + let width = glyph.width; + + if (vertical) { + let vx; + const vmetric = glyph.vmetric || defaultVMetrics; + vx = glyph.vmetric ? vmetric[1] : width * 0.5; + vx = -vx * widthAdvanceScale; + const vy = vmetric[2] * widthAdvanceScale; + width = vmetric ? -vmetric[0] : width; + scaledX = vx / fontSizeScale; + scaledY = (x + vy) / fontSizeScale; + } else { + scaledX = x / fontSizeScale; + scaledY = 0; + } + + if (glyph.isInFont || font.missingFile) { + current.xcoords.push(current.x + scaledX); + + if (vertical) { + current.ycoords.push(-current.y + scaledY); + } + + current.tspan.textContent += character; + } else {} + + let charWidth; + + if (vertical) { + charWidth = width * widthAdvanceScale - spacing * fontDirection; + } else { + charWidth = width * widthAdvanceScale + spacing * fontDirection; + } + + x += charWidth; + } + + current.tspan.setAttributeNS(null, "x", current.xcoords.map(pf).join(" ")); + + if (vertical) { + current.tspan.setAttributeNS(null, "y", current.ycoords.map(pf).join(" ")); + } else { + current.tspan.setAttributeNS(null, "y", pf(-current.y)); + } + + if (vertical) { + current.y -= x; + } else { + current.x += x * textHScale; + } + + current.tspan.setAttributeNS(null, "font-family", current.fontFamily); + current.tspan.setAttributeNS(null, "font-size", `${pf(current.fontSize)}px`); + + if (current.fontStyle !== SVG_DEFAULTS.fontStyle) { + current.tspan.setAttributeNS(null, "font-style", current.fontStyle); + } + + if (current.fontWeight !== SVG_DEFAULTS.fontWeight) { + current.tspan.setAttributeNS(null, "font-weight", current.fontWeight); + } + + const fillStrokeMode = current.textRenderingMode & _util.TextRenderingMode.FILL_STROKE_MASK; + + if (fillStrokeMode === _util.TextRenderingMode.FILL || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) { + if (current.fillColor !== SVG_DEFAULTS.fillColor) { + current.tspan.setAttributeNS(null, "fill", current.fillColor); + } + + if (current.fillAlpha < 1) { + current.tspan.setAttributeNS(null, "fill-opacity", current.fillAlpha); + } + } else if (current.textRenderingMode === _util.TextRenderingMode.ADD_TO_PATH) { + current.tspan.setAttributeNS(null, "fill", "transparent"); + } else { + current.tspan.setAttributeNS(null, "fill", "none"); + } + + if (fillStrokeMode === _util.TextRenderingMode.STROKE || fillStrokeMode === _util.TextRenderingMode.FILL_STROKE) { + const lineWidthScale = 1 / (current.textMatrixScale || 1); + + this._setStrokeAttributes(current.tspan, lineWidthScale); + } + + let textMatrix = current.textMatrix; + + if (current.textRise !== 0) { + textMatrix = textMatrix.slice(); + textMatrix[5] += current.textRise; + } + + current.txtElement.setAttributeNS(null, "transform", `${pm(textMatrix)} scale(${pf(textHScale)}, -1)`); + current.txtElement.setAttributeNS(XML_NS, "xml:space", "preserve"); + current.txtElement.append(current.tspan); + current.txtgrp.append(current.txtElement); + + this._ensureTransformGroup().append(current.txtElement); + } + + setLeadingMoveText(x, y) { + this.setLeading(-y); + this.moveText(x, y); + } + + addFontStyle(fontObj) { + if (!fontObj.data) { + throw new Error("addFontStyle: No font data available, " + 'ensure that the "fontExtraProperties" API parameter is set.'); + } + + if (!this.cssStyle) { + this.cssStyle = this.svgFactory.createElement("svg:style"); + this.cssStyle.setAttributeNS(null, "type", "text/css"); + this.defs.append(this.cssStyle); + } + + const url = createObjectURL(fontObj.data, fontObj.mimetype, this.forceDataSchema); + this.cssStyle.textContent += `@font-face { font-family: "${fontObj.loadedName}";` + ` src: url(${url}); }\n`; + } + + setFont(details) { + const current = this.current; + const fontObj = this.commonObjs.get(details[0]); + let size = details[1]; + current.font = fontObj; + + if (this.embedFonts && !fontObj.missingFile && !this.embeddedFonts[fontObj.loadedName]) { + this.addFontStyle(fontObj); + this.embeddedFonts[fontObj.loadedName] = fontObj; + } + + current.fontMatrix = fontObj.fontMatrix || _util.FONT_IDENTITY_MATRIX; + let bold = "normal"; + + if (fontObj.black) { + bold = "900"; + } else if (fontObj.bold) { + bold = "bold"; + } + + const italic = fontObj.italic ? "italic" : "normal"; + + if (size < 0) { + size = -size; + current.fontDirection = -1; + } else { + current.fontDirection = 1; + } + + current.fontSize = size; + current.fontFamily = fontObj.loadedName; + current.fontWeight = bold; + current.fontStyle = italic; + current.tspan = this.svgFactory.createElement("svg:tspan"); + current.tspan.setAttributeNS(null, "y", pf(-current.y)); + current.xcoords = []; + current.ycoords = []; + } + + endText() { + const current = this.current; + + if (current.textRenderingMode & _util.TextRenderingMode.ADD_TO_PATH_FLAG && current.txtElement?.hasChildNodes()) { + current.element = current.txtElement; + this.clip("nonzero"); + this.endPath(); + } + } + + setLineWidth(width) { + if (width > 0) { + this.current.lineWidth = width; + } + } + + setLineCap(style) { + this.current.lineCap = LINE_CAP_STYLES[style]; + } + + setLineJoin(style) { + this.current.lineJoin = LINE_JOIN_STYLES[style]; + } + + setMiterLimit(limit) { + this.current.miterLimit = limit; + } + + setStrokeAlpha(strokeAlpha) { + this.current.strokeAlpha = strokeAlpha; + } + + setStrokeRGBColor(r, g, b) { + this.current.strokeColor = _util.Util.makeHexColor(r, g, b); + } + + setFillAlpha(fillAlpha) { + this.current.fillAlpha = fillAlpha; + } + + setFillRGBColor(r, g, b) { + this.current.fillColor = _util.Util.makeHexColor(r, g, b); + this.current.tspan = this.svgFactory.createElement("svg:tspan"); + this.current.xcoords = []; + this.current.ycoords = []; + } + + setStrokeColorN(args) { + this.current.strokeColor = this._makeColorN_Pattern(args); + } + + setFillColorN(args) { + this.current.fillColor = this._makeColorN_Pattern(args); + } + + shadingFill(args) { + const width = this.viewport.width; + const height = this.viewport.height; + + const inv = _util.Util.inverseTransform(this.transformMatrix); + + const bl = _util.Util.applyTransform([0, 0], inv); + + const br = _util.Util.applyTransform([0, height], inv); + + const ul = _util.Util.applyTransform([width, 0], inv); + + const ur = _util.Util.applyTransform([width, height], inv); + + const x0 = Math.min(bl[0], br[0], ul[0], ur[0]); + const y0 = Math.min(bl[1], br[1], ul[1], ur[1]); + const x1 = Math.max(bl[0], br[0], ul[0], ur[0]); + const y1 = Math.max(bl[1], br[1], ul[1], ur[1]); + const rect = this.svgFactory.createElement("svg:rect"); + rect.setAttributeNS(null, "x", x0); + rect.setAttributeNS(null, "y", y0); + rect.setAttributeNS(null, "width", x1 - x0); + rect.setAttributeNS(null, "height", y1 - y0); + rect.setAttributeNS(null, "fill", this._makeShadingPattern(args)); + + if (this.current.fillAlpha < 1) { + rect.setAttributeNS(null, "fill-opacity", this.current.fillAlpha); + } + + this._ensureTransformGroup().append(rect); + } + + _makeColorN_Pattern(args) { + if (args[0] === "TilingPattern") { + return this._makeTilingPattern(args); + } + + return this._makeShadingPattern(args); + } + + _makeTilingPattern(args) { + const color = args[1]; + const operatorList = args[2]; + const matrix = args[3] || _util.IDENTITY_MATRIX; + const [x0, y0, x1, y1] = args[4]; + const xstep = args[5]; + const ystep = args[6]; + const paintType = args[7]; + const tilingId = `shading${shadingCount++}`; + + const [tx0, ty0, tx1, ty1] = _util.Util.normalizeRect([..._util.Util.applyTransform([x0, y0], matrix), ..._util.Util.applyTransform([x1, y1], matrix)]); + + const [xscale, yscale] = _util.Util.singularValueDecompose2dScale(matrix); + + const txstep = xstep * xscale; + const tystep = ystep * yscale; + const tiling = this.svgFactory.createElement("svg:pattern"); + tiling.setAttributeNS(null, "id", tilingId); + tiling.setAttributeNS(null, "patternUnits", "userSpaceOnUse"); + tiling.setAttributeNS(null, "width", txstep); + tiling.setAttributeNS(null, "height", tystep); + tiling.setAttributeNS(null, "x", `${tx0}`); + tiling.setAttributeNS(null, "y", `${ty0}`); + const svg = this.svg; + const transformMatrix = this.transformMatrix; + const fillColor = this.current.fillColor; + const strokeColor = this.current.strokeColor; + const bbox = this.svgFactory.create(tx1 - tx0, ty1 - ty0); + this.svg = bbox; + this.transformMatrix = matrix; + + if (paintType === 2) { + const cssColor = _util.Util.makeHexColor(...color); + + this.current.fillColor = cssColor; + this.current.strokeColor = cssColor; + } + + this.executeOpTree(this.convertOpList(operatorList)); + this.svg = svg; + this.transformMatrix = transformMatrix; + this.current.fillColor = fillColor; + this.current.strokeColor = strokeColor; + tiling.append(bbox.childNodes[0]); + this.defs.append(tiling); + return `url(#${tilingId})`; + } + + _makeShadingPattern(args) { + if (typeof args === "string") { + args = this.objs.get(args); + } + + switch (args[0]) { + case "RadialAxial": + const shadingId = `shading${shadingCount++}`; + const colorStops = args[3]; + let gradient; + + switch (args[1]) { + case "axial": + const point0 = args[4]; + const point1 = args[5]; + gradient = this.svgFactory.createElement("svg:linearGradient"); + gradient.setAttributeNS(null, "id", shadingId); + gradient.setAttributeNS(null, "gradientUnits", "userSpaceOnUse"); + gradient.setAttributeNS(null, "x1", point0[0]); + gradient.setAttributeNS(null, "y1", point0[1]); + gradient.setAttributeNS(null, "x2", point1[0]); + gradient.setAttributeNS(null, "y2", point1[1]); + break; + + case "radial": + const focalPoint = args[4]; + const circlePoint = args[5]; + const focalRadius = args[6]; + const circleRadius = args[7]; + gradient = this.svgFactory.createElement("svg:radialGradient"); + gradient.setAttributeNS(null, "id", shadingId); + gradient.setAttributeNS(null, "gradientUnits", "userSpaceOnUse"); + gradient.setAttributeNS(null, "cx", circlePoint[0]); + gradient.setAttributeNS(null, "cy", circlePoint[1]); + gradient.setAttributeNS(null, "r", circleRadius); + gradient.setAttributeNS(null, "fx", focalPoint[0]); + gradient.setAttributeNS(null, "fy", focalPoint[1]); + gradient.setAttributeNS(null, "fr", focalRadius); + break; + + default: + throw new Error(`Unknown RadialAxial type: ${args[1]}`); + } + + for (const colorStop of colorStops) { + const stop = this.svgFactory.createElement("svg:stop"); + stop.setAttributeNS(null, "offset", colorStop[0]); + stop.setAttributeNS(null, "stop-color", colorStop[1]); + gradient.append(stop); + } + + this.defs.append(gradient); + return `url(#${shadingId})`; + + case "Mesh": + (0, _util.warn)("Unimplemented pattern Mesh"); + return null; + + case "Dummy": + return "hotpink"; + + default: + throw new Error(`Unknown IR type: ${args[0]}`); + } + } + + setDash(dashArray, dashPhase) { + this.current.dashArray = dashArray; + this.current.dashPhase = dashPhase; + } + + constructPath(ops, args) { + const current = this.current; + let x = current.x, + y = current.y; + let d = []; + let j = 0; + + for (const op of ops) { + switch (op | 0) { + case _util.OPS.rectangle: + x = args[j++]; + y = args[j++]; + const width = args[j++]; + const height = args[j++]; + const xw = x + width; + const yh = y + height; + d.push("M", pf(x), pf(y), "L", pf(xw), pf(y), "L", pf(xw), pf(yh), "L", pf(x), pf(yh), "Z"); + break; + + case _util.OPS.moveTo: + x = args[j++]; + y = args[j++]; + d.push("M", pf(x), pf(y)); + break; + + case _util.OPS.lineTo: + x = args[j++]; + y = args[j++]; + d.push("L", pf(x), pf(y)); + break; + + case _util.OPS.curveTo: + x = args[j + 4]; + y = args[j + 5]; + d.push("C", pf(args[j]), pf(args[j + 1]), pf(args[j + 2]), pf(args[j + 3]), pf(x), pf(y)); + j += 6; + break; + + case _util.OPS.curveTo2: + d.push("C", pf(x), pf(y), pf(args[j]), pf(args[j + 1]), pf(args[j + 2]), pf(args[j + 3])); + x = args[j + 2]; + y = args[j + 3]; + j += 4; + break; + + case _util.OPS.curveTo3: + x = args[j + 2]; + y = args[j + 3]; + d.push("C", pf(args[j]), pf(args[j + 1]), pf(x), pf(y), pf(x), pf(y)); + j += 4; + break; + + case _util.OPS.closePath: + d.push("Z"); + break; + } + } + + d = d.join(" "); + + if (current.path && ops.length > 0 && ops[0] !== _util.OPS.rectangle && ops[0] !== _util.OPS.moveTo) { + d = current.path.getAttributeNS(null, "d") + d; + } else { + current.path = this.svgFactory.createElement("svg:path"); + + this._ensureTransformGroup().append(current.path); + } + + current.path.setAttributeNS(null, "d", d); + current.path.setAttributeNS(null, "fill", "none"); + current.element = current.path; + current.setCurrentPoint(x, y); + } + + endPath() { + const current = this.current; + current.path = null; + + if (!this.pendingClip) { + return; + } + + if (!current.element) { + this.pendingClip = null; + return; + } + + const clipId = `clippath${clipCount++}`; + const clipPath = this.svgFactory.createElement("svg:clipPath"); + clipPath.setAttributeNS(null, "id", clipId); + clipPath.setAttributeNS(null, "transform", pm(this.transformMatrix)); + const clipElement = current.element.cloneNode(true); + + if (this.pendingClip === "evenodd") { + clipElement.setAttributeNS(null, "clip-rule", "evenodd"); + } else { + clipElement.setAttributeNS(null, "clip-rule", "nonzero"); + } + + this.pendingClip = null; + clipPath.append(clipElement); + this.defs.append(clipPath); + + if (current.activeClipUrl) { + current.clipGroup = null; + + for (const prev of this.extraStack) { + prev.clipGroup = null; + } + + clipPath.setAttributeNS(null, "clip-path", current.activeClipUrl); + } + + current.activeClipUrl = `url(#${clipId})`; + this.tgrp = null; + } + + clip(type) { + this.pendingClip = type; + } + + closePath() { + const current = this.current; + + if (current.path) { + const d = `${current.path.getAttributeNS(null, "d")}Z`; + current.path.setAttributeNS(null, "d", d); + } + } + + setLeading(leading) { + this.current.leading = -leading; + } + + setTextRise(textRise) { + this.current.textRise = textRise; + } + + setTextRenderingMode(textRenderingMode) { + this.current.textRenderingMode = textRenderingMode; + } + + setHScale(scale) { + this.current.textHScale = scale / 100; + } + + setRenderingIntent(intent) {} + + setFlatness(flatness) {} + + setGState(states) { + for (const [key, value] of states) { + switch (key) { + case "LW": + this.setLineWidth(value); + break; + + case "LC": + this.setLineCap(value); + break; + + case "LJ": + this.setLineJoin(value); + break; + + case "ML": + this.setMiterLimit(value); + break; + + case "D": + this.setDash(value[0], value[1]); + break; + + case "RI": + this.setRenderingIntent(value); + break; + + case "FL": + this.setFlatness(value); + break; + + case "Font": + this.setFont(value); + break; + + case "CA": + this.setStrokeAlpha(value); + break; + + case "ca": + this.setFillAlpha(value); + break; + + default: + (0, _util.warn)(`Unimplemented graphic state operator ${key}`); + break; + } + } + } + + fill() { + const current = this.current; + + if (current.element) { + current.element.setAttributeNS(null, "fill", current.fillColor); + current.element.setAttributeNS(null, "fill-opacity", current.fillAlpha); + this.endPath(); + } + } + + stroke() { + const current = this.current; + + if (current.element) { + this._setStrokeAttributes(current.element); + + current.element.setAttributeNS(null, "fill", "none"); + this.endPath(); + } + } + + _setStrokeAttributes(element, lineWidthScale = 1) { + const current = this.current; + let dashArray = current.dashArray; + + if (lineWidthScale !== 1 && dashArray.length > 0) { + dashArray = dashArray.map(function (value) { + return lineWidthScale * value; + }); + } + + element.setAttributeNS(null, "stroke", current.strokeColor); + element.setAttributeNS(null, "stroke-opacity", current.strokeAlpha); + element.setAttributeNS(null, "stroke-miterlimit", pf(current.miterLimit)); + element.setAttributeNS(null, "stroke-linecap", current.lineCap); + element.setAttributeNS(null, "stroke-linejoin", current.lineJoin); + element.setAttributeNS(null, "stroke-width", pf(lineWidthScale * current.lineWidth) + "px"); + element.setAttributeNS(null, "stroke-dasharray", dashArray.map(pf).join(" ")); + element.setAttributeNS(null, "stroke-dashoffset", pf(lineWidthScale * current.dashPhase) + "px"); + } + + eoFill() { + if (this.current.element) { + this.current.element.setAttributeNS(null, "fill-rule", "evenodd"); + } + + this.fill(); + } + + fillStroke() { + this.stroke(); + this.fill(); + } + + eoFillStroke() { + if (this.current.element) { + this.current.element.setAttributeNS(null, "fill-rule", "evenodd"); + } + + this.fillStroke(); + } + + closeStroke() { + this.closePath(); + this.stroke(); + } + + closeFillStroke() { + this.closePath(); + this.fillStroke(); + } + + closeEOFillStroke() { + this.closePath(); + this.eoFillStroke(); + } + + paintSolidColorImageMask() { + const rect = this.svgFactory.createElement("svg:rect"); + rect.setAttributeNS(null, "x", "0"); + rect.setAttributeNS(null, "y", "0"); + rect.setAttributeNS(null, "width", "1px"); + rect.setAttributeNS(null, "height", "1px"); + rect.setAttributeNS(null, "fill", this.current.fillColor); + + this._ensureTransformGroup().append(rect); + } + + paintImageXObject(objId) { + const imgData = objId.startsWith("g_") ? this.commonObjs.get(objId) : this.objs.get(objId); + + if (!imgData) { + (0, _util.warn)(`Dependent image with object ID ${objId} is not ready yet`); + return; + } + + this.paintInlineImageXObject(imgData); + } + + paintInlineImageXObject(imgData, mask) { + const width = imgData.width; + const height = imgData.height; + const imgSrc = convertImgDataToPng(imgData, this.forceDataSchema, !!mask); + const cliprect = this.svgFactory.createElement("svg:rect"); + cliprect.setAttributeNS(null, "x", "0"); + cliprect.setAttributeNS(null, "y", "0"); + cliprect.setAttributeNS(null, "width", pf(width)); + cliprect.setAttributeNS(null, "height", pf(height)); + this.current.element = cliprect; + this.clip("nonzero"); + const imgEl = this.svgFactory.createElement("svg:image"); + imgEl.setAttributeNS(XLINK_NS, "xlink:href", imgSrc); + imgEl.setAttributeNS(null, "x", "0"); + imgEl.setAttributeNS(null, "y", pf(-height)); + imgEl.setAttributeNS(null, "width", pf(width) + "px"); + imgEl.setAttributeNS(null, "height", pf(height) + "px"); + imgEl.setAttributeNS(null, "transform", `scale(${pf(1 / width)} ${pf(-1 / height)})`); + + if (mask) { + mask.append(imgEl); + } else { + this._ensureTransformGroup().append(imgEl); + } + } + + paintImageMaskXObject(imgData) { + const current = this.current; + const width = imgData.width; + const height = imgData.height; + const fillColor = current.fillColor; + current.maskId = `mask${maskCount++}`; + const mask = this.svgFactory.createElement("svg:mask"); + mask.setAttributeNS(null, "id", current.maskId); + const rect = this.svgFactory.createElement("svg:rect"); + rect.setAttributeNS(null, "x", "0"); + rect.setAttributeNS(null, "y", "0"); + rect.setAttributeNS(null, "width", pf(width)); + rect.setAttributeNS(null, "height", pf(height)); + rect.setAttributeNS(null, "fill", fillColor); + rect.setAttributeNS(null, "mask", `url(#${current.maskId})`); + this.defs.append(mask); + + this._ensureTransformGroup().append(rect); + + this.paintInlineImageXObject(imgData, mask); + } + + paintFormXObjectBegin(matrix, bbox) { + if (Array.isArray(matrix) && matrix.length === 6) { + this.transform(matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]); + } + + if (bbox) { + const width = bbox[2] - bbox[0]; + const height = bbox[3] - bbox[1]; + const cliprect = this.svgFactory.createElement("svg:rect"); + cliprect.setAttributeNS(null, "x", bbox[0]); + cliprect.setAttributeNS(null, "y", bbox[1]); + cliprect.setAttributeNS(null, "width", pf(width)); + cliprect.setAttributeNS(null, "height", pf(height)); + this.current.element = cliprect; + this.clip("nonzero"); + this.endPath(); + } + } + + paintFormXObjectEnd() {} + + _initialize(viewport) { + const svg = this.svgFactory.create(viewport.width, viewport.height); + const definitions = this.svgFactory.createElement("svg:defs"); + svg.append(definitions); + this.defs = definitions; + const rootGroup = this.svgFactory.createElement("svg:g"); + rootGroup.setAttributeNS(null, "transform", pm(viewport.transform)); + svg.append(rootGroup); + this.svg = rootGroup; + return svg; + } + + _ensureClipGroup() { + if (!this.current.clipGroup) { + const clipGroup = this.svgFactory.createElement("svg:g"); + clipGroup.setAttributeNS(null, "clip-path", this.current.activeClipUrl); + this.svg.append(clipGroup); + this.current.clipGroup = clipGroup; + } + + return this.current.clipGroup; + } + + _ensureTransformGroup() { + if (!this.tgrp) { + this.tgrp = this.svgFactory.createElement("svg:g"); + this.tgrp.setAttributeNS(null, "transform", pm(this.transformMatrix)); + + if (this.current.activeClipUrl) { + this._ensureClipGroup().append(this.tgrp); + } else { + this.svg.append(this.tgrp); + } + } + + return this.tgrp; + } + + }; +} + +/***/ }), +/* 32 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFNodeStream = void 0; + +var _util = __w_pdfjs_require__(1); + +var _network_utils = __w_pdfjs_require__(33); + +; + +const fs = require("fs"); + +const http = require("http"); + +const https = require("https"); + +const url = require("url"); + +const fileUriRegex = /^file:\/\/\/[a-zA-Z]:\//; + +function parseUrl(sourceUrl) { + const parsedUrl = url.parse(sourceUrl); + + if (parsedUrl.protocol === "file:" || parsedUrl.host) { + return parsedUrl; + } + + if (/^[a-z]:[/\\]/i.test(sourceUrl)) { + return url.parse(`file:///${sourceUrl}`); + } + + if (!parsedUrl.host) { + parsedUrl.protocol = "file:"; + } + + return parsedUrl; +} + +class PDFNodeStream { + constructor(source) { + this.source = source; + this.url = parseUrl(source.url); + this.isHttp = this.url.protocol === "http:" || this.url.protocol === "https:"; + this.isFsUrl = this.url.protocol === "file:"; + this.httpHeaders = this.isHttp && source.httpHeaders || {}; + this._fullRequestReader = null; + this._rangeRequestReaders = []; + } + + get _progressiveDataLength() { + return this._fullRequestReader?._loaded ?? 0; + } + + getFullReader() { + (0, _util.assert)(!this._fullRequestReader, "PDFNodeStream.getFullReader can only be called once."); + this._fullRequestReader = this.isFsUrl ? new PDFNodeStreamFsFullReader(this) : new PDFNodeStreamFullReader(this); + return this._fullRequestReader; + } + + getRangeReader(start, end) { + if (end <= this._progressiveDataLength) { + return null; + } + + const rangeReader = this.isFsUrl ? new PDFNodeStreamFsRangeReader(this, start, end) : new PDFNodeStreamRangeReader(this, start, end); + + this._rangeRequestReaders.push(rangeReader); + + return rangeReader; + } + + cancelAllRequests(reason) { + if (this._fullRequestReader) { + this._fullRequestReader.cancel(reason); + } + + for (const reader of this._rangeRequestReaders.slice(0)) { + reader.cancel(reason); + } + } + +} + +exports.PDFNodeStream = PDFNodeStream; + +class BaseFullReader { + constructor(stream) { + this._url = stream.url; + this._done = false; + this._storedError = null; + this.onProgress = null; + const source = stream.source; + this._contentLength = source.length; + this._loaded = 0; + this._filename = null; + this._disableRange = source.disableRange || false; + this._rangeChunkSize = source.rangeChunkSize; + + if (!this._rangeChunkSize && !this._disableRange) { + this._disableRange = true; + } + + this._isStreamingSupported = !source.disableStream; + this._isRangeSupported = !source.disableRange; + this._readableStream = null; + this._readCapability = (0, _util.createPromiseCapability)(); + this._headersCapability = (0, _util.createPromiseCapability)(); + } + + get headersReady() { + return this._headersCapability.promise; + } + + get filename() { + return this._filename; + } + + get contentLength() { + return this._contentLength; + } + + get isRangeSupported() { + return this._isRangeSupported; + } + + get isStreamingSupported() { + return this._isStreamingSupported; + } + + async read() { + await this._readCapability.promise; + + if (this._done) { + return { + value: undefined, + done: true + }; + } + + if (this._storedError) { + throw this._storedError; + } + + const chunk = this._readableStream.read(); + + if (chunk === null) { + this._readCapability = (0, _util.createPromiseCapability)(); + return this.read(); + } + + this._loaded += chunk.length; + + if (this.onProgress) { + this.onProgress({ + loaded: this._loaded, + total: this._contentLength + }); + } + + const buffer = new Uint8Array(chunk).buffer; + return { + value: buffer, + done: false + }; + } + + cancel(reason) { + if (!this._readableStream) { + this._error(reason); + + return; + } + + this._readableStream.destroy(reason); + } + + _error(reason) { + this._storedError = reason; + + this._readCapability.resolve(); + } + + _setReadableStream(readableStream) { + this._readableStream = readableStream; + readableStream.on("readable", () => { + this._readCapability.resolve(); + }); + readableStream.on("end", () => { + readableStream.destroy(); + this._done = true; + + this._readCapability.resolve(); + }); + readableStream.on("error", reason => { + this._error(reason); + }); + + if (!this._isStreamingSupported && this._isRangeSupported) { + this._error(new _util.AbortException("streaming is disabled")); + } + + if (this._storedError) { + this._readableStream.destroy(this._storedError); + } + } + +} + +class BaseRangeReader { + constructor(stream) { + this._url = stream.url; + this._done = false; + this._storedError = null; + this.onProgress = null; + this._loaded = 0; + this._readableStream = null; + this._readCapability = (0, _util.createPromiseCapability)(); + const source = stream.source; + this._isStreamingSupported = !source.disableStream; + } + + get isStreamingSupported() { + return this._isStreamingSupported; + } + + async read() { + await this._readCapability.promise; + + if (this._done) { + return { + value: undefined, + done: true + }; + } + + if (this._storedError) { + throw this._storedError; + } + + const chunk = this._readableStream.read(); + + if (chunk === null) { + this._readCapability = (0, _util.createPromiseCapability)(); + return this.read(); + } + + this._loaded += chunk.length; + + if (this.onProgress) { + this.onProgress({ + loaded: this._loaded + }); + } + + const buffer = new Uint8Array(chunk).buffer; + return { + value: buffer, + done: false + }; + } + + cancel(reason) { + if (!this._readableStream) { + this._error(reason); + + return; + } + + this._readableStream.destroy(reason); + } + + _error(reason) { + this._storedError = reason; + + this._readCapability.resolve(); + } + + _setReadableStream(readableStream) { + this._readableStream = readableStream; + readableStream.on("readable", () => { + this._readCapability.resolve(); + }); + readableStream.on("end", () => { + readableStream.destroy(); + this._done = true; + + this._readCapability.resolve(); + }); + readableStream.on("error", reason => { + this._error(reason); + }); + + if (this._storedError) { + this._readableStream.destroy(this._storedError); + } + } + +} + +function createRequestOptions(parsedUrl, headers) { + return { + protocol: parsedUrl.protocol, + auth: parsedUrl.auth, + host: parsedUrl.hostname, + port: parsedUrl.port, + path: parsedUrl.path, + method: "GET", + headers + }; +} + +class PDFNodeStreamFullReader extends BaseFullReader { + constructor(stream) { + super(stream); + + const handleResponse = response => { + if (response.statusCode === 404) { + const error = new _util.MissingPDFException(`Missing PDF "${this._url}".`); + this._storedError = error; + + this._headersCapability.reject(error); + + return; + } + + this._headersCapability.resolve(); + + this._setReadableStream(response); + + const getResponseHeader = name => { + return this._readableStream.headers[name.toLowerCase()]; + }; + + const { + allowRangeRequests, + suggestedLength + } = (0, _network_utils.validateRangeRequestCapabilities)({ + getResponseHeader, + isHttp: stream.isHttp, + rangeChunkSize: this._rangeChunkSize, + disableRange: this._disableRange + }); + this._isRangeSupported = allowRangeRequests; + this._contentLength = suggestedLength || this._contentLength; + this._filename = (0, _network_utils.extractFilenameFromHeader)(getResponseHeader); + }; + + this._request = null; + + if (this._url.protocol === "http:") { + this._request = http.request(createRequestOptions(this._url, stream.httpHeaders), handleResponse); + } else { + this._request = https.request(createRequestOptions(this._url, stream.httpHeaders), handleResponse); + } + + this._request.on("error", reason => { + this._storedError = reason; + + this._headersCapability.reject(reason); + }); + + this._request.end(); + } + +} + +class PDFNodeStreamRangeReader extends BaseRangeReader { + constructor(stream, start, end) { + super(stream); + this._httpHeaders = {}; + + for (const property in stream.httpHeaders) { + const value = stream.httpHeaders[property]; + + if (typeof value === "undefined") { + continue; + } + + this._httpHeaders[property] = value; + } + + this._httpHeaders.Range = `bytes=${start}-${end - 1}`; + + const handleResponse = response => { + if (response.statusCode === 404) { + const error = new _util.MissingPDFException(`Missing PDF "${this._url}".`); + this._storedError = error; + return; + } + + this._setReadableStream(response); + }; + + this._request = null; + + if (this._url.protocol === "http:") { + this._request = http.request(createRequestOptions(this._url, this._httpHeaders), handleResponse); + } else { + this._request = https.request(createRequestOptions(this._url, this._httpHeaders), handleResponse); + } + + this._request.on("error", reason => { + this._storedError = reason; + }); + + this._request.end(); + } + +} + +class PDFNodeStreamFsFullReader extends BaseFullReader { + constructor(stream) { + super(stream); + let path = decodeURIComponent(this._url.path); + + if (fileUriRegex.test(this._url.href)) { + path = path.replace(/^\//, ""); + } + + fs.lstat(path, (error, stat) => { + if (error) { + if (error.code === "ENOENT") { + error = new _util.MissingPDFException(`Missing PDF "${path}".`); + } + + this._storedError = error; + + this._headersCapability.reject(error); + + return; + } + + this._contentLength = stat.size; + + this._setReadableStream(fs.createReadStream(path)); + + this._headersCapability.resolve(); + }); + } + +} + +class PDFNodeStreamFsRangeReader extends BaseRangeReader { + constructor(stream, start, end) { + super(stream); + let path = decodeURIComponent(this._url.path); + + if (fileUriRegex.test(this._url.href)) { + path = path.replace(/^\//, ""); + } + + this._setReadableStream(fs.createReadStream(path, { + start, + end: end - 1 + })); + } + +} + +/***/ }), +/* 33 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.createResponseStatusError = createResponseStatusError; +exports.extractFilenameFromHeader = extractFilenameFromHeader; +exports.validateRangeRequestCapabilities = validateRangeRequestCapabilities; +exports.validateResponseStatus = validateResponseStatus; + +var _util = __w_pdfjs_require__(1); + +var _content_disposition = __w_pdfjs_require__(34); + +var _display_utils = __w_pdfjs_require__(8); + +function validateRangeRequestCapabilities({ + getResponseHeader, + isHttp, + rangeChunkSize, + disableRange +}) { + const returnValues = { + allowRangeRequests: false, + suggestedLength: undefined + }; + const length = parseInt(getResponseHeader("Content-Length"), 10); + + if (!Number.isInteger(length)) { + return returnValues; + } + + returnValues.suggestedLength = length; + + if (length <= 2 * rangeChunkSize) { + return returnValues; + } + + if (disableRange || !isHttp) { + return returnValues; + } + + if (getResponseHeader("Accept-Ranges") !== "bytes") { + return returnValues; + } + + const contentEncoding = getResponseHeader("Content-Encoding") || "identity"; + + if (contentEncoding !== "identity") { + return returnValues; + } + + returnValues.allowRangeRequests = true; + return returnValues; +} + +function extractFilenameFromHeader(getResponseHeader) { + const contentDisposition = getResponseHeader("Content-Disposition"); + + if (contentDisposition) { + let filename = (0, _content_disposition.getFilenameFromContentDispositionHeader)(contentDisposition); + + if (filename.includes("%")) { + try { + filename = decodeURIComponent(filename); + } catch (ex) {} + } + + if ((0, _display_utils.isPdfFile)(filename)) { + return filename; + } + } + + return null; +} + +function createResponseStatusError(status, url) { + if (status === 404 || status === 0 && url.startsWith("file:")) { + return new _util.MissingPDFException('Missing PDF "' + url + '".'); + } + + return new _util.UnexpectedResponseException(`Unexpected server response (${status}) while retrieving PDF "${url}".`, status); +} + +function validateResponseStatus(status) { + return status === 200 || status === 206; +} + +/***/ }), +/* 34 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.getFilenameFromContentDispositionHeader = getFilenameFromContentDispositionHeader; + +var _util = __w_pdfjs_require__(1); + +function getFilenameFromContentDispositionHeader(contentDisposition) { + let needsEncodingFixup = true; + let tmp = toParamRegExp("filename\\*", "i").exec(contentDisposition); + + if (tmp) { + tmp = tmp[1]; + let filename = rfc2616unquote(tmp); + filename = unescape(filename); + filename = rfc5987decode(filename); + filename = rfc2047decode(filename); + return fixupEncoding(filename); + } + + tmp = rfc2231getparam(contentDisposition); + + if (tmp) { + const filename = rfc2047decode(tmp); + return fixupEncoding(filename); + } + + tmp = toParamRegExp("filename", "i").exec(contentDisposition); + + if (tmp) { + tmp = tmp[1]; + let filename = rfc2616unquote(tmp); + filename = rfc2047decode(filename); + return fixupEncoding(filename); + } + + function toParamRegExp(attributePattern, flags) { + return new RegExp("(?:^|;)\\s*" + attributePattern + "\\s*=\\s*" + "(" + '[^";\\s][^;\\s]*' + "|" + '"(?:[^"\\\\]|\\\\"?)+"?' + ")", flags); + } + + function textdecode(encoding, value) { + if (encoding) { + if (!/^[\x00-\xFF]+$/.test(value)) { + return value; + } + + try { + const decoder = new TextDecoder(encoding, { + fatal: true + }); + const buffer = (0, _util.stringToBytes)(value); + value = decoder.decode(buffer); + needsEncodingFixup = false; + } catch (e) {} + } + + return value; + } + + function fixupEncoding(value) { + if (needsEncodingFixup && /[\x80-\xff]/.test(value)) { + value = textdecode("utf-8", value); + + if (needsEncodingFixup) { + value = textdecode("iso-8859-1", value); + } + } + + return value; + } + + function rfc2231getparam(contentDispositionStr) { + const matches = []; + let match; + const iter = toParamRegExp("filename\\*((?!0\\d)\\d+)(\\*?)", "ig"); + + while ((match = iter.exec(contentDispositionStr)) !== null) { + let [, n, quot, part] = match; + n = parseInt(n, 10); + + if (n in matches) { + if (n === 0) { + break; + } + + continue; + } + + matches[n] = [quot, part]; + } + + const parts = []; + + for (let n = 0; n < matches.length; ++n) { + if (!(n in matches)) { + break; + } + + let [quot, part] = matches[n]; + part = rfc2616unquote(part); + + if (quot) { + part = unescape(part); + + if (n === 0) { + part = rfc5987decode(part); + } + } + + parts.push(part); + } + + return parts.join(""); + } + + function rfc2616unquote(value) { + if (value.startsWith('"')) { + const parts = value.slice(1).split('\\"'); + + for (let i = 0; i < parts.length; ++i) { + const quotindex = parts[i].indexOf('"'); + + if (quotindex !== -1) { + parts[i] = parts[i].slice(0, quotindex); + parts.length = i + 1; + } + + parts[i] = parts[i].replace(/\\(.)/g, "$1"); + } + + value = parts.join('"'); + } + + return value; + } + + function rfc5987decode(extvalue) { + const encodingend = extvalue.indexOf("'"); + + if (encodingend === -1) { + return extvalue; + } + + const encoding = extvalue.slice(0, encodingend); + const langvalue = extvalue.slice(encodingend + 1); + const value = langvalue.replace(/^[^']*'/, ""); + return textdecode(encoding, value); + } + + function rfc2047decode(value) { + if (!value.startsWith("=?") || /[\x00-\x19\x80-\xff]/.test(value)) { + return value; + } + + return value.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g, function (matches, charset, encoding, text) { + if (encoding === "q" || encoding === "Q") { + text = text.replace(/_/g, " "); + text = text.replace(/=([0-9a-fA-F]{2})/g, function (match, hex) { + return String.fromCharCode(parseInt(hex, 16)); + }); + return textdecode(charset, text); + } + + try { + text = atob(text); + } catch (e) {} + + return textdecode(charset, text); + }); + } + + return ""; +} + +/***/ }), +/* 35 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFNetworkStream = void 0; + +var _util = __w_pdfjs_require__(1); + +var _network_utils = __w_pdfjs_require__(33); + +; +const OK_RESPONSE = 200; +const PARTIAL_CONTENT_RESPONSE = 206; + +function getArrayBuffer(xhr) { + const data = xhr.response; + + if (typeof data !== "string") { + return data; + } + + const array = (0, _util.stringToBytes)(data); + return array.buffer; +} + +class NetworkManager { + constructor(url, args = {}) { + this.url = url; + this.isHttp = /^https?:/i.test(url); + this.httpHeaders = this.isHttp && args.httpHeaders || Object.create(null); + this.withCredentials = args.withCredentials || false; + + this.getXhr = args.getXhr || function NetworkManager_getXhr() { + return new XMLHttpRequest(); + }; + + this.currXhrId = 0; + this.pendingRequests = Object.create(null); + } + + requestRange(begin, end, listeners) { + const args = { + begin, + end + }; + + for (const prop in listeners) { + args[prop] = listeners[prop]; + } + + return this.request(args); + } + + requestFull(listeners) { + return this.request(listeners); + } + + request(args) { + const xhr = this.getXhr(); + const xhrId = this.currXhrId++; + const pendingRequest = this.pendingRequests[xhrId] = { + xhr + }; + xhr.open("GET", this.url); + xhr.withCredentials = this.withCredentials; + + for (const property in this.httpHeaders) { + const value = this.httpHeaders[property]; + + if (typeof value === "undefined") { + continue; + } + + xhr.setRequestHeader(property, value); + } + + if (this.isHttp && "begin" in args && "end" in args) { + xhr.setRequestHeader("Range", `bytes=${args.begin}-${args.end - 1}`); + pendingRequest.expectedStatus = PARTIAL_CONTENT_RESPONSE; + } else { + pendingRequest.expectedStatus = OK_RESPONSE; + } + + xhr.responseType = "arraybuffer"; + + if (args.onError) { + xhr.onerror = function (evt) { + args.onError(xhr.status); + }; + } + + xhr.onreadystatechange = this.onStateChange.bind(this, xhrId); + xhr.onprogress = this.onProgress.bind(this, xhrId); + pendingRequest.onHeadersReceived = args.onHeadersReceived; + pendingRequest.onDone = args.onDone; + pendingRequest.onError = args.onError; + pendingRequest.onProgress = args.onProgress; + xhr.send(null); + return xhrId; + } + + onProgress(xhrId, evt) { + const pendingRequest = this.pendingRequests[xhrId]; + + if (!pendingRequest) { + return; + } + + pendingRequest.onProgress?.(evt); + } + + onStateChange(xhrId, evt) { + const pendingRequest = this.pendingRequests[xhrId]; + + if (!pendingRequest) { + return; + } + + const xhr = pendingRequest.xhr; + + if (xhr.readyState >= 2 && pendingRequest.onHeadersReceived) { + pendingRequest.onHeadersReceived(); + delete pendingRequest.onHeadersReceived; + } + + if (xhr.readyState !== 4) { + return; + } + + if (!(xhrId in this.pendingRequests)) { + return; + } + + delete this.pendingRequests[xhrId]; + + if (xhr.status === 0 && this.isHttp) { + pendingRequest.onError?.(xhr.status); + return; + } + + const xhrStatus = xhr.status || OK_RESPONSE; + const ok_response_on_range_request = xhrStatus === OK_RESPONSE && pendingRequest.expectedStatus === PARTIAL_CONTENT_RESPONSE; + + if (!ok_response_on_range_request && xhrStatus !== pendingRequest.expectedStatus) { + pendingRequest.onError?.(xhr.status); + return; + } + + const chunk = getArrayBuffer(xhr); + + if (xhrStatus === PARTIAL_CONTENT_RESPONSE) { + const rangeHeader = xhr.getResponseHeader("Content-Range"); + const matches = /bytes (\d+)-(\d+)\/(\d+)/.exec(rangeHeader); + pendingRequest.onDone({ + begin: parseInt(matches[1], 10), + chunk + }); + } else if (chunk) { + pendingRequest.onDone({ + begin: 0, + chunk + }); + } else { + pendingRequest.onError?.(xhr.status); + } + } + + getRequestXhr(xhrId) { + return this.pendingRequests[xhrId].xhr; + } + + isPendingRequest(xhrId) { + return xhrId in this.pendingRequests; + } + + abortRequest(xhrId) { + const xhr = this.pendingRequests[xhrId].xhr; + delete this.pendingRequests[xhrId]; + xhr.abort(); + } + +} + +class PDFNetworkStream { + constructor(source) { + this._source = source; + this._manager = new NetworkManager(source.url, { + httpHeaders: source.httpHeaders, + withCredentials: source.withCredentials + }); + this._rangeChunkSize = source.rangeChunkSize; + this._fullRequestReader = null; + this._rangeRequestReaders = []; + } + + _onRangeRequestReaderClosed(reader) { + const i = this._rangeRequestReaders.indexOf(reader); + + if (i >= 0) { + this._rangeRequestReaders.splice(i, 1); + } + } + + getFullReader() { + (0, _util.assert)(!this._fullRequestReader, "PDFNetworkStream.getFullReader can only be called once."); + this._fullRequestReader = new PDFNetworkStreamFullRequestReader(this._manager, this._source); + return this._fullRequestReader; + } + + getRangeReader(begin, end) { + const reader = new PDFNetworkStreamRangeRequestReader(this._manager, begin, end); + reader.onClosed = this._onRangeRequestReaderClosed.bind(this); + + this._rangeRequestReaders.push(reader); + + return reader; + } + + cancelAllRequests(reason) { + this._fullRequestReader?.cancel(reason); + + for (const reader of this._rangeRequestReaders.slice(0)) { + reader.cancel(reason); + } + } + +} + +exports.PDFNetworkStream = PDFNetworkStream; + +class PDFNetworkStreamFullRequestReader { + constructor(manager, source) { + this._manager = manager; + const args = { + onHeadersReceived: this._onHeadersReceived.bind(this), + onDone: this._onDone.bind(this), + onError: this._onError.bind(this), + onProgress: this._onProgress.bind(this) + }; + this._url = source.url; + this._fullRequestId = manager.requestFull(args); + this._headersReceivedCapability = (0, _util.createPromiseCapability)(); + this._disableRange = source.disableRange || false; + this._contentLength = source.length; + this._rangeChunkSize = source.rangeChunkSize; + + if (!this._rangeChunkSize && !this._disableRange) { + this._disableRange = true; + } + + this._isStreamingSupported = false; + this._isRangeSupported = false; + this._cachedChunks = []; + this._requests = []; + this._done = false; + this._storedError = undefined; + this._filename = null; + this.onProgress = null; + } + + _onHeadersReceived() { + const fullRequestXhrId = this._fullRequestId; + + const fullRequestXhr = this._manager.getRequestXhr(fullRequestXhrId); + + const getResponseHeader = name => { + return fullRequestXhr.getResponseHeader(name); + }; + + const { + allowRangeRequests, + suggestedLength + } = (0, _network_utils.validateRangeRequestCapabilities)({ + getResponseHeader, + isHttp: this._manager.isHttp, + rangeChunkSize: this._rangeChunkSize, + disableRange: this._disableRange + }); + + if (allowRangeRequests) { + this._isRangeSupported = true; + } + + this._contentLength = suggestedLength || this._contentLength; + this._filename = (0, _network_utils.extractFilenameFromHeader)(getResponseHeader); + + if (this._isRangeSupported) { + this._manager.abortRequest(fullRequestXhrId); + } + + this._headersReceivedCapability.resolve(); + } + + _onDone(data) { + if (data) { + if (this._requests.length > 0) { + const requestCapability = this._requests.shift(); + + requestCapability.resolve({ + value: data.chunk, + done: false + }); + } else { + this._cachedChunks.push(data.chunk); + } + } + + this._done = true; + + if (this._cachedChunks.length > 0) { + return; + } + + for (const requestCapability of this._requests) { + requestCapability.resolve({ + value: undefined, + done: true + }); + } + + this._requests.length = 0; + } + + _onError(status) { + this._storedError = (0, _network_utils.createResponseStatusError)(status, this._url); + + this._headersReceivedCapability.reject(this._storedError); + + for (const requestCapability of this._requests) { + requestCapability.reject(this._storedError); + } + + this._requests.length = 0; + this._cachedChunks.length = 0; + } + + _onProgress(evt) { + this.onProgress?.({ + loaded: evt.loaded, + total: evt.lengthComputable ? evt.total : this._contentLength + }); + } + + get filename() { + return this._filename; + } + + get isRangeSupported() { + return this._isRangeSupported; + } + + get isStreamingSupported() { + return this._isStreamingSupported; + } + + get contentLength() { + return this._contentLength; + } + + get headersReady() { + return this._headersReceivedCapability.promise; + } + + async read() { + if (this._storedError) { + throw this._storedError; + } + + if (this._cachedChunks.length > 0) { + const chunk = this._cachedChunks.shift(); + + return { + value: chunk, + done: false + }; + } + + if (this._done) { + return { + value: undefined, + done: true + }; + } + + const requestCapability = (0, _util.createPromiseCapability)(); + + this._requests.push(requestCapability); + + return requestCapability.promise; + } + + cancel(reason) { + this._done = true; + + this._headersReceivedCapability.reject(reason); + + for (const requestCapability of this._requests) { + requestCapability.resolve({ + value: undefined, + done: true + }); + } + + this._requests.length = 0; + + if (this._manager.isPendingRequest(this._fullRequestId)) { + this._manager.abortRequest(this._fullRequestId); + } + + this._fullRequestReader = null; + } + +} + +class PDFNetworkStreamRangeRequestReader { + constructor(manager, begin, end) { + this._manager = manager; + const args = { + onDone: this._onDone.bind(this), + onError: this._onError.bind(this), + onProgress: this._onProgress.bind(this) + }; + this._url = manager.url; + this._requestId = manager.requestRange(begin, end, args); + this._requests = []; + this._queuedChunk = null; + this._done = false; + this._storedError = undefined; + this.onProgress = null; + this.onClosed = null; + } + + _close() { + this.onClosed?.(this); + } + + _onDone(data) { + const chunk = data.chunk; + + if (this._requests.length > 0) { + const requestCapability = this._requests.shift(); + + requestCapability.resolve({ + value: chunk, + done: false + }); + } else { + this._queuedChunk = chunk; + } + + this._done = true; + + for (const requestCapability of this._requests) { + requestCapability.resolve({ + value: undefined, + done: true + }); + } + + this._requests.length = 0; + + this._close(); + } + + _onError(status) { + this._storedError = (0, _network_utils.createResponseStatusError)(status, this._url); + + for (const requestCapability of this._requests) { + requestCapability.reject(this._storedError); + } + + this._requests.length = 0; + this._queuedChunk = null; + } + + _onProgress(evt) { + if (!this.isStreamingSupported) { + this.onProgress?.({ + loaded: evt.loaded + }); + } + } + + get isStreamingSupported() { + return false; + } + + async read() { + if (this._storedError) { + throw this._storedError; + } + + if (this._queuedChunk !== null) { + const chunk = this._queuedChunk; + this._queuedChunk = null; + return { + value: chunk, + done: false + }; + } + + if (this._done) { + return { + value: undefined, + done: true + }; + } + + const requestCapability = (0, _util.createPromiseCapability)(); + + this._requests.push(requestCapability); + + return requestCapability.promise; + } + + cancel(reason) { + this._done = true; + + for (const requestCapability of this._requests) { + requestCapability.resolve({ + value: undefined, + done: true + }); + } + + this._requests.length = 0; + + if (this._manager.isPendingRequest(this._requestId)) { + this._manager.abortRequest(this._requestId); + } + + this._close(); + } + +} + +/***/ }), +/* 36 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFFetchStream = void 0; + +var _util = __w_pdfjs_require__(1); + +var _network_utils = __w_pdfjs_require__(33); + +; + +function createFetchOptions(headers, withCredentials, abortController) { + return { + method: "GET", + headers, + signal: abortController.signal, + mode: "cors", + credentials: withCredentials ? "include" : "same-origin", + redirect: "follow" + }; +} + +function createHeaders(httpHeaders) { + const headers = new Headers(); + + for (const property in httpHeaders) { + const value = httpHeaders[property]; + + if (typeof value === "undefined") { + continue; + } + + headers.append(property, value); + } + + return headers; +} + +class PDFFetchStream { + constructor(source) { + this.source = source; + this.isHttp = /^https?:/i.test(source.url); + this.httpHeaders = this.isHttp && source.httpHeaders || {}; + this._fullRequestReader = null; + this._rangeRequestReaders = []; + } + + get _progressiveDataLength() { + return this._fullRequestReader?._loaded ?? 0; + } + + getFullReader() { + (0, _util.assert)(!this._fullRequestReader, "PDFFetchStream.getFullReader can only be called once."); + this._fullRequestReader = new PDFFetchStreamReader(this); + return this._fullRequestReader; + } + + getRangeReader(begin, end) { + if (end <= this._progressiveDataLength) { + return null; + } + + const reader = new PDFFetchStreamRangeReader(this, begin, end); + + this._rangeRequestReaders.push(reader); + + return reader; + } + + cancelAllRequests(reason) { + if (this._fullRequestReader) { + this._fullRequestReader.cancel(reason); + } + + for (const reader of this._rangeRequestReaders.slice(0)) { + reader.cancel(reason); + } + } + +} + +exports.PDFFetchStream = PDFFetchStream; + +class PDFFetchStreamReader { + constructor(stream) { + this._stream = stream; + this._reader = null; + this._loaded = 0; + this._filename = null; + const source = stream.source; + this._withCredentials = source.withCredentials || false; + this._contentLength = source.length; + this._headersCapability = (0, _util.createPromiseCapability)(); + this._disableRange = source.disableRange || false; + this._rangeChunkSize = source.rangeChunkSize; + + if (!this._rangeChunkSize && !this._disableRange) { + this._disableRange = true; + } + + this._abortController = new AbortController(); + this._isStreamingSupported = !source.disableStream; + this._isRangeSupported = !source.disableRange; + this._headers = createHeaders(this._stream.httpHeaders); + const url = source.url; + fetch(url, createFetchOptions(this._headers, this._withCredentials, this._abortController)).then(response => { + if (!(0, _network_utils.validateResponseStatus)(response.status)) { + throw (0, _network_utils.createResponseStatusError)(response.status, url); + } + + this._reader = response.body.getReader(); + + this._headersCapability.resolve(); + + const getResponseHeader = name => { + return response.headers.get(name); + }; + + const { + allowRangeRequests, + suggestedLength + } = (0, _network_utils.validateRangeRequestCapabilities)({ + getResponseHeader, + isHttp: this._stream.isHttp, + rangeChunkSize: this._rangeChunkSize, + disableRange: this._disableRange + }); + this._isRangeSupported = allowRangeRequests; + this._contentLength = suggestedLength || this._contentLength; + this._filename = (0, _network_utils.extractFilenameFromHeader)(getResponseHeader); + + if (!this._isStreamingSupported && this._isRangeSupported) { + this.cancel(new _util.AbortException("Streaming is disabled.")); + } + }).catch(this._headersCapability.reject); + this.onProgress = null; + } + + get headersReady() { + return this._headersCapability.promise; + } + + get filename() { + return this._filename; + } + + get contentLength() { + return this._contentLength; + } + + get isRangeSupported() { + return this._isRangeSupported; + } + + get isStreamingSupported() { + return this._isStreamingSupported; + } + + async read() { + await this._headersCapability.promise; + const { + value, + done + } = await this._reader.read(); + + if (done) { + return { + value, + done + }; + } + + this._loaded += value.byteLength; + + if (this.onProgress) { + this.onProgress({ + loaded: this._loaded, + total: this._contentLength + }); + } + + const buffer = new Uint8Array(value).buffer; + return { + value: buffer, + done: false + }; + } + + cancel(reason) { + if (this._reader) { + this._reader.cancel(reason); + } + + this._abortController.abort(); + } + +} + +class PDFFetchStreamRangeReader { + constructor(stream, begin, end) { + this._stream = stream; + this._reader = null; + this._loaded = 0; + const source = stream.source; + this._withCredentials = source.withCredentials || false; + this._readCapability = (0, _util.createPromiseCapability)(); + this._isStreamingSupported = !source.disableStream; + this._abortController = new AbortController(); + this._headers = createHeaders(this._stream.httpHeaders); + + this._headers.append("Range", `bytes=${begin}-${end - 1}`); + + const url = source.url; + fetch(url, createFetchOptions(this._headers, this._withCredentials, this._abortController)).then(response => { + if (!(0, _network_utils.validateResponseStatus)(response.status)) { + throw (0, _network_utils.createResponseStatusError)(response.status, url); + } + + this._readCapability.resolve(); + + this._reader = response.body.getReader(); + }).catch(this._readCapability.reject); + this.onProgress = null; + } + + get isStreamingSupported() { + return this._isStreamingSupported; + } + + async read() { + await this._readCapability.promise; + const { + value, + done + } = await this._reader.read(); + + if (done) { + return { + value, + done + }; + } + + this._loaded += value.byteLength; + + if (this.onProgress) { + this.onProgress({ + loaded: this._loaded + }); + } + + const buffer = new Uint8Array(value).buffer; + return { + value: buffer, + done: false + }; + } + + cancel(reason) { + if (this._reader) { + this._reader.cancel(reason); + } + + this._abortController.abort(); + } + +} + +/***/ }) +/******/ ]); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __w_pdfjs_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __w_pdfjs_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +(() => { +var exports = __webpack_exports__; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "AnnotationEditorLayer", ({ + enumerable: true, + get: function () { + return _annotation_editor_layer.AnnotationEditorLayer; + } +})); +Object.defineProperty(exports, "AnnotationEditorParamsType", ({ + enumerable: true, + get: function () { + return _util.AnnotationEditorParamsType; + } +})); +Object.defineProperty(exports, "AnnotationEditorType", ({ + enumerable: true, + get: function () { + return _util.AnnotationEditorType; + } +})); +Object.defineProperty(exports, "AnnotationEditorUIManager", ({ + enumerable: true, + get: function () { + return _tools.AnnotationEditorUIManager; + } +})); +Object.defineProperty(exports, "AnnotationLayer", ({ + enumerable: true, + get: function () { + return _annotation_layer.AnnotationLayer; + } +})); +Object.defineProperty(exports, "AnnotationMode", ({ + enumerable: true, + get: function () { + return _util.AnnotationMode; + } +})); +Object.defineProperty(exports, "CMapCompressionType", ({ + enumerable: true, + get: function () { + return _util.CMapCompressionType; + } +})); +Object.defineProperty(exports, "GlobalWorkerOptions", ({ + enumerable: true, + get: function () { + return _worker_options.GlobalWorkerOptions; + } +})); +Object.defineProperty(exports, "InvalidPDFException", ({ + enumerable: true, + get: function () { + return _util.InvalidPDFException; + } +})); +Object.defineProperty(exports, "LoopbackPort", ({ + enumerable: true, + get: function () { + return _api.LoopbackPort; + } +})); +Object.defineProperty(exports, "MissingPDFException", ({ + enumerable: true, + get: function () { + return _util.MissingPDFException; + } +})); +Object.defineProperty(exports, "OPS", ({ + enumerable: true, + get: function () { + return _util.OPS; + } +})); +Object.defineProperty(exports, "PDFDataRangeTransport", ({ + enumerable: true, + get: function () { + return _api.PDFDataRangeTransport; + } +})); +Object.defineProperty(exports, "PDFDateString", ({ + enumerable: true, + get: function () { + return _display_utils.PDFDateString; + } +})); +Object.defineProperty(exports, "PDFWorker", ({ + enumerable: true, + get: function () { + return _api.PDFWorker; + } +})); +Object.defineProperty(exports, "PasswordResponses", ({ + enumerable: true, + get: function () { + return _util.PasswordResponses; + } +})); +Object.defineProperty(exports, "PermissionFlag", ({ + enumerable: true, + get: function () { + return _util.PermissionFlag; + } +})); +Object.defineProperty(exports, "PixelsPerInch", ({ + enumerable: true, + get: function () { + return _display_utils.PixelsPerInch; + } +})); +Object.defineProperty(exports, "RenderingCancelledException", ({ + enumerable: true, + get: function () { + return _display_utils.RenderingCancelledException; + } +})); +Object.defineProperty(exports, "SVGGraphics", ({ + enumerable: true, + get: function () { + return _svg.SVGGraphics; + } +})); +Object.defineProperty(exports, "UNSUPPORTED_FEATURES", ({ + enumerable: true, + get: function () { + return _util.UNSUPPORTED_FEATURES; + } +})); +Object.defineProperty(exports, "UnexpectedResponseException", ({ + enumerable: true, + get: function () { + return _util.UnexpectedResponseException; + } +})); +Object.defineProperty(exports, "Util", ({ + enumerable: true, + get: function () { + return _util.Util; + } +})); +Object.defineProperty(exports, "VerbosityLevel", ({ + enumerable: true, + get: function () { + return _util.VerbosityLevel; + } +})); +Object.defineProperty(exports, "XfaLayer", ({ + enumerable: true, + get: function () { + return _xfa_layer.XfaLayer; + } +})); +Object.defineProperty(exports, "build", ({ + enumerable: true, + get: function () { + return _api.build; + } +})); +Object.defineProperty(exports, "createPromiseCapability", ({ + enumerable: true, + get: function () { + return _util.createPromiseCapability; + } +})); +Object.defineProperty(exports, "createValidAbsoluteUrl", ({ + enumerable: true, + get: function () { + return _util.createValidAbsoluteUrl; + } +})); +Object.defineProperty(exports, "getDocument", ({ + enumerable: true, + get: function () { + return _api.getDocument; + } +})); +Object.defineProperty(exports, "getFilenameFromUrl", ({ + enumerable: true, + get: function () { + return _display_utils.getFilenameFromUrl; + } +})); +Object.defineProperty(exports, "getPdfFilenameFromUrl", ({ + enumerable: true, + get: function () { + return _display_utils.getPdfFilenameFromUrl; + } +})); +Object.defineProperty(exports, "getXfaPageViewport", ({ + enumerable: true, + get: function () { + return _display_utils.getXfaPageViewport; + } +})); +Object.defineProperty(exports, "isPdfFile", ({ + enumerable: true, + get: function () { + return _display_utils.isPdfFile; + } +})); +Object.defineProperty(exports, "loadScript", ({ + enumerable: true, + get: function () { + return _display_utils.loadScript; + } +})); +Object.defineProperty(exports, "renderTextLayer", ({ + enumerable: true, + get: function () { + return _text_layer.renderTextLayer; + } +})); +Object.defineProperty(exports, "shadow", ({ + enumerable: true, + get: function () { + return _util.shadow; + } +})); +Object.defineProperty(exports, "version", ({ + enumerable: true, + get: function () { + return _api.version; + } +})); + +var _util = __w_pdfjs_require__(1); + +var _api = __w_pdfjs_require__(4); + +var _display_utils = __w_pdfjs_require__(8); + +var _annotation_editor_layer = __w_pdfjs_require__(22); + +var _tools = __w_pdfjs_require__(7); + +var _annotation_layer = __w_pdfjs_require__(27); + +var _worker_options = __w_pdfjs_require__(15); + +var _is_node = __w_pdfjs_require__(3); + +var _text_layer = __w_pdfjs_require__(30); + +var _svg = __w_pdfjs_require__(31); + +var _xfa_layer = __w_pdfjs_require__(29); + +const pdfjsVersion = '2.16.105'; +const pdfjsBuild = '172ccdbe5'; +{ + if (_is_node.isNodeJS) { + const { + PDFNodeStream + } = __w_pdfjs_require__(32); + + (0, _api.setPDFNetworkStreamFactory)(params => { + return new PDFNodeStream(params); + }); + } else { + const { + PDFNetworkStream + } = __w_pdfjs_require__(35); + + const { + PDFFetchStream + } = __w_pdfjs_require__(36); + + (0, _api.setPDFNetworkStreamFactory)(params => { + if ((0, _display_utils.isValidFetchUrl)(params.url)) { + return new PDFFetchStream(params); + } + + return new PDFNetworkStream(params); + }); + } +} +})(); + +/******/ return __webpack_exports__; +/******/ })() +; +}); +//# sourceMappingURL=pdf.js.map \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/build/pdf.worker.js b/plugins/saladict-ztools/ext-saladic/assets/pdf/build/pdf.worker.js new file mode 100644 index 00000000..878da521 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/build/pdf.worker.js @@ -0,0 +1,75390 @@ +/** + * @licstart The following is the entire license notice for the + * JavaScript code in this page + * + * Copyright 2022 Mozilla Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * @licend The above is the entire license notice for the + * JavaScript code in this page + */ + +(function webpackUniversalModuleDefinition(root, factory) { + if(typeof exports === 'object' && typeof module === 'object') + module.exports = factory(); + else if(typeof define === 'function' && define.amd) + define("pdfjs-dist/build/pdf.worker", [], factory); + else if(typeof exports === 'object') + exports["pdfjs-dist/build/pdf.worker"] = factory(); + else + root["pdfjs-dist/build/pdf.worker"] = root.pdfjsWorker = factory(); +})(globalThis, () => { +return /******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ([ +/* 0 */, +/* 1 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.WorkerTask = exports.WorkerMessageHandler = void 0; + +var _util = __w_pdfjs_require__(2); + +var _primitives = __w_pdfjs_require__(5); + +var _core_utils = __w_pdfjs_require__(6); + +var _pdf_manager = __w_pdfjs_require__(8); + +var _cleanup_helper = __w_pdfjs_require__(71); + +var _writer = __w_pdfjs_require__(65); + +var _is_node = __w_pdfjs_require__(4); + +var _message_handler = __w_pdfjs_require__(102); + +var _worker_stream = __w_pdfjs_require__(103); + +class WorkerTask { + constructor(name) { + this.name = name; + this.terminated = false; + this._capability = (0, _util.createPromiseCapability)(); + } + + get finished() { + return this._capability.promise; + } + + finish() { + this._capability.resolve(); + } + + terminate() { + this.terminated = true; + } + + ensureNotTerminated() { + if (this.terminated) { + throw new Error("Worker task was terminated"); + } + } + +} + +exports.WorkerTask = WorkerTask; + +class WorkerMessageHandler { + static setup(handler, port) { + let testMessageProcessed = false; + handler.on("test", function wphSetupTest(data) { + if (testMessageProcessed) { + return; + } + + testMessageProcessed = true; + handler.send("test", data instanceof Uint8Array); + }); + handler.on("configure", function wphConfigure(data) { + (0, _util.setVerbosityLevel)(data.verbosity); + }); + handler.on("GetDocRequest", function wphSetupDoc(data) { + return WorkerMessageHandler.createDocumentHandler(data, port); + }); + } + + static createDocumentHandler(docParams, port) { + let pdfManager; + let terminated = false; + let cancelXHRs = null; + const WorkerTasks = []; + const verbosity = (0, _util.getVerbosityLevel)(); + const apiVersion = docParams.apiVersion; + const workerVersion = '2.16.105'; + + if (apiVersion !== workerVersion) { + throw new Error(`The API version "${apiVersion}" does not match ` + `the Worker version "${workerVersion}".`); + } + + const enumerableProperties = []; + + for (const property in []) { + enumerableProperties.push(property); + } + + if (enumerableProperties.length) { + throw new Error("The `Array.prototype` contains unexpected enumerable properties: " + enumerableProperties.join(", ") + "; thus breaking e.g. `for...in` iteration of `Array`s."); + } + + if (typeof ReadableStream === "undefined") { + const partialMsg = "The browser/environment lacks native support for critical " + "functionality used by the PDF.js library (e.g. `ReadableStream`); "; + + if (_is_node.isNodeJS) { + throw new Error(partialMsg + "please use a `legacy`-build instead."); + } + + throw new Error(partialMsg + "please update to a supported browser."); + } + + const docId = docParams.docId; + const docBaseUrl = docParams.docBaseUrl; + const workerHandlerName = docParams.docId + "_worker"; + let handler = new _message_handler.MessageHandler(workerHandlerName, docId, port); + + function ensureNotTerminated() { + if (terminated) { + throw new Error("Worker was terminated"); + } + } + + function startWorkerTask(task) { + WorkerTasks.push(task); + } + + function finishWorkerTask(task) { + task.finish(); + const i = WorkerTasks.indexOf(task); + WorkerTasks.splice(i, 1); + } + + async function loadDocument(recoveryMode) { + await pdfManager.ensureDoc("checkHeader"); + await pdfManager.ensureDoc("parseStartXRef"); + await pdfManager.ensureDoc("parse", [recoveryMode]); + await pdfManager.ensureDoc("checkFirstPage", [recoveryMode]); + await pdfManager.ensureDoc("checkLastPage", [recoveryMode]); + const isPureXfa = await pdfManager.ensureDoc("isPureXfa"); + + if (isPureXfa) { + const task = new WorkerTask("loadXfaFonts"); + startWorkerTask(task); + await Promise.all([pdfManager.loadXfaFonts(handler, task).catch(reason => {}).then(() => finishWorkerTask(task)), pdfManager.loadXfaImages()]); + } + + const [numPages, fingerprints] = await Promise.all([pdfManager.ensureDoc("numPages"), pdfManager.ensureDoc("fingerprints")]); + const htmlForXfa = isPureXfa ? await pdfManager.ensureDoc("htmlForXfa") : null; + return { + numPages, + fingerprints, + htmlForXfa + }; + } + + function getPdfManager(data, evaluatorOptions, enableXfa) { + const pdfManagerCapability = (0, _util.createPromiseCapability)(); + let newPdfManager; + const source = data.source; + + if (source.data) { + try { + newPdfManager = new _pdf_manager.LocalPdfManager(docId, source.data, source.password, handler, evaluatorOptions, enableXfa, docBaseUrl); + pdfManagerCapability.resolve(newPdfManager); + } catch (ex) { + pdfManagerCapability.reject(ex); + } + + return pdfManagerCapability.promise; + } + + let pdfStream, + cachedChunks = []; + + try { + pdfStream = new _worker_stream.PDFWorkerStream(handler); + } catch (ex) { + pdfManagerCapability.reject(ex); + return pdfManagerCapability.promise; + } + + const fullRequest = pdfStream.getFullReader(); + fullRequest.headersReady.then(function () { + if (!fullRequest.isRangeSupported) { + return; + } + + const disableAutoFetch = source.disableAutoFetch || fullRequest.isStreamingSupported; + newPdfManager = new _pdf_manager.NetworkPdfManager(docId, pdfStream, { + msgHandler: handler, + password: source.password, + length: fullRequest.contentLength, + disableAutoFetch, + rangeChunkSize: source.rangeChunkSize + }, evaluatorOptions, enableXfa, docBaseUrl); + + for (const chunk of cachedChunks) { + newPdfManager.sendProgressiveData(chunk); + } + + cachedChunks = []; + pdfManagerCapability.resolve(newPdfManager); + cancelXHRs = null; + }).catch(function (reason) { + pdfManagerCapability.reject(reason); + cancelXHRs = null; + }); + let loaded = 0; + + const flushChunks = function () { + const pdfFile = (0, _util.arraysToBytes)(cachedChunks); + + if (source.length && pdfFile.length !== source.length) { + (0, _util.warn)("reported HTTP length is different from actual"); + } + + try { + newPdfManager = new _pdf_manager.LocalPdfManager(docId, pdfFile, source.password, handler, evaluatorOptions, enableXfa, docBaseUrl); + pdfManagerCapability.resolve(newPdfManager); + } catch (ex) { + pdfManagerCapability.reject(ex); + } + + cachedChunks = []; + }; + + const readPromise = new Promise(function (resolve, reject) { + const readChunk = function ({ + value, + done + }) { + try { + ensureNotTerminated(); + + if (done) { + if (!newPdfManager) { + flushChunks(); + } + + cancelXHRs = null; + return; + } + + loaded += (0, _util.arrayByteLength)(value); + + if (!fullRequest.isStreamingSupported) { + handler.send("DocProgress", { + loaded, + total: Math.max(loaded, fullRequest.contentLength || 0) + }); + } + + if (newPdfManager) { + newPdfManager.sendProgressiveData(value); + } else { + cachedChunks.push(value); + } + + fullRequest.read().then(readChunk, reject); + } catch (e) { + reject(e); + } + }; + + fullRequest.read().then(readChunk, reject); + }); + readPromise.catch(function (e) { + pdfManagerCapability.reject(e); + cancelXHRs = null; + }); + + cancelXHRs = function (reason) { + pdfStream.cancelAllRequests(reason); + }; + + return pdfManagerCapability.promise; + } + + function setupDoc(data) { + function onSuccess(doc) { + ensureNotTerminated(); + handler.send("GetDoc", { + pdfInfo: doc + }); + } + + function onFailure(ex) { + ensureNotTerminated(); + + if (ex instanceof _util.PasswordException) { + const task = new WorkerTask(`PasswordException: response ${ex.code}`); + startWorkerTask(task); + handler.sendWithPromise("PasswordRequest", ex).then(function ({ + password + }) { + finishWorkerTask(task); + pdfManager.updatePassword(password); + pdfManagerReady(); + }).catch(function () { + finishWorkerTask(task); + handler.send("DocException", ex); + }); + } else if (ex instanceof _util.InvalidPDFException || ex instanceof _util.MissingPDFException || ex instanceof _util.UnexpectedResponseException || ex instanceof _util.UnknownErrorException) { + handler.send("DocException", ex); + } else { + handler.send("DocException", new _util.UnknownErrorException(ex.message, ex.toString())); + } + } + + function pdfManagerReady() { + ensureNotTerminated(); + loadDocument(false).then(onSuccess, function (reason) { + ensureNotTerminated(); + + if (!(reason instanceof _core_utils.XRefParseException)) { + onFailure(reason); + return; + } + + pdfManager.requestLoadedStream(); + pdfManager.onLoadedStream().then(function () { + ensureNotTerminated(); + loadDocument(true).then(onSuccess, onFailure); + }); + }); + } + + ensureNotTerminated(); + const evaluatorOptions = { + maxImageSize: data.maxImageSize, + disableFontFace: data.disableFontFace, + ignoreErrors: data.ignoreErrors, + isEvalSupported: data.isEvalSupported, + fontExtraProperties: data.fontExtraProperties, + useSystemFonts: data.useSystemFonts, + cMapUrl: data.cMapUrl, + standardFontDataUrl: data.standardFontDataUrl + }; + getPdfManager(data, evaluatorOptions, data.enableXfa).then(function (newPdfManager) { + if (terminated) { + newPdfManager.terminate(new _util.AbortException("Worker was terminated.")); + throw new Error("Worker was terminated"); + } + + pdfManager = newPdfManager; + pdfManager.onLoadedStream().then(function (stream) { + handler.send("DataLoaded", { + length: stream.bytes.byteLength + }); + }); + }).then(pdfManagerReady, onFailure); + } + + handler.on("GetPage", function wphSetupGetPage(data) { + return pdfManager.getPage(data.pageIndex).then(function (page) { + return Promise.all([pdfManager.ensure(page, "rotate"), pdfManager.ensure(page, "ref"), pdfManager.ensure(page, "userUnit"), pdfManager.ensure(page, "view")]).then(function ([rotate, ref, userUnit, view]) { + return { + rotate, + ref, + userUnit, + view + }; + }); + }); + }); + handler.on("GetPageIndex", function wphSetupGetPageIndex(data) { + const pageRef = _primitives.Ref.get(data.num, data.gen); + + return pdfManager.ensureCatalog("getPageIndex", [pageRef]); + }); + handler.on("GetDestinations", function wphSetupGetDestinations(data) { + return pdfManager.ensureCatalog("destinations"); + }); + handler.on("GetDestination", function wphSetupGetDestination(data) { + return pdfManager.ensureCatalog("getDestination", [data.id]); + }); + handler.on("GetPageLabels", function wphSetupGetPageLabels(data) { + return pdfManager.ensureCatalog("pageLabels"); + }); + handler.on("GetPageLayout", function wphSetupGetPageLayout(data) { + return pdfManager.ensureCatalog("pageLayout"); + }); + handler.on("GetPageMode", function wphSetupGetPageMode(data) { + return pdfManager.ensureCatalog("pageMode"); + }); + handler.on("GetViewerPreferences", function (data) { + return pdfManager.ensureCatalog("viewerPreferences"); + }); + handler.on("GetOpenAction", function (data) { + return pdfManager.ensureCatalog("openAction"); + }); + handler.on("GetAttachments", function wphSetupGetAttachments(data) { + return pdfManager.ensureCatalog("attachments"); + }); + handler.on("GetJavaScript", function wphSetupGetJavaScript(data) { + return pdfManager.ensureCatalog("javaScript"); + }); + handler.on("GetDocJSActions", function wphSetupGetDocJSActions(data) { + return pdfManager.ensureCatalog("jsActions"); + }); + handler.on("GetPageJSActions", function ({ + pageIndex + }) { + return pdfManager.getPage(pageIndex).then(function (page) { + return pdfManager.ensure(page, "jsActions"); + }); + }); + handler.on("GetOutline", function wphSetupGetOutline(data) { + return pdfManager.ensureCatalog("documentOutline"); + }); + handler.on("GetOptionalContentConfig", function (data) { + return pdfManager.ensureCatalog("optionalContentConfig"); + }); + handler.on("GetPermissions", function (data) { + return pdfManager.ensureCatalog("permissions"); + }); + handler.on("GetMetadata", function wphSetupGetMetadata(data) { + return Promise.all([pdfManager.ensureDoc("documentInfo"), pdfManager.ensureCatalog("metadata")]); + }); + handler.on("GetMarkInfo", function wphSetupGetMarkInfo(data) { + return pdfManager.ensureCatalog("markInfo"); + }); + handler.on("GetData", function wphSetupGetData(data) { + pdfManager.requestLoadedStream(); + return pdfManager.onLoadedStream().then(function (stream) { + return stream.bytes; + }); + }); + handler.on("GetAnnotations", function ({ + pageIndex, + intent + }) { + return pdfManager.getPage(pageIndex).then(function (page) { + const task = new WorkerTask(`GetAnnotations: page ${pageIndex}`); + startWorkerTask(task); + return page.getAnnotationsData(handler, task, intent).then(data => { + finishWorkerTask(task); + return data; + }, reason => { + finishWorkerTask(task); + }); + }); + }); + handler.on("GetFieldObjects", function (data) { + return pdfManager.ensureDoc("fieldObjects"); + }); + handler.on("HasJSActions", function (data) { + return pdfManager.ensureDoc("hasJSActions"); + }); + handler.on("GetCalculationOrderIds", function (data) { + return pdfManager.ensureDoc("calculationOrderIds"); + }); + handler.on("SaveDocument", function ({ + isPureXfa, + numPages, + annotationStorage, + filename + }) { + pdfManager.requestLoadedStream(); + const newAnnotationsByPage = !isPureXfa ? (0, _core_utils.getNewAnnotationsMap)(annotationStorage) : null; + const promises = [pdfManager.onLoadedStream(), pdfManager.ensureCatalog("acroForm"), pdfManager.ensureCatalog("acroFormRef"), pdfManager.ensureDoc("xref"), pdfManager.ensureDoc("startXRef")]; + + if (newAnnotationsByPage) { + for (const [pageIndex, annotations] of newAnnotationsByPage) { + promises.push(pdfManager.getPage(pageIndex).then(page => { + const task = new WorkerTask(`Save (editor): page ${pageIndex}`); + return page.saveNewAnnotations(handler, task, annotations).finally(function () { + finishWorkerTask(task); + }); + })); + } + } + + if (isPureXfa) { + promises.push(pdfManager.serializeXfaData(annotationStorage)); + } else { + for (let pageIndex = 0; pageIndex < numPages; pageIndex++) { + promises.push(pdfManager.getPage(pageIndex).then(function (page) { + const task = new WorkerTask(`Save: page ${pageIndex}`); + return page.save(handler, task, annotationStorage).finally(function () { + finishWorkerTask(task); + }); + })); + } + } + + return Promise.all(promises).then(function ([stream, acroForm, acroFormRef, xref, startXRef, ...refs]) { + let newRefs = []; + let xfaData = null; + + if (isPureXfa) { + xfaData = refs[0]; + + if (!xfaData) { + return stream.bytes; + } + } else { + newRefs = refs.flat(2); + + if (newRefs.length === 0) { + return stream.bytes; + } + } + + const xfa = acroForm instanceof _primitives.Dict && acroForm.get("XFA") || null; + let xfaDatasetsRef = null; + let hasXfaDatasetsEntry = false; + + if (Array.isArray(xfa)) { + for (let i = 0, ii = xfa.length; i < ii; i += 2) { + if (xfa[i] === "datasets") { + xfaDatasetsRef = xfa[i + 1]; + acroFormRef = null; + hasXfaDatasetsEntry = true; + } + } + + if (xfaDatasetsRef === null) { + xfaDatasetsRef = xref.getNewRef(); + } + } else if (xfa) { + acroFormRef = null; + (0, _util.warn)("Unsupported XFA type."); + } + + let newXrefInfo = Object.create(null); + + if (xref.trailer) { + const infoObj = Object.create(null); + const xrefInfo = xref.trailer.get("Info") || null; + + if (xrefInfo instanceof _primitives.Dict) { + xrefInfo.forEach((key, value) => { + if (typeof value === "string") { + infoObj[key] = (0, _util.stringToPDFString)(value); + } + }); + } + + newXrefInfo = { + rootRef: xref.trailer.getRaw("Root") || null, + encryptRef: xref.trailer.getRaw("Encrypt") || null, + newRef: xref.getNewRef(), + infoRef: xref.trailer.getRaw("Info") || null, + info: infoObj, + fileIds: xref.trailer.get("ID") || null, + startXRef, + filename + }; + } + + xref.resetNewRef(); + return (0, _writer.incrementalUpdate)({ + originalData: stream.bytes, + xrefInfo: newXrefInfo, + newRefs, + xref, + hasXfa: !!xfa, + xfaDatasetsRef, + hasXfaDatasetsEntry, + acroFormRef, + acroForm, + xfaData + }); + }); + }); + handler.on("GetOperatorList", function wphSetupRenderPage(data, sink) { + const pageIndex = data.pageIndex; + pdfManager.getPage(pageIndex).then(function (page) { + const task = new WorkerTask(`GetOperatorList: page ${pageIndex}`); + startWorkerTask(task); + const start = verbosity >= _util.VerbosityLevel.INFOS ? Date.now() : 0; + page.getOperatorList({ + handler, + sink, + task, + intent: data.intent, + cacheKey: data.cacheKey, + annotationStorage: data.annotationStorage + }).then(function (operatorListInfo) { + finishWorkerTask(task); + + if (start) { + (0, _util.info)(`page=${pageIndex + 1} - getOperatorList: time=` + `${Date.now() - start}ms, len=${operatorListInfo.length}`); + } + + sink.close(); + }, function (reason) { + finishWorkerTask(task); + + if (task.terminated) { + return; + } + + handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorOperatorList + }); + sink.error(reason); + }); + }); + }); + handler.on("GetTextContent", function wphExtractText(data, sink) { + const pageIndex = data.pageIndex; + pdfManager.getPage(pageIndex).then(function (page) { + const task = new WorkerTask("GetTextContent: page " + pageIndex); + startWorkerTask(task); + const start = verbosity >= _util.VerbosityLevel.INFOS ? Date.now() : 0; + page.extractTextContent({ + handler, + task, + sink, + includeMarkedContent: data.includeMarkedContent, + combineTextItems: data.combineTextItems + }).then(function () { + finishWorkerTask(task); + + if (start) { + (0, _util.info)(`page=${pageIndex + 1} - getTextContent: time=` + `${Date.now() - start}ms`); + } + + sink.close(); + }, function (reason) { + finishWorkerTask(task); + + if (task.terminated) { + return; + } + + sink.error(reason); + }); + }); + }); + handler.on("GetStructTree", function wphGetStructTree(data) { + return pdfManager.getPage(data.pageIndex).then(function (page) { + return pdfManager.ensure(page, "getStructTree"); + }); + }); + handler.on("FontFallback", function (data) { + return pdfManager.fontFallback(data.id, handler); + }); + handler.on("Cleanup", function wphCleanup(data) { + return pdfManager.cleanup(true); + }); + handler.on("Terminate", function wphTerminate(data) { + terminated = true; + const waitOn = []; + + if (pdfManager) { + pdfManager.terminate(new _util.AbortException("Worker was terminated.")); + const cleanupPromise = pdfManager.cleanup(); + waitOn.push(cleanupPromise); + pdfManager = null; + } else { + (0, _cleanup_helper.clearGlobalCaches)(); + } + + if (cancelXHRs) { + cancelXHRs(new _util.AbortException("Worker was terminated.")); + } + + for (const task of WorkerTasks) { + waitOn.push(task.finished); + task.terminate(); + } + + return Promise.all(waitOn).then(function () { + handler.destroy(); + handler = null; + }); + }); + handler.on("Ready", function wphReady(data) { + setupDoc(docParams); + docParams = null; + }); + return workerHandlerName; + } + + static initializeFromPort(port) { + const handler = new _message_handler.MessageHandler("worker", "main", port); + WorkerMessageHandler.setup(handler, port); + handler.send("ready", null); + } + +} + +exports.WorkerMessageHandler = WorkerMessageHandler; + +function isMessagePort(maybePort) { + return typeof maybePort.postMessage === "function" && "onmessage" in maybePort; +} + +if (typeof window === "undefined" && !_is_node.isNodeJS && typeof self !== "undefined" && isMessagePort(self)) { + WorkerMessageHandler.initializeFromPort(self); +} + +/***/ }), +/* 2 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.VerbosityLevel = exports.Util = exports.UnknownErrorException = exports.UnexpectedResponseException = exports.UNSUPPORTED_FEATURES = exports.TextRenderingMode = exports.StreamType = exports.RenderingIntentFlag = exports.PermissionFlag = exports.PasswordResponses = exports.PasswordException = exports.PageActionEventType = exports.OPS = exports.MissingPDFException = exports.LINE_FACTOR = exports.LINE_DESCENT_FACTOR = exports.InvalidPDFException = exports.ImageKind = exports.IDENTITY_MATRIX = exports.FormatError = exports.FontType = exports.FeatureTest = exports.FONT_IDENTITY_MATRIX = exports.DocumentActionEventType = exports.CMapCompressionType = exports.BaseException = exports.AnnotationType = exports.AnnotationStateModelType = exports.AnnotationReviewState = exports.AnnotationReplyType = exports.AnnotationMode = exports.AnnotationMarkedState = exports.AnnotationFlag = exports.AnnotationFieldFlag = exports.AnnotationEditorType = exports.AnnotationEditorPrefix = exports.AnnotationEditorParamsType = exports.AnnotationBorderStyleType = exports.AnnotationActionEventType = exports.AbortException = void 0; +exports.arrayByteLength = arrayByteLength; +exports.arraysToBytes = arraysToBytes; +exports.assert = assert; +exports.bytesToString = bytesToString; +exports.createPromiseCapability = createPromiseCapability; +exports.createValidAbsoluteUrl = createValidAbsoluteUrl; +exports.escapeString = escapeString; +exports.getModificationDate = getModificationDate; +exports.getVerbosityLevel = getVerbosityLevel; +exports.info = info; +exports.isArrayBuffer = isArrayBuffer; +exports.isArrayEqual = isArrayEqual; +exports.isAscii = isAscii; +exports.objectFromMap = objectFromMap; +exports.objectSize = objectSize; +exports.setVerbosityLevel = setVerbosityLevel; +exports.shadow = shadow; +exports.string32 = string32; +exports.stringToBytes = stringToBytes; +exports.stringToPDFString = stringToPDFString; +exports.stringToUTF16BEString = stringToUTF16BEString; +exports.stringToUTF8String = stringToUTF8String; +exports.unreachable = unreachable; +exports.utf8StringToString = utf8StringToString; +exports.warn = warn; + +__w_pdfjs_require__(3); + +const IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0]; +exports.IDENTITY_MATRIX = IDENTITY_MATRIX; +const FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0]; +exports.FONT_IDENTITY_MATRIX = FONT_IDENTITY_MATRIX; +const LINE_FACTOR = 1.35; +exports.LINE_FACTOR = LINE_FACTOR; +const LINE_DESCENT_FACTOR = 0.35; +exports.LINE_DESCENT_FACTOR = LINE_DESCENT_FACTOR; +const RenderingIntentFlag = { + ANY: 0x01, + DISPLAY: 0x02, + PRINT: 0x04, + ANNOTATIONS_FORMS: 0x10, + ANNOTATIONS_STORAGE: 0x20, + ANNOTATIONS_DISABLE: 0x40, + OPLIST: 0x100 +}; +exports.RenderingIntentFlag = RenderingIntentFlag; +const AnnotationMode = { + DISABLE: 0, + ENABLE: 1, + ENABLE_FORMS: 2, + ENABLE_STORAGE: 3 +}; +exports.AnnotationMode = AnnotationMode; +const AnnotationEditorPrefix = "pdfjs_internal_editor_"; +exports.AnnotationEditorPrefix = AnnotationEditorPrefix; +const AnnotationEditorType = { + DISABLE: -1, + NONE: 0, + FREETEXT: 3, + INK: 15 +}; +exports.AnnotationEditorType = AnnotationEditorType; +const AnnotationEditorParamsType = { + FREETEXT_SIZE: 1, + FREETEXT_COLOR: 2, + FREETEXT_OPACITY: 3, + INK_COLOR: 11, + INK_THICKNESS: 12, + INK_OPACITY: 13 +}; +exports.AnnotationEditorParamsType = AnnotationEditorParamsType; +const PermissionFlag = { + PRINT: 0x04, + MODIFY_CONTENTS: 0x08, + COPY: 0x10, + MODIFY_ANNOTATIONS: 0x20, + FILL_INTERACTIVE_FORMS: 0x100, + COPY_FOR_ACCESSIBILITY: 0x200, + ASSEMBLE: 0x400, + PRINT_HIGH_QUALITY: 0x800 +}; +exports.PermissionFlag = PermissionFlag; +const TextRenderingMode = { + FILL: 0, + STROKE: 1, + FILL_STROKE: 2, + INVISIBLE: 3, + FILL_ADD_TO_PATH: 4, + STROKE_ADD_TO_PATH: 5, + FILL_STROKE_ADD_TO_PATH: 6, + ADD_TO_PATH: 7, + FILL_STROKE_MASK: 3, + ADD_TO_PATH_FLAG: 4 +}; +exports.TextRenderingMode = TextRenderingMode; +const ImageKind = { + GRAYSCALE_1BPP: 1, + RGB_24BPP: 2, + RGBA_32BPP: 3 +}; +exports.ImageKind = ImageKind; +const AnnotationType = { + TEXT: 1, + LINK: 2, + FREETEXT: 3, + LINE: 4, + SQUARE: 5, + CIRCLE: 6, + POLYGON: 7, + POLYLINE: 8, + HIGHLIGHT: 9, + UNDERLINE: 10, + SQUIGGLY: 11, + STRIKEOUT: 12, + STAMP: 13, + CARET: 14, + INK: 15, + POPUP: 16, + FILEATTACHMENT: 17, + SOUND: 18, + MOVIE: 19, + WIDGET: 20, + SCREEN: 21, + PRINTERMARK: 22, + TRAPNET: 23, + WATERMARK: 24, + THREED: 25, + REDACT: 26 +}; +exports.AnnotationType = AnnotationType; +const AnnotationStateModelType = { + MARKED: "Marked", + REVIEW: "Review" +}; +exports.AnnotationStateModelType = AnnotationStateModelType; +const AnnotationMarkedState = { + MARKED: "Marked", + UNMARKED: "Unmarked" +}; +exports.AnnotationMarkedState = AnnotationMarkedState; +const AnnotationReviewState = { + ACCEPTED: "Accepted", + REJECTED: "Rejected", + CANCELLED: "Cancelled", + COMPLETED: "Completed", + NONE: "None" +}; +exports.AnnotationReviewState = AnnotationReviewState; +const AnnotationReplyType = { + GROUP: "Group", + REPLY: "R" +}; +exports.AnnotationReplyType = AnnotationReplyType; +const AnnotationFlag = { + INVISIBLE: 0x01, + HIDDEN: 0x02, + PRINT: 0x04, + NOZOOM: 0x08, + NOROTATE: 0x10, + NOVIEW: 0x20, + READONLY: 0x40, + LOCKED: 0x80, + TOGGLENOVIEW: 0x100, + LOCKEDCONTENTS: 0x200 +}; +exports.AnnotationFlag = AnnotationFlag; +const AnnotationFieldFlag = { + READONLY: 0x0000001, + REQUIRED: 0x0000002, + NOEXPORT: 0x0000004, + MULTILINE: 0x0001000, + PASSWORD: 0x0002000, + NOTOGGLETOOFF: 0x0004000, + RADIO: 0x0008000, + PUSHBUTTON: 0x0010000, + COMBO: 0x0020000, + EDIT: 0x0040000, + SORT: 0x0080000, + FILESELECT: 0x0100000, + MULTISELECT: 0x0200000, + DONOTSPELLCHECK: 0x0400000, + DONOTSCROLL: 0x0800000, + COMB: 0x1000000, + RICHTEXT: 0x2000000, + RADIOSINUNISON: 0x2000000, + COMMITONSELCHANGE: 0x4000000 +}; +exports.AnnotationFieldFlag = AnnotationFieldFlag; +const AnnotationBorderStyleType = { + SOLID: 1, + DASHED: 2, + BEVELED: 3, + INSET: 4, + UNDERLINE: 5 +}; +exports.AnnotationBorderStyleType = AnnotationBorderStyleType; +const AnnotationActionEventType = { + E: "Mouse Enter", + X: "Mouse Exit", + D: "Mouse Down", + U: "Mouse Up", + Fo: "Focus", + Bl: "Blur", + PO: "PageOpen", + PC: "PageClose", + PV: "PageVisible", + PI: "PageInvisible", + K: "Keystroke", + F: "Format", + V: "Validate", + C: "Calculate" +}; +exports.AnnotationActionEventType = AnnotationActionEventType; +const DocumentActionEventType = { + WC: "WillClose", + WS: "WillSave", + DS: "DidSave", + WP: "WillPrint", + DP: "DidPrint" +}; +exports.DocumentActionEventType = DocumentActionEventType; +const PageActionEventType = { + O: "PageOpen", + C: "PageClose" +}; +exports.PageActionEventType = PageActionEventType; +const StreamType = { + UNKNOWN: "UNKNOWN", + FLATE: "FLATE", + LZW: "LZW", + DCT: "DCT", + JPX: "JPX", + JBIG: "JBIG", + A85: "A85", + AHX: "AHX", + CCF: "CCF", + RLX: "RLX" +}; +exports.StreamType = StreamType; +const FontType = { + UNKNOWN: "UNKNOWN", + TYPE1: "TYPE1", + TYPE1STANDARD: "TYPE1STANDARD", + TYPE1C: "TYPE1C", + CIDFONTTYPE0: "CIDFONTTYPE0", + CIDFONTTYPE0C: "CIDFONTTYPE0C", + TRUETYPE: "TRUETYPE", + CIDFONTTYPE2: "CIDFONTTYPE2", + TYPE3: "TYPE3", + OPENTYPE: "OPENTYPE", + TYPE0: "TYPE0", + MMTYPE1: "MMTYPE1" +}; +exports.FontType = FontType; +const VerbosityLevel = { + ERRORS: 0, + WARNINGS: 1, + INFOS: 5 +}; +exports.VerbosityLevel = VerbosityLevel; +const CMapCompressionType = { + NONE: 0, + BINARY: 1, + STREAM: 2 +}; +exports.CMapCompressionType = CMapCompressionType; +const OPS = { + dependency: 1, + setLineWidth: 2, + setLineCap: 3, + setLineJoin: 4, + setMiterLimit: 5, + setDash: 6, + setRenderingIntent: 7, + setFlatness: 8, + setGState: 9, + save: 10, + restore: 11, + transform: 12, + moveTo: 13, + lineTo: 14, + curveTo: 15, + curveTo2: 16, + curveTo3: 17, + closePath: 18, + rectangle: 19, + stroke: 20, + closeStroke: 21, + fill: 22, + eoFill: 23, + fillStroke: 24, + eoFillStroke: 25, + closeFillStroke: 26, + closeEOFillStroke: 27, + endPath: 28, + clip: 29, + eoClip: 30, + beginText: 31, + endText: 32, + setCharSpacing: 33, + setWordSpacing: 34, + setHScale: 35, + setLeading: 36, + setFont: 37, + setTextRenderingMode: 38, + setTextRise: 39, + moveText: 40, + setLeadingMoveText: 41, + setTextMatrix: 42, + nextLine: 43, + showText: 44, + showSpacedText: 45, + nextLineShowText: 46, + nextLineSetSpacingShowText: 47, + setCharWidth: 48, + setCharWidthAndBounds: 49, + setStrokeColorSpace: 50, + setFillColorSpace: 51, + setStrokeColor: 52, + setStrokeColorN: 53, + setFillColor: 54, + setFillColorN: 55, + setStrokeGray: 56, + setFillGray: 57, + setStrokeRGBColor: 58, + setFillRGBColor: 59, + setStrokeCMYKColor: 60, + setFillCMYKColor: 61, + shadingFill: 62, + beginInlineImage: 63, + beginImageData: 64, + endInlineImage: 65, + paintXObject: 66, + markPoint: 67, + markPointProps: 68, + beginMarkedContent: 69, + beginMarkedContentProps: 70, + endMarkedContent: 71, + beginCompat: 72, + endCompat: 73, + paintFormXObjectBegin: 74, + paintFormXObjectEnd: 75, + beginGroup: 76, + endGroup: 77, + beginAnnotations: 78, + endAnnotations: 79, + beginAnnotation: 80, + endAnnotation: 81, + paintJpegXObject: 82, + paintImageMaskXObject: 83, + paintImageMaskXObjectGroup: 84, + paintImageXObject: 85, + paintInlineImageXObject: 86, + paintInlineImageXObjectGroup: 87, + paintImageXObjectRepeat: 88, + paintImageMaskXObjectRepeat: 89, + paintSolidColorImageMask: 90, + constructPath: 91 +}; +exports.OPS = OPS; +const UNSUPPORTED_FEATURES = { + unknown: "unknown", + forms: "forms", + javaScript: "javaScript", + signatures: "signatures", + smask: "smask", + shadingPattern: "shadingPattern", + font: "font", + errorTilingPattern: "errorTilingPattern", + errorExtGState: "errorExtGState", + errorXObject: "errorXObject", + errorFontLoadType3: "errorFontLoadType3", + errorFontState: "errorFontState", + errorFontMissing: "errorFontMissing", + errorFontTranslate: "errorFontTranslate", + errorColorSpace: "errorColorSpace", + errorOperatorList: "errorOperatorList", + errorFontToUnicode: "errorFontToUnicode", + errorFontLoadNative: "errorFontLoadNative", + errorFontBuildPath: "errorFontBuildPath", + errorFontGetPath: "errorFontGetPath", + errorMarkedContent: "errorMarkedContent", + errorContentSubStream: "errorContentSubStream" +}; +exports.UNSUPPORTED_FEATURES = UNSUPPORTED_FEATURES; +const PasswordResponses = { + NEED_PASSWORD: 1, + INCORRECT_PASSWORD: 2 +}; +exports.PasswordResponses = PasswordResponses; +let verbosity = VerbosityLevel.WARNINGS; + +function setVerbosityLevel(level) { + if (Number.isInteger(level)) { + verbosity = level; + } +} + +function getVerbosityLevel() { + return verbosity; +} + +function info(msg) { + if (verbosity >= VerbosityLevel.INFOS) { + console.log(`Info: ${msg}`); + } +} + +function warn(msg) { + if (verbosity >= VerbosityLevel.WARNINGS) { + console.log(`Warning: ${msg}`); + } +} + +function unreachable(msg) { + throw new Error(msg); +} + +function assert(cond, msg) { + if (!cond) { + unreachable(msg); + } +} + +function _isValidProtocol(url) { + if (!url) { + return false; + } + + switch (url.protocol) { + case "http:": + case "https:": + case "ftp:": + case "mailto:": + case "tel:": + return true; + + default: + return false; + } +} + +function createValidAbsoluteUrl(url, baseUrl = null, options = null) { + if (!url) { + return null; + } + + try { + if (options && typeof url === "string") { + if (options.addDefaultProtocol && url.startsWith("www.")) { + const dots = url.match(/\./g); + + if (dots && dots.length >= 2) { + url = `http://${url}`; + } + } + + if (options.tryConvertEncoding) { + try { + url = stringToUTF8String(url); + } catch (ex) {} + } + } + + const absoluteUrl = baseUrl ? new URL(url, baseUrl) : new URL(url); + + if (_isValidProtocol(absoluteUrl)) { + return absoluteUrl; + } + } catch (ex) {} + + return null; +} + +function shadow(obj, prop, value) { + Object.defineProperty(obj, prop, { + value, + enumerable: true, + configurable: true, + writable: false + }); + return value; +} + +const BaseException = function BaseExceptionClosure() { + function BaseException(message, name) { + if (this.constructor === BaseException) { + unreachable("Cannot initialize BaseException."); + } + + this.message = message; + this.name = name; + } + + BaseException.prototype = new Error(); + BaseException.constructor = BaseException; + return BaseException; +}(); + +exports.BaseException = BaseException; + +class PasswordException extends BaseException { + constructor(msg, code) { + super(msg, "PasswordException"); + this.code = code; + } + +} + +exports.PasswordException = PasswordException; + +class UnknownErrorException extends BaseException { + constructor(msg, details) { + super(msg, "UnknownErrorException"); + this.details = details; + } + +} + +exports.UnknownErrorException = UnknownErrorException; + +class InvalidPDFException extends BaseException { + constructor(msg) { + super(msg, "InvalidPDFException"); + } + +} + +exports.InvalidPDFException = InvalidPDFException; + +class MissingPDFException extends BaseException { + constructor(msg) { + super(msg, "MissingPDFException"); + } + +} + +exports.MissingPDFException = MissingPDFException; + +class UnexpectedResponseException extends BaseException { + constructor(msg, status) { + super(msg, "UnexpectedResponseException"); + this.status = status; + } + +} + +exports.UnexpectedResponseException = UnexpectedResponseException; + +class FormatError extends BaseException { + constructor(msg) { + super(msg, "FormatError"); + } + +} + +exports.FormatError = FormatError; + +class AbortException extends BaseException { + constructor(msg) { + super(msg, "AbortException"); + } + +} + +exports.AbortException = AbortException; + +function bytesToString(bytes) { + if (typeof bytes !== "object" || bytes === null || bytes.length === undefined) { + unreachable("Invalid argument for bytesToString"); + } + + const length = bytes.length; + const MAX_ARGUMENT_COUNT = 8192; + + if (length < MAX_ARGUMENT_COUNT) { + return String.fromCharCode.apply(null, bytes); + } + + const strBuf = []; + + for (let i = 0; i < length; i += MAX_ARGUMENT_COUNT) { + const chunkEnd = Math.min(i + MAX_ARGUMENT_COUNT, length); + const chunk = bytes.subarray(i, chunkEnd); + strBuf.push(String.fromCharCode.apply(null, chunk)); + } + + return strBuf.join(""); +} + +function stringToBytes(str) { + if (typeof str !== "string") { + unreachable("Invalid argument for stringToBytes"); + } + + const length = str.length; + const bytes = new Uint8Array(length); + + for (let i = 0; i < length; ++i) { + bytes[i] = str.charCodeAt(i) & 0xff; + } + + return bytes; +} + +function arrayByteLength(arr) { + if (arr.length !== undefined) { + return arr.length; + } + + if (arr.byteLength !== undefined) { + return arr.byteLength; + } + + unreachable("Invalid argument for arrayByteLength"); +} + +function arraysToBytes(arr) { + const length = arr.length; + + if (length === 1 && arr[0] instanceof Uint8Array) { + return arr[0]; + } + + let resultLength = 0; + + for (let i = 0; i < length; i++) { + resultLength += arrayByteLength(arr[i]); + } + + let pos = 0; + const data = new Uint8Array(resultLength); + + for (let i = 0; i < length; i++) { + let item = arr[i]; + + if (!(item instanceof Uint8Array)) { + if (typeof item === "string") { + item = stringToBytes(item); + } else { + item = new Uint8Array(item); + } + } + + const itemLength = item.byteLength; + data.set(item, pos); + pos += itemLength; + } + + return data; +} + +function string32(value) { + return String.fromCharCode(value >> 24 & 0xff, value >> 16 & 0xff, value >> 8 & 0xff, value & 0xff); +} + +function objectSize(obj) { + return Object.keys(obj).length; +} + +function objectFromMap(map) { + const obj = Object.create(null); + + for (const [key, value] of map) { + obj[key] = value; + } + + return obj; +} + +function isLittleEndian() { + const buffer8 = new Uint8Array(4); + buffer8[0] = 1; + const view32 = new Uint32Array(buffer8.buffer, 0, 1); + return view32[0] === 1; +} + +function isEvalSupported() { + try { + new Function(""); + return true; + } catch (e) { + return false; + } +} + +class FeatureTest { + static get isLittleEndian() { + return shadow(this, "isLittleEndian", isLittleEndian()); + } + + static get isEvalSupported() { + return shadow(this, "isEvalSupported", isEvalSupported()); + } + + static get isOffscreenCanvasSupported() { + return shadow(this, "isOffscreenCanvasSupported", typeof OffscreenCanvas !== "undefined"); + } + +} + +exports.FeatureTest = FeatureTest; +const hexNumbers = [...Array(256).keys()].map(n => n.toString(16).padStart(2, "0")); + +class Util { + static makeHexColor(r, g, b) { + return `#${hexNumbers[r]}${hexNumbers[g]}${hexNumbers[b]}`; + } + + static scaleMinMax(transform, minMax) { + let temp; + + if (transform[0]) { + if (transform[0] < 0) { + temp = minMax[0]; + minMax[0] = minMax[1]; + minMax[1] = temp; + } + + minMax[0] *= transform[0]; + minMax[1] *= transform[0]; + + if (transform[3] < 0) { + temp = minMax[2]; + minMax[2] = minMax[3]; + minMax[3] = temp; + } + + minMax[2] *= transform[3]; + minMax[3] *= transform[3]; + } else { + temp = minMax[0]; + minMax[0] = minMax[2]; + minMax[2] = temp; + temp = minMax[1]; + minMax[1] = minMax[3]; + minMax[3] = temp; + + if (transform[1] < 0) { + temp = minMax[2]; + minMax[2] = minMax[3]; + minMax[3] = temp; + } + + minMax[2] *= transform[1]; + minMax[3] *= transform[1]; + + if (transform[2] < 0) { + temp = minMax[0]; + minMax[0] = minMax[1]; + minMax[1] = temp; + } + + minMax[0] *= transform[2]; + minMax[1] *= transform[2]; + } + + minMax[0] += transform[4]; + minMax[1] += transform[4]; + minMax[2] += transform[5]; + minMax[3] += transform[5]; + } + + static transform(m1, m2) { + return [m1[0] * m2[0] + m1[2] * m2[1], m1[1] * m2[0] + m1[3] * m2[1], m1[0] * m2[2] + m1[2] * m2[3], m1[1] * m2[2] + m1[3] * m2[3], m1[0] * m2[4] + m1[2] * m2[5] + m1[4], m1[1] * m2[4] + m1[3] * m2[5] + m1[5]]; + } + + static applyTransform(p, m) { + const xt = p[0] * m[0] + p[1] * m[2] + m[4]; + const yt = p[0] * m[1] + p[1] * m[3] + m[5]; + return [xt, yt]; + } + + static applyInverseTransform(p, m) { + const d = m[0] * m[3] - m[1] * m[2]; + const xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d; + const yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d; + return [xt, yt]; + } + + static getAxialAlignedBoundingBox(r, m) { + const p1 = Util.applyTransform(r, m); + const p2 = Util.applyTransform(r.slice(2, 4), m); + const p3 = Util.applyTransform([r[0], r[3]], m); + const p4 = Util.applyTransform([r[2], r[1]], m); + return [Math.min(p1[0], p2[0], p3[0], p4[0]), Math.min(p1[1], p2[1], p3[1], p4[1]), Math.max(p1[0], p2[0], p3[0], p4[0]), Math.max(p1[1], p2[1], p3[1], p4[1])]; + } + + static inverseTransform(m) { + const d = m[0] * m[3] - m[1] * m[2]; + return [m[3] / d, -m[1] / d, -m[2] / d, m[0] / d, (m[2] * m[5] - m[4] * m[3]) / d, (m[4] * m[1] - m[5] * m[0]) / d]; + } + + static apply3dTransform(m, v) { + return [m[0] * v[0] + m[1] * v[1] + m[2] * v[2], m[3] * v[0] + m[4] * v[1] + m[5] * v[2], m[6] * v[0] + m[7] * v[1] + m[8] * v[2]]; + } + + static singularValueDecompose2dScale(m) { + const transpose = [m[0], m[2], m[1], m[3]]; + const a = m[0] * transpose[0] + m[1] * transpose[2]; + const b = m[0] * transpose[1] + m[1] * transpose[3]; + const c = m[2] * transpose[0] + m[3] * transpose[2]; + const d = m[2] * transpose[1] + m[3] * transpose[3]; + const first = (a + d) / 2; + const second = Math.sqrt((a + d) ** 2 - 4 * (a * d - c * b)) / 2; + const sx = first + second || 1; + const sy = first - second || 1; + return [Math.sqrt(sx), Math.sqrt(sy)]; + } + + static normalizeRect(rect) { + const r = rect.slice(0); + + if (rect[0] > rect[2]) { + r[0] = rect[2]; + r[2] = rect[0]; + } + + if (rect[1] > rect[3]) { + r[1] = rect[3]; + r[3] = rect[1]; + } + + return r; + } + + static intersect(rect1, rect2) { + const xLow = Math.max(Math.min(rect1[0], rect1[2]), Math.min(rect2[0], rect2[2])); + const xHigh = Math.min(Math.max(rect1[0], rect1[2]), Math.max(rect2[0], rect2[2])); + + if (xLow > xHigh) { + return null; + } + + const yLow = Math.max(Math.min(rect1[1], rect1[3]), Math.min(rect2[1], rect2[3])); + const yHigh = Math.min(Math.max(rect1[1], rect1[3]), Math.max(rect2[1], rect2[3])); + + if (yLow > yHigh) { + return null; + } + + return [xLow, yLow, xHigh, yHigh]; + } + + static bezierBoundingBox(x0, y0, x1, y1, x2, y2, x3, y3) { + const tvalues = [], + bounds = [[], []]; + let a, b, c, t, t1, t2, b2ac, sqrtb2ac; + + for (let i = 0; i < 2; ++i) { + if (i === 0) { + b = 6 * x0 - 12 * x1 + 6 * x2; + a = -3 * x0 + 9 * x1 - 9 * x2 + 3 * x3; + c = 3 * x1 - 3 * x0; + } else { + b = 6 * y0 - 12 * y1 + 6 * y2; + a = -3 * y0 + 9 * y1 - 9 * y2 + 3 * y3; + c = 3 * y1 - 3 * y0; + } + + if (Math.abs(a) < 1e-12) { + if (Math.abs(b) < 1e-12) { + continue; + } + + t = -c / b; + + if (0 < t && t < 1) { + tvalues.push(t); + } + + continue; + } + + b2ac = b * b - 4 * c * a; + sqrtb2ac = Math.sqrt(b2ac); + + if (b2ac < 0) { + continue; + } + + t1 = (-b + sqrtb2ac) / (2 * a); + + if (0 < t1 && t1 < 1) { + tvalues.push(t1); + } + + t2 = (-b - sqrtb2ac) / (2 * a); + + if (0 < t2 && t2 < 1) { + tvalues.push(t2); + } + } + + let j = tvalues.length, + mt; + const jlen = j; + + while (j--) { + t = tvalues[j]; + mt = 1 - t; + bounds[0][j] = mt * mt * mt * x0 + 3 * mt * mt * t * x1 + 3 * mt * t * t * x2 + t * t * t * x3; + bounds[1][j] = mt * mt * mt * y0 + 3 * mt * mt * t * y1 + 3 * mt * t * t * y2 + t * t * t * y3; + } + + bounds[0][jlen] = x0; + bounds[1][jlen] = y0; + bounds[0][jlen + 1] = x3; + bounds[1][jlen + 1] = y3; + bounds[0].length = bounds[1].length = jlen + 2; + return [Math.min(...bounds[0]), Math.min(...bounds[1]), Math.max(...bounds[0]), Math.max(...bounds[1])]; + } + +} + +exports.Util = Util; +const PDFStringTranslateTable = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2d8, 0x2c7, 0x2c6, 0x2d9, 0x2dd, 0x2db, 0x2da, 0x2dc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014, 0x2013, 0x192, 0x2044, 0x2039, 0x203a, 0x2212, 0x2030, 0x201e, 0x201c, 0x201d, 0x2018, 0x2019, 0x201a, 0x2122, 0xfb01, 0xfb02, 0x141, 0x152, 0x160, 0x178, 0x17d, 0x131, 0x142, 0x153, 0x161, 0x17e, 0, 0x20ac]; + +function stringToPDFString(str) { + if (str[0] >= "\xEF") { + let encoding; + + if (str[0] === "\xFE" && str[1] === "\xFF") { + encoding = "utf-16be"; + } else if (str[0] === "\xFF" && str[1] === "\xFE") { + encoding = "utf-16le"; + } else if (str[0] === "\xEF" && str[1] === "\xBB" && str[2] === "\xBF") { + encoding = "utf-8"; + } + + if (encoding) { + try { + const decoder = new TextDecoder(encoding, { + fatal: true + }); + const buffer = stringToBytes(str); + return decoder.decode(buffer); + } catch (ex) { + warn(`stringToPDFString: "${ex}".`); + } + } + } + + const strBuf = []; + + for (let i = 0, ii = str.length; i < ii; i++) { + const code = PDFStringTranslateTable[str.charCodeAt(i)]; + strBuf.push(code ? String.fromCharCode(code) : str.charAt(i)); + } + + return strBuf.join(""); +} + +function escapeString(str) { + return str.replace(/([()\\\n\r])/g, match => { + if (match === "\n") { + return "\\n"; + } else if (match === "\r") { + return "\\r"; + } + + return `\\${match}`; + }); +} + +function isAscii(str) { + return /^[\x00-\x7F]*$/.test(str); +} + +function stringToUTF16BEString(str) { + const buf = ["\xFE\xFF"]; + + for (let i = 0, ii = str.length; i < ii; i++) { + const char = str.charCodeAt(i); + buf.push(String.fromCharCode(char >> 8 & 0xff), String.fromCharCode(char & 0xff)); + } + + return buf.join(""); +} + +function stringToUTF8String(str) { + return decodeURIComponent(escape(str)); +} + +function utf8StringToString(str) { + return unescape(encodeURIComponent(str)); +} + +function isArrayBuffer(v) { + return typeof v === "object" && v !== null && v.byteLength !== undefined; +} + +function isArrayEqual(arr1, arr2) { + if (arr1.length !== arr2.length) { + return false; + } + + for (let i = 0, ii = arr1.length; i < ii; i++) { + if (arr1[i] !== arr2[i]) { + return false; + } + } + + return true; +} + +function getModificationDate(date = new Date()) { + const buffer = [date.getUTCFullYear().toString(), (date.getUTCMonth() + 1).toString().padStart(2, "0"), date.getUTCDate().toString().padStart(2, "0"), date.getUTCHours().toString().padStart(2, "0"), date.getUTCMinutes().toString().padStart(2, "0"), date.getUTCSeconds().toString().padStart(2, "0")]; + return buffer.join(""); +} + +function createPromiseCapability() { + const capability = Object.create(null); + let isSettled = false; + Object.defineProperty(capability, "settled", { + get() { + return isSettled; + } + + }); + capability.promise = new Promise(function (resolve, reject) { + capability.resolve = function (data) { + isSettled = true; + resolve(data); + }; + + capability.reject = function (reason) { + isSettled = true; + reject(reason); + }; + }); + return capability; +} + +/***/ }), +/* 3 */ +/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => { + + + +var _is_node = __w_pdfjs_require__(4); + +; + +/***/ }), +/* 4 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.isNodeJS = void 0; +const isNodeJS = typeof process === "object" && process + "" === "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser"); +exports.isNodeJS = isNodeJS; + +/***/ }), +/* 5 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.RefSetCache = exports.RefSet = exports.Ref = exports.Name = exports.EOF = exports.Dict = exports.Cmd = exports.CIRCULAR_REF = void 0; +exports.clearPrimitiveCaches = clearPrimitiveCaches; +exports.isCmd = isCmd; +exports.isDict = isDict; +exports.isName = isName; +exports.isRefsEqual = isRefsEqual; + +var _util = __w_pdfjs_require__(2); + +const CIRCULAR_REF = Symbol("CIRCULAR_REF"); +exports.CIRCULAR_REF = CIRCULAR_REF; +const EOF = Symbol("EOF"); +exports.EOF = EOF; + +const Name = function NameClosure() { + let nameCache = Object.create(null); + + class Name { + constructor(name) { + this.name = name; + } + + static get(name) { + return nameCache[name] || (nameCache[name] = new Name(name)); + } + + static _clearCache() { + nameCache = Object.create(null); + } + + } + + return Name; +}(); + +exports.Name = Name; + +const Cmd = function CmdClosure() { + let cmdCache = Object.create(null); + + class Cmd { + constructor(cmd) { + this.cmd = cmd; + } + + static get(cmd) { + return cmdCache[cmd] || (cmdCache[cmd] = new Cmd(cmd)); + } + + static _clearCache() { + cmdCache = Object.create(null); + } + + } + + return Cmd; +}(); + +exports.Cmd = Cmd; + +const nonSerializable = function nonSerializableClosure() { + return nonSerializable; +}; + +class Dict { + constructor(xref = null) { + this._map = Object.create(null); + this.xref = xref; + this.objId = null; + this.suppressEncryption = false; + this.__nonSerializable__ = nonSerializable; + } + + assignXref(newXref) { + this.xref = newXref; + } + + get size() { + return Object.keys(this._map).length; + } + + get(key1, key2, key3) { + let value = this._map[key1]; + + if (value === undefined && key2 !== undefined) { + value = this._map[key2]; + + if (value === undefined && key3 !== undefined) { + value = this._map[key3]; + } + } + + if (value instanceof Ref && this.xref) { + return this.xref.fetch(value, this.suppressEncryption); + } + + return value; + } + + async getAsync(key1, key2, key3) { + let value = this._map[key1]; + + if (value === undefined && key2 !== undefined) { + value = this._map[key2]; + + if (value === undefined && key3 !== undefined) { + value = this._map[key3]; + } + } + + if (value instanceof Ref && this.xref) { + return this.xref.fetchAsync(value, this.suppressEncryption); + } + + return value; + } + + getArray(key1, key2, key3) { + let value = this._map[key1]; + + if (value === undefined && key2 !== undefined) { + value = this._map[key2]; + + if (value === undefined && key3 !== undefined) { + value = this._map[key3]; + } + } + + if (value instanceof Ref && this.xref) { + value = this.xref.fetch(value, this.suppressEncryption); + } + + if (Array.isArray(value)) { + value = value.slice(); + + for (let i = 0, ii = value.length; i < ii; i++) { + if (value[i] instanceof Ref && this.xref) { + value[i] = this.xref.fetch(value[i], this.suppressEncryption); + } + } + } + + return value; + } + + getRaw(key) { + return this._map[key]; + } + + getKeys() { + return Object.keys(this._map); + } + + getRawValues() { + return Object.values(this._map); + } + + set(key, value) { + this._map[key] = value; + } + + has(key) { + return this._map[key] !== undefined; + } + + forEach(callback) { + for (const key in this._map) { + callback(key, this.get(key)); + } + } + + static get empty() { + const emptyDict = new Dict(null); + + emptyDict.set = (key, value) => { + (0, _util.unreachable)("Should not call `set` on the empty dictionary."); + }; + + return (0, _util.shadow)(this, "empty", emptyDict); + } + + static merge({ + xref, + dictArray, + mergeSubDicts = false + }) { + const mergedDict = new Dict(xref), + properties = new Map(); + + for (const dict of dictArray) { + if (!(dict instanceof Dict)) { + continue; + } + + for (const [key, value] of Object.entries(dict._map)) { + let property = properties.get(key); + + if (property === undefined) { + property = []; + properties.set(key, property); + } else if (!mergeSubDicts || !(value instanceof Dict)) { + continue; + } + + property.push(value); + } + } + + for (const [name, values] of properties) { + if (values.length === 1 || !(values[0] instanceof Dict)) { + mergedDict._map[name] = values[0]; + continue; + } + + const subDict = new Dict(xref); + + for (const dict of values) { + for (const [key, value] of Object.entries(dict._map)) { + if (subDict._map[key] === undefined) { + subDict._map[key] = value; + } + } + } + + if (subDict.size > 0) { + mergedDict._map[name] = subDict; + } + } + + properties.clear(); + return mergedDict.size > 0 ? mergedDict : Dict.empty; + } + +} + +exports.Dict = Dict; + +const Ref = function RefClosure() { + let refCache = Object.create(null); + + class Ref { + constructor(num, gen) { + this.num = num; + this.gen = gen; + } + + toString() { + if (this.gen === 0) { + return `${this.num}R`; + } + + return `${this.num}R${this.gen}`; + } + + static get(num, gen) { + const key = gen === 0 ? `${num}R` : `${num}R${gen}`; + return refCache[key] || (refCache[key] = new Ref(num, gen)); + } + + static _clearCache() { + refCache = Object.create(null); + } + + } + + return Ref; +}(); + +exports.Ref = Ref; + +class RefSet { + constructor(parent = null) { + this._set = new Set(parent && parent._set); + } + + has(ref) { + return this._set.has(ref.toString()); + } + + put(ref) { + this._set.add(ref.toString()); + } + + remove(ref) { + this._set.delete(ref.toString()); + } + + [Symbol.iterator]() { + return this._set.values(); + } + + clear() { + this._set.clear(); + } + +} + +exports.RefSet = RefSet; + +class RefSetCache { + constructor() { + this._map = new Map(); + } + + get size() { + return this._map.size; + } + + get(ref) { + return this._map.get(ref.toString()); + } + + has(ref) { + return this._map.has(ref.toString()); + } + + put(ref, obj) { + this._map.set(ref.toString(), obj); + } + + putAlias(ref, aliasRef) { + this._map.set(ref.toString(), this.get(aliasRef)); + } + + [Symbol.iterator]() { + return this._map.values(); + } + + clear() { + this._map.clear(); + } + +} + +exports.RefSetCache = RefSetCache; + +function isName(v, name) { + return v instanceof Name && (name === undefined || v.name === name); +} + +function isCmd(v, cmd) { + return v instanceof Cmd && (cmd === undefined || v.cmd === cmd); +} + +function isDict(v, type) { + return v instanceof Dict && (type === undefined || isName(v.get("Type"), type)); +} + +function isRefsEqual(v1, v2) { + return v1.num === v2.num && v1.gen === v2.gen; +} + +function clearPrimitiveCaches() { + Cmd._clearCache(); + + Name._clearCache(); + + Ref._clearCache(); +} + +/***/ }), +/* 6 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.XRefParseException = exports.XRefEntryException = exports.ParserEOFException = exports.MissingDataException = exports.DocStats = void 0; +exports.collectActions = collectActions; +exports.encodeToXmlString = encodeToXmlString; +exports.escapePDFName = escapePDFName; +exports.getArrayLookupTableFactory = getArrayLookupTableFactory; +exports.getInheritableProperty = getInheritableProperty; +exports.getLookupTableFactory = getLookupTableFactory; +exports.getNewAnnotationsMap = getNewAnnotationsMap; +exports.isWhiteSpace = isWhiteSpace; +exports.log2 = log2; +exports.numberToString = numberToString; +exports.parseXFAPath = parseXFAPath; +exports.readInt8 = readInt8; +exports.readUint16 = readUint16; +exports.readUint32 = readUint32; +exports.recoverJsURL = recoverJsURL; +exports.toRomanNumerals = toRomanNumerals; +exports.validateCSSFont = validateCSSFont; + +var _util = __w_pdfjs_require__(2); + +var _primitives = __w_pdfjs_require__(5); + +var _base_stream = __w_pdfjs_require__(7); + +function getLookupTableFactory(initializer) { + let lookup; + return function () { + if (initializer) { + lookup = Object.create(null); + initializer(lookup); + initializer = null; + } + + return lookup; + }; +} + +function getArrayLookupTableFactory(initializer) { + let lookup; + return function () { + if (initializer) { + let arr = initializer(); + initializer = null; + lookup = Object.create(null); + + for (let i = 0, ii = arr.length; i < ii; i += 2) { + lookup[arr[i]] = arr[i + 1]; + } + + arr = null; + } + + return lookup; + }; +} + +class MissingDataException extends _util.BaseException { + constructor(begin, end) { + super(`Missing data [${begin}, ${end})`, "MissingDataException"); + this.begin = begin; + this.end = end; + } + +} + +exports.MissingDataException = MissingDataException; + +class ParserEOFException extends _util.BaseException { + constructor(msg) { + super(msg, "ParserEOFException"); + } + +} + +exports.ParserEOFException = ParserEOFException; + +class XRefEntryException extends _util.BaseException { + constructor(msg) { + super(msg, "XRefEntryException"); + } + +} + +exports.XRefEntryException = XRefEntryException; + +class XRefParseException extends _util.BaseException { + constructor(msg) { + super(msg, "XRefParseException"); + } + +} + +exports.XRefParseException = XRefParseException; + +class DocStats { + constructor(handler) { + this._handler = handler; + this._streamTypes = new Set(); + this._fontTypes = new Set(); + } + + _send() { + const streamTypes = Object.create(null), + fontTypes = Object.create(null); + + for (const type of this._streamTypes) { + streamTypes[type] = true; + } + + for (const type of this._fontTypes) { + fontTypes[type] = true; + } + + this._handler.send("DocStats", { + streamTypes, + fontTypes + }); + } + + addStreamType(type) { + if (this._streamTypes.has(type)) { + return; + } + + this._streamTypes.add(type); + + this._send(); + } + + addFontType(type) { + if (this._fontTypes.has(type)) { + return; + } + + this._fontTypes.add(type); + + this._send(); + } + +} + +exports.DocStats = DocStats; + +function getInheritableProperty({ + dict, + key, + getArray = false, + stopWhenFound = true +}) { + let values; + const visited = new _primitives.RefSet(); + + while (dict instanceof _primitives.Dict && !(dict.objId && visited.has(dict.objId))) { + if (dict.objId) { + visited.put(dict.objId); + } + + const value = getArray ? dict.getArray(key) : dict.get(key); + + if (value !== undefined) { + if (stopWhenFound) { + return value; + } + + if (!values) { + values = []; + } + + values.push(value); + } + + dict = dict.get("Parent"); + } + + return values; +} + +const ROMAN_NUMBER_MAP = ["", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM", "", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC", "", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"]; + +function toRomanNumerals(number, lowerCase = false) { + (0, _util.assert)(Number.isInteger(number) && number > 0, "The number should be a positive integer."); + const romanBuf = []; + let pos; + + while (number >= 1000) { + number -= 1000; + romanBuf.push("M"); + } + + pos = number / 100 | 0; + number %= 100; + romanBuf.push(ROMAN_NUMBER_MAP[pos]); + pos = number / 10 | 0; + number %= 10; + romanBuf.push(ROMAN_NUMBER_MAP[10 + pos]); + romanBuf.push(ROMAN_NUMBER_MAP[20 + number]); + const romanStr = romanBuf.join(""); + return lowerCase ? romanStr.toLowerCase() : romanStr; +} + +function log2(x) { + if (x <= 0) { + return 0; + } + + return Math.ceil(Math.log2(x)); +} + +function readInt8(data, offset) { + return data[offset] << 24 >> 24; +} + +function readUint16(data, offset) { + return data[offset] << 8 | data[offset + 1]; +} + +function readUint32(data, offset) { + return (data[offset] << 24 | data[offset + 1] << 16 | data[offset + 2] << 8 | data[offset + 3]) >>> 0; +} + +function isWhiteSpace(ch) { + return ch === 0x20 || ch === 0x09 || ch === 0x0d || ch === 0x0a; +} + +function parseXFAPath(path) { + const positionPattern = /(.+)\[(\d+)\]$/; + return path.split(".").map(component => { + const m = component.match(positionPattern); + + if (m) { + return { + name: m[1], + pos: parseInt(m[2], 10) + }; + } + + return { + name: component, + pos: 0 + }; + }); +} + +function escapePDFName(str) { + const buffer = []; + let start = 0; + + for (let i = 0, ii = str.length; i < ii; i++) { + const char = str.charCodeAt(i); + + if (char < 0x21 || char > 0x7e || char === 0x23 || char === 0x28 || char === 0x29 || char === 0x3c || char === 0x3e || char === 0x5b || char === 0x5d || char === 0x7b || char === 0x7d || char === 0x2f || char === 0x25) { + if (start < i) { + buffer.push(str.substring(start, i)); + } + + buffer.push(`#${char.toString(16)}`); + start = i + 1; + } + } + + if (buffer.length === 0) { + return str; + } + + if (start < str.length) { + buffer.push(str.substring(start, str.length)); + } + + return buffer.join(""); +} + +function _collectJS(entry, xref, list, parents) { + if (!entry) { + return; + } + + let parent = null; + + if (entry instanceof _primitives.Ref) { + if (parents.has(entry)) { + return; + } + + parent = entry; + parents.put(parent); + entry = xref.fetch(entry); + } + + if (Array.isArray(entry)) { + for (const element of entry) { + _collectJS(element, xref, list, parents); + } + } else if (entry instanceof _primitives.Dict) { + if ((0, _primitives.isName)(entry.get("S"), "JavaScript")) { + const js = entry.get("JS"); + let code; + + if (js instanceof _base_stream.BaseStream) { + code = js.getString(); + } else if (typeof js === "string") { + code = js; + } + + code = code && (0, _util.stringToPDFString)(code).replace(/\u0000/g, ""); + + if (code) { + list.push(code); + } + } + + _collectJS(entry.getRaw("Next"), xref, list, parents); + } + + if (parent) { + parents.remove(parent); + } +} + +function collectActions(xref, dict, eventType) { + const actions = Object.create(null); + const additionalActionsDicts = getInheritableProperty({ + dict, + key: "AA", + stopWhenFound: false + }); + + if (additionalActionsDicts) { + for (let i = additionalActionsDicts.length - 1; i >= 0; i--) { + const additionalActions = additionalActionsDicts[i]; + + if (!(additionalActions instanceof _primitives.Dict)) { + continue; + } + + for (const key of additionalActions.getKeys()) { + const action = eventType[key]; + + if (!action) { + continue; + } + + const actionDict = additionalActions.getRaw(key); + const parents = new _primitives.RefSet(); + const list = []; + + _collectJS(actionDict, xref, list, parents); + + if (list.length > 0) { + actions[action] = list; + } + } + } + } + + if (dict.has("A")) { + const actionDict = dict.get("A"); + const parents = new _primitives.RefSet(); + const list = []; + + _collectJS(actionDict, xref, list, parents); + + if (list.length > 0) { + actions.Action = list; + } + } + + return (0, _util.objectSize)(actions) > 0 ? actions : null; +} + +const XMLEntities = { + 0x3c: "<", + 0x3e: ">", + 0x26: "&", + 0x22: """, + 0x27: "'" +}; + +function encodeToXmlString(str) { + const buffer = []; + let start = 0; + + for (let i = 0, ii = str.length; i < ii; i++) { + const char = str.codePointAt(i); + + if (0x20 <= char && char <= 0x7e) { + const entity = XMLEntities[char]; + + if (entity) { + if (start < i) { + buffer.push(str.substring(start, i)); + } + + buffer.push(entity); + start = i + 1; + } + } else { + if (start < i) { + buffer.push(str.substring(start, i)); + } + + buffer.push(`&#x${char.toString(16).toUpperCase()};`); + + if (char > 0xd7ff && (char < 0xe000 || char > 0xfffd)) { + i++; + } + + start = i + 1; + } + } + + if (buffer.length === 0) { + return str; + } + + if (start < str.length) { + buffer.push(str.substring(start, str.length)); + } + + return buffer.join(""); +} + +function validateCSSFont(cssFontInfo) { + const DEFAULT_CSS_FONT_OBLIQUE = "14"; + const DEFAULT_CSS_FONT_WEIGHT = "400"; + const CSS_FONT_WEIGHT_VALUES = new Set(["100", "200", "300", "400", "500", "600", "700", "800", "900", "1000", "normal", "bold", "bolder", "lighter"]); + const { + fontFamily, + fontWeight, + italicAngle + } = cssFontInfo; + + if (/^".*"$/.test(fontFamily)) { + if (/[^\\]"/.test(fontFamily.slice(1, fontFamily.length - 1))) { + (0, _util.warn)(`XFA - FontFamily contains some unescaped ": ${fontFamily}.`); + return false; + } + } else if (/^'.*'$/.test(fontFamily)) { + if (/[^\\]'/.test(fontFamily.slice(1, fontFamily.length - 1))) { + (0, _util.warn)(`XFA - FontFamily contains some unescaped ': ${fontFamily}.`); + return false; + } + } else { + for (const ident of fontFamily.split(/[ \t]+/)) { + if (/^(\d|(-(\d|-)))/.test(ident) || !/^[\w-\\]+$/.test(ident)) { + (0, _util.warn)(`XFA - FontFamily contains some invalid <custom-ident>: ${fontFamily}.`); + return false; + } + } + } + + const weight = fontWeight ? fontWeight.toString() : ""; + cssFontInfo.fontWeight = CSS_FONT_WEIGHT_VALUES.has(weight) ? weight : DEFAULT_CSS_FONT_WEIGHT; + const angle = parseFloat(italicAngle); + cssFontInfo.italicAngle = isNaN(angle) || angle < -90 || angle > 90 ? DEFAULT_CSS_FONT_OBLIQUE : italicAngle.toString(); + return true; +} + +function recoverJsURL(str) { + const URL_OPEN_METHODS = ["app.launchURL", "window.open", "xfa.host.gotoURL"]; + const regex = new RegExp("^\\s*(" + URL_OPEN_METHODS.join("|").split(".").join("\\.") + ")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))", "i"); + const jsUrl = regex.exec(str); + + if (jsUrl && jsUrl[2]) { + const url = jsUrl[2]; + let newWindow = false; + + if (jsUrl[3] === "true" && jsUrl[1] === "app.launchURL") { + newWindow = true; + } + + return { + url, + newWindow + }; + } + + return null; +} + +function numberToString(value) { + if (Number.isInteger(value)) { + return value.toString(); + } + + const roundedValue = Math.round(value * 100); + + if (roundedValue % 100 === 0) { + return (roundedValue / 100).toString(); + } + + if (roundedValue % 10 === 0) { + return value.toFixed(1); + } + + return value.toFixed(2); +} + +function getNewAnnotationsMap(annotationStorage) { + if (!annotationStorage) { + return null; + } + + const newAnnotationsByPage = new Map(); + + for (const [key, value] of annotationStorage) { + if (!key.startsWith(_util.AnnotationEditorPrefix)) { + continue; + } + + let annotations = newAnnotationsByPage.get(value.pageIndex); + + if (!annotations) { + annotations = []; + newAnnotationsByPage.set(value.pageIndex, annotations); + } + + annotations.push(value); + } + + return newAnnotationsByPage.size > 0 ? newAnnotationsByPage : null; +} + +/***/ }), +/* 7 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.BaseStream = void 0; + +var _util = __w_pdfjs_require__(2); + +class BaseStream { + constructor() { + if (this.constructor === BaseStream) { + (0, _util.unreachable)("Cannot initialize BaseStream."); + } + } + + get length() { + (0, _util.unreachable)("Abstract getter `length` accessed"); + } + + get isEmpty() { + (0, _util.unreachable)("Abstract getter `isEmpty` accessed"); + } + + get isDataLoaded() { + return (0, _util.shadow)(this, "isDataLoaded", true); + } + + getByte() { + (0, _util.unreachable)("Abstract method `getByte` called"); + } + + getBytes(length) { + (0, _util.unreachable)("Abstract method `getBytes` called"); + } + + peekByte() { + const peekedByte = this.getByte(); + + if (peekedByte !== -1) { + this.pos--; + } + + return peekedByte; + } + + peekBytes(length) { + const bytes = this.getBytes(length); + this.pos -= bytes.length; + return bytes; + } + + getUint16() { + const b0 = this.getByte(); + const b1 = this.getByte(); + + if (b0 === -1 || b1 === -1) { + return -1; + } + + return (b0 << 8) + b1; + } + + getInt32() { + const b0 = this.getByte(); + const b1 = this.getByte(); + const b2 = this.getByte(); + const b3 = this.getByte(); + return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3; + } + + getByteRange(begin, end) { + (0, _util.unreachable)("Abstract method `getByteRange` called"); + } + + getString(length) { + return (0, _util.bytesToString)(this.getBytes(length)); + } + + skip(n) { + this.pos += n || 1; + } + + reset() { + (0, _util.unreachable)("Abstract method `reset` called"); + } + + moveStart() { + (0, _util.unreachable)("Abstract method `moveStart` called"); + } + + makeSubStream(start, length, dict = null) { + (0, _util.unreachable)("Abstract method `makeSubStream` called"); + } + + getBaseStreams() { + return null; + } + +} + +exports.BaseStream = BaseStream; + +/***/ }), +/* 8 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.NetworkPdfManager = exports.LocalPdfManager = void 0; + +var _util = __w_pdfjs_require__(2); + +var _chunked_stream = __w_pdfjs_require__(9); + +var _core_utils = __w_pdfjs_require__(6); + +var _document = __w_pdfjs_require__(11); + +var _stream = __w_pdfjs_require__(10); + +function parseDocBaseUrl(url) { + if (url) { + const absoluteUrl = (0, _util.createValidAbsoluteUrl)(url); + + if (absoluteUrl) { + return absoluteUrl.href; + } + + (0, _util.warn)(`Invalid absolute docBaseUrl: "${url}".`); + } + + return null; +} + +class BasePdfManager { + constructor() { + if (this.constructor === BasePdfManager) { + (0, _util.unreachable)("Cannot initialize BasePdfManager."); + } + } + + get docId() { + return this._docId; + } + + get password() { + return this._password; + } + + get docBaseUrl() { + const catalog = this.pdfDocument.catalog; + return (0, _util.shadow)(this, "docBaseUrl", catalog.baseUrl || this._docBaseUrl); + } + + onLoadedStream() { + (0, _util.unreachable)("Abstract method `onLoadedStream` called"); + } + + ensureDoc(prop, args) { + return this.ensure(this.pdfDocument, prop, args); + } + + ensureXRef(prop, args) { + return this.ensure(this.pdfDocument.xref, prop, args); + } + + ensureCatalog(prop, args) { + return this.ensure(this.pdfDocument.catalog, prop, args); + } + + getPage(pageIndex) { + return this.pdfDocument.getPage(pageIndex); + } + + fontFallback(id, handler) { + return this.pdfDocument.fontFallback(id, handler); + } + + loadXfaFonts(handler, task) { + return this.pdfDocument.loadXfaFonts(handler, task); + } + + loadXfaImages() { + return this.pdfDocument.loadXfaImages(); + } + + serializeXfaData(annotationStorage) { + return this.pdfDocument.serializeXfaData(annotationStorage); + } + + cleanup(manuallyTriggered = false) { + return this.pdfDocument.cleanup(manuallyTriggered); + } + + async ensure(obj, prop, args) { + (0, _util.unreachable)("Abstract method `ensure` called"); + } + + requestRange(begin, end) { + (0, _util.unreachable)("Abstract method `requestRange` called"); + } + + requestLoadedStream() { + (0, _util.unreachable)("Abstract method `requestLoadedStream` called"); + } + + sendProgressiveData(chunk) { + (0, _util.unreachable)("Abstract method `sendProgressiveData` called"); + } + + updatePassword(password) { + this._password = password; + } + + terminate(reason) { + (0, _util.unreachable)("Abstract method `terminate` called"); + } + +} + +class LocalPdfManager extends BasePdfManager { + constructor(docId, data, password, msgHandler, evaluatorOptions, enableXfa, docBaseUrl) { + super(); + this._docId = docId; + this._password = password; + this._docBaseUrl = parseDocBaseUrl(docBaseUrl); + this.msgHandler = msgHandler; + this.evaluatorOptions = evaluatorOptions; + this.enableXfa = enableXfa; + const stream = new _stream.Stream(data); + this.pdfDocument = new _document.PDFDocument(this, stream); + this._loadedStreamPromise = Promise.resolve(stream); + } + + async ensure(obj, prop, args) { + const value = obj[prop]; + + if (typeof value === "function") { + return value.apply(obj, args); + } + + return value; + } + + requestRange(begin, end) { + return Promise.resolve(); + } + + requestLoadedStream() {} + + onLoadedStream() { + return this._loadedStreamPromise; + } + + terminate(reason) {} + +} + +exports.LocalPdfManager = LocalPdfManager; + +class NetworkPdfManager extends BasePdfManager { + constructor(docId, pdfNetworkStream, args, evaluatorOptions, enableXfa, docBaseUrl) { + super(); + this._docId = docId; + this._password = args.password; + this._docBaseUrl = parseDocBaseUrl(docBaseUrl); + this.msgHandler = args.msgHandler; + this.evaluatorOptions = evaluatorOptions; + this.enableXfa = enableXfa; + this.streamManager = new _chunked_stream.ChunkedStreamManager(pdfNetworkStream, { + msgHandler: args.msgHandler, + length: args.length, + disableAutoFetch: args.disableAutoFetch, + rangeChunkSize: args.rangeChunkSize + }); + this.pdfDocument = new _document.PDFDocument(this, this.streamManager.getStream()); + } + + async ensure(obj, prop, args) { + try { + const value = obj[prop]; + + if (typeof value === "function") { + return value.apply(obj, args); + } + + return value; + } catch (ex) { + if (!(ex instanceof _core_utils.MissingDataException)) { + throw ex; + } + + await this.requestRange(ex.begin, ex.end); + return this.ensure(obj, prop, args); + } + } + + requestRange(begin, end) { + return this.streamManager.requestRange(begin, end); + } + + requestLoadedStream() { + this.streamManager.requestAllChunks(); + } + + sendProgressiveData(chunk) { + this.streamManager.onReceiveData({ + chunk + }); + } + + onLoadedStream() { + return this.streamManager.onLoadedStream(); + } + + terminate(reason) { + this.streamManager.abort(reason); + } + +} + +exports.NetworkPdfManager = NetworkPdfManager; + +/***/ }), +/* 9 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ChunkedStreamManager = exports.ChunkedStream = void 0; + +var _util = __w_pdfjs_require__(2); + +var _core_utils = __w_pdfjs_require__(6); + +var _stream = __w_pdfjs_require__(10); + +class ChunkedStream extends _stream.Stream { + constructor(length, chunkSize, manager) { + super(new Uint8Array(length), 0, length, null); + this.chunkSize = chunkSize; + this._loadedChunks = new Set(); + this.numChunks = Math.ceil(length / chunkSize); + this.manager = manager; + this.progressiveDataLength = 0; + this.lastSuccessfulEnsureByteChunk = -1; + } + + getMissingChunks() { + const chunks = []; + + for (let chunk = 0, n = this.numChunks; chunk < n; ++chunk) { + if (!this._loadedChunks.has(chunk)) { + chunks.push(chunk); + } + } + + return chunks; + } + + get numChunksLoaded() { + return this._loadedChunks.size; + } + + get isDataLoaded() { + return this.numChunksLoaded === this.numChunks; + } + + onReceiveData(begin, chunk) { + const chunkSize = this.chunkSize; + + if (begin % chunkSize !== 0) { + throw new Error(`Bad begin offset: ${begin}`); + } + + const end = begin + chunk.byteLength; + + if (end % chunkSize !== 0 && end !== this.bytes.length) { + throw new Error(`Bad end offset: ${end}`); + } + + this.bytes.set(new Uint8Array(chunk), begin); + const beginChunk = Math.floor(begin / chunkSize); + const endChunk = Math.floor((end - 1) / chunkSize) + 1; + + for (let curChunk = beginChunk; curChunk < endChunk; ++curChunk) { + this._loadedChunks.add(curChunk); + } + } + + onReceiveProgressiveData(data) { + let position = this.progressiveDataLength; + const beginChunk = Math.floor(position / this.chunkSize); + this.bytes.set(new Uint8Array(data), position); + position += data.byteLength; + this.progressiveDataLength = position; + const endChunk = position >= this.end ? this.numChunks : Math.floor(position / this.chunkSize); + + for (let curChunk = beginChunk; curChunk < endChunk; ++curChunk) { + this._loadedChunks.add(curChunk); + } + } + + ensureByte(pos) { + if (pos < this.progressiveDataLength) { + return; + } + + const chunk = Math.floor(pos / this.chunkSize); + + if (chunk > this.numChunks) { + return; + } + + if (chunk === this.lastSuccessfulEnsureByteChunk) { + return; + } + + if (!this._loadedChunks.has(chunk)) { + throw new _core_utils.MissingDataException(pos, pos + 1); + } + + this.lastSuccessfulEnsureByteChunk = chunk; + } + + ensureRange(begin, end) { + if (begin >= end) { + return; + } + + if (end <= this.progressiveDataLength) { + return; + } + + const beginChunk = Math.floor(begin / this.chunkSize); + + if (beginChunk > this.numChunks) { + return; + } + + const endChunk = Math.min(Math.floor((end - 1) / this.chunkSize) + 1, this.numChunks); + + for (let chunk = beginChunk; chunk < endChunk; ++chunk) { + if (!this._loadedChunks.has(chunk)) { + throw new _core_utils.MissingDataException(begin, end); + } + } + } + + nextEmptyChunk(beginChunk) { + const numChunks = this.numChunks; + + for (let i = 0; i < numChunks; ++i) { + const chunk = (beginChunk + i) % numChunks; + + if (!this._loadedChunks.has(chunk)) { + return chunk; + } + } + + return null; + } + + hasChunk(chunk) { + return this._loadedChunks.has(chunk); + } + + getByte() { + const pos = this.pos; + + if (pos >= this.end) { + return -1; + } + + if (pos >= this.progressiveDataLength) { + this.ensureByte(pos); + } + + return this.bytes[this.pos++]; + } + + getBytes(length) { + const bytes = this.bytes; + const pos = this.pos; + const strEnd = this.end; + + if (!length) { + if (strEnd > this.progressiveDataLength) { + this.ensureRange(pos, strEnd); + } + + return bytes.subarray(pos, strEnd); + } + + let end = pos + length; + + if (end > strEnd) { + end = strEnd; + } + + if (end > this.progressiveDataLength) { + this.ensureRange(pos, end); + } + + this.pos = end; + return bytes.subarray(pos, end); + } + + getByteRange(begin, end) { + if (begin < 0) { + begin = 0; + } + + if (end > this.end) { + end = this.end; + } + + if (end > this.progressiveDataLength) { + this.ensureRange(begin, end); + } + + return this.bytes.subarray(begin, end); + } + + makeSubStream(start, length, dict = null) { + if (length) { + if (start + length > this.progressiveDataLength) { + this.ensureRange(start, start + length); + } + } else { + if (start >= this.progressiveDataLength) { + this.ensureByte(start); + } + } + + function ChunkedStreamSubstream() {} + + ChunkedStreamSubstream.prototype = Object.create(this); + + ChunkedStreamSubstream.prototype.getMissingChunks = function () { + const chunkSize = this.chunkSize; + const beginChunk = Math.floor(this.start / chunkSize); + const endChunk = Math.floor((this.end - 1) / chunkSize) + 1; + const missingChunks = []; + + for (let chunk = beginChunk; chunk < endChunk; ++chunk) { + if (!this._loadedChunks.has(chunk)) { + missingChunks.push(chunk); + } + } + + return missingChunks; + }; + + Object.defineProperty(ChunkedStreamSubstream.prototype, "isDataLoaded", { + get() { + if (this.numChunksLoaded === this.numChunks) { + return true; + } + + return this.getMissingChunks().length === 0; + }, + + configurable: true + }); + const subStream = new ChunkedStreamSubstream(); + subStream.pos = subStream.start = start; + subStream.end = start + length || this.end; + subStream.dict = dict; + return subStream; + } + + getBaseStreams() { + return [this]; + } + +} + +exports.ChunkedStream = ChunkedStream; + +class ChunkedStreamManager { + constructor(pdfNetworkStream, args) { + this.length = args.length; + this.chunkSize = args.rangeChunkSize; + this.stream = new ChunkedStream(this.length, this.chunkSize, this); + this.pdfNetworkStream = pdfNetworkStream; + this.disableAutoFetch = args.disableAutoFetch; + this.msgHandler = args.msgHandler; + this.currRequestId = 0; + this._chunksNeededByRequest = new Map(); + this._requestsByChunk = new Map(); + this._promisesByRequest = new Map(); + this.progressiveDataLength = 0; + this.aborted = false; + this._loadedStreamCapability = (0, _util.createPromiseCapability)(); + } + + onLoadedStream() { + return this._loadedStreamCapability.promise; + } + + sendRequest(begin, end) { + const rangeReader = this.pdfNetworkStream.getRangeReader(begin, end); + + if (!rangeReader.isStreamingSupported) { + rangeReader.onProgress = this.onProgress.bind(this); + } + + let chunks = [], + loaded = 0; + return new Promise((resolve, reject) => { + const readChunk = chunk => { + try { + if (!chunk.done) { + const data = chunk.value; + chunks.push(data); + loaded += (0, _util.arrayByteLength)(data); + + if (rangeReader.isStreamingSupported) { + this.onProgress({ + loaded + }); + } + + rangeReader.read().then(readChunk, reject); + return; + } + + const chunkData = (0, _util.arraysToBytes)(chunks); + chunks = null; + resolve(chunkData); + } catch (e) { + reject(e); + } + }; + + rangeReader.read().then(readChunk, reject); + }).then(data => { + if (this.aborted) { + return; + } + + this.onReceiveData({ + chunk: data, + begin + }); + }); + } + + requestAllChunks() { + const missingChunks = this.stream.getMissingChunks(); + + this._requestChunks(missingChunks); + + return this._loadedStreamCapability.promise; + } + + _requestChunks(chunks) { + const requestId = this.currRequestId++; + const chunksNeeded = new Set(); + + this._chunksNeededByRequest.set(requestId, chunksNeeded); + + for (const chunk of chunks) { + if (!this.stream.hasChunk(chunk)) { + chunksNeeded.add(chunk); + } + } + + if (chunksNeeded.size === 0) { + return Promise.resolve(); + } + + const capability = (0, _util.createPromiseCapability)(); + + this._promisesByRequest.set(requestId, capability); + + const chunksToRequest = []; + + for (const chunk of chunksNeeded) { + let requestIds = this._requestsByChunk.get(chunk); + + if (!requestIds) { + requestIds = []; + + this._requestsByChunk.set(chunk, requestIds); + + chunksToRequest.push(chunk); + } + + requestIds.push(requestId); + } + + if (chunksToRequest.length > 0) { + const groupedChunksToRequest = this.groupChunks(chunksToRequest); + + for (const groupedChunk of groupedChunksToRequest) { + const begin = groupedChunk.beginChunk * this.chunkSize; + const end = Math.min(groupedChunk.endChunk * this.chunkSize, this.length); + this.sendRequest(begin, end).catch(capability.reject); + } + } + + return capability.promise.catch(reason => { + if (this.aborted) { + return; + } + + throw reason; + }); + } + + getStream() { + return this.stream; + } + + requestRange(begin, end) { + end = Math.min(end, this.length); + const beginChunk = this.getBeginChunk(begin); + const endChunk = this.getEndChunk(end); + const chunks = []; + + for (let chunk = beginChunk; chunk < endChunk; ++chunk) { + chunks.push(chunk); + } + + return this._requestChunks(chunks); + } + + requestRanges(ranges = []) { + const chunksToRequest = []; + + for (const range of ranges) { + const beginChunk = this.getBeginChunk(range.begin); + const endChunk = this.getEndChunk(range.end); + + for (let chunk = beginChunk; chunk < endChunk; ++chunk) { + if (!chunksToRequest.includes(chunk)) { + chunksToRequest.push(chunk); + } + } + } + + chunksToRequest.sort(function (a, b) { + return a - b; + }); + return this._requestChunks(chunksToRequest); + } + + groupChunks(chunks) { + const groupedChunks = []; + let beginChunk = -1; + let prevChunk = -1; + + for (let i = 0, ii = chunks.length; i < ii; ++i) { + const chunk = chunks[i]; + + if (beginChunk < 0) { + beginChunk = chunk; + } + + if (prevChunk >= 0 && prevChunk + 1 !== chunk) { + groupedChunks.push({ + beginChunk, + endChunk: prevChunk + 1 + }); + beginChunk = chunk; + } + + if (i + 1 === chunks.length) { + groupedChunks.push({ + beginChunk, + endChunk: chunk + 1 + }); + } + + prevChunk = chunk; + } + + return groupedChunks; + } + + onProgress(args) { + this.msgHandler.send("DocProgress", { + loaded: this.stream.numChunksLoaded * this.chunkSize + args.loaded, + total: this.length + }); + } + + onReceiveData(args) { + const chunk = args.chunk; + const isProgressive = args.begin === undefined; + const begin = isProgressive ? this.progressiveDataLength : args.begin; + const end = begin + chunk.byteLength; + const beginChunk = Math.floor(begin / this.chunkSize); + const endChunk = end < this.length ? Math.floor(end / this.chunkSize) : Math.ceil(end / this.chunkSize); + + if (isProgressive) { + this.stream.onReceiveProgressiveData(chunk); + this.progressiveDataLength = end; + } else { + this.stream.onReceiveData(begin, chunk); + } + + if (this.stream.isDataLoaded) { + this._loadedStreamCapability.resolve(this.stream); + } + + const loadedRequests = []; + + for (let curChunk = beginChunk; curChunk < endChunk; ++curChunk) { + const requestIds = this._requestsByChunk.get(curChunk); + + if (!requestIds) { + continue; + } + + this._requestsByChunk.delete(curChunk); + + for (const requestId of requestIds) { + const chunksNeeded = this._chunksNeededByRequest.get(requestId); + + if (chunksNeeded.has(curChunk)) { + chunksNeeded.delete(curChunk); + } + + if (chunksNeeded.size > 0) { + continue; + } + + loadedRequests.push(requestId); + } + } + + if (!this.disableAutoFetch && this._requestsByChunk.size === 0) { + let nextEmptyChunk; + + if (this.stream.numChunksLoaded === 1) { + const lastChunk = this.stream.numChunks - 1; + + if (!this.stream.hasChunk(lastChunk)) { + nextEmptyChunk = lastChunk; + } + } else { + nextEmptyChunk = this.stream.nextEmptyChunk(endChunk); + } + + if (Number.isInteger(nextEmptyChunk)) { + this._requestChunks([nextEmptyChunk]); + } + } + + for (const requestId of loadedRequests) { + const capability = this._promisesByRequest.get(requestId); + + this._promisesByRequest.delete(requestId); + + capability.resolve(); + } + + this.msgHandler.send("DocProgress", { + loaded: this.stream.numChunksLoaded * this.chunkSize, + total: this.length + }); + } + + onError(err) { + this._loadedStreamCapability.reject(err); + } + + getBeginChunk(begin) { + return Math.floor(begin / this.chunkSize); + } + + getEndChunk(end) { + return Math.floor((end - 1) / this.chunkSize) + 1; + } + + abort(reason) { + this.aborted = true; + + if (this.pdfNetworkStream) { + this.pdfNetworkStream.cancelAllRequests(reason); + } + + for (const capability of this._promisesByRequest.values()) { + capability.reject(reason); + } + } + +} + +exports.ChunkedStreamManager = ChunkedStreamManager; + +/***/ }), +/* 10 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.StringStream = exports.Stream = exports.NullStream = void 0; + +var _base_stream = __w_pdfjs_require__(7); + +var _util = __w_pdfjs_require__(2); + +class Stream extends _base_stream.BaseStream { + constructor(arrayBuffer, start, length, dict) { + super(); + this.bytes = arrayBuffer instanceof Uint8Array ? arrayBuffer : new Uint8Array(arrayBuffer); + this.start = start || 0; + this.pos = this.start; + this.end = start + length || this.bytes.length; + this.dict = dict; + } + + get length() { + return this.end - this.start; + } + + get isEmpty() { + return this.length === 0; + } + + getByte() { + if (this.pos >= this.end) { + return -1; + } + + return this.bytes[this.pos++]; + } + + getBytes(length) { + const bytes = this.bytes; + const pos = this.pos; + const strEnd = this.end; + + if (!length) { + return bytes.subarray(pos, strEnd); + } + + let end = pos + length; + + if (end > strEnd) { + end = strEnd; + } + + this.pos = end; + return bytes.subarray(pos, end); + } + + getByteRange(begin, end) { + if (begin < 0) { + begin = 0; + } + + if (end > this.end) { + end = this.end; + } + + return this.bytes.subarray(begin, end); + } + + reset() { + this.pos = this.start; + } + + moveStart() { + this.start = this.pos; + } + + makeSubStream(start, length, dict = null) { + return new Stream(this.bytes.buffer, start, length, dict); + } + +} + +exports.Stream = Stream; + +class StringStream extends Stream { + constructor(str) { + super((0, _util.stringToBytes)(str)); + } + +} + +exports.StringStream = StringStream; + +class NullStream extends Stream { + constructor() { + super(new Uint8Array(0)); + } + +} + +exports.NullStream = NullStream; + +/***/ }), +/* 11 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Page = exports.PDFDocument = void 0; + +var _annotation = __w_pdfjs_require__(12); + +var _util = __w_pdfjs_require__(2); + +var _core_utils = __w_pdfjs_require__(6); + +var _primitives = __w_pdfjs_require__(5); + +var _xfa_fonts = __w_pdfjs_require__(51); + +var _base_stream = __w_pdfjs_require__(7); + +var _crypto = __w_pdfjs_require__(67); + +var _catalog = __w_pdfjs_require__(69); + +var _cleanup_helper = __w_pdfjs_require__(71); + +var _dataset_reader = __w_pdfjs_require__(100); + +var _parser = __w_pdfjs_require__(17); + +var _stream = __w_pdfjs_require__(10); + +var _object_loader = __w_pdfjs_require__(75); + +var _operator_list = __w_pdfjs_require__(62); + +var _evaluator = __w_pdfjs_require__(15); + +var _decode_stream = __w_pdfjs_require__(19); + +var _struct_tree = __w_pdfjs_require__(74); + +var _writer = __w_pdfjs_require__(65); + +var _factory = __w_pdfjs_require__(76); + +var _xref = __w_pdfjs_require__(101); + +const DEFAULT_USER_UNIT = 1.0; +const LETTER_SIZE_MEDIABOX = [0, 0, 612, 792]; + +class Page { + constructor({ + pdfManager, + xref, + pageIndex, + pageDict, + ref, + globalIdFactory, + fontCache, + builtInCMapCache, + standardFontDataCache, + globalImageCache, + nonBlendModesSet, + xfaFactory + }) { + this.pdfManager = pdfManager; + this.pageIndex = pageIndex; + this.pageDict = pageDict; + this.xref = xref; + this.ref = ref; + this.fontCache = fontCache; + this.builtInCMapCache = builtInCMapCache; + this.standardFontDataCache = standardFontDataCache; + this.globalImageCache = globalImageCache; + this.nonBlendModesSet = nonBlendModesSet; + this.evaluatorOptions = pdfManager.evaluatorOptions; + this.resourcesPromise = null; + this.xfaFactory = xfaFactory; + const idCounters = { + obj: 0 + }; + this._localIdFactory = class extends globalIdFactory { + static createObjId() { + return `p${pageIndex}_${++idCounters.obj}`; + } + + static getPageObjId() { + return `page${ref.toString()}`; + } + + }; + } + + _getInheritableProperty(key, getArray = false) { + const value = (0, _core_utils.getInheritableProperty)({ + dict: this.pageDict, + key, + getArray, + stopWhenFound: false + }); + + if (!Array.isArray(value)) { + return value; + } + + if (value.length === 1 || !(value[0] instanceof _primitives.Dict)) { + return value[0]; + } + + return _primitives.Dict.merge({ + xref: this.xref, + dictArray: value + }); + } + + get content() { + return this.pageDict.getArray("Contents"); + } + + get resources() { + const resources = this._getInheritableProperty("Resources"); + + return (0, _util.shadow)(this, "resources", resources instanceof _primitives.Dict ? resources : _primitives.Dict.empty); + } + + _getBoundingBox(name) { + if (this.xfaData) { + return this.xfaData.bbox; + } + + const box = this._getInheritableProperty(name, true); + + if (Array.isArray(box) && box.length === 4) { + if (box[2] - box[0] !== 0 && box[3] - box[1] !== 0) { + return box; + } + + (0, _util.warn)(`Empty /${name} entry.`); + } + + return null; + } + + get mediaBox() { + return (0, _util.shadow)(this, "mediaBox", this._getBoundingBox("MediaBox") || LETTER_SIZE_MEDIABOX); + } + + get cropBox() { + return (0, _util.shadow)(this, "cropBox", this._getBoundingBox("CropBox") || this.mediaBox); + } + + get userUnit() { + let obj = this.pageDict.get("UserUnit"); + + if (typeof obj !== "number" || obj <= 0) { + obj = DEFAULT_USER_UNIT; + } + + return (0, _util.shadow)(this, "userUnit", obj); + } + + get view() { + const { + cropBox, + mediaBox + } = this; + let view; + + if (cropBox === mediaBox || (0, _util.isArrayEqual)(cropBox, mediaBox)) { + view = mediaBox; + } else { + const box = _util.Util.intersect(cropBox, mediaBox); + + if (box && box[2] - box[0] !== 0 && box[3] - box[1] !== 0) { + view = box; + } else { + (0, _util.warn)("Empty /CropBox and /MediaBox intersection."); + } + } + + return (0, _util.shadow)(this, "view", view || mediaBox); + } + + get rotate() { + let rotate = this._getInheritableProperty("Rotate") || 0; + + if (rotate % 90 !== 0) { + rotate = 0; + } else if (rotate >= 360) { + rotate %= 360; + } else if (rotate < 0) { + rotate = (rotate % 360 + 360) % 360; + } + + return (0, _util.shadow)(this, "rotate", rotate); + } + + _onSubStreamError(handler, reason, objId) { + if (this.evaluatorOptions.ignoreErrors) { + handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorContentSubStream + }); + (0, _util.warn)(`getContentStream - ignoring sub-stream (${objId}): "${reason}".`); + return; + } + + throw reason; + } + + getContentStream(handler) { + return this.pdfManager.ensure(this, "content").then(content => { + if (content instanceof _base_stream.BaseStream) { + return content; + } + + if (Array.isArray(content)) { + return new _decode_stream.StreamsSequenceStream(content, this._onSubStreamError.bind(this, handler)); + } + + return new _stream.NullStream(); + }); + } + + get xfaData() { + return (0, _util.shadow)(this, "xfaData", this.xfaFactory ? { + bbox: this.xfaFactory.getBoundingBox(this.pageIndex) + } : null); + } + + async saveNewAnnotations(handler, task, annotations) { + if (this.xfaFactory) { + throw new Error("XFA: Cannot save new annotations."); + } + + const partialEvaluator = new _evaluator.PartialEvaluator({ + xref: this.xref, + handler, + pageIndex: this.pageIndex, + idFactory: this._localIdFactory, + fontCache: this.fontCache, + builtInCMapCache: this.builtInCMapCache, + standardFontDataCache: this.standardFontDataCache, + globalImageCache: this.globalImageCache, + options: this.evaluatorOptions + }); + const pageDict = this.pageDict; + const annotationsArray = this.annotations.slice(); + const newData = await _annotation.AnnotationFactory.saveNewAnnotations(partialEvaluator, task, annotations); + + for (const { + ref + } of newData.annotations) { + annotationsArray.push(ref); + } + + const savedDict = pageDict.get("Annots"); + pageDict.set("Annots", annotationsArray); + const buffer = []; + let transform = null; + + if (this.xref.encrypt) { + transform = this.xref.encrypt.createCipherTransform(this.ref.num, this.ref.gen); + } + + (0, _writer.writeObject)(this.ref, pageDict, buffer, transform); + + if (savedDict) { + pageDict.set("Annots", savedDict); + } + + const objects = newData.dependencies; + objects.push({ + ref: this.ref, + data: buffer.join("") + }, ...newData.annotations); + return objects; + } + + save(handler, task, annotationStorage) { + const partialEvaluator = new _evaluator.PartialEvaluator({ + xref: this.xref, + handler, + pageIndex: this.pageIndex, + idFactory: this._localIdFactory, + fontCache: this.fontCache, + builtInCMapCache: this.builtInCMapCache, + standardFontDataCache: this.standardFontDataCache, + globalImageCache: this.globalImageCache, + options: this.evaluatorOptions + }); + return this._parsedAnnotations.then(function (annotations) { + const newRefsPromises = []; + + for (const annotation of annotations) { + if (!annotation.mustBePrinted(annotationStorage)) { + continue; + } + + newRefsPromises.push(annotation.save(partialEvaluator, task, annotationStorage).catch(function (reason) { + (0, _util.warn)("save - ignoring annotation data during " + `"${task.name}" task: "${reason}".`); + return null; + })); + } + + return Promise.all(newRefsPromises).then(function (newRefs) { + return newRefs.filter(newRef => !!newRef); + }); + }); + } + + loadResources(keys) { + if (!this.resourcesPromise) { + this.resourcesPromise = this.pdfManager.ensure(this, "resources"); + } + + return this.resourcesPromise.then(() => { + const objectLoader = new _object_loader.ObjectLoader(this.resources, keys, this.xref); + return objectLoader.load(); + }); + } + + getOperatorList({ + handler, + sink, + task, + intent, + cacheKey, + annotationStorage = null + }) { + const contentStreamPromise = this.getContentStream(handler); + const resourcesPromise = this.loadResources(["ColorSpace", "ExtGState", "Font", "Pattern", "Properties", "Shading", "XObject"]); + const partialEvaluator = new _evaluator.PartialEvaluator({ + xref: this.xref, + handler, + pageIndex: this.pageIndex, + idFactory: this._localIdFactory, + fontCache: this.fontCache, + builtInCMapCache: this.builtInCMapCache, + standardFontDataCache: this.standardFontDataCache, + globalImageCache: this.globalImageCache, + options: this.evaluatorOptions + }); + const newAnnotationsByPage = !this.xfaFactory ? (0, _core_utils.getNewAnnotationsMap)(annotationStorage) : null; + let newAnnotationsPromise = Promise.resolve(null); + + if (newAnnotationsByPage) { + const newAnnotations = newAnnotationsByPage.get(this.pageIndex); + + if (newAnnotations) { + newAnnotationsPromise = _annotation.AnnotationFactory.printNewAnnotations(partialEvaluator, task, newAnnotations); + } + } + + const dataPromises = Promise.all([contentStreamPromise, resourcesPromise]); + const pageListPromise = dataPromises.then(([contentStream]) => { + const opList = new _operator_list.OperatorList(intent, sink); + handler.send("StartRenderPage", { + transparency: partialEvaluator.hasBlendModes(this.resources, this.nonBlendModesSet), + pageIndex: this.pageIndex, + cacheKey + }); + return partialEvaluator.getOperatorList({ + stream: contentStream, + task, + resources: this.resources, + operatorList: opList + }).then(function () { + return opList; + }); + }); + return Promise.all([pageListPromise, this._parsedAnnotations, newAnnotationsPromise]).then(function ([pageOpList, annotations, newAnnotations]) { + if (newAnnotations) { + annotations = annotations.concat(newAnnotations); + } + + if (annotations.length === 0 || intent & _util.RenderingIntentFlag.ANNOTATIONS_DISABLE) { + pageOpList.flush(true); + return { + length: pageOpList.totalLength + }; + } + + const renderForms = !!(intent & _util.RenderingIntentFlag.ANNOTATIONS_FORMS), + intentAny = !!(intent & _util.RenderingIntentFlag.ANY), + intentDisplay = !!(intent & _util.RenderingIntentFlag.DISPLAY), + intentPrint = !!(intent & _util.RenderingIntentFlag.PRINT); + const opListPromises = []; + + for (const annotation of annotations) { + if (intentAny || intentDisplay && annotation.mustBeViewed(annotationStorage) || intentPrint && annotation.mustBePrinted(annotationStorage)) { + opListPromises.push(annotation.getOperatorList(partialEvaluator, task, intent, renderForms, annotationStorage).catch(function (reason) { + (0, _util.warn)("getOperatorList - ignoring annotation data during " + `"${task.name}" task: "${reason}".`); + return null; + })); + } + } + + return Promise.all(opListPromises).then(function (opLists) { + let form = false, + canvas = false; + + for (const { + opList, + separateForm, + separateCanvas + } of opLists) { + pageOpList.addOpList(opList); + + if (separateForm) { + form = separateForm; + } + + if (separateCanvas) { + canvas = separateCanvas; + } + } + + pageOpList.flush(true, { + form, + canvas + }); + return { + length: pageOpList.totalLength + }; + }); + }); + } + + extractTextContent({ + handler, + task, + includeMarkedContent, + sink, + combineTextItems + }) { + const contentStreamPromise = this.getContentStream(handler); + const resourcesPromise = this.loadResources(["ExtGState", "Font", "Properties", "XObject"]); + const dataPromises = Promise.all([contentStreamPromise, resourcesPromise]); + return dataPromises.then(([contentStream]) => { + const partialEvaluator = new _evaluator.PartialEvaluator({ + xref: this.xref, + handler, + pageIndex: this.pageIndex, + idFactory: this._localIdFactory, + fontCache: this.fontCache, + builtInCMapCache: this.builtInCMapCache, + standardFontDataCache: this.standardFontDataCache, + globalImageCache: this.globalImageCache, + options: this.evaluatorOptions + }); + return partialEvaluator.getTextContent({ + stream: contentStream, + task, + resources: this.resources, + includeMarkedContent, + combineTextItems, + sink, + viewBox: this.view + }); + }); + } + + async getStructTree() { + const structTreeRoot = await this.pdfManager.ensureCatalog("structTreeRoot"); + + if (!structTreeRoot) { + return null; + } + + const structTree = await this.pdfManager.ensure(this, "_parseStructTree", [structTreeRoot]); + return structTree.serializable; + } + + _parseStructTree(structTreeRoot) { + const tree = new _struct_tree.StructTreePage(structTreeRoot, this.pageDict); + tree.parse(); + return tree; + } + + async getAnnotationsData(handler, task, intent) { + const annotations = await this._parsedAnnotations; + + if (annotations.length === 0) { + return []; + } + + const textContentPromises = []; + const annotationsData = []; + let partialEvaluator; + const intentAny = !!(intent & _util.RenderingIntentFlag.ANY), + intentDisplay = !!(intent & _util.RenderingIntentFlag.DISPLAY), + intentPrint = !!(intent & _util.RenderingIntentFlag.PRINT); + + for (const annotation of annotations) { + const isVisible = intentAny || intentDisplay && annotation.viewable; + + if (isVisible || intentPrint && annotation.printable) { + annotationsData.push(annotation.data); + } + + if (annotation.hasTextContent && isVisible) { + if (!partialEvaluator) { + partialEvaluator = new _evaluator.PartialEvaluator({ + xref: this.xref, + handler, + pageIndex: this.pageIndex, + idFactory: this._localIdFactory, + fontCache: this.fontCache, + builtInCMapCache: this.builtInCMapCache, + standardFontDataCache: this.standardFontDataCache, + globalImageCache: this.globalImageCache, + options: this.evaluatorOptions + }); + } + + textContentPromises.push(annotation.extractTextContent(partialEvaluator, task, this.view).catch(function (reason) { + (0, _util.warn)(`getAnnotationsData - ignoring textContent during "${task.name}" task: "${reason}".`); + })); + } + } + + await Promise.all(textContentPromises); + return annotationsData; + } + + get annotations() { + const annots = this._getInheritableProperty("Annots"); + + return (0, _util.shadow)(this, "annotations", Array.isArray(annots) ? annots : []); + } + + get _parsedAnnotations() { + const parsedAnnotations = this.pdfManager.ensure(this, "annotations").then(() => { + const annotationPromises = []; + + for (const annotationRef of this.annotations) { + annotationPromises.push(_annotation.AnnotationFactory.create(this.xref, annotationRef, this.pdfManager, this._localIdFactory, false).catch(function (reason) { + (0, _util.warn)(`_parsedAnnotations: "${reason}".`); + return null; + })); + } + + return Promise.all(annotationPromises).then(function (annotations) { + if (annotations.length === 0) { + return annotations; + } + + const sortedAnnotations = []; + let popupAnnotations; + + for (const annotation of annotations) { + if (!annotation) { + continue; + } + + if (annotation instanceof _annotation.PopupAnnotation) { + if (!popupAnnotations) { + popupAnnotations = []; + } + + popupAnnotations.push(annotation); + continue; + } + + sortedAnnotations.push(annotation); + } + + if (popupAnnotations) { + sortedAnnotations.push(...popupAnnotations); + } + + return sortedAnnotations; + }); + }); + return (0, _util.shadow)(this, "_parsedAnnotations", parsedAnnotations); + } + + get jsActions() { + const actions = (0, _core_utils.collectActions)(this.xref, this.pageDict, _util.PageActionEventType); + return (0, _util.shadow)(this, "jsActions", actions); + } + +} + +exports.Page = Page; +const PDF_HEADER_SIGNATURE = new Uint8Array([0x25, 0x50, 0x44, 0x46, 0x2d]); +const STARTXREF_SIGNATURE = new Uint8Array([0x73, 0x74, 0x61, 0x72, 0x74, 0x78, 0x72, 0x65, 0x66]); +const ENDOBJ_SIGNATURE = new Uint8Array([0x65, 0x6e, 0x64, 0x6f, 0x62, 0x6a]); +const FINGERPRINT_FIRST_BYTES = 1024; +const EMPTY_FINGERPRINT = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; +const PDF_HEADER_VERSION_REGEXP = /^[1-9]\.\d$/; + +function find(stream, signature, limit = 1024, backwards = false) { + const signatureLength = signature.length; + const scanBytes = stream.peekBytes(limit); + const scanLength = scanBytes.length - signatureLength; + + if (scanLength <= 0) { + return false; + } + + if (backwards) { + const signatureEnd = signatureLength - 1; + let pos = scanBytes.length - 1; + + while (pos >= signatureEnd) { + let j = 0; + + while (j < signatureLength && scanBytes[pos - j] === signature[signatureEnd - j]) { + j++; + } + + if (j >= signatureLength) { + stream.pos += pos - signatureEnd; + return true; + } + + pos--; + } + } else { + let pos = 0; + + while (pos <= scanLength) { + let j = 0; + + while (j < signatureLength && scanBytes[pos + j] === signature[j]) { + j++; + } + + if (j >= signatureLength) { + stream.pos += pos; + return true; + } + + pos++; + } + } + + return false; +} + +class PDFDocument { + constructor(pdfManager, stream) { + if (stream.length <= 0) { + throw new _util.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes."); + } + + this.pdfManager = pdfManager; + this.stream = stream; + this.xref = new _xref.XRef(stream, pdfManager); + this._pagePromises = new Map(); + this._version = null; + const idCounters = { + font: 0 + }; + this._globalIdFactory = class { + static getDocId() { + return `g_${pdfManager.docId}`; + } + + static createFontId() { + return `f${++idCounters.font}`; + } + + static createObjId() { + (0, _util.unreachable)("Abstract method `createObjId` called."); + } + + static getPageObjId() { + (0, _util.unreachable)("Abstract method `getPageObjId` called."); + } + + }; + } + + parse(recoveryMode) { + this.xref.parse(recoveryMode); + this.catalog = new _catalog.Catalog(this.pdfManager, this.xref); + + if (this.catalog.version) { + this._version = this.catalog.version; + } + } + + get linearization() { + let linearization = null; + + try { + linearization = _parser.Linearization.create(this.stream); + } catch (err) { + if (err instanceof _core_utils.MissingDataException) { + throw err; + } + + (0, _util.info)(err); + } + + return (0, _util.shadow)(this, "linearization", linearization); + } + + get startXRef() { + const stream = this.stream; + let startXRef = 0; + + if (this.linearization) { + stream.reset(); + + if (find(stream, ENDOBJ_SIGNATURE)) { + startXRef = stream.pos + 6 - stream.start; + } + } else { + const step = 1024; + const startXRefLength = STARTXREF_SIGNATURE.length; + let found = false, + pos = stream.end; + + while (!found && pos > 0) { + pos -= step - startXRefLength; + + if (pos < 0) { + pos = 0; + } + + stream.pos = pos; + found = find(stream, STARTXREF_SIGNATURE, step, true); + } + + if (found) { + stream.skip(9); + let ch; + + do { + ch = stream.getByte(); + } while ((0, _core_utils.isWhiteSpace)(ch)); + + let str = ""; + + while (ch >= 0x20 && ch <= 0x39) { + str += String.fromCharCode(ch); + ch = stream.getByte(); + } + + startXRef = parseInt(str, 10); + + if (isNaN(startXRef)) { + startXRef = 0; + } + } + } + + return (0, _util.shadow)(this, "startXRef", startXRef); + } + + checkHeader() { + const stream = this.stream; + stream.reset(); + + if (!find(stream, PDF_HEADER_SIGNATURE)) { + return; + } + + stream.moveStart(); + const MAX_PDF_VERSION_LENGTH = 12; + let version = "", + ch; + + while ((ch = stream.getByte()) > 0x20) { + if (version.length >= MAX_PDF_VERSION_LENGTH) { + break; + } + + version += String.fromCharCode(ch); + } + + if (!this._version) { + this._version = version.substring(5); + } + } + + parseStartXRef() { + this.xref.setStartXRef(this.startXRef); + } + + get numPages() { + let num = 0; + + if (this.catalog.hasActualNumPages) { + num = this.catalog.numPages; + } else if (this.xfaFactory) { + num = this.xfaFactory.getNumPages(); + } else if (this.linearization) { + num = this.linearization.numPages; + } else { + num = this.catalog.numPages; + } + + return (0, _util.shadow)(this, "numPages", num); + } + + _hasOnlyDocumentSignatures(fields, recursionDepth = 0) { + const RECURSION_LIMIT = 10; + + if (!Array.isArray(fields)) { + return false; + } + + return fields.every(field => { + field = this.xref.fetchIfRef(field); + + if (!(field instanceof _primitives.Dict)) { + return false; + } + + if (field.has("Kids")) { + if (++recursionDepth > RECURSION_LIMIT) { + (0, _util.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"); + return false; + } + + return this._hasOnlyDocumentSignatures(field.get("Kids"), recursionDepth); + } + + const isSignature = (0, _primitives.isName)(field.get("FT"), "Sig"); + const rectangle = field.get("Rect"); + const isInvisible = Array.isArray(rectangle) && rectangle.every(value => value === 0); + return isSignature && isInvisible; + }); + } + + get _xfaStreams() { + const acroForm = this.catalog.acroForm; + + if (!acroForm) { + return null; + } + + const xfa = acroForm.get("XFA"); + const entries = { + "xdp:xdp": "", + template: "", + datasets: "", + config: "", + connectionSet: "", + localeSet: "", + stylesheet: "", + "/xdp:xdp": "" + }; + + if (xfa instanceof _base_stream.BaseStream && !xfa.isEmpty) { + entries["xdp:xdp"] = xfa; + return entries; + } + + if (!Array.isArray(xfa) || xfa.length === 0) { + return null; + } + + for (let i = 0, ii = xfa.length; i < ii; i += 2) { + let name; + + if (i === 0) { + name = "xdp:xdp"; + } else if (i === ii - 2) { + name = "/xdp:xdp"; + } else { + name = xfa[i]; + } + + if (!entries.hasOwnProperty(name)) { + continue; + } + + const data = this.xref.fetchIfRef(xfa[i + 1]); + + if (!(data instanceof _base_stream.BaseStream) || data.isEmpty) { + continue; + } + + entries[name] = data; + } + + return entries; + } + + get xfaDatasets() { + const streams = this._xfaStreams; + + if (!streams) { + return (0, _util.shadow)(this, "xfaDatasets", null); + } + + for (const key of ["datasets", "xdp:xdp"]) { + const stream = streams[key]; + + if (!stream) { + continue; + } + + try { + const str = (0, _util.stringToUTF8String)(stream.getString()); + const data = { + [key]: str + }; + return (0, _util.shadow)(this, "xfaDatasets", new _dataset_reader.DatasetReader(data)); + } catch (_) { + (0, _util.warn)("XFA - Invalid utf-8 string."); + break; + } + } + + return (0, _util.shadow)(this, "xfaDatasets", null); + } + + get xfaData() { + const streams = this._xfaStreams; + + if (!streams) { + return null; + } + + const data = Object.create(null); + + for (const [key, stream] of Object.entries(streams)) { + if (!stream) { + continue; + } + + try { + data[key] = (0, _util.stringToUTF8String)(stream.getString()); + } catch (_) { + (0, _util.warn)("XFA - Invalid utf-8 string."); + return null; + } + } + + return data; + } + + get xfaFactory() { + let data; + + if (this.pdfManager.enableXfa && this.catalog.needsRendering && this.formInfo.hasXfa && !this.formInfo.hasAcroForm) { + data = this.xfaData; + } + + return (0, _util.shadow)(this, "xfaFactory", data ? new _factory.XFAFactory(data) : null); + } + + get isPureXfa() { + return this.xfaFactory ? this.xfaFactory.isValid() : false; + } + + get htmlForXfa() { + return this.xfaFactory ? this.xfaFactory.getPages() : null; + } + + async loadXfaImages() { + const xfaImagesDict = await this.pdfManager.ensureCatalog("xfaImages"); + + if (!xfaImagesDict) { + return; + } + + const keys = xfaImagesDict.getKeys(); + const objectLoader = new _object_loader.ObjectLoader(xfaImagesDict, keys, this.xref); + await objectLoader.load(); + const xfaImages = new Map(); + + for (const key of keys) { + const stream = xfaImagesDict.get(key); + + if (stream instanceof _base_stream.BaseStream) { + xfaImages.set(key, stream.getBytes()); + } + } + + this.xfaFactory.setImages(xfaImages); + } + + async loadXfaFonts(handler, task) { + const acroForm = await this.pdfManager.ensureCatalog("acroForm"); + + if (!acroForm) { + return; + } + + const resources = await acroForm.getAsync("DR"); + + if (!(resources instanceof _primitives.Dict)) { + return; + } + + const objectLoader = new _object_loader.ObjectLoader(resources, ["Font"], this.xref); + await objectLoader.load(); + const fontRes = resources.get("Font"); + + if (!(fontRes instanceof _primitives.Dict)) { + return; + } + + const options = Object.assign(Object.create(null), this.pdfManager.evaluatorOptions); + options.useSystemFonts = false; + const partialEvaluator = new _evaluator.PartialEvaluator({ + xref: this.xref, + handler, + pageIndex: -1, + idFactory: this._globalIdFactory, + fontCache: this.catalog.fontCache, + builtInCMapCache: this.catalog.builtInCMapCache, + standardFontDataCache: this.catalog.standardFontDataCache, + options + }); + const operatorList = new _operator_list.OperatorList(); + const pdfFonts = []; + const initialState = { + get font() { + return pdfFonts.at(-1); + }, + + set font(font) { + pdfFonts.push(font); + }, + + clone() { + return this; + } + + }; + const fonts = new Map(); + fontRes.forEach((fontName, font) => { + fonts.set(fontName, font); + }); + const promises = []; + + for (const [fontName, font] of fonts) { + const descriptor = font.get("FontDescriptor"); + + if (!(descriptor instanceof _primitives.Dict)) { + continue; + } + + let fontFamily = descriptor.get("FontFamily"); + fontFamily = fontFamily.replace(/[ ]+(\d)/g, "$1"); + const fontWeight = descriptor.get("FontWeight"); + const italicAngle = -descriptor.get("ItalicAngle"); + const cssFontInfo = { + fontFamily, + fontWeight, + italicAngle + }; + + if (!(0, _core_utils.validateCSSFont)(cssFontInfo)) { + continue; + } + + promises.push(partialEvaluator.handleSetFont(resources, [_primitives.Name.get(fontName), 1], null, operatorList, task, initialState, null, cssFontInfo).catch(function (reason) { + (0, _util.warn)(`loadXfaFonts: "${reason}".`); + return null; + })); + } + + await Promise.all(promises); + const missingFonts = this.xfaFactory.setFonts(pdfFonts); + + if (!missingFonts) { + return; + } + + options.ignoreErrors = true; + promises.length = 0; + pdfFonts.length = 0; + const reallyMissingFonts = new Set(); + + for (const missing of missingFonts) { + if (!(0, _xfa_fonts.getXfaFontName)(`${missing}-Regular`)) { + reallyMissingFonts.add(missing); + } + } + + if (reallyMissingFonts.size) { + missingFonts.push("PdfJS-Fallback"); + } + + for (const missing of missingFonts) { + if (reallyMissingFonts.has(missing)) { + continue; + } + + for (const fontInfo of [{ + name: "Regular", + fontWeight: 400, + italicAngle: 0 + }, { + name: "Bold", + fontWeight: 700, + italicAngle: 0 + }, { + name: "Italic", + fontWeight: 400, + italicAngle: 12 + }, { + name: "BoldItalic", + fontWeight: 700, + italicAngle: 12 + }]) { + const name = `${missing}-${fontInfo.name}`; + const dict = (0, _xfa_fonts.getXfaFontDict)(name); + promises.push(partialEvaluator.handleSetFont(resources, [_primitives.Name.get(name), 1], null, operatorList, task, initialState, dict, { + fontFamily: missing, + fontWeight: fontInfo.fontWeight, + italicAngle: fontInfo.italicAngle + }).catch(function (reason) { + (0, _util.warn)(`loadXfaFonts: "${reason}".`); + return null; + })); + } + } + + await Promise.all(promises); + this.xfaFactory.appendFonts(pdfFonts, reallyMissingFonts); + } + + async serializeXfaData(annotationStorage) { + return this.xfaFactory ? this.xfaFactory.serializeData(annotationStorage) : null; + } + + get formInfo() { + const formInfo = { + hasFields: false, + hasAcroForm: false, + hasXfa: false, + hasSignatures: false + }; + const acroForm = this.catalog.acroForm; + + if (!acroForm) { + return (0, _util.shadow)(this, "formInfo", formInfo); + } + + try { + const fields = acroForm.get("Fields"); + const hasFields = Array.isArray(fields) && fields.length > 0; + formInfo.hasFields = hasFields; + const xfa = acroForm.get("XFA"); + formInfo.hasXfa = Array.isArray(xfa) && xfa.length > 0 || xfa instanceof _base_stream.BaseStream && !xfa.isEmpty; + const sigFlags = acroForm.get("SigFlags"); + const hasSignatures = !!(sigFlags & 0x1); + + const hasOnlyDocumentSignatures = hasSignatures && this._hasOnlyDocumentSignatures(fields); + + formInfo.hasAcroForm = hasFields && !hasOnlyDocumentSignatures; + formInfo.hasSignatures = hasSignatures; + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.warn)(`Cannot fetch form information: "${ex}".`); + } + + return (0, _util.shadow)(this, "formInfo", formInfo); + } + + get documentInfo() { + let version = this._version; + + if (typeof version !== "string" || !PDF_HEADER_VERSION_REGEXP.test(version)) { + (0, _util.warn)(`Invalid PDF header version number: ${version}`); + version = null; + } + + const docInfo = { + PDFFormatVersion: version, + Language: this.catalog.lang, + EncryptFilterName: this.xref.encrypt ? this.xref.encrypt.filterName : null, + IsLinearized: !!this.linearization, + IsAcroFormPresent: this.formInfo.hasAcroForm, + IsXFAPresent: this.formInfo.hasXfa, + IsCollectionPresent: !!this.catalog.collection, + IsSignaturesPresent: this.formInfo.hasSignatures + }; + let infoDict; + + try { + infoDict = this.xref.trailer.get("Info"); + } catch (err) { + if (err instanceof _core_utils.MissingDataException) { + throw err; + } + + (0, _util.info)("The document information dictionary is invalid."); + } + + if (!(infoDict instanceof _primitives.Dict)) { + return (0, _util.shadow)(this, "documentInfo", docInfo); + } + + for (const key of infoDict.getKeys()) { + const value = infoDict.get(key); + + switch (key) { + case "Title": + case "Author": + case "Subject": + case "Keywords": + case "Creator": + case "Producer": + case "CreationDate": + case "ModDate": + if (typeof value === "string") { + docInfo[key] = (0, _util.stringToPDFString)(value); + continue; + } + + break; + + case "Trapped": + if (value instanceof _primitives.Name) { + docInfo[key] = value; + continue; + } + + break; + + default: + let customValue; + + switch (typeof value) { + case "string": + customValue = (0, _util.stringToPDFString)(value); + break; + + case "number": + case "boolean": + customValue = value; + break; + + default: + if (value instanceof _primitives.Name) { + customValue = value; + } + + break; + } + + if (customValue === undefined) { + (0, _util.warn)(`Bad value, for custom key "${key}", in Info: ${value}.`); + continue; + } + + if (!docInfo.Custom) { + docInfo.Custom = Object.create(null); + } + + docInfo.Custom[key] = customValue; + continue; + } + + (0, _util.warn)(`Bad value, for key "${key}", in Info: ${value}.`); + } + + return (0, _util.shadow)(this, "documentInfo", docInfo); + } + + get fingerprints() { + function validate(data) { + return typeof data === "string" && data.length > 0 && data !== EMPTY_FINGERPRINT; + } + + function hexString(hash) { + const buf = []; + + for (let i = 0, ii = hash.length; i < ii; i++) { + const hex = hash[i].toString(16); + buf.push(hex.padStart(2, "0")); + } + + return buf.join(""); + } + + const idArray = this.xref.trailer.get("ID"); + let hashOriginal, hashModified; + + if (Array.isArray(idArray) && validate(idArray[0])) { + hashOriginal = (0, _util.stringToBytes)(idArray[0]); + + if (idArray[1] !== idArray[0] && validate(idArray[1])) { + hashModified = (0, _util.stringToBytes)(idArray[1]); + } + } else { + hashOriginal = (0, _crypto.calculateMD5)(this.stream.getByteRange(0, FINGERPRINT_FIRST_BYTES), 0, FINGERPRINT_FIRST_BYTES); + } + + return (0, _util.shadow)(this, "fingerprints", [hexString(hashOriginal), hashModified ? hexString(hashModified) : null]); + } + + async _getLinearizationPage(pageIndex) { + const { + catalog, + linearization, + xref + } = this; + + const ref = _primitives.Ref.get(linearization.objectNumberFirst, 0); + + try { + const obj = await xref.fetchAsync(ref); + + if (obj instanceof _primitives.Dict) { + let type = obj.getRaw("Type"); + + if (type instanceof _primitives.Ref) { + type = await xref.fetchAsync(type); + } + + if ((0, _primitives.isName)(type, "Page") || !obj.has("Type") && !obj.has("Kids")) { + if (!catalog.pageKidsCountCache.has(ref)) { + catalog.pageKidsCountCache.put(ref, 1); + } + + if (!catalog.pageIndexCache.has(ref)) { + catalog.pageIndexCache.put(ref, 0); + } + + return [obj, ref]; + } + } + + throw new _util.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary."); + } catch (reason) { + (0, _util.warn)(`_getLinearizationPage: "${reason.message}".`); + return catalog.getPageDict(pageIndex); + } + } + + getPage(pageIndex) { + const cachedPromise = this._pagePromises.get(pageIndex); + + if (cachedPromise) { + return cachedPromise; + } + + const { + catalog, + linearization, + xfaFactory + } = this; + let promise; + + if (xfaFactory) { + promise = Promise.resolve([_primitives.Dict.empty, null]); + } else if (linearization && linearization.pageFirst === pageIndex) { + promise = this._getLinearizationPage(pageIndex); + } else { + promise = catalog.getPageDict(pageIndex); + } + + promise = promise.then(([pageDict, ref]) => { + return new Page({ + pdfManager: this.pdfManager, + xref: this.xref, + pageIndex, + pageDict, + ref, + globalIdFactory: this._globalIdFactory, + fontCache: catalog.fontCache, + builtInCMapCache: catalog.builtInCMapCache, + standardFontDataCache: catalog.standardFontDataCache, + globalImageCache: catalog.globalImageCache, + nonBlendModesSet: catalog.nonBlendModesSet, + xfaFactory + }); + }); + + this._pagePromises.set(pageIndex, promise); + + return promise; + } + + async checkFirstPage(recoveryMode = false) { + if (recoveryMode) { + return; + } + + try { + await this.getPage(0); + } catch (reason) { + if (reason instanceof _core_utils.XRefEntryException) { + this._pagePromises.delete(0); + + await this.cleanup(); + throw new _core_utils.XRefParseException(); + } + } + } + + async checkLastPage(recoveryMode = false) { + const { + catalog, + pdfManager + } = this; + catalog.setActualNumPages(); + let numPages; + + try { + await Promise.all([pdfManager.ensureDoc("xfaFactory"), pdfManager.ensureDoc("linearization"), pdfManager.ensureCatalog("numPages")]); + + if (this.xfaFactory) { + return; + } else if (this.linearization) { + numPages = this.linearization.numPages; + } else { + numPages = catalog.numPages; + } + + if (!Number.isInteger(numPages)) { + throw new _util.FormatError("Page count is not an integer."); + } else if (numPages <= 1) { + return; + } + + await this.getPage(numPages - 1); + } catch (reason) { + this._pagePromises.delete(numPages - 1); + + await this.cleanup(); + + if (reason instanceof _core_utils.XRefEntryException && !recoveryMode) { + throw new _core_utils.XRefParseException(); + } + + (0, _util.warn)(`checkLastPage - invalid /Pages tree /Count: ${numPages}.`); + let pagesTree; + + try { + pagesTree = await catalog.getAllPageDicts(recoveryMode); + } catch (reasonAll) { + if (reasonAll instanceof _core_utils.XRefEntryException && !recoveryMode) { + throw new _core_utils.XRefParseException(); + } + + catalog.setActualNumPages(1); + return; + } + + for (const [pageIndex, [pageDict, ref]] of pagesTree) { + let promise; + + if (pageDict instanceof Error) { + promise = Promise.reject(pageDict); + promise.catch(() => {}); + } else { + promise = Promise.resolve(new Page({ + pdfManager, + xref: this.xref, + pageIndex, + pageDict, + ref, + globalIdFactory: this._globalIdFactory, + fontCache: catalog.fontCache, + builtInCMapCache: catalog.builtInCMapCache, + standardFontDataCache: catalog.standardFontDataCache, + globalImageCache: catalog.globalImageCache, + nonBlendModesSet: catalog.nonBlendModesSet, + xfaFactory: null + })); + } + + this._pagePromises.set(pageIndex, promise); + } + + catalog.setActualNumPages(pagesTree.size); + } + } + + fontFallback(id, handler) { + return this.catalog.fontFallback(id, handler); + } + + async cleanup(manuallyTriggered = false) { + return this.catalog ? this.catalog.cleanup(manuallyTriggered) : (0, _cleanup_helper.clearGlobalCaches)(); + } + + _collectFieldObjects(name, fieldRef, promises) { + const field = this.xref.fetchIfRef(fieldRef); + + if (field.has("T")) { + const partName = (0, _util.stringToPDFString)(field.get("T")); + + if (name === "") { + name = partName; + } else { + name = `${name}.${partName}`; + } + } + + if (!promises.has(name)) { + promises.set(name, []); + } + + promises.get(name).push(_annotation.AnnotationFactory.create(this.xref, fieldRef, this.pdfManager, this._localIdFactory, true).then(annotation => annotation && annotation.getFieldObject()).catch(function (reason) { + (0, _util.warn)(`_collectFieldObjects: "${reason}".`); + return null; + })); + + if (field.has("Kids")) { + const kids = field.get("Kids"); + + for (const kid of kids) { + this._collectFieldObjects(name, kid, promises); + } + } + } + + get fieldObjects() { + if (!this.formInfo.hasFields) { + return (0, _util.shadow)(this, "fieldObjects", Promise.resolve(null)); + } + + const allFields = Object.create(null); + const fieldPromises = new Map(); + + for (const fieldRef of this.catalog.acroForm.get("Fields")) { + this._collectFieldObjects("", fieldRef, fieldPromises); + } + + const allPromises = []; + + for (const [name, promises] of fieldPromises) { + allPromises.push(Promise.all(promises).then(fields => { + fields = fields.filter(field => !!field); + + if (fields.length > 0) { + allFields[name] = fields; + } + })); + } + + return (0, _util.shadow)(this, "fieldObjects", Promise.all(allPromises).then(() => allFields)); + } + + get hasJSActions() { + const promise = this.pdfManager.ensureDoc("_parseHasJSActions"); + return (0, _util.shadow)(this, "hasJSActions", promise); + } + + async _parseHasJSActions() { + const [catalogJsActions, fieldObjects] = await Promise.all([this.pdfManager.ensureCatalog("jsActions"), this.pdfManager.ensureDoc("fieldObjects")]); + + if (catalogJsActions) { + return true; + } + + if (fieldObjects) { + return Object.values(fieldObjects).some(fieldObject => fieldObject.some(object => object.actions !== null)); + } + + return false; + } + + get calculationOrderIds() { + const acroForm = this.catalog.acroForm; + + if (!acroForm || !acroForm.has("CO")) { + return (0, _util.shadow)(this, "calculationOrderIds", null); + } + + const calculationOrder = acroForm.get("CO"); + + if (!Array.isArray(calculationOrder) || calculationOrder.length === 0) { + return (0, _util.shadow)(this, "calculationOrderIds", null); + } + + const ids = []; + + for (const id of calculationOrder) { + if (id instanceof _primitives.Ref) { + ids.push(id.toString()); + } + } + + if (ids.length === 0) { + return (0, _util.shadow)(this, "calculationOrderIds", null); + } + + return (0, _util.shadow)(this, "calculationOrderIds", ids); + } + +} + +exports.PDFDocument = PDFDocument; + +/***/ }), +/* 12 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PopupAnnotation = exports.MarkupAnnotation = exports.AnnotationFactory = exports.AnnotationBorderStyle = exports.Annotation = void 0; +exports.getQuadPoints = getQuadPoints; + +var _util = __w_pdfjs_require__(2); + +var _core_utils = __w_pdfjs_require__(6); + +var _default_appearance = __w_pdfjs_require__(13); + +var _primitives = __w_pdfjs_require__(5); + +var _writer = __w_pdfjs_require__(65); + +var _base_stream = __w_pdfjs_require__(7); + +var _bidi = __w_pdfjs_require__(60); + +var _catalog = __w_pdfjs_require__(69); + +var _colorspace = __w_pdfjs_require__(14); + +var _file_spec = __w_pdfjs_require__(72); + +var _object_loader = __w_pdfjs_require__(75); + +var _operator_list = __w_pdfjs_require__(62); + +var _stream = __w_pdfjs_require__(10); + +var _factory = __w_pdfjs_require__(76); + +class AnnotationFactory { + static create(xref, ref, pdfManager, idFactory, collectFields) { + return Promise.all([pdfManager.ensureCatalog("acroForm"), pdfManager.ensureCatalog("baseUrl"), pdfManager.ensureDoc("xfaDatasets"), collectFields ? this._getPageIndex(xref, ref, pdfManager) : -1]).then(([acroForm, baseUrl, xfaDatasets, pageIndex]) => pdfManager.ensure(this, "_create", [xref, ref, pdfManager, idFactory, acroForm, xfaDatasets, collectFields, pageIndex])); + } + + static _create(xref, ref, pdfManager, idFactory, acroForm, xfaDatasets, collectFields, pageIndex = -1) { + const dict = xref.fetchIfRef(ref); + + if (!(dict instanceof _primitives.Dict)) { + return undefined; + } + + const id = ref instanceof _primitives.Ref ? ref.toString() : `annot_${idFactory.createObjId()}`; + let subtype = dict.get("Subtype"); + subtype = subtype instanceof _primitives.Name ? subtype.name : null; + const parameters = { + xref, + ref, + dict, + subtype, + id, + pdfManager, + acroForm: acroForm instanceof _primitives.Dict ? acroForm : _primitives.Dict.empty, + xfaDatasets, + collectFields, + pageIndex + }; + + switch (subtype) { + case "Link": + return new LinkAnnotation(parameters); + + case "Text": + return new TextAnnotation(parameters); + + case "Widget": + let fieldType = (0, _core_utils.getInheritableProperty)({ + dict, + key: "FT" + }); + fieldType = fieldType instanceof _primitives.Name ? fieldType.name : null; + + switch (fieldType) { + case "Tx": + return new TextWidgetAnnotation(parameters); + + case "Btn": + return new ButtonWidgetAnnotation(parameters); + + case "Ch": + return new ChoiceWidgetAnnotation(parameters); + + case "Sig": + return new SignatureWidgetAnnotation(parameters); + } + + (0, _util.warn)(`Unimplemented widget field type "${fieldType}", ` + "falling back to base field type."); + return new WidgetAnnotation(parameters); + + case "Popup": + return new PopupAnnotation(parameters); + + case "FreeText": + return new FreeTextAnnotation(parameters); + + case "Line": + return new LineAnnotation(parameters); + + case "Square": + return new SquareAnnotation(parameters); + + case "Circle": + return new CircleAnnotation(parameters); + + case "PolyLine": + return new PolylineAnnotation(parameters); + + case "Polygon": + return new PolygonAnnotation(parameters); + + case "Caret": + return new CaretAnnotation(parameters); + + case "Ink": + return new InkAnnotation(parameters); + + case "Highlight": + return new HighlightAnnotation(parameters); + + case "Underline": + return new UnderlineAnnotation(parameters); + + case "Squiggly": + return new SquigglyAnnotation(parameters); + + case "StrikeOut": + return new StrikeOutAnnotation(parameters); + + case "Stamp": + return new StampAnnotation(parameters); + + case "FileAttachment": + return new FileAttachmentAnnotation(parameters); + + default: + if (!collectFields) { + if (!subtype) { + (0, _util.warn)("Annotation is missing the required /Subtype."); + } else { + (0, _util.warn)(`Unimplemented annotation type "${subtype}", ` + "falling back to base annotation."); + } + } + + return new Annotation(parameters); + } + } + + static async _getPageIndex(xref, ref, pdfManager) { + try { + const annotDict = await xref.fetchIfRefAsync(ref); + + if (!(annotDict instanceof _primitives.Dict)) { + return -1; + } + + const pageRef = annotDict.getRaw("P"); + + if (!(pageRef instanceof _primitives.Ref)) { + return -1; + } + + const pageIndex = await pdfManager.ensureCatalog("getPageIndex", [pageRef]); + return pageIndex; + } catch (ex) { + (0, _util.warn)(`_getPageIndex: "${ex}".`); + return -1; + } + } + + static async saveNewAnnotations(evaluator, task, annotations) { + const xref = evaluator.xref; + let baseFontRef; + const dependencies = []; + const promises = []; + + for (const annotation of annotations) { + switch (annotation.annotationType) { + case _util.AnnotationEditorType.FREETEXT: + if (!baseFontRef) { + const baseFont = new _primitives.Dict(xref); + baseFont.set("BaseFont", _primitives.Name.get("Helvetica")); + baseFont.set("Type", _primitives.Name.get("Font")); + baseFont.set("Subtype", _primitives.Name.get("Type1")); + baseFont.set("Encoding", _primitives.Name.get("WinAnsiEncoding")); + const buffer = []; + baseFontRef = xref.getNewRef(); + (0, _writer.writeObject)(baseFontRef, baseFont, buffer, null); + dependencies.push({ + ref: baseFontRef, + data: buffer.join("") + }); + } + + promises.push(FreeTextAnnotation.createNewAnnotation(xref, annotation, dependencies, { + evaluator, + task, + baseFontRef + })); + break; + + case _util.AnnotationEditorType.INK: + promises.push(InkAnnotation.createNewAnnotation(xref, annotation, dependencies)); + } + } + + return { + annotations: await Promise.all(promises), + dependencies + }; + } + + static async printNewAnnotations(evaluator, task, annotations) { + if (!annotations) { + return null; + } + + const xref = evaluator.xref; + const promises = []; + + for (const annotation of annotations) { + switch (annotation.annotationType) { + case _util.AnnotationEditorType.FREETEXT: + promises.push(FreeTextAnnotation.createNewPrintAnnotation(xref, annotation, { + evaluator, + task + })); + break; + + case _util.AnnotationEditorType.INK: + promises.push(InkAnnotation.createNewPrintAnnotation(xref, annotation)); + break; + } + } + + return Promise.all(promises); + } + +} + +exports.AnnotationFactory = AnnotationFactory; + +function getRgbColor(color, defaultColor = new Uint8ClampedArray(3)) { + if (!Array.isArray(color)) { + return defaultColor; + } + + const rgbColor = defaultColor || new Uint8ClampedArray(3); + + switch (color.length) { + case 0: + return null; + + case 1: + _colorspace.ColorSpace.singletons.gray.getRgbItem(color, 0, rgbColor, 0); + + return rgbColor; + + case 3: + _colorspace.ColorSpace.singletons.rgb.getRgbItem(color, 0, rgbColor, 0); + + return rgbColor; + + case 4: + _colorspace.ColorSpace.singletons.cmyk.getRgbItem(color, 0, rgbColor, 0); + + return rgbColor; + + default: + return defaultColor; + } +} + +function getQuadPoints(dict, rect) { + if (!dict.has("QuadPoints")) { + return null; + } + + const quadPoints = dict.getArray("QuadPoints"); + + if (!Array.isArray(quadPoints) || quadPoints.length === 0 || quadPoints.length % 8 > 0) { + return null; + } + + const quadPointsLists = []; + + for (let i = 0, ii = quadPoints.length / 8; i < ii; i++) { + quadPointsLists.push([]); + + for (let j = i * 8, jj = i * 8 + 8; j < jj; j += 2) { + const x = quadPoints[j]; + const y = quadPoints[j + 1]; + + if (rect !== null && (x < rect[0] || x > rect[2] || y < rect[1] || y > rect[3])) { + return null; + } + + quadPointsLists[i].push({ + x, + y + }); + } + } + + return quadPointsLists.map(quadPointsList => { + const [minX, maxX, minY, maxY] = quadPointsList.reduce(([mX, MX, mY, MY], quadPoint) => [Math.min(mX, quadPoint.x), Math.max(MX, quadPoint.x), Math.min(mY, quadPoint.y), Math.max(MY, quadPoint.y)], [Number.MAX_VALUE, Number.MIN_VALUE, Number.MAX_VALUE, Number.MIN_VALUE]); + return [{ + x: minX, + y: maxY + }, { + x: maxX, + y: maxY + }, { + x: minX, + y: minY + }, { + x: maxX, + y: minY + }]; + }); +} + +function getTransformMatrix(rect, bbox, matrix) { + const [minX, minY, maxX, maxY] = _util.Util.getAxialAlignedBoundingBox(bbox, matrix); + + if (minX === maxX || minY === maxY) { + return [1, 0, 0, 1, rect[0], rect[1]]; + } + + const xRatio = (rect[2] - rect[0]) / (maxX - minX); + const yRatio = (rect[3] - rect[1]) / (maxY - minY); + return [xRatio, 0, 0, yRatio, rect[0] - minX * xRatio, rect[1] - minY * yRatio]; +} + +class Annotation { + constructor(params) { + const dict = params.dict; + this.setTitle(dict.get("T")); + this.setContents(dict.get("Contents")); + this.setModificationDate(dict.get("M")); + this.setFlags(dict.get("F")); + this.setRectangle(dict.getArray("Rect")); + this.setColor(dict.getArray("C")); + this.setBorderStyle(dict); + this.setAppearance(dict); + this.setOptionalContent(dict); + const MK = dict.get("MK"); + this.setBorderAndBackgroundColors(MK); + this.setRotation(MK); + this._streams = []; + + if (this.appearance) { + this._streams.push(this.appearance); + } + + this.data = { + annotationFlags: this.flags, + borderStyle: this.borderStyle, + color: this.color, + backgroundColor: this.backgroundColor, + borderColor: this.borderColor, + rotation: this.rotation, + contentsObj: this._contents, + hasAppearance: !!this.appearance, + id: params.id, + modificationDate: this.modificationDate, + rect: this.rectangle, + subtype: params.subtype, + hasOwnCanvas: false + }; + + if (params.collectFields) { + const kids = dict.get("Kids"); + + if (Array.isArray(kids)) { + const kidIds = []; + + for (const kid of kids) { + if (kid instanceof _primitives.Ref) { + kidIds.push(kid.toString()); + } + } + + if (kidIds.length !== 0) { + this.data.kidIds = kidIds; + } + } + + this.data.actions = (0, _core_utils.collectActions)(params.xref, dict, _util.AnnotationActionEventType); + this.data.fieldName = this._constructFieldName(dict); + this.data.pageIndex = params.pageIndex; + } + + this._fallbackFontDict = null; + } + + _hasFlag(flags, flag) { + return !!(flags & flag); + } + + _isViewable(flags) { + return !this._hasFlag(flags, _util.AnnotationFlag.INVISIBLE) && !this._hasFlag(flags, _util.AnnotationFlag.NOVIEW); + } + + _isPrintable(flags) { + return this._hasFlag(flags, _util.AnnotationFlag.PRINT) && !this._hasFlag(flags, _util.AnnotationFlag.INVISIBLE); + } + + mustBeViewed(annotationStorage) { + const storageEntry = annotationStorage && annotationStorage.get(this.data.id); + + if (storageEntry && storageEntry.hidden !== undefined) { + return !storageEntry.hidden; + } + + return this.viewable && !this._hasFlag(this.flags, _util.AnnotationFlag.HIDDEN); + } + + mustBePrinted(annotationStorage) { + const storageEntry = annotationStorage && annotationStorage.get(this.data.id); + + if (storageEntry && storageEntry.print !== undefined) { + return storageEntry.print; + } + + return this.printable; + } + + get viewable() { + if (this.data.quadPoints === null) { + return false; + } + + if (this.flags === 0) { + return true; + } + + return this._isViewable(this.flags); + } + + get printable() { + if (this.data.quadPoints === null) { + return false; + } + + if (this.flags === 0) { + return false; + } + + return this._isPrintable(this.flags); + } + + _parseStringHelper(data) { + const str = typeof data === "string" ? (0, _util.stringToPDFString)(data) : ""; + const dir = str && (0, _bidi.bidi)(str).dir === "rtl" ? "rtl" : "ltr"; + return { + str, + dir + }; + } + + setTitle(title) { + this._title = this._parseStringHelper(title); + } + + setContents(contents) { + this._contents = this._parseStringHelper(contents); + } + + setModificationDate(modificationDate) { + this.modificationDate = typeof modificationDate === "string" ? modificationDate : null; + } + + setFlags(flags) { + this.flags = Number.isInteger(flags) && flags > 0 ? flags : 0; + } + + hasFlag(flag) { + return this._hasFlag(this.flags, flag); + } + + setRectangle(rectangle) { + if (Array.isArray(rectangle) && rectangle.length === 4) { + this.rectangle = _util.Util.normalizeRect(rectangle); + } else { + this.rectangle = [0, 0, 0, 0]; + } + } + + setColor(color) { + this.color = getRgbColor(color); + } + + setLineEndings(lineEndings) { + this.lineEndings = ["None", "None"]; + + if (Array.isArray(lineEndings) && lineEndings.length === 2) { + for (let i = 0; i < 2; i++) { + const obj = lineEndings[i]; + + if (obj instanceof _primitives.Name) { + switch (obj.name) { + case "None": + continue; + + case "Square": + case "Circle": + case "Diamond": + case "OpenArrow": + case "ClosedArrow": + case "Butt": + case "ROpenArrow": + case "RClosedArrow": + case "Slash": + this.lineEndings[i] = obj.name; + continue; + } + } + + (0, _util.warn)(`Ignoring invalid lineEnding: ${obj}`); + } + } + } + + setRotation(mk) { + this.rotation = 0; + + if (mk instanceof _primitives.Dict) { + let angle = mk.get("R") || 0; + + if (Number.isInteger(angle) && angle !== 0) { + angle %= 360; + + if (angle < 0) { + angle += 360; + } + + if (angle % 90 === 0) { + this.rotation = angle; + } + } + } + } + + setBorderAndBackgroundColors(mk) { + if (mk instanceof _primitives.Dict) { + this.borderColor = getRgbColor(mk.getArray("BC"), null); + this.backgroundColor = getRgbColor(mk.getArray("BG"), null); + } else { + this.borderColor = this.backgroundColor = null; + } + } + + setBorderStyle(borderStyle) { + this.borderStyle = new AnnotationBorderStyle(); + + if (!(borderStyle instanceof _primitives.Dict)) { + return; + } + + if (borderStyle.has("BS")) { + const dict = borderStyle.get("BS"); + const dictType = dict.get("Type"); + + if (!dictType || (0, _primitives.isName)(dictType, "Border")) { + this.borderStyle.setWidth(dict.get("W"), this.rectangle); + this.borderStyle.setStyle(dict.get("S")); + this.borderStyle.setDashArray(dict.getArray("D")); + } + } else if (borderStyle.has("Border")) { + const array = borderStyle.getArray("Border"); + + if (Array.isArray(array) && array.length >= 3) { + this.borderStyle.setHorizontalCornerRadius(array[0]); + this.borderStyle.setVerticalCornerRadius(array[1]); + this.borderStyle.setWidth(array[2], this.rectangle); + + if (array.length === 4) { + this.borderStyle.setDashArray(array[3], true); + } + } + } else { + this.borderStyle.setWidth(0); + } + } + + setAppearance(dict) { + this.appearance = null; + const appearanceStates = dict.get("AP"); + + if (!(appearanceStates instanceof _primitives.Dict)) { + return; + } + + const normalAppearanceState = appearanceStates.get("N"); + + if (normalAppearanceState instanceof _base_stream.BaseStream) { + this.appearance = normalAppearanceState; + return; + } + + if (!(normalAppearanceState instanceof _primitives.Dict)) { + return; + } + + const as = dict.get("AS"); + + if (!(as instanceof _primitives.Name) || !normalAppearanceState.has(as.name)) { + return; + } + + this.appearance = normalAppearanceState.get(as.name); + } + + setOptionalContent(dict) { + this.oc = null; + const oc = dict.get("OC"); + + if (oc instanceof _primitives.Name) { + (0, _util.warn)("setOptionalContent: Support for /Name-entry is not implemented."); + } else if (oc instanceof _primitives.Dict) { + this.oc = oc; + } + } + + loadResources(keys, appearance) { + return appearance.dict.getAsync("Resources").then(resources => { + if (!resources) { + return undefined; + } + + const objectLoader = new _object_loader.ObjectLoader(resources, keys, resources.xref); + return objectLoader.load().then(function () { + return resources; + }); + }); + } + + async getOperatorList(evaluator, task, intent, renderForms, annotationStorage) { + const data = this.data; + let appearance = this.appearance; + const isUsingOwnCanvas = !!(this.data.hasOwnCanvas && intent & _util.RenderingIntentFlag.DISPLAY); + + if (!appearance) { + if (!isUsingOwnCanvas) { + return { + opList: new _operator_list.OperatorList(), + separateForm: false, + separateCanvas: false + }; + } + + appearance = new _stream.StringStream(""); + appearance.dict = new _primitives.Dict(); + } + + const appearanceDict = appearance.dict; + const resources = await this.loadResources(["ExtGState", "ColorSpace", "Pattern", "Shading", "XObject", "Font"], appearance); + const bbox = appearanceDict.getArray("BBox") || [0, 0, 1, 1]; + const matrix = appearanceDict.getArray("Matrix") || [1, 0, 0, 1, 0, 0]; + const transform = getTransformMatrix(data.rect, bbox, matrix); + const opList = new _operator_list.OperatorList(); + let optionalContent; + + if (this.oc) { + optionalContent = await evaluator.parseMarkedContentProps(this.oc, null); + } + + if (optionalContent !== undefined) { + opList.addOp(_util.OPS.beginMarkedContentProps, ["OC", optionalContent]); + } + + opList.addOp(_util.OPS.beginAnnotation, [data.id, data.rect, transform, matrix, isUsingOwnCanvas]); + await evaluator.getOperatorList({ + stream: appearance, + task, + resources, + operatorList: opList, + fallbackFontDict: this._fallbackFontDict + }); + opList.addOp(_util.OPS.endAnnotation, []); + + if (optionalContent !== undefined) { + opList.addOp(_util.OPS.endMarkedContent, []); + } + + this.reset(); + return { + opList, + separateForm: false, + separateCanvas: isUsingOwnCanvas + }; + } + + async save(evaluator, task, annotationStorage) { + return null; + } + + get hasTextContent() { + return false; + } + + async extractTextContent(evaluator, task, viewBox) { + if (!this.appearance) { + return; + } + + const resources = await this.loadResources(["ExtGState", "Font", "Properties", "XObject"], this.appearance); + const text = []; + const buffer = []; + const sink = { + desiredSize: Math.Infinity, + ready: true, + + enqueue(chunk, size) { + for (const item of chunk.items) { + buffer.push(item.str); + + if (item.hasEOL) { + text.push(buffer.join("")); + buffer.length = 0; + } + } + } + + }; + await evaluator.getTextContent({ + stream: this.appearance, + task, + resources, + includeMarkedContent: true, + combineTextItems: true, + sink, + viewBox + }); + this.reset(); + + if (buffer.length) { + text.push(buffer.join("")); + } + + if (text.length > 0) { + this.data.textContent = text; + } + } + + getFieldObject() { + if (this.data.kidIds) { + return { + id: this.data.id, + actions: this.data.actions, + name: this.data.fieldName, + strokeColor: this.data.borderColor, + fillColor: this.data.backgroundColor, + type: "", + kidIds: this.data.kidIds, + page: this.data.pageIndex, + rotation: this.rotation + }; + } + + return null; + } + + reset() { + for (const stream of this._streams) { + stream.reset(); + } + } + + _constructFieldName(dict) { + if (!dict.has("T") && !dict.has("Parent")) { + (0, _util.warn)("Unknown field name, falling back to empty field name."); + return ""; + } + + if (!dict.has("Parent")) { + return (0, _util.stringToPDFString)(dict.get("T")); + } + + const fieldName = []; + + if (dict.has("T")) { + fieldName.unshift((0, _util.stringToPDFString)(dict.get("T"))); + } + + let loopDict = dict; + const visited = new _primitives.RefSet(); + + if (dict.objId) { + visited.put(dict.objId); + } + + while (loopDict.has("Parent")) { + loopDict = loopDict.get("Parent"); + + if (!(loopDict instanceof _primitives.Dict) || loopDict.objId && visited.has(loopDict.objId)) { + break; + } + + if (loopDict.objId) { + visited.put(loopDict.objId); + } + + if (loopDict.has("T")) { + fieldName.unshift((0, _util.stringToPDFString)(loopDict.get("T"))); + } + } + + return fieldName.join("."); + } + +} + +exports.Annotation = Annotation; + +class AnnotationBorderStyle { + constructor() { + this.width = 1; + this.style = _util.AnnotationBorderStyleType.SOLID; + this.dashArray = [3]; + this.horizontalCornerRadius = 0; + this.verticalCornerRadius = 0; + } + + setWidth(width, rect = [0, 0, 0, 0]) { + if (width instanceof _primitives.Name) { + this.width = 0; + return; + } + + if (typeof width === "number") { + if (width > 0) { + const maxWidth = (rect[2] - rect[0]) / 2; + const maxHeight = (rect[3] - rect[1]) / 2; + + if (maxWidth > 0 && maxHeight > 0 && (width > maxWidth || width > maxHeight)) { + (0, _util.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${width}`); + width = 1; + } + } + + this.width = width; + } + } + + setStyle(style) { + if (!(style instanceof _primitives.Name)) { + return; + } + + switch (style.name) { + case "S": + this.style = _util.AnnotationBorderStyleType.SOLID; + break; + + case "D": + this.style = _util.AnnotationBorderStyleType.DASHED; + break; + + case "B": + this.style = _util.AnnotationBorderStyleType.BEVELED; + break; + + case "I": + this.style = _util.AnnotationBorderStyleType.INSET; + break; + + case "U": + this.style = _util.AnnotationBorderStyleType.UNDERLINE; + break; + + default: + break; + } + } + + setDashArray(dashArray, forceStyle = false) { + if (Array.isArray(dashArray) && dashArray.length > 0) { + let isValid = true; + let allZeros = true; + + for (const element of dashArray) { + const validNumber = +element >= 0; + + if (!validNumber) { + isValid = false; + break; + } else if (element > 0) { + allZeros = false; + } + } + + if (isValid && !allZeros) { + this.dashArray = dashArray; + + if (forceStyle) { + this.setStyle(_primitives.Name.get("D")); + } + } else { + this.width = 0; + } + } else if (dashArray) { + this.width = 0; + } + } + + setHorizontalCornerRadius(radius) { + if (Number.isInteger(radius)) { + this.horizontalCornerRadius = radius; + } + } + + setVerticalCornerRadius(radius) { + if (Number.isInteger(radius)) { + this.verticalCornerRadius = radius; + } + } + +} + +exports.AnnotationBorderStyle = AnnotationBorderStyle; + +class MarkupAnnotation extends Annotation { + constructor(parameters) { + super(parameters); + const dict = parameters.dict; + + if (dict.has("IRT")) { + const rawIRT = dict.getRaw("IRT"); + this.data.inReplyTo = rawIRT instanceof _primitives.Ref ? rawIRT.toString() : null; + const rt = dict.get("RT"); + this.data.replyType = rt instanceof _primitives.Name ? rt.name : _util.AnnotationReplyType.REPLY; + } + + if (this.data.replyType === _util.AnnotationReplyType.GROUP) { + const parent = dict.get("IRT"); + this.setTitle(parent.get("T")); + this.data.titleObj = this._title; + this.setContents(parent.get("Contents")); + this.data.contentsObj = this._contents; + + if (!parent.has("CreationDate")) { + this.data.creationDate = null; + } else { + this.setCreationDate(parent.get("CreationDate")); + this.data.creationDate = this.creationDate; + } + + if (!parent.has("M")) { + this.data.modificationDate = null; + } else { + this.setModificationDate(parent.get("M")); + this.data.modificationDate = this.modificationDate; + } + + this.data.hasPopup = parent.has("Popup"); + + if (!parent.has("C")) { + this.data.color = null; + } else { + this.setColor(parent.getArray("C")); + this.data.color = this.color; + } + } else { + this.data.titleObj = this._title; + this.setCreationDate(dict.get("CreationDate")); + this.data.creationDate = this.creationDate; + this.data.hasPopup = dict.has("Popup"); + + if (!dict.has("C")) { + this.data.color = null; + } + } + + if (dict.has("RC")) { + this.data.richText = _factory.XFAFactory.getRichTextAsHtml(dict.get("RC")); + } + } + + setCreationDate(creationDate) { + this.creationDate = typeof creationDate === "string" ? creationDate : null; + } + + _setDefaultAppearance({ + xref, + extra, + strokeColor, + fillColor, + blendMode, + strokeAlpha, + fillAlpha, + pointsCallback + }) { + let minX = Number.MAX_VALUE; + let minY = Number.MAX_VALUE; + let maxX = Number.MIN_VALUE; + let maxY = Number.MIN_VALUE; + const buffer = ["q"]; + + if (extra) { + buffer.push(extra); + } + + if (strokeColor) { + buffer.push(`${strokeColor[0]} ${strokeColor[1]} ${strokeColor[2]} RG`); + } + + if (fillColor) { + buffer.push(`${fillColor[0]} ${fillColor[1]} ${fillColor[2]} rg`); + } + + let pointsArray = this.data.quadPoints; + + if (!pointsArray) { + pointsArray = [[{ + x: this.rectangle[0], + y: this.rectangle[3] + }, { + x: this.rectangle[2], + y: this.rectangle[3] + }, { + x: this.rectangle[0], + y: this.rectangle[1] + }, { + x: this.rectangle[2], + y: this.rectangle[1] + }]]; + } + + for (const points of pointsArray) { + const [mX, MX, mY, MY] = pointsCallback(buffer, points); + minX = Math.min(minX, mX); + maxX = Math.max(maxX, MX); + minY = Math.min(minY, mY); + maxY = Math.max(maxY, MY); + } + + buffer.push("Q"); + const formDict = new _primitives.Dict(xref); + const appearanceStreamDict = new _primitives.Dict(xref); + appearanceStreamDict.set("Subtype", _primitives.Name.get("Form")); + const appearanceStream = new _stream.StringStream(buffer.join(" ")); + appearanceStream.dict = appearanceStreamDict; + formDict.set("Fm0", appearanceStream); + const gsDict = new _primitives.Dict(xref); + + if (blendMode) { + gsDict.set("BM", _primitives.Name.get(blendMode)); + } + + if (typeof strokeAlpha === "number") { + gsDict.set("CA", strokeAlpha); + } + + if (typeof fillAlpha === "number") { + gsDict.set("ca", fillAlpha); + } + + const stateDict = new _primitives.Dict(xref); + stateDict.set("GS0", gsDict); + const resources = new _primitives.Dict(xref); + resources.set("ExtGState", stateDict); + resources.set("XObject", formDict); + const appearanceDict = new _primitives.Dict(xref); + appearanceDict.set("Resources", resources); + const bbox = this.data.rect = [minX, minY, maxX, maxY]; + appearanceDict.set("BBox", bbox); + this.appearance = new _stream.StringStream("/GS0 gs /Fm0 Do"); + this.appearance.dict = appearanceDict; + + this._streams.push(this.appearance, appearanceStream); + } + + static async createNewAnnotation(xref, annotation, dependencies, params) { + const annotationRef = xref.getNewRef(); + const apRef = xref.getNewRef(); + const annotationDict = this.createNewDict(annotation, xref, { + apRef + }); + const ap = await this.createNewAppearanceStream(annotation, xref, params); + const buffer = []; + let transform = xref.encrypt ? xref.encrypt.createCipherTransform(apRef.num, apRef.gen) : null; + (0, _writer.writeObject)(apRef, ap, buffer, transform); + dependencies.push({ + ref: apRef, + data: buffer.join("") + }); + buffer.length = 0; + transform = xref.encrypt ? xref.encrypt.createCipherTransform(annotationRef.num, annotationRef.gen) : null; + (0, _writer.writeObject)(annotationRef, annotationDict, buffer, transform); + return { + ref: annotationRef, + data: buffer.join("") + }; + } + + static async createNewPrintAnnotation(xref, annotation, params) { + const ap = await this.createNewAppearanceStream(annotation, xref, params); + const annotationDict = this.createNewDict(annotation, xref, { + ap + }); + return new this.prototype.constructor({ + dict: annotationDict, + xref + }); + } + +} + +exports.MarkupAnnotation = MarkupAnnotation; + +class WidgetAnnotation extends Annotation { + constructor(params) { + super(params); + const dict = params.dict; + const data = this.data; + this.ref = params.ref; + data.annotationType = _util.AnnotationType.WIDGET; + + if (data.fieldName === undefined) { + data.fieldName = this._constructFieldName(dict); + } + + if (data.actions === undefined) { + data.actions = (0, _core_utils.collectActions)(params.xref, dict, _util.AnnotationActionEventType); + } + + let fieldValue = (0, _core_utils.getInheritableProperty)({ + dict, + key: "V", + getArray: true + }); + data.fieldValue = this._decodeFormValue(fieldValue); + const defaultFieldValue = (0, _core_utils.getInheritableProperty)({ + dict, + key: "DV", + getArray: true + }); + data.defaultFieldValue = this._decodeFormValue(defaultFieldValue); + + if (fieldValue === undefined && params.xfaDatasets) { + const path = this._title.str; + + if (path) { + this._hasValueFromXFA = true; + data.fieldValue = fieldValue = params.xfaDatasets.getValue(path); + } + } + + if (fieldValue === undefined && data.defaultFieldValue !== null) { + data.fieldValue = data.defaultFieldValue; + } + + data.alternativeText = (0, _util.stringToPDFString)(dict.get("TU") || ""); + const defaultAppearance = (0, _core_utils.getInheritableProperty)({ + dict, + key: "DA" + }) || params.acroForm.get("DA"); + this._defaultAppearance = typeof defaultAppearance === "string" ? defaultAppearance : ""; + data.defaultAppearanceData = (0, _default_appearance.parseDefaultAppearance)(this._defaultAppearance); + const fieldType = (0, _core_utils.getInheritableProperty)({ + dict, + key: "FT" + }); + data.fieldType = fieldType instanceof _primitives.Name ? fieldType.name : null; + const localResources = (0, _core_utils.getInheritableProperty)({ + dict, + key: "DR" + }); + const acroFormResources = params.acroForm.get("DR"); + const appearanceResources = this.appearance && this.appearance.dict.get("Resources"); + this._fieldResources = { + localResources, + acroFormResources, + appearanceResources, + mergedResources: _primitives.Dict.merge({ + xref: params.xref, + dictArray: [localResources, appearanceResources, acroFormResources], + mergeSubDicts: true + }) + }; + data.fieldFlags = (0, _core_utils.getInheritableProperty)({ + dict, + key: "Ff" + }); + + if (!Number.isInteger(data.fieldFlags) || data.fieldFlags < 0) { + data.fieldFlags = 0; + } + + data.readOnly = this.hasFieldFlag(_util.AnnotationFieldFlag.READONLY); + data.required = this.hasFieldFlag(_util.AnnotationFieldFlag.REQUIRED); + data.hidden = this._hasFlag(data.annotationFlags, _util.AnnotationFlag.HIDDEN); + } + + _decodeFormValue(formValue) { + if (Array.isArray(formValue)) { + return formValue.filter(item => typeof item === "string").map(item => (0, _util.stringToPDFString)(item)); + } else if (formValue instanceof _primitives.Name) { + return (0, _util.stringToPDFString)(formValue.name); + } else if (typeof formValue === "string") { + return (0, _util.stringToPDFString)(formValue); + } + + return null; + } + + hasFieldFlag(flag) { + return !!(this.data.fieldFlags & flag); + } + + static _getRotationMatrix(rotation, width, height) { + switch (rotation) { + case 90: + return [0, 1, -1, 0, width, 0]; + + case 180: + return [-1, 0, 0, -1, width, height]; + + case 270: + return [0, -1, 1, 0, 0, height]; + + default: + throw new Error("Invalid rotation"); + } + } + + getRotationMatrix(annotationStorage) { + const storageEntry = annotationStorage ? annotationStorage.get(this.data.id) : undefined; + let rotation = storageEntry && storageEntry.rotation; + + if (rotation === undefined) { + rotation = this.rotation; + } + + if (rotation === 0) { + return _util.IDENTITY_MATRIX; + } + + const width = this.data.rect[2] - this.data.rect[0]; + const height = this.data.rect[3] - this.data.rect[1]; + return WidgetAnnotation._getRotationMatrix(rotation, width, height); + } + + getBorderAndBackgroundAppearances(annotationStorage) { + const storageEntry = annotationStorage ? annotationStorage.get(this.data.id) : undefined; + let rotation = storageEntry && storageEntry.rotation; + + if (rotation === undefined) { + rotation = this.rotation; + } + + if (!this.backgroundColor && !this.borderColor) { + return ""; + } + + const width = this.data.rect[2] - this.data.rect[0]; + const height = this.data.rect[3] - this.data.rect[1]; + const rect = rotation === 0 || rotation === 180 ? `0 0 ${width} ${height} re` : `0 0 ${height} ${width} re`; + let str = ""; + + if (this.backgroundColor) { + str = `${(0, _default_appearance.getPdfColor)(this.backgroundColor, true)} ${rect} f `; + } + + if (this.borderColor) { + const borderWidth = this.borderStyle.width || 1; + str += `${borderWidth} w ${(0, _default_appearance.getPdfColor)(this.borderColor, false)} ${rect} S `; + } + + return str; + } + + async getOperatorList(evaluator, task, intent, renderForms, annotationStorage) { + if (renderForms && !(this instanceof SignatureWidgetAnnotation)) { + return { + opList: new _operator_list.OperatorList(), + separateForm: true, + separateCanvas: false + }; + } + + if (!this._hasText) { + return super.getOperatorList(evaluator, task, intent, renderForms, annotationStorage); + } + + const content = await this._getAppearance(evaluator, task, annotationStorage); + + if (this.appearance && content === null) { + return super.getOperatorList(evaluator, task, intent, renderForms, annotationStorage); + } + + const opList = new _operator_list.OperatorList(); + + if (!this._defaultAppearance || content === null) { + return { + opList, + separateForm: false, + separateCanvas: false + }; + } + + const matrix = [1, 0, 0, 1, 0, 0]; + const bbox = [0, 0, this.data.rect[2] - this.data.rect[0], this.data.rect[3] - this.data.rect[1]]; + const transform = getTransformMatrix(this.data.rect, bbox, matrix); + let optionalContent; + + if (this.oc) { + optionalContent = await evaluator.parseMarkedContentProps(this.oc, null); + } + + if (optionalContent !== undefined) { + opList.addOp(_util.OPS.beginMarkedContentProps, ["OC", optionalContent]); + } + + opList.addOp(_util.OPS.beginAnnotation, [this.data.id, this.data.rect, transform, this.getRotationMatrix(annotationStorage), false]); + const stream = new _stream.StringStream(content); + await evaluator.getOperatorList({ + stream, + task, + resources: this._fieldResources.mergedResources, + operatorList: opList + }); + opList.addOp(_util.OPS.endAnnotation, []); + + if (optionalContent !== undefined) { + opList.addOp(_util.OPS.endMarkedContent, []); + } + + return { + opList, + separateForm: false, + separateCanvas: false + }; + } + + _getMKDict(rotation) { + const mk = new _primitives.Dict(null); + + if (rotation) { + mk.set("R", rotation); + } + + if (this.borderColor) { + mk.set("BC", Array.from(this.borderColor).map(c => c / 255)); + } + + if (this.backgroundColor) { + mk.set("BG", Array.from(this.backgroundColor).map(c => c / 255)); + } + + return mk.size > 0 ? mk : null; + } + + async save(evaluator, task, annotationStorage) { + const storageEntry = annotationStorage ? annotationStorage.get(this.data.id) : undefined; + let value = storageEntry && storageEntry.value; + let rotation = storageEntry && storageEntry.rotation; + + if (value === this.data.fieldValue || value === undefined) { + if (!this._hasValueFromXFA && rotation === undefined) { + return null; + } + + value = value || this.data.fieldValue; + } + + if (rotation === undefined && !this._hasValueFromXFA && Array.isArray(value) && Array.isArray(this.data.fieldValue) && value.length === this.data.fieldValue.length && value.every((x, i) => x === this.data.fieldValue[i])) { + return null; + } + + if (rotation === undefined) { + rotation = this.rotation; + } + + let appearance = await this._getAppearance(evaluator, task, annotationStorage); + + if (appearance === null) { + return null; + } + + const { + xref + } = evaluator; + const dict = xref.fetchIfRef(this.ref); + + if (!(dict instanceof _primitives.Dict)) { + return null; + } + + const bbox = [0, 0, this.data.rect[2] - this.data.rect[0], this.data.rect[3] - this.data.rect[1]]; + const xfa = { + path: (0, _util.stringToPDFString)(dict.get("T") || ""), + value + }; + const newRef = xref.getNewRef(); + const AP = new _primitives.Dict(xref); + AP.set("N", newRef); + const encrypt = xref.encrypt; + let originalTransform = null; + let newTransform = null; + + if (encrypt) { + originalTransform = encrypt.createCipherTransform(this.ref.num, this.ref.gen); + newTransform = encrypt.createCipherTransform(newRef.num, newRef.gen); + appearance = newTransform.encryptString(appearance); + } + + const encoder = val => (0, _util.isAscii)(val) ? val : (0, _util.stringToUTF16BEString)(val); + + dict.set("V", Array.isArray(value) ? value.map(encoder) : encoder(value)); + dict.set("AP", AP); + dict.set("M", `D:${(0, _util.getModificationDate)()}`); + + const maybeMK = this._getMKDict(rotation); + + if (maybeMK) { + dict.set("MK", maybeMK); + } + + const appearanceDict = new _primitives.Dict(xref); + appearanceDict.set("Length", appearance.length); + appearanceDict.set("Subtype", _primitives.Name.get("Form")); + appearanceDict.set("Resources", this._getSaveFieldResources(xref)); + appearanceDict.set("BBox", bbox); + const rotationMatrix = this.getRotationMatrix(annotationStorage); + + if (rotationMatrix !== _util.IDENTITY_MATRIX) { + appearanceDict.set("Matrix", rotationMatrix); + } + + const bufferOriginal = [`${this.ref.num} ${this.ref.gen} obj\n`]; + (0, _writer.writeDict)(dict, bufferOriginal, originalTransform); + bufferOriginal.push("\nendobj\n"); + const bufferNew = [`${newRef.num} ${newRef.gen} obj\n`]; + (0, _writer.writeDict)(appearanceDict, bufferNew, newTransform); + bufferNew.push(" stream\n", appearance, "\nendstream\nendobj\n"); + return [{ + ref: this.ref, + data: bufferOriginal.join(""), + xfa + }, { + ref: newRef, + data: bufferNew.join(""), + xfa: null + }]; + } + + async _getAppearance(evaluator, task, annotationStorage) { + const isPassword = this.hasFieldFlag(_util.AnnotationFieldFlag.PASSWORD); + + if (isPassword) { + return null; + } + + const storageEntry = annotationStorage ? annotationStorage.get(this.data.id) : undefined; + let value, rotation; + + if (storageEntry) { + value = storageEntry.formattedValue || storageEntry.value; + rotation = storageEntry.rotation; + } + + if (rotation === undefined && value === undefined) { + if (!this._hasValueFromXFA || this.appearance) { + return null; + } + } + + if (value === undefined) { + value = this.data.fieldValue; + + if (!value) { + return ""; + } + } + + if (Array.isArray(value) && value.length === 1) { + value = value[0]; + } + + (0, _util.assert)(typeof value === "string", "Expected `value` to be a string."); + value = value.trim(); + + if (value === "") { + return ""; + } + + if (rotation === undefined) { + rotation = this.rotation; + } + + let lineCount = -1; + + if (this.data.multiLine) { + lineCount = value.split(/\r\n|\r|\n/).length; + } + + const defaultPadding = 2; + const hPadding = defaultPadding; + let totalHeight = this.data.rect[3] - this.data.rect[1]; + let totalWidth = this.data.rect[2] - this.data.rect[0]; + + if (rotation === 90 || rotation === 270) { + [totalWidth, totalHeight] = [totalHeight, totalWidth]; + } + + if (!this._defaultAppearance) { + this.data.defaultAppearanceData = (0, _default_appearance.parseDefaultAppearance)(this._defaultAppearance = "/Helvetica 0 Tf 0 g"); + } + + const font = await WidgetAnnotation._getFontData(evaluator, task, this.data.defaultAppearanceData, this._fieldResources.mergedResources); + + const [defaultAppearance, fontSize] = this._computeFontSize(totalHeight - defaultPadding, totalWidth - 2 * hPadding, value, font, lineCount); + + let descent = font.descent; + + if (isNaN(descent)) { + descent = 0; + } + + const defaultVPadding = Math.min(Math.floor((totalHeight - fontSize) / 2), defaultPadding); + const vPadding = defaultVPadding + Math.abs(descent) * fontSize; + const alignment = this.data.textAlignment; + + if (this.data.multiLine) { + return this._getMultilineAppearance(defaultAppearance, value, font, fontSize, totalWidth, totalHeight, alignment, hPadding, vPadding, annotationStorage); + } + + const encodedString = font.encodeString(value).join(""); + + if (this.data.comb) { + return this._getCombAppearance(defaultAppearance, font, encodedString, totalWidth, hPadding, vPadding, annotationStorage); + } + + const colors = this.getBorderAndBackgroundAppearances(annotationStorage); + + if (alignment === 0 || alignment > 2) { + return `/Tx BMC q ${colors}BT ` + defaultAppearance + ` 1 0 0 1 ${hPadding} ${vPadding} Tm (${(0, _util.escapeString)(encodedString)}) Tj` + " ET Q EMC"; + } + + const renderedText = this._renderText(encodedString, font, fontSize, totalWidth, alignment, hPadding, vPadding); + + return `/Tx BMC q ${colors}BT ` + defaultAppearance + ` 1 0 0 1 0 0 Tm ${renderedText}` + " ET Q EMC"; + } + + static async _getFontData(evaluator, task, appearanceData, resources) { + const operatorList = new _operator_list.OperatorList(); + const initialState = { + font: null, + + clone() { + return this; + } + + }; + const { + fontName, + fontSize + } = appearanceData; + await evaluator.handleSetFont(resources, [fontName && _primitives.Name.get(fontName), fontSize], null, operatorList, task, initialState, null); + return initialState.font; + } + + _getTextWidth(text, font) { + return font.charsToGlyphs(text).reduce((width, glyph) => width + glyph.width, 0) / 1000; + } + + _computeFontSize(height, width, text, font, lineCount) { + let { + fontSize + } = this.data.defaultAppearanceData; + + if (!fontSize) { + const roundWithTwoDigits = x => Math.floor(x * 100) / 100; + + if (lineCount === -1) { + const textWidth = this._getTextWidth(text, font); + + fontSize = roundWithTwoDigits(Math.min(height / _util.LINE_FACTOR, width / textWidth)); + } else { + const lines = text.split(/\r\n?|\n/); + const cachedLines = []; + + for (const line of lines) { + const encoded = font.encodeString(line).join(""); + const glyphs = font.charsToGlyphs(encoded); + const positions = font.getCharPositions(encoded); + cachedLines.push({ + line: encoded, + glyphs, + positions + }); + } + + const isTooBig = fsize => { + let totalHeight = 0; + + for (const cache of cachedLines) { + const chunks = this._splitLine(null, font, fsize, width, cache); + + totalHeight += chunks.length * fsize; + + if (totalHeight > height) { + return true; + } + } + + return false; + }; + + fontSize = 12; + let lineHeight = fontSize * _util.LINE_FACTOR; + let numberOfLines = Math.round(height / lineHeight); + numberOfLines = Math.max(numberOfLines, lineCount); + + while (true) { + lineHeight = height / numberOfLines; + fontSize = roundWithTwoDigits(lineHeight / _util.LINE_FACTOR); + + if (isTooBig(fontSize)) { + numberOfLines++; + continue; + } + + break; + } + } + + const { + fontName, + fontColor + } = this.data.defaultAppearanceData; + this._defaultAppearance = (0, _default_appearance.createDefaultAppearance)({ + fontSize, + fontName, + fontColor + }); + } + + return [this._defaultAppearance, fontSize]; + } + + _renderText(text, font, fontSize, totalWidth, alignment, hPadding, vPadding) { + let shift; + + if (alignment === 1) { + const width = this._getTextWidth(text, font) * fontSize; + shift = (totalWidth - width) / 2; + } else if (alignment === 2) { + const width = this._getTextWidth(text, font) * fontSize; + shift = totalWidth - width - hPadding; + } else { + shift = hPadding; + } + + shift = (0, _core_utils.numberToString)(shift); + vPadding = (0, _core_utils.numberToString)(vPadding); + return `${shift} ${vPadding} Td (${(0, _util.escapeString)(text)}) Tj`; + } + + _getSaveFieldResources(xref) { + const { + localResources, + appearanceResources, + acroFormResources + } = this._fieldResources; + const fontName = this.data.defaultAppearanceData && this.data.defaultAppearanceData.fontName; + + if (!fontName) { + return localResources || _primitives.Dict.empty; + } + + for (const resources of [localResources, appearanceResources]) { + if (resources instanceof _primitives.Dict) { + const localFont = resources.get("Font"); + + if (localFont instanceof _primitives.Dict && localFont.has(fontName)) { + return resources; + } + } + } + + if (acroFormResources instanceof _primitives.Dict) { + const acroFormFont = acroFormResources.get("Font"); + + if (acroFormFont instanceof _primitives.Dict && acroFormFont.has(fontName)) { + const subFontDict = new _primitives.Dict(xref); + subFontDict.set(fontName, acroFormFont.getRaw(fontName)); + const subResourcesDict = new _primitives.Dict(xref); + subResourcesDict.set("Font", subFontDict); + return _primitives.Dict.merge({ + xref, + dictArray: [subResourcesDict, localResources], + mergeSubDicts: true + }); + } + } + + return localResources || _primitives.Dict.empty; + } + + getFieldObject() { + return null; + } + +} + +class TextWidgetAnnotation extends WidgetAnnotation { + constructor(params) { + super(params); + this._hasText = true; + const dict = params.dict; + + if (typeof this.data.fieldValue !== "string") { + this.data.fieldValue = ""; + } + + let alignment = (0, _core_utils.getInheritableProperty)({ + dict, + key: "Q" + }); + + if (!Number.isInteger(alignment) || alignment < 0 || alignment > 2) { + alignment = null; + } + + this.data.textAlignment = alignment; + let maximumLength = (0, _core_utils.getInheritableProperty)({ + dict, + key: "MaxLen" + }); + + if (!Number.isInteger(maximumLength) || maximumLength < 0) { + maximumLength = 0; + } + + this.data.maxLen = maximumLength; + this.data.multiLine = this.hasFieldFlag(_util.AnnotationFieldFlag.MULTILINE); + this.data.comb = this.hasFieldFlag(_util.AnnotationFieldFlag.COMB) && !this.hasFieldFlag(_util.AnnotationFieldFlag.MULTILINE) && !this.hasFieldFlag(_util.AnnotationFieldFlag.PASSWORD) && !this.hasFieldFlag(_util.AnnotationFieldFlag.FILESELECT) && this.data.maxLen !== 0; + this.data.doNotScroll = this.hasFieldFlag(_util.AnnotationFieldFlag.DONOTSCROLL); + } + + _getCombAppearance(defaultAppearance, font, text, width, hPadding, vPadding, annotationStorage) { + const combWidth = (0, _core_utils.numberToString)(width / this.data.maxLen); + const buf = []; + const positions = font.getCharPositions(text); + + for (const [start, end] of positions) { + buf.push(`(${(0, _util.escapeString)(text.substring(start, end))}) Tj`); + } + + const colors = this.getBorderAndBackgroundAppearances(annotationStorage); + const renderedComb = buf.join(` ${combWidth} 0 Td `); + return `/Tx BMC q ${colors}BT ` + defaultAppearance + ` 1 0 0 1 ${hPadding} ${vPadding} Tm ${renderedComb}` + " ET Q EMC"; + } + + _getMultilineAppearance(defaultAppearance, text, font, fontSize, width, height, alignment, hPadding, vPadding, annotationStorage) { + const lines = text.split(/\r\n?|\n/); + const buf = []; + const totalWidth = width - 2 * hPadding; + + for (const line of lines) { + const chunks = this._splitLine(line, font, fontSize, totalWidth); + + for (const chunk of chunks) { + const padding = buf.length === 0 ? hPadding : 0; + buf.push(this._renderText(chunk, font, fontSize, width, alignment, padding, -fontSize)); + } + } + + const renderedText = buf.join("\n"); + const colors = this.getBorderAndBackgroundAppearances(annotationStorage); + return `/Tx BMC q ${colors}BT ` + defaultAppearance + ` 1 0 0 1 0 ${height} Tm ${renderedText}` + " ET Q EMC"; + } + + _splitLine(line, font, fontSize, width, cache = {}) { + line = cache.line || font.encodeString(line).join(""); + const glyphs = cache.glyphs || font.charsToGlyphs(line); + + if (glyphs.length <= 1) { + return [line]; + } + + const positions = cache.positions || font.getCharPositions(line); + const scale = fontSize / 1000; + const chunks = []; + let lastSpacePosInStringStart = -1, + lastSpacePosInStringEnd = -1, + lastSpacePos = -1, + startChunk = 0, + currentWidth = 0; + + for (let i = 0, ii = glyphs.length; i < ii; i++) { + const [start, end] = positions[i]; + const glyph = glyphs[i]; + const glyphWidth = glyph.width * scale; + + if (glyph.unicode === " ") { + if (currentWidth + glyphWidth > width) { + chunks.push(line.substring(startChunk, start)); + startChunk = start; + currentWidth = glyphWidth; + lastSpacePosInStringStart = -1; + lastSpacePos = -1; + } else { + currentWidth += glyphWidth; + lastSpacePosInStringStart = start; + lastSpacePosInStringEnd = end; + lastSpacePos = i; + } + } else { + if (currentWidth + glyphWidth > width) { + if (lastSpacePosInStringStart !== -1) { + chunks.push(line.substring(startChunk, lastSpacePosInStringEnd)); + startChunk = lastSpacePosInStringEnd; + i = lastSpacePos + 1; + lastSpacePosInStringStart = -1; + currentWidth = 0; + } else { + chunks.push(line.substring(startChunk, start)); + startChunk = start; + currentWidth = glyphWidth; + } + } else { + currentWidth += glyphWidth; + } + } + } + + if (startChunk < line.length) { + chunks.push(line.substring(startChunk, line.length)); + } + + return chunks; + } + + getFieldObject() { + return { + id: this.data.id, + value: this.data.fieldValue, + defaultValue: this.data.defaultFieldValue || "", + multiline: this.data.multiLine, + password: this.hasFieldFlag(_util.AnnotationFieldFlag.PASSWORD), + charLimit: this.data.maxLen, + comb: this.data.comb, + editable: !this.data.readOnly, + hidden: this.data.hidden, + name: this.data.fieldName, + rect: this.data.rect, + actions: this.data.actions, + page: this.data.pageIndex, + strokeColor: this.data.borderColor, + fillColor: this.data.backgroundColor, + rotation: this.rotation, + type: "text" + }; + } + +} + +class ButtonWidgetAnnotation extends WidgetAnnotation { + constructor(params) { + super(params); + this.checkedAppearance = null; + this.uncheckedAppearance = null; + this.data.checkBox = !this.hasFieldFlag(_util.AnnotationFieldFlag.RADIO) && !this.hasFieldFlag(_util.AnnotationFieldFlag.PUSHBUTTON); + this.data.radioButton = this.hasFieldFlag(_util.AnnotationFieldFlag.RADIO) && !this.hasFieldFlag(_util.AnnotationFieldFlag.PUSHBUTTON); + this.data.pushButton = this.hasFieldFlag(_util.AnnotationFieldFlag.PUSHBUTTON); + this.data.isTooltipOnly = false; + + if (this.data.checkBox) { + this._processCheckBox(params); + } else if (this.data.radioButton) { + this._processRadioButton(params); + } else if (this.data.pushButton) { + this.data.hasOwnCanvas = true; + + this._processPushButton(params); + } else { + (0, _util.warn)("Invalid field flags for button widget annotation"); + } + } + + async getOperatorList(evaluator, task, intent, renderForms, annotationStorage) { + if (this.data.pushButton) { + return super.getOperatorList(evaluator, task, intent, false, annotationStorage); + } + + let value = null; + let rotation = null; + + if (annotationStorage) { + const storageEntry = annotationStorage.get(this.data.id); + value = storageEntry ? storageEntry.value : null; + rotation = storageEntry ? storageEntry.rotation : null; + } + + if (value === null && this.appearance) { + return super.getOperatorList(evaluator, task, intent, renderForms, annotationStorage); + } + + if (value === null || value === undefined) { + if (this.data.checkBox) { + value = this.data.fieldValue === this.data.exportValue; + } else { + value = this.data.fieldValue === this.data.buttonValue; + } + } + + const appearance = value ? this.checkedAppearance : this.uncheckedAppearance; + + if (appearance) { + const savedAppearance = this.appearance; + + const savedMatrix = appearance.dict.getArray("Matrix") || _util.IDENTITY_MATRIX; + + if (rotation) { + appearance.dict.set("Matrix", this.getRotationMatrix(annotationStorage)); + } + + this.appearance = appearance; + const operatorList = super.getOperatorList(evaluator, task, intent, renderForms, annotationStorage); + this.appearance = savedAppearance; + appearance.dict.set("Matrix", savedMatrix); + return operatorList; + } + + return { + opList: new _operator_list.OperatorList(), + separateForm: false, + separateCanvas: false + }; + } + + async save(evaluator, task, annotationStorage) { + if (this.data.checkBox) { + return this._saveCheckbox(evaluator, task, annotationStorage); + } + + if (this.data.radioButton) { + return this._saveRadioButton(evaluator, task, annotationStorage); + } + + return null; + } + + async _saveCheckbox(evaluator, task, annotationStorage) { + if (!annotationStorage) { + return null; + } + + const storageEntry = annotationStorage.get(this.data.id); + let rotation = storageEntry && storageEntry.rotation; + let value = storageEntry && storageEntry.value; + + if (rotation === undefined) { + if (value === undefined) { + return null; + } + + const defaultValue = this.data.fieldValue === this.data.exportValue; + + if (defaultValue === value) { + return null; + } + } + + const dict = evaluator.xref.fetchIfRef(this.ref); + + if (!(dict instanceof _primitives.Dict)) { + return null; + } + + if (rotation === undefined) { + rotation = this.rotation; + } + + if (value === undefined) { + value = this.data.fieldValue === this.data.exportValue; + } + + const xfa = { + path: (0, _util.stringToPDFString)(dict.get("T") || ""), + value: value ? this.data.exportValue : "" + }; + + const name = _primitives.Name.get(value ? this.data.exportValue : "Off"); + + dict.set("V", name); + dict.set("AS", name); + dict.set("M", `D:${(0, _util.getModificationDate)()}`); + + const maybeMK = this._getMKDict(rotation); + + if (maybeMK) { + dict.set("MK", maybeMK); + } + + const encrypt = evaluator.xref.encrypt; + let originalTransform = null; + + if (encrypt) { + originalTransform = encrypt.createCipherTransform(this.ref.num, this.ref.gen); + } + + const buffer = [`${this.ref.num} ${this.ref.gen} obj\n`]; + (0, _writer.writeDict)(dict, buffer, originalTransform); + buffer.push("\nendobj\n"); + return [{ + ref: this.ref, + data: buffer.join(""), + xfa + }]; + } + + async _saveRadioButton(evaluator, task, annotationStorage) { + if (!annotationStorage) { + return null; + } + + const storageEntry = annotationStorage.get(this.data.id); + let rotation = storageEntry && storageEntry.rotation; + let value = storageEntry && storageEntry.value; + + if (rotation === undefined) { + if (value === undefined) { + return null; + } + + const defaultValue = this.data.fieldValue === this.data.buttonValue; + + if (defaultValue === value) { + return null; + } + } + + const dict = evaluator.xref.fetchIfRef(this.ref); + + if (!(dict instanceof _primitives.Dict)) { + return null; + } + + if (value === undefined) { + value = this.data.fieldValue === this.data.buttonValue; + } + + if (rotation === undefined) { + rotation = this.rotation; + } + + const xfa = { + path: (0, _util.stringToPDFString)(dict.get("T") || ""), + value: value ? this.data.buttonValue : "" + }; + + const name = _primitives.Name.get(value ? this.data.buttonValue : "Off"); + + let parentBuffer = null; + const encrypt = evaluator.xref.encrypt; + + if (value) { + if (this.parent instanceof _primitives.Ref) { + const parent = evaluator.xref.fetch(this.parent); + let parentTransform = null; + + if (encrypt) { + parentTransform = encrypt.createCipherTransform(this.parent.num, this.parent.gen); + } + + parent.set("V", name); + parentBuffer = [`${this.parent.num} ${this.parent.gen} obj\n`]; + (0, _writer.writeDict)(parent, parentBuffer, parentTransform); + parentBuffer.push("\nendobj\n"); + } else if (this.parent instanceof _primitives.Dict) { + this.parent.set("V", name); + } + } + + dict.set("AS", name); + dict.set("M", `D:${(0, _util.getModificationDate)()}`); + + const maybeMK = this._getMKDict(rotation); + + if (maybeMK) { + dict.set("MK", maybeMK); + } + + let originalTransform = null; + + if (encrypt) { + originalTransform = encrypt.createCipherTransform(this.ref.num, this.ref.gen); + } + + const buffer = [`${this.ref.num} ${this.ref.gen} obj\n`]; + (0, _writer.writeDict)(dict, buffer, originalTransform); + buffer.push("\nendobj\n"); + const newRefs = [{ + ref: this.ref, + data: buffer.join(""), + xfa + }]; + + if (parentBuffer !== null) { + newRefs.push({ + ref: this.parent, + data: parentBuffer.join(""), + xfa: null + }); + } + + return newRefs; + } + + _getDefaultCheckedAppearance(params, type) { + const width = this.data.rect[2] - this.data.rect[0]; + const height = this.data.rect[3] - this.data.rect[1]; + const bbox = [0, 0, width, height]; + const FONT_RATIO = 0.8; + const fontSize = Math.min(width, height) * FONT_RATIO; + let metrics, char; + + if (type === "check") { + metrics = { + width: 0.755 * fontSize, + height: 0.705 * fontSize + }; + char = "\x33"; + } else if (type === "disc") { + metrics = { + width: 0.791 * fontSize, + height: 0.705 * fontSize + }; + char = "\x6C"; + } else { + (0, _util.unreachable)(`_getDefaultCheckedAppearance - unsupported type: ${type}`); + } + + const xShift = (0, _core_utils.numberToString)((width - metrics.width) / 2); + const yShift = (0, _core_utils.numberToString)((height - metrics.height) / 2); + const appearance = `q BT /PdfJsZaDb ${fontSize} Tf 0 g ${xShift} ${yShift} Td (${char}) Tj ET Q`; + const appearanceStreamDict = new _primitives.Dict(params.xref); + appearanceStreamDict.set("FormType", 1); + appearanceStreamDict.set("Subtype", _primitives.Name.get("Form")); + appearanceStreamDict.set("Type", _primitives.Name.get("XObject")); + appearanceStreamDict.set("BBox", bbox); + appearanceStreamDict.set("Matrix", [1, 0, 0, 1, 0, 0]); + appearanceStreamDict.set("Length", appearance.length); + const resources = new _primitives.Dict(params.xref); + const font = new _primitives.Dict(params.xref); + font.set("PdfJsZaDb", this.fallbackFontDict); + resources.set("Font", font); + appearanceStreamDict.set("Resources", resources); + this.checkedAppearance = new _stream.StringStream(appearance); + this.checkedAppearance.dict = appearanceStreamDict; + + this._streams.push(this.checkedAppearance); + } + + _processCheckBox(params) { + const customAppearance = params.dict.get("AP"); + + if (!(customAppearance instanceof _primitives.Dict)) { + return; + } + + const normalAppearance = customAppearance.get("N"); + + if (!(normalAppearance instanceof _primitives.Dict)) { + return; + } + + const asValue = this._decodeFormValue(params.dict.get("AS")); + + if (typeof asValue === "string") { + this.data.fieldValue = asValue; + } + + const yes = this.data.fieldValue !== null && this.data.fieldValue !== "Off" ? this.data.fieldValue : "Yes"; + const exportValues = normalAppearance.getKeys(); + + if (exportValues.length === 0) { + exportValues.push("Off", yes); + } else if (exportValues.length === 1) { + if (exportValues[0] === "Off") { + exportValues.push(yes); + } else { + exportValues.unshift("Off"); + } + } else if (exportValues.includes(yes)) { + exportValues.length = 0; + exportValues.push("Off", yes); + } else { + const otherYes = exportValues.find(v => v !== "Off"); + exportValues.length = 0; + exportValues.push("Off", otherYes); + } + + if (!exportValues.includes(this.data.fieldValue)) { + this.data.fieldValue = "Off"; + } + + this.data.exportValue = exportValues[1]; + this.checkedAppearance = normalAppearance.get(this.data.exportValue) || null; + this.uncheckedAppearance = normalAppearance.get("Off") || null; + + if (this.checkedAppearance) { + this._streams.push(this.checkedAppearance); + } else { + this._getDefaultCheckedAppearance(params, "check"); + } + + if (this.uncheckedAppearance) { + this._streams.push(this.uncheckedAppearance); + } + + this._fallbackFontDict = this.fallbackFontDict; + } + + _processRadioButton(params) { + this.data.fieldValue = this.data.buttonValue = null; + const fieldParent = params.dict.get("Parent"); + + if (fieldParent instanceof _primitives.Dict) { + this.parent = params.dict.getRaw("Parent"); + const fieldParentValue = fieldParent.get("V"); + + if (fieldParentValue instanceof _primitives.Name) { + this.data.fieldValue = this._decodeFormValue(fieldParentValue); + } + } + + const appearanceStates = params.dict.get("AP"); + + if (!(appearanceStates instanceof _primitives.Dict)) { + return; + } + + const normalAppearance = appearanceStates.get("N"); + + if (!(normalAppearance instanceof _primitives.Dict)) { + return; + } + + for (const key of normalAppearance.getKeys()) { + if (key !== "Off") { + this.data.buttonValue = this._decodeFormValue(key); + break; + } + } + + this.checkedAppearance = normalAppearance.get(this.data.buttonValue) || null; + this.uncheckedAppearance = normalAppearance.get("Off") || null; + + if (this.checkedAppearance) { + this._streams.push(this.checkedAppearance); + } else { + this._getDefaultCheckedAppearance(params, "disc"); + } + + if (this.uncheckedAppearance) { + this._streams.push(this.uncheckedAppearance); + } + + this._fallbackFontDict = this.fallbackFontDict; + } + + _processPushButton(params) { + if (!params.dict.has("A") && !params.dict.has("AA") && !this.data.alternativeText) { + (0, _util.warn)("Push buttons without action dictionaries are not supported"); + return; + } + + this.data.isTooltipOnly = !params.dict.has("A") && !params.dict.has("AA"); + + _catalog.Catalog.parseDestDictionary({ + destDict: params.dict, + resultObj: this.data, + docBaseUrl: params.pdfManager.docBaseUrl + }); + } + + getFieldObject() { + let type = "button"; + let exportValues; + + if (this.data.checkBox) { + type = "checkbox"; + exportValues = this.data.exportValue; + } else if (this.data.radioButton) { + type = "radiobutton"; + exportValues = this.data.buttonValue; + } + + return { + id: this.data.id, + value: this.data.fieldValue || "Off", + defaultValue: this.data.defaultFieldValue, + exportValues, + editable: !this.data.readOnly, + name: this.data.fieldName, + rect: this.data.rect, + hidden: this.data.hidden, + actions: this.data.actions, + page: this.data.pageIndex, + strokeColor: this.data.borderColor, + fillColor: this.data.backgroundColor, + rotation: this.rotation, + type + }; + } + + get fallbackFontDict() { + const dict = new _primitives.Dict(); + dict.set("BaseFont", _primitives.Name.get("ZapfDingbats")); + dict.set("Type", _primitives.Name.get("FallbackType")); + dict.set("Subtype", _primitives.Name.get("FallbackType")); + dict.set("Encoding", _primitives.Name.get("ZapfDingbatsEncoding")); + return (0, _util.shadow)(this, "fallbackFontDict", dict); + } + +} + +class ChoiceWidgetAnnotation extends WidgetAnnotation { + constructor(params) { + super(params); + this.data.options = []; + const options = (0, _core_utils.getInheritableProperty)({ + dict: params.dict, + key: "Opt" + }); + + if (Array.isArray(options)) { + const xref = params.xref; + + for (let i = 0, ii = options.length; i < ii; i++) { + const option = xref.fetchIfRef(options[i]); + const isOptionArray = Array.isArray(option); + this.data.options[i] = { + exportValue: this._decodeFormValue(isOptionArray ? xref.fetchIfRef(option[0]) : option), + displayValue: this._decodeFormValue(isOptionArray ? xref.fetchIfRef(option[1]) : option) + }; + } + } + + if (typeof this.data.fieldValue === "string") { + this.data.fieldValue = [this.data.fieldValue]; + } else if (!this.data.fieldValue) { + this.data.fieldValue = []; + } + + this.data.combo = this.hasFieldFlag(_util.AnnotationFieldFlag.COMBO); + this.data.multiSelect = this.hasFieldFlag(_util.AnnotationFieldFlag.MULTISELECT); + this._hasText = true; + } + + getFieldObject() { + const type = this.data.combo ? "combobox" : "listbox"; + const value = this.data.fieldValue.length > 0 ? this.data.fieldValue[0] : null; + return { + id: this.data.id, + value, + defaultValue: this.data.defaultFieldValue, + editable: !this.data.readOnly, + name: this.data.fieldName, + rect: this.data.rect, + numItems: this.data.fieldValue.length, + multipleSelection: this.data.multiSelect, + hidden: this.data.hidden, + actions: this.data.actions, + items: this.data.options, + page: this.data.pageIndex, + strokeColor: this.data.borderColor, + fillColor: this.data.backgroundColor, + rotation: this.rotation, + type + }; + } + + async _getAppearance(evaluator, task, annotationStorage) { + if (this.data.combo) { + return super._getAppearance(evaluator, task, annotationStorage); + } + + if (!annotationStorage) { + return null; + } + + const storageEntry = annotationStorage.get(this.data.id); + + if (!storageEntry) { + return null; + } + + const rotation = storageEntry.rotation; + let exportedValue = storageEntry.value; + + if (rotation === undefined && exportedValue === undefined) { + return null; + } + + if (exportedValue === undefined) { + exportedValue = this.data.fieldValue; + } else if (!Array.isArray(exportedValue)) { + exportedValue = [exportedValue]; + } + + const defaultPadding = 2; + const hPadding = defaultPadding; + let totalHeight = this.data.rect[3] - this.data.rect[1]; + let totalWidth = this.data.rect[2] - this.data.rect[0]; + + if (rotation === 90 || rotation === 270) { + [totalWidth, totalHeight] = [totalHeight, totalWidth]; + } + + const lineCount = this.data.options.length; + const valueIndices = []; + + for (let i = 0; i < lineCount; i++) { + const { + exportValue + } = this.data.options[i]; + + if (exportedValue.includes(exportValue)) { + valueIndices.push(i); + } + } + + if (!this._defaultAppearance) { + this.data.defaultAppearanceData = (0, _default_appearance.parseDefaultAppearance)(this._defaultAppearance = "/Helvetica 0 Tf 0 g"); + } + + const font = await WidgetAnnotation._getFontData(evaluator, task, this.data.defaultAppearanceData, this._fieldResources.mergedResources); + let defaultAppearance; + let { + fontSize + } = this.data.defaultAppearanceData; + + if (!fontSize) { + const lineHeight = (totalHeight - defaultPadding) / lineCount; + let lineWidth = -1; + let value; + + for (const { + displayValue + } of this.data.options) { + const width = this._getTextWidth(displayValue, font); + + if (width > lineWidth) { + lineWidth = width; + value = displayValue; + } + } + + [defaultAppearance, fontSize] = this._computeFontSize(lineHeight, totalWidth - 2 * hPadding, value, font, -1); + } else { + defaultAppearance = this._defaultAppearance; + } + + const lineHeight = fontSize * _util.LINE_FACTOR; + const vPadding = (lineHeight - fontSize) / 2; + const numberOfVisibleLines = Math.floor(totalHeight / lineHeight); + let firstIndex; + + if (valueIndices.length === 1) { + const valuePosition = valueIndices[0]; + const indexInPage = valuePosition % numberOfVisibleLines; + firstIndex = valuePosition - indexInPage; + } else { + firstIndex = valueIndices.length ? valueIndices[0] : 0; + } + + const end = Math.min(firstIndex + numberOfVisibleLines + 1, lineCount); + const buf = ["/Tx BMC q", `1 1 ${totalWidth} ${totalHeight} re W n`]; + + if (valueIndices.length) { + buf.push("0.600006 0.756866 0.854904 rg"); + + for (const index of valueIndices) { + if (firstIndex <= index && index < end) { + buf.push(`1 ${totalHeight - (index - firstIndex + 1) * lineHeight} ${totalWidth} ${lineHeight} re f`); + } + } + } + + buf.push("BT", defaultAppearance, `1 0 0 1 0 ${totalHeight} Tm`); + + for (let i = firstIndex; i < end; i++) { + const { + displayValue + } = this.data.options[i]; + const hpadding = i === firstIndex ? hPadding : 0; + const vpadding = i === firstIndex ? vPadding : 0; + buf.push(this._renderText(displayValue, font, fontSize, totalWidth, 0, hpadding, -lineHeight + vpadding)); + } + + buf.push("ET Q EMC"); + return buf.join("\n"); + } + +} + +class SignatureWidgetAnnotation extends WidgetAnnotation { + constructor(params) { + super(params); + this.data.fieldValue = null; + } + + getFieldObject() { + return { + id: this.data.id, + value: null, + page: this.data.pageIndex, + type: "signature" + }; + } + +} + +class TextAnnotation extends MarkupAnnotation { + constructor(parameters) { + const DEFAULT_ICON_SIZE = 22; + super(parameters); + const dict = parameters.dict; + this.data.annotationType = _util.AnnotationType.TEXT; + + if (this.data.hasAppearance) { + this.data.name = "NoIcon"; + } else { + this.data.rect[1] = this.data.rect[3] - DEFAULT_ICON_SIZE; + this.data.rect[2] = this.data.rect[0] + DEFAULT_ICON_SIZE; + this.data.name = dict.has("Name") ? dict.get("Name").name : "Note"; + } + + if (dict.has("State")) { + this.data.state = dict.get("State") || null; + this.data.stateModel = dict.get("StateModel") || null; + } else { + this.data.state = null; + this.data.stateModel = null; + } + } + +} + +class LinkAnnotation extends Annotation { + constructor(params) { + super(params); + this.data.annotationType = _util.AnnotationType.LINK; + const quadPoints = getQuadPoints(params.dict, this.rectangle); + + if (quadPoints) { + this.data.quadPoints = quadPoints; + } + + this.data.borderColor = this.data.borderColor || this.data.color; + + _catalog.Catalog.parseDestDictionary({ + destDict: params.dict, + resultObj: this.data, + docBaseUrl: params.pdfManager.docBaseUrl + }); + } + +} + +class PopupAnnotation extends Annotation { + constructor(parameters) { + super(parameters); + this.data.annotationType = _util.AnnotationType.POPUP; + let parentItem = parameters.dict.get("Parent"); + + if (!parentItem) { + (0, _util.warn)("Popup annotation has a missing or invalid parent annotation."); + return; + } + + const parentSubtype = parentItem.get("Subtype"); + this.data.parentType = parentSubtype instanceof _primitives.Name ? parentSubtype.name : null; + const rawParent = parameters.dict.getRaw("Parent"); + this.data.parentId = rawParent instanceof _primitives.Ref ? rawParent.toString() : null; + const parentRect = parentItem.getArray("Rect"); + + if (Array.isArray(parentRect) && parentRect.length === 4) { + this.data.parentRect = _util.Util.normalizeRect(parentRect); + } else { + this.data.parentRect = [0, 0, 0, 0]; + } + + const rt = parentItem.get("RT"); + + if ((0, _primitives.isName)(rt, _util.AnnotationReplyType.GROUP)) { + parentItem = parentItem.get("IRT"); + } + + if (!parentItem.has("M")) { + this.data.modificationDate = null; + } else { + this.setModificationDate(parentItem.get("M")); + this.data.modificationDate = this.modificationDate; + } + + if (!parentItem.has("C")) { + this.data.color = null; + } else { + this.setColor(parentItem.getArray("C")); + this.data.color = this.color; + } + + if (!this.viewable) { + const parentFlags = parentItem.get("F"); + + if (this._isViewable(parentFlags)) { + this.setFlags(parentFlags); + } + } + + this.setTitle(parentItem.get("T")); + this.data.titleObj = this._title; + this.setContents(parentItem.get("Contents")); + this.data.contentsObj = this._contents; + + if (parentItem.has("RC")) { + this.data.richText = _factory.XFAFactory.getRichTextAsHtml(parentItem.get("RC")); + } + } + +} + +exports.PopupAnnotation = PopupAnnotation; + +class FreeTextAnnotation extends MarkupAnnotation { + constructor(parameters) { + super(parameters); + this.data.annotationType = _util.AnnotationType.FREETEXT; + } + + get hasTextContent() { + return !!this.appearance; + } + + static createNewDict(annotation, xref, { + apRef, + ap + }) { + const { + color, + fontSize, + rect, + rotation, + user, + value + } = annotation; + const freetext = new _primitives.Dict(xref); + freetext.set("Type", _primitives.Name.get("Annot")); + freetext.set("Subtype", _primitives.Name.get("FreeText")); + freetext.set("CreationDate", `D:${(0, _util.getModificationDate)()}`); + freetext.set("Rect", rect); + const da = `/Helv ${fontSize} Tf ${(0, _default_appearance.getPdfColor)(color, true)}`; + freetext.set("DA", da); + freetext.set("Contents", value); + freetext.set("F", 4); + freetext.set("Border", [0, 0, 0]); + freetext.set("Rotate", rotation); + + if (user) { + freetext.set("T", (0, _util.stringToUTF8String)(user)); + } + + const n = new _primitives.Dict(xref); + freetext.set("AP", n); + + if (apRef) { + n.set("N", apRef); + } else { + n.set("N", ap); + } + + return freetext; + } + + static async createNewAppearanceStream(annotation, xref, params) { + const { + baseFontRef, + evaluator, + task + } = params; + const { + color, + fontSize, + rect, + rotation, + value + } = annotation; + const resources = new _primitives.Dict(xref); + const font = new _primitives.Dict(xref); + + if (baseFontRef) { + font.set("Helv", baseFontRef); + } else { + const baseFont = new _primitives.Dict(xref); + baseFont.set("BaseFont", _primitives.Name.get("Helvetica")); + baseFont.set("Type", _primitives.Name.get("Font")); + baseFont.set("Subtype", _primitives.Name.get("Type1")); + baseFont.set("Encoding", _primitives.Name.get("WinAnsiEncoding")); + font.set("Helv", baseFont); + } + + resources.set("Font", font); + const helv = await WidgetAnnotation._getFontData(evaluator, task, { + fontName: "Helvetica", + fontSize + }, resources); + const [x1, y1, x2, y2] = rect; + let w = x2 - x1; + let h = y2 - y1; + + if (rotation % 180 !== 0) { + [w, h] = [h, w]; + } + + const lines = value.split("\n"); + const scale = fontSize / 1000; + let totalWidth = -Infinity; + const encodedLines = []; + + for (let line of lines) { + line = helv.encodeString(line).join(""); + encodedLines.push(line); + let lineWidth = 0; + const glyphs = helv.charsToGlyphs(line); + + for (const glyph of glyphs) { + lineWidth += glyph.width * scale; + } + + totalWidth = Math.max(totalWidth, lineWidth); + } + + let hscale = 1; + + if (totalWidth > w) { + hscale = w / totalWidth; + } + + let vscale = 1; + const lineHeight = _util.LINE_FACTOR * fontSize; + const lineDescent = _util.LINE_DESCENT_FACTOR * fontSize; + const totalHeight = lineHeight * lines.length; + + if (totalHeight > h) { + vscale = h / totalHeight; + } + + const fscale = Math.min(hscale, vscale); + const newFontSize = fontSize * fscale; + const buffer = ["q", `0 0 ${(0, _core_utils.numberToString)(w)} ${(0, _core_utils.numberToString)(h)} re W n`, `BT`, `1 0 0 1 0 ${(0, _core_utils.numberToString)(h + lineDescent)} Tm 0 Tc ${(0, _default_appearance.getPdfColor)(color, true)}`, `/Helv ${(0, _core_utils.numberToString)(newFontSize)} Tf`]; + const vShift = (0, _core_utils.numberToString)(lineHeight); + + for (const line of encodedLines) { + buffer.push(`0 -${vShift} Td (${(0, _util.escapeString)(line)}) Tj`); + } + + buffer.push("ET", "Q"); + const appearance = buffer.join("\n"); + const appearanceStreamDict = new _primitives.Dict(xref); + appearanceStreamDict.set("FormType", 1); + appearanceStreamDict.set("Subtype", _primitives.Name.get("Form")); + appearanceStreamDict.set("Type", _primitives.Name.get("XObject")); + appearanceStreamDict.set("BBox", [0, 0, w, h]); + appearanceStreamDict.set("Length", appearance.length); + appearanceStreamDict.set("Resources", resources); + + if (rotation) { + const matrix = WidgetAnnotation._getRotationMatrix(rotation, w, h); + + appearanceStreamDict.set("Matrix", matrix); + } + + const ap = new _stream.StringStream(appearance); + ap.dict = appearanceStreamDict; + return ap; + } + +} + +class LineAnnotation extends MarkupAnnotation { + constructor(parameters) { + super(parameters); + const { + dict + } = parameters; + this.data.annotationType = _util.AnnotationType.LINE; + const lineCoordinates = dict.getArray("L"); + this.data.lineCoordinates = _util.Util.normalizeRect(lineCoordinates); + this.setLineEndings(dict.getArray("LE")); + this.data.lineEndings = this.lineEndings; + + if (!this.appearance) { + const strokeColor = this.color ? Array.from(this.color).map(c => c / 255) : [0, 0, 0]; + const strokeAlpha = dict.get("CA"); + let fillColor = null, + interiorColor = dict.getArray("IC"); + + if (interiorColor) { + interiorColor = getRgbColor(interiorColor, null); + fillColor = interiorColor ? Array.from(interiorColor).map(c => c / 255) : null; + } + + const fillAlpha = fillColor ? strokeAlpha : null; + const borderWidth = this.borderStyle.width || 1, + borderAdjust = 2 * borderWidth; + const bbox = [this.data.lineCoordinates[0] - borderAdjust, this.data.lineCoordinates[1] - borderAdjust, this.data.lineCoordinates[2] + borderAdjust, this.data.lineCoordinates[3] + borderAdjust]; + + if (!_util.Util.intersect(this.rectangle, bbox)) { + this.rectangle = bbox; + } + + this._setDefaultAppearance({ + xref: parameters.xref, + extra: `${borderWidth} w`, + strokeColor, + fillColor, + strokeAlpha, + fillAlpha, + pointsCallback: (buffer, points) => { + buffer.push(`${lineCoordinates[0]} ${lineCoordinates[1]} m`, `${lineCoordinates[2]} ${lineCoordinates[3]} l`, "S"); + return [points[0].x - borderWidth, points[1].x + borderWidth, points[3].y - borderWidth, points[1].y + borderWidth]; + } + }); + } + } + +} + +class SquareAnnotation extends MarkupAnnotation { + constructor(parameters) { + super(parameters); + this.data.annotationType = _util.AnnotationType.SQUARE; + + if (!this.appearance) { + const strokeColor = this.color ? Array.from(this.color).map(c => c / 255) : [0, 0, 0]; + const strokeAlpha = parameters.dict.get("CA"); + let fillColor = null, + interiorColor = parameters.dict.getArray("IC"); + + if (interiorColor) { + interiorColor = getRgbColor(interiorColor, null); + fillColor = interiorColor ? Array.from(interiorColor).map(c => c / 255) : null; + } + + const fillAlpha = fillColor ? strokeAlpha : null; + + if (this.borderStyle.width === 0 && !fillColor) { + return; + } + + this._setDefaultAppearance({ + xref: parameters.xref, + extra: `${this.borderStyle.width} w`, + strokeColor, + fillColor, + strokeAlpha, + fillAlpha, + pointsCallback: (buffer, points) => { + const x = points[2].x + this.borderStyle.width / 2; + const y = points[2].y + this.borderStyle.width / 2; + const width = points[3].x - points[2].x - this.borderStyle.width; + const height = points[1].y - points[3].y - this.borderStyle.width; + buffer.push(`${x} ${y} ${width} ${height} re`); + + if (fillColor) { + buffer.push("B"); + } else { + buffer.push("S"); + } + + return [points[0].x, points[1].x, points[3].y, points[1].y]; + } + }); + } + } + +} + +class CircleAnnotation extends MarkupAnnotation { + constructor(parameters) { + super(parameters); + this.data.annotationType = _util.AnnotationType.CIRCLE; + + if (!this.appearance) { + const strokeColor = this.color ? Array.from(this.color).map(c => c / 255) : [0, 0, 0]; + const strokeAlpha = parameters.dict.get("CA"); + let fillColor = null; + let interiorColor = parameters.dict.getArray("IC"); + + if (interiorColor) { + interiorColor = getRgbColor(interiorColor, null); + fillColor = interiorColor ? Array.from(interiorColor).map(c => c / 255) : null; + } + + const fillAlpha = fillColor ? strokeAlpha : null; + + if (this.borderStyle.width === 0 && !fillColor) { + return; + } + + const controlPointsDistance = 4 / 3 * Math.tan(Math.PI / (2 * 4)); + + this._setDefaultAppearance({ + xref: parameters.xref, + extra: `${this.borderStyle.width} w`, + strokeColor, + fillColor, + strokeAlpha, + fillAlpha, + pointsCallback: (buffer, points) => { + const x0 = points[0].x + this.borderStyle.width / 2; + const y0 = points[0].y - this.borderStyle.width / 2; + const x1 = points[3].x - this.borderStyle.width / 2; + const y1 = points[3].y + this.borderStyle.width / 2; + const xMid = x0 + (x1 - x0) / 2; + const yMid = y0 + (y1 - y0) / 2; + const xOffset = (x1 - x0) / 2 * controlPointsDistance; + const yOffset = (y1 - y0) / 2 * controlPointsDistance; + buffer.push(`${xMid} ${y1} m`, `${xMid + xOffset} ${y1} ${x1} ${yMid + yOffset} ${x1} ${yMid} c`, `${x1} ${yMid - yOffset} ${xMid + xOffset} ${y0} ${xMid} ${y0} c`, `${xMid - xOffset} ${y0} ${x0} ${yMid - yOffset} ${x0} ${yMid} c`, `${x0} ${yMid + yOffset} ${xMid - xOffset} ${y1} ${xMid} ${y1} c`, "h"); + + if (fillColor) { + buffer.push("B"); + } else { + buffer.push("S"); + } + + return [points[0].x, points[1].x, points[3].y, points[1].y]; + } + }); + } + } + +} + +class PolylineAnnotation extends MarkupAnnotation { + constructor(parameters) { + super(parameters); + const { + dict + } = parameters; + this.data.annotationType = _util.AnnotationType.POLYLINE; + this.data.vertices = []; + + if (!(this instanceof PolygonAnnotation)) { + this.setLineEndings(dict.getArray("LE")); + this.data.lineEndings = this.lineEndings; + } + + const rawVertices = dict.getArray("Vertices"); + + if (!Array.isArray(rawVertices)) { + return; + } + + for (let i = 0, ii = rawVertices.length; i < ii; i += 2) { + this.data.vertices.push({ + x: rawVertices[i], + y: rawVertices[i + 1] + }); + } + + if (!this.appearance) { + const strokeColor = this.color ? Array.from(this.color).map(c => c / 255) : [0, 0, 0]; + const strokeAlpha = dict.get("CA"); + const borderWidth = this.borderStyle.width || 1, + borderAdjust = 2 * borderWidth; + const bbox = [Infinity, Infinity, -Infinity, -Infinity]; + + for (const vertex of this.data.vertices) { + bbox[0] = Math.min(bbox[0], vertex.x - borderAdjust); + bbox[1] = Math.min(bbox[1], vertex.y - borderAdjust); + bbox[2] = Math.max(bbox[2], vertex.x + borderAdjust); + bbox[3] = Math.max(bbox[3], vertex.y + borderAdjust); + } + + if (!_util.Util.intersect(this.rectangle, bbox)) { + this.rectangle = bbox; + } + + this._setDefaultAppearance({ + xref: parameters.xref, + extra: `${borderWidth} w`, + strokeColor, + strokeAlpha, + pointsCallback: (buffer, points) => { + const vertices = this.data.vertices; + + for (let i = 0, ii = vertices.length; i < ii; i++) { + buffer.push(`${vertices[i].x} ${vertices[i].y} ${i === 0 ? "m" : "l"}`); + } + + buffer.push("S"); + return [points[0].x, points[1].x, points[3].y, points[1].y]; + } + }); + } + } + +} + +class PolygonAnnotation extends PolylineAnnotation { + constructor(parameters) { + super(parameters); + this.data.annotationType = _util.AnnotationType.POLYGON; + } + +} + +class CaretAnnotation extends MarkupAnnotation { + constructor(parameters) { + super(parameters); + this.data.annotationType = _util.AnnotationType.CARET; + } + +} + +class InkAnnotation extends MarkupAnnotation { + constructor(parameters) { + super(parameters); + this.data.annotationType = _util.AnnotationType.INK; + this.data.inkLists = []; + const rawInkLists = parameters.dict.getArray("InkList"); + + if (!Array.isArray(rawInkLists)) { + return; + } + + const xref = parameters.xref; + + for (let i = 0, ii = rawInkLists.length; i < ii; ++i) { + this.data.inkLists.push([]); + + for (let j = 0, jj = rawInkLists[i].length; j < jj; j += 2) { + this.data.inkLists[i].push({ + x: xref.fetchIfRef(rawInkLists[i][j]), + y: xref.fetchIfRef(rawInkLists[i][j + 1]) + }); + } + } + + if (!this.appearance) { + const strokeColor = this.color ? Array.from(this.color).map(c => c / 255) : [0, 0, 0]; + const strokeAlpha = parameters.dict.get("CA"); + const borderWidth = this.borderStyle.width || 1, + borderAdjust = 2 * borderWidth; + const bbox = [Infinity, Infinity, -Infinity, -Infinity]; + + for (const inkLists of this.data.inkLists) { + for (const vertex of inkLists) { + bbox[0] = Math.min(bbox[0], vertex.x - borderAdjust); + bbox[1] = Math.min(bbox[1], vertex.y - borderAdjust); + bbox[2] = Math.max(bbox[2], vertex.x + borderAdjust); + bbox[3] = Math.max(bbox[3], vertex.y + borderAdjust); + } + } + + if (!_util.Util.intersect(this.rectangle, bbox)) { + this.rectangle = bbox; + } + + this._setDefaultAppearance({ + xref: parameters.xref, + extra: `${borderWidth} w`, + strokeColor, + strokeAlpha, + pointsCallback: (buffer, points) => { + for (const inkList of this.data.inkLists) { + for (let i = 0, ii = inkList.length; i < ii; i++) { + buffer.push(`${inkList[i].x} ${inkList[i].y} ${i === 0 ? "m" : "l"}`); + } + + buffer.push("S"); + } + + return [points[0].x, points[1].x, points[3].y, points[1].y]; + } + }); + } + } + + static createNewDict(annotation, xref, { + apRef, + ap + }) { + const { + paths, + rect, + rotation + } = annotation; + const ink = new _primitives.Dict(xref); + ink.set("Type", _primitives.Name.get("Annot")); + ink.set("Subtype", _primitives.Name.get("Ink")); + ink.set("CreationDate", `D:${(0, _util.getModificationDate)()}`); + ink.set("Rect", rect); + ink.set("InkList", paths.map(p => p.points)); + ink.set("F", 4); + ink.set("Border", [0, 0, 0]); + ink.set("Rotate", rotation); + const n = new _primitives.Dict(xref); + ink.set("AP", n); + + if (apRef) { + n.set("N", apRef); + } else { + n.set("N", ap); + } + + return ink; + } + + static async createNewAppearanceStream(annotation, xref, params) { + const { + color, + rect, + rotation, + paths, + thickness, + opacity + } = annotation; + const [x1, y1, x2, y2] = rect; + let w = x2 - x1; + let h = y2 - y1; + + if (rotation % 180 !== 0) { + [w, h] = [h, w]; + } + + const appearanceBuffer = [`${thickness} w 1 J 1 j`, `${(0, _default_appearance.getPdfColor)(color, false)}`]; + + if (opacity !== 1) { + appearanceBuffer.push("/R0 gs"); + } + + const buffer = []; + + for (const { + bezier + } of paths) { + buffer.length = 0; + buffer.push(`${(0, _core_utils.numberToString)(bezier[0])} ${(0, _core_utils.numberToString)(bezier[1])} m`); + + for (let i = 2, ii = bezier.length; i < ii; i += 6) { + const curve = bezier.slice(i, i + 6).map(_core_utils.numberToString).join(" "); + buffer.push(`${curve} c`); + } + + buffer.push("S"); + appearanceBuffer.push(buffer.join("\n")); + } + + const appearance = appearanceBuffer.join("\n"); + const appearanceStreamDict = new _primitives.Dict(xref); + appearanceStreamDict.set("FormType", 1); + appearanceStreamDict.set("Subtype", _primitives.Name.get("Form")); + appearanceStreamDict.set("Type", _primitives.Name.get("XObject")); + appearanceStreamDict.set("BBox", [0, 0, w, h]); + appearanceStreamDict.set("Length", appearance.length); + + if (rotation) { + const matrix = WidgetAnnotation._getRotationMatrix(rotation, w, h); + + appearanceStreamDict.set("Matrix", matrix); + } + + if (opacity !== 1) { + const resources = new _primitives.Dict(xref); + const extGState = new _primitives.Dict(xref); + const r0 = new _primitives.Dict(xref); + r0.set("CA", opacity); + r0.set("Type", _primitives.Name.get("ExtGState")); + extGState.set("R0", r0); + resources.set("ExtGState", extGState); + appearanceStreamDict.set("Resources", resources); + } + + const ap = new _stream.StringStream(appearance); + ap.dict = appearanceStreamDict; + return ap; + } + +} + +class HighlightAnnotation extends MarkupAnnotation { + constructor(parameters) { + super(parameters); + this.data.annotationType = _util.AnnotationType.HIGHLIGHT; + const quadPoints = this.data.quadPoints = getQuadPoints(parameters.dict, null); + + if (quadPoints) { + const resources = this.appearance && this.appearance.dict.get("Resources"); + + if (!this.appearance || !(resources && resources.has("ExtGState"))) { + if (this.appearance) { + (0, _util.warn)("HighlightAnnotation - ignoring built-in appearance stream."); + } + + const fillColor = this.color ? Array.from(this.color).map(c => c / 255) : [1, 1, 0]; + const fillAlpha = parameters.dict.get("CA"); + + this._setDefaultAppearance({ + xref: parameters.xref, + fillColor, + blendMode: "Multiply", + fillAlpha, + pointsCallback: (buffer, points) => { + buffer.push(`${points[0].x} ${points[0].y} m`, `${points[1].x} ${points[1].y} l`, `${points[3].x} ${points[3].y} l`, `${points[2].x} ${points[2].y} l`, "f"); + return [points[0].x, points[1].x, points[3].y, points[1].y]; + } + }); + } + } else { + this.data.hasPopup = false; + } + } + +} + +class UnderlineAnnotation extends MarkupAnnotation { + constructor(parameters) { + super(parameters); + this.data.annotationType = _util.AnnotationType.UNDERLINE; + const quadPoints = this.data.quadPoints = getQuadPoints(parameters.dict, null); + + if (quadPoints) { + if (!this.appearance) { + const strokeColor = this.color ? Array.from(this.color).map(c => c / 255) : [0, 0, 0]; + const strokeAlpha = parameters.dict.get("CA"); + + this._setDefaultAppearance({ + xref: parameters.xref, + extra: "[] 0 d 1 w", + strokeColor, + strokeAlpha, + pointsCallback: (buffer, points) => { + buffer.push(`${points[2].x} ${points[2].y} m`, `${points[3].x} ${points[3].y} l`, "S"); + return [points[0].x, points[1].x, points[3].y, points[1].y]; + } + }); + } + } else { + this.data.hasPopup = false; + } + } + +} + +class SquigglyAnnotation extends MarkupAnnotation { + constructor(parameters) { + super(parameters); + this.data.annotationType = _util.AnnotationType.SQUIGGLY; + const quadPoints = this.data.quadPoints = getQuadPoints(parameters.dict, null); + + if (quadPoints) { + if (!this.appearance) { + const strokeColor = this.color ? Array.from(this.color).map(c => c / 255) : [0, 0, 0]; + const strokeAlpha = parameters.dict.get("CA"); + + this._setDefaultAppearance({ + xref: parameters.xref, + extra: "[] 0 d 1 w", + strokeColor, + strokeAlpha, + pointsCallback: (buffer, points) => { + const dy = (points[0].y - points[2].y) / 6; + let shift = dy; + let x = points[2].x; + const y = points[2].y; + const xEnd = points[3].x; + buffer.push(`${x} ${y + shift} m`); + + do { + x += 2; + shift = shift === 0 ? dy : 0; + buffer.push(`${x} ${y + shift} l`); + } while (x < xEnd); + + buffer.push("S"); + return [points[2].x, xEnd, y - 2 * dy, y + 2 * dy]; + } + }); + } + } else { + this.data.hasPopup = false; + } + } + +} + +class StrikeOutAnnotation extends MarkupAnnotation { + constructor(parameters) { + super(parameters); + this.data.annotationType = _util.AnnotationType.STRIKEOUT; + const quadPoints = this.data.quadPoints = getQuadPoints(parameters.dict, null); + + if (quadPoints) { + if (!this.appearance) { + const strokeColor = this.color ? Array.from(this.color).map(c => c / 255) : [0, 0, 0]; + const strokeAlpha = parameters.dict.get("CA"); + + this._setDefaultAppearance({ + xref: parameters.xref, + extra: "[] 0 d 1 w", + strokeColor, + strokeAlpha, + pointsCallback: (buffer, points) => { + buffer.push(`${(points[0].x + points[2].x) / 2} ` + `${(points[0].y + points[2].y) / 2} m`, `${(points[1].x + points[3].x) / 2} ` + `${(points[1].y + points[3].y) / 2} l`, "S"); + return [points[0].x, points[1].x, points[3].y, points[1].y]; + } + }); + } + } else { + this.data.hasPopup = false; + } + } + +} + +class StampAnnotation extends MarkupAnnotation { + constructor(parameters) { + super(parameters); + this.data.annotationType = _util.AnnotationType.STAMP; + } + +} + +class FileAttachmentAnnotation extends MarkupAnnotation { + constructor(parameters) { + super(parameters); + const file = new _file_spec.FileSpec(parameters.dict.get("FS"), parameters.xref); + this.data.annotationType = _util.AnnotationType.FILEATTACHMENT; + this.data.file = file.serializable; + } + +} + +/***/ }), +/* 13 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.createDefaultAppearance = createDefaultAppearance; +exports.getPdfColor = getPdfColor; +exports.parseDefaultAppearance = parseDefaultAppearance; + +var _core_utils = __w_pdfjs_require__(6); + +var _util = __w_pdfjs_require__(2); + +var _colorspace = __w_pdfjs_require__(14); + +var _evaluator = __w_pdfjs_require__(15); + +var _primitives = __w_pdfjs_require__(5); + +var _stream = __w_pdfjs_require__(10); + +class DefaultAppearanceEvaluator extends _evaluator.EvaluatorPreprocessor { + constructor(str) { + super(new _stream.StringStream(str)); + } + + parse() { + const operation = { + fn: 0, + args: [] + }; + const result = { + fontSize: 0, + fontName: "", + fontColor: new Uint8ClampedArray(3) + }; + + try { + while (true) { + operation.args.length = 0; + + if (!this.read(operation)) { + break; + } + + if (this.savedStatesDepth !== 0) { + continue; + } + + const { + fn, + args + } = operation; + + switch (fn | 0) { + case _util.OPS.setFont: + const [fontName, fontSize] = args; + + if (fontName instanceof _primitives.Name) { + result.fontName = fontName.name; + } + + if (typeof fontSize === "number" && fontSize > 0) { + result.fontSize = fontSize; + } + + break; + + case _util.OPS.setFillRGBColor: + _colorspace.ColorSpace.singletons.rgb.getRgbItem(args, 0, result.fontColor, 0); + + break; + + case _util.OPS.setFillGray: + _colorspace.ColorSpace.singletons.gray.getRgbItem(args, 0, result.fontColor, 0); + + break; + + case _util.OPS.setFillColorSpace: + _colorspace.ColorSpace.singletons.cmyk.getRgbItem(args, 0, result.fontColor, 0); + + break; + } + } + } catch (reason) { + (0, _util.warn)(`parseDefaultAppearance - ignoring errors: "${reason}".`); + } + + return result; + } + +} + +function parseDefaultAppearance(str) { + return new DefaultAppearanceEvaluator(str).parse(); +} + +function getPdfColor(color, isFill) { + if (color[0] === color[1] && color[1] === color[2]) { + const gray = color[0] / 255; + return `${(0, _core_utils.numberToString)(gray)} ${isFill ? "g" : "G"}`; + } + + return Array.from(color).map(c => (0, _core_utils.numberToString)(c / 255)).join(" ") + ` ${isFill ? "rg" : "RG"}`; +} + +function createDefaultAppearance({ + fontSize, + fontName, + fontColor +}) { + return `/${(0, _core_utils.escapePDFName)(fontName)} ${fontSize} Tf ${getPdfColor(fontColor, true)}`; +} + +/***/ }), +/* 14 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ColorSpace = void 0; + +var _util = __w_pdfjs_require__(2); + +var _primitives = __w_pdfjs_require__(5); + +var _base_stream = __w_pdfjs_require__(7); + +var _core_utils = __w_pdfjs_require__(6); + +function resizeRgbImage(src, dest, w1, h1, w2, h2, alpha01) { + const COMPONENTS = 3; + alpha01 = alpha01 !== 1 ? 0 : alpha01; + const xRatio = w1 / w2; + const yRatio = h1 / h2; + let newIndex = 0, + oldIndex; + const xScaled = new Uint16Array(w2); + const w1Scanline = w1 * COMPONENTS; + + for (let i = 0; i < w2; i++) { + xScaled[i] = Math.floor(i * xRatio) * COMPONENTS; + } + + for (let i = 0; i < h2; i++) { + const py = Math.floor(i * yRatio) * w1Scanline; + + for (let j = 0; j < w2; j++) { + oldIndex = py + xScaled[j]; + dest[newIndex++] = src[oldIndex++]; + dest[newIndex++] = src[oldIndex++]; + dest[newIndex++] = src[oldIndex++]; + newIndex += alpha01; + } + } +} + +class ColorSpace { + constructor(name, numComps) { + if (this.constructor === ColorSpace) { + (0, _util.unreachable)("Cannot initialize ColorSpace."); + } + + this.name = name; + this.numComps = numComps; + } + + getRgb(src, srcOffset) { + const rgb = new Uint8ClampedArray(3); + this.getRgbItem(src, srcOffset, rgb, 0); + return rgb; + } + + getRgbItem(src, srcOffset, dest, destOffset) { + (0, _util.unreachable)("Should not call ColorSpace.getRgbItem"); + } + + getRgbBuffer(src, srcOffset, count, dest, destOffset, bits, alpha01) { + (0, _util.unreachable)("Should not call ColorSpace.getRgbBuffer"); + } + + getOutputLength(inputLength, alpha01) { + (0, _util.unreachable)("Should not call ColorSpace.getOutputLength"); + } + + isPassthrough(bits) { + return false; + } + + isDefaultDecode(decodeMap, bpc) { + return ColorSpace.isDefaultDecode(decodeMap, this.numComps); + } + + fillRgb(dest, originalWidth, originalHeight, width, height, actualHeight, bpc, comps, alpha01) { + const count = originalWidth * originalHeight; + let rgbBuf = null; + const numComponentColors = 1 << bpc; + const needsResizing = originalHeight !== height || originalWidth !== width; + + if (this.isPassthrough(bpc)) { + rgbBuf = comps; + } else if (this.numComps === 1 && count > numComponentColors && this.name !== "DeviceGray" && this.name !== "DeviceRGB") { + const allColors = bpc <= 8 ? new Uint8Array(numComponentColors) : new Uint16Array(numComponentColors); + + for (let i = 0; i < numComponentColors; i++) { + allColors[i] = i; + } + + const colorMap = new Uint8ClampedArray(numComponentColors * 3); + this.getRgbBuffer(allColors, 0, numComponentColors, colorMap, 0, bpc, 0); + + if (!needsResizing) { + let destPos = 0; + + for (let i = 0; i < count; ++i) { + const key = comps[i] * 3; + dest[destPos++] = colorMap[key]; + dest[destPos++] = colorMap[key + 1]; + dest[destPos++] = colorMap[key + 2]; + destPos += alpha01; + } + } else { + rgbBuf = new Uint8Array(count * 3); + let rgbPos = 0; + + for (let i = 0; i < count; ++i) { + const key = comps[i] * 3; + rgbBuf[rgbPos++] = colorMap[key]; + rgbBuf[rgbPos++] = colorMap[key + 1]; + rgbBuf[rgbPos++] = colorMap[key + 2]; + } + } + } else { + if (!needsResizing) { + this.getRgbBuffer(comps, 0, width * actualHeight, dest, 0, bpc, alpha01); + } else { + rgbBuf = new Uint8ClampedArray(count * 3); + this.getRgbBuffer(comps, 0, count, rgbBuf, 0, bpc, 0); + } + } + + if (rgbBuf) { + if (needsResizing) { + resizeRgbImage(rgbBuf, dest, originalWidth, originalHeight, width, height, alpha01); + } else { + let destPos = 0, + rgbPos = 0; + + for (let i = 0, ii = width * actualHeight; i < ii; i++) { + dest[destPos++] = rgbBuf[rgbPos++]; + dest[destPos++] = rgbBuf[rgbPos++]; + dest[destPos++] = rgbBuf[rgbPos++]; + destPos += alpha01; + } + } + } + } + + get usesZeroToOneRange() { + return (0, _util.shadow)(this, "usesZeroToOneRange", true); + } + + static _cache(cacheKey, xref, localColorSpaceCache, parsedColorSpace) { + if (!localColorSpaceCache) { + throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.'); + } + + if (!parsedColorSpace) { + throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.'); + } + + let csName, csRef; + + if (cacheKey instanceof _primitives.Ref) { + csRef = cacheKey; + cacheKey = xref.fetch(cacheKey); + } + + if (cacheKey instanceof _primitives.Name) { + csName = cacheKey.name; + } + + if (csName || csRef) { + localColorSpaceCache.set(csName, csRef, parsedColorSpace); + } + } + + static getCached(cacheKey, xref, localColorSpaceCache) { + if (!localColorSpaceCache) { + throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.'); + } + + if (cacheKey instanceof _primitives.Ref) { + const localColorSpace = localColorSpaceCache.getByRef(cacheKey); + + if (localColorSpace) { + return localColorSpace; + } + + try { + cacheKey = xref.fetch(cacheKey); + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + } + } + + if (cacheKey instanceof _primitives.Name) { + const localColorSpace = localColorSpaceCache.getByName(cacheKey.name); + + if (localColorSpace) { + return localColorSpace; + } + } + + return null; + } + + static async parseAsync({ + cs, + xref, + resources = null, + pdfFunctionFactory, + localColorSpaceCache + }) { + const parsedColorSpace = this._parse(cs, xref, resources, pdfFunctionFactory); + + this._cache(cs, xref, localColorSpaceCache, parsedColorSpace); + + return parsedColorSpace; + } + + static parse({ + cs, + xref, + resources = null, + pdfFunctionFactory, + localColorSpaceCache + }) { + const cachedColorSpace = this.getCached(cs, xref, localColorSpaceCache); + + if (cachedColorSpace) { + return cachedColorSpace; + } + + const parsedColorSpace = this._parse(cs, xref, resources, pdfFunctionFactory); + + this._cache(cs, xref, localColorSpaceCache, parsedColorSpace); + + return parsedColorSpace; + } + + static _parse(cs, xref, resources = null, pdfFunctionFactory) { + cs = xref.fetchIfRef(cs); + + if (cs instanceof _primitives.Name) { + switch (cs.name) { + case "G": + case "DeviceGray": + return this.singletons.gray; + + case "RGB": + case "DeviceRGB": + return this.singletons.rgb; + + case "CMYK": + case "DeviceCMYK": + return this.singletons.cmyk; + + case "Pattern": + return new PatternCS(null); + + default: + if (resources instanceof _primitives.Dict) { + const colorSpaces = resources.get("ColorSpace"); + + if (colorSpaces instanceof _primitives.Dict) { + const resourcesCS = colorSpaces.get(cs.name); + + if (resourcesCS) { + if (resourcesCS instanceof _primitives.Name) { + return this._parse(resourcesCS, xref, resources, pdfFunctionFactory); + } + + cs = resourcesCS; + break; + } + } + } + + throw new _util.FormatError(`Unrecognized ColorSpace: ${cs.name}`); + } + } + + if (Array.isArray(cs)) { + const mode = xref.fetchIfRef(cs[0]).name; + let params, numComps, baseCS, whitePoint, blackPoint, gamma; + + switch (mode) { + case "G": + case "DeviceGray": + return this.singletons.gray; + + case "RGB": + case "DeviceRGB": + return this.singletons.rgb; + + case "CMYK": + case "DeviceCMYK": + return this.singletons.cmyk; + + case "CalGray": + params = xref.fetchIfRef(cs[1]); + whitePoint = params.getArray("WhitePoint"); + blackPoint = params.getArray("BlackPoint"); + gamma = params.get("Gamma"); + return new CalGrayCS(whitePoint, blackPoint, gamma); + + case "CalRGB": + params = xref.fetchIfRef(cs[1]); + whitePoint = params.getArray("WhitePoint"); + blackPoint = params.getArray("BlackPoint"); + gamma = params.getArray("Gamma"); + const matrix = params.getArray("Matrix"); + return new CalRGBCS(whitePoint, blackPoint, gamma, matrix); + + case "ICCBased": + const stream = xref.fetchIfRef(cs[1]); + const dict = stream.dict; + numComps = dict.get("N"); + const alt = dict.get("Alternate"); + + if (alt) { + const altCS = this._parse(alt, xref, resources, pdfFunctionFactory); + + if (altCS.numComps === numComps) { + return altCS; + } + + (0, _util.warn)("ICCBased color space: Ignoring incorrect /Alternate entry."); + } + + if (numComps === 1) { + return this.singletons.gray; + } else if (numComps === 3) { + return this.singletons.rgb; + } else if (numComps === 4) { + return this.singletons.cmyk; + } + + break; + + case "Pattern": + baseCS = cs[1] || null; + + if (baseCS) { + baseCS = this._parse(baseCS, xref, resources, pdfFunctionFactory); + } + + return new PatternCS(baseCS); + + case "I": + case "Indexed": + baseCS = this._parse(cs[1], xref, resources, pdfFunctionFactory); + const hiVal = xref.fetchIfRef(cs[2]) + 1; + const lookup = xref.fetchIfRef(cs[3]); + return new IndexedCS(baseCS, hiVal, lookup); + + case "Separation": + case "DeviceN": + const name = xref.fetchIfRef(cs[1]); + numComps = Array.isArray(name) ? name.length : 1; + baseCS = this._parse(cs[2], xref, resources, pdfFunctionFactory); + const tintFn = pdfFunctionFactory.create(cs[3]); + return new AlternateCS(numComps, baseCS, tintFn); + + case "Lab": + params = xref.fetchIfRef(cs[1]); + whitePoint = params.getArray("WhitePoint"); + blackPoint = params.getArray("BlackPoint"); + const range = params.getArray("Range"); + return new LabCS(whitePoint, blackPoint, range); + + default: + throw new _util.FormatError(`Unimplemented ColorSpace object: ${mode}`); + } + } + + throw new _util.FormatError(`Unrecognized ColorSpace object: ${cs}`); + } + + static isDefaultDecode(decode, numComps) { + if (!Array.isArray(decode)) { + return true; + } + + if (numComps * 2 !== decode.length) { + (0, _util.warn)("The decode map is not the correct length"); + return true; + } + + for (let i = 0, ii = decode.length; i < ii; i += 2) { + if (decode[i] !== 0 || decode[i + 1] !== 1) { + return false; + } + } + + return true; + } + + static get singletons() { + return (0, _util.shadow)(this, "singletons", { + get gray() { + return (0, _util.shadow)(this, "gray", new DeviceGrayCS()); + }, + + get rgb() { + return (0, _util.shadow)(this, "rgb", new DeviceRgbCS()); + }, + + get cmyk() { + return (0, _util.shadow)(this, "cmyk", new DeviceCmykCS()); + } + + }); + } + +} + +exports.ColorSpace = ColorSpace; + +class AlternateCS extends ColorSpace { + constructor(numComps, base, tintFn) { + super("Alternate", numComps); + this.base = base; + this.tintFn = tintFn; + this.tmpBuf = new Float32Array(base.numComps); + } + + getRgbItem(src, srcOffset, dest, destOffset) { + const tmpBuf = this.tmpBuf; + this.tintFn(src, srcOffset, tmpBuf, 0); + this.base.getRgbItem(tmpBuf, 0, dest, destOffset); + } + + getRgbBuffer(src, srcOffset, count, dest, destOffset, bits, alpha01) { + const tintFn = this.tintFn; + const base = this.base; + const scale = 1 / ((1 << bits) - 1); + const baseNumComps = base.numComps; + const usesZeroToOneRange = base.usesZeroToOneRange; + const isPassthrough = (base.isPassthrough(8) || !usesZeroToOneRange) && alpha01 === 0; + let pos = isPassthrough ? destOffset : 0; + const baseBuf = isPassthrough ? dest : new Uint8ClampedArray(baseNumComps * count); + const numComps = this.numComps; + const scaled = new Float32Array(numComps); + const tinted = new Float32Array(baseNumComps); + let i, j; + + for (i = 0; i < count; i++) { + for (j = 0; j < numComps; j++) { + scaled[j] = src[srcOffset++] * scale; + } + + tintFn(scaled, 0, tinted, 0); + + if (usesZeroToOneRange) { + for (j = 0; j < baseNumComps; j++) { + baseBuf[pos++] = tinted[j] * 255; + } + } else { + base.getRgbItem(tinted, 0, baseBuf, pos); + pos += baseNumComps; + } + } + + if (!isPassthrough) { + base.getRgbBuffer(baseBuf, 0, count, dest, destOffset, 8, alpha01); + } + } + + getOutputLength(inputLength, alpha01) { + return this.base.getOutputLength(inputLength * this.base.numComps / this.numComps, alpha01); + } + +} + +class PatternCS extends ColorSpace { + constructor(baseCS) { + super("Pattern", null); + this.base = baseCS; + } + + isDefaultDecode(decodeMap, bpc) { + (0, _util.unreachable)("Should not call PatternCS.isDefaultDecode"); + } + +} + +class IndexedCS extends ColorSpace { + constructor(base, highVal, lookup) { + super("Indexed", 1); + this.base = base; + this.highVal = highVal; + const length = base.numComps * highVal; + this.lookup = new Uint8Array(length); + + if (lookup instanceof _base_stream.BaseStream) { + const bytes = lookup.getBytes(length); + this.lookup.set(bytes); + } else if (typeof lookup === "string") { + for (let i = 0; i < length; ++i) { + this.lookup[i] = lookup.charCodeAt(i) & 0xff; + } + } else { + throw new _util.FormatError(`IndexedCS - unrecognized lookup table: ${lookup}`); + } + } + + getRgbItem(src, srcOffset, dest, destOffset) { + const numComps = this.base.numComps; + const start = src[srcOffset] * numComps; + this.base.getRgbBuffer(this.lookup, start, 1, dest, destOffset, 8, 0); + } + + getRgbBuffer(src, srcOffset, count, dest, destOffset, bits, alpha01) { + const base = this.base; + const numComps = base.numComps; + const outputDelta = base.getOutputLength(numComps, alpha01); + const lookup = this.lookup; + + for (let i = 0; i < count; ++i) { + const lookupPos = src[srcOffset++] * numComps; + base.getRgbBuffer(lookup, lookupPos, 1, dest, destOffset, 8, alpha01); + destOffset += outputDelta; + } + } + + getOutputLength(inputLength, alpha01) { + return this.base.getOutputLength(inputLength * this.base.numComps, alpha01); + } + + isDefaultDecode(decodeMap, bpc) { + if (!Array.isArray(decodeMap)) { + return true; + } + + if (decodeMap.length !== 2) { + (0, _util.warn)("Decode map length is not correct"); + return true; + } + + if (!Number.isInteger(bpc) || bpc < 1) { + (0, _util.warn)("Bits per component is not correct"); + return true; + } + + return decodeMap[0] === 0 && decodeMap[1] === (1 << bpc) - 1; + } + +} + +class DeviceGrayCS extends ColorSpace { + constructor() { + super("DeviceGray", 1); + } + + getRgbItem(src, srcOffset, dest, destOffset) { + const c = src[srcOffset] * 255; + dest[destOffset] = dest[destOffset + 1] = dest[destOffset + 2] = c; + } + + getRgbBuffer(src, srcOffset, count, dest, destOffset, bits, alpha01) { + const scale = 255 / ((1 << bits) - 1); + let j = srcOffset, + q = destOffset; + + for (let i = 0; i < count; ++i) { + const c = scale * src[j++]; + dest[q++] = c; + dest[q++] = c; + dest[q++] = c; + q += alpha01; + } + } + + getOutputLength(inputLength, alpha01) { + return inputLength * (3 + alpha01); + } + +} + +class DeviceRgbCS extends ColorSpace { + constructor() { + super("DeviceRGB", 3); + } + + getRgbItem(src, srcOffset, dest, destOffset) { + dest[destOffset] = src[srcOffset] * 255; + dest[destOffset + 1] = src[srcOffset + 1] * 255; + dest[destOffset + 2] = src[srcOffset + 2] * 255; + } + + getRgbBuffer(src, srcOffset, count, dest, destOffset, bits, alpha01) { + if (bits === 8 && alpha01 === 0) { + dest.set(src.subarray(srcOffset, srcOffset + count * 3), destOffset); + return; + } + + const scale = 255 / ((1 << bits) - 1); + let j = srcOffset, + q = destOffset; + + for (let i = 0; i < count; ++i) { + dest[q++] = scale * src[j++]; + dest[q++] = scale * src[j++]; + dest[q++] = scale * src[j++]; + q += alpha01; + } + } + + getOutputLength(inputLength, alpha01) { + return inputLength * (3 + alpha01) / 3 | 0; + } + + isPassthrough(bits) { + return bits === 8; + } + +} + +const DeviceCmykCS = function DeviceCmykCSClosure() { + function convertToRgb(src, srcOffset, srcScale, dest, destOffset) { + const c = src[srcOffset] * srcScale; + const m = src[srcOffset + 1] * srcScale; + const y = src[srcOffset + 2] * srcScale; + const k = src[srcOffset + 3] * srcScale; + dest[destOffset] = 255 + c * (-4.387332384609988 * c + 54.48615194189176 * m + 18.82290502165302 * y + 212.25662451639585 * k + -285.2331026137004) + m * (1.7149763477362134 * m - 5.6096736904047315 * y + -17.873870861415444 * k - 5.497006427196366) + y * (-2.5217340131683033 * y - 21.248923337353073 * k + 17.5119270841813) + k * (-21.86122147463605 * k - 189.48180835922747); + dest[destOffset + 1] = 255 + c * (8.841041422036149 * c + 60.118027045597366 * m + 6.871425592049007 * y + 31.159100130055922 * k + -79.2970844816548) + m * (-15.310361306967817 * m + 17.575251261109482 * y + 131.35250912493976 * k - 190.9453302588951) + y * (4.444339102852739 * y + 9.8632861493405 * k - 24.86741582555878) + k * (-20.737325471181034 * k - 187.80453709719578); + dest[destOffset + 2] = 255 + c * (0.8842522430003296 * c + 8.078677503112928 * m + 30.89978309703729 * y - 0.23883238689178934 * k + -14.183576799673286) + m * (10.49593273432072 * m + 63.02378494754052 * y + 50.606957656360734 * k - 112.23884253719248) + y * (0.03296041114873217 * y + 115.60384449646641 * k + -193.58209356861505) + k * (-22.33816807309886 * k - 180.12613974708367); + } + + class DeviceCmykCS extends ColorSpace { + constructor() { + super("DeviceCMYK", 4); + } + + getRgbItem(src, srcOffset, dest, destOffset) { + convertToRgb(src, srcOffset, 1, dest, destOffset); + } + + getRgbBuffer(src, srcOffset, count, dest, destOffset, bits, alpha01) { + const scale = 1 / ((1 << bits) - 1); + + for (let i = 0; i < count; i++) { + convertToRgb(src, srcOffset, scale, dest, destOffset); + srcOffset += 4; + destOffset += 3 + alpha01; + } + } + + getOutputLength(inputLength, alpha01) { + return inputLength / 4 * (3 + alpha01) | 0; + } + + } + + return DeviceCmykCS; +}(); + +const CalGrayCS = function CalGrayCSClosure() { + function convertToRgb(cs, src, srcOffset, dest, destOffset, scale) { + const A = src[srcOffset] * scale; + const AG = A ** cs.G; + const L = cs.YW * AG; + const val = Math.max(295.8 * L ** 0.3333333333333333 - 40.8, 0); + dest[destOffset] = val; + dest[destOffset + 1] = val; + dest[destOffset + 2] = val; + } + + class CalGrayCS extends ColorSpace { + constructor(whitePoint, blackPoint, gamma) { + super("CalGray", 1); + + if (!whitePoint) { + throw new _util.FormatError("WhitePoint missing - required for color space CalGray"); + } + + blackPoint = blackPoint || [0, 0, 0]; + gamma = gamma || 1; + this.XW = whitePoint[0]; + this.YW = whitePoint[1]; + this.ZW = whitePoint[2]; + this.XB = blackPoint[0]; + this.YB = blackPoint[1]; + this.ZB = blackPoint[2]; + this.G = gamma; + + if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) { + throw new _util.FormatError(`Invalid WhitePoint components for ${this.name}` + ", no fallback available"); + } + + if (this.XB < 0 || this.YB < 0 || this.ZB < 0) { + (0, _util.info)(`Invalid BlackPoint for ${this.name}, falling back to default.`); + this.XB = this.YB = this.ZB = 0; + } + + if (this.XB !== 0 || this.YB !== 0 || this.ZB !== 0) { + (0, _util.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ` + `ZB: ${this.ZB}, only default values are supported.`); + } + + if (this.G < 1) { + (0, _util.info)(`Invalid Gamma: ${this.G} for ${this.name}, ` + "falling back to default."); + this.G = 1; + } + } + + getRgbItem(src, srcOffset, dest, destOffset) { + convertToRgb(this, src, srcOffset, dest, destOffset, 1); + } + + getRgbBuffer(src, srcOffset, count, dest, destOffset, bits, alpha01) { + const scale = 1 / ((1 << bits) - 1); + + for (let i = 0; i < count; ++i) { + convertToRgb(this, src, srcOffset, dest, destOffset, scale); + srcOffset += 1; + destOffset += 3 + alpha01; + } + } + + getOutputLength(inputLength, alpha01) { + return inputLength * (3 + alpha01); + } + + } + + return CalGrayCS; +}(); + +const CalRGBCS = function CalRGBCSClosure() { + const BRADFORD_SCALE_MATRIX = new Float32Array([0.8951, 0.2664, -0.1614, -0.7502, 1.7135, 0.0367, 0.0389, -0.0685, 1.0296]); + const BRADFORD_SCALE_INVERSE_MATRIX = new Float32Array([0.9869929, -0.1470543, 0.1599627, 0.4323053, 0.5183603, 0.0492912, -0.0085287, 0.0400428, 0.9684867]); + const SRGB_D65_XYZ_TO_RGB_MATRIX = new Float32Array([3.2404542, -1.5371385, -0.4985314, -0.9692660, 1.8760108, 0.0415560, 0.0556434, -0.2040259, 1.0572252]); + const FLAT_WHITEPOINT_MATRIX = new Float32Array([1, 1, 1]); + const tempNormalizeMatrix = new Float32Array(3); + const tempConvertMatrix1 = new Float32Array(3); + const tempConvertMatrix2 = new Float32Array(3); + const DECODE_L_CONSTANT = ((8 + 16) / 116) ** 3 / 8.0; + + function matrixProduct(a, b, result) { + result[0] = a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; + result[1] = a[3] * b[0] + a[4] * b[1] + a[5] * b[2]; + result[2] = a[6] * b[0] + a[7] * b[1] + a[8] * b[2]; + } + + function convertToFlat(sourceWhitePoint, LMS, result) { + result[0] = LMS[0] * 1 / sourceWhitePoint[0]; + result[1] = LMS[1] * 1 / sourceWhitePoint[1]; + result[2] = LMS[2] * 1 / sourceWhitePoint[2]; + } + + function convertToD65(sourceWhitePoint, LMS, result) { + const D65X = 0.95047; + const D65Y = 1; + const D65Z = 1.08883; + result[0] = LMS[0] * D65X / sourceWhitePoint[0]; + result[1] = LMS[1] * D65Y / sourceWhitePoint[1]; + result[2] = LMS[2] * D65Z / sourceWhitePoint[2]; + } + + function sRGBTransferFunction(color) { + if (color <= 0.0031308) { + return adjustToRange(0, 1, 12.92 * color); + } + + if (color >= 0.99554525) { + return 1; + } + + return adjustToRange(0, 1, (1 + 0.055) * color ** (1 / 2.4) - 0.055); + } + + function adjustToRange(min, max, value) { + return Math.max(min, Math.min(max, value)); + } + + function decodeL(L) { + if (L < 0) { + return -decodeL(-L); + } + + if (L > 8.0) { + return ((L + 16) / 116) ** 3; + } + + return L * DECODE_L_CONSTANT; + } + + function compensateBlackPoint(sourceBlackPoint, XYZ_Flat, result) { + if (sourceBlackPoint[0] === 0 && sourceBlackPoint[1] === 0 && sourceBlackPoint[2] === 0) { + result[0] = XYZ_Flat[0]; + result[1] = XYZ_Flat[1]; + result[2] = XYZ_Flat[2]; + return; + } + + const zeroDecodeL = decodeL(0); + const X_DST = zeroDecodeL; + const X_SRC = decodeL(sourceBlackPoint[0]); + const Y_DST = zeroDecodeL; + const Y_SRC = decodeL(sourceBlackPoint[1]); + const Z_DST = zeroDecodeL; + const Z_SRC = decodeL(sourceBlackPoint[2]); + const X_Scale = (1 - X_DST) / (1 - X_SRC); + const X_Offset = 1 - X_Scale; + const Y_Scale = (1 - Y_DST) / (1 - Y_SRC); + const Y_Offset = 1 - Y_Scale; + const Z_Scale = (1 - Z_DST) / (1 - Z_SRC); + const Z_Offset = 1 - Z_Scale; + result[0] = XYZ_Flat[0] * X_Scale + X_Offset; + result[1] = XYZ_Flat[1] * Y_Scale + Y_Offset; + result[2] = XYZ_Flat[2] * Z_Scale + Z_Offset; + } + + function normalizeWhitePointToFlat(sourceWhitePoint, XYZ_In, result) { + if (sourceWhitePoint[0] === 1 && sourceWhitePoint[2] === 1) { + result[0] = XYZ_In[0]; + result[1] = XYZ_In[1]; + result[2] = XYZ_In[2]; + return; + } + + const LMS = result; + matrixProduct(BRADFORD_SCALE_MATRIX, XYZ_In, LMS); + const LMS_Flat = tempNormalizeMatrix; + convertToFlat(sourceWhitePoint, LMS, LMS_Flat); + matrixProduct(BRADFORD_SCALE_INVERSE_MATRIX, LMS_Flat, result); + } + + function normalizeWhitePointToD65(sourceWhitePoint, XYZ_In, result) { + const LMS = result; + matrixProduct(BRADFORD_SCALE_MATRIX, XYZ_In, LMS); + const LMS_D65 = tempNormalizeMatrix; + convertToD65(sourceWhitePoint, LMS, LMS_D65); + matrixProduct(BRADFORD_SCALE_INVERSE_MATRIX, LMS_D65, result); + } + + function convertToRgb(cs, src, srcOffset, dest, destOffset, scale) { + const A = adjustToRange(0, 1, src[srcOffset] * scale); + const B = adjustToRange(0, 1, src[srcOffset + 1] * scale); + const C = adjustToRange(0, 1, src[srcOffset + 2] * scale); + const AGR = A === 1 ? 1 : A ** cs.GR; + const BGG = B === 1 ? 1 : B ** cs.GG; + const CGB = C === 1 ? 1 : C ** cs.GB; + const X = cs.MXA * AGR + cs.MXB * BGG + cs.MXC * CGB; + const Y = cs.MYA * AGR + cs.MYB * BGG + cs.MYC * CGB; + const Z = cs.MZA * AGR + cs.MZB * BGG + cs.MZC * CGB; + const XYZ = tempConvertMatrix1; + XYZ[0] = X; + XYZ[1] = Y; + XYZ[2] = Z; + const XYZ_Flat = tempConvertMatrix2; + normalizeWhitePointToFlat(cs.whitePoint, XYZ, XYZ_Flat); + const XYZ_Black = tempConvertMatrix1; + compensateBlackPoint(cs.blackPoint, XYZ_Flat, XYZ_Black); + const XYZ_D65 = tempConvertMatrix2; + normalizeWhitePointToD65(FLAT_WHITEPOINT_MATRIX, XYZ_Black, XYZ_D65); + const SRGB = tempConvertMatrix1; + matrixProduct(SRGB_D65_XYZ_TO_RGB_MATRIX, XYZ_D65, SRGB); + dest[destOffset] = sRGBTransferFunction(SRGB[0]) * 255; + dest[destOffset + 1] = sRGBTransferFunction(SRGB[1]) * 255; + dest[destOffset + 2] = sRGBTransferFunction(SRGB[2]) * 255; + } + + class CalRGBCS extends ColorSpace { + constructor(whitePoint, blackPoint, gamma, matrix) { + super("CalRGB", 3); + + if (!whitePoint) { + throw new _util.FormatError("WhitePoint missing - required for color space CalRGB"); + } + + blackPoint = blackPoint || new Float32Array(3); + gamma = gamma || new Float32Array([1, 1, 1]); + matrix = matrix || new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]); + const XW = whitePoint[0]; + const YW = whitePoint[1]; + const ZW = whitePoint[2]; + this.whitePoint = whitePoint; + const XB = blackPoint[0]; + const YB = blackPoint[1]; + const ZB = blackPoint[2]; + this.blackPoint = blackPoint; + this.GR = gamma[0]; + this.GG = gamma[1]; + this.GB = gamma[2]; + this.MXA = matrix[0]; + this.MYA = matrix[1]; + this.MZA = matrix[2]; + this.MXB = matrix[3]; + this.MYB = matrix[4]; + this.MZB = matrix[5]; + this.MXC = matrix[6]; + this.MYC = matrix[7]; + this.MZC = matrix[8]; + + if (XW < 0 || ZW < 0 || YW !== 1) { + throw new _util.FormatError(`Invalid WhitePoint components for ${this.name}` + ", no fallback available"); + } + + if (XB < 0 || YB < 0 || ZB < 0) { + (0, _util.info)(`Invalid BlackPoint for ${this.name} [${XB}, ${YB}, ${ZB}], ` + "falling back to default."); + this.blackPoint = new Float32Array(3); + } + + if (this.GR < 0 || this.GG < 0 || this.GB < 0) { + (0, _util.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ` + `${this.name}, falling back to default.`); + this.GR = this.GG = this.GB = 1; + } + } + + getRgbItem(src, srcOffset, dest, destOffset) { + convertToRgb(this, src, srcOffset, dest, destOffset, 1); + } + + getRgbBuffer(src, srcOffset, count, dest, destOffset, bits, alpha01) { + const scale = 1 / ((1 << bits) - 1); + + for (let i = 0; i < count; ++i) { + convertToRgb(this, src, srcOffset, dest, destOffset, scale); + srcOffset += 3; + destOffset += 3 + alpha01; + } + } + + getOutputLength(inputLength, alpha01) { + return inputLength * (3 + alpha01) / 3 | 0; + } + + } + + return CalRGBCS; +}(); + +const LabCS = function LabCSClosure() { + function fn_g(x) { + let result; + + if (x >= 6 / 29) { + result = x ** 3; + } else { + result = 108 / 841 * (x - 4 / 29); + } + + return result; + } + + function decode(value, high1, low2, high2) { + return low2 + value * (high2 - low2) / high1; + } + + function convertToRgb(cs, src, srcOffset, maxVal, dest, destOffset) { + let Ls = src[srcOffset]; + let as = src[srcOffset + 1]; + let bs = src[srcOffset + 2]; + + if (maxVal !== false) { + Ls = decode(Ls, maxVal, 0, 100); + as = decode(as, maxVal, cs.amin, cs.amax); + bs = decode(bs, maxVal, cs.bmin, cs.bmax); + } + + if (as > cs.amax) { + as = cs.amax; + } else if (as < cs.amin) { + as = cs.amin; + } + + if (bs > cs.bmax) { + bs = cs.bmax; + } else if (bs < cs.bmin) { + bs = cs.bmin; + } + + const M = (Ls + 16) / 116; + const L = M + as / 500; + const N = M - bs / 200; + const X = cs.XW * fn_g(L); + const Y = cs.YW * fn_g(M); + const Z = cs.ZW * fn_g(N); + let r, g, b; + + if (cs.ZW < 1) { + r = X * 3.1339 + Y * -1.617 + Z * -0.4906; + g = X * -0.9785 + Y * 1.916 + Z * 0.0333; + b = X * 0.072 + Y * -0.229 + Z * 1.4057; + } else { + r = X * 3.2406 + Y * -1.5372 + Z * -0.4986; + g = X * -0.9689 + Y * 1.8758 + Z * 0.0415; + b = X * 0.0557 + Y * -0.204 + Z * 1.057; + } + + dest[destOffset] = Math.sqrt(r) * 255; + dest[destOffset + 1] = Math.sqrt(g) * 255; + dest[destOffset + 2] = Math.sqrt(b) * 255; + } + + class LabCS extends ColorSpace { + constructor(whitePoint, blackPoint, range) { + super("Lab", 3); + + if (!whitePoint) { + throw new _util.FormatError("WhitePoint missing - required for color space Lab"); + } + + blackPoint = blackPoint || [0, 0, 0]; + range = range || [-100, 100, -100, 100]; + this.XW = whitePoint[0]; + this.YW = whitePoint[1]; + this.ZW = whitePoint[2]; + this.amin = range[0]; + this.amax = range[1]; + this.bmin = range[2]; + this.bmax = range[3]; + this.XB = blackPoint[0]; + this.YB = blackPoint[1]; + this.ZB = blackPoint[2]; + + if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) { + throw new _util.FormatError("Invalid WhitePoint components, no fallback available"); + } + + if (this.XB < 0 || this.YB < 0 || this.ZB < 0) { + (0, _util.info)("Invalid BlackPoint, falling back to default"); + this.XB = this.YB = this.ZB = 0; + } + + if (this.amin > this.amax || this.bmin > this.bmax) { + (0, _util.info)("Invalid Range, falling back to defaults"); + this.amin = -100; + this.amax = 100; + this.bmin = -100; + this.bmax = 100; + } + } + + getRgbItem(src, srcOffset, dest, destOffset) { + convertToRgb(this, src, srcOffset, false, dest, destOffset); + } + + getRgbBuffer(src, srcOffset, count, dest, destOffset, bits, alpha01) { + const maxVal = (1 << bits) - 1; + + for (let i = 0; i < count; i++) { + convertToRgb(this, src, srcOffset, maxVal, dest, destOffset); + srcOffset += 3; + destOffset += 3 + alpha01; + } + } + + getOutputLength(inputLength, alpha01) { + return inputLength * (3 + alpha01) / 3 | 0; + } + + isDefaultDecode(decodeMap, bpc) { + return true; + } + + get usesZeroToOneRange() { + return (0, _util.shadow)(this, "usesZeroToOneRange", false); + } + + } + + return LabCS; +}(); + +/***/ }), +/* 15 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PartialEvaluator = exports.EvaluatorPreprocessor = void 0; + +var _util = __w_pdfjs_require__(2); + +var _cmap = __w_pdfjs_require__(16); + +var _primitives = __w_pdfjs_require__(5); + +var _fonts = __w_pdfjs_require__(34); + +var _fonts_utils = __w_pdfjs_require__(38); + +var _encodings = __w_pdfjs_require__(37); + +var _standard_fonts = __w_pdfjs_require__(41); + +var _unicode = __w_pdfjs_require__(40); + +var _pattern = __w_pdfjs_require__(50); + +var _xfa_fonts = __w_pdfjs_require__(51); + +var _to_unicode_map = __w_pdfjs_require__(42); + +var _function = __w_pdfjs_require__(57); + +var _parser = __w_pdfjs_require__(17); + +var _image_utils = __w_pdfjs_require__(59); + +var _stream = __w_pdfjs_require__(10); + +var _base_stream = __w_pdfjs_require__(7); + +var _bidi = __w_pdfjs_require__(60); + +var _colorspace = __w_pdfjs_require__(14); + +var _decode_stream = __w_pdfjs_require__(19); + +var _glyphlist = __w_pdfjs_require__(39); + +var _core_utils = __w_pdfjs_require__(6); + +var _metrics = __w_pdfjs_require__(45); + +var _murmurhash = __w_pdfjs_require__(61); + +var _operator_list = __w_pdfjs_require__(62); + +var _image = __w_pdfjs_require__(63); + +const DefaultPartialEvaluatorOptions = Object.freeze({ + maxImageSize: -1, + disableFontFace: false, + ignoreErrors: false, + isEvalSupported: true, + fontExtraProperties: false, + useSystemFonts: true, + cMapUrl: null, + standardFontDataUrl: null +}); +const PatternType = { + TILING: 1, + SHADING: 2 +}; +const TEXT_CHUNK_BATCH_SIZE = 10; +const deferred = Promise.resolve(); + +function normalizeBlendMode(value, parsingArray = false) { + if (Array.isArray(value)) { + for (let i = 0, ii = value.length; i < ii; i++) { + const maybeBM = normalizeBlendMode(value[i], true); + + if (maybeBM) { + return maybeBM; + } + } + + (0, _util.warn)(`Unsupported blend mode Array: ${value}`); + return "source-over"; + } + + if (!(value instanceof _primitives.Name)) { + if (parsingArray) { + return null; + } + + return "source-over"; + } + + switch (value.name) { + case "Normal": + case "Compatible": + return "source-over"; + + case "Multiply": + return "multiply"; + + case "Screen": + return "screen"; + + case "Overlay": + return "overlay"; + + case "Darken": + return "darken"; + + case "Lighten": + return "lighten"; + + case "ColorDodge": + return "color-dodge"; + + case "ColorBurn": + return "color-burn"; + + case "HardLight": + return "hard-light"; + + case "SoftLight": + return "soft-light"; + + case "Difference": + return "difference"; + + case "Exclusion": + return "exclusion"; + + case "Hue": + return "hue"; + + case "Saturation": + return "saturation"; + + case "Color": + return "color"; + + case "Luminosity": + return "luminosity"; + } + + if (parsingArray) { + return null; + } + + (0, _util.warn)(`Unsupported blend mode: ${value.name}`); + return "source-over"; +} + +function incrementCachedImageMaskCount(data) { + if (data.fn === _util.OPS.paintImageMaskXObject && data.args[0] && data.args[0].count > 0) { + data.args[0].count++; + } +} + +class TimeSlotManager { + static get TIME_SLOT_DURATION_MS() { + return (0, _util.shadow)(this, "TIME_SLOT_DURATION_MS", 20); + } + + static get CHECK_TIME_EVERY() { + return (0, _util.shadow)(this, "CHECK_TIME_EVERY", 100); + } + + constructor() { + this.reset(); + } + + check() { + if (++this.checked < TimeSlotManager.CHECK_TIME_EVERY) { + return false; + } + + this.checked = 0; + return this.endTime <= Date.now(); + } + + reset() { + this.endTime = Date.now() + TimeSlotManager.TIME_SLOT_DURATION_MS; + this.checked = 0; + } + +} + +class PartialEvaluator { + constructor({ + xref, + handler, + pageIndex, + idFactory, + fontCache, + builtInCMapCache, + standardFontDataCache, + globalImageCache, + options = null + }) { + this.xref = xref; + this.handler = handler; + this.pageIndex = pageIndex; + this.idFactory = idFactory; + this.fontCache = fontCache; + this.builtInCMapCache = builtInCMapCache; + this.standardFontDataCache = standardFontDataCache; + this.globalImageCache = globalImageCache; + this.options = options || DefaultPartialEvaluatorOptions; + this.parsingType3Font = false; + this._fetchBuiltInCMapBound = this.fetchBuiltInCMap.bind(this); + } + + get _pdfFunctionFactory() { + const pdfFunctionFactory = new _function.PDFFunctionFactory({ + xref: this.xref, + isEvalSupported: this.options.isEvalSupported + }); + return (0, _util.shadow)(this, "_pdfFunctionFactory", pdfFunctionFactory); + } + + clone(newOptions = null) { + const newEvaluator = Object.create(this); + newEvaluator.options = Object.assign(Object.create(null), this.options, newOptions); + return newEvaluator; + } + + hasBlendModes(resources, nonBlendModesSet) { + if (!(resources instanceof _primitives.Dict)) { + return false; + } + + if (resources.objId && nonBlendModesSet.has(resources.objId)) { + return false; + } + + const processed = new _primitives.RefSet(nonBlendModesSet); + + if (resources.objId) { + processed.put(resources.objId); + } + + const nodes = [resources], + xref = this.xref; + + while (nodes.length) { + const node = nodes.shift(); + const graphicStates = node.get("ExtGState"); + + if (graphicStates instanceof _primitives.Dict) { + for (let graphicState of graphicStates.getRawValues()) { + if (graphicState instanceof _primitives.Ref) { + if (processed.has(graphicState)) { + continue; + } + + try { + graphicState = xref.fetch(graphicState); + } catch (ex) { + processed.put(graphicState); + (0, _util.info)(`hasBlendModes - ignoring ExtGState: "${ex}".`); + continue; + } + } + + if (!(graphicState instanceof _primitives.Dict)) { + continue; + } + + if (graphicState.objId) { + processed.put(graphicState.objId); + } + + const bm = graphicState.get("BM"); + + if (bm instanceof _primitives.Name) { + if (bm.name !== "Normal") { + return true; + } + + continue; + } + + if (bm !== undefined && Array.isArray(bm)) { + for (const element of bm) { + if (element instanceof _primitives.Name && element.name !== "Normal") { + return true; + } + } + } + } + } + + const xObjects = node.get("XObject"); + + if (!(xObjects instanceof _primitives.Dict)) { + continue; + } + + for (let xObject of xObjects.getRawValues()) { + if (xObject instanceof _primitives.Ref) { + if (processed.has(xObject)) { + continue; + } + + try { + xObject = xref.fetch(xObject); + } catch (ex) { + processed.put(xObject); + (0, _util.info)(`hasBlendModes - ignoring XObject: "${ex}".`); + continue; + } + } + + if (!(xObject instanceof _base_stream.BaseStream)) { + continue; + } + + if (xObject.dict.objId) { + processed.put(xObject.dict.objId); + } + + const xResources = xObject.dict.get("Resources"); + + if (!(xResources instanceof _primitives.Dict)) { + continue; + } + + if (xResources.objId && processed.has(xResources.objId)) { + continue; + } + + nodes.push(xResources); + + if (xResources.objId) { + processed.put(xResources.objId); + } + } + } + + for (const ref of processed) { + nonBlendModesSet.put(ref); + } + + return false; + } + + async fetchBuiltInCMap(name) { + const cachedData = this.builtInCMapCache.get(name); + + if (cachedData) { + return cachedData; + } + + let data; + + if (this.options.cMapUrl !== null) { + const url = `${this.options.cMapUrl}${name}.bcmap`; + const response = await fetch(url); + + if (!response.ok) { + throw new Error(`fetchBuiltInCMap: failed to fetch file "${url}" with "${response.statusText}".`); + } + + data = { + cMapData: new Uint8Array(await response.arrayBuffer()), + compressionType: _util.CMapCompressionType.BINARY + }; + } else { + data = await this.handler.sendWithPromise("FetchBuiltInCMap", { + name + }); + } + + if (data.compressionType !== _util.CMapCompressionType.NONE) { + this.builtInCMapCache.set(name, data); + } + + return data; + } + + async fetchStandardFontData(name) { + const cachedData = this.standardFontDataCache.get(name); + + if (cachedData) { + return new _stream.Stream(cachedData); + } + + if (this.options.useSystemFonts && name !== "Symbol" && name !== "ZapfDingbats") { + return null; + } + + const standardFontNameToFileName = (0, _standard_fonts.getFontNameToFileMap)(), + filename = standardFontNameToFileName[name]; + let data; + + if (this.options.standardFontDataUrl !== null) { + const url = `${this.options.standardFontDataUrl}${filename}`; + const response = await fetch(url); + + if (!response.ok) { + (0, _util.warn)(`fetchStandardFontData: failed to fetch file "${url}" with "${response.statusText}".`); + } else { + data = await response.arrayBuffer(); + } + } else { + try { + data = await this.handler.sendWithPromise("FetchStandardFontData", { + filename + }); + } catch (e) { + (0, _util.warn)(`fetchStandardFontData: failed to fetch file "${filename}" with "${e}".`); + } + } + + if (!data) { + return null; + } + + this.standardFontDataCache.set(name, data); + return new _stream.Stream(data); + } + + async buildFormXObject(resources, xobj, smask, operatorList, task, initialState, localColorSpaceCache) { + const dict = xobj.dict; + const matrix = dict.getArray("Matrix"); + let bbox = dict.getArray("BBox"); + + if (Array.isArray(bbox) && bbox.length === 4) { + bbox = _util.Util.normalizeRect(bbox); + } else { + bbox = null; + } + + let optionalContent, groupOptions; + + if (dict.has("OC")) { + optionalContent = await this.parseMarkedContentProps(dict.get("OC"), resources); + } + + if (optionalContent !== undefined) { + operatorList.addOp(_util.OPS.beginMarkedContentProps, ["OC", optionalContent]); + } + + const group = dict.get("Group"); + + if (group) { + groupOptions = { + matrix, + bbox, + smask, + isolated: false, + knockout: false + }; + const groupSubtype = group.get("S"); + let colorSpace = null; + + if ((0, _primitives.isName)(groupSubtype, "Transparency")) { + groupOptions.isolated = group.get("I") || false; + groupOptions.knockout = group.get("K") || false; + + if (group.has("CS")) { + const cs = group.getRaw("CS"); + + const cachedColorSpace = _colorspace.ColorSpace.getCached(cs, this.xref, localColorSpaceCache); + + if (cachedColorSpace) { + colorSpace = cachedColorSpace; + } else { + colorSpace = await this.parseColorSpace({ + cs, + resources, + localColorSpaceCache + }); + } + } + } + + if (smask && smask.backdrop) { + colorSpace = colorSpace || _colorspace.ColorSpace.singletons.rgb; + smask.backdrop = colorSpace.getRgb(smask.backdrop, 0); + } + + operatorList.addOp(_util.OPS.beginGroup, [groupOptions]); + } + + const args = group ? [matrix, null] : [matrix, bbox]; + operatorList.addOp(_util.OPS.paintFormXObjectBegin, args); + return this.getOperatorList({ + stream: xobj, + task, + resources: dict.get("Resources") || resources, + operatorList, + initialState + }).then(function () { + operatorList.addOp(_util.OPS.paintFormXObjectEnd, []); + + if (group) { + operatorList.addOp(_util.OPS.endGroup, [groupOptions]); + } + + if (optionalContent !== undefined) { + operatorList.addOp(_util.OPS.endMarkedContent, []); + } + }); + } + + _sendImgData(objId, imgData, cacheGlobally = false) { + const transfers = imgData ? [imgData.bitmap || imgData.data.buffer] : null; + + if (this.parsingType3Font || cacheGlobally) { + return this.handler.send("commonobj", [objId, "Image", imgData], transfers); + } + + return this.handler.send("obj", [objId, this.pageIndex, "Image", imgData], transfers); + } + + async buildPaintImageXObject({ + resources, + image, + isInline = false, + operatorList, + cacheKey, + localImageCache, + localColorSpaceCache + }) { + const dict = image.dict; + const imageRef = dict.objId; + const w = dict.get("W", "Width"); + const h = dict.get("H", "Height"); + + if (!(w && typeof w === "number") || !(h && typeof h === "number")) { + (0, _util.warn)("Image dimensions are missing, or not numbers."); + return; + } + + const maxImageSize = this.options.maxImageSize; + + if (maxImageSize !== -1 && w * h > maxImageSize) { + const msg = "Image exceeded maximum allowed size and was removed."; + + if (this.options.ignoreErrors) { + (0, _util.warn)(msg); + return; + } + + throw new Error(msg); + } + + let optionalContent; + + if (dict.has("OC")) { + optionalContent = await this.parseMarkedContentProps(dict.get("OC"), resources); + } + + const imageMask = dict.get("IM", "ImageMask") || false; + let imgData, args; + + if (imageMask) { + const interpolate = dict.get("I", "Interpolate"); + const bitStrideLength = w + 7 >> 3; + const imgArray = image.getBytes(bitStrideLength * h); + const decode = dict.getArray("D", "Decode"); + + if (this.parsingType3Font) { + imgData = _image.PDFImage.createRawMask({ + imgArray, + width: w, + height: h, + imageIsFromDecodeStream: image instanceof _decode_stream.DecodeStream, + inverseDecode: !!decode && decode[0] > 0, + interpolate + }); + imgData.cached = !!cacheKey; + args = [imgData]; + operatorList.addImageOps(_util.OPS.paintImageMaskXObject, args, optionalContent); + + if (cacheKey) { + localImageCache.set(cacheKey, imageRef, { + fn: _util.OPS.paintImageMaskXObject, + args, + optionalContent + }); + } + + return; + } + + imgData = _image.PDFImage.createMask({ + imgArray, + width: w, + height: h, + imageIsFromDecodeStream: image instanceof _decode_stream.DecodeStream, + inverseDecode: !!decode && decode[0] > 0, + interpolate + }); + + if (imgData.isSingleOpaquePixel) { + operatorList.addImageOps(_util.OPS.paintSolidColorImageMask, [], optionalContent); + + if (cacheKey) { + localImageCache.set(cacheKey, imageRef, { + fn: _util.OPS.paintSolidColorImageMask, + args: [], + optionalContent + }); + } + + return; + } + + const objId = `mask_${this.idFactory.createObjId()}`; + operatorList.addDependency(objId); + + this._sendImgData(objId, imgData); + + args = [{ + data: objId, + width: imgData.width, + height: imgData.height, + interpolate: imgData.interpolate, + count: 1 + }]; + operatorList.addImageOps(_util.OPS.paintImageMaskXObject, args, optionalContent); + + if (cacheKey) { + localImageCache.set(cacheKey, imageRef, { + fn: _util.OPS.paintImageMaskXObject, + args, + optionalContent + }); + } + + return; + } + + const softMask = dict.get("SM", "SMask") || false; + const mask = dict.get("Mask") || false; + const SMALL_IMAGE_DIMENSIONS = 200; + + if (isInline && !softMask && !mask && w + h < SMALL_IMAGE_DIMENSIONS) { + const imageObj = new _image.PDFImage({ + xref: this.xref, + res: resources, + image, + isInline, + pdfFunctionFactory: this._pdfFunctionFactory, + localColorSpaceCache + }); + imgData = imageObj.createImageData(true); + operatorList.addImageOps(_util.OPS.paintInlineImageXObject, [imgData], optionalContent); + return; + } + + let objId = `img_${this.idFactory.createObjId()}`, + cacheGlobally = false; + + if (this.parsingType3Font) { + objId = `${this.idFactory.getDocId()}_type3_${objId}`; + } else if (imageRef) { + cacheGlobally = this.globalImageCache.shouldCache(imageRef, this.pageIndex); + + if (cacheGlobally) { + objId = `${this.idFactory.getDocId()}_${objId}`; + } + } + + operatorList.addDependency(objId); + args = [objId, w, h]; + + _image.PDFImage.buildImage({ + xref: this.xref, + res: resources, + image, + isInline, + pdfFunctionFactory: this._pdfFunctionFactory, + localColorSpaceCache + }).then(imageObj => { + imgData = imageObj.createImageData(false); + + if (cacheKey && imageRef && cacheGlobally) { + this.globalImageCache.addByteSize(imageRef, imgData.data.length); + } + + return this._sendImgData(objId, imgData, cacheGlobally); + }).catch(reason => { + (0, _util.warn)(`Unable to decode image "${objId}": "${reason}".`); + return this._sendImgData(objId, null, cacheGlobally); + }); + + operatorList.addImageOps(_util.OPS.paintImageXObject, args, optionalContent); + + if (cacheKey) { + localImageCache.set(cacheKey, imageRef, { + fn: _util.OPS.paintImageXObject, + args, + optionalContent + }); + + if (imageRef) { + (0, _util.assert)(!isInline, "Cannot cache an inline image globally."); + this.globalImageCache.addPageIndex(imageRef, this.pageIndex); + + if (cacheGlobally) { + this.globalImageCache.setData(imageRef, { + objId, + fn: _util.OPS.paintImageXObject, + args, + optionalContent, + byteSize: 0 + }); + } + } + } + } + + handleSMask(smask, resources, operatorList, task, stateManager, localColorSpaceCache) { + const smaskContent = smask.get("G"); + const smaskOptions = { + subtype: smask.get("S").name, + backdrop: smask.get("BC") + }; + const transferObj = smask.get("TR"); + + if ((0, _function.isPDFFunction)(transferObj)) { + const transferFn = this._pdfFunctionFactory.create(transferObj); + + const transferMap = new Uint8Array(256); + const tmp = new Float32Array(1); + + for (let i = 0; i < 256; i++) { + tmp[0] = i / 255; + transferFn(tmp, 0, tmp, 0); + transferMap[i] = tmp[0] * 255 | 0; + } + + smaskOptions.transferMap = transferMap; + } + + return this.buildFormXObject(resources, smaskContent, smaskOptions, operatorList, task, stateManager.state.clone(), localColorSpaceCache); + } + + handleTransferFunction(tr) { + let transferArray; + + if (Array.isArray(tr)) { + transferArray = tr; + } else if ((0, _function.isPDFFunction)(tr)) { + transferArray = [tr]; + } else { + return null; + } + + const transferMaps = []; + let numFns = 0, + numEffectfulFns = 0; + + for (const entry of transferArray) { + const transferObj = this.xref.fetchIfRef(entry); + numFns++; + + if ((0, _primitives.isName)(transferObj, "Identity")) { + transferMaps.push(null); + continue; + } else if (!(0, _function.isPDFFunction)(transferObj)) { + return null; + } + + const transferFn = this._pdfFunctionFactory.create(transferObj); + + const transferMap = new Uint8Array(256), + tmp = new Float32Array(1); + + for (let j = 0; j < 256; j++) { + tmp[0] = j / 255; + transferFn(tmp, 0, tmp, 0); + transferMap[j] = tmp[0] * 255 | 0; + } + + transferMaps.push(transferMap); + numEffectfulFns++; + } + + if (!(numFns === 1 || numFns === 4)) { + return null; + } + + if (numEffectfulFns === 0) { + return null; + } + + return transferMaps; + } + + handleTilingType(fn, color, resources, pattern, patternDict, operatorList, task, localTilingPatternCache) { + const tilingOpList = new _operator_list.OperatorList(); + + const patternResources = _primitives.Dict.merge({ + xref: this.xref, + dictArray: [patternDict.get("Resources"), resources] + }); + + return this.getOperatorList({ + stream: pattern, + task, + resources: patternResources, + operatorList: tilingOpList + }).then(function () { + const operatorListIR = tilingOpList.getIR(); + const tilingPatternIR = (0, _pattern.getTilingPatternIR)(operatorListIR, patternDict, color); + operatorList.addDependencies(tilingOpList.dependencies); + operatorList.addOp(fn, tilingPatternIR); + + if (patternDict.objId) { + localTilingPatternCache.set(null, patternDict.objId, { + operatorListIR, + dict: patternDict + }); + } + }).catch(reason => { + if (reason instanceof _util.AbortException) { + return; + } + + if (this.options.ignoreErrors) { + this.handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorTilingPattern + }); + (0, _util.warn)(`handleTilingType - ignoring pattern: "${reason}".`); + return; + } + + throw reason; + }); + } + + handleSetFont(resources, fontArgs, fontRef, operatorList, task, state, fallbackFontDict = null, cssFontInfo = null) { + const fontName = fontArgs && fontArgs[0] instanceof _primitives.Name ? fontArgs[0].name : null; + return this.loadFont(fontName, fontRef, resources, fallbackFontDict, cssFontInfo).then(translated => { + if (!translated.font.isType3Font) { + return translated; + } + + return translated.loadType3Data(this, resources, task).then(function () { + operatorList.addDependencies(translated.type3Dependencies); + return translated; + }).catch(reason => { + this.handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorFontLoadType3 + }); + return new TranslatedFont({ + loadedName: "g_font_error", + font: new _fonts.ErrorFont(`Type3 font load error: ${reason}`), + dict: translated.font, + evaluatorOptions: this.options + }); + }); + }).then(translated => { + state.font = translated.font; + translated.send(this.handler); + return translated.loadedName; + }); + } + + handleText(chars, state) { + const font = state.font; + const glyphs = font.charsToGlyphs(chars); + + if (font.data) { + const isAddToPathSet = !!(state.textRenderingMode & _util.TextRenderingMode.ADD_TO_PATH_FLAG); + + if (isAddToPathSet || state.fillColorSpace.name === "Pattern" || font.disableFontFace || this.options.disableFontFace) { + PartialEvaluator.buildFontPaths(font, glyphs, this.handler, this.options); + } + } + + return glyphs; + } + + ensureStateFont(state) { + if (state.font) { + return; + } + + const reason = new _util.FormatError("Missing setFont (Tf) operator before text rendering operator."); + + if (this.options.ignoreErrors) { + this.handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorFontState + }); + (0, _util.warn)(`ensureStateFont: "${reason}".`); + return; + } + + throw reason; + } + + async setGState({ + resources, + gState, + operatorList, + cacheKey, + task, + stateManager, + localGStateCache, + localColorSpaceCache + }) { + const gStateRef = gState.objId; + let isSimpleGState = true; + const gStateObj = []; + const gStateKeys = gState.getKeys(); + let promise = Promise.resolve(); + + for (let i = 0, ii = gStateKeys.length; i < ii; i++) { + const key = gStateKeys[i]; + const value = gState.get(key); + + switch (key) { + case "Type": + break; + + case "LW": + case "LC": + case "LJ": + case "ML": + case "D": + case "RI": + case "FL": + case "CA": + case "ca": + gStateObj.push([key, value]); + break; + + case "Font": + isSimpleGState = false; + promise = promise.then(() => { + return this.handleSetFont(resources, null, value[0], operatorList, task, stateManager.state).then(function (loadedName) { + operatorList.addDependency(loadedName); + gStateObj.push([key, [loadedName, value[1]]]); + }); + }); + break; + + case "BM": + gStateObj.push([key, normalizeBlendMode(value)]); + break; + + case "SMask": + if ((0, _primitives.isName)(value, "None")) { + gStateObj.push([key, false]); + break; + } + + if (value instanceof _primitives.Dict) { + isSimpleGState = false; + promise = promise.then(() => { + return this.handleSMask(value, resources, operatorList, task, stateManager, localColorSpaceCache); + }); + gStateObj.push([key, true]); + } else { + (0, _util.warn)("Unsupported SMask type"); + } + + break; + + case "TR": + const transferMaps = this.handleTransferFunction(value); + gStateObj.push([key, transferMaps]); + break; + + case "OP": + case "op": + case "OPM": + case "BG": + case "BG2": + case "UCR": + case "UCR2": + case "TR2": + case "HT": + case "SM": + case "SA": + case "AIS": + case "TK": + (0, _util.info)("graphic state operator " + key); + break; + + default: + (0, _util.info)("Unknown graphic state operator " + key); + break; + } + } + + return promise.then(function () { + if (gStateObj.length > 0) { + operatorList.addOp(_util.OPS.setGState, [gStateObj]); + } + + if (isSimpleGState) { + localGStateCache.set(cacheKey, gStateRef, gStateObj); + } + }); + } + + loadFont(fontName, font, resources, fallbackFontDict = null, cssFontInfo = null) { + const errorFont = async () => { + return new TranslatedFont({ + loadedName: "g_font_error", + font: new _fonts.ErrorFont(`Font "${fontName}" is not available.`), + dict: font, + evaluatorOptions: this.options + }); + }; + + const xref = this.xref; + let fontRef; + + if (font) { + if (font instanceof _primitives.Ref) { + fontRef = font; + } + } else { + const fontRes = resources.get("Font"); + + if (fontRes) { + fontRef = fontRes.getRaw(fontName); + } + } + + if (!fontRef) { + const partialMsg = `Font "${fontName || font && font.toString()}" is not available`; + + if (!this.options.ignoreErrors && !this.parsingType3Font) { + (0, _util.warn)(`${partialMsg}.`); + return errorFont(); + } + + this.handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorFontMissing + }); + (0, _util.warn)(`${partialMsg} -- attempting to fallback to a default font.`); + + if (fallbackFontDict) { + fontRef = fallbackFontDict; + } else { + fontRef = PartialEvaluator.fallbackFontDict; + } + } + + if (this.parsingType3Font && this.type3FontRefs.has(fontRef)) { + return errorFont(); + } + + if (this.fontCache.has(fontRef)) { + return this.fontCache.get(fontRef); + } + + font = xref.fetchIfRef(fontRef); + + if (!(font instanceof _primitives.Dict)) { + return errorFont(); + } + + if (font.cacheKey && this.fontCache.has(font.cacheKey)) { + return this.fontCache.get(font.cacheKey); + } + + const fontCapability = (0, _util.createPromiseCapability)(); + let preEvaluatedFont; + + try { + preEvaluatedFont = this.preEvaluateFont(font); + preEvaluatedFont.cssFontInfo = cssFontInfo; + } catch (reason) { + (0, _util.warn)(`loadFont - preEvaluateFont failed: "${reason}".`); + return errorFont(); + } + + const { + descriptor, + hash + } = preEvaluatedFont; + const fontRefIsRef = fontRef instanceof _primitives.Ref; + let fontID; + + if (fontRefIsRef) { + fontID = `f${fontRef.toString()}`; + } + + if (hash && descriptor instanceof _primitives.Dict) { + if (!descriptor.fontAliases) { + descriptor.fontAliases = Object.create(null); + } + + const fontAliases = descriptor.fontAliases; + + if (fontAliases[hash]) { + const aliasFontRef = fontAliases[hash].aliasRef; + + if (fontRefIsRef && aliasFontRef && this.fontCache.has(aliasFontRef)) { + this.fontCache.putAlias(fontRef, aliasFontRef); + return this.fontCache.get(fontRef); + } + } else { + fontAliases[hash] = { + fontID: this.idFactory.createFontId() + }; + } + + if (fontRefIsRef) { + fontAliases[hash].aliasRef = fontRef; + } + + fontID = fontAliases[hash].fontID; + } + + if (fontRefIsRef) { + this.fontCache.put(fontRef, fontCapability.promise); + } else { + if (!fontID) { + fontID = this.idFactory.createFontId(); + } + + font.cacheKey = `cacheKey_${fontID}`; + this.fontCache.put(font.cacheKey, fontCapability.promise); + } + + (0, _util.assert)(fontID && fontID.startsWith("f"), 'The "fontID" must be (correctly) defined.'); + font.loadedName = `${this.idFactory.getDocId()}_${fontID}`; + this.translateFont(preEvaluatedFont).then(translatedFont => { + if (translatedFont.fontType !== undefined) { + xref.stats.addFontType(translatedFont.fontType); + } + + fontCapability.resolve(new TranslatedFont({ + loadedName: font.loadedName, + font: translatedFont, + dict: font, + evaluatorOptions: this.options + })); + }).catch(reason => { + this.handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorFontTranslate + }); + (0, _util.warn)(`loadFont - translateFont failed: "${reason}".`); + + try { + const fontFile3 = descriptor && descriptor.get("FontFile3"); + const subtype = fontFile3 && fontFile3.get("Subtype"); + const fontType = (0, _fonts_utils.getFontType)(preEvaluatedFont.type, subtype && subtype.name); + + if (fontType !== undefined) { + xref.stats.addFontType(fontType); + } + } catch (ex) {} + + fontCapability.resolve(new TranslatedFont({ + loadedName: font.loadedName, + font: new _fonts.ErrorFont(reason instanceof Error ? reason.message : reason), + dict: font, + evaluatorOptions: this.options + })); + }); + return fontCapability.promise; + } + + buildPath(operatorList, fn, args, parsingText = false) { + const lastIndex = operatorList.length - 1; + + if (!args) { + args = []; + } + + let minMax; + + if (lastIndex < 0 || operatorList.fnArray[lastIndex] !== _util.OPS.constructPath) { + if (parsingText) { + (0, _util.warn)(`Encountered path operator "${fn}" inside of a text object.`); + operatorList.addOp(_util.OPS.save, null); + } + + minMax = [Infinity, -Infinity, Infinity, -Infinity]; + operatorList.addOp(_util.OPS.constructPath, [[fn], args, minMax]); + + if (parsingText) { + operatorList.addOp(_util.OPS.restore, null); + } + } else { + const opArgs = operatorList.argsArray[lastIndex]; + opArgs[0].push(fn); + Array.prototype.push.apply(opArgs[1], args); + minMax = opArgs[2]; + } + + switch (fn) { + case _util.OPS.rectangle: + minMax[0] = Math.min(minMax[0], args[0], args[0] + args[2]); + minMax[1] = Math.max(minMax[1], args[0], args[0] + args[2]); + minMax[2] = Math.min(minMax[2], args[1], args[1] + args[3]); + minMax[3] = Math.max(minMax[3], args[1], args[1] + args[3]); + break; + + case _util.OPS.moveTo: + case _util.OPS.lineTo: + minMax[0] = Math.min(minMax[0], args[0]); + minMax[1] = Math.max(minMax[1], args[0]); + minMax[2] = Math.min(minMax[2], args[1]); + minMax[3] = Math.max(minMax[3], args[1]); + break; + } + } + + parseColorSpace({ + cs, + resources, + localColorSpaceCache + }) { + return _colorspace.ColorSpace.parseAsync({ + cs, + xref: this.xref, + resources, + pdfFunctionFactory: this._pdfFunctionFactory, + localColorSpaceCache + }).catch(reason => { + if (reason instanceof _util.AbortException) { + return null; + } + + if (this.options.ignoreErrors) { + this.handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorColorSpace + }); + (0, _util.warn)(`parseColorSpace - ignoring ColorSpace: "${reason}".`); + return null; + } + + throw reason; + }); + } + + parseShading({ + shading, + resources, + localColorSpaceCache, + localShadingPatternCache + }) { + let id = localShadingPatternCache.get(shading); + + if (!id) { + var shadingFill = _pattern.Pattern.parseShading(shading, this.xref, resources, this.handler, this._pdfFunctionFactory, localColorSpaceCache); + + const patternIR = shadingFill.getIR(); + id = `pattern_${this.idFactory.createObjId()}`; + localShadingPatternCache.set(shading, id); + this.handler.send("obj", [id, this.pageIndex, "Pattern", patternIR]); + } + + return id; + } + + handleColorN(operatorList, fn, args, cs, patterns, resources, task, localColorSpaceCache, localTilingPatternCache, localShadingPatternCache) { + const patternName = args.pop(); + + if (patternName instanceof _primitives.Name) { + const rawPattern = patterns.getRaw(patternName.name); + const localTilingPattern = rawPattern instanceof _primitives.Ref && localTilingPatternCache.getByRef(rawPattern); + + if (localTilingPattern) { + try { + const color = cs.base ? cs.base.getRgb(args, 0) : null; + const tilingPatternIR = (0, _pattern.getTilingPatternIR)(localTilingPattern.operatorListIR, localTilingPattern.dict, color); + operatorList.addOp(fn, tilingPatternIR); + return undefined; + } catch (ex) {} + } + + const pattern = this.xref.fetchIfRef(rawPattern); + + if (pattern) { + const dict = pattern instanceof _base_stream.BaseStream ? pattern.dict : pattern; + const typeNum = dict.get("PatternType"); + + if (typeNum === PatternType.TILING) { + const color = cs.base ? cs.base.getRgb(args, 0) : null; + return this.handleTilingType(fn, color, resources, pattern, dict, operatorList, task, localTilingPatternCache); + } else if (typeNum === PatternType.SHADING) { + const shading = dict.get("Shading"); + const matrix = dict.getArray("Matrix"); + const objId = this.parseShading({ + shading, + resources, + localColorSpaceCache, + localShadingPatternCache + }); + operatorList.addOp(fn, ["Shading", objId, matrix]); + return undefined; + } + + throw new _util.FormatError(`Unknown PatternType: ${typeNum}`); + } + } + + throw new _util.FormatError(`Unknown PatternName: ${patternName}`); + } + + _parseVisibilityExpression(array, nestingCounter, currentResult) { + const MAX_NESTING = 10; + + if (++nestingCounter > MAX_NESTING) { + (0, _util.warn)("Visibility expression is too deeply nested"); + return; + } + + const length = array.length; + const operator = this.xref.fetchIfRef(array[0]); + + if (length < 2 || !(operator instanceof _primitives.Name)) { + (0, _util.warn)("Invalid visibility expression"); + return; + } + + switch (operator.name) { + case "And": + case "Or": + case "Not": + currentResult.push(operator.name); + break; + + default: + (0, _util.warn)(`Invalid operator ${operator.name} in visibility expression`); + return; + } + + for (let i = 1; i < length; i++) { + const raw = array[i]; + const object = this.xref.fetchIfRef(raw); + + if (Array.isArray(object)) { + const nestedResult = []; + currentResult.push(nestedResult); + + this._parseVisibilityExpression(object, nestingCounter, nestedResult); + } else if (raw instanceof _primitives.Ref) { + currentResult.push(raw.toString()); + } + } + } + + async parseMarkedContentProps(contentProperties, resources) { + let optionalContent; + + if (contentProperties instanceof _primitives.Name) { + const properties = resources.get("Properties"); + optionalContent = properties.get(contentProperties.name); + } else if (contentProperties instanceof _primitives.Dict) { + optionalContent = contentProperties; + } else { + throw new _util.FormatError("Optional content properties malformed."); + } + + const optionalContentType = optionalContent.get("Type").name; + + if (optionalContentType === "OCG") { + return { + type: optionalContentType, + id: optionalContent.objId + }; + } else if (optionalContentType === "OCMD") { + const expression = optionalContent.get("VE"); + + if (Array.isArray(expression)) { + const result = []; + + this._parseVisibilityExpression(expression, 0, result); + + if (result.length > 0) { + return { + type: "OCMD", + expression: result + }; + } + } + + const optionalContentGroups = optionalContent.get("OCGs"); + + if (Array.isArray(optionalContentGroups) || optionalContentGroups instanceof _primitives.Dict) { + const groupIds = []; + + if (Array.isArray(optionalContentGroups)) { + for (const ocg of optionalContentGroups) { + groupIds.push(ocg.toString()); + } + } else { + groupIds.push(optionalContentGroups.objId); + } + + return { + type: optionalContentType, + ids: groupIds, + policy: optionalContent.get("P") instanceof _primitives.Name ? optionalContent.get("P").name : null, + expression: null + }; + } else if (optionalContentGroups instanceof _primitives.Ref) { + return { + type: optionalContentType, + id: optionalContentGroups.toString() + }; + } + } + + return null; + } + + getOperatorList({ + stream, + task, + resources, + operatorList, + initialState = null, + fallbackFontDict = null + }) { + resources = resources || _primitives.Dict.empty; + initialState = initialState || new EvalState(); + + if (!operatorList) { + throw new Error('getOperatorList: missing "operatorList" parameter'); + } + + const self = this; + const xref = this.xref; + let parsingText = false; + const localImageCache = new _image_utils.LocalImageCache(); + const localColorSpaceCache = new _image_utils.LocalColorSpaceCache(); + const localGStateCache = new _image_utils.LocalGStateCache(); + const localTilingPatternCache = new _image_utils.LocalTilingPatternCache(); + const localShadingPatternCache = new Map(); + + const xobjs = resources.get("XObject") || _primitives.Dict.empty; + + const patterns = resources.get("Pattern") || _primitives.Dict.empty; + + const stateManager = new StateManager(initialState); + const preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager); + const timeSlotManager = new TimeSlotManager(); + + function closePendingRestoreOPS(argument) { + for (let i = 0, ii = preprocessor.savedStatesDepth; i < ii; i++) { + operatorList.addOp(_util.OPS.restore, []); + } + } + + return new Promise(function promiseBody(resolve, reject) { + const next = function (promise) { + Promise.all([promise, operatorList.ready]).then(function () { + try { + promiseBody(resolve, reject); + } catch (ex) { + reject(ex); + } + }, reject); + }; + + task.ensureNotTerminated(); + timeSlotManager.reset(); + const operation = {}; + let stop, i, ii, cs, name, isValidName; + + while (!(stop = timeSlotManager.check())) { + operation.args = null; + + if (!preprocessor.read(operation)) { + break; + } + + let args = operation.args; + let fn = operation.fn; + + switch (fn | 0) { + case _util.OPS.paintXObject: + isValidName = args[0] instanceof _primitives.Name; + name = args[0].name; + + if (isValidName) { + const localImage = localImageCache.getByName(name); + + if (localImage) { + operatorList.addImageOps(localImage.fn, localImage.args, localImage.optionalContent); + incrementCachedImageMaskCount(localImage); + args = null; + continue; + } + } + + next(new Promise(function (resolveXObject, rejectXObject) { + if (!isValidName) { + throw new _util.FormatError("XObject must be referred to by name."); + } + + let xobj = xobjs.getRaw(name); + + if (xobj instanceof _primitives.Ref) { + const localImage = localImageCache.getByRef(xobj); + + if (localImage) { + operatorList.addImageOps(localImage.fn, localImage.args, localImage.optionalContent); + incrementCachedImageMaskCount(localImage); + resolveXObject(); + return; + } + + const globalImage = self.globalImageCache.getData(xobj, self.pageIndex); + + if (globalImage) { + operatorList.addDependency(globalImage.objId); + operatorList.addImageOps(globalImage.fn, globalImage.args, globalImage.optionalContent); + resolveXObject(); + return; + } + + xobj = xref.fetch(xobj); + } + + if (!(xobj instanceof _base_stream.BaseStream)) { + throw new _util.FormatError("XObject should be a stream"); + } + + const type = xobj.dict.get("Subtype"); + + if (!(type instanceof _primitives.Name)) { + throw new _util.FormatError("XObject should have a Name subtype"); + } + + if (type.name === "Form") { + stateManager.save(); + self.buildFormXObject(resources, xobj, null, operatorList, task, stateManager.state.clone(), localColorSpaceCache).then(function () { + stateManager.restore(); + resolveXObject(); + }, rejectXObject); + return; + } else if (type.name === "Image") { + self.buildPaintImageXObject({ + resources, + image: xobj, + operatorList, + cacheKey: name, + localImageCache, + localColorSpaceCache + }).then(resolveXObject, rejectXObject); + return; + } else if (type.name === "PS") { + (0, _util.info)("Ignored XObject subtype PS"); + } else { + throw new _util.FormatError(`Unhandled XObject subtype ${type.name}`); + } + + resolveXObject(); + }).catch(function (reason) { + if (reason instanceof _util.AbortException) { + return; + } + + if (self.options.ignoreErrors) { + self.handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorXObject + }); + (0, _util.warn)(`getOperatorList - ignoring XObject: "${reason}".`); + return; + } + + throw reason; + })); + return; + + case _util.OPS.setFont: + var fontSize = args[1]; + next(self.handleSetFont(resources, args, null, operatorList, task, stateManager.state, fallbackFontDict).then(function (loadedName) { + operatorList.addDependency(loadedName); + operatorList.addOp(_util.OPS.setFont, [loadedName, fontSize]); + })); + return; + + case _util.OPS.beginText: + parsingText = true; + break; + + case _util.OPS.endText: + parsingText = false; + break; + + case _util.OPS.endInlineImage: + var cacheKey = args[0].cacheKey; + + if (cacheKey) { + const localImage = localImageCache.getByName(cacheKey); + + if (localImage) { + operatorList.addImageOps(localImage.fn, localImage.args, localImage.optionalContent); + incrementCachedImageMaskCount(localImage); + args = null; + continue; + } + } + + next(self.buildPaintImageXObject({ + resources, + image: args[0], + isInline: true, + operatorList, + cacheKey, + localImageCache, + localColorSpaceCache + })); + return; + + case _util.OPS.showText: + if (!stateManager.state.font) { + self.ensureStateFont(stateManager.state); + continue; + } + + args[0] = self.handleText(args[0], stateManager.state); + break; + + case _util.OPS.showSpacedText: + if (!stateManager.state.font) { + self.ensureStateFont(stateManager.state); + continue; + } + + var arr = args[0]; + var combinedGlyphs = []; + var arrLength = arr.length; + var state = stateManager.state; + + for (i = 0; i < arrLength; ++i) { + const arrItem = arr[i]; + + if (typeof arrItem === "string") { + Array.prototype.push.apply(combinedGlyphs, self.handleText(arrItem, state)); + } else if (typeof arrItem === "number") { + combinedGlyphs.push(arrItem); + } + } + + args[0] = combinedGlyphs; + fn = _util.OPS.showText; + break; + + case _util.OPS.nextLineShowText: + if (!stateManager.state.font) { + self.ensureStateFont(stateManager.state); + continue; + } + + operatorList.addOp(_util.OPS.nextLine); + args[0] = self.handleText(args[0], stateManager.state); + fn = _util.OPS.showText; + break; + + case _util.OPS.nextLineSetSpacingShowText: + if (!stateManager.state.font) { + self.ensureStateFont(stateManager.state); + continue; + } + + operatorList.addOp(_util.OPS.nextLine); + operatorList.addOp(_util.OPS.setWordSpacing, [args.shift()]); + operatorList.addOp(_util.OPS.setCharSpacing, [args.shift()]); + args[0] = self.handleText(args[0], stateManager.state); + fn = _util.OPS.showText; + break; + + case _util.OPS.setTextRenderingMode: + stateManager.state.textRenderingMode = args[0]; + break; + + case _util.OPS.setFillColorSpace: + { + const cachedColorSpace = _colorspace.ColorSpace.getCached(args[0], xref, localColorSpaceCache); + + if (cachedColorSpace) { + stateManager.state.fillColorSpace = cachedColorSpace; + continue; + } + + next(self.parseColorSpace({ + cs: args[0], + resources, + localColorSpaceCache + }).then(function (colorSpace) { + if (colorSpace) { + stateManager.state.fillColorSpace = colorSpace; + } + })); + return; + } + + case _util.OPS.setStrokeColorSpace: + { + const cachedColorSpace = _colorspace.ColorSpace.getCached(args[0], xref, localColorSpaceCache); + + if (cachedColorSpace) { + stateManager.state.strokeColorSpace = cachedColorSpace; + continue; + } + + next(self.parseColorSpace({ + cs: args[0], + resources, + localColorSpaceCache + }).then(function (colorSpace) { + if (colorSpace) { + stateManager.state.strokeColorSpace = colorSpace; + } + })); + return; + } + + case _util.OPS.setFillColor: + cs = stateManager.state.fillColorSpace; + args = cs.getRgb(args, 0); + fn = _util.OPS.setFillRGBColor; + break; + + case _util.OPS.setStrokeColor: + cs = stateManager.state.strokeColorSpace; + args = cs.getRgb(args, 0); + fn = _util.OPS.setStrokeRGBColor; + break; + + case _util.OPS.setFillGray: + stateManager.state.fillColorSpace = _colorspace.ColorSpace.singletons.gray; + args = _colorspace.ColorSpace.singletons.gray.getRgb(args, 0); + fn = _util.OPS.setFillRGBColor; + break; + + case _util.OPS.setStrokeGray: + stateManager.state.strokeColorSpace = _colorspace.ColorSpace.singletons.gray; + args = _colorspace.ColorSpace.singletons.gray.getRgb(args, 0); + fn = _util.OPS.setStrokeRGBColor; + break; + + case _util.OPS.setFillCMYKColor: + stateManager.state.fillColorSpace = _colorspace.ColorSpace.singletons.cmyk; + args = _colorspace.ColorSpace.singletons.cmyk.getRgb(args, 0); + fn = _util.OPS.setFillRGBColor; + break; + + case _util.OPS.setStrokeCMYKColor: + stateManager.state.strokeColorSpace = _colorspace.ColorSpace.singletons.cmyk; + args = _colorspace.ColorSpace.singletons.cmyk.getRgb(args, 0); + fn = _util.OPS.setStrokeRGBColor; + break; + + case _util.OPS.setFillRGBColor: + stateManager.state.fillColorSpace = _colorspace.ColorSpace.singletons.rgb; + args = _colorspace.ColorSpace.singletons.rgb.getRgb(args, 0); + break; + + case _util.OPS.setStrokeRGBColor: + stateManager.state.strokeColorSpace = _colorspace.ColorSpace.singletons.rgb; + args = _colorspace.ColorSpace.singletons.rgb.getRgb(args, 0); + break; + + case _util.OPS.setFillColorN: + cs = stateManager.state.fillColorSpace; + + if (cs.name === "Pattern") { + next(self.handleColorN(operatorList, _util.OPS.setFillColorN, args, cs, patterns, resources, task, localColorSpaceCache, localTilingPatternCache, localShadingPatternCache)); + return; + } + + args = cs.getRgb(args, 0); + fn = _util.OPS.setFillRGBColor; + break; + + case _util.OPS.setStrokeColorN: + cs = stateManager.state.strokeColorSpace; + + if (cs.name === "Pattern") { + next(self.handleColorN(operatorList, _util.OPS.setStrokeColorN, args, cs, patterns, resources, task, localColorSpaceCache, localTilingPatternCache, localShadingPatternCache)); + return; + } + + args = cs.getRgb(args, 0); + fn = _util.OPS.setStrokeRGBColor; + break; + + case _util.OPS.shadingFill: + var shadingRes = resources.get("Shading"); + + if (!shadingRes) { + throw new _util.FormatError("No shading resource found"); + } + + var shading = shadingRes.get(args[0].name); + + if (!shading) { + throw new _util.FormatError("No shading object found"); + } + + const patternId = self.parseShading({ + shading, + resources, + localColorSpaceCache, + localShadingPatternCache + }); + args = [patternId]; + fn = _util.OPS.shadingFill; + break; + + case _util.OPS.setGState: + isValidName = args[0] instanceof _primitives.Name; + name = args[0].name; + + if (isValidName) { + const localGStateObj = localGStateCache.getByName(name); + + if (localGStateObj) { + if (localGStateObj.length > 0) { + operatorList.addOp(_util.OPS.setGState, [localGStateObj]); + } + + args = null; + continue; + } + } + + next(new Promise(function (resolveGState, rejectGState) { + if (!isValidName) { + throw new _util.FormatError("GState must be referred to by name."); + } + + const extGState = resources.get("ExtGState"); + + if (!(extGState instanceof _primitives.Dict)) { + throw new _util.FormatError("ExtGState should be a dictionary."); + } + + const gState = extGState.get(name); + + if (!(gState instanceof _primitives.Dict)) { + throw new _util.FormatError("GState should be a dictionary."); + } + + self.setGState({ + resources, + gState, + operatorList, + cacheKey: name, + task, + stateManager, + localGStateCache, + localColorSpaceCache + }).then(resolveGState, rejectGState); + }).catch(function (reason) { + if (reason instanceof _util.AbortException) { + return; + } + + if (self.options.ignoreErrors) { + self.handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorExtGState + }); + (0, _util.warn)(`getOperatorList - ignoring ExtGState: "${reason}".`); + return; + } + + throw reason; + })); + return; + + case _util.OPS.moveTo: + case _util.OPS.lineTo: + case _util.OPS.curveTo: + case _util.OPS.curveTo2: + case _util.OPS.curveTo3: + case _util.OPS.closePath: + case _util.OPS.rectangle: + self.buildPath(operatorList, fn, args, parsingText); + continue; + + case _util.OPS.markPoint: + case _util.OPS.markPointProps: + case _util.OPS.beginCompat: + case _util.OPS.endCompat: + continue; + + case _util.OPS.beginMarkedContentProps: + if (!(args[0] instanceof _primitives.Name)) { + (0, _util.warn)(`Expected name for beginMarkedContentProps arg0=${args[0]}`); + continue; + } + + if (args[0].name === "OC") { + next(self.parseMarkedContentProps(args[1], resources).then(data => { + operatorList.addOp(_util.OPS.beginMarkedContentProps, ["OC", data]); + }).catch(reason => { + if (reason instanceof _util.AbortException) { + return; + } + + if (self.options.ignoreErrors) { + self.handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorMarkedContent + }); + (0, _util.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${reason}".`); + return; + } + + throw reason; + })); + return; + } + + args = [args[0].name, args[1] instanceof _primitives.Dict ? args[1].get("MCID") : null]; + break; + + case _util.OPS.beginMarkedContent: + case _util.OPS.endMarkedContent: + default: + if (args !== null) { + for (i = 0, ii = args.length; i < ii; i++) { + if (args[i] instanceof _primitives.Dict) { + break; + } + } + + if (i < ii) { + (0, _util.warn)("getOperatorList - ignoring operator: " + fn); + continue; + } + } + + } + + operatorList.addOp(fn, args); + } + + if (stop) { + next(deferred); + return; + } + + closePendingRestoreOPS(); + resolve(); + }).catch(reason => { + if (reason instanceof _util.AbortException) { + return; + } + + if (this.options.ignoreErrors) { + this.handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorOperatorList + }); + (0, _util.warn)(`getOperatorList - ignoring errors during "${task.name}" ` + `task: "${reason}".`); + closePendingRestoreOPS(); + return; + } + + throw reason; + }); + } + + getTextContent({ + stream, + task, + resources, + stateManager = null, + combineTextItems = false, + includeMarkedContent = false, + sink, + seenStyles = new Set(), + viewBox + }) { + resources = resources || _primitives.Dict.empty; + stateManager = stateManager || new StateManager(new TextState()); + const NormalizedUnicodes = (0, _unicode.getNormalizedUnicodes)(); + const textContent = { + items: [], + styles: Object.create(null) + }; + const textContentItem = { + initialized: false, + str: [], + totalWidth: 0, + totalHeight: 0, + width: 0, + height: 0, + vertical: false, + prevTransform: null, + textAdvanceScale: 0, + spaceInFlowMin: 0, + spaceInFlowMax: 0, + trackingSpaceMin: Infinity, + negativeSpaceMax: -Infinity, + notASpace: -Infinity, + transform: null, + fontName: null, + hasEOL: false + }; + const twoLastChars = [" ", " "]; + let twoLastCharsPos = 0; + + function saveLastChar(char) { + const nextPos = (twoLastCharsPos + 1) % 2; + const ret = twoLastChars[twoLastCharsPos] !== " " && twoLastChars[nextPos] === " "; + twoLastChars[twoLastCharsPos] = char; + twoLastCharsPos = nextPos; + return ret; + } + + function resetLastChars() { + twoLastChars[0] = twoLastChars[1] = " "; + twoLastCharsPos = 0; + } + + const TRACKING_SPACE_FACTOR = 0.1; + const NOT_A_SPACE_FACTOR = 0.03; + const NEGATIVE_SPACE_FACTOR = -0.2; + const SPACE_IN_FLOW_MIN_FACTOR = 0.1; + const SPACE_IN_FLOW_MAX_FACTOR = 0.6; + const self = this; + const xref = this.xref; + const showSpacedTextBuffer = []; + let xobjs = null; + const emptyXObjectCache = new _image_utils.LocalImageCache(); + const emptyGStateCache = new _image_utils.LocalGStateCache(); + const preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager); + let textState; + + function getCurrentTextTransform() { + const font = textState.font; + const tsm = [textState.fontSize * textState.textHScale, 0, 0, textState.fontSize, 0, textState.textRise]; + + if (font.isType3Font && (textState.fontSize <= 1 || font.isCharBBox) && !(0, _util.isArrayEqual)(textState.fontMatrix, _util.FONT_IDENTITY_MATRIX)) { + const glyphHeight = font.bbox[3] - font.bbox[1]; + + if (glyphHeight > 0) { + tsm[3] *= glyphHeight * textState.fontMatrix[3]; + } + } + + return _util.Util.transform(textState.ctm, _util.Util.transform(textState.textMatrix, tsm)); + } + + function ensureTextContentItem() { + if (textContentItem.initialized) { + return textContentItem; + } + + const font = textState.font, + loadedName = font.loadedName; + + if (!seenStyles.has(loadedName)) { + seenStyles.add(loadedName); + textContent.styles[loadedName] = { + fontFamily: font.fallbackName, + ascent: font.ascent, + descent: font.descent, + vertical: font.vertical + }; + } + + textContentItem.fontName = loadedName; + const trm = textContentItem.transform = getCurrentTextTransform(); + + if (!font.vertical) { + textContentItem.width = textContentItem.totalWidth = 0; + textContentItem.height = textContentItem.totalHeight = Math.hypot(trm[2], trm[3]); + textContentItem.vertical = false; + } else { + textContentItem.width = textContentItem.totalWidth = Math.hypot(trm[0], trm[1]); + textContentItem.height = textContentItem.totalHeight = 0; + textContentItem.vertical = true; + } + + const scaleLineX = Math.hypot(textState.textLineMatrix[0], textState.textLineMatrix[1]); + const scaleCtmX = Math.hypot(textState.ctm[0], textState.ctm[1]); + textContentItem.textAdvanceScale = scaleCtmX * scaleLineX; + textContentItem.trackingSpaceMin = textState.fontSize * TRACKING_SPACE_FACTOR; + textContentItem.notASpace = textState.fontSize * NOT_A_SPACE_FACTOR; + textContentItem.negativeSpaceMax = textState.fontSize * NEGATIVE_SPACE_FACTOR; + textContentItem.spaceInFlowMin = textState.fontSize * SPACE_IN_FLOW_MIN_FACTOR; + textContentItem.spaceInFlowMax = textState.fontSize * SPACE_IN_FLOW_MAX_FACTOR; + textContentItem.hasEOL = false; + textContentItem.initialized = true; + return textContentItem; + } + + function updateAdvanceScale() { + if (!textContentItem.initialized) { + return; + } + + const scaleLineX = Math.hypot(textState.textLineMatrix[0], textState.textLineMatrix[1]); + const scaleCtmX = Math.hypot(textState.ctm[0], textState.ctm[1]); + const scaleFactor = scaleCtmX * scaleLineX; + + if (scaleFactor === textContentItem.textAdvanceScale) { + return; + } + + if (!textContentItem.vertical) { + textContentItem.totalWidth += textContentItem.width * textContentItem.textAdvanceScale; + textContentItem.width = 0; + } else { + textContentItem.totalHeight += textContentItem.height * textContentItem.textAdvanceScale; + textContentItem.height = 0; + } + + textContentItem.textAdvanceScale = scaleFactor; + } + + function runBidiTransform(textChunk) { + const text = textChunk.str.join(""); + const bidiResult = (0, _bidi.bidi)(text, -1, textChunk.vertical); + return { + str: bidiResult.str, + dir: bidiResult.dir, + width: Math.abs(textChunk.totalWidth), + height: Math.abs(textChunk.totalHeight), + transform: textChunk.transform, + fontName: textChunk.fontName, + hasEOL: textChunk.hasEOL + }; + } + + function handleSetFont(fontName, fontRef) { + return self.loadFont(fontName, fontRef, resources).then(function (translated) { + if (!translated.font.isType3Font) { + return translated; + } + + return translated.loadType3Data(self, resources, task).catch(function () {}).then(function () { + return translated; + }); + }).then(function (translated) { + textState.font = translated.font; + textState.fontMatrix = translated.font.fontMatrix || _util.FONT_IDENTITY_MATRIX; + }); + } + + function applyInverseRotation(x, y, matrix) { + const scale = Math.hypot(matrix[0], matrix[1]); + return [(matrix[0] * x + matrix[1] * y) / scale, (matrix[2] * x + matrix[3] * y) / scale]; + } + + function compareWithLastPosition() { + const currentTransform = getCurrentTextTransform(); + let posX = currentTransform[4]; + let posY = currentTransform[5]; + const shiftedX = posX - viewBox[0]; + const shiftedY = posY - viewBox[1]; + + if (shiftedX < 0 || shiftedX > viewBox[2] || shiftedY < 0 || shiftedY > viewBox[3]) { + return false; + } + + if (!combineTextItems || !textState.font || !textContentItem.prevTransform) { + return true; + } + + let lastPosX = textContentItem.prevTransform[4]; + let lastPosY = textContentItem.prevTransform[5]; + + if (lastPosX === posX && lastPosY === posY) { + return true; + } + + let rotate = -1; + + if (currentTransform[0] && currentTransform[1] === 0 && currentTransform[2] === 0) { + rotate = currentTransform[0] > 0 ? 0 : 180; + } else if (currentTransform[1] && currentTransform[0] === 0 && currentTransform[3] === 0) { + rotate = currentTransform[1] > 0 ? 90 : 270; + } + + switch (rotate) { + case 0: + break; + + case 90: + [posX, posY] = [posY, posX]; + [lastPosX, lastPosY] = [lastPosY, lastPosX]; + break; + + case 180: + [posX, posY, lastPosX, lastPosY] = [-posX, -posY, -lastPosX, -lastPosY]; + break; + + case 270: + [posX, posY] = [-posY, -posX]; + [lastPosX, lastPosY] = [-lastPosY, -lastPosX]; + break; + + default: + [posX, posY] = applyInverseRotation(posX, posY, currentTransform); + [lastPosX, lastPosY] = applyInverseRotation(lastPosX, lastPosY, textContentItem.prevTransform); + } + + if (textState.font.vertical) { + const advanceY = (lastPosY - posY) / textContentItem.textAdvanceScale; + const advanceX = posX - lastPosX; + const textOrientation = Math.sign(textContentItem.height); + + if (advanceY < textOrientation * textContentItem.negativeSpaceMax) { + if (Math.abs(advanceX) > 0.5 * textContentItem.width) { + appendEOL(); + return true; + } + + resetLastChars(); + flushTextContentItem(); + return true; + } + + if (Math.abs(advanceX) > textContentItem.width) { + appendEOL(); + return true; + } + + if (advanceY <= textOrientation * textContentItem.notASpace) { + resetLastChars(); + } + + if (advanceY <= textOrientation * textContentItem.trackingSpaceMin) { + textContentItem.height += advanceY; + } else if (!addFakeSpaces(advanceY, textContentItem.prevTransform, textOrientation)) { + if (textContentItem.str.length === 0) { + resetLastChars(); + textContent.items.push({ + str: " ", + dir: "ltr", + width: 0, + height: Math.abs(advanceY), + transform: textContentItem.prevTransform, + fontName: textContentItem.fontName, + hasEOL: false + }); + } else { + textContentItem.height += advanceY; + } + } + + return true; + } + + const advanceX = (posX - lastPosX) / textContentItem.textAdvanceScale; + const advanceY = posY - lastPosY; + const textOrientation = Math.sign(textContentItem.width); + + if (advanceX < textOrientation * textContentItem.negativeSpaceMax) { + if (Math.abs(advanceY) > 0.5 * textContentItem.height) { + appendEOL(); + return true; + } + + resetLastChars(); + flushTextContentItem(); + return true; + } + + if (Math.abs(advanceY) > textContentItem.height) { + appendEOL(); + return true; + } + + if (advanceX <= textOrientation * textContentItem.notASpace) { + resetLastChars(); + } + + if (advanceX <= textOrientation * textContentItem.trackingSpaceMin) { + textContentItem.width += advanceX; + } else if (!addFakeSpaces(advanceX, textContentItem.prevTransform, textOrientation)) { + if (textContentItem.str.length === 0) { + resetLastChars(); + textContent.items.push({ + str: " ", + dir: "ltr", + width: Math.abs(advanceX), + height: 0, + transform: textContentItem.prevTransform, + fontName: textContentItem.fontName, + hasEOL: false + }); + } else { + textContentItem.width += advanceX; + } + } + + return true; + } + + function buildTextContentItem({ + chars, + extraSpacing + }) { + const font = textState.font; + + if (!chars) { + const charSpacing = textState.charSpacing + extraSpacing; + + if (charSpacing) { + if (!font.vertical) { + textState.translateTextMatrix(charSpacing * textState.textHScale, 0); + } else { + textState.translateTextMatrix(0, -charSpacing); + } + } + + return; + } + + const glyphs = font.charsToGlyphs(chars); + const scale = textState.fontMatrix[0] * textState.fontSize; + + for (let i = 0, ii = glyphs.length; i < ii; i++) { + const glyph = glyphs[i]; + + if (glyph.isInvisibleFormatMark) { + continue; + } + + let charSpacing = textState.charSpacing + (i + 1 === ii ? extraSpacing : 0); + let glyphWidth = glyph.width; + + if (font.vertical) { + glyphWidth = glyph.vmetric ? glyph.vmetric[0] : -glyphWidth; + } + + let scaledDim = glyphWidth * scale; + + if (glyph.isWhitespace) { + if (!font.vertical) { + charSpacing += scaledDim + textState.wordSpacing; + textState.translateTextMatrix(charSpacing * textState.textHScale, 0); + } else { + charSpacing += -scaledDim + textState.wordSpacing; + textState.translateTextMatrix(0, -charSpacing); + } + + saveLastChar(" "); + continue; + } + + if (!compareWithLastPosition()) { + continue; + } + + const textChunk = ensureTextContentItem(); + + if (glyph.isZeroWidthDiacritic) { + scaledDim = 0; + } + + if (!font.vertical) { + scaledDim *= textState.textHScale; + textState.translateTextMatrix(scaledDim, 0); + textChunk.width += scaledDim; + } else { + textState.translateTextMatrix(0, scaledDim); + scaledDim = Math.abs(scaledDim); + textChunk.height += scaledDim; + } + + if (scaledDim) { + textChunk.prevTransform = getCurrentTextTransform(); + } + + let glyphUnicode = glyph.unicode; + glyphUnicode = NormalizedUnicodes[glyphUnicode] || glyphUnicode; + glyphUnicode = (0, _unicode.reverseIfRtl)(glyphUnicode); + + if (saveLastChar(glyphUnicode)) { + textChunk.str.push(" "); + } + + textChunk.str.push(glyphUnicode); + + if (charSpacing) { + if (!font.vertical) { + textState.translateTextMatrix(charSpacing * textState.textHScale, 0); + } else { + textState.translateTextMatrix(0, -charSpacing); + } + } + } + } + + function appendEOL() { + resetLastChars(); + + if (textContentItem.initialized) { + textContentItem.hasEOL = true; + flushTextContentItem(); + } else { + textContent.items.push({ + str: "", + dir: "ltr", + width: 0, + height: 0, + transform: getCurrentTextTransform(), + fontName: textState.font.loadedName, + hasEOL: true + }); + } + } + + function addFakeSpaces(width, transf, textOrientation) { + if (textOrientation * textContentItem.spaceInFlowMin <= width && width <= textOrientation * textContentItem.spaceInFlowMax) { + if (textContentItem.initialized) { + resetLastChars(); + textContentItem.str.push(" "); + } + + return false; + } + + const fontName = textContentItem.fontName; + let height = 0; + + if (textContentItem.vertical) { + height = width; + width = 0; + } + + flushTextContentItem(); + resetLastChars(); + textContent.items.push({ + str: " ", + dir: "ltr", + width: Math.abs(width), + height: Math.abs(height), + transform: transf || getCurrentTextTransform(), + fontName, + hasEOL: false + }); + return true; + } + + function flushTextContentItem() { + if (!textContentItem.initialized || !textContentItem.str) { + return; + } + + if (!textContentItem.vertical) { + textContentItem.totalWidth += textContentItem.width * textContentItem.textAdvanceScale; + } else { + textContentItem.totalHeight += textContentItem.height * textContentItem.textAdvanceScale; + } + + textContent.items.push(runBidiTransform(textContentItem)); + textContentItem.initialized = false; + textContentItem.str.length = 0; + } + + function enqueueChunk(batch = false) { + const length = textContent.items.length; + + if (length === 0) { + return; + } + + if (batch && length < TEXT_CHUNK_BATCH_SIZE) { + return; + } + + sink.enqueue(textContent, length); + textContent.items = []; + textContent.styles = Object.create(null); + } + + const timeSlotManager = new TimeSlotManager(); + return new Promise(function promiseBody(resolve, reject) { + const next = function (promise) { + enqueueChunk(true); + Promise.all([promise, sink.ready]).then(function () { + try { + promiseBody(resolve, reject); + } catch (ex) { + reject(ex); + } + }, reject); + }; + + task.ensureNotTerminated(); + timeSlotManager.reset(); + const operation = {}; + let stop, + args = []; + + while (!(stop = timeSlotManager.check())) { + args.length = 0; + operation.args = args; + + if (!preprocessor.read(operation)) { + break; + } + + textState = stateManager.state; + const fn = operation.fn; + args = operation.args; + + switch (fn | 0) { + case _util.OPS.setFont: + var fontNameArg = args[0].name, + fontSizeArg = args[1]; + + if (textState.font && fontNameArg === textState.fontName && fontSizeArg === textState.fontSize) { + break; + } + + flushTextContentItem(); + textState.fontName = fontNameArg; + textState.fontSize = fontSizeArg; + next(handleSetFont(fontNameArg, null)); + return; + + case _util.OPS.setTextRise: + textState.textRise = args[0]; + break; + + case _util.OPS.setHScale: + textState.textHScale = args[0] / 100; + break; + + case _util.OPS.setLeading: + textState.leading = args[0]; + break; + + case _util.OPS.moveText: + textState.translateTextLineMatrix(args[0], args[1]); + textState.textMatrix = textState.textLineMatrix.slice(); + break; + + case _util.OPS.setLeadingMoveText: + textState.leading = -args[1]; + textState.translateTextLineMatrix(args[0], args[1]); + textState.textMatrix = textState.textLineMatrix.slice(); + break; + + case _util.OPS.nextLine: + textState.carriageReturn(); + break; + + case _util.OPS.setTextMatrix: + textState.setTextMatrix(args[0], args[1], args[2], args[3], args[4], args[5]); + textState.setTextLineMatrix(args[0], args[1], args[2], args[3], args[4], args[5]); + updateAdvanceScale(); + break; + + case _util.OPS.setCharSpacing: + textState.charSpacing = args[0]; + break; + + case _util.OPS.setWordSpacing: + textState.wordSpacing = args[0]; + break; + + case _util.OPS.beginText: + textState.textMatrix = _util.IDENTITY_MATRIX.slice(); + textState.textLineMatrix = _util.IDENTITY_MATRIX.slice(); + break; + + case _util.OPS.showSpacedText: + if (!stateManager.state.font) { + self.ensureStateFont(stateManager.state); + continue; + } + + const spaceFactor = (textState.font.vertical ? 1 : -1) * textState.fontSize / 1000; + const elements = args[0]; + + for (let i = 0, ii = elements.length; i < ii - 1; i++) { + const item = elements[i]; + + if (typeof item === "string") { + showSpacedTextBuffer.push(item); + } else if (typeof item === "number" && item !== 0) { + const str = showSpacedTextBuffer.join(""); + showSpacedTextBuffer.length = 0; + buildTextContentItem({ + chars: str, + extraSpacing: item * spaceFactor + }); + } + } + + const item = elements.at(-1); + + if (typeof item === "string") { + showSpacedTextBuffer.push(item); + } + + if (showSpacedTextBuffer.length > 0) { + const str = showSpacedTextBuffer.join(""); + showSpacedTextBuffer.length = 0; + buildTextContentItem({ + chars: str, + extraSpacing: 0 + }); + } + + break; + + case _util.OPS.showText: + if (!stateManager.state.font) { + self.ensureStateFont(stateManager.state); + continue; + } + + buildTextContentItem({ + chars: args[0], + extraSpacing: 0 + }); + break; + + case _util.OPS.nextLineShowText: + if (!stateManager.state.font) { + self.ensureStateFont(stateManager.state); + continue; + } + + textState.carriageReturn(); + buildTextContentItem({ + chars: args[0], + extraSpacing: 0 + }); + break; + + case _util.OPS.nextLineSetSpacingShowText: + if (!stateManager.state.font) { + self.ensureStateFont(stateManager.state); + continue; + } + + textState.wordSpacing = args[0]; + textState.charSpacing = args[1]; + textState.carriageReturn(); + buildTextContentItem({ + chars: args[2], + extraSpacing: 0 + }); + break; + + case _util.OPS.paintXObject: + flushTextContentItem(); + + if (!xobjs) { + xobjs = resources.get("XObject") || _primitives.Dict.empty; + } + + var isValidName = args[0] instanceof _primitives.Name; + var name = args[0].name; + + if (isValidName && emptyXObjectCache.getByName(name)) { + break; + } + + next(new Promise(function (resolveXObject, rejectXObject) { + if (!isValidName) { + throw new _util.FormatError("XObject must be referred to by name."); + } + + let xobj = xobjs.getRaw(name); + + if (xobj instanceof _primitives.Ref) { + if (emptyXObjectCache.getByRef(xobj)) { + resolveXObject(); + return; + } + + const globalImage = self.globalImageCache.getData(xobj, self.pageIndex); + + if (globalImage) { + resolveXObject(); + return; + } + + xobj = xref.fetch(xobj); + } + + if (!(xobj instanceof _base_stream.BaseStream)) { + throw new _util.FormatError("XObject should be a stream"); + } + + const type = xobj.dict.get("Subtype"); + + if (!(type instanceof _primitives.Name)) { + throw new _util.FormatError("XObject should have a Name subtype"); + } + + if (type.name !== "Form") { + emptyXObjectCache.set(name, xobj.dict.objId, true); + resolveXObject(); + return; + } + + const currentState = stateManager.state.clone(); + const xObjStateManager = new StateManager(currentState); + const matrix = xobj.dict.getArray("Matrix"); + + if (Array.isArray(matrix) && matrix.length === 6) { + xObjStateManager.transform(matrix); + } + + enqueueChunk(); + const sinkWrapper = { + enqueueInvoked: false, + + enqueue(chunk, size) { + this.enqueueInvoked = true; + sink.enqueue(chunk, size); + }, + + get desiredSize() { + return sink.desiredSize; + }, + + get ready() { + return sink.ready; + } + + }; + self.getTextContent({ + stream: xobj, + task, + resources: xobj.dict.get("Resources") || resources, + stateManager: xObjStateManager, + combineTextItems, + includeMarkedContent, + sink: sinkWrapper, + seenStyles, + viewBox + }).then(function () { + if (!sinkWrapper.enqueueInvoked) { + emptyXObjectCache.set(name, xobj.dict.objId, true); + } + + resolveXObject(); + }, rejectXObject); + }).catch(function (reason) { + if (reason instanceof _util.AbortException) { + return; + } + + if (self.options.ignoreErrors) { + (0, _util.warn)(`getTextContent - ignoring XObject: "${reason}".`); + return; + } + + throw reason; + })); + return; + + case _util.OPS.setGState: + isValidName = args[0] instanceof _primitives.Name; + name = args[0].name; + + if (isValidName && emptyGStateCache.getByName(name)) { + break; + } + + next(new Promise(function (resolveGState, rejectGState) { + if (!isValidName) { + throw new _util.FormatError("GState must be referred to by name."); + } + + const extGState = resources.get("ExtGState"); + + if (!(extGState instanceof _primitives.Dict)) { + throw new _util.FormatError("ExtGState should be a dictionary."); + } + + const gState = extGState.get(name); + + if (!(gState instanceof _primitives.Dict)) { + throw new _util.FormatError("GState should be a dictionary."); + } + + const gStateFont = gState.get("Font"); + + if (!gStateFont) { + emptyGStateCache.set(name, gState.objId, true); + resolveGState(); + return; + } + + flushTextContentItem(); + textState.fontName = null; + textState.fontSize = gStateFont[1]; + handleSetFont(null, gStateFont[0]).then(resolveGState, rejectGState); + }).catch(function (reason) { + if (reason instanceof _util.AbortException) { + return; + } + + if (self.options.ignoreErrors) { + (0, _util.warn)(`getTextContent - ignoring ExtGState: "${reason}".`); + return; + } + + throw reason; + })); + return; + + case _util.OPS.beginMarkedContent: + flushTextContentItem(); + + if (includeMarkedContent) { + textContent.items.push({ + type: "beginMarkedContent", + tag: args[0] instanceof _primitives.Name ? args[0].name : null + }); + } + + break; + + case _util.OPS.beginMarkedContentProps: + flushTextContentItem(); + + if (includeMarkedContent) { + let mcid = null; + + if (args[1] instanceof _primitives.Dict) { + mcid = args[1].get("MCID"); + } + + textContent.items.push({ + type: "beginMarkedContentProps", + id: Number.isInteger(mcid) ? `${self.idFactory.getPageObjId()}_mcid${mcid}` : null, + tag: args[0] instanceof _primitives.Name ? args[0].name : null + }); + } + + break; + + case _util.OPS.endMarkedContent: + flushTextContentItem(); + + if (includeMarkedContent) { + textContent.items.push({ + type: "endMarkedContent" + }); + } + + break; + } + + if (textContent.items.length >= sink.desiredSize) { + stop = true; + break; + } + } + + if (stop) { + next(deferred); + return; + } + + flushTextContentItem(); + enqueueChunk(); + resolve(); + }).catch(reason => { + if (reason instanceof _util.AbortException) { + return; + } + + if (this.options.ignoreErrors) { + (0, _util.warn)(`getTextContent - ignoring errors during "${task.name}" ` + `task: "${reason}".`); + flushTextContentItem(); + enqueueChunk(); + return; + } + + throw reason; + }); + } + + extractDataStructures(dict, baseDict, properties) { + const xref = this.xref; + let cidToGidBytes; + const toUnicodePromise = this.readToUnicode(properties.toUnicode || dict.get("ToUnicode") || baseDict.get("ToUnicode")); + + if (properties.composite) { + const cidSystemInfo = dict.get("CIDSystemInfo"); + + if (cidSystemInfo instanceof _primitives.Dict) { + properties.cidSystemInfo = { + registry: (0, _util.stringToPDFString)(cidSystemInfo.get("Registry")), + ordering: (0, _util.stringToPDFString)(cidSystemInfo.get("Ordering")), + supplement: cidSystemInfo.get("Supplement") + }; + } + + try { + const cidToGidMap = dict.get("CIDToGIDMap"); + + if (cidToGidMap instanceof _base_stream.BaseStream) { + cidToGidBytes = cidToGidMap.getBytes(); + } + } catch (ex) { + if (!this.options.ignoreErrors) { + throw ex; + } + + (0, _util.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${ex}".`); + } + } + + const differences = []; + let baseEncodingName = null; + let encoding; + + if (dict.has("Encoding")) { + encoding = dict.get("Encoding"); + + if (encoding instanceof _primitives.Dict) { + baseEncodingName = encoding.get("BaseEncoding"); + baseEncodingName = baseEncodingName instanceof _primitives.Name ? baseEncodingName.name : null; + + if (encoding.has("Differences")) { + const diffEncoding = encoding.get("Differences"); + let index = 0; + + for (let j = 0, jj = diffEncoding.length; j < jj; j++) { + const data = xref.fetchIfRef(diffEncoding[j]); + + if (typeof data === "number") { + index = data; + } else if (data instanceof _primitives.Name) { + differences[index++] = data.name; + } else { + throw new _util.FormatError(`Invalid entry in 'Differences' array: ${data}`); + } + } + } + } else if (encoding instanceof _primitives.Name) { + baseEncodingName = encoding.name; + } else { + const msg = "Encoding is not a Name nor a Dict"; + + if (!this.options.ignoreErrors) { + throw new _util.FormatError(msg); + } + + (0, _util.warn)(msg); + } + + if (baseEncodingName !== "MacRomanEncoding" && baseEncodingName !== "MacExpertEncoding" && baseEncodingName !== "WinAnsiEncoding") { + baseEncodingName = null; + } + } + + if (baseEncodingName) { + properties.defaultEncoding = (0, _encodings.getEncoding)(baseEncodingName); + } else { + const isSymbolicFont = !!(properties.flags & _fonts_utils.FontFlags.Symbolic); + const isNonsymbolicFont = !!(properties.flags & _fonts_utils.FontFlags.Nonsymbolic); + encoding = _encodings.StandardEncoding; + + if (properties.type === "TrueType" && !isNonsymbolicFont) { + encoding = _encodings.WinAnsiEncoding; + } + + if (isSymbolicFont) { + encoding = _encodings.MacRomanEncoding; + + if (!properties.file || properties.isInternalFont) { + if (/Symbol/i.test(properties.name)) { + encoding = _encodings.SymbolSetEncoding; + } else if (/Dingbats|Wingdings/i.test(properties.name)) { + encoding = _encodings.ZapfDingbatsEncoding; + } + } + } + + properties.defaultEncoding = encoding; + } + + properties.differences = differences; + properties.baseEncodingName = baseEncodingName; + properties.hasEncoding = !!baseEncodingName || differences.length > 0; + properties.dict = dict; + return toUnicodePromise.then(readToUnicode => { + properties.toUnicode = readToUnicode; + return this.buildToUnicode(properties); + }).then(builtToUnicode => { + properties.toUnicode = builtToUnicode; + + if (cidToGidBytes) { + properties.cidToGidMap = this.readCidToGidMap(cidToGidBytes, builtToUnicode); + } + + return properties; + }); + } + + _simpleFontToUnicode(properties, forceGlyphs = false) { + (0, _util.assert)(!properties.composite, "Must be a simple font."); + const toUnicode = []; + const encoding = properties.defaultEncoding.slice(); + const baseEncodingName = properties.baseEncodingName; + const differences = properties.differences; + + for (const charcode in differences) { + const glyphName = differences[charcode]; + + if (glyphName === ".notdef") { + continue; + } + + encoding[charcode] = glyphName; + } + + const glyphsUnicodeMap = (0, _glyphlist.getGlyphsUnicode)(); + + for (const charcode in encoding) { + let glyphName = encoding[charcode]; + + if (glyphName === "") { + continue; + } else if (glyphsUnicodeMap[glyphName] === undefined) { + let code = 0; + + switch (glyphName[0]) { + case "G": + if (glyphName.length === 3) { + code = parseInt(glyphName.substring(1), 16); + } + + break; + + case "g": + if (glyphName.length === 5) { + code = parseInt(glyphName.substring(1), 16); + } + + break; + + case "C": + case "c": + if (glyphName.length >= 3 && glyphName.length <= 4) { + const codeStr = glyphName.substring(1); + + if (forceGlyphs) { + code = parseInt(codeStr, 16); + break; + } + + code = +codeStr; + + if (Number.isNaN(code) && Number.isInteger(parseInt(codeStr, 16))) { + return this._simpleFontToUnicode(properties, true); + } + } + + break; + + default: + const unicode = (0, _unicode.getUnicodeForGlyph)(glyphName, glyphsUnicodeMap); + + if (unicode !== -1) { + code = unicode; + } + + } + + if (code > 0 && code <= 0x10ffff && Number.isInteger(code)) { + if (baseEncodingName && code === +charcode) { + const baseEncoding = (0, _encodings.getEncoding)(baseEncodingName); + + if (baseEncoding && (glyphName = baseEncoding[charcode])) { + toUnicode[charcode] = String.fromCharCode(glyphsUnicodeMap[glyphName]); + continue; + } + } + + toUnicode[charcode] = String.fromCodePoint(code); + } + + continue; + } + + toUnicode[charcode] = String.fromCharCode(glyphsUnicodeMap[glyphName]); + } + + return toUnicode; + } + + async buildToUnicode(properties) { + properties.hasIncludedToUnicodeMap = !!properties.toUnicode && properties.toUnicode.length > 0; + + if (properties.hasIncludedToUnicodeMap) { + if (!properties.composite && properties.hasEncoding) { + properties.fallbackToUnicode = this._simpleFontToUnicode(properties); + } + + return properties.toUnicode; + } + + if (!properties.composite) { + return new _to_unicode_map.ToUnicodeMap(this._simpleFontToUnicode(properties)); + } + + if (properties.composite && (properties.cMap.builtInCMap && !(properties.cMap instanceof _cmap.IdentityCMap) || properties.cidSystemInfo.registry === "Adobe" && (properties.cidSystemInfo.ordering === "GB1" || properties.cidSystemInfo.ordering === "CNS1" || properties.cidSystemInfo.ordering === "Japan1" || properties.cidSystemInfo.ordering === "Korea1"))) { + const { + registry, + ordering + } = properties.cidSystemInfo; + + const ucs2CMapName = _primitives.Name.get(`${registry}-${ordering}-UCS2`); + + const ucs2CMap = await _cmap.CMapFactory.create({ + encoding: ucs2CMapName, + fetchBuiltInCMap: this._fetchBuiltInCMapBound, + useCMap: null + }); + const toUnicode = []; + properties.cMap.forEach(function (charcode, cid) { + if (cid > 0xffff) { + throw new _util.FormatError("Max size of CID is 65,535"); + } + + const ucs2 = ucs2CMap.lookup(cid); + + if (ucs2) { + toUnicode[charcode] = String.fromCharCode((ucs2.charCodeAt(0) << 8) + ucs2.charCodeAt(1)); + } + }); + return new _to_unicode_map.ToUnicodeMap(toUnicode); + } + + return new _to_unicode_map.IdentityToUnicodeMap(properties.firstChar, properties.lastChar); + } + + readToUnicode(cmapObj) { + if (!cmapObj) { + return Promise.resolve(null); + } + + if (cmapObj instanceof _primitives.Name) { + return _cmap.CMapFactory.create({ + encoding: cmapObj, + fetchBuiltInCMap: this._fetchBuiltInCMapBound, + useCMap: null + }).then(function (cmap) { + if (cmap instanceof _cmap.IdentityCMap) { + return new _to_unicode_map.IdentityToUnicodeMap(0, 0xffff); + } + + return new _to_unicode_map.ToUnicodeMap(cmap.getMap()); + }); + } else if (cmapObj instanceof _base_stream.BaseStream) { + return _cmap.CMapFactory.create({ + encoding: cmapObj, + fetchBuiltInCMap: this._fetchBuiltInCMapBound, + useCMap: null + }).then(function (cmap) { + if (cmap instanceof _cmap.IdentityCMap) { + return new _to_unicode_map.IdentityToUnicodeMap(0, 0xffff); + } + + const map = new Array(cmap.length); + cmap.forEach(function (charCode, token) { + if (typeof token === "number") { + map[charCode] = String.fromCodePoint(token); + return; + } + + const str = []; + + for (let k = 0; k < token.length; k += 2) { + const w1 = token.charCodeAt(k) << 8 | token.charCodeAt(k + 1); + + if ((w1 & 0xf800) !== 0xd800) { + str.push(w1); + continue; + } + + k += 2; + const w2 = token.charCodeAt(k) << 8 | token.charCodeAt(k + 1); + str.push(((w1 & 0x3ff) << 10) + (w2 & 0x3ff) + 0x10000); + } + + map[charCode] = String.fromCodePoint(...str); + }); + return new _to_unicode_map.ToUnicodeMap(map); + }, reason => { + if (reason instanceof _util.AbortException) { + return null; + } + + if (this.options.ignoreErrors) { + this.handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorFontToUnicode + }); + (0, _util.warn)(`readToUnicode - ignoring ToUnicode data: "${reason}".`); + return null; + } + + throw reason; + }); + } + + return Promise.resolve(null); + } + + readCidToGidMap(glyphsData, toUnicode) { + const result = []; + + for (let j = 0, jj = glyphsData.length; j < jj; j++) { + const glyphID = glyphsData[j++] << 8 | glyphsData[j]; + const code = j >> 1; + + if (glyphID === 0 && !toUnicode.has(code)) { + continue; + } + + result[code] = glyphID; + } + + return result; + } + + extractWidths(dict, descriptor, properties) { + const xref = this.xref; + let glyphsWidths = []; + let defaultWidth = 0; + const glyphsVMetrics = []; + let defaultVMetrics; + let i, ii, j, jj, start, code, widths; + + if (properties.composite) { + defaultWidth = dict.has("DW") ? dict.get("DW") : 1000; + widths = dict.get("W"); + + if (widths) { + for (i = 0, ii = widths.length; i < ii; i++) { + start = xref.fetchIfRef(widths[i++]); + code = xref.fetchIfRef(widths[i]); + + if (Array.isArray(code)) { + for (j = 0, jj = code.length; j < jj; j++) { + glyphsWidths[start++] = xref.fetchIfRef(code[j]); + } + } else { + const width = xref.fetchIfRef(widths[++i]); + + for (j = start; j <= code; j++) { + glyphsWidths[j] = width; + } + } + } + } + + if (properties.vertical) { + let vmetrics = dict.getArray("DW2") || [880, -1000]; + defaultVMetrics = [vmetrics[1], defaultWidth * 0.5, vmetrics[0]]; + vmetrics = dict.get("W2"); + + if (vmetrics) { + for (i = 0, ii = vmetrics.length; i < ii; i++) { + start = xref.fetchIfRef(vmetrics[i++]); + code = xref.fetchIfRef(vmetrics[i]); + + if (Array.isArray(code)) { + for (j = 0, jj = code.length; j < jj; j++) { + glyphsVMetrics[start++] = [xref.fetchIfRef(code[j++]), xref.fetchIfRef(code[j++]), xref.fetchIfRef(code[j])]; + } + } else { + const vmetric = [xref.fetchIfRef(vmetrics[++i]), xref.fetchIfRef(vmetrics[++i]), xref.fetchIfRef(vmetrics[++i])]; + + for (j = start; j <= code; j++) { + glyphsVMetrics[j] = vmetric; + } + } + } + } + } + } else { + const firstChar = properties.firstChar; + widths = dict.get("Widths"); + + if (widths) { + j = firstChar; + + for (i = 0, ii = widths.length; i < ii; i++) { + glyphsWidths[j++] = xref.fetchIfRef(widths[i]); + } + + defaultWidth = parseFloat(descriptor.get("MissingWidth")) || 0; + } else { + const baseFontName = dict.get("BaseFont"); + + if (baseFontName instanceof _primitives.Name) { + const metrics = this.getBaseFontMetrics(baseFontName.name); + glyphsWidths = this.buildCharCodeToWidth(metrics.widths, properties); + defaultWidth = metrics.defaultWidth; + } + } + } + + let isMonospace = true; + let firstWidth = defaultWidth; + + for (const glyph in glyphsWidths) { + const glyphWidth = glyphsWidths[glyph]; + + if (!glyphWidth) { + continue; + } + + if (!firstWidth) { + firstWidth = glyphWidth; + continue; + } + + if (firstWidth !== glyphWidth) { + isMonospace = false; + break; + } + } + + if (isMonospace) { + properties.flags |= _fonts_utils.FontFlags.FixedPitch; + } + + properties.defaultWidth = defaultWidth; + properties.widths = glyphsWidths; + properties.defaultVMetrics = defaultVMetrics; + properties.vmetrics = glyphsVMetrics; + } + + isSerifFont(baseFontName) { + const fontNameWoStyle = baseFontName.split("-")[0]; + return fontNameWoStyle in (0, _standard_fonts.getSerifFonts)() || fontNameWoStyle.search(/serif/gi) !== -1; + } + + getBaseFontMetrics(name) { + let defaultWidth = 0; + let widths = Object.create(null); + let monospace = false; + const stdFontMap = (0, _standard_fonts.getStdFontMap)(); + let lookupName = stdFontMap[name] || name; + const Metrics = (0, _metrics.getMetrics)(); + + if (!(lookupName in Metrics)) { + if (this.isSerifFont(name)) { + lookupName = "Times-Roman"; + } else { + lookupName = "Helvetica"; + } + } + + const glyphWidths = Metrics[lookupName]; + + if (typeof glyphWidths === "number") { + defaultWidth = glyphWidths; + monospace = true; + } else { + widths = glyphWidths(); + } + + return { + defaultWidth, + monospace, + widths + }; + } + + buildCharCodeToWidth(widthsByGlyphName, properties) { + const widths = Object.create(null); + const differences = properties.differences; + const encoding = properties.defaultEncoding; + + for (let charCode = 0; charCode < 256; charCode++) { + if (charCode in differences && widthsByGlyphName[differences[charCode]]) { + widths[charCode] = widthsByGlyphName[differences[charCode]]; + continue; + } + + if (charCode in encoding && widthsByGlyphName[encoding[charCode]]) { + widths[charCode] = widthsByGlyphName[encoding[charCode]]; + continue; + } + } + + return widths; + } + + preEvaluateFont(dict) { + const baseDict = dict; + let type = dict.get("Subtype"); + + if (!(type instanceof _primitives.Name)) { + throw new _util.FormatError("invalid font Subtype"); + } + + let composite = false; + let hash, toUnicode; + + if (type.name === "Type0") { + const df = dict.get("DescendantFonts"); + + if (!df) { + throw new _util.FormatError("Descendant fonts are not specified"); + } + + dict = Array.isArray(df) ? this.xref.fetchIfRef(df[0]) : df; + + if (!(dict instanceof _primitives.Dict)) { + throw new _util.FormatError("Descendant font is not a dictionary."); + } + + type = dict.get("Subtype"); + + if (!(type instanceof _primitives.Name)) { + throw new _util.FormatError("invalid font Subtype"); + } + + composite = true; + } + + const firstChar = dict.get("FirstChar") || 0, + lastChar = dict.get("LastChar") || (composite ? 0xffff : 0xff); + const descriptor = dict.get("FontDescriptor"); + + if (descriptor) { + hash = new _murmurhash.MurmurHash3_64(); + const encoding = baseDict.getRaw("Encoding"); + + if (encoding instanceof _primitives.Name) { + hash.update(encoding.name); + } else if (encoding instanceof _primitives.Ref) { + hash.update(encoding.toString()); + } else if (encoding instanceof _primitives.Dict) { + for (const entry of encoding.getRawValues()) { + if (entry instanceof _primitives.Name) { + hash.update(entry.name); + } else if (entry instanceof _primitives.Ref) { + hash.update(entry.toString()); + } else if (Array.isArray(entry)) { + const diffLength = entry.length, + diffBuf = new Array(diffLength); + + for (let j = 0; j < diffLength; j++) { + const diffEntry = entry[j]; + + if (diffEntry instanceof _primitives.Name) { + diffBuf[j] = diffEntry.name; + } else if (typeof diffEntry === "number" || diffEntry instanceof _primitives.Ref) { + diffBuf[j] = diffEntry.toString(); + } + } + + hash.update(diffBuf.join()); + } + } + } + + hash.update(`${firstChar}-${lastChar}`); + toUnicode = dict.get("ToUnicode") || baseDict.get("ToUnicode"); + + if (toUnicode instanceof _base_stream.BaseStream) { + const stream = toUnicode.str || toUnicode; + const uint8array = stream.buffer ? new Uint8Array(stream.buffer.buffer, 0, stream.bufferLength) : new Uint8Array(stream.bytes.buffer, stream.start, stream.end - stream.start); + hash.update(uint8array); + } else if (toUnicode instanceof _primitives.Name) { + hash.update(toUnicode.name); + } + + const widths = dict.get("Widths") || baseDict.get("Widths"); + + if (Array.isArray(widths)) { + const widthsBuf = []; + + for (const entry of widths) { + if (typeof entry === "number" || entry instanceof _primitives.Ref) { + widthsBuf.push(entry.toString()); + } + } + + hash.update(widthsBuf.join()); + } + + if (composite) { + hash.update("compositeFont"); + const compositeWidths = dict.get("W") || baseDict.get("W"); + + if (Array.isArray(compositeWidths)) { + const widthsBuf = []; + + for (const entry of compositeWidths) { + if (typeof entry === "number" || entry instanceof _primitives.Ref) { + widthsBuf.push(entry.toString()); + } else if (Array.isArray(entry)) { + const subWidthsBuf = []; + + for (const element of entry) { + if (typeof element === "number" || element instanceof _primitives.Ref) { + subWidthsBuf.push(element.toString()); + } + } + + widthsBuf.push(`[${subWidthsBuf.join()}]`); + } + } + + hash.update(widthsBuf.join()); + } + + const cidToGidMap = dict.getRaw("CIDToGIDMap") || baseDict.getRaw("CIDToGIDMap"); + + if (cidToGidMap instanceof _primitives.Name) { + hash.update(cidToGidMap.name); + } else if (cidToGidMap instanceof _primitives.Ref) { + hash.update(cidToGidMap.toString()); + } else if (cidToGidMap instanceof _base_stream.BaseStream) { + hash.update(cidToGidMap.peekBytes()); + } + } + } + + return { + descriptor, + dict, + baseDict, + composite, + type: type.name, + firstChar, + lastChar, + toUnicode, + hash: hash ? hash.hexdigest() : "" + }; + } + + async translateFont({ + descriptor, + dict, + baseDict, + composite, + type, + firstChar, + lastChar, + toUnicode, + cssFontInfo + }) { + const isType3Font = type === "Type3"; + let properties; + + if (!descriptor) { + if (isType3Font) { + descriptor = new _primitives.Dict(null); + descriptor.set("FontName", _primitives.Name.get(type)); + descriptor.set("FontBBox", dict.getArray("FontBBox") || [0, 0, 0, 0]); + } else { + let baseFontName = dict.get("BaseFont"); + + if (!(baseFontName instanceof _primitives.Name)) { + throw new _util.FormatError("Base font is not specified"); + } + + baseFontName = baseFontName.name.replace(/[,_]/g, "-"); + const metrics = this.getBaseFontMetrics(baseFontName); + const fontNameWoStyle = baseFontName.split("-")[0]; + const flags = (this.isSerifFont(fontNameWoStyle) ? _fonts_utils.FontFlags.Serif : 0) | (metrics.monospace ? _fonts_utils.FontFlags.FixedPitch : 0) | ((0, _standard_fonts.getSymbolsFonts)()[fontNameWoStyle] ? _fonts_utils.FontFlags.Symbolic : _fonts_utils.FontFlags.Nonsymbolic); + properties = { + type, + name: baseFontName, + loadedName: baseDict.loadedName, + widths: metrics.widths, + defaultWidth: metrics.defaultWidth, + isSimulatedFlags: true, + flags, + firstChar, + lastChar, + toUnicode, + xHeight: 0, + capHeight: 0, + italicAngle: 0, + isType3Font + }; + const widths = dict.get("Widths"); + const standardFontName = (0, _standard_fonts.getStandardFontName)(baseFontName); + let file = null; + + if (standardFontName) { + properties.isStandardFont = true; + file = await this.fetchStandardFontData(standardFontName); + properties.isInternalFont = !!file; + } + + return this.extractDataStructures(dict, dict, properties).then(newProperties => { + if (widths) { + const glyphWidths = []; + let j = firstChar; + + for (let i = 0, ii = widths.length; i < ii; i++) { + glyphWidths[j++] = this.xref.fetchIfRef(widths[i]); + } + + newProperties.widths = glyphWidths; + } else { + newProperties.widths = this.buildCharCodeToWidth(metrics.widths, newProperties); + } + + return new _fonts.Font(baseFontName, file, newProperties); + }); + } + } + + let fontName = descriptor.get("FontName"); + let baseFont = dict.get("BaseFont"); + + if (typeof fontName === "string") { + fontName = _primitives.Name.get(fontName); + } + + if (typeof baseFont === "string") { + baseFont = _primitives.Name.get(baseFont); + } + + if (!isType3Font) { + const fontNameStr = fontName && fontName.name; + const baseFontStr = baseFont && baseFont.name; + + if (fontNameStr !== baseFontStr) { + (0, _util.info)(`The FontDescriptor's FontName is "${fontNameStr}" but ` + `should be the same as the Font's BaseFont "${baseFontStr}".`); + + if (fontNameStr && baseFontStr && baseFontStr.startsWith(fontNameStr)) { + fontName = baseFont; + } + } + } + + fontName = fontName || baseFont; + + if (!(fontName instanceof _primitives.Name)) { + throw new _util.FormatError("invalid font name"); + } + + let fontFile, subtype, length1, length2, length3; + + try { + fontFile = descriptor.get("FontFile", "FontFile2", "FontFile3"); + } catch (ex) { + if (!this.options.ignoreErrors) { + throw ex; + } + + (0, _util.warn)(`translateFont - fetching "${fontName.name}" font file: "${ex}".`); + fontFile = new _stream.NullStream(); + } + + let isStandardFont = false; + let isInternalFont = false; + let glyphScaleFactors = null; + + if (fontFile) { + if (fontFile.dict) { + const subtypeEntry = fontFile.dict.get("Subtype"); + + if (subtypeEntry instanceof _primitives.Name) { + subtype = subtypeEntry.name; + } + + length1 = fontFile.dict.get("Length1"); + length2 = fontFile.dict.get("Length2"); + length3 = fontFile.dict.get("Length3"); + } + } else if (cssFontInfo) { + const standardFontName = (0, _xfa_fonts.getXfaFontName)(fontName.name); + + if (standardFontName) { + cssFontInfo.fontFamily = `${cssFontInfo.fontFamily}-PdfJS-XFA`; + cssFontInfo.metrics = standardFontName.metrics || null; + glyphScaleFactors = standardFontName.factors || null; + fontFile = await this.fetchStandardFontData(standardFontName.name); + isInternalFont = !!fontFile; + baseDict = dict = (0, _xfa_fonts.getXfaFontDict)(fontName.name); + composite = true; + } + } else if (!isType3Font) { + const standardFontName = (0, _standard_fonts.getStandardFontName)(fontName.name); + + if (standardFontName) { + isStandardFont = true; + fontFile = await this.fetchStandardFontData(standardFontName); + isInternalFont = !!fontFile; + } + } + + properties = { + type, + name: fontName.name, + subtype, + file: fontFile, + length1, + length2, + length3, + isStandardFont, + isInternalFont, + loadedName: baseDict.loadedName, + composite, + fixedPitch: false, + fontMatrix: dict.getArray("FontMatrix") || _util.FONT_IDENTITY_MATRIX, + firstChar, + lastChar, + toUnicode, + bbox: descriptor.getArray("FontBBox") || dict.getArray("FontBBox"), + ascent: descriptor.get("Ascent"), + descent: descriptor.get("Descent"), + xHeight: descriptor.get("XHeight") || 0, + capHeight: descriptor.get("CapHeight") || 0, + flags: descriptor.get("Flags"), + italicAngle: descriptor.get("ItalicAngle") || 0, + isType3Font, + cssFontInfo, + scaleFactors: glyphScaleFactors + }; + + if (composite) { + const cidEncoding = baseDict.get("Encoding"); + + if (cidEncoding instanceof _primitives.Name) { + properties.cidEncoding = cidEncoding.name; + } + + const cMap = await _cmap.CMapFactory.create({ + encoding: cidEncoding, + fetchBuiltInCMap: this._fetchBuiltInCMapBound, + useCMap: null + }); + properties.cMap = cMap; + properties.vertical = properties.cMap.vertical; + } + + return this.extractDataStructures(dict, baseDict, properties).then(newProperties => { + this.extractWidths(dict, descriptor, newProperties); + return new _fonts.Font(fontName.name, fontFile, newProperties); + }); + } + + static buildFontPaths(font, glyphs, handler, evaluatorOptions) { + function buildPath(fontChar) { + const glyphName = `${font.loadedName}_path_${fontChar}`; + + try { + if (font.renderer.hasBuiltPath(fontChar)) { + return; + } + + handler.send("commonobj", [glyphName, "FontPath", font.renderer.getPathJs(fontChar)]); + } catch (reason) { + if (evaluatorOptions.ignoreErrors) { + handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.errorFontBuildPath + }); + (0, _util.warn)(`buildFontPaths - ignoring ${glyphName} glyph: "${reason}".`); + return; + } + + throw reason; + } + } + + for (const glyph of glyphs) { + buildPath(glyph.fontChar); + const accent = glyph.accent; + + if (accent && accent.fontChar) { + buildPath(accent.fontChar); + } + } + } + + static get fallbackFontDict() { + const dict = new _primitives.Dict(); + dict.set("BaseFont", _primitives.Name.get("PDFJS-FallbackFont")); + dict.set("Type", _primitives.Name.get("FallbackType")); + dict.set("Subtype", _primitives.Name.get("FallbackType")); + dict.set("Encoding", _primitives.Name.get("WinAnsiEncoding")); + return (0, _util.shadow)(this, "fallbackFontDict", dict); + } + +} + +exports.PartialEvaluator = PartialEvaluator; + +class TranslatedFont { + constructor({ + loadedName, + font, + dict, + evaluatorOptions + }) { + this.loadedName = loadedName; + this.font = font; + this.dict = dict; + this._evaluatorOptions = evaluatorOptions || DefaultPartialEvaluatorOptions; + this.type3Loaded = null; + this.type3Dependencies = font.isType3Font ? new Set() : null; + this.sent = false; + } + + send(handler) { + if (this.sent) { + return; + } + + this.sent = true; + handler.send("commonobj", [this.loadedName, "Font", this.font.exportData(this._evaluatorOptions.fontExtraProperties)]); + } + + fallback(handler) { + if (!this.font.data) { + return; + } + + this.font.disableFontFace = true; + PartialEvaluator.buildFontPaths(this.font, this.font.glyphCacheValues, handler, this._evaluatorOptions); + } + + loadType3Data(evaluator, resources, task) { + if (this.type3Loaded) { + return this.type3Loaded; + } + + if (!this.font.isType3Font) { + throw new Error("Must be a Type3 font."); + } + + const type3Evaluator = evaluator.clone({ + ignoreErrors: false + }); + type3Evaluator.parsingType3Font = true; + const type3FontRefs = new _primitives.RefSet(evaluator.type3FontRefs); + + if (this.dict.objId && !type3FontRefs.has(this.dict.objId)) { + type3FontRefs.put(this.dict.objId); + } + + type3Evaluator.type3FontRefs = type3FontRefs; + const translatedFont = this.font, + type3Dependencies = this.type3Dependencies; + let loadCharProcsPromise = Promise.resolve(); + const charProcs = this.dict.get("CharProcs"); + const fontResources = this.dict.get("Resources") || resources; + const charProcOperatorList = Object.create(null); + + const fontBBox = _util.Util.normalizeRect(translatedFont.bbox || [0, 0, 0, 0]), + width = fontBBox[2] - fontBBox[0], + height = fontBBox[3] - fontBBox[1]; + + const fontBBoxSize = Math.hypot(width, height); + + for (const key of charProcs.getKeys()) { + loadCharProcsPromise = loadCharProcsPromise.then(() => { + const glyphStream = charProcs.get(key); + const operatorList = new _operator_list.OperatorList(); + return type3Evaluator.getOperatorList({ + stream: glyphStream, + task, + resources: fontResources, + operatorList + }).then(() => { + if (operatorList.fnArray[0] === _util.OPS.setCharWidthAndBounds) { + this._removeType3ColorOperators(operatorList, fontBBoxSize); + } + + charProcOperatorList[key] = operatorList.getIR(); + + for (const dependency of operatorList.dependencies) { + type3Dependencies.add(dependency); + } + }).catch(function (reason) { + (0, _util.warn)(`Type3 font resource "${key}" is not available.`); + const dummyOperatorList = new _operator_list.OperatorList(); + charProcOperatorList[key] = dummyOperatorList.getIR(); + }); + }); + } + + this.type3Loaded = loadCharProcsPromise.then(() => { + translatedFont.charProcOperatorList = charProcOperatorList; + + if (this._bbox) { + translatedFont.isCharBBox = true; + translatedFont.bbox = this._bbox; + } + }); + return this.type3Loaded; + } + + _removeType3ColorOperators(operatorList, fontBBoxSize = NaN) { + const charBBox = _util.Util.normalizeRect(operatorList.argsArray[0].slice(2)), + width = charBBox[2] - charBBox[0], + height = charBBox[3] - charBBox[1]; + + const charBBoxSize = Math.hypot(width, height); + + if (width === 0 || height === 0) { + operatorList.fnArray.splice(0, 1); + operatorList.argsArray.splice(0, 1); + } else if (fontBBoxSize === 0 || Math.round(charBBoxSize / fontBBoxSize) >= 10) { + if (!this._bbox) { + this._bbox = [Infinity, Infinity, -Infinity, -Infinity]; + } + + this._bbox[0] = Math.min(this._bbox[0], charBBox[0]); + this._bbox[1] = Math.min(this._bbox[1], charBBox[1]); + this._bbox[2] = Math.max(this._bbox[2], charBBox[2]); + this._bbox[3] = Math.max(this._bbox[3], charBBox[3]); + } + + let i = 0, + ii = operatorList.length; + + while (i < ii) { + switch (operatorList.fnArray[i]) { + case _util.OPS.setCharWidthAndBounds: + break; + + case _util.OPS.setStrokeColorSpace: + case _util.OPS.setFillColorSpace: + case _util.OPS.setStrokeColor: + case _util.OPS.setStrokeColorN: + case _util.OPS.setFillColor: + case _util.OPS.setFillColorN: + case _util.OPS.setStrokeGray: + case _util.OPS.setFillGray: + case _util.OPS.setStrokeRGBColor: + case _util.OPS.setFillRGBColor: + case _util.OPS.setStrokeCMYKColor: + case _util.OPS.setFillCMYKColor: + case _util.OPS.shadingFill: + case _util.OPS.setRenderingIntent: + operatorList.fnArray.splice(i, 1); + operatorList.argsArray.splice(i, 1); + ii--; + continue; + + case _util.OPS.setGState: + const [gStateObj] = operatorList.argsArray[i]; + let j = 0, + jj = gStateObj.length; + + while (j < jj) { + const [gStateKey] = gStateObj[j]; + + switch (gStateKey) { + case "TR": + case "TR2": + case "HT": + case "BG": + case "BG2": + case "UCR": + case "UCR2": + gStateObj.splice(j, 1); + jj--; + continue; + } + + j++; + } + + break; + } + + i++; + } + } + +} + +class StateManager { + constructor(initialState = new EvalState()) { + this.state = initialState; + this.stateStack = []; + } + + save() { + const old = this.state; + this.stateStack.push(this.state); + this.state = old.clone(); + } + + restore() { + const prev = this.stateStack.pop(); + + if (prev) { + this.state = prev; + } + } + + transform(args) { + this.state.ctm = _util.Util.transform(this.state.ctm, args); + } + +} + +class TextState { + constructor() { + this.ctm = new Float32Array(_util.IDENTITY_MATRIX); + this.fontName = null; + this.fontSize = 0; + this.font = null; + this.fontMatrix = _util.FONT_IDENTITY_MATRIX; + this.textMatrix = _util.IDENTITY_MATRIX.slice(); + this.textLineMatrix = _util.IDENTITY_MATRIX.slice(); + this.charSpacing = 0; + this.wordSpacing = 0; + this.leading = 0; + this.textHScale = 1; + this.textRise = 0; + } + + setTextMatrix(a, b, c, d, e, f) { + const m = this.textMatrix; + m[0] = a; + m[1] = b; + m[2] = c; + m[3] = d; + m[4] = e; + m[5] = f; + } + + setTextLineMatrix(a, b, c, d, e, f) { + const m = this.textLineMatrix; + m[0] = a; + m[1] = b; + m[2] = c; + m[3] = d; + m[4] = e; + m[5] = f; + } + + translateTextMatrix(x, y) { + const m = this.textMatrix; + m[4] = m[0] * x + m[2] * y + m[4]; + m[5] = m[1] * x + m[3] * y + m[5]; + } + + translateTextLineMatrix(x, y) { + const m = this.textLineMatrix; + m[4] = m[0] * x + m[2] * y + m[4]; + m[5] = m[1] * x + m[3] * y + m[5]; + } + + carriageReturn() { + this.translateTextLineMatrix(0, -this.leading); + this.textMatrix = this.textLineMatrix.slice(); + } + + clone() { + const clone = Object.create(this); + clone.textMatrix = this.textMatrix.slice(); + clone.textLineMatrix = this.textLineMatrix.slice(); + clone.fontMatrix = this.fontMatrix.slice(); + return clone; + } + +} + +class EvalState { + constructor() { + this.ctm = new Float32Array(_util.IDENTITY_MATRIX); + this.font = null; + this.textRenderingMode = _util.TextRenderingMode.FILL; + this.fillColorSpace = _colorspace.ColorSpace.singletons.gray; + this.strokeColorSpace = _colorspace.ColorSpace.singletons.gray; + } + + clone() { + return Object.create(this); + } + +} + +class EvaluatorPreprocessor { + static get opMap() { + const getOPMap = (0, _core_utils.getLookupTableFactory)(function (t) { + t.w = { + id: _util.OPS.setLineWidth, + numArgs: 1, + variableArgs: false + }; + t.J = { + id: _util.OPS.setLineCap, + numArgs: 1, + variableArgs: false + }; + t.j = { + id: _util.OPS.setLineJoin, + numArgs: 1, + variableArgs: false + }; + t.M = { + id: _util.OPS.setMiterLimit, + numArgs: 1, + variableArgs: false + }; + t.d = { + id: _util.OPS.setDash, + numArgs: 2, + variableArgs: false + }; + t.ri = { + id: _util.OPS.setRenderingIntent, + numArgs: 1, + variableArgs: false + }; + t.i = { + id: _util.OPS.setFlatness, + numArgs: 1, + variableArgs: false + }; + t.gs = { + id: _util.OPS.setGState, + numArgs: 1, + variableArgs: false + }; + t.q = { + id: _util.OPS.save, + numArgs: 0, + variableArgs: false + }; + t.Q = { + id: _util.OPS.restore, + numArgs: 0, + variableArgs: false + }; + t.cm = { + id: _util.OPS.transform, + numArgs: 6, + variableArgs: false + }; + t.m = { + id: _util.OPS.moveTo, + numArgs: 2, + variableArgs: false + }; + t.l = { + id: _util.OPS.lineTo, + numArgs: 2, + variableArgs: false + }; + t.c = { + id: _util.OPS.curveTo, + numArgs: 6, + variableArgs: false + }; + t.v = { + id: _util.OPS.curveTo2, + numArgs: 4, + variableArgs: false + }; + t.y = { + id: _util.OPS.curveTo3, + numArgs: 4, + variableArgs: false + }; + t.h = { + id: _util.OPS.closePath, + numArgs: 0, + variableArgs: false + }; + t.re = { + id: _util.OPS.rectangle, + numArgs: 4, + variableArgs: false + }; + t.S = { + id: _util.OPS.stroke, + numArgs: 0, + variableArgs: false + }; + t.s = { + id: _util.OPS.closeStroke, + numArgs: 0, + variableArgs: false + }; + t.f = { + id: _util.OPS.fill, + numArgs: 0, + variableArgs: false + }; + t.F = { + id: _util.OPS.fill, + numArgs: 0, + variableArgs: false + }; + t["f*"] = { + id: _util.OPS.eoFill, + numArgs: 0, + variableArgs: false + }; + t.B = { + id: _util.OPS.fillStroke, + numArgs: 0, + variableArgs: false + }; + t["B*"] = { + id: _util.OPS.eoFillStroke, + numArgs: 0, + variableArgs: false + }; + t.b = { + id: _util.OPS.closeFillStroke, + numArgs: 0, + variableArgs: false + }; + t["b*"] = { + id: _util.OPS.closeEOFillStroke, + numArgs: 0, + variableArgs: false + }; + t.n = { + id: _util.OPS.endPath, + numArgs: 0, + variableArgs: false + }; + t.W = { + id: _util.OPS.clip, + numArgs: 0, + variableArgs: false + }; + t["W*"] = { + id: _util.OPS.eoClip, + numArgs: 0, + variableArgs: false + }; + t.BT = { + id: _util.OPS.beginText, + numArgs: 0, + variableArgs: false + }; + t.ET = { + id: _util.OPS.endText, + numArgs: 0, + variableArgs: false + }; + t.Tc = { + id: _util.OPS.setCharSpacing, + numArgs: 1, + variableArgs: false + }; + t.Tw = { + id: _util.OPS.setWordSpacing, + numArgs: 1, + variableArgs: false + }; + t.Tz = { + id: _util.OPS.setHScale, + numArgs: 1, + variableArgs: false + }; + t.TL = { + id: _util.OPS.setLeading, + numArgs: 1, + variableArgs: false + }; + t.Tf = { + id: _util.OPS.setFont, + numArgs: 2, + variableArgs: false + }; + t.Tr = { + id: _util.OPS.setTextRenderingMode, + numArgs: 1, + variableArgs: false + }; + t.Ts = { + id: _util.OPS.setTextRise, + numArgs: 1, + variableArgs: false + }; + t.Td = { + id: _util.OPS.moveText, + numArgs: 2, + variableArgs: false + }; + t.TD = { + id: _util.OPS.setLeadingMoveText, + numArgs: 2, + variableArgs: false + }; + t.Tm = { + id: _util.OPS.setTextMatrix, + numArgs: 6, + variableArgs: false + }; + t["T*"] = { + id: _util.OPS.nextLine, + numArgs: 0, + variableArgs: false + }; + t.Tj = { + id: _util.OPS.showText, + numArgs: 1, + variableArgs: false + }; + t.TJ = { + id: _util.OPS.showSpacedText, + numArgs: 1, + variableArgs: false + }; + t["'"] = { + id: _util.OPS.nextLineShowText, + numArgs: 1, + variableArgs: false + }; + t['"'] = { + id: _util.OPS.nextLineSetSpacingShowText, + numArgs: 3, + variableArgs: false + }; + t.d0 = { + id: _util.OPS.setCharWidth, + numArgs: 2, + variableArgs: false + }; + t.d1 = { + id: _util.OPS.setCharWidthAndBounds, + numArgs: 6, + variableArgs: false + }; + t.CS = { + id: _util.OPS.setStrokeColorSpace, + numArgs: 1, + variableArgs: false + }; + t.cs = { + id: _util.OPS.setFillColorSpace, + numArgs: 1, + variableArgs: false + }; + t.SC = { + id: _util.OPS.setStrokeColor, + numArgs: 4, + variableArgs: true + }; + t.SCN = { + id: _util.OPS.setStrokeColorN, + numArgs: 33, + variableArgs: true + }; + t.sc = { + id: _util.OPS.setFillColor, + numArgs: 4, + variableArgs: true + }; + t.scn = { + id: _util.OPS.setFillColorN, + numArgs: 33, + variableArgs: true + }; + t.G = { + id: _util.OPS.setStrokeGray, + numArgs: 1, + variableArgs: false + }; + t.g = { + id: _util.OPS.setFillGray, + numArgs: 1, + variableArgs: false + }; + t.RG = { + id: _util.OPS.setStrokeRGBColor, + numArgs: 3, + variableArgs: false + }; + t.rg = { + id: _util.OPS.setFillRGBColor, + numArgs: 3, + variableArgs: false + }; + t.K = { + id: _util.OPS.setStrokeCMYKColor, + numArgs: 4, + variableArgs: false + }; + t.k = { + id: _util.OPS.setFillCMYKColor, + numArgs: 4, + variableArgs: false + }; + t.sh = { + id: _util.OPS.shadingFill, + numArgs: 1, + variableArgs: false + }; + t.BI = { + id: _util.OPS.beginInlineImage, + numArgs: 0, + variableArgs: false + }; + t.ID = { + id: _util.OPS.beginImageData, + numArgs: 0, + variableArgs: false + }; + t.EI = { + id: _util.OPS.endInlineImage, + numArgs: 1, + variableArgs: false + }; + t.Do = { + id: _util.OPS.paintXObject, + numArgs: 1, + variableArgs: false + }; + t.MP = { + id: _util.OPS.markPoint, + numArgs: 1, + variableArgs: false + }; + t.DP = { + id: _util.OPS.markPointProps, + numArgs: 2, + variableArgs: false + }; + t.BMC = { + id: _util.OPS.beginMarkedContent, + numArgs: 1, + variableArgs: false + }; + t.BDC = { + id: _util.OPS.beginMarkedContentProps, + numArgs: 2, + variableArgs: false + }; + t.EMC = { + id: _util.OPS.endMarkedContent, + numArgs: 0, + variableArgs: false + }; + t.BX = { + id: _util.OPS.beginCompat, + numArgs: 0, + variableArgs: false + }; + t.EX = { + id: _util.OPS.endCompat, + numArgs: 0, + variableArgs: false + }; + t.BM = null; + t.BD = null; + t.true = null; + t.fa = null; + t.fal = null; + t.fals = null; + t.false = null; + t.nu = null; + t.nul = null; + t.null = null; + }); + return (0, _util.shadow)(this, "opMap", getOPMap()); + } + + static get MAX_INVALID_PATH_OPS() { + return (0, _util.shadow)(this, "MAX_INVALID_PATH_OPS", 10); + } + + constructor(stream, xref, stateManager = new StateManager()) { + this.parser = new _parser.Parser({ + lexer: new _parser.Lexer(stream, EvaluatorPreprocessor.opMap), + xref + }); + this.stateManager = stateManager; + this.nonProcessedArgs = []; + this._isPathOp = false; + this._numInvalidPathOPS = 0; + } + + get savedStatesDepth() { + return this.stateManager.stateStack.length; + } + + read(operation) { + let args = operation.args; + + while (true) { + const obj = this.parser.getObj(); + + if (obj instanceof _primitives.Cmd) { + const cmd = obj.cmd; + const opSpec = EvaluatorPreprocessor.opMap[cmd]; + + if (!opSpec) { + (0, _util.warn)(`Unknown command "${cmd}".`); + continue; + } + + const fn = opSpec.id; + const numArgs = opSpec.numArgs; + let argsLength = args !== null ? args.length : 0; + + if (!this._isPathOp) { + this._numInvalidPathOPS = 0; + } + + this._isPathOp = fn >= _util.OPS.moveTo && fn <= _util.OPS.endPath; + + if (!opSpec.variableArgs) { + if (argsLength !== numArgs) { + const nonProcessedArgs = this.nonProcessedArgs; + + while (argsLength > numArgs) { + nonProcessedArgs.push(args.shift()); + argsLength--; + } + + while (argsLength < numArgs && nonProcessedArgs.length !== 0) { + if (args === null) { + args = []; + } + + args.unshift(nonProcessedArgs.pop()); + argsLength++; + } + } + + if (argsLength < numArgs) { + const partialMsg = `command ${cmd}: expected ${numArgs} args, ` + `but received ${argsLength} args.`; + + if (this._isPathOp && ++this._numInvalidPathOPS > EvaluatorPreprocessor.MAX_INVALID_PATH_OPS) { + throw new _util.FormatError(`Invalid ${partialMsg}`); + } + + (0, _util.warn)(`Skipping ${partialMsg}`); + + if (args !== null) { + args.length = 0; + } + + continue; + } + } else if (argsLength > numArgs) { + (0, _util.info)(`Command ${cmd}: expected [0, ${numArgs}] args, ` + `but received ${argsLength} args.`); + } + + this.preprocessCommand(fn, args); + operation.fn = fn; + operation.args = args; + return true; + } + + if (obj === _primitives.EOF) { + return false; + } + + if (obj !== null) { + if (args === null) { + args = []; + } + + args.push(obj); + + if (args.length > 33) { + throw new _util.FormatError("Too many arguments"); + } + } + } + } + + preprocessCommand(fn, args) { + switch (fn | 0) { + case _util.OPS.save: + this.stateManager.save(); + break; + + case _util.OPS.restore: + this.stateManager.restore(); + break; + + case _util.OPS.transform: + this.stateManager.transform(args); + break; + } + } + +} + +exports.EvaluatorPreprocessor = EvaluatorPreprocessor; + +/***/ }), +/* 16 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.IdentityCMap = exports.CMapFactory = exports.CMap = void 0; + +var _util = __w_pdfjs_require__(2); + +var _primitives = __w_pdfjs_require__(5); + +var _base_stream = __w_pdfjs_require__(7); + +var _parser = __w_pdfjs_require__(17); + +var _core_utils = __w_pdfjs_require__(6); + +var _stream = __w_pdfjs_require__(10); + +const BUILT_IN_CMAPS = ["Adobe-GB1-UCS2", "Adobe-CNS1-UCS2", "Adobe-Japan1-UCS2", "Adobe-Korea1-UCS2", "78-EUC-H", "78-EUC-V", "78-H", "78-RKSJ-H", "78-RKSJ-V", "78-V", "78ms-RKSJ-H", "78ms-RKSJ-V", "83pv-RKSJ-H", "90ms-RKSJ-H", "90ms-RKSJ-V", "90msp-RKSJ-H", "90msp-RKSJ-V", "90pv-RKSJ-H", "90pv-RKSJ-V", "Add-H", "Add-RKSJ-H", "Add-RKSJ-V", "Add-V", "Adobe-CNS1-0", "Adobe-CNS1-1", "Adobe-CNS1-2", "Adobe-CNS1-3", "Adobe-CNS1-4", "Adobe-CNS1-5", "Adobe-CNS1-6", "Adobe-GB1-0", "Adobe-GB1-1", "Adobe-GB1-2", "Adobe-GB1-3", "Adobe-GB1-4", "Adobe-GB1-5", "Adobe-Japan1-0", "Adobe-Japan1-1", "Adobe-Japan1-2", "Adobe-Japan1-3", "Adobe-Japan1-4", "Adobe-Japan1-5", "Adobe-Japan1-6", "Adobe-Korea1-0", "Adobe-Korea1-1", "Adobe-Korea1-2", "B5-H", "B5-V", "B5pc-H", "B5pc-V", "CNS-EUC-H", "CNS-EUC-V", "CNS1-H", "CNS1-V", "CNS2-H", "CNS2-V", "ETHK-B5-H", "ETHK-B5-V", "ETen-B5-H", "ETen-B5-V", "ETenms-B5-H", "ETenms-B5-V", "EUC-H", "EUC-V", "Ext-H", "Ext-RKSJ-H", "Ext-RKSJ-V", "Ext-V", "GB-EUC-H", "GB-EUC-V", "GB-H", "GB-V", "GBK-EUC-H", "GBK-EUC-V", "GBK2K-H", "GBK2K-V", "GBKp-EUC-H", "GBKp-EUC-V", "GBT-EUC-H", "GBT-EUC-V", "GBT-H", "GBT-V", "GBTpc-EUC-H", "GBTpc-EUC-V", "GBpc-EUC-H", "GBpc-EUC-V", "H", "HKdla-B5-H", "HKdla-B5-V", "HKdlb-B5-H", "HKdlb-B5-V", "HKgccs-B5-H", "HKgccs-B5-V", "HKm314-B5-H", "HKm314-B5-V", "HKm471-B5-H", "HKm471-B5-V", "HKscs-B5-H", "HKscs-B5-V", "Hankaku", "Hiragana", "KSC-EUC-H", "KSC-EUC-V", "KSC-H", "KSC-Johab-H", "KSC-Johab-V", "KSC-V", "KSCms-UHC-H", "KSCms-UHC-HW-H", "KSCms-UHC-HW-V", "KSCms-UHC-V", "KSCpc-EUC-H", "KSCpc-EUC-V", "Katakana", "NWP-H", "NWP-V", "RKSJ-H", "RKSJ-V", "Roman", "UniCNS-UCS2-H", "UniCNS-UCS2-V", "UniCNS-UTF16-H", "UniCNS-UTF16-V", "UniCNS-UTF32-H", "UniCNS-UTF32-V", "UniCNS-UTF8-H", "UniCNS-UTF8-V", "UniGB-UCS2-H", "UniGB-UCS2-V", "UniGB-UTF16-H", "UniGB-UTF16-V", "UniGB-UTF32-H", "UniGB-UTF32-V", "UniGB-UTF8-H", "UniGB-UTF8-V", "UniJIS-UCS2-H", "UniJIS-UCS2-HW-H", "UniJIS-UCS2-HW-V", "UniJIS-UCS2-V", "UniJIS-UTF16-H", "UniJIS-UTF16-V", "UniJIS-UTF32-H", "UniJIS-UTF32-V", "UniJIS-UTF8-H", "UniJIS-UTF8-V", "UniJIS2004-UTF16-H", "UniJIS2004-UTF16-V", "UniJIS2004-UTF32-H", "UniJIS2004-UTF32-V", "UniJIS2004-UTF8-H", "UniJIS2004-UTF8-V", "UniJISPro-UCS2-HW-V", "UniJISPro-UCS2-V", "UniJISPro-UTF8-V", "UniJISX0213-UTF32-H", "UniJISX0213-UTF32-V", "UniJISX02132004-UTF32-H", "UniJISX02132004-UTF32-V", "UniKS-UCS2-H", "UniKS-UCS2-V", "UniKS-UTF16-H", "UniKS-UTF16-V", "UniKS-UTF32-H", "UniKS-UTF32-V", "UniKS-UTF8-H", "UniKS-UTF8-V", "V", "WP-Symbol"]; +const MAX_MAP_RANGE = 2 ** 24 - 1; + +class CMap { + constructor(builtInCMap = false) { + this.codespaceRanges = [[], [], [], []]; + this.numCodespaceRanges = 0; + this._map = []; + this.name = ""; + this.vertical = false; + this.useCMap = null; + this.builtInCMap = builtInCMap; + } + + addCodespaceRange(n, low, high) { + this.codespaceRanges[n - 1].push(low, high); + this.numCodespaceRanges++; + } + + mapCidRange(low, high, dstLow) { + if (high - low > MAX_MAP_RANGE) { + throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE."); + } + + while (low <= high) { + this._map[low++] = dstLow++; + } + } + + mapBfRange(low, high, dstLow) { + if (high - low > MAX_MAP_RANGE) { + throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE."); + } + + const lastByte = dstLow.length - 1; + + while (low <= high) { + this._map[low++] = dstLow; + const nextCharCode = dstLow.charCodeAt(lastByte) + 1; + + if (nextCharCode > 0xff) { + dstLow = dstLow.substring(0, lastByte - 1) + String.fromCharCode(dstLow.charCodeAt(lastByte - 1) + 1) + "\x00"; + continue; + } + + dstLow = dstLow.substring(0, lastByte) + String.fromCharCode(nextCharCode); + } + } + + mapBfRangeToArray(low, high, array) { + if (high - low > MAX_MAP_RANGE) { + throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE."); + } + + const ii = array.length; + let i = 0; + + while (low <= high && i < ii) { + this._map[low] = array[i++]; + ++low; + } + } + + mapOne(src, dst) { + this._map[src] = dst; + } + + lookup(code) { + return this._map[code]; + } + + contains(code) { + return this._map[code] !== undefined; + } + + forEach(callback) { + const map = this._map; + const length = map.length; + + if (length <= 0x10000) { + for (let i = 0; i < length; i++) { + if (map[i] !== undefined) { + callback(i, map[i]); + } + } + } else { + for (const i in map) { + callback(i, map[i]); + } + } + } + + charCodeOf(value) { + const map = this._map; + + if (map.length <= 0x10000) { + return map.indexOf(value); + } + + for (const charCode in map) { + if (map[charCode] === value) { + return charCode | 0; + } + } + + return -1; + } + + getMap() { + return this._map; + } + + readCharCode(str, offset, out) { + let c = 0; + const codespaceRanges = this.codespaceRanges; + + for (let n = 0, nn = codespaceRanges.length; n < nn; n++) { + c = (c << 8 | str.charCodeAt(offset + n)) >>> 0; + const codespaceRange = codespaceRanges[n]; + + for (let k = 0, kk = codespaceRange.length; k < kk;) { + const low = codespaceRange[k++]; + const high = codespaceRange[k++]; + + if (c >= low && c <= high) { + out.charcode = c; + out.length = n + 1; + return; + } + } + } + + out.charcode = 0; + out.length = 1; + } + + getCharCodeLength(charCode) { + const codespaceRanges = this.codespaceRanges; + + for (let n = 0, nn = codespaceRanges.length; n < nn; n++) { + const codespaceRange = codespaceRanges[n]; + + for (let k = 0, kk = codespaceRange.length; k < kk;) { + const low = codespaceRange[k++]; + const high = codespaceRange[k++]; + + if (charCode >= low && charCode <= high) { + return n + 1; + } + } + } + + return 1; + } + + get length() { + return this._map.length; + } + + get isIdentityCMap() { + if (!(this.name === "Identity-H" || this.name === "Identity-V")) { + return false; + } + + if (this._map.length !== 0x10000) { + return false; + } + + for (let i = 0; i < 0x10000; i++) { + if (this._map[i] !== i) { + return false; + } + } + + return true; + } + +} + +exports.CMap = CMap; + +class IdentityCMap extends CMap { + constructor(vertical, n) { + super(); + this.vertical = vertical; + this.addCodespaceRange(n, 0, 0xffff); + } + + mapCidRange(low, high, dstLow) { + (0, _util.unreachable)("should not call mapCidRange"); + } + + mapBfRange(low, high, dstLow) { + (0, _util.unreachable)("should not call mapBfRange"); + } + + mapBfRangeToArray(low, high, array) { + (0, _util.unreachable)("should not call mapBfRangeToArray"); + } + + mapOne(src, dst) { + (0, _util.unreachable)("should not call mapCidOne"); + } + + lookup(code) { + return Number.isInteger(code) && code <= 0xffff ? code : undefined; + } + + contains(code) { + return Number.isInteger(code) && code <= 0xffff; + } + + forEach(callback) { + for (let i = 0; i <= 0xffff; i++) { + callback(i, i); + } + } + + charCodeOf(value) { + return Number.isInteger(value) && value <= 0xffff ? value : -1; + } + + getMap() { + const map = new Array(0x10000); + + for (let i = 0; i <= 0xffff; i++) { + map[i] = i; + } + + return map; + } + + get length() { + return 0x10000; + } + + get isIdentityCMap() { + (0, _util.unreachable)("should not access .isIdentityCMap"); + } + +} + +exports.IdentityCMap = IdentityCMap; + +const BinaryCMapReader = function BinaryCMapReaderClosure() { + function hexToInt(a, size) { + let n = 0; + + for (let i = 0; i <= size; i++) { + n = n << 8 | a[i]; + } + + return n >>> 0; + } + + function hexToStr(a, size) { + if (size === 1) { + return String.fromCharCode(a[0], a[1]); + } + + if (size === 3) { + return String.fromCharCode(a[0], a[1], a[2], a[3]); + } + + return String.fromCharCode.apply(null, a.subarray(0, size + 1)); + } + + function addHex(a, b, size) { + let c = 0; + + for (let i = size; i >= 0; i--) { + c += a[i] + b[i]; + a[i] = c & 255; + c >>= 8; + } + } + + function incHex(a, size) { + let c = 1; + + for (let i = size; i >= 0 && c > 0; i--) { + c += a[i]; + a[i] = c & 255; + c >>= 8; + } + } + + const MAX_NUM_SIZE = 16; + const MAX_ENCODED_NUM_SIZE = 19; + + class BinaryCMapStream { + constructor(data) { + this.buffer = data; + this.pos = 0; + this.end = data.length; + this.tmpBuf = new Uint8Array(MAX_ENCODED_NUM_SIZE); + } + + readByte() { + if (this.pos >= this.end) { + return -1; + } + + return this.buffer[this.pos++]; + } + + readNumber() { + let n = 0; + let last; + + do { + const b = this.readByte(); + + if (b < 0) { + throw new _util.FormatError("unexpected EOF in bcmap"); + } + + last = !(b & 0x80); + n = n << 7 | b & 0x7f; + } while (!last); + + return n; + } + + readSigned() { + const n = this.readNumber(); + return n & 1 ? ~(n >>> 1) : n >>> 1; + } + + readHex(num, size) { + num.set(this.buffer.subarray(this.pos, this.pos + size + 1)); + this.pos += size + 1; + } + + readHexNumber(num, size) { + let last; + const stack = this.tmpBuf; + let sp = 0; + + do { + const b = this.readByte(); + + if (b < 0) { + throw new _util.FormatError("unexpected EOF in bcmap"); + } + + last = !(b & 0x80); + stack[sp++] = b & 0x7f; + } while (!last); + + let i = size, + buffer = 0, + bufferSize = 0; + + while (i >= 0) { + while (bufferSize < 8 && stack.length > 0) { + buffer |= stack[--sp] << bufferSize; + bufferSize += 7; + } + + num[i] = buffer & 255; + i--; + buffer >>= 8; + bufferSize -= 8; + } + } + + readHexSigned(num, size) { + this.readHexNumber(num, size); + const sign = num[size] & 1 ? 255 : 0; + let c = 0; + + for (let i = 0; i <= size; i++) { + c = (c & 1) << 8 | num[i]; + num[i] = c >> 1 ^ sign; + } + } + + readString() { + const len = this.readNumber(); + let s = ""; + + for (let i = 0; i < len; i++) { + s += String.fromCharCode(this.readNumber()); + } + + return s; + } + + } + + class BinaryCMapReader { + async process(data, cMap, extend) { + const stream = new BinaryCMapStream(data); + const header = stream.readByte(); + cMap.vertical = !!(header & 1); + let useCMap = null; + const start = new Uint8Array(MAX_NUM_SIZE); + const end = new Uint8Array(MAX_NUM_SIZE); + const char = new Uint8Array(MAX_NUM_SIZE); + const charCode = new Uint8Array(MAX_NUM_SIZE); + const tmp = new Uint8Array(MAX_NUM_SIZE); + let code; + let b; + + while ((b = stream.readByte()) >= 0) { + const type = b >> 5; + + if (type === 7) { + switch (b & 0x1f) { + case 0: + stream.readString(); + break; + + case 1: + useCMap = stream.readString(); + break; + } + + continue; + } + + const sequence = !!(b & 0x10); + const dataSize = b & 15; + + if (dataSize + 1 > MAX_NUM_SIZE) { + throw new Error("BinaryCMapReader.process: Invalid dataSize."); + } + + const ucs2DataSize = 1; + const subitemsCount = stream.readNumber(); + + switch (type) { + case 0: + stream.readHex(start, dataSize); + stream.readHexNumber(end, dataSize); + addHex(end, start, dataSize); + cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize), hexToInt(end, dataSize)); + + for (let i = 1; i < subitemsCount; i++) { + incHex(end, dataSize); + stream.readHexNumber(start, dataSize); + addHex(start, end, dataSize); + stream.readHexNumber(end, dataSize); + addHex(end, start, dataSize); + cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize), hexToInt(end, dataSize)); + } + + break; + + case 1: + stream.readHex(start, dataSize); + stream.readHexNumber(end, dataSize); + addHex(end, start, dataSize); + stream.readNumber(); + + for (let i = 1; i < subitemsCount; i++) { + incHex(end, dataSize); + stream.readHexNumber(start, dataSize); + addHex(start, end, dataSize); + stream.readHexNumber(end, dataSize); + addHex(end, start, dataSize); + stream.readNumber(); + } + + break; + + case 2: + stream.readHex(char, dataSize); + code = stream.readNumber(); + cMap.mapOne(hexToInt(char, dataSize), code); + + for (let i = 1; i < subitemsCount; i++) { + incHex(char, dataSize); + + if (!sequence) { + stream.readHexNumber(tmp, dataSize); + addHex(char, tmp, dataSize); + } + + code = stream.readSigned() + (code + 1); + cMap.mapOne(hexToInt(char, dataSize), code); + } + + break; + + case 3: + stream.readHex(start, dataSize); + stream.readHexNumber(end, dataSize); + addHex(end, start, dataSize); + code = stream.readNumber(); + cMap.mapCidRange(hexToInt(start, dataSize), hexToInt(end, dataSize), code); + + for (let i = 1; i < subitemsCount; i++) { + incHex(end, dataSize); + + if (!sequence) { + stream.readHexNumber(start, dataSize); + addHex(start, end, dataSize); + } else { + start.set(end); + } + + stream.readHexNumber(end, dataSize); + addHex(end, start, dataSize); + code = stream.readNumber(); + cMap.mapCidRange(hexToInt(start, dataSize), hexToInt(end, dataSize), code); + } + + break; + + case 4: + stream.readHex(char, ucs2DataSize); + stream.readHex(charCode, dataSize); + cMap.mapOne(hexToInt(char, ucs2DataSize), hexToStr(charCode, dataSize)); + + for (let i = 1; i < subitemsCount; i++) { + incHex(char, ucs2DataSize); + + if (!sequence) { + stream.readHexNumber(tmp, ucs2DataSize); + addHex(char, tmp, ucs2DataSize); + } + + incHex(charCode, dataSize); + stream.readHexSigned(tmp, dataSize); + addHex(charCode, tmp, dataSize); + cMap.mapOne(hexToInt(char, ucs2DataSize), hexToStr(charCode, dataSize)); + } + + break; + + case 5: + stream.readHex(start, ucs2DataSize); + stream.readHexNumber(end, ucs2DataSize); + addHex(end, start, ucs2DataSize); + stream.readHex(charCode, dataSize); + cMap.mapBfRange(hexToInt(start, ucs2DataSize), hexToInt(end, ucs2DataSize), hexToStr(charCode, dataSize)); + + for (let i = 1; i < subitemsCount; i++) { + incHex(end, ucs2DataSize); + + if (!sequence) { + stream.readHexNumber(start, ucs2DataSize); + addHex(start, end, ucs2DataSize); + } else { + start.set(end); + } + + stream.readHexNumber(end, ucs2DataSize); + addHex(end, start, ucs2DataSize); + stream.readHex(charCode, dataSize); + cMap.mapBfRange(hexToInt(start, ucs2DataSize), hexToInt(end, ucs2DataSize), hexToStr(charCode, dataSize)); + } + + break; + + default: + throw new Error(`BinaryCMapReader.process - unknown type: ${type}`); + } + } + + if (useCMap) { + return extend(useCMap); + } + + return cMap; + } + + } + + return BinaryCMapReader; +}(); + +const CMapFactory = function CMapFactoryClosure() { + function strToInt(str) { + let a = 0; + + for (let i = 0; i < str.length; i++) { + a = a << 8 | str.charCodeAt(i); + } + + return a >>> 0; + } + + function expectString(obj) { + if (typeof obj !== "string") { + throw new _util.FormatError("Malformed CMap: expected string."); + } + } + + function expectInt(obj) { + if (!Number.isInteger(obj)) { + throw new _util.FormatError("Malformed CMap: expected int."); + } + } + + function parseBfChar(cMap, lexer) { + while (true) { + let obj = lexer.getObj(); + + if (obj === _primitives.EOF) { + break; + } + + if ((0, _primitives.isCmd)(obj, "endbfchar")) { + return; + } + + expectString(obj); + const src = strToInt(obj); + obj = lexer.getObj(); + expectString(obj); + const dst = obj; + cMap.mapOne(src, dst); + } + } + + function parseBfRange(cMap, lexer) { + while (true) { + let obj = lexer.getObj(); + + if (obj === _primitives.EOF) { + break; + } + + if ((0, _primitives.isCmd)(obj, "endbfrange")) { + return; + } + + expectString(obj); + const low = strToInt(obj); + obj = lexer.getObj(); + expectString(obj); + const high = strToInt(obj); + obj = lexer.getObj(); + + if (Number.isInteger(obj) || typeof obj === "string") { + const dstLow = Number.isInteger(obj) ? String.fromCharCode(obj) : obj; + cMap.mapBfRange(low, high, dstLow); + } else if ((0, _primitives.isCmd)(obj, "[")) { + obj = lexer.getObj(); + const array = []; + + while (!(0, _primitives.isCmd)(obj, "]") && obj !== _primitives.EOF) { + array.push(obj); + obj = lexer.getObj(); + } + + cMap.mapBfRangeToArray(low, high, array); + } else { + break; + } + } + + throw new _util.FormatError("Invalid bf range."); + } + + function parseCidChar(cMap, lexer) { + while (true) { + let obj = lexer.getObj(); + + if (obj === _primitives.EOF) { + break; + } + + if ((0, _primitives.isCmd)(obj, "endcidchar")) { + return; + } + + expectString(obj); + const src = strToInt(obj); + obj = lexer.getObj(); + expectInt(obj); + const dst = obj; + cMap.mapOne(src, dst); + } + } + + function parseCidRange(cMap, lexer) { + while (true) { + let obj = lexer.getObj(); + + if (obj === _primitives.EOF) { + break; + } + + if ((0, _primitives.isCmd)(obj, "endcidrange")) { + return; + } + + expectString(obj); + const low = strToInt(obj); + obj = lexer.getObj(); + expectString(obj); + const high = strToInt(obj); + obj = lexer.getObj(); + expectInt(obj); + const dstLow = obj; + cMap.mapCidRange(low, high, dstLow); + } + } + + function parseCodespaceRange(cMap, lexer) { + while (true) { + let obj = lexer.getObj(); + + if (obj === _primitives.EOF) { + break; + } + + if ((0, _primitives.isCmd)(obj, "endcodespacerange")) { + return; + } + + if (typeof obj !== "string") { + break; + } + + const low = strToInt(obj); + obj = lexer.getObj(); + + if (typeof obj !== "string") { + break; + } + + const high = strToInt(obj); + cMap.addCodespaceRange(obj.length, low, high); + } + + throw new _util.FormatError("Invalid codespace range."); + } + + function parseWMode(cMap, lexer) { + const obj = lexer.getObj(); + + if (Number.isInteger(obj)) { + cMap.vertical = !!obj; + } + } + + function parseCMapName(cMap, lexer) { + const obj = lexer.getObj(); + + if (obj instanceof _primitives.Name) { + cMap.name = obj.name; + } + } + + async function parseCMap(cMap, lexer, fetchBuiltInCMap, useCMap) { + let previous, embeddedUseCMap; + + objLoop: while (true) { + try { + const obj = lexer.getObj(); + + if (obj === _primitives.EOF) { + break; + } else if (obj instanceof _primitives.Name) { + if (obj.name === "WMode") { + parseWMode(cMap, lexer); + } else if (obj.name === "CMapName") { + parseCMapName(cMap, lexer); + } + + previous = obj; + } else if (obj instanceof _primitives.Cmd) { + switch (obj.cmd) { + case "endcmap": + break objLoop; + + case "usecmap": + if (previous instanceof _primitives.Name) { + embeddedUseCMap = previous.name; + } + + break; + + case "begincodespacerange": + parseCodespaceRange(cMap, lexer); + break; + + case "beginbfchar": + parseBfChar(cMap, lexer); + break; + + case "begincidchar": + parseCidChar(cMap, lexer); + break; + + case "beginbfrange": + parseBfRange(cMap, lexer); + break; + + case "begincidrange": + parseCidRange(cMap, lexer); + break; + } + } + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.warn)("Invalid cMap data: " + ex); + continue; + } + } + + if (!useCMap && embeddedUseCMap) { + useCMap = embeddedUseCMap; + } + + if (useCMap) { + return extendCMap(cMap, fetchBuiltInCMap, useCMap); + } + + return cMap; + } + + async function extendCMap(cMap, fetchBuiltInCMap, useCMap) { + cMap.useCMap = await createBuiltInCMap(useCMap, fetchBuiltInCMap); + + if (cMap.numCodespaceRanges === 0) { + const useCodespaceRanges = cMap.useCMap.codespaceRanges; + + for (let i = 0; i < useCodespaceRanges.length; i++) { + cMap.codespaceRanges[i] = useCodespaceRanges[i].slice(); + } + + cMap.numCodespaceRanges = cMap.useCMap.numCodespaceRanges; + } + + cMap.useCMap.forEach(function (key, value) { + if (!cMap.contains(key)) { + cMap.mapOne(key, cMap.useCMap.lookup(key)); + } + }); + return cMap; + } + + async function createBuiltInCMap(name, fetchBuiltInCMap) { + if (name === "Identity-H") { + return new IdentityCMap(false, 2); + } else if (name === "Identity-V") { + return new IdentityCMap(true, 2); + } + + if (!BUILT_IN_CMAPS.includes(name)) { + throw new Error("Unknown CMap name: " + name); + } + + if (!fetchBuiltInCMap) { + throw new Error("Built-in CMap parameters are not provided."); + } + + const { + cMapData, + compressionType + } = await fetchBuiltInCMap(name); + const cMap = new CMap(true); + + if (compressionType === _util.CMapCompressionType.BINARY) { + return new BinaryCMapReader().process(cMapData, cMap, useCMap => { + return extendCMap(cMap, fetchBuiltInCMap, useCMap); + }); + } + + if (compressionType === _util.CMapCompressionType.NONE) { + const lexer = new _parser.Lexer(new _stream.Stream(cMapData)); + return parseCMap(cMap, lexer, fetchBuiltInCMap, null); + } + + throw new Error("TODO: Only BINARY/NONE CMap compression is currently supported."); + } + + return { + async create(params) { + const encoding = params.encoding; + const fetchBuiltInCMap = params.fetchBuiltInCMap; + const useCMap = params.useCMap; + + if (encoding instanceof _primitives.Name) { + return createBuiltInCMap(encoding.name, fetchBuiltInCMap); + } else if (encoding instanceof _base_stream.BaseStream) { + const parsedCMap = await parseCMap(new CMap(), new _parser.Lexer(encoding), fetchBuiltInCMap, useCMap); + + if (parsedCMap.isIdentityCMap) { + return createBuiltInCMap(parsedCMap.name, fetchBuiltInCMap); + } + + return parsedCMap; + } + + throw new Error("Encoding required."); + } + + }; +}(); + +exports.CMapFactory = CMapFactory; + +/***/ }), +/* 17 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Parser = exports.Linearization = exports.Lexer = void 0; + +var _util = __w_pdfjs_require__(2); + +var _primitives = __w_pdfjs_require__(5); + +var _core_utils = __w_pdfjs_require__(6); + +var _ascii_85_stream = __w_pdfjs_require__(18); + +var _ascii_hex_stream = __w_pdfjs_require__(20); + +var _ccitt_stream = __w_pdfjs_require__(21); + +var _flate_stream = __w_pdfjs_require__(23); + +var _jbig2_stream = __w_pdfjs_require__(24); + +var _jpeg_stream = __w_pdfjs_require__(27); + +var _jpx_stream = __w_pdfjs_require__(29); + +var _lzw_stream = __w_pdfjs_require__(31); + +var _stream = __w_pdfjs_require__(10); + +var _predictor_stream = __w_pdfjs_require__(32); + +var _run_length_stream = __w_pdfjs_require__(33); + +const MAX_LENGTH_TO_CACHE = 1000; +const MAX_ADLER32_LENGTH = 5552; + +function computeAdler32(bytes) { + const bytesLength = bytes.length; + let a = 1, + b = 0; + + for (let i = 0; i < bytesLength; ++i) { + a += bytes[i] & 0xff; + b += a; + } + + return b % 65521 << 16 | a % 65521; +} + +class Parser { + constructor({ + lexer, + xref, + allowStreams = false, + recoveryMode = false + }) { + this.lexer = lexer; + this.xref = xref; + this.allowStreams = allowStreams; + this.recoveryMode = recoveryMode; + this.imageCache = Object.create(null); + this.refill(); + } + + refill() { + this.buf1 = this.lexer.getObj(); + this.buf2 = this.lexer.getObj(); + } + + shift() { + if (this.buf2 instanceof _primitives.Cmd && this.buf2.cmd === "ID") { + this.buf1 = this.buf2; + this.buf2 = null; + } else { + this.buf1 = this.buf2; + this.buf2 = this.lexer.getObj(); + } + } + + tryShift() { + try { + this.shift(); + return true; + } catch (e) { + if (e instanceof _core_utils.MissingDataException) { + throw e; + } + + return false; + } + } + + getObj(cipherTransform = null) { + const buf1 = this.buf1; + this.shift(); + + if (buf1 instanceof _primitives.Cmd) { + switch (buf1.cmd) { + case "BI": + return this.makeInlineImage(cipherTransform); + + case "[": + const array = []; + + while (!(0, _primitives.isCmd)(this.buf1, "]") && this.buf1 !== _primitives.EOF) { + array.push(this.getObj(cipherTransform)); + } + + if (this.buf1 === _primitives.EOF) { + if (this.recoveryMode) { + return array; + } + + throw new _core_utils.ParserEOFException("End of file inside array."); + } + + this.shift(); + return array; + + case "<<": + const dict = new _primitives.Dict(this.xref); + + while (!(0, _primitives.isCmd)(this.buf1, ">>") && this.buf1 !== _primitives.EOF) { + if (!(this.buf1 instanceof _primitives.Name)) { + (0, _util.info)("Malformed dictionary: key must be a name object"); + this.shift(); + continue; + } + + const key = this.buf1.name; + this.shift(); + + if (this.buf1 === _primitives.EOF) { + break; + } + + dict.set(key, this.getObj(cipherTransform)); + } + + if (this.buf1 === _primitives.EOF) { + if (this.recoveryMode) { + return dict; + } + + throw new _core_utils.ParserEOFException("End of file inside dictionary."); + } + + if ((0, _primitives.isCmd)(this.buf2, "stream")) { + return this.allowStreams ? this.makeStream(dict, cipherTransform) : dict; + } + + this.shift(); + return dict; + + default: + return buf1; + } + } + + if (Number.isInteger(buf1)) { + if (Number.isInteger(this.buf1) && (0, _primitives.isCmd)(this.buf2, "R")) { + const ref = _primitives.Ref.get(buf1, this.buf1); + + this.shift(); + this.shift(); + return ref; + } + + return buf1; + } + + if (typeof buf1 === "string") { + if (cipherTransform) { + return cipherTransform.decryptString(buf1); + } + + return buf1; + } + + return buf1; + } + + findDefaultInlineStreamEnd(stream) { + const E = 0x45, + I = 0x49, + SPACE = 0x20, + LF = 0xa, + CR = 0xd, + NUL = 0x0; + const lexer = this.lexer, + startPos = stream.pos, + n = 10; + let state = 0, + ch, + maybeEIPos; + + while ((ch = stream.getByte()) !== -1) { + if (state === 0) { + state = ch === E ? 1 : 0; + } else if (state === 1) { + state = ch === I ? 2 : 0; + } else { + (0, _util.assert)(state === 2, "findDefaultInlineStreamEnd - invalid state."); + + if (ch === SPACE || ch === LF || ch === CR) { + maybeEIPos = stream.pos; + const followingBytes = stream.peekBytes(n); + + for (let i = 0, ii = followingBytes.length; i < ii; i++) { + ch = followingBytes[i]; + + if (ch === NUL && followingBytes[i + 1] !== NUL) { + continue; + } + + if (ch !== LF && ch !== CR && (ch < SPACE || ch > 0x7f)) { + state = 0; + break; + } + } + + if (state !== 2) { + continue; + } + + if (lexer.knownCommands) { + const nextObj = lexer.peekObj(); + + if (nextObj instanceof _primitives.Cmd && !lexer.knownCommands[nextObj.cmd]) { + state = 0; + } + } else { + (0, _util.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined."); + } + + if (state === 2) { + break; + } + } else { + state = 0; + } + } + } + + if (ch === -1) { + (0, _util.warn)("findDefaultInlineStreamEnd: " + "Reached the end of the stream without finding a valid EI marker"); + + if (maybeEIPos) { + (0, _util.warn)('... trying to recover by using the last "EI" occurrence.'); + stream.skip(-(stream.pos - maybeEIPos)); + } + } + + let endOffset = 4; + stream.skip(-endOffset); + ch = stream.peekByte(); + stream.skip(endOffset); + + if (!(0, _core_utils.isWhiteSpace)(ch)) { + endOffset--; + } + + return stream.pos - endOffset - startPos; + } + + findDCTDecodeInlineStreamEnd(stream) { + const startPos = stream.pos; + let foundEOI = false, + b, + markerLength; + + while ((b = stream.getByte()) !== -1) { + if (b !== 0xff) { + continue; + } + + switch (stream.getByte()) { + case 0x00: + break; + + case 0xff: + stream.skip(-1); + break; + + case 0xd9: + foundEOI = true; + break; + + case 0xc0: + case 0xc1: + case 0xc2: + case 0xc3: + case 0xc5: + case 0xc6: + case 0xc7: + case 0xc9: + case 0xca: + case 0xcb: + case 0xcd: + case 0xce: + case 0xcf: + case 0xc4: + case 0xcc: + case 0xda: + case 0xdb: + case 0xdc: + case 0xdd: + case 0xde: + case 0xdf: + case 0xe0: + case 0xe1: + case 0xe2: + case 0xe3: + case 0xe4: + case 0xe5: + case 0xe6: + case 0xe7: + case 0xe8: + case 0xe9: + case 0xea: + case 0xeb: + case 0xec: + case 0xed: + case 0xee: + case 0xef: + case 0xfe: + markerLength = stream.getUint16(); + + if (markerLength > 2) { + stream.skip(markerLength - 2); + } else { + stream.skip(-2); + } + + break; + } + + if (foundEOI) { + break; + } + } + + const length = stream.pos - startPos; + + if (b === -1) { + (0, _util.warn)("Inline DCTDecode image stream: " + "EOI marker not found, searching for /EI/ instead."); + stream.skip(-length); + return this.findDefaultInlineStreamEnd(stream); + } + + this.inlineStreamSkipEI(stream); + return length; + } + + findASCII85DecodeInlineStreamEnd(stream) { + const TILDE = 0x7e, + GT = 0x3e; + const startPos = stream.pos; + let ch; + + while ((ch = stream.getByte()) !== -1) { + if (ch === TILDE) { + const tildePos = stream.pos; + ch = stream.peekByte(); + + while ((0, _core_utils.isWhiteSpace)(ch)) { + stream.skip(); + ch = stream.peekByte(); + } + + if (ch === GT) { + stream.skip(); + break; + } + + if (stream.pos > tildePos) { + const maybeEI = stream.peekBytes(2); + + if (maybeEI[0] === 0x45 && maybeEI[1] === 0x49) { + break; + } + } + } + } + + const length = stream.pos - startPos; + + if (ch === -1) { + (0, _util.warn)("Inline ASCII85Decode image stream: " + "EOD marker not found, searching for /EI/ instead."); + stream.skip(-length); + return this.findDefaultInlineStreamEnd(stream); + } + + this.inlineStreamSkipEI(stream); + return length; + } + + findASCIIHexDecodeInlineStreamEnd(stream) { + const GT = 0x3e; + const startPos = stream.pos; + let ch; + + while ((ch = stream.getByte()) !== -1) { + if (ch === GT) { + break; + } + } + + const length = stream.pos - startPos; + + if (ch === -1) { + (0, _util.warn)("Inline ASCIIHexDecode image stream: " + "EOD marker not found, searching for /EI/ instead."); + stream.skip(-length); + return this.findDefaultInlineStreamEnd(stream); + } + + this.inlineStreamSkipEI(stream); + return length; + } + + inlineStreamSkipEI(stream) { + const E = 0x45, + I = 0x49; + let state = 0, + ch; + + while ((ch = stream.getByte()) !== -1) { + if (state === 0) { + state = ch === E ? 1 : 0; + } else if (state === 1) { + state = ch === I ? 2 : 0; + } else if (state === 2) { + break; + } + } + } + + makeInlineImage(cipherTransform) { + const lexer = this.lexer; + const stream = lexer.stream; + const dict = new _primitives.Dict(this.xref); + let dictLength; + + while (!(0, _primitives.isCmd)(this.buf1, "ID") && this.buf1 !== _primitives.EOF) { + if (!(this.buf1 instanceof _primitives.Name)) { + throw new _util.FormatError("Dictionary key must be a name object"); + } + + const key = this.buf1.name; + this.shift(); + + if (this.buf1 === _primitives.EOF) { + break; + } + + dict.set(key, this.getObj(cipherTransform)); + } + + if (lexer.beginInlineImagePos !== -1) { + dictLength = stream.pos - lexer.beginInlineImagePos; + } + + const filter = dict.get("F", "Filter"); + let filterName; + + if (filter instanceof _primitives.Name) { + filterName = filter.name; + } else if (Array.isArray(filter)) { + const filterZero = this.xref.fetchIfRef(filter[0]); + + if (filterZero instanceof _primitives.Name) { + filterName = filterZero.name; + } + } + + const startPos = stream.pos; + let length; + + switch (filterName) { + case "DCT": + case "DCTDecode": + length = this.findDCTDecodeInlineStreamEnd(stream); + break; + + case "A85": + case "ASCII85Decode": + length = this.findASCII85DecodeInlineStreamEnd(stream); + break; + + case "AHx": + case "ASCIIHexDecode": + length = this.findASCIIHexDecodeInlineStreamEnd(stream); + break; + + default: + length = this.findDefaultInlineStreamEnd(stream); + } + + let imageStream = stream.makeSubStream(startPos, length, dict); + let cacheKey; + + if (length < MAX_LENGTH_TO_CACHE && dictLength < MAX_ADLER32_LENGTH) { + const imageBytes = imageStream.getBytes(); + imageStream.reset(); + const initialStreamPos = stream.pos; + stream.pos = lexer.beginInlineImagePos; + const dictBytes = stream.getBytes(dictLength); + stream.pos = initialStreamPos; + cacheKey = computeAdler32(imageBytes) + "_" + computeAdler32(dictBytes); + const cacheEntry = this.imageCache[cacheKey]; + + if (cacheEntry !== undefined) { + this.buf2 = _primitives.Cmd.get("EI"); + this.shift(); + cacheEntry.reset(); + return cacheEntry; + } + } + + if (cipherTransform) { + imageStream = cipherTransform.createStream(imageStream, length); + } + + imageStream = this.filter(imageStream, dict, length); + imageStream.dict = dict; + + if (cacheKey !== undefined) { + imageStream.cacheKey = `inline_${length}_${cacheKey}`; + this.imageCache[cacheKey] = imageStream; + } + + this.buf2 = _primitives.Cmd.get("EI"); + this.shift(); + return imageStream; + } + + _findStreamLength(startPos, signature) { + const { + stream + } = this.lexer; + stream.pos = startPos; + const SCAN_BLOCK_LENGTH = 2048; + const signatureLength = signature.length; + + while (stream.pos < stream.end) { + const scanBytes = stream.peekBytes(SCAN_BLOCK_LENGTH); + const scanLength = scanBytes.length - signatureLength; + + if (scanLength <= 0) { + break; + } + + let pos = 0; + + while (pos < scanLength) { + let j = 0; + + while (j < signatureLength && scanBytes[pos + j] === signature[j]) { + j++; + } + + if (j >= signatureLength) { + stream.pos += pos; + return stream.pos - startPos; + } + + pos++; + } + + stream.pos += scanLength; + } + + return -1; + } + + makeStream(dict, cipherTransform) { + const lexer = this.lexer; + let stream = lexer.stream; + lexer.skipToNextLine(); + const startPos = stream.pos - 1; + let length = dict.get("Length"); + + if (!Number.isInteger(length)) { + (0, _util.info)(`Bad length "${length && length.toString()}" in stream.`); + length = 0; + } + + stream.pos = startPos + length; + lexer.nextChar(); + + if (this.tryShift() && (0, _primitives.isCmd)(this.buf2, "endstream")) { + this.shift(); + } else { + const ENDSTREAM_SIGNATURE = new Uint8Array([0x65, 0x6e, 0x64, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d]); + + let actualLength = this._findStreamLength(startPos, ENDSTREAM_SIGNATURE); + + if (actualLength < 0) { + const MAX_TRUNCATION = 1; + + for (let i = 1; i <= MAX_TRUNCATION; i++) { + const end = ENDSTREAM_SIGNATURE.length - i; + const TRUNCATED_SIGNATURE = ENDSTREAM_SIGNATURE.slice(0, end); + + const maybeLength = this._findStreamLength(startPos, TRUNCATED_SIGNATURE); + + if (maybeLength >= 0) { + const lastByte = stream.peekBytes(end + 1)[end]; + + if (!(0, _core_utils.isWhiteSpace)(lastByte)) { + break; + } + + (0, _util.info)(`Found "${(0, _util.bytesToString)(TRUNCATED_SIGNATURE)}" when ` + "searching for endstream command."); + actualLength = maybeLength; + break; + } + } + + if (actualLength < 0) { + throw new _util.FormatError("Missing endstream command."); + } + } + + length = actualLength; + lexer.nextChar(); + this.shift(); + this.shift(); + } + + this.shift(); + stream = stream.makeSubStream(startPos, length, dict); + + if (cipherTransform) { + stream = cipherTransform.createStream(stream, length); + } + + stream = this.filter(stream, dict, length); + stream.dict = dict; + return stream; + } + + filter(stream, dict, length) { + let filter = dict.get("F", "Filter"); + let params = dict.get("DP", "DecodeParms"); + + if (filter instanceof _primitives.Name) { + if (Array.isArray(params)) { + (0, _util.warn)("/DecodeParms should not be an Array, when /Filter is a Name."); + } + + return this.makeFilter(stream, filter.name, length, params); + } + + let maybeLength = length; + + if (Array.isArray(filter)) { + const filterArray = filter; + const paramsArray = params; + + for (let i = 0, ii = filterArray.length; i < ii; ++i) { + filter = this.xref.fetchIfRef(filterArray[i]); + + if (!(filter instanceof _primitives.Name)) { + throw new _util.FormatError(`Bad filter name "${filter}"`); + } + + params = null; + + if (Array.isArray(paramsArray) && i in paramsArray) { + params = this.xref.fetchIfRef(paramsArray[i]); + } + + stream = this.makeFilter(stream, filter.name, maybeLength, params); + maybeLength = null; + } + } + + return stream; + } + + makeFilter(stream, name, maybeLength, params) { + if (maybeLength === 0) { + (0, _util.warn)(`Empty "${name}" stream.`); + return new _stream.NullStream(); + } + + const xrefStats = this.xref.stats; + + try { + switch (name) { + case "Fl": + case "FlateDecode": + xrefStats.addStreamType(_util.StreamType.FLATE); + + if (params) { + return new _predictor_stream.PredictorStream(new _flate_stream.FlateStream(stream, maybeLength), maybeLength, params); + } + + return new _flate_stream.FlateStream(stream, maybeLength); + + case "LZW": + case "LZWDecode": + xrefStats.addStreamType(_util.StreamType.LZW); + let earlyChange = 1; + + if (params) { + if (params.has("EarlyChange")) { + earlyChange = params.get("EarlyChange"); + } + + return new _predictor_stream.PredictorStream(new _lzw_stream.LZWStream(stream, maybeLength, earlyChange), maybeLength, params); + } + + return new _lzw_stream.LZWStream(stream, maybeLength, earlyChange); + + case "DCT": + case "DCTDecode": + xrefStats.addStreamType(_util.StreamType.DCT); + return new _jpeg_stream.JpegStream(stream, maybeLength, params); + + case "JPX": + case "JPXDecode": + xrefStats.addStreamType(_util.StreamType.JPX); + return new _jpx_stream.JpxStream(stream, maybeLength, params); + + case "A85": + case "ASCII85Decode": + xrefStats.addStreamType(_util.StreamType.A85); + return new _ascii_85_stream.Ascii85Stream(stream, maybeLength); + + case "AHx": + case "ASCIIHexDecode": + xrefStats.addStreamType(_util.StreamType.AHX); + return new _ascii_hex_stream.AsciiHexStream(stream, maybeLength); + + case "CCF": + case "CCITTFaxDecode": + xrefStats.addStreamType(_util.StreamType.CCF); + return new _ccitt_stream.CCITTFaxStream(stream, maybeLength, params); + + case "RL": + case "RunLengthDecode": + xrefStats.addStreamType(_util.StreamType.RLX); + return new _run_length_stream.RunLengthStream(stream, maybeLength); + + case "JBIG2Decode": + xrefStats.addStreamType(_util.StreamType.JBIG); + return new _jbig2_stream.Jbig2Stream(stream, maybeLength, params); + } + + (0, _util.warn)(`Filter "${name}" is not supported.`); + return stream; + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.warn)(`Invalid stream: "${ex}"`); + return new _stream.NullStream(); + } + } + +} + +exports.Parser = Parser; +const specialChars = [1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; + +function toHexDigit(ch) { + if (ch >= 0x30 && ch <= 0x39) { + return ch & 0x0f; + } + + if (ch >= 0x41 && ch <= 0x46 || ch >= 0x61 && ch <= 0x66) { + return (ch & 0x0f) + 9; + } + + return -1; +} + +class Lexer { + constructor(stream, knownCommands = null) { + this.stream = stream; + this.nextChar(); + this.strBuf = []; + this.knownCommands = knownCommands; + this._hexStringNumWarn = 0; + this.beginInlineImagePos = -1; + } + + nextChar() { + return this.currentChar = this.stream.getByte(); + } + + peekChar() { + return this.stream.peekByte(); + } + + getNumber() { + let ch = this.currentChar; + let eNotation = false; + let divideBy = 0; + let sign = 0; + + if (ch === 0x2d) { + sign = -1; + ch = this.nextChar(); + + if (ch === 0x2d) { + ch = this.nextChar(); + } + } else if (ch === 0x2b) { + sign = 1; + ch = this.nextChar(); + } + + if (ch === 0x0a || ch === 0x0d) { + do { + ch = this.nextChar(); + } while (ch === 0x0a || ch === 0x0d); + } + + if (ch === 0x2e) { + divideBy = 10; + ch = this.nextChar(); + } + + if (ch < 0x30 || ch > 0x39) { + if ((0, _core_utils.isWhiteSpace)(ch) || ch === -1) { + if (divideBy === 10 && sign === 0) { + (0, _util.warn)("Lexer.getNumber - treating a single decimal point as zero."); + return 0; + } + + if (divideBy === 0 && sign === -1) { + (0, _util.warn)("Lexer.getNumber - treating a single minus sign as zero."); + return 0; + } + } + + throw new _util.FormatError(`Invalid number: ${String.fromCharCode(ch)} (charCode ${ch})`); + } + + sign = sign || 1; + let baseValue = ch - 0x30; + let powerValue = 0; + let powerValueSign = 1; + + while ((ch = this.nextChar()) >= 0) { + if (ch >= 0x30 && ch <= 0x39) { + const currentDigit = ch - 0x30; + + if (eNotation) { + powerValue = powerValue * 10 + currentDigit; + } else { + if (divideBy !== 0) { + divideBy *= 10; + } + + baseValue = baseValue * 10 + currentDigit; + } + } else if (ch === 0x2e) { + if (divideBy === 0) { + divideBy = 1; + } else { + break; + } + } else if (ch === 0x2d) { + (0, _util.warn)("Badly formatted number: minus sign in the middle"); + } else if (ch === 0x45 || ch === 0x65) { + ch = this.peekChar(); + + if (ch === 0x2b || ch === 0x2d) { + powerValueSign = ch === 0x2d ? -1 : 1; + this.nextChar(); + } else if (ch < 0x30 || ch > 0x39) { + break; + } + + eNotation = true; + } else { + break; + } + } + + if (divideBy !== 0) { + baseValue /= divideBy; + } + + if (eNotation) { + baseValue *= 10 ** (powerValueSign * powerValue); + } + + return sign * baseValue; + } + + getString() { + let numParen = 1; + let done = false; + const strBuf = this.strBuf; + strBuf.length = 0; + let ch = this.nextChar(); + + while (true) { + let charBuffered = false; + + switch (ch | 0) { + case -1: + (0, _util.warn)("Unterminated string"); + done = true; + break; + + case 0x28: + ++numParen; + strBuf.push("("); + break; + + case 0x29: + if (--numParen === 0) { + this.nextChar(); + done = true; + } else { + strBuf.push(")"); + } + + break; + + case 0x5c: + ch = this.nextChar(); + + switch (ch) { + case -1: + (0, _util.warn)("Unterminated string"); + done = true; + break; + + case 0x6e: + strBuf.push("\n"); + break; + + case 0x72: + strBuf.push("\r"); + break; + + case 0x74: + strBuf.push("\t"); + break; + + case 0x62: + strBuf.push("\b"); + break; + + case 0x66: + strBuf.push("\f"); + break; + + case 0x5c: + case 0x28: + case 0x29: + strBuf.push(String.fromCharCode(ch)); + break; + + case 0x30: + case 0x31: + case 0x32: + case 0x33: + case 0x34: + case 0x35: + case 0x36: + case 0x37: + let x = ch & 0x0f; + ch = this.nextChar(); + charBuffered = true; + + if (ch >= 0x30 && ch <= 0x37) { + x = (x << 3) + (ch & 0x0f); + ch = this.nextChar(); + + if (ch >= 0x30 && ch <= 0x37) { + charBuffered = false; + x = (x << 3) + (ch & 0x0f); + } + } + + strBuf.push(String.fromCharCode(x)); + break; + + case 0x0d: + if (this.peekChar() === 0x0a) { + this.nextChar(); + } + + break; + + case 0x0a: + break; + + default: + strBuf.push(String.fromCharCode(ch)); + break; + } + + break; + + default: + strBuf.push(String.fromCharCode(ch)); + break; + } + + if (done) { + break; + } + + if (!charBuffered) { + ch = this.nextChar(); + } + } + + return strBuf.join(""); + } + + getName() { + let ch, previousCh; + const strBuf = this.strBuf; + strBuf.length = 0; + + while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) { + if (ch === 0x23) { + ch = this.nextChar(); + + if (specialChars[ch]) { + (0, _util.warn)("Lexer_getName: " + "NUMBER SIGN (#) should be followed by a hexadecimal number."); + strBuf.push("#"); + break; + } + + const x = toHexDigit(ch); + + if (x !== -1) { + previousCh = ch; + ch = this.nextChar(); + const x2 = toHexDigit(ch); + + if (x2 === -1) { + (0, _util.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(ch)}) ` + "in hexadecimal number."); + strBuf.push("#", String.fromCharCode(previousCh)); + + if (specialChars[ch]) { + break; + } + + strBuf.push(String.fromCharCode(ch)); + continue; + } + + strBuf.push(String.fromCharCode(x << 4 | x2)); + } else { + strBuf.push("#", String.fromCharCode(ch)); + } + } else { + strBuf.push(String.fromCharCode(ch)); + } + } + + if (strBuf.length > 127) { + (0, _util.warn)(`Name token is longer than allowed by the spec: ${strBuf.length}`); + } + + return _primitives.Name.get(strBuf.join("")); + } + + _hexStringWarn(ch) { + const MAX_HEX_STRING_NUM_WARN = 5; + + if (this._hexStringNumWarn++ === MAX_HEX_STRING_NUM_WARN) { + (0, _util.warn)("getHexString - ignoring additional invalid characters."); + return; + } + + if (this._hexStringNumWarn > MAX_HEX_STRING_NUM_WARN) { + return; + } + + (0, _util.warn)(`getHexString - ignoring invalid character: ${ch}`); + } + + getHexString() { + const strBuf = this.strBuf; + strBuf.length = 0; + let ch = this.currentChar; + let isFirstHex = true; + let firstDigit, secondDigit; + this._hexStringNumWarn = 0; + + while (true) { + if (ch < 0) { + (0, _util.warn)("Unterminated hex string"); + break; + } else if (ch === 0x3e) { + this.nextChar(); + break; + } else if (specialChars[ch] === 1) { + ch = this.nextChar(); + continue; + } else { + if (isFirstHex) { + firstDigit = toHexDigit(ch); + + if (firstDigit === -1) { + this._hexStringWarn(ch); + + ch = this.nextChar(); + continue; + } + } else { + secondDigit = toHexDigit(ch); + + if (secondDigit === -1) { + this._hexStringWarn(ch); + + ch = this.nextChar(); + continue; + } + + strBuf.push(String.fromCharCode(firstDigit << 4 | secondDigit)); + } + + isFirstHex = !isFirstHex; + ch = this.nextChar(); + } + } + + return strBuf.join(""); + } + + getObj() { + let comment = false; + let ch = this.currentChar; + + while (true) { + if (ch < 0) { + return _primitives.EOF; + } + + if (comment) { + if (ch === 0x0a || ch === 0x0d) { + comment = false; + } + } else if (ch === 0x25) { + comment = true; + } else if (specialChars[ch] !== 1) { + break; + } + + ch = this.nextChar(); + } + + switch (ch | 0) { + case 0x30: + case 0x31: + case 0x32: + case 0x33: + case 0x34: + case 0x35: + case 0x36: + case 0x37: + case 0x38: + case 0x39: + case 0x2b: + case 0x2d: + case 0x2e: + return this.getNumber(); + + case 0x28: + return this.getString(); + + case 0x2f: + return this.getName(); + + case 0x5b: + this.nextChar(); + return _primitives.Cmd.get("["); + + case 0x5d: + this.nextChar(); + return _primitives.Cmd.get("]"); + + case 0x3c: + ch = this.nextChar(); + + if (ch === 0x3c) { + this.nextChar(); + return _primitives.Cmd.get("<<"); + } + + return this.getHexString(); + + case 0x3e: + ch = this.nextChar(); + + if (ch === 0x3e) { + this.nextChar(); + return _primitives.Cmd.get(">>"); + } + + return _primitives.Cmd.get(">"); + + case 0x7b: + this.nextChar(); + return _primitives.Cmd.get("{"); + + case 0x7d: + this.nextChar(); + return _primitives.Cmd.get("}"); + + case 0x29: + this.nextChar(); + throw new _util.FormatError(`Illegal character: ${ch}`); + } + + let str = String.fromCharCode(ch); + + if (ch < 0x20 || ch > 0x7f) { + const nextCh = this.peekChar(); + + if (nextCh >= 0x20 && nextCh <= 0x7f) { + this.nextChar(); + return _primitives.Cmd.get(str); + } + } + + const knownCommands = this.knownCommands; + let knownCommandFound = knownCommands && knownCommands[str] !== undefined; + + while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) { + const possibleCommand = str + String.fromCharCode(ch); + + if (knownCommandFound && knownCommands[possibleCommand] === undefined) { + break; + } + + if (str.length === 128) { + throw new _util.FormatError(`Command token too long: ${str.length}`); + } + + str = possibleCommand; + knownCommandFound = knownCommands && knownCommands[str] !== undefined; + } + + if (str === "true") { + return true; + } + + if (str === "false") { + return false; + } + + if (str === "null") { + return null; + } + + if (str === "BI") { + this.beginInlineImagePos = this.stream.pos; + } + + return _primitives.Cmd.get(str); + } + + peekObj() { + const streamPos = this.stream.pos, + currentChar = this.currentChar, + beginInlineImagePos = this.beginInlineImagePos; + let nextObj; + + try { + nextObj = this.getObj(); + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.warn)(`peekObj: ${ex}`); + } + + this.stream.pos = streamPos; + this.currentChar = currentChar; + this.beginInlineImagePos = beginInlineImagePos; + return nextObj; + } + + skipToNextLine() { + let ch = this.currentChar; + + while (ch >= 0) { + if (ch === 0x0d) { + ch = this.nextChar(); + + if (ch === 0x0a) { + this.nextChar(); + } + + break; + } else if (ch === 0x0a) { + this.nextChar(); + break; + } + + ch = this.nextChar(); + } + } + +} + +exports.Lexer = Lexer; + +class Linearization { + static create(stream) { + function getInt(linDict, name, allowZeroValue = false) { + const obj = linDict.get(name); + + if (Number.isInteger(obj) && (allowZeroValue ? obj >= 0 : obj > 0)) { + return obj; + } + + throw new Error(`The "${name}" parameter in the linearization ` + "dictionary is invalid."); + } + + function getHints(linDict) { + const hints = linDict.get("H"); + let hintsLength; + + if (Array.isArray(hints) && ((hintsLength = hints.length) === 2 || hintsLength === 4)) { + for (let index = 0; index < hintsLength; index++) { + const hint = hints[index]; + + if (!(Number.isInteger(hint) && hint > 0)) { + throw new Error(`Hint (${index}) in the linearization dictionary is invalid.`); + } + } + + return hints; + } + + throw new Error("Hint array in the linearization dictionary is invalid."); + } + + const parser = new Parser({ + lexer: new Lexer(stream), + xref: null + }); + const obj1 = parser.getObj(); + const obj2 = parser.getObj(); + const obj3 = parser.getObj(); + const linDict = parser.getObj(); + let obj, length; + + if (!(Number.isInteger(obj1) && Number.isInteger(obj2) && (0, _primitives.isCmd)(obj3, "obj") && linDict instanceof _primitives.Dict && typeof (obj = linDict.get("Linearized")) === "number" && obj > 0)) { + return null; + } else if ((length = getInt(linDict, "L")) !== stream.length) { + throw new Error('The "L" parameter in the linearization dictionary ' + "does not equal the stream length."); + } + + return { + length, + hints: getHints(linDict), + objectNumberFirst: getInt(linDict, "O"), + endFirst: getInt(linDict, "E"), + numPages: getInt(linDict, "N"), + mainXRefEntriesOffset: getInt(linDict, "T"), + pageFirst: linDict.has("P") ? getInt(linDict, "P", true) : 0 + }; + } + +} + +exports.Linearization = Linearization; + +/***/ }), +/* 18 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Ascii85Stream = void 0; + +var _decode_stream = __w_pdfjs_require__(19); + +var _core_utils = __w_pdfjs_require__(6); + +class Ascii85Stream extends _decode_stream.DecodeStream { + constructor(str, maybeLength) { + if (maybeLength) { + maybeLength *= 0.8; + } + + super(maybeLength); + this.str = str; + this.dict = str.dict; + this.input = new Uint8Array(5); + } + + readBlock() { + const TILDA_CHAR = 0x7e; + const Z_LOWER_CHAR = 0x7a; + const EOF = -1; + const str = this.str; + let c = str.getByte(); + + while ((0, _core_utils.isWhiteSpace)(c)) { + c = str.getByte(); + } + + if (c === EOF || c === TILDA_CHAR) { + this.eof = true; + return; + } + + const bufferLength = this.bufferLength; + let buffer, i; + + if (c === Z_LOWER_CHAR) { + buffer = this.ensureBuffer(bufferLength + 4); + + for (i = 0; i < 4; ++i) { + buffer[bufferLength + i] = 0; + } + + this.bufferLength += 4; + } else { + const input = this.input; + input[0] = c; + + for (i = 1; i < 5; ++i) { + c = str.getByte(); + + while ((0, _core_utils.isWhiteSpace)(c)) { + c = str.getByte(); + } + + input[i] = c; + + if (c === EOF || c === TILDA_CHAR) { + break; + } + } + + buffer = this.ensureBuffer(bufferLength + i - 1); + this.bufferLength += i - 1; + + if (i < 5) { + for (; i < 5; ++i) { + input[i] = 0x21 + 84; + } + + this.eof = true; + } + + let t = 0; + + for (i = 0; i < 5; ++i) { + t = t * 85 + (input[i] - 0x21); + } + + for (i = 3; i >= 0; --i) { + buffer[bufferLength + i] = t & 0xff; + t >>= 8; + } + } + } + +} + +exports.Ascii85Stream = Ascii85Stream; + +/***/ }), +/* 19 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.StreamsSequenceStream = exports.DecodeStream = void 0; + +var _base_stream = __w_pdfjs_require__(7); + +var _stream = __w_pdfjs_require__(10); + +const emptyBuffer = new Uint8Array(0); + +class DecodeStream extends _base_stream.BaseStream { + constructor(maybeMinBufferLength) { + super(); + this._rawMinBufferLength = maybeMinBufferLength || 0; + this.pos = 0; + this.bufferLength = 0; + this.eof = false; + this.buffer = emptyBuffer; + this.minBufferLength = 512; + + if (maybeMinBufferLength) { + while (this.minBufferLength < maybeMinBufferLength) { + this.minBufferLength *= 2; + } + } + } + + get isEmpty() { + while (!this.eof && this.bufferLength === 0) { + this.readBlock(); + } + + return this.bufferLength === 0; + } + + ensureBuffer(requested) { + const buffer = this.buffer; + + if (requested <= buffer.byteLength) { + return buffer; + } + + let size = this.minBufferLength; + + while (size < requested) { + size *= 2; + } + + const buffer2 = new Uint8Array(size); + buffer2.set(buffer); + return this.buffer = buffer2; + } + + getByte() { + const pos = this.pos; + + while (this.bufferLength <= pos) { + if (this.eof) { + return -1; + } + + this.readBlock(); + } + + return this.buffer[this.pos++]; + } + + getBytes(length) { + const pos = this.pos; + let end; + + if (length) { + this.ensureBuffer(pos + length); + end = pos + length; + + while (!this.eof && this.bufferLength < end) { + this.readBlock(); + } + + const bufEnd = this.bufferLength; + + if (end > bufEnd) { + end = bufEnd; + } + } else { + while (!this.eof) { + this.readBlock(); + } + + end = this.bufferLength; + } + + this.pos = end; + return this.buffer.subarray(pos, end); + } + + reset() { + this.pos = 0; + } + + makeSubStream(start, length, dict = null) { + if (length === undefined) { + while (!this.eof) { + this.readBlock(); + } + } else { + const end = start + length; + + while (this.bufferLength <= end && !this.eof) { + this.readBlock(); + } + } + + return new _stream.Stream(this.buffer, start, length, dict); + } + + getBaseStreams() { + return this.str ? this.str.getBaseStreams() : null; + } + +} + +exports.DecodeStream = DecodeStream; + +class StreamsSequenceStream extends DecodeStream { + constructor(streams, onError = null) { + let maybeLength = 0; + + for (const stream of streams) { + maybeLength += stream instanceof DecodeStream ? stream._rawMinBufferLength : stream.length; + } + + super(maybeLength); + this.streams = streams; + this._onError = onError; + } + + readBlock() { + const streams = this.streams; + + if (streams.length === 0) { + this.eof = true; + return; + } + + const stream = streams.shift(); + let chunk; + + try { + chunk = stream.getBytes(); + } catch (reason) { + if (this._onError) { + this._onError(reason, stream.dict && stream.dict.objId); + + return; + } + + throw reason; + } + + const bufferLength = this.bufferLength; + const newLength = bufferLength + chunk.length; + const buffer = this.ensureBuffer(newLength); + buffer.set(chunk, bufferLength); + this.bufferLength = newLength; + } + + getBaseStreams() { + const baseStreamsBuf = []; + + for (const stream of this.streams) { + const baseStreams = stream.getBaseStreams(); + + if (baseStreams) { + baseStreamsBuf.push(...baseStreams); + } + } + + return baseStreamsBuf.length > 0 ? baseStreamsBuf : null; + } + +} + +exports.StreamsSequenceStream = StreamsSequenceStream; + +/***/ }), +/* 20 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.AsciiHexStream = void 0; + +var _decode_stream = __w_pdfjs_require__(19); + +class AsciiHexStream extends _decode_stream.DecodeStream { + constructor(str, maybeLength) { + if (maybeLength) { + maybeLength *= 0.5; + } + + super(maybeLength); + this.str = str; + this.dict = str.dict; + this.firstDigit = -1; + } + + readBlock() { + const UPSTREAM_BLOCK_SIZE = 8000; + const bytes = this.str.getBytes(UPSTREAM_BLOCK_SIZE); + + if (!bytes.length) { + this.eof = true; + return; + } + + const maxDecodeLength = bytes.length + 1 >> 1; + const buffer = this.ensureBuffer(this.bufferLength + maxDecodeLength); + let bufferLength = this.bufferLength; + let firstDigit = this.firstDigit; + + for (const ch of bytes) { + let digit; + + if (ch >= 0x30 && ch <= 0x39) { + digit = ch & 0x0f; + } else if (ch >= 0x41 && ch <= 0x46 || ch >= 0x61 && ch <= 0x66) { + digit = (ch & 0x0f) + 9; + } else if (ch === 0x3e) { + this.eof = true; + break; + } else { + continue; + } + + if (firstDigit < 0) { + firstDigit = digit; + } else { + buffer[bufferLength++] = firstDigit << 4 | digit; + firstDigit = -1; + } + } + + if (firstDigit >= 0 && this.eof) { + buffer[bufferLength++] = firstDigit << 4; + firstDigit = -1; + } + + this.firstDigit = firstDigit; + this.bufferLength = bufferLength; + } + +} + +exports.AsciiHexStream = AsciiHexStream; + +/***/ }), +/* 21 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.CCITTFaxStream = void 0; + +var _ccitt = __w_pdfjs_require__(22); + +var _decode_stream = __w_pdfjs_require__(19); + +var _primitives = __w_pdfjs_require__(5); + +class CCITTFaxStream extends _decode_stream.DecodeStream { + constructor(str, maybeLength, params) { + super(maybeLength); + this.str = str; + this.dict = str.dict; + + if (!(params instanceof _primitives.Dict)) { + params = _primitives.Dict.empty; + } + + const source = { + next() { + return str.getByte(); + } + + }; + this.ccittFaxDecoder = new _ccitt.CCITTFaxDecoder(source, { + K: params.get("K"), + EndOfLine: params.get("EndOfLine"), + EncodedByteAlign: params.get("EncodedByteAlign"), + Columns: params.get("Columns"), + Rows: params.get("Rows"), + EndOfBlock: params.get("EndOfBlock"), + BlackIs1: params.get("BlackIs1") + }); + } + + readBlock() { + while (!this.eof) { + const c = this.ccittFaxDecoder.readNextChar(); + + if (c === -1) { + this.eof = true; + return; + } + + this.ensureBuffer(this.bufferLength + 1); + this.buffer[this.bufferLength++] = c; + } + } + +} + +exports.CCITTFaxStream = CCITTFaxStream; + +/***/ }), +/* 22 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.CCITTFaxDecoder = void 0; + +var _util = __w_pdfjs_require__(2); + +const ccittEOL = -2; +const ccittEOF = -1; +const twoDimPass = 0; +const twoDimHoriz = 1; +const twoDimVert0 = 2; +const twoDimVertR1 = 3; +const twoDimVertL1 = 4; +const twoDimVertR2 = 5; +const twoDimVertL2 = 6; +const twoDimVertR3 = 7; +const twoDimVertL3 = 8; +const twoDimTable = [[-1, -1], [-1, -1], [7, twoDimVertL3], [7, twoDimVertR3], [6, twoDimVertL2], [6, twoDimVertL2], [6, twoDimVertR2], [6, twoDimVertR2], [4, twoDimPass], [4, twoDimPass], [4, twoDimPass], [4, twoDimPass], [4, twoDimPass], [4, twoDimPass], [4, twoDimPass], [4, twoDimPass], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimHoriz], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertL1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [3, twoDimVertR1], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0], [1, twoDimVert0]]; +const whiteTable1 = [[-1, -1], [12, ccittEOL], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [11, 1792], [11, 1792], [12, 1984], [12, 2048], [12, 2112], [12, 2176], [12, 2240], [12, 2304], [11, 1856], [11, 1856], [11, 1920], [11, 1920], [12, 2368], [12, 2432], [12, 2496], [12, 2560]]; +const whiteTable2 = [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [8, 29], [8, 29], [8, 30], [8, 30], [8, 45], [8, 45], [8, 46], [8, 46], [7, 22], [7, 22], [7, 22], [7, 22], [7, 23], [7, 23], [7, 23], [7, 23], [8, 47], [8, 47], [8, 48], [8, 48], [6, 13], [6, 13], [6, 13], [6, 13], [6, 13], [6, 13], [6, 13], [6, 13], [7, 20], [7, 20], [7, 20], [7, 20], [8, 33], [8, 33], [8, 34], [8, 34], [8, 35], [8, 35], [8, 36], [8, 36], [8, 37], [8, 37], [8, 38], [8, 38], [7, 19], [7, 19], [7, 19], [7, 19], [8, 31], [8, 31], [8, 32], [8, 32], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [6, 12], [6, 12], [6, 12], [6, 12], [6, 12], [6, 12], [6, 12], [6, 12], [8, 53], [8, 53], [8, 54], [8, 54], [7, 26], [7, 26], [7, 26], [7, 26], [8, 39], [8, 39], [8, 40], [8, 40], [8, 41], [8, 41], [8, 42], [8, 42], [8, 43], [8, 43], [8, 44], [8, 44], [7, 21], [7, 21], [7, 21], [7, 21], [7, 28], [7, 28], [7, 28], [7, 28], [8, 61], [8, 61], [8, 62], [8, 62], [8, 63], [8, 63], [8, 0], [8, 0], [8, 320], [8, 320], [8, 384], [8, 384], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 10], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [5, 11], [7, 27], [7, 27], [7, 27], [7, 27], [8, 59], [8, 59], [8, 60], [8, 60], [9, 1472], [9, 1536], [9, 1600], [9, 1728], [7, 18], [7, 18], [7, 18], [7, 18], [7, 24], [7, 24], [7, 24], [7, 24], [8, 49], [8, 49], [8, 50], [8, 50], [8, 51], [8, 51], [8, 52], [8, 52], [7, 25], [7, 25], [7, 25], [7, 25], [8, 55], [8, 55], [8, 56], [8, 56], [8, 57], [8, 57], [8, 58], [8, 58], [6, 192], [6, 192], [6, 192], [6, 192], [6, 192], [6, 192], [6, 192], [6, 192], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [6, 1664], [8, 448], [8, 448], [8, 512], [8, 512], [9, 704], [9, 768], [8, 640], [8, 640], [8, 576], [8, 576], [9, 832], [9, 896], [9, 960], [9, 1024], [9, 1088], [9, 1152], [9, 1216], [9, 1280], [9, 1344], [9, 1408], [7, 256], [7, 256], [7, 256], [7, 256], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 2], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 128], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 8], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [5, 9], [6, 16], [6, 16], [6, 16], [6, 16], [6, 16], [6, 16], [6, 16], [6, 16], [6, 17], [6, 17], [6, 17], [6, 17], [6, 17], [6, 17], [6, 17], [6, 17], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [4, 5], [6, 14], [6, 14], [6, 14], [6, 14], [6, 14], [6, 14], [6, 14], [6, 14], [6, 15], [6, 15], [6, 15], [6, 15], [6, 15], [6, 15], [6, 15], [6, 15], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [5, 64], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 6], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7], [4, 7]]; +const blackTable1 = [[-1, -1], [-1, -1], [12, ccittEOL], [12, ccittEOL], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [11, 1792], [11, 1792], [11, 1792], [11, 1792], [12, 1984], [12, 1984], [12, 2048], [12, 2048], [12, 2112], [12, 2112], [12, 2176], [12, 2176], [12, 2240], [12, 2240], [12, 2304], [12, 2304], [11, 1856], [11, 1856], [11, 1856], [11, 1856], [11, 1920], [11, 1920], [11, 1920], [11, 1920], [12, 2368], [12, 2368], [12, 2432], [12, 2432], [12, 2496], [12, 2496], [12, 2560], [12, 2560], [10, 18], [10, 18], [10, 18], [10, 18], [10, 18], [10, 18], [10, 18], [10, 18], [12, 52], [12, 52], [13, 640], [13, 704], [13, 768], [13, 832], [12, 55], [12, 55], [12, 56], [12, 56], [13, 1280], [13, 1344], [13, 1408], [13, 1472], [12, 59], [12, 59], [12, 60], [12, 60], [13, 1536], [13, 1600], [11, 24], [11, 24], [11, 24], [11, 24], [11, 25], [11, 25], [11, 25], [11, 25], [13, 1664], [13, 1728], [12, 320], [12, 320], [12, 384], [12, 384], [12, 448], [12, 448], [13, 512], [13, 576], [12, 53], [12, 53], [12, 54], [12, 54], [13, 896], [13, 960], [13, 1024], [13, 1088], [13, 1152], [13, 1216], [10, 64], [10, 64], [10, 64], [10, 64], [10, 64], [10, 64], [10, 64], [10, 64]]; +const blackTable2 = [[8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [8, 13], [11, 23], [11, 23], [12, 50], [12, 51], [12, 44], [12, 45], [12, 46], [12, 47], [12, 57], [12, 58], [12, 61], [12, 256], [10, 16], [10, 16], [10, 16], [10, 16], [10, 17], [10, 17], [10, 17], [10, 17], [12, 48], [12, 49], [12, 62], [12, 63], [12, 30], [12, 31], [12, 32], [12, 33], [12, 40], [12, 41], [11, 22], [11, 22], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [8, 14], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 10], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [7, 11], [9, 15], [9, 15], [9, 15], [9, 15], [9, 15], [9, 15], [9, 15], [9, 15], [12, 128], [12, 192], [12, 26], [12, 27], [12, 28], [12, 29], [11, 19], [11, 19], [11, 20], [11, 20], [12, 34], [12, 35], [12, 36], [12, 37], [12, 38], [12, 39], [11, 21], [11, 21], [12, 42], [12, 43], [10, 0], [10, 0], [10, 0], [10, 0], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12], [7, 12]]; +const blackTable3 = [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [6, 9], [6, 8], [5, 7], [5, 7], [4, 6], [4, 6], [4, 6], [4, 6], [4, 5], [4, 5], [4, 5], [4, 5], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2]]; + +class CCITTFaxDecoder { + constructor(source, options = {}) { + if (!source || typeof source.next !== "function") { + throw new Error('CCITTFaxDecoder - invalid "source" parameter.'); + } + + this.source = source; + this.eof = false; + this.encoding = options.K || 0; + this.eoline = options.EndOfLine || false; + this.byteAlign = options.EncodedByteAlign || false; + this.columns = options.Columns || 1728; + this.rows = options.Rows || 0; + let eoblock = options.EndOfBlock; + + if (eoblock === null || eoblock === undefined) { + eoblock = true; + } + + this.eoblock = eoblock; + this.black = options.BlackIs1 || false; + this.codingLine = new Uint32Array(this.columns + 1); + this.refLine = new Uint32Array(this.columns + 2); + this.codingLine[0] = this.columns; + this.codingPos = 0; + this.row = 0; + this.nextLine2D = this.encoding < 0; + this.inputBits = 0; + this.inputBuf = 0; + this.outputBits = 0; + this.rowsDone = false; + let code1; + + while ((code1 = this._lookBits(12)) === 0) { + this._eatBits(1); + } + + if (code1 === 1) { + this._eatBits(12); + } + + if (this.encoding > 0) { + this.nextLine2D = !this._lookBits(1); + + this._eatBits(1); + } + } + + readNextChar() { + if (this.eof) { + return -1; + } + + const refLine = this.refLine; + const codingLine = this.codingLine; + const columns = this.columns; + let refPos, blackPixels, bits, i; + + if (this.outputBits === 0) { + if (this.rowsDone) { + this.eof = true; + } + + if (this.eof) { + return -1; + } + + this.err = false; + let code1, code2, code3; + + if (this.nextLine2D) { + for (i = 0; codingLine[i] < columns; ++i) { + refLine[i] = codingLine[i]; + } + + refLine[i++] = columns; + refLine[i] = columns; + codingLine[0] = 0; + this.codingPos = 0; + refPos = 0; + blackPixels = 0; + + while (codingLine[this.codingPos] < columns) { + code1 = this._getTwoDimCode(); + + switch (code1) { + case twoDimPass: + this._addPixels(refLine[refPos + 1], blackPixels); + + if (refLine[refPos + 1] < columns) { + refPos += 2; + } + + break; + + case twoDimHoriz: + code1 = code2 = 0; + + if (blackPixels) { + do { + code1 += code3 = this._getBlackCode(); + } while (code3 >= 64); + + do { + code2 += code3 = this._getWhiteCode(); + } while (code3 >= 64); + } else { + do { + code1 += code3 = this._getWhiteCode(); + } while (code3 >= 64); + + do { + code2 += code3 = this._getBlackCode(); + } while (code3 >= 64); + } + + this._addPixels(codingLine[this.codingPos] + code1, blackPixels); + + if (codingLine[this.codingPos] < columns) { + this._addPixels(codingLine[this.codingPos] + code2, blackPixels ^ 1); + } + + while (refLine[refPos] <= codingLine[this.codingPos] && refLine[refPos] < columns) { + refPos += 2; + } + + break; + + case twoDimVertR3: + this._addPixels(refLine[refPos] + 3, blackPixels); + + blackPixels ^= 1; + + if (codingLine[this.codingPos] < columns) { + ++refPos; + + while (refLine[refPos] <= codingLine[this.codingPos] && refLine[refPos] < columns) { + refPos += 2; + } + } + + break; + + case twoDimVertR2: + this._addPixels(refLine[refPos] + 2, blackPixels); + + blackPixels ^= 1; + + if (codingLine[this.codingPos] < columns) { + ++refPos; + + while (refLine[refPos] <= codingLine[this.codingPos] && refLine[refPos] < columns) { + refPos += 2; + } + } + + break; + + case twoDimVertR1: + this._addPixels(refLine[refPos] + 1, blackPixels); + + blackPixels ^= 1; + + if (codingLine[this.codingPos] < columns) { + ++refPos; + + while (refLine[refPos] <= codingLine[this.codingPos] && refLine[refPos] < columns) { + refPos += 2; + } + } + + break; + + case twoDimVert0: + this._addPixels(refLine[refPos], blackPixels); + + blackPixels ^= 1; + + if (codingLine[this.codingPos] < columns) { + ++refPos; + + while (refLine[refPos] <= codingLine[this.codingPos] && refLine[refPos] < columns) { + refPos += 2; + } + } + + break; + + case twoDimVertL3: + this._addPixelsNeg(refLine[refPos] - 3, blackPixels); + + blackPixels ^= 1; + + if (codingLine[this.codingPos] < columns) { + if (refPos > 0) { + --refPos; + } else { + ++refPos; + } + + while (refLine[refPos] <= codingLine[this.codingPos] && refLine[refPos] < columns) { + refPos += 2; + } + } + + break; + + case twoDimVertL2: + this._addPixelsNeg(refLine[refPos] - 2, blackPixels); + + blackPixels ^= 1; + + if (codingLine[this.codingPos] < columns) { + if (refPos > 0) { + --refPos; + } else { + ++refPos; + } + + while (refLine[refPos] <= codingLine[this.codingPos] && refLine[refPos] < columns) { + refPos += 2; + } + } + + break; + + case twoDimVertL1: + this._addPixelsNeg(refLine[refPos] - 1, blackPixels); + + blackPixels ^= 1; + + if (codingLine[this.codingPos] < columns) { + if (refPos > 0) { + --refPos; + } else { + ++refPos; + } + + while (refLine[refPos] <= codingLine[this.codingPos] && refLine[refPos] < columns) { + refPos += 2; + } + } + + break; + + case ccittEOF: + this._addPixels(columns, 0); + + this.eof = true; + break; + + default: + (0, _util.info)("bad 2d code"); + + this._addPixels(columns, 0); + + this.err = true; + } + } + } else { + codingLine[0] = 0; + this.codingPos = 0; + blackPixels = 0; + + while (codingLine[this.codingPos] < columns) { + code1 = 0; + + if (blackPixels) { + do { + code1 += code3 = this._getBlackCode(); + } while (code3 >= 64); + } else { + do { + code1 += code3 = this._getWhiteCode(); + } while (code3 >= 64); + } + + this._addPixels(codingLine[this.codingPos] + code1, blackPixels); + + blackPixels ^= 1; + } + } + + let gotEOL = false; + + if (this.byteAlign) { + this.inputBits &= ~7; + } + + if (!this.eoblock && this.row === this.rows - 1) { + this.rowsDone = true; + } else { + code1 = this._lookBits(12); + + if (this.eoline) { + while (code1 !== ccittEOF && code1 !== 1) { + this._eatBits(1); + + code1 = this._lookBits(12); + } + } else { + while (code1 === 0) { + this._eatBits(1); + + code1 = this._lookBits(12); + } + } + + if (code1 === 1) { + this._eatBits(12); + + gotEOL = true; + } else if (code1 === ccittEOF) { + this.eof = true; + } + } + + if (!this.eof && this.encoding > 0 && !this.rowsDone) { + this.nextLine2D = !this._lookBits(1); + + this._eatBits(1); + } + + if (this.eoblock && gotEOL && this.byteAlign) { + code1 = this._lookBits(12); + + if (code1 === 1) { + this._eatBits(12); + + if (this.encoding > 0) { + this._lookBits(1); + + this._eatBits(1); + } + + if (this.encoding >= 0) { + for (i = 0; i < 4; ++i) { + code1 = this._lookBits(12); + + if (code1 !== 1) { + (0, _util.info)("bad rtc code: " + code1); + } + + this._eatBits(12); + + if (this.encoding > 0) { + this._lookBits(1); + + this._eatBits(1); + } + } + } + + this.eof = true; + } + } else if (this.err && this.eoline) { + while (true) { + code1 = this._lookBits(13); + + if (code1 === ccittEOF) { + this.eof = true; + return -1; + } + + if (code1 >> 1 === 1) { + break; + } + + this._eatBits(1); + } + + this._eatBits(12); + + if (this.encoding > 0) { + this._eatBits(1); + + this.nextLine2D = !(code1 & 1); + } + } + + if (codingLine[0] > 0) { + this.outputBits = codingLine[this.codingPos = 0]; + } else { + this.outputBits = codingLine[this.codingPos = 1]; + } + + this.row++; + } + + let c; + + if (this.outputBits >= 8) { + c = this.codingPos & 1 ? 0 : 0xff; + this.outputBits -= 8; + + if (this.outputBits === 0 && codingLine[this.codingPos] < columns) { + this.codingPos++; + this.outputBits = codingLine[this.codingPos] - codingLine[this.codingPos - 1]; + } + } else { + bits = 8; + c = 0; + + do { + if (typeof this.outputBits !== "number") { + throw new _util.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.'); + } + + if (this.outputBits > bits) { + c <<= bits; + + if (!(this.codingPos & 1)) { + c |= 0xff >> 8 - bits; + } + + this.outputBits -= bits; + bits = 0; + } else { + c <<= this.outputBits; + + if (!(this.codingPos & 1)) { + c |= 0xff >> 8 - this.outputBits; + } + + bits -= this.outputBits; + this.outputBits = 0; + + if (codingLine[this.codingPos] < columns) { + this.codingPos++; + this.outputBits = codingLine[this.codingPos] - codingLine[this.codingPos - 1]; + } else if (bits > 0) { + c <<= bits; + bits = 0; + } + } + } while (bits); + } + + if (this.black) { + c ^= 0xff; + } + + return c; + } + + _addPixels(a1, blackPixels) { + const codingLine = this.codingLine; + let codingPos = this.codingPos; + + if (a1 > codingLine[codingPos]) { + if (a1 > this.columns) { + (0, _util.info)("row is wrong length"); + this.err = true; + a1 = this.columns; + } + + if (codingPos & 1 ^ blackPixels) { + ++codingPos; + } + + codingLine[codingPos] = a1; + } + + this.codingPos = codingPos; + } + + _addPixelsNeg(a1, blackPixels) { + const codingLine = this.codingLine; + let codingPos = this.codingPos; + + if (a1 > codingLine[codingPos]) { + if (a1 > this.columns) { + (0, _util.info)("row is wrong length"); + this.err = true; + a1 = this.columns; + } + + if (codingPos & 1 ^ blackPixels) { + ++codingPos; + } + + codingLine[codingPos] = a1; + } else if (a1 < codingLine[codingPos]) { + if (a1 < 0) { + (0, _util.info)("invalid code"); + this.err = true; + a1 = 0; + } + + while (codingPos > 0 && a1 < codingLine[codingPos - 1]) { + --codingPos; + } + + codingLine[codingPos] = a1; + } + + this.codingPos = codingPos; + } + + _findTableCode(start, end, table, limit) { + const limitValue = limit || 0; + + for (let i = start; i <= end; ++i) { + let code = this._lookBits(i); + + if (code === ccittEOF) { + return [true, 1, false]; + } + + if (i < end) { + code <<= end - i; + } + + if (!limitValue || code >= limitValue) { + const p = table[code - limitValue]; + + if (p[0] === i) { + this._eatBits(i); + + return [true, p[1], true]; + } + } + } + + return [false, 0, false]; + } + + _getTwoDimCode() { + let code = 0; + let p; + + if (this.eoblock) { + code = this._lookBits(7); + p = twoDimTable[code]; + + if (p && p[0] > 0) { + this._eatBits(p[0]); + + return p[1]; + } + } else { + const result = this._findTableCode(1, 7, twoDimTable); + + if (result[0] && result[2]) { + return result[1]; + } + } + + (0, _util.info)("Bad two dim code"); + return ccittEOF; + } + + _getWhiteCode() { + let code = 0; + let p; + + if (this.eoblock) { + code = this._lookBits(12); + + if (code === ccittEOF) { + return 1; + } + + if (code >> 5 === 0) { + p = whiteTable1[code]; + } else { + p = whiteTable2[code >> 3]; + } + + if (p[0] > 0) { + this._eatBits(p[0]); + + return p[1]; + } + } else { + let result = this._findTableCode(1, 9, whiteTable2); + + if (result[0]) { + return result[1]; + } + + result = this._findTableCode(11, 12, whiteTable1); + + if (result[0]) { + return result[1]; + } + } + + (0, _util.info)("bad white code"); + + this._eatBits(1); + + return 1; + } + + _getBlackCode() { + let code, p; + + if (this.eoblock) { + code = this._lookBits(13); + + if (code === ccittEOF) { + return 1; + } + + if (code >> 7 === 0) { + p = blackTable1[code]; + } else if (code >> 9 === 0 && code >> 7 !== 0) { + p = blackTable2[(code >> 1) - 64]; + } else { + p = blackTable3[code >> 7]; + } + + if (p[0] > 0) { + this._eatBits(p[0]); + + return p[1]; + } + } else { + let result = this._findTableCode(2, 6, blackTable3); + + if (result[0]) { + return result[1]; + } + + result = this._findTableCode(7, 12, blackTable2, 64); + + if (result[0]) { + return result[1]; + } + + result = this._findTableCode(10, 13, blackTable1); + + if (result[0]) { + return result[1]; + } + } + + (0, _util.info)("bad black code"); + + this._eatBits(1); + + return 1; + } + + _lookBits(n) { + let c; + + while (this.inputBits < n) { + if ((c = this.source.next()) === -1) { + if (this.inputBits === 0) { + return ccittEOF; + } + + return this.inputBuf << n - this.inputBits & 0xffff >> 16 - n; + } + + this.inputBuf = this.inputBuf << 8 | c; + this.inputBits += 8; + } + + return this.inputBuf >> this.inputBits - n & 0xffff >> 16 - n; + } + + _eatBits(n) { + if ((this.inputBits -= n) < 0) { + this.inputBits = 0; + } + } + +} + +exports.CCITTFaxDecoder = CCITTFaxDecoder; + +/***/ }), +/* 23 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.FlateStream = void 0; + +var _decode_stream = __w_pdfjs_require__(19); + +var _util = __w_pdfjs_require__(2); + +const codeLenCodeMap = new Int32Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]); +const lengthDecode = new Int32Array([0x00003, 0x00004, 0x00005, 0x00006, 0x00007, 0x00008, 0x00009, 0x0000a, 0x1000b, 0x1000d, 0x1000f, 0x10011, 0x20013, 0x20017, 0x2001b, 0x2001f, 0x30023, 0x3002b, 0x30033, 0x3003b, 0x40043, 0x40053, 0x40063, 0x40073, 0x50083, 0x500a3, 0x500c3, 0x500e3, 0x00102, 0x00102, 0x00102]); +const distDecode = new Int32Array([0x00001, 0x00002, 0x00003, 0x00004, 0x10005, 0x10007, 0x20009, 0x2000d, 0x30011, 0x30019, 0x40021, 0x40031, 0x50041, 0x50061, 0x60081, 0x600c1, 0x70101, 0x70181, 0x80201, 0x80301, 0x90401, 0x90601, 0xa0801, 0xa0c01, 0xb1001, 0xb1801, 0xc2001, 0xc3001, 0xd4001, 0xd6001]); +const fixedLitCodeTab = [new Int32Array([0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c0, 0x70108, 0x80060, 0x80020, 0x900a0, 0x80000, 0x80080, 0x80040, 0x900e0, 0x70104, 0x80058, 0x80018, 0x90090, 0x70114, 0x80078, 0x80038, 0x900d0, 0x7010c, 0x80068, 0x80028, 0x900b0, 0x80008, 0x80088, 0x80048, 0x900f0, 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c8, 0x7010a, 0x80064, 0x80024, 0x900a8, 0x80004, 0x80084, 0x80044, 0x900e8, 0x70106, 0x8005c, 0x8001c, 0x90098, 0x70116, 0x8007c, 0x8003c, 0x900d8, 0x7010e, 0x8006c, 0x8002c, 0x900b8, 0x8000c, 0x8008c, 0x8004c, 0x900f8, 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c4, 0x70109, 0x80062, 0x80022, 0x900a4, 0x80002, 0x80082, 0x80042, 0x900e4, 0x70105, 0x8005a, 0x8001a, 0x90094, 0x70115, 0x8007a, 0x8003a, 0x900d4, 0x7010d, 0x8006a, 0x8002a, 0x900b4, 0x8000a, 0x8008a, 0x8004a, 0x900f4, 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cc, 0x7010b, 0x80066, 0x80026, 0x900ac, 0x80006, 0x80086, 0x80046, 0x900ec, 0x70107, 0x8005e, 0x8001e, 0x9009c, 0x70117, 0x8007e, 0x8003e, 0x900dc, 0x7010f, 0x8006e, 0x8002e, 0x900bc, 0x8000e, 0x8008e, 0x8004e, 0x900fc, 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c2, 0x70108, 0x80061, 0x80021, 0x900a2, 0x80001, 0x80081, 0x80041, 0x900e2, 0x70104, 0x80059, 0x80019, 0x90092, 0x70114, 0x80079, 0x80039, 0x900d2, 0x7010c, 0x80069, 0x80029, 0x900b2, 0x80009, 0x80089, 0x80049, 0x900f2, 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900ca, 0x7010a, 0x80065, 0x80025, 0x900aa, 0x80005, 0x80085, 0x80045, 0x900ea, 0x70106, 0x8005d, 0x8001d, 0x9009a, 0x70116, 0x8007d, 0x8003d, 0x900da, 0x7010e, 0x8006d, 0x8002d, 0x900ba, 0x8000d, 0x8008d, 0x8004d, 0x900fa, 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c6, 0x70109, 0x80063, 0x80023, 0x900a6, 0x80003, 0x80083, 0x80043, 0x900e6, 0x70105, 0x8005b, 0x8001b, 0x90096, 0x70115, 0x8007b, 0x8003b, 0x900d6, 0x7010d, 0x8006b, 0x8002b, 0x900b6, 0x8000b, 0x8008b, 0x8004b, 0x900f6, 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900ce, 0x7010b, 0x80067, 0x80027, 0x900ae, 0x80007, 0x80087, 0x80047, 0x900ee, 0x70107, 0x8005f, 0x8001f, 0x9009e, 0x70117, 0x8007f, 0x8003f, 0x900de, 0x7010f, 0x8006f, 0x8002f, 0x900be, 0x8000f, 0x8008f, 0x8004f, 0x900fe, 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c1, 0x70108, 0x80060, 0x80020, 0x900a1, 0x80000, 0x80080, 0x80040, 0x900e1, 0x70104, 0x80058, 0x80018, 0x90091, 0x70114, 0x80078, 0x80038, 0x900d1, 0x7010c, 0x80068, 0x80028, 0x900b1, 0x80008, 0x80088, 0x80048, 0x900f1, 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c9, 0x7010a, 0x80064, 0x80024, 0x900a9, 0x80004, 0x80084, 0x80044, 0x900e9, 0x70106, 0x8005c, 0x8001c, 0x90099, 0x70116, 0x8007c, 0x8003c, 0x900d9, 0x7010e, 0x8006c, 0x8002c, 0x900b9, 0x8000c, 0x8008c, 0x8004c, 0x900f9, 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c5, 0x70109, 0x80062, 0x80022, 0x900a5, 0x80002, 0x80082, 0x80042, 0x900e5, 0x70105, 0x8005a, 0x8001a, 0x90095, 0x70115, 0x8007a, 0x8003a, 0x900d5, 0x7010d, 0x8006a, 0x8002a, 0x900b5, 0x8000a, 0x8008a, 0x8004a, 0x900f5, 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cd, 0x7010b, 0x80066, 0x80026, 0x900ad, 0x80006, 0x80086, 0x80046, 0x900ed, 0x70107, 0x8005e, 0x8001e, 0x9009d, 0x70117, 0x8007e, 0x8003e, 0x900dd, 0x7010f, 0x8006e, 0x8002e, 0x900bd, 0x8000e, 0x8008e, 0x8004e, 0x900fd, 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c3, 0x70108, 0x80061, 0x80021, 0x900a3, 0x80001, 0x80081, 0x80041, 0x900e3, 0x70104, 0x80059, 0x80019, 0x90093, 0x70114, 0x80079, 0x80039, 0x900d3, 0x7010c, 0x80069, 0x80029, 0x900b3, 0x80009, 0x80089, 0x80049, 0x900f3, 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900cb, 0x7010a, 0x80065, 0x80025, 0x900ab, 0x80005, 0x80085, 0x80045, 0x900eb, 0x70106, 0x8005d, 0x8001d, 0x9009b, 0x70116, 0x8007d, 0x8003d, 0x900db, 0x7010e, 0x8006d, 0x8002d, 0x900bb, 0x8000d, 0x8008d, 0x8004d, 0x900fb, 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c7, 0x70109, 0x80063, 0x80023, 0x900a7, 0x80003, 0x80083, 0x80043, 0x900e7, 0x70105, 0x8005b, 0x8001b, 0x90097, 0x70115, 0x8007b, 0x8003b, 0x900d7, 0x7010d, 0x8006b, 0x8002b, 0x900b7, 0x8000b, 0x8008b, 0x8004b, 0x900f7, 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900cf, 0x7010b, 0x80067, 0x80027, 0x900af, 0x80007, 0x80087, 0x80047, 0x900ef, 0x70107, 0x8005f, 0x8001f, 0x9009f, 0x70117, 0x8007f, 0x8003f, 0x900df, 0x7010f, 0x8006f, 0x8002f, 0x900bf, 0x8000f, 0x8008f, 0x8004f, 0x900ff]), 9]; +const fixedDistCodeTab = [new Int32Array([0x50000, 0x50010, 0x50008, 0x50018, 0x50004, 0x50014, 0x5000c, 0x5001c, 0x50002, 0x50012, 0x5000a, 0x5001a, 0x50006, 0x50016, 0x5000e, 0x00000, 0x50001, 0x50011, 0x50009, 0x50019, 0x50005, 0x50015, 0x5000d, 0x5001d, 0x50003, 0x50013, 0x5000b, 0x5001b, 0x50007, 0x50017, 0x5000f, 0x00000]), 5]; + +class FlateStream extends _decode_stream.DecodeStream { + constructor(str, maybeLength) { + super(maybeLength); + this.str = str; + this.dict = str.dict; + const cmf = str.getByte(); + const flg = str.getByte(); + + if (cmf === -1 || flg === -1) { + throw new _util.FormatError(`Invalid header in flate stream: ${cmf}, ${flg}`); + } + + if ((cmf & 0x0f) !== 0x08) { + throw new _util.FormatError(`Unknown compression method in flate stream: ${cmf}, ${flg}`); + } + + if (((cmf << 8) + flg) % 31 !== 0) { + throw new _util.FormatError(`Bad FCHECK in flate stream: ${cmf}, ${flg}`); + } + + if (flg & 0x20) { + throw new _util.FormatError(`FDICT bit set in flate stream: ${cmf}, ${flg}`); + } + + this.codeSize = 0; + this.codeBuf = 0; + } + + getBits(bits) { + const str = this.str; + let codeSize = this.codeSize; + let codeBuf = this.codeBuf; + let b; + + while (codeSize < bits) { + if ((b = str.getByte()) === -1) { + throw new _util.FormatError("Bad encoding in flate stream"); + } + + codeBuf |= b << codeSize; + codeSize += 8; + } + + b = codeBuf & (1 << bits) - 1; + this.codeBuf = codeBuf >> bits; + this.codeSize = codeSize -= bits; + return b; + } + + getCode(table) { + const str = this.str; + const codes = table[0]; + const maxLen = table[1]; + let codeSize = this.codeSize; + let codeBuf = this.codeBuf; + let b; + + while (codeSize < maxLen) { + if ((b = str.getByte()) === -1) { + break; + } + + codeBuf |= b << codeSize; + codeSize += 8; + } + + const code = codes[codeBuf & (1 << maxLen) - 1]; + const codeLen = code >> 16; + const codeVal = code & 0xffff; + + if (codeLen < 1 || codeSize < codeLen) { + throw new _util.FormatError("Bad encoding in flate stream"); + } + + this.codeBuf = codeBuf >> codeLen; + this.codeSize = codeSize - codeLen; + return codeVal; + } + + generateHuffmanTable(lengths) { + const n = lengths.length; + let maxLen = 0; + let i; + + for (i = 0; i < n; ++i) { + if (lengths[i] > maxLen) { + maxLen = lengths[i]; + } + } + + const size = 1 << maxLen; + const codes = new Int32Array(size); + + for (let len = 1, code = 0, skip = 2; len <= maxLen; ++len, code <<= 1, skip <<= 1) { + for (let val = 0; val < n; ++val) { + if (lengths[val] === len) { + let code2 = 0; + let t = code; + + for (i = 0; i < len; ++i) { + code2 = code2 << 1 | t & 1; + t >>= 1; + } + + for (i = code2; i < size; i += skip) { + codes[i] = len << 16 | val; + } + + ++code; + } + } + } + + return [codes, maxLen]; + } + + readBlock() { + let buffer, len; + const str = this.str; + let hdr = this.getBits(3); + + if (hdr & 1) { + this.eof = true; + } + + hdr >>= 1; + + if (hdr === 0) { + let b; + + if ((b = str.getByte()) === -1) { + throw new _util.FormatError("Bad block header in flate stream"); + } + + let blockLen = b; + + if ((b = str.getByte()) === -1) { + throw new _util.FormatError("Bad block header in flate stream"); + } + + blockLen |= b << 8; + + if ((b = str.getByte()) === -1) { + throw new _util.FormatError("Bad block header in flate stream"); + } + + let check = b; + + if ((b = str.getByte()) === -1) { + throw new _util.FormatError("Bad block header in flate stream"); + } + + check |= b << 8; + + if (check !== (~blockLen & 0xffff) && (blockLen !== 0 || check !== 0)) { + throw new _util.FormatError("Bad uncompressed block length in flate stream"); + } + + this.codeBuf = 0; + this.codeSize = 0; + const bufferLength = this.bufferLength, + end = bufferLength + blockLen; + buffer = this.ensureBuffer(end); + this.bufferLength = end; + + if (blockLen === 0) { + if (str.peekByte() === -1) { + this.eof = true; + } + } else { + const block = str.getBytes(blockLen); + buffer.set(block, bufferLength); + + if (block.length < blockLen) { + this.eof = true; + } + } + + return; + } + + let litCodeTable; + let distCodeTable; + + if (hdr === 1) { + litCodeTable = fixedLitCodeTab; + distCodeTable = fixedDistCodeTab; + } else if (hdr === 2) { + const numLitCodes = this.getBits(5) + 257; + const numDistCodes = this.getBits(5) + 1; + const numCodeLenCodes = this.getBits(4) + 4; + const codeLenCodeLengths = new Uint8Array(codeLenCodeMap.length); + let i; + + for (i = 0; i < numCodeLenCodes; ++i) { + codeLenCodeLengths[codeLenCodeMap[i]] = this.getBits(3); + } + + const codeLenCodeTab = this.generateHuffmanTable(codeLenCodeLengths); + len = 0; + i = 0; + const codes = numLitCodes + numDistCodes; + const codeLengths = new Uint8Array(codes); + let bitsLength, bitsOffset, what; + + while (i < codes) { + const code = this.getCode(codeLenCodeTab); + + if (code === 16) { + bitsLength = 2; + bitsOffset = 3; + what = len; + } else if (code === 17) { + bitsLength = 3; + bitsOffset = 3; + what = len = 0; + } else if (code === 18) { + bitsLength = 7; + bitsOffset = 11; + what = len = 0; + } else { + codeLengths[i++] = len = code; + continue; + } + + let repeatLength = this.getBits(bitsLength) + bitsOffset; + + while (repeatLength-- > 0) { + codeLengths[i++] = what; + } + } + + litCodeTable = this.generateHuffmanTable(codeLengths.subarray(0, numLitCodes)); + distCodeTable = this.generateHuffmanTable(codeLengths.subarray(numLitCodes, codes)); + } else { + throw new _util.FormatError("Unknown block type in flate stream"); + } + + buffer = this.buffer; + let limit = buffer ? buffer.length : 0; + let pos = this.bufferLength; + + while (true) { + let code1 = this.getCode(litCodeTable); + + if (code1 < 256) { + if (pos + 1 >= limit) { + buffer = this.ensureBuffer(pos + 1); + limit = buffer.length; + } + + buffer[pos++] = code1; + continue; + } + + if (code1 === 256) { + this.bufferLength = pos; + return; + } + + code1 -= 257; + code1 = lengthDecode[code1]; + let code2 = code1 >> 16; + + if (code2 > 0) { + code2 = this.getBits(code2); + } + + len = (code1 & 0xffff) + code2; + code1 = this.getCode(distCodeTable); + code1 = distDecode[code1]; + code2 = code1 >> 16; + + if (code2 > 0) { + code2 = this.getBits(code2); + } + + const dist = (code1 & 0xffff) + code2; + + if (pos + len >= limit) { + buffer = this.ensureBuffer(pos + len); + limit = buffer.length; + } + + for (let k = 0; k < len; ++k, ++pos) { + buffer[pos] = buffer[pos - dist]; + } + } + } + +} + +exports.FlateStream = FlateStream; + +/***/ }), +/* 24 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Jbig2Stream = void 0; + +var _base_stream = __w_pdfjs_require__(7); + +var _decode_stream = __w_pdfjs_require__(19); + +var _primitives = __w_pdfjs_require__(5); + +var _jbig = __w_pdfjs_require__(25); + +var _util = __w_pdfjs_require__(2); + +class Jbig2Stream extends _decode_stream.DecodeStream { + constructor(stream, maybeLength, params) { + super(maybeLength); + this.stream = stream; + this.dict = stream.dict; + this.maybeLength = maybeLength; + this.params = params; + } + + get bytes() { + return (0, _util.shadow)(this, "bytes", this.stream.getBytes(this.maybeLength)); + } + + ensureBuffer(requested) {} + + readBlock() { + if (this.eof) { + return; + } + + const jbig2Image = new _jbig.Jbig2Image(); + const chunks = []; + + if (this.params instanceof _primitives.Dict) { + const globalsStream = this.params.get("JBIG2Globals"); + + if (globalsStream instanceof _base_stream.BaseStream) { + const globals = globalsStream.getBytes(); + chunks.push({ + data: globals, + start: 0, + end: globals.length + }); + } + } + + chunks.push({ + data: this.bytes, + start: 0, + end: this.bytes.length + }); + const data = jbig2Image.parseChunks(chunks); + const dataLength = data.length; + + for (let i = 0; i < dataLength; i++) { + data[i] ^= 0xff; + } + + this.buffer = data; + this.bufferLength = dataLength; + this.eof = true; + } + +} + +exports.Jbig2Stream = Jbig2Stream; + +/***/ }), +/* 25 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Jbig2Image = void 0; + +var _util = __w_pdfjs_require__(2); + +var _core_utils = __w_pdfjs_require__(6); + +var _arithmetic_decoder = __w_pdfjs_require__(26); + +var _ccitt = __w_pdfjs_require__(22); + +class Jbig2Error extends _util.BaseException { + constructor(msg) { + super(`JBIG2 error: ${msg}`, "Jbig2Error"); + } + +} + +class ContextCache { + getContexts(id) { + if (id in this) { + return this[id]; + } + + return this[id] = new Int8Array(1 << 16); + } + +} + +class DecodingContext { + constructor(data, start, end) { + this.data = data; + this.start = start; + this.end = end; + } + + get decoder() { + const decoder = new _arithmetic_decoder.ArithmeticDecoder(this.data, this.start, this.end); + return (0, _util.shadow)(this, "decoder", decoder); + } + + get contextCache() { + const cache = new ContextCache(); + return (0, _util.shadow)(this, "contextCache", cache); + } + +} + +function decodeInteger(contextCache, procedure, decoder) { + const contexts = contextCache.getContexts(procedure); + let prev = 1; + + function readBits(length) { + let v = 0; + + for (let i = 0; i < length; i++) { + const bit = decoder.readBit(contexts, prev); + prev = prev < 256 ? prev << 1 | bit : (prev << 1 | bit) & 511 | 256; + v = v << 1 | bit; + } + + return v >>> 0; + } + + const sign = readBits(1); + const value = readBits(1) ? readBits(1) ? readBits(1) ? readBits(1) ? readBits(1) ? readBits(32) + 4436 : readBits(12) + 340 : readBits(8) + 84 : readBits(6) + 20 : readBits(4) + 4 : readBits(2); + + if (sign === 0) { + return value; + } else if (value > 0) { + return -value; + } + + return null; +} + +function decodeIAID(contextCache, decoder, codeLength) { + const contexts = contextCache.getContexts("IAID"); + let prev = 1; + + for (let i = 0; i < codeLength; i++) { + const bit = decoder.readBit(contexts, prev); + prev = prev << 1 | bit; + } + + if (codeLength < 31) { + return prev & (1 << codeLength) - 1; + } + + return prev & 0x7fffffff; +} + +const SegmentTypes = ["SymbolDictionary", null, null, null, "IntermediateTextRegion", null, "ImmediateTextRegion", "ImmediateLosslessTextRegion", null, null, null, null, null, null, null, null, "PatternDictionary", null, null, null, "IntermediateHalftoneRegion", null, "ImmediateHalftoneRegion", "ImmediateLosslessHalftoneRegion", null, null, null, null, null, null, null, null, null, null, null, null, "IntermediateGenericRegion", null, "ImmediateGenericRegion", "ImmediateLosslessGenericRegion", "IntermediateGenericRefinementRegion", null, "ImmediateGenericRefinementRegion", "ImmediateLosslessGenericRefinementRegion", null, null, null, null, "PageInformation", "EndOfPage", "EndOfStripe", "EndOfFile", "Profiles", "Tables", null, null, null, null, null, null, null, null, "Extension"]; +const CodingTemplates = [[{ + x: -1, + y: -2 +}, { + x: 0, + y: -2 +}, { + x: 1, + y: -2 +}, { + x: -2, + y: -1 +}, { + x: -1, + y: -1 +}, { + x: 0, + y: -1 +}, { + x: 1, + y: -1 +}, { + x: 2, + y: -1 +}, { + x: -4, + y: 0 +}, { + x: -3, + y: 0 +}, { + x: -2, + y: 0 +}, { + x: -1, + y: 0 +}], [{ + x: -1, + y: -2 +}, { + x: 0, + y: -2 +}, { + x: 1, + y: -2 +}, { + x: 2, + y: -2 +}, { + x: -2, + y: -1 +}, { + x: -1, + y: -1 +}, { + x: 0, + y: -1 +}, { + x: 1, + y: -1 +}, { + x: 2, + y: -1 +}, { + x: -3, + y: 0 +}, { + x: -2, + y: 0 +}, { + x: -1, + y: 0 +}], [{ + x: -1, + y: -2 +}, { + x: 0, + y: -2 +}, { + x: 1, + y: -2 +}, { + x: -2, + y: -1 +}, { + x: -1, + y: -1 +}, { + x: 0, + y: -1 +}, { + x: 1, + y: -1 +}, { + x: -2, + y: 0 +}, { + x: -1, + y: 0 +}], [{ + x: -3, + y: -1 +}, { + x: -2, + y: -1 +}, { + x: -1, + y: -1 +}, { + x: 0, + y: -1 +}, { + x: 1, + y: -1 +}, { + x: -4, + y: 0 +}, { + x: -3, + y: 0 +}, { + x: -2, + y: 0 +}, { + x: -1, + y: 0 +}]]; +const RefinementTemplates = [{ + coding: [{ + x: 0, + y: -1 + }, { + x: 1, + y: -1 + }, { + x: -1, + y: 0 + }], + reference: [{ + x: 0, + y: -1 + }, { + x: 1, + y: -1 + }, { + x: -1, + y: 0 + }, { + x: 0, + y: 0 + }, { + x: 1, + y: 0 + }, { + x: -1, + y: 1 + }, { + x: 0, + y: 1 + }, { + x: 1, + y: 1 + }] +}, { + coding: [{ + x: -1, + y: -1 + }, { + x: 0, + y: -1 + }, { + x: 1, + y: -1 + }, { + x: -1, + y: 0 + }], + reference: [{ + x: 0, + y: -1 + }, { + x: -1, + y: 0 + }, { + x: 0, + y: 0 + }, { + x: 1, + y: 0 + }, { + x: 0, + y: 1 + }, { + x: 1, + y: 1 + }] +}]; +const ReusedContexts = [0x9b25, 0x0795, 0x00e5, 0x0195]; +const RefinementReusedContexts = [0x0020, 0x0008]; + +function decodeBitmapTemplate0(width, height, decodingContext) { + const decoder = decodingContext.decoder; + const contexts = decodingContext.contextCache.getContexts("GB"); + const bitmap = []; + let contextLabel, i, j, pixel, row, row1, row2; + const OLD_PIXEL_MASK = 0x7bf7; + + for (i = 0; i < height; i++) { + row = bitmap[i] = new Uint8Array(width); + row1 = i < 1 ? row : bitmap[i - 1]; + row2 = i < 2 ? row : bitmap[i - 2]; + contextLabel = row2[0] << 13 | row2[1] << 12 | row2[2] << 11 | row1[0] << 7 | row1[1] << 6 | row1[2] << 5 | row1[3] << 4; + + for (j = 0; j < width; j++) { + row[j] = pixel = decoder.readBit(contexts, contextLabel); + contextLabel = (contextLabel & OLD_PIXEL_MASK) << 1 | (j + 3 < width ? row2[j + 3] << 11 : 0) | (j + 4 < width ? row1[j + 4] << 4 : 0) | pixel; + } + } + + return bitmap; +} + +function decodeBitmap(mmr, width, height, templateIndex, prediction, skip, at, decodingContext) { + if (mmr) { + const input = new Reader(decodingContext.data, decodingContext.start, decodingContext.end); + return decodeMMRBitmap(input, width, height, false); + } + + if (templateIndex === 0 && !skip && !prediction && at.length === 4 && at[0].x === 3 && at[0].y === -1 && at[1].x === -3 && at[1].y === -1 && at[2].x === 2 && at[2].y === -2 && at[3].x === -2 && at[3].y === -2) { + return decodeBitmapTemplate0(width, height, decodingContext); + } + + const useskip = !!skip; + const template = CodingTemplates[templateIndex].concat(at); + template.sort(function (a, b) { + return a.y - b.y || a.x - b.x; + }); + const templateLength = template.length; + const templateX = new Int8Array(templateLength); + const templateY = new Int8Array(templateLength); + const changingTemplateEntries = []; + let reuseMask = 0, + minX = 0, + maxX = 0, + minY = 0; + let c, k; + + for (k = 0; k < templateLength; k++) { + templateX[k] = template[k].x; + templateY[k] = template[k].y; + minX = Math.min(minX, template[k].x); + maxX = Math.max(maxX, template[k].x); + minY = Math.min(minY, template[k].y); + + if (k < templateLength - 1 && template[k].y === template[k + 1].y && template[k].x === template[k + 1].x - 1) { + reuseMask |= 1 << templateLength - 1 - k; + } else { + changingTemplateEntries.push(k); + } + } + + const changingEntriesLength = changingTemplateEntries.length; + const changingTemplateX = new Int8Array(changingEntriesLength); + const changingTemplateY = new Int8Array(changingEntriesLength); + const changingTemplateBit = new Uint16Array(changingEntriesLength); + + for (c = 0; c < changingEntriesLength; c++) { + k = changingTemplateEntries[c]; + changingTemplateX[c] = template[k].x; + changingTemplateY[c] = template[k].y; + changingTemplateBit[c] = 1 << templateLength - 1 - k; + } + + const sbb_left = -minX; + const sbb_top = -minY; + const sbb_right = width - maxX; + const pseudoPixelContext = ReusedContexts[templateIndex]; + let row = new Uint8Array(width); + const bitmap = []; + const decoder = decodingContext.decoder; + const contexts = decodingContext.contextCache.getContexts("GB"); + let ltp = 0, + j, + i0, + j0, + contextLabel = 0, + bit, + shift; + + for (let i = 0; i < height; i++) { + if (prediction) { + const sltp = decoder.readBit(contexts, pseudoPixelContext); + ltp ^= sltp; + + if (ltp) { + bitmap.push(row); + continue; + } + } + + row = new Uint8Array(row); + bitmap.push(row); + + for (j = 0; j < width; j++) { + if (useskip && skip[i][j]) { + row[j] = 0; + continue; + } + + if (j >= sbb_left && j < sbb_right && i >= sbb_top) { + contextLabel = contextLabel << 1 & reuseMask; + + for (k = 0; k < changingEntriesLength; k++) { + i0 = i + changingTemplateY[k]; + j0 = j + changingTemplateX[k]; + bit = bitmap[i0][j0]; + + if (bit) { + bit = changingTemplateBit[k]; + contextLabel |= bit; + } + } + } else { + contextLabel = 0; + shift = templateLength - 1; + + for (k = 0; k < templateLength; k++, shift--) { + j0 = j + templateX[k]; + + if (j0 >= 0 && j0 < width) { + i0 = i + templateY[k]; + + if (i0 >= 0) { + bit = bitmap[i0][j0]; + + if (bit) { + contextLabel |= bit << shift; + } + } + } + } + } + + const pixel = decoder.readBit(contexts, contextLabel); + row[j] = pixel; + } + } + + return bitmap; +} + +function decodeRefinement(width, height, templateIndex, referenceBitmap, offsetX, offsetY, prediction, at, decodingContext) { + let codingTemplate = RefinementTemplates[templateIndex].coding; + + if (templateIndex === 0) { + codingTemplate = codingTemplate.concat([at[0]]); + } + + const codingTemplateLength = codingTemplate.length; + const codingTemplateX = new Int32Array(codingTemplateLength); + const codingTemplateY = new Int32Array(codingTemplateLength); + let k; + + for (k = 0; k < codingTemplateLength; k++) { + codingTemplateX[k] = codingTemplate[k].x; + codingTemplateY[k] = codingTemplate[k].y; + } + + let referenceTemplate = RefinementTemplates[templateIndex].reference; + + if (templateIndex === 0) { + referenceTemplate = referenceTemplate.concat([at[1]]); + } + + const referenceTemplateLength = referenceTemplate.length; + const referenceTemplateX = new Int32Array(referenceTemplateLength); + const referenceTemplateY = new Int32Array(referenceTemplateLength); + + for (k = 0; k < referenceTemplateLength; k++) { + referenceTemplateX[k] = referenceTemplate[k].x; + referenceTemplateY[k] = referenceTemplate[k].y; + } + + const referenceWidth = referenceBitmap[0].length; + const referenceHeight = referenceBitmap.length; + const pseudoPixelContext = RefinementReusedContexts[templateIndex]; + const bitmap = []; + const decoder = decodingContext.decoder; + const contexts = decodingContext.contextCache.getContexts("GR"); + let ltp = 0; + + for (let i = 0; i < height; i++) { + if (prediction) { + const sltp = decoder.readBit(contexts, pseudoPixelContext); + ltp ^= sltp; + + if (ltp) { + throw new Jbig2Error("prediction is not supported"); + } + } + + const row = new Uint8Array(width); + bitmap.push(row); + + for (let j = 0; j < width; j++) { + let i0, j0; + let contextLabel = 0; + + for (k = 0; k < codingTemplateLength; k++) { + i0 = i + codingTemplateY[k]; + j0 = j + codingTemplateX[k]; + + if (i0 < 0 || j0 < 0 || j0 >= width) { + contextLabel <<= 1; + } else { + contextLabel = contextLabel << 1 | bitmap[i0][j0]; + } + } + + for (k = 0; k < referenceTemplateLength; k++) { + i0 = i + referenceTemplateY[k] - offsetY; + j0 = j + referenceTemplateX[k] - offsetX; + + if (i0 < 0 || i0 >= referenceHeight || j0 < 0 || j0 >= referenceWidth) { + contextLabel <<= 1; + } else { + contextLabel = contextLabel << 1 | referenceBitmap[i0][j0]; + } + } + + const pixel = decoder.readBit(contexts, contextLabel); + row[j] = pixel; + } + } + + return bitmap; +} + +function decodeSymbolDictionary(huffman, refinement, symbols, numberOfNewSymbols, numberOfExportedSymbols, huffmanTables, templateIndex, at, refinementTemplateIndex, refinementAt, decodingContext, huffmanInput) { + if (huffman && refinement) { + throw new Jbig2Error("symbol refinement with Huffman is not supported"); + } + + const newSymbols = []; + let currentHeight = 0; + let symbolCodeLength = (0, _core_utils.log2)(symbols.length + numberOfNewSymbols); + const decoder = decodingContext.decoder; + const contextCache = decodingContext.contextCache; + let tableB1, symbolWidths; + + if (huffman) { + tableB1 = getStandardTable(1); + symbolWidths = []; + symbolCodeLength = Math.max(symbolCodeLength, 1); + } + + while (newSymbols.length < numberOfNewSymbols) { + const deltaHeight = huffman ? huffmanTables.tableDeltaHeight.decode(huffmanInput) : decodeInteger(contextCache, "IADH", decoder); + currentHeight += deltaHeight; + let currentWidth = 0, + totalWidth = 0; + const firstSymbol = huffman ? symbolWidths.length : 0; + + while (true) { + const deltaWidth = huffman ? huffmanTables.tableDeltaWidth.decode(huffmanInput) : decodeInteger(contextCache, "IADW", decoder); + + if (deltaWidth === null) { + break; + } + + currentWidth += deltaWidth; + totalWidth += currentWidth; + let bitmap; + + if (refinement) { + const numberOfInstances = decodeInteger(contextCache, "IAAI", decoder); + + if (numberOfInstances > 1) { + bitmap = decodeTextRegion(huffman, refinement, currentWidth, currentHeight, 0, numberOfInstances, 1, symbols.concat(newSymbols), symbolCodeLength, 0, 0, 1, 0, huffmanTables, refinementTemplateIndex, refinementAt, decodingContext, 0, huffmanInput); + } else { + const symbolId = decodeIAID(contextCache, decoder, symbolCodeLength); + const rdx = decodeInteger(contextCache, "IARDX", decoder); + const rdy = decodeInteger(contextCache, "IARDY", decoder); + const symbol = symbolId < symbols.length ? symbols[symbolId] : newSymbols[symbolId - symbols.length]; + bitmap = decodeRefinement(currentWidth, currentHeight, refinementTemplateIndex, symbol, rdx, rdy, false, refinementAt, decodingContext); + } + + newSymbols.push(bitmap); + } else if (huffman) { + symbolWidths.push(currentWidth); + } else { + bitmap = decodeBitmap(false, currentWidth, currentHeight, templateIndex, false, null, at, decodingContext); + newSymbols.push(bitmap); + } + } + + if (huffman && !refinement) { + const bitmapSize = huffmanTables.tableBitmapSize.decode(huffmanInput); + huffmanInput.byteAlign(); + let collectiveBitmap; + + if (bitmapSize === 0) { + collectiveBitmap = readUncompressedBitmap(huffmanInput, totalWidth, currentHeight); + } else { + const originalEnd = huffmanInput.end; + const bitmapEnd = huffmanInput.position + bitmapSize; + huffmanInput.end = bitmapEnd; + collectiveBitmap = decodeMMRBitmap(huffmanInput, totalWidth, currentHeight, false); + huffmanInput.end = originalEnd; + huffmanInput.position = bitmapEnd; + } + + const numberOfSymbolsDecoded = symbolWidths.length; + + if (firstSymbol === numberOfSymbolsDecoded - 1) { + newSymbols.push(collectiveBitmap); + } else { + let i, + y, + xMin = 0, + xMax, + bitmapWidth, + symbolBitmap; + + for (i = firstSymbol; i < numberOfSymbolsDecoded; i++) { + bitmapWidth = symbolWidths[i]; + xMax = xMin + bitmapWidth; + symbolBitmap = []; + + for (y = 0; y < currentHeight; y++) { + symbolBitmap.push(collectiveBitmap[y].subarray(xMin, xMax)); + } + + newSymbols.push(symbolBitmap); + xMin = xMax; + } + } + } + } + + const exportedSymbols = [], + flags = []; + let currentFlag = false, + i, + ii; + const totalSymbolsLength = symbols.length + numberOfNewSymbols; + + while (flags.length < totalSymbolsLength) { + let runLength = huffman ? tableB1.decode(huffmanInput) : decodeInteger(contextCache, "IAEX", decoder); + + while (runLength--) { + flags.push(currentFlag); + } + + currentFlag = !currentFlag; + } + + for (i = 0, ii = symbols.length; i < ii; i++) { + if (flags[i]) { + exportedSymbols.push(symbols[i]); + } + } + + for (let j = 0; j < numberOfNewSymbols; i++, j++) { + if (flags[i]) { + exportedSymbols.push(newSymbols[j]); + } + } + + return exportedSymbols; +} + +function decodeTextRegion(huffman, refinement, width, height, defaultPixelValue, numberOfSymbolInstances, stripSize, inputSymbols, symbolCodeLength, transposed, dsOffset, referenceCorner, combinationOperator, huffmanTables, refinementTemplateIndex, refinementAt, decodingContext, logStripSize, huffmanInput) { + if (huffman && refinement) { + throw new Jbig2Error("refinement with Huffman is not supported"); + } + + const bitmap = []; + let i, row; + + for (i = 0; i < height; i++) { + row = new Uint8Array(width); + + if (defaultPixelValue) { + for (let j = 0; j < width; j++) { + row[j] = defaultPixelValue; + } + } + + bitmap.push(row); + } + + const decoder = decodingContext.decoder; + const contextCache = decodingContext.contextCache; + let stripT = huffman ? -huffmanTables.tableDeltaT.decode(huffmanInput) : -decodeInteger(contextCache, "IADT", decoder); + let firstS = 0; + i = 0; + + while (i < numberOfSymbolInstances) { + const deltaT = huffman ? huffmanTables.tableDeltaT.decode(huffmanInput) : decodeInteger(contextCache, "IADT", decoder); + stripT += deltaT; + const deltaFirstS = huffman ? huffmanTables.tableFirstS.decode(huffmanInput) : decodeInteger(contextCache, "IAFS", decoder); + firstS += deltaFirstS; + let currentS = firstS; + + do { + let currentT = 0; + + if (stripSize > 1) { + currentT = huffman ? huffmanInput.readBits(logStripSize) : decodeInteger(contextCache, "IAIT", decoder); + } + + const t = stripSize * stripT + currentT; + const symbolId = huffman ? huffmanTables.symbolIDTable.decode(huffmanInput) : decodeIAID(contextCache, decoder, symbolCodeLength); + const applyRefinement = refinement && (huffman ? huffmanInput.readBit() : decodeInteger(contextCache, "IARI", decoder)); + let symbolBitmap = inputSymbols[symbolId]; + let symbolWidth = symbolBitmap[0].length; + let symbolHeight = symbolBitmap.length; + + if (applyRefinement) { + const rdw = decodeInteger(contextCache, "IARDW", decoder); + const rdh = decodeInteger(contextCache, "IARDH", decoder); + const rdx = decodeInteger(contextCache, "IARDX", decoder); + const rdy = decodeInteger(contextCache, "IARDY", decoder); + symbolWidth += rdw; + symbolHeight += rdh; + symbolBitmap = decodeRefinement(symbolWidth, symbolHeight, refinementTemplateIndex, symbolBitmap, (rdw >> 1) + rdx, (rdh >> 1) + rdy, false, refinementAt, decodingContext); + } + + const offsetT = t - (referenceCorner & 1 ? 0 : symbolHeight - 1); + const offsetS = currentS - (referenceCorner & 2 ? symbolWidth - 1 : 0); + let s2, t2, symbolRow; + + if (transposed) { + for (s2 = 0; s2 < symbolHeight; s2++) { + row = bitmap[offsetS + s2]; + + if (!row) { + continue; + } + + symbolRow = symbolBitmap[s2]; + const maxWidth = Math.min(width - offsetT, symbolWidth); + + switch (combinationOperator) { + case 0: + for (t2 = 0; t2 < maxWidth; t2++) { + row[offsetT + t2] |= symbolRow[t2]; + } + + break; + + case 2: + for (t2 = 0; t2 < maxWidth; t2++) { + row[offsetT + t2] ^= symbolRow[t2]; + } + + break; + + default: + throw new Jbig2Error(`operator ${combinationOperator} is not supported`); + } + } + + currentS += symbolHeight - 1; + } else { + for (t2 = 0; t2 < symbolHeight; t2++) { + row = bitmap[offsetT + t2]; + + if (!row) { + continue; + } + + symbolRow = symbolBitmap[t2]; + + switch (combinationOperator) { + case 0: + for (s2 = 0; s2 < symbolWidth; s2++) { + row[offsetS + s2] |= symbolRow[s2]; + } + + break; + + case 2: + for (s2 = 0; s2 < symbolWidth; s2++) { + row[offsetS + s2] ^= symbolRow[s2]; + } + + break; + + default: + throw new Jbig2Error(`operator ${combinationOperator} is not supported`); + } + } + + currentS += symbolWidth - 1; + } + + i++; + const deltaS = huffman ? huffmanTables.tableDeltaS.decode(huffmanInput) : decodeInteger(contextCache, "IADS", decoder); + + if (deltaS === null) { + break; + } + + currentS += deltaS + dsOffset; + } while (true); + } + + return bitmap; +} + +function decodePatternDictionary(mmr, patternWidth, patternHeight, maxPatternIndex, template, decodingContext) { + const at = []; + + if (!mmr) { + at.push({ + x: -patternWidth, + y: 0 + }); + + if (template === 0) { + at.push({ + x: -3, + y: -1 + }, { + x: 2, + y: -2 + }, { + x: -2, + y: -2 + }); + } + } + + const collectiveWidth = (maxPatternIndex + 1) * patternWidth; + const collectiveBitmap = decodeBitmap(mmr, collectiveWidth, patternHeight, template, false, null, at, decodingContext); + const patterns = []; + + for (let i = 0; i <= maxPatternIndex; i++) { + const patternBitmap = []; + const xMin = patternWidth * i; + const xMax = xMin + patternWidth; + + for (let y = 0; y < patternHeight; y++) { + patternBitmap.push(collectiveBitmap[y].subarray(xMin, xMax)); + } + + patterns.push(patternBitmap); + } + + return patterns; +} + +function decodeHalftoneRegion(mmr, patterns, template, regionWidth, regionHeight, defaultPixelValue, enableSkip, combinationOperator, gridWidth, gridHeight, gridOffsetX, gridOffsetY, gridVectorX, gridVectorY, decodingContext) { + const skip = null; + + if (enableSkip) { + throw new Jbig2Error("skip is not supported"); + } + + if (combinationOperator !== 0) { + throw new Jbig2Error(`operator "${combinationOperator}" is not supported in halftone region`); + } + + const regionBitmap = []; + let i, j, row; + + for (i = 0; i < regionHeight; i++) { + row = new Uint8Array(regionWidth); + + if (defaultPixelValue) { + for (j = 0; j < regionWidth; j++) { + row[j] = defaultPixelValue; + } + } + + regionBitmap.push(row); + } + + const numberOfPatterns = patterns.length; + const pattern0 = patterns[0]; + const patternWidth = pattern0[0].length, + patternHeight = pattern0.length; + const bitsPerValue = (0, _core_utils.log2)(numberOfPatterns); + const at = []; + + if (!mmr) { + at.push({ + x: template <= 1 ? 3 : 2, + y: -1 + }); + + if (template === 0) { + at.push({ + x: -3, + y: -1 + }, { + x: 2, + y: -2 + }, { + x: -2, + y: -2 + }); + } + } + + const grayScaleBitPlanes = []; + let mmrInput, bitmap; + + if (mmr) { + mmrInput = new Reader(decodingContext.data, decodingContext.start, decodingContext.end); + } + + for (i = bitsPerValue - 1; i >= 0; i--) { + if (mmr) { + bitmap = decodeMMRBitmap(mmrInput, gridWidth, gridHeight, true); + } else { + bitmap = decodeBitmap(false, gridWidth, gridHeight, template, false, skip, at, decodingContext); + } + + grayScaleBitPlanes[i] = bitmap; + } + + let mg, ng, bit, patternIndex, patternBitmap, x, y, patternRow, regionRow; + + for (mg = 0; mg < gridHeight; mg++) { + for (ng = 0; ng < gridWidth; ng++) { + bit = 0; + patternIndex = 0; + + for (j = bitsPerValue - 1; j >= 0; j--) { + bit ^= grayScaleBitPlanes[j][mg][ng]; + patternIndex |= bit << j; + } + + patternBitmap = patterns[patternIndex]; + x = gridOffsetX + mg * gridVectorY + ng * gridVectorX >> 8; + y = gridOffsetY + mg * gridVectorX - ng * gridVectorY >> 8; + + if (x >= 0 && x + patternWidth <= regionWidth && y >= 0 && y + patternHeight <= regionHeight) { + for (i = 0; i < patternHeight; i++) { + regionRow = regionBitmap[y + i]; + patternRow = patternBitmap[i]; + + for (j = 0; j < patternWidth; j++) { + regionRow[x + j] |= patternRow[j]; + } + } + } else { + let regionX, regionY; + + for (i = 0; i < patternHeight; i++) { + regionY = y + i; + + if (regionY < 0 || regionY >= regionHeight) { + continue; + } + + regionRow = regionBitmap[regionY]; + patternRow = patternBitmap[i]; + + for (j = 0; j < patternWidth; j++) { + regionX = x + j; + + if (regionX >= 0 && regionX < regionWidth) { + regionRow[regionX] |= patternRow[j]; + } + } + } + } + } + } + + return regionBitmap; +} + +function readSegmentHeader(data, start) { + const segmentHeader = {}; + segmentHeader.number = (0, _core_utils.readUint32)(data, start); + const flags = data[start + 4]; + const segmentType = flags & 0x3f; + + if (!SegmentTypes[segmentType]) { + throw new Jbig2Error("invalid segment type: " + segmentType); + } + + segmentHeader.type = segmentType; + segmentHeader.typeName = SegmentTypes[segmentType]; + segmentHeader.deferredNonRetain = !!(flags & 0x80); + const pageAssociationFieldSize = !!(flags & 0x40); + const referredFlags = data[start + 5]; + let referredToCount = referredFlags >> 5 & 7; + const retainBits = [referredFlags & 31]; + let position = start + 6; + + if (referredFlags === 7) { + referredToCount = (0, _core_utils.readUint32)(data, position - 1) & 0x1fffffff; + position += 3; + let bytes = referredToCount + 7 >> 3; + retainBits[0] = data[position++]; + + while (--bytes > 0) { + retainBits.push(data[position++]); + } + } else if (referredFlags === 5 || referredFlags === 6) { + throw new Jbig2Error("invalid referred-to flags"); + } + + segmentHeader.retainBits = retainBits; + let referredToSegmentNumberSize = 4; + + if (segmentHeader.number <= 256) { + referredToSegmentNumberSize = 1; + } else if (segmentHeader.number <= 65536) { + referredToSegmentNumberSize = 2; + } + + const referredTo = []; + let i, ii; + + for (i = 0; i < referredToCount; i++) { + let number; + + if (referredToSegmentNumberSize === 1) { + number = data[position]; + } else if (referredToSegmentNumberSize === 2) { + number = (0, _core_utils.readUint16)(data, position); + } else { + number = (0, _core_utils.readUint32)(data, position); + } + + referredTo.push(number); + position += referredToSegmentNumberSize; + } + + segmentHeader.referredTo = referredTo; + + if (!pageAssociationFieldSize) { + segmentHeader.pageAssociation = data[position++]; + } else { + segmentHeader.pageAssociation = (0, _core_utils.readUint32)(data, position); + position += 4; + } + + segmentHeader.length = (0, _core_utils.readUint32)(data, position); + position += 4; + + if (segmentHeader.length === 0xffffffff) { + if (segmentType === 38) { + const genericRegionInfo = readRegionSegmentInformation(data, position); + const genericRegionSegmentFlags = data[position + RegionSegmentInformationFieldLength]; + const genericRegionMmr = !!(genericRegionSegmentFlags & 1); + const searchPatternLength = 6; + const searchPattern = new Uint8Array(searchPatternLength); + + if (!genericRegionMmr) { + searchPattern[0] = 0xff; + searchPattern[1] = 0xac; + } + + searchPattern[2] = genericRegionInfo.height >>> 24 & 0xff; + searchPattern[3] = genericRegionInfo.height >> 16 & 0xff; + searchPattern[4] = genericRegionInfo.height >> 8 & 0xff; + searchPattern[5] = genericRegionInfo.height & 0xff; + + for (i = position, ii = data.length; i < ii; i++) { + let j = 0; + + while (j < searchPatternLength && searchPattern[j] === data[i + j]) { + j++; + } + + if (j === searchPatternLength) { + segmentHeader.length = i + searchPatternLength; + break; + } + } + + if (segmentHeader.length === 0xffffffff) { + throw new Jbig2Error("segment end was not found"); + } + } else { + throw new Jbig2Error("invalid unknown segment length"); + } + } + + segmentHeader.headerEnd = position; + return segmentHeader; +} + +function readSegments(header, data, start, end) { + const segments = []; + let position = start; + + while (position < end) { + const segmentHeader = readSegmentHeader(data, position); + position = segmentHeader.headerEnd; + const segment = { + header: segmentHeader, + data + }; + + if (!header.randomAccess) { + segment.start = position; + position += segmentHeader.length; + segment.end = position; + } + + segments.push(segment); + + if (segmentHeader.type === 51) { + break; + } + } + + if (header.randomAccess) { + for (let i = 0, ii = segments.length; i < ii; i++) { + segments[i].start = position; + position += segments[i].header.length; + segments[i].end = position; + } + } + + return segments; +} + +function readRegionSegmentInformation(data, start) { + return { + width: (0, _core_utils.readUint32)(data, start), + height: (0, _core_utils.readUint32)(data, start + 4), + x: (0, _core_utils.readUint32)(data, start + 8), + y: (0, _core_utils.readUint32)(data, start + 12), + combinationOperator: data[start + 16] & 7 + }; +} + +const RegionSegmentInformationFieldLength = 17; + +function processSegment(segment, visitor) { + const header = segment.header; + const data = segment.data, + end = segment.end; + let position = segment.start; + let args, at, i, atLength; + + switch (header.type) { + case 0: + const dictionary = {}; + const dictionaryFlags = (0, _core_utils.readUint16)(data, position); + dictionary.huffman = !!(dictionaryFlags & 1); + dictionary.refinement = !!(dictionaryFlags & 2); + dictionary.huffmanDHSelector = dictionaryFlags >> 2 & 3; + dictionary.huffmanDWSelector = dictionaryFlags >> 4 & 3; + dictionary.bitmapSizeSelector = dictionaryFlags >> 6 & 1; + dictionary.aggregationInstancesSelector = dictionaryFlags >> 7 & 1; + dictionary.bitmapCodingContextUsed = !!(dictionaryFlags & 256); + dictionary.bitmapCodingContextRetained = !!(dictionaryFlags & 512); + dictionary.template = dictionaryFlags >> 10 & 3; + dictionary.refinementTemplate = dictionaryFlags >> 12 & 1; + position += 2; + + if (!dictionary.huffman) { + atLength = dictionary.template === 0 ? 4 : 1; + at = []; + + for (i = 0; i < atLength; i++) { + at.push({ + x: (0, _core_utils.readInt8)(data, position), + y: (0, _core_utils.readInt8)(data, position + 1) + }); + position += 2; + } + + dictionary.at = at; + } + + if (dictionary.refinement && !dictionary.refinementTemplate) { + at = []; + + for (i = 0; i < 2; i++) { + at.push({ + x: (0, _core_utils.readInt8)(data, position), + y: (0, _core_utils.readInt8)(data, position + 1) + }); + position += 2; + } + + dictionary.refinementAt = at; + } + + dictionary.numberOfExportedSymbols = (0, _core_utils.readUint32)(data, position); + position += 4; + dictionary.numberOfNewSymbols = (0, _core_utils.readUint32)(data, position); + position += 4; + args = [dictionary, header.number, header.referredTo, data, position, end]; + break; + + case 6: + case 7: + const textRegion = {}; + textRegion.info = readRegionSegmentInformation(data, position); + position += RegionSegmentInformationFieldLength; + const textRegionSegmentFlags = (0, _core_utils.readUint16)(data, position); + position += 2; + textRegion.huffman = !!(textRegionSegmentFlags & 1); + textRegion.refinement = !!(textRegionSegmentFlags & 2); + textRegion.logStripSize = textRegionSegmentFlags >> 2 & 3; + textRegion.stripSize = 1 << textRegion.logStripSize; + textRegion.referenceCorner = textRegionSegmentFlags >> 4 & 3; + textRegion.transposed = !!(textRegionSegmentFlags & 64); + textRegion.combinationOperator = textRegionSegmentFlags >> 7 & 3; + textRegion.defaultPixelValue = textRegionSegmentFlags >> 9 & 1; + textRegion.dsOffset = textRegionSegmentFlags << 17 >> 27; + textRegion.refinementTemplate = textRegionSegmentFlags >> 15 & 1; + + if (textRegion.huffman) { + const textRegionHuffmanFlags = (0, _core_utils.readUint16)(data, position); + position += 2; + textRegion.huffmanFS = textRegionHuffmanFlags & 3; + textRegion.huffmanDS = textRegionHuffmanFlags >> 2 & 3; + textRegion.huffmanDT = textRegionHuffmanFlags >> 4 & 3; + textRegion.huffmanRefinementDW = textRegionHuffmanFlags >> 6 & 3; + textRegion.huffmanRefinementDH = textRegionHuffmanFlags >> 8 & 3; + textRegion.huffmanRefinementDX = textRegionHuffmanFlags >> 10 & 3; + textRegion.huffmanRefinementDY = textRegionHuffmanFlags >> 12 & 3; + textRegion.huffmanRefinementSizeSelector = !!(textRegionHuffmanFlags & 0x4000); + } + + if (textRegion.refinement && !textRegion.refinementTemplate) { + at = []; + + for (i = 0; i < 2; i++) { + at.push({ + x: (0, _core_utils.readInt8)(data, position), + y: (0, _core_utils.readInt8)(data, position + 1) + }); + position += 2; + } + + textRegion.refinementAt = at; + } + + textRegion.numberOfSymbolInstances = (0, _core_utils.readUint32)(data, position); + position += 4; + args = [textRegion, header.referredTo, data, position, end]; + break; + + case 16: + const patternDictionary = {}; + const patternDictionaryFlags = data[position++]; + patternDictionary.mmr = !!(patternDictionaryFlags & 1); + patternDictionary.template = patternDictionaryFlags >> 1 & 3; + patternDictionary.patternWidth = data[position++]; + patternDictionary.patternHeight = data[position++]; + patternDictionary.maxPatternIndex = (0, _core_utils.readUint32)(data, position); + position += 4; + args = [patternDictionary, header.number, data, position, end]; + break; + + case 22: + case 23: + const halftoneRegion = {}; + halftoneRegion.info = readRegionSegmentInformation(data, position); + position += RegionSegmentInformationFieldLength; + const halftoneRegionFlags = data[position++]; + halftoneRegion.mmr = !!(halftoneRegionFlags & 1); + halftoneRegion.template = halftoneRegionFlags >> 1 & 3; + halftoneRegion.enableSkip = !!(halftoneRegionFlags & 8); + halftoneRegion.combinationOperator = halftoneRegionFlags >> 4 & 7; + halftoneRegion.defaultPixelValue = halftoneRegionFlags >> 7 & 1; + halftoneRegion.gridWidth = (0, _core_utils.readUint32)(data, position); + position += 4; + halftoneRegion.gridHeight = (0, _core_utils.readUint32)(data, position); + position += 4; + halftoneRegion.gridOffsetX = (0, _core_utils.readUint32)(data, position) & 0xffffffff; + position += 4; + halftoneRegion.gridOffsetY = (0, _core_utils.readUint32)(data, position) & 0xffffffff; + position += 4; + halftoneRegion.gridVectorX = (0, _core_utils.readUint16)(data, position); + position += 2; + halftoneRegion.gridVectorY = (0, _core_utils.readUint16)(data, position); + position += 2; + args = [halftoneRegion, header.referredTo, data, position, end]; + break; + + case 38: + case 39: + const genericRegion = {}; + genericRegion.info = readRegionSegmentInformation(data, position); + position += RegionSegmentInformationFieldLength; + const genericRegionSegmentFlags = data[position++]; + genericRegion.mmr = !!(genericRegionSegmentFlags & 1); + genericRegion.template = genericRegionSegmentFlags >> 1 & 3; + genericRegion.prediction = !!(genericRegionSegmentFlags & 8); + + if (!genericRegion.mmr) { + atLength = genericRegion.template === 0 ? 4 : 1; + at = []; + + for (i = 0; i < atLength; i++) { + at.push({ + x: (0, _core_utils.readInt8)(data, position), + y: (0, _core_utils.readInt8)(data, position + 1) + }); + position += 2; + } + + genericRegion.at = at; + } + + args = [genericRegion, data, position, end]; + break; + + case 48: + const pageInfo = { + width: (0, _core_utils.readUint32)(data, position), + height: (0, _core_utils.readUint32)(data, position + 4), + resolutionX: (0, _core_utils.readUint32)(data, position + 8), + resolutionY: (0, _core_utils.readUint32)(data, position + 12) + }; + + if (pageInfo.height === 0xffffffff) { + delete pageInfo.height; + } + + const pageSegmentFlags = data[position + 16]; + (0, _core_utils.readUint16)(data, position + 17); + pageInfo.lossless = !!(pageSegmentFlags & 1); + pageInfo.refinement = !!(pageSegmentFlags & 2); + pageInfo.defaultPixelValue = pageSegmentFlags >> 2 & 1; + pageInfo.combinationOperator = pageSegmentFlags >> 3 & 3; + pageInfo.requiresBuffer = !!(pageSegmentFlags & 32); + pageInfo.combinationOperatorOverride = !!(pageSegmentFlags & 64); + args = [pageInfo]; + break; + + case 49: + break; + + case 50: + break; + + case 51: + break; + + case 53: + args = [header.number, data, position, end]; + break; + + case 62: + break; + + default: + throw new Jbig2Error(`segment type ${header.typeName}(${header.type}) is not implemented`); + } + + const callbackName = "on" + header.typeName; + + if (callbackName in visitor) { + visitor[callbackName].apply(visitor, args); + } +} + +function processSegments(segments, visitor) { + for (let i = 0, ii = segments.length; i < ii; i++) { + processSegment(segments[i], visitor); + } +} + +function parseJbig2Chunks(chunks) { + const visitor = new SimpleSegmentVisitor(); + + for (let i = 0, ii = chunks.length; i < ii; i++) { + const chunk = chunks[i]; + const segments = readSegments({}, chunk.data, chunk.start, chunk.end); + processSegments(segments, visitor); + } + + return visitor.buffer; +} + +function parseJbig2(data) { + throw new Error("Not implemented: parseJbig2"); +} + +class SimpleSegmentVisitor { + onPageInformation(info) { + this.currentPageInfo = info; + const rowSize = info.width + 7 >> 3; + const buffer = new Uint8ClampedArray(rowSize * info.height); + + if (info.defaultPixelValue) { + buffer.fill(0xff); + } + + this.buffer = buffer; + } + + drawBitmap(regionInfo, bitmap) { + const pageInfo = this.currentPageInfo; + const width = regionInfo.width, + height = regionInfo.height; + const rowSize = pageInfo.width + 7 >> 3; + const combinationOperator = pageInfo.combinationOperatorOverride ? regionInfo.combinationOperator : pageInfo.combinationOperator; + const buffer = this.buffer; + const mask0 = 128 >> (regionInfo.x & 7); + let offset0 = regionInfo.y * rowSize + (regionInfo.x >> 3); + let i, j, mask, offset; + + switch (combinationOperator) { + case 0: + for (i = 0; i < height; i++) { + mask = mask0; + offset = offset0; + + for (j = 0; j < width; j++) { + if (bitmap[i][j]) { + buffer[offset] |= mask; + } + + mask >>= 1; + + if (!mask) { + mask = 128; + offset++; + } + } + + offset0 += rowSize; + } + + break; + + case 2: + for (i = 0; i < height; i++) { + mask = mask0; + offset = offset0; + + for (j = 0; j < width; j++) { + if (bitmap[i][j]) { + buffer[offset] ^= mask; + } + + mask >>= 1; + + if (!mask) { + mask = 128; + offset++; + } + } + + offset0 += rowSize; + } + + break; + + default: + throw new Jbig2Error(`operator ${combinationOperator} is not supported`); + } + } + + onImmediateGenericRegion(region, data, start, end) { + const regionInfo = region.info; + const decodingContext = new DecodingContext(data, start, end); + const bitmap = decodeBitmap(region.mmr, regionInfo.width, regionInfo.height, region.template, region.prediction, null, region.at, decodingContext); + this.drawBitmap(regionInfo, bitmap); + } + + onImmediateLosslessGenericRegion() { + this.onImmediateGenericRegion(...arguments); + } + + onSymbolDictionary(dictionary, currentSegment, referredSegments, data, start, end) { + let huffmanTables, huffmanInput; + + if (dictionary.huffman) { + huffmanTables = getSymbolDictionaryHuffmanTables(dictionary, referredSegments, this.customTables); + huffmanInput = new Reader(data, start, end); + } + + let symbols = this.symbols; + + if (!symbols) { + this.symbols = symbols = {}; + } + + const inputSymbols = []; + + for (const referredSegment of referredSegments) { + const referredSymbols = symbols[referredSegment]; + + if (referredSymbols) { + inputSymbols.push(...referredSymbols); + } + } + + const decodingContext = new DecodingContext(data, start, end); + symbols[currentSegment] = decodeSymbolDictionary(dictionary.huffman, dictionary.refinement, inputSymbols, dictionary.numberOfNewSymbols, dictionary.numberOfExportedSymbols, huffmanTables, dictionary.template, dictionary.at, dictionary.refinementTemplate, dictionary.refinementAt, decodingContext, huffmanInput); + } + + onImmediateTextRegion(region, referredSegments, data, start, end) { + const regionInfo = region.info; + let huffmanTables, huffmanInput; + const symbols = this.symbols; + const inputSymbols = []; + + for (const referredSegment of referredSegments) { + const referredSymbols = symbols[referredSegment]; + + if (referredSymbols) { + inputSymbols.push(...referredSymbols); + } + } + + const symbolCodeLength = (0, _core_utils.log2)(inputSymbols.length); + + if (region.huffman) { + huffmanInput = new Reader(data, start, end); + huffmanTables = getTextRegionHuffmanTables(region, referredSegments, this.customTables, inputSymbols.length, huffmanInput); + } + + const decodingContext = new DecodingContext(data, start, end); + const bitmap = decodeTextRegion(region.huffman, region.refinement, regionInfo.width, regionInfo.height, region.defaultPixelValue, region.numberOfSymbolInstances, region.stripSize, inputSymbols, symbolCodeLength, region.transposed, region.dsOffset, region.referenceCorner, region.combinationOperator, huffmanTables, region.refinementTemplate, region.refinementAt, decodingContext, region.logStripSize, huffmanInput); + this.drawBitmap(regionInfo, bitmap); + } + + onImmediateLosslessTextRegion() { + this.onImmediateTextRegion(...arguments); + } + + onPatternDictionary(dictionary, currentSegment, data, start, end) { + let patterns = this.patterns; + + if (!patterns) { + this.patterns = patterns = {}; + } + + const decodingContext = new DecodingContext(data, start, end); + patterns[currentSegment] = decodePatternDictionary(dictionary.mmr, dictionary.patternWidth, dictionary.patternHeight, dictionary.maxPatternIndex, dictionary.template, decodingContext); + } + + onImmediateHalftoneRegion(region, referredSegments, data, start, end) { + const patterns = this.patterns[referredSegments[0]]; + const regionInfo = region.info; + const decodingContext = new DecodingContext(data, start, end); + const bitmap = decodeHalftoneRegion(region.mmr, patterns, region.template, regionInfo.width, regionInfo.height, region.defaultPixelValue, region.enableSkip, region.combinationOperator, region.gridWidth, region.gridHeight, region.gridOffsetX, region.gridOffsetY, region.gridVectorX, region.gridVectorY, decodingContext); + this.drawBitmap(regionInfo, bitmap); + } + + onImmediateLosslessHalftoneRegion() { + this.onImmediateHalftoneRegion(...arguments); + } + + onTables(currentSegment, data, start, end) { + let customTables = this.customTables; + + if (!customTables) { + this.customTables = customTables = {}; + } + + customTables[currentSegment] = decodeTablesSegment(data, start, end); + } + +} + +class HuffmanLine { + constructor(lineData) { + if (lineData.length === 2) { + this.isOOB = true; + this.rangeLow = 0; + this.prefixLength = lineData[0]; + this.rangeLength = 0; + this.prefixCode = lineData[1]; + this.isLowerRange = false; + } else { + this.isOOB = false; + this.rangeLow = lineData[0]; + this.prefixLength = lineData[1]; + this.rangeLength = lineData[2]; + this.prefixCode = lineData[3]; + this.isLowerRange = lineData[4] === "lower"; + } + } + +} + +class HuffmanTreeNode { + constructor(line) { + this.children = []; + + if (line) { + this.isLeaf = true; + this.rangeLength = line.rangeLength; + this.rangeLow = line.rangeLow; + this.isLowerRange = line.isLowerRange; + this.isOOB = line.isOOB; + } else { + this.isLeaf = false; + } + } + + buildTree(line, shift) { + const bit = line.prefixCode >> shift & 1; + + if (shift <= 0) { + this.children[bit] = new HuffmanTreeNode(line); + } else { + let node = this.children[bit]; + + if (!node) { + this.children[bit] = node = new HuffmanTreeNode(null); + } + + node.buildTree(line, shift - 1); + } + } + + decodeNode(reader) { + if (this.isLeaf) { + if (this.isOOB) { + return null; + } + + const htOffset = reader.readBits(this.rangeLength); + return this.rangeLow + (this.isLowerRange ? -htOffset : htOffset); + } + + const node = this.children[reader.readBit()]; + + if (!node) { + throw new Jbig2Error("invalid Huffman data"); + } + + return node.decodeNode(reader); + } + +} + +class HuffmanTable { + constructor(lines, prefixCodesDone) { + if (!prefixCodesDone) { + this.assignPrefixCodes(lines); + } + + this.rootNode = new HuffmanTreeNode(null); + + for (let i = 0, ii = lines.length; i < ii; i++) { + const line = lines[i]; + + if (line.prefixLength > 0) { + this.rootNode.buildTree(line, line.prefixLength - 1); + } + } + } + + decode(reader) { + return this.rootNode.decodeNode(reader); + } + + assignPrefixCodes(lines) { + const linesLength = lines.length; + let prefixLengthMax = 0; + + for (let i = 0; i < linesLength; i++) { + prefixLengthMax = Math.max(prefixLengthMax, lines[i].prefixLength); + } + + const histogram = new Uint32Array(prefixLengthMax + 1); + + for (let i = 0; i < linesLength; i++) { + histogram[lines[i].prefixLength]++; + } + + let currentLength = 1, + firstCode = 0, + currentCode, + currentTemp, + line; + histogram[0] = 0; + + while (currentLength <= prefixLengthMax) { + firstCode = firstCode + histogram[currentLength - 1] << 1; + currentCode = firstCode; + currentTemp = 0; + + while (currentTemp < linesLength) { + line = lines[currentTemp]; + + if (line.prefixLength === currentLength) { + line.prefixCode = currentCode; + currentCode++; + } + + currentTemp++; + } + + currentLength++; + } + } + +} + +function decodeTablesSegment(data, start, end) { + const flags = data[start]; + const lowestValue = (0, _core_utils.readUint32)(data, start + 1) & 0xffffffff; + const highestValue = (0, _core_utils.readUint32)(data, start + 5) & 0xffffffff; + const reader = new Reader(data, start + 9, end); + const prefixSizeBits = (flags >> 1 & 7) + 1; + const rangeSizeBits = (flags >> 4 & 7) + 1; + const lines = []; + let prefixLength, + rangeLength, + currentRangeLow = lowestValue; + + do { + prefixLength = reader.readBits(prefixSizeBits); + rangeLength = reader.readBits(rangeSizeBits); + lines.push(new HuffmanLine([currentRangeLow, prefixLength, rangeLength, 0])); + currentRangeLow += 1 << rangeLength; + } while (currentRangeLow < highestValue); + + prefixLength = reader.readBits(prefixSizeBits); + lines.push(new HuffmanLine([lowestValue - 1, prefixLength, 32, 0, "lower"])); + prefixLength = reader.readBits(prefixSizeBits); + lines.push(new HuffmanLine([highestValue, prefixLength, 32, 0])); + + if (flags & 1) { + prefixLength = reader.readBits(prefixSizeBits); + lines.push(new HuffmanLine([prefixLength, 0])); + } + + return new HuffmanTable(lines, false); +} + +const standardTablesCache = {}; + +function getStandardTable(number) { + let table = standardTablesCache[number]; + + if (table) { + return table; + } + + let lines; + + switch (number) { + case 1: + lines = [[0, 1, 4, 0x0], [16, 2, 8, 0x2], [272, 3, 16, 0x6], [65808, 3, 32, 0x7]]; + break; + + case 2: + lines = [[0, 1, 0, 0x0], [1, 2, 0, 0x2], [2, 3, 0, 0x6], [3, 4, 3, 0xe], [11, 5, 6, 0x1e], [75, 6, 32, 0x3e], [6, 0x3f]]; + break; + + case 3: + lines = [[-256, 8, 8, 0xfe], [0, 1, 0, 0x0], [1, 2, 0, 0x2], [2, 3, 0, 0x6], [3, 4, 3, 0xe], [11, 5, 6, 0x1e], [-257, 8, 32, 0xff, "lower"], [75, 7, 32, 0x7e], [6, 0x3e]]; + break; + + case 4: + lines = [[1, 1, 0, 0x0], [2, 2, 0, 0x2], [3, 3, 0, 0x6], [4, 4, 3, 0xe], [12, 5, 6, 0x1e], [76, 5, 32, 0x1f]]; + break; + + case 5: + lines = [[-255, 7, 8, 0x7e], [1, 1, 0, 0x0], [2, 2, 0, 0x2], [3, 3, 0, 0x6], [4, 4, 3, 0xe], [12, 5, 6, 0x1e], [-256, 7, 32, 0x7f, "lower"], [76, 6, 32, 0x3e]]; + break; + + case 6: + lines = [[-2048, 5, 10, 0x1c], [-1024, 4, 9, 0x8], [-512, 4, 8, 0x9], [-256, 4, 7, 0xa], [-128, 5, 6, 0x1d], [-64, 5, 5, 0x1e], [-32, 4, 5, 0xb], [0, 2, 7, 0x0], [128, 3, 7, 0x2], [256, 3, 8, 0x3], [512, 4, 9, 0xc], [1024, 4, 10, 0xd], [-2049, 6, 32, 0x3e, "lower"], [2048, 6, 32, 0x3f]]; + break; + + case 7: + lines = [[-1024, 4, 9, 0x8], [-512, 3, 8, 0x0], [-256, 4, 7, 0x9], [-128, 5, 6, 0x1a], [-64, 5, 5, 0x1b], [-32, 4, 5, 0xa], [0, 4, 5, 0xb], [32, 5, 5, 0x1c], [64, 5, 6, 0x1d], [128, 4, 7, 0xc], [256, 3, 8, 0x1], [512, 3, 9, 0x2], [1024, 3, 10, 0x3], [-1025, 5, 32, 0x1e, "lower"], [2048, 5, 32, 0x1f]]; + break; + + case 8: + lines = [[-15, 8, 3, 0xfc], [-7, 9, 1, 0x1fc], [-5, 8, 1, 0xfd], [-3, 9, 0, 0x1fd], [-2, 7, 0, 0x7c], [-1, 4, 0, 0xa], [0, 2, 1, 0x0], [2, 5, 0, 0x1a], [3, 6, 0, 0x3a], [4, 3, 4, 0x4], [20, 6, 1, 0x3b], [22, 4, 4, 0xb], [38, 4, 5, 0xc], [70, 5, 6, 0x1b], [134, 5, 7, 0x1c], [262, 6, 7, 0x3c], [390, 7, 8, 0x7d], [646, 6, 10, 0x3d], [-16, 9, 32, 0x1fe, "lower"], [1670, 9, 32, 0x1ff], [2, 0x1]]; + break; + + case 9: + lines = [[-31, 8, 4, 0xfc], [-15, 9, 2, 0x1fc], [-11, 8, 2, 0xfd], [-7, 9, 1, 0x1fd], [-5, 7, 1, 0x7c], [-3, 4, 1, 0xa], [-1, 3, 1, 0x2], [1, 3, 1, 0x3], [3, 5, 1, 0x1a], [5, 6, 1, 0x3a], [7, 3, 5, 0x4], [39, 6, 2, 0x3b], [43, 4, 5, 0xb], [75, 4, 6, 0xc], [139, 5, 7, 0x1b], [267, 5, 8, 0x1c], [523, 6, 8, 0x3c], [779, 7, 9, 0x7d], [1291, 6, 11, 0x3d], [-32, 9, 32, 0x1fe, "lower"], [3339, 9, 32, 0x1ff], [2, 0x0]]; + break; + + case 10: + lines = [[-21, 7, 4, 0x7a], [-5, 8, 0, 0xfc], [-4, 7, 0, 0x7b], [-3, 5, 0, 0x18], [-2, 2, 2, 0x0], [2, 5, 0, 0x19], [3, 6, 0, 0x36], [4, 7, 0, 0x7c], [5, 8, 0, 0xfd], [6, 2, 6, 0x1], [70, 5, 5, 0x1a], [102, 6, 5, 0x37], [134, 6, 6, 0x38], [198, 6, 7, 0x39], [326, 6, 8, 0x3a], [582, 6, 9, 0x3b], [1094, 6, 10, 0x3c], [2118, 7, 11, 0x7d], [-22, 8, 32, 0xfe, "lower"], [4166, 8, 32, 0xff], [2, 0x2]]; + break; + + case 11: + lines = [[1, 1, 0, 0x0], [2, 2, 1, 0x2], [4, 4, 0, 0xc], [5, 4, 1, 0xd], [7, 5, 1, 0x1c], [9, 5, 2, 0x1d], [13, 6, 2, 0x3c], [17, 7, 2, 0x7a], [21, 7, 3, 0x7b], [29, 7, 4, 0x7c], [45, 7, 5, 0x7d], [77, 7, 6, 0x7e], [141, 7, 32, 0x7f]]; + break; + + case 12: + lines = [[1, 1, 0, 0x0], [2, 2, 0, 0x2], [3, 3, 1, 0x6], [5, 5, 0, 0x1c], [6, 5, 1, 0x1d], [8, 6, 1, 0x3c], [10, 7, 0, 0x7a], [11, 7, 1, 0x7b], [13, 7, 2, 0x7c], [17, 7, 3, 0x7d], [25, 7, 4, 0x7e], [41, 8, 5, 0xfe], [73, 8, 32, 0xff]]; + break; + + case 13: + lines = [[1, 1, 0, 0x0], [2, 3, 0, 0x4], [3, 4, 0, 0xc], [4, 5, 0, 0x1c], [5, 4, 1, 0xd], [7, 3, 3, 0x5], [15, 6, 1, 0x3a], [17, 6, 2, 0x3b], [21, 6, 3, 0x3c], [29, 6, 4, 0x3d], [45, 6, 5, 0x3e], [77, 7, 6, 0x7e], [141, 7, 32, 0x7f]]; + break; + + case 14: + lines = [[-2, 3, 0, 0x4], [-1, 3, 0, 0x5], [0, 1, 0, 0x0], [1, 3, 0, 0x6], [2, 3, 0, 0x7]]; + break; + + case 15: + lines = [[-24, 7, 4, 0x7c], [-8, 6, 2, 0x3c], [-4, 5, 1, 0x1c], [-2, 4, 0, 0xc], [-1, 3, 0, 0x4], [0, 1, 0, 0x0], [1, 3, 0, 0x5], [2, 4, 0, 0xd], [3, 5, 1, 0x1d], [5, 6, 2, 0x3d], [9, 7, 4, 0x7d], [-25, 7, 32, 0x7e, "lower"], [25, 7, 32, 0x7f]]; + break; + + default: + throw new Jbig2Error(`standard table B.${number} does not exist`); + } + + for (let i = 0, ii = lines.length; i < ii; i++) { + lines[i] = new HuffmanLine(lines[i]); + } + + table = new HuffmanTable(lines, true); + standardTablesCache[number] = table; + return table; +} + +class Reader { + constructor(data, start, end) { + this.data = data; + this.start = start; + this.end = end; + this.position = start; + this.shift = -1; + this.currentByte = 0; + } + + readBit() { + if (this.shift < 0) { + if (this.position >= this.end) { + throw new Jbig2Error("end of data while reading bit"); + } + + this.currentByte = this.data[this.position++]; + this.shift = 7; + } + + const bit = this.currentByte >> this.shift & 1; + this.shift--; + return bit; + } + + readBits(numBits) { + let result = 0, + i; + + for (i = numBits - 1; i >= 0; i--) { + result |= this.readBit() << i; + } + + return result; + } + + byteAlign() { + this.shift = -1; + } + + next() { + if (this.position >= this.end) { + return -1; + } + + return this.data[this.position++]; + } + +} + +function getCustomHuffmanTable(index, referredTo, customTables) { + let currentIndex = 0; + + for (let i = 0, ii = referredTo.length; i < ii; i++) { + const table = customTables[referredTo[i]]; + + if (table) { + if (index === currentIndex) { + return table; + } + + currentIndex++; + } + } + + throw new Jbig2Error("can't find custom Huffman table"); +} + +function getTextRegionHuffmanTables(textRegion, referredTo, customTables, numberOfSymbols, reader) { + const codes = []; + + for (let i = 0; i <= 34; i++) { + const codeLength = reader.readBits(4); + codes.push(new HuffmanLine([i, codeLength, 0, 0])); + } + + const runCodesTable = new HuffmanTable(codes, false); + codes.length = 0; + + for (let i = 0; i < numberOfSymbols;) { + const codeLength = runCodesTable.decode(reader); + + if (codeLength >= 32) { + let repeatedLength, numberOfRepeats, j; + + switch (codeLength) { + case 32: + if (i === 0) { + throw new Jbig2Error("no previous value in symbol ID table"); + } + + numberOfRepeats = reader.readBits(2) + 3; + repeatedLength = codes[i - 1].prefixLength; + break; + + case 33: + numberOfRepeats = reader.readBits(3) + 3; + repeatedLength = 0; + break; + + case 34: + numberOfRepeats = reader.readBits(7) + 11; + repeatedLength = 0; + break; + + default: + throw new Jbig2Error("invalid code length in symbol ID table"); + } + + for (j = 0; j < numberOfRepeats; j++) { + codes.push(new HuffmanLine([i, repeatedLength, 0, 0])); + i++; + } + } else { + codes.push(new HuffmanLine([i, codeLength, 0, 0])); + i++; + } + } + + reader.byteAlign(); + const symbolIDTable = new HuffmanTable(codes, false); + let customIndex = 0, + tableFirstS, + tableDeltaS, + tableDeltaT; + + switch (textRegion.huffmanFS) { + case 0: + case 1: + tableFirstS = getStandardTable(textRegion.huffmanFS + 6); + break; + + case 3: + tableFirstS = getCustomHuffmanTable(customIndex, referredTo, customTables); + customIndex++; + break; + + default: + throw new Jbig2Error("invalid Huffman FS selector"); + } + + switch (textRegion.huffmanDS) { + case 0: + case 1: + case 2: + tableDeltaS = getStandardTable(textRegion.huffmanDS + 8); + break; + + case 3: + tableDeltaS = getCustomHuffmanTable(customIndex, referredTo, customTables); + customIndex++; + break; + + default: + throw new Jbig2Error("invalid Huffman DS selector"); + } + + switch (textRegion.huffmanDT) { + case 0: + case 1: + case 2: + tableDeltaT = getStandardTable(textRegion.huffmanDT + 11); + break; + + case 3: + tableDeltaT = getCustomHuffmanTable(customIndex, referredTo, customTables); + customIndex++; + break; + + default: + throw new Jbig2Error("invalid Huffman DT selector"); + } + + if (textRegion.refinement) { + throw new Jbig2Error("refinement with Huffman is not supported"); + } + + return { + symbolIDTable, + tableFirstS, + tableDeltaS, + tableDeltaT + }; +} + +function getSymbolDictionaryHuffmanTables(dictionary, referredTo, customTables) { + let customIndex = 0, + tableDeltaHeight, + tableDeltaWidth; + + switch (dictionary.huffmanDHSelector) { + case 0: + case 1: + tableDeltaHeight = getStandardTable(dictionary.huffmanDHSelector + 4); + break; + + case 3: + tableDeltaHeight = getCustomHuffmanTable(customIndex, referredTo, customTables); + customIndex++; + break; + + default: + throw new Jbig2Error("invalid Huffman DH selector"); + } + + switch (dictionary.huffmanDWSelector) { + case 0: + case 1: + tableDeltaWidth = getStandardTable(dictionary.huffmanDWSelector + 2); + break; + + case 3: + tableDeltaWidth = getCustomHuffmanTable(customIndex, referredTo, customTables); + customIndex++; + break; + + default: + throw new Jbig2Error("invalid Huffman DW selector"); + } + + let tableBitmapSize, tableAggregateInstances; + + if (dictionary.bitmapSizeSelector) { + tableBitmapSize = getCustomHuffmanTable(customIndex, referredTo, customTables); + customIndex++; + } else { + tableBitmapSize = getStandardTable(1); + } + + if (dictionary.aggregationInstancesSelector) { + tableAggregateInstances = getCustomHuffmanTable(customIndex, referredTo, customTables); + } else { + tableAggregateInstances = getStandardTable(1); + } + + return { + tableDeltaHeight, + tableDeltaWidth, + tableBitmapSize, + tableAggregateInstances + }; +} + +function readUncompressedBitmap(reader, width, height) { + const bitmap = []; + + for (let y = 0; y < height; y++) { + const row = new Uint8Array(width); + bitmap.push(row); + + for (let x = 0; x < width; x++) { + row[x] = reader.readBit(); + } + + reader.byteAlign(); + } + + return bitmap; +} + +function decodeMMRBitmap(input, width, height, endOfBlock) { + const params = { + K: -1, + Columns: width, + Rows: height, + BlackIs1: true, + EndOfBlock: endOfBlock + }; + const decoder = new _ccitt.CCITTFaxDecoder(input, params); + const bitmap = []; + let currentByte, + eof = false; + + for (let y = 0; y < height; y++) { + const row = new Uint8Array(width); + bitmap.push(row); + let shift = -1; + + for (let x = 0; x < width; x++) { + if (shift < 0) { + currentByte = decoder.readNextChar(); + + if (currentByte === -1) { + currentByte = 0; + eof = true; + } + + shift = 7; + } + + row[x] = currentByte >> shift & 1; + shift--; + } + } + + if (endOfBlock && !eof) { + const lookForEOFLimit = 5; + + for (let i = 0; i < lookForEOFLimit; i++) { + if (decoder.readNextChar() === -1) { + break; + } + } + } + + return bitmap; +} + +class Jbig2Image { + parseChunks(chunks) { + return parseJbig2Chunks(chunks); + } + + parse(data) { + throw new Error("Not implemented: Jbig2Image.parse"); + } + +} + +exports.Jbig2Image = Jbig2Image; + +/***/ }), +/* 26 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ArithmeticDecoder = void 0; +const QeTable = [{ + qe: 0x5601, + nmps: 1, + nlps: 1, + switchFlag: 1 +}, { + qe: 0x3401, + nmps: 2, + nlps: 6, + switchFlag: 0 +}, { + qe: 0x1801, + nmps: 3, + nlps: 9, + switchFlag: 0 +}, { + qe: 0x0ac1, + nmps: 4, + nlps: 12, + switchFlag: 0 +}, { + qe: 0x0521, + nmps: 5, + nlps: 29, + switchFlag: 0 +}, { + qe: 0x0221, + nmps: 38, + nlps: 33, + switchFlag: 0 +}, { + qe: 0x5601, + nmps: 7, + nlps: 6, + switchFlag: 1 +}, { + qe: 0x5401, + nmps: 8, + nlps: 14, + switchFlag: 0 +}, { + qe: 0x4801, + nmps: 9, + nlps: 14, + switchFlag: 0 +}, { + qe: 0x3801, + nmps: 10, + nlps: 14, + switchFlag: 0 +}, { + qe: 0x3001, + nmps: 11, + nlps: 17, + switchFlag: 0 +}, { + qe: 0x2401, + nmps: 12, + nlps: 18, + switchFlag: 0 +}, { + qe: 0x1c01, + nmps: 13, + nlps: 20, + switchFlag: 0 +}, { + qe: 0x1601, + nmps: 29, + nlps: 21, + switchFlag: 0 +}, { + qe: 0x5601, + nmps: 15, + nlps: 14, + switchFlag: 1 +}, { + qe: 0x5401, + nmps: 16, + nlps: 14, + switchFlag: 0 +}, { + qe: 0x5101, + nmps: 17, + nlps: 15, + switchFlag: 0 +}, { + qe: 0x4801, + nmps: 18, + nlps: 16, + switchFlag: 0 +}, { + qe: 0x3801, + nmps: 19, + nlps: 17, + switchFlag: 0 +}, { + qe: 0x3401, + nmps: 20, + nlps: 18, + switchFlag: 0 +}, { + qe: 0x3001, + nmps: 21, + nlps: 19, + switchFlag: 0 +}, { + qe: 0x2801, + nmps: 22, + nlps: 19, + switchFlag: 0 +}, { + qe: 0x2401, + nmps: 23, + nlps: 20, + switchFlag: 0 +}, { + qe: 0x2201, + nmps: 24, + nlps: 21, + switchFlag: 0 +}, { + qe: 0x1c01, + nmps: 25, + nlps: 22, + switchFlag: 0 +}, { + qe: 0x1801, + nmps: 26, + nlps: 23, + switchFlag: 0 +}, { + qe: 0x1601, + nmps: 27, + nlps: 24, + switchFlag: 0 +}, { + qe: 0x1401, + nmps: 28, + nlps: 25, + switchFlag: 0 +}, { + qe: 0x1201, + nmps: 29, + nlps: 26, + switchFlag: 0 +}, { + qe: 0x1101, + nmps: 30, + nlps: 27, + switchFlag: 0 +}, { + qe: 0x0ac1, + nmps: 31, + nlps: 28, + switchFlag: 0 +}, { + qe: 0x09c1, + nmps: 32, + nlps: 29, + switchFlag: 0 +}, { + qe: 0x08a1, + nmps: 33, + nlps: 30, + switchFlag: 0 +}, { + qe: 0x0521, + nmps: 34, + nlps: 31, + switchFlag: 0 +}, { + qe: 0x0441, + nmps: 35, + nlps: 32, + switchFlag: 0 +}, { + qe: 0x02a1, + nmps: 36, + nlps: 33, + switchFlag: 0 +}, { + qe: 0x0221, + nmps: 37, + nlps: 34, + switchFlag: 0 +}, { + qe: 0x0141, + nmps: 38, + nlps: 35, + switchFlag: 0 +}, { + qe: 0x0111, + nmps: 39, + nlps: 36, + switchFlag: 0 +}, { + qe: 0x0085, + nmps: 40, + nlps: 37, + switchFlag: 0 +}, { + qe: 0x0049, + nmps: 41, + nlps: 38, + switchFlag: 0 +}, { + qe: 0x0025, + nmps: 42, + nlps: 39, + switchFlag: 0 +}, { + qe: 0x0015, + nmps: 43, + nlps: 40, + switchFlag: 0 +}, { + qe: 0x0009, + nmps: 44, + nlps: 41, + switchFlag: 0 +}, { + qe: 0x0005, + nmps: 45, + nlps: 42, + switchFlag: 0 +}, { + qe: 0x0001, + nmps: 45, + nlps: 43, + switchFlag: 0 +}, { + qe: 0x5601, + nmps: 46, + nlps: 46, + switchFlag: 0 +}]; + +class ArithmeticDecoder { + constructor(data, start, end) { + this.data = data; + this.bp = start; + this.dataEnd = end; + this.chigh = data[start]; + this.clow = 0; + this.byteIn(); + this.chigh = this.chigh << 7 & 0xffff | this.clow >> 9 & 0x7f; + this.clow = this.clow << 7 & 0xffff; + this.ct -= 7; + this.a = 0x8000; + } + + byteIn() { + const data = this.data; + let bp = this.bp; + + if (data[bp] === 0xff) { + if (data[bp + 1] > 0x8f) { + this.clow += 0xff00; + this.ct = 8; + } else { + bp++; + this.clow += data[bp] << 9; + this.ct = 7; + this.bp = bp; + } + } else { + bp++; + this.clow += bp < this.dataEnd ? data[bp] << 8 : 0xff00; + this.ct = 8; + this.bp = bp; + } + + if (this.clow > 0xffff) { + this.chigh += this.clow >> 16; + this.clow &= 0xffff; + } + } + + readBit(contexts, pos) { + let cx_index = contexts[pos] >> 1, + cx_mps = contexts[pos] & 1; + const qeTableIcx = QeTable[cx_index]; + const qeIcx = qeTableIcx.qe; + let d; + let a = this.a - qeIcx; + + if (this.chigh < qeIcx) { + if (a < qeIcx) { + a = qeIcx; + d = cx_mps; + cx_index = qeTableIcx.nmps; + } else { + a = qeIcx; + d = 1 ^ cx_mps; + + if (qeTableIcx.switchFlag === 1) { + cx_mps = d; + } + + cx_index = qeTableIcx.nlps; + } + } else { + this.chigh -= qeIcx; + + if ((a & 0x8000) !== 0) { + this.a = a; + return cx_mps; + } + + if (a < qeIcx) { + d = 1 ^ cx_mps; + + if (qeTableIcx.switchFlag === 1) { + cx_mps = d; + } + + cx_index = qeTableIcx.nlps; + } else { + d = cx_mps; + cx_index = qeTableIcx.nmps; + } + } + + do { + if (this.ct === 0) { + this.byteIn(); + } + + a <<= 1; + this.chigh = this.chigh << 1 & 0xffff | this.clow >> 15 & 1; + this.clow = this.clow << 1 & 0xffff; + this.ct--; + } while ((a & 0x8000) === 0); + + this.a = a; + contexts[pos] = cx_index << 1 | cx_mps; + return d; + } + +} + +exports.ArithmeticDecoder = ArithmeticDecoder; + +/***/ }), +/* 27 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.JpegStream = void 0; + +var _decode_stream = __w_pdfjs_require__(19); + +var _primitives = __w_pdfjs_require__(5); + +var _jpg = __w_pdfjs_require__(28); + +var _util = __w_pdfjs_require__(2); + +class JpegStream extends _decode_stream.DecodeStream { + constructor(stream, maybeLength, params) { + let ch; + + while ((ch = stream.getByte()) !== -1) { + if (ch === 0xff) { + stream.skip(-1); + break; + } + } + + super(maybeLength); + this.stream = stream; + this.dict = stream.dict; + this.maybeLength = maybeLength; + this.params = params; + } + + get bytes() { + return (0, _util.shadow)(this, "bytes", this.stream.getBytes(this.maybeLength)); + } + + ensureBuffer(requested) {} + + readBlock() { + if (this.eof) { + return; + } + + const jpegOptions = { + decodeTransform: undefined, + colorTransform: undefined + }; + const decodeArr = this.dict.getArray("D", "Decode"); + + if (this.forceRGB && Array.isArray(decodeArr)) { + const bitsPerComponent = this.dict.get("BPC", "BitsPerComponent") || 8; + const decodeArrLength = decodeArr.length; + const transform = new Int32Array(decodeArrLength); + let transformNeeded = false; + const maxValue = (1 << bitsPerComponent) - 1; + + for (let i = 0; i < decodeArrLength; i += 2) { + transform[i] = (decodeArr[i + 1] - decodeArr[i]) * 256 | 0; + transform[i + 1] = decodeArr[i] * maxValue | 0; + + if (transform[i] !== 256 || transform[i + 1] !== 0) { + transformNeeded = true; + } + } + + if (transformNeeded) { + jpegOptions.decodeTransform = transform; + } + } + + if (this.params instanceof _primitives.Dict) { + const colorTransform = this.params.get("ColorTransform"); + + if (Number.isInteger(colorTransform)) { + jpegOptions.colorTransform = colorTransform; + } + } + + const jpegImage = new _jpg.JpegImage(jpegOptions); + jpegImage.parse(this.bytes); + const data = jpegImage.getData({ + width: this.drawWidth, + height: this.drawHeight, + forceRGB: this.forceRGB, + isSourcePDF: true + }); + this.buffer = data; + this.bufferLength = data.length; + this.eof = true; + } + +} + +exports.JpegStream = JpegStream; + +/***/ }), +/* 28 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.JpegImage = void 0; + +var _util = __w_pdfjs_require__(2); + +var _core_utils = __w_pdfjs_require__(6); + +class JpegError extends _util.BaseException { + constructor(msg) { + super(`JPEG error: ${msg}`, "JpegError"); + } + +} + +class DNLMarkerError extends _util.BaseException { + constructor(message, scanLines) { + super(message, "DNLMarkerError"); + this.scanLines = scanLines; + } + +} + +class EOIMarkerError extends _util.BaseException { + constructor(msg) { + super(msg, "EOIMarkerError"); + } + +} + +const dctZigZag = new Uint8Array([0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63]); +const dctCos1 = 4017; +const dctSin1 = 799; +const dctCos3 = 3406; +const dctSin3 = 2276; +const dctCos6 = 1567; +const dctSin6 = 3784; +const dctSqrt2 = 5793; +const dctSqrt1d2 = 2896; + +function buildHuffmanTable(codeLengths, values) { + let k = 0, + i, + j, + length = 16; + + while (length > 0 && !codeLengths[length - 1]) { + length--; + } + + const code = [{ + children: [], + index: 0 + }]; + let p = code[0], + q; + + for (i = 0; i < length; i++) { + for (j = 0; j < codeLengths[i]; j++) { + p = code.pop(); + p.children[p.index] = values[k]; + + while (p.index > 0) { + p = code.pop(); + } + + p.index++; + code.push(p); + + while (code.length <= i) { + code.push(q = { + children: [], + index: 0 + }); + p.children[p.index] = q.children; + p = q; + } + + k++; + } + + if (i + 1 < length) { + code.push(q = { + children: [], + index: 0 + }); + p.children[p.index] = q.children; + p = q; + } + } + + return code[0].children; +} + +function getBlockBufferOffset(component, row, col) { + return 64 * ((component.blocksPerLine + 1) * row + col); +} + +function decodeScan(data, offset, frame, components, resetInterval, spectralStart, spectralEnd, successivePrev, successive, parseDNLMarker = false) { + const mcusPerLine = frame.mcusPerLine; + const progressive = frame.progressive; + const startOffset = offset; + let bitsData = 0, + bitsCount = 0; + + function readBit() { + if (bitsCount > 0) { + bitsCount--; + return bitsData >> bitsCount & 1; + } + + bitsData = data[offset++]; + + if (bitsData === 0xff) { + const nextByte = data[offset++]; + + if (nextByte) { + if (nextByte === 0xdc && parseDNLMarker) { + offset += 2; + const scanLines = (0, _core_utils.readUint16)(data, offset); + offset += 2; + + if (scanLines > 0 && scanLines !== frame.scanLines) { + throw new DNLMarkerError("Found DNL marker (0xFFDC) while parsing scan data", scanLines); + } + } else if (nextByte === 0xd9) { + if (parseDNLMarker) { + const maybeScanLines = blockRow * (frame.precision === 8 ? 8 : 0); + + if (maybeScanLines > 0 && Math.round(frame.scanLines / maybeScanLines) >= 10) { + throw new DNLMarkerError("Found EOI marker (0xFFD9) while parsing scan data, " + "possibly caused by incorrect `scanLines` parameter", maybeScanLines); + } + } + + throw new EOIMarkerError("Found EOI marker (0xFFD9) while parsing scan data"); + } + + throw new JpegError(`unexpected marker ${(bitsData << 8 | nextByte).toString(16)}`); + } + } + + bitsCount = 7; + return bitsData >>> 7; + } + + function decodeHuffman(tree) { + let node = tree; + + while (true) { + node = node[readBit()]; + + switch (typeof node) { + case "number": + return node; + + case "object": + continue; + } + + throw new JpegError("invalid huffman sequence"); + } + } + + function receive(length) { + let n = 0; + + while (length > 0) { + n = n << 1 | readBit(); + length--; + } + + return n; + } + + function receiveAndExtend(length) { + if (length === 1) { + return readBit() === 1 ? 1 : -1; + } + + const n = receive(length); + + if (n >= 1 << length - 1) { + return n; + } + + return n + (-1 << length) + 1; + } + + function decodeBaseline(component, blockOffset) { + const t = decodeHuffman(component.huffmanTableDC); + const diff = t === 0 ? 0 : receiveAndExtend(t); + component.blockData[blockOffset] = component.pred += diff; + let k = 1; + + while (k < 64) { + const rs = decodeHuffman(component.huffmanTableAC); + const s = rs & 15, + r = rs >> 4; + + if (s === 0) { + if (r < 15) { + break; + } + + k += 16; + continue; + } + + k += r; + const z = dctZigZag[k]; + component.blockData[blockOffset + z] = receiveAndExtend(s); + k++; + } + } + + function decodeDCFirst(component, blockOffset) { + const t = decodeHuffman(component.huffmanTableDC); + const diff = t === 0 ? 0 : receiveAndExtend(t) << successive; + component.blockData[blockOffset] = component.pred += diff; + } + + function decodeDCSuccessive(component, blockOffset) { + component.blockData[blockOffset] |= readBit() << successive; + } + + let eobrun = 0; + + function decodeACFirst(component, blockOffset) { + if (eobrun > 0) { + eobrun--; + return; + } + + let k = spectralStart; + const e = spectralEnd; + + while (k <= e) { + const rs = decodeHuffman(component.huffmanTableAC); + const s = rs & 15, + r = rs >> 4; + + if (s === 0) { + if (r < 15) { + eobrun = receive(r) + (1 << r) - 1; + break; + } + + k += 16; + continue; + } + + k += r; + const z = dctZigZag[k]; + component.blockData[blockOffset + z] = receiveAndExtend(s) * (1 << successive); + k++; + } + } + + let successiveACState = 0, + successiveACNextValue; + + function decodeACSuccessive(component, blockOffset) { + let k = spectralStart; + const e = spectralEnd; + let r = 0; + let s; + let rs; + + while (k <= e) { + const offsetZ = blockOffset + dctZigZag[k]; + const sign = component.blockData[offsetZ] < 0 ? -1 : 1; + + switch (successiveACState) { + case 0: + rs = decodeHuffman(component.huffmanTableAC); + s = rs & 15; + r = rs >> 4; + + if (s === 0) { + if (r < 15) { + eobrun = receive(r) + (1 << r); + successiveACState = 4; + } else { + r = 16; + successiveACState = 1; + } + } else { + if (s !== 1) { + throw new JpegError("invalid ACn encoding"); + } + + successiveACNextValue = receiveAndExtend(s); + successiveACState = r ? 2 : 3; + } + + continue; + + case 1: + case 2: + if (component.blockData[offsetZ]) { + component.blockData[offsetZ] += sign * (readBit() << successive); + } else { + r--; + + if (r === 0) { + successiveACState = successiveACState === 2 ? 3 : 0; + } + } + + break; + + case 3: + if (component.blockData[offsetZ]) { + component.blockData[offsetZ] += sign * (readBit() << successive); + } else { + component.blockData[offsetZ] = successiveACNextValue << successive; + successiveACState = 0; + } + + break; + + case 4: + if (component.blockData[offsetZ]) { + component.blockData[offsetZ] += sign * (readBit() << successive); + } + + break; + } + + k++; + } + + if (successiveACState === 4) { + eobrun--; + + if (eobrun === 0) { + successiveACState = 0; + } + } + } + + let blockRow = 0; + + function decodeMcu(component, decode, mcu, row, col) { + const mcuRow = mcu / mcusPerLine | 0; + const mcuCol = mcu % mcusPerLine; + blockRow = mcuRow * component.v + row; + const blockCol = mcuCol * component.h + col; + const blockOffset = getBlockBufferOffset(component, blockRow, blockCol); + decode(component, blockOffset); + } + + function decodeBlock(component, decode, mcu) { + blockRow = mcu / component.blocksPerLine | 0; + const blockCol = mcu % component.blocksPerLine; + const blockOffset = getBlockBufferOffset(component, blockRow, blockCol); + decode(component, blockOffset); + } + + const componentsLength = components.length; + let component, i, j, k, n; + let decodeFn; + + if (progressive) { + if (spectralStart === 0) { + decodeFn = successivePrev === 0 ? decodeDCFirst : decodeDCSuccessive; + } else { + decodeFn = successivePrev === 0 ? decodeACFirst : decodeACSuccessive; + } + } else { + decodeFn = decodeBaseline; + } + + let mcu = 0, + fileMarker; + let mcuExpected; + + if (componentsLength === 1) { + mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn; + } else { + mcuExpected = mcusPerLine * frame.mcusPerColumn; + } + + let h, v; + + while (mcu <= mcuExpected) { + const mcuToRead = resetInterval ? Math.min(mcuExpected - mcu, resetInterval) : mcuExpected; + + if (mcuToRead > 0) { + for (i = 0; i < componentsLength; i++) { + components[i].pred = 0; + } + + eobrun = 0; + + if (componentsLength === 1) { + component = components[0]; + + for (n = 0; n < mcuToRead; n++) { + decodeBlock(component, decodeFn, mcu); + mcu++; + } + } else { + for (n = 0; n < mcuToRead; n++) { + for (i = 0; i < componentsLength; i++) { + component = components[i]; + h = component.h; + v = component.v; + + for (j = 0; j < v; j++) { + for (k = 0; k < h; k++) { + decodeMcu(component, decodeFn, mcu, j, k); + } + } + } + + mcu++; + } + } + } + + bitsCount = 0; + fileMarker = findNextFileMarker(data, offset); + + if (!fileMarker) { + break; + } + + if (fileMarker.invalid) { + const partialMsg = mcuToRead > 0 ? "unexpected" : "excessive"; + (0, _util.warn)(`decodeScan - ${partialMsg} MCU data, current marker is: ${fileMarker.invalid}`); + offset = fileMarker.offset; + } + + if (fileMarker.marker >= 0xffd0 && fileMarker.marker <= 0xffd7) { + offset += 2; + } else { + break; + } + } + + return offset - startOffset; +} + +function quantizeAndInverse(component, blockBufferOffset, p) { + const qt = component.quantizationTable, + blockData = component.blockData; + let v0, v1, v2, v3, v4, v5, v6, v7; + let p0, p1, p2, p3, p4, p5, p6, p7; + let t; + + if (!qt) { + throw new JpegError("missing required Quantization Table."); + } + + for (let row = 0; row < 64; row += 8) { + p0 = blockData[blockBufferOffset + row]; + p1 = blockData[blockBufferOffset + row + 1]; + p2 = blockData[blockBufferOffset + row + 2]; + p3 = blockData[blockBufferOffset + row + 3]; + p4 = blockData[blockBufferOffset + row + 4]; + p5 = blockData[blockBufferOffset + row + 5]; + p6 = blockData[blockBufferOffset + row + 6]; + p7 = blockData[blockBufferOffset + row + 7]; + p0 *= qt[row]; + + if ((p1 | p2 | p3 | p4 | p5 | p6 | p7) === 0) { + t = dctSqrt2 * p0 + 512 >> 10; + p[row] = t; + p[row + 1] = t; + p[row + 2] = t; + p[row + 3] = t; + p[row + 4] = t; + p[row + 5] = t; + p[row + 6] = t; + p[row + 7] = t; + continue; + } + + p1 *= qt[row + 1]; + p2 *= qt[row + 2]; + p3 *= qt[row + 3]; + p4 *= qt[row + 4]; + p5 *= qt[row + 5]; + p6 *= qt[row + 6]; + p7 *= qt[row + 7]; + v0 = dctSqrt2 * p0 + 128 >> 8; + v1 = dctSqrt2 * p4 + 128 >> 8; + v2 = p2; + v3 = p6; + v4 = dctSqrt1d2 * (p1 - p7) + 128 >> 8; + v7 = dctSqrt1d2 * (p1 + p7) + 128 >> 8; + v5 = p3 << 4; + v6 = p5 << 4; + v0 = v0 + v1 + 1 >> 1; + v1 = v0 - v1; + t = v2 * dctSin6 + v3 * dctCos6 + 128 >> 8; + v2 = v2 * dctCos6 - v3 * dctSin6 + 128 >> 8; + v3 = t; + v4 = v4 + v6 + 1 >> 1; + v6 = v4 - v6; + v7 = v7 + v5 + 1 >> 1; + v5 = v7 - v5; + v0 = v0 + v3 + 1 >> 1; + v3 = v0 - v3; + v1 = v1 + v2 + 1 >> 1; + v2 = v1 - v2; + t = v4 * dctSin3 + v7 * dctCos3 + 2048 >> 12; + v4 = v4 * dctCos3 - v7 * dctSin3 + 2048 >> 12; + v7 = t; + t = v5 * dctSin1 + v6 * dctCos1 + 2048 >> 12; + v5 = v5 * dctCos1 - v6 * dctSin1 + 2048 >> 12; + v6 = t; + p[row] = v0 + v7; + p[row + 7] = v0 - v7; + p[row + 1] = v1 + v6; + p[row + 6] = v1 - v6; + p[row + 2] = v2 + v5; + p[row + 5] = v2 - v5; + p[row + 3] = v3 + v4; + p[row + 4] = v3 - v4; + } + + for (let col = 0; col < 8; ++col) { + p0 = p[col]; + p1 = p[col + 8]; + p2 = p[col + 16]; + p3 = p[col + 24]; + p4 = p[col + 32]; + p5 = p[col + 40]; + p6 = p[col + 48]; + p7 = p[col + 56]; + + if ((p1 | p2 | p3 | p4 | p5 | p6 | p7) === 0) { + t = dctSqrt2 * p0 + 8192 >> 14; + + if (t < -2040) { + t = 0; + } else if (t >= 2024) { + t = 255; + } else { + t = t + 2056 >> 4; + } + + blockData[blockBufferOffset + col] = t; + blockData[blockBufferOffset + col + 8] = t; + blockData[blockBufferOffset + col + 16] = t; + blockData[blockBufferOffset + col + 24] = t; + blockData[blockBufferOffset + col + 32] = t; + blockData[blockBufferOffset + col + 40] = t; + blockData[blockBufferOffset + col + 48] = t; + blockData[blockBufferOffset + col + 56] = t; + continue; + } + + v0 = dctSqrt2 * p0 + 2048 >> 12; + v1 = dctSqrt2 * p4 + 2048 >> 12; + v2 = p2; + v3 = p6; + v4 = dctSqrt1d2 * (p1 - p7) + 2048 >> 12; + v7 = dctSqrt1d2 * (p1 + p7) + 2048 >> 12; + v5 = p3; + v6 = p5; + v0 = (v0 + v1 + 1 >> 1) + 4112; + v1 = v0 - v1; + t = v2 * dctSin6 + v3 * dctCos6 + 2048 >> 12; + v2 = v2 * dctCos6 - v3 * dctSin6 + 2048 >> 12; + v3 = t; + v4 = v4 + v6 + 1 >> 1; + v6 = v4 - v6; + v7 = v7 + v5 + 1 >> 1; + v5 = v7 - v5; + v0 = v0 + v3 + 1 >> 1; + v3 = v0 - v3; + v1 = v1 + v2 + 1 >> 1; + v2 = v1 - v2; + t = v4 * dctSin3 + v7 * dctCos3 + 2048 >> 12; + v4 = v4 * dctCos3 - v7 * dctSin3 + 2048 >> 12; + v7 = t; + t = v5 * dctSin1 + v6 * dctCos1 + 2048 >> 12; + v5 = v5 * dctCos1 - v6 * dctSin1 + 2048 >> 12; + v6 = t; + p0 = v0 + v7; + p7 = v0 - v7; + p1 = v1 + v6; + p6 = v1 - v6; + p2 = v2 + v5; + p5 = v2 - v5; + p3 = v3 + v4; + p4 = v3 - v4; + + if (p0 < 16) { + p0 = 0; + } else if (p0 >= 4080) { + p0 = 255; + } else { + p0 >>= 4; + } + + if (p1 < 16) { + p1 = 0; + } else if (p1 >= 4080) { + p1 = 255; + } else { + p1 >>= 4; + } + + if (p2 < 16) { + p2 = 0; + } else if (p2 >= 4080) { + p2 = 255; + } else { + p2 >>= 4; + } + + if (p3 < 16) { + p3 = 0; + } else if (p3 >= 4080) { + p3 = 255; + } else { + p3 >>= 4; + } + + if (p4 < 16) { + p4 = 0; + } else if (p4 >= 4080) { + p4 = 255; + } else { + p4 >>= 4; + } + + if (p5 < 16) { + p5 = 0; + } else if (p5 >= 4080) { + p5 = 255; + } else { + p5 >>= 4; + } + + if (p6 < 16) { + p6 = 0; + } else if (p6 >= 4080) { + p6 = 255; + } else { + p6 >>= 4; + } + + if (p7 < 16) { + p7 = 0; + } else if (p7 >= 4080) { + p7 = 255; + } else { + p7 >>= 4; + } + + blockData[blockBufferOffset + col] = p0; + blockData[blockBufferOffset + col + 8] = p1; + blockData[blockBufferOffset + col + 16] = p2; + blockData[blockBufferOffset + col + 24] = p3; + blockData[blockBufferOffset + col + 32] = p4; + blockData[blockBufferOffset + col + 40] = p5; + blockData[blockBufferOffset + col + 48] = p6; + blockData[blockBufferOffset + col + 56] = p7; + } +} + +function buildComponentData(frame, component) { + const blocksPerLine = component.blocksPerLine; + const blocksPerColumn = component.blocksPerColumn; + const computationBuffer = new Int16Array(64); + + for (let blockRow = 0; blockRow < blocksPerColumn; blockRow++) { + for (let blockCol = 0; blockCol < blocksPerLine; blockCol++) { + const offset = getBlockBufferOffset(component, blockRow, blockCol); + quantizeAndInverse(component, offset, computationBuffer); + } + } + + return component.blockData; +} + +function findNextFileMarker(data, currentPos, startPos = currentPos) { + const maxPos = data.length - 1; + let newPos = startPos < currentPos ? startPos : currentPos; + + if (currentPos >= maxPos) { + return null; + } + + const currentMarker = (0, _core_utils.readUint16)(data, currentPos); + + if (currentMarker >= 0xffc0 && currentMarker <= 0xfffe) { + return { + invalid: null, + marker: currentMarker, + offset: currentPos + }; + } + + let newMarker = (0, _core_utils.readUint16)(data, newPos); + + while (!(newMarker >= 0xffc0 && newMarker <= 0xfffe)) { + if (++newPos >= maxPos) { + return null; + } + + newMarker = (0, _core_utils.readUint16)(data, newPos); + } + + return { + invalid: currentMarker.toString(16), + marker: newMarker, + offset: newPos + }; +} + +class JpegImage { + constructor({ + decodeTransform = null, + colorTransform = -1 + } = {}) { + this._decodeTransform = decodeTransform; + this._colorTransform = colorTransform; + } + + parse(data, { + dnlScanLines = null + } = {}) { + function readDataBlock() { + const length = (0, _core_utils.readUint16)(data, offset); + offset += 2; + let endOffset = offset + length - 2; + const fileMarker = findNextFileMarker(data, endOffset, offset); + + if (fileMarker && fileMarker.invalid) { + (0, _util.warn)("readDataBlock - incorrect length, current marker is: " + fileMarker.invalid); + endOffset = fileMarker.offset; + } + + const array = data.subarray(offset, endOffset); + offset += array.length; + return array; + } + + function prepareComponents(frame) { + const mcusPerLine = Math.ceil(frame.samplesPerLine / 8 / frame.maxH); + const mcusPerColumn = Math.ceil(frame.scanLines / 8 / frame.maxV); + + for (let i = 0, ii = frame.components.length; i < ii; i++) { + const component = frame.components[i]; + const blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) * component.h / frame.maxH); + const blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) * component.v / frame.maxV); + const blocksPerLineForMcu = mcusPerLine * component.h; + const blocksPerColumnForMcu = mcusPerColumn * component.v; + const blocksBufferSize = 64 * blocksPerColumnForMcu * (blocksPerLineForMcu + 1); + component.blockData = new Int16Array(blocksBufferSize); + component.blocksPerLine = blocksPerLine; + component.blocksPerColumn = blocksPerColumn; + } + + frame.mcusPerLine = mcusPerLine; + frame.mcusPerColumn = mcusPerColumn; + } + + let offset = 0; + let jfif = null; + let adobe = null; + let frame, resetInterval; + let numSOSMarkers = 0; + const quantizationTables = []; + const huffmanTablesAC = [], + huffmanTablesDC = []; + let fileMarker = (0, _core_utils.readUint16)(data, offset); + offset += 2; + + if (fileMarker !== 0xffd8) { + throw new JpegError("SOI not found"); + } + + fileMarker = (0, _core_utils.readUint16)(data, offset); + offset += 2; + + markerLoop: while (fileMarker !== 0xffd9) { + let i, j, l; + + switch (fileMarker) { + case 0xffe0: + case 0xffe1: + case 0xffe2: + case 0xffe3: + case 0xffe4: + case 0xffe5: + case 0xffe6: + case 0xffe7: + case 0xffe8: + case 0xffe9: + case 0xffea: + case 0xffeb: + case 0xffec: + case 0xffed: + case 0xffee: + case 0xffef: + case 0xfffe: + const appData = readDataBlock(); + + if (fileMarker === 0xffe0) { + if (appData[0] === 0x4a && appData[1] === 0x46 && appData[2] === 0x49 && appData[3] === 0x46 && appData[4] === 0) { + jfif = { + version: { + major: appData[5], + minor: appData[6] + }, + densityUnits: appData[7], + xDensity: appData[8] << 8 | appData[9], + yDensity: appData[10] << 8 | appData[11], + thumbWidth: appData[12], + thumbHeight: appData[13], + thumbData: appData.subarray(14, 14 + 3 * appData[12] * appData[13]) + }; + } + } + + if (fileMarker === 0xffee) { + if (appData[0] === 0x41 && appData[1] === 0x64 && appData[2] === 0x6f && appData[3] === 0x62 && appData[4] === 0x65) { + adobe = { + version: appData[5] << 8 | appData[6], + flags0: appData[7] << 8 | appData[8], + flags1: appData[9] << 8 | appData[10], + transformCode: appData[11] + }; + } + } + + break; + + case 0xffdb: + const quantizationTablesLength = (0, _core_utils.readUint16)(data, offset); + offset += 2; + const quantizationTablesEnd = quantizationTablesLength + offset - 2; + let z; + + while (offset < quantizationTablesEnd) { + const quantizationTableSpec = data[offset++]; + const tableData = new Uint16Array(64); + + if (quantizationTableSpec >> 4 === 0) { + for (j = 0; j < 64; j++) { + z = dctZigZag[j]; + tableData[z] = data[offset++]; + } + } else if (quantizationTableSpec >> 4 === 1) { + for (j = 0; j < 64; j++) { + z = dctZigZag[j]; + tableData[z] = (0, _core_utils.readUint16)(data, offset); + offset += 2; + } + } else { + throw new JpegError("DQT - invalid table spec"); + } + + quantizationTables[quantizationTableSpec & 15] = tableData; + } + + break; + + case 0xffc0: + case 0xffc1: + case 0xffc2: + if (frame) { + throw new JpegError("Only single frame JPEGs supported"); + } + + offset += 2; + frame = {}; + frame.extended = fileMarker === 0xffc1; + frame.progressive = fileMarker === 0xffc2; + frame.precision = data[offset++]; + const sofScanLines = (0, _core_utils.readUint16)(data, offset); + offset += 2; + frame.scanLines = dnlScanLines || sofScanLines; + frame.samplesPerLine = (0, _core_utils.readUint16)(data, offset); + offset += 2; + frame.components = []; + frame.componentIds = {}; + const componentsCount = data[offset++]; + let maxH = 0, + maxV = 0; + + for (i = 0; i < componentsCount; i++) { + const componentId = data[offset]; + const h = data[offset + 1] >> 4; + const v = data[offset + 1] & 15; + + if (maxH < h) { + maxH = h; + } + + if (maxV < v) { + maxV = v; + } + + const qId = data[offset + 2]; + l = frame.components.push({ + h, + v, + quantizationId: qId, + quantizationTable: null + }); + frame.componentIds[componentId] = l - 1; + offset += 3; + } + + frame.maxH = maxH; + frame.maxV = maxV; + prepareComponents(frame); + break; + + case 0xffc4: + const huffmanLength = (0, _core_utils.readUint16)(data, offset); + offset += 2; + + for (i = 2; i < huffmanLength;) { + const huffmanTableSpec = data[offset++]; + const codeLengths = new Uint8Array(16); + let codeLengthSum = 0; + + for (j = 0; j < 16; j++, offset++) { + codeLengthSum += codeLengths[j] = data[offset]; + } + + const huffmanValues = new Uint8Array(codeLengthSum); + + for (j = 0; j < codeLengthSum; j++, offset++) { + huffmanValues[j] = data[offset]; + } + + i += 17 + codeLengthSum; + (huffmanTableSpec >> 4 === 0 ? huffmanTablesDC : huffmanTablesAC)[huffmanTableSpec & 15] = buildHuffmanTable(codeLengths, huffmanValues); + } + + break; + + case 0xffdd: + offset += 2; + resetInterval = (0, _core_utils.readUint16)(data, offset); + offset += 2; + break; + + case 0xffda: + const parseDNLMarker = ++numSOSMarkers === 1 && !dnlScanLines; + offset += 2; + const selectorsCount = data[offset++], + components = []; + + for (i = 0; i < selectorsCount; i++) { + const index = data[offset++]; + const componentIndex = frame.componentIds[index]; + const component = frame.components[componentIndex]; + component.index = index; + const tableSpec = data[offset++]; + component.huffmanTableDC = huffmanTablesDC[tableSpec >> 4]; + component.huffmanTableAC = huffmanTablesAC[tableSpec & 15]; + components.push(component); + } + + const spectralStart = data[offset++], + spectralEnd = data[offset++], + successiveApproximation = data[offset++]; + + try { + const processed = decodeScan(data, offset, frame, components, resetInterval, spectralStart, spectralEnd, successiveApproximation >> 4, successiveApproximation & 15, parseDNLMarker); + offset += processed; + } catch (ex) { + if (ex instanceof DNLMarkerError) { + (0, _util.warn)(`${ex.message} -- attempting to re-parse the JPEG image.`); + return this.parse(data, { + dnlScanLines: ex.scanLines + }); + } else if (ex instanceof EOIMarkerError) { + (0, _util.warn)(`${ex.message} -- ignoring the rest of the image data.`); + break markerLoop; + } + + throw ex; + } + + break; + + case 0xffdc: + offset += 4; + break; + + case 0xffff: + if (data[offset] !== 0xff) { + offset--; + } + + break; + + default: + const nextFileMarker = findNextFileMarker(data, offset - 2, offset - 3); + + if (nextFileMarker && nextFileMarker.invalid) { + (0, _util.warn)("JpegImage.parse - unexpected data, current marker is: " + nextFileMarker.invalid); + offset = nextFileMarker.offset; + break; + } + + if (!nextFileMarker || offset >= data.length - 1) { + (0, _util.warn)("JpegImage.parse - reached the end of the image data " + "without finding an EOI marker (0xFFD9)."); + break markerLoop; + } + + throw new JpegError("JpegImage.parse - unknown marker: " + fileMarker.toString(16)); + } + + fileMarker = (0, _core_utils.readUint16)(data, offset); + offset += 2; + } + + this.width = frame.samplesPerLine; + this.height = frame.scanLines; + this.jfif = jfif; + this.adobe = adobe; + this.components = []; + + for (let i = 0, ii = frame.components.length; i < ii; i++) { + const component = frame.components[i]; + const quantizationTable = quantizationTables[component.quantizationId]; + + if (quantizationTable) { + component.quantizationTable = quantizationTable; + } + + this.components.push({ + index: component.index, + output: buildComponentData(frame, component), + scaleX: component.h / frame.maxH, + scaleY: component.v / frame.maxV, + blocksPerLine: component.blocksPerLine, + blocksPerColumn: component.blocksPerColumn + }); + } + + this.numComponents = this.components.length; + return undefined; + } + + _getLinearizedBlockData(width, height, isSourcePDF = false) { + const scaleX = this.width / width, + scaleY = this.height / height; + let component, componentScaleX, componentScaleY, blocksPerScanline; + let x, y, i, j, k; + let index; + let offset = 0; + let output; + const numComponents = this.components.length; + const dataLength = width * height * numComponents; + const data = new Uint8ClampedArray(dataLength); + const xScaleBlockOffset = new Uint32Array(width); + const mask3LSB = 0xfffffff8; + let lastComponentScaleX; + + for (i = 0; i < numComponents; i++) { + component = this.components[i]; + componentScaleX = component.scaleX * scaleX; + componentScaleY = component.scaleY * scaleY; + offset = i; + output = component.output; + blocksPerScanline = component.blocksPerLine + 1 << 3; + + if (componentScaleX !== lastComponentScaleX) { + for (x = 0; x < width; x++) { + j = 0 | x * componentScaleX; + xScaleBlockOffset[x] = (j & mask3LSB) << 3 | j & 7; + } + + lastComponentScaleX = componentScaleX; + } + + for (y = 0; y < height; y++) { + j = 0 | y * componentScaleY; + index = blocksPerScanline * (j & mask3LSB) | (j & 7) << 3; + + for (x = 0; x < width; x++) { + data[offset] = output[index + xScaleBlockOffset[x]]; + offset += numComponents; + } + } + } + + let transform = this._decodeTransform; + + if (!isSourcePDF && numComponents === 4 && !transform) { + transform = new Int32Array([-256, 255, -256, 255, -256, 255, -256, 255]); + } + + if (transform) { + for (i = 0; i < dataLength;) { + for (j = 0, k = 0; j < numComponents; j++, i++, k += 2) { + data[i] = (data[i] * transform[k] >> 8) + transform[k + 1]; + } + } + } + + return data; + } + + get _isColorConversionNeeded() { + if (this.adobe) { + return !!this.adobe.transformCode; + } + + if (this.numComponents === 3) { + if (this._colorTransform === 0) { + return false; + } else if (this.components[0].index === 0x52 && this.components[1].index === 0x47 && this.components[2].index === 0x42) { + return false; + } + + return true; + } + + if (this._colorTransform === 1) { + return true; + } + + return false; + } + + _convertYccToRgb(data) { + let Y, Cb, Cr; + + for (let i = 0, length = data.length; i < length; i += 3) { + Y = data[i]; + Cb = data[i + 1]; + Cr = data[i + 2]; + data[i] = Y - 179.456 + 1.402 * Cr; + data[i + 1] = Y + 135.459 - 0.344 * Cb - 0.714 * Cr; + data[i + 2] = Y - 226.816 + 1.772 * Cb; + } + + return data; + } + + _convertYcckToRgb(data) { + let Y, Cb, Cr, k; + let offset = 0; + + for (let i = 0, length = data.length; i < length; i += 4) { + Y = data[i]; + Cb = data[i + 1]; + Cr = data[i + 2]; + k = data[i + 3]; + data[offset++] = -122.67195406894 + Cb * (-6.60635669420364e-5 * Cb + 0.000437130475926232 * Cr - 5.4080610064599e-5 * Y + 0.00048449797120281 * k - 0.154362151871126) + Cr * (-0.000957964378445773 * Cr + 0.000817076911346625 * Y - 0.00477271405408747 * k + 1.53380253221734) + Y * (0.000961250184130688 * Y - 0.00266257332283933 * k + 0.48357088451265) + k * (-0.000336197177618394 * k + 0.484791561490776); + data[offset++] = 107.268039397724 + Cb * (2.19927104525741e-5 * Cb - 0.000640992018297945 * Cr + 0.000659397001245577 * Y + 0.000426105652938837 * k - 0.176491792462875) + Cr * (-0.000778269941513683 * Cr + 0.00130872261408275 * Y + 0.000770482631801132 * k - 0.151051492775562) + Y * (0.00126935368114843 * Y - 0.00265090189010898 * k + 0.25802910206845) + k * (-0.000318913117588328 * k - 0.213742400323665); + data[offset++] = -20.810012546947 + Cb * (-0.000570115196973677 * Cb - 2.63409051004589e-5 * Cr + 0.0020741088115012 * Y - 0.00288260236853442 * k + 0.814272968359295) + Cr * (-1.53496057440975e-5 * Cr - 0.000132689043961446 * Y + 0.000560833691242812 * k - 0.195152027534049) + Y * (0.00174418132927582 * Y - 0.00255243321439347 * k + 0.116935020465145) + k * (-0.000343531996510555 * k + 0.24165260232407); + } + + return data.subarray(0, offset); + } + + _convertYcckToCmyk(data) { + let Y, Cb, Cr; + + for (let i = 0, length = data.length; i < length; i += 4) { + Y = data[i]; + Cb = data[i + 1]; + Cr = data[i + 2]; + data[i] = 434.456 - Y - 1.402 * Cr; + data[i + 1] = 119.541 - Y + 0.344 * Cb + 0.714 * Cr; + data[i + 2] = 481.816 - Y - 1.772 * Cb; + } + + return data; + } + + _convertCmykToRgb(data) { + let c, m, y, k; + let offset = 0; + + for (let i = 0, length = data.length; i < length; i += 4) { + c = data[i]; + m = data[i + 1]; + y = data[i + 2]; + k = data[i + 3]; + data[offset++] = 255 + c * (-0.00006747147073602441 * c + 0.0008379262121013727 * m + 0.0002894718188643294 * y + 0.003264231057537806 * k - 1.1185611867203937) + m * (0.000026374107616089405 * m - 0.00008626949158638572 * y - 0.0002748769067499491 * k - 0.02155688794978967) + y * (-0.00003878099212869363 * y - 0.0003267808279485286 * k + 0.0686742238595345) - k * (0.0003361971776183937 * k + 0.7430659151342254); + data[offset++] = 255 + c * (0.00013596372813588848 * c + 0.000924537132573585 * m + 0.00010567359618683593 * y + 0.0004791864687436512 * k - 0.3109689587515875) + m * (-0.00023545346108370344 * m + 0.0002702845253534714 * y + 0.0020200308977307156 * k - 0.7488052167015494) + y * (0.00006834815998235662 * y + 0.00015168452363460973 * k - 0.09751927774728933) - k * (0.0003189131175883281 * k + 0.7364883807733168); + data[offset++] = 255 + c * (0.000013598650411385307 * c + 0.00012423956175490851 * m + 0.0004751985097583589 * y - 0.0000036729317476630422 * k - 0.05562186980264034) + m * (0.00016141380598724676 * m + 0.0009692239130725186 * y + 0.0007782692450036253 * k - 0.44015232367526463) + y * (5.068882914068769e-7 * y + 0.0017778369011375071 * k - 0.7591454649749609) - k * (0.0003435319965105553 * k + 0.7063770186160144); + } + + return data.subarray(0, offset); + } + + getData({ + width, + height, + forceRGB = false, + isSourcePDF = false + }) { + if (this.numComponents > 4) { + throw new JpegError("Unsupported color mode"); + } + + const data = this._getLinearizedBlockData(width, height, isSourcePDF); + + if (this.numComponents === 1 && forceRGB) { + const dataLength = data.length; + const rgbData = new Uint8ClampedArray(dataLength * 3); + let offset = 0; + + for (let i = 0; i < dataLength; i++) { + const grayColor = data[i]; + rgbData[offset++] = grayColor; + rgbData[offset++] = grayColor; + rgbData[offset++] = grayColor; + } + + return rgbData; + } else if (this.numComponents === 3 && this._isColorConversionNeeded) { + return this._convertYccToRgb(data); + } else if (this.numComponents === 4) { + if (this._isColorConversionNeeded) { + if (forceRGB) { + return this._convertYcckToRgb(data); + } + + return this._convertYcckToCmyk(data); + } else if (forceRGB) { + return this._convertCmykToRgb(data); + } + } + + return data; + } + +} + +exports.JpegImage = JpegImage; + +/***/ }), +/* 29 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.JpxStream = void 0; + +var _decode_stream = __w_pdfjs_require__(19); + +var _jpx = __w_pdfjs_require__(30); + +var _util = __w_pdfjs_require__(2); + +class JpxStream extends _decode_stream.DecodeStream { + constructor(stream, maybeLength, params) { + super(maybeLength); + this.stream = stream; + this.dict = stream.dict; + this.maybeLength = maybeLength; + this.params = params; + } + + get bytes() { + return (0, _util.shadow)(this, "bytes", this.stream.getBytes(this.maybeLength)); + } + + ensureBuffer(requested) {} + + readBlock() { + if (this.eof) { + return; + } + + const jpxImage = new _jpx.JpxImage(); + jpxImage.parse(this.bytes); + const width = jpxImage.width; + const height = jpxImage.height; + const componentsCount = jpxImage.componentsCount; + const tileCount = jpxImage.tiles.length; + + if (tileCount === 1) { + this.buffer = jpxImage.tiles[0].items; + } else { + const data = new Uint8ClampedArray(width * height * componentsCount); + + for (let k = 0; k < tileCount; k++) { + const tileComponents = jpxImage.tiles[k]; + const tileWidth = tileComponents.width; + const tileHeight = tileComponents.height; + const tileLeft = tileComponents.left; + const tileTop = tileComponents.top; + const src = tileComponents.items; + let srcPosition = 0; + let dataPosition = (width * tileTop + tileLeft) * componentsCount; + const imgRowSize = width * componentsCount; + const tileRowSize = tileWidth * componentsCount; + + for (let j = 0; j < tileHeight; j++) { + const rowBytes = src.subarray(srcPosition, srcPosition + tileRowSize); + data.set(rowBytes, dataPosition); + srcPosition += tileRowSize; + dataPosition += imgRowSize; + } + } + + this.buffer = data; + } + + this.bufferLength = this.buffer.length; + this.eof = true; + } + +} + +exports.JpxStream = JpxStream; + +/***/ }), +/* 30 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.JpxImage = void 0; + +var _util = __w_pdfjs_require__(2); + +var _core_utils = __w_pdfjs_require__(6); + +var _arithmetic_decoder = __w_pdfjs_require__(26); + +class JpxError extends _util.BaseException { + constructor(msg) { + super(`JPX error: ${msg}`, "JpxError"); + } + +} + +const SubbandsGainLog2 = { + LL: 0, + LH: 1, + HL: 1, + HH: 2 +}; + +class JpxImage { + constructor() { + this.failOnCorruptedImage = false; + } + + parse(data) { + const head = (0, _core_utils.readUint16)(data, 0); + + if (head === 0xff4f) { + this.parseCodestream(data, 0, data.length); + return; + } + + const length = data.length; + let position = 0; + + while (position < length) { + let headerSize = 8; + let lbox = (0, _core_utils.readUint32)(data, position); + const tbox = (0, _core_utils.readUint32)(data, position + 4); + position += headerSize; + + if (lbox === 1) { + lbox = (0, _core_utils.readUint32)(data, position) * 4294967296 + (0, _core_utils.readUint32)(data, position + 4); + position += 8; + headerSize += 8; + } + + if (lbox === 0) { + lbox = length - position + headerSize; + } + + if (lbox < headerSize) { + throw new JpxError("Invalid box field size"); + } + + const dataLength = lbox - headerSize; + let jumpDataLength = true; + + switch (tbox) { + case 0x6a703268: + jumpDataLength = false; + break; + + case 0x636f6c72: + const method = data[position]; + + if (method === 1) { + const colorspace = (0, _core_utils.readUint32)(data, position + 3); + + switch (colorspace) { + case 16: + case 17: + case 18: + break; + + default: + (0, _util.warn)("Unknown colorspace " + colorspace); + break; + } + } else if (method === 2) { + (0, _util.info)("ICC profile not supported"); + } + + break; + + case 0x6a703263: + this.parseCodestream(data, position, position + dataLength); + break; + + case 0x6a502020: + if ((0, _core_utils.readUint32)(data, position) !== 0x0d0a870a) { + (0, _util.warn)("Invalid JP2 signature"); + } + + break; + + case 0x6a501a1a: + case 0x66747970: + case 0x72726571: + case 0x72657320: + case 0x69686472: + break; + + default: + const headerType = String.fromCharCode(tbox >> 24 & 0xff, tbox >> 16 & 0xff, tbox >> 8 & 0xff, tbox & 0xff); + (0, _util.warn)(`Unsupported header type ${tbox} (${headerType}).`); + break; + } + + if (jumpDataLength) { + position += dataLength; + } + } + } + + parseImageProperties(stream) { + let newByte = stream.getByte(); + + while (newByte >= 0) { + const oldByte = newByte; + newByte = stream.getByte(); + const code = oldByte << 8 | newByte; + + if (code === 0xff51) { + stream.skip(4); + const Xsiz = stream.getInt32() >>> 0; + const Ysiz = stream.getInt32() >>> 0; + const XOsiz = stream.getInt32() >>> 0; + const YOsiz = stream.getInt32() >>> 0; + stream.skip(16); + const Csiz = stream.getUint16(); + this.width = Xsiz - XOsiz; + this.height = Ysiz - YOsiz; + this.componentsCount = Csiz; + this.bitsPerComponent = 8; + return; + } + } + + throw new JpxError("No size marker found in JPX stream"); + } + + parseCodestream(data, start, end) { + const context = {}; + let doNotRecover = false; + + try { + let position = start; + + while (position + 1 < end) { + const code = (0, _core_utils.readUint16)(data, position); + position += 2; + let length = 0, + j, + sqcd, + spqcds, + spqcdSize, + scalarExpounded, + tile; + + switch (code) { + case 0xff4f: + context.mainHeader = true; + break; + + case 0xffd9: + break; + + case 0xff51: + length = (0, _core_utils.readUint16)(data, position); + const siz = {}; + siz.Xsiz = (0, _core_utils.readUint32)(data, position + 4); + siz.Ysiz = (0, _core_utils.readUint32)(data, position + 8); + siz.XOsiz = (0, _core_utils.readUint32)(data, position + 12); + siz.YOsiz = (0, _core_utils.readUint32)(data, position + 16); + siz.XTsiz = (0, _core_utils.readUint32)(data, position + 20); + siz.YTsiz = (0, _core_utils.readUint32)(data, position + 24); + siz.XTOsiz = (0, _core_utils.readUint32)(data, position + 28); + siz.YTOsiz = (0, _core_utils.readUint32)(data, position + 32); + const componentsCount = (0, _core_utils.readUint16)(data, position + 36); + siz.Csiz = componentsCount; + const components = []; + j = position + 38; + + for (let i = 0; i < componentsCount; i++) { + const component = { + precision: (data[j] & 0x7f) + 1, + isSigned: !!(data[j] & 0x80), + XRsiz: data[j + 1], + YRsiz: data[j + 2] + }; + j += 3; + calculateComponentDimensions(component, siz); + components.push(component); + } + + context.SIZ = siz; + context.components = components; + calculateTileGrids(context, components); + context.QCC = []; + context.COC = []; + break; + + case 0xff5c: + length = (0, _core_utils.readUint16)(data, position); + const qcd = {}; + j = position + 2; + sqcd = data[j++]; + + switch (sqcd & 0x1f) { + case 0: + spqcdSize = 8; + scalarExpounded = true; + break; + + case 1: + spqcdSize = 16; + scalarExpounded = false; + break; + + case 2: + spqcdSize = 16; + scalarExpounded = true; + break; + + default: + throw new Error("Invalid SQcd value " + sqcd); + } + + qcd.noQuantization = spqcdSize === 8; + qcd.scalarExpounded = scalarExpounded; + qcd.guardBits = sqcd >> 5; + spqcds = []; + + while (j < length + position) { + const spqcd = {}; + + if (spqcdSize === 8) { + spqcd.epsilon = data[j++] >> 3; + spqcd.mu = 0; + } else { + spqcd.epsilon = data[j] >> 3; + spqcd.mu = (data[j] & 0x7) << 8 | data[j + 1]; + j += 2; + } + + spqcds.push(spqcd); + } + + qcd.SPqcds = spqcds; + + if (context.mainHeader) { + context.QCD = qcd; + } else { + context.currentTile.QCD = qcd; + context.currentTile.QCC = []; + } + + break; + + case 0xff5d: + length = (0, _core_utils.readUint16)(data, position); + const qcc = {}; + j = position + 2; + let cqcc; + + if (context.SIZ.Csiz < 257) { + cqcc = data[j++]; + } else { + cqcc = (0, _core_utils.readUint16)(data, j); + j += 2; + } + + sqcd = data[j++]; + + switch (sqcd & 0x1f) { + case 0: + spqcdSize = 8; + scalarExpounded = true; + break; + + case 1: + spqcdSize = 16; + scalarExpounded = false; + break; + + case 2: + spqcdSize = 16; + scalarExpounded = true; + break; + + default: + throw new Error("Invalid SQcd value " + sqcd); + } + + qcc.noQuantization = spqcdSize === 8; + qcc.scalarExpounded = scalarExpounded; + qcc.guardBits = sqcd >> 5; + spqcds = []; + + while (j < length + position) { + const spqcd = {}; + + if (spqcdSize === 8) { + spqcd.epsilon = data[j++] >> 3; + spqcd.mu = 0; + } else { + spqcd.epsilon = data[j] >> 3; + spqcd.mu = (data[j] & 0x7) << 8 | data[j + 1]; + j += 2; + } + + spqcds.push(spqcd); + } + + qcc.SPqcds = spqcds; + + if (context.mainHeader) { + context.QCC[cqcc] = qcc; + } else { + context.currentTile.QCC[cqcc] = qcc; + } + + break; + + case 0xff52: + length = (0, _core_utils.readUint16)(data, position); + const cod = {}; + j = position + 2; + const scod = data[j++]; + cod.entropyCoderWithCustomPrecincts = !!(scod & 1); + cod.sopMarkerUsed = !!(scod & 2); + cod.ephMarkerUsed = !!(scod & 4); + cod.progressionOrder = data[j++]; + cod.layersCount = (0, _core_utils.readUint16)(data, j); + j += 2; + cod.multipleComponentTransform = data[j++]; + cod.decompositionLevelsCount = data[j++]; + cod.xcb = (data[j++] & 0xf) + 2; + cod.ycb = (data[j++] & 0xf) + 2; + const blockStyle = data[j++]; + cod.selectiveArithmeticCodingBypass = !!(blockStyle & 1); + cod.resetContextProbabilities = !!(blockStyle & 2); + cod.terminationOnEachCodingPass = !!(blockStyle & 4); + cod.verticallyStripe = !!(blockStyle & 8); + cod.predictableTermination = !!(blockStyle & 16); + cod.segmentationSymbolUsed = !!(blockStyle & 32); + cod.reversibleTransformation = data[j++]; + + if (cod.entropyCoderWithCustomPrecincts) { + const precinctsSizes = []; + + while (j < length + position) { + const precinctsSize = data[j++]; + precinctsSizes.push({ + PPx: precinctsSize & 0xf, + PPy: precinctsSize >> 4 + }); + } + + cod.precinctsSizes = precinctsSizes; + } + + const unsupported = []; + + if (cod.selectiveArithmeticCodingBypass) { + unsupported.push("selectiveArithmeticCodingBypass"); + } + + if (cod.terminationOnEachCodingPass) { + unsupported.push("terminationOnEachCodingPass"); + } + + if (cod.verticallyStripe) { + unsupported.push("verticallyStripe"); + } + + if (cod.predictableTermination) { + unsupported.push("predictableTermination"); + } + + if (unsupported.length > 0) { + doNotRecover = true; + (0, _util.warn)(`JPX: Unsupported COD options (${unsupported.join(", ")}).`); + } + + if (context.mainHeader) { + context.COD = cod; + } else { + context.currentTile.COD = cod; + context.currentTile.COC = []; + } + + break; + + case 0xff90: + length = (0, _core_utils.readUint16)(data, position); + tile = {}; + tile.index = (0, _core_utils.readUint16)(data, position + 2); + tile.length = (0, _core_utils.readUint32)(data, position + 4); + tile.dataEnd = tile.length + position - 2; + tile.partIndex = data[position + 8]; + tile.partsCount = data[position + 9]; + context.mainHeader = false; + + if (tile.partIndex === 0) { + tile.COD = context.COD; + tile.COC = context.COC.slice(0); + tile.QCD = context.QCD; + tile.QCC = context.QCC.slice(0); + } + + context.currentTile = tile; + break; + + case 0xff93: + tile = context.currentTile; + + if (tile.partIndex === 0) { + initializeTile(context, tile.index); + buildPackets(context); + } + + length = tile.dataEnd - position; + parseTilePackets(context, data, position, length); + break; + + case 0xff53: + (0, _util.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented."); + + case 0xff55: + case 0xff57: + case 0xff58: + case 0xff64: + length = (0, _core_utils.readUint16)(data, position); + break; + + default: + throw new Error("Unknown codestream code: " + code.toString(16)); + } + + position += length; + } + } catch (e) { + if (doNotRecover || this.failOnCorruptedImage) { + throw new JpxError(e.message); + } else { + (0, _util.warn)(`JPX: Trying to recover from: "${e.message}".`); + } + } + + this.tiles = transformComponents(context); + this.width = context.SIZ.Xsiz - context.SIZ.XOsiz; + this.height = context.SIZ.Ysiz - context.SIZ.YOsiz; + this.componentsCount = context.SIZ.Csiz; + } + +} + +exports.JpxImage = JpxImage; + +function calculateComponentDimensions(component, siz) { + component.x0 = Math.ceil(siz.XOsiz / component.XRsiz); + component.x1 = Math.ceil(siz.Xsiz / component.XRsiz); + component.y0 = Math.ceil(siz.YOsiz / component.YRsiz); + component.y1 = Math.ceil(siz.Ysiz / component.YRsiz); + component.width = component.x1 - component.x0; + component.height = component.y1 - component.y0; +} + +function calculateTileGrids(context, components) { + const siz = context.SIZ; + const tiles = []; + let tile; + const numXtiles = Math.ceil((siz.Xsiz - siz.XTOsiz) / siz.XTsiz); + const numYtiles = Math.ceil((siz.Ysiz - siz.YTOsiz) / siz.YTsiz); + + for (let q = 0; q < numYtiles; q++) { + for (let p = 0; p < numXtiles; p++) { + tile = {}; + tile.tx0 = Math.max(siz.XTOsiz + p * siz.XTsiz, siz.XOsiz); + tile.ty0 = Math.max(siz.YTOsiz + q * siz.YTsiz, siz.YOsiz); + tile.tx1 = Math.min(siz.XTOsiz + (p + 1) * siz.XTsiz, siz.Xsiz); + tile.ty1 = Math.min(siz.YTOsiz + (q + 1) * siz.YTsiz, siz.Ysiz); + tile.width = tile.tx1 - tile.tx0; + tile.height = tile.ty1 - tile.ty0; + tile.components = []; + tiles.push(tile); + } + } + + context.tiles = tiles; + const componentsCount = siz.Csiz; + + for (let i = 0, ii = componentsCount; i < ii; i++) { + const component = components[i]; + + for (let j = 0, jj = tiles.length; j < jj; j++) { + const tileComponent = {}; + tile = tiles[j]; + tileComponent.tcx0 = Math.ceil(tile.tx0 / component.XRsiz); + tileComponent.tcy0 = Math.ceil(tile.ty0 / component.YRsiz); + tileComponent.tcx1 = Math.ceil(tile.tx1 / component.XRsiz); + tileComponent.tcy1 = Math.ceil(tile.ty1 / component.YRsiz); + tileComponent.width = tileComponent.tcx1 - tileComponent.tcx0; + tileComponent.height = tileComponent.tcy1 - tileComponent.tcy0; + tile.components[i] = tileComponent; + } + } +} + +function getBlocksDimensions(context, component, r) { + const codOrCoc = component.codingStyleParameters; + const result = {}; + + if (!codOrCoc.entropyCoderWithCustomPrecincts) { + result.PPx = 15; + result.PPy = 15; + } else { + result.PPx = codOrCoc.precinctsSizes[r].PPx; + result.PPy = codOrCoc.precinctsSizes[r].PPy; + } + + result.xcb_ = r > 0 ? Math.min(codOrCoc.xcb, result.PPx - 1) : Math.min(codOrCoc.xcb, result.PPx); + result.ycb_ = r > 0 ? Math.min(codOrCoc.ycb, result.PPy - 1) : Math.min(codOrCoc.ycb, result.PPy); + return result; +} + +function buildPrecincts(context, resolution, dimensions) { + const precinctWidth = 1 << dimensions.PPx; + const precinctHeight = 1 << dimensions.PPy; + const isZeroRes = resolution.resLevel === 0; + const precinctWidthInSubband = 1 << dimensions.PPx + (isZeroRes ? 0 : -1); + const precinctHeightInSubband = 1 << dimensions.PPy + (isZeroRes ? 0 : -1); + const numprecinctswide = resolution.trx1 > resolution.trx0 ? Math.ceil(resolution.trx1 / precinctWidth) - Math.floor(resolution.trx0 / precinctWidth) : 0; + const numprecinctshigh = resolution.try1 > resolution.try0 ? Math.ceil(resolution.try1 / precinctHeight) - Math.floor(resolution.try0 / precinctHeight) : 0; + const numprecincts = numprecinctswide * numprecinctshigh; + resolution.precinctParameters = { + precinctWidth, + precinctHeight, + numprecinctswide, + numprecinctshigh, + numprecincts, + precinctWidthInSubband, + precinctHeightInSubband + }; +} + +function buildCodeblocks(context, subband, dimensions) { + const xcb_ = dimensions.xcb_; + const ycb_ = dimensions.ycb_; + const codeblockWidth = 1 << xcb_; + const codeblockHeight = 1 << ycb_; + const cbx0 = subband.tbx0 >> xcb_; + const cby0 = subband.tby0 >> ycb_; + const cbx1 = subband.tbx1 + codeblockWidth - 1 >> xcb_; + const cby1 = subband.tby1 + codeblockHeight - 1 >> ycb_; + const precinctParameters = subband.resolution.precinctParameters; + const codeblocks = []; + const precincts = []; + let i, j, codeblock, precinctNumber; + + for (j = cby0; j < cby1; j++) { + for (i = cbx0; i < cbx1; i++) { + codeblock = { + cbx: i, + cby: j, + tbx0: codeblockWidth * i, + tby0: codeblockHeight * j, + tbx1: codeblockWidth * (i + 1), + tby1: codeblockHeight * (j + 1) + }; + codeblock.tbx0_ = Math.max(subband.tbx0, codeblock.tbx0); + codeblock.tby0_ = Math.max(subband.tby0, codeblock.tby0); + codeblock.tbx1_ = Math.min(subband.tbx1, codeblock.tbx1); + codeblock.tby1_ = Math.min(subband.tby1, codeblock.tby1); + const pi = Math.floor((codeblock.tbx0_ - subband.tbx0) / precinctParameters.precinctWidthInSubband); + const pj = Math.floor((codeblock.tby0_ - subband.tby0) / precinctParameters.precinctHeightInSubband); + precinctNumber = pi + pj * precinctParameters.numprecinctswide; + codeblock.precinctNumber = precinctNumber; + codeblock.subbandType = subband.type; + codeblock.Lblock = 3; + + if (codeblock.tbx1_ <= codeblock.tbx0_ || codeblock.tby1_ <= codeblock.tby0_) { + continue; + } + + codeblocks.push(codeblock); + let precinct = precincts[precinctNumber]; + + if (precinct !== undefined) { + if (i < precinct.cbxMin) { + precinct.cbxMin = i; + } else if (i > precinct.cbxMax) { + precinct.cbxMax = i; + } + + if (j < precinct.cbyMin) { + precinct.cbxMin = j; + } else if (j > precinct.cbyMax) { + precinct.cbyMax = j; + } + } else { + precincts[precinctNumber] = precinct = { + cbxMin: i, + cbyMin: j, + cbxMax: i, + cbyMax: j + }; + } + + codeblock.precinct = precinct; + } + } + + subband.codeblockParameters = { + codeblockWidth: xcb_, + codeblockHeight: ycb_, + numcodeblockwide: cbx1 - cbx0 + 1, + numcodeblockhigh: cby1 - cby0 + 1 + }; + subband.codeblocks = codeblocks; + subband.precincts = precincts; +} + +function createPacket(resolution, precinctNumber, layerNumber) { + const precinctCodeblocks = []; + const subbands = resolution.subbands; + + for (let i = 0, ii = subbands.length; i < ii; i++) { + const subband = subbands[i]; + const codeblocks = subband.codeblocks; + + for (let j = 0, jj = codeblocks.length; j < jj; j++) { + const codeblock = codeblocks[j]; + + if (codeblock.precinctNumber !== precinctNumber) { + continue; + } + + precinctCodeblocks.push(codeblock); + } + } + + return { + layerNumber, + codeblocks: precinctCodeblocks + }; +} + +function LayerResolutionComponentPositionIterator(context) { + const siz = context.SIZ; + const tileIndex = context.currentTile.index; + const tile = context.tiles[tileIndex]; + const layersCount = tile.codingStyleDefaultParameters.layersCount; + const componentsCount = siz.Csiz; + let maxDecompositionLevelsCount = 0; + + for (let q = 0; q < componentsCount; q++) { + maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount, tile.components[q].codingStyleParameters.decompositionLevelsCount); + } + + let l = 0, + r = 0, + i = 0, + k = 0; + + this.nextPacket = function JpxImage_nextPacket() { + for (; l < layersCount; l++) { + for (; r <= maxDecompositionLevelsCount; r++) { + for (; i < componentsCount; i++) { + const component = tile.components[i]; + + if (r > component.codingStyleParameters.decompositionLevelsCount) { + continue; + } + + const resolution = component.resolutions[r]; + const numprecincts = resolution.precinctParameters.numprecincts; + + for (; k < numprecincts;) { + const packet = createPacket(resolution, k, l); + k++; + return packet; + } + + k = 0; + } + + i = 0; + } + + r = 0; + } + + throw new JpxError("Out of packets"); + }; +} + +function ResolutionLayerComponentPositionIterator(context) { + const siz = context.SIZ; + const tileIndex = context.currentTile.index; + const tile = context.tiles[tileIndex]; + const layersCount = tile.codingStyleDefaultParameters.layersCount; + const componentsCount = siz.Csiz; + let maxDecompositionLevelsCount = 0; + + for (let q = 0; q < componentsCount; q++) { + maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount, tile.components[q].codingStyleParameters.decompositionLevelsCount); + } + + let r = 0, + l = 0, + i = 0, + k = 0; + + this.nextPacket = function JpxImage_nextPacket() { + for (; r <= maxDecompositionLevelsCount; r++) { + for (; l < layersCount; l++) { + for (; i < componentsCount; i++) { + const component = tile.components[i]; + + if (r > component.codingStyleParameters.decompositionLevelsCount) { + continue; + } + + const resolution = component.resolutions[r]; + const numprecincts = resolution.precinctParameters.numprecincts; + + for (; k < numprecincts;) { + const packet = createPacket(resolution, k, l); + k++; + return packet; + } + + k = 0; + } + + i = 0; + } + + l = 0; + } + + throw new JpxError("Out of packets"); + }; +} + +function ResolutionPositionComponentLayerIterator(context) { + const siz = context.SIZ; + const tileIndex = context.currentTile.index; + const tile = context.tiles[tileIndex]; + const layersCount = tile.codingStyleDefaultParameters.layersCount; + const componentsCount = siz.Csiz; + let l, r, c, p; + let maxDecompositionLevelsCount = 0; + + for (c = 0; c < componentsCount; c++) { + const component = tile.components[c]; + maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount, component.codingStyleParameters.decompositionLevelsCount); + } + + const maxNumPrecinctsInLevel = new Int32Array(maxDecompositionLevelsCount + 1); + + for (r = 0; r <= maxDecompositionLevelsCount; ++r) { + let maxNumPrecincts = 0; + + for (c = 0; c < componentsCount; ++c) { + const resolutions = tile.components[c].resolutions; + + if (r < resolutions.length) { + maxNumPrecincts = Math.max(maxNumPrecincts, resolutions[r].precinctParameters.numprecincts); + } + } + + maxNumPrecinctsInLevel[r] = maxNumPrecincts; + } + + l = 0; + r = 0; + c = 0; + p = 0; + + this.nextPacket = function JpxImage_nextPacket() { + for (; r <= maxDecompositionLevelsCount; r++) { + for (; p < maxNumPrecinctsInLevel[r]; p++) { + for (; c < componentsCount; c++) { + const component = tile.components[c]; + + if (r > component.codingStyleParameters.decompositionLevelsCount) { + continue; + } + + const resolution = component.resolutions[r]; + const numprecincts = resolution.precinctParameters.numprecincts; + + if (p >= numprecincts) { + continue; + } + + for (; l < layersCount;) { + const packet = createPacket(resolution, p, l); + l++; + return packet; + } + + l = 0; + } + + c = 0; + } + + p = 0; + } + + throw new JpxError("Out of packets"); + }; +} + +function PositionComponentResolutionLayerIterator(context) { + const siz = context.SIZ; + const tileIndex = context.currentTile.index; + const tile = context.tiles[tileIndex]; + const layersCount = tile.codingStyleDefaultParameters.layersCount; + const componentsCount = siz.Csiz; + const precinctsSizes = getPrecinctSizesInImageScale(tile); + const precinctsIterationSizes = precinctsSizes; + let l = 0, + r = 0, + c = 0, + px = 0, + py = 0; + + this.nextPacket = function JpxImage_nextPacket() { + for (; py < precinctsIterationSizes.maxNumHigh; py++) { + for (; px < precinctsIterationSizes.maxNumWide; px++) { + for (; c < componentsCount; c++) { + const component = tile.components[c]; + const decompositionLevelsCount = component.codingStyleParameters.decompositionLevelsCount; + + for (; r <= decompositionLevelsCount; r++) { + const resolution = component.resolutions[r]; + const sizeInImageScale = precinctsSizes.components[c].resolutions[r]; + const k = getPrecinctIndexIfExist(px, py, sizeInImageScale, precinctsIterationSizes, resolution); + + if (k === null) { + continue; + } + + for (; l < layersCount;) { + const packet = createPacket(resolution, k, l); + l++; + return packet; + } + + l = 0; + } + + r = 0; + } + + c = 0; + } + + px = 0; + } + + throw new JpxError("Out of packets"); + }; +} + +function ComponentPositionResolutionLayerIterator(context) { + const siz = context.SIZ; + const tileIndex = context.currentTile.index; + const tile = context.tiles[tileIndex]; + const layersCount = tile.codingStyleDefaultParameters.layersCount; + const componentsCount = siz.Csiz; + const precinctsSizes = getPrecinctSizesInImageScale(tile); + let l = 0, + r = 0, + c = 0, + px = 0, + py = 0; + + this.nextPacket = function JpxImage_nextPacket() { + for (; c < componentsCount; ++c) { + const component = tile.components[c]; + const precinctsIterationSizes = precinctsSizes.components[c]; + const decompositionLevelsCount = component.codingStyleParameters.decompositionLevelsCount; + + for (; py < precinctsIterationSizes.maxNumHigh; py++) { + for (; px < precinctsIterationSizes.maxNumWide; px++) { + for (; r <= decompositionLevelsCount; r++) { + const resolution = component.resolutions[r]; + const sizeInImageScale = precinctsIterationSizes.resolutions[r]; + const k = getPrecinctIndexIfExist(px, py, sizeInImageScale, precinctsIterationSizes, resolution); + + if (k === null) { + continue; + } + + for (; l < layersCount;) { + const packet = createPacket(resolution, k, l); + l++; + return packet; + } + + l = 0; + } + + r = 0; + } + + px = 0; + } + + py = 0; + } + + throw new JpxError("Out of packets"); + }; +} + +function getPrecinctIndexIfExist(pxIndex, pyIndex, sizeInImageScale, precinctIterationSizes, resolution) { + const posX = pxIndex * precinctIterationSizes.minWidth; + const posY = pyIndex * precinctIterationSizes.minHeight; + + if (posX % sizeInImageScale.width !== 0 || posY % sizeInImageScale.height !== 0) { + return null; + } + + const startPrecinctRowIndex = posY / sizeInImageScale.width * resolution.precinctParameters.numprecinctswide; + return posX / sizeInImageScale.height + startPrecinctRowIndex; +} + +function getPrecinctSizesInImageScale(tile) { + const componentsCount = tile.components.length; + let minWidth = Number.MAX_VALUE; + let minHeight = Number.MAX_VALUE; + let maxNumWide = 0; + let maxNumHigh = 0; + const sizePerComponent = new Array(componentsCount); + + for (let c = 0; c < componentsCount; c++) { + const component = tile.components[c]; + const decompositionLevelsCount = component.codingStyleParameters.decompositionLevelsCount; + const sizePerResolution = new Array(decompositionLevelsCount + 1); + let minWidthCurrentComponent = Number.MAX_VALUE; + let minHeightCurrentComponent = Number.MAX_VALUE; + let maxNumWideCurrentComponent = 0; + let maxNumHighCurrentComponent = 0; + let scale = 1; + + for (let r = decompositionLevelsCount; r >= 0; --r) { + const resolution = component.resolutions[r]; + const widthCurrentResolution = scale * resolution.precinctParameters.precinctWidth; + const heightCurrentResolution = scale * resolution.precinctParameters.precinctHeight; + minWidthCurrentComponent = Math.min(minWidthCurrentComponent, widthCurrentResolution); + minHeightCurrentComponent = Math.min(minHeightCurrentComponent, heightCurrentResolution); + maxNumWideCurrentComponent = Math.max(maxNumWideCurrentComponent, resolution.precinctParameters.numprecinctswide); + maxNumHighCurrentComponent = Math.max(maxNumHighCurrentComponent, resolution.precinctParameters.numprecinctshigh); + sizePerResolution[r] = { + width: widthCurrentResolution, + height: heightCurrentResolution + }; + scale <<= 1; + } + + minWidth = Math.min(minWidth, minWidthCurrentComponent); + minHeight = Math.min(minHeight, minHeightCurrentComponent); + maxNumWide = Math.max(maxNumWide, maxNumWideCurrentComponent); + maxNumHigh = Math.max(maxNumHigh, maxNumHighCurrentComponent); + sizePerComponent[c] = { + resolutions: sizePerResolution, + minWidth: minWidthCurrentComponent, + minHeight: minHeightCurrentComponent, + maxNumWide: maxNumWideCurrentComponent, + maxNumHigh: maxNumHighCurrentComponent + }; + } + + return { + components: sizePerComponent, + minWidth, + minHeight, + maxNumWide, + maxNumHigh + }; +} + +function buildPackets(context) { + const siz = context.SIZ; + const tileIndex = context.currentTile.index; + const tile = context.tiles[tileIndex]; + const componentsCount = siz.Csiz; + + for (let c = 0; c < componentsCount; c++) { + const component = tile.components[c]; + const decompositionLevelsCount = component.codingStyleParameters.decompositionLevelsCount; + const resolutions = []; + const subbands = []; + + for (let r = 0; r <= decompositionLevelsCount; r++) { + const blocksDimensions = getBlocksDimensions(context, component, r); + const resolution = {}; + const scale = 1 << decompositionLevelsCount - r; + resolution.trx0 = Math.ceil(component.tcx0 / scale); + resolution.try0 = Math.ceil(component.tcy0 / scale); + resolution.trx1 = Math.ceil(component.tcx1 / scale); + resolution.try1 = Math.ceil(component.tcy1 / scale); + resolution.resLevel = r; + buildPrecincts(context, resolution, blocksDimensions); + resolutions.push(resolution); + let subband; + + if (r === 0) { + subband = {}; + subband.type = "LL"; + subband.tbx0 = Math.ceil(component.tcx0 / scale); + subband.tby0 = Math.ceil(component.tcy0 / scale); + subband.tbx1 = Math.ceil(component.tcx1 / scale); + subband.tby1 = Math.ceil(component.tcy1 / scale); + subband.resolution = resolution; + buildCodeblocks(context, subband, blocksDimensions); + subbands.push(subband); + resolution.subbands = [subband]; + } else { + const bscale = 1 << decompositionLevelsCount - r + 1; + const resolutionSubbands = []; + subband = {}; + subband.type = "HL"; + subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5); + subband.tby0 = Math.ceil(component.tcy0 / bscale); + subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5); + subband.tby1 = Math.ceil(component.tcy1 / bscale); + subband.resolution = resolution; + buildCodeblocks(context, subband, blocksDimensions); + subbands.push(subband); + resolutionSubbands.push(subband); + subband = {}; + subband.type = "LH"; + subband.tbx0 = Math.ceil(component.tcx0 / bscale); + subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5); + subband.tbx1 = Math.ceil(component.tcx1 / bscale); + subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5); + subband.resolution = resolution; + buildCodeblocks(context, subband, blocksDimensions); + subbands.push(subband); + resolutionSubbands.push(subband); + subband = {}; + subband.type = "HH"; + subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5); + subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5); + subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5); + subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5); + subband.resolution = resolution; + buildCodeblocks(context, subband, blocksDimensions); + subbands.push(subband); + resolutionSubbands.push(subband); + resolution.subbands = resolutionSubbands; + } + } + + component.resolutions = resolutions; + component.subbands = subbands; + } + + const progressionOrder = tile.codingStyleDefaultParameters.progressionOrder; + + switch (progressionOrder) { + case 0: + tile.packetsIterator = new LayerResolutionComponentPositionIterator(context); + break; + + case 1: + tile.packetsIterator = new ResolutionLayerComponentPositionIterator(context); + break; + + case 2: + tile.packetsIterator = new ResolutionPositionComponentLayerIterator(context); + break; + + case 3: + tile.packetsIterator = new PositionComponentResolutionLayerIterator(context); + break; + + case 4: + tile.packetsIterator = new ComponentPositionResolutionLayerIterator(context); + break; + + default: + throw new JpxError(`Unsupported progression order ${progressionOrder}`); + } +} + +function parseTilePackets(context, data, offset, dataLength) { + let position = 0; + let buffer, + bufferSize = 0, + skipNextBit = false; + + function readBits(count) { + while (bufferSize < count) { + const b = data[offset + position]; + position++; + + if (skipNextBit) { + buffer = buffer << 7 | b; + bufferSize += 7; + skipNextBit = false; + } else { + buffer = buffer << 8 | b; + bufferSize += 8; + } + + if (b === 0xff) { + skipNextBit = true; + } + } + + bufferSize -= count; + return buffer >>> bufferSize & (1 << count) - 1; + } + + function skipMarkerIfEqual(value) { + if (data[offset + position - 1] === 0xff && data[offset + position] === value) { + skipBytes(1); + return true; + } else if (data[offset + position] === 0xff && data[offset + position + 1] === value) { + skipBytes(2); + return true; + } + + return false; + } + + function skipBytes(count) { + position += count; + } + + function alignToByte() { + bufferSize = 0; + + if (skipNextBit) { + position++; + skipNextBit = false; + } + } + + function readCodingpasses() { + if (readBits(1) === 0) { + return 1; + } + + if (readBits(1) === 0) { + return 2; + } + + let value = readBits(2); + + if (value < 3) { + return value + 3; + } + + value = readBits(5); + + if (value < 31) { + return value + 6; + } + + value = readBits(7); + return value + 37; + } + + const tileIndex = context.currentTile.index; + const tile = context.tiles[tileIndex]; + const sopMarkerUsed = context.COD.sopMarkerUsed; + const ephMarkerUsed = context.COD.ephMarkerUsed; + const packetsIterator = tile.packetsIterator; + + while (position < dataLength) { + alignToByte(); + + if (sopMarkerUsed && skipMarkerIfEqual(0x91)) { + skipBytes(4); + } + + const packet = packetsIterator.nextPacket(); + + if (!readBits(1)) { + continue; + } + + const layerNumber = packet.layerNumber, + queue = []; + let codeblock; + + for (let i = 0, ii = packet.codeblocks.length; i < ii; i++) { + codeblock = packet.codeblocks[i]; + let precinct = codeblock.precinct; + const codeblockColumn = codeblock.cbx - precinct.cbxMin; + const codeblockRow = codeblock.cby - precinct.cbyMin; + let codeblockIncluded = false; + let firstTimeInclusion = false; + let valueReady, zeroBitPlanesTree; + + if (codeblock.included !== undefined) { + codeblockIncluded = !!readBits(1); + } else { + precinct = codeblock.precinct; + let inclusionTree; + + if (precinct.inclusionTree !== undefined) { + inclusionTree = precinct.inclusionTree; + } else { + const width = precinct.cbxMax - precinct.cbxMin + 1; + const height = precinct.cbyMax - precinct.cbyMin + 1; + inclusionTree = new InclusionTree(width, height, layerNumber); + zeroBitPlanesTree = new TagTree(width, height); + precinct.inclusionTree = inclusionTree; + precinct.zeroBitPlanesTree = zeroBitPlanesTree; + + for (let l = 0; l < layerNumber; l++) { + if (readBits(1) !== 0) { + throw new JpxError("Invalid tag tree"); + } + } + } + + if (inclusionTree.reset(codeblockColumn, codeblockRow, layerNumber)) { + while (true) { + if (readBits(1)) { + valueReady = !inclusionTree.nextLevel(); + + if (valueReady) { + codeblock.included = true; + codeblockIncluded = firstTimeInclusion = true; + break; + } + } else { + inclusionTree.incrementValue(layerNumber); + break; + } + } + } + } + + if (!codeblockIncluded) { + continue; + } + + if (firstTimeInclusion) { + zeroBitPlanesTree = precinct.zeroBitPlanesTree; + zeroBitPlanesTree.reset(codeblockColumn, codeblockRow); + + while (true) { + if (readBits(1)) { + valueReady = !zeroBitPlanesTree.nextLevel(); + + if (valueReady) { + break; + } + } else { + zeroBitPlanesTree.incrementValue(); + } + } + + codeblock.zeroBitPlanes = zeroBitPlanesTree.value; + } + + const codingpasses = readCodingpasses(); + + while (readBits(1)) { + codeblock.Lblock++; + } + + const codingpassesLog2 = (0, _core_utils.log2)(codingpasses); + const bits = (codingpasses < 1 << codingpassesLog2 ? codingpassesLog2 - 1 : codingpassesLog2) + codeblock.Lblock; + const codedDataLength = readBits(bits); + queue.push({ + codeblock, + codingpasses, + dataLength: codedDataLength + }); + } + + alignToByte(); + + if (ephMarkerUsed) { + skipMarkerIfEqual(0x92); + } + + while (queue.length > 0) { + const packetItem = queue.shift(); + codeblock = packetItem.codeblock; + + if (codeblock.data === undefined) { + codeblock.data = []; + } + + codeblock.data.push({ + data, + start: offset + position, + end: offset + position + packetItem.dataLength, + codingpasses: packetItem.codingpasses + }); + position += packetItem.dataLength; + } + } + + return position; +} + +function copyCoefficients(coefficients, levelWidth, levelHeight, subband, delta, mb, reversible, segmentationSymbolUsed, resetContextProbabilities) { + const x0 = subband.tbx0; + const y0 = subband.tby0; + const width = subband.tbx1 - subband.tbx0; + const codeblocks = subband.codeblocks; + const right = subband.type.charAt(0) === "H" ? 1 : 0; + const bottom = subband.type.charAt(1) === "H" ? levelWidth : 0; + + for (let i = 0, ii = codeblocks.length; i < ii; ++i) { + const codeblock = codeblocks[i]; + const blockWidth = codeblock.tbx1_ - codeblock.tbx0_; + const blockHeight = codeblock.tby1_ - codeblock.tby0_; + + if (blockWidth === 0 || blockHeight === 0) { + continue; + } + + if (codeblock.data === undefined) { + continue; + } + + const bitModel = new BitModel(blockWidth, blockHeight, codeblock.subbandType, codeblock.zeroBitPlanes, mb); + let currentCodingpassType = 2; + const data = codeblock.data; + let totalLength = 0, + codingpasses = 0; + let j, jj, dataItem; + + for (j = 0, jj = data.length; j < jj; j++) { + dataItem = data[j]; + totalLength += dataItem.end - dataItem.start; + codingpasses += dataItem.codingpasses; + } + + const encodedData = new Uint8Array(totalLength); + let position = 0; + + for (j = 0, jj = data.length; j < jj; j++) { + dataItem = data[j]; + const chunk = dataItem.data.subarray(dataItem.start, dataItem.end); + encodedData.set(chunk, position); + position += chunk.length; + } + + const decoder = new _arithmetic_decoder.ArithmeticDecoder(encodedData, 0, totalLength); + bitModel.setDecoder(decoder); + + for (j = 0; j < codingpasses; j++) { + switch (currentCodingpassType) { + case 0: + bitModel.runSignificancePropagationPass(); + break; + + case 1: + bitModel.runMagnitudeRefinementPass(); + break; + + case 2: + bitModel.runCleanupPass(); + + if (segmentationSymbolUsed) { + bitModel.checkSegmentationSymbol(); + } + + break; + } + + if (resetContextProbabilities) { + bitModel.reset(); + } + + currentCodingpassType = (currentCodingpassType + 1) % 3; + } + + let offset = codeblock.tbx0_ - x0 + (codeblock.tby0_ - y0) * width; + const sign = bitModel.coefficentsSign; + const magnitude = bitModel.coefficentsMagnitude; + const bitsDecoded = bitModel.bitsDecoded; + const magnitudeCorrection = reversible ? 0 : 0.5; + let k, n, nb; + position = 0; + const interleave = subband.type !== "LL"; + + for (j = 0; j < blockHeight; j++) { + const row = offset / width | 0; + const levelOffset = 2 * row * (levelWidth - width) + right + bottom; + + for (k = 0; k < blockWidth; k++) { + n = magnitude[position]; + + if (n !== 0) { + n = (n + magnitudeCorrection) * delta; + + if (sign[position] !== 0) { + n = -n; + } + + nb = bitsDecoded[position]; + const pos = interleave ? levelOffset + (offset << 1) : offset; + + if (reversible && nb >= mb) { + coefficients[pos] = n; + } else { + coefficients[pos] = n * (1 << mb - nb); + } + } + + offset++; + position++; + } + + offset += width - blockWidth; + } + } +} + +function transformTile(context, tile, c) { + const component = tile.components[c]; + const codingStyleParameters = component.codingStyleParameters; + const quantizationParameters = component.quantizationParameters; + const decompositionLevelsCount = codingStyleParameters.decompositionLevelsCount; + const spqcds = quantizationParameters.SPqcds; + const scalarExpounded = quantizationParameters.scalarExpounded; + const guardBits = quantizationParameters.guardBits; + const segmentationSymbolUsed = codingStyleParameters.segmentationSymbolUsed; + const resetContextProbabilities = codingStyleParameters.resetContextProbabilities; + const precision = context.components[c].precision; + const reversible = codingStyleParameters.reversibleTransformation; + const transform = reversible ? new ReversibleTransform() : new IrreversibleTransform(); + const subbandCoefficients = []; + let b = 0; + + for (let i = 0; i <= decompositionLevelsCount; i++) { + const resolution = component.resolutions[i]; + const width = resolution.trx1 - resolution.trx0; + const height = resolution.try1 - resolution.try0; + const coefficients = new Float32Array(width * height); + + for (let j = 0, jj = resolution.subbands.length; j < jj; j++) { + let mu, epsilon; + + if (!scalarExpounded) { + mu = spqcds[0].mu; + epsilon = spqcds[0].epsilon + (i > 0 ? 1 - i : 0); + } else { + mu = spqcds[b].mu; + epsilon = spqcds[b].epsilon; + b++; + } + + const subband = resolution.subbands[j]; + const gainLog2 = SubbandsGainLog2[subband.type]; + const delta = reversible ? 1 : 2 ** (precision + gainLog2 - epsilon) * (1 + mu / 2048); + const mb = guardBits + epsilon - 1; + copyCoefficients(coefficients, width, height, subband, delta, mb, reversible, segmentationSymbolUsed, resetContextProbabilities); + } + + subbandCoefficients.push({ + width, + height, + items: coefficients + }); + } + + const result = transform.calculate(subbandCoefficients, component.tcx0, component.tcy0); + return { + left: component.tcx0, + top: component.tcy0, + width: result.width, + height: result.height, + items: result.items + }; +} + +function transformComponents(context) { + const siz = context.SIZ; + const components = context.components; + const componentsCount = siz.Csiz; + const resultImages = []; + + for (let i = 0, ii = context.tiles.length; i < ii; i++) { + const tile = context.tiles[i]; + const transformedTiles = []; + + for (let c = 0; c < componentsCount; c++) { + transformedTiles[c] = transformTile(context, tile, c); + } + + const tile0 = transformedTiles[0]; + const out = new Uint8ClampedArray(tile0.items.length * componentsCount); + const result = { + left: tile0.left, + top: tile0.top, + width: tile0.width, + height: tile0.height, + items: out + }; + let shift, offset; + let pos = 0, + j, + jj, + y0, + y1, + y2; + + if (tile.codingStyleDefaultParameters.multipleComponentTransform) { + const fourComponents = componentsCount === 4; + const y0items = transformedTiles[0].items; + const y1items = transformedTiles[1].items; + const y2items = transformedTiles[2].items; + const y3items = fourComponents ? transformedTiles[3].items : null; + shift = components[0].precision - 8; + offset = (128 << shift) + 0.5; + const component0 = tile.components[0]; + const alpha01 = componentsCount - 3; + jj = y0items.length; + + if (!component0.codingStyleParameters.reversibleTransformation) { + for (j = 0; j < jj; j++, pos += alpha01) { + y0 = y0items[j] + offset; + y1 = y1items[j]; + y2 = y2items[j]; + out[pos++] = y0 + 1.402 * y2 >> shift; + out[pos++] = y0 - 0.34413 * y1 - 0.71414 * y2 >> shift; + out[pos++] = y0 + 1.772 * y1 >> shift; + } + } else { + for (j = 0; j < jj; j++, pos += alpha01) { + y0 = y0items[j] + offset; + y1 = y1items[j]; + y2 = y2items[j]; + const g = y0 - (y2 + y1 >> 2); + out[pos++] = g + y2 >> shift; + out[pos++] = g >> shift; + out[pos++] = g + y1 >> shift; + } + } + + if (fourComponents) { + for (j = 0, pos = 3; j < jj; j++, pos += 4) { + out[pos] = y3items[j] + offset >> shift; + } + } + } else { + for (let c = 0; c < componentsCount; c++) { + const items = transformedTiles[c].items; + shift = components[c].precision - 8; + offset = (128 << shift) + 0.5; + + for (pos = c, j = 0, jj = items.length; j < jj; j++) { + out[pos] = items[j] + offset >> shift; + pos += componentsCount; + } + } + } + + resultImages.push(result); + } + + return resultImages; +} + +function initializeTile(context, tileIndex) { + const siz = context.SIZ; + const componentsCount = siz.Csiz; + const tile = context.tiles[tileIndex]; + + for (let c = 0; c < componentsCount; c++) { + const component = tile.components[c]; + const qcdOrQcc = context.currentTile.QCC[c] !== undefined ? context.currentTile.QCC[c] : context.currentTile.QCD; + component.quantizationParameters = qcdOrQcc; + const codOrCoc = context.currentTile.COC[c] !== undefined ? context.currentTile.COC[c] : context.currentTile.COD; + component.codingStyleParameters = codOrCoc; + } + + tile.codingStyleDefaultParameters = context.currentTile.COD; +} + +class TagTree { + constructor(width, height) { + const levelsLength = (0, _core_utils.log2)(Math.max(width, height)) + 1; + this.levels = []; + + for (let i = 0; i < levelsLength; i++) { + const level = { + width, + height, + items: [] + }; + this.levels.push(level); + width = Math.ceil(width / 2); + height = Math.ceil(height / 2); + } + } + + reset(i, j) { + let currentLevel = 0, + value = 0, + level; + + while (currentLevel < this.levels.length) { + level = this.levels[currentLevel]; + const index = i + j * level.width; + + if (level.items[index] !== undefined) { + value = level.items[index]; + break; + } + + level.index = index; + i >>= 1; + j >>= 1; + currentLevel++; + } + + currentLevel--; + level = this.levels[currentLevel]; + level.items[level.index] = value; + this.currentLevel = currentLevel; + delete this.value; + } + + incrementValue() { + const level = this.levels[this.currentLevel]; + level.items[level.index]++; + } + + nextLevel() { + let currentLevel = this.currentLevel; + let level = this.levels[currentLevel]; + const value = level.items[level.index]; + currentLevel--; + + if (currentLevel < 0) { + this.value = value; + return false; + } + + this.currentLevel = currentLevel; + level = this.levels[currentLevel]; + level.items[level.index] = value; + return true; + } + +} + +class InclusionTree { + constructor(width, height, defaultValue) { + const levelsLength = (0, _core_utils.log2)(Math.max(width, height)) + 1; + this.levels = []; + + for (let i = 0; i < levelsLength; i++) { + const items = new Uint8Array(width * height); + + for (let j = 0, jj = items.length; j < jj; j++) { + items[j] = defaultValue; + } + + const level = { + width, + height, + items + }; + this.levels.push(level); + width = Math.ceil(width / 2); + height = Math.ceil(height / 2); + } + } + + reset(i, j, stopValue) { + let currentLevel = 0; + + while (currentLevel < this.levels.length) { + const level = this.levels[currentLevel]; + const index = i + j * level.width; + level.index = index; + const value = level.items[index]; + + if (value === 0xff) { + break; + } + + if (value > stopValue) { + this.currentLevel = currentLevel; + this.propagateValues(); + return false; + } + + i >>= 1; + j >>= 1; + currentLevel++; + } + + this.currentLevel = currentLevel - 1; + return true; + } + + incrementValue(stopValue) { + const level = this.levels[this.currentLevel]; + level.items[level.index] = stopValue + 1; + this.propagateValues(); + } + + propagateValues() { + let levelIndex = this.currentLevel; + let level = this.levels[levelIndex]; + const currentValue = level.items[level.index]; + + while (--levelIndex >= 0) { + level = this.levels[levelIndex]; + level.items[level.index] = currentValue; + } + } + + nextLevel() { + let currentLevel = this.currentLevel; + let level = this.levels[currentLevel]; + const value = level.items[level.index]; + level.items[level.index] = 0xff; + currentLevel--; + + if (currentLevel < 0) { + return false; + } + + this.currentLevel = currentLevel; + level = this.levels[currentLevel]; + level.items[level.index] = value; + return true; + } + +} + +const BitModel = function BitModelClosure() { + const UNIFORM_CONTEXT = 17; + const RUNLENGTH_CONTEXT = 18; + const LLAndLHContextsLabel = new Uint8Array([0, 5, 8, 0, 3, 7, 8, 0, 4, 7, 8, 0, 0, 0, 0, 0, 1, 6, 8, 0, 3, 7, 8, 0, 4, 7, 8, 0, 0, 0, 0, 0, 2, 6, 8, 0, 3, 7, 8, 0, 4, 7, 8, 0, 0, 0, 0, 0, 2, 6, 8, 0, 3, 7, 8, 0, 4, 7, 8, 0, 0, 0, 0, 0, 2, 6, 8, 0, 3, 7, 8, 0, 4, 7, 8]); + const HLContextLabel = new Uint8Array([0, 3, 4, 0, 5, 7, 7, 0, 8, 8, 8, 0, 0, 0, 0, 0, 1, 3, 4, 0, 6, 7, 7, 0, 8, 8, 8, 0, 0, 0, 0, 0, 2, 3, 4, 0, 6, 7, 7, 0, 8, 8, 8, 0, 0, 0, 0, 0, 2, 3, 4, 0, 6, 7, 7, 0, 8, 8, 8, 0, 0, 0, 0, 0, 2, 3, 4, 0, 6, 7, 7, 0, 8, 8, 8]); + const HHContextLabel = new Uint8Array([0, 1, 2, 0, 1, 2, 2, 0, 2, 2, 2, 0, 0, 0, 0, 0, 3, 4, 5, 0, 4, 5, 5, 0, 5, 5, 5, 0, 0, 0, 0, 0, 6, 7, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 0, 0, 0, 0, 8, 8, 8, 0, 8, 8, 8, 0, 8, 8, 8, 0, 0, 0, 0, 0, 8, 8, 8, 0, 8, 8, 8, 0, 8, 8, 8]); + + class BitModel { + constructor(width, height, subband, zeroBitPlanes, mb) { + this.width = width; + this.height = height; + let contextLabelTable; + + if (subband === "HH") { + contextLabelTable = HHContextLabel; + } else if (subband === "HL") { + contextLabelTable = HLContextLabel; + } else { + contextLabelTable = LLAndLHContextsLabel; + } + + this.contextLabelTable = contextLabelTable; + const coefficientCount = width * height; + this.neighborsSignificance = new Uint8Array(coefficientCount); + this.coefficentsSign = new Uint8Array(coefficientCount); + let coefficentsMagnitude; + + if (mb > 14) { + coefficentsMagnitude = new Uint32Array(coefficientCount); + } else if (mb > 6) { + coefficentsMagnitude = new Uint16Array(coefficientCount); + } else { + coefficentsMagnitude = new Uint8Array(coefficientCount); + } + + this.coefficentsMagnitude = coefficentsMagnitude; + this.processingFlags = new Uint8Array(coefficientCount); + const bitsDecoded = new Uint8Array(coefficientCount); + + if (zeroBitPlanes !== 0) { + for (let i = 0; i < coefficientCount; i++) { + bitsDecoded[i] = zeroBitPlanes; + } + } + + this.bitsDecoded = bitsDecoded; + this.reset(); + } + + setDecoder(decoder) { + this.decoder = decoder; + } + + reset() { + this.contexts = new Int8Array(19); + this.contexts[0] = 4 << 1 | 0; + this.contexts[UNIFORM_CONTEXT] = 46 << 1 | 0; + this.contexts[RUNLENGTH_CONTEXT] = 3 << 1 | 0; + } + + setNeighborsSignificance(row, column, index) { + const neighborsSignificance = this.neighborsSignificance; + const width = this.width, + height = this.height; + const left = column > 0; + const right = column + 1 < width; + let i; + + if (row > 0) { + i = index - width; + + if (left) { + neighborsSignificance[i - 1] += 0x10; + } + + if (right) { + neighborsSignificance[i + 1] += 0x10; + } + + neighborsSignificance[i] += 0x04; + } + + if (row + 1 < height) { + i = index + width; + + if (left) { + neighborsSignificance[i - 1] += 0x10; + } + + if (right) { + neighborsSignificance[i + 1] += 0x10; + } + + neighborsSignificance[i] += 0x04; + } + + if (left) { + neighborsSignificance[index - 1] += 0x01; + } + + if (right) { + neighborsSignificance[index + 1] += 0x01; + } + + neighborsSignificance[index] |= 0x80; + } + + runSignificancePropagationPass() { + const decoder = this.decoder; + const width = this.width, + height = this.height; + const coefficentsMagnitude = this.coefficentsMagnitude; + const coefficentsSign = this.coefficentsSign; + const neighborsSignificance = this.neighborsSignificance; + const processingFlags = this.processingFlags; + const contexts = this.contexts; + const labels = this.contextLabelTable; + const bitsDecoded = this.bitsDecoded; + const processedInverseMask = ~1; + const processedMask = 1; + const firstMagnitudeBitMask = 2; + + for (let i0 = 0; i0 < height; i0 += 4) { + for (let j = 0; j < width; j++) { + let index = i0 * width + j; + + for (let i1 = 0; i1 < 4; i1++, index += width) { + const i = i0 + i1; + + if (i >= height) { + break; + } + + processingFlags[index] &= processedInverseMask; + + if (coefficentsMagnitude[index] || !neighborsSignificance[index]) { + continue; + } + + const contextLabel = labels[neighborsSignificance[index]]; + const decision = decoder.readBit(contexts, contextLabel); + + if (decision) { + const sign = this.decodeSignBit(i, j, index); + coefficentsSign[index] = sign; + coefficentsMagnitude[index] = 1; + this.setNeighborsSignificance(i, j, index); + processingFlags[index] |= firstMagnitudeBitMask; + } + + bitsDecoded[index]++; + processingFlags[index] |= processedMask; + } + } + } + } + + decodeSignBit(row, column, index) { + const width = this.width, + height = this.height; + const coefficentsMagnitude = this.coefficentsMagnitude; + const coefficentsSign = this.coefficentsSign; + let contribution, sign0, sign1, significance1; + let contextLabel, decoded; + significance1 = column > 0 && coefficentsMagnitude[index - 1] !== 0; + + if (column + 1 < width && coefficentsMagnitude[index + 1] !== 0) { + sign1 = coefficentsSign[index + 1]; + + if (significance1) { + sign0 = coefficentsSign[index - 1]; + contribution = 1 - sign1 - sign0; + } else { + contribution = 1 - sign1 - sign1; + } + } else if (significance1) { + sign0 = coefficentsSign[index - 1]; + contribution = 1 - sign0 - sign0; + } else { + contribution = 0; + } + + const horizontalContribution = 3 * contribution; + significance1 = row > 0 && coefficentsMagnitude[index - width] !== 0; + + if (row + 1 < height && coefficentsMagnitude[index + width] !== 0) { + sign1 = coefficentsSign[index + width]; + + if (significance1) { + sign0 = coefficentsSign[index - width]; + contribution = 1 - sign1 - sign0 + horizontalContribution; + } else { + contribution = 1 - sign1 - sign1 + horizontalContribution; + } + } else if (significance1) { + sign0 = coefficentsSign[index - width]; + contribution = 1 - sign0 - sign0 + horizontalContribution; + } else { + contribution = horizontalContribution; + } + + if (contribution >= 0) { + contextLabel = 9 + contribution; + decoded = this.decoder.readBit(this.contexts, contextLabel); + } else { + contextLabel = 9 - contribution; + decoded = this.decoder.readBit(this.contexts, contextLabel) ^ 1; + } + + return decoded; + } + + runMagnitudeRefinementPass() { + const decoder = this.decoder; + const width = this.width, + height = this.height; + const coefficentsMagnitude = this.coefficentsMagnitude; + const neighborsSignificance = this.neighborsSignificance; + const contexts = this.contexts; + const bitsDecoded = this.bitsDecoded; + const processingFlags = this.processingFlags; + const processedMask = 1; + const firstMagnitudeBitMask = 2; + const length = width * height; + const width4 = width * 4; + + for (let index0 = 0, indexNext; index0 < length; index0 = indexNext) { + indexNext = Math.min(length, index0 + width4); + + for (let j = 0; j < width; j++) { + for (let index = index0 + j; index < indexNext; index += width) { + if (!coefficentsMagnitude[index] || (processingFlags[index] & processedMask) !== 0) { + continue; + } + + let contextLabel = 16; + + if ((processingFlags[index] & firstMagnitudeBitMask) !== 0) { + processingFlags[index] ^= firstMagnitudeBitMask; + const significance = neighborsSignificance[index] & 127; + contextLabel = significance === 0 ? 15 : 14; + } + + const bit = decoder.readBit(contexts, contextLabel); + coefficentsMagnitude[index] = coefficentsMagnitude[index] << 1 | bit; + bitsDecoded[index]++; + processingFlags[index] |= processedMask; + } + } + } + } + + runCleanupPass() { + const decoder = this.decoder; + const width = this.width, + height = this.height; + const neighborsSignificance = this.neighborsSignificance; + const coefficentsMagnitude = this.coefficentsMagnitude; + const coefficentsSign = this.coefficentsSign; + const contexts = this.contexts; + const labels = this.contextLabelTable; + const bitsDecoded = this.bitsDecoded; + const processingFlags = this.processingFlags; + const processedMask = 1; + const firstMagnitudeBitMask = 2; + const oneRowDown = width; + const twoRowsDown = width * 2; + const threeRowsDown = width * 3; + let iNext; + + for (let i0 = 0; i0 < height; i0 = iNext) { + iNext = Math.min(i0 + 4, height); + const indexBase = i0 * width; + const checkAllEmpty = i0 + 3 < height; + + for (let j = 0; j < width; j++) { + const index0 = indexBase + j; + const allEmpty = checkAllEmpty && processingFlags[index0] === 0 && processingFlags[index0 + oneRowDown] === 0 && processingFlags[index0 + twoRowsDown] === 0 && processingFlags[index0 + threeRowsDown] === 0 && neighborsSignificance[index0] === 0 && neighborsSignificance[index0 + oneRowDown] === 0 && neighborsSignificance[index0 + twoRowsDown] === 0 && neighborsSignificance[index0 + threeRowsDown] === 0; + let i1 = 0, + index = index0; + let i = i0, + sign; + + if (allEmpty) { + const hasSignificantCoefficent = decoder.readBit(contexts, RUNLENGTH_CONTEXT); + + if (!hasSignificantCoefficent) { + bitsDecoded[index0]++; + bitsDecoded[index0 + oneRowDown]++; + bitsDecoded[index0 + twoRowsDown]++; + bitsDecoded[index0 + threeRowsDown]++; + continue; + } + + i1 = decoder.readBit(contexts, UNIFORM_CONTEXT) << 1 | decoder.readBit(contexts, UNIFORM_CONTEXT); + + if (i1 !== 0) { + i = i0 + i1; + index += i1 * width; + } + + sign = this.decodeSignBit(i, j, index); + coefficentsSign[index] = sign; + coefficentsMagnitude[index] = 1; + this.setNeighborsSignificance(i, j, index); + processingFlags[index] |= firstMagnitudeBitMask; + index = index0; + + for (let i2 = i0; i2 <= i; i2++, index += width) { + bitsDecoded[index]++; + } + + i1++; + } + + for (i = i0 + i1; i < iNext; i++, index += width) { + if (coefficentsMagnitude[index] || (processingFlags[index] & processedMask) !== 0) { + continue; + } + + const contextLabel = labels[neighborsSignificance[index]]; + const decision = decoder.readBit(contexts, contextLabel); + + if (decision === 1) { + sign = this.decodeSignBit(i, j, index); + coefficentsSign[index] = sign; + coefficentsMagnitude[index] = 1; + this.setNeighborsSignificance(i, j, index); + processingFlags[index] |= firstMagnitudeBitMask; + } + + bitsDecoded[index]++; + } + } + } + } + + checkSegmentationSymbol() { + const decoder = this.decoder; + const contexts = this.contexts; + const symbol = decoder.readBit(contexts, UNIFORM_CONTEXT) << 3 | decoder.readBit(contexts, UNIFORM_CONTEXT) << 2 | decoder.readBit(contexts, UNIFORM_CONTEXT) << 1 | decoder.readBit(contexts, UNIFORM_CONTEXT); + + if (symbol !== 0xa) { + throw new JpxError("Invalid segmentation symbol"); + } + } + + } + + return BitModel; +}(); + +class Transform { + constructor() { + if (this.constructor === Transform) { + (0, _util.unreachable)("Cannot initialize Transform."); + } + } + + calculate(subbands, u0, v0) { + let ll = subbands[0]; + + for (let i = 1, ii = subbands.length; i < ii; i++) { + ll = this.iterate(ll, subbands[i], u0, v0); + } + + return ll; + } + + extend(buffer, offset, size) { + let i1 = offset - 1, + j1 = offset + 1; + let i2 = offset + size - 2, + j2 = offset + size; + buffer[i1--] = buffer[j1++]; + buffer[j2++] = buffer[i2--]; + buffer[i1--] = buffer[j1++]; + buffer[j2++] = buffer[i2--]; + buffer[i1--] = buffer[j1++]; + buffer[j2++] = buffer[i2--]; + buffer[i1] = buffer[j1]; + buffer[j2] = buffer[i2]; + } + + filter(x, offset, length) { + (0, _util.unreachable)("Abstract method `filter` called"); + } + + iterate(ll, hl_lh_hh, u0, v0) { + const llWidth = ll.width, + llHeight = ll.height; + let llItems = ll.items; + const width = hl_lh_hh.width; + const height = hl_lh_hh.height; + const items = hl_lh_hh.items; + let i, j, k, l, u, v; + + for (k = 0, i = 0; i < llHeight; i++) { + l = i * 2 * width; + + for (j = 0; j < llWidth; j++, k++, l += 2) { + items[l] = llItems[k]; + } + } + + llItems = ll.items = null; + const bufferPadding = 4; + const rowBuffer = new Float32Array(width + 2 * bufferPadding); + + if (width === 1) { + if ((u0 & 1) !== 0) { + for (v = 0, k = 0; v < height; v++, k += width) { + items[k] *= 0.5; + } + } + } else { + for (v = 0, k = 0; v < height; v++, k += width) { + rowBuffer.set(items.subarray(k, k + width), bufferPadding); + this.extend(rowBuffer, bufferPadding, width); + this.filter(rowBuffer, bufferPadding, width); + items.set(rowBuffer.subarray(bufferPadding, bufferPadding + width), k); + } + } + + let numBuffers = 16; + const colBuffers = []; + + for (i = 0; i < numBuffers; i++) { + colBuffers.push(new Float32Array(height + 2 * bufferPadding)); + } + + let b, + currentBuffer = 0; + ll = bufferPadding + height; + + if (height === 1) { + if ((v0 & 1) !== 0) { + for (u = 0; u < width; u++) { + items[u] *= 0.5; + } + } + } else { + for (u = 0; u < width; u++) { + if (currentBuffer === 0) { + numBuffers = Math.min(width - u, numBuffers); + + for (k = u, l = bufferPadding; l < ll; k += width, l++) { + for (b = 0; b < numBuffers; b++) { + colBuffers[b][l] = items[k + b]; + } + } + + currentBuffer = numBuffers; + } + + currentBuffer--; + const buffer = colBuffers[currentBuffer]; + this.extend(buffer, bufferPadding, height); + this.filter(buffer, bufferPadding, height); + + if (currentBuffer === 0) { + k = u - numBuffers + 1; + + for (l = bufferPadding; l < ll; k += width, l++) { + for (b = 0; b < numBuffers; b++) { + items[k + b] = colBuffers[b][l]; + } + } + } + } + } + + return { + width, + height, + items + }; + } + +} + +class IrreversibleTransform extends Transform { + filter(x, offset, length) { + const len = length >> 1; + offset |= 0; + let j, n, current, next; + const alpha = -1.586134342059924; + const beta = -0.052980118572961; + const gamma = 0.882911075530934; + const delta = 0.443506852043971; + const K = 1.230174104914001; + const K_ = 1 / K; + j = offset - 3; + + for (n = len + 4; n--; j += 2) { + x[j] *= K_; + } + + j = offset - 2; + current = delta * x[j - 1]; + + for (n = len + 3; n--; j += 2) { + next = delta * x[j + 1]; + x[j] = K * x[j] - current - next; + + if (n--) { + j += 2; + current = delta * x[j + 1]; + x[j] = K * x[j] - current - next; + } else { + break; + } + } + + j = offset - 1; + current = gamma * x[j - 1]; + + for (n = len + 2; n--; j += 2) { + next = gamma * x[j + 1]; + x[j] -= current + next; + + if (n--) { + j += 2; + current = gamma * x[j + 1]; + x[j] -= current + next; + } else { + break; + } + } + + j = offset; + current = beta * x[j - 1]; + + for (n = len + 1; n--; j += 2) { + next = beta * x[j + 1]; + x[j] -= current + next; + + if (n--) { + j += 2; + current = beta * x[j + 1]; + x[j] -= current + next; + } else { + break; + } + } + + if (len !== 0) { + j = offset + 1; + current = alpha * x[j - 1]; + + for (n = len; n--; j += 2) { + next = alpha * x[j + 1]; + x[j] -= current + next; + + if (n--) { + j += 2; + current = alpha * x[j + 1]; + x[j] -= current + next; + } else { + break; + } + } + } + } + +} + +class ReversibleTransform extends Transform { + filter(x, offset, length) { + const len = length >> 1; + offset |= 0; + let j, n; + + for (j = offset, n = len + 1; n--; j += 2) { + x[j] -= x[j - 1] + x[j + 1] + 2 >> 2; + } + + for (j = offset + 1, n = len; n--; j += 2) { + x[j] += x[j - 1] + x[j + 1] >> 1; + } + } + +} + +/***/ }), +/* 31 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.LZWStream = void 0; + +var _decode_stream = __w_pdfjs_require__(19); + +class LZWStream extends _decode_stream.DecodeStream { + constructor(str, maybeLength, earlyChange) { + super(maybeLength); + this.str = str; + this.dict = str.dict; + this.cachedData = 0; + this.bitsCached = 0; + const maxLzwDictionarySize = 4096; + const lzwState = { + earlyChange, + codeLength: 9, + nextCode: 258, + dictionaryValues: new Uint8Array(maxLzwDictionarySize), + dictionaryLengths: new Uint16Array(maxLzwDictionarySize), + dictionaryPrevCodes: new Uint16Array(maxLzwDictionarySize), + currentSequence: new Uint8Array(maxLzwDictionarySize), + currentSequenceLength: 0 + }; + + for (let i = 0; i < 256; ++i) { + lzwState.dictionaryValues[i] = i; + lzwState.dictionaryLengths[i] = 1; + } + + this.lzwState = lzwState; + } + + readBits(n) { + let bitsCached = this.bitsCached; + let cachedData = this.cachedData; + + while (bitsCached < n) { + const c = this.str.getByte(); + + if (c === -1) { + this.eof = true; + return null; + } + + cachedData = cachedData << 8 | c; + bitsCached += 8; + } + + this.bitsCached = bitsCached -= n; + this.cachedData = cachedData; + this.lastCode = null; + return cachedData >>> bitsCached & (1 << n) - 1; + } + + readBlock() { + const blockSize = 512, + decodedSizeDelta = blockSize; + let estimatedDecodedSize = blockSize * 2; + let i, j, q; + const lzwState = this.lzwState; + + if (!lzwState) { + return; + } + + const earlyChange = lzwState.earlyChange; + let nextCode = lzwState.nextCode; + const dictionaryValues = lzwState.dictionaryValues; + const dictionaryLengths = lzwState.dictionaryLengths; + const dictionaryPrevCodes = lzwState.dictionaryPrevCodes; + let codeLength = lzwState.codeLength; + let prevCode = lzwState.prevCode; + const currentSequence = lzwState.currentSequence; + let currentSequenceLength = lzwState.currentSequenceLength; + let decodedLength = 0; + let currentBufferLength = this.bufferLength; + let buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize); + + for (i = 0; i < blockSize; i++) { + const code = this.readBits(codeLength); + const hasPrev = currentSequenceLength > 0; + + if (code < 256) { + currentSequence[0] = code; + currentSequenceLength = 1; + } else if (code >= 258) { + if (code < nextCode) { + currentSequenceLength = dictionaryLengths[code]; + + for (j = currentSequenceLength - 1, q = code; j >= 0; j--) { + currentSequence[j] = dictionaryValues[q]; + q = dictionaryPrevCodes[q]; + } + } else { + currentSequence[currentSequenceLength++] = currentSequence[0]; + } + } else if (code === 256) { + codeLength = 9; + nextCode = 258; + currentSequenceLength = 0; + continue; + } else { + this.eof = true; + delete this.lzwState; + break; + } + + if (hasPrev) { + dictionaryPrevCodes[nextCode] = prevCode; + dictionaryLengths[nextCode] = dictionaryLengths[prevCode] + 1; + dictionaryValues[nextCode] = currentSequence[0]; + nextCode++; + codeLength = nextCode + earlyChange & nextCode + earlyChange - 1 ? codeLength : Math.min(Math.log(nextCode + earlyChange) / 0.6931471805599453 + 1, 12) | 0; + } + + prevCode = code; + decodedLength += currentSequenceLength; + + if (estimatedDecodedSize < decodedLength) { + do { + estimatedDecodedSize += decodedSizeDelta; + } while (estimatedDecodedSize < decodedLength); + + buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize); + } + + for (j = 0; j < currentSequenceLength; j++) { + buffer[currentBufferLength++] = currentSequence[j]; + } + } + + lzwState.nextCode = nextCode; + lzwState.codeLength = codeLength; + lzwState.prevCode = prevCode; + lzwState.currentSequenceLength = currentSequenceLength; + this.bufferLength = currentBufferLength; + } + +} + +exports.LZWStream = LZWStream; + +/***/ }), +/* 32 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PredictorStream = void 0; + +var _decode_stream = __w_pdfjs_require__(19); + +var _primitives = __w_pdfjs_require__(5); + +var _util = __w_pdfjs_require__(2); + +class PredictorStream extends _decode_stream.DecodeStream { + constructor(str, maybeLength, params) { + super(maybeLength); + + if (!(params instanceof _primitives.Dict)) { + return str; + } + + const predictor = this.predictor = params.get("Predictor") || 1; + + if (predictor <= 1) { + return str; + } + + if (predictor !== 2 && (predictor < 10 || predictor > 15)) { + throw new _util.FormatError(`Unsupported predictor: ${predictor}`); + } + + if (predictor === 2) { + this.readBlock = this.readBlockTiff; + } else { + this.readBlock = this.readBlockPng; + } + + this.str = str; + this.dict = str.dict; + const colors = this.colors = params.get("Colors") || 1; + const bits = this.bits = params.get("BPC", "BitsPerComponent") || 8; + const columns = this.columns = params.get("Columns") || 1; + this.pixBytes = colors * bits + 7 >> 3; + this.rowBytes = columns * colors * bits + 7 >> 3; + return this; + } + + readBlockTiff() { + const rowBytes = this.rowBytes; + const bufferLength = this.bufferLength; + const buffer = this.ensureBuffer(bufferLength + rowBytes); + const bits = this.bits; + const colors = this.colors; + const rawBytes = this.str.getBytes(rowBytes); + this.eof = !rawBytes.length; + + if (this.eof) { + return; + } + + let inbuf = 0, + outbuf = 0; + let inbits = 0, + outbits = 0; + let pos = bufferLength; + let i; + + if (bits === 1 && colors === 1) { + for (i = 0; i < rowBytes; ++i) { + let c = rawBytes[i] ^ inbuf; + c ^= c >> 1; + c ^= c >> 2; + c ^= c >> 4; + inbuf = (c & 1) << 7; + buffer[pos++] = c; + } + } else if (bits === 8) { + for (i = 0; i < colors; ++i) { + buffer[pos++] = rawBytes[i]; + } + + for (; i < rowBytes; ++i) { + buffer[pos] = buffer[pos - colors] + rawBytes[i]; + pos++; + } + } else if (bits === 16) { + const bytesPerPixel = colors * 2; + + for (i = 0; i < bytesPerPixel; ++i) { + buffer[pos++] = rawBytes[i]; + } + + for (; i < rowBytes; i += 2) { + const sum = ((rawBytes[i] & 0xff) << 8) + (rawBytes[i + 1] & 0xff) + ((buffer[pos - bytesPerPixel] & 0xff) << 8) + (buffer[pos - bytesPerPixel + 1] & 0xff); + buffer[pos++] = sum >> 8 & 0xff; + buffer[pos++] = sum & 0xff; + } + } else { + const compArray = new Uint8Array(colors + 1); + const bitMask = (1 << bits) - 1; + let j = 0, + k = bufferLength; + const columns = this.columns; + + for (i = 0; i < columns; ++i) { + for (let kk = 0; kk < colors; ++kk) { + if (inbits < bits) { + inbuf = inbuf << 8 | rawBytes[j++] & 0xff; + inbits += 8; + } + + compArray[kk] = compArray[kk] + (inbuf >> inbits - bits) & bitMask; + inbits -= bits; + outbuf = outbuf << bits | compArray[kk]; + outbits += bits; + + if (outbits >= 8) { + buffer[k++] = outbuf >> outbits - 8 & 0xff; + outbits -= 8; + } + } + } + + if (outbits > 0) { + buffer[k++] = (outbuf << 8 - outbits) + (inbuf & (1 << 8 - outbits) - 1); + } + } + + this.bufferLength += rowBytes; + } + + readBlockPng() { + const rowBytes = this.rowBytes; + const pixBytes = this.pixBytes; + const predictor = this.str.getByte(); + const rawBytes = this.str.getBytes(rowBytes); + this.eof = !rawBytes.length; + + if (this.eof) { + return; + } + + const bufferLength = this.bufferLength; + const buffer = this.ensureBuffer(bufferLength + rowBytes); + let prevRow = buffer.subarray(bufferLength - rowBytes, bufferLength); + + if (prevRow.length === 0) { + prevRow = new Uint8Array(rowBytes); + } + + let i, + j = bufferLength, + up, + c; + + switch (predictor) { + case 0: + for (i = 0; i < rowBytes; ++i) { + buffer[j++] = rawBytes[i]; + } + + break; + + case 1: + for (i = 0; i < pixBytes; ++i) { + buffer[j++] = rawBytes[i]; + } + + for (; i < rowBytes; ++i) { + buffer[j] = buffer[j - pixBytes] + rawBytes[i] & 0xff; + j++; + } + + break; + + case 2: + for (i = 0; i < rowBytes; ++i) { + buffer[j++] = prevRow[i] + rawBytes[i] & 0xff; + } + + break; + + case 3: + for (i = 0; i < pixBytes; ++i) { + buffer[j++] = (prevRow[i] >> 1) + rawBytes[i]; + } + + for (; i < rowBytes; ++i) { + buffer[j] = (prevRow[i] + buffer[j - pixBytes] >> 1) + rawBytes[i] & 0xff; + j++; + } + + break; + + case 4: + for (i = 0; i < pixBytes; ++i) { + up = prevRow[i]; + c = rawBytes[i]; + buffer[j++] = up + c; + } + + for (; i < rowBytes; ++i) { + up = prevRow[i]; + const upLeft = prevRow[i - pixBytes]; + const left = buffer[j - pixBytes]; + const p = left + up - upLeft; + let pa = p - left; + + if (pa < 0) { + pa = -pa; + } + + let pb = p - up; + + if (pb < 0) { + pb = -pb; + } + + let pc = p - upLeft; + + if (pc < 0) { + pc = -pc; + } + + c = rawBytes[i]; + + if (pa <= pb && pa <= pc) { + buffer[j++] = left + c; + } else if (pb <= pc) { + buffer[j++] = up + c; + } else { + buffer[j++] = upLeft + c; + } + } + + break; + + default: + throw new _util.FormatError(`Unsupported predictor: ${predictor}`); + } + + this.bufferLength += rowBytes; + } + +} + +exports.PredictorStream = PredictorStream; + +/***/ }), +/* 33 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.RunLengthStream = void 0; + +var _decode_stream = __w_pdfjs_require__(19); + +class RunLengthStream extends _decode_stream.DecodeStream { + constructor(str, maybeLength) { + super(maybeLength); + this.str = str; + this.dict = str.dict; + } + + readBlock() { + const repeatHeader = this.str.getBytes(2); + + if (!repeatHeader || repeatHeader.length < 2 || repeatHeader[0] === 128) { + this.eof = true; + return; + } + + let buffer; + let bufferLength = this.bufferLength; + let n = repeatHeader[0]; + + if (n < 128) { + buffer = this.ensureBuffer(bufferLength + n + 1); + buffer[bufferLength++] = repeatHeader[1]; + + if (n > 0) { + const source = this.str.getBytes(n); + buffer.set(source, bufferLength); + bufferLength += n; + } + } else { + n = 257 - n; + const b = repeatHeader[1]; + buffer = this.ensureBuffer(bufferLength + n + 1); + + for (let i = 0; i < n; i++) { + buffer[bufferLength++] = b; + } + } + + this.bufferLength = bufferLength; + } + +} + +exports.RunLengthStream = RunLengthStream; + +/***/ }), +/* 34 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Font = exports.ErrorFont = void 0; + +var _util = __w_pdfjs_require__(2); + +var _cff_parser = __w_pdfjs_require__(35); + +var _fonts_utils = __w_pdfjs_require__(38); + +var _unicode = __w_pdfjs_require__(40); + +var _glyphlist = __w_pdfjs_require__(39); + +var _encodings = __w_pdfjs_require__(37); + +var _standard_fonts = __w_pdfjs_require__(41); + +var _to_unicode_map = __w_pdfjs_require__(42); + +var _cff_font = __w_pdfjs_require__(43); + +var _font_renderer = __w_pdfjs_require__(44); + +var _metrics = __w_pdfjs_require__(45); + +var _glyf = __w_pdfjs_require__(46); + +var _cmap = __w_pdfjs_require__(16); + +var _opentype_file_builder = __w_pdfjs_require__(47); + +var _core_utils = __w_pdfjs_require__(6); + +var _stream = __w_pdfjs_require__(10); + +var _type1_font = __w_pdfjs_require__(48); + +const PRIVATE_USE_AREAS = [[0xe000, 0xf8ff], [0x100000, 0x10fffd]]; +const PDF_GLYPH_SPACE_UNITS = 1000; +const EXPORT_DATA_PROPERTIES = ["ascent", "bbox", "black", "bold", "charProcOperatorList", "composite", "cssFontInfo", "data", "defaultVMetrics", "defaultWidth", "descent", "fallbackName", "fontMatrix", "fontType", "isType3Font", "italic", "loadedName", "mimetype", "missingFile", "name", "remeasure", "subtype", "type", "vertical"]; +const EXPORT_DATA_EXTRA_PROPERTIES = ["cMap", "defaultEncoding", "differences", "isMonospace", "isSerifFont", "isSymbolicFont", "seacMap", "toFontChar", "toUnicode", "vmetrics", "widths"]; + +function adjustWidths(properties) { + if (!properties.fontMatrix) { + return; + } + + if (properties.fontMatrix[0] === _util.FONT_IDENTITY_MATRIX[0]) { + return; + } + + const scale = 0.001 / properties.fontMatrix[0]; + const glyphsWidths = properties.widths; + + for (const glyph in glyphsWidths) { + glyphsWidths[glyph] *= scale; + } + + properties.defaultWidth *= scale; +} + +function adjustToUnicode(properties, builtInEncoding) { + if (properties.isInternalFont) { + return; + } + + if (builtInEncoding === properties.defaultEncoding) { + return; + } + + if (properties.toUnicode instanceof _to_unicode_map.IdentityToUnicodeMap) { + return; + } + + const toUnicode = [], + glyphsUnicodeMap = (0, _glyphlist.getGlyphsUnicode)(); + + for (const charCode in builtInEncoding) { + if (properties.hasIncludedToUnicodeMap) { + if (properties.toUnicode.has(charCode)) { + continue; + } + } else if (properties.hasEncoding) { + if (properties.differences.length === 0 || properties.differences[charCode] !== undefined) { + continue; + } + } + + const glyphName = builtInEncoding[charCode]; + const unicode = (0, _unicode.getUnicodeForGlyph)(glyphName, glyphsUnicodeMap); + + if (unicode !== -1) { + toUnicode[charCode] = String.fromCharCode(unicode); + } + } + + if (toUnicode.length > 0) { + properties.toUnicode.amend(toUnicode); + } +} + +function amendFallbackToUnicode(properties) { + if (!properties.fallbackToUnicode) { + return; + } + + if (properties.toUnicode instanceof _to_unicode_map.IdentityToUnicodeMap) { + return; + } + + const toUnicode = []; + + for (const charCode in properties.fallbackToUnicode) { + if (properties.toUnicode.has(charCode)) { + continue; + } + + toUnicode[charCode] = properties.fallbackToUnicode[charCode]; + } + + if (toUnicode.length > 0) { + properties.toUnicode.amend(toUnicode); + } +} + +class Glyph { + constructor(originalCharCode, fontChar, unicode, accent, width, vmetric, operatorListId, isSpace, isInFont) { + this.originalCharCode = originalCharCode; + this.fontChar = fontChar; + this.unicode = unicode; + this.accent = accent; + this.width = width; + this.vmetric = vmetric; + this.operatorListId = operatorListId; + this.isSpace = isSpace; + this.isInFont = isInFont; + const category = (0, _unicode.getCharUnicodeCategory)(unicode); + this.isWhitespace = category.isWhitespace; + this.isZeroWidthDiacritic = category.isZeroWidthDiacritic; + this.isInvisibleFormatMark = category.isInvisibleFormatMark; + } + + matchesForCache(originalCharCode, fontChar, unicode, accent, width, vmetric, operatorListId, isSpace, isInFont) { + return this.originalCharCode === originalCharCode && this.fontChar === fontChar && this.unicode === unicode && this.accent === accent && this.width === width && this.vmetric === vmetric && this.operatorListId === operatorListId && this.isSpace === isSpace && this.isInFont === isInFont; + } + +} + +function int16(b0, b1) { + return (b0 << 8) + b1; +} + +function writeSignedInt16(bytes, index, value) { + bytes[index + 1] = value; + bytes[index] = value >>> 8; +} + +function signedInt16(b0, b1) { + const value = (b0 << 8) + b1; + return value & 1 << 15 ? value - 0x10000 : value; +} + +function int32(b0, b1, b2, b3) { + return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3; +} + +function string16(value) { + return String.fromCharCode(value >> 8 & 0xff, value & 0xff); +} + +function safeString16(value) { + if (value > 0x7fff) { + value = 0x7fff; + } else if (value < -0x8000) { + value = -0x8000; + } + + return String.fromCharCode(value >> 8 & 0xff, value & 0xff); +} + +function isTrueTypeFile(file) { + const header = file.peekBytes(4); + return (0, _core_utils.readUint32)(header, 0) === 0x00010000 || (0, _util.bytesToString)(header) === "true"; +} + +function isTrueTypeCollectionFile(file) { + const header = file.peekBytes(4); + return (0, _util.bytesToString)(header) === "ttcf"; +} + +function isOpenTypeFile(file) { + const header = file.peekBytes(4); + return (0, _util.bytesToString)(header) === "OTTO"; +} + +function isType1File(file) { + const header = file.peekBytes(2); + + if (header[0] === 0x25 && header[1] === 0x21) { + return true; + } + + if (header[0] === 0x80 && header[1] === 0x01) { + return true; + } + + return false; +} + +function isCFFFile(file) { + const header = file.peekBytes(4); + + if (header[0] >= 1 && header[3] >= 1 && header[3] <= 4) { + return true; + } + + return false; +} + +function getFontFileType(file, { + type, + subtype, + composite +}) { + let fileType, fileSubtype; + + if (isTrueTypeFile(file) || isTrueTypeCollectionFile(file)) { + if (composite) { + fileType = "CIDFontType2"; + } else { + fileType = "TrueType"; + } + } else if (isOpenTypeFile(file)) { + if (composite) { + fileType = "CIDFontType2"; + } else { + fileType = "OpenType"; + } + } else if (isType1File(file)) { + if (composite) { + fileType = "CIDFontType0"; + } else { + fileType = type === "MMType1" ? "MMType1" : "Type1"; + } + } else if (isCFFFile(file)) { + if (composite) { + fileType = "CIDFontType0"; + fileSubtype = "CIDFontType0C"; + } else { + fileType = type === "MMType1" ? "MMType1" : "Type1"; + fileSubtype = "Type1C"; + } + } else { + (0, _util.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."); + fileType = type; + fileSubtype = subtype; + } + + return [fileType, fileSubtype]; +} + +function applyStandardFontGlyphMap(map, glyphMap) { + for (const charCode in glyphMap) { + map[+charCode] = glyphMap[charCode]; + } +} + +function buildToFontChar(encoding, glyphsUnicodeMap, differences) { + const toFontChar = []; + let unicode; + + for (let i = 0, ii = encoding.length; i < ii; i++) { + unicode = (0, _unicode.getUnicodeForGlyph)(encoding[i], glyphsUnicodeMap); + + if (unicode !== -1) { + toFontChar[i] = unicode; + } + } + + for (const charCode in differences) { + unicode = (0, _unicode.getUnicodeForGlyph)(differences[charCode], glyphsUnicodeMap); + + if (unicode !== -1) { + toFontChar[+charCode] = unicode; + } + } + + return toFontChar; +} + +function convertCidString(charCode, cid, shouldThrow = false) { + switch (cid.length) { + case 1: + return cid.charCodeAt(0); + + case 2: + return cid.charCodeAt(0) << 8 | cid.charCodeAt(1); + } + + const msg = `Unsupported CID string (charCode ${charCode}): "${cid}".`; + + if (shouldThrow) { + throw new _util.FormatError(msg); + } + + (0, _util.warn)(msg); + return cid; +} + +function adjustMapping(charCodeToGlyphId, hasGlyph, newGlyphZeroId, toUnicode) { + const newMap = Object.create(null); + const toUnicodeExtraMap = new Map(); + const toFontChar = []; + const usedGlyphIds = new Set(); + let privateUseAreaIndex = 0; + const privateUseOffetStart = PRIVATE_USE_AREAS[privateUseAreaIndex][0]; + let nextAvailableFontCharCode = privateUseOffetStart; + let privateUseOffetEnd = PRIVATE_USE_AREAS[privateUseAreaIndex][1]; + + for (let originalCharCode in charCodeToGlyphId) { + originalCharCode |= 0; + let glyphId = charCodeToGlyphId[originalCharCode]; + + if (!hasGlyph(glyphId)) { + continue; + } + + if (nextAvailableFontCharCode > privateUseOffetEnd) { + privateUseAreaIndex++; + + if (privateUseAreaIndex >= PRIVATE_USE_AREAS.length) { + (0, _util.warn)("Ran out of space in font private use area."); + break; + } + + nextAvailableFontCharCode = PRIVATE_USE_AREAS[privateUseAreaIndex][0]; + privateUseOffetEnd = PRIVATE_USE_AREAS[privateUseAreaIndex][1]; + } + + const fontCharCode = nextAvailableFontCharCode++; + + if (glyphId === 0) { + glyphId = newGlyphZeroId; + } + + let unicode = toUnicode.get(originalCharCode); + + if (typeof unicode === "string") { + unicode = unicode.codePointAt(0); + } + + if (unicode && unicode < privateUseOffetStart && !usedGlyphIds.has(glyphId)) { + toUnicodeExtraMap.set(unicode, glyphId); + usedGlyphIds.add(glyphId); + } + + newMap[fontCharCode] = glyphId; + toFontChar[originalCharCode] = fontCharCode; + } + + return { + toFontChar, + charCodeToGlyphId: newMap, + toUnicodeExtraMap, + nextAvailableFontCharCode + }; +} + +function getRanges(glyphs, toUnicodeExtraMap, numGlyphs) { + const codes = []; + + for (const charCode in glyphs) { + if (glyphs[charCode] >= numGlyphs) { + continue; + } + + codes.push({ + fontCharCode: charCode | 0, + glyphId: glyphs[charCode] + }); + } + + if (toUnicodeExtraMap) { + for (const [unicode, glyphId] of toUnicodeExtraMap) { + if (glyphId >= numGlyphs) { + continue; + } + + codes.push({ + fontCharCode: unicode, + glyphId + }); + } + } + + if (codes.length === 0) { + codes.push({ + fontCharCode: 0, + glyphId: 0 + }); + } + + codes.sort(function fontGetRangesSort(a, b) { + return a.fontCharCode - b.fontCharCode; + }); + const ranges = []; + const length = codes.length; + + for (let n = 0; n < length;) { + const start = codes[n].fontCharCode; + const codeIndices = [codes[n].glyphId]; + ++n; + let end = start; + + while (n < length && end + 1 === codes[n].fontCharCode) { + codeIndices.push(codes[n].glyphId); + ++end; + ++n; + + if (end === 0xffff) { + break; + } + } + + ranges.push([start, end, codeIndices]); + } + + return ranges; +} + +function createCmapTable(glyphs, toUnicodeExtraMap, numGlyphs) { + const ranges = getRanges(glyphs, toUnicodeExtraMap, numGlyphs); + const numTables = ranges.at(-1)[1] > 0xffff ? 2 : 1; + let cmap = "\x00\x00" + string16(numTables) + "\x00\x03" + "\x00\x01" + (0, _util.string32)(4 + numTables * 8); + let i, ii, j, jj; + + for (i = ranges.length - 1; i >= 0; --i) { + if (ranges[i][0] <= 0xffff) { + break; + } + } + + const bmpLength = i + 1; + + if (ranges[i][0] < 0xffff && ranges[i][1] === 0xffff) { + ranges[i][1] = 0xfffe; + } + + const trailingRangesCount = ranges[i][1] < 0xffff ? 1 : 0; + const segCount = bmpLength + trailingRangesCount; + + const searchParams = _opentype_file_builder.OpenTypeFileBuilder.getSearchParams(segCount, 2); + + let startCount = ""; + let endCount = ""; + let idDeltas = ""; + let idRangeOffsets = ""; + let glyphsIds = ""; + let bias = 0; + let range, start, end, codes; + + for (i = 0, ii = bmpLength; i < ii; i++) { + range = ranges[i]; + start = range[0]; + end = range[1]; + startCount += string16(start); + endCount += string16(end); + codes = range[2]; + let contiguous = true; + + for (j = 1, jj = codes.length; j < jj; ++j) { + if (codes[j] !== codes[j - 1] + 1) { + contiguous = false; + break; + } + } + + if (!contiguous) { + const offset = (segCount - i) * 2 + bias * 2; + bias += end - start + 1; + idDeltas += string16(0); + idRangeOffsets += string16(offset); + + for (j = 0, jj = codes.length; j < jj; ++j) { + glyphsIds += string16(codes[j]); + } + } else { + const startCode = codes[0]; + idDeltas += string16(startCode - start & 0xffff); + idRangeOffsets += string16(0); + } + } + + if (trailingRangesCount > 0) { + endCount += "\xFF\xFF"; + startCount += "\xFF\xFF"; + idDeltas += "\x00\x01"; + idRangeOffsets += "\x00\x00"; + } + + const format314 = "\x00\x00" + string16(2 * segCount) + string16(searchParams.range) + string16(searchParams.entry) + string16(searchParams.rangeShift) + endCount + "\x00\x00" + startCount + idDeltas + idRangeOffsets + glyphsIds; + let format31012 = ""; + let header31012 = ""; + + if (numTables > 1) { + cmap += "\x00\x03" + "\x00\x0A" + (0, _util.string32)(4 + numTables * 8 + 4 + format314.length); + format31012 = ""; + + for (i = 0, ii = ranges.length; i < ii; i++) { + range = ranges[i]; + start = range[0]; + codes = range[2]; + let code = codes[0]; + + for (j = 1, jj = codes.length; j < jj; ++j) { + if (codes[j] !== codes[j - 1] + 1) { + end = range[0] + j - 1; + format31012 += (0, _util.string32)(start) + (0, _util.string32)(end) + (0, _util.string32)(code); + start = end + 1; + code = codes[j]; + } + } + + format31012 += (0, _util.string32)(start) + (0, _util.string32)(range[1]) + (0, _util.string32)(code); + } + + header31012 = "\x00\x0C" + "\x00\x00" + (0, _util.string32)(format31012.length + 16) + "\x00\x00\x00\x00" + (0, _util.string32)(format31012.length / 12); + } + + return cmap + "\x00\x04" + string16(format314.length + 4) + format314 + header31012 + format31012; +} + +function validateOS2Table(os2, file) { + file.pos = (file.start || 0) + os2.offset; + const version = file.getUint16(); + file.skip(60); + const selection = file.getUint16(); + + if (version < 4 && selection & 0x0300) { + return false; + } + + const firstChar = file.getUint16(); + const lastChar = file.getUint16(); + + if (firstChar > lastChar) { + return false; + } + + file.skip(6); + const usWinAscent = file.getUint16(); + + if (usWinAscent === 0) { + return false; + } + + os2.data[8] = os2.data[9] = 0; + return true; +} + +function createOS2Table(properties, charstrings, override) { + override = override || { + unitsPerEm: 0, + yMax: 0, + yMin: 0, + ascent: 0, + descent: 0 + }; + let ulUnicodeRange1 = 0; + let ulUnicodeRange2 = 0; + let ulUnicodeRange3 = 0; + let ulUnicodeRange4 = 0; + let firstCharIndex = null; + let lastCharIndex = 0; + + if (charstrings) { + for (let code in charstrings) { + code |= 0; + + if (firstCharIndex > code || !firstCharIndex) { + firstCharIndex = code; + } + + if (lastCharIndex < code) { + lastCharIndex = code; + } + + const position = (0, _unicode.getUnicodeRangeFor)(code); + + if (position < 32) { + ulUnicodeRange1 |= 1 << position; + } else if (position < 64) { + ulUnicodeRange2 |= 1 << position - 32; + } else if (position < 96) { + ulUnicodeRange3 |= 1 << position - 64; + } else if (position < 123) { + ulUnicodeRange4 |= 1 << position - 96; + } else { + throw new _util.FormatError("Unicode ranges Bits > 123 are reserved for internal usage"); + } + } + + if (lastCharIndex > 0xffff) { + lastCharIndex = 0xffff; + } + } else { + firstCharIndex = 0; + lastCharIndex = 255; + } + + const bbox = properties.bbox || [0, 0, 0, 0]; + const unitsPerEm = override.unitsPerEm || 1 / (properties.fontMatrix || _util.FONT_IDENTITY_MATRIX)[0]; + const scale = properties.ascentScaled ? 1.0 : unitsPerEm / PDF_GLYPH_SPACE_UNITS; + const typoAscent = override.ascent || Math.round(scale * (properties.ascent || bbox[3])); + let typoDescent = override.descent || Math.round(scale * (properties.descent || bbox[1])); + + if (typoDescent > 0 && properties.descent > 0 && bbox[1] < 0) { + typoDescent = -typoDescent; + } + + const winAscent = override.yMax || typoAscent; + const winDescent = -override.yMin || -typoDescent; + return "\x00\x03" + "\x02\x24" + "\x01\xF4" + "\x00\x05" + "\x00\x00" + "\x02\x8A" + "\x02\xBB" + "\x00\x00" + "\x00\x8C" + "\x02\x8A" + "\x02\xBB" + "\x00\x00" + "\x01\xDF" + "\x00\x31" + "\x01\x02" + "\x00\x00" + "\x00\x00\x06" + String.fromCharCode(properties.fixedPitch ? 0x09 : 0x00) + "\x00\x00\x00\x00\x00\x00" + (0, _util.string32)(ulUnicodeRange1) + (0, _util.string32)(ulUnicodeRange2) + (0, _util.string32)(ulUnicodeRange3) + (0, _util.string32)(ulUnicodeRange4) + "\x2A\x32\x31\x2A" + string16(properties.italicAngle ? 1 : 0) + string16(firstCharIndex || properties.firstChar) + string16(lastCharIndex || properties.lastChar) + string16(typoAscent) + string16(typoDescent) + "\x00\x64" + string16(winAscent) + string16(winDescent) + "\x00\x00\x00\x00" + "\x00\x00\x00\x00" + string16(properties.xHeight) + string16(properties.capHeight) + string16(0) + string16(firstCharIndex || properties.firstChar) + "\x00\x03"; +} + +function createPostTable(properties) { + const angle = Math.floor(properties.italicAngle * 2 ** 16); + return "\x00\x03\x00\x00" + (0, _util.string32)(angle) + "\x00\x00" + "\x00\x00" + (0, _util.string32)(properties.fixedPitch ? 1 : 0) + "\x00\x00\x00\x00" + "\x00\x00\x00\x00" + "\x00\x00\x00\x00" + "\x00\x00\x00\x00"; +} + +function createPostscriptName(name) { + return name.replace(/[^\x21-\x7E]|[[\](){}<>/%]/g, "").slice(0, 63); +} + +function createNameTable(name, proto) { + if (!proto) { + proto = [[], []]; + } + + const strings = [proto[0][0] || "Original licence", proto[0][1] || name, proto[0][2] || "Unknown", proto[0][3] || "uniqueID", proto[0][4] || name, proto[0][5] || "Version 0.11", proto[0][6] || createPostscriptName(name), proto[0][7] || "Unknown", proto[0][8] || "Unknown", proto[0][9] || "Unknown"]; + const stringsUnicode = []; + let i, ii, j, jj, str; + + for (i = 0, ii = strings.length; i < ii; i++) { + str = proto[1][i] || strings[i]; + const strBufUnicode = []; + + for (j = 0, jj = str.length; j < jj; j++) { + strBufUnicode.push(string16(str.charCodeAt(j))); + } + + stringsUnicode.push(strBufUnicode.join("")); + } + + const names = [strings, stringsUnicode]; + const platforms = ["\x00\x01", "\x00\x03"]; + const encodings = ["\x00\x00", "\x00\x01"]; + const languages = ["\x00\x00", "\x04\x09"]; + const namesRecordCount = strings.length * platforms.length; + let nameTable = "\x00\x00" + string16(namesRecordCount) + string16(namesRecordCount * 12 + 6); + let strOffset = 0; + + for (i = 0, ii = platforms.length; i < ii; i++) { + const strs = names[i]; + + for (j = 0, jj = strs.length; j < jj; j++) { + str = strs[j]; + const nameRecord = platforms[i] + encodings[i] + languages[i] + string16(j) + string16(str.length) + string16(strOffset); + nameTable += nameRecord; + strOffset += str.length; + } + } + + nameTable += strings.join("") + stringsUnicode.join(""); + return nameTable; +} + +class Font { + constructor(name, file, properties) { + this.name = name; + this.psName = null; + this.mimetype = null; + this.disableFontFace = false; + this.loadedName = properties.loadedName; + this.isType3Font = properties.isType3Font; + this.missingFile = false; + this.cssFontInfo = properties.cssFontInfo; + this._charsCache = Object.create(null); + this._glyphCache = Object.create(null); + let isSerifFont = !!(properties.flags & _fonts_utils.FontFlags.Serif); + + if (!isSerifFont && !properties.isSimulatedFlags) { + const baseName = name.replace(/[,_]/g, "-").split("-")[0], + serifFonts = (0, _standard_fonts.getSerifFonts)(); + + for (const namePart of baseName.split("+")) { + if (serifFonts[namePart]) { + isSerifFont = true; + break; + } + } + } + + this.isSerifFont = isSerifFont; + this.isSymbolicFont = !!(properties.flags & _fonts_utils.FontFlags.Symbolic); + this.isMonospace = !!(properties.flags & _fonts_utils.FontFlags.FixedPitch); + let type = properties.type; + let subtype = properties.subtype; + this.type = type; + this.subtype = subtype; + let fallbackName = "sans-serif"; + + if (this.isMonospace) { + fallbackName = "monospace"; + } else if (this.isSerifFont) { + fallbackName = "serif"; + } + + this.fallbackName = fallbackName; + this.differences = properties.differences; + this.widths = properties.widths; + this.defaultWidth = properties.defaultWidth; + this.composite = properties.composite; + this.cMap = properties.cMap; + this.capHeight = properties.capHeight / PDF_GLYPH_SPACE_UNITS; + this.ascent = properties.ascent / PDF_GLYPH_SPACE_UNITS; + this.descent = properties.descent / PDF_GLYPH_SPACE_UNITS; + this.lineHeight = this.ascent - this.descent; + this.fontMatrix = properties.fontMatrix; + this.bbox = properties.bbox; + this.defaultEncoding = properties.defaultEncoding; + this.toUnicode = properties.toUnicode; + this.toFontChar = []; + + if (properties.type === "Type3") { + for (let charCode = 0; charCode < 256; charCode++) { + this.toFontChar[charCode] = this.differences[charCode] || properties.defaultEncoding[charCode]; + } + + this.fontType = _util.FontType.TYPE3; + return; + } + + this.cidEncoding = properties.cidEncoding || ""; + this.vertical = !!properties.vertical; + + if (this.vertical) { + this.vmetrics = properties.vmetrics; + this.defaultVMetrics = properties.defaultVMetrics; + } + + if (!file || file.isEmpty) { + if (file) { + (0, _util.warn)('Font file is empty in "' + name + '" (' + this.loadedName + ")"); + } + + this.fallbackToSystemFont(properties); + return; + } + + [type, subtype] = getFontFileType(file, properties); + + if (type !== this.type || subtype !== this.subtype) { + (0, _util.info)("Inconsistent font file Type/SubType, expected: " + `${this.type}/${this.subtype} but found: ${type}/${subtype}.`); + } + + let data; + + try { + switch (type) { + case "MMType1": + (0, _util.info)("MMType1 font (" + name + "), falling back to Type1."); + + case "Type1": + case "CIDFontType0": + this.mimetype = "font/opentype"; + const cff = subtype === "Type1C" || subtype === "CIDFontType0C" ? new _cff_font.CFFFont(file, properties) : new _type1_font.Type1Font(name, file, properties); + adjustWidths(properties); + data = this.convert(name, cff, properties); + break; + + case "OpenType": + case "TrueType": + case "CIDFontType2": + this.mimetype = "font/opentype"; + data = this.checkAndRepair(name, file, properties); + + if (this.isOpenType) { + adjustWidths(properties); + type = "OpenType"; + } + + break; + + default: + throw new _util.FormatError(`Font ${type} is not supported`); + } + } catch (e) { + (0, _util.warn)(e); + this.fallbackToSystemFont(properties); + return; + } + + amendFallbackToUnicode(properties); + this.data = data; + this.fontType = (0, _fonts_utils.getFontType)(type, subtype, properties.isStandardFont); + this.fontMatrix = properties.fontMatrix; + this.widths = properties.widths; + this.defaultWidth = properties.defaultWidth; + this.toUnicode = properties.toUnicode; + this.seacMap = properties.seacMap; + } + + get renderer() { + const renderer = _font_renderer.FontRendererFactory.create(this, _fonts_utils.SEAC_ANALYSIS_ENABLED); + + return (0, _util.shadow)(this, "renderer", renderer); + } + + exportData(extraProperties = false) { + const exportDataProperties = extraProperties ? [...EXPORT_DATA_PROPERTIES, ...EXPORT_DATA_EXTRA_PROPERTIES] : EXPORT_DATA_PROPERTIES; + const data = Object.create(null); + let property, value; + + for (property of exportDataProperties) { + value = this[property]; + + if (value !== undefined) { + data[property] = value; + } + } + + return data; + } + + fallbackToSystemFont(properties) { + this.missingFile = true; + const name = this.name; + const type = this.type; + const subtype = this.subtype; + let fontName = (0, _fonts_utils.normalizeFontName)(name); + const stdFontMap = (0, _standard_fonts.getStdFontMap)(), + nonStdFontMap = (0, _standard_fonts.getNonStdFontMap)(); + const isStandardFont = !!stdFontMap[fontName]; + const isMappedToStandardFont = !!(nonStdFontMap[fontName] && stdFontMap[nonStdFontMap[fontName]]); + fontName = stdFontMap[fontName] || nonStdFontMap[fontName] || fontName; + const fontBasicMetricsMap = (0, _metrics.getFontBasicMetrics)(); + const metrics = fontBasicMetricsMap[fontName]; + + if (metrics) { + if (isNaN(this.ascent)) { + this.ascent = metrics.ascent / PDF_GLYPH_SPACE_UNITS; + } + + if (isNaN(this.descent)) { + this.descent = metrics.descent / PDF_GLYPH_SPACE_UNITS; + } + + if (isNaN(this.capHeight)) { + this.capHeight = metrics.capHeight / PDF_GLYPH_SPACE_UNITS; + } + } + + this.bold = fontName.search(/bold/gi) !== -1; + this.italic = fontName.search(/oblique/gi) !== -1 || fontName.search(/italic/gi) !== -1; + this.black = name.search(/Black/g) !== -1; + const isNarrow = name.search(/Narrow/g) !== -1; + this.remeasure = (!isStandardFont || isNarrow) && Object.keys(this.widths).length > 0; + + if ((isStandardFont || isMappedToStandardFont) && type === "CIDFontType2" && this.cidEncoding.startsWith("Identity-")) { + const cidToGidMap = properties.cidToGidMap; + const map = []; + applyStandardFontGlyphMap(map, (0, _standard_fonts.getGlyphMapForStandardFonts)()); + + if (/Arial-?Black/i.test(name)) { + applyStandardFontGlyphMap(map, (0, _standard_fonts.getSupplementalGlyphMapForArialBlack)()); + } else if (/Calibri/i.test(name)) { + applyStandardFontGlyphMap(map, (0, _standard_fonts.getSupplementalGlyphMapForCalibri)()); + } + + if (cidToGidMap) { + for (const charCode in map) { + const cid = map[charCode]; + + if (cidToGidMap[cid] !== undefined) { + map[+charCode] = cidToGidMap[cid]; + } + } + + if (cidToGidMap.length !== this.toUnicode.length && properties.hasIncludedToUnicodeMap && this.toUnicode instanceof _to_unicode_map.IdentityToUnicodeMap) { + this.toUnicode.forEach(function (charCode, unicodeCharCode) { + const cid = map[charCode]; + + if (cidToGidMap[cid] === undefined) { + map[+charCode] = unicodeCharCode; + } + }); + } + } + + if (!(this.toUnicode instanceof _to_unicode_map.IdentityToUnicodeMap)) { + this.toUnicode.forEach(function (charCode, unicodeCharCode) { + map[+charCode] = unicodeCharCode; + }); + } + + this.toFontChar = map; + this.toUnicode = new _to_unicode_map.ToUnicodeMap(map); + } else if (/Symbol/i.test(fontName)) { + this.toFontChar = buildToFontChar(_encodings.SymbolSetEncoding, (0, _glyphlist.getGlyphsUnicode)(), this.differences); + } else if (/Dingbats/i.test(fontName)) { + if (/Wingdings/i.test(name)) { + (0, _util.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."); + } + + this.toFontChar = buildToFontChar(_encodings.ZapfDingbatsEncoding, (0, _glyphlist.getDingbatsGlyphsUnicode)(), this.differences); + } else if (isStandardFont) { + const map = buildToFontChar(this.defaultEncoding, (0, _glyphlist.getGlyphsUnicode)(), this.differences); + + if (type === "CIDFontType2" && !this.cidEncoding.startsWith("Identity-") && !(this.toUnicode instanceof _to_unicode_map.IdentityToUnicodeMap)) { + this.toUnicode.forEach(function (charCode, unicodeCharCode) { + map[+charCode] = unicodeCharCode; + }); + } + + this.toFontChar = map; + } else { + const glyphsUnicodeMap = (0, _glyphlist.getGlyphsUnicode)(); + const map = []; + this.toUnicode.forEach((charCode, unicodeCharCode) => { + if (!this.composite) { + const glyphName = this.differences[charCode] || this.defaultEncoding[charCode]; + const unicode = (0, _unicode.getUnicodeForGlyph)(glyphName, glyphsUnicodeMap); + + if (unicode !== -1) { + unicodeCharCode = unicode; + } + } + + map[+charCode] = unicodeCharCode; + }); + + if (this.composite && this.toUnicode instanceof _to_unicode_map.IdentityToUnicodeMap) { + if (/Verdana/i.test(name)) { + applyStandardFontGlyphMap(map, (0, _standard_fonts.getGlyphMapForStandardFonts)()); + } + } + + this.toFontChar = map; + } + + amendFallbackToUnicode(properties); + this.loadedName = fontName.split("-")[0]; + this.fontType = (0, _fonts_utils.getFontType)(type, subtype, properties.isStandardFont); + } + + checkAndRepair(name, font, properties) { + const VALID_TABLES = ["OS/2", "cmap", "head", "hhea", "hmtx", "maxp", "name", "post", "loca", "glyf", "fpgm", "prep", "cvt ", "CFF "]; + + function readTables(file, numTables) { + const tables = Object.create(null); + tables["OS/2"] = null; + tables.cmap = null; + tables.head = null; + tables.hhea = null; + tables.hmtx = null; + tables.maxp = null; + tables.name = null; + tables.post = null; + + for (let i = 0; i < numTables; i++) { + const table = readTableEntry(file); + + if (!VALID_TABLES.includes(table.tag)) { + continue; + } + + if (table.length === 0) { + continue; + } + + tables[table.tag] = table; + } + + return tables; + } + + function readTableEntry(file) { + const tag = file.getString(4); + const checksum = file.getInt32() >>> 0; + const offset = file.getInt32() >>> 0; + const length = file.getInt32() >>> 0; + const previousPosition = file.pos; + file.pos = file.start || 0; + file.skip(offset); + const data = file.getBytes(length); + file.pos = previousPosition; + + if (tag === "head") { + data[8] = data[9] = data[10] = data[11] = 0; + data[17] |= 0x20; + } + + return { + tag, + checksum, + length, + offset, + data + }; + } + + function readOpenTypeHeader(ttf) { + return { + version: ttf.getString(4), + numTables: ttf.getUint16(), + searchRange: ttf.getUint16(), + entrySelector: ttf.getUint16(), + rangeShift: ttf.getUint16() + }; + } + + function readTrueTypeCollectionHeader(ttc) { + const ttcTag = ttc.getString(4); + (0, _util.assert)(ttcTag === "ttcf", "Must be a TrueType Collection font."); + const majorVersion = ttc.getUint16(); + const minorVersion = ttc.getUint16(); + const numFonts = ttc.getInt32() >>> 0; + const offsetTable = []; + + for (let i = 0; i < numFonts; i++) { + offsetTable.push(ttc.getInt32() >>> 0); + } + + const header = { + ttcTag, + majorVersion, + minorVersion, + numFonts, + offsetTable + }; + + switch (majorVersion) { + case 1: + return header; + + case 2: + header.dsigTag = ttc.getInt32() >>> 0; + header.dsigLength = ttc.getInt32() >>> 0; + header.dsigOffset = ttc.getInt32() >>> 0; + return header; + } + + throw new _util.FormatError(`Invalid TrueType Collection majorVersion: ${majorVersion}.`); + } + + function readTrueTypeCollectionData(ttc, fontName) { + const { + numFonts, + offsetTable + } = readTrueTypeCollectionHeader(ttc); + const fontNameParts = fontName.split("+"); + let fallbackData; + + for (let i = 0; i < numFonts; i++) { + ttc.pos = (ttc.start || 0) + offsetTable[i]; + const potentialHeader = readOpenTypeHeader(ttc); + const potentialTables = readTables(ttc, potentialHeader.numTables); + + if (!potentialTables.name) { + throw new _util.FormatError('TrueType Collection font must contain a "name" table.'); + } + + const nameTable = readNameTable(potentialTables.name); + + for (let j = 0, jj = nameTable.length; j < jj; j++) { + for (let k = 0, kk = nameTable[j].length; k < kk; k++) { + const nameEntry = nameTable[j][k] && nameTable[j][k].replace(/\s/g, ""); + + if (!nameEntry) { + continue; + } + + if (nameEntry === fontName) { + return { + header: potentialHeader, + tables: potentialTables + }; + } + + if (fontNameParts.length < 2) { + continue; + } + + for (const part of fontNameParts) { + if (nameEntry === part) { + fallbackData = { + name: part, + header: potentialHeader, + tables: potentialTables + }; + } + } + } + } + } + + if (fallbackData) { + (0, _util.warn)(`TrueType Collection does not contain "${fontName}" font, ` + `falling back to "${fallbackData.name}" font instead.`); + return { + header: fallbackData.header, + tables: fallbackData.tables + }; + } + + throw new _util.FormatError(`TrueType Collection does not contain "${fontName}" font.`); + } + + function readCmapTable(cmap, file, isSymbolicFont, hasEncoding) { + if (!cmap) { + (0, _util.warn)("No cmap table available."); + return { + platformId: -1, + encodingId: -1, + mappings: [], + hasShortCmap: false + }; + } + + let segment; + let start = (file.start || 0) + cmap.offset; + file.pos = start; + file.skip(2); + const numTables = file.getUint16(); + let potentialTable; + let canBreak = false; + + for (let i = 0; i < numTables; i++) { + const platformId = file.getUint16(); + const encodingId = file.getUint16(); + const offset = file.getInt32() >>> 0; + let useTable = false; + + if (potentialTable && potentialTable.platformId === platformId && potentialTable.encodingId === encodingId) { + continue; + } + + if (platformId === 0 && (encodingId === 0 || encodingId === 1 || encodingId === 3)) { + useTable = true; + } else if (platformId === 1 && encodingId === 0) { + useTable = true; + } else if (platformId === 3 && encodingId === 1 && (hasEncoding || !potentialTable)) { + useTable = true; + + if (!isSymbolicFont) { + canBreak = true; + } + } else if (isSymbolicFont && platformId === 3 && encodingId === 0) { + useTable = true; + let correctlySorted = true; + + if (i < numTables - 1) { + const nextBytes = file.peekBytes(2), + nextPlatformId = int16(nextBytes[0], nextBytes[1]); + + if (nextPlatformId < platformId) { + correctlySorted = false; + } + } + + if (correctlySorted) { + canBreak = true; + } + } + + if (useTable) { + potentialTable = { + platformId, + encodingId, + offset + }; + } + + if (canBreak) { + break; + } + } + + if (potentialTable) { + file.pos = start + potentialTable.offset; + } + + if (!potentialTable || file.peekByte() === -1) { + (0, _util.warn)("Could not find a preferred cmap table."); + return { + platformId: -1, + encodingId: -1, + mappings: [], + hasShortCmap: false + }; + } + + const format = file.getUint16(); + let hasShortCmap = false; + const mappings = []; + let j, glyphId; + + if (format === 0) { + file.skip(2 + 2); + + for (j = 0; j < 256; j++) { + const index = file.getByte(); + + if (!index) { + continue; + } + + mappings.push({ + charCode: j, + glyphId: index + }); + } + + hasShortCmap = true; + } else if (format === 2) { + file.skip(2 + 2); + const subHeaderKeys = []; + let maxSubHeaderKey = 0; + + for (let i = 0; i < 256; i++) { + const subHeaderKey = file.getUint16() >> 3; + subHeaderKeys.push(subHeaderKey); + maxSubHeaderKey = Math.max(subHeaderKey, maxSubHeaderKey); + } + + const subHeaders = []; + + for (let i = 0; i <= maxSubHeaderKey; i++) { + subHeaders.push({ + firstCode: file.getUint16(), + entryCount: file.getUint16(), + idDelta: signedInt16(file.getByte(), file.getByte()), + idRangePos: file.pos + file.getUint16() + }); + } + + for (let i = 0; i < 256; i++) { + if (subHeaderKeys[i] === 0) { + file.pos = subHeaders[0].idRangePos + 2 * i; + glyphId = file.getUint16(); + mappings.push({ + charCode: i, + glyphId + }); + } else { + const s = subHeaders[subHeaderKeys[i]]; + + for (j = 0; j < s.entryCount; j++) { + const charCode = (i << 8) + j + s.firstCode; + file.pos = s.idRangePos + 2 * j; + glyphId = file.getUint16(); + + if (glyphId !== 0) { + glyphId = (glyphId + s.idDelta) % 65536; + } + + mappings.push({ + charCode, + glyphId + }); + } + } + } + } else if (format === 4) { + file.skip(2 + 2); + const segCount = file.getUint16() >> 1; + file.skip(6); + const segments = []; + let segIndex; + + for (segIndex = 0; segIndex < segCount; segIndex++) { + segments.push({ + end: file.getUint16() + }); + } + + file.skip(2); + + for (segIndex = 0; segIndex < segCount; segIndex++) { + segments[segIndex].start = file.getUint16(); + } + + for (segIndex = 0; segIndex < segCount; segIndex++) { + segments[segIndex].delta = file.getUint16(); + } + + let offsetsCount = 0, + offsetIndex; + + for (segIndex = 0; segIndex < segCount; segIndex++) { + segment = segments[segIndex]; + const rangeOffset = file.getUint16(); + + if (!rangeOffset) { + segment.offsetIndex = -1; + continue; + } + + offsetIndex = (rangeOffset >> 1) - (segCount - segIndex); + segment.offsetIndex = offsetIndex; + offsetsCount = Math.max(offsetsCount, offsetIndex + segment.end - segment.start + 1); + } + + const offsets = []; + + for (j = 0; j < offsetsCount; j++) { + offsets.push(file.getUint16()); + } + + for (segIndex = 0; segIndex < segCount; segIndex++) { + segment = segments[segIndex]; + start = segment.start; + const end = segment.end; + const delta = segment.delta; + offsetIndex = segment.offsetIndex; + + for (j = start; j <= end; j++) { + if (j === 0xffff) { + continue; + } + + glyphId = offsetIndex < 0 ? j : offsets[offsetIndex + j - start]; + glyphId = glyphId + delta & 0xffff; + mappings.push({ + charCode: j, + glyphId + }); + } + } + } else if (format === 6) { + file.skip(2 + 2); + const firstCode = file.getUint16(); + const entryCount = file.getUint16(); + + for (j = 0; j < entryCount; j++) { + glyphId = file.getUint16(); + const charCode = firstCode + j; + mappings.push({ + charCode, + glyphId + }); + } + } else if (format === 12) { + file.skip(2 + 4 + 4); + const nGroups = file.getInt32() >>> 0; + + for (j = 0; j < nGroups; j++) { + const startCharCode = file.getInt32() >>> 0; + const endCharCode = file.getInt32() >>> 0; + let glyphCode = file.getInt32() >>> 0; + + for (let charCode = startCharCode; charCode <= endCharCode; charCode++) { + mappings.push({ + charCode, + glyphId: glyphCode++ + }); + } + } + } else { + (0, _util.warn)("cmap table has unsupported format: " + format); + return { + platformId: -1, + encodingId: -1, + mappings: [], + hasShortCmap: false + }; + } + + mappings.sort(function (a, b) { + return a.charCode - b.charCode; + }); + + for (let i = 1; i < mappings.length; i++) { + if (mappings[i - 1].charCode === mappings[i].charCode) { + mappings.splice(i, 1); + i--; + } + } + + return { + platformId: potentialTable.platformId, + encodingId: potentialTable.encodingId, + mappings, + hasShortCmap + }; + } + + function sanitizeMetrics(file, header, metrics, headTable, numGlyphs, dupFirstEntry) { + if (!header) { + if (metrics) { + metrics.data = null; + } + + return; + } + + file.pos = (file.start || 0) + header.offset; + file.pos += 4; + file.pos += 2; + file.pos += 2; + file.pos += 2; + file.pos += 2; + file.pos += 2; + file.pos += 2; + file.pos += 2; + file.pos += 2; + file.pos += 2; + const caretOffset = file.getUint16(); + file.pos += 8; + file.pos += 2; + let numOfMetrics = file.getUint16(); + + if (caretOffset !== 0) { + const macStyle = int16(headTable.data[44], headTable.data[45]); + + if (!(macStyle & 2)) { + header.data[22] = 0; + header.data[23] = 0; + } + } + + if (numOfMetrics > numGlyphs) { + (0, _util.info)(`The numOfMetrics (${numOfMetrics}) should not be ` + `greater than the numGlyphs (${numGlyphs}).`); + numOfMetrics = numGlyphs; + header.data[34] = (numOfMetrics & 0xff00) >> 8; + header.data[35] = numOfMetrics & 0x00ff; + } + + const numOfSidebearings = numGlyphs - numOfMetrics; + const numMissing = numOfSidebearings - (metrics.length - numOfMetrics * 4 >> 1); + + if (numMissing > 0) { + const entries = new Uint8Array(metrics.length + numMissing * 2); + entries.set(metrics.data); + + if (dupFirstEntry) { + entries[metrics.length] = metrics.data[2]; + entries[metrics.length + 1] = metrics.data[3]; + } + + metrics.data = entries; + } + } + + function sanitizeGlyph(source, sourceStart, sourceEnd, dest, destStart, hintsValid) { + const glyphProfile = { + length: 0, + sizeOfInstructions: 0 + }; + + if (sourceEnd - sourceStart <= 12) { + return glyphProfile; + } + + const glyf = source.subarray(sourceStart, sourceEnd); + let contoursCount = signedInt16(glyf[0], glyf[1]); + + if (contoursCount < 0) { + contoursCount = -1; + writeSignedInt16(glyf, 0, contoursCount); + dest.set(glyf, destStart); + glyphProfile.length = glyf.length; + return glyphProfile; + } + + let i, + j = 10, + flagsCount = 0; + + for (i = 0; i < contoursCount; i++) { + const endPoint = glyf[j] << 8 | glyf[j + 1]; + flagsCount = endPoint + 1; + j += 2; + } + + const instructionsStart = j; + const instructionsLength = glyf[j] << 8 | glyf[j + 1]; + glyphProfile.sizeOfInstructions = instructionsLength; + j += 2 + instructionsLength; + const instructionsEnd = j; + let coordinatesLength = 0; + + for (i = 0; i < flagsCount; i++) { + const flag = glyf[j++]; + + if (flag & 0xc0) { + glyf[j - 1] = flag & 0x3f; + } + + let xLength = 2; + + if (flag & 2) { + xLength = 1; + } else if (flag & 16) { + xLength = 0; + } + + let yLength = 2; + + if (flag & 4) { + yLength = 1; + } else if (flag & 32) { + yLength = 0; + } + + const xyLength = xLength + yLength; + coordinatesLength += xyLength; + + if (flag & 8) { + const repeat = glyf[j++]; + i += repeat; + coordinatesLength += repeat * xyLength; + } + } + + if (coordinatesLength === 0) { + return glyphProfile; + } + + let glyphDataLength = j + coordinatesLength; + + if (glyphDataLength > glyf.length) { + return glyphProfile; + } + + if (!hintsValid && instructionsLength > 0) { + dest.set(glyf.subarray(0, instructionsStart), destStart); + dest.set([0, 0], destStart + instructionsStart); + dest.set(glyf.subarray(instructionsEnd, glyphDataLength), destStart + instructionsStart + 2); + glyphDataLength -= instructionsLength; + + if (glyf.length - glyphDataLength > 3) { + glyphDataLength = glyphDataLength + 3 & ~3; + } + + glyphProfile.length = glyphDataLength; + return glyphProfile; + } + + if (glyf.length - glyphDataLength > 3) { + glyphDataLength = glyphDataLength + 3 & ~3; + dest.set(glyf.subarray(0, glyphDataLength), destStart); + glyphProfile.length = glyphDataLength; + return glyphProfile; + } + + dest.set(glyf, destStart); + glyphProfile.length = glyf.length; + return glyphProfile; + } + + function sanitizeHead(head, numGlyphs, locaLength) { + const data = head.data; + const version = int32(data[0], data[1], data[2], data[3]); + + if (version >> 16 !== 1) { + (0, _util.info)("Attempting to fix invalid version in head table: " + version); + data[0] = 0; + data[1] = 1; + data[2] = 0; + data[3] = 0; + } + + const indexToLocFormat = int16(data[50], data[51]); + + if (indexToLocFormat < 0 || indexToLocFormat > 1) { + (0, _util.info)("Attempting to fix invalid indexToLocFormat in head table: " + indexToLocFormat); + const numGlyphsPlusOne = numGlyphs + 1; + + if (locaLength === numGlyphsPlusOne << 1) { + data[50] = 0; + data[51] = 0; + } else if (locaLength === numGlyphsPlusOne << 2) { + data[50] = 0; + data[51] = 1; + } else { + throw new _util.FormatError("Could not fix indexToLocFormat: " + indexToLocFormat); + } + } + } + + function sanitizeGlyphLocations(loca, glyf, numGlyphs, isGlyphLocationsLong, hintsValid, dupFirstEntry, maxSizeOfInstructions) { + let itemSize, itemDecode, itemEncode; + + if (isGlyphLocationsLong) { + itemSize = 4; + + itemDecode = function fontItemDecodeLong(data, offset) { + return data[offset] << 24 | data[offset + 1] << 16 | data[offset + 2] << 8 | data[offset + 3]; + }; + + itemEncode = function fontItemEncodeLong(data, offset, value) { + data[offset] = value >>> 24 & 0xff; + data[offset + 1] = value >> 16 & 0xff; + data[offset + 2] = value >> 8 & 0xff; + data[offset + 3] = value & 0xff; + }; + } else { + itemSize = 2; + + itemDecode = function fontItemDecode(data, offset) { + return data[offset] << 9 | data[offset + 1] << 1; + }; + + itemEncode = function fontItemEncode(data, offset, value) { + data[offset] = value >> 9 & 0xff; + data[offset + 1] = value >> 1 & 0xff; + }; + } + + const numGlyphsOut = dupFirstEntry ? numGlyphs + 1 : numGlyphs; + const locaDataSize = itemSize * (1 + numGlyphsOut); + const locaData = new Uint8Array(locaDataSize); + locaData.set(loca.data.subarray(0, locaDataSize)); + loca.data = locaData; + const oldGlyfData = glyf.data; + const oldGlyfDataLength = oldGlyfData.length; + const newGlyfData = new Uint8Array(oldGlyfDataLength); + let i, j; + const locaEntries = []; + + for (i = 0, j = 0; i < numGlyphs + 1; i++, j += itemSize) { + let offset = itemDecode(locaData, j); + + if (offset > oldGlyfDataLength) { + offset = oldGlyfDataLength; + } + + locaEntries.push({ + index: i, + offset, + endOffset: 0 + }); + } + + locaEntries.sort((a, b) => { + return a.offset - b.offset; + }); + + for (i = 0; i < numGlyphs; i++) { + locaEntries[i].endOffset = locaEntries[i + 1].offset; + } + + locaEntries.sort((a, b) => { + return a.index - b.index; + }); + + for (i = 0; i < numGlyphs; i++) { + const { + offset, + endOffset + } = locaEntries[i]; + + if (offset !== 0 || endOffset !== 0) { + break; + } + + const nextOffset = locaEntries[i + 1].offset; + + if (nextOffset === 0) { + continue; + } + + locaEntries[i].endOffset = nextOffset; + break; + } + + const missingGlyphs = Object.create(null); + let writeOffset = 0; + itemEncode(locaData, 0, writeOffset); + + for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) { + const glyphProfile = sanitizeGlyph(oldGlyfData, locaEntries[i].offset, locaEntries[i].endOffset, newGlyfData, writeOffset, hintsValid); + const newLength = glyphProfile.length; + + if (newLength === 0) { + missingGlyphs[i] = true; + } + + if (glyphProfile.sizeOfInstructions > maxSizeOfInstructions) { + maxSizeOfInstructions = glyphProfile.sizeOfInstructions; + } + + writeOffset += newLength; + itemEncode(locaData, j, writeOffset); + } + + if (writeOffset === 0) { + const simpleGlyph = new Uint8Array([0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0]); + + for (i = 0, j = itemSize; i < numGlyphsOut; i++, j += itemSize) { + itemEncode(locaData, j, simpleGlyph.length); + } + + glyf.data = simpleGlyph; + } else if (dupFirstEntry) { + const firstEntryLength = itemDecode(locaData, itemSize); + + if (newGlyfData.length > firstEntryLength + writeOffset) { + glyf.data = newGlyfData.subarray(0, firstEntryLength + writeOffset); + } else { + glyf.data = new Uint8Array(firstEntryLength + writeOffset); + glyf.data.set(newGlyfData.subarray(0, writeOffset)); + } + + glyf.data.set(newGlyfData.subarray(0, firstEntryLength), writeOffset); + itemEncode(loca.data, locaData.length - itemSize, writeOffset + firstEntryLength); + } else { + glyf.data = newGlyfData.subarray(0, writeOffset); + } + + return { + missingGlyphs, + maxSizeOfInstructions + }; + } + + function readPostScriptTable(post, propertiesObj, maxpNumGlyphs) { + const start = (font.start || 0) + post.offset; + font.pos = start; + const length = post.length, + end = start + length; + const version = font.getInt32(); + font.skip(28); + let glyphNames; + let valid = true; + let i; + + switch (version) { + case 0x00010000: + glyphNames = _fonts_utils.MacStandardGlyphOrdering; + break; + + case 0x00020000: + const numGlyphs = font.getUint16(); + + if (numGlyphs !== maxpNumGlyphs) { + valid = false; + break; + } + + const glyphNameIndexes = []; + + for (i = 0; i < numGlyphs; ++i) { + const index = font.getUint16(); + + if (index >= 32768) { + valid = false; + break; + } + + glyphNameIndexes.push(index); + } + + if (!valid) { + break; + } + + const customNames = [], + strBuf = []; + + while (font.pos < end) { + const stringLength = font.getByte(); + strBuf.length = stringLength; + + for (i = 0; i < stringLength; ++i) { + strBuf[i] = String.fromCharCode(font.getByte()); + } + + customNames.push(strBuf.join("")); + } + + glyphNames = []; + + for (i = 0; i < numGlyphs; ++i) { + const j = glyphNameIndexes[i]; + + if (j < 258) { + glyphNames.push(_fonts_utils.MacStandardGlyphOrdering[j]); + continue; + } + + glyphNames.push(customNames[j - 258]); + } + + break; + + case 0x00030000: + break; + + default: + (0, _util.warn)("Unknown/unsupported post table version " + version); + valid = false; + + if (propertiesObj.defaultEncoding) { + glyphNames = propertiesObj.defaultEncoding; + } + + break; + } + + propertiesObj.glyphNames = glyphNames; + return valid; + } + + function readNameTable(nameTable) { + const start = (font.start || 0) + nameTable.offset; + font.pos = start; + const names = [[], []]; + const length = nameTable.length, + end = start + length; + const format = font.getUint16(); + const FORMAT_0_HEADER_LENGTH = 6; + + if (format !== 0 || length < FORMAT_0_HEADER_LENGTH) { + return names; + } + + const numRecords = font.getUint16(); + const stringsStart = font.getUint16(); + const records = []; + const NAME_RECORD_LENGTH = 12; + let i, ii; + + for (i = 0; i < numRecords && font.pos + NAME_RECORD_LENGTH <= end; i++) { + const r = { + platform: font.getUint16(), + encoding: font.getUint16(), + language: font.getUint16(), + name: font.getUint16(), + length: font.getUint16(), + offset: font.getUint16() + }; + + if (r.platform === 1 && r.encoding === 0 && r.language === 0 || r.platform === 3 && r.encoding === 1 && r.language === 0x409) { + records.push(r); + } + } + + for (i = 0, ii = records.length; i < ii; i++) { + const record = records[i]; + + if (record.length <= 0) { + continue; + } + + const pos = start + stringsStart + record.offset; + + if (pos + record.length > end) { + continue; + } + + font.pos = pos; + const nameIndex = record.name; + + if (record.encoding) { + let str = ""; + + for (let j = 0, jj = record.length; j < jj; j += 2) { + str += String.fromCharCode(font.getUint16()); + } + + names[1][nameIndex] = str; + } else { + names[0][nameIndex] = font.getString(record.length); + } + } + + return names; + } + + const TTOpsStackDeltas = [0, 0, 0, 0, 0, 0, 0, 0, -2, -2, -2, -2, 0, 0, -2, -5, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, -1, -1, 1, -1, -999, 0, 1, 0, -1, -2, 0, -1, -2, -1, -1, 0, -1, -1, 0, 0, -999, -999, -1, -1, -1, -1, -2, -999, -2, -2, -999, 0, -2, -2, 0, 0, -2, 0, -2, 0, 0, 0, -2, -1, -1, 1, 1, 0, 0, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, 0, -999, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -2, -999, -999, -999, -999, -999, -1, -1, -2, -2, 0, 0, 0, 0, -1, -1, -999, -2, -2, 0, 0, -1, -2, -2, 0, 0, 0, -1, -1, -1, -2]; + + function sanitizeTTProgram(table, ttContext) { + let data = table.data; + let i = 0, + j, + n, + b, + funcId, + pc, + lastEndf = 0, + lastDeff = 0; + const stack = []; + const callstack = []; + const functionsCalled = []; + let tooComplexToFollowFunctions = ttContext.tooComplexToFollowFunctions; + let inFDEF = false, + ifLevel = 0, + inELSE = 0; + + for (let ii = data.length; i < ii;) { + const op = data[i++]; + + if (op === 0x40) { + n = data[i++]; + + if (inFDEF || inELSE) { + i += n; + } else { + for (j = 0; j < n; j++) { + stack.push(data[i++]); + } + } + } else if (op === 0x41) { + n = data[i++]; + + if (inFDEF || inELSE) { + i += n * 2; + } else { + for (j = 0; j < n; j++) { + b = data[i++]; + stack.push(b << 8 | data[i++]); + } + } + } else if ((op & 0xf8) === 0xb0) { + n = op - 0xb0 + 1; + + if (inFDEF || inELSE) { + i += n; + } else { + for (j = 0; j < n; j++) { + stack.push(data[i++]); + } + } + } else if ((op & 0xf8) === 0xb8) { + n = op - 0xb8 + 1; + + if (inFDEF || inELSE) { + i += n * 2; + } else { + for (j = 0; j < n; j++) { + b = data[i++]; + stack.push(b << 8 | data[i++]); + } + } + } else if (op === 0x2b && !tooComplexToFollowFunctions) { + if (!inFDEF && !inELSE) { + funcId = stack.at(-1); + + if (isNaN(funcId)) { + (0, _util.info)("TT: CALL empty stack (or invalid entry)."); + } else { + ttContext.functionsUsed[funcId] = true; + + if (funcId in ttContext.functionsStackDeltas) { + const newStackLength = stack.length + ttContext.functionsStackDeltas[funcId]; + + if (newStackLength < 0) { + (0, _util.warn)("TT: CALL invalid functions stack delta."); + ttContext.hintsValid = false; + return; + } + + stack.length = newStackLength; + } else if (funcId in ttContext.functionsDefined && !functionsCalled.includes(funcId)) { + callstack.push({ + data, + i, + stackTop: stack.length - 1 + }); + functionsCalled.push(funcId); + pc = ttContext.functionsDefined[funcId]; + + if (!pc) { + (0, _util.warn)("TT: CALL non-existent function"); + ttContext.hintsValid = false; + return; + } + + data = pc.data; + i = pc.i; + } + } + } + } else if (op === 0x2c && !tooComplexToFollowFunctions) { + if (inFDEF || inELSE) { + (0, _util.warn)("TT: nested FDEFs not allowed"); + tooComplexToFollowFunctions = true; + } + + inFDEF = true; + lastDeff = i; + funcId = stack.pop(); + ttContext.functionsDefined[funcId] = { + data, + i + }; + } else if (op === 0x2d) { + if (inFDEF) { + inFDEF = false; + lastEndf = i; + } else { + pc = callstack.pop(); + + if (!pc) { + (0, _util.warn)("TT: ENDF bad stack"); + ttContext.hintsValid = false; + return; + } + + funcId = functionsCalled.pop(); + data = pc.data; + i = pc.i; + ttContext.functionsStackDeltas[funcId] = stack.length - pc.stackTop; + } + } else if (op === 0x89) { + if (inFDEF || inELSE) { + (0, _util.warn)("TT: nested IDEFs not allowed"); + tooComplexToFollowFunctions = true; + } + + inFDEF = true; + lastDeff = i; + } else if (op === 0x58) { + ++ifLevel; + } else if (op === 0x1b) { + inELSE = ifLevel; + } else if (op === 0x59) { + if (inELSE === ifLevel) { + inELSE = 0; + } + + --ifLevel; + } else if (op === 0x1c) { + if (!inFDEF && !inELSE) { + const offset = stack.at(-1); + + if (offset > 0) { + i += offset - 1; + } + } + } + + if (!inFDEF && !inELSE) { + let stackDelta = 0; + + if (op <= 0x8e) { + stackDelta = TTOpsStackDeltas[op]; + } else if (op >= 0xc0 && op <= 0xdf) { + stackDelta = -1; + } else if (op >= 0xe0) { + stackDelta = -2; + } + + if (op >= 0x71 && op <= 0x75) { + n = stack.pop(); + + if (!isNaN(n)) { + stackDelta = -n * 2; + } + } + + while (stackDelta < 0 && stack.length > 0) { + stack.pop(); + stackDelta++; + } + + while (stackDelta > 0) { + stack.push(NaN); + stackDelta--; + } + } + } + + ttContext.tooComplexToFollowFunctions = tooComplexToFollowFunctions; + const content = [data]; + + if (i > data.length) { + content.push(new Uint8Array(i - data.length)); + } + + if (lastDeff > lastEndf) { + (0, _util.warn)("TT: complementing a missing function tail"); + content.push(new Uint8Array([0x22, 0x2d])); + } + + foldTTTable(table, content); + } + + function checkInvalidFunctions(ttContext, maxFunctionDefs) { + if (ttContext.tooComplexToFollowFunctions) { + return; + } + + if (ttContext.functionsDefined.length > maxFunctionDefs) { + (0, _util.warn)("TT: more functions defined than expected"); + ttContext.hintsValid = false; + return; + } + + for (let j = 0, jj = ttContext.functionsUsed.length; j < jj; j++) { + if (j > maxFunctionDefs) { + (0, _util.warn)("TT: invalid function id: " + j); + ttContext.hintsValid = false; + return; + } + + if (ttContext.functionsUsed[j] && !ttContext.functionsDefined[j]) { + (0, _util.warn)("TT: undefined function: " + j); + ttContext.hintsValid = false; + return; + } + } + } + + function foldTTTable(table, content) { + if (content.length > 1) { + let newLength = 0; + let j, jj; + + for (j = 0, jj = content.length; j < jj; j++) { + newLength += content[j].length; + } + + newLength = newLength + 3 & ~3; + const result = new Uint8Array(newLength); + let pos = 0; + + for (j = 0, jj = content.length; j < jj; j++) { + result.set(content[j], pos); + pos += content[j].length; + } + + table.data = result; + table.length = newLength; + } + } + + function sanitizeTTPrograms(fpgm, prep, cvt, maxFunctionDefs) { + const ttContext = { + functionsDefined: [], + functionsUsed: [], + functionsStackDeltas: [], + tooComplexToFollowFunctions: false, + hintsValid: true + }; + + if (fpgm) { + sanitizeTTProgram(fpgm, ttContext); + } + + if (prep) { + sanitizeTTProgram(prep, ttContext); + } + + if (fpgm) { + checkInvalidFunctions(ttContext, maxFunctionDefs); + } + + if (cvt && cvt.length & 1) { + const cvtData = new Uint8Array(cvt.length + 1); + cvtData.set(cvt.data); + cvt.data = cvtData; + } + + return ttContext.hintsValid; + } + + font = new _stream.Stream(new Uint8Array(font.getBytes())); + let header, tables; + + if (isTrueTypeCollectionFile(font)) { + const ttcData = readTrueTypeCollectionData(font, this.name); + header = ttcData.header; + tables = ttcData.tables; + } else { + header = readOpenTypeHeader(font); + tables = readTables(font, header.numTables); + } + + let cff, cffFile; + const isTrueType = !tables["CFF "]; + + if (!isTrueType) { + const isComposite = properties.composite && ((properties.cidToGidMap || []).length > 0 || !(properties.cMap instanceof _cmap.IdentityCMap)); + + if (header.version === "OTTO" && !isComposite || !tables.head || !tables.hhea || !tables.maxp || !tables.post) { + cffFile = new _stream.Stream(tables["CFF "].data); + cff = new _cff_font.CFFFont(cffFile, properties); + adjustWidths(properties); + return this.convert(name, cff, properties); + } + + delete tables.glyf; + delete tables.loca; + delete tables.fpgm; + delete tables.prep; + delete tables["cvt "]; + this.isOpenType = true; + } else { + if (!tables.loca) { + throw new _util.FormatError('Required "loca" table is not found'); + } + + if (!tables.glyf) { + (0, _util.warn)('Required "glyf" table is not found -- trying to recover.'); + tables.glyf = { + tag: "glyf", + data: new Uint8Array(0) + }; + } + + this.isOpenType = false; + } + + if (!tables.maxp) { + throw new _util.FormatError('Required "maxp" table is not found'); + } + + font.pos = (font.start || 0) + tables.maxp.offset; + const version = font.getInt32(); + const numGlyphs = font.getUint16(); + + if (properties.scaleFactors && properties.scaleFactors.length === numGlyphs && isTrueType) { + const { + scaleFactors + } = properties; + const isGlyphLocationsLong = int16(tables.head.data[50], tables.head.data[51]); + const glyphs = new _glyf.GlyfTable({ + glyfTable: tables.glyf.data, + isGlyphLocationsLong, + locaTable: tables.loca.data, + numGlyphs + }); + glyphs.scale(scaleFactors); + const { + glyf, + loca, + isLocationLong + } = glyphs.write(); + tables.glyf.data = glyf; + tables.loca.data = loca; + + if (isLocationLong !== !!isGlyphLocationsLong) { + tables.head.data[50] = 0; + tables.head.data[51] = isLocationLong ? 1 : 0; + } + + const metrics = tables.hmtx.data; + + for (let i = 0; i < numGlyphs; i++) { + const j = 4 * i; + const advanceWidth = Math.round(scaleFactors[i] * int16(metrics[j], metrics[j + 1])); + metrics[j] = advanceWidth >> 8 & 0xff; + metrics[j + 1] = advanceWidth & 0xff; + const lsb = Math.round(scaleFactors[i] * signedInt16(metrics[j + 2], metrics[j + 3])); + writeSignedInt16(metrics, j + 2, lsb); + } + } + + let numGlyphsOut = numGlyphs + 1; + let dupFirstEntry = true; + + if (numGlyphsOut > 0xffff) { + dupFirstEntry = false; + numGlyphsOut = numGlyphs; + (0, _util.warn)("Not enough space in glyfs to duplicate first glyph."); + } + + let maxFunctionDefs = 0; + let maxSizeOfInstructions = 0; + + if (version >= 0x00010000 && tables.maxp.length >= 22) { + font.pos += 8; + const maxZones = font.getUint16(); + + if (maxZones > 2) { + tables.maxp.data[14] = 0; + tables.maxp.data[15] = 2; + } + + font.pos += 4; + maxFunctionDefs = font.getUint16(); + font.pos += 4; + maxSizeOfInstructions = font.getUint16(); + } + + tables.maxp.data[4] = numGlyphsOut >> 8; + tables.maxp.data[5] = numGlyphsOut & 255; + const hintsValid = sanitizeTTPrograms(tables.fpgm, tables.prep, tables["cvt "], maxFunctionDefs); + + if (!hintsValid) { + delete tables.fpgm; + delete tables.prep; + delete tables["cvt "]; + } + + sanitizeMetrics(font, tables.hhea, tables.hmtx, tables.head, numGlyphsOut, dupFirstEntry); + + if (!tables.head) { + throw new _util.FormatError('Required "head" table is not found'); + } + + sanitizeHead(tables.head, numGlyphs, isTrueType ? tables.loca.length : 0); + let missingGlyphs = Object.create(null); + + if (isTrueType) { + const isGlyphLocationsLong = int16(tables.head.data[50], tables.head.data[51]); + const glyphsInfo = sanitizeGlyphLocations(tables.loca, tables.glyf, numGlyphs, isGlyphLocationsLong, hintsValid, dupFirstEntry, maxSizeOfInstructions); + missingGlyphs = glyphsInfo.missingGlyphs; + + if (version >= 0x00010000 && tables.maxp.length >= 22) { + tables.maxp.data[26] = glyphsInfo.maxSizeOfInstructions >> 8; + tables.maxp.data[27] = glyphsInfo.maxSizeOfInstructions & 255; + } + } + + if (!tables.hhea) { + throw new _util.FormatError('Required "hhea" table is not found'); + } + + if (tables.hhea.data[10] === 0 && tables.hhea.data[11] === 0) { + tables.hhea.data[10] = 0xff; + tables.hhea.data[11] = 0xff; + } + + const metricsOverride = { + unitsPerEm: int16(tables.head.data[18], tables.head.data[19]), + yMax: int16(tables.head.data[42], tables.head.data[43]), + yMin: signedInt16(tables.head.data[38], tables.head.data[39]), + ascent: signedInt16(tables.hhea.data[4], tables.hhea.data[5]), + descent: signedInt16(tables.hhea.data[6], tables.hhea.data[7]), + lineGap: signedInt16(tables.hhea.data[8], tables.hhea.data[9]) + }; + this.ascent = metricsOverride.ascent / metricsOverride.unitsPerEm; + this.descent = metricsOverride.descent / metricsOverride.unitsPerEm; + this.lineGap = metricsOverride.lineGap / metricsOverride.unitsPerEm; + + if (this.cssFontInfo && this.cssFontInfo.lineHeight) { + this.lineHeight = this.cssFontInfo.metrics.lineHeight; + this.lineGap = this.cssFontInfo.metrics.lineGap; + } else { + this.lineHeight = this.ascent - this.descent + this.lineGap; + } + + if (tables.post) { + readPostScriptTable(tables.post, properties, numGlyphs); + } + + tables.post = { + tag: "post", + data: createPostTable(properties) + }; + const charCodeToGlyphId = []; + + function hasGlyph(glyphId) { + return !missingGlyphs[glyphId]; + } + + if (properties.composite) { + const cidToGidMap = properties.cidToGidMap || []; + const isCidToGidMapEmpty = cidToGidMap.length === 0; + properties.cMap.forEach(function (charCode, cid) { + if (typeof cid === "string") { + cid = convertCidString(charCode, cid, true); + } + + if (cid > 0xffff) { + throw new _util.FormatError("Max size of CID is 65,535"); + } + + let glyphId = -1; + + if (isCidToGidMapEmpty) { + glyphId = cid; + } else if (cidToGidMap[cid] !== undefined) { + glyphId = cidToGidMap[cid]; + } + + if (glyphId >= 0 && glyphId < numGlyphs && hasGlyph(glyphId)) { + charCodeToGlyphId[charCode] = glyphId; + } + }); + } else { + const cmapTable = readCmapTable(tables.cmap, font, this.isSymbolicFont, properties.hasEncoding); + const cmapPlatformId = cmapTable.platformId; + const cmapEncodingId = cmapTable.encodingId; + const cmapMappings = cmapTable.mappings; + const cmapMappingsLength = cmapMappings.length; + let baseEncoding = [], + forcePostTable = false; + + if (properties.hasEncoding && (properties.baseEncodingName === "MacRomanEncoding" || properties.baseEncodingName === "WinAnsiEncoding")) { + baseEncoding = (0, _encodings.getEncoding)(properties.baseEncodingName); + } + + if (properties.hasEncoding && !this.isSymbolicFont && (cmapPlatformId === 3 && cmapEncodingId === 1 || cmapPlatformId === 1 && cmapEncodingId === 0)) { + const glyphsUnicodeMap = (0, _glyphlist.getGlyphsUnicode)(); + + for (let charCode = 0; charCode < 256; charCode++) { + let glyphName; + + if (this.differences[charCode] !== undefined) { + glyphName = this.differences[charCode]; + } else if (baseEncoding.length && baseEncoding[charCode] !== "") { + glyphName = baseEncoding[charCode]; + } else { + glyphName = _encodings.StandardEncoding[charCode]; + } + + if (!glyphName) { + continue; + } + + const standardGlyphName = (0, _fonts_utils.recoverGlyphName)(glyphName, glyphsUnicodeMap); + let unicodeOrCharCode; + + if (cmapPlatformId === 3 && cmapEncodingId === 1) { + unicodeOrCharCode = glyphsUnicodeMap[standardGlyphName]; + } else if (cmapPlatformId === 1 && cmapEncodingId === 0) { + unicodeOrCharCode = _encodings.MacRomanEncoding.indexOf(standardGlyphName); + } + + if (unicodeOrCharCode === undefined) { + if (!properties.glyphNames && properties.hasIncludedToUnicodeMap && !(this.toUnicode instanceof _to_unicode_map.IdentityToUnicodeMap)) { + const unicode = this.toUnicode.get(charCode); + + if (unicode) { + unicodeOrCharCode = unicode.codePointAt(0); + } + } + + if (unicodeOrCharCode === undefined) { + continue; + } + } + + for (let i = 0; i < cmapMappingsLength; ++i) { + if (cmapMappings[i].charCode !== unicodeOrCharCode) { + continue; + } + + charCodeToGlyphId[charCode] = cmapMappings[i].glyphId; + break; + } + } + } else if (cmapPlatformId === 0) { + for (let i = 0; i < cmapMappingsLength; ++i) { + charCodeToGlyphId[cmapMappings[i].charCode] = cmapMappings[i].glyphId; + } + + forcePostTable = true; + } else { + for (let i = 0; i < cmapMappingsLength; ++i) { + let charCode = cmapMappings[i].charCode; + + if (cmapPlatformId === 3 && charCode >= 0xf000 && charCode <= 0xf0ff) { + charCode &= 0xff; + } + + charCodeToGlyphId[charCode] = cmapMappings[i].glyphId; + } + } + + if (properties.glyphNames && (baseEncoding.length || this.differences.length)) { + for (let i = 0; i < 256; ++i) { + if (!forcePostTable && charCodeToGlyphId[i] !== undefined) { + continue; + } + + const glyphName = this.differences[i] || baseEncoding[i]; + + if (!glyphName) { + continue; + } + + const glyphId = properties.glyphNames.indexOf(glyphName); + + if (glyphId > 0 && hasGlyph(glyphId)) { + charCodeToGlyphId[i] = glyphId; + } + } + } + } + + if (charCodeToGlyphId.length === 0) { + charCodeToGlyphId[0] = 0; + } + + let glyphZeroId = numGlyphsOut - 1; + + if (!dupFirstEntry) { + glyphZeroId = 0; + } + + if (!properties.cssFontInfo) { + const newMapping = adjustMapping(charCodeToGlyphId, hasGlyph, glyphZeroId, this.toUnicode); + this.toFontChar = newMapping.toFontChar; + tables.cmap = { + tag: "cmap", + data: createCmapTable(newMapping.charCodeToGlyphId, newMapping.toUnicodeExtraMap, numGlyphsOut) + }; + + if (!tables["OS/2"] || !validateOS2Table(tables["OS/2"], font)) { + tables["OS/2"] = { + tag: "OS/2", + data: createOS2Table(properties, newMapping.charCodeToGlyphId, metricsOverride) + }; + } + } + + if (!isTrueType) { + try { + cffFile = new _stream.Stream(tables["CFF "].data); + const parser = new _cff_parser.CFFParser(cffFile, properties, _fonts_utils.SEAC_ANALYSIS_ENABLED); + cff = parser.parse(); + cff.duplicateFirstGlyph(); + const compiler = new _cff_parser.CFFCompiler(cff); + tables["CFF "].data = compiler.compile(); + } catch (e) { + (0, _util.warn)("Failed to compile font " + properties.loadedName); + } + } + + if (!tables.name) { + tables.name = { + tag: "name", + data: createNameTable(this.name) + }; + } else { + const namePrototype = readNameTable(tables.name); + tables.name.data = createNameTable(name, namePrototype); + this.psName = namePrototype[0][6] || null; + } + + const builder = new _opentype_file_builder.OpenTypeFileBuilder(header.version); + + for (const tableTag in tables) { + builder.addTable(tableTag, tables[tableTag].data); + } + + return builder.toArray(); + } + + convert(fontName, font, properties) { + properties.fixedPitch = false; + + if (properties.builtInEncoding) { + adjustToUnicode(properties, properties.builtInEncoding); + } + + let glyphZeroId = 1; + + if (font instanceof _cff_font.CFFFont) { + glyphZeroId = font.numGlyphs - 1; + } + + const mapping = font.getGlyphMapping(properties); + let newMapping = null; + let newCharCodeToGlyphId = mapping; + let toUnicodeExtraMap = null; + + if (!properties.cssFontInfo) { + newMapping = adjustMapping(mapping, font.hasGlyphId.bind(font), glyphZeroId, this.toUnicode); + this.toFontChar = newMapping.toFontChar; + newCharCodeToGlyphId = newMapping.charCodeToGlyphId; + toUnicodeExtraMap = newMapping.toUnicodeExtraMap; + } + + const numGlyphs = font.numGlyphs; + + function getCharCodes(charCodeToGlyphId, glyphId) { + let charCodes = null; + + for (const charCode in charCodeToGlyphId) { + if (glyphId === charCodeToGlyphId[charCode]) { + if (!charCodes) { + charCodes = []; + } + + charCodes.push(charCode | 0); + } + } + + return charCodes; + } + + function createCharCode(charCodeToGlyphId, glyphId) { + for (const charCode in charCodeToGlyphId) { + if (glyphId === charCodeToGlyphId[charCode]) { + return charCode | 0; + } + } + + newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode] = glyphId; + return newMapping.nextAvailableFontCharCode++; + } + + const seacs = font.seacs; + + if (newMapping && _fonts_utils.SEAC_ANALYSIS_ENABLED && seacs && seacs.length) { + const matrix = properties.fontMatrix || _util.FONT_IDENTITY_MATRIX; + const charset = font.getCharset(); + const seacMap = Object.create(null); + + for (let glyphId in seacs) { + glyphId |= 0; + const seac = seacs[glyphId]; + const baseGlyphName = _encodings.StandardEncoding[seac[2]]; + const accentGlyphName = _encodings.StandardEncoding[seac[3]]; + const baseGlyphId = charset.indexOf(baseGlyphName); + const accentGlyphId = charset.indexOf(accentGlyphName); + + if (baseGlyphId < 0 || accentGlyphId < 0) { + continue; + } + + const accentOffset = { + x: seac[0] * matrix[0] + seac[1] * matrix[2] + matrix[4], + y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5] + }; + const charCodes = getCharCodes(mapping, glyphId); + + if (!charCodes) { + continue; + } + + for (let i = 0, ii = charCodes.length; i < ii; i++) { + const charCode = charCodes[i]; + const charCodeToGlyphId = newMapping.charCodeToGlyphId; + const baseFontCharCode = createCharCode(charCodeToGlyphId, baseGlyphId); + const accentFontCharCode = createCharCode(charCodeToGlyphId, accentGlyphId); + seacMap[charCode] = { + baseFontCharCode, + accentFontCharCode, + accentOffset + }; + } + } + + properties.seacMap = seacMap; + } + + const unitsPerEm = 1 / (properties.fontMatrix || _util.FONT_IDENTITY_MATRIX)[0]; + const builder = new _opentype_file_builder.OpenTypeFileBuilder("\x4F\x54\x54\x4F"); + builder.addTable("CFF ", font.data); + builder.addTable("OS/2", createOS2Table(properties, newCharCodeToGlyphId)); + builder.addTable("cmap", createCmapTable(newCharCodeToGlyphId, toUnicodeExtraMap, numGlyphs)); + builder.addTable("head", "\x00\x01\x00\x00" + "\x00\x00\x10\x00" + "\x00\x00\x00\x00" + "\x5F\x0F\x3C\xF5" + "\x00\x00" + safeString16(unitsPerEm) + "\x00\x00\x00\x00\x9e\x0b\x7e\x27" + "\x00\x00\x00\x00\x9e\x0b\x7e\x27" + "\x00\x00" + safeString16(properties.descent) + "\x0F\xFF" + safeString16(properties.ascent) + string16(properties.italicAngle ? 2 : 0) + "\x00\x11" + "\x00\x00" + "\x00\x00" + "\x00\x00"); + builder.addTable("hhea", "\x00\x01\x00\x00" + safeString16(properties.ascent) + safeString16(properties.descent) + "\x00\x00" + "\xFF\xFF" + "\x00\x00" + "\x00\x00" + "\x00\x00" + safeString16(properties.capHeight) + safeString16(Math.tan(properties.italicAngle) * properties.xHeight) + "\x00\x00" + "\x00\x00" + "\x00\x00" + "\x00\x00" + "\x00\x00" + "\x00\x00" + string16(numGlyphs)); + builder.addTable("hmtx", function fontFieldsHmtx() { + const charstrings = font.charstrings; + const cffWidths = font.cff ? font.cff.widths : null; + let hmtx = "\x00\x00\x00\x00"; + + for (let i = 1, ii = numGlyphs; i < ii; i++) { + let width = 0; + + if (charstrings) { + const charstring = charstrings[i - 1]; + width = "width" in charstring ? charstring.width : 0; + } else if (cffWidths) { + width = Math.ceil(cffWidths[i] || 0); + } + + hmtx += string16(width) + string16(0); + } + + return hmtx; + }()); + builder.addTable("maxp", "\x00\x00\x50\x00" + string16(numGlyphs)); + builder.addTable("name", createNameTable(fontName)); + builder.addTable("post", createPostTable(properties)); + return builder.toArray(); + } + + get spaceWidth() { + const possibleSpaceReplacements = ["space", "minus", "one", "i", "I"]; + let width; + + for (let i = 0, ii = possibleSpaceReplacements.length; i < ii; i++) { + const glyphName = possibleSpaceReplacements[i]; + + if (glyphName in this.widths) { + width = this.widths[glyphName]; + break; + } + + const glyphsUnicodeMap = (0, _glyphlist.getGlyphsUnicode)(); + const glyphUnicode = glyphsUnicodeMap[glyphName]; + let charcode = 0; + + if (this.composite && this.cMap.contains(glyphUnicode)) { + charcode = this.cMap.lookup(glyphUnicode); + + if (typeof charcode === "string") { + charcode = convertCidString(glyphUnicode, charcode); + } + } + + if (!charcode && this.toUnicode) { + charcode = this.toUnicode.charCodeOf(glyphUnicode); + } + + if (charcode <= 0) { + charcode = glyphUnicode; + } + + width = this.widths[charcode]; + + if (width) { + break; + } + } + + width = width || this.defaultWidth; + return (0, _util.shadow)(this, "spaceWidth", width); + } + + _charToGlyph(charcode, isSpace = false) { + let fontCharCode, width, operatorListId; + let widthCode = charcode; + + if (this.cMap && this.cMap.contains(charcode)) { + widthCode = this.cMap.lookup(charcode); + + if (typeof widthCode === "string") { + widthCode = convertCidString(charcode, widthCode); + } + } + + width = this.widths[widthCode]; + + if (typeof width !== "number") { + width = this.defaultWidth; + } + + const vmetric = this.vmetrics && this.vmetrics[widthCode]; + let unicode = this.toUnicode.get(charcode) || charcode; + + if (typeof unicode === "number") { + unicode = String.fromCharCode(unicode); + } + + let isInFont = this.toFontChar[charcode] !== undefined; + fontCharCode = this.toFontChar[charcode] || charcode; + + if (this.missingFile) { + const glyphName = this.differences[charcode] || this.defaultEncoding[charcode]; + + if ((glyphName === ".notdef" || glyphName === "") && this.type === "Type1") { + fontCharCode = 0x20; + } + + fontCharCode = (0, _unicode.mapSpecialUnicodeValues)(fontCharCode); + } + + if (this.isType3Font) { + operatorListId = fontCharCode; + } + + let accent = null; + + if (this.seacMap && this.seacMap[charcode]) { + isInFont = true; + const seac = this.seacMap[charcode]; + fontCharCode = seac.baseFontCharCode; + accent = { + fontChar: String.fromCodePoint(seac.accentFontCharCode), + offset: seac.accentOffset + }; + } + + let fontChar = ""; + + if (typeof fontCharCode === "number") { + if (fontCharCode <= 0x10ffff) { + fontChar = String.fromCodePoint(fontCharCode); + } else { + (0, _util.warn)(`charToGlyph - invalid fontCharCode: ${fontCharCode}`); + } + } + + let glyph = this._glyphCache[charcode]; + + if (!glyph || !glyph.matchesForCache(charcode, fontChar, unicode, accent, width, vmetric, operatorListId, isSpace, isInFont)) { + glyph = new Glyph(charcode, fontChar, unicode, accent, width, vmetric, operatorListId, isSpace, isInFont); + this._glyphCache[charcode] = glyph; + } + + return glyph; + } + + charsToGlyphs(chars) { + let glyphs = this._charsCache[chars]; + + if (glyphs) { + return glyphs; + } + + glyphs = []; + + if (this.cMap) { + const c = Object.create(null), + ii = chars.length; + let i = 0; + + while (i < ii) { + this.cMap.readCharCode(chars, i, c); + const { + charcode, + length + } = c; + i += length; + + const glyph = this._charToGlyph(charcode, length === 1 && chars.charCodeAt(i - 1) === 0x20); + + glyphs.push(glyph); + } + } else { + for (let i = 0, ii = chars.length; i < ii; ++i) { + const charcode = chars.charCodeAt(i); + + const glyph = this._charToGlyph(charcode, charcode === 0x20); + + glyphs.push(glyph); + } + } + + return this._charsCache[chars] = glyphs; + } + + getCharPositions(chars) { + const positions = []; + + if (this.cMap) { + const c = Object.create(null); + let i = 0; + + while (i < chars.length) { + this.cMap.readCharCode(chars, i, c); + const length = c.length; + positions.push([i, i + length]); + i += length; + } + } else { + for (let i = 0, ii = chars.length; i < ii; ++i) { + positions.push([i, i + 1]); + } + } + + return positions; + } + + get glyphCacheValues() { + return Object.values(this._glyphCache); + } + + encodeString(str) { + const buffers = []; + const currentBuf = []; + + const hasCurrentBufErrors = () => buffers.length % 2 === 1; + + const getCharCode = this.toUnicode instanceof _to_unicode_map.IdentityToUnicodeMap ? unicode => this.toUnicode.charCodeOf(unicode) : unicode => this.toUnicode.charCodeOf(String.fromCodePoint(unicode)); + + for (let i = 0, ii = str.length; i < ii; i++) { + const unicode = str.codePointAt(i); + + if (unicode > 0xd7ff && (unicode < 0xe000 || unicode > 0xfffd)) { + i++; + } + + if (this.toUnicode) { + const charCode = getCharCode(unicode); + + if (charCode !== -1) { + if (hasCurrentBufErrors()) { + buffers.push(currentBuf.join("")); + currentBuf.length = 0; + } + + const charCodeLength = this.cMap ? this.cMap.getCharCodeLength(charCode) : 1; + + for (let j = charCodeLength - 1; j >= 0; j--) { + currentBuf.push(String.fromCharCode(charCode >> 8 * j & 0xff)); + } + + continue; + } + } + + if (!hasCurrentBufErrors()) { + buffers.push(currentBuf.join("")); + currentBuf.length = 0; + } + + currentBuf.push(String.fromCodePoint(unicode)); + } + + buffers.push(currentBuf.join("")); + return buffers; + } + +} + +exports.Font = Font; + +class ErrorFont { + constructor(error) { + this.error = error; + this.loadedName = "g_font_error"; + this.missingFile = true; + } + + charsToGlyphs() { + return []; + } + + encodeString(chars) { + return [chars]; + } + + exportData(extraProperties = false) { + return { + error: this.error + }; + } + +} + +exports.ErrorFont = ErrorFont; + +/***/ }), +/* 35 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.CFFTopDict = exports.CFFStrings = exports.CFFStandardStrings = exports.CFFPrivateDict = exports.CFFParser = exports.CFFIndex = exports.CFFHeader = exports.CFFFDSelect = exports.CFFCompiler = exports.CFFCharset = exports.CFF = void 0; + +var _util = __w_pdfjs_require__(2); + +var _charsets = __w_pdfjs_require__(36); + +var _encodings = __w_pdfjs_require__(37); + +const MAX_SUBR_NESTING = 10; +const CFFStandardStrings = [".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "endash", "dagger", "daggerdbl", "periodcentered", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "questiondown", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "emdash", "AE", "ordfeminine", "Lslash", "Oslash", "OE", "ordmasculine", "ae", "dotlessi", "lslash", "oslash", "oe", "germandbls", "onesuperior", "logicalnot", "mu", "trademark", "Eth", "onehalf", "plusminus", "Thorn", "onequarter", "divide", "brokenbar", "degree", "thorn", "threequarters", "twosuperior", "registered", "minus", "eth", "multiply", "threesuperior", "copyright", "Aacute", "Acircumflex", "Adieresis", "Agrave", "Aring", "Atilde", "Ccedilla", "Eacute", "Ecircumflex", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Ntilde", "Oacute", "Ocircumflex", "Odieresis", "Ograve", "Otilde", "Scaron", "Uacute", "Ucircumflex", "Udieresis", "Ugrave", "Yacute", "Ydieresis", "Zcaron", "aacute", "acircumflex", "adieresis", "agrave", "aring", "atilde", "ccedilla", "eacute", "ecircumflex", "edieresis", "egrave", "iacute", "icircumflex", "idieresis", "igrave", "ntilde", "oacute", "ocircumflex", "odieresis", "ograve", "otilde", "scaron", "uacute", "ucircumflex", "udieresis", "ugrave", "yacute", "ydieresis", "zcaron", "exclamsmall", "Hungarumlautsmall", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "exclamdownsmall", "centoldstyle", "Lslashsmall", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "Dotaccentsmall", "Macronsmall", "figuredash", "hypheninferior", "Ogoneksmall", "Ringsmall", "Cedillasmall", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall", "001.000", "001.001", "001.002", "001.003", "Black", "Bold", "Book", "Light", "Medium", "Regular", "Roman", "Semibold"]; +exports.CFFStandardStrings = CFFStandardStrings; +const NUM_STANDARD_CFF_STRINGS = 391; +const CharstringValidationData = [null, { + id: "hstem", + min: 2, + stackClearing: true, + stem: true +}, null, { + id: "vstem", + min: 2, + stackClearing: true, + stem: true +}, { + id: "vmoveto", + min: 1, + stackClearing: true +}, { + id: "rlineto", + min: 2, + resetStack: true +}, { + id: "hlineto", + min: 1, + resetStack: true +}, { + id: "vlineto", + min: 1, + resetStack: true +}, { + id: "rrcurveto", + min: 6, + resetStack: true +}, null, { + id: "callsubr", + min: 1, + undefStack: true +}, { + id: "return", + min: 0, + undefStack: true +}, null, null, { + id: "endchar", + min: 0, + stackClearing: true +}, null, null, null, { + id: "hstemhm", + min: 2, + stackClearing: true, + stem: true +}, { + id: "hintmask", + min: 0, + stackClearing: true +}, { + id: "cntrmask", + min: 0, + stackClearing: true +}, { + id: "rmoveto", + min: 2, + stackClearing: true +}, { + id: "hmoveto", + min: 1, + stackClearing: true +}, { + id: "vstemhm", + min: 2, + stackClearing: true, + stem: true +}, { + id: "rcurveline", + min: 8, + resetStack: true +}, { + id: "rlinecurve", + min: 8, + resetStack: true +}, { + id: "vvcurveto", + min: 4, + resetStack: true +}, { + id: "hhcurveto", + min: 4, + resetStack: true +}, null, { + id: "callgsubr", + min: 1, + undefStack: true +}, { + id: "vhcurveto", + min: 4, + resetStack: true +}, { + id: "hvcurveto", + min: 4, + resetStack: true +}]; +const CharstringValidationData12 = [null, null, null, { + id: "and", + min: 2, + stackDelta: -1 +}, { + id: "or", + min: 2, + stackDelta: -1 +}, { + id: "not", + min: 1, + stackDelta: 0 +}, null, null, null, { + id: "abs", + min: 1, + stackDelta: 0 +}, { + id: "add", + min: 2, + stackDelta: -1, + + stackFn(stack, index) { + stack[index - 2] = stack[index - 2] + stack[index - 1]; + } + +}, { + id: "sub", + min: 2, + stackDelta: -1, + + stackFn(stack, index) { + stack[index - 2] = stack[index - 2] - stack[index - 1]; + } + +}, { + id: "div", + min: 2, + stackDelta: -1, + + stackFn(stack, index) { + stack[index - 2] = stack[index - 2] / stack[index - 1]; + } + +}, null, { + id: "neg", + min: 1, + stackDelta: 0, + + stackFn(stack, index) { + stack[index - 1] = -stack[index - 1]; + } + +}, { + id: "eq", + min: 2, + stackDelta: -1 +}, null, null, { + id: "drop", + min: 1, + stackDelta: -1 +}, null, { + id: "put", + min: 2, + stackDelta: -2 +}, { + id: "get", + min: 1, + stackDelta: 0 +}, { + id: "ifelse", + min: 4, + stackDelta: -3 +}, { + id: "random", + min: 0, + stackDelta: 1 +}, { + id: "mul", + min: 2, + stackDelta: -1, + + stackFn(stack, index) { + stack[index - 2] = stack[index - 2] * stack[index - 1]; + } + +}, null, { + id: "sqrt", + min: 1, + stackDelta: 0 +}, { + id: "dup", + min: 1, + stackDelta: 1 +}, { + id: "exch", + min: 2, + stackDelta: 0 +}, { + id: "index", + min: 2, + stackDelta: 0 +}, { + id: "roll", + min: 3, + stackDelta: -2 +}, null, null, null, { + id: "hflex", + min: 7, + resetStack: true +}, { + id: "flex", + min: 13, + resetStack: true +}, { + id: "hflex1", + min: 9, + resetStack: true +}, { + id: "flex1", + min: 11, + resetStack: true +}]; + +class CFFParser { + constructor(file, properties, seacAnalysisEnabled) { + this.bytes = file.getBytes(); + this.properties = properties; + this.seacAnalysisEnabled = !!seacAnalysisEnabled; + } + + parse() { + const properties = this.properties; + const cff = new CFF(); + this.cff = cff; + const header = this.parseHeader(); + const nameIndex = this.parseIndex(header.endPos); + const topDictIndex = this.parseIndex(nameIndex.endPos); + const stringIndex = this.parseIndex(topDictIndex.endPos); + const globalSubrIndex = this.parseIndex(stringIndex.endPos); + const topDictParsed = this.parseDict(topDictIndex.obj.get(0)); + const topDict = this.createDict(CFFTopDict, topDictParsed, cff.strings); + cff.header = header.obj; + cff.names = this.parseNameIndex(nameIndex.obj); + cff.strings = this.parseStringIndex(stringIndex.obj); + cff.topDict = topDict; + cff.globalSubrIndex = globalSubrIndex.obj; + this.parsePrivateDict(cff.topDict); + cff.isCIDFont = topDict.hasName("ROS"); + const charStringOffset = topDict.getByName("CharStrings"); + const charStringIndex = this.parseIndex(charStringOffset).obj; + const fontMatrix = topDict.getByName("FontMatrix"); + + if (fontMatrix) { + properties.fontMatrix = fontMatrix; + } + + const fontBBox = topDict.getByName("FontBBox"); + + if (fontBBox) { + properties.ascent = Math.max(fontBBox[3], fontBBox[1]); + properties.descent = Math.min(fontBBox[1], fontBBox[3]); + properties.ascentScaled = true; + } + + let charset, encoding; + + if (cff.isCIDFont) { + const fdArrayIndex = this.parseIndex(topDict.getByName("FDArray")).obj; + + for (let i = 0, ii = fdArrayIndex.count; i < ii; ++i) { + const dictRaw = fdArrayIndex.get(i); + const fontDict = this.createDict(CFFTopDict, this.parseDict(dictRaw), cff.strings); + this.parsePrivateDict(fontDict); + cff.fdArray.push(fontDict); + } + + encoding = null; + charset = this.parseCharsets(topDict.getByName("charset"), charStringIndex.count, cff.strings, true); + cff.fdSelect = this.parseFDSelect(topDict.getByName("FDSelect"), charStringIndex.count); + } else { + charset = this.parseCharsets(topDict.getByName("charset"), charStringIndex.count, cff.strings, false); + encoding = this.parseEncoding(topDict.getByName("Encoding"), properties, cff.strings, charset.charset); + } + + cff.charset = charset; + cff.encoding = encoding; + const charStringsAndSeacs = this.parseCharStrings({ + charStrings: charStringIndex, + localSubrIndex: topDict.privateDict.subrsIndex, + globalSubrIndex: globalSubrIndex.obj, + fdSelect: cff.fdSelect, + fdArray: cff.fdArray, + privateDict: topDict.privateDict + }); + cff.charStrings = charStringsAndSeacs.charStrings; + cff.seacs = charStringsAndSeacs.seacs; + cff.widths = charStringsAndSeacs.widths; + return cff; + } + + parseHeader() { + let bytes = this.bytes; + const bytesLength = bytes.length; + let offset = 0; + + while (offset < bytesLength && bytes[offset] !== 1) { + ++offset; + } + + if (offset >= bytesLength) { + throw new _util.FormatError("Invalid CFF header"); + } + + if (offset !== 0) { + (0, _util.info)("cff data is shifted"); + bytes = bytes.subarray(offset); + this.bytes = bytes; + } + + const major = bytes[0]; + const minor = bytes[1]; + const hdrSize = bytes[2]; + const offSize = bytes[3]; + const header = new CFFHeader(major, minor, hdrSize, offSize); + return { + obj: header, + endPos: hdrSize + }; + } + + parseDict(dict) { + let pos = 0; + + function parseOperand() { + let value = dict[pos++]; + + if (value === 30) { + return parseFloatOperand(); + } else if (value === 28) { + value = dict[pos++]; + value = (value << 24 | dict[pos++] << 16) >> 16; + return value; + } else if (value === 29) { + value = dict[pos++]; + value = value << 8 | dict[pos++]; + value = value << 8 | dict[pos++]; + value = value << 8 | dict[pos++]; + return value; + } else if (value >= 32 && value <= 246) { + return value - 139; + } else if (value >= 247 && value <= 250) { + return (value - 247) * 256 + dict[pos++] + 108; + } else if (value >= 251 && value <= 254) { + return -((value - 251) * 256) - dict[pos++] - 108; + } + + (0, _util.warn)('CFFParser_parseDict: "' + value + '" is a reserved command.'); + return NaN; + } + + function parseFloatOperand() { + let str = ""; + const eof = 15; + const lookup = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ".", "E", "E-", null, "-"]; + const length = dict.length; + + while (pos < length) { + const b = dict[pos++]; + const b1 = b >> 4; + const b2 = b & 15; + + if (b1 === eof) { + break; + } + + str += lookup[b1]; + + if (b2 === eof) { + break; + } + + str += lookup[b2]; + } + + return parseFloat(str); + } + + let operands = []; + const entries = []; + pos = 0; + const end = dict.length; + + while (pos < end) { + let b = dict[pos]; + + if (b <= 21) { + if (b === 12) { + b = b << 8 | dict[++pos]; + } + + entries.push([b, operands]); + operands = []; + ++pos; + } else { + operands.push(parseOperand()); + } + } + + return entries; + } + + parseIndex(pos) { + const cffIndex = new CFFIndex(); + const bytes = this.bytes; + const count = bytes[pos++] << 8 | bytes[pos++]; + const offsets = []; + let end = pos; + let i, ii; + + if (count !== 0) { + const offsetSize = bytes[pos++]; + const startPos = pos + (count + 1) * offsetSize - 1; + + for (i = 0, ii = count + 1; i < ii; ++i) { + let offset = 0; + + for (let j = 0; j < offsetSize; ++j) { + offset <<= 8; + offset += bytes[pos++]; + } + + offsets.push(startPos + offset); + } + + end = offsets[count]; + } + + for (i = 0, ii = offsets.length - 1; i < ii; ++i) { + const offsetStart = offsets[i]; + const offsetEnd = offsets[i + 1]; + cffIndex.add(bytes.subarray(offsetStart, offsetEnd)); + } + + return { + obj: cffIndex, + endPos: end + }; + } + + parseNameIndex(index) { + const names = []; + + for (let i = 0, ii = index.count; i < ii; ++i) { + const name = index.get(i); + names.push((0, _util.bytesToString)(name)); + } + + return names; + } + + parseStringIndex(index) { + const strings = new CFFStrings(); + + for (let i = 0, ii = index.count; i < ii; ++i) { + const data = index.get(i); + strings.add((0, _util.bytesToString)(data)); + } + + return strings; + } + + createDict(Type, dict, strings) { + const cffDict = new Type(strings); + + for (let i = 0, ii = dict.length; i < ii; ++i) { + const pair = dict[i]; + const key = pair[0]; + const value = pair[1]; + cffDict.setByKey(key, value); + } + + return cffDict; + } + + parseCharString(state, data, localSubrIndex, globalSubrIndex) { + if (!data || state.callDepth > MAX_SUBR_NESTING) { + return false; + } + + let stackSize = state.stackSize; + const stack = state.stack; + const length = data.length; + + for (let j = 0; j < length;) { + const value = data[j++]; + let validationCommand = null; + + if (value === 12) { + const q = data[j++]; + + if (q === 0) { + data[j - 2] = 139; + data[j - 1] = 22; + stackSize = 0; + } else { + validationCommand = CharstringValidationData12[q]; + } + } else if (value === 28) { + stack[stackSize] = (data[j] << 24 | data[j + 1] << 16) >> 16; + j += 2; + stackSize++; + } else if (value === 14) { + if (stackSize >= 4) { + stackSize -= 4; + + if (this.seacAnalysisEnabled) { + state.seac = stack.slice(stackSize, stackSize + 4); + return false; + } + } + + validationCommand = CharstringValidationData[value]; + } else if (value >= 32 && value <= 246) { + stack[stackSize] = value - 139; + stackSize++; + } else if (value >= 247 && value <= 254) { + stack[stackSize] = value < 251 ? (value - 247 << 8) + data[j] + 108 : -(value - 251 << 8) - data[j] - 108; + j++; + stackSize++; + } else if (value === 255) { + stack[stackSize] = (data[j] << 24 | data[j + 1] << 16 | data[j + 2] << 8 | data[j + 3]) / 65536; + j += 4; + stackSize++; + } else if (value === 19 || value === 20) { + state.hints += stackSize >> 1; + j += state.hints + 7 >> 3; + stackSize %= 2; + validationCommand = CharstringValidationData[value]; + } else if (value === 10 || value === 29) { + let subrsIndex; + + if (value === 10) { + subrsIndex = localSubrIndex; + } else { + subrsIndex = globalSubrIndex; + } + + if (!subrsIndex) { + validationCommand = CharstringValidationData[value]; + (0, _util.warn)("Missing subrsIndex for " + validationCommand.id); + return false; + } + + let bias = 32768; + + if (subrsIndex.count < 1240) { + bias = 107; + } else if (subrsIndex.count < 33900) { + bias = 1131; + } + + const subrNumber = stack[--stackSize] + bias; + + if (subrNumber < 0 || subrNumber >= subrsIndex.count || isNaN(subrNumber)) { + validationCommand = CharstringValidationData[value]; + (0, _util.warn)("Out of bounds subrIndex for " + validationCommand.id); + return false; + } + + state.stackSize = stackSize; + state.callDepth++; + const valid = this.parseCharString(state, subrsIndex.get(subrNumber), localSubrIndex, globalSubrIndex); + + if (!valid) { + return false; + } + + state.callDepth--; + stackSize = state.stackSize; + continue; + } else if (value === 11) { + state.stackSize = stackSize; + return true; + } else if (value === 0 && j === data.length) { + data[j - 1] = 14; + validationCommand = CharstringValidationData[14]; + } else { + validationCommand = CharstringValidationData[value]; + } + + if (validationCommand) { + if (validationCommand.stem) { + state.hints += stackSize >> 1; + + if (value === 3 || value === 23) { + state.hasVStems = true; + } else if (state.hasVStems && (value === 1 || value === 18)) { + (0, _util.warn)("CFF stem hints are in wrong order"); + data[j - 1] = value === 1 ? 3 : 23; + } + } + + if ("min" in validationCommand) { + if (!state.undefStack && stackSize < validationCommand.min) { + (0, _util.warn)("Not enough parameters for " + validationCommand.id + "; actual: " + stackSize + ", expected: " + validationCommand.min); + + if (stackSize === 0) { + data[j - 1] = 14; + return true; + } + + return false; + } + } + + if (state.firstStackClearing && validationCommand.stackClearing) { + state.firstStackClearing = false; + stackSize -= validationCommand.min; + + if (stackSize >= 2 && validationCommand.stem) { + stackSize %= 2; + } else if (stackSize > 1) { + (0, _util.warn)("Found too many parameters for stack-clearing command"); + } + + if (stackSize > 0) { + state.width = stack[stackSize - 1]; + } + } + + if ("stackDelta" in validationCommand) { + if ("stackFn" in validationCommand) { + validationCommand.stackFn(stack, stackSize); + } + + stackSize += validationCommand.stackDelta; + } else if (validationCommand.stackClearing) { + stackSize = 0; + } else if (validationCommand.resetStack) { + stackSize = 0; + state.undefStack = false; + } else if (validationCommand.undefStack) { + stackSize = 0; + state.undefStack = true; + state.firstStackClearing = false; + } + } + } + + state.stackSize = stackSize; + return true; + } + + parseCharStrings({ + charStrings, + localSubrIndex, + globalSubrIndex, + fdSelect, + fdArray, + privateDict + }) { + const seacs = []; + const widths = []; + const count = charStrings.count; + + for (let i = 0; i < count; i++) { + const charstring = charStrings.get(i); + const state = { + callDepth: 0, + stackSize: 0, + stack: [], + undefStack: true, + hints: 0, + firstStackClearing: true, + seac: null, + width: null, + hasVStems: false + }; + let valid = true; + let localSubrToUse = null; + let privateDictToUse = privateDict; + + if (fdSelect && fdArray.length) { + const fdIndex = fdSelect.getFDIndex(i); + + if (fdIndex === -1) { + (0, _util.warn)("Glyph index is not in fd select."); + valid = false; + } + + if (fdIndex >= fdArray.length) { + (0, _util.warn)("Invalid fd index for glyph index."); + valid = false; + } + + if (valid) { + privateDictToUse = fdArray[fdIndex].privateDict; + localSubrToUse = privateDictToUse.subrsIndex; + } + } else if (localSubrIndex) { + localSubrToUse = localSubrIndex; + } + + if (valid) { + valid = this.parseCharString(state, charstring, localSubrToUse, globalSubrIndex); + } + + if (state.width !== null) { + const nominalWidth = privateDictToUse.getByName("nominalWidthX"); + widths[i] = nominalWidth + state.width; + } else { + const defaultWidth = privateDictToUse.getByName("defaultWidthX"); + widths[i] = defaultWidth; + } + + if (state.seac !== null) { + seacs[i] = state.seac; + } + + if (!valid) { + charStrings.set(i, new Uint8Array([14])); + } + } + + return { + charStrings, + seacs, + widths + }; + } + + emptyPrivateDictionary(parentDict) { + const privateDict = this.createDict(CFFPrivateDict, [], parentDict.strings); + parentDict.setByKey(18, [0, 0]); + parentDict.privateDict = privateDict; + } + + parsePrivateDict(parentDict) { + if (!parentDict.hasName("Private")) { + this.emptyPrivateDictionary(parentDict); + return; + } + + const privateOffset = parentDict.getByName("Private"); + + if (!Array.isArray(privateOffset) || privateOffset.length !== 2) { + parentDict.removeByName("Private"); + return; + } + + const size = privateOffset[0]; + const offset = privateOffset[1]; + + if (size === 0 || offset >= this.bytes.length) { + this.emptyPrivateDictionary(parentDict); + return; + } + + const privateDictEnd = offset + size; + const dictData = this.bytes.subarray(offset, privateDictEnd); + const dict = this.parseDict(dictData); + const privateDict = this.createDict(CFFPrivateDict, dict, parentDict.strings); + parentDict.privateDict = privateDict; + + if (!privateDict.getByName("Subrs")) { + return; + } + + const subrsOffset = privateDict.getByName("Subrs"); + const relativeOffset = offset + subrsOffset; + + if (subrsOffset === 0 || relativeOffset >= this.bytes.length) { + this.emptyPrivateDictionary(parentDict); + return; + } + + const subrsIndex = this.parseIndex(relativeOffset); + privateDict.subrsIndex = subrsIndex.obj; + } + + parseCharsets(pos, length, strings, cid) { + if (pos === 0) { + return new CFFCharset(true, CFFCharsetPredefinedTypes.ISO_ADOBE, _charsets.ISOAdobeCharset); + } else if (pos === 1) { + return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT, _charsets.ExpertCharset); + } else if (pos === 2) { + return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT_SUBSET, _charsets.ExpertSubsetCharset); + } + + const bytes = this.bytes; + const start = pos; + const format = bytes[pos++]; + const charset = [cid ? 0 : ".notdef"]; + let id, count, i; + length -= 1; + + switch (format) { + case 0: + for (i = 0; i < length; i++) { + id = bytes[pos++] << 8 | bytes[pos++]; + charset.push(cid ? id : strings.get(id)); + } + + break; + + case 1: + while (charset.length <= length) { + id = bytes[pos++] << 8 | bytes[pos++]; + count = bytes[pos++]; + + for (i = 0; i <= count; i++) { + charset.push(cid ? id++ : strings.get(id++)); + } + } + + break; + + case 2: + while (charset.length <= length) { + id = bytes[pos++] << 8 | bytes[pos++]; + count = bytes[pos++] << 8 | bytes[pos++]; + + for (i = 0; i <= count; i++) { + charset.push(cid ? id++ : strings.get(id++)); + } + } + + break; + + default: + throw new _util.FormatError("Unknown charset format"); + } + + const end = pos; + const raw = bytes.subarray(start, end); + return new CFFCharset(false, format, charset, raw); + } + + parseEncoding(pos, properties, strings, charset) { + const encoding = Object.create(null); + const bytes = this.bytes; + let predefined = false; + let format, i, ii; + let raw = null; + + function readSupplement() { + const supplementsCount = bytes[pos++]; + + for (i = 0; i < supplementsCount; i++) { + const code = bytes[pos++]; + const sid = (bytes[pos++] << 8) + (bytes[pos++] & 0xff); + encoding[code] = charset.indexOf(strings.get(sid)); + } + } + + if (pos === 0 || pos === 1) { + predefined = true; + format = pos; + const baseEncoding = pos ? _encodings.ExpertEncoding : _encodings.StandardEncoding; + + for (i = 0, ii = charset.length; i < ii; i++) { + const index = baseEncoding.indexOf(charset[i]); + + if (index !== -1) { + encoding[index] = i; + } + } + } else { + const dataStart = pos; + format = bytes[pos++]; + + switch (format & 0x7f) { + case 0: + const glyphsCount = bytes[pos++]; + + for (i = 1; i <= glyphsCount; i++) { + encoding[bytes[pos++]] = i; + } + + break; + + case 1: + const rangesCount = bytes[pos++]; + let gid = 1; + + for (i = 0; i < rangesCount; i++) { + const start = bytes[pos++]; + const left = bytes[pos++]; + + for (let j = start; j <= start + left; j++) { + encoding[j] = gid++; + } + } + + break; + + default: + throw new _util.FormatError(`Unknown encoding format: ${format} in CFF`); + } + + const dataEnd = pos; + + if (format & 0x80) { + bytes[dataStart] &= 0x7f; + readSupplement(); + } + + raw = bytes.subarray(dataStart, dataEnd); + } + + format &= 0x7f; + return new CFFEncoding(predefined, format, encoding, raw); + } + + parseFDSelect(pos, length) { + const bytes = this.bytes; + const format = bytes[pos++]; + const fdSelect = []; + let i; + + switch (format) { + case 0: + for (i = 0; i < length; ++i) { + const id = bytes[pos++]; + fdSelect.push(id); + } + + break; + + case 3: + const rangesCount = bytes[pos++] << 8 | bytes[pos++]; + + for (i = 0; i < rangesCount; ++i) { + let first = bytes[pos++] << 8 | bytes[pos++]; + + if (i === 0 && first !== 0) { + (0, _util.warn)("parseFDSelect: The first range must have a first GID of 0" + " -- trying to recover."); + first = 0; + } + + const fdIndex = bytes[pos++]; + const next = bytes[pos] << 8 | bytes[pos + 1]; + + for (let j = first; j < next; ++j) { + fdSelect.push(fdIndex); + } + } + + pos += 2; + break; + + default: + throw new _util.FormatError(`parseFDSelect: Unknown format "${format}".`); + } + + if (fdSelect.length !== length) { + throw new _util.FormatError("parseFDSelect: Invalid font data."); + } + + return new CFFFDSelect(format, fdSelect); + } + +} + +exports.CFFParser = CFFParser; + +class CFF { + constructor() { + this.header = null; + this.names = []; + this.topDict = null; + this.strings = new CFFStrings(); + this.globalSubrIndex = null; + this.encoding = null; + this.charset = null; + this.charStrings = null; + this.fdArray = []; + this.fdSelect = null; + this.isCIDFont = false; + } + + duplicateFirstGlyph() { + if (this.charStrings.count >= 65535) { + (0, _util.warn)("Not enough space in charstrings to duplicate first glyph."); + return; + } + + const glyphZero = this.charStrings.get(0); + this.charStrings.add(glyphZero); + + if (this.isCIDFont) { + this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0]); + } + } + + hasGlyphId(id) { + if (id < 0 || id >= this.charStrings.count) { + return false; + } + + const glyph = this.charStrings.get(id); + return glyph.length > 0; + } + +} + +exports.CFF = CFF; + +class CFFHeader { + constructor(major, minor, hdrSize, offSize) { + this.major = major; + this.minor = minor; + this.hdrSize = hdrSize; + this.offSize = offSize; + } + +} + +exports.CFFHeader = CFFHeader; + +class CFFStrings { + constructor() { + this.strings = []; + } + + get(index) { + if (index >= 0 && index <= NUM_STANDARD_CFF_STRINGS - 1) { + return CFFStandardStrings[index]; + } + + if (index - NUM_STANDARD_CFF_STRINGS <= this.strings.length) { + return this.strings[index - NUM_STANDARD_CFF_STRINGS]; + } + + return CFFStandardStrings[0]; + } + + getSID(str) { + let index = CFFStandardStrings.indexOf(str); + + if (index !== -1) { + return index; + } + + index = this.strings.indexOf(str); + + if (index !== -1) { + return index + NUM_STANDARD_CFF_STRINGS; + } + + return -1; + } + + add(value) { + this.strings.push(value); + } + + get count() { + return this.strings.length; + } + +} + +exports.CFFStrings = CFFStrings; + +class CFFIndex { + constructor() { + this.objects = []; + this.length = 0; + } + + add(data) { + this.length += data.length; + this.objects.push(data); + } + + set(index, data) { + this.length += data.length - this.objects[index].length; + this.objects[index] = data; + } + + get(index) { + return this.objects[index]; + } + + get count() { + return this.objects.length; + } + +} + +exports.CFFIndex = CFFIndex; + +class CFFDict { + constructor(tables, strings) { + this.keyToNameMap = tables.keyToNameMap; + this.nameToKeyMap = tables.nameToKeyMap; + this.defaults = tables.defaults; + this.types = tables.types; + this.opcodes = tables.opcodes; + this.order = tables.order; + this.strings = strings; + this.values = Object.create(null); + } + + setByKey(key, value) { + if (!(key in this.keyToNameMap)) { + return false; + } + + const valueLength = value.length; + + if (valueLength === 0) { + return true; + } + + for (let i = 0; i < valueLength; i++) { + if (isNaN(value[i])) { + (0, _util.warn)('Invalid CFFDict value: "' + value + '" for key "' + key + '".'); + return true; + } + } + + const type = this.types[key]; + + if (type === "num" || type === "sid" || type === "offset") { + value = value[0]; + } + + this.values[key] = value; + return true; + } + + setByName(name, value) { + if (!(name in this.nameToKeyMap)) { + throw new _util.FormatError(`Invalid dictionary name "${name}"`); + } + + this.values[this.nameToKeyMap[name]] = value; + } + + hasName(name) { + return this.nameToKeyMap[name] in this.values; + } + + getByName(name) { + if (!(name in this.nameToKeyMap)) { + throw new _util.FormatError(`Invalid dictionary name ${name}"`); + } + + const key = this.nameToKeyMap[name]; + + if (!(key in this.values)) { + return this.defaults[key]; + } + + return this.values[key]; + } + + removeByName(name) { + delete this.values[this.nameToKeyMap[name]]; + } + + static createTables(layout) { + const tables = { + keyToNameMap: {}, + nameToKeyMap: {}, + defaults: {}, + types: {}, + opcodes: {}, + order: [] + }; + + for (let i = 0, ii = layout.length; i < ii; ++i) { + const entry = layout[i]; + const key = Array.isArray(entry[0]) ? (entry[0][0] << 8) + entry[0][1] : entry[0]; + tables.keyToNameMap[key] = entry[1]; + tables.nameToKeyMap[entry[1]] = key; + tables.types[key] = entry[2]; + tables.defaults[key] = entry[3]; + tables.opcodes[key] = Array.isArray(entry[0]) ? entry[0] : [entry[0]]; + tables.order.push(key); + } + + return tables; + } + +} + +const CFFTopDictLayout = [[[12, 30], "ROS", ["sid", "sid", "num"], null], [[12, 20], "SyntheticBase", "num", null], [0, "version", "sid", null], [1, "Notice", "sid", null], [[12, 0], "Copyright", "sid", null], [2, "FullName", "sid", null], [3, "FamilyName", "sid", null], [4, "Weight", "sid", null], [[12, 1], "isFixedPitch", "num", 0], [[12, 2], "ItalicAngle", "num", 0], [[12, 3], "UnderlinePosition", "num", -100], [[12, 4], "UnderlineThickness", "num", 50], [[12, 5], "PaintType", "num", 0], [[12, 6], "CharstringType", "num", 2], [[12, 7], "FontMatrix", ["num", "num", "num", "num", "num", "num"], [0.001, 0, 0, 0.001, 0, 0]], [13, "UniqueID", "num", null], [5, "FontBBox", ["num", "num", "num", "num"], [0, 0, 0, 0]], [[12, 8], "StrokeWidth", "num", 0], [14, "XUID", "array", null], [15, "charset", "offset", 0], [16, "Encoding", "offset", 0], [17, "CharStrings", "offset", 0], [18, "Private", ["offset", "offset"], null], [[12, 21], "PostScript", "sid", null], [[12, 22], "BaseFontName", "sid", null], [[12, 23], "BaseFontBlend", "delta", null], [[12, 31], "CIDFontVersion", "num", 0], [[12, 32], "CIDFontRevision", "num", 0], [[12, 33], "CIDFontType", "num", 0], [[12, 34], "CIDCount", "num", 8720], [[12, 35], "UIDBase", "num", null], [[12, 37], "FDSelect", "offset", null], [[12, 36], "FDArray", "offset", null], [[12, 38], "FontName", "sid", null]]; + +class CFFTopDict extends CFFDict { + static get tables() { + return (0, _util.shadow)(this, "tables", this.createTables(CFFTopDictLayout)); + } + + constructor(strings) { + super(CFFTopDict.tables, strings); + this.privateDict = null; + } + +} + +exports.CFFTopDict = CFFTopDict; +const CFFPrivateDictLayout = [[6, "BlueValues", "delta", null], [7, "OtherBlues", "delta", null], [8, "FamilyBlues", "delta", null], [9, "FamilyOtherBlues", "delta", null], [[12, 9], "BlueScale", "num", 0.039625], [[12, 10], "BlueShift", "num", 7], [[12, 11], "BlueFuzz", "num", 1], [10, "StdHW", "num", null], [11, "StdVW", "num", null], [[12, 12], "StemSnapH", "delta", null], [[12, 13], "StemSnapV", "delta", null], [[12, 14], "ForceBold", "num", 0], [[12, 17], "LanguageGroup", "num", 0], [[12, 18], "ExpansionFactor", "num", 0.06], [[12, 19], "initialRandomSeed", "num", 0], [20, "defaultWidthX", "num", 0], [21, "nominalWidthX", "num", 0], [19, "Subrs", "offset", null]]; + +class CFFPrivateDict extends CFFDict { + static get tables() { + return (0, _util.shadow)(this, "tables", this.createTables(CFFPrivateDictLayout)); + } + + constructor(strings) { + super(CFFPrivateDict.tables, strings); + this.subrsIndex = null; + } + +} + +exports.CFFPrivateDict = CFFPrivateDict; +const CFFCharsetPredefinedTypes = { + ISO_ADOBE: 0, + EXPERT: 1, + EXPERT_SUBSET: 2 +}; + +class CFFCharset { + constructor(predefined, format, charset, raw) { + this.predefined = predefined; + this.format = format; + this.charset = charset; + this.raw = raw; + } + +} + +exports.CFFCharset = CFFCharset; + +class CFFEncoding { + constructor(predefined, format, encoding, raw) { + this.predefined = predefined; + this.format = format; + this.encoding = encoding; + this.raw = raw; + } + +} + +class CFFFDSelect { + constructor(format, fdSelect) { + this.format = format; + this.fdSelect = fdSelect; + } + + getFDIndex(glyphIndex) { + if (glyphIndex < 0 || glyphIndex >= this.fdSelect.length) { + return -1; + } + + return this.fdSelect[glyphIndex]; + } + +} + +exports.CFFFDSelect = CFFFDSelect; + +class CFFOffsetTracker { + constructor() { + this.offsets = Object.create(null); + } + + isTracking(key) { + return key in this.offsets; + } + + track(key, location) { + if (key in this.offsets) { + throw new _util.FormatError(`Already tracking location of ${key}`); + } + + this.offsets[key] = location; + } + + offset(value) { + for (const key in this.offsets) { + this.offsets[key] += value; + } + } + + setEntryLocation(key, values, output) { + if (!(key in this.offsets)) { + throw new _util.FormatError(`Not tracking location of ${key}`); + } + + const data = output.data; + const dataOffset = this.offsets[key]; + const size = 5; + + for (let i = 0, ii = values.length; i < ii; ++i) { + const offset0 = i * size + dataOffset; + const offset1 = offset0 + 1; + const offset2 = offset0 + 2; + const offset3 = offset0 + 3; + const offset4 = offset0 + 4; + + if (data[offset0] !== 0x1d || data[offset1] !== 0 || data[offset2] !== 0 || data[offset3] !== 0 || data[offset4] !== 0) { + throw new _util.FormatError("writing to an offset that is not empty"); + } + + const value = values[i]; + data[offset0] = 0x1d; + data[offset1] = value >> 24 & 0xff; + data[offset2] = value >> 16 & 0xff; + data[offset3] = value >> 8 & 0xff; + data[offset4] = value & 0xff; + } + } + +} + +class CFFCompiler { + constructor(cff) { + this.cff = cff; + } + + compile() { + const cff = this.cff; + const output = { + data: [], + length: 0, + + add(data) { + this.data = this.data.concat(data); + this.length = this.data.length; + } + + }; + const header = this.compileHeader(cff.header); + output.add(header); + const nameIndex = this.compileNameIndex(cff.names); + output.add(nameIndex); + + if (cff.isCIDFont) { + if (cff.topDict.hasName("FontMatrix")) { + const base = cff.topDict.getByName("FontMatrix"); + cff.topDict.removeByName("FontMatrix"); + + for (let i = 0, ii = cff.fdArray.length; i < ii; i++) { + const subDict = cff.fdArray[i]; + let matrix = base.slice(0); + + if (subDict.hasName("FontMatrix")) { + matrix = _util.Util.transform(matrix, subDict.getByName("FontMatrix")); + } + + subDict.setByName("FontMatrix", matrix); + } + } + } + + const xuid = cff.topDict.getByName("XUID"); + + if (xuid && xuid.length > 16) { + cff.topDict.removeByName("XUID"); + } + + cff.topDict.setByName("charset", 0); + let compiled = this.compileTopDicts([cff.topDict], output.length, cff.isCIDFont); + output.add(compiled.output); + const topDictTracker = compiled.trackers[0]; + const stringIndex = this.compileStringIndex(cff.strings.strings); + output.add(stringIndex); + const globalSubrIndex = this.compileIndex(cff.globalSubrIndex); + output.add(globalSubrIndex); + + if (cff.encoding && cff.topDict.hasName("Encoding")) { + if (cff.encoding.predefined) { + topDictTracker.setEntryLocation("Encoding", [cff.encoding.format], output); + } else { + const encoding = this.compileEncoding(cff.encoding); + topDictTracker.setEntryLocation("Encoding", [output.length], output); + output.add(encoding); + } + } + + const charset = this.compileCharset(cff.charset, cff.charStrings.count, cff.strings, cff.isCIDFont); + topDictTracker.setEntryLocation("charset", [output.length], output); + output.add(charset); + const charStrings = this.compileCharStrings(cff.charStrings); + topDictTracker.setEntryLocation("CharStrings", [output.length], output); + output.add(charStrings); + + if (cff.isCIDFont) { + topDictTracker.setEntryLocation("FDSelect", [output.length], output); + const fdSelect = this.compileFDSelect(cff.fdSelect); + output.add(fdSelect); + compiled = this.compileTopDicts(cff.fdArray, output.length, true); + topDictTracker.setEntryLocation("FDArray", [output.length], output); + output.add(compiled.output); + const fontDictTrackers = compiled.trackers; + this.compilePrivateDicts(cff.fdArray, fontDictTrackers, output); + } + + this.compilePrivateDicts([cff.topDict], [topDictTracker], output); + output.add([0]); + return output.data; + } + + encodeNumber(value) { + if (Number.isInteger(value)) { + return this.encodeInteger(value); + } + + return this.encodeFloat(value); + } + + static get EncodeFloatRegExp() { + return (0, _util.shadow)(this, "EncodeFloatRegExp", /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/); + } + + encodeFloat(num) { + let value = num.toString(); + const m = CFFCompiler.EncodeFloatRegExp.exec(value); + + if (m) { + const epsilon = parseFloat("1e" + ((m[2] ? +m[2] : 0) + m[1].length)); + value = (Math.round(num * epsilon) / epsilon).toString(); + } + + let nibbles = ""; + let i, ii; + + for (i = 0, ii = value.length; i < ii; ++i) { + const a = value[i]; + + if (a === "e") { + nibbles += value[++i] === "-" ? "c" : "b"; + } else if (a === ".") { + nibbles += "a"; + } else if (a === "-") { + nibbles += "e"; + } else { + nibbles += a; + } + } + + nibbles += nibbles.length & 1 ? "f" : "ff"; + const out = [30]; + + for (i = 0, ii = nibbles.length; i < ii; i += 2) { + out.push(parseInt(nibbles.substring(i, i + 2), 16)); + } + + return out; + } + + encodeInteger(value) { + let code; + + if (value >= -107 && value <= 107) { + code = [value + 139]; + } else if (value >= 108 && value <= 1131) { + value -= 108; + code = [(value >> 8) + 247, value & 0xff]; + } else if (value >= -1131 && value <= -108) { + value = -value - 108; + code = [(value >> 8) + 251, value & 0xff]; + } else if (value >= -32768 && value <= 32767) { + code = [0x1c, value >> 8 & 0xff, value & 0xff]; + } else { + code = [0x1d, value >> 24 & 0xff, value >> 16 & 0xff, value >> 8 & 0xff, value & 0xff]; + } + + return code; + } + + compileHeader(header) { + return [header.major, header.minor, 4, header.offSize]; + } + + compileNameIndex(names) { + const nameIndex = new CFFIndex(); + + for (let i = 0, ii = names.length; i < ii; ++i) { + const name = names[i]; + const length = Math.min(name.length, 127); + let sanitizedName = new Array(length); + + for (let j = 0; j < length; j++) { + let char = name[j]; + + if (char < "!" || char > "~" || char === "[" || char === "]" || char === "(" || char === ")" || char === "{" || char === "}" || char === "<" || char === ">" || char === "/" || char === "%") { + char = "_"; + } + + sanitizedName[j] = char; + } + + sanitizedName = sanitizedName.join(""); + + if (sanitizedName === "") { + sanitizedName = "Bad_Font_Name"; + } + + nameIndex.add((0, _util.stringToBytes)(sanitizedName)); + } + + return this.compileIndex(nameIndex); + } + + compileTopDicts(dicts, length, removeCidKeys) { + const fontDictTrackers = []; + let fdArrayIndex = new CFFIndex(); + + for (let i = 0, ii = dicts.length; i < ii; ++i) { + const fontDict = dicts[i]; + + if (removeCidKeys) { + fontDict.removeByName("CIDFontVersion"); + fontDict.removeByName("CIDFontRevision"); + fontDict.removeByName("CIDFontType"); + fontDict.removeByName("CIDCount"); + fontDict.removeByName("UIDBase"); + } + + const fontDictTracker = new CFFOffsetTracker(); + const fontDictData = this.compileDict(fontDict, fontDictTracker); + fontDictTrackers.push(fontDictTracker); + fdArrayIndex.add(fontDictData); + fontDictTracker.offset(length); + } + + fdArrayIndex = this.compileIndex(fdArrayIndex, fontDictTrackers); + return { + trackers: fontDictTrackers, + output: fdArrayIndex + }; + } + + compilePrivateDicts(dicts, trackers, output) { + for (let i = 0, ii = dicts.length; i < ii; ++i) { + const fontDict = dicts[i]; + const privateDict = fontDict.privateDict; + + if (!privateDict || !fontDict.hasName("Private")) { + throw new _util.FormatError("There must be a private dictionary."); + } + + const privateDictTracker = new CFFOffsetTracker(); + const privateDictData = this.compileDict(privateDict, privateDictTracker); + let outputLength = output.length; + privateDictTracker.offset(outputLength); + + if (!privateDictData.length) { + outputLength = 0; + } + + trackers[i].setEntryLocation("Private", [privateDictData.length, outputLength], output); + output.add(privateDictData); + + if (privateDict.subrsIndex && privateDict.hasName("Subrs")) { + const subrs = this.compileIndex(privateDict.subrsIndex); + privateDictTracker.setEntryLocation("Subrs", [privateDictData.length], output); + output.add(subrs); + } + } + } + + compileDict(dict, offsetTracker) { + const out = []; + + for (const key of dict.order) { + if (!(key in dict.values)) { + continue; + } + + let values = dict.values[key]; + let types = dict.types[key]; + + if (!Array.isArray(types)) { + types = [types]; + } + + if (!Array.isArray(values)) { + values = [values]; + } + + if (values.length === 0) { + continue; + } + + for (let j = 0, jj = types.length; j < jj; ++j) { + const type = types[j]; + const value = values[j]; + + switch (type) { + case "num": + case "sid": + out.push(...this.encodeNumber(value)); + break; + + case "offset": + const name = dict.keyToNameMap[key]; + + if (!offsetTracker.isTracking(name)) { + offsetTracker.track(name, out.length); + } + + out.push(0x1d, 0, 0, 0, 0); + break; + + case "array": + case "delta": + out.push(...this.encodeNumber(value)); + + for (let k = 1, kk = values.length; k < kk; ++k) { + out.push(...this.encodeNumber(values[k])); + } + + break; + + default: + throw new _util.FormatError(`Unknown data type of ${type}`); + } + } + + out.push(...dict.opcodes[key]); + } + + return out; + } + + compileStringIndex(strings) { + const stringIndex = new CFFIndex(); + + for (let i = 0, ii = strings.length; i < ii; ++i) { + stringIndex.add((0, _util.stringToBytes)(strings[i])); + } + + return this.compileIndex(stringIndex); + } + + compileGlobalSubrIndex() { + const globalSubrIndex = this.cff.globalSubrIndex; + this.out.writeByteArray(this.compileIndex(globalSubrIndex)); + } + + compileCharStrings(charStrings) { + const charStringsIndex = new CFFIndex(); + + for (let i = 0; i < charStrings.count; i++) { + const glyph = charStrings.get(i); + + if (glyph.length === 0) { + charStringsIndex.add(new Uint8Array([0x8b, 0x0e])); + continue; + } + + charStringsIndex.add(glyph); + } + + return this.compileIndex(charStringsIndex); + } + + compileCharset(charset, numGlyphs, strings, isCIDFont) { + let out; + const numGlyphsLessNotDef = numGlyphs - 1; + + if (isCIDFont) { + out = new Uint8Array([2, 0, 0, numGlyphsLessNotDef >> 8 & 0xff, numGlyphsLessNotDef & 0xff]); + } else { + const length = 1 + numGlyphsLessNotDef * 2; + out = new Uint8Array(length); + out[0] = 0; + let charsetIndex = 0; + const numCharsets = charset.charset.length; + let warned = false; + + for (let i = 1; i < out.length; i += 2) { + let sid = 0; + + if (charsetIndex < numCharsets) { + const name = charset.charset[charsetIndex++]; + sid = strings.getSID(name); + + if (sid === -1) { + sid = 0; + + if (!warned) { + warned = true; + (0, _util.warn)(`Couldn't find ${name} in CFF strings`); + } + } + } + + out[i] = sid >> 8 & 0xff; + out[i + 1] = sid & 0xff; + } + } + + return this.compileTypedArray(out); + } + + compileEncoding(encoding) { + return this.compileTypedArray(encoding.raw); + } + + compileFDSelect(fdSelect) { + const format = fdSelect.format; + let out, i; + + switch (format) { + case 0: + out = new Uint8Array(1 + fdSelect.fdSelect.length); + out[0] = format; + + for (i = 0; i < fdSelect.fdSelect.length; i++) { + out[i + 1] = fdSelect.fdSelect[i]; + } + + break; + + case 3: + const start = 0; + let lastFD = fdSelect.fdSelect[0]; + const ranges = [format, 0, 0, start >> 8 & 0xff, start & 0xff, lastFD]; + + for (i = 1; i < fdSelect.fdSelect.length; i++) { + const currentFD = fdSelect.fdSelect[i]; + + if (currentFD !== lastFD) { + ranges.push(i >> 8 & 0xff, i & 0xff, currentFD); + lastFD = currentFD; + } + } + + const numRanges = (ranges.length - 3) / 3; + ranges[1] = numRanges >> 8 & 0xff; + ranges[2] = numRanges & 0xff; + ranges.push(i >> 8 & 0xff, i & 0xff); + out = new Uint8Array(ranges); + break; + } + + return this.compileTypedArray(out); + } + + compileTypedArray(data) { + const out = []; + + for (let i = 0, ii = data.length; i < ii; ++i) { + out[i] = data[i]; + } + + return out; + } + + compileIndex(index, trackers = []) { + const objects = index.objects; + const count = objects.length; + + if (count === 0) { + return [0, 0]; + } + + const data = [count >> 8 & 0xff, count & 0xff]; + let lastOffset = 1, + i; + + for (i = 0; i < count; ++i) { + lastOffset += objects[i].length; + } + + let offsetSize; + + if (lastOffset < 0x100) { + offsetSize = 1; + } else if (lastOffset < 0x10000) { + offsetSize = 2; + } else if (lastOffset < 0x1000000) { + offsetSize = 3; + } else { + offsetSize = 4; + } + + data.push(offsetSize); + let relativeOffset = 1; + + for (i = 0; i < count + 1; i++) { + if (offsetSize === 1) { + data.push(relativeOffset & 0xff); + } else if (offsetSize === 2) { + data.push(relativeOffset >> 8 & 0xff, relativeOffset & 0xff); + } else if (offsetSize === 3) { + data.push(relativeOffset >> 16 & 0xff, relativeOffset >> 8 & 0xff, relativeOffset & 0xff); + } else { + data.push(relativeOffset >>> 24 & 0xff, relativeOffset >> 16 & 0xff, relativeOffset >> 8 & 0xff, relativeOffset & 0xff); + } + + if (objects[i]) { + relativeOffset += objects[i].length; + } + } + + for (i = 0; i < count; i++) { + if (trackers[i]) { + trackers[i].offset(data.length); + } + + for (let j = 0, jj = objects[i].length; j < jj; j++) { + data.push(objects[i][j]); + } + } + + return data; + } + +} + +exports.CFFCompiler = CFFCompiler; + +/***/ }), +/* 36 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ISOAdobeCharset = exports.ExpertSubsetCharset = exports.ExpertCharset = void 0; +const ISOAdobeCharset = [".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "endash", "dagger", "daggerdbl", "periodcentered", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "questiondown", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "emdash", "AE", "ordfeminine", "Lslash", "Oslash", "OE", "ordmasculine", "ae", "dotlessi", "lslash", "oslash", "oe", "germandbls", "onesuperior", "logicalnot", "mu", "trademark", "Eth", "onehalf", "plusminus", "Thorn", "onequarter", "divide", "brokenbar", "degree", "thorn", "threequarters", "twosuperior", "registered", "minus", "eth", "multiply", "threesuperior", "copyright", "Aacute", "Acircumflex", "Adieresis", "Agrave", "Aring", "Atilde", "Ccedilla", "Eacute", "Ecircumflex", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Ntilde", "Oacute", "Ocircumflex", "Odieresis", "Ograve", "Otilde", "Scaron", "Uacute", "Ucircumflex", "Udieresis", "Ugrave", "Yacute", "Ydieresis", "Zcaron", "aacute", "acircumflex", "adieresis", "agrave", "aring", "atilde", "ccedilla", "eacute", "ecircumflex", "edieresis", "egrave", "iacute", "icircumflex", "idieresis", "igrave", "ntilde", "oacute", "ocircumflex", "odieresis", "ograve", "otilde", "scaron", "uacute", "ucircumflex", "udieresis", "ugrave", "yacute", "ydieresis", "zcaron"]; +exports.ISOAdobeCharset = ISOAdobeCharset; +const ExpertCharset = [".notdef", "space", "exclamsmall", "Hungarumlautsmall", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "exclamdownsmall", "centoldstyle", "Lslashsmall", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "Dotaccentsmall", "Macronsmall", "figuredash", "hypheninferior", "Ogoneksmall", "Ringsmall", "Cedillasmall", "onequarter", "onehalf", "threequarters", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall"]; +exports.ExpertCharset = ExpertCharset; +const ExpertSubsetCharset = [".notdef", "space", "dollaroldstyle", "dollarsuperior", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "hyphensuperior", "colonmonetary", "onefitted", "rupiah", "centoldstyle", "figuredash", "hypheninferior", "onequarter", "onehalf", "threequarters", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior"]; +exports.ExpertSubsetCharset = ExpertSubsetCharset; + +/***/ }), +/* 37 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ZapfDingbatsEncoding = exports.WinAnsiEncoding = exports.SymbolSetEncoding = exports.StandardEncoding = exports.MacRomanEncoding = exports.ExpertEncoding = void 0; +exports.getEncoding = getEncoding; +const ExpertEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclamsmall", "Hungarumlautsmall", "", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "", "", "", "isuperior", "", "", "lsuperior", "msuperior", "nsuperior", "osuperior", "", "", "rsuperior", "ssuperior", "tsuperior", "", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "exclamdownsmall", "centoldstyle", "Lslashsmall", "", "", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "", "Dotaccentsmall", "", "", "Macronsmall", "", "", "figuredash", "hypheninferior", "", "", "Ogoneksmall", "Ringsmall", "Cedillasmall", "", "", "", "onequarter", "onehalf", "threequarters", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "", "", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall"]; +exports.ExpertEncoding = ExpertEncoding; +const MacExpertEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclamsmall", "Hungarumlautsmall", "centoldstyle", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "", "threequartersemdash", "", "questionsmall", "", "", "", "", "Ethsmall", "", "", "onequarter", "onehalf", "threequarters", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "", "", "", "", "", "", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "", "parenrightinferior", "Circumflexsmall", "hypheninferior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "", "", "asuperior", "centsuperior", "", "", "", "", "Aacutesmall", "Agravesmall", "Acircumflexsmall", "Adieresissmall", "Atildesmall", "Aringsmall", "Ccedillasmall", "Eacutesmall", "Egravesmall", "Ecircumflexsmall", "Edieresissmall", "Iacutesmall", "Igravesmall", "Icircumflexsmall", "Idieresissmall", "Ntildesmall", "Oacutesmall", "Ogravesmall", "Ocircumflexsmall", "Odieresissmall", "Otildesmall", "Uacutesmall", "Ugravesmall", "Ucircumflexsmall", "Udieresissmall", "", "eightsuperior", "fourinferior", "threeinferior", "sixinferior", "eightinferior", "seveninferior", "Scaronsmall", "", "centinferior", "twoinferior", "", "Dieresissmall", "", "Caronsmall", "osuperior", "fiveinferior", "", "commainferior", "periodinferior", "Yacutesmall", "", "dollarinferior", "", "", "Thornsmall", "", "nineinferior", "zeroinferior", "Zcaronsmall", "AEsmall", "Oslashsmall", "questiondownsmall", "oneinferior", "Lslashsmall", "", "", "", "", "", "", "Cedillasmall", "", "", "", "", "", "OEsmall", "figuredash", "hyphensuperior", "", "", "", "", "exclamdownsmall", "", "Ydieresissmall", "", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "ninesuperior", "zerosuperior", "", "esuperior", "rsuperior", "tsuperior", "", "", "isuperior", "ssuperior", "dsuperior", "", "", "", "", "", "lsuperior", "Ogoneksmall", "Brevesmall", "Macronsmall", "bsuperior", "nsuperior", "msuperior", "commasuperior", "periodsuperior", "Dotaccentsmall", "Ringsmall", "", "", "", ""]; +const MacRomanEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quotesingle", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "grave", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "", "Adieresis", "Aring", "Ccedilla", "Eacute", "Ntilde", "Odieresis", "Udieresis", "aacute", "agrave", "acircumflex", "adieresis", "atilde", "aring", "ccedilla", "eacute", "egrave", "ecircumflex", "edieresis", "iacute", "igrave", "icircumflex", "idieresis", "ntilde", "oacute", "ograve", "ocircumflex", "odieresis", "otilde", "uacute", "ugrave", "ucircumflex", "udieresis", "dagger", "degree", "cent", "sterling", "section", "bullet", "paragraph", "germandbls", "registered", "copyright", "trademark", "acute", "dieresis", "notequal", "AE", "Oslash", "infinity", "plusminus", "lessequal", "greaterequal", "yen", "mu", "partialdiff", "summation", "product", "pi", "integral", "ordfeminine", "ordmasculine", "Omega", "ae", "oslash", "questiondown", "exclamdown", "logicalnot", "radical", "florin", "approxequal", "Delta", "guillemotleft", "guillemotright", "ellipsis", "space", "Agrave", "Atilde", "Otilde", "OE", "oe", "endash", "emdash", "quotedblleft", "quotedblright", "quoteleft", "quoteright", "divide", "lozenge", "ydieresis", "Ydieresis", "fraction", "currency", "guilsinglleft", "guilsinglright", "fi", "fl", "daggerdbl", "periodcentered", "quotesinglbase", "quotedblbase", "perthousand", "Acircumflex", "Ecircumflex", "Aacute", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Oacute", "Ocircumflex", "apple", "Ograve", "Uacute", "Ucircumflex", "Ugrave", "dotlessi", "circumflex", "tilde", "macron", "breve", "dotaccent", "ring", "cedilla", "hungarumlaut", "ogonek", "caron"]; +exports.MacRomanEncoding = MacRomanEncoding; +const StandardEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "", "endash", "dagger", "daggerdbl", "periodcentered", "", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "", "questiondown", "", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "", "ring", "cedilla", "", "hungarumlaut", "ogonek", "caron", "emdash", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "AE", "", "ordfeminine", "", "", "", "", "Lslash", "Oslash", "OE", "ordmasculine", "", "", "", "", "", "ae", "", "", "", "dotlessi", "", "", "lslash", "oslash", "oe", "germandbls", "", "", "", ""]; +exports.StandardEncoding = StandardEncoding; +const WinAnsiEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quotesingle", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "grave", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "bullet", "Euro", "bullet", "quotesinglbase", "florin", "quotedblbase", "ellipsis", "dagger", "daggerdbl", "circumflex", "perthousand", "Scaron", "guilsinglleft", "OE", "bullet", "Zcaron", "bullet", "bullet", "quoteleft", "quoteright", "quotedblleft", "quotedblright", "bullet", "endash", "emdash", "tilde", "trademark", "scaron", "guilsinglright", "oe", "bullet", "zcaron", "Ydieresis", "space", "exclamdown", "cent", "sterling", "currency", "yen", "brokenbar", "section", "dieresis", "copyright", "ordfeminine", "guillemotleft", "logicalnot", "hyphen", "registered", "macron", "degree", "plusminus", "twosuperior", "threesuperior", "acute", "mu", "paragraph", "periodcentered", "cedilla", "onesuperior", "ordmasculine", "guillemotright", "onequarter", "onehalf", "threequarters", "questiondown", "Agrave", "Aacute", "Acircumflex", "Atilde", "Adieresis", "Aring", "AE", "Ccedilla", "Egrave", "Eacute", "Ecircumflex", "Edieresis", "Igrave", "Iacute", "Icircumflex", "Idieresis", "Eth", "Ntilde", "Ograve", "Oacute", "Ocircumflex", "Otilde", "Odieresis", "multiply", "Oslash", "Ugrave", "Uacute", "Ucircumflex", "Udieresis", "Yacute", "Thorn", "germandbls", "agrave", "aacute", "acircumflex", "atilde", "adieresis", "aring", "ae", "ccedilla", "egrave", "eacute", "ecircumflex", "edieresis", "igrave", "iacute", "icircumflex", "idieresis", "eth", "ntilde", "ograve", "oacute", "ocircumflex", "otilde", "odieresis", "divide", "oslash", "ugrave", "uacute", "ucircumflex", "udieresis", "yacute", "thorn", "ydieresis"]; +exports.WinAnsiEncoding = WinAnsiEncoding; +const SymbolSetEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "universal", "numbersign", "existential", "percent", "ampersand", "suchthat", "parenleft", "parenright", "asteriskmath", "plus", "comma", "minus", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "congruent", "Alpha", "Beta", "Chi", "Delta", "Epsilon", "Phi", "Gamma", "Eta", "Iota", "theta1", "Kappa", "Lambda", "Mu", "Nu", "Omicron", "Pi", "Theta", "Rho", "Sigma", "Tau", "Upsilon", "sigma1", "Omega", "Xi", "Psi", "Zeta", "bracketleft", "therefore", "bracketright", "perpendicular", "underscore", "radicalex", "alpha", "beta", "chi", "delta", "epsilon", "phi", "gamma", "eta", "iota", "phi1", "kappa", "lambda", "mu", "nu", "omicron", "pi", "theta", "rho", "sigma", "tau", "upsilon", "omega1", "omega", "xi", "psi", "zeta", "braceleft", "bar", "braceright", "similar", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Euro", "Upsilon1", "minute", "lessequal", "fraction", "infinity", "florin", "club", "diamond", "heart", "spade", "arrowboth", "arrowleft", "arrowup", "arrowright", "arrowdown", "degree", "plusminus", "second", "greaterequal", "multiply", "proportional", "partialdiff", "bullet", "divide", "notequal", "equivalence", "approxequal", "ellipsis", "arrowvertex", "arrowhorizex", "carriagereturn", "aleph", "Ifraktur", "Rfraktur", "weierstrass", "circlemultiply", "circleplus", "emptyset", "intersection", "union", "propersuperset", "reflexsuperset", "notsubset", "propersubset", "reflexsubset", "element", "notelement", "angle", "gradient", "registerserif", "copyrightserif", "trademarkserif", "product", "radical", "dotmath", "logicalnot", "logicaland", "logicalor", "arrowdblboth", "arrowdblleft", "arrowdblup", "arrowdblright", "arrowdbldown", "lozenge", "angleleft", "registersans", "copyrightsans", "trademarksans", "summation", "parenlefttp", "parenleftex", "parenleftbt", "bracketlefttp", "bracketleftex", "bracketleftbt", "bracelefttp", "braceleftmid", "braceleftbt", "braceex", "", "angleright", "integral", "integraltp", "integralex", "integralbt", "parenrighttp", "parenrightex", "parenrightbt", "bracketrighttp", "bracketrightex", "bracketrightbt", "bracerighttp", "bracerightmid", "bracerightbt", ""]; +exports.SymbolSetEncoding = SymbolSetEncoding; +const ZapfDingbatsEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "a1", "a2", "a202", "a3", "a4", "a5", "a119", "a118", "a117", "a11", "a12", "a13", "a14", "a15", "a16", "a105", "a17", "a18", "a19", "a20", "a21", "a22", "a23", "a24", "a25", "a26", "a27", "a28", "a6", "a7", "a8", "a9", "a10", "a29", "a30", "a31", "a32", "a33", "a34", "a35", "a36", "a37", "a38", "a39", "a40", "a41", "a42", "a43", "a44", "a45", "a46", "a47", "a48", "a49", "a50", "a51", "a52", "a53", "a54", "a55", "a56", "a57", "a58", "a59", "a60", "a61", "a62", "a63", "a64", "a65", "a66", "a67", "a68", "a69", "a70", "a71", "a72", "a73", "a74", "a203", "a75", "a204", "a76", "a77", "a78", "a79", "a81", "a82", "a83", "a84", "a97", "a98", "a99", "a100", "", "a89", "a90", "a93", "a94", "a91", "a92", "a205", "a85", "a206", "a86", "a87", "a88", "a95", "a96", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "a101", "a102", "a103", "a104", "a106", "a107", "a108", "a112", "a111", "a110", "a109", "a120", "a121", "a122", "a123", "a124", "a125", "a126", "a127", "a128", "a129", "a130", "a131", "a132", "a133", "a134", "a135", "a136", "a137", "a138", "a139", "a140", "a141", "a142", "a143", "a144", "a145", "a146", "a147", "a148", "a149", "a150", "a151", "a152", "a153", "a154", "a155", "a156", "a157", "a158", "a159", "a160", "a161", "a163", "a164", "a196", "a165", "a192", "a166", "a167", "a168", "a169", "a170", "a171", "a172", "a173", "a162", "a174", "a175", "a176", "a177", "a178", "a179", "a193", "a180", "a199", "a181", "a200", "a182", "", "a201", "a183", "a184", "a197", "a185", "a194", "a198", "a186", "a195", "a187", "a188", "a189", "a190", "a191", ""]; +exports.ZapfDingbatsEncoding = ZapfDingbatsEncoding; + +function getEncoding(encodingName) { + switch (encodingName) { + case "WinAnsiEncoding": + return WinAnsiEncoding; + + case "StandardEncoding": + return StandardEncoding; + + case "MacRomanEncoding": + return MacRomanEncoding; + + case "SymbolSetEncoding": + return SymbolSetEncoding; + + case "ZapfDingbatsEncoding": + return ZapfDingbatsEncoding; + + case "ExpertEncoding": + return ExpertEncoding; + + case "MacExpertEncoding": + return MacExpertEncoding; + + default: + return null; + } +} + +/***/ }), +/* 38 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.SEAC_ANALYSIS_ENABLED = exports.MacStandardGlyphOrdering = exports.FontFlags = void 0; +exports.getFontType = getFontType; +exports.normalizeFontName = normalizeFontName; +exports.recoverGlyphName = recoverGlyphName; +exports.type1FontGlyphMapping = type1FontGlyphMapping; + +var _util = __w_pdfjs_require__(2); + +var _encodings = __w_pdfjs_require__(37); + +var _glyphlist = __w_pdfjs_require__(39); + +var _unicode = __w_pdfjs_require__(40); + +const SEAC_ANALYSIS_ENABLED = true; +exports.SEAC_ANALYSIS_ENABLED = SEAC_ANALYSIS_ENABLED; +const FontFlags = { + FixedPitch: 1, + Serif: 2, + Symbolic: 4, + Script: 8, + Nonsymbolic: 32, + Italic: 64, + AllCap: 65536, + SmallCap: 131072, + ForceBold: 262144 +}; +exports.FontFlags = FontFlags; +const MacStandardGlyphOrdering = [".notdef", ".null", "nonmarkingreturn", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quotesingle", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "grave", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "Adieresis", "Aring", "Ccedilla", "Eacute", "Ntilde", "Odieresis", "Udieresis", "aacute", "agrave", "acircumflex", "adieresis", "atilde", "aring", "ccedilla", "eacute", "egrave", "ecircumflex", "edieresis", "iacute", "igrave", "icircumflex", "idieresis", "ntilde", "oacute", "ograve", "ocircumflex", "odieresis", "otilde", "uacute", "ugrave", "ucircumflex", "udieresis", "dagger", "degree", "cent", "sterling", "section", "bullet", "paragraph", "germandbls", "registered", "copyright", "trademark", "acute", "dieresis", "notequal", "AE", "Oslash", "infinity", "plusminus", "lessequal", "greaterequal", "yen", "mu", "partialdiff", "summation", "product", "pi", "integral", "ordfeminine", "ordmasculine", "Omega", "ae", "oslash", "questiondown", "exclamdown", "logicalnot", "radical", "florin", "approxequal", "Delta", "guillemotleft", "guillemotright", "ellipsis", "nonbreakingspace", "Agrave", "Atilde", "Otilde", "OE", "oe", "endash", "emdash", "quotedblleft", "quotedblright", "quoteleft", "quoteright", "divide", "lozenge", "ydieresis", "Ydieresis", "fraction", "currency", "guilsinglleft", "guilsinglright", "fi", "fl", "daggerdbl", "periodcentered", "quotesinglbase", "quotedblbase", "perthousand", "Acircumflex", "Ecircumflex", "Aacute", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Oacute", "Ocircumflex", "apple", "Ograve", "Uacute", "Ucircumflex", "Ugrave", "dotlessi", "circumflex", "tilde", "macron", "breve", "dotaccent", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "Lslash", "lslash", "Scaron", "scaron", "Zcaron", "zcaron", "brokenbar", "Eth", "eth", "Yacute", "yacute", "Thorn", "thorn", "minus", "multiply", "onesuperior", "twosuperior", "threesuperior", "onehalf", "onequarter", "threequarters", "franc", "Gbreve", "gbreve", "Idotaccent", "Scedilla", "scedilla", "Cacute", "cacute", "Ccaron", "ccaron", "dcroat"]; +exports.MacStandardGlyphOrdering = MacStandardGlyphOrdering; + +function getFontType(type, subtype, isStandardFont = false) { + switch (type) { + case "Type1": + if (isStandardFont) { + return _util.FontType.TYPE1STANDARD; + } + + return subtype === "Type1C" ? _util.FontType.TYPE1C : _util.FontType.TYPE1; + + case "CIDFontType0": + return subtype === "CIDFontType0C" ? _util.FontType.CIDFONTTYPE0C : _util.FontType.CIDFONTTYPE0; + + case "OpenType": + return _util.FontType.OPENTYPE; + + case "TrueType": + return _util.FontType.TRUETYPE; + + case "CIDFontType2": + return _util.FontType.CIDFONTTYPE2; + + case "MMType1": + return _util.FontType.MMTYPE1; + + case "Type0": + return _util.FontType.TYPE0; + + default: + return _util.FontType.UNKNOWN; + } +} + +function recoverGlyphName(name, glyphsUnicodeMap) { + if (glyphsUnicodeMap[name] !== undefined) { + return name; + } + + const unicode = (0, _unicode.getUnicodeForGlyph)(name, glyphsUnicodeMap); + + if (unicode !== -1) { + for (const key in glyphsUnicodeMap) { + if (glyphsUnicodeMap[key] === unicode) { + return key; + } + } + } + + (0, _util.info)("Unable to recover a standard glyph name for: " + name); + return name; +} + +function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) { + const charCodeToGlyphId = Object.create(null); + let glyphId, charCode, baseEncoding; + const isSymbolicFont = !!(properties.flags & FontFlags.Symbolic); + + if (properties.isInternalFont) { + baseEncoding = builtInEncoding; + + for (charCode = 0; charCode < baseEncoding.length; charCode++) { + glyphId = glyphNames.indexOf(baseEncoding[charCode]); + + if (glyphId >= 0) { + charCodeToGlyphId[charCode] = glyphId; + } else { + charCodeToGlyphId[charCode] = 0; + } + } + } else if (properties.baseEncodingName) { + baseEncoding = (0, _encodings.getEncoding)(properties.baseEncodingName); + + for (charCode = 0; charCode < baseEncoding.length; charCode++) { + glyphId = glyphNames.indexOf(baseEncoding[charCode]); + + if (glyphId >= 0) { + charCodeToGlyphId[charCode] = glyphId; + } else { + charCodeToGlyphId[charCode] = 0; + } + } + } else if (isSymbolicFont) { + for (charCode in builtInEncoding) { + charCodeToGlyphId[charCode] = builtInEncoding[charCode]; + } + } else { + baseEncoding = _encodings.StandardEncoding; + + for (charCode = 0; charCode < baseEncoding.length; charCode++) { + glyphId = glyphNames.indexOf(baseEncoding[charCode]); + + if (glyphId >= 0) { + charCodeToGlyphId[charCode] = glyphId; + } else { + charCodeToGlyphId[charCode] = 0; + } + } + } + + const differences = properties.differences; + let glyphsUnicodeMap; + + if (differences) { + for (charCode in differences) { + const glyphName = differences[charCode]; + glyphId = glyphNames.indexOf(glyphName); + + if (glyphId === -1) { + if (!glyphsUnicodeMap) { + glyphsUnicodeMap = (0, _glyphlist.getGlyphsUnicode)(); + } + + const standardGlyphName = recoverGlyphName(glyphName, glyphsUnicodeMap); + + if (standardGlyphName !== glyphName) { + glyphId = glyphNames.indexOf(standardGlyphName); + } + } + + if (glyphId >= 0) { + charCodeToGlyphId[charCode] = glyphId; + } else { + charCodeToGlyphId[charCode] = 0; + } + } + } + + return charCodeToGlyphId; +} + +function normalizeFontName(name) { + return name.replace(/[,_]/g, "-").replace(/\s/g, ""); +} + +/***/ }), +/* 39 */ +/***/ ((__unused_webpack_module, __webpack_exports__, __w_pdfjs_require__) => { + +__w_pdfjs_require__.r(__webpack_exports__); +/* harmony export */ __w_pdfjs_require__.d(__webpack_exports__, { +/* harmony export */ "getDingbatsGlyphsUnicode": () => (/* binding */ getDingbatsGlyphsUnicode), +/* harmony export */ "getGlyphsUnicode": () => (/* binding */ getGlyphsUnicode) +/* harmony export */ }); +/* harmony import */ var _core_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __w_pdfjs_require__(6); + +const getGlyphsUnicode = (0,_core_utils_js__WEBPACK_IMPORTED_MODULE_0__.getArrayLookupTableFactory)(function () { + return [ + "A", + 0x0041, + "AE", + 0x00c6, + "AEacute", + 0x01fc, + "AEmacron", + 0x01e2, + "AEsmall", + 0xf7e6, + "Aacute", + 0x00c1, + "Aacutesmall", + 0xf7e1, + "Abreve", + 0x0102, + "Abreveacute", + 0x1eae, + "Abrevecyrillic", + 0x04d0, + "Abrevedotbelow", + 0x1eb6, + "Abrevegrave", + 0x1eb0, + "Abrevehookabove", + 0x1eb2, + "Abrevetilde", + 0x1eb4, + "Acaron", + 0x01cd, + "Acircle", + 0x24b6, + "Acircumflex", + 0x00c2, + "Acircumflexacute", + 0x1ea4, + "Acircumflexdotbelow", + 0x1eac, + "Acircumflexgrave", + 0x1ea6, + "Acircumflexhookabove", + 0x1ea8, + "Acircumflexsmall", + 0xf7e2, + "Acircumflextilde", + 0x1eaa, + "Acute", + 0xf6c9, + "Acutesmall", + 0xf7b4, + "Acyrillic", + 0x0410, + "Adblgrave", + 0x0200, + "Adieresis", + 0x00c4, + "Adieresiscyrillic", + 0x04d2, + "Adieresismacron", + 0x01de, + "Adieresissmall", + 0xf7e4, + "Adotbelow", + 0x1ea0, + "Adotmacron", + 0x01e0, + "Agrave", + 0x00c0, + "Agravesmall", + 0xf7e0, + "Ahookabove", + 0x1ea2, + "Aiecyrillic", + 0x04d4, + "Ainvertedbreve", + 0x0202, + "Alpha", + 0x0391, + "Alphatonos", + 0x0386, + "Amacron", + 0x0100, + "Amonospace", + 0xff21, + "Aogonek", + 0x0104, + "Aring", + 0x00c5, + "Aringacute", + 0x01fa, + "Aringbelow", + 0x1e00, + "Aringsmall", + 0xf7e5, + "Asmall", + 0xf761, + "Atilde", + 0x00c3, + "Atildesmall", + 0xf7e3, + "Aybarmenian", + 0x0531, + "B", + 0x0042, + "Bcircle", + 0x24b7, + "Bdotaccent", + 0x1e02, + "Bdotbelow", + 0x1e04, + "Becyrillic", + 0x0411, + "Benarmenian", + 0x0532, + "Beta", + 0x0392, + "Bhook", + 0x0181, + "Blinebelow", + 0x1e06, + "Bmonospace", + 0xff22, + "Brevesmall", + 0xf6f4, + "Bsmall", + 0xf762, + "Btopbar", + 0x0182, + "C", + 0x0043, + "Caarmenian", + 0x053e, + "Cacute", + 0x0106, + "Caron", + 0xf6ca, + "Caronsmall", + 0xf6f5, + "Ccaron", + 0x010c, + "Ccedilla", + 0x00c7, + "Ccedillaacute", + 0x1e08, + "Ccedillasmall", + 0xf7e7, + "Ccircle", + 0x24b8, + "Ccircumflex", + 0x0108, + "Cdot", + 0x010a, + "Cdotaccent", + 0x010a, + "Cedillasmall", + 0xf7b8, + "Chaarmenian", + 0x0549, + "Cheabkhasiancyrillic", + 0x04bc, + "Checyrillic", + 0x0427, + "Chedescenderabkhasiancyrillic", + 0x04be, + "Chedescendercyrillic", + 0x04b6, + "Chedieresiscyrillic", + 0x04f4, + "Cheharmenian", + 0x0543, + "Chekhakassiancyrillic", + 0x04cb, + "Cheverticalstrokecyrillic", + 0x04b8, + "Chi", + 0x03a7, + "Chook", + 0x0187, + "Circumflexsmall", + 0xf6f6, + "Cmonospace", + 0xff23, + "Coarmenian", + 0x0551, + "Csmall", + 0xf763, + "D", + 0x0044, + "DZ", + 0x01f1, + "DZcaron", + 0x01c4, + "Daarmenian", + 0x0534, + "Dafrican", + 0x0189, + "Dcaron", + 0x010e, + "Dcedilla", + 0x1e10, + "Dcircle", + 0x24b9, + "Dcircumflexbelow", + 0x1e12, + "Dcroat", + 0x0110, + "Ddotaccent", + 0x1e0a, + "Ddotbelow", + 0x1e0c, + "Decyrillic", + 0x0414, + "Deicoptic", + 0x03ee, + "Delta", + 0x2206, + "Deltagreek", + 0x0394, + "Dhook", + 0x018a, + "Dieresis", + 0xf6cb, + "DieresisAcute", + 0xf6cc, + "DieresisGrave", + 0xf6cd, + "Dieresissmall", + 0xf7a8, + "Digammagreek", + 0x03dc, + "Djecyrillic", + 0x0402, + "Dlinebelow", + 0x1e0e, + "Dmonospace", + 0xff24, + "Dotaccentsmall", + 0xf6f7, + "Dslash", + 0x0110, + "Dsmall", + 0xf764, + "Dtopbar", + 0x018b, + "Dz", + 0x01f2, + "Dzcaron", + 0x01c5, + "Dzeabkhasiancyrillic", + 0x04e0, + "Dzecyrillic", + 0x0405, + "Dzhecyrillic", + 0x040f, + "E", + 0x0045, + "Eacute", + 0x00c9, + "Eacutesmall", + 0xf7e9, + "Ebreve", + 0x0114, + "Ecaron", + 0x011a, + "Ecedillabreve", + 0x1e1c, + "Echarmenian", + 0x0535, + "Ecircle", + 0x24ba, + "Ecircumflex", + 0x00ca, + "Ecircumflexacute", + 0x1ebe, + "Ecircumflexbelow", + 0x1e18, + "Ecircumflexdotbelow", + 0x1ec6, + "Ecircumflexgrave", + 0x1ec0, + "Ecircumflexhookabove", + 0x1ec2, + "Ecircumflexsmall", + 0xf7ea, + "Ecircumflextilde", + 0x1ec4, + "Ecyrillic", + 0x0404, + "Edblgrave", + 0x0204, + "Edieresis", + 0x00cb, + "Edieresissmall", + 0xf7eb, + "Edot", + 0x0116, + "Edotaccent", + 0x0116, + "Edotbelow", + 0x1eb8, + "Efcyrillic", + 0x0424, + "Egrave", + 0x00c8, + "Egravesmall", + 0xf7e8, + "Eharmenian", + 0x0537, + "Ehookabove", + 0x1eba, + "Eightroman", + 0x2167, + "Einvertedbreve", + 0x0206, + "Eiotifiedcyrillic", + 0x0464, + "Elcyrillic", + 0x041b, + "Elevenroman", + 0x216a, + "Emacron", + 0x0112, + "Emacronacute", + 0x1e16, + "Emacrongrave", + 0x1e14, + "Emcyrillic", + 0x041c, + "Emonospace", + 0xff25, + "Encyrillic", + 0x041d, + "Endescendercyrillic", + 0x04a2, + "Eng", + 0x014a, + "Enghecyrillic", + 0x04a4, + "Enhookcyrillic", + 0x04c7, + "Eogonek", + 0x0118, + "Eopen", + 0x0190, + "Epsilon", + 0x0395, + "Epsilontonos", + 0x0388, + "Ercyrillic", + 0x0420, + "Ereversed", + 0x018e, + "Ereversedcyrillic", + 0x042d, + "Escyrillic", + 0x0421, + "Esdescendercyrillic", + 0x04aa, + "Esh", + 0x01a9, + "Esmall", + 0xf765, + "Eta", + 0x0397, + "Etarmenian", + 0x0538, + "Etatonos", + 0x0389, + "Eth", + 0x00d0, + "Ethsmall", + 0xf7f0, + "Etilde", + 0x1ebc, + "Etildebelow", + 0x1e1a, + "Euro", + 0x20ac, + "Ezh", + 0x01b7, + "Ezhcaron", + 0x01ee, + "Ezhreversed", + 0x01b8, + "F", + 0x0046, + "Fcircle", + 0x24bb, + "Fdotaccent", + 0x1e1e, + "Feharmenian", + 0x0556, + "Feicoptic", + 0x03e4, + "Fhook", + 0x0191, + "Fitacyrillic", + 0x0472, + "Fiveroman", + 0x2164, + "Fmonospace", + 0xff26, + "Fourroman", + 0x2163, + "Fsmall", + 0xf766, + "G", + 0x0047, + "GBsquare", + 0x3387, + "Gacute", + 0x01f4, + "Gamma", + 0x0393, + "Gammaafrican", + 0x0194, + "Gangiacoptic", + 0x03ea, + "Gbreve", + 0x011e, + "Gcaron", + 0x01e6, + "Gcedilla", + 0x0122, + "Gcircle", + 0x24bc, + "Gcircumflex", + 0x011c, + "Gcommaaccent", + 0x0122, + "Gdot", + 0x0120, + "Gdotaccent", + 0x0120, + "Gecyrillic", + 0x0413, + "Ghadarmenian", + 0x0542, + "Ghemiddlehookcyrillic", + 0x0494, + "Ghestrokecyrillic", + 0x0492, + "Gheupturncyrillic", + 0x0490, + "Ghook", + 0x0193, + "Gimarmenian", + 0x0533, + "Gjecyrillic", + 0x0403, + "Gmacron", + 0x1e20, + "Gmonospace", + 0xff27, + "Grave", + 0xf6ce, + "Gravesmall", + 0xf760, + "Gsmall", + 0xf767, + "Gsmallhook", + 0x029b, + "Gstroke", + 0x01e4, + "H", + 0x0048, + "H18533", + 0x25cf, + "H18543", + 0x25aa, + "H18551", + 0x25ab, + "H22073", + 0x25a1, + "HPsquare", + 0x33cb, + "Haabkhasiancyrillic", + 0x04a8, + "Hadescendercyrillic", + 0x04b2, + "Hardsigncyrillic", + 0x042a, + "Hbar", + 0x0126, + "Hbrevebelow", + 0x1e2a, + "Hcedilla", + 0x1e28, + "Hcircle", + 0x24bd, + "Hcircumflex", + 0x0124, + "Hdieresis", + 0x1e26, + "Hdotaccent", + 0x1e22, + "Hdotbelow", + 0x1e24, + "Hmonospace", + 0xff28, + "Hoarmenian", + 0x0540, + "Horicoptic", + 0x03e8, + "Hsmall", + 0xf768, + "Hungarumlaut", + 0xf6cf, + "Hungarumlautsmall", + 0xf6f8, + "Hzsquare", + 0x3390, + "I", + 0x0049, + "IAcyrillic", + 0x042f, + "IJ", + 0x0132, + "IUcyrillic", + 0x042e, + "Iacute", + 0x00cd, + "Iacutesmall", + 0xf7ed, + "Ibreve", + 0x012c, + "Icaron", + 0x01cf, + "Icircle", + 0x24be, + "Icircumflex", + 0x00ce, + "Icircumflexsmall", + 0xf7ee, + "Icyrillic", + 0x0406, + "Idblgrave", + 0x0208, + "Idieresis", + 0x00cf, + "Idieresisacute", + 0x1e2e, + "Idieresiscyrillic", + 0x04e4, + "Idieresissmall", + 0xf7ef, + "Idot", + 0x0130, + "Idotaccent", + 0x0130, + "Idotbelow", + 0x1eca, + "Iebrevecyrillic", + 0x04d6, + "Iecyrillic", + 0x0415, + "Ifraktur", + 0x2111, + "Igrave", + 0x00cc, + "Igravesmall", + 0xf7ec, + "Ihookabove", + 0x1ec8, + "Iicyrillic", + 0x0418, + "Iinvertedbreve", + 0x020a, + "Iishortcyrillic", + 0x0419, + "Imacron", + 0x012a, + "Imacroncyrillic", + 0x04e2, + "Imonospace", + 0xff29, + "Iniarmenian", + 0x053b, + "Iocyrillic", + 0x0401, + "Iogonek", + 0x012e, + "Iota", + 0x0399, + "Iotaafrican", + 0x0196, + "Iotadieresis", + 0x03aa, + "Iotatonos", + 0x038a, + "Ismall", + 0xf769, + "Istroke", + 0x0197, + "Itilde", + 0x0128, + "Itildebelow", + 0x1e2c, + "Izhitsacyrillic", + 0x0474, + "Izhitsadblgravecyrillic", + 0x0476, + "J", + 0x004a, + "Jaarmenian", + 0x0541, + "Jcircle", + 0x24bf, + "Jcircumflex", + 0x0134, + "Jecyrillic", + 0x0408, + "Jheharmenian", + 0x054b, + "Jmonospace", + 0xff2a, + "Jsmall", + 0xf76a, + "K", + 0x004b, + "KBsquare", + 0x3385, + "KKsquare", + 0x33cd, + "Kabashkircyrillic", + 0x04a0, + "Kacute", + 0x1e30, + "Kacyrillic", + 0x041a, + "Kadescendercyrillic", + 0x049a, + "Kahookcyrillic", + 0x04c3, + "Kappa", + 0x039a, + "Kastrokecyrillic", + 0x049e, + "Kaverticalstrokecyrillic", + 0x049c, + "Kcaron", + 0x01e8, + "Kcedilla", + 0x0136, + "Kcircle", + 0x24c0, + "Kcommaaccent", + 0x0136, + "Kdotbelow", + 0x1e32, + "Keharmenian", + 0x0554, + "Kenarmenian", + 0x053f, + "Khacyrillic", + 0x0425, + "Kheicoptic", + 0x03e6, + "Khook", + 0x0198, + "Kjecyrillic", + 0x040c, + "Klinebelow", + 0x1e34, + "Kmonospace", + 0xff2b, + "Koppacyrillic", + 0x0480, + "Koppagreek", + 0x03de, + "Ksicyrillic", + 0x046e, + "Ksmall", + 0xf76b, + "L", + 0x004c, + "LJ", + 0x01c7, + "LL", + 0xf6bf, + "Lacute", + 0x0139, + "Lambda", + 0x039b, + "Lcaron", + 0x013d, + "Lcedilla", + 0x013b, + "Lcircle", + 0x24c1, + "Lcircumflexbelow", + 0x1e3c, + "Lcommaaccent", + 0x013b, + "Ldot", + 0x013f, + "Ldotaccent", + 0x013f, + "Ldotbelow", + 0x1e36, + "Ldotbelowmacron", + 0x1e38, + "Liwnarmenian", + 0x053c, + "Lj", + 0x01c8, + "Ljecyrillic", + 0x0409, + "Llinebelow", + 0x1e3a, + "Lmonospace", + 0xff2c, + "Lslash", + 0x0141, + "Lslashsmall", + 0xf6f9, + "Lsmall", + 0xf76c, + "M", + 0x004d, + "MBsquare", + 0x3386, + "Macron", + 0xf6d0, + "Macronsmall", + 0xf7af, + "Macute", + 0x1e3e, + "Mcircle", + 0x24c2, + "Mdotaccent", + 0x1e40, + "Mdotbelow", + 0x1e42, + "Menarmenian", + 0x0544, + "Mmonospace", + 0xff2d, + "Msmall", + 0xf76d, + "Mturned", + 0x019c, + "Mu", + 0x039c, + "N", + 0x004e, + "NJ", + 0x01ca, + "Nacute", + 0x0143, + "Ncaron", + 0x0147, + "Ncedilla", + 0x0145, + "Ncircle", + 0x24c3, + "Ncircumflexbelow", + 0x1e4a, + "Ncommaaccent", + 0x0145, + "Ndotaccent", + 0x1e44, + "Ndotbelow", + 0x1e46, + "Nhookleft", + 0x019d, + "Nineroman", + 0x2168, + "Nj", + 0x01cb, + "Njecyrillic", + 0x040a, + "Nlinebelow", + 0x1e48, + "Nmonospace", + 0xff2e, + "Nowarmenian", + 0x0546, + "Nsmall", + 0xf76e, + "Ntilde", + 0x00d1, + "Ntildesmall", + 0xf7f1, + "Nu", + 0x039d, + "O", + 0x004f, + "OE", + 0x0152, + "OEsmall", + 0xf6fa, + "Oacute", + 0x00d3, + "Oacutesmall", + 0xf7f3, + "Obarredcyrillic", + 0x04e8, + "Obarreddieresiscyrillic", + 0x04ea, + "Obreve", + 0x014e, + "Ocaron", + 0x01d1, + "Ocenteredtilde", + 0x019f, + "Ocircle", + 0x24c4, + "Ocircumflex", + 0x00d4, + "Ocircumflexacute", + 0x1ed0, + "Ocircumflexdotbelow", + 0x1ed8, + "Ocircumflexgrave", + 0x1ed2, + "Ocircumflexhookabove", + 0x1ed4, + "Ocircumflexsmall", + 0xf7f4, + "Ocircumflextilde", + 0x1ed6, + "Ocyrillic", + 0x041e, + "Odblacute", + 0x0150, + "Odblgrave", + 0x020c, + "Odieresis", + 0x00d6, + "Odieresiscyrillic", + 0x04e6, + "Odieresissmall", + 0xf7f6, + "Odotbelow", + 0x1ecc, + "Ogoneksmall", + 0xf6fb, + "Ograve", + 0x00d2, + "Ogravesmall", + 0xf7f2, + "Oharmenian", + 0x0555, + "Ohm", + 0x2126, + "Ohookabove", + 0x1ece, + "Ohorn", + 0x01a0, + "Ohornacute", + 0x1eda, + "Ohorndotbelow", + 0x1ee2, + "Ohorngrave", + 0x1edc, + "Ohornhookabove", + 0x1ede, + "Ohorntilde", + 0x1ee0, + "Ohungarumlaut", + 0x0150, + "Oi", + 0x01a2, + "Oinvertedbreve", + 0x020e, + "Omacron", + 0x014c, + "Omacronacute", + 0x1e52, + "Omacrongrave", + 0x1e50, + "Omega", + 0x2126, + "Omegacyrillic", + 0x0460, + "Omegagreek", + 0x03a9, + "Omegaroundcyrillic", + 0x047a, + "Omegatitlocyrillic", + 0x047c, + "Omegatonos", + 0x038f, + "Omicron", + 0x039f, + "Omicrontonos", + 0x038c, + "Omonospace", + 0xff2f, + "Oneroman", + 0x2160, + "Oogonek", + 0x01ea, + "Oogonekmacron", + 0x01ec, + "Oopen", + 0x0186, + "Oslash", + 0x00d8, + "Oslashacute", + 0x01fe, + "Oslashsmall", + 0xf7f8, + "Osmall", + 0xf76f, + "Ostrokeacute", + 0x01fe, + "Otcyrillic", + 0x047e, + "Otilde", + 0x00d5, + "Otildeacute", + 0x1e4c, + "Otildedieresis", + 0x1e4e, + "Otildesmall", + 0xf7f5, + "P", + 0x0050, + "Pacute", + 0x1e54, + "Pcircle", + 0x24c5, + "Pdotaccent", + 0x1e56, + "Pecyrillic", + 0x041f, + "Peharmenian", + 0x054a, + "Pemiddlehookcyrillic", + 0x04a6, + "Phi", + 0x03a6, + "Phook", + 0x01a4, + "Pi", + 0x03a0, + "Piwrarmenian", + 0x0553, + "Pmonospace", + 0xff30, + "Psi", + 0x03a8, + "Psicyrillic", + 0x0470, + "Psmall", + 0xf770, + "Q", + 0x0051, + "Qcircle", + 0x24c6, + "Qmonospace", + 0xff31, + "Qsmall", + 0xf771, + "R", + 0x0052, + "Raarmenian", + 0x054c, + "Racute", + 0x0154, + "Rcaron", + 0x0158, + "Rcedilla", + 0x0156, + "Rcircle", + 0x24c7, + "Rcommaaccent", + 0x0156, + "Rdblgrave", + 0x0210, + "Rdotaccent", + 0x1e58, + "Rdotbelow", + 0x1e5a, + "Rdotbelowmacron", + 0x1e5c, + "Reharmenian", + 0x0550, + "Rfraktur", + 0x211c, + "Rho", + 0x03a1, + "Ringsmall", + 0xf6fc, + "Rinvertedbreve", + 0x0212, + "Rlinebelow", + 0x1e5e, + "Rmonospace", + 0xff32, + "Rsmall", + 0xf772, + "Rsmallinverted", + 0x0281, + "Rsmallinvertedsuperior", + 0x02b6, + "S", + 0x0053, + "SF010000", + 0x250c, + "SF020000", + 0x2514, + "SF030000", + 0x2510, + "SF040000", + 0x2518, + "SF050000", + 0x253c, + "SF060000", + 0x252c, + "SF070000", + 0x2534, + "SF080000", + 0x251c, + "SF090000", + 0x2524, + "SF100000", + 0x2500, + "SF110000", + 0x2502, + "SF190000", + 0x2561, + "SF200000", + 0x2562, + "SF210000", + 0x2556, + "SF220000", + 0x2555, + "SF230000", + 0x2563, + "SF240000", + 0x2551, + "SF250000", + 0x2557, + "SF260000", + 0x255d, + "SF270000", + 0x255c, + "SF280000", + 0x255b, + "SF360000", + 0x255e, + "SF370000", + 0x255f, + "SF380000", + 0x255a, + "SF390000", + 0x2554, + "SF400000", + 0x2569, + "SF410000", + 0x2566, + "SF420000", + 0x2560, + "SF430000", + 0x2550, + "SF440000", + 0x256c, + "SF450000", + 0x2567, + "SF460000", + 0x2568, + "SF470000", + 0x2564, + "SF480000", + 0x2565, + "SF490000", + 0x2559, + "SF500000", + 0x2558, + "SF510000", + 0x2552, + "SF520000", + 0x2553, + "SF530000", + 0x256b, + "SF540000", + 0x256a, + "Sacute", + 0x015a, + "Sacutedotaccent", + 0x1e64, + "Sampigreek", + 0x03e0, + "Scaron", + 0x0160, + "Scarondotaccent", + 0x1e66, + "Scaronsmall", + 0xf6fd, + "Scedilla", + 0x015e, + "Schwa", + 0x018f, + "Schwacyrillic", + 0x04d8, + "Schwadieresiscyrillic", + 0x04da, + "Scircle", + 0x24c8, + "Scircumflex", + 0x015c, + "Scommaaccent", + 0x0218, + "Sdotaccent", + 0x1e60, + "Sdotbelow", + 0x1e62, + "Sdotbelowdotaccent", + 0x1e68, + "Seharmenian", + 0x054d, + "Sevenroman", + 0x2166, + "Shaarmenian", + 0x0547, + "Shacyrillic", + 0x0428, + "Shchacyrillic", + 0x0429, + "Sheicoptic", + 0x03e2, + "Shhacyrillic", + 0x04ba, + "Shimacoptic", + 0x03ec, + "Sigma", + 0x03a3, + "Sixroman", + 0x2165, + "Smonospace", + 0xff33, + "Softsigncyrillic", + 0x042c, + "Ssmall", + 0xf773, + "Stigmagreek", + 0x03da, + "T", + 0x0054, + "Tau", + 0x03a4, + "Tbar", + 0x0166, + "Tcaron", + 0x0164, + "Tcedilla", + 0x0162, + "Tcircle", + 0x24c9, + "Tcircumflexbelow", + 0x1e70, + "Tcommaaccent", + 0x0162, + "Tdotaccent", + 0x1e6a, + "Tdotbelow", + 0x1e6c, + "Tecyrillic", + 0x0422, + "Tedescendercyrillic", + 0x04ac, + "Tenroman", + 0x2169, + "Tetsecyrillic", + 0x04b4, + "Theta", + 0x0398, + "Thook", + 0x01ac, + "Thorn", + 0x00de, + "Thornsmall", + 0xf7fe, + "Threeroman", + 0x2162, + "Tildesmall", + 0xf6fe, + "Tiwnarmenian", + 0x054f, + "Tlinebelow", + 0x1e6e, + "Tmonospace", + 0xff34, + "Toarmenian", + 0x0539, + "Tonefive", + 0x01bc, + "Tonesix", + 0x0184, + "Tonetwo", + 0x01a7, + "Tretroflexhook", + 0x01ae, + "Tsecyrillic", + 0x0426, + "Tshecyrillic", + 0x040b, + "Tsmall", + 0xf774, + "Twelveroman", + 0x216b, + "Tworoman", + 0x2161, + "U", + 0x0055, + "Uacute", + 0x00da, + "Uacutesmall", + 0xf7fa, + "Ubreve", + 0x016c, + "Ucaron", + 0x01d3, + "Ucircle", + 0x24ca, + "Ucircumflex", + 0x00db, + "Ucircumflexbelow", + 0x1e76, + "Ucircumflexsmall", + 0xf7fb, + "Ucyrillic", + 0x0423, + "Udblacute", + 0x0170, + "Udblgrave", + 0x0214, + "Udieresis", + 0x00dc, + "Udieresisacute", + 0x01d7, + "Udieresisbelow", + 0x1e72, + "Udieresiscaron", + 0x01d9, + "Udieresiscyrillic", + 0x04f0, + "Udieresisgrave", + 0x01db, + "Udieresismacron", + 0x01d5, + "Udieresissmall", + 0xf7fc, + "Udotbelow", + 0x1ee4, + "Ugrave", + 0x00d9, + "Ugravesmall", + 0xf7f9, + "Uhookabove", + 0x1ee6, + "Uhorn", + 0x01af, + "Uhornacute", + 0x1ee8, + "Uhorndotbelow", + 0x1ef0, + "Uhorngrave", + 0x1eea, + "Uhornhookabove", + 0x1eec, + "Uhorntilde", + 0x1eee, + "Uhungarumlaut", + 0x0170, + "Uhungarumlautcyrillic", + 0x04f2, + "Uinvertedbreve", + 0x0216, + "Ukcyrillic", + 0x0478, + "Umacron", + 0x016a, + "Umacroncyrillic", + 0x04ee, + "Umacrondieresis", + 0x1e7a, + "Umonospace", + 0xff35, + "Uogonek", + 0x0172, + "Upsilon", + 0x03a5, + "Upsilon1", + 0x03d2, + "Upsilonacutehooksymbolgreek", + 0x03d3, + "Upsilonafrican", + 0x01b1, + "Upsilondieresis", + 0x03ab, + "Upsilondieresishooksymbolgreek", + 0x03d4, + "Upsilonhooksymbol", + 0x03d2, + "Upsilontonos", + 0x038e, + "Uring", + 0x016e, + "Ushortcyrillic", + 0x040e, + "Usmall", + 0xf775, + "Ustraightcyrillic", + 0x04ae, + "Ustraightstrokecyrillic", + 0x04b0, + "Utilde", + 0x0168, + "Utildeacute", + 0x1e78, + "Utildebelow", + 0x1e74, + "V", + 0x0056, + "Vcircle", + 0x24cb, + "Vdotbelow", + 0x1e7e, + "Vecyrillic", + 0x0412, + "Vewarmenian", + 0x054e, + "Vhook", + 0x01b2, + "Vmonospace", + 0xff36, + "Voarmenian", + 0x0548, + "Vsmall", + 0xf776, + "Vtilde", + 0x1e7c, + "W", + 0x0057, + "Wacute", + 0x1e82, + "Wcircle", + 0x24cc, + "Wcircumflex", + 0x0174, + "Wdieresis", + 0x1e84, + "Wdotaccent", + 0x1e86, + "Wdotbelow", + 0x1e88, + "Wgrave", + 0x1e80, + "Wmonospace", + 0xff37, + "Wsmall", + 0xf777, + "X", + 0x0058, + "Xcircle", + 0x24cd, + "Xdieresis", + 0x1e8c, + "Xdotaccent", + 0x1e8a, + "Xeharmenian", + 0x053d, + "Xi", + 0x039e, + "Xmonospace", + 0xff38, + "Xsmall", + 0xf778, + "Y", + 0x0059, + "Yacute", + 0x00dd, + "Yacutesmall", + 0xf7fd, + "Yatcyrillic", + 0x0462, + "Ycircle", + 0x24ce, + "Ycircumflex", + 0x0176, + "Ydieresis", + 0x0178, + "Ydieresissmall", + 0xf7ff, + "Ydotaccent", + 0x1e8e, + "Ydotbelow", + 0x1ef4, + "Yericyrillic", + 0x042b, + "Yerudieresiscyrillic", + 0x04f8, + "Ygrave", + 0x1ef2, + "Yhook", + 0x01b3, + "Yhookabove", + 0x1ef6, + "Yiarmenian", + 0x0545, + "Yicyrillic", + 0x0407, + "Yiwnarmenian", + 0x0552, + "Ymonospace", + 0xff39, + "Ysmall", + 0xf779, + "Ytilde", + 0x1ef8, + "Yusbigcyrillic", + 0x046a, + "Yusbigiotifiedcyrillic", + 0x046c, + "Yuslittlecyrillic", + 0x0466, + "Yuslittleiotifiedcyrillic", + 0x0468, + "Z", + 0x005a, + "Zaarmenian", + 0x0536, + "Zacute", + 0x0179, + "Zcaron", + 0x017d, + "Zcaronsmall", + 0xf6ff, + "Zcircle", + 0x24cf, + "Zcircumflex", + 0x1e90, + "Zdot", + 0x017b, + "Zdotaccent", + 0x017b, + "Zdotbelow", + 0x1e92, + "Zecyrillic", + 0x0417, + "Zedescendercyrillic", + 0x0498, + "Zedieresiscyrillic", + 0x04de, + "Zeta", + 0x0396, + "Zhearmenian", + 0x053a, + "Zhebrevecyrillic", + 0x04c1, + "Zhecyrillic", + 0x0416, + "Zhedescendercyrillic", + 0x0496, + "Zhedieresiscyrillic", + 0x04dc, + "Zlinebelow", + 0x1e94, + "Zmonospace", + 0xff3a, + "Zsmall", + 0xf77a, + "Zstroke", + 0x01b5, + "a", + 0x0061, + "aabengali", + 0x0986, + "aacute", + 0x00e1, + "aadeva", + 0x0906, + "aagujarati", + 0x0a86, + "aagurmukhi", + 0x0a06, + "aamatragurmukhi", + 0x0a3e, + "aarusquare", + 0x3303, + "aavowelsignbengali", + 0x09be, + "aavowelsigndeva", + 0x093e, + "aavowelsigngujarati", + 0x0abe, + "abbreviationmarkarmenian", + 0x055f, + "abbreviationsigndeva", + 0x0970, + "abengali", + 0x0985, + "abopomofo", + 0x311a, + "abreve", + 0x0103, + "abreveacute", + 0x1eaf, + "abrevecyrillic", + 0x04d1, + "abrevedotbelow", + 0x1eb7, + "abrevegrave", + 0x1eb1, + "abrevehookabove", + 0x1eb3, + "abrevetilde", + 0x1eb5, + "acaron", + 0x01ce, + "acircle", + 0x24d0, + "acircumflex", + 0x00e2, + "acircumflexacute", + 0x1ea5, + "acircumflexdotbelow", + 0x1ead, + "acircumflexgrave", + 0x1ea7, + "acircumflexhookabove", + 0x1ea9, + "acircumflextilde", + 0x1eab, + "acute", + 0x00b4, + "acutebelowcmb", + 0x0317, + "acutecmb", + 0x0301, + "acutecomb", + 0x0301, + "acutedeva", + 0x0954, + "acutelowmod", + 0x02cf, + "acutetonecmb", + 0x0341, + "acyrillic", + 0x0430, + "adblgrave", + 0x0201, + "addakgurmukhi", + 0x0a71, + "adeva", + 0x0905, + "adieresis", + 0x00e4, + "adieresiscyrillic", + 0x04d3, + "adieresismacron", + 0x01df, + "adotbelow", + 0x1ea1, + "adotmacron", + 0x01e1, + "ae", + 0x00e6, + "aeacute", + 0x01fd, + "aekorean", + 0x3150, + "aemacron", + 0x01e3, + "afii00208", + 0x2015, + "afii08941", + 0x20a4, + "afii10017", + 0x0410, + "afii10018", + 0x0411, + "afii10019", + 0x0412, + "afii10020", + 0x0413, + "afii10021", + 0x0414, + "afii10022", + 0x0415, + "afii10023", + 0x0401, + "afii10024", + 0x0416, + "afii10025", + 0x0417, + "afii10026", + 0x0418, + "afii10027", + 0x0419, + "afii10028", + 0x041a, + "afii10029", + 0x041b, + "afii10030", + 0x041c, + "afii10031", + 0x041d, + "afii10032", + 0x041e, + "afii10033", + 0x041f, + "afii10034", + 0x0420, + "afii10035", + 0x0421, + "afii10036", + 0x0422, + "afii10037", + 0x0423, + "afii10038", + 0x0424, + "afii10039", + 0x0425, + "afii10040", + 0x0426, + "afii10041", + 0x0427, + "afii10042", + 0x0428, + "afii10043", + 0x0429, + "afii10044", + 0x042a, + "afii10045", + 0x042b, + "afii10046", + 0x042c, + "afii10047", + 0x042d, + "afii10048", + 0x042e, + "afii10049", + 0x042f, + "afii10050", + 0x0490, + "afii10051", + 0x0402, + "afii10052", + 0x0403, + "afii10053", + 0x0404, + "afii10054", + 0x0405, + "afii10055", + 0x0406, + "afii10056", + 0x0407, + "afii10057", + 0x0408, + "afii10058", + 0x0409, + "afii10059", + 0x040a, + "afii10060", + 0x040b, + "afii10061", + 0x040c, + "afii10062", + 0x040e, + "afii10063", + 0xf6c4, + "afii10064", + 0xf6c5, + "afii10065", + 0x0430, + "afii10066", + 0x0431, + "afii10067", + 0x0432, + "afii10068", + 0x0433, + "afii10069", + 0x0434, + "afii10070", + 0x0435, + "afii10071", + 0x0451, + "afii10072", + 0x0436, + "afii10073", + 0x0437, + "afii10074", + 0x0438, + "afii10075", + 0x0439, + "afii10076", + 0x043a, + "afii10077", + 0x043b, + "afii10078", + 0x043c, + "afii10079", + 0x043d, + "afii10080", + 0x043e, + "afii10081", + 0x043f, + "afii10082", + 0x0440, + "afii10083", + 0x0441, + "afii10084", + 0x0442, + "afii10085", + 0x0443, + "afii10086", + 0x0444, + "afii10087", + 0x0445, + "afii10088", + 0x0446, + "afii10089", + 0x0447, + "afii10090", + 0x0448, + "afii10091", + 0x0449, + "afii10092", + 0x044a, + "afii10093", + 0x044b, + "afii10094", + 0x044c, + "afii10095", + 0x044d, + "afii10096", + 0x044e, + "afii10097", + 0x044f, + "afii10098", + 0x0491, + "afii10099", + 0x0452, + "afii10100", + 0x0453, + "afii10101", + 0x0454, + "afii10102", + 0x0455, + "afii10103", + 0x0456, + "afii10104", + 0x0457, + "afii10105", + 0x0458, + "afii10106", + 0x0459, + "afii10107", + 0x045a, + "afii10108", + 0x045b, + "afii10109", + 0x045c, + "afii10110", + 0x045e, + "afii10145", + 0x040f, + "afii10146", + 0x0462, + "afii10147", + 0x0472, + "afii10148", + 0x0474, + "afii10192", + 0xf6c6, + "afii10193", + 0x045f, + "afii10194", + 0x0463, + "afii10195", + 0x0473, + "afii10196", + 0x0475, + "afii10831", + 0xf6c7, + "afii10832", + 0xf6c8, + "afii10846", + 0x04d9, + "afii299", + 0x200e, + "afii300", + 0x200f, + "afii301", + 0x200d, + "afii57381", + 0x066a, + "afii57388", + 0x060c, + "afii57392", + 0x0660, + "afii57393", + 0x0661, + "afii57394", + 0x0662, + "afii57395", + 0x0663, + "afii57396", + 0x0664, + "afii57397", + 0x0665, + "afii57398", + 0x0666, + "afii57399", + 0x0667, + "afii57400", + 0x0668, + "afii57401", + 0x0669, + "afii57403", + 0x061b, + "afii57407", + 0x061f, + "afii57409", + 0x0621, + "afii57410", + 0x0622, + "afii57411", + 0x0623, + "afii57412", + 0x0624, + "afii57413", + 0x0625, + "afii57414", + 0x0626, + "afii57415", + 0x0627, + "afii57416", + 0x0628, + "afii57417", + 0x0629, + "afii57418", + 0x062a, + "afii57419", + 0x062b, + "afii57420", + 0x062c, + "afii57421", + 0x062d, + "afii57422", + 0x062e, + "afii57423", + 0x062f, + "afii57424", + 0x0630, + "afii57425", + 0x0631, + "afii57426", + 0x0632, + "afii57427", + 0x0633, + "afii57428", + 0x0634, + "afii57429", + 0x0635, + "afii57430", + 0x0636, + "afii57431", + 0x0637, + "afii57432", + 0x0638, + "afii57433", + 0x0639, + "afii57434", + 0x063a, + "afii57440", + 0x0640, + "afii57441", + 0x0641, + "afii57442", + 0x0642, + "afii57443", + 0x0643, + "afii57444", + 0x0644, + "afii57445", + 0x0645, + "afii57446", + 0x0646, + "afii57448", + 0x0648, + "afii57449", + 0x0649, + "afii57450", + 0x064a, + "afii57451", + 0x064b, + "afii57452", + 0x064c, + "afii57453", + 0x064d, + "afii57454", + 0x064e, + "afii57455", + 0x064f, + "afii57456", + 0x0650, + "afii57457", + 0x0651, + "afii57458", + 0x0652, + "afii57470", + 0x0647, + "afii57505", + 0x06a4, + "afii57506", + 0x067e, + "afii57507", + 0x0686, + "afii57508", + 0x0698, + "afii57509", + 0x06af, + "afii57511", + 0x0679, + "afii57512", + 0x0688, + "afii57513", + 0x0691, + "afii57514", + 0x06ba, + "afii57519", + 0x06d2, + "afii57534", + 0x06d5, + "afii57636", + 0x20aa, + "afii57645", + 0x05be, + "afii57658", + 0x05c3, + "afii57664", + 0x05d0, + "afii57665", + 0x05d1, + "afii57666", + 0x05d2, + "afii57667", + 0x05d3, + "afii57668", + 0x05d4, + "afii57669", + 0x05d5, + "afii57670", + 0x05d6, + "afii57671", + 0x05d7, + "afii57672", + 0x05d8, + "afii57673", + 0x05d9, + "afii57674", + 0x05da, + "afii57675", + 0x05db, + "afii57676", + 0x05dc, + "afii57677", + 0x05dd, + "afii57678", + 0x05de, + "afii57679", + 0x05df, + "afii57680", + 0x05e0, + "afii57681", + 0x05e1, + "afii57682", + 0x05e2, + "afii57683", + 0x05e3, + "afii57684", + 0x05e4, + "afii57685", + 0x05e5, + "afii57686", + 0x05e6, + "afii57687", + 0x05e7, + "afii57688", + 0x05e8, + "afii57689", + 0x05e9, + "afii57690", + 0x05ea, + "afii57694", + 0xfb2a, + "afii57695", + 0xfb2b, + "afii57700", + 0xfb4b, + "afii57705", + 0xfb1f, + "afii57716", + 0x05f0, + "afii57717", + 0x05f1, + "afii57718", + 0x05f2, + "afii57723", + 0xfb35, + "afii57793", + 0x05b4, + "afii57794", + 0x05b5, + "afii57795", + 0x05b6, + "afii57796", + 0x05bb, + "afii57797", + 0x05b8, + "afii57798", + 0x05b7, + "afii57799", + 0x05b0, + "afii57800", + 0x05b2, + "afii57801", + 0x05b1, + "afii57802", + 0x05b3, + "afii57803", + 0x05c2, + "afii57804", + 0x05c1, + "afii57806", + 0x05b9, + "afii57807", + 0x05bc, + "afii57839", + 0x05bd, + "afii57841", + 0x05bf, + "afii57842", + 0x05c0, + "afii57929", + 0x02bc, + "afii61248", + 0x2105, + "afii61289", + 0x2113, + "afii61352", + 0x2116, + "afii61573", + 0x202c, + "afii61574", + 0x202d, + "afii61575", + 0x202e, + "afii61664", + 0x200c, + "afii63167", + 0x066d, + "afii64937", + 0x02bd, + "agrave", + 0x00e0, + "agujarati", + 0x0a85, + "agurmukhi", + 0x0a05, + "ahiragana", + 0x3042, + "ahookabove", + 0x1ea3, + "aibengali", + 0x0990, + "aibopomofo", + 0x311e, + "aideva", + 0x0910, + "aiecyrillic", + 0x04d5, + "aigujarati", + 0x0a90, + "aigurmukhi", + 0x0a10, + "aimatragurmukhi", + 0x0a48, + "ainarabic", + 0x0639, + "ainfinalarabic", + 0xfeca, + "aininitialarabic", + 0xfecb, + "ainmedialarabic", + 0xfecc, + "ainvertedbreve", + 0x0203, + "aivowelsignbengali", + 0x09c8, + "aivowelsigndeva", + 0x0948, + "aivowelsigngujarati", + 0x0ac8, + "akatakana", + 0x30a2, + "akatakanahalfwidth", + 0xff71, + "akorean", + 0x314f, + "alef", + 0x05d0, + "alefarabic", + 0x0627, + "alefdageshhebrew", + 0xfb30, + "aleffinalarabic", + 0xfe8e, + "alefhamzaabovearabic", + 0x0623, + "alefhamzaabovefinalarabic", + 0xfe84, + "alefhamzabelowarabic", + 0x0625, + "alefhamzabelowfinalarabic", + 0xfe88, + "alefhebrew", + 0x05d0, + "aleflamedhebrew", + 0xfb4f, + "alefmaddaabovearabic", + 0x0622, + "alefmaddaabovefinalarabic", + 0xfe82, + "alefmaksuraarabic", + 0x0649, + "alefmaksurafinalarabic", + 0xfef0, + "alefmaksurainitialarabic", + 0xfef3, + "alefmaksuramedialarabic", + 0xfef4, + "alefpatahhebrew", + 0xfb2e, + "alefqamatshebrew", + 0xfb2f, + "aleph", + 0x2135, + "allequal", + 0x224c, + "alpha", + 0x03b1, + "alphatonos", + 0x03ac, + "amacron", + 0x0101, + "amonospace", + 0xff41, + "ampersand", + 0x0026, + "ampersandmonospace", + 0xff06, + "ampersandsmall", + 0xf726, + "amsquare", + 0x33c2, + "anbopomofo", + 0x3122, + "angbopomofo", + 0x3124, + "angbracketleft", + 0x3008, + "angbracketright", + 0x3009, + "angkhankhuthai", + 0x0e5a, + "angle", + 0x2220, + "anglebracketleft", + 0x3008, + "anglebracketleftvertical", + 0xfe3f, + "anglebracketright", + 0x3009, + "anglebracketrightvertical", + 0xfe40, + "angleleft", + 0x2329, + "angleright", + 0x232a, + "angstrom", + 0x212b, + "anoteleia", + 0x0387, + "anudattadeva", + 0x0952, + "anusvarabengali", + 0x0982, + "anusvaradeva", + 0x0902, + "anusvaragujarati", + 0x0a82, + "aogonek", + 0x0105, + "apaatosquare", + 0x3300, + "aparen", + 0x249c, + "apostrophearmenian", + 0x055a, + "apostrophemod", + 0x02bc, + "apple", + 0xf8ff, + "approaches", + 0x2250, + "approxequal", + 0x2248, + "approxequalorimage", + 0x2252, + "approximatelyequal", + 0x2245, + "araeaekorean", + 0x318e, + "araeakorean", + 0x318d, + "arc", + 0x2312, + "arighthalfring", + 0x1e9a, + "aring", + 0x00e5, + "aringacute", + 0x01fb, + "aringbelow", + 0x1e01, + "arrowboth", + 0x2194, + "arrowdashdown", + 0x21e3, + "arrowdashleft", + 0x21e0, + "arrowdashright", + 0x21e2, + "arrowdashup", + 0x21e1, + "arrowdblboth", + 0x21d4, + "arrowdbldown", + 0x21d3, + "arrowdblleft", + 0x21d0, + "arrowdblright", + 0x21d2, + "arrowdblup", + 0x21d1, + "arrowdown", + 0x2193, + "arrowdownleft", + 0x2199, + "arrowdownright", + 0x2198, + "arrowdownwhite", + 0x21e9, + "arrowheaddownmod", + 0x02c5, + "arrowheadleftmod", + 0x02c2, + "arrowheadrightmod", + 0x02c3, + "arrowheadupmod", + 0x02c4, + "arrowhorizex", + 0xf8e7, + "arrowleft", + 0x2190, + "arrowleftdbl", + 0x21d0, + "arrowleftdblstroke", + 0x21cd, + "arrowleftoverright", + 0x21c6, + "arrowleftwhite", + 0x21e6, + "arrowright", + 0x2192, + "arrowrightdblstroke", + 0x21cf, + "arrowrightheavy", + 0x279e, + "arrowrightoverleft", + 0x21c4, + "arrowrightwhite", + 0x21e8, + "arrowtableft", + 0x21e4, + "arrowtabright", + 0x21e5, + "arrowup", + 0x2191, + "arrowupdn", + 0x2195, + "arrowupdnbse", + 0x21a8, + "arrowupdownbase", + 0x21a8, + "arrowupleft", + 0x2196, + "arrowupleftofdown", + 0x21c5, + "arrowupright", + 0x2197, + "arrowupwhite", + 0x21e7, + "arrowvertex", + 0xf8e6, + "asciicircum", + 0x005e, + "asciicircummonospace", + 0xff3e, + "asciitilde", + 0x007e, + "asciitildemonospace", + 0xff5e, + "ascript", + 0x0251, + "ascriptturned", + 0x0252, + "asmallhiragana", + 0x3041, + "asmallkatakana", + 0x30a1, + "asmallkatakanahalfwidth", + 0xff67, + "asterisk", + 0x002a, + "asteriskaltonearabic", + 0x066d, + "asteriskarabic", + 0x066d, + "asteriskmath", + 0x2217, + "asteriskmonospace", + 0xff0a, + "asterisksmall", + 0xfe61, + "asterism", + 0x2042, + "asuperior", + 0xf6e9, + "asymptoticallyequal", + 0x2243, + "at", + 0x0040, + "atilde", + 0x00e3, + "atmonospace", + 0xff20, + "atsmall", + 0xfe6b, + "aturned", + 0x0250, + "aubengali", + 0x0994, + "aubopomofo", + 0x3120, + "audeva", + 0x0914, + "augujarati", + 0x0a94, + "augurmukhi", + 0x0a14, + "aulengthmarkbengali", + 0x09d7, + "aumatragurmukhi", + 0x0a4c, + "auvowelsignbengali", + 0x09cc, + "auvowelsigndeva", + 0x094c, + "auvowelsigngujarati", + 0x0acc, + "avagrahadeva", + 0x093d, + "aybarmenian", + 0x0561, + "ayin", + 0x05e2, + "ayinaltonehebrew", + 0xfb20, + "ayinhebrew", + 0x05e2, + "b", + 0x0062, + "babengali", + 0x09ac, + "backslash", + 0x005c, + "backslashmonospace", + 0xff3c, + "badeva", + 0x092c, + "bagujarati", + 0x0aac, + "bagurmukhi", + 0x0a2c, + "bahiragana", + 0x3070, + "bahtthai", + 0x0e3f, + "bakatakana", + 0x30d0, + "bar", + 0x007c, + "barmonospace", + 0xff5c, + "bbopomofo", + 0x3105, + "bcircle", + 0x24d1, + "bdotaccent", + 0x1e03, + "bdotbelow", + 0x1e05, + "beamedsixteenthnotes", + 0x266c, + "because", + 0x2235, + "becyrillic", + 0x0431, + "beharabic", + 0x0628, + "behfinalarabic", + 0xfe90, + "behinitialarabic", + 0xfe91, + "behiragana", + 0x3079, + "behmedialarabic", + 0xfe92, + "behmeeminitialarabic", + 0xfc9f, + "behmeemisolatedarabic", + 0xfc08, + "behnoonfinalarabic", + 0xfc6d, + "bekatakana", + 0x30d9, + "benarmenian", + 0x0562, + "bet", + 0x05d1, + "beta", + 0x03b2, + "betasymbolgreek", + 0x03d0, + "betdagesh", + 0xfb31, + "betdageshhebrew", + 0xfb31, + "bethebrew", + 0x05d1, + "betrafehebrew", + 0xfb4c, + "bhabengali", + 0x09ad, + "bhadeva", + 0x092d, + "bhagujarati", + 0x0aad, + "bhagurmukhi", + 0x0a2d, + "bhook", + 0x0253, + "bihiragana", + 0x3073, + "bikatakana", + 0x30d3, + "bilabialclick", + 0x0298, + "bindigurmukhi", + 0x0a02, + "birusquare", + 0x3331, + "blackcircle", + 0x25cf, + "blackdiamond", + 0x25c6, + "blackdownpointingtriangle", + 0x25bc, + "blackleftpointingpointer", + 0x25c4, + "blackleftpointingtriangle", + 0x25c0, + "blacklenticularbracketleft", + 0x3010, + "blacklenticularbracketleftvertical", + 0xfe3b, + "blacklenticularbracketright", + 0x3011, + "blacklenticularbracketrightvertical", + 0xfe3c, + "blacklowerlefttriangle", + 0x25e3, + "blacklowerrighttriangle", + 0x25e2, + "blackrectangle", + 0x25ac, + "blackrightpointingpointer", + 0x25ba, + "blackrightpointingtriangle", + 0x25b6, + "blacksmallsquare", + 0x25aa, + "blacksmilingface", + 0x263b, + "blacksquare", + 0x25a0, + "blackstar", + 0x2605, + "blackupperlefttriangle", + 0x25e4, + "blackupperrighttriangle", + 0x25e5, + "blackuppointingsmalltriangle", + 0x25b4, + "blackuppointingtriangle", + 0x25b2, + "blank", + 0x2423, + "blinebelow", + 0x1e07, + "block", + 0x2588, + "bmonospace", + 0xff42, + "bobaimaithai", + 0x0e1a, + "bohiragana", + 0x307c, + "bokatakana", + 0x30dc, + "bparen", + 0x249d, + "bqsquare", + 0x33c3, + "braceex", + 0xf8f4, + "braceleft", + 0x007b, + "braceleftbt", + 0xf8f3, + "braceleftmid", + 0xf8f2, + "braceleftmonospace", + 0xff5b, + "braceleftsmall", + 0xfe5b, + "bracelefttp", + 0xf8f1, + "braceleftvertical", + 0xfe37, + "braceright", + 0x007d, + "bracerightbt", + 0xf8fe, + "bracerightmid", + 0xf8fd, + "bracerightmonospace", + 0xff5d, + "bracerightsmall", + 0xfe5c, + "bracerighttp", + 0xf8fc, + "bracerightvertical", + 0xfe38, + "bracketleft", + 0x005b, + "bracketleftbt", + 0xf8f0, + "bracketleftex", + 0xf8ef, + "bracketleftmonospace", + 0xff3b, + "bracketlefttp", + 0xf8ee, + "bracketright", + 0x005d, + "bracketrightbt", + 0xf8fb, + "bracketrightex", + 0xf8fa, + "bracketrightmonospace", + 0xff3d, + "bracketrighttp", + 0xf8f9, + "breve", + 0x02d8, + "brevebelowcmb", + 0x032e, + "brevecmb", + 0x0306, + "breveinvertedbelowcmb", + 0x032f, + "breveinvertedcmb", + 0x0311, + "breveinverteddoublecmb", + 0x0361, + "bridgebelowcmb", + 0x032a, + "bridgeinvertedbelowcmb", + 0x033a, + "brokenbar", + 0x00a6, + "bstroke", + 0x0180, + "bsuperior", + 0xf6ea, + "btopbar", + 0x0183, + "buhiragana", + 0x3076, + "bukatakana", + 0x30d6, + "bullet", + 0x2022, + "bulletinverse", + 0x25d8, + "bulletoperator", + 0x2219, + "bullseye", + 0x25ce, + "c", + 0x0063, + "caarmenian", + 0x056e, + "cabengali", + 0x099a, + "cacute", + 0x0107, + "cadeva", + 0x091a, + "cagujarati", + 0x0a9a, + "cagurmukhi", + 0x0a1a, + "calsquare", + 0x3388, + "candrabindubengali", + 0x0981, + "candrabinducmb", + 0x0310, + "candrabindudeva", + 0x0901, + "candrabindugujarati", + 0x0a81, + "capslock", + 0x21ea, + "careof", + 0x2105, + "caron", + 0x02c7, + "caronbelowcmb", + 0x032c, + "caroncmb", + 0x030c, + "carriagereturn", + 0x21b5, + "cbopomofo", + 0x3118, + "ccaron", + 0x010d, + "ccedilla", + 0x00e7, + "ccedillaacute", + 0x1e09, + "ccircle", + 0x24d2, + "ccircumflex", + 0x0109, + "ccurl", + 0x0255, + "cdot", + 0x010b, + "cdotaccent", + 0x010b, + "cdsquare", + 0x33c5, + "cedilla", + 0x00b8, + "cedillacmb", + 0x0327, + "cent", + 0x00a2, + "centigrade", + 0x2103, + "centinferior", + 0xf6df, + "centmonospace", + 0xffe0, + "centoldstyle", + 0xf7a2, + "centsuperior", + 0xf6e0, + "chaarmenian", + 0x0579, + "chabengali", + 0x099b, + "chadeva", + 0x091b, + "chagujarati", + 0x0a9b, + "chagurmukhi", + 0x0a1b, + "chbopomofo", + 0x3114, + "cheabkhasiancyrillic", + 0x04bd, + "checkmark", + 0x2713, + "checyrillic", + 0x0447, + "chedescenderabkhasiancyrillic", + 0x04bf, + "chedescendercyrillic", + 0x04b7, + "chedieresiscyrillic", + 0x04f5, + "cheharmenian", + 0x0573, + "chekhakassiancyrillic", + 0x04cc, + "cheverticalstrokecyrillic", + 0x04b9, + "chi", + 0x03c7, + "chieuchacirclekorean", + 0x3277, + "chieuchaparenkorean", + 0x3217, + "chieuchcirclekorean", + 0x3269, + "chieuchkorean", + 0x314a, + "chieuchparenkorean", + 0x3209, + "chochangthai", + 0x0e0a, + "chochanthai", + 0x0e08, + "chochingthai", + 0x0e09, + "chochoethai", + 0x0e0c, + "chook", + 0x0188, + "cieucacirclekorean", + 0x3276, + "cieucaparenkorean", + 0x3216, + "cieuccirclekorean", + 0x3268, + "cieuckorean", + 0x3148, + "cieucparenkorean", + 0x3208, + "cieucuparenkorean", + 0x321c, + "circle", + 0x25cb, + "circlecopyrt", + 0x00a9, + "circlemultiply", + 0x2297, + "circleot", + 0x2299, + "circleplus", + 0x2295, + "circlepostalmark", + 0x3036, + "circlewithlefthalfblack", + 0x25d0, + "circlewithrighthalfblack", + 0x25d1, + "circumflex", + 0x02c6, + "circumflexbelowcmb", + 0x032d, + "circumflexcmb", + 0x0302, + "clear", + 0x2327, + "clickalveolar", + 0x01c2, + "clickdental", + 0x01c0, + "clicklateral", + 0x01c1, + "clickretroflex", + 0x01c3, + "club", + 0x2663, + "clubsuitblack", + 0x2663, + "clubsuitwhite", + 0x2667, + "cmcubedsquare", + 0x33a4, + "cmonospace", + 0xff43, + "cmsquaredsquare", + 0x33a0, + "coarmenian", + 0x0581, + "colon", + 0x003a, + "colonmonetary", + 0x20a1, + "colonmonospace", + 0xff1a, + "colonsign", + 0x20a1, + "colonsmall", + 0xfe55, + "colontriangularhalfmod", + 0x02d1, + "colontriangularmod", + 0x02d0, + "comma", + 0x002c, + "commaabovecmb", + 0x0313, + "commaaboverightcmb", + 0x0315, + "commaaccent", + 0xf6c3, + "commaarabic", + 0x060c, + "commaarmenian", + 0x055d, + "commainferior", + 0xf6e1, + "commamonospace", + 0xff0c, + "commareversedabovecmb", + 0x0314, + "commareversedmod", + 0x02bd, + "commasmall", + 0xfe50, + "commasuperior", + 0xf6e2, + "commaturnedabovecmb", + 0x0312, + "commaturnedmod", + 0x02bb, + "compass", + 0x263c, + "congruent", + 0x2245, + "contourintegral", + 0x222e, + "control", + 0x2303, + "controlACK", + 0x0006, + "controlBEL", + 0x0007, + "controlBS", + 0x0008, + "controlCAN", + 0x0018, + "controlCR", + 0x000d, + "controlDC1", + 0x0011, + "controlDC2", + 0x0012, + "controlDC3", + 0x0013, + "controlDC4", + 0x0014, + "controlDEL", + 0x007f, + "controlDLE", + 0x0010, + "controlEM", + 0x0019, + "controlENQ", + 0x0005, + "controlEOT", + 0x0004, + "controlESC", + 0x001b, + "controlETB", + 0x0017, + "controlETX", + 0x0003, + "controlFF", + 0x000c, + "controlFS", + 0x001c, + "controlGS", + 0x001d, + "controlHT", + 0x0009, + "controlLF", + 0x000a, + "controlNAK", + 0x0015, + "controlNULL", + 0x0000, + "controlRS", + 0x001e, + "controlSI", + 0x000f, + "controlSO", + 0x000e, + "controlSOT", + 0x0002, + "controlSTX", + 0x0001, + "controlSUB", + 0x001a, + "controlSYN", + 0x0016, + "controlUS", + 0x001f, + "controlVT", + 0x000b, + "copyright", + 0x00a9, + "copyrightsans", + 0xf8e9, + "copyrightserif", + 0xf6d9, + "cornerbracketleft", + 0x300c, + "cornerbracketlefthalfwidth", + 0xff62, + "cornerbracketleftvertical", + 0xfe41, + "cornerbracketright", + 0x300d, + "cornerbracketrighthalfwidth", + 0xff63, + "cornerbracketrightvertical", + 0xfe42, + "corporationsquare", + 0x337f, + "cosquare", + 0x33c7, + "coverkgsquare", + 0x33c6, + "cparen", + 0x249e, + "cruzeiro", + 0x20a2, + "cstretched", + 0x0297, + "curlyand", + 0x22cf, + "curlyor", + 0x22ce, + "currency", + 0x00a4, + "cyrBreve", + 0xf6d1, + "cyrFlex", + 0xf6d2, + "cyrbreve", + 0xf6d4, + "cyrflex", + 0xf6d5, + "d", + 0x0064, + "daarmenian", + 0x0564, + "dabengali", + 0x09a6, + "dadarabic", + 0x0636, + "dadeva", + 0x0926, + "dadfinalarabic", + 0xfebe, + "dadinitialarabic", + 0xfebf, + "dadmedialarabic", + 0xfec0, + "dagesh", + 0x05bc, + "dageshhebrew", + 0x05bc, + "dagger", + 0x2020, + "daggerdbl", + 0x2021, + "dagujarati", + 0x0aa6, + "dagurmukhi", + 0x0a26, + "dahiragana", + 0x3060, + "dakatakana", + 0x30c0, + "dalarabic", + 0x062f, + "dalet", + 0x05d3, + "daletdagesh", + 0xfb33, + "daletdageshhebrew", + 0xfb33, + "dalethebrew", + 0x05d3, + "dalfinalarabic", + 0xfeaa, + "dammaarabic", + 0x064f, + "dammalowarabic", + 0x064f, + "dammatanaltonearabic", + 0x064c, + "dammatanarabic", + 0x064c, + "danda", + 0x0964, + "dargahebrew", + 0x05a7, + "dargalefthebrew", + 0x05a7, + "dasiapneumatacyrilliccmb", + 0x0485, + "dblGrave", + 0xf6d3, + "dblanglebracketleft", + 0x300a, + "dblanglebracketleftvertical", + 0xfe3d, + "dblanglebracketright", + 0x300b, + "dblanglebracketrightvertical", + 0xfe3e, + "dblarchinvertedbelowcmb", + 0x032b, + "dblarrowleft", + 0x21d4, + "dblarrowright", + 0x21d2, + "dbldanda", + 0x0965, + "dblgrave", + 0xf6d6, + "dblgravecmb", + 0x030f, + "dblintegral", + 0x222c, + "dbllowline", + 0x2017, + "dbllowlinecmb", + 0x0333, + "dbloverlinecmb", + 0x033f, + "dblprimemod", + 0x02ba, + "dblverticalbar", + 0x2016, + "dblverticallineabovecmb", + 0x030e, + "dbopomofo", + 0x3109, + "dbsquare", + 0x33c8, + "dcaron", + 0x010f, + "dcedilla", + 0x1e11, + "dcircle", + 0x24d3, + "dcircumflexbelow", + 0x1e13, + "dcroat", + 0x0111, + "ddabengali", + 0x09a1, + "ddadeva", + 0x0921, + "ddagujarati", + 0x0aa1, + "ddagurmukhi", + 0x0a21, + "ddalarabic", + 0x0688, + "ddalfinalarabic", + 0xfb89, + "dddhadeva", + 0x095c, + "ddhabengali", + 0x09a2, + "ddhadeva", + 0x0922, + "ddhagujarati", + 0x0aa2, + "ddhagurmukhi", + 0x0a22, + "ddotaccent", + 0x1e0b, + "ddotbelow", + 0x1e0d, + "decimalseparatorarabic", + 0x066b, + "decimalseparatorpersian", + 0x066b, + "decyrillic", + 0x0434, + "degree", + 0x00b0, + "dehihebrew", + 0x05ad, + "dehiragana", + 0x3067, + "deicoptic", + 0x03ef, + "dekatakana", + 0x30c7, + "deleteleft", + 0x232b, + "deleteright", + 0x2326, + "delta", + 0x03b4, + "deltaturned", + 0x018d, + "denominatorminusonenumeratorbengali", + 0x09f8, + "dezh", + 0x02a4, + "dhabengali", + 0x09a7, + "dhadeva", + 0x0927, + "dhagujarati", + 0x0aa7, + "dhagurmukhi", + 0x0a27, + "dhook", + 0x0257, + "dialytikatonos", + 0x0385, + "dialytikatonoscmb", + 0x0344, + "diamond", + 0x2666, + "diamondsuitwhite", + 0x2662, + "dieresis", + 0x00a8, + "dieresisacute", + 0xf6d7, + "dieresisbelowcmb", + 0x0324, + "dieresiscmb", + 0x0308, + "dieresisgrave", + 0xf6d8, + "dieresistonos", + 0x0385, + "dihiragana", + 0x3062, + "dikatakana", + 0x30c2, + "dittomark", + 0x3003, + "divide", + 0x00f7, + "divides", + 0x2223, + "divisionslash", + 0x2215, + "djecyrillic", + 0x0452, + "dkshade", + 0x2593, + "dlinebelow", + 0x1e0f, + "dlsquare", + 0x3397, + "dmacron", + 0x0111, + "dmonospace", + 0xff44, + "dnblock", + 0x2584, + "dochadathai", + 0x0e0e, + "dodekthai", + 0x0e14, + "dohiragana", + 0x3069, + "dokatakana", + 0x30c9, + "dollar", + 0x0024, + "dollarinferior", + 0xf6e3, + "dollarmonospace", + 0xff04, + "dollaroldstyle", + 0xf724, + "dollarsmall", + 0xfe69, + "dollarsuperior", + 0xf6e4, + "dong", + 0x20ab, + "dorusquare", + 0x3326, + "dotaccent", + 0x02d9, + "dotaccentcmb", + 0x0307, + "dotbelowcmb", + 0x0323, + "dotbelowcomb", + 0x0323, + "dotkatakana", + 0x30fb, + "dotlessi", + 0x0131, + "dotlessj", + 0xf6be, + "dotlessjstrokehook", + 0x0284, + "dotmath", + 0x22c5, + "dottedcircle", + 0x25cc, + "doubleyodpatah", + 0xfb1f, + "doubleyodpatahhebrew", + 0xfb1f, + "downtackbelowcmb", + 0x031e, + "downtackmod", + 0x02d5, + "dparen", + 0x249f, + "dsuperior", + 0xf6eb, + "dtail", + 0x0256, + "dtopbar", + 0x018c, + "duhiragana", + 0x3065, + "dukatakana", + 0x30c5, + "dz", + 0x01f3, + "dzaltone", + 0x02a3, + "dzcaron", + 0x01c6, + "dzcurl", + 0x02a5, + "dzeabkhasiancyrillic", + 0x04e1, + "dzecyrillic", + 0x0455, + "dzhecyrillic", + 0x045f, + "e", + 0x0065, + "eacute", + 0x00e9, + "earth", + 0x2641, + "ebengali", + 0x098f, + "ebopomofo", + 0x311c, + "ebreve", + 0x0115, + "ecandradeva", + 0x090d, + "ecandragujarati", + 0x0a8d, + "ecandravowelsigndeva", + 0x0945, + "ecandravowelsigngujarati", + 0x0ac5, + "ecaron", + 0x011b, + "ecedillabreve", + 0x1e1d, + "echarmenian", + 0x0565, + "echyiwnarmenian", + 0x0587, + "ecircle", + 0x24d4, + "ecircumflex", + 0x00ea, + "ecircumflexacute", + 0x1ebf, + "ecircumflexbelow", + 0x1e19, + "ecircumflexdotbelow", + 0x1ec7, + "ecircumflexgrave", + 0x1ec1, + "ecircumflexhookabove", + 0x1ec3, + "ecircumflextilde", + 0x1ec5, + "ecyrillic", + 0x0454, + "edblgrave", + 0x0205, + "edeva", + 0x090f, + "edieresis", + 0x00eb, + "edot", + 0x0117, + "edotaccent", + 0x0117, + "edotbelow", + 0x1eb9, + "eegurmukhi", + 0x0a0f, + "eematragurmukhi", + 0x0a47, + "efcyrillic", + 0x0444, + "egrave", + 0x00e8, + "egujarati", + 0x0a8f, + "eharmenian", + 0x0567, + "ehbopomofo", + 0x311d, + "ehiragana", + 0x3048, + "ehookabove", + 0x1ebb, + "eibopomofo", + 0x311f, + "eight", + 0x0038, + "eightarabic", + 0x0668, + "eightbengali", + 0x09ee, + "eightcircle", + 0x2467, + "eightcircleinversesansserif", + 0x2791, + "eightdeva", + 0x096e, + "eighteencircle", + 0x2471, + "eighteenparen", + 0x2485, + "eighteenperiod", + 0x2499, + "eightgujarati", + 0x0aee, + "eightgurmukhi", + 0x0a6e, + "eighthackarabic", + 0x0668, + "eighthangzhou", + 0x3028, + "eighthnotebeamed", + 0x266b, + "eightideographicparen", + 0x3227, + "eightinferior", + 0x2088, + "eightmonospace", + 0xff18, + "eightoldstyle", + 0xf738, + "eightparen", + 0x247b, + "eightperiod", + 0x248f, + "eightpersian", + 0x06f8, + "eightroman", + 0x2177, + "eightsuperior", + 0x2078, + "eightthai", + 0x0e58, + "einvertedbreve", + 0x0207, + "eiotifiedcyrillic", + 0x0465, + "ekatakana", + 0x30a8, + "ekatakanahalfwidth", + 0xff74, + "ekonkargurmukhi", + 0x0a74, + "ekorean", + 0x3154, + "elcyrillic", + 0x043b, + "element", + 0x2208, + "elevencircle", + 0x246a, + "elevenparen", + 0x247e, + "elevenperiod", + 0x2492, + "elevenroman", + 0x217a, + "ellipsis", + 0x2026, + "ellipsisvertical", + 0x22ee, + "emacron", + 0x0113, + "emacronacute", + 0x1e17, + "emacrongrave", + 0x1e15, + "emcyrillic", + 0x043c, + "emdash", + 0x2014, + "emdashvertical", + 0xfe31, + "emonospace", + 0xff45, + "emphasismarkarmenian", + 0x055b, + "emptyset", + 0x2205, + "enbopomofo", + 0x3123, + "encyrillic", + 0x043d, + "endash", + 0x2013, + "endashvertical", + 0xfe32, + "endescendercyrillic", + 0x04a3, + "eng", + 0x014b, + "engbopomofo", + 0x3125, + "enghecyrillic", + 0x04a5, + "enhookcyrillic", + 0x04c8, + "enspace", + 0x2002, + "eogonek", + 0x0119, + "eokorean", + 0x3153, + "eopen", + 0x025b, + "eopenclosed", + 0x029a, + "eopenreversed", + 0x025c, + "eopenreversedclosed", + 0x025e, + "eopenreversedhook", + 0x025d, + "eparen", + 0x24a0, + "epsilon", + 0x03b5, + "epsilontonos", + 0x03ad, + "equal", + 0x003d, + "equalmonospace", + 0xff1d, + "equalsmall", + 0xfe66, + "equalsuperior", + 0x207c, + "equivalence", + 0x2261, + "erbopomofo", + 0x3126, + "ercyrillic", + 0x0440, + "ereversed", + 0x0258, + "ereversedcyrillic", + 0x044d, + "escyrillic", + 0x0441, + "esdescendercyrillic", + 0x04ab, + "esh", + 0x0283, + "eshcurl", + 0x0286, + "eshortdeva", + 0x090e, + "eshortvowelsigndeva", + 0x0946, + "eshreversedloop", + 0x01aa, + "eshsquatreversed", + 0x0285, + "esmallhiragana", + 0x3047, + "esmallkatakana", + 0x30a7, + "esmallkatakanahalfwidth", + 0xff6a, + "estimated", + 0x212e, + "esuperior", + 0xf6ec, + "eta", + 0x03b7, + "etarmenian", + 0x0568, + "etatonos", + 0x03ae, + "eth", + 0x00f0, + "etilde", + 0x1ebd, + "etildebelow", + 0x1e1b, + "etnahtafoukhhebrew", + 0x0591, + "etnahtafoukhlefthebrew", + 0x0591, + "etnahtahebrew", + 0x0591, + "etnahtalefthebrew", + 0x0591, + "eturned", + 0x01dd, + "eukorean", + 0x3161, + "euro", + 0x20ac, + "evowelsignbengali", + 0x09c7, + "evowelsigndeva", + 0x0947, + "evowelsigngujarati", + 0x0ac7, + "exclam", + 0x0021, + "exclamarmenian", + 0x055c, + "exclamdbl", + 0x203c, + "exclamdown", + 0x00a1, + "exclamdownsmall", + 0xf7a1, + "exclammonospace", + 0xff01, + "exclamsmall", + 0xf721, + "existential", + 0x2203, + "ezh", + 0x0292, + "ezhcaron", + 0x01ef, + "ezhcurl", + 0x0293, + "ezhreversed", + 0x01b9, + "ezhtail", + 0x01ba, + "f", + 0x0066, + "fadeva", + 0x095e, + "fagurmukhi", + 0x0a5e, + "fahrenheit", + 0x2109, + "fathaarabic", + 0x064e, + "fathalowarabic", + 0x064e, + "fathatanarabic", + 0x064b, + "fbopomofo", + 0x3108, + "fcircle", + 0x24d5, + "fdotaccent", + 0x1e1f, + "feharabic", + 0x0641, + "feharmenian", + 0x0586, + "fehfinalarabic", + 0xfed2, + "fehinitialarabic", + 0xfed3, + "fehmedialarabic", + 0xfed4, + "feicoptic", + 0x03e5, + "female", + 0x2640, + "ff", + 0xfb00, + "f_f", + 0xfb00, + "ffi", + 0xfb03, + "ffl", + 0xfb04, + "fi", + 0xfb01, + "fifteencircle", + 0x246e, + "fifteenparen", + 0x2482, + "fifteenperiod", + 0x2496, + "figuredash", + 0x2012, + "filledbox", + 0x25a0, + "filledrect", + 0x25ac, + "finalkaf", + 0x05da, + "finalkafdagesh", + 0xfb3a, + "finalkafdageshhebrew", + 0xfb3a, + "finalkafhebrew", + 0x05da, + "finalmem", + 0x05dd, + "finalmemhebrew", + 0x05dd, + "finalnun", + 0x05df, + "finalnunhebrew", + 0x05df, + "finalpe", + 0x05e3, + "finalpehebrew", + 0x05e3, + "finaltsadi", + 0x05e5, + "finaltsadihebrew", + 0x05e5, + "firsttonechinese", + 0x02c9, + "fisheye", + 0x25c9, + "fitacyrillic", + 0x0473, + "five", + 0x0035, + "fivearabic", + 0x0665, + "fivebengali", + 0x09eb, + "fivecircle", + 0x2464, + "fivecircleinversesansserif", + 0x278e, + "fivedeva", + 0x096b, + "fiveeighths", + 0x215d, + "fivegujarati", + 0x0aeb, + "fivegurmukhi", + 0x0a6b, + "fivehackarabic", + 0x0665, + "fivehangzhou", + 0x3025, + "fiveideographicparen", + 0x3224, + "fiveinferior", + 0x2085, + "fivemonospace", + 0xff15, + "fiveoldstyle", + 0xf735, + "fiveparen", + 0x2478, + "fiveperiod", + 0x248c, + "fivepersian", + 0x06f5, + "fiveroman", + 0x2174, + "fivesuperior", + 0x2075, + "fivethai", + 0x0e55, + "fl", + 0xfb02, + "florin", + 0x0192, + "fmonospace", + 0xff46, + "fmsquare", + 0x3399, + "fofanthai", + 0x0e1f, + "fofathai", + 0x0e1d, + "fongmanthai", + 0x0e4f, + "forall", + 0x2200, + "four", + 0x0034, + "fourarabic", + 0x0664, + "fourbengali", + 0x09ea, + "fourcircle", + 0x2463, + "fourcircleinversesansserif", + 0x278d, + "fourdeva", + 0x096a, + "fourgujarati", + 0x0aea, + "fourgurmukhi", + 0x0a6a, + "fourhackarabic", + 0x0664, + "fourhangzhou", + 0x3024, + "fourideographicparen", + 0x3223, + "fourinferior", + 0x2084, + "fourmonospace", + 0xff14, + "fournumeratorbengali", + 0x09f7, + "fouroldstyle", + 0xf734, + "fourparen", + 0x2477, + "fourperiod", + 0x248b, + "fourpersian", + 0x06f4, + "fourroman", + 0x2173, + "foursuperior", + 0x2074, + "fourteencircle", + 0x246d, + "fourteenparen", + 0x2481, + "fourteenperiod", + 0x2495, + "fourthai", + 0x0e54, + "fourthtonechinese", + 0x02cb, + "fparen", + 0x24a1, + "fraction", + 0x2044, + "franc", + 0x20a3, + "g", + 0x0067, + "gabengali", + 0x0997, + "gacute", + 0x01f5, + "gadeva", + 0x0917, + "gafarabic", + 0x06af, + "gaffinalarabic", + 0xfb93, + "gafinitialarabic", + 0xfb94, + "gafmedialarabic", + 0xfb95, + "gagujarati", + 0x0a97, + "gagurmukhi", + 0x0a17, + "gahiragana", + 0x304c, + "gakatakana", + 0x30ac, + "gamma", + 0x03b3, + "gammalatinsmall", + 0x0263, + "gammasuperior", + 0x02e0, + "gangiacoptic", + 0x03eb, + "gbopomofo", + 0x310d, + "gbreve", + 0x011f, + "gcaron", + 0x01e7, + "gcedilla", + 0x0123, + "gcircle", + 0x24d6, + "gcircumflex", + 0x011d, + "gcommaaccent", + 0x0123, + "gdot", + 0x0121, + "gdotaccent", + 0x0121, + "gecyrillic", + 0x0433, + "gehiragana", + 0x3052, + "gekatakana", + 0x30b2, + "geometricallyequal", + 0x2251, + "gereshaccenthebrew", + 0x059c, + "gereshhebrew", + 0x05f3, + "gereshmuqdamhebrew", + 0x059d, + "germandbls", + 0x00df, + "gershayimaccenthebrew", + 0x059e, + "gershayimhebrew", + 0x05f4, + "getamark", + 0x3013, + "ghabengali", + 0x0998, + "ghadarmenian", + 0x0572, + "ghadeva", + 0x0918, + "ghagujarati", + 0x0a98, + "ghagurmukhi", + 0x0a18, + "ghainarabic", + 0x063a, + "ghainfinalarabic", + 0xfece, + "ghaininitialarabic", + 0xfecf, + "ghainmedialarabic", + 0xfed0, + "ghemiddlehookcyrillic", + 0x0495, + "ghestrokecyrillic", + 0x0493, + "gheupturncyrillic", + 0x0491, + "ghhadeva", + 0x095a, + "ghhagurmukhi", + 0x0a5a, + "ghook", + 0x0260, + "ghzsquare", + 0x3393, + "gihiragana", + 0x304e, + "gikatakana", + 0x30ae, + "gimarmenian", + 0x0563, + "gimel", + 0x05d2, + "gimeldagesh", + 0xfb32, + "gimeldageshhebrew", + 0xfb32, + "gimelhebrew", + 0x05d2, + "gjecyrillic", + 0x0453, + "glottalinvertedstroke", + 0x01be, + "glottalstop", + 0x0294, + "glottalstopinverted", + 0x0296, + "glottalstopmod", + 0x02c0, + "glottalstopreversed", + 0x0295, + "glottalstopreversedmod", + 0x02c1, + "glottalstopreversedsuperior", + 0x02e4, + "glottalstopstroke", + 0x02a1, + "glottalstopstrokereversed", + 0x02a2, + "gmacron", + 0x1e21, + "gmonospace", + 0xff47, + "gohiragana", + 0x3054, + "gokatakana", + 0x30b4, + "gparen", + 0x24a2, + "gpasquare", + 0x33ac, + "gradient", + 0x2207, + "grave", + 0x0060, + "gravebelowcmb", + 0x0316, + "gravecmb", + 0x0300, + "gravecomb", + 0x0300, + "gravedeva", + 0x0953, + "gravelowmod", + 0x02ce, + "gravemonospace", + 0xff40, + "gravetonecmb", + 0x0340, + "greater", + 0x003e, + "greaterequal", + 0x2265, + "greaterequalorless", + 0x22db, + "greatermonospace", + 0xff1e, + "greaterorequivalent", + 0x2273, + "greaterorless", + 0x2277, + "greateroverequal", + 0x2267, + "greatersmall", + 0xfe65, + "gscript", + 0x0261, + "gstroke", + 0x01e5, + "guhiragana", + 0x3050, + "guillemotleft", + 0x00ab, + "guillemotright", + 0x00bb, + "guilsinglleft", + 0x2039, + "guilsinglright", + 0x203a, + "gukatakana", + 0x30b0, + "guramusquare", + 0x3318, + "gysquare", + 0x33c9, + "h", + 0x0068, + "haabkhasiancyrillic", + 0x04a9, + "haaltonearabic", + 0x06c1, + "habengali", + 0x09b9, + "hadescendercyrillic", + 0x04b3, + "hadeva", + 0x0939, + "hagujarati", + 0x0ab9, + "hagurmukhi", + 0x0a39, + "haharabic", + 0x062d, + "hahfinalarabic", + 0xfea2, + "hahinitialarabic", + 0xfea3, + "hahiragana", + 0x306f, + "hahmedialarabic", + 0xfea4, + "haitusquare", + 0x332a, + "hakatakana", + 0x30cf, + "hakatakanahalfwidth", + 0xff8a, + "halantgurmukhi", + 0x0a4d, + "hamzaarabic", + 0x0621, + "hamzalowarabic", + 0x0621, + "hangulfiller", + 0x3164, + "hardsigncyrillic", + 0x044a, + "harpoonleftbarbup", + 0x21bc, + "harpoonrightbarbup", + 0x21c0, + "hasquare", + 0x33ca, + "hatafpatah", + 0x05b2, + "hatafpatah16", + 0x05b2, + "hatafpatah23", + 0x05b2, + "hatafpatah2f", + 0x05b2, + "hatafpatahhebrew", + 0x05b2, + "hatafpatahnarrowhebrew", + 0x05b2, + "hatafpatahquarterhebrew", + 0x05b2, + "hatafpatahwidehebrew", + 0x05b2, + "hatafqamats", + 0x05b3, + "hatafqamats1b", + 0x05b3, + "hatafqamats28", + 0x05b3, + "hatafqamats34", + 0x05b3, + "hatafqamatshebrew", + 0x05b3, + "hatafqamatsnarrowhebrew", + 0x05b3, + "hatafqamatsquarterhebrew", + 0x05b3, + "hatafqamatswidehebrew", + 0x05b3, + "hatafsegol", + 0x05b1, + "hatafsegol17", + 0x05b1, + "hatafsegol24", + 0x05b1, + "hatafsegol30", + 0x05b1, + "hatafsegolhebrew", + 0x05b1, + "hatafsegolnarrowhebrew", + 0x05b1, + "hatafsegolquarterhebrew", + 0x05b1, + "hatafsegolwidehebrew", + 0x05b1, + "hbar", + 0x0127, + "hbopomofo", + 0x310f, + "hbrevebelow", + 0x1e2b, + "hcedilla", + 0x1e29, + "hcircle", + 0x24d7, + "hcircumflex", + 0x0125, + "hdieresis", + 0x1e27, + "hdotaccent", + 0x1e23, + "hdotbelow", + 0x1e25, + "he", + 0x05d4, + "heart", + 0x2665, + "heartsuitblack", + 0x2665, + "heartsuitwhite", + 0x2661, + "hedagesh", + 0xfb34, + "hedageshhebrew", + 0xfb34, + "hehaltonearabic", + 0x06c1, + "heharabic", + 0x0647, + "hehebrew", + 0x05d4, + "hehfinalaltonearabic", + 0xfba7, + "hehfinalalttwoarabic", + 0xfeea, + "hehfinalarabic", + 0xfeea, + "hehhamzaabovefinalarabic", + 0xfba5, + "hehhamzaaboveisolatedarabic", + 0xfba4, + "hehinitialaltonearabic", + 0xfba8, + "hehinitialarabic", + 0xfeeb, + "hehiragana", + 0x3078, + "hehmedialaltonearabic", + 0xfba9, + "hehmedialarabic", + 0xfeec, + "heiseierasquare", + 0x337b, + "hekatakana", + 0x30d8, + "hekatakanahalfwidth", + 0xff8d, + "hekutaarusquare", + 0x3336, + "henghook", + 0x0267, + "herutusquare", + 0x3339, + "het", + 0x05d7, + "hethebrew", + 0x05d7, + "hhook", + 0x0266, + "hhooksuperior", + 0x02b1, + "hieuhacirclekorean", + 0x327b, + "hieuhaparenkorean", + 0x321b, + "hieuhcirclekorean", + 0x326d, + "hieuhkorean", + 0x314e, + "hieuhparenkorean", + 0x320d, + "hihiragana", + 0x3072, + "hikatakana", + 0x30d2, + "hikatakanahalfwidth", + 0xff8b, + "hiriq", + 0x05b4, + "hiriq14", + 0x05b4, + "hiriq21", + 0x05b4, + "hiriq2d", + 0x05b4, + "hiriqhebrew", + 0x05b4, + "hiriqnarrowhebrew", + 0x05b4, + "hiriqquarterhebrew", + 0x05b4, + "hiriqwidehebrew", + 0x05b4, + "hlinebelow", + 0x1e96, + "hmonospace", + 0xff48, + "hoarmenian", + 0x0570, + "hohipthai", + 0x0e2b, + "hohiragana", + 0x307b, + "hokatakana", + 0x30db, + "hokatakanahalfwidth", + 0xff8e, + "holam", + 0x05b9, + "holam19", + 0x05b9, + "holam26", + 0x05b9, + "holam32", + 0x05b9, + "holamhebrew", + 0x05b9, + "holamnarrowhebrew", + 0x05b9, + "holamquarterhebrew", + 0x05b9, + "holamwidehebrew", + 0x05b9, + "honokhukthai", + 0x0e2e, + "hookabovecomb", + 0x0309, + "hookcmb", + 0x0309, + "hookpalatalizedbelowcmb", + 0x0321, + "hookretroflexbelowcmb", + 0x0322, + "hoonsquare", + 0x3342, + "horicoptic", + 0x03e9, + "horizontalbar", + 0x2015, + "horncmb", + 0x031b, + "hotsprings", + 0x2668, + "house", + 0x2302, + "hparen", + 0x24a3, + "hsuperior", + 0x02b0, + "hturned", + 0x0265, + "huhiragana", + 0x3075, + "huiitosquare", + 0x3333, + "hukatakana", + 0x30d5, + "hukatakanahalfwidth", + 0xff8c, + "hungarumlaut", + 0x02dd, + "hungarumlautcmb", + 0x030b, + "hv", + 0x0195, + "hyphen", + 0x002d, + "hypheninferior", + 0xf6e5, + "hyphenmonospace", + 0xff0d, + "hyphensmall", + 0xfe63, + "hyphensuperior", + 0xf6e6, + "hyphentwo", + 0x2010, + "i", + 0x0069, + "iacute", + 0x00ed, + "iacyrillic", + 0x044f, + "ibengali", + 0x0987, + "ibopomofo", + 0x3127, + "ibreve", + 0x012d, + "icaron", + 0x01d0, + "icircle", + 0x24d8, + "icircumflex", + 0x00ee, + "icyrillic", + 0x0456, + "idblgrave", + 0x0209, + "ideographearthcircle", + 0x328f, + "ideographfirecircle", + 0x328b, + "ideographicallianceparen", + 0x323f, + "ideographiccallparen", + 0x323a, + "ideographiccentrecircle", + 0x32a5, + "ideographicclose", + 0x3006, + "ideographiccomma", + 0x3001, + "ideographiccommaleft", + 0xff64, + "ideographiccongratulationparen", + 0x3237, + "ideographiccorrectcircle", + 0x32a3, + "ideographicearthparen", + 0x322f, + "ideographicenterpriseparen", + 0x323d, + "ideographicexcellentcircle", + 0x329d, + "ideographicfestivalparen", + 0x3240, + "ideographicfinancialcircle", + 0x3296, + "ideographicfinancialparen", + 0x3236, + "ideographicfireparen", + 0x322b, + "ideographichaveparen", + 0x3232, + "ideographichighcircle", + 0x32a4, + "ideographiciterationmark", + 0x3005, + "ideographiclaborcircle", + 0x3298, + "ideographiclaborparen", + 0x3238, + "ideographicleftcircle", + 0x32a7, + "ideographiclowcircle", + 0x32a6, + "ideographicmedicinecircle", + 0x32a9, + "ideographicmetalparen", + 0x322e, + "ideographicmoonparen", + 0x322a, + "ideographicnameparen", + 0x3234, + "ideographicperiod", + 0x3002, + "ideographicprintcircle", + 0x329e, + "ideographicreachparen", + 0x3243, + "ideographicrepresentparen", + 0x3239, + "ideographicresourceparen", + 0x323e, + "ideographicrightcircle", + 0x32a8, + "ideographicsecretcircle", + 0x3299, + "ideographicselfparen", + 0x3242, + "ideographicsocietyparen", + 0x3233, + "ideographicspace", + 0x3000, + "ideographicspecialparen", + 0x3235, + "ideographicstockparen", + 0x3231, + "ideographicstudyparen", + 0x323b, + "ideographicsunparen", + 0x3230, + "ideographicsuperviseparen", + 0x323c, + "ideographicwaterparen", + 0x322c, + "ideographicwoodparen", + 0x322d, + "ideographiczero", + 0x3007, + "ideographmetalcircle", + 0x328e, + "ideographmooncircle", + 0x328a, + "ideographnamecircle", + 0x3294, + "ideographsuncircle", + 0x3290, + "ideographwatercircle", + 0x328c, + "ideographwoodcircle", + 0x328d, + "ideva", + 0x0907, + "idieresis", + 0x00ef, + "idieresisacute", + 0x1e2f, + "idieresiscyrillic", + 0x04e5, + "idotbelow", + 0x1ecb, + "iebrevecyrillic", + 0x04d7, + "iecyrillic", + 0x0435, + "ieungacirclekorean", + 0x3275, + "ieungaparenkorean", + 0x3215, + "ieungcirclekorean", + 0x3267, + "ieungkorean", + 0x3147, + "ieungparenkorean", + 0x3207, + "igrave", + 0x00ec, + "igujarati", + 0x0a87, + "igurmukhi", + 0x0a07, + "ihiragana", + 0x3044, + "ihookabove", + 0x1ec9, + "iibengali", + 0x0988, + "iicyrillic", + 0x0438, + "iideva", + 0x0908, + "iigujarati", + 0x0a88, + "iigurmukhi", + 0x0a08, + "iimatragurmukhi", + 0x0a40, + "iinvertedbreve", + 0x020b, + "iishortcyrillic", + 0x0439, + "iivowelsignbengali", + 0x09c0, + "iivowelsigndeva", + 0x0940, + "iivowelsigngujarati", + 0x0ac0, + "ij", + 0x0133, + "ikatakana", + 0x30a4, + "ikatakanahalfwidth", + 0xff72, + "ikorean", + 0x3163, + "ilde", + 0x02dc, + "iluyhebrew", + 0x05ac, + "imacron", + 0x012b, + "imacroncyrillic", + 0x04e3, + "imageorapproximatelyequal", + 0x2253, + "imatragurmukhi", + 0x0a3f, + "imonospace", + 0xff49, + "increment", + 0x2206, + "infinity", + 0x221e, + "iniarmenian", + 0x056b, + "integral", + 0x222b, + "integralbottom", + 0x2321, + "integralbt", + 0x2321, + "integralex", + 0xf8f5, + "integraltop", + 0x2320, + "integraltp", + 0x2320, + "intersection", + 0x2229, + "intisquare", + 0x3305, + "invbullet", + 0x25d8, + "invcircle", + 0x25d9, + "invsmileface", + 0x263b, + "iocyrillic", + 0x0451, + "iogonek", + 0x012f, + "iota", + 0x03b9, + "iotadieresis", + 0x03ca, + "iotadieresistonos", + 0x0390, + "iotalatin", + 0x0269, + "iotatonos", + 0x03af, + "iparen", + 0x24a4, + "irigurmukhi", + 0x0a72, + "ismallhiragana", + 0x3043, + "ismallkatakana", + 0x30a3, + "ismallkatakanahalfwidth", + 0xff68, + "issharbengali", + 0x09fa, + "istroke", + 0x0268, + "isuperior", + 0xf6ed, + "iterationhiragana", + 0x309d, + "iterationkatakana", + 0x30fd, + "itilde", + 0x0129, + "itildebelow", + 0x1e2d, + "iubopomofo", + 0x3129, + "iucyrillic", + 0x044e, + "ivowelsignbengali", + 0x09bf, + "ivowelsigndeva", + 0x093f, + "ivowelsigngujarati", + 0x0abf, + "izhitsacyrillic", + 0x0475, + "izhitsadblgravecyrillic", + 0x0477, + "j", + 0x006a, + "jaarmenian", + 0x0571, + "jabengali", + 0x099c, + "jadeva", + 0x091c, + "jagujarati", + 0x0a9c, + "jagurmukhi", + 0x0a1c, + "jbopomofo", + 0x3110, + "jcaron", + 0x01f0, + "jcircle", + 0x24d9, + "jcircumflex", + 0x0135, + "jcrossedtail", + 0x029d, + "jdotlessstroke", + 0x025f, + "jecyrillic", + 0x0458, + "jeemarabic", + 0x062c, + "jeemfinalarabic", + 0xfe9e, + "jeeminitialarabic", + 0xfe9f, + "jeemmedialarabic", + 0xfea0, + "jeharabic", + 0x0698, + "jehfinalarabic", + 0xfb8b, + "jhabengali", + 0x099d, + "jhadeva", + 0x091d, + "jhagujarati", + 0x0a9d, + "jhagurmukhi", + 0x0a1d, + "jheharmenian", + 0x057b, + "jis", + 0x3004, + "jmonospace", + 0xff4a, + "jparen", + 0x24a5, + "jsuperior", + 0x02b2, + "k", + 0x006b, + "kabashkircyrillic", + 0x04a1, + "kabengali", + 0x0995, + "kacute", + 0x1e31, + "kacyrillic", + 0x043a, + "kadescendercyrillic", + 0x049b, + "kadeva", + 0x0915, + "kaf", + 0x05db, + "kafarabic", + 0x0643, + "kafdagesh", + 0xfb3b, + "kafdageshhebrew", + 0xfb3b, + "kaffinalarabic", + 0xfeda, + "kafhebrew", + 0x05db, + "kafinitialarabic", + 0xfedb, + "kafmedialarabic", + 0xfedc, + "kafrafehebrew", + 0xfb4d, + "kagujarati", + 0x0a95, + "kagurmukhi", + 0x0a15, + "kahiragana", + 0x304b, + "kahookcyrillic", + 0x04c4, + "kakatakana", + 0x30ab, + "kakatakanahalfwidth", + 0xff76, + "kappa", + 0x03ba, + "kappasymbolgreek", + 0x03f0, + "kapyeounmieumkorean", + 0x3171, + "kapyeounphieuphkorean", + 0x3184, + "kapyeounpieupkorean", + 0x3178, + "kapyeounssangpieupkorean", + 0x3179, + "karoriisquare", + 0x330d, + "kashidaautoarabic", + 0x0640, + "kashidaautonosidebearingarabic", + 0x0640, + "kasmallkatakana", + 0x30f5, + "kasquare", + 0x3384, + "kasraarabic", + 0x0650, + "kasratanarabic", + 0x064d, + "kastrokecyrillic", + 0x049f, + "katahiraprolongmarkhalfwidth", + 0xff70, + "kaverticalstrokecyrillic", + 0x049d, + "kbopomofo", + 0x310e, + "kcalsquare", + 0x3389, + "kcaron", + 0x01e9, + "kcedilla", + 0x0137, + "kcircle", + 0x24da, + "kcommaaccent", + 0x0137, + "kdotbelow", + 0x1e33, + "keharmenian", + 0x0584, + "kehiragana", + 0x3051, + "kekatakana", + 0x30b1, + "kekatakanahalfwidth", + 0xff79, + "kenarmenian", + 0x056f, + "kesmallkatakana", + 0x30f6, + "kgreenlandic", + 0x0138, + "khabengali", + 0x0996, + "khacyrillic", + 0x0445, + "khadeva", + 0x0916, + "khagujarati", + 0x0a96, + "khagurmukhi", + 0x0a16, + "khaharabic", + 0x062e, + "khahfinalarabic", + 0xfea6, + "khahinitialarabic", + 0xfea7, + "khahmedialarabic", + 0xfea8, + "kheicoptic", + 0x03e7, + "khhadeva", + 0x0959, + "khhagurmukhi", + 0x0a59, + "khieukhacirclekorean", + 0x3278, + "khieukhaparenkorean", + 0x3218, + "khieukhcirclekorean", + 0x326a, + "khieukhkorean", + 0x314b, + "khieukhparenkorean", + 0x320a, + "khokhaithai", + 0x0e02, + "khokhonthai", + 0x0e05, + "khokhuatthai", + 0x0e03, + "khokhwaithai", + 0x0e04, + "khomutthai", + 0x0e5b, + "khook", + 0x0199, + "khorakhangthai", + 0x0e06, + "khzsquare", + 0x3391, + "kihiragana", + 0x304d, + "kikatakana", + 0x30ad, + "kikatakanahalfwidth", + 0xff77, + "kiroguramusquare", + 0x3315, + "kiromeetorusquare", + 0x3316, + "kirosquare", + 0x3314, + "kiyeokacirclekorean", + 0x326e, + "kiyeokaparenkorean", + 0x320e, + "kiyeokcirclekorean", + 0x3260, + "kiyeokkorean", + 0x3131, + "kiyeokparenkorean", + 0x3200, + "kiyeoksioskorean", + 0x3133, + "kjecyrillic", + 0x045c, + "klinebelow", + 0x1e35, + "klsquare", + 0x3398, + "kmcubedsquare", + 0x33a6, + "kmonospace", + 0xff4b, + "kmsquaredsquare", + 0x33a2, + "kohiragana", + 0x3053, + "kohmsquare", + 0x33c0, + "kokaithai", + 0x0e01, + "kokatakana", + 0x30b3, + "kokatakanahalfwidth", + 0xff7a, + "kooposquare", + 0x331e, + "koppacyrillic", + 0x0481, + "koreanstandardsymbol", + 0x327f, + "koroniscmb", + 0x0343, + "kparen", + 0x24a6, + "kpasquare", + 0x33aa, + "ksicyrillic", + 0x046f, + "ktsquare", + 0x33cf, + "kturned", + 0x029e, + "kuhiragana", + 0x304f, + "kukatakana", + 0x30af, + "kukatakanahalfwidth", + 0xff78, + "kvsquare", + 0x33b8, + "kwsquare", + 0x33be, + "l", + 0x006c, + "labengali", + 0x09b2, + "lacute", + 0x013a, + "ladeva", + 0x0932, + "lagujarati", + 0x0ab2, + "lagurmukhi", + 0x0a32, + "lakkhangyaothai", + 0x0e45, + "lamaleffinalarabic", + 0xfefc, + "lamalefhamzaabovefinalarabic", + 0xfef8, + "lamalefhamzaaboveisolatedarabic", + 0xfef7, + "lamalefhamzabelowfinalarabic", + 0xfefa, + "lamalefhamzabelowisolatedarabic", + 0xfef9, + "lamalefisolatedarabic", + 0xfefb, + "lamalefmaddaabovefinalarabic", + 0xfef6, + "lamalefmaddaaboveisolatedarabic", + 0xfef5, + "lamarabic", + 0x0644, + "lambda", + 0x03bb, + "lambdastroke", + 0x019b, + "lamed", + 0x05dc, + "lameddagesh", + 0xfb3c, + "lameddageshhebrew", + 0xfb3c, + "lamedhebrew", + 0x05dc, + "lamfinalarabic", + 0xfede, + "lamhahinitialarabic", + 0xfcca, + "laminitialarabic", + 0xfedf, + "lamjeeminitialarabic", + 0xfcc9, + "lamkhahinitialarabic", + 0xfccb, + "lamlamhehisolatedarabic", + 0xfdf2, + "lammedialarabic", + 0xfee0, + "lammeemhahinitialarabic", + 0xfd88, + "lammeeminitialarabic", + 0xfccc, + "largecircle", + 0x25ef, + "lbar", + 0x019a, + "lbelt", + 0x026c, + "lbopomofo", + 0x310c, + "lcaron", + 0x013e, + "lcedilla", + 0x013c, + "lcircle", + 0x24db, + "lcircumflexbelow", + 0x1e3d, + "lcommaaccent", + 0x013c, + "ldot", + 0x0140, + "ldotaccent", + 0x0140, + "ldotbelow", + 0x1e37, + "ldotbelowmacron", + 0x1e39, + "leftangleabovecmb", + 0x031a, + "lefttackbelowcmb", + 0x0318, + "less", + 0x003c, + "lessequal", + 0x2264, + "lessequalorgreater", + 0x22da, + "lessmonospace", + 0xff1c, + "lessorequivalent", + 0x2272, + "lessorgreater", + 0x2276, + "lessoverequal", + 0x2266, + "lesssmall", + 0xfe64, + "lezh", + 0x026e, + "lfblock", + 0x258c, + "lhookretroflex", + 0x026d, + "lira", + 0x20a4, + "liwnarmenian", + 0x056c, + "lj", + 0x01c9, + "ljecyrillic", + 0x0459, + "ll", + 0xf6c0, + "lladeva", + 0x0933, + "llagujarati", + 0x0ab3, + "llinebelow", + 0x1e3b, + "llladeva", + 0x0934, + "llvocalicbengali", + 0x09e1, + "llvocalicdeva", + 0x0961, + "llvocalicvowelsignbengali", + 0x09e3, + "llvocalicvowelsigndeva", + 0x0963, + "lmiddletilde", + 0x026b, + "lmonospace", + 0xff4c, + "lmsquare", + 0x33d0, + "lochulathai", + 0x0e2c, + "logicaland", + 0x2227, + "logicalnot", + 0x00ac, + "logicalnotreversed", + 0x2310, + "logicalor", + 0x2228, + "lolingthai", + 0x0e25, + "longs", + 0x017f, + "lowlinecenterline", + 0xfe4e, + "lowlinecmb", + 0x0332, + "lowlinedashed", + 0xfe4d, + "lozenge", + 0x25ca, + "lparen", + 0x24a7, + "lslash", + 0x0142, + "lsquare", + 0x2113, + "lsuperior", + 0xf6ee, + "ltshade", + 0x2591, + "luthai", + 0x0e26, + "lvocalicbengali", + 0x098c, + "lvocalicdeva", + 0x090c, + "lvocalicvowelsignbengali", + 0x09e2, + "lvocalicvowelsigndeva", + 0x0962, + "lxsquare", + 0x33d3, + "m", + 0x006d, + "mabengali", + 0x09ae, + "macron", + 0x00af, + "macronbelowcmb", + 0x0331, + "macroncmb", + 0x0304, + "macronlowmod", + 0x02cd, + "macronmonospace", + 0xffe3, + "macute", + 0x1e3f, + "madeva", + 0x092e, + "magujarati", + 0x0aae, + "magurmukhi", + 0x0a2e, + "mahapakhhebrew", + 0x05a4, + "mahapakhlefthebrew", + 0x05a4, + "mahiragana", + 0x307e, + "maichattawalowleftthai", + 0xf895, + "maichattawalowrightthai", + 0xf894, + "maichattawathai", + 0x0e4b, + "maichattawaupperleftthai", + 0xf893, + "maieklowleftthai", + 0xf88c, + "maieklowrightthai", + 0xf88b, + "maiekthai", + 0x0e48, + "maiekupperleftthai", + 0xf88a, + "maihanakatleftthai", + 0xf884, + "maihanakatthai", + 0x0e31, + "maitaikhuleftthai", + 0xf889, + "maitaikhuthai", + 0x0e47, + "maitholowleftthai", + 0xf88f, + "maitholowrightthai", + 0xf88e, + "maithothai", + 0x0e49, + "maithoupperleftthai", + 0xf88d, + "maitrilowleftthai", + 0xf892, + "maitrilowrightthai", + 0xf891, + "maitrithai", + 0x0e4a, + "maitriupperleftthai", + 0xf890, + "maiyamokthai", + 0x0e46, + "makatakana", + 0x30de, + "makatakanahalfwidth", + 0xff8f, + "male", + 0x2642, + "mansyonsquare", + 0x3347, + "maqafhebrew", + 0x05be, + "mars", + 0x2642, + "masoracirclehebrew", + 0x05af, + "masquare", + 0x3383, + "mbopomofo", + 0x3107, + "mbsquare", + 0x33d4, + "mcircle", + 0x24dc, + "mcubedsquare", + 0x33a5, + "mdotaccent", + 0x1e41, + "mdotbelow", + 0x1e43, + "meemarabic", + 0x0645, + "meemfinalarabic", + 0xfee2, + "meeminitialarabic", + 0xfee3, + "meemmedialarabic", + 0xfee4, + "meemmeeminitialarabic", + 0xfcd1, + "meemmeemisolatedarabic", + 0xfc48, + "meetorusquare", + 0x334d, + "mehiragana", + 0x3081, + "meizierasquare", + 0x337e, + "mekatakana", + 0x30e1, + "mekatakanahalfwidth", + 0xff92, + "mem", + 0x05de, + "memdagesh", + 0xfb3e, + "memdageshhebrew", + 0xfb3e, + "memhebrew", + 0x05de, + "menarmenian", + 0x0574, + "merkhahebrew", + 0x05a5, + "merkhakefulahebrew", + 0x05a6, + "merkhakefulalefthebrew", + 0x05a6, + "merkhalefthebrew", + 0x05a5, + "mhook", + 0x0271, + "mhzsquare", + 0x3392, + "middledotkatakanahalfwidth", + 0xff65, + "middot", + 0x00b7, + "mieumacirclekorean", + 0x3272, + "mieumaparenkorean", + 0x3212, + "mieumcirclekorean", + 0x3264, + "mieumkorean", + 0x3141, + "mieumpansioskorean", + 0x3170, + "mieumparenkorean", + 0x3204, + "mieumpieupkorean", + 0x316e, + "mieumsioskorean", + 0x316f, + "mihiragana", + 0x307f, + "mikatakana", + 0x30df, + "mikatakanahalfwidth", + 0xff90, + "minus", + 0x2212, + "minusbelowcmb", + 0x0320, + "minuscircle", + 0x2296, + "minusmod", + 0x02d7, + "minusplus", + 0x2213, + "minute", + 0x2032, + "miribaarusquare", + 0x334a, + "mirisquare", + 0x3349, + "mlonglegturned", + 0x0270, + "mlsquare", + 0x3396, + "mmcubedsquare", + 0x33a3, + "mmonospace", + 0xff4d, + "mmsquaredsquare", + 0x339f, + "mohiragana", + 0x3082, + "mohmsquare", + 0x33c1, + "mokatakana", + 0x30e2, + "mokatakanahalfwidth", + 0xff93, + "molsquare", + 0x33d6, + "momathai", + 0x0e21, + "moverssquare", + 0x33a7, + "moverssquaredsquare", + 0x33a8, + "mparen", + 0x24a8, + "mpasquare", + 0x33ab, + "mssquare", + 0x33b3, + "msuperior", + 0xf6ef, + "mturned", + 0x026f, + "mu", + 0x00b5, + "mu1", + 0x00b5, + "muasquare", + 0x3382, + "muchgreater", + 0x226b, + "muchless", + 0x226a, + "mufsquare", + 0x338c, + "mugreek", + 0x03bc, + "mugsquare", + 0x338d, + "muhiragana", + 0x3080, + "mukatakana", + 0x30e0, + "mukatakanahalfwidth", + 0xff91, + "mulsquare", + 0x3395, + "multiply", + 0x00d7, + "mumsquare", + 0x339b, + "munahhebrew", + 0x05a3, + "munahlefthebrew", + 0x05a3, + "musicalnote", + 0x266a, + "musicalnotedbl", + 0x266b, + "musicflatsign", + 0x266d, + "musicsharpsign", + 0x266f, + "mussquare", + 0x33b2, + "muvsquare", + 0x33b6, + "muwsquare", + 0x33bc, + "mvmegasquare", + 0x33b9, + "mvsquare", + 0x33b7, + "mwmegasquare", + 0x33bf, + "mwsquare", + 0x33bd, + "n", + 0x006e, + "nabengali", + 0x09a8, + "nabla", + 0x2207, + "nacute", + 0x0144, + "nadeva", + 0x0928, + "nagujarati", + 0x0aa8, + "nagurmukhi", + 0x0a28, + "nahiragana", + 0x306a, + "nakatakana", + 0x30ca, + "nakatakanahalfwidth", + 0xff85, + "napostrophe", + 0x0149, + "nasquare", + 0x3381, + "nbopomofo", + 0x310b, + "nbspace", + 0x00a0, + "ncaron", + 0x0148, + "ncedilla", + 0x0146, + "ncircle", + 0x24dd, + "ncircumflexbelow", + 0x1e4b, + "ncommaaccent", + 0x0146, + "ndotaccent", + 0x1e45, + "ndotbelow", + 0x1e47, + "nehiragana", + 0x306d, + "nekatakana", + 0x30cd, + "nekatakanahalfwidth", + 0xff88, + "newsheqelsign", + 0x20aa, + "nfsquare", + 0x338b, + "ngabengali", + 0x0999, + "ngadeva", + 0x0919, + "ngagujarati", + 0x0a99, + "ngagurmukhi", + 0x0a19, + "ngonguthai", + 0x0e07, + "nhiragana", + 0x3093, + "nhookleft", + 0x0272, + "nhookretroflex", + 0x0273, + "nieunacirclekorean", + 0x326f, + "nieunaparenkorean", + 0x320f, + "nieuncieuckorean", + 0x3135, + "nieuncirclekorean", + 0x3261, + "nieunhieuhkorean", + 0x3136, + "nieunkorean", + 0x3134, + "nieunpansioskorean", + 0x3168, + "nieunparenkorean", + 0x3201, + "nieunsioskorean", + 0x3167, + "nieuntikeutkorean", + 0x3166, + "nihiragana", + 0x306b, + "nikatakana", + 0x30cb, + "nikatakanahalfwidth", + 0xff86, + "nikhahitleftthai", + 0xf899, + "nikhahitthai", + 0x0e4d, + "nine", + 0x0039, + "ninearabic", + 0x0669, + "ninebengali", + 0x09ef, + "ninecircle", + 0x2468, + "ninecircleinversesansserif", + 0x2792, + "ninedeva", + 0x096f, + "ninegujarati", + 0x0aef, + "ninegurmukhi", + 0x0a6f, + "ninehackarabic", + 0x0669, + "ninehangzhou", + 0x3029, + "nineideographicparen", + 0x3228, + "nineinferior", + 0x2089, + "ninemonospace", + 0xff19, + "nineoldstyle", + 0xf739, + "nineparen", + 0x247c, + "nineperiod", + 0x2490, + "ninepersian", + 0x06f9, + "nineroman", + 0x2178, + "ninesuperior", + 0x2079, + "nineteencircle", + 0x2472, + "nineteenparen", + 0x2486, + "nineteenperiod", + 0x249a, + "ninethai", + 0x0e59, + "nj", + 0x01cc, + "njecyrillic", + 0x045a, + "nkatakana", + 0x30f3, + "nkatakanahalfwidth", + 0xff9d, + "nlegrightlong", + 0x019e, + "nlinebelow", + 0x1e49, + "nmonospace", + 0xff4e, + "nmsquare", + 0x339a, + "nnabengali", + 0x09a3, + "nnadeva", + 0x0923, + "nnagujarati", + 0x0aa3, + "nnagurmukhi", + 0x0a23, + "nnnadeva", + 0x0929, + "nohiragana", + 0x306e, + "nokatakana", + 0x30ce, + "nokatakanahalfwidth", + 0xff89, + "nonbreakingspace", + 0x00a0, + "nonenthai", + 0x0e13, + "nonuthai", + 0x0e19, + "noonarabic", + 0x0646, + "noonfinalarabic", + 0xfee6, + "noonghunnaarabic", + 0x06ba, + "noonghunnafinalarabic", + 0xfb9f, + "nooninitialarabic", + 0xfee7, + "noonjeeminitialarabic", + 0xfcd2, + "noonjeemisolatedarabic", + 0xfc4b, + "noonmedialarabic", + 0xfee8, + "noonmeeminitialarabic", + 0xfcd5, + "noonmeemisolatedarabic", + 0xfc4e, + "noonnoonfinalarabic", + 0xfc8d, + "notcontains", + 0x220c, + "notelement", + 0x2209, + "notelementof", + 0x2209, + "notequal", + 0x2260, + "notgreater", + 0x226f, + "notgreaternorequal", + 0x2271, + "notgreaternorless", + 0x2279, + "notidentical", + 0x2262, + "notless", + 0x226e, + "notlessnorequal", + 0x2270, + "notparallel", + 0x2226, + "notprecedes", + 0x2280, + "notsubset", + 0x2284, + "notsucceeds", + 0x2281, + "notsuperset", + 0x2285, + "nowarmenian", + 0x0576, + "nparen", + 0x24a9, + "nssquare", + 0x33b1, + "nsuperior", + 0x207f, + "ntilde", + 0x00f1, + "nu", + 0x03bd, + "nuhiragana", + 0x306c, + "nukatakana", + 0x30cc, + "nukatakanahalfwidth", + 0xff87, + "nuktabengali", + 0x09bc, + "nuktadeva", + 0x093c, + "nuktagujarati", + 0x0abc, + "nuktagurmukhi", + 0x0a3c, + "numbersign", + 0x0023, + "numbersignmonospace", + 0xff03, + "numbersignsmall", + 0xfe5f, + "numeralsigngreek", + 0x0374, + "numeralsignlowergreek", + 0x0375, + "numero", + 0x2116, + "nun", + 0x05e0, + "nundagesh", + 0xfb40, + "nundageshhebrew", + 0xfb40, + "nunhebrew", + 0x05e0, + "nvsquare", + 0x33b5, + "nwsquare", + 0x33bb, + "nyabengali", + 0x099e, + "nyadeva", + 0x091e, + "nyagujarati", + 0x0a9e, + "nyagurmukhi", + 0x0a1e, + "o", + 0x006f, + "oacute", + 0x00f3, + "oangthai", + 0x0e2d, + "obarred", + 0x0275, + "obarredcyrillic", + 0x04e9, + "obarreddieresiscyrillic", + 0x04eb, + "obengali", + 0x0993, + "obopomofo", + 0x311b, + "obreve", + 0x014f, + "ocandradeva", + 0x0911, + "ocandragujarati", + 0x0a91, + "ocandravowelsigndeva", + 0x0949, + "ocandravowelsigngujarati", + 0x0ac9, + "ocaron", + 0x01d2, + "ocircle", + 0x24de, + "ocircumflex", + 0x00f4, + "ocircumflexacute", + 0x1ed1, + "ocircumflexdotbelow", + 0x1ed9, + "ocircumflexgrave", + 0x1ed3, + "ocircumflexhookabove", + 0x1ed5, + "ocircumflextilde", + 0x1ed7, + "ocyrillic", + 0x043e, + "odblacute", + 0x0151, + "odblgrave", + 0x020d, + "odeva", + 0x0913, + "odieresis", + 0x00f6, + "odieresiscyrillic", + 0x04e7, + "odotbelow", + 0x1ecd, + "oe", + 0x0153, + "oekorean", + 0x315a, + "ogonek", + 0x02db, + "ogonekcmb", + 0x0328, + "ograve", + 0x00f2, + "ogujarati", + 0x0a93, + "oharmenian", + 0x0585, + "ohiragana", + 0x304a, + "ohookabove", + 0x1ecf, + "ohorn", + 0x01a1, + "ohornacute", + 0x1edb, + "ohorndotbelow", + 0x1ee3, + "ohorngrave", + 0x1edd, + "ohornhookabove", + 0x1edf, + "ohorntilde", + 0x1ee1, + "ohungarumlaut", + 0x0151, + "oi", + 0x01a3, + "oinvertedbreve", + 0x020f, + "okatakana", + 0x30aa, + "okatakanahalfwidth", + 0xff75, + "okorean", + 0x3157, + "olehebrew", + 0x05ab, + "omacron", + 0x014d, + "omacronacute", + 0x1e53, + "omacrongrave", + 0x1e51, + "omdeva", + 0x0950, + "omega", + 0x03c9, + "omega1", + 0x03d6, + "omegacyrillic", + 0x0461, + "omegalatinclosed", + 0x0277, + "omegaroundcyrillic", + 0x047b, + "omegatitlocyrillic", + 0x047d, + "omegatonos", + 0x03ce, + "omgujarati", + 0x0ad0, + "omicron", + 0x03bf, + "omicrontonos", + 0x03cc, + "omonospace", + 0xff4f, + "one", + 0x0031, + "onearabic", + 0x0661, + "onebengali", + 0x09e7, + "onecircle", + 0x2460, + "onecircleinversesansserif", + 0x278a, + "onedeva", + 0x0967, + "onedotenleader", + 0x2024, + "oneeighth", + 0x215b, + "onefitted", + 0xf6dc, + "onegujarati", + 0x0ae7, + "onegurmukhi", + 0x0a67, + "onehackarabic", + 0x0661, + "onehalf", + 0x00bd, + "onehangzhou", + 0x3021, + "oneideographicparen", + 0x3220, + "oneinferior", + 0x2081, + "onemonospace", + 0xff11, + "onenumeratorbengali", + 0x09f4, + "oneoldstyle", + 0xf731, + "oneparen", + 0x2474, + "oneperiod", + 0x2488, + "onepersian", + 0x06f1, + "onequarter", + 0x00bc, + "oneroman", + 0x2170, + "onesuperior", + 0x00b9, + "onethai", + 0x0e51, + "onethird", + 0x2153, + "oogonek", + 0x01eb, + "oogonekmacron", + 0x01ed, + "oogurmukhi", + 0x0a13, + "oomatragurmukhi", + 0x0a4b, + "oopen", + 0x0254, + "oparen", + 0x24aa, + "openbullet", + 0x25e6, + "option", + 0x2325, + "ordfeminine", + 0x00aa, + "ordmasculine", + 0x00ba, + "orthogonal", + 0x221f, + "oshortdeva", + 0x0912, + "oshortvowelsigndeva", + 0x094a, + "oslash", + 0x00f8, + "oslashacute", + 0x01ff, + "osmallhiragana", + 0x3049, + "osmallkatakana", + 0x30a9, + "osmallkatakanahalfwidth", + 0xff6b, + "ostrokeacute", + 0x01ff, + "osuperior", + 0xf6f0, + "otcyrillic", + 0x047f, + "otilde", + 0x00f5, + "otildeacute", + 0x1e4d, + "otildedieresis", + 0x1e4f, + "oubopomofo", + 0x3121, + "overline", + 0x203e, + "overlinecenterline", + 0xfe4a, + "overlinecmb", + 0x0305, + "overlinedashed", + 0xfe49, + "overlinedblwavy", + 0xfe4c, + "overlinewavy", + 0xfe4b, + "overscore", + 0x00af, + "ovowelsignbengali", + 0x09cb, + "ovowelsigndeva", + 0x094b, + "ovowelsigngujarati", + 0x0acb, + "p", + 0x0070, + "paampssquare", + 0x3380, + "paasentosquare", + 0x332b, + "pabengali", + 0x09aa, + "pacute", + 0x1e55, + "padeva", + 0x092a, + "pagedown", + 0x21df, + "pageup", + 0x21de, + "pagujarati", + 0x0aaa, + "pagurmukhi", + 0x0a2a, + "pahiragana", + 0x3071, + "paiyannoithai", + 0x0e2f, + "pakatakana", + 0x30d1, + "palatalizationcyrilliccmb", + 0x0484, + "palochkacyrillic", + 0x04c0, + "pansioskorean", + 0x317f, + "paragraph", + 0x00b6, + "parallel", + 0x2225, + "parenleft", + 0x0028, + "parenleftaltonearabic", + 0xfd3e, + "parenleftbt", + 0xf8ed, + "parenleftex", + 0xf8ec, + "parenleftinferior", + 0x208d, + "parenleftmonospace", + 0xff08, + "parenleftsmall", + 0xfe59, + "parenleftsuperior", + 0x207d, + "parenlefttp", + 0xf8eb, + "parenleftvertical", + 0xfe35, + "parenright", + 0x0029, + "parenrightaltonearabic", + 0xfd3f, + "parenrightbt", + 0xf8f8, + "parenrightex", + 0xf8f7, + "parenrightinferior", + 0x208e, + "parenrightmonospace", + 0xff09, + "parenrightsmall", + 0xfe5a, + "parenrightsuperior", + 0x207e, + "parenrighttp", + 0xf8f6, + "parenrightvertical", + 0xfe36, + "partialdiff", + 0x2202, + "paseqhebrew", + 0x05c0, + "pashtahebrew", + 0x0599, + "pasquare", + 0x33a9, + "patah", + 0x05b7, + "patah11", + 0x05b7, + "patah1d", + 0x05b7, + "patah2a", + 0x05b7, + "patahhebrew", + 0x05b7, + "patahnarrowhebrew", + 0x05b7, + "patahquarterhebrew", + 0x05b7, + "patahwidehebrew", + 0x05b7, + "pazerhebrew", + 0x05a1, + "pbopomofo", + 0x3106, + "pcircle", + 0x24df, + "pdotaccent", + 0x1e57, + "pe", + 0x05e4, + "pecyrillic", + 0x043f, + "pedagesh", + 0xfb44, + "pedageshhebrew", + 0xfb44, + "peezisquare", + 0x333b, + "pefinaldageshhebrew", + 0xfb43, + "peharabic", + 0x067e, + "peharmenian", + 0x057a, + "pehebrew", + 0x05e4, + "pehfinalarabic", + 0xfb57, + "pehinitialarabic", + 0xfb58, + "pehiragana", + 0x307a, + "pehmedialarabic", + 0xfb59, + "pekatakana", + 0x30da, + "pemiddlehookcyrillic", + 0x04a7, + "perafehebrew", + 0xfb4e, + "percent", + 0x0025, + "percentarabic", + 0x066a, + "percentmonospace", + 0xff05, + "percentsmall", + 0xfe6a, + "period", + 0x002e, + "periodarmenian", + 0x0589, + "periodcentered", + 0x00b7, + "periodhalfwidth", + 0xff61, + "periodinferior", + 0xf6e7, + "periodmonospace", + 0xff0e, + "periodsmall", + 0xfe52, + "periodsuperior", + 0xf6e8, + "perispomenigreekcmb", + 0x0342, + "perpendicular", + 0x22a5, + "perthousand", + 0x2030, + "peseta", + 0x20a7, + "pfsquare", + 0x338a, + "phabengali", + 0x09ab, + "phadeva", + 0x092b, + "phagujarati", + 0x0aab, + "phagurmukhi", + 0x0a2b, + "phi", + 0x03c6, + "phi1", + 0x03d5, + "phieuphacirclekorean", + 0x327a, + "phieuphaparenkorean", + 0x321a, + "phieuphcirclekorean", + 0x326c, + "phieuphkorean", + 0x314d, + "phieuphparenkorean", + 0x320c, + "philatin", + 0x0278, + "phinthuthai", + 0x0e3a, + "phisymbolgreek", + 0x03d5, + "phook", + 0x01a5, + "phophanthai", + 0x0e1e, + "phophungthai", + 0x0e1c, + "phosamphaothai", + 0x0e20, + "pi", + 0x03c0, + "pieupacirclekorean", + 0x3273, + "pieupaparenkorean", + 0x3213, + "pieupcieuckorean", + 0x3176, + "pieupcirclekorean", + 0x3265, + "pieupkiyeokkorean", + 0x3172, + "pieupkorean", + 0x3142, + "pieupparenkorean", + 0x3205, + "pieupsioskiyeokkorean", + 0x3174, + "pieupsioskorean", + 0x3144, + "pieupsiostikeutkorean", + 0x3175, + "pieupthieuthkorean", + 0x3177, + "pieuptikeutkorean", + 0x3173, + "pihiragana", + 0x3074, + "pikatakana", + 0x30d4, + "pisymbolgreek", + 0x03d6, + "piwrarmenian", + 0x0583, + "plus", + 0x002b, + "plusbelowcmb", + 0x031f, + "pluscircle", + 0x2295, + "plusminus", + 0x00b1, + "plusmod", + 0x02d6, + "plusmonospace", + 0xff0b, + "plussmall", + 0xfe62, + "plussuperior", + 0x207a, + "pmonospace", + 0xff50, + "pmsquare", + 0x33d8, + "pohiragana", + 0x307d, + "pointingindexdownwhite", + 0x261f, + "pointingindexleftwhite", + 0x261c, + "pointingindexrightwhite", + 0x261e, + "pointingindexupwhite", + 0x261d, + "pokatakana", + 0x30dd, + "poplathai", + 0x0e1b, + "postalmark", + 0x3012, + "postalmarkface", + 0x3020, + "pparen", + 0x24ab, + "precedes", + 0x227a, + "prescription", + 0x211e, + "primemod", + 0x02b9, + "primereversed", + 0x2035, + "product", + 0x220f, + "projective", + 0x2305, + "prolongedkana", + 0x30fc, + "propellor", + 0x2318, + "propersubset", + 0x2282, + "propersuperset", + 0x2283, + "proportion", + 0x2237, + "proportional", + 0x221d, + "psi", + 0x03c8, + "psicyrillic", + 0x0471, + "psilipneumatacyrilliccmb", + 0x0486, + "pssquare", + 0x33b0, + "puhiragana", + 0x3077, + "pukatakana", + 0x30d7, + "pvsquare", + 0x33b4, + "pwsquare", + 0x33ba, + "q", + 0x0071, + "qadeva", + 0x0958, + "qadmahebrew", + 0x05a8, + "qafarabic", + 0x0642, + "qaffinalarabic", + 0xfed6, + "qafinitialarabic", + 0xfed7, + "qafmedialarabic", + 0xfed8, + "qamats", + 0x05b8, + "qamats10", + 0x05b8, + "qamats1a", + 0x05b8, + "qamats1c", + 0x05b8, + "qamats27", + 0x05b8, + "qamats29", + 0x05b8, + "qamats33", + 0x05b8, + "qamatsde", + 0x05b8, + "qamatshebrew", + 0x05b8, + "qamatsnarrowhebrew", + 0x05b8, + "qamatsqatanhebrew", + 0x05b8, + "qamatsqatannarrowhebrew", + 0x05b8, + "qamatsqatanquarterhebrew", + 0x05b8, + "qamatsqatanwidehebrew", + 0x05b8, + "qamatsquarterhebrew", + 0x05b8, + "qamatswidehebrew", + 0x05b8, + "qarneyparahebrew", + 0x059f, + "qbopomofo", + 0x3111, + "qcircle", + 0x24e0, + "qhook", + 0x02a0, + "qmonospace", + 0xff51, + "qof", + 0x05e7, + "qofdagesh", + 0xfb47, + "qofdageshhebrew", + 0xfb47, + "qofhebrew", + 0x05e7, + "qparen", + 0x24ac, + "quarternote", + 0x2669, + "qubuts", + 0x05bb, + "qubuts18", + 0x05bb, + "qubuts25", + 0x05bb, + "qubuts31", + 0x05bb, + "qubutshebrew", + 0x05bb, + "qubutsnarrowhebrew", + 0x05bb, + "qubutsquarterhebrew", + 0x05bb, + "qubutswidehebrew", + 0x05bb, + "question", + 0x003f, + "questionarabic", + 0x061f, + "questionarmenian", + 0x055e, + "questiondown", + 0x00bf, + "questiondownsmall", + 0xf7bf, + "questiongreek", + 0x037e, + "questionmonospace", + 0xff1f, + "questionsmall", + 0xf73f, + "quotedbl", + 0x0022, + "quotedblbase", + 0x201e, + "quotedblleft", + 0x201c, + "quotedblmonospace", + 0xff02, + "quotedblprime", + 0x301e, + "quotedblprimereversed", + 0x301d, + "quotedblright", + 0x201d, + "quoteleft", + 0x2018, + "quoteleftreversed", + 0x201b, + "quotereversed", + 0x201b, + "quoteright", + 0x2019, + "quoterightn", + 0x0149, + "quotesinglbase", + 0x201a, + "quotesingle", + 0x0027, + "quotesinglemonospace", + 0xff07, + "r", + 0x0072, + "raarmenian", + 0x057c, + "rabengali", + 0x09b0, + "racute", + 0x0155, + "radeva", + 0x0930, + "radical", + 0x221a, + "radicalex", + 0xf8e5, + "radoverssquare", + 0x33ae, + "radoverssquaredsquare", + 0x33af, + "radsquare", + 0x33ad, + "rafe", + 0x05bf, + "rafehebrew", + 0x05bf, + "ragujarati", + 0x0ab0, + "ragurmukhi", + 0x0a30, + "rahiragana", + 0x3089, + "rakatakana", + 0x30e9, + "rakatakanahalfwidth", + 0xff97, + "ralowerdiagonalbengali", + 0x09f1, + "ramiddlediagonalbengali", + 0x09f0, + "ramshorn", + 0x0264, + "ratio", + 0x2236, + "rbopomofo", + 0x3116, + "rcaron", + 0x0159, + "rcedilla", + 0x0157, + "rcircle", + 0x24e1, + "rcommaaccent", + 0x0157, + "rdblgrave", + 0x0211, + "rdotaccent", + 0x1e59, + "rdotbelow", + 0x1e5b, + "rdotbelowmacron", + 0x1e5d, + "referencemark", + 0x203b, + "reflexsubset", + 0x2286, + "reflexsuperset", + 0x2287, + "registered", + 0x00ae, + "registersans", + 0xf8e8, + "registerserif", + 0xf6da, + "reharabic", + 0x0631, + "reharmenian", + 0x0580, + "rehfinalarabic", + 0xfeae, + "rehiragana", + 0x308c, + "rekatakana", + 0x30ec, + "rekatakanahalfwidth", + 0xff9a, + "resh", + 0x05e8, + "reshdageshhebrew", + 0xfb48, + "reshhebrew", + 0x05e8, + "reversedtilde", + 0x223d, + "reviahebrew", + 0x0597, + "reviamugrashhebrew", + 0x0597, + "revlogicalnot", + 0x2310, + "rfishhook", + 0x027e, + "rfishhookreversed", + 0x027f, + "rhabengali", + 0x09dd, + "rhadeva", + 0x095d, + "rho", + 0x03c1, + "rhook", + 0x027d, + "rhookturned", + 0x027b, + "rhookturnedsuperior", + 0x02b5, + "rhosymbolgreek", + 0x03f1, + "rhotichookmod", + 0x02de, + "rieulacirclekorean", + 0x3271, + "rieulaparenkorean", + 0x3211, + "rieulcirclekorean", + 0x3263, + "rieulhieuhkorean", + 0x3140, + "rieulkiyeokkorean", + 0x313a, + "rieulkiyeoksioskorean", + 0x3169, + "rieulkorean", + 0x3139, + "rieulmieumkorean", + 0x313b, + "rieulpansioskorean", + 0x316c, + "rieulparenkorean", + 0x3203, + "rieulphieuphkorean", + 0x313f, + "rieulpieupkorean", + 0x313c, + "rieulpieupsioskorean", + 0x316b, + "rieulsioskorean", + 0x313d, + "rieulthieuthkorean", + 0x313e, + "rieultikeutkorean", + 0x316a, + "rieulyeorinhieuhkorean", + 0x316d, + "rightangle", + 0x221f, + "righttackbelowcmb", + 0x0319, + "righttriangle", + 0x22bf, + "rihiragana", + 0x308a, + "rikatakana", + 0x30ea, + "rikatakanahalfwidth", + 0xff98, + "ring", + 0x02da, + "ringbelowcmb", + 0x0325, + "ringcmb", + 0x030a, + "ringhalfleft", + 0x02bf, + "ringhalfleftarmenian", + 0x0559, + "ringhalfleftbelowcmb", + 0x031c, + "ringhalfleftcentered", + 0x02d3, + "ringhalfright", + 0x02be, + "ringhalfrightbelowcmb", + 0x0339, + "ringhalfrightcentered", + 0x02d2, + "rinvertedbreve", + 0x0213, + "rittorusquare", + 0x3351, + "rlinebelow", + 0x1e5f, + "rlongleg", + 0x027c, + "rlonglegturned", + 0x027a, + "rmonospace", + 0xff52, + "rohiragana", + 0x308d, + "rokatakana", + 0x30ed, + "rokatakanahalfwidth", + 0xff9b, + "roruathai", + 0x0e23, + "rparen", + 0x24ad, + "rrabengali", + 0x09dc, + "rradeva", + 0x0931, + "rragurmukhi", + 0x0a5c, + "rreharabic", + 0x0691, + "rrehfinalarabic", + 0xfb8d, + "rrvocalicbengali", + 0x09e0, + "rrvocalicdeva", + 0x0960, + "rrvocalicgujarati", + 0x0ae0, + "rrvocalicvowelsignbengali", + 0x09c4, + "rrvocalicvowelsigndeva", + 0x0944, + "rrvocalicvowelsigngujarati", + 0x0ac4, + "rsuperior", + 0xf6f1, + "rtblock", + 0x2590, + "rturned", + 0x0279, + "rturnedsuperior", + 0x02b4, + "ruhiragana", + 0x308b, + "rukatakana", + 0x30eb, + "rukatakanahalfwidth", + 0xff99, + "rupeemarkbengali", + 0x09f2, + "rupeesignbengali", + 0x09f3, + "rupiah", + 0xf6dd, + "ruthai", + 0x0e24, + "rvocalicbengali", + 0x098b, + "rvocalicdeva", + 0x090b, + "rvocalicgujarati", + 0x0a8b, + "rvocalicvowelsignbengali", + 0x09c3, + "rvocalicvowelsigndeva", + 0x0943, + "rvocalicvowelsigngujarati", + 0x0ac3, + "s", + 0x0073, + "sabengali", + 0x09b8, + "sacute", + 0x015b, + "sacutedotaccent", + 0x1e65, + "sadarabic", + 0x0635, + "sadeva", + 0x0938, + "sadfinalarabic", + 0xfeba, + "sadinitialarabic", + 0xfebb, + "sadmedialarabic", + 0xfebc, + "sagujarati", + 0x0ab8, + "sagurmukhi", + 0x0a38, + "sahiragana", + 0x3055, + "sakatakana", + 0x30b5, + "sakatakanahalfwidth", + 0xff7b, + "sallallahoualayhewasallamarabic", + 0xfdfa, + "samekh", + 0x05e1, + "samekhdagesh", + 0xfb41, + "samekhdageshhebrew", + 0xfb41, + "samekhhebrew", + 0x05e1, + "saraaathai", + 0x0e32, + "saraaethai", + 0x0e41, + "saraaimaimalaithai", + 0x0e44, + "saraaimaimuanthai", + 0x0e43, + "saraamthai", + 0x0e33, + "saraathai", + 0x0e30, + "saraethai", + 0x0e40, + "saraiileftthai", + 0xf886, + "saraiithai", + 0x0e35, + "saraileftthai", + 0xf885, + "saraithai", + 0x0e34, + "saraothai", + 0x0e42, + "saraueeleftthai", + 0xf888, + "saraueethai", + 0x0e37, + "saraueleftthai", + 0xf887, + "sarauethai", + 0x0e36, + "sarauthai", + 0x0e38, + "sarauuthai", + 0x0e39, + "sbopomofo", + 0x3119, + "scaron", + 0x0161, + "scarondotaccent", + 0x1e67, + "scedilla", + 0x015f, + "schwa", + 0x0259, + "schwacyrillic", + 0x04d9, + "schwadieresiscyrillic", + 0x04db, + "schwahook", + 0x025a, + "scircle", + 0x24e2, + "scircumflex", + 0x015d, + "scommaaccent", + 0x0219, + "sdotaccent", + 0x1e61, + "sdotbelow", + 0x1e63, + "sdotbelowdotaccent", + 0x1e69, + "seagullbelowcmb", + 0x033c, + "second", + 0x2033, + "secondtonechinese", + 0x02ca, + "section", + 0x00a7, + "seenarabic", + 0x0633, + "seenfinalarabic", + 0xfeb2, + "seeninitialarabic", + 0xfeb3, + "seenmedialarabic", + 0xfeb4, + "segol", + 0x05b6, + "segol13", + 0x05b6, + "segol1f", + 0x05b6, + "segol2c", + 0x05b6, + "segolhebrew", + 0x05b6, + "segolnarrowhebrew", + 0x05b6, + "segolquarterhebrew", + 0x05b6, + "segoltahebrew", + 0x0592, + "segolwidehebrew", + 0x05b6, + "seharmenian", + 0x057d, + "sehiragana", + 0x305b, + "sekatakana", + 0x30bb, + "sekatakanahalfwidth", + 0xff7e, + "semicolon", + 0x003b, + "semicolonarabic", + 0x061b, + "semicolonmonospace", + 0xff1b, + "semicolonsmall", + 0xfe54, + "semivoicedmarkkana", + 0x309c, + "semivoicedmarkkanahalfwidth", + 0xff9f, + "sentisquare", + 0x3322, + "sentosquare", + 0x3323, + "seven", + 0x0037, + "sevenarabic", + 0x0667, + "sevenbengali", + 0x09ed, + "sevencircle", + 0x2466, + "sevencircleinversesansserif", + 0x2790, + "sevendeva", + 0x096d, + "seveneighths", + 0x215e, + "sevengujarati", + 0x0aed, + "sevengurmukhi", + 0x0a6d, + "sevenhackarabic", + 0x0667, + "sevenhangzhou", + 0x3027, + "sevenideographicparen", + 0x3226, + "seveninferior", + 0x2087, + "sevenmonospace", + 0xff17, + "sevenoldstyle", + 0xf737, + "sevenparen", + 0x247a, + "sevenperiod", + 0x248e, + "sevenpersian", + 0x06f7, + "sevenroman", + 0x2176, + "sevensuperior", + 0x2077, + "seventeencircle", + 0x2470, + "seventeenparen", + 0x2484, + "seventeenperiod", + 0x2498, + "seventhai", + 0x0e57, + "sfthyphen", + 0x00ad, + "shaarmenian", + 0x0577, + "shabengali", + 0x09b6, + "shacyrillic", + 0x0448, + "shaddaarabic", + 0x0651, + "shaddadammaarabic", + 0xfc61, + "shaddadammatanarabic", + 0xfc5e, + "shaddafathaarabic", + 0xfc60, + "shaddakasraarabic", + 0xfc62, + "shaddakasratanarabic", + 0xfc5f, + "shade", + 0x2592, + "shadedark", + 0x2593, + "shadelight", + 0x2591, + "shademedium", + 0x2592, + "shadeva", + 0x0936, + "shagujarati", + 0x0ab6, + "shagurmukhi", + 0x0a36, + "shalshelethebrew", + 0x0593, + "shbopomofo", + 0x3115, + "shchacyrillic", + 0x0449, + "sheenarabic", + 0x0634, + "sheenfinalarabic", + 0xfeb6, + "sheeninitialarabic", + 0xfeb7, + "sheenmedialarabic", + 0xfeb8, + "sheicoptic", + 0x03e3, + "sheqel", + 0x20aa, + "sheqelhebrew", + 0x20aa, + "sheva", + 0x05b0, + "sheva115", + 0x05b0, + "sheva15", + 0x05b0, + "sheva22", + 0x05b0, + "sheva2e", + 0x05b0, + "shevahebrew", + 0x05b0, + "shevanarrowhebrew", + 0x05b0, + "shevaquarterhebrew", + 0x05b0, + "shevawidehebrew", + 0x05b0, + "shhacyrillic", + 0x04bb, + "shimacoptic", + 0x03ed, + "shin", + 0x05e9, + "shindagesh", + 0xfb49, + "shindageshhebrew", + 0xfb49, + "shindageshshindot", + 0xfb2c, + "shindageshshindothebrew", + 0xfb2c, + "shindageshsindot", + 0xfb2d, + "shindageshsindothebrew", + 0xfb2d, + "shindothebrew", + 0x05c1, + "shinhebrew", + 0x05e9, + "shinshindot", + 0xfb2a, + "shinshindothebrew", + 0xfb2a, + "shinsindot", + 0xfb2b, + "shinsindothebrew", + 0xfb2b, + "shook", + 0x0282, + "sigma", + 0x03c3, + "sigma1", + 0x03c2, + "sigmafinal", + 0x03c2, + "sigmalunatesymbolgreek", + 0x03f2, + "sihiragana", + 0x3057, + "sikatakana", + 0x30b7, + "sikatakanahalfwidth", + 0xff7c, + "siluqhebrew", + 0x05bd, + "siluqlefthebrew", + 0x05bd, + "similar", + 0x223c, + "sindothebrew", + 0x05c2, + "siosacirclekorean", + 0x3274, + "siosaparenkorean", + 0x3214, + "sioscieuckorean", + 0x317e, + "sioscirclekorean", + 0x3266, + "sioskiyeokkorean", + 0x317a, + "sioskorean", + 0x3145, + "siosnieunkorean", + 0x317b, + "siosparenkorean", + 0x3206, + "siospieupkorean", + 0x317d, + "siostikeutkorean", + 0x317c, + "six", + 0x0036, + "sixarabic", + 0x0666, + "sixbengali", + 0x09ec, + "sixcircle", + 0x2465, + "sixcircleinversesansserif", + 0x278f, + "sixdeva", + 0x096c, + "sixgujarati", + 0x0aec, + "sixgurmukhi", + 0x0a6c, + "sixhackarabic", + 0x0666, + "sixhangzhou", + 0x3026, + "sixideographicparen", + 0x3225, + "sixinferior", + 0x2086, + "sixmonospace", + 0xff16, + "sixoldstyle", + 0xf736, + "sixparen", + 0x2479, + "sixperiod", + 0x248d, + "sixpersian", + 0x06f6, + "sixroman", + 0x2175, + "sixsuperior", + 0x2076, + "sixteencircle", + 0x246f, + "sixteencurrencydenominatorbengali", + 0x09f9, + "sixteenparen", + 0x2483, + "sixteenperiod", + 0x2497, + "sixthai", + 0x0e56, + "slash", + 0x002f, + "slashmonospace", + 0xff0f, + "slong", + 0x017f, + "slongdotaccent", + 0x1e9b, + "smileface", + 0x263a, + "smonospace", + 0xff53, + "sofpasuqhebrew", + 0x05c3, + "softhyphen", + 0x00ad, + "softsigncyrillic", + 0x044c, + "sohiragana", + 0x305d, + "sokatakana", + 0x30bd, + "sokatakanahalfwidth", + 0xff7f, + "soliduslongoverlaycmb", + 0x0338, + "solidusshortoverlaycmb", + 0x0337, + "sorusithai", + 0x0e29, + "sosalathai", + 0x0e28, + "sosothai", + 0x0e0b, + "sosuathai", + 0x0e2a, + "space", + 0x0020, + "spacehackarabic", + 0x0020, + "spade", + 0x2660, + "spadesuitblack", + 0x2660, + "spadesuitwhite", + 0x2664, + "sparen", + 0x24ae, + "squarebelowcmb", + 0x033b, + "squarecc", + 0x33c4, + "squarecm", + 0x339d, + "squarediagonalcrosshatchfill", + 0x25a9, + "squarehorizontalfill", + 0x25a4, + "squarekg", + 0x338f, + "squarekm", + 0x339e, + "squarekmcapital", + 0x33ce, + "squareln", + 0x33d1, + "squarelog", + 0x33d2, + "squaremg", + 0x338e, + "squaremil", + 0x33d5, + "squaremm", + 0x339c, + "squaremsquared", + 0x33a1, + "squareorthogonalcrosshatchfill", + 0x25a6, + "squareupperlefttolowerrightfill", + 0x25a7, + "squareupperrighttolowerleftfill", + 0x25a8, + "squareverticalfill", + 0x25a5, + "squarewhitewithsmallblack", + 0x25a3, + "srsquare", + 0x33db, + "ssabengali", + 0x09b7, + "ssadeva", + 0x0937, + "ssagujarati", + 0x0ab7, + "ssangcieuckorean", + 0x3149, + "ssanghieuhkorean", + 0x3185, + "ssangieungkorean", + 0x3180, + "ssangkiyeokkorean", + 0x3132, + "ssangnieunkorean", + 0x3165, + "ssangpieupkorean", + 0x3143, + "ssangsioskorean", + 0x3146, + "ssangtikeutkorean", + 0x3138, + "ssuperior", + 0xf6f2, + "sterling", + 0x00a3, + "sterlingmonospace", + 0xffe1, + "strokelongoverlaycmb", + 0x0336, + "strokeshortoverlaycmb", + 0x0335, + "subset", + 0x2282, + "subsetnotequal", + 0x228a, + "subsetorequal", + 0x2286, + "succeeds", + 0x227b, + "suchthat", + 0x220b, + "suhiragana", + 0x3059, + "sukatakana", + 0x30b9, + "sukatakanahalfwidth", + 0xff7d, + "sukunarabic", + 0x0652, + "summation", + 0x2211, + "sun", + 0x263c, + "superset", + 0x2283, + "supersetnotequal", + 0x228b, + "supersetorequal", + 0x2287, + "svsquare", + 0x33dc, + "syouwaerasquare", + 0x337c, + "t", + 0x0074, + "tabengali", + 0x09a4, + "tackdown", + 0x22a4, + "tackleft", + 0x22a3, + "tadeva", + 0x0924, + "tagujarati", + 0x0aa4, + "tagurmukhi", + 0x0a24, + "taharabic", + 0x0637, + "tahfinalarabic", + 0xfec2, + "tahinitialarabic", + 0xfec3, + "tahiragana", + 0x305f, + "tahmedialarabic", + 0xfec4, + "taisyouerasquare", + 0x337d, + "takatakana", + 0x30bf, + "takatakanahalfwidth", + 0xff80, + "tatweelarabic", + 0x0640, + "tau", + 0x03c4, + "tav", + 0x05ea, + "tavdages", + 0xfb4a, + "tavdagesh", + 0xfb4a, + "tavdageshhebrew", + 0xfb4a, + "tavhebrew", + 0x05ea, + "tbar", + 0x0167, + "tbopomofo", + 0x310a, + "tcaron", + 0x0165, + "tccurl", + 0x02a8, + "tcedilla", + 0x0163, + "tcheharabic", + 0x0686, + "tchehfinalarabic", + 0xfb7b, + "tchehinitialarabic", + 0xfb7c, + "tchehmedialarabic", + 0xfb7d, + "tcircle", + 0x24e3, + "tcircumflexbelow", + 0x1e71, + "tcommaaccent", + 0x0163, + "tdieresis", + 0x1e97, + "tdotaccent", + 0x1e6b, + "tdotbelow", + 0x1e6d, + "tecyrillic", + 0x0442, + "tedescendercyrillic", + 0x04ad, + "teharabic", + 0x062a, + "tehfinalarabic", + 0xfe96, + "tehhahinitialarabic", + 0xfca2, + "tehhahisolatedarabic", + 0xfc0c, + "tehinitialarabic", + 0xfe97, + "tehiragana", + 0x3066, + "tehjeeminitialarabic", + 0xfca1, + "tehjeemisolatedarabic", + 0xfc0b, + "tehmarbutaarabic", + 0x0629, + "tehmarbutafinalarabic", + 0xfe94, + "tehmedialarabic", + 0xfe98, + "tehmeeminitialarabic", + 0xfca4, + "tehmeemisolatedarabic", + 0xfc0e, + "tehnoonfinalarabic", + 0xfc73, + "tekatakana", + 0x30c6, + "tekatakanahalfwidth", + 0xff83, + "telephone", + 0x2121, + "telephoneblack", + 0x260e, + "telishagedolahebrew", + 0x05a0, + "telishaqetanahebrew", + 0x05a9, + "tencircle", + 0x2469, + "tenideographicparen", + 0x3229, + "tenparen", + 0x247d, + "tenperiod", + 0x2491, + "tenroman", + 0x2179, + "tesh", + 0x02a7, + "tet", + 0x05d8, + "tetdagesh", + 0xfb38, + "tetdageshhebrew", + 0xfb38, + "tethebrew", + 0x05d8, + "tetsecyrillic", + 0x04b5, + "tevirhebrew", + 0x059b, + "tevirlefthebrew", + 0x059b, + "thabengali", + 0x09a5, + "thadeva", + 0x0925, + "thagujarati", + 0x0aa5, + "thagurmukhi", + 0x0a25, + "thalarabic", + 0x0630, + "thalfinalarabic", + 0xfeac, + "thanthakhatlowleftthai", + 0xf898, + "thanthakhatlowrightthai", + 0xf897, + "thanthakhatthai", + 0x0e4c, + "thanthakhatupperleftthai", + 0xf896, + "theharabic", + 0x062b, + "thehfinalarabic", + 0xfe9a, + "thehinitialarabic", + 0xfe9b, + "thehmedialarabic", + 0xfe9c, + "thereexists", + 0x2203, + "therefore", + 0x2234, + "theta", + 0x03b8, + "theta1", + 0x03d1, + "thetasymbolgreek", + 0x03d1, + "thieuthacirclekorean", + 0x3279, + "thieuthaparenkorean", + 0x3219, + "thieuthcirclekorean", + 0x326b, + "thieuthkorean", + 0x314c, + "thieuthparenkorean", + 0x320b, + "thirteencircle", + 0x246c, + "thirteenparen", + 0x2480, + "thirteenperiod", + 0x2494, + "thonangmonthothai", + 0x0e11, + "thook", + 0x01ad, + "thophuthaothai", + 0x0e12, + "thorn", + 0x00fe, + "thothahanthai", + 0x0e17, + "thothanthai", + 0x0e10, + "thothongthai", + 0x0e18, + "thothungthai", + 0x0e16, + "thousandcyrillic", + 0x0482, + "thousandsseparatorarabic", + 0x066c, + "thousandsseparatorpersian", + 0x066c, + "three", + 0x0033, + "threearabic", + 0x0663, + "threebengali", + 0x09e9, + "threecircle", + 0x2462, + "threecircleinversesansserif", + 0x278c, + "threedeva", + 0x0969, + "threeeighths", + 0x215c, + "threegujarati", + 0x0ae9, + "threegurmukhi", + 0x0a69, + "threehackarabic", + 0x0663, + "threehangzhou", + 0x3023, + "threeideographicparen", + 0x3222, + "threeinferior", + 0x2083, + "threemonospace", + 0xff13, + "threenumeratorbengali", + 0x09f6, + "threeoldstyle", + 0xf733, + "threeparen", + 0x2476, + "threeperiod", + 0x248a, + "threepersian", + 0x06f3, + "threequarters", + 0x00be, + "threequartersemdash", + 0xf6de, + "threeroman", + 0x2172, + "threesuperior", + 0x00b3, + "threethai", + 0x0e53, + "thzsquare", + 0x3394, + "tihiragana", + 0x3061, + "tikatakana", + 0x30c1, + "tikatakanahalfwidth", + 0xff81, + "tikeutacirclekorean", + 0x3270, + "tikeutaparenkorean", + 0x3210, + "tikeutcirclekorean", + 0x3262, + "tikeutkorean", + 0x3137, + "tikeutparenkorean", + 0x3202, + "tilde", + 0x02dc, + "tildebelowcmb", + 0x0330, + "tildecmb", + 0x0303, + "tildecomb", + 0x0303, + "tildedoublecmb", + 0x0360, + "tildeoperator", + 0x223c, + "tildeoverlaycmb", + 0x0334, + "tildeverticalcmb", + 0x033e, + "timescircle", + 0x2297, + "tipehahebrew", + 0x0596, + "tipehalefthebrew", + 0x0596, + "tippigurmukhi", + 0x0a70, + "titlocyrilliccmb", + 0x0483, + "tiwnarmenian", + 0x057f, + "tlinebelow", + 0x1e6f, + "tmonospace", + 0xff54, + "toarmenian", + 0x0569, + "tohiragana", + 0x3068, + "tokatakana", + 0x30c8, + "tokatakanahalfwidth", + 0xff84, + "tonebarextrahighmod", + 0x02e5, + "tonebarextralowmod", + 0x02e9, + "tonebarhighmod", + 0x02e6, + "tonebarlowmod", + 0x02e8, + "tonebarmidmod", + 0x02e7, + "tonefive", + 0x01bd, + "tonesix", + 0x0185, + "tonetwo", + 0x01a8, + "tonos", + 0x0384, + "tonsquare", + 0x3327, + "topatakthai", + 0x0e0f, + "tortoiseshellbracketleft", + 0x3014, + "tortoiseshellbracketleftsmall", + 0xfe5d, + "tortoiseshellbracketleftvertical", + 0xfe39, + "tortoiseshellbracketright", + 0x3015, + "tortoiseshellbracketrightsmall", + 0xfe5e, + "tortoiseshellbracketrightvertical", + 0xfe3a, + "totaothai", + 0x0e15, + "tpalatalhook", + 0x01ab, + "tparen", + 0x24af, + "trademark", + 0x2122, + "trademarksans", + 0xf8ea, + "trademarkserif", + 0xf6db, + "tretroflexhook", + 0x0288, + "triagdn", + 0x25bc, + "triaglf", + 0x25c4, + "triagrt", + 0x25ba, + "triagup", + 0x25b2, + "ts", + 0x02a6, + "tsadi", + 0x05e6, + "tsadidagesh", + 0xfb46, + "tsadidageshhebrew", + 0xfb46, + "tsadihebrew", + 0x05e6, + "tsecyrillic", + 0x0446, + "tsere", + 0x05b5, + "tsere12", + 0x05b5, + "tsere1e", + 0x05b5, + "tsere2b", + 0x05b5, + "tserehebrew", + 0x05b5, + "tserenarrowhebrew", + 0x05b5, + "tserequarterhebrew", + 0x05b5, + "tserewidehebrew", + 0x05b5, + "tshecyrillic", + 0x045b, + "tsuperior", + 0xf6f3, + "ttabengali", + 0x099f, + "ttadeva", + 0x091f, + "ttagujarati", + 0x0a9f, + "ttagurmukhi", + 0x0a1f, + "tteharabic", + 0x0679, + "ttehfinalarabic", + 0xfb67, + "ttehinitialarabic", + 0xfb68, + "ttehmedialarabic", + 0xfb69, + "tthabengali", + 0x09a0, + "tthadeva", + 0x0920, + "tthagujarati", + 0x0aa0, + "tthagurmukhi", + 0x0a20, + "tturned", + 0x0287, + "tuhiragana", + 0x3064, + "tukatakana", + 0x30c4, + "tukatakanahalfwidth", + 0xff82, + "tusmallhiragana", + 0x3063, + "tusmallkatakana", + 0x30c3, + "tusmallkatakanahalfwidth", + 0xff6f, + "twelvecircle", + 0x246b, + "twelveparen", + 0x247f, + "twelveperiod", + 0x2493, + "twelveroman", + 0x217b, + "twentycircle", + 0x2473, + "twentyhangzhou", + 0x5344, + "twentyparen", + 0x2487, + "twentyperiod", + 0x249b, + "two", + 0x0032, + "twoarabic", + 0x0662, + "twobengali", + 0x09e8, + "twocircle", + 0x2461, + "twocircleinversesansserif", + 0x278b, + "twodeva", + 0x0968, + "twodotenleader", + 0x2025, + "twodotleader", + 0x2025, + "twodotleadervertical", + 0xfe30, + "twogujarati", + 0x0ae8, + "twogurmukhi", + 0x0a68, + "twohackarabic", + 0x0662, + "twohangzhou", + 0x3022, + "twoideographicparen", + 0x3221, + "twoinferior", + 0x2082, + "twomonospace", + 0xff12, + "twonumeratorbengali", + 0x09f5, + "twooldstyle", + 0xf732, + "twoparen", + 0x2475, + "twoperiod", + 0x2489, + "twopersian", + 0x06f2, + "tworoman", + 0x2171, + "twostroke", + 0x01bb, + "twosuperior", + 0x00b2, + "twothai", + 0x0e52, + "twothirds", + 0x2154, + "u", + 0x0075, + "uacute", + 0x00fa, + "ubar", + 0x0289, + "ubengali", + 0x0989, + "ubopomofo", + 0x3128, + "ubreve", + 0x016d, + "ucaron", + 0x01d4, + "ucircle", + 0x24e4, + "ucircumflex", + 0x00fb, + "ucircumflexbelow", + 0x1e77, + "ucyrillic", + 0x0443, + "udattadeva", + 0x0951, + "udblacute", + 0x0171, + "udblgrave", + 0x0215, + "udeva", + 0x0909, + "udieresis", + 0x00fc, + "udieresisacute", + 0x01d8, + "udieresisbelow", + 0x1e73, + "udieresiscaron", + 0x01da, + "udieresiscyrillic", + 0x04f1, + "udieresisgrave", + 0x01dc, + "udieresismacron", + 0x01d6, + "udotbelow", + 0x1ee5, + "ugrave", + 0x00f9, + "ugujarati", + 0x0a89, + "ugurmukhi", + 0x0a09, + "uhiragana", + 0x3046, + "uhookabove", + 0x1ee7, + "uhorn", + 0x01b0, + "uhornacute", + 0x1ee9, + "uhorndotbelow", + 0x1ef1, + "uhorngrave", + 0x1eeb, + "uhornhookabove", + 0x1eed, + "uhorntilde", + 0x1eef, + "uhungarumlaut", + 0x0171, + "uhungarumlautcyrillic", + 0x04f3, + "uinvertedbreve", + 0x0217, + "ukatakana", + 0x30a6, + "ukatakanahalfwidth", + 0xff73, + "ukcyrillic", + 0x0479, + "ukorean", + 0x315c, + "umacron", + 0x016b, + "umacroncyrillic", + 0x04ef, + "umacrondieresis", + 0x1e7b, + "umatragurmukhi", + 0x0a41, + "umonospace", + 0xff55, + "underscore", + 0x005f, + "underscoredbl", + 0x2017, + "underscoremonospace", + 0xff3f, + "underscorevertical", + 0xfe33, + "underscorewavy", + 0xfe4f, + "union", + 0x222a, + "universal", + 0x2200, + "uogonek", + 0x0173, + "uparen", + 0x24b0, + "upblock", + 0x2580, + "upperdothebrew", + 0x05c4, + "upsilon", + 0x03c5, + "upsilondieresis", + 0x03cb, + "upsilondieresistonos", + 0x03b0, + "upsilonlatin", + 0x028a, + "upsilontonos", + 0x03cd, + "uptackbelowcmb", + 0x031d, + "uptackmod", + 0x02d4, + "uragurmukhi", + 0x0a73, + "uring", + 0x016f, + "ushortcyrillic", + 0x045e, + "usmallhiragana", + 0x3045, + "usmallkatakana", + 0x30a5, + "usmallkatakanahalfwidth", + 0xff69, + "ustraightcyrillic", + 0x04af, + "ustraightstrokecyrillic", + 0x04b1, + "utilde", + 0x0169, + "utildeacute", + 0x1e79, + "utildebelow", + 0x1e75, + "uubengali", + 0x098a, + "uudeva", + 0x090a, + "uugujarati", + 0x0a8a, + "uugurmukhi", + 0x0a0a, + "uumatragurmukhi", + 0x0a42, + "uuvowelsignbengali", + 0x09c2, + "uuvowelsigndeva", + 0x0942, + "uuvowelsigngujarati", + 0x0ac2, + "uvowelsignbengali", + 0x09c1, + "uvowelsigndeva", + 0x0941, + "uvowelsigngujarati", + 0x0ac1, + "v", + 0x0076, + "vadeva", + 0x0935, + "vagujarati", + 0x0ab5, + "vagurmukhi", + 0x0a35, + "vakatakana", + 0x30f7, + "vav", + 0x05d5, + "vavdagesh", + 0xfb35, + "vavdagesh65", + 0xfb35, + "vavdageshhebrew", + 0xfb35, + "vavhebrew", + 0x05d5, + "vavholam", + 0xfb4b, + "vavholamhebrew", + 0xfb4b, + "vavvavhebrew", + 0x05f0, + "vavyodhebrew", + 0x05f1, + "vcircle", + 0x24e5, + "vdotbelow", + 0x1e7f, + "vecyrillic", + 0x0432, + "veharabic", + 0x06a4, + "vehfinalarabic", + 0xfb6b, + "vehinitialarabic", + 0xfb6c, + "vehmedialarabic", + 0xfb6d, + "vekatakana", + 0x30f9, + "venus", + 0x2640, + "verticalbar", + 0x007c, + "verticallineabovecmb", + 0x030d, + "verticallinebelowcmb", + 0x0329, + "verticallinelowmod", + 0x02cc, + "verticallinemod", + 0x02c8, + "vewarmenian", + 0x057e, + "vhook", + 0x028b, + "vikatakana", + 0x30f8, + "viramabengali", + 0x09cd, + "viramadeva", + 0x094d, + "viramagujarati", + 0x0acd, + "visargabengali", + 0x0983, + "visargadeva", + 0x0903, + "visargagujarati", + 0x0a83, + "vmonospace", + 0xff56, + "voarmenian", + 0x0578, + "voicediterationhiragana", + 0x309e, + "voicediterationkatakana", + 0x30fe, + "voicedmarkkana", + 0x309b, + "voicedmarkkanahalfwidth", + 0xff9e, + "vokatakana", + 0x30fa, + "vparen", + 0x24b1, + "vtilde", + 0x1e7d, + "vturned", + 0x028c, + "vuhiragana", + 0x3094, + "vukatakana", + 0x30f4, + "w", + 0x0077, + "wacute", + 0x1e83, + "waekorean", + 0x3159, + "wahiragana", + 0x308f, + "wakatakana", + 0x30ef, + "wakatakanahalfwidth", + 0xff9c, + "wakorean", + 0x3158, + "wasmallhiragana", + 0x308e, + "wasmallkatakana", + 0x30ee, + "wattosquare", + 0x3357, + "wavedash", + 0x301c, + "wavyunderscorevertical", + 0xfe34, + "wawarabic", + 0x0648, + "wawfinalarabic", + 0xfeee, + "wawhamzaabovearabic", + 0x0624, + "wawhamzaabovefinalarabic", + 0xfe86, + "wbsquare", + 0x33dd, + "wcircle", + 0x24e6, + "wcircumflex", + 0x0175, + "wdieresis", + 0x1e85, + "wdotaccent", + 0x1e87, + "wdotbelow", + 0x1e89, + "wehiragana", + 0x3091, + "weierstrass", + 0x2118, + "wekatakana", + 0x30f1, + "wekorean", + 0x315e, + "weokorean", + 0x315d, + "wgrave", + 0x1e81, + "whitebullet", + 0x25e6, + "whitecircle", + 0x25cb, + "whitecircleinverse", + 0x25d9, + "whitecornerbracketleft", + 0x300e, + "whitecornerbracketleftvertical", + 0xfe43, + "whitecornerbracketright", + 0x300f, + "whitecornerbracketrightvertical", + 0xfe44, + "whitediamond", + 0x25c7, + "whitediamondcontainingblacksmalldiamond", + 0x25c8, + "whitedownpointingsmalltriangle", + 0x25bf, + "whitedownpointingtriangle", + 0x25bd, + "whiteleftpointingsmalltriangle", + 0x25c3, + "whiteleftpointingtriangle", + 0x25c1, + "whitelenticularbracketleft", + 0x3016, + "whitelenticularbracketright", + 0x3017, + "whiterightpointingsmalltriangle", + 0x25b9, + "whiterightpointingtriangle", + 0x25b7, + "whitesmallsquare", + 0x25ab, + "whitesmilingface", + 0x263a, + "whitesquare", + 0x25a1, + "whitestar", + 0x2606, + "whitetelephone", + 0x260f, + "whitetortoiseshellbracketleft", + 0x3018, + "whitetortoiseshellbracketright", + 0x3019, + "whiteuppointingsmalltriangle", + 0x25b5, + "whiteuppointingtriangle", + 0x25b3, + "wihiragana", + 0x3090, + "wikatakana", + 0x30f0, + "wikorean", + 0x315f, + "wmonospace", + 0xff57, + "wohiragana", + 0x3092, + "wokatakana", + 0x30f2, + "wokatakanahalfwidth", + 0xff66, + "won", + 0x20a9, + "wonmonospace", + 0xffe6, + "wowaenthai", + 0x0e27, + "wparen", + 0x24b2, + "wring", + 0x1e98, + "wsuperior", + 0x02b7, + "wturned", + 0x028d, + "wynn", + 0x01bf, + "x", + 0x0078, + "xabovecmb", + 0x033d, + "xbopomofo", + 0x3112, + "xcircle", + 0x24e7, + "xdieresis", + 0x1e8d, + "xdotaccent", + 0x1e8b, + "xeharmenian", + 0x056d, + "xi", + 0x03be, + "xmonospace", + 0xff58, + "xparen", + 0x24b3, + "xsuperior", + 0x02e3, + "y", + 0x0079, + "yaadosquare", + 0x334e, + "yabengali", + 0x09af, + "yacute", + 0x00fd, + "yadeva", + 0x092f, + "yaekorean", + 0x3152, + "yagujarati", + 0x0aaf, + "yagurmukhi", + 0x0a2f, + "yahiragana", + 0x3084, + "yakatakana", + 0x30e4, + "yakatakanahalfwidth", + 0xff94, + "yakorean", + 0x3151, + "yamakkanthai", + 0x0e4e, + "yasmallhiragana", + 0x3083, + "yasmallkatakana", + 0x30e3, + "yasmallkatakanahalfwidth", + 0xff6c, + "yatcyrillic", + 0x0463, + "ycircle", + 0x24e8, + "ycircumflex", + 0x0177, + "ydieresis", + 0x00ff, + "ydotaccent", + 0x1e8f, + "ydotbelow", + 0x1ef5, + "yeharabic", + 0x064a, + "yehbarreearabic", + 0x06d2, + "yehbarreefinalarabic", + 0xfbaf, + "yehfinalarabic", + 0xfef2, + "yehhamzaabovearabic", + 0x0626, + "yehhamzaabovefinalarabic", + 0xfe8a, + "yehhamzaaboveinitialarabic", + 0xfe8b, + "yehhamzaabovemedialarabic", + 0xfe8c, + "yehinitialarabic", + 0xfef3, + "yehmedialarabic", + 0xfef4, + "yehmeeminitialarabic", + 0xfcdd, + "yehmeemisolatedarabic", + 0xfc58, + "yehnoonfinalarabic", + 0xfc94, + "yehthreedotsbelowarabic", + 0x06d1, + "yekorean", + 0x3156, + "yen", + 0x00a5, + "yenmonospace", + 0xffe5, + "yeokorean", + 0x3155, + "yeorinhieuhkorean", + 0x3186, + "yerahbenyomohebrew", + 0x05aa, + "yerahbenyomolefthebrew", + 0x05aa, + "yericyrillic", + 0x044b, + "yerudieresiscyrillic", + 0x04f9, + "yesieungkorean", + 0x3181, + "yesieungpansioskorean", + 0x3183, + "yesieungsioskorean", + 0x3182, + "yetivhebrew", + 0x059a, + "ygrave", + 0x1ef3, + "yhook", + 0x01b4, + "yhookabove", + 0x1ef7, + "yiarmenian", + 0x0575, + "yicyrillic", + 0x0457, + "yikorean", + 0x3162, + "yinyang", + 0x262f, + "yiwnarmenian", + 0x0582, + "ymonospace", + 0xff59, + "yod", + 0x05d9, + "yoddagesh", + 0xfb39, + "yoddageshhebrew", + 0xfb39, + "yodhebrew", + 0x05d9, + "yodyodhebrew", + 0x05f2, + "yodyodpatahhebrew", + 0xfb1f, + "yohiragana", + 0x3088, + "yoikorean", + 0x3189, + "yokatakana", + 0x30e8, + "yokatakanahalfwidth", + 0xff96, + "yokorean", + 0x315b, + "yosmallhiragana", + 0x3087, + "yosmallkatakana", + 0x30e7, + "yosmallkatakanahalfwidth", + 0xff6e, + "yotgreek", + 0x03f3, + "yoyaekorean", + 0x3188, + "yoyakorean", + 0x3187, + "yoyakthai", + 0x0e22, + "yoyingthai", + 0x0e0d, + "yparen", + 0x24b4, + "ypogegrammeni", + 0x037a, + "ypogegrammenigreekcmb", + 0x0345, + "yr", + 0x01a6, + "yring", + 0x1e99, + "ysuperior", + 0x02b8, + "ytilde", + 0x1ef9, + "yturned", + 0x028e, + "yuhiragana", + 0x3086, + "yuikorean", + 0x318c, + "yukatakana", + 0x30e6, + "yukatakanahalfwidth", + 0xff95, + "yukorean", + 0x3160, + "yusbigcyrillic", + 0x046b, + "yusbigiotifiedcyrillic", + 0x046d, + "yuslittlecyrillic", + 0x0467, + "yuslittleiotifiedcyrillic", + 0x0469, + "yusmallhiragana", + 0x3085, + "yusmallkatakana", + 0x30e5, + "yusmallkatakanahalfwidth", + 0xff6d, + "yuyekorean", + 0x318b, + "yuyeokorean", + 0x318a, + "yyabengali", + 0x09df, + "yyadeva", + 0x095f, + "z", + 0x007a, + "zaarmenian", + 0x0566, + "zacute", + 0x017a, + "zadeva", + 0x095b, + "zagurmukhi", + 0x0a5b, + "zaharabic", + 0x0638, + "zahfinalarabic", + 0xfec6, + "zahinitialarabic", + 0xfec7, + "zahiragana", + 0x3056, + "zahmedialarabic", + 0xfec8, + "zainarabic", + 0x0632, + "zainfinalarabic", + 0xfeb0, + "zakatakana", + 0x30b6, + "zaqefgadolhebrew", + 0x0595, + "zaqefqatanhebrew", + 0x0594, + "zarqahebrew", + 0x0598, + "zayin", + 0x05d6, + "zayindagesh", + 0xfb36, + "zayindageshhebrew", + 0xfb36, + "zayinhebrew", + 0x05d6, + "zbopomofo", + 0x3117, + "zcaron", + 0x017e, + "zcircle", + 0x24e9, + "zcircumflex", + 0x1e91, + "zcurl", + 0x0291, + "zdot", + 0x017c, + "zdotaccent", + 0x017c, + "zdotbelow", + 0x1e93, + "zecyrillic", + 0x0437, + "zedescendercyrillic", + 0x0499, + "zedieresiscyrillic", + 0x04df, + "zehiragana", + 0x305c, + "zekatakana", + 0x30bc, + "zero", + 0x0030, + "zeroarabic", + 0x0660, + "zerobengali", + 0x09e6, + "zerodeva", + 0x0966, + "zerogujarati", + 0x0ae6, + "zerogurmukhi", + 0x0a66, + "zerohackarabic", + 0x0660, + "zeroinferior", + 0x2080, + "zeromonospace", + 0xff10, + "zerooldstyle", + 0xf730, + "zeropersian", + 0x06f0, + "zerosuperior", + 0x2070, + "zerothai", + 0x0e50, + "zerowidthjoiner", + 0xfeff, + "zerowidthnonjoiner", + 0x200c, + "zerowidthspace", + 0x200b, + "zeta", + 0x03b6, + "zhbopomofo", + 0x3113, + "zhearmenian", + 0x056a, + "zhebrevecyrillic", + 0x04c2, + "zhecyrillic", + 0x0436, + "zhedescendercyrillic", + 0x0497, + "zhedieresiscyrillic", + 0x04dd, + "zihiragana", + 0x3058, + "zikatakana", + 0x30b8, + "zinorhebrew", + 0x05ae, + "zlinebelow", + 0x1e95, + "zmonospace", + 0xff5a, + "zohiragana", + 0x305e, + "zokatakana", + 0x30be, + "zparen", + 0x24b5, + "zretroflexhook", + 0x0290, + "zstroke", + 0x01b6, + "zuhiragana", + 0x305a, + "zukatakana", + 0x30ba, + ".notdef", + 0x0000, + "angbracketleftbig", + 0x2329, + "angbracketleftBig", + 0x2329, + "angbracketleftbigg", + 0x2329, + "angbracketleftBigg", + 0x2329, + "angbracketrightBig", + 0x232a, + "angbracketrightbig", + 0x232a, + "angbracketrightBigg", + 0x232a, + "angbracketrightbigg", + 0x232a, + "arrowhookleft", + 0x21aa, + "arrowhookright", + 0x21a9, + "arrowlefttophalf", + 0x21bc, + "arrowleftbothalf", + 0x21bd, + "arrownortheast", + 0x2197, + "arrownorthwest", + 0x2196, + "arrowrighttophalf", + 0x21c0, + "arrowrightbothalf", + 0x21c1, + "arrowsoutheast", + 0x2198, + "arrowsouthwest", + 0x2199, + "backslashbig", + 0x2216, + "backslashBig", + 0x2216, + "backslashBigg", + 0x2216, + "backslashbigg", + 0x2216, + "bardbl", + 0x2016, + "bracehtipdownleft", + 0xfe37, + "bracehtipdownright", + 0xfe37, + "bracehtipupleft", + 0xfe38, + "bracehtipupright", + 0xfe38, + "braceleftBig", + 0x007b, + "braceleftbig", + 0x007b, + "braceleftbigg", + 0x007b, + "braceleftBigg", + 0x007b, + "bracerightBig", + 0x007d, + "bracerightbig", + 0x007d, + "bracerightbigg", + 0x007d, + "bracerightBigg", + 0x007d, + "bracketleftbig", + 0x005b, + "bracketleftBig", + 0x005b, + "bracketleftbigg", + 0x005b, + "bracketleftBigg", + 0x005b, + "bracketrightBig", + 0x005d, + "bracketrightbig", + 0x005d, + "bracketrightbigg", + 0x005d, + "bracketrightBigg", + 0x005d, + "ceilingleftbig", + 0x2308, + "ceilingleftBig", + 0x2308, + "ceilingleftBigg", + 0x2308, + "ceilingleftbigg", + 0x2308, + "ceilingrightbig", + 0x2309, + "ceilingrightBig", + 0x2309, + "ceilingrightbigg", + 0x2309, + "ceilingrightBigg", + 0x2309, + "circledotdisplay", + 0x2299, + "circledottext", + 0x2299, + "circlemultiplydisplay", + 0x2297, + "circlemultiplytext", + 0x2297, + "circleplusdisplay", + 0x2295, + "circleplustext", + 0x2295, + "contintegraldisplay", + 0x222e, + "contintegraltext", + 0x222e, + "coproductdisplay", + 0x2210, + "coproducttext", + 0x2210, + "floorleftBig", + 0x230a, + "floorleftbig", + 0x230a, + "floorleftbigg", + 0x230a, + "floorleftBigg", + 0x230a, + "floorrightbig", + 0x230b, + "floorrightBig", + 0x230b, + "floorrightBigg", + 0x230b, + "floorrightbigg", + 0x230b, + "hatwide", + 0x0302, + "hatwider", + 0x0302, + "hatwidest", + 0x0302, + "intercal", + 0x1d40, + "integraldisplay", + 0x222b, + "integraltext", + 0x222b, + "intersectiondisplay", + 0x22c2, + "intersectiontext", + 0x22c2, + "logicalanddisplay", + 0x2227, + "logicalandtext", + 0x2227, + "logicalordisplay", + 0x2228, + "logicalortext", + 0x2228, + "parenleftBig", + 0x0028, + "parenleftbig", + 0x0028, + "parenleftBigg", + 0x0028, + "parenleftbigg", + 0x0028, + "parenrightBig", + 0x0029, + "parenrightbig", + 0x0029, + "parenrightBigg", + 0x0029, + "parenrightbigg", + 0x0029, + "prime", + 0x2032, + "productdisplay", + 0x220f, + "producttext", + 0x220f, + "radicalbig", + 0x221a, + "radicalBig", + 0x221a, + "radicalBigg", + 0x221a, + "radicalbigg", + 0x221a, + "radicalbt", + 0x221a, + "radicaltp", + 0x221a, + "radicalvertex", + 0x221a, + "slashbig", + 0x002f, + "slashBig", + 0x002f, + "slashBigg", + 0x002f, + "slashbigg", + 0x002f, + "summationdisplay", + 0x2211, + "summationtext", + 0x2211, + "tildewide", + 0x02dc, + "tildewider", + 0x02dc, + "tildewidest", + 0x02dc, + "uniondisplay", + 0x22c3, + "unionmultidisplay", + 0x228e, + "unionmultitext", + 0x228e, + "unionsqdisplay", + 0x2294, + "unionsqtext", + 0x2294, + "uniontext", + 0x22c3, + "vextenddouble", + 0x2225, + "vextendsingle", + 0x2223 + ]; +}); +const getDingbatsGlyphsUnicode = (0,_core_utils_js__WEBPACK_IMPORTED_MODULE_0__.getArrayLookupTableFactory)(function () { + return [ + "space", + 0x0020, + "a1", + 0x2701, + "a2", + 0x2702, + "a202", + 0x2703, + "a3", + 0x2704, + "a4", + 0x260e, + "a5", + 0x2706, + "a119", + 0x2707, + "a118", + 0x2708, + "a117", + 0x2709, + "a11", + 0x261b, + "a12", + 0x261e, + "a13", + 0x270c, + "a14", + 0x270d, + "a15", + 0x270e, + "a16", + 0x270f, + "a105", + 0x2710, + "a17", + 0x2711, + "a18", + 0x2712, + "a19", + 0x2713, + "a20", + 0x2714, + "a21", + 0x2715, + "a22", + 0x2716, + "a23", + 0x2717, + "a24", + 0x2718, + "a25", + 0x2719, + "a26", + 0x271a, + "a27", + 0x271b, + "a28", + 0x271c, + "a6", + 0x271d, + "a7", + 0x271e, + "a8", + 0x271f, + "a9", + 0x2720, + "a10", + 0x2721, + "a29", + 0x2722, + "a30", + 0x2723, + "a31", + 0x2724, + "a32", + 0x2725, + "a33", + 0x2726, + "a34", + 0x2727, + "a35", + 0x2605, + "a36", + 0x2729, + "a37", + 0x272a, + "a38", + 0x272b, + "a39", + 0x272c, + "a40", + 0x272d, + "a41", + 0x272e, + "a42", + 0x272f, + "a43", + 0x2730, + "a44", + 0x2731, + "a45", + 0x2732, + "a46", + 0x2733, + "a47", + 0x2734, + "a48", + 0x2735, + "a49", + 0x2736, + "a50", + 0x2737, + "a51", + 0x2738, + "a52", + 0x2739, + "a53", + 0x273a, + "a54", + 0x273b, + "a55", + 0x273c, + "a56", + 0x273d, + "a57", + 0x273e, + "a58", + 0x273f, + "a59", + 0x2740, + "a60", + 0x2741, + "a61", + 0x2742, + "a62", + 0x2743, + "a63", + 0x2744, + "a64", + 0x2745, + "a65", + 0x2746, + "a66", + 0x2747, + "a67", + 0x2748, + "a68", + 0x2749, + "a69", + 0x274a, + "a70", + 0x274b, + "a71", + 0x25cf, + "a72", + 0x274d, + "a73", + 0x25a0, + "a74", + 0x274f, + "a203", + 0x2750, + "a75", + 0x2751, + "a204", + 0x2752, + "a76", + 0x25b2, + "a77", + 0x25bc, + "a78", + 0x25c6, + "a79", + 0x2756, + "a81", + 0x25d7, + "a82", + 0x2758, + "a83", + 0x2759, + "a84", + 0x275a, + "a97", + 0x275b, + "a98", + 0x275c, + "a99", + 0x275d, + "a100", + 0x275e, + "a101", + 0x2761, + "a102", + 0x2762, + "a103", + 0x2763, + "a104", + 0x2764, + "a106", + 0x2765, + "a107", + 0x2766, + "a108", + 0x2767, + "a112", + 0x2663, + "a111", + 0x2666, + "a110", + 0x2665, + "a109", + 0x2660, + "a120", + 0x2460, + "a121", + 0x2461, + "a122", + 0x2462, + "a123", + 0x2463, + "a124", + 0x2464, + "a125", + 0x2465, + "a126", + 0x2466, + "a127", + 0x2467, + "a128", + 0x2468, + "a129", + 0x2469, + "a130", + 0x2776, + "a131", + 0x2777, + "a132", + 0x2778, + "a133", + 0x2779, + "a134", + 0x277a, + "a135", + 0x277b, + "a136", + 0x277c, + "a137", + 0x277d, + "a138", + 0x277e, + "a139", + 0x277f, + "a140", + 0x2780, + "a141", + 0x2781, + "a142", + 0x2782, + "a143", + 0x2783, + "a144", + 0x2784, + "a145", + 0x2785, + "a146", + 0x2786, + "a147", + 0x2787, + "a148", + 0x2788, + "a149", + 0x2789, + "a150", + 0x278a, + "a151", + 0x278b, + "a152", + 0x278c, + "a153", + 0x278d, + "a154", + 0x278e, + "a155", + 0x278f, + "a156", + 0x2790, + "a157", + 0x2791, + "a158", + 0x2792, + "a159", + 0x2793, + "a160", + 0x2794, + "a161", + 0x2192, + "a163", + 0x2194, + "a164", + 0x2195, + "a196", + 0x2798, + "a165", + 0x2799, + "a192", + 0x279a, + "a166", + 0x279b, + "a167", + 0x279c, + "a168", + 0x279d, + "a169", + 0x279e, + "a170", + 0x279f, + "a171", + 0x27a0, + "a172", + 0x27a1, + "a173", + 0x27a2, + "a162", + 0x27a3, + "a174", + 0x27a4, + "a175", + 0x27a5, + "a176", + 0x27a6, + "a177", + 0x27a7, + "a178", + 0x27a8, + "a179", + 0x27a9, + "a193", + 0x27aa, + "a180", + 0x27ab, + "a199", + 0x27ac, + "a181", + 0x27ad, + "a200", + 0x27ae, + "a182", + 0x27af, + "a201", + 0x27b1, + "a183", + 0x27b2, + "a184", + 0x27b3, + "a197", + 0x27b4, + "a185", + 0x27b5, + "a194", + 0x27b6, + "a198", + 0x27b7, + "a186", + 0x27b8, + "a195", + 0x27b9, + "a187", + 0x27ba, + "a188", + 0x27bb, + "a189", + 0x27bc, + "a190", + 0x27bd, + "a191", + 0x27be, + "a89", + 0x2768, + "a90", + 0x2769, + "a93", + 0x276a, + "a94", + 0x276b, + "a91", + 0x276c, + "a92", + 0x276d, + "a205", + 0x276e, + "a85", + 0x276f, + "a206", + 0x2770, + "a86", + 0x2771, + "a87", + 0x2772, + "a88", + 0x2773, + "a95", + 0x2774, + "a96", + 0x2775, + ".notdef", + 0x0000 + ]; +}); + + +/***/ }), +/* 40 */ +/***/ ((__unused_webpack_module, __webpack_exports__, __w_pdfjs_require__) => { + +__w_pdfjs_require__.r(__webpack_exports__); +/* harmony export */ __w_pdfjs_require__.d(__webpack_exports__, { +/* harmony export */ "clearUnicodeCaches": () => (/* binding */ clearUnicodeCaches), +/* harmony export */ "getCharUnicodeCategory": () => (/* binding */ getCharUnicodeCategory), +/* harmony export */ "getNormalizedUnicodes": () => (/* binding */ getNormalizedUnicodes), +/* harmony export */ "getUnicodeForGlyph": () => (/* binding */ getUnicodeForGlyph), +/* harmony export */ "getUnicodeRangeFor": () => (/* binding */ getUnicodeRangeFor), +/* harmony export */ "mapSpecialUnicodeValues": () => (/* binding */ mapSpecialUnicodeValues), +/* harmony export */ "reverseIfRtl": () => (/* binding */ reverseIfRtl) +/* harmony export */ }); +/* harmony import */ var _core_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __w_pdfjs_require__(6); + +const getSpecialPUASymbols = (0,_core_utils_js__WEBPACK_IMPORTED_MODULE_0__.getLookupTableFactory)(function (t) { + t[63721] = 0x00a9; + t[63193] = 0x00a9; + t[63720] = 0x00ae; + t[63194] = 0x00ae; + t[63722] = 0x2122; + t[63195] = 0x2122; + t[63729] = 0x23a7; + t[63730] = 0x23a8; + t[63731] = 0x23a9; + t[63740] = 0x23ab; + t[63741] = 0x23ac; + t[63742] = 0x23ad; + t[63726] = 0x23a1; + t[63727] = 0x23a2; + t[63728] = 0x23a3; + t[63737] = 0x23a4; + t[63738] = 0x23a5; + t[63739] = 0x23a6; + t[63723] = 0x239b; + t[63724] = 0x239c; + t[63725] = 0x239d; + t[63734] = 0x239e; + t[63735] = 0x239f; + t[63736] = 0x23a0; +}); +function mapSpecialUnicodeValues(code) { + if (code >= 0xfff0 && code <= 0xffff) { + return 0; + } else if (code >= 0xf600 && code <= 0xf8ff) { + return getSpecialPUASymbols()[code] || code; + } else if (code === 0x00ad) { + return 0x002d; + } + return code; +} +function getUnicodeForGlyph(name, glyphsUnicodeMap) { + let unicode = glyphsUnicodeMap[name]; + if (unicode !== undefined) { + return unicode; + } + if (!name) { + return -1; + } + if (name[0] === "u") { + const nameLen = name.length; + let hexStr; + if (nameLen === 7 && name[1] === "n" && name[2] === "i") { + hexStr = name.substring(3); + } else if (nameLen >= 5 && nameLen <= 7) { + hexStr = name.substring(1); + } else { + return -1; + } + if (hexStr === hexStr.toUpperCase()) { + unicode = parseInt(hexStr, 16); + if (unicode >= 0) { + return unicode; + } + } + } + return -1; +} +const UnicodeRanges = [ + { + begin: 0x0000, + end: 0x007f + }, + { + begin: 0x0080, + end: 0x00ff + }, + { + begin: 0x0100, + end: 0x017f + }, + { + begin: 0x0180, + end: 0x024f + }, + { + begin: 0x0250, + end: 0x02af + }, + { + begin: 0x02b0, + end: 0x02ff + }, + { + begin: 0x0300, + end: 0x036f + }, + { + begin: 0x0370, + end: 0x03ff + }, + { + begin: 0x2c80, + end: 0x2cff + }, + { + begin: 0x0400, + end: 0x04ff + }, + { + begin: 0x0530, + end: 0x058f + }, + { + begin: 0x0590, + end: 0x05ff + }, + { + begin: 0xa500, + end: 0xa63f + }, + { + begin: 0x0600, + end: 0x06ff + }, + { + begin: 0x07c0, + end: 0x07ff + }, + { + begin: 0x0900, + end: 0x097f + }, + { + begin: 0x0980, + end: 0x09ff + }, + { + begin: 0x0a00, + end: 0x0a7f + }, + { + begin: 0x0a80, + end: 0x0aff + }, + { + begin: 0x0b00, + end: 0x0b7f + }, + { + begin: 0x0b80, + end: 0x0bff + }, + { + begin: 0x0c00, + end: 0x0c7f + }, + { + begin: 0x0c80, + end: 0x0cff + }, + { + begin: 0x0d00, + end: 0x0d7f + }, + { + begin: 0x0e00, + end: 0x0e7f + }, + { + begin: 0x0e80, + end: 0x0eff + }, + { + begin: 0x10a0, + end: 0x10ff + }, + { + begin: 0x1b00, + end: 0x1b7f + }, + { + begin: 0x1100, + end: 0x11ff + }, + { + begin: 0x1e00, + end: 0x1eff + }, + { + begin: 0x1f00, + end: 0x1fff + }, + { + begin: 0x2000, + end: 0x206f + }, + { + begin: 0x2070, + end: 0x209f + }, + { + begin: 0x20a0, + end: 0x20cf + }, + { + begin: 0x20d0, + end: 0x20ff + }, + { + begin: 0x2100, + end: 0x214f + }, + { + begin: 0x2150, + end: 0x218f + }, + { + begin: 0x2190, + end: 0x21ff + }, + { + begin: 0x2200, + end: 0x22ff + }, + { + begin: 0x2300, + end: 0x23ff + }, + { + begin: 0x2400, + end: 0x243f + }, + { + begin: 0x2440, + end: 0x245f + }, + { + begin: 0x2460, + end: 0x24ff + }, + { + begin: 0x2500, + end: 0x257f + }, + { + begin: 0x2580, + end: 0x259f + }, + { + begin: 0x25a0, + end: 0x25ff + }, + { + begin: 0x2600, + end: 0x26ff + }, + { + begin: 0x2700, + end: 0x27bf + }, + { + begin: 0x3000, + end: 0x303f + }, + { + begin: 0x3040, + end: 0x309f + }, + { + begin: 0x30a0, + end: 0x30ff + }, + { + begin: 0x3100, + end: 0x312f + }, + { + begin: 0x3130, + end: 0x318f + }, + { + begin: 0xa840, + end: 0xa87f + }, + { + begin: 0x3200, + end: 0x32ff + }, + { + begin: 0x3300, + end: 0x33ff + }, + { + begin: 0xac00, + end: 0xd7af + }, + { + begin: 0xd800, + end: 0xdfff + }, + { + begin: 0x10900, + end: 0x1091f + }, + { + begin: 0x4e00, + end: 0x9fff + }, + { + begin: 0xe000, + end: 0xf8ff + }, + { + begin: 0x31c0, + end: 0x31ef + }, + { + begin: 0xfb00, + end: 0xfb4f + }, + { + begin: 0xfb50, + end: 0xfdff + }, + { + begin: 0xfe20, + end: 0xfe2f + }, + { + begin: 0xfe10, + end: 0xfe1f + }, + { + begin: 0xfe50, + end: 0xfe6f + }, + { + begin: 0xfe70, + end: 0xfeff + }, + { + begin: 0xff00, + end: 0xffef + }, + { + begin: 0xfff0, + end: 0xffff + }, + { + begin: 0x0f00, + end: 0x0fff + }, + { + begin: 0x0700, + end: 0x074f + }, + { + begin: 0x0780, + end: 0x07bf + }, + { + begin: 0x0d80, + end: 0x0dff + }, + { + begin: 0x1000, + end: 0x109f + }, + { + begin: 0x1200, + end: 0x137f + }, + { + begin: 0x13a0, + end: 0x13ff + }, + { + begin: 0x1400, + end: 0x167f + }, + { + begin: 0x1680, + end: 0x169f + }, + { + begin: 0x16a0, + end: 0x16ff + }, + { + begin: 0x1780, + end: 0x17ff + }, + { + begin: 0x1800, + end: 0x18af + }, + { + begin: 0x2800, + end: 0x28ff + }, + { + begin: 0xa000, + end: 0xa48f + }, + { + begin: 0x1700, + end: 0x171f + }, + { + begin: 0x10300, + end: 0x1032f + }, + { + begin: 0x10330, + end: 0x1034f + }, + { + begin: 0x10400, + end: 0x1044f + }, + { + begin: 0x1d000, + end: 0x1d0ff + }, + { + begin: 0x1d400, + end: 0x1d7ff + }, + { + begin: 0xff000, + end: 0xffffd + }, + { + begin: 0xfe00, + end: 0xfe0f + }, + { + begin: 0xe0000, + end: 0xe007f + }, + { + begin: 0x1900, + end: 0x194f + }, + { + begin: 0x1950, + end: 0x197f + }, + { + begin: 0x1980, + end: 0x19df + }, + { + begin: 0x1a00, + end: 0x1a1f + }, + { + begin: 0x2c00, + end: 0x2c5f + }, + { + begin: 0x2d30, + end: 0x2d7f + }, + { + begin: 0x4dc0, + end: 0x4dff + }, + { + begin: 0xa800, + end: 0xa82f + }, + { + begin: 0x10000, + end: 0x1007f + }, + { + begin: 0x10140, + end: 0x1018f + }, + { + begin: 0x10380, + end: 0x1039f + }, + { + begin: 0x103a0, + end: 0x103df + }, + { + begin: 0x10450, + end: 0x1047f + }, + { + begin: 0x10480, + end: 0x104af + }, + { + begin: 0x10800, + end: 0x1083f + }, + { + begin: 0x10a00, + end: 0x10a5f + }, + { + begin: 0x1d300, + end: 0x1d35f + }, + { + begin: 0x12000, + end: 0x123ff + }, + { + begin: 0x1d360, + end: 0x1d37f + }, + { + begin: 0x1b80, + end: 0x1bbf + }, + { + begin: 0x1c00, + end: 0x1c4f + }, + { + begin: 0x1c50, + end: 0x1c7f + }, + { + begin: 0xa880, + end: 0xa8df + }, + { + begin: 0xa900, + end: 0xa92f + }, + { + begin: 0xa930, + end: 0xa95f + }, + { + begin: 0xaa00, + end: 0xaa5f + }, + { + begin: 0x10190, + end: 0x101cf + }, + { + begin: 0x101d0, + end: 0x101ff + }, + { + begin: 0x102a0, + end: 0x102df + }, + { + begin: 0x1f030, + end: 0x1f09f + } +]; +function getUnicodeRangeFor(value) { + for (let i = 0, ii = UnicodeRanges.length; i < ii; i++) { + const range = UnicodeRanges[i]; + if (value >= range.begin && value < range.end) { + return i; + } + } + return -1; +} +function isRTLRangeFor(value) { + let range = UnicodeRanges[13]; + if (value >= range.begin && value < range.end) { + return true; + } + range = UnicodeRanges[11]; + if (value >= range.begin && value < range.end) { + return true; + } + return false; +} +const getNormalizedUnicodes = (0,_core_utils_js__WEBPACK_IMPORTED_MODULE_0__.getArrayLookupTableFactory)(function () { + return [ + "\u00A8", + "\u0020\u0308", + "\u00AF", + "\u0020\u0304", + "\u00B4", + "\u0020\u0301", + "\u00B5", + "\u03BC", + "\u00B8", + "\u0020\u0327", + "\u0132", + "\u0049\u004A", + "\u0133", + "\u0069\u006A", + "\u013F", + "\u004C\u00B7", + "\u0140", + "\u006C\u00B7", + "\u0149", + "\u02BC\u006E", + "\u017F", + "\u0073", + "\u01C4", + "\u0044\u017D", + "\u01C5", + "\u0044\u017E", + "\u01C6", + "\u0064\u017E", + "\u01C7", + "\u004C\u004A", + "\u01C8", + "\u004C\u006A", + "\u01C9", + "\u006C\u006A", + "\u01CA", + "\u004E\u004A", + "\u01CB", + "\u004E\u006A", + "\u01CC", + "\u006E\u006A", + "\u01F1", + "\u0044\u005A", + "\u01F2", + "\u0044\u007A", + "\u01F3", + "\u0064\u007A", + "\u02D8", + "\u0020\u0306", + "\u02D9", + "\u0020\u0307", + "\u02DA", + "\u0020\u030A", + "\u02DB", + "\u0020\u0328", + "\u02DC", + "\u0020\u0303", + "\u02DD", + "\u0020\u030B", + "\u037A", + "\u0020\u0345", + "\u0384", + "\u0020\u0301", + "\u03D0", + "\u03B2", + "\u03D1", + "\u03B8", + "\u03D2", + "\u03A5", + "\u03D5", + "\u03C6", + "\u03D6", + "\u03C0", + "\u03F0", + "\u03BA", + "\u03F1", + "\u03C1", + "\u03F2", + "\u03C2", + "\u03F4", + "\u0398", + "\u03F5", + "\u03B5", + "\u03F9", + "\u03A3", + "\u0587", + "\u0565\u0582", + "\u0675", + "\u0627\u0674", + "\u0676", + "\u0648\u0674", + "\u0677", + "\u06C7\u0674", + "\u0678", + "\u064A\u0674", + "\u0E33", + "\u0E4D\u0E32", + "\u0EB3", + "\u0ECD\u0EB2", + "\u0EDC", + "\u0EAB\u0E99", + "\u0EDD", + "\u0EAB\u0EA1", + "\u0F77", + "\u0FB2\u0F81", + "\u0F79", + "\u0FB3\u0F81", + "\u1E9A", + "\u0061\u02BE", + "\u1FBD", + "\u0020\u0313", + "\u1FBF", + "\u0020\u0313", + "\u1FC0", + "\u0020\u0342", + "\u1FFE", + "\u0020\u0314", + "\u2002", + "\u0020", + "\u2003", + "\u0020", + "\u2004", + "\u0020", + "\u2005", + "\u0020", + "\u2006", + "\u0020", + "\u2008", + "\u0020", + "\u2009", + "\u0020", + "\u200A", + "\u0020", + "\u2017", + "\u0020\u0333", + "\u2024", + "\u002E", + "\u2025", + "\u002E\u002E", + "\u2026", + "\u002E\u002E\u002E", + "\u2033", + "\u2032\u2032", + "\u2034", + "\u2032\u2032\u2032", + "\u2036", + "\u2035\u2035", + "\u2037", + "\u2035\u2035\u2035", + "\u203C", + "\u0021\u0021", + "\u203E", + "\u0020\u0305", + "\u2047", + "\u003F\u003F", + "\u2048", + "\u003F\u0021", + "\u2049", + "\u0021\u003F", + "\u2057", + "\u2032\u2032\u2032\u2032", + "\u205F", + "\u0020", + "\u20A8", + "\u0052\u0073", + "\u2100", + "\u0061\u002F\u0063", + "\u2101", + "\u0061\u002F\u0073", + "\u2103", + "\u00B0\u0043", + "\u2105", + "\u0063\u002F\u006F", + "\u2106", + "\u0063\u002F\u0075", + "\u2107", + "\u0190", + "\u2109", + "\u00B0\u0046", + "\u2116", + "\u004E\u006F", + "\u2121", + "\u0054\u0045\u004C", + "\u2135", + "\u05D0", + "\u2136", + "\u05D1", + "\u2137", + "\u05D2", + "\u2138", + "\u05D3", + "\u213B", + "\u0046\u0041\u0058", + "\u2160", + "\u0049", + "\u2161", + "\u0049\u0049", + "\u2162", + "\u0049\u0049\u0049", + "\u2163", + "\u0049\u0056", + "\u2164", + "\u0056", + "\u2165", + "\u0056\u0049", + "\u2166", + "\u0056\u0049\u0049", + "\u2167", + "\u0056\u0049\u0049\u0049", + "\u2168", + "\u0049\u0058", + "\u2169", + "\u0058", + "\u216A", + "\u0058\u0049", + "\u216B", + "\u0058\u0049\u0049", + "\u216C", + "\u004C", + "\u216D", + "\u0043", + "\u216E", + "\u0044", + "\u216F", + "\u004D", + "\u2170", + "\u0069", + "\u2171", + "\u0069\u0069", + "\u2172", + "\u0069\u0069\u0069", + "\u2173", + "\u0069\u0076", + "\u2174", + "\u0076", + "\u2175", + "\u0076\u0069", + "\u2176", + "\u0076\u0069\u0069", + "\u2177", + "\u0076\u0069\u0069\u0069", + "\u2178", + "\u0069\u0078", + "\u2179", + "\u0078", + "\u217A", + "\u0078\u0069", + "\u217B", + "\u0078\u0069\u0069", + "\u217C", + "\u006C", + "\u217D", + "\u0063", + "\u217E", + "\u0064", + "\u217F", + "\u006D", + "\u222C", + "\u222B\u222B", + "\u222D", + "\u222B\u222B\u222B", + "\u222F", + "\u222E\u222E", + "\u2230", + "\u222E\u222E\u222E", + "\u2474", + "\u0028\u0031\u0029", + "\u2475", + "\u0028\u0032\u0029", + "\u2476", + "\u0028\u0033\u0029", + "\u2477", + "\u0028\u0034\u0029", + "\u2478", + "\u0028\u0035\u0029", + "\u2479", + "\u0028\u0036\u0029", + "\u247A", + "\u0028\u0037\u0029", + "\u247B", + "\u0028\u0038\u0029", + "\u247C", + "\u0028\u0039\u0029", + "\u247D", + "\u0028\u0031\u0030\u0029", + "\u247E", + "\u0028\u0031\u0031\u0029", + "\u247F", + "\u0028\u0031\u0032\u0029", + "\u2480", + "\u0028\u0031\u0033\u0029", + "\u2481", + "\u0028\u0031\u0034\u0029", + "\u2482", + "\u0028\u0031\u0035\u0029", + "\u2483", + "\u0028\u0031\u0036\u0029", + "\u2484", + "\u0028\u0031\u0037\u0029", + "\u2485", + "\u0028\u0031\u0038\u0029", + "\u2486", + "\u0028\u0031\u0039\u0029", + "\u2487", + "\u0028\u0032\u0030\u0029", + "\u2488", + "\u0031\u002E", + "\u2489", + "\u0032\u002E", + "\u248A", + "\u0033\u002E", + "\u248B", + "\u0034\u002E", + "\u248C", + "\u0035\u002E", + "\u248D", + "\u0036\u002E", + "\u248E", + "\u0037\u002E", + "\u248F", + "\u0038\u002E", + "\u2490", + "\u0039\u002E", + "\u2491", + "\u0031\u0030\u002E", + "\u2492", + "\u0031\u0031\u002E", + "\u2493", + "\u0031\u0032\u002E", + "\u2494", + "\u0031\u0033\u002E", + "\u2495", + "\u0031\u0034\u002E", + "\u2496", + "\u0031\u0035\u002E", + "\u2497", + "\u0031\u0036\u002E", + "\u2498", + "\u0031\u0037\u002E", + "\u2499", + "\u0031\u0038\u002E", + "\u249A", + "\u0031\u0039\u002E", + "\u249B", + "\u0032\u0030\u002E", + "\u249C", + "\u0028\u0061\u0029", + "\u249D", + "\u0028\u0062\u0029", + "\u249E", + "\u0028\u0063\u0029", + "\u249F", + "\u0028\u0064\u0029", + "\u24A0", + "\u0028\u0065\u0029", + "\u24A1", + "\u0028\u0066\u0029", + "\u24A2", + "\u0028\u0067\u0029", + "\u24A3", + "\u0028\u0068\u0029", + "\u24A4", + "\u0028\u0069\u0029", + "\u24A5", + "\u0028\u006A\u0029", + "\u24A6", + "\u0028\u006B\u0029", + "\u24A7", + "\u0028\u006C\u0029", + "\u24A8", + "\u0028\u006D\u0029", + "\u24A9", + "\u0028\u006E\u0029", + "\u24AA", + "\u0028\u006F\u0029", + "\u24AB", + "\u0028\u0070\u0029", + "\u24AC", + "\u0028\u0071\u0029", + "\u24AD", + "\u0028\u0072\u0029", + "\u24AE", + "\u0028\u0073\u0029", + "\u24AF", + "\u0028\u0074\u0029", + "\u24B0", + "\u0028\u0075\u0029", + "\u24B1", + "\u0028\u0076\u0029", + "\u24B2", + "\u0028\u0077\u0029", + "\u24B3", + "\u0028\u0078\u0029", + "\u24B4", + "\u0028\u0079\u0029", + "\u24B5", + "\u0028\u007A\u0029", + "\u2A0C", + "\u222B\u222B\u222B\u222B", + "\u2A74", + "\u003A\u003A\u003D", + "\u2A75", + "\u003D\u003D", + "\u2A76", + "\u003D\u003D\u003D", + "\u2E9F", + "\u6BCD", + "\u2EF3", + "\u9F9F", + "\u2F00", + "\u4E00", + "\u2F01", + "\u4E28", + "\u2F02", + "\u4E36", + "\u2F03", + "\u4E3F", + "\u2F04", + "\u4E59", + "\u2F05", + "\u4E85", + "\u2F06", + "\u4E8C", + "\u2F07", + "\u4EA0", + "\u2F08", + "\u4EBA", + "\u2F09", + "\u513F", + "\u2F0A", + "\u5165", + "\u2F0B", + "\u516B", + "\u2F0C", + "\u5182", + "\u2F0D", + "\u5196", + "\u2F0E", + "\u51AB", + "\u2F0F", + "\u51E0", + "\u2F10", + "\u51F5", + "\u2F11", + "\u5200", + "\u2F12", + "\u529B", + "\u2F13", + "\u52F9", + "\u2F14", + "\u5315", + "\u2F15", + "\u531A", + "\u2F16", + "\u5338", + "\u2F17", + "\u5341", + "\u2F18", + "\u535C", + "\u2F19", + "\u5369", + "\u2F1A", + "\u5382", + "\u2F1B", + "\u53B6", + "\u2F1C", + "\u53C8", + "\u2F1D", + "\u53E3", + "\u2F1E", + "\u56D7", + "\u2F1F", + "\u571F", + "\u2F20", + "\u58EB", + "\u2F21", + "\u5902", + "\u2F22", + "\u590A", + "\u2F23", + "\u5915", + "\u2F24", + "\u5927", + "\u2F25", + "\u5973", + "\u2F26", + "\u5B50", + "\u2F27", + "\u5B80", + "\u2F28", + "\u5BF8", + "\u2F29", + "\u5C0F", + "\u2F2A", + "\u5C22", + "\u2F2B", + "\u5C38", + "\u2F2C", + "\u5C6E", + "\u2F2D", + "\u5C71", + "\u2F2E", + "\u5DDB", + "\u2F2F", + "\u5DE5", + "\u2F30", + "\u5DF1", + "\u2F31", + "\u5DFE", + "\u2F32", + "\u5E72", + "\u2F33", + "\u5E7A", + "\u2F34", + "\u5E7F", + "\u2F35", + "\u5EF4", + "\u2F36", + "\u5EFE", + "\u2F37", + "\u5F0B", + "\u2F38", + "\u5F13", + "\u2F39", + "\u5F50", + "\u2F3A", + "\u5F61", + "\u2F3B", + "\u5F73", + "\u2F3C", + "\u5FC3", + "\u2F3D", + "\u6208", + "\u2F3E", + "\u6236", + "\u2F3F", + "\u624B", + "\u2F40", + "\u652F", + "\u2F41", + "\u6534", + "\u2F42", + "\u6587", + "\u2F43", + "\u6597", + "\u2F44", + "\u65A4", + "\u2F45", + "\u65B9", + "\u2F46", + "\u65E0", + "\u2F47", + "\u65E5", + "\u2F48", + "\u66F0", + "\u2F49", + "\u6708", + "\u2F4A", + "\u6728", + "\u2F4B", + "\u6B20", + "\u2F4C", + "\u6B62", + "\u2F4D", + "\u6B79", + "\u2F4E", + "\u6BB3", + "\u2F4F", + "\u6BCB", + "\u2F50", + "\u6BD4", + "\u2F51", + "\u6BDB", + "\u2F52", + "\u6C0F", + "\u2F53", + "\u6C14", + "\u2F54", + "\u6C34", + "\u2F55", + "\u706B", + "\u2F56", + "\u722A", + "\u2F57", + "\u7236", + "\u2F58", + "\u723B", + "\u2F59", + "\u723F", + "\u2F5A", + "\u7247", + "\u2F5B", + "\u7259", + "\u2F5C", + "\u725B", + "\u2F5D", + "\u72AC", + "\u2F5E", + "\u7384", + "\u2F5F", + "\u7389", + "\u2F60", + "\u74DC", + "\u2F61", + "\u74E6", + "\u2F62", + "\u7518", + "\u2F63", + "\u751F", + "\u2F64", + "\u7528", + "\u2F65", + "\u7530", + "\u2F66", + "\u758B", + "\u2F67", + "\u7592", + "\u2F68", + "\u7676", + "\u2F69", + "\u767D", + "\u2F6A", + "\u76AE", + "\u2F6B", + "\u76BF", + "\u2F6C", + "\u76EE", + "\u2F6D", + "\u77DB", + "\u2F6E", + "\u77E2", + "\u2F6F", + "\u77F3", + "\u2F70", + "\u793A", + "\u2F71", + "\u79B8", + "\u2F72", + "\u79BE", + "\u2F73", + "\u7A74", + "\u2F74", + "\u7ACB", + "\u2F75", + "\u7AF9", + "\u2F76", + "\u7C73", + "\u2F77", + "\u7CF8", + "\u2F78", + "\u7F36", + "\u2F79", + "\u7F51", + "\u2F7A", + "\u7F8A", + "\u2F7B", + "\u7FBD", + "\u2F7C", + "\u8001", + "\u2F7D", + "\u800C", + "\u2F7E", + "\u8012", + "\u2F7F", + "\u8033", + "\u2F80", + "\u807F", + "\u2F81", + "\u8089", + "\u2F82", + "\u81E3", + "\u2F83", + "\u81EA", + "\u2F84", + "\u81F3", + "\u2F85", + "\u81FC", + "\u2F86", + "\u820C", + "\u2F87", + "\u821B", + "\u2F88", + "\u821F", + "\u2F89", + "\u826E", + "\u2F8A", + "\u8272", + "\u2F8B", + "\u8278", + "\u2F8C", + "\u864D", + "\u2F8D", + "\u866B", + "\u2F8E", + "\u8840", + "\u2F8F", + "\u884C", + "\u2F90", + "\u8863", + "\u2F91", + "\u897E", + "\u2F92", + "\u898B", + "\u2F93", + "\u89D2", + "\u2F94", + "\u8A00", + "\u2F95", + "\u8C37", + "\u2F96", + "\u8C46", + "\u2F97", + "\u8C55", + "\u2F98", + "\u8C78", + "\u2F99", + "\u8C9D", + "\u2F9A", + "\u8D64", + "\u2F9B", + "\u8D70", + "\u2F9C", + "\u8DB3", + "\u2F9D", + "\u8EAB", + "\u2F9E", + "\u8ECA", + "\u2F9F", + "\u8F9B", + "\u2FA0", + "\u8FB0", + "\u2FA1", + "\u8FB5", + "\u2FA2", + "\u9091", + "\u2FA3", + "\u9149", + "\u2FA4", + "\u91C6", + "\u2FA5", + "\u91CC", + "\u2FA6", + "\u91D1", + "\u2FA7", + "\u9577", + "\u2FA8", + "\u9580", + "\u2FA9", + "\u961C", + "\u2FAA", + "\u96B6", + "\u2FAB", + "\u96B9", + "\u2FAC", + "\u96E8", + "\u2FAD", + "\u9751", + "\u2FAE", + "\u975E", + "\u2FAF", + "\u9762", + "\u2FB0", + "\u9769", + "\u2FB1", + "\u97CB", + "\u2FB2", + "\u97ED", + "\u2FB3", + "\u97F3", + "\u2FB4", + "\u9801", + "\u2FB5", + "\u98A8", + "\u2FB6", + "\u98DB", + "\u2FB7", + "\u98DF", + "\u2FB8", + "\u9996", + "\u2FB9", + "\u9999", + "\u2FBA", + "\u99AC", + "\u2FBB", + "\u9AA8", + "\u2FBC", + "\u9AD8", + "\u2FBD", + "\u9ADF", + "\u2FBE", + "\u9B25", + "\u2FBF", + "\u9B2F", + "\u2FC0", + "\u9B32", + "\u2FC1", + "\u9B3C", + "\u2FC2", + "\u9B5A", + "\u2FC3", + "\u9CE5", + "\u2FC4", + "\u9E75", + "\u2FC5", + "\u9E7F", + "\u2FC6", + "\u9EA5", + "\u2FC7", + "\u9EBB", + "\u2FC8", + "\u9EC3", + "\u2FC9", + "\u9ECD", + "\u2FCA", + "\u9ED1", + "\u2FCB", + "\u9EF9", + "\u2FCC", + "\u9EFD", + "\u2FCD", + "\u9F0E", + "\u2FCE", + "\u9F13", + "\u2FCF", + "\u9F20", + "\u2FD0", + "\u9F3B", + "\u2FD1", + "\u9F4A", + "\u2FD2", + "\u9F52", + "\u2FD3", + "\u9F8D", + "\u2FD4", + "\u9F9C", + "\u2FD5", + "\u9FA0", + "\u3036", + "\u3012", + "\u3038", + "\u5341", + "\u3039", + "\u5344", + "\u303A", + "\u5345", + "\u309B", + "\u0020\u3099", + "\u309C", + "\u0020\u309A", + "\u3131", + "\u1100", + "\u3132", + "\u1101", + "\u3133", + "\u11AA", + "\u3134", + "\u1102", + "\u3135", + "\u11AC", + "\u3136", + "\u11AD", + "\u3137", + "\u1103", + "\u3138", + "\u1104", + "\u3139", + "\u1105", + "\u313A", + "\u11B0", + "\u313B", + "\u11B1", + "\u313C", + "\u11B2", + "\u313D", + "\u11B3", + "\u313E", + "\u11B4", + "\u313F", + "\u11B5", + "\u3140", + "\u111A", + "\u3141", + "\u1106", + "\u3142", + "\u1107", + "\u3143", + "\u1108", + "\u3144", + "\u1121", + "\u3145", + "\u1109", + "\u3146", + "\u110A", + "\u3147", + "\u110B", + "\u3148", + "\u110C", + "\u3149", + "\u110D", + "\u314A", + "\u110E", + "\u314B", + "\u110F", + "\u314C", + "\u1110", + "\u314D", + "\u1111", + "\u314E", + "\u1112", + "\u314F", + "\u1161", + "\u3150", + "\u1162", + "\u3151", + "\u1163", + "\u3152", + "\u1164", + "\u3153", + "\u1165", + "\u3154", + "\u1166", + "\u3155", + "\u1167", + "\u3156", + "\u1168", + "\u3157", + "\u1169", + "\u3158", + "\u116A", + "\u3159", + "\u116B", + "\u315A", + "\u116C", + "\u315B", + "\u116D", + "\u315C", + "\u116E", + "\u315D", + "\u116F", + "\u315E", + "\u1170", + "\u315F", + "\u1171", + "\u3160", + "\u1172", + "\u3161", + "\u1173", + "\u3162", + "\u1174", + "\u3163", + "\u1175", + "\u3164", + "\u1160", + "\u3165", + "\u1114", + "\u3166", + "\u1115", + "\u3167", + "\u11C7", + "\u3168", + "\u11C8", + "\u3169", + "\u11CC", + "\u316A", + "\u11CE", + "\u316B", + "\u11D3", + "\u316C", + "\u11D7", + "\u316D", + "\u11D9", + "\u316E", + "\u111C", + "\u316F", + "\u11DD", + "\u3170", + "\u11DF", + "\u3171", + "\u111D", + "\u3172", + "\u111E", + "\u3173", + "\u1120", + "\u3174", + "\u1122", + "\u3175", + "\u1123", + "\u3176", + "\u1127", + "\u3177", + "\u1129", + "\u3178", + "\u112B", + "\u3179", + "\u112C", + "\u317A", + "\u112D", + "\u317B", + "\u112E", + "\u317C", + "\u112F", + "\u317D", + "\u1132", + "\u317E", + "\u1136", + "\u317F", + "\u1140", + "\u3180", + "\u1147", + "\u3181", + "\u114C", + "\u3182", + "\u11F1", + "\u3183", + "\u11F2", + "\u3184", + "\u1157", + "\u3185", + "\u1158", + "\u3186", + "\u1159", + "\u3187", + "\u1184", + "\u3188", + "\u1185", + "\u3189", + "\u1188", + "\u318A", + "\u1191", + "\u318B", + "\u1192", + "\u318C", + "\u1194", + "\u318D", + "\u119E", + "\u318E", + "\u11A1", + "\u3200", + "\u0028\u1100\u0029", + "\u3201", + "\u0028\u1102\u0029", + "\u3202", + "\u0028\u1103\u0029", + "\u3203", + "\u0028\u1105\u0029", + "\u3204", + "\u0028\u1106\u0029", + "\u3205", + "\u0028\u1107\u0029", + "\u3206", + "\u0028\u1109\u0029", + "\u3207", + "\u0028\u110B\u0029", + "\u3208", + "\u0028\u110C\u0029", + "\u3209", + "\u0028\u110E\u0029", + "\u320A", + "\u0028\u110F\u0029", + "\u320B", + "\u0028\u1110\u0029", + "\u320C", + "\u0028\u1111\u0029", + "\u320D", + "\u0028\u1112\u0029", + "\u320E", + "\u0028\u1100\u1161\u0029", + "\u320F", + "\u0028\u1102\u1161\u0029", + "\u3210", + "\u0028\u1103\u1161\u0029", + "\u3211", + "\u0028\u1105\u1161\u0029", + "\u3212", + "\u0028\u1106\u1161\u0029", + "\u3213", + "\u0028\u1107\u1161\u0029", + "\u3214", + "\u0028\u1109\u1161\u0029", + "\u3215", + "\u0028\u110B\u1161\u0029", + "\u3216", + "\u0028\u110C\u1161\u0029", + "\u3217", + "\u0028\u110E\u1161\u0029", + "\u3218", + "\u0028\u110F\u1161\u0029", + "\u3219", + "\u0028\u1110\u1161\u0029", + "\u321A", + "\u0028\u1111\u1161\u0029", + "\u321B", + "\u0028\u1112\u1161\u0029", + "\u321C", + "\u0028\u110C\u116E\u0029", + "\u321D", + "\u0028\u110B\u1169\u110C\u1165\u11AB\u0029", + "\u321E", + "\u0028\u110B\u1169\u1112\u116E\u0029", + "\u3220", + "\u0028\u4E00\u0029", + "\u3221", + "\u0028\u4E8C\u0029", + "\u3222", + "\u0028\u4E09\u0029", + "\u3223", + "\u0028\u56DB\u0029", + "\u3224", + "\u0028\u4E94\u0029", + "\u3225", + "\u0028\u516D\u0029", + "\u3226", + "\u0028\u4E03\u0029", + "\u3227", + "\u0028\u516B\u0029", + "\u3228", + "\u0028\u4E5D\u0029", + "\u3229", + "\u0028\u5341\u0029", + "\u322A", + "\u0028\u6708\u0029", + "\u322B", + "\u0028\u706B\u0029", + "\u322C", + "\u0028\u6C34\u0029", + "\u322D", + "\u0028\u6728\u0029", + "\u322E", + "\u0028\u91D1\u0029", + "\u322F", + "\u0028\u571F\u0029", + "\u3230", + "\u0028\u65E5\u0029", + "\u3231", + "\u0028\u682A\u0029", + "\u3232", + "\u0028\u6709\u0029", + "\u3233", + "\u0028\u793E\u0029", + "\u3234", + "\u0028\u540D\u0029", + "\u3235", + "\u0028\u7279\u0029", + "\u3236", + "\u0028\u8CA1\u0029", + "\u3237", + "\u0028\u795D\u0029", + "\u3238", + "\u0028\u52B4\u0029", + "\u3239", + "\u0028\u4EE3\u0029", + "\u323A", + "\u0028\u547C\u0029", + "\u323B", + "\u0028\u5B66\u0029", + "\u323C", + "\u0028\u76E3\u0029", + "\u323D", + "\u0028\u4F01\u0029", + "\u323E", + "\u0028\u8CC7\u0029", + "\u323F", + "\u0028\u5354\u0029", + "\u3240", + "\u0028\u796D\u0029", + "\u3241", + "\u0028\u4F11\u0029", + "\u3242", + "\u0028\u81EA\u0029", + "\u3243", + "\u0028\u81F3\u0029", + "\u32C0", + "\u0031\u6708", + "\u32C1", + "\u0032\u6708", + "\u32C2", + "\u0033\u6708", + "\u32C3", + "\u0034\u6708", + "\u32C4", + "\u0035\u6708", + "\u32C5", + "\u0036\u6708", + "\u32C6", + "\u0037\u6708", + "\u32C7", + "\u0038\u6708", + "\u32C8", + "\u0039\u6708", + "\u32C9", + "\u0031\u0030\u6708", + "\u32CA", + "\u0031\u0031\u6708", + "\u32CB", + "\u0031\u0032\u6708", + "\u3358", + "\u0030\u70B9", + "\u3359", + "\u0031\u70B9", + "\u335A", + "\u0032\u70B9", + "\u335B", + "\u0033\u70B9", + "\u335C", + "\u0034\u70B9", + "\u335D", + "\u0035\u70B9", + "\u335E", + "\u0036\u70B9", + "\u335F", + "\u0037\u70B9", + "\u3360", + "\u0038\u70B9", + "\u3361", + "\u0039\u70B9", + "\u3362", + "\u0031\u0030\u70B9", + "\u3363", + "\u0031\u0031\u70B9", + "\u3364", + "\u0031\u0032\u70B9", + "\u3365", + "\u0031\u0033\u70B9", + "\u3366", + "\u0031\u0034\u70B9", + "\u3367", + "\u0031\u0035\u70B9", + "\u3368", + "\u0031\u0036\u70B9", + "\u3369", + "\u0031\u0037\u70B9", + "\u336A", + "\u0031\u0038\u70B9", + "\u336B", + "\u0031\u0039\u70B9", + "\u336C", + "\u0032\u0030\u70B9", + "\u336D", + "\u0032\u0031\u70B9", + "\u336E", + "\u0032\u0032\u70B9", + "\u336F", + "\u0032\u0033\u70B9", + "\u3370", + "\u0032\u0034\u70B9", + "\u33E0", + "\u0031\u65E5", + "\u33E1", + "\u0032\u65E5", + "\u33E2", + "\u0033\u65E5", + "\u33E3", + "\u0034\u65E5", + "\u33E4", + "\u0035\u65E5", + "\u33E5", + "\u0036\u65E5", + "\u33E6", + "\u0037\u65E5", + "\u33E7", + "\u0038\u65E5", + "\u33E8", + "\u0039\u65E5", + "\u33E9", + "\u0031\u0030\u65E5", + "\u33EA", + "\u0031\u0031\u65E5", + "\u33EB", + "\u0031\u0032\u65E5", + "\u33EC", + "\u0031\u0033\u65E5", + "\u33ED", + "\u0031\u0034\u65E5", + "\u33EE", + "\u0031\u0035\u65E5", + "\u33EF", + "\u0031\u0036\u65E5", + "\u33F0", + "\u0031\u0037\u65E5", + "\u33F1", + "\u0031\u0038\u65E5", + "\u33F2", + "\u0031\u0039\u65E5", + "\u33F3", + "\u0032\u0030\u65E5", + "\u33F4", + "\u0032\u0031\u65E5", + "\u33F5", + "\u0032\u0032\u65E5", + "\u33F6", + "\u0032\u0033\u65E5", + "\u33F7", + "\u0032\u0034\u65E5", + "\u33F8", + "\u0032\u0035\u65E5", + "\u33F9", + "\u0032\u0036\u65E5", + "\u33FA", + "\u0032\u0037\u65E5", + "\u33FB", + "\u0032\u0038\u65E5", + "\u33FC", + "\u0032\u0039\u65E5", + "\u33FD", + "\u0033\u0030\u65E5", + "\u33FE", + "\u0033\u0031\u65E5", + "\uFB00", + "\u0066\u0066", + "\uFB01", + "\u0066\u0069", + "\uFB02", + "\u0066\u006C", + "\uFB03", + "\u0066\u0066\u0069", + "\uFB04", + "\u0066\u0066\u006C", + "\uFB05", + "\u017F\u0074", + "\uFB06", + "\u0073\u0074", + "\uFB13", + "\u0574\u0576", + "\uFB14", + "\u0574\u0565", + "\uFB15", + "\u0574\u056B", + "\uFB16", + "\u057E\u0576", + "\uFB17", + "\u0574\u056D", + "\uFB4F", + "\u05D0\u05DC", + "\uFB50", + "\u0671", + "\uFB51", + "\u0671", + "\uFB52", + "\u067B", + "\uFB53", + "\u067B", + "\uFB54", + "\u067B", + "\uFB55", + "\u067B", + "\uFB56", + "\u067E", + "\uFB57", + "\u067E", + "\uFB58", + "\u067E", + "\uFB59", + "\u067E", + "\uFB5A", + "\u0680", + "\uFB5B", + "\u0680", + "\uFB5C", + "\u0680", + "\uFB5D", + "\u0680", + "\uFB5E", + "\u067A", + "\uFB5F", + "\u067A", + "\uFB60", + "\u067A", + "\uFB61", + "\u067A", + "\uFB62", + "\u067F", + "\uFB63", + "\u067F", + "\uFB64", + "\u067F", + "\uFB65", + "\u067F", + "\uFB66", + "\u0679", + "\uFB67", + "\u0679", + "\uFB68", + "\u0679", + "\uFB69", + "\u0679", + "\uFB6A", + "\u06A4", + "\uFB6B", + "\u06A4", + "\uFB6C", + "\u06A4", + "\uFB6D", + "\u06A4", + "\uFB6E", + "\u06A6", + "\uFB6F", + "\u06A6", + "\uFB70", + "\u06A6", + "\uFB71", + "\u06A6", + "\uFB72", + "\u0684", + "\uFB73", + "\u0684", + "\uFB74", + "\u0684", + "\uFB75", + "\u0684", + "\uFB76", + "\u0683", + "\uFB77", + "\u0683", + "\uFB78", + "\u0683", + "\uFB79", + "\u0683", + "\uFB7A", + "\u0686", + "\uFB7B", + "\u0686", + "\uFB7C", + "\u0686", + "\uFB7D", + "\u0686", + "\uFB7E", + "\u0687", + "\uFB7F", + "\u0687", + "\uFB80", + "\u0687", + "\uFB81", + "\u0687", + "\uFB82", + "\u068D", + "\uFB83", + "\u068D", + "\uFB84", + "\u068C", + "\uFB85", + "\u068C", + "\uFB86", + "\u068E", + "\uFB87", + "\u068E", + "\uFB88", + "\u0688", + "\uFB89", + "\u0688", + "\uFB8A", + "\u0698", + "\uFB8B", + "\u0698", + "\uFB8C", + "\u0691", + "\uFB8D", + "\u0691", + "\uFB8E", + "\u06A9", + "\uFB8F", + "\u06A9", + "\uFB90", + "\u06A9", + "\uFB91", + "\u06A9", + "\uFB92", + "\u06AF", + "\uFB93", + "\u06AF", + "\uFB94", + "\u06AF", + "\uFB95", + "\u06AF", + "\uFB96", + "\u06B3", + "\uFB97", + "\u06B3", + "\uFB98", + "\u06B3", + "\uFB99", + "\u06B3", + "\uFB9A", + "\u06B1", + "\uFB9B", + "\u06B1", + "\uFB9C", + "\u06B1", + "\uFB9D", + "\u06B1", + "\uFB9E", + "\u06BA", + "\uFB9F", + "\u06BA", + "\uFBA0", + "\u06BB", + "\uFBA1", + "\u06BB", + "\uFBA2", + "\u06BB", + "\uFBA3", + "\u06BB", + "\uFBA4", + "\u06C0", + "\uFBA5", + "\u06C0", + "\uFBA6", + "\u06C1", + "\uFBA7", + "\u06C1", + "\uFBA8", + "\u06C1", + "\uFBA9", + "\u06C1", + "\uFBAA", + "\u06BE", + "\uFBAB", + "\u06BE", + "\uFBAC", + "\u06BE", + "\uFBAD", + "\u06BE", + "\uFBAE", + "\u06D2", + "\uFBAF", + "\u06D2", + "\uFBB0", + "\u06D3", + "\uFBB1", + "\u06D3", + "\uFBD3", + "\u06AD", + "\uFBD4", + "\u06AD", + "\uFBD5", + "\u06AD", + "\uFBD6", + "\u06AD", + "\uFBD7", + "\u06C7", + "\uFBD8", + "\u06C7", + "\uFBD9", + "\u06C6", + "\uFBDA", + "\u06C6", + "\uFBDB", + "\u06C8", + "\uFBDC", + "\u06C8", + "\uFBDD", + "\u0677", + "\uFBDE", + "\u06CB", + "\uFBDF", + "\u06CB", + "\uFBE0", + "\u06C5", + "\uFBE1", + "\u06C5", + "\uFBE2", + "\u06C9", + "\uFBE3", + "\u06C9", + "\uFBE4", + "\u06D0", + "\uFBE5", + "\u06D0", + "\uFBE6", + "\u06D0", + "\uFBE7", + "\u06D0", + "\uFBE8", + "\u0649", + "\uFBE9", + "\u0649", + "\uFBEA", + "\u0626\u0627", + "\uFBEB", + "\u0626\u0627", + "\uFBEC", + "\u0626\u06D5", + "\uFBED", + "\u0626\u06D5", + "\uFBEE", + "\u0626\u0648", + "\uFBEF", + "\u0626\u0648", + "\uFBF0", + "\u0626\u06C7", + "\uFBF1", + "\u0626\u06C7", + "\uFBF2", + "\u0626\u06C6", + "\uFBF3", + "\u0626\u06C6", + "\uFBF4", + "\u0626\u06C8", + "\uFBF5", + "\u0626\u06C8", + "\uFBF6", + "\u0626\u06D0", + "\uFBF7", + "\u0626\u06D0", + "\uFBF8", + "\u0626\u06D0", + "\uFBF9", + "\u0626\u0649", + "\uFBFA", + "\u0626\u0649", + "\uFBFB", + "\u0626\u0649", + "\uFBFC", + "\u06CC", + "\uFBFD", + "\u06CC", + "\uFBFE", + "\u06CC", + "\uFBFF", + "\u06CC", + "\uFC00", + "\u0626\u062C", + "\uFC01", + "\u0626\u062D", + "\uFC02", + "\u0626\u0645", + "\uFC03", + "\u0626\u0649", + "\uFC04", + "\u0626\u064A", + "\uFC05", + "\u0628\u062C", + "\uFC06", + "\u0628\u062D", + "\uFC07", + "\u0628\u062E", + "\uFC08", + "\u0628\u0645", + "\uFC09", + "\u0628\u0649", + "\uFC0A", + "\u0628\u064A", + "\uFC0B", + "\u062A\u062C", + "\uFC0C", + "\u062A\u062D", + "\uFC0D", + "\u062A\u062E", + "\uFC0E", + "\u062A\u0645", + "\uFC0F", + "\u062A\u0649", + "\uFC10", + "\u062A\u064A", + "\uFC11", + "\u062B\u062C", + "\uFC12", + "\u062B\u0645", + "\uFC13", + "\u062B\u0649", + "\uFC14", + "\u062B\u064A", + "\uFC15", + "\u062C\u062D", + "\uFC16", + "\u062C\u0645", + "\uFC17", + "\u062D\u062C", + "\uFC18", + "\u062D\u0645", + "\uFC19", + "\u062E\u062C", + "\uFC1A", + "\u062E\u062D", + "\uFC1B", + "\u062E\u0645", + "\uFC1C", + "\u0633\u062C", + "\uFC1D", + "\u0633\u062D", + "\uFC1E", + "\u0633\u062E", + "\uFC1F", + "\u0633\u0645", + "\uFC20", + "\u0635\u062D", + "\uFC21", + "\u0635\u0645", + "\uFC22", + "\u0636\u062C", + "\uFC23", + "\u0636\u062D", + "\uFC24", + "\u0636\u062E", + "\uFC25", + "\u0636\u0645", + "\uFC26", + "\u0637\u062D", + "\uFC27", + "\u0637\u0645", + "\uFC28", + "\u0638\u0645", + "\uFC29", + "\u0639\u062C", + "\uFC2A", + "\u0639\u0645", + "\uFC2B", + "\u063A\u062C", + "\uFC2C", + "\u063A\u0645", + "\uFC2D", + "\u0641\u062C", + "\uFC2E", + "\u0641\u062D", + "\uFC2F", + "\u0641\u062E", + "\uFC30", + "\u0641\u0645", + "\uFC31", + "\u0641\u0649", + "\uFC32", + "\u0641\u064A", + "\uFC33", + "\u0642\u062D", + "\uFC34", + "\u0642\u0645", + "\uFC35", + "\u0642\u0649", + "\uFC36", + "\u0642\u064A", + "\uFC37", + "\u0643\u0627", + "\uFC38", + "\u0643\u062C", + "\uFC39", + "\u0643\u062D", + "\uFC3A", + "\u0643\u062E", + "\uFC3B", + "\u0643\u0644", + "\uFC3C", + "\u0643\u0645", + "\uFC3D", + "\u0643\u0649", + "\uFC3E", + "\u0643\u064A", + "\uFC3F", + "\u0644\u062C", + "\uFC40", + "\u0644\u062D", + "\uFC41", + "\u0644\u062E", + "\uFC42", + "\u0644\u0645", + "\uFC43", + "\u0644\u0649", + "\uFC44", + "\u0644\u064A", + "\uFC45", + "\u0645\u062C", + "\uFC46", + "\u0645\u062D", + "\uFC47", + "\u0645\u062E", + "\uFC48", + "\u0645\u0645", + "\uFC49", + "\u0645\u0649", + "\uFC4A", + "\u0645\u064A", + "\uFC4B", + "\u0646\u062C", + "\uFC4C", + "\u0646\u062D", + "\uFC4D", + "\u0646\u062E", + "\uFC4E", + "\u0646\u0645", + "\uFC4F", + "\u0646\u0649", + "\uFC50", + "\u0646\u064A", + "\uFC51", + "\u0647\u062C", + "\uFC52", + "\u0647\u0645", + "\uFC53", + "\u0647\u0649", + "\uFC54", + "\u0647\u064A", + "\uFC55", + "\u064A\u062C", + "\uFC56", + "\u064A\u062D", + "\uFC57", + "\u064A\u062E", + "\uFC58", + "\u064A\u0645", + "\uFC59", + "\u064A\u0649", + "\uFC5A", + "\u064A\u064A", + "\uFC5B", + "\u0630\u0670", + "\uFC5C", + "\u0631\u0670", + "\uFC5D", + "\u0649\u0670", + "\uFC5E", + "\u0020\u064C\u0651", + "\uFC5F", + "\u0020\u064D\u0651", + "\uFC60", + "\u0020\u064E\u0651", + "\uFC61", + "\u0020\u064F\u0651", + "\uFC62", + "\u0020\u0650\u0651", + "\uFC63", + "\u0020\u0651\u0670", + "\uFC64", + "\u0626\u0631", + "\uFC65", + "\u0626\u0632", + "\uFC66", + "\u0626\u0645", + "\uFC67", + "\u0626\u0646", + "\uFC68", + "\u0626\u0649", + "\uFC69", + "\u0626\u064A", + "\uFC6A", + "\u0628\u0631", + "\uFC6B", + "\u0628\u0632", + "\uFC6C", + "\u0628\u0645", + "\uFC6D", + "\u0628\u0646", + "\uFC6E", + "\u0628\u0649", + "\uFC6F", + "\u0628\u064A", + "\uFC70", + "\u062A\u0631", + "\uFC71", + "\u062A\u0632", + "\uFC72", + "\u062A\u0645", + "\uFC73", + "\u062A\u0646", + "\uFC74", + "\u062A\u0649", + "\uFC75", + "\u062A\u064A", + "\uFC76", + "\u062B\u0631", + "\uFC77", + "\u062B\u0632", + "\uFC78", + "\u062B\u0645", + "\uFC79", + "\u062B\u0646", + "\uFC7A", + "\u062B\u0649", + "\uFC7B", + "\u062B\u064A", + "\uFC7C", + "\u0641\u0649", + "\uFC7D", + "\u0641\u064A", + "\uFC7E", + "\u0642\u0649", + "\uFC7F", + "\u0642\u064A", + "\uFC80", + "\u0643\u0627", + "\uFC81", + "\u0643\u0644", + "\uFC82", + "\u0643\u0645", + "\uFC83", + "\u0643\u0649", + "\uFC84", + "\u0643\u064A", + "\uFC85", + "\u0644\u0645", + "\uFC86", + "\u0644\u0649", + "\uFC87", + "\u0644\u064A", + "\uFC88", + "\u0645\u0627", + "\uFC89", + "\u0645\u0645", + "\uFC8A", + "\u0646\u0631", + "\uFC8B", + "\u0646\u0632", + "\uFC8C", + "\u0646\u0645", + "\uFC8D", + "\u0646\u0646", + "\uFC8E", + "\u0646\u0649", + "\uFC8F", + "\u0646\u064A", + "\uFC90", + "\u0649\u0670", + "\uFC91", + "\u064A\u0631", + "\uFC92", + "\u064A\u0632", + "\uFC93", + "\u064A\u0645", + "\uFC94", + "\u064A\u0646", + "\uFC95", + "\u064A\u0649", + "\uFC96", + "\u064A\u064A", + "\uFC97", + "\u0626\u062C", + "\uFC98", + "\u0626\u062D", + "\uFC99", + "\u0626\u062E", + "\uFC9A", + "\u0626\u0645", + "\uFC9B", + "\u0626\u0647", + "\uFC9C", + "\u0628\u062C", + "\uFC9D", + "\u0628\u062D", + "\uFC9E", + "\u0628\u062E", + "\uFC9F", + "\u0628\u0645", + "\uFCA0", + "\u0628\u0647", + "\uFCA1", + "\u062A\u062C", + "\uFCA2", + "\u062A\u062D", + "\uFCA3", + "\u062A\u062E", + "\uFCA4", + "\u062A\u0645", + "\uFCA5", + "\u062A\u0647", + "\uFCA6", + "\u062B\u0645", + "\uFCA7", + "\u062C\u062D", + "\uFCA8", + "\u062C\u0645", + "\uFCA9", + "\u062D\u062C", + "\uFCAA", + "\u062D\u0645", + "\uFCAB", + "\u062E\u062C", + "\uFCAC", + "\u062E\u0645", + "\uFCAD", + "\u0633\u062C", + "\uFCAE", + "\u0633\u062D", + "\uFCAF", + "\u0633\u062E", + "\uFCB0", + "\u0633\u0645", + "\uFCB1", + "\u0635\u062D", + "\uFCB2", + "\u0635\u062E", + "\uFCB3", + "\u0635\u0645", + "\uFCB4", + "\u0636\u062C", + "\uFCB5", + "\u0636\u062D", + "\uFCB6", + "\u0636\u062E", + "\uFCB7", + "\u0636\u0645", + "\uFCB8", + "\u0637\u062D", + "\uFCB9", + "\u0638\u0645", + "\uFCBA", + "\u0639\u062C", + "\uFCBB", + "\u0639\u0645", + "\uFCBC", + "\u063A\u062C", + "\uFCBD", + "\u063A\u0645", + "\uFCBE", + "\u0641\u062C", + "\uFCBF", + "\u0641\u062D", + "\uFCC0", + "\u0641\u062E", + "\uFCC1", + "\u0641\u0645", + "\uFCC2", + "\u0642\u062D", + "\uFCC3", + "\u0642\u0645", + "\uFCC4", + "\u0643\u062C", + "\uFCC5", + "\u0643\u062D", + "\uFCC6", + "\u0643\u062E", + "\uFCC7", + "\u0643\u0644", + "\uFCC8", + "\u0643\u0645", + "\uFCC9", + "\u0644\u062C", + "\uFCCA", + "\u0644\u062D", + "\uFCCB", + "\u0644\u062E", + "\uFCCC", + "\u0644\u0645", + "\uFCCD", + "\u0644\u0647", + "\uFCCE", + "\u0645\u062C", + "\uFCCF", + "\u0645\u062D", + "\uFCD0", + "\u0645\u062E", + "\uFCD1", + "\u0645\u0645", + "\uFCD2", + "\u0646\u062C", + "\uFCD3", + "\u0646\u062D", + "\uFCD4", + "\u0646\u062E", + "\uFCD5", + "\u0646\u0645", + "\uFCD6", + "\u0646\u0647", + "\uFCD7", + "\u0647\u062C", + "\uFCD8", + "\u0647\u0645", + "\uFCD9", + "\u0647\u0670", + "\uFCDA", + "\u064A\u062C", + "\uFCDB", + "\u064A\u062D", + "\uFCDC", + "\u064A\u062E", + "\uFCDD", + "\u064A\u0645", + "\uFCDE", + "\u064A\u0647", + "\uFCDF", + "\u0626\u0645", + "\uFCE0", + "\u0626\u0647", + "\uFCE1", + "\u0628\u0645", + "\uFCE2", + "\u0628\u0647", + "\uFCE3", + "\u062A\u0645", + "\uFCE4", + "\u062A\u0647", + "\uFCE5", + "\u062B\u0645", + "\uFCE6", + "\u062B\u0647", + "\uFCE7", + "\u0633\u0645", + "\uFCE8", + "\u0633\u0647", + "\uFCE9", + "\u0634\u0645", + "\uFCEA", + "\u0634\u0647", + "\uFCEB", + "\u0643\u0644", + "\uFCEC", + "\u0643\u0645", + "\uFCED", + "\u0644\u0645", + "\uFCEE", + "\u0646\u0645", + "\uFCEF", + "\u0646\u0647", + "\uFCF0", + "\u064A\u0645", + "\uFCF1", + "\u064A\u0647", + "\uFCF2", + "\u0640\u064E\u0651", + "\uFCF3", + "\u0640\u064F\u0651", + "\uFCF4", + "\u0640\u0650\u0651", + "\uFCF5", + "\u0637\u0649", + "\uFCF6", + "\u0637\u064A", + "\uFCF7", + "\u0639\u0649", + "\uFCF8", + "\u0639\u064A", + "\uFCF9", + "\u063A\u0649", + "\uFCFA", + "\u063A\u064A", + "\uFCFB", + "\u0633\u0649", + "\uFCFC", + "\u0633\u064A", + "\uFCFD", + "\u0634\u0649", + "\uFCFE", + "\u0634\u064A", + "\uFCFF", + "\u062D\u0649", + "\uFD00", + "\u062D\u064A", + "\uFD01", + "\u062C\u0649", + "\uFD02", + "\u062C\u064A", + "\uFD03", + "\u062E\u0649", + "\uFD04", + "\u062E\u064A", + "\uFD05", + "\u0635\u0649", + "\uFD06", + "\u0635\u064A", + "\uFD07", + "\u0636\u0649", + "\uFD08", + "\u0636\u064A", + "\uFD09", + "\u0634\u062C", + "\uFD0A", + "\u0634\u062D", + "\uFD0B", + "\u0634\u062E", + "\uFD0C", + "\u0634\u0645", + "\uFD0D", + "\u0634\u0631", + "\uFD0E", + "\u0633\u0631", + "\uFD0F", + "\u0635\u0631", + "\uFD10", + "\u0636\u0631", + "\uFD11", + "\u0637\u0649", + "\uFD12", + "\u0637\u064A", + "\uFD13", + "\u0639\u0649", + "\uFD14", + "\u0639\u064A", + "\uFD15", + "\u063A\u0649", + "\uFD16", + "\u063A\u064A", + "\uFD17", + "\u0633\u0649", + "\uFD18", + "\u0633\u064A", + "\uFD19", + "\u0634\u0649", + "\uFD1A", + "\u0634\u064A", + "\uFD1B", + "\u062D\u0649", + "\uFD1C", + "\u062D\u064A", + "\uFD1D", + "\u062C\u0649", + "\uFD1E", + "\u062C\u064A", + "\uFD1F", + "\u062E\u0649", + "\uFD20", + "\u062E\u064A", + "\uFD21", + "\u0635\u0649", + "\uFD22", + "\u0635\u064A", + "\uFD23", + "\u0636\u0649", + "\uFD24", + "\u0636\u064A", + "\uFD25", + "\u0634\u062C", + "\uFD26", + "\u0634\u062D", + "\uFD27", + "\u0634\u062E", + "\uFD28", + "\u0634\u0645", + "\uFD29", + "\u0634\u0631", + "\uFD2A", + "\u0633\u0631", + "\uFD2B", + "\u0635\u0631", + "\uFD2C", + "\u0636\u0631", + "\uFD2D", + "\u0634\u062C", + "\uFD2E", + "\u0634\u062D", + "\uFD2F", + "\u0634\u062E", + "\uFD30", + "\u0634\u0645", + "\uFD31", + "\u0633\u0647", + "\uFD32", + "\u0634\u0647", + "\uFD33", + "\u0637\u0645", + "\uFD34", + "\u0633\u062C", + "\uFD35", + "\u0633\u062D", + "\uFD36", + "\u0633\u062E", + "\uFD37", + "\u0634\u062C", + "\uFD38", + "\u0634\u062D", + "\uFD39", + "\u0634\u062E", + "\uFD3A", + "\u0637\u0645", + "\uFD3B", + "\u0638\u0645", + "\uFD3C", + "\u0627\u064B", + "\uFD3D", + "\u0627\u064B", + "\uFD50", + "\u062A\u062C\u0645", + "\uFD51", + "\u062A\u062D\u062C", + "\uFD52", + "\u062A\u062D\u062C", + "\uFD53", + "\u062A\u062D\u0645", + "\uFD54", + "\u062A\u062E\u0645", + "\uFD55", + "\u062A\u0645\u062C", + "\uFD56", + "\u062A\u0645\u062D", + "\uFD57", + "\u062A\u0645\u062E", + "\uFD58", + "\u062C\u0645\u062D", + "\uFD59", + "\u062C\u0645\u062D", + "\uFD5A", + "\u062D\u0645\u064A", + "\uFD5B", + "\u062D\u0645\u0649", + "\uFD5C", + "\u0633\u062D\u062C", + "\uFD5D", + "\u0633\u062C\u062D", + "\uFD5E", + "\u0633\u062C\u0649", + "\uFD5F", + "\u0633\u0645\u062D", + "\uFD60", + "\u0633\u0645\u062D", + "\uFD61", + "\u0633\u0645\u062C", + "\uFD62", + "\u0633\u0645\u0645", + "\uFD63", + "\u0633\u0645\u0645", + "\uFD64", + "\u0635\u062D\u062D", + "\uFD65", + "\u0635\u062D\u062D", + "\uFD66", + "\u0635\u0645\u0645", + "\uFD67", + "\u0634\u062D\u0645", + "\uFD68", + "\u0634\u062D\u0645", + "\uFD69", + "\u0634\u062C\u064A", + "\uFD6A", + "\u0634\u0645\u062E", + "\uFD6B", + "\u0634\u0645\u062E", + "\uFD6C", + "\u0634\u0645\u0645", + "\uFD6D", + "\u0634\u0645\u0645", + "\uFD6E", + "\u0636\u062D\u0649", + "\uFD6F", + "\u0636\u062E\u0645", + "\uFD70", + "\u0636\u062E\u0645", + "\uFD71", + "\u0637\u0645\u062D", + "\uFD72", + "\u0637\u0645\u062D", + "\uFD73", + "\u0637\u0645\u0645", + "\uFD74", + "\u0637\u0645\u064A", + "\uFD75", + "\u0639\u062C\u0645", + "\uFD76", + "\u0639\u0645\u0645", + "\uFD77", + "\u0639\u0645\u0645", + "\uFD78", + "\u0639\u0645\u0649", + "\uFD79", + "\u063A\u0645\u0645", + "\uFD7A", + "\u063A\u0645\u064A", + "\uFD7B", + "\u063A\u0645\u0649", + "\uFD7C", + "\u0641\u062E\u0645", + "\uFD7D", + "\u0641\u062E\u0645", + "\uFD7E", + "\u0642\u0645\u062D", + "\uFD7F", + "\u0642\u0645\u0645", + "\uFD80", + "\u0644\u062D\u0645", + "\uFD81", + "\u0644\u062D\u064A", + "\uFD82", + "\u0644\u062D\u0649", + "\uFD83", + "\u0644\u062C\u062C", + "\uFD84", + "\u0644\u062C\u062C", + "\uFD85", + "\u0644\u062E\u0645", + "\uFD86", + "\u0644\u062E\u0645", + "\uFD87", + "\u0644\u0645\u062D", + "\uFD88", + "\u0644\u0645\u062D", + "\uFD89", + "\u0645\u062D\u062C", + "\uFD8A", + "\u0645\u062D\u0645", + "\uFD8B", + "\u0645\u062D\u064A", + "\uFD8C", + "\u0645\u062C\u062D", + "\uFD8D", + "\u0645\u062C\u0645", + "\uFD8E", + "\u0645\u062E\u062C", + "\uFD8F", + "\u0645\u062E\u0645", + "\uFD92", + "\u0645\u062C\u062E", + "\uFD93", + "\u0647\u0645\u062C", + "\uFD94", + "\u0647\u0645\u0645", + "\uFD95", + "\u0646\u062D\u0645", + "\uFD96", + "\u0646\u062D\u0649", + "\uFD97", + "\u0646\u062C\u0645", + "\uFD98", + "\u0646\u062C\u0645", + "\uFD99", + "\u0646\u062C\u0649", + "\uFD9A", + "\u0646\u0645\u064A", + "\uFD9B", + "\u0646\u0645\u0649", + "\uFD9C", + "\u064A\u0645\u0645", + "\uFD9D", + "\u064A\u0645\u0645", + "\uFD9E", + "\u0628\u062E\u064A", + "\uFD9F", + "\u062A\u062C\u064A", + "\uFDA0", + "\u062A\u062C\u0649", + "\uFDA1", + "\u062A\u062E\u064A", + "\uFDA2", + "\u062A\u062E\u0649", + "\uFDA3", + "\u062A\u0645\u064A", + "\uFDA4", + "\u062A\u0645\u0649", + "\uFDA5", + "\u062C\u0645\u064A", + "\uFDA6", + "\u062C\u062D\u0649", + "\uFDA7", + "\u062C\u0645\u0649", + "\uFDA8", + "\u0633\u062E\u0649", + "\uFDA9", + "\u0635\u062D\u064A", + "\uFDAA", + "\u0634\u062D\u064A", + "\uFDAB", + "\u0636\u062D\u064A", + "\uFDAC", + "\u0644\u062C\u064A", + "\uFDAD", + "\u0644\u0645\u064A", + "\uFDAE", + "\u064A\u062D\u064A", + "\uFDAF", + "\u064A\u062C\u064A", + "\uFDB0", + "\u064A\u0645\u064A", + "\uFDB1", + "\u0645\u0645\u064A", + "\uFDB2", + "\u0642\u0645\u064A", + "\uFDB3", + "\u0646\u062D\u064A", + "\uFDB4", + "\u0642\u0645\u062D", + "\uFDB5", + "\u0644\u062D\u0645", + "\uFDB6", + "\u0639\u0645\u064A", + "\uFDB7", + "\u0643\u0645\u064A", + "\uFDB8", + "\u0646\u062C\u062D", + "\uFDB9", + "\u0645\u062E\u064A", + "\uFDBA", + "\u0644\u062C\u0645", + "\uFDBB", + "\u0643\u0645\u0645", + "\uFDBC", + "\u0644\u062C\u0645", + "\uFDBD", + "\u0646\u062C\u062D", + "\uFDBE", + "\u062C\u062D\u064A", + "\uFDBF", + "\u062D\u062C\u064A", + "\uFDC0", + "\u0645\u062C\u064A", + "\uFDC1", + "\u0641\u0645\u064A", + "\uFDC2", + "\u0628\u062D\u064A", + "\uFDC3", + "\u0643\u0645\u0645", + "\uFDC4", + "\u0639\u062C\u0645", + "\uFDC5", + "\u0635\u0645\u0645", + "\uFDC6", + "\u0633\u062E\u064A", + "\uFDC7", + "\u0646\u062C\u064A", + "\uFE49", + "\u203E", + "\uFE4A", + "\u203E", + "\uFE4B", + "\u203E", + "\uFE4C", + "\u203E", + "\uFE4D", + "\u005F", + "\uFE4E", + "\u005F", + "\uFE4F", + "\u005F", + "\uFE80", + "\u0621", + "\uFE81", + "\u0622", + "\uFE82", + "\u0622", + "\uFE83", + "\u0623", + "\uFE84", + "\u0623", + "\uFE85", + "\u0624", + "\uFE86", + "\u0624", + "\uFE87", + "\u0625", + "\uFE88", + "\u0625", + "\uFE89", + "\u0626", + "\uFE8A", + "\u0626", + "\uFE8B", + "\u0626", + "\uFE8C", + "\u0626", + "\uFE8D", + "\u0627", + "\uFE8E", + "\u0627", + "\uFE8F", + "\u0628", + "\uFE90", + "\u0628", + "\uFE91", + "\u0628", + "\uFE92", + "\u0628", + "\uFE93", + "\u0629", + "\uFE94", + "\u0629", + "\uFE95", + "\u062A", + "\uFE96", + "\u062A", + "\uFE97", + "\u062A", + "\uFE98", + "\u062A", + "\uFE99", + "\u062B", + "\uFE9A", + "\u062B", + "\uFE9B", + "\u062B", + "\uFE9C", + "\u062B", + "\uFE9D", + "\u062C", + "\uFE9E", + "\u062C", + "\uFE9F", + "\u062C", + "\uFEA0", + "\u062C", + "\uFEA1", + "\u062D", + "\uFEA2", + "\u062D", + "\uFEA3", + "\u062D", + "\uFEA4", + "\u062D", + "\uFEA5", + "\u062E", + "\uFEA6", + "\u062E", + "\uFEA7", + "\u062E", + "\uFEA8", + "\u062E", + "\uFEA9", + "\u062F", + "\uFEAA", + "\u062F", + "\uFEAB", + "\u0630", + "\uFEAC", + "\u0630", + "\uFEAD", + "\u0631", + "\uFEAE", + "\u0631", + "\uFEAF", + "\u0632", + "\uFEB0", + "\u0632", + "\uFEB1", + "\u0633", + "\uFEB2", + "\u0633", + "\uFEB3", + "\u0633", + "\uFEB4", + "\u0633", + "\uFEB5", + "\u0634", + "\uFEB6", + "\u0634", + "\uFEB7", + "\u0634", + "\uFEB8", + "\u0634", + "\uFEB9", + "\u0635", + "\uFEBA", + "\u0635", + "\uFEBB", + "\u0635", + "\uFEBC", + "\u0635", + "\uFEBD", + "\u0636", + "\uFEBE", + "\u0636", + "\uFEBF", + "\u0636", + "\uFEC0", + "\u0636", + "\uFEC1", + "\u0637", + "\uFEC2", + "\u0637", + "\uFEC3", + "\u0637", + "\uFEC4", + "\u0637", + "\uFEC5", + "\u0638", + "\uFEC6", + "\u0638", + "\uFEC7", + "\u0638", + "\uFEC8", + "\u0638", + "\uFEC9", + "\u0639", + "\uFECA", + "\u0639", + "\uFECB", + "\u0639", + "\uFECC", + "\u0639", + "\uFECD", + "\u063A", + "\uFECE", + "\u063A", + "\uFECF", + "\u063A", + "\uFED0", + "\u063A", + "\uFED1", + "\u0641", + "\uFED2", + "\u0641", + "\uFED3", + "\u0641", + "\uFED4", + "\u0641", + "\uFED5", + "\u0642", + "\uFED6", + "\u0642", + "\uFED7", + "\u0642", + "\uFED8", + "\u0642", + "\uFED9", + "\u0643", + "\uFEDA", + "\u0643", + "\uFEDB", + "\u0643", + "\uFEDC", + "\u0643", + "\uFEDD", + "\u0644", + "\uFEDE", + "\u0644", + "\uFEDF", + "\u0644", + "\uFEE0", + "\u0644", + "\uFEE1", + "\u0645", + "\uFEE2", + "\u0645", + "\uFEE3", + "\u0645", + "\uFEE4", + "\u0645", + "\uFEE5", + "\u0646", + "\uFEE6", + "\u0646", + "\uFEE7", + "\u0646", + "\uFEE8", + "\u0646", + "\uFEE9", + "\u0647", + "\uFEEA", + "\u0647", + "\uFEEB", + "\u0647", + "\uFEEC", + "\u0647", + "\uFEED", + "\u0648", + "\uFEEE", + "\u0648", + "\uFEEF", + "\u0649", + "\uFEF0", + "\u0649", + "\uFEF1", + "\u064A", + "\uFEF2", + "\u064A", + "\uFEF3", + "\u064A", + "\uFEF4", + "\u064A", + "\uFEF5", + "\u0644\u0622", + "\uFEF6", + "\u0644\u0622", + "\uFEF7", + "\u0644\u0623", + "\uFEF8", + "\u0644\u0623", + "\uFEF9", + "\u0644\u0625", + "\uFEFA", + "\u0644\u0625", + "\uFEFB", + "\u0644\u0627", + "\uFEFC", + "\u0644\u0627" + ]; +}); +function reverseIfRtl(chars) { + const charsLength = chars.length; + if (charsLength <= 1 || !isRTLRangeFor(chars.charCodeAt(0))) { + return chars; + } + const buf = []; + for (let ii = charsLength - 1; ii >= 0; ii--) { + buf.push(chars[ii]); + } + return buf.join(""); +} +const SpecialCharRegExp = new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$", "u"); +const CategoryCache = new Map(); +function getCharUnicodeCategory(char) { + const cachedCategory = CategoryCache.get(char); + if (cachedCategory) { + return cachedCategory; + } + const groups = char.match(SpecialCharRegExp); + const category = { + isWhitespace: !!(groups && groups[1]), + isZeroWidthDiacritic: !!(groups && groups[2]), + isInvisibleFormatMark: !!(groups && groups[3]) + }; + CategoryCache.set(char, category); + return category; +} +function clearUnicodeCaches() { + CategoryCache.clear(); +} + + +/***/ }), +/* 41 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.getSerifFonts = exports.getNonStdFontMap = exports.getGlyphMapForStandardFonts = exports.getFontNameToFileMap = void 0; +exports.getStandardFontName = getStandardFontName; +exports.getSymbolsFonts = exports.getSupplementalGlyphMapForCalibri = exports.getSupplementalGlyphMapForArialBlack = exports.getStdFontMap = void 0; + +var _core_utils = __w_pdfjs_require__(6); + +var _fonts_utils = __w_pdfjs_require__(38); + +const getStdFontMap = (0, _core_utils.getLookupTableFactory)(function (t) { + t["Times-Roman"] = "Times-Roman"; + t.Helvetica = "Helvetica"; + t.Courier = "Courier"; + t.Symbol = "Symbol"; + t["Times-Bold"] = "Times-Bold"; + t["Helvetica-Bold"] = "Helvetica-Bold"; + t["Courier-Bold"] = "Courier-Bold"; + t.ZapfDingbats = "ZapfDingbats"; + t["Times-Italic"] = "Times-Italic"; + t["Helvetica-Oblique"] = "Helvetica-Oblique"; + t["Courier-Oblique"] = "Courier-Oblique"; + t["Times-BoldItalic"] = "Times-BoldItalic"; + t["Helvetica-BoldOblique"] = "Helvetica-BoldOblique"; + t["Courier-BoldOblique"] = "Courier-BoldOblique"; + t.ArialNarrow = "Helvetica"; + t["ArialNarrow-Bold"] = "Helvetica-Bold"; + t["ArialNarrow-BoldItalic"] = "Helvetica-BoldOblique"; + t["ArialNarrow-Italic"] = "Helvetica-Oblique"; + t.ArialBlack = "Helvetica"; + t["ArialBlack-Bold"] = "Helvetica-Bold"; + t["ArialBlack-BoldItalic"] = "Helvetica-BoldOblique"; + t["ArialBlack-Italic"] = "Helvetica-Oblique"; + t["Arial-Black"] = "Helvetica"; + t["Arial-Black-Bold"] = "Helvetica-Bold"; + t["Arial-Black-BoldItalic"] = "Helvetica-BoldOblique"; + t["Arial-Black-Italic"] = "Helvetica-Oblique"; + t.Arial = "Helvetica"; + t["Arial-Bold"] = "Helvetica-Bold"; + t["Arial-BoldItalic"] = "Helvetica-BoldOblique"; + t["Arial-Italic"] = "Helvetica-Oblique"; + t.ArialMT = "Helvetica"; + t["Arial-BoldItalicMT"] = "Helvetica-BoldOblique"; + t["Arial-BoldMT"] = "Helvetica-Bold"; + t["Arial-ItalicMT"] = "Helvetica-Oblique"; + t.ArialUnicodeMS = "Helvetica"; + t["ArialUnicodeMS-Bold"] = "Helvetica-Bold"; + t["ArialUnicodeMS-BoldItalic"] = "Helvetica-BoldOblique"; + t["ArialUnicodeMS-Italic"] = "Helvetica-Oblique"; + t["Courier-BoldItalic"] = "Courier-BoldOblique"; + t["Courier-Italic"] = "Courier-Oblique"; + t.CourierNew = "Courier"; + t["CourierNew-Bold"] = "Courier-Bold"; + t["CourierNew-BoldItalic"] = "Courier-BoldOblique"; + t["CourierNew-Italic"] = "Courier-Oblique"; + t["CourierNewPS-BoldItalicMT"] = "Courier-BoldOblique"; + t["CourierNewPS-BoldMT"] = "Courier-Bold"; + t["CourierNewPS-ItalicMT"] = "Courier-Oblique"; + t.CourierNewPSMT = "Courier"; + t["Helvetica-BoldItalic"] = "Helvetica-BoldOblique"; + t["Helvetica-Italic"] = "Helvetica-Oblique"; + t["Symbol-Bold"] = "Symbol"; + t["Symbol-BoldItalic"] = "Symbol"; + t["Symbol-Italic"] = "Symbol"; + t.TimesNewRoman = "Times-Roman"; + t["TimesNewRoman-Bold"] = "Times-Bold"; + t["TimesNewRoman-BoldItalic"] = "Times-BoldItalic"; + t["TimesNewRoman-Italic"] = "Times-Italic"; + t.TimesNewRomanPS = "Times-Roman"; + t["TimesNewRomanPS-Bold"] = "Times-Bold"; + t["TimesNewRomanPS-BoldItalic"] = "Times-BoldItalic"; + t["TimesNewRomanPS-BoldItalicMT"] = "Times-BoldItalic"; + t["TimesNewRomanPS-BoldMT"] = "Times-Bold"; + t["TimesNewRomanPS-Italic"] = "Times-Italic"; + t["TimesNewRomanPS-ItalicMT"] = "Times-Italic"; + t.TimesNewRomanPSMT = "Times-Roman"; + t["TimesNewRomanPSMT-Bold"] = "Times-Bold"; + t["TimesNewRomanPSMT-BoldItalic"] = "Times-BoldItalic"; + t["TimesNewRomanPSMT-Italic"] = "Times-Italic"; +}); +exports.getStdFontMap = getStdFontMap; +const getFontNameToFileMap = (0, _core_utils.getLookupTableFactory)(function (t) { + t.Courier = "FoxitFixed.pfb"; + t["Courier-Bold"] = "FoxitFixedBold.pfb"; + t["Courier-BoldOblique"] = "FoxitFixedBoldItalic.pfb"; + t["Courier-Oblique"] = "FoxitFixedItalic.pfb"; + t.Helvetica = "FoxitSans.pfb"; + t["Helvetica-Bold"] = "FoxitSansBold.pfb"; + t["Helvetica-BoldOblique"] = "FoxitSansBoldItalic.pfb"; + t["Helvetica-Oblique"] = "FoxitSansItalic.pfb"; + t["Times-Roman"] = "FoxitSerif.pfb"; + t["Times-Bold"] = "FoxitSerifBold.pfb"; + t["Times-BoldItalic"] = "FoxitSerifBoldItalic.pfb"; + t["Times-Italic"] = "FoxitSerifItalic.pfb"; + t.Symbol = "FoxitSymbol.pfb"; + t.ZapfDingbats = "FoxitDingbats.pfb"; + t["LiberationSans-Regular"] = "LiberationSans-Regular.ttf"; + t["LiberationSans-Bold"] = "LiberationSans-Bold.ttf"; + t["LiberationSans-Italic"] = "LiberationSans-Italic.ttf"; + t["LiberationSans-BoldItalic"] = "LiberationSans-BoldItalic.ttf"; +}); +exports.getFontNameToFileMap = getFontNameToFileMap; +const getNonStdFontMap = (0, _core_utils.getLookupTableFactory)(function (t) { + t.Calibri = "Helvetica"; + t["Calibri-Bold"] = "Helvetica-Bold"; + t["Calibri-BoldItalic"] = "Helvetica-BoldOblique"; + t["Calibri-Italic"] = "Helvetica-Oblique"; + t.CenturyGothic = "Helvetica"; + t["CenturyGothic-Bold"] = "Helvetica-Bold"; + t["CenturyGothic-BoldItalic"] = "Helvetica-BoldOblique"; + t["CenturyGothic-Italic"] = "Helvetica-Oblique"; + t.ComicSansMS = "Comic Sans MS"; + t["ComicSansMS-Bold"] = "Comic Sans MS-Bold"; + t["ComicSansMS-BoldItalic"] = "Comic Sans MS-BoldItalic"; + t["ComicSansMS-Italic"] = "Comic Sans MS-Italic"; + t["ItcSymbol-Bold"] = "Helvetica-Bold"; + t["ItcSymbol-BoldItalic"] = "Helvetica-BoldOblique"; + t["ItcSymbol-Book"] = "Helvetica"; + t["ItcSymbol-BookItalic"] = "Helvetica-Oblique"; + t["ItcSymbol-Medium"] = "Helvetica"; + t["ItcSymbol-MediumItalic"] = "Helvetica-Oblique"; + t.LucidaConsole = "Courier"; + t["LucidaConsole-Bold"] = "Courier-Bold"; + t["LucidaConsole-BoldItalic"] = "Courier-BoldOblique"; + t["LucidaConsole-Italic"] = "Courier-Oblique"; + t["LucidaSans-Demi"] = "Helvetica-Bold"; + t["MS-Gothic"] = "MS Gothic"; + t["MS-Gothic-Bold"] = "MS Gothic-Bold"; + t["MS-Gothic-BoldItalic"] = "MS Gothic-BoldItalic"; + t["MS-Gothic-Italic"] = "MS Gothic-Italic"; + t["MS-Mincho"] = "MS Mincho"; + t["MS-Mincho-Bold"] = "MS Mincho-Bold"; + t["MS-Mincho-BoldItalic"] = "MS Mincho-BoldItalic"; + t["MS-Mincho-Italic"] = "MS Mincho-Italic"; + t["MS-PGothic"] = "MS PGothic"; + t["MS-PGothic-Bold"] = "MS PGothic-Bold"; + t["MS-PGothic-BoldItalic"] = "MS PGothic-BoldItalic"; + t["MS-PGothic-Italic"] = "MS PGothic-Italic"; + t["MS-PMincho"] = "MS PMincho"; + t["MS-PMincho-Bold"] = "MS PMincho-Bold"; + t["MS-PMincho-BoldItalic"] = "MS PMincho-BoldItalic"; + t["MS-PMincho-Italic"] = "MS PMincho-Italic"; + t.NuptialScript = "Times-Italic"; + t.SegoeUISymbol = "Helvetica"; + t.Wingdings = "ZapfDingbats"; + t["Wingdings-Regular"] = "ZapfDingbats"; +}); +exports.getNonStdFontMap = getNonStdFontMap; +const getSerifFonts = (0, _core_utils.getLookupTableFactory)(function (t) { + t["Adobe Jenson"] = true; + t["Adobe Text"] = true; + t.Albertus = true; + t.Aldus = true; + t.Alexandria = true; + t.Algerian = true; + t["American Typewriter"] = true; + t.Antiqua = true; + t.Apex = true; + t.Arno = true; + t.Aster = true; + t.Aurora = true; + t.Baskerville = true; + t.Bell = true; + t.Bembo = true; + t["Bembo Schoolbook"] = true; + t.Benguiat = true; + t["Berkeley Old Style"] = true; + t["Bernhard Modern"] = true; + t["Berthold City"] = true; + t.Bodoni = true; + t["Bauer Bodoni"] = true; + t["Book Antiqua"] = true; + t.Bookman = true; + t["Bordeaux Roman"] = true; + t["Californian FB"] = true; + t.Calisto = true; + t.Calvert = true; + t.Capitals = true; + t.Cambria = true; + t.Cartier = true; + t.Caslon = true; + t.Catull = true; + t.Centaur = true; + t["Century Old Style"] = true; + t["Century Schoolbook"] = true; + t.Chaparral = true; + t["Charis SIL"] = true; + t.Cheltenham = true; + t["Cholla Slab"] = true; + t.Clarendon = true; + t.Clearface = true; + t.Cochin = true; + t.Colonna = true; + t["Computer Modern"] = true; + t["Concrete Roman"] = true; + t.Constantia = true; + t["Cooper Black"] = true; + t.Corona = true; + t.Ecotype = true; + t.Egyptienne = true; + t.Elephant = true; + t.Excelsior = true; + t.Fairfield = true; + t["FF Scala"] = true; + t.Folkard = true; + t.Footlight = true; + t.FreeSerif = true; + t["Friz Quadrata"] = true; + t.Garamond = true; + t.Gentium = true; + t.Georgia = true; + t.Gloucester = true; + t["Goudy Old Style"] = true; + t["Goudy Schoolbook"] = true; + t["Goudy Pro Font"] = true; + t.Granjon = true; + t["Guardian Egyptian"] = true; + t.Heather = true; + t.Hercules = true; + t["High Tower Text"] = true; + t.Hiroshige = true; + t["Hoefler Text"] = true; + t["Humana Serif"] = true; + t.Imprint = true; + t["Ionic No. 5"] = true; + t.Janson = true; + t.Joanna = true; + t.Korinna = true; + t.Lexicon = true; + t.LiberationSerif = true; + t["Liberation Serif"] = true; + t["Linux Libertine"] = true; + t.Literaturnaya = true; + t.Lucida = true; + t["Lucida Bright"] = true; + t.Melior = true; + t.Memphis = true; + t.Miller = true; + t.Minion = true; + t.Modern = true; + t["Mona Lisa"] = true; + t["Mrs Eaves"] = true; + t["MS Serif"] = true; + t["Museo Slab"] = true; + t["New York"] = true; + t["Nimbus Roman"] = true; + t["NPS Rawlinson Roadway"] = true; + t.NuptialScript = true; + t.Palatino = true; + t.Perpetua = true; + t.Plantin = true; + t["Plantin Schoolbook"] = true; + t.Playbill = true; + t["Poor Richard"] = true; + t["Rawlinson Roadway"] = true; + t.Renault = true; + t.Requiem = true; + t.Rockwell = true; + t.Roman = true; + t["Rotis Serif"] = true; + t.Sabon = true; + t.Scala = true; + t.Seagull = true; + t.Sistina = true; + t.Souvenir = true; + t.STIX = true; + t["Stone Informal"] = true; + t["Stone Serif"] = true; + t.Sylfaen = true; + t.Times = true; + t.Trajan = true; + t["Trinité"] = true; + t["Trump Mediaeval"] = true; + t.Utopia = true; + t["Vale Type"] = true; + t["Bitstream Vera"] = true; + t["Vera Serif"] = true; + t.Versailles = true; + t.Wanted = true; + t.Weiss = true; + t["Wide Latin"] = true; + t.Windsor = true; + t.XITS = true; +}); +exports.getSerifFonts = getSerifFonts; +const getSymbolsFonts = (0, _core_utils.getLookupTableFactory)(function (t) { + t.Dingbats = true; + t.Symbol = true; + t.ZapfDingbats = true; +}); +exports.getSymbolsFonts = getSymbolsFonts; +const getGlyphMapForStandardFonts = (0, _core_utils.getLookupTableFactory)(function (t) { + t[2] = 10; + t[3] = 32; + t[4] = 33; + t[5] = 34; + t[6] = 35; + t[7] = 36; + t[8] = 37; + t[9] = 38; + t[10] = 39; + t[11] = 40; + t[12] = 41; + t[13] = 42; + t[14] = 43; + t[15] = 44; + t[16] = 45; + t[17] = 46; + t[18] = 47; + t[19] = 48; + t[20] = 49; + t[21] = 50; + t[22] = 51; + t[23] = 52; + t[24] = 53; + t[25] = 54; + t[26] = 55; + t[27] = 56; + t[28] = 57; + t[29] = 58; + t[30] = 894; + t[31] = 60; + t[32] = 61; + t[33] = 62; + t[34] = 63; + t[35] = 64; + t[36] = 65; + t[37] = 66; + t[38] = 67; + t[39] = 68; + t[40] = 69; + t[41] = 70; + t[42] = 71; + t[43] = 72; + t[44] = 73; + t[45] = 74; + t[46] = 75; + t[47] = 76; + t[48] = 77; + t[49] = 78; + t[50] = 79; + t[51] = 80; + t[52] = 81; + t[53] = 82; + t[54] = 83; + t[55] = 84; + t[56] = 85; + t[57] = 86; + t[58] = 87; + t[59] = 88; + t[60] = 89; + t[61] = 90; + t[62] = 91; + t[63] = 92; + t[64] = 93; + t[65] = 94; + t[66] = 95; + t[67] = 96; + t[68] = 97; + t[69] = 98; + t[70] = 99; + t[71] = 100; + t[72] = 101; + t[73] = 102; + t[74] = 103; + t[75] = 104; + t[76] = 105; + t[77] = 106; + t[78] = 107; + t[79] = 108; + t[80] = 109; + t[81] = 110; + t[82] = 111; + t[83] = 112; + t[84] = 113; + t[85] = 114; + t[86] = 115; + t[87] = 116; + t[88] = 117; + t[89] = 118; + t[90] = 119; + t[91] = 120; + t[92] = 121; + t[93] = 122; + t[94] = 123; + t[95] = 124; + t[96] = 125; + t[97] = 126; + t[98] = 196; + t[99] = 197; + t[100] = 199; + t[101] = 201; + t[102] = 209; + t[103] = 214; + t[104] = 220; + t[105] = 225; + t[106] = 224; + t[107] = 226; + t[108] = 228; + t[109] = 227; + t[110] = 229; + t[111] = 231; + t[112] = 233; + t[113] = 232; + t[114] = 234; + t[115] = 235; + t[116] = 237; + t[117] = 236; + t[118] = 238; + t[119] = 239; + t[120] = 241; + t[121] = 243; + t[122] = 242; + t[123] = 244; + t[124] = 246; + t[125] = 245; + t[126] = 250; + t[127] = 249; + t[128] = 251; + t[129] = 252; + t[130] = 8224; + t[131] = 176; + t[132] = 162; + t[133] = 163; + t[134] = 167; + t[135] = 8226; + t[136] = 182; + t[137] = 223; + t[138] = 174; + t[139] = 169; + t[140] = 8482; + t[141] = 180; + t[142] = 168; + t[143] = 8800; + t[144] = 198; + t[145] = 216; + t[146] = 8734; + t[147] = 177; + t[148] = 8804; + t[149] = 8805; + t[150] = 165; + t[151] = 181; + t[152] = 8706; + t[153] = 8721; + t[154] = 8719; + t[156] = 8747; + t[157] = 170; + t[158] = 186; + t[159] = 8486; + t[160] = 230; + t[161] = 248; + t[162] = 191; + t[163] = 161; + t[164] = 172; + t[165] = 8730; + t[166] = 402; + t[167] = 8776; + t[168] = 8710; + t[169] = 171; + t[170] = 187; + t[171] = 8230; + t[200] = 193; + t[203] = 205; + t[210] = 218; + t[223] = 711; + t[224] = 321; + t[225] = 322; + t[226] = 352; + t[227] = 353; + t[228] = 381; + t[229] = 382; + t[233] = 221; + t[234] = 253; + t[252] = 263; + t[253] = 268; + t[254] = 269; + t[258] = 258; + t[260] = 260; + t[261] = 261; + t[265] = 280; + t[266] = 281; + t[267] = 282; + t[268] = 283; + t[269] = 313; + t[275] = 323; + t[276] = 324; + t[278] = 328; + t[283] = 344; + t[284] = 345; + t[285] = 346; + t[286] = 347; + t[292] = 367; + t[295] = 377; + t[296] = 378; + t[298] = 380; + t[305] = 963; + t[306] = 964; + t[307] = 966; + t[308] = 8215; + t[309] = 8252; + t[310] = 8319; + t[311] = 8359; + t[312] = 8592; + t[313] = 8593; + t[337] = 9552; + t[493] = 1039; + t[494] = 1040; + t[672] = 1488; + t[673] = 1489; + t[674] = 1490; + t[675] = 1491; + t[676] = 1492; + t[677] = 1493; + t[678] = 1494; + t[679] = 1495; + t[680] = 1496; + t[681] = 1497; + t[682] = 1498; + t[683] = 1499; + t[684] = 1500; + t[685] = 1501; + t[686] = 1502; + t[687] = 1503; + t[688] = 1504; + t[689] = 1505; + t[690] = 1506; + t[691] = 1507; + t[692] = 1508; + t[693] = 1509; + t[694] = 1510; + t[695] = 1511; + t[696] = 1512; + t[697] = 1513; + t[698] = 1514; + t[705] = 1524; + t[706] = 8362; + t[710] = 64288; + t[711] = 64298; + t[759] = 1617; + t[761] = 1776; + t[763] = 1778; + t[775] = 1652; + t[777] = 1764; + t[778] = 1780; + t[779] = 1781; + t[780] = 1782; + t[782] = 771; + t[783] = 64726; + t[786] = 8363; + t[788] = 8532; + t[790] = 768; + t[791] = 769; + t[792] = 768; + t[795] = 803; + t[797] = 64336; + t[798] = 64337; + t[799] = 64342; + t[800] = 64343; + t[801] = 64344; + t[802] = 64345; + t[803] = 64362; + t[804] = 64363; + t[805] = 64364; + t[2424] = 7821; + t[2425] = 7822; + t[2426] = 7823; + t[2427] = 7824; + t[2428] = 7825; + t[2429] = 7826; + t[2430] = 7827; + t[2433] = 7682; + t[2678] = 8045; + t[2679] = 8046; + t[2830] = 1552; + t[2838] = 686; + t[2840] = 751; + t[2842] = 753; + t[2843] = 754; + t[2844] = 755; + t[2846] = 757; + t[2856] = 767; + t[2857] = 848; + t[2858] = 849; + t[2862] = 853; + t[2863] = 854; + t[2864] = 855; + t[2865] = 861; + t[2866] = 862; + t[2906] = 7460; + t[2908] = 7462; + t[2909] = 7463; + t[2910] = 7464; + t[2912] = 7466; + t[2913] = 7467; + t[2914] = 7468; + t[2916] = 7470; + t[2917] = 7471; + t[2918] = 7472; + t[2920] = 7474; + t[2921] = 7475; + t[2922] = 7476; + t[2924] = 7478; + t[2925] = 7479; + t[2926] = 7480; + t[2928] = 7482; + t[2929] = 7483; + t[2930] = 7484; + t[2932] = 7486; + t[2933] = 7487; + t[2934] = 7488; + t[2936] = 7490; + t[2937] = 7491; + t[2938] = 7492; + t[2940] = 7494; + t[2941] = 7495; + t[2942] = 7496; + t[2944] = 7498; + t[2946] = 7500; + t[2948] = 7502; + t[2950] = 7504; + t[2951] = 7505; + t[2952] = 7506; + t[2954] = 7508; + t[2955] = 7509; + t[2956] = 7510; + t[2958] = 7512; + t[2959] = 7513; + t[2960] = 7514; + t[2962] = 7516; + t[2963] = 7517; + t[2964] = 7518; + t[2966] = 7520; + t[2967] = 7521; + t[2968] = 7522; + t[2970] = 7524; + t[2971] = 7525; + t[2972] = 7526; + t[2974] = 7528; + t[2975] = 7529; + t[2976] = 7530; + t[2978] = 1537; + t[2979] = 1538; + t[2980] = 1539; + t[2982] = 1549; + t[2983] = 1551; + t[2984] = 1552; + t[2986] = 1554; + t[2987] = 1555; + t[2988] = 1556; + t[2990] = 1623; + t[2991] = 1624; + t[2995] = 1775; + t[2999] = 1791; + t[3002] = 64290; + t[3003] = 64291; + t[3004] = 64292; + t[3006] = 64294; + t[3007] = 64295; + t[3008] = 64296; + t[3011] = 1900; + t[3014] = 8223; + t[3015] = 8244; + t[3017] = 7532; + t[3018] = 7533; + t[3019] = 7534; + t[3075] = 7590; + t[3076] = 7591; + t[3079] = 7594; + t[3080] = 7595; + t[3083] = 7598; + t[3084] = 7599; + t[3087] = 7602; + t[3088] = 7603; + t[3091] = 7606; + t[3092] = 7607; + t[3095] = 7610; + t[3096] = 7611; + t[3099] = 7614; + t[3100] = 7615; + t[3103] = 7618; + t[3104] = 7619; + t[3107] = 8337; + t[3108] = 8338; + t[3116] = 1884; + t[3119] = 1885; + t[3120] = 1885; + t[3123] = 1886; + t[3124] = 1886; + t[3127] = 1887; + t[3128] = 1887; + t[3131] = 1888; + t[3132] = 1888; + t[3135] = 1889; + t[3136] = 1889; + t[3139] = 1890; + t[3140] = 1890; + t[3143] = 1891; + t[3144] = 1891; + t[3147] = 1892; + t[3148] = 1892; + t[3153] = 580; + t[3154] = 581; + t[3157] = 584; + t[3158] = 585; + t[3161] = 588; + t[3162] = 589; + t[3165] = 891; + t[3166] = 892; + t[3169] = 1274; + t[3170] = 1275; + t[3173] = 1278; + t[3174] = 1279; + t[3181] = 7622; + t[3182] = 7623; + t[3282] = 11799; + t[3316] = 578; + t[3379] = 42785; + t[3393] = 1159; + t[3416] = 8377; +}); +exports.getGlyphMapForStandardFonts = getGlyphMapForStandardFonts; +const getSupplementalGlyphMapForArialBlack = (0, _core_utils.getLookupTableFactory)(function (t) { + t[227] = 322; + t[264] = 261; + t[291] = 346; +}); +exports.getSupplementalGlyphMapForArialBlack = getSupplementalGlyphMapForArialBlack; +const getSupplementalGlyphMapForCalibri = (0, _core_utils.getLookupTableFactory)(function (t) { + t[1] = 32; + t[4] = 65; + t[6] = 193; + t[17] = 66; + t[18] = 67; + t[21] = 268; + t[24] = 68; + t[28] = 69; + t[30] = 201; + t[32] = 282; + t[38] = 70; + t[39] = 71; + t[44] = 72; + t[47] = 73; + t[49] = 205; + t[58] = 74; + t[60] = 75; + t[62] = 76; + t[68] = 77; + t[69] = 78; + t[75] = 79; + t[87] = 80; + t[89] = 81; + t[90] = 82; + t[92] = 344; + t[94] = 83; + t[97] = 352; + t[100] = 84; + t[104] = 85; + t[115] = 86; + t[116] = 87; + t[121] = 88; + t[122] = 89; + t[124] = 221; + t[127] = 90; + t[129] = 381; + t[258] = 97; + t[260] = 225; + t[268] = 261; + t[271] = 98; + t[272] = 99; + t[273] = 263; + t[275] = 269; + t[282] = 100; + t[286] = 101; + t[288] = 233; + t[290] = 283; + t[295] = 281; + t[296] = 102; + t[336] = 103; + t[346] = 104; + t[349] = 105; + t[351] = 237; + t[361] = 106; + t[364] = 107; + t[367] = 108; + t[371] = 322; + t[373] = 109; + t[374] = 110; + t[381] = 111; + t[383] = 243; + t[393] = 112; + t[395] = 113; + t[396] = 114; + t[398] = 345; + t[400] = 115; + t[401] = 347; + t[403] = 353; + t[410] = 116; + t[437] = 117; + t[448] = 118; + t[449] = 119; + t[454] = 120; + t[455] = 121; + t[457] = 253; + t[460] = 122; + t[462] = 382; + t[463] = 380; + t[853] = 44; + t[855] = 58; + t[856] = 46; + t[876] = 47; + t[878] = 45; + t[882] = 45; + t[894] = 40; + t[895] = 41; + t[896] = 91; + t[897] = 93; + t[923] = 64; + t[1004] = 48; + t[1005] = 49; + t[1006] = 50; + t[1007] = 51; + t[1008] = 52; + t[1009] = 53; + t[1010] = 54; + t[1011] = 55; + t[1012] = 56; + t[1013] = 57; + t[1081] = 37; + t[1085] = 43; + t[1086] = 45; +}); +exports.getSupplementalGlyphMapForCalibri = getSupplementalGlyphMapForCalibri; + +function getStandardFontName(name) { + const fontName = (0, _fonts_utils.normalizeFontName)(name); + const stdFontMap = getStdFontMap(); + return stdFontMap[fontName]; +} + +/***/ }), +/* 42 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ToUnicodeMap = exports.IdentityToUnicodeMap = void 0; + +var _util = __w_pdfjs_require__(2); + +class ToUnicodeMap { + constructor(cmap = []) { + this._map = cmap; + } + + get length() { + return this._map.length; + } + + forEach(callback) { + for (const charCode in this._map) { + callback(charCode, this._map[charCode].charCodeAt(0)); + } + } + + has(i) { + return this._map[i] !== undefined; + } + + get(i) { + return this._map[i]; + } + + charCodeOf(value) { + const map = this._map; + + if (map.length <= 0x10000) { + return map.indexOf(value); + } + + for (const charCode in map) { + if (map[charCode] === value) { + return charCode | 0; + } + } + + return -1; + } + + amend(map) { + for (const charCode in map) { + this._map[charCode] = map[charCode]; + } + } + +} + +exports.ToUnicodeMap = ToUnicodeMap; + +class IdentityToUnicodeMap { + constructor(firstChar, lastChar) { + this.firstChar = firstChar; + this.lastChar = lastChar; + } + + get length() { + return this.lastChar + 1 - this.firstChar; + } + + forEach(callback) { + for (let i = this.firstChar, ii = this.lastChar; i <= ii; i++) { + callback(i, i); + } + } + + has(i) { + return this.firstChar <= i && i <= this.lastChar; + } + + get(i) { + if (this.firstChar <= i && i <= this.lastChar) { + return String.fromCharCode(i); + } + + return undefined; + } + + charCodeOf(v) { + return Number.isInteger(v) && v >= this.firstChar && v <= this.lastChar ? v : -1; + } + + amend(map) { + (0, _util.unreachable)("Should not call amend()"); + } + +} + +exports.IdentityToUnicodeMap = IdentityToUnicodeMap; + +/***/ }), +/* 43 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.CFFFont = void 0; + +var _cff_parser = __w_pdfjs_require__(35); + +var _fonts_utils = __w_pdfjs_require__(38); + +var _util = __w_pdfjs_require__(2); + +class CFFFont { + constructor(file, properties) { + this.properties = properties; + const parser = new _cff_parser.CFFParser(file, properties, _fonts_utils.SEAC_ANALYSIS_ENABLED); + this.cff = parser.parse(); + this.cff.duplicateFirstGlyph(); + const compiler = new _cff_parser.CFFCompiler(this.cff); + this.seacs = this.cff.seacs; + + try { + this.data = compiler.compile(); + } catch (e) { + (0, _util.warn)("Failed to compile font " + properties.loadedName); + this.data = file; + } + + this._createBuiltInEncoding(); + } + + get numGlyphs() { + return this.cff.charStrings.count; + } + + getCharset() { + return this.cff.charset.charset; + } + + getGlyphMapping() { + const cff = this.cff; + const properties = this.properties; + const charsets = cff.charset.charset; + let charCodeToGlyphId; + let glyphId; + + if (properties.composite) { + charCodeToGlyphId = Object.create(null); + let charCode; + + if (cff.isCIDFont) { + for (glyphId = 0; glyphId < charsets.length; glyphId++) { + const cid = charsets[glyphId]; + charCode = properties.cMap.charCodeOf(cid); + charCodeToGlyphId[charCode] = glyphId; + } + } else { + for (glyphId = 0; glyphId < cff.charStrings.count; glyphId++) { + charCode = properties.cMap.charCodeOf(glyphId); + charCodeToGlyphId[charCode] = glyphId; + } + } + + return charCodeToGlyphId; + } + + let encoding = cff.encoding ? cff.encoding.encoding : null; + + if (properties.isInternalFont) { + encoding = properties.defaultEncoding; + } + + charCodeToGlyphId = (0, _fonts_utils.type1FontGlyphMapping)(properties, encoding, charsets); + return charCodeToGlyphId; + } + + hasGlyphId(id) { + return this.cff.hasGlyphId(id); + } + + _createBuiltInEncoding() { + const { + charset, + encoding + } = this.cff; + + if (!charset || !encoding) { + return; + } + + const charsets = charset.charset, + encodings = encoding.encoding; + const map = []; + + for (const charCode in encodings) { + const glyphId = encodings[charCode]; + + if (glyphId >= 0) { + const glyphName = charsets[glyphId]; + + if (glyphName) { + map[charCode] = glyphName; + } + } + } + + if (map.length > 0) { + this.properties.builtInEncoding = map; + } + } + +} + +exports.CFFFont = CFFFont; + +/***/ }), +/* 44 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.FontRendererFactory = void 0; + +var _util = __w_pdfjs_require__(2); + +var _cff_parser = __w_pdfjs_require__(35); + +var _glyphlist = __w_pdfjs_require__(39); + +var _encodings = __w_pdfjs_require__(37); + +var _stream = __w_pdfjs_require__(10); + +function getUint32(data, offset) { + return (data[offset] << 24 | data[offset + 1] << 16 | data[offset + 2] << 8 | data[offset + 3]) >>> 0; +} + +function getUint16(data, offset) { + return data[offset] << 8 | data[offset + 1]; +} + +function getInt16(data, offset) { + return (data[offset] << 24 | data[offset + 1] << 16) >> 16; +} + +function getInt8(data, offset) { + return data[offset] << 24 >> 24; +} + +function getFloat214(data, offset) { + return getInt16(data, offset) / 16384; +} + +function getSubroutineBias(subrs) { + const numSubrs = subrs.length; + let bias = 32768; + + if (numSubrs < 1240) { + bias = 107; + } else if (numSubrs < 33900) { + bias = 1131; + } + + return bias; +} + +function parseCmap(data, start, end) { + const offset = getUint16(data, start + 2) === 1 ? getUint32(data, start + 8) : getUint32(data, start + 16); + const format = getUint16(data, start + offset); + let ranges, p, i; + + if (format === 4) { + getUint16(data, start + offset + 2); + const segCount = getUint16(data, start + offset + 6) >> 1; + p = start + offset + 14; + ranges = []; + + for (i = 0; i < segCount; i++, p += 2) { + ranges[i] = { + end: getUint16(data, p) + }; + } + + p += 2; + + for (i = 0; i < segCount; i++, p += 2) { + ranges[i].start = getUint16(data, p); + } + + for (i = 0; i < segCount; i++, p += 2) { + ranges[i].idDelta = getUint16(data, p); + } + + for (i = 0; i < segCount; i++, p += 2) { + let idOffset = getUint16(data, p); + + if (idOffset === 0) { + continue; + } + + ranges[i].ids = []; + + for (let j = 0, jj = ranges[i].end - ranges[i].start + 1; j < jj; j++) { + ranges[i].ids[j] = getUint16(data, p + idOffset); + idOffset += 2; + } + } + + return ranges; + } else if (format === 12) { + const groups = getUint32(data, start + offset + 12); + p = start + offset + 16; + ranges = []; + + for (i = 0; i < groups; i++) { + start = getUint32(data, p); + ranges.push({ + start, + end: getUint32(data, p + 4), + idDelta: getUint32(data, p + 8) - start + }); + p += 12; + } + + return ranges; + } + + throw new _util.FormatError(`unsupported cmap: ${format}`); +} + +function parseCff(data, start, end, seacAnalysisEnabled) { + const properties = {}; + const parser = new _cff_parser.CFFParser(new _stream.Stream(data, start, end - start), properties, seacAnalysisEnabled); + const cff = parser.parse(); + return { + glyphs: cff.charStrings.objects, + subrs: cff.topDict.privateDict && cff.topDict.privateDict.subrsIndex && cff.topDict.privateDict.subrsIndex.objects, + gsubrs: cff.globalSubrIndex && cff.globalSubrIndex.objects, + isCFFCIDFont: cff.isCIDFont, + fdSelect: cff.fdSelect, + fdArray: cff.fdArray + }; +} + +function parseGlyfTable(glyf, loca, isGlyphLocationsLong) { + let itemSize, itemDecode; + + if (isGlyphLocationsLong) { + itemSize = 4; + itemDecode = getUint32; + } else { + itemSize = 2; + + itemDecode = (data, offset) => 2 * getUint16(data, offset); + } + + const glyphs = []; + let startOffset = itemDecode(loca, 0); + + for (let j = itemSize; j < loca.length; j += itemSize) { + const endOffset = itemDecode(loca, j); + glyphs.push(glyf.subarray(startOffset, endOffset)); + startOffset = endOffset; + } + + return glyphs; +} + +function lookupCmap(ranges, unicode) { + const code = unicode.codePointAt(0); + let gid = 0, + l = 0, + r = ranges.length - 1; + + while (l < r) { + const c = l + r + 1 >> 1; + + if (code < ranges[c].start) { + r = c - 1; + } else { + l = c; + } + } + + if (ranges[l].start <= code && code <= ranges[l].end) { + gid = ranges[l].idDelta + (ranges[l].ids ? ranges[l].ids[code - ranges[l].start] : code) & 0xffff; + } + + return { + charCode: code, + glyphId: gid + }; +} + +function compileGlyf(code, cmds, font) { + function moveTo(x, y) { + cmds.push({ + cmd: "moveTo", + args: [x, y] + }); + } + + function lineTo(x, y) { + cmds.push({ + cmd: "lineTo", + args: [x, y] + }); + } + + function quadraticCurveTo(xa, ya, x, y) { + cmds.push({ + cmd: "quadraticCurveTo", + args: [xa, ya, x, y] + }); + } + + let i = 0; + const numberOfContours = getInt16(code, i); + let flags; + let x = 0, + y = 0; + i += 10; + + if (numberOfContours < 0) { + do { + flags = getUint16(code, i); + const glyphIndex = getUint16(code, i + 2); + i += 4; + let arg1, arg2; + + if (flags & 0x01) { + if (flags & 0x02) { + arg1 = getInt16(code, i); + arg2 = getInt16(code, i + 2); + } else { + arg1 = getUint16(code, i); + arg2 = getUint16(code, i + 2); + } + + i += 4; + } else { + if (flags & 0x02) { + arg1 = getInt8(code, i++); + arg2 = getInt8(code, i++); + } else { + arg1 = code[i++]; + arg2 = code[i++]; + } + } + + if (flags & 0x02) { + x = arg1; + y = arg2; + } else { + x = 0; + y = 0; + } + + let scaleX = 1, + scaleY = 1, + scale01 = 0, + scale10 = 0; + + if (flags & 0x08) { + scaleX = scaleY = getFloat214(code, i); + i += 2; + } else if (flags & 0x40) { + scaleX = getFloat214(code, i); + scaleY = getFloat214(code, i + 2); + i += 4; + } else if (flags & 0x80) { + scaleX = getFloat214(code, i); + scale01 = getFloat214(code, i + 2); + scale10 = getFloat214(code, i + 4); + scaleY = getFloat214(code, i + 6); + i += 8; + } + + const subglyph = font.glyphs[glyphIndex]; + + if (subglyph) { + cmds.push({ + cmd: "save" + }, { + cmd: "transform", + args: [scaleX, scale01, scale10, scaleY, x, y] + }); + + if (!(flags & 0x02)) {} + + compileGlyf(subglyph, cmds, font); + cmds.push({ + cmd: "restore" + }); + } + } while (flags & 0x20); + } else { + const endPtsOfContours = []; + let j, jj; + + for (j = 0; j < numberOfContours; j++) { + endPtsOfContours.push(getUint16(code, i)); + i += 2; + } + + const instructionLength = getUint16(code, i); + i += 2 + instructionLength; + const numberOfPoints = endPtsOfContours.at(-1) + 1; + const points = []; + + while (points.length < numberOfPoints) { + flags = code[i++]; + let repeat = 1; + + if (flags & 0x08) { + repeat += code[i++]; + } + + while (repeat-- > 0) { + points.push({ + flags + }); + } + } + + for (j = 0; j < numberOfPoints; j++) { + switch (points[j].flags & 0x12) { + case 0x00: + x += getInt16(code, i); + i += 2; + break; + + case 0x02: + x -= code[i++]; + break; + + case 0x12: + x += code[i++]; + break; + } + + points[j].x = x; + } + + for (j = 0; j < numberOfPoints; j++) { + switch (points[j].flags & 0x24) { + case 0x00: + y += getInt16(code, i); + i += 2; + break; + + case 0x04: + y -= code[i++]; + break; + + case 0x24: + y += code[i++]; + break; + } + + points[j].y = y; + } + + let startPoint = 0; + + for (i = 0; i < numberOfContours; i++) { + const endPoint = endPtsOfContours[i]; + const contour = points.slice(startPoint, endPoint + 1); + + if (contour[0].flags & 1) { + contour.push(contour[0]); + } else if (contour.at(-1).flags & 1) { + contour.unshift(contour.at(-1)); + } else { + const p = { + flags: 1, + x: (contour[0].x + contour.at(-1).x) / 2, + y: (contour[0].y + contour.at(-1).y) / 2 + }; + contour.unshift(p); + contour.push(p); + } + + moveTo(contour[0].x, contour[0].y); + + for (j = 1, jj = contour.length; j < jj; j++) { + if (contour[j].flags & 1) { + lineTo(contour[j].x, contour[j].y); + } else if (contour[j + 1].flags & 1) { + quadraticCurveTo(contour[j].x, contour[j].y, contour[j + 1].x, contour[j + 1].y); + j++; + } else { + quadraticCurveTo(contour[j].x, contour[j].y, (contour[j].x + contour[j + 1].x) / 2, (contour[j].y + contour[j + 1].y) / 2); + } + } + + startPoint = endPoint + 1; + } + } +} + +function compileCharString(charStringCode, cmds, font, glyphId) { + function moveTo(x, y) { + cmds.push({ + cmd: "moveTo", + args: [x, y] + }); + } + + function lineTo(x, y) { + cmds.push({ + cmd: "lineTo", + args: [x, y] + }); + } + + function bezierCurveTo(x1, y1, x2, y2, x, y) { + cmds.push({ + cmd: "bezierCurveTo", + args: [x1, y1, x2, y2, x, y] + }); + } + + const stack = []; + let x = 0, + y = 0; + let stems = 0; + + function parse(code) { + let i = 0; + + while (i < code.length) { + let stackClean = false; + let v = code[i++]; + let xa, xb, ya, yb, y1, y2, y3, n, subrCode; + + switch (v) { + case 1: + stems += stack.length >> 1; + stackClean = true; + break; + + case 3: + stems += stack.length >> 1; + stackClean = true; + break; + + case 4: + y += stack.pop(); + moveTo(x, y); + stackClean = true; + break; + + case 5: + while (stack.length > 0) { + x += stack.shift(); + y += stack.shift(); + lineTo(x, y); + } + + break; + + case 6: + while (stack.length > 0) { + x += stack.shift(); + lineTo(x, y); + + if (stack.length === 0) { + break; + } + + y += stack.shift(); + lineTo(x, y); + } + + break; + + case 7: + while (stack.length > 0) { + y += stack.shift(); + lineTo(x, y); + + if (stack.length === 0) { + break; + } + + x += stack.shift(); + lineTo(x, y); + } + + break; + + case 8: + while (stack.length > 0) { + xa = x + stack.shift(); + ya = y + stack.shift(); + xb = xa + stack.shift(); + yb = ya + stack.shift(); + x = xb + stack.shift(); + y = yb + stack.shift(); + bezierCurveTo(xa, ya, xb, yb, x, y); + } + + break; + + case 10: + n = stack.pop(); + subrCode = null; + + if (font.isCFFCIDFont) { + const fdIndex = font.fdSelect.getFDIndex(glyphId); + + if (fdIndex >= 0 && fdIndex < font.fdArray.length) { + const fontDict = font.fdArray[fdIndex]; + let subrs; + + if (fontDict.privateDict && fontDict.privateDict.subrsIndex) { + subrs = fontDict.privateDict.subrsIndex.objects; + } + + if (subrs) { + n += getSubroutineBias(subrs); + subrCode = subrs[n]; + } + } else { + (0, _util.warn)("Invalid fd index for glyph index."); + } + } else { + subrCode = font.subrs[n + font.subrsBias]; + } + + if (subrCode) { + parse(subrCode); + } + + break; + + case 11: + return; + + case 12: + v = code[i++]; + + switch (v) { + case 34: + xa = x + stack.shift(); + xb = xa + stack.shift(); + y1 = y + stack.shift(); + x = xb + stack.shift(); + bezierCurveTo(xa, y, xb, y1, x, y1); + xa = x + stack.shift(); + xb = xa + stack.shift(); + x = xb + stack.shift(); + bezierCurveTo(xa, y1, xb, y, x, y); + break; + + case 35: + xa = x + stack.shift(); + ya = y + stack.shift(); + xb = xa + stack.shift(); + yb = ya + stack.shift(); + x = xb + stack.shift(); + y = yb + stack.shift(); + bezierCurveTo(xa, ya, xb, yb, x, y); + xa = x + stack.shift(); + ya = y + stack.shift(); + xb = xa + stack.shift(); + yb = ya + stack.shift(); + x = xb + stack.shift(); + y = yb + stack.shift(); + bezierCurveTo(xa, ya, xb, yb, x, y); + stack.pop(); + break; + + case 36: + xa = x + stack.shift(); + y1 = y + stack.shift(); + xb = xa + stack.shift(); + y2 = y1 + stack.shift(); + x = xb + stack.shift(); + bezierCurveTo(xa, y1, xb, y2, x, y2); + xa = x + stack.shift(); + xb = xa + stack.shift(); + y3 = y2 + stack.shift(); + x = xb + stack.shift(); + bezierCurveTo(xa, y2, xb, y3, x, y); + break; + + case 37: + const x0 = x, + y0 = y; + xa = x + stack.shift(); + ya = y + stack.shift(); + xb = xa + stack.shift(); + yb = ya + stack.shift(); + x = xb + stack.shift(); + y = yb + stack.shift(); + bezierCurveTo(xa, ya, xb, yb, x, y); + xa = x + stack.shift(); + ya = y + stack.shift(); + xb = xa + stack.shift(); + yb = ya + stack.shift(); + x = xb; + y = yb; + + if (Math.abs(x - x0) > Math.abs(y - y0)) { + x += stack.shift(); + } else { + y += stack.shift(); + } + + bezierCurveTo(xa, ya, xb, yb, x, y); + break; + + default: + throw new _util.FormatError(`unknown operator: 12 ${v}`); + } + + break; + + case 14: + if (stack.length >= 4) { + const achar = stack.pop(); + const bchar = stack.pop(); + y = stack.pop(); + x = stack.pop(); + cmds.push({ + cmd: "save" + }, { + cmd: "translate", + args: [x, y] + }); + let cmap = lookupCmap(font.cmap, String.fromCharCode(font.glyphNameMap[_encodings.StandardEncoding[achar]])); + compileCharString(font.glyphs[cmap.glyphId], cmds, font, cmap.glyphId); + cmds.push({ + cmd: "restore" + }); + cmap = lookupCmap(font.cmap, String.fromCharCode(font.glyphNameMap[_encodings.StandardEncoding[bchar]])); + compileCharString(font.glyphs[cmap.glyphId], cmds, font, cmap.glyphId); + } + + return; + + case 18: + stems += stack.length >> 1; + stackClean = true; + break; + + case 19: + stems += stack.length >> 1; + i += stems + 7 >> 3; + stackClean = true; + break; + + case 20: + stems += stack.length >> 1; + i += stems + 7 >> 3; + stackClean = true; + break; + + case 21: + y += stack.pop(); + x += stack.pop(); + moveTo(x, y); + stackClean = true; + break; + + case 22: + x += stack.pop(); + moveTo(x, y); + stackClean = true; + break; + + case 23: + stems += stack.length >> 1; + stackClean = true; + break; + + case 24: + while (stack.length > 2) { + xa = x + stack.shift(); + ya = y + stack.shift(); + xb = xa + stack.shift(); + yb = ya + stack.shift(); + x = xb + stack.shift(); + y = yb + stack.shift(); + bezierCurveTo(xa, ya, xb, yb, x, y); + } + + x += stack.shift(); + y += stack.shift(); + lineTo(x, y); + break; + + case 25: + while (stack.length > 6) { + x += stack.shift(); + y += stack.shift(); + lineTo(x, y); + } + + xa = x + stack.shift(); + ya = y + stack.shift(); + xb = xa + stack.shift(); + yb = ya + stack.shift(); + x = xb + stack.shift(); + y = yb + stack.shift(); + bezierCurveTo(xa, ya, xb, yb, x, y); + break; + + case 26: + if (stack.length % 2) { + x += stack.shift(); + } + + while (stack.length > 0) { + xa = x; + ya = y + stack.shift(); + xb = xa + stack.shift(); + yb = ya + stack.shift(); + x = xb; + y = yb + stack.shift(); + bezierCurveTo(xa, ya, xb, yb, x, y); + } + + break; + + case 27: + if (stack.length % 2) { + y += stack.shift(); + } + + while (stack.length > 0) { + xa = x + stack.shift(); + ya = y; + xb = xa + stack.shift(); + yb = ya + stack.shift(); + x = xb + stack.shift(); + y = yb; + bezierCurveTo(xa, ya, xb, yb, x, y); + } + + break; + + case 28: + stack.push((code[i] << 24 | code[i + 1] << 16) >> 16); + i += 2; + break; + + case 29: + n = stack.pop() + font.gsubrsBias; + subrCode = font.gsubrs[n]; + + if (subrCode) { + parse(subrCode); + } + + break; + + case 30: + while (stack.length > 0) { + xa = x; + ya = y + stack.shift(); + xb = xa + stack.shift(); + yb = ya + stack.shift(); + x = xb + stack.shift(); + y = yb + (stack.length === 1 ? stack.shift() : 0); + bezierCurveTo(xa, ya, xb, yb, x, y); + + if (stack.length === 0) { + break; + } + + xa = x + stack.shift(); + ya = y; + xb = xa + stack.shift(); + yb = ya + stack.shift(); + y = yb + stack.shift(); + x = xb + (stack.length === 1 ? stack.shift() : 0); + bezierCurveTo(xa, ya, xb, yb, x, y); + } + + break; + + case 31: + while (stack.length > 0) { + xa = x + stack.shift(); + ya = y; + xb = xa + stack.shift(); + yb = ya + stack.shift(); + y = yb + stack.shift(); + x = xb + (stack.length === 1 ? stack.shift() : 0); + bezierCurveTo(xa, ya, xb, yb, x, y); + + if (stack.length === 0) { + break; + } + + xa = x; + ya = y + stack.shift(); + xb = xa + stack.shift(); + yb = ya + stack.shift(); + x = xb + stack.shift(); + y = yb + (stack.length === 1 ? stack.shift() : 0); + bezierCurveTo(xa, ya, xb, yb, x, y); + } + + break; + + default: + if (v < 32) { + throw new _util.FormatError(`unknown operator: ${v}`); + } + + if (v < 247) { + stack.push(v - 139); + } else if (v < 251) { + stack.push((v - 247) * 256 + code[i++] + 108); + } else if (v < 255) { + stack.push(-(v - 251) * 256 - code[i++] - 108); + } else { + stack.push((code[i] << 24 | code[i + 1] << 16 | code[i + 2] << 8 | code[i + 3]) / 65536); + i += 4; + } + + break; + } + + if (stackClean) { + stack.length = 0; + } + } + } + + parse(charStringCode); +} + +const NOOP = []; + +class CompiledFont { + constructor(fontMatrix) { + if (this.constructor === CompiledFont) { + (0, _util.unreachable)("Cannot initialize CompiledFont."); + } + + this.fontMatrix = fontMatrix; + this.compiledGlyphs = Object.create(null); + this.compiledCharCodeToGlyphId = Object.create(null); + } + + getPathJs(unicode) { + const { + charCode, + glyphId + } = lookupCmap(this.cmap, unicode); + let fn = this.compiledGlyphs[glyphId]; + + if (!fn) { + try { + fn = this.compileGlyph(this.glyphs[glyphId], glyphId); + this.compiledGlyphs[glyphId] = fn; + } catch (ex) { + this.compiledGlyphs[glyphId] = NOOP; + + if (this.compiledCharCodeToGlyphId[charCode] === undefined) { + this.compiledCharCodeToGlyphId[charCode] = glyphId; + } + + throw ex; + } + } + + if (this.compiledCharCodeToGlyphId[charCode] === undefined) { + this.compiledCharCodeToGlyphId[charCode] = glyphId; + } + + return fn; + } + + compileGlyph(code, glyphId) { + if (!code || code.length === 0 || code[0] === 14) { + return NOOP; + } + + let fontMatrix = this.fontMatrix; + + if (this.isCFFCIDFont) { + const fdIndex = this.fdSelect.getFDIndex(glyphId); + + if (fdIndex >= 0 && fdIndex < this.fdArray.length) { + const fontDict = this.fdArray[fdIndex]; + fontMatrix = fontDict.getByName("FontMatrix") || _util.FONT_IDENTITY_MATRIX; + } else { + (0, _util.warn)("Invalid fd index for glyph index."); + } + } + + const cmds = [{ + cmd: "save" + }, { + cmd: "transform", + args: fontMatrix.slice() + }, { + cmd: "scale", + args: ["size", "-size"] + }]; + this.compileGlyphImpl(code, cmds, glyphId); + cmds.push({ + cmd: "restore" + }); + return cmds; + } + + compileGlyphImpl() { + (0, _util.unreachable)("Children classes should implement this."); + } + + hasBuiltPath(unicode) { + const { + charCode, + glyphId + } = lookupCmap(this.cmap, unicode); + return this.compiledGlyphs[glyphId] !== undefined && this.compiledCharCodeToGlyphId[charCode] !== undefined; + } + +} + +class TrueTypeCompiled extends CompiledFont { + constructor(glyphs, cmap, fontMatrix) { + super(fontMatrix || [0.000488, 0, 0, 0.000488, 0, 0]); + this.glyphs = glyphs; + this.cmap = cmap; + } + + compileGlyphImpl(code, cmds) { + compileGlyf(code, cmds, this); + } + +} + +class Type2Compiled extends CompiledFont { + constructor(cffInfo, cmap, fontMatrix, glyphNameMap) { + super(fontMatrix || [0.001, 0, 0, 0.001, 0, 0]); + this.glyphs = cffInfo.glyphs; + this.gsubrs = cffInfo.gsubrs || []; + this.subrs = cffInfo.subrs || []; + this.cmap = cmap; + this.glyphNameMap = glyphNameMap || (0, _glyphlist.getGlyphsUnicode)(); + this.gsubrsBias = getSubroutineBias(this.gsubrs); + this.subrsBias = getSubroutineBias(this.subrs); + this.isCFFCIDFont = cffInfo.isCFFCIDFont; + this.fdSelect = cffInfo.fdSelect; + this.fdArray = cffInfo.fdArray; + } + + compileGlyphImpl(code, cmds, glyphId) { + compileCharString(code, cmds, this, glyphId); + } + +} + +class FontRendererFactory { + static create(font, seacAnalysisEnabled) { + const data = new Uint8Array(font.data); + let cmap, glyf, loca, cff, indexToLocFormat, unitsPerEm; + const numTables = getUint16(data, 4); + + for (let i = 0, p = 12; i < numTables; i++, p += 16) { + const tag = (0, _util.bytesToString)(data.subarray(p, p + 4)); + const offset = getUint32(data, p + 8); + const length = getUint32(data, p + 12); + + switch (tag) { + case "cmap": + cmap = parseCmap(data, offset, offset + length); + break; + + case "glyf": + glyf = data.subarray(offset, offset + length); + break; + + case "loca": + loca = data.subarray(offset, offset + length); + break; + + case "head": + unitsPerEm = getUint16(data, offset + 18); + indexToLocFormat = getUint16(data, offset + 50); + break; + + case "CFF ": + cff = parseCff(data, offset, offset + length, seacAnalysisEnabled); + break; + } + } + + if (glyf) { + const fontMatrix = !unitsPerEm ? font.fontMatrix : [1 / unitsPerEm, 0, 0, 1 / unitsPerEm, 0, 0]; + return new TrueTypeCompiled(parseGlyfTable(glyf, loca, indexToLocFormat), cmap, fontMatrix); + } + + return new Type2Compiled(cff, cmap, font.fontMatrix, font.glyphNameMap); + } + +} + +exports.FontRendererFactory = FontRendererFactory; + +/***/ }), +/* 45 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.getMetrics = exports.getFontBasicMetrics = void 0; + +var _core_utils = __w_pdfjs_require__(6); + +const getMetrics = (0, _core_utils.getLookupTableFactory)(function (t) { + t.Courier = 600; + t["Courier-Bold"] = 600; + t["Courier-BoldOblique"] = 600; + t["Courier-Oblique"] = 600; + t.Helvetica = (0, _core_utils.getLookupTableFactory)(function (t) { + t.space = 278; + t.exclam = 278; + t.quotedbl = 355; + t.numbersign = 556; + t.dollar = 556; + t.percent = 889; + t.ampersand = 667; + t.quoteright = 222; + t.parenleft = 333; + t.parenright = 333; + t.asterisk = 389; + t.plus = 584; + t.comma = 278; + t.hyphen = 333; + t.period = 278; + t.slash = 278; + t.zero = 556; + t.one = 556; + t.two = 556; + t.three = 556; + t.four = 556; + t.five = 556; + t.six = 556; + t.seven = 556; + t.eight = 556; + t.nine = 556; + t.colon = 278; + t.semicolon = 278; + t.less = 584; + t.equal = 584; + t.greater = 584; + t.question = 556; + t.at = 1015; + t.A = 667; + t.B = 667; + t.C = 722; + t.D = 722; + t.E = 667; + t.F = 611; + t.G = 778; + t.H = 722; + t.I = 278; + t.J = 500; + t.K = 667; + t.L = 556; + t.M = 833; + t.N = 722; + t.O = 778; + t.P = 667; + t.Q = 778; + t.R = 722; + t.S = 667; + t.T = 611; + t.U = 722; + t.V = 667; + t.W = 944; + t.X = 667; + t.Y = 667; + t.Z = 611; + t.bracketleft = 278; + t.backslash = 278; + t.bracketright = 278; + t.asciicircum = 469; + t.underscore = 556; + t.quoteleft = 222; + t.a = 556; + t.b = 556; + t.c = 500; + t.d = 556; + t.e = 556; + t.f = 278; + t.g = 556; + t.h = 556; + t.i = 222; + t.j = 222; + t.k = 500; + t.l = 222; + t.m = 833; + t.n = 556; + t.o = 556; + t.p = 556; + t.q = 556; + t.r = 333; + t.s = 500; + t.t = 278; + t.u = 556; + t.v = 500; + t.w = 722; + t.x = 500; + t.y = 500; + t.z = 500; + t.braceleft = 334; + t.bar = 260; + t.braceright = 334; + t.asciitilde = 584; + t.exclamdown = 333; + t.cent = 556; + t.sterling = 556; + t.fraction = 167; + t.yen = 556; + t.florin = 556; + t.section = 556; + t.currency = 556; + t.quotesingle = 191; + t.quotedblleft = 333; + t.guillemotleft = 556; + t.guilsinglleft = 333; + t.guilsinglright = 333; + t.fi = 500; + t.fl = 500; + t.endash = 556; + t.dagger = 556; + t.daggerdbl = 556; + t.periodcentered = 278; + t.paragraph = 537; + t.bullet = 350; + t.quotesinglbase = 222; + t.quotedblbase = 333; + t.quotedblright = 333; + t.guillemotright = 556; + t.ellipsis = 1000; + t.perthousand = 1000; + t.questiondown = 611; + t.grave = 333; + t.acute = 333; + t.circumflex = 333; + t.tilde = 333; + t.macron = 333; + t.breve = 333; + t.dotaccent = 333; + t.dieresis = 333; + t.ring = 333; + t.cedilla = 333; + t.hungarumlaut = 333; + t.ogonek = 333; + t.caron = 333; + t.emdash = 1000; + t.AE = 1000; + t.ordfeminine = 370; + t.Lslash = 556; + t.Oslash = 778; + t.OE = 1000; + t.ordmasculine = 365; + t.ae = 889; + t.dotlessi = 278; + t.lslash = 222; + t.oslash = 611; + t.oe = 944; + t.germandbls = 611; + t.Idieresis = 278; + t.eacute = 556; + t.abreve = 556; + t.uhungarumlaut = 556; + t.ecaron = 556; + t.Ydieresis = 667; + t.divide = 584; + t.Yacute = 667; + t.Acircumflex = 667; + t.aacute = 556; + t.Ucircumflex = 722; + t.yacute = 500; + t.scommaaccent = 500; + t.ecircumflex = 556; + t.Uring = 722; + t.Udieresis = 722; + t.aogonek = 556; + t.Uacute = 722; + t.uogonek = 556; + t.Edieresis = 667; + t.Dcroat = 722; + t.commaaccent = 250; + t.copyright = 737; + t.Emacron = 667; + t.ccaron = 500; + t.aring = 556; + t.Ncommaaccent = 722; + t.lacute = 222; + t.agrave = 556; + t.Tcommaaccent = 611; + t.Cacute = 722; + t.atilde = 556; + t.Edotaccent = 667; + t.scaron = 500; + t.scedilla = 500; + t.iacute = 278; + t.lozenge = 471; + t.Rcaron = 722; + t.Gcommaaccent = 778; + t.ucircumflex = 556; + t.acircumflex = 556; + t.Amacron = 667; + t.rcaron = 333; + t.ccedilla = 500; + t.Zdotaccent = 611; + t.Thorn = 667; + t.Omacron = 778; + t.Racute = 722; + t.Sacute = 667; + t.dcaron = 643; + t.Umacron = 722; + t.uring = 556; + t.threesuperior = 333; + t.Ograve = 778; + t.Agrave = 667; + t.Abreve = 667; + t.multiply = 584; + t.uacute = 556; + t.Tcaron = 611; + t.partialdiff = 476; + t.ydieresis = 500; + t.Nacute = 722; + t.icircumflex = 278; + t.Ecircumflex = 667; + t.adieresis = 556; + t.edieresis = 556; + t.cacute = 500; + t.nacute = 556; + t.umacron = 556; + t.Ncaron = 722; + t.Iacute = 278; + t.plusminus = 584; + t.brokenbar = 260; + t.registered = 737; + t.Gbreve = 778; + t.Idotaccent = 278; + t.summation = 600; + t.Egrave = 667; + t.racute = 333; + t.omacron = 556; + t.Zacute = 611; + t.Zcaron = 611; + t.greaterequal = 549; + t.Eth = 722; + t.Ccedilla = 722; + t.lcommaaccent = 222; + t.tcaron = 317; + t.eogonek = 556; + t.Uogonek = 722; + t.Aacute = 667; + t.Adieresis = 667; + t.egrave = 556; + t.zacute = 500; + t.iogonek = 222; + t.Oacute = 778; + t.oacute = 556; + t.amacron = 556; + t.sacute = 500; + t.idieresis = 278; + t.Ocircumflex = 778; + t.Ugrave = 722; + t.Delta = 612; + t.thorn = 556; + t.twosuperior = 333; + t.Odieresis = 778; + t.mu = 556; + t.igrave = 278; + t.ohungarumlaut = 556; + t.Eogonek = 667; + t.dcroat = 556; + t.threequarters = 834; + t.Scedilla = 667; + t.lcaron = 299; + t.Kcommaaccent = 667; + t.Lacute = 556; + t.trademark = 1000; + t.edotaccent = 556; + t.Igrave = 278; + t.Imacron = 278; + t.Lcaron = 556; + t.onehalf = 834; + t.lessequal = 549; + t.ocircumflex = 556; + t.ntilde = 556; + t.Uhungarumlaut = 722; + t.Eacute = 667; + t.emacron = 556; + t.gbreve = 556; + t.onequarter = 834; + t.Scaron = 667; + t.Scommaaccent = 667; + t.Ohungarumlaut = 778; + t.degree = 400; + t.ograve = 556; + t.Ccaron = 722; + t.ugrave = 556; + t.radical = 453; + t.Dcaron = 722; + t.rcommaaccent = 333; + t.Ntilde = 722; + t.otilde = 556; + t.Rcommaaccent = 722; + t.Lcommaaccent = 556; + t.Atilde = 667; + t.Aogonek = 667; + t.Aring = 667; + t.Otilde = 778; + t.zdotaccent = 500; + t.Ecaron = 667; + t.Iogonek = 278; + t.kcommaaccent = 500; + t.minus = 584; + t.Icircumflex = 278; + t.ncaron = 556; + t.tcommaaccent = 278; + t.logicalnot = 584; + t.odieresis = 556; + t.udieresis = 556; + t.notequal = 549; + t.gcommaaccent = 556; + t.eth = 556; + t.zcaron = 500; + t.ncommaaccent = 556; + t.onesuperior = 333; + t.imacron = 278; + t.Euro = 556; + }); + t["Helvetica-Bold"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t.space = 278; + t.exclam = 333; + t.quotedbl = 474; + t.numbersign = 556; + t.dollar = 556; + t.percent = 889; + t.ampersand = 722; + t.quoteright = 278; + t.parenleft = 333; + t.parenright = 333; + t.asterisk = 389; + t.plus = 584; + t.comma = 278; + t.hyphen = 333; + t.period = 278; + t.slash = 278; + t.zero = 556; + t.one = 556; + t.two = 556; + t.three = 556; + t.four = 556; + t.five = 556; + t.six = 556; + t.seven = 556; + t.eight = 556; + t.nine = 556; + t.colon = 333; + t.semicolon = 333; + t.less = 584; + t.equal = 584; + t.greater = 584; + t.question = 611; + t.at = 975; + t.A = 722; + t.B = 722; + t.C = 722; + t.D = 722; + t.E = 667; + t.F = 611; + t.G = 778; + t.H = 722; + t.I = 278; + t.J = 556; + t.K = 722; + t.L = 611; + t.M = 833; + t.N = 722; + t.O = 778; + t.P = 667; + t.Q = 778; + t.R = 722; + t.S = 667; + t.T = 611; + t.U = 722; + t.V = 667; + t.W = 944; + t.X = 667; + t.Y = 667; + t.Z = 611; + t.bracketleft = 333; + t.backslash = 278; + t.bracketright = 333; + t.asciicircum = 584; + t.underscore = 556; + t.quoteleft = 278; + t.a = 556; + t.b = 611; + t.c = 556; + t.d = 611; + t.e = 556; + t.f = 333; + t.g = 611; + t.h = 611; + t.i = 278; + t.j = 278; + t.k = 556; + t.l = 278; + t.m = 889; + t.n = 611; + t.o = 611; + t.p = 611; + t.q = 611; + t.r = 389; + t.s = 556; + t.t = 333; + t.u = 611; + t.v = 556; + t.w = 778; + t.x = 556; + t.y = 556; + t.z = 500; + t.braceleft = 389; + t.bar = 280; + t.braceright = 389; + t.asciitilde = 584; + t.exclamdown = 333; + t.cent = 556; + t.sterling = 556; + t.fraction = 167; + t.yen = 556; + t.florin = 556; + t.section = 556; + t.currency = 556; + t.quotesingle = 238; + t.quotedblleft = 500; + t.guillemotleft = 556; + t.guilsinglleft = 333; + t.guilsinglright = 333; + t.fi = 611; + t.fl = 611; + t.endash = 556; + t.dagger = 556; + t.daggerdbl = 556; + t.periodcentered = 278; + t.paragraph = 556; + t.bullet = 350; + t.quotesinglbase = 278; + t.quotedblbase = 500; + t.quotedblright = 500; + t.guillemotright = 556; + t.ellipsis = 1000; + t.perthousand = 1000; + t.questiondown = 611; + t.grave = 333; + t.acute = 333; + t.circumflex = 333; + t.tilde = 333; + t.macron = 333; + t.breve = 333; + t.dotaccent = 333; + t.dieresis = 333; + t.ring = 333; + t.cedilla = 333; + t.hungarumlaut = 333; + t.ogonek = 333; + t.caron = 333; + t.emdash = 1000; + t.AE = 1000; + t.ordfeminine = 370; + t.Lslash = 611; + t.Oslash = 778; + t.OE = 1000; + t.ordmasculine = 365; + t.ae = 889; + t.dotlessi = 278; + t.lslash = 278; + t.oslash = 611; + t.oe = 944; + t.germandbls = 611; + t.Idieresis = 278; + t.eacute = 556; + t.abreve = 556; + t.uhungarumlaut = 611; + t.ecaron = 556; + t.Ydieresis = 667; + t.divide = 584; + t.Yacute = 667; + t.Acircumflex = 722; + t.aacute = 556; + t.Ucircumflex = 722; + t.yacute = 556; + t.scommaaccent = 556; + t.ecircumflex = 556; + t.Uring = 722; + t.Udieresis = 722; + t.aogonek = 556; + t.Uacute = 722; + t.uogonek = 611; + t.Edieresis = 667; + t.Dcroat = 722; + t.commaaccent = 250; + t.copyright = 737; + t.Emacron = 667; + t.ccaron = 556; + t.aring = 556; + t.Ncommaaccent = 722; + t.lacute = 278; + t.agrave = 556; + t.Tcommaaccent = 611; + t.Cacute = 722; + t.atilde = 556; + t.Edotaccent = 667; + t.scaron = 556; + t.scedilla = 556; + t.iacute = 278; + t.lozenge = 494; + t.Rcaron = 722; + t.Gcommaaccent = 778; + t.ucircumflex = 611; + t.acircumflex = 556; + t.Amacron = 722; + t.rcaron = 389; + t.ccedilla = 556; + t.Zdotaccent = 611; + t.Thorn = 667; + t.Omacron = 778; + t.Racute = 722; + t.Sacute = 667; + t.dcaron = 743; + t.Umacron = 722; + t.uring = 611; + t.threesuperior = 333; + t.Ograve = 778; + t.Agrave = 722; + t.Abreve = 722; + t.multiply = 584; + t.uacute = 611; + t.Tcaron = 611; + t.partialdiff = 494; + t.ydieresis = 556; + t.Nacute = 722; + t.icircumflex = 278; + t.Ecircumflex = 667; + t.adieresis = 556; + t.edieresis = 556; + t.cacute = 556; + t.nacute = 611; + t.umacron = 611; + t.Ncaron = 722; + t.Iacute = 278; + t.plusminus = 584; + t.brokenbar = 280; + t.registered = 737; + t.Gbreve = 778; + t.Idotaccent = 278; + t.summation = 600; + t.Egrave = 667; + t.racute = 389; + t.omacron = 611; + t.Zacute = 611; + t.Zcaron = 611; + t.greaterequal = 549; + t.Eth = 722; + t.Ccedilla = 722; + t.lcommaaccent = 278; + t.tcaron = 389; + t.eogonek = 556; + t.Uogonek = 722; + t.Aacute = 722; + t.Adieresis = 722; + t.egrave = 556; + t.zacute = 500; + t.iogonek = 278; + t.Oacute = 778; + t.oacute = 611; + t.amacron = 556; + t.sacute = 556; + t.idieresis = 278; + t.Ocircumflex = 778; + t.Ugrave = 722; + t.Delta = 612; + t.thorn = 611; + t.twosuperior = 333; + t.Odieresis = 778; + t.mu = 611; + t.igrave = 278; + t.ohungarumlaut = 611; + t.Eogonek = 667; + t.dcroat = 611; + t.threequarters = 834; + t.Scedilla = 667; + t.lcaron = 400; + t.Kcommaaccent = 722; + t.Lacute = 611; + t.trademark = 1000; + t.edotaccent = 556; + t.Igrave = 278; + t.Imacron = 278; + t.Lcaron = 611; + t.onehalf = 834; + t.lessequal = 549; + t.ocircumflex = 611; + t.ntilde = 611; + t.Uhungarumlaut = 722; + t.Eacute = 667; + t.emacron = 556; + t.gbreve = 611; + t.onequarter = 834; + t.Scaron = 667; + t.Scommaaccent = 667; + t.Ohungarumlaut = 778; + t.degree = 400; + t.ograve = 611; + t.Ccaron = 722; + t.ugrave = 611; + t.radical = 549; + t.Dcaron = 722; + t.rcommaaccent = 389; + t.Ntilde = 722; + t.otilde = 611; + t.Rcommaaccent = 722; + t.Lcommaaccent = 611; + t.Atilde = 722; + t.Aogonek = 722; + t.Aring = 722; + t.Otilde = 778; + t.zdotaccent = 500; + t.Ecaron = 667; + t.Iogonek = 278; + t.kcommaaccent = 556; + t.minus = 584; + t.Icircumflex = 278; + t.ncaron = 611; + t.tcommaaccent = 333; + t.logicalnot = 584; + t.odieresis = 611; + t.udieresis = 611; + t.notequal = 549; + t.gcommaaccent = 611; + t.eth = 611; + t.zcaron = 500; + t.ncommaaccent = 611; + t.onesuperior = 333; + t.imacron = 278; + t.Euro = 556; + }); + t["Helvetica-BoldOblique"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t.space = 278; + t.exclam = 333; + t.quotedbl = 474; + t.numbersign = 556; + t.dollar = 556; + t.percent = 889; + t.ampersand = 722; + t.quoteright = 278; + t.parenleft = 333; + t.parenright = 333; + t.asterisk = 389; + t.plus = 584; + t.comma = 278; + t.hyphen = 333; + t.period = 278; + t.slash = 278; + t.zero = 556; + t.one = 556; + t.two = 556; + t.three = 556; + t.four = 556; + t.five = 556; + t.six = 556; + t.seven = 556; + t.eight = 556; + t.nine = 556; + t.colon = 333; + t.semicolon = 333; + t.less = 584; + t.equal = 584; + t.greater = 584; + t.question = 611; + t.at = 975; + t.A = 722; + t.B = 722; + t.C = 722; + t.D = 722; + t.E = 667; + t.F = 611; + t.G = 778; + t.H = 722; + t.I = 278; + t.J = 556; + t.K = 722; + t.L = 611; + t.M = 833; + t.N = 722; + t.O = 778; + t.P = 667; + t.Q = 778; + t.R = 722; + t.S = 667; + t.T = 611; + t.U = 722; + t.V = 667; + t.W = 944; + t.X = 667; + t.Y = 667; + t.Z = 611; + t.bracketleft = 333; + t.backslash = 278; + t.bracketright = 333; + t.asciicircum = 584; + t.underscore = 556; + t.quoteleft = 278; + t.a = 556; + t.b = 611; + t.c = 556; + t.d = 611; + t.e = 556; + t.f = 333; + t.g = 611; + t.h = 611; + t.i = 278; + t.j = 278; + t.k = 556; + t.l = 278; + t.m = 889; + t.n = 611; + t.o = 611; + t.p = 611; + t.q = 611; + t.r = 389; + t.s = 556; + t.t = 333; + t.u = 611; + t.v = 556; + t.w = 778; + t.x = 556; + t.y = 556; + t.z = 500; + t.braceleft = 389; + t.bar = 280; + t.braceright = 389; + t.asciitilde = 584; + t.exclamdown = 333; + t.cent = 556; + t.sterling = 556; + t.fraction = 167; + t.yen = 556; + t.florin = 556; + t.section = 556; + t.currency = 556; + t.quotesingle = 238; + t.quotedblleft = 500; + t.guillemotleft = 556; + t.guilsinglleft = 333; + t.guilsinglright = 333; + t.fi = 611; + t.fl = 611; + t.endash = 556; + t.dagger = 556; + t.daggerdbl = 556; + t.periodcentered = 278; + t.paragraph = 556; + t.bullet = 350; + t.quotesinglbase = 278; + t.quotedblbase = 500; + t.quotedblright = 500; + t.guillemotright = 556; + t.ellipsis = 1000; + t.perthousand = 1000; + t.questiondown = 611; + t.grave = 333; + t.acute = 333; + t.circumflex = 333; + t.tilde = 333; + t.macron = 333; + t.breve = 333; + t.dotaccent = 333; + t.dieresis = 333; + t.ring = 333; + t.cedilla = 333; + t.hungarumlaut = 333; + t.ogonek = 333; + t.caron = 333; + t.emdash = 1000; + t.AE = 1000; + t.ordfeminine = 370; + t.Lslash = 611; + t.Oslash = 778; + t.OE = 1000; + t.ordmasculine = 365; + t.ae = 889; + t.dotlessi = 278; + t.lslash = 278; + t.oslash = 611; + t.oe = 944; + t.germandbls = 611; + t.Idieresis = 278; + t.eacute = 556; + t.abreve = 556; + t.uhungarumlaut = 611; + t.ecaron = 556; + t.Ydieresis = 667; + t.divide = 584; + t.Yacute = 667; + t.Acircumflex = 722; + t.aacute = 556; + t.Ucircumflex = 722; + t.yacute = 556; + t.scommaaccent = 556; + t.ecircumflex = 556; + t.Uring = 722; + t.Udieresis = 722; + t.aogonek = 556; + t.Uacute = 722; + t.uogonek = 611; + t.Edieresis = 667; + t.Dcroat = 722; + t.commaaccent = 250; + t.copyright = 737; + t.Emacron = 667; + t.ccaron = 556; + t.aring = 556; + t.Ncommaaccent = 722; + t.lacute = 278; + t.agrave = 556; + t.Tcommaaccent = 611; + t.Cacute = 722; + t.atilde = 556; + t.Edotaccent = 667; + t.scaron = 556; + t.scedilla = 556; + t.iacute = 278; + t.lozenge = 494; + t.Rcaron = 722; + t.Gcommaaccent = 778; + t.ucircumflex = 611; + t.acircumflex = 556; + t.Amacron = 722; + t.rcaron = 389; + t.ccedilla = 556; + t.Zdotaccent = 611; + t.Thorn = 667; + t.Omacron = 778; + t.Racute = 722; + t.Sacute = 667; + t.dcaron = 743; + t.Umacron = 722; + t.uring = 611; + t.threesuperior = 333; + t.Ograve = 778; + t.Agrave = 722; + t.Abreve = 722; + t.multiply = 584; + t.uacute = 611; + t.Tcaron = 611; + t.partialdiff = 494; + t.ydieresis = 556; + t.Nacute = 722; + t.icircumflex = 278; + t.Ecircumflex = 667; + t.adieresis = 556; + t.edieresis = 556; + t.cacute = 556; + t.nacute = 611; + t.umacron = 611; + t.Ncaron = 722; + t.Iacute = 278; + t.plusminus = 584; + t.brokenbar = 280; + t.registered = 737; + t.Gbreve = 778; + t.Idotaccent = 278; + t.summation = 600; + t.Egrave = 667; + t.racute = 389; + t.omacron = 611; + t.Zacute = 611; + t.Zcaron = 611; + t.greaterequal = 549; + t.Eth = 722; + t.Ccedilla = 722; + t.lcommaaccent = 278; + t.tcaron = 389; + t.eogonek = 556; + t.Uogonek = 722; + t.Aacute = 722; + t.Adieresis = 722; + t.egrave = 556; + t.zacute = 500; + t.iogonek = 278; + t.Oacute = 778; + t.oacute = 611; + t.amacron = 556; + t.sacute = 556; + t.idieresis = 278; + t.Ocircumflex = 778; + t.Ugrave = 722; + t.Delta = 612; + t.thorn = 611; + t.twosuperior = 333; + t.Odieresis = 778; + t.mu = 611; + t.igrave = 278; + t.ohungarumlaut = 611; + t.Eogonek = 667; + t.dcroat = 611; + t.threequarters = 834; + t.Scedilla = 667; + t.lcaron = 400; + t.Kcommaaccent = 722; + t.Lacute = 611; + t.trademark = 1000; + t.edotaccent = 556; + t.Igrave = 278; + t.Imacron = 278; + t.Lcaron = 611; + t.onehalf = 834; + t.lessequal = 549; + t.ocircumflex = 611; + t.ntilde = 611; + t.Uhungarumlaut = 722; + t.Eacute = 667; + t.emacron = 556; + t.gbreve = 611; + t.onequarter = 834; + t.Scaron = 667; + t.Scommaaccent = 667; + t.Ohungarumlaut = 778; + t.degree = 400; + t.ograve = 611; + t.Ccaron = 722; + t.ugrave = 611; + t.radical = 549; + t.Dcaron = 722; + t.rcommaaccent = 389; + t.Ntilde = 722; + t.otilde = 611; + t.Rcommaaccent = 722; + t.Lcommaaccent = 611; + t.Atilde = 722; + t.Aogonek = 722; + t.Aring = 722; + t.Otilde = 778; + t.zdotaccent = 500; + t.Ecaron = 667; + t.Iogonek = 278; + t.kcommaaccent = 556; + t.minus = 584; + t.Icircumflex = 278; + t.ncaron = 611; + t.tcommaaccent = 333; + t.logicalnot = 584; + t.odieresis = 611; + t.udieresis = 611; + t.notequal = 549; + t.gcommaaccent = 611; + t.eth = 611; + t.zcaron = 500; + t.ncommaaccent = 611; + t.onesuperior = 333; + t.imacron = 278; + t.Euro = 556; + }); + t["Helvetica-Oblique"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t.space = 278; + t.exclam = 278; + t.quotedbl = 355; + t.numbersign = 556; + t.dollar = 556; + t.percent = 889; + t.ampersand = 667; + t.quoteright = 222; + t.parenleft = 333; + t.parenright = 333; + t.asterisk = 389; + t.plus = 584; + t.comma = 278; + t.hyphen = 333; + t.period = 278; + t.slash = 278; + t.zero = 556; + t.one = 556; + t.two = 556; + t.three = 556; + t.four = 556; + t.five = 556; + t.six = 556; + t.seven = 556; + t.eight = 556; + t.nine = 556; + t.colon = 278; + t.semicolon = 278; + t.less = 584; + t.equal = 584; + t.greater = 584; + t.question = 556; + t.at = 1015; + t.A = 667; + t.B = 667; + t.C = 722; + t.D = 722; + t.E = 667; + t.F = 611; + t.G = 778; + t.H = 722; + t.I = 278; + t.J = 500; + t.K = 667; + t.L = 556; + t.M = 833; + t.N = 722; + t.O = 778; + t.P = 667; + t.Q = 778; + t.R = 722; + t.S = 667; + t.T = 611; + t.U = 722; + t.V = 667; + t.W = 944; + t.X = 667; + t.Y = 667; + t.Z = 611; + t.bracketleft = 278; + t.backslash = 278; + t.bracketright = 278; + t.asciicircum = 469; + t.underscore = 556; + t.quoteleft = 222; + t.a = 556; + t.b = 556; + t.c = 500; + t.d = 556; + t.e = 556; + t.f = 278; + t.g = 556; + t.h = 556; + t.i = 222; + t.j = 222; + t.k = 500; + t.l = 222; + t.m = 833; + t.n = 556; + t.o = 556; + t.p = 556; + t.q = 556; + t.r = 333; + t.s = 500; + t.t = 278; + t.u = 556; + t.v = 500; + t.w = 722; + t.x = 500; + t.y = 500; + t.z = 500; + t.braceleft = 334; + t.bar = 260; + t.braceright = 334; + t.asciitilde = 584; + t.exclamdown = 333; + t.cent = 556; + t.sterling = 556; + t.fraction = 167; + t.yen = 556; + t.florin = 556; + t.section = 556; + t.currency = 556; + t.quotesingle = 191; + t.quotedblleft = 333; + t.guillemotleft = 556; + t.guilsinglleft = 333; + t.guilsinglright = 333; + t.fi = 500; + t.fl = 500; + t.endash = 556; + t.dagger = 556; + t.daggerdbl = 556; + t.periodcentered = 278; + t.paragraph = 537; + t.bullet = 350; + t.quotesinglbase = 222; + t.quotedblbase = 333; + t.quotedblright = 333; + t.guillemotright = 556; + t.ellipsis = 1000; + t.perthousand = 1000; + t.questiondown = 611; + t.grave = 333; + t.acute = 333; + t.circumflex = 333; + t.tilde = 333; + t.macron = 333; + t.breve = 333; + t.dotaccent = 333; + t.dieresis = 333; + t.ring = 333; + t.cedilla = 333; + t.hungarumlaut = 333; + t.ogonek = 333; + t.caron = 333; + t.emdash = 1000; + t.AE = 1000; + t.ordfeminine = 370; + t.Lslash = 556; + t.Oslash = 778; + t.OE = 1000; + t.ordmasculine = 365; + t.ae = 889; + t.dotlessi = 278; + t.lslash = 222; + t.oslash = 611; + t.oe = 944; + t.germandbls = 611; + t.Idieresis = 278; + t.eacute = 556; + t.abreve = 556; + t.uhungarumlaut = 556; + t.ecaron = 556; + t.Ydieresis = 667; + t.divide = 584; + t.Yacute = 667; + t.Acircumflex = 667; + t.aacute = 556; + t.Ucircumflex = 722; + t.yacute = 500; + t.scommaaccent = 500; + t.ecircumflex = 556; + t.Uring = 722; + t.Udieresis = 722; + t.aogonek = 556; + t.Uacute = 722; + t.uogonek = 556; + t.Edieresis = 667; + t.Dcroat = 722; + t.commaaccent = 250; + t.copyright = 737; + t.Emacron = 667; + t.ccaron = 500; + t.aring = 556; + t.Ncommaaccent = 722; + t.lacute = 222; + t.agrave = 556; + t.Tcommaaccent = 611; + t.Cacute = 722; + t.atilde = 556; + t.Edotaccent = 667; + t.scaron = 500; + t.scedilla = 500; + t.iacute = 278; + t.lozenge = 471; + t.Rcaron = 722; + t.Gcommaaccent = 778; + t.ucircumflex = 556; + t.acircumflex = 556; + t.Amacron = 667; + t.rcaron = 333; + t.ccedilla = 500; + t.Zdotaccent = 611; + t.Thorn = 667; + t.Omacron = 778; + t.Racute = 722; + t.Sacute = 667; + t.dcaron = 643; + t.Umacron = 722; + t.uring = 556; + t.threesuperior = 333; + t.Ograve = 778; + t.Agrave = 667; + t.Abreve = 667; + t.multiply = 584; + t.uacute = 556; + t.Tcaron = 611; + t.partialdiff = 476; + t.ydieresis = 500; + t.Nacute = 722; + t.icircumflex = 278; + t.Ecircumflex = 667; + t.adieresis = 556; + t.edieresis = 556; + t.cacute = 500; + t.nacute = 556; + t.umacron = 556; + t.Ncaron = 722; + t.Iacute = 278; + t.plusminus = 584; + t.brokenbar = 260; + t.registered = 737; + t.Gbreve = 778; + t.Idotaccent = 278; + t.summation = 600; + t.Egrave = 667; + t.racute = 333; + t.omacron = 556; + t.Zacute = 611; + t.Zcaron = 611; + t.greaterequal = 549; + t.Eth = 722; + t.Ccedilla = 722; + t.lcommaaccent = 222; + t.tcaron = 317; + t.eogonek = 556; + t.Uogonek = 722; + t.Aacute = 667; + t.Adieresis = 667; + t.egrave = 556; + t.zacute = 500; + t.iogonek = 222; + t.Oacute = 778; + t.oacute = 556; + t.amacron = 556; + t.sacute = 500; + t.idieresis = 278; + t.Ocircumflex = 778; + t.Ugrave = 722; + t.Delta = 612; + t.thorn = 556; + t.twosuperior = 333; + t.Odieresis = 778; + t.mu = 556; + t.igrave = 278; + t.ohungarumlaut = 556; + t.Eogonek = 667; + t.dcroat = 556; + t.threequarters = 834; + t.Scedilla = 667; + t.lcaron = 299; + t.Kcommaaccent = 667; + t.Lacute = 556; + t.trademark = 1000; + t.edotaccent = 556; + t.Igrave = 278; + t.Imacron = 278; + t.Lcaron = 556; + t.onehalf = 834; + t.lessequal = 549; + t.ocircumflex = 556; + t.ntilde = 556; + t.Uhungarumlaut = 722; + t.Eacute = 667; + t.emacron = 556; + t.gbreve = 556; + t.onequarter = 834; + t.Scaron = 667; + t.Scommaaccent = 667; + t.Ohungarumlaut = 778; + t.degree = 400; + t.ograve = 556; + t.Ccaron = 722; + t.ugrave = 556; + t.radical = 453; + t.Dcaron = 722; + t.rcommaaccent = 333; + t.Ntilde = 722; + t.otilde = 556; + t.Rcommaaccent = 722; + t.Lcommaaccent = 556; + t.Atilde = 667; + t.Aogonek = 667; + t.Aring = 667; + t.Otilde = 778; + t.zdotaccent = 500; + t.Ecaron = 667; + t.Iogonek = 278; + t.kcommaaccent = 500; + t.minus = 584; + t.Icircumflex = 278; + t.ncaron = 556; + t.tcommaaccent = 278; + t.logicalnot = 584; + t.odieresis = 556; + t.udieresis = 556; + t.notequal = 549; + t.gcommaaccent = 556; + t.eth = 556; + t.zcaron = 500; + t.ncommaaccent = 556; + t.onesuperior = 333; + t.imacron = 278; + t.Euro = 556; + }); + t.Symbol = (0, _core_utils.getLookupTableFactory)(function (t) { + t.space = 250; + t.exclam = 333; + t.universal = 713; + t.numbersign = 500; + t.existential = 549; + t.percent = 833; + t.ampersand = 778; + t.suchthat = 439; + t.parenleft = 333; + t.parenright = 333; + t.asteriskmath = 500; + t.plus = 549; + t.comma = 250; + t.minus = 549; + t.period = 250; + t.slash = 278; + t.zero = 500; + t.one = 500; + t.two = 500; + t.three = 500; + t.four = 500; + t.five = 500; + t.six = 500; + t.seven = 500; + t.eight = 500; + t.nine = 500; + t.colon = 278; + t.semicolon = 278; + t.less = 549; + t.equal = 549; + t.greater = 549; + t.question = 444; + t.congruent = 549; + t.Alpha = 722; + t.Beta = 667; + t.Chi = 722; + t.Delta = 612; + t.Epsilon = 611; + t.Phi = 763; + t.Gamma = 603; + t.Eta = 722; + t.Iota = 333; + t.theta1 = 631; + t.Kappa = 722; + t.Lambda = 686; + t.Mu = 889; + t.Nu = 722; + t.Omicron = 722; + t.Pi = 768; + t.Theta = 741; + t.Rho = 556; + t.Sigma = 592; + t.Tau = 611; + t.Upsilon = 690; + t.sigma1 = 439; + t.Omega = 768; + t.Xi = 645; + t.Psi = 795; + t.Zeta = 611; + t.bracketleft = 333; + t.therefore = 863; + t.bracketright = 333; + t.perpendicular = 658; + t.underscore = 500; + t.radicalex = 500; + t.alpha = 631; + t.beta = 549; + t.chi = 549; + t.delta = 494; + t.epsilon = 439; + t.phi = 521; + t.gamma = 411; + t.eta = 603; + t.iota = 329; + t.phi1 = 603; + t.kappa = 549; + t.lambda = 549; + t.mu = 576; + t.nu = 521; + t.omicron = 549; + t.pi = 549; + t.theta = 521; + t.rho = 549; + t.sigma = 603; + t.tau = 439; + t.upsilon = 576; + t.omega1 = 713; + t.omega = 686; + t.xi = 493; + t.psi = 686; + t.zeta = 494; + t.braceleft = 480; + t.bar = 200; + t.braceright = 480; + t.similar = 549; + t.Euro = 750; + t.Upsilon1 = 620; + t.minute = 247; + t.lessequal = 549; + t.fraction = 167; + t.infinity = 713; + t.florin = 500; + t.club = 753; + t.diamond = 753; + t.heart = 753; + t.spade = 753; + t.arrowboth = 1042; + t.arrowleft = 987; + t.arrowup = 603; + t.arrowright = 987; + t.arrowdown = 603; + t.degree = 400; + t.plusminus = 549; + t.second = 411; + t.greaterequal = 549; + t.multiply = 549; + t.proportional = 713; + t.partialdiff = 494; + t.bullet = 460; + t.divide = 549; + t.notequal = 549; + t.equivalence = 549; + t.approxequal = 549; + t.ellipsis = 1000; + t.arrowvertex = 603; + t.arrowhorizex = 1000; + t.carriagereturn = 658; + t.aleph = 823; + t.Ifraktur = 686; + t.Rfraktur = 795; + t.weierstrass = 987; + t.circlemultiply = 768; + t.circleplus = 768; + t.emptyset = 823; + t.intersection = 768; + t.union = 768; + t.propersuperset = 713; + t.reflexsuperset = 713; + t.notsubset = 713; + t.propersubset = 713; + t.reflexsubset = 713; + t.element = 713; + t.notelement = 713; + t.angle = 768; + t.gradient = 713; + t.registerserif = 790; + t.copyrightserif = 790; + t.trademarkserif = 890; + t.product = 823; + t.radical = 549; + t.dotmath = 250; + t.logicalnot = 713; + t.logicaland = 603; + t.logicalor = 603; + t.arrowdblboth = 1042; + t.arrowdblleft = 987; + t.arrowdblup = 603; + t.arrowdblright = 987; + t.arrowdbldown = 603; + t.lozenge = 494; + t.angleleft = 329; + t.registersans = 790; + t.copyrightsans = 790; + t.trademarksans = 786; + t.summation = 713; + t.parenlefttp = 384; + t.parenleftex = 384; + t.parenleftbt = 384; + t.bracketlefttp = 384; + t.bracketleftex = 384; + t.bracketleftbt = 384; + t.bracelefttp = 494; + t.braceleftmid = 494; + t.braceleftbt = 494; + t.braceex = 494; + t.angleright = 329; + t.integral = 274; + t.integraltp = 686; + t.integralex = 686; + t.integralbt = 686; + t.parenrighttp = 384; + t.parenrightex = 384; + t.parenrightbt = 384; + t.bracketrighttp = 384; + t.bracketrightex = 384; + t.bracketrightbt = 384; + t.bracerighttp = 494; + t.bracerightmid = 494; + t.bracerightbt = 494; + t.apple = 790; + }); + t["Times-Roman"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t.space = 250; + t.exclam = 333; + t.quotedbl = 408; + t.numbersign = 500; + t.dollar = 500; + t.percent = 833; + t.ampersand = 778; + t.quoteright = 333; + t.parenleft = 333; + t.parenright = 333; + t.asterisk = 500; + t.plus = 564; + t.comma = 250; + t.hyphen = 333; + t.period = 250; + t.slash = 278; + t.zero = 500; + t.one = 500; + t.two = 500; + t.three = 500; + t.four = 500; + t.five = 500; + t.six = 500; + t.seven = 500; + t.eight = 500; + t.nine = 500; + t.colon = 278; + t.semicolon = 278; + t.less = 564; + t.equal = 564; + t.greater = 564; + t.question = 444; + t.at = 921; + t.A = 722; + t.B = 667; + t.C = 667; + t.D = 722; + t.E = 611; + t.F = 556; + t.G = 722; + t.H = 722; + t.I = 333; + t.J = 389; + t.K = 722; + t.L = 611; + t.M = 889; + t.N = 722; + t.O = 722; + t.P = 556; + t.Q = 722; + t.R = 667; + t.S = 556; + t.T = 611; + t.U = 722; + t.V = 722; + t.W = 944; + t.X = 722; + t.Y = 722; + t.Z = 611; + t.bracketleft = 333; + t.backslash = 278; + t.bracketright = 333; + t.asciicircum = 469; + t.underscore = 500; + t.quoteleft = 333; + t.a = 444; + t.b = 500; + t.c = 444; + t.d = 500; + t.e = 444; + t.f = 333; + t.g = 500; + t.h = 500; + t.i = 278; + t.j = 278; + t.k = 500; + t.l = 278; + t.m = 778; + t.n = 500; + t.o = 500; + t.p = 500; + t.q = 500; + t.r = 333; + t.s = 389; + t.t = 278; + t.u = 500; + t.v = 500; + t.w = 722; + t.x = 500; + t.y = 500; + t.z = 444; + t.braceleft = 480; + t.bar = 200; + t.braceright = 480; + t.asciitilde = 541; + t.exclamdown = 333; + t.cent = 500; + t.sterling = 500; + t.fraction = 167; + t.yen = 500; + t.florin = 500; + t.section = 500; + t.currency = 500; + t.quotesingle = 180; + t.quotedblleft = 444; + t.guillemotleft = 500; + t.guilsinglleft = 333; + t.guilsinglright = 333; + t.fi = 556; + t.fl = 556; + t.endash = 500; + t.dagger = 500; + t.daggerdbl = 500; + t.periodcentered = 250; + t.paragraph = 453; + t.bullet = 350; + t.quotesinglbase = 333; + t.quotedblbase = 444; + t.quotedblright = 444; + t.guillemotright = 500; + t.ellipsis = 1000; + t.perthousand = 1000; + t.questiondown = 444; + t.grave = 333; + t.acute = 333; + t.circumflex = 333; + t.tilde = 333; + t.macron = 333; + t.breve = 333; + t.dotaccent = 333; + t.dieresis = 333; + t.ring = 333; + t.cedilla = 333; + t.hungarumlaut = 333; + t.ogonek = 333; + t.caron = 333; + t.emdash = 1000; + t.AE = 889; + t.ordfeminine = 276; + t.Lslash = 611; + t.Oslash = 722; + t.OE = 889; + t.ordmasculine = 310; + t.ae = 667; + t.dotlessi = 278; + t.lslash = 278; + t.oslash = 500; + t.oe = 722; + t.germandbls = 500; + t.Idieresis = 333; + t.eacute = 444; + t.abreve = 444; + t.uhungarumlaut = 500; + t.ecaron = 444; + t.Ydieresis = 722; + t.divide = 564; + t.Yacute = 722; + t.Acircumflex = 722; + t.aacute = 444; + t.Ucircumflex = 722; + t.yacute = 500; + t.scommaaccent = 389; + t.ecircumflex = 444; + t.Uring = 722; + t.Udieresis = 722; + t.aogonek = 444; + t.Uacute = 722; + t.uogonek = 500; + t.Edieresis = 611; + t.Dcroat = 722; + t.commaaccent = 250; + t.copyright = 760; + t.Emacron = 611; + t.ccaron = 444; + t.aring = 444; + t.Ncommaaccent = 722; + t.lacute = 278; + t.agrave = 444; + t.Tcommaaccent = 611; + t.Cacute = 667; + t.atilde = 444; + t.Edotaccent = 611; + t.scaron = 389; + t.scedilla = 389; + t.iacute = 278; + t.lozenge = 471; + t.Rcaron = 667; + t.Gcommaaccent = 722; + t.ucircumflex = 500; + t.acircumflex = 444; + t.Amacron = 722; + t.rcaron = 333; + t.ccedilla = 444; + t.Zdotaccent = 611; + t.Thorn = 556; + t.Omacron = 722; + t.Racute = 667; + t.Sacute = 556; + t.dcaron = 588; + t.Umacron = 722; + t.uring = 500; + t.threesuperior = 300; + t.Ograve = 722; + t.Agrave = 722; + t.Abreve = 722; + t.multiply = 564; + t.uacute = 500; + t.Tcaron = 611; + t.partialdiff = 476; + t.ydieresis = 500; + t.Nacute = 722; + t.icircumflex = 278; + t.Ecircumflex = 611; + t.adieresis = 444; + t.edieresis = 444; + t.cacute = 444; + t.nacute = 500; + t.umacron = 500; + t.Ncaron = 722; + t.Iacute = 333; + t.plusminus = 564; + t.brokenbar = 200; + t.registered = 760; + t.Gbreve = 722; + t.Idotaccent = 333; + t.summation = 600; + t.Egrave = 611; + t.racute = 333; + t.omacron = 500; + t.Zacute = 611; + t.Zcaron = 611; + t.greaterequal = 549; + t.Eth = 722; + t.Ccedilla = 667; + t.lcommaaccent = 278; + t.tcaron = 326; + t.eogonek = 444; + t.Uogonek = 722; + t.Aacute = 722; + t.Adieresis = 722; + t.egrave = 444; + t.zacute = 444; + t.iogonek = 278; + t.Oacute = 722; + t.oacute = 500; + t.amacron = 444; + t.sacute = 389; + t.idieresis = 278; + t.Ocircumflex = 722; + t.Ugrave = 722; + t.Delta = 612; + t.thorn = 500; + t.twosuperior = 300; + t.Odieresis = 722; + t.mu = 500; + t.igrave = 278; + t.ohungarumlaut = 500; + t.Eogonek = 611; + t.dcroat = 500; + t.threequarters = 750; + t.Scedilla = 556; + t.lcaron = 344; + t.Kcommaaccent = 722; + t.Lacute = 611; + t.trademark = 980; + t.edotaccent = 444; + t.Igrave = 333; + t.Imacron = 333; + t.Lcaron = 611; + t.onehalf = 750; + t.lessequal = 549; + t.ocircumflex = 500; + t.ntilde = 500; + t.Uhungarumlaut = 722; + t.Eacute = 611; + t.emacron = 444; + t.gbreve = 500; + t.onequarter = 750; + t.Scaron = 556; + t.Scommaaccent = 556; + t.Ohungarumlaut = 722; + t.degree = 400; + t.ograve = 500; + t.Ccaron = 667; + t.ugrave = 500; + t.radical = 453; + t.Dcaron = 722; + t.rcommaaccent = 333; + t.Ntilde = 722; + t.otilde = 500; + t.Rcommaaccent = 667; + t.Lcommaaccent = 611; + t.Atilde = 722; + t.Aogonek = 722; + t.Aring = 722; + t.Otilde = 722; + t.zdotaccent = 444; + t.Ecaron = 611; + t.Iogonek = 333; + t.kcommaaccent = 500; + t.minus = 564; + t.Icircumflex = 333; + t.ncaron = 500; + t.tcommaaccent = 278; + t.logicalnot = 564; + t.odieresis = 500; + t.udieresis = 500; + t.notequal = 549; + t.gcommaaccent = 500; + t.eth = 500; + t.zcaron = 444; + t.ncommaaccent = 500; + t.onesuperior = 300; + t.imacron = 278; + t.Euro = 500; + }); + t["Times-Bold"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t.space = 250; + t.exclam = 333; + t.quotedbl = 555; + t.numbersign = 500; + t.dollar = 500; + t.percent = 1000; + t.ampersand = 833; + t.quoteright = 333; + t.parenleft = 333; + t.parenright = 333; + t.asterisk = 500; + t.plus = 570; + t.comma = 250; + t.hyphen = 333; + t.period = 250; + t.slash = 278; + t.zero = 500; + t.one = 500; + t.two = 500; + t.three = 500; + t.four = 500; + t.five = 500; + t.six = 500; + t.seven = 500; + t.eight = 500; + t.nine = 500; + t.colon = 333; + t.semicolon = 333; + t.less = 570; + t.equal = 570; + t.greater = 570; + t.question = 500; + t.at = 930; + t.A = 722; + t.B = 667; + t.C = 722; + t.D = 722; + t.E = 667; + t.F = 611; + t.G = 778; + t.H = 778; + t.I = 389; + t.J = 500; + t.K = 778; + t.L = 667; + t.M = 944; + t.N = 722; + t.O = 778; + t.P = 611; + t.Q = 778; + t.R = 722; + t.S = 556; + t.T = 667; + t.U = 722; + t.V = 722; + t.W = 1000; + t.X = 722; + t.Y = 722; + t.Z = 667; + t.bracketleft = 333; + t.backslash = 278; + t.bracketright = 333; + t.asciicircum = 581; + t.underscore = 500; + t.quoteleft = 333; + t.a = 500; + t.b = 556; + t.c = 444; + t.d = 556; + t.e = 444; + t.f = 333; + t.g = 500; + t.h = 556; + t.i = 278; + t.j = 333; + t.k = 556; + t.l = 278; + t.m = 833; + t.n = 556; + t.o = 500; + t.p = 556; + t.q = 556; + t.r = 444; + t.s = 389; + t.t = 333; + t.u = 556; + t.v = 500; + t.w = 722; + t.x = 500; + t.y = 500; + t.z = 444; + t.braceleft = 394; + t.bar = 220; + t.braceright = 394; + t.asciitilde = 520; + t.exclamdown = 333; + t.cent = 500; + t.sterling = 500; + t.fraction = 167; + t.yen = 500; + t.florin = 500; + t.section = 500; + t.currency = 500; + t.quotesingle = 278; + t.quotedblleft = 500; + t.guillemotleft = 500; + t.guilsinglleft = 333; + t.guilsinglright = 333; + t.fi = 556; + t.fl = 556; + t.endash = 500; + t.dagger = 500; + t.daggerdbl = 500; + t.periodcentered = 250; + t.paragraph = 540; + t.bullet = 350; + t.quotesinglbase = 333; + t.quotedblbase = 500; + t.quotedblright = 500; + t.guillemotright = 500; + t.ellipsis = 1000; + t.perthousand = 1000; + t.questiondown = 500; + t.grave = 333; + t.acute = 333; + t.circumflex = 333; + t.tilde = 333; + t.macron = 333; + t.breve = 333; + t.dotaccent = 333; + t.dieresis = 333; + t.ring = 333; + t.cedilla = 333; + t.hungarumlaut = 333; + t.ogonek = 333; + t.caron = 333; + t.emdash = 1000; + t.AE = 1000; + t.ordfeminine = 300; + t.Lslash = 667; + t.Oslash = 778; + t.OE = 1000; + t.ordmasculine = 330; + t.ae = 722; + t.dotlessi = 278; + t.lslash = 278; + t.oslash = 500; + t.oe = 722; + t.germandbls = 556; + t.Idieresis = 389; + t.eacute = 444; + t.abreve = 500; + t.uhungarumlaut = 556; + t.ecaron = 444; + t.Ydieresis = 722; + t.divide = 570; + t.Yacute = 722; + t.Acircumflex = 722; + t.aacute = 500; + t.Ucircumflex = 722; + t.yacute = 500; + t.scommaaccent = 389; + t.ecircumflex = 444; + t.Uring = 722; + t.Udieresis = 722; + t.aogonek = 500; + t.Uacute = 722; + t.uogonek = 556; + t.Edieresis = 667; + t.Dcroat = 722; + t.commaaccent = 250; + t.copyright = 747; + t.Emacron = 667; + t.ccaron = 444; + t.aring = 500; + t.Ncommaaccent = 722; + t.lacute = 278; + t.agrave = 500; + t.Tcommaaccent = 667; + t.Cacute = 722; + t.atilde = 500; + t.Edotaccent = 667; + t.scaron = 389; + t.scedilla = 389; + t.iacute = 278; + t.lozenge = 494; + t.Rcaron = 722; + t.Gcommaaccent = 778; + t.ucircumflex = 556; + t.acircumflex = 500; + t.Amacron = 722; + t.rcaron = 444; + t.ccedilla = 444; + t.Zdotaccent = 667; + t.Thorn = 611; + t.Omacron = 778; + t.Racute = 722; + t.Sacute = 556; + t.dcaron = 672; + t.Umacron = 722; + t.uring = 556; + t.threesuperior = 300; + t.Ograve = 778; + t.Agrave = 722; + t.Abreve = 722; + t.multiply = 570; + t.uacute = 556; + t.Tcaron = 667; + t.partialdiff = 494; + t.ydieresis = 500; + t.Nacute = 722; + t.icircumflex = 278; + t.Ecircumflex = 667; + t.adieresis = 500; + t.edieresis = 444; + t.cacute = 444; + t.nacute = 556; + t.umacron = 556; + t.Ncaron = 722; + t.Iacute = 389; + t.plusminus = 570; + t.brokenbar = 220; + t.registered = 747; + t.Gbreve = 778; + t.Idotaccent = 389; + t.summation = 600; + t.Egrave = 667; + t.racute = 444; + t.omacron = 500; + t.Zacute = 667; + t.Zcaron = 667; + t.greaterequal = 549; + t.Eth = 722; + t.Ccedilla = 722; + t.lcommaaccent = 278; + t.tcaron = 416; + t.eogonek = 444; + t.Uogonek = 722; + t.Aacute = 722; + t.Adieresis = 722; + t.egrave = 444; + t.zacute = 444; + t.iogonek = 278; + t.Oacute = 778; + t.oacute = 500; + t.amacron = 500; + t.sacute = 389; + t.idieresis = 278; + t.Ocircumflex = 778; + t.Ugrave = 722; + t.Delta = 612; + t.thorn = 556; + t.twosuperior = 300; + t.Odieresis = 778; + t.mu = 556; + t.igrave = 278; + t.ohungarumlaut = 500; + t.Eogonek = 667; + t.dcroat = 556; + t.threequarters = 750; + t.Scedilla = 556; + t.lcaron = 394; + t.Kcommaaccent = 778; + t.Lacute = 667; + t.trademark = 1000; + t.edotaccent = 444; + t.Igrave = 389; + t.Imacron = 389; + t.Lcaron = 667; + t.onehalf = 750; + t.lessequal = 549; + t.ocircumflex = 500; + t.ntilde = 556; + t.Uhungarumlaut = 722; + t.Eacute = 667; + t.emacron = 444; + t.gbreve = 500; + t.onequarter = 750; + t.Scaron = 556; + t.Scommaaccent = 556; + t.Ohungarumlaut = 778; + t.degree = 400; + t.ograve = 500; + t.Ccaron = 722; + t.ugrave = 556; + t.radical = 549; + t.Dcaron = 722; + t.rcommaaccent = 444; + t.Ntilde = 722; + t.otilde = 500; + t.Rcommaaccent = 722; + t.Lcommaaccent = 667; + t.Atilde = 722; + t.Aogonek = 722; + t.Aring = 722; + t.Otilde = 778; + t.zdotaccent = 444; + t.Ecaron = 667; + t.Iogonek = 389; + t.kcommaaccent = 556; + t.minus = 570; + t.Icircumflex = 389; + t.ncaron = 556; + t.tcommaaccent = 333; + t.logicalnot = 570; + t.odieresis = 500; + t.udieresis = 556; + t.notequal = 549; + t.gcommaaccent = 500; + t.eth = 500; + t.zcaron = 444; + t.ncommaaccent = 556; + t.onesuperior = 300; + t.imacron = 278; + t.Euro = 500; + }); + t["Times-BoldItalic"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t.space = 250; + t.exclam = 389; + t.quotedbl = 555; + t.numbersign = 500; + t.dollar = 500; + t.percent = 833; + t.ampersand = 778; + t.quoteright = 333; + t.parenleft = 333; + t.parenright = 333; + t.asterisk = 500; + t.plus = 570; + t.comma = 250; + t.hyphen = 333; + t.period = 250; + t.slash = 278; + t.zero = 500; + t.one = 500; + t.two = 500; + t.three = 500; + t.four = 500; + t.five = 500; + t.six = 500; + t.seven = 500; + t.eight = 500; + t.nine = 500; + t.colon = 333; + t.semicolon = 333; + t.less = 570; + t.equal = 570; + t.greater = 570; + t.question = 500; + t.at = 832; + t.A = 667; + t.B = 667; + t.C = 667; + t.D = 722; + t.E = 667; + t.F = 667; + t.G = 722; + t.H = 778; + t.I = 389; + t.J = 500; + t.K = 667; + t.L = 611; + t.M = 889; + t.N = 722; + t.O = 722; + t.P = 611; + t.Q = 722; + t.R = 667; + t.S = 556; + t.T = 611; + t.U = 722; + t.V = 667; + t.W = 889; + t.X = 667; + t.Y = 611; + t.Z = 611; + t.bracketleft = 333; + t.backslash = 278; + t.bracketright = 333; + t.asciicircum = 570; + t.underscore = 500; + t.quoteleft = 333; + t.a = 500; + t.b = 500; + t.c = 444; + t.d = 500; + t.e = 444; + t.f = 333; + t.g = 500; + t.h = 556; + t.i = 278; + t.j = 278; + t.k = 500; + t.l = 278; + t.m = 778; + t.n = 556; + t.o = 500; + t.p = 500; + t.q = 500; + t.r = 389; + t.s = 389; + t.t = 278; + t.u = 556; + t.v = 444; + t.w = 667; + t.x = 500; + t.y = 444; + t.z = 389; + t.braceleft = 348; + t.bar = 220; + t.braceright = 348; + t.asciitilde = 570; + t.exclamdown = 389; + t.cent = 500; + t.sterling = 500; + t.fraction = 167; + t.yen = 500; + t.florin = 500; + t.section = 500; + t.currency = 500; + t.quotesingle = 278; + t.quotedblleft = 500; + t.guillemotleft = 500; + t.guilsinglleft = 333; + t.guilsinglright = 333; + t.fi = 556; + t.fl = 556; + t.endash = 500; + t.dagger = 500; + t.daggerdbl = 500; + t.periodcentered = 250; + t.paragraph = 500; + t.bullet = 350; + t.quotesinglbase = 333; + t.quotedblbase = 500; + t.quotedblright = 500; + t.guillemotright = 500; + t.ellipsis = 1000; + t.perthousand = 1000; + t.questiondown = 500; + t.grave = 333; + t.acute = 333; + t.circumflex = 333; + t.tilde = 333; + t.macron = 333; + t.breve = 333; + t.dotaccent = 333; + t.dieresis = 333; + t.ring = 333; + t.cedilla = 333; + t.hungarumlaut = 333; + t.ogonek = 333; + t.caron = 333; + t.emdash = 1000; + t.AE = 944; + t.ordfeminine = 266; + t.Lslash = 611; + t.Oslash = 722; + t.OE = 944; + t.ordmasculine = 300; + t.ae = 722; + t.dotlessi = 278; + t.lslash = 278; + t.oslash = 500; + t.oe = 722; + t.germandbls = 500; + t.Idieresis = 389; + t.eacute = 444; + t.abreve = 500; + t.uhungarumlaut = 556; + t.ecaron = 444; + t.Ydieresis = 611; + t.divide = 570; + t.Yacute = 611; + t.Acircumflex = 667; + t.aacute = 500; + t.Ucircumflex = 722; + t.yacute = 444; + t.scommaaccent = 389; + t.ecircumflex = 444; + t.Uring = 722; + t.Udieresis = 722; + t.aogonek = 500; + t.Uacute = 722; + t.uogonek = 556; + t.Edieresis = 667; + t.Dcroat = 722; + t.commaaccent = 250; + t.copyright = 747; + t.Emacron = 667; + t.ccaron = 444; + t.aring = 500; + t.Ncommaaccent = 722; + t.lacute = 278; + t.agrave = 500; + t.Tcommaaccent = 611; + t.Cacute = 667; + t.atilde = 500; + t.Edotaccent = 667; + t.scaron = 389; + t.scedilla = 389; + t.iacute = 278; + t.lozenge = 494; + t.Rcaron = 667; + t.Gcommaaccent = 722; + t.ucircumflex = 556; + t.acircumflex = 500; + t.Amacron = 667; + t.rcaron = 389; + t.ccedilla = 444; + t.Zdotaccent = 611; + t.Thorn = 611; + t.Omacron = 722; + t.Racute = 667; + t.Sacute = 556; + t.dcaron = 608; + t.Umacron = 722; + t.uring = 556; + t.threesuperior = 300; + t.Ograve = 722; + t.Agrave = 667; + t.Abreve = 667; + t.multiply = 570; + t.uacute = 556; + t.Tcaron = 611; + t.partialdiff = 494; + t.ydieresis = 444; + t.Nacute = 722; + t.icircumflex = 278; + t.Ecircumflex = 667; + t.adieresis = 500; + t.edieresis = 444; + t.cacute = 444; + t.nacute = 556; + t.umacron = 556; + t.Ncaron = 722; + t.Iacute = 389; + t.plusminus = 570; + t.brokenbar = 220; + t.registered = 747; + t.Gbreve = 722; + t.Idotaccent = 389; + t.summation = 600; + t.Egrave = 667; + t.racute = 389; + t.omacron = 500; + t.Zacute = 611; + t.Zcaron = 611; + t.greaterequal = 549; + t.Eth = 722; + t.Ccedilla = 667; + t.lcommaaccent = 278; + t.tcaron = 366; + t.eogonek = 444; + t.Uogonek = 722; + t.Aacute = 667; + t.Adieresis = 667; + t.egrave = 444; + t.zacute = 389; + t.iogonek = 278; + t.Oacute = 722; + t.oacute = 500; + t.amacron = 500; + t.sacute = 389; + t.idieresis = 278; + t.Ocircumflex = 722; + t.Ugrave = 722; + t.Delta = 612; + t.thorn = 500; + t.twosuperior = 300; + t.Odieresis = 722; + t.mu = 576; + t.igrave = 278; + t.ohungarumlaut = 500; + t.Eogonek = 667; + t.dcroat = 500; + t.threequarters = 750; + t.Scedilla = 556; + t.lcaron = 382; + t.Kcommaaccent = 667; + t.Lacute = 611; + t.trademark = 1000; + t.edotaccent = 444; + t.Igrave = 389; + t.Imacron = 389; + t.Lcaron = 611; + t.onehalf = 750; + t.lessequal = 549; + t.ocircumflex = 500; + t.ntilde = 556; + t.Uhungarumlaut = 722; + t.Eacute = 667; + t.emacron = 444; + t.gbreve = 500; + t.onequarter = 750; + t.Scaron = 556; + t.Scommaaccent = 556; + t.Ohungarumlaut = 722; + t.degree = 400; + t.ograve = 500; + t.Ccaron = 667; + t.ugrave = 556; + t.radical = 549; + t.Dcaron = 722; + t.rcommaaccent = 389; + t.Ntilde = 722; + t.otilde = 500; + t.Rcommaaccent = 667; + t.Lcommaaccent = 611; + t.Atilde = 667; + t.Aogonek = 667; + t.Aring = 667; + t.Otilde = 722; + t.zdotaccent = 389; + t.Ecaron = 667; + t.Iogonek = 389; + t.kcommaaccent = 500; + t.minus = 606; + t.Icircumflex = 389; + t.ncaron = 556; + t.tcommaaccent = 278; + t.logicalnot = 606; + t.odieresis = 500; + t.udieresis = 556; + t.notequal = 549; + t.gcommaaccent = 500; + t.eth = 500; + t.zcaron = 389; + t.ncommaaccent = 556; + t.onesuperior = 300; + t.imacron = 278; + t.Euro = 500; + }); + t["Times-Italic"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t.space = 250; + t.exclam = 333; + t.quotedbl = 420; + t.numbersign = 500; + t.dollar = 500; + t.percent = 833; + t.ampersand = 778; + t.quoteright = 333; + t.parenleft = 333; + t.parenright = 333; + t.asterisk = 500; + t.plus = 675; + t.comma = 250; + t.hyphen = 333; + t.period = 250; + t.slash = 278; + t.zero = 500; + t.one = 500; + t.two = 500; + t.three = 500; + t.four = 500; + t.five = 500; + t.six = 500; + t.seven = 500; + t.eight = 500; + t.nine = 500; + t.colon = 333; + t.semicolon = 333; + t.less = 675; + t.equal = 675; + t.greater = 675; + t.question = 500; + t.at = 920; + t.A = 611; + t.B = 611; + t.C = 667; + t.D = 722; + t.E = 611; + t.F = 611; + t.G = 722; + t.H = 722; + t.I = 333; + t.J = 444; + t.K = 667; + t.L = 556; + t.M = 833; + t.N = 667; + t.O = 722; + t.P = 611; + t.Q = 722; + t.R = 611; + t.S = 500; + t.T = 556; + t.U = 722; + t.V = 611; + t.W = 833; + t.X = 611; + t.Y = 556; + t.Z = 556; + t.bracketleft = 389; + t.backslash = 278; + t.bracketright = 389; + t.asciicircum = 422; + t.underscore = 500; + t.quoteleft = 333; + t.a = 500; + t.b = 500; + t.c = 444; + t.d = 500; + t.e = 444; + t.f = 278; + t.g = 500; + t.h = 500; + t.i = 278; + t.j = 278; + t.k = 444; + t.l = 278; + t.m = 722; + t.n = 500; + t.o = 500; + t.p = 500; + t.q = 500; + t.r = 389; + t.s = 389; + t.t = 278; + t.u = 500; + t.v = 444; + t.w = 667; + t.x = 444; + t.y = 444; + t.z = 389; + t.braceleft = 400; + t.bar = 275; + t.braceright = 400; + t.asciitilde = 541; + t.exclamdown = 389; + t.cent = 500; + t.sterling = 500; + t.fraction = 167; + t.yen = 500; + t.florin = 500; + t.section = 500; + t.currency = 500; + t.quotesingle = 214; + t.quotedblleft = 556; + t.guillemotleft = 500; + t.guilsinglleft = 333; + t.guilsinglright = 333; + t.fi = 500; + t.fl = 500; + t.endash = 500; + t.dagger = 500; + t.daggerdbl = 500; + t.periodcentered = 250; + t.paragraph = 523; + t.bullet = 350; + t.quotesinglbase = 333; + t.quotedblbase = 556; + t.quotedblright = 556; + t.guillemotright = 500; + t.ellipsis = 889; + t.perthousand = 1000; + t.questiondown = 500; + t.grave = 333; + t.acute = 333; + t.circumflex = 333; + t.tilde = 333; + t.macron = 333; + t.breve = 333; + t.dotaccent = 333; + t.dieresis = 333; + t.ring = 333; + t.cedilla = 333; + t.hungarumlaut = 333; + t.ogonek = 333; + t.caron = 333; + t.emdash = 889; + t.AE = 889; + t.ordfeminine = 276; + t.Lslash = 556; + t.Oslash = 722; + t.OE = 944; + t.ordmasculine = 310; + t.ae = 667; + t.dotlessi = 278; + t.lslash = 278; + t.oslash = 500; + t.oe = 667; + t.germandbls = 500; + t.Idieresis = 333; + t.eacute = 444; + t.abreve = 500; + t.uhungarumlaut = 500; + t.ecaron = 444; + t.Ydieresis = 556; + t.divide = 675; + t.Yacute = 556; + t.Acircumflex = 611; + t.aacute = 500; + t.Ucircumflex = 722; + t.yacute = 444; + t.scommaaccent = 389; + t.ecircumflex = 444; + t.Uring = 722; + t.Udieresis = 722; + t.aogonek = 500; + t.Uacute = 722; + t.uogonek = 500; + t.Edieresis = 611; + t.Dcroat = 722; + t.commaaccent = 250; + t.copyright = 760; + t.Emacron = 611; + t.ccaron = 444; + t.aring = 500; + t.Ncommaaccent = 667; + t.lacute = 278; + t.agrave = 500; + t.Tcommaaccent = 556; + t.Cacute = 667; + t.atilde = 500; + t.Edotaccent = 611; + t.scaron = 389; + t.scedilla = 389; + t.iacute = 278; + t.lozenge = 471; + t.Rcaron = 611; + t.Gcommaaccent = 722; + t.ucircumflex = 500; + t.acircumflex = 500; + t.Amacron = 611; + t.rcaron = 389; + t.ccedilla = 444; + t.Zdotaccent = 556; + t.Thorn = 611; + t.Omacron = 722; + t.Racute = 611; + t.Sacute = 500; + t.dcaron = 544; + t.Umacron = 722; + t.uring = 500; + t.threesuperior = 300; + t.Ograve = 722; + t.Agrave = 611; + t.Abreve = 611; + t.multiply = 675; + t.uacute = 500; + t.Tcaron = 556; + t.partialdiff = 476; + t.ydieresis = 444; + t.Nacute = 667; + t.icircumflex = 278; + t.Ecircumflex = 611; + t.adieresis = 500; + t.edieresis = 444; + t.cacute = 444; + t.nacute = 500; + t.umacron = 500; + t.Ncaron = 667; + t.Iacute = 333; + t.plusminus = 675; + t.brokenbar = 275; + t.registered = 760; + t.Gbreve = 722; + t.Idotaccent = 333; + t.summation = 600; + t.Egrave = 611; + t.racute = 389; + t.omacron = 500; + t.Zacute = 556; + t.Zcaron = 556; + t.greaterequal = 549; + t.Eth = 722; + t.Ccedilla = 667; + t.lcommaaccent = 278; + t.tcaron = 300; + t.eogonek = 444; + t.Uogonek = 722; + t.Aacute = 611; + t.Adieresis = 611; + t.egrave = 444; + t.zacute = 389; + t.iogonek = 278; + t.Oacute = 722; + t.oacute = 500; + t.amacron = 500; + t.sacute = 389; + t.idieresis = 278; + t.Ocircumflex = 722; + t.Ugrave = 722; + t.Delta = 612; + t.thorn = 500; + t.twosuperior = 300; + t.Odieresis = 722; + t.mu = 500; + t.igrave = 278; + t.ohungarumlaut = 500; + t.Eogonek = 611; + t.dcroat = 500; + t.threequarters = 750; + t.Scedilla = 500; + t.lcaron = 300; + t.Kcommaaccent = 667; + t.Lacute = 556; + t.trademark = 980; + t.edotaccent = 444; + t.Igrave = 333; + t.Imacron = 333; + t.Lcaron = 611; + t.onehalf = 750; + t.lessequal = 549; + t.ocircumflex = 500; + t.ntilde = 500; + t.Uhungarumlaut = 722; + t.Eacute = 611; + t.emacron = 444; + t.gbreve = 500; + t.onequarter = 750; + t.Scaron = 500; + t.Scommaaccent = 500; + t.Ohungarumlaut = 722; + t.degree = 400; + t.ograve = 500; + t.Ccaron = 667; + t.ugrave = 500; + t.radical = 453; + t.Dcaron = 722; + t.rcommaaccent = 389; + t.Ntilde = 667; + t.otilde = 500; + t.Rcommaaccent = 611; + t.Lcommaaccent = 556; + t.Atilde = 611; + t.Aogonek = 611; + t.Aring = 611; + t.Otilde = 722; + t.zdotaccent = 389; + t.Ecaron = 611; + t.Iogonek = 333; + t.kcommaaccent = 444; + t.minus = 675; + t.Icircumflex = 333; + t.ncaron = 500; + t.tcommaaccent = 278; + t.logicalnot = 675; + t.odieresis = 500; + t.udieresis = 500; + t.notequal = 549; + t.gcommaaccent = 500; + t.eth = 500; + t.zcaron = 389; + t.ncommaaccent = 500; + t.onesuperior = 300; + t.imacron = 278; + t.Euro = 500; + }); + t.ZapfDingbats = (0, _core_utils.getLookupTableFactory)(function (t) { + t.space = 278; + t.a1 = 974; + t.a2 = 961; + t.a202 = 974; + t.a3 = 980; + t.a4 = 719; + t.a5 = 789; + t.a119 = 790; + t.a118 = 791; + t.a117 = 690; + t.a11 = 960; + t.a12 = 939; + t.a13 = 549; + t.a14 = 855; + t.a15 = 911; + t.a16 = 933; + t.a105 = 911; + t.a17 = 945; + t.a18 = 974; + t.a19 = 755; + t.a20 = 846; + t.a21 = 762; + t.a22 = 761; + t.a23 = 571; + t.a24 = 677; + t.a25 = 763; + t.a26 = 760; + t.a27 = 759; + t.a28 = 754; + t.a6 = 494; + t.a7 = 552; + t.a8 = 537; + t.a9 = 577; + t.a10 = 692; + t.a29 = 786; + t.a30 = 788; + t.a31 = 788; + t.a32 = 790; + t.a33 = 793; + t.a34 = 794; + t.a35 = 816; + t.a36 = 823; + t.a37 = 789; + t.a38 = 841; + t.a39 = 823; + t.a40 = 833; + t.a41 = 816; + t.a42 = 831; + t.a43 = 923; + t.a44 = 744; + t.a45 = 723; + t.a46 = 749; + t.a47 = 790; + t.a48 = 792; + t.a49 = 695; + t.a50 = 776; + t.a51 = 768; + t.a52 = 792; + t.a53 = 759; + t.a54 = 707; + t.a55 = 708; + t.a56 = 682; + t.a57 = 701; + t.a58 = 826; + t.a59 = 815; + t.a60 = 789; + t.a61 = 789; + t.a62 = 707; + t.a63 = 687; + t.a64 = 696; + t.a65 = 689; + t.a66 = 786; + t.a67 = 787; + t.a68 = 713; + t.a69 = 791; + t.a70 = 785; + t.a71 = 791; + t.a72 = 873; + t.a73 = 761; + t.a74 = 762; + t.a203 = 762; + t.a75 = 759; + t.a204 = 759; + t.a76 = 892; + t.a77 = 892; + t.a78 = 788; + t.a79 = 784; + t.a81 = 438; + t.a82 = 138; + t.a83 = 277; + t.a84 = 415; + t.a97 = 392; + t.a98 = 392; + t.a99 = 668; + t.a100 = 668; + t.a89 = 390; + t.a90 = 390; + t.a93 = 317; + t.a94 = 317; + t.a91 = 276; + t.a92 = 276; + t.a205 = 509; + t.a85 = 509; + t.a206 = 410; + t.a86 = 410; + t.a87 = 234; + t.a88 = 234; + t.a95 = 334; + t.a96 = 334; + t.a101 = 732; + t.a102 = 544; + t.a103 = 544; + t.a104 = 910; + t.a106 = 667; + t.a107 = 760; + t.a108 = 760; + t.a112 = 776; + t.a111 = 595; + t.a110 = 694; + t.a109 = 626; + t.a120 = 788; + t.a121 = 788; + t.a122 = 788; + t.a123 = 788; + t.a124 = 788; + t.a125 = 788; + t.a126 = 788; + t.a127 = 788; + t.a128 = 788; + t.a129 = 788; + t.a130 = 788; + t.a131 = 788; + t.a132 = 788; + t.a133 = 788; + t.a134 = 788; + t.a135 = 788; + t.a136 = 788; + t.a137 = 788; + t.a138 = 788; + t.a139 = 788; + t.a140 = 788; + t.a141 = 788; + t.a142 = 788; + t.a143 = 788; + t.a144 = 788; + t.a145 = 788; + t.a146 = 788; + t.a147 = 788; + t.a148 = 788; + t.a149 = 788; + t.a150 = 788; + t.a151 = 788; + t.a152 = 788; + t.a153 = 788; + t.a154 = 788; + t.a155 = 788; + t.a156 = 788; + t.a157 = 788; + t.a158 = 788; + t.a159 = 788; + t.a160 = 894; + t.a161 = 838; + t.a163 = 1016; + t.a164 = 458; + t.a196 = 748; + t.a165 = 924; + t.a192 = 748; + t.a166 = 918; + t.a167 = 927; + t.a168 = 928; + t.a169 = 928; + t.a170 = 834; + t.a171 = 873; + t.a172 = 828; + t.a173 = 924; + t.a162 = 924; + t.a174 = 917; + t.a175 = 930; + t.a176 = 931; + t.a177 = 463; + t.a178 = 883; + t.a179 = 836; + t.a193 = 836; + t.a180 = 867; + t.a199 = 867; + t.a181 = 696; + t.a200 = 696; + t.a182 = 874; + t.a201 = 874; + t.a183 = 760; + t.a184 = 946; + t.a197 = 771; + t.a185 = 865; + t.a194 = 771; + t.a198 = 888; + t.a186 = 967; + t.a195 = 888; + t.a187 = 831; + t.a188 = 873; + t.a189 = 927; + t.a190 = 970; + t.a191 = 918; + }); +}); +exports.getMetrics = getMetrics; +const getFontBasicMetrics = (0, _core_utils.getLookupTableFactory)(function (t) { + t.Courier = { + ascent: 629, + descent: -157, + capHeight: 562, + xHeight: -426 + }; + t["Courier-Bold"] = { + ascent: 629, + descent: -157, + capHeight: 562, + xHeight: 439 + }; + t["Courier-Oblique"] = { + ascent: 629, + descent: -157, + capHeight: 562, + xHeight: 426 + }; + t["Courier-BoldOblique"] = { + ascent: 629, + descent: -157, + capHeight: 562, + xHeight: 426 + }; + t.Helvetica = { + ascent: 718, + descent: -207, + capHeight: 718, + xHeight: 523 + }; + t["Helvetica-Bold"] = { + ascent: 718, + descent: -207, + capHeight: 718, + xHeight: 532 + }; + t["Helvetica-Oblique"] = { + ascent: 718, + descent: -207, + capHeight: 718, + xHeight: 523 + }; + t["Helvetica-BoldOblique"] = { + ascent: 718, + descent: -207, + capHeight: 718, + xHeight: 532 + }; + t["Times-Roman"] = { + ascent: 683, + descent: -217, + capHeight: 662, + xHeight: 450 + }; + t["Times-Bold"] = { + ascent: 683, + descent: -217, + capHeight: 676, + xHeight: 461 + }; + t["Times-Italic"] = { + ascent: 683, + descent: -217, + capHeight: 653, + xHeight: 441 + }; + t["Times-BoldItalic"] = { + ascent: 683, + descent: -217, + capHeight: 669, + xHeight: 462 + }; + t.Symbol = { + ascent: Math.NaN, + descent: Math.NaN, + capHeight: Math.NaN, + xHeight: Math.NaN + }; + t.ZapfDingbats = { + ascent: Math.NaN, + descent: Math.NaN, + capHeight: Math.NaN, + xHeight: Math.NaN + }; +}); +exports.getFontBasicMetrics = getFontBasicMetrics; + +/***/ }), +/* 46 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.GlyfTable = void 0; +const ON_CURVE_POINT = 1 << 0; +const X_SHORT_VECTOR = 1 << 1; +const Y_SHORT_VECTOR = 1 << 2; +const REPEAT_FLAG = 1 << 3; +const X_IS_SAME_OR_POSITIVE_X_SHORT_VECTOR = 1 << 4; +const Y_IS_SAME_OR_POSITIVE_Y_SHORT_VECTOR = 1 << 5; +const OVERLAP_SIMPLE = 1 << 6; +const ARG_1_AND_2_ARE_WORDS = 1 << 0; +const ARGS_ARE_XY_VALUES = 1 << 1; +const WE_HAVE_A_SCALE = 1 << 3; +const MORE_COMPONENTS = 1 << 5; +const WE_HAVE_AN_X_AND_Y_SCALE = 1 << 6; +const WE_HAVE_A_TWO_BY_TWO = 1 << 7; +const WE_HAVE_INSTRUCTIONS = 1 << 8; + +class GlyfTable { + constructor({ + glyfTable, + isGlyphLocationsLong, + locaTable, + numGlyphs + }) { + this.glyphs = []; + const loca = new DataView(locaTable.buffer, locaTable.byteOffset, locaTable.byteLength); + const glyf = new DataView(glyfTable.buffer, glyfTable.byteOffset, glyfTable.byteLength); + const offsetSize = isGlyphLocationsLong ? 4 : 2; + let prev = isGlyphLocationsLong ? loca.getUint32(0) : 2 * loca.getUint16(0); + let pos = 0; + + for (let i = 0; i < numGlyphs; i++) { + pos += offsetSize; + const next = isGlyphLocationsLong ? loca.getUint32(pos) : 2 * loca.getUint16(pos); + + if (next === prev) { + this.glyphs.push(new Glyph({})); + continue; + } + + const glyph = Glyph.parse(prev, glyf); + this.glyphs.push(glyph); + prev = next; + } + } + + getSize() { + return this.glyphs.reduce((a, g) => { + const size = g.getSize(); + return a + (size + 3 & ~3); + }, 0); + } + + write() { + const totalSize = this.getSize(); + const glyfTable = new DataView(new ArrayBuffer(totalSize)); + const isLocationLong = totalSize > 0x1fffe; + const offsetSize = isLocationLong ? 4 : 2; + const locaTable = new DataView(new ArrayBuffer((this.glyphs.length + 1) * offsetSize)); + + if (isLocationLong) { + locaTable.setUint32(0, 0); + } else { + locaTable.setUint16(0, 0); + } + + let pos = 0; + let locaIndex = 0; + + for (const glyph of this.glyphs) { + pos += glyph.write(pos, glyfTable); + pos = pos + 3 & ~3; + locaIndex += offsetSize; + + if (isLocationLong) { + locaTable.setUint32(locaIndex, pos); + } else { + locaTable.setUint16(locaIndex, pos >> 1); + } + } + + return { + isLocationLong, + loca: new Uint8Array(locaTable.buffer), + glyf: new Uint8Array(glyfTable.buffer) + }; + } + + scale(factors) { + for (let i = 0, ii = this.glyphs.length; i < ii; i++) { + this.glyphs[i].scale(factors[i]); + } + } + +} + +exports.GlyfTable = GlyfTable; + +class Glyph { + constructor({ + header = null, + simple = null, + composites = null + }) { + this.header = header; + this.simple = simple; + this.composites = composites; + } + + static parse(pos, glyf) { + const [read, header] = GlyphHeader.parse(pos, glyf); + pos += read; + + if (header.numberOfContours < 0) { + const composites = []; + + while (true) { + const [n, composite] = CompositeGlyph.parse(pos, glyf); + pos += n; + composites.push(composite); + + if (!(composite.flags & MORE_COMPONENTS)) { + break; + } + } + + return new Glyph({ + header, + composites + }); + } + + const simple = SimpleGlyph.parse(pos, glyf, header.numberOfContours); + return new Glyph({ + header, + simple + }); + } + + getSize() { + if (!this.header) { + return 0; + } + + const size = this.simple ? this.simple.getSize() : this.composites.reduce((a, c) => a + c.getSize(), 0); + return this.header.getSize() + size; + } + + write(pos, buf) { + if (!this.header) { + return 0; + } + + const spos = pos; + pos += this.header.write(pos, buf); + + if (this.simple) { + pos += this.simple.write(pos, buf); + } else { + for (const composite of this.composites) { + pos += composite.write(pos, buf); + } + } + + return pos - spos; + } + + scale(factor) { + if (!this.header) { + return; + } + + const xMiddle = (this.header.xMin + this.header.xMax) / 2; + this.header.scale(xMiddle, factor); + + if (this.simple) { + this.simple.scale(xMiddle, factor); + } else { + for (const composite of this.composites) { + composite.scale(xMiddle, factor); + } + } + } + +} + +class GlyphHeader { + constructor({ + numberOfContours, + xMin, + yMin, + xMax, + yMax + }) { + this.numberOfContours = numberOfContours; + this.xMin = xMin; + this.yMin = yMin; + this.xMax = xMax; + this.yMax = yMax; + } + + static parse(pos, glyf) { + return [10, new GlyphHeader({ + numberOfContours: glyf.getInt16(pos), + xMin: glyf.getInt16(pos + 2), + yMin: glyf.getInt16(pos + 4), + xMax: glyf.getInt16(pos + 6), + yMax: glyf.getInt16(pos + 8) + })]; + } + + getSize() { + return 10; + } + + write(pos, buf) { + buf.setInt16(pos, this.numberOfContours); + buf.setInt16(pos + 2, this.xMin); + buf.setInt16(pos + 4, this.yMin); + buf.setInt16(pos + 6, this.xMax); + buf.setInt16(pos + 8, this.yMax); + return 10; + } + + scale(x, factor) { + this.xMin = Math.round(x + (this.xMin - x) * factor); + this.xMax = Math.round(x + (this.xMax - x) * factor); + } + +} + +class Contour { + constructor({ + flags, + xCoordinates, + yCoordinates + }) { + this.xCoordinates = xCoordinates; + this.yCoordinates = yCoordinates; + this.flags = flags; + } + +} + +class SimpleGlyph { + constructor({ + contours, + instructions + }) { + this.contours = contours; + this.instructions = instructions; + } + + static parse(pos, glyf, numberOfContours) { + const endPtsOfContours = []; + + for (let i = 0; i < numberOfContours; i++) { + const endPt = glyf.getUint16(pos); + pos += 2; + endPtsOfContours.push(endPt); + } + + const numberOfPt = endPtsOfContours[numberOfContours - 1] + 1; + const instructionLength = glyf.getUint16(pos); + pos += 2; + const instructions = new Uint8Array(glyf).slice(pos, pos + instructionLength); + pos += instructionLength; + const flags = []; + + for (let i = 0; i < numberOfPt; pos++, i++) { + let flag = glyf.getUint8(pos); + flags.push(flag); + + if (flag & REPEAT_FLAG) { + const count = glyf.getUint8(++pos); + flag ^= REPEAT_FLAG; + + for (let m = 0; m < count; m++) { + flags.push(flag); + } + + i += count; + } + } + + const allXCoordinates = []; + let xCoordinates = []; + let yCoordinates = []; + let pointFlags = []; + const contours = []; + let endPtsOfContoursIndex = 0; + let lastCoordinate = 0; + + for (let i = 0; i < numberOfPt; i++) { + const flag = flags[i]; + + if (flag & X_SHORT_VECTOR) { + const x = glyf.getUint8(pos++); + lastCoordinate += flag & X_IS_SAME_OR_POSITIVE_X_SHORT_VECTOR ? x : -x; + xCoordinates.push(lastCoordinate); + } else if (flag & X_IS_SAME_OR_POSITIVE_X_SHORT_VECTOR) { + xCoordinates.push(lastCoordinate); + } else { + lastCoordinate += glyf.getInt16(pos); + pos += 2; + xCoordinates.push(lastCoordinate); + } + + if (endPtsOfContours[endPtsOfContoursIndex] === i) { + endPtsOfContoursIndex++; + allXCoordinates.push(xCoordinates); + xCoordinates = []; + } + } + + lastCoordinate = 0; + endPtsOfContoursIndex = 0; + + for (let i = 0; i < numberOfPt; i++) { + const flag = flags[i]; + + if (flag & Y_SHORT_VECTOR) { + const y = glyf.getUint8(pos++); + lastCoordinate += flag & Y_IS_SAME_OR_POSITIVE_Y_SHORT_VECTOR ? y : -y; + yCoordinates.push(lastCoordinate); + } else if (flag & Y_IS_SAME_OR_POSITIVE_Y_SHORT_VECTOR) { + yCoordinates.push(lastCoordinate); + } else { + lastCoordinate += glyf.getInt16(pos); + pos += 2; + yCoordinates.push(lastCoordinate); + } + + pointFlags.push(flag & ON_CURVE_POINT | flag & OVERLAP_SIMPLE); + + if (endPtsOfContours[endPtsOfContoursIndex] === i) { + xCoordinates = allXCoordinates[endPtsOfContoursIndex]; + endPtsOfContoursIndex++; + contours.push(new Contour({ + flags: pointFlags, + xCoordinates, + yCoordinates + })); + yCoordinates = []; + pointFlags = []; + } + } + + return new SimpleGlyph({ + contours, + instructions + }); + } + + getSize() { + let size = this.contours.length * 2 + 2 + this.instructions.length; + let lastX = 0; + let lastY = 0; + + for (const contour of this.contours) { + size += contour.flags.length; + + for (let i = 0, ii = contour.xCoordinates.length; i < ii; i++) { + const x = contour.xCoordinates[i]; + const y = contour.yCoordinates[i]; + let abs = Math.abs(x - lastX); + + if (abs > 255) { + size += 2; + } else if (abs > 0) { + size += 1; + } + + lastX = x; + abs = Math.abs(y - lastY); + + if (abs > 255) { + size += 2; + } else if (abs > 0) { + size += 1; + } + + lastY = y; + } + } + + return size; + } + + write(pos, buf) { + const spos = pos; + const xCoordinates = []; + const yCoordinates = []; + const flags = []; + let lastX = 0; + let lastY = 0; + + for (const contour of this.contours) { + for (let i = 0, ii = contour.xCoordinates.length; i < ii; i++) { + let flag = contour.flags[i]; + const x = contour.xCoordinates[i]; + let delta = x - lastX; + + if (delta === 0) { + flag |= X_IS_SAME_OR_POSITIVE_X_SHORT_VECTOR; + xCoordinates.push(0); + } else { + const abs = Math.abs(delta); + + if (abs <= 255) { + flag |= delta >= 0 ? X_SHORT_VECTOR | X_IS_SAME_OR_POSITIVE_X_SHORT_VECTOR : X_SHORT_VECTOR; + xCoordinates.push(abs); + } else { + xCoordinates.push(delta); + } + } + + lastX = x; + const y = contour.yCoordinates[i]; + delta = y - lastY; + + if (delta === 0) { + flag |= Y_IS_SAME_OR_POSITIVE_Y_SHORT_VECTOR; + yCoordinates.push(0); + } else { + const abs = Math.abs(delta); + + if (abs <= 255) { + flag |= delta >= 0 ? Y_SHORT_VECTOR | Y_IS_SAME_OR_POSITIVE_Y_SHORT_VECTOR : Y_SHORT_VECTOR; + yCoordinates.push(abs); + } else { + yCoordinates.push(delta); + } + } + + lastY = y; + flags.push(flag); + } + + buf.setUint16(pos, xCoordinates.length - 1); + pos += 2; + } + + buf.setUint16(pos, this.instructions.length); + pos += 2; + + if (this.instructions.length) { + new Uint8Array(buf.buffer, 0, buf.buffer.byteLength).set(this.instructions, pos); + pos += this.instructions.length; + } + + for (const flag of flags) { + buf.setUint8(pos++, flag); + } + + for (let i = 0, ii = xCoordinates.length; i < ii; i++) { + const x = xCoordinates[i]; + const flag = flags[i]; + + if (flag & X_SHORT_VECTOR) { + buf.setUint8(pos++, x); + } else if (!(flag & X_IS_SAME_OR_POSITIVE_X_SHORT_VECTOR)) { + buf.setInt16(pos, x); + pos += 2; + } + } + + for (let i = 0, ii = yCoordinates.length; i < ii; i++) { + const y = yCoordinates[i]; + const flag = flags[i]; + + if (flag & Y_SHORT_VECTOR) { + buf.setUint8(pos++, y); + } else if (!(flag & Y_IS_SAME_OR_POSITIVE_Y_SHORT_VECTOR)) { + buf.setInt16(pos, y); + pos += 2; + } + } + + return pos - spos; + } + + scale(x, factor) { + for (const contour of this.contours) { + if (contour.xCoordinates.length === 0) { + continue; + } + + for (let i = 0, ii = contour.xCoordinates.length; i < ii; i++) { + contour.xCoordinates[i] = Math.round(x + (contour.xCoordinates[i] - x) * factor); + } + } + } + +} + +class CompositeGlyph { + constructor({ + flags, + glyphIndex, + argument1, + argument2, + transf, + instructions + }) { + this.flags = flags; + this.glyphIndex = glyphIndex; + this.argument1 = argument1; + this.argument2 = argument2; + this.transf = transf; + this.instructions = instructions; + } + + static parse(pos, glyf) { + const spos = pos; + const transf = []; + let flags = glyf.getUint16(pos); + const glyphIndex = glyf.getUint16(pos + 2); + pos += 4; + let argument1, argument2; + + if (flags & ARG_1_AND_2_ARE_WORDS) { + if (flags & ARGS_ARE_XY_VALUES) { + argument1 = glyf.getInt16(pos); + argument2 = glyf.getInt16(pos + 2); + } else { + argument1 = glyf.getUint16(pos); + argument2 = glyf.getUint16(pos + 2); + } + + pos += 4; + flags ^= ARG_1_AND_2_ARE_WORDS; + } else { + if (flags & ARGS_ARE_XY_VALUES) { + argument1 = glyf.getInt8(pos); + argument2 = glyf.getInt8(pos + 1); + } else { + argument1 = glyf.getUint8(pos); + argument2 = glyf.getUint8(pos + 1); + } + + pos += 2; + } + + if (flags & WE_HAVE_A_SCALE) { + transf.push(glyf.getUint16(pos)); + pos += 2; + } else if (flags & WE_HAVE_AN_X_AND_Y_SCALE) { + transf.push(glyf.getUint16(pos), glyf.getUint16(pos + 2)); + pos += 4; + } else if (flags & WE_HAVE_A_TWO_BY_TWO) { + transf.push(glyf.getUint16(pos), glyf.getUint16(pos + 2), glyf.getUint16(pos + 4), glyf.getUint16(pos + 6)); + pos += 8; + } + + let instructions = null; + + if (flags & WE_HAVE_INSTRUCTIONS) { + const instructionLength = glyf.getUint16(pos); + pos += 2; + instructions = new Uint8Array(glyf).slice(pos, pos + instructionLength); + pos += instructionLength; + } + + return [pos - spos, new CompositeGlyph({ + flags, + glyphIndex, + argument1, + argument2, + transf, + instructions + })]; + } + + getSize() { + let size = 2 + 2 + this.transf.length * 2; + + if (this.flags & WE_HAVE_INSTRUCTIONS) { + size += 2 + this.instructions.length; + } + + size += 2; + + if (this.flags & 2) { + if (!(this.argument1 >= -128 && this.argument1 <= 127 && this.argument2 >= -128 && this.argument2 <= 127)) { + size += 2; + } + } else { + if (!(this.argument1 >= 0 && this.argument1 <= 255 && this.argument2 >= 0 && this.argument2 <= 255)) { + size += 2; + } + } + + return size; + } + + write(pos, buf) { + const spos = pos; + + if (this.flags & ARGS_ARE_XY_VALUES) { + if (!(this.argument1 >= -128 && this.argument1 <= 127 && this.argument2 >= -128 && this.argument2 <= 127)) { + this.flags |= ARG_1_AND_2_ARE_WORDS; + } + } else { + if (!(this.argument1 >= 0 && this.argument1 <= 255 && this.argument2 >= 0 && this.argument2 <= 255)) { + this.flags |= ARG_1_AND_2_ARE_WORDS; + } + } + + buf.setUint16(pos, this.flags); + buf.setUint16(pos + 2, this.glyphIndex); + pos += 4; + + if (this.flags & ARG_1_AND_2_ARE_WORDS) { + if (this.flags & ARGS_ARE_XY_VALUES) { + buf.setInt16(pos, this.argument1); + buf.setInt16(pos + 2, this.argument2); + } else { + buf.setUint16(pos, this.argument1); + buf.setUint16(pos + 2, this.argument2); + } + + pos += 4; + } else { + buf.setUint8(pos, this.argument1); + buf.setUint8(pos + 1, this.argument2); + pos += 2; + } + + if (this.flags & WE_HAVE_INSTRUCTIONS) { + buf.setUint16(pos, this.instructions.length); + pos += 2; + + if (this.instructions.length) { + new Uint8Array(buf.buffer, 0, buf.buffer.byteLength).set(this.instructions, pos); + pos += this.instructions.length; + } + } + + return pos - spos; + } + + scale(x, factor) {} + +} + +/***/ }), +/* 47 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.OpenTypeFileBuilder = void 0; + +var _core_utils = __w_pdfjs_require__(6); + +var _util = __w_pdfjs_require__(2); + +function writeInt16(dest, offset, num) { + dest[offset] = num >> 8 & 0xff; + dest[offset + 1] = num & 0xff; +} + +function writeInt32(dest, offset, num) { + dest[offset] = num >> 24 & 0xff; + dest[offset + 1] = num >> 16 & 0xff; + dest[offset + 2] = num >> 8 & 0xff; + dest[offset + 3] = num & 0xff; +} + +function writeData(dest, offset, data) { + if (data instanceof Uint8Array) { + dest.set(data, offset); + } else if (typeof data === "string") { + for (let i = 0, ii = data.length; i < ii; i++) { + dest[offset++] = data.charCodeAt(i) & 0xff; + } + } else { + for (let i = 0, ii = data.length; i < ii; i++) { + dest[offset++] = data[i] & 0xff; + } + } +} + +const OTF_HEADER_SIZE = 12; +const OTF_TABLE_ENTRY_SIZE = 16; + +class OpenTypeFileBuilder { + constructor(sfnt) { + this.sfnt = sfnt; + this.tables = Object.create(null); + } + + static getSearchParams(entriesCount, entrySize) { + let maxPower2 = 1, + log2 = 0; + + while ((maxPower2 ^ entriesCount) > maxPower2) { + maxPower2 <<= 1; + log2++; + } + + const searchRange = maxPower2 * entrySize; + return { + range: searchRange, + entry: log2, + rangeShift: entrySize * entriesCount - searchRange + }; + } + + toArray() { + let sfnt = this.sfnt; + const tables = this.tables; + const tablesNames = Object.keys(tables); + tablesNames.sort(); + const numTables = tablesNames.length; + let i, j, jj, table, tableName; + let offset = OTF_HEADER_SIZE + numTables * OTF_TABLE_ENTRY_SIZE; + const tableOffsets = [offset]; + + for (i = 0; i < numTables; i++) { + table = tables[tablesNames[i]]; + const paddedLength = (table.length + 3 & ~3) >>> 0; + offset += paddedLength; + tableOffsets.push(offset); + } + + const file = new Uint8Array(offset); + + for (i = 0; i < numTables; i++) { + table = tables[tablesNames[i]]; + writeData(file, tableOffsets[i], table); + } + + if (sfnt === "true") { + sfnt = (0, _util.string32)(0x00010000); + } + + file[0] = sfnt.charCodeAt(0) & 0xff; + file[1] = sfnt.charCodeAt(1) & 0xff; + file[2] = sfnt.charCodeAt(2) & 0xff; + file[3] = sfnt.charCodeAt(3) & 0xff; + writeInt16(file, 4, numTables); + const searchParams = OpenTypeFileBuilder.getSearchParams(numTables, 16); + writeInt16(file, 6, searchParams.range); + writeInt16(file, 8, searchParams.entry); + writeInt16(file, 10, searchParams.rangeShift); + offset = OTF_HEADER_SIZE; + + for (i = 0; i < numTables; i++) { + tableName = tablesNames[i]; + file[offset] = tableName.charCodeAt(0) & 0xff; + file[offset + 1] = tableName.charCodeAt(1) & 0xff; + file[offset + 2] = tableName.charCodeAt(2) & 0xff; + file[offset + 3] = tableName.charCodeAt(3) & 0xff; + let checksum = 0; + + for (j = tableOffsets[i], jj = tableOffsets[i + 1]; j < jj; j += 4) { + const quad = (0, _core_utils.readUint32)(file, j); + checksum = checksum + quad >>> 0; + } + + writeInt32(file, offset + 4, checksum); + writeInt32(file, offset + 8, tableOffsets[i]); + writeInt32(file, offset + 12, tables[tableName].length); + offset += OTF_TABLE_ENTRY_SIZE; + } + + return file; + } + + addTable(tag, data) { + if (tag in this.tables) { + throw new Error("Table " + tag + " already exists"); + } + + this.tables[tag] = data; + } + +} + +exports.OpenTypeFileBuilder = OpenTypeFileBuilder; + +/***/ }), +/* 48 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Type1Font = void 0; + +var _cff_parser = __w_pdfjs_require__(35); + +var _fonts_utils = __w_pdfjs_require__(38); + +var _core_utils = __w_pdfjs_require__(6); + +var _stream = __w_pdfjs_require__(10); + +var _type1_parser = __w_pdfjs_require__(49); + +var _util = __w_pdfjs_require__(2); + +function findBlock(streamBytes, signature, startIndex) { + const streamBytesLength = streamBytes.length; + const signatureLength = signature.length; + const scanLength = streamBytesLength - signatureLength; + let i = startIndex, + found = false; + + while (i < scanLength) { + let j = 0; + + while (j < signatureLength && streamBytes[i + j] === signature[j]) { + j++; + } + + if (j >= signatureLength) { + i += j; + + while (i < streamBytesLength && (0, _core_utils.isWhiteSpace)(streamBytes[i])) { + i++; + } + + found = true; + break; + } + + i++; + } + + return { + found, + length: i + }; +} + +function getHeaderBlock(stream, suggestedLength) { + const EEXEC_SIGNATURE = [0x65, 0x65, 0x78, 0x65, 0x63]; + const streamStartPos = stream.pos; + let headerBytes, headerBytesLength, block; + + try { + headerBytes = stream.getBytes(suggestedLength); + headerBytesLength = headerBytes.length; + } catch (ex) {} + + if (headerBytesLength === suggestedLength) { + block = findBlock(headerBytes, EEXEC_SIGNATURE, suggestedLength - 2 * EEXEC_SIGNATURE.length); + + if (block.found && block.length === suggestedLength) { + return { + stream: new _stream.Stream(headerBytes), + length: suggestedLength + }; + } + } + + (0, _util.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'); + stream.pos = streamStartPos; + const SCAN_BLOCK_LENGTH = 2048; + let actualLength; + + while (true) { + const scanBytes = stream.peekBytes(SCAN_BLOCK_LENGTH); + block = findBlock(scanBytes, EEXEC_SIGNATURE, 0); + + if (block.length === 0) { + break; + } + + stream.pos += block.length; + + if (block.found) { + actualLength = stream.pos - streamStartPos; + break; + } + } + + stream.pos = streamStartPos; + + if (actualLength) { + return { + stream: new _stream.Stream(stream.getBytes(actualLength)), + length: actualLength + }; + } + + (0, _util.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'); + return { + stream: new _stream.Stream(stream.getBytes(suggestedLength)), + length: suggestedLength + }; +} + +function getEexecBlock(stream, suggestedLength) { + const eexecBytes = stream.getBytes(); + return { + stream: new _stream.Stream(eexecBytes), + length: eexecBytes.length + }; +} + +class Type1Font { + constructor(name, file, properties) { + const PFB_HEADER_SIZE = 6; + let headerBlockLength = properties.length1; + let eexecBlockLength = properties.length2; + let pfbHeader = file.peekBytes(PFB_HEADER_SIZE); + const pfbHeaderPresent = pfbHeader[0] === 0x80 && pfbHeader[1] === 0x01; + + if (pfbHeaderPresent) { + file.skip(PFB_HEADER_SIZE); + headerBlockLength = pfbHeader[5] << 24 | pfbHeader[4] << 16 | pfbHeader[3] << 8 | pfbHeader[2]; + } + + const headerBlock = getHeaderBlock(file, headerBlockLength); + const headerBlockParser = new _type1_parser.Type1Parser(headerBlock.stream, false, _fonts_utils.SEAC_ANALYSIS_ENABLED); + headerBlockParser.extractFontHeader(properties); + + if (pfbHeaderPresent) { + pfbHeader = file.getBytes(PFB_HEADER_SIZE); + eexecBlockLength = pfbHeader[5] << 24 | pfbHeader[4] << 16 | pfbHeader[3] << 8 | pfbHeader[2]; + } + + const eexecBlock = getEexecBlock(file, eexecBlockLength); + const eexecBlockParser = new _type1_parser.Type1Parser(eexecBlock.stream, true, _fonts_utils.SEAC_ANALYSIS_ENABLED); + const data = eexecBlockParser.extractFontProgram(properties); + + for (const key in data.properties) { + properties[key] = data.properties[key]; + } + + const charstrings = data.charstrings; + const type2Charstrings = this.getType2Charstrings(charstrings); + const subrs = this.getType2Subrs(data.subrs); + this.charstrings = charstrings; + this.data = this.wrap(name, type2Charstrings, this.charstrings, subrs, properties); + this.seacs = this.getSeacs(data.charstrings); + } + + get numGlyphs() { + return this.charstrings.length + 1; + } + + getCharset() { + const charset = [".notdef"]; + + for (const { + glyphName + } of this.charstrings) { + charset.push(glyphName); + } + + return charset; + } + + getGlyphMapping(properties) { + const charstrings = this.charstrings; + + if (properties.composite) { + const charCodeToGlyphId = Object.create(null); + + for (let glyphId = 0, charstringsLen = charstrings.length; glyphId < charstringsLen; glyphId++) { + const charCode = properties.cMap.charCodeOf(glyphId); + charCodeToGlyphId[charCode] = glyphId + 1; + } + + return charCodeToGlyphId; + } + + const glyphNames = [".notdef"]; + let builtInEncoding, glyphId; + + for (glyphId = 0; glyphId < charstrings.length; glyphId++) { + glyphNames.push(charstrings[glyphId].glyphName); + } + + const encoding = properties.builtInEncoding; + + if (encoding) { + builtInEncoding = Object.create(null); + + for (const charCode in encoding) { + glyphId = glyphNames.indexOf(encoding[charCode]); + + if (glyphId >= 0) { + builtInEncoding[charCode] = glyphId; + } + } + } + + return (0, _fonts_utils.type1FontGlyphMapping)(properties, builtInEncoding, glyphNames); + } + + hasGlyphId(id) { + if (id < 0 || id >= this.numGlyphs) { + return false; + } + + if (id === 0) { + return true; + } + + const glyph = this.charstrings[id - 1]; + return glyph.charstring.length > 0; + } + + getSeacs(charstrings) { + const seacMap = []; + + for (let i = 0, ii = charstrings.length; i < ii; i++) { + const charstring = charstrings[i]; + + if (charstring.seac) { + seacMap[i + 1] = charstring.seac; + } + } + + return seacMap; + } + + getType2Charstrings(type1Charstrings) { + const type2Charstrings = []; + + for (let i = 0, ii = type1Charstrings.length; i < ii; i++) { + type2Charstrings.push(type1Charstrings[i].charstring); + } + + return type2Charstrings; + } + + getType2Subrs(type1Subrs) { + let bias = 0; + const count = type1Subrs.length; + + if (count < 1133) { + bias = 107; + } else if (count < 33769) { + bias = 1131; + } else { + bias = 32768; + } + + const type2Subrs = []; + let i; + + for (i = 0; i < bias; i++) { + type2Subrs.push([0x0b]); + } + + for (i = 0; i < count; i++) { + type2Subrs.push(type1Subrs[i]); + } + + return type2Subrs; + } + + wrap(name, glyphs, charstrings, subrs, properties) { + const cff = new _cff_parser.CFF(); + cff.header = new _cff_parser.CFFHeader(1, 0, 4, 4); + cff.names = [name]; + const topDict = new _cff_parser.CFFTopDict(); + topDict.setByName("version", 391); + topDict.setByName("Notice", 392); + topDict.setByName("FullName", 393); + topDict.setByName("FamilyName", 394); + topDict.setByName("Weight", 395); + topDict.setByName("Encoding", null); + topDict.setByName("FontMatrix", properties.fontMatrix); + topDict.setByName("FontBBox", properties.bbox); + topDict.setByName("charset", null); + topDict.setByName("CharStrings", null); + topDict.setByName("Private", null); + cff.topDict = topDict; + const strings = new _cff_parser.CFFStrings(); + strings.add("Version 0.11"); + strings.add("See original notice"); + strings.add(name); + strings.add(name); + strings.add("Medium"); + cff.strings = strings; + cff.globalSubrIndex = new _cff_parser.CFFIndex(); + const count = glyphs.length; + const charsetArray = [".notdef"]; + let i, ii; + + for (i = 0; i < count; i++) { + const glyphName = charstrings[i].glyphName; + + const index = _cff_parser.CFFStandardStrings.indexOf(glyphName); + + if (index === -1) { + strings.add(glyphName); + } + + charsetArray.push(glyphName); + } + + cff.charset = new _cff_parser.CFFCharset(false, 0, charsetArray); + const charStringsIndex = new _cff_parser.CFFIndex(); + charStringsIndex.add([0x8b, 0x0e]); + + for (i = 0; i < count; i++) { + charStringsIndex.add(glyphs[i]); + } + + cff.charStrings = charStringsIndex; + const privateDict = new _cff_parser.CFFPrivateDict(); + privateDict.setByName("Subrs", null); + const fields = ["BlueValues", "OtherBlues", "FamilyBlues", "FamilyOtherBlues", "StemSnapH", "StemSnapV", "BlueShift", "BlueFuzz", "BlueScale", "LanguageGroup", "ExpansionFactor", "ForceBold", "StdHW", "StdVW"]; + + for (i = 0, ii = fields.length; i < ii; i++) { + const field = fields[i]; + + if (!(field in properties.privateData)) { + continue; + } + + const value = properties.privateData[field]; + + if (Array.isArray(value)) { + for (let j = value.length - 1; j > 0; j--) { + value[j] -= value[j - 1]; + } + } + + privateDict.setByName(field, value); + } + + cff.topDict.privateDict = privateDict; + const subrIndex = new _cff_parser.CFFIndex(); + + for (i = 0, ii = subrs.length; i < ii; i++) { + subrIndex.add(subrs[i]); + } + + privateDict.subrsIndex = subrIndex; + const compiler = new _cff_parser.CFFCompiler(cff); + return compiler.compile(); + } + +} + +exports.Type1Font = Type1Font; + +/***/ }), +/* 49 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Type1Parser = void 0; + +var _encodings = __w_pdfjs_require__(37); + +var _core_utils = __w_pdfjs_require__(6); + +var _stream = __w_pdfjs_require__(10); + +var _util = __w_pdfjs_require__(2); + +const HINTING_ENABLED = false; +const COMMAND_MAP = { + hstem: [1], + vstem: [3], + vmoveto: [4], + rlineto: [5], + hlineto: [6], + vlineto: [7], + rrcurveto: [8], + callsubr: [10], + flex: [12, 35], + drop: [12, 18], + endchar: [14], + rmoveto: [21], + hmoveto: [22], + vhcurveto: [30], + hvcurveto: [31] +}; + +class Type1CharString { + constructor() { + this.width = 0; + this.lsb = 0; + this.flexing = false; + this.output = []; + this.stack = []; + } + + convert(encoded, subrs, seacAnalysisEnabled) { + const count = encoded.length; + let error = false; + let wx, sbx, subrNumber; + + for (let i = 0; i < count; i++) { + let value = encoded[i]; + + if (value < 32) { + if (value === 12) { + value = (value << 8) + encoded[++i]; + } + + switch (value) { + case 1: + if (!HINTING_ENABLED) { + this.stack = []; + break; + } + + error = this.executeCommand(2, COMMAND_MAP.hstem); + break; + + case 3: + if (!HINTING_ENABLED) { + this.stack = []; + break; + } + + error = this.executeCommand(2, COMMAND_MAP.vstem); + break; + + case 4: + if (this.flexing) { + if (this.stack.length < 1) { + error = true; + break; + } + + const dy = this.stack.pop(); + this.stack.push(0, dy); + break; + } + + error = this.executeCommand(1, COMMAND_MAP.vmoveto); + break; + + case 5: + error = this.executeCommand(2, COMMAND_MAP.rlineto); + break; + + case 6: + error = this.executeCommand(1, COMMAND_MAP.hlineto); + break; + + case 7: + error = this.executeCommand(1, COMMAND_MAP.vlineto); + break; + + case 8: + error = this.executeCommand(6, COMMAND_MAP.rrcurveto); + break; + + case 9: + this.stack = []; + break; + + case 10: + if (this.stack.length < 1) { + error = true; + break; + } + + subrNumber = this.stack.pop(); + + if (!subrs[subrNumber]) { + error = true; + break; + } + + error = this.convert(subrs[subrNumber], subrs, seacAnalysisEnabled); + break; + + case 11: + return error; + + case 13: + if (this.stack.length < 2) { + error = true; + break; + } + + wx = this.stack.pop(); + sbx = this.stack.pop(); + this.lsb = sbx; + this.width = wx; + this.stack.push(wx, sbx); + error = this.executeCommand(2, COMMAND_MAP.hmoveto); + break; + + case 14: + this.output.push(COMMAND_MAP.endchar[0]); + break; + + case 21: + if (this.flexing) { + break; + } + + error = this.executeCommand(2, COMMAND_MAP.rmoveto); + break; + + case 22: + if (this.flexing) { + this.stack.push(0); + break; + } + + error = this.executeCommand(1, COMMAND_MAP.hmoveto); + break; + + case 30: + error = this.executeCommand(4, COMMAND_MAP.vhcurveto); + break; + + case 31: + error = this.executeCommand(4, COMMAND_MAP.hvcurveto); + break; + + case (12 << 8) + 0: + this.stack = []; + break; + + case (12 << 8) + 1: + if (!HINTING_ENABLED) { + this.stack = []; + break; + } + + error = this.executeCommand(2, COMMAND_MAP.vstem); + break; + + case (12 << 8) + 2: + if (!HINTING_ENABLED) { + this.stack = []; + break; + } + + error = this.executeCommand(2, COMMAND_MAP.hstem); + break; + + case (12 << 8) + 6: + if (seacAnalysisEnabled) { + const asb = this.stack.at(-5); + this.seac = this.stack.splice(-4, 4); + this.seac[0] += this.lsb - asb; + error = this.executeCommand(0, COMMAND_MAP.endchar); + } else { + error = this.executeCommand(4, COMMAND_MAP.endchar); + } + + break; + + case (12 << 8) + 7: + if (this.stack.length < 4) { + error = true; + break; + } + + this.stack.pop(); + wx = this.stack.pop(); + const sby = this.stack.pop(); + sbx = this.stack.pop(); + this.lsb = sbx; + this.width = wx; + this.stack.push(wx, sbx, sby); + error = this.executeCommand(3, COMMAND_MAP.rmoveto); + break; + + case (12 << 8) + 12: + if (this.stack.length < 2) { + error = true; + break; + } + + const num2 = this.stack.pop(); + const num1 = this.stack.pop(); + this.stack.push(num1 / num2); + break; + + case (12 << 8) + 16: + if (this.stack.length < 2) { + error = true; + break; + } + + subrNumber = this.stack.pop(); + const numArgs = this.stack.pop(); + + if (subrNumber === 0 && numArgs === 3) { + const flexArgs = this.stack.splice(this.stack.length - 17, 17); + this.stack.push(flexArgs[2] + flexArgs[0], flexArgs[3] + flexArgs[1], flexArgs[4], flexArgs[5], flexArgs[6], flexArgs[7], flexArgs[8], flexArgs[9], flexArgs[10], flexArgs[11], flexArgs[12], flexArgs[13], flexArgs[14]); + error = this.executeCommand(13, COMMAND_MAP.flex, true); + this.flexing = false; + this.stack.push(flexArgs[15], flexArgs[16]); + } else if (subrNumber === 1 && numArgs === 0) { + this.flexing = true; + } + + break; + + case (12 << 8) + 17: + break; + + case (12 << 8) + 33: + this.stack = []; + break; + + default: + (0, _util.warn)('Unknown type 1 charstring command of "' + value + '"'); + break; + } + + if (error) { + break; + } + + continue; + } else if (value <= 246) { + value -= 139; + } else if (value <= 250) { + value = (value - 247) * 256 + encoded[++i] + 108; + } else if (value <= 254) { + value = -((value - 251) * 256) - encoded[++i] - 108; + } else { + value = (encoded[++i] & 0xff) << 24 | (encoded[++i] & 0xff) << 16 | (encoded[++i] & 0xff) << 8 | (encoded[++i] & 0xff) << 0; + } + + this.stack.push(value); + } + + return error; + } + + executeCommand(howManyArgs, command, keepStack) { + const stackLength = this.stack.length; + + if (howManyArgs > stackLength) { + return true; + } + + const start = stackLength - howManyArgs; + + for (let i = start; i < stackLength; i++) { + let value = this.stack[i]; + + if (Number.isInteger(value)) { + this.output.push(28, value >> 8 & 0xff, value & 0xff); + } else { + value = 65536 * value | 0; + this.output.push(255, value >> 24 & 0xff, value >> 16 & 0xff, value >> 8 & 0xff, value & 0xff); + } + } + + this.output.push(...command); + + if (keepStack) { + this.stack.splice(start, howManyArgs); + } else { + this.stack.length = 0; + } + + return false; + } + +} + +const EEXEC_ENCRYPT_KEY = 55665; +const CHAR_STRS_ENCRYPT_KEY = 4330; + +function isHexDigit(code) { + return code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102; +} + +function decrypt(data, key, discardNumber) { + if (discardNumber >= data.length) { + return new Uint8Array(0); + } + + const c1 = 52845, + c2 = 22719; + let r = key | 0, + i, + j; + + for (i = 0; i < discardNumber; i++) { + r = (data[i] + r) * c1 + c2 & (1 << 16) - 1; + } + + const count = data.length - discardNumber; + const decrypted = new Uint8Array(count); + + for (i = discardNumber, j = 0; j < count; i++, j++) { + const value = data[i]; + decrypted[j] = value ^ r >> 8; + r = (value + r) * c1 + c2 & (1 << 16) - 1; + } + + return decrypted; +} + +function decryptAscii(data, key, discardNumber) { + const c1 = 52845, + c2 = 22719; + let r = key | 0; + const count = data.length, + maybeLength = count >>> 1; + const decrypted = new Uint8Array(maybeLength); + let i, j; + + for (i = 0, j = 0; i < count; i++) { + const digit1 = data[i]; + + if (!isHexDigit(digit1)) { + continue; + } + + i++; + let digit2; + + while (i < count && !isHexDigit(digit2 = data[i])) { + i++; + } + + if (i < count) { + const value = parseInt(String.fromCharCode(digit1, digit2), 16); + decrypted[j++] = value ^ r >> 8; + r = (value + r) * c1 + c2 & (1 << 16) - 1; + } + } + + return decrypted.slice(discardNumber, j); +} + +function isSpecial(c) { + return c === 0x2f || c === 0x5b || c === 0x5d || c === 0x7b || c === 0x7d || c === 0x28 || c === 0x29; +} + +class Type1Parser { + constructor(stream, encrypted, seacAnalysisEnabled) { + if (encrypted) { + const data = stream.getBytes(); + const isBinary = !((isHexDigit(data[0]) || (0, _core_utils.isWhiteSpace)(data[0])) && isHexDigit(data[1]) && isHexDigit(data[2]) && isHexDigit(data[3]) && isHexDigit(data[4]) && isHexDigit(data[5]) && isHexDigit(data[6]) && isHexDigit(data[7])); + stream = new _stream.Stream(isBinary ? decrypt(data, EEXEC_ENCRYPT_KEY, 4) : decryptAscii(data, EEXEC_ENCRYPT_KEY, 4)); + } + + this.seacAnalysisEnabled = !!seacAnalysisEnabled; + this.stream = stream; + this.nextChar(); + } + + readNumberArray() { + this.getToken(); + const array = []; + + while (true) { + const token = this.getToken(); + + if (token === null || token === "]" || token === "}") { + break; + } + + array.push(parseFloat(token || 0)); + } + + return array; + } + + readNumber() { + const token = this.getToken(); + return parseFloat(token || 0); + } + + readInt() { + const token = this.getToken(); + return parseInt(token || 0, 10) | 0; + } + + readBoolean() { + const token = this.getToken(); + return token === "true" ? 1 : 0; + } + + nextChar() { + return this.currentChar = this.stream.getByte(); + } + + prevChar() { + this.stream.skip(-2); + return this.currentChar = this.stream.getByte(); + } + + getToken() { + let comment = false; + let ch = this.currentChar; + + while (true) { + if (ch === -1) { + return null; + } + + if (comment) { + if (ch === 0x0a || ch === 0x0d) { + comment = false; + } + } else if (ch === 0x25) { + comment = true; + } else if (!(0, _core_utils.isWhiteSpace)(ch)) { + break; + } + + ch = this.nextChar(); + } + + if (isSpecial(ch)) { + this.nextChar(); + return String.fromCharCode(ch); + } + + let token = ""; + + do { + token += String.fromCharCode(ch); + ch = this.nextChar(); + } while (ch >= 0 && !(0, _core_utils.isWhiteSpace)(ch) && !isSpecial(ch)); + + return token; + } + + readCharStrings(bytes, lenIV) { + if (lenIV === -1) { + return bytes; + } + + return decrypt(bytes, CHAR_STRS_ENCRYPT_KEY, lenIV); + } + + extractFontProgram(properties) { + const stream = this.stream; + const subrs = [], + charstrings = []; + const privateData = Object.create(null); + privateData.lenIV = 4; + const program = { + subrs: [], + charstrings: [], + properties: { + privateData + } + }; + let token, length, data, lenIV; + + while ((token = this.getToken()) !== null) { + if (token !== "/") { + continue; + } + + token = this.getToken(); + + switch (token) { + case "CharStrings": + this.getToken(); + this.getToken(); + this.getToken(); + this.getToken(); + + while (true) { + token = this.getToken(); + + if (token === null || token === "end") { + break; + } + + if (token !== "/") { + continue; + } + + const glyph = this.getToken(); + length = this.readInt(); + this.getToken(); + data = length > 0 ? stream.getBytes(length) : new Uint8Array(0); + lenIV = program.properties.privateData.lenIV; + const encoded = this.readCharStrings(data, lenIV); + this.nextChar(); + token = this.getToken(); + + if (token === "noaccess") { + this.getToken(); + } else if (token === "/") { + this.prevChar(); + } + + charstrings.push({ + glyph, + encoded + }); + } + + break; + + case "Subrs": + this.readInt(); + this.getToken(); + + while (this.getToken() === "dup") { + const index = this.readInt(); + length = this.readInt(); + this.getToken(); + data = length > 0 ? stream.getBytes(length) : new Uint8Array(0); + lenIV = program.properties.privateData.lenIV; + const encoded = this.readCharStrings(data, lenIV); + this.nextChar(); + token = this.getToken(); + + if (token === "noaccess") { + this.getToken(); + } + + subrs[index] = encoded; + } + + break; + + case "BlueValues": + case "OtherBlues": + case "FamilyBlues": + case "FamilyOtherBlues": + const blueArray = this.readNumberArray(); + + if (blueArray.length > 0 && blueArray.length % 2 === 0 && HINTING_ENABLED) { + program.properties.privateData[token] = blueArray; + } + + break; + + case "StemSnapH": + case "StemSnapV": + program.properties.privateData[token] = this.readNumberArray(); + break; + + case "StdHW": + case "StdVW": + program.properties.privateData[token] = this.readNumberArray()[0]; + break; + + case "BlueShift": + case "lenIV": + case "BlueFuzz": + case "BlueScale": + case "LanguageGroup": + case "ExpansionFactor": + program.properties.privateData[token] = this.readNumber(); + break; + + case "ForceBold": + program.properties.privateData[token] = this.readBoolean(); + break; + } + } + + for (const { + encoded, + glyph + } of charstrings) { + const charString = new Type1CharString(); + const error = charString.convert(encoded, subrs, this.seacAnalysisEnabled); + let output = charString.output; + + if (error) { + output = [14]; + } + + const charStringObject = { + glyphName: glyph, + charstring: output, + width: charString.width, + lsb: charString.lsb, + seac: charString.seac + }; + + if (glyph === ".notdef") { + program.charstrings.unshift(charStringObject); + } else { + program.charstrings.push(charStringObject); + } + + if (properties.builtInEncoding) { + const index = properties.builtInEncoding.indexOf(glyph); + + if (index > -1 && properties.widths[index] === undefined && index >= properties.firstChar && index <= properties.lastChar) { + properties.widths[index] = charString.width; + } + } + } + + return program; + } + + extractFontHeader(properties) { + let token; + + while ((token = this.getToken()) !== null) { + if (token !== "/") { + continue; + } + + token = this.getToken(); + + switch (token) { + case "FontMatrix": + const matrix = this.readNumberArray(); + properties.fontMatrix = matrix; + break; + + case "Encoding": + const encodingArg = this.getToken(); + let encoding; + + if (!/^\d+$/.test(encodingArg)) { + encoding = (0, _encodings.getEncoding)(encodingArg); + } else { + encoding = []; + const size = parseInt(encodingArg, 10) | 0; + this.getToken(); + + for (let j = 0; j < size; j++) { + token = this.getToken(); + + while (token !== "dup" && token !== "def") { + token = this.getToken(); + + if (token === null) { + return; + } + } + + if (token === "def") { + break; + } + + const index = this.readInt(); + this.getToken(); + const glyph = this.getToken(); + encoding[index] = glyph; + this.getToken(); + } + } + + properties.builtInEncoding = encoding; + break; + + case "FontBBox": + const fontBBox = this.readNumberArray(); + properties.ascent = Math.max(fontBBox[3], fontBBox[1]); + properties.descent = Math.min(fontBBox[1], fontBBox[3]); + properties.ascentScaled = true; + break; + } + } + } + +} + +exports.Type1Parser = Type1Parser; + +/***/ }), +/* 50 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Pattern = void 0; +exports.getTilingPatternIR = getTilingPatternIR; + +var _util = __w_pdfjs_require__(2); + +var _base_stream = __w_pdfjs_require__(7); + +var _colorspace = __w_pdfjs_require__(14); + +var _core_utils = __w_pdfjs_require__(6); + +const ShadingType = { + FUNCTION_BASED: 1, + AXIAL: 2, + RADIAL: 3, + FREE_FORM_MESH: 4, + LATTICE_FORM_MESH: 5, + COONS_PATCH_MESH: 6, + TENSOR_PATCH_MESH: 7 +}; + +class Pattern { + constructor() { + (0, _util.unreachable)("Cannot initialize Pattern."); + } + + static parseShading(shading, xref, res, handler, pdfFunctionFactory, localColorSpaceCache) { + const dict = shading instanceof _base_stream.BaseStream ? shading.dict : shading; + const type = dict.get("ShadingType"); + + try { + switch (type) { + case ShadingType.AXIAL: + case ShadingType.RADIAL: + return new RadialAxialShading(dict, xref, res, pdfFunctionFactory, localColorSpaceCache); + + case ShadingType.FREE_FORM_MESH: + case ShadingType.LATTICE_FORM_MESH: + case ShadingType.COONS_PATCH_MESH: + case ShadingType.TENSOR_PATCH_MESH: + return new MeshShading(shading, xref, res, pdfFunctionFactory, localColorSpaceCache); + + default: + throw new _util.FormatError("Unsupported ShadingType: " + type); + } + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + handler.send("UnsupportedFeature", { + featureId: _util.UNSUPPORTED_FEATURES.shadingPattern + }); + (0, _util.warn)(ex); + return new DummyShading(); + } + } + +} + +exports.Pattern = Pattern; + +class BaseShading { + static get SMALL_NUMBER() { + return (0, _util.shadow)(this, "SMALL_NUMBER", 1e-6); + } + + constructor() { + if (this.constructor === BaseShading) { + (0, _util.unreachable)("Cannot initialize BaseShading."); + } + } + + getIR() { + (0, _util.unreachable)("Abstract method `getIR` called."); + } + +} + +class RadialAxialShading extends BaseShading { + constructor(dict, xref, resources, pdfFunctionFactory, localColorSpaceCache) { + super(); + this.coordsArr = dict.getArray("Coords"); + this.shadingType = dict.get("ShadingType"); + + const cs = _colorspace.ColorSpace.parse({ + cs: dict.getRaw("CS") || dict.getRaw("ColorSpace"), + xref, + resources, + pdfFunctionFactory, + localColorSpaceCache + }); + + const bbox = dict.getArray("BBox"); + + if (Array.isArray(bbox) && bbox.length === 4) { + this.bbox = _util.Util.normalizeRect(bbox); + } else { + this.bbox = null; + } + + let t0 = 0.0, + t1 = 1.0; + + if (dict.has("Domain")) { + const domainArr = dict.getArray("Domain"); + t0 = domainArr[0]; + t1 = domainArr[1]; + } + + let extendStart = false, + extendEnd = false; + + if (dict.has("Extend")) { + const extendArr = dict.getArray("Extend"); + extendStart = extendArr[0]; + extendEnd = extendArr[1]; + } + + if (this.shadingType === ShadingType.RADIAL && (!extendStart || !extendEnd)) { + const [x1, y1, r1, x2, y2, r2] = this.coordsArr; + const distance = Math.hypot(x1 - x2, y1 - y2); + + if (r1 <= r2 + distance && r2 <= r1 + distance) { + (0, _util.warn)("Unsupported radial gradient."); + } + } + + this.extendStart = extendStart; + this.extendEnd = extendEnd; + const fnObj = dict.getRaw("Function"); + const fn = pdfFunctionFactory.createFromArray(fnObj); + const NUMBER_OF_SAMPLES = 10; + const step = (t1 - t0) / NUMBER_OF_SAMPLES; + const colorStops = this.colorStops = []; + + if (t0 >= t1 || step <= 0) { + (0, _util.info)("Bad shading domain."); + return; + } + + const color = new Float32Array(cs.numComps), + ratio = new Float32Array(1); + let rgbColor; + + for (let i = 0; i <= NUMBER_OF_SAMPLES; i++) { + ratio[0] = t0 + i * step; + fn(ratio, 0, color, 0); + rgbColor = cs.getRgb(color, 0); + + const cssColor = _util.Util.makeHexColor(rgbColor[0], rgbColor[1], rgbColor[2]); + + colorStops.push([i / NUMBER_OF_SAMPLES, cssColor]); + } + + let background = "transparent"; + + if (dict.has("Background")) { + rgbColor = cs.getRgb(dict.get("Background"), 0); + background = _util.Util.makeHexColor(rgbColor[0], rgbColor[1], rgbColor[2]); + } + + if (!extendStart) { + colorStops.unshift([0, background]); + colorStops[1][0] += BaseShading.SMALL_NUMBER; + } + + if (!extendEnd) { + colorStops.at(-1)[0] -= BaseShading.SMALL_NUMBER; + colorStops.push([1, background]); + } + + this.colorStops = colorStops; + } + + getIR() { + const coordsArr = this.coordsArr; + const shadingType = this.shadingType; + let type, p0, p1, r0, r1; + + if (shadingType === ShadingType.AXIAL) { + p0 = [coordsArr[0], coordsArr[1]]; + p1 = [coordsArr[2], coordsArr[3]]; + r0 = null; + r1 = null; + type = "axial"; + } else if (shadingType === ShadingType.RADIAL) { + p0 = [coordsArr[0], coordsArr[1]]; + p1 = [coordsArr[3], coordsArr[4]]; + r0 = coordsArr[2]; + r1 = coordsArr[5]; + type = "radial"; + } else { + (0, _util.unreachable)(`getPattern type unknown: ${shadingType}`); + } + + return ["RadialAxial", type, this.bbox, this.colorStops, p0, p1, r0, r1]; + } + +} + +class MeshStreamReader { + constructor(stream, context) { + this.stream = stream; + this.context = context; + this.buffer = 0; + this.bufferLength = 0; + const numComps = context.numComps; + this.tmpCompsBuf = new Float32Array(numComps); + const csNumComps = context.colorSpace.numComps; + this.tmpCsCompsBuf = context.colorFn ? new Float32Array(csNumComps) : this.tmpCompsBuf; + } + + get hasData() { + if (this.stream.end) { + return this.stream.pos < this.stream.end; + } + + if (this.bufferLength > 0) { + return true; + } + + const nextByte = this.stream.getByte(); + + if (nextByte < 0) { + return false; + } + + this.buffer = nextByte; + this.bufferLength = 8; + return true; + } + + readBits(n) { + let buffer = this.buffer; + let bufferLength = this.bufferLength; + + if (n === 32) { + if (bufferLength === 0) { + return (this.stream.getByte() << 24 | this.stream.getByte() << 16 | this.stream.getByte() << 8 | this.stream.getByte()) >>> 0; + } + + buffer = buffer << 24 | this.stream.getByte() << 16 | this.stream.getByte() << 8 | this.stream.getByte(); + const nextByte = this.stream.getByte(); + this.buffer = nextByte & (1 << bufferLength) - 1; + return (buffer << 8 - bufferLength | (nextByte & 0xff) >> bufferLength) >>> 0; + } + + if (n === 8 && bufferLength === 0) { + return this.stream.getByte(); + } + + while (bufferLength < n) { + buffer = buffer << 8 | this.stream.getByte(); + bufferLength += 8; + } + + bufferLength -= n; + this.bufferLength = bufferLength; + this.buffer = buffer & (1 << bufferLength) - 1; + return buffer >> bufferLength; + } + + align() { + this.buffer = 0; + this.bufferLength = 0; + } + + readFlag() { + return this.readBits(this.context.bitsPerFlag); + } + + readCoordinate() { + const bitsPerCoordinate = this.context.bitsPerCoordinate; + const xi = this.readBits(bitsPerCoordinate); + const yi = this.readBits(bitsPerCoordinate); + const decode = this.context.decode; + const scale = bitsPerCoordinate < 32 ? 1 / ((1 << bitsPerCoordinate) - 1) : 2.3283064365386963e-10; + return [xi * scale * (decode[1] - decode[0]) + decode[0], yi * scale * (decode[3] - decode[2]) + decode[2]]; + } + + readComponents() { + const numComps = this.context.numComps; + const bitsPerComponent = this.context.bitsPerComponent; + const scale = bitsPerComponent < 32 ? 1 / ((1 << bitsPerComponent) - 1) : 2.3283064365386963e-10; + const decode = this.context.decode; + const components = this.tmpCompsBuf; + + for (let i = 0, j = 4; i < numComps; i++, j += 2) { + const ci = this.readBits(bitsPerComponent); + components[i] = ci * scale * (decode[j + 1] - decode[j]) + decode[j]; + } + + const color = this.tmpCsCompsBuf; + + if (this.context.colorFn) { + this.context.colorFn(components, 0, color, 0); + } + + return this.context.colorSpace.getRgb(color, 0); + } + +} + +const getB = function getBClosure() { + function buildB(count) { + const lut = []; + + for (let i = 0; i <= count; i++) { + const t = i / count, + t_ = 1 - t; + lut.push(new Float32Array([t_ * t_ * t_, 3 * t * t_ * t_, 3 * t * t * t_, t * t * t])); + } + + return lut; + } + + const cache = []; + return function (count) { + if (!cache[count]) { + cache[count] = buildB(count); + } + + return cache[count]; + }; +}(); + +class MeshShading extends BaseShading { + static get MIN_SPLIT_PATCH_CHUNKS_AMOUNT() { + return (0, _util.shadow)(this, "MIN_SPLIT_PATCH_CHUNKS_AMOUNT", 3); + } + + static get MAX_SPLIT_PATCH_CHUNKS_AMOUNT() { + return (0, _util.shadow)(this, "MAX_SPLIT_PATCH_CHUNKS_AMOUNT", 20); + } + + static get TRIANGLE_DENSITY() { + return (0, _util.shadow)(this, "TRIANGLE_DENSITY", 20); + } + + constructor(stream, xref, resources, pdfFunctionFactory, localColorSpaceCache) { + super(); + + if (!(stream instanceof _base_stream.BaseStream)) { + throw new _util.FormatError("Mesh data is not a stream"); + } + + const dict = stream.dict; + this.shadingType = dict.get("ShadingType"); + const bbox = dict.getArray("BBox"); + + if (Array.isArray(bbox) && bbox.length === 4) { + this.bbox = _util.Util.normalizeRect(bbox); + } else { + this.bbox = null; + } + + const cs = _colorspace.ColorSpace.parse({ + cs: dict.getRaw("CS") || dict.getRaw("ColorSpace"), + xref, + resources, + pdfFunctionFactory, + localColorSpaceCache + }); + + this.background = dict.has("Background") ? cs.getRgb(dict.get("Background"), 0) : null; + const fnObj = dict.getRaw("Function"); + const fn = fnObj ? pdfFunctionFactory.createFromArray(fnObj) : null; + this.coords = []; + this.colors = []; + this.figures = []; + const decodeContext = { + bitsPerCoordinate: dict.get("BitsPerCoordinate"), + bitsPerComponent: dict.get("BitsPerComponent"), + bitsPerFlag: dict.get("BitsPerFlag"), + decode: dict.getArray("Decode"), + colorFn: fn, + colorSpace: cs, + numComps: fn ? 1 : cs.numComps + }; + const reader = new MeshStreamReader(stream, decodeContext); + let patchMesh = false; + + switch (this.shadingType) { + case ShadingType.FREE_FORM_MESH: + this._decodeType4Shading(reader); + + break; + + case ShadingType.LATTICE_FORM_MESH: + const verticesPerRow = dict.get("VerticesPerRow") | 0; + + if (verticesPerRow < 2) { + throw new _util.FormatError("Invalid VerticesPerRow"); + } + + this._decodeType5Shading(reader, verticesPerRow); + + break; + + case ShadingType.COONS_PATCH_MESH: + this._decodeType6Shading(reader); + + patchMesh = true; + break; + + case ShadingType.TENSOR_PATCH_MESH: + this._decodeType7Shading(reader); + + patchMesh = true; + break; + + default: + (0, _util.unreachable)("Unsupported mesh type."); + break; + } + + if (patchMesh) { + this._updateBounds(); + + for (let i = 0, ii = this.figures.length; i < ii; i++) { + this._buildFigureFromPatch(i); + } + } + + this._updateBounds(); + + this._packData(); + } + + _decodeType4Shading(reader) { + const coords = this.coords; + const colors = this.colors; + const operators = []; + const ps = []; + let verticesLeft = 0; + + while (reader.hasData) { + const f = reader.readFlag(); + const coord = reader.readCoordinate(); + const color = reader.readComponents(); + + if (verticesLeft === 0) { + if (!(0 <= f && f <= 2)) { + throw new _util.FormatError("Unknown type4 flag"); + } + + switch (f) { + case 0: + verticesLeft = 3; + break; + + case 1: + ps.push(ps.at(-2), ps.at(-1)); + verticesLeft = 1; + break; + + case 2: + ps.push(ps.at(-3), ps.at(-1)); + verticesLeft = 1; + break; + } + + operators.push(f); + } + + ps.push(coords.length); + coords.push(coord); + colors.push(color); + verticesLeft--; + reader.align(); + } + + this.figures.push({ + type: "triangles", + coords: new Int32Array(ps), + colors: new Int32Array(ps) + }); + } + + _decodeType5Shading(reader, verticesPerRow) { + const coords = this.coords; + const colors = this.colors; + const ps = []; + + while (reader.hasData) { + const coord = reader.readCoordinate(); + const color = reader.readComponents(); + ps.push(coords.length); + coords.push(coord); + colors.push(color); + } + + this.figures.push({ + type: "lattice", + coords: new Int32Array(ps), + colors: new Int32Array(ps), + verticesPerRow + }); + } + + _decodeType6Shading(reader) { + const coords = this.coords; + const colors = this.colors; + const ps = new Int32Array(16); + const cs = new Int32Array(4); + + while (reader.hasData) { + const f = reader.readFlag(); + + if (!(0 <= f && f <= 3)) { + throw new _util.FormatError("Unknown type6 flag"); + } + + const pi = coords.length; + + for (let i = 0, ii = f !== 0 ? 8 : 12; i < ii; i++) { + coords.push(reader.readCoordinate()); + } + + const ci = colors.length; + + for (let i = 0, ii = f !== 0 ? 2 : 4; i < ii; i++) { + colors.push(reader.readComponents()); + } + + let tmp1, tmp2, tmp3, tmp4; + + switch (f) { + case 0: + ps[12] = pi + 3; + ps[13] = pi + 4; + ps[14] = pi + 5; + ps[15] = pi + 6; + ps[8] = pi + 2; + ps[11] = pi + 7; + ps[4] = pi + 1; + ps[7] = pi + 8; + ps[0] = pi; + ps[1] = pi + 11; + ps[2] = pi + 10; + ps[3] = pi + 9; + cs[2] = ci + 1; + cs[3] = ci + 2; + cs[0] = ci; + cs[1] = ci + 3; + break; + + case 1: + tmp1 = ps[12]; + tmp2 = ps[13]; + tmp3 = ps[14]; + tmp4 = ps[15]; + ps[12] = tmp4; + ps[13] = pi + 0; + ps[14] = pi + 1; + ps[15] = pi + 2; + ps[8] = tmp3; + ps[11] = pi + 3; + ps[4] = tmp2; + ps[7] = pi + 4; + ps[0] = tmp1; + ps[1] = pi + 7; + ps[2] = pi + 6; + ps[3] = pi + 5; + tmp1 = cs[2]; + tmp2 = cs[3]; + cs[2] = tmp2; + cs[3] = ci; + cs[0] = tmp1; + cs[1] = ci + 1; + break; + + case 2: + tmp1 = ps[15]; + tmp2 = ps[11]; + ps[12] = ps[3]; + ps[13] = pi + 0; + ps[14] = pi + 1; + ps[15] = pi + 2; + ps[8] = ps[7]; + ps[11] = pi + 3; + ps[4] = tmp2; + ps[7] = pi + 4; + ps[0] = tmp1; + ps[1] = pi + 7; + ps[2] = pi + 6; + ps[3] = pi + 5; + tmp1 = cs[3]; + cs[2] = cs[1]; + cs[3] = ci; + cs[0] = tmp1; + cs[1] = ci + 1; + break; + + case 3: + ps[12] = ps[0]; + ps[13] = pi + 0; + ps[14] = pi + 1; + ps[15] = pi + 2; + ps[8] = ps[1]; + ps[11] = pi + 3; + ps[4] = ps[2]; + ps[7] = pi + 4; + ps[0] = ps[3]; + ps[1] = pi + 7; + ps[2] = pi + 6; + ps[3] = pi + 5; + cs[2] = cs[0]; + cs[3] = ci; + cs[0] = cs[1]; + cs[1] = ci + 1; + break; + } + + ps[5] = coords.length; + coords.push([(-4 * coords[ps[0]][0] - coords[ps[15]][0] + 6 * (coords[ps[4]][0] + coords[ps[1]][0]) - 2 * (coords[ps[12]][0] + coords[ps[3]][0]) + 3 * (coords[ps[13]][0] + coords[ps[7]][0])) / 9, (-4 * coords[ps[0]][1] - coords[ps[15]][1] + 6 * (coords[ps[4]][1] + coords[ps[1]][1]) - 2 * (coords[ps[12]][1] + coords[ps[3]][1]) + 3 * (coords[ps[13]][1] + coords[ps[7]][1])) / 9]); + ps[6] = coords.length; + coords.push([(-4 * coords[ps[3]][0] - coords[ps[12]][0] + 6 * (coords[ps[2]][0] + coords[ps[7]][0]) - 2 * (coords[ps[0]][0] + coords[ps[15]][0]) + 3 * (coords[ps[4]][0] + coords[ps[14]][0])) / 9, (-4 * coords[ps[3]][1] - coords[ps[12]][1] + 6 * (coords[ps[2]][1] + coords[ps[7]][1]) - 2 * (coords[ps[0]][1] + coords[ps[15]][1]) + 3 * (coords[ps[4]][1] + coords[ps[14]][1])) / 9]); + ps[9] = coords.length; + coords.push([(-4 * coords[ps[12]][0] - coords[ps[3]][0] + 6 * (coords[ps[8]][0] + coords[ps[13]][0]) - 2 * (coords[ps[0]][0] + coords[ps[15]][0]) + 3 * (coords[ps[11]][0] + coords[ps[1]][0])) / 9, (-4 * coords[ps[12]][1] - coords[ps[3]][1] + 6 * (coords[ps[8]][1] + coords[ps[13]][1]) - 2 * (coords[ps[0]][1] + coords[ps[15]][1]) + 3 * (coords[ps[11]][1] + coords[ps[1]][1])) / 9]); + ps[10] = coords.length; + coords.push([(-4 * coords[ps[15]][0] - coords[ps[0]][0] + 6 * (coords[ps[11]][0] + coords[ps[14]][0]) - 2 * (coords[ps[12]][0] + coords[ps[3]][0]) + 3 * (coords[ps[2]][0] + coords[ps[8]][0])) / 9, (-4 * coords[ps[15]][1] - coords[ps[0]][1] + 6 * (coords[ps[11]][1] + coords[ps[14]][1]) - 2 * (coords[ps[12]][1] + coords[ps[3]][1]) + 3 * (coords[ps[2]][1] + coords[ps[8]][1])) / 9]); + this.figures.push({ + type: "patch", + coords: new Int32Array(ps), + colors: new Int32Array(cs) + }); + } + } + + _decodeType7Shading(reader) { + const coords = this.coords; + const colors = this.colors; + const ps = new Int32Array(16); + const cs = new Int32Array(4); + + while (reader.hasData) { + const f = reader.readFlag(); + + if (!(0 <= f && f <= 3)) { + throw new _util.FormatError("Unknown type7 flag"); + } + + const pi = coords.length; + + for (let i = 0, ii = f !== 0 ? 12 : 16; i < ii; i++) { + coords.push(reader.readCoordinate()); + } + + const ci = colors.length; + + for (let i = 0, ii = f !== 0 ? 2 : 4; i < ii; i++) { + colors.push(reader.readComponents()); + } + + let tmp1, tmp2, tmp3, tmp4; + + switch (f) { + case 0: + ps[12] = pi + 3; + ps[13] = pi + 4; + ps[14] = pi + 5; + ps[15] = pi + 6; + ps[8] = pi + 2; + ps[9] = pi + 13; + ps[10] = pi + 14; + ps[11] = pi + 7; + ps[4] = pi + 1; + ps[5] = pi + 12; + ps[6] = pi + 15; + ps[7] = pi + 8; + ps[0] = pi; + ps[1] = pi + 11; + ps[2] = pi + 10; + ps[3] = pi + 9; + cs[2] = ci + 1; + cs[3] = ci + 2; + cs[0] = ci; + cs[1] = ci + 3; + break; + + case 1: + tmp1 = ps[12]; + tmp2 = ps[13]; + tmp3 = ps[14]; + tmp4 = ps[15]; + ps[12] = tmp4; + ps[13] = pi + 0; + ps[14] = pi + 1; + ps[15] = pi + 2; + ps[8] = tmp3; + ps[9] = pi + 9; + ps[10] = pi + 10; + ps[11] = pi + 3; + ps[4] = tmp2; + ps[5] = pi + 8; + ps[6] = pi + 11; + ps[7] = pi + 4; + ps[0] = tmp1; + ps[1] = pi + 7; + ps[2] = pi + 6; + ps[3] = pi + 5; + tmp1 = cs[2]; + tmp2 = cs[3]; + cs[2] = tmp2; + cs[3] = ci; + cs[0] = tmp1; + cs[1] = ci + 1; + break; + + case 2: + tmp1 = ps[15]; + tmp2 = ps[11]; + ps[12] = ps[3]; + ps[13] = pi + 0; + ps[14] = pi + 1; + ps[15] = pi + 2; + ps[8] = ps[7]; + ps[9] = pi + 9; + ps[10] = pi + 10; + ps[11] = pi + 3; + ps[4] = tmp2; + ps[5] = pi + 8; + ps[6] = pi + 11; + ps[7] = pi + 4; + ps[0] = tmp1; + ps[1] = pi + 7; + ps[2] = pi + 6; + ps[3] = pi + 5; + tmp1 = cs[3]; + cs[2] = cs[1]; + cs[3] = ci; + cs[0] = tmp1; + cs[1] = ci + 1; + break; + + case 3: + ps[12] = ps[0]; + ps[13] = pi + 0; + ps[14] = pi + 1; + ps[15] = pi + 2; + ps[8] = ps[1]; + ps[9] = pi + 9; + ps[10] = pi + 10; + ps[11] = pi + 3; + ps[4] = ps[2]; + ps[5] = pi + 8; + ps[6] = pi + 11; + ps[7] = pi + 4; + ps[0] = ps[3]; + ps[1] = pi + 7; + ps[2] = pi + 6; + ps[3] = pi + 5; + cs[2] = cs[0]; + cs[3] = ci; + cs[0] = cs[1]; + cs[1] = ci + 1; + break; + } + + this.figures.push({ + type: "patch", + coords: new Int32Array(ps), + colors: new Int32Array(cs) + }); + } + } + + _buildFigureFromPatch(index) { + const figure = this.figures[index]; + (0, _util.assert)(figure.type === "patch", "Unexpected patch mesh figure"); + const coords = this.coords, + colors = this.colors; + const pi = figure.coords; + const ci = figure.colors; + const figureMinX = Math.min(coords[pi[0]][0], coords[pi[3]][0], coords[pi[12]][0], coords[pi[15]][0]); + const figureMinY = Math.min(coords[pi[0]][1], coords[pi[3]][1], coords[pi[12]][1], coords[pi[15]][1]); + const figureMaxX = Math.max(coords[pi[0]][0], coords[pi[3]][0], coords[pi[12]][0], coords[pi[15]][0]); + const figureMaxY = Math.max(coords[pi[0]][1], coords[pi[3]][1], coords[pi[12]][1], coords[pi[15]][1]); + let splitXBy = Math.ceil((figureMaxX - figureMinX) * MeshShading.TRIANGLE_DENSITY / (this.bounds[2] - this.bounds[0])); + splitXBy = Math.max(MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT, Math.min(MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitXBy)); + let splitYBy = Math.ceil((figureMaxY - figureMinY) * MeshShading.TRIANGLE_DENSITY / (this.bounds[3] - this.bounds[1])); + splitYBy = Math.max(MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT, Math.min(MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitYBy)); + const verticesPerRow = splitXBy + 1; + const figureCoords = new Int32Array((splitYBy + 1) * verticesPerRow); + const figureColors = new Int32Array((splitYBy + 1) * verticesPerRow); + let k = 0; + const cl = new Uint8Array(3), + cr = new Uint8Array(3); + const c0 = colors[ci[0]], + c1 = colors[ci[1]], + c2 = colors[ci[2]], + c3 = colors[ci[3]]; + const bRow = getB(splitYBy), + bCol = getB(splitXBy); + + for (let row = 0; row <= splitYBy; row++) { + cl[0] = (c0[0] * (splitYBy - row) + c2[0] * row) / splitYBy | 0; + cl[1] = (c0[1] * (splitYBy - row) + c2[1] * row) / splitYBy | 0; + cl[2] = (c0[2] * (splitYBy - row) + c2[2] * row) / splitYBy | 0; + cr[0] = (c1[0] * (splitYBy - row) + c3[0] * row) / splitYBy | 0; + cr[1] = (c1[1] * (splitYBy - row) + c3[1] * row) / splitYBy | 0; + cr[2] = (c1[2] * (splitYBy - row) + c3[2] * row) / splitYBy | 0; + + for (let col = 0; col <= splitXBy; col++, k++) { + if ((row === 0 || row === splitYBy) && (col === 0 || col === splitXBy)) { + continue; + } + + let x = 0, + y = 0; + let q = 0; + + for (let i = 0; i <= 3; i++) { + for (let j = 0; j <= 3; j++, q++) { + const m = bRow[row][i] * bCol[col][j]; + x += coords[pi[q]][0] * m; + y += coords[pi[q]][1] * m; + } + } + + figureCoords[k] = coords.length; + coords.push([x, y]); + figureColors[k] = colors.length; + const newColor = new Uint8Array(3); + newColor[0] = (cl[0] * (splitXBy - col) + cr[0] * col) / splitXBy | 0; + newColor[1] = (cl[1] * (splitXBy - col) + cr[1] * col) / splitXBy | 0; + newColor[2] = (cl[2] * (splitXBy - col) + cr[2] * col) / splitXBy | 0; + colors.push(newColor); + } + } + + figureCoords[0] = pi[0]; + figureColors[0] = ci[0]; + figureCoords[splitXBy] = pi[3]; + figureColors[splitXBy] = ci[1]; + figureCoords[verticesPerRow * splitYBy] = pi[12]; + figureColors[verticesPerRow * splitYBy] = ci[2]; + figureCoords[verticesPerRow * splitYBy + splitXBy] = pi[15]; + figureColors[verticesPerRow * splitYBy + splitXBy] = ci[3]; + this.figures[index] = { + type: "lattice", + coords: figureCoords, + colors: figureColors, + verticesPerRow + }; + } + + _updateBounds() { + let minX = this.coords[0][0], + minY = this.coords[0][1], + maxX = minX, + maxY = minY; + + for (let i = 1, ii = this.coords.length; i < ii; i++) { + const x = this.coords[i][0], + y = this.coords[i][1]; + minX = minX > x ? x : minX; + minY = minY > y ? y : minY; + maxX = maxX < x ? x : maxX; + maxY = maxY < y ? y : maxY; + } + + this.bounds = [minX, minY, maxX, maxY]; + } + + _packData() { + let i, ii, j, jj; + const coords = this.coords; + const coordsPacked = new Float32Array(coords.length * 2); + + for (i = 0, j = 0, ii = coords.length; i < ii; i++) { + const xy = coords[i]; + coordsPacked[j++] = xy[0]; + coordsPacked[j++] = xy[1]; + } + + this.coords = coordsPacked; + const colors = this.colors; + const colorsPacked = new Uint8Array(colors.length * 3); + + for (i = 0, j = 0, ii = colors.length; i < ii; i++) { + const c = colors[i]; + colorsPacked[j++] = c[0]; + colorsPacked[j++] = c[1]; + colorsPacked[j++] = c[2]; + } + + this.colors = colorsPacked; + const figures = this.figures; + + for (i = 0, ii = figures.length; i < ii; i++) { + const figure = figures[i], + ps = figure.coords, + cs = figure.colors; + + for (j = 0, jj = ps.length; j < jj; j++) { + ps[j] *= 2; + cs[j] *= 3; + } + } + } + + getIR() { + return ["Mesh", this.shadingType, this.coords, this.colors, this.figures, this.bounds, this.bbox, this.background]; + } + +} + +class DummyShading extends BaseShading { + getIR() { + return ["Dummy"]; + } + +} + +function getTilingPatternIR(operatorList, dict, color) { + const matrix = dict.getArray("Matrix"); + + const bbox = _util.Util.normalizeRect(dict.getArray("BBox")); + + const xstep = dict.get("XStep"); + const ystep = dict.get("YStep"); + const paintType = dict.get("PaintType"); + const tilingType = dict.get("TilingType"); + + if (bbox[2] - bbox[0] === 0 || bbox[3] - bbox[1] === 0) { + throw new _util.FormatError(`Invalid getTilingPatternIR /BBox array: [${bbox}].`); + } + + return ["TilingPattern", color, operatorList, matrix, bbox, xstep, ystep, paintType, tilingType]; +} + +/***/ }), +/* 51 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.getXfaFontDict = getXfaFontDict; +exports.getXfaFontName = getXfaFontName; + +var _calibri_factors = __w_pdfjs_require__(52); + +var _primitives = __w_pdfjs_require__(5); + +var _helvetica_factors = __w_pdfjs_require__(53); + +var _liberationsans_widths = __w_pdfjs_require__(54); + +var _myriadpro_factors = __w_pdfjs_require__(55); + +var _segoeui_factors = __w_pdfjs_require__(56); + +var _core_utils = __w_pdfjs_require__(6); + +var _fonts_utils = __w_pdfjs_require__(38); + +const getXFAFontMap = (0, _core_utils.getLookupTableFactory)(function (t) { + t["MyriadPro-Regular"] = t["PdfJS-Fallback-Regular"] = { + name: "LiberationSans-Regular", + factors: _myriadpro_factors.MyriadProRegularFactors, + baseWidths: _liberationsans_widths.LiberationSansRegularWidths, + baseMapping: _liberationsans_widths.LiberationSansRegularMapping, + metrics: _myriadpro_factors.MyriadProRegularMetrics + }; + t["MyriadPro-Bold"] = t["PdfJS-Fallback-Bold"] = { + name: "LiberationSans-Bold", + factors: _myriadpro_factors.MyriadProBoldFactors, + baseWidths: _liberationsans_widths.LiberationSansBoldWidths, + baseMapping: _liberationsans_widths.LiberationSansBoldMapping, + metrics: _myriadpro_factors.MyriadProBoldMetrics + }; + t["MyriadPro-It"] = t["MyriadPro-Italic"] = t["PdfJS-Fallback-Italic"] = { + name: "LiberationSans-Italic", + factors: _myriadpro_factors.MyriadProItalicFactors, + baseWidths: _liberationsans_widths.LiberationSansItalicWidths, + baseMapping: _liberationsans_widths.LiberationSansItalicMapping, + metrics: _myriadpro_factors.MyriadProItalicMetrics + }; + t["MyriadPro-BoldIt"] = t["MyriadPro-BoldItalic"] = t["PdfJS-Fallback-BoldItalic"] = { + name: "LiberationSans-BoldItalic", + factors: _myriadpro_factors.MyriadProBoldItalicFactors, + baseWidths: _liberationsans_widths.LiberationSansBoldItalicWidths, + baseMapping: _liberationsans_widths.LiberationSansBoldItalicMapping, + metrics: _myriadpro_factors.MyriadProBoldItalicMetrics + }; + t.ArialMT = t.Arial = t["Arial-Regular"] = { + name: "LiberationSans-Regular", + baseWidths: _liberationsans_widths.LiberationSansRegularWidths, + baseMapping: _liberationsans_widths.LiberationSansRegularMapping + }; + t["Arial-BoldMT"] = t["Arial-Bold"] = { + name: "LiberationSans-Bold", + baseWidths: _liberationsans_widths.LiberationSansBoldWidths, + baseMapping: _liberationsans_widths.LiberationSansBoldMapping + }; + t["Arial-ItalicMT"] = t["Arial-Italic"] = { + name: "LiberationSans-Italic", + baseWidths: _liberationsans_widths.LiberationSansItalicWidths, + baseMapping: _liberationsans_widths.LiberationSansItalicMapping + }; + t["Arial-BoldItalicMT"] = t["Arial-BoldItalic"] = { + name: "LiberationSans-BoldItalic", + baseWidths: _liberationsans_widths.LiberationSansBoldItalicWidths, + baseMapping: _liberationsans_widths.LiberationSansBoldItalicMapping + }; + t["Calibri-Regular"] = { + name: "LiberationSans-Regular", + factors: _calibri_factors.CalibriRegularFactors, + baseWidths: _liberationsans_widths.LiberationSansRegularWidths, + baseMapping: _liberationsans_widths.LiberationSansRegularMapping, + metrics: _calibri_factors.CalibriRegularMetrics + }; + t["Calibri-Bold"] = { + name: "LiberationSans-Bold", + factors: _calibri_factors.CalibriBoldFactors, + baseWidths: _liberationsans_widths.LiberationSansBoldWidths, + baseMapping: _liberationsans_widths.LiberationSansBoldMapping, + metrics: _calibri_factors.CalibriBoldMetrics + }; + t["Calibri-Italic"] = { + name: "LiberationSans-Italic", + factors: _calibri_factors.CalibriItalicFactors, + baseWidths: _liberationsans_widths.LiberationSansItalicWidths, + baseMapping: _liberationsans_widths.LiberationSansItalicMapping, + metrics: _calibri_factors.CalibriItalicMetrics + }; + t["Calibri-BoldItalic"] = { + name: "LiberationSans-BoldItalic", + factors: _calibri_factors.CalibriBoldItalicFactors, + baseWidths: _liberationsans_widths.LiberationSansBoldItalicWidths, + baseMapping: _liberationsans_widths.LiberationSansBoldItalicMapping, + metrics: _calibri_factors.CalibriBoldItalicMetrics + }; + t["Segoeui-Regular"] = { + name: "LiberationSans-Regular", + factors: _segoeui_factors.SegoeuiRegularFactors, + baseWidths: _liberationsans_widths.LiberationSansRegularWidths, + baseMapping: _liberationsans_widths.LiberationSansRegularMapping, + metrics: _segoeui_factors.SegoeuiRegularMetrics + }; + t["Segoeui-Bold"] = { + name: "LiberationSans-Bold", + factors: _segoeui_factors.SegoeuiBoldFactors, + baseWidths: _liberationsans_widths.LiberationSansBoldWidths, + baseMapping: _liberationsans_widths.LiberationSansBoldMapping, + metrics: _segoeui_factors.SegoeuiBoldMetrics + }; + t["Segoeui-Italic"] = { + name: "LiberationSans-Italic", + factors: _segoeui_factors.SegoeuiItalicFactors, + baseWidths: _liberationsans_widths.LiberationSansItalicWidths, + baseMapping: _liberationsans_widths.LiberationSansItalicMapping, + metrics: _segoeui_factors.SegoeuiItalicMetrics + }; + t["Segoeui-BoldItalic"] = { + name: "LiberationSans-BoldItalic", + factors: _segoeui_factors.SegoeuiBoldItalicFactors, + baseWidths: _liberationsans_widths.LiberationSansBoldItalicWidths, + baseMapping: _liberationsans_widths.LiberationSansBoldItalicMapping, + metrics: _segoeui_factors.SegoeuiBoldItalicMetrics + }; + t["Helvetica-Regular"] = t.Helvetica = { + name: "LiberationSans-Regular", + factors: _helvetica_factors.HelveticaRegularFactors, + baseWidths: _liberationsans_widths.LiberationSansRegularWidths, + baseMapping: _liberationsans_widths.LiberationSansRegularMapping, + metrics: _helvetica_factors.HelveticaRegularMetrics + }; + t["Helvetica-Bold"] = { + name: "LiberationSans-Bold", + factors: _helvetica_factors.HelveticaBoldFactors, + baseWidths: _liberationsans_widths.LiberationSansBoldWidths, + baseMapping: _liberationsans_widths.LiberationSansBoldMapping, + metrics: _helvetica_factors.HelveticaBoldMetrics + }; + t["Helvetica-Italic"] = { + name: "LiberationSans-Italic", + factors: _helvetica_factors.HelveticaItalicFactors, + baseWidths: _liberationsans_widths.LiberationSansItalicWidths, + baseMapping: _liberationsans_widths.LiberationSansItalicMapping, + metrics: _helvetica_factors.HelveticaItalicMetrics + }; + t["Helvetica-BoldItalic"] = { + name: "LiberationSans-BoldItalic", + factors: _helvetica_factors.HelveticaBoldItalicFactors, + baseWidths: _liberationsans_widths.LiberationSansBoldItalicWidths, + baseMapping: _liberationsans_widths.LiberationSansBoldItalicMapping, + metrics: _helvetica_factors.HelveticaBoldItalicMetrics + }; +}); + +function getXfaFontName(name) { + const fontName = (0, _fonts_utils.normalizeFontName)(name); + const fontMap = getXFAFontMap(); + return fontMap[fontName]; +} + +function getXfaFontWidths(name) { + const info = getXfaFontName(name); + + if (!info) { + return null; + } + + const { + baseWidths, + baseMapping, + factors + } = info; + let rescaledBaseWidths; + + if (!factors) { + rescaledBaseWidths = baseWidths; + } else { + rescaledBaseWidths = baseWidths.map((w, i) => w * factors[i]); + } + + let currentCode = -2; + let currentArray; + const newWidths = []; + + for (const [unicode, glyphIndex] of baseMapping.map((charUnicode, index) => [charUnicode, index]).sort(([unicode1], [unicode2]) => unicode1 - unicode2)) { + if (unicode === -1) { + continue; + } + + if (unicode === currentCode + 1) { + currentArray.push(rescaledBaseWidths[glyphIndex]); + currentCode += 1; + } else { + currentCode = unicode; + currentArray = [rescaledBaseWidths[glyphIndex]]; + newWidths.push(unicode, currentArray); + } + } + + return newWidths; +} + +function getXfaFontDict(name) { + const widths = getXfaFontWidths(name); + const dict = new _primitives.Dict(null); + dict.set("BaseFont", _primitives.Name.get(name)); + dict.set("Type", _primitives.Name.get("Font")); + dict.set("Subtype", _primitives.Name.get("CIDFontType2")); + dict.set("Encoding", _primitives.Name.get("Identity-H")); + dict.set("CIDToGIDMap", _primitives.Name.get("Identity")); + dict.set("W", widths); + dict.set("FirstChar", widths[0]); + dict.set("LastChar", widths.at(-2) + widths.at(-1).length - 1); + const descriptor = new _primitives.Dict(null); + dict.set("FontDescriptor", descriptor); + const systemInfo = new _primitives.Dict(null); + systemInfo.set("Ordering", "Identity"); + systemInfo.set("Registry", "Adobe"); + systemInfo.set("Supplement", 0); + dict.set("CIDSystemInfo", systemInfo); + return dict; +} + +/***/ }), +/* 52 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.CalibriRegularMetrics = exports.CalibriRegularFactors = exports.CalibriItalicMetrics = exports.CalibriItalicFactors = exports.CalibriBoldMetrics = exports.CalibriBoldItalicMetrics = exports.CalibriBoldItalicFactors = exports.CalibriBoldFactors = void 0; +const CalibriBoldFactors = [1.3877, 1, 1, 1, 0.97801, 0.92482, 0.89552, 0.91133, 0.81988, 0.97566, 0.98152, 0.93548, 0.93548, 1.2798, 0.85284, 0.92794, 1, 0.96134, 1.54657, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.82845, 0.82845, 0.85284, 0.85284, 0.85284, 0.75859, 0.92138, 0.83908, 0.7762, 0.73293, 0.87289, 0.73133, 0.7514, 0.81921, 0.87356, 0.95958, 0.59526, 0.75727, 0.69225, 1.04924, 0.9121, 0.86943, 0.79795, 0.88198, 0.77958, 0.70864, 0.81055, 0.90399, 0.88653, 0.96017, 0.82577, 0.77892, 0.78257, 0.97507, 1.54657, 0.97507, 0.85284, 0.89552, 0.90176, 0.88762, 0.8785, 0.75241, 0.8785, 0.90518, 0.95015, 0.77618, 0.8785, 0.88401, 0.91916, 0.86304, 0.88401, 0.91488, 0.8785, 0.8801, 0.8785, 0.8785, 0.91343, 0.7173, 1.04106, 0.8785, 0.85075, 0.95794, 0.82616, 0.85162, 0.79492, 0.88331, 1.69808, 0.88331, 0.85284, 0.97801, 0.89552, 0.91133, 0.89552, 0.91133, 1.7801, 0.89552, 1.24487, 1.13254, 1.12401, 0.96839, 0.85284, 0.68787, 0.70645, 0.85592, 0.90747, 1.01466, 1.0088, 0.90323, 1, 1.07463, 1, 0.91056, 0.75806, 1.19118, 0.96839, 0.78864, 0.82845, 0.84133, 0.75859, 0.83908, 0.83908, 0.83908, 0.83908, 0.83908, 0.83908, 0.77539, 0.73293, 0.73133, 0.73133, 0.73133, 0.73133, 0.95958, 0.95958, 0.95958, 0.95958, 0.88506, 0.9121, 0.86943, 0.86943, 0.86943, 0.86943, 0.86943, 0.85284, 0.87508, 0.90399, 0.90399, 0.90399, 0.90399, 0.77892, 0.79795, 0.90807, 0.88762, 0.88762, 0.88762, 0.88762, 0.88762, 0.88762, 0.8715, 0.75241, 0.90518, 0.90518, 0.90518, 0.90518, 0.88401, 0.88401, 0.88401, 0.88401, 0.8785, 0.8785, 0.8801, 0.8801, 0.8801, 0.8801, 0.8801, 0.90747, 0.89049, 0.8785, 0.8785, 0.8785, 0.8785, 0.85162, 0.8785, 0.85162, 0.83908, 0.88762, 0.83908, 0.88762, 0.83908, 0.88762, 0.73293, 0.75241, 0.73293, 0.75241, 0.73293, 0.75241, 0.73293, 0.75241, 0.87289, 0.83016, 0.88506, 0.93125, 0.73133, 0.90518, 0.73133, 0.90518, 0.73133, 0.90518, 0.73133, 0.90518, 0.73133, 0.90518, 0.81921, 0.77618, 0.81921, 0.77618, 0.81921, 0.77618, 1, 1, 0.87356, 0.8785, 0.91075, 0.89608, 0.95958, 0.88401, 0.95958, 0.88401, 0.95958, 0.88401, 0.95958, 0.88401, 0.95958, 0.88401, 0.76229, 0.90167, 0.59526, 0.91916, 1, 1, 0.86304, 0.69225, 0.88401, 1, 1, 0.70424, 0.79468, 0.91926, 0.88175, 0.70823, 0.94903, 0.9121, 0.8785, 1, 1, 0.9121, 0.8785, 0.87802, 0.88656, 0.8785, 0.86943, 0.8801, 0.86943, 0.8801, 0.86943, 0.8801, 0.87402, 0.89291, 0.77958, 0.91343, 1, 1, 0.77958, 0.91343, 0.70864, 0.7173, 0.70864, 0.7173, 0.70864, 0.7173, 0.70864, 0.7173, 1, 1, 0.81055, 0.75841, 0.81055, 1.06452, 0.90399, 0.8785, 0.90399, 0.8785, 0.90399, 0.8785, 0.90399, 0.8785, 0.90399, 0.8785, 0.90399, 0.8785, 0.96017, 0.95794, 0.77892, 0.85162, 0.77892, 0.78257, 0.79492, 0.78257, 0.79492, 0.78257, 0.79492, 0.9297, 0.56892, 0.83908, 0.88762, 0.77539, 0.8715, 0.87508, 0.89049, 1, 1, 0.81055, 1.04106, 1.20528, 1.20528, 1, 1.15543, 0.70674, 0.98387, 0.94721, 1.33431, 1.45894, 0.95161, 1.06303, 0.83908, 0.80352, 0.57184, 0.6965, 0.56289, 0.82001, 0.56029, 0.81235, 1.02988, 0.83908, 0.7762, 0.68156, 0.80367, 0.73133, 0.78257, 0.87356, 0.86943, 0.95958, 0.75727, 0.89019, 1.04924, 0.9121, 0.7648, 0.86943, 0.87356, 0.79795, 0.78275, 0.81055, 0.77892, 0.9762, 0.82577, 0.99819, 0.84896, 0.95958, 0.77892, 0.96108, 1.01407, 0.89049, 1.02988, 0.94211, 0.96108, 0.8936, 0.84021, 0.87842, 0.96399, 0.79109, 0.89049, 1.00813, 1.02988, 0.86077, 0.87445, 0.92099, 0.84723, 0.86513, 0.8801, 0.75638, 0.85714, 0.78216, 0.79586, 0.87965, 0.94211, 0.97747, 0.78287, 0.97926, 0.84971, 1.02988, 0.94211, 0.8801, 0.94211, 0.84971, 0.73133, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.90264, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.90518, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.90548, 1, 1, 1, 1, 1, 1, 0.96017, 0.95794, 0.96017, 0.95794, 0.96017, 0.95794, 0.77892, 0.85162, 1, 1, 0.89552, 0.90527, 1, 0.90363, 0.92794, 0.92794, 0.92794, 0.92794, 0.87012, 0.87012, 0.87012, 0.89552, 0.89552, 1.42259, 0.71143, 1.06152, 1, 1, 1.03372, 1.03372, 0.97171, 1.4956, 2.2807, 0.93835, 0.83406, 0.91133, 0.84107, 0.91133, 1, 1, 1, 0.72021, 1, 1.23108, 0.83489, 0.88525, 0.88525, 0.81499, 0.90527, 1.81055, 0.90527, 1.81055, 1.31006, 1.53711, 0.94434, 1.08696, 1, 0.95018, 0.77192, 0.85284, 0.90747, 1.17534, 0.69825, 0.9716, 1.37077, 0.90747, 0.90747, 0.85356, 0.90747, 0.90747, 1.44947, 0.85284, 0.8941, 0.8941, 0.70572, 0.8, 0.70572, 0.70572, 0.70572, 0.70572, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.99862, 0.99862, 1, 1, 1, 1, 1, 1.08004, 0.91027, 1, 1, 1, 0.99862, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.90727, 0.90727, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.CalibriBoldFactors = CalibriBoldFactors; +const CalibriBoldMetrics = { + lineHeight: 1.2207, + lineGap: 0.2207 +}; +exports.CalibriBoldMetrics = CalibriBoldMetrics; +const CalibriBoldItalicFactors = [1.3877, 1, 1, 1, 0.97801, 0.92482, 0.89552, 0.91133, 0.81988, 0.97566, 0.98152, 0.93548, 0.93548, 1.2798, 0.85284, 0.92794, 1, 0.96134, 1.56239, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.82845, 0.82845, 0.85284, 0.85284, 0.85284, 0.75859, 0.92138, 0.83908, 0.7762, 0.71805, 0.87289, 0.73133, 0.7514, 0.81921, 0.87356, 0.95958, 0.59526, 0.75727, 0.69225, 1.04924, 0.90872, 0.85938, 0.79795, 0.87068, 0.77958, 0.69766, 0.81055, 0.90399, 0.88653, 0.96068, 0.82577, 0.77892, 0.78257, 0.97507, 1.529, 0.97507, 0.85284, 0.89552, 0.90176, 0.94908, 0.86411, 0.74012, 0.86411, 0.88323, 0.95015, 0.86411, 0.86331, 0.88401, 0.91916, 0.86304, 0.88401, 0.9039, 0.86331, 0.86331, 0.86411, 0.86411, 0.90464, 0.70852, 1.04106, 0.86331, 0.84372, 0.95794, 0.82616, 0.84548, 0.79492, 0.88331, 1.69808, 0.88331, 0.85284, 0.97801, 0.89552, 0.91133, 0.89552, 0.91133, 1.7801, 0.89552, 1.24487, 1.13254, 1.19129, 0.96839, 0.85284, 0.68787, 0.70645, 0.85592, 0.90747, 1.01466, 1.0088, 0.90323, 1, 1.07463, 1, 0.91056, 0.75806, 1.19118, 0.96839, 0.78864, 0.82845, 0.84133, 0.75859, 0.83908, 0.83908, 0.83908, 0.83908, 0.83908, 0.83908, 0.77539, 0.71805, 0.73133, 0.73133, 0.73133, 0.73133, 0.95958, 0.95958, 0.95958, 0.95958, 0.88506, 0.90872, 0.85938, 0.85938, 0.85938, 0.85938, 0.85938, 0.85284, 0.87068, 0.90399, 0.90399, 0.90399, 0.90399, 0.77892, 0.79795, 0.90807, 0.94908, 0.94908, 0.94908, 0.94908, 0.94908, 0.94908, 0.85887, 0.74012, 0.88323, 0.88323, 0.88323, 0.88323, 0.88401, 0.88401, 0.88401, 0.88401, 0.8785, 0.86331, 0.86331, 0.86331, 0.86331, 0.86331, 0.86331, 0.90747, 0.89049, 0.86331, 0.86331, 0.86331, 0.86331, 0.84548, 0.86411, 0.84548, 0.83908, 0.94908, 0.83908, 0.94908, 0.83908, 0.94908, 0.71805, 0.74012, 0.71805, 0.74012, 0.71805, 0.74012, 0.71805, 0.74012, 0.87289, 0.79538, 0.88506, 0.92726, 0.73133, 0.88323, 0.73133, 0.88323, 0.73133, 0.88323, 0.73133, 0.88323, 0.73133, 0.88323, 0.81921, 0.86411, 0.81921, 0.86411, 0.81921, 0.86411, 1, 1, 0.87356, 0.86331, 0.91075, 0.8777, 0.95958, 0.88401, 0.95958, 0.88401, 0.95958, 0.88401, 0.95958, 0.88401, 0.95958, 0.88401, 0.76467, 0.90167, 0.59526, 0.91916, 1, 1, 0.86304, 0.69225, 0.88401, 1, 1, 0.70424, 0.77312, 0.91926, 0.88175, 0.70823, 0.94903, 0.90872, 0.86331, 1, 1, 0.90872, 0.86331, 0.86906, 0.88116, 0.86331, 0.85938, 0.86331, 0.85938, 0.86331, 0.85938, 0.86331, 0.87402, 0.86549, 0.77958, 0.90464, 1, 1, 0.77958, 0.90464, 0.69766, 0.70852, 0.69766, 0.70852, 0.69766, 0.70852, 0.69766, 0.70852, 1, 1, 0.81055, 0.75841, 0.81055, 1.06452, 0.90399, 0.86331, 0.90399, 0.86331, 0.90399, 0.86331, 0.90399, 0.86331, 0.90399, 0.86331, 0.90399, 0.86331, 0.96068, 0.95794, 0.77892, 0.84548, 0.77892, 0.78257, 0.79492, 0.78257, 0.79492, 0.78257, 0.79492, 0.9297, 0.56892, 0.83908, 0.94908, 0.77539, 0.85887, 0.87068, 0.89049, 1, 1, 0.81055, 1.04106, 1.20528, 1.20528, 1, 1.15543, 0.70088, 0.98387, 0.94721, 1.33431, 1.45894, 0.95161, 1.48387, 0.83908, 0.80352, 0.57118, 0.6965, 0.56347, 0.79179, 0.55853, 0.80346, 1.02988, 0.83908, 0.7762, 0.67174, 0.86036, 0.73133, 0.78257, 0.87356, 0.86441, 0.95958, 0.75727, 0.89019, 1.04924, 0.90872, 0.74889, 0.85938, 0.87891, 0.79795, 0.7957, 0.81055, 0.77892, 0.97447, 0.82577, 0.97466, 0.87179, 0.95958, 0.77892, 0.94252, 0.95612, 0.8753, 1.02988, 0.92733, 0.94252, 0.87411, 0.84021, 0.8728, 0.95612, 0.74081, 0.8753, 1.02189, 1.02988, 0.84814, 0.87445, 0.91822, 0.84723, 0.85668, 0.86331, 0.81344, 0.87581, 0.76422, 0.82046, 0.96057, 0.92733, 0.99375, 0.78022, 0.95452, 0.86015, 1.02988, 0.92733, 0.86331, 0.92733, 0.86015, 0.73133, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.90631, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.88323, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.85174, 1, 1, 1, 1, 1, 1, 0.96068, 0.95794, 0.96068, 0.95794, 0.96068, 0.95794, 0.77892, 0.84548, 1, 1, 0.89552, 0.90527, 1, 0.90363, 0.92794, 0.92794, 0.92794, 0.89807, 0.87012, 0.87012, 0.87012, 0.89552, 0.89552, 1.42259, 0.71094, 1.06152, 1, 1, 1.03372, 1.03372, 0.97171, 1.4956, 2.2807, 0.92972, 0.83406, 0.91133, 0.83326, 0.91133, 1, 1, 1, 0.72021, 1, 1.23108, 0.83489, 0.88525, 0.88525, 0.81499, 0.90616, 1.81055, 0.90527, 1.81055, 1.3107, 1.53711, 0.94434, 1.08696, 1, 0.95018, 0.77192, 0.85284, 0.90747, 1.17534, 0.69825, 0.9716, 1.37077, 0.90747, 0.90747, 0.85356, 0.90747, 0.90747, 1.44947, 0.85284, 0.8941, 0.8941, 0.70572, 0.8, 0.70572, 0.70572, 0.70572, 0.70572, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.99862, 0.99862, 1, 1, 1, 1, 1, 1.08004, 0.91027, 1, 1, 1, 0.99862, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.90727, 0.90727, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.CalibriBoldItalicFactors = CalibriBoldItalicFactors; +const CalibriBoldItalicMetrics = { + lineHeight: 1.2207, + lineGap: 0.2207 +}; +exports.CalibriBoldItalicMetrics = CalibriBoldItalicMetrics; +const CalibriItalicFactors = [1.3877, 1, 1, 1, 1.17223, 1.1293, 0.89552, 0.91133, 0.80395, 1.02269, 1.15601, 0.91056, 0.91056, 1.2798, 0.85284, 0.89807, 1, 0.90861, 1.39543, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.96309, 0.96309, 0.85284, 0.85284, 0.85284, 0.83319, 0.88071, 0.8675, 0.81552, 0.72346, 0.85193, 0.73206, 0.7522, 0.81105, 0.86275, 0.90685, 0.6377, 0.77892, 0.75593, 1.02638, 0.89249, 0.84118, 0.77452, 0.85374, 0.75186, 0.67789, 0.79776, 0.88844, 0.85066, 0.94309, 0.77818, 0.7306, 0.76659, 1.10369, 1.38313, 1.10369, 1.06139, 0.89552, 0.8739, 0.9245, 0.9245, 0.83203, 0.9245, 0.85865, 1.09842, 0.9245, 0.9245, 1.03297, 1.07692, 0.90918, 1.03297, 0.94959, 0.9245, 0.92274, 0.9245, 0.9245, 1.02933, 0.77832, 1.20562, 0.9245, 0.8916, 0.98986, 0.86621, 0.89453, 0.79004, 0.94152, 1.77256, 0.94152, 0.85284, 0.97801, 0.89552, 0.91133, 0.89552, 0.91133, 1.91729, 0.89552, 1.17889, 1.13254, 1.16359, 0.92098, 0.85284, 0.68787, 0.71353, 0.84737, 0.90747, 1.0088, 1.0044, 0.87683, 1, 1.09091, 1, 0.92229, 0.739, 1.15642, 0.92098, 0.76288, 0.80504, 0.80972, 0.75859, 0.8675, 0.8675, 0.8675, 0.8675, 0.8675, 0.8675, 0.76318, 0.72346, 0.73206, 0.73206, 0.73206, 0.73206, 0.90685, 0.90685, 0.90685, 0.90685, 0.86477, 0.89249, 0.84118, 0.84118, 0.84118, 0.84118, 0.84118, 0.85284, 0.84557, 0.88844, 0.88844, 0.88844, 0.88844, 0.7306, 0.77452, 0.86331, 0.9245, 0.9245, 0.9245, 0.9245, 0.9245, 0.9245, 0.84843, 0.83203, 0.85865, 0.85865, 0.85865, 0.85865, 0.82601, 0.82601, 0.82601, 0.82601, 0.94469, 0.9245, 0.92274, 0.92274, 0.92274, 0.92274, 0.92274, 0.90747, 0.86651, 0.9245, 0.9245, 0.9245, 0.9245, 0.89453, 0.9245, 0.89453, 0.8675, 0.9245, 0.8675, 0.9245, 0.8675, 0.9245, 0.72346, 0.83203, 0.72346, 0.83203, 0.72346, 0.83203, 0.72346, 0.83203, 0.85193, 0.8875, 0.86477, 0.99034, 0.73206, 0.85865, 0.73206, 0.85865, 0.73206, 0.85865, 0.73206, 0.85865, 0.73206, 0.85865, 0.81105, 0.9245, 0.81105, 0.9245, 0.81105, 0.9245, 1, 1, 0.86275, 0.9245, 0.90872, 0.93591, 0.90685, 0.82601, 0.90685, 0.82601, 0.90685, 0.82601, 0.90685, 1.03297, 0.90685, 0.82601, 0.77896, 1.05611, 0.6377, 1.07692, 1, 1, 0.90918, 0.75593, 1.03297, 1, 1, 0.76032, 0.9375, 0.98156, 0.93407, 0.77261, 1.11429, 0.89249, 0.9245, 1, 1, 0.89249, 0.9245, 0.92534, 0.86698, 0.9245, 0.84118, 0.92274, 0.84118, 0.92274, 0.84118, 0.92274, 0.8667, 0.86291, 0.75186, 1.02933, 1, 1, 0.75186, 1.02933, 0.67789, 0.77832, 0.67789, 0.77832, 0.67789, 0.77832, 0.67789, 0.77832, 1, 1, 0.79776, 0.97655, 0.79776, 1.23023, 0.88844, 0.9245, 0.88844, 0.9245, 0.88844, 0.9245, 0.88844, 0.9245, 0.88844, 0.9245, 0.88844, 0.9245, 0.94309, 0.98986, 0.7306, 0.89453, 0.7306, 0.76659, 0.79004, 0.76659, 0.79004, 0.76659, 0.79004, 1.09231, 0.54873, 0.8675, 0.9245, 0.76318, 0.84843, 0.84557, 0.86651, 1, 1, 0.79776, 1.20562, 1.18622, 1.18622, 1, 1.1437, 0.67009, 0.96334, 0.93695, 1.35191, 1.40909, 0.95161, 1.48387, 0.8675, 0.90861, 0.6192, 0.7363, 0.64824, 0.82411, 0.56321, 0.85696, 1.23516, 0.8675, 0.81552, 0.7286, 0.84134, 0.73206, 0.76659, 0.86275, 0.84369, 0.90685, 0.77892, 0.85871, 1.02638, 0.89249, 0.75828, 0.84118, 0.85984, 0.77452, 0.76466, 0.79776, 0.7306, 0.90782, 0.77818, 0.903, 0.87291, 0.90685, 0.7306, 0.99058, 1.03667, 0.94635, 1.23516, 0.9849, 0.99058, 0.92393, 0.8916, 0.942, 1.03667, 0.75026, 0.94635, 1.0297, 1.23516, 0.90918, 0.94048, 0.98217, 0.89746, 0.84153, 0.92274, 0.82507, 0.88832, 0.84438, 0.88178, 1.03525, 0.9849, 1.00225, 0.78086, 0.97248, 0.89404, 1.23516, 0.9849, 0.92274, 0.9849, 0.89404, 0.73206, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.89693, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.85865, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.90933, 1, 1, 1, 1, 1, 1, 0.94309, 0.98986, 0.94309, 0.98986, 0.94309, 0.98986, 0.7306, 0.89453, 1, 1, 0.89552, 0.90527, 1, 0.90186, 1.12308, 1.12308, 1.12308, 1.12308, 1.2566, 1.2566, 1.2566, 0.89552, 0.89552, 1.42259, 0.68994, 1.03809, 1, 1, 1.0176, 1.0176, 1.11523, 1.4956, 2.01462, 0.97858, 0.82616, 0.91133, 0.83437, 0.91133, 1, 1, 1, 0.70508, 1, 1.23108, 0.79801, 0.84426, 0.84426, 0.774, 0.90572, 1.81055, 0.90749, 1.81055, 1.28809, 1.55469, 0.94434, 1.07806, 1, 0.97094, 0.7589, 0.85284, 0.90747, 1.19658, 0.69825, 0.97622, 1.33512, 0.90747, 0.90747, 0.85284, 0.90747, 0.90747, 1.44947, 0.85284, 0.8941, 0.8941, 0.70572, 0.8, 0.70572, 0.70572, 0.70572, 0.70572, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.99862, 0.99862, 1, 1, 1, 1, 1, 1.0336, 0.91027, 1, 1, 1, 0.99862, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.05859, 1.05859, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.CalibriItalicFactors = CalibriItalicFactors; +const CalibriItalicMetrics = { + lineHeight: 1.2207, + lineGap: 0.2207 +}; +exports.CalibriItalicMetrics = CalibriItalicMetrics; +const CalibriRegularFactors = [1.3877, 1, 1, 1, 1.17223, 1.1293, 0.89552, 0.91133, 0.80395, 1.02269, 1.15601, 0.91056, 0.91056, 1.2798, 0.85284, 0.89807, 1, 0.90861, 1.39016, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.91133, 0.96309, 0.96309, 0.85284, 0.85284, 0.85284, 0.83319, 0.88071, 0.8675, 0.81552, 0.73834, 0.85193, 0.73206, 0.7522, 0.81105, 0.86275, 0.90685, 0.6377, 0.77892, 0.75593, 1.02638, 0.89385, 0.85122, 0.77452, 0.86503, 0.75186, 0.68887, 0.79776, 0.88844, 0.85066, 0.94258, 0.77818, 0.7306, 0.76659, 1.10369, 1.39016, 1.10369, 1.06139, 0.89552, 0.8739, 0.86128, 0.94469, 0.8457, 0.94469, 0.89464, 1.09842, 0.84636, 0.94469, 1.03297, 1.07692, 0.90918, 1.03297, 0.95897, 0.94469, 0.9482, 0.94469, 0.94469, 1.04692, 0.78223, 1.20562, 0.94469, 0.90332, 0.98986, 0.86621, 0.90527, 0.79004, 0.94152, 1.77256, 0.94152, 0.85284, 0.97801, 0.89552, 0.91133, 0.89552, 0.91133, 1.91729, 0.89552, 1.17889, 1.13254, 1.08707, 0.92098, 0.85284, 0.68787, 0.71353, 0.84737, 0.90747, 1.0088, 1.0044, 0.87683, 1, 1.09091, 1, 0.92229, 0.739, 1.15642, 0.92098, 0.76288, 0.80504, 0.80972, 0.75859, 0.8675, 0.8675, 0.8675, 0.8675, 0.8675, 0.8675, 0.76318, 0.73834, 0.73206, 0.73206, 0.73206, 0.73206, 0.90685, 0.90685, 0.90685, 0.90685, 0.86477, 0.89385, 0.85122, 0.85122, 0.85122, 0.85122, 0.85122, 0.85284, 0.85311, 0.88844, 0.88844, 0.88844, 0.88844, 0.7306, 0.77452, 0.86331, 0.86128, 0.86128, 0.86128, 0.86128, 0.86128, 0.86128, 0.8693, 0.8457, 0.89464, 0.89464, 0.89464, 0.89464, 0.82601, 0.82601, 0.82601, 0.82601, 0.94469, 0.94469, 0.9482, 0.9482, 0.9482, 0.9482, 0.9482, 0.90747, 0.86651, 0.94469, 0.94469, 0.94469, 0.94469, 0.90527, 0.94469, 0.90527, 0.8675, 0.86128, 0.8675, 0.86128, 0.8675, 0.86128, 0.73834, 0.8457, 0.73834, 0.8457, 0.73834, 0.8457, 0.73834, 0.8457, 0.85193, 0.92454, 0.86477, 0.9921, 0.73206, 0.89464, 0.73206, 0.89464, 0.73206, 0.89464, 0.73206, 0.89464, 0.73206, 0.89464, 0.81105, 0.84636, 0.81105, 0.84636, 0.81105, 0.84636, 1, 1, 0.86275, 0.94469, 0.90872, 0.95786, 0.90685, 0.82601, 0.90685, 0.82601, 0.90685, 0.82601, 0.90685, 1.03297, 0.90685, 0.82601, 0.77741, 1.05611, 0.6377, 1.07692, 1, 1, 0.90918, 0.75593, 1.03297, 1, 1, 0.76032, 0.90452, 0.98156, 1.11842, 0.77261, 1.11429, 0.89385, 0.94469, 1, 1, 0.89385, 0.94469, 0.95877, 0.86901, 0.94469, 0.85122, 0.9482, 0.85122, 0.9482, 0.85122, 0.9482, 0.8667, 0.90016, 0.75186, 1.04692, 1, 1, 0.75186, 1.04692, 0.68887, 0.78223, 0.68887, 0.78223, 0.68887, 0.78223, 0.68887, 0.78223, 1, 1, 0.79776, 0.92188, 0.79776, 1.23023, 0.88844, 0.94469, 0.88844, 0.94469, 0.88844, 0.94469, 0.88844, 0.94469, 0.88844, 0.94469, 0.88844, 0.94469, 0.94258, 0.98986, 0.7306, 0.90527, 0.7306, 0.76659, 0.79004, 0.76659, 0.79004, 0.76659, 0.79004, 1.09231, 0.54873, 0.8675, 0.86128, 0.76318, 0.8693, 0.85311, 0.86651, 1, 1, 0.79776, 1.20562, 1.18622, 1.18622, 1, 1.1437, 0.67742, 0.96334, 0.93695, 1.35191, 1.40909, 0.95161, 1.48387, 0.86686, 0.90861, 0.62267, 0.74359, 0.65649, 0.85498, 0.56963, 0.88254, 1.23516, 0.8675, 0.81552, 0.75443, 0.84503, 0.73206, 0.76659, 0.86275, 0.85122, 0.90685, 0.77892, 0.85746, 1.02638, 0.89385, 0.75657, 0.85122, 0.86275, 0.77452, 0.74171, 0.79776, 0.7306, 0.95165, 0.77818, 0.89772, 0.88831, 0.90685, 0.7306, 0.98142, 1.02191, 0.96576, 1.23516, 0.99018, 0.98142, 0.9236, 0.89258, 0.94035, 1.02191, 0.78848, 0.96576, 0.9561, 1.23516, 0.90918, 0.92578, 0.95424, 0.89746, 0.83969, 0.9482, 0.80113, 0.89442, 0.85208, 0.86155, 0.98022, 0.99018, 1.00452, 0.81209, 0.99247, 0.89181, 1.23516, 0.99018, 0.9482, 0.99018, 0.89181, 0.73206, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.88844, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.89464, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.96766, 1, 1, 1, 1, 1, 1, 0.94258, 0.98986, 0.94258, 0.98986, 0.94258, 0.98986, 0.7306, 0.90527, 1, 1, 0.89552, 0.90527, 1, 0.90186, 1.12308, 1.12308, 1.12308, 1.12308, 1.2566, 1.2566, 1.2566, 0.89552, 0.89552, 1.42259, 0.69043, 1.03809, 1, 1, 1.0176, 1.0176, 1.11523, 1.4956, 2.01462, 0.99331, 0.82616, 0.91133, 0.84286, 0.91133, 1, 1, 1, 0.70508, 1, 1.23108, 0.79801, 0.84426, 0.84426, 0.774, 0.90527, 1.81055, 0.90527, 1.81055, 1.28809, 1.55469, 0.94434, 1.07806, 1, 0.97094, 0.7589, 0.85284, 0.90747, 1.19658, 0.69825, 0.97622, 1.33512, 0.90747, 0.90747, 0.85356, 0.90747, 0.90747, 1.44947, 0.85284, 0.8941, 0.8941, 0.70572, 0.8, 0.70572, 0.70572, 0.70572, 0.70572, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.99862, 0.99862, 1, 1, 1, 1, 1, 1.0336, 0.91027, 1, 1, 1, 0.99862, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.05859, 1.05859, 1, 1, 1, 1.07185, 0.99413, 0.96334, 1.08065, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.CalibriRegularFactors = CalibriRegularFactors; +const CalibriRegularMetrics = { + lineHeight: 1.2207, + lineGap: 0.2207 +}; +exports.CalibriRegularMetrics = CalibriRegularMetrics; + +/***/ }), +/* 53 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.HelveticaRegularMetrics = exports.HelveticaRegularFactors = exports.HelveticaItalicMetrics = exports.HelveticaItalicFactors = exports.HelveticaBoldMetrics = exports.HelveticaBoldItalicMetrics = exports.HelveticaBoldItalicFactors = exports.HelveticaBoldFactors = void 0; +const HelveticaBoldFactors = [0.76116, 1, 1, 1.0006, 0.99998, 0.99974, 0.99973, 0.99973, 0.99982, 0.99977, 1.00087, 0.99998, 0.99998, 0.99959, 1.00003, 1.0006, 0.99998, 1.0006, 1.0006, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99998, 1, 1.00003, 1.00003, 1.00003, 1.00026, 0.9999, 0.99977, 0.99977, 0.99977, 0.99977, 1.00001, 1.00026, 1.00022, 0.99977, 1.0006, 0.99973, 0.99977, 1.00026, 0.99999, 0.99977, 1.00022, 1.00001, 1.00022, 0.99977, 1.00001, 1.00026, 0.99977, 1.00001, 1.00016, 1.00001, 1.00001, 1.00026, 0.99998, 1.0006, 0.99998, 1.00003, 0.99973, 0.99998, 0.99973, 1.00026, 0.99973, 1.00026, 0.99973, 0.99998, 1.00026, 1.00026, 1.0006, 1.0006, 0.99973, 1.0006, 0.99982, 1.00026, 1.00026, 1.00026, 1.00026, 0.99959, 0.99973, 0.99998, 1.00026, 0.99973, 1.00022, 0.99973, 0.99973, 1, 0.99959, 1.00077, 0.99959, 1.00003, 0.99998, 0.99973, 0.99973, 0.99973, 0.99973, 1.00077, 0.99973, 0.99998, 1.00025, 0.99968, 0.99973, 1.00003, 1.00025, 0.60299, 1.00024, 1.06409, 1, 1, 0.99998, 1, 0.99973, 1.0006, 0.99998, 1, 0.99936, 0.99973, 1.00002, 1.00002, 1.00002, 1.00026, 0.99977, 0.99977, 0.99977, 0.99977, 0.99977, 0.99977, 1, 0.99977, 1.00001, 1.00001, 1.00001, 1.00001, 1.0006, 1.0006, 1.0006, 1.0006, 0.99977, 0.99977, 1.00022, 1.00022, 1.00022, 1.00022, 1.00022, 1.00003, 1.00022, 0.99977, 0.99977, 0.99977, 0.99977, 1.00001, 1.00001, 1.00026, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99982, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 1.0006, 1.0006, 1.0006, 1.0006, 1.00026, 1.00026, 1.00026, 1.00026, 1.00026, 1.00026, 1.00026, 1.06409, 1.00026, 1.00026, 1.00026, 1.00026, 1.00026, 0.99973, 1.00026, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 1.03374, 0.99977, 1.00026, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00022, 1.00026, 1.00022, 1.00026, 1.00022, 1.00026, 1.00022, 1.00026, 0.99977, 1.00026, 0.99977, 1.00026, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.00042, 0.99973, 0.99973, 1.0006, 0.99977, 0.99973, 0.99973, 1.00026, 1.0006, 1.00026, 1.0006, 1.00026, 1.03828, 1.00026, 0.99999, 1.00026, 1.0006, 0.99977, 1.00026, 0.99977, 1.00026, 0.99977, 1.00026, 0.9993, 0.9998, 1.00026, 1.00022, 1.00026, 1.00022, 1.00026, 1.00022, 1.00026, 1, 1.00016, 0.99977, 0.99959, 0.99977, 0.99959, 0.99977, 0.99959, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00026, 0.99998, 1.00026, 0.8121, 1.00026, 0.99998, 0.99977, 1.00026, 0.99977, 1.00026, 0.99977, 1.00026, 0.99977, 1.00026, 0.99977, 1.00026, 0.99977, 1.00026, 1.00016, 1.00022, 1.00001, 0.99973, 1.00001, 1.00026, 1, 1.00026, 1, 1.00026, 1, 1.0006, 0.99973, 0.99977, 0.99973, 1, 0.99982, 1.00022, 1.00026, 1.00001, 0.99973, 1.00026, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 1.00034, 0.99977, 1, 0.99997, 1.00026, 1.00078, 1.00036, 0.99973, 1.00013, 1.0006, 0.99977, 0.99977, 0.99988, 0.85148, 1.00001, 1.00026, 0.99977, 1.00022, 1.0006, 0.99977, 1.00001, 0.99999, 0.99977, 1.00069, 1.00022, 0.99977, 1.00001, 0.99984, 1.00026, 1.00001, 1.00024, 1.00001, 0.9999, 1, 1.0006, 1.00001, 1.00041, 0.99962, 1.00026, 1.0006, 0.99995, 1.00041, 0.99942, 0.99973, 0.99927, 1.00082, 0.99902, 1.00026, 1.00087, 1.0006, 1.00069, 0.99973, 0.99867, 0.99973, 0.9993, 1.00026, 1.00049, 1.00056, 1, 0.99988, 0.99935, 0.99995, 0.99954, 1.00055, 0.99945, 1.00032, 1.0006, 0.99995, 1.00026, 0.99995, 1.00032, 1.00001, 1.00008, 0.99971, 1.00019, 0.9994, 1.00001, 1.0006, 1.00044, 0.99973, 1.00023, 1.00047, 1, 0.99942, 0.99561, 0.99989, 1.00035, 0.99977, 1.00035, 0.99977, 1.00019, 0.99944, 1.00001, 1.00021, 0.99926, 1.00035, 1.00035, 0.99942, 1.00048, 0.99999, 0.99977, 1.00022, 1.00035, 1.00001, 0.99977, 1.00026, 0.99989, 1.00057, 1.00001, 0.99936, 1.00052, 1.00012, 0.99996, 1.00043, 1, 1.00035, 0.9994, 0.99976, 1.00035, 0.99973, 1.00052, 1.00041, 1.00119, 1.00037, 0.99973, 1.00002, 0.99986, 1.00041, 1.00041, 0.99902, 0.9996, 1.00034, 0.99999, 1.00026, 0.99999, 1.00026, 0.99973, 1.00052, 0.99973, 1, 0.99973, 1.00041, 1.00075, 0.9994, 1.0003, 0.99999, 1, 1.00041, 0.99955, 1, 0.99915, 0.99973, 0.99973, 1.00026, 1.00119, 0.99955, 0.99973, 1.0006, 0.99911, 1.0006, 1.00026, 0.99972, 1.00026, 0.99902, 1.00041, 0.99973, 0.99999, 1, 1, 1.00038, 1.0005, 1.00016, 1.00022, 1.00016, 1.00022, 1.00016, 1.00022, 1.00001, 0.99973, 1, 1, 0.99973, 1, 1, 0.99955, 1.0006, 1.0006, 1.0006, 1.0006, 1, 1, 1, 0.99973, 0.99973, 0.99972, 1, 1, 1.00106, 0.99999, 0.99998, 0.99998, 0.99999, 0.99998, 1.66475, 1, 0.99973, 0.99973, 1.00023, 0.99973, 0.99971, 1.00047, 1.00023, 1, 0.99991, 0.99984, 1.00002, 1.00002, 1.00002, 1.00002, 1, 1, 1, 1, 1, 1, 1, 0.99972, 1, 1.20985, 1.39713, 1.00003, 1.00031, 1.00015, 1, 0.99561, 1.00027, 1.00031, 1.00031, 0.99915, 1.00031, 1.00031, 0.99999, 1.00003, 0.99999, 0.99999, 1.41144, 1.6, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.40579, 1.40579, 1.36625, 0.99999, 1, 0.99861, 0.99861, 1, 1.00026, 1.00026, 1.00026, 1.00026, 0.99972, 0.99999, 0.99999, 0.99999, 0.99999, 1.40483, 1, 0.99977, 1.00054, 1, 1, 0.99953, 0.99962, 1.00042, 0.9995, 1, 1, 1, 1, 1, 1, 1, 1, 0.99998, 0.99998, 0.99998, 0.99998, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.HelveticaBoldFactors = HelveticaBoldFactors; +const HelveticaBoldMetrics = { + lineHeight: 1.2, + lineGap: 0.2 +}; +exports.HelveticaBoldMetrics = HelveticaBoldMetrics; +const HelveticaBoldItalicFactors = [0.76116, 1, 1, 1.0006, 0.99998, 0.99974, 0.99973, 0.99973, 0.99982, 0.99977, 1.00087, 0.99998, 0.99998, 0.99959, 1.00003, 1.0006, 0.99998, 1.0006, 1.0006, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99998, 1, 1.00003, 1.00003, 1.00003, 1.00026, 0.9999, 0.99977, 0.99977, 0.99977, 0.99977, 1.00001, 1.00026, 1.00022, 0.99977, 1.0006, 0.99973, 0.99977, 1.00026, 0.99999, 0.99977, 1.00022, 1.00001, 1.00022, 0.99977, 1.00001, 1.00026, 0.99977, 1.00001, 1.00016, 1.00001, 1.00001, 1.00026, 0.99998, 1.0006, 0.99998, 1.00003, 0.99973, 0.99998, 0.99973, 1.00026, 0.99973, 1.00026, 0.99973, 0.99998, 1.00026, 1.00026, 1.0006, 1.0006, 0.99973, 1.0006, 0.99982, 1.00026, 1.00026, 1.00026, 1.00026, 0.99959, 0.99973, 0.99998, 1.00026, 0.99973, 1.00022, 0.99973, 0.99973, 1, 0.99959, 1.00077, 0.99959, 1.00003, 0.99998, 0.99973, 0.99973, 0.99973, 0.99973, 1.00077, 0.99973, 0.99998, 1.00025, 0.99968, 0.99973, 1.00003, 1.00025, 0.60299, 1.00024, 1.06409, 1, 1, 0.99998, 1, 0.99973, 1.0006, 0.99998, 1, 0.99936, 0.99973, 1.00002, 1.00002, 1.00002, 1.00026, 0.99977, 0.99977, 0.99977, 0.99977, 0.99977, 0.99977, 1, 0.99977, 1.00001, 1.00001, 1.00001, 1.00001, 1.0006, 1.0006, 1.0006, 1.0006, 0.99977, 0.99977, 1.00022, 1.00022, 1.00022, 1.00022, 1.00022, 1.00003, 1.00022, 0.99977, 0.99977, 0.99977, 0.99977, 1.00001, 1.00001, 1.00026, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99982, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 1.0006, 1.0006, 1.0006, 1.0006, 1.00026, 1.00026, 1.00026, 1.00026, 1.00026, 1.00026, 1.00026, 1.06409, 1.00026, 1.00026, 1.00026, 1.00026, 1.00026, 0.99973, 1.00026, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 1.0044, 0.99977, 1.00026, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00022, 1.00026, 1.00022, 1.00026, 1.00022, 1.00026, 1.00022, 1.00026, 0.99977, 1.00026, 0.99977, 1.00026, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 0.99971, 0.99973, 0.99973, 1.0006, 0.99977, 0.99973, 0.99973, 1.00026, 1.0006, 1.00026, 1.0006, 1.00026, 1.01011, 1.00026, 0.99999, 1.00026, 1.0006, 0.99977, 1.00026, 0.99977, 1.00026, 0.99977, 1.00026, 0.9993, 0.9998, 1.00026, 1.00022, 1.00026, 1.00022, 1.00026, 1.00022, 1.00026, 1, 1.00016, 0.99977, 0.99959, 0.99977, 0.99959, 0.99977, 0.99959, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00026, 0.99998, 1.00026, 0.8121, 1.00026, 0.99998, 0.99977, 1.00026, 0.99977, 1.00026, 0.99977, 1.00026, 0.99977, 1.00026, 0.99977, 1.00026, 0.99977, 1.00026, 1.00016, 1.00022, 1.00001, 0.99973, 1.00001, 1.00026, 1, 1.00026, 1, 1.00026, 1, 1.0006, 0.99973, 0.99977, 0.99973, 1, 0.99982, 1.00022, 1.00026, 1.00001, 0.99973, 1.00026, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99977, 1, 1, 1.00026, 0.99969, 0.99972, 0.99981, 0.9998, 1.0006, 0.99977, 0.99977, 1.00022, 0.91155, 1.00001, 1.00026, 0.99977, 1.00022, 1.0006, 0.99977, 1.00001, 0.99999, 0.99977, 0.99966, 1.00022, 1.00032, 1.00001, 0.99944, 1.00026, 1.00001, 0.99968, 1.00001, 1.00047, 1, 1.0006, 1.00001, 0.99981, 1.00101, 1.00026, 1.0006, 0.99948, 0.99981, 1.00064, 0.99973, 0.99942, 1.00101, 1.00061, 1.00026, 1.00069, 1.0006, 1.00014, 0.99973, 1.01322, 0.99973, 1.00065, 1.00026, 1.00012, 0.99923, 1, 1.00064, 1.00076, 0.99948, 1.00055, 1.00063, 1.00007, 0.99943, 1.0006, 0.99948, 1.00026, 0.99948, 0.99943, 1.00001, 1.00001, 1.00029, 1.00038, 1.00035, 1.00001, 1.0006, 1.0006, 0.99973, 0.99978, 1.00001, 1.00057, 0.99989, 0.99967, 0.99964, 0.99967, 0.99977, 0.99999, 0.99977, 1.00038, 0.99977, 1.00001, 0.99973, 1.00066, 0.99967, 0.99967, 1.00041, 0.99998, 0.99999, 0.99977, 1.00022, 0.99967, 1.00001, 0.99977, 1.00026, 0.99964, 1.00031, 1.00001, 0.99999, 0.99999, 1, 1.00023, 1, 1, 0.99999, 1.00035, 1.00001, 0.99999, 0.99973, 0.99977, 0.99999, 1.00058, 0.99973, 0.99973, 0.99955, 0.9995, 1.00026, 1.00026, 1.00032, 0.99989, 1.00034, 0.99999, 1.00026, 1.00026, 1.00026, 0.99973, 0.45998, 0.99973, 1.00026, 0.99973, 1.00001, 0.99999, 0.99982, 0.99994, 0.99996, 1, 1.00042, 1.00044, 1.00029, 1.00023, 0.99973, 0.99973, 1.00026, 0.99949, 1.00002, 0.99973, 1.0006, 1.0006, 1.0006, 0.99975, 1.00026, 1.00026, 1.00032, 0.98685, 0.99973, 1.00026, 1, 1, 0.99966, 1.00044, 1.00016, 1.00022, 1.00016, 1.00022, 1.00016, 1.00022, 1.00001, 0.99973, 1, 1, 0.99973, 1, 1, 0.99955, 1.0006, 1.0006, 1.0006, 1.0006, 1, 1, 1, 0.99973, 0.99973, 0.99972, 1, 1, 1.00106, 0.99999, 0.99998, 0.99998, 0.99999, 0.99998, 1.66475, 1, 0.99973, 0.99973, 1, 0.99973, 0.99971, 0.99978, 1, 1, 0.99991, 0.99984, 1.00002, 1.00002, 1.00002, 1.00002, 1.00098, 1, 1, 1, 1.00049, 1, 1, 0.99972, 1, 1.20985, 1.39713, 1.00003, 1.00031, 1.00015, 1, 0.99561, 1.00027, 1.00031, 1.00031, 0.99915, 1.00031, 1.00031, 0.99999, 1.00003, 0.99999, 0.99999, 1.41144, 1.6, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.40579, 1.40579, 1.36625, 0.99999, 1, 0.99861, 0.99861, 1, 1.00026, 1.00026, 1.00026, 1.00026, 0.99972, 0.99999, 0.99999, 0.99999, 0.99999, 1.40483, 1, 0.99977, 1.00054, 1, 1, 0.99953, 0.99962, 1.00042, 0.9995, 1, 1, 1, 1, 1, 1, 1, 1, 0.99998, 0.99998, 0.99998, 0.99998, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.HelveticaBoldItalicFactors = HelveticaBoldItalicFactors; +const HelveticaBoldItalicMetrics = { + lineHeight: 1.35, + lineGap: 0.2 +}; +exports.HelveticaBoldItalicMetrics = HelveticaBoldItalicMetrics; +const HelveticaItalicFactors = [0.76116, 1, 1, 1.0006, 1.0006, 1.00006, 0.99973, 0.99973, 0.99982, 1.00001, 1.00043, 0.99998, 0.99998, 0.99959, 1.00003, 1.0006, 0.99998, 1.0006, 1.0006, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 1.0006, 1, 1.00003, 1.00003, 1.00003, 0.99973, 0.99987, 1.00001, 1.00001, 0.99977, 0.99977, 1.00001, 1.00026, 1.00022, 0.99977, 1.0006, 1, 1.00001, 0.99973, 0.99999, 0.99977, 1.00022, 1.00001, 1.00022, 0.99977, 1.00001, 1.00026, 0.99977, 1.00001, 1.00016, 1.00001, 1.00001, 1.00026, 1.0006, 1.0006, 1.0006, 0.99949, 0.99973, 0.99998, 0.99973, 0.99973, 1, 0.99973, 0.99973, 1.0006, 0.99973, 0.99973, 0.99924, 0.99924, 1, 0.99924, 0.99999, 0.99973, 0.99973, 0.99973, 0.99973, 0.99998, 1, 1.0006, 0.99973, 1, 0.99977, 1, 1, 1, 1.00005, 1.0009, 1.00005, 1.00003, 0.99998, 0.99973, 0.99973, 0.99973, 0.99973, 1.0009, 0.99973, 0.99998, 1.00025, 0.99968, 0.99973, 1.00003, 1.00025, 0.60299, 1.00024, 1.06409, 1, 1, 0.99998, 1, 0.9998, 1.0006, 0.99998, 1, 0.99936, 0.99973, 1.00002, 1.00002, 1.00002, 1.00026, 1.00001, 1.00001, 1.00001, 1.00001, 1.00001, 1.00001, 1, 0.99977, 1.00001, 1.00001, 1.00001, 1.00001, 1.0006, 1.0006, 1.0006, 1.0006, 0.99977, 0.99977, 1.00022, 1.00022, 1.00022, 1.00022, 1.00022, 1.00003, 1.00022, 0.99977, 0.99977, 0.99977, 0.99977, 1.00001, 1.00001, 1.00026, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99982, 1, 0.99973, 0.99973, 0.99973, 0.99973, 1.0006, 1.0006, 1.0006, 1.0006, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 1.06409, 1.00026, 0.99973, 0.99973, 0.99973, 0.99973, 1, 0.99973, 1, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 0.99977, 1, 0.99977, 1, 0.99977, 1, 0.99977, 1, 0.99977, 1.0288, 0.99977, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00022, 0.99973, 1.00022, 0.99973, 1.00022, 0.99973, 1.00022, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 0.99924, 1.0006, 1.0006, 0.99946, 1.00034, 1, 0.99924, 1.00001, 1, 1, 0.99973, 0.99924, 0.99973, 0.99924, 0.99973, 1.06311, 0.99973, 1.00024, 0.99973, 0.99924, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 1.00041, 0.9998, 0.99973, 1.00022, 0.99973, 1.00022, 0.99973, 1.00022, 0.99973, 1, 1.00016, 0.99977, 0.99998, 0.99977, 0.99998, 0.99977, 0.99998, 1.00001, 1, 1.00001, 1, 1.00001, 1, 1.00001, 1, 1.00026, 1.0006, 1.00026, 0.89547, 1.00026, 1.0006, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 1.00016, 0.99977, 1.00001, 1, 1.00001, 1.00026, 1, 1.00026, 1, 1.00026, 1, 0.99924, 0.99973, 1.00001, 0.99973, 1, 0.99982, 1.00022, 1.00026, 1.00001, 1, 1.00026, 1.0006, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 1.00001, 1, 1.00054, 0.99977, 1.00084, 1.00007, 0.99973, 1.00013, 0.99924, 1.00001, 1.00001, 0.99945, 0.91221, 1.00001, 1.00026, 0.99977, 1.00022, 1.0006, 1.00001, 1.00001, 0.99999, 0.99977, 0.99933, 1.00022, 1.00054, 1.00001, 1.00065, 1.00026, 1.00001, 1.0001, 1.00001, 1.00052, 1, 1.0006, 1.00001, 0.99945, 0.99897, 0.99968, 0.99924, 1.00036, 0.99945, 0.99949, 1, 1.0006, 0.99897, 0.99918, 0.99968, 0.99911, 0.99924, 1, 0.99962, 1.01487, 1, 1.0005, 0.99973, 1.00012, 1.00043, 1, 0.99995, 0.99994, 1.00036, 0.99947, 1.00019, 1.00063, 1.00025, 0.99924, 1.00036, 0.99973, 1.00036, 1.00025, 1.00001, 1.00001, 1.00027, 1.0001, 1.00068, 1.00001, 1.0006, 1.0006, 1, 1.00008, 0.99957, 0.99972, 0.9994, 0.99954, 0.99975, 1.00051, 1.00001, 1.00019, 1.00001, 1.0001, 0.99986, 1.00001, 1.00001, 1.00038, 0.99954, 0.99954, 0.9994, 1.00066, 0.99999, 0.99977, 1.00022, 1.00054, 1.00001, 0.99977, 1.00026, 0.99975, 1.0001, 1.00001, 0.99993, 0.9995, 0.99955, 1.00016, 0.99978, 0.99974, 1.00019, 1.00022, 0.99955, 1.00053, 0.99973, 1.00089, 1.00005, 0.99967, 1.00048, 0.99973, 1.00002, 1.00034, 0.99973, 0.99973, 0.99964, 1.00006, 1.00066, 0.99947, 0.99973, 0.98894, 0.99973, 1, 0.44898, 1, 0.99946, 1, 1.00039, 1.00082, 0.99991, 0.99991, 0.99985, 1.00022, 1.00023, 1.00061, 1.00006, 0.99966, 0.99973, 0.99973, 0.99973, 1.00019, 1.0008, 1, 0.99924, 0.99924, 0.99924, 0.99983, 1.00044, 0.99973, 0.99964, 0.98332, 1, 0.99973, 1, 1, 0.99962, 0.99895, 1.00016, 0.99977, 1.00016, 0.99977, 1.00016, 0.99977, 1.00001, 1, 1, 1, 0.99973, 1, 1, 0.99955, 0.99924, 0.99924, 0.99924, 0.99924, 0.99998, 0.99998, 0.99998, 0.99973, 0.99973, 0.99972, 1, 1, 1.00267, 0.99999, 0.99998, 0.99998, 1, 0.99998, 1.66475, 1, 0.99973, 0.99973, 1.00023, 0.99973, 1.00423, 0.99925, 0.99999, 1, 0.99991, 0.99984, 1.00002, 1.00002, 1.00002, 1.00002, 1.00049, 1, 1.00245, 1, 1, 1, 1, 0.96329, 1, 1.20985, 1.39713, 1.00003, 0.8254, 1.00015, 1, 1.00035, 1.00027, 1.00031, 1.00031, 1.00003, 1.00031, 1.00031, 0.99999, 1.00003, 0.99999, 0.99999, 1.41144, 1.6, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.40579, 1.40579, 1.36625, 0.99999, 1, 0.99861, 0.99861, 1, 1.00026, 1.00026, 1.00026, 1.00026, 0.95317, 0.99999, 0.99999, 0.99999, 0.99999, 1.40483, 1, 0.99977, 1.00054, 1, 1, 0.99953, 0.99962, 1.00042, 0.9995, 1, 1, 1, 1, 1, 1, 1, 1, 0.99998, 0.99998, 0.99998, 0.99998, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.HelveticaItalicFactors = HelveticaItalicFactors; +const HelveticaItalicMetrics = { + lineHeight: 1.35, + lineGap: 0.2 +}; +exports.HelveticaItalicMetrics = HelveticaItalicMetrics; +const HelveticaRegularFactors = [0.76116, 1, 1, 1.0006, 1.0006, 1.00006, 0.99973, 0.99973, 0.99982, 1.00001, 1.00043, 0.99998, 0.99998, 0.99959, 1.00003, 1.0006, 0.99998, 1.0006, 1.0006, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 1.0006, 1, 1.00003, 1.00003, 1.00003, 0.99973, 0.99987, 1.00001, 1.00001, 0.99977, 0.99977, 1.00001, 1.00026, 1.00022, 0.99977, 1.0006, 1, 1.00001, 0.99973, 0.99999, 0.99977, 1.00022, 1.00001, 1.00022, 0.99977, 1.00001, 1.00026, 0.99977, 1.00001, 1.00016, 1.00001, 1.00001, 1.00026, 1.0006, 1.0006, 1.0006, 0.99949, 0.99973, 0.99998, 0.99973, 0.99973, 1, 0.99973, 0.99973, 1.0006, 0.99973, 0.99973, 0.99924, 0.99924, 1, 0.99924, 0.99999, 0.99973, 0.99973, 0.99973, 0.99973, 0.99998, 1, 1.0006, 0.99973, 1, 0.99977, 1, 1, 1, 1.00005, 1.0009, 1.00005, 1.00003, 0.99998, 0.99973, 0.99973, 0.99973, 0.99973, 1.0009, 0.99973, 0.99998, 1.00025, 0.99968, 0.99973, 1.00003, 1.00025, 0.60299, 1.00024, 1.06409, 1, 1, 0.99998, 1, 0.9998, 1.0006, 0.99998, 1, 0.99936, 0.99973, 1.00002, 1.00002, 1.00002, 1.00026, 1.00001, 1.00001, 1.00001, 1.00001, 1.00001, 1.00001, 1, 0.99977, 1.00001, 1.00001, 1.00001, 1.00001, 1.0006, 1.0006, 1.0006, 1.0006, 0.99977, 0.99977, 1.00022, 1.00022, 1.00022, 1.00022, 1.00022, 1.00003, 1.00022, 0.99977, 0.99977, 0.99977, 0.99977, 1.00001, 1.00001, 1.00026, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99982, 1, 0.99973, 0.99973, 0.99973, 0.99973, 1.0006, 1.0006, 1.0006, 1.0006, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 0.99973, 1.06409, 1.00026, 0.99973, 0.99973, 0.99973, 0.99973, 1, 0.99973, 1, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 0.99977, 1, 0.99977, 1, 0.99977, 1, 0.99977, 1, 0.99977, 1.04596, 0.99977, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00001, 0.99973, 1.00022, 0.99973, 1.00022, 0.99973, 1.00022, 0.99973, 1.00022, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 1.0006, 0.99924, 1.0006, 1.0006, 1.00019, 1.00034, 1, 0.99924, 1.00001, 1, 1, 0.99973, 0.99924, 0.99973, 0.99924, 0.99973, 1.02572, 0.99973, 1.00005, 0.99973, 0.99924, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99999, 0.9998, 0.99973, 1.00022, 0.99973, 1.00022, 0.99973, 1.00022, 0.99973, 1, 1.00016, 0.99977, 0.99998, 0.99977, 0.99998, 0.99977, 0.99998, 1.00001, 1, 1.00001, 1, 1.00001, 1, 1.00001, 1, 1.00026, 1.0006, 1.00026, 0.84533, 1.00026, 1.0006, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 0.99977, 0.99973, 1.00016, 0.99977, 1.00001, 1, 1.00001, 1.00026, 1, 1.00026, 1, 1.00026, 1, 0.99924, 0.99973, 1.00001, 0.99973, 1, 0.99982, 1.00022, 1.00026, 1.00001, 1, 1.00026, 1.0006, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99998, 0.99928, 1, 0.99977, 1.00013, 1.00055, 0.99947, 0.99945, 0.99941, 0.99924, 1.00001, 1.00001, 1.0004, 0.91621, 1.00001, 1.00026, 0.99977, 1.00022, 1.0006, 1.00001, 1.00005, 0.99999, 0.99977, 1.00015, 1.00022, 0.99977, 1.00001, 0.99973, 1.00026, 1.00001, 1.00019, 1.00001, 0.99946, 1, 1.0006, 1.00001, 0.99978, 1.00045, 0.99973, 0.99924, 1.00023, 0.99978, 0.99966, 1, 1.00065, 1.00045, 1.00019, 0.99973, 0.99973, 0.99924, 1, 1, 0.96499, 1, 1.00055, 0.99973, 1.00008, 1.00027, 1, 0.9997, 0.99995, 1.00023, 0.99933, 1.00019, 1.00015, 1.00031, 0.99924, 1.00023, 0.99973, 1.00023, 1.00031, 1.00001, 0.99928, 1.00029, 1.00092, 1.00035, 1.00001, 1.0006, 1.0006, 1, 0.99988, 0.99975, 1, 1.00082, 0.99561, 0.9996, 1.00035, 1.00001, 0.99962, 1.00001, 1.00092, 0.99964, 1.00001, 0.99963, 0.99999, 1.00035, 1.00035, 1.00082, 0.99962, 0.99999, 0.99977, 1.00022, 1.00035, 1.00001, 0.99977, 1.00026, 0.9996, 0.99967, 1.00001, 1.00034, 1.00074, 1.00054, 1.00053, 1.00063, 0.99971, 0.99962, 1.00035, 0.99975, 0.99977, 0.99973, 1.00043, 0.99953, 1.0007, 0.99915, 0.99973, 1.00008, 0.99892, 1.00073, 1.00073, 1.00114, 0.99915, 1.00073, 0.99955, 0.99973, 1.00092, 0.99973, 1, 0.99998, 1, 1.0003, 1, 1.00043, 1.00001, 0.99969, 1.0003, 1, 1.00035, 1.00001, 0.9995, 1, 1.00092, 0.99973, 0.99973, 0.99973, 1.0007, 0.9995, 1, 0.99924, 1.0006, 0.99924, 0.99972, 1.00062, 0.99973, 1.00114, 1.00073, 1, 0.99955, 1, 1, 1.00047, 0.99968, 1.00016, 0.99977, 1.00016, 0.99977, 1.00016, 0.99977, 1.00001, 1, 1, 1, 0.99973, 1, 1, 0.99955, 0.99924, 0.99924, 0.99924, 0.99924, 0.99998, 0.99998, 0.99998, 0.99973, 0.99973, 0.99972, 1, 1, 1.00267, 0.99999, 0.99998, 0.99998, 1, 0.99998, 1.66475, 1, 0.99973, 0.99973, 1.00023, 0.99973, 0.99971, 0.99925, 1.00023, 1, 0.99991, 0.99984, 1.00002, 1.00002, 1.00002, 1.00002, 1, 1, 1, 1, 1, 1, 1, 0.96329, 1, 1.20985, 1.39713, 1.00003, 0.8254, 1.00015, 1, 1.00035, 1.00027, 1.00031, 1.00031, 0.99915, 1.00031, 1.00031, 0.99999, 1.00003, 0.99999, 0.99999, 1.41144, 1.6, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.41144, 1.40579, 1.40579, 1.36625, 0.99999, 1, 0.99861, 0.99861, 1, 1.00026, 1.00026, 1.00026, 1.00026, 0.95317, 0.99999, 0.99999, 0.99999, 0.99999, 1.40483, 1, 0.99977, 1.00054, 1, 1, 0.99953, 0.99962, 1.00042, 0.9995, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.HelveticaRegularFactors = HelveticaRegularFactors; +const HelveticaRegularMetrics = { + lineHeight: 1.2, + lineGap: 0.2 +}; +exports.HelveticaRegularMetrics = HelveticaRegularMetrics; + +/***/ }), +/* 54 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.LiberationSansRegularWidths = exports.LiberationSansRegularMapping = exports.LiberationSansItalicWidths = exports.LiberationSansItalicMapping = exports.LiberationSansBoldWidths = exports.LiberationSansBoldMapping = exports.LiberationSansBoldItalicWidths = exports.LiberationSansBoldItalicMapping = void 0; +const LiberationSansBoldWidths = [365, 0, 333, 278, 333, 474, 556, 556, 889, 722, 238, 333, 333, 389, 584, 278, 333, 278, 278, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 333, 333, 584, 584, 584, 611, 975, 722, 722, 722, 722, 667, 611, 778, 722, 278, 556, 722, 611, 833, 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667, 667, 611, 333, 278, 333, 584, 556, 333, 556, 611, 556, 611, 556, 333, 611, 611, 278, 278, 556, 278, 889, 611, 611, 611, 611, 389, 556, 333, 611, 556, 778, 556, 556, 500, 389, 280, 389, 584, 333, 556, 556, 556, 556, 280, 556, 333, 737, 370, 556, 584, 737, 552, 400, 549, 333, 333, 333, 576, 556, 278, 333, 333, 365, 556, 834, 834, 834, 611, 722, 722, 722, 722, 722, 722, 1000, 722, 667, 667, 667, 667, 278, 278, 278, 278, 722, 722, 778, 778, 778, 778, 778, 584, 778, 722, 722, 722, 722, 667, 667, 611, 556, 556, 556, 556, 556, 556, 889, 556, 556, 556, 556, 556, 278, 278, 278, 278, 611, 611, 611, 611, 611, 611, 611, 549, 611, 611, 611, 611, 611, 556, 611, 556, 722, 556, 722, 556, 722, 556, 722, 556, 722, 556, 722, 556, 722, 556, 722, 719, 722, 611, 667, 556, 667, 556, 667, 556, 667, 556, 667, 556, 778, 611, 778, 611, 778, 611, 778, 611, 722, 611, 722, 611, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 785, 556, 556, 278, 722, 556, 556, 611, 278, 611, 278, 611, 385, 611, 479, 611, 278, 722, 611, 722, 611, 722, 611, 708, 723, 611, 778, 611, 778, 611, 778, 611, 1000, 944, 722, 389, 722, 389, 722, 389, 667, 556, 667, 556, 667, 556, 667, 556, 611, 333, 611, 479, 611, 333, 722, 611, 722, 611, 722, 611, 722, 611, 722, 611, 722, 611, 944, 778, 667, 556, 667, 611, 500, 611, 500, 611, 500, 278, 556, 722, 556, 1000, 889, 778, 611, 667, 556, 611, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 465, 722, 333, 853, 906, 474, 825, 927, 838, 278, 722, 722, 601, 719, 667, 611, 722, 778, 278, 722, 667, 833, 722, 644, 778, 722, 667, 600, 611, 667, 821, 667, 809, 802, 278, 667, 615, 451, 611, 278, 582, 615, 610, 556, 606, 475, 460, 611, 541, 278, 558, 556, 612, 556, 445, 611, 766, 619, 520, 684, 446, 582, 715, 576, 753, 845, 278, 582, 611, 582, 845, 667, 669, 885, 567, 711, 667, 278, 276, 556, 1094, 1062, 875, 610, 722, 622, 719, 722, 719, 722, 567, 712, 667, 904, 626, 719, 719, 610, 702, 833, 722, 778, 719, 667, 722, 611, 622, 854, 667, 730, 703, 1005, 1019, 870, 979, 719, 711, 1031, 719, 556, 618, 615, 417, 635, 556, 709, 497, 615, 615, 500, 635, 740, 604, 611, 604, 611, 556, 490, 556, 875, 556, 615, 581, 833, 844, 729, 854, 615, 552, 854, 583, 556, 556, 611, 417, 552, 556, 278, 281, 278, 969, 906, 611, 500, 615, 556, 604, 778, 611, 487, 447, 944, 778, 944, 778, 944, 778, 667, 556, 333, 333, 556, 1000, 1000, 552, 278, 278, 278, 278, 500, 500, 500, 556, 556, 350, 1000, 1000, 240, 479, 333, 333, 604, 333, 167, 396, 556, 556, 1094, 556, 885, 489, 1115, 1000, 768, 600, 834, 834, 834, 834, 1000, 500, 1000, 500, 1000, 500, 500, 494, 612, 823, 713, 584, 549, 713, 979, 722, 274, 549, 549, 583, 549, 549, 604, 584, 604, 604, 708, 625, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 729, 604, 604, 354, 354, 1000, 990, 990, 990, 990, 494, 604, 604, 604, 604, 354, 1021, 1052, 917, 750, 750, 531, 656, 594, 510, 500, 750, 750, 611, 611, 333, 333, 333, 333, 333, 333, 333, 333, 222, 222, 333, 333, 333, 333, 333, 333, 333, 333]; +exports.LiberationSansBoldWidths = LiberationSansBoldWidths; +const LiberationSansBoldMapping = [-1, -1, -1, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 402, 506, 507, 508, 509, 510, 511, 536, 537, 538, 539, 710, 711, 713, 728, 729, 730, 731, 732, 733, 900, 901, 902, 903, 904, 905, 906, 908, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1138, 1139, 1168, 1169, 7808, 7809, 7810, 7811, 7812, 7813, 7922, 7923, 8208, 8209, 8211, 8212, 8213, 8215, 8216, 8217, 8218, 8219, 8220, 8221, 8222, 8224, 8225, 8226, 8230, 8240, 8242, 8243, 8249, 8250, 8252, 8254, 8260, 8319, 8355, 8356, 8359, 8364, 8453, 8467, 8470, 8482, 8486, 8494, 8539, 8540, 8541, 8542, 8592, 8593, 8594, 8595, 8596, 8597, 8616, 8706, 8710, 8719, 8721, 8722, 8730, 8734, 8735, 8745, 8747, 8776, 8800, 8801, 8804, 8805, 8962, 8976, 8992, 8993, 9472, 9474, 9484, 9488, 9492, 9496, 9500, 9508, 9516, 9524, 9532, 9552, 9553, 9554, 9555, 9556, 9557, 9558, 9559, 9560, 9561, 9562, 9563, 9564, 9565, 9566, 9567, 9568, 9569, 9570, 9571, 9572, 9573, 9574, 9575, 9576, 9577, 9578, 9579, 9580, 9600, 9604, 9608, 9612, 9616, 9617, 9618, 9619, 9632, 9633, 9642, 9643, 9644, 9650, 9658, 9660, 9668, 9674, 9675, 9679, 9688, 9689, 9702, 9786, 9787, 9788, 9792, 9794, 9824, 9827, 9829, 9830, 9834, 9835, 9836, 61441, 61442, 61445, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]; +exports.LiberationSansBoldMapping = LiberationSansBoldMapping; +const LiberationSansBoldItalicWidths = [365, 0, 333, 278, 333, 474, 556, 556, 889, 722, 238, 333, 333, 389, 584, 278, 333, 278, 278, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 333, 333, 584, 584, 584, 611, 975, 722, 722, 722, 722, 667, 611, 778, 722, 278, 556, 722, 611, 833, 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667, 667, 611, 333, 278, 333, 584, 556, 333, 556, 611, 556, 611, 556, 333, 611, 611, 278, 278, 556, 278, 889, 611, 611, 611, 611, 389, 556, 333, 611, 556, 778, 556, 556, 500, 389, 280, 389, 584, 333, 556, 556, 556, 556, 280, 556, 333, 737, 370, 556, 584, 737, 552, 400, 549, 333, 333, 333, 576, 556, 278, 333, 333, 365, 556, 834, 834, 834, 611, 722, 722, 722, 722, 722, 722, 1000, 722, 667, 667, 667, 667, 278, 278, 278, 278, 722, 722, 778, 778, 778, 778, 778, 584, 778, 722, 722, 722, 722, 667, 667, 611, 556, 556, 556, 556, 556, 556, 889, 556, 556, 556, 556, 556, 278, 278, 278, 278, 611, 611, 611, 611, 611, 611, 611, 549, 611, 611, 611, 611, 611, 556, 611, 556, 722, 556, 722, 556, 722, 556, 722, 556, 722, 556, 722, 556, 722, 556, 722, 740, 722, 611, 667, 556, 667, 556, 667, 556, 667, 556, 667, 556, 778, 611, 778, 611, 778, 611, 778, 611, 722, 611, 722, 611, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 782, 556, 556, 278, 722, 556, 556, 611, 278, 611, 278, 611, 396, 611, 479, 611, 278, 722, 611, 722, 611, 722, 611, 708, 723, 611, 778, 611, 778, 611, 778, 611, 1000, 944, 722, 389, 722, 389, 722, 389, 667, 556, 667, 556, 667, 556, 667, 556, 611, 333, 611, 479, 611, 333, 722, 611, 722, 611, 722, 611, 722, 611, 722, 611, 722, 611, 944, 778, 667, 556, 667, 611, 500, 611, 500, 611, 500, 278, 556, 722, 556, 1000, 889, 778, 611, 667, 556, 611, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 722, 333, 854, 906, 473, 844, 930, 847, 278, 722, 722, 610, 671, 667, 611, 722, 778, 278, 722, 667, 833, 722, 657, 778, 718, 667, 590, 611, 667, 822, 667, 829, 781, 278, 667, 620, 479, 611, 278, 591, 620, 621, 556, 610, 479, 492, 611, 558, 278, 566, 556, 603, 556, 450, 611, 712, 605, 532, 664, 409, 591, 704, 578, 773, 834, 278, 591, 611, 591, 834, 667, 667, 886, 614, 719, 667, 278, 278, 556, 1094, 1042, 854, 622, 719, 677, 719, 722, 708, 722, 614, 722, 667, 927, 643, 719, 719, 615, 687, 833, 722, 778, 719, 667, 722, 611, 677, 781, 667, 729, 708, 979, 989, 854, 1000, 708, 719, 1042, 729, 556, 619, 604, 534, 618, 556, 736, 510, 611, 611, 507, 622, 740, 604, 611, 611, 611, 556, 889, 556, 885, 556, 646, 583, 889, 935, 707, 854, 594, 552, 865, 589, 556, 556, 611, 469, 563, 556, 278, 278, 278, 969, 906, 611, 507, 619, 556, 611, 778, 611, 575, 467, 944, 778, 944, 778, 944, 778, 667, 556, 333, 333, 556, 1000, 1000, 552, 278, 278, 278, 278, 500, 500, 500, 556, 556, 350, 1000, 1000, 240, 479, 333, 333, 604, 333, 167, 396, 556, 556, 1104, 556, 885, 516, 1146, 1000, 768, 600, 834, 834, 834, 834, 999, 500, 1000, 500, 1000, 500, 500, 494, 612, 823, 713, 584, 549, 713, 979, 722, 274, 549, 549, 583, 549, 549, 604, 584, 604, 604, 708, 625, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 729, 604, 604, 354, 354, 1000, 990, 990, 990, 990, 494, 604, 604, 604, 604, 354, 1021, 1052, 917, 750, 750, 531, 656, 594, 510, 500, 750, 750, 611, 611, 333, 333, 333, 333, 333, 333, 333, 333, 222, 222, 333, 333, 333, 333, 333, 333, 333, 333]; +exports.LiberationSansBoldItalicWidths = LiberationSansBoldItalicWidths; +const LiberationSansBoldItalicMapping = [-1, -1, -1, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 402, 506, 507, 508, 509, 510, 511, 536, 537, 538, 539, 710, 711, 713, 728, 729, 730, 731, 732, 733, 900, 901, 902, 903, 904, 905, 906, 908, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1138, 1139, 1168, 1169, 7808, 7809, 7810, 7811, 7812, 7813, 7922, 7923, 8208, 8209, 8211, 8212, 8213, 8215, 8216, 8217, 8218, 8219, 8220, 8221, 8222, 8224, 8225, 8226, 8230, 8240, 8242, 8243, 8249, 8250, 8252, 8254, 8260, 8319, 8355, 8356, 8359, 8364, 8453, 8467, 8470, 8482, 8486, 8494, 8539, 8540, 8541, 8542, 8592, 8593, 8594, 8595, 8596, 8597, 8616, 8706, 8710, 8719, 8721, 8722, 8730, 8734, 8735, 8745, 8747, 8776, 8800, 8801, 8804, 8805, 8962, 8976, 8992, 8993, 9472, 9474, 9484, 9488, 9492, 9496, 9500, 9508, 9516, 9524, 9532, 9552, 9553, 9554, 9555, 9556, 9557, 9558, 9559, 9560, 9561, 9562, 9563, 9564, 9565, 9566, 9567, 9568, 9569, 9570, 9571, 9572, 9573, 9574, 9575, 9576, 9577, 9578, 9579, 9580, 9600, 9604, 9608, 9612, 9616, 9617, 9618, 9619, 9632, 9633, 9642, 9643, 9644, 9650, 9658, 9660, 9668, 9674, 9675, 9679, 9688, 9689, 9702, 9786, 9787, 9788, 9792, 9794, 9824, 9827, 9829, 9830, 9834, 9835, 9836, 61441, 61442, 61445, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]; +exports.LiberationSansBoldItalicMapping = LiberationSansBoldItalicMapping; +const LiberationSansItalicWidths = [365, 0, 333, 278, 278, 355, 556, 556, 889, 667, 191, 333, 333, 389, 584, 278, 333, 278, 278, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 278, 278, 584, 584, 584, 556, 1015, 667, 667, 722, 722, 667, 611, 778, 722, 278, 500, 667, 556, 833, 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667, 667, 611, 278, 278, 278, 469, 556, 333, 556, 556, 500, 556, 556, 278, 556, 556, 222, 222, 500, 222, 833, 556, 556, 556, 556, 333, 500, 278, 556, 500, 722, 500, 500, 500, 334, 260, 334, 584, 333, 556, 556, 556, 556, 260, 556, 333, 737, 370, 556, 584, 737, 552, 400, 549, 333, 333, 333, 576, 537, 278, 333, 333, 365, 556, 834, 834, 834, 611, 667, 667, 667, 667, 667, 667, 1000, 722, 667, 667, 667, 667, 278, 278, 278, 278, 722, 722, 778, 778, 778, 778, 778, 584, 778, 722, 722, 722, 722, 667, 667, 611, 556, 556, 556, 556, 556, 556, 889, 500, 556, 556, 556, 556, 278, 278, 278, 278, 556, 556, 556, 556, 556, 556, 556, 549, 611, 556, 556, 556, 556, 500, 556, 500, 667, 556, 667, 556, 667, 556, 722, 500, 722, 500, 722, 500, 722, 500, 722, 625, 722, 556, 667, 556, 667, 556, 667, 556, 667, 556, 667, 556, 778, 556, 778, 556, 778, 556, 778, 556, 722, 556, 722, 556, 278, 278, 278, 278, 278, 278, 278, 222, 278, 278, 733, 444, 500, 222, 667, 500, 500, 556, 222, 556, 222, 556, 281, 556, 400, 556, 222, 722, 556, 722, 556, 722, 556, 615, 723, 556, 778, 556, 778, 556, 778, 556, 1000, 944, 722, 333, 722, 333, 722, 333, 667, 500, 667, 500, 667, 500, 667, 500, 611, 278, 611, 354, 611, 278, 722, 556, 722, 556, 722, 556, 722, 556, 722, 556, 722, 556, 944, 722, 667, 500, 667, 611, 500, 611, 500, 611, 500, 222, 556, 667, 556, 1000, 889, 778, 611, 667, 500, 611, 278, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 667, 278, 789, 846, 389, 794, 865, 775, 222, 667, 667, 570, 671, 667, 611, 722, 778, 278, 667, 667, 833, 722, 648, 778, 725, 667, 600, 611, 667, 837, 667, 831, 761, 278, 667, 570, 439, 555, 222, 550, 570, 571, 500, 556, 439, 463, 555, 542, 222, 500, 492, 548, 500, 447, 556, 670, 573, 486, 603, 374, 550, 652, 546, 728, 779, 222, 550, 556, 550, 779, 667, 667, 843, 544, 708, 667, 278, 278, 500, 1066, 982, 844, 589, 715, 639, 724, 667, 651, 667, 544, 704, 667, 917, 614, 715, 715, 589, 686, 833, 722, 778, 725, 667, 722, 611, 639, 795, 667, 727, 673, 920, 923, 805, 886, 651, 694, 1022, 682, 556, 562, 522, 493, 553, 556, 688, 465, 556, 556, 472, 564, 686, 550, 556, 556, 556, 500, 833, 500, 835, 500, 572, 518, 830, 851, 621, 736, 526, 492, 752, 534, 556, 556, 556, 378, 496, 500, 222, 222, 222, 910, 828, 556, 472, 565, 500, 556, 778, 556, 492, 339, 944, 722, 944, 722, 944, 722, 667, 500, 333, 333, 556, 1000, 1000, 552, 222, 222, 222, 222, 333, 333, 333, 556, 556, 350, 1000, 1000, 188, 354, 333, 333, 500, 333, 167, 365, 556, 556, 1094, 556, 885, 323, 1083, 1000, 768, 600, 834, 834, 834, 834, 1000, 500, 998, 500, 1000, 500, 500, 494, 612, 823, 713, 584, 549, 713, 979, 719, 274, 549, 549, 584, 549, 549, 604, 584, 604, 604, 708, 625, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 729, 604, 604, 354, 354, 1000, 990, 990, 990, 990, 494, 604, 604, 604, 604, 354, 1021, 1052, 917, 750, 750, 531, 656, 594, 510, 500, 750, 750, 500, 500, 333, 333, 333, 333, 333, 333, 333, 333, 222, 222, 294, 294, 324, 324, 316, 328, 398, 285]; +exports.LiberationSansItalicWidths = LiberationSansItalicWidths; +const LiberationSansItalicMapping = [-1, -1, -1, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 402, 506, 507, 508, 509, 510, 511, 536, 537, 538, 539, 710, 711, 713, 728, 729, 730, 731, 732, 733, 900, 901, 902, 903, 904, 905, 906, 908, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1138, 1139, 1168, 1169, 7808, 7809, 7810, 7811, 7812, 7813, 7922, 7923, 8208, 8209, 8211, 8212, 8213, 8215, 8216, 8217, 8218, 8219, 8220, 8221, 8222, 8224, 8225, 8226, 8230, 8240, 8242, 8243, 8249, 8250, 8252, 8254, 8260, 8319, 8355, 8356, 8359, 8364, 8453, 8467, 8470, 8482, 8486, 8494, 8539, 8540, 8541, 8542, 8592, 8593, 8594, 8595, 8596, 8597, 8616, 8706, 8710, 8719, 8721, 8722, 8730, 8734, 8735, 8745, 8747, 8776, 8800, 8801, 8804, 8805, 8962, 8976, 8992, 8993, 9472, 9474, 9484, 9488, 9492, 9496, 9500, 9508, 9516, 9524, 9532, 9552, 9553, 9554, 9555, 9556, 9557, 9558, 9559, 9560, 9561, 9562, 9563, 9564, 9565, 9566, 9567, 9568, 9569, 9570, 9571, 9572, 9573, 9574, 9575, 9576, 9577, 9578, 9579, 9580, 9600, 9604, 9608, 9612, 9616, 9617, 9618, 9619, 9632, 9633, 9642, 9643, 9644, 9650, 9658, 9660, 9668, 9674, 9675, 9679, 9688, 9689, 9702, 9786, 9787, 9788, 9792, 9794, 9824, 9827, 9829, 9830, 9834, 9835, 9836, 61441, 61442, 61445, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]; +exports.LiberationSansItalicMapping = LiberationSansItalicMapping; +const LiberationSansRegularWidths = [365, 0, 333, 278, 278, 355, 556, 556, 889, 667, 191, 333, 333, 389, 584, 278, 333, 278, 278, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 278, 278, 584, 584, 584, 556, 1015, 667, 667, 722, 722, 667, 611, 778, 722, 278, 500, 667, 556, 833, 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667, 667, 611, 278, 278, 278, 469, 556, 333, 556, 556, 500, 556, 556, 278, 556, 556, 222, 222, 500, 222, 833, 556, 556, 556, 556, 333, 500, 278, 556, 500, 722, 500, 500, 500, 334, 260, 334, 584, 333, 556, 556, 556, 556, 260, 556, 333, 737, 370, 556, 584, 737, 552, 400, 549, 333, 333, 333, 576, 537, 278, 333, 333, 365, 556, 834, 834, 834, 611, 667, 667, 667, 667, 667, 667, 1000, 722, 667, 667, 667, 667, 278, 278, 278, 278, 722, 722, 778, 778, 778, 778, 778, 584, 778, 722, 722, 722, 722, 667, 667, 611, 556, 556, 556, 556, 556, 556, 889, 500, 556, 556, 556, 556, 278, 278, 278, 278, 556, 556, 556, 556, 556, 556, 556, 549, 611, 556, 556, 556, 556, 500, 556, 500, 667, 556, 667, 556, 667, 556, 722, 500, 722, 500, 722, 500, 722, 500, 722, 615, 722, 556, 667, 556, 667, 556, 667, 556, 667, 556, 667, 556, 778, 556, 778, 556, 778, 556, 778, 556, 722, 556, 722, 556, 278, 278, 278, 278, 278, 278, 278, 222, 278, 278, 735, 444, 500, 222, 667, 500, 500, 556, 222, 556, 222, 556, 292, 556, 334, 556, 222, 722, 556, 722, 556, 722, 556, 604, 723, 556, 778, 556, 778, 556, 778, 556, 1000, 944, 722, 333, 722, 333, 722, 333, 667, 500, 667, 500, 667, 500, 667, 500, 611, 278, 611, 375, 611, 278, 722, 556, 722, 556, 722, 556, 722, 556, 722, 556, 722, 556, 944, 722, 667, 500, 667, 611, 500, 611, 500, 611, 500, 222, 556, 667, 556, 1000, 889, 778, 611, 667, 500, 611, 278, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 667, 278, 784, 838, 384, 774, 855, 752, 222, 667, 667, 551, 668, 667, 611, 722, 778, 278, 667, 668, 833, 722, 650, 778, 722, 667, 618, 611, 667, 798, 667, 835, 748, 278, 667, 578, 446, 556, 222, 547, 578, 575, 500, 557, 446, 441, 556, 556, 222, 500, 500, 576, 500, 448, 556, 690, 569, 482, 617, 395, 547, 648, 525, 713, 781, 222, 547, 556, 547, 781, 667, 667, 865, 542, 719, 667, 278, 278, 500, 1057, 1010, 854, 583, 722, 635, 719, 667, 656, 667, 542, 677, 667, 923, 604, 719, 719, 583, 656, 833, 722, 778, 719, 667, 722, 611, 635, 760, 667, 740, 667, 917, 938, 792, 885, 656, 719, 1010, 722, 556, 573, 531, 365, 583, 556, 669, 458, 559, 559, 438, 583, 688, 552, 556, 542, 556, 500, 458, 500, 823, 500, 573, 521, 802, 823, 625, 719, 521, 510, 750, 542, 556, 556, 556, 365, 510, 500, 222, 278, 222, 906, 812, 556, 438, 559, 500, 552, 778, 556, 489, 411, 944, 722, 944, 722, 944, 722, 667, 500, 333, 333, 556, 1000, 1000, 552, 222, 222, 222, 222, 333, 333, 333, 556, 556, 350, 1000, 1000, 188, 354, 333, 333, 500, 333, 167, 365, 556, 556, 1094, 556, 885, 323, 1073, 1000, 768, 600, 834, 834, 834, 834, 1000, 500, 1000, 500, 1000, 500, 500, 494, 612, 823, 713, 584, 549, 713, 979, 719, 274, 549, 549, 583, 549, 549, 604, 584, 604, 604, 708, 625, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 729, 604, 604, 354, 354, 1000, 990, 990, 990, 990, 494, 604, 604, 604, 604, 354, 1021, 1052, 917, 750, 750, 531, 656, 594, 510, 500, 750, 750, 500, 500, 333, 333, 333, 333, 333, 333, 333, 333, 222, 222, 294, 294, 324, 324, 316, 328, 398, 285]; +exports.LiberationSansRegularWidths = LiberationSansRegularWidths; +const LiberationSansRegularMapping = [-1, -1, -1, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 402, 506, 507, 508, 509, 510, 511, 536, 537, 538, 539, 710, 711, 713, 728, 729, 730, 731, 732, 733, 900, 901, 902, 903, 904, 905, 906, 908, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1138, 1139, 1168, 1169, 7808, 7809, 7810, 7811, 7812, 7813, 7922, 7923, 8208, 8209, 8211, 8212, 8213, 8215, 8216, 8217, 8218, 8219, 8220, 8221, 8222, 8224, 8225, 8226, 8230, 8240, 8242, 8243, 8249, 8250, 8252, 8254, 8260, 8319, 8355, 8356, 8359, 8364, 8453, 8467, 8470, 8482, 8486, 8494, 8539, 8540, 8541, 8542, 8592, 8593, 8594, 8595, 8596, 8597, 8616, 8706, 8710, 8719, 8721, 8722, 8730, 8734, 8735, 8745, 8747, 8776, 8800, 8801, 8804, 8805, 8962, 8976, 8992, 8993, 9472, 9474, 9484, 9488, 9492, 9496, 9500, 9508, 9516, 9524, 9532, 9552, 9553, 9554, 9555, 9556, 9557, 9558, 9559, 9560, 9561, 9562, 9563, 9564, 9565, 9566, 9567, 9568, 9569, 9570, 9571, 9572, 9573, 9574, 9575, 9576, 9577, 9578, 9579, 9580, 9600, 9604, 9608, 9612, 9616, 9617, 9618, 9619, 9632, 9633, 9642, 9643, 9644, 9650, 9658, 9660, 9668, 9674, 9675, 9679, 9688, 9689, 9702, 9786, 9787, 9788, 9792, 9794, 9824, 9827, 9829, 9830, 9834, 9835, 9836, 61441, 61442, 61445, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]; +exports.LiberationSansRegularMapping = LiberationSansRegularMapping; + +/***/ }), +/* 55 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.MyriadProRegularMetrics = exports.MyriadProRegularFactors = exports.MyriadProItalicMetrics = exports.MyriadProItalicFactors = exports.MyriadProBoldMetrics = exports.MyriadProBoldItalicMetrics = exports.MyriadProBoldItalicFactors = exports.MyriadProBoldFactors = void 0; +const MyriadProBoldFactors = [1.36898, 1, 1, 0.72706, 0.80479, 0.83734, 0.98894, 0.99793, 0.9897, 0.93884, 0.86209, 0.94292, 0.94292, 1.16661, 1.02058, 0.93582, 0.96694, 0.93582, 1.19137, 0.99793, 0.99793, 0.99793, 0.99793, 0.99793, 0.99793, 0.99793, 0.99793, 0.99793, 0.99793, 0.78076, 0.78076, 1.02058, 1.02058, 1.02058, 0.72851, 0.78966, 0.90838, 0.83637, 0.82391, 0.96376, 0.80061, 0.86275, 0.8768, 0.95407, 1.0258, 0.73901, 0.85022, 0.83655, 1.0156, 0.95546, 0.92179, 0.87107, 0.92179, 0.82114, 0.8096, 0.89713, 0.94438, 0.95353, 0.94083, 0.91905, 0.90406, 0.9446, 0.94292, 1.18777, 0.94292, 1.02058, 0.89903, 0.90088, 0.94938, 0.97898, 0.81093, 0.97571, 0.94938, 1.024, 0.9577, 0.95933, 0.98621, 1.0474, 0.97455, 0.98981, 0.9672, 0.95933, 0.9446, 0.97898, 0.97407, 0.97646, 0.78036, 1.10208, 0.95442, 0.95298, 0.97579, 0.9332, 0.94039, 0.938, 0.80687, 1.01149, 0.80687, 1.02058, 0.80479, 0.99793, 0.99793, 0.99793, 0.99793, 1.01149, 1.00872, 0.90088, 0.91882, 1.0213, 0.8361, 1.02058, 0.62295, 0.54324, 0.89022, 1.08595, 1, 1, 0.90088, 1, 0.97455, 0.93582, 0.90088, 1, 1.05686, 0.8361, 0.99642, 0.99642, 0.99642, 0.72851, 0.90838, 0.90838, 0.90838, 0.90838, 0.90838, 0.90838, 0.868, 0.82391, 0.80061, 0.80061, 0.80061, 0.80061, 1.0258, 1.0258, 1.0258, 1.0258, 0.97484, 0.95546, 0.92179, 0.92179, 0.92179, 0.92179, 0.92179, 1.02058, 0.92179, 0.94438, 0.94438, 0.94438, 0.94438, 0.90406, 0.86958, 0.98225, 0.94938, 0.94938, 0.94938, 0.94938, 0.94938, 0.94938, 0.9031, 0.81093, 0.94938, 0.94938, 0.94938, 0.94938, 0.98621, 0.98621, 0.98621, 0.98621, 0.93969, 0.95933, 0.9446, 0.9446, 0.9446, 0.9446, 0.9446, 1.08595, 0.9446, 0.95442, 0.95442, 0.95442, 0.95442, 0.94039, 0.97898, 0.94039, 0.90838, 0.94938, 0.90838, 0.94938, 0.90838, 0.94938, 0.82391, 0.81093, 0.82391, 0.81093, 0.82391, 0.81093, 0.82391, 0.81093, 0.96376, 0.84313, 0.97484, 0.97571, 0.80061, 0.94938, 0.80061, 0.94938, 0.80061, 0.94938, 0.80061, 0.94938, 0.80061, 0.94938, 0.8768, 0.9577, 0.8768, 0.9577, 0.8768, 0.9577, 1, 1, 0.95407, 0.95933, 0.97069, 0.95933, 1.0258, 0.98621, 1.0258, 0.98621, 1.0258, 0.98621, 1.0258, 0.98621, 1.0258, 0.98621, 0.887, 1.01591, 0.73901, 1.0474, 1, 1, 0.97455, 0.83655, 0.98981, 1, 1, 0.83655, 0.73977, 0.83655, 0.73903, 0.84638, 1.033, 0.95546, 0.95933, 1, 1, 0.95546, 0.95933, 0.8271, 0.95417, 0.95933, 0.92179, 0.9446, 0.92179, 0.9446, 0.92179, 0.9446, 0.936, 0.91964, 0.82114, 0.97646, 1, 1, 0.82114, 0.97646, 0.8096, 0.78036, 0.8096, 0.78036, 1, 1, 0.8096, 0.78036, 1, 1, 0.89713, 0.77452, 0.89713, 1.10208, 0.94438, 0.95442, 0.94438, 0.95442, 0.94438, 0.95442, 0.94438, 0.95442, 0.94438, 0.95442, 0.94438, 0.95442, 0.94083, 0.97579, 0.90406, 0.94039, 0.90406, 0.9446, 0.938, 0.9446, 0.938, 0.9446, 0.938, 1, 0.99793, 0.90838, 0.94938, 0.868, 0.9031, 0.92179, 0.9446, 1, 1, 0.89713, 1.10208, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90989, 0.9358, 0.91945, 0.83181, 0.75261, 0.87992, 0.82976, 0.96034, 0.83689, 0.97268, 1.0078, 0.90838, 0.83637, 0.8019, 0.90157, 0.80061, 0.9446, 0.95407, 0.92436, 1.0258, 0.85022, 0.97153, 1.0156, 0.95546, 0.89192, 0.92179, 0.92361, 0.87107, 0.96318, 0.89713, 0.93704, 0.95638, 0.91905, 0.91709, 0.92796, 1.0258, 0.93704, 0.94836, 1.0373, 0.95933, 1.0078, 0.95871, 0.94836, 0.96174, 0.92601, 0.9498, 0.98607, 0.95776, 0.95933, 1.05453, 1.0078, 0.98275, 0.9314, 0.95617, 0.91701, 1.05993, 0.9446, 0.78367, 0.9553, 1, 0.86832, 1.0128, 0.95871, 0.99394, 0.87548, 0.96361, 0.86774, 1.0078, 0.95871, 0.9446, 0.95871, 0.86774, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.94083, 0.97579, 0.94083, 0.97579, 0.94083, 0.97579, 0.90406, 0.94039, 0.96694, 1, 0.89903, 1, 1, 1, 0.93582, 0.93582, 0.93582, 1, 0.908, 0.908, 0.918, 0.94219, 0.94219, 0.96544, 1, 1.285, 1, 1, 0.81079, 0.81079, 1, 1, 0.74854, 1, 1, 1, 1, 0.99793, 1, 1, 1, 0.65, 1, 1.36145, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.17173, 1, 0.80535, 0.76169, 1.02058, 1.0732, 1.05486, 1, 1, 1.30692, 1.08595, 1.08595, 1, 1.08595, 1.08595, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.16161, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.MyriadProBoldFactors = MyriadProBoldFactors; +const MyriadProBoldMetrics = { + lineHeight: 1.2, + lineGap: 0.2 +}; +exports.MyriadProBoldMetrics = MyriadProBoldMetrics; +const MyriadProBoldItalicFactors = [1.36898, 1, 1, 0.66227, 0.80779, 0.81625, 0.97276, 0.97276, 0.97733, 0.92222, 0.83266, 0.94292, 0.94292, 1.16148, 1.02058, 0.93582, 0.96694, 0.93582, 1.17337, 0.97276, 0.97276, 0.97276, 0.97276, 0.97276, 0.97276, 0.97276, 0.97276, 0.97276, 0.97276, 0.78076, 0.78076, 1.02058, 1.02058, 1.02058, 0.71541, 0.76813, 0.85576, 0.80591, 0.80729, 0.94299, 0.77512, 0.83655, 0.86523, 0.92222, 0.98621, 0.71743, 0.81698, 0.79726, 0.98558, 0.92222, 0.90637, 0.83809, 0.90637, 0.80729, 0.76463, 0.86275, 0.90699, 0.91605, 0.9154, 0.85308, 0.85458, 0.90531, 0.94292, 1.21296, 0.94292, 1.02058, 0.89903, 1.18616, 0.99613, 0.91677, 0.78216, 0.91677, 0.90083, 0.98796, 0.9135, 0.92168, 0.95381, 0.98981, 0.95298, 0.95381, 0.93459, 0.92168, 0.91513, 0.92004, 0.91677, 0.95077, 0.748, 1.04502, 0.91677, 0.92061, 0.94236, 0.89544, 0.89364, 0.9, 0.80687, 0.8578, 0.80687, 1.02058, 0.80779, 0.97276, 0.97276, 0.97276, 0.97276, 0.8578, 0.99973, 1.18616, 0.91339, 1.08074, 0.82891, 1.02058, 0.55509, 0.71526, 0.89022, 1.08595, 1, 1, 1.18616, 1, 0.96736, 0.93582, 1.18616, 1, 1.04864, 0.82711, 0.99043, 0.99043, 0.99043, 0.71541, 0.85576, 0.85576, 0.85576, 0.85576, 0.85576, 0.85576, 0.845, 0.80729, 0.77512, 0.77512, 0.77512, 0.77512, 0.98621, 0.98621, 0.98621, 0.98621, 0.95961, 0.92222, 0.90637, 0.90637, 0.90637, 0.90637, 0.90637, 1.02058, 0.90251, 0.90699, 0.90699, 0.90699, 0.90699, 0.85458, 0.83659, 0.94951, 0.99613, 0.99613, 0.99613, 0.99613, 0.99613, 0.99613, 0.85811, 0.78216, 0.90083, 0.90083, 0.90083, 0.90083, 0.95381, 0.95381, 0.95381, 0.95381, 0.9135, 0.92168, 0.91513, 0.91513, 0.91513, 0.91513, 0.91513, 1.08595, 0.91677, 0.91677, 0.91677, 0.91677, 0.91677, 0.89364, 0.92332, 0.89364, 0.85576, 0.99613, 0.85576, 0.99613, 0.85576, 0.99613, 0.80729, 0.78216, 0.80729, 0.78216, 0.80729, 0.78216, 0.80729, 0.78216, 0.94299, 0.76783, 0.95961, 0.91677, 0.77512, 0.90083, 0.77512, 0.90083, 0.77512, 0.90083, 0.77512, 0.90083, 0.77512, 0.90083, 0.86523, 0.9135, 0.86523, 0.9135, 0.86523, 0.9135, 1, 1, 0.92222, 0.92168, 0.92222, 0.92168, 0.98621, 0.95381, 0.98621, 0.95381, 0.98621, 0.95381, 0.98621, 0.95381, 0.98621, 0.95381, 0.86036, 0.97096, 0.71743, 0.98981, 1, 1, 0.95298, 0.79726, 0.95381, 1, 1, 0.79726, 0.6894, 0.79726, 0.74321, 0.81691, 1.0006, 0.92222, 0.92168, 1, 1, 0.92222, 0.92168, 0.79464, 0.92098, 0.92168, 0.90637, 0.91513, 0.90637, 0.91513, 0.90637, 0.91513, 0.909, 0.87514, 0.80729, 0.95077, 1, 1, 0.80729, 0.95077, 0.76463, 0.748, 0.76463, 0.748, 1, 1, 0.76463, 0.748, 1, 1, 0.86275, 0.72651, 0.86275, 1.04502, 0.90699, 0.91677, 0.90699, 0.91677, 0.90699, 0.91677, 0.90699, 0.91677, 0.90699, 0.91677, 0.90699, 0.91677, 0.9154, 0.94236, 0.85458, 0.89364, 0.85458, 0.90531, 0.9, 0.90531, 0.9, 0.90531, 0.9, 1, 0.97276, 0.85576, 0.99613, 0.845, 0.85811, 0.90251, 0.91677, 1, 1, 0.86275, 1.04502, 1.18616, 1.18616, 1.18616, 1.18616, 1.18616, 1.18616, 1.18616, 1.18616, 1.18616, 1.00899, 1.30628, 0.85576, 0.80178, 0.66862, 0.7927, 0.69323, 0.88127, 0.72459, 0.89711, 0.95381, 0.85576, 0.80591, 0.7805, 0.94729, 0.77512, 0.90531, 0.92222, 0.90637, 0.98621, 0.81698, 0.92655, 0.98558, 0.92222, 0.85359, 0.90637, 0.90976, 0.83809, 0.94523, 0.86275, 0.83509, 0.93157, 0.85308, 0.83392, 0.92346, 0.98621, 0.83509, 0.92886, 0.91324, 0.92168, 0.95381, 0.90646, 0.92886, 0.90557, 0.86847, 0.90276, 0.91324, 0.86842, 0.92168, 0.99531, 0.95381, 0.9224, 0.85408, 0.92699, 0.86847, 1.0051, 0.91513, 0.80487, 0.93481, 1, 0.88159, 1.05214, 0.90646, 0.97355, 0.81539, 0.89398, 0.85923, 0.95381, 0.90646, 0.91513, 0.90646, 0.85923, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.9154, 0.94236, 0.9154, 0.94236, 0.9154, 0.94236, 0.85458, 0.89364, 0.96694, 1, 0.89903, 1, 1, 1, 0.91782, 0.91782, 0.91782, 1, 0.896, 0.896, 0.896, 0.9332, 0.9332, 0.95973, 1, 1.26, 1, 1, 0.80479, 0.80178, 1, 1, 0.85633, 1, 1, 1, 1, 0.97276, 1, 1, 1, 0.698, 1, 1.36145, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.14542, 1, 0.79199, 0.78694, 1.02058, 1.03493, 1.05486, 1, 1, 1.23026, 1.08595, 1.08595, 1, 1.08595, 1.08595, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.20006, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.MyriadProBoldItalicFactors = MyriadProBoldItalicFactors; +const MyriadProBoldItalicMetrics = { + lineHeight: 1.2, + lineGap: 0.2 +}; +exports.MyriadProBoldItalicMetrics = MyriadProBoldItalicMetrics; +const MyriadProItalicFactors = [1.36898, 1, 1, 0.65507, 0.84943, 0.85639, 0.88465, 0.88465, 0.86936, 0.88307, 0.86948, 0.85283, 0.85283, 1.06383, 1.02058, 0.75945, 0.9219, 0.75945, 1.17337, 0.88465, 0.88465, 0.88465, 0.88465, 0.88465, 0.88465, 0.88465, 0.88465, 0.88465, 0.88465, 0.75945, 0.75945, 1.02058, 1.02058, 1.02058, 0.69046, 0.70926, 0.85158, 0.77812, 0.76852, 0.89591, 0.70466, 0.76125, 0.80094, 0.86822, 0.83864, 0.728, 0.77212, 0.79475, 0.93637, 0.87514, 0.8588, 0.76013, 0.8588, 0.72421, 0.69866, 0.77598, 0.85991, 0.80811, 0.87832, 0.78112, 0.77512, 0.8562, 1.0222, 1.18417, 1.0222, 1.27014, 0.89903, 1.15012, 0.93859, 0.94399, 0.846, 0.94399, 0.81453, 1.0186, 0.94219, 0.96017, 1.03075, 1.02175, 0.912, 1.03075, 0.96998, 0.96017, 0.93859, 0.94399, 0.94399, 0.95493, 0.746, 1.12658, 0.94578, 0.91, 0.979, 0.882, 0.882, 0.83, 0.85034, 0.83537, 0.85034, 1.02058, 0.70869, 0.88465, 0.88465, 0.88465, 0.88465, 0.83537, 0.90083, 1.15012, 0.9161, 0.94565, 0.73541, 1.02058, 0.53609, 0.69353, 0.79519, 1.08595, 1, 1, 1.15012, 1, 0.91974, 0.75945, 1.15012, 1, 0.9446, 0.73361, 0.9005, 0.9005, 0.9005, 0.62864, 0.85158, 0.85158, 0.85158, 0.85158, 0.85158, 0.85158, 0.773, 0.76852, 0.70466, 0.70466, 0.70466, 0.70466, 0.83864, 0.83864, 0.83864, 0.83864, 0.90561, 0.87514, 0.8588, 0.8588, 0.8588, 0.8588, 0.8588, 1.02058, 0.85751, 0.85991, 0.85991, 0.85991, 0.85991, 0.77512, 0.76013, 0.88075, 0.93859, 0.93859, 0.93859, 0.93859, 0.93859, 0.93859, 0.8075, 0.846, 0.81453, 0.81453, 0.81453, 0.81453, 0.82424, 0.82424, 0.82424, 0.82424, 0.9278, 0.96017, 0.93859, 0.93859, 0.93859, 0.93859, 0.93859, 1.08595, 0.8562, 0.94578, 0.94578, 0.94578, 0.94578, 0.882, 0.94578, 0.882, 0.85158, 0.93859, 0.85158, 0.93859, 0.85158, 0.93859, 0.76852, 0.846, 0.76852, 0.846, 0.76852, 0.846, 0.76852, 0.846, 0.89591, 0.8544, 0.90561, 0.94399, 0.70466, 0.81453, 0.70466, 0.81453, 0.70466, 0.81453, 0.70466, 0.81453, 0.70466, 0.81453, 0.80094, 0.94219, 0.80094, 0.94219, 0.80094, 0.94219, 1, 1, 0.86822, 0.96017, 0.86822, 0.96017, 0.83864, 0.82424, 0.83864, 0.82424, 0.83864, 0.82424, 0.83864, 1.03075, 0.83864, 0.82424, 0.81402, 1.02738, 0.728, 1.02175, 1, 1, 0.912, 0.79475, 1.03075, 1, 1, 0.79475, 0.83911, 0.79475, 0.66266, 0.80553, 1.06676, 0.87514, 0.96017, 1, 1, 0.87514, 0.96017, 0.86865, 0.87396, 0.96017, 0.8588, 0.93859, 0.8588, 0.93859, 0.8588, 0.93859, 0.867, 0.84759, 0.72421, 0.95493, 1, 1, 0.72421, 0.95493, 0.69866, 0.746, 0.69866, 0.746, 1, 1, 0.69866, 0.746, 1, 1, 0.77598, 0.88417, 0.77598, 1.12658, 0.85991, 0.94578, 0.85991, 0.94578, 0.85991, 0.94578, 0.85991, 0.94578, 0.85991, 0.94578, 0.85991, 0.94578, 0.87832, 0.979, 0.77512, 0.882, 0.77512, 0.8562, 0.83, 0.8562, 0.83, 0.8562, 0.83, 1, 0.88465, 0.85158, 0.93859, 0.773, 0.8075, 0.85751, 0.8562, 1, 1, 0.77598, 1.12658, 1.15012, 1.15012, 1.15012, 1.15012, 1.15012, 1.15313, 1.15012, 1.15012, 1.15012, 1.08106, 1.03901, 0.85158, 0.77025, 0.62264, 0.7646, 0.65351, 0.86026, 0.69461, 0.89947, 1.03075, 0.85158, 0.77812, 0.76449, 0.88836, 0.70466, 0.8562, 0.86822, 0.8588, 0.83864, 0.77212, 0.85308, 0.93637, 0.87514, 0.82352, 0.8588, 0.85701, 0.76013, 0.89058, 0.77598, 0.8156, 0.82565, 0.78112, 0.77899, 0.89386, 0.83864, 0.8156, 0.9486, 0.92388, 0.96186, 1.03075, 0.91123, 0.9486, 0.93298, 0.878, 0.93942, 0.92388, 0.84596, 0.96186, 0.95119, 1.03075, 0.922, 0.88787, 0.95829, 0.88, 0.93559, 0.93859, 0.78815, 0.93758, 1, 0.89217, 1.03737, 0.91123, 0.93969, 0.77487, 0.85769, 0.86799, 1.03075, 0.91123, 0.93859, 0.91123, 0.86799, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.87832, 0.979, 0.87832, 0.979, 0.87832, 0.979, 0.77512, 0.882, 0.9219, 1, 0.89903, 1, 1, 1, 0.87321, 0.87321, 0.87321, 1, 1.027, 1.027, 1.027, 0.86847, 0.86847, 0.79121, 1, 1.124, 1, 1, 0.73572, 0.73572, 1, 1, 0.85034, 1, 1, 1, 1, 0.88465, 1, 1, 1, 0.669, 1, 1.36145, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.04828, 1, 0.74948, 0.75187, 1.02058, 0.98391, 1.02119, 1, 1, 1.06233, 1.08595, 1.08595, 1, 1.08595, 1.08595, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.05233, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.MyriadProItalicFactors = MyriadProItalicFactors; +const MyriadProItalicMetrics = { + lineHeight: 1.2, + lineGap: 0.2 +}; +exports.MyriadProItalicMetrics = MyriadProItalicMetrics; +const MyriadProRegularFactors = [1.36898, 1, 1, 0.76305, 0.82784, 0.94935, 0.89364, 0.92241, 0.89073, 0.90706, 0.98472, 0.85283, 0.85283, 1.0664, 1.02058, 0.74505, 0.9219, 0.74505, 1.23456, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.74505, 0.74505, 1.02058, 1.02058, 1.02058, 0.73002, 0.72601, 0.91755, 0.8126, 0.80314, 0.92222, 0.73764, 0.79726, 0.83051, 0.90284, 0.86023, 0.74, 0.8126, 0.84869, 0.96518, 0.91115, 0.8858, 0.79761, 0.8858, 0.74498, 0.73914, 0.81363, 0.89591, 0.83659, 0.89633, 0.85608, 0.8111, 0.90531, 1.0222, 1.22736, 1.0222, 1.27014, 0.89903, 0.90088, 0.86667, 1.0231, 0.896, 1.01411, 0.90083, 1.05099, 1.00512, 0.99793, 1.05326, 1.09377, 0.938, 1.06226, 1.00119, 0.99793, 0.98714, 1.0231, 1.01231, 0.98196, 0.792, 1.19137, 0.99074, 0.962, 1.01915, 0.926, 0.942, 0.856, 0.85034, 0.92006, 0.85034, 1.02058, 0.69067, 0.92241, 0.92241, 0.92241, 0.92241, 0.92006, 0.9332, 0.90088, 0.91882, 0.93484, 0.75339, 1.02058, 0.56866, 0.54324, 0.79519, 1.08595, 1, 1, 0.90088, 1, 0.95325, 0.74505, 0.90088, 1, 0.97198, 0.75339, 0.91009, 0.91009, 0.91009, 0.66466, 0.91755, 0.91755, 0.91755, 0.91755, 0.91755, 0.91755, 0.788, 0.80314, 0.73764, 0.73764, 0.73764, 0.73764, 0.86023, 0.86023, 0.86023, 0.86023, 0.92915, 0.91115, 0.8858, 0.8858, 0.8858, 0.8858, 0.8858, 1.02058, 0.8858, 0.89591, 0.89591, 0.89591, 0.89591, 0.8111, 0.79611, 0.89713, 0.86667, 0.86667, 0.86667, 0.86667, 0.86667, 0.86667, 0.86936, 0.896, 0.90083, 0.90083, 0.90083, 0.90083, 0.84224, 0.84224, 0.84224, 0.84224, 0.97276, 0.99793, 0.98714, 0.98714, 0.98714, 0.98714, 0.98714, 1.08595, 0.89876, 0.99074, 0.99074, 0.99074, 0.99074, 0.942, 1.0231, 0.942, 0.91755, 0.86667, 0.91755, 0.86667, 0.91755, 0.86667, 0.80314, 0.896, 0.80314, 0.896, 0.80314, 0.896, 0.80314, 0.896, 0.92222, 0.93372, 0.92915, 1.01411, 0.73764, 0.90083, 0.73764, 0.90083, 0.73764, 0.90083, 0.73764, 0.90083, 0.73764, 0.90083, 0.83051, 1.00512, 0.83051, 1.00512, 0.83051, 1.00512, 1, 1, 0.90284, 0.99793, 0.90976, 0.99793, 0.86023, 0.84224, 0.86023, 0.84224, 0.86023, 0.84224, 0.86023, 1.05326, 0.86023, 0.84224, 0.82873, 1.07469, 0.74, 1.09377, 1, 1, 0.938, 0.84869, 1.06226, 1, 1, 0.84869, 0.83704, 0.84869, 0.81441, 0.85588, 1.08927, 0.91115, 0.99793, 1, 1, 0.91115, 0.99793, 0.91887, 0.90991, 0.99793, 0.8858, 0.98714, 0.8858, 0.98714, 0.8858, 0.98714, 0.894, 0.91434, 0.74498, 0.98196, 1, 1, 0.74498, 0.98196, 0.73914, 0.792, 0.73914, 0.792, 1, 1, 0.73914, 0.792, 1, 1, 0.81363, 0.904, 0.81363, 1.19137, 0.89591, 0.99074, 0.89591, 0.99074, 0.89591, 0.99074, 0.89591, 0.99074, 0.89591, 0.99074, 0.89591, 0.99074, 0.89633, 1.01915, 0.8111, 0.942, 0.8111, 0.90531, 0.856, 0.90531, 0.856, 0.90531, 0.856, 1, 0.92241, 0.91755, 0.86667, 0.788, 0.86936, 0.8858, 0.89876, 1, 1, 0.81363, 1.19137, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90388, 1.03901, 0.92138, 0.78105, 0.7154, 0.86169, 0.80513, 0.94007, 0.82528, 0.98612, 1.06226, 0.91755, 0.8126, 0.81884, 0.92819, 0.73764, 0.90531, 0.90284, 0.8858, 0.86023, 0.8126, 0.91172, 0.96518, 0.91115, 0.83089, 0.8858, 0.87791, 0.79761, 0.89297, 0.81363, 0.88157, 0.89992, 0.85608, 0.81992, 0.94307, 0.86023, 0.88157, 0.95308, 0.98699, 0.99793, 1.06226, 0.95817, 0.95308, 0.97358, 0.928, 0.98088, 0.98699, 0.92761, 0.99793, 0.96017, 1.06226, 0.986, 0.944, 0.95978, 0.938, 0.96705, 0.98714, 0.80442, 0.98972, 1, 0.89762, 1.04552, 0.95817, 0.99007, 0.87064, 0.91879, 0.88888, 1.06226, 0.95817, 0.98714, 0.95817, 0.88888, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.89633, 1.01915, 0.89633, 1.01915, 0.89633, 1.01915, 0.8111, 0.942, 0.9219, 1, 0.89903, 1, 1, 1, 0.93173, 0.93173, 0.93173, 1, 1.06304, 1.06304, 1.06904, 0.89903, 0.89903, 0.80549, 1, 1.156, 1, 1, 0.76575, 0.76575, 1, 1, 0.72458, 1, 1, 1, 1, 0.92241, 1, 1, 1, 0.619, 1, 1.36145, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.07257, 1, 0.74705, 0.71119, 1.02058, 1.024, 1.02119, 1, 1, 1.1536, 1.08595, 1.08595, 1, 1.08595, 1.08595, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.05638, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.MyriadProRegularFactors = MyriadProRegularFactors; +const MyriadProRegularMetrics = { + lineHeight: 1.2, + lineGap: 0.2 +}; +exports.MyriadProRegularMetrics = MyriadProRegularMetrics; + +/***/ }), +/* 56 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.SegoeuiRegularMetrics = exports.SegoeuiRegularFactors = exports.SegoeuiItalicMetrics = exports.SegoeuiItalicFactors = exports.SegoeuiBoldMetrics = exports.SegoeuiBoldItalicMetrics = exports.SegoeuiBoldItalicFactors = exports.SegoeuiBoldFactors = void 0; +const SegoeuiBoldFactors = [1.76738, 1, 1, 0.99297, 0.9824, 1.04016, 1.06497, 1.03424, 0.97529, 1.17647, 1.23203, 1.1085, 1.1085, 1.16939, 1.2107, 0.9754, 1.21408, 0.9754, 1.59578, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 0.81378, 0.81378, 1.2107, 1.2107, 1.2107, 0.71703, 0.97847, 0.97363, 0.88776, 0.8641, 1.02096, 0.79795, 0.85132, 0.914, 1.06085, 1.1406, 0.8007, 0.89858, 0.83693, 1.14889, 1.09398, 0.97489, 0.92094, 0.97489, 0.90399, 0.84041, 0.95923, 1.00135, 1, 1.06467, 0.98243, 0.90996, 0.99361, 1.1085, 1.56942, 1.1085, 1.2107, 0.74627, 0.94282, 0.96752, 1.01519, 0.86304, 1.01359, 0.97278, 1.15103, 1.01359, 0.98561, 1.02285, 1.02285, 1.00527, 1.02285, 1.0302, 0.99041, 1.0008, 1.01519, 1.01359, 1.02258, 0.79104, 1.16862, 0.99041, 0.97454, 1.02511, 0.99298, 0.96752, 0.95801, 0.94856, 1.16579, 0.94856, 1.2107, 0.9824, 1.03424, 1.03424, 1, 1.03424, 1.16579, 0.8727, 1.3871, 1.18622, 1.10818, 1.04478, 1.2107, 1.18622, 0.75155, 0.94994, 1.28826, 1.21408, 1.21408, 0.91056, 1, 0.91572, 0.9754, 0.64663, 1.18328, 1.24866, 1.04478, 1.14169, 1.15749, 1.17389, 0.71703, 0.97363, 0.97363, 0.97363, 0.97363, 0.97363, 0.97363, 0.93506, 0.8641, 0.79795, 0.79795, 0.79795, 0.79795, 1.1406, 1.1406, 1.1406, 1.1406, 1.02096, 1.09398, 0.97426, 0.97426, 0.97426, 0.97426, 0.97426, 1.2107, 0.97489, 1.00135, 1.00135, 1.00135, 1.00135, 0.90996, 0.92094, 1.02798, 0.96752, 0.96752, 0.96752, 0.96752, 0.96752, 0.96752, 0.93136, 0.86304, 0.97278, 0.97278, 0.97278, 0.97278, 1.02285, 1.02285, 1.02285, 1.02285, 0.97122, 0.99041, 1, 1, 1, 1, 1, 1.28826, 1.0008, 0.99041, 0.99041, 0.99041, 0.99041, 0.96752, 1.01519, 0.96752, 0.97363, 0.96752, 0.97363, 0.96752, 0.97363, 0.96752, 0.8641, 0.86304, 0.8641, 0.86304, 0.8641, 0.86304, 0.8641, 0.86304, 1.02096, 1.03057, 1.02096, 1.03517, 0.79795, 0.97278, 0.79795, 0.97278, 0.79795, 0.97278, 0.79795, 0.97278, 0.79795, 0.97278, 0.914, 1.01359, 0.914, 1.01359, 0.914, 1.01359, 1, 1, 1.06085, 0.98561, 1.06085, 1.00879, 1.1406, 1.02285, 1.1406, 1.02285, 1.1406, 1.02285, 1.1406, 1.02285, 1.1406, 1.02285, 0.97138, 1.08692, 0.8007, 1.02285, 1, 1, 1.00527, 0.83693, 1.02285, 1, 1, 0.83693, 0.9455, 0.83693, 0.90418, 0.83693, 1.13005, 1.09398, 0.99041, 1, 1, 1.09398, 0.99041, 0.96692, 1.09251, 0.99041, 0.97489, 1.0008, 0.97489, 1.0008, 0.97489, 1.0008, 0.93994, 0.97931, 0.90399, 1.02258, 1, 1, 0.90399, 1.02258, 0.84041, 0.79104, 0.84041, 0.79104, 0.84041, 0.79104, 0.84041, 0.79104, 1, 1, 0.95923, 1.07034, 0.95923, 1.16862, 1.00135, 0.99041, 1.00135, 0.99041, 1.00135, 0.99041, 1.00135, 0.99041, 1.00135, 0.99041, 1.00135, 0.99041, 1.06467, 1.02511, 0.90996, 0.96752, 0.90996, 0.99361, 0.95801, 0.99361, 0.95801, 0.99361, 0.95801, 1.07733, 1.03424, 0.97363, 0.96752, 0.93506, 0.93136, 0.97489, 1.0008, 1, 1, 0.95923, 1.16862, 1.15103, 1.15103, 1.01173, 1.03959, 0.75953, 0.81378, 0.79912, 1.15103, 1.21994, 0.95161, 0.87815, 1.01149, 0.81525, 0.7676, 0.98167, 1.01134, 1.02546, 0.84097, 1.03089, 1.18102, 0.97363, 0.88776, 0.85134, 0.97826, 0.79795, 0.99361, 1.06085, 0.97489, 1.1406, 0.89858, 1.0388, 1.14889, 1.09398, 0.86039, 0.97489, 1.0595, 0.92094, 0.94793, 0.95923, 0.90996, 0.99346, 0.98243, 1.02112, 0.95493, 1.1406, 0.90996, 1.03574, 1.02597, 1.0008, 1.18102, 1.06628, 1.03574, 1.0192, 1.01932, 1.00886, 0.97531, 1.0106, 1.0008, 1.13189, 1.18102, 1.02277, 0.98683, 1.0016, 0.99561, 1.07237, 1.0008, 0.90434, 0.99921, 0.93803, 0.8965, 1.23085, 1.06628, 1.04983, 0.96268, 1.0499, 0.98439, 1.18102, 1.06628, 1.0008, 1.06628, 0.98439, 0.79795, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.09466, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.97278, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.02065, 1, 1, 1, 1, 1, 1, 1.06467, 1.02511, 1.06467, 1.02511, 1.06467, 1.02511, 0.90996, 0.96752, 1, 1.21408, 0.89903, 1, 1, 0.75155, 1.04394, 1.04394, 1.04394, 1.04394, 0.98633, 0.98633, 0.98633, 0.73047, 0.73047, 1.20642, 0.91211, 1.25635, 1.222, 1.02956, 1.03372, 1.03372, 0.96039, 1.24633, 1, 1.12454, 0.93503, 1.03424, 1.19687, 1.03424, 1, 1, 1, 0.771, 1, 1, 1.15749, 1.15749, 1.15749, 1.10948, 0.86279, 0.94434, 0.86279, 0.94434, 0.86182, 1, 1, 1.16897, 1, 0.96085, 0.90137, 1.2107, 1.18416, 1.13973, 0.69825, 0.9716, 2.10339, 1.29004, 1.29004, 1.21172, 1.29004, 1.29004, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.42603, 1, 0.99862, 0.99862, 1, 0.87025, 0.87025, 0.87025, 0.87025, 1.18874, 1.42603, 1, 1.42603, 1.42603, 0.99862, 1, 1, 1, 1, 1, 1.2886, 1.04315, 1.15296, 1.34163, 1, 1, 1, 1.09193, 1.09193, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.SegoeuiBoldFactors = SegoeuiBoldFactors; +const SegoeuiBoldMetrics = { + lineHeight: 1.33008, + lineGap: 0 +}; +exports.SegoeuiBoldMetrics = SegoeuiBoldMetrics; +const SegoeuiBoldItalicFactors = [1.76738, 1, 1, 0.98946, 1.03959, 1.04016, 1.02809, 1.036, 0.97639, 1.10953, 1.23203, 1.11144, 1.11144, 1.16939, 1.21237, 0.9754, 1.21261, 0.9754, 1.59754, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 0.81378, 0.81378, 1.21237, 1.21237, 1.21237, 0.73541, 0.97847, 0.97363, 0.89723, 0.87897, 1.0426, 0.79429, 0.85292, 0.91149, 1.05815, 1.1406, 0.79631, 0.90128, 0.83853, 1.04396, 1.10615, 0.97552, 0.94436, 0.97552, 0.88641, 0.80527, 0.96083, 1.00135, 1, 1.06777, 0.9817, 0.91142, 0.99361, 1.11144, 1.57293, 1.11144, 1.21237, 0.74627, 1.31818, 1.06585, 0.97042, 0.83055, 0.97042, 0.93503, 1.1261, 0.97042, 0.97922, 1.14236, 0.94552, 1.01054, 1.14236, 1.02471, 0.97922, 0.94165, 0.97042, 0.97042, 1.0276, 0.78929, 1.1261, 0.97922, 0.95874, 1.02197, 0.98507, 0.96752, 0.97168, 0.95107, 1.16579, 0.95107, 1.21237, 1.03959, 1.036, 1.036, 1, 1.036, 1.16579, 0.87357, 1.31818, 1.18754, 1.26781, 1.05356, 1.21237, 1.18622, 0.79487, 0.94994, 1.29004, 1.24047, 1.24047, 1.31818, 1, 0.91484, 0.9754, 1.31818, 1.1349, 1.24866, 1.05356, 1.13934, 1.15574, 1.17389, 0.73541, 0.97363, 0.97363, 0.97363, 0.97363, 0.97363, 0.97363, 0.94385, 0.87897, 0.79429, 0.79429, 0.79429, 0.79429, 1.1406, 1.1406, 1.1406, 1.1406, 1.0426, 1.10615, 0.97552, 0.97552, 0.97552, 0.97552, 0.97552, 1.21237, 0.97552, 1.00135, 1.00135, 1.00135, 1.00135, 0.91142, 0.94436, 0.98721, 1.06585, 1.06585, 1.06585, 1.06585, 1.06585, 1.06585, 0.96705, 0.83055, 0.93503, 0.93503, 0.93503, 0.93503, 1.14236, 1.14236, 1.14236, 1.14236, 0.93125, 0.97922, 0.94165, 0.94165, 0.94165, 0.94165, 0.94165, 1.29004, 0.94165, 0.97922, 0.97922, 0.97922, 0.97922, 0.96752, 0.97042, 0.96752, 0.97363, 1.06585, 0.97363, 1.06585, 0.97363, 1.06585, 0.87897, 0.83055, 0.87897, 0.83055, 0.87897, 0.83055, 0.87897, 0.83055, 1.0426, 1.0033, 1.0426, 0.97042, 0.79429, 0.93503, 0.79429, 0.93503, 0.79429, 0.93503, 0.79429, 0.93503, 0.79429, 0.93503, 0.91149, 0.97042, 0.91149, 0.97042, 0.91149, 0.97042, 1, 1, 1.05815, 0.97922, 1.05815, 0.97922, 1.1406, 1.14236, 1.1406, 1.14236, 1.1406, 1.14236, 1.1406, 1.14236, 1.1406, 1.14236, 0.97441, 1.04302, 0.79631, 1.01582, 1, 1, 1.01054, 0.83853, 1.14236, 1, 1, 0.83853, 1.09125, 0.83853, 0.90418, 0.83853, 1.19508, 1.10615, 0.97922, 1, 1, 1.10615, 0.97922, 1.01034, 1.10466, 0.97922, 0.97552, 0.94165, 0.97552, 0.94165, 0.97552, 0.94165, 0.91602, 0.91981, 0.88641, 1.0276, 1, 1, 0.88641, 1.0276, 0.80527, 0.78929, 0.80527, 0.78929, 0.80527, 0.78929, 0.80527, 0.78929, 1, 1, 0.96083, 1.05403, 0.95923, 1.16862, 1.00135, 0.97922, 1.00135, 0.97922, 1.00135, 0.97922, 1.00135, 0.97922, 1.00135, 0.97922, 1.00135, 0.97922, 1.06777, 1.02197, 0.91142, 0.96752, 0.91142, 0.99361, 0.97168, 0.99361, 0.97168, 0.99361, 0.97168, 1.23199, 1.036, 0.97363, 1.06585, 0.94385, 0.96705, 0.97552, 0.94165, 1, 1, 0.96083, 1.1261, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 0.95161, 1.27126, 1.00811, 0.83284, 0.77702, 0.99137, 0.95253, 1.0347, 0.86142, 1.07205, 1.14236, 0.97363, 0.89723, 0.86869, 1.09818, 0.79429, 0.99361, 1.05815, 0.97552, 1.1406, 0.90128, 1.06662, 1.04396, 1.10615, 0.84918, 0.97552, 1.04694, 0.94436, 0.98015, 0.96083, 0.91142, 1.00356, 0.9817, 1.01945, 0.98999, 1.1406, 0.91142, 1.04961, 0.9898, 1.00639, 1.14236, 1.07514, 1.04961, 0.99607, 1.02897, 1.008, 0.9898, 0.95134, 1.00639, 1.11121, 1.14236, 1.00518, 0.97981, 1.02186, 1, 1.08578, 0.94165, 0.99314, 0.98387, 0.93028, 0.93377, 1.35125, 1.07514, 1.10687, 0.93491, 1.04232, 1.00351, 1.14236, 1.07514, 0.94165, 1.07514, 1.00351, 0.79429, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.09097, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.93503, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.96609, 1, 1, 1, 1, 1, 1, 1.06777, 1.02197, 1.06777, 1.02197, 1.06777, 1.02197, 0.91142, 0.96752, 1, 1.21261, 0.89903, 1, 1, 0.75155, 1.04745, 1.04745, 1.04745, 1.04394, 0.98633, 0.98633, 0.98633, 0.72959, 0.72959, 1.20502, 0.91406, 1.26514, 1.222, 1.02956, 1.03372, 1.03372, 0.96039, 1.24633, 1, 1.09125, 0.93327, 1.03336, 1.16541, 1.036, 1, 1, 1, 0.771, 1, 1, 1.15574, 1.15574, 1.15574, 1.15574, 0.86364, 0.94434, 0.86279, 0.94434, 0.86224, 1, 1, 1.16798, 1, 0.96085, 0.90068, 1.21237, 1.18416, 1.13904, 0.69825, 0.9716, 2.10339, 1.29004, 1.29004, 1.21339, 1.29004, 1.29004, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.42603, 1, 0.99862, 0.99862, 1, 0.87025, 0.87025, 0.87025, 0.87025, 1.18775, 1.42603, 1, 1.42603, 1.42603, 0.99862, 1, 1, 1, 1, 1, 1.2886, 1.04315, 1.15296, 1.34163, 1, 1, 1, 1.13269, 1.13269, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.SegoeuiBoldItalicFactors = SegoeuiBoldItalicFactors; +const SegoeuiBoldItalicMetrics = { + lineHeight: 1.33008, + lineGap: 0 +}; +exports.SegoeuiBoldItalicMetrics = SegoeuiBoldItalicMetrics; +const SegoeuiItalicFactors = [1.76738, 1, 1, 0.98946, 1.14763, 1.05365, 1.06234, 0.96927, 0.92586, 1.15373, 1.18414, 0.91349, 0.91349, 1.07403, 1.17308, 0.78383, 1.20088, 0.78383, 1.42531, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.78383, 0.78383, 1.17308, 1.17308, 1.17308, 0.77349, 0.94565, 0.94729, 0.85944, 0.88506, 0.9858, 0.74817, 0.80016, 0.88449, 0.98039, 0.95782, 0.69238, 0.89898, 0.83231, 0.98183, 1.03989, 0.96924, 0.86237, 0.96924, 0.80595, 0.74524, 0.86091, 0.95402, 0.94143, 0.98448, 0.8858, 0.83089, 0.93285, 1.0949, 1.39016, 1.0949, 1.45994, 0.74627, 1.04839, 0.97454, 0.97454, 0.87207, 0.97454, 0.87533, 1.06151, 0.97454, 1.00176, 1.16484, 1.08132, 0.98047, 1.16484, 1.02989, 1.01054, 0.96225, 0.97454, 0.97454, 1.06598, 0.79004, 1.16344, 1.00351, 0.94629, 0.9973, 0.91016, 0.96777, 0.9043, 0.91082, 0.92481, 0.91082, 1.17308, 0.95748, 0.96927, 0.96927, 1, 0.96927, 0.92481, 0.80597, 1.04839, 1.23393, 1.1781, 0.9245, 1.17308, 1.20808, 0.63218, 0.94261, 1.24822, 1.09971, 1.09971, 1.04839, 1, 0.85273, 0.78032, 1.04839, 1.09971, 1.22326, 0.9245, 1.09836, 1.13525, 1.15222, 0.70424, 0.94729, 0.94729, 0.94729, 0.94729, 0.94729, 0.94729, 0.85498, 0.88506, 0.74817, 0.74817, 0.74817, 0.74817, 0.95782, 0.95782, 0.95782, 0.95782, 0.9858, 1.03989, 0.96924, 0.96924, 0.96924, 0.96924, 0.96924, 1.17308, 0.96924, 0.95402, 0.95402, 0.95402, 0.95402, 0.83089, 0.86237, 0.88409, 0.97454, 0.97454, 0.97454, 0.97454, 0.97454, 0.97454, 0.92916, 0.87207, 0.87533, 0.87533, 0.87533, 0.87533, 0.93146, 0.93146, 0.93146, 0.93146, 0.93854, 1.01054, 0.96225, 0.96225, 0.96225, 0.96225, 0.96225, 1.24822, 0.8761, 1.00351, 1.00351, 1.00351, 1.00351, 0.96777, 0.97454, 0.96777, 0.94729, 0.97454, 0.94729, 0.97454, 0.94729, 0.97454, 0.88506, 0.87207, 0.88506, 0.87207, 0.88506, 0.87207, 0.88506, 0.87207, 0.9858, 0.95391, 0.9858, 0.97454, 0.74817, 0.87533, 0.74817, 0.87533, 0.74817, 0.87533, 0.74817, 0.87533, 0.74817, 0.87533, 0.88449, 0.97454, 0.88449, 0.97454, 0.88449, 0.97454, 1, 1, 0.98039, 1.00176, 0.98039, 1.00176, 0.95782, 0.93146, 0.95782, 0.93146, 0.95782, 0.93146, 0.95782, 1.16484, 0.95782, 0.93146, 0.84421, 1.12761, 0.69238, 1.08132, 1, 1, 0.98047, 0.83231, 1.16484, 1, 1, 0.84723, 1.04861, 0.84723, 0.78755, 0.83231, 1.23736, 1.03989, 1.01054, 1, 1, 1.03989, 1.01054, 0.9857, 1.03849, 1.01054, 0.96924, 0.96225, 0.96924, 0.96225, 0.96924, 0.96225, 0.92383, 0.90171, 0.80595, 1.06598, 1, 1, 0.80595, 1.06598, 0.74524, 0.79004, 0.74524, 0.79004, 0.74524, 0.79004, 0.74524, 0.79004, 1, 1, 0.86091, 1.02759, 0.85771, 1.16344, 0.95402, 1.00351, 0.95402, 1.00351, 0.95402, 1.00351, 0.95402, 1.00351, 0.95402, 1.00351, 0.95402, 1.00351, 0.98448, 0.9973, 0.83089, 0.96777, 0.83089, 0.93285, 0.9043, 0.93285, 0.9043, 0.93285, 0.9043, 1.31868, 0.96927, 0.94729, 0.97454, 0.85498, 0.92916, 0.96924, 0.8761, 1, 1, 0.86091, 1.16344, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 0.81965, 0.81965, 0.94729, 0.78032, 0.71022, 0.90883, 0.84171, 0.99877, 0.77596, 1.05734, 1.2, 0.94729, 0.85944, 0.82791, 0.9607, 0.74817, 0.93285, 0.98039, 0.96924, 0.95782, 0.89898, 0.98316, 0.98183, 1.03989, 0.78614, 0.96924, 0.97642, 0.86237, 0.86075, 0.86091, 0.83089, 0.90082, 0.8858, 0.97296, 1.01284, 0.95782, 0.83089, 1.0976, 1.04, 1.03342, 1.2, 1.0675, 1.0976, 0.98205, 1.03809, 1.05097, 1.04, 0.95364, 1.03342, 1.05401, 1.2, 1.02148, 1.0119, 1.04724, 1.0127, 1.02732, 0.96225, 0.8965, 0.97783, 0.93574, 0.94818, 1.30679, 1.0675, 1.11826, 0.99821, 1.0557, 1.0326, 1.2, 1.0675, 0.96225, 1.0675, 1.0326, 0.74817, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.03754, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.87533, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.98705, 1, 1, 1, 1, 1, 1, 0.98448, 0.9973, 0.98448, 0.9973, 0.98448, 0.9973, 0.83089, 0.96777, 1, 1.20088, 0.89903, 1, 1, 0.75155, 0.94945, 0.94945, 0.94945, 0.94945, 1.12317, 1.12317, 1.12317, 0.67603, 0.67603, 1.15621, 0.73584, 1.21191, 1.22135, 1.06483, 0.94868, 0.94868, 0.95996, 1.24633, 1, 1.07497, 0.87709, 0.96927, 1.01473, 0.96927, 1, 1, 1, 0.77295, 1, 1, 1.09836, 1.09836, 1.09836, 1.01522, 0.86321, 0.94434, 0.8649, 0.94434, 0.86182, 1, 1, 1.083, 1, 0.91578, 0.86438, 1.17308, 1.18416, 1.14589, 0.69825, 0.97622, 1.96791, 1.24822, 1.24822, 1.17308, 1.24822, 1.24822, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.42603, 1, 0.99862, 0.99862, 1, 0.87025, 0.87025, 0.87025, 0.87025, 1.17984, 1.42603, 1, 1.42603, 1.42603, 0.99862, 1, 1, 1, 1, 1, 1.2886, 1.04315, 1.15296, 1.34163, 1, 1, 1, 1.10742, 1.10742, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.SegoeuiItalicFactors = SegoeuiItalicFactors; +const SegoeuiItalicMetrics = { + lineHeight: 1.33008, + lineGap: 0 +}; +exports.SegoeuiItalicMetrics = SegoeuiItalicMetrics; +const SegoeuiRegularFactors = [1.76738, 1, 1, 0.98594, 1.02285, 1.10454, 1.06234, 0.96927, 0.92037, 1.19985, 1.2046, 0.90616, 0.90616, 1.07152, 1.1714, 0.78032, 1.20088, 0.78032, 1.40246, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.78032, 0.78032, 1.1714, 1.1714, 1.1714, 0.80597, 0.94084, 0.96706, 0.85944, 0.85734, 0.97093, 0.75842, 0.79936, 0.88198, 0.9831, 0.95782, 0.71387, 0.86969, 0.84636, 1.07796, 1.03584, 0.96924, 0.83968, 0.96924, 0.82826, 0.79649, 0.85771, 0.95132, 0.93119, 0.98965, 0.88433, 0.8287, 0.93365, 1.08612, 1.3638, 1.08612, 1.45786, 0.74627, 0.80499, 0.91484, 1.05707, 0.92383, 1.05882, 0.9403, 1.12654, 1.05882, 1.01756, 1.09011, 1.09011, 0.99414, 1.09011, 1.034, 1.01756, 1.05356, 1.05707, 1.05882, 1.04399, 0.84863, 1.21968, 1.01756, 0.95801, 1.00068, 0.91797, 0.96777, 0.9043, 0.90351, 0.92105, 0.90351, 1.1714, 0.85337, 0.96927, 0.96927, 0.99912, 0.96927, 0.92105, 0.80597, 1.2434, 1.20808, 1.05937, 0.90957, 1.1714, 1.20808, 0.75155, 0.94261, 1.24644, 1.09971, 1.09971, 0.84751, 1, 0.85273, 0.78032, 0.61584, 1.05425, 1.17914, 0.90957, 1.08665, 1.11593, 1.14169, 0.73381, 0.96706, 0.96706, 0.96706, 0.96706, 0.96706, 0.96706, 0.86035, 0.85734, 0.75842, 0.75842, 0.75842, 0.75842, 0.95782, 0.95782, 0.95782, 0.95782, 0.97093, 1.03584, 0.96924, 0.96924, 0.96924, 0.96924, 0.96924, 1.1714, 0.96924, 0.95132, 0.95132, 0.95132, 0.95132, 0.8287, 0.83968, 0.89049, 0.91484, 0.91484, 0.91484, 0.91484, 0.91484, 0.91484, 0.93575, 0.92383, 0.9403, 0.9403, 0.9403, 0.9403, 0.8717, 0.8717, 0.8717, 0.8717, 1.00527, 1.01756, 1.05356, 1.05356, 1.05356, 1.05356, 1.05356, 1.24644, 0.95923, 1.01756, 1.01756, 1.01756, 1.01756, 0.96777, 1.05707, 0.96777, 0.96706, 0.91484, 0.96706, 0.91484, 0.96706, 0.91484, 0.85734, 0.92383, 0.85734, 0.92383, 0.85734, 0.92383, 0.85734, 0.92383, 0.97093, 1.0969, 0.97093, 1.05882, 0.75842, 0.9403, 0.75842, 0.9403, 0.75842, 0.9403, 0.75842, 0.9403, 0.75842, 0.9403, 0.88198, 1.05882, 0.88198, 1.05882, 0.88198, 1.05882, 1, 1, 0.9831, 1.01756, 0.9831, 1.01756, 0.95782, 0.8717, 0.95782, 0.8717, 0.95782, 0.8717, 0.95782, 1.09011, 0.95782, 0.8717, 0.84784, 1.11551, 0.71387, 1.09011, 1, 1, 0.99414, 0.84636, 1.09011, 1, 1, 0.84636, 1.0536, 0.84636, 0.94298, 0.84636, 1.23297, 1.03584, 1.01756, 1, 1, 1.03584, 1.01756, 1.00323, 1.03444, 1.01756, 0.96924, 1.05356, 0.96924, 1.05356, 0.96924, 1.05356, 0.93066, 0.98293, 0.82826, 1.04399, 1, 1, 0.82826, 1.04399, 0.79649, 0.84863, 0.79649, 0.84863, 0.79649, 0.84863, 0.79649, 0.84863, 1, 1, 0.85771, 1.17318, 0.85771, 1.21968, 0.95132, 1.01756, 0.95132, 1.01756, 0.95132, 1.01756, 0.95132, 1.01756, 0.95132, 1.01756, 0.95132, 1.01756, 0.98965, 1.00068, 0.8287, 0.96777, 0.8287, 0.93365, 0.9043, 0.93365, 0.9043, 0.93365, 0.9043, 1.08571, 0.96927, 0.96706, 0.91484, 0.86035, 0.93575, 0.96924, 0.95923, 1, 1, 0.85771, 1.21968, 1.11437, 1.11437, 0.93109, 0.91202, 0.60411, 0.84164, 0.55572, 1.01173, 0.97361, 0.81818, 0.81818, 0.96635, 0.78032, 0.72727, 0.92366, 0.98601, 1.03405, 0.77968, 1.09799, 1.2, 0.96706, 0.85944, 0.85638, 0.96491, 0.75842, 0.93365, 0.9831, 0.96924, 0.95782, 0.86969, 0.94152, 1.07796, 1.03584, 0.78437, 0.96924, 0.98715, 0.83968, 0.83491, 0.85771, 0.8287, 0.94492, 0.88433, 0.9287, 1.0098, 0.95782, 0.8287, 1.0625, 0.98248, 1.03424, 1.2, 1.01071, 1.0625, 0.95246, 1.03809, 1.04912, 0.98248, 1.00221, 1.03424, 1.05443, 1.2, 1.04785, 0.99609, 1.00169, 1.05176, 0.99346, 1.05356, 0.9087, 1.03004, 0.95542, 0.93117, 1.23362, 1.01071, 1.07831, 1.02512, 1.05205, 1.03502, 1.2, 1.01071, 1.05356, 1.01071, 1.03502, 0.75842, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.03719, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.9403, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.04021, 1, 1, 1, 1, 1, 1, 0.98965, 1.00068, 0.98965, 1.00068, 0.98965, 1.00068, 0.8287, 0.96777, 1, 1.20088, 0.89903, 1, 1, 0.75155, 1.03077, 1.03077, 1.03077, 1.03077, 1.13196, 1.13196, 1.13196, 0.67428, 0.67428, 1.16039, 0.73291, 1.20996, 1.22135, 1.06483, 0.94868, 0.94868, 0.95996, 1.24633, 1, 1.07497, 0.87796, 0.96927, 1.01518, 0.96927, 1, 1, 1, 0.77295, 1, 1, 1.10539, 1.10539, 1.11358, 1.06967, 0.86279, 0.94434, 0.86279, 0.94434, 0.86182, 1, 1, 1.083, 1, 0.91578, 0.86507, 1.1714, 1.18416, 1.14589, 0.69825, 0.97622, 1.9697, 1.24822, 1.24822, 1.17238, 1.24822, 1.24822, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.42603, 1, 0.99862, 0.99862, 1, 0.87025, 0.87025, 0.87025, 0.87025, 1.18083, 1.42603, 1, 1.42603, 1.42603, 0.99862, 1, 1, 1, 1, 1, 1.2886, 1.04315, 1.15296, 1.34163, 1, 1, 1, 1.10938, 1.10938, 1, 1, 1, 1.05425, 1.09971, 1.09971, 1.09971, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; +exports.SegoeuiRegularFactors = SegoeuiRegularFactors; +const SegoeuiRegularMetrics = { + lineHeight: 1.33008, + lineGap: 0 +}; +exports.SegoeuiRegularMetrics = SegoeuiRegularMetrics; + +/***/ }), +/* 57 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PostScriptEvaluator = exports.PostScriptCompiler = exports.PDFFunctionFactory = void 0; +exports.isPDFFunction = isPDFFunction; + +var _primitives = __w_pdfjs_require__(5); + +var _util = __w_pdfjs_require__(2); + +var _ps_parser = __w_pdfjs_require__(58); + +var _base_stream = __w_pdfjs_require__(7); + +var _image_utils = __w_pdfjs_require__(59); + +class PDFFunctionFactory { + constructor({ + xref, + isEvalSupported = true + }) { + this.xref = xref; + this.isEvalSupported = isEvalSupported !== false; + } + + create(fn) { + const cachedFunction = this.getCached(fn); + + if (cachedFunction) { + return cachedFunction; + } + + const parsedFunction = PDFFunction.parse({ + xref: this.xref, + isEvalSupported: this.isEvalSupported, + fn: fn instanceof _primitives.Ref ? this.xref.fetch(fn) : fn + }); + + this._cache(fn, parsedFunction); + + return parsedFunction; + } + + createFromArray(fnObj) { + const cachedFunction = this.getCached(fnObj); + + if (cachedFunction) { + return cachedFunction; + } + + const parsedFunction = PDFFunction.parseArray({ + xref: this.xref, + isEvalSupported: this.isEvalSupported, + fnObj: fnObj instanceof _primitives.Ref ? this.xref.fetch(fnObj) : fnObj + }); + + this._cache(fnObj, parsedFunction); + + return parsedFunction; + } + + getCached(cacheKey) { + let fnRef; + + if (cacheKey instanceof _primitives.Ref) { + fnRef = cacheKey; + } else if (cacheKey instanceof _primitives.Dict) { + fnRef = cacheKey.objId; + } else if (cacheKey instanceof _base_stream.BaseStream) { + fnRef = cacheKey.dict && cacheKey.dict.objId; + } + + if (fnRef) { + const localFunction = this._localFunctionCache.getByRef(fnRef); + + if (localFunction) { + return localFunction; + } + } + + return null; + } + + _cache(cacheKey, parsedFunction) { + if (!parsedFunction) { + throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.'); + } + + let fnRef; + + if (cacheKey instanceof _primitives.Ref) { + fnRef = cacheKey; + } else if (cacheKey instanceof _primitives.Dict) { + fnRef = cacheKey.objId; + } else if (cacheKey instanceof _base_stream.BaseStream) { + fnRef = cacheKey.dict && cacheKey.dict.objId; + } + + if (fnRef) { + this._localFunctionCache.set(null, fnRef, parsedFunction); + } + } + + get _localFunctionCache() { + return (0, _util.shadow)(this, "_localFunctionCache", new _image_utils.LocalFunctionCache()); + } + +} + +exports.PDFFunctionFactory = PDFFunctionFactory; + +function toNumberArray(arr) { + if (!Array.isArray(arr)) { + return null; + } + + const length = arr.length; + + for (let i = 0; i < length; i++) { + if (typeof arr[i] !== "number") { + const result = new Array(length); + + for (let j = 0; j < length; j++) { + result[j] = +arr[j]; + } + + return result; + } + } + + return arr; +} + +class PDFFunction { + static getSampleArray(size, outputSize, bps, stream) { + let i, ii; + let length = 1; + + for (i = 0, ii = size.length; i < ii; i++) { + length *= size[i]; + } + + length *= outputSize; + const array = new Array(length); + let codeSize = 0; + let codeBuf = 0; + const sampleMul = 1.0 / (2.0 ** bps - 1); + const strBytes = stream.getBytes((length * bps + 7) / 8); + let strIdx = 0; + + for (i = 0; i < length; i++) { + while (codeSize < bps) { + codeBuf <<= 8; + codeBuf |= strBytes[strIdx++]; + codeSize += 8; + } + + codeSize -= bps; + array[i] = (codeBuf >> codeSize) * sampleMul; + codeBuf &= (1 << codeSize) - 1; + } + + return array; + } + + static parse({ + xref, + isEvalSupported, + fn + }) { + const dict = fn.dict || fn; + const typeNum = dict.get("FunctionType"); + + switch (typeNum) { + case 0: + return this.constructSampled({ + xref, + isEvalSupported, + fn, + dict + }); + + case 1: + break; + + case 2: + return this.constructInterpolated({ + xref, + isEvalSupported, + dict + }); + + case 3: + return this.constructStiched({ + xref, + isEvalSupported, + dict + }); + + case 4: + return this.constructPostScript({ + xref, + isEvalSupported, + fn, + dict + }); + } + + throw new _util.FormatError("Unknown type of function"); + } + + static parseArray({ + xref, + isEvalSupported, + fnObj + }) { + if (!Array.isArray(fnObj)) { + return this.parse({ + xref, + isEvalSupported, + fn: fnObj + }); + } + + const fnArray = []; + + for (let j = 0, jj = fnObj.length; j < jj; j++) { + fnArray.push(this.parse({ + xref, + isEvalSupported, + fn: xref.fetchIfRef(fnObj[j]) + })); + } + + return function (src, srcOffset, dest, destOffset) { + for (let i = 0, ii = fnArray.length; i < ii; i++) { + fnArray[i](src, srcOffset, dest, destOffset + i); + } + }; + } + + static constructSampled({ + xref, + isEvalSupported, + fn, + dict + }) { + function toMultiArray(arr) { + const inputLength = arr.length; + const out = []; + let index = 0; + + for (let i = 0; i < inputLength; i += 2) { + out[index++] = [arr[i], arr[i + 1]]; + } + + return out; + } + + function interpolate(x, xmin, xmax, ymin, ymax) { + return ymin + (x - xmin) * ((ymax - ymin) / (xmax - xmin)); + } + + let domain = toNumberArray(dict.getArray("Domain")); + let range = toNumberArray(dict.getArray("Range")); + + if (!domain || !range) { + throw new _util.FormatError("No domain or range"); + } + + const inputSize = domain.length / 2; + const outputSize = range.length / 2; + domain = toMultiArray(domain); + range = toMultiArray(range); + const size = toNumberArray(dict.getArray("Size")); + const bps = dict.get("BitsPerSample"); + const order = dict.get("Order") || 1; + + if (order !== 1) { + (0, _util.info)("No support for cubic spline interpolation: " + order); + } + + let encode = toNumberArray(dict.getArray("Encode")); + + if (!encode) { + encode = []; + + for (let i = 0; i < inputSize; ++i) { + encode.push([0, size[i] - 1]); + } + } else { + encode = toMultiArray(encode); + } + + let decode = toNumberArray(dict.getArray("Decode")); + + if (!decode) { + decode = range; + } else { + decode = toMultiArray(decode); + } + + const samples = this.getSampleArray(size, outputSize, bps, fn); + return function constructSampledFn(src, srcOffset, dest, destOffset) { + const cubeVertices = 1 << inputSize; + const cubeN = new Float64Array(cubeVertices); + const cubeVertex = new Uint32Array(cubeVertices); + let i, j; + + for (j = 0; j < cubeVertices; j++) { + cubeN[j] = 1; + } + + let k = outputSize, + pos = 1; + + for (i = 0; i < inputSize; ++i) { + const domain_2i = domain[i][0]; + const domain_2i_1 = domain[i][1]; + const xi = Math.min(Math.max(src[srcOffset + i], domain_2i), domain_2i_1); + let e = interpolate(xi, domain_2i, domain_2i_1, encode[i][0], encode[i][1]); + const size_i = size[i]; + e = Math.min(Math.max(e, 0), size_i - 1); + const e0 = e < size_i - 1 ? Math.floor(e) : e - 1; + const n0 = e0 + 1 - e; + const n1 = e - e0; + const offset0 = e0 * k; + const offset1 = offset0 + k; + + for (j = 0; j < cubeVertices; j++) { + if (j & pos) { + cubeN[j] *= n1; + cubeVertex[j] += offset1; + } else { + cubeN[j] *= n0; + cubeVertex[j] += offset0; + } + } + + k *= size_i; + pos <<= 1; + } + + for (j = 0; j < outputSize; ++j) { + let rj = 0; + + for (i = 0; i < cubeVertices; i++) { + rj += samples[cubeVertex[i] + j] * cubeN[i]; + } + + rj = interpolate(rj, 0, 1, decode[j][0], decode[j][1]); + dest[destOffset + j] = Math.min(Math.max(rj, range[j][0]), range[j][1]); + } + }; + } + + static constructInterpolated({ + xref, + isEvalSupported, + dict + }) { + const c0 = toNumberArray(dict.getArray("C0")) || [0]; + const c1 = toNumberArray(dict.getArray("C1")) || [1]; + const n = dict.get("N"); + const diff = []; + + for (let i = 0, ii = c0.length; i < ii; ++i) { + diff.push(c1[i] - c0[i]); + } + + const length = diff.length; + return function constructInterpolatedFn(src, srcOffset, dest, destOffset) { + const x = n === 1 ? src[srcOffset] : src[srcOffset] ** n; + + for (let j = 0; j < length; ++j) { + dest[destOffset + j] = c0[j] + x * diff[j]; + } + }; + } + + static constructStiched({ + xref, + isEvalSupported, + dict + }) { + const domain = toNumberArray(dict.getArray("Domain")); + + if (!domain) { + throw new _util.FormatError("No domain"); + } + + const inputSize = domain.length / 2; + + if (inputSize !== 1) { + throw new _util.FormatError("Bad domain for stiched function"); + } + + const fnRefs = dict.get("Functions"); + const fns = []; + + for (let i = 0, ii = fnRefs.length; i < ii; ++i) { + fns.push(this.parse({ + xref, + isEvalSupported, + fn: xref.fetchIfRef(fnRefs[i]) + })); + } + + const bounds = toNumberArray(dict.getArray("Bounds")); + const encode = toNumberArray(dict.getArray("Encode")); + const tmpBuf = new Float32Array(1); + return function constructStichedFn(src, srcOffset, dest, destOffset) { + const clip = function constructStichedFromIRClip(v, min, max) { + if (v > max) { + v = max; + } else if (v < min) { + v = min; + } + + return v; + }; + + const v = clip(src[srcOffset], domain[0], domain[1]); + const length = bounds.length; + let i; + + for (i = 0; i < length; ++i) { + if (v < bounds[i]) { + break; + } + } + + let dmin = domain[0]; + + if (i > 0) { + dmin = bounds[i - 1]; + } + + let dmax = domain[1]; + + if (i < bounds.length) { + dmax = bounds[i]; + } + + const rmin = encode[2 * i]; + const rmax = encode[2 * i + 1]; + tmpBuf[0] = dmin === dmax ? rmin : rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin); + fns[i](tmpBuf, 0, dest, destOffset); + }; + } + + static constructPostScript({ + xref, + isEvalSupported, + fn, + dict + }) { + const domain = toNumberArray(dict.getArray("Domain")); + const range = toNumberArray(dict.getArray("Range")); + + if (!domain) { + throw new _util.FormatError("No domain."); + } + + if (!range) { + throw new _util.FormatError("No range."); + } + + const lexer = new _ps_parser.PostScriptLexer(fn); + const parser = new _ps_parser.PostScriptParser(lexer); + const code = parser.parse(); + + if (isEvalSupported && _util.FeatureTest.isEvalSupported) { + const compiled = new PostScriptCompiler().compile(code, domain, range); + + if (compiled) { + return new Function("src", "srcOffset", "dest", "destOffset", compiled); + } + } + + (0, _util.info)("Unable to compile PS function"); + const numOutputs = range.length >> 1; + const numInputs = domain.length >> 1; + const evaluator = new PostScriptEvaluator(code); + const cache = Object.create(null); + const MAX_CACHE_SIZE = 2048 * 4; + let cache_available = MAX_CACHE_SIZE; + const tmpBuf = new Float32Array(numInputs); + return function constructPostScriptFn(src, srcOffset, dest, destOffset) { + let i, value; + let key = ""; + const input = tmpBuf; + + for (i = 0; i < numInputs; i++) { + value = src[srcOffset + i]; + input[i] = value; + key += value + "_"; + } + + const cachedValue = cache[key]; + + if (cachedValue !== undefined) { + dest.set(cachedValue, destOffset); + return; + } + + const output = new Float32Array(numOutputs); + const stack = evaluator.execute(input); + const stackIndex = stack.length - numOutputs; + + for (i = 0; i < numOutputs; i++) { + value = stack[stackIndex + i]; + let bound = range[i * 2]; + + if (value < bound) { + value = bound; + } else { + bound = range[i * 2 + 1]; + + if (value > bound) { + value = bound; + } + } + + output[i] = value; + } + + if (cache_available > 0) { + cache_available--; + cache[key] = output; + } + + dest.set(output, destOffset); + }; + } + +} + +function isPDFFunction(v) { + let fnDict; + + if (typeof v !== "object") { + return false; + } else if (v instanceof _primitives.Dict) { + fnDict = v; + } else if (v instanceof _base_stream.BaseStream) { + fnDict = v.dict; + } else { + return false; + } + + return fnDict.has("FunctionType"); +} + +class PostScriptStack { + static get MAX_STACK_SIZE() { + return (0, _util.shadow)(this, "MAX_STACK_SIZE", 100); + } + + constructor(initialStack) { + this.stack = !initialStack ? [] : Array.prototype.slice.call(initialStack, 0); + } + + push(value) { + if (this.stack.length >= PostScriptStack.MAX_STACK_SIZE) { + throw new Error("PostScript function stack overflow."); + } + + this.stack.push(value); + } + + pop() { + if (this.stack.length <= 0) { + throw new Error("PostScript function stack underflow."); + } + + return this.stack.pop(); + } + + copy(n) { + if (this.stack.length + n >= PostScriptStack.MAX_STACK_SIZE) { + throw new Error("PostScript function stack overflow."); + } + + const stack = this.stack; + + for (let i = stack.length - n, j = n - 1; j >= 0; j--, i++) { + stack.push(stack[i]); + } + } + + index(n) { + this.push(this.stack[this.stack.length - n - 1]); + } + + roll(n, p) { + const stack = this.stack; + const l = stack.length - n; + const r = stack.length - 1; + const c = l + (p - Math.floor(p / n) * n); + + for (let i = l, j = r; i < j; i++, j--) { + const t = stack[i]; + stack[i] = stack[j]; + stack[j] = t; + } + + for (let i = l, j = c - 1; i < j; i++, j--) { + const t = stack[i]; + stack[i] = stack[j]; + stack[j] = t; + } + + for (let i = c, j = r; i < j; i++, j--) { + const t = stack[i]; + stack[i] = stack[j]; + stack[j] = t; + } + } + +} + +class PostScriptEvaluator { + constructor(operators) { + this.operators = operators; + } + + execute(initialStack) { + const stack = new PostScriptStack(initialStack); + let counter = 0; + const operators = this.operators; + const length = operators.length; + let operator, a, b; + + while (counter < length) { + operator = operators[counter++]; + + if (typeof operator === "number") { + stack.push(operator); + continue; + } + + switch (operator) { + case "jz": + b = stack.pop(); + a = stack.pop(); + + if (!a) { + counter = b; + } + + break; + + case "j": + a = stack.pop(); + counter = a; + break; + + case "abs": + a = stack.pop(); + stack.push(Math.abs(a)); + break; + + case "add": + b = stack.pop(); + a = stack.pop(); + stack.push(a + b); + break; + + case "and": + b = stack.pop(); + a = stack.pop(); + + if (typeof a === "boolean" && typeof b === "boolean") { + stack.push(a && b); + } else { + stack.push(a & b); + } + + break; + + case "atan": + a = stack.pop(); + stack.push(Math.atan(a)); + break; + + case "bitshift": + b = stack.pop(); + a = stack.pop(); + + if (a > 0) { + stack.push(a << b); + } else { + stack.push(a >> b); + } + + break; + + case "ceiling": + a = stack.pop(); + stack.push(Math.ceil(a)); + break; + + case "copy": + a = stack.pop(); + stack.copy(a); + break; + + case "cos": + a = stack.pop(); + stack.push(Math.cos(a)); + break; + + case "cvi": + a = stack.pop() | 0; + stack.push(a); + break; + + case "cvr": + break; + + case "div": + b = stack.pop(); + a = stack.pop(); + stack.push(a / b); + break; + + case "dup": + stack.copy(1); + break; + + case "eq": + b = stack.pop(); + a = stack.pop(); + stack.push(a === b); + break; + + case "exch": + stack.roll(2, 1); + break; + + case "exp": + b = stack.pop(); + a = stack.pop(); + stack.push(a ** b); + break; + + case "false": + stack.push(false); + break; + + case "floor": + a = stack.pop(); + stack.push(Math.floor(a)); + break; + + case "ge": + b = stack.pop(); + a = stack.pop(); + stack.push(a >= b); + break; + + case "gt": + b = stack.pop(); + a = stack.pop(); + stack.push(a > b); + break; + + case "idiv": + b = stack.pop(); + a = stack.pop(); + stack.push(a / b | 0); + break; + + case "index": + a = stack.pop(); + stack.index(a); + break; + + case "le": + b = stack.pop(); + a = stack.pop(); + stack.push(a <= b); + break; + + case "ln": + a = stack.pop(); + stack.push(Math.log(a)); + break; + + case "log": + a = stack.pop(); + stack.push(Math.log(a) / Math.LN10); + break; + + case "lt": + b = stack.pop(); + a = stack.pop(); + stack.push(a < b); + break; + + case "mod": + b = stack.pop(); + a = stack.pop(); + stack.push(a % b); + break; + + case "mul": + b = stack.pop(); + a = stack.pop(); + stack.push(a * b); + break; + + case "ne": + b = stack.pop(); + a = stack.pop(); + stack.push(a !== b); + break; + + case "neg": + a = stack.pop(); + stack.push(-a); + break; + + case "not": + a = stack.pop(); + + if (typeof a === "boolean") { + stack.push(!a); + } else { + stack.push(~a); + } + + break; + + case "or": + b = stack.pop(); + a = stack.pop(); + + if (typeof a === "boolean" && typeof b === "boolean") { + stack.push(a || b); + } else { + stack.push(a | b); + } + + break; + + case "pop": + stack.pop(); + break; + + case "roll": + b = stack.pop(); + a = stack.pop(); + stack.roll(a, b); + break; + + case "round": + a = stack.pop(); + stack.push(Math.round(a)); + break; + + case "sin": + a = stack.pop(); + stack.push(Math.sin(a)); + break; + + case "sqrt": + a = stack.pop(); + stack.push(Math.sqrt(a)); + break; + + case "sub": + b = stack.pop(); + a = stack.pop(); + stack.push(a - b); + break; + + case "true": + stack.push(true); + break; + + case "truncate": + a = stack.pop(); + a = a < 0 ? Math.ceil(a) : Math.floor(a); + stack.push(a); + break; + + case "xor": + b = stack.pop(); + a = stack.pop(); + + if (typeof a === "boolean" && typeof b === "boolean") { + stack.push(a !== b); + } else { + stack.push(a ^ b); + } + + break; + + default: + throw new _util.FormatError(`Unknown operator ${operator}`); + } + } + + return stack.stack; + } + +} + +exports.PostScriptEvaluator = PostScriptEvaluator; + +class AstNode { + constructor(type) { + this.type = type; + } + + visit(visitor) { + (0, _util.unreachable)("abstract method"); + } + +} + +class AstArgument extends AstNode { + constructor(index, min, max) { + super("args"); + this.index = index; + this.min = min; + this.max = max; + } + + visit(visitor) { + visitor.visitArgument(this); + } + +} + +class AstLiteral extends AstNode { + constructor(number) { + super("literal"); + this.number = number; + this.min = number; + this.max = number; + } + + visit(visitor) { + visitor.visitLiteral(this); + } + +} + +class AstBinaryOperation extends AstNode { + constructor(op, arg1, arg2, min, max) { + super("binary"); + this.op = op; + this.arg1 = arg1; + this.arg2 = arg2; + this.min = min; + this.max = max; + } + + visit(visitor) { + visitor.visitBinaryOperation(this); + } + +} + +class AstMin extends AstNode { + constructor(arg, max) { + super("max"); + this.arg = arg; + this.min = arg.min; + this.max = max; + } + + visit(visitor) { + visitor.visitMin(this); + } + +} + +class AstVariable extends AstNode { + constructor(index, min, max) { + super("var"); + this.index = index; + this.min = min; + this.max = max; + } + + visit(visitor) { + visitor.visitVariable(this); + } + +} + +class AstVariableDefinition extends AstNode { + constructor(variable, arg) { + super("definition"); + this.variable = variable; + this.arg = arg; + } + + visit(visitor) { + visitor.visitVariableDefinition(this); + } + +} + +class ExpressionBuilderVisitor { + constructor() { + this.parts = []; + } + + visitArgument(arg) { + this.parts.push("Math.max(", arg.min, ", Math.min(", arg.max, ", src[srcOffset + ", arg.index, "]))"); + } + + visitVariable(variable) { + this.parts.push("v", variable.index); + } + + visitLiteral(literal) { + this.parts.push(literal.number); + } + + visitBinaryOperation(operation) { + this.parts.push("("); + operation.arg1.visit(this); + this.parts.push(" ", operation.op, " "); + operation.arg2.visit(this); + this.parts.push(")"); + } + + visitVariableDefinition(definition) { + this.parts.push("var "); + definition.variable.visit(this); + this.parts.push(" = "); + definition.arg.visit(this); + this.parts.push(";"); + } + + visitMin(max) { + this.parts.push("Math.min("); + max.arg.visit(this); + this.parts.push(", ", max.max, ")"); + } + + toString() { + return this.parts.join(""); + } + +} + +function buildAddOperation(num1, num2) { + if (num2.type === "literal" && num2.number === 0) { + return num1; + } + + if (num1.type === "literal" && num1.number === 0) { + return num2; + } + + if (num2.type === "literal" && num1.type === "literal") { + return new AstLiteral(num1.number + num2.number); + } + + return new AstBinaryOperation("+", num1, num2, num1.min + num2.min, num1.max + num2.max); +} + +function buildMulOperation(num1, num2) { + if (num2.type === "literal") { + if (num2.number === 0) { + return new AstLiteral(0); + } else if (num2.number === 1) { + return num1; + } else if (num1.type === "literal") { + return new AstLiteral(num1.number * num2.number); + } + } + + if (num1.type === "literal") { + if (num1.number === 0) { + return new AstLiteral(0); + } else if (num1.number === 1) { + return num2; + } + } + + const min = Math.min(num1.min * num2.min, num1.min * num2.max, num1.max * num2.min, num1.max * num2.max); + const max = Math.max(num1.min * num2.min, num1.min * num2.max, num1.max * num2.min, num1.max * num2.max); + return new AstBinaryOperation("*", num1, num2, min, max); +} + +function buildSubOperation(num1, num2) { + if (num2.type === "literal") { + if (num2.number === 0) { + return num1; + } else if (num1.type === "literal") { + return new AstLiteral(num1.number - num2.number); + } + } + + if (num2.type === "binary" && num2.op === "-" && num1.type === "literal" && num1.number === 1 && num2.arg1.type === "literal" && num2.arg1.number === 1) { + return num2.arg2; + } + + return new AstBinaryOperation("-", num1, num2, num1.min - num2.max, num1.max - num2.min); +} + +function buildMinOperation(num1, max) { + if (num1.min >= max) { + return new AstLiteral(max); + } else if (num1.max <= max) { + return num1; + } + + return new AstMin(num1, max); +} + +class PostScriptCompiler { + compile(code, domain, range) { + const stack = []; + const instructions = []; + const inputSize = domain.length >> 1, + outputSize = range.length >> 1; + let lastRegister = 0; + let n, j; + let num1, num2, ast1, ast2, tmpVar, item; + + for (let i = 0; i < inputSize; i++) { + stack.push(new AstArgument(i, domain[i * 2], domain[i * 2 + 1])); + } + + for (let i = 0, ii = code.length; i < ii; i++) { + item = code[i]; + + if (typeof item === "number") { + stack.push(new AstLiteral(item)); + continue; + } + + switch (item) { + case "add": + if (stack.length < 2) { + return null; + } + + num2 = stack.pop(); + num1 = stack.pop(); + stack.push(buildAddOperation(num1, num2)); + break; + + case "cvr": + if (stack.length < 1) { + return null; + } + + break; + + case "mul": + if (stack.length < 2) { + return null; + } + + num2 = stack.pop(); + num1 = stack.pop(); + stack.push(buildMulOperation(num1, num2)); + break; + + case "sub": + if (stack.length < 2) { + return null; + } + + num2 = stack.pop(); + num1 = stack.pop(); + stack.push(buildSubOperation(num1, num2)); + break; + + case "exch": + if (stack.length < 2) { + return null; + } + + ast1 = stack.pop(); + ast2 = stack.pop(); + stack.push(ast1, ast2); + break; + + case "pop": + if (stack.length < 1) { + return null; + } + + stack.pop(); + break; + + case "index": + if (stack.length < 1) { + return null; + } + + num1 = stack.pop(); + + if (num1.type !== "literal") { + return null; + } + + n = num1.number; + + if (n < 0 || !Number.isInteger(n) || stack.length < n) { + return null; + } + + ast1 = stack[stack.length - n - 1]; + + if (ast1.type === "literal" || ast1.type === "var") { + stack.push(ast1); + break; + } + + tmpVar = new AstVariable(lastRegister++, ast1.min, ast1.max); + stack[stack.length - n - 1] = tmpVar; + stack.push(tmpVar); + instructions.push(new AstVariableDefinition(tmpVar, ast1)); + break; + + case "dup": + if (stack.length < 1) { + return null; + } + + if (typeof code[i + 1] === "number" && code[i + 2] === "gt" && code[i + 3] === i + 7 && code[i + 4] === "jz" && code[i + 5] === "pop" && code[i + 6] === code[i + 1]) { + num1 = stack.pop(); + stack.push(buildMinOperation(num1, code[i + 1])); + i += 6; + break; + } + + ast1 = stack.at(-1); + + if (ast1.type === "literal" || ast1.type === "var") { + stack.push(ast1); + break; + } + + tmpVar = new AstVariable(lastRegister++, ast1.min, ast1.max); + stack[stack.length - 1] = tmpVar; + stack.push(tmpVar); + instructions.push(new AstVariableDefinition(tmpVar, ast1)); + break; + + case "roll": + if (stack.length < 2) { + return null; + } + + num2 = stack.pop(); + num1 = stack.pop(); + + if (num2.type !== "literal" || num1.type !== "literal") { + return null; + } + + j = num2.number; + n = num1.number; + + if (n <= 0 || !Number.isInteger(n) || !Number.isInteger(j) || stack.length < n) { + return null; + } + + j = (j % n + n) % n; + + if (j === 0) { + break; + } + + Array.prototype.push.apply(stack, stack.splice(stack.length - n, n - j)); + break; + + default: + return null; + } + } + + if (stack.length !== outputSize) { + return null; + } + + const result = []; + + for (const instruction of instructions) { + const statementBuilder = new ExpressionBuilderVisitor(); + instruction.visit(statementBuilder); + result.push(statementBuilder.toString()); + } + + for (let i = 0, ii = stack.length; i < ii; i++) { + const expr = stack[i], + statementBuilder = new ExpressionBuilderVisitor(); + expr.visit(statementBuilder); + const min = range[i * 2], + max = range[i * 2 + 1]; + const out = [statementBuilder.toString()]; + + if (min > expr.min) { + out.unshift("Math.max(", min, ", "); + out.push(")"); + } + + if (max < expr.max) { + out.unshift("Math.min(", max, ", "); + out.push(")"); + } + + out.unshift("dest[destOffset + ", i, "] = "); + out.push(";"); + result.push(out.join("")); + } + + return result.join("\n"); + } + +} + +exports.PostScriptCompiler = PostScriptCompiler; + +/***/ }), +/* 58 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PostScriptParser = exports.PostScriptLexer = void 0; + +var _util = __w_pdfjs_require__(2); + +var _primitives = __w_pdfjs_require__(5); + +var _core_utils = __w_pdfjs_require__(6); + +class PostScriptParser { + constructor(lexer) { + this.lexer = lexer; + this.operators = []; + this.token = null; + this.prev = null; + } + + nextToken() { + this.prev = this.token; + this.token = this.lexer.getToken(); + } + + accept(type) { + if (this.token.type === type) { + this.nextToken(); + return true; + } + + return false; + } + + expect(type) { + if (this.accept(type)) { + return true; + } + + throw new _util.FormatError(`Unexpected symbol: found ${this.token.type} expected ${type}.`); + } + + parse() { + this.nextToken(); + this.expect(PostScriptTokenTypes.LBRACE); + this.parseBlock(); + this.expect(PostScriptTokenTypes.RBRACE); + return this.operators; + } + + parseBlock() { + while (true) { + if (this.accept(PostScriptTokenTypes.NUMBER)) { + this.operators.push(this.prev.value); + } else if (this.accept(PostScriptTokenTypes.OPERATOR)) { + this.operators.push(this.prev.value); + } else if (this.accept(PostScriptTokenTypes.LBRACE)) { + this.parseCondition(); + } else { + return; + } + } + } + + parseCondition() { + const conditionLocation = this.operators.length; + this.operators.push(null, null); + this.parseBlock(); + this.expect(PostScriptTokenTypes.RBRACE); + + if (this.accept(PostScriptTokenTypes.IF)) { + this.operators[conditionLocation] = this.operators.length; + this.operators[conditionLocation + 1] = "jz"; + } else if (this.accept(PostScriptTokenTypes.LBRACE)) { + const jumpLocation = this.operators.length; + this.operators.push(null, null); + const endOfTrue = this.operators.length; + this.parseBlock(); + this.expect(PostScriptTokenTypes.RBRACE); + this.expect(PostScriptTokenTypes.IFELSE); + this.operators[jumpLocation] = this.operators.length; + this.operators[jumpLocation + 1] = "j"; + this.operators[conditionLocation] = endOfTrue; + this.operators[conditionLocation + 1] = "jz"; + } else { + throw new _util.FormatError("PS Function: error parsing conditional."); + } + } + +} + +exports.PostScriptParser = PostScriptParser; +const PostScriptTokenTypes = { + LBRACE: 0, + RBRACE: 1, + NUMBER: 2, + OPERATOR: 3, + IF: 4, + IFELSE: 5 +}; + +class PostScriptToken { + static get opCache() { + return (0, _util.shadow)(this, "opCache", Object.create(null)); + } + + constructor(type, value) { + this.type = type; + this.value = value; + } + + static getOperator(op) { + const opValue = PostScriptToken.opCache[op]; + + if (opValue) { + return opValue; + } + + return PostScriptToken.opCache[op] = new PostScriptToken(PostScriptTokenTypes.OPERATOR, op); + } + + static get LBRACE() { + return (0, _util.shadow)(this, "LBRACE", new PostScriptToken(PostScriptTokenTypes.LBRACE, "{")); + } + + static get RBRACE() { + return (0, _util.shadow)(this, "RBRACE", new PostScriptToken(PostScriptTokenTypes.RBRACE, "}")); + } + + static get IF() { + return (0, _util.shadow)(this, "IF", new PostScriptToken(PostScriptTokenTypes.IF, "IF")); + } + + static get IFELSE() { + return (0, _util.shadow)(this, "IFELSE", new PostScriptToken(PostScriptTokenTypes.IFELSE, "IFELSE")); + } + +} + +class PostScriptLexer { + constructor(stream) { + this.stream = stream; + this.nextChar(); + this.strBuf = []; + } + + nextChar() { + return this.currentChar = this.stream.getByte(); + } + + getToken() { + let comment = false; + let ch = this.currentChar; + + while (true) { + if (ch < 0) { + return _primitives.EOF; + } + + if (comment) { + if (ch === 0x0a || ch === 0x0d) { + comment = false; + } + } else if (ch === 0x25) { + comment = true; + } else if (!(0, _core_utils.isWhiteSpace)(ch)) { + break; + } + + ch = this.nextChar(); + } + + switch (ch | 0) { + case 0x30: + case 0x31: + case 0x32: + case 0x33: + case 0x34: + case 0x35: + case 0x36: + case 0x37: + case 0x38: + case 0x39: + case 0x2b: + case 0x2d: + case 0x2e: + return new PostScriptToken(PostScriptTokenTypes.NUMBER, this.getNumber()); + + case 0x7b: + this.nextChar(); + return PostScriptToken.LBRACE; + + case 0x7d: + this.nextChar(); + return PostScriptToken.RBRACE; + } + + const strBuf = this.strBuf; + strBuf.length = 0; + strBuf[0] = String.fromCharCode(ch); + + while ((ch = this.nextChar()) >= 0 && (ch >= 0x41 && ch <= 0x5a || ch >= 0x61 && ch <= 0x7a)) { + strBuf.push(String.fromCharCode(ch)); + } + + const str = strBuf.join(""); + + switch (str.toLowerCase()) { + case "if": + return PostScriptToken.IF; + + case "ifelse": + return PostScriptToken.IFELSE; + + default: + return PostScriptToken.getOperator(str); + } + } + + getNumber() { + let ch = this.currentChar; + const strBuf = this.strBuf; + strBuf.length = 0; + strBuf[0] = String.fromCharCode(ch); + + while ((ch = this.nextChar()) >= 0) { + if (ch >= 0x30 && ch <= 0x39 || ch === 0x2d || ch === 0x2e) { + strBuf.push(String.fromCharCode(ch)); + } else { + break; + } + } + + const value = parseFloat(strBuf.join("")); + + if (isNaN(value)) { + throw new _util.FormatError(`Invalid floating point number: ${value}`); + } + + return value; + } + +} + +exports.PostScriptLexer = PostScriptLexer; + +/***/ }), +/* 59 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.LocalTilingPatternCache = exports.LocalImageCache = exports.LocalGStateCache = exports.LocalFunctionCache = exports.LocalColorSpaceCache = exports.GlobalImageCache = void 0; + +var _util = __w_pdfjs_require__(2); + +var _primitives = __w_pdfjs_require__(5); + +class BaseLocalCache { + constructor(options) { + if (this.constructor === BaseLocalCache) { + (0, _util.unreachable)("Cannot initialize BaseLocalCache."); + } + + this._onlyRefs = (options && options.onlyRefs) === true; + + if (!this._onlyRefs) { + this._nameRefMap = new Map(); + this._imageMap = new Map(); + } + + this._imageCache = new _primitives.RefSetCache(); + } + + getByName(name) { + if (this._onlyRefs) { + (0, _util.unreachable)("Should not call `getByName` method."); + } + + const ref = this._nameRefMap.get(name); + + if (ref) { + return this.getByRef(ref); + } + + return this._imageMap.get(name) || null; + } + + getByRef(ref) { + return this._imageCache.get(ref) || null; + } + + set(name, ref, data) { + (0, _util.unreachable)("Abstract method `set` called."); + } + +} + +class LocalImageCache extends BaseLocalCache { + set(name, ref = null, data) { + if (typeof name !== "string") { + throw new Error('LocalImageCache.set - expected "name" argument.'); + } + + if (ref) { + if (this._imageCache.has(ref)) { + return; + } + + this._nameRefMap.set(name, ref); + + this._imageCache.put(ref, data); + + return; + } + + if (this._imageMap.has(name)) { + return; + } + + this._imageMap.set(name, data); + } + +} + +exports.LocalImageCache = LocalImageCache; + +class LocalColorSpaceCache extends BaseLocalCache { + set(name = null, ref = null, data) { + if (typeof name !== "string" && !ref) { + throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.'); + } + + if (ref) { + if (this._imageCache.has(ref)) { + return; + } + + if (name !== null) { + this._nameRefMap.set(name, ref); + } + + this._imageCache.put(ref, data); + + return; + } + + if (this._imageMap.has(name)) { + return; + } + + this._imageMap.set(name, data); + } + +} + +exports.LocalColorSpaceCache = LocalColorSpaceCache; + +class LocalFunctionCache extends BaseLocalCache { + constructor(options) { + super({ + onlyRefs: true + }); + } + + set(name = null, ref, data) { + if (!ref) { + throw new Error('LocalFunctionCache.set - expected "ref" argument.'); + } + + if (this._imageCache.has(ref)) { + return; + } + + this._imageCache.put(ref, data); + } + +} + +exports.LocalFunctionCache = LocalFunctionCache; + +class LocalGStateCache extends BaseLocalCache { + set(name, ref = null, data) { + if (typeof name !== "string") { + throw new Error('LocalGStateCache.set - expected "name" argument.'); + } + + if (ref) { + if (this._imageCache.has(ref)) { + return; + } + + this._nameRefMap.set(name, ref); + + this._imageCache.put(ref, data); + + return; + } + + if (this._imageMap.has(name)) { + return; + } + + this._imageMap.set(name, data); + } + +} + +exports.LocalGStateCache = LocalGStateCache; + +class LocalTilingPatternCache extends BaseLocalCache { + constructor(options) { + super({ + onlyRefs: true + }); + } + + set(name = null, ref, data) { + if (!ref) { + throw new Error('LocalTilingPatternCache.set - expected "ref" argument.'); + } + + if (this._imageCache.has(ref)) { + return; + } + + this._imageCache.put(ref, data); + } + +} + +exports.LocalTilingPatternCache = LocalTilingPatternCache; + +class GlobalImageCache { + static get NUM_PAGES_THRESHOLD() { + return (0, _util.shadow)(this, "NUM_PAGES_THRESHOLD", 2); + } + + static get MIN_IMAGES_TO_CACHE() { + return (0, _util.shadow)(this, "MIN_IMAGES_TO_CACHE", 10); + } + + static get MAX_BYTE_SIZE() { + return (0, _util.shadow)(this, "MAX_BYTE_SIZE", 40e6); + } + + constructor() { + this._refCache = new _primitives.RefSetCache(); + this._imageCache = new _primitives.RefSetCache(); + } + + get _byteSize() { + let byteSize = 0; + + for (const imageData of this._imageCache) { + byteSize += imageData.byteSize; + } + + return byteSize; + } + + get _cacheLimitReached() { + if (this._imageCache.size < GlobalImageCache.MIN_IMAGES_TO_CACHE) { + return false; + } + + if (this._byteSize < GlobalImageCache.MAX_BYTE_SIZE) { + return false; + } + + return true; + } + + shouldCache(ref, pageIndex) { + const pageIndexSet = this._refCache.get(ref); + + const numPages = pageIndexSet ? pageIndexSet.size + (pageIndexSet.has(pageIndex) ? 0 : 1) : 1; + + if (numPages < GlobalImageCache.NUM_PAGES_THRESHOLD) { + return false; + } + + if (!this._imageCache.has(ref) && this._cacheLimitReached) { + return false; + } + + return true; + } + + addPageIndex(ref, pageIndex) { + let pageIndexSet = this._refCache.get(ref); + + if (!pageIndexSet) { + pageIndexSet = new Set(); + + this._refCache.put(ref, pageIndexSet); + } + + pageIndexSet.add(pageIndex); + } + + addByteSize(ref, byteSize) { + const imageData = this._imageCache.get(ref); + + if (!imageData) { + return; + } + + if (imageData.byteSize) { + return; + } + + imageData.byteSize = byteSize; + } + + getData(ref, pageIndex) { + const pageIndexSet = this._refCache.get(ref); + + if (!pageIndexSet) { + return null; + } + + if (pageIndexSet.size < GlobalImageCache.NUM_PAGES_THRESHOLD) { + return null; + } + + const imageData = this._imageCache.get(ref); + + if (!imageData) { + return null; + } + + pageIndexSet.add(pageIndex); + return imageData; + } + + setData(ref, data) { + if (!this._refCache.has(ref)) { + throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.'); + } + + if (this._imageCache.has(ref)) { + return; + } + + if (this._cacheLimitReached) { + (0, _util.warn)("GlobalImageCache.setData - cache limit reached."); + return; + } + + this._imageCache.put(ref, data); + } + + clear(onlyData = false) { + if (!onlyData) { + this._refCache.clear(); + } + + this._imageCache.clear(); + } + +} + +exports.GlobalImageCache = GlobalImageCache; + +/***/ }), +/* 60 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.bidi = bidi; + +var _util = __w_pdfjs_require__(2); + +const baseTypes = ["BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "S", "B", "S", "WS", "B", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "B", "B", "B", "S", "WS", "ON", "ON", "ET", "ET", "ET", "ON", "ON", "ON", "ON", "ON", "ES", "CS", "ES", "CS", "CS", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "CS", "ON", "ON", "ON", "ON", "ON", "ON", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "ON", "ON", "ON", "ON", "ON", "ON", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "ON", "ON", "ON", "ON", "BN", "BN", "BN", "BN", "BN", "BN", "B", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "CS", "ON", "ET", "ET", "ET", "ET", "ON", "ON", "ON", "ON", "L", "ON", "ON", "BN", "ON", "ON", "ET", "ET", "EN", "EN", "ON", "L", "ON", "ON", "ON", "EN", "L", "ON", "ON", "ON", "ON", "ON", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "ON", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "ON", "L", "L", "L", "L", "L", "L", "L", "L"]; +const arabicTypes = ["AN", "AN", "AN", "AN", "AN", "AN", "ON", "ON", "AL", "ET", "ET", "AL", "CS", "AL", "ON", "ON", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AL", "AL", "", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "ET", "AN", "AN", "AL", "AL", "AL", "NSM", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AN", "ON", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AL", "AL", "NSM", "NSM", "ON", "NSM", "NSM", "NSM", "NSM", "AL", "AL", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "AL", "AL", "AL", "AL", "AL", "AL"]; + +function isOdd(i) { + return (i & 1) !== 0; +} + +function isEven(i) { + return (i & 1) === 0; +} + +function findUnequal(arr, start, value) { + let j, jj; + + for (j = start, jj = arr.length; j < jj; ++j) { + if (arr[j] !== value) { + return j; + } + } + + return j; +} + +function setValues(arr, start, end, value) { + for (let j = start; j < end; ++j) { + arr[j] = value; + } +} + +function reverseValues(arr, start, end) { + for (let i = start, j = end - 1; i < j; ++i, --j) { + const temp = arr[i]; + arr[i] = arr[j]; + arr[j] = temp; + } +} + +function createBidiText(str, isLTR, vertical = false) { + let dir = "ltr"; + + if (vertical) { + dir = "ttb"; + } else if (!isLTR) { + dir = "rtl"; + } + + return { + str, + dir + }; +} + +const chars = []; +const types = []; + +function bidi(str, startLevel = -1, vertical = false) { + let isLTR = true; + const strLength = str.length; + + if (strLength === 0 || vertical) { + return createBidiText(str, isLTR, vertical); + } + + chars.length = strLength; + types.length = strLength; + let numBidi = 0; + let i, ii; + + for (i = 0; i < strLength; ++i) { + chars[i] = str.charAt(i); + const charCode = str.charCodeAt(i); + let charType = "L"; + + if (charCode <= 0x00ff) { + charType = baseTypes[charCode]; + } else if (0x0590 <= charCode && charCode <= 0x05f4) { + charType = "R"; + } else if (0x0600 <= charCode && charCode <= 0x06ff) { + charType = arabicTypes[charCode & 0xff]; + + if (!charType) { + (0, _util.warn)("Bidi: invalid Unicode character " + charCode.toString(16)); + } + } else if (0x0700 <= charCode && charCode <= 0x08ac) { + charType = "AL"; + } + + if (charType === "R" || charType === "AL" || charType === "AN") { + numBidi++; + } + + types[i] = charType; + } + + if (numBidi === 0) { + isLTR = true; + return createBidiText(str, isLTR); + } + + if (startLevel === -1) { + if (numBidi / strLength < 0.3 && strLength > 4) { + isLTR = true; + startLevel = 0; + } else { + isLTR = false; + startLevel = 1; + } + } + + const levels = []; + + for (i = 0; i < strLength; ++i) { + levels[i] = startLevel; + } + + const e = isOdd(startLevel) ? "R" : "L"; + const sor = e; + const eor = sor; + let lastType = sor; + + for (i = 0; i < strLength; ++i) { + if (types[i] === "NSM") { + types[i] = lastType; + } else { + lastType = types[i]; + } + } + + lastType = sor; + let t; + + for (i = 0; i < strLength; ++i) { + t = types[i]; + + if (t === "EN") { + types[i] = lastType === "AL" ? "AN" : "EN"; + } else if (t === "R" || t === "L" || t === "AL") { + lastType = t; + } + } + + for (i = 0; i < strLength; ++i) { + t = types[i]; + + if (t === "AL") { + types[i] = "R"; + } + } + + for (i = 1; i < strLength - 1; ++i) { + if (types[i] === "ES" && types[i - 1] === "EN" && types[i + 1] === "EN") { + types[i] = "EN"; + } + + if (types[i] === "CS" && (types[i - 1] === "EN" || types[i - 1] === "AN") && types[i + 1] === types[i - 1]) { + types[i] = types[i - 1]; + } + } + + for (i = 0; i < strLength; ++i) { + if (types[i] === "EN") { + for (let j = i - 1; j >= 0; --j) { + if (types[j] !== "ET") { + break; + } + + types[j] = "EN"; + } + + for (let j = i + 1; j < strLength; ++j) { + if (types[j] !== "ET") { + break; + } + + types[j] = "EN"; + } + } + } + + for (i = 0; i < strLength; ++i) { + t = types[i]; + + if (t === "WS" || t === "ES" || t === "ET" || t === "CS") { + types[i] = "ON"; + } + } + + lastType = sor; + + for (i = 0; i < strLength; ++i) { + t = types[i]; + + if (t === "EN") { + types[i] = lastType === "L" ? "L" : "EN"; + } else if (t === "R" || t === "L") { + lastType = t; + } + } + + for (i = 0; i < strLength; ++i) { + if (types[i] === "ON") { + const end = findUnequal(types, i + 1, "ON"); + let before = sor; + + if (i > 0) { + before = types[i - 1]; + } + + let after = eor; + + if (end + 1 < strLength) { + after = types[end + 1]; + } + + if (before !== "L") { + before = "R"; + } + + if (after !== "L") { + after = "R"; + } + + if (before === after) { + setValues(types, i, end, before); + } + + i = end - 1; + } + } + + for (i = 0; i < strLength; ++i) { + if (types[i] === "ON") { + types[i] = e; + } + } + + for (i = 0; i < strLength; ++i) { + t = types[i]; + + if (isEven(levels[i])) { + if (t === "R") { + levels[i] += 1; + } else if (t === "AN" || t === "EN") { + levels[i] += 2; + } + } else { + if (t === "L" || t === "AN" || t === "EN") { + levels[i] += 1; + } + } + } + + let highestLevel = -1; + let lowestOddLevel = 99; + let level; + + for (i = 0, ii = levels.length; i < ii; ++i) { + level = levels[i]; + + if (highestLevel < level) { + highestLevel = level; + } + + if (lowestOddLevel > level && isOdd(level)) { + lowestOddLevel = level; + } + } + + for (level = highestLevel; level >= lowestOddLevel; --level) { + let start = -1; + + for (i = 0, ii = levels.length; i < ii; ++i) { + if (levels[i] < level) { + if (start >= 0) { + reverseValues(chars, start, i); + start = -1; + } + } else if (start < 0) { + start = i; + } + } + + if (start >= 0) { + reverseValues(chars, start, levels.length); + } + } + + for (i = 0, ii = chars.length; i < ii; ++i) { + const ch = chars[i]; + + if (ch === "<" || ch === ">") { + chars[i] = ""; + } + } + + return createBidiText(chars.join(""), isLTR); +} + +/***/ }), +/* 61 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.MurmurHash3_64 = void 0; + +var _util = __w_pdfjs_require__(2); + +const SEED = 0xc3d2e1f0; +const MASK_HIGH = 0xffff0000; +const MASK_LOW = 0xffff; + +class MurmurHash3_64 { + constructor(seed) { + this.h1 = seed ? seed & 0xffffffff : SEED; + this.h2 = seed ? seed & 0xffffffff : SEED; + } + + update(input) { + let data, length; + + if (typeof input === "string") { + data = new Uint8Array(input.length * 2); + length = 0; + + for (let i = 0, ii = input.length; i < ii; i++) { + const code = input.charCodeAt(i); + + if (code <= 0xff) { + data[length++] = code; + } else { + data[length++] = code >>> 8; + data[length++] = code & 0xff; + } + } + } else if ((0, _util.isArrayBuffer)(input)) { + data = input.slice(); + length = data.byteLength; + } else { + throw new Error("Wrong data format in MurmurHash3_64_update. " + "Input must be a string or array."); + } + + const blockCounts = length >> 2; + const tailLength = length - blockCounts * 4; + const dataUint32 = new Uint32Array(data.buffer, 0, blockCounts); + let k1 = 0, + k2 = 0; + let h1 = this.h1, + h2 = this.h2; + const C1 = 0xcc9e2d51, + C2 = 0x1b873593; + const C1_LOW = C1 & MASK_LOW, + C2_LOW = C2 & MASK_LOW; + + for (let i = 0; i < blockCounts; i++) { + if (i & 1) { + k1 = dataUint32[i]; + k1 = k1 * C1 & MASK_HIGH | k1 * C1_LOW & MASK_LOW; + k1 = k1 << 15 | k1 >>> 17; + k1 = k1 * C2 & MASK_HIGH | k1 * C2_LOW & MASK_LOW; + h1 ^= k1; + h1 = h1 << 13 | h1 >>> 19; + h1 = h1 * 5 + 0xe6546b64; + } else { + k2 = dataUint32[i]; + k2 = k2 * C1 & MASK_HIGH | k2 * C1_LOW & MASK_LOW; + k2 = k2 << 15 | k2 >>> 17; + k2 = k2 * C2 & MASK_HIGH | k2 * C2_LOW & MASK_LOW; + h2 ^= k2; + h2 = h2 << 13 | h2 >>> 19; + h2 = h2 * 5 + 0xe6546b64; + } + } + + k1 = 0; + + switch (tailLength) { + case 3: + k1 ^= data[blockCounts * 4 + 2] << 16; + + case 2: + k1 ^= data[blockCounts * 4 + 1] << 8; + + case 1: + k1 ^= data[blockCounts * 4]; + k1 = k1 * C1 & MASK_HIGH | k1 * C1_LOW & MASK_LOW; + k1 = k1 << 15 | k1 >>> 17; + k1 = k1 * C2 & MASK_HIGH | k1 * C2_LOW & MASK_LOW; + + if (blockCounts & 1) { + h1 ^= k1; + } else { + h2 ^= k1; + } + + } + + this.h1 = h1; + this.h2 = h2; + } + + hexdigest() { + let h1 = this.h1, + h2 = this.h2; + h1 ^= h2 >>> 1; + h1 = h1 * 0xed558ccd & MASK_HIGH | h1 * 0x8ccd & MASK_LOW; + h2 = h2 * 0xff51afd7 & MASK_HIGH | ((h2 << 16 | h1 >>> 16) * 0xafd7ed55 & MASK_HIGH) >>> 16; + h1 ^= h2 >>> 1; + h1 = h1 * 0x1a85ec53 & MASK_HIGH | h1 * 0xec53 & MASK_LOW; + h2 = h2 * 0xc4ceb9fe & MASK_HIGH | ((h2 << 16 | h1 >>> 16) * 0xb9fe1a85 & MASK_HIGH) >>> 16; + h1 ^= h2 >>> 1; + const hex1 = (h1 >>> 0).toString(16), + hex2 = (h2 >>> 0).toString(16); + return hex1.padStart(8, "0") + hex2.padStart(8, "0"); + } + +} + +exports.MurmurHash3_64 = MurmurHash3_64; + +/***/ }), +/* 62 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.OperatorList = void 0; + +var _util = __w_pdfjs_require__(2); + +function addState(parentState, pattern, checkFn, iterateFn, processFn) { + let state = parentState; + + for (let i = 0, ii = pattern.length - 1; i < ii; i++) { + const item = pattern[i]; + state = state[item] || (state[item] = []); + } + + state[pattern.at(-1)] = { + checkFn, + iterateFn, + processFn + }; +} + +const InitialState = []; +addState(InitialState, [_util.OPS.save, _util.OPS.transform, _util.OPS.paintInlineImageXObject, _util.OPS.restore], null, function iterateInlineImageGroup(context, i) { + const fnArray = context.fnArray; + const iFirstSave = context.iCurr - 3; + const pos = (i - iFirstSave) % 4; + + switch (pos) { + case 0: + return fnArray[i] === _util.OPS.save; + + case 1: + return fnArray[i] === _util.OPS.transform; + + case 2: + return fnArray[i] === _util.OPS.paintInlineImageXObject; + + case 3: + return fnArray[i] === _util.OPS.restore; + } + + throw new Error(`iterateInlineImageGroup - invalid pos: ${pos}`); +}, function foundInlineImageGroup(context, i) { + const MIN_IMAGES_IN_INLINE_IMAGES_BLOCK = 10; + const MAX_IMAGES_IN_INLINE_IMAGES_BLOCK = 200; + const MAX_WIDTH = 1000; + const IMAGE_PADDING = 1; + const fnArray = context.fnArray, + argsArray = context.argsArray; + const curr = context.iCurr; + const iFirstSave = curr - 3; + const iFirstTransform = curr - 2; + const iFirstPIIXO = curr - 1; + const count = Math.min(Math.floor((i - iFirstSave) / 4), MAX_IMAGES_IN_INLINE_IMAGES_BLOCK); + + if (count < MIN_IMAGES_IN_INLINE_IMAGES_BLOCK) { + return i - (i - iFirstSave) % 4; + } + + let maxX = 0; + const map = []; + let maxLineHeight = 0; + let currentX = IMAGE_PADDING, + currentY = IMAGE_PADDING; + + for (let q = 0; q < count; q++) { + const transform = argsArray[iFirstTransform + (q << 2)]; + const img = argsArray[iFirstPIIXO + (q << 2)][0]; + + if (currentX + img.width > MAX_WIDTH) { + maxX = Math.max(maxX, currentX); + currentY += maxLineHeight + 2 * IMAGE_PADDING; + currentX = 0; + maxLineHeight = 0; + } + + map.push({ + transform, + x: currentX, + y: currentY, + w: img.width, + h: img.height + }); + currentX += img.width + 2 * IMAGE_PADDING; + maxLineHeight = Math.max(maxLineHeight, img.height); + } + + const imgWidth = Math.max(maxX, currentX) + IMAGE_PADDING; + const imgHeight = currentY + maxLineHeight + IMAGE_PADDING; + const imgData = new Uint8Array(imgWidth * imgHeight * 4); + const imgRowSize = imgWidth << 2; + + for (let q = 0; q < count; q++) { + const data = argsArray[iFirstPIIXO + (q << 2)][0].data; + const rowSize = map[q].w << 2; + let dataOffset = 0; + let offset = map[q].x + map[q].y * imgWidth << 2; + imgData.set(data.subarray(0, rowSize), offset - imgRowSize); + + for (let k = 0, kk = map[q].h; k < kk; k++) { + imgData.set(data.subarray(dataOffset, dataOffset + rowSize), offset); + dataOffset += rowSize; + offset += imgRowSize; + } + + imgData.set(data.subarray(dataOffset - rowSize, dataOffset), offset); + + while (offset >= 0) { + data[offset - 4] = data[offset]; + data[offset - 3] = data[offset + 1]; + data[offset - 2] = data[offset + 2]; + data[offset - 1] = data[offset + 3]; + data[offset + rowSize] = data[offset + rowSize - 4]; + data[offset + rowSize + 1] = data[offset + rowSize - 3]; + data[offset + rowSize + 2] = data[offset + rowSize - 2]; + data[offset + rowSize + 3] = data[offset + rowSize - 1]; + offset -= imgRowSize; + } + } + + fnArray.splice(iFirstSave, count * 4, _util.OPS.paintInlineImageXObjectGroup); + argsArray.splice(iFirstSave, count * 4, [{ + width: imgWidth, + height: imgHeight, + kind: _util.ImageKind.RGBA_32BPP, + data: imgData + }, map]); + return iFirstSave + 1; +}); +addState(InitialState, [_util.OPS.save, _util.OPS.transform, _util.OPS.paintImageMaskXObject, _util.OPS.restore], null, function iterateImageMaskGroup(context, i) { + const fnArray = context.fnArray; + const iFirstSave = context.iCurr - 3; + const pos = (i - iFirstSave) % 4; + + switch (pos) { + case 0: + return fnArray[i] === _util.OPS.save; + + case 1: + return fnArray[i] === _util.OPS.transform; + + case 2: + return fnArray[i] === _util.OPS.paintImageMaskXObject; + + case 3: + return fnArray[i] === _util.OPS.restore; + } + + throw new Error(`iterateImageMaskGroup - invalid pos: ${pos}`); +}, function foundImageMaskGroup(context, i) { + const MIN_IMAGES_IN_MASKS_BLOCK = 10; + const MAX_IMAGES_IN_MASKS_BLOCK = 100; + const MAX_SAME_IMAGES_IN_MASKS_BLOCK = 1000; + const fnArray = context.fnArray, + argsArray = context.argsArray; + const curr = context.iCurr; + const iFirstSave = curr - 3; + const iFirstTransform = curr - 2; + const iFirstPIMXO = curr - 1; + let count = Math.floor((i - iFirstSave) / 4); + + if (count < MIN_IMAGES_IN_MASKS_BLOCK) { + return i - (i - iFirstSave) % 4; + } + + let isSameImage = false; + let iTransform, transformArgs; + const firstPIMXOArg0 = argsArray[iFirstPIMXO][0]; + const firstTransformArg0 = argsArray[iFirstTransform][0], + firstTransformArg1 = argsArray[iFirstTransform][1], + firstTransformArg2 = argsArray[iFirstTransform][2], + firstTransformArg3 = argsArray[iFirstTransform][3]; + + if (firstTransformArg1 === firstTransformArg2) { + isSameImage = true; + iTransform = iFirstTransform + 4; + let iPIMXO = iFirstPIMXO + 4; + + for (let q = 1; q < count; q++, iTransform += 4, iPIMXO += 4) { + transformArgs = argsArray[iTransform]; + + if (argsArray[iPIMXO][0] !== firstPIMXOArg0 || transformArgs[0] !== firstTransformArg0 || transformArgs[1] !== firstTransformArg1 || transformArgs[2] !== firstTransformArg2 || transformArgs[3] !== firstTransformArg3) { + if (q < MIN_IMAGES_IN_MASKS_BLOCK) { + isSameImage = false; + } else { + count = q; + } + + break; + } + } + } + + if (isSameImage) { + count = Math.min(count, MAX_SAME_IMAGES_IN_MASKS_BLOCK); + const positions = new Float32Array(count * 2); + iTransform = iFirstTransform; + + for (let q = 0; q < count; q++, iTransform += 4) { + transformArgs = argsArray[iTransform]; + positions[q << 1] = transformArgs[4]; + positions[(q << 1) + 1] = transformArgs[5]; + } + + fnArray.splice(iFirstSave, count * 4, _util.OPS.paintImageMaskXObjectRepeat); + argsArray.splice(iFirstSave, count * 4, [firstPIMXOArg0, firstTransformArg0, firstTransformArg1, firstTransformArg2, firstTransformArg3, positions]); + } else { + count = Math.min(count, MAX_IMAGES_IN_MASKS_BLOCK); + const images = []; + + for (let q = 0; q < count; q++) { + transformArgs = argsArray[iFirstTransform + (q << 2)]; + const maskParams = argsArray[iFirstPIMXO + (q << 2)][0]; + images.push({ + data: maskParams.data, + width: maskParams.width, + height: maskParams.height, + interpolate: maskParams.interpolate, + count: maskParams.count, + transform: transformArgs + }); + } + + fnArray.splice(iFirstSave, count * 4, _util.OPS.paintImageMaskXObjectGroup); + argsArray.splice(iFirstSave, count * 4, [images]); + } + + return iFirstSave + 1; +}); +addState(InitialState, [_util.OPS.save, _util.OPS.transform, _util.OPS.paintImageXObject, _util.OPS.restore], function (context) { + const argsArray = context.argsArray; + const iFirstTransform = context.iCurr - 2; + return argsArray[iFirstTransform][1] === 0 && argsArray[iFirstTransform][2] === 0; +}, function iterateImageGroup(context, i) { + const fnArray = context.fnArray, + argsArray = context.argsArray; + const iFirstSave = context.iCurr - 3; + const pos = (i - iFirstSave) % 4; + + switch (pos) { + case 0: + return fnArray[i] === _util.OPS.save; + + case 1: + if (fnArray[i] !== _util.OPS.transform) { + return false; + } + + const iFirstTransform = context.iCurr - 2; + const firstTransformArg0 = argsArray[iFirstTransform][0]; + const firstTransformArg3 = argsArray[iFirstTransform][3]; + + if (argsArray[i][0] !== firstTransformArg0 || argsArray[i][1] !== 0 || argsArray[i][2] !== 0 || argsArray[i][3] !== firstTransformArg3) { + return false; + } + + return true; + + case 2: + if (fnArray[i] !== _util.OPS.paintImageXObject) { + return false; + } + + const iFirstPIXO = context.iCurr - 1; + const firstPIXOArg0 = argsArray[iFirstPIXO][0]; + + if (argsArray[i][0] !== firstPIXOArg0) { + return false; + } + + return true; + + case 3: + return fnArray[i] === _util.OPS.restore; + } + + throw new Error(`iterateImageGroup - invalid pos: ${pos}`); +}, function (context, i) { + const MIN_IMAGES_IN_BLOCK = 3; + const MAX_IMAGES_IN_BLOCK = 1000; + const fnArray = context.fnArray, + argsArray = context.argsArray; + const curr = context.iCurr; + const iFirstSave = curr - 3; + const iFirstTransform = curr - 2; + const iFirstPIXO = curr - 1; + const firstPIXOArg0 = argsArray[iFirstPIXO][0]; + const firstTransformArg0 = argsArray[iFirstTransform][0]; + const firstTransformArg3 = argsArray[iFirstTransform][3]; + const count = Math.min(Math.floor((i - iFirstSave) / 4), MAX_IMAGES_IN_BLOCK); + + if (count < MIN_IMAGES_IN_BLOCK) { + return i - (i - iFirstSave) % 4; + } + + const positions = new Float32Array(count * 2); + let iTransform = iFirstTransform; + + for (let q = 0; q < count; q++, iTransform += 4) { + const transformArgs = argsArray[iTransform]; + positions[q << 1] = transformArgs[4]; + positions[(q << 1) + 1] = transformArgs[5]; + } + + const args = [firstPIXOArg0, firstTransformArg0, firstTransformArg3, positions]; + fnArray.splice(iFirstSave, count * 4, _util.OPS.paintImageXObjectRepeat); + argsArray.splice(iFirstSave, count * 4, args); + return iFirstSave + 1; +}); +addState(InitialState, [_util.OPS.beginText, _util.OPS.setFont, _util.OPS.setTextMatrix, _util.OPS.showText, _util.OPS.endText], null, function iterateShowTextGroup(context, i) { + const fnArray = context.fnArray, + argsArray = context.argsArray; + const iFirstSave = context.iCurr - 4; + const pos = (i - iFirstSave) % 5; + + switch (pos) { + case 0: + return fnArray[i] === _util.OPS.beginText; + + case 1: + return fnArray[i] === _util.OPS.setFont; + + case 2: + return fnArray[i] === _util.OPS.setTextMatrix; + + case 3: + if (fnArray[i] !== _util.OPS.showText) { + return false; + } + + const iFirstSetFont = context.iCurr - 3; + const firstSetFontArg0 = argsArray[iFirstSetFont][0]; + const firstSetFontArg1 = argsArray[iFirstSetFont][1]; + + if (argsArray[i][0] !== firstSetFontArg0 || argsArray[i][1] !== firstSetFontArg1) { + return false; + } + + return true; + + case 4: + return fnArray[i] === _util.OPS.endText; + } + + throw new Error(`iterateShowTextGroup - invalid pos: ${pos}`); +}, function (context, i) { + const MIN_CHARS_IN_BLOCK = 3; + const MAX_CHARS_IN_BLOCK = 1000; + const fnArray = context.fnArray, + argsArray = context.argsArray; + const curr = context.iCurr; + const iFirstBeginText = curr - 4; + const iFirstSetFont = curr - 3; + const iFirstSetTextMatrix = curr - 2; + const iFirstShowText = curr - 1; + const iFirstEndText = curr; + const firstSetFontArg0 = argsArray[iFirstSetFont][0]; + const firstSetFontArg1 = argsArray[iFirstSetFont][1]; + let count = Math.min(Math.floor((i - iFirstBeginText) / 5), MAX_CHARS_IN_BLOCK); + + if (count < MIN_CHARS_IN_BLOCK) { + return i - (i - iFirstBeginText) % 5; + } + + let iFirst = iFirstBeginText; + + if (iFirstBeginText >= 4 && fnArray[iFirstBeginText - 4] === fnArray[iFirstSetFont] && fnArray[iFirstBeginText - 3] === fnArray[iFirstSetTextMatrix] && fnArray[iFirstBeginText - 2] === fnArray[iFirstShowText] && fnArray[iFirstBeginText - 1] === fnArray[iFirstEndText] && argsArray[iFirstBeginText - 4][0] === firstSetFontArg0 && argsArray[iFirstBeginText - 4][1] === firstSetFontArg1) { + count++; + iFirst -= 5; + } + + let iEndText = iFirst + 4; + + for (let q = 1; q < count; q++) { + fnArray.splice(iEndText, 3); + argsArray.splice(iEndText, 3); + iEndText += 2; + } + + return iEndText + 1; +}); + +class NullOptimizer { + constructor(queue) { + this.queue = queue; + } + + _optimize() {} + + push(fn, args) { + this.queue.fnArray.push(fn); + this.queue.argsArray.push(args); + + this._optimize(); + } + + flush() {} + + reset() {} + +} + +class QueueOptimizer extends NullOptimizer { + constructor(queue) { + super(queue); + this.state = null; + this.context = { + iCurr: 0, + fnArray: queue.fnArray, + argsArray: queue.argsArray + }; + this.match = null; + this.lastProcessed = 0; + } + + _optimize() { + const fnArray = this.queue.fnArray; + let i = this.lastProcessed, + ii = fnArray.length; + let state = this.state; + let match = this.match; + + if (!state && !match && i + 1 === ii && !InitialState[fnArray[i]]) { + this.lastProcessed = ii; + return; + } + + const context = this.context; + + while (i < ii) { + if (match) { + const iterate = (0, match.iterateFn)(context, i); + + if (iterate) { + i++; + continue; + } + + i = (0, match.processFn)(context, i + 1); + ii = fnArray.length; + match = null; + state = null; + + if (i >= ii) { + break; + } + } + + state = (state || InitialState)[fnArray[i]]; + + if (!state || Array.isArray(state)) { + i++; + continue; + } + + context.iCurr = i; + i++; + + if (state.checkFn && !(0, state.checkFn)(context)) { + state = null; + continue; + } + + match = state; + state = null; + } + + this.state = state; + this.match = match; + this.lastProcessed = i; + } + + flush() { + while (this.match) { + const length = this.queue.fnArray.length; + this.lastProcessed = (0, this.match.processFn)(this.context, length); + this.match = null; + this.state = null; + + this._optimize(); + } + } + + reset() { + this.state = null; + this.match = null; + this.lastProcessed = 0; + } + +} + +class OperatorList { + static get CHUNK_SIZE() { + return (0, _util.shadow)(this, "CHUNK_SIZE", 1000); + } + + static get CHUNK_SIZE_ABOUT() { + return (0, _util.shadow)(this, "CHUNK_SIZE_ABOUT", this.CHUNK_SIZE - 5); + } + + constructor(intent = 0, streamSink) { + this._streamSink = streamSink; + this.fnArray = []; + this.argsArray = []; + + if (streamSink && !(intent & _util.RenderingIntentFlag.OPLIST)) { + this.optimizer = new QueueOptimizer(this); + } else { + this.optimizer = new NullOptimizer(this); + } + + this.dependencies = new Set(); + this._totalLength = 0; + this.weight = 0; + this._resolved = streamSink ? null : Promise.resolve(); + } + + get length() { + return this.argsArray.length; + } + + get ready() { + return this._resolved || this._streamSink.ready; + } + + get totalLength() { + return this._totalLength + this.length; + } + + addOp(fn, args) { + this.optimizer.push(fn, args); + this.weight++; + + if (this._streamSink) { + if (this.weight >= OperatorList.CHUNK_SIZE) { + this.flush(); + } else if (this.weight >= OperatorList.CHUNK_SIZE_ABOUT && (fn === _util.OPS.restore || fn === _util.OPS.endText)) { + this.flush(); + } + } + } + + addImageOps(fn, args, optionalContent) { + if (optionalContent !== undefined) { + this.addOp(_util.OPS.beginMarkedContentProps, ["OC", optionalContent]); + } + + this.addOp(fn, args); + + if (optionalContent !== undefined) { + this.addOp(_util.OPS.endMarkedContent, []); + } + } + + addDependency(dependency) { + if (this.dependencies.has(dependency)) { + return; + } + + this.dependencies.add(dependency); + this.addOp(_util.OPS.dependency, [dependency]); + } + + addDependencies(dependencies) { + for (const dependency of dependencies) { + this.addDependency(dependency); + } + } + + addOpList(opList) { + if (!(opList instanceof OperatorList)) { + (0, _util.warn)('addOpList - ignoring invalid "opList" parameter.'); + return; + } + + for (const dependency of opList.dependencies) { + this.dependencies.add(dependency); + } + + for (let i = 0, ii = opList.length; i < ii; i++) { + this.addOp(opList.fnArray[i], opList.argsArray[i]); + } + } + + getIR() { + return { + fnArray: this.fnArray, + argsArray: this.argsArray, + length: this.length + }; + } + + get _transfers() { + const transfers = []; + const { + fnArray, + argsArray, + length + } = this; + + for (let i = 0; i < length; i++) { + switch (fnArray[i]) { + case _util.OPS.paintInlineImageXObject: + case _util.OPS.paintInlineImageXObjectGroup: + case _util.OPS.paintImageMaskXObject: + const arg = argsArray[i][0]; + + if (!arg.cached && arg.data && arg.data.buffer instanceof ArrayBuffer) { + transfers.push(arg.data.buffer); + } + + break; + } + } + + return transfers; + } + + flush(lastChunk = false, separateAnnots = null) { + this.optimizer.flush(); + const length = this.length; + this._totalLength += length; + + this._streamSink.enqueue({ + fnArray: this.fnArray, + argsArray: this.argsArray, + lastChunk, + separateAnnots, + length + }, 1, this._transfers); + + this.dependencies.clear(); + this.fnArray.length = 0; + this.argsArray.length = 0; + this.weight = 0; + this.optimizer.reset(); + } + +} + +exports.OperatorList = OperatorList; + +/***/ }), +/* 63 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFImage = void 0; + +var _util = __w_pdfjs_require__(2); + +var _image_utils = __w_pdfjs_require__(64); + +var _base_stream = __w_pdfjs_require__(7); + +var _colorspace = __w_pdfjs_require__(14); + +var _decode_stream = __w_pdfjs_require__(19); + +var _jpeg_stream = __w_pdfjs_require__(27); + +var _jpx = __w_pdfjs_require__(30); + +var _primitives = __w_pdfjs_require__(5); + +function decodeAndClamp(value, addend, coefficient, max) { + value = addend + value * coefficient; + + if (value < 0) { + value = 0; + } else if (value > max) { + value = max; + } + + return value; +} + +function resizeImageMask(src, bpc, w1, h1, w2, h2) { + const length = w2 * h2; + let dest; + + if (bpc <= 8) { + dest = new Uint8Array(length); + } else if (bpc <= 16) { + dest = new Uint16Array(length); + } else { + dest = new Uint32Array(length); + } + + const xRatio = w1 / w2; + const yRatio = h1 / h2; + let i, + j, + py, + newIndex = 0, + oldIndex; + const xScaled = new Uint16Array(w2); + const w1Scanline = w1; + + for (i = 0; i < w2; i++) { + xScaled[i] = Math.floor(i * xRatio); + } + + for (i = 0; i < h2; i++) { + py = Math.floor(i * yRatio) * w1Scanline; + + for (j = 0; j < w2; j++) { + oldIndex = py + xScaled[j]; + dest[newIndex++] = src[oldIndex]; + } + } + + return dest; +} + +class PDFImage { + constructor({ + xref, + res, + image, + isInline = false, + smask = null, + mask = null, + isMask = false, + pdfFunctionFactory, + localColorSpaceCache + }) { + this.image = image; + const dict = image.dict; + const filter = dict.get("F", "Filter"); + let filterName; + + if (filter instanceof _primitives.Name) { + filterName = filter.name; + } else if (Array.isArray(filter)) { + const filterZero = xref.fetchIfRef(filter[0]); + + if (filterZero instanceof _primitives.Name) { + filterName = filterZero.name; + } + } + + switch (filterName) { + case "JPXDecode": + const jpxImage = new _jpx.JpxImage(); + jpxImage.parseImageProperties(image.stream); + image.stream.reset(); + image.width = jpxImage.width; + image.height = jpxImage.height; + image.bitsPerComponent = jpxImage.bitsPerComponent; + image.numComps = jpxImage.componentsCount; + break; + + case "JBIG2Decode": + image.bitsPerComponent = 1; + image.numComps = 1; + break; + } + + let width = dict.get("W", "Width"); + let height = dict.get("H", "Height"); + + if (Number.isInteger(image.width) && image.width > 0 && Number.isInteger(image.height) && image.height > 0 && (image.width !== width || image.height !== height)) { + (0, _util.warn)("PDFImage - using the Width/Height of the image data, " + "rather than the image dictionary."); + width = image.width; + height = image.height; + } + + if (width < 1 || height < 1) { + throw new _util.FormatError(`Invalid image width: ${width} or height: ${height}`); + } + + this.width = width; + this.height = height; + this.interpolate = dict.get("I", "Interpolate"); + this.imageMask = dict.get("IM", "ImageMask") || false; + this.matte = dict.get("Matte") || false; + let bitsPerComponent = image.bitsPerComponent; + + if (!bitsPerComponent) { + bitsPerComponent = dict.get("BPC", "BitsPerComponent"); + + if (!bitsPerComponent) { + if (this.imageMask) { + bitsPerComponent = 1; + } else { + throw new _util.FormatError(`Bits per component missing in image: ${this.imageMask}`); + } + } + } + + this.bpc = bitsPerComponent; + + if (!this.imageMask) { + let colorSpace = dict.getRaw("CS") || dict.getRaw("ColorSpace"); + + if (!colorSpace) { + (0, _util.info)("JPX images (which do not require color spaces)"); + + switch (image.numComps) { + case 1: + colorSpace = _primitives.Name.get("DeviceGray"); + break; + + case 3: + colorSpace = _primitives.Name.get("DeviceRGB"); + break; + + case 4: + colorSpace = _primitives.Name.get("DeviceCMYK"); + break; + + default: + throw new Error(`JPX images with ${image.numComps} color components not supported.`); + } + } + + this.colorSpace = _colorspace.ColorSpace.parse({ + cs: colorSpace, + xref, + resources: isInline ? res : null, + pdfFunctionFactory, + localColorSpaceCache + }); + this.numComps = this.colorSpace.numComps; + } + + this.decode = dict.getArray("D", "Decode"); + this.needsDecode = false; + + if (this.decode && (this.colorSpace && !this.colorSpace.isDefaultDecode(this.decode, bitsPerComponent) || isMask && !_colorspace.ColorSpace.isDefaultDecode(this.decode, 1))) { + this.needsDecode = true; + const max = (1 << bitsPerComponent) - 1; + this.decodeCoefficients = []; + this.decodeAddends = []; + const isIndexed = this.colorSpace && this.colorSpace.name === "Indexed"; + + for (let i = 0, j = 0; i < this.decode.length; i += 2, ++j) { + const dmin = this.decode[i]; + const dmax = this.decode[i + 1]; + this.decodeCoefficients[j] = isIndexed ? (dmax - dmin) / max : dmax - dmin; + this.decodeAddends[j] = isIndexed ? dmin : max * dmin; + } + } + + if (smask) { + this.smask = new PDFImage({ + xref, + res, + image: smask, + isInline, + pdfFunctionFactory, + localColorSpaceCache + }); + } else if (mask) { + if (mask instanceof _base_stream.BaseStream) { + const maskDict = mask.dict, + imageMask = maskDict.get("IM", "ImageMask"); + + if (!imageMask) { + (0, _util.warn)("Ignoring /Mask in image without /ImageMask."); + } else { + this.mask = new PDFImage({ + xref, + res, + image: mask, + isInline, + isMask: true, + pdfFunctionFactory, + localColorSpaceCache + }); + } + } else { + this.mask = mask; + } + } + } + + static async buildImage({ + xref, + res, + image, + isInline = false, + pdfFunctionFactory, + localColorSpaceCache + }) { + const imageData = image; + let smaskData = null; + let maskData = null; + const smask = image.dict.get("SMask"); + const mask = image.dict.get("Mask"); + + if (smask) { + if (smask instanceof _base_stream.BaseStream) { + smaskData = smask; + } else { + (0, _util.warn)("Unsupported /SMask format."); + } + } else if (mask) { + if (mask instanceof _base_stream.BaseStream || Array.isArray(mask)) { + maskData = mask; + } else { + (0, _util.warn)("Unsupported /Mask format."); + } + } + + return new PDFImage({ + xref, + res, + image: imageData, + isInline, + smask: smaskData, + mask: maskData, + pdfFunctionFactory, + localColorSpaceCache + }); + } + + static createRawMask({ + imgArray, + width, + height, + imageIsFromDecodeStream, + inverseDecode, + interpolate + }) { + const computedLength = (width + 7 >> 3) * height; + const actualLength = imgArray.byteLength; + const haveFullData = computedLength === actualLength; + let data, i; + + if (imageIsFromDecodeStream && (!inverseDecode || haveFullData)) { + data = imgArray; + } else if (!inverseDecode) { + data = new Uint8Array(imgArray); + } else { + data = new Uint8Array(computedLength); + data.set(imgArray); + data.fill(0xff, actualLength); + } + + if (inverseDecode) { + for (i = 0; i < actualLength; i++) { + data[i] ^= 0xff; + } + } + + return { + data, + width, + height, + interpolate + }; + } + + static createMask({ + imgArray, + width, + height, + imageIsFromDecodeStream, + inverseDecode, + interpolate + }) { + const isSingleOpaquePixel = width === 1 && height === 1 && inverseDecode === (imgArray.length === 0 || !!(imgArray[0] & 128)); + + if (isSingleOpaquePixel) { + return { + isSingleOpaquePixel + }; + } + + if (_util.FeatureTest.isOffscreenCanvasSupported) { + const canvas = new OffscreenCanvas(width, height); + const ctx = canvas.getContext("2d"); + const imgData = ctx.createImageData(width, height); + (0, _image_utils.applyMaskImageData)({ + src: imgArray, + dest: imgData.data, + width, + height, + inverseDecode + }); + ctx.putImageData(imgData, 0, 0); + const bitmap = canvas.transferToImageBitmap(); + return { + data: null, + width, + height, + interpolate, + bitmap + }; + } + + return this.createRawMask({ + imgArray, + width, + height, + inverseDecode, + imageIsFromDecodeStream, + interpolate + }); + } + + get drawWidth() { + return Math.max(this.width, this.smask && this.smask.width || 0, this.mask && this.mask.width || 0); + } + + get drawHeight() { + return Math.max(this.height, this.smask && this.smask.height || 0, this.mask && this.mask.height || 0); + } + + decodeBuffer(buffer) { + const bpc = this.bpc; + const numComps = this.numComps; + const decodeAddends = this.decodeAddends; + const decodeCoefficients = this.decodeCoefficients; + const max = (1 << bpc) - 1; + let i, ii; + + if (bpc === 1) { + for (i = 0, ii = buffer.length; i < ii; i++) { + buffer[i] = +!buffer[i]; + } + + return; + } + + let index = 0; + + for (i = 0, ii = this.width * this.height; i < ii; i++) { + for (let j = 0; j < numComps; j++) { + buffer[index] = decodeAndClamp(buffer[index], decodeAddends[j], decodeCoefficients[j], max); + index++; + } + } + } + + getComponents(buffer) { + const bpc = this.bpc; + + if (bpc === 8) { + return buffer; + } + + const width = this.width; + const height = this.height; + const numComps = this.numComps; + const length = width * height * numComps; + let bufferPos = 0; + let output; + + if (bpc <= 8) { + output = new Uint8Array(length); + } else if (bpc <= 16) { + output = new Uint16Array(length); + } else { + output = new Uint32Array(length); + } + + const rowComps = width * numComps; + const max = (1 << bpc) - 1; + let i = 0, + ii, + buf; + + if (bpc === 1) { + let mask, loop1End, loop2End; + + for (let j = 0; j < height; j++) { + loop1End = i + (rowComps & ~7); + loop2End = i + rowComps; + + while (i < loop1End) { + buf = buffer[bufferPos++]; + output[i] = buf >> 7 & 1; + output[i + 1] = buf >> 6 & 1; + output[i + 2] = buf >> 5 & 1; + output[i + 3] = buf >> 4 & 1; + output[i + 4] = buf >> 3 & 1; + output[i + 5] = buf >> 2 & 1; + output[i + 6] = buf >> 1 & 1; + output[i + 7] = buf & 1; + i += 8; + } + + if (i < loop2End) { + buf = buffer[bufferPos++]; + mask = 128; + + while (i < loop2End) { + output[i++] = +!!(buf & mask); + mask >>= 1; + } + } + } + } else { + let bits = 0; + buf = 0; + + for (i = 0, ii = length; i < ii; ++i) { + if (i % rowComps === 0) { + buf = 0; + bits = 0; + } + + while (bits < bpc) { + buf = buf << 8 | buffer[bufferPos++]; + bits += 8; + } + + const remainingBits = bits - bpc; + let value = buf >> remainingBits; + + if (value < 0) { + value = 0; + } else if (value > max) { + value = max; + } + + output[i] = value; + buf &= (1 << remainingBits) - 1; + bits = remainingBits; + } + } + + return output; + } + + fillOpacity(rgbaBuf, width, height, actualHeight, image) { + const smask = this.smask; + const mask = this.mask; + let alphaBuf, sw, sh, i, ii, j; + + if (smask) { + sw = smask.width; + sh = smask.height; + alphaBuf = new Uint8ClampedArray(sw * sh); + smask.fillGrayBuffer(alphaBuf); + + if (sw !== width || sh !== height) { + alphaBuf = resizeImageMask(alphaBuf, smask.bpc, sw, sh, width, height); + } + } else if (mask) { + if (mask instanceof PDFImage) { + sw = mask.width; + sh = mask.height; + alphaBuf = new Uint8ClampedArray(sw * sh); + mask.numComps = 1; + mask.fillGrayBuffer(alphaBuf); + + for (i = 0, ii = sw * sh; i < ii; ++i) { + alphaBuf[i] = 255 - alphaBuf[i]; + } + + if (sw !== width || sh !== height) { + alphaBuf = resizeImageMask(alphaBuf, mask.bpc, sw, sh, width, height); + } + } else if (Array.isArray(mask)) { + alphaBuf = new Uint8ClampedArray(width * height); + const numComps = this.numComps; + + for (i = 0, ii = width * height; i < ii; ++i) { + let opacity = 0; + const imageOffset = i * numComps; + + for (j = 0; j < numComps; ++j) { + const color = image[imageOffset + j]; + const maskOffset = j * 2; + + if (color < mask[maskOffset] || color > mask[maskOffset + 1]) { + opacity = 255; + break; + } + } + + alphaBuf[i] = opacity; + } + } else { + throw new _util.FormatError("Unknown mask format."); + } + } + + if (alphaBuf) { + for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) { + rgbaBuf[j] = alphaBuf[i]; + } + } else { + for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) { + rgbaBuf[j] = 255; + } + } + } + + undoPreblend(buffer, width, height) { + const matte = this.smask && this.smask.matte; + + if (!matte) { + return; + } + + const matteRgb = this.colorSpace.getRgb(matte, 0); + const matteR = matteRgb[0]; + const matteG = matteRgb[1]; + const matteB = matteRgb[2]; + const length = width * height * 4; + + for (let i = 0; i < length; i += 4) { + const alpha = buffer[i + 3]; + + if (alpha === 0) { + buffer[i] = 255; + buffer[i + 1] = 255; + buffer[i + 2] = 255; + continue; + } + + const k = 255 / alpha; + buffer[i] = (buffer[i] - matteR) * k + matteR; + buffer[i + 1] = (buffer[i + 1] - matteG) * k + matteG; + buffer[i + 2] = (buffer[i + 2] - matteB) * k + matteB; + } + } + + createImageData(forceRGBA = false) { + const drawWidth = this.drawWidth; + const drawHeight = this.drawHeight; + const imgData = { + width: drawWidth, + height: drawHeight, + interpolate: this.interpolate, + kind: 0, + data: null + }; + const numComps = this.numComps; + const originalWidth = this.width; + const originalHeight = this.height; + const bpc = this.bpc; + const rowBytes = originalWidth * numComps * bpc + 7 >> 3; + + if (!forceRGBA) { + let kind; + + if (this.colorSpace.name === "DeviceGray" && bpc === 1) { + kind = _util.ImageKind.GRAYSCALE_1BPP; + } else if (this.colorSpace.name === "DeviceRGB" && bpc === 8 && !this.needsDecode) { + kind = _util.ImageKind.RGB_24BPP; + } + + if (kind && !this.smask && !this.mask && drawWidth === originalWidth && drawHeight === originalHeight) { + imgData.kind = kind; + imgData.data = this.getImageBytes(originalHeight * rowBytes, {}); + + if (this.needsDecode) { + (0, _util.assert)(kind === _util.ImageKind.GRAYSCALE_1BPP, "PDFImage.createImageData: The image must be grayscale."); + const buffer = imgData.data; + + for (let i = 0, ii = buffer.length; i < ii; i++) { + buffer[i] ^= 0xff; + } + } + + return imgData; + } + + if (this.image instanceof _jpeg_stream.JpegStream && !this.smask && !this.mask) { + let imageLength = originalHeight * rowBytes; + + switch (this.colorSpace.name) { + case "DeviceGray": + imageLength *= 3; + + case "DeviceRGB": + case "DeviceCMYK": + imgData.kind = _util.ImageKind.RGB_24BPP; + imgData.data = this.getImageBytes(imageLength, { + drawWidth, + drawHeight, + forceRGB: true + }); + return imgData; + } + } + } + + const imgArray = this.getImageBytes(originalHeight * rowBytes, { + internal: true + }); + const actualHeight = 0 | imgArray.length / rowBytes * drawHeight / originalHeight; + const comps = this.getComponents(imgArray); + let alpha01, maybeUndoPreblend; + + if (!forceRGBA && !this.smask && !this.mask) { + imgData.kind = _util.ImageKind.RGB_24BPP; + imgData.data = new Uint8ClampedArray(drawWidth * drawHeight * 3); + alpha01 = 0; + maybeUndoPreblend = false; + } else { + imgData.kind = _util.ImageKind.RGBA_32BPP; + imgData.data = new Uint8ClampedArray(drawWidth * drawHeight * 4); + alpha01 = 1; + maybeUndoPreblend = true; + this.fillOpacity(imgData.data, drawWidth, drawHeight, actualHeight, comps); + } + + if (this.needsDecode) { + this.decodeBuffer(comps); + } + + this.colorSpace.fillRgb(imgData.data, originalWidth, originalHeight, drawWidth, drawHeight, actualHeight, bpc, comps, alpha01); + + if (maybeUndoPreblend) { + this.undoPreblend(imgData.data, drawWidth, actualHeight); + } + + return imgData; + } + + fillGrayBuffer(buffer) { + const numComps = this.numComps; + + if (numComps !== 1) { + throw new _util.FormatError(`Reading gray scale from a color image: ${numComps}`); + } + + const width = this.width; + const height = this.height; + const bpc = this.bpc; + const rowBytes = width * numComps * bpc + 7 >> 3; + const imgArray = this.getImageBytes(height * rowBytes, { + internal: true + }); + const comps = this.getComponents(imgArray); + let i, length; + + if (bpc === 1) { + length = width * height; + + if (this.needsDecode) { + for (i = 0; i < length; ++i) { + buffer[i] = comps[i] - 1 & 255; + } + } else { + for (i = 0; i < length; ++i) { + buffer[i] = -comps[i] & 255; + } + } + + return; + } + + if (this.needsDecode) { + this.decodeBuffer(comps); + } + + length = width * height; + const scale = 255 / ((1 << bpc) - 1); + + for (i = 0; i < length; ++i) { + buffer[i] = scale * comps[i]; + } + } + + getImageBytes(length, { + drawWidth, + drawHeight, + forceRGB = false, + internal = false + }) { + this.image.reset(); + this.image.drawWidth = drawWidth || this.width; + this.image.drawHeight = drawHeight || this.height; + this.image.forceRGB = !!forceRGB; + const imageBytes = this.image.getBytes(length); + + if (internal || this.image instanceof _decode_stream.DecodeStream) { + return imageBytes; + } + + (0, _util.assert)(imageBytes instanceof Uint8Array, 'PDFImage.getImageBytes: Unsupported "imageBytes" type.'); + return new Uint8Array(imageBytes); + } + +} + +exports.PDFImage = PDFImage; + +/***/ }), +/* 64 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.applyMaskImageData = applyMaskImageData; + +var _util = __w_pdfjs_require__(2); + +function applyMaskImageData({ + src, + srcPos = 0, + dest, + destPos = 0, + width, + height, + inverseDecode = false +}) { + const opaque = _util.FeatureTest.isLittleEndian ? 0xff000000 : 0x000000ff; + const [zeroMapping, oneMapping] = !inverseDecode ? [opaque, 0] : [0, opaque]; + const widthInSource = width >> 3; + const widthRemainder = width & 7; + const srcLength = src.length; + dest = new Uint32Array(dest.buffer); + + for (let i = 0; i < height; i++) { + for (const max = srcPos + widthInSource; srcPos < max; srcPos++) { + const elem = srcPos < srcLength ? src[srcPos] : 255; + dest[destPos++] = elem & 0b10000000 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b1000000 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b100000 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b10000 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b1000 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b100 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b10 ? oneMapping : zeroMapping; + dest[destPos++] = elem & 0b1 ? oneMapping : zeroMapping; + } + + if (widthRemainder === 0) { + continue; + } + + const elem = srcPos < srcLength ? src[srcPos++] : 255; + + for (let j = 0; j < widthRemainder; j++) { + dest[destPos++] = elem & 1 << 7 - j ? oneMapping : zeroMapping; + } + } + + return { + srcPos, + destPos + }; +} + +/***/ }), +/* 65 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.incrementalUpdate = incrementalUpdate; +exports.writeDict = writeDict; +exports.writeObject = writeObject; + +var _util = __w_pdfjs_require__(2); + +var _primitives = __w_pdfjs_require__(5); + +var _core_utils = __w_pdfjs_require__(6); + +var _xml_parser = __w_pdfjs_require__(66); + +var _base_stream = __w_pdfjs_require__(7); + +var _crypto = __w_pdfjs_require__(67); + +function writeObject(ref, obj, buffer, transform) { + buffer.push(`${ref.num} ${ref.gen} obj\n`); + + if (obj instanceof _primitives.Dict) { + writeDict(obj, buffer, transform); + } else if (obj instanceof _base_stream.BaseStream) { + writeStream(obj, buffer, transform); + } + + buffer.push("\nendobj\n"); +} + +function writeDict(dict, buffer, transform) { + buffer.push("<<"); + + for (const key of dict.getKeys()) { + buffer.push(` /${(0, _core_utils.escapePDFName)(key)} `); + writeValue(dict.getRaw(key), buffer, transform); + } + + buffer.push(">>"); +} + +function writeStream(stream, buffer, transform) { + writeDict(stream.dict, buffer, transform); + buffer.push(" stream\n"); + let string = stream.getString(); + + if (transform !== null) { + string = transform.encryptString(string); + } + + buffer.push(string, "\nendstream\n"); +} + +function writeArray(array, buffer, transform) { + buffer.push("["); + let first = true; + + for (const val of array) { + if (!first) { + buffer.push(" "); + } else { + first = false; + } + + writeValue(val, buffer, transform); + } + + buffer.push("]"); +} + +function writeValue(value, buffer, transform) { + if (value instanceof _primitives.Name) { + buffer.push(`/${(0, _core_utils.escapePDFName)(value.name)}`); + } else if (value instanceof _primitives.Ref) { + buffer.push(`${value.num} ${value.gen} R`); + } else if (Array.isArray(value)) { + writeArray(value, buffer, transform); + } else if (typeof value === "string") { + if (transform !== null) { + value = transform.encryptString(value); + } + + buffer.push(`(${(0, _util.escapeString)(value)})`); + } else if (typeof value === "number") { + buffer.push((0, _core_utils.numberToString)(value)); + } else if (typeof value === "boolean") { + buffer.push(value.toString()); + } else if (value instanceof _primitives.Dict) { + writeDict(value, buffer, transform); + } else if (value instanceof _base_stream.BaseStream) { + writeStream(value, buffer, transform); + } else if (value === null) { + buffer.push("null"); + } else { + (0, _util.warn)(`Unhandled value in writer: ${typeof value}, please file a bug.`); + } +} + +function writeInt(number, size, offset, buffer) { + for (let i = size + offset - 1; i > offset - 1; i--) { + buffer[i] = number & 0xff; + number >>= 8; + } + + return offset + size; +} + +function writeString(string, offset, buffer) { + for (let i = 0, len = string.length; i < len; i++) { + buffer[offset + i] = string.charCodeAt(i) & 0xff; + } +} + +function computeMD5(filesize, xrefInfo) { + const time = Math.floor(Date.now() / 1000); + const filename = xrefInfo.filename || ""; + const md5Buffer = [time.toString(), filename, filesize.toString()]; + let md5BufferLen = md5Buffer.reduce((a, str) => a + str.length, 0); + + for (const value of Object.values(xrefInfo.info)) { + md5Buffer.push(value); + md5BufferLen += value.length; + } + + const array = new Uint8Array(md5BufferLen); + let offset = 0; + + for (const str of md5Buffer) { + writeString(str, offset, array); + offset += str.length; + } + + return (0, _util.bytesToString)((0, _crypto.calculateMD5)(array)); +} + +function writeXFADataForAcroform(str, newRefs) { + const xml = new _xml_parser.SimpleXMLParser({ + hasAttributes: true + }).parseFromString(str); + + for (const { + xfa + } of newRefs) { + if (!xfa) { + continue; + } + + const { + path, + value + } = xfa; + + if (!path) { + continue; + } + + const node = xml.documentElement.searchNode((0, _core_utils.parseXFAPath)(path), 0); + + if (node) { + if (Array.isArray(value)) { + node.childNodes = value.map(val => new _xml_parser.SimpleDOMNode("value", val)); + } else { + node.childNodes = [new _xml_parser.SimpleDOMNode("#text", value)]; + } + } else { + (0, _util.warn)(`Node not found for path: ${path}`); + } + } + + const buffer = []; + xml.documentElement.dump(buffer); + return buffer.join(""); +} + +function updateXFA({ + xfaData, + xfaDatasetsRef, + hasXfaDatasetsEntry, + acroFormRef, + acroForm, + newRefs, + xref, + xrefInfo +}) { + if (xref === null) { + return; + } + + if (!hasXfaDatasetsEntry) { + if (!acroFormRef) { + (0, _util.warn)("XFA - Cannot save it"); + return; + } + + const oldXfa = acroForm.get("XFA"); + const newXfa = oldXfa.slice(); + newXfa.splice(2, 0, "datasets"); + newXfa.splice(3, 0, xfaDatasetsRef); + acroForm.set("XFA", newXfa); + const encrypt = xref.encrypt; + let transform = null; + + if (encrypt) { + transform = encrypt.createCipherTransform(acroFormRef.num, acroFormRef.gen); + } + + const buffer = [`${acroFormRef.num} ${acroFormRef.gen} obj\n`]; + writeDict(acroForm, buffer, transform); + buffer.push("\n"); + acroForm.set("XFA", oldXfa); + newRefs.push({ + ref: acroFormRef, + data: buffer.join("") + }); + } + + if (xfaData === null) { + const datasets = xref.fetchIfRef(xfaDatasetsRef); + xfaData = writeXFADataForAcroform(datasets.getString(), newRefs); + } + + const encrypt = xref.encrypt; + + if (encrypt) { + const transform = encrypt.createCipherTransform(xfaDatasetsRef.num, xfaDatasetsRef.gen); + xfaData = transform.encryptString(xfaData); + } + + const data = `${xfaDatasetsRef.num} ${xfaDatasetsRef.gen} obj\n` + `<< /Type /EmbeddedFile /Length ${xfaData.length}>>\nstream\n` + xfaData + "\nendstream\nendobj\n"; + newRefs.push({ + ref: xfaDatasetsRef, + data + }); +} + +function incrementalUpdate({ + originalData, + xrefInfo, + newRefs, + xref = null, + hasXfa = false, + xfaDatasetsRef = null, + hasXfaDatasetsEntry = false, + acroFormRef = null, + acroForm = null, + xfaData = null +}) { + if (hasXfa) { + updateXFA({ + xfaData, + xfaDatasetsRef, + hasXfaDatasetsEntry, + acroFormRef, + acroForm, + newRefs, + xref, + xrefInfo + }); + } + + const newXref = new _primitives.Dict(null); + const refForXrefTable = xrefInfo.newRef; + let buffer, baseOffset; + const lastByte = originalData.at(-1); + + if (lastByte === 0x0a || lastByte === 0x0d) { + buffer = []; + baseOffset = originalData.length; + } else { + buffer = ["\n"]; + baseOffset = originalData.length + 1; + } + + newXref.set("Size", refForXrefTable.num + 1); + newXref.set("Prev", xrefInfo.startXRef); + newXref.set("Type", _primitives.Name.get("XRef")); + + if (xrefInfo.rootRef !== null) { + newXref.set("Root", xrefInfo.rootRef); + } + + if (xrefInfo.infoRef !== null) { + newXref.set("Info", xrefInfo.infoRef); + } + + if (xrefInfo.encryptRef !== null) { + newXref.set("Encrypt", xrefInfo.encryptRef); + } + + newRefs.push({ + ref: refForXrefTable, + data: "" + }); + newRefs = newRefs.sort((a, b) => { + return a.ref.num - b.ref.num; + }); + const xrefTableData = [[0, 1, 0xffff]]; + const indexes = [0, 1]; + let maxOffset = 0; + + for (const { + ref, + data + } of newRefs) { + maxOffset = Math.max(maxOffset, baseOffset); + xrefTableData.push([1, baseOffset, Math.min(ref.gen, 0xffff)]); + baseOffset += data.length; + indexes.push(ref.num, 1); + buffer.push(data); + } + + newXref.set("Index", indexes); + + if (Array.isArray(xrefInfo.fileIds) && xrefInfo.fileIds.length > 0) { + const md5 = computeMD5(baseOffset, xrefInfo); + newXref.set("ID", [xrefInfo.fileIds[0], md5]); + } + + const offsetSize = Math.ceil(Math.log2(maxOffset) / 8); + const sizes = [1, offsetSize, 2]; + const structSize = sizes[0] + sizes[1] + sizes[2]; + const tableLength = structSize * xrefTableData.length; + newXref.set("W", sizes); + newXref.set("Length", tableLength); + buffer.push(`${refForXrefTable.num} ${refForXrefTable.gen} obj\n`); + writeDict(newXref, buffer, null); + buffer.push(" stream\n"); + const bufferLen = buffer.reduce((a, str) => a + str.length, 0); + const footer = `\nendstream\nendobj\nstartxref\n${baseOffset}\n%%EOF\n`; + const array = new Uint8Array(originalData.length + bufferLen + tableLength + footer.length); + array.set(originalData); + let offset = originalData.length; + + for (const str of buffer) { + writeString(str, offset, array); + offset += str.length; + } + + for (const [type, objOffset, gen] of xrefTableData) { + offset = writeInt(type, sizes[0], offset, array); + offset = writeInt(objOffset, sizes[1], offset, array); + offset = writeInt(gen, sizes[2], offset, array); + } + + writeString(footer, offset, array); + return array; +} + +/***/ }), +/* 66 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.XMLParserErrorCode = exports.XMLParserBase = exports.SimpleXMLParser = exports.SimpleDOMNode = void 0; + +var _core_utils = __w_pdfjs_require__(6); + +const XMLParserErrorCode = { + NoError: 0, + EndOfDocument: -1, + UnterminatedCdat: -2, + UnterminatedXmlDeclaration: -3, + UnterminatedDoctypeDeclaration: -4, + UnterminatedComment: -5, + MalformedElement: -6, + OutOfMemory: -7, + UnterminatedAttributeValue: -8, + UnterminatedElement: -9, + ElementNeverBegun: -10 +}; +exports.XMLParserErrorCode = XMLParserErrorCode; + +function isWhitespace(s, index) { + const ch = s[index]; + return ch === " " || ch === "\n" || ch === "\r" || ch === "\t"; +} + +function isWhitespaceString(s) { + for (let i = 0, ii = s.length; i < ii; i++) { + if (!isWhitespace(s, i)) { + return false; + } + } + + return true; +} + +class XMLParserBase { + _resolveEntities(s) { + return s.replace(/&([^;]+);/g, (all, entity) => { + if (entity.substring(0, 2) === "#x") { + return String.fromCodePoint(parseInt(entity.substring(2), 16)); + } else if (entity.substring(0, 1) === "#") { + return String.fromCodePoint(parseInt(entity.substring(1), 10)); + } + + switch (entity) { + case "lt": + return "<"; + + case "gt": + return ">"; + + case "amp": + return "&"; + + case "quot": + return '"'; + + case "apos": + return "'"; + } + + return this.onResolveEntity(entity); + }); + } + + _parseContent(s, start) { + const attributes = []; + let pos = start; + + function skipWs() { + while (pos < s.length && isWhitespace(s, pos)) { + ++pos; + } + } + + while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== ">" && s[pos] !== "/") { + ++pos; + } + + const name = s.substring(start, pos); + skipWs(); + + while (pos < s.length && s[pos] !== ">" && s[pos] !== "/" && s[pos] !== "?") { + skipWs(); + let attrName = "", + attrValue = ""; + + while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== "=") { + attrName += s[pos]; + ++pos; + } + + skipWs(); + + if (s[pos] !== "=") { + return null; + } + + ++pos; + skipWs(); + const attrEndChar = s[pos]; + + if (attrEndChar !== '"' && attrEndChar !== "'") { + return null; + } + + const attrEndIndex = s.indexOf(attrEndChar, ++pos); + + if (attrEndIndex < 0) { + return null; + } + + attrValue = s.substring(pos, attrEndIndex); + attributes.push({ + name: attrName, + value: this._resolveEntities(attrValue) + }); + pos = attrEndIndex + 1; + skipWs(); + } + + return { + name, + attributes, + parsed: pos - start + }; + } + + _parseProcessingInstruction(s, start) { + let pos = start; + + function skipWs() { + while (pos < s.length && isWhitespace(s, pos)) { + ++pos; + } + } + + while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== ">" && s[pos] !== "?" && s[pos] !== "/") { + ++pos; + } + + const name = s.substring(start, pos); + skipWs(); + const attrStart = pos; + + while (pos < s.length && (s[pos] !== "?" || s[pos + 1] !== ">")) { + ++pos; + } + + const value = s.substring(attrStart, pos); + return { + name, + value, + parsed: pos - start + }; + } + + parseXml(s) { + let i = 0; + + while (i < s.length) { + const ch = s[i]; + let j = i; + + if (ch === "<") { + ++j; + const ch2 = s[j]; + let q; + + switch (ch2) { + case "/": + ++j; + q = s.indexOf(">", j); + + if (q < 0) { + this.onError(XMLParserErrorCode.UnterminatedElement); + return; + } + + this.onEndElement(s.substring(j, q)); + j = q + 1; + break; + + case "?": + ++j; + + const pi = this._parseProcessingInstruction(s, j); + + if (s.substring(j + pi.parsed, j + pi.parsed + 2) !== "?>") { + this.onError(XMLParserErrorCode.UnterminatedXmlDeclaration); + return; + } + + this.onPi(pi.name, pi.value); + j += pi.parsed + 2; + break; + + case "!": + if (s.substring(j + 1, j + 3) === "--") { + q = s.indexOf("-->", j + 3); + + if (q < 0) { + this.onError(XMLParserErrorCode.UnterminatedComment); + return; + } + + this.onComment(s.substring(j + 3, q)); + j = q + 3; + } else if (s.substring(j + 1, j + 8) === "[CDATA[") { + q = s.indexOf("]]>", j + 8); + + if (q < 0) { + this.onError(XMLParserErrorCode.UnterminatedCdat); + return; + } + + this.onCdata(s.substring(j + 8, q)); + j = q + 3; + } else if (s.substring(j + 1, j + 8) === "DOCTYPE") { + const q2 = s.indexOf("[", j + 8); + let complexDoctype = false; + q = s.indexOf(">", j + 8); + + if (q < 0) { + this.onError(XMLParserErrorCode.UnterminatedDoctypeDeclaration); + return; + } + + if (q2 > 0 && q > q2) { + q = s.indexOf("]>", j + 8); + + if (q < 0) { + this.onError(XMLParserErrorCode.UnterminatedDoctypeDeclaration); + return; + } + + complexDoctype = true; + } + + const doctypeContent = s.substring(j + 8, q + (complexDoctype ? 1 : 0)); + this.onDoctype(doctypeContent); + j = q + (complexDoctype ? 2 : 1); + } else { + this.onError(XMLParserErrorCode.MalformedElement); + return; + } + + break; + + default: + const content = this._parseContent(s, j); + + if (content === null) { + this.onError(XMLParserErrorCode.MalformedElement); + return; + } + + let isClosed = false; + + if (s.substring(j + content.parsed, j + content.parsed + 2) === "/>") { + isClosed = true; + } else if (s.substring(j + content.parsed, j + content.parsed + 1) !== ">") { + this.onError(XMLParserErrorCode.UnterminatedElement); + return; + } + + this.onBeginElement(content.name, content.attributes, isClosed); + j += content.parsed + (isClosed ? 2 : 1); + break; + } + } else { + while (j < s.length && s[j] !== "<") { + j++; + } + + const text = s.substring(i, j); + this.onText(this._resolveEntities(text)); + } + + i = j; + } + } + + onResolveEntity(name) { + return `&${name};`; + } + + onPi(name, value) {} + + onComment(text) {} + + onCdata(text) {} + + onDoctype(doctypeContent) {} + + onText(text) {} + + onBeginElement(name, attributes, isEmpty) {} + + onEndElement(name) {} + + onError(code) {} + +} + +exports.XMLParserBase = XMLParserBase; + +class SimpleDOMNode { + constructor(nodeName, nodeValue) { + this.nodeName = nodeName; + this.nodeValue = nodeValue; + Object.defineProperty(this, "parentNode", { + value: null, + writable: true + }); + } + + get firstChild() { + return this.childNodes && this.childNodes[0]; + } + + get nextSibling() { + const childNodes = this.parentNode.childNodes; + + if (!childNodes) { + return undefined; + } + + const index = childNodes.indexOf(this); + + if (index === -1) { + return undefined; + } + + return childNodes[index + 1]; + } + + get textContent() { + if (!this.childNodes) { + return this.nodeValue || ""; + } + + return this.childNodes.map(function (child) { + return child.textContent; + }).join(""); + } + + get children() { + return this.childNodes || []; + } + + hasChildNodes() { + return this.childNodes && this.childNodes.length > 0; + } + + searchNode(paths, pos) { + if (pos >= paths.length) { + return this; + } + + const component = paths[pos]; + const stack = []; + let node = this; + + while (true) { + if (component.name === node.nodeName) { + if (component.pos === 0) { + const res = node.searchNode(paths, pos + 1); + + if (res !== null) { + return res; + } + } else if (stack.length === 0) { + return null; + } else { + const [parent] = stack.pop(); + let siblingPos = 0; + + for (const child of parent.childNodes) { + if (component.name === child.nodeName) { + if (siblingPos === component.pos) { + return child.searchNode(paths, pos + 1); + } + + siblingPos++; + } + } + + return node.searchNode(paths, pos + 1); + } + } + + if (node.childNodes && node.childNodes.length !== 0) { + stack.push([node, 0]); + node = node.childNodes[0]; + } else if (stack.length === 0) { + return null; + } else { + while (stack.length !== 0) { + const [parent, currentPos] = stack.pop(); + const newPos = currentPos + 1; + + if (newPos < parent.childNodes.length) { + stack.push([parent, newPos]); + node = parent.childNodes[newPos]; + break; + } + } + + if (stack.length === 0) { + return null; + } + } + } + } + + dump(buffer) { + if (this.nodeName === "#text") { + buffer.push((0, _core_utils.encodeToXmlString)(this.nodeValue)); + return; + } + + buffer.push(`<${this.nodeName}`); + + if (this.attributes) { + for (const attribute of this.attributes) { + buffer.push(` ${attribute.name}="${(0, _core_utils.encodeToXmlString)(attribute.value)}"`); + } + } + + if (this.hasChildNodes()) { + buffer.push(">"); + + for (const child of this.childNodes) { + child.dump(buffer); + } + + buffer.push(`</${this.nodeName}>`); + } else if (this.nodeValue) { + buffer.push(`>${(0, _core_utils.encodeToXmlString)(this.nodeValue)}</${this.nodeName}>`); + } else { + buffer.push("/>"); + } + } + +} + +exports.SimpleDOMNode = SimpleDOMNode; + +class SimpleXMLParser extends XMLParserBase { + constructor({ + hasAttributes = false, + lowerCaseName = false + }) { + super(); + this._currentFragment = null; + this._stack = null; + this._errorCode = XMLParserErrorCode.NoError; + this._hasAttributes = hasAttributes; + this._lowerCaseName = lowerCaseName; + } + + parseFromString(data) { + this._currentFragment = []; + this._stack = []; + this._errorCode = XMLParserErrorCode.NoError; + this.parseXml(data); + + if (this._errorCode !== XMLParserErrorCode.NoError) { + return undefined; + } + + const [documentElement] = this._currentFragment; + + if (!documentElement) { + return undefined; + } + + return { + documentElement + }; + } + + onText(text) { + if (isWhitespaceString(text)) { + return; + } + + const node = new SimpleDOMNode("#text", text); + + this._currentFragment.push(node); + } + + onCdata(text) { + const node = new SimpleDOMNode("#text", text); + + this._currentFragment.push(node); + } + + onBeginElement(name, attributes, isEmpty) { + if (this._lowerCaseName) { + name = name.toLowerCase(); + } + + const node = new SimpleDOMNode(name); + node.childNodes = []; + + if (this._hasAttributes) { + node.attributes = attributes; + } + + this._currentFragment.push(node); + + if (isEmpty) { + return; + } + + this._stack.push(this._currentFragment); + + this._currentFragment = node.childNodes; + } + + onEndElement(name) { + this._currentFragment = this._stack.pop() || []; + + const lastElement = this._currentFragment.at(-1); + + if (!lastElement) { + return null; + } + + for (let i = 0, ii = lastElement.childNodes.length; i < ii; i++) { + lastElement.childNodes[i].parentNode = lastElement; + } + + return lastElement; + } + + onError(code) { + this._errorCode = code; + } + +} + +exports.SimpleXMLParser = SimpleXMLParser; + +/***/ }), +/* 67 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.calculateSHA256 = exports.calculateMD5 = exports.PDF20 = exports.PDF17 = exports.CipherTransformFactory = exports.ARCFourCipher = exports.AES256Cipher = exports.AES128Cipher = void 0; +exports.calculateSHA384 = calculateSHA384; +exports.calculateSHA512 = void 0; + +var _util = __w_pdfjs_require__(2); + +var _primitives = __w_pdfjs_require__(5); + +var _decrypt_stream = __w_pdfjs_require__(68); + +class ARCFourCipher { + constructor(key) { + this.a = 0; + this.b = 0; + const s = new Uint8Array(256); + const keyLength = key.length; + + for (let i = 0; i < 256; ++i) { + s[i] = i; + } + + for (let i = 0, j = 0; i < 256; ++i) { + const tmp = s[i]; + j = j + tmp + key[i % keyLength] & 0xff; + s[i] = s[j]; + s[j] = tmp; + } + + this.s = s; + } + + encryptBlock(data) { + let a = this.a, + b = this.b; + const s = this.s; + const n = data.length; + const output = new Uint8Array(n); + + for (let i = 0; i < n; ++i) { + a = a + 1 & 0xff; + const tmp = s[a]; + b = b + tmp & 0xff; + const tmp2 = s[b]; + s[a] = tmp2; + s[b] = tmp; + output[i] = data[i] ^ s[tmp + tmp2 & 0xff]; + } + + this.a = a; + this.b = b; + return output; + } + + decryptBlock(data) { + return this.encryptBlock(data); + } + + encrypt(data) { + return this.encryptBlock(data); + } + +} + +exports.ARCFourCipher = ARCFourCipher; + +const calculateMD5 = function calculateMD5Closure() { + const r = new Uint8Array([7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]); + const k = new Int32Array([-680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426, -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162, 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632, 643717713, -373897302, -701558691, 38016083, -660478335, -405537848, 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784, 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556, -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222, -722521979, 76029189, -640364487, -421815835, 530742520, -995338651, -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606, -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649, -145523070, -1120210379, 718787259, -343485551]); + + function hash(data, offset, length) { + let h0 = 1732584193, + h1 = -271733879, + h2 = -1732584194, + h3 = 271733878; + const paddedLength = length + 72 & ~63; + const padded = new Uint8Array(paddedLength); + let i, j; + + for (i = 0; i < length; ++i) { + padded[i] = data[offset++]; + } + + padded[i++] = 0x80; + const n = paddedLength - 8; + + while (i < n) { + padded[i++] = 0; + } + + padded[i++] = length << 3 & 0xff; + padded[i++] = length >> 5 & 0xff; + padded[i++] = length >> 13 & 0xff; + padded[i++] = length >> 21 & 0xff; + padded[i++] = length >>> 29 & 0xff; + padded[i++] = 0; + padded[i++] = 0; + padded[i++] = 0; + const w = new Int32Array(16); + + for (i = 0; i < paddedLength;) { + for (j = 0; j < 16; ++j, i += 4) { + w[j] = padded[i] | padded[i + 1] << 8 | padded[i + 2] << 16 | padded[i + 3] << 24; + } + + let a = h0, + b = h1, + c = h2, + d = h3, + f, + g; + + for (j = 0; j < 64; ++j) { + if (j < 16) { + f = b & c | ~b & d; + g = j; + } else if (j < 32) { + f = d & b | ~d & c; + g = 5 * j + 1 & 15; + } else if (j < 48) { + f = b ^ c ^ d; + g = 3 * j + 5 & 15; + } else { + f = c ^ (b | ~d); + g = 7 * j & 15; + } + + const tmp = d, + rotateArg = a + f + k[j] + w[g] | 0, + rotate = r[j]; + d = c; + c = b; + b = b + (rotateArg << rotate | rotateArg >>> 32 - rotate) | 0; + a = tmp; + } + + h0 = h0 + a | 0; + h1 = h1 + b | 0; + h2 = h2 + c | 0; + h3 = h3 + d | 0; + } + + return new Uint8Array([h0 & 0xFF, h0 >> 8 & 0xFF, h0 >> 16 & 0xFF, h0 >>> 24 & 0xFF, h1 & 0xFF, h1 >> 8 & 0xFF, h1 >> 16 & 0xFF, h1 >>> 24 & 0xFF, h2 & 0xFF, h2 >> 8 & 0xFF, h2 >> 16 & 0xFF, h2 >>> 24 & 0xFF, h3 & 0xFF, h3 >> 8 & 0xFF, h3 >> 16 & 0xFF, h3 >>> 24 & 0xFF]); + } + + return hash; +}(); + +exports.calculateMD5 = calculateMD5; + +class Word64 { + constructor(highInteger, lowInteger) { + this.high = highInteger | 0; + this.low = lowInteger | 0; + } + + and(word) { + this.high &= word.high; + this.low &= word.low; + } + + xor(word) { + this.high ^= word.high; + this.low ^= word.low; + } + + or(word) { + this.high |= word.high; + this.low |= word.low; + } + + shiftRight(places) { + if (places >= 32) { + this.low = this.high >>> places - 32 | 0; + this.high = 0; + } else { + this.low = this.low >>> places | this.high << 32 - places; + this.high = this.high >>> places | 0; + } + } + + shiftLeft(places) { + if (places >= 32) { + this.high = this.low << places - 32; + this.low = 0; + } else { + this.high = this.high << places | this.low >>> 32 - places; + this.low <<= places; + } + } + + rotateRight(places) { + let low, high; + + if (places & 32) { + high = this.low; + low = this.high; + } else { + low = this.low; + high = this.high; + } + + places &= 31; + this.low = low >>> places | high << 32 - places; + this.high = high >>> places | low << 32 - places; + } + + not() { + this.high = ~this.high; + this.low = ~this.low; + } + + add(word) { + const lowAdd = (this.low >>> 0) + (word.low >>> 0); + let highAdd = (this.high >>> 0) + (word.high >>> 0); + + if (lowAdd > 0xffffffff) { + highAdd += 1; + } + + this.low = lowAdd | 0; + this.high = highAdd | 0; + } + + copyTo(bytes, offset) { + bytes[offset] = this.high >>> 24 & 0xff; + bytes[offset + 1] = this.high >> 16 & 0xff; + bytes[offset + 2] = this.high >> 8 & 0xff; + bytes[offset + 3] = this.high & 0xff; + bytes[offset + 4] = this.low >>> 24 & 0xff; + bytes[offset + 5] = this.low >> 16 & 0xff; + bytes[offset + 6] = this.low >> 8 & 0xff; + bytes[offset + 7] = this.low & 0xff; + } + + assign(word) { + this.high = word.high; + this.low = word.low; + } + +} + +const calculateSHA256 = function calculateSHA256Closure() { + function rotr(x, n) { + return x >>> n | x << 32 - n; + } + + function ch(x, y, z) { + return x & y ^ ~x & z; + } + + function maj(x, y, z) { + return x & y ^ x & z ^ y & z; + } + + function sigma(x) { + return rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22); + } + + function sigmaPrime(x) { + return rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25); + } + + function littleSigma(x) { + return rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3; + } + + function littleSigmaPrime(x) { + return rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10; + } + + const k = [0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2]; + + function hash(data, offset, length) { + let h0 = 0x6a09e667, + h1 = 0xbb67ae85, + h2 = 0x3c6ef372, + h3 = 0xa54ff53a, + h4 = 0x510e527f, + h5 = 0x9b05688c, + h6 = 0x1f83d9ab, + h7 = 0x5be0cd19; + const paddedLength = Math.ceil((length + 9) / 64) * 64; + const padded = new Uint8Array(paddedLength); + let i, j; + + for (i = 0; i < length; ++i) { + padded[i] = data[offset++]; + } + + padded[i++] = 0x80; + const n = paddedLength - 8; + + while (i < n) { + padded[i++] = 0; + } + + padded[i++] = 0; + padded[i++] = 0; + padded[i++] = 0; + padded[i++] = length >>> 29 & 0xff; + padded[i++] = length >> 21 & 0xff; + padded[i++] = length >> 13 & 0xff; + padded[i++] = length >> 5 & 0xff; + padded[i++] = length << 3 & 0xff; + const w = new Uint32Array(64); + + for (i = 0; i < paddedLength;) { + for (j = 0; j < 16; ++j) { + w[j] = padded[i] << 24 | padded[i + 1] << 16 | padded[i + 2] << 8 | padded[i + 3]; + i += 4; + } + + for (j = 16; j < 64; ++j) { + w[j] = littleSigmaPrime(w[j - 2]) + w[j - 7] + littleSigma(w[j - 15]) + w[j - 16] | 0; + } + + let a = h0, + b = h1, + c = h2, + d = h3, + e = h4, + f = h5, + g = h6, + h = h7, + t1, + t2; + + for (j = 0; j < 64; ++j) { + t1 = h + sigmaPrime(e) + ch(e, f, g) + k[j] + w[j]; + t2 = sigma(a) + maj(a, b, c); + h = g; + g = f; + f = e; + e = d + t1 | 0; + d = c; + c = b; + b = a; + a = t1 + t2 | 0; + } + + h0 = h0 + a | 0; + h1 = h1 + b | 0; + h2 = h2 + c | 0; + h3 = h3 + d | 0; + h4 = h4 + e | 0; + h5 = h5 + f | 0; + h6 = h6 + g | 0; + h7 = h7 + h | 0; + } + + return new Uint8Array([h0 >> 24 & 0xFF, h0 >> 16 & 0xFF, h0 >> 8 & 0xFF, h0 & 0xFF, h1 >> 24 & 0xFF, h1 >> 16 & 0xFF, h1 >> 8 & 0xFF, h1 & 0xFF, h2 >> 24 & 0xFF, h2 >> 16 & 0xFF, h2 >> 8 & 0xFF, h2 & 0xFF, h3 >> 24 & 0xFF, h3 >> 16 & 0xFF, h3 >> 8 & 0xFF, h3 & 0xFF, h4 >> 24 & 0xFF, h4 >> 16 & 0xFF, h4 >> 8 & 0xFF, h4 & 0xFF, h5 >> 24 & 0xFF, h5 >> 16 & 0xFF, h5 >> 8 & 0xFF, h5 & 0xFF, h6 >> 24 & 0xFF, h6 >> 16 & 0xFF, h6 >> 8 & 0xFF, h6 & 0xFF, h7 >> 24 & 0xFF, h7 >> 16 & 0xFF, h7 >> 8 & 0xFF, h7 & 0xFF]); + } + + return hash; +}(); + +exports.calculateSHA256 = calculateSHA256; + +const calculateSHA512 = function calculateSHA512Closure() { + function ch(result, x, y, z, tmp) { + result.assign(x); + result.and(y); + tmp.assign(x); + tmp.not(); + tmp.and(z); + result.xor(tmp); + } + + function maj(result, x, y, z, tmp) { + result.assign(x); + result.and(y); + tmp.assign(x); + tmp.and(z); + result.xor(tmp); + tmp.assign(y); + tmp.and(z); + result.xor(tmp); + } + + function sigma(result, x, tmp) { + result.assign(x); + result.rotateRight(28); + tmp.assign(x); + tmp.rotateRight(34); + result.xor(tmp); + tmp.assign(x); + tmp.rotateRight(39); + result.xor(tmp); + } + + function sigmaPrime(result, x, tmp) { + result.assign(x); + result.rotateRight(14); + tmp.assign(x); + tmp.rotateRight(18); + result.xor(tmp); + tmp.assign(x); + tmp.rotateRight(41); + result.xor(tmp); + } + + function littleSigma(result, x, tmp) { + result.assign(x); + result.rotateRight(1); + tmp.assign(x); + tmp.rotateRight(8); + result.xor(tmp); + tmp.assign(x); + tmp.shiftRight(7); + result.xor(tmp); + } + + function littleSigmaPrime(result, x, tmp) { + result.assign(x); + result.rotateRight(19); + tmp.assign(x); + tmp.rotateRight(61); + result.xor(tmp); + tmp.assign(x); + tmp.shiftRight(6); + result.xor(tmp); + } + + const k = [new Word64(0x428a2f98, 0xd728ae22), new Word64(0x71374491, 0x23ef65cd), new Word64(0xb5c0fbcf, 0xec4d3b2f), new Word64(0xe9b5dba5, 0x8189dbbc), new Word64(0x3956c25b, 0xf348b538), new Word64(0x59f111f1, 0xb605d019), new Word64(0x923f82a4, 0xaf194f9b), new Word64(0xab1c5ed5, 0xda6d8118), new Word64(0xd807aa98, 0xa3030242), new Word64(0x12835b01, 0x45706fbe), new Word64(0x243185be, 0x4ee4b28c), new Word64(0x550c7dc3, 0xd5ffb4e2), new Word64(0x72be5d74, 0xf27b896f), new Word64(0x80deb1fe, 0x3b1696b1), new Word64(0x9bdc06a7, 0x25c71235), new Word64(0xc19bf174, 0xcf692694), new Word64(0xe49b69c1, 0x9ef14ad2), new Word64(0xefbe4786, 0x384f25e3), new Word64(0x0fc19dc6, 0x8b8cd5b5), new Word64(0x240ca1cc, 0x77ac9c65), new Word64(0x2de92c6f, 0x592b0275), new Word64(0x4a7484aa, 0x6ea6e483), new Word64(0x5cb0a9dc, 0xbd41fbd4), new Word64(0x76f988da, 0x831153b5), new Word64(0x983e5152, 0xee66dfab), new Word64(0xa831c66d, 0x2db43210), new Word64(0xb00327c8, 0x98fb213f), new Word64(0xbf597fc7, 0xbeef0ee4), new Word64(0xc6e00bf3, 0x3da88fc2), new Word64(0xd5a79147, 0x930aa725), new Word64(0x06ca6351, 0xe003826f), new Word64(0x14292967, 0x0a0e6e70), new Word64(0x27b70a85, 0x46d22ffc), new Word64(0x2e1b2138, 0x5c26c926), new Word64(0x4d2c6dfc, 0x5ac42aed), new Word64(0x53380d13, 0x9d95b3df), new Word64(0x650a7354, 0x8baf63de), new Word64(0x766a0abb, 0x3c77b2a8), new Word64(0x81c2c92e, 0x47edaee6), new Word64(0x92722c85, 0x1482353b), new Word64(0xa2bfe8a1, 0x4cf10364), new Word64(0xa81a664b, 0xbc423001), new Word64(0xc24b8b70, 0xd0f89791), new Word64(0xc76c51a3, 0x0654be30), new Word64(0xd192e819, 0xd6ef5218), new Word64(0xd6990624, 0x5565a910), new Word64(0xf40e3585, 0x5771202a), new Word64(0x106aa070, 0x32bbd1b8), new Word64(0x19a4c116, 0xb8d2d0c8), new Word64(0x1e376c08, 0x5141ab53), new Word64(0x2748774c, 0xdf8eeb99), new Word64(0x34b0bcb5, 0xe19b48a8), new Word64(0x391c0cb3, 0xc5c95a63), new Word64(0x4ed8aa4a, 0xe3418acb), new Word64(0x5b9cca4f, 0x7763e373), new Word64(0x682e6ff3, 0xd6b2b8a3), new Word64(0x748f82ee, 0x5defb2fc), new Word64(0x78a5636f, 0x43172f60), new Word64(0x84c87814, 0xa1f0ab72), new Word64(0x8cc70208, 0x1a6439ec), new Word64(0x90befffa, 0x23631e28), new Word64(0xa4506ceb, 0xde82bde9), new Word64(0xbef9a3f7, 0xb2c67915), new Word64(0xc67178f2, 0xe372532b), new Word64(0xca273ece, 0xea26619c), new Word64(0xd186b8c7, 0x21c0c207), new Word64(0xeada7dd6, 0xcde0eb1e), new Word64(0xf57d4f7f, 0xee6ed178), new Word64(0x06f067aa, 0x72176fba), new Word64(0x0a637dc5, 0xa2c898a6), new Word64(0x113f9804, 0xbef90dae), new Word64(0x1b710b35, 0x131c471b), new Word64(0x28db77f5, 0x23047d84), new Word64(0x32caab7b, 0x40c72493), new Word64(0x3c9ebe0a, 0x15c9bebc), new Word64(0x431d67c4, 0x9c100d4c), new Word64(0x4cc5d4be, 0xcb3e42b6), new Word64(0x597f299c, 0xfc657e2a), new Word64(0x5fcb6fab, 0x3ad6faec), new Word64(0x6c44198c, 0x4a475817)]; + + function hash(data, offset, length, mode384 = false) { + let h0, h1, h2, h3, h4, h5, h6, h7; + + if (!mode384) { + h0 = new Word64(0x6a09e667, 0xf3bcc908); + h1 = new Word64(0xbb67ae85, 0x84caa73b); + h2 = new Word64(0x3c6ef372, 0xfe94f82b); + h3 = new Word64(0xa54ff53a, 0x5f1d36f1); + h4 = new Word64(0x510e527f, 0xade682d1); + h5 = new Word64(0x9b05688c, 0x2b3e6c1f); + h6 = new Word64(0x1f83d9ab, 0xfb41bd6b); + h7 = new Word64(0x5be0cd19, 0x137e2179); + } else { + h0 = new Word64(0xcbbb9d5d, 0xc1059ed8); + h1 = new Word64(0x629a292a, 0x367cd507); + h2 = new Word64(0x9159015a, 0x3070dd17); + h3 = new Word64(0x152fecd8, 0xf70e5939); + h4 = new Word64(0x67332667, 0xffc00b31); + h5 = new Word64(0x8eb44a87, 0x68581511); + h6 = new Word64(0xdb0c2e0d, 0x64f98fa7); + h7 = new Word64(0x47b5481d, 0xbefa4fa4); + } + + const paddedLength = Math.ceil((length + 17) / 128) * 128; + const padded = new Uint8Array(paddedLength); + let i, j; + + for (i = 0; i < length; ++i) { + padded[i] = data[offset++]; + } + + padded[i++] = 0x80; + const n = paddedLength - 16; + + while (i < n) { + padded[i++] = 0; + } + + padded[i++] = 0; + padded[i++] = 0; + padded[i++] = 0; + padded[i++] = 0; + padded[i++] = 0; + padded[i++] = 0; + padded[i++] = 0; + padded[i++] = 0; + padded[i++] = 0; + padded[i++] = 0; + padded[i++] = 0; + padded[i++] = length >>> 29 & 0xff; + padded[i++] = length >> 21 & 0xff; + padded[i++] = length >> 13 & 0xff; + padded[i++] = length >> 5 & 0xff; + padded[i++] = length << 3 & 0xff; + const w = new Array(80); + + for (i = 0; i < 80; i++) { + w[i] = new Word64(0, 0); + } + + let a = new Word64(0, 0), + b = new Word64(0, 0), + c = new Word64(0, 0); + let d = new Word64(0, 0), + e = new Word64(0, 0), + f = new Word64(0, 0); + let g = new Word64(0, 0), + h = new Word64(0, 0); + const t1 = new Word64(0, 0), + t2 = new Word64(0, 0); + const tmp1 = new Word64(0, 0), + tmp2 = new Word64(0, 0); + let tmp3; + + for (i = 0; i < paddedLength;) { + for (j = 0; j < 16; ++j) { + w[j].high = padded[i] << 24 | padded[i + 1] << 16 | padded[i + 2] << 8 | padded[i + 3]; + w[j].low = padded[i + 4] << 24 | padded[i + 5] << 16 | padded[i + 6] << 8 | padded[i + 7]; + i += 8; + } + + for (j = 16; j < 80; ++j) { + tmp3 = w[j]; + littleSigmaPrime(tmp3, w[j - 2], tmp2); + tmp3.add(w[j - 7]); + littleSigma(tmp1, w[j - 15], tmp2); + tmp3.add(tmp1); + tmp3.add(w[j - 16]); + } + + a.assign(h0); + b.assign(h1); + c.assign(h2); + d.assign(h3); + e.assign(h4); + f.assign(h5); + g.assign(h6); + h.assign(h7); + + for (j = 0; j < 80; ++j) { + t1.assign(h); + sigmaPrime(tmp1, e, tmp2); + t1.add(tmp1); + ch(tmp1, e, f, g, tmp2); + t1.add(tmp1); + t1.add(k[j]); + t1.add(w[j]); + sigma(t2, a, tmp2); + maj(tmp1, a, b, c, tmp2); + t2.add(tmp1); + tmp3 = h; + h = g; + g = f; + f = e; + d.add(t1); + e = d; + d = c; + c = b; + b = a; + tmp3.assign(t1); + tmp3.add(t2); + a = tmp3; + } + + h0.add(a); + h1.add(b); + h2.add(c); + h3.add(d); + h4.add(e); + h5.add(f); + h6.add(g); + h7.add(h); + } + + let result; + + if (!mode384) { + result = new Uint8Array(64); + h0.copyTo(result, 0); + h1.copyTo(result, 8); + h2.copyTo(result, 16); + h3.copyTo(result, 24); + h4.copyTo(result, 32); + h5.copyTo(result, 40); + h6.copyTo(result, 48); + h7.copyTo(result, 56); + } else { + result = new Uint8Array(48); + h0.copyTo(result, 0); + h1.copyTo(result, 8); + h2.copyTo(result, 16); + h3.copyTo(result, 24); + h4.copyTo(result, 32); + h5.copyTo(result, 40); + } + + return result; + } + + return hash; +}(); + +exports.calculateSHA512 = calculateSHA512; + +function calculateSHA384(data, offset, length) { + return calculateSHA512(data, offset, length, true); +} + +class NullCipher { + decryptBlock(data) { + return data; + } + + encrypt(data) { + return data; + } + +} + +class AESBaseCipher { + constructor() { + if (this.constructor === AESBaseCipher) { + (0, _util.unreachable)("Cannot initialize AESBaseCipher."); + } + + this._s = new Uint8Array([0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c, 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08, 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e, 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf, 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16]); + this._inv_s = new Uint8Array([0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e, 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87, 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32, 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e, 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49, 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16, 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50, 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84, 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05, 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02, 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41, 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73, 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8, 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89, 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b, 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4, 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d, 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d, 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61, 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d]); + this._mix = new Uint32Array([0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927, 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45, 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb, 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381, 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf, 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66, 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28, 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012, 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec, 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e, 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd, 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7, 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89, 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b, 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815, 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f, 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa, 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8, 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36, 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c, 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742, 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea, 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4, 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e, 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360, 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502, 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87, 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd, 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3, 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621, 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f, 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55, 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26, 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844, 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba, 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480, 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce, 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67, 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929, 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713, 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed, 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f, 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]); + this._mixCol = new Uint8Array(256); + + for (let i = 0; i < 256; i++) { + if (i < 128) { + this._mixCol[i] = i << 1; + } else { + this._mixCol[i] = i << 1 ^ 0x1b; + } + } + + this.buffer = new Uint8Array(16); + this.bufferPosition = 0; + } + + _expandKey(cipherKey) { + (0, _util.unreachable)("Cannot call `_expandKey` on the base class"); + } + + _decrypt(input, key) { + let t, u, v; + const state = new Uint8Array(16); + state.set(input); + + for (let j = 0, k = this._keySize; j < 16; ++j, ++k) { + state[j] ^= key[k]; + } + + for (let i = this._cyclesOfRepetition - 1; i >= 1; --i) { + t = state[13]; + state[13] = state[9]; + state[9] = state[5]; + state[5] = state[1]; + state[1] = t; + t = state[14]; + u = state[10]; + state[14] = state[6]; + state[10] = state[2]; + state[6] = t; + state[2] = u; + t = state[15]; + u = state[11]; + v = state[7]; + state[15] = state[3]; + state[11] = t; + state[7] = u; + state[3] = v; + + for (let j = 0; j < 16; ++j) { + state[j] = this._inv_s[state[j]]; + } + + for (let j = 0, k = i * 16; j < 16; ++j, ++k) { + state[j] ^= key[k]; + } + + for (let j = 0; j < 16; j += 4) { + const s0 = this._mix[state[j]]; + const s1 = this._mix[state[j + 1]]; + const s2 = this._mix[state[j + 2]]; + const s3 = this._mix[state[j + 3]]; + t = s0 ^ s1 >>> 8 ^ s1 << 24 ^ s2 >>> 16 ^ s2 << 16 ^ s3 >>> 24 ^ s3 << 8; + state[j] = t >>> 24 & 0xff; + state[j + 1] = t >> 16 & 0xff; + state[j + 2] = t >> 8 & 0xff; + state[j + 3] = t & 0xff; + } + } + + t = state[13]; + state[13] = state[9]; + state[9] = state[5]; + state[5] = state[1]; + state[1] = t; + t = state[14]; + u = state[10]; + state[14] = state[6]; + state[10] = state[2]; + state[6] = t; + state[2] = u; + t = state[15]; + u = state[11]; + v = state[7]; + state[15] = state[3]; + state[11] = t; + state[7] = u; + state[3] = v; + + for (let j = 0; j < 16; ++j) { + state[j] = this._inv_s[state[j]]; + state[j] ^= key[j]; + } + + return state; + } + + _encrypt(input, key) { + const s = this._s; + let t, u, v; + const state = new Uint8Array(16); + state.set(input); + + for (let j = 0; j < 16; ++j) { + state[j] ^= key[j]; + } + + for (let i = 1; i < this._cyclesOfRepetition; i++) { + for (let j = 0; j < 16; ++j) { + state[j] = s[state[j]]; + } + + v = state[1]; + state[1] = state[5]; + state[5] = state[9]; + state[9] = state[13]; + state[13] = v; + v = state[2]; + u = state[6]; + state[2] = state[10]; + state[6] = state[14]; + state[10] = v; + state[14] = u; + v = state[3]; + u = state[7]; + t = state[11]; + state[3] = state[15]; + state[7] = v; + state[11] = u; + state[15] = t; + + for (let j = 0; j < 16; j += 4) { + const s0 = state[j + 0]; + const s1 = state[j + 1]; + const s2 = state[j + 2]; + const s3 = state[j + 3]; + t = s0 ^ s1 ^ s2 ^ s3; + state[j + 0] ^= t ^ this._mixCol[s0 ^ s1]; + state[j + 1] ^= t ^ this._mixCol[s1 ^ s2]; + state[j + 2] ^= t ^ this._mixCol[s2 ^ s3]; + state[j + 3] ^= t ^ this._mixCol[s3 ^ s0]; + } + + for (let j = 0, k = i * 16; j < 16; ++j, ++k) { + state[j] ^= key[k]; + } + } + + for (let j = 0; j < 16; ++j) { + state[j] = s[state[j]]; + } + + v = state[1]; + state[1] = state[5]; + state[5] = state[9]; + state[9] = state[13]; + state[13] = v; + v = state[2]; + u = state[6]; + state[2] = state[10]; + state[6] = state[14]; + state[10] = v; + state[14] = u; + v = state[3]; + u = state[7]; + t = state[11]; + state[3] = state[15]; + state[7] = v; + state[11] = u; + state[15] = t; + + for (let j = 0, k = this._keySize; j < 16; ++j, ++k) { + state[j] ^= key[k]; + } + + return state; + } + + _decryptBlock2(data, finalize) { + const sourceLength = data.length; + let buffer = this.buffer, + bufferLength = this.bufferPosition; + const result = []; + let iv = this.iv; + + for (let i = 0; i < sourceLength; ++i) { + buffer[bufferLength] = data[i]; + ++bufferLength; + + if (bufferLength < 16) { + continue; + } + + const plain = this._decrypt(buffer, this._key); + + for (let j = 0; j < 16; ++j) { + plain[j] ^= iv[j]; + } + + iv = buffer; + result.push(plain); + buffer = new Uint8Array(16); + bufferLength = 0; + } + + this.buffer = buffer; + this.bufferLength = bufferLength; + this.iv = iv; + + if (result.length === 0) { + return new Uint8Array(0); + } + + let outputLength = 16 * result.length; + + if (finalize) { + const lastBlock = result.at(-1); + let psLen = lastBlock[15]; + + if (psLen <= 16) { + for (let i = 15, ii = 16 - psLen; i >= ii; --i) { + if (lastBlock[i] !== psLen) { + psLen = 0; + break; + } + } + + outputLength -= psLen; + result[result.length - 1] = lastBlock.subarray(0, 16 - psLen); + } + } + + const output = new Uint8Array(outputLength); + + for (let i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) { + output.set(result[i], j); + } + + return output; + } + + decryptBlock(data, finalize, iv = null) { + const sourceLength = data.length; + const buffer = this.buffer; + let bufferLength = this.bufferPosition; + + if (iv) { + this.iv = iv; + } else { + for (let i = 0; bufferLength < 16 && i < sourceLength; ++i, ++bufferLength) { + buffer[bufferLength] = data[i]; + } + + if (bufferLength < 16) { + this.bufferLength = bufferLength; + return new Uint8Array(0); + } + + this.iv = buffer; + data = data.subarray(16); + } + + this.buffer = new Uint8Array(16); + this.bufferLength = 0; + this.decryptBlock = this._decryptBlock2; + return this.decryptBlock(data, finalize); + } + + encrypt(data, iv) { + const sourceLength = data.length; + let buffer = this.buffer, + bufferLength = this.bufferPosition; + const result = []; + + if (!iv) { + iv = new Uint8Array(16); + } + + for (let i = 0; i < sourceLength; ++i) { + buffer[bufferLength] = data[i]; + ++bufferLength; + + if (bufferLength < 16) { + continue; + } + + for (let j = 0; j < 16; ++j) { + buffer[j] ^= iv[j]; + } + + const cipher = this._encrypt(buffer, this._key); + + iv = cipher; + result.push(cipher); + buffer = new Uint8Array(16); + bufferLength = 0; + } + + this.buffer = buffer; + this.bufferLength = bufferLength; + this.iv = iv; + + if (result.length === 0) { + return new Uint8Array(0); + } + + const outputLength = 16 * result.length; + const output = new Uint8Array(outputLength); + + for (let i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) { + output.set(result[i], j); + } + + return output; + } + +} + +class AES128Cipher extends AESBaseCipher { + constructor(key) { + super(); + this._cyclesOfRepetition = 10; + this._keySize = 160; + this._rcon = new Uint8Array([0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d]); + this._key = this._expandKey(key); + } + + _expandKey(cipherKey) { + const b = 176; + const s = this._s; + const rcon = this._rcon; + const result = new Uint8Array(b); + result.set(cipherKey); + + for (let j = 16, i = 1; j < b; ++i) { + let t1 = result[j - 3]; + let t2 = result[j - 2]; + let t3 = result[j - 1]; + let t4 = result[j - 4]; + t1 = s[t1]; + t2 = s[t2]; + t3 = s[t3]; + t4 = s[t4]; + t1 ^= rcon[i]; + + for (let n = 0; n < 4; ++n) { + result[j] = t1 ^= result[j - 16]; + j++; + result[j] = t2 ^= result[j - 16]; + j++; + result[j] = t3 ^= result[j - 16]; + j++; + result[j] = t4 ^= result[j - 16]; + j++; + } + } + + return result; + } + +} + +exports.AES128Cipher = AES128Cipher; + +class AES256Cipher extends AESBaseCipher { + constructor(key) { + super(); + this._cyclesOfRepetition = 14; + this._keySize = 224; + this._key = this._expandKey(key); + } + + _expandKey(cipherKey) { + const b = 240; + const s = this._s; + const result = new Uint8Array(b); + result.set(cipherKey); + let r = 1; + let t1, t2, t3, t4; + + for (let j = 32, i = 1; j < b; ++i) { + if (j % 32 === 16) { + t1 = s[t1]; + t2 = s[t2]; + t3 = s[t3]; + t4 = s[t4]; + } else if (j % 32 === 0) { + t1 = result[j - 3]; + t2 = result[j - 2]; + t3 = result[j - 1]; + t4 = result[j - 4]; + t1 = s[t1]; + t2 = s[t2]; + t3 = s[t3]; + t4 = s[t4]; + t1 ^= r; + + if ((r <<= 1) >= 256) { + r = (r ^ 0x1b) & 0xff; + } + } + + for (let n = 0; n < 4; ++n) { + result[j] = t1 ^= result[j - 32]; + j++; + result[j] = t2 ^= result[j - 32]; + j++; + result[j] = t3 ^= result[j - 32]; + j++; + result[j] = t4 ^= result[j - 32]; + j++; + } + } + + return result; + } + +} + +exports.AES256Cipher = AES256Cipher; + +class PDF17 { + checkOwnerPassword(password, ownerValidationSalt, userBytes, ownerPassword) { + const hashData = new Uint8Array(password.length + 56); + hashData.set(password, 0); + hashData.set(ownerValidationSalt, password.length); + hashData.set(userBytes, password.length + ownerValidationSalt.length); + const result = calculateSHA256(hashData, 0, hashData.length); + return (0, _util.isArrayEqual)(result, ownerPassword); + } + + checkUserPassword(password, userValidationSalt, userPassword) { + const hashData = new Uint8Array(password.length + 8); + hashData.set(password, 0); + hashData.set(userValidationSalt, password.length); + const result = calculateSHA256(hashData, 0, hashData.length); + return (0, _util.isArrayEqual)(result, userPassword); + } + + getOwnerKey(password, ownerKeySalt, userBytes, ownerEncryption) { + const hashData = new Uint8Array(password.length + 56); + hashData.set(password, 0); + hashData.set(ownerKeySalt, password.length); + hashData.set(userBytes, password.length + ownerKeySalt.length); + const key = calculateSHA256(hashData, 0, hashData.length); + const cipher = new AES256Cipher(key); + return cipher.decryptBlock(ownerEncryption, false, new Uint8Array(16)); + } + + getUserKey(password, userKeySalt, userEncryption) { + const hashData = new Uint8Array(password.length + 8); + hashData.set(password, 0); + hashData.set(userKeySalt, password.length); + const key = calculateSHA256(hashData, 0, hashData.length); + const cipher = new AES256Cipher(key); + return cipher.decryptBlock(userEncryption, false, new Uint8Array(16)); + } + +} + +exports.PDF17 = PDF17; + +const PDF20 = function PDF20Closure() { + function calculatePDF20Hash(password, input, userBytes) { + let k = calculateSHA256(input, 0, input.length).subarray(0, 32); + let e = [0]; + let i = 0; + + while (i < 64 || e.at(-1) > i - 32) { + const combinedLength = password.length + k.length + userBytes.length, + combinedArray = new Uint8Array(combinedLength); + let writeOffset = 0; + combinedArray.set(password, writeOffset); + writeOffset += password.length; + combinedArray.set(k, writeOffset); + writeOffset += k.length; + combinedArray.set(userBytes, writeOffset); + const k1 = new Uint8Array(combinedLength * 64); + + for (let j = 0, pos = 0; j < 64; j++, pos += combinedLength) { + k1.set(combinedArray, pos); + } + + const cipher = new AES128Cipher(k.subarray(0, 16)); + e = cipher.encrypt(k1, k.subarray(16, 32)); + let remainder = 0; + + for (let z = 0; z < 16; z++) { + remainder *= 256 % 3; + remainder %= 3; + remainder += (e[z] >>> 0) % 3; + remainder %= 3; + } + + if (remainder === 0) { + k = calculateSHA256(e, 0, e.length); + } else if (remainder === 1) { + k = calculateSHA384(e, 0, e.length); + } else if (remainder === 2) { + k = calculateSHA512(e, 0, e.length); + } + + i++; + } + + return k.subarray(0, 32); + } + + class PDF20 { + hash(password, concatBytes, userBytes) { + return calculatePDF20Hash(password, concatBytes, userBytes); + } + + checkOwnerPassword(password, ownerValidationSalt, userBytes, ownerPassword) { + const hashData = new Uint8Array(password.length + 56); + hashData.set(password, 0); + hashData.set(ownerValidationSalt, password.length); + hashData.set(userBytes, password.length + ownerValidationSalt.length); + const result = calculatePDF20Hash(password, hashData, userBytes); + return (0, _util.isArrayEqual)(result, ownerPassword); + } + + checkUserPassword(password, userValidationSalt, userPassword) { + const hashData = new Uint8Array(password.length + 8); + hashData.set(password, 0); + hashData.set(userValidationSalt, password.length); + const result = calculatePDF20Hash(password, hashData, []); + return (0, _util.isArrayEqual)(result, userPassword); + } + + getOwnerKey(password, ownerKeySalt, userBytes, ownerEncryption) { + const hashData = new Uint8Array(password.length + 56); + hashData.set(password, 0); + hashData.set(ownerKeySalt, password.length); + hashData.set(userBytes, password.length + ownerKeySalt.length); + const key = calculatePDF20Hash(password, hashData, userBytes); + const cipher = new AES256Cipher(key); + return cipher.decryptBlock(ownerEncryption, false, new Uint8Array(16)); + } + + getUserKey(password, userKeySalt, userEncryption) { + const hashData = new Uint8Array(password.length + 8); + hashData.set(password, 0); + hashData.set(userKeySalt, password.length); + const key = calculatePDF20Hash(password, hashData, []); + const cipher = new AES256Cipher(key); + return cipher.decryptBlock(userEncryption, false, new Uint8Array(16)); + } + + } + + return PDF20; +}(); + +exports.PDF20 = PDF20; + +class CipherTransform { + constructor(stringCipherConstructor, streamCipherConstructor) { + this.StringCipherConstructor = stringCipherConstructor; + this.StreamCipherConstructor = streamCipherConstructor; + } + + createStream(stream, length) { + const cipher = new this.StreamCipherConstructor(); + return new _decrypt_stream.DecryptStream(stream, length, function cipherTransformDecryptStream(data, finalize) { + return cipher.decryptBlock(data, finalize); + }); + } + + decryptString(s) { + const cipher = new this.StringCipherConstructor(); + let data = (0, _util.stringToBytes)(s); + data = cipher.decryptBlock(data, true); + return (0, _util.bytesToString)(data); + } + + encryptString(s) { + const cipher = new this.StringCipherConstructor(); + + if (cipher instanceof AESBaseCipher) { + const strLen = s.length; + const pad = 16 - strLen % 16; + s += String.fromCharCode(pad).repeat(pad); + const iv = new Uint8Array(16); + + if (typeof crypto !== "undefined") { + crypto.getRandomValues(iv); + } else { + for (let i = 0; i < 16; i++) { + iv[i] = Math.floor(256 * Math.random()); + } + } + + let data = (0, _util.stringToBytes)(s); + data = cipher.encrypt(data, iv); + const buf = new Uint8Array(16 + data.length); + buf.set(iv); + buf.set(data, 16); + return (0, _util.bytesToString)(buf); + } + + let data = (0, _util.stringToBytes)(s); + data = cipher.encrypt(data); + return (0, _util.bytesToString)(data); + } + +} + +const CipherTransformFactory = function CipherTransformFactoryClosure() { + const defaultPasswordBytes = new Uint8Array([0x28, 0xbf, 0x4e, 0x5e, 0x4e, 0x75, 0x8a, 0x41, 0x64, 0x00, 0x4e, 0x56, 0xff, 0xfa, 0x01, 0x08, 0x2e, 0x2e, 0x00, 0xb6, 0xd0, 0x68, 0x3e, 0x80, 0x2f, 0x0c, 0xa9, 0xfe, 0x64, 0x53, 0x69, 0x7a]); + + function createEncryptionKey20(revision, password, ownerPassword, ownerValidationSalt, ownerKeySalt, uBytes, userPassword, userValidationSalt, userKeySalt, ownerEncryption, userEncryption, perms) { + if (password) { + const passwordLength = Math.min(127, password.length); + password = password.subarray(0, passwordLength); + } else { + password = []; + } + + let pdfAlgorithm; + + if (revision === 6) { + pdfAlgorithm = new PDF20(); + } else { + pdfAlgorithm = new PDF17(); + } + + if (pdfAlgorithm.checkUserPassword(password, userValidationSalt, userPassword)) { + return pdfAlgorithm.getUserKey(password, userKeySalt, userEncryption); + } else if (password.length && pdfAlgorithm.checkOwnerPassword(password, ownerValidationSalt, uBytes, ownerPassword)) { + return pdfAlgorithm.getOwnerKey(password, ownerKeySalt, uBytes, ownerEncryption); + } + + return null; + } + + function prepareKeyData(fileId, password, ownerPassword, userPassword, flags, revision, keyLength, encryptMetadata) { + const hashDataSize = 40 + ownerPassword.length + fileId.length; + const hashData = new Uint8Array(hashDataSize); + let i = 0, + j, + n; + + if (password) { + n = Math.min(32, password.length); + + for (; i < n; ++i) { + hashData[i] = password[i]; + } + } + + j = 0; + + while (i < 32) { + hashData[i++] = defaultPasswordBytes[j++]; + } + + for (j = 0, n = ownerPassword.length; j < n; ++j) { + hashData[i++] = ownerPassword[j]; + } + + hashData[i++] = flags & 0xff; + hashData[i++] = flags >> 8 & 0xff; + hashData[i++] = flags >> 16 & 0xff; + hashData[i++] = flags >>> 24 & 0xff; + + for (j = 0, n = fileId.length; j < n; ++j) { + hashData[i++] = fileId[j]; + } + + if (revision >= 4 && !encryptMetadata) { + hashData[i++] = 0xff; + hashData[i++] = 0xff; + hashData[i++] = 0xff; + hashData[i++] = 0xff; + } + + let hash = calculateMD5(hashData, 0, i); + const keyLengthInBytes = keyLength >> 3; + + if (revision >= 3) { + for (j = 0; j < 50; ++j) { + hash = calculateMD5(hash, 0, keyLengthInBytes); + } + } + + const encryptionKey = hash.subarray(0, keyLengthInBytes); + let cipher, checkData; + + if (revision >= 3) { + for (i = 0; i < 32; ++i) { + hashData[i] = defaultPasswordBytes[i]; + } + + for (j = 0, n = fileId.length; j < n; ++j) { + hashData[i++] = fileId[j]; + } + + cipher = new ARCFourCipher(encryptionKey); + checkData = cipher.encryptBlock(calculateMD5(hashData, 0, i)); + n = encryptionKey.length; + const derivedKey = new Uint8Array(n); + + for (j = 1; j <= 19; ++j) { + for (let k = 0; k < n; ++k) { + derivedKey[k] = encryptionKey[k] ^ j; + } + + cipher = new ARCFourCipher(derivedKey); + checkData = cipher.encryptBlock(checkData); + } + + for (j = 0, n = checkData.length; j < n; ++j) { + if (userPassword[j] !== checkData[j]) { + return null; + } + } + } else { + cipher = new ARCFourCipher(encryptionKey); + checkData = cipher.encryptBlock(defaultPasswordBytes); + + for (j = 0, n = checkData.length; j < n; ++j) { + if (userPassword[j] !== checkData[j]) { + return null; + } + } + } + + return encryptionKey; + } + + function decodeUserPassword(password, ownerPassword, revision, keyLength) { + const hashData = new Uint8Array(32); + let i = 0; + const n = Math.min(32, password.length); + + for (; i < n; ++i) { + hashData[i] = password[i]; + } + + let j = 0; + + while (i < 32) { + hashData[i++] = defaultPasswordBytes[j++]; + } + + let hash = calculateMD5(hashData, 0, i); + const keyLengthInBytes = keyLength >> 3; + + if (revision >= 3) { + for (j = 0; j < 50; ++j) { + hash = calculateMD5(hash, 0, hash.length); + } + } + + let cipher, userPassword; + + if (revision >= 3) { + userPassword = ownerPassword; + const derivedKey = new Uint8Array(keyLengthInBytes); + + for (j = 19; j >= 0; j--) { + for (let k = 0; k < keyLengthInBytes; ++k) { + derivedKey[k] = hash[k] ^ j; + } + + cipher = new ARCFourCipher(derivedKey); + userPassword = cipher.encryptBlock(userPassword); + } + } else { + cipher = new ARCFourCipher(hash.subarray(0, keyLengthInBytes)); + userPassword = cipher.encryptBlock(ownerPassword); + } + + return userPassword; + } + + const identityName = _primitives.Name.get("Identity"); + + function buildObjectKey(num, gen, encryptionKey, isAes = false) { + const key = new Uint8Array(encryptionKey.length + 9); + const n = encryptionKey.length; + let i; + + for (i = 0; i < n; ++i) { + key[i] = encryptionKey[i]; + } + + key[i++] = num & 0xff; + key[i++] = num >> 8 & 0xff; + key[i++] = num >> 16 & 0xff; + key[i++] = gen & 0xff; + key[i++] = gen >> 8 & 0xff; + + if (isAes) { + key[i++] = 0x73; + key[i++] = 0x41; + key[i++] = 0x6c; + key[i++] = 0x54; + } + + const hash = calculateMD5(key, 0, i); + return hash.subarray(0, Math.min(encryptionKey.length + 5, 16)); + } + + function buildCipherConstructor(cf, name, num, gen, key) { + if (!(name instanceof _primitives.Name)) { + throw new _util.FormatError("Invalid crypt filter name."); + } + + const cryptFilter = cf.get(name.name); + let cfm; + + if (cryptFilter !== null && cryptFilter !== undefined) { + cfm = cryptFilter.get("CFM"); + } + + if (!cfm || cfm.name === "None") { + return function cipherTransformFactoryBuildCipherConstructorNone() { + return new NullCipher(); + }; + } + + if (cfm.name === "V2") { + return function cipherTransformFactoryBuildCipherConstructorV2() { + return new ARCFourCipher(buildObjectKey(num, gen, key, false)); + }; + } + + if (cfm.name === "AESV2") { + return function cipherTransformFactoryBuildCipherConstructorAESV2() { + return new AES128Cipher(buildObjectKey(num, gen, key, true)); + }; + } + + if (cfm.name === "AESV3") { + return function cipherTransformFactoryBuildCipherConstructorAESV3() { + return new AES256Cipher(key); + }; + } + + throw new _util.FormatError("Unknown crypto method"); + } + + class CipherTransformFactory { + constructor(dict, fileId, password) { + const filter = dict.get("Filter"); + + if (!(0, _primitives.isName)(filter, "Standard")) { + throw new _util.FormatError("unknown encryption method"); + } + + this.filterName = filter.name; + this.dict = dict; + const algorithm = dict.get("V"); + + if (!Number.isInteger(algorithm) || algorithm !== 1 && algorithm !== 2 && algorithm !== 4 && algorithm !== 5) { + throw new _util.FormatError("unsupported encryption algorithm"); + } + + this.algorithm = algorithm; + let keyLength = dict.get("Length"); + + if (!keyLength) { + if (algorithm <= 3) { + keyLength = 40; + } else { + const cfDict = dict.get("CF"); + const streamCryptoName = dict.get("StmF"); + + if (cfDict instanceof _primitives.Dict && streamCryptoName instanceof _primitives.Name) { + cfDict.suppressEncryption = true; + const handlerDict = cfDict.get(streamCryptoName.name); + keyLength = handlerDict && handlerDict.get("Length") || 128; + + if (keyLength < 40) { + keyLength <<= 3; + } + } + } + } + + if (!Number.isInteger(keyLength) || keyLength < 40 || keyLength % 8 !== 0) { + throw new _util.FormatError("invalid key length"); + } + + const ownerPassword = (0, _util.stringToBytes)(dict.get("O")).subarray(0, 32); + const userPassword = (0, _util.stringToBytes)(dict.get("U")).subarray(0, 32); + const flags = dict.get("P"); + const revision = dict.get("R"); + const encryptMetadata = (algorithm === 4 || algorithm === 5) && dict.get("EncryptMetadata") !== false; + this.encryptMetadata = encryptMetadata; + const fileIdBytes = (0, _util.stringToBytes)(fileId); + let passwordBytes; + + if (password) { + if (revision === 6) { + try { + password = (0, _util.utf8StringToString)(password); + } catch (ex) { + (0, _util.warn)("CipherTransformFactory: " + "Unable to convert UTF8 encoded password."); + } + } + + passwordBytes = (0, _util.stringToBytes)(password); + } + + let encryptionKey; + + if (algorithm !== 5) { + encryptionKey = prepareKeyData(fileIdBytes, passwordBytes, ownerPassword, userPassword, flags, revision, keyLength, encryptMetadata); + } else { + const ownerValidationSalt = (0, _util.stringToBytes)(dict.get("O")).subarray(32, 40); + const ownerKeySalt = (0, _util.stringToBytes)(dict.get("O")).subarray(40, 48); + const uBytes = (0, _util.stringToBytes)(dict.get("U")).subarray(0, 48); + const userValidationSalt = (0, _util.stringToBytes)(dict.get("U")).subarray(32, 40); + const userKeySalt = (0, _util.stringToBytes)(dict.get("U")).subarray(40, 48); + const ownerEncryption = (0, _util.stringToBytes)(dict.get("OE")); + const userEncryption = (0, _util.stringToBytes)(dict.get("UE")); + const perms = (0, _util.stringToBytes)(dict.get("Perms")); + encryptionKey = createEncryptionKey20(revision, passwordBytes, ownerPassword, ownerValidationSalt, ownerKeySalt, uBytes, userPassword, userValidationSalt, userKeySalt, ownerEncryption, userEncryption, perms); + } + + if (!encryptionKey && !password) { + throw new _util.PasswordException("No password given", _util.PasswordResponses.NEED_PASSWORD); + } else if (!encryptionKey && password) { + const decodedPassword = decodeUserPassword(passwordBytes, ownerPassword, revision, keyLength); + encryptionKey = prepareKeyData(fileIdBytes, decodedPassword, ownerPassword, userPassword, flags, revision, keyLength, encryptMetadata); + } + + if (!encryptionKey) { + throw new _util.PasswordException("Incorrect Password", _util.PasswordResponses.INCORRECT_PASSWORD); + } + + this.encryptionKey = encryptionKey; + + if (algorithm >= 4) { + const cf = dict.get("CF"); + + if (cf instanceof _primitives.Dict) { + cf.suppressEncryption = true; + } + + this.cf = cf; + this.stmf = dict.get("StmF") || identityName; + this.strf = dict.get("StrF") || identityName; + this.eff = dict.get("EFF") || this.stmf; + } + } + + createCipherTransform(num, gen) { + if (this.algorithm === 4 || this.algorithm === 5) { + return new CipherTransform(buildCipherConstructor(this.cf, this.strf, num, gen, this.encryptionKey), buildCipherConstructor(this.cf, this.stmf, num, gen, this.encryptionKey)); + } + + const key = buildObjectKey(num, gen, this.encryptionKey, false); + + const cipherConstructor = function buildCipherCipherConstructor() { + return new ARCFourCipher(key); + }; + + return new CipherTransform(cipherConstructor, cipherConstructor); + } + + } + + return CipherTransformFactory; +}(); + +exports.CipherTransformFactory = CipherTransformFactory; + +/***/ }), +/* 68 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.DecryptStream = void 0; + +var _decode_stream = __w_pdfjs_require__(19); + +const chunkSize = 512; + +class DecryptStream extends _decode_stream.DecodeStream { + constructor(str, maybeLength, decrypt) { + super(maybeLength); + this.str = str; + this.dict = str.dict; + this.decrypt = decrypt; + this.nextChunk = null; + this.initialized = false; + } + + readBlock() { + let chunk; + + if (this.initialized) { + chunk = this.nextChunk; + } else { + chunk = this.str.getBytes(chunkSize); + this.initialized = true; + } + + if (!chunk || chunk.length === 0) { + this.eof = true; + return; + } + + this.nextChunk = this.str.getBytes(chunkSize); + const hasMoreData = this.nextChunk && this.nextChunk.length > 0; + const decrypt = this.decrypt; + chunk = decrypt(chunk, !hasMoreData); + let bufferLength = this.bufferLength; + const n = chunk.length, + buffer = this.ensureBuffer(bufferLength + n); + + for (let i = 0; i < n; i++) { + buffer[bufferLength++] = chunk[i]; + } + + this.bufferLength = bufferLength; + } + +} + +exports.DecryptStream = DecryptStream; + +/***/ }), +/* 69 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Catalog = void 0; + +var _core_utils = __w_pdfjs_require__(6); + +var _util = __w_pdfjs_require__(2); + +var _primitives = __w_pdfjs_require__(5); + +var _name_number_tree = __w_pdfjs_require__(70); + +var _base_stream = __w_pdfjs_require__(7); + +var _cleanup_helper = __w_pdfjs_require__(71); + +var _colorspace = __w_pdfjs_require__(14); + +var _file_spec = __w_pdfjs_require__(72); + +var _image_utils = __w_pdfjs_require__(59); + +var _metadata_parser = __w_pdfjs_require__(73); + +var _struct_tree = __w_pdfjs_require__(74); + +function fetchDestination(dest) { + if (dest instanceof _primitives.Dict) { + dest = dest.get("D"); + } + + return Array.isArray(dest) ? dest : null; +} + +class Catalog { + constructor(pdfManager, xref) { + this.pdfManager = pdfManager; + this.xref = xref; + this._catDict = xref.getCatalogObj(); + + if (!(this._catDict instanceof _primitives.Dict)) { + throw new _util.FormatError("Catalog object is not a dictionary."); + } + + this.toplevelPagesDict; + this._actualNumPages = null; + this.fontCache = new _primitives.RefSetCache(); + this.builtInCMapCache = new Map(); + this.standardFontDataCache = new Map(); + this.globalImageCache = new _image_utils.GlobalImageCache(); + this.pageKidsCountCache = new _primitives.RefSetCache(); + this.pageIndexCache = new _primitives.RefSetCache(); + this.nonBlendModesSet = new _primitives.RefSet(); + } + + get version() { + const version = this._catDict.get("Version"); + + return (0, _util.shadow)(this, "version", version instanceof _primitives.Name ? version.name : null); + } + + get lang() { + const lang = this._catDict.get("Lang"); + + return (0, _util.shadow)(this, "lang", typeof lang === "string" ? (0, _util.stringToPDFString)(lang) : null); + } + + get needsRendering() { + const needsRendering = this._catDict.get("NeedsRendering"); + + return (0, _util.shadow)(this, "needsRendering", typeof needsRendering === "boolean" ? needsRendering : false); + } + + get collection() { + let collection = null; + + try { + const obj = this._catDict.get("Collection"); + + if (obj instanceof _primitives.Dict && obj.size > 0) { + collection = obj; + } + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.info)("Cannot fetch Collection entry; assuming no collection is present."); + } + + return (0, _util.shadow)(this, "collection", collection); + } + + get acroForm() { + let acroForm = null; + + try { + const obj = this._catDict.get("AcroForm"); + + if (obj instanceof _primitives.Dict && obj.size > 0) { + acroForm = obj; + } + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.info)("Cannot fetch AcroForm entry; assuming no forms are present."); + } + + return (0, _util.shadow)(this, "acroForm", acroForm); + } + + get acroFormRef() { + const value = this._catDict.getRaw("AcroForm"); + + return (0, _util.shadow)(this, "acroFormRef", value instanceof _primitives.Ref ? value : null); + } + + get metadata() { + const streamRef = this._catDict.getRaw("Metadata"); + + if (!(streamRef instanceof _primitives.Ref)) { + return (0, _util.shadow)(this, "metadata", null); + } + + let metadata = null; + + try { + const suppressEncryption = !(this.xref.encrypt && this.xref.encrypt.encryptMetadata); + const stream = this.xref.fetch(streamRef, suppressEncryption); + + if (stream instanceof _base_stream.BaseStream && stream.dict instanceof _primitives.Dict) { + const type = stream.dict.get("Type"); + const subtype = stream.dict.get("Subtype"); + + if ((0, _primitives.isName)(type, "Metadata") && (0, _primitives.isName)(subtype, "XML")) { + const data = (0, _util.stringToUTF8String)(stream.getString()); + + if (data) { + metadata = new _metadata_parser.MetadataParser(data).serializable; + } + } + } + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.info)(`Skipping invalid Metadata: "${ex}".`); + } + + return (0, _util.shadow)(this, "metadata", metadata); + } + + get markInfo() { + let markInfo = null; + + try { + markInfo = this._readMarkInfo(); + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.warn)("Unable to read mark info."); + } + + return (0, _util.shadow)(this, "markInfo", markInfo); + } + + _readMarkInfo() { + const obj = this._catDict.get("MarkInfo"); + + if (!(obj instanceof _primitives.Dict)) { + return null; + } + + const markInfo = { + Marked: false, + UserProperties: false, + Suspects: false + }; + + for (const key in markInfo) { + const value = obj.get(key); + + if (typeof value === "boolean") { + markInfo[key] = value; + } + } + + return markInfo; + } + + get structTreeRoot() { + let structTree = null; + + try { + structTree = this._readStructTreeRoot(); + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.warn)("Unable read to structTreeRoot info."); + } + + return (0, _util.shadow)(this, "structTreeRoot", structTree); + } + + _readStructTreeRoot() { + const obj = this._catDict.get("StructTreeRoot"); + + if (!(obj instanceof _primitives.Dict)) { + return null; + } + + const root = new _struct_tree.StructTreeRoot(obj); + root.init(); + return root; + } + + get toplevelPagesDict() { + const pagesObj = this._catDict.get("Pages"); + + if (!(pagesObj instanceof _primitives.Dict)) { + throw new _util.FormatError("Invalid top-level pages dictionary."); + } + + return (0, _util.shadow)(this, "toplevelPagesDict", pagesObj); + } + + get documentOutline() { + let obj = null; + + try { + obj = this._readDocumentOutline(); + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.warn)("Unable to read document outline."); + } + + return (0, _util.shadow)(this, "documentOutline", obj); + } + + _readDocumentOutline() { + let obj = this._catDict.get("Outlines"); + + if (!(obj instanceof _primitives.Dict)) { + return null; + } + + obj = obj.getRaw("First"); + + if (!(obj instanceof _primitives.Ref)) { + return null; + } + + const root = { + items: [] + }; + const queue = [{ + obj, + parent: root + }]; + const processed = new _primitives.RefSet(); + processed.put(obj); + const xref = this.xref, + blackColor = new Uint8ClampedArray(3); + + while (queue.length > 0) { + const i = queue.shift(); + const outlineDict = xref.fetchIfRef(i.obj); + + if (outlineDict === null) { + continue; + } + + if (!outlineDict.has("Title")) { + throw new _util.FormatError("Invalid outline item encountered."); + } + + const data = { + url: null, + dest: null + }; + Catalog.parseDestDictionary({ + destDict: outlineDict, + resultObj: data, + docBaseUrl: this.pdfManager.docBaseUrl + }); + const title = outlineDict.get("Title"); + const flags = outlineDict.get("F") || 0; + const color = outlineDict.getArray("C"); + const count = outlineDict.get("Count"); + let rgbColor = blackColor; + + if (Array.isArray(color) && color.length === 3 && (color[0] !== 0 || color[1] !== 0 || color[2] !== 0)) { + rgbColor = _colorspace.ColorSpace.singletons.rgb.getRgb(color, 0); + } + + const outlineItem = { + dest: data.dest, + url: data.url, + unsafeUrl: data.unsafeUrl, + newWindow: data.newWindow, + title: (0, _util.stringToPDFString)(title), + color: rgbColor, + count: Number.isInteger(count) ? count : undefined, + bold: !!(flags & 2), + italic: !!(flags & 1), + items: [] + }; + i.parent.items.push(outlineItem); + obj = outlineDict.getRaw("First"); + + if (obj instanceof _primitives.Ref && !processed.has(obj)) { + queue.push({ + obj, + parent: outlineItem + }); + processed.put(obj); + } + + obj = outlineDict.getRaw("Next"); + + if (obj instanceof _primitives.Ref && !processed.has(obj)) { + queue.push({ + obj, + parent: i.parent + }); + processed.put(obj); + } + } + + return root.items.length > 0 ? root.items : null; + } + + get permissions() { + let permissions = null; + + try { + permissions = this._readPermissions(); + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.warn)("Unable to read permissions."); + } + + return (0, _util.shadow)(this, "permissions", permissions); + } + + _readPermissions() { + const encrypt = this.xref.trailer.get("Encrypt"); + + if (!(encrypt instanceof _primitives.Dict)) { + return null; + } + + let flags = encrypt.get("P"); + + if (typeof flags !== "number") { + return null; + } + + flags += 2 ** 32; + const permissions = []; + + for (const key in _util.PermissionFlag) { + const value = _util.PermissionFlag[key]; + + if (flags & value) { + permissions.push(value); + } + } + + return permissions; + } + + get optionalContentConfig() { + let config = null; + + try { + const properties = this._catDict.get("OCProperties"); + + if (!properties) { + return (0, _util.shadow)(this, "optionalContentConfig", null); + } + + const defaultConfig = properties.get("D"); + + if (!defaultConfig) { + return (0, _util.shadow)(this, "optionalContentConfig", null); + } + + const groupsData = properties.get("OCGs"); + + if (!Array.isArray(groupsData)) { + return (0, _util.shadow)(this, "optionalContentConfig", null); + } + + const groups = []; + const groupRefs = []; + + for (const groupRef of groupsData) { + if (!(groupRef instanceof _primitives.Ref)) { + continue; + } + + groupRefs.push(groupRef); + const group = this.xref.fetchIfRef(groupRef); + groups.push({ + id: groupRef.toString(), + name: typeof group.get("Name") === "string" ? (0, _util.stringToPDFString)(group.get("Name")) : null, + intent: typeof group.get("Intent") === "string" ? (0, _util.stringToPDFString)(group.get("Intent")) : null + }); + } + + config = this._readOptionalContentConfig(defaultConfig, groupRefs); + config.groups = groups; + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.warn)(`Unable to read optional content config: ${ex}`); + } + + return (0, _util.shadow)(this, "optionalContentConfig", config); + } + + _readOptionalContentConfig(config, contentGroupRefs) { + function parseOnOff(refs) { + const onParsed = []; + + if (Array.isArray(refs)) { + for (const value of refs) { + if (!(value instanceof _primitives.Ref)) { + continue; + } + + if (contentGroupRefs.includes(value)) { + onParsed.push(value.toString()); + } + } + } + + return onParsed; + } + + function parseOrder(refs, nestedLevels = 0) { + if (!Array.isArray(refs)) { + return null; + } + + const order = []; + + for (const value of refs) { + if (value instanceof _primitives.Ref && contentGroupRefs.includes(value)) { + parsedOrderRefs.put(value); + order.push(value.toString()); + continue; + } + + const nestedOrder = parseNestedOrder(value, nestedLevels); + + if (nestedOrder) { + order.push(nestedOrder); + } + } + + if (nestedLevels > 0) { + return order; + } + + const hiddenGroups = []; + + for (const groupRef of contentGroupRefs) { + if (parsedOrderRefs.has(groupRef)) { + continue; + } + + hiddenGroups.push(groupRef.toString()); + } + + if (hiddenGroups.length) { + order.push({ + name: null, + order: hiddenGroups + }); + } + + return order; + } + + function parseNestedOrder(ref, nestedLevels) { + if (++nestedLevels > MAX_NESTED_LEVELS) { + (0, _util.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."); + return null; + } + + const value = xref.fetchIfRef(ref); + + if (!Array.isArray(value)) { + return null; + } + + const nestedName = xref.fetchIfRef(value[0]); + + if (typeof nestedName !== "string") { + return null; + } + + const nestedOrder = parseOrder(value.slice(1), nestedLevels); + + if (!nestedOrder || !nestedOrder.length) { + return null; + } + + return { + name: (0, _util.stringToPDFString)(nestedName), + order: nestedOrder + }; + } + + const xref = this.xref, + parsedOrderRefs = new _primitives.RefSet(), + MAX_NESTED_LEVELS = 10; + return { + name: typeof config.get("Name") === "string" ? (0, _util.stringToPDFString)(config.get("Name")) : null, + creator: typeof config.get("Creator") === "string" ? (0, _util.stringToPDFString)(config.get("Creator")) : null, + baseState: config.get("BaseState") instanceof _primitives.Name ? config.get("BaseState").name : null, + on: parseOnOff(config.get("ON")), + off: parseOnOff(config.get("OFF")), + order: parseOrder(config.get("Order")), + groups: null + }; + } + + setActualNumPages(num = null) { + this._actualNumPages = num; + } + + get hasActualNumPages() { + return this._actualNumPages !== null; + } + + get _pagesCount() { + const obj = this.toplevelPagesDict.get("Count"); + + if (!Number.isInteger(obj)) { + throw new _util.FormatError("Page count in top-level pages dictionary is not an integer."); + } + + return (0, _util.shadow)(this, "_pagesCount", obj); + } + + get numPages() { + return this.hasActualNumPages ? this._actualNumPages : this._pagesCount; + } + + get destinations() { + const obj = this._readDests(), + dests = Object.create(null); + + if (obj instanceof _name_number_tree.NameTree) { + for (const [key, value] of obj.getAll()) { + const dest = fetchDestination(value); + + if (dest) { + dests[(0, _util.stringToPDFString)(key)] = dest; + } + } + } else if (obj instanceof _primitives.Dict) { + obj.forEach(function (key, value) { + const dest = fetchDestination(value); + + if (dest) { + dests[key] = dest; + } + }); + } + + return (0, _util.shadow)(this, "destinations", dests); + } + + getDestination(id) { + const obj = this._readDests(); + + if (obj instanceof _name_number_tree.NameTree) { + const dest = fetchDestination(obj.get(id)); + + if (dest) { + return dest; + } + + const allDest = this.destinations[id]; + + if (allDest) { + (0, _util.warn)(`Found "${id}" at an incorrect position in the NameTree.`); + return allDest; + } + } else if (obj instanceof _primitives.Dict) { + const dest = fetchDestination(obj.get(id)); + + if (dest) { + return dest; + } + } + + return null; + } + + _readDests() { + const obj = this._catDict.get("Names"); + + if (obj && obj.has("Dests")) { + return new _name_number_tree.NameTree(obj.getRaw("Dests"), this.xref); + } else if (this._catDict.has("Dests")) { + return this._catDict.get("Dests"); + } + + return undefined; + } + + get pageLabels() { + let obj = null; + + try { + obj = this._readPageLabels(); + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.warn)("Unable to read page labels."); + } + + return (0, _util.shadow)(this, "pageLabels", obj); + } + + _readPageLabels() { + const obj = this._catDict.getRaw("PageLabels"); + + if (!obj) { + return null; + } + + const pageLabels = new Array(this.numPages); + let style = null, + prefix = ""; + const numberTree = new _name_number_tree.NumberTree(obj, this.xref); + const nums = numberTree.getAll(); + let currentLabel = "", + currentIndex = 1; + + for (let i = 0, ii = this.numPages; i < ii; i++) { + const labelDict = nums.get(i); + + if (labelDict !== undefined) { + if (!(labelDict instanceof _primitives.Dict)) { + throw new _util.FormatError("PageLabel is not a dictionary."); + } + + if (labelDict.has("Type") && !(0, _primitives.isName)(labelDict.get("Type"), "PageLabel")) { + throw new _util.FormatError("Invalid type in PageLabel dictionary."); + } + + if (labelDict.has("S")) { + const s = labelDict.get("S"); + + if (!(s instanceof _primitives.Name)) { + throw new _util.FormatError("Invalid style in PageLabel dictionary."); + } + + style = s.name; + } else { + style = null; + } + + if (labelDict.has("P")) { + const p = labelDict.get("P"); + + if (typeof p !== "string") { + throw new _util.FormatError("Invalid prefix in PageLabel dictionary."); + } + + prefix = (0, _util.stringToPDFString)(p); + } else { + prefix = ""; + } + + if (labelDict.has("St")) { + const st = labelDict.get("St"); + + if (!(Number.isInteger(st) && st >= 1)) { + throw new _util.FormatError("Invalid start in PageLabel dictionary."); + } + + currentIndex = st; + } else { + currentIndex = 1; + } + } + + switch (style) { + case "D": + currentLabel = currentIndex; + break; + + case "R": + case "r": + currentLabel = (0, _core_utils.toRomanNumerals)(currentIndex, style === "r"); + break; + + case "A": + case "a": + const LIMIT = 26; + const A_UPPER_CASE = 0x41, + A_LOWER_CASE = 0x61; + const baseCharCode = style === "a" ? A_LOWER_CASE : A_UPPER_CASE; + const letterIndex = currentIndex - 1; + const character = String.fromCharCode(baseCharCode + letterIndex % LIMIT); + currentLabel = character.repeat(Math.floor(letterIndex / LIMIT) + 1); + break; + + default: + if (style) { + throw new _util.FormatError(`Invalid style "${style}" in PageLabel dictionary.`); + } + + currentLabel = ""; + } + + pageLabels[i] = prefix + currentLabel; + currentIndex++; + } + + return pageLabels; + } + + get pageLayout() { + const obj = this._catDict.get("PageLayout"); + + let pageLayout = ""; + + if (obj instanceof _primitives.Name) { + switch (obj.name) { + case "SinglePage": + case "OneColumn": + case "TwoColumnLeft": + case "TwoColumnRight": + case "TwoPageLeft": + case "TwoPageRight": + pageLayout = obj.name; + } + } + + return (0, _util.shadow)(this, "pageLayout", pageLayout); + } + + get pageMode() { + const obj = this._catDict.get("PageMode"); + + let pageMode = "UseNone"; + + if (obj instanceof _primitives.Name) { + switch (obj.name) { + case "UseNone": + case "UseOutlines": + case "UseThumbs": + case "FullScreen": + case "UseOC": + case "UseAttachments": + pageMode = obj.name; + } + } + + return (0, _util.shadow)(this, "pageMode", pageMode); + } + + get viewerPreferences() { + const obj = this._catDict.get("ViewerPreferences"); + + if (!(obj instanceof _primitives.Dict)) { + return (0, _util.shadow)(this, "viewerPreferences", null); + } + + let prefs = null; + + for (const key of obj.getKeys()) { + const value = obj.get(key); + let prefValue; + + switch (key) { + case "HideToolbar": + case "HideMenubar": + case "HideWindowUI": + case "FitWindow": + case "CenterWindow": + case "DisplayDocTitle": + case "PickTrayByPDFSize": + if (typeof value === "boolean") { + prefValue = value; + } + + break; + + case "NonFullScreenPageMode": + if (value instanceof _primitives.Name) { + switch (value.name) { + case "UseNone": + case "UseOutlines": + case "UseThumbs": + case "UseOC": + prefValue = value.name; + break; + + default: + prefValue = "UseNone"; + } + } + + break; + + case "Direction": + if (value instanceof _primitives.Name) { + switch (value.name) { + case "L2R": + case "R2L": + prefValue = value.name; + break; + + default: + prefValue = "L2R"; + } + } + + break; + + case "ViewArea": + case "ViewClip": + case "PrintArea": + case "PrintClip": + if (value instanceof _primitives.Name) { + switch (value.name) { + case "MediaBox": + case "CropBox": + case "BleedBox": + case "TrimBox": + case "ArtBox": + prefValue = value.name; + break; + + default: + prefValue = "CropBox"; + } + } + + break; + + case "PrintScaling": + if (value instanceof _primitives.Name) { + switch (value.name) { + case "None": + case "AppDefault": + prefValue = value.name; + break; + + default: + prefValue = "AppDefault"; + } + } + + break; + + case "Duplex": + if (value instanceof _primitives.Name) { + switch (value.name) { + case "Simplex": + case "DuplexFlipShortEdge": + case "DuplexFlipLongEdge": + prefValue = value.name; + break; + + default: + prefValue = "None"; + } + } + + break; + + case "PrintPageRange": + if (Array.isArray(value) && value.length % 2 === 0) { + const isValid = value.every((page, i, arr) => { + return Number.isInteger(page) && page > 0 && (i === 0 || page >= arr[i - 1]) && page <= this.numPages; + }); + + if (isValid) { + prefValue = value; + } + } + + break; + + case "NumCopies": + if (Number.isInteger(value) && value > 0) { + prefValue = value; + } + + break; + + default: + (0, _util.warn)(`Ignoring non-standard key in ViewerPreferences: ${key}.`); + continue; + } + + if (prefValue === undefined) { + (0, _util.warn)(`Bad value, for key "${key}", in ViewerPreferences: ${value}.`); + continue; + } + + if (!prefs) { + prefs = Object.create(null); + } + + prefs[key] = prefValue; + } + + return (0, _util.shadow)(this, "viewerPreferences", prefs); + } + + get openAction() { + const obj = this._catDict.get("OpenAction"); + + const openAction = Object.create(null); + + if (obj instanceof _primitives.Dict) { + const destDict = new _primitives.Dict(this.xref); + destDict.set("A", obj); + const resultObj = { + url: null, + dest: null, + action: null + }; + Catalog.parseDestDictionary({ + destDict, + resultObj + }); + + if (Array.isArray(resultObj.dest)) { + openAction.dest = resultObj.dest; + } else if (resultObj.action) { + openAction.action = resultObj.action; + } + } else if (Array.isArray(obj)) { + openAction.dest = obj; + } + + return (0, _util.shadow)(this, "openAction", (0, _util.objectSize)(openAction) > 0 ? openAction : null); + } + + get attachments() { + const obj = this._catDict.get("Names"); + + let attachments = null; + + if (obj instanceof _primitives.Dict && obj.has("EmbeddedFiles")) { + const nameTree = new _name_number_tree.NameTree(obj.getRaw("EmbeddedFiles"), this.xref); + + for (const [key, value] of nameTree.getAll()) { + const fs = new _file_spec.FileSpec(value, this.xref); + + if (!attachments) { + attachments = Object.create(null); + } + + attachments[(0, _util.stringToPDFString)(key)] = fs.serializable; + } + } + + return (0, _util.shadow)(this, "attachments", attachments); + } + + get xfaImages() { + const obj = this._catDict.get("Names"); + + let xfaImages = null; + + if (obj instanceof _primitives.Dict && obj.has("XFAImages")) { + const nameTree = new _name_number_tree.NameTree(obj.getRaw("XFAImages"), this.xref); + + for (const [key, value] of nameTree.getAll()) { + if (!xfaImages) { + xfaImages = new _primitives.Dict(this.xref); + } + + xfaImages.set((0, _util.stringToPDFString)(key), value); + } + } + + return (0, _util.shadow)(this, "xfaImages", xfaImages); + } + + _collectJavaScript() { + const obj = this._catDict.get("Names"); + + let javaScript = null; + + function appendIfJavaScriptDict(name, jsDict) { + if (!(jsDict instanceof _primitives.Dict)) { + return; + } + + if (!(0, _primitives.isName)(jsDict.get("S"), "JavaScript")) { + return; + } + + let js = jsDict.get("JS"); + + if (js instanceof _base_stream.BaseStream) { + js = js.getString(); + } else if (typeof js !== "string") { + return; + } + + if (javaScript === null) { + javaScript = new Map(); + } + + js = (0, _util.stringToPDFString)(js).replace(/\u0000/g, ""); + javaScript.set(name, js); + } + + if (obj instanceof _primitives.Dict && obj.has("JavaScript")) { + const nameTree = new _name_number_tree.NameTree(obj.getRaw("JavaScript"), this.xref); + + for (const [key, value] of nameTree.getAll()) { + appendIfJavaScriptDict((0, _util.stringToPDFString)(key), value); + } + } + + const openAction = this._catDict.get("OpenAction"); + + if (openAction) { + appendIfJavaScriptDict("OpenAction", openAction); + } + + return javaScript; + } + + get javaScript() { + const javaScript = this._collectJavaScript(); + + return (0, _util.shadow)(this, "javaScript", javaScript ? [...javaScript.values()] : null); + } + + get jsActions() { + const javaScript = this._collectJavaScript(); + + let actions = (0, _core_utils.collectActions)(this.xref, this._catDict, _util.DocumentActionEventType); + + if (javaScript) { + if (!actions) { + actions = Object.create(null); + } + + for (const [key, val] of javaScript) { + if (key in actions) { + actions[key].push(val); + } else { + actions[key] = [val]; + } + } + } + + return (0, _util.shadow)(this, "jsActions", actions); + } + + async fontFallback(id, handler) { + const translatedFonts = await Promise.all(this.fontCache); + + for (const translatedFont of translatedFonts) { + if (translatedFont.loadedName === id) { + translatedFont.fallback(handler); + return; + } + } + } + + async cleanup(manuallyTriggered = false) { + (0, _cleanup_helper.clearGlobalCaches)(); + this.globalImageCache.clear(manuallyTriggered); + this.pageKidsCountCache.clear(); + this.pageIndexCache.clear(); + this.nonBlendModesSet.clear(); + const translatedFonts = await Promise.all(this.fontCache); + + for (const { + dict + } of translatedFonts) { + delete dict.cacheKey; + } + + this.fontCache.clear(); + this.builtInCMapCache.clear(); + this.standardFontDataCache.clear(); + } + + async getPageDict(pageIndex) { + const nodesToVisit = [this.toplevelPagesDict]; + const visitedNodes = new _primitives.RefSet(); + + const pagesRef = this._catDict.getRaw("Pages"); + + if (pagesRef instanceof _primitives.Ref) { + visitedNodes.put(pagesRef); + } + + const xref = this.xref, + pageKidsCountCache = this.pageKidsCountCache, + pageIndexCache = this.pageIndexCache; + let currentPageIndex = 0; + + while (nodesToVisit.length) { + const currentNode = nodesToVisit.pop(); + + if (currentNode instanceof _primitives.Ref) { + const count = pageKidsCountCache.get(currentNode); + + if (count >= 0 && currentPageIndex + count <= pageIndex) { + currentPageIndex += count; + continue; + } + + if (visitedNodes.has(currentNode)) { + throw new _util.FormatError("Pages tree contains circular reference."); + } + + visitedNodes.put(currentNode); + const obj = await xref.fetchAsync(currentNode); + + if (obj instanceof _primitives.Dict) { + let type = obj.getRaw("Type"); + + if (type instanceof _primitives.Ref) { + type = await xref.fetchAsync(type); + } + + if ((0, _primitives.isName)(type, "Page") || !obj.has("Kids")) { + if (!pageKidsCountCache.has(currentNode)) { + pageKidsCountCache.put(currentNode, 1); + } + + if (!pageIndexCache.has(currentNode)) { + pageIndexCache.put(currentNode, currentPageIndex); + } + + if (currentPageIndex === pageIndex) { + return [obj, currentNode]; + } + + currentPageIndex++; + continue; + } + } + + nodesToVisit.push(obj); + continue; + } + + if (!(currentNode instanceof _primitives.Dict)) { + throw new _util.FormatError("Page dictionary kid reference points to wrong type of object."); + } + + const { + objId + } = currentNode; + let count = currentNode.getRaw("Count"); + + if (count instanceof _primitives.Ref) { + count = await xref.fetchAsync(count); + } + + if (Number.isInteger(count) && count >= 0) { + if (objId && !pageKidsCountCache.has(objId)) { + pageKidsCountCache.put(objId, count); + } + + if (currentPageIndex + count <= pageIndex) { + currentPageIndex += count; + continue; + } + } + + let kids = currentNode.getRaw("Kids"); + + if (kids instanceof _primitives.Ref) { + kids = await xref.fetchAsync(kids); + } + + if (!Array.isArray(kids)) { + let type = currentNode.getRaw("Type"); + + if (type instanceof _primitives.Ref) { + type = await xref.fetchAsync(type); + } + + if ((0, _primitives.isName)(type, "Page") || !currentNode.has("Kids")) { + if (currentPageIndex === pageIndex) { + return [currentNode, null]; + } + + currentPageIndex++; + continue; + } + + throw new _util.FormatError("Page dictionary kids object is not an array."); + } + + for (let last = kids.length - 1; last >= 0; last--) { + nodesToVisit.push(kids[last]); + } + } + + throw new Error(`Page index ${pageIndex} not found.`); + } + + async getAllPageDicts(recoveryMode = false) { + const queue = [{ + currentNode: this.toplevelPagesDict, + posInKids: 0 + }]; + const visitedNodes = new _primitives.RefSet(); + + const pagesRef = this._catDict.getRaw("Pages"); + + if (pagesRef instanceof _primitives.Ref) { + visitedNodes.put(pagesRef); + } + + const map = new Map(), + xref = this.xref, + pageIndexCache = this.pageIndexCache; + let pageIndex = 0; + + function addPageDict(pageDict, pageRef) { + if (pageRef && !pageIndexCache.has(pageRef)) { + pageIndexCache.put(pageRef, pageIndex); + } + + map.set(pageIndex++, [pageDict, pageRef]); + } + + function addPageError(error) { + if (error instanceof _core_utils.XRefEntryException && !recoveryMode) { + throw error; + } + + map.set(pageIndex++, [error, null]); + } + + while (queue.length > 0) { + const queueItem = queue.at(-1); + const { + currentNode, + posInKids + } = queueItem; + let kids = currentNode.getRaw("Kids"); + + if (kids instanceof _primitives.Ref) { + try { + kids = await xref.fetchAsync(kids); + } catch (ex) { + addPageError(ex); + break; + } + } + + if (!Array.isArray(kids)) { + addPageError(new _util.FormatError("Page dictionary kids object is not an array.")); + break; + } + + if (posInKids >= kids.length) { + queue.pop(); + continue; + } + + const kidObj = kids[posInKids]; + let obj; + + if (kidObj instanceof _primitives.Ref) { + if (visitedNodes.has(kidObj)) { + addPageError(new _util.FormatError("Pages tree contains circular reference.")); + break; + } + + visitedNodes.put(kidObj); + + try { + obj = await xref.fetchAsync(kidObj); + } catch (ex) { + addPageError(ex); + break; + } + } else { + obj = kidObj; + } + + if (!(obj instanceof _primitives.Dict)) { + addPageError(new _util.FormatError("Page dictionary kid reference points to wrong type of object.")); + break; + } + + let type = obj.getRaw("Type"); + + if (type instanceof _primitives.Ref) { + try { + type = await xref.fetchAsync(type); + } catch (ex) { + addPageError(ex); + break; + } + } + + if ((0, _primitives.isName)(type, "Page") || !obj.has("Kids")) { + addPageDict(obj, kidObj instanceof _primitives.Ref ? kidObj : null); + } else { + queue.push({ + currentNode: obj, + posInKids: 0 + }); + } + + queueItem.posInKids++; + } + + return map; + } + + getPageIndex(pageRef) { + const cachedPageIndex = this.pageIndexCache.get(pageRef); + + if (cachedPageIndex !== undefined) { + return Promise.resolve(cachedPageIndex); + } + + const xref = this.xref; + + function pagesBeforeRef(kidRef) { + let total = 0, + parentRef; + return xref.fetchAsync(kidRef).then(function (node) { + if ((0, _primitives.isRefsEqual)(kidRef, pageRef) && !(0, _primitives.isDict)(node, "Page") && !(node instanceof _primitives.Dict && !node.has("Type") && node.has("Contents"))) { + throw new _util.FormatError("The reference does not point to a /Page dictionary."); + } + + if (!node) { + return null; + } + + if (!(node instanceof _primitives.Dict)) { + throw new _util.FormatError("Node must be a dictionary."); + } + + parentRef = node.getRaw("Parent"); + return node.getAsync("Parent"); + }).then(function (parent) { + if (!parent) { + return null; + } + + if (!(parent instanceof _primitives.Dict)) { + throw new _util.FormatError("Parent must be a dictionary."); + } + + return parent.getAsync("Kids"); + }).then(function (kids) { + if (!kids) { + return null; + } + + const kidPromises = []; + let found = false; + + for (let i = 0, ii = kids.length; i < ii; i++) { + const kid = kids[i]; + + if (!(kid instanceof _primitives.Ref)) { + throw new _util.FormatError("Kid must be a reference."); + } + + if ((0, _primitives.isRefsEqual)(kid, kidRef)) { + found = true; + break; + } + + kidPromises.push(xref.fetchAsync(kid).then(function (obj) { + if (!(obj instanceof _primitives.Dict)) { + throw new _util.FormatError("Kid node must be a dictionary."); + } + + if (obj.has("Count")) { + total += obj.get("Count"); + } else { + total++; + } + })); + } + + if (!found) { + throw new _util.FormatError("Kid reference not found in parent's kids."); + } + + return Promise.all(kidPromises).then(function () { + return [total, parentRef]; + }); + }); + } + + let total = 0; + + const next = ref => pagesBeforeRef(ref).then(args => { + if (!args) { + this.pageIndexCache.put(pageRef, total); + return total; + } + + const [count, parentRef] = args; + total += count; + return next(parentRef); + }); + + return next(pageRef); + } + + get baseUrl() { + const uri = this._catDict.get("URI"); + + if (uri instanceof _primitives.Dict) { + const base = uri.get("Base"); + + if (typeof base === "string") { + const absoluteUrl = (0, _util.createValidAbsoluteUrl)(base, null, { + tryConvertEncoding: true + }); + + if (absoluteUrl) { + return (0, _util.shadow)(this, "baseUrl", absoluteUrl.href); + } + } + } + + return (0, _util.shadow)(this, "baseUrl", null); + } + + static parseDestDictionary(params) { + const destDict = params.destDict; + + if (!(destDict instanceof _primitives.Dict)) { + (0, _util.warn)("parseDestDictionary: `destDict` must be a dictionary."); + return; + } + + const resultObj = params.resultObj; + + if (typeof resultObj !== "object") { + (0, _util.warn)("parseDestDictionary: `resultObj` must be an object."); + return; + } + + const docBaseUrl = params.docBaseUrl || null; + let action = destDict.get("A"), + url, + dest; + + if (!(action instanceof _primitives.Dict)) { + if (destDict.has("Dest")) { + action = destDict.get("Dest"); + } else { + action = destDict.get("AA"); + + if (action instanceof _primitives.Dict) { + if (action.has("D")) { + action = action.get("D"); + } else if (action.has("U")) { + action = action.get("U"); + } + } + } + } + + if (action instanceof _primitives.Dict) { + const actionType = action.get("S"); + + if (!(actionType instanceof _primitives.Name)) { + (0, _util.warn)("parseDestDictionary: Invalid type in Action dictionary."); + return; + } + + const actionName = actionType.name; + + switch (actionName) { + case "ResetForm": + const flags = action.get("Flags"); + const include = ((typeof flags === "number" ? flags : 0) & 1) === 0; + const fields = []; + const refs = []; + + for (const obj of action.get("Fields") || []) { + if (obj instanceof _primitives.Ref) { + refs.push(obj.toString()); + } else if (typeof obj === "string") { + fields.push((0, _util.stringToPDFString)(obj)); + } + } + + resultObj.resetForm = { + fields, + refs, + include + }; + break; + + case "URI": + url = action.get("URI"); + + if (url instanceof _primitives.Name) { + url = "/" + url.name; + } + + break; + + case "GoTo": + dest = action.get("D"); + break; + + case "Launch": + case "GoToR": + const urlDict = action.get("F"); + + if (urlDict instanceof _primitives.Dict) { + url = urlDict.get("F") || null; + } else if (typeof urlDict === "string") { + url = urlDict; + } + + let remoteDest = action.get("D"); + + if (remoteDest) { + if (remoteDest instanceof _primitives.Name) { + remoteDest = remoteDest.name; + } + + if (typeof url === "string") { + const baseUrl = url.split("#")[0]; + + if (typeof remoteDest === "string") { + url = baseUrl + "#" + remoteDest; + } else if (Array.isArray(remoteDest)) { + url = baseUrl + "#" + JSON.stringify(remoteDest); + } + } + } + + const newWindow = action.get("NewWindow"); + + if (typeof newWindow === "boolean") { + resultObj.newWindow = newWindow; + } + + break; + + case "Named": + const namedAction = action.get("N"); + + if (namedAction instanceof _primitives.Name) { + resultObj.action = namedAction.name; + } + + break; + + case "JavaScript": + const jsAction = action.get("JS"); + let js; + + if (jsAction instanceof _base_stream.BaseStream) { + js = jsAction.getString(); + } else if (typeof jsAction === "string") { + js = jsAction; + } + + const jsURL = js && (0, _core_utils.recoverJsURL)((0, _util.stringToPDFString)(js)); + + if (jsURL) { + url = jsURL.url; + resultObj.newWindow = jsURL.newWindow; + break; + } + + default: + if (actionName === "JavaScript" || actionName === "SubmitForm") { + break; + } + + (0, _util.warn)(`parseDestDictionary - unsupported action: "${actionName}".`); + break; + } + } else if (destDict.has("Dest")) { + dest = destDict.get("Dest"); + } + + if (typeof url === "string") { + const absoluteUrl = (0, _util.createValidAbsoluteUrl)(url, docBaseUrl, { + addDefaultProtocol: true, + tryConvertEncoding: true + }); + + if (absoluteUrl) { + resultObj.url = absoluteUrl.href; + } + + resultObj.unsafeUrl = url; + } + + if (dest) { + if (dest instanceof _primitives.Name) { + dest = dest.name; + } + + if (typeof dest === "string") { + resultObj.dest = (0, _util.stringToPDFString)(dest); + } else if (Array.isArray(dest)) { + resultObj.dest = dest; + } + } + } + +} + +exports.Catalog = Catalog; + +/***/ }), +/* 70 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.NumberTree = exports.NameTree = void 0; + +var _primitives = __w_pdfjs_require__(5); + +var _util = __w_pdfjs_require__(2); + +class NameOrNumberTree { + constructor(root, xref, type) { + if (this.constructor === NameOrNumberTree) { + (0, _util.unreachable)("Cannot initialize NameOrNumberTree."); + } + + this.root = root; + this.xref = xref; + this._type = type; + } + + getAll() { + const map = new Map(); + + if (!this.root) { + return map; + } + + const xref = this.xref; + const processed = new _primitives.RefSet(); + processed.put(this.root); + const queue = [this.root]; + + while (queue.length > 0) { + const obj = xref.fetchIfRef(queue.shift()); + + if (!(obj instanceof _primitives.Dict)) { + continue; + } + + if (obj.has("Kids")) { + const kids = obj.get("Kids"); + + if (!Array.isArray(kids)) { + continue; + } + + for (const kid of kids) { + if (processed.has(kid)) { + throw new _util.FormatError(`Duplicate entry in "${this._type}" tree.`); + } + + queue.push(kid); + processed.put(kid); + } + + continue; + } + + const entries = obj.get(this._type); + + if (!Array.isArray(entries)) { + continue; + } + + for (let i = 0, ii = entries.length; i < ii; i += 2) { + map.set(xref.fetchIfRef(entries[i]), xref.fetchIfRef(entries[i + 1])); + } + } + + return map; + } + + get(key) { + if (!this.root) { + return null; + } + + const xref = this.xref; + let kidsOrEntries = xref.fetchIfRef(this.root); + let loopCount = 0; + const MAX_LEVELS = 10; + + while (kidsOrEntries.has("Kids")) { + if (++loopCount > MAX_LEVELS) { + (0, _util.warn)(`Search depth limit reached for "${this._type}" tree.`); + return null; + } + + const kids = kidsOrEntries.get("Kids"); + + if (!Array.isArray(kids)) { + return null; + } + + let l = 0, + r = kids.length - 1; + + while (l <= r) { + const m = l + r >> 1; + const kid = xref.fetchIfRef(kids[m]); + const limits = kid.get("Limits"); + + if (key < xref.fetchIfRef(limits[0])) { + r = m - 1; + } else if (key > xref.fetchIfRef(limits[1])) { + l = m + 1; + } else { + kidsOrEntries = kid; + break; + } + } + + if (l > r) { + return null; + } + } + + const entries = kidsOrEntries.get(this._type); + + if (Array.isArray(entries)) { + let l = 0, + r = entries.length - 2; + + while (l <= r) { + const tmp = l + r >> 1, + m = tmp + (tmp & 1); + const currentKey = xref.fetchIfRef(entries[m]); + + if (key < currentKey) { + r = m - 2; + } else if (key > currentKey) { + l = m + 2; + } else { + return xref.fetchIfRef(entries[m + 1]); + } + } + } + + return null; + } + +} + +class NameTree extends NameOrNumberTree { + constructor(root, xref) { + super(root, xref, "Names"); + } + +} + +exports.NameTree = NameTree; + +class NumberTree extends NameOrNumberTree { + constructor(root, xref) { + super(root, xref, "Nums"); + } + +} + +exports.NumberTree = NumberTree; + +/***/ }), +/* 71 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.clearGlobalCaches = clearGlobalCaches; + +var _primitives = __w_pdfjs_require__(5); + +var _unicode = __w_pdfjs_require__(40); + +function clearGlobalCaches() { + (0, _primitives.clearPrimitiveCaches)(); + (0, _unicode.clearUnicodeCaches)(); +} + +/***/ }), +/* 72 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.FileSpec = void 0; + +var _util = __w_pdfjs_require__(2); + +var _base_stream = __w_pdfjs_require__(7); + +var _primitives = __w_pdfjs_require__(5); + +function pickPlatformItem(dict) { + if (dict.has("UF")) { + return dict.get("UF"); + } else if (dict.has("F")) { + return dict.get("F"); + } else if (dict.has("Unix")) { + return dict.get("Unix"); + } else if (dict.has("Mac")) { + return dict.get("Mac"); + } else if (dict.has("DOS")) { + return dict.get("DOS"); + } + + return null; +} + +class FileSpec { + constructor(root, xref) { + if (!(root instanceof _primitives.Dict)) { + return; + } + + this.xref = xref; + this.root = root; + + if (root.has("FS")) { + this.fs = root.get("FS"); + } + + this.description = root.has("Desc") ? (0, _util.stringToPDFString)(root.get("Desc")) : ""; + + if (root.has("RF")) { + (0, _util.warn)("Related file specifications are not supported"); + } + + this.contentAvailable = true; + + if (!root.has("EF")) { + this.contentAvailable = false; + (0, _util.warn)("Non-embedded file specifications are not supported"); + } + } + + get filename() { + if (!this._filename && this.root) { + const filename = pickPlatformItem(this.root) || "unnamed"; + this._filename = (0, _util.stringToPDFString)(filename).replace(/\\\\/g, "\\").replace(/\\\//g, "/").replace(/\\/g, "/"); + } + + return this._filename; + } + + get content() { + if (!this.contentAvailable) { + return null; + } + + if (!this.contentRef && this.root) { + this.contentRef = pickPlatformItem(this.root.get("EF")); + } + + let content = null; + + if (this.contentRef) { + const fileObj = this.xref.fetchIfRef(this.contentRef); + + if (fileObj instanceof _base_stream.BaseStream) { + content = fileObj.getBytes(); + } else { + (0, _util.warn)("Embedded file specification points to non-existing/invalid content"); + } + } else { + (0, _util.warn)("Embedded file specification does not have a content"); + } + + return content; + } + + get serializable() { + return { + filename: this.filename, + content: this.content + }; + } + +} + +exports.FileSpec = FileSpec; + +/***/ }), +/* 73 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.MetadataParser = void 0; + +var _xml_parser = __w_pdfjs_require__(66); + +class MetadataParser { + constructor(data) { + data = this._repair(data); + const parser = new _xml_parser.SimpleXMLParser({ + lowerCaseName: true + }); + const xmlDocument = parser.parseFromString(data); + this._metadataMap = new Map(); + this._data = data; + + if (xmlDocument) { + this._parse(xmlDocument); + } + } + + _repair(data) { + return data.replace(/^[^<]+/, "").replace(/>\\376\\377([^<]+)/g, function (all, codes) { + const bytes = codes.replace(/\\([0-3])([0-7])([0-7])/g, function (code, d1, d2, d3) { + return String.fromCharCode(d1 * 64 + d2 * 8 + d3 * 1); + }).replace(/&(amp|apos|gt|lt|quot);/g, function (str, name) { + switch (name) { + case "amp": + return "&"; + + case "apos": + return "'"; + + case "gt": + return ">"; + + case "lt": + return "<"; + + case "quot": + return '"'; + } + + throw new Error(`_repair: ${name} isn't defined.`); + }); + const charBuf = []; + + for (let i = 0, ii = bytes.length; i < ii; i += 2) { + const code = bytes.charCodeAt(i) * 256 + bytes.charCodeAt(i + 1); + + if (code >= 32 && code < 127 && code !== 60 && code !== 62 && code !== 38) { + charBuf.push(String.fromCharCode(code)); + } else { + charBuf.push("&#x" + (0x10000 + code).toString(16).substring(1) + ";"); + } + } + + return ">" + charBuf.join(""); + }); + } + + _getSequence(entry) { + const name = entry.nodeName; + + if (name !== "rdf:bag" && name !== "rdf:seq" && name !== "rdf:alt") { + return null; + } + + return entry.childNodes.filter(node => node.nodeName === "rdf:li"); + } + + _parseArray(entry) { + if (!entry.hasChildNodes()) { + return; + } + + const [seqNode] = entry.childNodes; + const sequence = this._getSequence(seqNode) || []; + + this._metadataMap.set(entry.nodeName, sequence.map(node => node.textContent.trim())); + } + + _parse(xmlDocument) { + let rdf = xmlDocument.documentElement; + + if (rdf.nodeName !== "rdf:rdf") { + rdf = rdf.firstChild; + + while (rdf && rdf.nodeName !== "rdf:rdf") { + rdf = rdf.nextSibling; + } + } + + if (!rdf || rdf.nodeName !== "rdf:rdf" || !rdf.hasChildNodes()) { + return; + } + + for (const desc of rdf.childNodes) { + if (desc.nodeName !== "rdf:description") { + continue; + } + + for (const entry of desc.childNodes) { + const name = entry.nodeName; + + switch (name) { + case "#text": + continue; + + case "dc:creator": + case "dc:subject": + this._parseArray(entry); + + continue; + } + + this._metadataMap.set(name, entry.textContent.trim()); + } + } + } + + get serializable() { + return { + parsedData: this._metadataMap, + rawData: this._data + }; + } + +} + +exports.MetadataParser = MetadataParser; + +/***/ }), +/* 74 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.StructTreeRoot = exports.StructTreePage = void 0; + +var _primitives = __w_pdfjs_require__(5); + +var _util = __w_pdfjs_require__(2); + +var _name_number_tree = __w_pdfjs_require__(70); + +const MAX_DEPTH = 40; +const StructElementType = { + PAGE_CONTENT: "PAGE_CONTENT", + STREAM_CONTENT: "STREAM_CONTENT", + OBJECT: "OBJECT", + ELEMENT: "ELEMENT" +}; + +class StructTreeRoot { + constructor(rootDict) { + this.dict = rootDict; + this.roleMap = new Map(); + } + + init() { + this.readRoleMap(); + } + + readRoleMap() { + const roleMapDict = this.dict.get("RoleMap"); + + if (!(roleMapDict instanceof _primitives.Dict)) { + return; + } + + roleMapDict.forEach((key, value) => { + if (!(value instanceof _primitives.Name)) { + return; + } + + this.roleMap.set(key, value.name); + }); + } + +} + +exports.StructTreeRoot = StructTreeRoot; + +class StructElementNode { + constructor(tree, dict) { + this.tree = tree; + this.dict = dict; + this.kids = []; + this.parseKids(); + } + + get role() { + const nameObj = this.dict.get("S"); + const name = nameObj instanceof _primitives.Name ? nameObj.name : ""; + const { + root + } = this.tree; + + if (root.roleMap.has(name)) { + return root.roleMap.get(name); + } + + return name; + } + + parseKids() { + let pageObjId = null; + const objRef = this.dict.getRaw("Pg"); + + if (objRef instanceof _primitives.Ref) { + pageObjId = objRef.toString(); + } + + const kids = this.dict.get("K"); + + if (Array.isArray(kids)) { + for (const kid of kids) { + const element = this.parseKid(pageObjId, kid); + + if (element) { + this.kids.push(element); + } + } + } else { + const element = this.parseKid(pageObjId, kids); + + if (element) { + this.kids.push(element); + } + } + } + + parseKid(pageObjId, kid) { + if (Number.isInteger(kid)) { + if (this.tree.pageDict.objId !== pageObjId) { + return null; + } + + return new StructElement({ + type: StructElementType.PAGE_CONTENT, + mcid: kid, + pageObjId + }); + } + + let kidDict = null; + + if (kid instanceof _primitives.Ref) { + kidDict = this.dict.xref.fetch(kid); + } else if (kid instanceof _primitives.Dict) { + kidDict = kid; + } + + if (!kidDict) { + return null; + } + + const pageRef = kidDict.getRaw("Pg"); + + if (pageRef instanceof _primitives.Ref) { + pageObjId = pageRef.toString(); + } + + const type = kidDict.get("Type") instanceof _primitives.Name ? kidDict.get("Type").name : null; + + if (type === "MCR") { + if (this.tree.pageDict.objId !== pageObjId) { + return null; + } + + return new StructElement({ + type: StructElementType.STREAM_CONTENT, + refObjId: kidDict.getRaw("Stm") instanceof _primitives.Ref ? kidDict.getRaw("Stm").toString() : null, + pageObjId, + mcid: kidDict.get("MCID") + }); + } + + if (type === "OBJR") { + if (this.tree.pageDict.objId !== pageObjId) { + return null; + } + + return new StructElement({ + type: StructElementType.OBJECT, + refObjId: kidDict.getRaw("Obj") instanceof _primitives.Ref ? kidDict.getRaw("Obj").toString() : null, + pageObjId + }); + } + + return new StructElement({ + type: StructElementType.ELEMENT, + dict: kidDict + }); + } + +} + +class StructElement { + constructor({ + type, + dict = null, + mcid = null, + pageObjId = null, + refObjId = null + }) { + this.type = type; + this.dict = dict; + this.mcid = mcid; + this.pageObjId = pageObjId; + this.refObjId = refObjId; + this.parentNode = null; + } + +} + +class StructTreePage { + constructor(structTreeRoot, pageDict) { + this.root = structTreeRoot; + this.rootDict = structTreeRoot ? structTreeRoot.dict : null; + this.pageDict = pageDict; + this.nodes = []; + } + + parse() { + if (!this.root || !this.rootDict) { + return; + } + + const parentTree = this.rootDict.get("ParentTree"); + + if (!parentTree) { + return; + } + + const id = this.pageDict.get("StructParents"); + + if (!Number.isInteger(id)) { + return; + } + + const numberTree = new _name_number_tree.NumberTree(parentTree, this.rootDict.xref); + const parentArray = numberTree.get(id); + + if (!Array.isArray(parentArray)) { + return; + } + + const map = new Map(); + + for (const ref of parentArray) { + if (ref instanceof _primitives.Ref) { + this.addNode(this.rootDict.xref.fetch(ref), map); + } + } + } + + addNode(dict, map, level = 0) { + if (level > MAX_DEPTH) { + (0, _util.warn)("StructTree MAX_DEPTH reached."); + return null; + } + + if (map.has(dict)) { + return map.get(dict); + } + + const element = new StructElementNode(this, dict); + map.set(dict, element); + const parent = dict.get("P"); + + if (!parent || (0, _primitives.isName)(parent.get("Type"), "StructTreeRoot")) { + if (!this.addTopLevelNode(dict, element)) { + map.delete(dict); + } + + return element; + } + + const parentNode = this.addNode(parent, map, level + 1); + + if (!parentNode) { + return element; + } + + let save = false; + + for (const kid of parentNode.kids) { + if (kid.type === StructElementType.ELEMENT && kid.dict === dict) { + kid.parentNode = element; + save = true; + } + } + + if (!save) { + map.delete(dict); + } + + return element; + } + + addTopLevelNode(dict, element) { + const obj = this.rootDict.get("K"); + + if (!obj) { + return false; + } + + if (obj instanceof _primitives.Dict) { + if (obj.objId !== dict.objId) { + return false; + } + + this.nodes[0] = element; + return true; + } + + if (!Array.isArray(obj)) { + return true; + } + + let save = false; + + for (let i = 0; i < obj.length; i++) { + const kidRef = obj[i]; + + if (kidRef && kidRef.toString() === dict.objId) { + this.nodes[i] = element; + save = true; + } + } + + return save; + } + + get serializable() { + function nodeToSerializable(node, parent, level = 0) { + if (level > MAX_DEPTH) { + (0, _util.warn)("StructTree too deep to be fully serialized."); + return; + } + + const obj = Object.create(null); + obj.role = node.role; + obj.children = []; + parent.children.push(obj); + const alt = node.dict.get("Alt"); + + if (typeof alt === "string") { + obj.alt = (0, _util.stringToPDFString)(alt); + } + + const lang = node.dict.get("Lang"); + + if (typeof lang === "string") { + obj.lang = (0, _util.stringToPDFString)(lang); + } + + for (const kid of node.kids) { + const kidElement = kid.type === StructElementType.ELEMENT ? kid.parentNode : null; + + if (kidElement) { + nodeToSerializable(kidElement, obj, level + 1); + continue; + } else if (kid.type === StructElementType.PAGE_CONTENT || kid.type === StructElementType.STREAM_CONTENT) { + obj.children.push({ + type: "content", + id: `page${kid.pageObjId}_mcid${kid.mcid}` + }); + } else if (kid.type === StructElementType.OBJECT) { + obj.children.push({ + type: "object", + id: kid.refObjId + }); + } + } + } + + const root = Object.create(null); + root.children = []; + root.role = "Root"; + + for (const child of this.nodes) { + if (!child) { + continue; + } + + nodeToSerializable(child, root); + } + + return root; + } + +} + +exports.StructTreePage = StructTreePage; + +/***/ }), +/* 75 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ObjectLoader = void 0; + +var _primitives = __w_pdfjs_require__(5); + +var _base_stream = __w_pdfjs_require__(7); + +var _core_utils = __w_pdfjs_require__(6); + +var _util = __w_pdfjs_require__(2); + +function mayHaveChildren(value) { + return value instanceof _primitives.Ref || value instanceof _primitives.Dict || value instanceof _base_stream.BaseStream || Array.isArray(value); +} + +function addChildren(node, nodesToVisit) { + if (node instanceof _primitives.Dict) { + node = node.getRawValues(); + } else if (node instanceof _base_stream.BaseStream) { + node = node.dict.getRawValues(); + } else if (!Array.isArray(node)) { + return; + } + + for (const rawValue of node) { + if (mayHaveChildren(rawValue)) { + nodesToVisit.push(rawValue); + } + } +} + +class ObjectLoader { + constructor(dict, keys, xref) { + this.dict = dict; + this.keys = keys; + this.xref = xref; + this.refSet = null; + } + + async load() { + if (this.xref.stream.isDataLoaded) { + return undefined; + } + + const { + keys, + dict + } = this; + this.refSet = new _primitives.RefSet(); + const nodesToVisit = []; + + for (let i = 0, ii = keys.length; i < ii; i++) { + const rawValue = dict.getRaw(keys[i]); + + if (rawValue !== undefined) { + nodesToVisit.push(rawValue); + } + } + + return this._walk(nodesToVisit); + } + + async _walk(nodesToVisit) { + const nodesToRevisit = []; + const pendingRequests = []; + + while (nodesToVisit.length) { + let currentNode = nodesToVisit.pop(); + + if (currentNode instanceof _primitives.Ref) { + if (this.refSet.has(currentNode)) { + continue; + } + + try { + this.refSet.put(currentNode); + currentNode = this.xref.fetch(currentNode); + } catch (ex) { + if (!(ex instanceof _core_utils.MissingDataException)) { + (0, _util.warn)(`ObjectLoader._walk - requesting all data: "${ex}".`); + this.refSet = null; + const { + manager + } = this.xref.stream; + return manager.requestAllChunks(); + } + + nodesToRevisit.push(currentNode); + pendingRequests.push({ + begin: ex.begin, + end: ex.end + }); + } + } + + if (currentNode instanceof _base_stream.BaseStream) { + const baseStreams = currentNode.getBaseStreams(); + + if (baseStreams) { + let foundMissingData = false; + + for (const stream of baseStreams) { + if (stream.isDataLoaded) { + continue; + } + + foundMissingData = true; + pendingRequests.push({ + begin: stream.start, + end: stream.end + }); + } + + if (foundMissingData) { + nodesToRevisit.push(currentNode); + } + } + } + + addChildren(currentNode, nodesToVisit); + } + + if (pendingRequests.length) { + await this.xref.stream.manager.requestRanges(pendingRequests); + + for (const node of nodesToRevisit) { + if (node instanceof _primitives.Ref) { + this.refSet.remove(node); + } + } + + return this._walk(nodesToRevisit); + } + + this.refSet = null; + return undefined; + } + +} + +exports.ObjectLoader = ObjectLoader; + +/***/ }), +/* 76 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.XFAFactory = void 0; + +var _xfa_object = __w_pdfjs_require__(77); + +var _bind = __w_pdfjs_require__(81); + +var _data = __w_pdfjs_require__(87); + +var _fonts = __w_pdfjs_require__(85); + +var _utils = __w_pdfjs_require__(78); + +var _util = __w_pdfjs_require__(2); + +var _parser = __w_pdfjs_require__(88); + +var _xhtml = __w_pdfjs_require__(98); + +class XFAFactory { + constructor(data) { + try { + this.root = new _parser.XFAParser().parse(XFAFactory._createDocument(data)); + const binder = new _bind.Binder(this.root); + this.form = binder.bind(); + this.dataHandler = new _data.DataHandler(this.root, binder.getData()); + this.form[_xfa_object.$globalData].template = this.form; + } catch (e) { + (0, _util.warn)(`XFA - an error occurred during parsing and binding: ${e}`); + } + } + + isValid() { + return this.root && this.form; + } + + _createPagesHelper() { + const iterator = this.form[_xfa_object.$toPages](); + + return new Promise((resolve, reject) => { + const nextIteration = () => { + try { + const value = iterator.next(); + + if (value.done) { + resolve(value.value); + } else { + setTimeout(nextIteration, 0); + } + } catch (e) { + reject(e); + } + }; + + setTimeout(nextIteration, 0); + }); + } + + async _createPages() { + try { + this.pages = await this._createPagesHelper(); + this.dims = this.pages.children.map(c => { + const { + width, + height + } = c.attributes.style; + return [0, 0, parseInt(width), parseInt(height)]; + }); + } catch (e) { + (0, _util.warn)(`XFA - an error occurred during layout: ${e}`); + } + } + + getBoundingBox(pageIndex) { + return this.dims[pageIndex]; + } + + async getNumPages() { + if (!this.pages) { + await this._createPages(); + } + + return this.dims.length; + } + + setImages(images) { + this.form[_xfa_object.$globalData].images = images; + } + + setFonts(fonts) { + this.form[_xfa_object.$globalData].fontFinder = new _fonts.FontFinder(fonts); + const missingFonts = []; + + for (let typeface of this.form[_xfa_object.$globalData].usedTypefaces) { + typeface = (0, _utils.stripQuotes)(typeface); + + const font = this.form[_xfa_object.$globalData].fontFinder.find(typeface); + + if (!font) { + missingFonts.push(typeface); + } + } + + if (missingFonts.length > 0) { + return missingFonts; + } + + return null; + } + + appendFonts(fonts, reallyMissingFonts) { + this.form[_xfa_object.$globalData].fontFinder.add(fonts, reallyMissingFonts); + } + + async getPages() { + if (!this.pages) { + await this._createPages(); + } + + const pages = this.pages; + this.pages = null; + return pages; + } + + serializeData(storage) { + return this.dataHandler.serialize(storage); + } + + static _createDocument(data) { + if (!data["/xdp:xdp"]) { + return data["xdp:xdp"]; + } + + return Object.values(data).join(""); + } + + static getRichTextAsHtml(rc) { + if (!rc || typeof rc !== "string") { + return null; + } + + try { + let root = new _parser.XFAParser(_xhtml.XhtmlNamespace, true).parse(rc); + + if (!["body", "xhtml"].includes(root[_xfa_object.$nodeName])) { + const newRoot = _xhtml.XhtmlNamespace.body({}); + + newRoot[_xfa_object.$appendChild](root); + + root = newRoot; + } + + const result = root[_xfa_object.$toHTML](); + + if (!result.success) { + return null; + } + + const { + html + } = result; + const { + attributes + } = html; + + if (attributes) { + if (attributes.class) { + attributes.class = attributes.class.filter(attr => !attr.startsWith("xfa")); + } + + attributes.dir = "auto"; + } + + return { + html, + str: root[_xfa_object.$text]() + }; + } catch (e) { + (0, _util.warn)(`XFA - an error occurred during parsing of rich text: ${e}`); + } + + return null; + } + +} + +exports.XFAFactory = XFAFactory; + +/***/ }), +/* 77 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.XmlObject = exports.XFAObjectArray = exports.XFAObject = exports.XFAAttribute = exports.StringObject = exports.OptionObject = exports.Option10 = exports.Option01 = exports.IntegerObject = exports.ContentObject = exports.$uid = exports.$toStyle = exports.$toString = exports.$toPages = exports.$toHTML = exports.$text = exports.$tabIndex = exports.$setValue = exports.$setSetAttributes = exports.$setId = exports.$searchNode = exports.$root = exports.$resolvePrototypes = exports.$removeChild = exports.$pushPara = exports.$pushGlyphs = exports.$popPara = exports.$onText = exports.$onChildCheck = exports.$onChild = exports.$nsAttributes = exports.$nodeName = exports.$namespaceId = exports.$isUsable = exports.$isTransparent = exports.$isThereMoreWidth = exports.$isSplittable = exports.$isNsAgnostic = exports.$isDescendent = exports.$isDataValue = exports.$isCDATAXml = exports.$isBindable = exports.$insertAt = exports.$indexOf = exports.$ids = exports.$hasSettableValue = exports.$globalData = exports.$getTemplateRoot = exports.$getSubformParent = exports.$getRealChildrenByNameIt = exports.$getParent = exports.$getNextPage = exports.$getExtra = exports.$getDataValue = exports.$getContainedChildren = exports.$getChildrenByNameIt = exports.$getChildrenByName = exports.$getChildrenByClass = exports.$getChildren = exports.$getAvailableSpace = exports.$getAttributes = exports.$getAttributeIt = exports.$flushHTML = exports.$finalize = exports.$extra = exports.$dump = exports.$data = exports.$content = exports.$consumed = exports.$clone = exports.$cleanup = exports.$cleanPage = exports.$clean = exports.$childrenToHTML = exports.$appendChild = exports.$addHTML = exports.$acceptWhitespace = void 0; + +var _utils = __w_pdfjs_require__(78); + +var _util = __w_pdfjs_require__(2); + +var _core_utils = __w_pdfjs_require__(6); + +var _namespaces = __w_pdfjs_require__(79); + +var _som = __w_pdfjs_require__(80); + +const $acceptWhitespace = Symbol(); +exports.$acceptWhitespace = $acceptWhitespace; +const $addHTML = Symbol(); +exports.$addHTML = $addHTML; +const $appendChild = Symbol(); +exports.$appendChild = $appendChild; +const $childrenToHTML = Symbol(); +exports.$childrenToHTML = $childrenToHTML; +const $clean = Symbol(); +exports.$clean = $clean; +const $cleanPage = Symbol(); +exports.$cleanPage = $cleanPage; +const $cleanup = Symbol(); +exports.$cleanup = $cleanup; +const $clone = Symbol(); +exports.$clone = $clone; +const $consumed = Symbol(); +exports.$consumed = $consumed; +const $content = Symbol("content"); +exports.$content = $content; +const $data = Symbol("data"); +exports.$data = $data; +const $dump = Symbol(); +exports.$dump = $dump; +const $extra = Symbol("extra"); +exports.$extra = $extra; +const $finalize = Symbol(); +exports.$finalize = $finalize; +const $flushHTML = Symbol(); +exports.$flushHTML = $flushHTML; +const $getAttributeIt = Symbol(); +exports.$getAttributeIt = $getAttributeIt; +const $getAttributes = Symbol(); +exports.$getAttributes = $getAttributes; +const $getAvailableSpace = Symbol(); +exports.$getAvailableSpace = $getAvailableSpace; +const $getChildrenByClass = Symbol(); +exports.$getChildrenByClass = $getChildrenByClass; +const $getChildrenByName = Symbol(); +exports.$getChildrenByName = $getChildrenByName; +const $getChildrenByNameIt = Symbol(); +exports.$getChildrenByNameIt = $getChildrenByNameIt; +const $getDataValue = Symbol(); +exports.$getDataValue = $getDataValue; +const $getExtra = Symbol(); +exports.$getExtra = $getExtra; +const $getRealChildrenByNameIt = Symbol(); +exports.$getRealChildrenByNameIt = $getRealChildrenByNameIt; +const $getChildren = Symbol(); +exports.$getChildren = $getChildren; +const $getContainedChildren = Symbol(); +exports.$getContainedChildren = $getContainedChildren; +const $getNextPage = Symbol(); +exports.$getNextPage = $getNextPage; +const $getSubformParent = Symbol(); +exports.$getSubformParent = $getSubformParent; +const $getParent = Symbol(); +exports.$getParent = $getParent; +const $getTemplateRoot = Symbol(); +exports.$getTemplateRoot = $getTemplateRoot; +const $globalData = Symbol(); +exports.$globalData = $globalData; +const $hasSettableValue = Symbol(); +exports.$hasSettableValue = $hasSettableValue; +const $ids = Symbol(); +exports.$ids = $ids; +const $indexOf = Symbol(); +exports.$indexOf = $indexOf; +const $insertAt = Symbol(); +exports.$insertAt = $insertAt; +const $isCDATAXml = Symbol(); +exports.$isCDATAXml = $isCDATAXml; +const $isBindable = Symbol(); +exports.$isBindable = $isBindable; +const $isDataValue = Symbol(); +exports.$isDataValue = $isDataValue; +const $isDescendent = Symbol(); +exports.$isDescendent = $isDescendent; +const $isNsAgnostic = Symbol(); +exports.$isNsAgnostic = $isNsAgnostic; +const $isSplittable = Symbol(); +exports.$isSplittable = $isSplittable; +const $isThereMoreWidth = Symbol(); +exports.$isThereMoreWidth = $isThereMoreWidth; +const $isTransparent = Symbol(); +exports.$isTransparent = $isTransparent; +const $isUsable = Symbol(); +exports.$isUsable = $isUsable; +const $lastAttribute = Symbol(); +const $namespaceId = Symbol("namespaceId"); +exports.$namespaceId = $namespaceId; +const $nodeName = Symbol("nodeName"); +exports.$nodeName = $nodeName; +const $nsAttributes = Symbol(); +exports.$nsAttributes = $nsAttributes; +const $onChild = Symbol(); +exports.$onChild = $onChild; +const $onChildCheck = Symbol(); +exports.$onChildCheck = $onChildCheck; +const $onText = Symbol(); +exports.$onText = $onText; +const $pushGlyphs = Symbol(); +exports.$pushGlyphs = $pushGlyphs; +const $popPara = Symbol(); +exports.$popPara = $popPara; +const $pushPara = Symbol(); +exports.$pushPara = $pushPara; +const $removeChild = Symbol(); +exports.$removeChild = $removeChild; +const $root = Symbol("root"); +exports.$root = $root; +const $resolvePrototypes = Symbol(); +exports.$resolvePrototypes = $resolvePrototypes; +const $searchNode = Symbol(); +exports.$searchNode = $searchNode; +const $setId = Symbol(); +exports.$setId = $setId; +const $setSetAttributes = Symbol(); +exports.$setSetAttributes = $setSetAttributes; +const $setValue = Symbol(); +exports.$setValue = $setValue; +const $tabIndex = Symbol(); +exports.$tabIndex = $tabIndex; +const $text = Symbol(); +exports.$text = $text; +const $toPages = Symbol(); +exports.$toPages = $toPages; +const $toHTML = Symbol(); +exports.$toHTML = $toHTML; +const $toString = Symbol(); +exports.$toString = $toString; +const $toStyle = Symbol(); +exports.$toStyle = $toStyle; +const $uid = Symbol("uid"); +exports.$uid = $uid; + +const _applyPrototype = Symbol(); + +const _attributes = Symbol(); + +const _attributeNames = Symbol(); + +const _children = Symbol("_children"); + +const _cloneAttribute = Symbol(); + +const _dataValue = Symbol(); + +const _defaultValue = Symbol(); + +const _filteredChildrenGenerator = Symbol(); + +const _getPrototype = Symbol(); + +const _getUnsetAttributes = Symbol(); + +const _hasChildren = Symbol(); + +const _max = Symbol(); + +const _options = Symbol(); + +const _parent = Symbol("parent"); + +const _resolvePrototypesHelper = Symbol(); + +const _setAttributes = Symbol(); + +const _validator = Symbol(); + +let uid = 0; +const NS_DATASETS = _namespaces.NamespaceIds.datasets.id; + +class XFAObject { + constructor(nsId, name, hasChildren = false) { + this[$namespaceId] = nsId; + this[$nodeName] = name; + this[_hasChildren] = hasChildren; + this[_parent] = null; + this[_children] = []; + this[$uid] = `${name}${uid++}`; + this[$globalData] = null; + } + + [$onChild](child) { + if (!this[_hasChildren] || !this[$onChildCheck](child)) { + return false; + } + + const name = child[$nodeName]; + const node = this[name]; + + if (node instanceof XFAObjectArray) { + if (node.push(child)) { + this[$appendChild](child); + return true; + } + } else { + if (node !== null) { + this[$removeChild](node); + } + + this[name] = child; + this[$appendChild](child); + return true; + } + + let id = ""; + + if (this.id) { + id = ` (id: ${this.id})`; + } else if (this.name) { + id = ` (name: ${this.name} ${this.h.value})`; + } + + (0, _util.warn)(`XFA - node "${this[$nodeName]}"${id} has already enough "${name}"!`); + return false; + } + + [$onChildCheck](child) { + return this.hasOwnProperty(child[$nodeName]) && child[$namespaceId] === this[$namespaceId]; + } + + [$isNsAgnostic]() { + return false; + } + + [$acceptWhitespace]() { + return false; + } + + [$isCDATAXml]() { + return false; + } + + [$isBindable]() { + return false; + } + + [$popPara]() { + if (this.para) { + this[$getTemplateRoot]()[$extra].paraStack.pop(); + } + } + + [$pushPara]() { + this[$getTemplateRoot]()[$extra].paraStack.push(this.para); + } + + [$setId](ids) { + if (this.id && this[$namespaceId] === _namespaces.NamespaceIds.template.id) { + ids.set(this.id, this); + } + } + + [$getTemplateRoot]() { + return this[$globalData].template; + } + + [$isSplittable]() { + return false; + } + + [$isThereMoreWidth]() { + return false; + } + + [$appendChild](child) { + child[_parent] = this; + + this[_children].push(child); + + if (!child[$globalData] && this[$globalData]) { + child[$globalData] = this[$globalData]; + } + } + + [$removeChild](child) { + const i = this[_children].indexOf(child); + + this[_children].splice(i, 1); + } + + [$hasSettableValue]() { + return this.hasOwnProperty("value"); + } + + [$setValue](_) {} + + [$onText](_) {} + + [$finalize]() {} + + [$clean](builder) { + delete this[_hasChildren]; + + if (this[$cleanup]) { + builder.clean(this[$cleanup]); + delete this[$cleanup]; + } + } + + [$indexOf](child) { + return this[_children].indexOf(child); + } + + [$insertAt](i, child) { + child[_parent] = this; + + this[_children].splice(i, 0, child); + + if (!child[$globalData] && this[$globalData]) { + child[$globalData] = this[$globalData]; + } + } + + [$isTransparent]() { + return !this.name; + } + + [$lastAttribute]() { + return ""; + } + + [$text]() { + if (this[_children].length === 0) { + return this[$content]; + } + + return this[_children].map(c => c[$text]()).join(""); + } + + get [_attributeNames]() { + const proto = Object.getPrototypeOf(this); + + if (!proto._attributes) { + const attributes = proto._attributes = new Set(); + + for (const name of Object.getOwnPropertyNames(this)) { + if (this[name] === null || this[name] instanceof XFAObject || this[name] instanceof XFAObjectArray) { + break; + } + + attributes.add(name); + } + } + + return (0, _util.shadow)(this, _attributeNames, proto._attributes); + } + + [$isDescendent](parent) { + let node = this; + + while (node) { + if (node === parent) { + return true; + } + + node = node[$getParent](); + } + + return false; + } + + [$getParent]() { + return this[_parent]; + } + + [$getSubformParent]() { + return this[$getParent](); + } + + [$getChildren](name = null) { + if (!name) { + return this[_children]; + } + + return this[name]; + } + + [$dump]() { + const dumped = Object.create(null); + + if (this[$content]) { + dumped.$content = this[$content]; + } + + for (const name of Object.getOwnPropertyNames(this)) { + const value = this[name]; + + if (value === null) { + continue; + } + + if (value instanceof XFAObject) { + dumped[name] = value[$dump](); + } else if (value instanceof XFAObjectArray) { + if (!value.isEmpty()) { + dumped[name] = value.dump(); + } + } else { + dumped[name] = value; + } + } + + return dumped; + } + + [$toStyle]() { + return null; + } + + [$toHTML]() { + return _utils.HTMLResult.EMPTY; + } + + *[$getContainedChildren]() { + for (const node of this[$getChildren]()) { + yield node; + } + } + + *[_filteredChildrenGenerator](filter, include) { + for (const node of this[$getContainedChildren]()) { + if (!filter || include === filter.has(node[$nodeName])) { + const availableSpace = this[$getAvailableSpace](); + const res = node[$toHTML](availableSpace); + + if (!res.success) { + this[$extra].failingNode = node; + } + + yield res; + } + } + } + + [$flushHTML]() { + return null; + } + + [$addHTML](html, bbox) { + this[$extra].children.push(html); + } + + [$getAvailableSpace]() {} + + [$childrenToHTML]({ + filter = null, + include = true + }) { + if (!this[$extra].generator) { + this[$extra].generator = this[_filteredChildrenGenerator](filter, include); + } else { + const availableSpace = this[$getAvailableSpace](); + const res = this[$extra].failingNode[$toHTML](availableSpace); + + if (!res.success) { + return res; + } + + if (res.html) { + this[$addHTML](res.html, res.bbox); + } + + delete this[$extra].failingNode; + } + + while (true) { + const gen = this[$extra].generator.next(); + + if (gen.done) { + break; + } + + const res = gen.value; + + if (!res.success) { + return res; + } + + if (res.html) { + this[$addHTML](res.html, res.bbox); + } + } + + this[$extra].generator = null; + return _utils.HTMLResult.EMPTY; + } + + [$setSetAttributes](attributes) { + this[_setAttributes] = new Set(Object.keys(attributes)); + } + + [_getUnsetAttributes](protoAttributes) { + const allAttr = this[_attributeNames]; + const setAttr = this[_setAttributes]; + return [...protoAttributes].filter(x => allAttr.has(x) && !setAttr.has(x)); + } + + [$resolvePrototypes](ids, ancestors = new Set()) { + for (const child of this[_children]) { + child[_resolvePrototypesHelper](ids, ancestors); + } + } + + [_resolvePrototypesHelper](ids, ancestors) { + const proto = this[_getPrototype](ids, ancestors); + + if (proto) { + this[_applyPrototype](proto, ids, ancestors); + } else { + this[$resolvePrototypes](ids, ancestors); + } + } + + [_getPrototype](ids, ancestors) { + const { + use, + usehref + } = this; + + if (!use && !usehref) { + return null; + } + + let proto = null; + let somExpression = null; + let id = null; + let ref = use; + + if (usehref) { + ref = usehref; + + if (usehref.startsWith("#som(") && usehref.endsWith(")")) { + somExpression = usehref.slice("#som(".length, usehref.length - 1); + } else if (usehref.startsWith(".#som(") && usehref.endsWith(")")) { + somExpression = usehref.slice(".#som(".length, usehref.length - 1); + } else if (usehref.startsWith("#")) { + id = usehref.slice(1); + } else if (usehref.startsWith(".#")) { + id = usehref.slice(2); + } + } else if (use.startsWith("#")) { + id = use.slice(1); + } else { + somExpression = use; + } + + this.use = this.usehref = ""; + + if (id) { + proto = ids.get(id); + } else { + proto = (0, _som.searchNode)(ids.get($root), this, somExpression, true, false); + + if (proto) { + proto = proto[0]; + } + } + + if (!proto) { + (0, _util.warn)(`XFA - Invalid prototype reference: ${ref}.`); + return null; + } + + if (proto[$nodeName] !== this[$nodeName]) { + (0, _util.warn)(`XFA - Incompatible prototype: ${proto[$nodeName]} !== ${this[$nodeName]}.`); + return null; + } + + if (ancestors.has(proto)) { + (0, _util.warn)(`XFA - Cycle detected in prototypes use.`); + return null; + } + + ancestors.add(proto); + + const protoProto = proto[_getPrototype](ids, ancestors); + + if (protoProto) { + proto[_applyPrototype](protoProto, ids, ancestors); + } + + proto[$resolvePrototypes](ids, ancestors); + ancestors.delete(proto); + return proto; + } + + [_applyPrototype](proto, ids, ancestors) { + if (ancestors.has(proto)) { + (0, _util.warn)(`XFA - Cycle detected in prototypes use.`); + return; + } + + if (!this[$content] && proto[$content]) { + this[$content] = proto[$content]; + } + + const newAncestors = new Set(ancestors); + newAncestors.add(proto); + + for (const unsetAttrName of this[_getUnsetAttributes](proto[_setAttributes])) { + this[unsetAttrName] = proto[unsetAttrName]; + + if (this[_setAttributes]) { + this[_setAttributes].add(unsetAttrName); + } + } + + for (const name of Object.getOwnPropertyNames(this)) { + if (this[_attributeNames].has(name)) { + continue; + } + + const value = this[name]; + const protoValue = proto[name]; + + if (value instanceof XFAObjectArray) { + for (const child of value[_children]) { + child[_resolvePrototypesHelper](ids, ancestors); + } + + for (let i = value[_children].length, ii = protoValue[_children].length; i < ii; i++) { + const child = proto[_children][i][$clone](); + + if (value.push(child)) { + child[_parent] = this; + + this[_children].push(child); + + child[_resolvePrototypesHelper](ids, ancestors); + } else { + break; + } + } + + continue; + } + + if (value !== null) { + value[$resolvePrototypes](ids, ancestors); + + if (protoValue) { + value[_applyPrototype](protoValue, ids, ancestors); + } + + continue; + } + + if (protoValue !== null) { + const child = protoValue[$clone](); + child[_parent] = this; + this[name] = child; + + this[_children].push(child); + + child[_resolvePrototypesHelper](ids, ancestors); + } + } + } + + static [_cloneAttribute](obj) { + if (Array.isArray(obj)) { + return obj.map(x => XFAObject[_cloneAttribute](x)); + } + + if (typeof obj === "object" && obj !== null) { + return Object.assign({}, obj); + } + + return obj; + } + + [$clone]() { + const clone = Object.create(Object.getPrototypeOf(this)); + + for (const $symbol of Object.getOwnPropertySymbols(this)) { + try { + clone[$symbol] = this[$symbol]; + } catch (_) { + (0, _util.shadow)(clone, $symbol, this[$symbol]); + } + } + + clone[$uid] = `${clone[$nodeName]}${uid++}`; + clone[_children] = []; + + for (const name of Object.getOwnPropertyNames(this)) { + if (this[_attributeNames].has(name)) { + clone[name] = XFAObject[_cloneAttribute](this[name]); + continue; + } + + const value = this[name]; + + if (value instanceof XFAObjectArray) { + clone[name] = new XFAObjectArray(value[_max]); + } else { + clone[name] = null; + } + } + + for (const child of this[_children]) { + const name = child[$nodeName]; + const clonedChild = child[$clone](); + + clone[_children].push(clonedChild); + + clonedChild[_parent] = clone; + + if (clone[name] === null) { + clone[name] = clonedChild; + } else { + clone[name][_children].push(clonedChild); + } + } + + return clone; + } + + [$getChildren](name = null) { + if (!name) { + return this[_children]; + } + + return this[_children].filter(c => c[$nodeName] === name); + } + + [$getChildrenByClass](name) { + return this[name]; + } + + [$getChildrenByName](name, allTransparent, first = true) { + return Array.from(this[$getChildrenByNameIt](name, allTransparent, first)); + } + + *[$getChildrenByNameIt](name, allTransparent, first = true) { + if (name === "parent") { + yield this[_parent]; + return; + } + + for (const child of this[_children]) { + if (child[$nodeName] === name) { + yield child; + } + + if (child.name === name) { + yield child; + } + + if (allTransparent || child[$isTransparent]()) { + yield* child[$getChildrenByNameIt](name, allTransparent, false); + } + } + + if (first && this[_attributeNames].has(name)) { + yield new XFAAttribute(this, name, this[name]); + } + } + +} + +exports.XFAObject = XFAObject; + +class XFAObjectArray { + constructor(max = Infinity) { + this[_max] = max; + this[_children] = []; + } + + push(child) { + const len = this[_children].length; + + if (len <= this[_max]) { + this[_children].push(child); + + return true; + } + + (0, _util.warn)(`XFA - node "${child[$nodeName]}" accepts no more than ${this[_max]} children`); + return false; + } + + isEmpty() { + return this[_children].length === 0; + } + + dump() { + return this[_children].length === 1 ? this[_children][0][$dump]() : this[_children].map(x => x[$dump]()); + } + + [$clone]() { + const clone = new XFAObjectArray(this[_max]); + clone[_children] = this[_children].map(c => c[$clone]()); + return clone; + } + + get children() { + return this[_children]; + } + + clear() { + this[_children].length = 0; + } + +} + +exports.XFAObjectArray = XFAObjectArray; + +class XFAAttribute { + constructor(node, name, value) { + this[_parent] = node; + this[$nodeName] = name; + this[$content] = value; + this[$consumed] = false; + this[$uid] = `attribute${uid++}`; + } + + [$getParent]() { + return this[_parent]; + } + + [$isDataValue]() { + return true; + } + + [$getDataValue]() { + return this[$content].trim(); + } + + [$setValue](value) { + value = value.value || ""; + this[$content] = value.toString(); + } + + [$text]() { + return this[$content]; + } + + [$isDescendent](parent) { + return this[_parent] === parent || this[_parent][$isDescendent](parent); + } + +} + +exports.XFAAttribute = XFAAttribute; + +class XmlObject extends XFAObject { + constructor(nsId, name, attributes = {}) { + super(nsId, name); + this[$content] = ""; + this[_dataValue] = null; + + if (name !== "#text") { + const map = new Map(); + this[_attributes] = map; + + for (const [attrName, value] of Object.entries(attributes)) { + map.set(attrName, new XFAAttribute(this, attrName, value)); + } + + if (attributes.hasOwnProperty($nsAttributes)) { + const dataNode = attributes[$nsAttributes].xfa.dataNode; + + if (dataNode !== undefined) { + if (dataNode === "dataGroup") { + this[_dataValue] = false; + } else if (dataNode === "dataValue") { + this[_dataValue] = true; + } + } + } + } + + this[$consumed] = false; + } + + [$toString](buf) { + const tagName = this[$nodeName]; + + if (tagName === "#text") { + buf.push((0, _core_utils.encodeToXmlString)(this[$content])); + return; + } + + const utf8TagName = (0, _util.utf8StringToString)(tagName); + const prefix = this[$namespaceId] === NS_DATASETS ? "xfa:" : ""; + buf.push(`<${prefix}${utf8TagName}`); + + for (const [name, value] of this[_attributes].entries()) { + const utf8Name = (0, _util.utf8StringToString)(name); + buf.push(` ${utf8Name}="${(0, _core_utils.encodeToXmlString)(value[$content])}"`); + } + + if (this[_dataValue] !== null) { + if (this[_dataValue]) { + buf.push(` xfa:dataNode="dataValue"`); + } else { + buf.push(` xfa:dataNode="dataGroup"`); + } + } + + if (!this[$content] && this[_children].length === 0) { + buf.push("/>"); + return; + } + + buf.push(">"); + + if (this[$content]) { + if (typeof this[$content] === "string") { + buf.push((0, _core_utils.encodeToXmlString)(this[$content])); + } else { + this[$content][$toString](buf); + } + } else { + for (const child of this[_children]) { + child[$toString](buf); + } + } + + buf.push(`</${prefix}${utf8TagName}>`); + } + + [$onChild](child) { + if (this[$content]) { + const node = new XmlObject(this[$namespaceId], "#text"); + this[$appendChild](node); + node[$content] = this[$content]; + this[$content] = ""; + } + + this[$appendChild](child); + return true; + } + + [$onText](str) { + this[$content] += str; + } + + [$finalize]() { + if (this[$content] && this[_children].length > 0) { + const node = new XmlObject(this[$namespaceId], "#text"); + this[$appendChild](node); + node[$content] = this[$content]; + delete this[$content]; + } + } + + [$toHTML]() { + if (this[$nodeName] === "#text") { + return _utils.HTMLResult.success({ + name: "#text", + value: this[$content] + }); + } + + return _utils.HTMLResult.EMPTY; + } + + [$getChildren](name = null) { + if (!name) { + return this[_children]; + } + + return this[_children].filter(c => c[$nodeName] === name); + } + + [$getAttributes]() { + return this[_attributes]; + } + + [$getChildrenByClass](name) { + const value = this[_attributes].get(name); + + if (value !== undefined) { + return value; + } + + return this[$getChildren](name); + } + + *[$getChildrenByNameIt](name, allTransparent) { + const value = this[_attributes].get(name); + + if (value) { + yield value; + } + + for (const child of this[_children]) { + if (child[$nodeName] === name) { + yield child; + } + + if (allTransparent) { + yield* child[$getChildrenByNameIt](name, allTransparent); + } + } + } + + *[$getAttributeIt](name, skipConsumed) { + const value = this[_attributes].get(name); + + if (value && (!skipConsumed || !value[$consumed])) { + yield value; + } + + for (const child of this[_children]) { + yield* child[$getAttributeIt](name, skipConsumed); + } + } + + *[$getRealChildrenByNameIt](name, allTransparent, skipConsumed) { + for (const child of this[_children]) { + if (child[$nodeName] === name && (!skipConsumed || !child[$consumed])) { + yield child; + } + + if (allTransparent) { + yield* child[$getRealChildrenByNameIt](name, allTransparent, skipConsumed); + } + } + } + + [$isDataValue]() { + if (this[_dataValue] === null) { + return this[_children].length === 0 || this[_children][0][$namespaceId] === _namespaces.NamespaceIds.xhtml.id; + } + + return this[_dataValue]; + } + + [$getDataValue]() { + if (this[_dataValue] === null) { + if (this[_children].length === 0) { + return this[$content].trim(); + } + + if (this[_children][0][$namespaceId] === _namespaces.NamespaceIds.xhtml.id) { + return this[_children][0][$text]().trim(); + } + + return null; + } + + return this[$content].trim(); + } + + [$setValue](value) { + value = value.value || ""; + this[$content] = value.toString(); + } + + [$dump](hasNS = false) { + const dumped = Object.create(null); + + if (hasNS) { + dumped.$ns = this[$namespaceId]; + } + + if (this[$content]) { + dumped.$content = this[$content]; + } + + dumped.$name = this[$nodeName]; + dumped.children = []; + + for (const child of this[_children]) { + dumped.children.push(child[$dump](hasNS)); + } + + dumped.attributes = Object.create(null); + + for (const [name, value] of this[_attributes]) { + dumped.attributes[name] = value[$content]; + } + + return dumped; + } + +} + +exports.XmlObject = XmlObject; + +class ContentObject extends XFAObject { + constructor(nsId, name) { + super(nsId, name); + this[$content] = ""; + } + + [$onText](text) { + this[$content] += text; + } + + [$finalize]() {} + +} + +exports.ContentObject = ContentObject; + +class OptionObject extends ContentObject { + constructor(nsId, name, options) { + super(nsId, name); + this[_options] = options; + } + + [$finalize]() { + this[$content] = (0, _utils.getKeyword)({ + data: this[$content], + defaultValue: this[_options][0], + validate: k => this[_options].includes(k) + }); + } + + [$clean](builder) { + super[$clean](builder); + delete this[_options]; + } + +} + +exports.OptionObject = OptionObject; + +class StringObject extends ContentObject { + [$finalize]() { + this[$content] = this[$content].trim(); + } + +} + +exports.StringObject = StringObject; + +class IntegerObject extends ContentObject { + constructor(nsId, name, defaultValue, validator) { + super(nsId, name); + this[_defaultValue] = defaultValue; + this[_validator] = validator; + } + + [$finalize]() { + this[$content] = (0, _utils.getInteger)({ + data: this[$content], + defaultValue: this[_defaultValue], + validate: this[_validator] + }); + } + + [$clean](builder) { + super[$clean](builder); + delete this[_defaultValue]; + delete this[_validator]; + } + +} + +exports.IntegerObject = IntegerObject; + +class Option01 extends IntegerObject { + constructor(nsId, name) { + super(nsId, name, 0, n => n === 1); + } + +} + +exports.Option01 = Option01; + +class Option10 extends IntegerObject { + constructor(nsId, name) { + super(nsId, name, 1, n => n === 0); + } + +} + +exports.Option10 = Option10; + +/***/ }), +/* 78 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.HTMLResult = void 0; +exports.getBBox = getBBox; +exports.getColor = getColor; +exports.getFloat = getFloat; +exports.getInteger = getInteger; +exports.getKeyword = getKeyword; +exports.getMeasurement = getMeasurement; +exports.getRatio = getRatio; +exports.getRelevant = getRelevant; +exports.getStringOption = getStringOption; +exports.stripQuotes = stripQuotes; + +var _util = __w_pdfjs_require__(2); + +const dimConverters = { + pt: x => x, + cm: x => x / 2.54 * 72, + mm: x => x / (10 * 2.54) * 72, + in: x => x * 72, + px: x => x +}; +const measurementPattern = /([+-]?\d+\.?\d*)(.*)/; + +function stripQuotes(str) { + if (str.startsWith("'") || str.startsWith('"')) { + return str.slice(1, str.length - 1); + } + + return str; +} + +function getInteger({ + data, + defaultValue, + validate +}) { + if (!data) { + return defaultValue; + } + + data = data.trim(); + const n = parseInt(data, 10); + + if (!isNaN(n) && validate(n)) { + return n; + } + + return defaultValue; +} + +function getFloat({ + data, + defaultValue, + validate +}) { + if (!data) { + return defaultValue; + } + + data = data.trim(); + const n = parseFloat(data); + + if (!isNaN(n) && validate(n)) { + return n; + } + + return defaultValue; +} + +function getKeyword({ + data, + defaultValue, + validate +}) { + if (!data) { + return defaultValue; + } + + data = data.trim(); + + if (validate(data)) { + return data; + } + + return defaultValue; +} + +function getStringOption(data, options) { + return getKeyword({ + data, + defaultValue: options[0], + validate: k => options.includes(k) + }); +} + +function getMeasurement(str, def = "0") { + def = def || "0"; + + if (!str) { + return getMeasurement(def); + } + + const match = str.trim().match(measurementPattern); + + if (!match) { + return getMeasurement(def); + } + + const [, valueStr, unit] = match; + const value = parseFloat(valueStr); + + if (isNaN(value)) { + return getMeasurement(def); + } + + if (value === 0) { + return 0; + } + + const conv = dimConverters[unit]; + + if (conv) { + return conv(value); + } + + return value; +} + +function getRatio(data) { + if (!data) { + return { + num: 1, + den: 1 + }; + } + + const ratio = data.trim().split(/\s*:\s*/).map(x => parseFloat(x)).filter(x => !isNaN(x)); + + if (ratio.length === 1) { + ratio.push(1); + } + + if (ratio.length === 0) { + return { + num: 1, + den: 1 + }; + } + + const [num, den] = ratio; + return { + num, + den + }; +} + +function getRelevant(data) { + if (!data) { + return []; + } + + return data.trim().split(/\s+/).map(e => { + return { + excluded: e[0] === "-", + viewname: e.substring(1) + }; + }); +} + +function getColor(data, def = [0, 0, 0]) { + let [r, g, b] = def; + + if (!data) { + return { + r, + g, + b + }; + } + + const color = data.trim().split(/\s*,\s*/).map(c => Math.min(Math.max(0, parseInt(c.trim(), 10)), 255)).map(c => isNaN(c) ? 0 : c); + + if (color.length < 3) { + return { + r, + g, + b + }; + } + + [r, g, b] = color; + return { + r, + g, + b + }; +} + +function getBBox(data) { + const def = -1; + + if (!data) { + return { + x: def, + y: def, + width: def, + height: def + }; + } + + const bbox = data.trim().split(/\s*,\s*/).map(m => getMeasurement(m, "-1")); + + if (bbox.length < 4 || bbox[2] < 0 || bbox[3] < 0) { + return { + x: def, + y: def, + width: def, + height: def + }; + } + + const [x, y, width, height] = bbox; + return { + x, + y, + width, + height + }; +} + +class HTMLResult { + static get FAILURE() { + return (0, _util.shadow)(this, "FAILURE", new HTMLResult(false, null, null, null)); + } + + static get EMPTY() { + return (0, _util.shadow)(this, "EMPTY", new HTMLResult(true, null, null, null)); + } + + constructor(success, html, bbox, breakNode) { + this.success = success; + this.html = html; + this.bbox = bbox; + this.breakNode = breakNode; + } + + isBreak() { + return !!this.breakNode; + } + + static breakNode(node) { + return new HTMLResult(false, null, null, node); + } + + static success(html, bbox = null) { + return new HTMLResult(true, html, bbox, null); + } + +} + +exports.HTMLResult = HTMLResult; + +/***/ }), +/* 79 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.NamespaceIds = exports.$buildXFAObject = void 0; +const $buildXFAObject = Symbol(); +exports.$buildXFAObject = $buildXFAObject; +const NamespaceIds = { + config: { + id: 0, + check: ns => ns.startsWith("http://www.xfa.org/schema/xci/") + }, + connectionSet: { + id: 1, + check: ns => ns.startsWith("http://www.xfa.org/schema/xfa-connection-set/") + }, + datasets: { + id: 2, + check: ns => ns.startsWith("http://www.xfa.org/schema/xfa-data/") + }, + form: { + id: 3, + check: ns => ns.startsWith("http://www.xfa.org/schema/xfa-form/") + }, + localeSet: { + id: 4, + check: ns => ns.startsWith("http://www.xfa.org/schema/xfa-locale-set/") + }, + pdf: { + id: 5, + check: ns => ns === "http://ns.adobe.com/xdp/pdf/" + }, + signature: { + id: 6, + check: ns => ns === "http://www.w3.org/2000/09/xmldsig#" + }, + sourceSet: { + id: 7, + check: ns => ns.startsWith("http://www.xfa.org/schema/xfa-source-set/") + }, + stylesheet: { + id: 8, + check: ns => ns === "http://www.w3.org/1999/XSL/Transform" + }, + template: { + id: 9, + check: ns => ns.startsWith("http://www.xfa.org/schema/xfa-template/") + }, + xdc: { + id: 10, + check: ns => ns.startsWith("http://www.xfa.org/schema/xdc/") + }, + xdp: { + id: 11, + check: ns => ns === "http://ns.adobe.com/xdp/" + }, + xfdf: { + id: 12, + check: ns => ns === "http://ns.adobe.com/xfdf/" + }, + xhtml: { + id: 13, + check: ns => ns === "http://www.w3.org/1999/xhtml" + }, + xmpmeta: { + id: 14, + check: ns => ns === "http://ns.adobe.com/xmpmeta/" + } +}; +exports.NamespaceIds = NamespaceIds; + +/***/ }), +/* 80 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.createDataNode = createDataNode; +exports.searchNode = searchNode; + +var _xfa_object = __w_pdfjs_require__(77); + +var _namespaces = __w_pdfjs_require__(79); + +var _util = __w_pdfjs_require__(2); + +const namePattern = /^[^.[]+/; +const indexPattern = /^[^\]]+/; +const operators = { + dot: 0, + dotDot: 1, + dotHash: 2, + dotBracket: 3, + dotParen: 4 +}; +const shortcuts = new Map([["$data", (root, current) => root.datasets ? root.datasets.data : root], ["$record", (root, current) => (root.datasets ? root.datasets.data : root)[_xfa_object.$getChildren]()[0]], ["$template", (root, current) => root.template], ["$connectionSet", (root, current) => root.connectionSet], ["$form", (root, current) => root.form], ["$layout", (root, current) => root.layout], ["$host", (root, current) => root.host], ["$dataWindow", (root, current) => root.dataWindow], ["$event", (root, current) => root.event], ["!", (root, current) => root.datasets], ["$xfa", (root, current) => root], ["xfa", (root, current) => root], ["$", (root, current) => current]]); +const somCache = new WeakMap(); +const NS_DATASETS = _namespaces.NamespaceIds.datasets.id; + +function parseIndex(index) { + index = index.trim(); + + if (index === "*") { + return Infinity; + } + + return parseInt(index, 10) || 0; +} + +function parseExpression(expr, dotDotAllowed, noExpr = true) { + let match = expr.match(namePattern); + + if (!match) { + return null; + } + + let [name] = match; + const parsed = [{ + name, + cacheName: "." + name, + index: 0, + js: null, + formCalc: null, + operator: operators.dot + }]; + let pos = name.length; + + while (pos < expr.length) { + const spos = pos; + const char = expr.charAt(pos++); + + if (char === "[") { + match = expr.slice(pos).match(indexPattern); + + if (!match) { + (0, _util.warn)("XFA - Invalid index in SOM expression"); + return null; + } + + parsed.at(-1).index = parseIndex(match[0]); + pos += match[0].length + 1; + continue; + } + + let operator; + + switch (expr.charAt(pos)) { + case ".": + if (!dotDotAllowed) { + return null; + } + + pos++; + operator = operators.dotDot; + break; + + case "#": + pos++; + operator = operators.dotHash; + break; + + case "[": + if (noExpr) { + (0, _util.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."); + return null; + } + + operator = operators.dotBracket; + break; + + case "(": + if (noExpr) { + (0, _util.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."); + return null; + } + + operator = operators.dotParen; + break; + + default: + operator = operators.dot; + break; + } + + match = expr.slice(pos).match(namePattern); + + if (!match) { + break; + } + + [name] = match; + pos += name.length; + parsed.push({ + name, + cacheName: expr.slice(spos, pos), + operator, + index: 0, + js: null, + formCalc: null + }); + } + + return parsed; +} + +function searchNode(root, container, expr, dotDotAllowed = true, useCache = true) { + const parsed = parseExpression(expr, dotDotAllowed); + + if (!parsed) { + return null; + } + + const fn = shortcuts.get(parsed[0].name); + let i = 0; + let isQualified; + + if (fn) { + isQualified = true; + root = [fn(root, container)]; + i = 1; + } else { + isQualified = container === null; + root = [container || root]; + } + + for (let ii = parsed.length; i < ii; i++) { + const { + name, + cacheName, + operator, + index + } = parsed[i]; + const nodes = []; + + for (const node of root) { + if (!(node instanceof _xfa_object.XFAObject)) { + continue; + } + + let children, cached; + + if (useCache) { + cached = somCache.get(node); + + if (!cached) { + cached = new Map(); + somCache.set(node, cached); + } + + children = cached.get(cacheName); + } + + if (!children) { + switch (operator) { + case operators.dot: + children = node[_xfa_object.$getChildrenByName](name, false); + break; + + case operators.dotDot: + children = node[_xfa_object.$getChildrenByName](name, true); + break; + + case operators.dotHash: + children = node[_xfa_object.$getChildrenByClass](name); + + if (children instanceof _xfa_object.XFAObjectArray) { + children = children.children; + } else { + children = [children]; + } + + break; + + default: + break; + } + + if (useCache) { + cached.set(cacheName, children); + } + } + + if (children.length > 0) { + nodes.push(children); + } + } + + if (nodes.length === 0 && !isQualified && i === 0) { + const parent = container[_xfa_object.$getParent](); + + container = parent; + + if (!container) { + return null; + } + + i = -1; + root = [container]; + continue; + } + + if (isFinite(index)) { + root = nodes.filter(node => index < node.length).map(node => node[index]); + } else { + root = nodes.flat(); + } + } + + if (root.length === 0) { + return null; + } + + return root; +} + +function createNodes(root, path) { + let node = null; + + for (const { + name, + index + } of path) { + for (let i = 0, ii = !isFinite(index) ? 0 : index; i <= ii; i++) { + const nsId = root[_xfa_object.$namespaceId] === NS_DATASETS ? -1 : root[_xfa_object.$namespaceId]; + node = new _xfa_object.XmlObject(nsId, name); + + root[_xfa_object.$appendChild](node); + } + + root = node; + } + + return node; +} + +function createDataNode(root, container, expr) { + const parsed = parseExpression(expr); + + if (!parsed) { + return null; + } + + if (parsed.some(x => x.operator === operators.dotDot)) { + return null; + } + + const fn = shortcuts.get(parsed[0].name); + let i = 0; + + if (fn) { + root = fn(root, container); + i = 1; + } else { + root = container || root; + } + + for (let ii = parsed.length; i < ii; i++) { + const { + name, + operator, + index + } = parsed[i]; + + if (!isFinite(index)) { + parsed[i].index = 0; + return createNodes(root, parsed.slice(i)); + } + + let children; + + switch (operator) { + case operators.dot: + children = root[_xfa_object.$getChildrenByName](name, false); + break; + + case operators.dotDot: + children = root[_xfa_object.$getChildrenByName](name, true); + break; + + case operators.dotHash: + children = root[_xfa_object.$getChildrenByClass](name); + + if (children instanceof _xfa_object.XFAObjectArray) { + children = children.children; + } else { + children = [children]; + } + + break; + + default: + break; + } + + if (children.length === 0) { + return createNodes(root, parsed.slice(i)); + } + + if (index < children.length) { + const child = children[index]; + + if (!(child instanceof _xfa_object.XFAObject)) { + (0, _util.warn)(`XFA - Cannot create a node.`); + return null; + } + + root = child; + } else { + parsed[i].index = index - children.length; + return createNodes(root, parsed.slice(i)); + } + } + + return null; +} + +/***/ }), +/* 81 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Binder = void 0; + +var _xfa_object = __w_pdfjs_require__(77); + +var _template = __w_pdfjs_require__(82); + +var _som = __w_pdfjs_require__(80); + +var _namespaces = __w_pdfjs_require__(79); + +var _util = __w_pdfjs_require__(2); + +const NS_DATASETS = _namespaces.NamespaceIds.datasets.id; + +function createText(content) { + const node = new _template.Text({}); + node[_xfa_object.$content] = content; + return node; +} + +class Binder { + constructor(root) { + this.root = root; + this.datasets = root.datasets; + + if (root.datasets && root.datasets.data) { + this.data = root.datasets.data; + } else { + this.data = new _xfa_object.XmlObject(_namespaces.NamespaceIds.datasets.id, "data"); + } + + this.emptyMerge = this.data[_xfa_object.$getChildren]().length === 0; + this.root.form = this.form = root.template[_xfa_object.$clone](); + } + + _isConsumeData() { + return !this.emptyMerge && this._mergeMode; + } + + _isMatchTemplate() { + return !this._isConsumeData(); + } + + bind() { + this._bindElement(this.form, this.data); + + return this.form; + } + + getData() { + return this.data; + } + + _bindValue(formNode, data, picture) { + formNode[_xfa_object.$data] = data; + + if (formNode[_xfa_object.$hasSettableValue]()) { + if (data[_xfa_object.$isDataValue]()) { + const value = data[_xfa_object.$getDataValue](); + + formNode[_xfa_object.$setValue](createText(value)); + } else if (formNode instanceof _template.Field && formNode.ui && formNode.ui.choiceList && formNode.ui.choiceList.open === "multiSelect") { + const value = data[_xfa_object.$getChildren]().map(child => child[_xfa_object.$content].trim()).join("\n"); + + formNode[_xfa_object.$setValue](createText(value)); + } else if (this._isConsumeData()) { + (0, _util.warn)(`XFA - Nodes haven't the same type.`); + } + } else if (!data[_xfa_object.$isDataValue]() || this._isMatchTemplate()) { + this._bindElement(formNode, data); + } else { + (0, _util.warn)(`XFA - Nodes haven't the same type.`); + } + } + + _findDataByNameToConsume(name, isValue, dataNode, global) { + if (!name) { + return null; + } + + let generator, match; + + for (let i = 0; i < 3; i++) { + generator = dataNode[_xfa_object.$getRealChildrenByNameIt](name, false, true); + + while (true) { + match = generator.next().value; + + if (!match) { + break; + } + + if (isValue === match[_xfa_object.$isDataValue]()) { + return match; + } + } + + if (dataNode[_xfa_object.$namespaceId] === _namespaces.NamespaceIds.datasets.id && dataNode[_xfa_object.$nodeName] === "data") { + break; + } + + dataNode = dataNode[_xfa_object.$getParent](); + } + + if (!global) { + return null; + } + + generator = this.data[_xfa_object.$getRealChildrenByNameIt](name, true, false); + match = generator.next().value; + + if (match) { + return match; + } + + generator = this.data[_xfa_object.$getAttributeIt](name, true); + match = generator.next().value; + + if (match && match[_xfa_object.$isDataValue]()) { + return match; + } + + return null; + } + + _setProperties(formNode, dataNode) { + if (!formNode.hasOwnProperty("setProperty")) { + return; + } + + for (const { + ref, + target, + connection + } of formNode.setProperty.children) { + if (connection) { + continue; + } + + if (!ref) { + continue; + } + + const nodes = (0, _som.searchNode)(this.root, dataNode, ref, false, false); + + if (!nodes) { + (0, _util.warn)(`XFA - Invalid reference: ${ref}.`); + continue; + } + + const [node] = nodes; + + if (!node[_xfa_object.$isDescendent](this.data)) { + (0, _util.warn)(`XFA - Invalid node: must be a data node.`); + continue; + } + + const targetNodes = (0, _som.searchNode)(this.root, formNode, target, false, false); + + if (!targetNodes) { + (0, _util.warn)(`XFA - Invalid target: ${target}.`); + continue; + } + + const [targetNode] = targetNodes; + + if (!targetNode[_xfa_object.$isDescendent](formNode)) { + (0, _util.warn)(`XFA - Invalid target: must be a property or subproperty.`); + continue; + } + + const targetParent = targetNode[_xfa_object.$getParent](); + + if (targetNode instanceof _template.SetProperty || targetParent instanceof _template.SetProperty) { + (0, _util.warn)(`XFA - Invalid target: cannot be a setProperty or one of its properties.`); + continue; + } + + if (targetNode instanceof _template.BindItems || targetParent instanceof _template.BindItems) { + (0, _util.warn)(`XFA - Invalid target: cannot be a bindItems or one of its properties.`); + continue; + } + + const content = node[_xfa_object.$text](); + + const name = targetNode[_xfa_object.$nodeName]; + + if (targetNode instanceof _xfa_object.XFAAttribute) { + const attrs = Object.create(null); + attrs[name] = content; + const obj = Reflect.construct(Object.getPrototypeOf(targetParent).constructor, [attrs]); + targetParent[name] = obj[name]; + continue; + } + + if (!targetNode.hasOwnProperty(_xfa_object.$content)) { + (0, _util.warn)(`XFA - Invalid node to use in setProperty`); + continue; + } + + targetNode[_xfa_object.$data] = node; + targetNode[_xfa_object.$content] = content; + + targetNode[_xfa_object.$finalize](); + } + } + + _bindItems(formNode, dataNode) { + if (!formNode.hasOwnProperty("items") || !formNode.hasOwnProperty("bindItems") || formNode.bindItems.isEmpty()) { + return; + } + + for (const item of formNode.items.children) { + formNode[_xfa_object.$removeChild](item); + } + + formNode.items.clear(); + const labels = new _template.Items({}); + const values = new _template.Items({}); + + formNode[_xfa_object.$appendChild](labels); + + formNode.items.push(labels); + + formNode[_xfa_object.$appendChild](values); + + formNode.items.push(values); + + for (const { + ref, + labelRef, + valueRef, + connection + } of formNode.bindItems.children) { + if (connection) { + continue; + } + + if (!ref) { + continue; + } + + const nodes = (0, _som.searchNode)(this.root, dataNode, ref, false, false); + + if (!nodes) { + (0, _util.warn)(`XFA - Invalid reference: ${ref}.`); + continue; + } + + for (const node of nodes) { + if (!node[_xfa_object.$isDescendent](this.datasets)) { + (0, _util.warn)(`XFA - Invalid ref (${ref}): must be a datasets child.`); + continue; + } + + const labelNodes = (0, _som.searchNode)(this.root, node, labelRef, true, false); + + if (!labelNodes) { + (0, _util.warn)(`XFA - Invalid label: ${labelRef}.`); + continue; + } + + const [labelNode] = labelNodes; + + if (!labelNode[_xfa_object.$isDescendent](this.datasets)) { + (0, _util.warn)(`XFA - Invalid label: must be a datasets child.`); + continue; + } + + const valueNodes = (0, _som.searchNode)(this.root, node, valueRef, true, false); + + if (!valueNodes) { + (0, _util.warn)(`XFA - Invalid value: ${valueRef}.`); + continue; + } + + const [valueNode] = valueNodes; + + if (!valueNode[_xfa_object.$isDescendent](this.datasets)) { + (0, _util.warn)(`XFA - Invalid value: must be a datasets child.`); + continue; + } + + const label = createText(labelNode[_xfa_object.$text]()); + const value = createText(valueNode[_xfa_object.$text]()); + + labels[_xfa_object.$appendChild](label); + + labels.text.push(label); + + values[_xfa_object.$appendChild](value); + + values.text.push(value); + } + } + } + + _bindOccurrences(formNode, matches, picture) { + let baseClone; + + if (matches.length > 1) { + baseClone = formNode[_xfa_object.$clone](); + + baseClone[_xfa_object.$removeChild](baseClone.occur); + + baseClone.occur = null; + } + + this._bindValue(formNode, matches[0], picture); + + this._setProperties(formNode, matches[0]); + + this._bindItems(formNode, matches[0]); + + if (matches.length === 1) { + return; + } + + const parent = formNode[_xfa_object.$getParent](); + + const name = formNode[_xfa_object.$nodeName]; + + const pos = parent[_xfa_object.$indexOf](formNode); + + for (let i = 1, ii = matches.length; i < ii; i++) { + const match = matches[i]; + + const clone = baseClone[_xfa_object.$clone](); + + parent[name].push(clone); + + parent[_xfa_object.$insertAt](pos + i, clone); + + this._bindValue(clone, match, picture); + + this._setProperties(clone, match); + + this._bindItems(clone, match); + } + } + + _createOccurrences(formNode) { + if (!this.emptyMerge) { + return; + } + + const { + occur + } = formNode; + + if (!occur || occur.initial <= 1) { + return; + } + + const parent = formNode[_xfa_object.$getParent](); + + const name = formNode[_xfa_object.$nodeName]; + + if (!(parent[name] instanceof _xfa_object.XFAObjectArray)) { + return; + } + + let currentNumber; + + if (formNode.name) { + currentNumber = parent[name].children.filter(e => e.name === formNode.name).length; + } else { + currentNumber = parent[name].children.length; + } + + const pos = parent[_xfa_object.$indexOf](formNode) + 1; + const ii = occur.initial - currentNumber; + + if (ii) { + const nodeClone = formNode[_xfa_object.$clone](); + + nodeClone[_xfa_object.$removeChild](nodeClone.occur); + + nodeClone.occur = null; + parent[name].push(nodeClone); + + parent[_xfa_object.$insertAt](pos, nodeClone); + + for (let i = 1; i < ii; i++) { + const clone = nodeClone[_xfa_object.$clone](); + + parent[name].push(clone); + + parent[_xfa_object.$insertAt](pos + i, clone); + } + } + } + + _getOccurInfo(formNode) { + const { + name, + occur + } = formNode; + + if (!occur || !name) { + return [1, 1]; + } + + const max = occur.max === -1 ? Infinity : occur.max; + return [occur.min, max]; + } + + _setAndBind(formNode, dataNode) { + this._setProperties(formNode, dataNode); + + this._bindItems(formNode, dataNode); + + this._bindElement(formNode, dataNode); + } + + _bindElement(formNode, dataNode) { + const uselessNodes = []; + + this._createOccurrences(formNode); + + for (const child of formNode[_xfa_object.$getChildren]()) { + if (child[_xfa_object.$data]) { + continue; + } + + if (this._mergeMode === undefined && child[_xfa_object.$nodeName] === "subform") { + this._mergeMode = child.mergeMode === "consumeData"; + + const dataChildren = dataNode[_xfa_object.$getChildren](); + + if (dataChildren.length > 0) { + this._bindOccurrences(child, [dataChildren[0]], null); + } else if (this.emptyMerge) { + const nsId = dataNode[_xfa_object.$namespaceId] === NS_DATASETS ? -1 : dataNode[_xfa_object.$namespaceId]; + const dataChild = child[_xfa_object.$data] = new _xfa_object.XmlObject(nsId, child.name || "root"); + + dataNode[_xfa_object.$appendChild](dataChild); + + this._bindElement(child, dataChild); + } + + continue; + } + + if (!child[_xfa_object.$isBindable]()) { + continue; + } + + let global = false; + let picture = null; + let ref = null; + let match = null; + + if (child.bind) { + switch (child.bind.match) { + case "none": + this._setAndBind(child, dataNode); + + continue; + + case "global": + global = true; + break; + + case "dataRef": + if (!child.bind.ref) { + (0, _util.warn)(`XFA - ref is empty in node ${child[_xfa_object.$nodeName]}.`); + + this._setAndBind(child, dataNode); + + continue; + } + + ref = child.bind.ref; + break; + + default: + break; + } + + if (child.bind.picture) { + picture = child.bind.picture[_xfa_object.$content]; + } + } + + const [min, max] = this._getOccurInfo(child); + + if (ref) { + match = (0, _som.searchNode)(this.root, dataNode, ref, true, false); + + if (match === null) { + match = (0, _som.createDataNode)(this.data, dataNode, ref); + + if (!match) { + continue; + } + + if (this._isConsumeData()) { + match[_xfa_object.$consumed] = true; + } + + this._setAndBind(child, match); + + continue; + } else { + if (this._isConsumeData()) { + match = match.filter(node => !node[_xfa_object.$consumed]); + } + + if (match.length > max) { + match = match.slice(0, max); + } else if (match.length === 0) { + match = null; + } + + if (match && this._isConsumeData()) { + match.forEach(node => { + node[_xfa_object.$consumed] = true; + }); + } + } + } else { + if (!child.name) { + this._setAndBind(child, dataNode); + + continue; + } + + if (this._isConsumeData()) { + const matches = []; + + while (matches.length < max) { + const found = this._findDataByNameToConsume(child.name, child[_xfa_object.$hasSettableValue](), dataNode, global); + + if (!found) { + break; + } + + found[_xfa_object.$consumed] = true; + matches.push(found); + } + + match = matches.length > 0 ? matches : null; + } else { + match = dataNode[_xfa_object.$getRealChildrenByNameIt](child.name, false, this.emptyMerge).next().value; + + if (!match) { + if (min === 0) { + uselessNodes.push(child); + continue; + } + + const nsId = dataNode[_xfa_object.$namespaceId] === NS_DATASETS ? -1 : dataNode[_xfa_object.$namespaceId]; + match = child[_xfa_object.$data] = new _xfa_object.XmlObject(nsId, child.name); + + if (this.emptyMerge) { + match[_xfa_object.$consumed] = true; + } + + dataNode[_xfa_object.$appendChild](match); + + this._setAndBind(child, match); + + continue; + } + + if (this.emptyMerge) { + match[_xfa_object.$consumed] = true; + } + + match = [match]; + } + } + + if (match) { + this._bindOccurrences(child, match, picture); + } else if (min > 0) { + this._setAndBind(child, dataNode); + } else { + uselessNodes.push(child); + } + } + + uselessNodes.forEach(node => node[_xfa_object.$getParent]()[_xfa_object.$removeChild](node)); + } + +} + +exports.Binder = Binder; + +/***/ }), +/* 82 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Value = exports.Text = exports.TemplateNamespace = exports.Template = exports.SetProperty = exports.Items = exports.Field = exports.BindItems = void 0; + +var _xfa_object = __w_pdfjs_require__(77); + +var _namespaces = __w_pdfjs_require__(79); + +var _layout = __w_pdfjs_require__(83); + +var _html_utils = __w_pdfjs_require__(84); + +var _utils = __w_pdfjs_require__(78); + +var _util = __w_pdfjs_require__(2); + +var _fonts = __w_pdfjs_require__(85); + +var _core_utils = __w_pdfjs_require__(6); + +var _som = __w_pdfjs_require__(80); + +const TEMPLATE_NS_ID = _namespaces.NamespaceIds.template.id; +const SVG_NS = "http://www.w3.org/2000/svg"; +const MAX_ATTEMPTS_FOR_LRTB_LAYOUT = 2; +const MAX_EMPTY_PAGES = 3; +const DEFAULT_TAB_INDEX = 5000; +const HEADING_PATTERN = /^H(\d+)$/; +const MIMES = new Set(["image/gif", "image/jpeg", "image/jpg", "image/pjpeg", "image/png", "image/apng", "image/x-png", "image/bmp", "image/x-ms-bmp", "image/tiff", "image/tif", "application/octet-stream"]); +const IMAGES_HEADERS = [[[0x42, 0x4d], "image/bmp"], [[0xff, 0xd8, 0xff], "image/jpeg"], [[0x49, 0x49, 0x2a, 0x00], "image/tiff"], [[0x4d, 0x4d, 0x00, 0x2a], "image/tiff"], [[0x47, 0x49, 0x46, 0x38, 0x39, 0x61], "image/gif"], [[0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a], "image/png"]]; + +function getBorderDims(node) { + if (!node || !node.border) { + return { + w: 0, + h: 0 + }; + } + + const borderExtra = node.border[_xfa_object.$getExtra](); + + if (!borderExtra) { + return { + w: 0, + h: 0 + }; + } + + return { + w: borderExtra.widths[0] + borderExtra.widths[2] + borderExtra.insets[0] + borderExtra.insets[2], + h: borderExtra.widths[1] + borderExtra.widths[3] + borderExtra.insets[1] + borderExtra.insets[3] + }; +} + +function hasMargin(node) { + return node.margin && (node.margin.topInset || node.margin.rightInset || node.margin.bottomInset || node.margin.leftInset); +} + +function _setValue(templateNode, value) { + if (!templateNode.value) { + const nodeValue = new Value({}); + + templateNode[_xfa_object.$appendChild](nodeValue); + + templateNode.value = nodeValue; + } + + templateNode.value[_xfa_object.$setValue](value); +} + +function* getContainedChildren(node) { + for (const child of node[_xfa_object.$getChildren]()) { + if (child instanceof SubformSet) { + yield* child[_xfa_object.$getContainedChildren](); + continue; + } + + yield child; + } +} + +function isRequired(node) { + return node.validate && node.validate.nullTest === "error"; +} + +function setTabIndex(node) { + while (node) { + if (!node.traversal) { + node[_xfa_object.$tabIndex] = node[_xfa_object.$getParent]()[_xfa_object.$tabIndex]; + return; + } + + if (node[_xfa_object.$tabIndex]) { + return; + } + + let next = null; + + for (const child of node.traversal[_xfa_object.$getChildren]()) { + if (child.operation === "next") { + next = child; + break; + } + } + + if (!next || !next.ref) { + node[_xfa_object.$tabIndex] = node[_xfa_object.$getParent]()[_xfa_object.$tabIndex]; + return; + } + + const root = node[_xfa_object.$getTemplateRoot](); + + node[_xfa_object.$tabIndex] = ++root[_xfa_object.$tabIndex]; + + const ref = root[_xfa_object.$searchNode](next.ref, node); + + if (!ref) { + return; + } + + node = ref[0]; + } +} + +function applyAssist(obj, attributes) { + const assist = obj.assist; + + if (assist) { + const assistTitle = assist[_xfa_object.$toHTML](); + + if (assistTitle) { + attributes.title = assistTitle; + } + + const role = assist.role; + const match = role.match(HEADING_PATTERN); + + if (match) { + const ariaRole = "heading"; + const ariaLevel = match[1]; + attributes.role = ariaRole; + attributes["aria-level"] = ariaLevel; + } + } + + if (obj.layout === "table") { + attributes.role = "table"; + } else if (obj.layout === "row") { + attributes.role = "row"; + } else { + const parent = obj[_xfa_object.$getParent](); + + if (parent.layout === "row") { + if (parent.assist && parent.assist.role === "TH") { + attributes.role = "columnheader"; + } else { + attributes.role = "cell"; + } + } + } +} + +function ariaLabel(obj) { + if (!obj.assist) { + return null; + } + + const assist = obj.assist; + + if (assist.speak && assist.speak[_xfa_object.$content] !== "") { + return assist.speak[_xfa_object.$content]; + } + + if (assist.toolTip) { + return assist.toolTip[_xfa_object.$content]; + } + + return null; +} + +function valueToHtml(value) { + return _utils.HTMLResult.success({ + name: "div", + attributes: { + class: ["xfaRich"], + style: Object.create(null) + }, + children: [{ + name: "span", + attributes: { + style: Object.create(null) + }, + value + }] + }); +} + +function setFirstUnsplittable(node) { + const root = node[_xfa_object.$getTemplateRoot](); + + if (root[_xfa_object.$extra].firstUnsplittable === null) { + root[_xfa_object.$extra].firstUnsplittable = node; + root[_xfa_object.$extra].noLayoutFailure = true; + } +} + +function unsetFirstUnsplittable(node) { + const root = node[_xfa_object.$getTemplateRoot](); + + if (root[_xfa_object.$extra].firstUnsplittable === node) { + root[_xfa_object.$extra].noLayoutFailure = false; + } +} + +function handleBreak(node) { + if (node[_xfa_object.$extra]) { + return false; + } + + node[_xfa_object.$extra] = Object.create(null); + + if (node.targetType === "auto") { + return false; + } + + const root = node[_xfa_object.$getTemplateRoot](); + + let target = null; + + if (node.target) { + target = root[_xfa_object.$searchNode](node.target, node[_xfa_object.$getParent]()); + + if (!target) { + return false; + } + + target = target[0]; + } + + const { + currentPageArea, + currentContentArea + } = root[_xfa_object.$extra]; + + if (node.targetType === "pageArea") { + if (!(target instanceof PageArea)) { + target = null; + } + + if (node.startNew) { + node[_xfa_object.$extra].target = target || currentPageArea; + return true; + } else if (target && target !== currentPageArea) { + node[_xfa_object.$extra].target = target; + return true; + } + + return false; + } + + if (!(target instanceof ContentArea)) { + target = null; + } + + const pageArea = target && target[_xfa_object.$getParent](); + + let index; + let nextPageArea = pageArea; + + if (node.startNew) { + if (target) { + const contentAreas = pageArea.contentArea.children; + const indexForCurrent = contentAreas.indexOf(currentContentArea); + const indexForTarget = contentAreas.indexOf(target); + + if (indexForCurrent !== -1 && indexForCurrent < indexForTarget) { + nextPageArea = null; + } + + index = indexForTarget - 1; + } else { + index = currentPageArea.contentArea.children.indexOf(currentContentArea); + } + } else if (target && target !== currentContentArea) { + const contentAreas = pageArea.contentArea.children; + index = contentAreas.indexOf(target) - 1; + nextPageArea = pageArea === currentPageArea ? null : pageArea; + } else { + return false; + } + + node[_xfa_object.$extra].target = nextPageArea; + node[_xfa_object.$extra].index = index; + return true; +} + +function handleOverflow(node, extraNode, space) { + const root = node[_xfa_object.$getTemplateRoot](); + + const saved = root[_xfa_object.$extra].noLayoutFailure; + const savedMethod = extraNode[_xfa_object.$getSubformParent]; + + extraNode[_xfa_object.$getSubformParent] = () => node; + + root[_xfa_object.$extra].noLayoutFailure = true; + + const res = extraNode[_xfa_object.$toHTML](space); + + node[_xfa_object.$addHTML](res.html, res.bbox); + + root[_xfa_object.$extra].noLayoutFailure = saved; + extraNode[_xfa_object.$getSubformParent] = savedMethod; +} + +class AppearanceFilter extends _xfa_object.StringObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "appearanceFilter"); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Arc extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "arc", true); + this.circular = (0, _utils.getInteger)({ + data: attributes.circular, + defaultValue: 0, + validate: x => x === 1 + }); + this.hand = (0, _utils.getStringOption)(attributes.hand, ["even", "left", "right"]); + this.id = attributes.id || ""; + this.startAngle = (0, _utils.getFloat)({ + data: attributes.startAngle, + defaultValue: 0, + validate: x => true + }); + this.sweepAngle = (0, _utils.getFloat)({ + data: attributes.sweepAngle, + defaultValue: 360, + validate: x => true + }); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.edge = null; + this.fill = null; + } + + [_xfa_object.$toHTML]() { + const edge = this.edge || new Edge({}); + + const edgeStyle = edge[_xfa_object.$toStyle](); + + const style = Object.create(null); + + if (this.fill && this.fill.presence === "visible") { + Object.assign(style, this.fill[_xfa_object.$toStyle]()); + } else { + style.fill = "transparent"; + } + + style.strokeWidth = (0, _html_utils.measureToString)(edge.presence === "visible" ? edge.thickness : 0); + style.stroke = edgeStyle.color; + let arc; + const attributes = { + xmlns: SVG_NS, + style: { + width: "100%", + height: "100%", + overflow: "visible" + } + }; + + if (this.sweepAngle === 360) { + arc = { + name: "ellipse", + attributes: { + xmlns: SVG_NS, + cx: "50%", + cy: "50%", + rx: "50%", + ry: "50%", + style + } + }; + } else { + const startAngle = this.startAngle * Math.PI / 180; + const sweepAngle = this.sweepAngle * Math.PI / 180; + const largeArc = this.sweepAngle > 180 ? 1 : 0; + const [x1, y1, x2, y2] = [50 * (1 + Math.cos(startAngle)), 50 * (1 - Math.sin(startAngle)), 50 * (1 + Math.cos(startAngle + sweepAngle)), 50 * (1 - Math.sin(startAngle + sweepAngle))]; + arc = { + name: "path", + attributes: { + xmlns: SVG_NS, + d: `M ${x1} ${y1} A 50 50 0 ${largeArc} 0 ${x2} ${y2}`, + vectorEffect: "non-scaling-stroke", + style + } + }; + Object.assign(attributes, { + viewBox: "0 0 100 100", + preserveAspectRatio: "none" + }); + } + + const svg = { + name: "svg", + children: [arc], + attributes + }; + + const parent = this[_xfa_object.$getParent]()[_xfa_object.$getParent](); + + if (hasMargin(parent)) { + return _utils.HTMLResult.success({ + name: "div", + attributes: { + style: { + display: "inline", + width: "100%", + height: "100%" + } + }, + children: [svg] + }); + } + + svg.attributes.style.position = "absolute"; + return _utils.HTMLResult.success(svg); + } + +} + +class Area extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "area", true); + this.colSpan = (0, _utils.getInteger)({ + data: attributes.colSpan, + defaultValue: 1, + validate: n => n >= 1 || n === -1 + }); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.relevant = (0, _utils.getRelevant)(attributes.relevant); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.x = (0, _utils.getMeasurement)(attributes.x, "0pt"); + this.y = (0, _utils.getMeasurement)(attributes.y, "0pt"); + this.desc = null; + this.extras = null; + this.area = new _xfa_object.XFAObjectArray(); + this.draw = new _xfa_object.XFAObjectArray(); + this.exObject = new _xfa_object.XFAObjectArray(); + this.exclGroup = new _xfa_object.XFAObjectArray(); + this.field = new _xfa_object.XFAObjectArray(); + this.subform = new _xfa_object.XFAObjectArray(); + this.subformSet = new _xfa_object.XFAObjectArray(); + } + + *[_xfa_object.$getContainedChildren]() { + yield* getContainedChildren(this); + } + + [_xfa_object.$isTransparent]() { + return true; + } + + [_xfa_object.$isBindable]() { + return true; + } + + [_xfa_object.$addHTML](html, bbox) { + const [x, y, w, h] = bbox; + this[_xfa_object.$extra].width = Math.max(this[_xfa_object.$extra].width, x + w); + this[_xfa_object.$extra].height = Math.max(this[_xfa_object.$extra].height, y + h); + + this[_xfa_object.$extra].children.push(html); + } + + [_xfa_object.$getAvailableSpace]() { + return this[_xfa_object.$extra].availableSpace; + } + + [_xfa_object.$toHTML](availableSpace) { + const style = (0, _html_utils.toStyle)(this, "position"); + const attributes = { + style, + id: this[_xfa_object.$uid], + class: ["xfaArea"] + }; + + if ((0, _html_utils.isPrintOnly)(this)) { + attributes.class.push("xfaPrintOnly"); + } + + if (this.name) { + attributes.xfaName = this.name; + } + + const children = []; + this[_xfa_object.$extra] = { + children, + width: 0, + height: 0, + availableSpace + }; + + const result = this[_xfa_object.$childrenToHTML]({ + filter: new Set(["area", "draw", "field", "exclGroup", "subform", "subformSet"]), + include: true + }); + + if (!result.success) { + if (result.isBreak()) { + return result; + } + + delete this[_xfa_object.$extra]; + return _utils.HTMLResult.FAILURE; + } + + style.width = (0, _html_utils.measureToString)(this[_xfa_object.$extra].width); + style.height = (0, _html_utils.measureToString)(this[_xfa_object.$extra].height); + const html = { + name: "div", + attributes, + children + }; + const bbox = [this.x, this.y, this[_xfa_object.$extra].width, this[_xfa_object.$extra].height]; + delete this[_xfa_object.$extra]; + return _utils.HTMLResult.success(html, bbox); + } + +} + +class Assist extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "assist", true); + this.id = attributes.id || ""; + this.role = attributes.role || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.speak = null; + this.toolTip = null; + } + + [_xfa_object.$toHTML]() { + return this.toolTip && this.toolTip[_xfa_object.$content] ? this.toolTip[_xfa_object.$content] : null; + } + +} + +class Barcode extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "barcode", true); + this.charEncoding = (0, _utils.getKeyword)({ + data: attributes.charEncoding ? attributes.charEncoding.toLowerCase() : "", + defaultValue: "", + validate: k => ["utf-8", "big-five", "fontspecific", "gbk", "gb-18030", "gb-2312", "ksc-5601", "none", "shift-jis", "ucs-2", "utf-16"].includes(k) || k.match(/iso-8859-\d{2}/) + }); + this.checksum = (0, _utils.getStringOption)(attributes.checksum, ["none", "1mod10", "1mod10_1mod11", "2mod10", "auto"]); + this.dataColumnCount = (0, _utils.getInteger)({ + data: attributes.dataColumnCount, + defaultValue: -1, + validate: x => x >= 0 + }); + this.dataLength = (0, _utils.getInteger)({ + data: attributes.dataLength, + defaultValue: -1, + validate: x => x >= 0 + }); + this.dataPrep = (0, _utils.getStringOption)(attributes.dataPrep, ["none", "flateCompress"]); + this.dataRowCount = (0, _utils.getInteger)({ + data: attributes.dataRowCount, + defaultValue: -1, + validate: x => x >= 0 + }); + this.endChar = attributes.endChar || ""; + this.errorCorrectionLevel = (0, _utils.getInteger)({ + data: attributes.errorCorrectionLevel, + defaultValue: -1, + validate: x => x >= 0 && x <= 8 + }); + this.id = attributes.id || ""; + this.moduleHeight = (0, _utils.getMeasurement)(attributes.moduleHeight, "5mm"); + this.moduleWidth = (0, _utils.getMeasurement)(attributes.moduleWidth, "0.25mm"); + this.printCheckDigit = (0, _utils.getInteger)({ + data: attributes.printCheckDigit, + defaultValue: 0, + validate: x => x === 1 + }); + this.rowColumnRatio = (0, _utils.getRatio)(attributes.rowColumnRatio); + this.startChar = attributes.startChar || ""; + this.textLocation = (0, _utils.getStringOption)(attributes.textLocation, ["below", "above", "aboveEmbedded", "belowEmbedded", "none"]); + this.truncate = (0, _utils.getInteger)({ + data: attributes.truncate, + defaultValue: 0, + validate: x => x === 1 + }); + this.type = (0, _utils.getStringOption)(attributes.type ? attributes.type.toLowerCase() : "", ["aztec", "codabar", "code2of5industrial", "code2of5interleaved", "code2of5matrix", "code2of5standard", "code3of9", "code3of9extended", "code11", "code49", "code93", "code128", "code128a", "code128b", "code128c", "code128sscc", "datamatrix", "ean8", "ean8add2", "ean8add5", "ean13", "ean13add2", "ean13add5", "ean13pwcd", "fim", "logmars", "maxicode", "msi", "pdf417", "pdf417macro", "plessey", "postauscust2", "postauscust3", "postausreplypaid", "postausstandard", "postukrm4scc", "postusdpbc", "postusimb", "postusstandard", "postus5zip", "qrcode", "rfid", "rss14", "rss14expanded", "rss14limited", "rss14stacked", "rss14stackedomni", "rss14truncated", "telepen", "ucc128", "ucc128random", "ucc128sscc", "upca", "upcaadd2", "upcaadd5", "upcapwcd", "upce", "upceadd2", "upceadd5", "upcean2", "upcean5", "upsmaxicode"]); + this.upsMode = (0, _utils.getStringOption)(attributes.upsMode, ["usCarrier", "internationalCarrier", "secureSymbol", "standardSymbol"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.wideNarrowRatio = (0, _utils.getRatio)(attributes.wideNarrowRatio); + this.encrypt = null; + this.extras = null; + } + +} + +class Bind extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "bind", true); + this.match = (0, _utils.getStringOption)(attributes.match, ["once", "dataRef", "global", "none"]); + this.ref = attributes.ref || ""; + this.picture = null; + } + +} + +class BindItems extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "bindItems"); + this.connection = attributes.connection || ""; + this.labelRef = attributes.labelRef || ""; + this.ref = attributes.ref || ""; + this.valueRef = attributes.valueRef || ""; + } + +} + +exports.BindItems = BindItems; + +class Bookend extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "bookend"); + this.id = attributes.id || ""; + this.leader = attributes.leader || ""; + this.trailer = attributes.trailer || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class BooleanElement extends _xfa_object.Option01 { + constructor(attributes) { + super(TEMPLATE_NS_ID, "boolean"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + + [_xfa_object.$toHTML](availableSpace) { + return valueToHtml(this[_xfa_object.$content] === 1 ? "1" : "0"); + } + +} + +class Border extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "border", true); + this.break = (0, _utils.getStringOption)(attributes.break, ["close", "open"]); + this.hand = (0, _utils.getStringOption)(attributes.hand, ["even", "left", "right"]); + this.id = attributes.id || ""; + this.presence = (0, _utils.getStringOption)(attributes.presence, ["visible", "hidden", "inactive", "invisible"]); + this.relevant = (0, _utils.getRelevant)(attributes.relevant); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.corner = new _xfa_object.XFAObjectArray(4); + this.edge = new _xfa_object.XFAObjectArray(4); + this.extras = null; + this.fill = null; + this.margin = null; + } + + [_xfa_object.$getExtra]() { + if (!this[_xfa_object.$extra]) { + const edges = this.edge.children.slice(); + + if (edges.length < 4) { + const defaultEdge = edges.at(-1) || new Edge({}); + + for (let i = edges.length; i < 4; i++) { + edges.push(defaultEdge); + } + } + + const widths = edges.map(edge => edge.thickness); + const insets = [0, 0, 0, 0]; + + if (this.margin) { + insets[0] = this.margin.topInset; + insets[1] = this.margin.rightInset; + insets[2] = this.margin.bottomInset; + insets[3] = this.margin.leftInset; + } + + this[_xfa_object.$extra] = { + widths, + insets, + edges + }; + } + + return this[_xfa_object.$extra]; + } + + [_xfa_object.$toStyle]() { + const { + edges + } = this[_xfa_object.$getExtra](); + + const edgeStyles = edges.map(node => { + const style = node[_xfa_object.$toStyle](); + + style.color = style.color || "#000000"; + return style; + }); + const style = Object.create(null); + + if (this.margin) { + Object.assign(style, this.margin[_xfa_object.$toStyle]()); + } + + if (this.fill && this.fill.presence === "visible") { + Object.assign(style, this.fill[_xfa_object.$toStyle]()); + } + + if (this.corner.children.some(node => node.radius !== 0)) { + const cornerStyles = this.corner.children.map(node => node[_xfa_object.$toStyle]()); + + if (cornerStyles.length === 2 || cornerStyles.length === 3) { + const last = cornerStyles.at(-1); + + for (let i = cornerStyles.length; i < 4; i++) { + cornerStyles.push(last); + } + } + + style.borderRadius = cornerStyles.map(s => s.radius).join(" "); + } + + switch (this.presence) { + case "invisible": + case "hidden": + style.borderStyle = ""; + break; + + case "inactive": + style.borderStyle = "none"; + break; + + default: + style.borderStyle = edgeStyles.map(s => s.style).join(" "); + break; + } + + style.borderWidth = edgeStyles.map(s => s.width).join(" "); + style.borderColor = edgeStyles.map(s => s.color).join(" "); + return style; + } + +} + +class Break extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "break", true); + this.after = (0, _utils.getStringOption)(attributes.after, ["auto", "contentArea", "pageArea", "pageEven", "pageOdd"]); + this.afterTarget = attributes.afterTarget || ""; + this.before = (0, _utils.getStringOption)(attributes.before, ["auto", "contentArea", "pageArea", "pageEven", "pageOdd"]); + this.beforeTarget = attributes.beforeTarget || ""; + this.bookendLeader = attributes.bookendLeader || ""; + this.bookendTrailer = attributes.bookendTrailer || ""; + this.id = attributes.id || ""; + this.overflowLeader = attributes.overflowLeader || ""; + this.overflowTarget = attributes.overflowTarget || ""; + this.overflowTrailer = attributes.overflowTrailer || ""; + this.startNew = (0, _utils.getInteger)({ + data: attributes.startNew, + defaultValue: 0, + validate: x => x === 1 + }); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + } + +} + +class BreakAfter extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "breakAfter", true); + this.id = attributes.id || ""; + this.leader = attributes.leader || ""; + this.startNew = (0, _utils.getInteger)({ + data: attributes.startNew, + defaultValue: 0, + validate: x => x === 1 + }); + this.target = attributes.target || ""; + this.targetType = (0, _utils.getStringOption)(attributes.targetType, ["auto", "contentArea", "pageArea"]); + this.trailer = attributes.trailer || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.script = null; + } + +} + +class BreakBefore extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "breakBefore", true); + this.id = attributes.id || ""; + this.leader = attributes.leader || ""; + this.startNew = (0, _utils.getInteger)({ + data: attributes.startNew, + defaultValue: 0, + validate: x => x === 1 + }); + this.target = attributes.target || ""; + this.targetType = (0, _utils.getStringOption)(attributes.targetType, ["auto", "contentArea", "pageArea"]); + this.trailer = attributes.trailer || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.script = null; + } + + [_xfa_object.$toHTML](availableSpace) { + this[_xfa_object.$extra] = {}; + return _utils.HTMLResult.FAILURE; + } + +} + +class Button extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "button", true); + this.highlight = (0, _utils.getStringOption)(attributes.highlight, ["inverted", "none", "outline", "push"]); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + } + + [_xfa_object.$toHTML](availableSpace) { + const parent = this[_xfa_object.$getParent](); + + const grandpa = parent[_xfa_object.$getParent](); + + const htmlButton = { + name: "button", + attributes: { + id: this[_xfa_object.$uid], + class: ["xfaButton"], + style: {} + }, + children: [] + }; + + for (const event of grandpa.event.children) { + if (event.activity !== "click" || !event.script) { + continue; + } + + const jsURL = (0, _core_utils.recoverJsURL)(event.script[_xfa_object.$content]); + + if (!jsURL) { + continue; + } + + const href = (0, _html_utils.fixURL)(jsURL.url); + + if (!href) { + continue; + } + + htmlButton.children.push({ + name: "a", + attributes: { + id: "link" + this[_xfa_object.$uid], + href, + newWindow: jsURL.newWindow, + class: ["xfaLink"], + style: {} + }, + children: [] + }); + } + + return _utils.HTMLResult.success(htmlButton); + } + +} + +class Calculate extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "calculate", true); + this.id = attributes.id || ""; + this.override = (0, _utils.getStringOption)(attributes.override, ["disabled", "error", "ignore", "warning"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + this.message = null; + this.script = null; + } + +} + +class Caption extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "caption", true); + this.id = attributes.id || ""; + this.placement = (0, _utils.getStringOption)(attributes.placement, ["left", "bottom", "inline", "right", "top"]); + this.presence = (0, _utils.getStringOption)(attributes.presence, ["visible", "hidden", "inactive", "invisible"]); + this.reserve = Math.ceil((0, _utils.getMeasurement)(attributes.reserve)); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + this.font = null; + this.margin = null; + this.para = null; + this.value = null; + } + + [_xfa_object.$setValue](value) { + _setValue(this, value); + } + + [_xfa_object.$getExtra](availableSpace) { + if (!this[_xfa_object.$extra]) { + let { + width, + height + } = availableSpace; + + switch (this.placement) { + case "left": + case "right": + case "inline": + width = this.reserve <= 0 ? width : this.reserve; + break; + + case "top": + case "bottom": + height = this.reserve <= 0 ? height : this.reserve; + break; + } + + this[_xfa_object.$extra] = (0, _html_utils.layoutNode)(this, { + width, + height + }); + } + + return this[_xfa_object.$extra]; + } + + [_xfa_object.$toHTML](availableSpace) { + if (!this.value) { + return _utils.HTMLResult.EMPTY; + } + + this[_xfa_object.$pushPara](); + + const value = this.value[_xfa_object.$toHTML](availableSpace).html; + + if (!value) { + this[_xfa_object.$popPara](); + + return _utils.HTMLResult.EMPTY; + } + + const savedReserve = this.reserve; + + if (this.reserve <= 0) { + const { + w, + h + } = this[_xfa_object.$getExtra](availableSpace); + + switch (this.placement) { + case "left": + case "right": + case "inline": + this.reserve = w; + break; + + case "top": + case "bottom": + this.reserve = h; + break; + } + } + + const children = []; + + if (typeof value === "string") { + children.push({ + name: "#text", + value + }); + } else { + children.push(value); + } + + const style = (0, _html_utils.toStyle)(this, "font", "margin", "visibility"); + + switch (this.placement) { + case "left": + case "right": + if (this.reserve > 0) { + style.width = (0, _html_utils.measureToString)(this.reserve); + } + + break; + + case "top": + case "bottom": + if (this.reserve > 0) { + style.height = (0, _html_utils.measureToString)(this.reserve); + } + + break; + } + + (0, _html_utils.setPara)(this, null, value); + + this[_xfa_object.$popPara](); + + this.reserve = savedReserve; + return _utils.HTMLResult.success({ + name: "div", + attributes: { + style, + class: ["xfaCaption"] + }, + children + }); + } + +} + +class Certificate extends _xfa_object.StringObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "certificate"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Certificates extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "certificates", true); + this.credentialServerPolicy = (0, _utils.getStringOption)(attributes.credentialServerPolicy, ["optional", "required"]); + this.id = attributes.id || ""; + this.url = attributes.url || ""; + this.urlPolicy = attributes.urlPolicy || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.encryption = null; + this.issuers = null; + this.keyUsage = null; + this.oids = null; + this.signing = null; + this.subjectDNs = null; + } + +} + +class CheckButton extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "checkButton", true); + this.id = attributes.id || ""; + this.mark = (0, _utils.getStringOption)(attributes.mark, ["default", "check", "circle", "cross", "diamond", "square", "star"]); + this.shape = (0, _utils.getStringOption)(attributes.shape, ["square", "round"]); + this.size = (0, _utils.getMeasurement)(attributes.size, "10pt"); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.border = null; + this.extras = null; + this.margin = null; + } + + [_xfa_object.$toHTML](availableSpace) { + const style = (0, _html_utils.toStyle)("margin"); + const size = (0, _html_utils.measureToString)(this.size); + style.width = style.height = size; + let type; + let className; + let groupId; + + const field = this[_xfa_object.$getParent]()[_xfa_object.$getParent](); + + const items = field.items.children.length && field.items.children[0][_xfa_object.$toHTML]().html || []; + const exportedValue = { + on: (items[0] !== undefined ? items[0] : "on").toString(), + off: (items[1] !== undefined ? items[1] : "off").toString() + }; + const value = field.value && field.value[_xfa_object.$text]() || "off"; + const checked = value === exportedValue.on || undefined; + + const container = field[_xfa_object.$getSubformParent](); + + const fieldId = field[_xfa_object.$uid]; + let dataId; + + if (container instanceof ExclGroup) { + groupId = container[_xfa_object.$uid]; + type = "radio"; + className = "xfaRadio"; + dataId = container[_xfa_object.$data] && container[_xfa_object.$data][_xfa_object.$uid] || container[_xfa_object.$uid]; + } else { + type = "checkbox"; + className = "xfaCheckbox"; + dataId = field[_xfa_object.$data] && field[_xfa_object.$data][_xfa_object.$uid] || field[_xfa_object.$uid]; + } + + const input = { + name: "input", + attributes: { + class: [className], + style, + fieldId, + dataId, + type, + checked, + xfaOn: exportedValue.on, + xfaOff: exportedValue.off, + "aria-label": ariaLabel(field), + "aria-required": false + } + }; + + if (groupId) { + input.attributes.name = groupId; + } + + if (isRequired(field)) { + input.attributes["aria-required"] = true; + input.attributes.required = true; + } + + return _utils.HTMLResult.success({ + name: "label", + attributes: { + class: ["xfaLabel"] + }, + children: [input] + }); + } + +} + +class ChoiceList extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "choiceList", true); + this.commitOn = (0, _utils.getStringOption)(attributes.commitOn, ["select", "exit"]); + this.id = attributes.id || ""; + this.open = (0, _utils.getStringOption)(attributes.open, ["userControl", "always", "multiSelect", "onEntry"]); + this.textEntry = (0, _utils.getInteger)({ + data: attributes.textEntry, + defaultValue: 0, + validate: x => x === 1 + }); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.border = null; + this.extras = null; + this.margin = null; + } + + [_xfa_object.$toHTML](availableSpace) { + const style = (0, _html_utils.toStyle)(this, "border", "margin"); + + const ui = this[_xfa_object.$getParent](); + + const field = ui[_xfa_object.$getParent](); + + const fontSize = field.font && field.font.size || 10; + const optionStyle = { + fontSize: `calc(${fontSize}px * var(--scale-factor))` + }; + const children = []; + + if (field.items.children.length > 0) { + const items = field.items; + let displayedIndex = 0; + let saveIndex = 0; + + if (items.children.length === 2) { + displayedIndex = items.children[0].save; + saveIndex = 1 - displayedIndex; + } + + const displayed = items.children[displayedIndex][_xfa_object.$toHTML]().html; + + const values = items.children[saveIndex][_xfa_object.$toHTML]().html; + + let selected = false; + const value = field.value && field.value[_xfa_object.$text]() || ""; + + for (let i = 0, ii = displayed.length; i < ii; i++) { + const option = { + name: "option", + attributes: { + value: values[i] || displayed[i], + style: optionStyle + }, + value: displayed[i] + }; + + if (values[i] === value) { + option.attributes.selected = selected = true; + } + + children.push(option); + } + + if (!selected) { + children.splice(0, 0, { + name: "option", + attributes: { + hidden: true, + selected: true + }, + value: " " + }); + } + } + + const selectAttributes = { + class: ["xfaSelect"], + fieldId: field[_xfa_object.$uid], + dataId: field[_xfa_object.$data] && field[_xfa_object.$data][_xfa_object.$uid] || field[_xfa_object.$uid], + style, + "aria-label": ariaLabel(field), + "aria-required": false + }; + + if (isRequired(field)) { + selectAttributes["aria-required"] = true; + selectAttributes.required = true; + } + + if (this.open === "multiSelect") { + selectAttributes.multiple = true; + } + + return _utils.HTMLResult.success({ + name: "label", + attributes: { + class: ["xfaLabel"] + }, + children: [{ + name: "select", + children, + attributes: selectAttributes + }] + }); + } + +} + +class Color extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "color", true); + this.cSpace = (0, _utils.getStringOption)(attributes.cSpace, ["SRGB"]); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.value = attributes.value ? (0, _utils.getColor)(attributes.value) : ""; + this.extras = null; + } + + [_xfa_object.$hasSettableValue]() { + return false; + } + + [_xfa_object.$toStyle]() { + return this.value ? _util.Util.makeHexColor(this.value.r, this.value.g, this.value.b) : null; + } + +} + +class Comb extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "comb"); + this.id = attributes.id || ""; + this.numberOfCells = (0, _utils.getInteger)({ + data: attributes.numberOfCells, + defaultValue: 0, + validate: x => x >= 0 + }); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Connect extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "connect", true); + this.connection = attributes.connection || ""; + this.id = attributes.id || ""; + this.ref = attributes.ref || ""; + this.usage = (0, _utils.getStringOption)(attributes.usage, ["exportAndImport", "exportOnly", "importOnly"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.picture = null; + } + +} + +class ContentArea extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "contentArea", true); + this.h = (0, _utils.getMeasurement)(attributes.h); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.relevant = (0, _utils.getRelevant)(attributes.relevant); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.w = (0, _utils.getMeasurement)(attributes.w); + this.x = (0, _utils.getMeasurement)(attributes.x, "0pt"); + this.y = (0, _utils.getMeasurement)(attributes.y, "0pt"); + this.desc = null; + this.extras = null; + } + + [_xfa_object.$toHTML](availableSpace) { + const left = (0, _html_utils.measureToString)(this.x); + const top = (0, _html_utils.measureToString)(this.y); + const style = { + left, + top, + width: (0, _html_utils.measureToString)(this.w), + height: (0, _html_utils.measureToString)(this.h) + }; + const classNames = ["xfaContentarea"]; + + if ((0, _html_utils.isPrintOnly)(this)) { + classNames.push("xfaPrintOnly"); + } + + return _utils.HTMLResult.success({ + name: "div", + children: [], + attributes: { + style, + class: classNames, + id: this[_xfa_object.$uid] + } + }); + } + +} + +class Corner extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "corner", true); + this.id = attributes.id || ""; + this.inverted = (0, _utils.getInteger)({ + data: attributes.inverted, + defaultValue: 0, + validate: x => x === 1 + }); + this.join = (0, _utils.getStringOption)(attributes.join, ["square", "round"]); + this.presence = (0, _utils.getStringOption)(attributes.presence, ["visible", "hidden", "inactive", "invisible"]); + this.radius = (0, _utils.getMeasurement)(attributes.radius); + this.stroke = (0, _utils.getStringOption)(attributes.stroke, ["solid", "dashDot", "dashDotDot", "dashed", "dotted", "embossed", "etched", "lowered", "raised"]); + this.thickness = (0, _utils.getMeasurement)(attributes.thickness, "0.5pt"); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.color = null; + this.extras = null; + } + + [_xfa_object.$toStyle]() { + const style = (0, _html_utils.toStyle)(this, "visibility"); + style.radius = (0, _html_utils.measureToString)(this.join === "square" ? 0 : this.radius); + return style; + } + +} + +class DateElement extends _xfa_object.ContentObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "date"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + + [_xfa_object.$finalize]() { + const date = this[_xfa_object.$content].trim(); + + this[_xfa_object.$content] = date ? new Date(date) : null; + } + + [_xfa_object.$toHTML](availableSpace) { + return valueToHtml(this[_xfa_object.$content] ? this[_xfa_object.$content].toString() : ""); + } + +} + +class DateTime extends _xfa_object.ContentObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "dateTime"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + + [_xfa_object.$finalize]() { + const date = this[_xfa_object.$content].trim(); + + this[_xfa_object.$content] = date ? new Date(date) : null; + } + + [_xfa_object.$toHTML](availableSpace) { + return valueToHtml(this[_xfa_object.$content] ? this[_xfa_object.$content].toString() : ""); + } + +} + +class DateTimeEdit extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "dateTimeEdit", true); + this.hScrollPolicy = (0, _utils.getStringOption)(attributes.hScrollPolicy, ["auto", "off", "on"]); + this.id = attributes.id || ""; + this.picker = (0, _utils.getStringOption)(attributes.picker, ["host", "none"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.border = null; + this.comb = null; + this.extras = null; + this.margin = null; + } + + [_xfa_object.$toHTML](availableSpace) { + const style = (0, _html_utils.toStyle)(this, "border", "font", "margin"); + + const field = this[_xfa_object.$getParent]()[_xfa_object.$getParent](); + + const html = { + name: "input", + attributes: { + type: "text", + fieldId: field[_xfa_object.$uid], + dataId: field[_xfa_object.$data] && field[_xfa_object.$data][_xfa_object.$uid] || field[_xfa_object.$uid], + class: ["xfaTextfield"], + style, + "aria-label": ariaLabel(field), + "aria-required": false + } + }; + + if (isRequired(field)) { + html.attributes["aria-required"] = true; + html.attributes.required = true; + } + + return _utils.HTMLResult.success({ + name: "label", + attributes: { + class: ["xfaLabel"] + }, + children: [html] + }); + } + +} + +class Decimal extends _xfa_object.ContentObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "decimal"); + this.fracDigits = (0, _utils.getInteger)({ + data: attributes.fracDigits, + defaultValue: 2, + validate: x => true + }); + this.id = attributes.id || ""; + this.leadDigits = (0, _utils.getInteger)({ + data: attributes.leadDigits, + defaultValue: -1, + validate: x => true + }); + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + + [_xfa_object.$finalize]() { + const number = parseFloat(this[_xfa_object.$content].trim()); + this[_xfa_object.$content] = isNaN(number) ? null : number; + } + + [_xfa_object.$toHTML](availableSpace) { + return valueToHtml(this[_xfa_object.$content] !== null ? this[_xfa_object.$content].toString() : ""); + } + +} + +class DefaultUi extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "defaultUi", true); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + } + +} + +class Desc extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "desc", true); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.boolean = new _xfa_object.XFAObjectArray(); + this.date = new _xfa_object.XFAObjectArray(); + this.dateTime = new _xfa_object.XFAObjectArray(); + this.decimal = new _xfa_object.XFAObjectArray(); + this.exData = new _xfa_object.XFAObjectArray(); + this.float = new _xfa_object.XFAObjectArray(); + this.image = new _xfa_object.XFAObjectArray(); + this.integer = new _xfa_object.XFAObjectArray(); + this.text = new _xfa_object.XFAObjectArray(); + this.time = new _xfa_object.XFAObjectArray(); + } + +} + +class DigestMethod extends _xfa_object.OptionObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "digestMethod", ["", "SHA1", "SHA256", "SHA512", "RIPEMD160"]); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class DigestMethods extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "digestMethods", true); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.digestMethod = new _xfa_object.XFAObjectArray(); + } + +} + +class Draw extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "draw", true); + this.anchorType = (0, _utils.getStringOption)(attributes.anchorType, ["topLeft", "bottomCenter", "bottomLeft", "bottomRight", "middleCenter", "middleLeft", "middleRight", "topCenter", "topRight"]); + this.colSpan = (0, _utils.getInteger)({ + data: attributes.colSpan, + defaultValue: 1, + validate: n => n >= 1 || n === -1 + }); + this.h = attributes.h ? (0, _utils.getMeasurement)(attributes.h) : ""; + this.hAlign = (0, _utils.getStringOption)(attributes.hAlign, ["left", "center", "justify", "justifyAll", "radix", "right"]); + this.id = attributes.id || ""; + this.locale = attributes.locale || ""; + this.maxH = (0, _utils.getMeasurement)(attributes.maxH, "0pt"); + this.maxW = (0, _utils.getMeasurement)(attributes.maxW, "0pt"); + this.minH = (0, _utils.getMeasurement)(attributes.minH, "0pt"); + this.minW = (0, _utils.getMeasurement)(attributes.minW, "0pt"); + this.name = attributes.name || ""; + this.presence = (0, _utils.getStringOption)(attributes.presence, ["visible", "hidden", "inactive", "invisible"]); + this.relevant = (0, _utils.getRelevant)(attributes.relevant); + this.rotate = (0, _utils.getInteger)({ + data: attributes.rotate, + defaultValue: 0, + validate: x => x % 90 === 0 + }); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.w = attributes.w ? (0, _utils.getMeasurement)(attributes.w) : ""; + this.x = (0, _utils.getMeasurement)(attributes.x, "0pt"); + this.y = (0, _utils.getMeasurement)(attributes.y, "0pt"); + this.assist = null; + this.border = null; + this.caption = null; + this.desc = null; + this.extras = null; + this.font = null; + this.keep = null; + this.margin = null; + this.para = null; + this.traversal = null; + this.ui = null; + this.value = null; + this.setProperty = new _xfa_object.XFAObjectArray(); + } + + [_xfa_object.$setValue](value) { + _setValue(this, value); + } + + [_xfa_object.$toHTML](availableSpace) { + setTabIndex(this); + + if (this.presence === "hidden" || this.presence === "inactive") { + return _utils.HTMLResult.EMPTY; + } + + (0, _html_utils.fixDimensions)(this); + + this[_xfa_object.$pushPara](); + + const savedW = this.w; + const savedH = this.h; + const { + w, + h, + isBroken + } = (0, _html_utils.layoutNode)(this, availableSpace); + + if (w && this.w === "") { + if (isBroken && this[_xfa_object.$getSubformParent]()[_xfa_object.$isThereMoreWidth]()) { + this[_xfa_object.$popPara](); + + return _utils.HTMLResult.FAILURE; + } + + this.w = w; + } + + if (h && this.h === "") { + this.h = h; + } + + setFirstUnsplittable(this); + + if (!(0, _layout.checkDimensions)(this, availableSpace)) { + this.w = savedW; + this.h = savedH; + + this[_xfa_object.$popPara](); + + return _utils.HTMLResult.FAILURE; + } + + unsetFirstUnsplittable(this); + const style = (0, _html_utils.toStyle)(this, "font", "hAlign", "dimensions", "position", "presence", "rotate", "anchorType", "border", "margin"); + (0, _html_utils.setMinMaxDimensions)(this, style); + + if (style.margin) { + style.padding = style.margin; + delete style.margin; + } + + const classNames = ["xfaDraw"]; + + if (this.font) { + classNames.push("xfaFont"); + } + + if ((0, _html_utils.isPrintOnly)(this)) { + classNames.push("xfaPrintOnly"); + } + + const attributes = { + style, + id: this[_xfa_object.$uid], + class: classNames + }; + + if (this.name) { + attributes.xfaName = this.name; + } + + const html = { + name: "div", + attributes, + children: [] + }; + applyAssist(this, attributes); + const bbox = (0, _html_utils.computeBbox)(this, html, availableSpace); + const value = this.value ? this.value[_xfa_object.$toHTML](availableSpace).html : null; + + if (value === null) { + this.w = savedW; + this.h = savedH; + + this[_xfa_object.$popPara](); + + return _utils.HTMLResult.success((0, _html_utils.createWrapper)(this, html), bbox); + } + + html.children.push(value); + (0, _html_utils.setPara)(this, style, value); + this.w = savedW; + this.h = savedH; + + this[_xfa_object.$popPara](); + + return _utils.HTMLResult.success((0, _html_utils.createWrapper)(this, html), bbox); + } + +} + +class Edge extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "edge", true); + this.cap = (0, _utils.getStringOption)(attributes.cap, ["square", "butt", "round"]); + this.id = attributes.id || ""; + this.presence = (0, _utils.getStringOption)(attributes.presence, ["visible", "hidden", "inactive", "invisible"]); + this.stroke = (0, _utils.getStringOption)(attributes.stroke, ["solid", "dashDot", "dashDotDot", "dashed", "dotted", "embossed", "etched", "lowered", "raised"]); + this.thickness = (0, _utils.getMeasurement)(attributes.thickness, "0.5pt"); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.color = null; + this.extras = null; + } + + [_xfa_object.$toStyle]() { + const style = (0, _html_utils.toStyle)(this, "visibility"); + Object.assign(style, { + linecap: this.cap, + width: (0, _html_utils.measureToString)(this.thickness), + color: this.color ? this.color[_xfa_object.$toStyle]() : "#000000", + style: "" + }); + + if (this.presence !== "visible") { + style.style = "none"; + } else { + switch (this.stroke) { + case "solid": + style.style = "solid"; + break; + + case "dashDot": + style.style = "dashed"; + break; + + case "dashDotDot": + style.style = "dashed"; + break; + + case "dashed": + style.style = "dashed"; + break; + + case "dotted": + style.style = "dotted"; + break; + + case "embossed": + style.style = "ridge"; + break; + + case "etched": + style.style = "groove"; + break; + + case "lowered": + style.style = "inset"; + break; + + case "raised": + style.style = "outset"; + break; + } + } + + return style; + } + +} + +class Encoding extends _xfa_object.OptionObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "encoding", ["adbe.x509.rsa_sha1", "adbe.pkcs7.detached", "adbe.pkcs7.sha1"]); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Encodings extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "encodings", true); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.encoding = new _xfa_object.XFAObjectArray(); + } + +} + +class Encrypt extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "encrypt", true); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.certificate = null; + } + +} + +class EncryptData extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "encryptData", true); + this.id = attributes.id || ""; + this.operation = (0, _utils.getStringOption)(attributes.operation, ["encrypt", "decrypt"]); + this.target = attributes.target || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.filter = null; + this.manifest = null; + } + +} + +class Encryption extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "encryption", true); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.certificate = new _xfa_object.XFAObjectArray(); + } + +} + +class EncryptionMethod extends _xfa_object.OptionObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "encryptionMethod", ["", "AES256-CBC", "TRIPLEDES-CBC", "AES128-CBC", "AES192-CBC"]); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class EncryptionMethods extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "encryptionMethods", true); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.encryptionMethod = new _xfa_object.XFAObjectArray(); + } + +} + +class Event extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "event", true); + this.activity = (0, _utils.getStringOption)(attributes.activity, ["click", "change", "docClose", "docReady", "enter", "exit", "full", "indexChange", "initialize", "mouseDown", "mouseEnter", "mouseExit", "mouseUp", "postExecute", "postOpen", "postPrint", "postSave", "postSign", "postSubmit", "preExecute", "preOpen", "prePrint", "preSave", "preSign", "preSubmit", "ready", "validationState"]); + this.id = attributes.id || ""; + this.listen = (0, _utils.getStringOption)(attributes.listen, ["refOnly", "refAndDescendents"]); + this.name = attributes.name || ""; + this.ref = attributes.ref || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + this.encryptData = null; + this.execute = null; + this.script = null; + this.signData = null; + this.submit = null; + } + +} + +class ExData extends _xfa_object.ContentObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "exData"); + this.contentType = attributes.contentType || ""; + this.href = attributes.href || ""; + this.id = attributes.id || ""; + this.maxLength = (0, _utils.getInteger)({ + data: attributes.maxLength, + defaultValue: -1, + validate: x => x >= -1 + }); + this.name = attributes.name || ""; + this.rid = attributes.rid || ""; + this.transferEncoding = (0, _utils.getStringOption)(attributes.transferEncoding, ["none", "base64", "package"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + + [_xfa_object.$isCDATAXml]() { + return this.contentType === "text/html"; + } + + [_xfa_object.$onChild](child) { + if (this.contentType === "text/html" && child[_xfa_object.$namespaceId] === _namespaces.NamespaceIds.xhtml.id) { + this[_xfa_object.$content] = child; + return true; + } + + if (this.contentType === "text/xml") { + this[_xfa_object.$content] = child; + return true; + } + + return false; + } + + [_xfa_object.$toHTML](availableSpace) { + if (this.contentType !== "text/html" || !this[_xfa_object.$content]) { + return _utils.HTMLResult.EMPTY; + } + + return this[_xfa_object.$content][_xfa_object.$toHTML](availableSpace); + } + +} + +class ExObject extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "exObject", true); + this.archive = attributes.archive || ""; + this.classId = attributes.classId || ""; + this.codeBase = attributes.codeBase || ""; + this.codeType = attributes.codeType || ""; + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + this.boolean = new _xfa_object.XFAObjectArray(); + this.date = new _xfa_object.XFAObjectArray(); + this.dateTime = new _xfa_object.XFAObjectArray(); + this.decimal = new _xfa_object.XFAObjectArray(); + this.exData = new _xfa_object.XFAObjectArray(); + this.exObject = new _xfa_object.XFAObjectArray(); + this.float = new _xfa_object.XFAObjectArray(); + this.image = new _xfa_object.XFAObjectArray(); + this.integer = new _xfa_object.XFAObjectArray(); + this.text = new _xfa_object.XFAObjectArray(); + this.time = new _xfa_object.XFAObjectArray(); + } + +} + +class ExclGroup extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "exclGroup", true); + this.access = (0, _utils.getStringOption)(attributes.access, ["open", "nonInteractive", "protected", "readOnly"]); + this.accessKey = attributes.accessKey || ""; + this.anchorType = (0, _utils.getStringOption)(attributes.anchorType, ["topLeft", "bottomCenter", "bottomLeft", "bottomRight", "middleCenter", "middleLeft", "middleRight", "topCenter", "topRight"]); + this.colSpan = (0, _utils.getInteger)({ + data: attributes.colSpan, + defaultValue: 1, + validate: n => n >= 1 || n === -1 + }); + this.h = attributes.h ? (0, _utils.getMeasurement)(attributes.h) : ""; + this.hAlign = (0, _utils.getStringOption)(attributes.hAlign, ["left", "center", "justify", "justifyAll", "radix", "right"]); + this.id = attributes.id || ""; + this.layout = (0, _utils.getStringOption)(attributes.layout, ["position", "lr-tb", "rl-row", "rl-tb", "row", "table", "tb"]); + this.maxH = (0, _utils.getMeasurement)(attributes.maxH, "0pt"); + this.maxW = (0, _utils.getMeasurement)(attributes.maxW, "0pt"); + this.minH = (0, _utils.getMeasurement)(attributes.minH, "0pt"); + this.minW = (0, _utils.getMeasurement)(attributes.minW, "0pt"); + this.name = attributes.name || ""; + this.presence = (0, _utils.getStringOption)(attributes.presence, ["visible", "hidden", "inactive", "invisible"]); + this.relevant = (0, _utils.getRelevant)(attributes.relevant); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.w = attributes.w ? (0, _utils.getMeasurement)(attributes.w) : ""; + this.x = (0, _utils.getMeasurement)(attributes.x, "0pt"); + this.y = (0, _utils.getMeasurement)(attributes.y, "0pt"); + this.assist = null; + this.bind = null; + this.border = null; + this.calculate = null; + this.caption = null; + this.desc = null; + this.extras = null; + this.margin = null; + this.para = null; + this.traversal = null; + this.validate = null; + this.connect = new _xfa_object.XFAObjectArray(); + this.event = new _xfa_object.XFAObjectArray(); + this.field = new _xfa_object.XFAObjectArray(); + this.setProperty = new _xfa_object.XFAObjectArray(); + } + + [_xfa_object.$isBindable]() { + return true; + } + + [_xfa_object.$hasSettableValue]() { + return true; + } + + [_xfa_object.$setValue](value) { + for (const field of this.field.children) { + if (!field.value) { + const nodeValue = new Value({}); + + field[_xfa_object.$appendChild](nodeValue); + + field.value = nodeValue; + } + + field.value[_xfa_object.$setValue](value); + } + } + + [_xfa_object.$isThereMoreWidth]() { + return this.layout.endsWith("-tb") && this[_xfa_object.$extra].attempt === 0 && this[_xfa_object.$extra].numberInLine > 0 || this[_xfa_object.$getParent]()[_xfa_object.$isThereMoreWidth](); + } + + [_xfa_object.$isSplittable]() { + const parent = this[_xfa_object.$getSubformParent](); + + if (!parent[_xfa_object.$isSplittable]()) { + return false; + } + + if (this[_xfa_object.$extra]._isSplittable !== undefined) { + return this[_xfa_object.$extra]._isSplittable; + } + + if (this.layout === "position" || this.layout.includes("row")) { + this[_xfa_object.$extra]._isSplittable = false; + return false; + } + + if (parent.layout && parent.layout.endsWith("-tb") && parent[_xfa_object.$extra].numberInLine !== 0) { + return false; + } + + this[_xfa_object.$extra]._isSplittable = true; + return true; + } + + [_xfa_object.$flushHTML]() { + return (0, _layout.flushHTML)(this); + } + + [_xfa_object.$addHTML](html, bbox) { + (0, _layout.addHTML)(this, html, bbox); + } + + [_xfa_object.$getAvailableSpace]() { + return (0, _layout.getAvailableSpace)(this); + } + + [_xfa_object.$toHTML](availableSpace) { + setTabIndex(this); + + if (this.presence === "hidden" || this.presence === "inactive" || this.h === 0 || this.w === 0) { + return _utils.HTMLResult.EMPTY; + } + + (0, _html_utils.fixDimensions)(this); + const children = []; + const attributes = { + id: this[_xfa_object.$uid], + class: [] + }; + (0, _html_utils.setAccess)(this, attributes.class); + + if (!this[_xfa_object.$extra]) { + this[_xfa_object.$extra] = Object.create(null); + } + + Object.assign(this[_xfa_object.$extra], { + children, + attributes, + attempt: 0, + line: null, + numberInLine: 0, + availableSpace: { + width: Math.min(this.w || Infinity, availableSpace.width), + height: Math.min(this.h || Infinity, availableSpace.height) + }, + width: 0, + height: 0, + prevHeight: 0, + currentWidth: 0 + }); + + const isSplittable = this[_xfa_object.$isSplittable](); + + if (!isSplittable) { + setFirstUnsplittable(this); + } + + if (!(0, _layout.checkDimensions)(this, availableSpace)) { + return _utils.HTMLResult.FAILURE; + } + + const filter = new Set(["field"]); + + if (this.layout.includes("row")) { + const columnWidths = this[_xfa_object.$getSubformParent]().columnWidths; + + if (Array.isArray(columnWidths) && columnWidths.length > 0) { + this[_xfa_object.$extra].columnWidths = columnWidths; + this[_xfa_object.$extra].currentColumn = 0; + } + } + + const style = (0, _html_utils.toStyle)(this, "anchorType", "dimensions", "position", "presence", "border", "margin", "hAlign"); + const classNames = ["xfaExclgroup"]; + const cl = (0, _html_utils.layoutClass)(this); + + if (cl) { + classNames.push(cl); + } + + if ((0, _html_utils.isPrintOnly)(this)) { + classNames.push("xfaPrintOnly"); + } + + attributes.style = style; + attributes.class = classNames; + + if (this.name) { + attributes.xfaName = this.name; + } + + this[_xfa_object.$pushPara](); + + const isLrTb = this.layout === "lr-tb" || this.layout === "rl-tb"; + const maxRun = isLrTb ? MAX_ATTEMPTS_FOR_LRTB_LAYOUT : 1; + + for (; this[_xfa_object.$extra].attempt < maxRun; this[_xfa_object.$extra].attempt++) { + if (isLrTb && this[_xfa_object.$extra].attempt === MAX_ATTEMPTS_FOR_LRTB_LAYOUT - 1) { + this[_xfa_object.$extra].numberInLine = 0; + } + + const result = this[_xfa_object.$childrenToHTML]({ + filter, + include: true + }); + + if (result.success) { + break; + } + + if (result.isBreak()) { + this[_xfa_object.$popPara](); + + return result; + } + + if (isLrTb && this[_xfa_object.$extra].attempt === 0 && this[_xfa_object.$extra].numberInLine === 0 && !this[_xfa_object.$getTemplateRoot]()[_xfa_object.$extra].noLayoutFailure) { + this[_xfa_object.$extra].attempt = maxRun; + break; + } + } + + this[_xfa_object.$popPara](); + + if (!isSplittable) { + unsetFirstUnsplittable(this); + } + + if (this[_xfa_object.$extra].attempt === maxRun) { + if (!isSplittable) { + delete this[_xfa_object.$extra]; + } + + return _utils.HTMLResult.FAILURE; + } + + let marginH = 0; + let marginV = 0; + + if (this.margin) { + marginH = this.margin.leftInset + this.margin.rightInset; + marginV = this.margin.topInset + this.margin.bottomInset; + } + + const width = Math.max(this[_xfa_object.$extra].width + marginH, this.w || 0); + const height = Math.max(this[_xfa_object.$extra].height + marginV, this.h || 0); + const bbox = [this.x, this.y, width, height]; + + if (this.w === "") { + style.width = (0, _html_utils.measureToString)(width); + } + + if (this.h === "") { + style.height = (0, _html_utils.measureToString)(height); + } + + const html = { + name: "div", + attributes, + children + }; + applyAssist(this, attributes); + delete this[_xfa_object.$extra]; + return _utils.HTMLResult.success((0, _html_utils.createWrapper)(this, html), bbox); + } + +} + +class Execute extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "execute"); + this.connection = attributes.connection || ""; + this.executeType = (0, _utils.getStringOption)(attributes.executeType, ["import", "remerge"]); + this.id = attributes.id || ""; + this.runAt = (0, _utils.getStringOption)(attributes.runAt, ["client", "both", "server"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Extras extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "extras", true); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.boolean = new _xfa_object.XFAObjectArray(); + this.date = new _xfa_object.XFAObjectArray(); + this.dateTime = new _xfa_object.XFAObjectArray(); + this.decimal = new _xfa_object.XFAObjectArray(); + this.exData = new _xfa_object.XFAObjectArray(); + this.extras = new _xfa_object.XFAObjectArray(); + this.float = new _xfa_object.XFAObjectArray(); + this.image = new _xfa_object.XFAObjectArray(); + this.integer = new _xfa_object.XFAObjectArray(); + this.text = new _xfa_object.XFAObjectArray(); + this.time = new _xfa_object.XFAObjectArray(); + } + +} + +class Field extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "field", true); + this.access = (0, _utils.getStringOption)(attributes.access, ["open", "nonInteractive", "protected", "readOnly"]); + this.accessKey = attributes.accessKey || ""; + this.anchorType = (0, _utils.getStringOption)(attributes.anchorType, ["topLeft", "bottomCenter", "bottomLeft", "bottomRight", "middleCenter", "middleLeft", "middleRight", "topCenter", "topRight"]); + this.colSpan = (0, _utils.getInteger)({ + data: attributes.colSpan, + defaultValue: 1, + validate: n => n >= 1 || n === -1 + }); + this.h = attributes.h ? (0, _utils.getMeasurement)(attributes.h) : ""; + this.hAlign = (0, _utils.getStringOption)(attributes.hAlign, ["left", "center", "justify", "justifyAll", "radix", "right"]); + this.id = attributes.id || ""; + this.locale = attributes.locale || ""; + this.maxH = (0, _utils.getMeasurement)(attributes.maxH, "0pt"); + this.maxW = (0, _utils.getMeasurement)(attributes.maxW, "0pt"); + this.minH = (0, _utils.getMeasurement)(attributes.minH, "0pt"); + this.minW = (0, _utils.getMeasurement)(attributes.minW, "0pt"); + this.name = attributes.name || ""; + this.presence = (0, _utils.getStringOption)(attributes.presence, ["visible", "hidden", "inactive", "invisible"]); + this.relevant = (0, _utils.getRelevant)(attributes.relevant); + this.rotate = (0, _utils.getInteger)({ + data: attributes.rotate, + defaultValue: 0, + validate: x => x % 90 === 0 + }); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.w = attributes.w ? (0, _utils.getMeasurement)(attributes.w) : ""; + this.x = (0, _utils.getMeasurement)(attributes.x, "0pt"); + this.y = (0, _utils.getMeasurement)(attributes.y, "0pt"); + this.assist = null; + this.bind = null; + this.border = null; + this.calculate = null; + this.caption = null; + this.desc = null; + this.extras = null; + this.font = null; + this.format = null; + this.items = new _xfa_object.XFAObjectArray(2); + this.keep = null; + this.margin = null; + this.para = null; + this.traversal = null; + this.ui = null; + this.validate = null; + this.value = null; + this.bindItems = new _xfa_object.XFAObjectArray(); + this.connect = new _xfa_object.XFAObjectArray(); + this.event = new _xfa_object.XFAObjectArray(); + this.setProperty = new _xfa_object.XFAObjectArray(); + } + + [_xfa_object.$isBindable]() { + return true; + } + + [_xfa_object.$setValue](value) { + _setValue(this, value); + } + + [_xfa_object.$toHTML](availableSpace) { + setTabIndex(this); + + if (!this.ui) { + this.ui = new Ui({}); + this.ui[_xfa_object.$globalData] = this[_xfa_object.$globalData]; + + this[_xfa_object.$appendChild](this.ui); + + let node; + + switch (this.items.children.length) { + case 0: + node = new TextEdit({}); + this.ui.textEdit = node; + break; + + case 1: + node = new CheckButton({}); + this.ui.checkButton = node; + break; + + case 2: + node = new ChoiceList({}); + this.ui.choiceList = node; + break; + } + + this.ui[_xfa_object.$appendChild](node); + } + + if (!this.ui || this.presence === "hidden" || this.presence === "inactive" || this.h === 0 || this.w === 0) { + return _utils.HTMLResult.EMPTY; + } + + if (this.caption) { + delete this.caption[_xfa_object.$extra]; + } + + this[_xfa_object.$pushPara](); + + const caption = this.caption ? this.caption[_xfa_object.$toHTML](availableSpace).html : null; + const savedW = this.w; + const savedH = this.h; + let marginH = 0; + let marginV = 0; + + if (this.margin) { + marginH = this.margin.leftInset + this.margin.rightInset; + marginV = this.margin.topInset + this.margin.bottomInset; + } + + let borderDims = null; + + if (this.w === "" || this.h === "") { + let width = null; + let height = null; + let uiW = 0; + let uiH = 0; + + if (this.ui.checkButton) { + uiW = uiH = this.ui.checkButton.size; + } else { + const { + w, + h + } = (0, _html_utils.layoutNode)(this, availableSpace); + + if (w !== null) { + uiW = w; + uiH = h; + } else { + uiH = (0, _fonts.getMetrics)(this.font, true).lineNoGap; + } + } + + borderDims = getBorderDims(this.ui[_xfa_object.$getExtra]()); + uiW += borderDims.w; + uiH += borderDims.h; + + if (this.caption) { + const { + w, + h, + isBroken + } = this.caption[_xfa_object.$getExtra](availableSpace); + + if (isBroken && this[_xfa_object.$getSubformParent]()[_xfa_object.$isThereMoreWidth]()) { + this[_xfa_object.$popPara](); + + return _utils.HTMLResult.FAILURE; + } + + width = w; + height = h; + + switch (this.caption.placement) { + case "left": + case "right": + case "inline": + width += uiW; + break; + + case "top": + case "bottom": + height += uiH; + break; + } + } else { + width = uiW; + height = uiH; + } + + if (width && this.w === "") { + width += marginH; + this.w = Math.min(this.maxW <= 0 ? Infinity : this.maxW, this.minW + 1 < width ? width : this.minW); + } + + if (height && this.h === "") { + height += marginV; + this.h = Math.min(this.maxH <= 0 ? Infinity : this.maxH, this.minH + 1 < height ? height : this.minH); + } + } + + this[_xfa_object.$popPara](); + + (0, _html_utils.fixDimensions)(this); + setFirstUnsplittable(this); + + if (!(0, _layout.checkDimensions)(this, availableSpace)) { + this.w = savedW; + this.h = savedH; + + this[_xfa_object.$popPara](); + + return _utils.HTMLResult.FAILURE; + } + + unsetFirstUnsplittable(this); + const style = (0, _html_utils.toStyle)(this, "font", "dimensions", "position", "rotate", "anchorType", "presence", "margin", "hAlign"); + (0, _html_utils.setMinMaxDimensions)(this, style); + const classNames = ["xfaField"]; + + if (this.font) { + classNames.push("xfaFont"); + } + + if ((0, _html_utils.isPrintOnly)(this)) { + classNames.push("xfaPrintOnly"); + } + + const attributes = { + style, + id: this[_xfa_object.$uid], + class: classNames + }; + + if (style.margin) { + style.padding = style.margin; + delete style.margin; + } + + (0, _html_utils.setAccess)(this, classNames); + + if (this.name) { + attributes.xfaName = this.name; + } + + const children = []; + const html = { + name: "div", + attributes, + children + }; + applyAssist(this, attributes); + const borderStyle = this.border ? this.border[_xfa_object.$toStyle]() : null; + const bbox = (0, _html_utils.computeBbox)(this, html, availableSpace); + + const ui = this.ui[_xfa_object.$toHTML]().html; + + if (!ui) { + Object.assign(style, borderStyle); + return _utils.HTMLResult.success((0, _html_utils.createWrapper)(this, html), bbox); + } + + if (this[_xfa_object.$tabIndex]) { + if (ui.children && ui.children[0]) { + ui.children[0].attributes.tabindex = this[_xfa_object.$tabIndex]; + } else { + ui.attributes.tabindex = this[_xfa_object.$tabIndex]; + } + } + + if (!ui.attributes.style) { + ui.attributes.style = Object.create(null); + } + + let aElement = null; + + if (this.ui.button) { + if (ui.children.length === 1) { + [aElement] = ui.children.splice(0, 1); + } + + Object.assign(ui.attributes.style, borderStyle); + } else { + Object.assign(style, borderStyle); + } + + children.push(ui); + + if (this.value) { + if (this.ui.imageEdit) { + ui.children.push(this.value[_xfa_object.$toHTML]().html); + } else if (!this.ui.button) { + let value = ""; + + if (this.value.exData) { + value = this.value.exData[_xfa_object.$text](); + } else if (this.value.text) { + value = this.value.text[_xfa_object.$getExtra](); + } else { + const htmlValue = this.value[_xfa_object.$toHTML]().html; + + if (htmlValue !== null) { + value = htmlValue.children[0].value; + } + } + + if (this.ui.textEdit && this.value.text && this.value.text.maxChars) { + ui.children[0].attributes.maxLength = this.value.text.maxChars; + } + + if (value) { + if (this.ui.numericEdit) { + value = parseFloat(value); + value = isNaN(value) ? "" : value.toString(); + } + + if (ui.children[0].name === "textarea") { + ui.children[0].attributes.textContent = value; + } else { + ui.children[0].attributes.value = value; + } + } + } + } + + if (!this.ui.imageEdit && ui.children && ui.children[0] && this.h) { + borderDims = borderDims || getBorderDims(this.ui[_xfa_object.$getExtra]()); + let captionHeight = 0; + + if (this.caption && ["top", "bottom"].includes(this.caption.placement)) { + captionHeight = this.caption.reserve; + + if (captionHeight <= 0) { + captionHeight = this.caption[_xfa_object.$getExtra](availableSpace).h; + } + + const inputHeight = this.h - captionHeight - marginV - borderDims.h; + ui.children[0].attributes.style.height = (0, _html_utils.measureToString)(inputHeight); + } else { + ui.children[0].attributes.style.height = "100%"; + } + } + + if (aElement) { + ui.children.push(aElement); + } + + if (!caption) { + if (ui.attributes.class) { + ui.attributes.class.push("xfaLeft"); + } + + this.w = savedW; + this.h = savedH; + return _utils.HTMLResult.success((0, _html_utils.createWrapper)(this, html), bbox); + } + + if (this.ui.button) { + if (style.padding) { + delete style.padding; + } + + if (caption.name === "div") { + caption.name = "span"; + } + + ui.children.push(caption); + return _utils.HTMLResult.success(html, bbox); + } else if (this.ui.checkButton) { + caption.attributes.class[0] = "xfaCaptionForCheckButton"; + } + + if (!ui.attributes.class) { + ui.attributes.class = []; + } + + ui.children.splice(0, 0, caption); + + switch (this.caption.placement) { + case "left": + ui.attributes.class.push("xfaLeft"); + break; + + case "right": + ui.attributes.class.push("xfaRight"); + break; + + case "top": + ui.attributes.class.push("xfaTop"); + break; + + case "bottom": + ui.attributes.class.push("xfaBottom"); + break; + + case "inline": + ui.attributes.class.push("xfaLeft"); + break; + } + + this.w = savedW; + this.h = savedH; + return _utils.HTMLResult.success((0, _html_utils.createWrapper)(this, html), bbox); + } + +} + +exports.Field = Field; + +class Fill extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "fill", true); + this.id = attributes.id || ""; + this.presence = (0, _utils.getStringOption)(attributes.presence, ["visible", "hidden", "inactive", "invisible"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.color = null; + this.extras = null; + this.linear = null; + this.pattern = null; + this.radial = null; + this.solid = null; + this.stipple = null; + } + + [_xfa_object.$toStyle]() { + const parent = this[_xfa_object.$getParent](); + + const grandpa = parent[_xfa_object.$getParent](); + + const ggrandpa = grandpa[_xfa_object.$getParent](); + + const style = Object.create(null); + let propName = "color"; + let altPropName = propName; + + if (parent instanceof Border) { + propName = "background-color"; + altPropName = "background"; + + if (ggrandpa instanceof Ui) { + style.backgroundColor = "white"; + } + } + + if (parent instanceof Rectangle || parent instanceof Arc) { + propName = altPropName = "fill"; + style.fill = "white"; + } + + for (const name of Object.getOwnPropertyNames(this)) { + if (name === "extras" || name === "color") { + continue; + } + + const obj = this[name]; + + if (!(obj instanceof _xfa_object.XFAObject)) { + continue; + } + + const color = obj[_xfa_object.$toStyle](this.color); + + if (color) { + style[color.startsWith("#") ? propName : altPropName] = color; + } + + return style; + } + + if (this.color && this.color.value) { + const color = this.color[_xfa_object.$toStyle](); + + style[color.startsWith("#") ? propName : altPropName] = color; + } + + return style; + } + +} + +class Filter extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "filter", true); + this.addRevocationInfo = (0, _utils.getStringOption)(attributes.addRevocationInfo, ["", "required", "optional", "none"]); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.version = (0, _utils.getInteger)({ + data: this.version, + defaultValue: 5, + validate: x => x >= 1 && x <= 5 + }); + this.appearanceFilter = null; + this.certificates = null; + this.digestMethods = null; + this.encodings = null; + this.encryptionMethods = null; + this.handler = null; + this.lockDocument = null; + this.mdp = null; + this.reasons = null; + this.timeStamp = null; + } + +} + +class Float extends _xfa_object.ContentObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "float"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + + [_xfa_object.$finalize]() { + const number = parseFloat(this[_xfa_object.$content].trim()); + this[_xfa_object.$content] = isNaN(number) ? null : number; + } + + [_xfa_object.$toHTML](availableSpace) { + return valueToHtml(this[_xfa_object.$content] !== null ? this[_xfa_object.$content].toString() : ""); + } + +} + +class Font extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "font", true); + this.baselineShift = (0, _utils.getMeasurement)(attributes.baselineShift); + this.fontHorizontalScale = (0, _utils.getFloat)({ + data: attributes.fontHorizontalScale, + defaultValue: 100, + validate: x => x >= 0 + }); + this.fontVerticalScale = (0, _utils.getFloat)({ + data: attributes.fontVerticalScale, + defaultValue: 100, + validate: x => x >= 0 + }); + this.id = attributes.id || ""; + this.kerningMode = (0, _utils.getStringOption)(attributes.kerningMode, ["none", "pair"]); + this.letterSpacing = (0, _utils.getMeasurement)(attributes.letterSpacing, "0"); + this.lineThrough = (0, _utils.getInteger)({ + data: attributes.lineThrough, + defaultValue: 0, + validate: x => x === 1 || x === 2 + }); + this.lineThroughPeriod = (0, _utils.getStringOption)(attributes.lineThroughPeriod, ["all", "word"]); + this.overline = (0, _utils.getInteger)({ + data: attributes.overline, + defaultValue: 0, + validate: x => x === 1 || x === 2 + }); + this.overlinePeriod = (0, _utils.getStringOption)(attributes.overlinePeriod, ["all", "word"]); + this.posture = (0, _utils.getStringOption)(attributes.posture, ["normal", "italic"]); + this.size = (0, _utils.getMeasurement)(attributes.size, "10pt"); + this.typeface = attributes.typeface || "Courier"; + this.underline = (0, _utils.getInteger)({ + data: attributes.underline, + defaultValue: 0, + validate: x => x === 1 || x === 2 + }); + this.underlinePeriod = (0, _utils.getStringOption)(attributes.underlinePeriod, ["all", "word"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.weight = (0, _utils.getStringOption)(attributes.weight, ["normal", "bold"]); + this.extras = null; + this.fill = null; + } + + [_xfa_object.$clean](builder) { + super[_xfa_object.$clean](builder); + + this[_xfa_object.$globalData].usedTypefaces.add(this.typeface); + } + + [_xfa_object.$toStyle]() { + const style = (0, _html_utils.toStyle)(this, "fill"); + const color = style.color; + + if (color) { + if (color === "#000000") { + delete style.color; + } else if (!color.startsWith("#")) { + style.background = color; + style.backgroundClip = "text"; + style.color = "transparent"; + } + } + + if (this.baselineShift) { + style.verticalAlign = (0, _html_utils.measureToString)(this.baselineShift); + } + + style.fontKerning = this.kerningMode === "none" ? "none" : "normal"; + style.letterSpacing = (0, _html_utils.measureToString)(this.letterSpacing); + + if (this.lineThrough !== 0) { + style.textDecoration = "line-through"; + + if (this.lineThrough === 2) { + style.textDecorationStyle = "double"; + } + } + + if (this.overline !== 0) { + style.textDecoration = "overline"; + + if (this.overline === 2) { + style.textDecorationStyle = "double"; + } + } + + style.fontStyle = this.posture; + style.fontSize = (0, _html_utils.measureToString)(0.99 * this.size); + (0, _html_utils.setFontFamily)(this, this, this[_xfa_object.$globalData].fontFinder, style); + + if (this.underline !== 0) { + style.textDecoration = "underline"; + + if (this.underline === 2) { + style.textDecorationStyle = "double"; + } + } + + style.fontWeight = this.weight; + return style; + } + +} + +class Format extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "format", true); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + this.picture = null; + } + +} + +class Handler extends _xfa_object.StringObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "handler"); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Hyphenation extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "hyphenation"); + this.excludeAllCaps = (0, _utils.getInteger)({ + data: attributes.excludeAllCaps, + defaultValue: 0, + validate: x => x === 1 + }); + this.excludeInitialCap = (0, _utils.getInteger)({ + data: attributes.excludeInitialCap, + defaultValue: 0, + validate: x => x === 1 + }); + this.hyphenate = (0, _utils.getInteger)({ + data: attributes.hyphenate, + defaultValue: 0, + validate: x => x === 1 + }); + this.id = attributes.id || ""; + this.pushCharacterCount = (0, _utils.getInteger)({ + data: attributes.pushCharacterCount, + defaultValue: 3, + validate: x => x >= 0 + }); + this.remainCharacterCount = (0, _utils.getInteger)({ + data: attributes.remainCharacterCount, + defaultValue: 3, + validate: x => x >= 0 + }); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.wordCharacterCount = (0, _utils.getInteger)({ + data: attributes.wordCharacterCount, + defaultValue: 7, + validate: x => x >= 0 + }); + } + +} + +class Image extends _xfa_object.StringObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "image"); + this.aspect = (0, _utils.getStringOption)(attributes.aspect, ["fit", "actual", "height", "none", "width"]); + this.contentType = attributes.contentType || ""; + this.href = attributes.href || ""; + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.transferEncoding = (0, _utils.getStringOption)(attributes.transferEncoding, ["base64", "none", "package"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + + [_xfa_object.$toHTML]() { + if (this.contentType && !MIMES.has(this.contentType.toLowerCase())) { + return _utils.HTMLResult.EMPTY; + } + + let buffer = this[_xfa_object.$globalData].images && this[_xfa_object.$globalData].images.get(this.href); + + if (!buffer && (this.href || !this[_xfa_object.$content])) { + return _utils.HTMLResult.EMPTY; + } + + if (!buffer && this.transferEncoding === "base64") { + buffer = (0, _util.stringToBytes)(atob(this[_xfa_object.$content])); + } + + if (!buffer) { + return _utils.HTMLResult.EMPTY; + } + + if (!this.contentType) { + for (const [header, type] of IMAGES_HEADERS) { + if (buffer.length > header.length && header.every((x, i) => x === buffer[i])) { + this.contentType = type; + break; + } + } + + if (!this.contentType) { + return _utils.HTMLResult.EMPTY; + } + } + + const blob = new Blob([buffer], { + type: this.contentType + }); + let style; + + switch (this.aspect) { + case "fit": + case "actual": + break; + + case "height": + style = { + height: "100%", + objectFit: "fill" + }; + break; + + case "none": + style = { + width: "100%", + height: "100%", + objectFit: "fill" + }; + break; + + case "width": + style = { + width: "100%", + objectFit: "fill" + }; + break; + } + + const parent = this[_xfa_object.$getParent](); + + return _utils.HTMLResult.success({ + name: "img", + attributes: { + class: ["xfaImage"], + style, + src: URL.createObjectURL(blob), + alt: parent ? ariaLabel(parent[_xfa_object.$getParent]()) : null + } + }); + } + +} + +class ImageEdit extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "imageEdit", true); + this.data = (0, _utils.getStringOption)(attributes.data, ["link", "embed"]); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.border = null; + this.extras = null; + this.margin = null; + } + + [_xfa_object.$toHTML](availableSpace) { + if (this.data === "embed") { + return _utils.HTMLResult.success({ + name: "div", + children: [], + attributes: {} + }); + } + + return _utils.HTMLResult.EMPTY; + } + +} + +class Integer extends _xfa_object.ContentObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "integer"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + + [_xfa_object.$finalize]() { + const number = parseInt(this[_xfa_object.$content].trim(), 10); + this[_xfa_object.$content] = isNaN(number) ? null : number; + } + + [_xfa_object.$toHTML](availableSpace) { + return valueToHtml(this[_xfa_object.$content] !== null ? this[_xfa_object.$content].toString() : ""); + } + +} + +class Issuers extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "issuers", true); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.certificate = new _xfa_object.XFAObjectArray(); + } + +} + +class Items extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "items", true); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.presence = (0, _utils.getStringOption)(attributes.presence, ["visible", "hidden", "inactive", "invisible"]); + this.ref = attributes.ref || ""; + this.save = (0, _utils.getInteger)({ + data: attributes.save, + defaultValue: 0, + validate: x => x === 1 + }); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.boolean = new _xfa_object.XFAObjectArray(); + this.date = new _xfa_object.XFAObjectArray(); + this.dateTime = new _xfa_object.XFAObjectArray(); + this.decimal = new _xfa_object.XFAObjectArray(); + this.exData = new _xfa_object.XFAObjectArray(); + this.float = new _xfa_object.XFAObjectArray(); + this.image = new _xfa_object.XFAObjectArray(); + this.integer = new _xfa_object.XFAObjectArray(); + this.text = new _xfa_object.XFAObjectArray(); + this.time = new _xfa_object.XFAObjectArray(); + } + + [_xfa_object.$toHTML]() { + const output = []; + + for (const child of this[_xfa_object.$getChildren]()) { + output.push(child[_xfa_object.$text]()); + } + + return _utils.HTMLResult.success(output); + } + +} + +exports.Items = Items; + +class Keep extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "keep", true); + this.id = attributes.id || ""; + const options = ["none", "contentArea", "pageArea"]; + this.intact = (0, _utils.getStringOption)(attributes.intact, options); + this.next = (0, _utils.getStringOption)(attributes.next, options); + this.previous = (0, _utils.getStringOption)(attributes.previous, options); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + } + +} + +class KeyUsage extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "keyUsage"); + const options = ["", "yes", "no"]; + this.crlSign = (0, _utils.getStringOption)(attributes.crlSign, options); + this.dataEncipherment = (0, _utils.getStringOption)(attributes.dataEncipherment, options); + this.decipherOnly = (0, _utils.getStringOption)(attributes.decipherOnly, options); + this.digitalSignature = (0, _utils.getStringOption)(attributes.digitalSignature, options); + this.encipherOnly = (0, _utils.getStringOption)(attributes.encipherOnly, options); + this.id = attributes.id || ""; + this.keyAgreement = (0, _utils.getStringOption)(attributes.keyAgreement, options); + this.keyCertSign = (0, _utils.getStringOption)(attributes.keyCertSign, options); + this.keyEncipherment = (0, _utils.getStringOption)(attributes.keyEncipherment, options); + this.nonRepudiation = (0, _utils.getStringOption)(attributes.nonRepudiation, options); + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Line extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "line", true); + this.hand = (0, _utils.getStringOption)(attributes.hand, ["even", "left", "right"]); + this.id = attributes.id || ""; + this.slope = (0, _utils.getStringOption)(attributes.slope, ["\\", "/"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.edge = null; + } + + [_xfa_object.$toHTML]() { + const parent = this[_xfa_object.$getParent]()[_xfa_object.$getParent](); + + const edge = this.edge || new Edge({}); + + const edgeStyle = edge[_xfa_object.$toStyle](); + + const style = Object.create(null); + const thickness = edge.presence === "visible" ? edge.thickness : 0; + style.strokeWidth = (0, _html_utils.measureToString)(thickness); + style.stroke = edgeStyle.color; + let x1, y1, x2, y2; + let width = "100%"; + let height = "100%"; + + if (parent.w <= thickness) { + [x1, y1, x2, y2] = ["50%", 0, "50%", "100%"]; + width = style.strokeWidth; + } else if (parent.h <= thickness) { + [x1, y1, x2, y2] = [0, "50%", "100%", "50%"]; + height = style.strokeWidth; + } else { + if (this.slope === "\\") { + [x1, y1, x2, y2] = [0, 0, "100%", "100%"]; + } else { + [x1, y1, x2, y2] = [0, "100%", "100%", 0]; + } + } + + const line = { + name: "line", + attributes: { + xmlns: SVG_NS, + x1, + y1, + x2, + y2, + style + } + }; + const svg = { + name: "svg", + children: [line], + attributes: { + xmlns: SVG_NS, + width, + height, + style: { + overflow: "visible" + } + } + }; + + if (hasMargin(parent)) { + return _utils.HTMLResult.success({ + name: "div", + attributes: { + style: { + display: "inline", + width: "100%", + height: "100%" + } + }, + children: [svg] + }); + } + + svg.attributes.style.position = "absolute"; + return _utils.HTMLResult.success(svg); + } + +} + +class Linear extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "linear", true); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["toRight", "toBottom", "toLeft", "toTop"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.color = null; + this.extras = null; + } + + [_xfa_object.$toStyle](startColor) { + startColor = startColor ? startColor[_xfa_object.$toStyle]() : "#FFFFFF"; + const transf = this.type.replace(/([RBLT])/, " $1").toLowerCase(); + const endColor = this.color ? this.color[_xfa_object.$toStyle]() : "#000000"; + return `linear-gradient(${transf}, ${startColor}, ${endColor})`; + } + +} + +class LockDocument extends _xfa_object.ContentObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "lockDocument"); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + + [_xfa_object.$finalize]() { + this[_xfa_object.$content] = (0, _utils.getStringOption)(this[_xfa_object.$content], ["auto", "0", "1"]); + } + +} + +class Manifest extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "manifest", true); + this.action = (0, _utils.getStringOption)(attributes.action, ["include", "all", "exclude"]); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + this.ref = new _xfa_object.XFAObjectArray(); + } + +} + +class Margin extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "margin", true); + this.bottomInset = (0, _utils.getMeasurement)(attributes.bottomInset, "0"); + this.id = attributes.id || ""; + this.leftInset = (0, _utils.getMeasurement)(attributes.leftInset, "0"); + this.rightInset = (0, _utils.getMeasurement)(attributes.rightInset, "0"); + this.topInset = (0, _utils.getMeasurement)(attributes.topInset, "0"); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + } + + [_xfa_object.$toStyle]() { + return { + margin: (0, _html_utils.measureToString)(this.topInset) + " " + (0, _html_utils.measureToString)(this.rightInset) + " " + (0, _html_utils.measureToString)(this.bottomInset) + " " + (0, _html_utils.measureToString)(this.leftInset) + }; + } + +} + +class Mdp extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "mdp"); + this.id = attributes.id || ""; + this.permissions = (0, _utils.getInteger)({ + data: attributes.permissions, + defaultValue: 2, + validate: x => x === 1 || x === 3 + }); + this.signatureType = (0, _utils.getStringOption)(attributes.signatureType, ["filler", "author"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Medium extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "medium"); + this.id = attributes.id || ""; + this.imagingBBox = (0, _utils.getBBox)(attributes.imagingBBox); + this.long = (0, _utils.getMeasurement)(attributes.long); + this.orientation = (0, _utils.getStringOption)(attributes.orientation, ["portrait", "landscape"]); + this.short = (0, _utils.getMeasurement)(attributes.short); + this.stock = attributes.stock || ""; + this.trayIn = (0, _utils.getStringOption)(attributes.trayIn, ["auto", "delegate", "pageFront"]); + this.trayOut = (0, _utils.getStringOption)(attributes.trayOut, ["auto", "delegate"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Message extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "message", true); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.text = new _xfa_object.XFAObjectArray(); + } + +} + +class NumericEdit extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "numericEdit", true); + this.hScrollPolicy = (0, _utils.getStringOption)(attributes.hScrollPolicy, ["auto", "off", "on"]); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.border = null; + this.comb = null; + this.extras = null; + this.margin = null; + } + + [_xfa_object.$toHTML](availableSpace) { + const style = (0, _html_utils.toStyle)(this, "border", "font", "margin"); + + const field = this[_xfa_object.$getParent]()[_xfa_object.$getParent](); + + const html = { + name: "input", + attributes: { + type: "text", + fieldId: field[_xfa_object.$uid], + dataId: field[_xfa_object.$data] && field[_xfa_object.$data][_xfa_object.$uid] || field[_xfa_object.$uid], + class: ["xfaTextfield"], + style, + "aria-label": ariaLabel(field), + "aria-required": false + } + }; + + if (isRequired(field)) { + html.attributes["aria-required"] = true; + html.attributes.required = true; + } + + return _utils.HTMLResult.success({ + name: "label", + attributes: { + class: ["xfaLabel"] + }, + children: [html] + }); + } + +} + +class Occur extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "occur", true); + this.id = attributes.id || ""; + this.initial = attributes.initial !== "" ? (0, _utils.getInteger)({ + data: attributes.initial, + defaultValue: "", + validate: x => true + }) : ""; + this.max = attributes.max !== "" ? (0, _utils.getInteger)({ + data: attributes.max, + defaultValue: 1, + validate: x => true + }) : ""; + this.min = attributes.min !== "" ? (0, _utils.getInteger)({ + data: attributes.min, + defaultValue: 1, + validate: x => true + }) : ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + } + + [_xfa_object.$clean]() { + const parent = this[_xfa_object.$getParent](); + + const originalMin = this.min; + + if (this.min === "") { + this.min = parent instanceof PageArea || parent instanceof PageSet ? 0 : 1; + } + + if (this.max === "") { + if (originalMin === "") { + this.max = parent instanceof PageArea || parent instanceof PageSet ? -1 : 1; + } else { + this.max = this.min; + } + } + + if (this.max !== -1 && this.max < this.min) { + this.max = this.min; + } + + if (this.initial === "") { + this.initial = parent instanceof Template ? 1 : this.min; + } + } + +} + +class Oid extends _xfa_object.StringObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "oid"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Oids extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "oids", true); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.oid = new _xfa_object.XFAObjectArray(); + } + +} + +class Overflow extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "overflow"); + this.id = attributes.id || ""; + this.leader = attributes.leader || ""; + this.target = attributes.target || ""; + this.trailer = attributes.trailer || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + + [_xfa_object.$getExtra]() { + if (!this[_xfa_object.$extra]) { + const parent = this[_xfa_object.$getParent](); + + const root = this[_xfa_object.$getTemplateRoot](); + + const target = root[_xfa_object.$searchNode](this.target, parent); + + const leader = root[_xfa_object.$searchNode](this.leader, parent); + + const trailer = root[_xfa_object.$searchNode](this.trailer, parent); + + this[_xfa_object.$extra] = { + target: target && target[0] || null, + leader: leader && leader[0] || null, + trailer: trailer && trailer[0] || null, + addLeader: false, + addTrailer: false + }; + } + + return this[_xfa_object.$extra]; + } + +} + +class PageArea extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "pageArea", true); + this.blankOrNotBlank = (0, _utils.getStringOption)(attributes.blankOrNotBlank, ["any", "blank", "notBlank"]); + this.id = attributes.id || ""; + this.initialNumber = (0, _utils.getInteger)({ + data: attributes.initialNumber, + defaultValue: 1, + validate: x => true + }); + this.name = attributes.name || ""; + this.numbered = (0, _utils.getInteger)({ + data: attributes.numbered, + defaultValue: 1, + validate: x => true + }); + this.oddOrEven = (0, _utils.getStringOption)(attributes.oddOrEven, ["any", "even", "odd"]); + this.pagePosition = (0, _utils.getStringOption)(attributes.pagePosition, ["any", "first", "last", "only", "rest"]); + this.relevant = (0, _utils.getRelevant)(attributes.relevant); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.desc = null; + this.extras = null; + this.medium = null; + this.occur = null; + this.area = new _xfa_object.XFAObjectArray(); + this.contentArea = new _xfa_object.XFAObjectArray(); + this.draw = new _xfa_object.XFAObjectArray(); + this.exclGroup = new _xfa_object.XFAObjectArray(); + this.field = new _xfa_object.XFAObjectArray(); + this.subform = new _xfa_object.XFAObjectArray(); + } + + [_xfa_object.$isUsable]() { + if (!this[_xfa_object.$extra]) { + this[_xfa_object.$extra] = { + numberOfUse: 0 + }; + return true; + } + + return !this.occur || this.occur.max === -1 || this[_xfa_object.$extra].numberOfUse < this.occur.max; + } + + [_xfa_object.$cleanPage]() { + delete this[_xfa_object.$extra]; + } + + [_xfa_object.$getNextPage]() { + if (!this[_xfa_object.$extra]) { + this[_xfa_object.$extra] = { + numberOfUse: 0 + }; + } + + const parent = this[_xfa_object.$getParent](); + + if (parent.relation === "orderedOccurrence") { + if (this[_xfa_object.$isUsable]()) { + this[_xfa_object.$extra].numberOfUse += 1; + return this; + } + } + + return parent[_xfa_object.$getNextPage](); + } + + [_xfa_object.$getAvailableSpace]() { + return this[_xfa_object.$extra].space || { + width: 0, + height: 0 + }; + } + + [_xfa_object.$toHTML]() { + if (!this[_xfa_object.$extra]) { + this[_xfa_object.$extra] = { + numberOfUse: 1 + }; + } + + const children = []; + this[_xfa_object.$extra].children = children; + const style = Object.create(null); + + if (this.medium && this.medium.short && this.medium.long) { + style.width = (0, _html_utils.measureToString)(this.medium.short); + style.height = (0, _html_utils.measureToString)(this.medium.long); + this[_xfa_object.$extra].space = { + width: this.medium.short, + height: this.medium.long + }; + + if (this.medium.orientation === "landscape") { + const x = style.width; + style.width = style.height; + style.height = x; + this[_xfa_object.$extra].space = { + width: this.medium.long, + height: this.medium.short + }; + } + } else { + (0, _util.warn)("XFA - No medium specified in pageArea: please file a bug."); + } + + this[_xfa_object.$childrenToHTML]({ + filter: new Set(["area", "draw", "field", "subform"]), + include: true + }); + + this[_xfa_object.$childrenToHTML]({ + filter: new Set(["contentArea"]), + include: true + }); + + return _utils.HTMLResult.success({ + name: "div", + children, + attributes: { + class: ["xfaPage"], + id: this[_xfa_object.$uid], + style, + xfaName: this.name + } + }); + } + +} + +class PageSet extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "pageSet", true); + this.duplexImposition = (0, _utils.getStringOption)(attributes.duplexImposition, ["longEdge", "shortEdge"]); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.relation = (0, _utils.getStringOption)(attributes.relation, ["orderedOccurrence", "duplexPaginated", "simplexPaginated"]); + this.relevant = (0, _utils.getRelevant)(attributes.relevant); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + this.occur = null; + this.pageArea = new _xfa_object.XFAObjectArray(); + this.pageSet = new _xfa_object.XFAObjectArray(); + } + + [_xfa_object.$cleanPage]() { + for (const page of this.pageArea.children) { + page[_xfa_object.$cleanPage](); + } + + for (const page of this.pageSet.children) { + page[_xfa_object.$cleanPage](); + } + } + + [_xfa_object.$isUsable]() { + return !this.occur || this.occur.max === -1 || this[_xfa_object.$extra].numberOfUse < this.occur.max; + } + + [_xfa_object.$getNextPage]() { + if (!this[_xfa_object.$extra]) { + this[_xfa_object.$extra] = { + numberOfUse: 1, + pageIndex: -1, + pageSetIndex: -1 + }; + } + + if (this.relation === "orderedOccurrence") { + if (this[_xfa_object.$extra].pageIndex + 1 < this.pageArea.children.length) { + this[_xfa_object.$extra].pageIndex += 1; + const pageArea = this.pageArea.children[this[_xfa_object.$extra].pageIndex]; + return pageArea[_xfa_object.$getNextPage](); + } + + if (this[_xfa_object.$extra].pageSetIndex + 1 < this.pageSet.children.length) { + this[_xfa_object.$extra].pageSetIndex += 1; + return this.pageSet.children[this[_xfa_object.$extra].pageSetIndex][_xfa_object.$getNextPage](); + } + + if (this[_xfa_object.$isUsable]()) { + this[_xfa_object.$extra].numberOfUse += 1; + this[_xfa_object.$extra].pageIndex = -1; + this[_xfa_object.$extra].pageSetIndex = -1; + return this[_xfa_object.$getNextPage](); + } + + const parent = this[_xfa_object.$getParent](); + + if (parent instanceof PageSet) { + return parent[_xfa_object.$getNextPage](); + } + + this[_xfa_object.$cleanPage](); + + return this[_xfa_object.$getNextPage](); + } + + const pageNumber = this[_xfa_object.$getTemplateRoot]()[_xfa_object.$extra].pageNumber; + + const parity = pageNumber % 2 === 0 ? "even" : "odd"; + const position = pageNumber === 0 ? "first" : "rest"; + let page = this.pageArea.children.find(p => p.oddOrEven === parity && p.pagePosition === position); + + if (page) { + return page; + } + + page = this.pageArea.children.find(p => p.oddOrEven === "any" && p.pagePosition === position); + + if (page) { + return page; + } + + page = this.pageArea.children.find(p => p.oddOrEven === "any" && p.pagePosition === "any"); + + if (page) { + return page; + } + + return this.pageArea.children[0]; + } + +} + +class Para extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "para", true); + this.hAlign = (0, _utils.getStringOption)(attributes.hAlign, ["left", "center", "justify", "justifyAll", "radix", "right"]); + this.id = attributes.id || ""; + this.lineHeight = attributes.lineHeight ? (0, _utils.getMeasurement)(attributes.lineHeight, "0pt") : ""; + this.marginLeft = attributes.marginLeft ? (0, _utils.getMeasurement)(attributes.marginLeft, "0pt") : ""; + this.marginRight = attributes.marginRight ? (0, _utils.getMeasurement)(attributes.marginRight, "0pt") : ""; + this.orphans = (0, _utils.getInteger)({ + data: attributes.orphans, + defaultValue: 0, + validate: x => x >= 0 + }); + this.preserve = attributes.preserve || ""; + this.radixOffset = attributes.radixOffset ? (0, _utils.getMeasurement)(attributes.radixOffset, "0pt") : ""; + this.spaceAbove = attributes.spaceAbove ? (0, _utils.getMeasurement)(attributes.spaceAbove, "0pt") : ""; + this.spaceBelow = attributes.spaceBelow ? (0, _utils.getMeasurement)(attributes.spaceBelow, "0pt") : ""; + this.tabDefault = attributes.tabDefault ? (0, _utils.getMeasurement)(this.tabDefault) : ""; + this.tabStops = (attributes.tabStops || "").trim().split(/\s+/).map((x, i) => i % 2 === 1 ? (0, _utils.getMeasurement)(x) : x); + this.textIndent = attributes.textIndent ? (0, _utils.getMeasurement)(attributes.textIndent, "0pt") : ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.vAlign = (0, _utils.getStringOption)(attributes.vAlign, ["top", "bottom", "middle"]); + this.widows = (0, _utils.getInteger)({ + data: attributes.widows, + defaultValue: 0, + validate: x => x >= 0 + }); + this.hyphenation = null; + } + + [_xfa_object.$toStyle]() { + const style = (0, _html_utils.toStyle)(this, "hAlign"); + + if (this.marginLeft !== "") { + style.paddingLeft = (0, _html_utils.measureToString)(this.marginLeft); + } + + if (this.marginRight !== "") { + style.paddingight = (0, _html_utils.measureToString)(this.marginRight); + } + + if (this.spaceAbove !== "") { + style.paddingTop = (0, _html_utils.measureToString)(this.spaceAbove); + } + + if (this.spaceBelow !== "") { + style.paddingBottom = (0, _html_utils.measureToString)(this.spaceBelow); + } + + if (this.textIndent !== "") { + style.textIndent = (0, _html_utils.measureToString)(this.textIndent); + (0, _html_utils.fixTextIndent)(style); + } + + if (this.lineHeight > 0) { + style.lineHeight = (0, _html_utils.measureToString)(this.lineHeight); + } + + if (this.tabDefault !== "") { + style.tabSize = (0, _html_utils.measureToString)(this.tabDefault); + } + + if (this.tabStops.length > 0) {} + + if (this.hyphenatation) { + Object.assign(style, this.hyphenatation[_xfa_object.$toStyle]()); + } + + return style; + } + +} + +class PasswordEdit extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "passwordEdit", true); + this.hScrollPolicy = (0, _utils.getStringOption)(attributes.hScrollPolicy, ["auto", "off", "on"]); + this.id = attributes.id || ""; + this.passwordChar = attributes.passwordChar || "*"; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.border = null; + this.extras = null; + this.margin = null; + } + +} + +class Pattern extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "pattern", true); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["crossHatch", "crossDiagonal", "diagonalLeft", "diagonalRight", "horizontal", "vertical"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.color = null; + this.extras = null; + } + + [_xfa_object.$toStyle](startColor) { + startColor = startColor ? startColor[_xfa_object.$toStyle]() : "#FFFFFF"; + const endColor = this.color ? this.color[_xfa_object.$toStyle]() : "#000000"; + const width = 5; + const cmd = "repeating-linear-gradient"; + const colors = `${startColor},${startColor} ${width}px,${endColor} ${width}px,${endColor} ${2 * width}px`; + + switch (this.type) { + case "crossHatch": + return `${cmd}(to top,${colors}) ${cmd}(to right,${colors})`; + + case "crossDiagonal": + return `${cmd}(45deg,${colors}) ${cmd}(-45deg,${colors})`; + + case "diagonalLeft": + return `${cmd}(45deg,${colors})`; + + case "diagonalRight": + return `${cmd}(-45deg,${colors})`; + + case "horizontal": + return `${cmd}(to top,${colors})`; + + case "vertical": + return `${cmd}(to right,${colors})`; + } + + return ""; + } + +} + +class Picture extends _xfa_object.StringObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "picture"); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Proto extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "proto", true); + this.appearanceFilter = new _xfa_object.XFAObjectArray(); + this.arc = new _xfa_object.XFAObjectArray(); + this.area = new _xfa_object.XFAObjectArray(); + this.assist = new _xfa_object.XFAObjectArray(); + this.barcode = new _xfa_object.XFAObjectArray(); + this.bindItems = new _xfa_object.XFAObjectArray(); + this.bookend = new _xfa_object.XFAObjectArray(); + this.boolean = new _xfa_object.XFAObjectArray(); + this.border = new _xfa_object.XFAObjectArray(); + this.break = new _xfa_object.XFAObjectArray(); + this.breakAfter = new _xfa_object.XFAObjectArray(); + this.breakBefore = new _xfa_object.XFAObjectArray(); + this.button = new _xfa_object.XFAObjectArray(); + this.calculate = new _xfa_object.XFAObjectArray(); + this.caption = new _xfa_object.XFAObjectArray(); + this.certificate = new _xfa_object.XFAObjectArray(); + this.certificates = new _xfa_object.XFAObjectArray(); + this.checkButton = new _xfa_object.XFAObjectArray(); + this.choiceList = new _xfa_object.XFAObjectArray(); + this.color = new _xfa_object.XFAObjectArray(); + this.comb = new _xfa_object.XFAObjectArray(); + this.connect = new _xfa_object.XFAObjectArray(); + this.contentArea = new _xfa_object.XFAObjectArray(); + this.corner = new _xfa_object.XFAObjectArray(); + this.date = new _xfa_object.XFAObjectArray(); + this.dateTime = new _xfa_object.XFAObjectArray(); + this.dateTimeEdit = new _xfa_object.XFAObjectArray(); + this.decimal = new _xfa_object.XFAObjectArray(); + this.defaultUi = new _xfa_object.XFAObjectArray(); + this.desc = new _xfa_object.XFAObjectArray(); + this.digestMethod = new _xfa_object.XFAObjectArray(); + this.digestMethods = new _xfa_object.XFAObjectArray(); + this.draw = new _xfa_object.XFAObjectArray(); + this.edge = new _xfa_object.XFAObjectArray(); + this.encoding = new _xfa_object.XFAObjectArray(); + this.encodings = new _xfa_object.XFAObjectArray(); + this.encrypt = new _xfa_object.XFAObjectArray(); + this.encryptData = new _xfa_object.XFAObjectArray(); + this.encryption = new _xfa_object.XFAObjectArray(); + this.encryptionMethod = new _xfa_object.XFAObjectArray(); + this.encryptionMethods = new _xfa_object.XFAObjectArray(); + this.event = new _xfa_object.XFAObjectArray(); + this.exData = new _xfa_object.XFAObjectArray(); + this.exObject = new _xfa_object.XFAObjectArray(); + this.exclGroup = new _xfa_object.XFAObjectArray(); + this.execute = new _xfa_object.XFAObjectArray(); + this.extras = new _xfa_object.XFAObjectArray(); + this.field = new _xfa_object.XFAObjectArray(); + this.fill = new _xfa_object.XFAObjectArray(); + this.filter = new _xfa_object.XFAObjectArray(); + this.float = new _xfa_object.XFAObjectArray(); + this.font = new _xfa_object.XFAObjectArray(); + this.format = new _xfa_object.XFAObjectArray(); + this.handler = new _xfa_object.XFAObjectArray(); + this.hyphenation = new _xfa_object.XFAObjectArray(); + this.image = new _xfa_object.XFAObjectArray(); + this.imageEdit = new _xfa_object.XFAObjectArray(); + this.integer = new _xfa_object.XFAObjectArray(); + this.issuers = new _xfa_object.XFAObjectArray(); + this.items = new _xfa_object.XFAObjectArray(); + this.keep = new _xfa_object.XFAObjectArray(); + this.keyUsage = new _xfa_object.XFAObjectArray(); + this.line = new _xfa_object.XFAObjectArray(); + this.linear = new _xfa_object.XFAObjectArray(); + this.lockDocument = new _xfa_object.XFAObjectArray(); + this.manifest = new _xfa_object.XFAObjectArray(); + this.margin = new _xfa_object.XFAObjectArray(); + this.mdp = new _xfa_object.XFAObjectArray(); + this.medium = new _xfa_object.XFAObjectArray(); + this.message = new _xfa_object.XFAObjectArray(); + this.numericEdit = new _xfa_object.XFAObjectArray(); + this.occur = new _xfa_object.XFAObjectArray(); + this.oid = new _xfa_object.XFAObjectArray(); + this.oids = new _xfa_object.XFAObjectArray(); + this.overflow = new _xfa_object.XFAObjectArray(); + this.pageArea = new _xfa_object.XFAObjectArray(); + this.pageSet = new _xfa_object.XFAObjectArray(); + this.para = new _xfa_object.XFAObjectArray(); + this.passwordEdit = new _xfa_object.XFAObjectArray(); + this.pattern = new _xfa_object.XFAObjectArray(); + this.picture = new _xfa_object.XFAObjectArray(); + this.radial = new _xfa_object.XFAObjectArray(); + this.reason = new _xfa_object.XFAObjectArray(); + this.reasons = new _xfa_object.XFAObjectArray(); + this.rectangle = new _xfa_object.XFAObjectArray(); + this.ref = new _xfa_object.XFAObjectArray(); + this.script = new _xfa_object.XFAObjectArray(); + this.setProperty = new _xfa_object.XFAObjectArray(); + this.signData = new _xfa_object.XFAObjectArray(); + this.signature = new _xfa_object.XFAObjectArray(); + this.signing = new _xfa_object.XFAObjectArray(); + this.solid = new _xfa_object.XFAObjectArray(); + this.speak = new _xfa_object.XFAObjectArray(); + this.stipple = new _xfa_object.XFAObjectArray(); + this.subform = new _xfa_object.XFAObjectArray(); + this.subformSet = new _xfa_object.XFAObjectArray(); + this.subjectDN = new _xfa_object.XFAObjectArray(); + this.subjectDNs = new _xfa_object.XFAObjectArray(); + this.submit = new _xfa_object.XFAObjectArray(); + this.text = new _xfa_object.XFAObjectArray(); + this.textEdit = new _xfa_object.XFAObjectArray(); + this.time = new _xfa_object.XFAObjectArray(); + this.timeStamp = new _xfa_object.XFAObjectArray(); + this.toolTip = new _xfa_object.XFAObjectArray(); + this.traversal = new _xfa_object.XFAObjectArray(); + this.traverse = new _xfa_object.XFAObjectArray(); + this.ui = new _xfa_object.XFAObjectArray(); + this.validate = new _xfa_object.XFAObjectArray(); + this.value = new _xfa_object.XFAObjectArray(); + this.variables = new _xfa_object.XFAObjectArray(); + } + +} + +class Radial extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "radial", true); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["toEdge", "toCenter"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.color = null; + this.extras = null; + } + + [_xfa_object.$toStyle](startColor) { + startColor = startColor ? startColor[_xfa_object.$toStyle]() : "#FFFFFF"; + const endColor = this.color ? this.color[_xfa_object.$toStyle]() : "#000000"; + const colors = this.type === "toEdge" ? `${startColor},${endColor}` : `${endColor},${startColor}`; + return `radial-gradient(circle at center, ${colors})`; + } + +} + +class Reason extends _xfa_object.StringObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "reason"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Reasons extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "reasons", true); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.reason = new _xfa_object.XFAObjectArray(); + } + +} + +class Rectangle extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "rectangle", true); + this.hand = (0, _utils.getStringOption)(attributes.hand, ["even", "left", "right"]); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.corner = new _xfa_object.XFAObjectArray(4); + this.edge = new _xfa_object.XFAObjectArray(4); + this.fill = null; + } + + [_xfa_object.$toHTML]() { + const edge = this.edge.children.length ? this.edge.children[0] : new Edge({}); + + const edgeStyle = edge[_xfa_object.$toStyle](); + + const style = Object.create(null); + + if (this.fill && this.fill.presence === "visible") { + Object.assign(style, this.fill[_xfa_object.$toStyle]()); + } else { + style.fill = "transparent"; + } + + style.strokeWidth = (0, _html_utils.measureToString)(edge.presence === "visible" ? edge.thickness : 0); + style.stroke = edgeStyle.color; + const corner = this.corner.children.length ? this.corner.children[0] : new Corner({}); + + const cornerStyle = corner[_xfa_object.$toStyle](); + + const rect = { + name: "rect", + attributes: { + xmlns: SVG_NS, + width: "100%", + height: "100%", + x: 0, + y: 0, + rx: cornerStyle.radius, + ry: cornerStyle.radius, + style + } + }; + const svg = { + name: "svg", + children: [rect], + attributes: { + xmlns: SVG_NS, + style: { + overflow: "visible" + }, + width: "100%", + height: "100%" + } + }; + + const parent = this[_xfa_object.$getParent]()[_xfa_object.$getParent](); + + if (hasMargin(parent)) { + return _utils.HTMLResult.success({ + name: "div", + attributes: { + style: { + display: "inline", + width: "100%", + height: "100%" + } + }, + children: [svg] + }); + } + + svg.attributes.style.position = "absolute"; + return _utils.HTMLResult.success(svg); + } + +} + +class RefElement extends _xfa_object.StringObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "ref"); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Script extends _xfa_object.StringObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "script"); + this.binding = attributes.binding || ""; + this.contentType = attributes.contentType || ""; + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.runAt = (0, _utils.getStringOption)(attributes.runAt, ["client", "both", "server"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class SetProperty extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "setProperty"); + this.connection = attributes.connection || ""; + this.ref = attributes.ref || ""; + this.target = attributes.target || ""; + } + +} + +exports.SetProperty = SetProperty; + +class SignData extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "signData", true); + this.id = attributes.id || ""; + this.operation = (0, _utils.getStringOption)(attributes.operation, ["sign", "clear", "verify"]); + this.ref = attributes.ref || ""; + this.target = attributes.target || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.filter = null; + this.manifest = null; + } + +} + +class Signature extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "signature", true); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["PDF1.3", "PDF1.6"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.border = null; + this.extras = null; + this.filter = null; + this.manifest = null; + this.margin = null; + } + +} + +class Signing extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "signing", true); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.certificate = new _xfa_object.XFAObjectArray(); + } + +} + +class Solid extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "solid", true); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + } + + [_xfa_object.$toStyle](startColor) { + return startColor ? startColor[_xfa_object.$toStyle]() : "#FFFFFF"; + } + +} + +class Speak extends _xfa_object.StringObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "speak"); + this.disable = (0, _utils.getInteger)({ + data: attributes.disable, + defaultValue: 0, + validate: x => x === 1 + }); + this.id = attributes.id || ""; + this.priority = (0, _utils.getStringOption)(attributes.priority, ["custom", "caption", "name", "toolTip"]); + this.rid = attributes.rid || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Stipple extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "stipple", true); + this.id = attributes.id || ""; + this.rate = (0, _utils.getInteger)({ + data: attributes.rate, + defaultValue: 50, + validate: x => x >= 0 && x <= 100 + }); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.color = null; + this.extras = null; + } + + [_xfa_object.$toStyle](bgColor) { + const alpha = this.rate / 100; + return _util.Util.makeHexColor(Math.round(bgColor.value.r * (1 - alpha) + this.value.r * alpha), Math.round(bgColor.value.g * (1 - alpha) + this.value.g * alpha), Math.round(bgColor.value.b * (1 - alpha) + this.value.b * alpha)); + } + +} + +class Subform extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "subform", true); + this.access = (0, _utils.getStringOption)(attributes.access, ["open", "nonInteractive", "protected", "readOnly"]); + this.allowMacro = (0, _utils.getInteger)({ + data: attributes.allowMacro, + defaultValue: 0, + validate: x => x === 1 + }); + this.anchorType = (0, _utils.getStringOption)(attributes.anchorType, ["topLeft", "bottomCenter", "bottomLeft", "bottomRight", "middleCenter", "middleLeft", "middleRight", "topCenter", "topRight"]); + this.colSpan = (0, _utils.getInteger)({ + data: attributes.colSpan, + defaultValue: 1, + validate: n => n >= 1 || n === -1 + }); + this.columnWidths = (attributes.columnWidths || "").trim().split(/\s+/).map(x => x === "-1" ? -1 : (0, _utils.getMeasurement)(x)); + this.h = attributes.h ? (0, _utils.getMeasurement)(attributes.h) : ""; + this.hAlign = (0, _utils.getStringOption)(attributes.hAlign, ["left", "center", "justify", "justifyAll", "radix", "right"]); + this.id = attributes.id || ""; + this.layout = (0, _utils.getStringOption)(attributes.layout, ["position", "lr-tb", "rl-row", "rl-tb", "row", "table", "tb"]); + this.locale = attributes.locale || ""; + this.maxH = (0, _utils.getMeasurement)(attributes.maxH, "0pt"); + this.maxW = (0, _utils.getMeasurement)(attributes.maxW, "0pt"); + this.mergeMode = (0, _utils.getStringOption)(attributes.mergeMode, ["consumeData", "matchTemplate"]); + this.minH = (0, _utils.getMeasurement)(attributes.minH, "0pt"); + this.minW = (0, _utils.getMeasurement)(attributes.minW, "0pt"); + this.name = attributes.name || ""; + this.presence = (0, _utils.getStringOption)(attributes.presence, ["visible", "hidden", "inactive", "invisible"]); + this.relevant = (0, _utils.getRelevant)(attributes.relevant); + this.restoreState = (0, _utils.getStringOption)(attributes.restoreState, ["manual", "auto"]); + this.scope = (0, _utils.getStringOption)(attributes.scope, ["name", "none"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.w = attributes.w ? (0, _utils.getMeasurement)(attributes.w) : ""; + this.x = (0, _utils.getMeasurement)(attributes.x, "0pt"); + this.y = (0, _utils.getMeasurement)(attributes.y, "0pt"); + this.assist = null; + this.bind = null; + this.bookend = null; + this.border = null; + this.break = null; + this.calculate = null; + this.desc = null; + this.extras = null; + this.keep = null; + this.margin = null; + this.occur = null; + this.overflow = null; + this.pageSet = null; + this.para = null; + this.traversal = null; + this.validate = null; + this.variables = null; + this.area = new _xfa_object.XFAObjectArray(); + this.breakAfter = new _xfa_object.XFAObjectArray(); + this.breakBefore = new _xfa_object.XFAObjectArray(); + this.connect = new _xfa_object.XFAObjectArray(); + this.draw = new _xfa_object.XFAObjectArray(); + this.event = new _xfa_object.XFAObjectArray(); + this.exObject = new _xfa_object.XFAObjectArray(); + this.exclGroup = new _xfa_object.XFAObjectArray(); + this.field = new _xfa_object.XFAObjectArray(); + this.proto = new _xfa_object.XFAObjectArray(); + this.setProperty = new _xfa_object.XFAObjectArray(); + this.subform = new _xfa_object.XFAObjectArray(); + this.subformSet = new _xfa_object.XFAObjectArray(); + } + + [_xfa_object.$getSubformParent]() { + const parent = this[_xfa_object.$getParent](); + + if (parent instanceof SubformSet) { + return parent[_xfa_object.$getSubformParent](); + } + + return parent; + } + + [_xfa_object.$isBindable]() { + return true; + } + + [_xfa_object.$isThereMoreWidth]() { + return this.layout.endsWith("-tb") && this[_xfa_object.$extra].attempt === 0 && this[_xfa_object.$extra].numberInLine > 0 || this[_xfa_object.$getParent]()[_xfa_object.$isThereMoreWidth](); + } + + *[_xfa_object.$getContainedChildren]() { + yield* getContainedChildren(this); + } + + [_xfa_object.$flushHTML]() { + return (0, _layout.flushHTML)(this); + } + + [_xfa_object.$addHTML](html, bbox) { + (0, _layout.addHTML)(this, html, bbox); + } + + [_xfa_object.$getAvailableSpace]() { + return (0, _layout.getAvailableSpace)(this); + } + + [_xfa_object.$isSplittable]() { + const parent = this[_xfa_object.$getSubformParent](); + + if (!parent[_xfa_object.$isSplittable]()) { + return false; + } + + if (this[_xfa_object.$extra]._isSplittable !== undefined) { + return this[_xfa_object.$extra]._isSplittable; + } + + if (this.layout === "position" || this.layout.includes("row")) { + this[_xfa_object.$extra]._isSplittable = false; + return false; + } + + if (this.keep && this.keep.intact !== "none") { + this[_xfa_object.$extra]._isSplittable = false; + return false; + } + + if (parent.layout && parent.layout.endsWith("-tb") && parent[_xfa_object.$extra].numberInLine !== 0) { + return false; + } + + this[_xfa_object.$extra]._isSplittable = true; + return true; + } + + [_xfa_object.$toHTML](availableSpace) { + setTabIndex(this); + + if (this.break) { + if (this.break.after !== "auto" || this.break.afterTarget !== "") { + const node = new BreakAfter({ + targetType: this.break.after, + target: this.break.afterTarget, + startNew: this.break.startNew.toString() + }); + node[_xfa_object.$globalData] = this[_xfa_object.$globalData]; + + this[_xfa_object.$appendChild](node); + + this.breakAfter.push(node); + } + + if (this.break.before !== "auto" || this.break.beforeTarget !== "") { + const node = new BreakBefore({ + targetType: this.break.before, + target: this.break.beforeTarget, + startNew: this.break.startNew.toString() + }); + node[_xfa_object.$globalData] = this[_xfa_object.$globalData]; + + this[_xfa_object.$appendChild](node); + + this.breakBefore.push(node); + } + + if (this.break.overflowTarget !== "") { + const node = new Overflow({ + target: this.break.overflowTarget, + leader: this.break.overflowLeader, + trailer: this.break.overflowTrailer + }); + node[_xfa_object.$globalData] = this[_xfa_object.$globalData]; + + this[_xfa_object.$appendChild](node); + + this.overflow.push(node); + } + + this[_xfa_object.$removeChild](this.break); + + this.break = null; + } + + if (this.presence === "hidden" || this.presence === "inactive") { + return _utils.HTMLResult.EMPTY; + } + + if (this.breakBefore.children.length > 1 || this.breakAfter.children.length > 1) { + (0, _util.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."); + } + + if (this.breakBefore.children.length >= 1) { + const breakBefore = this.breakBefore.children[0]; + + if (handleBreak(breakBefore)) { + return _utils.HTMLResult.breakNode(breakBefore); + } + } + + if (this[_xfa_object.$extra] && this[_xfa_object.$extra].afterBreakAfter) { + return _utils.HTMLResult.EMPTY; + } + + (0, _html_utils.fixDimensions)(this); + const children = []; + const attributes = { + id: this[_xfa_object.$uid], + class: [] + }; + (0, _html_utils.setAccess)(this, attributes.class); + + if (!this[_xfa_object.$extra]) { + this[_xfa_object.$extra] = Object.create(null); + } + + Object.assign(this[_xfa_object.$extra], { + children, + line: null, + attributes, + attempt: 0, + numberInLine: 0, + availableSpace: { + width: Math.min(this.w || Infinity, availableSpace.width), + height: Math.min(this.h || Infinity, availableSpace.height) + }, + width: 0, + height: 0, + prevHeight: 0, + currentWidth: 0 + }); + + const root = this[_xfa_object.$getTemplateRoot](); + + const savedNoLayoutFailure = root[_xfa_object.$extra].noLayoutFailure; + + const isSplittable = this[_xfa_object.$isSplittable](); + + if (!isSplittable) { + setFirstUnsplittable(this); + } + + if (!(0, _layout.checkDimensions)(this, availableSpace)) { + return _utils.HTMLResult.FAILURE; + } + + const filter = new Set(["area", "draw", "exclGroup", "field", "subform", "subformSet"]); + + if (this.layout.includes("row")) { + const columnWidths = this[_xfa_object.$getSubformParent]().columnWidths; + + if (Array.isArray(columnWidths) && columnWidths.length > 0) { + this[_xfa_object.$extra].columnWidths = columnWidths; + this[_xfa_object.$extra].currentColumn = 0; + } + } + + const style = (0, _html_utils.toStyle)(this, "anchorType", "dimensions", "position", "presence", "border", "margin", "hAlign"); + const classNames = ["xfaSubform"]; + const cl = (0, _html_utils.layoutClass)(this); + + if (cl) { + classNames.push(cl); + } + + attributes.style = style; + attributes.class = classNames; + + if (this.name) { + attributes.xfaName = this.name; + } + + if (this.overflow) { + const overflowExtra = this.overflow[_xfa_object.$getExtra](); + + if (overflowExtra.addLeader) { + overflowExtra.addLeader = false; + handleOverflow(this, overflowExtra.leader, availableSpace); + } + } + + this[_xfa_object.$pushPara](); + + const isLrTb = this.layout === "lr-tb" || this.layout === "rl-tb"; + const maxRun = isLrTb ? MAX_ATTEMPTS_FOR_LRTB_LAYOUT : 1; + + for (; this[_xfa_object.$extra].attempt < maxRun; this[_xfa_object.$extra].attempt++) { + if (isLrTb && this[_xfa_object.$extra].attempt === MAX_ATTEMPTS_FOR_LRTB_LAYOUT - 1) { + this[_xfa_object.$extra].numberInLine = 0; + } + + const result = this[_xfa_object.$childrenToHTML]({ + filter, + include: true + }); + + if (result.success) { + break; + } + + if (result.isBreak()) { + this[_xfa_object.$popPara](); + + return result; + } + + if (isLrTb && this[_xfa_object.$extra].attempt === 0 && this[_xfa_object.$extra].numberInLine === 0 && !root[_xfa_object.$extra].noLayoutFailure) { + this[_xfa_object.$extra].attempt = maxRun; + break; + } + } + + this[_xfa_object.$popPara](); + + if (!isSplittable) { + unsetFirstUnsplittable(this); + } + + root[_xfa_object.$extra].noLayoutFailure = savedNoLayoutFailure; + + if (this[_xfa_object.$extra].attempt === maxRun) { + if (this.overflow) { + this[_xfa_object.$getTemplateRoot]()[_xfa_object.$extra].overflowNode = this.overflow; + } + + if (!isSplittable) { + delete this[_xfa_object.$extra]; + } + + return _utils.HTMLResult.FAILURE; + } + + if (this.overflow) { + const overflowExtra = this.overflow[_xfa_object.$getExtra](); + + if (overflowExtra.addTrailer) { + overflowExtra.addTrailer = false; + handleOverflow(this, overflowExtra.trailer, availableSpace); + } + } + + let marginH = 0; + let marginV = 0; + + if (this.margin) { + marginH = this.margin.leftInset + this.margin.rightInset; + marginV = this.margin.topInset + this.margin.bottomInset; + } + + const width = Math.max(this[_xfa_object.$extra].width + marginH, this.w || 0); + const height = Math.max(this[_xfa_object.$extra].height + marginV, this.h || 0); + const bbox = [this.x, this.y, width, height]; + + if (this.w === "") { + style.width = (0, _html_utils.measureToString)(width); + } + + if (this.h === "") { + style.height = (0, _html_utils.measureToString)(height); + } + + if ((style.width === "0px" || style.height === "0px") && children.length === 0) { + return _utils.HTMLResult.EMPTY; + } + + const html = { + name: "div", + attributes, + children + }; + applyAssist(this, attributes); + + const result = _utils.HTMLResult.success((0, _html_utils.createWrapper)(this, html), bbox); + + if (this.breakAfter.children.length >= 1) { + const breakAfter = this.breakAfter.children[0]; + + if (handleBreak(breakAfter)) { + this[_xfa_object.$extra].afterBreakAfter = result; + return _utils.HTMLResult.breakNode(breakAfter); + } + } + + delete this[_xfa_object.$extra]; + return result; + } + +} + +class SubformSet extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "subformSet", true); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.relation = (0, _utils.getStringOption)(attributes.relation, ["ordered", "choice", "unordered"]); + this.relevant = (0, _utils.getRelevant)(attributes.relevant); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.bookend = null; + this.break = null; + this.desc = null; + this.extras = null; + this.occur = null; + this.overflow = null; + this.breakAfter = new _xfa_object.XFAObjectArray(); + this.breakBefore = new _xfa_object.XFAObjectArray(); + this.subform = new _xfa_object.XFAObjectArray(); + this.subformSet = new _xfa_object.XFAObjectArray(); + } + + *[_xfa_object.$getContainedChildren]() { + yield* getContainedChildren(this); + } + + [_xfa_object.$getSubformParent]() { + let parent = this[_xfa_object.$getParent](); + + while (!(parent instanceof Subform)) { + parent = parent[_xfa_object.$getParent](); + } + + return parent; + } + + [_xfa_object.$isBindable]() { + return true; + } + +} + +class SubjectDN extends _xfa_object.ContentObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "subjectDN"); + this.delimiter = attributes.delimiter || ","; + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + + [_xfa_object.$finalize]() { + this[_xfa_object.$content] = new Map(this[_xfa_object.$content].split(this.delimiter).map(kv => { + kv = kv.split("=", 2); + kv[0] = kv[0].trim(); + return kv; + })); + } + +} + +class SubjectDNs extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "subjectDNs", true); + this.id = attributes.id || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.subjectDN = new _xfa_object.XFAObjectArray(); + } + +} + +class Submit extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "submit", true); + this.embedPDF = (0, _utils.getInteger)({ + data: attributes.embedPDF, + defaultValue: 0, + validate: x => x === 1 + }); + this.format = (0, _utils.getStringOption)(attributes.format, ["xdp", "formdata", "pdf", "urlencoded", "xfd", "xml"]); + this.id = attributes.id || ""; + this.target = attributes.target || ""; + this.textEncoding = (0, _utils.getKeyword)({ + data: attributes.textEncoding ? attributes.textEncoding.toLowerCase() : "", + defaultValue: "", + validate: k => ["utf-8", "big-five", "fontspecific", "gbk", "gb-18030", "gb-2312", "ksc-5601", "none", "shift-jis", "ucs-2", "utf-16"].includes(k) || k.match(/iso-8859-\d{2}/) + }); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.xdpContent = attributes.xdpContent || ""; + this.encrypt = null; + this.encryptData = new _xfa_object.XFAObjectArray(); + this.signData = new _xfa_object.XFAObjectArray(); + } + +} + +class Template extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "template", true); + this.baseProfile = (0, _utils.getStringOption)(attributes.baseProfile, ["full", "interactiveForms"]); + this.extras = null; + this.subform = new _xfa_object.XFAObjectArray(); + } + + [_xfa_object.$finalize]() { + if (this.subform.children.length === 0) { + (0, _util.warn)("XFA - No subforms in template node."); + } + + if (this.subform.children.length >= 2) { + (0, _util.warn)("XFA - Several subforms in template node: please file a bug."); + } + + this[_xfa_object.$tabIndex] = DEFAULT_TAB_INDEX; + } + + [_xfa_object.$isSplittable]() { + return true; + } + + [_xfa_object.$searchNode](expr, container) { + if (expr.startsWith("#")) { + return [this[_xfa_object.$ids].get(expr.slice(1))]; + } + + return (0, _som.searchNode)(this, container, expr, true, true); + } + + *[_xfa_object.$toPages]() { + if (!this.subform.children.length) { + return _utils.HTMLResult.success({ + name: "div", + children: [] + }); + } + + this[_xfa_object.$extra] = { + overflowNode: null, + firstUnsplittable: null, + currentContentArea: null, + currentPageArea: null, + noLayoutFailure: false, + pageNumber: 1, + pagePosition: "first", + oddOrEven: "odd", + blankOrNotBlank: "nonBlank", + paraStack: [] + }; + const root = this.subform.children[0]; + + root.pageSet[_xfa_object.$cleanPage](); + + const pageAreas = root.pageSet.pageArea.children; + const mainHtml = { + name: "div", + children: [] + }; + let pageArea = null; + let breakBefore = null; + let breakBeforeTarget = null; + + if (root.breakBefore.children.length >= 1) { + breakBefore = root.breakBefore.children[0]; + breakBeforeTarget = breakBefore.target; + } else if (root.subform.children.length >= 1 && root.subform.children[0].breakBefore.children.length >= 1) { + breakBefore = root.subform.children[0].breakBefore.children[0]; + breakBeforeTarget = breakBefore.target; + } else if (root.break && root.break.beforeTarget) { + breakBefore = root.break; + breakBeforeTarget = breakBefore.beforeTarget; + } else if (root.subform.children.length >= 1 && root.subform.children[0].break && root.subform.children[0].break.beforeTarget) { + breakBefore = root.subform.children[0].break; + breakBeforeTarget = breakBefore.beforeTarget; + } + + if (breakBefore) { + const target = this[_xfa_object.$searchNode](breakBeforeTarget, breakBefore[_xfa_object.$getParent]()); + + if (target instanceof PageArea) { + pageArea = target; + breakBefore[_xfa_object.$extra] = {}; + } + } + + if (!pageArea) { + pageArea = pageAreas[0]; + } + + pageArea[_xfa_object.$extra] = { + numberOfUse: 1 + }; + + const pageAreaParent = pageArea[_xfa_object.$getParent](); + + pageAreaParent[_xfa_object.$extra] = { + numberOfUse: 1, + pageIndex: pageAreaParent.pageArea.children.indexOf(pageArea), + pageSetIndex: 0 + }; + let targetPageArea; + let leader = null; + let trailer = null; + let hasSomething = true; + let hasSomethingCounter = 0; + let startIndex = 0; + + while (true) { + if (!hasSomething) { + mainHtml.children.pop(); + + if (++hasSomethingCounter === MAX_EMPTY_PAGES) { + (0, _util.warn)("XFA - Something goes wrong: please file a bug."); + return mainHtml; + } + } else { + hasSomethingCounter = 0; + } + + targetPageArea = null; + this[_xfa_object.$extra].currentPageArea = pageArea; + + const page = pageArea[_xfa_object.$toHTML]().html; + + mainHtml.children.push(page); + + if (leader) { + this[_xfa_object.$extra].noLayoutFailure = true; + page.children.push(leader[_xfa_object.$toHTML](pageArea[_xfa_object.$extra].space).html); + leader = null; + } + + if (trailer) { + this[_xfa_object.$extra].noLayoutFailure = true; + page.children.push(trailer[_xfa_object.$toHTML](pageArea[_xfa_object.$extra].space).html); + trailer = null; + } + + const contentAreas = pageArea.contentArea.children; + const htmlContentAreas = page.children.filter(node => node.attributes.class.includes("xfaContentarea")); + hasSomething = false; + this[_xfa_object.$extra].firstUnsplittable = null; + this[_xfa_object.$extra].noLayoutFailure = false; + + const flush = index => { + const html = root[_xfa_object.$flushHTML](); + + if (html) { + hasSomething = hasSomething || html.children && html.children.length !== 0; + htmlContentAreas[index].children.push(html); + } + }; + + for (let i = startIndex, ii = contentAreas.length; i < ii; i++) { + const contentArea = this[_xfa_object.$extra].currentContentArea = contentAreas[i]; + const space = { + width: contentArea.w, + height: contentArea.h + }; + startIndex = 0; + + if (leader) { + htmlContentAreas[i].children.push(leader[_xfa_object.$toHTML](space).html); + leader = null; + } + + if (trailer) { + htmlContentAreas[i].children.push(trailer[_xfa_object.$toHTML](space).html); + trailer = null; + } + + const html = root[_xfa_object.$toHTML](space); + + if (html.success) { + if (html.html) { + hasSomething = hasSomething || html.html.children && html.html.children.length !== 0; + htmlContentAreas[i].children.push(html.html); + } else if (!hasSomething && mainHtml.children.length > 1) { + mainHtml.children.pop(); + } + + return mainHtml; + } + + if (html.isBreak()) { + const node = html.breakNode; + flush(i); + + if (node.targetType === "auto") { + continue; + } + + if (node.leader) { + leader = this[_xfa_object.$searchNode](node.leader, node[_xfa_object.$getParent]()); + leader = leader ? leader[0] : null; + } + + if (node.trailer) { + trailer = this[_xfa_object.$searchNode](node.trailer, node[_xfa_object.$getParent]()); + trailer = trailer ? trailer[0] : null; + } + + if (node.targetType === "pageArea") { + targetPageArea = node[_xfa_object.$extra].target; + i = Infinity; + } else if (!node[_xfa_object.$extra].target) { + i = node[_xfa_object.$extra].index; + } else { + targetPageArea = node[_xfa_object.$extra].target; + startIndex = node[_xfa_object.$extra].index + 1; + i = Infinity; + } + + continue; + } + + if (this[_xfa_object.$extra].overflowNode) { + const node = this[_xfa_object.$extra].overflowNode; + this[_xfa_object.$extra].overflowNode = null; + + const overflowExtra = node[_xfa_object.$getExtra](); + + const target = overflowExtra.target; + overflowExtra.addLeader = overflowExtra.leader !== null; + overflowExtra.addTrailer = overflowExtra.trailer !== null; + flush(i); + const currentIndex = i; + i = Infinity; + + if (target instanceof PageArea) { + targetPageArea = target; + } else if (target instanceof ContentArea) { + const index = contentAreas.indexOf(target); + + if (index !== -1) { + if (index > currentIndex) { + i = index - 1; + } else { + startIndex = index; + } + } else { + targetPageArea = target[_xfa_object.$getParent](); + startIndex = targetPageArea.contentArea.children.indexOf(target); + } + } + + continue; + } + + flush(i); + } + + this[_xfa_object.$extra].pageNumber += 1; + + if (targetPageArea) { + if (targetPageArea[_xfa_object.$isUsable]()) { + targetPageArea[_xfa_object.$extra].numberOfUse += 1; + } else { + targetPageArea = null; + } + } + + pageArea = targetPageArea || pageArea[_xfa_object.$getNextPage](); + yield null; + } + } + +} + +exports.Template = Template; + +class Text extends _xfa_object.ContentObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "text"); + this.id = attributes.id || ""; + this.maxChars = (0, _utils.getInteger)({ + data: attributes.maxChars, + defaultValue: 0, + validate: x => x >= 0 + }); + this.name = attributes.name || ""; + this.rid = attributes.rid || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + + [_xfa_object.$acceptWhitespace]() { + return true; + } + + [_xfa_object.$onChild](child) { + if (child[_xfa_object.$namespaceId] === _namespaces.NamespaceIds.xhtml.id) { + this[_xfa_object.$content] = child; + return true; + } + + (0, _util.warn)(`XFA - Invalid content in Text: ${child[_xfa_object.$nodeName]}.`); + return false; + } + + [_xfa_object.$onText](str) { + if (this[_xfa_object.$content] instanceof _xfa_object.XFAObject) { + return; + } + + super[_xfa_object.$onText](str); + } + + [_xfa_object.$finalize]() { + if (typeof this[_xfa_object.$content] === "string") { + this[_xfa_object.$content] = this[_xfa_object.$content].replace(/\r\n/g, "\n"); + } + } + + [_xfa_object.$getExtra]() { + if (typeof this[_xfa_object.$content] === "string") { + return this[_xfa_object.$content].split(/[\u2029\u2028\n]/).reduce((acc, line) => { + if (line) { + acc.push(line); + } + + return acc; + }, []).join("\n"); + } + + return this[_xfa_object.$content][_xfa_object.$text](); + } + + [_xfa_object.$toHTML](availableSpace) { + if (typeof this[_xfa_object.$content] === "string") { + const html = valueToHtml(this[_xfa_object.$content]).html; + + if (this[_xfa_object.$content].includes("\u2029")) { + html.name = "div"; + html.children = []; + + this[_xfa_object.$content].split("\u2029").map(para => para.split(/[\u2028\n]/).reduce((acc, line) => { + acc.push({ + name: "span", + value: line + }, { + name: "br" + }); + return acc; + }, [])).forEach(lines => { + html.children.push({ + name: "p", + children: lines + }); + }); + } else if (/[\u2028\n]/.test(this[_xfa_object.$content])) { + html.name = "div"; + html.children = []; + + this[_xfa_object.$content].split(/[\u2028\n]/).forEach(line => { + html.children.push({ + name: "span", + value: line + }, { + name: "br" + }); + }); + } + + return _utils.HTMLResult.success(html); + } + + return this[_xfa_object.$content][_xfa_object.$toHTML](availableSpace); + } + +} + +exports.Text = Text; + +class TextEdit extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "textEdit", true); + this.allowRichText = (0, _utils.getInteger)({ + data: attributes.allowRichText, + defaultValue: 0, + validate: x => x === 1 + }); + this.hScrollPolicy = (0, _utils.getStringOption)(attributes.hScrollPolicy, ["auto", "off", "on"]); + this.id = attributes.id || ""; + this.multiLine = (0, _utils.getInteger)({ + data: attributes.multiLine, + defaultValue: "", + validate: x => x === 0 || x === 1 + }); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.vScrollPolicy = (0, _utils.getStringOption)(attributes.vScrollPolicy, ["auto", "off", "on"]); + this.border = null; + this.comb = null; + this.extras = null; + this.margin = null; + } + + [_xfa_object.$toHTML](availableSpace) { + const style = (0, _html_utils.toStyle)(this, "border", "font", "margin"); + let html; + + const field = this[_xfa_object.$getParent]()[_xfa_object.$getParent](); + + if (this.multiLine === "") { + this.multiLine = field instanceof Draw ? 1 : 0; + } + + if (this.multiLine === 1) { + html = { + name: "textarea", + attributes: { + dataId: field[_xfa_object.$data] && field[_xfa_object.$data][_xfa_object.$uid] || field[_xfa_object.$uid], + fieldId: field[_xfa_object.$uid], + class: ["xfaTextfield"], + style, + "aria-label": ariaLabel(field), + "aria-required": false + } + }; + } else { + html = { + name: "input", + attributes: { + type: "text", + dataId: field[_xfa_object.$data] && field[_xfa_object.$data][_xfa_object.$uid] || field[_xfa_object.$uid], + fieldId: field[_xfa_object.$uid], + class: ["xfaTextfield"], + style, + "aria-label": ariaLabel(field), + "aria-required": false + } + }; + } + + if (isRequired(field)) { + html.attributes["aria-required"] = true; + html.attributes.required = true; + } + + return _utils.HTMLResult.success({ + name: "label", + attributes: { + class: ["xfaLabel"] + }, + children: [html] + }); + } + +} + +class Time extends _xfa_object.StringObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "time"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + + [_xfa_object.$finalize]() { + const date = this[_xfa_object.$content].trim(); + + this[_xfa_object.$content] = date ? new Date(date) : null; + } + + [_xfa_object.$toHTML](availableSpace) { + return valueToHtml(this[_xfa_object.$content] ? this[_xfa_object.$content].toString() : ""); + } + +} + +class TimeStamp extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "timeStamp"); + this.id = attributes.id || ""; + this.server = attributes.server || ""; + this.type = (0, _utils.getStringOption)(attributes.type, ["optional", "required"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class ToolTip extends _xfa_object.StringObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "toolTip"); + this.id = attributes.id || ""; + this.rid = attributes.rid || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Traversal extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "traversal", true); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + this.traverse = new _xfa_object.XFAObjectArray(); + } + +} + +class Traverse extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "traverse", true); + this.id = attributes.id || ""; + this.operation = (0, _utils.getStringOption)(attributes.operation, ["next", "back", "down", "first", "left", "right", "up"]); + this.ref = attributes.ref || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + this.script = null; + } + + get name() { + return this.operation; + } + + [_xfa_object.$isTransparent]() { + return false; + } + +} + +class Ui extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "ui", true); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + this.picture = null; + this.barcode = null; + this.button = null; + this.checkButton = null; + this.choiceList = null; + this.dateTimeEdit = null; + this.defaultUi = null; + this.imageEdit = null; + this.numericEdit = null; + this.passwordEdit = null; + this.signature = null; + this.textEdit = null; + } + + [_xfa_object.$getExtra]() { + if (this[_xfa_object.$extra] === undefined) { + for (const name of Object.getOwnPropertyNames(this)) { + if (name === "extras" || name === "picture") { + continue; + } + + const obj = this[name]; + + if (!(obj instanceof _xfa_object.XFAObject)) { + continue; + } + + this[_xfa_object.$extra] = obj; + return obj; + } + + this[_xfa_object.$extra] = null; + } + + return this[_xfa_object.$extra]; + } + + [_xfa_object.$toHTML](availableSpace) { + const obj = this[_xfa_object.$getExtra](); + + if (obj) { + return obj[_xfa_object.$toHTML](availableSpace); + } + + return _utils.HTMLResult.EMPTY; + } + +} + +class Validate extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "validate", true); + this.formatTest = (0, _utils.getStringOption)(attributes.formatTest, ["warning", "disabled", "error"]); + this.id = attributes.id || ""; + this.nullTest = (0, _utils.getStringOption)(attributes.nullTest, ["disabled", "error", "warning"]); + this.scriptTest = (0, _utils.getStringOption)(attributes.scriptTest, ["error", "disabled", "warning"]); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.extras = null; + this.message = null; + this.picture = null; + this.script = null; + } + +} + +class Value extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "value", true); + this.id = attributes.id || ""; + this.override = (0, _utils.getInteger)({ + data: attributes.override, + defaultValue: 0, + validate: x => x === 1 + }); + this.relevant = (0, _utils.getRelevant)(attributes.relevant); + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.arc = null; + this.boolean = null; + this.date = null; + this.dateTime = null; + this.decimal = null; + this.exData = null; + this.float = null; + this.image = null; + this.integer = null; + this.line = null; + this.rectangle = null; + this.text = null; + this.time = null; + } + + [_xfa_object.$setValue](value) { + const parent = this[_xfa_object.$getParent](); + + if (parent instanceof Field) { + if (parent.ui && parent.ui.imageEdit) { + if (!this.image) { + this.image = new Image({}); + + this[_xfa_object.$appendChild](this.image); + } + + this.image[_xfa_object.$content] = value[_xfa_object.$content]; + return; + } + } + + const valueName = value[_xfa_object.$nodeName]; + + if (this[valueName] !== null) { + this[valueName][_xfa_object.$content] = value[_xfa_object.$content]; + return; + } + + for (const name of Object.getOwnPropertyNames(this)) { + const obj = this[name]; + + if (obj instanceof _xfa_object.XFAObject) { + this[name] = null; + + this[_xfa_object.$removeChild](obj); + } + } + + this[value[_xfa_object.$nodeName]] = value; + + this[_xfa_object.$appendChild](value); + } + + [_xfa_object.$text]() { + if (this.exData) { + if (typeof this.exData[_xfa_object.$content] === "string") { + return this.exData[_xfa_object.$content].trim(); + } + + return this.exData[_xfa_object.$content][_xfa_object.$text]().trim(); + } + + for (const name of Object.getOwnPropertyNames(this)) { + if (name === "image") { + continue; + } + + const obj = this[name]; + + if (obj instanceof _xfa_object.XFAObject) { + return (obj[_xfa_object.$content] || "").toString().trim(); + } + } + + return null; + } + + [_xfa_object.$toHTML](availableSpace) { + for (const name of Object.getOwnPropertyNames(this)) { + const obj = this[name]; + + if (!(obj instanceof _xfa_object.XFAObject)) { + continue; + } + + return obj[_xfa_object.$toHTML](availableSpace); + } + + return _utils.HTMLResult.EMPTY; + } + +} + +exports.Value = Value; + +class Variables extends _xfa_object.XFAObject { + constructor(attributes) { + super(TEMPLATE_NS_ID, "variables", true); + this.id = attributes.id || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + this.boolean = new _xfa_object.XFAObjectArray(); + this.date = new _xfa_object.XFAObjectArray(); + this.dateTime = new _xfa_object.XFAObjectArray(); + this.decimal = new _xfa_object.XFAObjectArray(); + this.exData = new _xfa_object.XFAObjectArray(); + this.float = new _xfa_object.XFAObjectArray(); + this.image = new _xfa_object.XFAObjectArray(); + this.integer = new _xfa_object.XFAObjectArray(); + this.manifest = new _xfa_object.XFAObjectArray(); + this.script = new _xfa_object.XFAObjectArray(); + this.text = new _xfa_object.XFAObjectArray(); + this.time = new _xfa_object.XFAObjectArray(); + } + + [_xfa_object.$isTransparent]() { + return true; + } + +} + +class TemplateNamespace { + static [_namespaces.$buildXFAObject](name, attributes) { + if (TemplateNamespace.hasOwnProperty(name)) { + const node = TemplateNamespace[name](attributes); + + node[_xfa_object.$setSetAttributes](attributes); + + return node; + } + + return undefined; + } + + static appearanceFilter(attrs) { + return new AppearanceFilter(attrs); + } + + static arc(attrs) { + return new Arc(attrs); + } + + static area(attrs) { + return new Area(attrs); + } + + static assist(attrs) { + return new Assist(attrs); + } + + static barcode(attrs) { + return new Barcode(attrs); + } + + static bind(attrs) { + return new Bind(attrs); + } + + static bindItems(attrs) { + return new BindItems(attrs); + } + + static bookend(attrs) { + return new Bookend(attrs); + } + + static boolean(attrs) { + return new BooleanElement(attrs); + } + + static border(attrs) { + return new Border(attrs); + } + + static break(attrs) { + return new Break(attrs); + } + + static breakAfter(attrs) { + return new BreakAfter(attrs); + } + + static breakBefore(attrs) { + return new BreakBefore(attrs); + } + + static button(attrs) { + return new Button(attrs); + } + + static calculate(attrs) { + return new Calculate(attrs); + } + + static caption(attrs) { + return new Caption(attrs); + } + + static certificate(attrs) { + return new Certificate(attrs); + } + + static certificates(attrs) { + return new Certificates(attrs); + } + + static checkButton(attrs) { + return new CheckButton(attrs); + } + + static choiceList(attrs) { + return new ChoiceList(attrs); + } + + static color(attrs) { + return new Color(attrs); + } + + static comb(attrs) { + return new Comb(attrs); + } + + static connect(attrs) { + return new Connect(attrs); + } + + static contentArea(attrs) { + return new ContentArea(attrs); + } + + static corner(attrs) { + return new Corner(attrs); + } + + static date(attrs) { + return new DateElement(attrs); + } + + static dateTime(attrs) { + return new DateTime(attrs); + } + + static dateTimeEdit(attrs) { + return new DateTimeEdit(attrs); + } + + static decimal(attrs) { + return new Decimal(attrs); + } + + static defaultUi(attrs) { + return new DefaultUi(attrs); + } + + static desc(attrs) { + return new Desc(attrs); + } + + static digestMethod(attrs) { + return new DigestMethod(attrs); + } + + static digestMethods(attrs) { + return new DigestMethods(attrs); + } + + static draw(attrs) { + return new Draw(attrs); + } + + static edge(attrs) { + return new Edge(attrs); + } + + static encoding(attrs) { + return new Encoding(attrs); + } + + static encodings(attrs) { + return new Encodings(attrs); + } + + static encrypt(attrs) { + return new Encrypt(attrs); + } + + static encryptData(attrs) { + return new EncryptData(attrs); + } + + static encryption(attrs) { + return new Encryption(attrs); + } + + static encryptionMethod(attrs) { + return new EncryptionMethod(attrs); + } + + static encryptionMethods(attrs) { + return new EncryptionMethods(attrs); + } + + static event(attrs) { + return new Event(attrs); + } + + static exData(attrs) { + return new ExData(attrs); + } + + static exObject(attrs) { + return new ExObject(attrs); + } + + static exclGroup(attrs) { + return new ExclGroup(attrs); + } + + static execute(attrs) { + return new Execute(attrs); + } + + static extras(attrs) { + return new Extras(attrs); + } + + static field(attrs) { + return new Field(attrs); + } + + static fill(attrs) { + return new Fill(attrs); + } + + static filter(attrs) { + return new Filter(attrs); + } + + static float(attrs) { + return new Float(attrs); + } + + static font(attrs) { + return new Font(attrs); + } + + static format(attrs) { + return new Format(attrs); + } + + static handler(attrs) { + return new Handler(attrs); + } + + static hyphenation(attrs) { + return new Hyphenation(attrs); + } + + static image(attrs) { + return new Image(attrs); + } + + static imageEdit(attrs) { + return new ImageEdit(attrs); + } + + static integer(attrs) { + return new Integer(attrs); + } + + static issuers(attrs) { + return new Issuers(attrs); + } + + static items(attrs) { + return new Items(attrs); + } + + static keep(attrs) { + return new Keep(attrs); + } + + static keyUsage(attrs) { + return new KeyUsage(attrs); + } + + static line(attrs) { + return new Line(attrs); + } + + static linear(attrs) { + return new Linear(attrs); + } + + static lockDocument(attrs) { + return new LockDocument(attrs); + } + + static manifest(attrs) { + return new Manifest(attrs); + } + + static margin(attrs) { + return new Margin(attrs); + } + + static mdp(attrs) { + return new Mdp(attrs); + } + + static medium(attrs) { + return new Medium(attrs); + } + + static message(attrs) { + return new Message(attrs); + } + + static numericEdit(attrs) { + return new NumericEdit(attrs); + } + + static occur(attrs) { + return new Occur(attrs); + } + + static oid(attrs) { + return new Oid(attrs); + } + + static oids(attrs) { + return new Oids(attrs); + } + + static overflow(attrs) { + return new Overflow(attrs); + } + + static pageArea(attrs) { + return new PageArea(attrs); + } + + static pageSet(attrs) { + return new PageSet(attrs); + } + + static para(attrs) { + return new Para(attrs); + } + + static passwordEdit(attrs) { + return new PasswordEdit(attrs); + } + + static pattern(attrs) { + return new Pattern(attrs); + } + + static picture(attrs) { + return new Picture(attrs); + } + + static proto(attrs) { + return new Proto(attrs); + } + + static radial(attrs) { + return new Radial(attrs); + } + + static reason(attrs) { + return new Reason(attrs); + } + + static reasons(attrs) { + return new Reasons(attrs); + } + + static rectangle(attrs) { + return new Rectangle(attrs); + } + + static ref(attrs) { + return new RefElement(attrs); + } + + static script(attrs) { + return new Script(attrs); + } + + static setProperty(attrs) { + return new SetProperty(attrs); + } + + static signData(attrs) { + return new SignData(attrs); + } + + static signature(attrs) { + return new Signature(attrs); + } + + static signing(attrs) { + return new Signing(attrs); + } + + static solid(attrs) { + return new Solid(attrs); + } + + static speak(attrs) { + return new Speak(attrs); + } + + static stipple(attrs) { + return new Stipple(attrs); + } + + static subform(attrs) { + return new Subform(attrs); + } + + static subformSet(attrs) { + return new SubformSet(attrs); + } + + static subjectDN(attrs) { + return new SubjectDN(attrs); + } + + static subjectDNs(attrs) { + return new SubjectDNs(attrs); + } + + static submit(attrs) { + return new Submit(attrs); + } + + static template(attrs) { + return new Template(attrs); + } + + static text(attrs) { + return new Text(attrs); + } + + static textEdit(attrs) { + return new TextEdit(attrs); + } + + static time(attrs) { + return new Time(attrs); + } + + static timeStamp(attrs) { + return new TimeStamp(attrs); + } + + static toolTip(attrs) { + return new ToolTip(attrs); + } + + static traversal(attrs) { + return new Traversal(attrs); + } + + static traverse(attrs) { + return new Traverse(attrs); + } + + static ui(attrs) { + return new Ui(attrs); + } + + static validate(attrs) { + return new Validate(attrs); + } + + static value(attrs) { + return new Value(attrs); + } + + static variables(attrs) { + return new Variables(attrs); + } + +} + +exports.TemplateNamespace = TemplateNamespace; + +/***/ }), +/* 83 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.addHTML = addHTML; +exports.checkDimensions = checkDimensions; +exports.flushHTML = flushHTML; +exports.getAvailableSpace = getAvailableSpace; + +var _xfa_object = __w_pdfjs_require__(77); + +var _html_utils = __w_pdfjs_require__(84); + +function createLine(node, children) { + return { + name: "div", + attributes: { + class: [node.layout === "lr-tb" ? "xfaLr" : "xfaRl"] + }, + children + }; +} + +function flushHTML(node) { + if (!node[_xfa_object.$extra]) { + return null; + } + + const attributes = node[_xfa_object.$extra].attributes; + const html = { + name: "div", + attributes, + children: node[_xfa_object.$extra].children + }; + + if (node[_xfa_object.$extra].failingNode) { + const htmlFromFailing = node[_xfa_object.$extra].failingNode[_xfa_object.$flushHTML](); + + if (htmlFromFailing) { + if (node.layout.endsWith("-tb")) { + html.children.push(createLine(node, [htmlFromFailing])); + } else { + html.children.push(htmlFromFailing); + } + } + } + + if (html.children.length === 0) { + return null; + } + + return html; +} + +function addHTML(node, html, bbox) { + const extra = node[_xfa_object.$extra]; + const availableSpace = extra.availableSpace; + const [x, y, w, h] = bbox; + + switch (node.layout) { + case "position": + { + extra.width = Math.max(extra.width, x + w); + extra.height = Math.max(extra.height, y + h); + extra.children.push(html); + break; + } + + case "lr-tb": + case "rl-tb": + if (!extra.line || extra.attempt === 1) { + extra.line = createLine(node, []); + extra.children.push(extra.line); + extra.numberInLine = 0; + } + + extra.numberInLine += 1; + extra.line.children.push(html); + + if (extra.attempt === 0) { + extra.currentWidth += w; + extra.height = Math.max(extra.height, extra.prevHeight + h); + } else { + extra.currentWidth = w; + extra.prevHeight = extra.height; + extra.height += h; + extra.attempt = 0; + } + + extra.width = Math.max(extra.width, extra.currentWidth); + break; + + case "rl-row": + case "row": + { + extra.children.push(html); + extra.width += w; + extra.height = Math.max(extra.height, h); + const height = (0, _html_utils.measureToString)(extra.height); + + for (const child of extra.children) { + child.attributes.style.height = height; + } + + break; + } + + case "table": + { + extra.width = Math.min(availableSpace.width, Math.max(extra.width, w)); + extra.height += h; + extra.children.push(html); + break; + } + + case "tb": + { + extra.width = Math.min(availableSpace.width, Math.max(extra.width, w)); + extra.height += h; + extra.children.push(html); + break; + } + } +} + +function getAvailableSpace(node) { + const availableSpace = node[_xfa_object.$extra].availableSpace; + const marginV = node.margin ? node.margin.topInset + node.margin.bottomInset : 0; + const marginH = node.margin ? node.margin.leftInset + node.margin.rightInset : 0; + + switch (node.layout) { + case "lr-tb": + case "rl-tb": + if (node[_xfa_object.$extra].attempt === 0) { + return { + width: availableSpace.width - marginH - node[_xfa_object.$extra].currentWidth, + height: availableSpace.height - marginV - node[_xfa_object.$extra].prevHeight + }; + } + + return { + width: availableSpace.width - marginH, + height: availableSpace.height - marginV - node[_xfa_object.$extra].height + }; + + case "rl-row": + case "row": + const width = node[_xfa_object.$extra].columnWidths.slice(node[_xfa_object.$extra].currentColumn).reduce((a, x) => a + x); + + return { + width, + height: availableSpace.height - marginH + }; + + case "table": + case "tb": + return { + width: availableSpace.width - marginH, + height: availableSpace.height - marginV - node[_xfa_object.$extra].height + }; + + case "position": + default: + return availableSpace; + } +} + +function getTransformedBBox(node) { + let w = node.w === "" ? NaN : node.w; + let h = node.h === "" ? NaN : node.h; + let [centerX, centerY] = [0, 0]; + + switch (node.anchorType || "") { + case "bottomCenter": + [centerX, centerY] = [w / 2, h]; + break; + + case "bottomLeft": + [centerX, centerY] = [0, h]; + break; + + case "bottomRight": + [centerX, centerY] = [w, h]; + break; + + case "middleCenter": + [centerX, centerY] = [w / 2, h / 2]; + break; + + case "middleLeft": + [centerX, centerY] = [0, h / 2]; + break; + + case "middleRight": + [centerX, centerY] = [w, h / 2]; + break; + + case "topCenter": + [centerX, centerY] = [w / 2, 0]; + break; + + case "topRight": + [centerX, centerY] = [w, 0]; + break; + } + + let x, y; + + switch (node.rotate || 0) { + case 0: + [x, y] = [-centerX, -centerY]; + break; + + case 90: + [x, y] = [-centerY, centerX]; + [w, h] = [h, -w]; + break; + + case 180: + [x, y] = [centerX, centerY]; + [w, h] = [-w, -h]; + break; + + case 270: + [x, y] = [centerY, -centerX]; + [w, h] = [-h, w]; + break; + } + + return [node.x + x + Math.min(0, w), node.y + y + Math.min(0, h), Math.abs(w), Math.abs(h)]; +} + +function checkDimensions(node, space) { + if (node[_xfa_object.$getTemplateRoot]()[_xfa_object.$extra].firstUnsplittable === null) { + return true; + } + + if (node.w === 0 || node.h === 0) { + return true; + } + + const ERROR = 2; + + const parent = node[_xfa_object.$getSubformParent](); + + const attempt = parent[_xfa_object.$extra] && parent[_xfa_object.$extra].attempt || 0; + const [, y, w, h] = getTransformedBBox(node); + + switch (parent.layout) { + case "lr-tb": + case "rl-tb": + if (attempt === 0) { + if (!node[_xfa_object.$getTemplateRoot]()[_xfa_object.$extra].noLayoutFailure) { + if (node.h !== "" && Math.round(h - space.height) > ERROR) { + return false; + } + + if (node.w !== "") { + if (Math.round(w - space.width) <= ERROR) { + return true; + } + + if (parent[_xfa_object.$extra].numberInLine === 0) { + return space.height > ERROR; + } + + return false; + } + + return space.width > ERROR; + } + + if (node.w !== "") { + return Math.round(w - space.width) <= ERROR; + } + + return space.width > ERROR; + } + + if (node[_xfa_object.$getTemplateRoot]()[_xfa_object.$extra].noLayoutFailure) { + return true; + } + + if (node.h !== "" && Math.round(h - space.height) > ERROR) { + return false; + } + + if (node.w === "" || Math.round(w - space.width) <= ERROR) { + return space.height > ERROR; + } + + if (parent[_xfa_object.$isThereMoreWidth]()) { + return false; + } + + return space.height > ERROR; + + case "table": + case "tb": + if (node[_xfa_object.$getTemplateRoot]()[_xfa_object.$extra].noLayoutFailure) { + return true; + } + + if (node.h !== "" && !node[_xfa_object.$isSplittable]()) { + return Math.round(h - space.height) <= ERROR; + } + + if (node.w === "" || Math.round(w - space.width) <= ERROR) { + return space.height > ERROR; + } + + if (parent[_xfa_object.$isThereMoreWidth]()) { + return false; + } + + return space.height > ERROR; + + case "position": + if (node[_xfa_object.$getTemplateRoot]()[_xfa_object.$extra].noLayoutFailure) { + return true; + } + + if (node.h === "" || Math.round(h + y - space.height) <= ERROR) { + return true; + } + + const area = node[_xfa_object.$getTemplateRoot]()[_xfa_object.$extra].currentContentArea; + + return h + y > area.h; + + case "rl-row": + case "row": + if (node[_xfa_object.$getTemplateRoot]()[_xfa_object.$extra].noLayoutFailure) { + return true; + } + + if (node.h !== "") { + return Math.round(h - space.height) <= ERROR; + } + + return true; + + default: + return true; + } +} + +/***/ }), +/* 84 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.computeBbox = computeBbox; +exports.createWrapper = createWrapper; +exports.fixDimensions = fixDimensions; +exports.fixTextIndent = fixTextIndent; +exports.fixURL = fixURL; +exports.isPrintOnly = isPrintOnly; +exports.layoutClass = layoutClass; +exports.layoutNode = layoutNode; +exports.measureToString = measureToString; +exports.setAccess = setAccess; +exports.setFontFamily = setFontFamily; +exports.setMinMaxDimensions = setMinMaxDimensions; +exports.setPara = setPara; +exports.toStyle = toStyle; + +var _xfa_object = __w_pdfjs_require__(77); + +var _util = __w_pdfjs_require__(2); + +var _utils = __w_pdfjs_require__(78); + +var _fonts = __w_pdfjs_require__(85); + +var _text = __w_pdfjs_require__(86); + +function measureToString(m) { + if (typeof m === "string") { + return "0px"; + } + + return Number.isInteger(m) ? `${m}px` : `${m.toFixed(2)}px`; +} + +const converters = { + anchorType(node, style) { + const parent = node[_xfa_object.$getSubformParent](); + + if (!parent || parent.layout && parent.layout !== "position") { + return; + } + + if (!("transform" in style)) { + style.transform = ""; + } + + switch (node.anchorType) { + case "bottomCenter": + style.transform += "translate(-50%, -100%)"; + break; + + case "bottomLeft": + style.transform += "translate(0,-100%)"; + break; + + case "bottomRight": + style.transform += "translate(-100%,-100%)"; + break; + + case "middleCenter": + style.transform += "translate(-50%,-50%)"; + break; + + case "middleLeft": + style.transform += "translate(0,-50%)"; + break; + + case "middleRight": + style.transform += "translate(-100%,-50%)"; + break; + + case "topCenter": + style.transform += "translate(-50%,0)"; + break; + + case "topRight": + style.transform += "translate(-100%,0)"; + break; + } + }, + + dimensions(node, style) { + const parent = node[_xfa_object.$getSubformParent](); + + let width = node.w; + const height = node.h; + + if (parent.layout && parent.layout.includes("row")) { + const extra = parent[_xfa_object.$extra]; + const colSpan = node.colSpan; + let w; + + if (colSpan === -1) { + w = extra.columnWidths.slice(extra.currentColumn).reduce((a, x) => a + x, 0); + extra.currentColumn = 0; + } else { + w = extra.columnWidths.slice(extra.currentColumn, extra.currentColumn + colSpan).reduce((a, x) => a + x, 0); + extra.currentColumn = (extra.currentColumn + node.colSpan) % extra.columnWidths.length; + } + + if (!isNaN(w)) { + width = node.w = w; + } + } + + if (width !== "") { + style.width = measureToString(width); + } else { + style.width = "auto"; + } + + if (height !== "") { + style.height = measureToString(height); + } else { + style.height = "auto"; + } + }, + + position(node, style) { + const parent = node[_xfa_object.$getSubformParent](); + + if (parent && parent.layout && parent.layout !== "position") { + return; + } + + style.position = "absolute"; + style.left = measureToString(node.x); + style.top = measureToString(node.y); + }, + + rotate(node, style) { + if (node.rotate) { + if (!("transform" in style)) { + style.transform = ""; + } + + style.transform += `rotate(-${node.rotate}deg)`; + style.transformOrigin = "top left"; + } + }, + + presence(node, style) { + switch (node.presence) { + case "invisible": + style.visibility = "hidden"; + break; + + case "hidden": + case "inactive": + style.display = "none"; + break; + } + }, + + hAlign(node, style) { + if (node[_xfa_object.$nodeName] === "para") { + switch (node.hAlign) { + case "justifyAll": + style.textAlign = "justify-all"; + break; + + case "radix": + style.textAlign = "left"; + break; + + default: + style.textAlign = node.hAlign; + } + } else { + switch (node.hAlign) { + case "left": + style.alignSelf = "start"; + break; + + case "center": + style.alignSelf = "center"; + break; + + case "right": + style.alignSelf = "end"; + break; + } + } + }, + + margin(node, style) { + if (node.margin) { + style.margin = node.margin[_xfa_object.$toStyle]().margin; + } + } + +}; + +function setMinMaxDimensions(node, style) { + const parent = node[_xfa_object.$getSubformParent](); + + if (parent.layout === "position") { + if (node.minW > 0) { + style.minWidth = measureToString(node.minW); + } + + if (node.maxW > 0) { + style.maxWidth = measureToString(node.maxW); + } + + if (node.minH > 0) { + style.minHeight = measureToString(node.minH); + } + + if (node.maxH > 0) { + style.maxHeight = measureToString(node.maxH); + } + } +} + +function layoutText(text, xfaFont, margin, lineHeight, fontFinder, width) { + const measure = new _text.TextMeasure(xfaFont, margin, lineHeight, fontFinder); + + if (typeof text === "string") { + measure.addString(text); + } else { + text[_xfa_object.$pushGlyphs](measure); + } + + return measure.compute(width); +} + +function layoutNode(node, availableSpace) { + let height = null; + let width = null; + let isBroken = false; + + if ((!node.w || !node.h) && node.value) { + let marginH = 0; + let marginV = 0; + + if (node.margin) { + marginH = node.margin.leftInset + node.margin.rightInset; + marginV = node.margin.topInset + node.margin.bottomInset; + } + + let lineHeight = null; + let margin = null; + + if (node.para) { + margin = Object.create(null); + lineHeight = node.para.lineHeight === "" ? null : node.para.lineHeight; + margin.top = node.para.spaceAbove === "" ? 0 : node.para.spaceAbove; + margin.bottom = node.para.spaceBelow === "" ? 0 : node.para.spaceBelow; + margin.left = node.para.marginLeft === "" ? 0 : node.para.marginLeft; + margin.right = node.para.marginRight === "" ? 0 : node.para.marginRight; + } + + let font = node.font; + + if (!font) { + const root = node[_xfa_object.$getTemplateRoot](); + + let parent = node[_xfa_object.$getParent](); + + while (parent && parent !== root) { + if (parent.font) { + font = parent.font; + break; + } + + parent = parent[_xfa_object.$getParent](); + } + } + + const maxWidth = (node.w || availableSpace.width) - marginH; + const fontFinder = node[_xfa_object.$globalData].fontFinder; + + if (node.value.exData && node.value.exData[_xfa_object.$content] && node.value.exData.contentType === "text/html") { + const res = layoutText(node.value.exData[_xfa_object.$content], font, margin, lineHeight, fontFinder, maxWidth); + width = res.width; + height = res.height; + isBroken = res.isBroken; + } else { + const text = node.value[_xfa_object.$text](); + + if (text) { + const res = layoutText(text, font, margin, lineHeight, fontFinder, maxWidth); + width = res.width; + height = res.height; + isBroken = res.isBroken; + } + } + + if (width !== null && !node.w) { + width += marginH; + } + + if (height !== null && !node.h) { + height += marginV; + } + } + + return { + w: width, + h: height, + isBroken + }; +} + +function computeBbox(node, html, availableSpace) { + let bbox; + + if (node.w !== "" && node.h !== "") { + bbox = [node.x, node.y, node.w, node.h]; + } else { + if (!availableSpace) { + return null; + } + + let width = node.w; + + if (width === "") { + if (node.maxW === 0) { + const parent = node[_xfa_object.$getSubformParent](); + + if (parent.layout === "position" && parent.w !== "") { + width = 0; + } else { + width = node.minW; + } + } else { + width = Math.min(node.maxW, availableSpace.width); + } + + html.attributes.style.width = measureToString(width); + } + + let height = node.h; + + if (height === "") { + if (node.maxH === 0) { + const parent = node[_xfa_object.$getSubformParent](); + + if (parent.layout === "position" && parent.h !== "") { + height = 0; + } else { + height = node.minH; + } + } else { + height = Math.min(node.maxH, availableSpace.height); + } + + html.attributes.style.height = measureToString(height); + } + + bbox = [node.x, node.y, width, height]; + } + + return bbox; +} + +function fixDimensions(node) { + const parent = node[_xfa_object.$getSubformParent](); + + if (parent.layout && parent.layout.includes("row")) { + const extra = parent[_xfa_object.$extra]; + const colSpan = node.colSpan; + let width; + + if (colSpan === -1) { + width = extra.columnWidths.slice(extra.currentColumn).reduce((a, w) => a + w, 0); + } else { + width = extra.columnWidths.slice(extra.currentColumn, extra.currentColumn + colSpan).reduce((a, w) => a + w, 0); + } + + if (!isNaN(width)) { + node.w = width; + } + } + + if (parent.layout && parent.layout !== "position") { + node.x = node.y = 0; + } + + if (node.layout === "table") { + if (node.w === "" && Array.isArray(node.columnWidths)) { + node.w = node.columnWidths.reduce((a, x) => a + x, 0); + } + } +} + +function layoutClass(node) { + switch (node.layout) { + case "position": + return "xfaPosition"; + + case "lr-tb": + return "xfaLrTb"; + + case "rl-row": + return "xfaRlRow"; + + case "rl-tb": + return "xfaRlTb"; + + case "row": + return "xfaRow"; + + case "table": + return "xfaTable"; + + case "tb": + return "xfaTb"; + + default: + return "xfaPosition"; + } +} + +function toStyle(node, ...names) { + const style = Object.create(null); + + for (const name of names) { + const value = node[name]; + + if (value === null) { + continue; + } + + if (converters.hasOwnProperty(name)) { + converters[name](node, style); + continue; + } + + if (value instanceof _xfa_object.XFAObject) { + const newStyle = value[_xfa_object.$toStyle](); + + if (newStyle) { + Object.assign(style, newStyle); + } else { + (0, _util.warn)(`(DEBUG) - XFA - style for ${name} not implemented yet`); + } + } + } + + return style; +} + +function createWrapper(node, html) { + const { + attributes + } = html; + const { + style + } = attributes; + const wrapper = { + name: "div", + attributes: { + class: ["xfaWrapper"], + style: Object.create(null) + }, + children: [] + }; + attributes.class.push("xfaWrapped"); + + if (node.border) { + const { + widths, + insets + } = node.border[_xfa_object.$extra]; + let width, height; + let top = insets[0]; + let left = insets[3]; + const insetsH = insets[0] + insets[2]; + const insetsW = insets[1] + insets[3]; + + switch (node.border.hand) { + case "even": + top -= widths[0] / 2; + left -= widths[3] / 2; + width = `calc(100% + ${(widths[1] + widths[3]) / 2 - insetsW}px)`; + height = `calc(100% + ${(widths[0] + widths[2]) / 2 - insetsH}px)`; + break; + + case "left": + top -= widths[0]; + left -= widths[3]; + width = `calc(100% + ${widths[1] + widths[3] - insetsW}px)`; + height = `calc(100% + ${widths[0] + widths[2] - insetsH}px)`; + break; + + case "right": + width = insetsW ? `calc(100% - ${insetsW}px)` : "100%"; + height = insetsH ? `calc(100% - ${insetsH}px)` : "100%"; + break; + } + + const classNames = ["xfaBorder"]; + + if (isPrintOnly(node.border)) { + classNames.push("xfaPrintOnly"); + } + + const border = { + name: "div", + attributes: { + class: classNames, + style: { + top: `${top}px`, + left: `${left}px`, + width, + height + } + }, + children: [] + }; + + for (const key of ["border", "borderWidth", "borderColor", "borderRadius", "borderStyle"]) { + if (style[key] !== undefined) { + border.attributes.style[key] = style[key]; + delete style[key]; + } + } + + wrapper.children.push(border, html); + } else { + wrapper.children.push(html); + } + + for (const key of ["background", "backgroundClip", "top", "left", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "transform", "transformOrigin", "visibility"]) { + if (style[key] !== undefined) { + wrapper.attributes.style[key] = style[key]; + delete style[key]; + } + } + + if (style.position === "absolute") { + wrapper.attributes.style.position = "absolute"; + } else { + wrapper.attributes.style.position = "relative"; + } + + delete style.position; + + if (style.alignSelf) { + wrapper.attributes.style.alignSelf = style.alignSelf; + delete style.alignSelf; + } + + return wrapper; +} + +function fixTextIndent(styles) { + const indent = (0, _utils.getMeasurement)(styles.textIndent, "0px"); + + if (indent >= 0) { + return; + } + + const align = styles.textAlign === "right" ? "right" : "left"; + const name = "padding" + (align === "left" ? "Left" : "Right"); + const padding = (0, _utils.getMeasurement)(styles[name], "0px"); + styles[name] = `${padding - indent}px`; +} + +function setAccess(node, classNames) { + switch (node.access) { + case "nonInteractive": + classNames.push("xfaNonInteractive"); + break; + + case "readOnly": + classNames.push("xfaReadOnly"); + break; + + case "protected": + classNames.push("xfaDisabled"); + break; + } +} + +function isPrintOnly(node) { + return node.relevant.length > 0 && !node.relevant[0].excluded && node.relevant[0].viewname === "print"; +} + +function getCurrentPara(node) { + const stack = node[_xfa_object.$getTemplateRoot]()[_xfa_object.$extra].paraStack; + + return stack.length ? stack.at(-1) : null; +} + +function setPara(node, nodeStyle, value) { + if (value.attributes.class && value.attributes.class.includes("xfaRich")) { + if (nodeStyle) { + if (node.h === "") { + nodeStyle.height = "auto"; + } + + if (node.w === "") { + nodeStyle.width = "auto"; + } + } + + const para = getCurrentPara(node); + + if (para) { + const valueStyle = value.attributes.style; + valueStyle.display = "flex"; + valueStyle.flexDirection = "column"; + + switch (para.vAlign) { + case "top": + valueStyle.justifyContent = "start"; + break; + + case "bottom": + valueStyle.justifyContent = "end"; + break; + + case "middle": + valueStyle.justifyContent = "center"; + break; + } + + const paraStyle = para[_xfa_object.$toStyle](); + + for (const [key, val] of Object.entries(paraStyle)) { + if (!(key in valueStyle)) { + valueStyle[key] = val; + } + } + } + } +} + +function setFontFamily(xfaFont, node, fontFinder, style) { + if (!fontFinder) { + delete style.fontFamily; + return; + } + + const name = (0, _utils.stripQuotes)(xfaFont.typeface); + style.fontFamily = `"${name}"`; + const typeface = fontFinder.find(name); + + if (typeface) { + const { + fontFamily + } = typeface.regular.cssFontInfo; + + if (fontFamily !== name) { + style.fontFamily = `"${fontFamily}"`; + } + + const para = getCurrentPara(node); + + if (para && para.lineHeight !== "") { + return; + } + + if (style.lineHeight) { + return; + } + + const pdfFont = (0, _fonts.selectFont)(xfaFont, typeface); + + if (pdfFont) { + style.lineHeight = Math.max(1.2, pdfFont.lineHeight); + } + } +} + +function fixURL(str) { + const absoluteUrl = (0, _util.createValidAbsoluteUrl)(str, null, { + addDefaultProtocol: true, + tryConvertEncoding: true + }); + return absoluteUrl ? absoluteUrl.href : null; +} + +/***/ }), +/* 85 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.FontFinder = void 0; +exports.getMetrics = getMetrics; +exports.selectFont = selectFont; + +var _xfa_object = __w_pdfjs_require__(77); + +var _utils = __w_pdfjs_require__(78); + +var _util = __w_pdfjs_require__(2); + +class FontFinder { + constructor(pdfFonts) { + this.fonts = new Map(); + this.cache = new Map(); + this.warned = new Set(); + this.defaultFont = null; + this.add(pdfFonts); + } + + add(pdfFonts, reallyMissingFonts = null) { + for (const pdfFont of pdfFonts) { + this.addPdfFont(pdfFont); + } + + for (const pdfFont of this.fonts.values()) { + if (!pdfFont.regular) { + pdfFont.regular = pdfFont.italic || pdfFont.bold || pdfFont.bolditalic; + } + } + + if (!reallyMissingFonts || reallyMissingFonts.size === 0) { + return; + } + + const myriad = this.fonts.get("PdfJS-Fallback-PdfJS-XFA"); + + for (const missing of reallyMissingFonts) { + this.fonts.set(missing, myriad); + } + } + + addPdfFont(pdfFont) { + const cssFontInfo = pdfFont.cssFontInfo; + const name = cssFontInfo.fontFamily; + let font = this.fonts.get(name); + + if (!font) { + font = Object.create(null); + this.fonts.set(name, font); + + if (!this.defaultFont) { + this.defaultFont = font; + } + } + + let property = ""; + const fontWeight = parseFloat(cssFontInfo.fontWeight); + + if (parseFloat(cssFontInfo.italicAngle) !== 0) { + property = fontWeight >= 700 ? "bolditalic" : "italic"; + } else if (fontWeight >= 700) { + property = "bold"; + } + + if (!property) { + if (pdfFont.name.includes("Bold") || pdfFont.psName && pdfFont.psName.includes("Bold")) { + property = "bold"; + } + + if (pdfFont.name.includes("Italic") || pdfFont.name.endsWith("It") || pdfFont.psName && (pdfFont.psName.includes("Italic") || pdfFont.psName.endsWith("It"))) { + property += "italic"; + } + } + + if (!property) { + property = "regular"; + } + + font[property] = pdfFont; + } + + getDefault() { + return this.defaultFont; + } + + find(fontName, mustWarn = true) { + let font = this.fonts.get(fontName) || this.cache.get(fontName); + + if (font) { + return font; + } + + const pattern = /,|-|_| |bolditalic|bold|italic|regular|it/gi; + let name = fontName.replace(pattern, ""); + font = this.fonts.get(name); + + if (font) { + this.cache.set(fontName, font); + return font; + } + + name = name.toLowerCase(); + const maybe = []; + + for (const [family, pdfFont] of this.fonts.entries()) { + if (family.replace(pattern, "").toLowerCase().startsWith(name)) { + maybe.push(pdfFont); + } + } + + if (maybe.length === 0) { + for (const [, pdfFont] of this.fonts.entries()) { + if (pdfFont.regular.name && pdfFont.regular.name.replace(pattern, "").toLowerCase().startsWith(name)) { + maybe.push(pdfFont); + } + } + } + + if (maybe.length === 0) { + name = name.replace(/psmt|mt/gi, ""); + + for (const [family, pdfFont] of this.fonts.entries()) { + if (family.replace(pattern, "").toLowerCase().startsWith(name)) { + maybe.push(pdfFont); + } + } + } + + if (maybe.length === 0) { + for (const pdfFont of this.fonts.values()) { + if (pdfFont.regular.name && pdfFont.regular.name.replace(pattern, "").toLowerCase().startsWith(name)) { + maybe.push(pdfFont); + } + } + } + + if (maybe.length >= 1) { + if (maybe.length !== 1 && mustWarn) { + (0, _util.warn)(`XFA - Too many choices to guess the correct font: ${fontName}`); + } + + this.cache.set(fontName, maybe[0]); + return maybe[0]; + } + + if (mustWarn && !this.warned.has(fontName)) { + this.warned.add(fontName); + (0, _util.warn)(`XFA - Cannot find the font: ${fontName}`); + } + + return null; + } + +} + +exports.FontFinder = FontFinder; + +function selectFont(xfaFont, typeface) { + if (xfaFont.posture === "italic") { + if (xfaFont.weight === "bold") { + return typeface.bolditalic; + } + + return typeface.italic; + } else if (xfaFont.weight === "bold") { + return typeface.bold; + } + + return typeface.regular; +} + +function getMetrics(xfaFont, real = false) { + let pdfFont = null; + + if (xfaFont) { + const name = (0, _utils.stripQuotes)(xfaFont.typeface); + + const typeface = xfaFont[_xfa_object.$globalData].fontFinder.find(name); + + pdfFont = selectFont(xfaFont, typeface); + } + + if (!pdfFont) { + return { + lineHeight: 12, + lineGap: 2, + lineNoGap: 10 + }; + } + + const size = xfaFont.size || 10; + const lineHeight = pdfFont.lineHeight ? Math.max(real ? 0 : 1.2, pdfFont.lineHeight) : 1.2; + const lineGap = pdfFont.lineGap === undefined ? 0.2 : pdfFont.lineGap; + return { + lineHeight: lineHeight * size, + lineGap: lineGap * size, + lineNoGap: Math.max(1, lineHeight - lineGap) * size + }; +} + +/***/ }), +/* 86 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.TextMeasure = void 0; + +var _fonts = __w_pdfjs_require__(85); + +const WIDTH_FACTOR = 1.02; + +class FontInfo { + constructor(xfaFont, margin, lineHeight, fontFinder) { + this.lineHeight = lineHeight; + this.paraMargin = margin || { + top: 0, + bottom: 0, + left: 0, + right: 0 + }; + + if (!xfaFont) { + [this.pdfFont, this.xfaFont] = this.defaultFont(fontFinder); + return; + } + + this.xfaFont = { + typeface: xfaFont.typeface, + posture: xfaFont.posture, + weight: xfaFont.weight, + size: xfaFont.size, + letterSpacing: xfaFont.letterSpacing + }; + const typeface = fontFinder.find(xfaFont.typeface); + + if (!typeface) { + [this.pdfFont, this.xfaFont] = this.defaultFont(fontFinder); + return; + } + + this.pdfFont = (0, _fonts.selectFont)(xfaFont, typeface); + + if (!this.pdfFont) { + [this.pdfFont, this.xfaFont] = this.defaultFont(fontFinder); + } + } + + defaultFont(fontFinder) { + const font = fontFinder.find("Helvetica", false) || fontFinder.find("Myriad Pro", false) || fontFinder.find("Arial", false) || fontFinder.getDefault(); + + if (font && font.regular) { + const pdfFont = font.regular; + const info = pdfFont.cssFontInfo; + const xfaFont = { + typeface: info.fontFamily, + posture: "normal", + weight: "normal", + size: 10, + letterSpacing: 0 + }; + return [pdfFont, xfaFont]; + } + + const xfaFont = { + typeface: "Courier", + posture: "normal", + weight: "normal", + size: 10, + letterSpacing: 0 + }; + return [null, xfaFont]; + } + +} + +class FontSelector { + constructor(defaultXfaFont, defaultParaMargin, defaultLineHeight, fontFinder) { + this.fontFinder = fontFinder; + this.stack = [new FontInfo(defaultXfaFont, defaultParaMargin, defaultLineHeight, fontFinder)]; + } + + pushData(xfaFont, margin, lineHeight) { + const lastFont = this.stack.at(-1); + + for (const name of ["typeface", "posture", "weight", "size", "letterSpacing"]) { + if (!xfaFont[name]) { + xfaFont[name] = lastFont.xfaFont[name]; + } + } + + for (const name of ["top", "bottom", "left", "right"]) { + if (isNaN(margin[name])) { + margin[name] = lastFont.paraMargin[name]; + } + } + + const fontInfo = new FontInfo(xfaFont, margin, lineHeight || lastFont.lineHeight, this.fontFinder); + + if (!fontInfo.pdfFont) { + fontInfo.pdfFont = lastFont.pdfFont; + } + + this.stack.push(fontInfo); + } + + popFont() { + this.stack.pop(); + } + + topFont() { + return this.stack.at(-1); + } + +} + +class TextMeasure { + constructor(defaultXfaFont, defaultParaMargin, defaultLineHeight, fonts) { + this.glyphs = []; + this.fontSelector = new FontSelector(defaultXfaFont, defaultParaMargin, defaultLineHeight, fonts); + this.extraHeight = 0; + } + + pushData(xfaFont, margin, lineHeight) { + this.fontSelector.pushData(xfaFont, margin, lineHeight); + } + + popFont(xfaFont) { + return this.fontSelector.popFont(); + } + + addPara() { + const lastFont = this.fontSelector.topFont(); + this.extraHeight += lastFont.paraMargin.top + lastFont.paraMargin.bottom; + } + + addString(str) { + if (!str) { + return; + } + + const lastFont = this.fontSelector.topFont(); + const fontSize = lastFont.xfaFont.size; + + if (lastFont.pdfFont) { + const letterSpacing = lastFont.xfaFont.letterSpacing; + const pdfFont = lastFont.pdfFont; + const fontLineHeight = pdfFont.lineHeight || 1.2; + const lineHeight = lastFont.lineHeight || Math.max(1.2, fontLineHeight) * fontSize; + const lineGap = pdfFont.lineGap === undefined ? 0.2 : pdfFont.lineGap; + const noGap = fontLineHeight - lineGap; + const firstLineHeight = Math.max(1, noGap) * fontSize; + const scale = fontSize / 1000; + const fallbackWidth = pdfFont.defaultWidth || pdfFont.charsToGlyphs(" ")[0].width; + + for (const line of str.split(/[\u2029\n]/)) { + const encodedLine = pdfFont.encodeString(line).join(""); + const glyphs = pdfFont.charsToGlyphs(encodedLine); + + for (const glyph of glyphs) { + const width = glyph.width || fallbackWidth; + this.glyphs.push([width * scale + letterSpacing, lineHeight, firstLineHeight, glyph.unicode, false]); + } + + this.glyphs.push([0, 0, 0, "\n", true]); + } + + this.glyphs.pop(); + return; + } + + for (const line of str.split(/[\u2029\n]/)) { + for (const char of line.split("")) { + this.glyphs.push([fontSize, 1.2 * fontSize, fontSize, char, false]); + } + + this.glyphs.push([0, 0, 0, "\n", true]); + } + + this.glyphs.pop(); + } + + compute(maxWidth) { + let lastSpacePos = -1, + lastSpaceWidth = 0, + width = 0, + height = 0, + currentLineWidth = 0, + currentLineHeight = 0; + let isBroken = false; + let isFirstLine = true; + + for (let i = 0, ii = this.glyphs.length; i < ii; i++) { + const [glyphWidth, lineHeight, firstLineHeight, char, isEOL] = this.glyphs[i]; + const isSpace = char === " "; + const glyphHeight = isFirstLine ? firstLineHeight : lineHeight; + + if (isEOL) { + width = Math.max(width, currentLineWidth); + currentLineWidth = 0; + height += currentLineHeight; + currentLineHeight = glyphHeight; + lastSpacePos = -1; + lastSpaceWidth = 0; + isFirstLine = false; + continue; + } + + if (isSpace) { + if (currentLineWidth + glyphWidth > maxWidth) { + width = Math.max(width, currentLineWidth); + currentLineWidth = 0; + height += currentLineHeight; + currentLineHeight = glyphHeight; + lastSpacePos = -1; + lastSpaceWidth = 0; + isBroken = true; + isFirstLine = false; + } else { + currentLineHeight = Math.max(glyphHeight, currentLineHeight); + lastSpaceWidth = currentLineWidth; + currentLineWidth += glyphWidth; + lastSpacePos = i; + } + + continue; + } + + if (currentLineWidth + glyphWidth > maxWidth) { + height += currentLineHeight; + currentLineHeight = glyphHeight; + + if (lastSpacePos !== -1) { + i = lastSpacePos; + width = Math.max(width, lastSpaceWidth); + currentLineWidth = 0; + lastSpacePos = -1; + lastSpaceWidth = 0; + } else { + width = Math.max(width, currentLineWidth); + currentLineWidth = glyphWidth; + } + + isBroken = true; + isFirstLine = false; + continue; + } + + currentLineWidth += glyphWidth; + currentLineHeight = Math.max(glyphHeight, currentLineHeight); + } + + width = Math.max(width, currentLineWidth); + height += currentLineHeight + this.extraHeight; + return { + width: WIDTH_FACTOR * width, + height, + isBroken + }; + } + +} + +exports.TextMeasure = TextMeasure; + +/***/ }), +/* 87 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.DataHandler = void 0; + +var _xfa_object = __w_pdfjs_require__(77); + +class DataHandler { + constructor(root, data) { + this.data = data; + this.dataset = root.datasets || null; + } + + serialize(storage) { + const stack = [[-1, this.data[_xfa_object.$getChildren]()]]; + + while (stack.length > 0) { + const last = stack.at(-1); + const [i, children] = last; + + if (i + 1 === children.length) { + stack.pop(); + continue; + } + + const child = children[++last[0]]; + const storageEntry = storage.get(child[_xfa_object.$uid]); + + if (storageEntry) { + child[_xfa_object.$setValue](storageEntry); + } else { + const attributes = child[_xfa_object.$getAttributes](); + + for (const value of attributes.values()) { + const entry = storage.get(value[_xfa_object.$uid]); + + if (entry) { + value[_xfa_object.$setValue](entry); + + break; + } + } + } + + const nodes = child[_xfa_object.$getChildren](); + + if (nodes.length > 0) { + stack.push([-1, nodes]); + } + } + + const buf = [`<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">`]; + + if (this.dataset) { + for (const child of this.dataset[_xfa_object.$getChildren]()) { + if (child[_xfa_object.$nodeName] !== "data") { + child[_xfa_object.$toString](buf); + } + } + } + + this.data[_xfa_object.$toString](buf); + + buf.push("</xfa:datasets>"); + return buf.join(""); + } + +} + +exports.DataHandler = DataHandler; + +/***/ }), +/* 88 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.XFAParser = void 0; + +var _xfa_object = __w_pdfjs_require__(77); + +var _xml_parser = __w_pdfjs_require__(66); + +var _builder = __w_pdfjs_require__(89); + +var _util = __w_pdfjs_require__(2); + +class XFAParser extends _xml_parser.XMLParserBase { + constructor(rootNameSpace = null, richText = false) { + super(); + this._builder = new _builder.Builder(rootNameSpace); + this._stack = []; + this._globalData = { + usedTypefaces: new Set() + }; + this._ids = new Map(); + this._current = this._builder.buildRoot(this._ids); + this._errorCode = _xml_parser.XMLParserErrorCode.NoError; + this._whiteRegex = /^\s+$/; + this._nbsps = /\xa0+/g; + this._richText = richText; + } + + parse(data) { + this.parseXml(data); + + if (this._errorCode !== _xml_parser.XMLParserErrorCode.NoError) { + return undefined; + } + + this._current[_xfa_object.$finalize](); + + return this._current.element; + } + + onText(text) { + text = text.replace(this._nbsps, match => match.slice(1) + " "); + + if (this._richText || this._current[_xfa_object.$acceptWhitespace]()) { + this._current[_xfa_object.$onText](text, this._richText); + + return; + } + + if (this._whiteRegex.test(text)) { + return; + } + + this._current[_xfa_object.$onText](text.trim()); + } + + onCdata(text) { + this._current[_xfa_object.$onText](text); + } + + _mkAttributes(attributes, tagName) { + let namespace = null; + let prefixes = null; + const attributeObj = Object.create({}); + + for (const { + name, + value + } of attributes) { + if (name === "xmlns") { + if (!namespace) { + namespace = value; + } else { + (0, _util.warn)(`XFA - multiple namespace definition in <${tagName}>`); + } + } else if (name.startsWith("xmlns:")) { + const prefix = name.substring("xmlns:".length); + + if (!prefixes) { + prefixes = []; + } + + prefixes.push({ + prefix, + value + }); + } else { + const i = name.indexOf(":"); + + if (i === -1) { + attributeObj[name] = value; + } else { + let nsAttrs = attributeObj[_xfa_object.$nsAttributes]; + + if (!nsAttrs) { + nsAttrs = attributeObj[_xfa_object.$nsAttributes] = Object.create(null); + } + + const [ns, attrName] = [name.slice(0, i), name.slice(i + 1)]; + let attrs = nsAttrs[ns]; + + if (!attrs) { + attrs = nsAttrs[ns] = Object.create(null); + } + + attrs[attrName] = value; + } + } + } + + return [namespace, prefixes, attributeObj]; + } + + _getNameAndPrefix(name, nsAgnostic) { + const i = name.indexOf(":"); + + if (i === -1) { + return [name, null]; + } + + return [name.substring(i + 1), nsAgnostic ? "" : name.substring(0, i)]; + } + + onBeginElement(tagName, attributes, isEmpty) { + const [namespace, prefixes, attributesObj] = this._mkAttributes(attributes, tagName); + + const [name, nsPrefix] = this._getNameAndPrefix(tagName, this._builder.isNsAgnostic()); + + const node = this._builder.build({ + nsPrefix, + name, + attributes: attributesObj, + namespace, + prefixes + }); + + node[_xfa_object.$globalData] = this._globalData; + + if (isEmpty) { + node[_xfa_object.$finalize](); + + if (this._current[_xfa_object.$onChild](node)) { + node[_xfa_object.$setId](this._ids); + } + + node[_xfa_object.$clean](this._builder); + + return; + } + + this._stack.push(this._current); + + this._current = node; + } + + onEndElement(name) { + const node = this._current; + + if (node[_xfa_object.$isCDATAXml]() && typeof node[_xfa_object.$content] === "string") { + const parser = new XFAParser(); + parser._globalData = this._globalData; + const root = parser.parse(node[_xfa_object.$content]); + node[_xfa_object.$content] = null; + + node[_xfa_object.$onChild](root); + } + + node[_xfa_object.$finalize](); + + this._current = this._stack.pop(); + + if (this._current[_xfa_object.$onChild](node)) { + node[_xfa_object.$setId](this._ids); + } + + node[_xfa_object.$clean](this._builder); + } + + onError(code) { + this._errorCode = code; + } + +} + +exports.XFAParser = XFAParser; + +/***/ }), +/* 89 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Builder = void 0; + +var _namespaces = __w_pdfjs_require__(79); + +var _xfa_object = __w_pdfjs_require__(77); + +var _setup = __w_pdfjs_require__(90); + +var _template = __w_pdfjs_require__(82); + +var _unknown = __w_pdfjs_require__(99); + +var _util = __w_pdfjs_require__(2); + +class Root extends _xfa_object.XFAObject { + constructor(ids) { + super(-1, "root", Object.create(null)); + this.element = null; + this[_xfa_object.$ids] = ids; + } + + [_xfa_object.$onChild](child) { + this.element = child; + return true; + } + + [_xfa_object.$finalize]() { + super[_xfa_object.$finalize](); + + if (this.element.template instanceof _template.Template) { + this[_xfa_object.$ids].set(_xfa_object.$root, this.element); + + this.element.template[_xfa_object.$resolvePrototypes](this[_xfa_object.$ids]); + + this.element.template[_xfa_object.$ids] = this[_xfa_object.$ids]; + } + } + +} + +class Empty extends _xfa_object.XFAObject { + constructor() { + super(-1, "", Object.create(null)); + } + + [_xfa_object.$onChild](_) { + return false; + } + +} + +class Builder { + constructor(rootNameSpace = null) { + this._namespaceStack = []; + this._nsAgnosticLevel = 0; + this._namespacePrefixes = new Map(); + this._namespaces = new Map(); + this._nextNsId = Math.max(...Object.values(_namespaces.NamespaceIds).map(({ + id + }) => id)); + this._currentNamespace = rootNameSpace || new _unknown.UnknownNamespace(++this._nextNsId); + } + + buildRoot(ids) { + return new Root(ids); + } + + build({ + nsPrefix, + name, + attributes, + namespace, + prefixes + }) { + const hasNamespaceDef = namespace !== null; + + if (hasNamespaceDef) { + this._namespaceStack.push(this._currentNamespace); + + this._currentNamespace = this._searchNamespace(namespace); + } + + if (prefixes) { + this._addNamespacePrefix(prefixes); + } + + if (attributes.hasOwnProperty(_xfa_object.$nsAttributes)) { + const dataTemplate = _setup.NamespaceSetUp.datasets; + const nsAttrs = attributes[_xfa_object.$nsAttributes]; + let xfaAttrs = null; + + for (const [ns, attrs] of Object.entries(nsAttrs)) { + const nsToUse = this._getNamespaceToUse(ns); + + if (nsToUse === dataTemplate) { + xfaAttrs = { + xfa: attrs + }; + break; + } + } + + if (xfaAttrs) { + attributes[_xfa_object.$nsAttributes] = xfaAttrs; + } else { + delete attributes[_xfa_object.$nsAttributes]; + } + } + + const namespaceToUse = this._getNamespaceToUse(nsPrefix); + + const node = namespaceToUse && namespaceToUse[_namespaces.$buildXFAObject](name, attributes) || new Empty(); + + if (node[_xfa_object.$isNsAgnostic]()) { + this._nsAgnosticLevel++; + } + + if (hasNamespaceDef || prefixes || node[_xfa_object.$isNsAgnostic]()) { + node[_xfa_object.$cleanup] = { + hasNamespace: hasNamespaceDef, + prefixes, + nsAgnostic: node[_xfa_object.$isNsAgnostic]() + }; + } + + return node; + } + + isNsAgnostic() { + return this._nsAgnosticLevel > 0; + } + + _searchNamespace(nsName) { + let ns = this._namespaces.get(nsName); + + if (ns) { + return ns; + } + + for (const [name, { + check + }] of Object.entries(_namespaces.NamespaceIds)) { + if (check(nsName)) { + ns = _setup.NamespaceSetUp[name]; + + if (ns) { + this._namespaces.set(nsName, ns); + + return ns; + } + + break; + } + } + + ns = new _unknown.UnknownNamespace(++this._nextNsId); + + this._namespaces.set(nsName, ns); + + return ns; + } + + _addNamespacePrefix(prefixes) { + for (const { + prefix, + value + } of prefixes) { + const namespace = this._searchNamespace(value); + + let prefixStack = this._namespacePrefixes.get(prefix); + + if (!prefixStack) { + prefixStack = []; + + this._namespacePrefixes.set(prefix, prefixStack); + } + + prefixStack.push(namespace); + } + } + + _getNamespaceToUse(prefix) { + if (!prefix) { + return this._currentNamespace; + } + + const prefixStack = this._namespacePrefixes.get(prefix); + + if (prefixStack && prefixStack.length > 0) { + return prefixStack.at(-1); + } + + (0, _util.warn)(`Unknown namespace prefix: ${prefix}.`); + return null; + } + + clean(data) { + const { + hasNamespace, + prefixes, + nsAgnostic + } = data; + + if (hasNamespace) { + this._currentNamespace = this._namespaceStack.pop(); + } + + if (prefixes) { + prefixes.forEach(({ + prefix + }) => { + this._namespacePrefixes.get(prefix).pop(); + }); + } + + if (nsAgnostic) { + this._nsAgnosticLevel--; + } + } + +} + +exports.Builder = Builder; + +/***/ }), +/* 90 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.NamespaceSetUp = void 0; + +var _config = __w_pdfjs_require__(91); + +var _connection_set = __w_pdfjs_require__(92); + +var _datasets = __w_pdfjs_require__(93); + +var _locale_set = __w_pdfjs_require__(94); + +var _signature = __w_pdfjs_require__(95); + +var _stylesheet = __w_pdfjs_require__(96); + +var _template = __w_pdfjs_require__(82); + +var _xdp = __w_pdfjs_require__(97); + +var _xhtml = __w_pdfjs_require__(98); + +const NamespaceSetUp = { + config: _config.ConfigNamespace, + connection: _connection_set.ConnectionSetNamespace, + datasets: _datasets.DatasetsNamespace, + localeSet: _locale_set.LocaleSetNamespace, + signature: _signature.SignatureNamespace, + stylesheet: _stylesheet.StylesheetNamespace, + template: _template.TemplateNamespace, + xdp: _xdp.XdpNamespace, + xhtml: _xhtml.XhtmlNamespace +}; +exports.NamespaceSetUp = NamespaceSetUp; + +/***/ }), +/* 91 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ConfigNamespace = void 0; + +var _namespaces = __w_pdfjs_require__(79); + +var _xfa_object = __w_pdfjs_require__(77); + +var _utils = __w_pdfjs_require__(78); + +var _util = __w_pdfjs_require__(2); + +const CONFIG_NS_ID = _namespaces.NamespaceIds.config.id; + +class Acrobat extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "acrobat", true); + this.acrobat7 = null; + this.autoSave = null; + this.common = null; + this.validate = null; + this.validateApprovalSignatures = null; + this.submitUrl = new _xfa_object.XFAObjectArray(); + } + +} + +class Acrobat7 extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "acrobat7", true); + this.dynamicRender = null; + } + +} + +class ADBE_JSConsole extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "ADBE_JSConsole", ["delegate", "Enable", "Disable"]); + } + +} + +class ADBE_JSDebugger extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "ADBE_JSDebugger", ["delegate", "Enable", "Disable"]); + } + +} + +class AddSilentPrint extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "addSilentPrint"); + } + +} + +class AddViewerPreferences extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "addViewerPreferences"); + } + +} + +class AdjustData extends _xfa_object.Option10 { + constructor(attributes) { + super(CONFIG_NS_ID, "adjustData"); + } + +} + +class AdobeExtensionLevel extends _xfa_object.IntegerObject { + constructor(attributes) { + super(CONFIG_NS_ID, "adobeExtensionLevel", 0, n => n >= 1 && n <= 8); + } + +} + +class Agent extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "agent", true); + this.name = attributes.name ? attributes.name.trim() : ""; + this.common = new _xfa_object.XFAObjectArray(); + } + +} + +class AlwaysEmbed extends _xfa_object.ContentObject { + constructor(attributes) { + super(CONFIG_NS_ID, "alwaysEmbed"); + } + +} + +class Amd extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "amd"); + } + +} + +class Area extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "area"); + this.level = (0, _utils.getInteger)({ + data: attributes.level, + defaultValue: 0, + validate: n => n >= 1 && n <= 3 + }); + this.name = (0, _utils.getStringOption)(attributes.name, ["", "barcode", "coreinit", "deviceDriver", "font", "general", "layout", "merge", "script", "signature", "sourceSet", "templateCache"]); + } + +} + +class Attributes extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "attributes", ["preserve", "delegate", "ignore"]); + } + +} + +class AutoSave extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "autoSave", ["disabled", "enabled"]); + } + +} + +class Base extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "base"); + } + +} + +class BatchOutput extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "batchOutput"); + this.format = (0, _utils.getStringOption)(attributes.format, ["none", "concat", "zip", "zipCompress"]); + } + +} + +class BehaviorOverride extends _xfa_object.ContentObject { + constructor(attributes) { + super(CONFIG_NS_ID, "behaviorOverride"); + } + + [_xfa_object.$finalize]() { + this[_xfa_object.$content] = new Map(this[_xfa_object.$content].trim().split(/\s+/).filter(x => x.includes(":")).map(x => x.split(":", 2))); + } + +} + +class Cache extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "cache", true); + this.templateCache = null; + } + +} + +class Change extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "change"); + } + +} + +class Common extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "common", true); + this.data = null; + this.locale = null; + this.localeSet = null; + this.messaging = null; + this.suppressBanner = null; + this.template = null; + this.validationMessaging = null; + this.versionControl = null; + this.log = new _xfa_object.XFAObjectArray(); + } + +} + +class Compress extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "compress"); + this.scope = (0, _utils.getStringOption)(attributes.scope, ["imageOnly", "document"]); + } + +} + +class CompressLogicalStructure extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "compressLogicalStructure"); + } + +} + +class CompressObjectStream extends _xfa_object.Option10 { + constructor(attributes) { + super(CONFIG_NS_ID, "compressObjectStream"); + } + +} + +class Compression extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "compression", true); + this.compressLogicalStructure = null; + this.compressObjectStream = null; + this.level = null; + this.type = null; + } + +} + +class Config extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "config", true); + this.acrobat = null; + this.present = null; + this.trace = null; + this.agent = new _xfa_object.XFAObjectArray(); + } + +} + +class Conformance extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "conformance", ["A", "B"]); + } + +} + +class ContentCopy extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "contentCopy"); + } + +} + +class Copies extends _xfa_object.IntegerObject { + constructor(attributes) { + super(CONFIG_NS_ID, "copies", 1, n => n >= 1); + } + +} + +class Creator extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "creator"); + } + +} + +class CurrentPage extends _xfa_object.IntegerObject { + constructor(attributes) { + super(CONFIG_NS_ID, "currentPage", 0, n => n >= 0); + } + +} + +class Data extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "data", true); + this.adjustData = null; + this.attributes = null; + this.incrementalLoad = null; + this.outputXSL = null; + this.range = null; + this.record = null; + this.startNode = null; + this.uri = null; + this.window = null; + this.xsl = null; + this.excludeNS = new _xfa_object.XFAObjectArray(); + this.transform = new _xfa_object.XFAObjectArray(); + } + +} + +class Debug extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "debug", true); + this.uri = null; + } + +} + +class DefaultTypeface extends _xfa_object.ContentObject { + constructor(attributes) { + super(CONFIG_NS_ID, "defaultTypeface"); + this.writingScript = (0, _utils.getStringOption)(attributes.writingScript, ["*", "Arabic", "Cyrillic", "EastEuropeanRoman", "Greek", "Hebrew", "Japanese", "Korean", "Roman", "SimplifiedChinese", "Thai", "TraditionalChinese", "Vietnamese"]); + } + +} + +class Destination extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "destination", ["pdf", "pcl", "ps", "webClient", "zpl"]); + } + +} + +class DocumentAssembly extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "documentAssembly"); + } + +} + +class Driver extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "driver", true); + this.name = attributes.name ? attributes.name.trim() : ""; + this.fontInfo = null; + this.xdc = null; + } + +} + +class DuplexOption extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "duplexOption", ["simplex", "duplexFlipLongEdge", "duplexFlipShortEdge"]); + } + +} + +class DynamicRender extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "dynamicRender", ["forbidden", "required"]); + } + +} + +class Embed extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "embed"); + } + +} + +class Encrypt extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "encrypt"); + } + +} + +class Encryption extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "encryption", true); + this.encrypt = null; + this.encryptionLevel = null; + this.permissions = null; + } + +} + +class EncryptionLevel extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "encryptionLevel", ["40bit", "128bit"]); + } + +} + +class Enforce extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "enforce"); + } + +} + +class Equate extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "equate"); + this.force = (0, _utils.getInteger)({ + data: attributes.force, + defaultValue: 1, + validate: n => n === 0 + }); + this.from = attributes.from || ""; + this.to = attributes.to || ""; + } + +} + +class EquateRange extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "equateRange"); + this.from = attributes.from || ""; + this.to = attributes.to || ""; + this._unicodeRange = attributes.unicodeRange || ""; + } + + get unicodeRange() { + const ranges = []; + const unicodeRegex = /U\+([0-9a-fA-F]+)/; + const unicodeRange = this._unicodeRange; + + for (let range of unicodeRange.split(",").map(x => x.trim()).filter(x => !!x)) { + range = range.split("-", 2).map(x => { + const found = x.match(unicodeRegex); + + if (!found) { + return 0; + } + + return parseInt(found[1], 16); + }); + + if (range.length === 1) { + range.push(range[0]); + } + + ranges.push(range); + } + + return (0, _util.shadow)(this, "unicodeRange", ranges); + } + +} + +class Exclude extends _xfa_object.ContentObject { + constructor(attributes) { + super(CONFIG_NS_ID, "exclude"); + } + + [_xfa_object.$finalize]() { + this[_xfa_object.$content] = this[_xfa_object.$content].trim().split(/\s+/).filter(x => x && ["calculate", "close", "enter", "exit", "initialize", "ready", "validate"].includes(x)); + } + +} + +class ExcludeNS extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "excludeNS"); + } + +} + +class FlipLabel extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "flipLabel", ["usePrinterSetting", "on", "off"]); + } + +} + +class FontInfo extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "fontInfo", true); + this.embed = null; + this.map = null; + this.subsetBelow = null; + this.alwaysEmbed = new _xfa_object.XFAObjectArray(); + this.defaultTypeface = new _xfa_object.XFAObjectArray(); + this.neverEmbed = new _xfa_object.XFAObjectArray(); + } + +} + +class FormFieldFilling extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "formFieldFilling"); + } + +} + +class GroupParent extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "groupParent"); + } + +} + +class IfEmpty extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "ifEmpty", ["dataValue", "dataGroup", "ignore", "remove"]); + } + +} + +class IncludeXDPContent extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "includeXDPContent"); + } + +} + +class IncrementalLoad extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "incrementalLoad", ["none", "forwardOnly"]); + } + +} + +class IncrementalMerge extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "incrementalMerge"); + } + +} + +class Interactive extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "interactive"); + } + +} + +class Jog extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "jog", ["usePrinterSetting", "none", "pageSet"]); + } + +} + +class LabelPrinter extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "labelPrinter", true); + this.name = (0, _utils.getStringOption)(attributes.name, ["zpl", "dpl", "ipl", "tcpl"]); + this.batchOutput = null; + this.flipLabel = null; + this.fontInfo = null; + this.xdc = null; + } + +} + +class Layout extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "layout", ["paginate", "panel"]); + } + +} + +class Level extends _xfa_object.IntegerObject { + constructor(attributes) { + super(CONFIG_NS_ID, "level", 0, n => n > 0); + } + +} + +class Linearized extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "linearized"); + } + +} + +class Locale extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "locale"); + } + +} + +class LocaleSet extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "localeSet"); + } + +} + +class Log extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "log", true); + this.mode = null; + this.threshold = null; + this.to = null; + this.uri = null; + } + +} + +class MapElement extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "map", true); + this.equate = new _xfa_object.XFAObjectArray(); + this.equateRange = new _xfa_object.XFAObjectArray(); + } + +} + +class MediumInfo extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "mediumInfo", true); + this.map = null; + } + +} + +class Message extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "message", true); + this.msgId = null; + this.severity = null; + } + +} + +class Messaging extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "messaging", true); + this.message = new _xfa_object.XFAObjectArray(); + } + +} + +class Mode extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "mode", ["append", "overwrite"]); + } + +} + +class ModifyAnnots extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "modifyAnnots"); + } + +} + +class MsgId extends _xfa_object.IntegerObject { + constructor(attributes) { + super(CONFIG_NS_ID, "msgId", 1, n => n >= 1); + } + +} + +class NameAttr extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "nameAttr"); + } + +} + +class NeverEmbed extends _xfa_object.ContentObject { + constructor(attributes) { + super(CONFIG_NS_ID, "neverEmbed"); + } + +} + +class NumberOfCopies extends _xfa_object.IntegerObject { + constructor(attributes) { + super(CONFIG_NS_ID, "numberOfCopies", null, n => n >= 2 && n <= 5); + } + +} + +class OpenAction extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "openAction", true); + this.destination = null; + } + +} + +class Output extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "output", true); + this.to = null; + this.type = null; + this.uri = null; + } + +} + +class OutputBin extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "outputBin"); + } + +} + +class OutputXSL extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "outputXSL", true); + this.uri = null; + } + +} + +class Overprint extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "overprint", ["none", "both", "draw", "field"]); + } + +} + +class Packets extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "packets"); + } + + [_xfa_object.$finalize]() { + if (this[_xfa_object.$content] === "*") { + return; + } + + this[_xfa_object.$content] = this[_xfa_object.$content].trim().split(/\s+/).filter(x => ["config", "datasets", "template", "xfdf", "xslt"].includes(x)); + } + +} + +class PageOffset extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "pageOffset"); + this.x = (0, _utils.getInteger)({ + data: attributes.x, + defaultValue: "useXDCSetting", + validate: n => true + }); + this.y = (0, _utils.getInteger)({ + data: attributes.y, + defaultValue: "useXDCSetting", + validate: n => true + }); + } + +} + +class PageRange extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "pageRange"); + } + + [_xfa_object.$finalize]() { + const numbers = this[_xfa_object.$content].trim().split(/\s+/).map(x => parseInt(x, 10)); + + const ranges = []; + + for (let i = 0, ii = numbers.length; i < ii; i += 2) { + ranges.push(numbers.slice(i, i + 2)); + } + + this[_xfa_object.$content] = ranges; + } + +} + +class Pagination extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "pagination", ["simplex", "duplexShortEdge", "duplexLongEdge"]); + } + +} + +class PaginationOverride extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "paginationOverride", ["none", "forceDuplex", "forceDuplexLongEdge", "forceDuplexShortEdge", "forceSimplex"]); + } + +} + +class Part extends _xfa_object.IntegerObject { + constructor(attributes) { + super(CONFIG_NS_ID, "part", 1, n => false); + } + +} + +class Pcl extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "pcl", true); + this.name = attributes.name || ""; + this.batchOutput = null; + this.fontInfo = null; + this.jog = null; + this.mediumInfo = null; + this.outputBin = null; + this.pageOffset = null; + this.staple = null; + this.xdc = null; + } + +} + +class Pdf extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "pdf", true); + this.name = attributes.name || ""; + this.adobeExtensionLevel = null; + this.batchOutput = null; + this.compression = null; + this.creator = null; + this.encryption = null; + this.fontInfo = null; + this.interactive = null; + this.linearized = null; + this.openAction = null; + this.pdfa = null; + this.producer = null; + this.renderPolicy = null; + this.scriptModel = null; + this.silentPrint = null; + this.submitFormat = null; + this.tagged = null; + this.version = null; + this.viewerPreferences = null; + this.xdc = null; + } + +} + +class Pdfa extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "pdfa", true); + this.amd = null; + this.conformance = null; + this.includeXDPContent = null; + this.part = null; + } + +} + +class Permissions extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "permissions", true); + this.accessibleContent = null; + this.change = null; + this.contentCopy = null; + this.documentAssembly = null; + this.formFieldFilling = null; + this.modifyAnnots = null; + this.plaintextMetadata = null; + this.print = null; + this.printHighQuality = null; + } + +} + +class PickTrayByPDFSize extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "pickTrayByPDFSize"); + } + +} + +class Picture extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "picture"); + } + +} + +class PlaintextMetadata extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "plaintextMetadata"); + } + +} + +class Presence extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "presence", ["preserve", "dissolve", "dissolveStructure", "ignore", "remove"]); + } + +} + +class Present extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "present", true); + this.behaviorOverride = null; + this.cache = null; + this.common = null; + this.copies = null; + this.destination = null; + this.incrementalMerge = null; + this.layout = null; + this.output = null; + this.overprint = null; + this.pagination = null; + this.paginationOverride = null; + this.script = null; + this.validate = null; + this.xdp = null; + this.driver = new _xfa_object.XFAObjectArray(); + this.labelPrinter = new _xfa_object.XFAObjectArray(); + this.pcl = new _xfa_object.XFAObjectArray(); + this.pdf = new _xfa_object.XFAObjectArray(); + this.ps = new _xfa_object.XFAObjectArray(); + this.submitUrl = new _xfa_object.XFAObjectArray(); + this.webClient = new _xfa_object.XFAObjectArray(); + this.zpl = new _xfa_object.XFAObjectArray(); + } + +} + +class Print extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "print"); + } + +} + +class PrintHighQuality extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "printHighQuality"); + } + +} + +class PrintScaling extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "printScaling", ["appdefault", "noScaling"]); + } + +} + +class PrinterName extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "printerName"); + } + +} + +class Producer extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "producer"); + } + +} + +class Ps extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "ps", true); + this.name = attributes.name || ""; + this.batchOutput = null; + this.fontInfo = null; + this.jog = null; + this.mediumInfo = null; + this.outputBin = null; + this.staple = null; + this.xdc = null; + } + +} + +class Range extends _xfa_object.ContentObject { + constructor(attributes) { + super(CONFIG_NS_ID, "range"); + } + + [_xfa_object.$finalize]() { + this[_xfa_object.$content] = this[_xfa_object.$content].trim().split(/\s*,\s*/, 2).map(range => range.split("-").map(x => parseInt(x.trim(), 10))).filter(range => range.every(x => !isNaN(x))).map(range => { + if (range.length === 1) { + range.push(range[0]); + } + + return range; + }); + } + +} + +class Record extends _xfa_object.ContentObject { + constructor(attributes) { + super(CONFIG_NS_ID, "record"); + } + + [_xfa_object.$finalize]() { + this[_xfa_object.$content] = this[_xfa_object.$content].trim(); + const n = parseInt(this[_xfa_object.$content], 10); + + if (!isNaN(n) && n >= 0) { + this[_xfa_object.$content] = n; + } + } + +} + +class Relevant extends _xfa_object.ContentObject { + constructor(attributes) { + super(CONFIG_NS_ID, "relevant"); + } + + [_xfa_object.$finalize]() { + this[_xfa_object.$content] = this[_xfa_object.$content].trim().split(/\s+/); + } + +} + +class Rename extends _xfa_object.ContentObject { + constructor(attributes) { + super(CONFIG_NS_ID, "rename"); + } + + [_xfa_object.$finalize]() { + this[_xfa_object.$content] = this[_xfa_object.$content].trim(); + + if (this[_xfa_object.$content].toLowerCase().startsWith("xml") || this[_xfa_object.$content].match(new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*", "u"))) { + (0, _util.warn)("XFA - Rename: invalid XFA name"); + } + } + +} + +class RenderPolicy extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "renderPolicy", ["server", "client"]); + } + +} + +class RunScripts extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "runScripts", ["both", "client", "none", "server"]); + } + +} + +class Script extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "script", true); + this.currentPage = null; + this.exclude = null; + this.runScripts = null; + } + +} + +class ScriptModel extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "scriptModel", ["XFA", "none"]); + } + +} + +class Severity extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "severity", ["ignore", "error", "information", "trace", "warning"]); + } + +} + +class SilentPrint extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "silentPrint", true); + this.addSilentPrint = null; + this.printerName = null; + } + +} + +class Staple extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "staple"); + this.mode = (0, _utils.getStringOption)(attributes.mode, ["usePrinterSetting", "on", "off"]); + } + +} + +class StartNode extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "startNode"); + } + +} + +class StartPage extends _xfa_object.IntegerObject { + constructor(attributes) { + super(CONFIG_NS_ID, "startPage", 0, n => true); + } + +} + +class SubmitFormat extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "submitFormat", ["html", "delegate", "fdf", "xml", "pdf"]); + } + +} + +class SubmitUrl extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "submitUrl"); + } + +} + +class SubsetBelow extends _xfa_object.IntegerObject { + constructor(attributes) { + super(CONFIG_NS_ID, "subsetBelow", 100, n => n >= 0 && n <= 100); + } + +} + +class SuppressBanner extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "suppressBanner"); + } + +} + +class Tagged extends _xfa_object.Option01 { + constructor(attributes) { + super(CONFIG_NS_ID, "tagged"); + } + +} + +class Template extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "template", true); + this.base = null; + this.relevant = null; + this.startPage = null; + this.uri = null; + this.xsl = null; + } + +} + +class Threshold extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "threshold", ["trace", "error", "information", "warning"]); + } + +} + +class To extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "to", ["null", "memory", "stderr", "stdout", "system", "uri"]); + } + +} + +class TemplateCache extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "templateCache"); + this.maxEntries = (0, _utils.getInteger)({ + data: attributes.maxEntries, + defaultValue: 5, + validate: n => n >= 0 + }); + } + +} + +class Trace extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "trace", true); + this.area = new _xfa_object.XFAObjectArray(); + } + +} + +class Transform extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "transform", true); + this.groupParent = null; + this.ifEmpty = null; + this.nameAttr = null; + this.picture = null; + this.presence = null; + this.rename = null; + this.whitespace = null; + } + +} + +class Type extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "type", ["none", "ascii85", "asciiHex", "ccittfax", "flate", "lzw", "runLength", "native", "xdp", "mergedXDP"]); + } + +} + +class Uri extends _xfa_object.StringObject { + constructor(attributes) { + super(CONFIG_NS_ID, "uri"); + } + +} + +class Validate extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "validate", ["preSubmit", "prePrint", "preExecute", "preSave"]); + } + +} + +class ValidateApprovalSignatures extends _xfa_object.ContentObject { + constructor(attributes) { + super(CONFIG_NS_ID, "validateApprovalSignatures"); + } + + [_xfa_object.$finalize]() { + this[_xfa_object.$content] = this[_xfa_object.$content].trim().split(/\s+/).filter(x => ["docReady", "postSign"].includes(x)); + } + +} + +class ValidationMessaging extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "validationMessaging", ["allMessagesIndividually", "allMessagesTogether", "firstMessageOnly", "noMessages"]); + } + +} + +class Version extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "version", ["1.7", "1.6", "1.5", "1.4", "1.3", "1.2"]); + } + +} + +class VersionControl extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "VersionControl"); + this.outputBelow = (0, _utils.getStringOption)(attributes.outputBelow, ["warn", "error", "update"]); + this.sourceAbove = (0, _utils.getStringOption)(attributes.sourceAbove, ["warn", "error"]); + this.sourceBelow = (0, _utils.getStringOption)(attributes.sourceBelow, ["update", "maintain"]); + } + +} + +class ViewerPreferences extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "viewerPreferences", true); + this.ADBE_JSConsole = null; + this.ADBE_JSDebugger = null; + this.addViewerPreferences = null; + this.duplexOption = null; + this.enforce = null; + this.numberOfCopies = null; + this.pageRange = null; + this.pickTrayByPDFSize = null; + this.printScaling = null; + } + +} + +class WebClient extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "webClient", true); + this.name = attributes.name ? attributes.name.trim() : ""; + this.fontInfo = null; + this.xdc = null; + } + +} + +class Whitespace extends _xfa_object.OptionObject { + constructor(attributes) { + super(CONFIG_NS_ID, "whitespace", ["preserve", "ltrim", "normalize", "rtrim", "trim"]); + } + +} + +class Window extends _xfa_object.ContentObject { + constructor(attributes) { + super(CONFIG_NS_ID, "window"); + } + + [_xfa_object.$finalize]() { + const pair = this[_xfa_object.$content].trim().split(/\s*,\s*/, 2).map(x => parseInt(x, 10)); + + if (pair.some(x => isNaN(x))) { + this[_xfa_object.$content] = [0, 0]; + return; + } + + if (pair.length === 1) { + pair.push(pair[0]); + } + + this[_xfa_object.$content] = pair; + } + +} + +class Xdc extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "xdc", true); + this.uri = new _xfa_object.XFAObjectArray(); + this.xsl = new _xfa_object.XFAObjectArray(); + } + +} + +class Xdp extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "xdp", true); + this.packets = null; + } + +} + +class Xsl extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "xsl", true); + this.debug = null; + this.uri = null; + } + +} + +class Zpl extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONFIG_NS_ID, "zpl", true); + this.name = attributes.name ? attributes.name.trim() : ""; + this.batchOutput = null; + this.flipLabel = null; + this.fontInfo = null; + this.xdc = null; + } + +} + +class ConfigNamespace { + static [_namespaces.$buildXFAObject](name, attributes) { + if (ConfigNamespace.hasOwnProperty(name)) { + return ConfigNamespace[name](attributes); + } + + return undefined; + } + + static acrobat(attrs) { + return new Acrobat(attrs); + } + + static acrobat7(attrs) { + return new Acrobat7(attrs); + } + + static ADBE_JSConsole(attrs) { + return new ADBE_JSConsole(attrs); + } + + static ADBE_JSDebugger(attrs) { + return new ADBE_JSDebugger(attrs); + } + + static addSilentPrint(attrs) { + return new AddSilentPrint(attrs); + } + + static addViewerPreferences(attrs) { + return new AddViewerPreferences(attrs); + } + + static adjustData(attrs) { + return new AdjustData(attrs); + } + + static adobeExtensionLevel(attrs) { + return new AdobeExtensionLevel(attrs); + } + + static agent(attrs) { + return new Agent(attrs); + } + + static alwaysEmbed(attrs) { + return new AlwaysEmbed(attrs); + } + + static amd(attrs) { + return new Amd(attrs); + } + + static area(attrs) { + return new Area(attrs); + } + + static attributes(attrs) { + return new Attributes(attrs); + } + + static autoSave(attrs) { + return new AutoSave(attrs); + } + + static base(attrs) { + return new Base(attrs); + } + + static batchOutput(attrs) { + return new BatchOutput(attrs); + } + + static behaviorOverride(attrs) { + return new BehaviorOverride(attrs); + } + + static cache(attrs) { + return new Cache(attrs); + } + + static change(attrs) { + return new Change(attrs); + } + + static common(attrs) { + return new Common(attrs); + } + + static compress(attrs) { + return new Compress(attrs); + } + + static compressLogicalStructure(attrs) { + return new CompressLogicalStructure(attrs); + } + + static compressObjectStream(attrs) { + return new CompressObjectStream(attrs); + } + + static compression(attrs) { + return new Compression(attrs); + } + + static config(attrs) { + return new Config(attrs); + } + + static conformance(attrs) { + return new Conformance(attrs); + } + + static contentCopy(attrs) { + return new ContentCopy(attrs); + } + + static copies(attrs) { + return new Copies(attrs); + } + + static creator(attrs) { + return new Creator(attrs); + } + + static currentPage(attrs) { + return new CurrentPage(attrs); + } + + static data(attrs) { + return new Data(attrs); + } + + static debug(attrs) { + return new Debug(attrs); + } + + static defaultTypeface(attrs) { + return new DefaultTypeface(attrs); + } + + static destination(attrs) { + return new Destination(attrs); + } + + static documentAssembly(attrs) { + return new DocumentAssembly(attrs); + } + + static driver(attrs) { + return new Driver(attrs); + } + + static duplexOption(attrs) { + return new DuplexOption(attrs); + } + + static dynamicRender(attrs) { + return new DynamicRender(attrs); + } + + static embed(attrs) { + return new Embed(attrs); + } + + static encrypt(attrs) { + return new Encrypt(attrs); + } + + static encryption(attrs) { + return new Encryption(attrs); + } + + static encryptionLevel(attrs) { + return new EncryptionLevel(attrs); + } + + static enforce(attrs) { + return new Enforce(attrs); + } + + static equate(attrs) { + return new Equate(attrs); + } + + static equateRange(attrs) { + return new EquateRange(attrs); + } + + static exclude(attrs) { + return new Exclude(attrs); + } + + static excludeNS(attrs) { + return new ExcludeNS(attrs); + } + + static flipLabel(attrs) { + return new FlipLabel(attrs); + } + + static fontInfo(attrs) { + return new FontInfo(attrs); + } + + static formFieldFilling(attrs) { + return new FormFieldFilling(attrs); + } + + static groupParent(attrs) { + return new GroupParent(attrs); + } + + static ifEmpty(attrs) { + return new IfEmpty(attrs); + } + + static includeXDPContent(attrs) { + return new IncludeXDPContent(attrs); + } + + static incrementalLoad(attrs) { + return new IncrementalLoad(attrs); + } + + static incrementalMerge(attrs) { + return new IncrementalMerge(attrs); + } + + static interactive(attrs) { + return new Interactive(attrs); + } + + static jog(attrs) { + return new Jog(attrs); + } + + static labelPrinter(attrs) { + return new LabelPrinter(attrs); + } + + static layout(attrs) { + return new Layout(attrs); + } + + static level(attrs) { + return new Level(attrs); + } + + static linearized(attrs) { + return new Linearized(attrs); + } + + static locale(attrs) { + return new Locale(attrs); + } + + static localeSet(attrs) { + return new LocaleSet(attrs); + } + + static log(attrs) { + return new Log(attrs); + } + + static map(attrs) { + return new MapElement(attrs); + } + + static mediumInfo(attrs) { + return new MediumInfo(attrs); + } + + static message(attrs) { + return new Message(attrs); + } + + static messaging(attrs) { + return new Messaging(attrs); + } + + static mode(attrs) { + return new Mode(attrs); + } + + static modifyAnnots(attrs) { + return new ModifyAnnots(attrs); + } + + static msgId(attrs) { + return new MsgId(attrs); + } + + static nameAttr(attrs) { + return new NameAttr(attrs); + } + + static neverEmbed(attrs) { + return new NeverEmbed(attrs); + } + + static numberOfCopies(attrs) { + return new NumberOfCopies(attrs); + } + + static openAction(attrs) { + return new OpenAction(attrs); + } + + static output(attrs) { + return new Output(attrs); + } + + static outputBin(attrs) { + return new OutputBin(attrs); + } + + static outputXSL(attrs) { + return new OutputXSL(attrs); + } + + static overprint(attrs) { + return new Overprint(attrs); + } + + static packets(attrs) { + return new Packets(attrs); + } + + static pageOffset(attrs) { + return new PageOffset(attrs); + } + + static pageRange(attrs) { + return new PageRange(attrs); + } + + static pagination(attrs) { + return new Pagination(attrs); + } + + static paginationOverride(attrs) { + return new PaginationOverride(attrs); + } + + static part(attrs) { + return new Part(attrs); + } + + static pcl(attrs) { + return new Pcl(attrs); + } + + static pdf(attrs) { + return new Pdf(attrs); + } + + static pdfa(attrs) { + return new Pdfa(attrs); + } + + static permissions(attrs) { + return new Permissions(attrs); + } + + static pickTrayByPDFSize(attrs) { + return new PickTrayByPDFSize(attrs); + } + + static picture(attrs) { + return new Picture(attrs); + } + + static plaintextMetadata(attrs) { + return new PlaintextMetadata(attrs); + } + + static presence(attrs) { + return new Presence(attrs); + } + + static present(attrs) { + return new Present(attrs); + } + + static print(attrs) { + return new Print(attrs); + } + + static printHighQuality(attrs) { + return new PrintHighQuality(attrs); + } + + static printScaling(attrs) { + return new PrintScaling(attrs); + } + + static printerName(attrs) { + return new PrinterName(attrs); + } + + static producer(attrs) { + return new Producer(attrs); + } + + static ps(attrs) { + return new Ps(attrs); + } + + static range(attrs) { + return new Range(attrs); + } + + static record(attrs) { + return new Record(attrs); + } + + static relevant(attrs) { + return new Relevant(attrs); + } + + static rename(attrs) { + return new Rename(attrs); + } + + static renderPolicy(attrs) { + return new RenderPolicy(attrs); + } + + static runScripts(attrs) { + return new RunScripts(attrs); + } + + static script(attrs) { + return new Script(attrs); + } + + static scriptModel(attrs) { + return new ScriptModel(attrs); + } + + static severity(attrs) { + return new Severity(attrs); + } + + static silentPrint(attrs) { + return new SilentPrint(attrs); + } + + static staple(attrs) { + return new Staple(attrs); + } + + static startNode(attrs) { + return new StartNode(attrs); + } + + static startPage(attrs) { + return new StartPage(attrs); + } + + static submitFormat(attrs) { + return new SubmitFormat(attrs); + } + + static submitUrl(attrs) { + return new SubmitUrl(attrs); + } + + static subsetBelow(attrs) { + return new SubsetBelow(attrs); + } + + static suppressBanner(attrs) { + return new SuppressBanner(attrs); + } + + static tagged(attrs) { + return new Tagged(attrs); + } + + static template(attrs) { + return new Template(attrs); + } + + static templateCache(attrs) { + return new TemplateCache(attrs); + } + + static threshold(attrs) { + return new Threshold(attrs); + } + + static to(attrs) { + return new To(attrs); + } + + static trace(attrs) { + return new Trace(attrs); + } + + static transform(attrs) { + return new Transform(attrs); + } + + static type(attrs) { + return new Type(attrs); + } + + static uri(attrs) { + return new Uri(attrs); + } + + static validate(attrs) { + return new Validate(attrs); + } + + static validateApprovalSignatures(attrs) { + return new ValidateApprovalSignatures(attrs); + } + + static validationMessaging(attrs) { + return new ValidationMessaging(attrs); + } + + static version(attrs) { + return new Version(attrs); + } + + static versionControl(attrs) { + return new VersionControl(attrs); + } + + static viewerPreferences(attrs) { + return new ViewerPreferences(attrs); + } + + static webClient(attrs) { + return new WebClient(attrs); + } + + static whitespace(attrs) { + return new Whitespace(attrs); + } + + static window(attrs) { + return new Window(attrs); + } + + static xdc(attrs) { + return new Xdc(attrs); + } + + static xdp(attrs) { + return new Xdp(attrs); + } + + static xsl(attrs) { + return new Xsl(attrs); + } + + static zpl(attrs) { + return new Zpl(attrs); + } + +} + +exports.ConfigNamespace = ConfigNamespace; + +/***/ }), +/* 92 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ConnectionSetNamespace = void 0; + +var _namespaces = __w_pdfjs_require__(79); + +var _xfa_object = __w_pdfjs_require__(77); + +const CONNECTION_SET_NS_ID = _namespaces.NamespaceIds.connectionSet.id; + +class ConnectionSet extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONNECTION_SET_NS_ID, "connectionSet", true); + this.wsdlConnection = new _xfa_object.XFAObjectArray(); + this.xmlConnection = new _xfa_object.XFAObjectArray(); + this.xsdConnection = new _xfa_object.XFAObjectArray(); + } + +} + +class EffectiveInputPolicy extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONNECTION_SET_NS_ID, "effectiveInputPolicy"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class EffectiveOutputPolicy extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONNECTION_SET_NS_ID, "effectiveOutputPolicy"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Operation extends _xfa_object.StringObject { + constructor(attributes) { + super(CONNECTION_SET_NS_ID, "operation"); + this.id = attributes.id || ""; + this.input = attributes.input || ""; + this.name = attributes.name || ""; + this.output = attributes.output || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class RootElement extends _xfa_object.StringObject { + constructor(attributes) { + super(CONNECTION_SET_NS_ID, "rootElement"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class SoapAction extends _xfa_object.StringObject { + constructor(attributes) { + super(CONNECTION_SET_NS_ID, "soapAction"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class SoapAddress extends _xfa_object.StringObject { + constructor(attributes) { + super(CONNECTION_SET_NS_ID, "soapAddress"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class Uri extends _xfa_object.StringObject { + constructor(attributes) { + super(CONNECTION_SET_NS_ID, "uri"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class WsdlAddress extends _xfa_object.StringObject { + constructor(attributes) { + super(CONNECTION_SET_NS_ID, "wsdlAddress"); + this.id = attributes.id || ""; + this.name = attributes.name || ""; + this.use = attributes.use || ""; + this.usehref = attributes.usehref || ""; + } + +} + +class WsdlConnection extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONNECTION_SET_NS_ID, "wsdlConnection", true); + this.dataDescription = attributes.dataDescription || ""; + this.name = attributes.name || ""; + this.effectiveInputPolicy = null; + this.effectiveOutputPolicy = null; + this.operation = null; + this.soapAction = null; + this.soapAddress = null; + this.wsdlAddress = null; + } + +} + +class XmlConnection extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONNECTION_SET_NS_ID, "xmlConnection", true); + this.dataDescription = attributes.dataDescription || ""; + this.name = attributes.name || ""; + this.uri = null; + } + +} + +class XsdConnection extends _xfa_object.XFAObject { + constructor(attributes) { + super(CONNECTION_SET_NS_ID, "xsdConnection", true); + this.dataDescription = attributes.dataDescription || ""; + this.name = attributes.name || ""; + this.rootElement = null; + this.uri = null; + } + +} + +class ConnectionSetNamespace { + static [_namespaces.$buildXFAObject](name, attributes) { + if (ConnectionSetNamespace.hasOwnProperty(name)) { + return ConnectionSetNamespace[name](attributes); + } + + return undefined; + } + + static connectionSet(attrs) { + return new ConnectionSet(attrs); + } + + static effectiveInputPolicy(attrs) { + return new EffectiveInputPolicy(attrs); + } + + static effectiveOutputPolicy(attrs) { + return new EffectiveOutputPolicy(attrs); + } + + static operation(attrs) { + return new Operation(attrs); + } + + static rootElement(attrs) { + return new RootElement(attrs); + } + + static soapAction(attrs) { + return new SoapAction(attrs); + } + + static soapAddress(attrs) { + return new SoapAddress(attrs); + } + + static uri(attrs) { + return new Uri(attrs); + } + + static wsdlAddress(attrs) { + return new WsdlAddress(attrs); + } + + static wsdlConnection(attrs) { + return new WsdlConnection(attrs); + } + + static xmlConnection(attrs) { + return new XmlConnection(attrs); + } + + static xsdConnection(attrs) { + return new XsdConnection(attrs); + } + +} + +exports.ConnectionSetNamespace = ConnectionSetNamespace; + +/***/ }), +/* 93 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.DatasetsNamespace = void 0; + +var _xfa_object = __w_pdfjs_require__(77); + +var _namespaces = __w_pdfjs_require__(79); + +const DATASETS_NS_ID = _namespaces.NamespaceIds.datasets.id; + +class Data extends _xfa_object.XmlObject { + constructor(attributes) { + super(DATASETS_NS_ID, "data", attributes); + } + + [_xfa_object.$isNsAgnostic]() { + return true; + } + +} + +class Datasets extends _xfa_object.XFAObject { + constructor(attributes) { + super(DATASETS_NS_ID, "datasets", true); + this.data = null; + this.Signature = null; + } + + [_xfa_object.$onChild](child) { + const name = child[_xfa_object.$nodeName]; + + if (name === "data" && child[_xfa_object.$namespaceId] === DATASETS_NS_ID || name === "Signature" && child[_xfa_object.$namespaceId] === _namespaces.NamespaceIds.signature.id) { + this[name] = child; + } + + this[_xfa_object.$appendChild](child); + } + +} + +class DatasetsNamespace { + static [_namespaces.$buildXFAObject](name, attributes) { + if (DatasetsNamespace.hasOwnProperty(name)) { + return DatasetsNamespace[name](attributes); + } + + return undefined; + } + + static datasets(attributes) { + return new Datasets(attributes); + } + + static data(attributes) { + return new Data(attributes); + } + +} + +exports.DatasetsNamespace = DatasetsNamespace; + +/***/ }), +/* 94 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.LocaleSetNamespace = void 0; + +var _namespaces = __w_pdfjs_require__(79); + +var _xfa_object = __w_pdfjs_require__(77); + +var _utils = __w_pdfjs_require__(78); + +const LOCALE_SET_NS_ID = _namespaces.NamespaceIds.localeSet.id; + +class CalendarSymbols extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "calendarSymbols", true); + this.name = "gregorian"; + this.dayNames = new _xfa_object.XFAObjectArray(2); + this.eraNames = null; + this.meridiemNames = null; + this.monthNames = new _xfa_object.XFAObjectArray(2); + } + +} + +class CurrencySymbol extends _xfa_object.StringObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "currencySymbol"); + this.name = (0, _utils.getStringOption)(attributes.name, ["symbol", "isoname", "decimal"]); + } + +} + +class CurrencySymbols extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "currencySymbols", true); + this.currencySymbol = new _xfa_object.XFAObjectArray(3); + } + +} + +class DatePattern extends _xfa_object.StringObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "datePattern"); + this.name = (0, _utils.getStringOption)(attributes.name, ["full", "long", "med", "short"]); + } + +} + +class DatePatterns extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "datePatterns", true); + this.datePattern = new _xfa_object.XFAObjectArray(4); + } + +} + +class DateTimeSymbols extends _xfa_object.ContentObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "dateTimeSymbols"); + } + +} + +class Day extends _xfa_object.StringObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "day"); + } + +} + +class DayNames extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "dayNames", true); + this.abbr = (0, _utils.getInteger)({ + data: attributes.abbr, + defaultValue: 0, + validate: x => x === 1 + }); + this.day = new _xfa_object.XFAObjectArray(7); + } + +} + +class Era extends _xfa_object.StringObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "era"); + } + +} + +class EraNames extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "eraNames", true); + this.era = new _xfa_object.XFAObjectArray(2); + } + +} + +class Locale extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "locale", true); + this.desc = attributes.desc || ""; + this.name = "isoname"; + this.calendarSymbols = null; + this.currencySymbols = null; + this.datePatterns = null; + this.dateTimeSymbols = null; + this.numberPatterns = null; + this.numberSymbols = null; + this.timePatterns = null; + this.typeFaces = null; + } + +} + +class LocaleSet extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "localeSet", true); + this.locale = new _xfa_object.XFAObjectArray(); + } + +} + +class Meridiem extends _xfa_object.StringObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "meridiem"); + } + +} + +class MeridiemNames extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "meridiemNames", true); + this.meridiem = new _xfa_object.XFAObjectArray(2); + } + +} + +class Month extends _xfa_object.StringObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "month"); + } + +} + +class MonthNames extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "monthNames", true); + this.abbr = (0, _utils.getInteger)({ + data: attributes.abbr, + defaultValue: 0, + validate: x => x === 1 + }); + this.month = new _xfa_object.XFAObjectArray(12); + } + +} + +class NumberPattern extends _xfa_object.StringObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "numberPattern"); + this.name = (0, _utils.getStringOption)(attributes.name, ["full", "long", "med", "short"]); + } + +} + +class NumberPatterns extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "numberPatterns", true); + this.numberPattern = new _xfa_object.XFAObjectArray(4); + } + +} + +class NumberSymbol extends _xfa_object.StringObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "numberSymbol"); + this.name = (0, _utils.getStringOption)(attributes.name, ["decimal", "grouping", "percent", "minus", "zero"]); + } + +} + +class NumberSymbols extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "numberSymbols", true); + this.numberSymbol = new _xfa_object.XFAObjectArray(5); + } + +} + +class TimePattern extends _xfa_object.StringObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "timePattern"); + this.name = (0, _utils.getStringOption)(attributes.name, ["full", "long", "med", "short"]); + } + +} + +class TimePatterns extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "timePatterns", true); + this.timePattern = new _xfa_object.XFAObjectArray(4); + } + +} + +class TypeFace extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "typeFace", true); + this.name = attributes.name | ""; + } + +} + +class TypeFaces extends _xfa_object.XFAObject { + constructor(attributes) { + super(LOCALE_SET_NS_ID, "typeFaces", true); + this.typeFace = new _xfa_object.XFAObjectArray(); + } + +} + +class LocaleSetNamespace { + static [_namespaces.$buildXFAObject](name, attributes) { + if (LocaleSetNamespace.hasOwnProperty(name)) { + return LocaleSetNamespace[name](attributes); + } + + return undefined; + } + + static calendarSymbols(attrs) { + return new CalendarSymbols(attrs); + } + + static currencySymbol(attrs) { + return new CurrencySymbol(attrs); + } + + static currencySymbols(attrs) { + return new CurrencySymbols(attrs); + } + + static datePattern(attrs) { + return new DatePattern(attrs); + } + + static datePatterns(attrs) { + return new DatePatterns(attrs); + } + + static dateTimeSymbols(attrs) { + return new DateTimeSymbols(attrs); + } + + static day(attrs) { + return new Day(attrs); + } + + static dayNames(attrs) { + return new DayNames(attrs); + } + + static era(attrs) { + return new Era(attrs); + } + + static eraNames(attrs) { + return new EraNames(attrs); + } + + static locale(attrs) { + return new Locale(attrs); + } + + static localeSet(attrs) { + return new LocaleSet(attrs); + } + + static meridiem(attrs) { + return new Meridiem(attrs); + } + + static meridiemNames(attrs) { + return new MeridiemNames(attrs); + } + + static month(attrs) { + return new Month(attrs); + } + + static monthNames(attrs) { + return new MonthNames(attrs); + } + + static numberPattern(attrs) { + return new NumberPattern(attrs); + } + + static numberPatterns(attrs) { + return new NumberPatterns(attrs); + } + + static numberSymbol(attrs) { + return new NumberSymbol(attrs); + } + + static numberSymbols(attrs) { + return new NumberSymbols(attrs); + } + + static timePattern(attrs) { + return new TimePattern(attrs); + } + + static timePatterns(attrs) { + return new TimePatterns(attrs); + } + + static typeFace(attrs) { + return new TypeFace(attrs); + } + + static typeFaces(attrs) { + return new TypeFaces(attrs); + } + +} + +exports.LocaleSetNamespace = LocaleSetNamespace; + +/***/ }), +/* 95 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.SignatureNamespace = void 0; + +var _namespaces = __w_pdfjs_require__(79); + +var _xfa_object = __w_pdfjs_require__(77); + +const SIGNATURE_NS_ID = _namespaces.NamespaceIds.signature.id; + +class Signature extends _xfa_object.XFAObject { + constructor(attributes) { + super(SIGNATURE_NS_ID, "signature", true); + } + +} + +class SignatureNamespace { + static [_namespaces.$buildXFAObject](name, attributes) { + if (SignatureNamespace.hasOwnProperty(name)) { + return SignatureNamespace[name](attributes); + } + + return undefined; + } + + static signature(attributes) { + return new Signature(attributes); + } + +} + +exports.SignatureNamespace = SignatureNamespace; + +/***/ }), +/* 96 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.StylesheetNamespace = void 0; + +var _namespaces = __w_pdfjs_require__(79); + +var _xfa_object = __w_pdfjs_require__(77); + +const STYLESHEET_NS_ID = _namespaces.NamespaceIds.stylesheet.id; + +class Stylesheet extends _xfa_object.XFAObject { + constructor(attributes) { + super(STYLESHEET_NS_ID, "stylesheet", true); + } + +} + +class StylesheetNamespace { + static [_namespaces.$buildXFAObject](name, attributes) { + if (StylesheetNamespace.hasOwnProperty(name)) { + return StylesheetNamespace[name](attributes); + } + + return undefined; + } + + static stylesheet(attributes) { + return new Stylesheet(attributes); + } + +} + +exports.StylesheetNamespace = StylesheetNamespace; + +/***/ }), +/* 97 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.XdpNamespace = void 0; + +var _namespaces = __w_pdfjs_require__(79); + +var _xfa_object = __w_pdfjs_require__(77); + +const XDP_NS_ID = _namespaces.NamespaceIds.xdp.id; + +class Xdp extends _xfa_object.XFAObject { + constructor(attributes) { + super(XDP_NS_ID, "xdp", true); + this.uuid = attributes.uuid || ""; + this.timeStamp = attributes.timeStamp || ""; + this.config = null; + this.connectionSet = null; + this.datasets = null; + this.localeSet = null; + this.stylesheet = new _xfa_object.XFAObjectArray(); + this.template = null; + } + + [_xfa_object.$onChildCheck](child) { + const ns = _namespaces.NamespaceIds[child[_xfa_object.$nodeName]]; + return ns && child[_xfa_object.$namespaceId] === ns.id; + } + +} + +class XdpNamespace { + static [_namespaces.$buildXFAObject](name, attributes) { + if (XdpNamespace.hasOwnProperty(name)) { + return XdpNamespace[name](attributes); + } + + return undefined; + } + + static xdp(attributes) { + return new Xdp(attributes); + } + +} + +exports.XdpNamespace = XdpNamespace; + +/***/ }), +/* 98 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.XhtmlNamespace = void 0; + +var _xfa_object = __w_pdfjs_require__(77); + +var _namespaces = __w_pdfjs_require__(79); + +var _html_utils = __w_pdfjs_require__(84); + +var _utils = __w_pdfjs_require__(78); + +const XHTML_NS_ID = _namespaces.NamespaceIds.xhtml.id; +const $richText = Symbol(); +const VALID_STYLES = new Set(["color", "font", "font-family", "font-size", "font-stretch", "font-style", "font-weight", "margin", "margin-bottom", "margin-left", "margin-right", "margin-top", "letter-spacing", "line-height", "orphans", "page-break-after", "page-break-before", "page-break-inside", "tab-interval", "tab-stop", "text-align", "text-decoration", "text-indent", "vertical-align", "widows", "kerning-mode", "xfa-font-horizontal-scale", "xfa-font-vertical-scale", "xfa-spacerun", "xfa-tab-stops"]); +const StyleMapping = new Map([["page-break-after", "breakAfter"], ["page-break-before", "breakBefore"], ["page-break-inside", "breakInside"], ["kerning-mode", value => value === "none" ? "none" : "normal"], ["xfa-font-horizontal-scale", value => `scaleX(${Math.max(0, Math.min(parseInt(value) / 100)).toFixed(2)})`], ["xfa-font-vertical-scale", value => `scaleY(${Math.max(0, Math.min(parseInt(value) / 100)).toFixed(2)})`], ["xfa-spacerun", ""], ["xfa-tab-stops", ""], ["font-size", (value, original) => { + value = original.fontSize = (0, _utils.getMeasurement)(value); + return (0, _html_utils.measureToString)(0.99 * value); +}], ["letter-spacing", value => (0, _html_utils.measureToString)((0, _utils.getMeasurement)(value))], ["line-height", value => (0, _html_utils.measureToString)((0, _utils.getMeasurement)(value))], ["margin", value => (0, _html_utils.measureToString)((0, _utils.getMeasurement)(value))], ["margin-bottom", value => (0, _html_utils.measureToString)((0, _utils.getMeasurement)(value))], ["margin-left", value => (0, _html_utils.measureToString)((0, _utils.getMeasurement)(value))], ["margin-right", value => (0, _html_utils.measureToString)((0, _utils.getMeasurement)(value))], ["margin-top", value => (0, _html_utils.measureToString)((0, _utils.getMeasurement)(value))], ["text-indent", value => (0, _html_utils.measureToString)((0, _utils.getMeasurement)(value))], ["font-family", value => value], ["vertical-align", value => (0, _html_utils.measureToString)((0, _utils.getMeasurement)(value))]]); +const spacesRegExp = /\s+/g; +const crlfRegExp = /[\r\n]+/g; +const crlfForRichTextRegExp = /\r\n?/g; + +function mapStyle(styleStr, node, richText) { + const style = Object.create(null); + + if (!styleStr) { + return style; + } + + const original = Object.create(null); + + for (const [key, value] of styleStr.split(";").map(s => s.split(":", 2))) { + const mapping = StyleMapping.get(key); + + if (mapping === "") { + continue; + } + + let newValue = value; + + if (mapping) { + if (typeof mapping === "string") { + newValue = mapping; + } else { + newValue = mapping(value, original); + } + } + + if (key.endsWith("scale")) { + if (style.transform) { + style.transform = `${style[key]} ${newValue}`; + } else { + style.transform = newValue; + } + } else { + style[key.replaceAll(/-([a-zA-Z])/g, (_, x) => x.toUpperCase())] = newValue; + } + } + + if (style.fontFamily) { + (0, _html_utils.setFontFamily)({ + typeface: style.fontFamily, + weight: style.fontWeight || "normal", + posture: style.fontStyle || "normal", + size: original.fontSize || 0 + }, node, node[_xfa_object.$globalData].fontFinder, style); + } + + if (richText && style.verticalAlign && style.verticalAlign !== "0px" && style.fontSize) { + const SUB_SUPER_SCRIPT_FACTOR = 0.583; + const VERTICAL_FACTOR = 0.333; + const fontSize = (0, _utils.getMeasurement)(style.fontSize); + style.fontSize = (0, _html_utils.measureToString)(fontSize * SUB_SUPER_SCRIPT_FACTOR); + style.verticalAlign = (0, _html_utils.measureToString)(Math.sign((0, _utils.getMeasurement)(style.verticalAlign)) * fontSize * VERTICAL_FACTOR); + } + + if (richText && style.fontSize) { + style.fontSize = `calc(${style.fontSize} * var(--scale-factor))`; + } + + (0, _html_utils.fixTextIndent)(style); + return style; +} + +function checkStyle(node) { + if (!node.style) { + return ""; + } + + return node.style.trim().split(/\s*;\s*/).filter(s => !!s).map(s => s.split(/\s*:\s*/, 2)).filter(([key, value]) => { + if (key === "font-family") { + node[_xfa_object.$globalData].usedTypefaces.add(value); + } + + return VALID_STYLES.has(key); + }).map(kv => kv.join(":")).join(";"); +} + +const NoWhites = new Set(["body", "html"]); + +class XhtmlObject extends _xfa_object.XmlObject { + constructor(attributes, name) { + super(XHTML_NS_ID, name); + this[$richText] = false; + this.style = attributes.style || ""; + } + + [_xfa_object.$clean](builder) { + super[_xfa_object.$clean](builder); + + this.style = checkStyle(this); + } + + [_xfa_object.$acceptWhitespace]() { + return !NoWhites.has(this[_xfa_object.$nodeName]); + } + + [_xfa_object.$onText](str, richText = false) { + if (!richText) { + str = str.replace(crlfRegExp, ""); + + if (!this.style.includes("xfa-spacerun:yes")) { + str = str.replace(spacesRegExp, " "); + } + } else { + this[$richText] = true; + } + + if (str) { + this[_xfa_object.$content] += str; + } + } + + [_xfa_object.$pushGlyphs](measure, mustPop = true) { + const xfaFont = Object.create(null); + const margin = { + top: NaN, + bottom: NaN, + left: NaN, + right: NaN + }; + let lineHeight = null; + + for (const [key, value] of this.style.split(";").map(s => s.split(":", 2))) { + switch (key) { + case "font-family": + xfaFont.typeface = (0, _utils.stripQuotes)(value); + break; + + case "font-size": + xfaFont.size = (0, _utils.getMeasurement)(value); + break; + + case "font-weight": + xfaFont.weight = value; + break; + + case "font-style": + xfaFont.posture = value; + break; + + case "letter-spacing": + xfaFont.letterSpacing = (0, _utils.getMeasurement)(value); + break; + + case "margin": + const values = value.split(/ \t/).map(x => (0, _utils.getMeasurement)(x)); + + switch (values.length) { + case 1: + margin.top = margin.bottom = margin.left = margin.right = values[0]; + break; + + case 2: + margin.top = margin.bottom = values[0]; + margin.left = margin.right = values[1]; + break; + + case 3: + margin.top = values[0]; + margin.bottom = values[2]; + margin.left = margin.right = values[1]; + break; + + case 4: + margin.top = values[0]; + margin.left = values[1]; + margin.bottom = values[2]; + margin.right = values[3]; + break; + } + + break; + + case "margin-top": + margin.top = (0, _utils.getMeasurement)(value); + break; + + case "margin-bottom": + margin.bottom = (0, _utils.getMeasurement)(value); + break; + + case "margin-left": + margin.left = (0, _utils.getMeasurement)(value); + break; + + case "margin-right": + margin.right = (0, _utils.getMeasurement)(value); + break; + + case "line-height": + lineHeight = (0, _utils.getMeasurement)(value); + break; + } + } + + measure.pushData(xfaFont, margin, lineHeight); + + if (this[_xfa_object.$content]) { + measure.addString(this[_xfa_object.$content]); + } else { + for (const child of this[_xfa_object.$getChildren]()) { + if (child[_xfa_object.$nodeName] === "#text") { + measure.addString(child[_xfa_object.$content]); + continue; + } + + child[_xfa_object.$pushGlyphs](measure); + } + } + + if (mustPop) { + measure.popFont(); + } + } + + [_xfa_object.$toHTML](availableSpace) { + const children = []; + this[_xfa_object.$extra] = { + children + }; + + this[_xfa_object.$childrenToHTML]({}); + + if (children.length === 0 && !this[_xfa_object.$content]) { + return _utils.HTMLResult.EMPTY; + } + + let value; + + if (this[$richText]) { + value = this[_xfa_object.$content] ? this[_xfa_object.$content].replace(crlfForRichTextRegExp, "\n") : undefined; + } else { + value = this[_xfa_object.$content] || undefined; + } + + return _utils.HTMLResult.success({ + name: this[_xfa_object.$nodeName], + attributes: { + href: this.href, + style: mapStyle(this.style, this, this[$richText]) + }, + children, + value + }); + } + +} + +class A extends XhtmlObject { + constructor(attributes) { + super(attributes, "a"); + this.href = (0, _html_utils.fixURL)(attributes.href) || ""; + } + +} + +class B extends XhtmlObject { + constructor(attributes) { + super(attributes, "b"); + } + + [_xfa_object.$pushGlyphs](measure) { + measure.pushFont({ + weight: "bold" + }); + + super[_xfa_object.$pushGlyphs](measure); + + measure.popFont(); + } + +} + +class Body extends XhtmlObject { + constructor(attributes) { + super(attributes, "body"); + } + + [_xfa_object.$toHTML](availableSpace) { + const res = super[_xfa_object.$toHTML](availableSpace); + + const { + html + } = res; + + if (!html) { + return _utils.HTMLResult.EMPTY; + } + + html.name = "div"; + html.attributes.class = ["xfaRich"]; + return res; + } + +} + +class Br extends XhtmlObject { + constructor(attributes) { + super(attributes, "br"); + } + + [_xfa_object.$text]() { + return "\n"; + } + + [_xfa_object.$pushGlyphs](measure) { + measure.addString("\n"); + } + + [_xfa_object.$toHTML](availableSpace) { + return _utils.HTMLResult.success({ + name: "br" + }); + } + +} + +class Html extends XhtmlObject { + constructor(attributes) { + super(attributes, "html"); + } + + [_xfa_object.$toHTML](availableSpace) { + const children = []; + this[_xfa_object.$extra] = { + children + }; + + this[_xfa_object.$childrenToHTML]({}); + + if (children.length === 0) { + return _utils.HTMLResult.success({ + name: "div", + attributes: { + class: ["xfaRich"], + style: {} + }, + value: this[_xfa_object.$content] || "" + }); + } + + if (children.length === 1) { + const child = children[0]; + + if (child.attributes && child.attributes.class.includes("xfaRich")) { + return _utils.HTMLResult.success(child); + } + } + + return _utils.HTMLResult.success({ + name: "div", + attributes: { + class: ["xfaRich"], + style: {} + }, + children + }); + } + +} + +class I extends XhtmlObject { + constructor(attributes) { + super(attributes, "i"); + } + + [_xfa_object.$pushGlyphs](measure) { + measure.pushFont({ + posture: "italic" + }); + + super[_xfa_object.$pushGlyphs](measure); + + measure.popFont(); + } + +} + +class Li extends XhtmlObject { + constructor(attributes) { + super(attributes, "li"); + } + +} + +class Ol extends XhtmlObject { + constructor(attributes) { + super(attributes, "ol"); + } + +} + +class P extends XhtmlObject { + constructor(attributes) { + super(attributes, "p"); + } + + [_xfa_object.$pushGlyphs](measure) { + super[_xfa_object.$pushGlyphs](measure, false); + + measure.addString("\n"); + measure.addPara(); + measure.popFont(); + } + + [_xfa_object.$text]() { + const siblings = this[_xfa_object.$getParent]()[_xfa_object.$getChildren](); + + if (siblings.at(-1) === this) { + return super[_xfa_object.$text](); + } + + return super[_xfa_object.$text]() + "\n"; + } + +} + +class Span extends XhtmlObject { + constructor(attributes) { + super(attributes, "span"); + } + +} + +class Sub extends XhtmlObject { + constructor(attributes) { + super(attributes, "sub"); + } + +} + +class Sup extends XhtmlObject { + constructor(attributes) { + super(attributes, "sup"); + } + +} + +class Ul extends XhtmlObject { + constructor(attributes) { + super(attributes, "ul"); + } + +} + +class XhtmlNamespace { + static [_namespaces.$buildXFAObject](name, attributes) { + if (XhtmlNamespace.hasOwnProperty(name)) { + return XhtmlNamespace[name](attributes); + } + + return undefined; + } + + static a(attributes) { + return new A(attributes); + } + + static b(attributes) { + return new B(attributes); + } + + static body(attributes) { + return new Body(attributes); + } + + static br(attributes) { + return new Br(attributes); + } + + static html(attributes) { + return new Html(attributes); + } + + static i(attributes) { + return new I(attributes); + } + + static li(attributes) { + return new Li(attributes); + } + + static ol(attributes) { + return new Ol(attributes); + } + + static p(attributes) { + return new P(attributes); + } + + static span(attributes) { + return new Span(attributes); + } + + static sub(attributes) { + return new Sub(attributes); + } + + static sup(attributes) { + return new Sup(attributes); + } + + static ul(attributes) { + return new Ul(attributes); + } + +} + +exports.XhtmlNamespace = XhtmlNamespace; + +/***/ }), +/* 99 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.UnknownNamespace = void 0; + +var _namespaces = __w_pdfjs_require__(79); + +var _xfa_object = __w_pdfjs_require__(77); + +class UnknownNamespace { + constructor(nsId) { + this.namespaceId = nsId; + } + + [_namespaces.$buildXFAObject](name, attributes) { + return new _xfa_object.XmlObject(this.namespaceId, name, attributes); + } + +} + +exports.UnknownNamespace = UnknownNamespace; + +/***/ }), +/* 100 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.DatasetReader = void 0; + +var _util = __w_pdfjs_require__(2); + +var _core_utils = __w_pdfjs_require__(6); + +var _xml_parser = __w_pdfjs_require__(66); + +function decodeString(str) { + try { + return (0, _util.stringToUTF8String)(str); + } catch (ex) { + (0, _util.warn)(`UTF-8 decoding failed: "${ex}".`); + return str; + } +} + +class DatasetXMLParser extends _xml_parser.SimpleXMLParser { + constructor(options) { + super(options); + this.node = null; + } + + onEndElement(name) { + const node = super.onEndElement(name); + + if (node && name === "xfa:datasets") { + this.node = node; + throw new Error("Aborting DatasetXMLParser."); + } + } + +} + +class DatasetReader { + constructor(data) { + if (data.datasets) { + this.node = new _xml_parser.SimpleXMLParser({ + hasAttributes: true + }).parseFromString(data.datasets).documentElement; + } else { + const parser = new DatasetXMLParser({ + hasAttributes: true + }); + + try { + parser.parseFromString(data["xdp:xdp"]); + } catch (_) {} + + this.node = parser.node; + } + } + + getValue(path) { + if (!this.node || !path) { + return ""; + } + + const node = this.node.searchNode((0, _core_utils.parseXFAPath)(path), 0); + + if (!node) { + return ""; + } + + const first = node.firstChild; + + if (first && first.nodeName === "value") { + return node.children.map(child => decodeString(child.textContent)); + } + + return decodeString(node.textContent); + } + +} + +exports.DatasetReader = DatasetReader; + +/***/ }), +/* 101 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.XRef = void 0; + +var _util = __w_pdfjs_require__(2); + +var _primitives = __w_pdfjs_require__(5); + +var _core_utils = __w_pdfjs_require__(6); + +var _parser = __w_pdfjs_require__(17); + +var _base_stream = __w_pdfjs_require__(7); + +var _crypto = __w_pdfjs_require__(67); + +class XRef { + constructor(stream, pdfManager) { + this.stream = stream; + this.pdfManager = pdfManager; + this.entries = []; + this.xrefstms = Object.create(null); + this._cacheMap = new Map(); + this._pendingRefs = new _primitives.RefSet(); + this.stats = new _core_utils.DocStats(pdfManager.msgHandler); + this._newRefNum = null; + } + + getNewRef() { + if (this._newRefNum === null) { + this._newRefNum = this.entries.length || 1; + } + + return _primitives.Ref.get(this._newRefNum++, 0); + } + + resetNewRef() { + this._newRefNum = null; + } + + setStartXRef(startXRef) { + this.startXRefQueue = [startXRef]; + } + + parse(recoveryMode = false) { + let trailerDict; + + if (!recoveryMode) { + trailerDict = this.readXRef(); + } else { + (0, _util.warn)("Indexing all PDF objects"); + trailerDict = this.indexObjects(); + } + + trailerDict.assignXref(this); + this.trailer = trailerDict; + let encrypt; + + try { + encrypt = trailerDict.get("Encrypt"); + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.warn)(`XRef.parse - Invalid "Encrypt" reference: "${ex}".`); + } + + if (encrypt instanceof _primitives.Dict) { + const ids = trailerDict.get("ID"); + const fileId = ids && ids.length ? ids[0] : ""; + encrypt.suppressEncryption = true; + this.encrypt = new _crypto.CipherTransformFactory(encrypt, fileId, this.pdfManager.password); + } + + let root; + + try { + root = trailerDict.get("Root"); + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.warn)(`XRef.parse - Invalid "Root" reference: "${ex}".`); + } + + if (root instanceof _primitives.Dict) { + try { + const pages = root.get("Pages"); + + if (pages instanceof _primitives.Dict) { + this.root = root; + return; + } + } catch (ex) { + if (ex instanceof _core_utils.MissingDataException) { + throw ex; + } + + (0, _util.warn)(`XRef.parse - Invalid "Pages" reference: "${ex}".`); + } + } + + if (!recoveryMode) { + throw new _core_utils.XRefParseException(); + } + + throw new _util.InvalidPDFException("Invalid Root reference."); + } + + processXRefTable(parser) { + if (!("tableState" in this)) { + this.tableState = { + entryNum: 0, + streamPos: parser.lexer.stream.pos, + parserBuf1: parser.buf1, + parserBuf2: parser.buf2 + }; + } + + const obj = this.readXRefTable(parser); + + if (!(0, _primitives.isCmd)(obj, "trailer")) { + throw new _util.FormatError("Invalid XRef table: could not find trailer dictionary"); + } + + let dict = parser.getObj(); + + if (!(dict instanceof _primitives.Dict) && dict.dict) { + dict = dict.dict; + } + + if (!(dict instanceof _primitives.Dict)) { + throw new _util.FormatError("Invalid XRef table: could not parse trailer dictionary"); + } + + delete this.tableState; + return dict; + } + + readXRefTable(parser) { + const stream = parser.lexer.stream; + const tableState = this.tableState; + stream.pos = tableState.streamPos; + parser.buf1 = tableState.parserBuf1; + parser.buf2 = tableState.parserBuf2; + let obj; + + while (true) { + if (!("firstEntryNum" in tableState) || !("entryCount" in tableState)) { + if ((0, _primitives.isCmd)(obj = parser.getObj(), "trailer")) { + break; + } + + tableState.firstEntryNum = obj; + tableState.entryCount = parser.getObj(); + } + + let first = tableState.firstEntryNum; + const count = tableState.entryCount; + + if (!Number.isInteger(first) || !Number.isInteger(count)) { + throw new _util.FormatError("Invalid XRef table: wrong types in subsection header"); + } + + for (let i = tableState.entryNum; i < count; i++) { + tableState.streamPos = stream.pos; + tableState.entryNum = i; + tableState.parserBuf1 = parser.buf1; + tableState.parserBuf2 = parser.buf2; + const entry = {}; + entry.offset = parser.getObj(); + entry.gen = parser.getObj(); + const type = parser.getObj(); + + if (type instanceof _primitives.Cmd) { + switch (type.cmd) { + case "f": + entry.free = true; + break; + + case "n": + entry.uncompressed = true; + break; + } + } + + if (!Number.isInteger(entry.offset) || !Number.isInteger(entry.gen) || !(entry.free || entry.uncompressed)) { + throw new _util.FormatError(`Invalid entry in XRef subsection: ${first}, ${count}`); + } + + if (i === 0 && entry.free && first === 1) { + first = 0; + } + + if (!this.entries[i + first]) { + this.entries[i + first] = entry; + } + } + + tableState.entryNum = 0; + tableState.streamPos = stream.pos; + tableState.parserBuf1 = parser.buf1; + tableState.parserBuf2 = parser.buf2; + delete tableState.firstEntryNum; + delete tableState.entryCount; + } + + if (this.entries[0] && !this.entries[0].free) { + throw new _util.FormatError("Invalid XRef table: unexpected first object"); + } + + return obj; + } + + processXRefStream(stream) { + if (!("streamState" in this)) { + const streamParameters = stream.dict; + const byteWidths = streamParameters.get("W"); + let range = streamParameters.get("Index"); + + if (!range) { + range = [0, streamParameters.get("Size")]; + } + + this.streamState = { + entryRanges: range, + byteWidths, + entryNum: 0, + streamPos: stream.pos + }; + } + + this.readXRefStream(stream); + delete this.streamState; + return stream.dict; + } + + readXRefStream(stream) { + const streamState = this.streamState; + stream.pos = streamState.streamPos; + const [typeFieldWidth, offsetFieldWidth, generationFieldWidth] = streamState.byteWidths; + const entryRanges = streamState.entryRanges; + + while (entryRanges.length > 0) { + const [first, n] = entryRanges; + + if (!Number.isInteger(first) || !Number.isInteger(n)) { + throw new _util.FormatError(`Invalid XRef range fields: ${first}, ${n}`); + } + + if (!Number.isInteger(typeFieldWidth) || !Number.isInteger(offsetFieldWidth) || !Number.isInteger(generationFieldWidth)) { + throw new _util.FormatError(`Invalid XRef entry fields length: ${first}, ${n}`); + } + + for (let i = streamState.entryNum; i < n; ++i) { + streamState.entryNum = i; + streamState.streamPos = stream.pos; + let type = 0, + offset = 0, + generation = 0; + + for (let j = 0; j < typeFieldWidth; ++j) { + const typeByte = stream.getByte(); + + if (typeByte === -1) { + throw new _util.FormatError("Invalid XRef byteWidths 'type'."); + } + + type = type << 8 | typeByte; + } + + if (typeFieldWidth === 0) { + type = 1; + } + + for (let j = 0; j < offsetFieldWidth; ++j) { + const offsetByte = stream.getByte(); + + if (offsetByte === -1) { + throw new _util.FormatError("Invalid XRef byteWidths 'offset'."); + } + + offset = offset << 8 | offsetByte; + } + + for (let j = 0; j < generationFieldWidth; ++j) { + const generationByte = stream.getByte(); + + if (generationByte === -1) { + throw new _util.FormatError("Invalid XRef byteWidths 'generation'."); + } + + generation = generation << 8 | generationByte; + } + + const entry = {}; + entry.offset = offset; + entry.gen = generation; + + switch (type) { + case 0: + entry.free = true; + break; + + case 1: + entry.uncompressed = true; + break; + + case 2: + break; + + default: + throw new _util.FormatError(`Invalid XRef entry type: ${type}`); + } + + if (!this.entries[first + i]) { + this.entries[first + i] = entry; + } + } + + streamState.entryNum = 0; + streamState.streamPos = stream.pos; + entryRanges.splice(0, 2); + } + } + + indexObjects() { + const TAB = 0x9, + LF = 0xa, + CR = 0xd, + SPACE = 0x20; + const PERCENT = 0x25, + LT = 0x3c; + + function readToken(data, offset) { + let token = "", + ch = data[offset]; + + while (ch !== LF && ch !== CR && ch !== LT) { + if (++offset >= data.length) { + break; + } + + token += String.fromCharCode(ch); + ch = data[offset]; + } + + return token; + } + + function skipUntil(data, offset, what) { + const length = what.length, + dataLength = data.length; + let skipped = 0; + + while (offset < dataLength) { + let i = 0; + + while (i < length && data[offset + i] === what[i]) { + ++i; + } + + if (i >= length) { + break; + } + + offset++; + skipped++; + } + + return skipped; + } + + const objRegExp = /^(\d+)\s+(\d+)\s+obj\b/; + const endobjRegExp = /\bendobj[\b\s]$/; + const nestedObjRegExp = /\s+(\d+\s+\d+\s+obj[\b\s<])$/; + const CHECK_CONTENT_LENGTH = 25; + const trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]); + const startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114, 101, 102]); + const objBytes = new Uint8Array([111, 98, 106]); + const xrefBytes = new Uint8Array([47, 88, 82, 101, 102]); + this.entries.length = 0; + + this._cacheMap.clear(); + + const stream = this.stream; + stream.pos = 0; + const buffer = stream.getBytes(), + length = buffer.length; + let position = stream.start; + const trailers = [], + xrefStms = []; + + while (position < length) { + let ch = buffer[position]; + + if (ch === TAB || ch === LF || ch === CR || ch === SPACE) { + ++position; + continue; + } + + if (ch === PERCENT) { + do { + ++position; + + if (position >= length) { + break; + } + + ch = buffer[position]; + } while (ch !== LF && ch !== CR); + + continue; + } + + const token = readToken(buffer, position); + let m; + + if (token.startsWith("xref") && (token.length === 4 || /\s/.test(token[4]))) { + position += skipUntil(buffer, position, trailerBytes); + trailers.push(position); + position += skipUntil(buffer, position, startxrefBytes); + } else if (m = objRegExp.exec(token)) { + const num = m[1] | 0, + gen = m[2] | 0; + let contentLength, + startPos = position + token.length, + updateEntries = false; + + if (!this.entries[num]) { + updateEntries = true; + } else if (this.entries[num].gen === gen) { + try { + const parser = new _parser.Parser({ + lexer: new _parser.Lexer(stream.makeSubStream(startPos)) + }); + parser.getObj(); + updateEntries = true; + } catch (ex) { + if (ex instanceof _core_utils.ParserEOFException) { + (0, _util.warn)(`indexObjects -- checking object (${token}): "${ex}".`); + } else { + updateEntries = true; + } + } + } + + if (updateEntries) { + this.entries[num] = { + offset: position - stream.start, + gen, + uncompressed: true + }; + } + + while (startPos < buffer.length) { + const endPos = startPos + skipUntil(buffer, startPos, objBytes) + 4; + contentLength = endPos - position; + const checkPos = Math.max(endPos - CHECK_CONTENT_LENGTH, startPos); + const tokenStr = (0, _util.bytesToString)(buffer.subarray(checkPos, endPos)); + + if (endobjRegExp.test(tokenStr)) { + break; + } else { + const objToken = nestedObjRegExp.exec(tokenStr); + + if (objToken && objToken[1]) { + (0, _util.warn)('indexObjects: Found new "obj" inside of another "obj", ' + 'caused by missing "endobj" -- trying to recover.'); + contentLength -= objToken[1].length; + break; + } + } + + startPos = endPos; + } + + const content = buffer.subarray(position, position + contentLength); + const xrefTagOffset = skipUntil(content, 0, xrefBytes); + + if (xrefTagOffset < contentLength && content[xrefTagOffset + 5] < 64) { + xrefStms.push(position - stream.start); + this.xrefstms[position - stream.start] = 1; + } + + position += contentLength; + } else if (token.startsWith("trailer") && (token.length === 7 || /\s/.test(token[7]))) { + trailers.push(position); + position += skipUntil(buffer, position, startxrefBytes); + } else { + position += token.length + 1; + } + } + + for (let i = 0, ii = xrefStms.length; i < ii; ++i) { + this.startXRefQueue.push(xrefStms[i]); + this.readXRef(true); + } + + let trailerDict; + + for (let i = 0, ii = trailers.length; i < ii; ++i) { + stream.pos = trailers[i]; + const parser = new _parser.Parser({ + lexer: new _parser.Lexer(stream), + xref: this, + allowStreams: true, + recoveryMode: true + }); + const obj = parser.getObj(); + + if (!(0, _primitives.isCmd)(obj, "trailer")) { + continue; + } + + const dict = parser.getObj(); + + if (!(dict instanceof _primitives.Dict)) { + continue; + } + + try { + const rootDict = dict.get("Root"); + + if (!(rootDict instanceof _primitives.Dict)) { + continue; + } + + const pagesDict = rootDict.get("Pages"); + + if (!(pagesDict instanceof _primitives.Dict)) { + continue; + } + + const pagesCount = pagesDict.get("Count"); + + if (!Number.isInteger(pagesCount)) { + continue; + } + } catch (ex) { + continue; + } + + if (dict.has("ID")) { + return dict; + } + + trailerDict = dict; + } + + if (trailerDict) { + return trailerDict; + } + + if (this.topDict) { + return this.topDict; + } + + throw new _util.InvalidPDFException("Invalid PDF structure."); + } + + readXRef(recoveryMode = false) { + const stream = this.stream; + const startXRefParsedCache = new Set(); + + try { + while (this.startXRefQueue.length) { + const startXRef = this.startXRefQueue[0]; + + if (startXRefParsedCache.has(startXRef)) { + (0, _util.warn)("readXRef - skipping XRef table since it was already parsed."); + this.startXRefQueue.shift(); + continue; + } + + startXRefParsedCache.add(startXRef); + stream.pos = startXRef + stream.start; + const parser = new _parser.Parser({ + lexer: new _parser.Lexer(stream), + xref: this, + allowStreams: true + }); + let obj = parser.getObj(); + let dict; + + if ((0, _primitives.isCmd)(obj, "xref")) { + dict = this.processXRefTable(parser); + + if (!this.topDict) { + this.topDict = dict; + } + + obj = dict.get("XRefStm"); + + if (Number.isInteger(obj)) { + const pos = obj; + + if (!(pos in this.xrefstms)) { + this.xrefstms[pos] = 1; + this.startXRefQueue.push(pos); + } + } + } else if (Number.isInteger(obj)) { + if (!Number.isInteger(parser.getObj()) || !(0, _primitives.isCmd)(parser.getObj(), "obj") || !((obj = parser.getObj()) instanceof _base_stream.BaseStream)) { + throw new _util.FormatError("Invalid XRef stream"); + } + + dict = this.processXRefStream(obj); + + if (!this.topDict) { + this.topDict = dict; + } + + if (!dict) { + throw new _util.FormatError("Failed to read XRef stream"); + } + } else { + throw new _util.FormatError("Invalid XRef stream header"); + } + + obj = dict.get("Prev"); + + if (Number.isInteger(obj)) { + this.startXRefQueue.push(obj); + } else if (obj instanceof _primitives.Ref) { + this.startXRefQueue.push(obj.num); + } + + this.startXRefQueue.shift(); + } + + return this.topDict; + } catch (e) { + if (e instanceof _core_utils.MissingDataException) { + throw e; + } + + (0, _util.info)("(while reading XRef): " + e); + this.startXRefQueue.shift(); + } + + if (recoveryMode) { + return undefined; + } + + throw new _core_utils.XRefParseException(); + } + + getEntry(i) { + const xrefEntry = this.entries[i]; + + if (xrefEntry && !xrefEntry.free && xrefEntry.offset) { + return xrefEntry; + } + + return null; + } + + fetchIfRef(obj, suppressEncryption = false) { + if (obj instanceof _primitives.Ref) { + return this.fetch(obj, suppressEncryption); + } + + return obj; + } + + fetch(ref, suppressEncryption = false) { + if (!(ref instanceof _primitives.Ref)) { + throw new Error("ref object is not a reference"); + } + + const num = ref.num; + + const cacheEntry = this._cacheMap.get(num); + + if (cacheEntry !== undefined) { + if (cacheEntry instanceof _primitives.Dict && !cacheEntry.objId) { + cacheEntry.objId = ref.toString(); + } + + return cacheEntry; + } + + let xrefEntry = this.getEntry(num); + + if (xrefEntry === null) { + this._cacheMap.set(num, xrefEntry); + + return xrefEntry; + } + + if (this._pendingRefs.has(ref)) { + this._pendingRefs.remove(ref); + + (0, _util.warn)(`Ignoring circular reference: ${ref}.`); + return _primitives.CIRCULAR_REF; + } + + this._pendingRefs.put(ref); + + try { + if (xrefEntry.uncompressed) { + xrefEntry = this.fetchUncompressed(ref, xrefEntry, suppressEncryption); + } else { + xrefEntry = this.fetchCompressed(ref, xrefEntry, suppressEncryption); + } + + this._pendingRefs.remove(ref); + } catch (ex) { + this._pendingRefs.remove(ref); + + throw ex; + } + + if (xrefEntry instanceof _primitives.Dict) { + xrefEntry.objId = ref.toString(); + } else if (xrefEntry instanceof _base_stream.BaseStream) { + xrefEntry.dict.objId = ref.toString(); + } + + return xrefEntry; + } + + fetchUncompressed(ref, xrefEntry, suppressEncryption = false) { + const gen = ref.gen; + let num = ref.num; + + if (xrefEntry.gen !== gen) { + throw new _core_utils.XRefEntryException(`Inconsistent generation in XRef: ${ref}`); + } + + const stream = this.stream.makeSubStream(xrefEntry.offset + this.stream.start); + const parser = new _parser.Parser({ + lexer: new _parser.Lexer(stream), + xref: this, + allowStreams: true + }); + const obj1 = parser.getObj(); + const obj2 = parser.getObj(); + const obj3 = parser.getObj(); + + if (obj1 !== num || obj2 !== gen || !(obj3 instanceof _primitives.Cmd)) { + throw new _core_utils.XRefEntryException(`Bad (uncompressed) XRef entry: ${ref}`); + } + + if (obj3.cmd !== "obj") { + if (obj3.cmd.startsWith("obj")) { + num = parseInt(obj3.cmd.substring(3), 10); + + if (!Number.isNaN(num)) { + return num; + } + } + + throw new _core_utils.XRefEntryException(`Bad (uncompressed) XRef entry: ${ref}`); + } + + if (this.encrypt && !suppressEncryption) { + xrefEntry = parser.getObj(this.encrypt.createCipherTransform(num, gen)); + } else { + xrefEntry = parser.getObj(); + } + + if (!(xrefEntry instanceof _base_stream.BaseStream)) { + this._cacheMap.set(num, xrefEntry); + } + + return xrefEntry; + } + + fetchCompressed(ref, xrefEntry, suppressEncryption = false) { + const tableOffset = xrefEntry.offset; + const stream = this.fetch(_primitives.Ref.get(tableOffset, 0)); + + if (!(stream instanceof _base_stream.BaseStream)) { + throw new _util.FormatError("bad ObjStm stream"); + } + + const first = stream.dict.get("First"); + const n = stream.dict.get("N"); + + if (!Number.isInteger(first) || !Number.isInteger(n)) { + throw new _util.FormatError("invalid first and n parameters for ObjStm stream"); + } + + let parser = new _parser.Parser({ + lexer: new _parser.Lexer(stream), + xref: this, + allowStreams: true + }); + const nums = new Array(n); + const offsets = new Array(n); + + for (let i = 0; i < n; ++i) { + const num = parser.getObj(); + + if (!Number.isInteger(num)) { + throw new _util.FormatError(`invalid object number in the ObjStm stream: ${num}`); + } + + const offset = parser.getObj(); + + if (!Number.isInteger(offset)) { + throw new _util.FormatError(`invalid object offset in the ObjStm stream: ${offset}`); + } + + nums[i] = num; + offsets[i] = offset; + } + + const start = (stream.start || 0) + first; + const entries = new Array(n); + + for (let i = 0; i < n; ++i) { + const length = i < n - 1 ? offsets[i + 1] - offsets[i] : undefined; + + if (length < 0) { + throw new _util.FormatError("Invalid offset in the ObjStm stream."); + } + + parser = new _parser.Parser({ + lexer: new _parser.Lexer(stream.makeSubStream(start + offsets[i], length, stream.dict)), + xref: this, + allowStreams: true + }); + const obj = parser.getObj(); + entries[i] = obj; + + if (obj instanceof _base_stream.BaseStream) { + continue; + } + + const num = nums[i], + entry = this.entries[num]; + + if (entry && entry.offset === tableOffset && entry.gen === i) { + this._cacheMap.set(num, obj); + } + } + + xrefEntry = entries[xrefEntry.gen]; + + if (xrefEntry === undefined) { + throw new _core_utils.XRefEntryException(`Bad (compressed) XRef entry: ${ref}`); + } + + return xrefEntry; + } + + async fetchIfRefAsync(obj, suppressEncryption) { + if (obj instanceof _primitives.Ref) { + return this.fetchAsync(obj, suppressEncryption); + } + + return obj; + } + + async fetchAsync(ref, suppressEncryption) { + try { + return this.fetch(ref, suppressEncryption); + } catch (ex) { + if (!(ex instanceof _core_utils.MissingDataException)) { + throw ex; + } + + await this.pdfManager.requestRange(ex.begin, ex.end); + return this.fetchAsync(ref, suppressEncryption); + } + } + + getCatalogObj() { + return this.root; + } + +} + +exports.XRef = XRef; + +/***/ }), +/* 102 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.MessageHandler = void 0; + +var _util = __w_pdfjs_require__(2); + +const CallbackKind = { + UNKNOWN: 0, + DATA: 1, + ERROR: 2 +}; +const StreamKind = { + UNKNOWN: 0, + CANCEL: 1, + CANCEL_COMPLETE: 2, + CLOSE: 3, + ENQUEUE: 4, + ERROR: 5, + PULL: 6, + PULL_COMPLETE: 7, + START_COMPLETE: 8 +}; + +function wrapReason(reason) { + if (!(reason instanceof Error || typeof reason === "object" && reason !== null)) { + (0, _util.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'); + } + + switch (reason.name) { + case "AbortException": + return new _util.AbortException(reason.message); + + case "MissingPDFException": + return new _util.MissingPDFException(reason.message); + + case "PasswordException": + return new _util.PasswordException(reason.message, reason.code); + + case "UnexpectedResponseException": + return new _util.UnexpectedResponseException(reason.message, reason.status); + + case "UnknownErrorException": + return new _util.UnknownErrorException(reason.message, reason.details); + + default: + return new _util.UnknownErrorException(reason.message, reason.toString()); + } +} + +class MessageHandler { + constructor(sourceName, targetName, comObj) { + this.sourceName = sourceName; + this.targetName = targetName; + this.comObj = comObj; + this.callbackId = 1; + this.streamId = 1; + this.streamSinks = Object.create(null); + this.streamControllers = Object.create(null); + this.callbackCapabilities = Object.create(null); + this.actionHandler = Object.create(null); + + this._onComObjOnMessage = event => { + const data = event.data; + + if (data.targetName !== this.sourceName) { + return; + } + + if (data.stream) { + this._processStreamMessage(data); + + return; + } + + if (data.callback) { + const callbackId = data.callbackId; + const capability = this.callbackCapabilities[callbackId]; + + if (!capability) { + throw new Error(`Cannot resolve callback ${callbackId}`); + } + + delete this.callbackCapabilities[callbackId]; + + if (data.callback === CallbackKind.DATA) { + capability.resolve(data.data); + } else if (data.callback === CallbackKind.ERROR) { + capability.reject(wrapReason(data.reason)); + } else { + throw new Error("Unexpected callback case"); + } + + return; + } + + const action = this.actionHandler[data.action]; + + if (!action) { + throw new Error(`Unknown action from worker: ${data.action}`); + } + + if (data.callbackId) { + const cbSourceName = this.sourceName; + const cbTargetName = data.sourceName; + new Promise(function (resolve) { + resolve(action(data.data)); + }).then(function (result) { + comObj.postMessage({ + sourceName: cbSourceName, + targetName: cbTargetName, + callback: CallbackKind.DATA, + callbackId: data.callbackId, + data: result + }); + }, function (reason) { + comObj.postMessage({ + sourceName: cbSourceName, + targetName: cbTargetName, + callback: CallbackKind.ERROR, + callbackId: data.callbackId, + reason: wrapReason(reason) + }); + }); + return; + } + + if (data.streamId) { + this._createStreamSink(data); + + return; + } + + action(data.data); + }; + + comObj.addEventListener("message", this._onComObjOnMessage); + } + + on(actionName, handler) { + const ah = this.actionHandler; + + if (ah[actionName]) { + throw new Error(`There is already an actionName called "${actionName}"`); + } + + ah[actionName] = handler; + } + + send(actionName, data, transfers) { + this.comObj.postMessage({ + sourceName: this.sourceName, + targetName: this.targetName, + action: actionName, + data + }, transfers); + } + + sendWithPromise(actionName, data, transfers) { + const callbackId = this.callbackId++; + const capability = (0, _util.createPromiseCapability)(); + this.callbackCapabilities[callbackId] = capability; + + try { + this.comObj.postMessage({ + sourceName: this.sourceName, + targetName: this.targetName, + action: actionName, + callbackId, + data + }, transfers); + } catch (ex) { + capability.reject(ex); + } + + return capability.promise; + } + + sendWithStream(actionName, data, queueingStrategy, transfers) { + const streamId = this.streamId++, + sourceName = this.sourceName, + targetName = this.targetName, + comObj = this.comObj; + return new ReadableStream({ + start: controller => { + const startCapability = (0, _util.createPromiseCapability)(); + this.streamControllers[streamId] = { + controller, + startCall: startCapability, + pullCall: null, + cancelCall: null, + isClosed: false + }; + comObj.postMessage({ + sourceName, + targetName, + action: actionName, + streamId, + data, + desiredSize: controller.desiredSize + }, transfers); + return startCapability.promise; + }, + pull: controller => { + const pullCapability = (0, _util.createPromiseCapability)(); + this.streamControllers[streamId].pullCall = pullCapability; + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.PULL, + streamId, + desiredSize: controller.desiredSize + }); + return pullCapability.promise; + }, + cancel: reason => { + (0, _util.assert)(reason instanceof Error, "cancel must have a valid reason"); + const cancelCapability = (0, _util.createPromiseCapability)(); + this.streamControllers[streamId].cancelCall = cancelCapability; + this.streamControllers[streamId].isClosed = true; + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.CANCEL, + streamId, + reason: wrapReason(reason) + }); + return cancelCapability.promise; + } + }, queueingStrategy); + } + + _createStreamSink(data) { + const streamId = data.streamId, + sourceName = this.sourceName, + targetName = data.sourceName, + comObj = this.comObj; + const self = this, + action = this.actionHandler[data.action]; + const streamSink = { + enqueue(chunk, size = 1, transfers) { + if (this.isCancelled) { + return; + } + + const lastDesiredSize = this.desiredSize; + this.desiredSize -= size; + + if (lastDesiredSize > 0 && this.desiredSize <= 0) { + this.sinkCapability = (0, _util.createPromiseCapability)(); + this.ready = this.sinkCapability.promise; + } + + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.ENQUEUE, + streamId, + chunk + }, transfers); + }, + + close() { + if (this.isCancelled) { + return; + } + + this.isCancelled = true; + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.CLOSE, + streamId + }); + delete self.streamSinks[streamId]; + }, + + error(reason) { + (0, _util.assert)(reason instanceof Error, "error must have a valid reason"); + + if (this.isCancelled) { + return; + } + + this.isCancelled = true; + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.ERROR, + streamId, + reason: wrapReason(reason) + }); + }, + + sinkCapability: (0, _util.createPromiseCapability)(), + onPull: null, + onCancel: null, + isCancelled: false, + desiredSize: data.desiredSize, + ready: null + }; + streamSink.sinkCapability.resolve(); + streamSink.ready = streamSink.sinkCapability.promise; + this.streamSinks[streamId] = streamSink; + new Promise(function (resolve) { + resolve(action(data.data, streamSink)); + }).then(function () { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.START_COMPLETE, + streamId, + success: true + }); + }, function (reason) { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.START_COMPLETE, + streamId, + reason: wrapReason(reason) + }); + }); + } + + _processStreamMessage(data) { + const streamId = data.streamId, + sourceName = this.sourceName, + targetName = data.sourceName, + comObj = this.comObj; + const streamController = this.streamControllers[streamId], + streamSink = this.streamSinks[streamId]; + + switch (data.stream) { + case StreamKind.START_COMPLETE: + if (data.success) { + streamController.startCall.resolve(); + } else { + streamController.startCall.reject(wrapReason(data.reason)); + } + + break; + + case StreamKind.PULL_COMPLETE: + if (data.success) { + streamController.pullCall.resolve(); + } else { + streamController.pullCall.reject(wrapReason(data.reason)); + } + + break; + + case StreamKind.PULL: + if (!streamSink) { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.PULL_COMPLETE, + streamId, + success: true + }); + break; + } + + if (streamSink.desiredSize <= 0 && data.desiredSize > 0) { + streamSink.sinkCapability.resolve(); + } + + streamSink.desiredSize = data.desiredSize; + new Promise(function (resolve) { + resolve(streamSink.onPull && streamSink.onPull()); + }).then(function () { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.PULL_COMPLETE, + streamId, + success: true + }); + }, function (reason) { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.PULL_COMPLETE, + streamId, + reason: wrapReason(reason) + }); + }); + break; + + case StreamKind.ENQUEUE: + (0, _util.assert)(streamController, "enqueue should have stream controller"); + + if (streamController.isClosed) { + break; + } + + streamController.controller.enqueue(data.chunk); + break; + + case StreamKind.CLOSE: + (0, _util.assert)(streamController, "close should have stream controller"); + + if (streamController.isClosed) { + break; + } + + streamController.isClosed = true; + streamController.controller.close(); + + this._deleteStreamController(streamController, streamId); + + break; + + case StreamKind.ERROR: + (0, _util.assert)(streamController, "error should have stream controller"); + streamController.controller.error(wrapReason(data.reason)); + + this._deleteStreamController(streamController, streamId); + + break; + + case StreamKind.CANCEL_COMPLETE: + if (data.success) { + streamController.cancelCall.resolve(); + } else { + streamController.cancelCall.reject(wrapReason(data.reason)); + } + + this._deleteStreamController(streamController, streamId); + + break; + + case StreamKind.CANCEL: + if (!streamSink) { + break; + } + + new Promise(function (resolve) { + resolve(streamSink.onCancel && streamSink.onCancel(wrapReason(data.reason))); + }).then(function () { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.CANCEL_COMPLETE, + streamId, + success: true + }); + }, function (reason) { + comObj.postMessage({ + sourceName, + targetName, + stream: StreamKind.CANCEL_COMPLETE, + streamId, + reason: wrapReason(reason) + }); + }); + streamSink.sinkCapability.reject(wrapReason(data.reason)); + streamSink.isCancelled = true; + delete this.streamSinks[streamId]; + break; + + default: + throw new Error("Unexpected stream case"); + } + } + + async _deleteStreamController(streamController, streamId) { + await Promise.allSettled([streamController.startCall && streamController.startCall.promise, streamController.pullCall && streamController.pullCall.promise, streamController.cancelCall && streamController.cancelCall.promise]); + delete this.streamControllers[streamId]; + } + + destroy() { + this.comObj.removeEventListener("message", this._onComObjOnMessage); + } + +} + +exports.MessageHandler = MessageHandler; + +/***/ }), +/* 103 */ +/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFWorkerStream = void 0; + +var _util = __w_pdfjs_require__(2); + +class PDFWorkerStream { + constructor(msgHandler) { + this._msgHandler = msgHandler; + this._contentLength = null; + this._fullRequestReader = null; + this._rangeRequestReaders = []; + } + + getFullReader() { + (0, _util.assert)(!this._fullRequestReader, "PDFWorkerStream.getFullReader can only be called once."); + this._fullRequestReader = new PDFWorkerStreamReader(this._msgHandler); + return this._fullRequestReader; + } + + getRangeReader(begin, end) { + const reader = new PDFWorkerStreamRangeReader(begin, end, this._msgHandler); + + this._rangeRequestReaders.push(reader); + + return reader; + } + + cancelAllRequests(reason) { + if (this._fullRequestReader) { + this._fullRequestReader.cancel(reason); + } + + for (const reader of this._rangeRequestReaders.slice(0)) { + reader.cancel(reason); + } + } + +} + +exports.PDFWorkerStream = PDFWorkerStream; + +class PDFWorkerStreamReader { + constructor(msgHandler) { + this._msgHandler = msgHandler; + this.onProgress = null; + this._contentLength = null; + this._isRangeSupported = false; + this._isStreamingSupported = false; + + const readableStream = this._msgHandler.sendWithStream("GetReader"); + + this._reader = readableStream.getReader(); + this._headersReady = this._msgHandler.sendWithPromise("ReaderHeadersReady").then(data => { + this._isStreamingSupported = data.isStreamingSupported; + this._isRangeSupported = data.isRangeSupported; + this._contentLength = data.contentLength; + }); + } + + get headersReady() { + return this._headersReady; + } + + get contentLength() { + return this._contentLength; + } + + get isStreamingSupported() { + return this._isStreamingSupported; + } + + get isRangeSupported() { + return this._isRangeSupported; + } + + async read() { + const { + value, + done + } = await this._reader.read(); + + if (done) { + return { + value: undefined, + done: true + }; + } + + return { + value: value.buffer, + done: false + }; + } + + cancel(reason) { + this._reader.cancel(reason); + } + +} + +class PDFWorkerStreamRangeReader { + constructor(begin, end, msgHandler) { + this._msgHandler = msgHandler; + this.onProgress = null; + + const readableStream = this._msgHandler.sendWithStream("GetRangeReader", { + begin, + end + }); + + this._reader = readableStream.getReader(); + } + + get isStreamingSupported() { + return false; + } + + async read() { + const { + value, + done + } = await this._reader.read(); + + if (done) { + return { + value: undefined, + done: true + }; + } + + return { + value: value.buffer, + done: false + }; + } + + cancel(reason) { + this._reader.cancel(reason); + } + +} + +/***/ }) +/******/ ]); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __w_pdfjs_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __w_pdfjs_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __w_pdfjs_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__w_pdfjs_require__.o(definition, key) && !__w_pdfjs_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __w_pdfjs_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __w_pdfjs_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +(() => { +var exports = __webpack_exports__; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "WorkerMessageHandler", ({ + enumerable: true, + get: function () { + return _worker.WorkerMessageHandler; + } +})); + +var _worker = __w_pdfjs_require__(1); + +const pdfjsVersion = '2.16.105'; +const pdfjsBuild = '172ccdbe5'; +})(); + +/******/ return __webpack_exports__; +/******/ })() +; +}); +//# sourceMappingURL=pdf.worker.js.map \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-EUC-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-EUC-H.bcmap new file mode 100644 index 00000000..2655fc70 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-EUC-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-EUC-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-EUC-V.bcmap new file mode 100644 index 00000000..f1ed8538 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-EUC-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-H.bcmap new file mode 100644 index 00000000..39e89d33 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-RKSJ-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-RKSJ-H.bcmap new file mode 100644 index 00000000..e4167cb5 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-RKSJ-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-RKSJ-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-RKSJ-V.bcmap new file mode 100644 index 00000000..50b1646e Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-RKSJ-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-V.bcmap new file mode 100644 index 00000000..d7af99b5 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78ms-RKSJ-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78ms-RKSJ-H.bcmap new file mode 100644 index 00000000..37077d01 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78ms-RKSJ-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78ms-RKSJ-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78ms-RKSJ-V.bcmap new file mode 100644 index 00000000..acf23231 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/78ms-RKSJ-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/83pv-RKSJ-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/83pv-RKSJ-H.bcmap new file mode 100644 index 00000000..2359bc52 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/83pv-RKSJ-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90ms-RKSJ-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90ms-RKSJ-H.bcmap new file mode 100644 index 00000000..af829382 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90ms-RKSJ-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90ms-RKSJ-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90ms-RKSJ-V.bcmap new file mode 100644 index 00000000..780549de Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90ms-RKSJ-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90msp-RKSJ-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90msp-RKSJ-H.bcmap new file mode 100644 index 00000000..bfd3119c Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90msp-RKSJ-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90msp-RKSJ-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90msp-RKSJ-V.bcmap new file mode 100644 index 00000000..25ef14ab Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90msp-RKSJ-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90pv-RKSJ-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90pv-RKSJ-H.bcmap new file mode 100644 index 00000000..02f713bb Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90pv-RKSJ-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90pv-RKSJ-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90pv-RKSJ-V.bcmap new file mode 100644 index 00000000..d08e0cc5 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/90pv-RKSJ-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Add-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Add-H.bcmap new file mode 100644 index 00000000..59442aca Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Add-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Add-RKSJ-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Add-RKSJ-H.bcmap new file mode 100644 index 00000000..a3065e44 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Add-RKSJ-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Add-RKSJ-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Add-RKSJ-V.bcmap new file mode 100644 index 00000000..040014cf Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Add-RKSJ-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Add-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Add-V.bcmap new file mode 100644 index 00000000..2f816d32 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Add-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-0.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-0.bcmap new file mode 100644 index 00000000..88ec04af Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-0.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-1.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-1.bcmap new file mode 100644 index 00000000..03a50147 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-1.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-2.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-2.bcmap new file mode 100644 index 00000000..2aa95141 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-2.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-3.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-3.bcmap new file mode 100644 index 00000000..86d8b8c7 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-3.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-4.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-4.bcmap new file mode 100644 index 00000000..f50fc6c1 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-4.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-5.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-5.bcmap new file mode 100644 index 00000000..6caf4a83 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-5.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-6.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-6.bcmap new file mode 100644 index 00000000..b77fb070 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-6.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-UCS2.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-UCS2.bcmap new file mode 100644 index 00000000..69d79a2c Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-CNS1-UCS2.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-0.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-0.bcmap new file mode 100644 index 00000000..36101083 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-0.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-1.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-1.bcmap new file mode 100644 index 00000000..707bb106 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-1.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-2.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-2.bcmap new file mode 100644 index 00000000..f7648cc3 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-2.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-3.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-3.bcmap new file mode 100644 index 00000000..85214589 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-3.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-4.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-4.bcmap new file mode 100644 index 00000000..e40c63ab Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-4.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-5.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-5.bcmap new file mode 100644 index 00000000..d7623b50 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-5.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-UCS2.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-UCS2.bcmap new file mode 100644 index 00000000..75865259 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-GB1-UCS2.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-0.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-0.bcmap new file mode 100644 index 00000000..f0e94ec1 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-0.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-1.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-1.bcmap new file mode 100644 index 00000000..dad42c5a Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-1.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-2.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-2.bcmap new file mode 100644 index 00000000..090819a0 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-2.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-3.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-3.bcmap new file mode 100644 index 00000000..087dfc15 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-3.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-4.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-4.bcmap new file mode 100644 index 00000000..46aa9bff Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-4.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-5.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-5.bcmap new file mode 100644 index 00000000..5b4b65cc Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-5.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-6.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-6.bcmap new file mode 100644 index 00000000..e77d699a Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-6.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-UCS2.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-UCS2.bcmap new file mode 100644 index 00000000..128a1410 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Japan1-UCS2.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Korea1-0.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Korea1-0.bcmap new file mode 100644 index 00000000..cef1a998 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Korea1-0.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Korea1-1.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Korea1-1.bcmap new file mode 100644 index 00000000..11ffa36d Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Korea1-1.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Korea1-2.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Korea1-2.bcmap new file mode 100644 index 00000000..3172308c Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Korea1-2.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Korea1-UCS2.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Korea1-UCS2.bcmap new file mode 100644 index 00000000..f3371c0c Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Adobe-Korea1-UCS2.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/B5-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/B5-H.bcmap new file mode 100644 index 00000000..beb4d228 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/B5-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/B5-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/B5-V.bcmap new file mode 100644 index 00000000..2d4f87d5 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/B5-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/B5pc-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/B5pc-H.bcmap new file mode 100644 index 00000000..ce001316 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/B5pc-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/B5pc-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/B5pc-V.bcmap new file mode 100644 index 00000000..73b99ff2 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/B5pc-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS-EUC-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS-EUC-H.bcmap new file mode 100644 index 00000000..61d1d0cb Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS-EUC-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS-EUC-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS-EUC-V.bcmap new file mode 100644 index 00000000..1a393a51 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS-EUC-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS1-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS1-H.bcmap new file mode 100644 index 00000000..f738e218 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS1-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS1-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS1-V.bcmap new file mode 100644 index 00000000..9c3169f0 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS1-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS2-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS2-H.bcmap new file mode 100644 index 00000000..c89b3527 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS2-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS2-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS2-V.bcmap new file mode 100644 index 00000000..7588cec8 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/CNS2-V.bcmap @@ -0,0 +1,3 @@ +RCopyright 1990-2009 Adobe Systems Incorporated. +All rights reserved. +See ./LICENSECNS2-H \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETHK-B5-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETHK-B5-H.bcmap new file mode 100644 index 00000000..cb29415d Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETHK-B5-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETHK-B5-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETHK-B5-V.bcmap new file mode 100644 index 00000000..f09aec63 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETHK-B5-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETen-B5-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETen-B5-H.bcmap new file mode 100644 index 00000000..c2d77462 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETen-B5-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETen-B5-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETen-B5-V.bcmap new file mode 100644 index 00000000..89bff159 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETen-B5-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETenms-B5-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETenms-B5-H.bcmap new file mode 100644 index 00000000..a7d69db5 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETenms-B5-H.bcmap @@ -0,0 +1,3 @@ +RCopyright 1990-2009 Adobe Systems Incorporated. +All rights reserved. +See ./LICENSE ETen-B5-H` ^ \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETenms-B5-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETenms-B5-V.bcmap new file mode 100644 index 00000000..adc5d618 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/ETenms-B5-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/EUC-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/EUC-H.bcmap new file mode 100644 index 00000000..e92ea5b3 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/EUC-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/EUC-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/EUC-V.bcmap new file mode 100644 index 00000000..7a7c1832 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/EUC-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Ext-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Ext-H.bcmap new file mode 100644 index 00000000..3b5cde44 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Ext-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Ext-RKSJ-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Ext-RKSJ-H.bcmap new file mode 100644 index 00000000..ea4d2d97 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Ext-RKSJ-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Ext-RKSJ-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Ext-RKSJ-V.bcmap new file mode 100644 index 00000000..3457c277 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Ext-RKSJ-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Ext-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Ext-V.bcmap new file mode 100644 index 00000000..4999ca40 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Ext-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GB-EUC-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GB-EUC-H.bcmap new file mode 100644 index 00000000..e39908b9 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GB-EUC-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GB-EUC-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GB-EUC-V.bcmap new file mode 100644 index 00000000..d5be5446 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GB-EUC-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GB-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GB-H.bcmap new file mode 100644 index 00000000..39189c54 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GB-H.bcmap @@ -0,0 +1,4 @@ +RCopyright 1990-2009 Adobe Systems Incorporated. +All rights reserved. +See ./LICENSE!!]aX!!]`21> p z$]"Rd-U7* 4%+ Z {/%<9Kb1]." `],"] +"]h"]F"]$"]"]`"]>"]"]z"]X"]6"]"]r"]P"]."] "]j"]H"]&"]"]b"]@"]"]|"]Z"]8"]"]t"]R"]0"]"]l"]J"]("]"]d"]B"] "X~']W"]5"]"]q"]O"]-"] "]i"]G"]%"]"]a"]?"]"]{"]Y"]7"]"]s"]Q"]/"] "]k"]I"]'"]"]c"]A"]"]}"]["]9 \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GB-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GB-V.bcmap new file mode 100644 index 00000000..31083451 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GB-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBK-EUC-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBK-EUC-H.bcmap new file mode 100644 index 00000000..05fff7e8 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBK-EUC-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBK-EUC-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBK-EUC-V.bcmap new file mode 100644 index 00000000..0cdf6bed Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBK-EUC-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBK2K-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBK2K-H.bcmap new file mode 100644 index 00000000..46f6ba59 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBK2K-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBK2K-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBK2K-V.bcmap new file mode 100644 index 00000000..d9a94798 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBK2K-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBKp-EUC-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBKp-EUC-H.bcmap new file mode 100644 index 00000000..5cb0af68 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBKp-EUC-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBKp-EUC-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBKp-EUC-V.bcmap new file mode 100644 index 00000000..bca93b8e Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBKp-EUC-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBT-EUC-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBT-EUC-H.bcmap new file mode 100644 index 00000000..4b4e2d32 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBT-EUC-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBT-EUC-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBT-EUC-V.bcmap new file mode 100644 index 00000000..38f70669 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBT-EUC-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBT-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBT-H.bcmap new file mode 100644 index 00000000..8437ac33 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBT-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBT-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBT-V.bcmap new file mode 100644 index 00000000..697ab4a8 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBT-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBTpc-EUC-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBTpc-EUC-H.bcmap new file mode 100644 index 00000000..f6e50e89 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBTpc-EUC-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBTpc-EUC-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBTpc-EUC-V.bcmap new file mode 100644 index 00000000..6c0d71a2 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBTpc-EUC-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBpc-EUC-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBpc-EUC-H.bcmap new file mode 100644 index 00000000..c9edf67c Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBpc-EUC-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBpc-EUC-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBpc-EUC-V.bcmap new file mode 100644 index 00000000..31450c97 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/GBpc-EUC-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/H.bcmap new file mode 100644 index 00000000..7b24ea46 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKdla-B5-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKdla-B5-H.bcmap new file mode 100644 index 00000000..7d30c050 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKdla-B5-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKdla-B5-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKdla-B5-V.bcmap new file mode 100644 index 00000000..78946940 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKdla-B5-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKdlb-B5-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKdlb-B5-H.bcmap new file mode 100644 index 00000000..d829a231 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKdlb-B5-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKdlb-B5-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKdlb-B5-V.bcmap new file mode 100644 index 00000000..2b572b50 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKdlb-B5-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKgccs-B5-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKgccs-B5-H.bcmap new file mode 100644 index 00000000..971a4f23 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKgccs-B5-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKgccs-B5-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKgccs-B5-V.bcmap new file mode 100644 index 00000000..d353ca25 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKgccs-B5-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKm314-B5-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKm314-B5-H.bcmap new file mode 100644 index 00000000..576dc011 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKm314-B5-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKm314-B5-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKm314-B5-V.bcmap new file mode 100644 index 00000000..0e96d0e2 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKm314-B5-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKm471-B5-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKm471-B5-H.bcmap new file mode 100644 index 00000000..11d170c7 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKm471-B5-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKm471-B5-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKm471-B5-V.bcmap new file mode 100644 index 00000000..54959bf9 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKm471-B5-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKscs-B5-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKscs-B5-H.bcmap new file mode 100644 index 00000000..6ef7857a Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKscs-B5-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKscs-B5-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKscs-B5-V.bcmap new file mode 100644 index 00000000..1fb2fa2a Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/HKscs-B5-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Hankaku.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Hankaku.bcmap new file mode 100644 index 00000000..4b8ec7fc Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Hankaku.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Hiragana.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Hiragana.bcmap new file mode 100644 index 00000000..17e983e7 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Hiragana.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-EUC-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-EUC-H.bcmap new file mode 100644 index 00000000..a45c65f0 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-EUC-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-EUC-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-EUC-V.bcmap new file mode 100644 index 00000000..0e7b21f0 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-EUC-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-H.bcmap new file mode 100644 index 00000000..b9b22b67 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-Johab-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-Johab-H.bcmap new file mode 100644 index 00000000..2531ffcf Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-Johab-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-Johab-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-Johab-V.bcmap new file mode 100644 index 00000000..367ceb22 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-Johab-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-V.bcmap new file mode 100644 index 00000000..6ae2f0b6 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSC-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCms-UHC-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCms-UHC-H.bcmap new file mode 100644 index 00000000..a8d4240e Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCms-UHC-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCms-UHC-HW-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCms-UHC-HW-H.bcmap new file mode 100644 index 00000000..8b4ae18f Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCms-UHC-HW-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCms-UHC-HW-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCms-UHC-HW-V.bcmap new file mode 100644 index 00000000..b655dbcf Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCms-UHC-HW-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCms-UHC-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCms-UHC-V.bcmap new file mode 100644 index 00000000..21f97f65 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCms-UHC-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCpc-EUC-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCpc-EUC-H.bcmap new file mode 100644 index 00000000..e06f361e Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCpc-EUC-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCpc-EUC-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCpc-EUC-V.bcmap new file mode 100644 index 00000000..f3c9113f Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/KSCpc-EUC-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Katakana.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Katakana.bcmap new file mode 100644 index 00000000..524303c4 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Katakana.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/LICENSE b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/LICENSE new file mode 100644 index 00000000..b1ad168a --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/LICENSE @@ -0,0 +1,36 @@ +%%Copyright: ----------------------------------------------------------- +%%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. +%%Copyright: All rights reserved. +%%Copyright: +%%Copyright: Redistribution and use in source and binary forms, with or +%%Copyright: without modification, are permitted provided that the +%%Copyright: following conditions are met: +%%Copyright: +%%Copyright: Redistributions of source code must retain the above +%%Copyright: copyright notice, this list of conditions and the following +%%Copyright: disclaimer. +%%Copyright: +%%Copyright: Redistributions in binary form must reproduce the above +%%Copyright: copyright notice, this list of conditions and the following +%%Copyright: disclaimer in the documentation and/or other materials +%%Copyright: provided with the distribution. +%%Copyright: +%%Copyright: Neither the name of Adobe Systems Incorporated nor the names +%%Copyright: of its contributors may be used to endorse or promote +%%Copyright: products derived from this software without specific prior +%%Copyright: written permission. +%%Copyright: +%%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND +%%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +%%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +%%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +%%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR +%%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +%%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +%%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +%%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +%%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +%%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +%%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +%%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +%%Copyright: ----------------------------------------------------------- diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/NWP-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/NWP-H.bcmap new file mode 100644 index 00000000..afc5e4b0 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/NWP-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/NWP-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/NWP-V.bcmap new file mode 100644 index 00000000..bb5785e3 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/NWP-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/RKSJ-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/RKSJ-H.bcmap new file mode 100644 index 00000000..fb8d298e Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/RKSJ-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/RKSJ-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/RKSJ-V.bcmap new file mode 100644 index 00000000..a2555a6c Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/RKSJ-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Roman.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Roman.bcmap new file mode 100644 index 00000000..f896dcf1 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/Roman.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UCS2-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UCS2-H.bcmap new file mode 100644 index 00000000..d5db27c5 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UCS2-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UCS2-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UCS2-V.bcmap new file mode 100644 index 00000000..1dc9b7a2 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UCS2-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF16-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF16-H.bcmap new file mode 100644 index 00000000..961afefb Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF16-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF16-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF16-V.bcmap new file mode 100644 index 00000000..df0cffe8 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF16-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF32-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF32-H.bcmap new file mode 100644 index 00000000..1ab18a14 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF32-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF32-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF32-V.bcmap new file mode 100644 index 00000000..ad14662e Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF32-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF8-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF8-H.bcmap new file mode 100644 index 00000000..83c6bd7c Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF8-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF8-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF8-V.bcmap new file mode 100644 index 00000000..22a27e4d Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniCNS-UTF8-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UCS2-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UCS2-H.bcmap new file mode 100644 index 00000000..5bd6228c Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UCS2-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UCS2-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UCS2-V.bcmap new file mode 100644 index 00000000..53c534b7 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UCS2-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF16-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF16-H.bcmap new file mode 100644 index 00000000..b95045b4 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF16-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF16-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF16-V.bcmap new file mode 100644 index 00000000..51f023e0 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF16-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF32-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF32-H.bcmap new file mode 100644 index 00000000..f0dbd14f Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF32-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF32-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF32-V.bcmap new file mode 100644 index 00000000..ce9c30a9 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF32-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF8-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF8-H.bcmap new file mode 100644 index 00000000..982ca462 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF8-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF8-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF8-V.bcmap new file mode 100644 index 00000000..f78020dd Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniGB-UTF8-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UCS2-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UCS2-H.bcmap new file mode 100644 index 00000000..7daf56af Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UCS2-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UCS2-HW-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UCS2-HW-H.bcmap new file mode 100644 index 00000000..ac9975c5 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UCS2-HW-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UCS2-HW-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UCS2-HW-V.bcmap new file mode 100644 index 00000000..3da0a1c6 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UCS2-HW-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UCS2-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UCS2-V.bcmap new file mode 100644 index 00000000..c50b9ddf Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UCS2-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF16-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF16-H.bcmap new file mode 100644 index 00000000..67613446 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF16-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF16-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF16-V.bcmap new file mode 100644 index 00000000..70bf90c0 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF16-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF32-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF32-H.bcmap new file mode 100644 index 00000000..7a83d53a Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF32-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF32-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF32-V.bcmap new file mode 100644 index 00000000..7a871353 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF32-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF8-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF8-H.bcmap new file mode 100644 index 00000000..9f0334ca Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF8-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF8-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF8-V.bcmap new file mode 100644 index 00000000..808a94f0 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS-UTF8-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF16-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF16-H.bcmap new file mode 100644 index 00000000..d768bf81 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF16-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF16-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF16-V.bcmap new file mode 100644 index 00000000..3d5bf6fb Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF16-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF32-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF32-H.bcmap new file mode 100644 index 00000000..09eee10d Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF32-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF32-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF32-V.bcmap new file mode 100644 index 00000000..6c546001 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF32-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF8-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF8-H.bcmap new file mode 100644 index 00000000..1b1a64f5 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF8-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF8-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF8-V.bcmap new file mode 100644 index 00000000..994aa9ef Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJIS2004-UTF8-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISPro-UCS2-HW-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISPro-UCS2-HW-V.bcmap new file mode 100644 index 00000000..643f921b Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISPro-UCS2-HW-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISPro-UCS2-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISPro-UCS2-V.bcmap new file mode 100644 index 00000000..c148f67f Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISPro-UCS2-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISPro-UTF8-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISPro-UTF8-V.bcmap new file mode 100644 index 00000000..1849d809 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISPro-UTF8-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISX0213-UTF32-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISX0213-UTF32-H.bcmap new file mode 100644 index 00000000..a83a677c Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISX0213-UTF32-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISX0213-UTF32-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISX0213-UTF32-V.bcmap new file mode 100644 index 00000000..f527248a Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISX0213-UTF32-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISX02132004-UTF32-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISX02132004-UTF32-H.bcmap new file mode 100644 index 00000000..e1a988dc Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISX02132004-UTF32-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISX02132004-UTF32-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISX02132004-UTF32-V.bcmap new file mode 100644 index 00000000..47e054a9 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniJISX02132004-UTF32-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UCS2-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UCS2-H.bcmap new file mode 100644 index 00000000..b5b94852 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UCS2-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UCS2-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UCS2-V.bcmap new file mode 100644 index 00000000..026adcaa Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UCS2-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF16-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF16-H.bcmap new file mode 100644 index 00000000..fd4e66e8 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF16-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF16-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF16-V.bcmap new file mode 100644 index 00000000..075efb70 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF16-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF32-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF32-H.bcmap new file mode 100644 index 00000000..769d2142 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF32-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF32-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF32-V.bcmap new file mode 100644 index 00000000..bdab208b Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF32-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF8-H.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF8-H.bcmap new file mode 100644 index 00000000..6ff8674a Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF8-H.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF8-V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF8-V.bcmap new file mode 100644 index 00000000..8dfa76a5 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/UniKS-UTF8-V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/V.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/V.bcmap new file mode 100644 index 00000000..fdec9906 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/V.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/WP-Symbol.bcmap b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/WP-Symbol.bcmap new file mode 100644 index 00000000..46729bbf Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/cmaps/WP-Symbol.bcmap differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/debugger.js b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/debugger.js new file mode 100644 index 00000000..210e388a --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/debugger.js @@ -0,0 +1,612 @@ +/* Copyright 2012 Mozilla Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +let opMap; + +const FontInspector = (function FontInspectorClosure() { + let fonts; + let active = false; + const fontAttribute = "data-font-name"; + function removeSelection() { + const divs = document.querySelectorAll(`span[${fontAttribute}]`); + for (const div of divs) { + div.className = ""; + } + } + function resetSelection() { + const divs = document.querySelectorAll(`span[${fontAttribute}]`); + for (const div of divs) { + div.className = "debuggerHideText"; + } + } + function selectFont(fontName, show) { + const divs = document.querySelectorAll( + `span[${fontAttribute}=${fontName}]` + ); + for (const div of divs) { + div.className = show ? "debuggerShowText" : "debuggerHideText"; + } + } + function textLayerClick(e) { + if ( + !e.target.dataset.fontName || + e.target.tagName.toUpperCase() !== "SPAN" + ) { + return; + } + const fontName = e.target.dataset.fontName; + const selects = document.getElementsByTagName("input"); + for (const select of selects) { + if (select.dataset.fontName !== fontName) { + continue; + } + select.checked = !select.checked; + selectFont(fontName, select.checked); + select.scrollIntoView(); + } + } + return { + // Properties/functions needed by PDFBug. + id: "FontInspector", + name: "Font Inspector", + panel: null, + manager: null, + init(pdfjsLib) { + const panel = this.panel; + const tmp = document.createElement("button"); + tmp.addEventListener("click", resetSelection); + tmp.textContent = "Refresh"; + panel.append(tmp); + + fonts = document.createElement("div"); + panel.append(fonts); + }, + cleanup() { + fonts.textContent = ""; + }, + enabled: false, + get active() { + return active; + }, + set active(value) { + active = value; + if (active) { + document.body.addEventListener("click", textLayerClick, true); + resetSelection(); + } else { + document.body.removeEventListener("click", textLayerClick, true); + removeSelection(); + } + }, + // FontInspector specific functions. + fontAdded(fontObj, url) { + function properties(obj, list) { + const moreInfo = document.createElement("table"); + for (const entry of list) { + const tr = document.createElement("tr"); + const td1 = document.createElement("td"); + td1.textContent = entry; + tr.append(td1); + const td2 = document.createElement("td"); + td2.textContent = obj[entry].toString(); + tr.append(td2); + moreInfo.append(tr); + } + return moreInfo; + } + const moreInfo = properties(fontObj, ["name", "type"]); + const fontName = fontObj.loadedName; + const font = document.createElement("div"); + const name = document.createElement("span"); + name.textContent = fontName; + const download = document.createElement("a"); + if (url) { + url = /url\(['"]?([^)"']+)/.exec(url); + download.href = url[1]; + } else if (fontObj.data) { + download.href = URL.createObjectURL( + new Blob([fontObj.data], { type: fontObj.mimetype }) + ); + } + download.textContent = "Download"; + const logIt = document.createElement("a"); + logIt.href = ""; + logIt.textContent = "Log"; + logIt.addEventListener("click", function (event) { + event.preventDefault(); + console.log(fontObj); + }); + const select = document.createElement("input"); + select.setAttribute("type", "checkbox"); + select.dataset.fontName = fontName; + select.addEventListener("click", function () { + selectFont(fontName, select.checked); + }); + font.append(select, name, " ", download, " ", logIt, moreInfo); + fonts.append(font); + // Somewhat of a hack, should probably add a hook for when the text layer + // is done rendering. + setTimeout(() => { + if (this.active) { + resetSelection(); + } + }, 2000); + }, + }; +})(); + +// Manages all the page steppers. +const StepperManager = (function StepperManagerClosure() { + let steppers = []; + let stepperDiv = null; + let stepperControls = null; + let stepperChooser = null; + let breakPoints = Object.create(null); + return { + // Properties/functions needed by PDFBug. + id: "Stepper", + name: "Stepper", + panel: null, + manager: null, + init(pdfjsLib) { + const self = this; + stepperControls = document.createElement("div"); + stepperChooser = document.createElement("select"); + stepperChooser.addEventListener("change", function (event) { + self.selectStepper(this.value); + }); + stepperControls.append(stepperChooser); + stepperDiv = document.createElement("div"); + this.panel.append(stepperControls, stepperDiv); + if (sessionStorage.getItem("pdfjsBreakPoints")) { + breakPoints = JSON.parse(sessionStorage.getItem("pdfjsBreakPoints")); + } + + opMap = Object.create(null); + for (const key in pdfjsLib.OPS) { + opMap[pdfjsLib.OPS[key]] = key; + } + }, + cleanup() { + stepperChooser.textContent = ""; + stepperDiv.textContent = ""; + steppers = []; + }, + enabled: false, + active: false, + // Stepper specific functions. + create(pageIndex) { + const debug = document.createElement("div"); + debug.id = "stepper" + pageIndex; + debug.hidden = true; + debug.className = "stepper"; + stepperDiv.append(debug); + const b = document.createElement("option"); + b.textContent = "Page " + (pageIndex + 1); + b.value = pageIndex; + stepperChooser.append(b); + const initBreakPoints = breakPoints[pageIndex] || []; + const stepper = new Stepper(debug, pageIndex, initBreakPoints); + steppers.push(stepper); + if (steppers.length === 1) { + this.selectStepper(pageIndex, false); + } + return stepper; + }, + selectStepper(pageIndex, selectPanel) { + pageIndex |= 0; + if (selectPanel) { + this.manager.selectPanel(this); + } + for (const stepper of steppers) { + stepper.panel.hidden = stepper.pageIndex !== pageIndex; + } + for (const option of stepperChooser.options) { + option.selected = (option.value | 0) === pageIndex; + } + }, + saveBreakPoints(pageIndex, bps) { + breakPoints[pageIndex] = bps; + sessionStorage.setItem("pdfjsBreakPoints", JSON.stringify(breakPoints)); + }, + }; +})(); + +// The stepper for each page's operatorList. +const Stepper = (function StepperClosure() { + // Shorter way to create element and optionally set textContent. + function c(tag, textContent) { + const d = document.createElement(tag); + if (textContent) { + d.textContent = textContent; + } + return d; + } + + function simplifyArgs(args) { + if (typeof args === "string") { + const MAX_STRING_LENGTH = 75; + return args.length <= MAX_STRING_LENGTH + ? args + : args.substring(0, MAX_STRING_LENGTH) + "..."; + } + if (typeof args !== "object" || args === null) { + return args; + } + if ("length" in args) { + // array + const MAX_ITEMS = 10, + simpleArgs = []; + let i, ii; + for (i = 0, ii = Math.min(MAX_ITEMS, args.length); i < ii; i++) { + simpleArgs.push(simplifyArgs(args[i])); + } + if (i < args.length) { + simpleArgs.push("..."); + } + return simpleArgs; + } + const simpleObj = {}; + for (const key in args) { + simpleObj[key] = simplifyArgs(args[key]); + } + return simpleObj; + } + + // eslint-disable-next-line no-shadow + class Stepper { + constructor(panel, pageIndex, initialBreakPoints) { + this.panel = panel; + this.breakPoint = 0; + this.nextBreakPoint = null; + this.pageIndex = pageIndex; + this.breakPoints = initialBreakPoints; + this.currentIdx = -1; + this.operatorListIdx = 0; + this.indentLevel = 0; + } + + init(operatorList) { + const panel = this.panel; + const content = c("div", "c=continue, s=step"); + const table = c("table"); + content.append(table); + table.cellSpacing = 0; + const headerRow = c("tr"); + table.append(headerRow); + headerRow.append( + c("th", "Break"), + c("th", "Idx"), + c("th", "fn"), + c("th", "args") + ); + panel.append(content); + this.table = table; + this.updateOperatorList(operatorList); + } + + updateOperatorList(operatorList) { + const self = this; + + function cboxOnClick() { + const x = +this.dataset.idx; + if (this.checked) { + self.breakPoints.push(x); + } else { + self.breakPoints.splice(self.breakPoints.indexOf(x), 1); + } + StepperManager.saveBreakPoints(self.pageIndex, self.breakPoints); + } + + const MAX_OPERATORS_COUNT = 15000; + if (this.operatorListIdx > MAX_OPERATORS_COUNT) { + return; + } + + const chunk = document.createDocumentFragment(); + const operatorsToDisplay = Math.min( + MAX_OPERATORS_COUNT, + operatorList.fnArray.length + ); + for (let i = this.operatorListIdx; i < operatorsToDisplay; i++) { + const line = c("tr"); + line.className = "line"; + line.dataset.idx = i; + chunk.append(line); + const checked = this.breakPoints.includes(i); + const args = operatorList.argsArray[i] || []; + + const breakCell = c("td"); + const cbox = c("input"); + cbox.type = "checkbox"; + cbox.className = "points"; + cbox.checked = checked; + cbox.dataset.idx = i; + cbox.onclick = cboxOnClick; + + breakCell.append(cbox); + line.append(breakCell, c("td", i.toString())); + const fn = opMap[operatorList.fnArray[i]]; + let decArgs = args; + if (fn === "showText") { + const glyphs = args[0]; + const charCodeRow = c("tr"); + const fontCharRow = c("tr"); + const unicodeRow = c("tr"); + for (const glyph of glyphs) { + if (typeof glyph === "object" && glyph !== null) { + charCodeRow.append(c("td", glyph.originalCharCode)); + fontCharRow.append(c("td", glyph.fontChar)); + unicodeRow.append(c("td", glyph.unicode)); + } else { + // null or number + const advanceEl = c("td", glyph); + advanceEl.classList.add("advance"); + charCodeRow.append(advanceEl); + fontCharRow.append(c("td")); + unicodeRow.append(c("td")); + } + } + decArgs = c("td"); + const table = c("table"); + table.classList.add("showText"); + decArgs.append(table); + table.append(charCodeRow, fontCharRow, unicodeRow); + } else if (fn === "restore") { + this.indentLevel--; + } + line.append(c("td", " ".repeat(this.indentLevel * 2) + fn)); + if (fn === "save") { + this.indentLevel++; + } + + if (decArgs instanceof HTMLElement) { + line.append(decArgs); + } else { + line.append(c("td", JSON.stringify(simplifyArgs(decArgs)))); + } + } + if (operatorsToDisplay < operatorList.fnArray.length) { + const lastCell = c("td", "..."); + lastCell.colspan = 4; + chunk.append(lastCell); + } + this.operatorListIdx = operatorList.fnArray.length; + this.table.append(chunk); + } + + getNextBreakPoint() { + this.breakPoints.sort(function (a, b) { + return a - b; + }); + for (const breakPoint of this.breakPoints) { + if (breakPoint > this.currentIdx) { + return breakPoint; + } + } + return null; + } + + breakIt(idx, callback) { + StepperManager.selectStepper(this.pageIndex, true); + this.currentIdx = idx; + + const listener = evt => { + switch (evt.keyCode) { + case 83: // step + document.removeEventListener("keydown", listener); + this.nextBreakPoint = this.currentIdx + 1; + this.goTo(-1); + callback(); + break; + case 67: // continue + document.removeEventListener("keydown", listener); + this.nextBreakPoint = this.getNextBreakPoint(); + this.goTo(-1); + callback(); + break; + } + }; + document.addEventListener("keydown", listener); + this.goTo(idx); + } + + goTo(idx) { + const allRows = this.panel.getElementsByClassName("line"); + for (const row of allRows) { + if ((row.dataset.idx | 0) === idx) { + row.style.backgroundColor = "rgb(251,250,207)"; + row.scrollIntoView(); + } else { + row.style.backgroundColor = null; + } + } + } + } + return Stepper; +})(); + +const Stats = (function Stats() { + let stats = []; + function clear(node) { + node.textContent = ""; // Remove any `node` contents from the DOM. + } + function getStatIndex(pageNumber) { + for (const [i, stat] of stats.entries()) { + if (stat.pageNumber === pageNumber) { + return i; + } + } + return false; + } + return { + // Properties/functions needed by PDFBug. + id: "Stats", + name: "Stats", + panel: null, + manager: null, + init(pdfjsLib) {}, + enabled: false, + active: false, + // Stats specific functions. + add(pageNumber, stat) { + if (!stat) { + return; + } + const statsIndex = getStatIndex(pageNumber); + if (statsIndex !== false) { + stats[statsIndex].div.remove(); + stats.splice(statsIndex, 1); + } + const wrapper = document.createElement("div"); + wrapper.className = "stats"; + const title = document.createElement("div"); + title.className = "title"; + title.textContent = "Page: " + pageNumber; + const statsDiv = document.createElement("div"); + statsDiv.textContent = stat.toString(); + wrapper.append(title, statsDiv); + stats.push({ pageNumber, div: wrapper }); + stats.sort(function (a, b) { + return a.pageNumber - b.pageNumber; + }); + clear(this.panel); + for (const entry of stats) { + this.panel.append(entry.div); + } + }, + cleanup() { + stats = []; + clear(this.panel); + }, + }; +})(); + +// Manages all the debugging tools. +const PDFBug = (function PDFBugClosure() { + const panelWidth = 300; + const buttons = []; + let activePanel = null; + + return { + tools: [FontInspector, StepperManager, Stats], + enable(ids) { + const all = ids.length === 1 && ids[0] === "all"; + const tools = this.tools; + for (const tool of tools) { + if (all || ids.includes(tool.id)) { + tool.enabled = true; + } + } + if (!all) { + // Sort the tools by the order they are enabled. + tools.sort(function (a, b) { + let indexA = ids.indexOf(a.id); + indexA = indexA < 0 ? tools.length : indexA; + let indexB = ids.indexOf(b.id); + indexB = indexB < 0 ? tools.length : indexB; + return indexA - indexB; + }); + } + }, + init(pdfjsLib, container, ids) { + this.loadCSS(); + this.enable(ids); + /* + * Basic Layout: + * PDFBug + * Controls + * Panels + * Panel + * Panel + * ... + */ + const ui = document.createElement("div"); + ui.id = "PDFBug"; + + const controls = document.createElement("div"); + controls.setAttribute("class", "controls"); + ui.append(controls); + + const panels = document.createElement("div"); + panels.setAttribute("class", "panels"); + ui.append(panels); + + container.append(ui); + container.style.right = panelWidth + "px"; + + // Initialize all the debugging tools. + for (const tool of this.tools) { + const panel = document.createElement("div"); + const panelButton = document.createElement("button"); + panelButton.textContent = tool.name; + panelButton.addEventListener("click", event => { + event.preventDefault(); + this.selectPanel(tool); + }); + controls.append(panelButton); + panels.append(panel); + tool.panel = panel; + tool.manager = this; + if (tool.enabled) { + tool.init(pdfjsLib); + } else { + panel.textContent = + `${tool.name} is disabled. To enable add "${tool.id}" to ` + + "the pdfBug parameter and refresh (separate multiple by commas)."; + } + buttons.push(panelButton); + } + this.selectPanel(0); + }, + loadCSS() { + const { url } = import.meta; + + const link = document.createElement("link"); + link.rel = "stylesheet"; + link.href = url.replace(/.js$/, ".css"); + + document.head.append(link); + }, + cleanup() { + for (const tool of this.tools) { + if (tool.enabled) { + tool.cleanup(); + } + } + }, + selectPanel(index) { + if (typeof index !== "number") { + index = this.tools.indexOf(index); + } + if (index === activePanel) { + return; + } + activePanel = index; + for (const [j, tool] of this.tools.entries()) { + const isActive = j === index; + buttons[j].classList.toggle("active", isActive); + tool.active = isActive; + tool.panel.hidden = !isActive; + } + }, + }; +})(); + +globalThis.FontInspector = FontInspector; +globalThis.StepperManager = StepperManager; +globalThis.Stats = Stats; + +export { PDFBug }; diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-check.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-check.svg new file mode 100644 index 00000000..71cd16df --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-check.svg @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns="http://www.w3.org/2000/svg" + width="40" + height="40" + viewBox="0 0 40 40"> + <path + d="M 1.5006714,23.536225 6.8925879,18.994244 14.585721,26.037937 34.019683,4.5410479 38.499329,9.2235032 14.585721,35.458952 z" + id="path4" + style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.25402856;stroke-opacity:1" /> +</svg> diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-comment.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-comment.svg new file mode 100644 index 00000000..86f1f172 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-comment.svg @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns="http://www.w3.org/2000/svg" + height="40" + width="40" + viewBox="0 0 40 40"> + <rect + style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" + width="33.76017" + height="33.76017" + x="3.119915" + y="3.119915" /> + <path + d="m 20.677967,8.54499 c -7.342801,0 -13.295293,4.954293 -13.295293,11.065751 0,2.088793 0.3647173,3.484376 1.575539,5.150563 L 6.0267418,31.45501 13.560595,29.011117 c 2.221262,1.387962 4.125932,1.665377 7.117372,1.665377 7.3428,0 13.295291,-4.954295 13.295291,-11.065753 0,-6.111458 -5.952491,-11.065751 -13.295291,-11.065751 z" + style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.93031836;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"/> +</svg> diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-help.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-help.svg new file mode 100644 index 00000000..00938fef --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-help.svg @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns="http://www.w3.org/2000/svg" + width="40" + height="40" + viewBox="0 0 40 40"> + <g + transform="translate(0,-60)" + id="layer1"> + <rect + width="36.460953" + height="34.805603" + x="1.7695236" + y="62.597198" + style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.30826771;stroke-opacity:1" /> + <g + transform="matrix(0.88763677,0,0,0.88763677,2.2472646,8.9890584)"> + <path + d="M 20,64.526342 C 11.454135,64.526342 4.5263421,71.454135 4.5263421,80 4.5263421,88.545865 11.454135,95.473658 20,95.473658 28.545865,95.473658 35.473658,88.545865 35.473658,80 35.473658,71.454135 28.545865,64.526342 20,64.526342 z m -0.408738,9.488564 c 3.527079,0 6.393832,2.84061 6.393832,6.335441 0,3.494831 -2.866753,6.335441 -6.393832,6.335441 -3.527079,0 -6.393832,-2.84061 -6.393832,-6.335441 0,-3.494831 2.866753,-6.335441 6.393832,-6.335441 z" + style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.02768445;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> + <path + d="m 7.2335209,71.819938 4.9702591,4.161823 c -1.679956,2.581606 -1.443939,6.069592 0.159325,8.677725 l -5.1263071,3.424463 c 0.67516,1.231452 3.0166401,3.547686 4.2331971,4.194757 l 3.907728,-4.567277 c 2.541952,1.45975 5.730694,1.392161 8.438683,-0.12614 l 3.469517,6.108336 c 1.129779,-0.44367 4.742234,-3.449633 5.416358,-5.003859 l -5.46204,-4.415541 c 1.44319,-2.424098 1.651175,-5.267515 0.557303,-7.748623 l 5.903195,-3.833951 C 33.14257,71.704996 30.616217,69.018606 29.02952,67.99296 l -4.118813,4.981678 C 22.411934,71.205099 18.900853,70.937534 16.041319,72.32916 l -3.595408,-5.322091 c -1.345962,0.579488 -4.1293881,2.921233 -5.2123901,4.812869 z m 8.1010311,3.426672 c 2.75284,-2.446266 6.769149,-2.144694 9.048998,0.420874 2.279848,2.56557 2.113919,6.596919 -0.638924,9.043185 -2.752841,2.446267 -6.775754,2.13726 -9.055604,-0.428308 -2.279851,-2.565568 -2.107313,-6.589485 0.64553,-9.035751 z" + style="fill:#000000;fill-opacity:1;stroke:none" /> + </g> + </g> +</svg> diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-insert.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-insert.svg new file mode 100644 index 00000000..519ef682 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-insert.svg @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns="http://www.w3.org/2000/svg" + width="64" + height="64" + viewBox="0 0 64 64"> + <path + d="M 32.003143,1.4044602 57.432701,62.632577 6.5672991,62.627924 z" + style="fill:#ffff00;fill-opacity:0.94117647;fill-rule:nonzero;stroke:#000000;stroke-width:1.00493038;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> +</svg> diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-key.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-key.svg new file mode 100644 index 00000000..8d09d537 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-key.svg @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns="http://www.w3.org/2000/svg" + width="64" + height="64" + viewBox="0 0 64 64"> + <path + d="M 25.470843,9.4933766 C 25.30219,12.141818 30.139101,14.445969 34.704831,13.529144 40.62635,12.541995 41.398833,7.3856498 35.97505,5.777863 31.400921,4.1549155 25.157674,6.5445892 25.470843,9.4933766 z M 4.5246282,17.652051 C 4.068249,11.832873 9.2742983,5.9270407 18.437379,3.0977088 29.751911,-0.87185184 45.495663,1.4008022 53.603953,7.1104009 c 9.275765,6.1889221 7.158128,16.2079421 -3.171076,21.5939521 -1.784316,1.635815 -6.380222,1.21421 -7.068351,3.186186 -1.04003,0.972427 -1.288046,2.050158 -1.232864,3.168203 1.015111,2.000108 -3.831548,1.633216 -3.270553,3.759574 0.589477,5.264544 -0.179276,10.53738 -0.362842,15.806257 -0.492006,2.184998 1.163456,4.574232 -0.734888,6.610642 -2.482919,2.325184 -7.30604,2.189143 -9.193497,-0.274767 -2.733688,-1.740626 -8.254447,-3.615254 -6.104247,-6.339626 3.468112,-1.708686 -2.116197,-3.449897 0.431242,-5.080274 5.058402,-1.39256 -2.393215,-2.304318 -0.146889,-4.334645 3.069198,-0.977415 2.056986,-2.518352 -0.219121,-3.540397 1.876567,-1.807151 1.484149,-4.868919 -2.565455,-5.942205 0.150866,-1.805474 2.905737,-4.136876 -1.679967,-5.20493 C 10.260902,27.882167 4.6872697,22.95045 4.5245945,17.652051 z" + id="path604" + style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.72665179;stroke-opacity:1" /> +</svg> diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-newparagraph.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-newparagraph.svg new file mode 100644 index 00000000..38d2497d --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-newparagraph.svg @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns="http://www.w3.org/2000/svg" + width="64" + height="64" + viewBox="0 0 64 64"> + <path + d="M 32.003143,10.913072 57.432701,53.086929 6.567299,53.083723 z" + id="path2985" + style="fill:#ffff00;fill-opacity:0.94117647;fill-rule:nonzero;stroke:#000000;stroke-width:0.83403099;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> +</svg> diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-noicon.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-noicon.svg new file mode 100644 index 00000000..c07d1080 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-noicon.svg @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns="http://www.w3.org/2000/svg" + width="40" + height="40" + viewBox="0 0 40 40"> +</svg> diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-note.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-note.svg new file mode 100644 index 00000000..70173651 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-note.svg @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns="http://www.w3.org/2000/svg" + width="40" + height="40" + viewBox="0 0 40 40"> + <rect + width="36.075428" + height="31.096582" + x="1.962286" + y="4.4517088" + id="rect4" + style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.23004246;stroke-opacity:1" /> + <rect + width="27.96859" + height="1.5012145" + x="6.0157046" + y="10.285" + id="rect6" + style="fill:#000000;fill-opacity:1;stroke:none" /> + <rect + width="27.96859" + height="0.85783684" + x="6.0157056" + y="23.21689" + id="rect8" + style="fill:#000000;fill-opacity:1;stroke:none" /> + <rect + width="27.96859" + height="0.85783684" + x="5.8130345" + y="28.964394" + id="rect10" + style="fill:#000000;fill-opacity:1;stroke:none" /> + <rect + width="27.96859" + height="0.85783684" + x="6.0157046" + y="17.426493" + id="rect12" + style="fill:#000000;fill-opacity:1;stroke:none" /> +</svg> diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-paragraph.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-paragraph.svg new file mode 100644 index 00000000..6ae5212b --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/annotation-paragraph.svg @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns="http://www.w3.org/2000/svg" + width="40" + height="40" + viewBox="0 0 40 40"> + <rect + width="33.76017" + height="33.76017" + x="3.119915" + y="3.119915" + style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> + <path + d="m 17.692678,34.50206 0,-16.182224 c -1.930515,-0.103225 -3.455824,-0.730383 -4.57593,-1.881473 -1.12011,-1.151067 -1.680164,-2.619596 -1.680164,-4.405591 0,-1.992435 0.621995,-3.5796849 1.865988,-4.7617553 1.243989,-1.1820288 3.06352,-1.7730536 5.458598,-1.7730764 l 9.802246,0 0,2.6789711 -2.229895,0 0,26.3251486 -2.632515,0 0,-26.3251486 -3.45324,0 0,26.3251486 z" + style="font-size:29.42051125px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.07795751;stroke-opacity:1;font-family:Arial;-inkscape-font-specification:Arial" /> +</svg> diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/findbarButton-next.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/findbarButton-next.svg new file mode 100644 index 00000000..a81eb029 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/findbarButton-next.svg @@ -0,0 +1,4 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M8 12a1 1 0 0 1-.707-.293l-5-5a1 1 0 0 1 1.414-1.414L8 9.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-5 5A1 1 0 0 1 8 12z"></path></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/findbarButton-previous.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/findbarButton-previous.svg new file mode 100644 index 00000000..5fd70322 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/findbarButton-previous.svg @@ -0,0 +1,4 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M13 11a1 1 0 0 1-.707-.293L8 6.414l-4.293 4.293a1 1 0 0 1-1.414-1.414l5-5a1 1 0 0 1 1.414 0l5 5A1 1 0 0 1 13 11z"></path></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/loading-dark.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/loading-dark.svg new file mode 100644 index 00000000..fa5269b1 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/loading-dark.svg @@ -0,0 +1,24 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" +fill="rgba(255,255,255,1)" style="animation:spinLoadingIcon 1s steps(12,end) +infinite"><style>@keyframes +spinLoadingIcon{to{transform:rotate(360deg)}}</style><path +d="M7 3V1s0-1 1-1 1 1 1 1v2s0 1-1 1-1-1-1-1z"/><path d="M4.63 +4.1l-1-1.73S3.13 1.5 4 1c.87-.5 1.37.37 1.37.37l1 1.73s.5.87-.37 +1.37c-.87.57-1.37-.37-1.37-.37z" fill-opacity=".93"/><path +d="M3.1 6.37l-1.73-1S.5 4.87 1 4c.5-.87 1.37-.37 1.37-.37l1.73 1s.87.5.37 +1.37c-.5.87-1.37.37-1.37.37z" fill-opacity=".86"/><path d="M3 +9H1S0 9 0 8s1-1 1-1h2s1 0 1 1-1 1-1 1z" fill-opacity=".79"/><path d="M4.1 11.37l-1.73 1S1.5 12.87 1 +12c-.5-.87.37-1.37.37-1.37l1.73-1s.87-.5 1.37.37c.5.87-.37 1.37-.37 1.37z" +fill-opacity=".72"/><path d="M3.63 13.56l1-1.73s.5-.87 +1.37-.37c.87.5.37 1.37.37 1.37l-1 1.73s-.5.87-1.37.37c-.87-.5-.37-1.37-.37-1.37z" +fill-opacity=".65"/><path d="M7 15v-2s0-1 1-1 1 1 1 1v2s0 1-1 +1-1-1-1-1z" fill-opacity=".58"/><path d="M10.63 +14.56l-1-1.73s-.5-.87.37-1.37c.87-.5 1.37.37 1.37.37l1 1.73s.5.87-.37 +1.37c-.87.5-1.37-.37-1.37-.37z" fill-opacity=".51"/><path +d="M13.56 12.37l-1.73-1s-.87-.5-.37-1.37c.5-.87 1.37-.37 1.37-.37l1.73 1s.87.5.37 +1.37c-.5.87-1.37.37-1.37.37z" fill-opacity=".44"/><path d="M15 +9h-2s-1 0-1-1 1-1 1-1h2s1 0 1 1-1 1-1 1z" fill-opacity=".37"/><path d="M14.56 5.37l-1.73 +1s-.87.5-1.37-.37c-.5-.87.37-1.37.37-1.37l1.73-1s.87-.5 1.37.37c.5.87-.37 1.37-.37 +1.37z" fill-opacity=".3"/><path d="M9.64 3.1l.98-1.66s.5-.874 +1.37-.37c.87.5.37 1.37.37 1.37l-1 1.73s-.5.87-1.37.37c-.87-.5-.37-1.37-.37-1.37z" +fill-opacity=".23"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/loading-icon.gif b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/loading-icon.gif new file mode 100644 index 00000000..1c72ebb5 Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/loading-icon.gif differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/loading.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/loading.svg new file mode 100644 index 00000000..0a15ff68 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/loading.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" style="animation:spinLoadingIcon 1s steps(12,end) infinite"><style>@keyframes spinLoadingIcon{to{transform:rotate(360deg)}}</style><path d="M7 3V1s0-1 1-1 1 1 1 1v2s0 1-1 1-1-1-1-1z"/><path d="M4.63 4.1l-1-1.73S3.13 1.5 4 1c.87-.5 1.37.37 1.37.37l1 1.73s.5.87-.37 1.37c-.87.57-1.37-.37-1.37-.37z" fill-opacity=".93"/><path d="M3.1 6.37l-1.73-1S.5 4.87 1 4c.5-.87 1.37-.37 1.37-.37l1.73 1s.87.5.37 1.37c-.5.87-1.37.37-1.37.37z" fill-opacity=".86"/><path d="M3 9H1S0 9 0 8s1-1 1-1h2s1 0 1 1-1 1-1 1z" fill-opacity=".79"/><path d="M4.1 11.37l-1.73 1S1.5 12.87 1 12c-.5-.87.37-1.37.37-1.37l1.73-1s.87-.5 1.37.37c.5.87-.37 1.37-.37 1.37z" fill-opacity=".72"/><path d="M3.63 13.56l1-1.73s.5-.87 1.37-.37c.87.5.37 1.37.37 1.37l-1 1.73s-.5.87-1.37.37c-.87-.5-.37-1.37-.37-1.37z" fill-opacity=".65"/><path d="M7 15v-2s0-1 1-1 1 1 1 1v2s0 1-1 1-1-1-1-1z" fill-opacity=".58"/><path d="M10.63 14.56l-1-1.73s-.5-.87.37-1.37c.87-.5 1.37.37 1.37.37l1 1.73s.5.87-.37 1.37c-.87.5-1.37-.37-1.37-.37z" fill-opacity=".51"/><path d="M13.56 12.37l-1.73-1s-.87-.5-.37-1.37c.5-.87 1.37-.37 1.37-.37l1.73 1s.87.5.37 1.37c-.5.87-1.37.37-1.37.37z" fill-opacity=".44"/><path d="M15 9h-2s-1 0-1-1 1-1 1-1h2s1 0 1 1-1 1-1 1z" fill-opacity=".37"/><path d="M14.56 5.37l-1.73 1s-.87.5-1.37-.37c-.5-.87.37-1.37.37-1.37l1.73-1s.87-.5 1.37.37c.5.87-.37 1.37-.37 1.37z" fill-opacity=".3"/><path d="M9.64 3.1l.98-1.66s.5-.874 1.37-.37c.87.5.37 1.37.37 1.37l-1 1.73s-.5.87-1.37.37c-.87-.5-.37-1.37-.37-1.37z" fill-opacity=".23"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-documentProperties.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-documentProperties.svg new file mode 100644 index 00000000..6bd55cda --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-documentProperties.svg @@ -0,0 +1,15 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 +16"> +<path + d="M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z"> +</path> +<path + d="M8 7a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z"> +</path> +<circle + cx="8" cy="5" r="1.188"> +</circle> +</svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-firstPage.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-firstPage.svg new file mode 100644 index 00000000..2fa0fa6d --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-firstPage.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M13 13c-.3 0-.5-.1-.7-.3L8 8.4l-4.3 4.3c-.9.9-2.3-.5-1.4-1.4l5-5c.4-.4 1-.4 1.4 0l5 5c.6.6.2 1.7-.7 1.7zm0-11H3C1.7 2 1.7 4 3 4h10c1.3 0 1.3-2 0-2z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-handTool.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-handTool.svg new file mode 100644 index 00000000..3d038fab --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-handTool.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><path d="M15 3.7V13c0 1.5-1.53 3-3 3H7.13c-.72 0-1.63-.5-2.13-1l-5-5s.84-1 .87-1c.13-.1.33-.2.53-.2.1 0 .3.1.4.2L4 10.6V2.7c0-.6.4-1 1-1s1 .4 1 1v4.6h1V1c0-.6.4-1 1-1s1 .4 1 1v6.3h1V1.7c0-.6.4-1 1-1s1 .4 1 1v5.7h1V3.7c0-.6.4-1 1-1s1 .4 1 1z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-lastPage.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-lastPage.svg new file mode 100644 index 00000000..53fa9a6d --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-lastPage.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M8 10c-.3 0-.5-.1-.7-.3l-5-5c-.9-.9.5-2.3 1.4-1.4L8 7.6l4.3-4.3c.9-.9 2.3.5 1.4 1.4l-5 5c-.2.2-.4.3-.7.3zm5 2H3c-1.3 0-1.3 2 0 2h10c1.3 0 1.3-2 0-2z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-rotateCcw.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-rotateCcw.svg new file mode 100644 index 00000000..c71ea8e8 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-rotateCcw.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><path d="M1 1a1 1 0 011 1v2.4A7 7 0 118 15a7 7 0 01-4.9-2 1 1 0 011.4-1.5 5 5 0 10-1-5.5H6a1 1 0 010 2H1a1 1 0 01-1-1V2a1 1 0 011-1z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-rotateCw.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-rotateCw.svg new file mode 100644 index 00000000..e1e19e73 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-rotateCw.svg @@ -0,0 +1,4 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M15 1a1 1 0 0 0-1 1v2.418A6.995 6.995 0 1 0 8 15a6.954 6.954 0 0 0 4.95-2.05 1 1 0 0 0-1.414-1.414A5.019 5.019 0 1 1 12.549 6H10a1 1 0 0 0 0 2h5a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z"></path></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-scrollHorizontal.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-scrollHorizontal.svg new file mode 100644 index 00000000..8693eec3 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-scrollHorizontal.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><path d="M0 4h1.5c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5H0zM9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM16 4h-1.5c-1 0-1.5.5-1.5 1.5v5c0 1 .5 1.5 1.5 1.5H16z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-scrollPage.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-scrollPage.svg new file mode 100644 index 00000000..bea2f0d6 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-scrollPage.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><path d="M9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-scrollVertical.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-scrollVertical.svg new file mode 100644 index 00000000..ee1cf22f --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-scrollVertical.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><path d="M9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM11 0v.5c0 1-.5 1.5-1.5 1.5h-3C5.5 2 5 1.5 5 .5V0h6zM11 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-scrollWrapped.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-scrollWrapped.svg new file mode 100644 index 00000000..804e7469 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-scrollWrapped.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M5.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C1 4.5 1.5 4 2.5 4zM7 0v.5C7 1.5 6.5 2 5.5 2h-3C1.5 2 1 1.5 1 .5V0h6zM7 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6zM13.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5c0-1 .5-1.5 1.5-1.5zM15 0v.5c0 1-.5 1.5-1.5 1.5h-3C9.5 2 9 1.5 9 .5V0h6zM15 16v-.507c0-1-.5-1.5-1.5-1.5h-3C9.5 14 9 14.5 9 15.5v.5h6z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-selectTool.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-selectTool.svg new file mode 100644 index 00000000..43e97894 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-selectTool.svg @@ -0,0 +1,4 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M12.408 8.217l-8.083-6.7A.2.2 0 0 0 4 1.672V12.3a.2.2 0 0 0 .333.146l2.56-2.372 1.857 3.9A1.125 1.125 0 1 0 10.782 13L8.913 9.075l3.4-.51a.2.2 0 0 0 .095-.348z"></path></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-spreadEven.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-spreadEven.svg new file mode 100644 index 00000000..ddec5e68 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-spreadEven.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M1.5 3.5C.5 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm2 1.2c.8 0 1.4.2 1.8.6.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.4-.2.3-.5.7-1 1l-.6.4c-.4.3-.6.4-.75.56-.15.14-.25.24-.35.44H6v1.3H1c0-.6.1-1.1.3-1.5.3-.6.7-1 1.5-1.6.7-.4 1.1-.8 1.28-1 .32-.3.42-.6.42-1 0-.3-.1-.6-.23-.8-.17-.2-.37-.3-.77-.3s-.7.1-.9.5c-.04.2-.1.5-.1.9H1.1c0-.6.1-1.1.3-1.5.4-.7 1.1-1.1 2.1-1.1zM10.54 3.54C9.5 3.54 9 4 9 5v6.5c0 1 .5 1.5 1.54 1.5h4c.96 0 1.46-.5 1.46-1.5V5c0-1-.5-1.46-1.5-1.46zm1.9.95c.7 0 1.3.2 1.7.5.4.4.6.8.6 1.4 0 .4-.1.8-.4 1.1-.2.2-.3.3-.5.4.1 0 .3.1.6.3.4.3.5.8.5 1.4 0 .6-.2 1.2-.6 1.6-.4.5-1.1.7-1.9.7-1 0-1.8-.3-2.2-1-.14-.29-.24-.69-.24-1.29h1.4c0 .3 0 .5.1.7.2.4.5.5 1 .5.3 0 .5-.1.7-.3.2-.2.3-.5.3-.8 0-.5-.2-.8-.6-.95-.2-.05-.5-.15-1-.15v-1c.5 0 .8-.1 1-.14.3-.1.5-.4.5-.9 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.7-.3-.3 0-.6.1-.75.3-.2.2-.2.5-.2.86h-1.34c0-.4.1-.7.19-1.1 0-.12.2-.32.4-.62.2-.2.4-.3.7-.4.3-.1.6-.1 1-.1z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-spreadNone.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-spreadNone.svg new file mode 100644 index 00000000..63318c56 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-spreadNone.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><path d="M6 3c-1 0-1.5.5-1.5 1.5v7c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5v-7c0-1-.5-1.5-1.5-1.5z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-spreadOdd.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-spreadOdd.svg new file mode 100644 index 00000000..29909e9f --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/secondaryToolbarButton-spreadOdd.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M10.56 3.5C9.56 3.5 9 4 9 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.93 1.2c.8 0 1.4.2 1.8.64.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.44-.2.3-.6.6-1 .93l-.6.4c-.4.3-.6.4-.7.55-.1.1-.2.2-.3.4h3.2v1.27h-5c0-.5.1-1 .3-1.43.2-.49.7-1 1.5-1.54.7-.5 1.1-.8 1.3-1.02.3-.3.4-.7.4-1.05 0-.3-.1-.6-.3-.77-.2-.2-.4-.3-.7-.3-.4 0-.7.2-.9.5-.1.2-.1.5-.2.9h-1.4c0-.6.2-1.1.3-1.5.4-.7 1.1-1.1 2-1.1zM1.54 3.5C.54 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.54 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.8 1.125H4.5V12H3V6.9H1.3v-1c.5 0 .8 0 .97-.03.33-.07.53-.17.73-.37.1-.2.2-.3.25-.5.05-.2.05-.3.05-.3z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/shadow.png b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/shadow.png new file mode 100644 index 00000000..a00061ac Binary files /dev/null and b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/shadow.png differ diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-bookmark.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-bookmark.svg new file mode 100644 index 00000000..79d39b09 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-bookmark.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><path d="M4 16V2s0-1 1-1h6s1 0 1 1v14l-4-5z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-currentOutlineItem.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-currentOutlineItem.svg new file mode 100644 index 00000000..c1c72b20 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-currentOutlineItem.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><path d="m14 9h-6c-1.3 0-1.3 2 0 2h6c1.3 0 1.3-2 0-2zm-5.2-8h-3.8c-1.3 0-1.3 2 0 2h1.7zm-6.8 0c-1 0-1.3 1-0.7 1.7 0.7 0.6 1.7 0.3 1.7-0.7 0-0.5-0.4-1-1-1zm3 8c-1 0-1.3 1-0.7 1.7 0.6 0.6 1.7 0.2 1.7-0.7 0-0.5-0.4-1-1-1zm0.3-4h-0.3c-1.4 0-1.4 2 0 2h2.3zm-3.3 0c-0.9 0-1.4 1-0.7 1.7 0.7 0.6 1.7 0.2 1.7-0.7 0-0.6-0.5-1-1-1zm12 8h-9c-1.3 0-1.3 2 0 2h9c1.3 0 1.3-2 0-2zm-12 0c-1 0-1.3 1-0.7 1.7 0.7 0.6 1.7 0.2 1.7-0.712 0-0.5-0.4-1-1-1z"/><path d="m7.37 4.838 3.93-3.911v2.138h3.629v3.546h-3.629v2.138l-3.93-3.911"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-download.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-download.svg new file mode 100644 index 00000000..2cdb5db3 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-download.svg @@ -0,0 +1,4 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M14 3h-2v2h2v8H2V5h7V3h-.849L6.584 1.538A2 2 0 0 0 5.219 1H2a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zM2 3h3.219l1.072 1H2z"></path><path d="M8.146 6.146a.5.5 0 0 0 0 .707l2 2a.5.5 0 0 0 .707 0l2-2a.5.5 0 1 0-.707-.707L11 7.293V.5a.5.5 0 0 0-1 0v6.793L8.854 6.146a.5.5 0 0 0-.708 0z"></path></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-editorFreeText.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-editorFreeText.svg new file mode 100644 index 00000000..f0f11b47 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-editorFreeText.svg @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- copied from https://www.svgrepo.com/svg/255881/text --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve"> +<g> + <g transform="scale(0.03125)"> + <path d="M405.787,43.574H8.17c-4.513,0-8.17,3.658-8.17,8.17v119.83c0,4.512,3.657,8.17,8.17,8.17h32.681 + c4.513,0,8.17-3.658,8.17-8.17v-24.511h95.319v119.83c0,4.512,3.657,8.17,8.17,8.17c4.513,0,8.17-3.658,8.17-8.17v-128 + c0-4.512-3.657-8.17-8.17-8.17H40.851c-4.513,0-8.17,3.658-8.17,8.17v24.511H16.34V59.915h381.277v103.489h-16.34v-24.511 + c0-4.512-3.657-8.17-8.17-8.17h-111.66c-4.513,0-8.17,3.658-8.17,8.17v288.681c0,4.512,3.657,8.17,8.17,8.17h57.191v16.34H95.319 + v-16.34h57.191c4.513,0,8.17-3.658,8.17-8.17v-128c0-4.512-3.657-8.17-8.17-8.17c-4.513,0-8.17,3.658-8.17,8.17v119.83H87.149 + c-4.513,0-8.17,3.658-8.17,8.17v32.681c0,4.512,3.657,8.17,8.17,8.17h239.66c4.513,0,8.17-3.658,8.17-8.17v-32.681 + c0-4.512-3.657-8.17-8.17-8.17h-57.192v-272.34h95.319v24.511c0,4.512,3.657,8.17,8.17,8.17h32.681c4.513,0,8.17-3.658,8.17-8.17 + V51.745C413.957,47.233,410.3,43.574,405.787,43.574z"/> + </g> +</g> +<g> + <g transform="scale(0.03125)"> + <path d="M503.83,452.085h-24.511V59.915h24.511c4.513,0,8.17-3.658,8.17-8.17s-3.657-8.17-8.17-8.17h-65.362 + c-4.513,0-8.17,3.658-8.17,8.17s3.657,8.17,8.17,8.17h24.511v392.17h-24.511c-4.513,0-8.17,3.658-8.17,8.17s3.657,8.17,8.17,8.17 + h65.362c4.513,0,8.17-3.658,8.17-8.17S508.343,452.085,503.83,452.085z"/> + </g> +</g> +</svg> diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-editorInk.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-editorInk.svg new file mode 100644 index 00000000..2b37e85f --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-editorInk.svg @@ -0,0 +1,9 @@ +<?xml version='1.0' encoding='utf-8'?> +<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'> +<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 16 16"> + <g> + <g transform="scale(0.03125)"> + <path d="m455.1,137.9l-32.4,32.4-81-81.1 32.4-32.4c6.6-6.6 18.1-6.6 24.7,0l56.3,56.4c6.8,6.8 6.8,17.9 0,24.7zm-270.7,271l-81-81.1 209.4-209.7 81,81.1-209.4,209.7zm-99.7-42l60.6,60.7-84.4,23.8 23.8-84.5zm399.3-282.6l-56.3-56.4c-11-11-50.7-31.8-82.4,0l-285.3,285.5c-2.5,2.5-4.3,5.5-5.2,8.9l-43,153.1c-2,7.1 0.1,14.7 5.2,20 5.2,5.3 15.6,6.2 20,5.2l153-43.1c3.4-0.9 6.4-2.7 8.9-5.2l285.1-285.5c22.7-22.7 22.7-59.7 0-82.5z"/> + </g> + </g> +</svg> diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-menuArrow.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-menuArrow.svg new file mode 100644 index 00000000..46e41e18 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-menuArrow.svg @@ -0,0 +1 @@ +<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M8 11a1 1 0 01-.707-.293l-2.99-2.99c-.91-.942.471-2.324 1.414-1.414L8 8.586l2.283-2.283c.943-.91 2.324.472 1.414 1.414l-2.99 2.99A1 1 0 018 11z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-openFile.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-openFile.svg new file mode 100644 index 00000000..cb35980f --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-openFile.svg @@ -0,0 +1,4 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M14.859 3.2a1.335 1.335 0 0 1-1.217.8H13v1h1v8H2V5h8V4h-.642a1.365 1.365 0 0 1-1.325-1.11L6.584 1.538A2 2 0 0 0 5.219 1H2a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V5a2 2 0 0 0-1.141-1.8zM2 3h3.219l1.072 1H2zm7.854-.146L11 1.707V8.5a.5.5 0 0 0 1 0V1.707l1.146 1.146a.5.5 0 1 0 .707-.707l-2-2a.5.5 0 0 0-.707 0l-2 2a.5.5 0 0 0 .707.707z"></path></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-pageDown.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-pageDown.svg new file mode 100644 index 00000000..c5d8b0f3 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-pageDown.svg @@ -0,0 +1,7 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 +16"><path transform='rotate(90) translate(0, -16)' +d="M15.707 7.293l-6-6a1 1 0 0 0-1.414 1.414L12.586 7H1a1 1 0 0 0 0 2h11.586l-4.293 +4.293a1 1 0 1 0 1.414 1.414l6-6a1 1 0 0 0 0-1.414z"></path></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-pageUp.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-pageUp.svg new file mode 100644 index 00000000..aa0160ab --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-pageUp.svg @@ -0,0 +1,12 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 +16"> +<path + transform='rotate(90) translate(0, -16)' + d="M15 7H3.414l4.293-4.293a1 1 0 0 +0-1.414-1.414l-6 6a1 1 0 0 0 0 1.414l6 6a1 1 0 0 0 1.414-1.414L3.414 9H15a1 1 0 0 +0 0-2z"> +</path> +</svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-presentationMode.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-presentationMode.svg new file mode 100644 index 00000000..3f1f832e --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-presentationMode.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M.5 1H7s0-1 1-1 1 1 1 1h6.5s.5 0 .5.5-.5.5-.5.5H.5S0 2 0 1.5.5 1 .5 1zM1 3h14v7c0 2-1 2-2 2H3c-1 0-2 0-2-2zm5 1v7l6-3.5zM3.72 15.33l.53-2s0-.5.65-.35c.51.13.38.63.38.63l-.53 2s0 .5-.64.35c-.53-.13-.39-.63-.39-.63zM11.24 15.61l-.53-1.99s0-.5.38-.63c.51-.13.64.35.64.35l.53 2s0 .5-.38.63c-.5.13-.64-.35-.65-.35z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-print.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-print.svg new file mode 100644 index 00000000..d521c9ad --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-print.svg @@ -0,0 +1,4 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M14 5h-1V1a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v4H2a2 2 0 0 0-2 2v5h3v3a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-3h3V7a2 2 0 0 0-2-2zM2.5 8a.5.5 0 1 1 .5-.5.5.5 0 0 1-.5.5zm9.5 7H4v-5h8zm0-10H4V1h8zm-6.5 7h4a.5.5 0 0 0 0-1h-4a.5.5 0 1 0 0 1zm0 2h5a.5.5 0 0 0 0-1h-5a.5.5 0 1 0 0 1z"></path></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-search.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-search.svg new file mode 100644 index 00000000..28b7774e --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-search.svg @@ -0,0 +1,4 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M15.707 14.293l-4.822-4.822a6.019 6.019 0 1 0-1.414 1.414l4.822 4.822a1 1 0 0 0 1.414-1.414zM6 10a4 4 0 1 1 4-4 4 4 0 0 1-4 4z"></path></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-secondaryToolbarToggle.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-secondaryToolbarToggle.svg new file mode 100644 index 00000000..dbef2380 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-secondaryToolbarToggle.svg @@ -0,0 +1,4 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M8.707 7.293l-5-5a1 1 0 0 0-1.414 1.414L6.586 8l-4.293 4.293a1 1 0 1 0 1.414 1.414l5-5a1 1 0 0 0 0-1.414zm6 0l-5-5a1 1 0 0 0-1.414 1.414L12.586 8l-4.293 4.293a1 1 0 1 0 1.414 1.414l5-5a1 1 0 0 0 0-1.414z"></path></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-sidebarToggle.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-sidebarToggle.svg new file mode 100644 index 00000000..691c41cb --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-sidebarToggle.svg @@ -0,0 +1,4 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M3 1h10a3.008 3.008 0 0 1 3 3v8a3.009 3.009 0 0 1-3 3H3a3.005 3.005 0 0 1-3-3V4a3.013 3.013 0 0 1 3-3zm11 11V4a1 1 0 0 0-1-1H8v10h5a1 1 0 0 0 1-1zM2 12a1 1 0 0 0 1 1h4V3H3a1 1 0 0 0-1 1v8z"></path><path d="M3.5 5h2a.5.5 0 0 0 0-1h-2a.5.5 0 0 0 0 1zm0 2h2a.5.5 0 0 0 0-1h-2a.5.5 0 0 0 0 1zm1 2h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1z"></path></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-viewAttachments.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-viewAttachments.svg new file mode 100644 index 00000000..e914ec08 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-viewAttachments.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><path d="M6.2 2s.5-.5 1.06 0c.5.5 0 1 0 1l-4.6 4.61s-2.5 2.5 0 5 5 0 5 0L13.8 6.4s1.6-1.6 0-3.2-3.2 0-3.2 0L5.8 8s-.7.7 0 1.4 1.4 0 1.4 0l3.9-3.9s.6-.5 1 0c.5.5 0 1 0 1l-3.8 4s-1.8 1.8-3.5 0C3 8.7 4.8 7 4.8 7l4.7-4.9s2.7-2.6 5.3 0c2.6 2.6 0 5.3 0 5.3l-6.2 6.3s-3.5 3.5-7 0 0-7 0-7z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-viewLayers.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-viewLayers.svg new file mode 100644 index 00000000..e8687b77 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-viewLayers.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4.233 4.233" height="16" width="16"><path d="M.15 2.992c-.198.1-.2.266-.002.365l1.604.802a.93.93 0 00.729-.001l1.602-.801c.198-.1.197-.264 0-.364l-.695-.348c-1.306.595-2.542 0-2.542 0m-.264.53l.658-.329c.6.252 1.238.244 1.754 0l.659.329-1.536.768zM.15 1.935c-.198.1-.198.265 0 .364l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363l-.694-.35c-1.14.56-2.546.001-2.546.001m-.264.53l.664-.332c.52.266 1.261.235 1.75.002l.659.33-1.537.768zM.15.877c-.198.099-.198.264 0 .363l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363L2.481.075a.926.926 0 00-.727 0zm.43.182L2.117.29l1.538.769-1.538.768z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-viewOutline.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-viewOutline.svg new file mode 100644 index 00000000..030c28df --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-viewOutline.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><path d="M14 9H8c-1.3 0-1.3 2 0 2h6c1.3 0 1.3-2 0-2zm0-8H5C3.7 1 3.7 3 5 3h9c1.3 0 1.3-2 0-2zM2 1C1 1 .7 2 1.3 2.7 2 3.3 3 3 3 2c0-.5-.4-1-1-1zm3 8c-1 0-1.3 1-.7 1.7.6.6 1.7.2 1.7-.7 0-.5-.4-1-1-1zM14 5H5C3.6 5 3.6 7 5 7h9c1.3 0 1.3-2 0-2zM2 5c-.9 0-1.4 1-.7 1.7C2 7.3 3 6.9 3 6c0-.6-.5-1-1-1zM14 13H5c-1.3 0-1.3 2 0 2h9c1.3 0 1.3-2 0-2zM2 13c-1 0-1.3 1-.7 1.7.7.6 1.7.2 1.7-.712 0-.5-.4-1-1-1z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-viewThumbnail.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-viewThumbnail.svg new file mode 100644 index 00000000..b997ec49 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-viewThumbnail.svg @@ -0,0 +1,4 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g style="--darkreader-inline-fill:rgba(81, 82, 83, 0.8);" data-darkreader-inline-fill=""><rect x="1" y="1" width="6" height="6" rx="1" ry="1"></rect><rect x="9" y="1" width="6" height="6" rx="1" ry="1"></rect><rect x="1" y="9" width="6" height="6" rx="1" ry="1"></rect><rect x="9" y="9" width="6" height="6" rx="1" ry="1"></rect></g></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-zoomIn.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-zoomIn.svg new file mode 100644 index 00000000..480d2cef --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-zoomIn.svg @@ -0,0 +1,4 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M14 7H9V2a1 1 0 0 0-2 0v5H2a1 1 0 0 0 0 2h5v5a1 1 0 0 0 2 0V9h5a1 1 0 0 0 0-2z"></path></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-zoomOut.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-zoomOut.svg new file mode 100644 index 00000000..527f5210 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/toolbarButton-zoomOut.svg @@ -0,0 +1,4 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><rect x="2" y="7" width="12" height="2" rx="1"></rect></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/treeitem-collapsed.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/treeitem-collapsed.svg new file mode 100644 index 00000000..831cddfc --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/treeitem-collapsed.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M13 9L6 5v8z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/treeitem-expanded.svg b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/treeitem-expanded.svg new file mode 100644 index 00000000..2d45f0c8 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/images/treeitem-expanded.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M10 13l4-7H6z"/></svg> \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/en-CA/viewer.properties b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/en-CA/viewer.properties new file mode 100644 index 00000000..786ad3a4 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/en-CA/viewer.properties @@ -0,0 +1,269 @@ +# Copyright 2012 Mozilla Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Main toolbar buttons (tooltips and alt text for images) +previous.title=Previous Page +previous_label=Previous +next.title=Next Page +next_label=Next + +# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input. +page.title=Page +# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number +# representing the total number of pages in the document. +of_pages=of {{pagesCount}} +# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}" +# will be replaced by a number representing the currently visible page, +# respectively a number representing the total number of pages in the document. +page_of_pages=({{pageNumber}} of {{pagesCount}}) + +zoom_out.title=Zoom Out +zoom_out_label=Zoom Out +zoom_in.title=Zoom In +zoom_in_label=Zoom In +zoom.title=Zoom +presentation_mode.title=Switch to Presentation Mode +presentation_mode_label=Presentation Mode +open_file.title=Open File +open_file_label=Open +print.title=Print +print_label=Print +download.title=Download +download_label=Download +bookmark.title=Current view (copy or open in new window) +bookmark_label=Current View + +# Secondary toolbar and context menu +tools.title=Tools +tools_label=Tools +first_page.title=Go to First Page +first_page_label=Go to First Page +last_page.title=Go to Last Page +last_page_label=Go to Last Page +page_rotate_cw.title=Rotate Clockwise +page_rotate_cw_label=Rotate Clockwise +page_rotate_ccw.title=Rotate Counterclockwise +page_rotate_ccw_label=Rotate Counterclockwise + +cursor_text_select_tool.title=Enable Text Selection Tool +cursor_text_select_tool_label=Text Selection Tool +cursor_hand_tool.title=Enable Hand Tool +cursor_hand_tool_label=Hand Tool + +scroll_page.title=Use Page Scrolling +scroll_page_label=Page Scrolling +scroll_vertical.title=Use Vertical Scrolling +scroll_vertical_label=Vertical Scrolling +scroll_horizontal.title=Use Horizontal Scrolling +scroll_horizontal_label=Horizontal Scrolling +scroll_wrapped.title=Use Wrapped Scrolling +scroll_wrapped_label=Wrapped Scrolling + +spread_none.title=Do not join page spreads +spread_none_label=No Spreads +spread_odd.title=Join page spreads starting with odd-numbered pages +spread_odd_label=Odd Spreads +spread_even.title=Join page spreads starting with even-numbered pages +spread_even_label=Even Spreads + +# Document properties dialog box +document_properties.title=Document Properties… +document_properties_label=Document Properties… +document_properties_file_name=File name: +document_properties_file_size=File size: +# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}" +# will be replaced by the PDF file size in kilobytes, respectively in bytes. +document_properties_kb={{size_kb}} kB ({{size_b}} bytes) +# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}" +# will be replaced by the PDF file size in megabytes, respectively in bytes. +document_properties_mb={{size_mb}} MB ({{size_b}} bytes) +document_properties_title=Title: +document_properties_author=Author: +document_properties_subject=Subject: +document_properties_keywords=Keywords: +document_properties_creation_date=Creation Date: +document_properties_modification_date=Modification Date: +# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}" +# will be replaced by the creation/modification date, and time, of the PDF file. +document_properties_date_string={{date}}, {{time}} +document_properties_creator=Creator: +document_properties_producer=PDF Producer: +document_properties_version=PDF Version: +document_properties_page_count=Page Count: +document_properties_page_size=Page Size: +document_properties_page_size_unit_inches=in +document_properties_page_size_unit_millimeters=mm +document_properties_page_size_orientation_portrait=portrait +document_properties_page_size_orientation_landscape=landscape +document_properties_page_size_name_a3=A3 +document_properties_page_size_name_a4=A4 +document_properties_page_size_name_letter=Letter +document_properties_page_size_name_legal=Legal +# LOCALIZATION NOTE (document_properties_page_size_dimension_string): +# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement and orientation, of the (current) page. +document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}} ({{orientation}}) +# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string): +# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement, name, and orientation, of the (current) page. +document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}}) +# LOCALIZATION NOTE (document_properties_linearized): The linearization status of +# the document; usually called "Fast Web View" in English locales of Adobe software. +document_properties_linearized=Fast Web View: +document_properties_linearized_yes=Yes +document_properties_linearized_no=No +document_properties_close=Close + +print_progress_message=Preparing document for printing… +# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by +# a numerical per cent value. +print_progress_percent={{progress}}% +print_progress_close=Cancel + +# Tooltips and alt text for side panel toolbar buttons +# (the _label strings are alt text for the buttons, the .title strings are +# tooltips) +toggle_sidebar.title=Toggle Sidebar +toggle_sidebar_notification2.title=Toggle Sidebar (document contains outline/attachments/layers) +toggle_sidebar_label=Toggle Sidebar +document_outline.title=Show Document Outline (double-click to expand/collapse all items) +document_outline_label=Document Outline +attachments.title=Show Attachments +attachments_label=Attachments +layers.title=Show Layers (double-click to reset all layers to the default state) +layers_label=Layers +thumbs.title=Show Thumbnails +thumbs_label=Thumbnails +current_outline_item.title=Find Current Outline Item +current_outline_item_label=Current Outline Item +findbar.title=Find in Document +findbar_label=Find + +additional_layers=Additional Layers +# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number. +page_landmark=Page {{page}} +# Thumbnails panel item (tooltip and alt text for images) +# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page +# number. +thumb_page_title=Page {{page}} +# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page +# number. +thumb_page_canvas=Thumbnail of Page {{page}} + +# Find panel button title and messages +find_input.title=Find +find_input.placeholder=Find in document… +find_previous.title=Find the previous occurrence of the phrase +find_previous_label=Previous +find_next.title=Find the next occurrence of the phrase +find_next_label=Next +find_highlight=Highlight All +find_match_case_label=Match Case +find_match_diacritics_label=Match Diacritics +find_entire_word_label=Whole Words +find_reached_top=Reached top of document, continued from bottom +find_reached_bottom=Reached end of document, continued from top +# LOCALIZATION NOTE (find_match_count): The supported plural forms are +# [one|two|few|many|other], with [other] as the default value. +# "{{current}}" and "{{total}}" will be replaced by a number representing the +# index of the currently active find result, respectively a number representing +# the total number of matches in the document. +find_match_count={[ plural(total) ]} +find_match_count[one]={{current}} of {{total}} match +find_match_count[two]={{current}} of {{total}} matches +find_match_count[few]={{current}} of {{total}} matches +find_match_count[many]={{current}} of {{total}} matches +find_match_count[other]={{current}} of {{total}} matches +# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are +# [zero|one|two|few|many|other], with [other] as the default value. +# "{{limit}}" will be replaced by a numerical value. +find_match_count_limit={[ plural(limit) ]} +find_match_count_limit[zero]=More than {{limit}} matches +find_match_count_limit[one]=More than {{limit}} match +find_match_count_limit[two]=More than {{limit}} matches +find_match_count_limit[few]=More than {{limit}} matches +find_match_count_limit[many]=More than {{limit}} matches +find_match_count_limit[other]=More than {{limit}} matches +find_not_found=Phrase not found + +# Error panel labels +error_more_info=More Information +error_less_info=Less Information +error_close=Close +# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be +# replaced by the PDF.JS version and build ID. +error_version_info=PDF.js v{{version}} (build: {{build}}) +# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an +# english string describing the error. +error_message=Message: {{message}} +# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack +# trace. +error_stack=Stack: {{stack}} +# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename +error_file=File: {{file}} +# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number +error_line=Line: {{line}} +rendering_error=An error occurred while rendering the page. + +# Predefined zoom values +page_scale_width=Page Width +page_scale_fit=Page Fit +page_scale_auto=Automatic Zoom +page_scale_actual=Actual Size +# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a +# numerical scale value. +page_scale_percent={{scale}}% + +# Loading indicator messages +loading=Loading… +loading_error=An error occurred while loading the PDF. +invalid_file_error=Invalid or corrupted PDF file. +missing_file_error=Missing PDF file. +unexpected_response_error=Unexpected server response. + +# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be +# replaced by the modification date, and time, of the annotation. +annotation_date_string={{date}}, {{time}} + +# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip. +# "{{type}}" will be replaced with an annotation type from a list defined in +# the PDF spec (32000-1:2008 Table 169 – Annotation types). +# Some common types are e.g.: "Check", "Text", "Comment", "Note" +text_annotation_type.alt=[{{type}} Annotation] +password_label=Enter the password to open this PDF file. +password_invalid=Invalid password. Please try again. +password_ok=OK +password_cancel=Cancel + +printing_not_supported=Warning: Printing is not fully supported by this browser. +printing_not_ready=Warning: The PDF is not fully loaded for printing. +web_fonts_disabled=Web fonts are disabled: unable to use embedded PDF fonts. + +# Editor +editor_none.title=Disable Annotation Editing +editor_none_label=Disable Editing +editor_free_text.title=Add FreeText Annotation +editor_free_text_label=FreeText Annotation +editor_ink.title=Add Ink Annotation +editor_ink_label=Ink Annotation + +freetext_default_content=Enter some text… + +free_text_default_content=Enter text… + +# Editor Parameters +editor_free_text_font_color=Font Colour +editor_free_text_font_size=Font Size +editor_ink_line_color=Line Colour +editor_ink_line_thickness=Line Thickness diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/en-GB/viewer.properties b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/en-GB/viewer.properties new file mode 100644 index 00000000..c8cdaeee --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/en-GB/viewer.properties @@ -0,0 +1,281 @@ +# Copyright 2012 Mozilla Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Main toolbar buttons (tooltips and alt text for images) +previous.title=Previous Page +previous_label=Previous +next.title=Next Page +next_label=Next + +# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input. +page.title=Page +# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number +# representing the total number of pages in the document. +of_pages=of {{pagesCount}} +# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}" +# will be replaced by a number representing the currently visible page, +# respectively a number representing the total number of pages in the document. +page_of_pages=({{pageNumber}} of {{pagesCount}}) + +zoom_out.title=Zoom Out +zoom_out_label=Zoom Out +zoom_in.title=Zoom In +zoom_in_label=Zoom In +zoom.title=Zoom +presentation_mode.title=Switch to Presentation Mode +presentation_mode_label=Presentation Mode +open_file.title=Open File +open_file_label=Open +print.title=Print +print_label=Print +download.title=Download +download_label=Download +bookmark.title=Current view (copy or open in new window) +bookmark_label=Current View + +# Secondary toolbar and context menu +tools.title=Tools +tools_label=Tools +first_page.title=Go to First Page +first_page_label=Go to First Page +last_page.title=Go to Last Page +last_page_label=Go to Last Page +page_rotate_cw.title=Rotate Clockwise +page_rotate_cw_label=Rotate Clockwise +page_rotate_ccw.title=Rotate Anti-Clockwise +page_rotate_ccw_label=Rotate Anti-Clockwise + +cursor_text_select_tool.title=Enable Text Selection Tool +cursor_text_select_tool_label=Text Selection Tool +cursor_hand_tool.title=Enable Hand Tool +cursor_hand_tool_label=Hand Tool + +scroll_page.title=Use Page Scrolling +scroll_page_label=Page Scrolling +scroll_vertical.title=Use Vertical Scrolling +scroll_vertical_label=Vertical Scrolling +scroll_horizontal.title=Use Horizontal Scrolling +scroll_horizontal_label=Horizontal Scrolling +scroll_wrapped.title=Use Wrapped Scrolling +scroll_wrapped_label=Wrapped Scrolling + +spread_none.title=Do not join page spreads +spread_none_label=No Spreads +spread_odd.title=Join page spreads starting with odd-numbered pages +spread_odd_label=Odd Spreads +spread_even.title=Join page spreads starting with even-numbered pages +spread_even_label=Even Spreads + +# Document properties dialog box +document_properties.title=Document Properties… +document_properties_label=Document Properties… +document_properties_file_name=File name: +document_properties_file_size=File size: +# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}" +# will be replaced by the PDF file size in kilobytes, respectively in bytes. +document_properties_kb={{size_kb}} kB ({{size_b}} bytes) +# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}" +# will be replaced by the PDF file size in megabytes, respectively in bytes. +document_properties_mb={{size_mb}} MB ({{size_b}} bytes) +document_properties_title=Title: +document_properties_author=Author: +document_properties_subject=Subject: +document_properties_keywords=Keywords: +document_properties_creation_date=Creation Date: +document_properties_modification_date=Modification Date: +# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}" +# will be replaced by the creation/modification date, and time, of the PDF file. +document_properties_date_string={{date}}, {{time}} +document_properties_creator=Creator: +document_properties_producer=PDF Producer: +document_properties_version=PDF Version: +document_properties_page_count=Page Count: +document_properties_page_size=Page Size: +document_properties_page_size_unit_inches=in +document_properties_page_size_unit_millimeters=mm +document_properties_page_size_orientation_portrait=portrait +document_properties_page_size_orientation_landscape=landscape +document_properties_page_size_name_a3=A3 +document_properties_page_size_name_a4=A4 +document_properties_page_size_name_letter=Letter +document_properties_page_size_name_legal=Legal +# LOCALIZATION NOTE (document_properties_page_size_dimension_string): +# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement and orientation, of the (current) page. +document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}} ({{orientation}}) +# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string): +# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement, name, and orientation, of the (current) page. +document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}}) +# LOCALIZATION NOTE (document_properties_linearized): The linearization status of +# the document; usually called "Fast Web View" in English locales of Adobe software. +document_properties_linearized=Fast Web View: +document_properties_linearized_yes=Yes +document_properties_linearized_no=No +document_properties_close=Close + +print_progress_message=Preparing document for printing… +# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by +# a numerical per cent value. +print_progress_percent={{progress}}% +print_progress_close=Cancel + +# Tooltips and alt text for side panel toolbar buttons +# (the _label strings are alt text for the buttons, the .title strings are +# tooltips) +toggle_sidebar.title=Toggle Sidebar +toggle_sidebar_notification2.title=Toggle Sidebar (document contains outline/attachments/layers) +toggle_sidebar_label=Toggle Sidebar +document_outline.title=Show Document Outline (double-click to expand/collapse all items) +document_outline_label=Document Outline +attachments.title=Show Attachments +attachments_label=Attachments +layers.title=Show Layers (double-click to reset all layers to the default state) +layers_label=Layers +thumbs.title=Show Thumbnails +thumbs_label=Thumbnails +current_outline_item.title=Find Current Outline Item +current_outline_item_label=Current Outline Item +findbar.title=Find in Document +findbar_label=Find + +additional_layers=Additional Layers +# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number. +page_landmark=Page {{page}} +# Thumbnails panel item (tooltip and alt text for images) +# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page +# number. +thumb_page_title=Page {{page}} +# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page +# number. +thumb_page_canvas=Thumbnail of Page {{page}} + +# Find panel button title and messages +find_input.title=Find +find_input.placeholder=Find in document… +find_previous.title=Find the previous occurrence of the phrase +find_previous_label=Previous +find_next.title=Find the next occurrence of the phrase +find_next_label=Next +find_highlight=Highlight All +find_match_case_label=Match Case +find_match_diacritics_label=Match Diacritics +find_entire_word_label=Whole Words +find_reached_top=Reached top of document, continued from bottom +find_reached_bottom=Reached end of document, continued from top +# LOCALIZATION NOTE (find_match_count): The supported plural forms are +# [one|two|few|many|other], with [other] as the default value. +# "{{current}}" and "{{total}}" will be replaced by a number representing the +# index of the currently active find result, respectively a number representing +# the total number of matches in the document. +find_match_count={[ plural(total) ]} +find_match_count[one]={{current}} of {{total}} match +find_match_count[two]={{current}} of {{total}} matches +find_match_count[few]={{current}} of {{total}} matches +find_match_count[many]={{current}} of {{total}} matches +find_match_count[other]={{current}} of {{total}} matches +# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are +# [zero|one|two|few|many|other], with [other] as the default value. +# "{{limit}}" will be replaced by a numerical value. +find_match_count_limit={[ plural(limit) ]} +find_match_count_limit[zero]=More than {{limit}} matches +find_match_count_limit[one]=More than {{limit}} match +find_match_count_limit[two]=More than {{limit}} matches +find_match_count_limit[few]=More than {{limit}} matches +find_match_count_limit[many]=More than {{limit}} matches +find_match_count_limit[other]=More than {{limit}} matches +find_not_found=Phrase not found + +# Error panel labels +error_more_info=More Information +error_less_info=Less Information +error_close=Close +# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be +# replaced by the PDF.JS version and build ID. +error_version_info=PDF.js v{{version}} (build: {{build}}) +# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an +# english string describing the error. +error_message=Message: {{message}} +# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack +# trace. +error_stack=Stack: {{stack}} +# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename +error_file=File: {{file}} +# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number +error_line=Line: {{line}} +rendering_error=An error occurred while rendering the page. + +# Predefined zoom values +page_scale_width=Page Width +page_scale_fit=Page Fit +page_scale_auto=Automatic Zoom +page_scale_actual=Actual Size +# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a +# numerical scale value. +page_scale_percent={{scale}}% + +# Loading indicator messages +loading=Loading… +loading_error=An error occurred while loading the PDF. +invalid_file_error=Invalid or corrupted PDF file. +missing_file_error=Missing PDF file. +unexpected_response_error=Unexpected server response. + +# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be +# replaced by the modification date, and time, of the annotation. +annotation_date_string={{date}}, {{time}} + +# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip. +# "{{type}}" will be replaced with an annotation type from a list defined in +# the PDF spec (32000-1:2008 Table 169 – Annotation types). +# Some common types are e.g.: "Check", "Text", "Comment", "Note" +text_annotation_type.alt=[{{type}} Annotation] +password_label=Enter the password to open this PDF file. +password_invalid=Invalid password. Please try again. +password_ok=OK +password_cancel=Cancel + +printing_not_supported=Warning: Printing is not fully supported by this browser. +printing_not_ready=Warning: The PDF is not fully loaded for printing. +web_fonts_disabled=Web fonts are disabled: unable to use embedded PDF fonts. + +# Editor +editor_none.title=Disable Annotation Editing +editor_none_label=Disable Editing +editor_free_text.title=Add FreeText Annotation +editor_free_text_label=FreeText Annotation +editor_ink.title=Add Ink Annotation +editor_ink_label=Ink Annotation + +freetext_default_content=Enter some text… + +free_text_default_content=Enter text… + +# Editor Parameters +editor_free_text_font_color=Font Colour +editor_free_text_font_size=Font Size +editor_ink_line_color=Line Colour +editor_ink_line_thickness=Line Thickness + +# Editor Parameters +editor_free_text_color=Colour +editor_free_text_size=Size +editor_ink_color=Colour +editor_ink_thickness=Thickness +editor_ink_opacity=Opacity + +# Editor aria +editor_free_text_aria_label=FreeText Editor +editor_ink_aria_label=Ink Editor +editor_ink_canvas_aria_label=User-created image diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/en-US/viewer.properties b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/en-US/viewer.properties new file mode 100644 index 00000000..4a95b937 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/en-US/viewer.properties @@ -0,0 +1,271 @@ +# Copyright 2012 Mozilla Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Main toolbar buttons (tooltips and alt text for images) +previous.title=Previous Page +previous_label=Previous +next.title=Next Page +next_label=Next + +# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input. +page.title=Page +# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number +# representing the total number of pages in the document. +of_pages=of {{pagesCount}} +# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}" +# will be replaced by a number representing the currently visible page, +# respectively a number representing the total number of pages in the document. +page_of_pages=({{pageNumber}} of {{pagesCount}}) + +zoom_out.title=Zoom Out +zoom_out_label=Zoom Out +zoom_in.title=Zoom In +zoom_in_label=Zoom In +zoom.title=Zoom +presentation_mode.title=Switch to Presentation Mode +presentation_mode_label=Presentation Mode +open_file.title=Open File +open_file_label=Open +print.title=Print +print_label=Print +download.title=Download +download_label=Download +bookmark.title=Current view (copy or open in new window) +bookmark_label=Current View + +# Secondary toolbar and context menu +tools.title=Tools +tools_label=Tools +first_page.title=Go to First Page +first_page_label=Go to First Page +last_page.title=Go to Last Page +last_page_label=Go to Last Page +page_rotate_cw.title=Rotate Clockwise +page_rotate_cw_label=Rotate Clockwise +page_rotate_ccw.title=Rotate Counterclockwise +page_rotate_ccw_label=Rotate Counterclockwise + +cursor_text_select_tool.title=Enable Text Selection Tool +cursor_text_select_tool_label=Text Selection Tool +cursor_hand_tool.title=Enable Hand Tool +cursor_hand_tool_label=Hand Tool + +scroll_page.title=Use Page Scrolling +scroll_page_label=Page Scrolling +scroll_vertical.title=Use Vertical Scrolling +scroll_vertical_label=Vertical Scrolling +scroll_horizontal.title=Use Horizontal Scrolling +scroll_horizontal_label=Horizontal Scrolling +scroll_wrapped.title=Use Wrapped Scrolling +scroll_wrapped_label=Wrapped Scrolling + +spread_none.title=Do not join page spreads +spread_none_label=No Spreads +spread_odd.title=Join page spreads starting with odd-numbered pages +spread_odd_label=Odd Spreads +spread_even.title=Join page spreads starting with even-numbered pages +spread_even_label=Even Spreads + +# Document properties dialog box +document_properties.title=Document Properties… +document_properties_label=Document Properties… +document_properties_file_name=File name: +document_properties_file_size=File size: +# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}" +# will be replaced by the PDF file size in kilobytes, respectively in bytes. +document_properties_kb={{size_kb}} KB ({{size_b}} bytes) +# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}" +# will be replaced by the PDF file size in megabytes, respectively in bytes. +document_properties_mb={{size_mb}} MB ({{size_b}} bytes) +document_properties_title=Title: +document_properties_author=Author: +document_properties_subject=Subject: +document_properties_keywords=Keywords: +document_properties_creation_date=Creation Date: +document_properties_modification_date=Modification Date: +# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}" +# will be replaced by the creation/modification date, and time, of the PDF file. +document_properties_date_string={{date}}, {{time}} +document_properties_creator=Creator: +document_properties_producer=PDF Producer: +document_properties_version=PDF Version: +document_properties_page_count=Page Count: +document_properties_page_size=Page Size: +document_properties_page_size_unit_inches=in +document_properties_page_size_unit_millimeters=mm +document_properties_page_size_orientation_portrait=portrait +document_properties_page_size_orientation_landscape=landscape +document_properties_page_size_name_a3=A3 +document_properties_page_size_name_a4=A4 +document_properties_page_size_name_letter=Letter +document_properties_page_size_name_legal=Legal +# LOCALIZATION NOTE (document_properties_page_size_dimension_string): +# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement and orientation, of the (current) page. +document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}} ({{orientation}}) +# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string): +# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement, name, and orientation, of the (current) page. +document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}}) +# LOCALIZATION NOTE (document_properties_linearized): The linearization status of +# the document; usually called "Fast Web View" in English locales of Adobe software. +document_properties_linearized=Fast Web View: +document_properties_linearized_yes=Yes +document_properties_linearized_no=No +document_properties_close=Close + +print_progress_message=Preparing document for printing… +# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by +# a numerical per cent value. +print_progress_percent={{progress}}% +print_progress_close=Cancel + +# Tooltips and alt text for side panel toolbar buttons +# (the _label strings are alt text for the buttons, the .title strings are +# tooltips) +toggle_sidebar.title=Toggle Sidebar +toggle_sidebar_notification2.title=Toggle Sidebar (document contains outline/attachments/layers) +toggle_sidebar_label=Toggle Sidebar +document_outline.title=Show Document Outline (double-click to expand/collapse all items) +document_outline_label=Document Outline +attachments.title=Show Attachments +attachments_label=Attachments +layers.title=Show Layers (double-click to reset all layers to the default state) +layers_label=Layers +thumbs.title=Show Thumbnails +thumbs_label=Thumbnails +current_outline_item.title=Find Current Outline Item +current_outline_item_label=Current Outline Item +findbar.title=Find in Document +findbar_label=Find + +additional_layers=Additional Layers +# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number. +page_landmark=Page {{page}} +# Thumbnails panel item (tooltip and alt text for images) +# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page +# number. +thumb_page_title=Page {{page}} +# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page +# number. +thumb_page_canvas=Thumbnail of Page {{page}} + +# Find panel button title and messages +find_input.title=Find +find_input.placeholder=Find in document… +find_previous.title=Find the previous occurrence of the phrase +find_previous_label=Previous +find_next.title=Find the next occurrence of the phrase +find_next_label=Next +find_highlight=Highlight All +find_match_case_label=Match Case +find_match_diacritics_label=Match Diacritics +find_entire_word_label=Whole Words +find_reached_top=Reached top of document, continued from bottom +find_reached_bottom=Reached end of document, continued from top +# LOCALIZATION NOTE (find_match_count): The supported plural forms are +# [one|two|few|many|other], with [other] as the default value. +# "{{current}}" and "{{total}}" will be replaced by a number representing the +# index of the currently active find result, respectively a number representing +# the total number of matches in the document. +find_match_count={[ plural(total) ]} +find_match_count[one]={{current}} of {{total}} match +find_match_count[two]={{current}} of {{total}} matches +find_match_count[few]={{current}} of {{total}} matches +find_match_count[many]={{current}} of {{total}} matches +find_match_count[other]={{current}} of {{total}} matches +# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are +# [zero|one|two|few|many|other], with [other] as the default value. +# "{{limit}}" will be replaced by a numerical value. +find_match_count_limit={[ plural(limit) ]} +find_match_count_limit[zero]=More than {{limit}} matches +find_match_count_limit[one]=More than {{limit}} match +find_match_count_limit[two]=More than {{limit}} matches +find_match_count_limit[few]=More than {{limit}} matches +find_match_count_limit[many]=More than {{limit}} matches +find_match_count_limit[other]=More than {{limit}} matches +find_not_found=Phrase not found + +# Error panel labels +error_more_info=More Information +error_less_info=Less Information +error_close=Close +# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be +# replaced by the PDF.JS version and build ID. +error_version_info=PDF.js v{{version}} (build: {{build}}) +# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an +# english string describing the error. +error_message=Message: {{message}} +# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack +# trace. +error_stack=Stack: {{stack}} +# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename +error_file=File: {{file}} +# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number +error_line=Line: {{line}} +rendering_error=An error occurred while rendering the page. + +# Predefined zoom values +page_scale_width=Page Width +page_scale_fit=Page Fit +page_scale_auto=Automatic Zoom +page_scale_actual=Actual Size +# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a +# numerical scale value. +page_scale_percent={{scale}}% + +# Loading indicator messages +loading=Loading… +loading_error=An error occurred while loading the PDF. +invalid_file_error=Invalid or corrupted PDF file. +missing_file_error=Missing PDF file. +unexpected_response_error=Unexpected server response. + +# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be +# replaced by the modification date, and time, of the annotation. +annotation_date_string={{date}}, {{time}} + +# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip. +# "{{type}}" will be replaced with an annotation type from a list defined in +# the PDF spec (32000-1:2008 Table 169 – Annotation types). +# Some common types are e.g.: "Check", "Text", "Comment", "Note" +text_annotation_type.alt=[{{type}} Annotation] +password_label=Enter the password to open this PDF file. +password_invalid=Invalid password. Please try again. +password_ok=OK +password_cancel=Cancel + +printing_not_supported=Warning: Printing is not fully supported by this browser. +printing_not_ready=Warning: The PDF is not fully loaded for printing. +web_fonts_disabled=Web fonts are disabled: unable to use embedded PDF fonts. + +# Editor +editor_free_text.title=Add FreeText Annotation +editor_free_text_label=FreeText Annotation +editor_ink.title=Add Ink Annotation +editor_ink_label=Ink Annotation + +free_text_default_content=Enter text… + +# Editor Parameters +editor_free_text_color=Color +editor_free_text_size=Size +editor_ink_color=Color +editor_ink_thickness=Thickness +editor_ink_opacity=Opacity + +# Editor aria +editor_free_text_aria_label=FreeText Editor +editor_ink_aria_label=Ink Editor +editor_ink_canvas_aria_label=User-created image diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/ja/viewer.properties b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/ja/viewer.properties new file mode 100644 index 00000000..88a9de2a --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/ja/viewer.properties @@ -0,0 +1,281 @@ +# Copyright 2012 Mozilla Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Main toolbar buttons (tooltips and alt text for images) +previous.title=前のページへ戻ります +previous_label=前へ +next.title=次のページへ進みます +next_label=次へ + +# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input. +page.title=ページ +# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number +# representing the total number of pages in the document. +of_pages=/ {{pagesCount}} +# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}" +# will be replaced by a number representing the currently visible page, +# respectively a number representing the total number of pages in the document. +page_of_pages=({{pageNumber}} / {{pagesCount}}) + +zoom_out.title=表示を縮小します +zoom_out_label=縮小 +zoom_in.title=表示を拡大します +zoom_in_label=拡大 +zoom.title=拡大/縮小 +presentation_mode.title=プレゼンテーションモードに切り替えます +presentation_mode_label=プレゼンテーションモード +open_file.title=ファイルを開きます +open_file_label=開く +print.title=印刷します +print_label=印刷 +download.title=ダウンロードします +download_label=ダウンロード +bookmark.title=現在のビューの URL です (コピーまたは新しいウィンドウに開く) +bookmark_label=現在のビュー + +# Secondary toolbar and context menu +tools.title=ツール +tools_label=ツール +first_page.title=最初のページへ移動します +first_page_label=最初のページへ移動 +last_page.title=最後のページへ移動します +last_page_label=最後のページへ移動 +page_rotate_cw.title=ページを右へ回転します +page_rotate_cw_label=右回転 +page_rotate_ccw.title=ページを左へ回転します +page_rotate_ccw_label=左回転 + +cursor_text_select_tool.title=テキスト選択ツールを有効にします +cursor_text_select_tool_label=テキスト選択ツール +cursor_hand_tool.title=手のひらツールを有効にします +cursor_hand_tool_label=手のひらツール + +scroll_page.title=ページ単位でスクロールします +scroll_page_label=ページ単位でスクロール +scroll_vertical.title=縦スクロールにします +scroll_vertical_label=縦スクロール +scroll_horizontal.title=横スクロールにします +scroll_horizontal_label=横スクロール +scroll_wrapped.title=折り返しスクロールにします +scroll_wrapped_label=折り返しスクロール + +spread_none.title=見開きにしません +spread_none_label=見開きにしない +spread_odd.title=奇数ページ開始で見開きにします +spread_odd_label=奇数ページ見開き +spread_even.title=偶数ページ開始で見開きにします +spread_even_label=偶数ページ見開き + +# Document properties dialog box +document_properties.title=文書のプロパティ... +document_properties_label=文書のプロパティ... +document_properties_file_name=ファイル名: +document_properties_file_size=ファイルサイズ: +# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}" +# will be replaced by the PDF file size in kilobytes, respectively in bytes. +document_properties_kb={{size_kb}} KB ({{size_b}} バイト) +# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}" +# will be replaced by the PDF file size in megabytes, respectively in bytes. +document_properties_mb={{size_mb}} MB ({{size_b}} バイト) +document_properties_title=タイトル: +document_properties_author=作成者: +document_properties_subject=件名: +document_properties_keywords=キーワード: +document_properties_creation_date=作成日: +document_properties_modification_date=更新日: +# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}" +# will be replaced by the creation/modification date, and time, of the PDF file. +document_properties_date_string={{date}}, {{time}} +document_properties_creator=アプリケーション: +document_properties_producer=PDF 作成: +document_properties_version=PDF のバージョン: +document_properties_page_count=ページ数: +document_properties_page_size=ページサイズ: +document_properties_page_size_unit_inches=in +document_properties_page_size_unit_millimeters=mm +document_properties_page_size_orientation_portrait=縦 +document_properties_page_size_orientation_landscape=横 +document_properties_page_size_name_a3=A3 +document_properties_page_size_name_a4=A4 +document_properties_page_size_name_letter=レター +document_properties_page_size_name_legal=リーガル +# LOCALIZATION NOTE (document_properties_page_size_dimension_string): +# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement and orientation, of the (current) page. +document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}} ({{orientation}}) +# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string): +# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement, name, and orientation, of the (current) page. +document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}}) +# LOCALIZATION NOTE (document_properties_linearized): The linearization status of +# the document; usually called "Fast Web View" in English locales of Adobe software. +document_properties_linearized=ウェブ表示用に最適化: +document_properties_linearized_yes=はい +document_properties_linearized_no=いいえ +document_properties_close=閉じる + +print_progress_message=文書の印刷を準備しています... +# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by +# a numerical per cent value. +print_progress_percent={{progress}}% +print_progress_close=キャンセル + +# Tooltips and alt text for side panel toolbar buttons +# (the _label strings are alt text for the buttons, the .title strings are +# tooltips) +toggle_sidebar.title=サイドバー表示を切り替えます +toggle_sidebar_notification2.title=サイドバー表示を切り替えます (文書に含まれるアウトライン / 添付 / レイヤー) +toggle_sidebar_label=サイドバーの切り替え +document_outline.title=文書の目次を表示します (ダブルクリックで項目を開閉します) +document_outline_label=文書の目次 +attachments.title=添付ファイルを表示します +attachments_label=添付ファイル +layers.title=レイヤーを表示します (ダブルクリックですべてのレイヤーが初期状態に戻ります) +layers_label=レイヤー +thumbs.title=縮小版を表示します +thumbs_label=縮小版 +current_outline_item.title=現在のアウトライン項目を検索 +current_outline_item_label=現在のアウトライン項目 +findbar.title=文書内を検索します +findbar_label=検索 + +additional_layers=追加レイヤー +# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number. +page_landmark={{page}} ページ +# Thumbnails panel item (tooltip and alt text for images) +# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page +# number. +thumb_page_title={{page}} ページ +# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page +# number. +thumb_page_canvas={{page}} ページの縮小版 + +# Find panel button title and messages +find_input.title=検索 +find_input.placeholder=文書内を検索... +find_previous.title=現在より前の位置で指定文字列が現れる部分を検索します +find_previous_label=前へ +find_next.title=現在より後の位置で指定文字列が現れる部分を検索します +find_next_label=次へ +find_highlight=すべて強調表示 +find_match_case_label=大文字/小文字を区別 +find_match_diacritics_label=発音区別符号を区別 +find_entire_word_label=単語一致 +find_reached_top=文書先頭に到達したので末尾から続けて検索します +find_reached_bottom=文書末尾に到達したので先頭から続けて検索します +# LOCALIZATION NOTE (find_match_count): The supported plural forms are +# [one|two|few|many|other], with [other] as the default value. +# "{{current}}" and "{{total}}" will be replaced by a number representing the +# index of the currently active find result, respectively a number representing +# the total number of matches in the document. +find_match_count={[ plural(total) ]} +find_match_count[one]={{total}} 件中 {{current}} 件目 +find_match_count[two]={{total}} 件中 {{current}} 件目 +find_match_count[few]={{total}} 件中 {{current}} 件目 +find_match_count[many]={{total}} 件中 {{current}} 件目 +find_match_count[other]={{total}} 件中 {{current}} 件目 +# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are +# [zero|one|two|few|many|other], with [other] as the default value. +# "{{limit}}" will be replaced by a numerical value. +find_match_count_limit={[ plural(limit) ]} +find_match_count_limit[zero]={{limit}} 件以上一致 +find_match_count_limit[one]={{limit}} 件以上一致 +find_match_count_limit[two]={{limit}} 件以上一致 +find_match_count_limit[few]={{limit}} 件以上一致 +find_match_count_limit[many]={{limit}} 件以上一致 +find_match_count_limit[other]={{limit}} 件以上一致 +find_not_found=見つかりませんでした + +# Error panel labels +error_more_info=詳細情報 +error_less_info=詳細情報を隠す +error_close=閉じる +# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be +# replaced by the PDF.JS version and build ID. +error_version_info=PDF.js v{{version}} (ビルド: {{build}}) +# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an +# english string describing the error. +error_message=メッセージ: {{message}} +# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack +# trace. +error_stack=スタック: {{stack}} +# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename +error_file=ファイル: {{file}} +# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number +error_line=行: {{line}} +rendering_error=ページのレンダリング中にエラーが発生しました。 + +# Predefined zoom values +page_scale_width=幅に合わせる +page_scale_fit=ページのサイズに合わせる +page_scale_auto=自動ズーム +page_scale_actual=実際のサイズ +# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a +# numerical scale value. +page_scale_percent={{scale}}% + +# Loading indicator messages +loading=読み込み中... +loading_error=PDF の読み込み中にエラーが発生しました。 +invalid_file_error=無効または破損した PDF ファイル。 +missing_file_error=PDF ファイルが見つかりません。 +unexpected_response_error=サーバーから予期せぬ応答がありました。 + +# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be +# replaced by the modification date, and time, of the annotation. +annotation_date_string={{date}}, {{time}} + +# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip. +# "{{type}}" will be replaced with an annotation type from a list defined in +# the PDF spec (32000-1:2008 Table 169 – Annotation types). +# Some common types are e.g.: "Check", "Text", "Comment", "Note" +text_annotation_type.alt=[{{type}} 注釈] +password_label=この PDF ファイルを開くためのパスワードを入力してください。 +password_invalid=無効なパスワードです。もう一度やり直してください。 +password_ok=OK +password_cancel=キャンセル + +printing_not_supported=警告: このブラウザーでは印刷が完全にサポートされていません。 +printing_not_ready=警告: PDF を印刷するための読み込みが終了していません。 +web_fonts_disabled=ウェブフォントが無効になっています: 埋め込まれた PDF のフォントを使用できません。 + +# Editor +editor_none.title=注釈の編集を無効にする +editor_none_label=編集を無効にする +editor_free_text.title=フリーテキスト注釈を追加 +editor_free_text_label=フリーテキスト注釈 +editor_ink.title=インク注釈を追加 +editor_ink_label=インク注釈 + +freetext_default_content=テキストを入力してください... + +free_text_default_content=テキストを入力してください... + +# Editor Parameters +editor_free_text_font_color=フォントの色 +editor_free_text_font_size=フォントサイズ +editor_ink_line_color=線の色 +editor_ink_line_thickness=線の太さ + +# Editor Parameters +editor_free_text_color=色 +editor_free_text_size=サイズ +editor_ink_color=色 +editor_ink_thickness=太さ +editor_ink_opacity=不透明度 + +# Editor aria +editor_free_text_aria_label=フリーテキスト注釈エディター +editor_ink_aria_label=インク注釈エディター +editor_ink_canvas_aria_label=ユーザー作成画像 diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/ko/viewer.properties b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/ko/viewer.properties new file mode 100644 index 00000000..218dd73b --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/ko/viewer.properties @@ -0,0 +1,279 @@ +# Copyright 2012 Mozilla Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Main toolbar buttons (tooltips and alt text for images) +previous.title=이전 페이지 +previous_label=이전 +next.title=다음 페이지 +next_label=다음 + +# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input. +page.title=페이지 +# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number +# representing the total number of pages in the document. +of_pages=/ {{pagesCount}} +# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}" +# will be replaced by a number representing the currently visible page, +# respectively a number representing the total number of pages in the document. +page_of_pages=({{pageNumber}} / {{pagesCount}}) + +zoom_out.title=축소 +zoom_out_label=축소 +zoom_in.title=확대 +zoom_in_label=확대 +zoom.title=확대/축소 +presentation_mode.title=프레젠테이션 모드로 전환 +presentation_mode_label=프레젠테이션 모드 +open_file.title=파일 열기 +open_file_label=열기 +print.title=인쇄 +print_label=인쇄 +download.title=다운로드 +download_label=다운로드 +bookmark.title=현재 보기 (복사 또는 새 창에서 열기) +bookmark_label=현재 보기 + +# Secondary toolbar and context menu +tools.title=도구 +tools_label=도구 +first_page.title=첫 페이지로 이동 +first_page_label=첫 페이지로 이동 +last_page.title=마지막 페이지로 이동 +last_page_label=마지막 페이지로 이동 +page_rotate_cw.title=시계방향으로 회전 +page_rotate_cw_label=시계방향으로 회전 +page_rotate_ccw.title=시계 반대방향으로 회전 +page_rotate_ccw_label=시계 반대방향으로 회전 + +cursor_text_select_tool.title=텍스트 선택 도구 활성화 +cursor_text_select_tool_label=텍스트 선택 도구 +cursor_hand_tool.title=손 도구 활성화 +cursor_hand_tool_label=손 도구 + +scroll_page.title=페이지 스크롤 사용 +scroll_page_label=페이지 스크롤 +scroll_vertical.title=세로 스크롤 사용 +scroll_vertical_label=세로 스크롤 +scroll_horizontal.title=가로 스크롤 사용 +scroll_horizontal_label=가로 스크롤 +scroll_wrapped.title=래핑(자동 줄 바꿈) 스크롤 사용 +scroll_wrapped_label=래핑 스크롤 + +spread_none.title=한 페이지 보기 +spread_none_label=펼쳐짐 없음 +spread_odd.title=홀수 페이지로 시작하는 두 페이지 보기 +spread_odd_label=홀수 펼쳐짐 +spread_even.title=짝수 페이지로 시작하는 두 페이지 보기 +spread_even_label=짝수 펼쳐짐 + +# Document properties dialog box +document_properties.title=문서 속성… +document_properties_label=문서 속성… +document_properties_file_name=파일 이름: +document_properties_file_size=파일 크기: +# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}" +# will be replaced by the PDF file size in kilobytes, respectively in bytes. +document_properties_kb={{size_kb}} KB ({{size_b}}바이트) +# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}" +# will be replaced by the PDF file size in megabytes, respectively in bytes. +document_properties_mb={{size_mb}} MB ({{size_b}}바이트) +document_properties_title=제목: +document_properties_author=작성자: +document_properties_subject=주제: +document_properties_keywords=키워드: +document_properties_creation_date=작성 날짜: +document_properties_modification_date=수정 날짜: +# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}" +# will be replaced by the creation/modification date, and time, of the PDF file. +document_properties_date_string={{date}}, {{time}} +document_properties_creator=작성 프로그램: +document_properties_producer=PDF 변환 소프트웨어: +document_properties_version=PDF 버전: +document_properties_page_count=페이지 수: +document_properties_page_size=페이지 크기: +document_properties_page_size_unit_inches=in +document_properties_page_size_unit_millimeters=mm +document_properties_page_size_orientation_portrait=세로 방향 +document_properties_page_size_orientation_landscape=가로 방향 +document_properties_page_size_name_a3=A3 +document_properties_page_size_name_a4=A4 +document_properties_page_size_name_letter=레터 +document_properties_page_size_name_legal=리걸 +# LOCALIZATION NOTE (document_properties_page_size_dimension_string): +# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement and orientation, of the (current) page. +document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}} ({{orientation}}) +# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string): +# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement, name, and orientation, of the (current) page. +document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}}) +# LOCALIZATION NOTE (document_properties_linearized): The linearization status of +# the document; usually called "Fast Web View" in English locales of Adobe software. +document_properties_linearized=빠른 웹 보기: +document_properties_linearized_yes=예 +document_properties_linearized_no=아니오 +document_properties_close=닫기 + +print_progress_message=인쇄 문서 준비 중… +# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by +# a numerical per cent value. +print_progress_percent={{progress}}% +print_progress_close=취소 + +# Tooltips and alt text for side panel toolbar buttons +# (the _label strings are alt text for the buttons, the .title strings are +# tooltips) +toggle_sidebar.title=탐색창 표시/숨기기 +toggle_sidebar_notification2.title=탐색창 표시/숨기기 (문서에 아웃라인/첨부파일/레이어 포함됨) +toggle_sidebar_label=탐색창 표시/숨기기 +document_outline.title=문서 아웃라인 보기 (더블 클릭해서 모든 항목 펼치기/접기) +document_outline_label=문서 아웃라인 +attachments.title=첨부파일 보기 +attachments_label=첨부파일 +layers.title=레이어 보기 (더블 클릭해서 모든 레이어를 기본 상태로 재설정) +layers_label=레이어 +thumbs.title=미리보기 +thumbs_label=미리보기 +current_outline_item.title=현재 아웃라인 항목 찾기 +current_outline_item_label=현재 아웃라인 항목 +findbar.title=검색 +findbar_label=검색 + +additional_layers=추가 레이어 +# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number. +page_landmark={{page}} 페이지 +# Thumbnails panel item (tooltip and alt text for images) +# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page +# number. +thumb_page_title={{page}} 페이지 +# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page +# number. +thumb_page_canvas={{page}} 페이지 미리보기 + +# Find panel button title and messages +find_input.title=찾기 +find_input.placeholder=문서에서 찾기… +find_previous.title=지정 문자열에 일치하는 1개 부분을 검색 +find_previous_label=이전 +find_next.title=지정 문자열에 일치하는 다음 부분을 검색 +find_next_label=다음 +find_highlight=모두 강조 표시 +find_match_case_label=대/소문자 구분 +find_match_diacritics_label=분음 부호 일치 +find_entire_word_label=단어 단위로 +find_reached_top=문서 처음까지 검색하고 끝으로 돌아와 검색했습니다. +find_reached_bottom=문서 끝까지 검색하고 앞으로 돌아와 검색했습니다. +# LOCALIZATION NOTE (find_match_count): The supported plural forms are +# [one|two|few|many|other], with [other] as the default value. +# "{{current}}" and "{{total}}" will be replaced by a number representing the +# index of the currently active find result, respectively a number representing +# the total number of matches in the document. +find_match_count={[ plural(total) ]} +find_match_count[one]={{total}} 중 {{current}} 일치 +find_match_count[two]={{total}} 중 {{current}} 일치 +find_match_count[few]={{total}} 중 {{current}} 일치 +find_match_count[many]={{total}} 중 {{current}} 일치 +find_match_count[other]={{total}} 중 {{current}} 일치 +# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are +# [zero|one|two|few|many|other], with [other] as the default value. +# "{{limit}}" will be replaced by a numerical value. +find_match_count_limit={[ plural(limit) ]} +find_match_count_limit[zero]={{limit}} 이상 일치 +find_match_count_limit[one]={{limit}} 이상 일치 +find_match_count_limit[two]={{limit}} 이상 일치 +find_match_count_limit[few]={{limit}} 이상 일치 +find_match_count_limit[many]={{limit}} 이상 일치 +find_match_count_limit[other]={{limit}} 이상 일치 +find_not_found=검색 결과 없음 + +# Error panel labels +error_more_info=자세한 정보 +error_less_info=정보 간단히 보기 +error_close=닫기 +# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be +# replaced by the PDF.JS version and build ID. +error_version_info=PDF.js v{{version}} (빌드: {{build}}) +# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an +# english string describing the error. +error_message=메시지: {{message}} +# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack +# trace. +error_stack=스택: {{stack}} +# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename +error_file=파일: {{file}} +# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number +error_line=줄 번호: {{line}} +rendering_error=페이지를 렌더링하는 동안 오류가 발생했습니다. + +# Predefined zoom values +page_scale_width=페이지 너비에 맞추기 +page_scale_fit=페이지에 맞추기 +page_scale_auto=자동 +page_scale_actual=실제 크기 +# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a +# numerical scale value. +page_scale_percent={{scale}}% + +# Loading indicator messages +loading=로드 중… +loading_error=PDF를 로드하는 동안 오류가 발생했습니다. +invalid_file_error=잘못되었거나 손상된 PDF 파일. +missing_file_error=PDF 파일 없음. +unexpected_response_error=예상치 못한 서버 응답입니다. + +# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be +# replaced by the modification date, and time, of the annotation. +annotation_date_string={{date}} {{time}} + +# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip. +# "{{type}}" will be replaced with an annotation type from a list defined in +# the PDF spec (32000-1:2008 Table 169 – Annotation types). +# Some common types are e.g.: "Check", "Text", "Comment", "Note" +text_annotation_type.alt=[{{type}} 주석] +password_label=이 PDF 파일을 열 수 있는 비밀번호를 입력하세요. +password_invalid=잘못된 비밀번호입니다. 다시 시도하세요. +password_ok=확인 +password_cancel=취소 + +printing_not_supported=경고: 이 브라우저는 인쇄를 완전히 지원하지 않습니다. +printing_not_ready=경고: 이 PDF를 인쇄를 할 수 있을 정도로 읽어들이지 못했습니다. +web_fonts_disabled=웹 폰트가 비활성화됨: 내장된 PDF 글꼴을 사용할 수 없습니다. + +# Editor +editor_none.title=주석 편집 사용 안 함 +editor_none_label=편집 비활성화 +editor_free_text.title=텍스트 주석 추가 +editor_free_text_label=텍스트 주석 +editor_ink.title=잉크 주석 추가 +editor_ink_label=잉크 주석 + +free_text_default_content=텍스트를 입력하세요… + +# Editor Parameters +editor_free_text_font_color=글꼴 색상 +editor_free_text_font_size=글꼴 크기 +editor_ink_line_color=선 색상 +editor_ink_line_thickness=선 두께 + +# Editor Parameters +editor_free_text_color=색상 +editor_free_text_size=크기 +editor_ink_color=색상 +editor_ink_thickness=두께 +editor_ink_opacity=불투명도 + +# Editor aria +editor_free_text_aria_label=텍스트 편집기 +editor_ink_aria_label=잉크 편집기 +editor_ink_canvas_aria_label=사용자 생성 이미지 diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/locale.properties b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/locale.properties new file mode 100644 index 00000000..ae79f473 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/locale.properties @@ -0,0 +1,327 @@ +[ach] +@import url(ach/viewer.properties) + +[af] +@import url(af/viewer.properties) + +[an] +@import url(an/viewer.properties) + +[ar] +@import url(ar/viewer.properties) + +[ast] +@import url(ast/viewer.properties) + +[az] +@import url(az/viewer.properties) + +[be] +@import url(be/viewer.properties) + +[bg] +@import url(bg/viewer.properties) + +[bn] +@import url(bn/viewer.properties) + +[bo] +@import url(bo/viewer.properties) + +[br] +@import url(br/viewer.properties) + +[brx] +@import url(brx/viewer.properties) + +[bs] +@import url(bs/viewer.properties) + +[ca] +@import url(ca/viewer.properties) + +[cak] +@import url(cak/viewer.properties) + +[ckb] +@import url(ckb/viewer.properties) + +[cs] +@import url(cs/viewer.properties) + +[cy] +@import url(cy/viewer.properties) + +[da] +@import url(da/viewer.properties) + +[de] +@import url(de/viewer.properties) + +[dsb] +@import url(dsb/viewer.properties) + +[el] +@import url(el/viewer.properties) + +[en-CA] +@import url(en-CA/viewer.properties) + +[en-GB] +@import url(en-GB/viewer.properties) + +[en-US] +@import url(en-US/viewer.properties) + +[eo] +@import url(eo/viewer.properties) + +[es-AR] +@import url(es-AR/viewer.properties) + +[es-CL] +@import url(es-CL/viewer.properties) + +[es-ES] +@import url(es-ES/viewer.properties) + +[es-MX] +@import url(es-MX/viewer.properties) + +[et] +@import url(et/viewer.properties) + +[eu] +@import url(eu/viewer.properties) + +[fa] +@import url(fa/viewer.properties) + +[ff] +@import url(ff/viewer.properties) + +[fi] +@import url(fi/viewer.properties) + +[fr] +@import url(fr/viewer.properties) + +[fy-NL] +@import url(fy-NL/viewer.properties) + +[ga-IE] +@import url(ga-IE/viewer.properties) + +[gd] +@import url(gd/viewer.properties) + +[gl] +@import url(gl/viewer.properties) + +[gn] +@import url(gn/viewer.properties) + +[gu-IN] +@import url(gu-IN/viewer.properties) + +[he] +@import url(he/viewer.properties) + +[hi-IN] +@import url(hi-IN/viewer.properties) + +[hr] +@import url(hr/viewer.properties) + +[hsb] +@import url(hsb/viewer.properties) + +[hu] +@import url(hu/viewer.properties) + +[hy-AM] +@import url(hy-AM/viewer.properties) + +[hye] +@import url(hye/viewer.properties) + +[ia] +@import url(ia/viewer.properties) + +[id] +@import url(id/viewer.properties) + +[is] +@import url(is/viewer.properties) + +[it] +@import url(it/viewer.properties) + +[ja] +@import url(ja/viewer.properties) + +[ka] +@import url(ka/viewer.properties) + +[kab] +@import url(kab/viewer.properties) + +[kk] +@import url(kk/viewer.properties) + +[km] +@import url(km/viewer.properties) + +[kn] +@import url(kn/viewer.properties) + +[ko] +@import url(ko/viewer.properties) + +[lij] +@import url(lij/viewer.properties) + +[lo] +@import url(lo/viewer.properties) + +[lt] +@import url(lt/viewer.properties) + +[ltg] +@import url(ltg/viewer.properties) + +[lv] +@import url(lv/viewer.properties) + +[meh] +@import url(meh/viewer.properties) + +[mk] +@import url(mk/viewer.properties) + +[mr] +@import url(mr/viewer.properties) + +[ms] +@import url(ms/viewer.properties) + +[my] +@import url(my/viewer.properties) + +[nb-NO] +@import url(nb-NO/viewer.properties) + +[ne-NP] +@import url(ne-NP/viewer.properties) + +[nl] +@import url(nl/viewer.properties) + +[nn-NO] +@import url(nn-NO/viewer.properties) + +[oc] +@import url(oc/viewer.properties) + +[pa-IN] +@import url(pa-IN/viewer.properties) + +[pl] +@import url(pl/viewer.properties) + +[pt-BR] +@import url(pt-BR/viewer.properties) + +[pt-PT] +@import url(pt-PT/viewer.properties) + +[rm] +@import url(rm/viewer.properties) + +[ro] +@import url(ro/viewer.properties) + +[ru] +@import url(ru/viewer.properties) + +[sat] +@import url(sat/viewer.properties) + +[sc] +@import url(sc/viewer.properties) + +[scn] +@import url(scn/viewer.properties) + +[sco] +@import url(sco/viewer.properties) + +[si] +@import url(si/viewer.properties) + +[sk] +@import url(sk/viewer.properties) + +[sl] +@import url(sl/viewer.properties) + +[son] +@import url(son/viewer.properties) + +[sq] +@import url(sq/viewer.properties) + +[sr] +@import url(sr/viewer.properties) + +[sv-SE] +@import url(sv-SE/viewer.properties) + +[szl] +@import url(szl/viewer.properties) + +[ta] +@import url(ta/viewer.properties) + +[te] +@import url(te/viewer.properties) + +[tg] +@import url(tg/viewer.properties) + +[th] +@import url(th/viewer.properties) + +[tl] +@import url(tl/viewer.properties) + +[tr] +@import url(tr/viewer.properties) + +[trs] +@import url(trs/viewer.properties) + +[uk] +@import url(uk/viewer.properties) + +[ur] +@import url(ur/viewer.properties) + +[uz] +@import url(uz/viewer.properties) + +[vi] +@import url(vi/viewer.properties) + +[wo] +@import url(wo/viewer.properties) + +[xh] +@import url(xh/viewer.properties) + +[zh-CN] +@import url(zh-CN/viewer.properties) + +[zh-TW] +@import url(zh-TW/viewer.properties) + diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/uk/viewer.properties b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/uk/viewer.properties new file mode 100644 index 00000000..e981adf7 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/uk/viewer.properties @@ -0,0 +1,281 @@ +# Copyright 2012 Mozilla Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Main toolbar buttons (tooltips and alt text for images) +previous.title=Попередня сторінка +previous_label=Попередня +next.title=Наступна сторінка +next_label=Наступна + +# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input. +page.title=Сторінка +# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number +# representing the total number of pages in the document. +of_pages=із {{pagesCount}} +# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}" +# will be replaced by a number representing the currently visible page, +# respectively a number representing the total number of pages in the document. +page_of_pages=({{pageNumber}} із {{pagesCount}}) + +zoom_out.title=Зменшити +zoom_out_label=Зменшити +zoom_in.title=Збільшити +zoom_in_label=Збільшити +zoom.title=Масштаб +presentation_mode.title=Перейти в режим презентації +presentation_mode_label=Режим презентації +open_file.title=Відкрити файл +open_file_label=Відкрити +print.title=Друк +print_label=Друк +download.title=Завантажити +download_label=Завантажити +bookmark.title=Поточний вигляд (копіювати чи відкрити в новому вікні) +bookmark_label=Поточний вигляд + +# Secondary toolbar and context menu +tools.title=Інструменти +tools_label=Інструменти +first_page.title=На першу сторінку +first_page_label=На першу сторінку +last_page.title=На останню сторінку +last_page_label=На останню сторінку +page_rotate_cw.title=Повернути за годинниковою стрілкою +page_rotate_cw_label=Повернути за годинниковою стрілкою +page_rotate_ccw.title=Повернути проти годинникової стрілки +page_rotate_ccw_label=Повернути проти годинникової стрілки + +cursor_text_select_tool.title=Увімкнути інструмент вибору тексту +cursor_text_select_tool_label=Інструмент вибору тексту +cursor_hand_tool.title=Увімкнути інструмент "Рука" +cursor_hand_tool_label=Інструмент "Рука" + +scroll_page.title=Використовувати прокручування сторінки +scroll_page_label=Прокручування сторінки +scroll_vertical.title=Використовувати вертикальне прокручування +scroll_vertical_label=Вертикальне прокручування +scroll_horizontal.title=Використовувати горизонтальне прокручування +scroll_horizontal_label=Горизонтальне прокручування +scroll_wrapped.title=Використовувати масштабоване прокручування +scroll_wrapped_label=Масштабоване прокручування + +spread_none.title=Не використовувати розгорнуті сторінки +spread_none_label=Без розгорнутих сторінок +spread_odd.title=Розгорнуті сторінки починаються з непарних номерів +spread_odd_label=Непарні сторінки зліва +spread_even.title=Розгорнуті сторінки починаються з парних номерів +spread_even_label=Парні сторінки зліва + +# Document properties dialog box +document_properties.title=Властивості документа… +document_properties_label=Властивості документа… +document_properties_file_name=Назва файла: +document_properties_file_size=Розмір файла: +# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}" +# will be replaced by the PDF file size in kilobytes, respectively in bytes. +document_properties_kb={{size_kb}} КБ ({{size_b}} bytes) +# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}" +# will be replaced by the PDF file size in megabytes, respectively in bytes. +document_properties_mb={{size_mb}} МБ ({{size_b}} bytes) +document_properties_title=Заголовок: +document_properties_author=Автор: +document_properties_subject=Тема: +document_properties_keywords=Ключові слова: +document_properties_creation_date=Дата створення: +document_properties_modification_date=Дата зміни: +# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}" +# will be replaced by the creation/modification date, and time, of the PDF file. +document_properties_date_string={{date}}, {{time}} +document_properties_creator=Створено: +document_properties_producer=Виробник PDF: +document_properties_version=Версія PDF: +document_properties_page_count=Кількість сторінок: +document_properties_page_size=Розмір сторінки: +document_properties_page_size_unit_inches=дюймів +document_properties_page_size_unit_millimeters=мм +document_properties_page_size_orientation_portrait=книжкова +document_properties_page_size_orientation_landscape=альбомна +document_properties_page_size_name_a3=A3 +document_properties_page_size_name_a4=A4 +document_properties_page_size_name_letter=Letter +document_properties_page_size_name_legal=Legal +# LOCALIZATION NOTE (document_properties_page_size_dimension_string): +# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement and orientation, of the (current) page. +document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}} ({{orientation}}) +# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string): +# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement, name, and orientation, of the (current) page. +document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}} ({{name}}, {{orientation}}) +# LOCALIZATION NOTE (document_properties_linearized): The linearization status of +# the document; usually called "Fast Web View" in English locales of Adobe software. +document_properties_linearized=Швидкий перегляд в Інтернеті: +document_properties_linearized_yes=Так +document_properties_linearized_no=Ні +document_properties_close=Закрити + +print_progress_message=Підготовка документу до друку… +# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by +# a numerical per cent value. +print_progress_percent={{progress}}% +print_progress_close=Скасувати + +# Tooltips and alt text for side panel toolbar buttons +# (the _label strings are alt text for the buttons, the .title strings are +# tooltips) +toggle_sidebar.title=Бічна панель +toggle_sidebar_notification2.title=Перемкнути бічну панель (документ містить ескіз/вкладення/шари) +toggle_sidebar_label=Перемкнути бічну панель +document_outline.title=Показати схему документу (подвійний клік для розгортання/згортання елементів) +document_outline_label=Схема документа +attachments.title=Показати прикріплення +attachments_label=Прикріплення +layers.title=Показати шари (двічі клацніть, щоб скинути всі шари до типового стану) +layers_label=Шари +thumbs.title=Показувати ескізи +thumbs_label=Ескізи +current_outline_item.title=Знайти поточний елемент змісту +current_outline_item_label=Поточний елемент змісту +findbar.title=Знайти в документі +findbar_label=Знайти + +additional_layers=Додаткові шари +# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number. +page_landmark=Сторінка {{page}} +# Thumbnails panel item (tooltip and alt text for images) +# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page +# number. +thumb_page_title=Сторінка {{page}} +# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page +# number. +thumb_page_canvas=Ескіз сторінки {{page}} + +# Find panel button title and messages +find_input.title=Знайти +find_input.placeholder=Знайти в документі… +find_previous.title=Знайти попереднє входження фрази +find_previous_label=Попереднє +find_next.title=Знайти наступне входження фрази +find_next_label=Наступне +find_highlight=Підсвітити все +find_match_case_label=З урахуванням регістру +find_match_diacritics_label=Відповідність діакритичних знаків +find_entire_word_label=Цілі слова +find_reached_top=Досягнуто початку документу, продовжено з кінця +find_reached_bottom=Досягнуто кінця документу, продовжено з початку +# LOCALIZATION NOTE (find_match_count): The supported plural forms are +# [one|two|few|many|other], with [other] as the default value. +# "{{current}}" and "{{total}}" will be replaced by a number representing the +# index of the currently active find result, respectively a number representing +# the total number of matches in the document. +find_match_count={[ plural(total) ]} +find_match_count[one]={{current}} збіг із {{total}} +find_match_count[two]={{current}} збіги з {{total}} +find_match_count[few]={{current}} збігів із {{total}} +find_match_count[many]={{current}} збігів із {{total}} +find_match_count[other]={{current}} збігів із {{total}} +# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are +# [zero|one|two|few|many|other], with [other] as the default value. +# "{{limit}}" will be replaced by a numerical value. +find_match_count_limit={[ plural(limit) ]} +find_match_count_limit[zero]=Понад {{limit}} збігів +find_match_count_limit[one]=Більше, ніж {{limit}} збіг +find_match_count_limit[two]=Більше, ніж {{limit}} збіги +find_match_count_limit[few]=Більше, ніж {{limit}} збігів +find_match_count_limit[many]=Понад {{limit}} збігів +find_match_count_limit[other]=Понад {{limit}} збігів +find_not_found=Фразу не знайдено + +# Error panel labels +error_more_info=Більше інформації +error_less_info=Менше інформації +error_close=Закрити +# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be +# replaced by the PDF.JS version and build ID. +error_version_info=PDF.js v{{version}} (build: {{build}}) +# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an +# english string describing the error. +error_message=Повідомлення: {{message}} +# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack +# trace. +error_stack=Стек: {{stack}} +# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename +error_file=Файл: {{file}} +# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number +error_line=Рядок: {{line}} +rendering_error=Під час виведення сторінки сталася помилка. + +# Predefined zoom values +page_scale_width=За шириною +page_scale_fit=Вмістити +page_scale_auto=Автомасштаб +page_scale_actual=Дійсний розмір +# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a +# numerical scale value. +page_scale_percent={{scale}}% + +# Loading indicator messages +loading=Завантаження… +loading_error=Під час завантаження PDF сталася помилка. +invalid_file_error=Недійсний або пошкоджений PDF-файл. +missing_file_error=Відсутній PDF-файл. +unexpected_response_error=Неочікувана відповідь сервера. + +# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be +# replaced by the modification date, and time, of the annotation. +annotation_date_string={{date}}, {{time}} + +# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip. +# "{{type}}" will be replaced with an annotation type from a list defined in +# the PDF spec (32000-1:2008 Table 169 – Annotation types). +# Some common types are e.g.: "Check", "Text", "Comment", "Note" +text_annotation_type.alt=[{{type}}-анотація] +password_label=Введіть пароль для відкриття цього PDF-файла. +password_invalid=Невірний пароль. Спробуйте ще. +password_ok=Гаразд +password_cancel=Скасувати + +printing_not_supported=Попередження: Цей браузер не повністю підтримує друк. +printing_not_ready=Попередження: PDF не повністю завантажений для друку. +web_fonts_disabled=Веб-шрифти вимкнено: неможливо використати вбудовані у PDF шрифти. + +# Editor +editor_none.title=Вимкнути редагування анотацій +editor_none_label=Вимкнути редагування +editor_free_text.title=Додати анотацію FreeText +editor_free_text_label=Анотація FreeText +editor_ink.title=Додати анотацію чорнилом +editor_ink_label=Анотація чорнилом + +freetext_default_content=Введіть текст… + +free_text_default_content=Уведіть текст… + +# Editor Parameters +editor_free_text_font_color=Колір шрифту +editor_free_text_font_size=Розмір шрифту +editor_ink_line_color=Колір лінії +editor_ink_line_thickness=Товщина лінії + +# Editor Parameters +editor_free_text_color=Колір +editor_free_text_size=Розмір +editor_ink_color=Колір +editor_ink_thickness=Товщина +editor_ink_opacity=Прозорість + +# Editor aria +editor_free_text_aria_label=Редактор FreeText +editor_ink_aria_label=Рукописний редактор +editor_ink_canvas_aria_label=Зображення, створене користувачем diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/zh-CN/viewer.properties b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/zh-CN/viewer.properties new file mode 100644 index 00000000..5a33d65b --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/zh-CN/viewer.properties @@ -0,0 +1,281 @@ +# Copyright 2012 Mozilla Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Main toolbar buttons (tooltips and alt text for images) +previous.title=上一页 +previous_label=上一页 +next.title=下一页 +next_label=下一页 + +# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input. +page.title=页面 +# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number +# representing the total number of pages in the document. +of_pages=/ {{pagesCount}} +# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}" +# will be replaced by a number representing the currently visible page, +# respectively a number representing the total number of pages in the document. +page_of_pages=({{pageNumber}} / {{pagesCount}}) + +zoom_out.title=缩小 +zoom_out_label=缩小 +zoom_in.title=放大 +zoom_in_label=放大 +zoom.title=缩放 +presentation_mode.title=切换到演示模式 +presentation_mode_label=演示模式 +open_file.title=打开文件 +open_file_label=打开 +print.title=打印 +print_label=打印 +download.title=下载 +download_label=下载 +bookmark.title=当前在看的内容(复制或在新窗口中打开) +bookmark_label=当前在看 + +# Secondary toolbar and context menu +tools.title=工具 +tools_label=工具 +first_page.title=转到第一页 +first_page_label=转到第一页 +last_page.title=转到最后一页 +last_page_label=转到最后一页 +page_rotate_cw.title=顺时针旋转 +page_rotate_cw_label=顺时针旋转 +page_rotate_ccw.title=逆时针旋转 +page_rotate_ccw_label=逆时针旋转 + +cursor_text_select_tool.title=启用文本选择工具 +cursor_text_select_tool_label=文本选择工具 +cursor_hand_tool.title=启用手形工具 +cursor_hand_tool_label=手形工具 + +scroll_page.title=使用页面滚动 +scroll_page_label=页面滚动 +scroll_vertical.title=使用垂直滚动 +scroll_vertical_label=垂直滚动 +scroll_horizontal.title=使用水平滚动 +scroll_horizontal_label=水平滚动 +scroll_wrapped.title=使用平铺滚动 +scroll_wrapped_label=平铺滚动 + +spread_none.title=不加入衔接页 +spread_none_label=单页视图 +spread_odd.title=加入衔接页使奇数页作为起始页 +spread_odd_label=双页视图 +spread_even.title=加入衔接页使偶数页作为起始页 +spread_even_label=书籍视图 + +# Document properties dialog box +document_properties.title=文档属性… +document_properties_label=文档属性… +document_properties_file_name=文件名: +document_properties_file_size=文件大小: +# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}" +# will be replaced by the PDF file size in kilobytes, respectively in bytes. +document_properties_kb={{size_kb}} KB ({{size_b}} 字节) +# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}" +# will be replaced by the PDF file size in megabytes, respectively in bytes. +document_properties_mb={{size_mb}} MB ({{size_b}} 字节) +document_properties_title=标题: +document_properties_author=作者: +document_properties_subject=主题: +document_properties_keywords=关键词: +document_properties_creation_date=创建日期: +document_properties_modification_date=修改日期: +# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}" +# will be replaced by the creation/modification date, and time, of the PDF file. +document_properties_date_string={{date}}, {{time}} +document_properties_creator=创建者: +document_properties_producer=PDF 生成器: +document_properties_version=PDF 版本: +document_properties_page_count=页数: +document_properties_page_size=页面大小: +document_properties_page_size_unit_inches=英寸 +document_properties_page_size_unit_millimeters=毫米 +document_properties_page_size_orientation_portrait=纵向 +document_properties_page_size_orientation_landscape=横向 +document_properties_page_size_name_a3=A3 +document_properties_page_size_name_a4=A4 +document_properties_page_size_name_letter=文本 +document_properties_page_size_name_legal=法律 +# LOCALIZATION NOTE (document_properties_page_size_dimension_string): +# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement and orientation, of the (current) page. +document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}}({{orientation}}) +# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string): +# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement, name, and orientation, of the (current) page. +document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}}({{name}},{{orientation}}) +# LOCALIZATION NOTE (document_properties_linearized): The linearization status of +# the document; usually called "Fast Web View" in English locales of Adobe software. +document_properties_linearized=快速 Web 视图: +document_properties_linearized_yes=是 +document_properties_linearized_no=否 +document_properties_close=关闭 + +print_progress_message=正在准备打印文档… +# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by +# a numerical per cent value. +print_progress_percent={{progress}}% +print_progress_close=取消 + +# Tooltips and alt text for side panel toolbar buttons +# (the _label strings are alt text for the buttons, the .title strings are +# tooltips) +toggle_sidebar.title=切换侧栏 +toggle_sidebar_notification2.title=切换侧栏(文档所含的大纲/附件/图层) +toggle_sidebar_label=切换侧栏 +document_outline.title=显示文档大纲(双击展开/折叠所有项) +document_outline_label=文档大纲 +attachments.title=显示附件 +attachments_label=附件 +layers.title=显示图层(双击即可将所有图层重置为默认状态) +layers_label=图层 +thumbs.title=显示缩略图 +thumbs_label=缩略图 +current_outline_item.title=查找当前大纲项目 +current_outline_item_label=当前大纲项目 +findbar.title=在文档中查找 +findbar_label=查找 + +additional_layers=其他图层 +# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number. +page_landmark=第 {{page}} 页 +# Thumbnails panel item (tooltip and alt text for images) +# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page +# number. +thumb_page_title=第 {{page}} 页 +# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page +# number. +thumb_page_canvas=页面 {{page}} 的缩略图 + +# Find panel button title and messages +find_input.title=查找 +find_input.placeholder=在文档中查找… +find_previous.title=查找词语上一次出现的位置 +find_previous_label=上一页 +find_next.title=查找词语后一次出现的位置 +find_next_label=下一页 +find_highlight=全部高亮显示 +find_match_case_label=区分大小写 +find_match_diacritics_label=匹配变音符号 +find_entire_word_label=字词匹配 +find_reached_top=到达文档开头,从末尾继续 +find_reached_bottom=到达文档末尾,从开头继续 +# LOCALIZATION NOTE (find_match_count): The supported plural forms are +# [one|two|few|many|other], with [other] as the default value. +# "{{current}}" and "{{total}}" will be replaced by a number representing the +# index of the currently active find result, respectively a number representing +# the total number of matches in the document. +find_match_count={[ plural(total) ]} +find_match_count[one]=第 {{current}} 项,共匹配 {{total}} 项 +find_match_count[two]=第 {{current}} 项,共匹配 {{total}} 项 +find_match_count[few]=第 {{current}} 项,共匹配 {{total}} 项 +find_match_count[many]=第 {{current}} 项,共匹配 {{total}} 项 +find_match_count[other]=第 {{current}} 项,共匹配 {{total}} 项 +# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are +# [zero|one|two|few|many|other], with [other] as the default value. +# "{{limit}}" will be replaced by a numerical value. +find_match_count_limit={[ plural(limit) ]} +find_match_count_limit[zero]=超过 {{limit}} 项匹配 +find_match_count_limit[one]=超过 {{limit}} 项匹配 +find_match_count_limit[two]=超过 {{limit}} 项匹配 +find_match_count_limit[few]=超过 {{limit}} 项匹配 +find_match_count_limit[many]=超过 {{limit}} 项匹配 +find_match_count_limit[other]=超过 {{limit}} 项匹配 +find_not_found=找不到指定词语 + +# Error panel labels +error_more_info=更多信息 +error_less_info=更少信息 +error_close=关闭 +# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be +# replaced by the PDF.JS version and build ID. +error_version_info=PDF.js v{{version}} (build: {{build}}) +# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an +# english string describing the error. +error_message=信息:{{message}} +# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack +# trace. +error_stack=堆栈:{{stack}} +# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename +error_file=文件:{{file}} +# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number +error_line=行号:{{line}} +rendering_error=渲染页面时发生错误。 + +# Predefined zoom values +page_scale_width=适合页宽 +page_scale_fit=适合页面 +page_scale_auto=自动缩放 +page_scale_actual=实际大小 +# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a +# numerical scale value. +page_scale_percent={{scale}}% + +# Loading indicator messages +loading=正在载入… +loading_error=载入 PDF 时发生错误。 +invalid_file_error=无效或损坏的 PDF 文件。 +missing_file_error=缺少 PDF 文件。 +unexpected_response_error=意外的服务器响应。 + +# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be +# replaced by the modification date, and time, of the annotation. +annotation_date_string={{date}},{{time}} + +# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip. +# "{{type}}" will be replaced with an annotation type from a list defined in +# the PDF spec (32000-1:2008 Table 169 – Annotation types). +# Some common types are e.g.: "Check", "Text", "Comment", "Note" +text_annotation_type.alt=[{{type}} 注释] +password_label=输入密码以打开此 PDF 文件。 +password_invalid=密码无效。请重试。 +password_ok=确定 +password_cancel=取消 + +printing_not_supported=警告:此浏览器尚未完整支持打印功能。 +printing_not_ready=警告:此 PDF 未完成载入,无法打印。 +web_fonts_disabled=Web 字体已被禁用:无法使用嵌入的 PDF 字体。 + +# Editor +editor_none.title=禁用编辑注释 +editor_none_label=禁用编辑 +editor_free_text.title=添加文本注释 +editor_free_text_label=文本注释 +editor_ink.title=添加墨迹注释 +editor_ink_label=墨迹注释 + +freetext_default_content=输入一段文本… + +free_text_default_content=输入文本… + +# Editor Parameters +editor_free_text_font_color=字体颜色 +editor_free_text_font_size=字体大小 +editor_ink_line_color=线条颜色 +editor_ink_line_thickness=线条粗细 + +# Editor Parameters +editor_free_text_color=颜色 +editor_free_text_size=字号 +editor_ink_color=颜色 +editor_ink_thickness=粗细 +editor_ink_opacity=不透明度 + +# Editor aria +editor_free_text_aria_label=文本编辑器 +editor_ink_aria_label=墨迹编辑器 +editor_ink_canvas_aria_label=用户创建图像 diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/zh-TW/viewer.properties b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/zh-TW/viewer.properties new file mode 100644 index 00000000..b673653e --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/locale/zh-TW/viewer.properties @@ -0,0 +1,281 @@ +# Copyright 2012 Mozilla Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Main toolbar buttons (tooltips and alt text for images) +previous.title=上一頁 +previous_label=上一頁 +next.title=下一頁 +next_label=下一頁 + +# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input. +page.title=第 +# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number +# representing the total number of pages in the document. +of_pages=頁,共 {{pagesCount}} 頁 +# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}" +# will be replaced by a number representing the currently visible page, +# respectively a number representing the total number of pages in the document. +page_of_pages=(第 {{pageNumber}} 頁,共 {{pagesCount}} 頁) + +zoom_out.title=縮小 +zoom_out_label=縮小 +zoom_in.title=放大 +zoom_in_label=放大 +zoom.title=縮放 +presentation_mode.title=切換至簡報模式 +presentation_mode_label=簡報模式 +open_file.title=開啟檔案 +open_file_label=開啟 +print.title=列印 +print_label=列印 +download.title=下載 +download_label=下載 +bookmark.title=目前畫面(複製或開啟於新視窗) +bookmark_label=目前檢視 + +# Secondary toolbar and context menu +tools.title=工具 +tools_label=工具 +first_page.title=跳到第一頁 +first_page_label=跳到第一頁 +last_page.title=跳到最後一頁 +last_page_label=跳到最後一頁 +page_rotate_cw.title=順時針旋轉 +page_rotate_cw_label=順時針旋轉 +page_rotate_ccw.title=逆時針旋轉 +page_rotate_ccw_label=逆時針旋轉 + +cursor_text_select_tool.title=開啟文字選擇工具 +cursor_text_select_tool_label=文字選擇工具 +cursor_hand_tool.title=開啟頁面移動工具 +cursor_hand_tool_label=頁面移動工具 + +scroll_page.title=使用頁面捲動功能 +scroll_page_label=頁面捲動功能 +scroll_vertical.title=使用垂直捲動版面 +scroll_vertical_label=垂直捲動 +scroll_horizontal.title=使用水平捲動版面 +scroll_horizontal_label=水平捲動 +scroll_wrapped.title=使用多頁捲動版面 +scroll_wrapped_label=多頁捲動 + +spread_none.title=不要進行跨頁顯示 +spread_none_label=不跨頁 +spread_odd.title=從奇數頁開始跨頁 +spread_odd_label=奇數跨頁 +spread_even.title=從偶數頁開始跨頁 +spread_even_label=偶數跨頁 + +# Document properties dialog box +document_properties.title=文件內容… +document_properties_label=文件內容… +document_properties_file_name=檔案名稱: +document_properties_file_size=檔案大小: +# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}" +# will be replaced by the PDF file size in kilobytes, respectively in bytes. +document_properties_kb={{size_kb}} KB({{size_b}} 位元組) +# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}" +# will be replaced by the PDF file size in megabytes, respectively in bytes. +document_properties_mb={{size_mb}} MB({{size_b}} 位元組) +document_properties_title=標題: +document_properties_author=作者: +document_properties_subject=主旨: +document_properties_keywords=關鍵字: +document_properties_creation_date=建立日期: +document_properties_modification_date=修改日期: +# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}" +# will be replaced by the creation/modification date, and time, of the PDF file. +document_properties_date_string={{date}} {{time}} +document_properties_creator=建立者: +document_properties_producer=PDF 產生器: +document_properties_version=PDF 版本: +document_properties_page_count=頁數: +document_properties_page_size=頁面大小: +document_properties_page_size_unit_inches=in +document_properties_page_size_unit_millimeters=mm +document_properties_page_size_orientation_portrait=垂直 +document_properties_page_size_orientation_landscape=水平 +document_properties_page_size_name_a3=A3 +document_properties_page_size_name_a4=A4 +document_properties_page_size_name_letter=Letter +document_properties_page_size_name_legal=Legal +# LOCALIZATION NOTE (document_properties_page_size_dimension_string): +# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement and orientation, of the (current) page. +document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}}({{orientation}}) +# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string): +# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by +# the size, respectively their unit of measurement, name, and orientation, of the (current) page. +document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}}({{name}},{{orientation}}) +# LOCALIZATION NOTE (document_properties_linearized): The linearization status of +# the document; usually called "Fast Web View" in English locales of Adobe software. +document_properties_linearized=快速 Web 檢視: +document_properties_linearized_yes=是 +document_properties_linearized_no=否 +document_properties_close=關閉 + +print_progress_message=正在準備列印文件… +# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by +# a numerical per cent value. +print_progress_percent={{progress}}% +print_progress_close=取消 + +# Tooltips and alt text for side panel toolbar buttons +# (the _label strings are alt text for the buttons, the .title strings are +# tooltips) +toggle_sidebar.title=切換側邊欄 +toggle_sidebar_notification2.title=切換側邊欄(包含大綱、附件、圖層的文件) +toggle_sidebar_label=切換側邊欄 +document_outline.title=顯示文件大綱(雙擊展開/摺疊所有項目) +document_outline_label=文件大綱 +attachments.title=顯示附件 +attachments_label=附件 +layers.title=顯示圖層(滑鼠雙擊即可將所有圖層重設為預設狀態) +layers_label=圖層 +thumbs.title=顯示縮圖 +thumbs_label=縮圖 +current_outline_item.title=尋找目前的大綱項目 +current_outline_item_label=目前的大綱項目 +findbar.title=在文件中尋找 +findbar_label=尋找 + +additional_layers=其他圖層 +# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number. +page_landmark=第 {{page}} 頁 +# Thumbnails panel item (tooltip and alt text for images) +# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page +# number. +thumb_page_title=第 {{page}} 頁 +# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page +# number. +thumb_page_canvas=頁 {{page}} 的縮圖 + +# Find panel button title and messages +find_input.title=尋找 +find_input.placeholder=在文件中搜尋… +find_previous.title=尋找文字前次出現的位置 +find_previous_label=上一個 +find_next.title=尋找文字下次出現的位置 +find_next_label=下一個 +find_highlight=全部強調標示 +find_match_case_label=區分大小寫 +find_match_diacritics_label=符合變音符號 +find_entire_word_label=符合整個字 +find_reached_top=已搜尋至文件頂端,自底端繼續搜尋 +find_reached_bottom=已搜尋至文件底端,自頂端繼續搜尋 +# LOCALIZATION NOTE (find_match_count): The supported plural forms are +# [one|two|few|many|other], with [other] as the default value. +# "{{current}}" and "{{total}}" will be replaced by a number representing the +# index of the currently active find result, respectively a number representing +# the total number of matches in the document. +find_match_count={[ plural(total) ]} +find_match_count[one]=第 {{current}} 筆,共找到 {{total}} 筆 +find_match_count[two]=第 {{current}} 筆,共找到 {{total}} 筆 +find_match_count[few]=第 {{current}} 筆,共找到 {{total}} 筆 +find_match_count[many]=第 {{current}} 筆,共找到 {{total}} 筆 +find_match_count[other]=第 {{current}} 筆,共找到 {{total}} 筆 +# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are +# [zero|one|two|few|many|other], with [other] as the default value. +# "{{limit}}" will be replaced by a numerical value. +find_match_count_limit={[ plural(limit) ]} +find_match_count_limit[zero]=找到超過 {{limit}} 筆 +find_match_count_limit[one]=找到超過 {{limit}} 筆 +find_match_count_limit[two]=找到超過 {{limit}} 筆 +find_match_count_limit[few]=找到超過 {{limit}} 筆 +find_match_count_limit[many]=找到超過 {{limit}} 筆 +find_match_count_limit[other]=找到超過 {{limit}} 筆 +find_not_found=找不到指定文字 + +# Error panel labels +error_more_info=更多資訊 +error_less_info=更少資訊 +error_close=關閉 +# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be +# replaced by the PDF.JS version and build ID. +error_version_info=PDF.js v{{version}} (build: {{build}}) +# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an +# english string describing the error. +error_message=訊息: {{message}} +# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack +# trace. +error_stack=堆疊: {{stack}} +# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename +error_file=檔案: {{file}} +# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number +error_line=行: {{line}} +rendering_error=描繪頁面時發生錯誤。 + +# Predefined zoom values +page_scale_width=頁面寬度 +page_scale_fit=縮放至頁面大小 +page_scale_auto=自動縮放 +page_scale_actual=實際大小 +# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a +# numerical scale value. +page_scale_percent={{scale}}% + +# Loading indicator messages +loading=載入中… +loading_error=載入 PDF 時發生錯誤。 +invalid_file_error=無效或毀損的 PDF 檔案。 +missing_file_error=找不到 PDF 檔案。 +unexpected_response_error=伺服器回應未預期的內容。 + +# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be +# replaced by the modification date, and time, of the annotation. +annotation_date_string={{date}} {{time}} + +# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip. +# "{{type}}" will be replaced with an annotation type from a list defined in +# the PDF spec (32000-1:2008 Table 169 – Annotation types). +# Some common types are e.g.: "Check", "Text", "Comment", "Note" +text_annotation_type.alt=[{{type}} 註解] +password_label=請輸入用來開啟此 PDF 檔案的密碼。 +password_invalid=密碼不正確,請再試一次。 +password_ok=確定 +password_cancel=取消 + +printing_not_supported=警告: 此瀏覽器未完整支援列印功能。 +printing_not_ready=警告: 此 PDF 未完成下載以供列印。 +web_fonts_disabled=已停用網路字型 (Web fonts): 無法使用 PDF 內嵌字型。 + +# Editor +editor_none.title=停用編輯注釋 +editor_none_label=停用編輯 +editor_free_text.title=新增文字注釋 +editor_free_text_label=文字注釋 +editor_ink.title=新增圖形注釋 +editor_ink_label=圖形注釋 + +freetext_default_content=輸入一些文字… + +free_text_default_content=請輸入文字… + +# Editor Parameters +editor_free_text_font_color=字型顏色 +editor_free_text_font_size=字型大小 +editor_ink_line_color=線條色彩 +editor_ink_line_thickness=線條粗細 + +# Editor Parameters +editor_free_text_color=色彩 +editor_free_text_size=大小 +editor_ink_color=色彩 +editor_ink_thickness=線條粗細 +editor_ink_opacity=透​明度 + +# Editor aria +editor_free_text_aria_label=FreeText 編輯器 +editor_ink_aria_label=筆跡編輯器 +editor_ink_canvas_aria_label=使用者建立的圖片 diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/viewer.css b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/viewer.css new file mode 100644 index 00000000..c357a9fd --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/viewer.css @@ -0,0 +1,3001 @@ +/* Copyright 2014 Mozilla Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +.textLayer { + position: absolute; + text-align: initial; + left: 0; + top: 0; + right: 0; + bottom: 0; + overflow: hidden; + opacity: 0.2; + line-height: 1; + -webkit-text-size-adjust: none; + -moz-text-size-adjust: none; + text-size-adjust: none; + forced-color-adjust: none; +} + +.textLayer span, +.textLayer br { + color: transparent; + position: absolute; + white-space: pre; + cursor: text; + transform-origin: 0% 0%; +} + +/* Only necessary in Google Chrome, see issue 14205, and most unfortunately + * the problem doesn't show up in "text" reference tests. */ +.textLayer span.markedContent { + top: 0; + height: 0; +} + +.textLayer .highlight { + margin: -1px; + padding: 1px; + background-color: rgba(180, 0, 170, 1); + border-radius: 4px; +} + +.textLayer .highlight.appended { + position: initial; +} + +.textLayer .highlight.begin { + border-radius: 4px 0 0 4px; +} + +.textLayer .highlight.end { + border-radius: 0 4px 4px 0; +} + +.textLayer .highlight.middle { + border-radius: 0; +} + +.textLayer .highlight.selected { + background-color: rgba(0, 100, 0, 1); +} + +.textLayer ::-moz-selection { + background: rgba(0, 0, 255, 1); +} + +.textLayer ::selection { + background: rgba(0, 0, 255, 1); +} + +/* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */ +.textLayer br::-moz-selection { + background: transparent; +} +.textLayer br::selection { + background: transparent; +} + +.textLayer .endOfContent { + display: block; + position: absolute; + left: 0; + top: 100%; + right: 0; + bottom: 0; + z-index: -1; + cursor: default; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} + +.textLayer .endOfContent.active { + top: 0; +} + + +:root { + --annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>"); +} + +@media (forced-colors: active) { + .annotationLayer .textWidgetAnnotation input:required, + .annotationLayer .textWidgetAnnotation textarea:required, + .annotationLayer .choiceWidgetAnnotation select:required, + .annotationLayer .buttonWidgetAnnotation.checkBox input:required, + .annotationLayer .buttonWidgetAnnotation.radioButton input:required { + outline: 1.5px solid selectedItem; + } +} + +.annotationLayer { + position: absolute; + top: 0; + left: 0; + pointer-events: none; + transform-origin: 0 0; +} + +.annotationLayer section { + position: absolute; + text-align: initial; + pointer-events: auto; + box-sizing: border-box; + transform-origin: 0 0; +} + +.annotationLayer .linkAnnotation > a, +.annotationLayer .buttonWidgetAnnotation.pushButton > a { + position: absolute; + font-size: 1em; + top: 0; + left: 0; + width: 100%; + height: 100%; +} + +.annotationLayer .buttonWidgetAnnotation.pushButton > canvas { + width: 100%; + height: 100%; +} + +.annotationLayer .linkAnnotation > a:hover, +.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover { + opacity: 0.2; + background: rgba(255, 255, 0, 1); + box-shadow: 0 2px 10px rgba(255, 255, 0, 1); +} + +.annotationLayer .textAnnotation img { + position: absolute; + cursor: pointer; + width: 100%; + height: 100%; +} + +.annotationLayer .textWidgetAnnotation input, +.annotationLayer .textWidgetAnnotation textarea, +.annotationLayer .choiceWidgetAnnotation select, +.annotationLayer .buttonWidgetAnnotation.checkBox input, +.annotationLayer .buttonWidgetAnnotation.radioButton input { + background-image: var(--annotation-unfocused-field-background); + border: 1px solid transparent; + box-sizing: border-box; + font: calc(9px * var(--scale-factor)) sans-serif; + height: 100%; + margin: 0; + vertical-align: top; + width: 100%; +} + +.annotationLayer .textWidgetAnnotation input:required, +.annotationLayer .textWidgetAnnotation textarea:required, +.annotationLayer .choiceWidgetAnnotation select:required, +.annotationLayer .buttonWidgetAnnotation.checkBox input:required, +.annotationLayer .buttonWidgetAnnotation.radioButton input:required { + outline: 1.5px solid red; +} + +.annotationLayer .choiceWidgetAnnotation select option { + padding: 0; +} + +.annotationLayer .buttonWidgetAnnotation.radioButton input { + border-radius: 50%; +} + +.annotationLayer .textWidgetAnnotation textarea { + resize: none; +} + +.annotationLayer .textWidgetAnnotation input[disabled], +.annotationLayer .textWidgetAnnotation textarea[disabled], +.annotationLayer .choiceWidgetAnnotation select[disabled], +.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled], +.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] { + background: none; + border: 1px solid transparent; + cursor: not-allowed; +} + +.annotationLayer .textWidgetAnnotation input:hover, +.annotationLayer .textWidgetAnnotation textarea:hover, +.annotationLayer .choiceWidgetAnnotation select:hover, +.annotationLayer .buttonWidgetAnnotation.checkBox input:hover, +.annotationLayer .buttonWidgetAnnotation.radioButton input:hover { + border: 1px solid rgba(0, 0, 0, 1); +} + +.annotationLayer .textWidgetAnnotation input:focus, +.annotationLayer .textWidgetAnnotation textarea:focus, +.annotationLayer .choiceWidgetAnnotation select:focus { + background: none; + border: 1px solid transparent; +} + +.annotationLayer .textWidgetAnnotation input :focus, +.annotationLayer .textWidgetAnnotation textarea :focus, +.annotationLayer .choiceWidgetAnnotation select :focus, +.annotationLayer .buttonWidgetAnnotation.checkBox :focus, +.annotationLayer .buttonWidgetAnnotation.radioButton :focus { + background-image: none; + background-color: transparent; + outline: auto; +} + +.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, +.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after, +.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before { + background-color: CanvasText; + content: ""; + display: block; + position: absolute; +} + +.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, +.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after { + height: 80%; + left: 45%; + width: 1px; +} + +.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before { + transform: rotate(45deg); +} + +.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after { + transform: rotate(-45deg); +} + +.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before { + border-radius: 50%; + height: 50%; + left: 30%; + top: 20%; + width: 50%; +} + +.annotationLayer .textWidgetAnnotation input.comb { + font-family: monospace; + padding-left: 2px; + padding-right: 0; +} + +.annotationLayer .textWidgetAnnotation input.comb:focus { + /* + * Letter spacing is placed on the right side of each character. Hence, the + * letter spacing of the last character may be placed outside the visible + * area, causing horizontal scrolling. We avoid this by extending the width + * when the element has focus and revert this when it loses focus. + */ + width: 103%; +} + +.annotationLayer .buttonWidgetAnnotation.checkBox input, +.annotationLayer .buttonWidgetAnnotation.radioButton input { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; +} + +.annotationLayer .popupTriggerArea { + height: 100%; + width: 100%; +} + +.annotationLayer .popupWrapper { + position: absolute; + font-size: calc(9px * var(--scale-factor)); + width: 100%; + min-width: calc(180px * var(--scale-factor)); + pointer-events: none; +} + +.annotationLayer .popup { + position: absolute; + max-width: calc(180px * var(--scale-factor)); + background-color: rgba(255, 255, 153, 1); + box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) + rgba(136, 136, 136, 1); + border-radius: calc(2px * var(--scale-factor)); + padding: calc(6px * var(--scale-factor)); + margin-left: calc(5px * var(--scale-factor)); + cursor: pointer; + font: message-box; + white-space: normal; + word-wrap: break-word; + pointer-events: auto; +} + +.annotationLayer .popup > * { + font-size: calc(9px * var(--scale-factor)); +} + +.annotationLayer .popup h1 { + display: inline-block; +} + +.annotationLayer .popupDate { + display: inline-block; + margin-left: calc(5px * var(--scale-factor)); +} + +.annotationLayer .popupContent { + border-top: 1px solid rgba(51, 51, 51, 1); + margin-top: calc(2px * var(--scale-factor)); + padding-top: calc(2px * var(--scale-factor)); +} + +.annotationLayer .richText > * { + white-space: pre-wrap; + font-size: calc(9px * var(--scale-factor)); +} + +.annotationLayer .highlightAnnotation, +.annotationLayer .underlineAnnotation, +.annotationLayer .squigglyAnnotation, +.annotationLayer .strikeoutAnnotation, +.annotationLayer .freeTextAnnotation, +.annotationLayer .lineAnnotation svg line, +.annotationLayer .squareAnnotation svg rect, +.annotationLayer .circleAnnotation svg ellipse, +.annotationLayer .polylineAnnotation svg polyline, +.annotationLayer .polygonAnnotation svg polygon, +.annotationLayer .caretAnnotation, +.annotationLayer .inkAnnotation svg polyline, +.annotationLayer .stampAnnotation, +.annotationLayer .fileAttachmentAnnotation { + cursor: pointer; +} + +.annotationLayer section svg { + position: absolute; + width: 100%; + height: 100%; +} + +.annotationLayer .annotationTextContent { + position: absolute; + width: 100%; + height: 100%; + opacity: 0; + color: transparent; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + pointer-events: none; +} + +.annotationLayer .annotationTextContent span { + width: 100%; + display: inline-block; +} + + +:root { + --xfa-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>"); +} + +@media (forced-colors: active) { + .xfaLayer *:required { + outline: 1.5px solid selectedItem; + } +} + +.xfaLayer .highlight { + margin: -1px; + padding: 1px; + background-color: rgba(239, 203, 237, 1); + border-radius: 4px; +} + +.xfaLayer .highlight.appended { + position: initial; +} + +.xfaLayer .highlight.begin { + border-radius: 4px 0 0 4px; +} + +.xfaLayer .highlight.end { + border-radius: 0 4px 4px 0; +} + +.xfaLayer .highlight.middle { + border-radius: 0; +} + +.xfaLayer .highlight.selected { + background-color: rgba(203, 223, 203, 1); +} + +.xfaLayer ::-moz-selection { + background: rgba(0, 0, 255, 1); +} + +.xfaLayer ::selection { + background: rgba(0, 0, 255, 1); +} + +.xfaPage { + overflow: hidden; + position: relative; +} + +.xfaContentarea { + position: absolute; +} + +.xfaPrintOnly { + display: none; +} + +.xfaLayer { + position: absolute; + text-align: initial; + top: 0; + left: 0; + transform-origin: 0 0; + line-height: 1.2; +} + +.xfaLayer * { + color: inherit; + font: inherit; + font-style: inherit; + font-weight: inherit; + font-kerning: inherit; + letter-spacing: -0.01px; + text-align: inherit; + text-decoration: inherit; + box-sizing: border-box; + background-color: transparent; + padding: 0; + margin: 0; + pointer-events: auto; + line-height: inherit; +} + +.xfaLayer *:required { + outline: 1.5px solid red; +} + +.xfaLayer div { + pointer-events: none; +} + +.xfaLayer svg { + pointer-events: none; +} + +.xfaLayer svg * { + pointer-events: none; +} + +.xfaLayer a { + color: blue; +} + +.xfaRich li { + margin-left: 3em; +} + +.xfaFont { + color: black; + font-weight: normal; + font-kerning: none; + font-size: 10px; + font-style: normal; + letter-spacing: 0; + text-decoration: none; + vertical-align: 0; +} + +.xfaCaption { + overflow: hidden; + flex: 0 0 auto; +} + +.xfaCaptionForCheckButton { + overflow: hidden; + flex: 1 1 auto; +} + +.xfaLabel { + height: 100%; + width: 100%; +} + +.xfaLeft { + display: flex; + flex-direction: row; + align-items: center; +} + +.xfaRight { + display: flex; + flex-direction: row-reverse; + align-items: center; +} + +.xfaLeft > .xfaCaption, +.xfaLeft > .xfaCaptionForCheckButton, +.xfaRight > .xfaCaption, +.xfaRight > .xfaCaptionForCheckButton { + max-height: 100%; +} + +.xfaTop { + display: flex; + flex-direction: column; + align-items: flex-start; +} + +.xfaBottom { + display: flex; + flex-direction: column-reverse; + align-items: flex-start; +} + +.xfaTop > .xfaCaption, +.xfaTop > .xfaCaptionForCheckButton, +.xfaBottom > .xfaCaption, +.xfaBottom > .xfaCaptionForCheckButton { + width: 100%; +} + +.xfaBorder { + background-color: transparent; + position: absolute; + pointer-events: none; +} + +.xfaWrapped { + width: 100%; + height: 100%; +} + +.xfaTextfield:focus, +.xfaSelect:focus { + background-image: none; + background-color: transparent; + outline: auto; + outline-offset: -1px; +} + +.xfaCheckbox:focus, +.xfaRadio:focus { + outline: auto; +} + +.xfaTextfield, +.xfaSelect { + height: 100%; + width: 100%; + flex: 1 1 auto; + border: none; + resize: none; + background-image: var(--xfa-unfocused-field-background); +} + +.xfaTop > .xfaTextfield, +.xfaTop > .xfaSelect, +.xfaBottom > .xfaTextfield, +.xfaBottom > .xfaSelect { + flex: 0 1 auto; +} + +.xfaButton { + cursor: pointer; + width: 100%; + height: 100%; + border: none; + text-align: center; +} + +.xfaLink { + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; +} + +.xfaCheckbox, +.xfaRadio { + width: 100%; + height: 100%; + flex: 0 0 auto; + border: none; +} + +.xfaRich { + white-space: pre-wrap; + width: 100%; + height: 100%; +} + +.xfaImage { + -o-object-position: left top; + object-position: left top; + -o-object-fit: contain; + object-fit: contain; + width: 100%; + height: 100%; +} + +.xfaLrTb, +.xfaRlTb, +.xfaTb { + display: flex; + flex-direction: column; + align-items: stretch; +} + +.xfaLr { + display: flex; + flex-direction: row; + align-items: stretch; +} + +.xfaRl { + display: flex; + flex-direction: row-reverse; + align-items: stretch; +} + +.xfaTb > div { + justify-content: left; +} + +.xfaPosition { + position: relative; +} + +.xfaArea { + position: relative; +} + +.xfaValignMiddle { + display: flex; + align-items: center; +} + +.xfaTable { + display: flex; + flex-direction: column; + align-items: stretch; +} + +.xfaTable .xfaRow { + display: flex; + flex-direction: row; + align-items: stretch; +} + +.xfaTable .xfaRlRow { + display: flex; + flex-direction: row-reverse; + align-items: stretch; + flex: 1; +} + +.xfaTable .xfaRlRow > div { + flex: 1; +} + +.xfaNonInteractive input, +.xfaNonInteractive textarea, +.xfaDisabled input, +.xfaDisabled textarea, +.xfaReadOnly input, +.xfaReadOnly textarea { + background: initial; +} + +@media print { + .xfaTextfield, + .xfaSelect { + background: transparent; + } + + .xfaSelect { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + text-indent: 1px; + text-overflow: ""; + } +} + + +:root { + --focus-outline: solid 2px blue; + --hover-outline: dashed 2px blue; + --freetext-line-height: 1.35; + --freetext-padding: 2px; + --editorInk-editing-cursor: url(images/toolbarButton-editorInk.svg) 0 16; +} + +@media (forced-colors: active) { + :root { + --focus-outline: solid 3px ButtonText; + --hover-outline: dashed 3px ButtonText; + } +} + +[data-editor-rotation="90"] { + transform: rotate(90deg); +} +[data-editor-rotation="180"] { + transform: rotate(180deg); +} +[data-editor-rotation="270"] { + transform: rotate(270deg); +} + +.annotationEditorLayer { + background: transparent; + position: absolute; + top: 0; + left: 0; + font-size: calc(100px * var(--scale-factor)); + transform-origin: 0 0; +} + +.annotationEditorLayer .selectedEditor { + outline: var(--focus-outline); + resize: none; +} + +.annotationEditorLayer .freeTextEditor { + position: absolute; + background: transparent; + border-radius: 3px; + padding: calc(var(--freetext-padding) * var(--scale-factor)); + resize: none; + width: auto; + height: auto; + z-index: 1; + transform-origin: 0 0; + touch-action: none; +} + +.annotationEditorLayer .freeTextEditor .internal { + background: transparent; + border: none; + top: 0; + left: 0; + overflow: visible; + white-space: nowrap; + resize: none; + font: 10px sans-serif; + line-height: var(--freetext-line-height); +} + +.annotationEditorLayer .freeTextEditor .overlay { + position: absolute; + display: none; + background: transparent; + top: 0; + left: 0; + width: 100%; + height: 100%; +} + +.annotationEditorLayer .freeTextEditor .overlay.enabled { + display: block; +} + +.annotationEditorLayer .freeTextEditor .internal:empty::before { + content: attr(default-content); + color: gray; +} + +.annotationEditorLayer .freeTextEditor .internal:focus { + outline: none; +} + +.annotationEditorLayer .inkEditor.disabled { + resize: none; +} + +.annotationEditorLayer .inkEditor.disabled.selectedEditor { + resize: horizontal; +} + +.annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor), +.annotationEditorLayer .inkEditor:hover:not(.selectedEditor) { + outline: var(--hover-outline); +} + +.annotationEditorLayer .inkEditor { + position: absolute; + background: transparent; + border-radius: 3px; + overflow: auto; + width: 100%; + height: 100%; + z-index: 1; + transform-origin: 0 0; + cursor: auto; +} + +.annotationEditorLayer .inkEditor.editing { + resize: none; + cursor: var(--editorInk-editing-cursor), pointer; +} + +.annotationEditorLayer .inkEditor .inkEditorCanvas { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + touch-action: none; +} + +:root { + --viewer-container-height: 0; + --pdfViewer-padding-bottom: 0; + --page-margin: 1px auto -8px; + --page-border: 9px solid transparent; + --page-border-image: url(images/shadow.png) 9 9 repeat; + --spreadHorizontalWrapped-margin-LR: -3.5px; + --scale-factor: 1; +} + +@media screen and (forced-colors: active) { + :root { + --pdfViewer-padding-bottom: 9px; + --page-margin: 8px auto -1px; + --page-border: 1px solid CanvasText; + --page-border-image: none; + --spreadHorizontalWrapped-margin-LR: 3.5px; + } +} + +[data-main-rotation="90"] { + transform: rotate(90deg) translateY(-100%); +} +[data-main-rotation="180"] { + transform: rotate(180deg) translate(-100%, -100%); +} +[data-main-rotation="270"] { + transform: rotate(270deg) translateX(-100%); +} + +.pdfViewer { + padding-bottom: var(--pdfViewer-padding-bottom); +} + +.pdfViewer .canvasWrapper { + overflow: hidden; +} + +.pdfViewer .page { + direction: ltr; + width: 816px; + height: 1056px; + margin: var(--page-margin); + position: relative; + overflow: visible; + border: var(--page-border); + -o-border-image: var(--page-border-image); + border-image: var(--page-border-image); + background-clip: content-box; + background-color: rgba(255, 255, 255, 1); +} + +.pdfViewer .dummyPage { + position: relative; + width: 0; + height: var(--viewer-container-height); +} + +.pdfViewer.removePageBorders .page { + margin: 0 auto 10px; + border: none; +} + +.pdfViewer.singlePageView { + display: inline-block; +} + +.pdfViewer.singlePageView .page { + margin: 0; + border: none; +} + +.pdfViewer.scrollHorizontal, +.pdfViewer.scrollWrapped, +.spread { + margin-left: 3.5px; + margin-right: 3.5px; + text-align: center; +} + +.pdfViewer.scrollHorizontal, +.spread { + white-space: nowrap; +} + +.pdfViewer.removePageBorders, +.pdfViewer.scrollHorizontal .spread, +.pdfViewer.scrollWrapped .spread { + margin-left: 0; + margin-right: 0; +} + +.spread .page, +.spread .dummyPage, +.pdfViewer.scrollHorizontal .page, +.pdfViewer.scrollWrapped .page, +.pdfViewer.scrollHorizontal .spread, +.pdfViewer.scrollWrapped .spread { + display: inline-block; + vertical-align: middle; +} + +.spread .page, +.pdfViewer.scrollHorizontal .page, +.pdfViewer.scrollWrapped .page { + margin-left: var(--spreadHorizontalWrapped-margin-LR); + margin-right: var(--spreadHorizontalWrapped-margin-LR); +} + +.pdfViewer.removePageBorders .spread .page, +.pdfViewer.removePageBorders.scrollHorizontal .page, +.pdfViewer.removePageBorders.scrollWrapped .page { + margin-left: 5px; + margin-right: 5px; +} + +.pdfViewer .page canvas { + margin: 0; + display: block; +} + +.pdfViewer .page canvas[hidden] { + display: none; +} + +.pdfViewer .page .loadingIcon { + position: absolute; + display: block; + left: 0; + top: 0; + right: 0; + bottom: 0; + background: url("images/loading-icon.gif") center no-repeat; +} +.pdfViewer .page .loadingIcon.notVisible { + background: none; +} + +.pdfViewer.enablePermissions .textLayer span { + -webkit-user-select: none !important; + -moz-user-select: none !important; + user-select: none !important; + cursor: not-allowed; +} + +.pdfPresentationMode .pdfViewer { + padding-bottom: 0; +} + +.pdfPresentationMode .spread { + margin: 0; +} + +.pdfPresentationMode .pdfViewer .page { + margin: 0 auto; + border: 2px solid transparent; +} + +:root { + --dir-factor: 1; + --sidebar-width: 200px; + --sidebar-transition-duration: 200ms; + --sidebar-transition-timing-function: ease; + --scale-select-container-width: 140px; + --scale-select-overflow: 22px; + + --toolbar-icon-opacity: 0.7; + --doorhanger-icon-opacity: 0.9; + + --main-color: rgba(12, 12, 13, 1); + --body-bg-color: rgba(237, 237, 240, 1); + --errorWrapper-bg-color: rgba(255, 110, 110, 1); + --progressBar-percent: 0%; + --progressBar-end-offset: 0; + --progressBar-color: rgba(10, 132, 255, 1); + --progressBar-indeterminate-bg-color: rgba(221, 221, 222, 1); + --progressBar-indeterminate-blend-color: rgba(116, 177, 239, 1); + --scrollbar-color: auto; + --scrollbar-bg-color: auto; + --toolbar-icon-bg-color: rgba(0, 0, 0, 1); + --toolbar-icon-hover-bg-color: rgba(0, 0, 0, 1); + + --sidebar-narrow-bg-color: rgba(237, 237, 240, 0.9); + --sidebar-toolbar-bg-color: rgba(245, 246, 247, 1); + --toolbar-bg-color: rgba(249, 249, 250, 1); + --toolbar-border-color: rgba(204, 204, 204, 1); + --button-hover-color: rgba(221, 222, 223, 1); + --toggled-btn-color: rgba(0, 0, 0, 1); + --toggled-btn-bg-color: rgba(0, 0, 0, 0.3); + --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4); + --dropdown-btn-bg-color: rgba(215, 215, 219, 1); + --separator-color: rgba(0, 0, 0, 0.3); + --field-color: rgba(6, 6, 6, 1); + --field-bg-color: rgba(255, 255, 255, 1); + --field-border-color: rgba(187, 187, 188, 1); + --treeitem-color: rgba(0, 0, 0, 0.8); + --treeitem-hover-color: rgba(0, 0, 0, 0.9); + --treeitem-selected-color: rgba(0, 0, 0, 0.9); + --treeitem-selected-bg-color: rgba(0, 0, 0, 0.25); + --sidebaritem-bg-color: rgba(0, 0, 0, 0.15); + --doorhanger-bg-color: rgba(255, 255, 255, 1); + --doorhanger-border-color: rgba(12, 12, 13, 0.2); + --doorhanger-hover-color: rgba(12, 12, 13, 1); + --doorhanger-hover-bg-color: rgba(237, 237, 237, 1); + --doorhanger-separator-color: rgba(222, 222, 222, 1); + --dialog-button-border: 0 none; + --dialog-button-bg-color: rgba(12, 12, 13, 0.1); + --dialog-button-hover-bg-color: rgba(12, 12, 13, 0.3); + + --loading-icon: url(images/loading.svg); + --treeitem-expanded-icon: url(images/treeitem-expanded.svg); + --treeitem-collapsed-icon: url(images/treeitem-collapsed.svg); + --toolbarButton-editorFreeText-icon: url(images/toolbarButton-editorFreeText.svg); + --toolbarButton-editorInk-icon: url(images/toolbarButton-editorInk.svg); + --toolbarButton-menuArrow-icon: url(images/toolbarButton-menuArrow.svg); + --toolbarButton-sidebarToggle-icon: url(images/toolbarButton-sidebarToggle.svg); + --toolbarButton-secondaryToolbarToggle-icon: url(images/toolbarButton-secondaryToolbarToggle.svg); + --toolbarButton-pageUp-icon: url(images/toolbarButton-pageUp.svg); + --toolbarButton-pageDown-icon: url(images/toolbarButton-pageDown.svg); + --toolbarButton-zoomOut-icon: url(images/toolbarButton-zoomOut.svg); + --toolbarButton-zoomIn-icon: url(images/toolbarButton-zoomIn.svg); + --toolbarButton-presentationMode-icon: url(images/toolbarButton-presentationMode.svg); + --toolbarButton-print-icon: url(images/toolbarButton-print.svg); + --toolbarButton-openFile-icon: url(images/toolbarButton-openFile.svg); + --toolbarButton-download-icon: url(images/toolbarButton-download.svg); + --toolbarButton-bookmark-icon: url(images/toolbarButton-bookmark.svg); + --toolbarButton-viewThumbnail-icon: url(images/toolbarButton-viewThumbnail.svg); + --toolbarButton-viewOutline-icon: url(images/toolbarButton-viewOutline.svg); + --toolbarButton-viewAttachments-icon: url(images/toolbarButton-viewAttachments.svg); + --toolbarButton-viewLayers-icon: url(images/toolbarButton-viewLayers.svg); + --toolbarButton-currentOutlineItem-icon: url(images/toolbarButton-currentOutlineItem.svg); + --toolbarButton-search-icon: url(images/toolbarButton-search.svg); + --findbarButton-previous-icon: url(images/findbarButton-previous.svg); + --findbarButton-next-icon: url(images/findbarButton-next.svg); + --secondaryToolbarButton-firstPage-icon: url(images/secondaryToolbarButton-firstPage.svg); + --secondaryToolbarButton-lastPage-icon: url(images/secondaryToolbarButton-lastPage.svg); + --secondaryToolbarButton-rotateCcw-icon: url(images/secondaryToolbarButton-rotateCcw.svg); + --secondaryToolbarButton-rotateCw-icon: url(images/secondaryToolbarButton-rotateCw.svg); + --secondaryToolbarButton-selectTool-icon: url(images/secondaryToolbarButton-selectTool.svg); + --secondaryToolbarButton-handTool-icon: url(images/secondaryToolbarButton-handTool.svg); + --secondaryToolbarButton-scrollPage-icon: url(images/secondaryToolbarButton-scrollPage.svg); + --secondaryToolbarButton-scrollVertical-icon: url(images/secondaryToolbarButton-scrollVertical.svg); + --secondaryToolbarButton-scrollHorizontal-icon: url(images/secondaryToolbarButton-scrollHorizontal.svg); + --secondaryToolbarButton-scrollWrapped-icon: url(images/secondaryToolbarButton-scrollWrapped.svg); + --secondaryToolbarButton-spreadNone-icon: url(images/secondaryToolbarButton-spreadNone.svg); + --secondaryToolbarButton-spreadOdd-icon: url(images/secondaryToolbarButton-spreadOdd.svg); + --secondaryToolbarButton-spreadEven-icon: url(images/secondaryToolbarButton-spreadEven.svg); + --secondaryToolbarButton-documentProperties-icon: url(images/secondaryToolbarButton-documentProperties.svg); +} + +[dir="rtl"]:root { + --dir-factor: -1; +} + +@media (prefers-color-scheme: dark) { + :root { + --main-color: rgba(249, 249, 250, 1); + --body-bg-color: rgba(42, 42, 46, 1); + --errorWrapper-bg-color: rgba(169, 14, 14, 1); + --progressBar-color: rgba(0, 96, 223, 1); + --progressBar-indeterminate-bg-color: rgba(40, 40, 43, 1); + --progressBar-indeterminate-blend-color: rgba(20, 68, 133, 1); + --scrollbar-color: rgba(121, 121, 123, 1); + --scrollbar-bg-color: rgba(35, 35, 39, 1); + --toolbar-icon-bg-color: rgba(255, 255, 255, 1); + --toolbar-icon-hover-bg-color: rgba(255, 255, 255, 1); + + --sidebar-narrow-bg-color: rgba(42, 42, 46, 0.9); + --sidebar-toolbar-bg-color: rgba(50, 50, 52, 1); + --toolbar-bg-color: rgba(56, 56, 61, 1); + --toolbar-border-color: rgba(12, 12, 13, 1); + --button-hover-color: rgba(102, 102, 103, 1); + --toggled-btn-color: rgba(255, 255, 255, 1); + --toggled-btn-bg-color: rgba(0, 0, 0, 0.3); + --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4); + --dropdown-btn-bg-color: rgba(74, 74, 79, 1); + --separator-color: rgba(0, 0, 0, 0.3); + --field-color: rgba(250, 250, 250, 1); + --field-bg-color: rgba(64, 64, 68, 1); + --field-border-color: rgba(115, 115, 115, 1); + --treeitem-color: rgba(255, 255, 255, 0.8); + --treeitem-hover-color: rgba(255, 255, 255, 0.9); + --treeitem-selected-color: rgba(255, 255, 255, 0.9); + --treeitem-selected-bg-color: rgba(255, 255, 255, 0.25); + --sidebaritem-bg-color: rgba(255, 255, 255, 0.15); + --doorhanger-bg-color: rgba(74, 74, 79, 1); + --doorhanger-border-color: rgba(39, 39, 43, 1); + --doorhanger-hover-color: rgba(249, 249, 250, 1); + --doorhanger-hover-bg-color: rgba(93, 94, 98, 1); + --doorhanger-separator-color: rgba(92, 92, 97, 1); + --dialog-button-bg-color: rgba(92, 92, 97, 1); + --dialog-button-hover-bg-color: rgba(115, 115, 115, 1); + + /* This image is used in <input> elements, which unfortunately means that + * the `mask-image` approach used with all of the other images doesn't work + * here; hence why we still have two versions of this particular image. */ + --loading-icon: url(images/loading-dark.svg); + } +} + +@media screen and (forced-colors: active) { + :root { + --button-hover-color: Highlight; + --doorhanger-hover-bg-color: Highlight; + --toolbar-icon-opacity: 1; + --toolbar-icon-bg-color: ButtonText; + --toolbar-icon-hover-bg-color: ButtonFace; + --toggled-btn-color: HighlightText; + --toggled-btn-bg-color: LinkText; + --doorhanger-hover-color: ButtonFace; + --doorhanger-border-color-whcm: 1px solid ButtonText; + --doorhanger-triangle-opacity-whcm: 0; + --dialog-button-border: 1px solid Highlight; + --dialog-button-hover-bg-color: Highlight; + --dialog-button-hover-color: ButtonFace; + --field-border-color: ButtonText; + } +} + +* { + padding: 0; + margin: 0; +} + +html, +body { + height: 100%; + width: 100%; +} + +body { + background-color: var(--body-bg-color); +} + +body, +input, +button, +select { + font: message-box; + outline: none; + scrollbar-color: var(--scrollbar-color) var(--scrollbar-bg-color); +} + +.hidden, +[hidden] { + display: none !important; +} + +#viewerContainer.pdfPresentationMode:-webkit-full-screen { + top: 0; + background-color: rgba(0, 0, 0, 1); + width: 100%; + height: 100%; + overflow: hidden; + cursor: none; + -webkit-user-select: none; + user-select: none; +} + +#viewerContainer.pdfPresentationMode:fullscreen { + top: 0; + background-color: rgba(0, 0, 0, 1); + width: 100%; + height: 100%; + overflow: hidden; + cursor: none; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} + +.pdfPresentationMode:-webkit-full-screen a:not(.internalLink) { + display: none; +} + +.pdfPresentationMode:fullscreen a:not(.internalLink) { + display: none; +} + +.pdfPresentationMode:-webkit-full-screen .textLayer span { + cursor: none; +} + +.pdfPresentationMode:fullscreen .textLayer span { + cursor: none; +} + +.pdfPresentationMode.pdfPresentationModeControls > *, +.pdfPresentationMode.pdfPresentationModeControls .textLayer span { + cursor: default; +} + +#outerContainer { + width: 100%; + height: 100%; + position: relative; +} + +[dir="ltr"] #sidebarContainer { + left: calc(-1 * var(--sidebar-width)); +} + +[dir="rtl"] #sidebarContainer { + right: calc(-1 * var(--sidebar-width)); +} + +[dir="ltr"] #sidebarContainer { + border-right: var(--doorhanger-border-color-whcm); +} + +[dir="rtl"] #sidebarContainer { + border-left: var(--doorhanger-border-color-whcm); +} + +[dir="ltr"] #sidebarContainer { + transition-property: left; +} + +[dir="rtl"] #sidebarContainer { + transition-property: right; +} + +#sidebarContainer { + position: absolute; + top: 32px; + bottom: 0; + inset-inline-start: calc(-1 * var(--sidebar-width)); + width: var(--sidebar-width); + visibility: hidden; + z-index: 100; + border-top: 1px solid rgba(51, 51, 51, 1); + -webkit-border-end: var(--doorhanger-border-color-whcm); + border-inline-end: var(--doorhanger-border-color-whcm); + transition-property: inset-inline-start; + transition-duration: var(--sidebar-transition-duration); + transition-timing-function: var(--sidebar-transition-timing-function); +} + +#outerContainer.sidebarMoving #sidebarContainer, +#outerContainer.sidebarOpen #sidebarContainer { + visibility: visible; +} +[dir="ltr"] #outerContainer.sidebarOpen #sidebarContainer { + left: 0; +} +[dir="rtl"] #outerContainer.sidebarOpen #sidebarContainer { + right: 0; +} +#outerContainer.sidebarOpen #sidebarContainer { + inset-inline-start: 0; +} + +#mainContainer { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + min-width: 350px; +} + +[dir="ltr"] #sidebarContent { + left: 0; +} + +[dir="rtl"] #sidebarContent { + right: 0; +} + +#sidebarContent { + top: 32px; + bottom: 0; + inset-inline-start: 0; + overflow: auto; + position: absolute; + width: 100%; + background-color: rgba(0, 0, 0, 0.1); + box-shadow: inset calc(-1px * var(--dir-factor)) 0 0 rgba(0, 0, 0, 0.25); +} + +#viewerContainer { + overflow: auto; + position: absolute; + top: 32px; + right: 0; + bottom: 0; + left: 0; + outline: none; +} +#viewerContainer:not(.pdfPresentationMode) { + transition-duration: var(--sidebar-transition-duration); + transition-timing-function: var(--sidebar-transition-timing-function); +} + +[dir="ltr"] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) { + left: var(--sidebar-width); +} + +[dir="rtl"] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) { + right: var(--sidebar-width); +} + +[dir="ltr"] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) { + transition-property: left; +} + +[dir="rtl"] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) { + transition-property: right; +} + +#outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) { + inset-inline-start: var(--sidebar-width); + transition-property: inset-inline-start; +} + +.toolbar { + position: relative; + left: 0; + right: 0; + z-index: 9999; + cursor: default; +} + +#toolbarContainer { + width: 100%; +} + +#toolbarSidebar { + width: 100%; + height: 32px; + background-color: var(--sidebar-toolbar-bg-color); + box-shadow: inset calc(-1px * var(--dir-factor)) 0 0 rgba(0, 0, 0, 0.25), + 0 1px 0 rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1); +} + +[dir="ltr"] #sidebarResizer { + right: -6px; +} + +[dir="rtl"] #sidebarResizer { + left: -6px; +} + +#sidebarResizer { + position: absolute; + top: 0; + bottom: 0; + inset-inline-end: -6px; + width: 6px; + z-index: 200; + cursor: ew-resize; +} + +#toolbarContainer, +.findbar, +.secondaryToolbar, +.editorParamsToolbar { + position: relative; + height: 32px; + background-color: var(--toolbar-bg-color); + box-shadow: 0 1px 0 var(--toolbar-border-color); +} + +#toolbarViewer { + height: 32px; +} + +[dir="ltr"] #loadingBar { + left: 0; + right: var(--progressBar-end-offset); +} + +[dir="rtl"] #loadingBar { + right: 0; + left: var(--progressBar-end-offset); +} + +[dir="ltr"] #loadingBar { + transition-property: left; +} + +[dir="rtl"] #loadingBar { + transition-property: right; +} + +#loadingBar { + position: absolute; + inset-inline: 0 var(--progressBar-end-offset); + height: 4px; + background-color: var(--body-bg-color); + border-bottom: 1px solid var(--toolbar-border-color); + transition-property: inset-inline-start; + transition-duration: var(--sidebar-transition-duration); + transition-timing-function: var(--sidebar-transition-timing-function); +} + +[dir="ltr"] #outerContainer.sidebarOpen #loadingBar { + left: var(--sidebar-width); +} + +[dir="rtl"] #outerContainer.sidebarOpen #loadingBar { + right: var(--sidebar-width); +} + +#outerContainer.sidebarOpen #loadingBar { + inset-inline-start: var(--sidebar-width); +} + +#loadingBar .progress { + position: absolute; + top: 0; + left: 0; + width: 100%; + transform: scaleX(var(--progressBar-percent)); + transform-origin: 0 0; + height: 100%; + background-color: var(--progressBar-color); + overflow: hidden; + transition: transform 200ms; +} + +@-webkit-keyframes progressIndeterminate { + 0% { + transform: translateX(-142px); + } + 100% { + transform: translateX(0); + } +} + +@keyframes progressIndeterminate { + 0% { + transform: translateX(-142px); + } + 100% { + transform: translateX(0); + } +} + +#loadingBar.indeterminate .progress { + transform: none; + background-color: var(--progressBar-indeterminate-bg-color); + transition: none; +} + +#loadingBar.indeterminate .progress .glimmer { + position: absolute; + top: 0; + left: 0; + height: 100%; + width: calc(100% + 150px); + background: repeating-linear-gradient( + 135deg, + var(--progressBar-indeterminate-blend-color) 0, + var(--progressBar-indeterminate-bg-color) 5px, + var(--progressBar-indeterminate-bg-color) 45px, + var(--progressBar-color) 55px, + var(--progressBar-color) 95px, + var(--progressBar-indeterminate-blend-color) 100px + ); + -webkit-animation: progressIndeterminate 1s linear infinite; + animation: progressIndeterminate 1s linear infinite; +} + +#outerContainer.sidebarResizing #sidebarContainer, +#outerContainer.sidebarResizing #viewerContainer, +#outerContainer.sidebarResizing #loadingBar { + /* Improve responsiveness and avoid visual glitches when the sidebar is resized. */ + transition-duration: 0s; +} + +.findbar, +.secondaryToolbar, +.editorParamsToolbar { + top: 32px; + position: absolute; + z-index: 10000; + height: auto; + padding: 0 4px; + margin: 4px 2px; + font-size: 12px; + line-height: 14px; + text-align: left; + cursor: default; +} + +[dir="ltr"] .findbar { + left: 64px; +} + +[dir="rtl"] .findbar { + right: 64px; +} + +.findbar { + inset-inline-start: 64px; + min-width: 300px; + background-color: var(--toolbar-bg-color); +} +.findbar > div { + height: 32px; +} +[dir="ltr"] .findbar > div#findbarInputContainer { + margin-right: 4px; +} +[dir="rtl"] .findbar > div#findbarInputContainer { + margin-left: 4px; +} +.findbar > div#findbarInputContainer { + -webkit-margin-end: 4px; + margin-inline-end: 4px; +} +.findbar.wrapContainers > div, +.findbar.wrapContainers > div#findbarMessageContainer > * { + clear: both; +} +.findbar.wrapContainers > div#findbarMessageContainer { + height: auto; +} + +.findbar input[type="checkbox"] { + pointer-events: none; +} + +.findbar label { + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} + +.findbar label:hover, +.findbar input:focus-visible + label { + color: var(--toggled-btn-color); + background-color: var(--button-hover-color); +} + +.findbar .toolbarField[type="checkbox"]:checked + .toolbarLabel { + background-color: var(--toggled-btn-bg-color) !important; + color: var(--toggled-btn-color); +} + +#findInput { + width: 200px; +} +#findInput::-moz-placeholder { + font-style: normal; +} +#findInput::placeholder { + font-style: normal; +} +#findInput[data-status="pending"] { + background-image: var(--loading-icon); + background-repeat: no-repeat; + background-position: calc(50% + 48% * var(--dir-factor)); +} +#findInput[data-status="notFound"] { + background-color: rgba(255, 102, 102, 1); +} + +[dir="ltr"] .secondaryToolbar,[dir="ltr"] +.editorParamsToolbar { + right: 4px; +} + +[dir="rtl"] .secondaryToolbar,[dir="rtl"] +.editorParamsToolbar { + left: 4px; +} + +.secondaryToolbar, +.editorParamsToolbar { + padding: 6px 0 10px; + inset-inline-end: 4px; + height: auto; + z-index: 30000; + background-color: var(--doorhanger-bg-color); +} + +.editorParamsToolbarContainer { + width: 220px; + margin-bottom: -4px; +} + +.editorParamsToolbarContainer > .editorParamsSetter { + min-height: 26px; + display: flex; + align-items: center; + justify-content: space-between; + padding-left: 10px; + padding-right: 10px; + padding-inline: 10px; +} + +[dir="ltr"] .editorParamsToolbarContainer .editorParamsLabel { + padding-right: 10px; +} + +[dir="rtl"] .editorParamsToolbarContainer .editorParamsLabel { + padding-left: 10px; +} + +.editorParamsToolbarContainer .editorParamsLabel { + -webkit-padding-end: 10px; + padding-inline-end: 10px; + flex: none; + color: var(--main-color); +} + +.editorParamsToolbarContainer .editorParamsColor { + width: 32px; + height: 32px; + flex: none; +} + +.editorParamsToolbarContainer .editorParamsSlider { + background-color: transparent; + width: 90px; + flex: 0 1 0; +} + +.editorParamsToolbarContainer .editorParamsSlider::-moz-range-progress { + background-color: black; +} + +.editorParamsToolbarContainer .editorParamsSlider::-webkit-slider-runnable-track, +.editorParamsToolbarContainer .editorParamsSlider::-moz-range-track { + background-color: black; +} + +.editorParamsToolbarContainer .editorParamsSlider::-webkit-slider-thumb, +.editorParamsToolbarContainer .editorParamsSlider::-moz-range-thumb { + background-color: white; +} + +#secondaryToolbarButtonContainer { + max-width: 220px; + min-height: 26px; + max-height: calc(var(--viewer-container-height) - 40px); + overflow-y: auto; + margin-bottom: -4px; +} + +[dir="ltr"] #editorInkParamsToolbar { + right: 40px; +} + +[dir="rtl"] #editorInkParamsToolbar { + left: 40px; +} + +#editorInkParamsToolbar { + inset-inline-end: 40px; + background-color: var(--toolbar-bg-color); +} + +[dir="ltr"] #editorFreeTextParamsToolbar { + right: 68px; +} + +[dir="rtl"] #editorFreeTextParamsToolbar { + left: 68px; +} + +#editorFreeTextParamsToolbar { + inset-inline-end: 68px; + background-color: var(--toolbar-bg-color); +} + +.doorHanger, +.doorHangerRight { + border-radius: 2px; + box-shadow: 0 1px 5px var(--doorhanger-border-color), + 0 0 0 1px var(--doorhanger-border-color); + border: var(--doorhanger-border-color-whcm); +} +.doorHanger:after, +.doorHanger:before, +.doorHangerRight:after, +.doorHangerRight:before { + bottom: 100%; + border: 8px solid rgba(0, 0, 0, 0); + content: " "; + height: 0; + width: 0; + position: absolute; + pointer-events: none; + opacity: var(--doorhanger-triangle-opacity-whcm); +} +[dir="ltr"] .doorHanger:after { + left: 10px; +} +[dir="rtl"] .doorHanger:after { + right: 10px; +} +[dir="ltr"] .doorHanger:after { + margin-left: -8px; +} +[dir="rtl"] .doorHanger:after { + margin-right: -8px; +} +.doorHanger:after { + inset-inline-start: 10px; + -webkit-margin-start: -8px; + margin-inline-start: -8px; + border-bottom-color: var(--toolbar-bg-color); +} +[dir="ltr"] .doorHangerRight:after { + right: 10px; +} +[dir="rtl"] .doorHangerRight:after { + left: 10px; +} +[dir="ltr"] .doorHangerRight:after { + margin-right: -8px; +} +[dir="rtl"] .doorHangerRight:after { + margin-left: -8px; +} +.doorHangerRight:after { + inset-inline-end: 10px; + -webkit-margin-end: -8px; + margin-inline-end: -8px; + border-bottom-color: var(--doorhanger-bg-color); +} +.doorHanger:before, +.doorHangerRight:before { + border-bottom-color: var(--doorhanger-border-color); + border-width: 9px; +} +[dir="ltr"] .doorHanger:before { + left: 10px; +} +[dir="rtl"] .doorHanger:before { + right: 10px; +} +[dir="ltr"] .doorHanger:before { + margin-left: -9px; +} +[dir="rtl"] .doorHanger:before { + margin-right: -9px; +} +.doorHanger:before { + inset-inline-start: 10px; + -webkit-margin-start: -9px; + margin-inline-start: -9px; +} +[dir="ltr"] .doorHangerRight:before { + right: 10px; +} +[dir="rtl"] .doorHangerRight:before { + left: 10px; +} +[dir="ltr"] .doorHangerRight:before { + margin-right: -9px; +} +[dir="rtl"] .doorHangerRight:before { + margin-left: -9px; +} +.doorHangerRight:before { + inset-inline-end: 10px; + -webkit-margin-end: -9px; + margin-inline-end: -9px; +} + +#findResultsCount { + background-color: rgba(217, 217, 217, 1); + color: rgba(82, 82, 82, 1); + text-align: center; + padding: 4px 5px; + margin: 5px; +} + +#findMsg { + color: rgba(251, 0, 0, 1); +} + +#findResultsCount:empty, +#findMsg:empty { + display: none; +} + +#toolbarViewerMiddle { + position: absolute; + left: 50%; + transform: translateX(-50%); +} + +[dir="ltr"] #toolbarViewerLeft,[dir="ltr"] +#toolbarSidebarLeft { + float: left; +} + +[dir="rtl"] #toolbarViewerLeft,[dir="rtl"] +#toolbarSidebarLeft { + float: right; +} + +#toolbarViewerLeft, +#toolbarSidebarLeft { + float: inline-start; +} +[dir="ltr"] #toolbarViewerRight,[dir="ltr"] +#toolbarSidebarRight { + float: right; +} +[dir="rtl"] #toolbarViewerRight,[dir="rtl"] +#toolbarSidebarRight { + float: left; +} +#toolbarViewerRight, +#toolbarSidebarRight { + float: inline-end; +} + +[dir="ltr"] #toolbarViewerLeft > *,[dir="ltr"] +#toolbarViewerMiddle > *,[dir="ltr"] +#toolbarViewerRight > *,[dir="ltr"] +#toolbarSidebarLeft *,[dir="ltr"] +#toolbarSidebarRight *,[dir="ltr"] +.findbar * { + float: left; +} + +[dir="rtl"] #toolbarViewerLeft > *,[dir="rtl"] +#toolbarViewerMiddle > *,[dir="rtl"] +#toolbarViewerRight > *,[dir="rtl"] +#toolbarSidebarLeft *,[dir="rtl"] +#toolbarSidebarRight *,[dir="rtl"] +.findbar * { + float: right; +} + +#toolbarViewerLeft > *, +#toolbarViewerMiddle > *, +#toolbarViewerRight > *, +#toolbarSidebarLeft *, +#toolbarSidebarRight *, +.findbar * { + position: relative; + float: inline-start; +} + +[dir="ltr"] #toolbarViewerLeft { + padding-left: 1px; +} + +[dir="rtl"] #toolbarViewerLeft { + padding-right: 1px; +} + +#toolbarViewerLeft { + -webkit-padding-start: 1px; + padding-inline-start: 1px; +} +[dir="ltr"] #toolbarViewerRight { + padding-right: 1px; +} +[dir="rtl"] #toolbarViewerRight { + padding-left: 1px; +} +#toolbarViewerRight { + -webkit-padding-end: 1px; + padding-inline-end: 1px; +} +[dir="ltr"] #toolbarSidebarRight { + padding-right: 2px; +} +[dir="rtl"] #toolbarSidebarRight { + padding-left: 2px; +} +#toolbarSidebarRight { + -webkit-padding-end: 2px; + padding-inline-end: 2px; +} + +.splitToolbarButton { + margin: 2px; + display: inline-block; +} +[dir="ltr"] .splitToolbarButton > .toolbarButton { + float: left; +} +[dir="rtl"] .splitToolbarButton > .toolbarButton { + float: right; +} +.splitToolbarButton > .toolbarButton { + float: inline-start; +} + +.toolbarButton, +.secondaryToolbarButton, +.dialogButton { + border: 0 none; + background: none; + width: 28px; + height: 28px; +} + +.dialogButton:hover, +.dialogButton:focus-visible { + background-color: var(--dialog-button-hover-bg-color); +} + +.dialogButton:hover > span, +.dialogButton:focus-visible > span { + color: var(--dialog-button-hover-color); +} + +.toolbarButton > span { + display: inline-block; + width: 0; + height: 0; + overflow: hidden; +} + +.toolbarButton[disabled], +.secondaryToolbarButton[disabled], +.dialogButton[disabled] { + opacity: 0.5; +} + +.splitToolbarButton > .toolbarButton:hover, +.splitToolbarButton > .toolbarButton:focus-visible, +.dropdownToolbarButton:hover { + background-color: var(--button-hover-color); +} +.splitToolbarButton > .toolbarButton { + position: relative; + margin: 0; +} +[dir="ltr"] #toolbarSidebar .splitToolbarButton > .toolbarButton { + margin-right: 2px; +} +[dir="rtl"] #toolbarSidebar .splitToolbarButton > .toolbarButton { + margin-left: 2px; +} +#toolbarSidebar .splitToolbarButton > .toolbarButton { + -webkit-margin-end: 2px; + margin-inline-end: 2px; +} + +[dir="ltr"] .splitToolbarButtonSeparator { + float: left; +} + +[dir="rtl"] .splitToolbarButtonSeparator { + float: right; +} + +.splitToolbarButtonSeparator { + float: inline-start; + margin: 4px 0; + width: 1px; + height: 20px; + background-color: var(--separator-color); +} + +.toolbarButton, +.dropdownToolbarButton, +.secondaryToolbarButton, +.dialogButton { + min-width: 16px; + margin: 2px 1px; + padding: 2px 6px 0; + border: none; + border-radius: 2px; + color: var(--main-color); + font-size: 12px; + line-height: 14px; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + cursor: default; + box-sizing: border-box; +} + +.toolbarButton:hover, +.toolbarButton:focus-visible { + background-color: var(--button-hover-color); +} +.secondaryToolbarButton:hover, +.secondaryToolbarButton:focus-visible { + background-color: var(--doorhanger-hover-bg-color); + color: var(--doorhanger-hover-color); +} + +.toolbarButton.toggled, +.splitToolbarButton.toggled > .toolbarButton.toggled, +.secondaryToolbarButton.toggled { + background-color: var(--toggled-btn-bg-color); + color: var(--toggled-btn-color); +} + +.toolbarButton.toggled::before, +.secondaryToolbarButton.toggled::before { + background-color: var(--toggled-btn-color); +} + +.toolbarButton.toggled:hover:active, +.splitToolbarButton.toggled > .toolbarButton.toggled:hover:active, +.secondaryToolbarButton.toggled:hover:active { + background-color: var(--toggled-hover-active-btn-color); +} + +.dropdownToolbarButton { + width: var(--scale-select-container-width); + padding: 0; + overflow: hidden; + background-color: var(--dropdown-btn-bg-color); +} +[dir="ltr"] .dropdownToolbarButton::after { + right: 7px; +} +[dir="rtl"] .dropdownToolbarButton::after { + left: 7px; +} +.dropdownToolbarButton::after { + top: 6px; + inset-inline-end: 7px; + pointer-events: none; + -webkit-mask-image: var(--toolbarButton-menuArrow-icon); + mask-image: var(--toolbarButton-menuArrow-icon); +} + +[dir="ltr"] .dropdownToolbarButton > select { + padding-left: 4px; +} + +[dir="rtl"] .dropdownToolbarButton > select { + padding-right: 4px; +} + +.dropdownToolbarButton > select { + width: calc( + var(--scale-select-container-width) + var(--scale-select-overflow) + ); + height: 28px; + font-size: 12px; + color: var(--main-color); + margin: 0; + padding: 1px 0 2px; + -webkit-padding-start: 4px; + padding-inline-start: 4px; + border: none; + background-color: var(--dropdown-btn-bg-color); +} +.dropdownToolbarButton > select:hover, +.dropdownToolbarButton > select:focus-visible { + background-color: var(--button-hover-color); + color: var(--toggled-btn-color); +} +.dropdownToolbarButton > select > option { + background: var(--doorhanger-bg-color); + color: var(--main-color); +} + +.toolbarButtonSpacer { + width: 30px; + display: inline-block; + height: 1px; +} + +.toolbarButton::before, +.secondaryToolbarButton::before, +.dropdownToolbarButton::after, +.treeItemToggler::before { + /* All matching images have a size of 16x16 + * All relevant containers have a size of 28x28 */ + position: absolute; + display: inline-block; + width: 16px; + height: 16px; + + content: ""; + background-color: var(--toolbar-icon-bg-color); + -webkit-mask-size: cover; + mask-size: cover; +} + +.dropdownToolbarButton:hover::after, +.dropdownToolbarButton:focus-visible::after, +.dropdownToolbarButton:active::after { + background-color: var(--toolbar-icon-hover-bg-color); +} + +.toolbarButton::before { + opacity: var(--toolbar-icon-opacity); + top: 6px; + left: 6px; +} + +.toolbarButton:hover::before, +.toolbarButton:focus-visible::before, +.secondaryToolbarButton:hover::before, +.secondaryToolbarButton:focus-visible::before { + background-color: var(--toolbar-icon-hover-bg-color); +} + +[dir="ltr"] .secondaryToolbarButton::before { + left: 12px; +} + +[dir="rtl"] .secondaryToolbarButton::before { + right: 12px; +} + +.secondaryToolbarButton::before { + opacity: var(--doorhanger-icon-opacity); + top: 5px; + inset-inline-start: 12px; +} + +#sidebarToggle::before { + -webkit-mask-image: var(--toolbarButton-sidebarToggle-icon); + mask-image: var(--toolbarButton-sidebarToggle-icon); + transform: scaleX(var(--dir-factor)); +} + +#secondaryToolbarToggle::before { + -webkit-mask-image: var(--toolbarButton-secondaryToolbarToggle-icon); + mask-image: var(--toolbarButton-secondaryToolbarToggle-icon); + transform: scaleX(var(--dir-factor)); +} + +#findPrevious::before { + -webkit-mask-image: var(--findbarButton-previous-icon); + mask-image: var(--findbarButton-previous-icon); +} + +#findNext::before { + -webkit-mask-image: var(--findbarButton-next-icon); + mask-image: var(--findbarButton-next-icon); +} + +#previous::before { + -webkit-mask-image: var(--toolbarButton-pageUp-icon); + mask-image: var(--toolbarButton-pageUp-icon); +} + +#next::before { + -webkit-mask-image: var(--toolbarButton-pageDown-icon); + mask-image: var(--toolbarButton-pageDown-icon); +} + +#zoomOut::before { + -webkit-mask-image: var(--toolbarButton-zoomOut-icon); + mask-image: var(--toolbarButton-zoomOut-icon); +} + +#zoomIn::before { + -webkit-mask-image: var(--toolbarButton-zoomIn-icon); + mask-image: var(--toolbarButton-zoomIn-icon); +} + +#presentationMode::before, +#secondaryPresentationMode::before { + -webkit-mask-image: var(--toolbarButton-presentationMode-icon); + mask-image: var(--toolbarButton-presentationMode-icon); +} + +#editorFreeText::before { + -webkit-mask-image: var(--toolbarButton-editorFreeText-icon); + mask-image: var(--toolbarButton-editorFreeText-icon); +} + +#editorInk::before { + -webkit-mask-image: var(--toolbarButton-editorInk-icon); + mask-image: var(--toolbarButton-editorInk-icon); +} + +#print::before, +#secondaryPrint::before { + -webkit-mask-image: var(--toolbarButton-print-icon); + mask-image: var(--toolbarButton-print-icon); +} + +#openFile::before, +#secondaryOpenFile::before { + -webkit-mask-image: var(--toolbarButton-openFile-icon); + mask-image: var(--toolbarButton-openFile-icon); +} + +#download::before, +#secondaryDownload::before { + -webkit-mask-image: var(--toolbarButton-download-icon); + mask-image: var(--toolbarButton-download-icon); +} + +a.secondaryToolbarButton { + padding-top: 6px; + text-decoration: none; +} +a.toolbarButton[href="#"], +a.secondaryToolbarButton[href="#"] { + opacity: 0.5; + pointer-events: none; +} + +#viewBookmark::before, +#secondaryViewBookmark::before { + -webkit-mask-image: var(--toolbarButton-bookmark-icon); + mask-image: var(--toolbarButton-bookmark-icon); +} + +#viewThumbnail::before { + -webkit-mask-image: var(--toolbarButton-viewThumbnail-icon); + mask-image: var(--toolbarButton-viewThumbnail-icon); +} + +#viewOutline::before { + -webkit-mask-image: var(--toolbarButton-viewOutline-icon); + mask-image: var(--toolbarButton-viewOutline-icon); + transform: scaleX(var(--dir-factor)); +} + +#viewAttachments::before { + -webkit-mask-image: var(--toolbarButton-viewAttachments-icon); + mask-image: var(--toolbarButton-viewAttachments-icon); +} + +#viewLayers::before { + -webkit-mask-image: var(--toolbarButton-viewLayers-icon); + mask-image: var(--toolbarButton-viewLayers-icon); +} + +#currentOutlineItem::before { + -webkit-mask-image: var(--toolbarButton-currentOutlineItem-icon); + mask-image: var(--toolbarButton-currentOutlineItem-icon); + transform: scaleX(var(--dir-factor)); +} + +#viewFind::before { + -webkit-mask-image: var(--toolbarButton-search-icon); + mask-image: var(--toolbarButton-search-icon); +} + +[dir="ltr"] .pdfSidebarNotification::after { + left: 17px; +} + +[dir="rtl"] .pdfSidebarNotification::after { + right: 17px; +} + +.pdfSidebarNotification::after { + position: absolute; + display: inline-block; + top: 1px; + inset-inline-start: 17px; + /* Create a filled circle, with a diameter of 9 pixels, using only CSS: */ + content: ""; + background-color: rgba(112, 219, 85, 1); + height: 9px; + width: 9px; + border-radius: 50%; +} + +[dir="ltr"] .secondaryToolbarButton { + padding-left: 36px; +} + +[dir="rtl"] .secondaryToolbarButton { + padding-right: 36px; +} + +[dir="ltr"] .secondaryToolbarButton { + text-align: left; +} + +[dir="rtl"] .secondaryToolbarButton { + text-align: right; +} + +.secondaryToolbarButton { + position: relative; + margin: 0; + padding: 0 0 1px; + -webkit-padding-start: 36px; + padding-inline-start: 36px; + height: auto; + min-height: 26px; + width: auto; + min-width: 100%; + text-align: start; + white-space: normal; + border-radius: 0; + box-sizing: border-box; +} +[dir="ltr"] .secondaryToolbarButton > span { + padding-right: 4px; +} +[dir="rtl"] .secondaryToolbarButton > span { + padding-left: 4px; +} +.secondaryToolbarButton > span { + -webkit-padding-end: 4px; + padding-inline-end: 4px; +} + +#firstPage::before { + -webkit-mask-image: var(--secondaryToolbarButton-firstPage-icon); + mask-image: var(--secondaryToolbarButton-firstPage-icon); +} + +#lastPage::before { + -webkit-mask-image: var(--secondaryToolbarButton-lastPage-icon); + mask-image: var(--secondaryToolbarButton-lastPage-icon); +} + +#pageRotateCcw::before { + -webkit-mask-image: var(--secondaryToolbarButton-rotateCcw-icon); + mask-image: var(--secondaryToolbarButton-rotateCcw-icon); +} + +#pageRotateCw::before { + -webkit-mask-image: var(--secondaryToolbarButton-rotateCw-icon); + mask-image: var(--secondaryToolbarButton-rotateCw-icon); +} + +#cursorSelectTool::before { + -webkit-mask-image: var(--secondaryToolbarButton-selectTool-icon); + mask-image: var(--secondaryToolbarButton-selectTool-icon); +} + +#cursorHandTool::before { + -webkit-mask-image: var(--secondaryToolbarButton-handTool-icon); + mask-image: var(--secondaryToolbarButton-handTool-icon); +} + +#scrollPage::before { + -webkit-mask-image: var(--secondaryToolbarButton-scrollPage-icon); + mask-image: var(--secondaryToolbarButton-scrollPage-icon); +} + +#scrollVertical::before { + -webkit-mask-image: var(--secondaryToolbarButton-scrollVertical-icon); + mask-image: var(--secondaryToolbarButton-scrollVertical-icon); +} + +#scrollHorizontal::before { + -webkit-mask-image: var(--secondaryToolbarButton-scrollHorizontal-icon); + mask-image: var(--secondaryToolbarButton-scrollHorizontal-icon); +} + +#scrollWrapped::before { + -webkit-mask-image: var(--secondaryToolbarButton-scrollWrapped-icon); + mask-image: var(--secondaryToolbarButton-scrollWrapped-icon); +} + +#spreadNone::before { + -webkit-mask-image: var(--secondaryToolbarButton-spreadNone-icon); + mask-image: var(--secondaryToolbarButton-spreadNone-icon); +} + +#spreadOdd::before { + -webkit-mask-image: var(--secondaryToolbarButton-spreadOdd-icon); + mask-image: var(--secondaryToolbarButton-spreadOdd-icon); +} + +#spreadEven::before { + -webkit-mask-image: var(--secondaryToolbarButton-spreadEven-icon); + mask-image: var(--secondaryToolbarButton-spreadEven-icon); +} + +#documentProperties::before { + -webkit-mask-image: var(--secondaryToolbarButton-documentProperties-icon); + mask-image: var(--secondaryToolbarButton-documentProperties-icon); +} + +.verticalToolbarSeparator { + display: block; + margin: 5px 2px; + width: 1px; + height: 22px; + background-color: var(--separator-color); +} +.horizontalToolbarSeparator { + display: block; + margin: 6px 0; + height: 1px; + width: 100%; + background-color: var(--doorhanger-separator-color); +} + +.toolbarField { + padding: 4px 7px; + margin: 3px 0; + border-radius: 2px; + background-color: var(--field-bg-color); + background-clip: padding-box; + border: 1px solid var(--field-border-color); + box-shadow: none; + color: var(--field-color); + font-size: 12px; + line-height: 16px; + outline-style: none; +} + +[dir="ltr"] .toolbarField[type="checkbox"] { + margin-left: 7px; +} + +[dir="rtl"] .toolbarField[type="checkbox"] { + margin-right: 7px; +} + +.toolbarField[type="checkbox"] { + opacity: 0; + position: absolute !important; + left: 0; + margin: 10px 0 3px; + -webkit-margin-start: 7px; + margin-inline-start: 7px; +} + +#pageNumber { + -moz-appearance: textfield; /* hides the spinner in moz */ + text-align: right; + width: 40px; +} +#pageNumber.visiblePageIsLoading { + background-image: var(--loading-icon); + background-repeat: no-repeat; + background-position: 3px; +} +#pageNumber::-webkit-inner-spin-button { + -webkit-appearance: none; +} + +.toolbarField:focus { + border-color: #0a84ff; +} + +.toolbarLabel { + min-width: 16px; + padding: 7px; + margin: 2px; + border-radius: 2px; + color: var(--main-color); + font-size: 12px; + line-height: 14px; + text-align: left; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + cursor: default; +} + +[dir="ltr"] #numPages.toolbarLabel { + padding-left: 3px; +} + +[dir="rtl"] #numPages.toolbarLabel { + padding-right: 3px; +} + +#numPages.toolbarLabel { + -webkit-padding-start: 3px; + padding-inline-start: 3px; +} + +#thumbnailView, +#outlineView, +#attachmentsView, +#layersView { + position: absolute; + width: calc(100% - 8px); + top: 0; + bottom: 0; + padding: 4px 4px 0; + overflow: auto; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +#thumbnailView { + width: calc(100% - 60px); + padding: 10px 30px 0; +} + +#thumbnailView > a:active, +#thumbnailView > a:focus { + outline: 0; +} + +[dir="ltr"] .thumbnail { + float: left; +} + +[dir="rtl"] .thumbnail { + float: right; +} + +.thumbnail { + float: inline-start; + margin: 0 10px 5px; +} + +#thumbnailView > a:last-of-type > .thumbnail { + margin-bottom: 10px; +} +#thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) { + margin-bottom: 9px; +} + +.thumbnail:not([data-loaded]) { + border: 1px dashed rgba(132, 132, 132, 1); + margin: -1px 9px 4px; +} + +.thumbnailImage { + border: 1px solid rgba(0, 0, 0, 0); + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); + opacity: 0.8; + z-index: 99; + background-color: rgba(255, 255, 255, 1); + background-clip: content-box; +} + +.thumbnailSelectionRing { + border-radius: 2px; + padding: 7px; +} + +a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage, +.thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage { + opacity: 0.9; +} + +a:focus > .thumbnail > .thumbnailSelectionRing, +.thumbnail:hover > .thumbnailSelectionRing { + background-color: var(--sidebaritem-bg-color); + background-clip: padding-box; + color: rgba(255, 255, 255, 0.9); +} + +.thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage { + opacity: 1; +} + +.thumbnail.selected > .thumbnailSelectionRing { + background-color: var(--sidebaritem-bg-color); + background-clip: padding-box; + color: rgba(255, 255, 255, 1); +} + +[dir="ltr"] .treeWithDeepNesting > .treeItem,[dir="ltr"] +.treeItem > .treeItems { + margin-left: 20px; +} + +[dir="rtl"] .treeWithDeepNesting > .treeItem,[dir="rtl"] +.treeItem > .treeItems { + margin-right: 20px; +} + +.treeWithDeepNesting > .treeItem, +.treeItem > .treeItems { + -webkit-margin-start: 20px; + margin-inline-start: 20px; +} + +[dir="ltr"] .treeItem > a { + padding-left: 4px; +} + +[dir="rtl"] .treeItem > a { + padding-right: 4px; +} + +.treeItem > a { + text-decoration: none; + display: inline-block; + /* Subtract the right padding (left, in RTL mode) of the container: */ + min-width: calc(100% - 4px); + height: auto; + margin-bottom: 1px; + padding: 2px 0 5px; + -webkit-padding-start: 4px; + padding-inline-start: 4px; + border-radius: 2px; + color: var(--treeitem-color); + font-size: 13px; + line-height: 15px; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + white-space: normal; + cursor: pointer; +} + +#layersView .treeItem > a * { + cursor: pointer; +} +[dir="ltr"] #layersView .treeItem > a > label { + padding-left: 4px; +} +[dir="rtl"] #layersView .treeItem > a > label { + padding-right: 4px; +} +#layersView .treeItem > a > label { + -webkit-padding-start: 4px; + padding-inline-start: 4px; +} +[dir="ltr"] #layersView .treeItem > a > label > input { + float: left; +} +[dir="rtl"] #layersView .treeItem > a > label > input { + float: right; +} +#layersView .treeItem > a > label > input { + float: inline-start; + margin-top: 1px; +} + +[dir="ltr"] .treeItemToggler { + float: left; +} + +[dir="rtl"] .treeItemToggler { + float: right; +} + +.treeItemToggler { + position: relative; + float: inline-start; + height: 0; + width: 0; + color: rgba(255, 255, 255, 0.5); +} +[dir="ltr"] .treeItemToggler::before { + right: 4px; +} +[dir="rtl"] .treeItemToggler::before { + left: 4px; +} +.treeItemToggler::before { + inset-inline-end: 4px; + -webkit-mask-image: var(--treeitem-expanded-icon); + mask-image: var(--treeitem-expanded-icon); +} +.treeItemToggler.treeItemsHidden::before { + -webkit-mask-image: var(--treeitem-collapsed-icon); + mask-image: var(--treeitem-collapsed-icon); + transform: scaleX(var(--dir-factor)); +} +.treeItemToggler.treeItemsHidden ~ .treeItems { + display: none; +} + +.treeItem.selected > a { + background-color: var(--treeitem-selected-bg-color); + color: var(--treeitem-selected-color); +} + +.treeItemToggler:hover, +.treeItemToggler:hover + a, +.treeItemToggler:hover ~ .treeItems, +.treeItem > a:hover { + background-color: var(--sidebaritem-bg-color); + background-clip: padding-box; + border-radius: 2px; + color: var(--treeitem-hover-color); +} + +/* TODO: file FF bug to support ::-moz-selection:window-inactive + so we can override the opaque grey background when the window is inactive; + see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */ +::-moz-selection { + background: rgba(0, 0, 255, 0.3); +} +::selection { + background: rgba(0, 0, 255, 0.3); +} + +#errorWrapper { + background-color: var(--errorWrapper-bg-color); + color: var(--main-color); + left: 0; + position: absolute; + right: 0; + z-index: 1000; + padding: 3px 6px; +} + +#errorMessageLeft { + float: left; +} +#errorMessageRight { + float: right; +} + +#errorSpacer { + clear: both; +} +#errorMoreInfo { + background-color: var(--field-bg-color); + color: var(--field-color); + border: 1px solid var(--field-border-color); + padding: 3px; + margin: 3px; + width: 98%; +} + +.dialogButton { + width: auto; + margin: 3px 4px 2px !important; + padding: 2px 11px; + color: var(--main-color); + background-color: var(--dialog-button-bg-color); + border: var(--dialog-button-border) !important; +} + +dialog { + margin: auto; + padding: 15px; + border-spacing: 4px; + color: var(--main-color); + font-size: 12px; + line-height: 14px; + background-color: var(--doorhanger-bg-color); + border: 1px solid rgba(0, 0, 0, 0.5); + border-radius: 4px; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); +} +dialog::-webkit-backdrop { + background-color: rgba(0, 0, 0, 0.2); +} +dialog::backdrop { + background-color: rgba(0, 0, 0, 0.2); +} + +dialog > .row { + display: table-row; +} + +dialog > .row > * { + display: table-cell; +} + +dialog .toolbarField { + margin: 5px 0; +} + +dialog .separator { + display: block; + margin: 4px 0; + height: 1px; + width: 100%; + background-color: var(--separator-color); +} + +dialog .buttonRow { + text-align: center; + vertical-align: middle; +} + +dialog :link { + color: rgba(255, 255, 255, 1); +} + +#passwordDialog { + text-align: center; +} +#passwordDialog .toolbarField { + width: 200px; +} + +#documentPropertiesDialog { + text-align: left; +} +[dir="ltr"] #documentPropertiesDialog .row > * { + text-align: left; +} +[dir="rtl"] #documentPropertiesDialog .row > * { + text-align: right; +} +#documentPropertiesDialog .row > * { + min-width: 100px; + text-align: start; +} +#documentPropertiesDialog .row > span { + width: 125px; + word-wrap: break-word; +} +#documentPropertiesDialog .row > p { + max-width: 225px; + word-wrap: break-word; +} +#documentPropertiesDialog .buttonRow { + margin-top: 10px; +} + +.grab-to-pan-grab { + cursor: -webkit-grab !important; + cursor: grab !important; +} +.grab-to-pan-grab + *:not(input):not(textarea):not(button):not(select):not(:link) { + cursor: inherit !important; +} +.grab-to-pan-grab:active, +.grab-to-pan-grabbing { + cursor: -webkit-grabbing !important; + cursor: grabbing !important; + position: fixed; + background: rgba(0, 0, 0, 0); + display: block; + top: 0; + left: 0; + right: 0; + bottom: 0; + overflow: hidden; + z-index: 50000; /* should be higher than anything else in PDF.js! */ +} + +@page { + margin: 0; +} + +#printContainer { + display: none; +} + +@media print { + body { + background: rgba(0, 0, 0, 0) none; + } + body[data-pdfjsprinting] #outerContainer { + display: none; + } + body[data-pdfjsprinting] #printContainer { + display: block; + } + #printContainer { + height: 100%; + } + /* wrapper around (scaled) print canvas elements */ + #printContainer > .printedPage { + page-break-after: always; + page-break-inside: avoid; + + /* The wrapper always cover the whole page. */ + height: 100%; + width: 100%; + + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + } + + #printContainer > .xfaPrintedPage .xfaPage { + position: absolute; + } + + #printContainer > .xfaPrintedPage { + page-break-after: always; + page-break-inside: avoid; + width: 100%; + height: 100%; + position: relative; + } + + #printContainer > .printedPage canvas, + #printContainer > .printedPage img { + /* The intrinsic canvas / image size will make sure that we fit the page. */ + max-width: 100%; + max-height: 100%; + + direction: ltr; + display: block; + } +} + +.visibleLargeView, +.visibleMediumView, +.visibleSmallView { + display: none; +} + +@media all and (max-width: 900px) { + #toolbarViewerMiddle { + display: table; + margin: auto; + left: auto; + position: inherit; + transform: none; + } +} + +@media all and (max-width: 840px) { + #sidebarContainer { + background-color: var(--sidebar-narrow-bg-color); + } + [dir="ltr"] #outerContainer.sidebarOpen #viewerContainer { + left: 0 !important; + } + [dir="rtl"] #outerContainer.sidebarOpen #viewerContainer { + right: 0 !important; + } + #outerContainer.sidebarOpen #viewerContainer { + inset-inline-start: 0 !important; + } +} + +@media all and (max-width: 820px) { + #outerContainer .hiddenLargeView { + display: none; + } + #outerContainer .visibleLargeView { + display: inherit; + } +} + +@media all and (max-width: 750px) { + #outerContainer .hiddenMediumView { + display: none; + } + #outerContainer .visibleMediumView { + display: inherit; + } +} + +@media all and (max-width: 690px) { + .hiddenSmallView, + .hiddenSmallView * { + display: none; + } + .visibleSmallView { + display: inherit; + } + .toolbarButtonSpacer { + width: 0; + } + [dir="ltr"] .findbar { + left: 34px; + } + [dir="rtl"] .findbar { + right: 34px; + } + .findbar { + inset-inline-start: 34px; + } +} + +@media all and (max-width: 560px) { + #scaleSelectContainer { + display: none; + } +} diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/viewer.html b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/viewer.html new file mode 100644 index 00000000..707f87c5 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/viewer.html @@ -0,0 +1,501 @@ +<!DOCTYPE html> +<!-- +Copyright 2012 Mozilla Foundation + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Adobe CMap resources are covered by their own copyright but the same license: + + Copyright 1990-2015 Adobe Systems Incorporated. + +See https://github.com/adobe-type-tools/cmap-resources +--> +<html dir="ltr" mozdisallowselectionprint> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> + <meta name="google" content="notranslate"> + <title>PDF.js viewer + + + + + + + + + + + + + + +

+ +
+
+
+
+ + + + +
+
+ +
+ +
+
+
+
+
+ + + +
+
+
+ +
+ + + + + + + + +
+
+
+
+ +
+ +
+ +
+ +
+ + +
+
+ + + + + + + + + Current View + + +
+ + + + + + + +
+
+
+ +
+ +
+ + + +
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + +
+ +
+ +
+ +
+
+ +
+
+ + +
+
+ +
+ File name: +

-

+
+
+ File size: +

-

+
+
+
+ Title: +

-

+
+
+ Author: +

-

+
+
+ Subject: +

-

+
+
+ Keywords: +

-

+
+
+ Creation Date: +

-

+
+
+ Modification Date: +

-

+
+
+ Creator: +

-

+
+
+
+ PDF Producer: +

-

+
+
+ PDF Version: +

-

+
+
+ Page Count: +

-

+
+
+ Page Size: +

-

+
+
+
+ Fast Web View: +

-

+
+
+ +
+
+ +
+ Preparing document for printing… +
+
+ + 0% +
+
+ +
+
+
+ +
+
+ + + + + + + + + + + diff --git a/plugins/saladict-ztools/ext-saladic/assets/pdf/web/viewer.js b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/viewer.js new file mode 100644 index 00000000..b74811e1 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/pdf/web/viewer.js @@ -0,0 +1,16551 @@ +/* saladict */ window.__SALADICT_PDF_PAGE__ = true; +/** + * @licstart The following is the entire license notice for the + * JavaScript code in this page + * + * Copyright 2022 Mozilla Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * @licend The above is the entire license notice for the + * JavaScript code in this page + */ + +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ([ +/* 0 */, +/* 1 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.animationStarted = exports.VERTICAL_PADDING = exports.UNKNOWN_SCALE = exports.TextLayerMode = exports.SpreadMode = exports.SidebarView = exports.ScrollMode = exports.SCROLLBAR_PADDING = exports.RenderingStates = exports.RendererType = exports.ProgressBar = exports.PresentationModeState = exports.OutputScale = exports.MIN_SCALE = exports.MAX_SCALE = exports.MAX_AUTO_SCALE = exports.DEFAULT_SCALE_VALUE = exports.DEFAULT_SCALE_DELTA = exports.DEFAULT_SCALE = exports.AutoPrintRegExp = void 0; +exports.apiPageLayoutToViewerModes = apiPageLayoutToViewerModes; +exports.apiPageModeToSidebarView = apiPageModeToSidebarView; +exports.approximateFraction = approximateFraction; +exports.backtrackBeforeAllVisibleElements = backtrackBeforeAllVisibleElements; +exports.binarySearchFirstItem = binarySearchFirstItem; +exports.docStyle = void 0; +exports.getActiveOrFocusedElement = getActiveOrFocusedElement; +exports.getPageSizeInches = getPageSizeInches; +exports.getVisibleElements = getVisibleElements; +exports.isPortraitOrientation = isPortraitOrientation; +exports.isValidRotation = isValidRotation; +exports.isValidScrollMode = isValidScrollMode; +exports.isValidSpreadMode = isValidSpreadMode; +exports.noContextMenuHandler = noContextMenuHandler; +exports.normalizeWheelEventDelta = normalizeWheelEventDelta; +exports.normalizeWheelEventDirection = normalizeWheelEventDirection; +exports.parseQueryString = parseQueryString; +exports.removeNullCharacters = removeNullCharacters; +exports.roundToDivide = roundToDivide; +exports.scrollIntoView = scrollIntoView; +exports.watchScroll = watchScroll; +const DEFAULT_SCALE_VALUE = "auto"; +exports.DEFAULT_SCALE_VALUE = DEFAULT_SCALE_VALUE; +const DEFAULT_SCALE = 1.0; +exports.DEFAULT_SCALE = DEFAULT_SCALE; +const DEFAULT_SCALE_DELTA = 1.1; +exports.DEFAULT_SCALE_DELTA = DEFAULT_SCALE_DELTA; +const MIN_SCALE = 0.1; +exports.MIN_SCALE = MIN_SCALE; +const MAX_SCALE = 10.0; +exports.MAX_SCALE = MAX_SCALE; +const UNKNOWN_SCALE = 0; +exports.UNKNOWN_SCALE = UNKNOWN_SCALE; +const MAX_AUTO_SCALE = 1.25; +exports.MAX_AUTO_SCALE = MAX_AUTO_SCALE; +const SCROLLBAR_PADDING = 40; +exports.SCROLLBAR_PADDING = SCROLLBAR_PADDING; +const VERTICAL_PADDING = 5; +exports.VERTICAL_PADDING = VERTICAL_PADDING; +const RenderingStates = { + INITIAL: 0, + RUNNING: 1, + PAUSED: 2, + FINISHED: 3 +}; +exports.RenderingStates = RenderingStates; +const PresentationModeState = { + UNKNOWN: 0, + NORMAL: 1, + CHANGING: 2, + FULLSCREEN: 3 +}; +exports.PresentationModeState = PresentationModeState; +const SidebarView = { + UNKNOWN: -1, + NONE: 0, + THUMBS: 1, + OUTLINE: 2, + ATTACHMENTS: 3, + LAYERS: 4 +}; +exports.SidebarView = SidebarView; +const RendererType = { + CANVAS: "canvas", + SVG: "svg" +}; +exports.RendererType = RendererType; +const TextLayerMode = { + DISABLE: 0, + ENABLE: 1, + ENABLE_ENHANCE: 2 +}; +exports.TextLayerMode = TextLayerMode; +const ScrollMode = { + UNKNOWN: -1, + VERTICAL: 0, + HORIZONTAL: 1, + WRAPPED: 2, + PAGE: 3 +}; +exports.ScrollMode = ScrollMode; +const SpreadMode = { + UNKNOWN: -1, + NONE: 0, + ODD: 1, + EVEN: 2 +}; +exports.SpreadMode = SpreadMode; +const AutoPrintRegExp = /\bprint\s*\(/; +exports.AutoPrintRegExp = AutoPrintRegExp; + +class OutputScale { + constructor() { + const pixelRatio = window.devicePixelRatio || 1; + this.sx = pixelRatio; + this.sy = pixelRatio; + } + + get scaled() { + return this.sx !== 1 || this.sy !== 1; + } + +} + +exports.OutputScale = OutputScale; + +function scrollIntoView(element, spot, scrollMatches = false) { + let parent = element.offsetParent; + + if (!parent) { + console.error("offsetParent is not set -- cannot scroll"); + return; + } + + let offsetY = element.offsetTop + element.clientTop; + let offsetX = element.offsetLeft + element.clientLeft; + + while (parent.clientHeight === parent.scrollHeight && parent.clientWidth === parent.scrollWidth || scrollMatches && (parent.classList.contains("markedContent") || getComputedStyle(parent).overflow === "hidden")) { + offsetY += parent.offsetTop; + offsetX += parent.offsetLeft; + parent = parent.offsetParent; + + if (!parent) { + return; + } + } + + if (spot) { + if (spot.top !== undefined) { + offsetY += spot.top; + } + + if (spot.left !== undefined) { + offsetX += spot.left; + parent.scrollLeft = offsetX; + } + } + + parent.scrollTop = offsetY; +} + +function watchScroll(viewAreaElement, callback) { + const debounceScroll = function (evt) { + if (rAF) { + return; + } + + rAF = window.requestAnimationFrame(function viewAreaElementScrolled() { + rAF = null; + const currentX = viewAreaElement.scrollLeft; + const lastX = state.lastX; + + if (currentX !== lastX) { + state.right = currentX > lastX; + } + + state.lastX = currentX; + const currentY = viewAreaElement.scrollTop; + const lastY = state.lastY; + + if (currentY !== lastY) { + state.down = currentY > lastY; + } + + state.lastY = currentY; + callback(state); + }); + }; + + const state = { + right: true, + down: true, + lastX: viewAreaElement.scrollLeft, + lastY: viewAreaElement.scrollTop, + _eventHandler: debounceScroll + }; + let rAF = null; + viewAreaElement.addEventListener("scroll", debounceScroll, true); + return state; +} + +function parseQueryString(query) { + const params = new Map(); + + for (const [key, value] of new URLSearchParams(query)) { + params.set(key.toLowerCase(), value); + } + + return params; +} + +const NullCharactersRegExp = /\x00/g; +const InvisibleCharactersRegExp = /[\x01-\x1F]/g; + +function removeNullCharacters(str, replaceInvisible = false) { + if (typeof str !== "string") { + console.error(`The argument must be a string.`); + return str; + } + + if (replaceInvisible) { + str = str.replace(InvisibleCharactersRegExp, " "); + } + + return str.replace(NullCharactersRegExp, ""); +} + +function binarySearchFirstItem(items, condition, start = 0) { + let minIndex = start; + let maxIndex = items.length - 1; + + if (maxIndex < 0 || !condition(items[maxIndex])) { + return items.length; + } + + if (condition(items[minIndex])) { + return minIndex; + } + + while (minIndex < maxIndex) { + const currentIndex = minIndex + maxIndex >> 1; + const currentItem = items[currentIndex]; + + if (condition(currentItem)) { + maxIndex = currentIndex; + } else { + minIndex = currentIndex + 1; + } + } + + return minIndex; +} + +function approximateFraction(x) { + if (Math.floor(x) === x) { + return [x, 1]; + } + + const xinv = 1 / x; + const limit = 8; + + if (xinv > limit) { + return [1, limit]; + } else if (Math.floor(xinv) === xinv) { + return [1, xinv]; + } + + const x_ = x > 1 ? xinv : x; + let a = 0, + b = 1, + c = 1, + d = 1; + + while (true) { + const p = a + c, + q = b + d; + + if (q > limit) { + break; + } + + if (x_ <= p / q) { + c = p; + d = q; + } else { + a = p; + b = q; + } + } + + let result; + + if (x_ - a / b < c / d - x_) { + result = x_ === x ? [a, b] : [b, a]; + } else { + result = x_ === x ? [c, d] : [d, c]; + } + + return result; +} + +function roundToDivide(x, div) { + const r = x % div; + return r === 0 ? x : Math.round(x - r + div); +} + +function getPageSizeInches({ + view, + userUnit, + rotate +}) { + const [x1, y1, x2, y2] = view; + const changeOrientation = rotate % 180 !== 0; + const width = (x2 - x1) / 72 * userUnit; + const height = (y2 - y1) / 72 * userUnit; + return { + width: changeOrientation ? height : width, + height: changeOrientation ? width : height + }; +} + +function backtrackBeforeAllVisibleElements(index, views, top) { + if (index < 2) { + return index; + } + + let elt = views[index].div; + let pageTop = elt.offsetTop + elt.clientTop; + + if (pageTop >= top) { + elt = views[index - 1].div; + pageTop = elt.offsetTop + elt.clientTop; + } + + for (let i = index - 2; i >= 0; --i) { + elt = views[i].div; + + if (elt.offsetTop + elt.clientTop + elt.clientHeight <= pageTop) { + break; + } + + index = i; + } + + return index; +} + +function getVisibleElements({ + scrollEl, + views, + sortByVisibility = false, + horizontal = false, + rtl = false +}) { + const top = scrollEl.scrollTop, + bottom = top + scrollEl.clientHeight; + const left = scrollEl.scrollLeft, + right = left + scrollEl.clientWidth; + + function isElementBottomAfterViewTop(view) { + const element = view.div; + const elementBottom = element.offsetTop + element.clientTop + element.clientHeight; + return elementBottom > top; + } + + function isElementNextAfterViewHorizontally(view) { + const element = view.div; + const elementLeft = element.offsetLeft + element.clientLeft; + const elementRight = elementLeft + element.clientWidth; + return rtl ? elementLeft < right : elementRight > left; + } + + const visible = [], + ids = new Set(), + numViews = views.length; + let firstVisibleElementInd = binarySearchFirstItem(views, horizontal ? isElementNextAfterViewHorizontally : isElementBottomAfterViewTop); + + if (firstVisibleElementInd > 0 && firstVisibleElementInd < numViews && !horizontal) { + firstVisibleElementInd = backtrackBeforeAllVisibleElements(firstVisibleElementInd, views, top); + } + + let lastEdge = horizontal ? right : -1; + + for (let i = firstVisibleElementInd; i < numViews; i++) { + const view = views[i], + element = view.div; + const currentWidth = element.offsetLeft + element.clientLeft; + const currentHeight = element.offsetTop + element.clientTop; + const viewWidth = element.clientWidth, + viewHeight = element.clientHeight; + const viewRight = currentWidth + viewWidth; + const viewBottom = currentHeight + viewHeight; + + if (lastEdge === -1) { + if (viewBottom >= bottom) { + lastEdge = viewBottom; + } + } else if ((horizontal ? currentWidth : currentHeight) > lastEdge) { + break; + } + + if (viewBottom <= top || currentHeight >= bottom || viewRight <= left || currentWidth >= right) { + continue; + } + + const hiddenHeight = Math.max(0, top - currentHeight) + Math.max(0, viewBottom - bottom); + const hiddenWidth = Math.max(0, left - currentWidth) + Math.max(0, viewRight - right); + const fractionHeight = (viewHeight - hiddenHeight) / viewHeight, + fractionWidth = (viewWidth - hiddenWidth) / viewWidth; + const percent = fractionHeight * fractionWidth * 100 | 0; + visible.push({ + id: view.id, + x: currentWidth, + y: currentHeight, + view, + percent, + widthPercent: fractionWidth * 100 | 0 + }); + ids.add(view.id); + } + + const first = visible[0], + last = visible.at(-1); + + if (sortByVisibility) { + visible.sort(function (a, b) { + const pc = a.percent - b.percent; + + if (Math.abs(pc) > 0.001) { + return -pc; + } + + return a.id - b.id; + }); + } + + return { + first, + last, + views: visible, + ids + }; +} + +function noContextMenuHandler(evt) { + evt.preventDefault(); +} + +function normalizeWheelEventDirection(evt) { + let delta = Math.hypot(evt.deltaX, evt.deltaY); + const angle = Math.atan2(evt.deltaY, evt.deltaX); + + if (-0.25 * Math.PI < angle && angle < 0.75 * Math.PI) { + delta = -delta; + } + + return delta; +} + +function normalizeWheelEventDelta(evt) { + let delta = normalizeWheelEventDirection(evt); + const MOUSE_DOM_DELTA_PIXEL_MODE = 0; + const MOUSE_DOM_DELTA_LINE_MODE = 1; + const MOUSE_PIXELS_PER_LINE = 30; + const MOUSE_LINES_PER_PAGE = 30; + + if (evt.deltaMode === MOUSE_DOM_DELTA_PIXEL_MODE) { + delta /= MOUSE_PIXELS_PER_LINE * MOUSE_LINES_PER_PAGE; + } else if (evt.deltaMode === MOUSE_DOM_DELTA_LINE_MODE) { + delta /= MOUSE_LINES_PER_PAGE; + } + + return delta; +} + +function isValidRotation(angle) { + return Number.isInteger(angle) && angle % 90 === 0; +} + +function isValidScrollMode(mode) { + return Number.isInteger(mode) && Object.values(ScrollMode).includes(mode) && mode !== ScrollMode.UNKNOWN; +} + +function isValidSpreadMode(mode) { + return Number.isInteger(mode) && Object.values(SpreadMode).includes(mode) && mode !== SpreadMode.UNKNOWN; +} + +function isPortraitOrientation(size) { + return size.width <= size.height; +} + +const animationStarted = new Promise(function (resolve) { + window.requestAnimationFrame(resolve); +}); +exports.animationStarted = animationStarted; +const docStyle = document.documentElement.style; +exports.docStyle = docStyle; + +function clamp(v, min, max) { + return Math.min(Math.max(v, min), max); +} + +class ProgressBar { + #classList = null; + #percent = 0; + #visible = true; + + constructor(id) { + if (arguments.length > 1) { + throw new Error("ProgressBar no longer accepts any additional options, " + "please use CSS rules to modify its appearance instead."); + } + + const bar = document.getElementById(id); + this.#classList = bar.classList; + } + + get percent() { + return this.#percent; + } + + set percent(val) { + this.#percent = clamp(val, 0, 100); + + if (isNaN(val)) { + this.#classList.add("indeterminate"); + return; + } + + this.#classList.remove("indeterminate"); + docStyle.setProperty("--progressBar-percent", `${this.#percent}%`); + } + + setWidth(viewer) { + if (!viewer) { + return; + } + + const container = viewer.parentNode; + const scrollbarWidth = container.offsetWidth - viewer.offsetWidth; + + if (scrollbarWidth > 0) { + docStyle.setProperty("--progressBar-end-offset", `${scrollbarWidth}px`); + } + } + + hide() { + if (!this.#visible) { + return; + } + + this.#visible = false; + this.#classList.add("hidden"); + } + + show() { + if (this.#visible) { + return; + } + + this.#visible = true; + this.#classList.remove("hidden"); + } + +} + +exports.ProgressBar = ProgressBar; + +function getActiveOrFocusedElement() { + let curRoot = document; + let curActiveOrFocused = curRoot.activeElement || curRoot.querySelector(":focus"); + + while (curActiveOrFocused?.shadowRoot) { + curRoot = curActiveOrFocused.shadowRoot; + curActiveOrFocused = curRoot.activeElement || curRoot.querySelector(":focus"); + } + + return curActiveOrFocused; +} + +function apiPageLayoutToViewerModes(layout) { + let scrollMode = ScrollMode.VERTICAL, + spreadMode = SpreadMode.NONE; + + switch (layout) { + case "SinglePage": + scrollMode = ScrollMode.PAGE; + break; + + case "OneColumn": + break; + + case "TwoPageLeft": + scrollMode = ScrollMode.PAGE; + + case "TwoColumnLeft": + spreadMode = SpreadMode.ODD; + break; + + case "TwoPageRight": + scrollMode = ScrollMode.PAGE; + + case "TwoColumnRight": + spreadMode = SpreadMode.EVEN; + break; + } + + return { + scrollMode, + spreadMode + }; +} + +function apiPageModeToSidebarView(mode) { + switch (mode) { + case "UseNone": + return SidebarView.NONE; + + case "UseThumbs": + return SidebarView.THUMBS; + + case "UseOutlines": + return SidebarView.OUTLINE; + + case "UseAttachments": + return SidebarView.ATTACHMENTS; + + case "UseOC": + return SidebarView.LAYERS; + } + + return SidebarView.NONE; +} + +/***/ }), +/* 2 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.compatibilityParams = exports.OptionKind = exports.AppOptions = void 0; +const compatibilityParams = Object.create(null); +exports.compatibilityParams = compatibilityParams; +{ + const userAgent = navigator.userAgent || ""; + const platform = navigator.platform || ""; + const maxTouchPoints = navigator.maxTouchPoints || 1; + const isAndroid = /Android/.test(userAgent); + const isIOS = /\b(iPad|iPhone|iPod)(?=;)/.test(userAgent) || platform === "MacIntel" && maxTouchPoints > 1; + + (function checkCanvasSizeLimitation() { + if (isIOS || isAndroid) { + compatibilityParams.maxCanvasPixels = 5242880; + } + })(); +} +const OptionKind = { + VIEWER: 0x02, + API: 0x04, + WORKER: 0x08, + PREFERENCE: 0x80 +}; +exports.OptionKind = OptionKind; +const defaultOptions = { + annotationEditorMode: { + value: -1, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + annotationMode: { + value: 2, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + cursorToolOnLoad: { + value: 0, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + defaultZoomValue: { + value: "", + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + disableHistory: { + value: false, + kind: OptionKind.VIEWER + }, + disablePageLabels: { + value: false, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + enablePermissions: { + value: false, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + enablePrintAutoRotate: { + value: true, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + enableScripting: { + value: true, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + externalLinkRel: { + value: "noopener noreferrer nofollow", + kind: OptionKind.VIEWER + }, + externalLinkTarget: { + value: 0, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + historyUpdateUrl: { + value: false, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + ignoreDestinationZoom: { + value: false, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + imageResourcesPath: { + value: "./images/", + kind: OptionKind.VIEWER + }, + maxCanvasPixels: { + value: 16777216, + kind: OptionKind.VIEWER + }, + forcePageColors: { + value: false, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + pageColorsBackground: { + value: "Canvas", + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + pageColorsForeground: { + value: "CanvasText", + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + pdfBugEnabled: { + value: false, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + printResolution: { + value: 150, + kind: OptionKind.VIEWER + }, + sidebarViewOnLoad: { + value: -1, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + scrollModeOnLoad: { + value: -1, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + spreadModeOnLoad: { + value: -1, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + textLayerMode: { + value: 1, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + useOnlyCssZoom: { + value: false, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + viewerCssTheme: { + value: 0, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + viewOnLoad: { + value: 0, + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }, + cMapPacked: { + value: true, + kind: OptionKind.API + }, + cMapUrl: { + value: "../web/cmaps/", + kind: OptionKind.API + }, + disableAutoFetch: { + value: false, + kind: OptionKind.API + OptionKind.PREFERENCE + }, + disableFontFace: { + value: false, + kind: OptionKind.API + OptionKind.PREFERENCE + }, + disableRange: { + value: false, + kind: OptionKind.API + OptionKind.PREFERENCE + }, + disableStream: { + value: false, + kind: OptionKind.API + OptionKind.PREFERENCE + }, + docBaseUrl: { + value: "", + kind: OptionKind.API + }, + enableXfa: { + value: true, + kind: OptionKind.API + OptionKind.PREFERENCE + }, + fontExtraProperties: { + value: false, + kind: OptionKind.API + }, + isEvalSupported: { + value: true, + kind: OptionKind.API + }, + maxImageSize: { + value: -1, + kind: OptionKind.API + }, + pdfBug: { + value: false, + kind: OptionKind.API + }, + standardFontDataUrl: { + value: "../web/standard_fonts/", + kind: OptionKind.API + }, + verbosity: { + value: 1, + kind: OptionKind.API + }, + workerPort: { + value: null, + kind: OptionKind.WORKER + }, + workerSrc: { + value: "../build/pdf.worker.js", + kind: OptionKind.WORKER + } +}; +{ + defaultOptions.defaultUrl = { + value: /* saladict */'/assets/default.pdf', + kind: OptionKind.VIEWER + }; + defaultOptions.disablePreferences = { + value: false, + kind: OptionKind.VIEWER + }; + defaultOptions.locale = { + value: navigator.language || "en-US", + kind: OptionKind.VIEWER + }; + defaultOptions.renderer = { + value: "canvas", + kind: OptionKind.VIEWER + OptionKind.PREFERENCE + }; + defaultOptions.sandboxBundleSrc = { + value: "../build/pdf.sandbox.js", + kind: OptionKind.VIEWER + }; +} +const userOptions = Object.create(null); + +class AppOptions { + constructor() { + throw new Error("Cannot initialize AppOptions."); + } + + static get(name) { + const userOption = userOptions[name]; + + if (userOption !== undefined) { + return userOption; + } + + const defaultOption = defaultOptions[name]; + + if (defaultOption !== undefined) { + return compatibilityParams[name] ?? defaultOption.value; + } + + return undefined; + } + + static getAll(kind = null) { + const options = Object.create(null); + + for (const name in defaultOptions) { + const defaultOption = defaultOptions[name]; + + if (kind) { + if ((kind & defaultOption.kind) === 0) { + continue; + } + + if (kind === OptionKind.PREFERENCE) { + const value = defaultOption.value, + valueType = typeof value; + + if (valueType === "boolean" || valueType === "string" || valueType === "number" && Number.isInteger(value)) { + options[name] = value; + continue; + } + + throw new Error(`Invalid type for preference: ${name}`); + } + } + + const userOption = userOptions[name]; + options[name] = userOption !== undefined ? userOption : compatibilityParams[name] ?? defaultOption.value; + } + + return options; + } + + static set(name, value) { + userOptions[name] = value; + } + + static setAll(options) { + for (const name in options) { + userOptions[name] = options[name]; + } + } + + static remove(name) { + delete userOptions[name]; + } + + static _hasUserOptions() { + return Object.keys(userOptions).length > 0; + } + +} + +exports.AppOptions = AppOptions; + +/***/ }), +/* 3 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.SimpleLinkService = exports.PDFLinkService = exports.LinkTarget = void 0; + +var _ui_utils = __webpack_require__(1); + +const DEFAULT_LINK_REL = "noopener noreferrer nofollow"; +const LinkTarget = { + NONE: 0, + SELF: 1, + BLANK: 2, + PARENT: 3, + TOP: 4 +}; +exports.LinkTarget = LinkTarget; + +function addLinkAttributes(link, { + url, + target, + rel, + enabled = true +} = {}) { + if (!url || typeof url !== "string") { + throw new Error('A valid "url" parameter must provided.'); + } + + const urlNullRemoved = (0, _ui_utils.removeNullCharacters)(url); + + if (enabled) { + link.href = link.title = urlNullRemoved; + } else { + link.href = ""; + link.title = `Disabled: ${urlNullRemoved}`; + + link.onclick = () => { + return false; + }; + } + + let targetStr = ""; + + switch (target) { + case LinkTarget.NONE: + break; + + case LinkTarget.SELF: + targetStr = "_self"; + break; + + case LinkTarget.BLANK: + targetStr = "_blank"; + break; + + case LinkTarget.PARENT: + targetStr = "_parent"; + break; + + case LinkTarget.TOP: + targetStr = "_top"; + break; + } + + link.target = targetStr; + link.rel = typeof rel === "string" ? rel : DEFAULT_LINK_REL; +} + +class PDFLinkService { + #pagesRefCache = new Map(); + + constructor({ + eventBus, + externalLinkTarget = null, + externalLinkRel = null, + ignoreDestinationZoom = false + } = {}) { + this.eventBus = eventBus; + this.externalLinkTarget = externalLinkTarget; + this.externalLinkRel = externalLinkRel; + this.externalLinkEnabled = true; + this._ignoreDestinationZoom = ignoreDestinationZoom; + this.baseUrl = null; + this.pdfDocument = null; + this.pdfViewer = null; + this.pdfHistory = null; + } + + setDocument(pdfDocument, baseUrl = null) { + this.baseUrl = baseUrl; + this.pdfDocument = pdfDocument; + this.#pagesRefCache.clear(); + } + + setViewer(pdfViewer) { + this.pdfViewer = pdfViewer; + } + + setHistory(pdfHistory) { + this.pdfHistory = pdfHistory; + } + + get pagesCount() { + return this.pdfDocument ? this.pdfDocument.numPages : 0; + } + + get page() { + return this.pdfViewer.currentPageNumber; + } + + set page(value) { + this.pdfViewer.currentPageNumber = value; + } + + get rotation() { + return this.pdfViewer.pagesRotation; + } + + set rotation(value) { + this.pdfViewer.pagesRotation = value; + } + + #goToDestinationHelper(rawDest, namedDest = null, explicitDest) { + const destRef = explicitDest[0]; + let pageNumber; + + if (typeof destRef === "object" && destRef !== null) { + pageNumber = this._cachedPageNumber(destRef); + + if (!pageNumber) { + this.pdfDocument.getPageIndex(destRef).then(pageIndex => { + this.cachePageRef(pageIndex + 1, destRef); + this.#goToDestinationHelper(rawDest, namedDest, explicitDest); + }).catch(() => { + console.error(`PDFLinkService.#goToDestinationHelper: "${destRef}" is not ` + `a valid page reference, for dest="${rawDest}".`); + }); + return; + } + } else if (Number.isInteger(destRef)) { + pageNumber = destRef + 1; + } else { + console.error(`PDFLinkService.#goToDestinationHelper: "${destRef}" is not ` + `a valid destination reference, for dest="${rawDest}".`); + return; + } + + if (!pageNumber || pageNumber < 1 || pageNumber > this.pagesCount) { + console.error(`PDFLinkService.#goToDestinationHelper: "${pageNumber}" is not ` + `a valid page number, for dest="${rawDest}".`); + return; + } + + if (this.pdfHistory) { + this.pdfHistory.pushCurrentPosition(); + this.pdfHistory.push({ + namedDest, + explicitDest, + pageNumber + }); + } + + this.pdfViewer.scrollPageIntoView({ + pageNumber, + destArray: explicitDest, + ignoreDestinationZoom: this._ignoreDestinationZoom + }); + } + + async goToDestination(dest) { + if (!this.pdfDocument) { + return; + } + + let namedDest, explicitDest; + + if (typeof dest === "string") { + namedDest = dest; + explicitDest = await this.pdfDocument.getDestination(dest); + } else { + namedDest = null; + explicitDest = await dest; + } + + if (!Array.isArray(explicitDest)) { + console.error(`PDFLinkService.goToDestination: "${explicitDest}" is not ` + `a valid destination array, for dest="${dest}".`); + return; + } + + this.#goToDestinationHelper(dest, namedDest, explicitDest); + } + + goToPage(val) { + if (!this.pdfDocument) { + return; + } + + const pageNumber = typeof val === "string" && this.pdfViewer.pageLabelToPageNumber(val) || val | 0; + + if (!(Number.isInteger(pageNumber) && pageNumber > 0 && pageNumber <= this.pagesCount)) { + console.error(`PDFLinkService.goToPage: "${val}" is not a valid page.`); + return; + } + + if (this.pdfHistory) { + this.pdfHistory.pushCurrentPosition(); + this.pdfHistory.pushPage(pageNumber); + } + + this.pdfViewer.scrollPageIntoView({ + pageNumber + }); + } + + addLinkAttributes(link, url, newWindow = false) { + addLinkAttributes(link, { + url, + target: newWindow ? LinkTarget.BLANK : this.externalLinkTarget, + rel: this.externalLinkRel, + enabled: this.externalLinkEnabled + }); + } + + getDestinationHash(dest) { + if (typeof dest === "string") { + if (dest.length > 0) { + return this.getAnchorUrl("#" + escape(dest)); + } + } else if (Array.isArray(dest)) { + const str = JSON.stringify(dest); + + if (str.length > 0) { + return this.getAnchorUrl("#" + escape(str)); + } + } + + return this.getAnchorUrl(""); + } + + getAnchorUrl(anchor) { + return (this.baseUrl || "") + anchor; + } + + setHash(hash) { + if (!this.pdfDocument) { + return; + } + + let pageNumber, dest; + + if (hash.includes("=")) { + const params = (0, _ui_utils.parseQueryString)(hash); + + if (params.has("search")) { + this.eventBus.dispatch("findfromurlhash", { + source: this, + query: params.get("search").replace(/"/g, ""), + phraseSearch: params.get("phrase") === "true" + }); + } + + if (params.has("page")) { + pageNumber = params.get("page") | 0 || 1; + } + + if (params.has("zoom")) { + const zoomArgs = params.get("zoom").split(","); + const zoomArg = zoomArgs[0]; + const zoomArgNumber = parseFloat(zoomArg); + + if (!zoomArg.includes("Fit")) { + dest = [null, { + name: "XYZ" + }, zoomArgs.length > 1 ? zoomArgs[1] | 0 : null, zoomArgs.length > 2 ? zoomArgs[2] | 0 : null, zoomArgNumber ? zoomArgNumber / 100 : zoomArg]; + } else { + if (zoomArg === "Fit" || zoomArg === "FitB") { + dest = [null, { + name: zoomArg + }]; + } else if (zoomArg === "FitH" || zoomArg === "FitBH" || zoomArg === "FitV" || zoomArg === "FitBV") { + dest = [null, { + name: zoomArg + }, zoomArgs.length > 1 ? zoomArgs[1] | 0 : null]; + } else if (zoomArg === "FitR") { + if (zoomArgs.length !== 5) { + console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'); + } else { + dest = [null, { + name: zoomArg + }, zoomArgs[1] | 0, zoomArgs[2] | 0, zoomArgs[3] | 0, zoomArgs[4] | 0]; + } + } else { + console.error(`PDFLinkService.setHash: "${zoomArg}" is not a valid zoom value.`); + } + } + } + + if (dest) { + this.pdfViewer.scrollPageIntoView({ + pageNumber: pageNumber || this.page, + destArray: dest, + allowNegativeOffset: true + }); + } else if (pageNumber) { + this.page = pageNumber; + } + + if (params.has("pagemode")) { + this.eventBus.dispatch("pagemode", { + source: this, + mode: params.get("pagemode") + }); + } + + if (params.has("nameddest")) { + this.goToDestination(params.get("nameddest")); + } + } else { + dest = unescape(hash); + + try { + dest = JSON.parse(dest); + + if (!Array.isArray(dest)) { + dest = dest.toString(); + } + } catch (ex) {} + + if (typeof dest === "string" || PDFLinkService.#isValidExplicitDestination(dest)) { + this.goToDestination(dest); + return; + } + + console.error(`PDFLinkService.setHash: "${unescape(hash)}" is not a valid destination.`); + } + } + + executeNamedAction(action) { + switch (action) { + case "GoBack": + this.pdfHistory?.back(); + break; + + case "GoForward": + this.pdfHistory?.forward(); + break; + + case "NextPage": + this.pdfViewer.nextPage(); + break; + + case "PrevPage": + this.pdfViewer.previousPage(); + break; + + case "LastPage": + this.page = this.pagesCount; + break; + + case "FirstPage": + this.page = 1; + break; + + default: + break; + } + + this.eventBus.dispatch("namedaction", { + source: this, + action + }); + } + + cachePageRef(pageNum, pageRef) { + if (!pageRef) { + return; + } + + const refStr = pageRef.gen === 0 ? `${pageRef.num}R` : `${pageRef.num}R${pageRef.gen}`; + this.#pagesRefCache.set(refStr, pageNum); + } + + _cachedPageNumber(pageRef) { + if (!pageRef) { + return null; + } + + const refStr = pageRef.gen === 0 ? `${pageRef.num}R` : `${pageRef.num}R${pageRef.gen}`; + return this.#pagesRefCache.get(refStr) || null; + } + + isPageVisible(pageNumber) { + return this.pdfViewer.isPageVisible(pageNumber); + } + + isPageCached(pageNumber) { + return this.pdfViewer.isPageCached(pageNumber); + } + + static #isValidExplicitDestination(dest) { + if (!Array.isArray(dest)) { + return false; + } + + const destLength = dest.length; + + if (destLength < 2) { + return false; + } + + const page = dest[0]; + + if (!(typeof page === "object" && Number.isInteger(page.num) && Number.isInteger(page.gen)) && !(Number.isInteger(page) && page >= 0)) { + return false; + } + + const zoom = dest[1]; + + if (!(typeof zoom === "object" && typeof zoom.name === "string")) { + return false; + } + + let allowNull = true; + + switch (zoom.name) { + case "XYZ": + if (destLength !== 5) { + return false; + } + + break; + + case "Fit": + case "FitB": + return destLength === 2; + + case "FitH": + case "FitBH": + case "FitV": + case "FitBV": + if (destLength !== 3) { + return false; + } + + break; + + case "FitR": + if (destLength !== 6) { + return false; + } + + allowNull = false; + break; + + default: + return false; + } + + for (let i = 2; i < destLength; i++) { + const param = dest[i]; + + if (!(typeof param === "number" || allowNull && param === null)) { + return false; + } + } + + return true; + } + +} + +exports.PDFLinkService = PDFLinkService; + +class SimpleLinkService { + constructor() { + this.externalLinkEnabled = true; + } + + get pagesCount() { + return 0; + } + + get page() { + return 0; + } + + set page(value) {} + + get rotation() { + return 0; + } + + set rotation(value) {} + + async goToDestination(dest) {} + + goToPage(val) {} + + addLinkAttributes(link, url, newWindow = false) { + addLinkAttributes(link, { + url, + enabled: this.externalLinkEnabled + }); + } + + getDestinationHash(dest) { + return "#"; + } + + getAnchorUrl(hash) { + return "#"; + } + + setHash(hash) {} + + executeNamedAction(action) {} + + cachePageRef(pageNum, pageRef) {} + + isPageVisible(pageNumber) { + return true; + } + + isPageCached(pageNumber) { + return true; + } + +} + +exports.SimpleLinkService = SimpleLinkService; + +/***/ }), +/* 4 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFViewerApplication = exports.PDFPrintServiceFactory = exports.DefaultExternalServices = void 0; + +var _ui_utils = __webpack_require__(1); + +var _pdfjsLib = __webpack_require__(5); + +var _app_options = __webpack_require__(2); + +var _event_utils = __webpack_require__(6); + +var _pdf_cursor_tools = __webpack_require__(7); + +var _pdf_link_service = __webpack_require__(3); + +var _annotation_editor_params = __webpack_require__(9); + +var _overlay_manager = __webpack_require__(10); + +var _password_prompt = __webpack_require__(11); + +var _pdf_attachment_viewer = __webpack_require__(12); + +var _pdf_document_properties = __webpack_require__(14); + +var _pdf_find_bar = __webpack_require__(15); + +var _pdf_find_controller = __webpack_require__(16); + +var _pdf_history = __webpack_require__(18); + +var _pdf_layer_viewer = __webpack_require__(19); + +var _pdf_outline_viewer = __webpack_require__(20); + +var _pdf_presentation_mode = __webpack_require__(21); + +var _pdf_rendering_queue = __webpack_require__(22); + +var _pdf_scripting_manager = __webpack_require__(23); + +var _pdf_sidebar = __webpack_require__(24); + +var _pdf_sidebar_resizer = __webpack_require__(25); + +var _pdf_thumbnail_viewer = __webpack_require__(26); + +var _pdf_viewer = __webpack_require__(28); + +var _secondary_toolbar = __webpack_require__(39); + +var _toolbar = __webpack_require__(40); + +var _view_history = __webpack_require__(41); + +const DISABLE_AUTO_FETCH_LOADING_BAR_TIMEOUT = 5000; +const FORCE_PAGES_LOADED_TIMEOUT = 10000; +const WHEEL_ZOOM_DISABLED_TIMEOUT = 1000; +const ViewOnLoad = { + UNKNOWN: -1, + PREVIOUS: 0, + INITIAL: 1 +}; +const ViewerCssTheme = { + AUTOMATIC: 0, + LIGHT: 1, + DARK: 2 +}; +const KNOWN_VERSIONS = ["1.0", "1.1", "1.2", "1.3", "1.4", "1.5", "1.6", "1.7", "1.8", "1.9", "2.0", "2.1", "2.2", "2.3"]; +const KNOWN_GENERATORS = ["acrobat distiller", "acrobat pdfwriter", "adobe livecycle", "adobe pdf library", "adobe photoshop", "ghostscript", "tcpdf", "cairo", "dvipdfm", "dvips", "pdftex", "pdfkit", "itext", "prince", "quarkxpress", "mac os x", "microsoft", "openoffice", "oracle", "luradocument", "pdf-xchange", "antenna house", "aspose.cells", "fpdf"]; + +class DefaultExternalServices { + constructor() { + throw new Error("Cannot initialize DefaultExternalServices."); + } + + static updateFindControlState(data) {} + + static updateFindMatchesCount(data) {} + + static initPassiveLoading(callbacks) {} + + static reportTelemetry(data) {} + + static createDownloadManager(options) { + throw new Error("Not implemented: createDownloadManager"); + } + + static createPreferences() { + throw new Error("Not implemented: createPreferences"); + } + + static createL10n(options) { + throw new Error("Not implemented: createL10n"); + } + + static createScripting(options) { + throw new Error("Not implemented: createScripting"); + } + + static get supportsIntegratedFind() { + return (0, _pdfjsLib.shadow)(this, "supportsIntegratedFind", false); + } + + static get supportsDocumentFonts() { + return (0, _pdfjsLib.shadow)(this, "supportsDocumentFonts", true); + } + + static get supportedMouseWheelZoomModifierKeys() { + return (0, _pdfjsLib.shadow)(this, "supportedMouseWheelZoomModifierKeys", { + ctrlKey: true, + metaKey: true + }); + } + + static get isInAutomation() { + return (0, _pdfjsLib.shadow)(this, "isInAutomation", false); + } + + static updateEditorStates(data) { + throw new Error("Not implemented: updateEditorStates"); + } + +} + +exports.DefaultExternalServices = DefaultExternalServices; +const PDFViewerApplication = { + initialBookmark: document.location.hash.substring(1), + _initializedCapability: (0, _pdfjsLib.createPromiseCapability)(), + appConfig: null, + pdfDocument: null, + pdfLoadingTask: null, + printService: null, + pdfViewer: null, + pdfThumbnailViewer: null, + pdfRenderingQueue: null, + pdfPresentationMode: null, + pdfDocumentProperties: null, + pdfLinkService: null, + pdfHistory: null, + pdfSidebar: null, + pdfSidebarResizer: null, + pdfOutlineViewer: null, + pdfAttachmentViewer: null, + pdfLayerViewer: null, + pdfCursorTools: null, + pdfScriptingManager: null, + store: null, + downloadManager: null, + overlayManager: null, + preferences: null, + toolbar: null, + secondaryToolbar: null, + eventBus: null, + l10n: null, + annotationEditorParams: null, + isInitialViewSet: false, + downloadComplete: false, + isViewerEmbedded: window.parent !== window, + url: "", + baseUrl: "", + _downloadUrl: "", + externalServices: DefaultExternalServices, + _boundEvents: Object.create(null), + documentInfo: null, + metadata: null, + _contentDispositionFilename: null, + _contentLength: null, + _saveInProgress: false, + _docStats: null, + _wheelUnusedTicks: 0, + _idleCallbacks: new Set(), + _PDFBug: null, + _hasAnnotationEditors: false, + _title: document.title, + _printAnnotationStoragePromise: null, + + async initialize(appConfig) { + this.preferences = this.externalServices.createPreferences(); + this.appConfig = appConfig; + await this._readPreferences(); + await this._parseHashParameters(); + + this._forceCssTheme(); + + await this._initializeL10n(); + + if (this.isViewerEmbedded && _app_options.AppOptions.get("externalLinkTarget") === _pdf_link_service.LinkTarget.NONE) { + _app_options.AppOptions.set("externalLinkTarget", _pdf_link_service.LinkTarget.TOP); + } + + await this._initializeViewerComponents(); + this.bindEvents(); + this.bindWindowEvents(); + const appContainer = appConfig.appContainer || document.documentElement; + this.l10n.translate(appContainer).then(() => { + this.eventBus.dispatch("localized", { + source: this + }); + }); + + this._initializedCapability.resolve(); + }, + + async _readPreferences() { + if (_app_options.AppOptions.get("disablePreferences")) { + return; + } + + if (_app_options.AppOptions._hasUserOptions()) { + console.warn("_readPreferences: The Preferences may override manually set AppOptions; " + 'please use the "disablePreferences"-option in order to prevent that.'); + } + + try { + _app_options.AppOptions.setAll(await this.preferences.getAll()); + } catch (reason) { + console.error(`_readPreferences: "${reason?.message}".`); + } + }, + + async _parseHashParameters() { + if (!_app_options.AppOptions.get("pdfBugEnabled")) { + return; + } + + const hash = document.location.hash.substring(1); + + if (!hash) { + return; + } + + const { + mainContainer, + viewerContainer + } = this.appConfig, + params = (0, _ui_utils.parseQueryString)(hash); + + if (params.get("disableworker") === "true") { + try { + await loadFakeWorker(); + } catch (ex) { + console.error(`_parseHashParameters: "${ex.message}".`); + } + } + + if (params.has("disablerange")) { + _app_options.AppOptions.set("disableRange", params.get("disablerange") === "true"); + } + + if (params.has("disablestream")) { + _app_options.AppOptions.set("disableStream", params.get("disablestream") === "true"); + } + + if (params.has("disableautofetch")) { + _app_options.AppOptions.set("disableAutoFetch", params.get("disableautofetch") === "true"); + } + + if (params.has("disablefontface")) { + _app_options.AppOptions.set("disableFontFace", params.get("disablefontface") === "true"); + } + + if (params.has("disablehistory")) { + _app_options.AppOptions.set("disableHistory", params.get("disablehistory") === "true"); + } + + if (params.has("verbosity")) { + _app_options.AppOptions.set("verbosity", params.get("verbosity") | 0); + } + + if (params.has("textlayer")) { + switch (params.get("textlayer")) { + case "off": + _app_options.AppOptions.set("textLayerMode", _ui_utils.TextLayerMode.DISABLE); + + break; + + case "visible": + case "shadow": + case "hover": + viewerContainer.classList.add(`textLayer-${params.get("textlayer")}`); + + try { + await loadPDFBug(this); + + this._PDFBug.loadCSS(); + } catch (ex) { + console.error(`_parseHashParameters: "${ex.message}".`); + } + + break; + } + } + + if (params.has("pdfbug")) { + _app_options.AppOptions.set("pdfBug", true); + + _app_options.AppOptions.set("fontExtraProperties", true); + + const enabled = params.get("pdfbug").split(","); + + try { + await loadPDFBug(this); + + this._PDFBug.init({ + OPS: _pdfjsLib.OPS + }, mainContainer, enabled); + } catch (ex) { + console.error(`_parseHashParameters: "${ex.message}".`); + } + } + + if (params.has("locale")) { + _app_options.AppOptions.set("locale", params.get("locale")); + } + }, + + async _initializeL10n() { + this.l10n = this.externalServices.createL10n({ + locale: _app_options.AppOptions.get("locale") + }); + const dir = await this.l10n.getDirection(); + document.getElementsByTagName("html")[0].dir = dir; + }, + + _forceCssTheme() { + const cssTheme = _app_options.AppOptions.get("viewerCssTheme"); + + if (cssTheme === ViewerCssTheme.AUTOMATIC || !Object.values(ViewerCssTheme).includes(cssTheme)) { + return; + } + + try { + const styleSheet = document.styleSheets[0]; + const cssRules = styleSheet?.cssRules || []; + + for (let i = 0, ii = cssRules.length; i < ii; i++) { + const rule = cssRules[i]; + + if (rule instanceof CSSMediaRule && rule.media?.[0] === "(prefers-color-scheme: dark)") { + if (cssTheme === ViewerCssTheme.LIGHT) { + styleSheet.deleteRule(i); + return; + } + + const darkRules = /^@media \(prefers-color-scheme: dark\) {\n\s*([\w\s-.,:;/\\{}()]+)\n}$/.exec(rule.cssText); + + if (darkRules?.[1]) { + styleSheet.deleteRule(i); + styleSheet.insertRule(darkRules[1], i); + } + + return; + } + } + } catch (reason) { + console.error(`_forceCssTheme: "${reason?.message}".`); + } + }, + + async _initializeViewerComponents() { + const { + appConfig, + externalServices + } = this; + const eventBus = externalServices.isInAutomation ? new _event_utils.AutomationEventBus() : new _event_utils.EventBus(); + this.eventBus = eventBus; + this.overlayManager = new _overlay_manager.OverlayManager(); + const pdfRenderingQueue = new _pdf_rendering_queue.PDFRenderingQueue(); + pdfRenderingQueue.onIdle = this._cleanup.bind(this); + this.pdfRenderingQueue = pdfRenderingQueue; + const pdfLinkService = new _pdf_link_service.PDFLinkService({ + eventBus, + externalLinkTarget: _app_options.AppOptions.get("externalLinkTarget"), + externalLinkRel: _app_options.AppOptions.get("externalLinkRel"), + ignoreDestinationZoom: _app_options.AppOptions.get("ignoreDestinationZoom") + }); + this.pdfLinkService = pdfLinkService; + const downloadManager = externalServices.createDownloadManager(); + this.downloadManager = downloadManager; + const findController = new _pdf_find_controller.PDFFindController({ + linkService: pdfLinkService, + eventBus + }); + this.findController = findController; + const pdfScriptingManager = new _pdf_scripting_manager.PDFScriptingManager({ + eventBus, + sandboxBundleSrc: _app_options.AppOptions.get("sandboxBundleSrc"), + scriptingFactory: externalServices, + docPropertiesLookup: this._scriptingDocProperties.bind(this) + }); + this.pdfScriptingManager = pdfScriptingManager; + const container = appConfig.mainContainer, + viewer = appConfig.viewerContainer; + + const annotationEditorMode = _app_options.AppOptions.get("annotationEditorMode"); + + const pageColors = _app_options.AppOptions.get("forcePageColors") || window.matchMedia("(forced-colors: active)").matches ? { + background: _app_options.AppOptions.get("pageColorsBackground"), + foreground: _app_options.AppOptions.get("pageColorsForeground") + } : null; + this.pdfViewer = new _pdf_viewer.PDFViewer({ + container, + viewer, + eventBus, + renderingQueue: pdfRenderingQueue, + linkService: pdfLinkService, + downloadManager, + findController, + scriptingManager: _app_options.AppOptions.get("enableScripting") && pdfScriptingManager, + renderer: _app_options.AppOptions.get("renderer"), + l10n: this.l10n, + textLayerMode: _app_options.AppOptions.get("textLayerMode"), + annotationMode: _app_options.AppOptions.get("annotationMode"), + annotationEditorMode, + imageResourcesPath: _app_options.AppOptions.get("imageResourcesPath"), + enablePrintAutoRotate: _app_options.AppOptions.get("enablePrintAutoRotate"), + useOnlyCssZoom: _app_options.AppOptions.get("useOnlyCssZoom"), + maxCanvasPixels: _app_options.AppOptions.get("maxCanvasPixels"), + enablePermissions: _app_options.AppOptions.get("enablePermissions"), + pageColors + }); + pdfRenderingQueue.setViewer(this.pdfViewer); + pdfLinkService.setViewer(this.pdfViewer); + pdfScriptingManager.setViewer(this.pdfViewer); + this.pdfThumbnailViewer = new _pdf_thumbnail_viewer.PDFThumbnailViewer({ + container: appConfig.sidebar.thumbnailView, + eventBus, + renderingQueue: pdfRenderingQueue, + linkService: pdfLinkService, + l10n: this.l10n, + pageColors + }); + pdfRenderingQueue.setThumbnailViewer(this.pdfThumbnailViewer); + + if (!this.isViewerEmbedded && !_app_options.AppOptions.get("disableHistory")) { + this.pdfHistory = new _pdf_history.PDFHistory({ + linkService: pdfLinkService, + eventBus + }); + pdfLinkService.setHistory(this.pdfHistory); + } + + if (!this.supportsIntegratedFind) { + this.findBar = new _pdf_find_bar.PDFFindBar(appConfig.findBar, eventBus, this.l10n); + } + + if (annotationEditorMode !== _pdfjsLib.AnnotationEditorType.DISABLE) { + this.annotationEditorParams = new _annotation_editor_params.AnnotationEditorParams(appConfig.annotationEditorParams, eventBus); + + for (const element of [document.getElementById("editorModeButtons"), document.getElementById("editorModeSeparator")]) { + element.classList.remove("hidden"); + } + } + + this.pdfDocumentProperties = new _pdf_document_properties.PDFDocumentProperties(appConfig.documentProperties, this.overlayManager, eventBus, this.l10n, () => { + return this._docFilename; + }); + this.pdfCursorTools = new _pdf_cursor_tools.PDFCursorTools({ + container, + eventBus, + cursorToolOnLoad: _app_options.AppOptions.get("cursorToolOnLoad") + }); + this.toolbar = new _toolbar.Toolbar(appConfig.toolbar, eventBus, this.l10n); + this.secondaryToolbar = new _secondary_toolbar.SecondaryToolbar(appConfig.secondaryToolbar, eventBus); + + if (this.supportsFullscreen) { + this.pdfPresentationMode = new _pdf_presentation_mode.PDFPresentationMode({ + container, + pdfViewer: this.pdfViewer, + eventBus + }); + } + + this.passwordPrompt = new _password_prompt.PasswordPrompt(appConfig.passwordOverlay, this.overlayManager, this.l10n, this.isViewerEmbedded); + this.pdfOutlineViewer = new _pdf_outline_viewer.PDFOutlineViewer({ + container: appConfig.sidebar.outlineView, + eventBus, + linkService: pdfLinkService + }); + this.pdfAttachmentViewer = new _pdf_attachment_viewer.PDFAttachmentViewer({ + container: appConfig.sidebar.attachmentsView, + eventBus, + downloadManager + }); + this.pdfLayerViewer = new _pdf_layer_viewer.PDFLayerViewer({ + container: appConfig.sidebar.layersView, + eventBus, + l10n: this.l10n + }); + this.pdfSidebar = new _pdf_sidebar.PDFSidebar({ + elements: appConfig.sidebar, + pdfViewer: this.pdfViewer, + pdfThumbnailViewer: this.pdfThumbnailViewer, + eventBus, + l10n: this.l10n + }); + this.pdfSidebar.onToggled = this.forceRendering.bind(this); + this.pdfSidebarResizer = new _pdf_sidebar_resizer.PDFSidebarResizer(appConfig.sidebarResizer, eventBus, this.l10n); + }, + + run(config) { + this.initialize(config).then(webViewerInitialized); + }, + + get initialized() { + return this._initializedCapability.settled; + }, + + get initializedPromise() { + return this._initializedCapability.promise; + }, + + zoomIn(steps) { + if (this.pdfViewer.isInPresentationMode) { + return; + } + + this.pdfViewer.increaseScale(steps); + }, + + zoomOut(steps) { + if (this.pdfViewer.isInPresentationMode) { + return; + } + + this.pdfViewer.decreaseScale(steps); + }, + + zoomReset() { + if (this.pdfViewer.isInPresentationMode) { + return; + } + + this.pdfViewer.currentScaleValue = _ui_utils.DEFAULT_SCALE_VALUE; + }, + + get pagesCount() { + return this.pdfDocument ? this.pdfDocument.numPages : 0; + }, + + get page() { + return this.pdfViewer.currentPageNumber; + }, + + set page(val) { + this.pdfViewer.currentPageNumber = val; + }, + + get supportsPrinting() { + return PDFPrintServiceFactory.instance.supportsPrinting; + }, + + get supportsFullscreen() { + return (0, _pdfjsLib.shadow)(this, "supportsFullscreen", document.fullscreenEnabled); + }, + + get supportsIntegratedFind() { + return this.externalServices.supportsIntegratedFind; + }, + + get supportsDocumentFonts() { + return this.externalServices.supportsDocumentFonts; + }, + + get loadingBar() { + const bar = new _ui_utils.ProgressBar("loadingBar"); + return (0, _pdfjsLib.shadow)(this, "loadingBar", bar); + }, + + get supportedMouseWheelZoomModifierKeys() { + return this.externalServices.supportedMouseWheelZoomModifierKeys; + }, + + initPassiveLoading() { + throw new Error("Not implemented: initPassiveLoading"); + }, + + setTitleUsingUrl(url = "", downloadUrl = null) { + this.url = url; + this.baseUrl = url.split("#")[0]; + + if (downloadUrl) { + this._downloadUrl = downloadUrl === url ? this.baseUrl : downloadUrl.split("#")[0]; + } + + let title = (0, _pdfjsLib.getPdfFilenameFromUrl)(url, ""); + + if (!title) { + try { + title = decodeURIComponent((0, _pdfjsLib.getFilenameFromUrl)(url)) || url; + } catch (ex) { + title = url; + } + } + + this.setTitle(title); + }, + + setTitle(title = this._title) { + this._title = title; + + if (this.isViewerEmbedded) { + return; + } + + document.title = `${this._hasAnnotationEditors ? "* " : ""}${title}`; + }, + + get _docFilename() { + return this._contentDispositionFilename || (0, _pdfjsLib.getPdfFilenameFromUrl)(this.url); + }, + + _hideViewBookmark() { + const { + toolbar, + secondaryToolbar + } = this.appConfig; + toolbar.viewBookmark.hidden = true; + secondaryToolbar.viewBookmarkButton.hidden = true; + }, + + _cancelIdleCallbacks() { + if (!this._idleCallbacks.size) { + return; + } + + for (const callback of this._idleCallbacks) { + window.cancelIdleCallback(callback); + } + + this._idleCallbacks.clear(); + }, + + async close() { + this._unblockDocumentLoadEvent(); + + this._hideViewBookmark(); + + const { + container + } = this.appConfig.errorWrapper; + container.hidden = true; + + if (!this.pdfLoadingTask) { + return; + } + + if (this.pdfDocument?.annotationStorage.size > 0 && this._annotationStorageModified) { + try { + await this.save(); + } catch (reason) {} + } + + const promises = []; + promises.push(this.pdfLoadingTask.destroy()); + this.pdfLoadingTask = null; + + if (this.pdfDocument) { + this.pdfDocument = null; + this.pdfThumbnailViewer.setDocument(null); + this.pdfViewer.setDocument(null); + this.pdfLinkService.setDocument(null); + this.pdfDocumentProperties.setDocument(null); + } + + this.pdfLinkService.externalLinkEnabled = true; + this.store = null; + this.isInitialViewSet = false; + this.downloadComplete = false; + this.url = ""; + this.baseUrl = ""; + this._downloadUrl = ""; + this.documentInfo = null; + this.metadata = null; + this._contentDispositionFilename = null; + this._contentLength = null; + this._saveInProgress = false; + this._docStats = null; + this._hasAnnotationEditors = false; + + this._cancelIdleCallbacks(); + + promises.push(this.pdfScriptingManager.destroyPromise); + this.setTitle(); + this.pdfSidebar.reset(); + this.pdfOutlineViewer.reset(); + this.pdfAttachmentViewer.reset(); + this.pdfLayerViewer.reset(); + this.pdfHistory?.reset(); + this.findBar?.reset(); + this.toolbar.reset(); + this.secondaryToolbar.reset(); + this._PDFBug?.cleanup(); + await Promise.all(promises); + }, + + async open(file, args) { + if (this.pdfLoadingTask) { + await this.close(); + } + + const workerParameters = _app_options.AppOptions.getAll(_app_options.OptionKind.WORKER); + + for (const key in workerParameters) { + _pdfjsLib.GlobalWorkerOptions[key] = workerParameters[key]; + } + + const parameters = Object.create(null); + + if (typeof file === "string") { + this.setTitleUsingUrl(file, file); + parameters.url = file; + } else if (file && "byteLength" in file) { + parameters.data = file; + } else if (file.url && file.originalUrl) { + this.setTitleUsingUrl(file.originalUrl, file.url); + parameters.url = file.url; + } + + const apiParameters = _app_options.AppOptions.getAll(_app_options.OptionKind.API); + + for (const key in apiParameters) { + let value = apiParameters[key]; + + if (key === "docBaseUrl" && !value) {} + + parameters[key] = value; + } + + if (args) { + for (const key in args) { + parameters[key] = args[key]; + } + } + + const loadingTask = (0, _pdfjsLib.getDocument)(parameters); + this.pdfLoadingTask = loadingTask; + + loadingTask.onPassword = (updateCallback, reason) => { + this.pdfLinkService.externalLinkEnabled = false; + this.passwordPrompt.setUpdateCallback(updateCallback, reason); + this.passwordPrompt.open(); + }; + + loadingTask.onProgress = ({ + loaded, + total + }) => { + this.progress(loaded / total); + }; + + loadingTask.onUnsupportedFeature = this.fallback.bind(this); + return loadingTask.promise.then(pdfDocument => { + this.load(pdfDocument); + }, reason => { + if (loadingTask !== this.pdfLoadingTask) { + return undefined; + } + + let key = "loading_error"; + + if (reason instanceof _pdfjsLib.InvalidPDFException) { + key = "invalid_file_error"; + } else if (reason instanceof _pdfjsLib.MissingPDFException) { + key = "missing_file_error"; + } else if (reason instanceof _pdfjsLib.UnexpectedResponseException) { + key = "unexpected_response_error"; + } + + return this.l10n.get(key).then(msg => { + this._documentError(msg, { + message: reason?.message + }); + + throw reason; + }); + }); + }, + + _ensureDownloadComplete() { + if (this.pdfDocument && this.downloadComplete) { + return; + } + + throw new Error("PDF document not downloaded."); + }, + + async download() { + const url = this._downloadUrl, + filename = this._docFilename; + + try { + this._ensureDownloadComplete(); + + const data = await this.pdfDocument.getData(); + const blob = new Blob([data], { + type: "application/pdf" + }); + await this.downloadManager.download(blob, url, filename); + } catch (reason) { + await this.downloadManager.downloadUrl(url, filename); + } + }, + + async save() { + if (this._saveInProgress) { + return; + } + + this._saveInProgress = true; + await this.pdfScriptingManager.dispatchWillSave(); + const url = this._downloadUrl, + filename = this._docFilename; + + try { + this._ensureDownloadComplete(); + + const data = await this.pdfDocument.saveDocument(); + const blob = new Blob([data], { + type: "application/pdf" + }); + await this.downloadManager.download(blob, url, filename); + } catch (reason) { + console.error(`Error when saving the document: ${reason.message}`); + await this.download(); + } finally { + await this.pdfScriptingManager.dispatchDidSave(); + this._saveInProgress = false; + } + + if (this._hasAnnotationEditors) { + this.externalServices.reportTelemetry({ + type: "editing", + data: { + type: "save" + } + }); + } + }, + + downloadOrSave() { + if (this.pdfDocument?.annotationStorage.size > 0) { + this.save(); + } else { + this.download(); + } + }, + + fallback(featureId) { + this.externalServices.reportTelemetry({ + type: "unsupportedFeature", + featureId + }); + }, + + _documentError(message, moreInfo = null) { + this._unblockDocumentLoadEvent(); + + this._otherError(message, moreInfo); + + this.eventBus.dispatch("documenterror", { + source: this, + message, + reason: moreInfo?.message ?? null + }); + }, + + _otherError(message, moreInfo = null) { + const moreInfoText = [this.l10n.get("error_version_info", { + version: _pdfjsLib.version || "?", + build: _pdfjsLib.build || "?" + })]; + + if (moreInfo) { + moreInfoText.push(this.l10n.get("error_message", { + message: moreInfo.message + })); + + if (moreInfo.stack) { + moreInfoText.push(this.l10n.get("error_stack", { + stack: moreInfo.stack + })); + } else { + if (moreInfo.filename) { + moreInfoText.push(this.l10n.get("error_file", { + file: moreInfo.filename + })); + } + + if (moreInfo.lineNumber) { + moreInfoText.push(this.l10n.get("error_line", { + line: moreInfo.lineNumber + })); + } + } + } + + const errorWrapperConfig = this.appConfig.errorWrapper; + const errorWrapper = errorWrapperConfig.container; + errorWrapper.hidden = false; + const errorMessage = errorWrapperConfig.errorMessage; + errorMessage.textContent = message; + const closeButton = errorWrapperConfig.closeButton; + + closeButton.onclick = function () { + errorWrapper.hidden = true; + }; + + const errorMoreInfo = errorWrapperConfig.errorMoreInfo; + const moreInfoButton = errorWrapperConfig.moreInfoButton; + const lessInfoButton = errorWrapperConfig.lessInfoButton; + + moreInfoButton.onclick = function () { + errorMoreInfo.hidden = false; + moreInfoButton.hidden = true; + lessInfoButton.hidden = false; + errorMoreInfo.style.height = errorMoreInfo.scrollHeight + "px"; + }; + + lessInfoButton.onclick = function () { + errorMoreInfo.hidden = true; + moreInfoButton.hidden = false; + lessInfoButton.hidden = true; + }; + + moreInfoButton.oncontextmenu = _ui_utils.noContextMenuHandler; + lessInfoButton.oncontextmenu = _ui_utils.noContextMenuHandler; + closeButton.oncontextmenu = _ui_utils.noContextMenuHandler; + moreInfoButton.hidden = false; + lessInfoButton.hidden = true; + Promise.all(moreInfoText).then(parts => { + errorMoreInfo.value = parts.join("\n"); + }); + }, + + progress(level) { + if (this.downloadComplete) { + return; + } + + const percent = Math.round(level * 100); + + if (percent <= this.loadingBar.percent) { + return; + } + + this.loadingBar.percent = percent; + + const disableAutoFetch = this.pdfDocument?.loadingParams.disableAutoFetch ?? _app_options.AppOptions.get("disableAutoFetch"); + + if (!disableAutoFetch || isNaN(percent)) { + return; + } + + if (this.disableAutoFetchLoadingBarTimeout) { + clearTimeout(this.disableAutoFetchLoadingBarTimeout); + this.disableAutoFetchLoadingBarTimeout = null; + } + + this.loadingBar.show(); + this.disableAutoFetchLoadingBarTimeout = setTimeout(() => { + this.loadingBar.hide(); + this.disableAutoFetchLoadingBarTimeout = null; + }, DISABLE_AUTO_FETCH_LOADING_BAR_TIMEOUT); + }, + + load(pdfDocument) { + this.pdfDocument = pdfDocument; + pdfDocument.getDownloadInfo().then(({ + length + }) => { + this._contentLength = length; + this.downloadComplete = true; + this.loadingBar.hide(); + firstPagePromise.then(() => { + this.eventBus.dispatch("documentloaded", { + source: this + }); + }); + }); + const pageLayoutPromise = pdfDocument.getPageLayout().catch(function () {}); + const pageModePromise = pdfDocument.getPageMode().catch(function () {}); + const openActionPromise = pdfDocument.getOpenAction().catch(function () {}); + this.toolbar.setPagesCount(pdfDocument.numPages, false); + this.secondaryToolbar.setPagesCount(pdfDocument.numPages); + let baseDocumentUrl; + baseDocumentUrl = null; + this.pdfLinkService.setDocument(pdfDocument, baseDocumentUrl); + this.pdfDocumentProperties.setDocument(pdfDocument); + const pdfViewer = this.pdfViewer; + pdfViewer.setDocument(pdfDocument); + const { + firstPagePromise, + onePageRendered, + pagesPromise + } = pdfViewer; + const pdfThumbnailViewer = this.pdfThumbnailViewer; + pdfThumbnailViewer.setDocument(pdfDocument); + const storedPromise = (this.store = new _view_history.ViewHistory(pdfDocument.fingerprints[0])).getMultiple({ + page: null, + zoom: _ui_utils.DEFAULT_SCALE_VALUE, + scrollLeft: "0", + scrollTop: "0", + rotation: null, + sidebarView: _ui_utils.SidebarView.UNKNOWN, + scrollMode: _ui_utils.ScrollMode.UNKNOWN, + spreadMode: _ui_utils.SpreadMode.UNKNOWN + }).catch(() => { + return Object.create(null); + }); + firstPagePromise.then(pdfPage => { + this.loadingBar.setWidth(this.appConfig.viewerContainer); + + this._initializeAnnotationStorageCallbacks(pdfDocument); + + Promise.all([_ui_utils.animationStarted, storedPromise, pageLayoutPromise, pageModePromise, openActionPromise]).then(async ([timeStamp, stored, pageLayout, pageMode, openAction]) => { + const viewOnLoad = _app_options.AppOptions.get("viewOnLoad"); + + this._initializePdfHistory({ + fingerprint: pdfDocument.fingerprints[0], + viewOnLoad, + initialDest: openAction?.dest + }); + + const initialBookmark = this.initialBookmark; + + const zoom = _app_options.AppOptions.get("defaultZoomValue"); + + let hash = zoom ? `zoom=${zoom}` : null; + let rotation = null; + + let sidebarView = _app_options.AppOptions.get("sidebarViewOnLoad"); + + let scrollMode = _app_options.AppOptions.get("scrollModeOnLoad"); + + let spreadMode = _app_options.AppOptions.get("spreadModeOnLoad"); + + if (stored.page && viewOnLoad !== ViewOnLoad.INITIAL) { + hash = `page=${stored.page}&zoom=${zoom || stored.zoom},` + `${stored.scrollLeft},${stored.scrollTop}`; + rotation = parseInt(stored.rotation, 10); + + if (sidebarView === _ui_utils.SidebarView.UNKNOWN) { + sidebarView = stored.sidebarView | 0; + } + + if (scrollMode === _ui_utils.ScrollMode.UNKNOWN) { + scrollMode = stored.scrollMode | 0; + } + + if (spreadMode === _ui_utils.SpreadMode.UNKNOWN) { + spreadMode = stored.spreadMode | 0; + } + } + + if (pageMode && sidebarView === _ui_utils.SidebarView.UNKNOWN) { + sidebarView = (0, _ui_utils.apiPageModeToSidebarView)(pageMode); + } + + if (pageLayout && scrollMode === _ui_utils.ScrollMode.UNKNOWN && spreadMode === _ui_utils.SpreadMode.UNKNOWN) { + const modes = (0, _ui_utils.apiPageLayoutToViewerModes)(pageLayout); + spreadMode = modes.spreadMode; + } + + this.setInitialView(hash, { + rotation, + sidebarView, + scrollMode, + spreadMode + }); + this.eventBus.dispatch("documentinit", { + source: this + }); + + if (!this.isViewerEmbedded) { + pdfViewer.focus(); + } + + await Promise.race([pagesPromise, new Promise(resolve => { + setTimeout(resolve, FORCE_PAGES_LOADED_TIMEOUT); + })]); + + if (!initialBookmark && !hash) { + return; + } + + if (pdfViewer.hasEqualPageSizes) { + return; + } + + this.initialBookmark = initialBookmark; + pdfViewer.currentScaleValue = pdfViewer.currentScaleValue; + this.setInitialView(hash); + }).catch(() => { + this.setInitialView(); + }).then(function () { + pdfViewer.update(); + }); + }); + pagesPromise.then(() => { + this._unblockDocumentLoadEvent(); + + this._initializeAutoPrint(pdfDocument, openActionPromise); + }, reason => { + this.l10n.get("loading_error").then(msg => { + this._documentError(msg, { + message: reason?.message + }); + }); + }); + onePageRendered.then(data => { + this.externalServices.reportTelemetry({ + type: "pageInfo", + timestamp: data.timestamp + }); + pdfDocument.getOutline().then(outline => { + if (pdfDocument !== this.pdfDocument) { + return; + } + + this.pdfOutlineViewer.render({ + outline, + pdfDocument + }); + }); + pdfDocument.getAttachments().then(attachments => { + if (pdfDocument !== this.pdfDocument) { + return; + } + + this.pdfAttachmentViewer.render({ + attachments + }); + }); + pdfViewer.optionalContentConfigPromise.then(optionalContentConfig => { + if (pdfDocument !== this.pdfDocument) { + return; + } + + this.pdfLayerViewer.render({ + optionalContentConfig, + pdfDocument + }); + }); + + if ("requestIdleCallback" in window) { + const callback = window.requestIdleCallback(() => { + this._collectTelemetry(pdfDocument); + + this._idleCallbacks.delete(callback); + }, { + timeout: 1000 + }); + + this._idleCallbacks.add(callback); + } + }); + + this._initializePageLabels(pdfDocument); + + this._initializeMetadata(pdfDocument); + }, + + async _scriptingDocProperties(pdfDocument) { + if (!this.documentInfo) { + await new Promise(resolve => { + this.eventBus._on("metadataloaded", resolve, { + once: true + }); + }); + + if (pdfDocument !== this.pdfDocument) { + return null; + } + } + + if (!this._contentLength) { + await new Promise(resolve => { + this.eventBus._on("documentloaded", resolve, { + once: true + }); + }); + + if (pdfDocument !== this.pdfDocument) { + return null; + } + } + + return { ...this.documentInfo, + baseURL: this.baseUrl, + filesize: this._contentLength, + filename: this._docFilename, + metadata: this.metadata?.getRaw(), + authors: this.metadata?.get("dc:creator"), + numPages: this.pagesCount, + URL: this.url + }; + }, + + async _collectTelemetry(pdfDocument) { + const markInfo = await this.pdfDocument.getMarkInfo(); + + if (pdfDocument !== this.pdfDocument) { + return; + } + + const tagged = markInfo?.Marked || false; + this.externalServices.reportTelemetry({ + type: "tagged", + tagged + }); + }, + + async _initializeAutoPrint(pdfDocument, openActionPromise) { + const [openAction, javaScript] = await Promise.all([openActionPromise, !this.pdfViewer.enableScripting ? pdfDocument.getJavaScript() : null]); + + if (pdfDocument !== this.pdfDocument) { + return; + } + + let triggerAutoPrint = false; + + if (openAction?.action === "Print") { + triggerAutoPrint = true; + } + + if (javaScript) { + javaScript.some(js => { + if (!js) { + return false; + } + + console.warn("Warning: JavaScript support is not enabled"); + this.fallback(_pdfjsLib.UNSUPPORTED_FEATURES.javaScript); + return true; + }); + + if (!triggerAutoPrint) { + for (const js of javaScript) { + if (js && _ui_utils.AutoPrintRegExp.test(js)) { + triggerAutoPrint = true; + break; + } + } + } + } + + if (triggerAutoPrint) { + this.triggerPrinting(); + } + }, + + async _initializeMetadata(pdfDocument) { + const { + info, + metadata, + contentDispositionFilename, + contentLength + } = await pdfDocument.getMetadata(); + + if (pdfDocument !== this.pdfDocument) { + return; + } + + this.documentInfo = info; + this.metadata = metadata; + this._contentDispositionFilename ??= contentDispositionFilename; + this._contentLength ??= contentLength; + console.log(`PDF ${pdfDocument.fingerprints[0]} [${info.PDFFormatVersion} ` + `${(info.Producer || "-").trim()} / ${(info.Creator || "-").trim()}] ` + `(PDF.js: ${_pdfjsLib.version || "-"})`); + let pdfTitle = info.Title; + const metadataTitle = metadata?.get("dc:title"); + + if (metadataTitle) { + if (metadataTitle !== "Untitled" && !/[\uFFF0-\uFFFF]/g.test(metadataTitle)) { + pdfTitle = metadataTitle; + } + } + + if (pdfTitle) { + this.setTitle(`${pdfTitle} - ${this._contentDispositionFilename || this._title}`); + } else if (this._contentDispositionFilename) { + this.setTitle(this._contentDispositionFilename); + } + + if (info.IsXFAPresent && !info.IsAcroFormPresent && !pdfDocument.isPureXfa) { + if (pdfDocument.loadingParams.enableXfa) { + console.warn("Warning: XFA Foreground documents are not supported"); + } else { + console.warn("Warning: XFA support is not enabled"); + } + + this.fallback(_pdfjsLib.UNSUPPORTED_FEATURES.forms); + } else if ((info.IsAcroFormPresent || info.IsXFAPresent) && !this.pdfViewer.renderForms) { + console.warn("Warning: Interactive form support is not enabled"); + this.fallback(_pdfjsLib.UNSUPPORTED_FEATURES.forms); + } + + if (info.IsSignaturesPresent) { + console.warn("Warning: Digital signatures validation is not supported"); + this.fallback(_pdfjsLib.UNSUPPORTED_FEATURES.signatures); + } + + let versionId = "other"; + + if (KNOWN_VERSIONS.includes(info.PDFFormatVersion)) { + versionId = `v${info.PDFFormatVersion.replace(".", "_")}`; + } + + let generatorId = "other"; + + if (info.Producer) { + const producer = info.Producer.toLowerCase(); + KNOWN_GENERATORS.some(function (generator) { + if (!producer.includes(generator)) { + return false; + } + + generatorId = generator.replace(/[ .-]/g, "_"); + return true; + }); + } + + let formType = null; + + if (info.IsXFAPresent) { + formType = "xfa"; + } else if (info.IsAcroFormPresent) { + formType = "acroform"; + } + + this.externalServices.reportTelemetry({ + type: "documentInfo", + version: versionId, + generator: generatorId, + formType + }); + this.eventBus.dispatch("metadataloaded", { + source: this + }); + }, + + async _initializePageLabels(pdfDocument) { + const labels = await pdfDocument.getPageLabels(); + + if (pdfDocument !== this.pdfDocument) { + return; + } + + if (!labels || _app_options.AppOptions.get("disablePageLabels")) { + return; + } + + const numLabels = labels.length; + let standardLabels = 0, + emptyLabels = 0; + + for (let i = 0; i < numLabels; i++) { + const label = labels[i]; + + if (label === (i + 1).toString()) { + standardLabels++; + } else if (label === "") { + emptyLabels++; + } else { + break; + } + } + + if (standardLabels >= numLabels || emptyLabels >= numLabels) { + return; + } + + const { + pdfViewer, + pdfThumbnailViewer, + toolbar + } = this; + pdfViewer.setPageLabels(labels); + pdfThumbnailViewer.setPageLabels(labels); + toolbar.setPagesCount(numLabels, true); + toolbar.setPageNumber(pdfViewer.currentPageNumber, pdfViewer.currentPageLabel); + }, + + _initializePdfHistory({ + fingerprint, + viewOnLoad, + initialDest = null + }) { + if (!this.pdfHistory) { + return; + } + + this.pdfHistory.initialize({ + fingerprint, + resetHistory: viewOnLoad === ViewOnLoad.INITIAL, + updateUrl: _app_options.AppOptions.get("historyUpdateUrl") + }); + + if (this.pdfHistory.initialBookmark) { + this.initialBookmark = this.pdfHistory.initialBookmark; + this.initialRotation = this.pdfHistory.initialRotation; + } + + if (initialDest && !this.initialBookmark && viewOnLoad === ViewOnLoad.UNKNOWN) { + this.initialBookmark = JSON.stringify(initialDest); + this.pdfHistory.push({ + explicitDest: initialDest, + pageNumber: null + }); + } + }, + + _initializeAnnotationStorageCallbacks(pdfDocument) { + if (pdfDocument !== this.pdfDocument) { + return; + } + + const { + annotationStorage + } = pdfDocument; + + annotationStorage.onSetModified = () => { + window.addEventListener("beforeunload", beforeUnload); + this._annotationStorageModified = true; + }; + + annotationStorage.onResetModified = () => { + window.removeEventListener("beforeunload", beforeUnload); + delete this._annotationStorageModified; + }; + + annotationStorage.onAnnotationEditor = typeStr => { + this._hasAnnotationEditors = !!typeStr; + this.setTitle(); + + if (typeStr) { + this.externalServices.reportTelemetry({ + type: "editing", + data: { + type: typeStr + } + }); + } + }; + }, + + setInitialView(storedHash, { + rotation, + sidebarView, + scrollMode, + spreadMode + } = {}) { + const setRotation = angle => { + if ((0, _ui_utils.isValidRotation)(angle)) { + this.pdfViewer.pagesRotation = angle; + } + }; + + const setViewerModes = (scroll, spread) => { + if ((0, _ui_utils.isValidScrollMode)(scroll)) { + this.pdfViewer.scrollMode = scroll; + } + + if ((0, _ui_utils.isValidSpreadMode)(spread)) { + this.pdfViewer.spreadMode = spread; + } + }; + + this.isInitialViewSet = true; + this.pdfSidebar.setInitialView(sidebarView); + setViewerModes(scrollMode, spreadMode); + + if (this.initialBookmark) { + setRotation(this.initialRotation); + delete this.initialRotation; + this.pdfLinkService.setHash(this.initialBookmark); + this.initialBookmark = null; + } else if (storedHash) { + setRotation(rotation); + this.pdfLinkService.setHash(storedHash); + } + + this.toolbar.setPageNumber(this.pdfViewer.currentPageNumber, this.pdfViewer.currentPageLabel); + this.secondaryToolbar.setPageNumber(this.pdfViewer.currentPageNumber); + + if (!this.pdfViewer.currentScaleValue) { + this.pdfViewer.currentScaleValue = _ui_utils.DEFAULT_SCALE_VALUE; + } + }, + + _cleanup() { + if (!this.pdfDocument) { + return; + } + + this.pdfViewer.cleanup(); + this.pdfThumbnailViewer.cleanup(); + this.pdfDocument.cleanup(this.pdfViewer.renderer === _ui_utils.RendererType.SVG); + }, + + forceRendering() { + this.pdfRenderingQueue.printing = !!this.printService; + this.pdfRenderingQueue.isThumbnailViewEnabled = this.pdfSidebar.visibleView === _ui_utils.SidebarView.THUMBS; + this.pdfRenderingQueue.renderHighestPriority(); + }, + + beforePrint() { + this._printAnnotationStoragePromise = this.pdfScriptingManager.dispatchWillPrint().catch(() => {}).then(() => { + return this.pdfDocument?.annotationStorage.print; + }); + + if (this.printService) { + return; + } + + if (!this.supportsPrinting) { + this.l10n.get("printing_not_supported").then(msg => { + this._otherError(msg); + }); + return; + } + + if (!this.pdfViewer.pageViewsReady) { + this.l10n.get("printing_not_ready").then(msg => { + window.alert(msg); + }); + return; + } + + const pagesOverview = this.pdfViewer.getPagesOverview(); + const printContainer = this.appConfig.printContainer; + + const printResolution = _app_options.AppOptions.get("printResolution"); + + const optionalContentConfigPromise = this.pdfViewer.optionalContentConfigPromise; + const printService = PDFPrintServiceFactory.instance.createPrintService(this.pdfDocument, pagesOverview, printContainer, printResolution, optionalContentConfigPromise, this._printAnnotationStoragePromise, this.l10n); + this.printService = printService; + this.forceRendering(); + printService.layout(); + this.externalServices.reportTelemetry({ + type: "print" + }); + + if (this._hasAnnotationEditors) { + this.externalServices.reportTelemetry({ + type: "editing", + data: { + type: "print" + } + }); + } + }, + + afterPrint() { + if (this._printAnnotationStoragePromise) { + this._printAnnotationStoragePromise.then(() => { + this.pdfScriptingManager.dispatchDidPrint(); + }); + + this._printAnnotationStoragePromise = null; + } + + if (this.printService) { + this.printService.destroy(); + this.printService = null; + this.pdfDocument?.annotationStorage.resetModified(); + } + + this.forceRendering(); + }, + + rotatePages(delta) { + this.pdfViewer.pagesRotation += delta; + }, + + requestPresentationMode() { + this.pdfPresentationMode?.request(); + }, + + triggerPrinting() { + if (!this.supportsPrinting) { + return; + } + + window.print(); + }, + + bindEvents() { + const { + eventBus, + _boundEvents + } = this; + _boundEvents.beforePrint = this.beforePrint.bind(this); + _boundEvents.afterPrint = this.afterPrint.bind(this); + + eventBus._on("resize", webViewerResize); + + eventBus._on("hashchange", webViewerHashchange); + + eventBus._on("beforeprint", _boundEvents.beforePrint); + + eventBus._on("afterprint", _boundEvents.afterPrint); + + eventBus._on("pagerendered", webViewerPageRendered); + + eventBus._on("updateviewarea", webViewerUpdateViewarea); + + eventBus._on("pagechanging", webViewerPageChanging); + + eventBus._on("scalechanging", webViewerScaleChanging); + + eventBus._on("rotationchanging", webViewerRotationChanging); + + eventBus._on("sidebarviewchanged", webViewerSidebarViewChanged); + + eventBus._on("pagemode", webViewerPageMode); + + eventBus._on("namedaction", webViewerNamedAction); + + eventBus._on("presentationmodechanged", webViewerPresentationModeChanged); + + eventBus._on("presentationmode", webViewerPresentationMode); + + eventBus._on("switchannotationeditormode", webViewerSwitchAnnotationEditorMode); + + eventBus._on("switchannotationeditorparams", webViewerSwitchAnnotationEditorParams); + + eventBus._on("print", webViewerPrint); + + eventBus._on("download", webViewerDownload); + + eventBus._on("firstpage", webViewerFirstPage); + + eventBus._on("lastpage", webViewerLastPage); + + eventBus._on("nextpage", webViewerNextPage); + + eventBus._on("previouspage", webViewerPreviousPage); + + eventBus._on("zoomin", webViewerZoomIn); + + eventBus._on("zoomout", webViewerZoomOut); + + eventBus._on("zoomreset", webViewerZoomReset); + + eventBus._on("pagenumberchanged", webViewerPageNumberChanged); + + eventBus._on("scalechanged", webViewerScaleChanged); + + eventBus._on("rotatecw", webViewerRotateCw); + + eventBus._on("rotateccw", webViewerRotateCcw); + + eventBus._on("optionalcontentconfig", webViewerOptionalContentConfig); + + eventBus._on("switchscrollmode", webViewerSwitchScrollMode); + + eventBus._on("scrollmodechanged", webViewerScrollModeChanged); + + eventBus._on("switchspreadmode", webViewerSwitchSpreadMode); + + eventBus._on("spreadmodechanged", webViewerSpreadModeChanged); + + eventBus._on("documentproperties", webViewerDocumentProperties); + + eventBus._on("findfromurlhash", webViewerFindFromUrlHash); + + eventBus._on("updatefindmatchescount", webViewerUpdateFindMatchesCount); + + eventBus._on("updatefindcontrolstate", webViewerUpdateFindControlState); + + if (_app_options.AppOptions.get("pdfBug")) { + _boundEvents.reportPageStatsPDFBug = reportPageStatsPDFBug; + + eventBus._on("pagerendered", _boundEvents.reportPageStatsPDFBug); + + eventBus._on("pagechanging", _boundEvents.reportPageStatsPDFBug); + } + + eventBus._on("fileinputchange", webViewerFileInputChange); + + eventBus._on("openfile", webViewerOpenFile); + }, + + bindWindowEvents() { + const { + eventBus, + _boundEvents + } = this; + + function addWindowResolutionChange(evt = null) { + if (evt) { + webViewerResolutionChange(evt); + } + + const mediaQueryList = window.matchMedia(`(resolution: ${window.devicePixelRatio || 1}dppx)`); + mediaQueryList.addEventListener("change", addWindowResolutionChange, { + once: true + }); + + _boundEvents.removeWindowResolutionChange ||= function () { + mediaQueryList.removeEventListener("change", addWindowResolutionChange); + _boundEvents.removeWindowResolutionChange = null; + }; + } + + addWindowResolutionChange(); + + _boundEvents.windowResize = () => { + eventBus.dispatch("resize", { + source: window + }); + }; + + _boundEvents.windowHashChange = () => { + eventBus.dispatch("hashchange", { + source: window, + hash: document.location.hash.substring(1) + }); + }; + + _boundEvents.windowBeforePrint = () => { + eventBus.dispatch("beforeprint", { + source: window + }); + }; + + _boundEvents.windowAfterPrint = () => { + eventBus.dispatch("afterprint", { + source: window + }); + }; + + _boundEvents.windowUpdateFromSandbox = event => { + eventBus.dispatch("updatefromsandbox", { + source: window, + detail: event.detail + }); + }; + + window.addEventListener("visibilitychange", webViewerVisibilityChange); + window.addEventListener("wheel", webViewerWheel, { + passive: false + }); + window.addEventListener("touchstart", webViewerTouchStart, { + passive: false + }); + window.addEventListener("click", webViewerClick); + window.addEventListener("keydown", webViewerKeyDown); + window.addEventListener("resize", _boundEvents.windowResize); + window.addEventListener("hashchange", _boundEvents.windowHashChange); + window.addEventListener("beforeprint", _boundEvents.windowBeforePrint); + window.addEventListener("afterprint", _boundEvents.windowAfterPrint); + window.addEventListener("updatefromsandbox", _boundEvents.windowUpdateFromSandbox); + }, + + unbindEvents() { + const { + eventBus, + _boundEvents + } = this; + + eventBus._off("resize", webViewerResize); + + eventBus._off("hashchange", webViewerHashchange); + + eventBus._off("beforeprint", _boundEvents.beforePrint); + + eventBus._off("afterprint", _boundEvents.afterPrint); + + eventBus._off("pagerendered", webViewerPageRendered); + + eventBus._off("updateviewarea", webViewerUpdateViewarea); + + eventBus._off("pagechanging", webViewerPageChanging); + + eventBus._off("scalechanging", webViewerScaleChanging); + + eventBus._off("rotationchanging", webViewerRotationChanging); + + eventBus._off("sidebarviewchanged", webViewerSidebarViewChanged); + + eventBus._off("pagemode", webViewerPageMode); + + eventBus._off("namedaction", webViewerNamedAction); + + eventBus._off("presentationmodechanged", webViewerPresentationModeChanged); + + eventBus._off("presentationmode", webViewerPresentationMode); + + eventBus._off("print", webViewerPrint); + + eventBus._off("download", webViewerDownload); + + eventBus._off("firstpage", webViewerFirstPage); + + eventBus._off("lastpage", webViewerLastPage); + + eventBus._off("nextpage", webViewerNextPage); + + eventBus._off("previouspage", webViewerPreviousPage); + + eventBus._off("zoomin", webViewerZoomIn); + + eventBus._off("zoomout", webViewerZoomOut); + + eventBus._off("zoomreset", webViewerZoomReset); + + eventBus._off("pagenumberchanged", webViewerPageNumberChanged); + + eventBus._off("scalechanged", webViewerScaleChanged); + + eventBus._off("rotatecw", webViewerRotateCw); + + eventBus._off("rotateccw", webViewerRotateCcw); + + eventBus._off("optionalcontentconfig", webViewerOptionalContentConfig); + + eventBus._off("switchscrollmode", webViewerSwitchScrollMode); + + eventBus._off("scrollmodechanged", webViewerScrollModeChanged); + + eventBus._off("switchspreadmode", webViewerSwitchSpreadMode); + + eventBus._off("spreadmodechanged", webViewerSpreadModeChanged); + + eventBus._off("documentproperties", webViewerDocumentProperties); + + eventBus._off("findfromurlhash", webViewerFindFromUrlHash); + + eventBus._off("updatefindmatchescount", webViewerUpdateFindMatchesCount); + + eventBus._off("updatefindcontrolstate", webViewerUpdateFindControlState); + + if (_boundEvents.reportPageStatsPDFBug) { + eventBus._off("pagerendered", _boundEvents.reportPageStatsPDFBug); + + eventBus._off("pagechanging", _boundEvents.reportPageStatsPDFBug); + + _boundEvents.reportPageStatsPDFBug = null; + } + + eventBus._off("fileinputchange", webViewerFileInputChange); + + eventBus._off("openfile", webViewerOpenFile); + + _boundEvents.beforePrint = null; + _boundEvents.afterPrint = null; + }, + + unbindWindowEvents() { + const { + _boundEvents + } = this; + window.removeEventListener("visibilitychange", webViewerVisibilityChange); + window.removeEventListener("wheel", webViewerWheel, { + passive: false + }); + window.removeEventListener("touchstart", webViewerTouchStart, { + passive: false + }); + window.removeEventListener("click", webViewerClick); + window.removeEventListener("keydown", webViewerKeyDown); + window.removeEventListener("resize", _boundEvents.windowResize); + window.removeEventListener("hashchange", _boundEvents.windowHashChange); + window.removeEventListener("beforeprint", _boundEvents.windowBeforePrint); + window.removeEventListener("afterprint", _boundEvents.windowAfterPrint); + window.removeEventListener("updatefromsandbox", _boundEvents.windowUpdateFromSandbox); + _boundEvents.removeWindowResolutionChange?.(); + _boundEvents.windowResize = null; + _boundEvents.windowHashChange = null; + _boundEvents.windowBeforePrint = null; + _boundEvents.windowAfterPrint = null; + _boundEvents.windowUpdateFromSandbox = null; + }, + + accumulateWheelTicks(ticks) { + if (this._wheelUnusedTicks > 0 && ticks < 0 || this._wheelUnusedTicks < 0 && ticks > 0) { + this._wheelUnusedTicks = 0; + } + + this._wheelUnusedTicks += ticks; + const wholeTicks = Math.sign(this._wheelUnusedTicks) * Math.floor(Math.abs(this._wheelUnusedTicks)); + this._wheelUnusedTicks -= wholeTicks; + return wholeTicks; + }, + + _unblockDocumentLoadEvent() { + document.blockUnblockOnload?.(false); + + this._unblockDocumentLoadEvent = () => {}; + }, + + _reportDocumentStatsTelemetry() { + const { + stats + } = this.pdfDocument; + + if (stats !== this._docStats) { + this._docStats = stats; + this.externalServices.reportTelemetry({ + type: "documentStats", + stats + }); + } + }, + + get scriptingReady() { + return this.pdfScriptingManager.ready; + } + +}; +exports.PDFViewerApplication = PDFViewerApplication; +let validateFileURL; +{ + const HOSTED_VIEWER_ORIGINS = ["null", "http://mozilla.github.io", "https://mozilla.github.io"]; + + validateFileURL = function (file) { + if (!file) { + return; + } + + try { + const viewerOrigin = new URL(window.location.href).origin || "null"; + + if (HOSTED_VIEWER_ORIGINS.includes(viewerOrigin)) { + return; + } + + const fileOrigin = new URL(file, window.location.href).origin; + + if (fileOrigin !== viewerOrigin) { + throw new Error("file origin does not match viewer's"); + } + } catch (ex) { + PDFViewerApplication.l10n.get("loading_error").then(msg => { + PDFViewerApplication._documentError(msg, { + message: ex?.message + }); + }); + throw ex; + } + }; +} + +async function loadFakeWorker() { + _pdfjsLib.GlobalWorkerOptions.workerSrc ||= _app_options.AppOptions.get("workerSrc"); + await (0, _pdfjsLib.loadScript)(_pdfjsLib.PDFWorker.workerSrc); +} + +async function loadPDFBug(self) { + const { + debuggerScriptPath + } = self.appConfig; + const { + PDFBug + } = await import(debuggerScriptPath); + self._PDFBug = PDFBug; +} + +function reportPageStatsPDFBug({ + pageNumber +}) { + if (!globalThis.Stats?.enabled) { + return; + } + + const pageView = PDFViewerApplication.pdfViewer.getPageView(pageNumber - 1); + globalThis.Stats.add(pageNumber, pageView?.pdfPage?.stats); +} + +function webViewerInitialized() { + const { + appConfig, + eventBus + } = PDFViewerApplication; + let file; + const queryString = document.location.search.substring(1); + const params = (0, _ui_utils.parseQueryString)(queryString); + file = params.get("file") ?? (params.get("saladict-pdf") === "1" ? "" : _app_options.AppOptions.get("defaultUrl")); /* saladict */ + /* saladict */ + const fileInput = appConfig.openFileInput; + fileInput.value = null; + fileInput.addEventListener("change", function (evt) { + const { + files + } = evt.target; + + if (!files || files.length === 0) { + return; + } + + eventBus.dispatch("fileinputchange", { + source: this, + fileInput: evt.target + }); + }); + appConfig.mainContainer.addEventListener("dragover", function (evt) { + evt.preventDefault(); + evt.dataTransfer.dropEffect = evt.dataTransfer.effectAllowed === "copy" ? "copy" : "move"; + }); + appConfig.mainContainer.addEventListener("drop", function (evt) { + evt.preventDefault(); + const { + files + } = evt.dataTransfer; + + if (!files || files.length === 0) { + return; + } + + eventBus.dispatch("fileinputchange", { + source: this, + fileInput: evt.dataTransfer + }); + }); + + if (!PDFViewerApplication.supportsDocumentFonts) { + _app_options.AppOptions.set("disableFontFace", true); + + PDFViewerApplication.l10n.get("web_fonts_disabled").then(msg => { + console.warn(msg); + }); + } + + if (!PDFViewerApplication.supportsPrinting) { + appConfig.toolbar.print.classList.add("hidden"); + appConfig.secondaryToolbar.printButton.classList.add("hidden"); + } + + if (!PDFViewerApplication.supportsFullscreen) { + appConfig.toolbar.presentationModeButton.classList.add("hidden"); + appConfig.secondaryToolbar.presentationModeButton.classList.add("hidden"); + } + + if (PDFViewerApplication.supportsIntegratedFind) { + appConfig.toolbar.viewFind.classList.add("hidden"); + } + + appConfig.mainContainer.addEventListener("transitionend", function (evt) { + if (evt.target === this) { + eventBus.dispatch("resize", { + source: this + }); + } + }, true); + + try { + if (file) { + PDFViewerApplication.open(file); + } else { + PDFViewerApplication._hideViewBookmark(); + } + } catch (reason) { + PDFViewerApplication.l10n.get("loading_error").then(msg => { + PDFViewerApplication._documentError(msg, reason); + }); + } +} + +function webViewerPageRendered({ + pageNumber, + error +}) { + if (pageNumber === PDFViewerApplication.page) { + PDFViewerApplication.toolbar.updateLoadingIndicatorState(false); + } + + if (PDFViewerApplication.pdfSidebar.visibleView === _ui_utils.SidebarView.THUMBS) { + const pageView = PDFViewerApplication.pdfViewer.getPageView(pageNumber - 1); + const thumbnailView = PDFViewerApplication.pdfThumbnailViewer.getThumbnail(pageNumber - 1); + + if (pageView && thumbnailView) { + thumbnailView.setImage(pageView); + } + } + + if (error) { + PDFViewerApplication.l10n.get("rendering_error").then(msg => { + PDFViewerApplication._otherError(msg, error); + }); + } + + PDFViewerApplication._reportDocumentStatsTelemetry(); +} + +function webViewerPageMode({ + mode +}) { + let view; + + switch (mode) { + case "thumbs": + view = _ui_utils.SidebarView.THUMBS; + break; + + case "bookmarks": + case "outline": + view = _ui_utils.SidebarView.OUTLINE; + break; + + case "attachments": + view = _ui_utils.SidebarView.ATTACHMENTS; + break; + + case "layers": + view = _ui_utils.SidebarView.LAYERS; + break; + + case "none": + view = _ui_utils.SidebarView.NONE; + break; + + default: + console.error('Invalid "pagemode" hash parameter: ' + mode); + return; + } + + PDFViewerApplication.pdfSidebar.switchView(view, true); +} + +function webViewerNamedAction(evt) { + switch (evt.action) { + case "GoToPage": + PDFViewerApplication.appConfig.toolbar.pageNumber.select(); + break; + + case "Find": + if (!PDFViewerApplication.supportsIntegratedFind) { + PDFViewerApplication.findBar.toggle(); + } + + break; + + case "Print": + PDFViewerApplication.triggerPrinting(); + break; + + case "SaveAs": + PDFViewerApplication.downloadOrSave(); + break; + } +} + +function webViewerPresentationModeChanged(evt) { + PDFViewerApplication.pdfViewer.presentationModeState = evt.state; +} + +function webViewerSidebarViewChanged({ + view +}) { + PDFViewerApplication.pdfRenderingQueue.isThumbnailViewEnabled = view === _ui_utils.SidebarView.THUMBS; + + if (PDFViewerApplication.isInitialViewSet) { + PDFViewerApplication.store?.set("sidebarView", view).catch(() => {}); + } +} + +function webViewerUpdateViewarea({ + location +}) { + if (PDFViewerApplication.isInitialViewSet) { + PDFViewerApplication.store?.setMultiple({ + page: location.pageNumber, + zoom: location.scale, + scrollLeft: location.left, + scrollTop: location.top, + rotation: location.rotation + }).catch(() => {}); + } + + const href = PDFViewerApplication.pdfLinkService.getAnchorUrl(location.pdfOpenParams); + PDFViewerApplication.appConfig.toolbar.viewBookmark.href = href; + PDFViewerApplication.appConfig.secondaryToolbar.viewBookmarkButton.href = href; + const currentPage = PDFViewerApplication.pdfViewer.getPageView(PDFViewerApplication.page - 1); + const loading = currentPage?.renderingState !== _ui_utils.RenderingStates.FINISHED; + PDFViewerApplication.toolbar.updateLoadingIndicatorState(loading); +} + +function webViewerScrollModeChanged(evt) { + if (PDFViewerApplication.isInitialViewSet) { + PDFViewerApplication.store?.set("scrollMode", evt.mode).catch(() => {}); + } +} + +function webViewerSpreadModeChanged(evt) { + if (PDFViewerApplication.isInitialViewSet) { + PDFViewerApplication.store?.set("spreadMode", evt.mode).catch(() => {}); + } +} + +function webViewerResize() { + const { + pdfDocument, + pdfViewer, + pdfRenderingQueue + } = PDFViewerApplication; + + if (pdfRenderingQueue.printing && window.matchMedia("print").matches) { + return; + } + + pdfViewer.updateContainerHeightCss(); + + if (!pdfDocument) { + return; + } + + const currentScaleValue = pdfViewer.currentScaleValue; + + if (currentScaleValue === "auto" || currentScaleValue === "page-fit" || currentScaleValue === "page-width") { + pdfViewer.currentScaleValue = currentScaleValue; + } + + pdfViewer.update(); +} + +function webViewerHashchange(evt) { + const hash = evt.hash; + + if (!hash) { + return; + } + + if (!PDFViewerApplication.isInitialViewSet) { + PDFViewerApplication.initialBookmark = hash; + } else if (!PDFViewerApplication.pdfHistory?.popStateInProgress) { + PDFViewerApplication.pdfLinkService.setHash(hash); + } +} + +{ + var webViewerFileInputChange = function (evt) { + if (PDFViewerApplication.pdfViewer?.isInPresentationMode) { + return; + } + + const file = evt.fileInput.files[0]; + let url = URL.createObjectURL(file); + + if (file.name) { + url = { + url, + originalUrl: file.name + }; + } + + PDFViewerApplication.open(url); + }; + + var webViewerOpenFile = function (evt) { + const fileInput = PDFViewerApplication.appConfig.openFileInput; + fileInput.click(); + }; +} + +function webViewerPresentationMode() { + PDFViewerApplication.requestPresentationMode(); +} + +function webViewerSwitchAnnotationEditorMode(evt) { + PDFViewerApplication.pdfViewer.annotationEditorMode = evt.mode; +} + +function webViewerSwitchAnnotationEditorParams(evt) { + PDFViewerApplication.pdfViewer.annotationEditorParams = evt; +} + +function webViewerPrint() { + PDFViewerApplication.triggerPrinting(); +} + +function webViewerDownload() { + PDFViewerApplication.downloadOrSave(); +} + +function webViewerFirstPage() { + if (PDFViewerApplication.pdfDocument) { + PDFViewerApplication.page = 1; + } +} + +function webViewerLastPage() { + if (PDFViewerApplication.pdfDocument) { + PDFViewerApplication.page = PDFViewerApplication.pagesCount; + } +} + +function webViewerNextPage() { + PDFViewerApplication.pdfViewer.nextPage(); +} + +function webViewerPreviousPage() { + PDFViewerApplication.pdfViewer.previousPage(); +} + +function webViewerZoomIn() { + PDFViewerApplication.zoomIn(); +} + +function webViewerZoomOut() { + PDFViewerApplication.zoomOut(); +} + +function webViewerZoomReset() { + PDFViewerApplication.zoomReset(); +} + +function webViewerPageNumberChanged(evt) { + const pdfViewer = PDFViewerApplication.pdfViewer; + + if (evt.value !== "") { + PDFViewerApplication.pdfLinkService.goToPage(evt.value); + } + + if (evt.value !== pdfViewer.currentPageNumber.toString() && evt.value !== pdfViewer.currentPageLabel) { + PDFViewerApplication.toolbar.setPageNumber(pdfViewer.currentPageNumber, pdfViewer.currentPageLabel); + } +} + +function webViewerScaleChanged(evt) { + PDFViewerApplication.pdfViewer.currentScaleValue = evt.value; +} + +function webViewerRotateCw() { + PDFViewerApplication.rotatePages(90); +} + +function webViewerRotateCcw() { + PDFViewerApplication.rotatePages(-90); +} + +function webViewerOptionalContentConfig(evt) { + PDFViewerApplication.pdfViewer.optionalContentConfigPromise = evt.promise; +} + +function webViewerSwitchScrollMode(evt) { + PDFViewerApplication.pdfViewer.scrollMode = evt.mode; +} + +function webViewerSwitchSpreadMode(evt) { + PDFViewerApplication.pdfViewer.spreadMode = evt.mode; +} + +function webViewerDocumentProperties() { + PDFViewerApplication.pdfDocumentProperties.open(); +} + +function webViewerFindFromUrlHash(evt) { + PDFViewerApplication.eventBus.dispatch("find", { + source: evt.source, + type: "", + query: evt.query, + phraseSearch: evt.phraseSearch, + caseSensitive: false, + entireWord: false, + highlightAll: true, + findPrevious: false, + matchDiacritics: true + }); +} + +function webViewerUpdateFindMatchesCount({ + matchesCount +}) { + if (PDFViewerApplication.supportsIntegratedFind) { + PDFViewerApplication.externalServices.updateFindMatchesCount(matchesCount); + } else { + PDFViewerApplication.findBar.updateResultsCount(matchesCount); + } +} + +function webViewerUpdateFindControlState({ + state, + previous, + matchesCount, + rawQuery +}) { + if (PDFViewerApplication.supportsIntegratedFind) { + PDFViewerApplication.externalServices.updateFindControlState({ + result: state, + findPrevious: previous, + matchesCount, + rawQuery + }); + } else { + PDFViewerApplication.findBar.updateUIState(state, previous, matchesCount); + } +} + +function webViewerScaleChanging(evt) { + PDFViewerApplication.toolbar.setPageScale(evt.presetValue, evt.scale); + PDFViewerApplication.pdfViewer.update(); +} + +function webViewerRotationChanging(evt) { + PDFViewerApplication.pdfThumbnailViewer.pagesRotation = evt.pagesRotation; + PDFViewerApplication.forceRendering(); + PDFViewerApplication.pdfViewer.currentPageNumber = evt.pageNumber; +} + +function webViewerPageChanging({ + pageNumber, + pageLabel +}) { + PDFViewerApplication.toolbar.setPageNumber(pageNumber, pageLabel); + PDFViewerApplication.secondaryToolbar.setPageNumber(pageNumber); + + if (PDFViewerApplication.pdfSidebar.visibleView === _ui_utils.SidebarView.THUMBS) { + PDFViewerApplication.pdfThumbnailViewer.scrollThumbnailIntoView(pageNumber); + } +} + +function webViewerResolutionChange(evt) { + PDFViewerApplication.pdfViewer.refresh(); +} + +function webViewerVisibilityChange(evt) { + if (document.visibilityState === "visible") { + setZoomDisabledTimeout(); + } +} + +let zoomDisabledTimeout = null; + +function setZoomDisabledTimeout() { + if (zoomDisabledTimeout) { + clearTimeout(zoomDisabledTimeout); + } + + zoomDisabledTimeout = setTimeout(function () { + zoomDisabledTimeout = null; + }, WHEEL_ZOOM_DISABLED_TIMEOUT); +} + +function webViewerWheel(evt) { + const { + pdfViewer, + supportedMouseWheelZoomModifierKeys + } = PDFViewerApplication; + + if (pdfViewer.isInPresentationMode) { + return; + } + + if (evt.ctrlKey && supportedMouseWheelZoomModifierKeys.ctrlKey || evt.metaKey && supportedMouseWheelZoomModifierKeys.metaKey) { + evt.preventDefault(); + + if (zoomDisabledTimeout || document.visibilityState === "hidden") { + return; + } + + const deltaMode = evt.deltaMode; + const delta = (0, _ui_utils.normalizeWheelEventDirection)(evt); + const previousScale = pdfViewer.currentScale; + let ticks = 0; + + if (deltaMode === WheelEvent.DOM_DELTA_LINE || deltaMode === WheelEvent.DOM_DELTA_PAGE) { + if (Math.abs(delta) >= 1) { + ticks = Math.sign(delta); + } else { + ticks = PDFViewerApplication.accumulateWheelTicks(delta); + } + } else { + const PIXELS_PER_LINE_SCALE = 30; + ticks = PDFViewerApplication.accumulateWheelTicks(delta / PIXELS_PER_LINE_SCALE); + } + + if (ticks < 0) { + PDFViewerApplication.zoomOut(-ticks); + } else if (ticks > 0) { + PDFViewerApplication.zoomIn(ticks); + } + + const currentScale = pdfViewer.currentScale; + + if (previousScale !== currentScale) { + const scaleCorrectionFactor = currentScale / previousScale - 1; + const rect = pdfViewer.container.getBoundingClientRect(); + const dx = evt.clientX - rect.left; + const dy = evt.clientY - rect.top; + pdfViewer.container.scrollLeft += dx * scaleCorrectionFactor; + pdfViewer.container.scrollTop += dy * scaleCorrectionFactor; + } + } else { + setZoomDisabledTimeout(); + } +} + +function webViewerTouchStart(evt) { + if (evt.touches.length > 1) { + evt.preventDefault(); + } +} + +function webViewerClick(evt) { + if (!PDFViewerApplication.secondaryToolbar.isOpen) { + return; + } + + const appConfig = PDFViewerApplication.appConfig; + + if (PDFViewerApplication.pdfViewer.containsElement(evt.target) || appConfig.toolbar.container.contains(evt.target) && evt.target !== appConfig.secondaryToolbar.toggleButton) { + PDFViewerApplication.secondaryToolbar.close(); + } +} + +function webViewerKeyDown(evt) { + if (PDFViewerApplication.overlayManager.active) { + return; + } + + const { + eventBus, + pdfViewer + } = PDFViewerApplication; + const isViewerInPresentationMode = pdfViewer.isInPresentationMode; + let handled = false, + ensureViewerFocused = false; + const cmd = (evt.ctrlKey ? 1 : 0) | (evt.altKey ? 2 : 0) | (evt.shiftKey ? 4 : 0) | (evt.metaKey ? 8 : 0); + + if (cmd === 1 || cmd === 8 || cmd === 5 || cmd === 12) { + switch (evt.keyCode) { + case 70: + if (!PDFViewerApplication.supportsIntegratedFind && !evt.shiftKey) { + PDFViewerApplication.findBar.open(); + handled = true; + } + + break; + + case 71: + if (!PDFViewerApplication.supportsIntegratedFind) { + const { + state + } = PDFViewerApplication.findController; + + if (state) { + const eventState = Object.assign(Object.create(null), state, { + source: window, + type: "again", + findPrevious: cmd === 5 || cmd === 12 + }); + eventBus.dispatch("find", eventState); + } + + handled = true; + } + + break; + + case 61: + case 107: + case 187: + case 171: + if (!isViewerInPresentationMode) { + PDFViewerApplication.zoomIn(); + } + + handled = true; + break; + + case 173: + case 109: + case 189: + if (!isViewerInPresentationMode) { + PDFViewerApplication.zoomOut(); + } + + handled = true; + break; + + case 48: + case 96: + if (!isViewerInPresentationMode) { + setTimeout(function () { + PDFViewerApplication.zoomReset(); + }); + handled = false; + } + + break; + + case 38: + if (isViewerInPresentationMode || PDFViewerApplication.page > 1) { + PDFViewerApplication.page = 1; + handled = true; + ensureViewerFocused = true; + } + + break; + + case 40: + if (isViewerInPresentationMode || PDFViewerApplication.page < PDFViewerApplication.pagesCount) { + PDFViewerApplication.page = PDFViewerApplication.pagesCount; + handled = true; + ensureViewerFocused = true; + } + + break; + } + } + + if (cmd === 1 || cmd === 8) { + switch (evt.keyCode) { + case 83: + eventBus.dispatch("download", { + source: window + }); + handled = true; + break; + + case 79: + { + eventBus.dispatch("openfile", { + source: window + }); + handled = true; + } + break; + } + } + + if (cmd === 3 || cmd === 10) { + switch (evt.keyCode) { + case 80: + PDFViewerApplication.requestPresentationMode(); + handled = true; + break; + + case 71: + PDFViewerApplication.appConfig.toolbar.pageNumber.select(); + handled = true; + break; + } + } + + if (handled) { + if (ensureViewerFocused && !isViewerInPresentationMode) { + pdfViewer.focus(); + } + + evt.preventDefault(); + return; + } + + const curElement = (0, _ui_utils.getActiveOrFocusedElement)(); + const curElementTagName = curElement?.tagName.toUpperCase(); + + if (curElementTagName === "INPUT" || curElementTagName === "TEXTAREA" || curElementTagName === "SELECT" || curElement?.isContentEditable) { + if (evt.keyCode !== 27) { + return; + } + } + + if (cmd === 0) { + let turnPage = 0, + turnOnlyIfPageFit = false; + + switch (evt.keyCode) { + case 38: + case 33: + if (pdfViewer.isVerticalScrollbarEnabled) { + turnOnlyIfPageFit = true; + } + + turnPage = -1; + break; + + case 8: + if (!isViewerInPresentationMode) { + turnOnlyIfPageFit = true; + } + + turnPage = -1; + break; + + case 37: + if (pdfViewer.isHorizontalScrollbarEnabled) { + turnOnlyIfPageFit = true; + } + + case 75: + case 80: + turnPage = -1; + break; + + case 27: + if (PDFViewerApplication.secondaryToolbar.isOpen) { + PDFViewerApplication.secondaryToolbar.close(); + handled = true; + } + + if (!PDFViewerApplication.supportsIntegratedFind && PDFViewerApplication.findBar.opened) { + PDFViewerApplication.findBar.close(); + handled = true; + } + + break; + + case 40: + case 34: + if (pdfViewer.isVerticalScrollbarEnabled) { + turnOnlyIfPageFit = true; + } + + turnPage = 1; + break; + + case 13: + case 32: + if (!isViewerInPresentationMode) { + turnOnlyIfPageFit = true; + } + + turnPage = 1; + break; + + case 39: + if (pdfViewer.isHorizontalScrollbarEnabled) { + turnOnlyIfPageFit = true; + } + + case 74: + case 78: + turnPage = 1; + break; + + case 36: + if (isViewerInPresentationMode || PDFViewerApplication.page > 1) { + PDFViewerApplication.page = 1; + handled = true; + ensureViewerFocused = true; + } + + break; + + case 35: + if (isViewerInPresentationMode || PDFViewerApplication.page < PDFViewerApplication.pagesCount) { + PDFViewerApplication.page = PDFViewerApplication.pagesCount; + handled = true; + ensureViewerFocused = true; + } + + break; + + case 83: + PDFViewerApplication.pdfCursorTools.switchTool(_pdf_cursor_tools.CursorTool.SELECT); + break; + + case 72: + PDFViewerApplication.pdfCursorTools.switchTool(_pdf_cursor_tools.CursorTool.HAND); + break; + + case 82: + PDFViewerApplication.rotatePages(90); + break; + + case 115: + PDFViewerApplication.pdfSidebar.toggle(); + break; + } + + if (turnPage !== 0 && (!turnOnlyIfPageFit || pdfViewer.currentScaleValue === "page-fit")) { + if (turnPage > 0) { + pdfViewer.nextPage(); + } else { + pdfViewer.previousPage(); + } + + handled = true; + } + } + + if (cmd === 4) { + switch (evt.keyCode) { + case 13: + case 32: + if (!isViewerInPresentationMode && pdfViewer.currentScaleValue !== "page-fit") { + break; + } + + pdfViewer.previousPage(); + handled = true; + break; + + case 82: + PDFViewerApplication.rotatePages(-90); + break; + } + } + + if (!handled && !isViewerInPresentationMode) { + if (evt.keyCode >= 33 && evt.keyCode <= 40 || evt.keyCode === 32 && curElementTagName !== "BUTTON") { + ensureViewerFocused = true; + } + } + + if (ensureViewerFocused && !pdfViewer.containsElement(curElement)) { + pdfViewer.focus(); + } + + if (handled) { + evt.preventDefault(); + } +} + +function beforeUnload(evt) { + evt.preventDefault(); + evt.returnValue = ""; + return false; +} + +function webViewerAnnotationEditorStatesChanged(data) { + PDFViewerApplication.externalServices.updateEditorStates(data); +} + +const PDFPrintServiceFactory = { + instance: { + supportsPrinting: false, + + createPrintService() { + throw new Error("Not implemented: createPrintService"); + } + + } +}; +exports.PDFPrintServiceFactory = PDFPrintServiceFactory; + +/***/ }), +/* 5 */ +/***/ ((module) => { + + + +let pdfjsLib; + +if (typeof window !== "undefined" && window["pdfjs-dist/build/pdf"]) { + pdfjsLib = window["pdfjs-dist/build/pdf"]; +} else { + pdfjsLib = require("../build/pdf.js"); +} + +module.exports = pdfjsLib; + +/***/ }), +/* 6 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.WaitOnType = exports.EventBus = exports.AutomationEventBus = void 0; +exports.waitOnEventOrTimeout = waitOnEventOrTimeout; +const WaitOnType = { + EVENT: "event", + TIMEOUT: "timeout" +}; +exports.WaitOnType = WaitOnType; + +function waitOnEventOrTimeout({ + target, + name, + delay = 0 +}) { + return new Promise(function (resolve, reject) { + if (typeof target !== "object" || !(name && typeof name === "string") || !(Number.isInteger(delay) && delay >= 0)) { + throw new Error("waitOnEventOrTimeout - invalid parameters."); + } + + function handler(type) { + if (target instanceof EventBus) { + target._off(name, eventHandler); + } else { + target.removeEventListener(name, eventHandler); + } + + if (timeout) { + clearTimeout(timeout); + } + + resolve(type); + } + + const eventHandler = handler.bind(null, WaitOnType.EVENT); + + if (target instanceof EventBus) { + target._on(name, eventHandler); + } else { + target.addEventListener(name, eventHandler); + } + + const timeoutHandler = handler.bind(null, WaitOnType.TIMEOUT); + const timeout = setTimeout(timeoutHandler, delay); + }); +} + +class EventBus { + constructor() { + this._listeners = Object.create(null); + } + + on(eventName, listener, options = null) { + this._on(eventName, listener, { + external: true, + once: options?.once + }); + } + + off(eventName, listener, options = null) { + this._off(eventName, listener, { + external: true, + once: options?.once + }); + } + + dispatch(eventName, data) { + const eventListeners = this._listeners[eventName]; + + if (!eventListeners || eventListeners.length === 0) { + return; + } + + let externalListeners; + + for (const { + listener, + external, + once + } of eventListeners.slice(0)) { + if (once) { + this._off(eventName, listener); + } + + if (external) { + (externalListeners ||= []).push(listener); + continue; + } + + listener(data); + } + + if (externalListeners) { + for (const listener of externalListeners) { + listener(data); + } + + externalListeners = null; + } + } + + _on(eventName, listener, options = null) { + const eventListeners = this._listeners[eventName] ||= []; + eventListeners.push({ + listener, + external: options?.external === true, + once: options?.once === true + }); + } + + _off(eventName, listener, options = null) { + const eventListeners = this._listeners[eventName]; + + if (!eventListeners) { + return; + } + + for (let i = 0, ii = eventListeners.length; i < ii; i++) { + if (eventListeners[i].listener === listener) { + eventListeners.splice(i, 1); + return; + } + } + } + +} + +exports.EventBus = EventBus; + +class AutomationEventBus extends EventBus { + dispatch(eventName, data) { + throw new Error("Not implemented: AutomationEventBus.dispatch"); + } + +} + +exports.AutomationEventBus = AutomationEventBus; + +/***/ }), +/* 7 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFCursorTools = exports.CursorTool = void 0; + +var _grab_to_pan = __webpack_require__(8); + +var _ui_utils = __webpack_require__(1); + +const CursorTool = { + SELECT: 0, + HAND: 1, + ZOOM: 2 +}; +exports.CursorTool = CursorTool; + +class PDFCursorTools { + constructor({ + container, + eventBus, + cursorToolOnLoad = CursorTool.SELECT + }) { + this.container = container; + this.eventBus = eventBus; + this.active = CursorTool.SELECT; + this.activeBeforePresentationMode = null; + this.handTool = new _grab_to_pan.GrabToPan({ + element: this.container + }); + this.#addEventListeners(); + Promise.resolve().then(() => { + this.switchTool(cursorToolOnLoad); + }); + } + + get activeTool() { + return this.active; + } + + switchTool(tool) { + if (this.activeBeforePresentationMode !== null) { + return; + } + + if (tool === this.active) { + return; + } + + const disableActiveTool = () => { + switch (this.active) { + case CursorTool.SELECT: + break; + + case CursorTool.HAND: + this.handTool.deactivate(); + break; + + case CursorTool.ZOOM: + } + }; + + switch (tool) { + case CursorTool.SELECT: + disableActiveTool(); + break; + + case CursorTool.HAND: + disableActiveTool(); + this.handTool.activate(); + break; + + case CursorTool.ZOOM: + default: + console.error(`switchTool: "${tool}" is an unsupported value.`); + return; + } + + this.active = tool; + this.#dispatchEvent(); + } + + #dispatchEvent() { + this.eventBus.dispatch("cursortoolchanged", { + source: this, + tool: this.active + }); + } + + #addEventListeners() { + this.eventBus._on("switchcursortool", evt => { + this.switchTool(evt.tool); + }); + + this.eventBus._on("presentationmodechanged", evt => { + switch (evt.state) { + case _ui_utils.PresentationModeState.FULLSCREEN: + { + const previouslyActive = this.active; + this.switchTool(CursorTool.SELECT); + this.activeBeforePresentationMode = previouslyActive; + break; + } + + case _ui_utils.PresentationModeState.NORMAL: + { + const previouslyActive = this.activeBeforePresentationMode; + this.activeBeforePresentationMode = null; + this.switchTool(previouslyActive); + break; + } + } + }); + } + +} + +exports.PDFCursorTools = PDFCursorTools; + +/***/ }), +/* 8 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.GrabToPan = void 0; +const CSS_CLASS_GRAB = "grab-to-pan-grab"; + +class GrabToPan { + constructor(options) { + this.element = options.element; + this.document = options.element.ownerDocument; + + if (typeof options.ignoreTarget === "function") { + this.ignoreTarget = options.ignoreTarget; + } + + this.onActiveChanged = options.onActiveChanged; + this.activate = this.activate.bind(this); + this.deactivate = this.deactivate.bind(this); + this.toggle = this.toggle.bind(this); + this._onMouseDown = this.#onMouseDown.bind(this); + this._onMouseMove = this.#onMouseMove.bind(this); + this._endPan = this.#endPan.bind(this); + const overlay = this.overlay = document.createElement("div"); + overlay.className = "grab-to-pan-grabbing"; + } + + activate() { + if (!this.active) { + this.active = true; + this.element.addEventListener("mousedown", this._onMouseDown, true); + this.element.classList.add(CSS_CLASS_GRAB); + this.onActiveChanged?.(true); + } + } + + deactivate() { + if (this.active) { + this.active = false; + this.element.removeEventListener("mousedown", this._onMouseDown, true); + + this._endPan(); + + this.element.classList.remove(CSS_CLASS_GRAB); + this.onActiveChanged?.(false); + } + } + + toggle() { + if (this.active) { + this.deactivate(); + } else { + this.activate(); + } + } + + ignoreTarget(node) { + return node.matches("a[href], a[href] *, input, textarea, button, button *, select, option"); + } + + #onMouseDown(event) { + if (event.button !== 0 || this.ignoreTarget(event.target)) { + return; + } + + if (event.originalTarget) { + try { + event.originalTarget.tagName; + } catch (e) { + return; + } + } + + this.scrollLeftStart = this.element.scrollLeft; + this.scrollTopStart = this.element.scrollTop; + this.clientXStart = event.clientX; + this.clientYStart = event.clientY; + this.document.addEventListener("mousemove", this._onMouseMove, true); + this.document.addEventListener("mouseup", this._endPan, true); + this.element.addEventListener("scroll", this._endPan, true); + event.preventDefault(); + event.stopPropagation(); + const focusedElement = document.activeElement; + + if (focusedElement && !focusedElement.contains(event.target)) { + focusedElement.blur(); + } + } + + #onMouseMove(event) { + this.element.removeEventListener("scroll", this._endPan, true); + + if (!(event.buttons & 1)) { + this._endPan(); + + return; + } + + const xDiff = event.clientX - this.clientXStart; + const yDiff = event.clientY - this.clientYStart; + const scrollTop = this.scrollTopStart - yDiff; + const scrollLeft = this.scrollLeftStart - xDiff; + + if (this.element.scrollTo) { + this.element.scrollTo({ + top: scrollTop, + left: scrollLeft, + behavior: "instant" + }); + } else { + this.element.scrollTop = scrollTop; + this.element.scrollLeft = scrollLeft; + } + + if (!this.overlay.parentNode) { + document.body.append(this.overlay); + } + } + + #endPan() { + this.element.removeEventListener("scroll", this._endPan, true); + this.document.removeEventListener("mousemove", this._onMouseMove, true); + this.document.removeEventListener("mouseup", this._endPan, true); + this.overlay.remove(); + } + +} + +exports.GrabToPan = GrabToPan; + +/***/ }), +/* 9 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.AnnotationEditorParams = void 0; + +var _pdfjsLib = __webpack_require__(5); + +class AnnotationEditorParams { + constructor(options, eventBus) { + this.eventBus = eventBus; + this.#bindListeners(options); + } + + #bindListeners({ + editorFreeTextFontSize, + editorFreeTextColor, + editorInkColor, + editorInkThickness, + editorInkOpacity + }) { + editorFreeTextFontSize.addEventListener("input", evt => { + this.eventBus.dispatch("switchannotationeditorparams", { + source: this, + type: _pdfjsLib.AnnotationEditorParamsType.FREETEXT_SIZE, + value: editorFreeTextFontSize.valueAsNumber + }); + }); + editorFreeTextColor.addEventListener("input", evt => { + this.eventBus.dispatch("switchannotationeditorparams", { + source: this, + type: _pdfjsLib.AnnotationEditorParamsType.FREETEXT_COLOR, + value: editorFreeTextColor.value + }); + }); + editorInkColor.addEventListener("input", evt => { + this.eventBus.dispatch("switchannotationeditorparams", { + source: this, + type: _pdfjsLib.AnnotationEditorParamsType.INK_COLOR, + value: editorInkColor.value + }); + }); + editorInkThickness.addEventListener("input", evt => { + this.eventBus.dispatch("switchannotationeditorparams", { + source: this, + type: _pdfjsLib.AnnotationEditorParamsType.INK_THICKNESS, + value: editorInkThickness.valueAsNumber + }); + }); + editorInkOpacity.addEventListener("input", evt => { + this.eventBus.dispatch("switchannotationeditorparams", { + source: this, + type: _pdfjsLib.AnnotationEditorParamsType.INK_OPACITY, + value: editorInkOpacity.valueAsNumber + }); + }); + + this.eventBus._on("annotationeditorparamschanged", evt => { + for (const [type, value] of evt.details) { + switch (type) { + case _pdfjsLib.AnnotationEditorParamsType.FREETEXT_SIZE: + editorFreeTextFontSize.value = value; + break; + + case _pdfjsLib.AnnotationEditorParamsType.FREETEXT_COLOR: + editorFreeTextColor.value = value; + break; + + case _pdfjsLib.AnnotationEditorParamsType.INK_COLOR: + editorInkColor.value = value; + break; + + case _pdfjsLib.AnnotationEditorParamsType.INK_THICKNESS: + editorInkThickness.value = value; + break; + + case _pdfjsLib.AnnotationEditorParamsType.INK_OPACITY: + editorInkOpacity.value = value; + break; + } + } + }); + } + +} + +exports.AnnotationEditorParams = AnnotationEditorParams; + +/***/ }), +/* 10 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.OverlayManager = void 0; + +class OverlayManager { + #overlays = new WeakMap(); + #active = null; + + get active() { + return this.#active; + } + + async register(dialog, canForceClose = false) { + if (typeof dialog !== "object") { + throw new Error("Not enough parameters."); + } else if (this.#overlays.has(dialog)) { + throw new Error("The overlay is already registered."); + } + + this.#overlays.set(dialog, { + canForceClose + }); + dialog.addEventListener("cancel", evt => { + this.#active = null; + }); + } + + async unregister(dialog) { + if (!this.#overlays.has(dialog)) { + throw new Error("The overlay does not exist."); + } else if (this.#active === dialog) { + throw new Error("The overlay cannot be removed while it is active."); + } + + this.#overlays.delete(dialog); + } + + async open(dialog) { + if (!this.#overlays.has(dialog)) { + throw new Error("The overlay does not exist."); + } else if (this.#active) { + if (this.#active === dialog) { + throw new Error("The overlay is already active."); + } else if (this.#overlays.get(dialog).canForceClose) { + await this.close(); + } else { + throw new Error("Another overlay is currently active."); + } + } + + this.#active = dialog; + dialog.showModal(); + } + + async close(dialog = this.#active) { + if (!this.#overlays.has(dialog)) { + throw new Error("The overlay does not exist."); + } else if (!this.#active) { + throw new Error("The overlay is currently not active."); + } else if (this.#active !== dialog) { + throw new Error("Another overlay is currently active."); + } + + dialog.close(); + this.#active = null; + } + +} + +exports.OverlayManager = OverlayManager; + +/***/ }), +/* 11 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PasswordPrompt = void 0; + +var _pdfjsLib = __webpack_require__(5); + +class PasswordPrompt { + #activeCapability = null; + #updateCallback = null; + #reason = null; + + constructor(options, overlayManager, l10n, isViewerEmbedded = false) { + this.dialog = options.dialog; + this.label = options.label; + this.input = options.input; + this.submitButton = options.submitButton; + this.cancelButton = options.cancelButton; + this.overlayManager = overlayManager; + this.l10n = l10n; + this._isViewerEmbedded = isViewerEmbedded; + this.submitButton.addEventListener("click", this.#verify.bind(this)); + this.cancelButton.addEventListener("click", this.close.bind(this)); + this.input.addEventListener("keydown", e => { + if (e.keyCode === 13) { + this.#verify(); + } + }); + this.overlayManager.register(this.dialog, true); + this.dialog.addEventListener("close", this.#cancel.bind(this)); + } + + async open() { + if (this.#activeCapability) { + await this.#activeCapability.promise; + } + + this.#activeCapability = (0, _pdfjsLib.createPromiseCapability)(); + + try { + await this.overlayManager.open(this.dialog); + } catch (ex) { + this.#activeCapability = null; + throw ex; + } + + const passwordIncorrect = this.#reason === _pdfjsLib.PasswordResponses.INCORRECT_PASSWORD; + + if (!this._isViewerEmbedded || passwordIncorrect) { + this.input.focus(); + } + + this.label.textContent = await this.l10n.get(`password_${passwordIncorrect ? "invalid" : "label"}`); + } + + async close() { + if (this.overlayManager.active === this.dialog) { + this.overlayManager.close(this.dialog); + } + } + + #verify() { + const password = this.input.value; + + if (password?.length > 0) { + this.#invokeCallback(password); + } + } + + #cancel() { + this.#invokeCallback(new Error("PasswordPrompt cancelled.")); + this.#activeCapability.resolve(); + } + + #invokeCallback(password) { + if (!this.#updateCallback) { + return; + } + + this.close(); + this.input.value = ""; + this.#updateCallback(password); + this.#updateCallback = null; + } + + async setUpdateCallback(updateCallback, reason) { + if (this.#activeCapability) { + await this.#activeCapability.promise; + } + + this.#updateCallback = updateCallback; + this.#reason = reason; + } + +} + +exports.PasswordPrompt = PasswordPrompt; + +/***/ }), +/* 12 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFAttachmentViewer = void 0; + +var _pdfjsLib = __webpack_require__(5); + +var _base_tree_viewer = __webpack_require__(13); + +var _event_utils = __webpack_require__(6); + +class PDFAttachmentViewer extends _base_tree_viewer.BaseTreeViewer { + constructor(options) { + super(options); + this.downloadManager = options.downloadManager; + + this.eventBus._on("fileattachmentannotation", this.#appendAttachment.bind(this)); + } + + reset(keepRenderedCapability = false) { + super.reset(); + this._attachments = null; + + if (!keepRenderedCapability) { + this._renderedCapability = (0, _pdfjsLib.createPromiseCapability)(); + } + + this._pendingDispatchEvent = false; + } + + async _dispatchEvent(attachmentsCount) { + this._renderedCapability.resolve(); + + if (attachmentsCount === 0 && !this._pendingDispatchEvent) { + this._pendingDispatchEvent = true; + await (0, _event_utils.waitOnEventOrTimeout)({ + target: this.eventBus, + name: "annotationlayerrendered", + delay: 1000 + }); + + if (!this._pendingDispatchEvent) { + return; + } + } + + this._pendingDispatchEvent = false; + this.eventBus.dispatch("attachmentsloaded", { + source: this, + attachmentsCount + }); + } + + _bindLink(element, { + content, + filename + }) { + element.onclick = () => { + this.downloadManager.openOrDownloadData(element, content, filename); + return false; + }; + } + + render({ + attachments, + keepRenderedCapability = false + }) { + if (this._attachments) { + this.reset(keepRenderedCapability); + } + + this._attachments = attachments || null; + + if (!attachments) { + this._dispatchEvent(0); + + return; + } + + const names = Object.keys(attachments).sort(function (a, b) { + return a.toLowerCase().localeCompare(b.toLowerCase()); + }); + const fragment = document.createDocumentFragment(); + let attachmentsCount = 0; + + for (const name of names) { + const item = attachments[name]; + const content = item.content, + filename = (0, _pdfjsLib.getFilenameFromUrl)(item.filename); + const div = document.createElement("div"); + div.className = "treeItem"; + const element = document.createElement("a"); + + this._bindLink(element, { + content, + filename + }); + + element.textContent = this._normalizeTextContent(filename); + div.append(element); + fragment.append(div); + attachmentsCount++; + } + + this._finishRendering(fragment, attachmentsCount); + } + + #appendAttachment({ + filename, + content + }) { + const renderedPromise = this._renderedCapability.promise; + renderedPromise.then(() => { + if (renderedPromise !== this._renderedCapability.promise) { + return; + } + + const attachments = this._attachments || Object.create(null); + + for (const name in attachments) { + if (filename === name) { + return; + } + } + + attachments[filename] = { + filename, + content + }; + this.render({ + attachments, + keepRenderedCapability: true + }); + }); + } + +} + +exports.PDFAttachmentViewer = PDFAttachmentViewer; + +/***/ }), +/* 13 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.BaseTreeViewer = void 0; + +var _ui_utils = __webpack_require__(1); + +const TREEITEM_OFFSET_TOP = -100; +const TREEITEM_SELECTED_CLASS = "selected"; + +class BaseTreeViewer { + constructor(options) { + if (this.constructor === BaseTreeViewer) { + throw new Error("Cannot initialize BaseTreeViewer."); + } + + this.container = options.container; + this.eventBus = options.eventBus; + this.reset(); + } + + reset() { + this._pdfDocument = null; + this._lastToggleIsShow = true; + this._currentTreeItem = null; + this.container.textContent = ""; + this.container.classList.remove("treeWithDeepNesting"); + } + + _dispatchEvent(count) { + throw new Error("Not implemented: _dispatchEvent"); + } + + _bindLink(element, params) { + throw new Error("Not implemented: _bindLink"); + } + + _normalizeTextContent(str) { + return (0, _ui_utils.removeNullCharacters)(str, true) || "\u2013"; + } + + _addToggleButton(div, hidden = false) { + const toggler = document.createElement("div"); + toggler.className = "treeItemToggler"; + + if (hidden) { + toggler.classList.add("treeItemsHidden"); + } + + toggler.onclick = evt => { + evt.stopPropagation(); + toggler.classList.toggle("treeItemsHidden"); + + if (evt.shiftKey) { + const shouldShowAll = !toggler.classList.contains("treeItemsHidden"); + + this._toggleTreeItem(div, shouldShowAll); + } + }; + + div.prepend(toggler); + } + + _toggleTreeItem(root, show = false) { + this._lastToggleIsShow = show; + + for (const toggler of root.querySelectorAll(".treeItemToggler")) { + toggler.classList.toggle("treeItemsHidden", !show); + } + } + + _toggleAllTreeItems() { + this._toggleTreeItem(this.container, !this._lastToggleIsShow); + } + + _finishRendering(fragment, count, hasAnyNesting = false) { + if (hasAnyNesting) { + this.container.classList.add("treeWithDeepNesting"); + this._lastToggleIsShow = !fragment.querySelector(".treeItemsHidden"); + } + + this.container.append(fragment); + + this._dispatchEvent(count); + } + + render(params) { + throw new Error("Not implemented: render"); + } + + _updateCurrentTreeItem(treeItem = null) { + if (this._currentTreeItem) { + this._currentTreeItem.classList.remove(TREEITEM_SELECTED_CLASS); + + this._currentTreeItem = null; + } + + if (treeItem) { + treeItem.classList.add(TREEITEM_SELECTED_CLASS); + this._currentTreeItem = treeItem; + } + } + + _scrollToCurrentTreeItem(treeItem) { + if (!treeItem) { + return; + } + + let currentNode = treeItem.parentNode; + + while (currentNode && currentNode !== this.container) { + if (currentNode.classList.contains("treeItem")) { + const toggler = currentNode.firstElementChild; + toggler?.classList.remove("treeItemsHidden"); + } + + currentNode = currentNode.parentNode; + } + + this._updateCurrentTreeItem(treeItem); + + this.container.scrollTo(treeItem.offsetLeft, treeItem.offsetTop + TREEITEM_OFFSET_TOP); + } + +} + +exports.BaseTreeViewer = BaseTreeViewer; + +/***/ }), +/* 14 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFDocumentProperties = void 0; + +var _pdfjsLib = __webpack_require__(5); + +var _ui_utils = __webpack_require__(1); + +const DEFAULT_FIELD_CONTENT = "-"; +const NON_METRIC_LOCALES = ["en-us", "en-lr", "my"]; +const US_PAGE_NAMES = { + "8.5x11": "Letter", + "8.5x14": "Legal" +}; +const METRIC_PAGE_NAMES = { + "297x420": "A3", + "210x297": "A4" +}; + +function getPageName(size, isPortrait, pageNames) { + const width = isPortrait ? size.width : size.height; + const height = isPortrait ? size.height : size.width; + return pageNames[`${width}x${height}`]; +} + +class PDFDocumentProperties { + #fieldData = null; + + constructor({ + dialog, + fields, + closeButton + }, overlayManager, eventBus, l10n, fileNameLookup) { + this.dialog = dialog; + this.fields = fields; + this.overlayManager = overlayManager; + this.l10n = l10n; + this._fileNameLookup = fileNameLookup; + this.#reset(); + closeButton.addEventListener("click", this.close.bind(this)); + this.overlayManager.register(this.dialog); + + eventBus._on("pagechanging", evt => { + this._currentPageNumber = evt.pageNumber; + }); + + eventBus._on("rotationchanging", evt => { + this._pagesRotation = evt.pagesRotation; + }); + + this._isNonMetricLocale = true; + l10n.getLanguage().then(locale => { + this._isNonMetricLocale = NON_METRIC_LOCALES.includes(locale); + }); + } + + async open() { + await Promise.all([this.overlayManager.open(this.dialog), this._dataAvailableCapability.promise]); + const currentPageNumber = this._currentPageNumber; + const pagesRotation = this._pagesRotation; + + if (this.#fieldData && currentPageNumber === this.#fieldData._currentPageNumber && pagesRotation === this.#fieldData._pagesRotation) { + this.#updateUI(); + return; + } + + const { + info, + contentLength + } = await this.pdfDocument.getMetadata(); + const [fileName, fileSize, creationDate, modificationDate, pageSize, isLinearized] = await Promise.all([this._fileNameLookup(), this.#parseFileSize(contentLength), this.#parseDate(info.CreationDate), this.#parseDate(info.ModDate), this.pdfDocument.getPage(currentPageNumber).then(pdfPage => { + return this.#parsePageSize((0, _ui_utils.getPageSizeInches)(pdfPage), pagesRotation); + }), this.#parseLinearization(info.IsLinearized)]); + this.#fieldData = Object.freeze({ + fileName, + fileSize, + title: info.Title, + author: info.Author, + subject: info.Subject, + keywords: info.Keywords, + creationDate, + modificationDate, + creator: info.Creator, + producer: info.Producer, + version: info.PDFFormatVersion, + pageCount: this.pdfDocument.numPages, + pageSize, + linearized: isLinearized, + _currentPageNumber: currentPageNumber, + _pagesRotation: pagesRotation + }); + this.#updateUI(); + const { + length + } = await this.pdfDocument.getDownloadInfo(); + + if (contentLength === length) { + return; + } + + const data = Object.assign(Object.create(null), this.#fieldData); + data.fileSize = await this.#parseFileSize(length); + this.#fieldData = Object.freeze(data); + this.#updateUI(); + } + + async close() { + this.overlayManager.close(this.dialog); + } + + setDocument(pdfDocument) { + if (this.pdfDocument) { + this.#reset(); + this.#updateUI(true); + } + + if (!pdfDocument) { + return; + } + + this.pdfDocument = pdfDocument; + + this._dataAvailableCapability.resolve(); + } + + #reset() { + this.pdfDocument = null; + this.#fieldData = null; + this._dataAvailableCapability = (0, _pdfjsLib.createPromiseCapability)(); + this._currentPageNumber = 1; + this._pagesRotation = 0; + } + + #updateUI(reset = false) { + if (reset || !this.#fieldData) { + for (const id in this.fields) { + this.fields[id].textContent = DEFAULT_FIELD_CONTENT; + } + + return; + } + + if (this.overlayManager.active !== this.dialog) { + return; + } + + for (const id in this.fields) { + const content = this.#fieldData[id]; + this.fields[id].textContent = content || content === 0 ? content : DEFAULT_FIELD_CONTENT; + } + } + + async #parseFileSize(fileSize = 0) { + const kb = fileSize / 1024, + mb = kb / 1024; + + if (!kb) { + return undefined; + } + + return this.l10n.get(`document_properties_${mb >= 1 ? "mb" : "kb"}`, { + size_mb: mb >= 1 && (+mb.toPrecision(3)).toLocaleString(), + size_kb: mb < 1 && (+kb.toPrecision(3)).toLocaleString(), + size_b: fileSize.toLocaleString() + }); + } + + async #parsePageSize(pageSizeInches, pagesRotation) { + if (!pageSizeInches) { + return undefined; + } + + if (pagesRotation % 180 !== 0) { + pageSizeInches = { + width: pageSizeInches.height, + height: pageSizeInches.width + }; + } + + const isPortrait = (0, _ui_utils.isPortraitOrientation)(pageSizeInches); + let sizeInches = { + width: Math.round(pageSizeInches.width * 100) / 100, + height: Math.round(pageSizeInches.height * 100) / 100 + }; + let sizeMillimeters = { + width: Math.round(pageSizeInches.width * 25.4 * 10) / 10, + height: Math.round(pageSizeInches.height * 25.4 * 10) / 10 + }; + let rawName = getPageName(sizeInches, isPortrait, US_PAGE_NAMES) || getPageName(sizeMillimeters, isPortrait, METRIC_PAGE_NAMES); + + if (!rawName && !(Number.isInteger(sizeMillimeters.width) && Number.isInteger(sizeMillimeters.height))) { + const exactMillimeters = { + width: pageSizeInches.width * 25.4, + height: pageSizeInches.height * 25.4 + }; + const intMillimeters = { + width: Math.round(sizeMillimeters.width), + height: Math.round(sizeMillimeters.height) + }; + + if (Math.abs(exactMillimeters.width - intMillimeters.width) < 0.1 && Math.abs(exactMillimeters.height - intMillimeters.height) < 0.1) { + rawName = getPageName(intMillimeters, isPortrait, METRIC_PAGE_NAMES); + + if (rawName) { + sizeInches = { + width: Math.round(intMillimeters.width / 25.4 * 100) / 100, + height: Math.round(intMillimeters.height / 25.4 * 100) / 100 + }; + sizeMillimeters = intMillimeters; + } + } + } + + const [{ + width, + height + }, unit, name, orientation] = await Promise.all([this._isNonMetricLocale ? sizeInches : sizeMillimeters, this.l10n.get(`document_properties_page_size_unit_${this._isNonMetricLocale ? "inches" : "millimeters"}`), rawName && this.l10n.get(`document_properties_page_size_name_${rawName.toLowerCase()}`), this.l10n.get(`document_properties_page_size_orientation_${isPortrait ? "portrait" : "landscape"}`)]); + return this.l10n.get(`document_properties_page_size_dimension_${name ? "name_" : ""}string`, { + width: width.toLocaleString(), + height: height.toLocaleString(), + unit, + name, + orientation + }); + } + + async #parseDate(inputDate) { + const dateObject = _pdfjsLib.PDFDateString.toDateObject(inputDate); + + if (!dateObject) { + return undefined; + } + + return this.l10n.get("document_properties_date_string", { + date: dateObject.toLocaleDateString(), + time: dateObject.toLocaleTimeString() + }); + } + + #parseLinearization(isLinearized) { + return this.l10n.get(`document_properties_linearized_${isLinearized ? "yes" : "no"}`); + } + +} + +exports.PDFDocumentProperties = PDFDocumentProperties; + +/***/ }), +/* 15 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFFindBar = void 0; + +var _pdf_find_controller = __webpack_require__(16); + +const MATCHES_COUNT_LIMIT = 1000; + +class PDFFindBar { + constructor(options, eventBus, l10n) { + this.opened = false; + this.bar = options.bar; + this.toggleButton = options.toggleButton; + this.findField = options.findField; + this.highlightAll = options.highlightAllCheckbox; + this.caseSensitive = options.caseSensitiveCheckbox; + this.matchDiacritics = options.matchDiacriticsCheckbox; + this.entireWord = options.entireWordCheckbox; + this.findMsg = options.findMsg; + this.findResultsCount = options.findResultsCount; + this.findPreviousButton = options.findPreviousButton; + this.findNextButton = options.findNextButton; + this.eventBus = eventBus; + this.l10n = l10n; + this.toggleButton.addEventListener("click", () => { + this.toggle(); + }); + this.findField.addEventListener("input", () => { + this.dispatchEvent(""); + }); + this.bar.addEventListener("keydown", e => { + switch (e.keyCode) { + case 13: + if (e.target === this.findField) { + this.dispatchEvent("again", e.shiftKey); + } + + break; + + case 27: + this.close(); + break; + } + }); + this.findPreviousButton.addEventListener("click", () => { + this.dispatchEvent("again", true); + }); + this.findNextButton.addEventListener("click", () => { + this.dispatchEvent("again", false); + }); + this.highlightAll.addEventListener("click", () => { + this.dispatchEvent("highlightallchange"); + }); + this.caseSensitive.addEventListener("click", () => { + this.dispatchEvent("casesensitivitychange"); + }); + this.entireWord.addEventListener("click", () => { + this.dispatchEvent("entirewordchange"); + }); + this.matchDiacritics.addEventListener("click", () => { + this.dispatchEvent("diacriticmatchingchange"); + }); + + this.eventBus._on("resize", this.#adjustWidth.bind(this)); + } + + reset() { + this.updateUIState(); + } + + dispatchEvent(type, findPrev = false) { + this.eventBus.dispatch("find", { + source: this, + type, + query: this.findField.value, + phraseSearch: true, + caseSensitive: this.caseSensitive.checked, + entireWord: this.entireWord.checked, + highlightAll: this.highlightAll.checked, + findPrevious: findPrev, + matchDiacritics: this.matchDiacritics.checked + }); + } + + updateUIState(state, previous, matchesCount) { + let findMsg = Promise.resolve(""); + let status = ""; + + switch (state) { + case _pdf_find_controller.FindState.FOUND: + break; + + case _pdf_find_controller.FindState.PENDING: + status = "pending"; + break; + + case _pdf_find_controller.FindState.NOT_FOUND: + findMsg = this.l10n.get("find_not_found"); + status = "notFound"; + break; + + case _pdf_find_controller.FindState.WRAPPED: + findMsg = this.l10n.get(`find_reached_${previous ? "top" : "bottom"}`); + break; + } + + this.findField.setAttribute("data-status", status); + this.findField.setAttribute("aria-invalid", state === _pdf_find_controller.FindState.NOT_FOUND); + findMsg.then(msg => { + this.findMsg.textContent = msg; + this.#adjustWidth(); + }); + this.updateResultsCount(matchesCount); + } + + updateResultsCount({ + current = 0, + total = 0 + } = {}) { + const limit = MATCHES_COUNT_LIMIT; + let matchCountMsg = Promise.resolve(""); + + if (total > 0) { + if (total > limit) { + let key = "find_match_count_limit"; + matchCountMsg = this.l10n.get(key, { + limit + }); + } else { + let key = "find_match_count"; + matchCountMsg = this.l10n.get(key, { + current, + total + }); + } + } + + matchCountMsg.then(msg => { + this.findResultsCount.textContent = msg; + this.#adjustWidth(); + }); + } + + open() { + if (!this.opened) { + this.opened = true; + this.toggleButton.classList.add("toggled"); + this.toggleButton.setAttribute("aria-expanded", "true"); + this.bar.classList.remove("hidden"); + } + + this.findField.select(); + this.findField.focus(); + this.#adjustWidth(); + } + + close() { + if (!this.opened) { + return; + } + + this.opened = false; + this.toggleButton.classList.remove("toggled"); + this.toggleButton.setAttribute("aria-expanded", "false"); + this.bar.classList.add("hidden"); + this.eventBus.dispatch("findbarclose", { + source: this + }); + } + + toggle() { + if (this.opened) { + this.close(); + } else { + this.open(); + } + } + + #adjustWidth() { + if (!this.opened) { + return; + } + + this.bar.classList.remove("wrapContainers"); + const findbarHeight = this.bar.clientHeight; + const inputContainerHeight = this.bar.firstElementChild.clientHeight; + + if (findbarHeight > inputContainerHeight) { + this.bar.classList.add("wrapContainers"); + } + } + +} + +exports.PDFFindBar = PDFFindBar; + +/***/ }), +/* 16 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFFindController = exports.FindState = void 0; + +var _ui_utils = __webpack_require__(1); + +var _pdfjsLib = __webpack_require__(5); + +var _pdf_find_utils = __webpack_require__(17); + +const FindState = { + FOUND: 0, + NOT_FOUND: 1, + WRAPPED: 2, + PENDING: 3 +}; +exports.FindState = FindState; +const FIND_TIMEOUT = 250; +const MATCH_SCROLL_OFFSET_TOP = -50; +const MATCH_SCROLL_OFFSET_LEFT = -400; +const CHARACTERS_TO_NORMALIZE = { + "\u2010": "-", + "\u2018": "'", + "\u2019": "'", + "\u201A": "'", + "\u201B": "'", + "\u201C": '"', + "\u201D": '"', + "\u201E": '"', + "\u201F": '"', + "\u00BC": "1/4", + "\u00BD": "1/2", + "\u00BE": "3/4" +}; +const DIACRITICS_EXCEPTION = new Set([0x3099, 0x309a, 0x094d, 0x09cd, 0x0a4d, 0x0acd, 0x0b4d, 0x0bcd, 0x0c4d, 0x0ccd, 0x0d3b, 0x0d3c, 0x0d4d, 0x0dca, 0x0e3a, 0x0eba, 0x0f84, 0x1039, 0x103a, 0x1714, 0x1734, 0x17d2, 0x1a60, 0x1b44, 0x1baa, 0x1bab, 0x1bf2, 0x1bf3, 0x2d7f, 0xa806, 0xa82c, 0xa8c4, 0xa953, 0xa9c0, 0xaaf6, 0xabed, 0x0c56, 0x0f71, 0x0f72, 0x0f7a, 0x0f7b, 0x0f7c, 0x0f7d, 0x0f80, 0x0f74]); +const DIACRITICS_EXCEPTION_STR = [...DIACRITICS_EXCEPTION.values()].map(x => String.fromCharCode(x)).join(""); +const DIACRITICS_REG_EXP = /\p{M}+/gu; +const SPECIAL_CHARS_REG_EXP = /([.*+?^${}()|[\]\\])|(\p{P})|(\s+)|(\p{M})|(\p{L})/gu; +const NOT_DIACRITIC_FROM_END_REG_EXP = /([^\p{M}])\p{M}*$/u; +const NOT_DIACRITIC_FROM_START_REG_EXP = /^\p{M}*([^\p{M}])/u; +const SYLLABLES_REG_EXP = /[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g; +const SYLLABLES_LENGTHS = new Map(); +const FIRST_CHAR_SYLLABLES_REG_EXP = "[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]"; +let noSyllablesRegExp = null; +let withSyllablesRegExp = null; + +function normalize(text) { + const syllablePositions = []; + let m; + + while ((m = SYLLABLES_REG_EXP.exec(text)) !== null) { + let { + index + } = m; + + for (const char of m[0]) { + let len = SYLLABLES_LENGTHS.get(char); + + if (!len) { + len = char.normalize("NFD").length; + SYLLABLES_LENGTHS.set(char, len); + } + + syllablePositions.push([len, index++]); + } + } + + let normalizationRegex; + + if (syllablePositions.length === 0 && noSyllablesRegExp) { + normalizationRegex = noSyllablesRegExp; + } else if (syllablePositions.length > 0 && withSyllablesRegExp) { + normalizationRegex = withSyllablesRegExp; + } else { + const replace = Object.keys(CHARACTERS_TO_NORMALIZE).join(""); + const regexp = `([${replace}])|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|(\\n)`; + + if (syllablePositions.length === 0) { + normalizationRegex = noSyllablesRegExp = new RegExp(regexp + "|(\\u0000)", "gum"); + } else { + normalizationRegex = withSyllablesRegExp = new RegExp(regexp + `|(${FIRST_CHAR_SYLLABLES_REG_EXP})`, "gum"); + } + } + + const rawDiacriticsPositions = []; + + while ((m = DIACRITICS_REG_EXP.exec(text)) !== null) { + rawDiacriticsPositions.push([m[0].length, m.index]); + } + + let normalized = text.normalize("NFD"); + const positions = [[0, 0]]; + let rawDiacriticsIndex = 0; + let syllableIndex = 0; + let shift = 0; + let shiftOrigin = 0; + let eol = 0; + let hasDiacritics = false; + normalized = normalized.replace(normalizationRegex, (match, p1, p2, p3, p4, p5, i) => { + i -= shiftOrigin; + + if (p1) { + const replacement = CHARACTERS_TO_NORMALIZE[match]; + const jj = replacement.length; + + for (let j = 1; j < jj; j++) { + positions.push([i - shift + j, shift - j]); + } + + shift -= jj - 1; + return replacement; + } + + if (p2) { + const hasTrailingDashEOL = p2.endsWith("\n"); + const len = hasTrailingDashEOL ? p2.length - 2 : p2.length; + hasDiacritics = true; + let jj = len; + + if (i + eol === rawDiacriticsPositions[rawDiacriticsIndex]?.[1]) { + jj -= rawDiacriticsPositions[rawDiacriticsIndex][0]; + ++rawDiacriticsIndex; + } + + for (let j = 1; j <= jj; j++) { + positions.push([i - 1 - shift + j, shift - j]); + } + + shift -= jj; + shiftOrigin += jj; + + if (hasTrailingDashEOL) { + i += len - 1; + positions.push([i - shift + 1, 1 + shift]); + shift += 1; + shiftOrigin += 1; + eol += 1; + return p2.slice(0, len); + } + + return p2; + } + + if (p3) { + positions.push([i - shift + 1, 1 + shift]); + shift += 1; + shiftOrigin += 1; + eol += 1; + return p3.charAt(0); + } + + if (p4) { + positions.push([i - shift + 1, shift - 1]); + shift -= 1; + shiftOrigin += 1; + eol += 1; + return " "; + } + + if (i + eol === syllablePositions[syllableIndex]?.[1]) { + const newCharLen = syllablePositions[syllableIndex][0] - 1; + ++syllableIndex; + + for (let j = 1; j <= newCharLen; j++) { + positions.push([i - (shift - j), shift - j]); + } + + shift -= newCharLen; + shiftOrigin += newCharLen; + } + + return p5; + }); + positions.push([normalized.length, shift]); + return [normalized, positions, hasDiacritics]; +} + +function getOriginalIndex(diffs, pos, len) { + if (!diffs) { + return [pos, len]; + } + + const start = pos; + const end = pos + len; + let i = (0, _ui_utils.binarySearchFirstItem)(diffs, x => x[0] >= start); + + if (diffs[i][0] > start) { + --i; + } + + let j = (0, _ui_utils.binarySearchFirstItem)(diffs, x => x[0] >= end, i); + + if (diffs[j][0] > end) { + --j; + } + + return [start + diffs[i][1], len + diffs[j][1] - diffs[i][1]]; +} + +class PDFFindController { + constructor({ + linkService, + eventBus + }) { + this._linkService = linkService; + this._eventBus = eventBus; + this.#reset(); + + eventBus._on("find", this.#onFind.bind(this)); + + eventBus._on("findbarclose", this.#onFindBarClose.bind(this)); + } + + get highlightMatches() { + return this._highlightMatches; + } + + get pageMatches() { + return this._pageMatches; + } + + get pageMatchesLength() { + return this._pageMatchesLength; + } + + get selected() { + return this._selected; + } + + get state() { + return this._state; + } + + setDocument(pdfDocument) { + if (this._pdfDocument) { + this.#reset(); + } + + if (!pdfDocument) { + return; + } + + this._pdfDocument = pdfDocument; + + this._firstPageCapability.resolve(); + } + + #onFind(state) { + if (!state) { + return; + } + + const pdfDocument = this._pdfDocument; + const { + type + } = state; + + if (this._state === null || this.#shouldDirtyMatch(state)) { + this._dirtyMatch = true; + } + + this._state = state; + + if (type !== "highlightallchange") { + this.#updateUIState(FindState.PENDING); + } + + this._firstPageCapability.promise.then(() => { + if (!this._pdfDocument || pdfDocument && this._pdfDocument !== pdfDocument) { + return; + } + + this.#extractText(); + const findbarClosed = !this._highlightMatches; + const pendingTimeout = !!this._findTimeout; + + if (this._findTimeout) { + clearTimeout(this._findTimeout); + this._findTimeout = null; + } + + if (!type) { + this._findTimeout = setTimeout(() => { + this.#nextMatch(); + this._findTimeout = null; + }, FIND_TIMEOUT); + } else if (this._dirtyMatch) { + this.#nextMatch(); + } else if (type === "again") { + this.#nextMatch(); + + if (findbarClosed && this._state.highlightAll) { + this.#updateAllPages(); + } + } else if (type === "highlightallchange") { + if (pendingTimeout) { + this.#nextMatch(); + } else { + this._highlightMatches = true; + } + + this.#updateAllPages(); + } else { + this.#nextMatch(); + } + }); + } + + scrollMatchIntoView({ + element = null, + selectedLeft = 0, + pageIndex = -1, + matchIndex = -1 + }) { + if (!this._scrollMatches || !element) { + return; + } else if (matchIndex === -1 || matchIndex !== this._selected.matchIdx) { + return; + } else if (pageIndex === -1 || pageIndex !== this._selected.pageIdx) { + return; + } + + this._scrollMatches = false; + const spot = { + top: MATCH_SCROLL_OFFSET_TOP, + left: selectedLeft + MATCH_SCROLL_OFFSET_LEFT + }; + (0, _ui_utils.scrollIntoView)(element, spot, true); + } + + #reset() { + this._highlightMatches = false; + this._scrollMatches = false; + this._pdfDocument = null; + this._pageMatches = []; + this._pageMatchesLength = []; + this._state = null; + this._selected = { + pageIdx: -1, + matchIdx: -1 + }; + this._offset = { + pageIdx: null, + matchIdx: null, + wrapped: false + }; + this._extractTextPromises = []; + this._pageContents = []; + this._pageDiffs = []; + this._hasDiacritics = []; + this._matchesCountTotal = 0; + this._pagesToSearch = null; + this._pendingFindMatches = new Set(); + this._resumePageIdx = null; + this._dirtyMatch = false; + clearTimeout(this._findTimeout); + this._findTimeout = null; + this._firstPageCapability = (0, _pdfjsLib.createPromiseCapability)(); + } + + get #query() { + if (this._state.query !== this._rawQuery) { + this._rawQuery = this._state.query; + [this._normalizedQuery] = normalize(this._state.query); + } + + return this._normalizedQuery; + } + + #shouldDirtyMatch(state) { + if (state.query !== this._state.query) { + return true; + } + + switch (state.type) { + case "again": + const pageNumber = this._selected.pageIdx + 1; + const linkService = this._linkService; + + if (pageNumber >= 1 && pageNumber <= linkService.pagesCount && pageNumber !== linkService.page && !linkService.isPageVisible(pageNumber)) { + return true; + } + + return false; + + case "highlightallchange": + return false; + } + + return true; + } + + #isEntireWord(content, startIdx, length) { + let match = content.slice(0, startIdx).match(NOT_DIACRITIC_FROM_END_REG_EXP); + + if (match) { + const first = content.charCodeAt(startIdx); + const limit = match[1].charCodeAt(0); + + if ((0, _pdf_find_utils.getCharacterType)(first) === (0, _pdf_find_utils.getCharacterType)(limit)) { + return false; + } + } + + match = content.slice(startIdx + length).match(NOT_DIACRITIC_FROM_START_REG_EXP); + + if (match) { + const last = content.charCodeAt(startIdx + length - 1); + const limit = match[1].charCodeAt(0); + + if ((0, _pdf_find_utils.getCharacterType)(last) === (0, _pdf_find_utils.getCharacterType)(limit)) { + return false; + } + } + + return true; + } + + #calculateRegExpMatch(query, entireWord, pageIndex, pageContent) { + const matches = [], + matchesLength = []; + const diffs = this._pageDiffs[pageIndex]; + let match; + + while ((match = query.exec(pageContent)) !== null) { + if (entireWord && !this.#isEntireWord(pageContent, match.index, match[0].length)) { + continue; + } + + const [matchPos, matchLen] = getOriginalIndex(diffs, match.index, match[0].length); + + if (matchLen) { + matches.push(matchPos); + matchesLength.push(matchLen); + } + } + + this._pageMatches[pageIndex] = matches; + this._pageMatchesLength[pageIndex] = matchesLength; + } + + #convertToRegExpString(query, hasDiacritics) { + const { + matchDiacritics + } = this._state; + let isUnicode = false; + query = query.replace(SPECIAL_CHARS_REG_EXP, (match, p1, p2, p3, p4, p5) => { + if (p1) { + return `[ ]*\\${p1}[ ]*`; + } + + if (p2) { + return `[ ]*${p2}[ ]*`; + } + + if (p3) { + return "[ ]+"; + } + + if (matchDiacritics) { + return p4 || p5; + } + + if (p4) { + return DIACRITICS_EXCEPTION.has(p4.charCodeAt(0)) ? p4 : ""; + } + + if (hasDiacritics) { + isUnicode = true; + return `${p5}\\p{M}*`; + } + + return p5; + }); + const trailingSpaces = "[ ]*"; + + if (query.endsWith(trailingSpaces)) { + query = query.slice(0, query.length - trailingSpaces.length); + } + + if (matchDiacritics) { + if (hasDiacritics) { + isUnicode = true; + query = `${query}(?=[${DIACRITICS_EXCEPTION_STR}]|[^\\p{M}]|$)`; + } + } + + return [isUnicode, query]; + } + + #calculateMatch(pageIndex) { + let query = this.#query; + + if (query.length === 0) { + return; + } + + const { + caseSensitive, + entireWord, + phraseSearch + } = this._state; + const pageContent = this._pageContents[pageIndex]; + const hasDiacritics = this._hasDiacritics[pageIndex]; + let isUnicode = false; + + if (phraseSearch) { + [isUnicode, query] = this.#convertToRegExpString(query, hasDiacritics); + } else { + const match = query.match(/\S+/g); + + if (match) { + query = match.sort().reverse().map(q => { + const [isUnicodePart, queryPart] = this.#convertToRegExpString(q, hasDiacritics); + isUnicode ||= isUnicodePart; + return `(${queryPart})`; + }).join("|"); + } + } + + const flags = `g${isUnicode ? "u" : ""}${caseSensitive ? "" : "i"}`; + query = new RegExp(query, flags); + this.#calculateRegExpMatch(query, entireWord, pageIndex, pageContent); + + if (this._state.highlightAll) { + this.#updatePage(pageIndex); + } + + if (this._resumePageIdx === pageIndex) { + this._resumePageIdx = null; + this.#nextPageMatch(); + } + + const pageMatchesCount = this._pageMatches[pageIndex].length; + + if (pageMatchesCount > 0) { + this._matchesCountTotal += pageMatchesCount; + this.#updateUIResultsCount(); + } + } + + #extractText() { + if (this._extractTextPromises.length > 0) { + return; + } + + let promise = Promise.resolve(); + + for (let i = 0, ii = this._linkService.pagesCount; i < ii; i++) { + const extractTextCapability = (0, _pdfjsLib.createPromiseCapability)(); + this._extractTextPromises[i] = extractTextCapability.promise; + promise = promise.then(() => { + return this._pdfDocument.getPage(i + 1).then(pdfPage => { + return pdfPage.getTextContent(); + }).then(textContent => { + const strBuf = []; + + for (const textItem of textContent.items) { + strBuf.push(textItem.str); + + if (textItem.hasEOL) { + strBuf.push("\n"); + } + } + + [this._pageContents[i], this._pageDiffs[i], this._hasDiacritics[i]] = normalize(strBuf.join("")); + extractTextCapability.resolve(); + }, reason => { + console.error(`Unable to get text content for page ${i + 1}`, reason); + this._pageContents[i] = ""; + this._pageDiffs[i] = null; + this._hasDiacritics[i] = false; + extractTextCapability.resolve(); + }); + }); + } + } + + #updatePage(index) { + if (this._scrollMatches && this._selected.pageIdx === index) { + this._linkService.page = index + 1; + } + + this._eventBus.dispatch("updatetextlayermatches", { + source: this, + pageIndex: index + }); + } + + #updateAllPages() { + this._eventBus.dispatch("updatetextlayermatches", { + source: this, + pageIndex: -1 + }); + } + + #nextMatch() { + const previous = this._state.findPrevious; + const currentPageIndex = this._linkService.page - 1; + const numPages = this._linkService.pagesCount; + this._highlightMatches = true; + + if (this._dirtyMatch) { + this._dirtyMatch = false; + this._selected.pageIdx = this._selected.matchIdx = -1; + this._offset.pageIdx = currentPageIndex; + this._offset.matchIdx = null; + this._offset.wrapped = false; + this._resumePageIdx = null; + this._pageMatches.length = 0; + this._pageMatchesLength.length = 0; + this._matchesCountTotal = 0; + this.#updateAllPages(); + + for (let i = 0; i < numPages; i++) { + if (this._pendingFindMatches.has(i)) { + continue; + } + + this._pendingFindMatches.add(i); + + this._extractTextPromises[i].then(() => { + this._pendingFindMatches.delete(i); + + this.#calculateMatch(i); + }); + } + } + + if (this.#query === "") { + this.#updateUIState(FindState.FOUND); + return; + } + + if (this._resumePageIdx) { + return; + } + + const offset = this._offset; + this._pagesToSearch = numPages; + + if (offset.matchIdx !== null) { + const numPageMatches = this._pageMatches[offset.pageIdx].length; + + if (!previous && offset.matchIdx + 1 < numPageMatches || previous && offset.matchIdx > 0) { + offset.matchIdx = previous ? offset.matchIdx - 1 : offset.matchIdx + 1; + this.#updateMatch(true); + return; + } + + this.#advanceOffsetPage(previous); + } + + this.#nextPageMatch(); + } + + #matchesReady(matches) { + const offset = this._offset; + const numMatches = matches.length; + const previous = this._state.findPrevious; + + if (numMatches) { + offset.matchIdx = previous ? numMatches - 1 : 0; + this.#updateMatch(true); + return true; + } + + this.#advanceOffsetPage(previous); + + if (offset.wrapped) { + offset.matchIdx = null; + + if (this._pagesToSearch < 0) { + this.#updateMatch(false); + return true; + } + } + + return false; + } + + #nextPageMatch() { + if (this._resumePageIdx !== null) { + console.error("There can only be one pending page."); + } + + let matches = null; + + do { + const pageIdx = this._offset.pageIdx; + matches = this._pageMatches[pageIdx]; + + if (!matches) { + this._resumePageIdx = pageIdx; + break; + } + } while (!this.#matchesReady(matches)); + } + + #advanceOffsetPage(previous) { + const offset = this._offset; + const numPages = this._linkService.pagesCount; + offset.pageIdx = previous ? offset.pageIdx - 1 : offset.pageIdx + 1; + offset.matchIdx = null; + this._pagesToSearch--; + + if (offset.pageIdx >= numPages || offset.pageIdx < 0) { + offset.pageIdx = previous ? numPages - 1 : 0; + offset.wrapped = true; + } + } + + #updateMatch(found = false) { + let state = FindState.NOT_FOUND; + const wrapped = this._offset.wrapped; + this._offset.wrapped = false; + + if (found) { + const previousPage = this._selected.pageIdx; + this._selected.pageIdx = this._offset.pageIdx; + this._selected.matchIdx = this._offset.matchIdx; + state = wrapped ? FindState.WRAPPED : FindState.FOUND; + + if (previousPage !== -1 && previousPage !== this._selected.pageIdx) { + this.#updatePage(previousPage); + } + } + + this.#updateUIState(state, this._state.findPrevious); + + if (this._selected.pageIdx !== -1) { + this._scrollMatches = true; + this.#updatePage(this._selected.pageIdx); + } + } + + #onFindBarClose(evt) { + const pdfDocument = this._pdfDocument; + + this._firstPageCapability.promise.then(() => { + if (!this._pdfDocument || pdfDocument && this._pdfDocument !== pdfDocument) { + return; + } + + if (this._findTimeout) { + clearTimeout(this._findTimeout); + this._findTimeout = null; + } + + if (this._resumePageIdx) { + this._resumePageIdx = null; + this._dirtyMatch = true; + } + + this.#updateUIState(FindState.FOUND); + this._highlightMatches = false; + this.#updateAllPages(); + }); + } + + #requestMatchesCount() { + const { + pageIdx, + matchIdx + } = this._selected; + let current = 0, + total = this._matchesCountTotal; + + if (matchIdx !== -1) { + for (let i = 0; i < pageIdx; i++) { + current += this._pageMatches[i]?.length || 0; + } + + current += matchIdx + 1; + } + + if (current < 1 || current > total) { + current = total = 0; + } + + return { + current, + total + }; + } + + #updateUIResultsCount() { + this._eventBus.dispatch("updatefindmatchescount", { + source: this, + matchesCount: this.#requestMatchesCount() + }); + } + + #updateUIState(state, previous = false) { + this._eventBus.dispatch("updatefindcontrolstate", { + source: this, + state, + previous, + matchesCount: this.#requestMatchesCount(), + rawQuery: this._state?.query ?? null + }); + } + +} + +exports.PDFFindController = PDFFindController; + +/***/ }), +/* 17 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.CharacterType = void 0; +exports.getCharacterType = getCharacterType; +const CharacterType = { + SPACE: 0, + ALPHA_LETTER: 1, + PUNCT: 2, + HAN_LETTER: 3, + KATAKANA_LETTER: 4, + HIRAGANA_LETTER: 5, + HALFWIDTH_KATAKANA_LETTER: 6, + THAI_LETTER: 7 +}; +exports.CharacterType = CharacterType; + +function isAlphabeticalScript(charCode) { + return charCode < 0x2e80; +} + +function isAscii(charCode) { + return (charCode & 0xff80) === 0; +} + +function isAsciiAlpha(charCode) { + return charCode >= 0x61 && charCode <= 0x7a || charCode >= 0x41 && charCode <= 0x5a; +} + +function isAsciiDigit(charCode) { + return charCode >= 0x30 && charCode <= 0x39; +} + +function isAsciiSpace(charCode) { + return charCode === 0x20 || charCode === 0x09 || charCode === 0x0d || charCode === 0x0a; +} + +function isHan(charCode) { + return charCode >= 0x3400 && charCode <= 0x9fff || charCode >= 0xf900 && charCode <= 0xfaff; +} + +function isKatakana(charCode) { + return charCode >= 0x30a0 && charCode <= 0x30ff; +} + +function isHiragana(charCode) { + return charCode >= 0x3040 && charCode <= 0x309f; +} + +function isHalfwidthKatakana(charCode) { + return charCode >= 0xff60 && charCode <= 0xff9f; +} + +function isThai(charCode) { + return (charCode & 0xff80) === 0x0e00; +} + +function getCharacterType(charCode) { + if (isAlphabeticalScript(charCode)) { + if (isAscii(charCode)) { + if (isAsciiSpace(charCode)) { + return CharacterType.SPACE; + } else if (isAsciiAlpha(charCode) || isAsciiDigit(charCode) || charCode === 0x5f) { + return CharacterType.ALPHA_LETTER; + } + + return CharacterType.PUNCT; + } else if (isThai(charCode)) { + return CharacterType.THAI_LETTER; + } else if (charCode === 0xa0) { + return CharacterType.SPACE; + } + + return CharacterType.ALPHA_LETTER; + } + + if (isHan(charCode)) { + return CharacterType.HAN_LETTER; + } else if (isKatakana(charCode)) { + return CharacterType.KATAKANA_LETTER; + } else if (isHiragana(charCode)) { + return CharacterType.HIRAGANA_LETTER; + } else if (isHalfwidthKatakana(charCode)) { + return CharacterType.HALFWIDTH_KATAKANA_LETTER; + } + + return CharacterType.ALPHA_LETTER; +} + +/***/ }), +/* 18 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFHistory = void 0; +exports.isDestArraysEqual = isDestArraysEqual; +exports.isDestHashesEqual = isDestHashesEqual; + +var _ui_utils = __webpack_require__(1); + +var _event_utils = __webpack_require__(6); + +const HASH_CHANGE_TIMEOUT = 1000; +const POSITION_UPDATED_THRESHOLD = 50; +const UPDATE_VIEWAREA_TIMEOUT = 1000; + +function getCurrentHash() { + return document.location.hash; +} + +class PDFHistory { + constructor({ + linkService, + eventBus + }) { + this.linkService = linkService; + this.eventBus = eventBus; + this._initialized = false; + this._fingerprint = ""; + this.reset(); + this._boundEvents = null; + + this.eventBus._on("pagesinit", () => { + this._isPagesLoaded = false; + + this.eventBus._on("pagesloaded", evt => { + this._isPagesLoaded = !!evt.pagesCount; + }, { + once: true + }); + }); + } + + initialize({ + fingerprint, + resetHistory = false, + updateUrl = false + }) { + if (!fingerprint || typeof fingerprint !== "string") { + console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.'); + return; + } + + if (this._initialized) { + this.reset(); + } + + const reInitialized = this._fingerprint !== "" && this._fingerprint !== fingerprint; + this._fingerprint = fingerprint; + this._updateUrl = updateUrl === true; + this._initialized = true; + + this._bindEvents(); + + const state = window.history.state; + this._popStateInProgress = false; + this._blockHashChange = 0; + this._currentHash = getCurrentHash(); + this._numPositionUpdates = 0; + this._uid = this._maxUid = 0; + this._destination = null; + this._position = null; + + if (!this._isValidState(state, true) || resetHistory) { + const { + hash, + page, + rotation + } = this._parseCurrentHash(true); + + if (!hash || reInitialized || resetHistory) { + this._pushOrReplaceState(null, true); + + return; + } + + this._pushOrReplaceState({ + hash, + page, + rotation + }, true); + + return; + } + + const destination = state.destination; + + this._updateInternalState(destination, state.uid, true); + + if (destination.rotation !== undefined) { + this._initialRotation = destination.rotation; + } + + if (destination.dest) { + this._initialBookmark = JSON.stringify(destination.dest); + this._destination.page = null; + } else if (destination.hash) { + this._initialBookmark = destination.hash; + } else if (destination.page) { + this._initialBookmark = `page=${destination.page}`; + } + } + + reset() { + if (this._initialized) { + this._pageHide(); + + this._initialized = false; + + this._unbindEvents(); + } + + if (this._updateViewareaTimeout) { + clearTimeout(this._updateViewareaTimeout); + this._updateViewareaTimeout = null; + } + + this._initialBookmark = null; + this._initialRotation = null; + } + + push({ + namedDest = null, + explicitDest, + pageNumber + }) { + if (!this._initialized) { + return; + } + + if (namedDest && typeof namedDest !== "string") { + console.error("PDFHistory.push: " + `"${namedDest}" is not a valid namedDest parameter.`); + return; + } else if (!Array.isArray(explicitDest)) { + console.error("PDFHistory.push: " + `"${explicitDest}" is not a valid explicitDest parameter.`); + return; + } else if (!this._isValidPage(pageNumber)) { + if (pageNumber !== null || this._destination) { + console.error("PDFHistory.push: " + `"${pageNumber}" is not a valid pageNumber parameter.`); + return; + } + } + + const hash = namedDest || JSON.stringify(explicitDest); + + if (!hash) { + return; + } + + let forceReplace = false; + + if (this._destination && (isDestHashesEqual(this._destination.hash, hash) || isDestArraysEqual(this._destination.dest, explicitDest))) { + if (this._destination.page) { + return; + } + + forceReplace = true; + } + + if (this._popStateInProgress && !forceReplace) { + return; + } + + this._pushOrReplaceState({ + dest: explicitDest, + hash, + page: pageNumber, + rotation: this.linkService.rotation + }, forceReplace); + + if (!this._popStateInProgress) { + this._popStateInProgress = true; + Promise.resolve().then(() => { + this._popStateInProgress = false; + }); + } + } + + pushPage(pageNumber) { + if (!this._initialized) { + return; + } + + if (!this._isValidPage(pageNumber)) { + console.error(`PDFHistory.pushPage: "${pageNumber}" is not a valid page number.`); + return; + } + + if (this._destination?.page === pageNumber) { + return; + } + + if (this._popStateInProgress) { + return; + } + + this._pushOrReplaceState({ + dest: null, + hash: `page=${pageNumber}`, + page: pageNumber, + rotation: this.linkService.rotation + }); + + if (!this._popStateInProgress) { + this._popStateInProgress = true; + Promise.resolve().then(() => { + this._popStateInProgress = false; + }); + } + } + + pushCurrentPosition() { + if (!this._initialized || this._popStateInProgress) { + return; + } + + this._tryPushCurrentPosition(); + } + + back() { + if (!this._initialized || this._popStateInProgress) { + return; + } + + const state = window.history.state; + + if (this._isValidState(state) && state.uid > 0) { + window.history.back(); + } + } + + forward() { + if (!this._initialized || this._popStateInProgress) { + return; + } + + const state = window.history.state; + + if (this._isValidState(state) && state.uid < this._maxUid) { + window.history.forward(); + } + } + + get popStateInProgress() { + return this._initialized && (this._popStateInProgress || this._blockHashChange > 0); + } + + get initialBookmark() { + return this._initialized ? this._initialBookmark : null; + } + + get initialRotation() { + return this._initialized ? this._initialRotation : null; + } + + _pushOrReplaceState(destination, forceReplace = false) { + const shouldReplace = forceReplace || !this._destination; + const newState = { + fingerprint: this._fingerprint, + uid: shouldReplace ? this._uid : this._uid + 1, + destination + }; + + this._updateInternalState(destination, newState.uid); + + let newUrl; + + if (this._updateUrl && destination?.hash) { + const baseUrl = document.location.href.split("#")[0]; + + if (!baseUrl.startsWith("file://")) { + newUrl = `${baseUrl}#${destination.hash}`; + } + } + + if (shouldReplace) { + window.history.replaceState(newState, "", newUrl); + } else { + window.history.pushState(newState, "", newUrl); + } + } + + _tryPushCurrentPosition(temporary = false) { + if (!this._position) { + return; + } + + let position = this._position; + + if (temporary) { + position = Object.assign(Object.create(null), this._position); + position.temporary = true; + } + + if (!this._destination) { + this._pushOrReplaceState(position); + + return; + } + + if (this._destination.temporary) { + this._pushOrReplaceState(position, true); + + return; + } + + if (this._destination.hash === position.hash) { + return; + } + + if (!this._destination.page && (POSITION_UPDATED_THRESHOLD <= 0 || this._numPositionUpdates <= POSITION_UPDATED_THRESHOLD)) { + return; + } + + let forceReplace = false; + + if (this._destination.page >= position.first && this._destination.page <= position.page) { + if (this._destination.dest !== undefined || !this._destination.first) { + return; + } + + forceReplace = true; + } + + this._pushOrReplaceState(position, forceReplace); + } + + _isValidPage(val) { + return Number.isInteger(val) && val > 0 && val <= this.linkService.pagesCount; + } + + _isValidState(state, checkReload = false) { + if (!state) { + return false; + } + + if (state.fingerprint !== this._fingerprint) { + if (checkReload) { + if (typeof state.fingerprint !== "string" || state.fingerprint.length !== this._fingerprint.length) { + return false; + } + + const [perfEntry] = performance.getEntriesByType("navigation"); + + if (perfEntry?.type !== "reload") { + return false; + } + } else { + return false; + } + } + + if (!Number.isInteger(state.uid) || state.uid < 0) { + return false; + } + + if (state.destination === null || typeof state.destination !== "object") { + return false; + } + + return true; + } + + _updateInternalState(destination, uid, removeTemporary = false) { + if (this._updateViewareaTimeout) { + clearTimeout(this._updateViewareaTimeout); + this._updateViewareaTimeout = null; + } + + if (removeTemporary && destination?.temporary) { + delete destination.temporary; + } + + this._destination = destination; + this._uid = uid; + this._maxUid = Math.max(this._maxUid, uid); + this._numPositionUpdates = 0; + } + + _parseCurrentHash(checkNameddest = false) { + const hash = unescape(getCurrentHash()).substring(1); + const params = (0, _ui_utils.parseQueryString)(hash); + const nameddest = params.get("nameddest") || ""; + let page = params.get("page") | 0; + + if (!this._isValidPage(page) || checkNameddest && nameddest.length > 0) { + page = null; + } + + return { + hash, + page, + rotation: this.linkService.rotation + }; + } + + _updateViewarea({ + location + }) { + if (this._updateViewareaTimeout) { + clearTimeout(this._updateViewareaTimeout); + this._updateViewareaTimeout = null; + } + + this._position = { + hash: location.pdfOpenParams.substring(1), + page: this.linkService.page, + first: location.pageNumber, + rotation: location.rotation + }; + + if (this._popStateInProgress) { + return; + } + + if (POSITION_UPDATED_THRESHOLD > 0 && this._isPagesLoaded && this._destination && !this._destination.page) { + this._numPositionUpdates++; + } + + if (UPDATE_VIEWAREA_TIMEOUT > 0) { + this._updateViewareaTimeout = setTimeout(() => { + if (!this._popStateInProgress) { + this._tryPushCurrentPosition(true); + } + + this._updateViewareaTimeout = null; + }, UPDATE_VIEWAREA_TIMEOUT); + } + } + + _popState({ + state + }) { + const newHash = getCurrentHash(), + hashChanged = this._currentHash !== newHash; + this._currentHash = newHash; + + if (!state) { + this._uid++; + + const { + hash, + page, + rotation + } = this._parseCurrentHash(); + + this._pushOrReplaceState({ + hash, + page, + rotation + }, true); + + return; + } + + if (!this._isValidState(state)) { + return; + } + + this._popStateInProgress = true; + + if (hashChanged) { + this._blockHashChange++; + (0, _event_utils.waitOnEventOrTimeout)({ + target: window, + name: "hashchange", + delay: HASH_CHANGE_TIMEOUT + }).then(() => { + this._blockHashChange--; + }); + } + + const destination = state.destination; + + this._updateInternalState(destination, state.uid, true); + + if ((0, _ui_utils.isValidRotation)(destination.rotation)) { + this.linkService.rotation = destination.rotation; + } + + if (destination.dest) { + this.linkService.goToDestination(destination.dest); + } else if (destination.hash) { + this.linkService.setHash(destination.hash); + } else if (destination.page) { + this.linkService.page = destination.page; + } + + Promise.resolve().then(() => { + this._popStateInProgress = false; + }); + } + + _pageHide() { + if (!this._destination || this._destination.temporary) { + this._tryPushCurrentPosition(); + } + } + + _bindEvents() { + if (this._boundEvents) { + return; + } + + this._boundEvents = { + updateViewarea: this._updateViewarea.bind(this), + popState: this._popState.bind(this), + pageHide: this._pageHide.bind(this) + }; + + this.eventBus._on("updateviewarea", this._boundEvents.updateViewarea); + + window.addEventListener("popstate", this._boundEvents.popState); + window.addEventListener("pagehide", this._boundEvents.pageHide); + } + + _unbindEvents() { + if (!this._boundEvents) { + return; + } + + this.eventBus._off("updateviewarea", this._boundEvents.updateViewarea); + + window.removeEventListener("popstate", this._boundEvents.popState); + window.removeEventListener("pagehide", this._boundEvents.pageHide); + this._boundEvents = null; + } + +} + +exports.PDFHistory = PDFHistory; + +function isDestHashesEqual(destHash, pushHash) { + if (typeof destHash !== "string" || typeof pushHash !== "string") { + return false; + } + + if (destHash === pushHash) { + return true; + } + + const nameddest = (0, _ui_utils.parseQueryString)(destHash).get("nameddest"); + + if (nameddest === pushHash) { + return true; + } + + return false; +} + +function isDestArraysEqual(firstDest, secondDest) { + function isEntryEqual(first, second) { + if (typeof first !== typeof second) { + return false; + } + + if (Array.isArray(first) || Array.isArray(second)) { + return false; + } + + if (first !== null && typeof first === "object" && second !== null) { + if (Object.keys(first).length !== Object.keys(second).length) { + return false; + } + + for (const key in first) { + if (!isEntryEqual(first[key], second[key])) { + return false; + } + } + + return true; + } + + return first === second || Number.isNaN(first) && Number.isNaN(second); + } + + if (!(Array.isArray(firstDest) && Array.isArray(secondDest))) { + return false; + } + + if (firstDest.length !== secondDest.length) { + return false; + } + + for (let i = 0, ii = firstDest.length; i < ii; i++) { + if (!isEntryEqual(firstDest[i], secondDest[i])) { + return false; + } + } + + return true; +} + +/***/ }), +/* 19 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFLayerViewer = void 0; + +var _base_tree_viewer = __webpack_require__(13); + +class PDFLayerViewer extends _base_tree_viewer.BaseTreeViewer { + constructor(options) { + super(options); + this.l10n = options.l10n; + + this.eventBus._on("resetlayers", this._resetLayers.bind(this)); + + this.eventBus._on("togglelayerstree", this._toggleAllTreeItems.bind(this)); + } + + reset() { + super.reset(); + this._optionalContentConfig = null; + } + + _dispatchEvent(layersCount) { + this.eventBus.dispatch("layersloaded", { + source: this, + layersCount + }); + } + + _bindLink(element, { + groupId, + input + }) { + const setVisibility = () => { + this._optionalContentConfig.setVisibility(groupId, input.checked); + + this.eventBus.dispatch("optionalcontentconfig", { + source: this, + promise: Promise.resolve(this._optionalContentConfig) + }); + }; + + element.onclick = evt => { + if (evt.target === input) { + setVisibility(); + return true; + } else if (evt.target !== element) { + return true; + } + + input.checked = !input.checked; + setVisibility(); + return false; + }; + } + + async _setNestedName(element, { + name = null + }) { + if (typeof name === "string") { + element.textContent = this._normalizeTextContent(name); + return; + } + + element.textContent = await this.l10n.get("additional_layers"); + element.style.fontStyle = "italic"; + } + + _addToggleButton(div, { + name = null + }) { + super._addToggleButton(div, name === null); + } + + _toggleAllTreeItems() { + if (!this._optionalContentConfig) { + return; + } + + super._toggleAllTreeItems(); + } + + render({ + optionalContentConfig, + pdfDocument + }) { + if (this._optionalContentConfig) { + this.reset(); + } + + this._optionalContentConfig = optionalContentConfig || null; + this._pdfDocument = pdfDocument || null; + const groups = optionalContentConfig?.getOrder(); + + if (!groups) { + this._dispatchEvent(0); + + return; + } + + const fragment = document.createDocumentFragment(), + queue = [{ + parent: fragment, + groups + }]; + let layersCount = 0, + hasAnyNesting = false; + + while (queue.length > 0) { + const levelData = queue.shift(); + + for (const groupId of levelData.groups) { + const div = document.createElement("div"); + div.className = "treeItem"; + const element = document.createElement("a"); + div.append(element); + + if (typeof groupId === "object") { + hasAnyNesting = true; + + this._addToggleButton(div, groupId); + + this._setNestedName(element, groupId); + + const itemsDiv = document.createElement("div"); + itemsDiv.className = "treeItems"; + div.append(itemsDiv); + queue.push({ + parent: itemsDiv, + groups: groupId.order + }); + } else { + const group = optionalContentConfig.getGroup(groupId); + const input = document.createElement("input"); + + this._bindLink(element, { + groupId, + input + }); + + input.type = "checkbox"; + input.checked = group.visible; + const label = document.createElement("label"); + label.textContent = this._normalizeTextContent(group.name); + label.append(input); + element.append(label); + layersCount++; + } + + levelData.parent.append(div); + } + } + + this._finishRendering(fragment, layersCount, hasAnyNesting); + } + + async _resetLayers() { + if (!this._optionalContentConfig) { + return; + } + + const optionalContentConfig = await this._pdfDocument.getOptionalContentConfig(); + this.eventBus.dispatch("optionalcontentconfig", { + source: this, + promise: Promise.resolve(optionalContentConfig) + }); + this.render({ + optionalContentConfig, + pdfDocument: this._pdfDocument + }); + } + +} + +exports.PDFLayerViewer = PDFLayerViewer; + +/***/ }), +/* 20 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFOutlineViewer = void 0; + +var _base_tree_viewer = __webpack_require__(13); + +var _pdfjsLib = __webpack_require__(5); + +var _ui_utils = __webpack_require__(1); + +class PDFOutlineViewer extends _base_tree_viewer.BaseTreeViewer { + constructor(options) { + super(options); + this.linkService = options.linkService; + + this.eventBus._on("toggleoutlinetree", this._toggleAllTreeItems.bind(this)); + + this.eventBus._on("currentoutlineitem", this._currentOutlineItem.bind(this)); + + this.eventBus._on("pagechanging", evt => { + this._currentPageNumber = evt.pageNumber; + }); + + this.eventBus._on("pagesloaded", evt => { + this._isPagesLoaded = !!evt.pagesCount; + + if (this._currentOutlineItemCapability && !this._currentOutlineItemCapability.settled) { + this._currentOutlineItemCapability.resolve(this._isPagesLoaded); + } + }); + + this.eventBus._on("sidebarviewchanged", evt => { + this._sidebarView = evt.view; + }); + } + + reset() { + super.reset(); + this._outline = null; + this._pageNumberToDestHashCapability = null; + this._currentPageNumber = 1; + this._isPagesLoaded = null; + + if (this._currentOutlineItemCapability && !this._currentOutlineItemCapability.settled) { + this._currentOutlineItemCapability.resolve(false); + } + + this._currentOutlineItemCapability = null; + } + + _dispatchEvent(outlineCount) { + this._currentOutlineItemCapability = (0, _pdfjsLib.createPromiseCapability)(); + + if (outlineCount === 0 || this._pdfDocument?.loadingParams.disableAutoFetch) { + this._currentOutlineItemCapability.resolve(false); + } else if (this._isPagesLoaded !== null) { + this._currentOutlineItemCapability.resolve(this._isPagesLoaded); + } + + this.eventBus.dispatch("outlineloaded", { + source: this, + outlineCount, + currentOutlineItemPromise: this._currentOutlineItemCapability.promise + }); + } + + _bindLink(element, { + url, + newWindow, + dest + }) { + const { + linkService + } = this; + + if (url) { + linkService.addLinkAttributes(element, url, newWindow); + return; + } + + element.href = linkService.getDestinationHash(dest); + + element.onclick = evt => { + this._updateCurrentTreeItem(evt.target.parentNode); + + if (dest) { + linkService.goToDestination(dest); + } + + return false; + }; + } + + _setStyles(element, { + bold, + italic + }) { + if (bold) { + element.style.fontWeight = "bold"; + } + + if (italic) { + element.style.fontStyle = "italic"; + } + } + + _addToggleButton(div, { + count, + items + }) { + let hidden = false; + + if (count < 0) { + let totalCount = items.length; + + if (totalCount > 0) { + const queue = [...items]; + + while (queue.length > 0) { + const { + count: nestedCount, + items: nestedItems + } = queue.shift(); + + if (nestedCount > 0 && nestedItems.length > 0) { + totalCount += nestedItems.length; + queue.push(...nestedItems); + } + } + } + + if (Math.abs(count) === totalCount) { + hidden = true; + } + } + + super._addToggleButton(div, hidden); + } + + _toggleAllTreeItems() { + if (!this._outline) { + return; + } + + super._toggleAllTreeItems(); + } + + render({ + outline, + pdfDocument + }) { + if (this._outline) { + this.reset(); + } + + this._outline = outline || null; + this._pdfDocument = pdfDocument || null; + + if (!outline) { + this._dispatchEvent(0); + + return; + } + + const fragment = document.createDocumentFragment(); + const queue = [{ + parent: fragment, + items: outline + }]; + let outlineCount = 0, + hasAnyNesting = false; + + while (queue.length > 0) { + const levelData = queue.shift(); + + for (const item of levelData.items) { + const div = document.createElement("div"); + div.className = "treeItem"; + const element = document.createElement("a"); + + this._bindLink(element, item); + + this._setStyles(element, item); + + element.textContent = this._normalizeTextContent(item.title); + div.append(element); + + if (item.items.length > 0) { + hasAnyNesting = true; + + this._addToggleButton(div, item); + + const itemsDiv = document.createElement("div"); + itemsDiv.className = "treeItems"; + div.append(itemsDiv); + queue.push({ + parent: itemsDiv, + items: item.items + }); + } + + levelData.parent.append(div); + outlineCount++; + } + } + + this._finishRendering(fragment, outlineCount, hasAnyNesting); + } + + async _currentOutlineItem() { + if (!this._isPagesLoaded) { + throw new Error("_currentOutlineItem: All pages have not been loaded."); + } + + if (!this._outline || !this._pdfDocument) { + return; + } + + const pageNumberToDestHash = await this._getPageNumberToDestHash(this._pdfDocument); + + if (!pageNumberToDestHash) { + return; + } + + this._updateCurrentTreeItem(null); + + if (this._sidebarView !== _ui_utils.SidebarView.OUTLINE) { + return; + } + + for (let i = this._currentPageNumber; i > 0; i--) { + const destHash = pageNumberToDestHash.get(i); + + if (!destHash) { + continue; + } + + const linkElement = this.container.querySelector(`a[href="${destHash}"]`); + + if (!linkElement) { + continue; + } + + this._scrollToCurrentTreeItem(linkElement.parentNode); + + break; + } + } + + async _getPageNumberToDestHash(pdfDocument) { + if (this._pageNumberToDestHashCapability) { + return this._pageNumberToDestHashCapability.promise; + } + + this._pageNumberToDestHashCapability = (0, _pdfjsLib.createPromiseCapability)(); + const pageNumberToDestHash = new Map(), + pageNumberNesting = new Map(); + const queue = [{ + nesting: 0, + items: this._outline + }]; + + while (queue.length > 0) { + const levelData = queue.shift(), + currentNesting = levelData.nesting; + + for (const { + dest, + items + } of levelData.items) { + let explicitDest, pageNumber; + + if (typeof dest === "string") { + explicitDest = await pdfDocument.getDestination(dest); + + if (pdfDocument !== this._pdfDocument) { + return null; + } + } else { + explicitDest = dest; + } + + if (Array.isArray(explicitDest)) { + const [destRef] = explicitDest; + + if (typeof destRef === "object" && destRef !== null) { + pageNumber = this.linkService._cachedPageNumber(destRef); + + if (!pageNumber) { + try { + pageNumber = (await pdfDocument.getPageIndex(destRef)) + 1; + + if (pdfDocument !== this._pdfDocument) { + return null; + } + + this.linkService.cachePageRef(pageNumber, destRef); + } catch (ex) {} + } + } else if (Number.isInteger(destRef)) { + pageNumber = destRef + 1; + } + + if (Number.isInteger(pageNumber) && (!pageNumberToDestHash.has(pageNumber) || currentNesting > pageNumberNesting.get(pageNumber))) { + const destHash = this.linkService.getDestinationHash(dest); + pageNumberToDestHash.set(pageNumber, destHash); + pageNumberNesting.set(pageNumber, currentNesting); + } + } + + if (items.length > 0) { + queue.push({ + nesting: currentNesting + 1, + items + }); + } + } + } + + this._pageNumberToDestHashCapability.resolve(pageNumberToDestHash.size > 0 ? pageNumberToDestHash : null); + + return this._pageNumberToDestHashCapability.promise; + } + +} + +exports.PDFOutlineViewer = PDFOutlineViewer; + +/***/ }), +/* 21 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFPresentationMode = void 0; + +var _ui_utils = __webpack_require__(1); + +var _pdfjsLib = __webpack_require__(5); + +const DELAY_BEFORE_HIDING_CONTROLS = 3000; +const ACTIVE_SELECTOR = "pdfPresentationMode"; +const CONTROLS_SELECTOR = "pdfPresentationModeControls"; +const MOUSE_SCROLL_COOLDOWN_TIME = 50; +const PAGE_SWITCH_THRESHOLD = 0.1; +const SWIPE_MIN_DISTANCE_THRESHOLD = 50; +const SWIPE_ANGLE_THRESHOLD = Math.PI / 6; + +class PDFPresentationMode { + #state = _ui_utils.PresentationModeState.UNKNOWN; + #args = null; + + constructor({ + container, + pdfViewer, + eventBus + }) { + this.container = container; + this.pdfViewer = pdfViewer; + this.eventBus = eventBus; + this.contextMenuOpen = false; + this.mouseScrollTimeStamp = 0; + this.mouseScrollDelta = 0; + this.touchSwipeState = null; + } + + async request() { + const { + container, + pdfViewer + } = this; + + if (this.active || !pdfViewer.pagesCount || !container.requestFullscreen) { + return false; + } + + this.#addFullscreenChangeListeners(); + this.#notifyStateChange(_ui_utils.PresentationModeState.CHANGING); + const promise = container.requestFullscreen(); + this.#args = { + pageNumber: pdfViewer.currentPageNumber, + scaleValue: pdfViewer.currentScaleValue, + scrollMode: pdfViewer.scrollMode, + spreadMode: null, + annotationEditorMode: null + }; + + if (pdfViewer.spreadMode !== _ui_utils.SpreadMode.NONE && !(pdfViewer.pageViewsReady && pdfViewer.hasEqualPageSizes)) { + console.warn("Ignoring Spread modes when entering PresentationMode, " + "since the document may contain varying page sizes."); + this.#args.spreadMode = pdfViewer.spreadMode; + } + + if (pdfViewer.annotationEditorMode !== _pdfjsLib.AnnotationEditorType.DISABLE) { + this.#args.annotationEditorMode = pdfViewer.annotationEditorMode; + } + + try { + await promise; + pdfViewer.focus(); + return true; + } catch (reason) { + this.#removeFullscreenChangeListeners(); + this.#notifyStateChange(_ui_utils.PresentationModeState.NORMAL); + } + + return false; + } + + get active() { + return this.#state === _ui_utils.PresentationModeState.CHANGING || this.#state === _ui_utils.PresentationModeState.FULLSCREEN; + } + + #mouseWheel(evt) { + if (!this.active) { + return; + } + + evt.preventDefault(); + const delta = (0, _ui_utils.normalizeWheelEventDelta)(evt); + const currentTime = Date.now(); + const storedTime = this.mouseScrollTimeStamp; + + if (currentTime > storedTime && currentTime - storedTime < MOUSE_SCROLL_COOLDOWN_TIME) { + return; + } + + if (this.mouseScrollDelta > 0 && delta < 0 || this.mouseScrollDelta < 0 && delta > 0) { + this.#resetMouseScrollState(); + } + + this.mouseScrollDelta += delta; + + if (Math.abs(this.mouseScrollDelta) >= PAGE_SWITCH_THRESHOLD) { + const totalDelta = this.mouseScrollDelta; + this.#resetMouseScrollState(); + const success = totalDelta > 0 ? this.pdfViewer.previousPage() : this.pdfViewer.nextPage(); + + if (success) { + this.mouseScrollTimeStamp = currentTime; + } + } + } + + #notifyStateChange(state) { + this.#state = state; + this.eventBus.dispatch("presentationmodechanged", { + source: this, + state + }); + } + + #enter() { + this.#notifyStateChange(_ui_utils.PresentationModeState.FULLSCREEN); + this.container.classList.add(ACTIVE_SELECTOR); + setTimeout(() => { + this.pdfViewer.scrollMode = _ui_utils.ScrollMode.PAGE; + + if (this.#args.spreadMode !== null) { + this.pdfViewer.spreadMode = _ui_utils.SpreadMode.NONE; + } + + this.pdfViewer.currentPageNumber = this.#args.pageNumber; + this.pdfViewer.currentScaleValue = "page-fit"; + + if (this.#args.annotationEditorMode !== null) { + this.pdfViewer.annotationEditorMode = _pdfjsLib.AnnotationEditorType.NONE; + } + }, 0); + this.#addWindowListeners(); + this.#showControls(); + this.contextMenuOpen = false; + window.getSelection().removeAllRanges(); + } + + #exit() { + const pageNumber = this.pdfViewer.currentPageNumber; + this.container.classList.remove(ACTIVE_SELECTOR); + setTimeout(() => { + this.#removeFullscreenChangeListeners(); + this.#notifyStateChange(_ui_utils.PresentationModeState.NORMAL); + this.pdfViewer.scrollMode = this.#args.scrollMode; + + if (this.#args.spreadMode !== null) { + this.pdfViewer.spreadMode = this.#args.spreadMode; + } + + this.pdfViewer.currentScaleValue = this.#args.scaleValue; + this.pdfViewer.currentPageNumber = pageNumber; + + if (this.#args.annotationEditorMode !== null) { + this.pdfViewer.annotationEditorMode = this.#args.annotationEditorMode; + } + + this.#args = null; + }, 0); + this.#removeWindowListeners(); + this.#hideControls(); + this.#resetMouseScrollState(); + this.contextMenuOpen = false; + } + + #mouseDown(evt) { + if (this.contextMenuOpen) { + this.contextMenuOpen = false; + evt.preventDefault(); + return; + } + + if (evt.button === 0) { + const isInternalLink = evt.target.href && evt.target.classList.contains("internalLink"); + + if (!isInternalLink) { + evt.preventDefault(); + + if (evt.shiftKey) { + this.pdfViewer.previousPage(); + } else { + this.pdfViewer.nextPage(); + } + } + } + } + + #contextMenu() { + this.contextMenuOpen = true; + } + + #showControls() { + if (this.controlsTimeout) { + clearTimeout(this.controlsTimeout); + } else { + this.container.classList.add(CONTROLS_SELECTOR); + } + + this.controlsTimeout = setTimeout(() => { + this.container.classList.remove(CONTROLS_SELECTOR); + delete this.controlsTimeout; + }, DELAY_BEFORE_HIDING_CONTROLS); + } + + #hideControls() { + if (!this.controlsTimeout) { + return; + } + + clearTimeout(this.controlsTimeout); + this.container.classList.remove(CONTROLS_SELECTOR); + delete this.controlsTimeout; + } + + #resetMouseScrollState() { + this.mouseScrollTimeStamp = 0; + this.mouseScrollDelta = 0; + } + + #touchSwipe(evt) { + if (!this.active) { + return; + } + + if (evt.touches.length > 1) { + this.touchSwipeState = null; + return; + } + + switch (evt.type) { + case "touchstart": + this.touchSwipeState = { + startX: evt.touches[0].pageX, + startY: evt.touches[0].pageY, + endX: evt.touches[0].pageX, + endY: evt.touches[0].pageY + }; + break; + + case "touchmove": + if (this.touchSwipeState === null) { + return; + } + + this.touchSwipeState.endX = evt.touches[0].pageX; + this.touchSwipeState.endY = evt.touches[0].pageY; + evt.preventDefault(); + break; + + case "touchend": + if (this.touchSwipeState === null) { + return; + } + + let delta = 0; + const dx = this.touchSwipeState.endX - this.touchSwipeState.startX; + const dy = this.touchSwipeState.endY - this.touchSwipeState.startY; + const absAngle = Math.abs(Math.atan2(dy, dx)); + + if (Math.abs(dx) > SWIPE_MIN_DISTANCE_THRESHOLD && (absAngle <= SWIPE_ANGLE_THRESHOLD || absAngle >= Math.PI - SWIPE_ANGLE_THRESHOLD)) { + delta = dx; + } else if (Math.abs(dy) > SWIPE_MIN_DISTANCE_THRESHOLD && Math.abs(absAngle - Math.PI / 2) <= SWIPE_ANGLE_THRESHOLD) { + delta = dy; + } + + if (delta > 0) { + this.pdfViewer.previousPage(); + } else if (delta < 0) { + this.pdfViewer.nextPage(); + } + + break; + } + } + + #addWindowListeners() { + this.showControlsBind = this.#showControls.bind(this); + this.mouseDownBind = this.#mouseDown.bind(this); + this.mouseWheelBind = this.#mouseWheel.bind(this); + this.resetMouseScrollStateBind = this.#resetMouseScrollState.bind(this); + this.contextMenuBind = this.#contextMenu.bind(this); + this.touchSwipeBind = this.#touchSwipe.bind(this); + window.addEventListener("mousemove", this.showControlsBind); + window.addEventListener("mousedown", this.mouseDownBind); + window.addEventListener("wheel", this.mouseWheelBind, { + passive: false + }); + window.addEventListener("keydown", this.resetMouseScrollStateBind); + window.addEventListener("contextmenu", this.contextMenuBind); + window.addEventListener("touchstart", this.touchSwipeBind); + window.addEventListener("touchmove", this.touchSwipeBind); + window.addEventListener("touchend", this.touchSwipeBind); + } + + #removeWindowListeners() { + window.removeEventListener("mousemove", this.showControlsBind); + window.removeEventListener("mousedown", this.mouseDownBind); + window.removeEventListener("wheel", this.mouseWheelBind, { + passive: false + }); + window.removeEventListener("keydown", this.resetMouseScrollStateBind); + window.removeEventListener("contextmenu", this.contextMenuBind); + window.removeEventListener("touchstart", this.touchSwipeBind); + window.removeEventListener("touchmove", this.touchSwipeBind); + window.removeEventListener("touchend", this.touchSwipeBind); + delete this.showControlsBind; + delete this.mouseDownBind; + delete this.mouseWheelBind; + delete this.resetMouseScrollStateBind; + delete this.contextMenuBind; + delete this.touchSwipeBind; + } + + #fullscreenChange() { + if (document.fullscreenElement) { + this.#enter(); + } else { + this.#exit(); + } + } + + #addFullscreenChangeListeners() { + this.fullscreenChangeBind = this.#fullscreenChange.bind(this); + window.addEventListener("fullscreenchange", this.fullscreenChangeBind); + } + + #removeFullscreenChangeListeners() { + window.removeEventListener("fullscreenchange", this.fullscreenChangeBind); + delete this.fullscreenChangeBind; + } + +} + +exports.PDFPresentationMode = PDFPresentationMode; + +/***/ }), +/* 22 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFRenderingQueue = void 0; + +var _pdfjsLib = __webpack_require__(5); + +var _ui_utils = __webpack_require__(1); + +const CLEANUP_TIMEOUT = 30000; + +class PDFRenderingQueue { + constructor() { + this.pdfViewer = null; + this.pdfThumbnailViewer = null; + this.onIdle = null; + this.highestPriorityPage = null; + this.idleTimeout = null; + this.printing = false; + this.isThumbnailViewEnabled = false; + } + + setViewer(pdfViewer) { + this.pdfViewer = pdfViewer; + } + + setThumbnailViewer(pdfThumbnailViewer) { + this.pdfThumbnailViewer = pdfThumbnailViewer; + } + + isHighestPriority(view) { + return this.highestPriorityPage === view.renderingId; + } + + hasViewer() { + return !!this.pdfViewer; + } + + renderHighestPriority(currentlyVisiblePages) { + if (this.idleTimeout) { + clearTimeout(this.idleTimeout); + this.idleTimeout = null; + } + + if (this.pdfViewer.forceRendering(currentlyVisiblePages)) { + return; + } + + if (this.isThumbnailViewEnabled && this.pdfThumbnailViewer?.forceRendering()) { + return; + } + + if (this.printing) { + return; + } + + if (this.onIdle) { + this.idleTimeout = setTimeout(this.onIdle.bind(this), CLEANUP_TIMEOUT); + } + } + + getHighestPriority(visible, views, scrolledDown, preRenderExtra = false) { + const visibleViews = visible.views, + numVisible = visibleViews.length; + + if (numVisible === 0) { + return null; + } + + for (let i = 0; i < numVisible; i++) { + const view = visibleViews[i].view; + + if (!this.isViewFinished(view)) { + return view; + } + } + + const firstId = visible.first.id, + lastId = visible.last.id; + + if (lastId - firstId + 1 > numVisible) { + const visibleIds = visible.ids; + + for (let i = 1, ii = lastId - firstId; i < ii; i++) { + const holeId = scrolledDown ? firstId + i : lastId - i; + + if (visibleIds.has(holeId)) { + continue; + } + + const holeView = views[holeId - 1]; + + if (!this.isViewFinished(holeView)) { + return holeView; + } + } + } + + let preRenderIndex = scrolledDown ? lastId : firstId - 2; + let preRenderView = views[preRenderIndex]; + + if (preRenderView && !this.isViewFinished(preRenderView)) { + return preRenderView; + } + + if (preRenderExtra) { + preRenderIndex += scrolledDown ? 1 : -1; + preRenderView = views[preRenderIndex]; + + if (preRenderView && !this.isViewFinished(preRenderView)) { + return preRenderView; + } + } + + return null; + } + + isViewFinished(view) { + return view.renderingState === _ui_utils.RenderingStates.FINISHED; + } + + renderView(view) { + switch (view.renderingState) { + case _ui_utils.RenderingStates.FINISHED: + return false; + + case _ui_utils.RenderingStates.PAUSED: + this.highestPriorityPage = view.renderingId; + view.resume(); + break; + + case _ui_utils.RenderingStates.RUNNING: + this.highestPriorityPage = view.renderingId; + break; + + case _ui_utils.RenderingStates.INITIAL: + this.highestPriorityPage = view.renderingId; + view.draw().finally(() => { + this.renderHighestPriority(); + }).catch(reason => { + if (reason instanceof _pdfjsLib.RenderingCancelledException) { + return; + } + + console.error(`renderView: "${reason}"`); + }); + break; + } + + return true; + } + +} + +exports.PDFRenderingQueue = PDFRenderingQueue; + +/***/ }), +/* 23 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFScriptingManager = void 0; + +var _ui_utils = __webpack_require__(1); + +var _pdfjsLib = __webpack_require__(5); + +class PDFScriptingManager { + constructor({ + eventBus, + sandboxBundleSrc = null, + scriptingFactory = null, + docPropertiesLookup = null + }) { + this._pdfDocument = null; + this._pdfViewer = null; + this._closeCapability = null; + this._destroyCapability = null; + this._scripting = null; + this._mouseState = Object.create(null); + this._ready = false; + this._eventBus = eventBus; + this._sandboxBundleSrc = sandboxBundleSrc; + this._scriptingFactory = scriptingFactory; + this._docPropertiesLookup = docPropertiesLookup; + } + + setViewer(pdfViewer) { + this._pdfViewer = pdfViewer; + } + + async setDocument(pdfDocument) { + if (this._pdfDocument) { + await this._destroyScripting(); + } + + this._pdfDocument = pdfDocument; + + if (!pdfDocument) { + return; + } + + const [objects, calculationOrder, docActions] = await Promise.all([pdfDocument.getFieldObjects(), pdfDocument.getCalculationOrderIds(), pdfDocument.getJSActions()]); + + if (!objects && !docActions) { + await this._destroyScripting(); + return; + } + + if (pdfDocument !== this._pdfDocument) { + return; + } + + try { + this._scripting = this._createScripting(); + } catch (error) { + console.error(`PDFScriptingManager.setDocument: "${error?.message}".`); + await this._destroyScripting(); + return; + } + + this._internalEvents.set("updatefromsandbox", event => { + if (event?.source !== window) { + return; + } + + this._updateFromSandbox(event.detail); + }); + + this._internalEvents.set("dispatcheventinsandbox", event => { + this._scripting?.dispatchEventInSandbox(event.detail); + }); + + this._internalEvents.set("pagechanging", ({ + pageNumber, + previous + }) => { + if (pageNumber === previous) { + return; + } + + this._dispatchPageClose(previous); + + this._dispatchPageOpen(pageNumber); + }); + + this._internalEvents.set("pagerendered", ({ + pageNumber + }) => { + if (!this._pageOpenPending.has(pageNumber)) { + return; + } + + if (pageNumber !== this._pdfViewer.currentPageNumber) { + return; + } + + this._dispatchPageOpen(pageNumber); + }); + + this._internalEvents.set("pagesdestroy", async event => { + await this._dispatchPageClose(this._pdfViewer.currentPageNumber); + await this._scripting?.dispatchEventInSandbox({ + id: "doc", + name: "WillClose" + }); + this._closeCapability?.resolve(); + }); + + this._domEvents.set("mousedown", event => { + this._mouseState.isDown = true; + }); + + this._domEvents.set("mouseup", event => { + this._mouseState.isDown = false; + }); + + for (const [name, listener] of this._internalEvents) { + this._eventBus._on(name, listener); + } + + for (const [name, listener] of this._domEvents) { + window.addEventListener(name, listener, true); + } + + try { + const docProperties = await this._getDocProperties(); + + if (pdfDocument !== this._pdfDocument) { + return; + } + + await this._scripting.createSandbox({ + objects, + calculationOrder, + appInfo: { + platform: navigator.platform, + language: navigator.language + }, + docInfo: { ...docProperties, + actions: docActions + } + }); + + this._eventBus.dispatch("sandboxcreated", { + source: this + }); + } catch (error) { + console.error(`PDFScriptingManager.setDocument: "${error?.message}".`); + await this._destroyScripting(); + return; + } + + await this._scripting?.dispatchEventInSandbox({ + id: "doc", + name: "Open" + }); + await this._dispatchPageOpen(this._pdfViewer.currentPageNumber, true); + Promise.resolve().then(() => { + if (pdfDocument === this._pdfDocument) { + this._ready = true; + } + }); + } + + async dispatchWillSave(detail) { + return this._scripting?.dispatchEventInSandbox({ + id: "doc", + name: "WillSave" + }); + } + + async dispatchDidSave(detail) { + return this._scripting?.dispatchEventInSandbox({ + id: "doc", + name: "DidSave" + }); + } + + async dispatchWillPrint(detail) { + return this._scripting?.dispatchEventInSandbox({ + id: "doc", + name: "WillPrint" + }); + } + + async dispatchDidPrint(detail) { + return this._scripting?.dispatchEventInSandbox({ + id: "doc", + name: "DidPrint" + }); + } + + get mouseState() { + return this._mouseState; + } + + get destroyPromise() { + return this._destroyCapability?.promise || null; + } + + get ready() { + return this._ready; + } + + get _internalEvents() { + return (0, _pdfjsLib.shadow)(this, "_internalEvents", new Map()); + } + + get _domEvents() { + return (0, _pdfjsLib.shadow)(this, "_domEvents", new Map()); + } + + get _pageOpenPending() { + return (0, _pdfjsLib.shadow)(this, "_pageOpenPending", new Set()); + } + + get _visitedPages() { + return (0, _pdfjsLib.shadow)(this, "_visitedPages", new Map()); + } + + async _updateFromSandbox(detail) { + const isInPresentationMode = this._pdfViewer.isInPresentationMode || this._pdfViewer.isChangingPresentationMode; + const { + id, + siblings, + command, + value + } = detail; + + if (!id) { + switch (command) { + case "clear": + console.clear(); + break; + + case "error": + console.error(value); + break; + + case "layout": + if (isInPresentationMode) { + return; + } + + const modes = (0, _ui_utils.apiPageLayoutToViewerModes)(value); + this._pdfViewer.spreadMode = modes.spreadMode; + break; + + case "page-num": + this._pdfViewer.currentPageNumber = value + 1; + break; + + case "print": + await this._pdfViewer.pagesPromise; + + this._eventBus.dispatch("print", { + source: this + }); + + break; + + case "println": + console.log(value); + break; + + case "zoom": + if (isInPresentationMode) { + return; + } + + this._pdfViewer.currentScaleValue = value; + break; + + case "SaveAs": + this._eventBus.dispatch("download", { + source: this + }); + + break; + + case "FirstPage": + this._pdfViewer.currentPageNumber = 1; + break; + + case "LastPage": + this._pdfViewer.currentPageNumber = this._pdfViewer.pagesCount; + break; + + case "NextPage": + this._pdfViewer.nextPage(); + + break; + + case "PrevPage": + this._pdfViewer.previousPage(); + + break; + + case "ZoomViewIn": + if (isInPresentationMode) { + return; + } + + this._pdfViewer.increaseScale(); + + break; + + case "ZoomViewOut": + if (isInPresentationMode) { + return; + } + + this._pdfViewer.decreaseScale(); + + break; + } + + return; + } + + if (isInPresentationMode) { + if (detail.focus) { + return; + } + } + + delete detail.id; + delete detail.siblings; + const ids = siblings ? [id, ...siblings] : [id]; + + for (const elementId of ids) { + const element = document.querySelector(`[data-element-id="${elementId}"]`); + + if (element) { + element.dispatchEvent(new CustomEvent("updatefromsandbox", { + detail + })); + } else { + this._pdfDocument?.annotationStorage.setValue(elementId, detail); + } + } + } + + async _dispatchPageOpen(pageNumber, initialize = false) { + const pdfDocument = this._pdfDocument, + visitedPages = this._visitedPages; + + if (initialize) { + this._closeCapability = (0, _pdfjsLib.createPromiseCapability)(); + } + + if (!this._closeCapability) { + return; + } + + const pageView = this._pdfViewer.getPageView(pageNumber - 1); + + if (pageView?.renderingState !== _ui_utils.RenderingStates.FINISHED) { + this._pageOpenPending.add(pageNumber); + + return; + } + + this._pageOpenPending.delete(pageNumber); + + const actionsPromise = (async () => { + const actions = await (!visitedPages.has(pageNumber) ? pageView.pdfPage?.getJSActions() : null); + + if (pdfDocument !== this._pdfDocument) { + return; + } + + await this._scripting?.dispatchEventInSandbox({ + id: "page", + name: "PageOpen", + pageNumber, + actions + }); + })(); + + visitedPages.set(pageNumber, actionsPromise); + } + + async _dispatchPageClose(pageNumber) { + const pdfDocument = this._pdfDocument, + visitedPages = this._visitedPages; + + if (!this._closeCapability) { + return; + } + + if (this._pageOpenPending.has(pageNumber)) { + return; + } + + const actionsPromise = visitedPages.get(pageNumber); + + if (!actionsPromise) { + return; + } + + visitedPages.set(pageNumber, null); + await actionsPromise; + + if (pdfDocument !== this._pdfDocument) { + return; + } + + await this._scripting?.dispatchEventInSandbox({ + id: "page", + name: "PageClose", + pageNumber + }); + } + + async _getDocProperties() { + if (this._docPropertiesLookup) { + return this._docPropertiesLookup(this._pdfDocument); + } + + throw new Error("_getDocProperties: Unable to lookup properties."); + } + + _createScripting() { + this._destroyCapability = (0, _pdfjsLib.createPromiseCapability)(); + + if (this._scripting) { + throw new Error("_createScripting: Scripting already exists."); + } + + if (this._scriptingFactory) { + return this._scriptingFactory.createScripting({ + sandboxBundleSrc: this._sandboxBundleSrc + }); + } + + throw new Error("_createScripting: Cannot create scripting."); + } + + async _destroyScripting() { + if (!this._scripting) { + this._pdfDocument = null; + this._destroyCapability?.resolve(); + return; + } + + if (this._closeCapability) { + await Promise.race([this._closeCapability.promise, new Promise(resolve => { + setTimeout(resolve, 1000); + })]).catch(reason => {}); + this._closeCapability = null; + } + + this._pdfDocument = null; + + try { + await this._scripting.destroySandbox(); + } catch (ex) {} + + for (const [name, listener] of this._internalEvents) { + this._eventBus._off(name, listener); + } + + this._internalEvents.clear(); + + for (const [name, listener] of this._domEvents) { + window.removeEventListener(name, listener, true); + } + + this._domEvents.clear(); + + this._pageOpenPending.clear(); + + this._visitedPages.clear(); + + this._scripting = null; + delete this._mouseState.isDown; + this._ready = false; + this._destroyCapability?.resolve(); + } + +} + +exports.PDFScriptingManager = PDFScriptingManager; + +/***/ }), +/* 24 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFSidebar = void 0; + +var _ui_utils = __webpack_require__(1); + +const UI_NOTIFICATION_CLASS = "pdfSidebarNotification"; + +class PDFSidebar { + constructor({ + elements, + pdfViewer, + pdfThumbnailViewer, + eventBus, + l10n + }) { + this.isOpen = false; + this.active = _ui_utils.SidebarView.THUMBS; + this.isInitialViewSet = false; + this.isInitialEventDispatched = false; + this.onToggled = null; + this.pdfViewer = pdfViewer; + this.pdfThumbnailViewer = pdfThumbnailViewer; + this.outerContainer = elements.outerContainer; + this.sidebarContainer = elements.sidebarContainer; + this.toggleButton = elements.toggleButton; + this.thumbnailButton = elements.thumbnailButton; + this.outlineButton = elements.outlineButton; + this.attachmentsButton = elements.attachmentsButton; + this.layersButton = elements.layersButton; + this.thumbnailView = elements.thumbnailView; + this.outlineView = elements.outlineView; + this.attachmentsView = elements.attachmentsView; + this.layersView = elements.layersView; + this._outlineOptionsContainer = elements.outlineOptionsContainer; + this._currentOutlineItemButton = elements.currentOutlineItemButton; + this.eventBus = eventBus; + this.l10n = l10n; + this.#addEventListeners(); + } + + reset() { + this.isInitialViewSet = false; + this.isInitialEventDispatched = false; + this.#hideUINotification(true); + this.switchView(_ui_utils.SidebarView.THUMBS); + this.outlineButton.disabled = false; + this.attachmentsButton.disabled = false; + this.layersButton.disabled = false; + this._currentOutlineItemButton.disabled = true; + } + + get visibleView() { + return this.isOpen ? this.active : _ui_utils.SidebarView.NONE; + } + + setInitialView(view = _ui_utils.SidebarView.NONE) { + if (this.isInitialViewSet) { + return; + } + + this.isInitialViewSet = true; + + if (view === _ui_utils.SidebarView.NONE || view === _ui_utils.SidebarView.UNKNOWN) { + this.#dispatchEvent(); + return; + } + + this.switchView(view, true); + + if (!this.isInitialEventDispatched) { + this.#dispatchEvent(); + } + } + + switchView(view, forceOpen = false) { + const isViewChanged = view !== this.active; + let shouldForceRendering = false; + + switch (view) { + case _ui_utils.SidebarView.NONE: + if (this.isOpen) { + this.close(); + } + + return; + + case _ui_utils.SidebarView.THUMBS: + if (this.isOpen && isViewChanged) { + shouldForceRendering = true; + } + + break; + + case _ui_utils.SidebarView.OUTLINE: + if (this.outlineButton.disabled) { + return; + } + + break; + + case _ui_utils.SidebarView.ATTACHMENTS: + if (this.attachmentsButton.disabled) { + return; + } + + break; + + case _ui_utils.SidebarView.LAYERS: + if (this.layersButton.disabled) { + return; + } + + break; + + default: + console.error(`PDFSidebar.switchView: "${view}" is not a valid view.`); + return; + } + + this.active = view; + const isThumbs = view === _ui_utils.SidebarView.THUMBS, + isOutline = view === _ui_utils.SidebarView.OUTLINE, + isAttachments = view === _ui_utils.SidebarView.ATTACHMENTS, + isLayers = view === _ui_utils.SidebarView.LAYERS; + this.thumbnailButton.classList.toggle("toggled", isThumbs); + this.outlineButton.classList.toggle("toggled", isOutline); + this.attachmentsButton.classList.toggle("toggled", isAttachments); + this.layersButton.classList.toggle("toggled", isLayers); + this.thumbnailButton.setAttribute("aria-checked", isThumbs); + this.outlineButton.setAttribute("aria-checked", isOutline); + this.attachmentsButton.setAttribute("aria-checked", isAttachments); + this.layersButton.setAttribute("aria-checked", isLayers); + this.thumbnailView.classList.toggle("hidden", !isThumbs); + this.outlineView.classList.toggle("hidden", !isOutline); + this.attachmentsView.classList.toggle("hidden", !isAttachments); + this.layersView.classList.toggle("hidden", !isLayers); + + this._outlineOptionsContainer.classList.toggle("hidden", !isOutline); + + if (forceOpen && !this.isOpen) { + this.open(); + return; + } + + if (shouldForceRendering) { + this.#updateThumbnailViewer(); + this.#forceRendering(); + } + + if (isViewChanged) { + this.#dispatchEvent(); + } + } + + open() { + if (this.isOpen) { + return; + } + + this.isOpen = true; + this.toggleButton.classList.add("toggled"); + this.toggleButton.setAttribute("aria-expanded", "true"); + this.outerContainer.classList.add("sidebarMoving", "sidebarOpen"); + + if (this.active === _ui_utils.SidebarView.THUMBS) { + this.#updateThumbnailViewer(); + } + + this.#forceRendering(); + this.#dispatchEvent(); + this.#hideUINotification(); + } + + close() { + if (!this.isOpen) { + return; + } + + this.isOpen = false; + this.toggleButton.classList.remove("toggled"); + this.toggleButton.setAttribute("aria-expanded", "false"); + this.outerContainer.classList.add("sidebarMoving"); + this.outerContainer.classList.remove("sidebarOpen"); + this.#forceRendering(); + this.#dispatchEvent(); + } + + toggle() { + if (this.isOpen) { + this.close(); + } else { + this.open(); + } + } + + #dispatchEvent() { + if (this.isInitialViewSet && !this.isInitialEventDispatched) { + this.isInitialEventDispatched = true; + } + + this.eventBus.dispatch("sidebarviewchanged", { + source: this, + view: this.visibleView + }); + } + + #forceRendering() { + if (this.onToggled) { + this.onToggled(); + } else { + this.pdfViewer.forceRendering(); + this.pdfThumbnailViewer.forceRendering(); + } + } + + #updateThumbnailViewer() { + const { + pdfViewer, + pdfThumbnailViewer + } = this; + const pagesCount = pdfViewer.pagesCount; + + for (let pageIndex = 0; pageIndex < pagesCount; pageIndex++) { + const pageView = pdfViewer.getPageView(pageIndex); + + if (pageView?.renderingState === _ui_utils.RenderingStates.FINISHED) { + const thumbnailView = pdfThumbnailViewer.getThumbnail(pageIndex); + thumbnailView.setImage(pageView); + } + } + + pdfThumbnailViewer.scrollThumbnailIntoView(pdfViewer.currentPageNumber); + } + + #showUINotification() { + this.l10n.get("toggle_sidebar_notification2.title").then(msg => { + this.toggleButton.title = msg; + }); + + if (!this.isOpen) { + this.toggleButton.classList.add(UI_NOTIFICATION_CLASS); + } + } + + #hideUINotification(reset = false) { + if (this.isOpen || reset) { + this.toggleButton.classList.remove(UI_NOTIFICATION_CLASS); + } + + if (reset) { + this.l10n.get("toggle_sidebar.title").then(msg => { + this.toggleButton.title = msg; + }); + } + } + + #addEventListeners() { + this.sidebarContainer.addEventListener("transitionend", evt => { + if (evt.target === this.sidebarContainer) { + this.outerContainer.classList.remove("sidebarMoving"); + } + }); + this.toggleButton.addEventListener("click", () => { + this.toggle(); + }); + this.thumbnailButton.addEventListener("click", () => { + this.switchView(_ui_utils.SidebarView.THUMBS); + }); + this.outlineButton.addEventListener("click", () => { + this.switchView(_ui_utils.SidebarView.OUTLINE); + }); + this.outlineButton.addEventListener("dblclick", () => { + this.eventBus.dispatch("toggleoutlinetree", { + source: this + }); + }); + this.attachmentsButton.addEventListener("click", () => { + this.switchView(_ui_utils.SidebarView.ATTACHMENTS); + }); + this.layersButton.addEventListener("click", () => { + this.switchView(_ui_utils.SidebarView.LAYERS); + }); + this.layersButton.addEventListener("dblclick", () => { + this.eventBus.dispatch("resetlayers", { + source: this + }); + }); + + this._currentOutlineItemButton.addEventListener("click", () => { + this.eventBus.dispatch("currentoutlineitem", { + source: this + }); + }); + + const onTreeLoaded = (count, button, view) => { + button.disabled = !count; + + if (count) { + this.#showUINotification(); + } else if (this.active === view) { + this.switchView(_ui_utils.SidebarView.THUMBS); + } + }; + + this.eventBus._on("outlineloaded", evt => { + onTreeLoaded(evt.outlineCount, this.outlineButton, _ui_utils.SidebarView.OUTLINE); + evt.currentOutlineItemPromise.then(enabled => { + if (!this.isInitialViewSet) { + return; + } + + this._currentOutlineItemButton.disabled = !enabled; + }); + }); + + this.eventBus._on("attachmentsloaded", evt => { + onTreeLoaded(evt.attachmentsCount, this.attachmentsButton, _ui_utils.SidebarView.ATTACHMENTS); + }); + + this.eventBus._on("layersloaded", evt => { + onTreeLoaded(evt.layersCount, this.layersButton, _ui_utils.SidebarView.LAYERS); + }); + + this.eventBus._on("presentationmodechanged", evt => { + if (evt.state === _ui_utils.PresentationModeState.NORMAL && this.visibleView === _ui_utils.SidebarView.THUMBS) { + this.#updateThumbnailViewer(); + } + }); + } + +} + +exports.PDFSidebar = PDFSidebar; + +/***/ }), +/* 25 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFSidebarResizer = void 0; + +var _ui_utils = __webpack_require__(1); + +const SIDEBAR_WIDTH_VAR = "--sidebar-width"; +const SIDEBAR_MIN_WIDTH = 200; +const SIDEBAR_RESIZING_CLASS = "sidebarResizing"; + +class PDFSidebarResizer { + constructor(options, eventBus, l10n) { + this.isRTL = false; + this.sidebarOpen = false; + this._width = null; + this._outerContainerWidth = null; + this._boundEvents = Object.create(null); + this.outerContainer = options.outerContainer; + this.resizer = options.resizer; + this.eventBus = eventBus; + l10n.getDirection().then(dir => { + this.isRTL = dir === "rtl"; + }); + + this._addEventListeners(); + } + + get outerContainerWidth() { + return this._outerContainerWidth ||= this.outerContainer.clientWidth; + } + + _updateWidth(width = 0) { + const maxWidth = Math.floor(this.outerContainerWidth / 2); + + if (width > maxWidth) { + width = maxWidth; + } + + if (width < SIDEBAR_MIN_WIDTH) { + width = SIDEBAR_MIN_WIDTH; + } + + if (width === this._width) { + return false; + } + + this._width = width; + + _ui_utils.docStyle.setProperty(SIDEBAR_WIDTH_VAR, `${width}px`); + + return true; + } + + _mouseMove(evt) { + let width = evt.clientX; + + if (this.isRTL) { + width = this.outerContainerWidth - width; + } + + this._updateWidth(width); + } + + _mouseUp(evt) { + this.outerContainer.classList.remove(SIDEBAR_RESIZING_CLASS); + this.eventBus.dispatch("resize", { + source: this + }); + const _boundEvents = this._boundEvents; + window.removeEventListener("mousemove", _boundEvents.mouseMove); + window.removeEventListener("mouseup", _boundEvents.mouseUp); + } + + _addEventListeners() { + const _boundEvents = this._boundEvents; + _boundEvents.mouseMove = this._mouseMove.bind(this); + _boundEvents.mouseUp = this._mouseUp.bind(this); + this.resizer.addEventListener("mousedown", evt => { + if (evt.button !== 0) { + return; + } + + this.outerContainer.classList.add(SIDEBAR_RESIZING_CLASS); + window.addEventListener("mousemove", _boundEvents.mouseMove); + window.addEventListener("mouseup", _boundEvents.mouseUp); + }); + + this.eventBus._on("sidebarviewchanged", evt => { + this.sidebarOpen = !!evt?.view; + }); + + this.eventBus._on("resize", evt => { + if (evt?.source !== window) { + return; + } + + this._outerContainerWidth = null; + + if (!this._width) { + return; + } + + if (!this.sidebarOpen) { + this._updateWidth(this._width); + + return; + } + + this.outerContainer.classList.add(SIDEBAR_RESIZING_CLASS); + + const updated = this._updateWidth(this._width); + + Promise.resolve().then(() => { + this.outerContainer.classList.remove(SIDEBAR_RESIZING_CLASS); + + if (updated) { + this.eventBus.dispatch("resize", { + source: this + }); + } + }); + }); + } + +} + +exports.PDFSidebarResizer = PDFSidebarResizer; + +/***/ }), +/* 26 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFThumbnailViewer = void 0; + +var _ui_utils = __webpack_require__(1); + +var _pdf_thumbnail_view = __webpack_require__(27); + +const THUMBNAIL_SCROLL_MARGIN = -19; +const THUMBNAIL_SELECTED_CLASS = "selected"; + +class PDFThumbnailViewer { + constructor({ + container, + eventBus, + linkService, + renderingQueue, + l10n, + pageColors + }) { + this.container = container; + this.linkService = linkService; + this.renderingQueue = renderingQueue; + this.l10n = l10n; + this.pageColors = pageColors || null; + + if (this.pageColors && !(CSS.supports("color", this.pageColors.background) && CSS.supports("color", this.pageColors.foreground))) { + if (this.pageColors.background || this.pageColors.foreground) { + console.warn("PDFThumbnailViewer: Ignoring `pageColors`-option, since the browser doesn't support the values used."); + } + + this.pageColors = null; + } + + this.scroll = (0, _ui_utils.watchScroll)(this.container, this._scrollUpdated.bind(this)); + + this._resetView(); + } + + _scrollUpdated() { + this.renderingQueue.renderHighestPriority(); + } + + getThumbnail(index) { + return this._thumbnails[index]; + } + + _getVisibleThumbs() { + return (0, _ui_utils.getVisibleElements)({ + scrollEl: this.container, + views: this._thumbnails + }); + } + + scrollThumbnailIntoView(pageNumber) { + if (!this.pdfDocument) { + return; + } + + const thumbnailView = this._thumbnails[pageNumber - 1]; + + if (!thumbnailView) { + console.error('scrollThumbnailIntoView: Invalid "pageNumber" parameter.'); + return; + } + + if (pageNumber !== this._currentPageNumber) { + const prevThumbnailView = this._thumbnails[this._currentPageNumber - 1]; + prevThumbnailView.div.classList.remove(THUMBNAIL_SELECTED_CLASS); + thumbnailView.div.classList.add(THUMBNAIL_SELECTED_CLASS); + } + + const { + first, + last, + views + } = this._getVisibleThumbs(); + + if (views.length > 0) { + let shouldScroll = false; + + if (pageNumber <= first.id || pageNumber >= last.id) { + shouldScroll = true; + } else { + for (const { + id, + percent + } of views) { + if (id !== pageNumber) { + continue; + } + + shouldScroll = percent < 100; + break; + } + } + + if (shouldScroll) { + (0, _ui_utils.scrollIntoView)(thumbnailView.div, { + top: THUMBNAIL_SCROLL_MARGIN + }); + } + } + + this._currentPageNumber = pageNumber; + } + + get pagesRotation() { + return this._pagesRotation; + } + + set pagesRotation(rotation) { + if (!(0, _ui_utils.isValidRotation)(rotation)) { + throw new Error("Invalid thumbnails rotation angle."); + } + + if (!this.pdfDocument) { + return; + } + + if (this._pagesRotation === rotation) { + return; + } + + this._pagesRotation = rotation; + const updateArgs = { + rotation + }; + + for (const thumbnail of this._thumbnails) { + thumbnail.update(updateArgs); + } + } + + cleanup() { + for (const thumbnail of this._thumbnails) { + if (thumbnail.renderingState !== _ui_utils.RenderingStates.FINISHED) { + thumbnail.reset(); + } + } + + _pdf_thumbnail_view.TempImageFactory.destroyCanvas(); + } + + _resetView() { + this._thumbnails = []; + this._currentPageNumber = 1; + this._pageLabels = null; + this._pagesRotation = 0; + this.container.textContent = ""; + } + + setDocument(pdfDocument) { + if (this.pdfDocument) { + this._cancelRendering(); + + this._resetView(); + } + + this.pdfDocument = pdfDocument; + + if (!pdfDocument) { + return; + } + + const firstPagePromise = pdfDocument.getPage(1); + const optionalContentConfigPromise = pdfDocument.getOptionalContentConfig(); + firstPagePromise.then(firstPdfPage => { + const pagesCount = pdfDocument.numPages; + const viewport = firstPdfPage.getViewport({ + scale: 1 + }); + + for (let pageNum = 1; pageNum <= pagesCount; ++pageNum) { + const thumbnail = new _pdf_thumbnail_view.PDFThumbnailView({ + container: this.container, + id: pageNum, + defaultViewport: viewport.clone(), + optionalContentConfigPromise, + linkService: this.linkService, + renderingQueue: this.renderingQueue, + l10n: this.l10n, + pageColors: this.pageColors + }); + + this._thumbnails.push(thumbnail); + } + + const firstThumbnailView = this._thumbnails[0]; + + if (firstThumbnailView) { + firstThumbnailView.setPdfPage(firstPdfPage); + } + + const thumbnailView = this._thumbnails[this._currentPageNumber - 1]; + thumbnailView.div.classList.add(THUMBNAIL_SELECTED_CLASS); + }).catch(reason => { + console.error("Unable to initialize thumbnail viewer", reason); + }); + } + + _cancelRendering() { + for (const thumbnail of this._thumbnails) { + thumbnail.cancelRendering(); + } + } + + setPageLabels(labels) { + if (!this.pdfDocument) { + return; + } + + if (!labels) { + this._pageLabels = null; + } else if (!(Array.isArray(labels) && this.pdfDocument.numPages === labels.length)) { + this._pageLabels = null; + console.error("PDFThumbnailViewer_setPageLabels: Invalid page labels."); + } else { + this._pageLabels = labels; + } + + for (let i = 0, ii = this._thumbnails.length; i < ii; i++) { + this._thumbnails[i].setPageLabel(this._pageLabels?.[i] ?? null); + } + } + + async #ensurePdfPageLoaded(thumbView) { + if (thumbView.pdfPage) { + return thumbView.pdfPage; + } + + try { + const pdfPage = await this.pdfDocument.getPage(thumbView.id); + + if (!thumbView.pdfPage) { + thumbView.setPdfPage(pdfPage); + } + + return pdfPage; + } catch (reason) { + console.error("Unable to get page for thumb view", reason); + return null; + } + } + + #getScrollAhead(visible) { + if (visible.first?.id === 1) { + return true; + } else if (visible.last?.id === this._thumbnails.length) { + return false; + } + + return this.scroll.down; + } + + forceRendering() { + const visibleThumbs = this._getVisibleThumbs(); + + const scrollAhead = this.#getScrollAhead(visibleThumbs); + const thumbView = this.renderingQueue.getHighestPriority(visibleThumbs, this._thumbnails, scrollAhead); + + if (thumbView) { + this.#ensurePdfPageLoaded(thumbView).then(() => { + this.renderingQueue.renderView(thumbView); + }); + return true; + } + + return false; + } + +} + +exports.PDFThumbnailViewer = PDFThumbnailViewer; + +/***/ }), +/* 27 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.TempImageFactory = exports.PDFThumbnailView = void 0; + +var _ui_utils = __webpack_require__(1); + +var _pdfjsLib = __webpack_require__(5); + +const DRAW_UPSCALE_FACTOR = 2; +const MAX_NUM_SCALING_STEPS = 3; +const THUMBNAIL_CANVAS_BORDER_WIDTH = 1; +const THUMBNAIL_WIDTH = 98; + +class TempImageFactory { + static #tempCanvas = null; + + static getCanvas(width, height) { + const tempCanvas = this.#tempCanvas ||= document.createElement("canvas"); + tempCanvas.width = width; + tempCanvas.height = height; + const ctx = tempCanvas.getContext("2d", { + alpha: false + }); + ctx.save(); + ctx.fillStyle = "rgb(255, 255, 255)"; + ctx.fillRect(0, 0, width, height); + ctx.restore(); + return [tempCanvas, tempCanvas.getContext("2d")]; + } + + static destroyCanvas() { + const tempCanvas = this.#tempCanvas; + + if (tempCanvas) { + tempCanvas.width = 0; + tempCanvas.height = 0; + } + + this.#tempCanvas = null; + } + +} + +exports.TempImageFactory = TempImageFactory; + +class PDFThumbnailView { + constructor({ + container, + id, + defaultViewport, + optionalContentConfigPromise, + linkService, + renderingQueue, + l10n, + pageColors + }) { + this.id = id; + this.renderingId = "thumbnail" + id; + this.pageLabel = null; + this.pdfPage = null; + this.rotation = 0; + this.viewport = defaultViewport; + this.pdfPageRotate = defaultViewport.rotation; + this._optionalContentConfigPromise = optionalContentConfigPromise || null; + this.pageColors = pageColors || null; + this.linkService = linkService; + this.renderingQueue = renderingQueue; + this.renderTask = null; + this.renderingState = _ui_utils.RenderingStates.INITIAL; + this.resume = null; + const pageWidth = this.viewport.width, + pageHeight = this.viewport.height, + pageRatio = pageWidth / pageHeight; + this.canvasWidth = THUMBNAIL_WIDTH; + this.canvasHeight = this.canvasWidth / pageRatio | 0; + this.scale = this.canvasWidth / pageWidth; + this.l10n = l10n; + const anchor = document.createElement("a"); + anchor.href = linkService.getAnchorUrl("#page=" + id); + + this._thumbPageTitle.then(msg => { + anchor.title = msg; + }); + + anchor.onclick = function () { + linkService.goToPage(id); + return false; + }; + + this.anchor = anchor; + const div = document.createElement("div"); + div.className = "thumbnail"; + div.setAttribute("data-page-number", this.id); + this.div = div; + const ring = document.createElement("div"); + ring.className = "thumbnailSelectionRing"; + const borderAdjustment = 2 * THUMBNAIL_CANVAS_BORDER_WIDTH; + ring.style.width = this.canvasWidth + borderAdjustment + "px"; + ring.style.height = this.canvasHeight + borderAdjustment + "px"; + this.ring = ring; + div.append(ring); + anchor.append(div); + container.append(anchor); + } + + setPdfPage(pdfPage) { + this.pdfPage = pdfPage; + this.pdfPageRotate = pdfPage.rotate; + const totalRotation = (this.rotation + this.pdfPageRotate) % 360; + this.viewport = pdfPage.getViewport({ + scale: 1, + rotation: totalRotation + }); + this.reset(); + } + + reset() { + this.cancelRendering(); + this.renderingState = _ui_utils.RenderingStates.INITIAL; + const pageWidth = this.viewport.width, + pageHeight = this.viewport.height, + pageRatio = pageWidth / pageHeight; + this.canvasHeight = this.canvasWidth / pageRatio | 0; + this.scale = this.canvasWidth / pageWidth; + this.div.removeAttribute("data-loaded"); + const ring = this.ring; + ring.textContent = ""; + const borderAdjustment = 2 * THUMBNAIL_CANVAS_BORDER_WIDTH; + ring.style.width = this.canvasWidth + borderAdjustment + "px"; + ring.style.height = this.canvasHeight + borderAdjustment + "px"; + + if (this.canvas) { + this.canvas.width = 0; + this.canvas.height = 0; + delete this.canvas; + } + + if (this.image) { + this.image.removeAttribute("src"); + delete this.image; + } + } + + update({ + rotation = null + }) { + if (typeof rotation === "number") { + this.rotation = rotation; + } + + const totalRotation = (this.rotation + this.pdfPageRotate) % 360; + this.viewport = this.viewport.clone({ + scale: 1, + rotation: totalRotation + }); + this.reset(); + } + + cancelRendering() { + if (this.renderTask) { + this.renderTask.cancel(); + this.renderTask = null; + } + + this.resume = null; + } + + _getPageDrawContext(upscaleFactor = 1) { + const canvas = document.createElement("canvas"); + const ctx = canvas.getContext("2d", { + alpha: false + }); + const outputScale = new _ui_utils.OutputScale(); + canvas.width = upscaleFactor * this.canvasWidth * outputScale.sx | 0; + canvas.height = upscaleFactor * this.canvasHeight * outputScale.sy | 0; + const transform = outputScale.scaled ? [outputScale.sx, 0, 0, outputScale.sy, 0, 0] : null; + return { + ctx, + canvas, + transform + }; + } + + _convertCanvasToImage(canvas) { + if (this.renderingState !== _ui_utils.RenderingStates.FINISHED) { + throw new Error("_convertCanvasToImage: Rendering has not finished."); + } + + const reducedCanvas = this._reduceImage(canvas); + + const image = document.createElement("img"); + image.className = "thumbnailImage"; + + this._thumbPageCanvas.then(msg => { + image.setAttribute("aria-label", msg); + }); + + image.style.width = this.canvasWidth + "px"; + image.style.height = this.canvasHeight + "px"; + image.src = reducedCanvas.toDataURL(); + this.image = image; + this.div.setAttribute("data-loaded", true); + this.ring.append(image); + reducedCanvas.width = 0; + reducedCanvas.height = 0; + } + + draw() { + if (this.renderingState !== _ui_utils.RenderingStates.INITIAL) { + console.error("Must be in new state before drawing"); + return Promise.resolve(); + } + + const { + pdfPage + } = this; + + if (!pdfPage) { + this.renderingState = _ui_utils.RenderingStates.FINISHED; + return Promise.reject(new Error("pdfPage is not loaded")); + } + + this.renderingState = _ui_utils.RenderingStates.RUNNING; + + const finishRenderTask = async (error = null) => { + if (renderTask === this.renderTask) { + this.renderTask = null; + } + + if (error instanceof _pdfjsLib.RenderingCancelledException) { + return; + } + + this.renderingState = _ui_utils.RenderingStates.FINISHED; + + this._convertCanvasToImage(canvas); + + if (error) { + throw error; + } + }; + + const { + ctx, + canvas, + transform + } = this._getPageDrawContext(DRAW_UPSCALE_FACTOR); + + const drawViewport = this.viewport.clone({ + scale: DRAW_UPSCALE_FACTOR * this.scale + }); + + const renderContinueCallback = cont => { + if (!this.renderingQueue.isHighestPriority(this)) { + this.renderingState = _ui_utils.RenderingStates.PAUSED; + + this.resume = () => { + this.renderingState = _ui_utils.RenderingStates.RUNNING; + cont(); + }; + + return; + } + + cont(); + }; + + const renderContext = { + canvasContext: ctx, + transform, + viewport: drawViewport, + optionalContentConfigPromise: this._optionalContentConfigPromise, + pageColors: this.pageColors + }; + const renderTask = this.renderTask = pdfPage.render(renderContext); + renderTask.onContinue = renderContinueCallback; + const resultPromise = renderTask.promise.then(function () { + return finishRenderTask(null); + }, function (error) { + return finishRenderTask(error); + }); + resultPromise.finally(() => { + canvas.width = 0; + canvas.height = 0; + const pageCached = this.linkService.isPageCached(this.id); + + if (!pageCached) { + this.pdfPage?.cleanup(); + } + }); + return resultPromise; + } + + setImage(pageView) { + if (this.renderingState !== _ui_utils.RenderingStates.INITIAL) { + return; + } + + const { + thumbnailCanvas: canvas, + pdfPage, + scale + } = pageView; + + if (!canvas) { + return; + } + + if (!this.pdfPage) { + this.setPdfPage(pdfPage); + } + + if (scale < this.scale) { + return; + } + + this.renderingState = _ui_utils.RenderingStates.FINISHED; + + this._convertCanvasToImage(canvas); + } + + _reduceImage(img) { + const { + ctx, + canvas + } = this._getPageDrawContext(); + + if (img.width <= 2 * canvas.width) { + ctx.drawImage(img, 0, 0, img.width, img.height, 0, 0, canvas.width, canvas.height); + return canvas; + } + + let reducedWidth = canvas.width << MAX_NUM_SCALING_STEPS; + let reducedHeight = canvas.height << MAX_NUM_SCALING_STEPS; + const [reducedImage, reducedImageCtx] = TempImageFactory.getCanvas(reducedWidth, reducedHeight); + + while (reducedWidth > img.width || reducedHeight > img.height) { + reducedWidth >>= 1; + reducedHeight >>= 1; + } + + reducedImageCtx.drawImage(img, 0, 0, img.width, img.height, 0, 0, reducedWidth, reducedHeight); + + while (reducedWidth > 2 * canvas.width) { + reducedImageCtx.drawImage(reducedImage, 0, 0, reducedWidth, reducedHeight, 0, 0, reducedWidth >> 1, reducedHeight >> 1); + reducedWidth >>= 1; + reducedHeight >>= 1; + } + + ctx.drawImage(reducedImage, 0, 0, reducedWidth, reducedHeight, 0, 0, canvas.width, canvas.height); + return canvas; + } + + get _thumbPageTitle() { + return this.l10n.get("thumb_page_title", { + page: this.pageLabel ?? this.id + }); + } + + get _thumbPageCanvas() { + return this.l10n.get("thumb_page_canvas", { + page: this.pageLabel ?? this.id + }); + } + + setPageLabel(label) { + this.pageLabel = typeof label === "string" ? label : null; + + this._thumbPageTitle.then(msg => { + this.anchor.title = msg; + }); + + if (this.renderingState !== _ui_utils.RenderingStates.FINISHED) { + return; + } + + this._thumbPageCanvas.then(msg => { + this.image?.setAttribute("aria-label", msg); + }); + } + +} + +exports.PDFThumbnailView = PDFThumbnailView; + +/***/ }), +/* 28 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFViewer = exports.PDFSinglePageViewer = void 0; + +var _ui_utils = __webpack_require__(1); + +var _base_viewer = __webpack_require__(29); + +class PDFViewer extends _base_viewer.BaseViewer {} + +exports.PDFViewer = PDFViewer; + +class PDFSinglePageViewer extends _base_viewer.BaseViewer { + _resetView() { + super._resetView(); + + this._scrollMode = _ui_utils.ScrollMode.PAGE; + this._spreadMode = _ui_utils.SpreadMode.NONE; + } + + set scrollMode(mode) {} + + _updateScrollMode() {} + + set spreadMode(mode) {} + + _updateSpreadMode() {} + +} + +exports.PDFSinglePageViewer = PDFSinglePageViewer; + +/***/ }), +/* 29 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PagesCountLimit = exports.PDFPageViewBuffer = exports.BaseViewer = void 0; + +var _pdfjsLib = __webpack_require__(5); + +var _ui_utils = __webpack_require__(1); + +var _annotation_editor_layer_builder = __webpack_require__(30); + +var _annotation_layer_builder = __webpack_require__(32); + +var _l10n_utils = __webpack_require__(31); + +var _pdf_page_view = __webpack_require__(33); + +var _pdf_rendering_queue = __webpack_require__(22); + +var _pdf_link_service = __webpack_require__(3); + +var _struct_tree_layer_builder = __webpack_require__(35); + +var _text_highlighter = __webpack_require__(36); + +var _text_layer_builder = __webpack_require__(37); + +var _xfa_layer_builder = __webpack_require__(38); + +const DEFAULT_CACHE_SIZE = 10; +const ENABLE_PERMISSIONS_CLASS = "enablePermissions"; +const PagesCountLimit = { + FORCE_SCROLL_MODE_PAGE: 15000, + FORCE_LAZY_PAGE_INIT: 7500, + PAUSE_EAGER_PAGE_INIT: 250 +}; +exports.PagesCountLimit = PagesCountLimit; + +function isValidAnnotationEditorMode(mode) { + return Object.values(_pdfjsLib.AnnotationEditorType).includes(mode) && mode !== _pdfjsLib.AnnotationEditorType.DISABLE; +} + +class PDFPageViewBuffer { + #buf = new Set(); + #size = 0; + + constructor(size) { + this.#size = size; + } + + push(view) { + const buf = this.#buf; + + if (buf.has(view)) { + buf.delete(view); + } + + buf.add(view); + + if (buf.size > this.#size) { + this.#destroyFirstView(); + } + } + + resize(newSize, idsToKeep = null) { + this.#size = newSize; + const buf = this.#buf; + + if (idsToKeep) { + const ii = buf.size; + let i = 1; + + for (const view of buf) { + if (idsToKeep.has(view.id)) { + buf.delete(view); + buf.add(view); + } + + if (++i > ii) { + break; + } + } + } + + while (buf.size > this.#size) { + this.#destroyFirstView(); + } + } + + has(view) { + return this.#buf.has(view); + } + + [Symbol.iterator]() { + return this.#buf.keys(); + } + + #destroyFirstView() { + const firstView = this.#buf.keys().next().value; + firstView?.destroy(); + this.#buf.delete(firstView); + } + +} + +exports.PDFPageViewBuffer = PDFPageViewBuffer; + +class BaseViewer { + #buffer = null; + #annotationEditorMode = _pdfjsLib.AnnotationEditorType.DISABLE; + #annotationEditorUIManager = null; + #annotationMode = _pdfjsLib.AnnotationMode.ENABLE_FORMS; + #enablePermissions = false; + #previousContainerHeight = 0; + #scrollModePageState = null; + #onVisibilityChange = null; + + constructor(options) { + if (this.constructor === BaseViewer) { + throw new Error("Cannot initialize BaseViewer."); + } + + const viewerVersion = '2.16.105'; + + if (_pdfjsLib.version !== viewerVersion) { + throw new Error(`The API version "${_pdfjsLib.version}" does not match the Viewer version "${viewerVersion}".`); + } + + this.container = options.container; + this.viewer = options.viewer || options.container.firstElementChild; + + if (!(this.container?.tagName.toUpperCase() === "DIV" && this.viewer?.tagName.toUpperCase() === "DIV")) { + throw new Error("Invalid `container` and/or `viewer` option."); + } + + if (this.container.offsetParent && getComputedStyle(this.container).position !== "absolute") { + throw new Error("The `container` must be absolutely positioned."); + } + + this.eventBus = options.eventBus; + this.linkService = options.linkService || new _pdf_link_service.SimpleLinkService(); + this.downloadManager = options.downloadManager || null; + this.findController = options.findController || null; + this._scriptingManager = options.scriptingManager || null; + this.removePageBorders = options.removePageBorders || false; + this.textLayerMode = options.textLayerMode ?? _ui_utils.TextLayerMode.ENABLE; + this.#annotationMode = options.annotationMode ?? _pdfjsLib.AnnotationMode.ENABLE_FORMS; + this.#annotationEditorMode = options.annotationEditorMode ?? _pdfjsLib.AnnotationEditorType.DISABLE; + this.imageResourcesPath = options.imageResourcesPath || ""; + this.enablePrintAutoRotate = options.enablePrintAutoRotate || false; + this.renderer = options.renderer || _ui_utils.RendererType.CANVAS; + this.useOnlyCssZoom = options.useOnlyCssZoom || false; + this.maxCanvasPixels = options.maxCanvasPixels; + this.l10n = options.l10n || _l10n_utils.NullL10n; + this.#enablePermissions = options.enablePermissions || false; + this.pageColors = options.pageColors || null; + + if (this.pageColors && !(CSS.supports("color", this.pageColors.background) && CSS.supports("color", this.pageColors.foreground))) { + if (this.pageColors.background || this.pageColors.foreground) { + console.warn("BaseViewer: Ignoring `pageColors`-option, since the browser doesn't support the values used."); + } + + this.pageColors = null; + } + + this.defaultRenderingQueue = !options.renderingQueue; + + if (this.defaultRenderingQueue) { + this.renderingQueue = new _pdf_rendering_queue.PDFRenderingQueue(); + this.renderingQueue.setViewer(this); + } else { + this.renderingQueue = options.renderingQueue; + } + + this.scroll = (0, _ui_utils.watchScroll)(this.container, this._scrollUpdate.bind(this)); + this.presentationModeState = _ui_utils.PresentationModeState.UNKNOWN; + this._onBeforeDraw = this._onAfterDraw = null; + + this._resetView(); + + if (this.removePageBorders) { + this.viewer.classList.add("removePageBorders"); + } + + this.updateContainerHeightCss(); + } + + get pagesCount() { + return this._pages.length; + } + + getPageView(index) { + return this._pages[index]; + } + + get pageViewsReady() { + if (!this._pagesCapability.settled) { + return false; + } + + return this._pages.every(function (pageView) { + return pageView?.pdfPage; + }); + } + + get renderForms() { + return this.#annotationMode === _pdfjsLib.AnnotationMode.ENABLE_FORMS; + } + + get enableScripting() { + return !!this._scriptingManager; + } + + get currentPageNumber() { + return this._currentPageNumber; + } + + set currentPageNumber(val) { + if (!Number.isInteger(val)) { + throw new Error("Invalid page number."); + } + + if (!this.pdfDocument) { + return; + } + + if (!this._setCurrentPageNumber(val, true)) { + console.error(`currentPageNumber: "${val}" is not a valid page.`); + } + } + + _setCurrentPageNumber(val, resetCurrentPageView = false) { + if (this._currentPageNumber === val) { + if (resetCurrentPageView) { + this.#resetCurrentPageView(); + } + + return true; + } + + if (!(0 < val && val <= this.pagesCount)) { + return false; + } + + const previous = this._currentPageNumber; + this._currentPageNumber = val; + this.eventBus.dispatch("pagechanging", { + source: this, + pageNumber: val, + pageLabel: this._pageLabels?.[val - 1] ?? null, + previous + }); + + if (resetCurrentPageView) { + this.#resetCurrentPageView(); + } + + return true; + } + + get currentPageLabel() { + return this._pageLabels?.[this._currentPageNumber - 1] ?? null; + } + + set currentPageLabel(val) { + if (!this.pdfDocument) { + return; + } + + let page = val | 0; + + if (this._pageLabels) { + const i = this._pageLabels.indexOf(val); + + if (i >= 0) { + page = i + 1; + } + } + + if (!this._setCurrentPageNumber(page, true)) { + console.error(`currentPageLabel: "${val}" is not a valid page.`); + } + } + + get currentScale() { + return this._currentScale !== _ui_utils.UNKNOWN_SCALE ? this._currentScale : _ui_utils.DEFAULT_SCALE; + } + + set currentScale(val) { + if (isNaN(val)) { + throw new Error("Invalid numeric scale."); + } + + if (!this.pdfDocument) { + return; + } + + this._setScale(val, false); + } + + get currentScaleValue() { + return this._currentScaleValue; + } + + set currentScaleValue(val) { + if (!this.pdfDocument) { + return; + } + + this._setScale(val, false); + } + + get pagesRotation() { + return this._pagesRotation; + } + + set pagesRotation(rotation) { + if (!(0, _ui_utils.isValidRotation)(rotation)) { + throw new Error("Invalid pages rotation angle."); + } + + if (!this.pdfDocument) { + return; + } + + rotation %= 360; + + if (rotation < 0) { + rotation += 360; + } + + if (this._pagesRotation === rotation) { + return; + } + + this._pagesRotation = rotation; + const pageNumber = this._currentPageNumber; + const updateArgs = { + rotation + }; + + for (const pageView of this._pages) { + pageView.update(updateArgs); + } + + if (this._currentScaleValue) { + this._setScale(this._currentScaleValue, true); + } + + this.eventBus.dispatch("rotationchanging", { + source: this, + pagesRotation: rotation, + pageNumber + }); + + if (this.defaultRenderingQueue) { + this.update(); + } + } + + get firstPagePromise() { + return this.pdfDocument ? this._firstPageCapability.promise : null; + } + + get onePageRendered() { + return this.pdfDocument ? this._onePageRenderedCapability.promise : null; + } + + get pagesPromise() { + return this.pdfDocument ? this._pagesCapability.promise : null; + } + + #initializePermissions(permissions) { + const params = { + annotationEditorMode: this.#annotationEditorMode, + annotationMode: this.#annotationMode, + textLayerMode: this.textLayerMode + }; + + if (!permissions) { + return params; + } + + if (!permissions.includes(_pdfjsLib.PermissionFlag.COPY)) { + this.viewer.classList.add(ENABLE_PERMISSIONS_CLASS); + } + + if (!permissions.includes(_pdfjsLib.PermissionFlag.MODIFY_CONTENTS)) { + params.annotationEditorMode = _pdfjsLib.AnnotationEditorType.DISABLE; + } + + if (!permissions.includes(_pdfjsLib.PermissionFlag.MODIFY_ANNOTATIONS) && !permissions.includes(_pdfjsLib.PermissionFlag.FILL_INTERACTIVE_FORMS) && this.#annotationMode === _pdfjsLib.AnnotationMode.ENABLE_FORMS) { + params.annotationMode = _pdfjsLib.AnnotationMode.ENABLE; + } + + return params; + } + + #onePageRenderedOrForceFetch() { + if (document.visibilityState === "hidden" || !this.container.offsetParent || this._getVisiblePages().views.length === 0) { + return Promise.resolve(); + } + + const visibilityChangePromise = new Promise(resolve => { + this.#onVisibilityChange = () => { + if (document.visibilityState !== "hidden") { + return; + } + + resolve(); + document.removeEventListener("visibilitychange", this.#onVisibilityChange); + this.#onVisibilityChange = null; + }; + + document.addEventListener("visibilitychange", this.#onVisibilityChange); + }); + return Promise.race([this._onePageRenderedCapability.promise, visibilityChangePromise]); + } + + setDocument(pdfDocument) { + if (this.pdfDocument) { + this.eventBus.dispatch("pagesdestroy", { + source: this + }); + + this._cancelRendering(); + + this._resetView(); + + if (this.findController) { + this.findController.setDocument(null); + } + + if (this._scriptingManager) { + this._scriptingManager.setDocument(null); + } + + if (this.#annotationEditorUIManager) { + this.#annotationEditorUIManager.destroy(); + this.#annotationEditorUIManager = null; + } + } + + this.pdfDocument = pdfDocument; + + if (!pdfDocument) { + return; + } + + const isPureXfa = pdfDocument.isPureXfa; + const pagesCount = pdfDocument.numPages; + const firstPagePromise = pdfDocument.getPage(1); + const optionalContentConfigPromise = pdfDocument.getOptionalContentConfig(); + const permissionsPromise = this.#enablePermissions ? pdfDocument.getPermissions() : Promise.resolve(); + + if (pagesCount > PagesCountLimit.FORCE_SCROLL_MODE_PAGE) { + console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document."); + const mode = this._scrollMode = _ui_utils.ScrollMode.PAGE; + this.eventBus.dispatch("scrollmodechanged", { + source: this, + mode + }); + } + + this._pagesCapability.promise.then(() => { + this.eventBus.dispatch("pagesloaded", { + source: this, + pagesCount + }); + }, () => {}); + + this._onBeforeDraw = evt => { + const pageView = this._pages[evt.pageNumber - 1]; + + if (!pageView) { + return; + } + + this.#buffer.push(pageView); + }; + + this.eventBus._on("pagerender", this._onBeforeDraw); + + this._onAfterDraw = evt => { + if (evt.cssTransform || this._onePageRenderedCapability.settled) { + return; + } + + this._onePageRenderedCapability.resolve({ + timestamp: evt.timestamp + }); + + this.eventBus._off("pagerendered", this._onAfterDraw); + + this._onAfterDraw = null; + + if (this.#onVisibilityChange) { + document.removeEventListener("visibilitychange", this.#onVisibilityChange); + this.#onVisibilityChange = null; + } + }; + + this.eventBus._on("pagerendered", this._onAfterDraw); + + Promise.all([firstPagePromise, permissionsPromise]).then(([firstPdfPage, permissions]) => { + if (pdfDocument !== this.pdfDocument) { + return; + } + + this._firstPageCapability.resolve(firstPdfPage); + + this._optionalContentConfigPromise = optionalContentConfigPromise; + const { + annotationEditorMode, + annotationMode, + textLayerMode + } = this.#initializePermissions(permissions); + + if (annotationEditorMode !== _pdfjsLib.AnnotationEditorType.DISABLE) { + const mode = annotationEditorMode; + + if (isPureXfa) { + console.warn("Warning: XFA-editing is not implemented."); + } else if (isValidAnnotationEditorMode(mode)) { + this.#annotationEditorUIManager = new _pdfjsLib.AnnotationEditorUIManager(this.container, this.eventBus); + + if (mode !== _pdfjsLib.AnnotationEditorType.NONE) { + this.#annotationEditorUIManager.updateMode(mode); + } + } else { + console.error(`Invalid AnnotationEditor mode: ${mode}`); + } + } + + const viewerElement = this._scrollMode === _ui_utils.ScrollMode.PAGE ? null : this.viewer; + const scale = this.currentScale; + const viewport = firstPdfPage.getViewport({ + scale: scale * _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS + }); + const textLayerFactory = textLayerMode !== _ui_utils.TextLayerMode.DISABLE && !isPureXfa ? this : null; + const annotationLayerFactory = annotationMode !== _pdfjsLib.AnnotationMode.DISABLE ? this : null; + const xfaLayerFactory = isPureXfa ? this : null; + const annotationEditorLayerFactory = this.#annotationEditorUIManager ? this : null; + + for (let pageNum = 1; pageNum <= pagesCount; ++pageNum) { + const pageView = new _pdf_page_view.PDFPageView({ + container: viewerElement, + eventBus: this.eventBus, + id: pageNum, + scale, + defaultViewport: viewport.clone(), + optionalContentConfigPromise, + renderingQueue: this.renderingQueue, + textLayerFactory, + textLayerMode, + annotationLayerFactory, + annotationMode, + xfaLayerFactory, + annotationEditorLayerFactory, + textHighlighterFactory: this, + structTreeLayerFactory: this, + imageResourcesPath: this.imageResourcesPath, + renderer: this.renderer, + useOnlyCssZoom: this.useOnlyCssZoom, + maxCanvasPixels: this.maxCanvasPixels, + pageColors: this.pageColors, + l10n: this.l10n + }); + + this._pages.push(pageView); + } + + const firstPageView = this._pages[0]; + + if (firstPageView) { + firstPageView.setPdfPage(firstPdfPage); + this.linkService.cachePageRef(1, firstPdfPage.ref); + } + + if (this._scrollMode === _ui_utils.ScrollMode.PAGE) { + this.#ensurePageViewVisible(); + } else if (this._spreadMode !== _ui_utils.SpreadMode.NONE) { + this._updateSpreadMode(); + } + + this.#onePageRenderedOrForceFetch().then(async () => { + if (this.findController) { + this.findController.setDocument(pdfDocument); + } + + if (this._scriptingManager) { + this._scriptingManager.setDocument(pdfDocument); + } + + if (this.#annotationEditorUIManager) { + this.eventBus.dispatch("annotationeditormodechanged", { + source: this, + mode: this.#annotationEditorMode + }); + } + + if (pdfDocument.loadingParams.disableAutoFetch || pagesCount > PagesCountLimit.FORCE_LAZY_PAGE_INIT) { + this._pagesCapability.resolve(); + + return; + } + + let getPagesLeft = pagesCount - 1; + + if (getPagesLeft <= 0) { + this._pagesCapability.resolve(); + + return; + } + + for (let pageNum = 2; pageNum <= pagesCount; ++pageNum) { + const promise = pdfDocument.getPage(pageNum).then(pdfPage => { + const pageView = this._pages[pageNum - 1]; + + if (!pageView.pdfPage) { + pageView.setPdfPage(pdfPage); + } + + this.linkService.cachePageRef(pageNum, pdfPage.ref); + + if (--getPagesLeft === 0) { + this._pagesCapability.resolve(); + } + }, reason => { + console.error(`Unable to get page ${pageNum} to initialize viewer`, reason); + + if (--getPagesLeft === 0) { + this._pagesCapability.resolve(); + } + }); + + if (pageNum % PagesCountLimit.PAUSE_EAGER_PAGE_INIT === 0) { + await promise; + } + } + }); + this.eventBus.dispatch("pagesinit", { + source: this + }); + pdfDocument.getMetadata().then(({ + info + }) => { + if (pdfDocument !== this.pdfDocument) { + return; + } + + if (info.Language) { + this.viewer.lang = info.Language; + } + }); + + if (this.defaultRenderingQueue) { + this.update(); + } + }).catch(reason => { + console.error("Unable to initialize viewer", reason); + + this._pagesCapability.reject(reason); + }); + } + + setPageLabels(labels) { + if (!this.pdfDocument) { + return; + } + + if (!labels) { + this._pageLabels = null; + } else if (!(Array.isArray(labels) && this.pdfDocument.numPages === labels.length)) { + this._pageLabels = null; + console.error(`setPageLabels: Invalid page labels.`); + } else { + this._pageLabels = labels; + } + + for (let i = 0, ii = this._pages.length; i < ii; i++) { + this._pages[i].setPageLabel(this._pageLabels?.[i] ?? null); + } + } + + _resetView() { + this._pages = []; + this._currentPageNumber = 1; + this._currentScale = _ui_utils.UNKNOWN_SCALE; + this._currentScaleValue = null; + this._pageLabels = null; + this.#buffer = new PDFPageViewBuffer(DEFAULT_CACHE_SIZE); + this._location = null; + this._pagesRotation = 0; + this._optionalContentConfigPromise = null; + this._firstPageCapability = (0, _pdfjsLib.createPromiseCapability)(); + this._onePageRenderedCapability = (0, _pdfjsLib.createPromiseCapability)(); + this._pagesCapability = (0, _pdfjsLib.createPromiseCapability)(); + this._scrollMode = _ui_utils.ScrollMode.VERTICAL; + this._previousScrollMode = _ui_utils.ScrollMode.UNKNOWN; + this._spreadMode = _ui_utils.SpreadMode.NONE; + this.#scrollModePageState = { + previousPageNumber: 1, + scrollDown: true, + pages: [] + }; + + if (this._onBeforeDraw) { + this.eventBus._off("pagerender", this._onBeforeDraw); + + this._onBeforeDraw = null; + } + + if (this._onAfterDraw) { + this.eventBus._off("pagerendered", this._onAfterDraw); + + this._onAfterDraw = null; + } + + if (this.#onVisibilityChange) { + document.removeEventListener("visibilitychange", this.#onVisibilityChange); + this.#onVisibilityChange = null; + } + + this.viewer.textContent = ""; + + this._updateScrollMode(); + + this.viewer.removeAttribute("lang"); + this.viewer.classList.remove(ENABLE_PERMISSIONS_CLASS); + } + + #ensurePageViewVisible() { + if (this._scrollMode !== _ui_utils.ScrollMode.PAGE) { + throw new Error("#ensurePageViewVisible: Invalid scrollMode value."); + } + + const pageNumber = this._currentPageNumber, + state = this.#scrollModePageState, + viewer = this.viewer; + viewer.textContent = ""; + state.pages.length = 0; + + if (this._spreadMode === _ui_utils.SpreadMode.NONE && !this.isInPresentationMode) { + const pageView = this._pages[pageNumber - 1]; + viewer.append(pageView.div); + state.pages.push(pageView); + } else { + const pageIndexSet = new Set(), + parity = this._spreadMode - 1; + + if (parity === -1) { + pageIndexSet.add(pageNumber - 1); + } else if (pageNumber % 2 !== parity) { + pageIndexSet.add(pageNumber - 1); + pageIndexSet.add(pageNumber); + } else { + pageIndexSet.add(pageNumber - 2); + pageIndexSet.add(pageNumber - 1); + } + + const spread = document.createElement("div"); + spread.className = "spread"; + + if (this.isInPresentationMode) { + const dummyPage = document.createElement("div"); + dummyPage.className = "dummyPage"; + spread.append(dummyPage); + } + + for (const i of pageIndexSet) { + const pageView = this._pages[i]; + + if (!pageView) { + continue; + } + + spread.append(pageView.div); + state.pages.push(pageView); + } + + viewer.append(spread); + } + + state.scrollDown = pageNumber >= state.previousPageNumber; + state.previousPageNumber = pageNumber; + } + + _scrollUpdate() { + if (this.pagesCount === 0) { + return; + } + + this.update(); + } + + #scrollIntoView(pageView, pageSpot = null) { + const { + div, + id + } = pageView; + + if (this._scrollMode === _ui_utils.ScrollMode.PAGE) { + this._setCurrentPageNumber(id); + + this.#ensurePageViewVisible(); + this.update(); + } + + if (!pageSpot && !this.isInPresentationMode) { + const left = div.offsetLeft + div.clientLeft, + right = left + div.clientWidth; + const { + scrollLeft, + clientWidth + } = this.container; + + if (this._scrollMode === _ui_utils.ScrollMode.HORIZONTAL || left < scrollLeft || right > scrollLeft + clientWidth) { + pageSpot = { + left: 0, + top: 0 + }; + } + } + + (0, _ui_utils.scrollIntoView)(div, pageSpot); + } + + #isSameScale(newScale) { + return newScale === this._currentScale || Math.abs(newScale - this._currentScale) < 1e-15; + } + + _setScaleUpdatePages(newScale, newValue, noScroll = false, preset = false) { + this._currentScaleValue = newValue.toString(); + + if (this.#isSameScale(newScale)) { + if (preset) { + this.eventBus.dispatch("scalechanging", { + source: this, + scale: newScale, + presetValue: newValue + }); + } + + return; + } + + _ui_utils.docStyle.setProperty("--scale-factor", newScale * _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS); + + const updateArgs = { + scale: newScale + }; + + for (const pageView of this._pages) { + pageView.update(updateArgs); + } + + this._currentScale = newScale; + + if (!noScroll) { + let page = this._currentPageNumber, + dest; + + if (this._location && !(this.isInPresentationMode || this.isChangingPresentationMode)) { + page = this._location.pageNumber; + dest = [null, { + name: "XYZ" + }, this._location.left, this._location.top, null]; + } + + this.scrollPageIntoView({ + pageNumber: page, + destArray: dest, + allowNegativeOffset: true + }); + } + + this.eventBus.dispatch("scalechanging", { + source: this, + scale: newScale, + presetValue: preset ? newValue : undefined + }); + + if (this.defaultRenderingQueue) { + this.update(); + } + + this.updateContainerHeightCss(); + } + + get _pageWidthScaleFactor() { + if (this._spreadMode !== _ui_utils.SpreadMode.NONE && this._scrollMode !== _ui_utils.ScrollMode.HORIZONTAL) { + return 2; + } + + return 1; + } + + _setScale(value, noScroll = false) { + let scale = parseFloat(value); + + if (scale > 0) { + this._setScaleUpdatePages(scale, value, noScroll, false); + } else { + const currentPage = this._pages[this._currentPageNumber - 1]; + + if (!currentPage) { + return; + } + + let hPadding = _ui_utils.SCROLLBAR_PADDING, + vPadding = _ui_utils.VERTICAL_PADDING; + + if (this.isInPresentationMode) { + hPadding = vPadding = 4; + } else if (this.removePageBorders) { + hPadding = vPadding = 0; + } else if (this._scrollMode === _ui_utils.ScrollMode.HORIZONTAL) { + [hPadding, vPadding] = [vPadding, hPadding]; + } + + const pageWidthScale = (this.container.clientWidth - hPadding) / currentPage.width * currentPage.scale / this._pageWidthScaleFactor; + const pageHeightScale = (this.container.clientHeight - vPadding) / currentPage.height * currentPage.scale; + + switch (value) { + case "page-actual": + scale = 1; + break; + + case "page-width": + scale = pageWidthScale; + break; + + case "page-height": + scale = pageHeightScale; + break; + + case "page-fit": + scale = Math.min(pageWidthScale, pageHeightScale); + break; + + case "auto": + const horizontalScale = (0, _ui_utils.isPortraitOrientation)(currentPage) ? pageWidthScale : Math.min(pageHeightScale, pageWidthScale); + scale = Math.min(_ui_utils.MAX_AUTO_SCALE, horizontalScale); + break; + + default: + console.error(`_setScale: "${value}" is an unknown zoom value.`); + return; + } + + this._setScaleUpdatePages(scale, value, noScroll, true); + } + } + + #resetCurrentPageView() { + const pageView = this._pages[this._currentPageNumber - 1]; + + if (this.isInPresentationMode) { + this._setScale(this._currentScaleValue, true); + } + + this.#scrollIntoView(pageView); + } + + pageLabelToPageNumber(label) { + if (!this._pageLabels) { + return null; + } + + const i = this._pageLabels.indexOf(label); + + if (i < 0) { + return null; + } + + return i + 1; + } + + scrollPageIntoView({ + pageNumber, + destArray = null, + allowNegativeOffset = false, + ignoreDestinationZoom = false + }) { + if (!this.pdfDocument) { + return; + } + + const pageView = Number.isInteger(pageNumber) && this._pages[pageNumber - 1]; + + if (!pageView) { + console.error(`scrollPageIntoView: "${pageNumber}" is not a valid pageNumber parameter.`); + return; + } + + if (this.isInPresentationMode || !destArray) { + this._setCurrentPageNumber(pageNumber, true); + + return; + } + + let x = 0, + y = 0; + let width = 0, + height = 0, + widthScale, + heightScale; + const changeOrientation = pageView.rotation % 180 !== 0; + const pageWidth = (changeOrientation ? pageView.height : pageView.width) / pageView.scale / _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS; + const pageHeight = (changeOrientation ? pageView.width : pageView.height) / pageView.scale / _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS; + let scale = 0; + + switch (destArray[1].name) { + case "XYZ": + x = destArray[2]; + y = destArray[3]; + scale = destArray[4]; + x = x !== null ? x : 0; + y = y !== null ? y : pageHeight; + break; + + case "Fit": + case "FitB": + scale = "page-fit"; + break; + + case "FitH": + case "FitBH": + y = destArray[2]; + scale = "page-width"; + + if (y === null && this._location) { + x = this._location.left; + y = this._location.top; + } else if (typeof y !== "number" || y < 0) { + y = pageHeight; + } + + break; + + case "FitV": + case "FitBV": + x = destArray[2]; + width = pageWidth; + height = pageHeight; + scale = "page-height"; + break; + + case "FitR": + x = destArray[2]; + y = destArray[3]; + width = destArray[4] - x; + height = destArray[5] - y; + const hPadding = this.removePageBorders ? 0 : _ui_utils.SCROLLBAR_PADDING; + const vPadding = this.removePageBorders ? 0 : _ui_utils.VERTICAL_PADDING; + widthScale = (this.container.clientWidth - hPadding) / width / _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS; + heightScale = (this.container.clientHeight - vPadding) / height / _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS; + scale = Math.min(Math.abs(widthScale), Math.abs(heightScale)); + break; + + default: + console.error(`scrollPageIntoView: "${destArray[1].name}" is not a valid destination type.`); + return; + } + + if (!ignoreDestinationZoom) { + if (scale && scale !== this._currentScale) { + this.currentScaleValue = scale; + } else if (this._currentScale === _ui_utils.UNKNOWN_SCALE) { + this.currentScaleValue = _ui_utils.DEFAULT_SCALE_VALUE; + } + } + + if (scale === "page-fit" && !destArray[4]) { + this.#scrollIntoView(pageView); + return; + } + + const boundingRect = [pageView.viewport.convertToViewportPoint(x, y), pageView.viewport.convertToViewportPoint(x + width, y + height)]; + let left = Math.min(boundingRect[0][0], boundingRect[1][0]); + let top = Math.min(boundingRect[0][1], boundingRect[1][1]); + + if (!allowNegativeOffset) { + left = Math.max(left, 0); + top = Math.max(top, 0); + } + + this.#scrollIntoView(pageView, { + left, + top + }); + } + + _updateLocation(firstPage) { + const currentScale = this._currentScale; + const currentScaleValue = this._currentScaleValue; + const normalizedScaleValue = parseFloat(currentScaleValue) === currentScale ? Math.round(currentScale * 10000) / 100 : currentScaleValue; + const pageNumber = firstPage.id; + const currentPageView = this._pages[pageNumber - 1]; + const container = this.container; + const topLeft = currentPageView.getPagePoint(container.scrollLeft - firstPage.x, container.scrollTop - firstPage.y); + const intLeft = Math.round(topLeft[0]); + const intTop = Math.round(topLeft[1]); + let pdfOpenParams = `#page=${pageNumber}`; + + if (!this.isInPresentationMode) { + pdfOpenParams += `&zoom=${normalizedScaleValue},${intLeft},${intTop}`; + } + + this._location = { + pageNumber, + scale: normalizedScaleValue, + top: intTop, + left: intLeft, + rotation: this._pagesRotation, + pdfOpenParams + }; + } + + update() { + const visible = this._getVisiblePages(); + + const visiblePages = visible.views, + numVisiblePages = visiblePages.length; + + if (numVisiblePages === 0) { + return; + } + + const newCacheSize = Math.max(DEFAULT_CACHE_SIZE, 2 * numVisiblePages + 1); + this.#buffer.resize(newCacheSize, visible.ids); + this.renderingQueue.renderHighestPriority(visible); + const isSimpleLayout = this._spreadMode === _ui_utils.SpreadMode.NONE && (this._scrollMode === _ui_utils.ScrollMode.PAGE || this._scrollMode === _ui_utils.ScrollMode.VERTICAL); + const currentId = this._currentPageNumber; + let stillFullyVisible = false; + + for (const page of visiblePages) { + if (page.percent < 100) { + break; + } + + if (page.id === currentId && isSimpleLayout) { + stillFullyVisible = true; + break; + } + } + + this._setCurrentPageNumber(stillFullyVisible ? currentId : visiblePages[0].id); + + this._updateLocation(visible.first); + + this.eventBus.dispatch("updateviewarea", { + source: this, + location: this._location + }); + } + + containsElement(element) { + return this.container.contains(element); + } + + focus() { + this.container.focus(); + } + + get _isContainerRtl() { + return getComputedStyle(this.container).direction === "rtl"; + } + + get isInPresentationMode() { + return this.presentationModeState === _ui_utils.PresentationModeState.FULLSCREEN; + } + + get isChangingPresentationMode() { + return this.presentationModeState === _ui_utils.PresentationModeState.CHANGING; + } + + get isHorizontalScrollbarEnabled() { + return this.isInPresentationMode ? false : this.container.scrollWidth > this.container.clientWidth; + } + + get isVerticalScrollbarEnabled() { + return this.isInPresentationMode ? false : this.container.scrollHeight > this.container.clientHeight; + } + + _getVisiblePages() { + const views = this._scrollMode === _ui_utils.ScrollMode.PAGE ? this.#scrollModePageState.pages : this._pages, + horizontal = this._scrollMode === _ui_utils.ScrollMode.HORIZONTAL, + rtl = horizontal && this._isContainerRtl; + return (0, _ui_utils.getVisibleElements)({ + scrollEl: this.container, + views, + sortByVisibility: true, + horizontal, + rtl + }); + } + + isPageVisible(pageNumber) { + if (!this.pdfDocument) { + return false; + } + + if (!(Number.isInteger(pageNumber) && pageNumber > 0 && pageNumber <= this.pagesCount)) { + console.error(`isPageVisible: "${pageNumber}" is not a valid page.`); + return false; + } + + return this._getVisiblePages().ids.has(pageNumber); + } + + isPageCached(pageNumber) { + if (!this.pdfDocument) { + return false; + } + + if (!(Number.isInteger(pageNumber) && pageNumber > 0 && pageNumber <= this.pagesCount)) { + console.error(`isPageCached: "${pageNumber}" is not a valid page.`); + return false; + } + + const pageView = this._pages[pageNumber - 1]; + return this.#buffer.has(pageView); + } + + cleanup() { + for (const pageView of this._pages) { + if (pageView.renderingState !== _ui_utils.RenderingStates.FINISHED) { + pageView.reset(); + } + } + } + + _cancelRendering() { + for (const pageView of this._pages) { + pageView.cancelRendering(); + } + } + + async #ensurePdfPageLoaded(pageView) { + if (pageView.pdfPage) { + return pageView.pdfPage; + } + + try { + const pdfPage = await this.pdfDocument.getPage(pageView.id); + + if (!pageView.pdfPage) { + pageView.setPdfPage(pdfPage); + } + + if (!this.linkService._cachedPageNumber?.(pdfPage.ref)) { + this.linkService.cachePageRef(pageView.id, pdfPage.ref); + } + + return pdfPage; + } catch (reason) { + console.error("Unable to get page for page view", reason); + return null; + } + } + + #getScrollAhead(visible) { + if (visible.first?.id === 1) { + return true; + } else if (visible.last?.id === this.pagesCount) { + return false; + } + + switch (this._scrollMode) { + case _ui_utils.ScrollMode.PAGE: + return this.#scrollModePageState.scrollDown; + + case _ui_utils.ScrollMode.HORIZONTAL: + return this.scroll.right; + } + + return this.scroll.down; + } + + #toggleLoadingIconSpinner(visibleIds) { + for (const id of visibleIds) { + const pageView = this._pages[id - 1]; + pageView?.toggleLoadingIconSpinner(true); + } + + for (const pageView of this.#buffer) { + if (visibleIds.has(pageView.id)) { + continue; + } + + pageView.toggleLoadingIconSpinner(false); + } + } + + forceRendering(currentlyVisiblePages) { + const visiblePages = currentlyVisiblePages || this._getVisiblePages(); + + const scrollAhead = this.#getScrollAhead(visiblePages); + const preRenderExtra = this._spreadMode !== _ui_utils.SpreadMode.NONE && this._scrollMode !== _ui_utils.ScrollMode.HORIZONTAL; + const pageView = this.renderingQueue.getHighestPriority(visiblePages, this._pages, scrollAhead, preRenderExtra); + this.#toggleLoadingIconSpinner(visiblePages.ids); + + if (pageView) { + this.#ensurePdfPageLoaded(pageView).then(() => { + this.renderingQueue.renderView(pageView); + }); + return true; + } + + return false; + } + + createTextLayerBuilder({ + textLayerDiv, + pageIndex, + viewport, + enhanceTextSelection = false, + eventBus, + highlighter, + accessibilityManager = null + }) { + return new _text_layer_builder.TextLayerBuilder({ + textLayerDiv, + eventBus, + pageIndex, + viewport, + enhanceTextSelection: this.isInPresentationMode ? false : enhanceTextSelection, + highlighter, + accessibilityManager + }); + } + + createTextHighlighter({ + pageIndex, + eventBus + }) { + return new _text_highlighter.TextHighlighter({ + eventBus, + pageIndex, + findController: this.isInPresentationMode ? null : this.findController + }); + } + + createAnnotationLayerBuilder({ + pageDiv, + pdfPage, + annotationStorage = this.pdfDocument?.annotationStorage, + imageResourcesPath = "", + renderForms = true, + l10n = _l10n_utils.NullL10n, + enableScripting = this.enableScripting, + hasJSActionsPromise = this.pdfDocument?.hasJSActions(), + mouseState = this._scriptingManager?.mouseState, + fieldObjectsPromise = this.pdfDocument?.getFieldObjects(), + annotationCanvasMap = null, + accessibilityManager = null + }) { + return new _annotation_layer_builder.AnnotationLayerBuilder({ + pageDiv, + pdfPage, + annotationStorage, + imageResourcesPath, + renderForms, + linkService: this.linkService, + downloadManager: this.downloadManager, + l10n, + enableScripting, + hasJSActionsPromise, + mouseState, + fieldObjectsPromise, + annotationCanvasMap, + accessibilityManager + }); + } + + createAnnotationEditorLayerBuilder({ + uiManager = this.#annotationEditorUIManager, + pageDiv, + pdfPage, + accessibilityManager = null, + l10n, + annotationStorage = this.pdfDocument?.annotationStorage + }) { + return new _annotation_editor_layer_builder.AnnotationEditorLayerBuilder({ + uiManager, + pageDiv, + pdfPage, + annotationStorage, + accessibilityManager, + l10n + }); + } + + createXfaLayerBuilder({ + pageDiv, + pdfPage, + annotationStorage = this.pdfDocument?.annotationStorage + }) { + return new _xfa_layer_builder.XfaLayerBuilder({ + pageDiv, + pdfPage, + annotationStorage, + linkService: this.linkService + }); + } + + createStructTreeLayerBuilder({ + pdfPage + }) { + return new _struct_tree_layer_builder.StructTreeLayerBuilder({ + pdfPage + }); + } + + get hasEqualPageSizes() { + const firstPageView = this._pages[0]; + + for (let i = 1, ii = this._pages.length; i < ii; ++i) { + const pageView = this._pages[i]; + + if (pageView.width !== firstPageView.width || pageView.height !== firstPageView.height) { + return false; + } + } + + return true; + } + + getPagesOverview() { + return this._pages.map(pageView => { + const viewport = pageView.pdfPage.getViewport({ + scale: 1 + }); + + if (!this.enablePrintAutoRotate || (0, _ui_utils.isPortraitOrientation)(viewport)) { + return { + width: viewport.width, + height: viewport.height, + rotation: viewport.rotation + }; + } + + return { + width: viewport.height, + height: viewport.width, + rotation: (viewport.rotation - 90) % 360 + }; + }); + } + + get optionalContentConfigPromise() { + if (!this.pdfDocument) { + return Promise.resolve(null); + } + + if (!this._optionalContentConfigPromise) { + console.error("optionalContentConfigPromise: Not initialized yet."); + return this.pdfDocument.getOptionalContentConfig(); + } + + return this._optionalContentConfigPromise; + } + + set optionalContentConfigPromise(promise) { + if (!(promise instanceof Promise)) { + throw new Error(`Invalid optionalContentConfigPromise: ${promise}`); + } + + if (!this.pdfDocument) { + return; + } + + if (!this._optionalContentConfigPromise) { + return; + } + + this._optionalContentConfigPromise = promise; + const updateArgs = { + optionalContentConfigPromise: promise + }; + + for (const pageView of this._pages) { + pageView.update(updateArgs); + } + + this.update(); + this.eventBus.dispatch("optionalcontentconfigchanged", { + source: this, + promise + }); + } + + get scrollMode() { + return this._scrollMode; + } + + set scrollMode(mode) { + if (this._scrollMode === mode) { + return; + } + + if (!(0, _ui_utils.isValidScrollMode)(mode)) { + throw new Error(`Invalid scroll mode: ${mode}`); + } + + if (this.pagesCount > PagesCountLimit.FORCE_SCROLL_MODE_PAGE) { + return; + } + + this._previousScrollMode = this._scrollMode; + this._scrollMode = mode; + this.eventBus.dispatch("scrollmodechanged", { + source: this, + mode + }); + + this._updateScrollMode(this._currentPageNumber); + } + + _updateScrollMode(pageNumber = null) { + const scrollMode = this._scrollMode, + viewer = this.viewer; + viewer.classList.toggle("scrollHorizontal", scrollMode === _ui_utils.ScrollMode.HORIZONTAL); + viewer.classList.toggle("scrollWrapped", scrollMode === _ui_utils.ScrollMode.WRAPPED); + + if (!this.pdfDocument || !pageNumber) { + return; + } + + if (scrollMode === _ui_utils.ScrollMode.PAGE) { + this.#ensurePageViewVisible(); + } else if (this._previousScrollMode === _ui_utils.ScrollMode.PAGE) { + this._updateSpreadMode(); + } + + if (this._currentScaleValue && isNaN(this._currentScaleValue)) { + this._setScale(this._currentScaleValue, true); + } + + this._setCurrentPageNumber(pageNumber, true); + + this.update(); + } + + get spreadMode() { + return this._spreadMode; + } + + set spreadMode(mode) { + if (this._spreadMode === mode) { + return; + } + + if (!(0, _ui_utils.isValidSpreadMode)(mode)) { + throw new Error(`Invalid spread mode: ${mode}`); + } + + this._spreadMode = mode; + this.eventBus.dispatch("spreadmodechanged", { + source: this, + mode + }); + + this._updateSpreadMode(this._currentPageNumber); + } + + _updateSpreadMode(pageNumber = null) { + if (!this.pdfDocument) { + return; + } + + const viewer = this.viewer, + pages = this._pages; + + if (this._scrollMode === _ui_utils.ScrollMode.PAGE) { + this.#ensurePageViewVisible(); + } else { + viewer.textContent = ""; + + if (this._spreadMode === _ui_utils.SpreadMode.NONE) { + for (const pageView of this._pages) { + viewer.append(pageView.div); + } + } else { + const parity = this._spreadMode - 1; + let spread = null; + + for (let i = 0, ii = pages.length; i < ii; ++i) { + if (spread === null) { + spread = document.createElement("div"); + spread.className = "spread"; + viewer.append(spread); + } else if (i % 2 === parity) { + spread = spread.cloneNode(false); + viewer.append(spread); + } + + spread.append(pages[i].div); + } + } + } + + if (!pageNumber) { + return; + } + + if (this._currentScaleValue && isNaN(this._currentScaleValue)) { + this._setScale(this._currentScaleValue, true); + } + + this._setCurrentPageNumber(pageNumber, true); + + this.update(); + } + + _getPageAdvance(currentPageNumber, previous = false) { + switch (this._scrollMode) { + case _ui_utils.ScrollMode.WRAPPED: + { + const { + views + } = this._getVisiblePages(), + pageLayout = new Map(); + + for (const { + id, + y, + percent, + widthPercent + } of views) { + if (percent === 0 || widthPercent < 100) { + continue; + } + + let yArray = pageLayout.get(y); + + if (!yArray) { + pageLayout.set(y, yArray ||= []); + } + + yArray.push(id); + } + + for (const yArray of pageLayout.values()) { + const currentIndex = yArray.indexOf(currentPageNumber); + + if (currentIndex === -1) { + continue; + } + + const numPages = yArray.length; + + if (numPages === 1) { + break; + } + + if (previous) { + for (let i = currentIndex - 1, ii = 0; i >= ii; i--) { + const currentId = yArray[i], + expectedId = yArray[i + 1] - 1; + + if (currentId < expectedId) { + return currentPageNumber - expectedId; + } + } + } else { + for (let i = currentIndex + 1, ii = numPages; i < ii; i++) { + const currentId = yArray[i], + expectedId = yArray[i - 1] + 1; + + if (currentId > expectedId) { + return expectedId - currentPageNumber; + } + } + } + + if (previous) { + const firstId = yArray[0]; + + if (firstId < currentPageNumber) { + return currentPageNumber - firstId + 1; + } + } else { + const lastId = yArray[numPages - 1]; + + if (lastId > currentPageNumber) { + return lastId - currentPageNumber + 1; + } + } + + break; + } + + break; + } + + case _ui_utils.ScrollMode.HORIZONTAL: + { + break; + } + + case _ui_utils.ScrollMode.PAGE: + case _ui_utils.ScrollMode.VERTICAL: + { + if (this._spreadMode === _ui_utils.SpreadMode.NONE) { + break; + } + + const parity = this._spreadMode - 1; + + if (previous && currentPageNumber % 2 !== parity) { + break; + } else if (!previous && currentPageNumber % 2 === parity) { + break; + } + + const { + views + } = this._getVisiblePages(), + expectedId = previous ? currentPageNumber - 1 : currentPageNumber + 1; + + for (const { + id, + percent, + widthPercent + } of views) { + if (id !== expectedId) { + continue; + } + + if (percent > 0 && widthPercent === 100) { + return 2; + } + + break; + } + + break; + } + } + + return 1; + } + + nextPage() { + const currentPageNumber = this._currentPageNumber, + pagesCount = this.pagesCount; + + if (currentPageNumber >= pagesCount) { + return false; + } + + const advance = this._getPageAdvance(currentPageNumber, false) || 1; + this.currentPageNumber = Math.min(currentPageNumber + advance, pagesCount); + return true; + } + + previousPage() { + const currentPageNumber = this._currentPageNumber; + + if (currentPageNumber <= 1) { + return false; + } + + const advance = this._getPageAdvance(currentPageNumber, true) || 1; + this.currentPageNumber = Math.max(currentPageNumber - advance, 1); + return true; + } + + increaseScale(steps = 1) { + let newScale = this._currentScale; + + do { + newScale = (newScale * _ui_utils.DEFAULT_SCALE_DELTA).toFixed(2); + newScale = Math.ceil(newScale * 10) / 10; + newScale = Math.min(_ui_utils.MAX_SCALE, newScale); + } while (--steps > 0 && newScale < _ui_utils.MAX_SCALE); + + this.currentScaleValue = newScale; + } + + decreaseScale(steps = 1) { + let newScale = this._currentScale; + + do { + newScale = (newScale / _ui_utils.DEFAULT_SCALE_DELTA).toFixed(2); + newScale = Math.floor(newScale * 10) / 10; + newScale = Math.max(_ui_utils.MIN_SCALE, newScale); + } while (--steps > 0 && newScale > _ui_utils.MIN_SCALE); + + this.currentScaleValue = newScale; + } + + updateContainerHeightCss() { + const height = this.container.clientHeight; + + if (height !== this.#previousContainerHeight) { + this.#previousContainerHeight = height; + + _ui_utils.docStyle.setProperty("--viewer-container-height", `${height}px`); + } + } + + get annotationEditorMode() { + return this.#annotationEditorUIManager ? this.#annotationEditorMode : _pdfjsLib.AnnotationEditorType.DISABLE; + } + + set annotationEditorMode(mode) { + if (!this.#annotationEditorUIManager) { + throw new Error(`The AnnotationEditor is not enabled.`); + } + + if (this.#annotationEditorMode === mode) { + return; + } + + if (!isValidAnnotationEditorMode(mode)) { + throw new Error(`Invalid AnnotationEditor mode: ${mode}`); + } + + if (!this.pdfDocument) { + return; + } + + this.#annotationEditorMode = mode; + this.eventBus.dispatch("annotationeditormodechanged", { + source: this, + mode + }); + this.#annotationEditorUIManager.updateMode(mode); + } + + set annotationEditorParams({ + type, + value + }) { + if (!this.#annotationEditorUIManager) { + throw new Error(`The AnnotationEditor is not enabled.`); + } + + this.#annotationEditorUIManager.updateParams(type, value); + } + + refresh() { + if (!this.pdfDocument) { + return; + } + + const updateArgs = {}; + + for (const pageView of this._pages) { + pageView.update(updateArgs); + } + + this.update(); + } + +} + +exports.BaseViewer = BaseViewer; + +/***/ }), +/* 30 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.AnnotationEditorLayerBuilder = void 0; + +var _pdfjsLib = __webpack_require__(5); + +var _l10n_utils = __webpack_require__(31); + +class AnnotationEditorLayerBuilder { + #uiManager; + + constructor(options) { + this.pageDiv = options.pageDiv; + this.pdfPage = options.pdfPage; + this.annotationStorage = options.annotationStorage || null; + this.accessibilityManager = options.accessibilityManager; + this.l10n = options.l10n || _l10n_utils.NullL10n; + this.annotationEditorLayer = null; + this.div = null; + this._cancelled = false; + this.#uiManager = options.uiManager; + } + + async render(viewport, intent = "display") { + if (intent !== "display") { + return; + } + + if (this._cancelled) { + return; + } + + const clonedViewport = viewport.clone({ + dontFlip: true + }); + + if (this.div) { + this.annotationEditorLayer.update({ + viewport: clonedViewport + }); + this.show(); + return; + } + + this.div = document.createElement("div"); + this.div.className = "annotationEditorLayer"; + this.div.tabIndex = 0; + this.pageDiv.append(this.div); + this.annotationEditorLayer = new _pdfjsLib.AnnotationEditorLayer({ + uiManager: this.#uiManager, + div: this.div, + annotationStorage: this.annotationStorage, + accessibilityManager: this.accessibilityManager, + pageIndex: this.pdfPage._pageIndex, + l10n: this.l10n, + viewport: clonedViewport + }); + const parameters = { + viewport: clonedViewport, + div: this.div, + annotations: null, + intent + }; + this.annotationEditorLayer.render(parameters); + } + + cancel() { + this._cancelled = true; + this.destroy(); + } + + hide() { + if (!this.div) { + return; + } + + this.div.hidden = true; + } + + show() { + if (!this.div) { + return; + } + + this.div.hidden = false; + } + + destroy() { + if (!this.div) { + return; + } + + this.pageDiv = null; + this.annotationEditorLayer.destroy(); + this.div.remove(); + } + +} + +exports.AnnotationEditorLayerBuilder = AnnotationEditorLayerBuilder; + +/***/ }), +/* 31 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.NullL10n = void 0; +exports.fixupLangCode = fixupLangCode; +exports.getL10nFallback = getL10nFallback; +const DEFAULT_L10N_STRINGS = { + of_pages: "of {{pagesCount}}", + page_of_pages: "({{pageNumber}} of {{pagesCount}})", + document_properties_kb: "{{size_kb}} KB ({{size_b}} bytes)", + document_properties_mb: "{{size_mb}} MB ({{size_b}} bytes)", + document_properties_date_string: "{{date}}, {{time}}", + document_properties_page_size_unit_inches: "in", + document_properties_page_size_unit_millimeters: "mm", + document_properties_page_size_orientation_portrait: "portrait", + document_properties_page_size_orientation_landscape: "landscape", + document_properties_page_size_name_a3: "A3", + document_properties_page_size_name_a4: "A4", + document_properties_page_size_name_letter: "Letter", + document_properties_page_size_name_legal: "Legal", + document_properties_page_size_dimension_string: "{{width}} × {{height}} {{unit}} ({{orientation}})", + document_properties_page_size_dimension_name_string: "{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})", + document_properties_linearized_yes: "Yes", + document_properties_linearized_no: "No", + print_progress_percent: "{{progress}}%", + "toggle_sidebar.title": "Toggle Sidebar", + "toggle_sidebar_notification2.title": "Toggle Sidebar (document contains outline/attachments/layers)", + additional_layers: "Additional Layers", + page_landmark: "Page {{page}}", + thumb_page_title: "Page {{page}}", + thumb_page_canvas: "Thumbnail of Page {{page}}", + find_reached_top: "Reached top of document, continued from bottom", + find_reached_bottom: "Reached end of document, continued from top", + "find_match_count[one]": "{{current}} of {{total}} match", + "find_match_count[other]": "{{current}} of {{total}} matches", + "find_match_count_limit[one]": "More than {{limit}} match", + "find_match_count_limit[other]": "More than {{limit}} matches", + find_not_found: "Phrase not found", + error_version_info: "PDF.js v{{version}} (build: {{build}})", + error_message: "Message: {{message}}", + error_stack: "Stack: {{stack}}", + error_file: "File: {{file}}", + error_line: "Line: {{line}}", + rendering_error: "An error occurred while rendering the page.", + page_scale_width: "Page Width", + page_scale_fit: "Page Fit", + page_scale_auto: "Automatic Zoom", + page_scale_actual: "Actual Size", + page_scale_percent: "{{scale}}%", + loading: "Loading…", + loading_error: "An error occurred while loading the PDF.", + invalid_file_error: "Invalid or corrupted PDF file.", + missing_file_error: "Missing PDF file.", + unexpected_response_error: "Unexpected server response.", + printing_not_supported: "Warning: Printing is not fully supported by this browser.", + printing_not_ready: "Warning: The PDF is not fully loaded for printing.", + web_fonts_disabled: "Web fonts are disabled: unable to use embedded PDF fonts.", + free_text_default_content: "Enter text…", + editor_free_text_aria_label: "FreeText Editor", + editor_ink_aria_label: "Ink Editor", + editor_ink_canvas_aria_label: "User-created image" +}; + +function getL10nFallback(key, args) { + switch (key) { + case "find_match_count": + key = `find_match_count[${args.total === 1 ? "one" : "other"}]`; + break; + + case "find_match_count_limit": + key = `find_match_count_limit[${args.limit === 1 ? "one" : "other"}]`; + break; + } + + return DEFAULT_L10N_STRINGS[key] || ""; +} + +const PARTIAL_LANG_CODES = { + en: "en-US", + es: "es-ES", + fy: "fy-NL", + ga: "ga-IE", + gu: "gu-IN", + hi: "hi-IN", + hy: "hy-AM", + nb: "nb-NO", + ne: "ne-NP", + nn: "nn-NO", + pa: "pa-IN", + pt: "pt-PT", + sv: "sv-SE", + zh: "zh-CN" +}; + +function fixupLangCode(langCode) { + return PARTIAL_LANG_CODES[langCode?.toLowerCase()] || langCode; +} + +function formatL10nValue(text, args) { + if (!args) { + return text; + } + + return text.replace(/\{\{\s*(\w+)\s*\}\}/g, (all, name) => { + return name in args ? args[name] : "{{" + name + "}}"; + }); +} + +const NullL10n = { + async getLanguage() { + return "en-us"; + }, + + async getDirection() { + return "ltr"; + }, + + async get(key, args = null, fallback = getL10nFallback(key, args)) { + return formatL10nValue(fallback, args); + }, + + async translate(element) {} + +}; +exports.NullL10n = NullL10n; + +/***/ }), +/* 32 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.AnnotationLayerBuilder = void 0; + +var _pdfjsLib = __webpack_require__(5); + +var _l10n_utils = __webpack_require__(31); + +class AnnotationLayerBuilder { + constructor({ + pageDiv, + pdfPage, + linkService, + downloadManager, + annotationStorage = null, + imageResourcesPath = "", + renderForms = true, + l10n = _l10n_utils.NullL10n, + enableScripting = false, + hasJSActionsPromise = null, + fieldObjectsPromise = null, + mouseState = null, + annotationCanvasMap = null, + accessibilityManager = null + }) { + this.pageDiv = pageDiv; + this.pdfPage = pdfPage; + this.linkService = linkService; + this.downloadManager = downloadManager; + this.imageResourcesPath = imageResourcesPath; + this.renderForms = renderForms; + this.l10n = l10n; + this.annotationStorage = annotationStorage; + this.enableScripting = enableScripting; + this._hasJSActionsPromise = hasJSActionsPromise; + this._fieldObjectsPromise = fieldObjectsPromise; + this._mouseState = mouseState; + this._annotationCanvasMap = annotationCanvasMap; + this._accessibilityManager = accessibilityManager; + this.div = null; + this._cancelled = false; + } + + async render(viewport, intent = "display") { + const [annotations, hasJSActions = false, fieldObjects = null] = await Promise.all([this.pdfPage.getAnnotations({ + intent + }), this._hasJSActionsPromise, this._fieldObjectsPromise]); + + if (this._cancelled || annotations.length === 0) { + return; + } + + const parameters = { + viewport: viewport.clone({ + dontFlip: true + }), + div: this.div, + annotations, + page: this.pdfPage, + imageResourcesPath: this.imageResourcesPath, + renderForms: this.renderForms, + linkService: this.linkService, + downloadManager: this.downloadManager, + annotationStorage: this.annotationStorage, + enableScripting: this.enableScripting, + hasJSActions, + fieldObjects, + mouseState: this._mouseState, + annotationCanvasMap: this._annotationCanvasMap, + accessibilityManager: this._accessibilityManager + }; + + if (this.div) { + _pdfjsLib.AnnotationLayer.update(parameters); + } else { + this.div = document.createElement("div"); + this.div.className = "annotationLayer"; + this.pageDiv.append(this.div); + parameters.div = this.div; + + _pdfjsLib.AnnotationLayer.render(parameters); + + this.l10n.translate(this.div); + } + } + + cancel() { + this._cancelled = true; + } + + hide() { + if (!this.div) { + return; + } + + this.div.hidden = true; + } + +} + +exports.AnnotationLayerBuilder = AnnotationLayerBuilder; + +/***/ }), +/* 33 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFPageView = void 0; + +var _pdfjsLib = __webpack_require__(5); + +var _ui_utils = __webpack_require__(1); + +var _app_options = __webpack_require__(2); + +var _l10n_utils = __webpack_require__(31); + +var _text_accessibility = __webpack_require__(34); + +const MAX_CANVAS_PIXELS = _app_options.compatibilityParams.maxCanvasPixels || 16777216; + +class PDFPageView { + #annotationMode = _pdfjsLib.AnnotationMode.ENABLE_FORMS; + #useThumbnailCanvas = { + initialOptionalContent: true, + regularAnnotations: true + }; + + constructor(options) { + const container = options.container; + const defaultViewport = options.defaultViewport; + this.id = options.id; + this.renderingId = "page" + this.id; + this.pdfPage = null; + this.pageLabel = null; + this.rotation = 0; + this.scale = options.scale || _ui_utils.DEFAULT_SCALE; + this.viewport = defaultViewport; + this.pdfPageRotate = defaultViewport.rotation; + this._optionalContentConfigPromise = options.optionalContentConfigPromise || null; + this.hasRestrictedScaling = false; + this.textLayerMode = options.textLayerMode ?? _ui_utils.TextLayerMode.ENABLE; + this.#annotationMode = options.annotationMode ?? _pdfjsLib.AnnotationMode.ENABLE_FORMS; + this.imageResourcesPath = options.imageResourcesPath || ""; + this.useOnlyCssZoom = options.useOnlyCssZoom || false; + this.maxCanvasPixels = options.maxCanvasPixels || MAX_CANVAS_PIXELS; + this.pageColors = options.pageColors || null; + this.eventBus = options.eventBus; + this.renderingQueue = options.renderingQueue; + this.textLayerFactory = options.textLayerFactory; + this.annotationLayerFactory = options.annotationLayerFactory; + this.annotationEditorLayerFactory = options.annotationEditorLayerFactory; + this.xfaLayerFactory = options.xfaLayerFactory; + this.textHighlighter = options.textHighlighterFactory?.createTextHighlighter({ + pageIndex: this.id - 1, + eventBus: this.eventBus + }); + this.structTreeLayerFactory = options.structTreeLayerFactory; + this.renderer = options.renderer || _ui_utils.RendererType.CANVAS; + this.l10n = options.l10n || _l10n_utils.NullL10n; + this.paintTask = null; + this.paintedViewportMap = new WeakMap(); + this.renderingState = _ui_utils.RenderingStates.INITIAL; + this.resume = null; + this._renderError = null; + this._isStandalone = !this.renderingQueue?.hasViewer(); + this._annotationCanvasMap = null; + this.annotationLayer = null; + this.annotationEditorLayer = null; + this.textLayer = null; + this.zoomLayer = null; + this.xfaLayer = null; + this.structTreeLayer = null; + const div = document.createElement("div"); + div.className = "page"; + div.style.width = Math.floor(this.viewport.width) + "px"; + div.style.height = Math.floor(this.viewport.height) + "px"; + div.setAttribute("data-page-number", this.id); + div.setAttribute("role", "region"); + this.l10n.get("page_landmark", { + page: this.id + }).then(msg => { + div.setAttribute("aria-label", msg); + }); + this.div = div; + container?.append(div); + + if (this._isStandalone) { + const { + optionalContentConfigPromise + } = options; + + if (optionalContentConfigPromise) { + optionalContentConfigPromise.then(optionalContentConfig => { + if (optionalContentConfigPromise !== this._optionalContentConfigPromise) { + return; + } + + this.#useThumbnailCanvas.initialOptionalContent = optionalContentConfig.hasInitialVisibility; + }); + } + } + } + + setPdfPage(pdfPage) { + this.pdfPage = pdfPage; + this.pdfPageRotate = pdfPage.rotate; + const totalRotation = (this.rotation + this.pdfPageRotate) % 360; + this.viewport = pdfPage.getViewport({ + scale: this.scale * _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS, + rotation: totalRotation + }); + this.reset(); + } + + destroy() { + this.reset(); + + if (this.pdfPage) { + this.pdfPage.cleanup(); + } + } + + async _renderAnnotationLayer() { + let error = null; + + try { + await this.annotationLayer.render(this.viewport, "display"); + } catch (ex) { + console.error(`_renderAnnotationLayer: "${ex}".`); + error = ex; + } finally { + this.eventBus.dispatch("annotationlayerrendered", { + source: this, + pageNumber: this.id, + error + }); + } + } + + async _renderAnnotationEditorLayer() { + let error = null; + + try { + await this.annotationEditorLayer.render(this.viewport, "display"); + } catch (ex) { + console.error(`_renderAnnotationEditorLayer: "${ex}".`); + error = ex; + } finally { + this.eventBus.dispatch("annotationeditorlayerrendered", { + source: this, + pageNumber: this.id, + error + }); + } + } + + async _renderXfaLayer() { + let error = null; + + try { + const result = await this.xfaLayer.render(this.viewport, "display"); + + if (this.textHighlighter) { + this._buildXfaTextContentItems(result.textDivs); + } + } catch (ex) { + console.error(`_renderXfaLayer: "${ex}".`); + error = ex; + } finally { + this.eventBus.dispatch("xfalayerrendered", { + source: this, + pageNumber: this.id, + error + }); + } + } + + async _buildXfaTextContentItems(textDivs) { + const text = await this.pdfPage.getTextContent(); + const items = []; + + for (const item of text.items) { + items.push(item.str); + } + + this.textHighlighter.setTextMapping(textDivs, items); + this.textHighlighter.enable(); + } + + _resetZoomLayer(removeFromDOM = false) { + if (!this.zoomLayer) { + return; + } + + const zoomLayerCanvas = this.zoomLayer.firstChild; + this.paintedViewportMap.delete(zoomLayerCanvas); + zoomLayerCanvas.width = 0; + zoomLayerCanvas.height = 0; + + if (removeFromDOM) { + this.zoomLayer.remove(); + } + + this.zoomLayer = null; + } + + reset({ + keepZoomLayer = false, + keepAnnotationLayer = false, + keepAnnotationEditorLayer = false, + keepXfaLayer = false + } = {}) { + this.cancelRendering({ + keepAnnotationLayer, + keepAnnotationEditorLayer, + keepXfaLayer + }); + this.renderingState = _ui_utils.RenderingStates.INITIAL; + const div = this.div; + div.style.width = Math.floor(this.viewport.width) + "px"; + div.style.height = Math.floor(this.viewport.height) + "px"; + const childNodes = div.childNodes, + zoomLayerNode = keepZoomLayer && this.zoomLayer || null, + annotationLayerNode = keepAnnotationLayer && this.annotationLayer?.div || null, + annotationEditorLayerNode = keepAnnotationEditorLayer && this.annotationEditorLayer?.div || null, + xfaLayerNode = keepXfaLayer && this.xfaLayer?.div || null; + + for (let i = childNodes.length - 1; i >= 0; i--) { + const node = childNodes[i]; + + switch (node) { + case zoomLayerNode: + case annotationLayerNode: + case annotationEditorLayerNode: + case xfaLayerNode: + continue; + } + + node.remove(); + } + + div.removeAttribute("data-loaded"); + + if (annotationLayerNode) { + this.annotationLayer.hide(); + } + + if (annotationEditorLayerNode) { + this.annotationEditorLayer.hide(); + } else { + this.annotationEditorLayer?.destroy(); + } + + if (xfaLayerNode) { + this.xfaLayer.hide(); + } + + if (!zoomLayerNode) { + if (this.canvas) { + this.paintedViewportMap.delete(this.canvas); + this.canvas.width = 0; + this.canvas.height = 0; + delete this.canvas; + } + + this._resetZoomLayer(); + } + + if (this.svg) { + this.paintedViewportMap.delete(this.svg); + delete this.svg; + } + + this.loadingIconDiv = document.createElement("div"); + this.loadingIconDiv.className = "loadingIcon notVisible"; + + if (this._isStandalone) { + this.toggleLoadingIconSpinner(true); + } + + this.loadingIconDiv.setAttribute("role", "img"); + this.l10n.get("loading").then(msg => { + this.loadingIconDiv?.setAttribute("aria-label", msg); + }); + div.append(this.loadingIconDiv); + } + + update({ + scale = 0, + rotation = null, + optionalContentConfigPromise = null + }) { + this.scale = scale || this.scale; + + if (typeof rotation === "number") { + this.rotation = rotation; + } + + if (optionalContentConfigPromise instanceof Promise) { + this._optionalContentConfigPromise = optionalContentConfigPromise; + optionalContentConfigPromise.then(optionalContentConfig => { + if (optionalContentConfigPromise !== this._optionalContentConfigPromise) { + return; + } + + this.#useThumbnailCanvas.initialOptionalContent = optionalContentConfig.hasInitialVisibility; + }); + } + + const totalRotation = (this.rotation + this.pdfPageRotate) % 360; + this.viewport = this.viewport.clone({ + scale: this.scale * _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS, + rotation: totalRotation + }); + + if (this._isStandalone) { + _ui_utils.docStyle.setProperty("--scale-factor", this.viewport.scale); + } + + if (this.svg) { + this.cssTransform({ + target: this.svg, + redrawAnnotationLayer: true, + redrawAnnotationEditorLayer: true, + redrawXfaLayer: true + }); + this.eventBus.dispatch("pagerendered", { + source: this, + pageNumber: this.id, + cssTransform: true, + timestamp: performance.now(), + error: this._renderError + }); + return; + } + + let isScalingRestricted = false; + + if (this.canvas && this.maxCanvasPixels > 0) { + const outputScale = this.outputScale; + + if ((Math.floor(this.viewport.width) * outputScale.sx | 0) * (Math.floor(this.viewport.height) * outputScale.sy | 0) > this.maxCanvasPixels) { + isScalingRestricted = true; + } + } + + if (this.canvas) { + if (this.useOnlyCssZoom || this.hasRestrictedScaling && isScalingRestricted) { + this.cssTransform({ + target: this.canvas, + redrawAnnotationLayer: true, + redrawAnnotationEditorLayer: true, + redrawXfaLayer: true + }); + this.eventBus.dispatch("pagerendered", { + source: this, + pageNumber: this.id, + cssTransform: true, + timestamp: performance.now(), + error: this._renderError + }); + return; + } + + if (!this.zoomLayer && !this.canvas.hidden) { + this.zoomLayer = this.canvas.parentNode; + this.zoomLayer.style.position = "absolute"; + } + } + + if (this.zoomLayer) { + this.cssTransform({ + target: this.zoomLayer.firstChild + }); + } + + this.reset({ + keepZoomLayer: true, + keepAnnotationLayer: true, + keepAnnotationEditorLayer: true, + keepXfaLayer: true + }); + } + + cancelRendering({ + keepAnnotationLayer = false, + keepAnnotationEditorLayer = false, + keepXfaLayer = false + } = {}) { + if (this.paintTask) { + this.paintTask.cancel(); + this.paintTask = null; + } + + this.resume = null; + + if (this.textLayer) { + this.textLayer.cancel(); + this.textLayer = null; + } + + if (this.annotationLayer && (!keepAnnotationLayer || !this.annotationLayer.div)) { + this.annotationLayer.cancel(); + this.annotationLayer = null; + this._annotationCanvasMap = null; + } + + if (this.annotationEditorLayer && (!keepAnnotationEditorLayer || !this.annotationEditorLayer.div)) { + this.annotationEditorLayer.cancel(); + this.annotationEditorLayer = null; + } + + if (this.xfaLayer && (!keepXfaLayer || !this.xfaLayer.div)) { + this.xfaLayer.cancel(); + this.xfaLayer = null; + this.textHighlighter?.disable(); + } + + if (this._onTextLayerRendered) { + this.eventBus._off("textlayerrendered", this._onTextLayerRendered); + + this._onTextLayerRendered = null; + } + } + + cssTransform({ + target, + redrawAnnotationLayer = false, + redrawAnnotationEditorLayer = false, + redrawXfaLayer = false + }) { + const width = this.viewport.width; + const height = this.viewport.height; + const div = this.div; + target.style.width = target.parentNode.style.width = div.style.width = Math.floor(width) + "px"; + target.style.height = target.parentNode.style.height = div.style.height = Math.floor(height) + "px"; + const relativeRotation = this.viewport.rotation - this.paintedViewportMap.get(target).rotation; + const absRotation = Math.abs(relativeRotation); + let scaleX = 1, + scaleY = 1; + + if (absRotation === 90 || absRotation === 270) { + scaleX = height / width; + scaleY = width / height; + } + + target.style.transform = `rotate(${relativeRotation}deg) scale(${scaleX}, ${scaleY})`; + + if (this.textLayer) { + const textLayerViewport = this.textLayer.viewport; + const textRelativeRotation = this.viewport.rotation - textLayerViewport.rotation; + const textAbsRotation = Math.abs(textRelativeRotation); + let scale = width / textLayerViewport.width; + + if (textAbsRotation === 90 || textAbsRotation === 270) { + scale = width / textLayerViewport.height; + } + + const textLayerDiv = this.textLayer.textLayerDiv; + let transX, transY; + + switch (textAbsRotation) { + case 0: + transX = transY = 0; + break; + + case 90: + transX = 0; + transY = "-" + textLayerDiv.style.height; + break; + + case 180: + transX = "-" + textLayerDiv.style.width; + transY = "-" + textLayerDiv.style.height; + break; + + case 270: + transX = "-" + textLayerDiv.style.width; + transY = 0; + break; + + default: + console.error("Bad rotation value."); + break; + } + + textLayerDiv.style.transform = `rotate(${textAbsRotation}deg) ` + `scale(${scale}) ` + `translate(${transX}, ${transY})`; + textLayerDiv.style.transformOrigin = "0% 0%"; + } + + if (redrawAnnotationLayer && this.annotationLayer) { + this._renderAnnotationLayer(); + } + + if (redrawAnnotationEditorLayer && this.annotationEditorLayer) { + this._renderAnnotationEditorLayer(); + } + + if (redrawXfaLayer && this.xfaLayer) { + this._renderXfaLayer(); + } + } + + get width() { + return this.viewport.width; + } + + get height() { + return this.viewport.height; + } + + getPagePoint(x, y) { + return this.viewport.convertToPdfPoint(x, y); + } + + toggleLoadingIconSpinner(viewVisible = false) { + this.loadingIconDiv?.classList.toggle("notVisible", !viewVisible); + } + + draw() { + if (this.renderingState !== _ui_utils.RenderingStates.INITIAL) { + console.error("Must be in new state before drawing"); + this.reset(); + } + + const { + div, + pdfPage + } = this; + + if (!pdfPage) { + this.renderingState = _ui_utils.RenderingStates.FINISHED; + + if (this.loadingIconDiv) { + this.loadingIconDiv.remove(); + delete this.loadingIconDiv; + } + + return Promise.reject(new Error("pdfPage is not loaded")); + } + + this.renderingState = _ui_utils.RenderingStates.RUNNING; + const canvasWrapper = document.createElement("div"); + canvasWrapper.style.width = div.style.width; + canvasWrapper.style.height = div.style.height; + canvasWrapper.classList.add("canvasWrapper"); + const lastDivBeforeTextDiv = this.annotationLayer?.div || this.annotationEditorLayer?.div; + + if (lastDivBeforeTextDiv) { + lastDivBeforeTextDiv.before(canvasWrapper); + } else { + div.append(canvasWrapper); + } + + let textLayer = null; + + if (this.textLayerMode !== _ui_utils.TextLayerMode.DISABLE && this.textLayerFactory) { + this._accessibilityManager ||= new _text_accessibility.TextAccessibilityManager(); + const textLayerDiv = document.createElement("div"); + textLayerDiv.className = "textLayer"; + textLayerDiv.style.width = canvasWrapper.style.width; + textLayerDiv.style.height = canvasWrapper.style.height; + + if (lastDivBeforeTextDiv) { + lastDivBeforeTextDiv.before(textLayerDiv); + } else { + div.append(textLayerDiv); + } + + textLayer = this.textLayerFactory.createTextLayerBuilder({ + textLayerDiv, + pageIndex: this.id - 1, + viewport: this.viewport, + enhanceTextSelection: this.textLayerMode === _ui_utils.TextLayerMode.ENABLE_ENHANCE, + eventBus: this.eventBus, + highlighter: this.textHighlighter, + accessibilityManager: this._accessibilityManager + }); + } + + this.textLayer = textLayer; + + if (this.#annotationMode !== _pdfjsLib.AnnotationMode.DISABLE && this.annotationLayerFactory) { + this._annotationCanvasMap ||= new Map(); + this.annotationLayer ||= this.annotationLayerFactory.createAnnotationLayerBuilder({ + pageDiv: div, + pdfPage, + imageResourcesPath: this.imageResourcesPath, + renderForms: this.#annotationMode === _pdfjsLib.AnnotationMode.ENABLE_FORMS, + l10n: this.l10n, + annotationCanvasMap: this._annotationCanvasMap, + accessibilityManager: this._accessibilityManager + }); + } + + if (this.xfaLayer?.div) { + div.append(this.xfaLayer.div); + } + + let renderContinueCallback = null; + + if (this.renderingQueue) { + renderContinueCallback = cont => { + if (!this.renderingQueue.isHighestPriority(this)) { + this.renderingState = _ui_utils.RenderingStates.PAUSED; + + this.resume = () => { + this.renderingState = _ui_utils.RenderingStates.RUNNING; + cont(); + }; + + return; + } + + cont(); + }; + } + + const finishPaintTask = async (error = null) => { + if (paintTask === this.paintTask) { + this.paintTask = null; + } + + if (error instanceof _pdfjsLib.RenderingCancelledException) { + this._renderError = null; + return; + } + + this._renderError = error; + this.renderingState = _ui_utils.RenderingStates.FINISHED; + + if (this.loadingIconDiv) { + this.loadingIconDiv.remove(); + delete this.loadingIconDiv; + } + + this._resetZoomLayer(true); + + this.#useThumbnailCanvas.regularAnnotations = !paintTask.separateAnnots; + this.eventBus.dispatch("pagerendered", { + source: this, + pageNumber: this.id, + cssTransform: false, + timestamp: performance.now(), + error: this._renderError + }); + + if (error) { + throw error; + } + }; + + const paintTask = this.renderer === _ui_utils.RendererType.SVG ? this.paintOnSvg(canvasWrapper) : this.paintOnCanvas(canvasWrapper); + paintTask.onRenderContinue = renderContinueCallback; + this.paintTask = paintTask; + const resultPromise = paintTask.promise.then(() => { + return finishPaintTask(null).then(() => { + if (textLayer) { + const readableStream = pdfPage.streamTextContent({ + includeMarkedContent: true + }); + textLayer.setTextContentStream(readableStream); + textLayer.render(); + } + + if (this.annotationLayer) { + this._renderAnnotationLayer().then(() => { + if (this.annotationEditorLayerFactory) { + this.annotationEditorLayer ||= this.annotationEditorLayerFactory.createAnnotationEditorLayerBuilder({ + pageDiv: div, + pdfPage, + l10n: this.l10n, + accessibilityManager: this._accessibilityManager + }); + + this._renderAnnotationEditorLayer(); + } + }); + } + }); + }, function (reason) { + return finishPaintTask(reason); + }); + + if (this.xfaLayerFactory) { + this.xfaLayer ||= this.xfaLayerFactory.createXfaLayerBuilder({ + pageDiv: div, + pdfPage + }); + + this._renderXfaLayer(); + } + + if (this.structTreeLayerFactory && this.textLayer && this.canvas) { + this._onTextLayerRendered = event => { + if (event.pageNumber !== this.id) { + return; + } + + this.eventBus._off("textlayerrendered", this._onTextLayerRendered); + + this._onTextLayerRendered = null; + + if (!this.canvas) { + return; + } + + this.pdfPage.getStructTree().then(tree => { + if (!tree) { + return; + } + + if (!this.canvas) { + return; + } + + const treeDom = this.structTreeLayer.render(tree); + treeDom.classList.add("structTree"); + this.canvas.append(treeDom); + }); + }; + + this.eventBus._on("textlayerrendered", this._onTextLayerRendered); + + this.structTreeLayer = this.structTreeLayerFactory.createStructTreeLayerBuilder({ + pdfPage + }); + } + + div.setAttribute("data-loaded", true); + this.eventBus.dispatch("pagerender", { + source: this, + pageNumber: this.id + }); + return resultPromise; + } + + paintOnCanvas(canvasWrapper) { + const renderCapability = (0, _pdfjsLib.createPromiseCapability)(); + const result = { + promise: renderCapability.promise, + + onRenderContinue(cont) { + cont(); + }, + + cancel() { + renderTask.cancel(); + }, + + get separateAnnots() { + return renderTask.separateAnnots; + } + + }; + const viewport = this.viewport; + const canvas = document.createElement("canvas"); + canvas.setAttribute("role", "presentation"); + canvas.hidden = true; + let isCanvasHidden = true; + + const showCanvas = function () { + if (isCanvasHidden) { + canvas.hidden = false; + isCanvasHidden = false; + } + }; + + canvasWrapper.append(canvas); + this.canvas = canvas; + const ctx = canvas.getContext("2d", { + alpha: false + }); + const outputScale = this.outputScale = new _ui_utils.OutputScale(); + + if (this.useOnlyCssZoom) { + const actualSizeViewport = viewport.clone({ + scale: _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS + }); + outputScale.sx *= actualSizeViewport.width / viewport.width; + outputScale.sy *= actualSizeViewport.height / viewport.height; + } + + if (this.maxCanvasPixels > 0) { + const pixelsInViewport = viewport.width * viewport.height; + const maxScale = Math.sqrt(this.maxCanvasPixels / pixelsInViewport); + + if (outputScale.sx > maxScale || outputScale.sy > maxScale) { + outputScale.sx = maxScale; + outputScale.sy = maxScale; + this.hasRestrictedScaling = true; + } else { + this.hasRestrictedScaling = false; + } + } + + const sfx = (0, _ui_utils.approximateFraction)(outputScale.sx); + const sfy = (0, _ui_utils.approximateFraction)(outputScale.sy); + canvas.width = (0, _ui_utils.roundToDivide)(viewport.width * outputScale.sx, sfx[0]); + canvas.height = (0, _ui_utils.roundToDivide)(viewport.height * outputScale.sy, sfy[0]); + canvas.style.width = (0, _ui_utils.roundToDivide)(viewport.width, sfx[1]) + "px"; + canvas.style.height = (0, _ui_utils.roundToDivide)(viewport.height, sfy[1]) + "px"; + this.paintedViewportMap.set(canvas, viewport); + const transform = outputScale.scaled ? [outputScale.sx, 0, 0, outputScale.sy, 0, 0] : null; + const renderContext = { + canvasContext: ctx, + transform, + viewport: this.viewport, + annotationMode: this.#annotationMode, + optionalContentConfigPromise: this._optionalContentConfigPromise, + annotationCanvasMap: this._annotationCanvasMap, + pageColors: this.pageColors + }; + const renderTask = this.pdfPage.render(renderContext); + + renderTask.onContinue = function (cont) { + showCanvas(); + + if (result.onRenderContinue) { + result.onRenderContinue(cont); + } else { + cont(); + } + }; + + renderTask.promise.then(function () { + showCanvas(); + renderCapability.resolve(); + }, function (error) { + showCanvas(); + renderCapability.reject(error); + }); + return result; + } + + paintOnSvg(wrapper) { + let cancelled = false; + + const ensureNotCancelled = () => { + if (cancelled) { + throw new _pdfjsLib.RenderingCancelledException(`Rendering cancelled, page ${this.id}`, "svg"); + } + }; + + const pdfPage = this.pdfPage; + const actualSizeViewport = this.viewport.clone({ + scale: _pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS + }); + const promise = pdfPage.getOperatorList({ + annotationMode: this.#annotationMode + }).then(opList => { + ensureNotCancelled(); + const svgGfx = new _pdfjsLib.SVGGraphics(pdfPage.commonObjs, pdfPage.objs); + return svgGfx.getSVG(opList, actualSizeViewport).then(svg => { + ensureNotCancelled(); + this.svg = svg; + this.paintedViewportMap.set(svg, actualSizeViewport); + svg.style.width = wrapper.style.width; + svg.style.height = wrapper.style.height; + this.renderingState = _ui_utils.RenderingStates.FINISHED; + wrapper.append(svg); + }); + }); + return { + promise, + + onRenderContinue(cont) { + cont(); + }, + + cancel() { + cancelled = true; + }, + + get separateAnnots() { + return false; + } + + }; + } + + setPageLabel(label) { + this.pageLabel = typeof label === "string" ? label : null; + + if (this.pageLabel !== null) { + this.div.setAttribute("data-page-label", this.pageLabel); + } else { + this.div.removeAttribute("data-page-label"); + } + } + + get thumbnailCanvas() { + const { + initialOptionalContent, + regularAnnotations + } = this.#useThumbnailCanvas; + return initialOptionalContent && regularAnnotations ? this.canvas : null; + } + +} + +exports.PDFPageView = PDFPageView; + +/***/ }), +/* 34 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.TextAccessibilityManager = void 0; + +var _ui_utils = __webpack_require__(1); + +class TextAccessibilityManager { + #enabled = false; + #textChildren = null; + #textNodes = new Map(); + #waitingElements = new Map(); + + setTextMapping(textDivs) { + this.#textChildren = textDivs; + } + + static #compareElementPositions(e1, e2) { + const rect1 = e1.getBoundingClientRect(); + const rect2 = e2.getBoundingClientRect(); + + if (rect1.width === 0 && rect1.height === 0) { + return +1; + } + + if (rect2.width === 0 && rect2.height === 0) { + return -1; + } + + const top1 = rect1.y; + const bot1 = rect1.y + rect1.height; + const mid1 = rect1.y + rect1.height / 2; + const top2 = rect2.y; + const bot2 = rect2.y + rect2.height; + const mid2 = rect2.y + rect2.height / 2; + + if (mid1 <= top2 && mid2 >= bot1) { + return -1; + } + + if (mid2 <= top1 && mid1 >= bot2) { + return +1; + } + + const centerX1 = rect1.x + rect1.width / 2; + const centerX2 = rect2.x + rect2.width / 2; + return centerX1 - centerX2; + } + + enable() { + if (this.#enabled) { + throw new Error("TextAccessibilityManager is already enabled."); + } + + if (!this.#textChildren) { + throw new Error("Text divs and strings have not been set."); + } + + this.#enabled = true; + this.#textChildren = this.#textChildren.slice(); + this.#textChildren.sort(TextAccessibilityManager.#compareElementPositions); + + if (this.#textNodes.size > 0) { + const textChildren = this.#textChildren; + + for (const [id, nodeIndex] of this.#textNodes) { + const element = document.getElementById(id); + + if (!element) { + this.#textNodes.delete(id); + continue; + } + + this.#addIdToAriaOwns(id, textChildren[nodeIndex]); + } + } + + for (const [element, isRemovable] of this.#waitingElements) { + this.addPointerInTextLayer(element, isRemovable); + } + + this.#waitingElements.clear(); + } + + disable() { + if (!this.#enabled) { + return; + } + + this.#waitingElements.clear(); + this.#textChildren = null; + this.#enabled = false; + } + + removePointerInTextLayer(element) { + if (!this.#enabled) { + this.#waitingElements.delete(element); + return; + } + + const children = this.#textChildren; + + if (!children || children.length === 0) { + return; + } + + const { + id + } = element; + const nodeIndex = this.#textNodes.get(id); + + if (nodeIndex === undefined) { + return; + } + + const node = children[nodeIndex]; + this.#textNodes.delete(id); + let owns = node.getAttribute("aria-owns"); + + if (owns?.includes(id)) { + owns = owns.split(" ").filter(x => x !== id).join(" "); + + if (owns) { + node.setAttribute("aria-owns", owns); + } else { + node.removeAttribute("aria-owns"); + node.setAttribute("role", "presentation"); + } + } + } + + #addIdToAriaOwns(id, node) { + const owns = node.getAttribute("aria-owns"); + + if (!owns?.includes(id)) { + node.setAttribute("aria-owns", owns ? `${owns} ${id}` : id); + } + + node.removeAttribute("role"); + } + + addPointerInTextLayer(element, isRemovable) { + const { + id + } = element; + + if (!id) { + return; + } + + if (!this.#enabled) { + this.#waitingElements.set(element, isRemovable); + return; + } + + if (isRemovable) { + this.removePointerInTextLayer(element); + } + + const children = this.#textChildren; + + if (!children || children.length === 0) { + return; + } + + const index = (0, _ui_utils.binarySearchFirstItem)(children, node => TextAccessibilityManager.#compareElementPositions(element, node) < 0); + const nodeIndex = Math.max(0, index - 1); + this.#addIdToAriaOwns(id, children[nodeIndex]); + this.#textNodes.set(id, nodeIndex); + } + + moveElementInDOM(container, element, contentElement, isRemovable) { + this.addPointerInTextLayer(contentElement, isRemovable); + + if (!container.hasChildNodes()) { + container.append(element); + return; + } + + const children = Array.from(container.childNodes).filter(node => node !== element); + + if (children.length === 0) { + return; + } + + const elementToCompare = contentElement || element; + const index = (0, _ui_utils.binarySearchFirstItem)(children, node => TextAccessibilityManager.#compareElementPositions(elementToCompare, node) < 0); + + if (index === 0) { + children[0].before(element); + } else { + children[index - 1].after(element); + } + } + +} + +exports.TextAccessibilityManager = TextAccessibilityManager; + +/***/ }), +/* 35 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.StructTreeLayerBuilder = void 0; +const PDF_ROLE_TO_HTML_ROLE = { + Document: null, + DocumentFragment: null, + Part: "group", + Sect: "group", + Div: "group", + Aside: "note", + NonStruct: "none", + P: null, + H: "heading", + Title: null, + FENote: "note", + Sub: "group", + Lbl: null, + Span: null, + Em: null, + Strong: null, + Link: "link", + Annot: "note", + Form: "form", + Ruby: null, + RB: null, + RT: null, + RP: null, + Warichu: null, + WT: null, + WP: null, + L: "list", + LI: "listitem", + LBody: null, + Table: "table", + TR: "row", + TH: "columnheader", + TD: "cell", + THead: "columnheader", + TBody: null, + TFoot: null, + Caption: null, + Figure: "figure", + Formula: null, + Artifact: null +}; +const HEADING_PATTERN = /^H(\d+)$/; + +class StructTreeLayerBuilder { + constructor({ + pdfPage + }) { + this.pdfPage = pdfPage; + } + + render(structTree) { + return this._walk(structTree); + } + + _setAttributes(structElement, htmlElement) { + if (structElement.alt !== undefined) { + htmlElement.setAttribute("aria-label", structElement.alt); + } + + if (structElement.id !== undefined) { + htmlElement.setAttribute("aria-owns", structElement.id); + } + + if (structElement.lang !== undefined) { + htmlElement.setAttribute("lang", structElement.lang); + } + } + + _walk(node) { + if (!node) { + return null; + } + + const element = document.createElement("span"); + + if ("role" in node) { + const { + role + } = node; + const match = role.match(HEADING_PATTERN); + + if (match) { + element.setAttribute("role", "heading"); + element.setAttribute("aria-level", match[1]); + } else if (PDF_ROLE_TO_HTML_ROLE[role]) { + element.setAttribute("role", PDF_ROLE_TO_HTML_ROLE[role]); + } + } + + this._setAttributes(node, element); + + if (node.children) { + if (node.children.length === 1 && "id" in node.children[0]) { + this._setAttributes(node.children[0], element); + } else { + for (const kid of node.children) { + element.append(this._walk(kid)); + } + } + } + + return element; + } + +} + +exports.StructTreeLayerBuilder = StructTreeLayerBuilder; + +/***/ }), +/* 36 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.TextHighlighter = void 0; + +class TextHighlighter { + constructor({ + findController, + eventBus, + pageIndex + }) { + this.findController = findController; + this.matches = []; + this.eventBus = eventBus; + this.pageIdx = pageIndex; + this._onUpdateTextLayerMatches = null; + this.textDivs = null; + this.textContentItemsStr = null; + this.enabled = false; + } + + setTextMapping(divs, texts) { + this.textDivs = divs; + this.textContentItemsStr = texts; + } + + enable() { + if (!this.textDivs || !this.textContentItemsStr) { + throw new Error("Text divs and strings have not been set."); + } + + if (this.enabled) { + throw new Error("TextHighlighter is already enabled."); + } + + this.enabled = true; + + if (!this._onUpdateTextLayerMatches) { + this._onUpdateTextLayerMatches = evt => { + if (evt.pageIndex === this.pageIdx || evt.pageIndex === -1) { + this._updateMatches(); + } + }; + + this.eventBus._on("updatetextlayermatches", this._onUpdateTextLayerMatches); + } + + this._updateMatches(); + } + + disable() { + if (!this.enabled) { + return; + } + + this.enabled = false; + + if (this._onUpdateTextLayerMatches) { + this.eventBus._off("updatetextlayermatches", this._onUpdateTextLayerMatches); + + this._onUpdateTextLayerMatches = null; + } + } + + _convertMatches(matches, matchesLength) { + if (!matches) { + return []; + } + + const { + textContentItemsStr + } = this; + let i = 0, + iIndex = 0; + const end = textContentItemsStr.length - 1; + const result = []; + + for (let m = 0, mm = matches.length; m < mm; m++) { + let matchIdx = matches[m]; + + while (i !== end && matchIdx >= iIndex + textContentItemsStr[i].length) { + iIndex += textContentItemsStr[i].length; + i++; + } + + if (i === textContentItemsStr.length) { + console.error("Could not find a matching mapping"); + } + + const match = { + begin: { + divIdx: i, + offset: matchIdx - iIndex + } + }; + matchIdx += matchesLength[m]; + + while (i !== end && matchIdx > iIndex + textContentItemsStr[i].length) { + iIndex += textContentItemsStr[i].length; + i++; + } + + match.end = { + divIdx: i, + offset: matchIdx - iIndex + }; + result.push(match); + } + + return result; + } + + _renderMatches(matches) { + if (matches.length === 0) { + return; + } + + const { + findController, + pageIdx + } = this; + const { + textContentItemsStr, + textDivs + } = this; + const isSelectedPage = pageIdx === findController.selected.pageIdx; + const selectedMatchIdx = findController.selected.matchIdx; + const highlightAll = findController.state.highlightAll; + let prevEnd = null; + const infinity = { + divIdx: -1, + offset: undefined + }; + + function beginText(begin, className) { + const divIdx = begin.divIdx; + textDivs[divIdx].textContent = ""; + return appendTextToDiv(divIdx, 0, begin.offset, className); + } + + function appendTextToDiv(divIdx, fromOffset, toOffset, className) { + let div = textDivs[divIdx]; + + if (div.nodeType === Node.TEXT_NODE) { + const span = document.createElement("span"); + div.before(span); + span.append(div); + textDivs[divIdx] = span; + div = span; + } + + const content = textContentItemsStr[divIdx].substring(fromOffset, toOffset); + const node = document.createTextNode(content); + + if (className) { + const span = document.createElement("span"); + span.className = `${className} appended`; + span.append(node); + div.append(span); + return className.includes("selected") ? span.offsetLeft : 0; + } + + div.append(node); + return 0; + } + + let i0 = selectedMatchIdx, + i1 = i0 + 1; + + if (highlightAll) { + i0 = 0; + i1 = matches.length; + } else if (!isSelectedPage) { + return; + } + + for (let i = i0; i < i1; i++) { + const match = matches[i]; + const begin = match.begin; + const end = match.end; + const isSelected = isSelectedPage && i === selectedMatchIdx; + const highlightSuffix = isSelected ? " selected" : ""; + let selectedLeft = 0; + + if (!prevEnd || begin.divIdx !== prevEnd.divIdx) { + if (prevEnd !== null) { + appendTextToDiv(prevEnd.divIdx, prevEnd.offset, infinity.offset); + } + + beginText(begin); + } else { + appendTextToDiv(prevEnd.divIdx, prevEnd.offset, begin.offset); + } + + if (begin.divIdx === end.divIdx) { + selectedLeft = appendTextToDiv(begin.divIdx, begin.offset, end.offset, "highlight" + highlightSuffix); + } else { + selectedLeft = appendTextToDiv(begin.divIdx, begin.offset, infinity.offset, "highlight begin" + highlightSuffix); + + for (let n0 = begin.divIdx + 1, n1 = end.divIdx; n0 < n1; n0++) { + textDivs[n0].className = "highlight middle" + highlightSuffix; + } + + beginText(end, "highlight end" + highlightSuffix); + } + + prevEnd = end; + + if (isSelected) { + findController.scrollMatchIntoView({ + element: textDivs[begin.divIdx], + selectedLeft, + pageIndex: pageIdx, + matchIndex: selectedMatchIdx + }); + } + } + + if (prevEnd) { + appendTextToDiv(prevEnd.divIdx, prevEnd.offset, infinity.offset); + } + } + + _updateMatches() { + if (!this.enabled) { + return; + } + + const { + findController, + matches, + pageIdx + } = this; + const { + textContentItemsStr, + textDivs + } = this; + let clearedUntilDivIdx = -1; + + for (let i = 0, ii = matches.length; i < ii; i++) { + const match = matches[i]; + const begin = Math.max(clearedUntilDivIdx, match.begin.divIdx); + + for (let n = begin, end = match.end.divIdx; n <= end; n++) { + const div = textDivs[n]; + div.textContent = textContentItemsStr[n]; + div.className = ""; + } + + clearedUntilDivIdx = match.end.divIdx + 1; + } + + if (!findController?.highlightMatches) { + return; + } + + const pageMatches = findController.pageMatches[pageIdx] || null; + const pageMatchesLength = findController.pageMatchesLength[pageIdx] || null; + this.matches = this._convertMatches(pageMatches, pageMatchesLength); + + this._renderMatches(this.matches); + } + +} + +exports.TextHighlighter = TextHighlighter; + +/***/ }), +/* 37 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.TextLayerBuilder = void 0; + +var _pdfjsLib = __webpack_require__(5); + +const EXPAND_DIVS_TIMEOUT = 300; + +class TextLayerBuilder { + constructor({ + textLayerDiv, + eventBus, + pageIndex, + viewport, + highlighter = null, + enhanceTextSelection = false, + accessibilityManager = null + }) { + this.textLayerDiv = textLayerDiv; + this.eventBus = eventBus; + this.textContent = null; + this.textContentItemsStr = []; + this.textContentStream = null; + this.renderingDone = false; + this.pageNumber = pageIndex + 1; + this.viewport = viewport; + this.textDivs = []; + this.textLayerRenderTask = null; + this.highlighter = highlighter; + this.enhanceTextSelection = enhanceTextSelection; + this.accessibilityManager = accessibilityManager; + + this._bindMouse(); + } + + _finishRendering() { + this.renderingDone = true; + + if (!this.enhanceTextSelection) { + const endOfContent = document.createElement("div"); + endOfContent.className = "endOfContent"; + this.textLayerDiv.append(endOfContent); + } + + this.eventBus.dispatch("textlayerrendered", { + source: this, + pageNumber: this.pageNumber, + numTextDivs: this.textDivs.length + }); + } + + render(timeout = 0) { + if (!(this.textContent || this.textContentStream) || this.renderingDone) { + return; + } + + this.cancel(); + this.textDivs.length = 0; + this.highlighter?.setTextMapping(this.textDivs, this.textContentItemsStr); + this.accessibilityManager?.setTextMapping(this.textDivs); + const textLayerFrag = document.createDocumentFragment(); + this.textLayerRenderTask = (0, _pdfjsLib.renderTextLayer)({ + textContent: this.textContent, + textContentStream: this.textContentStream, + container: textLayerFrag, + viewport: this.viewport, + textDivs: this.textDivs, + textContentItemsStr: this.textContentItemsStr, + timeout, + enhanceTextSelection: this.enhanceTextSelection + }); + this.textLayerRenderTask.promise.then(() => { + this.textLayerDiv.append(textLayerFrag); + + this._finishRendering(); + + this.highlighter?.enable(); + this.accessibilityManager?.enable(); + }, function (reason) {}); + } + + cancel() { + if (this.textLayerRenderTask) { + this.textLayerRenderTask.cancel(); + this.textLayerRenderTask = null; + } + + this.highlighter?.disable(); + this.accessibilityManager?.disable(); + } + + setTextContentStream(readableStream) { + this.cancel(); + this.textContentStream = readableStream; + } + + setTextContent(textContent) { + this.cancel(); + this.textContent = textContent; + } + + _bindMouse() { + const div = this.textLayerDiv; + let expandDivsTimer = null; + div.addEventListener("mousedown", evt => { + if (this.enhanceTextSelection && this.textLayerRenderTask) { + this.textLayerRenderTask.expandTextDivs(true); + + if (expandDivsTimer) { + clearTimeout(expandDivsTimer); + expandDivsTimer = null; + } + + return; + } + + const end = div.querySelector(".endOfContent"); + + if (!end) { + return; + } + + let adjustTop = evt.target !== div; + adjustTop = adjustTop && window.getComputedStyle(end).getPropertyValue("-moz-user-select") !== "none"; + + if (adjustTop) { + const divBounds = div.getBoundingClientRect(); + const r = Math.max(0, (evt.pageY - divBounds.top) / divBounds.height); + end.style.top = (r * 100).toFixed(2) + "%"; + } + + end.classList.add("active"); + }); + div.addEventListener("mouseup", () => { + if (this.enhanceTextSelection && this.textLayerRenderTask) { + expandDivsTimer = setTimeout(() => { + if (this.textLayerRenderTask) { + this.textLayerRenderTask.expandTextDivs(false); + } + + expandDivsTimer = null; + }, EXPAND_DIVS_TIMEOUT); + return; + } + + const end = div.querySelector(".endOfContent"); + + if (!end) { + return; + } + + end.style.top = ""; + end.classList.remove("active"); + }); + } + +} + +exports.TextLayerBuilder = TextLayerBuilder; + +/***/ }), +/* 38 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.XfaLayerBuilder = void 0; + +var _pdfjsLib = __webpack_require__(5); + +class XfaLayerBuilder { + constructor({ + pageDiv, + pdfPage, + annotationStorage = null, + linkService, + xfaHtml = null + }) { + this.pageDiv = pageDiv; + this.pdfPage = pdfPage; + this.annotationStorage = annotationStorage; + this.linkService = linkService; + this.xfaHtml = xfaHtml; + this.div = null; + this._cancelled = false; + } + + render(viewport, intent = "display") { + if (intent === "print") { + const parameters = { + viewport: viewport.clone({ + dontFlip: true + }), + div: this.div, + xfaHtml: this.xfaHtml, + annotationStorage: this.annotationStorage, + linkService: this.linkService, + intent + }; + const div = document.createElement("div"); + this.pageDiv.append(div); + parameters.div = div; + + const result = _pdfjsLib.XfaLayer.render(parameters); + + return Promise.resolve(result); + } + + return this.pdfPage.getXfa().then(xfaHtml => { + if (this._cancelled || !xfaHtml) { + return { + textDivs: [] + }; + } + + const parameters = { + viewport: viewport.clone({ + dontFlip: true + }), + div: this.div, + xfaHtml, + annotationStorage: this.annotationStorage, + linkService: this.linkService, + intent + }; + + if (this.div) { + return _pdfjsLib.XfaLayer.update(parameters); + } + + this.div = document.createElement("div"); + this.pageDiv.append(this.div); + parameters.div = this.div; + return _pdfjsLib.XfaLayer.render(parameters); + }).catch(error => { + console.error(error); + }); + } + + cancel() { + this._cancelled = true; + } + + hide() { + if (!this.div) { + return; + } + + this.div.hidden = true; + } + +} + +exports.XfaLayerBuilder = XfaLayerBuilder; + +/***/ }), +/* 39 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.SecondaryToolbar = void 0; + +var _ui_utils = __webpack_require__(1); + +var _pdf_cursor_tools = __webpack_require__(7); + +var _base_viewer = __webpack_require__(29); + +class SecondaryToolbar { + constructor(options, eventBus) { + this.toolbar = options.toolbar; + this.toggleButton = options.toggleButton; + this.buttons = [{ + element: options.presentationModeButton, + eventName: "presentationmode", + close: true + }, { + element: options.printButton, + eventName: "print", + close: true + }, { + element: options.downloadButton, + eventName: "download", + close: true + }, { + element: options.viewBookmarkButton, + eventName: null, + close: true + }, { + element: options.firstPageButton, + eventName: "firstpage", + close: true + }, { + element: options.lastPageButton, + eventName: "lastpage", + close: true + }, { + element: options.pageRotateCwButton, + eventName: "rotatecw", + close: false + }, { + element: options.pageRotateCcwButton, + eventName: "rotateccw", + close: false + }, { + element: options.cursorSelectToolButton, + eventName: "switchcursortool", + eventDetails: { + tool: _pdf_cursor_tools.CursorTool.SELECT + }, + close: true + }, { + element: options.cursorHandToolButton, + eventName: "switchcursortool", + eventDetails: { + tool: _pdf_cursor_tools.CursorTool.HAND + }, + close: true + }, { + element: options.scrollPageButton, + eventName: "switchscrollmode", + eventDetails: { + mode: _ui_utils.ScrollMode.PAGE + }, + close: true + }, { + element: options.scrollVerticalButton, + eventName: "switchscrollmode", + eventDetails: { + mode: _ui_utils.ScrollMode.VERTICAL + }, + close: true + }, { + element: options.scrollHorizontalButton, + eventName: "switchscrollmode", + eventDetails: { + mode: _ui_utils.ScrollMode.HORIZONTAL + }, + close: true + }, { + element: options.scrollWrappedButton, + eventName: "switchscrollmode", + eventDetails: { + mode: _ui_utils.ScrollMode.WRAPPED + }, + close: true + }, { + element: options.spreadNoneButton, + eventName: "switchspreadmode", + eventDetails: { + mode: _ui_utils.SpreadMode.NONE + }, + close: true + }, { + element: options.spreadOddButton, + eventName: "switchspreadmode", + eventDetails: { + mode: _ui_utils.SpreadMode.ODD + }, + close: true + }, { + element: options.spreadEvenButton, + eventName: "switchspreadmode", + eventDetails: { + mode: _ui_utils.SpreadMode.EVEN + }, + close: true + }, { + element: options.documentPropertiesButton, + eventName: "documentproperties", + close: true + }]; + this.buttons.push({ + element: options.openFileButton, + eventName: "openfile", + close: true + }); + this.items = { + firstPage: options.firstPageButton, + lastPage: options.lastPageButton, + pageRotateCw: options.pageRotateCwButton, + pageRotateCcw: options.pageRotateCcwButton + }; + this.eventBus = eventBus; + this.opened = false; + this.#bindClickListeners(); + this.#bindCursorToolsListener(options); + this.#bindScrollModeListener(options); + this.#bindSpreadModeListener(options); + this.reset(); + } + + get isOpen() { + return this.opened; + } + + setPageNumber(pageNumber) { + this.pageNumber = pageNumber; + this.#updateUIState(); + } + + setPagesCount(pagesCount) { + this.pagesCount = pagesCount; + this.#updateUIState(); + } + + reset() { + this.pageNumber = 0; + this.pagesCount = 0; + this.#updateUIState(); + this.eventBus.dispatch("secondarytoolbarreset", { + source: this + }); + } + + #updateUIState() { + this.items.firstPage.disabled = this.pageNumber <= 1; + this.items.lastPage.disabled = this.pageNumber >= this.pagesCount; + this.items.pageRotateCw.disabled = this.pagesCount === 0; + this.items.pageRotateCcw.disabled = this.pagesCount === 0; + } + + #bindClickListeners() { + this.toggleButton.addEventListener("click", this.toggle.bind(this)); + + for (const { + element, + eventName, + close, + eventDetails + } of this.buttons) { + element.addEventListener("click", evt => { + if (eventName !== null) { + const details = { + source: this + }; + + for (const property in eventDetails) { + details[property] = eventDetails[property]; + } + + this.eventBus.dispatch(eventName, details); + } + + if (close) { + this.close(); + } + }); + } + } + + #bindCursorToolsListener({ + cursorSelectToolButton, + cursorHandToolButton + }) { + this.eventBus._on("cursortoolchanged", function ({ + tool + }) { + const isSelect = tool === _pdf_cursor_tools.CursorTool.SELECT, + isHand = tool === _pdf_cursor_tools.CursorTool.HAND; + cursorSelectToolButton.classList.toggle("toggled", isSelect); + cursorHandToolButton.classList.toggle("toggled", isHand); + cursorSelectToolButton.setAttribute("aria-checked", isSelect); + cursorHandToolButton.setAttribute("aria-checked", isHand); + }); + } + + #bindScrollModeListener({ + scrollPageButton, + scrollVerticalButton, + scrollHorizontalButton, + scrollWrappedButton, + spreadNoneButton, + spreadOddButton, + spreadEvenButton + }) { + const scrollModeChanged = ({ + mode + }) => { + const isPage = mode === _ui_utils.ScrollMode.PAGE, + isVertical = mode === _ui_utils.ScrollMode.VERTICAL, + isHorizontal = mode === _ui_utils.ScrollMode.HORIZONTAL, + isWrapped = mode === _ui_utils.ScrollMode.WRAPPED; + scrollPageButton.classList.toggle("toggled", isPage); + scrollVerticalButton.classList.toggle("toggled", isVertical); + scrollHorizontalButton.classList.toggle("toggled", isHorizontal); + scrollWrappedButton.classList.toggle("toggled", isWrapped); + scrollPageButton.setAttribute("aria-checked", isPage); + scrollVerticalButton.setAttribute("aria-checked", isVertical); + scrollHorizontalButton.setAttribute("aria-checked", isHorizontal); + scrollWrappedButton.setAttribute("aria-checked", isWrapped); + const forceScrollModePage = this.pagesCount > _base_viewer.PagesCountLimit.FORCE_SCROLL_MODE_PAGE; + scrollPageButton.disabled = forceScrollModePage; + scrollVerticalButton.disabled = forceScrollModePage; + scrollHorizontalButton.disabled = forceScrollModePage; + scrollWrappedButton.disabled = forceScrollModePage; + spreadNoneButton.disabled = isHorizontal; + spreadOddButton.disabled = isHorizontal; + spreadEvenButton.disabled = isHorizontal; + }; + + this.eventBus._on("scrollmodechanged", scrollModeChanged); + + this.eventBus._on("secondarytoolbarreset", evt => { + if (evt.source === this) { + scrollModeChanged({ + mode: _ui_utils.ScrollMode.VERTICAL + }); + } + }); + } + + #bindSpreadModeListener({ + spreadNoneButton, + spreadOddButton, + spreadEvenButton + }) { + function spreadModeChanged({ + mode + }) { + const isNone = mode === _ui_utils.SpreadMode.NONE, + isOdd = mode === _ui_utils.SpreadMode.ODD, + isEven = mode === _ui_utils.SpreadMode.EVEN; + spreadNoneButton.classList.toggle("toggled", isNone); + spreadOddButton.classList.toggle("toggled", isOdd); + spreadEvenButton.classList.toggle("toggled", isEven); + spreadNoneButton.setAttribute("aria-checked", isNone); + spreadOddButton.setAttribute("aria-checked", isOdd); + spreadEvenButton.setAttribute("aria-checked", isEven); + } + + this.eventBus._on("spreadmodechanged", spreadModeChanged); + + this.eventBus._on("secondarytoolbarreset", evt => { + if (evt.source === this) { + spreadModeChanged({ + mode: _ui_utils.SpreadMode.NONE + }); + } + }); + } + + open() { + if (this.opened) { + return; + } + + this.opened = true; + this.toggleButton.classList.add("toggled"); + this.toggleButton.setAttribute("aria-expanded", "true"); + this.toolbar.classList.remove("hidden"); + } + + close() { + if (!this.opened) { + return; + } + + this.opened = false; + this.toolbar.classList.add("hidden"); + this.toggleButton.classList.remove("toggled"); + this.toggleButton.setAttribute("aria-expanded", "false"); + } + + toggle() { + if (this.opened) { + this.close(); + } else { + this.open(); + } + } + +} + +exports.SecondaryToolbar = SecondaryToolbar; + +/***/ }), +/* 40 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Toolbar = void 0; + +var _ui_utils = __webpack_require__(1); + +var _pdfjsLib = __webpack_require__(5); + +const PAGE_NUMBER_LOADING_INDICATOR = "visiblePageIsLoading"; + +class Toolbar { + #wasLocalized = false; + + constructor(options, eventBus, l10n) { + this.toolbar = options.container; + this.eventBus = eventBus; + this.l10n = l10n; + this.buttons = [{ + element: options.previous, + eventName: "previouspage" + }, { + element: options.next, + eventName: "nextpage" + }, { + element: options.zoomIn, + eventName: "zoomin" + }, { + element: options.zoomOut, + eventName: "zoomout" + }, { + element: options.print, + eventName: "print" + }, { + element: options.presentationModeButton, + eventName: "presentationmode" + }, { + element: options.download, + eventName: "download" + }, { + element: options.viewBookmark, + eventName: null + }, { + element: options.editorFreeTextButton, + eventName: "switchannotationeditormode", + eventDetails: { + get mode() { + const { + classList + } = options.editorFreeTextButton; + return classList.contains("toggled") ? _pdfjsLib.AnnotationEditorType.NONE : _pdfjsLib.AnnotationEditorType.FREETEXT; + } + + } + }, { + element: options.editorInkButton, + eventName: "switchannotationeditormode", + eventDetails: { + get mode() { + const { + classList + } = options.editorInkButton; + return classList.contains("toggled") ? _pdfjsLib.AnnotationEditorType.NONE : _pdfjsLib.AnnotationEditorType.INK; + } + + } + }]; + this.buttons.push({ + element: options.openFile, + eventName: "openfile" + }); + this.items = { + numPages: options.numPages, + pageNumber: options.pageNumber, + scaleSelect: options.scaleSelect, + customScaleOption: options.customScaleOption, + previous: options.previous, + next: options.next, + zoomIn: options.zoomIn, + zoomOut: options.zoomOut + }; + this.#bindListeners(options); + this.reset(); + } + + setPageNumber(pageNumber, pageLabel) { + this.pageNumber = pageNumber; + this.pageLabel = pageLabel; + this.#updateUIState(false); + } + + setPagesCount(pagesCount, hasPageLabels) { + this.pagesCount = pagesCount; + this.hasPageLabels = hasPageLabels; + this.#updateUIState(true); + } + + setPageScale(pageScaleValue, pageScale) { + this.pageScaleValue = (pageScaleValue || pageScale).toString(); + this.pageScale = pageScale; + this.#updateUIState(false); + } + + reset() { + this.pageNumber = 0; + this.pageLabel = null; + this.hasPageLabels = false; + this.pagesCount = 0; + this.pageScaleValue = _ui_utils.DEFAULT_SCALE_VALUE; + this.pageScale = _ui_utils.DEFAULT_SCALE; + this.#updateUIState(true); + this.updateLoadingIndicatorState(); + this.eventBus.dispatch("toolbarreset", { + source: this + }); + } + + #bindListeners(options) { + const { + pageNumber, + scaleSelect + } = this.items; + const self = this; + + for (const { + element, + eventName, + eventDetails + } of this.buttons) { + element.addEventListener("click", evt => { + if (eventName !== null) { + const details = { + source: this + }; + + if (eventDetails) { + for (const property in eventDetails) { + details[property] = eventDetails[property]; + } + } + + this.eventBus.dispatch(eventName, details); + } + }); + } + + pageNumber.addEventListener("click", function () { + this.select(); + }); + pageNumber.addEventListener("change", function () { + self.eventBus.dispatch("pagenumberchanged", { + source: self, + value: this.value + }); + }); + scaleSelect.addEventListener("change", function () { + if (this.value === "custom") { + return; + } + + self.eventBus.dispatch("scalechanged", { + source: self, + value: this.value + }); + }); + scaleSelect.addEventListener("click", function (evt) { + const target = evt.target; + + if (this.value === self.pageScaleValue && target.tagName.toUpperCase() === "OPTION") { + this.blur(); + } + }); + scaleSelect.oncontextmenu = _ui_utils.noContextMenuHandler; + + this.eventBus._on("localized", () => { + this.#wasLocalized = true; + this.#adjustScaleWidth(); + this.#updateUIState(true); + }); + + this.#bindEditorToolsListener(options); + } + + #bindEditorToolsListener({ + editorFreeTextButton, + editorFreeTextParamsToolbar, + editorInkButton, + editorInkParamsToolbar + }) { + const editorModeChanged = (evt, disableButtons = false) => { + const editorButtons = [{ + mode: _pdfjsLib.AnnotationEditorType.FREETEXT, + button: editorFreeTextButton, + toolbar: editorFreeTextParamsToolbar + }, { + mode: _pdfjsLib.AnnotationEditorType.INK, + button: editorInkButton, + toolbar: editorInkParamsToolbar + }]; + + for (const { + mode, + button, + toolbar + } of editorButtons) { + const checked = mode === evt.mode; + button.classList.toggle("toggled", checked); + button.setAttribute("aria-checked", checked); + button.disabled = disableButtons; + toolbar?.classList.toggle("hidden", !checked); + } + }; + + this.eventBus._on("annotationeditormodechanged", editorModeChanged); + + this.eventBus._on("toolbarreset", evt => { + if (evt.source === this) { + editorModeChanged({ + mode: _pdfjsLib.AnnotationEditorType.NONE + }, true); + } + }); + } + + #updateUIState(resetNumPages = false) { + if (!this.#wasLocalized) { + return; + } + + const { + pageNumber, + pagesCount, + pageScaleValue, + pageScale, + items + } = this; + + if (resetNumPages) { + if (this.hasPageLabels) { + items.pageNumber.type = "text"; + } else { + items.pageNumber.type = "number"; + this.l10n.get("of_pages", { + pagesCount + }).then(msg => { + items.numPages.textContent = msg; + }); + } + + items.pageNumber.max = pagesCount; + } + + if (this.hasPageLabels) { + items.pageNumber.value = this.pageLabel; + this.l10n.get("page_of_pages", { + pageNumber, + pagesCount + }).then(msg => { + items.numPages.textContent = msg; + }); + } else { + items.pageNumber.value = pageNumber; + } + + items.previous.disabled = pageNumber <= 1; + items.next.disabled = pageNumber >= pagesCount; + items.zoomOut.disabled = pageScale <= _ui_utils.MIN_SCALE; + items.zoomIn.disabled = pageScale >= _ui_utils.MAX_SCALE; + this.l10n.get("page_scale_percent", { + scale: Math.round(pageScale * 10000) / 100 + }).then(msg => { + let predefinedValueFound = false; + + for (const option of items.scaleSelect.options) { + if (option.value !== pageScaleValue) { + option.selected = false; + continue; + } + + option.selected = true; + predefinedValueFound = true; + } + + if (!predefinedValueFound) { + items.customScaleOption.textContent = msg; + items.customScaleOption.selected = true; + } + }); + } + + updateLoadingIndicatorState(loading = false) { + const { + pageNumber + } = this.items; + pageNumber.classList.toggle(PAGE_NUMBER_LOADING_INDICATOR, loading); + } + + async #adjustScaleWidth() { + const { + items, + l10n + } = this; + const predefinedValuesPromise = Promise.all([l10n.get("page_scale_auto"), l10n.get("page_scale_actual"), l10n.get("page_scale_fit"), l10n.get("page_scale_width")]); + await _ui_utils.animationStarted; + const style = getComputedStyle(items.scaleSelect), + scaleSelectContainerWidth = parseInt(style.getPropertyValue("--scale-select-container-width"), 10), + scaleSelectOverflow = parseInt(style.getPropertyValue("--scale-select-overflow"), 10); + const canvas = document.createElement("canvas"); + const ctx = canvas.getContext("2d", { + alpha: false + }); + ctx.font = `${style.fontSize} ${style.fontFamily}`; + let maxWidth = 0; + + for (const predefinedValue of await predefinedValuesPromise) { + const { + width + } = ctx.measureText(predefinedValue); + + if (width > maxWidth) { + maxWidth = width; + } + } + + maxWidth += 2 * scaleSelectOverflow; + + if (maxWidth > scaleSelectContainerWidth) { + _ui_utils.docStyle.setProperty("--scale-select-container-width", `${maxWidth}px`); + } + + canvas.width = 0; + canvas.height = 0; + } + +} + +exports.Toolbar = Toolbar; + +/***/ }), +/* 41 */ +/***/ ((__unused_webpack_module, exports) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ViewHistory = void 0; +const DEFAULT_VIEW_HISTORY_CACHE_SIZE = 20; + +class ViewHistory { + constructor(fingerprint, cacheSize = DEFAULT_VIEW_HISTORY_CACHE_SIZE) { + this.fingerprint = fingerprint; + this.cacheSize = cacheSize; + this._initializedPromise = this._readFromStorage().then(databaseStr => { + const database = JSON.parse(databaseStr || "{}"); + let index = -1; + + if (!Array.isArray(database.files)) { + database.files = []; + } else { + while (database.files.length >= this.cacheSize) { + database.files.shift(); + } + + for (let i = 0, ii = database.files.length; i < ii; i++) { + const branch = database.files[i]; + + if (branch.fingerprint === this.fingerprint) { + index = i; + break; + } + } + } + + if (index === -1) { + index = database.files.push({ + fingerprint: this.fingerprint + }) - 1; + } + + this.file = database.files[index]; + this.database = database; + }); + } + + async _writeToStorage() { + const databaseStr = JSON.stringify(this.database); + localStorage.setItem("pdfjs.history", databaseStr); + } + + async _readFromStorage() { + return localStorage.getItem("pdfjs.history"); + } + + async set(name, val) { + await this._initializedPromise; + this.file[name] = val; + return this._writeToStorage(); + } + + async setMultiple(properties) { + await this._initializedPromise; + + for (const name in properties) { + this.file[name] = properties[name]; + } + + return this._writeToStorage(); + } + + async get(name, defaultValue) { + await this._initializedPromise; + const val = this.file[name]; + return val !== undefined ? val : defaultValue; + } + + async getMultiple(properties) { + await this._initializedPromise; + const values = Object.create(null); + + for (const name in properties) { + const val = this.file[name]; + values[name] = val !== undefined ? val : properties[name]; + } + + return values; + } + +} + +exports.ViewHistory = ViewHistory; + +/***/ }), +/* 42 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.GenericCom = void 0; + +var _app = __webpack_require__(4); + +var _preferences = __webpack_require__(43); + +var _download_manager = __webpack_require__(44); + +var _genericl10n = __webpack_require__(45); + +var _generic_scripting = __webpack_require__(47); + +; +const GenericCom = {}; +exports.GenericCom = GenericCom; + +class GenericPreferences extends _preferences.BasePreferences { + async _writeToStorage(prefObj) { + localStorage.setItem("pdfjs.preferences", JSON.stringify(prefObj)); + } + + async _readFromStorage(prefObj) { + return JSON.parse(localStorage.getItem("pdfjs.preferences")); + } + +} + +class GenericExternalServices extends _app.DefaultExternalServices { + static createDownloadManager(options) { + return new _download_manager.DownloadManager(); + } + + static createPreferences() { + return new GenericPreferences(); + } + + static createL10n({ + locale = "en-US" + }) { + return new _genericl10n.GenericL10n(locale); + } + + static createScripting({ + sandboxBundleSrc + }) { + return new _generic_scripting.GenericScripting(sandboxBundleSrc); + } + +} + +_app.PDFViewerApplication.externalServices = GenericExternalServices; + +/***/ }), +/* 43 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.BasePreferences = void 0; + +var _app_options = __webpack_require__(2); + +class BasePreferences { + #defaults = Object.freeze({ + "annotationEditorMode": -1, + "annotationMode": 2, + "cursorToolOnLoad": 0, + "defaultZoomValue": "", + "disablePageLabels": false, + "enablePermissions": false, + "enablePrintAutoRotate": true, + "enableScripting": true, + "externalLinkTarget": 0, + "historyUpdateUrl": false, + "ignoreDestinationZoom": false, + "forcePageColors": false, + "pageColorsBackground": "Canvas", + "pageColorsForeground": "CanvasText", + "pdfBugEnabled": false, + "sidebarViewOnLoad": -1, + "scrollModeOnLoad": -1, + "spreadModeOnLoad": -1, + "textLayerMode": 1, + "useOnlyCssZoom": false, + "viewerCssTheme": 0, + "viewOnLoad": 0, + "disableAutoFetch": false, + "disableFontFace": false, + "disableRange": false, + "disableStream": false, + "enableXfa": true, + "renderer": "canvas" + }); + #prefs = Object.create(null); + #initializedPromise = null; + + constructor() { + if (this.constructor === BasePreferences) { + throw new Error("Cannot initialize BasePreferences."); + } + + this.#initializedPromise = this._readFromStorage(this.#defaults).then(prefs => { + for (const name in this.#defaults) { + const prefValue = prefs?.[name]; + + if (typeof prefValue === typeof this.#defaults[name]) { + this.#prefs[name] = prefValue; + } + } + }); + } + + async _writeToStorage(prefObj) { + throw new Error("Not implemented: _writeToStorage"); + } + + async _readFromStorage(prefObj) { + throw new Error("Not implemented: _readFromStorage"); + } + + async reset() { + await this.#initializedPromise; + const prefs = this.#prefs; + this.#prefs = Object.create(null); + return this._writeToStorage(this.#defaults).catch(reason => { + this.#prefs = prefs; + throw reason; + }); + } + + async set(name, value) { + await this.#initializedPromise; + const defaultValue = this.#defaults[name], + prefs = this.#prefs; + + if (defaultValue === undefined) { + throw new Error(`Set preference: "${name}" is undefined.`); + } else if (value === undefined) { + throw new Error("Set preference: no value is specified."); + } + + const valueType = typeof value, + defaultType = typeof defaultValue; + + if (valueType !== defaultType) { + if (valueType === "number" && defaultType === "string") { + value = value.toString(); + } else { + throw new Error(`Set preference: "${value}" is a ${valueType}, expected a ${defaultType}.`); + } + } else { + if (valueType === "number" && !Number.isInteger(value)) { + throw new Error(`Set preference: "${value}" must be an integer.`); + } + } + + this.#prefs[name] = value; + return this._writeToStorage(this.#prefs).catch(reason => { + this.#prefs = prefs; + throw reason; + }); + } + + async get(name) { + await this.#initializedPromise; + const defaultValue = this.#defaults[name]; + + if (defaultValue === undefined) { + throw new Error(`Get preference: "${name}" is undefined.`); + } + + return this.#prefs[name] ?? defaultValue; + } + + async getAll() { + await this.#initializedPromise; + const obj = Object.create(null); + + for (const name in this.#defaults) { + obj[name] = this.#prefs[name] ?? this.#defaults[name]; + } + + return obj; + } + +} + +exports.BasePreferences = BasePreferences; + +/***/ }), +/* 44 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.DownloadManager = void 0; + +var _pdfjsLib = __webpack_require__(5); + +; + +function download(blobUrl, filename) { + const a = document.createElement("a"); + + if (!a.click) { + throw new Error('DownloadManager: "a.click()" is not supported.'); + } + + a.href = blobUrl; + a.target = "_parent"; + + if ("download" in a) { + a.download = filename; + } + + (document.body || document.documentElement).append(a); + a.click(); + a.remove(); +} + +class DownloadManager { + constructor() { + this._openBlobUrls = new WeakMap(); + } + + downloadUrl(url, filename) { + if (!(0, _pdfjsLib.createValidAbsoluteUrl)(url, "http://example.com")) { + console.error(`downloadUrl - not a valid URL: ${url}`); + return; + } + + download(url + "#pdfjs.action=download", filename); + } + + downloadData(data, filename, contentType) { + const blobUrl = URL.createObjectURL(new Blob([data], { + type: contentType + })); + download(blobUrl, filename); + } + + openOrDownloadData(element, data, filename) { + const isPdfData = (0, _pdfjsLib.isPdfFile)(filename); + const contentType = isPdfData ? "application/pdf" : ""; + + if (isPdfData) { + let blobUrl = this._openBlobUrls.get(element); + + if (!blobUrl) { + blobUrl = URL.createObjectURL(new Blob([data], { + type: contentType + })); + + this._openBlobUrls.set(element, blobUrl); + } + + let viewerUrl; + viewerUrl = "?file=" + encodeURIComponent(blobUrl + "#" + filename); + + try { + window.open(viewerUrl); + return true; + } catch (ex) { + console.error(`openOrDownloadData: ${ex}`); + URL.revokeObjectURL(blobUrl); + + this._openBlobUrls.delete(element); + } + } + + this.downloadData(data, filename, contentType); + return false; + } + + download(blob, url, filename) { + const blobUrl = URL.createObjectURL(blob); + download(blobUrl, filename); + } + +} + +exports.DownloadManager = DownloadManager; + +/***/ }), +/* 45 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.GenericL10n = void 0; + +__webpack_require__(46); + +var _l10n_utils = __webpack_require__(31); + +const webL10n = document.webL10n; + +class GenericL10n { + constructor(lang) { + this._lang = lang; + this._ready = new Promise((resolve, reject) => { + webL10n.setLanguage((0, _l10n_utils.fixupLangCode)(lang), () => { + resolve(webL10n); + }); + }); + } + + async getLanguage() { + const l10n = await this._ready; + return l10n.getLanguage(); + } + + async getDirection() { + const l10n = await this._ready; + return l10n.getDirection(); + } + + async get(key, args = null, fallback = (0, _l10n_utils.getL10nFallback)(key, args)) { + const l10n = await this._ready; + return l10n.get(key, args, fallback); + } + + async translate(element) { + const l10n = await this._ready; + return l10n.translate(element); + } + +} + +exports.GenericL10n = GenericL10n; + +/***/ }), +/* 46 */ +/***/ (() => { + + + +document.webL10n = function (window, document, undefined) { + var gL10nData = {}; + var gTextData = ''; + var gTextProp = 'textContent'; + var gLanguage = ''; + var gMacros = {}; + var gReadyState = 'loading'; + var gAsyncResourceLoading = true; + + function getL10nResourceLinks() { + return document.querySelectorAll('link[type="application/l10n"]'); + } + + function getL10nDictionary() { + var script = document.querySelector('script[type="application/l10n"]'); + return script ? JSON.parse(script.innerHTML) : null; + } + + function getTranslatableChildren(element) { + return element ? element.querySelectorAll('*[data-l10n-id]') : []; + } + + function getL10nAttributes(element) { + if (!element) return {}; + var l10nId = element.getAttribute('data-l10n-id'); + var l10nArgs = element.getAttribute('data-l10n-args'); + var args = {}; + + if (l10nArgs) { + try { + args = JSON.parse(l10nArgs); + } catch (e) { + console.warn('could not parse arguments for #' + l10nId); + } + } + + return { + id: l10nId, + args: args + }; + } + + function xhrLoadText(url, onSuccess, onFailure) { + onSuccess = onSuccess || function _onSuccess(data) {}; + + onFailure = onFailure || function _onFailure() {}; + + var xhr = new XMLHttpRequest(); + xhr.open('GET', url, gAsyncResourceLoading); + + if (xhr.overrideMimeType) { + xhr.overrideMimeType('text/plain; charset=utf-8'); + } + + xhr.onreadystatechange = function () { + if (xhr.readyState == 4) { + if (xhr.status == 200 || xhr.status === 0) { + onSuccess(xhr.responseText); + } else { + onFailure(); + } + } + }; + + xhr.onerror = onFailure; + xhr.ontimeout = onFailure; + + try { + xhr.send(null); + } catch (e) { + onFailure(); + } + } + + function parseResource(href, lang, successCallback, failureCallback) { + var baseURL = href.replace(/[^\/]*$/, '') || './'; + + function evalString(text) { + if (text.lastIndexOf('\\') < 0) return text; + return text.replace(/\\\\/g, '\\').replace(/\\n/g, '\n').replace(/\\r/g, '\r').replace(/\\t/g, '\t').replace(/\\b/g, '\b').replace(/\\f/g, '\f').replace(/\\{/g, '{').replace(/\\}/g, '}').replace(/\\"/g, '"').replace(/\\'/g, "'"); + } + + function parseProperties(text, parsedPropertiesCallback) { + var dictionary = {}; + var reBlank = /^\s*|\s*$/; + var reComment = /^\s*#|^\s*$/; + var reSection = /^\s*\[(.*)\]\s*$/; + var reImport = /^\s*@import\s+url\((.*)\)\s*$/i; + var reSplit = /^([^=\s]*)\s*=\s*(.+)$/; + + function parseRawLines(rawText, extendedSyntax, parsedRawLinesCallback) { + var entries = rawText.replace(reBlank, '').split(/[\r\n]+/); + var currentLang = '*'; + var genericLang = lang.split('-', 1)[0]; + var skipLang = false; + var match = ''; + + function nextEntry() { + while (true) { + if (!entries.length) { + parsedRawLinesCallback(); + return; + } + + var line = entries.shift(); + if (reComment.test(line)) continue; + + if (extendedSyntax) { + match = reSection.exec(line); + + if (match) { + currentLang = match[1].toLowerCase(); + skipLang = currentLang !== '*' && currentLang !== lang && currentLang !== genericLang; + continue; + } else if (skipLang) { + continue; + } + + match = reImport.exec(line); + + if (match) { + loadImport(baseURL + match[1], nextEntry); + return; + } + } + + var tmp = line.match(reSplit); + + if (tmp && tmp.length == 3) { + dictionary[tmp[1]] = evalString(tmp[2]); + } + } + } + + nextEntry(); + } + + function loadImport(url, callback) { + xhrLoadText(url, function (content) { + parseRawLines(content, false, callback); + }, function () { + console.warn(url + ' not found.'); + callback(); + }); + } + + parseRawLines(text, true, function () { + parsedPropertiesCallback(dictionary); + }); + } + + xhrLoadText(href, function (response) { + gTextData += response; + parseProperties(response, function (data) { + for (var key in data) { + var id, + prop, + index = key.lastIndexOf('.'); + + if (index > 0) { + id = key.substring(0, index); + prop = key.substring(index + 1); + } else { + id = key; + prop = gTextProp; + } + + if (!gL10nData[id]) { + gL10nData[id] = {}; + } + + gL10nData[id][prop] = data[key]; + } + + if (successCallback) { + successCallback(); + } + }); + }, failureCallback); + } + + function loadLocale(lang, callback) { + if (lang) { + lang = lang.toLowerCase(); + } + + callback = callback || function _callback() {}; + + clear(); + gLanguage = lang; + var langLinks = getL10nResourceLinks(); + var langCount = langLinks.length; + + if (langCount === 0) { + var dict = getL10nDictionary(); + + if (dict && dict.locales && dict.default_locale) { + console.log('using the embedded JSON directory, early way out'); + gL10nData = dict.locales[lang]; + + if (!gL10nData) { + var defaultLocale = dict.default_locale.toLowerCase(); + + for (var anyCaseLang in dict.locales) { + anyCaseLang = anyCaseLang.toLowerCase(); + + if (anyCaseLang === lang) { + gL10nData = dict.locales[lang]; + break; + } else if (anyCaseLang === defaultLocale) { + gL10nData = dict.locales[defaultLocale]; + } + } + } + + callback(); + } else { + console.log('no resource to load, early way out'); + } + + gReadyState = 'complete'; + return; + } + + var onResourceLoaded = null; + var gResourceCount = 0; + + onResourceLoaded = function () { + gResourceCount++; + + if (gResourceCount >= langCount) { + callback(); + gReadyState = 'complete'; + } + }; + + function L10nResourceLink(link) { + var href = link.href; + + this.load = function (lang, callback) { + parseResource(href, lang, callback, function () { + console.warn(href + ' not found.'); + console.warn('"' + lang + '" resource not found'); + gLanguage = ''; + callback(); + }); + }; + } + + for (var i = 0; i < langCount; i++) { + var resource = new L10nResourceLink(langLinks[i]); + resource.load(lang, onResourceLoaded); + } + } + + function clear() { + gL10nData = {}; + gTextData = ''; + gLanguage = ''; + } + + function getPluralRules(lang) { + var locales2rules = { + 'af': 3, + 'ak': 4, + 'am': 4, + 'ar': 1, + 'asa': 3, + 'az': 0, + 'be': 11, + 'bem': 3, + 'bez': 3, + 'bg': 3, + 'bh': 4, + 'bm': 0, + 'bn': 3, + 'bo': 0, + 'br': 20, + 'brx': 3, + 'bs': 11, + 'ca': 3, + 'cgg': 3, + 'chr': 3, + 'cs': 12, + 'cy': 17, + 'da': 3, + 'de': 3, + 'dv': 3, + 'dz': 0, + 'ee': 3, + 'el': 3, + 'en': 3, + 'eo': 3, + 'es': 3, + 'et': 3, + 'eu': 3, + 'fa': 0, + 'ff': 5, + 'fi': 3, + 'fil': 4, + 'fo': 3, + 'fr': 5, + 'fur': 3, + 'fy': 3, + 'ga': 8, + 'gd': 24, + 'gl': 3, + 'gsw': 3, + 'gu': 3, + 'guw': 4, + 'gv': 23, + 'ha': 3, + 'haw': 3, + 'he': 2, + 'hi': 4, + 'hr': 11, + 'hu': 0, + 'id': 0, + 'ig': 0, + 'ii': 0, + 'is': 3, + 'it': 3, + 'iu': 7, + 'ja': 0, + 'jmc': 3, + 'jv': 0, + 'ka': 0, + 'kab': 5, + 'kaj': 3, + 'kcg': 3, + 'kde': 0, + 'kea': 0, + 'kk': 3, + 'kl': 3, + 'km': 0, + 'kn': 0, + 'ko': 0, + 'ksb': 3, + 'ksh': 21, + 'ku': 3, + 'kw': 7, + 'lag': 18, + 'lb': 3, + 'lg': 3, + 'ln': 4, + 'lo': 0, + 'lt': 10, + 'lv': 6, + 'mas': 3, + 'mg': 4, + 'mk': 16, + 'ml': 3, + 'mn': 3, + 'mo': 9, + 'mr': 3, + 'ms': 0, + 'mt': 15, + 'my': 0, + 'nah': 3, + 'naq': 7, + 'nb': 3, + 'nd': 3, + 'ne': 3, + 'nl': 3, + 'nn': 3, + 'no': 3, + 'nr': 3, + 'nso': 4, + 'ny': 3, + 'nyn': 3, + 'om': 3, + 'or': 3, + 'pa': 3, + 'pap': 3, + 'pl': 13, + 'ps': 3, + 'pt': 3, + 'rm': 3, + 'ro': 9, + 'rof': 3, + 'ru': 11, + 'rwk': 3, + 'sah': 0, + 'saq': 3, + 'se': 7, + 'seh': 3, + 'ses': 0, + 'sg': 0, + 'sh': 11, + 'shi': 19, + 'sk': 12, + 'sl': 14, + 'sma': 7, + 'smi': 7, + 'smj': 7, + 'smn': 7, + 'sms': 7, + 'sn': 3, + 'so': 3, + 'sq': 3, + 'sr': 11, + 'ss': 3, + 'ssy': 3, + 'st': 3, + 'sv': 3, + 'sw': 3, + 'syr': 3, + 'ta': 3, + 'te': 3, + 'teo': 3, + 'th': 0, + 'ti': 4, + 'tig': 3, + 'tk': 3, + 'tl': 4, + 'tn': 3, + 'to': 0, + 'tr': 0, + 'ts': 3, + 'tzm': 22, + 'uk': 11, + 'ur': 3, + 've': 3, + 'vi': 0, + 'vun': 3, + 'wa': 4, + 'wae': 3, + 'wo': 0, + 'xh': 3, + 'xog': 3, + 'yo': 0, + 'zh': 0, + 'zu': 3 + }; + + function isIn(n, list) { + return list.indexOf(n) !== -1; + } + + function isBetween(n, start, end) { + return start <= n && n <= end; + } + + var pluralRules = { + '0': function (n) { + return 'other'; + }, + '1': function (n) { + if (isBetween(n % 100, 3, 10)) return 'few'; + if (n === 0) return 'zero'; + if (isBetween(n % 100, 11, 99)) return 'many'; + if (n == 2) return 'two'; + if (n == 1) return 'one'; + return 'other'; + }, + '2': function (n) { + if (n !== 0 && n % 10 === 0) return 'many'; + if (n == 2) return 'two'; + if (n == 1) return 'one'; + return 'other'; + }, + '3': function (n) { + if (n == 1) return 'one'; + return 'other'; + }, + '4': function (n) { + if (isBetween(n, 0, 1)) return 'one'; + return 'other'; + }, + '5': function (n) { + if (isBetween(n, 0, 2) && n != 2) return 'one'; + return 'other'; + }, + '6': function (n) { + if (n === 0) return 'zero'; + if (n % 10 == 1 && n % 100 != 11) return 'one'; + return 'other'; + }, + '7': function (n) { + if (n == 2) return 'two'; + if (n == 1) return 'one'; + return 'other'; + }, + '8': function (n) { + if (isBetween(n, 3, 6)) return 'few'; + if (isBetween(n, 7, 10)) return 'many'; + if (n == 2) return 'two'; + if (n == 1) return 'one'; + return 'other'; + }, + '9': function (n) { + if (n === 0 || n != 1 && isBetween(n % 100, 1, 19)) return 'few'; + if (n == 1) return 'one'; + return 'other'; + }, + '10': function (n) { + if (isBetween(n % 10, 2, 9) && !isBetween(n % 100, 11, 19)) return 'few'; + if (n % 10 == 1 && !isBetween(n % 100, 11, 19)) return 'one'; + return 'other'; + }, + '11': function (n) { + if (isBetween(n % 10, 2, 4) && !isBetween(n % 100, 12, 14)) return 'few'; + if (n % 10 === 0 || isBetween(n % 10, 5, 9) || isBetween(n % 100, 11, 14)) return 'many'; + if (n % 10 == 1 && n % 100 != 11) return 'one'; + return 'other'; + }, + '12': function (n) { + if (isBetween(n, 2, 4)) return 'few'; + if (n == 1) return 'one'; + return 'other'; + }, + '13': function (n) { + if (isBetween(n % 10, 2, 4) && !isBetween(n % 100, 12, 14)) return 'few'; + if (n != 1 && isBetween(n % 10, 0, 1) || isBetween(n % 10, 5, 9) || isBetween(n % 100, 12, 14)) return 'many'; + if (n == 1) return 'one'; + return 'other'; + }, + '14': function (n) { + if (isBetween(n % 100, 3, 4)) return 'few'; + if (n % 100 == 2) return 'two'; + if (n % 100 == 1) return 'one'; + return 'other'; + }, + '15': function (n) { + if (n === 0 || isBetween(n % 100, 2, 10)) return 'few'; + if (isBetween(n % 100, 11, 19)) return 'many'; + if (n == 1) return 'one'; + return 'other'; + }, + '16': function (n) { + if (n % 10 == 1 && n != 11) return 'one'; + return 'other'; + }, + '17': function (n) { + if (n == 3) return 'few'; + if (n === 0) return 'zero'; + if (n == 6) return 'many'; + if (n == 2) return 'two'; + if (n == 1) return 'one'; + return 'other'; + }, + '18': function (n) { + if (n === 0) return 'zero'; + if (isBetween(n, 0, 2) && n !== 0 && n != 2) return 'one'; + return 'other'; + }, + '19': function (n) { + if (isBetween(n, 2, 10)) return 'few'; + if (isBetween(n, 0, 1)) return 'one'; + return 'other'; + }, + '20': function (n) { + if ((isBetween(n % 10, 3, 4) || n % 10 == 9) && !(isBetween(n % 100, 10, 19) || isBetween(n % 100, 70, 79) || isBetween(n % 100, 90, 99))) return 'few'; + if (n % 1000000 === 0 && n !== 0) return 'many'; + if (n % 10 == 2 && !isIn(n % 100, [12, 72, 92])) return 'two'; + if (n % 10 == 1 && !isIn(n % 100, [11, 71, 91])) return 'one'; + return 'other'; + }, + '21': function (n) { + if (n === 0) return 'zero'; + if (n == 1) return 'one'; + return 'other'; + }, + '22': function (n) { + if (isBetween(n, 0, 1) || isBetween(n, 11, 99)) return 'one'; + return 'other'; + }, + '23': function (n) { + if (isBetween(n % 10, 1, 2) || n % 20 === 0) return 'one'; + return 'other'; + }, + '24': function (n) { + if (isBetween(n, 3, 10) || isBetween(n, 13, 19)) return 'few'; + if (isIn(n, [2, 12])) return 'two'; + if (isIn(n, [1, 11])) return 'one'; + return 'other'; + } + }; + var index = locales2rules[lang.replace(/-.*$/, '')]; + + if (!(index in pluralRules)) { + console.warn('plural form unknown for [' + lang + ']'); + return function () { + return 'other'; + }; + } + + return pluralRules[index]; + } + + gMacros.plural = function (str, param, key, prop) { + var n = parseFloat(param); + if (isNaN(n)) return str; + if (prop != gTextProp) return str; + + if (!gMacros._pluralRules) { + gMacros._pluralRules = getPluralRules(gLanguage); + } + + var index = '[' + gMacros._pluralRules(n) + ']'; + + if (n === 0 && key + '[zero]' in gL10nData) { + str = gL10nData[key + '[zero]'][prop]; + } else if (n == 1 && key + '[one]' in gL10nData) { + str = gL10nData[key + '[one]'][prop]; + } else if (n == 2 && key + '[two]' in gL10nData) { + str = gL10nData[key + '[two]'][prop]; + } else if (key + index in gL10nData) { + str = gL10nData[key + index][prop]; + } else if (key + '[other]' in gL10nData) { + str = gL10nData[key + '[other]'][prop]; + } + + return str; + }; + + function getL10nData(key, args, fallback) { + var data = gL10nData[key]; + + if (!data) { + console.warn('#' + key + ' is undefined.'); + + if (!fallback) { + return null; + } + + data = fallback; + } + + var rv = {}; + + for (var prop in data) { + var str = data[prop]; + str = substIndexes(str, args, key, prop); + str = substArguments(str, args, key); + rv[prop] = str; + } + + return rv; + } + + function substIndexes(str, args, key, prop) { + var reIndex = /\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/; + var reMatch = reIndex.exec(str); + if (!reMatch || !reMatch.length) return str; + var macroName = reMatch[1]; + var paramName = reMatch[2]; + var param; + + if (args && paramName in args) { + param = args[paramName]; + } else if (paramName in gL10nData) { + param = gL10nData[paramName]; + } + + if (macroName in gMacros) { + var macro = gMacros[macroName]; + str = macro(str, param, key, prop); + } + + return str; + } + + function substArguments(str, args, key) { + var reArgs = /\{\{\s*(.+?)\s*\}\}/g; + return str.replace(reArgs, function (matched_text, arg) { + if (args && arg in args) { + return args[arg]; + } + + if (arg in gL10nData) { + return gL10nData[arg]; + } + + console.log('argument {{' + arg + '}} for #' + key + ' is undefined.'); + return matched_text; + }); + } + + function translateElement(element) { + var l10n = getL10nAttributes(element); + if (!l10n.id) return; + var data = getL10nData(l10n.id, l10n.args); + + if (!data) { + console.warn('#' + l10n.id + ' is undefined.'); + return; + } + + if (data[gTextProp]) { + if (getChildElementCount(element) === 0) { + element[gTextProp] = data[gTextProp]; + } else { + var children = element.childNodes; + var found = false; + + for (var i = 0, l = children.length; i < l; i++) { + if (children[i].nodeType === 3 && /\S/.test(children[i].nodeValue)) { + if (found) { + children[i].nodeValue = ''; + } else { + children[i].nodeValue = data[gTextProp]; + found = true; + } + } + } + + if (!found) { + var textNode = document.createTextNode(data[gTextProp]); + element.prepend(textNode); + } + } + + delete data[gTextProp]; + } + + for (var k in data) { + element[k] = data[k]; + } + } + + function getChildElementCount(element) { + if (element.children) { + return element.children.length; + } + + if (typeof element.childElementCount !== 'undefined') { + return element.childElementCount; + } + + var count = 0; + + for (var i = 0; i < element.childNodes.length; i++) { + count += element.nodeType === 1 ? 1 : 0; + } + + return count; + } + + function translateFragment(element) { + element = element || document.documentElement; + var children = getTranslatableChildren(element); + var elementCount = children.length; + + for (var i = 0; i < elementCount; i++) { + translateElement(children[i]); + } + + translateElement(element); + } + + return { + get: function (key, args, fallbackString) { + var index = key.lastIndexOf('.'); + var prop = gTextProp; + + if (index > 0) { + prop = key.substring(index + 1); + key = key.substring(0, index); + } + + var fallback; + + if (fallbackString) { + fallback = {}; + fallback[prop] = fallbackString; + } + + var data = getL10nData(key, args, fallback); + + if (data && prop in data) { + return data[prop]; + } + + return '{{' + key + '}}'; + }, + getData: function () { + return gL10nData; + }, + getText: function () { + return gTextData; + }, + getLanguage: function () { + return gLanguage; + }, + setLanguage: function (lang, callback) { + loadLocale(lang, function () { + if (callback) callback(); + }); + }, + getDirection: function () { + var rtlList = ['ar', 'he', 'fa', 'ps', 'ur']; + var shortCode = gLanguage.split('-', 1)[0]; + return rtlList.indexOf(shortCode) >= 0 ? 'rtl' : 'ltr'; + }, + translate: translateFragment, + getReadyState: function () { + return gReadyState; + }, + ready: function (callback) { + if (!callback) { + return; + } else if (gReadyState == 'complete' || gReadyState == 'interactive') { + window.setTimeout(function () { + callback(); + }); + } else if (document.addEventListener) { + document.addEventListener('localized', function once() { + document.removeEventListener('localized', once); + callback(); + }); + } + } + }; +}(window, document); + +/***/ }), +/* 47 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.GenericScripting = void 0; +exports.docPropertiesLookup = docPropertiesLookup; + +var _pdfjsLib = __webpack_require__(5); + +async function docPropertiesLookup(pdfDocument) { + const url = "", + baseUrl = url.split("#")[0]; + let { + info, + metadata, + contentDispositionFilename, + contentLength + } = await pdfDocument.getMetadata(); + + if (!contentLength) { + const { + length + } = await pdfDocument.getDownloadInfo(); + contentLength = length; + } + + return { ...info, + baseURL: baseUrl, + filesize: contentLength, + filename: contentDispositionFilename || (0, _pdfjsLib.getPdfFilenameFromUrl)(url), + metadata: metadata?.getRaw(), + authors: metadata?.get("dc:creator"), + numPages: pdfDocument.numPages, + URL: url + }; +} + +class GenericScripting { + constructor(sandboxBundleSrc) { + this._ready = (0, _pdfjsLib.loadScript)(sandboxBundleSrc, true).then(() => { + return window.pdfjsSandbox.QuickJSSandbox(); + }); + } + + async createSandbox(data) { + const sandbox = await this._ready; + sandbox.create(data); + } + + async dispatchEventInSandbox(event) { + const sandbox = await this._ready; + setTimeout(() => sandbox.dispatchEvent(event), 0); + } + + async destroySandbox() { + const sandbox = await this._ready; + sandbox.nukeSandbox(); + } + +} + +exports.GenericScripting = GenericScripting; + +/***/ }), +/* 48 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.PDFPrintService = PDFPrintService; + +var _pdfjsLib = __webpack_require__(5); + +var _app = __webpack_require__(4); + +var _print_utils = __webpack_require__(49); + +let activeService = null; +let dialog = null; +let overlayManager = null; + +function renderPage(activeServiceOnEntry, pdfDocument, pageNumber, size, printResolution, optionalContentConfigPromise, printAnnotationStoragePromise) { + const scratchCanvas = activeService.scratchCanvas; + const PRINT_UNITS = printResolution / _pdfjsLib.PixelsPerInch.PDF; + scratchCanvas.width = Math.floor(size.width * PRINT_UNITS); + scratchCanvas.height = Math.floor(size.height * PRINT_UNITS); + const ctx = scratchCanvas.getContext("2d"); + ctx.save(); + ctx.fillStyle = "rgb(255, 255, 255)"; + ctx.fillRect(0, 0, scratchCanvas.width, scratchCanvas.height); + ctx.restore(); + return Promise.all([pdfDocument.getPage(pageNumber), printAnnotationStoragePromise]).then(function ([pdfPage, printAnnotationStorage]) { + const renderContext = { + canvasContext: ctx, + transform: [PRINT_UNITS, 0, 0, PRINT_UNITS, 0, 0], + viewport: pdfPage.getViewport({ + scale: 1, + rotation: size.rotation + }), + intent: "print", + annotationMode: _pdfjsLib.AnnotationMode.ENABLE_STORAGE, + optionalContentConfigPromise, + printAnnotationStorage + }; + return pdfPage.render(renderContext).promise; + }); +} + +function PDFPrintService(pdfDocument, pagesOverview, printContainer, printResolution, optionalContentConfigPromise = null, printAnnotationStoragePromise = null, l10n) { + this.pdfDocument = pdfDocument; + this.pagesOverview = pagesOverview; + this.printContainer = printContainer; + this._printResolution = printResolution || 150; + this._optionalContentConfigPromise = optionalContentConfigPromise || pdfDocument.getOptionalContentConfig(); + this._printAnnotationStoragePromise = printAnnotationStoragePromise || Promise.resolve(); + this.l10n = l10n; + this.currentPage = -1; + this.scratchCanvas = document.createElement("canvas"); +} + +PDFPrintService.prototype = { + layout() { + this.throwIfInactive(); + const body = document.querySelector("body"); + body.setAttribute("data-pdfjsprinting", true); + const hasEqualPageSizes = this.pagesOverview.every(function (size) { + return size.width === this.pagesOverview[0].width && size.height === this.pagesOverview[0].height; + }, this); + + if (!hasEqualPageSizes) { + console.warn("Not all pages have the same size. The printed " + "result may be incorrect!"); + } + + this.pageStyleSheet = document.createElement("style"); + const pageSize = this.pagesOverview[0]; + this.pageStyleSheet.textContent = "@page { size: " + pageSize.width + "pt " + pageSize.height + "pt;}"; + body.append(this.pageStyleSheet); + }, + + destroy() { + if (activeService !== this) { + return; + } + + this.printContainer.textContent = ""; + const body = document.querySelector("body"); + body.removeAttribute("data-pdfjsprinting"); + + if (this.pageStyleSheet) { + this.pageStyleSheet.remove(); + this.pageStyleSheet = null; + } + + this.scratchCanvas.width = this.scratchCanvas.height = 0; + this.scratchCanvas = null; + activeService = null; + ensureOverlay().then(function () { + if (overlayManager.active === dialog) { + overlayManager.close(dialog); + } + }); + }, + + renderPages() { + if (this.pdfDocument.isPureXfa) { + (0, _print_utils.getXfaHtmlForPrinting)(this.printContainer, this.pdfDocument); + return Promise.resolve(); + } + + const pageCount = this.pagesOverview.length; + + const renderNextPage = (resolve, reject) => { + this.throwIfInactive(); + + if (++this.currentPage >= pageCount) { + renderProgress(pageCount, pageCount, this.l10n); + resolve(); + return; + } + + const index = this.currentPage; + renderProgress(index, pageCount, this.l10n); + renderPage(this, this.pdfDocument, index + 1, this.pagesOverview[index], this._printResolution, this._optionalContentConfigPromise, this._printAnnotationStoragePromise).then(this.useRenderedPage.bind(this)).then(function () { + renderNextPage(resolve, reject); + }, reject); + }; + + return new Promise(renderNextPage); + }, + + useRenderedPage() { + this.throwIfInactive(); + const img = document.createElement("img"); + const scratchCanvas = this.scratchCanvas; + + if ("toBlob" in scratchCanvas) { + scratchCanvas.toBlob(function (blob) { + img.src = URL.createObjectURL(blob); + }); + } else { + img.src = scratchCanvas.toDataURL(); + } + + const wrapper = document.createElement("div"); + wrapper.className = "printedPage"; + wrapper.append(img); + this.printContainer.append(wrapper); + return new Promise(function (resolve, reject) { + img.onload = resolve; + img.onerror = reject; + }); + }, + + performPrint() { + this.throwIfInactive(); + return new Promise(resolve => { + setTimeout(() => { + if (!this.active) { + resolve(); + return; + } + + print.call(window); + setTimeout(resolve, 20); + }, 0); + }); + }, + + get active() { + return this === activeService; + }, + + throwIfInactive() { + if (!this.active) { + throw new Error("This print request was cancelled or completed."); + } + } + +}; +const print = window.print; + +window.print = function () { + if (activeService) { + console.warn("Ignored window.print() because of a pending print job."); + return; + } + + ensureOverlay().then(function () { + if (activeService) { + overlayManager.open(dialog); + } + }); + + try { + dispatchEvent("beforeprint"); + } finally { + if (!activeService) { + console.error("Expected print service to be initialized."); + ensureOverlay().then(function () { + if (overlayManager.active === dialog) { + overlayManager.close(dialog); + } + }); + return; + } + + const activeServiceOnEntry = activeService; + activeService.renderPages().then(function () { + return activeServiceOnEntry.performPrint(); + }).catch(function () {}).then(function () { + if (activeServiceOnEntry.active) { + abort(); + } + }); + } +}; + +function dispatchEvent(eventType) { + const event = document.createEvent("CustomEvent"); + event.initCustomEvent(eventType, false, false, "custom"); + window.dispatchEvent(event); +} + +function abort() { + if (activeService) { + activeService.destroy(); + dispatchEvent("afterprint"); + } +} + +function renderProgress(index, total, l10n) { + dialog ||= document.getElementById("printServiceDialog"); + const progress = Math.round(100 * index / total); + const progressBar = dialog.querySelector("progress"); + const progressPerc = dialog.querySelector(".relative-progress"); + progressBar.value = progress; + l10n.get("print_progress_percent", { + progress + }).then(msg => { + progressPerc.textContent = msg; + }); +} + +window.addEventListener("keydown", function (event) { + if (event.keyCode === 80 && (event.ctrlKey || event.metaKey) && !event.altKey && (!event.shiftKey || window.chrome || window.opera)) { + window.print(); + event.preventDefault(); + + if (event.stopImmediatePropagation) { + event.stopImmediatePropagation(); + } else { + event.stopPropagation(); + } + } +}, true); + +if ("onbeforeprint" in window) { + const stopPropagationIfNeeded = function (event) { + if (event.detail !== "custom" && event.stopImmediatePropagation) { + event.stopImmediatePropagation(); + } + }; + + window.addEventListener("beforeprint", stopPropagationIfNeeded); + window.addEventListener("afterprint", stopPropagationIfNeeded); +} + +let overlayPromise; + +function ensureOverlay() { + if (!overlayPromise) { + overlayManager = _app.PDFViewerApplication.overlayManager; + + if (!overlayManager) { + throw new Error("The overlay manager has not yet been initialized."); + } + + dialog ||= document.getElementById("printServiceDialog"); + overlayPromise = overlayManager.register(dialog, true); + document.getElementById("printCancel").onclick = abort; + dialog.addEventListener("close", abort); + } + + return overlayPromise; +} + +_app.PDFPrintServiceFactory.instance = { + supportsPrinting: true, + + createPrintService(pdfDocument, pagesOverview, printContainer, printResolution, optionalContentConfigPromise, printAnnotationStoragePromise, l10n) { + if (activeService) { + throw new Error("The print service is created and active."); + } + + activeService = new PDFPrintService(pdfDocument, pagesOverview, printContainer, printResolution, optionalContentConfigPromise, printAnnotationStoragePromise, l10n); + return activeService; + } + +}; + +/***/ }), +/* 49 */ +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.getXfaHtmlForPrinting = getXfaHtmlForPrinting; + +var _pdfjsLib = __webpack_require__(5); + +var _pdf_link_service = __webpack_require__(3); + +var _xfa_layer_builder = __webpack_require__(38); + +function getXfaHtmlForPrinting(printContainer, pdfDocument) { + const xfaHtml = pdfDocument.allXfaHtml; + const linkService = new _pdf_link_service.SimpleLinkService(); + const scale = Math.round(_pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS * 100) / 100; + + for (const xfaPage of xfaHtml.children) { + const page = document.createElement("div"); + page.className = "xfaPrintedPage"; + printContainer.append(page); + const builder = new _xfa_layer_builder.XfaLayerBuilder({ + pageDiv: page, + pdfPage: null, + annotationStorage: pdfDocument.annotationStorage, + linkService, + xfaHtml: xfaPage + }); + const viewport = (0, _pdfjsLib.getXfaPageViewport)(xfaPage, { + scale + }); + builder.render(viewport, "print"); + } +} + +/***/ }) +/******/ ]); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +(() => { +var exports = __webpack_exports__; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "PDFViewerApplication", ({ + enumerable: true, + get: function () { + return _app.PDFViewerApplication; + } +})); +exports.PDFViewerApplicationConstants = void 0; +Object.defineProperty(exports, "PDFViewerApplicationOptions", ({ + enumerable: true, + get: function () { + return _app_options.AppOptions; + } +})); + +var _ui_utils = __webpack_require__(1); + +var _app_options = __webpack_require__(2); + +var _pdf_link_service = __webpack_require__(3); + +var _app = __webpack_require__(4); + +const pdfjsVersion = '2.16.105'; +const pdfjsBuild = '172ccdbe5'; +const AppConstants = { + LinkTarget: _pdf_link_service.LinkTarget, + RenderingStates: _ui_utils.RenderingStates, + ScrollMode: _ui_utils.ScrollMode, + SpreadMode: _ui_utils.SpreadMode +}; +exports.PDFViewerApplicationConstants = AppConstants; +window.PDFViewerApplication = _app.PDFViewerApplication; +window.PDFViewerApplicationConstants = AppConstants; +window.PDFViewerApplicationOptions = _app_options.AppOptions; +; +; +{ + __webpack_require__(42); +} +; +{ + __webpack_require__(48); +} + +function getViewerConfiguration() { + let errorWrapper = null; + errorWrapper = { + container: document.getElementById("errorWrapper"), + errorMessage: document.getElementById("errorMessage"), + closeButton: document.getElementById("errorClose"), + errorMoreInfo: document.getElementById("errorMoreInfo"), + moreInfoButton: document.getElementById("errorShowMore"), + lessInfoButton: document.getElementById("errorShowLess") + }; + return { + appContainer: document.body, + mainContainer: document.getElementById("viewerContainer"), + viewerContainer: document.getElementById("viewer"), + toolbar: { + container: document.getElementById("toolbarViewer"), + numPages: document.getElementById("numPages"), + pageNumber: document.getElementById("pageNumber"), + scaleSelect: document.getElementById("scaleSelect"), + customScaleOption: document.getElementById("customScaleOption"), + previous: document.getElementById("previous"), + next: document.getElementById("next"), + zoomIn: document.getElementById("zoomIn"), + zoomOut: document.getElementById("zoomOut"), + viewFind: document.getElementById("viewFind"), + openFile: document.getElementById("openFile"), + print: document.getElementById("print"), + editorFreeTextButton: document.getElementById("editorFreeText"), + editorFreeTextParamsToolbar: document.getElementById("editorFreeTextParamsToolbar"), + editorInkButton: document.getElementById("editorInk"), + editorInkParamsToolbar: document.getElementById("editorInkParamsToolbar"), + presentationModeButton: document.getElementById("presentationMode"), + download: document.getElementById("download"), + viewBookmark: document.getElementById("viewBookmark") + }, + secondaryToolbar: { + toolbar: document.getElementById("secondaryToolbar"), + toggleButton: document.getElementById("secondaryToolbarToggle"), + presentationModeButton: document.getElementById("secondaryPresentationMode"), + openFileButton: document.getElementById("secondaryOpenFile"), + printButton: document.getElementById("secondaryPrint"), + downloadButton: document.getElementById("secondaryDownload"), + viewBookmarkButton: document.getElementById("secondaryViewBookmark"), + firstPageButton: document.getElementById("firstPage"), + lastPageButton: document.getElementById("lastPage"), + pageRotateCwButton: document.getElementById("pageRotateCw"), + pageRotateCcwButton: document.getElementById("pageRotateCcw"), + cursorSelectToolButton: document.getElementById("cursorSelectTool"), + cursorHandToolButton: document.getElementById("cursorHandTool"), + scrollPageButton: document.getElementById("scrollPage"), + scrollVerticalButton: document.getElementById("scrollVertical"), + scrollHorizontalButton: document.getElementById("scrollHorizontal"), + scrollWrappedButton: document.getElementById("scrollWrapped"), + spreadNoneButton: document.getElementById("spreadNone"), + spreadOddButton: document.getElementById("spreadOdd"), + spreadEvenButton: document.getElementById("spreadEven"), + documentPropertiesButton: document.getElementById("documentProperties") + }, + sidebar: { + outerContainer: document.getElementById("outerContainer"), + sidebarContainer: document.getElementById("sidebarContainer"), + toggleButton: document.getElementById("sidebarToggle"), + thumbnailButton: document.getElementById("viewThumbnail"), + outlineButton: document.getElementById("viewOutline"), + attachmentsButton: document.getElementById("viewAttachments"), + layersButton: document.getElementById("viewLayers"), + thumbnailView: document.getElementById("thumbnailView"), + outlineView: document.getElementById("outlineView"), + attachmentsView: document.getElementById("attachmentsView"), + layersView: document.getElementById("layersView"), + outlineOptionsContainer: document.getElementById("outlineOptionsContainer"), + currentOutlineItemButton: document.getElementById("currentOutlineItem") + }, + sidebarResizer: { + outerContainer: document.getElementById("outerContainer"), + resizer: document.getElementById("sidebarResizer") + }, + findBar: { + bar: document.getElementById("findbar"), + toggleButton: document.getElementById("viewFind"), + findField: document.getElementById("findInput"), + highlightAllCheckbox: document.getElementById("findHighlightAll"), + caseSensitiveCheckbox: document.getElementById("findMatchCase"), + matchDiacriticsCheckbox: document.getElementById("findMatchDiacritics"), + entireWordCheckbox: document.getElementById("findEntireWord"), + findMsg: document.getElementById("findMsg"), + findResultsCount: document.getElementById("findResultsCount"), + findPreviousButton: document.getElementById("findPrevious"), + findNextButton: document.getElementById("findNext") + }, + passwordOverlay: { + dialog: document.getElementById("passwordDialog"), + label: document.getElementById("passwordText"), + input: document.getElementById("password"), + submitButton: document.getElementById("passwordSubmit"), + cancelButton: document.getElementById("passwordCancel") + }, + documentProperties: { + dialog: document.getElementById("documentPropertiesDialog"), + closeButton: document.getElementById("documentPropertiesClose"), + fields: { + fileName: document.getElementById("fileNameField"), + fileSize: document.getElementById("fileSizeField"), + title: document.getElementById("titleField"), + author: document.getElementById("authorField"), + subject: document.getElementById("subjectField"), + keywords: document.getElementById("keywordsField"), + creationDate: document.getElementById("creationDateField"), + modificationDate: document.getElementById("modificationDateField"), + creator: document.getElementById("creatorField"), + producer: document.getElementById("producerField"), + version: document.getElementById("versionField"), + pageCount: document.getElementById("pageCountField"), + pageSize: document.getElementById("pageSizeField"), + linearized: document.getElementById("linearizedField") + } + }, + annotationEditorParams: { + editorFreeTextFontSize: document.getElementById("editorFreeTextFontSize"), + editorFreeTextColor: document.getElementById("editorFreeTextColor"), + editorInkColor: document.getElementById("editorInkColor"), + editorInkThickness: document.getElementById("editorInkThickness"), + editorInkOpacity: document.getElementById("editorInkOpacity") + }, + errorWrapper, + printContainer: document.getElementById("printContainer"), + openFileInput: document.getElementById("fileInput"), + debuggerScriptPath: "./debugger.js" + }; +} + +function webViewerLoad() { + const config = getViewerConfiguration(); + const event = document.createEvent("CustomEvent"); + event.initCustomEvent("webviewerloaded", true, true, { + source: window + }); + + try { + parent.document.dispatchEvent(event); + } catch (ex) { + console.error(`webviewerloaded: ${ex}`); + document.dispatchEvent(event); + } + + _app.PDFViewerApplication.run(config); +} + +document.blockUnblockOnload?.(true); + +if (document.readyState === "interactive" || document.readyState === "complete") { + webViewerLoad(); +} else { + document.addEventListener("DOMContentLoaded", webViewerLoad, true); +} +})(); + +/******/ })() +; +//# sourceMappingURL=viewer.js.map \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/popup.2b1bafbc.js b/plugins/saladict-ztools/ext-saladic/assets/popup.2b1bafbc.js new file mode 100644 index 00000000..a2287732 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/popup.2b1bafbc.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[14],{1039:function(e,t,a){e.exports=a(1358)},1045:function(e,t,a){},1358:function(e,t,a){"use strict";a.r(t),window.__SALADICT_INTERNAL_PAGE__=!0,window.__SALADICT_POPUP_PAGE__=!0;a(504);var n=a(0),c=a.n(n),l=a(21),o=a.n(l),i=a(506),r=a(29),s=a(1),h=a(11),p=a(86),m=a(23),d=a(71),u=a(9),v=a(5),E=a.n(v),b=a(993),w=a.n(b),f=a(94),y=a(146),g=a(789);var _=e=>{const{t:t}=Object(u.d)("popup"),[a,l]=Object(n.useState)(e.config),[o,i]=Object(n.useState)(!1),[s,h]=Object(n.useState)(""),[p,m]=Object(n.useState)(30),d=Object(n.useCallback)(()=>m(a.baHeight-51),[a.baHeight]),v=Object(n.useCallback)(()=>m(a.baHeight-151),[a.baHeight]),[b,_]=Object(n.useState)("mode"),[O,z]=Object(n.useState)(!1),[x,M]=Object(n.useState)(!1);return Object(n.useLayoutEffect)(()=>{document.body.style.width=(a.baWidth>=0?a.baWidth:a.panelWidth)+"px"},[a]),Object(n.useEffect)(()=>{d(),Object(r.a)(({newConfig:e})=>{l(e)}),browser.tabs.query({active:!0,currentWindow:!0}).then(async e=>{if(e.length>0&&null!=e[0].id){const[t,a]=await Promise.all([Object(y.a)(e[0].id,{type:"TEMP_DISABLED_STATE",payload:{op:"get"}}),Object(y.a)(e[0].id,{type:"QUERY_PIN_STATE"})]);"boolean"==typeof t&&z(t),"boolean"==typeof a&&_(a?"pinMode":"mode")}}).catch(e=>console.warn("Error when initializing popup tab state",e))},[]),c.a.createElement("div",{className:E()("popup-root",{"dark-mode":a.darkMode}),style:{height:a.baHeight}},c.a.createElement(g.a,{width:"100vw",height:p+"px"}),c.a.createElement("div",{className:"switch-container",onMouseEnter:v,onMouseLeave:d},c.a.createElement("div",{className:"active-switch"},c.a.createElement("span",{className:"switch-title"},t("app_temp_active_title")),c.a.createElement("input",{type:"checkbox",id:"opt-temp-active",className:"btn-switch",checked:O,onChange:function(){const e=!O;z(e),M(!1),browser.tabs.query({active:!0,currentWindow:!0}).then(t=>t.length>0&&null!=t[0].id&&Object(y.a)(t[0].id,{type:"TEMP_DISABLED_STATE",payload:{op:"set",value:e}})).then(t=>{t||(z(!e),M(!0))}).catch(t=>{z(!e),M(!0)})},onFocus:v}),c.a.createElement("label",{htmlFor:"opt-temp-active"})),c.a.createElement("div",{className:"active-switch"},c.a.createElement("span",{className:"switch-title"},t("instant_capture_title")+("pinMode"===b?t("instant_capture_pinned"):"")),c.a.createElement("input",{type:"checkbox",id:"opt-instant-capture",className:"btn-switch",checked:a[b].instant.enable,onChange:function(){Object(r.f)({...a,[b]:{...a[b],instant:{...a[b].instant,enable:!a[b].instant.enable}}})},onFocus:v}),c.a.createElement("label",{htmlFor:"opt-instant-capture"})),c.a.createElement("div",{className:"active-switch"},c.a.createElement("svg",{className:"icon-qrcode",onMouseEnter:async function(){const e=await browser.tabs.query({active:!0,currentWindow:!0});if(e.length>0){const t=e[0].url;if(t){if(!t.startsWith("http")){const e=/pdf\/web\/viewer\.html\?file=(.*)$/.exec(t);if(e)return i(!0),void h(decodeURIComponent(e[1]))}i(!1),h(t)}}},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 612 612"},c.a.createElement("path",{d:"M0 225v25h250v-25H0zM0 25h250V0H0v25z"}),c.a.createElement("path",{d:"M0 250h25V0H0v250zm225 0h25V0h-25v250zM87.5 162.5h75v-75h-75v75zM362 587v25h80v-25h-80zm0-200h80v-25h-80v25z"}),c.a.createElement("path",{d:"M362 612h25V362h-25v250zm190-250v25h60v-25h-60zm-77.5 87.5v25h50v-25h-50z"}),c.a.createElement("path",{d:"M432 497.958v-25h-70v25h70zM474.5 387h50v-25h-50v25zM362 225v25h250v-25H362zm0-200h250V0H362v25z"}),c.a.createElement("path",{d:"M362 250h25V0h-25v250zm225 0h25V0h-25v250zm-137.5-87.5h75v-75h-75v75zM0 587v25h250v-25H0zm0-200h250v-25H0v25z"}),c.a.createElement("path",{d:"M0 612h25V362H0v250zm225 0h25V362h-25v250zM87.5 524.5h75v-75h-75v75zM587 612h25V441h-25v171zM474.5 499.5v25h50v-25h-50z"}),c.a.createElement("path",{d:"M474.5 449.5v75h25v-75h-25zM562 587v25h50v-25h-50z"})),c.a.createElement("span",{className:"switch-title"},t("app_active_title")),c.a.createElement("input",{type:"checkbox",id:"opt-active",className:"btn-switch",checked:a.active,onChange:function(){Object(r.f)({...a,active:!a.active})},onFocus:v}),c.a.createElement("label",{htmlFor:"opt-active"})),c.a.createElement(f.a,{classNames:"fade",in:!!s,timeout:500,exit:!1,mountOnEnter:!0,unmountOnExit:!0},()=>c.a.createElement("div",{className:"qrcode-panel",onMouseLeave:()=>h("")},c.a.createElement(w.a,{value:s,size:250,bgColor:a.darkMode?"#ddd":"#fff",fgColor:"#222"}),c.a.createElement("p",{className:"qrcode-panel-title"},o?c.a.createElement("input",{type:"text",autoFocus:!0,readOnly:!0,value:s,onFocus:e=>e.currentTarget.select()}):c.a.createElement("span",null,t("qrcode_title"))),x&&c.a.createElement("div",{className:"page-no-response-panel"},c.a.createElement("p",{className:"page-no-response-title"},t("page_no_response")))))))};const O={textAlign:"center",margin:"10px 20px",fontSize:14};var z=({word:e,hasError:t})=>{Object(n.useEffect)(()=>{setTimeout(()=>{window.close()},3e3)},[]);const{t:a}=Object(u.d)("popup");return t?function(e){return c.a.createElement("div",{style:O},c.a.createElement("p",null,c.a.createElement("svg",{width:"100",height:"100",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.667 426.667"},c.a.createElement("path",{fill:"#f05228",d:"M213.333 0C95.514 0 0 95.514 0 213.333s95.514 213.333 213.333 213.333 213.333-95.514 213.333-213.333S331.153 0 213.333 0zm117.662 276.689l-54.302 54.306-63.36-63.356-63.36 63.36-54.302-54.31 63.356-63.356-63.356-63.36 54.302-54.302 63.36 63.356 63.36-63.356 54.302 54.302-63.356 63.36 63.356 63.356z"}))),c.a.createElement("p",null,e("notebook_error")))}(a):e&&e.text?function(e,t){return c.a.createElement("div",{style:O},c.a.createElement("p",null,c.a.createElement("svg",{width:"100",height:"100",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.667 426.667"},c.a.createElement("path",{fill:"#6ac259",d:"M213.333 0C95.518 0 0 95.514 0 213.333s95.518 213.333 213.333 213.333c117.828 0 213.333-95.514 213.333-213.333S331.157 0 213.333 0zm-39.134 322.918l-93.935-93.931 31.309-31.309 62.626 62.622 140.894-140.898 31.309 31.309-172.203 172.207z"}))),c.a.createElement("p",null,e("notebook_added")," 「",t.text,"」"))}(a,e):function(e){return c.a.createElement("div",{style:O},c.a.createElement("p",null,c.a.createElement("svg",{width:"100",height:"100",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.667 426.667"},c.a.createElement("g",{fill:"#fac917"},c.a.createElement("path",{d:"M213.338 0C95.509 0 0 95.497 0 213.325c0 117.854 95.509 213.342 213.338 213.342 117.82 0 213.329-95.488 213.329-213.342C426.667 95.497 331.157 0 213.338 0zm-.005 99.49c14.793 0 26.786 11.994 26.786 26.786s-11.998 26.782-26.786 26.782-26.786-11.994-26.786-26.782c0-14.792 11.994-26.786 26.786-26.786zm46.874 227.691H166.46v-40.183h20.087V206.64H166.46v-40.18h73.664v120.537h20.087v40.183h-.004z"}),c.a.createElement("path",{d:"M325.935 394.449l93.615 25.08-25.084-93.611z"})))),c.a.createElement("p",null,e("notebook_empty")))}(a)};a(1045);browser.runtime.connect({name:"popup"});const x=()=>{const{t:e}=Object(u.d)("popup");return c.a.createElement(i.a,null,c.a.createElement("title",null,e("title")))};Object(r.c)().then(e=>{switch(document.body.style.width="popup_panel"===e.baOpen?(e.baWidth>=0?e.baWidth:e.panelWidth)+"px":"450px",e.baOpen){case"popup_panel":!async function(e){e.analytics;const t=await Object(d.a)();o.a.render(c.a.createElement(u.b,null,c.a.createElement(x,null),c.a.createElement(m.a,{store:t},c.a.createElement(_,{config:e}))),document.getElementById("root"))}(e);break;case"popup_fav":!async function(){let e,t=!1;const a=(await browser.tabs.query({active:!0,currentWindow:!0}))[0];if(a&&a.id){try{e=await s.a.send(a.id,{type:"PRELOAD_SELECTION"})}catch(e){t=!0}if(e&&e.text)try{await Object(h.f)("notebook",e)}catch(e){t=!0}}else t=!0;if(o.a.render(c.a.createElement(u.b,null,c.a.createElement(z,{word:e,hasError:t})),document.getElementById("root")),e&&e.context){const t=await Object(r.c)();e.trans=Object(p.a)(e.trans,await Object(p.d)(e.context||e.title,t.ctxTrans));try{await Object(h.f)("notebook",e)}catch(e){}}}();break;case"popup_options":Object(s.b)("options.html",!0);break;case"popup_standalone":s.a.send({type:"OPEN_QS_PANEL"});break;default:(async function(e){const t={menuItemId:e},a=(await browser.tabs.query({active:!0,currentWindow:!0}).catch(()=>[]))[0];if(a&&a.url&&(t.linkUrl=a.url,a.id))try{const e=await s.a.send(a.id,{type:"PRELOAD_SELECTION"});e&&e.text&&(t.selectionText=e.text)}catch(e){console.error(e)}await s.a.send({type:"CONTEXT_MENUS_CLICK",payload:t})})(e.baOpen).then(()=>{window.close()})}})}},[[1039,0,1,6,23,7]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/popup.7f1f3fc2.css b/plugins/saladict-ztools/ext-saladic/assets/popup.7f1f3fc2.css new file mode 100644 index 00000000..fb8286f4 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/popup.7f1f3fc2.css @@ -0,0 +1 @@ +.saladict-theme{background-color:#fff;color:#24292f;--color-brand: #2f9d8a;--color-background: #ffffff;--color-rgb-background: 255, 255, 255;--color-font: #24292f;--color-font-grey: #5d6670;--color-divider: #d9dee3;--color-surface: #f6f8fa;--color-surface-active: #eaeef2;--color-link: #286aa8}.darkMode .saladict-theme{background-color:#282c30;color:#e3e0da;--color-brand: #2b9f8d;--color-background: #282c30;--color-rgb-background: 40, 44, 48;--color-font: #e3e0da;--color-font-grey: #b8b3aa;--color-divider: #555b61;--color-surface: #33383d;--color-surface-active: #3d444a;--color-link: #8eb7e6}html{margin:0;padding:0;overflow:hidden}body{position:relative;margin:0;padding:0;overflow:hidden;font-family:"Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei",sans-serif}.saladict-theme{background-color:#fff;color:#24292f;--color-brand: #2f9d8a;--color-background: #ffffff;--color-rgb-background: 255, 255, 255;--color-font: #24292f;--color-font-grey: #5d6670;--color-divider: #d9dee3;--color-surface: #f6f8fa;--color-surface-active: #eaeef2;--color-link: #286aa8}.darkMode .saladict-theme{background-color:#282c30;color:#e3e0da;--color-brand: #2b9f8d;--color-background: #282c30;--color-rgb-background: 40, 44, 48;--color-font: #e3e0da;--color-font-grey: #b8b3aa;--color-divider: #555b61;--color-surface: #33383d;--color-surface-active: #3d444a;--color-link: #8eb7e6}.dictPanel-FloatBox-Container{position:relative}.dictPanel-Root{display:flex;flex-direction:column;box-sizing:border-box;position:fixed;z-index:2147483647;top:0;left:0;overflow:hidden;text-align:initial;border-radius:6px;background-color:inherit;box-shadow:rgba(0,0,0,.8) 0px 4px 23px -6px}.dictPanel-Head{flex-shrink:0}.dictPanel-Body{flex:1;overflow-x:hidden;overflow-y:scroll;-webkit-overflow-scrolling:touch}.fancy-scrollbar{overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;scrollbar-width:auto}.fancy-scrollbar::-webkit-scrollbar{height:8px;width:8px}.fancy-scrollbar::-webkit-scrollbar-track{background-color:transparent}.fancy-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(138,138,138,.25);border-radius:4px}.fancy-scrollbar::-webkit-scrollbar-thumb:hover{background-color:rgba(138,138,138,.35)}.fancy-scrollbar::-webkit-scrollbar-thumb:active{background-color:rgba(138,138,138,.6)}.fancy-scrollbar::-webkit-scrollbar-thumb:vertical{min-height:50px}.fancy-scrollbar::-webkit-scrollbar-thumb:horizontal{min-width:50px}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:transparent;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn:focus,.menuBar-Btn-dir:focus,.menuBar-Btn:hover,.menuBar-Btn-dir:hover{outline:none;background:rgba(0,0,0,.05)}.menuBar-Btn:disabled svg,.menuBar-Btn-dir:disabled svg{fill:#9accc1}.menuBar-Btn:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn:disabled:hover,.menuBar-Btn-dir:disabled:hover{cursor:unset;background:transparent}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0px 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * 0.7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:hover,.floatBox-Item:focus{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em !important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:normal}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;color:var(--color-font);background:transparent;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:hover,.floatBox-Btn:focus{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0px 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0px 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0px 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}.menuBar-SuggestsEntry{margin-right:1.5em;color:#f9690e}.menuBar-SuggestsExplain{color:var(--color-font)}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:transparent;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn:focus,.menuBar-Btn-dir:focus,.menuBar-Btn:hover,.menuBar-Btn-dir:hover{outline:none;background:rgba(0,0,0,.05)}.menuBar-Btn:disabled svg,.menuBar-Btn-dir:disabled svg{fill:#9accc1}.menuBar-Btn:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn:disabled:hover,.menuBar-Btn-dir:disabled:hover{cursor:unset;background:transparent}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-history,.menuBar-Btn_Icon-fav{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-SearchBox_Wrap{flex:2;position:relative}.menuBar-SearchBox_Wrap.isExpand{flex:7}.isAnimate .menuBar-SearchBox_Wrap{transition:flex .6s}.menuBar-SearchBox{width:100%;box-sizing:border-box;padding:0 5px;border:0 none;outline:0 none;color:#fff;background-color:rgba(225,225,225,.1)}.menuBar-SearchBox_Suggests{position:absolute;left:0;top:30px;z-index:1000}.isAnimate .csst-menuBar-SearchBox_Suggests-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-enter-active,.isAnimate .csst-menuBar-SearchBox_Suggests-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-exit-active{opacity:0;transition:opacity .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0px 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * 0.7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:hover,.floatBox-Item:focus{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em !important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:normal}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;color:var(--color-font);background:transparent;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:hover,.floatBox-Btn:focus{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0px 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0px 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0px 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:transparent;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn:focus,.menuBar-Btn-dir:focus,.menuBar-Btn:hover,.menuBar-Btn-dir:hover{outline:none;background:rgba(0,0,0,.05)}.menuBar-Btn:disabled svg,.menuBar-Btn-dir:disabled svg{fill:#9accc1}.menuBar-Btn:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn:disabled:hover,.menuBar-Btn-dir:disabled:hover{cursor:unset;background:transparent}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-history,.menuBar-Btn_Icon-fav{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-ProfileItem{position:relative;padding-left:10px;color:var(--color-font)}.menuBar-ProfileItem.isActive::before{content:"";position:absolute;top:50%;transform:translateY(-55%);left:-5px;width:0;height:0;border-left:10px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}.menuBar{display:flex;align-items:center;position:relative;height:30px;padding:0 3px;font-size:14px;background-color:var(--color-brand)}.menuBar-DragArea{flex:3;align-self:stretch;-moz-user-select:none;user-select:none;touch-action:none;cursor:move}.mtaBox-TextArea-Wrap{max-height:var(--panel-max-height);position:relative;overflow:hidden;height:0}.isAnimate .mtaBox-TextArea-Wrap{transition:height .4s}.isAnimate .mtaBox-TextArea-Wrap.isTyping{transition:height 0s}.mtaBox-TextArea{display:block;width:100%;max-height:var(--panel-max-height);box-sizing:border-box;padding:5px 5px 10px;border:none;color:var(--color-font);font-size:var(--panel-font-size);background:transparent}.mtaBox-TextArea-Wrap-appear .mtaBox-TextArea,.mtaBox-TextArea-Wrap-appear-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit-active .mtaBox-TextArea{position:absolute;bottom:0}.mtaBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;padding:0;border:none;border-top:1px solid var(--color-divider);border-bottom:1px dashed var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.mtaBox-DrawerBtn:focus{outline:none;border:1px solid var(--color-font) !important}.mtaBox-DrawerBtn_Arrow{fill:var(--color-font)}.mtaBox-DrawerBtn_Arrow.isExpand{transform:rotate(180deg)}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0px 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * 0.7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:hover,.floatBox-Item:focus{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em !important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:normal}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;color:var(--color-font);background:transparent;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:hover,.floatBox-Btn:focus{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0px 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0px 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0px 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.dictItemHead{display:flex;box-sizing:border-box;align-items:flex-start;position:sticky;top:0;z-index:100;height:20px;padding-right:2px;border-top:1px var(--color-divider) dashed;background:var(--color-background)}.dictItemHead-Logo{width:20px;height:20px;margin-top:-1px;-moz-user-select:none;user-select:none}.dictItemHead-Title{margin:0;padding:0 3px;line-height:20px;font-size:12px;font-weight:normal}.dictItemHead-Title a{color:var(--color-font);text-decoration:none}.dictItemHead-Menus_Btn{width:18px;height:18px;margin:1px 0 0;padding:0;font-size:0;border:none;border-radius:3px;outline:none;background-color:transparent;opacity:.7;transition:background-color .4s;cursor:pointer}.dictItemHead-Menus_Btn svg{fill:var(--color-font)}.dictItemHead-Menus_Btn:hover,.dictItemHead-Menus_Btn:focus,.dictItemHead-Menus_Btn:active{background-color:var(--color-divider)}.darkMode .dictItemHead-Menus_Btn:hover,.darkMode .dictItemHead-Menus_Btn:focus,.darkMode .dictItemHead-Menus_Btn:active{background-color:var(--color-divider)}.dictItemHead-EmptyArea{flex:1;align-self:stretch}.dictItemHead-FoldArrowBtn{width:19px;height:19px;overflow:hidden;background:none;border:none;padding:0;cursor:pointer;-moz-user-select:none;user-select:none}.dictItemHead-FoldArrowBtn:hover{outline:none}.dictItemHead-FoldArrow{box-sizing:border-box;fill:var(--color-font);width:18px;height:18px;padding:3px;transform-origin:center}.isAnimate .dictItemHead-FoldArrow{transition:transform 400ms}.isUnfold .dictItemHead-FoldArrow{transform:rotate(-90deg)}.dictItemHead-Loader{display:flex;align-items:center;width:54px;height:20px}.dictItemHead-Loader>div{width:8px;height:8px;margin:2px;background:#f9690e;border-radius:100%}.isAnimate .dictItemHead-Loader>div{animation:dictItemHead-Loader 1.5s infinite ease-in-out}.isAnimate .dictItemHead-Loader>div:nth-child(5){animation-delay:0s}.isAnimate .dictItemHead-Loader>div:nth-child(4){animation-delay:-0.1s}.isAnimate .dictItemHead-Loader>div:nth-child(3){animation-delay:-0.2s}.isAnimate .dictItemHead-Loader>div:nth-child(2){animation-delay:-.3s}.isAnimate .dictItemHead-Loader>div:nth-child(1){animation-delay:-0.4s}@keyframes dictItemHead-Loader{0%,30%,70%,100%{transform:scale(0)}50%{transform:scale(1)}}.dictItem{position:relative;background:var(--color-background)}.dictItem-Body{overflow:hidden;position:relative;padding:0 10px;font-size:13px;line-height:1.6;color:var(--color-font)}.isAnimate .dictItem-Body{transition:height .4s,opacity .4s}.dictItem-BodyMesure{overflow:hidden;opacity:0;position:relative}.dictItem-BodyMesure>*:first-child{margin-top:10px !important}.dictItem-BodyMesure>*:last-child{margin-bottom:10px !important}.isAnimate .dictItem-BodyMesure{transition:opacity .4s}.isUnfold .dictItem-BodyMesure{opacity:1}.dictItem-Loader{align-self:center;width:120px;height:10px;-moz-user-select:none;user-select:none}.dictItem-Loader_Ball{width:10px;height:10px;fill:orange}.dictItem-Loader_Ball:nth-child(2){transform:translateX(15px)}.dictItem-Loader_Ball:nth-child(3){transform:translateX(30px)}.dictItem-Loader_Ball:nth-child(4){transform:translateX(45px)}.dictItem-Loader_Ball:nth-child(5){transform:translateX(60px)}.isAnimate .dictItem-Loader_Ball{animation:dictItem-Loader-shift 2s linear infinite}.isAnimate .dictItem-Loader_Ball:nth-child(2){animation-delay:-0.4s}.isAnimate .dictItem-Loader_Ball:nth-child(3){animation-delay:-0.8s}.isAnimate .dictItem-Loader_Ball:nth-child(4){animation-delay:-1.2s}.isAnimate .dictItem-Loader_Ball:nth-child(5){animation-delay:-1.6s}.dictItem-FoldMask{position:absolute;left:0;bottom:0;width:100%;height:50px;padding:0;border:none;background:linear-gradient(rgba(var(--color-rgb-background), 0) 40%, rgba(var(--color-rgb-background), 0.5) 60%, var(--color-background) 100%);opacity:.6;cursor:pointer;-moz-user-select:none;user-select:none}.dictItem-FoldMask:hover{outline:none;opacity:1}.isAnimate .dictItem-FoldMask{transition:opacity 400ms}.dictItem-FoldMaskArrow{position:absolute;z-index:10;bottom:0;left:0;right:0;margin:0 auto;width:15px;height:15px;fill:var(--color-font)}.isAnimate .noHeightTransition .dictItem-Body{transition:height 0s}@keyframes dictItem-Loader-shift{0%{transform:translateX(0);opacity:0}10%{transform:translateX(30px);opacity:1}90%{transform:translateX(80px);opacity:1}100%{transform:translateX(110px);opacity:0}}.dictList>.dictItem:first-child>.dictItemHead{border-top-color:transparent}.waveformBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;border:none;border-top:1px solid var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.waveformBox-DrawerBtn:focus{outline:none;border:1px solid var(--color-font) !important}.waveformBox-FrameWrap{overflow:hidden;height:0;font-size:0;transition:height .4s}.waveformBox-DrawerBtn_Arrow{fill:var(--color-font)}.waveformBox.isExpand .waveformBox-FrameWrap{height:165px}.waveformBox.isExpand .waveformBox-DrawerBtn{border-bottom:1px solid var(--color-divider)}.waveformBox.isExpand .waveformBox-DrawerBtn_Arrow{transform:rotate(180deg)}.waveformBox-Frame{width:100%;height:165px;border:none;transition:opacity .4s}.waveformBox-Frame-enter{opacity:0}.waveformBox-Frame-enter-active,.waveformBox-Frame-exit{opacity:1}.waveformBox-Frame-exit-active{opacity:0}.dictPanel-FloatBox-Container{position:absolute;top:0;left:0}.dictPanel-Root{position:relative !important;top:0 !important;left:0 !important;width:450px;height:500px;--panel-width: 450px;--panel-max-height: 500px;border-radius:0;box-shadow:rgba(0,0,0,.8) 0px 5px 20px -12px}.isAnimate .dictPanel-Root{transition:height .4s}.popup-root{overflow:hidden;display:flex;flex-direction:column-reverse;width:100vw;height:550px;font-size:14px}.qrcode-panel{position:fixed;z-index:2147483647;bottom:10px;left:10px;padding:20px;background:#fff;border-radius:10px;box-shadow:rgba(0,0,0,.8) 0px 4px 23px -6px}.qrcode-panel-title{text-align:center;margin:5px 0 0 0}.qrcode-panel-title input{width:100%}.page-no-response-panel{position:fixed;z-index:100;bottom:60px;right:25px;padding:0 10px;background:#fff;border-radius:10px;box-shadow:rgba(0,0,0,.8) 0px 4px 23px -6px}.switch-container{overflow:hidden;background:#f9f9f9}.active-switch{display:flex;align-items:center;position:relative;height:49px;border-bottom:1px solid #d8d8d8;padding:0 20px;-moz-user-select:none;user-select:none}.active-switch:last-child{border-bottom-color:transparent}.icon-qrcode{width:20px;margin-top:3px}.switch-title{flex:1;font-size:1.2em;padding:0 15px;text-align:left;color:#333}.btn-switch{position:absolute;z-index:-200000;opacity:0}.btn-switch+label{display:inline-block;width:55px;height:35px;position:relative;margin:auto;background-color:#ddd;border-radius:35px;cursor:pointer;outline:0;-moz-user-select:none;user-select:none}.btn-switch+label:before{content:"";display:block;position:absolute;top:1px;left:1px;bottom:1px;right:1px;background-color:#f1f1f1;border-radius:35px;transition:background .4s}.btn-switch+label:after{content:"";display:block;position:absolute;height:33px;width:33px;background-color:#fff;border-radius:100%;box-shadow:0 2px 5px rgba(0,0,0,.3);transition:margin .4s}.btn-switch:checked+label:before{background-color:#8ce196}.btn-switch:checked+label:after{margin-left:22px}.btn-switch:active+label,.btn-switch:focus+label{outline:5px auto #3b99fc;outline:5px auto -webkit-focus-ring-color}.btn-switch+label:hover{outline:none !important}.fade-enter{opacity:0;transition:opacity .5s}.fade-enter-active{opacity:1;transition:opacity .5s}.dark-mode{background:#222}.dark-mode .switch-container{background:#414141}.dark-mode .active-switch{border-bottom-color:#666}.dark-mode .switch-title{color:#ddd}.dark-mode .icon-qrcode{fill:#ddd}.dark-mode .btn-switch+label:before{background-color:#666}.dark-mode .btn-switch:checked+label:before{background-color:#8ce196}.dark-mode .btn-switch+label:after{background-color:#ddd}.dark-mode .qrcode-panel{background-color:#ddd} diff --git a/plugins/saladict-ztools/ext-saladic/assets/popup.8c1b3ce2.css b/plugins/saladict-ztools/ext-saladic/assets/popup.8c1b3ce2.css deleted file mode 100644 index 82c972cd..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/popup.8c1b3ce2.css +++ /dev/null @@ -1 +0,0 @@ -.saladict-theme{background-color:#fff;color:#333;--color-brand: #5caf9e;--color-background: #fff;--color-rgb-background: 255, 255, 255;--color-font: #333;--color-font-grey: #666;--color-divider: #ddd}.darkMode .saladict-theme{background-color:#222;color:#ddd;--color-brand: #1e947e;--color-background: #222;--color-rgb-background: 34, 34, 34;--color-font: #ddd;--color-font-grey: #aaa;--color-divider: #4d4748}html{margin:0;padding:0;overflow:hidden}body{position:relative;margin:0;padding:0;overflow:hidden;font-family:"Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei",sans-serif}.saladict-theme{background-color:#fff;color:#333;--color-brand: #5caf9e;--color-background: #fff;--color-rgb-background: 255, 255, 255;--color-font: #333;--color-font-grey: #666;--color-divider: #ddd}.darkMode .saladict-theme{background-color:#222;color:#ddd;--color-brand: #1e947e;--color-background: #222;--color-rgb-background: 34, 34, 34;--color-font: #ddd;--color-font-grey: #aaa;--color-divider: #4d4748}.dictPanel-FloatBox-Container{position:relative}.dictPanel-Root{display:flex;flex-direction:column;box-sizing:border-box;position:fixed;z-index:2147483647;top:0;left:0;overflow:hidden;text-align:initial;border-radius:6px;background-color:inherit;box-shadow:rgba(0,0,0,.8) 0px 4px 23px -6px}.dictPanel-Head{flex-shrink:0}.dictPanel-Body{flex:1;overflow-x:hidden;overflow-y:scroll;-webkit-overflow-scrolling:touch}.fancy-scrollbar{overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;scrollbar-width:auto}.fancy-scrollbar::-webkit-scrollbar{height:8px;width:8px}.fancy-scrollbar::-webkit-scrollbar-track{background-color:transparent}.fancy-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(138,138,138,.25);border-radius:4px}.fancy-scrollbar::-webkit-scrollbar-thumb:hover{background-color:rgba(138,138,138,.35)}.fancy-scrollbar::-webkit-scrollbar-thumb:active{background-color:rgba(138,138,138,.6)}.fancy-scrollbar::-webkit-scrollbar-thumb:vertical{min-height:50px}.fancy-scrollbar::-webkit-scrollbar-thumb:horizontal{min-width:50px}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:transparent;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn:focus,.menuBar-Btn-dir:focus,.menuBar-Btn:hover,.menuBar-Btn-dir:hover{outline:none;background:rgba(0,0,0,.05)}.menuBar-Btn:disabled svg,.menuBar-Btn-dir:disabled svg{fill:#9accc1}.menuBar-Btn:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn:disabled:hover,.menuBar-Btn-dir:disabled:hover{cursor:unset;background:transparent}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0px 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * 0.7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:hover,.floatBox-Item:focus{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em !important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:normal}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;color:var(--color-font);background:transparent;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:hover,.floatBox-Btn:focus{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0px 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0px 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0px 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}.menuBar-SuggestsEntry{margin-right:1.5em;color:#f9690e}.menuBar-SuggestsExplain{color:var(--color-font)}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:transparent;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn:focus,.menuBar-Btn-dir:focus,.menuBar-Btn:hover,.menuBar-Btn-dir:hover{outline:none;background:rgba(0,0,0,.05)}.menuBar-Btn:disabled svg,.menuBar-Btn-dir:disabled svg{fill:#9accc1}.menuBar-Btn:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn:disabled:hover,.menuBar-Btn-dir:disabled:hover{cursor:unset;background:transparent}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-history,.menuBar-Btn_Icon-fav{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-SearchBox_Wrap{flex:2;position:relative}.menuBar-SearchBox_Wrap.isExpand{flex:7}.isAnimate .menuBar-SearchBox_Wrap{transition:flex .6s}.menuBar-SearchBox{width:100%;box-sizing:border-box;padding:0 5px;border:0 none;outline:0 none;color:#fff;background-color:rgba(225,225,225,.1)}.menuBar-SearchBox_Suggests{position:absolute;left:0;top:30px;z-index:1000}.isAnimate .csst-menuBar-SearchBox_Suggests-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-enter-active,.isAnimate .csst-menuBar-SearchBox_Suggests-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-exit-active{opacity:0;transition:opacity .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0px 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * 0.7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:hover,.floatBox-Item:focus{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em !important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:normal}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;color:var(--color-font);background:transparent;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:hover,.floatBox-Btn:focus{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0px 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0px 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0px 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:transparent;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn:focus,.menuBar-Btn-dir:focus,.menuBar-Btn:hover,.menuBar-Btn-dir:hover{outline:none;background:rgba(0,0,0,.05)}.menuBar-Btn:disabled svg,.menuBar-Btn-dir:disabled svg{fill:#9accc1}.menuBar-Btn:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn:disabled:hover,.menuBar-Btn-dir:disabled:hover{cursor:unset;background:transparent}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-history,.menuBar-Btn_Icon-fav{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-ProfileItem{position:relative;padding-left:10px;color:var(--color-font)}.menuBar-ProfileItem.isActive::before{content:"";position:absolute;top:50%;transform:translateY(-55%);left:-5px;width:0;height:0;border-left:10px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}.menuBar{display:flex;align-items:center;position:relative;height:30px;padding:0 3px;font-size:14px;background-color:var(--color-brand)}.menuBar-DragArea{flex:3;align-self:stretch;-moz-user-select:none;user-select:none;touch-action:none;cursor:move}.mtaBox-TextArea-Wrap{max-height:var(--panel-max-height);position:relative;overflow:hidden;height:0}.isAnimate .mtaBox-TextArea-Wrap{transition:height .4s}.isAnimate .mtaBox-TextArea-Wrap.isTyping{transition:height 0s}.mtaBox-TextArea{display:block;width:100%;max-height:var(--panel-max-height);box-sizing:border-box;padding:5px 5px 10px;border:none;color:var(--color-font);font-size:var(--panel-font-size);background:transparent}.mtaBox-TextArea-Wrap-appear .mtaBox-TextArea,.mtaBox-TextArea-Wrap-appear-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit-active .mtaBox-TextArea{position:absolute;bottom:0}.mtaBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;padding:0;border:none;border-top:1px solid var(--color-divider);border-bottom:1px dashed var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.mtaBox-DrawerBtn:focus{outline:none;border:1px solid var(--color-font) !important}.mtaBox-DrawerBtn_Arrow{fill:var(--color-font)}.mtaBox-DrawerBtn_Arrow.isExpand{transform:rotate(180deg)}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0px 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * 0.7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:hover,.floatBox-Item:focus{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em !important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:normal}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;color:var(--color-font);background:transparent;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:hover,.floatBox-Btn:focus{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0px 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0px 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0px 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.dictItemHead{display:flex;box-sizing:border-box;align-items:flex-start;position:sticky;top:0;z-index:100;height:20px;padding-right:2px;border-top:1px var(--color-divider) dashed;background:var(--color-background)}.dictItemHead-Logo{width:20px;height:20px;margin-top:-1px;-moz-user-select:none;user-select:none}.dictItemHead-Title{margin:0;padding:0 3px;line-height:20px;font-size:12px;font-weight:normal}.dictItemHead-Title a{color:var(--color-font);text-decoration:none}.dictItemHead-Menus_Btn{width:18px;height:18px;margin:1px 0 0;padding:0;font-size:0;border:none;border-radius:3px;outline:none;background-color:transparent;opacity:.7;transition:background-color .4s;cursor:pointer}.dictItemHead-Menus_Btn svg{fill:var(--color-font)}.dictItemHead-Menus_Btn:hover,.dictItemHead-Menus_Btn:focus,.dictItemHead-Menus_Btn:active{background-color:var(--color-divider)}.darkMode .dictItemHead-Menus_Btn:hover,.darkMode .dictItemHead-Menus_Btn:focus,.darkMode .dictItemHead-Menus_Btn:active{background-color:#2d3338}.dictItemHead-EmptyArea{flex:1;align-self:stretch}.dictItemHead-FoldArrowBtn{width:19px;height:19px;overflow:hidden;background:none;border:none;padding:0;cursor:pointer;-moz-user-select:none;user-select:none}.dictItemHead-FoldArrowBtn:hover{outline:none}.dictItemHead-FoldArrow{box-sizing:border-box;fill:var(--color-font);width:18px;height:18px;padding:3px;transform-origin:center}.isAnimate .dictItemHead-FoldArrow{transition:transform 400ms}.isUnfold .dictItemHead-FoldArrow{transform:rotate(-90deg)}.dictItemHead-Loader{display:flex;align-items:center;width:54px;height:20px}.dictItemHead-Loader>div{width:8px;height:8px;margin:2px;background:#f9690e;border-radius:100%}.isAnimate .dictItemHead-Loader>div{animation:dictItemHead-Loader 1.5s infinite ease-in-out}.isAnimate .dictItemHead-Loader>div:nth-child(5){animation-delay:0s}.isAnimate .dictItemHead-Loader>div:nth-child(4){animation-delay:-0.1s}.isAnimate .dictItemHead-Loader>div:nth-child(3){animation-delay:-0.2s}.isAnimate .dictItemHead-Loader>div:nth-child(2){animation-delay:-.3s}.isAnimate .dictItemHead-Loader>div:nth-child(1){animation-delay:-0.4s}@keyframes dictItemHead-Loader{0%,30%,70%,100%{transform:scale(0)}50%{transform:scale(1)}}.dictItem{position:relative;background:var(--color-background)}.dictItem-Body{overflow:hidden;position:relative;padding:0 10px;font-size:13px;line-height:1.6;color:var(--color-font)}.isAnimate .dictItem-Body{transition:height .4s,opacity .4s}.dictItem-BodyMesure{overflow:hidden;opacity:0;position:relative}.dictItem-BodyMesure>*:first-child{margin-top:10px !important}.dictItem-BodyMesure>*:last-child{margin-bottom:10px !important}.isAnimate .dictItem-BodyMesure{transition:opacity .4s}.isUnfold .dictItem-BodyMesure{opacity:1}.dictItem-Loader{align-self:center;width:120px;height:10px;-moz-user-select:none;user-select:none}.dictItem-Loader_Ball{width:10px;height:10px;fill:orange}.dictItem-Loader_Ball:nth-child(2){transform:translateX(15px)}.dictItem-Loader_Ball:nth-child(3){transform:translateX(30px)}.dictItem-Loader_Ball:nth-child(4){transform:translateX(45px)}.dictItem-Loader_Ball:nth-child(5){transform:translateX(60px)}.isAnimate .dictItem-Loader_Ball{animation:dictItem-Loader-shift 2s linear infinite}.isAnimate .dictItem-Loader_Ball:nth-child(2){animation-delay:-0.4s}.isAnimate .dictItem-Loader_Ball:nth-child(3){animation-delay:-0.8s}.isAnimate .dictItem-Loader_Ball:nth-child(4){animation-delay:-1.2s}.isAnimate .dictItem-Loader_Ball:nth-child(5){animation-delay:-1.6s}.dictItem-FoldMask{position:absolute;left:0;bottom:0;width:100%;height:50px;padding:0;border:none;background:linear-gradient(transparent 40%, rgba(var(--color-rgb-background), 0.5) 60%, var(--color-background) 100%);opacity:.6;cursor:pointer;-moz-user-select:none;user-select:none}.dictItem-FoldMask:hover{outline:none;opacity:1}.isAnimate .dictItem-FoldMask{transition:opacity 400ms}.dictItem-FoldMaskArrow{position:absolute;z-index:10;bottom:0;left:0;right:0;margin:0 auto;width:15px;height:15px;fill:var(--color-font)}.isAnimate .noHeightTransition .dictItem-Body{transition:height 0s}@keyframes dictItem-Loader-shift{0%{transform:translateX(0);opacity:0}10%{transform:translateX(30px);opacity:1}90%{transform:translateX(80px);opacity:1}100%{transform:translateX(110px);opacity:0}}.dictList>.dictItem:first-child>.dictItemHead{border-top-color:transparent}.waveformBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;border:none;border-top:1px solid var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.waveformBox-DrawerBtn:focus{outline:none;border:1px solid var(--color-font) !important}.waveformBox-FrameWrap{overflow:hidden;height:0;font-size:0;transition:height .4s}.waveformBox-DrawerBtn_Arrow{fill:var(--color-font)}.waveformBox.isExpand .waveformBox-FrameWrap{height:165px}.waveformBox.isExpand .waveformBox-DrawerBtn{border-bottom:1px solid var(--color-divider)}.waveformBox.isExpand .waveformBox-DrawerBtn_Arrow{transform:rotate(180deg)}.waveformBox-Frame{width:100%;height:165px;border:none;transition:opacity .4s}.waveformBox-Frame-enter{opacity:0}.waveformBox-Frame-enter-active,.waveformBox-Frame-exit{opacity:1}.waveformBox-Frame-exit-active{opacity:0}.dictPanel-FloatBox-Container{position:absolute;top:0;left:0}.dictPanel-Root{position:relative !important;top:0 !important;left:0 !important;width:450px;height:500px;--panel-width: 450px;--panel-max-height: 500px;border-radius:0;box-shadow:rgba(0,0,0,.8) 0px 5px 20px -12px}.isAnimate .dictPanel-Root{transition:height .4s}.popup-root{overflow:hidden;display:flex;flex-direction:column-reverse;width:100vw;height:550px;font-size:14px}.qrcode-panel{position:fixed;z-index:2147483647;bottom:10px;left:10px;padding:20px;background:#fff;border-radius:10px;box-shadow:rgba(0,0,0,.8) 0px 4px 23px -6px}.qrcode-panel-title{text-align:center;margin:5px 0 0 0}.qrcode-panel-title input{width:100%}.page-no-response-panel{position:fixed;z-index:100;bottom:60px;right:25px;padding:0 10px;background:#fff;border-radius:10px;box-shadow:rgba(0,0,0,.8) 0px 4px 23px -6px}.switch-container{overflow:hidden;background:#f9f9f9}.active-switch{display:flex;align-items:center;position:relative;height:49px;border-bottom:1px solid #d8d8d8;padding:0 20px;-moz-user-select:none;user-select:none}.active-switch:last-child{border-bottom-color:transparent}.icon-qrcode{width:20px;margin-top:3px}.switch-title{flex:1;font-size:1.2em;padding:0 15px;text-align:left;color:#333}.btn-switch{position:absolute;z-index:-200000;opacity:0}.btn-switch+label{display:inline-block;width:55px;height:35px;position:relative;margin:auto;background-color:#ddd;border-radius:35px;cursor:pointer;outline:0;-moz-user-select:none;user-select:none}.btn-switch+label:before{content:"";display:block;position:absolute;top:1px;left:1px;bottom:1px;right:1px;background-color:#f1f1f1;border-radius:35px;transition:background .4s}.btn-switch+label:after{content:"";display:block;position:absolute;height:33px;width:33px;background-color:#fff;border-radius:100%;box-shadow:0 2px 5px rgba(0,0,0,.3);transition:margin .4s}.btn-switch:checked+label:before{background-color:#8ce196}.btn-switch:checked+label:after{margin-left:22px}.btn-switch:active+label,.btn-switch:focus+label{outline:5px auto #3b99fc;outline:5px auto -webkit-focus-ring-color}.btn-switch+label:hover{outline:none !important}.fade-enter{opacity:0;transition:opacity .5s}.fade-enter-active{opacity:1;transition:opacity .5s}.dark-mode{background:#222}.dark-mode .switch-container{background:#414141}.dark-mode .active-switch{border-bottom-color:#666}.dark-mode .switch-title{color:#ddd}.dark-mode .icon-qrcode{fill:#ddd}.dark-mode .btn-switch+label:before{background-color:#666}.dark-mode .btn-switch:checked+label:before{background-color:#8ce196}.dark-mode .btn-switch+label:after{background-color:#ddd}.dark-mode .qrcode-panel{background-color:#ddd} diff --git a/plugins/saladict-ztools/ext-saladic/assets/popup.e35feaed.js b/plugins/saladict-ztools/ext-saladic/assets/popup.e35feaed.js deleted file mode 100644 index d0913974..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/popup.e35feaed.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[14],{1002:function(e,t,a){},1312:function(e,t,a){"use strict";a.r(t),window.__SALADICT_INTERNAL_PAGE__=!0,window.__SALADICT_POPUP_PAGE__=!0;a(431);var n=a(0),c=a.n(n),o=a(20),r=a.n(o),l=a(433),i=a(149),s=a(29),h=a(1),p=a(11),d=a(80),m=a(22),u=a(63),v=a(9),w=a(4),E=a.n(w),b=a(926),f=a.n(b),g=a(89),y=a(756);var _=e=>{const{t:t}=Object(v.e)("popup"),[a,o]=Object(n.useState)(e.config),[r,l]=Object(n.useState)(!1),[i,p]=Object(n.useState)(""),[d,m]=Object(n.useState)(30),u=Object(n.useCallback)(()=>m(a.baHeight-51),[a.baHeight]),w=Object(n.useCallback)(()=>m(a.baHeight-151),[a.baHeight]),[b,_]=Object(n.useState)("mode"),[O,z]=Object(n.useState)(!1),[x,M]=Object(n.useState)(!1);return Object(n.useLayoutEffect)(()=>{document.body.style.width=(a.baWidth>=0?a.baWidth:a.panelWidth)+"px"},[a]),Object(n.useEffect)(()=>{u(),Object(s.a)(({newConfig:e})=>{o(e)}),browser.tabs.query({active:!0,currentWindow:!0}).then(e=>{e.length>0&&null!=e[0].id&&(h.a.send(e[0].id,{type:"TEMP_DISABLED_STATE",payload:{op:"get"}}).then(e=>{z(e)}),h.a.send(e[0].id,{type:"QUERY_PIN_STATE"}).then(e=>{_(e?"pinMode":"mode")}))}).catch(e=>console.warn("Error when receiving MsgTempDisabled response",e))},[]),c.a.createElement("div",{className:E()("popup-root",{"dark-mode":a.darkMode}),style:{height:a.baHeight}},c.a.createElement(y.a,{width:"100vw",height:d+"px"}),c.a.createElement("div",{className:"switch-container",onMouseEnter:w,onMouseLeave:u},c.a.createElement("div",{className:"active-switch"},c.a.createElement("span",{className:"switch-title"},t("app_temp_active_title")),c.a.createElement("input",{type:"checkbox",id:"opt-temp-active",className:"btn-switch",checked:O,onChange:function(){const e=!O;z(e),browser.tabs.query({active:!0,currentWindow:!0}).then(t=>t.length>0&&null!=t[0].id&&h.a.send(t[0].id,{type:"TEMP_DISABLED_STATE",payload:{op:"set",value:e}})).then(t=>{if(!t)throw z(!e),new Error("Set tempOff failed")}).catch(()=>M(!0))},onFocus:w}),c.a.createElement("label",{htmlFor:"opt-temp-active"})),c.a.createElement("div",{className:"active-switch"},c.a.createElement("span",{className:"switch-title"},t("instant_capture_title")+("pinMode"===b?t("instant_capture_pinned"):"")),c.a.createElement("input",{type:"checkbox",id:"opt-instant-capture",className:"btn-switch",checked:a[b].instant.enable,onChange:function(){Object(s.f)({...a,[b]:{...a[b],instant:{...a[b].instant,enable:!a[b].instant.enable}}})},onFocus:w}),c.a.createElement("label",{htmlFor:"opt-instant-capture"})),c.a.createElement("div",{className:"active-switch"},c.a.createElement("svg",{className:"icon-qrcode",onMouseEnter:async function(){const e=await browser.tabs.query({active:!0,currentWindow:!0});if(e.length>0){const t=e[0].url;if(t){if(!t.startsWith("http")){const e=/pdf\/web\/viewer\.html\?file=(.*)$/.exec(t);if(e)return l(!0),void p(decodeURIComponent(e[1]))}l(!1),p(t)}}},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 612 612"},c.a.createElement("path",{d:"M0 225v25h250v-25H0zM0 25h250V0H0v25z"}),c.a.createElement("path",{d:"M0 250h25V0H0v250zm225 0h25V0h-25v250zM87.5 162.5h75v-75h-75v75zM362 587v25h80v-25h-80zm0-200h80v-25h-80v25z"}),c.a.createElement("path",{d:"M362 612h25V362h-25v250zm190-250v25h60v-25h-60zm-77.5 87.5v25h50v-25h-50z"}),c.a.createElement("path",{d:"M432 497.958v-25h-70v25h70zM474.5 387h50v-25h-50v25zM362 225v25h250v-25H362zm0-200h250V0H362v25z"}),c.a.createElement("path",{d:"M362 250h25V0h-25v250zm225 0h25V0h-25v250zm-137.5-87.5h75v-75h-75v75zM0 587v25h250v-25H0zm0-200h250v-25H0v25z"}),c.a.createElement("path",{d:"M0 612h25V362H0v250zm225 0h25V362h-25v250zM87.5 524.5h75v-75h-75v75zM587 612h25V441h-25v171zM474.5 499.5v25h50v-25h-50z"}),c.a.createElement("path",{d:"M474.5 449.5v75h25v-75h-25zM562 587v25h50v-25h-50z"})),c.a.createElement("span",{className:"switch-title"},t("app_active_title")),c.a.createElement("input",{type:"checkbox",id:"opt-active",className:"btn-switch",checked:a.active,onChange:function(){Object(s.f)({...a,active:!a.active})},onFocus:w}),c.a.createElement("label",{htmlFor:"opt-active"})),c.a.createElement(g.a,{classNames:"fade",in:!!i,timeout:500,exit:!1,mountOnEnter:!0,unmountOnExit:!0},()=>c.a.createElement("div",{className:"qrcode-panel",onMouseLeave:()=>p("")},c.a.createElement(f.a,{value:i,size:250,bgColor:a.darkMode?"#ddd":"#fff",fgColor:"#222"}),c.a.createElement("p",{className:"qrcode-panel-title"},r?c.a.createElement("input",{type:"text",autoFocus:!0,readOnly:!0,value:i,onFocus:e=>e.currentTarget.select()}):c.a.createElement("span",null,t("qrcode_title"))),x&&c.a.createElement("div",{className:"page-no-response-panel"},c.a.createElement("p",{className:"page-no-response-title"},t("page_no_response")))))))};const O={textAlign:"center",margin:"10px 20px",fontSize:14};var z=({word:e,hasError:t})=>{Object(n.useEffect)(()=>{setTimeout(()=>{window.close()},3e3)},[]);const{t:a}=Object(v.e)("popup");return t?function(e){return c.a.createElement("div",{style:O},c.a.createElement("p",null,c.a.createElement("svg",{width:"100",height:"100",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.667 426.667"},c.a.createElement("path",{fill:"#f05228",d:"M213.333 0C95.514 0 0 95.514 0 213.333s95.514 213.333 213.333 213.333 213.333-95.514 213.333-213.333S331.153 0 213.333 0zm117.662 276.689l-54.302 54.306-63.36-63.356-63.36 63.36-54.302-54.31 63.356-63.356-63.356-63.36 54.302-54.302 63.36 63.356 63.36-63.356 54.302 54.302-63.356 63.36 63.356 63.356z"}))),c.a.createElement("p",null,e("notebook_error")))}(a):e&&e.text?function(e,t){return c.a.createElement("div",{style:O},c.a.createElement("p",null,c.a.createElement("svg",{width:"100",height:"100",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.667 426.667"},c.a.createElement("path",{fill:"#6ac259",d:"M213.333 0C95.518 0 0 95.514 0 213.333s95.518 213.333 213.333 213.333c117.828 0 213.333-95.514 213.333-213.333S331.157 0 213.333 0zm-39.134 322.918l-93.935-93.931 31.309-31.309 62.626 62.622 140.894-140.898 31.309 31.309-172.203 172.207z"}))),c.a.createElement("p",null,e("notebook_added")," 「",t.text,"」"))}(a,e):function(e){return c.a.createElement("div",{style:O},c.a.createElement("p",null,c.a.createElement("svg",{width:"100",height:"100",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.667 426.667"},c.a.createElement("g",{fill:"#fac917"},c.a.createElement("path",{d:"M213.338 0C95.509 0 0 95.497 0 213.325c0 117.854 95.509 213.342 213.338 213.342 117.82 0 213.329-95.488 213.329-213.342C426.667 95.497 331.157 0 213.338 0zm-.005 99.49c14.793 0 26.786 11.994 26.786 26.786s-11.998 26.782-26.786 26.782-26.786-11.994-26.786-26.782c0-14.792 11.994-26.786 26.786-26.786zm46.874 227.691H166.46v-40.183h20.087V206.64H166.46v-40.18h73.664v120.537h20.087v40.183h-.004z"}),c.a.createElement("path",{d:"M325.935 394.449l93.615 25.08-25.084-93.611z"})))),c.a.createElement("p",null,e("notebook_empty")))}(a)};a(1002);browser.runtime.connect({name:"popup"});const x=()=>{const{t:e}=Object(v.e)("popup");return c.a.createElement(l.a,null,c.a.createElement("title",null,e("title")))};Object(s.c)().then(e=>{switch(document.body.style.width="popup_panel"===e.baOpen?(e.baWidth>=0?e.baWidth:e.panelWidth)+"px":"450px",e.baOpen){case"popup_panel":!async function(e){e.analytics&&Object(i.b)("/popup");const t=await Object(u.a)();r.a.render(c.a.createElement(v.b,null,c.a.createElement(x,null),c.a.createElement(m.a,{store:t},c.a.createElement(_,{config:e}))),document.getElementById("root"))}(e);break;case"popup_fav":!async function(){let e,t=!1;const a=(await browser.tabs.query({active:!0,currentWindow:!0}))[0];if(a&&a.id){try{e=await h.a.send(a.id,{type:"PRELOAD_SELECTION"})}catch(e){t=!0}if(e&&e.text)try{await Object(p.f)("notebook",e)}catch(e){t=!0}}else t=!0;if(r.a.render(c.a.createElement(v.b,null,c.a.createElement(z,{word:e,hasError:t})),document.getElementById("root")),e&&e.context){const t=await Object(s.c)();e.trans=Object(d.a)(e.trans,await Object(d.d)(e.context||e.title,t.ctxTrans));try{await Object(p.f)("notebook",e)}catch(e){}}}();break;case"popup_options":Object(h.b)("options.html",!0);break;case"popup_standalone":h.a.send({type:"OPEN_QS_PANEL"});break;default:(async function(e){const t={menuItemId:e},a=(await browser.tabs.query({active:!0,currentWindow:!0}).catch(()=>[]))[0];if(a&&a.url&&(t.linkUrl=a.url,a.id))try{const e=await h.a.send(a.id,{type:"PRELOAD_SELECTION"});e&&e.text&&(t.selectionText=e.text)}catch(e){console.error(e)}await h.a.send({type:"CONTEXT_MENUS_CLICK",payload:t})})(e.baOpen).then(()=>{window.close()})}})},149:function(e,t,a){"use strict";a.d(t,"b",(function(){return p})),a.d(t,"a",(function(){return d}));var n=a(383),c=a.n(n),o=a(131),r=a.n(o),l=a(384),i=a.n(l),s=a(1),h=a(113);async function p(e){const t=new c.a,a=t.getBrowser(),n=t.getOS();try{await m({t:"pageview",dp:e,cd1:a.name||"None",cd2:(a.version||"0.0").split(".").slice(0,3).join("."),cd3:n.name||"None",cd4:n.version||"0.0",de:"UTF-8",dl:document.location.href,sd:screen.colorDepth+"-bit",sr:screen.width+"x"+screen.height,ul:"zh-cn"})}catch(e){console.error("Report pageview error",e)}}async function d(e){const t={t:"event",ec:e.category,ea:e.action};null!=e.label&&(t.el=e.label),null!=e.value&&(t.ev=e.value);try{await m(t)}catch(e){console.error("Report event error",e)}}async function m(e){let t=(await s.c.sync.get("gacid")).gacid;return t||(t=i()(),s.c.sync.set({gacid:t})),r()({url:"https://www.google-analytics.com/collect",method:"post",headers:{"content-type":"text/plain;charset=UTF-8"},data:new URLSearchParams({v:"1",tid:"UA-49163616-4",cid:t,z:Object(h.a)(),...e})})}},996:function(e,t,a){e.exports=a(1312)}},[[996,0,1,6,22,7]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/quick-search.3d7b8b70.css b/plugins/saladict-ztools/ext-saladic/assets/quick-search.3d7b8b70.css deleted file mode 100644 index f2693eba..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/quick-search.3d7b8b70.css +++ /dev/null @@ -1 +0,0 @@ -.saladict-theme{background-color:#fff;color:#333;--color-brand: #5caf9e;--color-background: #fff;--color-rgb-background: 255, 255, 255;--color-font: #333;--color-font-grey: #666;--color-divider: #ddd}.darkMode .saladict-theme{background-color:#222;color:#ddd;--color-brand: #1e947e;--color-background: #222;--color-rgb-background: 34, 34, 34;--color-font: #ddd;--color-font-grey: #aaa;--color-divider: #4d4748}.dictPanel-FloatBox-Container{position:relative}.dictPanel-Root{display:flex;flex-direction:column;box-sizing:border-box;position:fixed;z-index:2147483647;top:0;left:0;overflow:hidden;text-align:initial;border-radius:6px;background-color:inherit;box-shadow:rgba(0,0,0,.8) 0px 4px 23px -6px}.dictPanel-Head{flex-shrink:0}.dictPanel-Body{flex:1;overflow-x:hidden;overflow-y:scroll;-webkit-overflow-scrolling:touch}.fancy-scrollbar{overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;scrollbar-width:auto}.fancy-scrollbar::-webkit-scrollbar{height:8px;width:8px}.fancy-scrollbar::-webkit-scrollbar-track{background-color:transparent}.fancy-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(138,138,138,.25);border-radius:4px}.fancy-scrollbar::-webkit-scrollbar-thumb:hover{background-color:rgba(138,138,138,.35)}.fancy-scrollbar::-webkit-scrollbar-thumb:active{background-color:rgba(138,138,138,.6)}.fancy-scrollbar::-webkit-scrollbar-thumb:vertical{min-height:50px}.fancy-scrollbar::-webkit-scrollbar-thumb:horizontal{min-width:50px}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:transparent;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn:focus,.menuBar-Btn-dir:focus,.menuBar-Btn:hover,.menuBar-Btn-dir:hover{outline:none;background:rgba(0,0,0,.05)}.menuBar-Btn:disabled svg,.menuBar-Btn-dir:disabled svg{fill:#9accc1}.menuBar-Btn:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn:disabled:hover,.menuBar-Btn-dir:disabled:hover{cursor:unset;background:transparent}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0px 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * 0.7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:hover,.floatBox-Item:focus{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em !important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:normal}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;color:var(--color-font);background:transparent;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:hover,.floatBox-Btn:focus{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0px 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0px 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0px 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}.menuBar-SuggestsEntry{margin-right:1.5em;color:#f9690e}.menuBar-SuggestsExplain{color:var(--color-font)}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:transparent;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn:focus,.menuBar-Btn-dir:focus,.menuBar-Btn:hover,.menuBar-Btn-dir:hover{outline:none;background:rgba(0,0,0,.05)}.menuBar-Btn:disabled svg,.menuBar-Btn-dir:disabled svg{fill:#9accc1}.menuBar-Btn:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn:disabled:hover,.menuBar-Btn-dir:disabled:hover{cursor:unset;background:transparent}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-history,.menuBar-Btn_Icon-fav{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-SearchBox_Wrap{flex:2;position:relative}.menuBar-SearchBox_Wrap.isExpand{flex:7}.isAnimate .menuBar-SearchBox_Wrap{transition:flex .6s}.menuBar-SearchBox{width:100%;box-sizing:border-box;padding:0 5px;border:0 none;outline:0 none;color:#fff;background-color:rgba(225,225,225,.1)}.menuBar-SearchBox_Suggests{position:absolute;left:0;top:30px;z-index:1000}.isAnimate .csst-menuBar-SearchBox_Suggests-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-enter-active,.isAnimate .csst-menuBar-SearchBox_Suggests-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-exit-active{opacity:0;transition:opacity .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0px 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * 0.7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:hover,.floatBox-Item:focus{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em !important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:normal}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;color:var(--color-font);background:transparent;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:hover,.floatBox-Btn:focus{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0px 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0px 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0px 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:transparent;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn:focus,.menuBar-Btn-dir:focus,.menuBar-Btn:hover,.menuBar-Btn-dir:hover{outline:none;background:rgba(0,0,0,.05)}.menuBar-Btn:disabled svg,.menuBar-Btn-dir:disabled svg{fill:#9accc1}.menuBar-Btn:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn:disabled:hover,.menuBar-Btn-dir:disabled:hover{cursor:unset;background:transparent}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-history,.menuBar-Btn_Icon-fav{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-ProfileItem{position:relative;padding-left:10px;color:var(--color-font)}.menuBar-ProfileItem.isActive::before{content:"";position:absolute;top:50%;transform:translateY(-55%);left:-5px;width:0;height:0;border-left:10px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}.menuBar{display:flex;align-items:center;position:relative;height:30px;padding:0 3px;font-size:14px;background-color:var(--color-brand)}.menuBar-DragArea{flex:3;align-self:stretch;-moz-user-select:none;user-select:none;touch-action:none;cursor:move}.mtaBox-TextArea-Wrap{max-height:var(--panel-max-height);position:relative;overflow:hidden;height:0}.isAnimate .mtaBox-TextArea-Wrap{transition:height .4s}.isAnimate .mtaBox-TextArea-Wrap.isTyping{transition:height 0s}.mtaBox-TextArea{display:block;width:100%;max-height:var(--panel-max-height);box-sizing:border-box;padding:5px 5px 10px;border:none;color:var(--color-font);font-size:var(--panel-font-size);background:transparent}.mtaBox-TextArea-Wrap-appear .mtaBox-TextArea,.mtaBox-TextArea-Wrap-appear-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit-active .mtaBox-TextArea{position:absolute;bottom:0}.mtaBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;padding:0;border:none;border-top:1px solid var(--color-divider);border-bottom:1px dashed var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.mtaBox-DrawerBtn:focus{outline:none;border:1px solid var(--color-font) !important}.mtaBox-DrawerBtn_Arrow{fill:var(--color-font)}.mtaBox-DrawerBtn_Arrow.isExpand{transform:rotate(180deg)}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0px 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * 0.7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:hover,.floatBox-Item:focus{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em !important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:normal}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;color:var(--color-font);background:transparent;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:hover,.floatBox-Btn:focus{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0px 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0px 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0px 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.dictItemHead{display:flex;box-sizing:border-box;align-items:flex-start;position:sticky;top:0;z-index:100;height:20px;padding-right:2px;border-top:1px var(--color-divider) dashed;background:var(--color-background)}.dictItemHead-Logo{width:20px;height:20px;margin-top:-1px;-moz-user-select:none;user-select:none}.dictItemHead-Title{margin:0;padding:0 3px;line-height:20px;font-size:12px;font-weight:normal}.dictItemHead-Title a{color:var(--color-font);text-decoration:none}.dictItemHead-Menus_Btn{width:18px;height:18px;margin:1px 0 0;padding:0;font-size:0;border:none;border-radius:3px;outline:none;background-color:transparent;opacity:.7;transition:background-color .4s;cursor:pointer}.dictItemHead-Menus_Btn svg{fill:var(--color-font)}.dictItemHead-Menus_Btn:hover,.dictItemHead-Menus_Btn:focus,.dictItemHead-Menus_Btn:active{background-color:var(--color-divider)}.darkMode .dictItemHead-Menus_Btn:hover,.darkMode .dictItemHead-Menus_Btn:focus,.darkMode .dictItemHead-Menus_Btn:active{background-color:#2d3338}.dictItemHead-EmptyArea{flex:1;align-self:stretch}.dictItemHead-FoldArrowBtn{width:19px;height:19px;overflow:hidden;background:none;border:none;padding:0;cursor:pointer;-moz-user-select:none;user-select:none}.dictItemHead-FoldArrowBtn:hover{outline:none}.dictItemHead-FoldArrow{box-sizing:border-box;fill:var(--color-font);width:18px;height:18px;padding:3px;transform-origin:center}.isAnimate .dictItemHead-FoldArrow{transition:transform 400ms}.isUnfold .dictItemHead-FoldArrow{transform:rotate(-90deg)}.dictItemHead-Loader{display:flex;align-items:center;width:54px;height:20px}.dictItemHead-Loader>div{width:8px;height:8px;margin:2px;background:#f9690e;border-radius:100%}.isAnimate .dictItemHead-Loader>div{animation:dictItemHead-Loader 1.5s infinite ease-in-out}.isAnimate .dictItemHead-Loader>div:nth-child(5){animation-delay:0s}.isAnimate .dictItemHead-Loader>div:nth-child(4){animation-delay:-0.1s}.isAnimate .dictItemHead-Loader>div:nth-child(3){animation-delay:-0.2s}.isAnimate .dictItemHead-Loader>div:nth-child(2){animation-delay:-.3s}.isAnimate .dictItemHead-Loader>div:nth-child(1){animation-delay:-0.4s}@keyframes dictItemHead-Loader{0%,30%,70%,100%{transform:scale(0)}50%{transform:scale(1)}}.dictItem{position:relative;background:var(--color-background)}.dictItem-Body{overflow:hidden;position:relative;padding:0 10px;font-size:13px;line-height:1.6;color:var(--color-font)}.isAnimate .dictItem-Body{transition:height .4s,opacity .4s}.dictItem-BodyMesure{overflow:hidden;opacity:0;position:relative}.dictItem-BodyMesure>*:first-child{margin-top:10px !important}.dictItem-BodyMesure>*:last-child{margin-bottom:10px !important}.isAnimate .dictItem-BodyMesure{transition:opacity .4s}.isUnfold .dictItem-BodyMesure{opacity:1}.dictItem-Loader{align-self:center;width:120px;height:10px;-moz-user-select:none;user-select:none}.dictItem-Loader_Ball{width:10px;height:10px;fill:orange}.dictItem-Loader_Ball:nth-child(2){transform:translateX(15px)}.dictItem-Loader_Ball:nth-child(3){transform:translateX(30px)}.dictItem-Loader_Ball:nth-child(4){transform:translateX(45px)}.dictItem-Loader_Ball:nth-child(5){transform:translateX(60px)}.isAnimate .dictItem-Loader_Ball{animation:dictItem-Loader-shift 2s linear infinite}.isAnimate .dictItem-Loader_Ball:nth-child(2){animation-delay:-0.4s}.isAnimate .dictItem-Loader_Ball:nth-child(3){animation-delay:-0.8s}.isAnimate .dictItem-Loader_Ball:nth-child(4){animation-delay:-1.2s}.isAnimate .dictItem-Loader_Ball:nth-child(5){animation-delay:-1.6s}.dictItem-FoldMask{position:absolute;left:0;bottom:0;width:100%;height:50px;padding:0;border:none;background:linear-gradient(transparent 40%, rgba(var(--color-rgb-background), 0.5) 60%, var(--color-background) 100%);opacity:.6;cursor:pointer;-moz-user-select:none;user-select:none}.dictItem-FoldMask:hover{outline:none;opacity:1}.isAnimate .dictItem-FoldMask{transition:opacity 400ms}.dictItem-FoldMaskArrow{position:absolute;z-index:10;bottom:0;left:0;right:0;margin:0 auto;width:15px;height:15px;fill:var(--color-font)}.isAnimate .noHeightTransition .dictItem-Body{transition:height 0s}@keyframes dictItem-Loader-shift{0%{transform:translateX(0);opacity:0}10%{transform:translateX(30px);opacity:1}90%{transform:translateX(80px);opacity:1}100%{transform:translateX(110px);opacity:0}}.dictList>.dictItem:first-child>.dictItemHead{border-top-color:transparent}.waveformBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;border:none;border-top:1px solid var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.waveformBox-DrawerBtn:focus{outline:none;border:1px solid var(--color-font) !important}.waveformBox-FrameWrap{overflow:hidden;height:0;font-size:0;transition:height .4s}.waveformBox-DrawerBtn_Arrow{fill:var(--color-font)}.waveformBox.isExpand .waveformBox-FrameWrap{height:165px}.waveformBox.isExpand .waveformBox-DrawerBtn{border-bottom:1px solid var(--color-divider)}.waveformBox.isExpand .waveformBox-DrawerBtn_Arrow{transform:rotate(180deg)}.waveformBox-Frame{width:100%;height:165px;border:none;transition:opacity .4s}.waveformBox-Frame-enter{opacity:0}.waveformBox-Frame-enter-active,.waveformBox-Frame-exit{opacity:1}.waveformBox-Frame-exit-active{opacity:0}.dictPanel-FloatBox-Container{position:absolute;top:0;left:0}.dictPanel-Root{position:relative !important;top:0 !important;left:0 !important;width:450px;height:500px;--panel-width: 450px;--panel-max-height: 500px;border-radius:0;box-shadow:rgba(0,0,0,.8) 0px 5px 20px -12px}.isAnimate .dictPanel-Root{transition:height .4s}html,body,#root{position:static;height:100%;margin:0;padding:0;font-size:0}#root{overflow:hidden}.popup-root{overflow:hidden;display:flex;flex-direction:column-reverse;width:450px;height:550px;font-size:14px} diff --git a/plugins/saladict-ztools/ext-saladic/assets/quick-search.87938b3e.js b/plugins/saladict-ztools/ext-saladic/assets/quick-search.87938b3e.js new file mode 100644 index 00000000..4c804ec1 --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/quick-search.87938b3e.js @@ -0,0 +1 @@ +(window.saladictEntry=window.saladictEntry||[]).push([[15],{1348:function(e,t,n){e.exports=n(1362)},1349:function(e,t,n){},1362:function(e,t,n){"use strict";n.r(t),window.__SALADICT_INTERNAL_PAGE__=!0,window.__SALADICT_QUICK_SEARCH_PAGE__=!0;n(504);var a=n(0),o=n.n(a),d=n(21),i=n.n(d),l=n(506),c=n(1),r=n(23),w=n(71),s=n(9),E=n(789);n(1349);document.title="Saladict Standalone Panel";const u=()=>{const{t:e}=Object(s.d)("content");return o.a.createElement(l.a,null,o.a.createElement("title",null,e("standalone")))};Object(w.a)().then(e=>{i.a.render(o.a.createElement(s.b,null,o.a.createElement(u,null),o.a.createElement(r.a,{store:e},o.a.createElement(E.a,{width:"100vw",height:"100vh"}))),document.getElementById("root")),window.addEventListener("beforeunload",()=>{c.a.send({type:"CLOSE_QS_PANEL"}),e.getState().config.qssaSidebar||c.c.local.set({qssaRect:{top:window.screenY,left:window.screenX,width:window.outerWidth,height:window.outerHeight}})})})}},[[1348,0,1,6,7]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/quick-search.8d49a113.js b/plugins/saladict-ztools/ext-saladic/assets/quick-search.8d49a113.js deleted file mode 100644 index df8eff9f..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/quick-search.8d49a113.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[15],{1302:function(e,t,n){e.exports=n(1316)},1303:function(e,t,n){},1316:function(e,t,n){"use strict";n.r(t),window.__SALADICT_INTERNAL_PAGE__=!0,window.__SALADICT_QUICK_SEARCH_PAGE__=!0;n(431);var a=n(0),o=n.n(a),i=n(20),l=n.n(i),c=n(433),d=n(1),r=n(22),w=n(63),s=n(9),E=n(756);n(1303);document.title="Saladict Standalone Panel";const u=()=>{const{t:e}=Object(s.e)("content");return o.a.createElement(c.a,null,o.a.createElement("title",null,e("standalone")))};Object(w.a)().then(e=>{l.a.render(o.a.createElement(s.b,null,o.a.createElement(u,null),o.a.createElement(r.a,{store:e},o.a.createElement(E.a,{width:"100vw",height:"100vh"}))),document.getElementById("root")),window.addEventListener("beforeunload",()=>{d.a.send({type:"CLOSE_QS_PANEL"}),e.getState().config.qssaSidebar||d.c.local.set({qssaRect:{top:window.screenY,left:window.screenX,width:window.outerWidth,height:window.outerHeight}})})})}},[[1302,0,1,6,7]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/quick-search.be1c9ce6.css b/plugins/saladict-ztools/ext-saladic/assets/quick-search.be1c9ce6.css new file mode 100644 index 00000000..feee98bf --- /dev/null +++ b/plugins/saladict-ztools/ext-saladic/assets/quick-search.be1c9ce6.css @@ -0,0 +1 @@ +.saladict-theme{background-color:#fff;color:#24292f;--color-brand: #2f9d8a;--color-background: #ffffff;--color-rgb-background: 255, 255, 255;--color-font: #24292f;--color-font-grey: #5d6670;--color-divider: #d9dee3;--color-surface: #f6f8fa;--color-surface-active: #eaeef2;--color-link: #286aa8}.darkMode .saladict-theme{background-color:#282c30;color:#e3e0da;--color-brand: #2b9f8d;--color-background: #282c30;--color-rgb-background: 40, 44, 48;--color-font: #e3e0da;--color-font-grey: #b8b3aa;--color-divider: #555b61;--color-surface: #33383d;--color-surface-active: #3d444a;--color-link: #8eb7e6}.dictPanel-FloatBox-Container{position:relative}.dictPanel-Root{display:flex;flex-direction:column;box-sizing:border-box;position:fixed;z-index:2147483647;top:0;left:0;overflow:hidden;text-align:initial;border-radius:6px;background-color:inherit;box-shadow:rgba(0,0,0,.8) 0px 4px 23px -6px}.dictPanel-Head{flex-shrink:0}.dictPanel-Body{flex:1;overflow-x:hidden;overflow-y:scroll;-webkit-overflow-scrolling:touch}.fancy-scrollbar{overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;scrollbar-width:auto}.fancy-scrollbar::-webkit-scrollbar{height:8px;width:8px}.fancy-scrollbar::-webkit-scrollbar-track{background-color:transparent}.fancy-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(138,138,138,.25);border-radius:4px}.fancy-scrollbar::-webkit-scrollbar-thumb:hover{background-color:rgba(138,138,138,.35)}.fancy-scrollbar::-webkit-scrollbar-thumb:active{background-color:rgba(138,138,138,.6)}.fancy-scrollbar::-webkit-scrollbar-thumb:vertical{min-height:50px}.fancy-scrollbar::-webkit-scrollbar-thumb:horizontal{min-width:50px}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:transparent;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn:focus,.menuBar-Btn-dir:focus,.menuBar-Btn:hover,.menuBar-Btn-dir:hover{outline:none;background:rgba(0,0,0,.05)}.menuBar-Btn:disabled svg,.menuBar-Btn-dir:disabled svg{fill:#9accc1}.menuBar-Btn:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn:disabled:hover,.menuBar-Btn-dir:disabled:hover{cursor:unset;background:transparent}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-fav,.menuBar-Btn_Icon-history{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0px 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * 0.7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:hover,.floatBox-Item:focus{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em !important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:normal}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;color:var(--color-font);background:transparent;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:hover,.floatBox-Btn:focus{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0px 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0px 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0px 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}.menuBar-SuggestsEntry{margin-right:1.5em;color:#f9690e}.menuBar-SuggestsExplain{color:var(--color-font)}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:transparent;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn:focus,.menuBar-Btn-dir:focus,.menuBar-Btn:hover,.menuBar-Btn-dir:hover{outline:none;background:rgba(0,0,0,.05)}.menuBar-Btn:disabled svg,.menuBar-Btn-dir:disabled svg{fill:#9accc1}.menuBar-Btn:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn:disabled:hover,.menuBar-Btn-dir:disabled:hover{cursor:unset;background:transparent}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-history,.menuBar-Btn_Icon-fav{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-SearchBox_Wrap{flex:2;position:relative}.menuBar-SearchBox_Wrap.isExpand{flex:7}.isAnimate .menuBar-SearchBox_Wrap{transition:flex .6s}.menuBar-SearchBox{width:100%;box-sizing:border-box;padding:0 5px;border:0 none;outline:0 none;color:#fff;background-color:rgba(225,225,225,.1)}.menuBar-SearchBox_Suggests{position:absolute;left:0;top:30px;z-index:1000}.isAnimate .csst-menuBar-SearchBox_Suggests-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-enter-active,.isAnimate .csst-menuBar-SearchBox_Suggests-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-menuBar-SearchBox_Suggests-exit-active{opacity:0;transition:opacity .4s}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0px 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * 0.7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:hover,.floatBox-Item:focus{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em !important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:normal}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;color:var(--color-font);background:transparent;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:hover,.floatBox-Btn:focus{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0px 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0px 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0px 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.menuBar-Btn,.menuBar-Btn-dir{width:30px;height:30px;overflow:hidden;padding:8px;font-size:0;border:none;background:transparent;cursor:pointer;-moz-user-select:none;user-select:none}.menuBar-Btn:focus,.menuBar-Btn-dir:focus,.menuBar-Btn:hover,.menuBar-Btn-dir:hover{outline:none;background:rgba(0,0,0,.05)}.menuBar-Btn:disabled svg,.menuBar-Btn-dir:disabled svg{fill:#9accc1}.menuBar-Btn:disabled .menuBar-Btn_Icon-fav,.menuBar-Btn-dir:disabled .menuBar-Btn_Icon-fav{fill:none;stroke:#9accc1}.menuBar-Btn:disabled:hover,.menuBar-Btn-dir:disabled:hover{cursor:unset;background:transparent}.isAnimate .menuBar-Btn,.isAnimate .menuBar-Btn-dir{transition:background .2s}.menuBar-Btn-dir{width:22px;padding:4px}.menuBar-Btn_Icon,.menuBar-Btn_Icon-history,.menuBar-Btn_Icon-fav{width:100%;height:100%;fill:#fff}.menuBar-Btn_Icon-history{fill-opacity:.8}.menuBar-Btn_Icon-fav{fill:none;stroke:#fff;stroke-width:2}.menuBar-Btn_Icon-fav.isActive{fill:#dd4b39;stroke-width:0}.menuBar-Btn_Icon-pin{transform-origin:center}.menuBar-Btn_Icon-pin.isActive{transform:rotate(45deg)}.isAnimate .menuBar-Btn_Icon-pin{transition:transform .4s}.menuBar-ProfileItem{position:relative;padding-left:10px;color:var(--color-font)}.menuBar-ProfileItem.isActive::before{content:"";position:absolute;top:50%;transform:translateY(-55%);left:-5px;width:0;height:0;border-left:10px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}.menuBar{display:flex;align-items:center;position:relative;height:30px;padding:0 3px;font-size:14px;background-color:var(--color-brand)}.menuBar-DragArea{flex:3;align-self:stretch;-moz-user-select:none;user-select:none;touch-action:none;cursor:move}.mtaBox-TextArea-Wrap{max-height:var(--panel-max-height);position:relative;overflow:hidden;height:0}.isAnimate .mtaBox-TextArea-Wrap{transition:height .4s}.isAnimate .mtaBox-TextArea-Wrap.isTyping{transition:height 0s}.mtaBox-TextArea{display:block;width:100%;max-height:var(--panel-max-height);box-sizing:border-box;padding:5px 5px 10px;border:none;color:var(--color-font);font-size:var(--panel-font-size);background:transparent}.mtaBox-TextArea-Wrap-appear .mtaBox-TextArea,.mtaBox-TextArea-Wrap-appear-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter .mtaBox-TextArea,.mtaBox-TextArea-Wrap-enter-active .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit .mtaBox-TextArea,.mtaBox-TextArea-Wrap-exit-active .mtaBox-TextArea{position:absolute;bottom:0}.mtaBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;padding:0;border:none;border-top:1px solid var(--color-divider);border-bottom:1px dashed var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.mtaBox-DrawerBtn:focus{outline:none;border:1px solid var(--color-font) !important}.mtaBox-DrawerBtn_Arrow{fill:var(--color-font)}.mtaBox-DrawerBtn_Arrow.isExpand{transform:rotate(180deg)}.floatBox-Container{position:relative;overflow:hidden;box-sizing:border-box;word-break:keep-all;white-space:nowrap;border-radius:10px;background:#fff;box-shadow:0px 4px 31px -8px rgba(0,0,0,.8);font-size:var(--panel-font-size)}.darkMode .floatBox-Container{background:#2d3338}.isAnimate .floatBox-Container{transition:width .4s,height .4s}.floatBox-Measure{position:absolute;top:0;left:0;width:max-content;max-width:calc(var(--panel-width) * 0.7);padding:10px}.floatBox-Item{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;border:none;border-radius:3px;color:var(--color-font);background-color:transparent;cursor:pointer}.floatBox-Item:hover,.floatBox-Item:focus{background-color:rgba(215,214,214,.25)}.floatBox-Item::-moz-focus-inner{border:0}.floatBox-Item:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.darkMode .floatBox-Item{border:1px solid transparent;border-radius:5px}.darkMode .floatBox-Item:focus,.darkMode .floatBox-Item:hover{border-color:#1abc9c;background-color:#29615a}.floatBox-Select{-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding-right:1.5em !important;background-color:transparent;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231abc9c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat,repeat;background-position:right .5em top 50%,0 0;background-size:.65em auto,100%}.floatBox-Select::-ms-expand{display:none}.floatBox-Select option{font-size:1em;font-weight:normal}.floatBox-Btn{display:block;width:100%;overflow:hidden;padding:5px 10px;font-size:1em;text-overflow:ellipsis;text-align:initial;outline:none;color:var(--color-font);background:transparent;border:none;border-radius:3px;cursor:pointer}.floatBox-Btn:hover,.floatBox-Btn:focus{background:rgba(215,214,214,.25)}.floatBox-Btn::-moz-focus-inner{border:0}.floatBox-Btn:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.floatBox-Btn:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.floatBox-Entry{margin-right:1.5em;color:#f9690e}.floatBox-compact.floatBox-Container{font-size:12px;border-radius:7px;box-shadow:0px 1px 15px -7px rgba(0,0,0,.8)}.floatBox-compact .floatBox-Measure{padding:5px 6px}.floatBox-compact .floatBox-Item{padding:3px 7px;border-radius:2px}.floatBox-compact .floatBox-Item:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.floatBox-compact .floatBox-Item:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}@-moz-document url-prefix(){.floatBox-Container{box-shadow:0px 4px 20px -8px rgba(0,0,0,.8)}.floatBox-Container .floatBox-Select{padding-left:6px}.floatBox-Container.floatBox-compact{box-shadow:0px 1px 13px -7px rgba(0,0,0,.8)}.floatBox-Container.floatBox-compact .floatBox-Select{padding-left:3px}}.lds-ellipsis{display:block;margin:0 auto;position:relative;width:64px;height:32px}.lds-ellipsis div{position:absolute;top:11px;width:11px;height:11px;border-radius:50%;background:#e2e2e1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:6px;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:6px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:26px;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:45px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}.hoverBox-Container{display:inline-block;position:relative}.hoverBox-FloatBox{position:absolute;z-index:2147483647}.isAnimate .csst-hoverBox-enter{opacity:0;transition:opacity .4s}.isAnimate .csst-hoverBox-enter-active,.isAnimate .csst-hoverBox-exit{opacity:1;transition:opacity .4s}.isAnimate .csst-hoverBox-exit-active{opacity:0;transition:opacity .4s}.dictItemHead{display:flex;box-sizing:border-box;align-items:flex-start;position:sticky;top:0;z-index:100;height:20px;padding-right:2px;border-top:1px var(--color-divider) dashed;background:var(--color-background)}.dictItemHead-Logo{width:20px;height:20px;margin-top:-1px;-moz-user-select:none;user-select:none}.dictItemHead-Title{margin:0;padding:0 3px;line-height:20px;font-size:12px;font-weight:normal}.dictItemHead-Title a{color:var(--color-font);text-decoration:none}.dictItemHead-Menus_Btn{width:18px;height:18px;margin:1px 0 0;padding:0;font-size:0;border:none;border-radius:3px;outline:none;background-color:transparent;opacity:.7;transition:background-color .4s;cursor:pointer}.dictItemHead-Menus_Btn svg{fill:var(--color-font)}.dictItemHead-Menus_Btn:hover,.dictItemHead-Menus_Btn:focus,.dictItemHead-Menus_Btn:active{background-color:var(--color-divider)}.darkMode .dictItemHead-Menus_Btn:hover,.darkMode .dictItemHead-Menus_Btn:focus,.darkMode .dictItemHead-Menus_Btn:active{background-color:var(--color-divider)}.dictItemHead-EmptyArea{flex:1;align-self:stretch}.dictItemHead-FoldArrowBtn{width:19px;height:19px;overflow:hidden;background:none;border:none;padding:0;cursor:pointer;-moz-user-select:none;user-select:none}.dictItemHead-FoldArrowBtn:hover{outline:none}.dictItemHead-FoldArrow{box-sizing:border-box;fill:var(--color-font);width:18px;height:18px;padding:3px;transform-origin:center}.isAnimate .dictItemHead-FoldArrow{transition:transform 400ms}.isUnfold .dictItemHead-FoldArrow{transform:rotate(-90deg)}.dictItemHead-Loader{display:flex;align-items:center;width:54px;height:20px}.dictItemHead-Loader>div{width:8px;height:8px;margin:2px;background:#f9690e;border-radius:100%}.isAnimate .dictItemHead-Loader>div{animation:dictItemHead-Loader 1.5s infinite ease-in-out}.isAnimate .dictItemHead-Loader>div:nth-child(5){animation-delay:0s}.isAnimate .dictItemHead-Loader>div:nth-child(4){animation-delay:-0.1s}.isAnimate .dictItemHead-Loader>div:nth-child(3){animation-delay:-0.2s}.isAnimate .dictItemHead-Loader>div:nth-child(2){animation-delay:-.3s}.isAnimate .dictItemHead-Loader>div:nth-child(1){animation-delay:-0.4s}@keyframes dictItemHead-Loader{0%,30%,70%,100%{transform:scale(0)}50%{transform:scale(1)}}.dictItem{position:relative;background:var(--color-background)}.dictItem-Body{overflow:hidden;position:relative;padding:0 10px;font-size:13px;line-height:1.6;color:var(--color-font)}.isAnimate .dictItem-Body{transition:height .4s,opacity .4s}.dictItem-BodyMesure{overflow:hidden;opacity:0;position:relative}.dictItem-BodyMesure>*:first-child{margin-top:10px !important}.dictItem-BodyMesure>*:last-child{margin-bottom:10px !important}.isAnimate .dictItem-BodyMesure{transition:opacity .4s}.isUnfold .dictItem-BodyMesure{opacity:1}.dictItem-Loader{align-self:center;width:120px;height:10px;-moz-user-select:none;user-select:none}.dictItem-Loader_Ball{width:10px;height:10px;fill:orange}.dictItem-Loader_Ball:nth-child(2){transform:translateX(15px)}.dictItem-Loader_Ball:nth-child(3){transform:translateX(30px)}.dictItem-Loader_Ball:nth-child(4){transform:translateX(45px)}.dictItem-Loader_Ball:nth-child(5){transform:translateX(60px)}.isAnimate .dictItem-Loader_Ball{animation:dictItem-Loader-shift 2s linear infinite}.isAnimate .dictItem-Loader_Ball:nth-child(2){animation-delay:-0.4s}.isAnimate .dictItem-Loader_Ball:nth-child(3){animation-delay:-0.8s}.isAnimate .dictItem-Loader_Ball:nth-child(4){animation-delay:-1.2s}.isAnimate .dictItem-Loader_Ball:nth-child(5){animation-delay:-1.6s}.dictItem-FoldMask{position:absolute;left:0;bottom:0;width:100%;height:50px;padding:0;border:none;background:linear-gradient(rgba(var(--color-rgb-background), 0) 40%, rgba(var(--color-rgb-background), 0.5) 60%, var(--color-background) 100%);opacity:.6;cursor:pointer;-moz-user-select:none;user-select:none}.dictItem-FoldMask:hover{outline:none;opacity:1}.isAnimate .dictItem-FoldMask{transition:opacity 400ms}.dictItem-FoldMaskArrow{position:absolute;z-index:10;bottom:0;left:0;right:0;margin:0 auto;width:15px;height:15px;fill:var(--color-font)}.isAnimate .noHeightTransition .dictItem-Body{transition:height 0s}@keyframes dictItem-Loader-shift{0%{transform:translateX(0);opacity:0}10%{transform:translateX(30px);opacity:1}90%{transform:translateX(80px);opacity:1}100%{transform:translateX(110px);opacity:0}}.dictList>.dictItem:first-child>.dictItemHead{border-top-color:transparent}.waveformBox-DrawerBtn{display:block;width:100%;height:12px;overflow:hidden;border:none;border-top:1px solid var(--color-divider);font-size:0;background-color:var(--color-background);cursor:pointer}.waveformBox-DrawerBtn:focus{outline:none;border:1px solid var(--color-font) !important}.waveformBox-FrameWrap{overflow:hidden;height:0;font-size:0;transition:height .4s}.waveformBox-DrawerBtn_Arrow{fill:var(--color-font)}.waveformBox.isExpand .waveformBox-FrameWrap{height:165px}.waveformBox.isExpand .waveformBox-DrawerBtn{border-bottom:1px solid var(--color-divider)}.waveformBox.isExpand .waveformBox-DrawerBtn_Arrow{transform:rotate(180deg)}.waveformBox-Frame{width:100%;height:165px;border:none;transition:opacity .4s}.waveformBox-Frame-enter{opacity:0}.waveformBox-Frame-enter-active,.waveformBox-Frame-exit{opacity:1}.waveformBox-Frame-exit-active{opacity:0}.dictPanel-FloatBox-Container{position:absolute;top:0;left:0}.dictPanel-Root{position:relative !important;top:0 !important;left:0 !important;width:450px;height:500px;--panel-width: 450px;--panel-max-height: 500px;border-radius:0;box-shadow:rgba(0,0,0,.8) 0px 5px 20px -12px}.isAnimate .dictPanel-Root{transition:height .4s}html,body,#root{position:static;height:100%;margin:0;padding:0;font-size:0}#root{overflow:hidden}.popup-root{overflow:hidden;display:flex;flex-direction:column-reverse;width:450px;height:550px;font-size:14px} diff --git a/plugins/saladict-ztools/ext-saladic/assets/runtime.4097fa5f.js b/plugins/saladict-ztools/ext-saladic/assets/runtime.4097fa5f.js deleted file mode 100644 index f4a1ecb3..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/runtime.4097fa5f.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function c(c){for(var d,b,t=c[0],n=c[1],o=c[2],i=0,u=[];i({type:"missing"})).then(c=>{return 0!==a[e]?(f={type:"WTW_INJECT",file:t(e)},b?new Promise(e=>{chrome.runtime.sendMessage(f,e)}):browser.runtime.sendMessage(f)):c;var f}).then(r,()=>r({type:"missing"}))}return Promise.all(c)},n.m=e,n.c=d,n.d=function(e,c,f){n.o(e,c)||Object.defineProperty(e,c,{enumerable:!0,get:f})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,c){if(1&c&&(e=n(e)),8&c)return e;if(4&c&&"object"==typeof e&&e&&e.__esModule)return e;var f=Object.create(null);if(n.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:e}),2&c&&"string"!=typeof e)for(var d in e)n.d(f,d,function(c){return e[c]}.bind(null,d));return f},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e};var o=window.saladictEntry=window.saladictEntry||[],i=o.push.bind(o);o.push=c,o=o.slice();for(var u=0;u({type:"missing"})).then(a=>{return 0!==c[e]?(f={type:"WTW_INJECT",file:t(e)},r?new Promise(e=>{chrome.runtime.sendMessage(f,e)}):browser.runtime.sendMessage(f)):a;var f}).then(d,()=>d({type:"missing"}))}return Promise.all(a)},n.m=e,n.c=b,n.d=function(e,a,f){n.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:f})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,a){if(1&a&&(e=n(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var f=Object.create(null);if(n.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var b in e)n.d(f,b,function(a){return e[a]}.bind(null,b));return f},n.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(a,"a",a),a},n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},n.p="./",n.oe=function(e){throw console.error(e),e};var o=window.saladictEntry=window.saladictEntry||[],i=o.push.bind(o);o.push=a,o=o.slice();for(var u=0;u{},c=new WeakMap,i=new WeakMap,l=new WeakMap,u={sync:{clear:f,remove:p,get:g,set:b,addListener:m,removeListener:w,createStream:y,get __storageArea__(){return"sync"}},local:{clear:f,remove:p,get:g,set:b,addListener:m,removeListener:w,createStream:y,get __storageArea__(){return"local"}},clear:f,addListener:m,removeListener:w,createStream:y,get __storageArea__(){return"all"}},d={send:k,addListener:A,removeListener:L,createStream:C,get __self__(){return!1},self:{initClient:v,initServer:function(){window.pageId="background page";const e=/^\[\[(.+)\]\]$/;browser.runtime.onMessage.addListener((t,n)=>{if(!t||!t.type)return;if("PAGE_INFO"===t.type)return Promise.resolve(function(e){const t={pageId:"",faviconURL:"",pageTitle:"",pageURL:""},n=e.tab;n?(t.pageId=n.id||"",n.favIconUrl&&(t.faviconURL=n.favIconUrl),n.url&&(t.pageURL=n.url),n.title&&(t.pageTitle=n.title)):(t.pageId="popup",e.url&&!e.url.startsWith("http")&&(t.faviconURL="https://saladict.crimx.com/favicon.ico"));return t}(n));const a=e.exec(t.type);if(a){t.type=a[1];const e=n.tab&&n.tab.id;return e?k(e,t):k(t)}})},send:async function e(t){const n=j("message.self.send",e);try{return void 0===window.pageId&&await v(),browser.runtime.sendMessage(Object.assign({},t,{__pageId__:window.pageId,type:`[[${t.type}]]`})).then(e=>_("message.self.send",[t],e,n)).catch(e=>{throw O("message.self.send",[t],e,n)})}catch(e){throw O("message.self.send",[t],e,n)}},addListener:A,removeListener:L,createStream:C,get __self__(){return!0}}};async function h(e,t){const n="string"==typeof e?{url:e,self:t}:e,a=!1!==n.unique,r=n.self?browser.runtime.getURL(n.url):n.url;if(a){const e=await browser.tabs.query({url:r}).catch(()=>[]);if(e.length>0){const{index:t,windowId:n}=e[0];return"function"==typeof browser.tabs.highlight&&await browser.tabs.highlight({tabs:t,windowId:n}),void await browser.windows.update(n,{focused:!0})}}await browser.tabs.create({url:r,active:!1!==n.active})}function f(){return"all"===this.__storageArea__?Promise.all([browser.storage.local.clear(),browser.storage.sync.clear()]).then(o):browser.storage[this.__storageArea__].clear()}function p(e){return browser.storage[this.__storageArea__].remove(e)}function g(...e){return browser.storage[this.__storageArea__].get(...e)}function b(e){return browser.storage[this.__storageArea__].set(e)}function m(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}let a=l.get(n);a||(a=new Map,l.set(n,a));const r=this.__storageArea__+t;let s=a.get(r);return s||(s=(e,a)=>{"all"!==this.__storageArea__&&a!==this.__storageArea__||t&&!(t in e)||n(e,a)},a.set(r,s)),browser.storage.onChanged.addListener(s)}function w(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}const a=l.get(n);if(a){if(!t)return a.forEach(e=>{browser.storage.onChanged.removeListener(e)}),void l.delete(n);{const e=this.__storageArea__+t,r=a.get(e);if(r)return browser.storage.onChanged.removeListener(r),a.delete(e),void(a.size<=0&&l.delete(n))}}browser.storage.onChanged.removeListener(n)}function y(e){if(!e)throw new Error("Missing key");return Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)).pipe(Object(r.a)(t=>Object.prototype.hasOwnProperty.call(Array.isArray(t)?t[0]:t,e)),Object(s.a)(t=>Array.isArray(t)?t[0][e]:t[e]))}function j(e,t){const n=new Error(`[${e}] call stack`),a=Error.captureStackTrace;return a&&a(n,t),n}function O(e,t,n,a){const r=n&&"object"==typeof n&&n.runtimeLastError instanceof Error?n.runtimeLastError:n instanceof Error?n:new Error(String(n||"Unknown error")),s=1===t.length?t[0]:t[1],o=1===t.length?"runtime":"tab "+t[0],c=new Error(`[${e}] runtime.lastError while sending "${s.type}" to ${o}: ${r.message}`);return c.name="MessageRuntimeError",c.cause=r,c.runtimeLastError=r,c.callContext=a,c.stack=[`${c.name}: ${c.message}`,"","Runtime error stack:",r.stack||r.message,"","Message call stack:",a.stack||a.message].join("\n"),c}function _(e,t,n,a){if("PAGE_INFO"===(1===t.length?t[0]:t[1]).type){const r=n;if(!r||"object"!=typeof r||null==r.pageId)throw O(e,t,new Error('Invalid response for "PAGE_INFO": expected an object with pageId, received '+String(n)),a)}return n}function k(...e){const t=j("message.send",k);return(1===e.length?browser.runtime.sendMessage(e[0]):browser.tabs.sendMessage(e[0],e[1])).then(n=>_("message.send",e,n,t)).catch(n=>{throw O("message.send",e,n,t)})}function A(...e){this.__self__&&void 0===window.pageId&&v().catch(console.error);const t=this.__self__?i:c,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1];let r=t.get(a);r||(r=new Map,t.set(a,r));let s=r.get(n||"__DEFAULT_MSGTYPE__");return s||(s=(e,t)=>{if(e&&(this.__self__?window.pageId===e.__pageId__:!e.__pageId__)&&(null==n||e.type===n))return a(e,t)},r.set(n||"__DEFAULT_MSGTYPE__",s)),browser.runtime.onMessage.addListener(s)}function L(...e){const t=this.__self__?i:c,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1],r=t.get(a);if(r){if(!n)return r.forEach(e=>browser.runtime.onMessage.removeListener(e)),void t.delete(a);{const e=r.get(n);if(e)return browser.runtime.onMessage.removeListener(e),r.delete(n),void(r.size<=0&&t.delete(a))}}browser.runtime.onMessage.removeListener(a)}function C(e){return(e?Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)):Object(a.a)(e=>this.addListener(e),e=>this.removeListener(e))).pipe(Object(s.a)(e=>Array.isArray(e)?e[0]:e))}function v(){return void 0===window.pageId?d.send({type:"PAGE_INFO"}).then(e=>{const{pageId:t,faviconURL:n,pageTitle:a,pageURL:r}=e;return window.pageId=t,window.faviconURL=n,a&&(window.pageTitle=a),r&&(window.pageURL=r),t}):Promise.resolve(window.pageId)}},1038:function(e,t,n){e.exports=n(504)},11:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return l}));var a=n(1);function r(e){return e?{date:e.date||Date.now(),text:e.text||"",context:e.context||"",title:e.title||"",url:e.url||"",favicon:e.favicon||"",trans:e.trans||"",note:e.note||""}:{date:Date.now(),text:"",context:"",title:"",url:"",favicon:"",trans:"",note:""}}function s(e){return a.a.send({type:"IS_IN_NOTEBOOK",payload:e}).catch((t=!1,e=>t));var t}async function o(e,t){await a.a.send({type:"SAVE_WORD",payload:{area:e,word:t}})}async function c(e,t){await a.a.send({type:"SYNC_SERVICE_DOWNLOAD"}),await a.a.send({type:"DELETE_WORDS",payload:{area:e,dates:t}})}function i(e,t){return a.a.send({type:"GET_WORDS_BY_TEXT",payload:{area:e,text:t}})}function l(e,t){return a.a.send({type:"GET_WORDS",payload:{area:e,...t}})}},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return o}));var a=n(20);async function r(e,t,{options:n,options_sel:r},s,o){("none"===n.keepLF||"pdf"===n.keepLF&&!o.isPDF||"webpage"===n.keepLF&&o.isPDF)&&(t=t.replace(/\n+/g," "));let c=o.sl;c||(Object(a.g)(t)?c="ja":Object(a.h)(t)&&(c="ko")),c||(c=await e.detect(t));let i="";return o.tl?i=o.tl:"default"===n.tl?r.tl.includes(s.langCode)&&(i=s.langCode):i=n.tl,i||(i=r.tl.find(e=>"default"!==e)||"en"),c===i&&(o.tl?o.sl||(c="auto"):i="default"===n.tl2?i!==s.langCode?s.langCode:"en"!==i?"en":r.tl.find(e=>"default"!==e&&e!==i)||"en":n.tl2),{sl:c,tl:i,text:t}}function s(e,t,n,a){return{lang:"11111111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:320,selectionWC:{min:1,max:999999999999999},...t,options:{keepLF:"webpage",slInitial:"collapse",tl:"default",tl2:"default",...n},options_sel:{keepLF:["none","all","webpage","pdf"],slInitial:["collapse","hide","full"],tl:["default",...e],tl2:["default",...e],...a}}}function o(e,t){const n=[{value:"auto",label:"%t(content:machineTrans.auto)"}];for(const e of t)n.push({value:e,label:`${e} %t(langcode:${e})`});const a=[{key:"sl",value:e.result.sl,title:"%t(content:machineTrans.sl)",options:n},{key:"tl",value:e.result.tl,title:"%t(content:machineTrans.tl)",options:n},{key:"copySrc",value:"copySrc",label:"%t(content:machineTrans.copySrc)"},{key:"copyTrans",value:"copyTrans",label:"%t(content:machineTrans.copyTrans)"}];return"hide"===e.result.slInitial&&a.push({key:"showSl",value:"",label:"%t(content:machineTrans.showSl)"}),{...e,catalog:a}}},165:function(e,t,n){"use strict";n.d(t,"b",(function(){return m}));var a=n(83),r=n(87),s=n(77),o=n.n(s),c=n(96),i=n.n(c),l=n(108),u=n.n(l),d=n(63),h=n.n(d),f=n(22),p=n.n(f),g=n(27),b=n.n(g);function m(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.a)();let s=e.version;return s<13&&(e.showedDictAuth=!0),s<=9&&(s=10,["mode","pinMode","panelMode","qsPanelMode"].forEach(t=>{n[t].holding.shift=!1,n[t].holding.ctrl=!!e[t].ctrl,n[t].holding.meta=!!e[t].ctrl,delete e[t].ctrl})),c("tripleCtrlPreload","qsPreload"),c("tripleCtrlAuto","qsAuto"),c("tripleCtrlLocation","qsLocation"),c("tripleCtrlStandalone","qsStandalone"),c("tripleCtrlHeight","qssaHeight"),c("tripleCtrlSidebar","qssaSidebar"),c("tripleCtrlPageSel","qssaPageSel"),Object.keys(n).forEach(t=>{switch(t){case"langCode":g("langCode",e=>/^(zh-CN|zh-TW|en)$/.test(e));break;case"pdfWhitelist":case"pdfBlacklist":case"whitelist":case"blacklist":g(t,e=>Array.isArray(e));break;case"searhHistory":case"searchHistory":n.searchHistory=e[t];break;case"searhHistoryInco":case"searchHistoryInco":n.searchHistoryInco=e[t];break;case"mode":case"pinMode":case"panelMode":case"qsPanelMode":"mode"===t&&f("mode.icon"),f(t+".direct"),f(t+".double"),f(t+".holding.alt"),f(t+".holding.shift"),f(t+".holding.ctrl"),f(t+".holding.meta"),f(t+".instant.enable"),g(t+".instant.key",e=>/^(direct|ctrl|alt|shift)$/.test(e)),l(t+".instant.delay");break;case"qsPreload":g("qsPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"qsLocation":g("qsLocation",e=>"CENTER"===e||"TOP"===e||"RIGHT"===e||"BOTTOM"===e||"LEFT"===e||"TOP_LEFT"===e||"TOP_RIGHT"===e||"BOTTOM_LEFT"===e||"BOTTOM_RIGHT"===e);break;case"baPreload":g("baPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"ctxTrans":o()(n.ctxTrans,(e,t)=>{f("ctxTrans."+t)});break;case"language":o()(n.language,(e,t)=>{f("language."+t)});break;case"autopron":g("autopron.cn.dict",e=>r.a[e]),g("autopron.en.dict",e=>r.a[e]),g("autopron.en.accent",e=>"us"===e||"uk"===e),g("autopron.machine.dict",e=>r.a[e]),g("autopron.machine.src",e=>"trans"===e||"searchText"===e);break;case"contextMenus":o()(e.contextMenus.all,(e,t)=>{"string"==typeof e?n.contextMenus.all[t]&&d("contextMenus.all."+t):(d(`contextMenus.all.${t}.name`),d(`contextMenus.all.${t}.url`))}),function(t){const a=p()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)b()(n,[t,"selected"],[]);else{const e=p()(n,[t,"all"]),r=a.filter(t=>e[t]);r.length>0&&b()(n,[t,"selected"],r)}}("contextMenus");break;case"dictAuth":g("dictAuth",Boolean);break;default:switch(typeof n[t]){case"string":d(t);break;case"boolean":f(t);break;case"number":l(t);break;default:console.error(new Error(`merge config: missing handler for '${t}'`))}}}),s=e.version,s<=10&&(s=11,n.contextMenus.selected.unshift("view_as_pdf")),s<=11&&(s=12,n.blacklist.push(["^https://stackedit.io(/.*)?$","https://stackedit.io/*"])),!1===e.language.minor&&(n.language.japanese=!1,n.language.korean=!1,n.language.french=!1,n.language.spanish=!1,n.language.deutsch=!1),n.panelMaxHeightRatio<1&&(n.panelMaxHeightRatio=Math.round(100*n.panelMaxHeightRatio)),n;function c(t,n){!Object.prototype.hasOwnProperty.call(e,n)&&Object.prototype.hasOwnProperty.call(e,t)&&(e[n]=e[t])}function l(e){return g(e,i.a)}function d(e){return g(e,u.a)}function f(e){return g(e,h.a)}function g(t,a){const r=p()(e,t);a(r)&&b()(n,t,r)}}t.a=m},171:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return r}));const a={appid:"",key:""},r="http://api.fanyi.baidu.com/api/trans/product/prodinfo"},172:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return r}));const a={token:""},r="https://fanyi.caiyunapp.com/#/api"},173:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return r}));const a={pid:"",key:""},r="https://deepi.sogou.com/?from=translatepc"},174:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return r}));const a={secretId:"",secretKey:""},r="https://curl.qcloud.com/imsowZzT"},175:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return r}));const a={appKey:"",key:""},r="http://ai.youdao.com/gw.s"},179:function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return x}));var a=n(124),r=n(112),s=n(57),o=n(159),c=n(39),i=n(10),l=n(88),u=n(134),d=n(561),h=n(562),f=n(187),p=n(182),g=n(121),b=n(508),m=n(563),w=n(125),y=n(136),j=n(30),O=n(190),_=n(2),k=n(44),A=n(20),L=n(43),C=n(38);function v(e){return e?e.touchMode?function(e){const t=Object(r.a)(Object(s.a)(window,"mousedown",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),Object(s.a)(window,"touchstart",{capture:!0}).pipe(Object(i.a)(e=>e.changedTouches[0]))),n=Object(r.a)(Object(s.a)(window,"mouseup",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),Object(s.a)(window,"touchend",{capture:!0}).pipe(Object(i.a)(e=>e.changedTouches[0]))),a=E(n,e.doubleClickDelay),f=Object(r.a)(Object(l.a)(!0)(t),Object(l.a)(!1)(n),Object(l.a)(!1)(Object(s.a)(window,"mouseout",{capture:!0})),Object(l.a)(!1)(Object(s.a)(window,"blur",{capture:!0})));return Object(s.a)(document,"selectionchange").pipe(Object(u.a)(f),Object(d.a)(([,e])=>e?n:Object(o.a)(400)),Object(i.a)(([,e])=>[window.getSelection(),e]),Object(c.a)(e=>!!e[0]&&!Object(_.f)(e[0].anchorNode)),Object(u.a)(n,t,a),Object(i.a)(([[t,n],a,r,s])=>{const o=Object(_.e)(t.anchorNode||r.target);if(e.noTypeField&&Object(L.d)(n?r.target:t.anchorNode))return{self:o};const c=Object(k.d)(t);if(!Object(A.a)(e.language,c))return{self:o};if(n)return{word:{text:c,context:Object(k.b)(t)},self:o,dbClick:s>=2,mouseX:a.clientX,mouseY:a.clientY,altKey:!!a.altKey,shiftKey:!!a.shiftKey,ctrlKey:!!a.ctrlKey,metaKey:!!a.metaKey};if(t.rangeCount<=0)return{self:o};const i=t.getRangeAt(0).getBoundingClientRect();return 0===i.top&&0===i.left&&0===i.width&&0===i.height?{self:o}:{word:{text:c,context:Object(k.b)(t)},self:o,dbClick:s>=2,mouseX:i.right,mouseY:i.top}}),Object(h.a)(t=>{if(_.d&&t.self&&t.word&&t.word.text){const{direct:n,double:a,holding:r}=e.panelMode;if(n||a&&t.dbClick||r.alt&&t.altKey||r.shift&&t.shiftKey||r.ctrl&&t.ctrlKey||r.meta&&t.metaKey)return Object(o.a)(500)}return Object(o.a)(0)}))}(e):function(e){const t=Object(s.a)(window,"mousedown",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),n=Object(s.a)(window,"mouseup",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),a=E(n,e.doubleClickDelay);return n.pipe(Object(c.a)(e=>!Object(_.f)(e.target)),Object(f.a)(10),Object(u.a)(t,a),Object(c.a)(([e,t])=>!Object(_.e)(e.target)&&!Object(_.e)(t.target)),Object(i.a)(([t,n,a])=>{if(e.noTypeField&&Object(L.d)(n.target))return{self:!1};const r=window.getSelection(),s=Object(k.d)(r);return Object(A.a)(e.language,s)?{word:{text:s,context:Object(k.b)(r)},self:!1,dbClick:a>=2,mouseX:t.clientX,mouseY:t.clientY,altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey}:{self:!1}}),Object(p.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context))}(e):a.a}function x(e,t,n,a){const[r,s]=Object(w.a)(e=>e.pipe(Object(c.a)(e=>0===e.button))),o=Object(y.a)(j.b,[e,t]),l=Object(y.a)(e=>e.pipe(Object(g.a)(([e])=>E(s,e))),[n]),d=Object(y.a)(()=>s.pipe(Object(u.a)(o),Object(c.a)(([e,[t]])=>{if(t)return!1;for(let t=e.target;t;t=t.parentElement)if(Object(C.a)(t,"a")||Object(C.a)(t,"button"))return!1;return!0}),Object(i.a)(([e,[,t]])=>({mouseup:e.nativeEvent,language:t})),Object(f.a)(10),Object(u.a)(l),Object(i.a)(([{mouseup:e,language:t},n])=>{const a=window.getSelection(),r=Object(k.d)(a);return Object(A.a)(t,r)?{word:{text:r,context:Object(k.b)(a)},dbClick:n>=2,mouseX:e.clientX,mouseY:e.clientY,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,self:!0,instant:!1,force:!1}:{word:null,self:!0,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}}),Object(p.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context)));return Object(O.a)(d,async e=>{e.word&&(e.word=await Object(L.e)(e.word)),a(e)}),r}function E(e,t){return e.pipe(Object(g.a)(()=>Object(o.a)(t).pipe(Object(l.a)(!1),Object(b.a)(!0))),Object(m.a)((e,t)=>t?e+1:0,0))}},2:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"g",(function(){return r})),n.d(t,"i",(function(){return s})),n.d(t,"k",(function(){return o})),n.d(t,"j",(function(){return c})),n.d(t,"l",(function(){return i})),n.d(t,"n",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"h",(function(){return f})),n.d(t,"m",(function(){return p})),n.d(t,"f",(function(){return g})),n.d(t,"e",(function(){return b}));const a=()=>!!window.__SALADICT_BACKGROUND_PAGE__,r=()=>!!window.__SALADICT_INTERNAL_PAGE__,s=()=>!!window.__SALADICT_OPTIONS_PAGE__,o=()=>!!window.__SALADICT_POPUP_PAGE__,c=()=>!!window.__SALADICT_PDF_PAGE__,i=()=>!!window.__SALADICT_QUICK_SEARCH_PAGE__,l=()=>o()||i(),u="saladict-external",d="saladict-panel",h=navigator.userAgent.includes("Firefox"),f=navigator.userAgent.includes("OPR"),p=/apple/i.test(navigator.vendor);function g(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(u))return!0;return!1}function b(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(d))return!0;return!1}},20:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"g",(function(){return i})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"j",(function(){return w})),n.d(t,"a",(function(){return y}));var a=n(16);const r=["chinese","english","japanese","korean","french","spanish","deutsch"],s={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},o=e=>s.chinese.test(e),c=e=>s.english.test(e),i=e=>s.japanese.test(e),l=e=>s.korean.test(e),u=e=>s.french.test(e),d=e=>s.deutsch.test(e),h=e=>s.spanish.test(e),f={chinese:Object(a.a)(o),english:Object(a.a)(c),japanese:Object(a.a)(i),korean:Object(a.a)(l),french:Object(a.a)(u),spanish:Object(a.a)(h),deutsch:Object(a.a)(d)},p=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,g=new RegExp(`^(\\d|\\s|${p.source})+$`),b=new RegExp(`${s.chinese.source}|${s.japanese.source}|${s.korean.source}`),m=Object(a.a)(e=>(e.replace(new RegExp(p,"g")," ").replace(new RegExp(b,"g")," x ").match(/\S+/g)||"").length),w=[...r,"others","matchAll"];function y(e,t){if(!t)return!1;if(e.matchAll){if(g.test(t))return!1;if(e.others){const n=[/-|\.|\d|\s/],a=[];for(let t=r.length-1;t>=0;t--){const o=r[t];e[o]?n.push(s[o]):a.push(s[o])}for(let e=0;e!n.test(t[e]))&&a.some(n=>n.test(t[e])))return!1;return!0}{const n=r.filter(t=>e[t]).map(e=>s[e]);n.push(/-|\.|\d|\s/);for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!1;return!0}}{if(r.some(n=>e[n]&&f[n](t)))return!0;if(!e.others||g.test(t))return!1;const n=r.filter(t=>!e[t]).map(e=>s[e]);n.push(new RegExp(p.source+"|\\d|\\s"));for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!0;return!1}}},29:function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"f",(function(){return b})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return w}));var a=n(90),r=n.n(a),s=n(83),o=n(165),c=n(1),i=n(100),l=n(67),u=n(81),d=n(10);function h(e){return e&&1===e.v?JSON.parse(r.a.inflate(e.d,{to:"string"})):e}async function f(){let e=await g();return e=e&&e.version?Object(o.b)(e):Object(s.a)(),await b(e),e}async function p(){const e=Object(s.a)();return await b(e),e}async function g(){const{baseconfig:e}=await c.c.sync.get("baseconfig");return h(e||Object(s.a)())}function b(e){return function(e){try{"undefined"!=typeof localStorage&&"undefined"!=typeof location&&/^(chrome-extension|moz-extension|safari-web-extension):$/.test(location.protocol)&&localStorage.setItem("saladict-pdf-viewer-dark-mode",e?"1":"0")}catch(e){}}(e.darkMode),c.c.sync.set({baseconfig:(t=e,{v:1,d:r.a.deflate(JSON.stringify(t),{to:"string"})})});var t}async function m(e){c.c.sync.addListener(t=>{if(t.baseconfig){const{newValue:n,oldValue:a}=t.baseconfig;n&&e({newConfig:h(n),oldConfig:h(a)})}})}function w(){return Object(i.a)(Object(l.a)(g()),Object(u.a)(m).pipe(Object(d.a)(e=>(Array.isArray(e)?e[0]:e).newConfig)))}},38:function(e,t,n){"use strict";function a(e,t){return(e.tagName||"").toLowerCase()===t.toLowerCase()}n.d(t,"a",(function(){return a}))},43:function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return g})),n.d(t,"f",(function(){return b})),n.d(t,"d",(function(){return w})),n.d(t,"a",(function(){return y})),n.d(t,"e",(function(){return j}));var a=n(112),r=n(57),s=n(102),o=n(10),c=n(88),i=n(182),l=n(39),u=n(11),d=n(1),h=n(38);const f=/mac/i.test(navigator.platform);function p(e){return f?"Meta"===e.key:"Control"===e.key}function g(e){return"Escape"===e.key}function b(e){return Object(a.a)(Object(o.a)(e)(Object(r.a)(window,"keydown",{capture:!0})),Object(c.a)(!1)(Object(r.a)(window,"keyup",{capture:!0})),Object(c.a)(!1)(Object(r.a)(window,"blur",{capture:!0})),Object(s.a)(!1)).pipe(Object(i.a)(),Object(l.a)(e=>e))}const m=/CodeMirror|ace_editor|monaco-editor/;function w(e){if(!e||!e.tagName)return!1;for(let t=e;t;t=t.parentElement){if(Object(h.a)(t,"input")||Object(h.a)(t,"textarea")||t.isContentEditable)return!0;if(m.test(String(t.className)))return!0}return!1}function y(e){const t=window.pageURL||document.URL||"";return!!t&&(e.blacklist.some(([e])=>new RegExp(e).test(t))&&e.whitelist.every(([e])=>!new RegExp(e).test(t)))}async function j(e={}){const t=await d.a.send({type:"PAGE_INFO"});return window.faviconURL=t.faviconURL,t.pageTitle&&(window.pageTitle=t.pageTitle),t.pageURL&&(window.pageURL=t.pageURL),Object(u.e)({title:t.pageTitle||document.title||"",url:t.pageURL||document.URL||"",favicon:t.faviconURL||"",...e})}},504:function(e,t,n){"use strict";n.r(t);var a=n(44),r=n(1),s=n(29),o=n(2),c=n(10),i=n(751),l=n(121);function u(e){window.parent===window?r.a.self.send({type:"SELECTION",payload:e}):window.parent.postMessage({type:"SALADICT_SELECTION",payload:e},"*")}var d=n(43),h=n(20),f=n(124),p=n(112),g=n(67),b=n(736),m=n(102),w=n(57),y=n(159),j=n(141),O=n(508),_=n(88),k=n(561),A=n(182),L=n(39);function C(e){const t=e.clientX,n=e.clientY;let r,s,o;const c=window.getSelection();if(!c)return null;if(c.rangeCount>0&&(o=c.getRangeAt(0),c.removeAllRanges()),document.caretPositionFromPoint){const e=document.caretPositionFromPoint(t,n);if(!e)return null;r=e.offsetNode,s=e.offset}else{if(!document.caretRangeFromPoint)return null;{const e=document.caretRangeFromPoint(t,n);if(!e)return null;r=e.startContainer,s=e.startOffset}}if(r.nodeType===Node.TEXT_NODE){const e=r,i=e.data,l=(i.slice(0,s).match(/[-_a-z]+$/i)||[""])[0],u=(i.slice(s).match(/^([-_a-z]+|[\u4e00-\u9fa5])/i)||[""])[0];if(l.length<=0&&u.length<=0)return null;const d=document.createRange();d.setStart(e,s-l.length),d.setEnd(e,s+u.length);const h=d.getBoundingClientRect();h.left<=t&&h.right>=t&&h.top<=n&&h.bottom>=n&&(c.removeAllRanges(),c.addRange(d),c.modify&&(c.modify("move","backward","word"),c.collapseToStart(),c.modify("extend","forward","word")));const f=Object(a.d)(c),p=Object(a.b)(c);return c.removeAllRanges(),o&&c.addRange(o),d.detach(),f?{text:f,context:p}:null}return null}var v=n(922),x=n(404);var E=n(179);if(!window.__SALADICT_SELECTION_LOADED__){window.__SALADICT_SELECTION_LOADED__=!0;const e=Object(s.b)().pipe(Object(c.a)(e=>Object(d.a)(e)?null:e),Object(i.a)());r.a.addListener("PRELOAD_SELECTION",()=>{const e=Object(a.c)();if(e)return Object(d.e)({text:e,context:Object(a.a)()})}),r.a.createStream("EMIT_SELECTION").subscribe(async()=>{const e=window.getSelection();if(e&&e.rangeCount>0){const t=Object(a.d)(e),n=e.getRangeAt(0).getBoundingClientRect();t&&u({mouseX:n.right,mouseY:n.top,instant:!0,self:Object(o.e)(e.anchorNode),word:await Object(d.e)({text:t,context:Object(a.b)(e)}),dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,force:!1})}}),window.addEventListener("message",(function({data:e,source:t}){if(!e||"SALADICT_SELECTION"!==e.type)return;const n=({contentWindow:e})=>e===t,a=Array.from(document.querySelectorAll("iframe")).find(n)||Array.from(document.querySelectorAll("frame")).find(n);if(!a)return;const{left:r,top:s}=a.getBoundingClientRect();e.payload.mouseX=e.payload.mouseX+r,e.payload.mouseY=e.payload.mouseY+s,u(e.payload)})),Object(d.f)(d.b).subscribe(()=>r.a.self.send({type:"ESCAPE_KEY"})),e.pipe(Object(l.a)((function(e){if(!e||!e.tripleCtrl||Object(o.n)()||Object(o.i)())return f.a;const t=Object(i.a)()(Object(d.f)(d.c));return t.pipe(Object(v.a)(Object(p.a)(Object(x.a)(500)(t),Object(d.f)(e=>!Object(d.c)(e)))),Object(L.a)(e=>e.length>=3))}))).subscribe(()=>{r.a.self.send({type:"TRIPLE_CTRL"})}),e.pipe(Object(l.a)(E.a)).subscribe(async e=>{e.word?u({dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,self:!1,instant:!1,force:!1,...e,word:await Object(d.e)(e.word)}):function(e){const t={type:"SELECTION",payload:{word:null,self:e,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}};r.a.self.send(t)}(e.self)}),e.pipe(Object(l.a)((function(e){if(!e)return f.a;const t=r.a.self.createStream("PIN_STATE").pipe(Object(j.a)("payload"),Object(O.a)(!1)),n=Object(p.a)(Object(g.a)(r.a.send({type:"QUERY_QS_PANEL"})),r.a.createStream("QS_PANEL_CHANGED").pipe(Object(j.a)("payload"))).pipe(Object(c.a)(t=>t&&e.qssaPageSel),Object(O.a)(!1));return Object(b.a)(t,n).pipe(Object(l.a)(([t,n])=>{const{instant:a}=e.panelMode,{instant:r}=e[n?"qsPanelMode":t?"pinMode":"mode"];if(!a.enable&&!r.enable)return Object(m.a)(null);const s={};return Object(p.a)(Object(_.a)(null)(Object(w.a)(window,"mouseup",{capture:!0})),Object(_.a)(null)(Object(w.a)(window,"mouseout",{capture:!0})),Object(_.a)(null)(Object(w.a)(window,"keyup",{capture:!0})),Object(w.a)(window,"mousemove",{capture:!0}).pipe(Object(c.a)(e=>{const t=Object(o.e)(e.target),n=t||Object(o.n)()?a:r;return n.enable&&("alt"===n.key&&e.altKey||"shift"===n.key&&e.shiftKey||"ctrl"===n.key&&(e.ctrlKey||e.metaKey)||"direct"===n.key&&!(e.ctrlKey||e.metaKey||e.altKey))?(s.event=e,s.self=t,s):null}))).pipe(Object(k.a)(e=>e?Object(y.a)(e.self?a.delay:r.delay):Object(m.a)()))}),Object(c.a)(e=>e&&{word:C(e.event),...e}),Object(A.a)((e,t)=>{if(!e||!t)return!1;const{word:n,event:a}=e,{word:r,event:s}=t;return(null==n?void 0:n.text)===(null==r?void 0:r.text)&&(null==n?void 0:n.context)===(null==r?void 0:r.context)&&a.shiftKey===s.shiftKey&&a.ctrlKey===s.ctrlKey&&a.metaKey===s.metaKey&&a.altKey===s.altKey}),Object(L.a)(t=>Boolean(t&&t.word&&Object(h.a)(e.language,t.word.text))))}))).subscribe(async({word:e,event:t,self:n})=>{u({word:await Object(d.e)(e),altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,dbClick:!1,force:!1,instant:!0,mouseX:t.clientX,mouseY:t.clientY,self:n})})}},83:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(171),r=n(172),s=n(173),o=n(174),c=n(175);const i={baidu:a.auth,caiyun:r.auth,sogou:s.auth,tencent:o.auth,youdaotrans:c.auth};var l=n(2);const u=browser.i18n.getUILanguage(),d="zh-CN"===u?"zh-CN":"zh-TW"===u||"zh-HK"===u?"zh-TW":"en",h=function(){return{version:14,active:!0,runInBg:!1,analytics:!0,updateCheck:!0,noTypeField:!1,animation:!0,langCode:d,panelWidth:450,panelMaxHeightRatio:80,bowlOffsetX:15,bowlOffsetY:-45,darkMode:!1,panelCSS:"",fontSize:13,pdfSniff:!1,pdfStandalone:"",pdfWhitelist:[],pdfBlacklist:[["^(http|https)://[^/]*?cnki\\.net(/.*)?$","*://*.cnki.net/*"],["^(http|https)://[^/]*?googleusercontent\\.com(/.*)?$","*://*.googleusercontent.com/*"],["^(http|https)://sh-download\\.weiyun\\.com(/.*)?$","*://sh-download.weiyun.com/*"]],searchHistory:!1,searchHistoryInco:!1,editOnFav:!0,searchSuggests:!0,touchMode:!1,mode:{icon:!0,direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},pinMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},panelMode:{direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},qsPanelMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!0,meta:!1},instant:{enable:!1,key:"alt",delay:600}},bowlHover:!0,doubleClickDelay:450,tripleCtrl:!0,qsPreload:"clipboard",qsAuto:!0,qsLocation:"CENTER",qsFocus:!0,defaultPinned:!1,qsStandalone:!0,qssaHeight:600,qssaSidebar:"",qssaPageSel:!0,qssaRectMemo:!1,baWidth:-1,baHeight:550,baPreload:"selection",baAuto:!1,baOpen:"popup_panel",ctxTrans:{google:!0,youdaotrans:!0,baidu:!0,tencent:!1,caiyun:!1,sogou:!1},language:{chinese:!0,english:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},autopron:{cn:{dict:"",list:["zdic","guoyu"]},en:{dict:"",list:["bing","cambridge","cobuild","eudic","longman","urban","youdao"],accent:"uk"},machine:{dict:"",list:["google","sogou","tencent","baidu","caiyun"],src:"trans"}},whitelist:[],blacklist:[["^https://stackedit\\.io(/.*)?$","https://stackedit.io/*"],["^https://docs\\.google\\.com(/.*)?$","https://docs.google.com/*"],["^https://docs\\.qq\\.com(/.*)?$","https://docs.qq.com/*"]],contextMenus:{selected:l.d||!d.startsWith("zh-")?["view_as_pdf","google_translate","saladict"]:["view_as_pdf","caiyuntrs","google_translate","saladict"],all:{baidu_page_translate:"x",baidu_search:"https://www.baidu.com/s?ie=utf-8&wd=%s",bing_dict:"https://cn.bing.com/dict/?q=%s",bing_search:"https://www.bing.com/search?q=%s",caiyuntrs:"x",cambridge:"http://dictionary.cambridge.org/spellcheck/english-chinese-simplified/?q=%s",copy_pdf_url:"x",dictcn:"https://dict.eudic.net/dicts/en/%s",etymonline:"http://www.etymonline.com/index.php?search=%s",google_cn_page_translate:"x",google_page_translate:"x",google_search:"https://www.google.com/search?safe=off&newwindow=1&q=%s",google_translate:"https://translate.google.com/#auto/zh-CN/%s",google_cn_translate:"https://translate.google.cn/#auto/zh-CN/%s",guoyu:"https://www.moedict.tw/%s",iciba:"http://www.iciba.com/%s",liangan:"https://www.moedict.tw/~%s",longman_business:"http://www.ldoceonline.com/search/?q=%s",merriam_webster:"http://www.merriam-webster.com/dictionary/%s",microsoft_page_translate:"x",oxford:"http://www.oxforddictionaries.com/us/definition/english/%s",saladict:"x",saladict_standalone:"x",sogou_page_translate:"x",sogou:"https://fanyi.sogou.com/#auto/zh-CHS/%s",termonline:"https://www.termonline.cn/list.htm?k=%s",view_as_pdf:"x",youdao_page_translate:"x",youdao:"http://dict.youdao.com/w/%s",youglish:"https://youglish.com/search/%s"}},showedDictAuth:!1,dictAuth:JSON.parse(JSON.stringify(i))}}},87:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));var a=n(12);const r={baidu:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{},{}),bing:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{tense:!0,phsym:!0,cdef:!0,related:!0,sentence:4}},ahdict:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:4}},oaldict:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5}},caiyun:Object(a.b)(["zh-CN","en","ja"],{lang:"11010000"},{},{}),cambridge:{lang:"11100000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{lang:"default",related:!0},options_sel:{lang:["default","en","en-chs","en-chz"]}},cobuild:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:5},options:{cibaFirst:(browser.i18n.getUILanguage()||"en").startsWith("zh-")}},etymonline:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{resultnum:4,chart:!0}},eudic:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:10}},google:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{concurrent:!1},{}),guoyu:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!0}},hjdict:{lang:"10011111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:10},options:{related:!0,chsas:"jp/jc",engas:"w",uas:"fr",aas:"fr",eas:"fr"},options_sel:{chsas:["jp/cj","jp/jc","kr","w","fr","de","es"],engas:["w","fr","de","es"],uas:["fr","de","es"],aas:["fr","de"],eas:["fr","es"]}},liangan:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!1}},longman:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{wordfams:!1,collocations:!0,grammar:!0,thesaurus:!0,examples:!0,bussinessFirst:!0,related:!0}},mojidict:{lang:"10010000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5}},naver:{lang:"01011000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!0,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:10},options:{hanAsJa:!1,korAsJa:!1}},renren:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},sogou:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru"],{},{},{}),tencent:Object(a.b)(["zh-CN","en","ja","ko","fr","de","es","ru"],{lang:"11011111"},{},{}),urban:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},vocabulary:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5}},weblio:{lang:"00010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:20}},weblioejje:{lang:"10010000",selectionLang:{english:!0,chinese:!1,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},merriamwebster:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},wikipedia:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:420,selectionWC:{min:1,max:999999999999999},options:{lang:"auto"},options_sel:{lang:["auto","zh","zh-cn","zh-tw","zh-hk","en","ja","fr","de"]}},youdao:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:999999999999999},options:{basic:!0,collins:!0,discrimination:!0,sentence:!0,translation:!1,related:!0}},youdaotrans:Object(a.b)(["zh-CN","en","pt","es","ja","ko","fr","ru"],{lang:"11011111"},{},{}),zdic:{lang:"01000000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:5},options:{audio:!0}}},s=()=>JSON.parse(JSON.stringify(r))}},[[1038,0,1,21]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/selection.947dc220.js b/plugins/saladict-ztools/ext-saladic/assets/selection.947dc220.js deleted file mode 100644 index fe20b5f1..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/selection.947dc220.js +++ /dev/null @@ -1 +0,0 @@ -(window.saladictEntry=window.saladictEntry||[]).push([[16],{1:function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var a=n(76),s=n(38),r=n(10);const o=()=>{},c=new WeakMap,i=new WeakMap,l=new WeakMap,u={sync:{clear:f,remove:p,get:g,set:b,addListener:m,removeListener:w,createStream:j,get __storageArea__(){return"sync"}},local:{clear:f,remove:p,get:g,set:b,addListener:m,removeListener:w,createStream:j,get __storageArea__(){return"local"}},clear:f,addListener:m,removeListener:w,createStream:j,get __storageArea__(){return"all"}},d={send:y,addListener:O,removeListener:_,createStream:k,get __self__(){return!1},self:{initClient:A,initServer:function(){window.pageId="background page";const e=/^\[\[(.+)\]\]$/;browser.runtime.onMessage.addListener((t,n)=>{if(!t||!t.type)return;if("PAGE_INFO"===t.type)return Promise.resolve(function(e){const t={pageId:"",faviconURL:"",pageTitle:"",pageURL:""},n=e.tab;n?(t.pageId=n.id||"",n.favIconUrl&&(t.faviconURL=n.favIconUrl),n.url&&(t.pageURL=n.url),n.title&&(t.pageTitle=n.title)):(t.pageId="popup",e.url&&!e.url.startsWith("http")&&(t.faviconURL="https://saladict.crimx.com/favicon.ico"));return t}(n));const a=e.exec(t.type);if(a){t.type=a[1];const e=n.tab&&n.tab.id;return e?y(e,t):y(t)}})},send:async function(e){!1;void 0===window.pageId&&await A();return browser.runtime.sendMessage(Object.assign({},e,{__pageId__:window.pageId,type:`[[${e.type}]]`})).catch(e=>{!1})},addListener:O,removeListener:_,createStream:k,get __self__(){return!0}}};async function h(e,t){const n="string"==typeof e?{url:e,self:t}:e,a=!1!==n.unique,s=n.self?browser.runtime.getURL(n.url):n.url;if(a){const e=await browser.tabs.query({url:s}).catch(()=>[]);if(e.length>0){const{index:t,windowId:n}=e[0];return"function"==typeof browser.tabs.highlight&&await browser.tabs.highlight({tabs:t,windowId:n}),void await browser.windows.update(n,{focused:!0})}}await browser.tabs.create({url:s,active:!1!==n.active})}function f(){return"all"===this.__storageArea__?Promise.all([browser.storage.local.clear(),browser.storage.sync.clear()]).then(o):browser.storage[this.__storageArea__].clear()}function p(e){return browser.storage[this.__storageArea__].remove(e)}function g(...e){return browser.storage[this.__storageArea__].get(...e)}function b(e){return browser.storage[this.__storageArea__].set(e)}function m(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}let a=l.get(n);a||(a=new Map,l.set(n,a));const s=this.__storageArea__+t;let r=a.get(s);return r||(r=(e,a)=>{"all"!==this.__storageArea__&&a!==this.__storageArea__||t&&!(t in e)||n(e,a)},a.set(s,r)),browser.storage.onChanged.addListener(r)}function w(...e){let t,n;if("function"==typeof e[0])t="",n=e[0];else{if("string"!=typeof e[0]||"function"!=typeof e[1])throw new Error("wrong arguments type");t=e[0],n=e[1]}const a=l.get(n);if(a){if(!t)return a.forEach(e=>{browser.storage.onChanged.removeListener(e)}),void l.delete(n);{const e=this.__storageArea__+t,s=a.get(e);if(s)return browser.storage.onChanged.removeListener(s),a.delete(e),void(a.size<=0&&l.delete(n))}}browser.storage.onChanged.removeListener(n)}function j(e){if(!e)throw new Error("Missing key");return Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)).pipe(Object(s.a)(t=>Object.prototype.hasOwnProperty.call(Array.isArray(t)?t[0]:t,e)),Object(r.a)(t=>Array.isArray(t)?t[0][e]:t[e]))}function y(...e){return(1===e.length?browser.runtime.sendMessage(e[0]):browser.tabs.sendMessage(e[0],e[1])).catch(e=>{!1})}function O(...e){void 0===window.pageId&&A();const t=this.__self__?i:c,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1];let s=t.get(a);s||(s=new Map,t.set(a,s));let r=s.get(n||"__DEFAULT_MSGTYPE__");return r||(r=(e,t)=>{if(e&&(this.__self__?window.pageId===e.__pageId__:!e.__pageId__)&&(null==n||e.type===n))return a(e,t)},s.set(n||"__DEFAULT_MSGTYPE__",r)),browser.runtime.onMessage.addListener(r)}function _(...e){const t=this.__self__?i:c,n=1===e.length?void 0:e[0],a=1===e.length?e[0]:e[1],s=t.get(a);if(s){if(!n)return s.forEach(e=>browser.runtime.onMessage.removeListener(e)),void t.delete(a);{const e=s.get(n);if(e)return browser.runtime.onMessage.removeListener(e),s.delete(n),void(s.size<=0&&t.delete(a))}}browser.runtime.onMessage.removeListener(a)}function k(e){return(e?Object(a.a)(t=>this.addListener(e,t),t=>this.removeListener(e,t)):Object(a.a)(e=>this.addListener(e),e=>this.removeListener(e))).pipe(Object(r.a)(e=>Array.isArray(e)?e[0]:e))}function A(){return void 0===window.pageId?d.send({type:"PAGE_INFO"}).then(({pageId:e,faviconURL:t,pageTitle:n,pageURL:a})=>(window.pageId=e,window.faviconURL=t,n&&(window.pageTitle=n),a&&(window.pageURL=a),e)):Promise.resolve(window.pageId)}},11:function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return r})),n.d(t,"f",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return l}));var a=n(1);function s(e){return e?{date:e.date||Date.now(),text:e.text||"",context:e.context||"",title:e.title||"",url:e.url||"",favicon:e.favicon||"",trans:e.trans||"",note:e.note||""}:{date:Date.now(),text:"",context:"",title:"",url:"",favicon:"",trans:"",note:""}}function r(e){return a.a.send({type:"IS_IN_NOTEBOOK",payload:e}).catch((t=!1,e=>t));var t}async function o(e,t){await a.a.send({type:"SAVE_WORD",payload:{area:e,word:t}})}async function c(e,t){await a.a.send({type:"SYNC_SERVICE_DOWNLOAD"}),await a.a.send({type:"DELETE_WORDS",payload:{area:e,dates:t}})}function i(e,t){return a.a.send({type:"GET_WORDS_BY_TEXT",payload:{area:e,text:t}})}function l(e,t){return a.a.send({type:"GET_WORDS",payload:{area:e,...t}})}},160:function(e,t,n){"use strict";n.d(t,"b",(function(){return m}));var a=n(78),s=n(81),r=n(73),o=n.n(r),c=n(90),i=n.n(c),l=n(100),u=n.n(l),d=n(57),h=n.n(d),f=n(21),p=n.n(f),g=n(27),b=n.n(g);function m(e,t){const n=t?JSON.parse(JSON.stringify(t)):Object(a.a)();let r=e.version;return r<13&&(e.showedDictAuth=!0),r<=9&&(r=10,["mode","pinMode","panelMode","qsPanelMode"].forEach(t=>{n[t].holding.shift=!1,n[t].holding.ctrl=!!e[t].ctrl,n[t].holding.meta=!!e[t].ctrl,delete e[t].ctrl})),c("tripleCtrlPreload","qsPreload"),c("tripleCtrlAuto","qsAuto"),c("tripleCtrlLocation","qsLocation"),c("tripleCtrlStandalone","qsStandalone"),c("tripleCtrlHeight","qssaHeight"),c("tripleCtrlSidebar","qssaSidebar"),c("tripleCtrlPageSel","qssaPageSel"),Object.keys(n).forEach(t=>{switch(t){case"langCode":g("langCode",e=>/^(zh-CN|zh-TW|en)$/.test(e));break;case"pdfWhitelist":case"pdfBlacklist":case"whitelist":case"blacklist":g(t,e=>Array.isArray(e));break;case"searhHistory":case"searchHistory":n.searchHistory=e[t];break;case"searhHistoryInco":case"searchHistoryInco":n.searchHistoryInco=e[t];break;case"mode":case"pinMode":case"panelMode":case"qsPanelMode":"mode"===t&&f("mode.icon"),f(t+".direct"),f(t+".double"),f(t+".holding.alt"),f(t+".holding.shift"),f(t+".holding.ctrl"),f(t+".holding.meta"),f(t+".instant.enable"),g(t+".instant.key",e=>/^(direct|ctrl|alt|shift)$/.test(e)),l(t+".instant.delay");break;case"qsPreload":g("qsPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"qsLocation":g("qsLocation",e=>"CENTER"===e||"TOP"===e||"RIGHT"===e||"BOTTOM"===e||"LEFT"===e||"TOP_LEFT"===e||"TOP_RIGHT"===e||"BOTTOM_LEFT"===e||"BOTTOM_RIGHT"===e);break;case"baPreload":g("baPreload",e=>""===e||"clipboard"===e||"selection"===e);break;case"ctxTrans":o()(n.ctxTrans,(e,t)=>{f("ctxTrans."+t)});break;case"language":o()(n.language,(e,t)=>{f("language."+t)});break;case"autopron":g("autopron.cn.dict",e=>s.a[e]),g("autopron.en.dict",e=>s.a[e]),g("autopron.en.accent",e=>"us"===e||"uk"===e),g("autopron.machine.dict",e=>s.a[e]),g("autopron.machine.src",e=>"trans"===e||"searchText"===e);break;case"contextMenus":o()(e.contextMenus.all,(e,t)=>{"string"==typeof e?n.contextMenus.all[t]&&d("contextMenus.all."+t):(d(`contextMenus.all.${t}.name`),d(`contextMenus.all.${t}.url`))}),function(t){const a=p()(e,[t,"selected"]);if(Array.isArray(a))if(0===a.length)b()(n,[t,"selected"],[]);else{const e=p()(n,[t,"all"]),s=a.filter(t=>e[t]);s.length>0&&b()(n,[t,"selected"],s)}}("contextMenus");break;case"dictAuth":g("dictAuth",Boolean);break;default:switch(typeof n[t]){case"string":d(t);break;case"boolean":f(t);break;case"number":l(t);break;default:console.error(new Error(`merge config: missing handler for '${t}'`))}}}),r=e.version,r<=10&&(r=11,n.contextMenus.selected.unshift("view_as_pdf")),r<=11&&(r=12,n.blacklist.push(["^https://stackedit.io(/.*)?$","https://stackedit.io/*"])),!1===e.language.minor&&(n.language.japanese=!1,n.language.korean=!1,n.language.french=!1,n.language.spanish=!1,n.language.deutsch=!1),n.panelMaxHeightRatio<1&&(n.panelMaxHeightRatio=Math.round(100*n.panelMaxHeightRatio)),n;function c(t,n){!Object.prototype.hasOwnProperty.call(e,n)&&Object.prototype.hasOwnProperty.call(e,t)&&(e[n]=e[t])}function l(e){return g(e,i.a)}function d(e){return g(e,u.a)}function f(e){return g(e,h.a)}function g(t,a){const s=p()(e,t);a(s)&&b()(n,t,s)}}t.a=m},165:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return s}));const a={appid:"",key:""},s="http://api.fanyi.baidu.com/api/trans/product/prodinfo"},166:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return s}));const a={token:""},s="https://fanyi.caiyunapp.com/#/api"},167:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return s}));const a={pid:"",key:""},s="https://deepi.sogou.com/?from=translatepc"},168:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return s}));const a={secretId:"",secretKey:""},s="https://curl.qcloud.com/imsowZzT"},169:function(e,t,n){"use strict";n.r(t),n.d(t,"auth",(function(){return a})),n.d(t,"url",(function(){return s}));const a={appKey:"",key:""},s="http://ai.youdao.com/gw.s"},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o}));var a=n(24);async function s(e,t,{options:n,options_sel:s},r,o){("none"===n.keepLF||"pdf"===n.keepLF&&!o.isPDF||"webpage"===n.keepLF&&o.isPDF)&&(t=t.replace(/\n+/g," "));let c=o.sl;c||(Object(a.g)(t)?c="ja":Object(a.h)(t)&&(c="ko")),c||(c=await e.detect(t));let i="";return o.tl?i=o.tl:"default"===n.tl?s.tl.includes(r.langCode)&&(i=r.langCode):i=n.tl,i||(i=s.tl.find(e=>"default"!==e)||"en"),c===i&&(o.tl?o.sl||(c="auto"):i="default"===n.tl2?i!==r.langCode?r.langCode:"en"!==i?"en":s.tl.find(e=>"default"!==e&&e!==i)||"en":n.tl2),{sl:c,tl:i,text:t}}function r(e,t,n,a){return{lang:"11111111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:320,selectionWC:{min:1,max:999999999999999},...t,options:{keepLF:"webpage",slInitial:"collapse",tl:"default",tl2:"default",...n},options_sel:{keepLF:["none","all","webpage","pdf"],slInitial:["collapse","hide","full"],tl:["default",...e],tl2:["default",...e],...a}}}function o(e,t){const n=[{value:"auto",label:"%t(content:machineTrans.auto)"}];for(const e of t)n.push({value:e,label:`${e} %t(langcode:${e})`});const a=[{key:"sl",value:e.result.sl,title:"%t(content:machineTrans.sl)",options:n},{key:"tl",value:e.result.tl,title:"%t(content:machineTrans.tl)",options:n},{key:"copySrc",value:"copySrc",label:"%t(content:machineTrans.copySrc)"},{key:"copyTrans",value:"copyTrans",label:"%t(content:machineTrans.copyTrans)"}];return"hide"===e.result.slInitial&&a.push({key:"showSl",value:"",label:"%t(content:machineTrans.showSl)"}),{...e,catalog:a}}},173:function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return x}));var a=n(118),s=n(104),r=n(52),o=n(155),c=n(38),i=n(10),l=n(83),u=n(128),d=n(500),h=n(501),f=n(180),p=n(176),g=n(108),b=n(435),m=n(502),w=n(116),j=n(130),y=n(30),O=n(182),_=n(2),k=n(42),A=n(24),L=n(41);function C(e){return e?e.touchMode?function(e){const t=Object(s.a)(Object(r.a)(window,"mousedown",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),Object(r.a)(window,"touchstart",{capture:!0}).pipe(Object(i.a)(e=>e.changedTouches[0]))),n=Object(s.a)(Object(r.a)(window,"mouseup",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),Object(r.a)(window,"touchend",{capture:!0}).pipe(Object(i.a)(e=>e.changedTouches[0]))),a=v(n,e.doubleClickDelay),f=Object(s.a)(Object(l.a)(!0)(t),Object(l.a)(!1)(n),Object(l.a)(!1)(Object(r.a)(window,"mouseout",{capture:!0})),Object(l.a)(!1)(Object(r.a)(window,"blur",{capture:!0})));return Object(r.a)(document,"selectionchange").pipe(Object(u.a)(f),Object(d.a)(([,e])=>e?n:Object(o.a)(400)),Object(i.a)(([,e])=>[window.getSelection(),e]),Object(c.a)(e=>!!e[0]&&!Object(_.e)(e[0].anchorNode)),Object(u.a)(n,t,a),Object(i.a)(([[t,n],a,s,r])=>{const o=Object(_.d)(t.anchorNode||s.target);if(e.noTypeField&&Object(L.d)(n?s.target:t.anchorNode))return{self:o};const c=Object(k.d)(t);if(!Object(A.a)(e.language,c))return{self:o};if(n)return{word:{text:c,context:Object(k.b)(t)},self:o,dbClick:r>=2,mouseX:a.clientX,mouseY:a.clientY,altKey:!!a.altKey,shiftKey:!!a.shiftKey,ctrlKey:!!a.ctrlKey,metaKey:!!a.metaKey};const i=t.getRangeAt(0).getBoundingClientRect();return 0===i.top&&0===i.left&&0===i.width&&0===i.height?{self:o}:{word:{text:c,context:Object(k.b)(t)},self:o,dbClick:r>=2,mouseX:i.right,mouseY:i.top}}),Object(h.a)(t=>{if(_.c&&t.self&&t.word&&t.word.text){const{direct:n,double:a,holding:s}=e.panelMode;if(n||a&&t.dbClick||s.alt&&t.altKey||s.shift&&t.shiftKey||s.ctrl&&t.ctrlKey||s.meta&&t.metaKey)return Object(o.a)(500)}return Object(o.a)(0)}))}(e):function(e){const t=Object(r.a)(window,"mousedown",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),n=Object(r.a)(window,"mouseup",{capture:!0}).pipe(Object(c.a)(e=>0===e.button)),a=v(n,e.doubleClickDelay);return n.pipe(Object(c.a)(e=>!Object(_.e)(e.target)),Object(f.a)(10),Object(u.a)(t,a),Object(c.a)(([e,t])=>!Object(_.d)(e.target)&&!Object(_.d)(t.target)),Object(i.a)(([t,n,a])=>{if(e.noTypeField&&Object(L.d)(n.target))return{self:!1};const s=window.getSelection(),r=Object(k.d)(s);return Object(A.a)(e.language,r)?{word:{text:r,context:Object(k.b)(s)},self:!1,dbClick:a>=2,mouseX:t.clientX,mouseY:t.clientY,altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey}:{self:!1}}),Object(p.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context))}(e):a.a}function x(e,t,n,a){const[s,r]=Object(w.a)(e=>e.pipe(Object(c.a)(e=>0===e.button))),o=Object(j.a)(y.b,[e,t]),l=Object(j.a)(e=>e.pipe(Object(g.a)(([e])=>v(r,e))),[n]),d=Object(j.a)(()=>r.pipe(Object(u.a)(o),Object(c.a)(([e,[t]])=>{if(t)return!1;for(let t=e.target;t;t=t.parentElement)if("A"===t.tagName||"BUTTON"===t.tagName)return!1;return!0}),Object(i.a)(([e,[,t]])=>({mouseup:e.nativeEvent,language:t})),Object(f.a)(10),Object(u.a)(l),Object(i.a)(([{mouseup:e,language:t},n])=>{const a=window.getSelection(),s=Object(k.d)(a);return Object(A.a)(t,s)?{word:{text:s,context:Object(k.b)(a)},dbClick:n>=2,mouseX:e.clientX,mouseY:e.clientY,altKey:e.altKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,self:!0,instant:!1,force:!1}:{word:null,self:!0,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}}),Object(p.a)((e,t)=>!t.dbClick&&!!e.word&&!!t.word&&e.word.text===t.word.text&&e.word.context===t.word.context)));return Object(O.a)(d,async e=>{e.word&&(e.word=await Object(L.e)(e.word)),a(e)}),s}function v(e,t){return e.pipe(Object(g.a)(()=>Object(o.a)(t).pipe(Object(l.a)(!1),Object(b.a)(!0))),Object(m.a)((e,t)=>t?e+1:0,0))}},2:function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"j",(function(){return r})),n.d(t,"i",(function(){return o})),n.d(t,"k",(function(){return c})),n.d(t,"l",(function(){return i})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return p}));const a=()=>!!window.__SALADICT_INTERNAL_PAGE__,s=()=>!!window.__SALADICT_OPTIONS_PAGE__,r=()=>!!window.__SALADICT_POPUP_PAGE__,o=()=>!!window.__SALADICT_PDF_PAGE__,c=()=>!!window.__SALADICT_QUICK_SEARCH_PAGE__,i=()=>r()||c(),l="saladict-external",u="saladict-panel",d=navigator.userAgent.includes("Firefox"),h=navigator.userAgent.includes("OPR");function f(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(l))return!0;return!1}function p(e){if(!e)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(u))return!0;return!1}},24:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"g",(function(){return i})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"j",(function(){return w})),n.d(t,"a",(function(){return j}));var a=n(19);const s=["chinese","english","japanese","korean","french","spanish","deutsch"],r={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},o=e=>r.chinese.test(e),c=e=>r.english.test(e),i=e=>r.japanese.test(e),l=e=>r.korean.test(e),u=e=>r.french.test(e),d=e=>r.deutsch.test(e),h=e=>r.spanish.test(e),f={chinese:Object(a.a)(o),english:Object(a.a)(c),japanese:Object(a.a)(i),korean:Object(a.a)(l),french:Object(a.a)(u),spanish:Object(a.a)(h),deutsch:Object(a.a)(d)},p=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,g=new RegExp(`^(\\d|\\s|${p.source})+$`),b=new RegExp(`${r.chinese.source}|${r.japanese.source}|${r.korean.source}`),m=Object(a.a)(e=>(e.replace(new RegExp(p,"g")," ").replace(new RegExp(b,"g")," x ").match(/\S+/g)||"").length),w=[...s,"others","matchAll"];function j(e,t){if(!t)return!1;if(e.matchAll){if(g.test(t))return!1;if(e.others){const n=[/-|\.|\d|\s/],a=[];for(let t=s.length-1;t>=0;t--){const o=s[t];e[o]?n.push(r[o]):a.push(r[o])}for(let e=0;e!n.test(t[e]))&&a.some(n=>n.test(t[e])))return!1;return!0}{const n=s.filter(t=>e[t]).map(e=>r[e]);n.push(/-|\.|\d|\s/);for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!1;return!0}}{if(s.some(n=>e[n]&&f[n](t)))return!0;if(!e.others||g.test(t))return!1;const n=s.filter(t=>!e[t]).map(e=>r[e]);n.push(new RegExp(p.source+"|\\d|\\s"));for(let e=t.length-1;e>=0;e--)if(n.every(n=>!n.test(t[e])))return!0;return!1}}},29:function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"f",(function(){return b})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return w}));var a=n(85),s=n.n(a),r=n(78),o=n(160),c=n(1),i=n(95),l=n(64),u=n(76),d=n(10);function h(e){return e&&1===e.v?JSON.parse(s.a.inflate(e.d,{to:"string"})):e}async function f(){let e=await g();return e=e&&e.version?Object(o.b)(e):Object(r.a)(),await b(e),e}async function p(){const e=Object(r.a)();return await b(e),e}async function g(){const{baseconfig:e}=await c.c.sync.get("baseconfig");return h(e||Object(r.a)())}function b(e){return c.c.sync.set({baseconfig:(t=e,{v:1,d:s.a.deflate(JSON.stringify(t),{to:"string"})})});var t}async function m(e){c.c.sync.addListener(t=>{if(t.baseconfig){const{newValue:n,oldValue:a}=t.baseconfig;n&&e({newConfig:h(n),oldConfig:h(a)})}})}function w(){return Object(i.a)(Object(l.a)(g()),Object(u.a)(m).pipe(Object(d.a)(e=>(Array.isArray(e)?e[0]:e).newConfig)))}},41:function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"f",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return w})),n.d(t,"e",(function(){return j}));var a=n(104),s=n(52),r=n(96),o=n(10),c=n(83),i=n(176),l=n(38),u=n(11),d=n(1);const h=/mac/i.test(navigator.platform);function f(e){return h?"Meta"===e.key:"Control"===e.key}function p(e){return"Escape"===e.key}function g(e){return Object(a.a)(Object(o.a)(e)(Object(s.a)(window,"keydown",{capture:!0})),Object(c.a)(!1)(Object(s.a)(window,"keyup",{capture:!0})),Object(c.a)(!1)(Object(s.a)(window,"blur",{capture:!0})),Object(r.a)(!1)).pipe(Object(i.a)(),Object(l.a)(e=>e))}const b=/CodeMirror|ace_editor|monaco-editor/;function m(e){if(!e||!e.tagName)return!1;for(let t=e;t;t=t.parentElement){if("INPUT"===t.tagName||"TEXTAREA"===t.tagName)return!0;if(b.test(String(t.className)))return!0}return!1}function w(e){const t=window.pageURL||document.URL||"";return!!t&&(e.blacklist.some(([e])=>new RegExp(e).test(t))&&e.whitelist.every(([e])=>!new RegExp(e).test(t)))}async function j(e={}){const t=await d.a.send({type:"PAGE_INFO"});return window.faviconURL=t.faviconURL,t.pageTitle&&(window.pageTitle=t.pageTitle),t.pageURL&&(window.pageURL=t.pageURL),Object(u.e)({title:t.pageTitle||document.title||"",url:t.pageURL||document.URL||"",favicon:t.faviconURL||"",...e})}},431:function(e,t,n){"use strict";n.r(t);var a=n(42),s=n(1),r=n(29),o=n(2),c=n(10),i=n(720),l=n(108);function u(e){window.parent===window?s.a.self.send({type:"SELECTION",payload:e}):window.parent.postMessage({type:"SALADICT_SELECTION",payload:e},"*")}var d=n(41),h=n(24),f=n(118),p=n(104),g=n(64),b=n(704),m=n(96),w=n(52),j=n(155),y=n(161),O=n(435),_=n(83),k=n(500),A=n(176),L=n(38);function C(e){const t=e.clientX,n=e.clientY;let s,r,o;const c=window.getSelection();if(!c)return null;if(c.rangeCount>0&&(o=c.getRangeAt(0),c.removeAllRanges()),document.caretPositionFromPoint){const e=document.caretPositionFromPoint(t,n);if(!e)return null;s=e.offsetNode,r=e.offset}else{if(!document.caretRangeFromPoint)return null;{const e=document.caretRangeFromPoint(t,n);if(!e)return null;s=e.startContainer,r=e.startOffset}}if(s.nodeType===Node.TEXT_NODE){const e=s,i=e.data,l=(i.slice(0,r).match(/[-_a-z]+$/i)||[""])[0],u=(i.slice(r).match(/^([-_a-z]+|[\u4e00-\u9fa5])/i)||[""])[0];if(l.length<=0&&u.length<=0)return null;const d=document.createRange();d.setStart(e,r-l.length),d.setEnd(e,r+u.length);const h=d.getBoundingClientRect();h.left<=t&&h.right>=t&&h.top<=n&&h.bottom>=n&&(c.removeAllRanges(),c.addRange(d),c.modify&&(c.modify("move","backward","word"),c.collapseToStart(),c.modify("extend","forward","word")));const f=Object(a.d)(c),p=Object(a.b)(c);return c.removeAllRanges(),o&&c.addRange(o),d.detach(),f?{text:f,context:p}:null}return null}var x=n(857),v=n(371);var T=n(173);if(!window.__SALADICT_SELECTION_LOADED__){window.__SALADICT_SELECTION_LOADED__=!0;const e=Object(r.b)().pipe(Object(c.a)(e=>Object(d.a)(e)?null:e),Object(i.a)());s.a.addListener("PRELOAD_SELECTION",()=>{const e=Object(a.c)();if(e)return Object(d.e)({text:e,context:Object(a.a)()})}),s.a.createStream("EMIT_SELECTION").subscribe(async()=>{const e=window.getSelection();if(e){const t=Object(a.d)(e),n=e.getRangeAt(0).getBoundingClientRect();t&&u({mouseX:n.right,mouseY:n.top,instant:!0,self:Object(o.d)(e.anchorNode),word:await Object(d.e)({text:t,context:Object(a.b)(e)}),dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,force:!1})}}),window.addEventListener("message",(function({data:e,source:t}){if(!e||"SALADICT_SELECTION"!==e.type)return;const n=({contentWindow:e})=>e===t,a=Array.from(document.querySelectorAll("iframe")).find(n)||Array.from(document.querySelectorAll("frame")).find(n);if(!a)return;const{left:s,top:r}=a.getBoundingClientRect();e.payload.mouseX=e.payload.mouseX+s,e.payload.mouseY=e.payload.mouseY+r,u(e.payload)})),Object(d.f)(d.b).subscribe(()=>s.a.self.send({type:"ESCAPE_KEY"})),e.pipe(Object(l.a)((function(e){if(!e||!e.tripleCtrl||Object(o.l)()||Object(o.h)())return f.a;const t=Object(i.a)()(Object(d.f)(d.c));return t.pipe(Object(x.a)(Object(p.a)(Object(v.a)(500)(t),Object(d.f)(e=>!Object(d.c)(e)))),Object(L.a)(e=>e.length>=3))}))).subscribe(()=>{s.a.self.send({type:"TRIPLE_CTRL"})}),e.pipe(Object(l.a)(T.a)).subscribe(async e=>{e.word?u({dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,self:!1,instant:!1,force:!1,...e,word:await Object(d.e)(e.word)}):function(e){const t={type:"SELECTION",payload:{word:null,self:e,mouseX:0,mouseY:0,dbClick:!1,altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1,instant:!1,force:!1}};s.a.self.send(t)}(e.self)}),e.pipe(Object(l.a)((function(e){if(!e)return f.a;const t=s.a.self.createStream("PIN_STATE").pipe(Object(y.a)("payload"),Object(O.a)(!1)),n=Object(p.a)(Object(g.a)(s.a.send({type:"QUERY_QS_PANEL"})),s.a.createStream("QS_PANEL_CHANGED").pipe(Object(y.a)("payload"))).pipe(Object(c.a)(t=>t&&e.qssaPageSel),Object(O.a)(!1));return Object(b.a)(t,n).pipe(Object(l.a)(([t,n])=>{const{instant:a}=e.panelMode,{instant:s}=e[n?"qsPanelMode":t?"pinMode":"mode"];if(!a.enable&&!s.enable)return Object(m.a)(null);const r={};return Object(p.a)(Object(_.a)(null)(Object(w.a)(window,"mouseup",{capture:!0})),Object(_.a)(null)(Object(w.a)(window,"mouseout",{capture:!0})),Object(_.a)(null)(Object(w.a)(window,"keyup",{capture:!0})),Object(w.a)(window,"mousemove",{capture:!0}).pipe(Object(c.a)(e=>{const t=Object(o.d)(e.target),n=t||Object(o.l)()?a:s;return n.enable&&("alt"===n.key&&e.altKey||"shift"===n.key&&e.shiftKey||"ctrl"===n.key&&(e.ctrlKey||e.metaKey)||"direct"===n.key&&!(e.ctrlKey||e.metaKey||e.altKey))?(r.event=e,r.self=t,r):null}))).pipe(Object(k.a)(e=>e?Object(j.a)(e.self?a.delay:s.delay):Object(m.a)()))}),Object(c.a)(e=>e&&{word:C(e.event),...e}),Object(A.a)((e,t)=>{if(!e||!t)return!1;const{word:n,event:a}=e,{word:s,event:r}=t;return(null==n?void 0:n.text)===(null==s?void 0:s.text)&&(null==n?void 0:n.context)===(null==s?void 0:s.context)&&a.shiftKey===r.shiftKey&&a.ctrlKey===r.ctrlKey&&a.metaKey===r.metaKey&&a.altKey===r.altKey}),Object(L.a)(t=>Boolean(t&&t.word&&Object(h.a)(e.language,t.word.text))))}))).subscribe(async({word:e,event:t,self:n})=>{u({word:await Object(d.e)(e),altKey:t.altKey,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,dbClick:!1,force:!1,instant:!0,mouseX:t.clientX,mouseY:t.clientY,self:n})})}},78:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(165),s=n(166),r=n(167),o=n(168),c=n(169);const i={baidu:a.auth,caiyun:s.auth,sogou:r.auth,tencent:o.auth,youdaotrans:c.auth};var l=n(2);const u=browser.i18n.getUILanguage(),d="zh-CN"===u?"zh-CN":"zh-TW"===u||"zh-HK"===u?"zh-TW":"en",h=function(){return{version:14,active:!0,runInBg:!1,analytics:!0,updateCheck:!0,noTypeField:!1,animation:!0,langCode:d,panelWidth:450,panelMaxHeightRatio:80,bowlOffsetX:15,bowlOffsetY:-45,darkMode:!1,panelCSS:"",fontSize:13,pdfSniff:!1,pdfStandalone:"",pdfWhitelist:[],pdfBlacklist:[["^(http|https)://[^/]*?cnki\\.net(/.*)?$","*://*.cnki.net/*"],["^(http|https)://[^/]*?googleusercontent\\.com(/.*)?$","*://*.googleusercontent.com/*"],["^(http|https)://sh-download\\.weiyun\\.com(/.*)?$","*://sh-download.weiyun.com/*"]],searchHistory:!1,searchHistoryInco:!1,editOnFav:!0,searchSuggests:!0,touchMode:!1,mode:{icon:!0,direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},pinMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},panelMode:{direct:!1,double:!1,holding:{alt:!1,shift:!1,ctrl:!1,meta:!1},instant:{enable:!1,key:"alt",delay:600}},qsPanelMode:{direct:!0,double:!1,holding:{alt:!1,shift:!1,ctrl:!0,meta:!1},instant:{enable:!1,key:"alt",delay:600}},bowlHover:!0,doubleClickDelay:450,tripleCtrl:!0,qsPreload:"clipboard",qsAuto:!0,qsLocation:"CENTER",qsFocus:!0,defaultPinned:!1,qsStandalone:!0,qssaHeight:600,qssaSidebar:"",qssaPageSel:!0,qssaRectMemo:!1,baWidth:-1,baHeight:550,baPreload:"selection",baAuto:!1,baOpen:"popup_panel",ctxTrans:{google:!0,youdaotrans:!0,baidu:!0,tencent:!1,caiyun:!1,sogou:!1},language:{chinese:!0,english:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},autopron:{cn:{dict:"",list:["zdic","guoyu"]},en:{dict:"",list:["bing","cambridge","cobuild","eudic","longman","macmillan","lexico","urban","websterlearner","youdao"],accent:"uk"},machine:{dict:"",list:["google","sogou","tencent","baidu","caiyun"],src:"trans"}},whitelist:[],blacklist:[["^https://stackedit\\.io(/.*)?$","https://stackedit.io/*"],["^https://docs\\.google\\.com(/.*)?$","https://docs.google.com/*"],["^https://docs\\.qq\\.com(/.*)?$","https://docs.qq.com/*"]],contextMenus:{selected:l.c||!d.startsWith("zh-")?["view_as_pdf","google_translate","saladict"]:["view_as_pdf","caiyuntrs","google_translate","saladict"],all:{baidu_page_translate:"x",baidu_search:"https://www.baidu.com/s?ie=utf-8&wd=%s",bing_dict:"https://cn.bing.com/dict/?q=%s",bing_search:"https://www.bing.com/search?q=%s",caiyuntrs:"x",cambridge:"http://dictionary.cambridge.org/spellcheck/english-chinese-simplified/?q=%s",copy_pdf_url:"x",dictcn:"https://dict.eudic.net/dicts/en/%s",etymonline:"http://www.etymonline.com/index.php?search=%s",google_cn_page_translate:"x",google_page_translate:"x",google_search:"https://www.google.com/#newwindow=1&q=%s",google_translate:"https://translate.google.com/#auto/zh-CN/%s",google_cn_translate:"https://translate.google.cn/#auto/zh-CN/%s",guoyu:"https://www.moedict.tw/%s",iciba:"http://www.iciba.com/%s",liangan:"https://www.moedict.tw/~%s",longman_business:"http://www.ldoceonline.com/search/?q=%s",merriam_webster:"http://www.merriam-webster.com/dictionary/%s",microsoft_page_translate:"x",oxford:"http://www.oxforddictionaries.com/us/definition/english/%s",saladict:"x",saladict_standalone:"x",sogou_page_translate:"x",sogou:"https://fanyi.sogou.com/#auto/zh-CHS/%s",termonline:"https://www.termonline.cn/list.htm?k=%s",view_as_pdf:"x",youdao_page_translate:"x",youdao:"http://dict.youdao.com/w/%s",youglish:"https://youglish.com/search/%s"}},showedDictAuth:!1,dictAuth:JSON.parse(JSON.stringify(i))}}},81:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return r}));var a=n(17);const s={baidu:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{},{}),bing:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{tense:!0,phsym:!0,cdef:!0,related:!0,sentence:4}},caiyun:Object(a.b)(["zh-CN","en","ja"],{lang:"11010000"},{},{}),cambridge:{lang:"11100000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{lang:"default",related:!0},options_sel:{lang:["default","en","en-chs","en-chz"]}},cnki:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:100},options:{dict:!0,senbi:!0,seneng:!0}},cobuild:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:5},options:{cibaFirst:(browser.i18n.getUILanguage()||"en").startsWith("zh-")}},etymonline:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{resultnum:4,chart:!0}},eudic:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{resultnum:10}},google:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru","nl"],{},{cnfirst:!0,concurrent:!1},{}),googledict:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:240,selectionWC:{min:1,max:5},options:{enresult:!0}},guoyu:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!0}},hjdict:{lang:"10011111",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:10},options:{related:!0,chsas:"jp/jc",engas:"w",uas:"fr",aas:"fr",eas:"fr"},options_sel:{chsas:["jp/cj","jp/jc","kr","w","fr","de","es"],engas:["w","fr","de","es"],uas:["fr","de","es"],aas:["fr","de"],eas:["fr","es"]}},jikipedia:{lang:"01000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:380,selectionWC:{min:1,max:5},options:{resultnum:4}},jukuu:{lang:"11010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:300,selectionWC:{min:1,max:99999},options:{lang:"zheng"},options_sel:{lang:["zheng","engjp","zhjp"]}},lexico:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{related:!0}},liangan:{lang:"00100000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{trans:!1}},longman:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{wordfams:!1,collocations:!0,grammar:!0,thesaurus:!0,examples:!0,bussinessFirst:!0,related:!0}},macmillan:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:5},options:{related:!0,locale:"uk"},options_sel:{locale:["uk","us"]}},mojidict:{lang:"10010000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5}},naver:{lang:"01011000",selectionLang:{english:!1,chinese:!0,japanese:!0,korean:!0,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:465,selectionWC:{min:1,max:10},options:{hanAsJa:!1,korAsJa:!1}},renren:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},sogou:Object(a.b)(["zh-CN","zh-TW","en","ja","ko","fr","de","es","ru"],{},{},{}),tencent:Object(a.b)(["zh-CN","en","ja","ko","fr","de","es","ru"],{lang:"11011111"},{},{}),urban:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5},options:{resultnum:4}},vocabulary:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:180,selectionWC:{min:1,max:5}},weblio:{lang:"00010000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:20}},weblioejje:{lang:"10010000",selectionLang:{english:!0,chinese:!1,japanese:!0,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:999}},websterlearner:{lang:"10000000",selectionLang:{english:!0,chinese:!1,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:5},options:{defs:!0,phrase:!0,derived:!0,arts:!0,related:!0}},wikipedia:{lang:"11110000",selectionLang:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:420,selectionWC:{min:1,max:999999999999999},options:{lang:"auto"},options_sel:{lang:["auto","zh","zh-cn","zh-tw","zh-hk","en","ja","fr","de"]}},youdao:{lang:"11000000",selectionLang:{english:!0,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:265,selectionWC:{min:1,max:999999999999999},options:{basic:!0,collins:!0,discrimination:!0,sentence:!0,translation:!1,related:!0}},youdaotrans:Object(a.b)(["zh-CN","en","pt","es","ja","ko","fr","ru"],{lang:"11011111"},{},{}),zdic:{lang:"01000000",selectionLang:{english:!1,chinese:!0,japanese:!1,korean:!1,french:!1,spanish:!1,deutsch:!1,others:!1,matchAll:!1},defaultUnfold:{english:!0,chinese:!0,japanese:!0,korean:!0,french:!0,spanish:!0,deutsch:!0,others:!0,matchAll:!1},preferredHeight:400,selectionWC:{min:1,max:5},options:{audio:!1}}},r=()=>JSON.parse(JSON.stringify(s))},995:function(e,t,n){e.exports=n(431)}},[[995,0,1,21]]]); \ No newline at end of file diff --git a/plugins/saladict-ztools/ext-saladic/assets/trs.js b/plugins/saladict-ztools/ext-saladic/assets/trs.js deleted file mode 100644 index 707428bc..00000000 --- a/plugins/saladict-ztools/ext-saladic/assets/trs.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([,,function(e,t,n){var r;/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,i){"use strict";var o=[],a=n.document,s=Object.getPrototypeOf,c=o.slice,u=o.concat,l=o.push,d=o.indexOf,p={},f=p.toString,h=p.hasOwnProperty,g=h.toString,m=g.call(Object),y={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},A={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||a).createElement("script");if(o.text=e,t)for(r in A)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?p[f.call(e)]||"object":typeof e}var T="3.4.1",E=function(e,t){return new E.fn.init(e,t)},S=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function C(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!v(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+U+")"+U+"*"),X=new RegExp(U+"|>"),V=new RegExp(_),z=new RegExp("^"+j+"$"),W={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+_),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+U+"*(even|odd|(([+-]|)(\\d*)n|)"+U+"*(?:([+-]|)"+U+"*(\\d+)|))"+U+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+U+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+U+"*((?:-\\d)?\\d*)"+U+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+U+"?|("+U+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ae=Ae(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{B.apply(O=P.call(b.childNodes),b.childNodes),O[b.childNodes.length].nodeType}catch(t){B={apply:O.length?function(e,t){M.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,u,l,d,h,y,v=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&((t?t.ownerDocument||t:b)!==f&&p(t),t=t||f,g)){if(11!==w&&(d=$.exec(e)))if(o=d[1]){if(9===w){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(v&&(u=v.getElementById(o))&&x(t,u)&&u.id===o)return r.push(u),r}else{if(d[2])return B.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return B.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!k[e+" "]&&(!m||!m.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(y=e,v=t,1===w&&X.test(e)){for((l=t.getAttribute("id"))?l=l.replace(re,ie):t.setAttribute("id",l=A),s=(h=a(e)).length;s--;)h[s]="#"+l+" "+xe(h[s]);y=h.join(","),v=ee.test(e)&&ye(t.parentNode)||t}try{return B.apply(r,v.querySelectorAll(y)),r}catch(t){k(e,!0)}finally{l===A&&t.removeAttribute("id")}}}return c(e.replace(q,"$1"),t,r,i)}function ce(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ue(e){return e[A]=!0,e}function le(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ue(function(t){return t=+t,ue(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:b;return a!==f&&9===a.nodeType&&a.documentElement&&(h=(f=a).documentElement,g=!o(f),b!==f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(f.getElementsByClassName),n.getById=le(function(e){return h.appendChild(e).id=A,!f.getElementsByName||!f.getElementsByName(A).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],m=[],(n.qsa=Z.test(f.querySelectorAll))&&(le(function(e){h.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+U+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+U+"*(?:value|"+D+")"),e.querySelectorAll("[id~="+A+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+A+"+*").length||m.push(".#.+[+~]")}),le(function(e){e.innerHTML="";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+U+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=Z.test(v=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&le(function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),y.push("!=",_)}),m=m.length&&new RegExp(m.join("|")),y=y.length&&new RegExp(y.join("|")),t=Z.test(h.compareDocumentPosition),x=t||Z.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},R=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===f||e.ownerDocument===b&&x(b,e)?-1:t===f||t.ownerDocument===b&&x(b,t)?1:l?I(l,e)-I(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===f?-1:t===f?1:i?-1:o?1:l?I(l,e)-I(l,t):0;if(i===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]===b?-1:s[r]===b?1:0}),f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),n.matchesSelector&&g&&!k[t+" "]&&(!y||!y.test(t))&&(!m||!m.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){k(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+U+")"+e+"("+U+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(e,t,n){return v(t)?E.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?E.grep(e,function(e){return e===t!==n}):"string"!=typeof t?E.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||P,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:I.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),M.test(r[1])&&E.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=a.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,P=E(a);var D=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function j(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i,ve={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function xe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?E.merge([e],n):n}function Ae(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue;var Se=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ke=/^([^.]*)(?:\.(.+)|)/;function Re(){return!0}function Le(){return!1}function Oe(e,t){return e===function(){try{return a.activeElement}catch(e){}}()==("focus"===t)}function Ne(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ne(e,s,n,r,t[s],o);return e}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=Le;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return E().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=E.guid++)),e.each(function(){E.event.add(this,t,i,r,n)})}function Me(e,t,n){n?($.set(e,t,!1),E.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=$.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(E.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=c.call(arguments),$.set(this,t,o),r=n(this,t),this[t](),o!==(i=$.get(this,t))||r?$.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&($.set(this,t,{value:E.event.trigger(E.extend(o[0],E.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===$.get(e,t)&&E.event.add(e,t,Re)}E.event={global:{},add:function(e,t,n,r,i){var o,a,s,c,u,l,d,p,f,h,g,m=$.get(e);if(m)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&E.find.matchesSelector(se,i),n.guid||(n.guid=E.guid++),(c=m.events)||(c=m.events={}),(a=m.handle)||(a=m.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(F)||[""]).length;u--;)f=g=(s=ke.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),f&&(d=E.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=E.event.special[f]||{},l=E.extend({type:f,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=c[f])||((p=c[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,l):p.push(l),E.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,a,s,c,u,l,d,p,f,h,g,m=$.hasData(e)&&$.get(e);if(m&&(c=m.events)){for(u=(t=(t||"").match(F)||[""]).length;u--;)if(f=g=(s=ke.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=E.event.special[f]||{},p=c[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)l=p[o],!i&&g!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(o,1),l.selector&&p.delegateCount--,d.remove&&d.remove.call(e,l));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||E.removeEvent(e,f,m.handle),delete c[f])}else for(f in c)E.event.remove(e,f+t[u],n,r,!0);E.isEmptyObject(c)&&$.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=E.event.fix(e),c=new Array(arguments.length),u=($.get(this,"events")||{})[s.type]||[],l=E.event.special[s.type]||{};for(c[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,Pe=/\s*$/g;function Ue(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Fe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function _e(e,t){var n,r,i,o,a,s,c,u;if(1===t.nodeType){if($.hasData(e)&&(o=$.access(e),a=$.set(t,o),u=o.events))for(i in delete a.handle,a.events={},u)for(n=0,r=u[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,c,u,l=e.cloneNode(!0),d=ce(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||E.isXMLDoc(e)))for(a=xe(l),r=0,i=(o=xe(e)).length;r").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),a.head.appendChild(t[0])},abort:function(){n&&n()}}});var Yt,Jt=[],Zt=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Jt.pop()||E.expando+"_"+Rt++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Zt,"$1"+i):!1!==e.jsonp&&(e.url+=(Lt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||E.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){void 0===o?E(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Jt.push(i)),a&&v(o)&&o(a[0]),a=o=void 0}),"script"}),y.createHTMLDocument=((Yt=a.implementation.createHTMLDocument("").body).innerHTML="
",2===Yt.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=a.implementation.createHTMLDocument("")).createElement("base")).href=a.location.href,t.head.appendChild(r)):t=a),o=!n&&[],(i=M.exec(e))?[t.createElement(i[1])]:(i=Ee([e],t,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(E.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.expr.pseudos.animated=function(e){return E.grep(E.timers,function(t){return e===t.elem}).length},E.offset={setOffset:function(e,t,n){var r,i,o,a,s,c,u=E.css(e,"position"),l=E(e),d={};"static"===u&&(e.style.position="relative"),s=l.offset(),o=E.css(e,"top"),c=E.css(e,"left"),("absolute"===u||"fixed"===u)&&-1<(o+c).indexOf("auto")?(a=(r=l.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(c)||0),v(t)&&(t=t.call(e,n,E.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):l.css(d)}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){E.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===E.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),i.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-E.css(r,"marginTop",!0),left:t.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===E.css(e,"position");)e=e.offsetParent;return e||se})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;E.fn[e]=function(r){return V(this,function(e,r,i){var o;if(x(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),E.each(["top","left"],function(e,t){E.cssHooks[t]=ze(y.pixelPosition,function(e,n){if(n)return n=Ve(e,t),Ge.test(n)?E(e).position()[t]+"px":n})}),E.each({Height:"height",Width:"width"},function(e,t){E.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){E.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return V(this,function(t,n,i){var o;return x(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?E.css(t,n,s):E.style(t,n,i,s)},t,a?i:void 0,a)}})}),E.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(e,t){E.fn[t]=function(e,n){return 0this.k.maxBreadcrumbs&&this.u.shift(),this},addPlugin:function(e){var t=[].slice.call(arguments,1);return this.r.push([e,t]),this.n&&this.F(),this},setUserContext:function(e){return this.j.user=e,this},setExtraContext:function(e){return this.Z("extra",e),this},setTagsContext:function(e){return this.Z("tags",e),this},clearContext:function(){return this.j={},this},getContext:function(){return JSON.parse(s(this.j))},setEnvironment:function(e){return this.k.environment=e,this},setRelease:function(e){return this.k.release=e,this},setDataCallback:function(e){var t=this.k.dataCallback;return this.k.dataCallback=i(t,e),this},setBreadcrumbCallback:function(e){var t=this.k.breadcrumbCallback;return this.k.breadcrumbCallback=i(t,e),this},setShouldSendCallback:function(e){var t=this.k.shouldSendCallback;return this.k.shouldSendCallback=i(t,e),this},setTransport:function(e){return this.k.transport=e,this},lastException:function(){return this.d},lastEventId:function(){return this.f},isSetup:function(){return!(!this.a||!this.g&&(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this.z("error","Error: Raven has not been configured.")),1))},afterLoad:function(){var e=G.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(K){if(!(e=Object.assign({eventId:this.lastEventId(),dsn:this.H,user:this.j.user||{}},e)).eventId)throw new u("Missing eventId");if(!e.dsn)throw new u("Missing DSN");var t=encodeURIComponent,n=[];for(var r in e)if("user"===r){var i=e.user;i.name&&n.push("name="+t(i.name)),i.email&&n.push("email="+t(i.email))}else n.push(t(r)+"="+t(e[r]));var o=this.J(this.G(e.dsn)),a=K.createElement("script");a.async=!0,a.src=o+"/api/embed/error-page/?"+n.join("&"),(K.head||K.body).appendChild(a)}},L:function(){var e=this;this.m+=1,setTimeout(function(){e.m-=1})},$:function(e,t){var n,r;if(this.b){for(r in t=t||{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),K.createEvent?(n=K.createEvent("HTMLEvents")).initEvent(e,!0,!0):(n=K.createEventObject()).eventType=e,t)C(t,r)&&(n[r]=t[r]);if(K.createEvent)K.dispatchEvent(n);else try{K.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(e){}}},_:function(e){var t=this;return function(n){if(t.aa=null,t.v!==n){var r;t.v=n;try{r=O(n.target)}catch(e){r=""}t.captureBreadcrumb({category:"ui."+e,message:r})}}},ba:function(){var e=this;return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;if(r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)){var i=e.aa;i||e._("input")(t),clearTimeout(i),e.aa=setTimeout(function(){e.aa=null},1e3)}}},ca:function(e,t){var n=B(this.w.href),r=B(t),i=B(e);this.x=t,n.protocol===r.protocol&&n.host===r.host&&(t=r.relative),n.protocol===i.protocol&&n.host===i.host&&(e=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},C:function(){var e=this;e.da=Function.prototype.toString,Function.prototype.toString=function(){return"function"==typeof this&&this.M?e.da.apply(this.O,arguments):e.da.apply(this,arguments)}},Q:function(){this.da&&(Function.prototype.toString=this.da)},D:function(){function e(e){return function(t,r){for(var i=new Array(arguments.length),o=0;o"}}},a)),e.apply?e.apply(this,i):e(i[0],i[1])}}function t(e){var t=G[e]&&G[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(P(t,"addEventListener",function(t){return function(r,o,a,s){try{o&&o.handleEvent&&(o.handleEvent=n.wrap({mechanism:{type:"instrument",data:{target:e,function:"handleEvent",handler:o&&o.name||""}}},o.handleEvent))}catch(e){}var c,u,l;return i&&i.dom&&("EventTarget"===e||"Node"===e)&&(u=n._("click"),l=n.ba(),c=function(e){if(e){var t;try{t=e.type}catch(e){return}return"click"===t?u(e):"keypress"===t?l(e):void 0}}),t.call(this,r,n.wrap({mechanism:{type:"instrument",data:{target:e,function:"addEventListener",handler:o&&o.name||""}}},o,c),a,s)}},r),P(t,"removeEventListener",function(e){return function(t,n,r,i){try{n=n&&(n.N?n.N:n)}catch(e){}return e.call(this,t,n,r,i)}},r))}var n=this,r=n.t,i=this.k.autoBreadcrumbs;P(G,"setTimeout",e,r),P(G,"setInterval",e,r),G.requestAnimationFrame&&P(G,"requestAnimationFrame",function(e){return function(t){return e(n.wrap({mechanism:{type:"instrument",data:{function:"requestAnimationFrame",handler:e&&e.name||""}}},t))}},r);for(var o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],a=0;a"}}},n)})}var t=this,n=this.k.autoBreadcrumbs,r=t.t;if(n.xhr&&"XMLHttpRequest"in G){var i=G.XMLHttpRequest&&G.XMLHttpRequest.prototype;P(i,"open",function(e){return function(n,r){return x(r)&&-1===r.indexOf(t.h)&&(this.ea={method:n,url:r,status_code:null}),e.apply(this,arguments)}},r),P(i,"send",function(n){return function(){function r(){if(i.ea&&4===i.readyState){try{i.ea.status_code=i.status}catch(e){}t.captureBreadcrumb({type:"http",category:"xhr",data:i.ea})}}for(var i=this,o=["onload","onerror","onprogress"],a=0;a"}}},e,r)}):i.onreadystatechange=r,n.apply(this,arguments)}},r)}n.xhr&&I()&&P(G,"fetch",function(e){return function(){for(var n=new Array(arguments.length),r=0;r2?arguments[2]:void 0;return n&&t.ca(t.x,n+""),e.apply(this,arguments)}};P(G.history,"pushState",c,r),P(G.history,"replaceState",c,r)}if(n.console&&"console"in G&&console.log){var u=function(e,n){t.captureBreadcrumb({message:e,level:n.level,category:"console"})};w(["debug","info","warn","error","log"],function(e,t){_(console,t,u)})}},R:function(){for(var e;this.t.length;){var t=(e=this.t.shift())[0],n=e[1],r=e[2];t[n]=r}},S:function(){for(var e in this.q)this.p[e]=this.q[e]},F:function(){var e=this;w(this.r,function(t,n){var r=n[0],i=n[1];r.apply(e,[e].concat(i))})},G:function(e){var t=q.exec(e),n={},r=7;try{for(;r--;)n[H[r]]=t[r]||""}catch(t){throw new u("Invalid DSN: "+e)}if(n.pass&&!this.k.allowSecretKey)throw new u("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},J:function(e){var t="//"+e.host+(e.port?":"+e.port:"");return e.protocol&&(t=e.protocol+":"+t),t},A:function(e,t){(t=t||{}).mechanism=t.mechanism||{type:"onerror",handled:!1},this.m||this.V(e,t)},V:function(e,t){var n=this.X(e,t);this.$("handle",{stackInfo:e,options:t}),this.fa(e.name,e.message,e.url,e.lineno,n,t)},X:function(e,t){var n=this,r=[];if(e.stack&&e.stack.length&&(w(e.stack,function(t,i){var o=n.ga(i,e.url);o&&r.push(o)}),t&&t.trimHeadFrames))for(var i=0;i0&&(e.breadcrumbs={values:[].slice.call(this.u,0)}),this.j.user&&(e.user=this.j.user),t.environment&&(e.environment=t.environment),t.release&&(e.release=t.release),t.serverName&&(e.server_name=t.serverName),e=this.pa(e),Object.keys(e).forEach(function(t){(null==e[t]||""===e[t]||b(e[t]))&&delete e[t]}),v(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!b(e)&&(!v(t.shouldSendCallback)||t.shouldSendCallback(e)))return this.ma()?void this.z("warn","Raven dropped error due to backoff: ",e):void("number"==typeof t.sampleRate?Math.random() ".length;e&&r++<5&&!("html"===(t=p(e))||r>1&&i+n.length*o+t.length>=80);)n.push(t),i+=t.length,e=e.parentNode;return n.reverse().join(" > ")},htmlElementAsString:p,isSameException:function(e,t){return!f(e,t)&&(e=e.values[0],t=t.values[0],e.type===t.type&&e.value===t.value&&!function(e,t){return r(e)&&r(t)}(e.stacktrace,t.stacktrace)&&h(e.stacktrace,t.stacktrace))},isSameStacktrace:h,parseUrl:function(e){if("string"!=typeof e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),n=t[6]||"",r=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+n+r}},fill:function(e,t,n,r){if(null!=e){var i=e[t];e[t]=n(i),e[t].M=!0,e[t].O=i,r&&r.push([e,t,i])}},safeJoin:function(e,t){if(!a(e))return"";for(var n=[],r=0;rr?e(t,n-1):o},serializeKeysForMessage:function(e,t){if("number"==typeof e||"string"==typeof e)return e.toString();if(!Array.isArray(e))return"";if(0===(e=e.filter(function(e){return"string"==typeof e})).length)return"[object has no keys]";if(t="number"!=typeof t?40:t,e[0].length>=t)return e[0];for(var n=e.length;n>0;n--){var r=e.slice(0,n).join(", ");if(!(r.length>t))return n===e.length?r:r+"…"}return""},sanitize:function(e,t){if(!a(t)||a(t)&&0===t.length)return e;var n,r=d(t);try{n=JSON.parse(m(e))}catch(t){return e}return function e(t){return a(t)?t.map(function(t){return e(t)}):i(t)?Object.keys(t).reduce(function(n,i){return n[i]=r.test(i)?"********":e(t[i]),n},{}):t}(n)}}}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{7:7}],6:[function(e,n,r){(function(t){function r(){return"undefined"==typeof document||null==document.location?"":document.location.href}var i=e(5),o={collectWindowErrors:!0,debug:!1},a="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},s=[].slice,c="?",u=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;o.report=function(){function e(e,t){var n=null;if(!t||o.collectWindowErrors){for(var r in f)if(f.hasOwnProperty(r))try{f[r].apply(null,[e].concat(s.call(arguments,2)))}catch(e){n=e}if(n)throw n}}function t(t,a,s,l,p){var f=i.isErrorEvent(p)?p.error:p,h=i.isErrorEvent(t)?t.message:t;if(m)o.computeStackTrace.augmentStackTraceWithInitialElement(m,a,s,h),n();else if(f&&i.isError(f))e(o.computeStackTrace(f),!0);else{var g={url:a,line:s,column:l},y=void 0;if("[object String]"==={}.toString.call(h)){var v=h.match(u);v&&(y=v[1],h=v[2])}g.func=c,e({name:y,message:h,url:r(),stack:[g]},!0)}return!!d&&d.apply(this,arguments)}function n(){var t=m,n=h;h=null,m=null,g=null,e.apply(null,[t,!1].concat(n))}function l(e,t){var r=s.call(arguments,1);if(m){if(g===e)return;n()}var i=o.computeStackTrace(e);if(m=i,g=e,h=r,setTimeout(function(){g===e&&n()},i.incomplete?2e3:0),!1!==t)throw e}var d,p,f=[],h=null,g=null,m=null;return l.subscribe=function(e){p||(d=a.onerror,a.onerror=t,p=!0),f.push(e)},l.unsubscribe=function(e){for(var t=f.length-1;t>=0;--t)f[t]===e&&f.splice(t,1)},l.uninstall=function(){p&&(a.onerror=d,p=!1,d=void 0),f=[]},l}(),o.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,n,i,o=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack||[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,d=e.stack.split("\n"),p=[],f=(/^(.*) is undefined$/.exec(e.message),0),h=d.length;f eval")>-1&&(t=u.exec(n[3]))?(n[3]=t[1],n[4]=t[2],n[5]=null):0!==f||n[5]||void 0===e.columnNumber||(p[0].column=e.columnNumber+1),i={url:n[3],func:n[1]||c,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}if(!i.func&&i.line&&(i.func=c),i.url&&"blob:"===i.url.substr(0,5)){var m=new XMLHttpRequest;if(m.open("GET",i.url,!1),m.send(null),200===m.status){var y=m.responseText||"",v=(y=y.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(v){var x=v[1];"~"===x.charAt(0)&&(x=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+x.slice(1)),i.url=x.slice(0,-4)}}}p.push(i)}return p.length?{name:e.name,message:e.message,url:r(),stack:p}:null}}function t(e,t,n,r){var i={url:t,line:n};if(i.url&&i.line){if(e.incomplete=!1,i.func||(i.func=c),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function n(e,a){for(var s,u,l=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,d=[],p={},f=!1,h=n.caller;h&&!f;h=h.caller)if(h!==i&&h!==o.report){if(u={url:null,func:c,line:null,column:null},h.name?u.func=h.name:(s=l.exec(h.toString()))&&(u.func=s[1]),void 0===u.func)try{u.func=s.input.substring(0,s.input.indexOf("{"))}catch(e){}p[""+h]?f=!0:p[""+h]=!0,d.push(u)}a&&d.splice(0,a);var g={name:e.name,message:e.message,url:r(),stack:d};return t(g,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),g}function i(t,i){var a=null;i=null==i?0:+i;try{if(a=e(t))return a}catch(e){if(o.debug)throw e}try{if(a=n(t,i+1))return a}catch(e){if(o.debug)throw e}return{name:t.name,message:t.message,url:r()}}return i.augmentStackTraceWithInitialElement=t,i.computeStackTraceFromStackProp=e,i}(),n.exports=o}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{5:5}],7:[function(e,t,n){function r(e,t){for(var n=0;n0){var s=r(n,this);~s?n.splice(s+1):n.push(this),~s?i.splice(s,1/0,o):i.push(o),~r(n,a)&&(a=t.call(this,o,a))}else n.push(a);return null==e?a instanceof Error?function(e){var t={stack:e.stack,message:e.message,name:e.name};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(a):a:e.call(this,o,a)}}(t.exports=function(e,t,n,r){return JSON.stringify(e,i(t,r),n)}).getSerialize=i},{}],8:[function(e,t,n){function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,a){return r(function(e,t){return e<>>32-o}(r(r(t,e),r(i,a))),n)}function o(e,t,n,r,o,a,s){return i(t&n|~t&r,e,t,o,a,s)}function a(e,t,n,r,o,a,s){return i(t&r|n&~r,e,t,o,a,s)}function s(e,t,n,r,o,a,s){return i(t^n^r,e,t,o,a,s)}function c(e,t,n,r,o,a,s){return i(n^(t|~r),e,t,o,a,s)}function u(e,t){e[t>>5]|=128<>>9<<4)]=t;var n,i,u,l,d,p=1732584193,f=-271733879,h=-1732584194,g=271733878;for(n=0;n>5]>>>t%32&255);return n}function d(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+r.charAt(15&t);return i}function f(e){return unescape(encodeURIComponent(e))}function h(e){return function(e){return l(u(d(e),8*e.length))}(f(e))}function g(e,t){return function(e,t){var n,r,i=d(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=u(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=u(o.concat(d(t)),512+8*t.length),l(u(a.concat(r),640))}(f(e),f(t))}t.exports=function(e,t,n){return t?n?g(t,e):function(e,t){return p(g(e,t))}(t,e):n?h(e):function(e){return p(h(e))}(e)}},{}]},{},[4])(4)}).call(this,n(4))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r;/*! layer mobile-v2.0 弹层组件移动版 License LGPL http://layer.layui.com/mobile By 贤心 */!function(i){"use strict";var o=document,a="getElementsByClassName",s=function(e){return o.querySelectorAll(e)},c={type:0,shade:!0,shadeClose:!0,fixed:!0,anim:"scale"},u={extend:function(e){var t=JSON.parse(JSON.stringify(c));for(var n in e)t[n]=e[n];return t},timer:{},end:{},touch:function(e,t){e.addEventListener("click",function(e){t.call(this,e)},!1)}},l=0,d=["layui-m-layer"],p=function(e){this.config=u.extend(e),this.view()};p.prototype.view=function(){var e=this,t=e.config,n=o.createElement("div");e.id=n.id=d[0]+l,n.setAttribute("class",d[0]+" "+d[0]+(t.type||0)),n.setAttribute("index",l);var r=function(){var e="object"==typeof t.title;return t.title?'

'+(e?t.title[0]:t.title)+"

":""}(),i=function(){"string"==typeof t.btn&&(t.btn=[t.btn]);var e,n=(t.btn||[]).length;return 0!==n&&t.btn?(e=''+t.btn[0]+"",2===n&&(e=''+t.btn[1]+""+e),'
'+e+"
"):""}();if(t.fixed||(t.top=t.hasOwnProperty("top")?t.top:100,t.style=t.style||"",t.style+=" top:"+(o.body.scrollTop+t.top)+"px"),2===t.type&&(t.content='

'+(t.content||"")+"

"),t.skin&&(t.anim="up"),"msg"===t.skin&&(t.shade=!1),n.innerHTML=(t.shade?"
':"")+'
"+r+'
'+t.content+"
"+i+"
",!t.type||2===t.type){var c=o[a](d[0]+t.type);c.length>=1&&layer.close(c[0].getAttribute("index"))}document.body.appendChild(n);var u=e.elem=s("#"+e.id)[0];t.success&&t.success(u),e.index=l++,e.action(t,u)},p.prototype.action=function(e,t){var n=this;e.time&&(u.timer[n.index]=setTimeout(function(){layer.close(n.index)},1e3*e.time));var r=function(){0==this.getAttribute("type")?(e.no&&e.no(),layer.close(n.index)):e.yes?e.yes(n.index):layer.close(n.index)};if(e.btn)for(var i=t[a]("layui-m-layerbtn")[0].children,o=i.length,s=0;o>s;s++)u.touch(i[s],r);if(e.shade&&e.shadeClose){var c=t[a]("layui-m-layershade")[0];u.touch(c,function(){layer.close(n.index,e.end)})}e.end&&(u.end[n.index]=e.end)},i.layer={v:"2.0",index:l,open:function(e){return new p(e||{}).index},close:function(e){var t=s("#"+d[0]+e)[0];t&&(t.innerHTML="",o.body.removeChild(t),clearTimeout(u.timer[e]),delete u.timer[e],"function"==typeof u.end[e]&&u.end[e](),delete u.end[e])},closeAll:function(){for(var e=o[a](d[0]),t=0,n=e.length;n>t;t++)layer.close(0|e[0].getAttribute("index"))}},void 0===(r=function(){return layer}.call(t,n,t,e))||(e.exports=r)}(window)},function(e,t){var n="wno8rhqiranvo8ducvbw",r=!1;"object"==typeof CAIYUN&&(CAIYUN.key&&(n=CAIYUN.key),CAIYUN.disable&&(r=CAIYUN.disable)),e.exports={ENV:"prd",VERSION:"1.1.0",token:n,disable:r,TRS_URL:"https://api.interpreter.caiyunai.com",BIZ_URL:"https://biz.caiyunapp.com",LOGIN_URL:"https://fanyi.caiyunapp.com/?utm_source=sala&action=login",XIAOYI_USERID:"5a096eec830f7876a48aac47",CACHED:!0,DOWNLOAD_URL:"http://a.app.qq.com/o/simple.jsp?pkgname=com.caiyuninterpreter.activity",LNADING_URL:"http://caiyunapp.com/xiaoyi/landing.html",NETWORK_ERROR_MSG:"抱歉,网络请求有误,请刷新重试 ",PAGE_AUTH_ERROR_MSG:"抱歉,网页认证有误,请刷新重试 ",PAGE_COOKIE_ERROR_MSG:"抱歉,Cookie数据获取异常,请刷新重试 ",DATA_ERROR_MSG:"抱歉,数据有误,请重试 ",DEFAULT_AVATAR_URL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACghJREFUeAHdW31wVNUVP/ft5sMNG5KQYAxBSKIhhI8qEGMHGgSDteIfzrTamYwCopI6nWGwpRPa6WhsrZIOWAv9EKIItZNp1c4wbanVVJRE6Tj5sEw+SGIgUbIJ5INkN9lN9vP1nLe7z7fZj+y+d7dA78zm3Xvfvb97znnn3nvuuScM4pyODbVmuVzuMhDEFaIHluFwhcDETABmZCIYaXiRwST+ncTMKBZ7mADd4GEder2uYecta0aoTbwSiwdw7WDLWtHjqRBFcQtjsBKfqsZhjGFXaMdnPROEuqdy1rbwplcVYaGIeH2ky+iyW3aBKO7E98Wh2nCo6wTGjumTUo8+kVWEWqM9aRbAG+OfpTmmHHuQlN34S9dOUlQI49jqUOK8xFceT79zIqoeYRqpFgCp9WuDTTtQRWswnxUGP67VODVGcIpVPZlTcpymi5rBVAngyJXmAub0nEDG16sZlHcfZP4TMUHYXnnzuguxYscsgCMDnz4MIryGA6XGOlic21uAwZOVuaVvxzKOEG1jUvmjA00Hkfm3sM/1xjyxkUq0EY1Ea7R8RdXwiNicAAOe47hXV0QLfG3bsTrIFXZUsnXOueiYUwDEPDO5T+Ji98BcYNfTe1wc/yEu0j00lxAiTgFJlfDL32jM04eQaJZojzwdIgqg1tR84MZR+1D6J1Z4eQj1zlsXdgr4Vnta8G78xOCRcLtDSAHQPg8Odytyfj2u9mo+iAUSdWtC2Qn62Wg072tNTSfQrOLKvNPhgK6OTvii/wsYGb4C1ikruN0uwEMOGAwGyMzKgsVLboXC5cvBaJQOibNJ01JO9Rlu35htMQYJwGve8rfwzpz+EN77+ymw2+0RGSGBFBUXw+b7tsCy5UUR28byEj/seuIN+7yh7BcwBehg47Q6e7AxF9t+dGQUOtvawDQwAJYJM371Kejv61OOHzG/YtUqqHh8OzeNoLNDQkpCofIAFSCAI5c+rUaKnotIVZQvifkzH5yGc62tMDFOhzd1KS09DZ54+nuwJC9PHUBwr+crF5dW+6vlbZDO81i52/9C65MJDIZMJk3MEw0T4xNw+MDL8CWuHZzSbh+vEpwsAMmZwek8b7o0AAd/8RL0dHVxodmBC2jtb36rWZg+YtJ9vAYKwOfJ0UywzWqDVw8dhqlJLg4bmR6z2Qx/+sObcllTxuu1kiAkDSAfHpa4uLHq330XzBOanDRheets74Du81y0qtjHM0gCIAdm2FFjeEGqeraxMYYesTelhZVH8vPsFQB6b3mAft7VDdO2aR5QYTHOt7cDCVprwq1e4lkgvz25rrUCUv/enp4gmAzjfEhJvkmuf/axp6Fs9Tq5HGvG7XZD34WLsXYLak88E+8CXVqQ+RvUQkXFyPBwUK9jP3oBfr/nWfRme4coWpwH79fUwjvP/QpW5t0e1D6aiuHLl6NpFrEN8Uy8C3RjE7FlDC/J0lOmO29bDveXbIBHNt4Pr+/9OSQnJsG5i14tefDue6D5d2/ByZ8dhq13bwS9LsgqV0IF5G02W0BZdQF51/uuq1RjKDt6PHiEUqRHyx+USxWbt0Jp0Sr4678/kusoQwKin8U2BY1tLdDe1wv9V0xgtk7BjMOOgtFJU+jk2dMwPTMj9RXQyOKRiHcSeyEPMMIgs1WZNt1RqixCQc6t8My3twXU+QuphnmwtXSj9PPX+Z9T0zb480f/9BdhQSaXowrhFQrei0oZW1NmydKlcv8EvR5ovvNIvYNfgsfjkaFuK+T0zfCSFrdBxu3wXV66QSYy/5bFIODRlkcas3xlWJWv/TpkpvG6gWNGwX9FzYPQ8oKvSQsaYWWnL+ABKWF40MNJiRbKF3fugXxDhlTW+od45/OJfJQkC3r45a4fgtGQgr95WumT+xtvMkj5Z76zDVbnFwKNwysJaAFwO7WMO6ehAFX/L9W/hpwF3BYqyM7Igu/e8y14ftv3Jb5pHB6JeGfo/e3DK6WlPAAXJqbAQwu9ZgUtWrzWACVtNrcD6obOgQeJ1pwY9Au+sBTNWAQw7LBCt3VEwooH8wR8dgJ3BB7MExiG5NAaEGzA00uVqXG8XxKCB60MnmnG7YTG8T64OH2VJ2yPIAUkcYSkr3MGCSVt4JlaLINw3qddvHCJd4GisXgBKnG4qakP1M1ZoyRY5F2gULTZlwVKRtTmzU6v3a62/+x+ZjdfPOKZeBcoDg/tjPbZA2ot906PaYWQ+0/j/L9s57ZbS7jEM/EuGUIojXp5NE6ZISR4cMbCBe2zyUFe675Mj59nrwAwCFF+wzHTgIuh3ePShDhkt0DH1BVNGKE6U+Al1UsC8EVgdoZqqKXO4rZD/djn4FK5gF112rB/L/evjzx1+qNOJQFITGIEphZmw/UdxKlwaqQLaB+PJZlmzPC34fMwo1GDQo6p4FUWAIWfYmP1l3ghR/JWXnFMxWQXjDlscGq0G+yiOwKq6lfjPl4lAFkAvtjbQ6ph5+gYi10wiVMnjumQMs5YFgANSLG3uDp6jfk4UnCtoIk34lE5foAA6N4cvddVygb/T3niTRkbQLwFuVfJX44hMo34XK+VeafHDW3Wy9BsNoEV1fqxnDWwKaMAilMWwnx9cgC82TUDXWjr09b55lArhblByfxcuMOYw8UBgl//k6cWlQSFyAQJgKjSEiTlRso7kekmZPo/aMCEswNS9ImQokuUhGDFM77V5QgQiL+gF3SwKiUb7krLlZ4JWFaRwgZJhRQADRBLmBwtcN3WUWi2XIJWPLWR0yIeKQldYaQRpBnFKTeDznfbNOdYsYbJ+QG9gceeH/jLyif5Yy7YRqHJYoIW/E2iCv8vE2nPGuMiKEHNuN2QiRZdmG/J2MHK3Lv2hqMtTC9vc1oPUAh/VEaLDuOeTvO0yTwAEy4+vrlwxEVbT+vJutRcKMvIh+xEpTOW1e3KLXkU539Y/1lEARAB/mBpu9v9wDvDbdBwlVyIYfGipTlu7crS8+Dh7NWQJOiiCpaeUwB+IdR8fPr4RdtYRdwo5wicb1hQV7VhM59weZkuukKv33cAP37INUFud60zDF6GLfv34n18VGoalQYE8PT+Pt+/zIhcQ2kDxlBVYNK/zMB9+9+OpXvsAiD0D35aAG7XCbRWNBtLsRAbti0aOaDTb4d7X4j/P03JRNCU+NdPdoBHrMFdgt81kDxANBk8twisCspfPB6tys9GVacBSpQPq9PAMbMHqzDKVOR1bascIUSeSf84CYnJr8Cm6q+ujkO0nKtKuwD8I3xcYwTb+C4s7sSpwSXm0A8tPxkjr9UxMKQfhQ1VXLyk/AQgU4mZ9/atxcAL2jIpFG0l7hzqxmGSwUEe63q8xqqDb+5vwTzXpI6wWEho+HEWunbKUCtWIDvLUBSFyEwmPo1Y9gZn0A21iD8mjuKzB99145zugCTWAGUvxdU/8V+bqL57tgJjtwAAAABJRU5ErkJggg==",XIAOYI_DEFAULT_URL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQIAHAAcAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCACvAK8DAREAAhEBAxEB/8QAHAABAAIDAQEBAAAAAAAAAAAAAAMGBQcIAgQB/8QAOxAAAQMDAQMIBQwDAQAAAAAAAAECAwQFEQYHEjETITZBUXJzoVJhgZGxFCImJzIzNEJTYnHBFiM30f/EABsBAQACAwEBAAAAAAAAAAAAAAABAgMEBQYH/8QAMhEBAAEDAgQFAQYHAQAAAAAAAAECAxEEBQYhMXESMjQ1gUEUM0JRkaETIiNhscHR4f/aAAwDAQACEQMRAD8A6pAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADzK7djcqcUQK1TiMqrWTyIquSRyO45RTG4ly5VnOX5TX2oplbyq8rH154lolNvXV2/NzhZ6OqirIGzQPRzF7Or1FnYtXabtPipnkmDIAAAAAAAAAAAAAAAAAAAB4n+5fjn5lClfllS7lPHE1eUkYzvORDE8/eqiOssHU3Gm3U3ZEev7SzSrvU46pNnV7e7UtVb1zyMzVe1FXg5OPkTDJsurn7TVZ+k8/0bPLPWAAAAAAAAAAAAAAAHiWaOFu9K9rG9rlwnmFaqopjMzhgrlrLT9uz8pulPvJ1MXfXyDSu7npbXmrj/Kp3Pa/ZoMpRU1VVO6lwjW+fOThzbvEWnp5URMqndNsd2lylBRU1MnUr1WRf6Jw513iO9V93TEfuqlVrrUdzqY2VF0nbG56ZZH81CccmjXumpvTiqvkzMr3vVVe5zl7XLkxKVzM9WRp/umfwgZI6Pt2dr9Po+7J8BDJs/uEfLdhZ7sAAAAAAAAAAIK6sp6CndPWTMhibxc9cIOjFevW7NPjuTiFPuG0uw0uUhdPUuT9NmE964K+KHEvcSaO35ZmrsrNx2tTLltBbmM7HSvz5IMuVe4qqnlao/VVrltD1FWZxWJTtXqhbukuZd3/WXfxY7KvXXOurHK6qrKiZV9ORVJaFepu3ZzXVMsc4ljiUTiV4ROJXh+0v4uHvoTPRlo6r4/iphblTIwfdM/gMkdH27Ol+n8fdk+Ahk2b3GPlu4s94AAAAAAAAAAGitqV5nuGop6RXqlNSLybWZ5ld1qYqpzL5vxDrq7+qqtZ/lp5KSohwIRuLQtCN5ZeETiV4QuJXhE4leETyV4eqX8XD30E9GWjqvUnWYW3UyEC/6mfwhLLHR9mzlfrBj7snwEL7L7jHy3gWe+AAAAAAAAABQOdNc9Lbr47jDPV8n3f1t3uwDiYaEI3FoWhG4laETiy8IXEskPVNR1NY9WUlPLM5OdUjYrse4lmt2q7nKiMvnqYZIJVjnjfHInFr2qip7FJhaqmqicVRh5o0zWwInFXognovR1bPkoIY2Yciud1rkwunVbiIR7nJo1qcMcxKkxh9GzdfrCi7snwELbL7jHy3kWe/AAAAAAAAABQOddc9Lbr46mGer5Pu/rbvdX3EufDw4mFoW7TOz+5X6hSsSSOmp3fYWRMq/wBaJ2Fod/b9iv6y3/FziPowOqdO12nK5Kava1Ucm8yRn2Xp6iWprtBd0NzwXP1YFxLUh0RsmoaOm0bRTUrWcrOivlenFXZVML7g+i7Hat0aSmqjrPVVtvlDRpb6CsRrG1iyrHlOZXtxz57cf2TDQ4jtW/BTc/E0vSLishVOKPQtLylE82ypbgxzF30VHdeOswujVeiY5vKScojXcMoSr4sxl9GzZfrDj7snwEL7J7jHy3oWfQAAAAAAAAAAUDnbXHS26+O4wz1l8n3j1t3ur7hDnwjUstDoLZ/fKCu03RsjmijmgjSOSNXIitVC8Ppuz62ze0tMRMRMRiYULbVeqOuqKKipJGSyU+86RzVyjc45s+wOFxLrLV2qm1ROZjq1a4l5eGc03rC76cY+O3Tt5F65WKRu83PanYS6mi3O/o48NueX5MdqTUFx1DVpUXSdZHNTDGomGtT1ITCmq1t3V1eK7OWHY7k5WP8ARVFJYKZwt0VxpqliKyVqOVOdqrhUMU0zDZmqJhl4FzCxU4YQMsTyh9uzT/ocfdk+Ahl2P3GPlvUs+ggAAAAAAAAAoHO2uOll18dTBPV8m3j113uwDiYc+EaloWh5yrVy1VRfUuCWSmqY6IXloWhE4leELiV4RuJXhC4leETiV4T0tyq6NyLBM5E9FVygxEstNUtibG6x1driJ724k5ORXY4cDHNOJb+yUTGvir84l0GHvgAAAAAAAAAUDnfXHSy6+Opgnq+Tbx6673YBwhz4RqWhaEbiy0I3ll4ROJXhE4leETiV4QuJXhG4lkh9NrtFfd6lsFtpZaiRy4RGN5vavAnLZsae5enw24y6C2V6C/xanfV16tkuc7d1d3nbG30U7V9ZjmcvY7Xtv2SPHX5p/ZsEh2AAAAAAAAAAUDnjW/Sy6+OpgnrL5NvHrrvdgHCHOhG4tC0I3FoXhG4laEe6rlw1FVexEySy0xM9GRoNNXm4qnyO21MqL17mE8yct2zoNRe8lEysdv2U6gqsLUJT0rF9N+8qexCcutZ4e1VfmxCz27YzSNwtyuU0vakLUannkZdSzw3RH3leey023ZrpihwqW9J3p+aZ6u8uAy6drZ9Lb/DnutVFQ0tDFydFTwwR+jGxGp5EOjRbotxiiMPoC4AAAAAAAAAAFA541v0suvjqa9Xml8l3j113uwDiYc+GTs2nbpen4t9I+RvXIvM1PaWjn0dDR7bqNXP9KnP9/oudu2UVUiI64V8cSdbIm7y+8vFMvRWOFbk87teOyz2/ZjYabCztnqnJ+o/Ce5ME4dizw3o7fmiau/8A4s1BYLTQIiUlvpo1T8yRpn3kuta0Wns+SiI+GTRETgG1gAAAAAAAAAAAAAAAAFA551smdWXTx1NerzS+S7x6673W/QmgGzsZX3yNdxfnR0682U7Xf+F6aPrL0Wy8PRXEX9VHL6R/1tOCGKnibFBG2ONqYRrUwiGV7aiimiPDTGISBYAAAAAAAAAAAAAAAAAAAABR7Xo9suqa+73NiOas6ugiXgv7lMcUc8y8zptkirW3NXfj68o/2vCJjgZHpgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//2Q==",LEFT_SLIDE_URL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAABFCAYAAAAcjSspAAAAAXNSR0IArs4c6QAACQRJREFUeAHtXFtsFFUY/mfb0gttpbS0WECB2kAtFYOAkdhoEdBgTUGkERMIvvggxAdi0pqYWBMfSmI04WKiJiLwQIIPoiIqVksiEZSCCDTQ1HKTVi6FQru90XbH/zszZ3Zmu93ttju7s4UvgbnunPN9PWfO7ftHoUihtiqV+noWkUqFpKiziBT+R7l8nEakpvJ+Cv/r4vNuUqiD91v4fAOpSgMf11NC0u9UUuXm87ZDsTWFnyuKiFzl5PEsJkVZSKoaP+L0FKWff/8nuVy/Enn20tLNp0f8rCA/DL8ov1VmULfyOmd8LZeCx4OkP/LLCp1kwXdTsrqDiqvbRv6gwb8Mnyg/VWWT0rOJ/5pvcjJcJaxQuA4UpU2mBelTKT8li/LHZ9LDSRMpPX4cjY9LpJS4BOoa6KPOgV5q779Ll3puUWPnTWrsaqVj7VfodMdV1li1PlQ76uBS+AmpSR/R81XX/d0Q6rnRi9K4JZEutlSyGBWc52RzBpJc8VQ6qYBWZBfS0xnTaWK85bL51qD7t/q76XDbRdp3vZ723zhLPZ5+628U6mZxNtP03GrKf6vXejG0o9GJUlP5Ag2o2zjJPHOyBanZtGHaU7Qyew6lxY0zXwrLfsfAXfr6+hna/u8ROuseVDiaKE7ZSEuqfxxpYiMTBaXjQsuHXDo2mhOem/YgVcx4ll7Mms2VxX6gMn3feo42XzhEf3f8Z01QUbbRjNy3R1JqQs97TeVMLh1fcQ7myVxkcLWoyltC66fMj4gYMl259XC93dl8nKqaaqiNq5kJJ7jUrOZSc950LuhuaKLUVC4gj3qA85Aln7w8axZtL1hBmQnoZkQXN/u6aMPZfXSgtcGbEYVayaUsZ2GOeU8G3osLfNl09WDlMq4uP7AgE+TZTdOLaevsMtFyyHPR3KIFW5VTRHfVATpy+7LMCv5ar9Ha4jrafbhJngy0HV5JgSCk7mdBEvCwRG5VtheUUXnOY4GeHdVre6+d4lLzDfXKVkqhPu4tl9Ky6oPBMhZcFK3K1LIg4/GwyYlptKdoDT2RPiXYs6N+/Xh7M605vYeu9mLUwFCok6tSSbCqFFiUX97No4G+o/IdAkFq579BUxLTtURi4P8rvXdocd3nZmHwjnky0MvXNSQvNLv9fXulIKgyKCGxJAi4TU18QOQb+RdAI4HWE/yGwNCioB9ianbxDomFKuOPJ/KN/JswT/SzTCfMu/5bH/RUPeoWeSNaGfRQYxmFqTnUa22VFtL64j9o1+F/fHkNLim1VUl6113ci37IezOX+P4uJo/BA3wMYIjipxoNFqW/p4J/JMYy6KmiYxb4bWwk4fgd8AAf8NKRJwaz8kjfWkXB8B+jXR3oujuhpyrzE44t+ICXAfAFbxOsooj5EG34j8EdxjJjEeAFfgKY7gBvE7yiYMZMmyASlzHaHSvVxsRX7IIX+BkAb/DX4RVFTCFqM2aYD8HwPxrAoO7I7Uu2Jw1+4KkjTZtC1Y68oqjqOnnHxmmLolJKIMhLf+2kspO76FBbSKN9mfVhb1FarN0MnlPWoYkiZt3VuTiX7EoQ04fyhkhtpSBn3FfFVOOaU3uota/T1uQxMwi+AphkFzrwdLh2xlUuUy+dNNuWKUT5fH9bsyC4jknuj2eVUlaCGIP6+0lYzmGqFHy90HTQRMG6jI4ynmSOJPwJ8umjK+nVyaLg2p4VC19dBxdh5Q4LVQz8hTDrHilEWxDwBF/wFoAOrIdLW8rUVu6wLjOaZQjtycP73wmCIKfgC94CWMHkpV0XTw0Y9QULVZGAUwSRXC28WQ+XttitXcbKnd1wmiDga+HNi//8olWM1y+WMu2EEwURolh4KxCF9EEAibVdu0RxqiDgizVtE3LxTjEWw7HYbQecLAj4WnizHvxO8YqSyqv/4YbTBQFfC2/Wg0uKasy4JPNiUjgRC4KAr4U364F3SpcUAv6QcOLonctU775mPPKh5Am0NDPfOHbKjg/vLrQ+bpk5GGbCCQzP0WWXPcZL3W1iFIwS5CRYeStuvFP05TMSDqJwZxZjGLMwGAVjesBJwsA5ZYD1QPVhF6IGWKrsgNOF8eHdwqKwLVMHPGZ2wcnCWHmrDdz6sE9VisKmOzvhVGFgNjTAeuCdUi9PwIVoN5wojIU36+ESTmYYdxmwZcKFaDecJAz4grcAdGBnt0tYu+FkZsCnCltmJOAUYcDX8OdCB7a6o/XhmVpYuzV8wz7VSMEJwsCXa0DXQRMFXncd37FxFz7VSCGawoAnjMpeaDpoosD8L7zuJJYXYNyNJIYS5nZ/j63ZAE/DuQ3+ehCEXlKQNpv/dcDJ7NcFL2+wYesrzCMpmTx6tWcqA9kHP/D0wsvfKwqiIUjr8sPaDSdzpCGFWZUzh74ofIXiFW/2wp0X8DNZ2DtENIieiDdVhIcgGkIHrN2RLi1IGsLsKFxtqyDgBX4GwNsUHuMVBXcgPATREAx43b9srsPumAN4GV5+8AVvE6yiIF4G4SE64HV30mhW5ms0W/ABLwPg6xMnZBUFd8YnQRRh14b5H173aFQjI9Nh3AEP8DEFNTSJ+CCfNAaLUlLVI+Jl9Bth/n//vElZnwfE0iF4WIIZEBfkJ2Aqzi8p2CjXFWNlTKwxw/yfx00kbJexCnj132k0xUUhHmhp9VZ/fAaXFHkXAoiITshDmP/hdY9FIN/IvwknRICU6YR5d2hRUKziE8q5NRKTDYiGgPm/ubfd/HvH7yO/yLcpmqNVBEb5qTaSzNCi4I7nPmgSAUSIfmAgGqKk7rOYKTEoIcivTxQHAqICesd0YwYoB8A9Fu/j/0Xrqw8iqtayj12hl/nSuAHVQ9/y6BJe92cyZvJp5wDNLloZvFSRTwFR0pWy4QRA4f7Q+NwjMYShiQIZERiFOCBT2Eu0o01ROtB1j060KUQB7sclazr4/T9ABDsMygjnv3ci2M0KIT4I4TB+vnUA4y58qrBlhutbB5hD3n/jHHV7fMwA8lsHGLthqDIKhP5OGSqxUXwVA/4Q2CG62fXgHhNfxfAV6f73U3wV8Tm+/6UdH0F8DwN9kwkWMziqFIVnwXieOMrfZPofMjBeBNBEmuYAAAAASUVORK5CYII=",RIGHT_SLIDE_URL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAABFCAYAAAAcjSspAAAAAXNSR0IArs4c6QAACPJJREFUeAHtXFtsFFUY/mfb0jtaKAULKFAbqKViEDASGy0CGqwpoFQxgeCLD0J8ICatiYlr4kNJjCZcTMREBB5I8EFQRMVqSSSCUhCBBppabtLKpVBotzfa7vh/Zy57Zrvdpdudnd3Cl8Bcd+Z8X8/9fP8oFC3UuDOot3s+qVRIijqdSOF/lMvHmURqBu+n8b9OPu8hhdp5v5nP15Oq1PNxHSWl/E4lbg+ftx2KrW/4uaKIyFVOXu8CUpR5pKqJYb9PUfr493+Sy/UrkXc3LdpwKuxnhfhh5EX5rTKLupQ3OeGrOBc8EeL94V9W6AQLvpNS1W1UXNUa/oMG/jJyovzkziGlez3/Nd/m13CRsELhMlCUOYHmjp5E+WnZlJ8+lh5JGUOjE0dRekIypSUkUWd/L3X091Bb3x262H2TGjpuUENnCx1tu0yn2q+wxqr1odpRO+fCz0hN+YRecF8LdMNQzw1flIaNyXShuZLFqOA0p8oJSHElUum4AlqaU0jPZE2hMYmWy/KtIfdv9nXRodYLtOdaHe27foa6vX3W3yjUxeJsoCm5VZT/To/14tCOhidKdeWL1K9u5lfmya8tyMihtZOfpmU5MykzYZR8KSL77f136Jtrp2nLv4fpjGdA5mikBGUdLaz6MdyXhScKcsf55o85d6yTXzwr8yGqmPocvZQ9gwuL/UBh+r7lLG04f5D+bv/P+kJF2UxTc98NJ9cMPe3VldM4d3zNKZhtpCKLi4U7byGtmTgnKmIY7zW2Xi6325uOkbuxmlq5mEk4zrlmBeeac9K5kLtDE6W6ci551f2chmzjyUuyp9OWgqU0NgndDGdxo7eT1p7ZQ/tb6n0JUaiFXMoSFuao72TwvYTgl6WrByoXc3H5gQV50Di7fkoxbZpRJloO45yTW7Rgr4wvojtqPx2+dclICv5ab9Cq4lraeajROBlse3c5BYKQuo8FScLDkrlV2VJQRuXjHw/2bEev7b56knPNXuoxWimFerm3XEqLqw6ESlhoUbQiU8OCpONhE5IzaVfRSnpy9MRQz3b8+rG2Jlp5ahdd6cGogaFQBxelklBFKbgov7yfR/29R4w6BILUzHmLJiaP1l4SB/9f7rlNC2q/kIVBHfNUsMrXNSgvNLt9vbsNQVBkkEPiSRBwm5T8gEg30i+ARgKtJ/gNgsFFQT9EanZRh8RDkQnEE+lG+iXMFv0s6YS8G7j1QU/Vq240bkQrgx5qPKMwYzz1WFulebSm+A/acegff14Dc0qNO0Xvuot70Q/5YNpC/9/F5TF4gI8JDFECFKOBovR1V/CPxFgGPVV0zILXxuYrYn4HPMAHvHTkicGscaRvraJg+I/Rrg503WOhp2qkJxJb8AEvE+AL3hKsooj5EG34j8EdxjIjEeAFfgKY7gBvCT5RMGOmTRCJyxjtjpRiI/EVu+AFfibAG/x1+EQRU4jajBnmQzD8txuHb10kDOKcAPiBp45MbQpVO/KJoqqrjTvWTZ5vey452HqOyk7soJf/2u6IMMgt1m4Gzynr0EQRs+7qLJxLdSWJ6UPjBju2Lb0dtPLkLjGleNpzxTFhMDMIvgKYZBc68HS4dsZVbpAvHTfDlilE4/nYZiel06fTSzk3arWWU8JgqhR8fdB00ETBuoyOMp5kjgZenzCLPn9smePCWPjqOrgIK3dYqGLgL4dZ92ghFoQBXyPHCh1YD5e2lKmt3GFdZjjLEOGI6bQw4AveAljB5KVdF08NmOUFC1VOwGlhLLxZD5e22K1JgZU7p+CkMBbevPjPFa1iVr9YynQSTglj5a1AFNIHASTWdp0UBe92QhisaUvIRZ1iLoZjsTsWEG1hLLxZD65TfKJk8Op/rCCawlh4sx6cU1RzxiWVF5NiCdESxsKb9UCdYg5T4Q+JNSwam08Pp5qLklTnuUpHbl+KaDL9eHei9fEYb4BhJpaAaQWMoi92aUYl9DwxNIj0tIaVt+JBnaIvn5FwEMWKKIYgGCwCEGRr4XLROkU6jXBOmWA9UHzYhagBlqpYQCBBkENes2nt2o93M4vCtkwd8Jg5jcEEQaVrF6y81XpufdinqgOmOyfhhCDga+HNeqBOqTOEgAvRKTglCPhaeLMeLuFkhnGXAVsmXIjRhpOCgC94C0AHdna7hLUbTmYGfKqwZUYTTgoCnuBr+nOhA1vd0frwTC2s3Rr2sk81WnBaEPCEL9eEroMmCrzuOr5j4y58qnYjFgQBTxiVfdB00ESB+V943UksO8C4aydg60RPVe6YoR9iZ7MbiA94ms5t8NeDIPScgp+w+V8HnMwBXfDGDcPcZvJo/NE0bULL6LpHWxDwA08ffPx9oiAagrQuP6zdcDLbhUTFRV8Wvsr2zpliLBNtQcAL/CQLe7uIBtEJ+0RBeAiiIXTA2m1nboEw2wpXRL3IgB54gZ8J8JbCY3yi4A6EhyAaggGv+1dNtdgdcQAv08sPvuAtwSoK4mUQHqIDXne0EiMJ4ANeJsDXL07IKgruTEyBKMKujVYCXnc7i5GZuCjsgAf4SEENjSI+yO/dA0UpcXeLeBn9Rpj/PzwnKev3gHg6BA9LMAPiggIETCUEJAUb5epirIyJNWaY//O4CYXtMl4Br/57DVJcFOKBFlVtCsRnYE4x7kIAEdFx4xDmf3jd4xFIN9Iv4bgIkJJOyLuDi4JslZhUzq2RmGRBNATM/009bfLvY34f6UW6pWiOFhEYFaDYGGQGFwV3PP9RowggQvQDA9EQJbVb4ybHIIcgvX5RHAiIChopdncGyHss3idwRYtsIQMRVavYx67Qcj49ql/10rc8uoTX/dmsaXw6doBmF60MKlWkU0DkdKXsbgKgcP/Q+NwjMYRDEwUyIjAKcUBS2IvT0abIHei6OxNtClGA+3HJmg4B/w8SwQ6DMsL5750IdlkhxAchHCbAtw5g3IVPFbbMSH3rAHPI+66fpS6vnxnA+NYBxm4YqgwDQ69TBnvZML6KAX8I7BBd7HrwjIivYviLdP/7Kf6K+B3f/9KOnyD+h8G+yQSLGRxVisKzYDxP7PA3mf4HejdeBFqgWdYAAAAASUVORK5CYII=",CHECKED_IMG_URL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAABDCAYAAADHyrhzAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAOtSURBVHhe7ZpraxNBFIbX++UHiXe03kVU1IqKYFVURIoWzZlUKREpUkSsiqiIN1RE6gUp2sxskfrJT/4Yr2i1Ws+ZOWvT5HSlmKTJ7DzwEsK+7M55c3ayl4kCgUAgEAgEAoHa0dc6I+ovzOdvGYaC0PAw0upttgNxQdyLjBplxdG7jnm8NUMUCtOx+LslQbCgGPUVZrMrA4xG0/C0uF0ZxF89Z6fnUBBG3SorvkQwHOncVnZ7jA0CbsghkDCIImxjt8fYUwOuySGgtPqB2s5uj3FzxBUxBJKGn9gVO9jtOUb1VgQwppEozrey03M0XBICSDSCc8ROdnqOhgtCAIlG8NTYxU7PMdAjBJBoBIPaw07PMaq7rPhSYUeovez0HK3OlRVfKgqijZ2eo6FQVnyJ4Bdu389OzzHQJYeA0uo36gA7PSdWp8UQSBSEgYPs9BytlBgCyXYEHGKn52g4JYZAch1xhJ2eY1RHRQCJXEccZafnaDghhkCyHaGOsdNztGrnguUgaHvVKaot+Ass4G+NAf3iaUHE6jg7q0ic34iTzzAe4EPDBEKT4URBkOjUqToxrMOdfx87CAYSw0LeOjXQ32NaEDSZVh2jWvAX+Fp2IBdIMb+IXfWFrhxTO0KdZGeV0fBaPCDJnTKL2Vkf6F6C7imk8Tjl2FkD6PWahjfCQVnwsW6BGNiHx6S7TGEcKLryrDkUiIFBcQBWGIjpXMLu2kDPG9KCMNDJzjrgOsTIA7H6FA2qpeyuLnF+N+4/pSPgDDvrCL2A1UqLA3KqfiD0cDa9I7rYOQUMFebiAIrywFAaPkfF3DJ2/x/0uD41CHWWnVNIPQKhN1n0RkvaP4ke5TUMA+1zcEAD4kBJWn3Bz+Xsnhz0bpOudqX9OnWzs4GgNQsGXgmDZdmLtckFEuc2pwah1Xl2NiAUiIZ+ceBWGEhRrWB3Ojq3Kb0joIedDYzrkJdyASQMROdWslvGwIbUIOhNWNPgOuSFWIiVPWVa2D0enV+P28ZuBCsEF9nZRLgOeSYXRMJA4twqdjtMfi2G+E32o+glcdPy/vAsnOSeioVZ0RySX229GtZwxwg+q17ra2qGCjOx0D6hOBbNIXgJnRaEhst2QYkX0HpKA0/EQv8puOpPEAlugeljueAJRGusvAsiwXaIelRRtCi47m8QCS6QB5XFl0irm/4HkWBPGXVfDIIWpGYmiATXIePXZtMS5cwFkTBusTrcyW4QCS6QNvsZCAQCgUAgkHmi6A/+bsV/gdPAhwAAAABJRU5ErkJggg==",FAVOR_IMG_URL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAvCAYAAACc5fiSAAAAAXNSR0IArs4c6QAABv9JREFUaAXdWVlsVFUY/u7MdJkulEJbSgu0FBUQWYzihgvEhCDV6IPLAyFKiYkbPqgxRl98cnvQJ+OLgoqJBhMTDeiDEtQYowgSCi5o2aQUSkEDTmu3mev3nzNn7txhtnvnTkz8kztn+89/vnvu///n/89YCJDs99GGUayjyDbYCMHC9yw/t3owFOAySpQVlEB7Cx5EAq9TXkWGzBhf4AXU4RXrXsQzxnw3AwFO0MsIei9RhPIgeRs96LEsfoMAKBKADBD0GsrRoGcuAaZfwibxnTsKnO5lNSHLPIAt2M3yDWmUSvl2qHjZFhammFsXA3Uz+LQCHdcDC9YC3OYkPW3vQiCbFQxwG1MMMoQrU1VVaZgNTOvSfTY6cRQr3Az+WsEAt9CUWj4TuAxMJXiHbnKq/mvBALeht7SylmqRRWSN815U/av8w3VmZlnFGSymZm9DlO5upuKtdjTGNbdmmqPnFua6xnw2SgaOYcznLmrrq56aHYYVBqrq9ZiN5uxM3npLB25jaWpJ2dlcZKfc90QuFi/9QQB3dLY2TZczUWhfTpXBeOaQn3ZJwKnfYQK5Uy0cojrU5NGCxKTB998Dp34/Rv2eoxA1dgDhzDAliXVyDJBHU7+plFL63nF7M67lUf+yWlxOxjZHYy4CNHbB6bJx2Gn4r/kCzqCqlTv9EZetUku3LQPy6fdoGnDgiH+4zkztxpx2wZq9h2Hrfuwioz66G2YxHunOfvAYaQP7gD++0y2L3ynlYAxDqkzQZiY4PsIesYVxtg/w+YQh2pvpkaV34G+p6O4htZT45sV3A5Hq1MpZKwc+BIbPZh3y0LkT9VjLmF4Zd9ZIzd7KkzCBTr55TUpwglGdjbvY1qBDnHrZmsKgz/W5QVdGGQDnMOLUYsmKHQfGhk3vrYjheTaelQ4XcBrcLQT3Gt/pShnMS/NW5tdrM/n0QVPji65mpDjPaRdTG2HWd/Bjxvw8t2w8wnPsOVEZBVz54xhepZxNfPKrT5hTOm9ksnBpMcsCsrCQBFpeQat5PBumdwFDh6TVwGRkLssjesdjeIZv87iMKKolcz2TgQg/azpV1QGNnYXVI31OmPofj9GP85PLp5e4xSsZryRpXx3OyXTLfgdLmML+wK5KyOnXtQpoKnI3iwHQ9wVw9nfNKR6ohclSroMqU16CL/rXMbPbMtprbdSxUYSgn1SgpXvOdcGCFpmtVzD3pIFKkHW+Xz/S750kcX3UTJMDaKVqyG7PWGT6gynH/gZ+3aFBly5xhNZ33IgRF9emGlEJ9n3on5GUrTz6NXVbuV0g2kAD5RoTErOorD/bDHefHFTy8uO0D6bfxCo3BLdLQ4xTG6j45SBJosHzJ7RESTAW30P/7WMNkdO7DRg9L7JW25+iylqLMVGV8pDslEkeGvhR/YAWZDJvilYKtip4mdehuuWnLFTF/DOU3BcxyrjPxCdBVZP5msawiBccJB/fLimiUCHG3sBQXdyZ+OH9H7DdTjvy8JEla7pwknrOc0DIwg7ragZhpPIBF+ldN1M/B2mQ/9DAuLg+/WTEDw0SuMsd+hFS3JyKWoa8t3Gn8kcRRQibYJLYbW3AacNb3h2XVQZ6HSOdQlVpmlecoYo3OcuD68KASKmgB32C5TppCJUfeOyUXkluuRZ2ezsrmhYA+96jqjGvsN13jh4sRa/v+dccQBXV3kDLQmLgMk8TDwOHyg9cIk2hYQZ1Q7+wIsdhMUS+M+Qf+dMw/2gqUpZfVeSiX+spcPhL4Ng33MkiMiBJHOLUc0OWyhdMSwEnhyi/FGWgRsb97UyoTjJhFhIw6YB0b+5ficFtvMg/wLanM4mqKLNVn0Ti33JQM2PwiwI4cZG5HheIUbrCza4eNiKcu5Nv1KP+pxnYC8y6JpOn9PbgQap2clMkPu+4IcuLpC0jrvD4t8DgT2ISUbrChzn6VBoHgYd5GxXHfWSoRT+ByynXsgioZIIvn1RCykm6IynHk2WcoakEP1EaumQ19TMpM88hExvSa8pxXwi0cIps4TvzM4ErY77omixi3Y/fmN1vIrv+HINklqdYkpeVC/2Wy4Hm+bQW50YjJSJSqasSe0yOkoc+vRAJn4kubTDYcZPyKlT8LQRfz6GX1Kdx8xRuSRAlN1UndutkWi5Ao41652S2RIqGDn1GdVxOJdW3d6bbVU4QdP8epysE6o2bXN+X4JsJfB2/+nKWNSwZGdF4bcjxN8B/Mk+xb4AKNsS+WsZpK9i/gfU1LMt1JvShBUutO9S1HJfR5AJuOr2W9ru8ap7ERs7byJdo9zo/J7/F24cKrLfWQ12qpPMFAtwIpEpa2Mp/1SZBy8JstqJmLFmKV25nfzM9hZzl9AQ4w+c4H+cgCfHuxMIe5jpfWaso7f9E/wKMr8drdgi7SwAAAABJRU5ErkJggg=="}},,,,,,,,,,,,function(t,n,r){!function(){var t=document.querySelectorAll(".cyxy-target-popup");if(!(t&&t.length>0)){var n=r(3),i=r(19),o=(r(20),r(5)),a=r(25),s=r(6),c=r(26),u=r(2);if(r(27),!0!==s.disable){var l,d="cyxy-trs-source",p="cyxy-trs-source-ted",f="cyxy-trs-target",h="cyxy-target-count",g="cyxy-no-trs",m=(s.token,"小译火力全开!LingoCloud, FIRE!"),y="+30 彩云朵!现有:",v="限免次数已不足,成为小译注册用户,畅享更多阅读次数!现在注册还送彩云朵哟~",x="诶呦喂~彩云朵不足!修订译文或点击赞、分享赚取彩云朵,或购买VIP畅享无限阅读次数",A="抱歉,网页认证有误,请刷新重试",b="抱歉,网络请求有误,请刷新重试",w="提交有误",T="感谢点赞,+5 彩云朵!",E="已经赞过啦",S="彩云小译",C="刚刚",k="提交",R="现在",L=navigator.userAgent,O="",N="",M=0,B={},P="",I="0",D=location.origin+location.pathname,U=2300,j="b";(location.host.indexOf("wx.qq.com")>=0||location.host.indexOf("slack.com")>=0)&&(U=1e3),location.host.indexOf("youtube.com")>=0&&(U=500),"local"!=s.ENV&&n.config("https://c49231b0334e4624b8941767b8f6bfa4@sentry.in.caiyunapp.com/22",{release:s.VERSION,environment:s.ENV,sampleRate:1}).install();var F=function(){var e="web";return["interpreter.caiyunai.com","cdn.caiyunapp.com","interpreter-staging.caiyunai.com"].indexOf(location.host)>=0?(e="share",u("a").on("click",function(e){this.href&&"#"!=this.getAttribute("href")[0]&&(e.preventDefault(),window.open(s.LNADING_URL+"?targetUrl="+encodeURIComponent(this.href)))})):e="web",e}();n.context(function(){}),function(){try{var t=document.querySelectorAll(".cyxy-target-popup");if(t&&t.length>0)return;!function(){var t=document.createElement("div");function n(){var e=parseInt(u("#cyxy-popup-favour-num").text())+1;u("#cyxy-popup-favour-num").text(e),l.data("comment","like");var t=l.data("targetInfo");t&&(t.rate.LIKE=e,l.data("targetInfo",t));var n=l.data("targetList"),r=l.data("index");n&&n.length>0&&r>=0&&(n[r].rate.lIKE=e,l.data("targetList",n))}function r(){u("#cyxy-popup-oppose-num").text(parseInt(u("#cyxy-popup-oppose-num").text())+1),l.data("comment","unlike")}t.className="cyxy-target-popup "+d,t.innerHTML='
彩云小译 刚刚
0
',document.body.appendChild(t),u(".cyxy-target-popup").hide(),u("#cyxy-popup-left-slide").hide(),u("#cyxy-popup-right-slide").hide(),u(".cyxy-target-popup").click(function(){}),u(document).mouseup(function(e){var t=u(".cyxy-target-popup");t.is(e.target)||0!==t.has(e.target).length||u("#cyxy-popup-favour").hasClass("commit")||t.hide()}),u("#cyxy-popup-left-slide").click(function(){z();var e=l.data("targetList"),t=l.data("index");if(!isNaN(t)){--t<=0&&(t=0,u("#cyxy-popup-left-slide").hide()),u("#cyxy-popup-right-slide").show();var n=e[t];l.data("targetInfo",n),l[0].sentence_id=n.id,l.data("comment",""),l.text(n.content),u("#cyxy-popup-favour-img").attr("src",s.FAVOR_IMG_URL),u("#cyxy-popup-avatar").attr("src",n.user.avatar_url),u("#cyxy-popup-name").text(n.user.username),u("#cyxy-popup-time").text(c.getDateDiff(n.updated_at)),u("#cyxy-popup-favour-num").text(n.rate.LIKE||0),u("#cyxy-popup-oppose-num").text(n.rate.UNLIKE||0),l.data("index",t)}}),u("#cyxy-popup-right-slide").click(function(){z();var e=l.data("targetList"),t=l.data("index");if(!isNaN(t)){++t>=e.length-1&&u("#cyxy-popup-right-slide").hide(),t>0&&u("#cyxy-popup-left-slide").show();var n=e[t];l.text(n.content),l.data("targetInfo",n),l[0].sentence_id=n.id,l.data("comment",""),u("#cyxy-popup-favour-img").attr("src",s.FAVOR_IMG_URL),u("#cyxy-popup-avatar").attr("src",n.user.avatar_url),u("#cyxy-popup-name").text(n.user.username),u("#cyxy-popup-time").text(c.getDateDiff(n.updated_at)),u("#cyxy-popup-favour-num").text(n.rate.LIKE||0),u("#cyxy-popup-oppose-num").text(n.rate.UNLIKE||0),l.data("index",t)}}),u("#cyxy-popup-favour").click(function(){if(u("#cyxy-popup-favour").hasClass("commit"))P&&(l.data("before")!==l.text()?l.data("user_s_id")?function(t,n,r,i){if(!H){ae();var a=s.TRS_URL+"/v1/page/"+M+"/sentence/"+n;H=!0,chrome.runtime.sendMessage({method:"POST",contentScriptQuery:"fetchUrl",url:a,headers:{"X-Authorization":"token "+s.token},data:{source:t,target:r,user_id:P,sentence_id:n,trans_type:"en2zh"}},function(t){if("ok"!=t.status)throw H=!1,o.open({content:w,skin:"msg",time:3}),i(),new Error("updatePageSentence Error",e);var n=JSON.parse(t.data);H=!1,i(n)})}}(l.data("source_text"),l.data("user_s_id"),l.text(),function(e){if(u("#cyxy-popup-favour").removeClass("commit"),e&&0==e.rc){u("#cyxy-popup-favour-img").attr("src",s.FAVOR_IMG_URL);var t=l.data("targetList"),n=l.data("user_index"),r=0;l.data("targetInfo")&&(r=l.data("targetInfo").rate.LIKE),t&&t.length>0&&n>=0&&(t[n].content=l.text(),t[n].rate.lIKE=r,l.data("targetList",t)),u("#cyxy-popup-favour-num").text(r||0),l.data("targetInfo",{id:e.sentence_id,content:l.text(),updated_at:Date.now(),user:{id:P,avatar_url:B.avatar_url,username:B.username},rate:{LIKE:r,UNLIKE:0}}),l.data("before",l.text()),o.open({content:"修改译文成功",skin:"msg",time:2})}else o.open({content:w,skin:"msg",time:3})}):W(l.data("source_text"),l.text(),"",function(e){if(u("#cyxy-popup-favour").removeClass("commit"),e&&0==e.rc){l[0].sentence_id=e.sentence_id,u("#cyxy-popup-favour-img").attr("src",s.FAVOR_IMG_URL),u("#cyxy-popup-favour-num").text(u("cyxy-popup-favour-num").text()||0),l.data("before",l.text());var t={id:e.sentence_id,content:l.text(),updated_at:Date.now(),user:{id:P,avatar_url:B.avatar_url,username:B.username},rate:{LIKE:u("cyxy-popup-favour-num").text(),UNLIKE:0}};l.data("targetInfo",t);var n=l.data("targetList");n&&n.length>0&&l.data("targetList",n.concat(t)),i="",a="",c="、",(r=u("#cyxy-footer-translator").text()).indexOf(B.username)<0&&(r||(c="",i="和",a="共同"),u("#cyxy-footer-translator").text(i+B.username+c+r+a)),"android"==F?window.js.showEditSuccess("",y+e.point.total_point):"ios"==F?window.webkit.messageHandlers.showEditSuccess.postMessage({title1:"",title2:y+e.point.total_point}):o.open({content:""+y+e.point.total_point,skin:"msg",time:3})}else o.open({content:w,skin:"msg",time:3});var r,i,a,c}):(u("#cyxy-popup-favour-img").attr("src",s.FAVOR_IMG_URL),u("#cyxy-popup-favour-num").text(u("cyxy-popup-favour-num").text()||0),o.open({content:"译文未修改",skin:"msg",time:2}))),setTimeout(function(){u("#cyxy-popup-favour").removeClass("commit")},2e3);else{var t=l[0].sentence_id;t?Q(t,"POINT_LIKE_SENTENCE",n):W(l.data("source_text"),l.data("xiaoyiText"),"",function(e){e&&0==e.rc&&(t=e.sentence_id,l[0].sentence_id=t,Q(t,"POINT_LIKE_SENTENCE",n))},s.XIAOYI_USERID)}}),u("#cyxy-popup-oppose").click(function(){var e=l.data("comment"),t=l.data("sentence_id");e?"like"==e?Q(t,"POINT_CANCEL_LIKE_SENTENCE",function(){u("#cyxy-popup-favour-num").text(parseInt(u("#cyxy-popup-favour-num").text())-1),u("#cyxy-popup-favour-img").css("height","18px"),l.data("comment","cancel")}):"unlike"==e?Q(t,"POINT_CANCEL_LIKE_SENTENCE",function(){u("#cyxy-popup-oppose-num").text(parseInt(u("#cyxy-popup-oppose-num").text())-1),l.data("comment","cancel"),u("#cyxy-popup-oppose-img").css("height","18px")}):"cancel"==e&&Q(t,"POINT_UNLIKE_SENTENCE",r):t?Q(t,"POINT_UNLIKE_SENTENCE",r):W(l.data("source_text"),l.data("before"),"",function(e){e&&0==e.rc&&(t=e.sentence_id,l[0].sentence_id=t,Q(t,"POINT_UNLIKE_SENTENCE",r))},s.XIAOYI_USERID)})}(),c.preload([s.XIAOYI_DEFAULT_URL,s.FAVOR_IMG_URL,s.CHECKED_IMG_URL,s.LEFT_SLIDE_URL,s.RIGHT_SLIDE_URL]),"share"==F?(new i).get(function(e,t){O=e,V()}):a.testCookie(function(e){var t,n,r;e?(t=P=e._id,n=function(e){B=e,e&&!e.avatar_url&&(B.avatar_url=s.DEFAULT_AVATAR_URL),B.biz.is_xy_vip&&(I="1"),V()},r=s.TRS_URL+"/v1/user/"+t,chrome.runtime.sendMessage({method:"POST",contentScriptQuery:"fetchUrl",url:r,headers:{"X-Authorization":"token "+s.token},data:{user_id:P,page_id:M,url:document.URL}},function(e){if("ok"==e.status){var t=JSON.parse(e.data);0==t.rc?(n(t.user),t.user.avatar_url&&u(".cyxy-personal .cyxy-favorite-btn").attr("src",t.user.avatar_url)):o.open({content:"抱歉,获取用户信息失败,请刷新重试",skin:"msg",time:3})}})):(new i).get(function(e,t){O=e,V()})}),function(){var e=u(".cyxy-function >img");u(".cyxy-function").click(function(){"b"==j?(j="s",e.attr("src","https://www.caiyunapp.com/imgs/webtrs/mode-s.png"),u("."+f+":not('.cyxy-no-trs')").hide(),K()):"s"==j?(j="t",e.attr("src","https://www.caiyunapp.com/imgs/webtrs/mode-t.png"),G(),u("."+f).show()):"t"==j&&(j="b",e.attr("src","https://www.caiyunapp.com/imgs/webtrs/fanyi-btn-hover.png"),K(),u("."+f).show())});var t=!1;u(".cyxy-favorite").click(function(){t||a.postFavorite(document.URL,P,function(e){0==e.rc?(o.open({type:4,content:"
收藏成功
",time:8,skin:"msg"}),$("#cyxyFavoriteBtn").attr("src","https://caiyunapp.com/imgs/webtrs/favorite-on-btn.png"),t=!0):o.open({content:"收藏失败",skin:"msg",time:3})})})}(),function(){if(!(location.host.indexOf("bing.com")>=0||location.host.indexOf("wx.qq.com")>=0||location.host.indexOf("slack.com")>=0)){var e=document.createElement("div");e.className="cyxy-footer "+d,e.innerHTML="